(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory();
	else if(typeof define === 'function' && define.amd)
		define([], factory);
	else {
		var a = factory();
		for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
	}
})(typeof self !== 'undefined' ? self : this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 201);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(3);
var core = __webpack_require__(26);
var hide = __webpack_require__(17);
var redefine = __webpack_require__(18);
var ctx = __webpack_require__(27);
var PROTOTYPE = 'prototype';

var $export = function (type, name, source) {
  var IS_FORCED = type & $export.F;
  var IS_GLOBAL = type & $export.G;
  var IS_STATIC = type & $export.S;
  var IS_PROTO = type & $export.P;
  var IS_BIND = type & $export.B;
  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
  var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
  var key, own, out, exp;
  if (IS_GLOBAL) source = name;
  for (key in source) {
    // contains in native
    own = !IS_FORCED && target && target[key] !== undefined;
    // export native or passed
    out = (own ? target : source)[key];
    // bind timers to global for call from export context
    exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
    // extend global
    if (target) redefine(target, key, out, type & $export.U);
    // export
    if (exports[key] != out) hide(exports, key, exp);
    if (IS_PROTO && expProto[key] != out) expProto[key] = out;
  }
};
global.core = core;
// type bitmap
$export.F = 1;   // forced
$export.G = 2;   // global
$export.S = 4;   // static
$export.P = 8;   // proto
$export.B = 16;  // bind
$export.W = 32;  // wrap
$export.U = 64;  // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;


/***/ }),
/* 1 */
/***/ (function(module, exports) {

if (typeof Object.create === 'function') {
  // implementation from standard node.js 'util' module
  module.exports = function inherits(ctor, superCtor) {
    ctor.super_ = superCtor
    ctor.prototype = Object.create(superCtor.prototype, {
      constructor: {
        value: ctor,
        enumerable: false,
        writable: true,
        configurable: true
      }
    });
  };
} else {
  // old school shim for old browsers
  module.exports = function inherits(ctor, superCtor) {
    ctor.super_ = superCtor
    var TempCtor = function () {}
    TempCtor.prototype = superCtor.prototype
    ctor.prototype = new TempCtor()
    ctor.prototype.constructor = ctor
  }
}


/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(5);
module.exports = function (it) {
  if (!isObject(it)) throw TypeError(it + ' is not an object!');
  return it;
};


/***/ }),
/* 3 */
/***/ (function(module, exports) {

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
  ? window : typeof self != 'undefined' && self.Math == Math ? self
  // eslint-disable-next-line no-new-func
  : Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef


/***/ }),
/* 4 */
/***/ (function(module, exports) {

module.exports = function (exec) {
  try {
    return !!exec();
  } catch (e) {
    return true;
  }
};


/***/ }),
/* 5 */
/***/ (function(module, exports) {

module.exports = function (it) {
  return typeof it === 'object' ? it !== null : typeof it === 'function';
};


/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

/* eslint-disable node/no-deprecated-api */
var buffer = __webpack_require__(8)
var Buffer = buffer.Buffer

// alternative to using Object.keys for old browsers
function copyProps (src, dst) {
  for (var key in src) {
    dst[key] = src[key]
  }
}
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
  module.exports = buffer
} else {
  // Copy properties from require('buffer')
  copyProps(buffer, exports)
  exports.Buffer = SafeBuffer
}

function SafeBuffer (arg, encodingOrOffset, length) {
  return Buffer(arg, encodingOrOffset, length)
}

// Copy static methods from Buffer
copyProps(Buffer, SafeBuffer)

SafeBuffer.from = function (arg, encodingOrOffset, length) {
  if (typeof arg === 'number') {
    throw new TypeError('Argument must not be a number')
  }
  return Buffer(arg, encodingOrOffset, length)
}

SafeBuffer.alloc = function (size, fill, encoding) {
  if (typeof size !== 'number') {
    throw new TypeError('Argument must be a number')
  }
  var buf = Buffer(size)
  if (fill !== undefined) {
    if (typeof encoding === 'string') {
      buf.fill(fill, encoding)
    } else {
      buf.fill(fill)
    }
  } else {
    buf.fill(0)
  }
  return buf
}

SafeBuffer.allocUnsafe = function (size) {
  if (typeof size !== 'number') {
    throw new TypeError('Argument must be a number')
  }
  return Buffer(size)
}

SafeBuffer.allocUnsafeSlow = function (size) {
  if (typeof size !== 'number') {
    throw new TypeError('Argument must be a number')
  }
  return buffer.SlowBuffer(size)
}


/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

var store = __webpack_require__(70)('wks');
var uid = __webpack_require__(44);
var Symbol = __webpack_require__(3).Symbol;
var USE_SYMBOL = typeof Symbol == 'function';

var $exports = module.exports = function (name) {
  return store[name] || (store[name] =
    USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};

$exports.store = store;


/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
/* eslint-disable no-proto */



var base64 = __webpack_require__(414)
var ieee754 = __webpack_require__(415)
var isArray = __webpack_require__(416)

exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
exports.INSPECT_MAX_BYTES = 50

/**
 * If `Buffer.TYPED_ARRAY_SUPPORT`:
 *   === true    Use Uint8Array implementation (fastest)
 *   === false   Use Object implementation (most compatible, even IE6)
 *
 * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
 * Opera 11.6+, iOS 4.2+.
 *
 * Due to various browser bugs, sometimes the Object implementation will be used even
 * when the browser supports typed arrays.
 *
 * Note:
 *
 *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
 *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
 *
 *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
 *
 *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
 *     incorrect length in some situations.

 * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
 * get the Object implementation, which is slower but behaves correctly.
 */
Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  ? global.TYPED_ARRAY_SUPPORT
  : typedArraySupport()

/*
 * Export kMaxLength after typed array support is determined.
 */
exports.kMaxLength = kMaxLength()

function typedArraySupport () {
  try {
    var arr = new Uint8Array(1)
    arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
    return arr.foo() === 42 && // typed array instances can be augmented
        typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
        arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  } catch (e) {
    return false
  }
}

function kMaxLength () {
  return Buffer.TYPED_ARRAY_SUPPORT
    ? 0x7fffffff
    : 0x3fffffff
}

function createBuffer (that, length) {
  if (kMaxLength() < length) {
    throw new RangeError('Invalid typed array length')
  }
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    // Return an augmented `Uint8Array` instance, for best performance
    that = new Uint8Array(length)
    that.__proto__ = Buffer.prototype
  } else {
    // Fallback: Return an object instance of the Buffer class
    if (that === null) {
      that = new Buffer(length)
    }
    that.length = length
  }

  return that
}

/**
 * The Buffer constructor returns instances of `Uint8Array` that have their
 * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
 * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
 * and the `Uint8Array` methods. Square bracket notation works as expected -- it
 * returns a single octet.
 *
 * The `Uint8Array` prototype remains unmodified.
 */

function Buffer (arg, encodingOrOffset, length) {
  if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
    return new Buffer(arg, encodingOrOffset, length)
  }

  // Common case.
  if (typeof arg === 'number') {
    if (typeof encodingOrOffset === 'string') {
      throw new Error(
        'If encoding is specified then the first argument must be a string'
      )
    }
    return allocUnsafe(this, arg)
  }
  return from(this, arg, encodingOrOffset, length)
}

Buffer.poolSize = 8192 // not used by this implementation

// TODO: Legacy, not needed anymore. Remove in next major version.
Buffer._augment = function (arr) {
  arr.__proto__ = Buffer.prototype
  return arr
}

function from (that, value, encodingOrOffset, length) {
  if (typeof value === 'number') {
    throw new TypeError('"value" argument must not be a number')
  }

  if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
    return fromArrayBuffer(that, value, encodingOrOffset, length)
  }

  if (typeof value === 'string') {
    return fromString(that, value, encodingOrOffset)
  }

  return fromObject(that, value)
}

/**
 * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
 * if value is a number.
 * Buffer.from(str[, encoding])
 * Buffer.from(array)
 * Buffer.from(buffer)
 * Buffer.from(arrayBuffer[, byteOffset[, length]])
 **/
Buffer.from = function (value, encodingOrOffset, length) {
  return from(null, value, encodingOrOffset, length)
}

if (Buffer.TYPED_ARRAY_SUPPORT) {
  Buffer.prototype.__proto__ = Uint8Array.prototype
  Buffer.__proto__ = Uint8Array
  if (typeof Symbol !== 'undefined' && Symbol.species &&
      Buffer[Symbol.species] === Buffer) {
    // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
    Object.defineProperty(Buffer, Symbol.species, {
      value: null,
      configurable: true
    })
  }
}

function assertSize (size) {
  if (typeof size !== 'number') {
    throw new TypeError('"size" argument must be a number')
  } else if (size < 0) {
    throw new RangeError('"size" argument must not be negative')
  }
}

function alloc (that, size, fill, encoding) {
  assertSize(size)
  if (size <= 0) {
    return createBuffer(that, size)
  }
  if (fill !== undefined) {
    // Only pay attention to encoding if it's a string. This
    // prevents accidentally sending in a number that would
    // be interpretted as a start offset.
    return typeof encoding === 'string'
      ? createBuffer(that, size).fill(fill, encoding)
      : createBuffer(that, size).fill(fill)
  }
  return createBuffer(that, size)
}

/**
 * Creates a new filled Buffer instance.
 * alloc(size[, fill[, encoding]])
 **/
Buffer.alloc = function (size, fill, encoding) {
  return alloc(null, size, fill, encoding)
}

function allocUnsafe (that, size) {
  assertSize(size)
  that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  if (!Buffer.TYPED_ARRAY_SUPPORT) {
    for (var i = 0; i < size; ++i) {
      that[i] = 0
    }
  }
  return that
}

/**
 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
 * */
Buffer.allocUnsafe = function (size) {
  return allocUnsafe(null, size)
}
/**
 * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
 */
Buffer.allocUnsafeSlow = function (size) {
  return allocUnsafe(null, size)
}

function fromString (that, string, encoding) {
  if (typeof encoding !== 'string' || encoding === '') {
    encoding = 'utf8'
  }

  if (!Buffer.isEncoding(encoding)) {
    throw new TypeError('"encoding" must be a valid string encoding')
  }

  var length = byteLength(string, encoding) | 0
  that = createBuffer(that, length)

  var actual = that.write(string, encoding)

  if (actual !== length) {
    // Writing a hex string, for example, that contains invalid characters will
    // cause everything after the first invalid character to be ignored. (e.g.
    // 'abxxcd' will be treated as 'ab')
    that = that.slice(0, actual)
  }

  return that
}

function fromArrayLike (that, array) {
  var length = array.length < 0 ? 0 : checked(array.length) | 0
  that = createBuffer(that, length)
  for (var i = 0; i < length; i += 1) {
    that[i] = array[i] & 255
  }
  return that
}

function fromArrayBuffer (that, array, byteOffset, length) {
  array.byteLength // this throws if `array` is not a valid ArrayBuffer

  if (byteOffset < 0 || array.byteLength < byteOffset) {
    throw new RangeError('\'offset\' is out of bounds')
  }

  if (array.byteLength < byteOffset + (length || 0)) {
    throw new RangeError('\'length\' is out of bounds')
  }

  if (byteOffset === undefined && length === undefined) {
    array = new Uint8Array(array)
  } else if (length === undefined) {
    array = new Uint8Array(array, byteOffset)
  } else {
    array = new Uint8Array(array, byteOffset, length)
  }

  if (Buffer.TYPED_ARRAY_SUPPORT) {
    // Return an augmented `Uint8Array` instance, for best performance
    that = array
    that.__proto__ = Buffer.prototype
  } else {
    // Fallback: Return an object instance of the Buffer class
    that = fromArrayLike(that, array)
  }
  return that
}

function fromObject (that, obj) {
  if (Buffer.isBuffer(obj)) {
    var len = checked(obj.length) | 0
    that = createBuffer(that, len)

    if (that.length === 0) {
      return that
    }

    obj.copy(that, 0, 0, len)
    return that
  }

  if (obj) {
    if ((typeof ArrayBuffer !== 'undefined' &&
        obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
      if (typeof obj.length !== 'number' || isnan(obj.length)) {
        return createBuffer(that, 0)
      }
      return fromArrayLike(that, obj)
    }

    if (obj.type === 'Buffer' && isArray(obj.data)) {
      return fromArrayLike(that, obj.data)
    }
  }

  throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
}

function checked (length) {
  // Note: cannot use `length < kMaxLength()` here because that fails when
  // length is NaN (which is otherwise coerced to zero.)
  if (length >= kMaxLength()) {
    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
                         'size: 0x' + kMaxLength().toString(16) + ' bytes')
  }
  return length | 0
}

function SlowBuffer (length) {
  if (+length != length) { // eslint-disable-line eqeqeq
    length = 0
  }
  return Buffer.alloc(+length)
}

Buffer.isBuffer = function isBuffer (b) {
  return !!(b != null && b._isBuffer)
}

Buffer.compare = function compare (a, b) {
  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
    throw new TypeError('Arguments must be Buffers')
  }

  if (a === b) return 0

  var x = a.length
  var y = b.length

  for (var i = 0, len = Math.min(x, y); i < len; ++i) {
    if (a[i] !== b[i]) {
      x = a[i]
      y = b[i]
      break
    }
  }

  if (x < y) return -1
  if (y < x) return 1
  return 0
}

Buffer.isEncoding = function isEncoding (encoding) {
  switch (String(encoding).toLowerCase()) {
    case 'hex':
    case 'utf8':
    case 'utf-8':
    case 'ascii':
    case 'latin1':
    case 'binary':
    case 'base64':
    case 'ucs2':
    case 'ucs-2':
    case 'utf16le':
    case 'utf-16le':
      return true
    default:
      return false
  }
}

Buffer.concat = function concat (list, length) {
  if (!isArray(list)) {
    throw new TypeError('"list" argument must be an Array of Buffers')
  }

  if (list.length === 0) {
    return Buffer.alloc(0)
  }

  var i
  if (length === undefined) {
    length = 0
    for (i = 0; i < list.length; ++i) {
      length += list[i].length
    }
  }

  var buffer = Buffer.allocUnsafe(length)
  var pos = 0
  for (i = 0; i < list.length; ++i) {
    var buf = list[i]
    if (!Buffer.isBuffer(buf)) {
      throw new TypeError('"list" argument must be an Array of Buffers')
    }
    buf.copy(buffer, pos)
    pos += buf.length
  }
  return buffer
}

function byteLength (string, encoding) {
  if (Buffer.isBuffer(string)) {
    return string.length
  }
  if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
      (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
    return string.byteLength
  }
  if (typeof string !== 'string') {
    string = '' + string
  }

  var len = string.length
  if (len === 0) return 0

  // Use a for loop to avoid recursion
  var loweredCase = false
  for (;;) {
    switch (encoding) {
      case 'ascii':
      case 'latin1':
      case 'binary':
        return len
      case 'utf8':
      case 'utf-8':
      case undefined:
        return utf8ToBytes(string).length
      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return len * 2
      case 'hex':
        return len >>> 1
      case 'base64':
        return base64ToBytes(string).length
      default:
        if (loweredCase) return utf8ToBytes(string).length // assume utf8
        encoding = ('' + encoding).toLowerCase()
        loweredCase = true
    }
  }
}
Buffer.byteLength = byteLength

function slowToString (encoding, start, end) {
  var loweredCase = false

  // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  // property of a typed array.

  // This behaves neither like String nor Uint8Array in that we set start/end
  // to their upper/lower bounds if the value passed is out of range.
  // undefined is handled specially as per ECMA-262 6th Edition,
  // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  if (start === undefined || start < 0) {
    start = 0
  }
  // Return early if start > this.length. Done here to prevent potential uint32
  // coercion fail below.
  if (start > this.length) {
    return ''
  }

  if (end === undefined || end > this.length) {
    end = this.length
  }

  if (end <= 0) {
    return ''
  }

  // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  end >>>= 0
  start >>>= 0

  if (end <= start) {
    return ''
  }

  if (!encoding) encoding = 'utf8'

  while (true) {
    switch (encoding) {
      case 'hex':
        return hexSlice(this, start, end)

      case 'utf8':
      case 'utf-8':
        return utf8Slice(this, start, end)

      case 'ascii':
        return asciiSlice(this, start, end)

      case 'latin1':
      case 'binary':
        return latin1Slice(this, start, end)

      case 'base64':
        return base64Slice(this, start, end)

      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return utf16leSlice(this, start, end)

      default:
        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
        encoding = (encoding + '').toLowerCase()
        loweredCase = true
    }
  }
}

// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
// Buffer instances.
Buffer.prototype._isBuffer = true

function swap (b, n, m) {
  var i = b[n]
  b[n] = b[m]
  b[m] = i
}

Buffer.prototype.swap16 = function swap16 () {
  var len = this.length
  if (len % 2 !== 0) {
    throw new RangeError('Buffer size must be a multiple of 16-bits')
  }
  for (var i = 0; i < len; i += 2) {
    swap(this, i, i + 1)
  }
  return this
}

Buffer.prototype.swap32 = function swap32 () {
  var len = this.length
  if (len % 4 !== 0) {
    throw new RangeError('Buffer size must be a multiple of 32-bits')
  }
  for (var i = 0; i < len; i += 4) {
    swap(this, i, i + 3)
    swap(this, i + 1, i + 2)
  }
  return this
}

Buffer.prototype.swap64 = function swap64 () {
  var len = this.length
  if (len % 8 !== 0) {
    throw new RangeError('Buffer size must be a multiple of 64-bits')
  }
  for (var i = 0; i < len; i += 8) {
    swap(this, i, i + 7)
    swap(this, i + 1, i + 6)
    swap(this, i + 2, i + 5)
    swap(this, i + 3, i + 4)
  }
  return this
}

Buffer.prototype.toString = function toString () {
  var length = this.length | 0
  if (length === 0) return ''
  if (arguments.length === 0) return utf8Slice(this, 0, length)
  return slowToString.apply(this, arguments)
}

Buffer.prototype.equals = function equals (b) {
  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  if (this === b) return true
  return Buffer.compare(this, b) === 0
}

Buffer.prototype.inspect = function inspect () {
  var str = ''
  var max = exports.INSPECT_MAX_BYTES
  if (this.length > 0) {
    str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
    if (this.length > max) str += ' ... '
  }
  return '<Buffer ' + str + '>'
}

Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  if (!Buffer.isBuffer(target)) {
    throw new TypeError('Argument must be a Buffer')
  }

  if (start === undefined) {
    start = 0
  }
  if (end === undefined) {
    end = target ? target.length : 0
  }
  if (thisStart === undefined) {
    thisStart = 0
  }
  if (thisEnd === undefined) {
    thisEnd = this.length
  }

  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
    throw new RangeError('out of range index')
  }

  if (thisStart >= thisEnd && start >= end) {
    return 0
  }
  if (thisStart >= thisEnd) {
    return -1
  }
  if (start >= end) {
    return 1
  }

  start >>>= 0
  end >>>= 0
  thisStart >>>= 0
  thisEnd >>>= 0

  if (this === target) return 0

  var x = thisEnd - thisStart
  var y = end - start
  var len = Math.min(x, y)

  var thisCopy = this.slice(thisStart, thisEnd)
  var targetCopy = target.slice(start, end)

  for (var i = 0; i < len; ++i) {
    if (thisCopy[i] !== targetCopy[i]) {
      x = thisCopy[i]
      y = targetCopy[i]
      break
    }
  }

  if (x < y) return -1
  if (y < x) return 1
  return 0
}

// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
//
// Arguments:
// - buffer - a Buffer to search
// - val - a string, Buffer, or number
// - byteOffset - an index into `buffer`; will be clamped to an int32
// - encoding - an optional encoding, relevant is val is a string
// - dir - true for indexOf, false for lastIndexOf
function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  // Empty buffer means no match
  if (buffer.length === 0) return -1

  // Normalize byteOffset
  if (typeof byteOffset === 'string') {
    encoding = byteOffset
    byteOffset = 0
  } else if (byteOffset > 0x7fffffff) {
    byteOffset = 0x7fffffff
  } else if (byteOffset < -0x80000000) {
    byteOffset = -0x80000000
  }
  byteOffset = +byteOffset  // Coerce to Number.
  if (isNaN(byteOffset)) {
    // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
    byteOffset = dir ? 0 : (buffer.length - 1)
  }

  // Normalize byteOffset: negative offsets start from the end of the buffer
  if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  if (byteOffset >= buffer.length) {
    if (dir) return -1
    else byteOffset = buffer.length - 1
  } else if (byteOffset < 0) {
    if (dir) byteOffset = 0
    else return -1
  }

  // Normalize val
  if (typeof val === 'string') {
    val = Buffer.from(val, encoding)
  }

  // Finally, search either indexOf (if dir is true) or lastIndexOf
  if (Buffer.isBuffer(val)) {
    // Special case: looking for empty string/buffer always fails
    if (val.length === 0) {
      return -1
    }
    return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  } else if (typeof val === 'number') {
    val = val & 0xFF // Search for a byte value [0-255]
    if (Buffer.TYPED_ARRAY_SUPPORT &&
        typeof Uint8Array.prototype.indexOf === 'function') {
      if (dir) {
        return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
      } else {
        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
      }
    }
    return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  }

  throw new TypeError('val must be string, number or Buffer')
}

function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  var indexSize = 1
  var arrLength = arr.length
  var valLength = val.length

  if (encoding !== undefined) {
    encoding = String(encoding).toLowerCase()
    if (encoding === 'ucs2' || encoding === 'ucs-2' ||
        encoding === 'utf16le' || encoding === 'utf-16le') {
      if (arr.length < 2 || val.length < 2) {
        return -1
      }
      indexSize = 2
      arrLength /= 2
      valLength /= 2
      byteOffset /= 2
    }
  }

  function read (buf, i) {
    if (indexSize === 1) {
      return buf[i]
    } else {
      return buf.readUInt16BE(i * indexSize)
    }
  }

  var i
  if (dir) {
    var foundIndex = -1
    for (i = byteOffset; i < arrLength; i++) {
      if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
        if (foundIndex === -1) foundIndex = i
        if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
      } else {
        if (foundIndex !== -1) i -= i - foundIndex
        foundIndex = -1
      }
    }
  } else {
    if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
    for (i = byteOffset; i >= 0; i--) {
      var found = true
      for (var j = 0; j < valLength; j++) {
        if (read(arr, i + j) !== read(val, j)) {
          found = false
          break
        }
      }
      if (found) return i
    }
  }

  return -1
}

Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  return this.indexOf(val, byteOffset, encoding) !== -1
}

Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
}

Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
}

function hexWrite (buf, string, offset, length) {
  offset = Number(offset) || 0
  var remaining = buf.length - offset
  if (!length) {
    length = remaining
  } else {
    length = Number(length)
    if (length > remaining) {
      length = remaining
    }
  }

  // must be an even number of digits
  var strLen = string.length
  if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')

  if (length > strLen / 2) {
    length = strLen / 2
  }
  for (var i = 0; i < length; ++i) {
    var parsed = parseInt(string.substr(i * 2, 2), 16)
    if (isNaN(parsed)) return i
    buf[offset + i] = parsed
  }
  return i
}

function utf8Write (buf, string, offset, length) {
  return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
}

function asciiWrite (buf, string, offset, length) {
  return blitBuffer(asciiToBytes(string), buf, offset, length)
}

function latin1Write (buf, string, offset, length) {
  return asciiWrite(buf, string, offset, length)
}

function base64Write (buf, string, offset, length) {
  return blitBuffer(base64ToBytes(string), buf, offset, length)
}

function ucs2Write (buf, string, offset, length) {
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
}

Buffer.prototype.write = function write (string, offset, length, encoding) {
  // Buffer#write(string)
  if (offset === undefined) {
    encoding = 'utf8'
    length = this.length
    offset = 0
  // Buffer#write(string, encoding)
  } else if (length === undefined && typeof offset === 'string') {
    encoding = offset
    length = this.length
    offset = 0
  // Buffer#write(string, offset[, length][, encoding])
  } else if (isFinite(offset)) {
    offset = offset | 0
    if (isFinite(length)) {
      length = length | 0
      if (encoding === undefined) encoding = 'utf8'
    } else {
      encoding = length
      length = undefined
    }
  // legacy write(string, encoding, offset, length) - remove in v0.13
  } else {
    throw new Error(
      'Buffer.write(string, encoding, offset[, length]) is no longer supported'
    )
  }

  var remaining = this.length - offset
  if (length === undefined || length > remaining) length = remaining

  if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
    throw new RangeError('Attempt to write outside buffer bounds')
  }

  if (!encoding) encoding = 'utf8'

  var loweredCase = false
  for (;;) {
    switch (encoding) {
      case 'hex':
        return hexWrite(this, string, offset, length)

      case 'utf8':
      case 'utf-8':
        return utf8Write(this, string, offset, length)

      case 'ascii':
        return asciiWrite(this, string, offset, length)

      case 'latin1':
      case 'binary':
        return latin1Write(this, string, offset, length)

      case 'base64':
        // Warning: maxLength not taken into account in base64Write
        return base64Write(this, string, offset, length)

      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return ucs2Write(this, string, offset, length)

      default:
        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
        encoding = ('' + encoding).toLowerCase()
        loweredCase = true
    }
  }
}

Buffer.prototype.toJSON = function toJSON () {
  return {
    type: 'Buffer',
    data: Array.prototype.slice.call(this._arr || this, 0)
  }
}

function base64Slice (buf, start, end) {
  if (start === 0 && end === buf.length) {
    return base64.fromByteArray(buf)
  } else {
    return base64.fromByteArray(buf.slice(start, end))
  }
}

function utf8Slice (buf, start, end) {
  end = Math.min(buf.length, end)
  var res = []

  var i = start
  while (i < end) {
    var firstByte = buf[i]
    var codePoint = null
    var bytesPerSequence = (firstByte > 0xEF) ? 4
      : (firstByte > 0xDF) ? 3
      : (firstByte > 0xBF) ? 2
      : 1

    if (i + bytesPerSequence <= end) {
      var secondByte, thirdByte, fourthByte, tempCodePoint

      switch (bytesPerSequence) {
        case 1:
          if (firstByte < 0x80) {
            codePoint = firstByte
          }
          break
        case 2:
          secondByte = buf[i + 1]
          if ((secondByte & 0xC0) === 0x80) {
            tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
            if (tempCodePoint > 0x7F) {
              codePoint = tempCodePoint
            }
          }
          break
        case 3:
          secondByte = buf[i + 1]
          thirdByte = buf[i + 2]
          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
            tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
            if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
              codePoint = tempCodePoint
            }
          }
          break
        case 4:
          secondByte = buf[i + 1]
          thirdByte = buf[i + 2]
          fourthByte = buf[i + 3]
          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
            tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
            if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
              codePoint = tempCodePoint
            }
          }
      }
    }

    if (codePoint === null) {
      // we did not generate a valid codePoint so insert a
      // replacement char (U+FFFD) and advance only 1 byte
      codePoint = 0xFFFD
      bytesPerSequence = 1
    } else if (codePoint > 0xFFFF) {
      // encode to utf16 (surrogate pair dance)
      codePoint -= 0x10000
      res.push(codePoint >>> 10 & 0x3FF | 0xD800)
      codePoint = 0xDC00 | codePoint & 0x3FF
    }

    res.push(codePoint)
    i += bytesPerSequence
  }

  return decodeCodePointsArray(res)
}

// Based on http://stackoverflow.com/a/22747272/680742, the browser with
// the lowest limit is Chrome, with 0x10000 args.
// We go 1 magnitude less, for safety
var MAX_ARGUMENTS_LENGTH = 0x1000

function decodeCodePointsArray (codePoints) {
  var len = codePoints.length
  if (len <= MAX_ARGUMENTS_LENGTH) {
    return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  }

  // Decode in chunks to avoid "call stack size exceeded".
  var res = ''
  var i = 0
  while (i < len) {
    res += String.fromCharCode.apply(
      String,
      codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
    )
  }
  return res
}

function asciiSlice (buf, start, end) {
  var ret = ''
  end = Math.min(buf.length, end)

  for (var i = start; i < end; ++i) {
    ret += String.fromCharCode(buf[i] & 0x7F)
  }
  return ret
}

function latin1Slice (buf, start, end) {
  var ret = ''
  end = Math.min(buf.length, end)

  for (var i = start; i < end; ++i) {
    ret += String.fromCharCode(buf[i])
  }
  return ret
}

function hexSlice (buf, start, end) {
  var len = buf.length

  if (!start || start < 0) start = 0
  if (!end || end < 0 || end > len) end = len

  var out = ''
  for (var i = start; i < end; ++i) {
    out += toHex(buf[i])
  }
  return out
}

function utf16leSlice (buf, start, end) {
  var bytes = buf.slice(start, end)
  var res = ''
  for (var i = 0; i < bytes.length; i += 2) {
    res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  }
  return res
}

Buffer.prototype.slice = function slice (start, end) {
  var len = this.length
  start = ~~start
  end = end === undefined ? len : ~~end

  if (start < 0) {
    start += len
    if (start < 0) start = 0
  } else if (start > len) {
    start = len
  }

  if (end < 0) {
    end += len
    if (end < 0) end = 0
  } else if (end > len) {
    end = len
  }

  if (end < start) end = start

  var newBuf
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    newBuf = this.subarray(start, end)
    newBuf.__proto__ = Buffer.prototype
  } else {
    var sliceLen = end - start
    newBuf = new Buffer(sliceLen, undefined)
    for (var i = 0; i < sliceLen; ++i) {
      newBuf[i] = this[i + start]
    }
  }

  return newBuf
}

/*
 * Need to make sure that buffer isn't trying to write out of bounds.
 */
function checkOffset (offset, ext, length) {
  if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
}

Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) checkOffset(offset, byteLength, this.length)

  var val = this[offset]
  var mul = 1
  var i = 0
  while (++i < byteLength && (mul *= 0x100)) {
    val += this[offset + i] * mul
  }

  return val
}

Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) {
    checkOffset(offset, byteLength, this.length)
  }

  var val = this[offset + --byteLength]
  var mul = 1
  while (byteLength > 0 && (mul *= 0x100)) {
    val += this[offset + --byteLength] * mul
  }

  return val
}

Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 1, this.length)
  return this[offset]
}

Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  return this[offset] | (this[offset + 1] << 8)
}

Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  return (this[offset] << 8) | this[offset + 1]
}

Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return ((this[offset]) |
      (this[offset + 1] << 8) |
      (this[offset + 2] << 16)) +
      (this[offset + 3] * 0x1000000)
}

Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return (this[offset] * 0x1000000) +
    ((this[offset + 1] << 16) |
    (this[offset + 2] << 8) |
    this[offset + 3])
}

Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) checkOffset(offset, byteLength, this.length)

  var val = this[offset]
  var mul = 1
  var i = 0
  while (++i < byteLength && (mul *= 0x100)) {
    val += this[offset + i] * mul
  }
  mul *= 0x80

  if (val >= mul) val -= Math.pow(2, 8 * byteLength)

  return val
}

Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) checkOffset(offset, byteLength, this.length)

  var i = byteLength
  var mul = 1
  var val = this[offset + --i]
  while (i > 0 && (mul *= 0x100)) {
    val += this[offset + --i] * mul
  }
  mul *= 0x80

  if (val >= mul) val -= Math.pow(2, 8 * byteLength)

  return val
}

Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 1, this.length)
  if (!(this[offset] & 0x80)) return (this[offset])
  return ((0xff - this[offset] + 1) * -1)
}

Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  var val = this[offset] | (this[offset + 1] << 8)
  return (val & 0x8000) ? val | 0xFFFF0000 : val
}

Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 2, this.length)
  var val = this[offset + 1] | (this[offset] << 8)
  return (val & 0x8000) ? val | 0xFFFF0000 : val
}

Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return (this[offset]) |
    (this[offset + 1] << 8) |
    (this[offset + 2] << 16) |
    (this[offset + 3] << 24)
}

Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)

  return (this[offset] << 24) |
    (this[offset + 1] << 16) |
    (this[offset + 2] << 8) |
    (this[offset + 3])
}

Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, true, 23, 4)
}

Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, false, 23, 4)
}

Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 8, this.length)
  return ieee754.read(this, offset, true, 52, 8)
}

Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  if (!noAssert) checkOffset(offset, 8, this.length)
  return ieee754.read(this, offset, false, 52, 8)
}

function checkInt (buf, value, offset, ext, max, min) {
  if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  if (offset + ext > buf.length) throw new RangeError('Index out of range')
}

Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) {
    var maxBytes = Math.pow(2, 8 * byteLength) - 1
    checkInt(this, value, offset, byteLength, maxBytes, 0)
  }

  var mul = 1
  var i = 0
  this[offset] = value & 0xFF
  while (++i < byteLength && (mul *= 0x100)) {
    this[offset + i] = (value / mul) & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  byteLength = byteLength | 0
  if (!noAssert) {
    var maxBytes = Math.pow(2, 8 * byteLength) - 1
    checkInt(this, value, offset, byteLength, maxBytes, 0)
  }

  var i = byteLength - 1
  var mul = 1
  this[offset + i] = value & 0xFF
  while (--i >= 0 && (mul *= 0x100)) {
    this[offset + i] = (value / mul) & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  this[offset] = (value & 0xff)
  return offset + 1
}

function objectWriteUInt16 (buf, value, offset, littleEndian) {
  if (value < 0) value = 0xffff + value + 1
  for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
    buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
      (littleEndian ? i : 1 - i) * 8
  }
}

Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value & 0xff)
    this[offset + 1] = (value >>> 8)
  } else {
    objectWriteUInt16(this, value, offset, true)
  }
  return offset + 2
}

Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 8)
    this[offset + 1] = (value & 0xff)
  } else {
    objectWriteUInt16(this, value, offset, false)
  }
  return offset + 2
}

function objectWriteUInt32 (buf, value, offset, littleEndian) {
  if (value < 0) value = 0xffffffff + value + 1
  for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
    buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  }
}

Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset + 3] = (value >>> 24)
    this[offset + 2] = (value >>> 16)
    this[offset + 1] = (value >>> 8)
    this[offset] = (value & 0xff)
  } else {
    objectWriteUInt32(this, value, offset, true)
  }
  return offset + 4
}

Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 24)
    this[offset + 1] = (value >>> 16)
    this[offset + 2] = (value >>> 8)
    this[offset + 3] = (value & 0xff)
  } else {
    objectWriteUInt32(this, value, offset, false)
  }
  return offset + 4
}

Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) {
    var limit = Math.pow(2, 8 * byteLength - 1)

    checkInt(this, value, offset, byteLength, limit - 1, -limit)
  }

  var i = 0
  var mul = 1
  var sub = 0
  this[offset] = value & 0xFF
  while (++i < byteLength && (mul *= 0x100)) {
    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
      sub = 1
    }
    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) {
    var limit = Math.pow(2, 8 * byteLength - 1)

    checkInt(this, value, offset, byteLength, limit - 1, -limit)
  }

  var i = byteLength - 1
  var mul = 1
  var sub = 0
  this[offset + i] = value & 0xFF
  while (--i >= 0 && (mul *= 0x100)) {
    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
      sub = 1
    }
    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  }

  return offset + byteLength
}

Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  if (value < 0) value = 0xff + value + 1
  this[offset] = (value & 0xff)
  return offset + 1
}

Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value & 0xff)
    this[offset + 1] = (value >>> 8)
  } else {
    objectWriteUInt16(this, value, offset, true)
  }
  return offset + 2
}

Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 8)
    this[offset + 1] = (value & 0xff)
  } else {
    objectWriteUInt16(this, value, offset, false)
  }
  return offset + 2
}

Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value & 0xff)
    this[offset + 1] = (value >>> 8)
    this[offset + 2] = (value >>> 16)
    this[offset + 3] = (value >>> 24)
  } else {
    objectWriteUInt32(this, value, offset, true)
  }
  return offset + 4
}

Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  value = +value
  offset = offset | 0
  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  if (value < 0) value = 0xffffffff + value + 1
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    this[offset] = (value >>> 24)
    this[offset + 1] = (value >>> 16)
    this[offset + 2] = (value >>> 8)
    this[offset + 3] = (value & 0xff)
  } else {
    objectWriteUInt32(this, value, offset, false)
  }
  return offset + 4
}

function checkIEEE754 (buf, value, offset, ext, max, min) {
  if (offset + ext > buf.length) throw new RangeError('Index out of range')
  if (offset < 0) throw new RangeError('Index out of range')
}

function writeFloat (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  }
  ieee754.write(buf, value, offset, littleEndian, 23, 4)
  return offset + 4
}

Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  return writeFloat(this, value, offset, true, noAssert)
}

Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  return writeFloat(this, value, offset, false, noAssert)
}

function writeDouble (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  }
  ieee754.write(buf, value, offset, littleEndian, 52, 8)
  return offset + 8
}

Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  return writeDouble(this, value, offset, true, noAssert)
}

Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  return writeDouble(this, value, offset, false, noAssert)
}

// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  if (!start) start = 0
  if (!end && end !== 0) end = this.length
  if (targetStart >= target.length) targetStart = target.length
  if (!targetStart) targetStart = 0
  if (end > 0 && end < start) end = start

  // Copy 0 bytes; we're done
  if (end === start) return 0
  if (target.length === 0 || this.length === 0) return 0

  // Fatal error conditions
  if (targetStart < 0) {
    throw new RangeError('targetStart out of bounds')
  }
  if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  if (end < 0) throw new RangeError('sourceEnd out of bounds')

  // Are we oob?
  if (end > this.length) end = this.length
  if (target.length - targetStart < end - start) {
    end = target.length - targetStart + start
  }

  var len = end - start
  var i

  if (this === target && start < targetStart && targetStart < end) {
    // descending copy from end
    for (i = len - 1; i >= 0; --i) {
      target[i + targetStart] = this[i + start]
    }
  } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
    // ascending copy from start
    for (i = 0; i < len; ++i) {
      target[i + targetStart] = this[i + start]
    }
  } else {
    Uint8Array.prototype.set.call(
      target,
      this.subarray(start, start + len),
      targetStart
    )
  }

  return len
}

// Usage:
//    buffer.fill(number[, offset[, end]])
//    buffer.fill(buffer[, offset[, end]])
//    buffer.fill(string[, offset[, end]][, encoding])
Buffer.prototype.fill = function fill (val, start, end, encoding) {
  // Handle string cases:
  if (typeof val === 'string') {
    if (typeof start === 'string') {
      encoding = start
      start = 0
      end = this.length
    } else if (typeof end === 'string') {
      encoding = end
      end = this.length
    }
    if (val.length === 1) {
      var code = val.charCodeAt(0)
      if (code < 256) {
        val = code
      }
    }
    if (encoding !== undefined && typeof encoding !== 'string') {
      throw new TypeError('encoding must be a string')
    }
    if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
      throw new TypeError('Unknown encoding: ' + encoding)
    }
  } else if (typeof val === 'number') {
    val = val & 255
  }

  // Invalid ranges are not set to a default, so can range check early.
  if (start < 0 || this.length < start || this.length < end) {
    throw new RangeError('Out of range index')
  }

  if (end <= start) {
    return this
  }

  start = start >>> 0
  end = end === undefined ? this.length : end >>> 0

  if (!val) val = 0

  var i
  if (typeof val === 'number') {
    for (i = start; i < end; ++i) {
      this[i] = val
    }
  } else {
    var bytes = Buffer.isBuffer(val)
      ? val
      : utf8ToBytes(new Buffer(val, encoding).toString())
    var len = bytes.length
    for (i = 0; i < end - start; ++i) {
      this[i + start] = bytes[i % len]
    }
  }

  return this
}

// HELPER FUNCTIONS
// ================

var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g

function base64clean (str) {
  // Node strips out invalid characters like \n and \t from the string, base64-js does not
  str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  // Node converts strings with length < 2 to ''
  if (str.length < 2) return ''
  // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  while (str.length % 4 !== 0) {
    str = str + '='
  }
  return str
}

function stringtrim (str) {
  if (str.trim) return str.trim()
  return str.replace(/^\s+|\s+$/g, '')
}

function toHex (n) {
  if (n < 16) return '0' + n.toString(16)
  return n.toString(16)
}

function utf8ToBytes (string, units) {
  units = units || Infinity
  var codePoint
  var length = string.length
  var leadSurrogate = null
  var bytes = []

  for (var i = 0; i < length; ++i) {
    codePoint = string.charCodeAt(i)

    // is surrogate component
    if (codePoint > 0xD7FF && codePoint < 0xE000) {
      // last char was a lead
      if (!leadSurrogate) {
        // no lead yet
        if (codePoint > 0xDBFF) {
          // unexpected trail
          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
          continue
        } else if (i + 1 === length) {
          // unpaired lead
          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
          continue
        }

        // valid lead
        leadSurrogate = codePoint

        continue
      }

      // 2 leads in a row
      if (codePoint < 0xDC00) {
        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
        leadSurrogate = codePoint
        continue
      }

      // valid surrogate pair
      codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
    } else if (leadSurrogate) {
      // valid bmp char, but last char was a lead
      if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
    }

    leadSurrogate = null

    // encode utf8
    if (codePoint < 0x80) {
      if ((units -= 1) < 0) break
      bytes.push(codePoint)
    } else if (codePoint < 0x800) {
      if ((units -= 2) < 0) break
      bytes.push(
        codePoint >> 0x6 | 0xC0,
        codePoint & 0x3F | 0x80
      )
    } else if (codePoint < 0x10000) {
      if ((units -= 3) < 0) break
      bytes.push(
        codePoint >> 0xC | 0xE0,
        codePoint >> 0x6 & 0x3F | 0x80,
        codePoint & 0x3F | 0x80
      )
    } else if (codePoint < 0x110000) {
      if ((units -= 4) < 0) break
      bytes.push(
        codePoint >> 0x12 | 0xF0,
        codePoint >> 0xC & 0x3F | 0x80,
        codePoint >> 0x6 & 0x3F | 0x80,
        codePoint & 0x3F | 0x80
      )
    } else {
      throw new Error('Invalid code point')
    }
  }

  return bytes
}

function asciiToBytes (str) {
  var byteArray = []
  for (var i = 0; i < str.length; ++i) {
    // Node's code seems to be doing this and not & 0x7F..
    byteArray.push(str.charCodeAt(i) & 0xFF)
  }
  return byteArray
}

function utf16leToBytes (str, units) {
  var c, hi, lo
  var byteArray = []
  for (var i = 0; i < str.length; ++i) {
    if ((units -= 2) < 0) break

    c = str.charCodeAt(i)
    hi = c >> 8
    lo = c % 256
    byteArray.push(lo)
    byteArray.push(hi)
  }

  return byteArray
}

function base64ToBytes (str) {
  return base64.toByteArray(base64clean(str))
}

function blitBuffer (src, dst, offset, length) {
  for (var i = 0; i < length; ++i) {
    if ((i + offset >= dst.length) || (i >= src.length)) break
    dst[i + offset] = src[i]
  }
  return i
}

function isnan (val) {
  return val !== val // eslint-disable-line no-self-compare
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)))

/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {

// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(4)(function () {
  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {

var anObject = __webpack_require__(2);
var IE8_DOM_DEFINE = __webpack_require__(128);
var toPrimitive = __webpack_require__(31);
var dP = Object.defineProperty;

exports.f = __webpack_require__(9) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  anObject(O);
  P = toPrimitive(P, true);
  anObject(Attributes);
  if (IE8_DOM_DEFINE) try {
    return dP(O, P, Attributes);
  } catch (e) { /* empty */ }
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  if ('value' in Attributes) O[P] = Attributes.value;
  return O;
};


/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.15 ToLength
var toInteger = __webpack_require__(33);
var min = Math.min;
module.exports = function (it) {
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};


/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {(function (module, exports) {
  'use strict';

  // Utils
  function assert (val, msg) {
    if (!val) throw new Error(msg || 'Assertion failed');
  }

  // Could use `inherits` module, but don't want to move from single file
  // architecture yet.
  function inherits (ctor, superCtor) {
    ctor.super_ = superCtor;
    var TempCtor = function () {};
    TempCtor.prototype = superCtor.prototype;
    ctor.prototype = new TempCtor();
    ctor.prototype.constructor = ctor;
  }

  // BN

  function BN (number, base, endian) {
    if (BN.isBN(number)) {
      return number;
    }

    this.negative = 0;
    this.words = null;
    this.length = 0;

    // Reduction context
    this.red = null;

    if (number !== null) {
      if (base === 'le' || base === 'be') {
        endian = base;
        base = 10;
      }

      this._init(number || 0, base || 10, endian || 'be');
    }
  }
  if (typeof module === 'object') {
    module.exports = BN;
  } else {
    exports.BN = BN;
  }

  BN.BN = BN;
  BN.wordSize = 26;

  var Buffer;
  try {
    Buffer = __webpack_require__(455).Buffer;
  } catch (e) {
  }

  BN.isBN = function isBN (num) {
    if (num instanceof BN) {
      return true;
    }

    return num !== null && typeof num === 'object' &&
      num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);
  };

  BN.max = function max (left, right) {
    if (left.cmp(right) > 0) return left;
    return right;
  };

  BN.min = function min (left, right) {
    if (left.cmp(right) < 0) return left;
    return right;
  };

  BN.prototype._init = function init (number, base, endian) {
    if (typeof number === 'number') {
      return this._initNumber(number, base, endian);
    }

    if (typeof number === 'object') {
      return this._initArray(number, base, endian);
    }

    if (base === 'hex') {
      base = 16;
    }
    assert(base === (base | 0) && base >= 2 && base <= 36);

    number = number.toString().replace(/\s+/g, '');
    var start = 0;
    if (number[0] === '-') {
      start++;
    }

    if (base === 16) {
      this._parseHex(number, start);
    } else {
      this._parseBase(number, base, start);
    }

    if (number[0] === '-') {
      this.negative = 1;
    }

    this.strip();

    if (endian !== 'le') return;

    this._initArray(this.toArray(), base, endian);
  };

  BN.prototype._initNumber = function _initNumber (number, base, endian) {
    if (number < 0) {
      this.negative = 1;
      number = -number;
    }
    if (number < 0x4000000) {
      this.words = [ number & 0x3ffffff ];
      this.length = 1;
    } else if (number < 0x10000000000000) {
      this.words = [
        number & 0x3ffffff,
        (number / 0x4000000) & 0x3ffffff
      ];
      this.length = 2;
    } else {
      assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)
      this.words = [
        number & 0x3ffffff,
        (number / 0x4000000) & 0x3ffffff,
        1
      ];
      this.length = 3;
    }

    if (endian !== 'le') return;

    // Reverse the bytes
    this._initArray(this.toArray(), base, endian);
  };

  BN.prototype._initArray = function _initArray (number, base, endian) {
    // Perhaps a Uint8Array
    assert(typeof number.length === 'number');
    if (number.length <= 0) {
      this.words = [ 0 ];
      this.length = 1;
      return this;
    }

    this.length = Math.ceil(number.length / 3);
    this.words = new Array(this.length);
    for (var i = 0; i < this.length; i++) {
      this.words[i] = 0;
    }

    var j, w;
    var off = 0;
    if (endian === 'be') {
      for (i = number.length - 1, j = 0; i >= 0; i -= 3) {
        w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);
        this.words[j] |= (w << off) & 0x3ffffff;
        this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;
        off += 24;
        if (off >= 26) {
          off -= 26;
          j++;
        }
      }
    } else if (endian === 'le') {
      for (i = 0, j = 0; i < number.length; i += 3) {
        w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);
        this.words[j] |= (w << off) & 0x3ffffff;
        this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;
        off += 24;
        if (off >= 26) {
          off -= 26;
          j++;
        }
      }
    }
    return this.strip();
  };

  function parseHex (str, start, end) {
    var r = 0;
    var len = Math.min(str.length, end);
    for (var i = start; i < len; i++) {
      var c = str.charCodeAt(i) - 48;

      r <<= 4;

      // 'a' - 'f'
      if (c >= 49 && c <= 54) {
        r |= c - 49 + 0xa;

      // 'A' - 'F'
      } else if (c >= 17 && c <= 22) {
        r |= c - 17 + 0xa;

      // '0' - '9'
      } else {
        r |= c & 0xf;
      }
    }
    return r;
  }

  BN.prototype._parseHex = function _parseHex (number, start) {
    // Create possibly bigger array to ensure that it fits the number
    this.length = Math.ceil((number.length - start) / 6);
    this.words = new Array(this.length);
    for (var i = 0; i < this.length; i++) {
      this.words[i] = 0;
    }

    var j, w;
    // Scan 24-bit chunks and add them to the number
    var off = 0;
    for (i = number.length - 6, j = 0; i >= start; i -= 6) {
      w = parseHex(number, i, i + 6);
      this.words[j] |= (w << off) & 0x3ffffff;
      // NOTE: `0x3fffff` is intentional here, 26bits max shift + 24bit hex limb
      this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;
      off += 24;
      if (off >= 26) {
        off -= 26;
        j++;
      }
    }
    if (i + 6 !== start) {
      w = parseHex(number, start, i + 6);
      this.words[j] |= (w << off) & 0x3ffffff;
      this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;
    }
    this.strip();
  };

  function parseBase (str, start, end, mul) {
    var r = 0;
    var len = Math.min(str.length, end);
    for (var i = start; i < len; i++) {
      var c = str.charCodeAt(i) - 48;

      r *= mul;

      // 'a'
      if (c >= 49) {
        r += c - 49 + 0xa;

      // 'A'
      } else if (c >= 17) {
        r += c - 17 + 0xa;

      // '0' - '9'
      } else {
        r += c;
      }
    }
    return r;
  }

  BN.prototype._parseBase = function _parseBase (number, base, start) {
    // Initialize as zero
    this.words = [ 0 ];
    this.length = 1;

    // Find length of limb in base
    for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {
      limbLen++;
    }
    limbLen--;
    limbPow = (limbPow / base) | 0;

    var total = number.length - start;
    var mod = total % limbLen;
    var end = Math.min(total, total - mod) + start;

    var word = 0;
    for (var i = start; i < end; i += limbLen) {
      word = parseBase(number, i, i + limbLen, base);

      this.imuln(limbPow);
      if (this.words[0] + word < 0x4000000) {
        this.words[0] += word;
      } else {
        this._iaddn(word);
      }
    }

    if (mod !== 0) {
      var pow = 1;
      word = parseBase(number, i, number.length, base);

      for (i = 0; i < mod; i++) {
        pow *= base;
      }

      this.imuln(pow);
      if (this.words[0] + word < 0x4000000) {
        this.words[0] += word;
      } else {
        this._iaddn(word);
      }
    }
  };

  BN.prototype.copy = function copy (dest) {
    dest.words = new Array(this.length);
    for (var i = 0; i < this.length; i++) {
      dest.words[i] = this.words[i];
    }
    dest.length = this.length;
    dest.negative = this.negative;
    dest.red = this.red;
  };

  BN.prototype.clone = function clone () {
    var r = new BN(null);
    this.copy(r);
    return r;
  };

  BN.prototype._expand = function _expand (size) {
    while (this.length < size) {
      this.words[this.length++] = 0;
    }
    return this;
  };

  // Remove leading `0` from `this`
  BN.prototype.strip = function strip () {
    while (this.length > 1 && this.words[this.length - 1] === 0) {
      this.length--;
    }
    return this._normSign();
  };

  BN.prototype._normSign = function _normSign () {
    // -0 = 0
    if (this.length === 1 && this.words[0] === 0) {
      this.negative = 0;
    }
    return this;
  };

  BN.prototype.inspect = function inspect () {
    return (this.red ? '<BN-R: ' : '<BN: ') + this.toString(16) + '>';
  };

  /*

  var zeros = [];
  var groupSizes = [];
  var groupBases = [];

  var s = '';
  var i = -1;
  while (++i < BN.wordSize) {
    zeros[i] = s;
    s += '0';
  }
  groupSizes[0] = 0;
  groupSizes[1] = 0;
  groupBases[0] = 0;
  groupBases[1] = 0;
  var base = 2 - 1;
  while (++base < 36 + 1) {
    var groupSize = 0;
    var groupBase = 1;
    while (groupBase < (1 << BN.wordSize) / base) {
      groupBase *= base;
      groupSize += 1;
    }
    groupSizes[base] = groupSize;
    groupBases[base] = groupBase;
  }

  */

  var zeros = [
    '',
    '0',
    '00',
    '000',
    '0000',
    '00000',
    '000000',
    '0000000',
    '00000000',
    '000000000',
    '0000000000',
    '00000000000',
    '000000000000',
    '0000000000000',
    '00000000000000',
    '000000000000000',
    '0000000000000000',
    '00000000000000000',
    '000000000000000000',
    '0000000000000000000',
    '00000000000000000000',
    '000000000000000000000',
    '0000000000000000000000',
    '00000000000000000000000',
    '000000000000000000000000',
    '0000000000000000000000000'
  ];

  var groupSizes = [
    0, 0,
    25, 16, 12, 11, 10, 9, 8,
    8, 7, 7, 7, 7, 6, 6,
    6, 6, 6, 6, 6, 5, 5,
    5, 5, 5, 5, 5, 5, 5,
    5, 5, 5, 5, 5, 5, 5
  ];

  var groupBases = [
    0, 0,
    33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,
    43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,
    16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,
    6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,
    24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176
  ];

  BN.prototype.toString = function toString (base, padding) {
    base = base || 10;
    padding = padding | 0 || 1;

    var out;
    if (base === 16 || base === 'hex') {
      out = '';
      var off = 0;
      var carry = 0;
      for (var i = 0; i < this.length; i++) {
        var w = this.words[i];
        var word = (((w << off) | carry) & 0xffffff).toString(16);
        carry = (w >>> (24 - off)) & 0xffffff;
        if (carry !== 0 || i !== this.length - 1) {
          out = zeros[6 - word.length] + word + out;
        } else {
          out = word + out;
        }
        off += 2;
        if (off >= 26) {
          off -= 26;
          i--;
        }
      }
      if (carry !== 0) {
        out = carry.toString(16) + out;
      }
      while (out.length % padding !== 0) {
        out = '0' + out;
      }
      if (this.negative !== 0) {
        out = '-' + out;
      }
      return out;
    }

    if (base === (base | 0) && base >= 2 && base <= 36) {
      // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));
      var groupSize = groupSizes[base];
      // var groupBase = Math.pow(base, groupSize);
      var groupBase = groupBases[base];
      out = '';
      var c = this.clone();
      c.negative = 0;
      while (!c.isZero()) {
        var r = c.modn(groupBase).toString(base);
        c = c.idivn(groupBase);

        if (!c.isZero()) {
          out = zeros[groupSize - r.length] + r + out;
        } else {
          out = r + out;
        }
      }
      if (this.isZero()) {
        out = '0' + out;
      }
      while (out.length % padding !== 0) {
        out = '0' + out;
      }
      if (this.negative !== 0) {
        out = '-' + out;
      }
      return out;
    }

    assert(false, 'Base should be between 2 and 36');
  };

  BN.prototype.toNumber = function toNumber () {
    var ret = this.words[0];
    if (this.length === 2) {
      ret += this.words[1] * 0x4000000;
    } else if (this.length === 3 && this.words[2] === 0x01) {
      // NOTE: at this stage it is known that the top bit is set
      ret += 0x10000000000000 + (this.words[1] * 0x4000000);
    } else if (this.length > 2) {
      assert(false, 'Number can only safely store up to 53 bits');
    }
    return (this.negative !== 0) ? -ret : ret;
  };

  BN.prototype.toJSON = function toJSON () {
    return this.toString(16);
  };

  BN.prototype.toBuffer = function toBuffer (endian, length) {
    assert(typeof Buffer !== 'undefined');
    return this.toArrayLike(Buffer, endian, length);
  };

  BN.prototype.toArray = function toArray (endian, length) {
    return this.toArrayLike(Array, endian, length);
  };

  BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {
    var byteLength = this.byteLength();
    var reqLength = length || Math.max(1, byteLength);
    assert(byteLength <= reqLength, 'byte array longer than desired length');
    assert(reqLength > 0, 'Requested array length <= 0');

    this.strip();
    var littleEndian = endian === 'le';
    var res = new ArrayType(reqLength);

    var b, i;
    var q = this.clone();
    if (!littleEndian) {
      // Assume big-endian
      for (i = 0; i < reqLength - byteLength; i++) {
        res[i] = 0;
      }

      for (i = 0; !q.isZero(); i++) {
        b = q.andln(0xff);
        q.iushrn(8);

        res[reqLength - i - 1] = b;
      }
    } else {
      for (i = 0; !q.isZero(); i++) {
        b = q.andln(0xff);
        q.iushrn(8);

        res[i] = b;
      }

      for (; i < reqLength; i++) {
        res[i] = 0;
      }
    }

    return res;
  };

  if (Math.clz32) {
    BN.prototype._countBits = function _countBits (w) {
      return 32 - Math.clz32(w);
    };
  } else {
    BN.prototype._countBits = function _countBits (w) {
      var t = w;
      var r = 0;
      if (t >= 0x1000) {
        r += 13;
        t >>>= 13;
      }
      if (t >= 0x40) {
        r += 7;
        t >>>= 7;
      }
      if (t >= 0x8) {
        r += 4;
        t >>>= 4;
      }
      if (t >= 0x02) {
        r += 2;
        t >>>= 2;
      }
      return r + t;
    };
  }

  BN.prototype._zeroBits = function _zeroBits (w) {
    // Short-cut
    if (w === 0) return 26;

    var t = w;
    var r = 0;
    if ((t & 0x1fff) === 0) {
      r += 13;
      t >>>= 13;
    }
    if ((t & 0x7f) === 0) {
      r += 7;
      t >>>= 7;
    }
    if ((t & 0xf) === 0) {
      r += 4;
      t >>>= 4;
    }
    if ((t & 0x3) === 0) {
      r += 2;
      t >>>= 2;
    }
    if ((t & 0x1) === 0) {
      r++;
    }
    return r;
  };

  // Return number of used bits in a BN
  BN.prototype.bitLength = function bitLength () {
    var w = this.words[this.length - 1];
    var hi = this._countBits(w);
    return (this.length - 1) * 26 + hi;
  };

  function toBitArray (num) {
    var w = new Array(num.bitLength());

    for (var bit = 0; bit < w.length; bit++) {
      var off = (bit / 26) | 0;
      var wbit = bit % 26;

      w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;
    }

    return w;
  }

  // Number of trailing zero bits
  BN.prototype.zeroBits = function zeroBits () {
    if (this.isZero()) return 0;

    var r = 0;
    for (var i = 0; i < this.length; i++) {
      var b = this._zeroBits(this.words[i]);
      r += b;
      if (b !== 26) break;
    }
    return r;
  };

  BN.prototype.byteLength = function byteLength () {
    return Math.ceil(this.bitLength() / 8);
  };

  BN.prototype.toTwos = function toTwos (width) {
    if (this.negative !== 0) {
      return this.abs().inotn(width).iaddn(1);
    }
    return this.clone();
  };

  BN.prototype.fromTwos = function fromTwos (width) {
    if (this.testn(width - 1)) {
      return this.notn(width).iaddn(1).ineg();
    }
    return this.clone();
  };

  BN.prototype.isNeg = function isNeg () {
    return this.negative !== 0;
  };

  // Return negative clone of `this`
  BN.prototype.neg = function neg () {
    return this.clone().ineg();
  };

  BN.prototype.ineg = function ineg () {
    if (!this.isZero()) {
      this.negative ^= 1;
    }

    return this;
  };

  // Or `num` with `this` in-place
  BN.prototype.iuor = function iuor (num) {
    while (this.length < num.length) {
      this.words[this.length++] = 0;
    }

    for (var i = 0; i < num.length; i++) {
      this.words[i] = this.words[i] | num.words[i];
    }

    return this.strip();
  };

  BN.prototype.ior = function ior (num) {
    assert((this.negative | num.negative) === 0);
    return this.iuor(num);
  };

  // Or `num` with `this`
  BN.prototype.or = function or (num) {
    if (this.length > num.length) return this.clone().ior(num);
    return num.clone().ior(this);
  };

  BN.prototype.uor = function uor (num) {
    if (this.length > num.length) return this.clone().iuor(num);
    return num.clone().iuor(this);
  };

  // And `num` with `this` in-place
  BN.prototype.iuand = function iuand (num) {
    // b = min-length(num, this)
    var b;
    if (this.length > num.length) {
      b = num;
    } else {
      b = this;
    }

    for (var i = 0; i < b.length; i++) {
      this.words[i] = this.words[i] & num.words[i];
    }

    this.length = b.length;

    return this.strip();
  };

  BN.prototype.iand = function iand (num) {
    assert((this.negative | num.negative) === 0);
    return this.iuand(num);
  };

  // And `num` with `this`
  BN.prototype.and = function and (num) {
    if (this.length > num.length) return this.clone().iand(num);
    return num.clone().iand(this);
  };

  BN.prototype.uand = function uand (num) {
    if (this.length > num.length) return this.clone().iuand(num);
    return num.clone().iuand(this);
  };

  // Xor `num` with `this` in-place
  BN.prototype.iuxor = function iuxor (num) {
    // a.length > b.length
    var a;
    var b;
    if (this.length > num.length) {
      a = this;
      b = num;
    } else {
      a = num;
      b = this;
    }

    for (var i = 0; i < b.length; i++) {
      this.words[i] = a.words[i] ^ b.words[i];
    }

    if (this !== a) {
      for (; i < a.length; i++) {
        this.words[i] = a.words[i];
      }
    }

    this.length = a.length;

    return this.strip();
  };

  BN.prototype.ixor = function ixor (num) {
    assert((this.negative | num.negative) === 0);
    return this.iuxor(num);
  };

  // Xor `num` with `this`
  BN.prototype.xor = function xor (num) {
    if (this.length > num.length) return this.clone().ixor(num);
    return num.clone().ixor(this);
  };

  BN.prototype.uxor = function uxor (num) {
    if (this.length > num.length) return this.clone().iuxor(num);
    return num.clone().iuxor(this);
  };

  // Not ``this`` with ``width`` bitwidth
  BN.prototype.inotn = function inotn (width) {
    assert(typeof width === 'number' && width >= 0);

    var bytesNeeded = Math.ceil(width / 26) | 0;
    var bitsLeft = width % 26;

    // Extend the buffer with leading zeroes
    this._expand(bytesNeeded);

    if (bitsLeft > 0) {
      bytesNeeded--;
    }

    // Handle complete words
    for (var i = 0; i < bytesNeeded; i++) {
      this.words[i] = ~this.words[i] & 0x3ffffff;
    }

    // Handle the residue
    if (bitsLeft > 0) {
      this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));
    }

    // And remove leading zeroes
    return this.strip();
  };

  BN.prototype.notn = function notn (width) {
    return this.clone().inotn(width);
  };

  // Set `bit` of `this`
  BN.prototype.setn = function setn (bit, val) {
    assert(typeof bit === 'number' && bit >= 0);

    var off = (bit / 26) | 0;
    var wbit = bit % 26;

    this._expand(off + 1);

    if (val) {
      this.words[off] = this.words[off] | (1 << wbit);
    } else {
      this.words[off] = this.words[off] & ~(1 << wbit);
    }

    return this.strip();
  };

  // Add `num` to `this` in-place
  BN.prototype.iadd = function iadd (num) {
    var r;

    // negative + positive
    if (this.negative !== 0 && num.negative === 0) {
      this.negative = 0;
      r = this.isub(num);
      this.negative ^= 1;
      return this._normSign();

    // positive + negative
    } else if (this.negative === 0 && num.negative !== 0) {
      num.negative = 0;
      r = this.isub(num);
      num.negative = 1;
      return r._normSign();
    }

    // a.length > b.length
    var a, b;
    if (this.length > num.length) {
      a = this;
      b = num;
    } else {
      a = num;
      b = this;
    }

    var carry = 0;
    for (var i = 0; i < b.length; i++) {
      r = (a.words[i] | 0) + (b.words[i] | 0) + carry;
      this.words[i] = r & 0x3ffffff;
      carry = r >>> 26;
    }
    for (; carry !== 0 && i < a.length; i++) {
      r = (a.words[i] | 0) + carry;
      this.words[i] = r & 0x3ffffff;
      carry = r >>> 26;
    }

    this.length = a.length;
    if (carry !== 0) {
      this.words[this.length] = carry;
      this.length++;
    // Copy the rest of the words
    } else if (a !== this) {
      for (; i < a.length; i++) {
        this.words[i] = a.words[i];
      }
    }

    return this;
  };

  // Add `num` to `this`
  BN.prototype.add = function add (num) {
    var res;
    if (num.negative !== 0 && this.negative === 0) {
      num.negative = 0;
      res = this.sub(num);
      num.negative ^= 1;
      return res;
    } else if (num.negative === 0 && this.negative !== 0) {
      this.negative = 0;
      res = num.sub(this);
      this.negative = 1;
      return res;
    }

    if (this.length > num.length) return this.clone().iadd(num);

    return num.clone().iadd(this);
  };

  // Subtract `num` from `this` in-place
  BN.prototype.isub = function isub (num) {
    // this - (-num) = this + num
    if (num.negative !== 0) {
      num.negative = 0;
      var r = this.iadd(num);
      num.negative = 1;
      return r._normSign();

    // -this - num = -(this + num)
    } else if (this.negative !== 0) {
      this.negative = 0;
      this.iadd(num);
      this.negative = 1;
      return this._normSign();
    }

    // At this point both numbers are positive
    var cmp = this.cmp(num);

    // Optimization - zeroify
    if (cmp === 0) {
      this.negative = 0;
      this.length = 1;
      this.words[0] = 0;
      return this;
    }

    // a > b
    var a, b;
    if (cmp > 0) {
      a = this;
      b = num;
    } else {
      a = num;
      b = this;
    }

    var carry = 0;
    for (var i = 0; i < b.length; i++) {
      r = (a.words[i] | 0) - (b.words[i] | 0) + carry;
      carry = r >> 26;
      this.words[i] = r & 0x3ffffff;
    }
    for (; carry !== 0 && i < a.length; i++) {
      r = (a.words[i] | 0) + carry;
      carry = r >> 26;
      this.words[i] = r & 0x3ffffff;
    }

    // Copy rest of the words
    if (carry === 0 && i < a.length && a !== this) {
      for (; i < a.length; i++) {
        this.words[i] = a.words[i];
      }
    }

    this.length = Math.max(this.length, i);

    if (a !== this) {
      this.negative = 1;
    }

    return this.strip();
  };

  // Subtract `num` from `this`
  BN.prototype.sub = function sub (num) {
    return this.clone().isub(num);
  };

  function smallMulTo (self, num, out) {
    out.negative = num.negative ^ self.negative;
    var len = (self.length + num.length) | 0;
    out.length = len;
    len = (len - 1) | 0;

    // Peel one iteration (compiler can't do it, because of code complexity)
    var a = self.words[0] | 0;
    var b = num.words[0] | 0;
    var r = a * b;

    var lo = r & 0x3ffffff;
    var carry = (r / 0x4000000) | 0;
    out.words[0] = lo;

    for (var k = 1; k < len; k++) {
      // Sum all words with the same `i + j = k` and accumulate `ncarry`,
      // note that ncarry could be >= 0x3ffffff
      var ncarry = carry >>> 26;
      var rword = carry & 0x3ffffff;
      var maxJ = Math.min(k, num.length - 1);
      for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
        var i = (k - j) | 0;
        a = self.words[i] | 0;
        b = num.words[j] | 0;
        r = a * b + rword;
        ncarry += (r / 0x4000000) | 0;
        rword = r & 0x3ffffff;
      }
      out.words[k] = rword | 0;
      carry = ncarry | 0;
    }
    if (carry !== 0) {
      out.words[k] = carry | 0;
    } else {
      out.length--;
    }

    return out.strip();
  }

  // TODO(indutny): it may be reasonable to omit it for users who don't need
  // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit
  // multiplication (like elliptic secp256k1).
  var comb10MulTo = function comb10MulTo (self, num, out) {
    var a = self.words;
    var b = num.words;
    var o = out.words;
    var c = 0;
    var lo;
    var mid;
    var hi;
    var a0 = a[0] | 0;
    var al0 = a0 & 0x1fff;
    var ah0 = a0 >>> 13;
    var a1 = a[1] | 0;
    var al1 = a1 & 0x1fff;
    var ah1 = a1 >>> 13;
    var a2 = a[2] | 0;
    var al2 = a2 & 0x1fff;
    var ah2 = a2 >>> 13;
    var a3 = a[3] | 0;
    var al3 = a3 & 0x1fff;
    var ah3 = a3 >>> 13;
    var a4 = a[4] | 0;
    var al4 = a4 & 0x1fff;
    var ah4 = a4 >>> 13;
    var a5 = a[5] | 0;
    var al5 = a5 & 0x1fff;
    var ah5 = a5 >>> 13;
    var a6 = a[6] | 0;
    var al6 = a6 & 0x1fff;
    var ah6 = a6 >>> 13;
    var a7 = a[7] | 0;
    var al7 = a7 & 0x1fff;
    var ah7 = a7 >>> 13;
    var a8 = a[8] | 0;
    var al8 = a8 & 0x1fff;
    var ah8 = a8 >>> 13;
    var a9 = a[9] | 0;
    var al9 = a9 & 0x1fff;
    var ah9 = a9 >>> 13;
    var b0 = b[0] | 0;
    var bl0 = b0 & 0x1fff;
    var bh0 = b0 >>> 13;
    var b1 = b[1] | 0;
    var bl1 = b1 & 0x1fff;
    var bh1 = b1 >>> 13;
    var b2 = b[2] | 0;
    var bl2 = b2 & 0x1fff;
    var bh2 = b2 >>> 13;
    var b3 = b[3] | 0;
    var bl3 = b3 & 0x1fff;
    var bh3 = b3 >>> 13;
    var b4 = b[4] | 0;
    var bl4 = b4 & 0x1fff;
    var bh4 = b4 >>> 13;
    var b5 = b[5] | 0;
    var bl5 = b5 & 0x1fff;
    var bh5 = b5 >>> 13;
    var b6 = b[6] | 0;
    var bl6 = b6 & 0x1fff;
    var bh6 = b6 >>> 13;
    var b7 = b[7] | 0;
    var bl7 = b7 & 0x1fff;
    var bh7 = b7 >>> 13;
    var b8 = b[8] | 0;
    var bl8 = b8 & 0x1fff;
    var bh8 = b8 >>> 13;
    var b9 = b[9] | 0;
    var bl9 = b9 & 0x1fff;
    var bh9 = b9 >>> 13;

    out.negative = self.negative ^ num.negative;
    out.length = 19;
    /* k = 0 */
    lo = Math.imul(al0, bl0);
    mid = Math.imul(al0, bh0);
    mid = (mid + Math.imul(ah0, bl0)) | 0;
    hi = Math.imul(ah0, bh0);
    var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;
    w0 &= 0x3ffffff;
    /* k = 1 */
    lo = Math.imul(al1, bl0);
    mid = Math.imul(al1, bh0);
    mid = (mid + Math.imul(ah1, bl0)) | 0;
    hi = Math.imul(ah1, bh0);
    lo = (lo + Math.imul(al0, bl1)) | 0;
    mid = (mid + Math.imul(al0, bh1)) | 0;
    mid = (mid + Math.imul(ah0, bl1)) | 0;
    hi = (hi + Math.imul(ah0, bh1)) | 0;
    var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;
    w1 &= 0x3ffffff;
    /* k = 2 */
    lo = Math.imul(al2, bl0);
    mid = Math.imul(al2, bh0);
    mid = (mid + Math.imul(ah2, bl0)) | 0;
    hi = Math.imul(ah2, bh0);
    lo = (lo + Math.imul(al1, bl1)) | 0;
    mid = (mid + Math.imul(al1, bh1)) | 0;
    mid = (mid + Math.imul(ah1, bl1)) | 0;
    hi = (hi + Math.imul(ah1, bh1)) | 0;
    lo = (lo + Math.imul(al0, bl2)) | 0;
    mid = (mid + Math.imul(al0, bh2)) | 0;
    mid = (mid + Math.imul(ah0, bl2)) | 0;
    hi = (hi + Math.imul(ah0, bh2)) | 0;
    var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;
    w2 &= 0x3ffffff;
    /* k = 3 */
    lo = Math.imul(al3, bl0);
    mid = Math.imul(al3, bh0);
    mid = (mid + Math.imul(ah3, bl0)) | 0;
    hi = Math.imul(ah3, bh0);
    lo = (lo + Math.imul(al2, bl1)) | 0;
    mid = (mid + Math.imul(al2, bh1)) | 0;
    mid = (mid + Math.imul(ah2, bl1)) | 0;
    hi = (hi + Math.imul(ah2, bh1)) | 0;
    lo = (lo + Math.imul(al1, bl2)) | 0;
    mid = (mid + Math.imul(al1, bh2)) | 0;
    mid = (mid + Math.imul(ah1, bl2)) | 0;
    hi = (hi + Math.imul(ah1, bh2)) | 0;
    lo = (lo + Math.imul(al0, bl3)) | 0;
    mid = (mid + Math.imul(al0, bh3)) | 0;
    mid = (mid + Math.imul(ah0, bl3)) | 0;
    hi = (hi + Math.imul(ah0, bh3)) | 0;
    var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;
    w3 &= 0x3ffffff;
    /* k = 4 */
    lo = Math.imul(al4, bl0);
    mid = Math.imul(al4, bh0);
    mid = (mid + Math.imul(ah4, bl0)) | 0;
    hi = Math.imul(ah4, bh0);
    lo = (lo + Math.imul(al3, bl1)) | 0;
    mid = (mid + Math.imul(al3, bh1)) | 0;
    mid = (mid + Math.imul(ah3, bl1)) | 0;
    hi = (hi + Math.imul(ah3, bh1)) | 0;
    lo = (lo + Math.imul(al2, bl2)) | 0;
    mid = (mid + Math.imul(al2, bh2)) | 0;
    mid = (mid + Math.imul(ah2, bl2)) | 0;
    hi = (hi + Math.imul(ah2, bh2)) | 0;
    lo = (lo + Math.imul(al1, bl3)) | 0;
    mid = (mid + Math.imul(al1, bh3)) | 0;
    mid = (mid + Math.imul(ah1, bl3)) | 0;
    hi = (hi + Math.imul(ah1, bh3)) | 0;
    lo = (lo + Math.imul(al0, bl4)) | 0;
    mid = (mid + Math.imul(al0, bh4)) | 0;
    mid = (mid + Math.imul(ah0, bl4)) | 0;
    hi = (hi + Math.imul(ah0, bh4)) | 0;
    var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;
    w4 &= 0x3ffffff;
    /* k = 5 */
    lo = Math.imul(al5, bl0);
    mid = Math.imul(al5, bh0);
    mid = (mid + Math.imul(ah5, bl0)) | 0;
    hi = Math.imul(ah5, bh0);
    lo = (lo + Math.imul(al4, bl1)) | 0;
    mid = (mid + Math.imul(al4, bh1)) | 0;
    mid = (mid + Math.imul(ah4, bl1)) | 0;
    hi = (hi + Math.imul(ah4, bh1)) | 0;
    lo = (lo + Math.imul(al3, bl2)) | 0;
    mid = (mid + Math.imul(al3, bh2)) | 0;
    mid = (mid + Math.imul(ah3, bl2)) | 0;
    hi = (hi + Math.imul(ah3, bh2)) | 0;
    lo = (lo + Math.imul(al2, bl3)) | 0;
    mid = (mid + Math.imul(al2, bh3)) | 0;
    mid = (mid + Math.imul(ah2, bl3)) | 0;
    hi = (hi + Math.imul(ah2, bh3)) | 0;
    lo = (lo + Math.imul(al1, bl4)) | 0;
    mid = (mid + Math.imul(al1, bh4)) | 0;
    mid = (mid + Math.imul(ah1, bl4)) | 0;
    hi = (hi + Math.imul(ah1, bh4)) | 0;
    lo = (lo + Math.imul(al0, bl5)) | 0;
    mid = (mid + Math.imul(al0, bh5)) | 0;
    mid = (mid + Math.imul(ah0, bl5)) | 0;
    hi = (hi + Math.imul(ah0, bh5)) | 0;
    var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;
    w5 &= 0x3ffffff;
    /* k = 6 */
    lo = Math.imul(al6, bl0);
    mid = Math.imul(al6, bh0);
    mid = (mid + Math.imul(ah6, bl0)) | 0;
    hi = Math.imul(ah6, bh0);
    lo = (lo + Math.imul(al5, bl1)) | 0;
    mid = (mid + Math.imul(al5, bh1)) | 0;
    mid = (mid + Math.imul(ah5, bl1)) | 0;
    hi = (hi + Math.imul(ah5, bh1)) | 0;
    lo = (lo + Math.imul(al4, bl2)) | 0;
    mid = (mid + Math.imul(al4, bh2)) | 0;
    mid = (mid + Math.imul(ah4, bl2)) | 0;
    hi = (hi + Math.imul(ah4, bh2)) | 0;
    lo = (lo + Math.imul(al3, bl3)) | 0;
    mid = (mid + Math.imul(al3, bh3)) | 0;
    mid = (mid + Math.imul(ah3, bl3)) | 0;
    hi = (hi + Math.imul(ah3, bh3)) | 0;
    lo = (lo + Math.imul(al2, bl4)) | 0;
    mid = (mid + Math.imul(al2, bh4)) | 0;
    mid = (mid + Math.imul(ah2, bl4)) | 0;
    hi = (hi + Math.imul(ah2, bh4)) | 0;
    lo = (lo + Math.imul(al1, bl5)) | 0;
    mid = (mid + Math.imul(al1, bh5)) | 0;
    mid = (mid + Math.imul(ah1, bl5)) | 0;
    hi = (hi + Math.imul(ah1, bh5)) | 0;
    lo = (lo + Math.imul(al0, bl6)) | 0;
    mid = (mid + Math.imul(al0, bh6)) | 0;
    mid = (mid + Math.imul(ah0, bl6)) | 0;
    hi = (hi + Math.imul(ah0, bh6)) | 0;
    var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;
    w6 &= 0x3ffffff;
    /* k = 7 */
    lo = Math.imul(al7, bl0);
    mid = Math.imul(al7, bh0);
    mid = (mid + Math.imul(ah7, bl0)) | 0;
    hi = Math.imul(ah7, bh0);
    lo = (lo + Math.imul(al6, bl1)) | 0;
    mid = (mid + Math.imul(al6, bh1)) | 0;
    mid = (mid + Math.imul(ah6, bl1)) | 0;
    hi = (hi + Math.imul(ah6, bh1)) | 0;
    lo = (lo + Math.imul(al5, bl2)) | 0;
    mid = (mid + Math.imul(al5, bh2)) | 0;
    mid = (mid + Math.imul(ah5, bl2)) | 0;
    hi = (hi + Math.imul(ah5, bh2)) | 0;
    lo = (lo + Math.imul(al4, bl3)) | 0;
    mid = (mid + Math.imul(al4, bh3)) | 0;
    mid = (mid + Math.imul(ah4, bl3)) | 0;
    hi = (hi + Math.imul(ah4, bh3)) | 0;
    lo = (lo + Math.imul(al3, bl4)) | 0;
    mid = (mid + Math.imul(al3, bh4)) | 0;
    mid = (mid + Math.imul(ah3, bl4)) | 0;
    hi = (hi + Math.imul(ah3, bh4)) | 0;
    lo = (lo + Math.imul(al2, bl5)) | 0;
    mid = (mid + Math.imul(al2, bh5)) | 0;
    mid = (mid + Math.imul(ah2, bl5)) | 0;
    hi = (hi + Math.imul(ah2, bh5)) | 0;
    lo = (lo + Math.imul(al1, bl6)) | 0;
    mid = (mid + Math.imul(al1, bh6)) | 0;
    mid = (mid + Math.imul(ah1, bl6)) | 0;
    hi = (hi + Math.imul(ah1, bh6)) | 0;
    lo = (lo + Math.imul(al0, bl7)) | 0;
    mid = (mid + Math.imul(al0, bh7)) | 0;
    mid = (mid + Math.imul(ah0, bl7)) | 0;
    hi = (hi + Math.imul(ah0, bh7)) | 0;
    var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;
    w7 &= 0x3ffffff;
    /* k = 8 */
    lo = Math.imul(al8, bl0);
    mid = Math.imul(al8, bh0);
    mid = (mid + Math.imul(ah8, bl0)) | 0;
    hi = Math.imul(ah8, bh0);
    lo = (lo + Math.imul(al7, bl1)) | 0;
    mid = (mid + Math.imul(al7, bh1)) | 0;
    mid = (mid + Math.imul(ah7, bl1)) | 0;
    hi = (hi + Math.imul(ah7, bh1)) | 0;
    lo = (lo + Math.imul(al6, bl2)) | 0;
    mid = (mid + Math.imul(al6, bh2)) | 0;
    mid = (mid + Math.imul(ah6, bl2)) | 0;
    hi = (hi + Math.imul(ah6, bh2)) | 0;
    lo = (lo + Math.imul(al5, bl3)) | 0;
    mid = (mid + Math.imul(al5, bh3)) | 0;
    mid = (mid + Math.imul(ah5, bl3)) | 0;
    hi = (hi + Math.imul(ah5, bh3)) | 0;
    lo = (lo + Math.imul(al4, bl4)) | 0;
    mid = (mid + Math.imul(al4, bh4)) | 0;
    mid = (mid + Math.imul(ah4, bl4)) | 0;
    hi = (hi + Math.imul(ah4, bh4)) | 0;
    lo = (lo + Math.imul(al3, bl5)) | 0;
    mid = (mid + Math.imul(al3, bh5)) | 0;
    mid = (mid + Math.imul(ah3, bl5)) | 0;
    hi = (hi + Math.imul(ah3, bh5)) | 0;
    lo = (lo + Math.imul(al2, bl6)) | 0;
    mid = (mid + Math.imul(al2, bh6)) | 0;
    mid = (mid + Math.imul(ah2, bl6)) | 0;
    hi = (hi + Math.imul(ah2, bh6)) | 0;
    lo = (lo + Math.imul(al1, bl7)) | 0;
    mid = (mid + Math.imul(al1, bh7)) | 0;
    mid = (mid + Math.imul(ah1, bl7)) | 0;
    hi = (hi + Math.imul(ah1, bh7)) | 0;
    lo = (lo + Math.imul(al0, bl8)) | 0;
    mid = (mid + Math.imul(al0, bh8)) | 0;
    mid = (mid + Math.imul(ah0, bl8)) | 0;
    hi = (hi + Math.imul(ah0, bh8)) | 0;
    var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;
    w8 &= 0x3ffffff;
    /* k = 9 */
    lo = Math.imul(al9, bl0);
    mid = Math.imul(al9, bh0);
    mid = (mid + Math.imul(ah9, bl0)) | 0;
    hi = Math.imul(ah9, bh0);
    lo = (lo + Math.imul(al8, bl1)) | 0;
    mid = (mid + Math.imul(al8, bh1)) | 0;
    mid = (mid + Math.imul(ah8, bl1)) | 0;
    hi = (hi + Math.imul(ah8, bh1)) | 0;
    lo = (lo + Math.imul(al7, bl2)) | 0;
    mid = (mid + Math.imul(al7, bh2)) | 0;
    mid = (mid + Math.imul(ah7, bl2)) | 0;
    hi = (hi + Math.imul(ah7, bh2)) | 0;
    lo = (lo + Math.imul(al6, bl3)) | 0;
    mid = (mid + Math.imul(al6, bh3)) | 0;
    mid = (mid + Math.imul(ah6, bl3)) | 0;
    hi = (hi + Math.imul(ah6, bh3)) | 0;
    lo = (lo + Math.imul(al5, bl4)) | 0;
    mid = (mid + Math.imul(al5, bh4)) | 0;
    mid = (mid + Math.imul(ah5, bl4)) | 0;
    hi = (hi + Math.imul(ah5, bh4)) | 0;
    lo = (lo + Math.imul(al4, bl5)) | 0;
    mid = (mid + Math.imul(al4, bh5)) | 0;
    mid = (mid + Math.imul(ah4, bl5)) | 0;
    hi = (hi + Math.imul(ah4, bh5)) | 0;
    lo = (lo + Math.imul(al3, bl6)) | 0;
    mid = (mid + Math.imul(al3, bh6)) | 0;
    mid = (mid + Math.imul(ah3, bl6)) | 0;
    hi = (hi + Math.imul(ah3, bh6)) | 0;
    lo = (lo + Math.imul(al2, bl7)) | 0;
    mid = (mid + Math.imul(al2, bh7)) | 0;
    mid = (mid + Math.imul(ah2, bl7)) | 0;
    hi = (hi + Math.imul(ah2, bh7)) | 0;
    lo = (lo + Math.imul(al1, bl8)) | 0;
    mid = (mid + Math.imul(al1, bh8)) | 0;
    mid = (mid + Math.imul(ah1, bl8)) | 0;
    hi = (hi + Math.imul(ah1, bh8)) | 0;
    lo = (lo + Math.imul(al0, bl9)) | 0;
    mid = (mid + Math.imul(al0, bh9)) | 0;
    mid = (mid + Math.imul(ah0, bl9)) | 0;
    hi = (hi + Math.imul(ah0, bh9)) | 0;
    var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;
    w9 &= 0x3ffffff;
    /* k = 10 */
    lo = Math.imul(al9, bl1);
    mid = Math.imul(al9, bh1);
    mid = (mid + Math.imul(ah9, bl1)) | 0;
    hi = Math.imul(ah9, bh1);
    lo = (lo + Math.imul(al8, bl2)) | 0;
    mid = (mid + Math.imul(al8, bh2)) | 0;
    mid = (mid + Math.imul(ah8, bl2)) | 0;
    hi = (hi + Math.imul(ah8, bh2)) | 0;
    lo = (lo + Math.imul(al7, bl3)) | 0;
    mid = (mid + Math.imul(al7, bh3)) | 0;
    mid = (mid + Math.imul(ah7, bl3)) | 0;
    hi = (hi + Math.imul(ah7, bh3)) | 0;
    lo = (lo + Math.imul(al6, bl4)) | 0;
    mid = (mid + Math.imul(al6, bh4)) | 0;
    mid = (mid + Math.imul(ah6, bl4)) | 0;
    hi = (hi + Math.imul(ah6, bh4)) | 0;
    lo = (lo + Math.imul(al5, bl5)) | 0;
    mid = (mid + Math.imul(al5, bh5)) | 0;
    mid = (mid + Math.imul(ah5, bl5)) | 0;
    hi = (hi + Math.imul(ah5, bh5)) | 0;
    lo = (lo + Math.imul(al4, bl6)) | 0;
    mid = (mid + Math.imul(al4, bh6)) | 0;
    mid = (mid + Math.imul(ah4, bl6)) | 0;
    hi = (hi + Math.imul(ah4, bh6)) | 0;
    lo = (lo + Math.imul(al3, bl7)) | 0;
    mid = (mid + Math.imul(al3, bh7)) | 0;
    mid = (mid + Math.imul(ah3, bl7)) | 0;
    hi = (hi + Math.imul(ah3, bh7)) | 0;
    lo = (lo + Math.imul(al2, bl8)) | 0;
    mid = (mid + Math.imul(al2, bh8)) | 0;
    mid = (mid + Math.imul(ah2, bl8)) | 0;
    hi = (hi + Math.imul(ah2, bh8)) | 0;
    lo = (lo + Math.imul(al1, bl9)) | 0;
    mid = (mid + Math.imul(al1, bh9)) | 0;
    mid = (mid + Math.imul(ah1, bl9)) | 0;
    hi = (hi + Math.imul(ah1, bh9)) | 0;
    var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;
    w10 &= 0x3ffffff;
    /* k = 11 */
    lo = Math.imul(al9, bl2);
    mid = Math.imul(al9, bh2);
    mid = (mid + Math.imul(ah9, bl2)) | 0;
    hi = Math.imul(ah9, bh2);
    lo = (lo + Math.imul(al8, bl3)) | 0;
    mid = (mid + Math.imul(al8, bh3)) | 0;
    mid = (mid + Math.imul(ah8, bl3)) | 0;
    hi = (hi + Math.imul(ah8, bh3)) | 0;
    lo = (lo + Math.imul(al7, bl4)) | 0;
    mid = (mid + Math.imul(al7, bh4)) | 0;
    mid = (mid + Math.imul(ah7, bl4)) | 0;
    hi = (hi + Math.imul(ah7, bh4)) | 0;
    lo = (lo + Math.imul(al6, bl5)) | 0;
    mid = (mid + Math.imul(al6, bh5)) | 0;
    mid = (mid + Math.imul(ah6, bl5)) | 0;
    hi = (hi + Math.imul(ah6, bh5)) | 0;
    lo = (lo + Math.imul(al5, bl6)) | 0;
    mid = (mid + Math.imul(al5, bh6)) | 0;
    mid = (mid + Math.imul(ah5, bl6)) | 0;
    hi = (hi + Math.imul(ah5, bh6)) | 0;
    lo = (lo + Math.imul(al4, bl7)) | 0;
    mid = (mid + Math.imul(al4, bh7)) | 0;
    mid = (mid + Math.imul(ah4, bl7)) | 0;
    hi = (hi + Math.imul(ah4, bh7)) | 0;
    lo = (lo + Math.imul(al3, bl8)) | 0;
    mid = (mid + Math.imul(al3, bh8)) | 0;
    mid = (mid + Math.imul(ah3, bl8)) | 0;
    hi = (hi + Math.imul(ah3, bh8)) | 0;
    lo = (lo + Math.imul(al2, bl9)) | 0;
    mid = (mid + Math.imul(al2, bh9)) | 0;
    mid = (mid + Math.imul(ah2, bl9)) | 0;
    hi = (hi + Math.imul(ah2, bh9)) | 0;
    var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;
    w11 &= 0x3ffffff;
    /* k = 12 */
    lo = Math.imul(al9, bl3);
    mid = Math.imul(al9, bh3);
    mid = (mid + Math.imul(ah9, bl3)) | 0;
    hi = Math.imul(ah9, bh3);
    lo = (lo + Math.imul(al8, bl4)) | 0;
    mid = (mid + Math.imul(al8, bh4)) | 0;
    mid = (mid + Math.imul(ah8, bl4)) | 0;
    hi = (hi + Math.imul(ah8, bh4)) | 0;
    lo = (lo + Math.imul(al7, bl5)) | 0;
    mid = (mid + Math.imul(al7, bh5)) | 0;
    mid = (mid + Math.imul(ah7, bl5)) | 0;
    hi = (hi + Math.imul(ah7, bh5)) | 0;
    lo = (lo + Math.imul(al6, bl6)) | 0;
    mid = (mid + Math.imul(al6, bh6)) | 0;
    mid = (mid + Math.imul(ah6, bl6)) | 0;
    hi = (hi + Math.imul(ah6, bh6)) | 0;
    lo = (lo + Math.imul(al5, bl7)) | 0;
    mid = (mid + Math.imul(al5, bh7)) | 0;
    mid = (mid + Math.imul(ah5, bl7)) | 0;
    hi = (hi + Math.imul(ah5, bh7)) | 0;
    lo = (lo + Math.imul(al4, bl8)) | 0;
    mid = (mid + Math.imul(al4, bh8)) | 0;
    mid = (mid + Math.imul(ah4, bl8)) | 0;
    hi = (hi + Math.imul(ah4, bh8)) | 0;
    lo = (lo + Math.imul(al3, bl9)) | 0;
    mid = (mid + Math.imul(al3, bh9)) | 0;
    mid = (mid + Math.imul(ah3, bl9)) | 0;
    hi = (hi + Math.imul(ah3, bh9)) | 0;
    var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;
    w12 &= 0x3ffffff;
    /* k = 13 */
    lo = Math.imul(al9, bl4);
    mid = Math.imul(al9, bh4);
    mid = (mid + Math.imul(ah9, bl4)) | 0;
    hi = Math.imul(ah9, bh4);
    lo = (lo + Math.imul(al8, bl5)) | 0;
    mid = (mid + Math.imul(al8, bh5)) | 0;
    mid = (mid + Math.imul(ah8, bl5)) | 0;
    hi = (hi + Math.imul(ah8, bh5)) | 0;
    lo = (lo + Math.imul(al7, bl6)) | 0;
    mid = (mid + Math.imul(al7, bh6)) | 0;
    mid = (mid + Math.imul(ah7, bl6)) | 0;
    hi = (hi + Math.imul(ah7, bh6)) | 0;
    lo = (lo + Math.imul(al6, bl7)) | 0;
    mid = (mid + Math.imul(al6, bh7)) | 0;
    mid = (mid + Math.imul(ah6, bl7)) | 0;
    hi = (hi + Math.imul(ah6, bh7)) | 0;
    lo = (lo + Math.imul(al5, bl8)) | 0;
    mid = (mid + Math.imul(al5, bh8)) | 0;
    mid = (mid + Math.imul(ah5, bl8)) | 0;
    hi = (hi + Math.imul(ah5, bh8)) | 0;
    lo = (lo + Math.imul(al4, bl9)) | 0;
    mid = (mid + Math.imul(al4, bh9)) | 0;
    mid = (mid + Math.imul(ah4, bl9)) | 0;
    hi = (hi + Math.imul(ah4, bh9)) | 0;
    var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;
    w13 &= 0x3ffffff;
    /* k = 14 */
    lo = Math.imul(al9, bl5);
    mid = Math.imul(al9, bh5);
    mid = (mid + Math.imul(ah9, bl5)) | 0;
    hi = Math.imul(ah9, bh5);
    lo = (lo + Math.imul(al8, bl6)) | 0;
    mid = (mid + Math.imul(al8, bh6)) | 0;
    mid = (mid + Math.imul(ah8, bl6)) | 0;
    hi = (hi + Math.imul(ah8, bh6)) | 0;
    lo = (lo + Math.imul(al7, bl7)) | 0;
    mid = (mid + Math.imul(al7, bh7)) | 0;
    mid = (mid + Math.imul(ah7, bl7)) | 0;
    hi = (hi + Math.imul(ah7, bh7)) | 0;
    lo = (lo + Math.imul(al6, bl8)) | 0;
    mid = (mid + Math.imul(al6, bh8)) | 0;
    mid = (mid + Math.imul(ah6, bl8)) | 0;
    hi = (hi + Math.imul(ah6, bh8)) | 0;
    lo = (lo + Math.imul(al5, bl9)) | 0;
    mid = (mid + Math.imul(al5, bh9)) | 0;
    mid = (mid + Math.imul(ah5, bl9)) | 0;
    hi = (hi + Math.imul(ah5, bh9)) | 0;
    var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;
    w14 &= 0x3ffffff;
    /* k = 15 */
    lo = Math.imul(al9, bl6);
    mid = Math.imul(al9, bh6);
    mid = (mid + Math.imul(ah9, bl6)) | 0;
    hi = Math.imul(ah9, bh6);
    lo = (lo + Math.imul(al8, bl7)) | 0;
    mid = (mid + Math.imul(al8, bh7)) | 0;
    mid = (mid + Math.imul(ah8, bl7)) | 0;
    hi = (hi + Math.imul(ah8, bh7)) | 0;
    lo = (lo + Math.imul(al7, bl8)) | 0;
    mid = (mid + Math.imul(al7, bh8)) | 0;
    mid = (mid + Math.imul(ah7, bl8)) | 0;
    hi = (hi + Math.imul(ah7, bh8)) | 0;
    lo = (lo + Math.imul(al6, bl9)) | 0;
    mid = (mid + Math.imul(al6, bh9)) | 0;
    mid = (mid + Math.imul(ah6, bl9)) | 0;
    hi = (hi + Math.imul(ah6, bh9)) | 0;
    var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;
    w15 &= 0x3ffffff;
    /* k = 16 */
    lo = Math.imul(al9, bl7);
    mid = Math.imul(al9, bh7);
    mid = (mid + Math.imul(ah9, bl7)) | 0;
    hi = Math.imul(ah9, bh7);
    lo = (lo + Math.imul(al8, bl8)) | 0;
    mid = (mid + Math.imul(al8, bh8)) | 0;
    mid = (mid + Math.imul(ah8, bl8)) | 0;
    hi = (hi + Math.imul(ah8, bh8)) | 0;
    lo = (lo + Math.imul(al7, bl9)) | 0;
    mid = (mid + Math.imul(al7, bh9)) | 0;
    mid = (mid + Math.imul(ah7, bl9)) | 0;
    hi = (hi + Math.imul(ah7, bh9)) | 0;
    var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;
    w16 &= 0x3ffffff;
    /* k = 17 */
    lo = Math.imul(al9, bl8);
    mid = Math.imul(al9, bh8);
    mid = (mid + Math.imul(ah9, bl8)) | 0;
    hi = Math.imul(ah9, bh8);
    lo = (lo + Math.imul(al8, bl9)) | 0;
    mid = (mid + Math.imul(al8, bh9)) | 0;
    mid = (mid + Math.imul(ah8, bl9)) | 0;
    hi = (hi + Math.imul(ah8, bh9)) | 0;
    var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;
    w17 &= 0x3ffffff;
    /* k = 18 */
    lo = Math.imul(al9, bl9);
    mid = Math.imul(al9, bh9);
    mid = (mid + Math.imul(ah9, bl9)) | 0;
    hi = Math.imul(ah9, bh9);
    var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
    c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;
    w18 &= 0x3ffffff;
    o[0] = w0;
    o[1] = w1;
    o[2] = w2;
    o[3] = w3;
    o[4] = w4;
    o[5] = w5;
    o[6] = w6;
    o[7] = w7;
    o[8] = w8;
    o[9] = w9;
    o[10] = w10;
    o[11] = w11;
    o[12] = w12;
    o[13] = w13;
    o[14] = w14;
    o[15] = w15;
    o[16] = w16;
    o[17] = w17;
    o[18] = w18;
    if (c !== 0) {
      o[19] = c;
      out.length++;
    }
    return out;
  };

  // Polyfill comb
  if (!Math.imul) {
    comb10MulTo = smallMulTo;
  }

  function bigMulTo (self, num, out) {
    out.negative = num.negative ^ self.negative;
    out.length = self.length + num.length;

    var carry = 0;
    var hncarry = 0;
    for (var k = 0; k < out.length - 1; k++) {
      // Sum all words with the same `i + j = k` and accumulate `ncarry`,
      // note that ncarry could be >= 0x3ffffff
      var ncarry = hncarry;
      hncarry = 0;
      var rword = carry & 0x3ffffff;
      var maxJ = Math.min(k, num.length - 1);
      for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
        var i = k - j;
        var a = self.words[i] | 0;
        var b = num.words[j] | 0;
        var r = a * b;

        var lo = r & 0x3ffffff;
        ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;
        lo = (lo + rword) | 0;
        rword = lo & 0x3ffffff;
        ncarry = (ncarry + (lo >>> 26)) | 0;

        hncarry += ncarry >>> 26;
        ncarry &= 0x3ffffff;
      }
      out.words[k] = rword;
      carry = ncarry;
      ncarry = hncarry;
    }
    if (carry !== 0) {
      out.words[k] = carry;
    } else {
      out.length--;
    }

    return out.strip();
  }

  function jumboMulTo (self, num, out) {
    var fftm = new FFTM();
    return fftm.mulp(self, num, out);
  }

  BN.prototype.mulTo = function mulTo (num, out) {
    var res;
    var len = this.length + num.length;
    if (this.length === 10 && num.length === 10) {
      res = comb10MulTo(this, num, out);
    } else if (len < 63) {
      res = smallMulTo(this, num, out);
    } else if (len < 1024) {
      res = bigMulTo(this, num, out);
    } else {
      res = jumboMulTo(this, num, out);
    }

    return res;
  };

  // Cooley-Tukey algorithm for FFT
  // slightly revisited to rely on looping instead of recursion

  function FFTM (x, y) {
    this.x = x;
    this.y = y;
  }

  FFTM.prototype.makeRBT = function makeRBT (N) {
    var t = new Array(N);
    var l = BN.prototype._countBits(N) - 1;
    for (var i = 0; i < N; i++) {
      t[i] = this.revBin(i, l, N);
    }

    return t;
  };

  // Returns binary-reversed representation of `x`
  FFTM.prototype.revBin = function revBin (x, l, N) {
    if (x === 0 || x === N - 1) return x;

    var rb = 0;
    for (var i = 0; i < l; i++) {
      rb |= (x & 1) << (l - i - 1);
      x >>= 1;
    }

    return rb;
  };

  // Performs "tweedling" phase, therefore 'emulating'
  // behaviour of the recursive algorithm
  FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {
    for (var i = 0; i < N; i++) {
      rtws[i] = rws[rbt[i]];
      itws[i] = iws[rbt[i]];
    }
  };

  FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {
    this.permute(rbt, rws, iws, rtws, itws, N);

    for (var s = 1; s < N; s <<= 1) {
      var l = s << 1;

      var rtwdf = Math.cos(2 * Math.PI / l);
      var itwdf = Math.sin(2 * Math.PI / l);

      for (var p = 0; p < N; p += l) {
        var rtwdf_ = rtwdf;
        var itwdf_ = itwdf;

        for (var j = 0; j < s; j++) {
          var re = rtws[p + j];
          var ie = itws[p + j];

          var ro = rtws[p + j + s];
          var io = itws[p + j + s];

          var rx = rtwdf_ * ro - itwdf_ * io;

          io = rtwdf_ * io + itwdf_ * ro;
          ro = rx;

          rtws[p + j] = re + ro;
          itws[p + j] = ie + io;

          rtws[p + j + s] = re - ro;
          itws[p + j + s] = ie - io;

          /* jshint maxdepth : false */
          if (j !== l) {
            rx = rtwdf * rtwdf_ - itwdf * itwdf_;

            itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;
            rtwdf_ = rx;
          }
        }
      }
    }
  };

  FFTM.prototype.guessLen13b = function guessLen13b (n, m) {
    var N = Math.max(m, n) | 1;
    var odd = N & 1;
    var i = 0;
    for (N = N / 2 | 0; N; N = N >>> 1) {
      i++;
    }

    return 1 << i + 1 + odd;
  };

  FFTM.prototype.conjugate = function conjugate (rws, iws, N) {
    if (N <= 1) return;

    for (var i = 0; i < N / 2; i++) {
      var t = rws[i];

      rws[i] = rws[N - i - 1];
      rws[N - i - 1] = t;

      t = iws[i];

      iws[i] = -iws[N - i - 1];
      iws[N - i - 1] = -t;
    }
  };

  FFTM.prototype.normalize13b = function normalize13b (ws, N) {
    var carry = 0;
    for (var i = 0; i < N / 2; i++) {
      var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +
        Math.round(ws[2 * i] / N) +
        carry;

      ws[i] = w & 0x3ffffff;

      if (w < 0x4000000) {
        carry = 0;
      } else {
        carry = w / 0x4000000 | 0;
      }
    }

    return ws;
  };

  FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {
    var carry = 0;
    for (var i = 0; i < len; i++) {
      carry = carry + (ws[i] | 0);

      rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;
      rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;
    }

    // Pad with zeroes
    for (i = 2 * len; i < N; ++i) {
      rws[i] = 0;
    }

    assert(carry === 0);
    assert((carry & ~0x1fff) === 0);
  };

  FFTM.prototype.stub = function stub (N) {
    var ph = new Array(N);
    for (var i = 0; i < N; i++) {
      ph[i] = 0;
    }

    return ph;
  };

  FFTM.prototype.mulp = function mulp (x, y, out) {
    var N = 2 * this.guessLen13b(x.length, y.length);

    var rbt = this.makeRBT(N);

    var _ = this.stub(N);

    var rws = new Array(N);
    var rwst = new Array(N);
    var iwst = new Array(N);

    var nrws = new Array(N);
    var nrwst = new Array(N);
    var niwst = new Array(N);

    var rmws = out.words;
    rmws.length = N;

    this.convert13b(x.words, x.length, rws, N);
    this.convert13b(y.words, y.length, nrws, N);

    this.transform(rws, _, rwst, iwst, N, rbt);
    this.transform(nrws, _, nrwst, niwst, N, rbt);

    for (var i = 0; i < N; i++) {
      var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];
      iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];
      rwst[i] = rx;
    }

    this.conjugate(rwst, iwst, N);
    this.transform(rwst, iwst, rmws, _, N, rbt);
    this.conjugate(rmws, _, N);
    this.normalize13b(rmws, N);

    out.negative = x.negative ^ y.negative;
    out.length = x.length + y.length;
    return out.strip();
  };

  // Multiply `this` by `num`
  BN.prototype.mul = function mul (num) {
    var out = new BN(null);
    out.words = new Array(this.length + num.length);
    return this.mulTo(num, out);
  };

  // Multiply employing FFT
  BN.prototype.mulf = function mulf (num) {
    var out = new BN(null);
    out.words = new Array(this.length + num.length);
    return jumboMulTo(this, num, out);
  };

  // In-place Multiplication
  BN.prototype.imul = function imul (num) {
    return this.clone().mulTo(num, this);
  };

  BN.prototype.imuln = function imuln (num) {
    assert(typeof num === 'number');
    assert(num < 0x4000000);

    // Carry
    var carry = 0;
    for (var i = 0; i < this.length; i++) {
      var w = (this.words[i] | 0) * num;
      var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);
      carry >>= 26;
      carry += (w / 0x4000000) | 0;
      // NOTE: lo is 27bit maximum
      carry += lo >>> 26;
      this.words[i] = lo & 0x3ffffff;
    }

    if (carry !== 0) {
      this.words[i] = carry;
      this.length++;
    }

    return this;
  };

  BN.prototype.muln = function muln (num) {
    return this.clone().imuln(num);
  };

  // `this` * `this`
  BN.prototype.sqr = function sqr () {
    return this.mul(this);
  };

  // `this` * `this` in-place
  BN.prototype.isqr = function isqr () {
    return this.imul(this.clone());
  };

  // Math.pow(`this`, `num`)
  BN.prototype.pow = function pow (num) {
    var w = toBitArray(num);
    if (w.length === 0) return new BN(1);

    // Skip leading zeroes
    var res = this;
    for (var i = 0; i < w.length; i++, res = res.sqr()) {
      if (w[i] !== 0) break;
    }

    if (++i < w.length) {
      for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {
        if (w[i] === 0) continue;

        res = res.mul(q);
      }
    }

    return res;
  };

  // Shift-left in-place
  BN.prototype.iushln = function iushln (bits) {
    assert(typeof bits === 'number' && bits >= 0);
    var r = bits % 26;
    var s = (bits - r) / 26;
    var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);
    var i;

    if (r !== 0) {
      var carry = 0;

      for (i = 0; i < this.length; i++) {
        var newCarry = this.words[i] & carryMask;
        var c = ((this.words[i] | 0) - newCarry) << r;
        this.words[i] = c | carry;
        carry = newCarry >>> (26 - r);
      }

      if (carry) {
        this.words[i] = carry;
        this.length++;
      }
    }

    if (s !== 0) {
      for (i = this.length - 1; i >= 0; i--) {
        this.words[i + s] = this.words[i];
      }

      for (i = 0; i < s; i++) {
        this.words[i] = 0;
      }

      this.length += s;
    }

    return this.strip();
  };

  BN.prototype.ishln = function ishln (bits) {
    // TODO(indutny): implement me
    assert(this.negative === 0);
    return this.iushln(bits);
  };

  // Shift-right in-place
  // NOTE: `hint` is a lowest bit before trailing zeroes
  // NOTE: if `extended` is present - it will be filled with destroyed bits
  BN.prototype.iushrn = function iushrn (bits, hint, extended) {
    assert(typeof bits === 'number' && bits >= 0);
    var h;
    if (hint) {
      h = (hint - (hint % 26)) / 26;
    } else {
      h = 0;
    }

    var r = bits % 26;
    var s = Math.min((bits - r) / 26, this.length);
    var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);
    var maskedWords = extended;

    h -= s;
    h = Math.max(0, h);

    // Extended mode, copy masked part
    if (maskedWords) {
      for (var i = 0; i < s; i++) {
        maskedWords.words[i] = this.words[i];
      }
      maskedWords.length = s;
    }

    if (s === 0) {
      // No-op, we should not move anything at all
    } else if (this.length > s) {
      this.length -= s;
      for (i = 0; i < this.length; i++) {
        this.words[i] = this.words[i + s];
      }
    } else {
      this.words[0] = 0;
      this.length = 1;
    }

    var carry = 0;
    for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {
      var word = this.words[i] | 0;
      this.words[i] = (carry << (26 - r)) | (word >>> r);
      carry = word & mask;
    }

    // Push carried bits as a mask
    if (maskedWords && carry !== 0) {
      maskedWords.words[maskedWords.length++] = carry;
    }

    if (this.length === 0) {
      this.words[0] = 0;
      this.length = 1;
    }

    return this.strip();
  };

  BN.prototype.ishrn = function ishrn (bits, hint, extended) {
    // TODO(indutny): implement me
    assert(this.negative === 0);
    return this.iushrn(bits, hint, extended);
  };

  // Shift-left
  BN.prototype.shln = function shln (bits) {
    return this.clone().ishln(bits);
  };

  BN.prototype.ushln = function ushln (bits) {
    return this.clone().iushln(bits);
  };

  // Shift-right
  BN.prototype.shrn = function shrn (bits) {
    return this.clone().ishrn(bits);
  };

  BN.prototype.ushrn = function ushrn (bits) {
    return this.clone().iushrn(bits);
  };

  // Test if n bit is set
  BN.prototype.testn = function testn (bit) {
    assert(typeof bit === 'number' && bit >= 0);
    var r = bit % 26;
    var s = (bit - r) / 26;
    var q = 1 << r;

    // Fast case: bit is much higher than all existing words
    if (this.length <= s) return false;

    // Check bit and return
    var w = this.words[s];

    return !!(w & q);
  };

  // Return only lowers bits of number (in-place)
  BN.prototype.imaskn = function imaskn (bits) {
    assert(typeof bits === 'number' && bits >= 0);
    var r = bits % 26;
    var s = (bits - r) / 26;

    assert(this.negative === 0, 'imaskn works only with positive numbers');

    if (this.length <= s) {
      return this;
    }

    if (r !== 0) {
      s++;
    }
    this.length = Math.min(s, this.length);

    if (r !== 0) {
      var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);
      this.words[this.length - 1] &= mask;
    }

    return this.strip();
  };

  // Return only lowers bits of number
  BN.prototype.maskn = function maskn (bits) {
    return this.clone().imaskn(bits);
  };

  // Add plain number `num` to `this`
  BN.prototype.iaddn = function iaddn (num) {
    assert(typeof num === 'number');
    assert(num < 0x4000000);
    if (num < 0) return this.isubn(-num);

    // Possible sign change
    if (this.negative !== 0) {
      if (this.length === 1 && (this.words[0] | 0) < num) {
        this.words[0] = num - (this.words[0] | 0);
        this.negative = 0;
        return this;
      }

      this.negative = 0;
      this.isubn(num);
      this.negative = 1;
      return this;
    }

    // Add without checks
    return this._iaddn(num);
  };

  BN.prototype._iaddn = function _iaddn (num) {
    this.words[0] += num;

    // Carry
    for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {
      this.words[i] -= 0x4000000;
      if (i === this.length - 1) {
        this.words[i + 1] = 1;
      } else {
        this.words[i + 1]++;
      }
    }
    this.length = Math.max(this.length, i + 1);

    return this;
  };

  // Subtract plain number `num` from `this`
  BN.prototype.isubn = function isubn (num) {
    assert(typeof num === 'number');
    assert(num < 0x4000000);
    if (num < 0) return this.iaddn(-num);

    if (this.negative !== 0) {
      this.negative = 0;
      this.iaddn(num);
      this.negative = 1;
      return this;
    }

    this.words[0] -= num;

    if (this.length === 1 && this.words[0] < 0) {
      this.words[0] = -this.words[0];
      this.negative = 1;
    } else {
      // Carry
      for (var i = 0; i < this.length && this.words[i] < 0; i++) {
        this.words[i] += 0x4000000;
        this.words[i + 1] -= 1;
      }
    }

    return this.strip();
  };

  BN.prototype.addn = function addn (num) {
    return this.clone().iaddn(num);
  };

  BN.prototype.subn = function subn (num) {
    return this.clone().isubn(num);
  };

  BN.prototype.iabs = function iabs () {
    this.negative = 0;

    return this;
  };

  BN.prototype.abs = function abs () {
    return this.clone().iabs();
  };

  BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {
    var len = num.length + shift;
    var i;

    this._expand(len);

    var w;
    var carry = 0;
    for (i = 0; i < num.length; i++) {
      w = (this.words[i + shift] | 0) + carry;
      var right = (num.words[i] | 0) * mul;
      w -= right & 0x3ffffff;
      carry = (w >> 26) - ((right / 0x4000000) | 0);
      this.words[i + shift] = w & 0x3ffffff;
    }
    for (; i < this.length - shift; i++) {
      w = (this.words[i + shift] | 0) + carry;
      carry = w >> 26;
      this.words[i + shift] = w & 0x3ffffff;
    }

    if (carry === 0) return this.strip();

    // Subtraction overflow
    assert(carry === -1);
    carry = 0;
    for (i = 0; i < this.length; i++) {
      w = -(this.words[i] | 0) + carry;
      carry = w >> 26;
      this.words[i] = w & 0x3ffffff;
    }
    this.negative = 1;

    return this.strip();
  };

  BN.prototype._wordDiv = function _wordDiv (num, mode) {
    var shift = this.length - num.length;

    var a = this.clone();
    var b = num;

    // Normalize
    var bhi = b.words[b.length - 1] | 0;
    var bhiBits = this._countBits(bhi);
    shift = 26 - bhiBits;
    if (shift !== 0) {
      b = b.ushln(shift);
      a.iushln(shift);
      bhi = b.words[b.length - 1] | 0;
    }

    // Initialize quotient
    var m = a.length - b.length;
    var q;

    if (mode !== 'mod') {
      q = new BN(null);
      q.length = m + 1;
      q.words = new Array(q.length);
      for (var i = 0; i < q.length; i++) {
        q.words[i] = 0;
      }
    }

    var diff = a.clone()._ishlnsubmul(b, 1, m);
    if (diff.negative === 0) {
      a = diff;
      if (q) {
        q.words[m] = 1;
      }
    }

    for (var j = m - 1; j >= 0; j--) {
      var qj = (a.words[b.length + j] | 0) * 0x4000000 +
        (a.words[b.length + j - 1] | 0);

      // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max
      // (0x7ffffff)
      qj = Math.min((qj / bhi) | 0, 0x3ffffff);

      a._ishlnsubmul(b, qj, j);
      while (a.negative !== 0) {
        qj--;
        a.negative = 0;
        a._ishlnsubmul(b, 1, j);
        if (!a.isZero()) {
          a.negative ^= 1;
        }
      }
      if (q) {
        q.words[j] = qj;
      }
    }
    if (q) {
      q.strip();
    }
    a.strip();

    // Denormalize
    if (mode !== 'div' && shift !== 0) {
      a.iushrn(shift);
    }

    return {
      div: q || null,
      mod: a
    };
  };

  // NOTE: 1) `mode` can be set to `mod` to request mod only,
  //       to `div` to request div only, or be absent to
  //       request both div & mod
  //       2) `positive` is true if unsigned mod is requested
  BN.prototype.divmod = function divmod (num, mode, positive) {
    assert(!num.isZero());

    if (this.isZero()) {
      return {
        div: new BN(0),
        mod: new BN(0)
      };
    }

    var div, mod, res;
    if (this.negative !== 0 && num.negative === 0) {
      res = this.neg().divmod(num, mode);

      if (mode !== 'mod') {
        div = res.div.neg();
      }

      if (mode !== 'div') {
        mod = res.mod.neg();
        if (positive && mod.negative !== 0) {
          mod.iadd(num);
        }
      }

      return {
        div: div,
        mod: mod
      };
    }

    if (this.negative === 0 && num.negative !== 0) {
      res = this.divmod(num.neg(), mode);

      if (mode !== 'mod') {
        div = res.div.neg();
      }

      return {
        div: div,
        mod: res.mod
      };
    }

    if ((this.negative & num.negative) !== 0) {
      res = this.neg().divmod(num.neg(), mode);

      if (mode !== 'div') {
        mod = res.mod.neg();
        if (positive && mod.negative !== 0) {
          mod.isub(num);
        }
      }

      return {
        div: res.div,
        mod: mod
      };
    }

    // Both numbers are positive at this point

    // Strip both numbers to approximate shift value
    if (num.length > this.length || this.cmp(num) < 0) {
      return {
        div: new BN(0),
        mod: this
      };
    }

    // Very short reduction
    if (num.length === 1) {
      if (mode === 'div') {
        return {
          div: this.divn(num.words[0]),
          mod: null
        };
      }

      if (mode === 'mod') {
        return {
          div: null,
          mod: new BN(this.modn(num.words[0]))
        };
      }

      return {
        div: this.divn(num.words[0]),
        mod: new BN(this.modn(num.words[0]))
      };
    }

    return this._wordDiv(num, mode);
  };

  // Find `this` / `num`
  BN.prototype.div = function div (num) {
    return this.divmod(num, 'div', false).div;
  };

  // Find `this` % `num`
  BN.prototype.mod = function mod (num) {
    return this.divmod(num, 'mod', false).mod;
  };

  BN.prototype.umod = function umod (num) {
    return this.divmod(num, 'mod', true).mod;
  };

  // Find Round(`this` / `num`)
  BN.prototype.divRound = function divRound (num) {
    var dm = this.divmod(num);

    // Fast case - exact division
    if (dm.mod.isZero()) return dm.div;

    var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;

    var half = num.ushrn(1);
    var r2 = num.andln(1);
    var cmp = mod.cmp(half);

    // Round down
    if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;

    // Round up
    return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);
  };

  BN.prototype.modn = function modn (num) {
    assert(num <= 0x3ffffff);
    var p = (1 << 26) % num;

    var acc = 0;
    for (var i = this.length - 1; i >= 0; i--) {
      acc = (p * acc + (this.words[i] | 0)) % num;
    }

    return acc;
  };

  // In-place division by number
  BN.prototype.idivn = function idivn (num) {
    assert(num <= 0x3ffffff);

    var carry = 0;
    for (var i = this.length - 1; i >= 0; i--) {
      var w = (this.words[i] | 0) + carry * 0x4000000;
      this.words[i] = (w / num) | 0;
      carry = w % num;
    }

    return this.strip();
  };

  BN.prototype.divn = function divn (num) {
    return this.clone().idivn(num);
  };

  BN.prototype.egcd = function egcd (p) {
    assert(p.negative === 0);
    assert(!p.isZero());

    var x = this;
    var y = p.clone();

    if (x.negative !== 0) {
      x = x.umod(p);
    } else {
      x = x.clone();
    }

    // A * x + B * y = x
    var A = new BN(1);
    var B = new BN(0);

    // C * x + D * y = y
    var C = new BN(0);
    var D = new BN(1);

    var g = 0;

    while (x.isEven() && y.isEven()) {
      x.iushrn(1);
      y.iushrn(1);
      ++g;
    }

    var yp = y.clone();
    var xp = x.clone();

    while (!x.isZero()) {
      for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);
      if (i > 0) {
        x.iushrn(i);
        while (i-- > 0) {
          if (A.isOdd() || B.isOdd()) {
            A.iadd(yp);
            B.isub(xp);
          }

          A.iushrn(1);
          B.iushrn(1);
        }
      }

      for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);
      if (j > 0) {
        y.iushrn(j);
        while (j-- > 0) {
          if (C.isOdd() || D.isOdd()) {
            C.iadd(yp);
            D.isub(xp);
          }

          C.iushrn(1);
          D.iushrn(1);
        }
      }

      if (x.cmp(y) >= 0) {
        x.isub(y);
        A.isub(C);
        B.isub(D);
      } else {
        y.isub(x);
        C.isub(A);
        D.isub(B);
      }
    }

    return {
      a: C,
      b: D,
      gcd: y.iushln(g)
    };
  };

  // This is reduced incarnation of the binary EEA
  // above, designated to invert members of the
  // _prime_ fields F(p) at a maximal speed
  BN.prototype._invmp = function _invmp (p) {
    assert(p.negative === 0);
    assert(!p.isZero());

    var a = this;
    var b = p.clone();

    if (a.negative !== 0) {
      a = a.umod(p);
    } else {
      a = a.clone();
    }

    var x1 = new BN(1);
    var x2 = new BN(0);

    var delta = b.clone();

    while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {
      for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);
      if (i > 0) {
        a.iushrn(i);
        while (i-- > 0) {
          if (x1.isOdd()) {
            x1.iadd(delta);
          }

          x1.iushrn(1);
        }
      }

      for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);
      if (j > 0) {
        b.iushrn(j);
        while (j-- > 0) {
          if (x2.isOdd()) {
            x2.iadd(delta);
          }

          x2.iushrn(1);
        }
      }

      if (a.cmp(b) >= 0) {
        a.isub(b);
        x1.isub(x2);
      } else {
        b.isub(a);
        x2.isub(x1);
      }
    }

    var res;
    if (a.cmpn(1) === 0) {
      res = x1;
    } else {
      res = x2;
    }

    if (res.cmpn(0) < 0) {
      res.iadd(p);
    }

    return res;
  };

  BN.prototype.gcd = function gcd (num) {
    if (this.isZero()) return num.abs();
    if (num.isZero()) return this.abs();

    var a = this.clone();
    var b = num.clone();
    a.negative = 0;
    b.negative = 0;

    // Remove common factor of two
    for (var shift = 0; a.isEven() && b.isEven(); shift++) {
      a.iushrn(1);
      b.iushrn(1);
    }

    do {
      while (a.isEven()) {
        a.iushrn(1);
      }
      while (b.isEven()) {
        b.iushrn(1);
      }

      var r = a.cmp(b);
      if (r < 0) {
        // Swap `a` and `b` to make `a` always bigger than `b`
        var t = a;
        a = b;
        b = t;
      } else if (r === 0 || b.cmpn(1) === 0) {
        break;
      }

      a.isub(b);
    } while (true);

    return b.iushln(shift);
  };

  // Invert number in the field F(num)
  BN.prototype.invm = function invm (num) {
    return this.egcd(num).a.umod(num);
  };

  BN.prototype.isEven = function isEven () {
    return (this.words[0] & 1) === 0;
  };

  BN.prototype.isOdd = function isOdd () {
    return (this.words[0] & 1) === 1;
  };

  // And first word and num
  BN.prototype.andln = function andln (num) {
    return this.words[0] & num;
  };

  // Increment at the bit position in-line
  BN.prototype.bincn = function bincn (bit) {
    assert(typeof bit === 'number');
    var r = bit % 26;
    var s = (bit - r) / 26;
    var q = 1 << r;

    // Fast case: bit is much higher than all existing words
    if (this.length <= s) {
      this._expand(s + 1);
      this.words[s] |= q;
      return this;
    }

    // Add bit and propagate, if needed
    var carry = q;
    for (var i = s; carry !== 0 && i < this.length; i++) {
      var w = this.words[i] | 0;
      w += carry;
      carry = w >>> 26;
      w &= 0x3ffffff;
      this.words[i] = w;
    }
    if (carry !== 0) {
      this.words[i] = carry;
      this.length++;
    }
    return this;
  };

  BN.prototype.isZero = function isZero () {
    return this.length === 1 && this.words[0] === 0;
  };

  BN.prototype.cmpn = function cmpn (num) {
    var negative = num < 0;

    if (this.negative !== 0 && !negative) return -1;
    if (this.negative === 0 && negative) return 1;

    this.strip();

    var res;
    if (this.length > 1) {
      res = 1;
    } else {
      if (negative) {
        num = -num;
      }

      assert(num <= 0x3ffffff, 'Number is too big');

      var w = this.words[0] | 0;
      res = w === num ? 0 : w < num ? -1 : 1;
    }
    if (this.negative !== 0) return -res | 0;
    return res;
  };

  // Compare two numbers and return:
  // 1 - if `this` > `num`
  // 0 - if `this` == `num`
  // -1 - if `this` < `num`
  BN.prototype.cmp = function cmp (num) {
    if (this.negative !== 0 && num.negative === 0) return -1;
    if (this.negative === 0 && num.negative !== 0) return 1;

    var res = this.ucmp(num);
    if (this.negative !== 0) return -res | 0;
    return res;
  };

  // Unsigned comparison
  BN.prototype.ucmp = function ucmp (num) {
    // At this point both numbers have the same sign
    if (this.length > num.length) return 1;
    if (this.length < num.length) return -1;

    var res = 0;
    for (var i = this.length - 1; i >= 0; i--) {
      var a = this.words[i] | 0;
      var b = num.words[i] | 0;

      if (a === b) continue;
      if (a < b) {
        res = -1;
      } else if (a > b) {
        res = 1;
      }
      break;
    }
    return res;
  };

  BN.prototype.gtn = function gtn (num) {
    return this.cmpn(num) === 1;
  };

  BN.prototype.gt = function gt (num) {
    return this.cmp(num) === 1;
  };

  BN.prototype.gten = function gten (num) {
    return this.cmpn(num) >= 0;
  };

  BN.prototype.gte = function gte (num) {
    return this.cmp(num) >= 0;
  };

  BN.prototype.ltn = function ltn (num) {
    return this.cmpn(num) === -1;
  };

  BN.prototype.lt = function lt (num) {
    return this.cmp(num) === -1;
  };

  BN.prototype.lten = function lten (num) {
    return this.cmpn(num) <= 0;
  };

  BN.prototype.lte = function lte (num) {
    return this.cmp(num) <= 0;
  };

  BN.prototype.eqn = function eqn (num) {
    return this.cmpn(num) === 0;
  };

  BN.prototype.eq = function eq (num) {
    return this.cmp(num) === 0;
  };

  //
  // A reduce context, could be using montgomery or something better, depending
  // on the `m` itself.
  //
  BN.red = function red (num) {
    return new Red(num);
  };

  BN.prototype.toRed = function toRed (ctx) {
    assert(!this.red, 'Already a number in reduction context');
    assert(this.negative === 0, 'red works only with positives');
    return ctx.convertTo(this)._forceRed(ctx);
  };

  BN.prototype.fromRed = function fromRed () {
    assert(this.red, 'fromRed works only with numbers in reduction context');
    return this.red.convertFrom(this);
  };

  BN.prototype._forceRed = function _forceRed (ctx) {
    this.red = ctx;
    return this;
  };

  BN.prototype.forceRed = function forceRed (ctx) {
    assert(!this.red, 'Already a number in reduction context');
    return this._forceRed(ctx);
  };

  BN.prototype.redAdd = function redAdd (num) {
    assert(this.red, 'redAdd works only with red numbers');
    return this.red.add(this, num);
  };

  BN.prototype.redIAdd = function redIAdd (num) {
    assert(this.red, 'redIAdd works only with red numbers');
    return this.red.iadd(this, num);
  };

  BN.prototype.redSub = function redSub (num) {
    assert(this.red, 'redSub works only with red numbers');
    return this.red.sub(this, num);
  };

  BN.prototype.redISub = function redISub (num) {
    assert(this.red, 'redISub works only with red numbers');
    return this.red.isub(this, num);
  };

  BN.prototype.redShl = function redShl (num) {
    assert(this.red, 'redShl works only with red numbers');
    return this.red.shl(this, num);
  };

  BN.prototype.redMul = function redMul (num) {
    assert(this.red, 'redMul works only with red numbers');
    this.red._verify2(this, num);
    return this.red.mul(this, num);
  };

  BN.prototype.redIMul = function redIMul (num) {
    assert(this.red, 'redMul works only with red numbers');
    this.red._verify2(this, num);
    return this.red.imul(this, num);
  };

  BN.prototype.redSqr = function redSqr () {
    assert(this.red, 'redSqr works only with red numbers');
    this.red._verify1(this);
    return this.red.sqr(this);
  };

  BN.prototype.redISqr = function redISqr () {
    assert(this.red, 'redISqr works only with red numbers');
    this.red._verify1(this);
    return this.red.isqr(this);
  };

  // Square root over p
  BN.prototype.redSqrt = function redSqrt () {
    assert(this.red, 'redSqrt works only with red numbers');
    this.red._verify1(this);
    return this.red.sqrt(this);
  };

  BN.prototype.redInvm = function redInvm () {
    assert(this.red, 'redInvm works only with red numbers');
    this.red._verify1(this);
    return this.red.invm(this);
  };

  // Return negative clone of `this` % `red modulo`
  BN.prototype.redNeg = function redNeg () {
    assert(this.red, 'redNeg works only with red numbers');
    this.red._verify1(this);
    return this.red.neg(this);
  };

  BN.prototype.redPow = function redPow (num) {
    assert(this.red && !num.red, 'redPow(normalNum)');
    this.red._verify1(this);
    return this.red.pow(this, num);
  };

  // Prime numbers with efficient reduction
  var primes = {
    k256: null,
    p224: null,
    p192: null,
    p25519: null
  };

  // Pseudo-Mersenne prime
  function MPrime (name, p) {
    // P = 2 ^ N - K
    this.name = name;
    this.p = new BN(p, 16);
    this.n = this.p.bitLength();
    this.k = new BN(1).iushln(this.n).isub(this.p);

    this.tmp = this._tmp();
  }

  MPrime.prototype._tmp = function _tmp () {
    var tmp = new BN(null);
    tmp.words = new Array(Math.ceil(this.n / 13));
    return tmp;
  };

  MPrime.prototype.ireduce = function ireduce (num) {
    // Assumes that `num` is less than `P^2`
    // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)
    var r = num;
    var rlen;

    do {
      this.split(r, this.tmp);
      r = this.imulK(r);
      r = r.iadd(this.tmp);
      rlen = r.bitLength();
    } while (rlen > this.n);

    var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
    if (cmp === 0) {
      r.words[0] = 0;
      r.length = 1;
    } else if (cmp > 0) {
      r.isub(this.p);
    } else {
      r.strip();
    }

    return r;
  };

  MPrime.prototype.split = function split (input, out) {
    input.iushrn(this.n, 0, out);
  };

  MPrime.prototype.imulK = function imulK (num) {
    return num.imul(this.k);
  };

  function K256 () {
    MPrime.call(
      this,
      'k256',
      'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');
  }
  inherits(K256, MPrime);

  K256.prototype.split = function split (input, output) {
    // 256 = 9 * 26 + 22
    var mask = 0x3fffff;

    var outLen = Math.min(input.length, 9);
    for (var i = 0; i < outLen; i++) {
      output.words[i] = input.words[i];
    }
    output.length = outLen;

    if (input.length <= 9) {
      input.words[0] = 0;
      input.length = 1;
      return;
    }

    // Shift by 9 limbs
    var prev = input.words[9];
    output.words[output.length++] = prev & mask;

    for (i = 10; i < input.length; i++) {
      var next = input.words[i] | 0;
      input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);
      prev = next;
    }
    prev >>>= 22;
    input.words[i - 10] = prev;
    if (prev === 0 && input.length > 10) {
      input.length -= 10;
    } else {
      input.length -= 9;
    }
  };

  K256.prototype.imulK = function imulK (num) {
    // K = 0x1000003d1 = [ 0x40, 0x3d1 ]
    num.words[num.length] = 0;
    num.words[num.length + 1] = 0;
    num.length += 2;

    // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390
    var lo = 0;
    for (var i = 0; i < num.length; i++) {
      var w = num.words[i] | 0;
      lo += w * 0x3d1;
      num.words[i] = lo & 0x3ffffff;
      lo = w * 0x40 + ((lo / 0x4000000) | 0);
    }

    // Fast length reduction
    if (num.words[num.length - 1] === 0) {
      num.length--;
      if (num.words[num.length - 1] === 0) {
        num.length--;
      }
    }
    return num;
  };

  function P224 () {
    MPrime.call(
      this,
      'p224',
      'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');
  }
  inherits(P224, MPrime);

  function P192 () {
    MPrime.call(
      this,
      'p192',
      'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');
  }
  inherits(P192, MPrime);

  function P25519 () {
    // 2 ^ 255 - 19
    MPrime.call(
      this,
      '25519',
      '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');
  }
  inherits(P25519, MPrime);

  P25519.prototype.imulK = function imulK (num) {
    // K = 0x13
    var carry = 0;
    for (var i = 0; i < num.length; i++) {
      var hi = (num.words[i] | 0) * 0x13 + carry;
      var lo = hi & 0x3ffffff;
      hi >>>= 26;

      num.words[i] = lo;
      carry = hi;
    }
    if (carry !== 0) {
      num.words[num.length++] = carry;
    }
    return num;
  };

  // Exported mostly for testing purposes, use plain name instead
  BN._prime = function prime (name) {
    // Cached version of prime
    if (primes[name]) return primes[name];

    var prime;
    if (name === 'k256') {
      prime = new K256();
    } else if (name === 'p224') {
      prime = new P224();
    } else if (name === 'p192') {
      prime = new P192();
    } else if (name === 'p25519') {
      prime = new P25519();
    } else {
      throw new Error('Unknown prime ' + name);
    }
    primes[name] = prime;

    return prime;
  };

  //
  // Base reduction engine
  //
  function Red (m) {
    if (typeof m === 'string') {
      var prime = BN._prime(m);
      this.m = prime.p;
      this.prime = prime;
    } else {
      assert(m.gtn(1), 'modulus must be greater than 1');
      this.m = m;
      this.prime = null;
    }
  }

  Red.prototype._verify1 = function _verify1 (a) {
    assert(a.negative === 0, 'red works only with positives');
    assert(a.red, 'red works only with red numbers');
  };

  Red.prototype._verify2 = function _verify2 (a, b) {
    assert((a.negative | b.negative) === 0, 'red works only with positives');
    assert(a.red && a.red === b.red,
      'red works only with red numbers');
  };

  Red.prototype.imod = function imod (a) {
    if (this.prime) return this.prime.ireduce(a)._forceRed(this);
    return a.umod(this.m)._forceRed(this);
  };

  Red.prototype.neg = function neg (a) {
    if (a.isZero()) {
      return a.clone();
    }

    return this.m.sub(a)._forceRed(this);
  };

  Red.prototype.add = function add (a, b) {
    this._verify2(a, b);

    var res = a.add(b);
    if (res.cmp(this.m) >= 0) {
      res.isub(this.m);
    }
    return res._forceRed(this);
  };

  Red.prototype.iadd = function iadd (a, b) {
    this._verify2(a, b);

    var res = a.iadd(b);
    if (res.cmp(this.m) >= 0) {
      res.isub(this.m);
    }
    return res;
  };

  Red.prototype.sub = function sub (a, b) {
    this._verify2(a, b);

    var res = a.sub(b);
    if (res.cmpn(0) < 0) {
      res.iadd(this.m);
    }
    return res._forceRed(this);
  };

  Red.prototype.isub = function isub (a, b) {
    this._verify2(a, b);

    var res = a.isub(b);
    if (res.cmpn(0) < 0) {
      res.iadd(this.m);
    }
    return res;
  };

  Red.prototype.shl = function shl (a, num) {
    this._verify1(a);
    return this.imod(a.ushln(num));
  };

  Red.prototype.imul = function imul (a, b) {
    this._verify2(a, b);
    return this.imod(a.imul(b));
  };

  Red.prototype.mul = function mul (a, b) {
    this._verify2(a, b);
    return this.imod(a.mul(b));
  };

  Red.prototype.isqr = function isqr (a) {
    return this.imul(a, a.clone());
  };

  Red.prototype.sqr = function sqr (a) {
    return this.mul(a, a);
  };

  Red.prototype.sqrt = function sqrt (a) {
    if (a.isZero()) return a.clone();

    var mod3 = this.m.andln(3);
    assert(mod3 % 2 === 1);

    // Fast case
    if (mod3 === 3) {
      var pow = this.m.add(new BN(1)).iushrn(2);
      return this.pow(a, pow);
    }

    // Tonelli-Shanks algorithm (Totally unoptimized and slow)
    //
    // Find Q and S, that Q * 2 ^ S = (P - 1)
    var q = this.m.subn(1);
    var s = 0;
    while (!q.isZero() && q.andln(1) === 0) {
      s++;
      q.iushrn(1);
    }
    assert(!q.isZero());

    var one = new BN(1).toRed(this);
    var nOne = one.redNeg();

    // Find quadratic non-residue
    // NOTE: Max is such because of generalized Riemann hypothesis.
    var lpow = this.m.subn(1).iushrn(1);
    var z = this.m.bitLength();
    z = new BN(2 * z * z).toRed(this);

    while (this.pow(z, lpow).cmp(nOne) !== 0) {
      z.redIAdd(nOne);
    }

    var c = this.pow(z, q);
    var r = this.pow(a, q.addn(1).iushrn(1));
    var t = this.pow(a, q);
    var m = s;
    while (t.cmp(one) !== 0) {
      var tmp = t;
      for (var i = 0; tmp.cmp(one) !== 0; i++) {
        tmp = tmp.redSqr();
      }
      assert(i < m);
      var b = this.pow(c, new BN(1).iushln(m - i - 1));

      r = r.redMul(b);
      c = b.redSqr();
      t = t.redMul(c);
      m = i;
    }

    return r;
  };

  Red.prototype.invm = function invm (a) {
    var inv = a._invmp(this.m);
    if (inv.negative !== 0) {
      inv.negative = 0;
      return this.imod(inv).redNeg();
    } else {
      return this.imod(inv);
    }
  };

  Red.prototype.pow = function pow (a, num) {
    if (num.isZero()) return new BN(1).toRed(this);
    if (num.cmpn(1) === 0) return a.clone();

    var windowSize = 4;
    var wnd = new Array(1 << windowSize);
    wnd[0] = new BN(1).toRed(this);
    wnd[1] = a;
    for (var i = 2; i < wnd.length; i++) {
      wnd[i] = this.mul(wnd[i - 1], a);
    }

    var res = wnd[0];
    var current = 0;
    var currentLen = 0;
    var start = num.bitLength() % 26;
    if (start === 0) {
      start = 26;
    }

    for (i = num.length - 1; i >= 0; i--) {
      var word = num.words[i];
      for (var j = start - 1; j >= 0; j--) {
        var bit = (word >> j) & 1;
        if (res !== wnd[0]) {
          res = this.sqr(res);
        }

        if (bit === 0 && current === 0) {
          currentLen = 0;
          continue;
        }

        current <<= 1;
        current |= bit;
        currentLen++;
        if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;

        res = this.mul(res, wnd[current]);
        currentLen = 0;
        current = 0;
      }
      start = 26;
    }

    return res;
  };

  Red.prototype.convertTo = function convertTo (num) {
    var r = num.umod(this.m);

    return r === num ? r.clone() : r;
  };

  Red.prototype.convertFrom = function convertFrom (num) {
    var res = num.clone();
    res.red = null;
    return res;
  };

  //
  // Montgomery method engine
  //

  BN.mont = function mont (num) {
    return new Mont(num);
  };

  function Mont (m) {
    Red.call(this, m);

    this.shift = this.m.bitLength();
    if (this.shift % 26 !== 0) {
      this.shift += 26 - (this.shift % 26);
    }

    this.r = new BN(1).iushln(this.shift);
    this.r2 = this.imod(this.r.sqr());
    this.rinv = this.r._invmp(this.m);

    this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);
    this.minv = this.minv.umod(this.r);
    this.minv = this.r.sub(this.minv);
  }
  inherits(Mont, Red);

  Mont.prototype.convertTo = function convertTo (num) {
    return this.imod(num.ushln(this.shift));
  };

  Mont.prototype.convertFrom = function convertFrom (num) {
    var r = this.imod(num.mul(this.rinv));
    r.red = null;
    return r;
  };

  Mont.prototype.imul = function imul (a, b) {
    if (a.isZero() || b.isZero()) {
      a.words[0] = 0;
      a.length = 1;
      return a;
    }

    var t = a.imul(b);
    var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
    var u = t.isub(c).iushrn(this.shift);
    var res = u;

    if (u.cmp(this.m) >= 0) {
      res = u.isub(this.m);
    } else if (u.cmpn(0) < 0) {
      res = u.iadd(this.m);
    }

    return res._forceRed(this);
  };

  Mont.prototype.mul = function mul (a, b) {
    if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);

    var t = a.mul(b);
    var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
    var u = t.isub(c).iushrn(this.shift);
    var res = u;
    if (u.cmp(this.m) >= 0) {
      res = u.isub(this.m);
    } else if (u.cmpn(0) < 0) {
      res = u.iadd(this.m);
    }

    return res._forceRed(this);
  };

  Mont.prototype.invm = function invm (a) {
    // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R
    var res = this.imod(a._invmp(this.m).mul(this.r2));
    return res._forceRed(this);
  };
})(typeof module === 'undefined' || module, this);

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(185)(module)))

/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.13 ToObject(argument)
var defined = __webpack_require__(32);
module.exports = function (it) {
  return Object(defined(it));
};


/***/ }),
/* 14 */
/***/ (function(module, exports) {

module.exports = function (it) {
  if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  return it;
};


/***/ }),
/* 15 */
/***/ (function(module, exports) {

var g;

// This works in non-strict mode
g = (function() {
	return this;
})();

try {
	// This works if eval is allowed (see CSP)
	g = g || Function("return this")() || (1,eval)("this");
} catch(e) {
	// This works if the window reference is available
	if(typeof window === "object")
		g = window;
}

// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}

module.exports = g;


/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var elliptic = exports;

elliptic.version = __webpack_require__(461).version;
elliptic.utils = __webpack_require__(462);
elliptic.rand = __webpack_require__(187);
elliptic.curve = __webpack_require__(88);
elliptic.curves = __webpack_require__(467);

// Protocols
elliptic.ec = __webpack_require__(475);
elliptic.eddsa = __webpack_require__(479);


/***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(10);
var createDesc = __webpack_require__(43);
module.exports = __webpack_require__(9) ? function (object, key, value) {
  return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
  object[key] = value;
  return object;
};


/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(3);
var hide = __webpack_require__(17);
var has = __webpack_require__(20);
var SRC = __webpack_require__(44)('src');
var TO_STRING = 'toString';
var $toString = Function[TO_STRING];
var TPL = ('' + $toString).split(TO_STRING);

__webpack_require__(26).inspectSource = function (it) {
  return $toString.call(it);
};

(module.exports = function (O, key, val, safe) {
  var isFunction = typeof val == 'function';
  if (isFunction) has(val, 'name') || hide(val, 'name', key);
  if (O[key] === val) return;
  if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
  if (O === global) {
    O[key] = val;
  } else if (!safe) {
    delete O[key];
    hide(O, key, val);
  } else if (O[key]) {
    O[key] = val;
  } else {
    hide(O, key, val);
  }
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, TO_STRING, function toString() {
  return typeof this == 'function' && this[SRC] || $toString.call(this);
});


/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var fails = __webpack_require__(4);
var defined = __webpack_require__(32);
var quot = /"/g;
// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
var createHTML = function (string, tag, attribute, value) {
  var S = String(defined(string));
  var p1 = '<' + tag;
  if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '&quot;') + '"';
  return p1 + '>' + S + '</' + tag + '>';
};
module.exports = function (NAME, exec) {
  var O = {};
  O[NAME] = exec(createHTML);
  $export($export.P + $export.F * fails(function () {
    var test = ''[NAME]('"');
    return test !== test.toLowerCase() || test.split('"').length > 3;
  }), 'String', O);
};


/***/ }),
/* 20 */
/***/ (function(module, exports) {

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
  return hasOwnProperty.call(it, key);
};


/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {

// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(60);
var defined = __webpack_require__(32);
module.exports = function (it) {
  return IObject(defined(it));
};


/***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) {

var pIE = __webpack_require__(61);
var createDesc = __webpack_require__(43);
var toIObject = __webpack_require__(21);
var toPrimitive = __webpack_require__(31);
var has = __webpack_require__(20);
var IE8_DOM_DEFINE = __webpack_require__(128);
var gOPD = Object.getOwnPropertyDescriptor;

exports.f = __webpack_require__(9) ? gOPD : function getOwnPropertyDescriptor(O, P) {
  O = toIObject(O);
  P = toPrimitive(P, true);
  if (IE8_DOM_DEFINE) try {
    return gOPD(O, P);
  } catch (e) { /* empty */ }
  if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
};


/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(20);
var toObject = __webpack_require__(13);
var IE_PROTO = __webpack_require__(92)('IE_PROTO');
var ObjectProto = Object.prototype;

module.exports = Object.getPrototypeOf || function (O) {
  O = toObject(O);
  if (has(O, IE_PROTO)) return O[IE_PROTO];
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
    return O.constructor.prototype;
  } return O instanceof Object ? ObjectProto : null;
};


/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */


var logDisabled_ = true;

// Utility methods.
var utils = {
  disableLog: function(bool) {
    if (typeof bool !== 'boolean') {
      return new Error('Argument type: ' + typeof bool +
          '. Please use a boolean.');
    }
    logDisabled_ = bool;
    return (bool) ? 'adapter.js logging disabled' :
        'adapter.js logging enabled';
  },

  log: function() {
    if (typeof window === 'object') {
      if (logDisabled_) {
        return;
      }
      if (typeof console !== 'undefined' && typeof console.log === 'function') {
        console.log.apply(console, arguments);
      }
    }
  },

  /**
   * Extract browser version out of the provided user agent string.
   *
   * @param {!string} uastring userAgent string.
   * @param {!string} expr Regular expression used as match criteria.
   * @param {!number} pos position in the version string to be returned.
   * @return {!number} browser version.
   */
  extractVersion: function(uastring, expr, pos) {
    var match = uastring.match(expr);
    return match && match.length >= pos && parseInt(match[pos], 10);
  },

  /**
   * Browser detector.
   *
   * @return {object} result containing browser, version and minVersion
   *     properties.
   */
  detectBrowser: function() {
    // Returned result object.
    var result = {};
    result.browser = null;
    result.version = null;
    result.minVersion = null;

    // Fail early if it's not a browser
    if (typeof window === 'undefined' || !window.navigator) {
      result.browser = 'Not a browser.';
      return result;
    }

    // Firefox.
    if (navigator.mozGetUserMedia) {
      result.browser = 'firefox';
      result.version = this.extractVersion(navigator.userAgent,
          /Firefox\/([0-9]+)\./, 1);
      result.minVersion = 31;

    // all webkit-based browsers
    } else if (navigator.webkitGetUserMedia) {
      // Chrome, Chromium, Webview, Opera, all use the chrome shim for now
      if (window.webkitRTCPeerConnection) {
        result.browser = 'chrome';
        result.version = this.extractVersion(navigator.userAgent,
          /Chrom(e|ium)\/([0-9]+)\./, 2);
        result.minVersion = 38;

      // Safari or unknown webkit-based
      // for the time being Safari has support for MediaStreams but not webRTC
      } else {
        // Safari UA substrings of interest for reference:
        // - webkit version:           AppleWebKit/602.1.25 (also used in Op,Cr)
        // - safari UI version:        Version/9.0.3 (unique to Safari)
        // - safari UI webkit version: Safari/601.4.4 (also used in Op,Cr)
        //
        // if the webkit version and safari UI webkit versions are equals,
        // ... this is a stable version.
        //
        // only the internal webkit version is important today to know if
        // media streams are supported
        //
        if (navigator.userAgent.match(/Version\/(\d+).(\d+)/)) {
          result.browser = 'safari';
          result.version = this.extractVersion(navigator.userAgent,
            /AppleWebKit\/([0-9]+)\./, 1);
          result.minVersion = 602;

        // unknown webkit-based browser
        } else {
          result.browser = 'Unsupported webkit-based browser ' +
              'with GUM support but no WebRTC support.';
          return result;
        }
      }

    // Edge.
    } else if (navigator.mediaDevices &&
        navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)) {
      result.browser = 'edge';
      result.version = this.extractVersion(navigator.userAgent,
          /Edge\/(\d+).(\d+)$/, 2);
      result.minVersion = 10547;

    // Default fallthrough: not supported.
    } else {
      result.browser = 'Not a supported browser.';
      return result;
    }

    // Warn if version is less than minVersion.
    if (result.version < result.minVersion) {
      utils.log('Browser: ' + result.browser + ' Version: ' + result.version +
          ' < minimum supported version: ' + result.minVersion +
          '\n some things might not work!');
    }

    return result;
  }
};

// Export.
module.exports = {
  log: utils.log,
  disableLog: utils.disableLog,
  browserDetails: utils.detectBrowser(),
  extractVersion: utils.extractVersion
};


/***/ }),
/* 25 */
/***/ (function(module, exports) {

module.exports = assert;

function assert(val, msg) {
  if (!val)
    throw new Error(msg || 'Assertion failed');
}

assert.equal = function assertEqual(l, r, msg) {
  if (l != r)
    throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
};


/***/ }),
/* 26 */
/***/ (function(module, exports) {

var core = module.exports = { version: '2.5.7' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef


/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {

// optional / simple context binding
var aFunction = __webpack_require__(14);
module.exports = function (fn, that, length) {
  aFunction(fn);
  if (that === undefined) return fn;
  switch (length) {
    case 1: return function (a) {
      return fn.call(that, a);
    };
    case 2: return function (a, b) {
      return fn.call(that, a, b);
    };
    case 3: return function (a, b, c) {
      return fn.call(that, a, b, c);
    };
  }
  return function (/* ...args */) {
    return fn.apply(that, arguments);
  };
};


/***/ }),
/* 28 */
/***/ (function(module, exports) {

var toString = {}.toString;

module.exports = function (it) {
  return toString.call(it).slice(8, -1);
};


/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var fails = __webpack_require__(4);

module.exports = function (method, arg) {
  return !!method && fails(function () {
    // eslint-disable-next-line no-useless-call
    arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
  });
};


/***/ }),
/* 30 */
/***/ (function(module, exports) {

// shim for using process in browser
var process = module.exports = {};

// cached from whatever global is present so that test runners that stub it
// don't break things.  But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals.  It's inside a
// function because try/catches deoptimize in certain engines.

var cachedSetTimeout;
var cachedClearTimeout;

function defaultSetTimout() {
    throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
    throw new Error('clearTimeout has not been defined');
}
(function () {
    try {
        if (typeof setTimeout === 'function') {
            cachedSetTimeout = setTimeout;
        } else {
            cachedSetTimeout = defaultSetTimout;
        }
    } catch (e) {
        cachedSetTimeout = defaultSetTimout;
    }
    try {
        if (typeof clearTimeout === 'function') {
            cachedClearTimeout = clearTimeout;
        } else {
            cachedClearTimeout = defaultClearTimeout;
        }
    } catch (e) {
        cachedClearTimeout = defaultClearTimeout;
    }
} ())
function runTimeout(fun) {
    if (cachedSetTimeout === setTimeout) {
        //normal enviroments in sane situations
        return setTimeout(fun, 0);
    }
    // if setTimeout wasn't available but was latter defined
    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
        cachedSetTimeout = setTimeout;
        return setTimeout(fun, 0);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedSetTimeout(fun, 0);
    } catch(e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
            return cachedSetTimeout.call(null, fun, 0);
        } catch(e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
            return cachedSetTimeout.call(this, fun, 0);
        }
    }


}
function runClearTimeout(marker) {
    if (cachedClearTimeout === clearTimeout) {
        //normal enviroments in sane situations
        return clearTimeout(marker);
    }
    // if clearTimeout wasn't available but was latter defined
    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
        cachedClearTimeout = clearTimeout;
        return clearTimeout(marker);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedClearTimeout(marker);
    } catch (e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
            return cachedClearTimeout.call(null, marker);
        } catch (e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
            // Some versions of I.E. have different rules for clearTimeout vs setTimeout
            return cachedClearTimeout.call(this, marker);
        }
    }



}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;

function cleanUpNextTick() {
    if (!draining || !currentQueue) {
        return;
    }
    draining = false;
    if (currentQueue.length) {
        queue = currentQueue.concat(queue);
    } else {
        queueIndex = -1;
    }
    if (queue.length) {
        drainQueue();
    }
}

function drainQueue() {
    if (draining) {
        return;
    }
    var timeout = runTimeout(cleanUpNextTick);
    draining = true;

    var len = queue.length;
    while(len) {
        currentQueue = queue;
        queue = [];
        while (++queueIndex < len) {
            if (currentQueue) {
                currentQueue[queueIndex].run();
            }
        }
        queueIndex = -1;
        len = queue.length;
    }
    currentQueue = null;
    draining = false;
    runClearTimeout(timeout);
}

process.nextTick = function (fun) {
    var args = new Array(arguments.length - 1);
    if (arguments.length > 1) {
        for (var i = 1; i < arguments.length; i++) {
            args[i - 1] = arguments[i];
        }
    }
    queue.push(new Item(fun, args));
    if (queue.length === 1 && !draining) {
        runTimeout(drainQueue);
    }
};

// v8 likes predictible objects
function Item(fun, array) {
    this.fun = fun;
    this.array = array;
}
Item.prototype.run = function () {
    this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};

function noop() {}

process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;

process.listeners = function (name) { return [] }

process.binding = function (name) {
    throw new Error('process.binding is not supported');
};

process.cwd = function () { return '/' };
process.chdir = function (dir) {
    throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };


/***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(5);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
  if (!isObject(it)) return it;
  var fn, val;
  if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  throw TypeError("Can't convert object to primitive value");
};


/***/ }),
/* 32 */
/***/ (function(module, exports) {

// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
  if (it == undefined) throw TypeError("Can't call method on  " + it);
  return it;
};


/***/ }),
/* 33 */
/***/ (function(module, exports) {

// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};


/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {

// most Object methods by ES6 should accept primitives
var $export = __webpack_require__(0);
var core = __webpack_require__(26);
var fails = __webpack_require__(4);
module.exports = function (KEY, exec) {
  var fn = (core.Object || {})[KEY] || Object[KEY];
  var exp = {};
  exp[KEY] = exec(fn);
  $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
};


/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {

// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var ctx = __webpack_require__(27);
var IObject = __webpack_require__(60);
var toObject = __webpack_require__(13);
var toLength = __webpack_require__(11);
var asc = __webpack_require__(109);
module.exports = function (TYPE, $create) {
  var IS_MAP = TYPE == 1;
  var IS_FILTER = TYPE == 2;
  var IS_SOME = TYPE == 3;
  var IS_EVERY = TYPE == 4;
  var IS_FIND_INDEX = TYPE == 6;
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  var create = $create || asc;
  return function ($this, callbackfn, that) {
    var O = toObject($this);
    var self = IObject(O);
    var f = ctx(callbackfn, that, 3);
    var length = toLength(self.length);
    var index = 0;
    var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
    var val, res;
    for (;length > index; index++) if (NO_HOLES || index in self) {
      val = self[index];
      res = f(val, index, O);
      if (TYPE) {
        if (IS_MAP) result[index] = res;   // map
        else if (res) switch (TYPE) {
          case 3: return true;             // some
          case 5: return val;              // find
          case 6: return index;            // findIndex
          case 2: result.push(val);        // filter
        } else if (IS_EVERY) return false; // every
      }
    }
    return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
  };
};


/***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var assert = __webpack_require__(25);
var inherits = __webpack_require__(1);

exports.inherits = inherits;

function toArray(msg, enc) {
  if (Array.isArray(msg))
    return msg.slice();
  if (!msg)
    return [];
  var res = [];
  if (typeof msg === 'string') {
    if (!enc) {
      for (var i = 0; i < msg.length; i++) {
        var c = msg.charCodeAt(i);
        var hi = c >> 8;
        var lo = c & 0xff;
        if (hi)
          res.push(hi, lo);
        else
          res.push(lo);
      }
    } else if (enc === 'hex') {
      msg = msg.replace(/[^a-z0-9]+/ig, '');
      if (msg.length % 2 !== 0)
        msg = '0' + msg;
      for (i = 0; i < msg.length; i += 2)
        res.push(parseInt(msg[i] + msg[i + 1], 16));
    }
  } else {
    for (i = 0; i < msg.length; i++)
      res[i] = msg[i] | 0;
  }
  return res;
}
exports.toArray = toArray;

function toHex(msg) {
  var res = '';
  for (var i = 0; i < msg.length; i++)
    res += zero2(msg[i].toString(16));
  return res;
}
exports.toHex = toHex;

function htonl(w) {
  var res = (w >>> 24) |
            ((w >>> 8) & 0xff00) |
            ((w << 8) & 0xff0000) |
            ((w & 0xff) << 24);
  return res >>> 0;
}
exports.htonl = htonl;

function toHex32(msg, endian) {
  var res = '';
  for (var i = 0; i < msg.length; i++) {
    var w = msg[i];
    if (endian === 'little')
      w = htonl(w);
    res += zero8(w.toString(16));
  }
  return res;
}
exports.toHex32 = toHex32;

function zero2(word) {
  if (word.length === 1)
    return '0' + word;
  else
    return word;
}
exports.zero2 = zero2;

function zero8(word) {
  if (word.length === 7)
    return '0' + word;
  else if (word.length === 6)
    return '00' + word;
  else if (word.length === 5)
    return '000' + word;
  else if (word.length === 4)
    return '0000' + word;
  else if (word.length === 3)
    return '00000' + word;
  else if (word.length === 2)
    return '000000' + word;
  else if (word.length === 1)
    return '0000000' + word;
  else
    return word;
}
exports.zero8 = zero8;

function join32(msg, start, end, endian) {
  var len = end - start;
  assert(len % 4 === 0);
  var res = new Array(len / 4);
  for (var i = 0, k = start; i < res.length; i++, k += 4) {
    var w;
    if (endian === 'big')
      w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];
    else
      w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];
    res[i] = w >>> 0;
  }
  return res;
}
exports.join32 = join32;

function split32(msg, endian) {
  var res = new Array(msg.length * 4);
  for (var i = 0, k = 0; i < msg.length; i++, k += 4) {
    var m = msg[i];
    if (endian === 'big') {
      res[k] = m >>> 24;
      res[k + 1] = (m >>> 16) & 0xff;
      res[k + 2] = (m >>> 8) & 0xff;
      res[k + 3] = m & 0xff;
    } else {
      res[k + 3] = m >>> 24;
      res[k + 2] = (m >>> 16) & 0xff;
      res[k + 1] = (m >>> 8) & 0xff;
      res[k] = m & 0xff;
    }
  }
  return res;
}
exports.split32 = split32;

function rotr32(w, b) {
  return (w >>> b) | (w << (32 - b));
}
exports.rotr32 = rotr32;

function rotl32(w, b) {
  return (w << b) | (w >>> (32 - b));
}
exports.rotl32 = rotl32;

function sum32(a, b) {
  return (a + b) >>> 0;
}
exports.sum32 = sum32;

function sum32_3(a, b, c) {
  return (a + b + c) >>> 0;
}
exports.sum32_3 = sum32_3;

function sum32_4(a, b, c, d) {
  return (a + b + c + d) >>> 0;
}
exports.sum32_4 = sum32_4;

function sum32_5(a, b, c, d, e) {
  return (a + b + c + d + e) >>> 0;
}
exports.sum32_5 = sum32_5;

function sum64(buf, pos, ah, al) {
  var bh = buf[pos];
  var bl = buf[pos + 1];

  var lo = (al + bl) >>> 0;
  var hi = (lo < al ? 1 : 0) + ah + bh;
  buf[pos] = hi >>> 0;
  buf[pos + 1] = lo;
}
exports.sum64 = sum64;

function sum64_hi(ah, al, bh, bl) {
  var lo = (al + bl) >>> 0;
  var hi = (lo < al ? 1 : 0) + ah + bh;
  return hi >>> 0;
}
exports.sum64_hi = sum64_hi;

function sum64_lo(ah, al, bh, bl) {
  var lo = al + bl;
  return lo >>> 0;
}
exports.sum64_lo = sum64_lo;

function sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {
  var carry = 0;
  var lo = al;
  lo = (lo + bl) >>> 0;
  carry += lo < al ? 1 : 0;
  lo = (lo + cl) >>> 0;
  carry += lo < cl ? 1 : 0;
  lo = (lo + dl) >>> 0;
  carry += lo < dl ? 1 : 0;

  var hi = ah + bh + ch + dh + carry;
  return hi >>> 0;
}
exports.sum64_4_hi = sum64_4_hi;

function sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {
  var lo = al + bl + cl + dl;
  return lo >>> 0;
}
exports.sum64_4_lo = sum64_4_lo;

function sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
  var carry = 0;
  var lo = al;
  lo = (lo + bl) >>> 0;
  carry += lo < al ? 1 : 0;
  lo = (lo + cl) >>> 0;
  carry += lo < cl ? 1 : 0;
  lo = (lo + dl) >>> 0;
  carry += lo < dl ? 1 : 0;
  lo = (lo + el) >>> 0;
  carry += lo < el ? 1 : 0;

  var hi = ah + bh + ch + dh + eh + carry;
  return hi >>> 0;
}
exports.sum64_5_hi = sum64_5_hi;

function sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
  var lo = al + bl + cl + dl + el;

  return lo >>> 0;
}
exports.sum64_5_lo = sum64_5_lo;

function rotr64_hi(ah, al, num) {
  var r = (al << (32 - num)) | (ah >>> num);
  return r >>> 0;
}
exports.rotr64_hi = rotr64_hi;

function rotr64_lo(ah, al, num) {
  var r = (ah << (32 - num)) | (al >>> num);
  return r >>> 0;
}
exports.rotr64_lo = rotr64_lo;

function shr64_hi(ah, al, num) {
  return ah >>> num;
}
exports.shr64_hi = shr64_hi;

function shr64_lo(ah, al, num) {
  var r = (ah << (32 - num)) | (al >>> num);
  return r >>> 0;
}
exports.shr64_lo = shr64_lo;


/***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

if (__webpack_require__(9)) {
  var LIBRARY = __webpack_require__(40);
  var global = __webpack_require__(3);
  var fails = __webpack_require__(4);
  var $export = __webpack_require__(0);
  var $typed = __webpack_require__(81);
  var $buffer = __webpack_require__(115);
  var ctx = __webpack_require__(27);
  var anInstance = __webpack_require__(50);
  var propertyDesc = __webpack_require__(43);
  var hide = __webpack_require__(17);
  var redefineAll = __webpack_require__(52);
  var toInteger = __webpack_require__(33);
  var toLength = __webpack_require__(11);
  var toIndex = __webpack_require__(154);
  var toAbsoluteIndex = __webpack_require__(46);
  var toPrimitive = __webpack_require__(31);
  var has = __webpack_require__(20);
  var classof = __webpack_require__(62);
  var isObject = __webpack_require__(5);
  var toObject = __webpack_require__(13);
  var isArrayIter = __webpack_require__(106);
  var create = __webpack_require__(47);
  var getPrototypeOf = __webpack_require__(23);
  var gOPN = __webpack_require__(48).f;
  var getIterFn = __webpack_require__(108);
  var uid = __webpack_require__(44);
  var wks = __webpack_require__(7);
  var createArrayMethod = __webpack_require__(35);
  var createArrayIncludes = __webpack_require__(71);
  var speciesConstructor = __webpack_require__(78);
  var ArrayIterators = __webpack_require__(111);
  var Iterators = __webpack_require__(56);
  var $iterDetect = __webpack_require__(75);
  var setSpecies = __webpack_require__(49);
  var arrayFill = __webpack_require__(110);
  var arrayCopyWithin = __webpack_require__(144);
  var $DP = __webpack_require__(10);
  var $GOPD = __webpack_require__(22);
  var dP = $DP.f;
  var gOPD = $GOPD.f;
  var RangeError = global.RangeError;
  var TypeError = global.TypeError;
  var Uint8Array = global.Uint8Array;
  var ARRAY_BUFFER = 'ArrayBuffer';
  var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER;
  var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
  var PROTOTYPE = 'prototype';
  var ArrayProto = Array[PROTOTYPE];
  var $ArrayBuffer = $buffer.ArrayBuffer;
  var $DataView = $buffer.DataView;
  var arrayForEach = createArrayMethod(0);
  var arrayFilter = createArrayMethod(2);
  var arraySome = createArrayMethod(3);
  var arrayEvery = createArrayMethod(4);
  var arrayFind = createArrayMethod(5);
  var arrayFindIndex = createArrayMethod(6);
  var arrayIncludes = createArrayIncludes(true);
  var arrayIndexOf = createArrayIncludes(false);
  var arrayValues = ArrayIterators.values;
  var arrayKeys = ArrayIterators.keys;
  var arrayEntries = ArrayIterators.entries;
  var arrayLastIndexOf = ArrayProto.lastIndexOf;
  var arrayReduce = ArrayProto.reduce;
  var arrayReduceRight = ArrayProto.reduceRight;
  var arrayJoin = ArrayProto.join;
  var arraySort = ArrayProto.sort;
  var arraySlice = ArrayProto.slice;
  var arrayToString = ArrayProto.toString;
  var arrayToLocaleString = ArrayProto.toLocaleString;
  var ITERATOR = wks('iterator');
  var TAG = wks('toStringTag');
  var TYPED_CONSTRUCTOR = uid('typed_constructor');
  var DEF_CONSTRUCTOR = uid('def_constructor');
  var ALL_CONSTRUCTORS = $typed.CONSTR;
  var TYPED_ARRAY = $typed.TYPED;
  var VIEW = $typed.VIEW;
  var WRONG_LENGTH = 'Wrong length!';

  var $map = createArrayMethod(1, function (O, length) {
    return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);
  });

  var LITTLE_ENDIAN = fails(function () {
    // eslint-disable-next-line no-undef
    return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
  });

  var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () {
    new Uint8Array(1).set({});
  });

  var toOffset = function (it, BYTES) {
    var offset = toInteger(it);
    if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!');
    return offset;
  };

  var validate = function (it) {
    if (isObject(it) && TYPED_ARRAY in it) return it;
    throw TypeError(it + ' is not a typed array!');
  };

  var allocate = function (C, length) {
    if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) {
      throw TypeError('It is not a typed array constructor!');
    } return new C(length);
  };

  var speciesFromList = function (O, list) {
    return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);
  };

  var fromList = function (C, list) {
    var index = 0;
    var length = list.length;
    var result = allocate(C, length);
    while (length > index) result[index] = list[index++];
    return result;
  };

  var addGetter = function (it, key, internal) {
    dP(it, key, { get: function () { return this._d[internal]; } });
  };

  var $from = function from(source /* , mapfn, thisArg */) {
    var O = toObject(source);
    var aLen = arguments.length;
    var mapfn = aLen > 1 ? arguments[1] : undefined;
    var mapping = mapfn !== undefined;
    var iterFn = getIterFn(O);
    var i, length, values, result, step, iterator;
    if (iterFn != undefined && !isArrayIter(iterFn)) {
      for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) {
        values.push(step.value);
      } O = values;
    }
    if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2);
    for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) {
      result[i] = mapping ? mapfn(O[i], i) : O[i];
    }
    return result;
  };

  var $of = function of(/* ...items */) {
    var index = 0;
    var length = arguments.length;
    var result = allocate(this, length);
    while (length > index) result[index] = arguments[index++];
    return result;
  };

  // iOS Safari 6.x fails here
  var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); });

  var $toLocaleString = function toLocaleString() {
    return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);
  };

  var proto = {
    copyWithin: function copyWithin(target, start /* , end */) {
      return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
    },
    every: function every(callbackfn /* , thisArg */) {
      return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
    },
    fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars
      return arrayFill.apply(validate(this), arguments);
    },
    filter: function filter(callbackfn /* , thisArg */) {
      return speciesFromList(this, arrayFilter(validate(this), callbackfn,
        arguments.length > 1 ? arguments[1] : undefined));
    },
    find: function find(predicate /* , thisArg */) {
      return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
    },
    findIndex: function findIndex(predicate /* , thisArg */) {
      return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
    },
    forEach: function forEach(callbackfn /* , thisArg */) {
      arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
    },
    indexOf: function indexOf(searchElement /* , fromIndex */) {
      return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
    },
    includes: function includes(searchElement /* , fromIndex */) {
      return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
    },
    join: function join(separator) { // eslint-disable-line no-unused-vars
      return arrayJoin.apply(validate(this), arguments);
    },
    lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars
      return arrayLastIndexOf.apply(validate(this), arguments);
    },
    map: function map(mapfn /* , thisArg */) {
      return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);
    },
    reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
      return arrayReduce.apply(validate(this), arguments);
    },
    reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
      return arrayReduceRight.apply(validate(this), arguments);
    },
    reverse: function reverse() {
      var that = this;
      var length = validate(that).length;
      var middle = Math.floor(length / 2);
      var index = 0;
      var value;
      while (index < middle) {
        value = that[index];
        that[index++] = that[--length];
        that[length] = value;
      } return that;
    },
    some: function some(callbackfn /* , thisArg */) {
      return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
    },
    sort: function sort(comparefn) {
      return arraySort.call(validate(this), comparefn);
    },
    subarray: function subarray(begin, end) {
      var O = validate(this);
      var length = O.length;
      var $begin = toAbsoluteIndex(begin, length);
      return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(
        O.buffer,
        O.byteOffset + $begin * O.BYTES_PER_ELEMENT,
        toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)
      );
    }
  };

  var $slice = function slice(start, end) {
    return speciesFromList(this, arraySlice.call(validate(this), start, end));
  };

  var $set = function set(arrayLike /* , offset */) {
    validate(this);
    var offset = toOffset(arguments[1], 1);
    var length = this.length;
    var src = toObject(arrayLike);
    var len = toLength(src.length);
    var index = 0;
    if (len + offset > length) throw RangeError(WRONG_LENGTH);
    while (index < len) this[offset + index] = src[index++];
  };

  var $iterators = {
    entries: function entries() {
      return arrayEntries.call(validate(this));
    },
    keys: function keys() {
      return arrayKeys.call(validate(this));
    },
    values: function values() {
      return arrayValues.call(validate(this));
    }
  };

  var isTAIndex = function (target, key) {
    return isObject(target)
      && target[TYPED_ARRAY]
      && typeof key != 'symbol'
      && key in target
      && String(+key) == String(key);
  };
  var $getDesc = function getOwnPropertyDescriptor(target, key) {
    return isTAIndex(target, key = toPrimitive(key, true))
      ? propertyDesc(2, target[key])
      : gOPD(target, key);
  };
  var $setDesc = function defineProperty(target, key, desc) {
    if (isTAIndex(target, key = toPrimitive(key, true))
      && isObject(desc)
      && has(desc, 'value')
      && !has(desc, 'get')
      && !has(desc, 'set')
      // TODO: add validation descriptor w/o calling accessors
      && !desc.configurable
      && (!has(desc, 'writable') || desc.writable)
      && (!has(desc, 'enumerable') || desc.enumerable)
    ) {
      target[key] = desc.value;
      return target;
    } return dP(target, key, desc);
  };

  if (!ALL_CONSTRUCTORS) {
    $GOPD.f = $getDesc;
    $DP.f = $setDesc;
  }

  $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {
    getOwnPropertyDescriptor: $getDesc,
    defineProperty: $setDesc
  });

  if (fails(function () { arrayToString.call({}); })) {
    arrayToString = arrayToLocaleString = function toString() {
      return arrayJoin.call(this);
    };
  }

  var $TypedArrayPrototype$ = redefineAll({}, proto);
  redefineAll($TypedArrayPrototype$, $iterators);
  hide($TypedArrayPrototype$, ITERATOR, $iterators.values);
  redefineAll($TypedArrayPrototype$, {
    slice: $slice,
    set: $set,
    constructor: function () { /* noop */ },
    toString: arrayToString,
    toLocaleString: $toLocaleString
  });
  addGetter($TypedArrayPrototype$, 'buffer', 'b');
  addGetter($TypedArrayPrototype$, 'byteOffset', 'o');
  addGetter($TypedArrayPrototype$, 'byteLength', 'l');
  addGetter($TypedArrayPrototype$, 'length', 'e');
  dP($TypedArrayPrototype$, TAG, {
    get: function () { return this[TYPED_ARRAY]; }
  });

  // eslint-disable-next-line max-statements
  module.exports = function (KEY, BYTES, wrapper, CLAMPED) {
    CLAMPED = !!CLAMPED;
    var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array';
    var GETTER = 'get' + KEY;
    var SETTER = 'set' + KEY;
    var TypedArray = global[NAME];
    var Base = TypedArray || {};
    var TAC = TypedArray && getPrototypeOf(TypedArray);
    var FORCED = !TypedArray || !$typed.ABV;
    var O = {};
    var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];
    var getter = function (that, index) {
      var data = that._d;
      return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);
    };
    var setter = function (that, index, value) {
      var data = that._d;
      if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;
      data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);
    };
    var addElement = function (that, index) {
      dP(that, index, {
        get: function () {
          return getter(this, index);
        },
        set: function (value) {
          return setter(this, index, value);
        },
        enumerable: true
      });
    };
    if (FORCED) {
      TypedArray = wrapper(function (that, data, $offset, $length) {
        anInstance(that, TypedArray, NAME, '_d');
        var index = 0;
        var offset = 0;
        var buffer, byteLength, length, klass;
        if (!isObject(data)) {
          length = toIndex(data);
          byteLength = length * BYTES;
          buffer = new $ArrayBuffer(byteLength);
        } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
          buffer = data;
          offset = toOffset($offset, BYTES);
          var $len = data.byteLength;
          if ($length === undefined) {
            if ($len % BYTES) throw RangeError(WRONG_LENGTH);
            byteLength = $len - offset;
            if (byteLength < 0) throw RangeError(WRONG_LENGTH);
          } else {
            byteLength = toLength($length) * BYTES;
            if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH);
          }
          length = byteLength / BYTES;
        } else if (TYPED_ARRAY in data) {
          return fromList(TypedArray, data);
        } else {
          return $from.call(TypedArray, data);
        }
        hide(that, '_d', {
          b: buffer,
          o: offset,
          l: byteLength,
          e: length,
          v: new $DataView(buffer)
        });
        while (index < length) addElement(that, index++);
      });
      TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);
      hide(TypedArrayPrototype, 'constructor', TypedArray);
    } else if (!fails(function () {
      TypedArray(1);
    }) || !fails(function () {
      new TypedArray(-1); // eslint-disable-line no-new
    }) || !$iterDetect(function (iter) {
      new TypedArray(); // eslint-disable-line no-new
      new TypedArray(null); // eslint-disable-line no-new
      new TypedArray(1.5); // eslint-disable-line no-new
      new TypedArray(iter); // eslint-disable-line no-new
    }, true)) {
      TypedArray = wrapper(function (that, data, $offset, $length) {
        anInstance(that, TypedArray, NAME);
        var klass;
        // `ws` module bug, temporarily remove validation length for Uint8Array
        // https://github.com/websockets/ws/pull/645
        if (!isObject(data)) return new Base(toIndex(data));
        if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
          return $length !== undefined
            ? new Base(data, toOffset($offset, BYTES), $length)
            : $offset !== undefined
              ? new Base(data, toOffset($offset, BYTES))
              : new Base(data);
        }
        if (TYPED_ARRAY in data) return fromList(TypedArray, data);
        return $from.call(TypedArray, data);
      });
      arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) {
        if (!(key in TypedArray)) hide(TypedArray, key, Base[key]);
      });
      TypedArray[PROTOTYPE] = TypedArrayPrototype;
      if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray;
    }
    var $nativeIterator = TypedArrayPrototype[ITERATOR];
    var CORRECT_ITER_NAME = !!$nativeIterator
      && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined);
    var $iterator = $iterators.values;
    hide(TypedArray, TYPED_CONSTRUCTOR, true);
    hide(TypedArrayPrototype, TYPED_ARRAY, NAME);
    hide(TypedArrayPrototype, VIEW, true);
    hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);

    if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) {
      dP(TypedArrayPrototype, TAG, {
        get: function () { return NAME; }
      });
    }

    O[NAME] = TypedArray;

    $export($export.G + $export.W + $export.F * (TypedArray != Base), O);

    $export($export.S, NAME, {
      BYTES_PER_ELEMENT: BYTES
    });

    $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, {
      from: $from,
      of: $of
    });

    if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);

    $export($export.P, NAME, proto);

    setSpecies(NAME);

    $export($export.P + $export.F * FORCED_SET, NAME, { set: $set });

    $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);

    if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;

    $export($export.P + $export.F * fails(function () {
      new TypedArray(1).slice();
    }), NAME, { slice: $slice });

    $export($export.P + $export.F * (fails(function () {
      return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString();
    }) || !fails(function () {
      TypedArrayPrototype.toLocaleString.call([1, 2]);
    })), NAME, { toLocaleString: $toLocaleString });

    Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;
    if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator);
  };
} else module.exports = function () { /* empty */ };


/***/ }),
/* 38 */
/***/ (function(module, exports, __webpack_require__) {

var Map = __webpack_require__(149);
var $export = __webpack_require__(0);
var shared = __webpack_require__(70)('metadata');
var store = shared.store || (shared.store = new (__webpack_require__(152))());

var getOrCreateMetadataMap = function (target, targetKey, create) {
  var targetMetadata = store.get(target);
  if (!targetMetadata) {
    if (!create) return undefined;
    store.set(target, targetMetadata = new Map());
  }
  var keyMetadata = targetMetadata.get(targetKey);
  if (!keyMetadata) {
    if (!create) return undefined;
    targetMetadata.set(targetKey, keyMetadata = new Map());
  } return keyMetadata;
};
var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
  var metadataMap = getOrCreateMetadataMap(O, P, false);
  return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
};
var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
  var metadataMap = getOrCreateMetadataMap(O, P, false);
  return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
};
var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
  getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
};
var ordinaryOwnMetadataKeys = function (target, targetKey) {
  var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
  var keys = [];
  if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });
  return keys;
};
var toMetaKey = function (it) {
  return it === undefined || typeof it == 'symbol' ? it : String(it);
};
var exp = function (O) {
  $export($export.S, 'Reflect', O);
};

module.exports = {
  store: store,
  map: getOrCreateMetadataMap,
  has: ordinaryHasOwnMetadata,
  get: ordinaryGetOwnMetadata,
  set: ordinaryDefineOwnMetadata,
  keys: ordinaryOwnMetadataKeys,
  key: toMetaKey,
  exp: exp
};


/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {

var META = __webpack_require__(44)('meta');
var isObject = __webpack_require__(5);
var has = __webpack_require__(20);
var setDesc = __webpack_require__(10).f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
  return true;
};
var FREEZE = !__webpack_require__(4)(function () {
  return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
  setDesc(it, META, { value: {
    i: 'O' + ++id, // object ID
    w: {}          // weak collections IDs
  } });
};
var fastKey = function (it, create) {
  // return primitive with prefix
  if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return 'F';
    // not necessary to add metadata
    if (!create) return 'E';
    // add missing metadata
    setMeta(it);
  // return object ID
  } return it[META].i;
};
var getWeak = function (it, create) {
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return true;
    // not necessary to add metadata
    if (!create) return false;
    // add missing metadata
    setMeta(it);
  // return hash weak collections IDs
  } return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
  if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  return it;
};
var meta = module.exports = {
  KEY: META,
  NEED: false,
  fastKey: fastKey,
  getWeak: getWeak,
  onFreeze: onFreeze
};


/***/ }),
/* 40 */
/***/ (function(module, exports) {

module.exports = false;


/***/ }),
/* 41 */
/***/ (function(module, exports, __webpack_require__) {

// 22.1.3.31 Array.prototype[@@unscopables]
var UNSCOPABLES = __webpack_require__(7)('unscopables');
var ArrayProto = Array.prototype;
if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(17)(ArrayProto, UNSCOPABLES, {});
module.exports = function (key) {
  ArrayProto[UNSCOPABLES][key] = true;
};


/***/ }),
/* 42 */
/***/ (function(module, exports, __webpack_require__) {

var Buffer = __webpack_require__(6).Buffer
var Transform = __webpack_require__(117).Transform
var StringDecoder = __webpack_require__(120).StringDecoder
var inherits = __webpack_require__(1)

function CipherBase (hashMode) {
  Transform.call(this)
  this.hashMode = typeof hashMode === 'string'
  if (this.hashMode) {
    this[hashMode] = this._finalOrDigest
  } else {
    this.final = this._finalOrDigest
  }
  if (this._final) {
    this.__final = this._final
    this._final = null
  }
  this._decoder = null
  this._encoding = null
}
inherits(CipherBase, Transform)

CipherBase.prototype.update = function (data, inputEnc, outputEnc) {
  if (typeof data === 'string') {
    data = Buffer.from(data, inputEnc)
  }

  var outData = this._update(data)
  if (this.hashMode) return this

  if (outputEnc) {
    outData = this._toString(outData, outputEnc)
  }

  return outData
}

CipherBase.prototype.setAutoPadding = function () {}
CipherBase.prototype.getAuthTag = function () {
  throw new Error('trying to get auth tag in unsupported state')
}

CipherBase.prototype.setAuthTag = function () {
  throw new Error('trying to set auth tag in unsupported state')
}

CipherBase.prototype.setAAD = function () {
  throw new Error('trying to set aad in unsupported state')
}

CipherBase.prototype._transform = function (data, _, next) {
  var err
  try {
    if (this.hashMode) {
      this._update(data)
    } else {
      this.push(this._update(data))
    }
  } catch (e) {
    err = e
  } finally {
    next(err)
  }
}
CipherBase.prototype._flush = function (done) {
  var err
  try {
    this.push(this.__final())
  } catch (e) {
    err = e
  }

  done(err)
}
CipherBase.prototype._finalOrDigest = function (outputEnc) {
  var outData = this.__final() || Buffer.alloc(0)
  if (outputEnc) {
    outData = this._toString(outData, outputEnc, true)
  }
  return outData
}

CipherBase.prototype._toString = function (value, enc, fin) {
  if (!this._decoder) {
    this._decoder = new StringDecoder(enc)
    this._encoding = enc
  }

  if (this._encoding !== enc) throw new Error('can\'t switch encodings')

  var out = this._decoder.write(value)
  if (fin) {
    out += this._decoder.end()
  }

  return out
}

module.exports = CipherBase


/***/ }),
/* 43 */
/***/ (function(module, exports) {

module.exports = function (bitmap, value) {
  return {
    enumerable: !(bitmap & 1),
    configurable: !(bitmap & 2),
    writable: !(bitmap & 4),
    value: value
  };
};


/***/ }),
/* 44 */
/***/ (function(module, exports) {

var id = 0;
var px = Math.random();
module.exports = function (key) {
  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};


/***/ }),
/* 45 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(130);
var enumBugKeys = __webpack_require__(93);

module.exports = Object.keys || function keys(O) {
  return $keys(O, enumBugKeys);
};


/***/ }),
/* 46 */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(33);
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
  index = toInteger(index);
  return index < 0 ? max(index + length, 0) : min(index, length);
};


/***/ }),
/* 47 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(2);
var dPs = __webpack_require__(131);
var enumBugKeys = __webpack_require__(93);
var IE_PROTO = __webpack_require__(92)('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';

// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
  // Thrash, waste and sodomy: IE GC bug
  var iframe = __webpack_require__(90)('iframe');
  var i = enumBugKeys.length;
  var lt = '<';
  var gt = '>';
  var iframeDocument;
  iframe.style.display = 'none';
  __webpack_require__(94).appendChild(iframe);
  iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  // createDict = iframe.contentWindow.Object;
  // html.removeChild(iframe);
  iframeDocument = iframe.contentWindow.document;
  iframeDocument.open();
  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  iframeDocument.close();
  createDict = iframeDocument.F;
  while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  return createDict();
};

module.exports = Object.create || function create(O, Properties) {
  var result;
  if (O !== null) {
    Empty[PROTOTYPE] = anObject(O);
    result = new Empty();
    Empty[PROTOTYPE] = null;
    // add "__proto__" for Object.getPrototypeOf polyfill
    result[IE_PROTO] = O;
  } else result = createDict();
  return Properties === undefined ? result : dPs(result, Properties);
};


/***/ }),
/* 48 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var $keys = __webpack_require__(130);
var hiddenKeys = __webpack_require__(93).concat('length', 'prototype');

exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  return $keys(O, hiddenKeys);
};


/***/ }),
/* 49 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var global = __webpack_require__(3);
var dP = __webpack_require__(10);
var DESCRIPTORS = __webpack_require__(9);
var SPECIES = __webpack_require__(7)('species');

module.exports = function (KEY) {
  var C = global[KEY];
  if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
    configurable: true,
    get: function () { return this; }
  });
};


/***/ }),
/* 50 */
/***/ (function(module, exports) {

module.exports = function (it, Constructor, name, forbiddenField) {
  if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
    throw TypeError(name + ': incorrect invocation!');
  } return it;
};


/***/ }),
/* 51 */
/***/ (function(module, exports, __webpack_require__) {

var ctx = __webpack_require__(27);
var call = __webpack_require__(142);
var isArrayIter = __webpack_require__(106);
var anObject = __webpack_require__(2);
var toLength = __webpack_require__(11);
var getIterFn = __webpack_require__(108);
var BREAK = {};
var RETURN = {};
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
  var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
  var f = ctx(fn, that, entries ? 2 : 1);
  var index = 0;
  var length, step, iterator, result;
  if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
  // fast case for arrays with default iterator
  if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
    result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
    if (result === BREAK || result === RETURN) return result;
  } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
    result = call(iterator, f, step.value, entries);
    if (result === BREAK || result === RETURN) return result;
  }
};
exports.BREAK = BREAK;
exports.RETURN = RETURN;


/***/ }),
/* 52 */
/***/ (function(module, exports, __webpack_require__) {

var redefine = __webpack_require__(18);
module.exports = function (target, src, safe) {
  for (var key in src) redefine(target, key, src[key], safe);
  return target;
};


/***/ }),
/* 53 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
// Writable.



/*<replacement>*/

var pna = __webpack_require__(85);
/*</replacement>*/

/*<replacement>*/
var objectKeys = Object.keys || function (obj) {
  var keys = [];
  for (var key in obj) {
    keys.push(key);
  }return keys;
};
/*</replacement>*/

module.exports = Duplex;

/*<replacement>*/
var util = __webpack_require__(65);
util.inherits = __webpack_require__(1);
/*</replacement>*/

var Readable = __webpack_require__(166);
var Writable = __webpack_require__(119);

util.inherits(Duplex, Readable);

{
  // avoid scope creep, the keys array can then be collected
  var keys = objectKeys(Writable.prototype);
  for (var v = 0; v < keys.length; v++) {
    var method = keys[v];
    if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
  }
}

function Duplex(options) {
  if (!(this instanceof Duplex)) return new Duplex(options);

  Readable.call(this, options);
  Writable.call(this, options);

  if (options && options.readable === false) this.readable = false;

  if (options && options.writable === false) this.writable = false;

  this.allowHalfOpen = true;
  if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;

  this.once('end', onend);
}

Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function () {
    return this._writableState.highWaterMark;
  }
});

// the no-half-open enforcer
function onend() {
  // if we allow half-open state, or if the writable side ended,
  // then we're ok.
  if (this.allowHalfOpen || this._writableState.ended) return;

  // no more data can be written.
  // But allow more writes to happen in this tick.
  pna.nextTick(onEndNT, this);
}

function onEndNT(self) {
  self.end();
}

Object.defineProperty(Duplex.prototype, 'destroyed', {
  get: function () {
    if (this._readableState === undefined || this._writableState === undefined) {
      return false;
    }
    return this._readableState.destroyed && this._writableState.destroyed;
  },
  set: function (value) {
    // we ignore the value if the stream
    // has not been initialized yet
    if (this._readableState === undefined || this._writableState === undefined) {
      return;
    }

    // backward compatibility, the user is explicitly
    // managing destroyed
    this._readableState.destroyed = value;
    this._writableState.destroyed = value;
  }
});

Duplex.prototype._destroy = function (err, cb) {
  this.push(null);
  this.end();

  pna.nextTick(cb, err);
};

/***/ }),
/* 54 */
/***/ (function(module, exports, __webpack_require__) {

var def = __webpack_require__(10).f;
var has = __webpack_require__(20);
var TAG = __webpack_require__(7)('toStringTag');

module.exports = function (it, tag, stat) {
  if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};


/***/ }),
/* 55 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var defined = __webpack_require__(32);
var fails = __webpack_require__(4);
var spaces = __webpack_require__(96);
var space = '[' + spaces + ']';
var non = '\u200b\u0085';
var ltrim = RegExp('^' + space + space + '*');
var rtrim = RegExp(space + space + '*$');

var exporter = function (KEY, exec, ALIAS) {
  var exp = {};
  var FORCE = fails(function () {
    return !!spaces[KEY]() || non[KEY]() != non;
  });
  var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
  if (ALIAS) exp[ALIAS] = fn;
  $export($export.P + $export.F * FORCE, 'String', exp);
};

// 1 -> String#trimLeft
// 2 -> String#trimRight
// 3 -> String#trim
var trim = exporter.trim = function (string, TYPE) {
  string = String(defined(string));
  if (TYPE & 1) string = string.replace(ltrim, '');
  if (TYPE & 2) string = string.replace(rtrim, '');
  return string;
};

module.exports = exporter;


/***/ }),
/* 56 */
/***/ (function(module, exports) {

module.exports = {};


/***/ }),
/* 57 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(5);
module.exports = function (it, TYPE) {
  if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
  return it;
};


/***/ }),
/* 58 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global, process) {

function oldBrowser () {
  throw new Error('Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11')
}

var Buffer = __webpack_require__(6).Buffer
var crypto = global.crypto || global.msCrypto

if (crypto && crypto.getRandomValues) {
  module.exports = randomBytes
} else {
  module.exports = oldBrowser
}

function randomBytes (size, cb) {
  // phantomjs needs to throw
  if (size > 65536) throw new Error('requested too many random bytes')
  // in case browserify  isn't using the Uint8Array version
  var rawBytes = new global.Uint8Array(size)

  // This will not work in older browsers.
  // See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues
  if (size > 0) {  // getRandomValues fails on IE if size == 0
    crypto.getRandomValues(rawBytes)
  }

  // XXX: phantomjs doesn't like a buffer being passed here
  var bytes = Buffer.from(rawBytes.buffer)

  if (typeof cb === 'function') {
    return process.nextTick(function () {
      cb(null, bytes)
    })
  }

  return bytes
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15), __webpack_require__(30)))

/***/ }),
/* 59 */
/***/ (function(module, exports, __webpack_require__) {

var Buffer = __webpack_require__(6).Buffer

// prototype class for hash functions
function Hash (blockSize, finalSize) {
  this._block = Buffer.alloc(blockSize)
  this._finalSize = finalSize
  this._blockSize = blockSize
  this._len = 0
}

Hash.prototype.update = function (data, enc) {
  if (typeof data === 'string') {
    enc = enc || 'utf8'
    data = Buffer.from(data, enc)
  }

  var block = this._block
  var blockSize = this._blockSize
  var length = data.length
  var accum = this._len

  for (var offset = 0; offset < length;) {
    var assigned = accum % blockSize
    var remainder = Math.min(length - offset, blockSize - assigned)

    for (var i = 0; i < remainder; i++) {
      block[assigned + i] = data[offset + i]
    }

    accum += remainder
    offset += remainder

    if ((accum % blockSize) === 0) {
      this._update(block)
    }
  }

  this._len += length
  return this
}

Hash.prototype.digest = function (enc) {
  var rem = this._len % this._blockSize

  this._block[rem] = 0x80

  // zero (rem + 1) trailing bits, where (rem + 1) is the smallest
  // non-negative solution to the equation (length + 1 + (rem + 1)) === finalSize mod blockSize
  this._block.fill(0, rem + 1)

  if (rem >= this._finalSize) {
    this._update(this._block)
    this._block.fill(0)
  }

  var bits = this._len * 8

  // uint32
  if (bits <= 0xffffffff) {
    this._block.writeUInt32BE(bits, this._blockSize - 4)

  // uint64
  } else {
    var lowBits = (bits & 0xffffffff) >>> 0
    var highBits = (bits - lowBits) / 0x100000000

    this._block.writeUInt32BE(highBits, this._blockSize - 8)
    this._block.writeUInt32BE(lowBits, this._blockSize - 4)
  }

  this._update(this._block)
  var hash = this._hash()

  return enc ? hash.toString(enc) : hash
}

Hash.prototype._update = function () {
  throw new Error('_update must be implemented by subclass')
}

module.exports = Hash


/***/ }),
/* 60 */
/***/ (function(module, exports, __webpack_require__) {

// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(28);
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  return cof(it) == 'String' ? it.split('') : Object(it);
};


/***/ }),
/* 61 */
/***/ (function(module, exports) {

exports.f = {}.propertyIsEnumerable;


/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {

// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(28);
var TAG = __webpack_require__(7)('toStringTag');
// ES3 wrong here
var ARG = cof(function () { return arguments; }()) == 'Arguments';

// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
  try {
    return it[key];
  } catch (e) { /* empty */ }
};

module.exports = function (it) {
  var O, T, B;
  return it === undefined ? 'Undefined' : it === null ? 'Null'
    // @@toStringTag case
    : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
    // builtinTag case
    : ARG ? cof(O)
    // ES3 arguments fallback
    : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};


/***/ }),
/* 63 */
/***/ (function(module, exports) {

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

function EventEmitter() {
  this._events = this._events || {};
  this._maxListeners = this._maxListeners || undefined;
}
module.exports = EventEmitter;

// Backwards-compat with node 0.10.x
EventEmitter.EventEmitter = EventEmitter;

EventEmitter.prototype._events = undefined;
EventEmitter.prototype._maxListeners = undefined;

// By default EventEmitters will print a warning if more than 10 listeners are
// added to it. This is a useful default which helps finding memory leaks.
EventEmitter.defaultMaxListeners = 10;

// Obviously not all Emitters should be limited to 10. This function allows
// that to be increased. Set to zero for unlimited.
EventEmitter.prototype.setMaxListeners = function(n) {
  if (!isNumber(n) || n < 0 || isNaN(n))
    throw TypeError('n must be a positive number');
  this._maxListeners = n;
  return this;
};

EventEmitter.prototype.emit = function(type) {
  var er, handler, len, args, i, listeners;

  if (!this._events)
    this._events = {};

  // If there is no 'error' event listener then throw.
  if (type === 'error') {
    if (!this._events.error ||
        (isObject(this._events.error) && !this._events.error.length)) {
      er = arguments[1];
      if (er instanceof Error) {
        throw er; // Unhandled 'error' event
      } else {
        // At least give some kind of context to the user
        var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
        err.context = er;
        throw err;
      }
    }
  }

  handler = this._events[type];

  if (isUndefined(handler))
    return false;

  if (isFunction(handler)) {
    switch (arguments.length) {
      // fast cases
      case 1:
        handler.call(this);
        break;
      case 2:
        handler.call(this, arguments[1]);
        break;
      case 3:
        handler.call(this, arguments[1], arguments[2]);
        break;
      // slower
      default:
        args = Array.prototype.slice.call(arguments, 1);
        handler.apply(this, args);
    }
  } else if (isObject(handler)) {
    args = Array.prototype.slice.call(arguments, 1);
    listeners = handler.slice();
    len = listeners.length;
    for (i = 0; i < len; i++)
      listeners[i].apply(this, args);
  }

  return true;
};

EventEmitter.prototype.addListener = function(type, listener) {
  var m;

  if (!isFunction(listener))
    throw TypeError('listener must be a function');

  if (!this._events)
    this._events = {};

  // To avoid recursion in the case that type === "newListener"! Before
  // adding it to the listeners, first emit "newListener".
  if (this._events.newListener)
    this.emit('newListener', type,
              isFunction(listener.listener) ?
              listener.listener : listener);

  if (!this._events[type])
    // Optimize the case of one listener. Don't need the extra array object.
    this._events[type] = listener;
  else if (isObject(this._events[type]))
    // If we've already got an array, just append.
    this._events[type].push(listener);
  else
    // Adding the second element, need to change to array.
    this._events[type] = [this._events[type], listener];

  // Check for listener leak
  if (isObject(this._events[type]) && !this._events[type].warned) {
    if (!isUndefined(this._maxListeners)) {
      m = this._maxListeners;
    } else {
      m = EventEmitter.defaultMaxListeners;
    }

    if (m && m > 0 && this._events[type].length > m) {
      this._events[type].warned = true;
      console.error('(node) warning: possible EventEmitter memory ' +
                    'leak detected. %d listeners added. ' +
                    'Use emitter.setMaxListeners() to increase limit.',
                    this._events[type].length);
      if (typeof console.trace === 'function') {
        // not supported in IE 10
        console.trace();
      }
    }
  }

  return this;
};

EventEmitter.prototype.on = EventEmitter.prototype.addListener;

EventEmitter.prototype.once = function(type, listener) {
  if (!isFunction(listener))
    throw TypeError('listener must be a function');

  var fired = false;

  function g() {
    this.removeListener(type, g);

    if (!fired) {
      fired = true;
      listener.apply(this, arguments);
    }
  }

  g.listener = listener;
  this.on(type, g);

  return this;
};

// emits a 'removeListener' event iff the listener was removed
EventEmitter.prototype.removeListener = function(type, listener) {
  var list, position, length, i;

  if (!isFunction(listener))
    throw TypeError('listener must be a function');

  if (!this._events || !this._events[type])
    return this;

  list = this._events[type];
  length = list.length;
  position = -1;

  if (list === listener ||
      (isFunction(list.listener) && list.listener === listener)) {
    delete this._events[type];
    if (this._events.removeListener)
      this.emit('removeListener', type, listener);

  } else if (isObject(list)) {
    for (i = length; i-- > 0;) {
      if (list[i] === listener ||
          (list[i].listener && list[i].listener === listener)) {
        position = i;
        break;
      }
    }

    if (position < 0)
      return this;

    if (list.length === 1) {
      list.length = 0;
      delete this._events[type];
    } else {
      list.splice(position, 1);
    }

    if (this._events.removeListener)
      this.emit('removeListener', type, listener);
  }

  return this;
};

EventEmitter.prototype.removeAllListeners = function(type) {
  var key, listeners;

  if (!this._events)
    return this;

  // not listening for removeListener, no need to emit
  if (!this._events.removeListener) {
    if (arguments.length === 0)
      this._events = {};
    else if (this._events[type])
      delete this._events[type];
    return this;
  }

  // emit removeListener for all listeners on all events
  if (arguments.length === 0) {
    for (key in this._events) {
      if (key === 'removeListener') continue;
      this.removeAllListeners(key);
    }
    this.removeAllListeners('removeListener');
    this._events = {};
    return this;
  }

  listeners = this._events[type];

  if (isFunction(listeners)) {
    this.removeListener(type, listeners);
  } else if (listeners) {
    // LIFO order
    while (listeners.length)
      this.removeListener(type, listeners[listeners.length - 1]);
  }
  delete this._events[type];

  return this;
};

EventEmitter.prototype.listeners = function(type) {
  var ret;
  if (!this._events || !this._events[type])
    ret = [];
  else if (isFunction(this._events[type]))
    ret = [this._events[type]];
  else
    ret = this._events[type].slice();
  return ret;
};

EventEmitter.prototype.listenerCount = function(type) {
  if (this._events) {
    var evlistener = this._events[type];

    if (isFunction(evlistener))
      return 1;
    else if (evlistener)
      return evlistener.length;
  }
  return 0;
};

EventEmitter.listenerCount = function(emitter, type) {
  return emitter.listenerCount(type);
};

function isFunction(arg) {
  return typeof arg === 'function';
}

function isNumber(arg) {
  return typeof arg === 'number';
}

function isObject(arg) {
  return typeof arg === 'object' && arg !== null;
}

function isUndefined(arg) {
  return arg === void 0;
}


/***/ }),
/* 64 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var inherits = __webpack_require__(1)
var MD5 = __webpack_require__(116)
var RIPEMD160 = __webpack_require__(121)
var sha = __webpack_require__(122)
var Base = __webpack_require__(42)

function Hash (hash) {
  Base.call(this, 'digest')

  this._hash = hash
}

inherits(Hash, Base)

Hash.prototype._update = function (data) {
  this._hash.update(data)
}

Hash.prototype._final = function () {
  return this._hash.digest()
}

module.exports = function createHash (alg) {
  alg = alg.toLowerCase()
  if (alg === 'md5') return new MD5()
  if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160()

  return new Hash(sha(alg))
}


/***/ }),
/* 65 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.

function isArray(arg) {
  if (Array.isArray) {
    return Array.isArray(arg);
  }
  return objectToString(arg) === '[object Array]';
}
exports.isArray = isArray;

function isBoolean(arg) {
  return typeof arg === 'boolean';
}
exports.isBoolean = isBoolean;

function isNull(arg) {
  return arg === null;
}
exports.isNull = isNull;

function isNullOrUndefined(arg) {
  return arg == null;
}
exports.isNullOrUndefined = isNullOrUndefined;

function isNumber(arg) {
  return typeof arg === 'number';
}
exports.isNumber = isNumber;

function isString(arg) {
  return typeof arg === 'string';
}
exports.isString = isString;

function isSymbol(arg) {
  return typeof arg === 'symbol';
}
exports.isSymbol = isSymbol;

function isUndefined(arg) {
  return arg === void 0;
}
exports.isUndefined = isUndefined;

function isRegExp(re) {
  return objectToString(re) === '[object RegExp]';
}
exports.isRegExp = isRegExp;

function isObject(arg) {
  return typeof arg === 'object' && arg !== null;
}
exports.isObject = isObject;

function isDate(d) {
  return objectToString(d) === '[object Date]';
}
exports.isDate = isDate;

function isError(e) {
  return (objectToString(e) === '[object Error]' || e instanceof Error);
}
exports.isError = isError;

function isFunction(arg) {
  return typeof arg === 'function';
}
exports.isFunction = isFunction;

function isPrimitive(arg) {
  return arg === null ||
         typeof arg === 'boolean' ||
         typeof arg === 'number' ||
         typeof arg === 'string' ||
         typeof arg === 'symbol' ||  // ES6 symbol
         typeof arg === 'undefined';
}
exports.isPrimitive = isPrimitive;

exports.isBuffer = Buffer.isBuffer;

function objectToString(o) {
  return Object.prototype.toString.call(o);
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 66 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {module.exports = function xor (a, b) {
  var length = Math.min(a.length, b.length)
  var buffer = new Buffer(length)

  for (var i = 0; i < length; ++i) {
    buffer[i] = a[i] ^ b[i]
  }

  return buffer
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 67 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var assert = __webpack_require__(25);

function BlockHash() {
  this.pending = null;
  this.pendingTotal = 0;
  this.blockSize = this.constructor.blockSize;
  this.outSize = this.constructor.outSize;
  this.hmacStrength = this.constructor.hmacStrength;
  this.padLength = this.constructor.padLength / 8;
  this.endian = 'big';

  this._delta8 = this.blockSize / 8;
  this._delta32 = this.blockSize / 32;
}
exports.BlockHash = BlockHash;

BlockHash.prototype.update = function update(msg, enc) {
  // Convert message to array, pad it, and join into 32bit blocks
  msg = utils.toArray(msg, enc);
  if (!this.pending)
    this.pending = msg;
  else
    this.pending = this.pending.concat(msg);
  this.pendingTotal += msg.length;

  // Enough data, try updating
  if (this.pending.length >= this._delta8) {
    msg = this.pending;

    // Process pending data in blocks
    var r = msg.length % this._delta8;
    this.pending = msg.slice(msg.length - r, msg.length);
    if (this.pending.length === 0)
      this.pending = null;

    msg = utils.join32(msg, 0, msg.length - r, this.endian);
    for (var i = 0; i < msg.length; i += this._delta32)
      this._update(msg, i, i + this._delta32);
  }

  return this;
};

BlockHash.prototype.digest = function digest(enc) {
  this.update(this._pad());
  assert(this.pending === null);

  return this._digest(enc);
};

BlockHash.prototype._pad = function pad() {
  var len = this.pendingTotal;
  var bytes = this._delta8;
  var k = bytes - ((len + this.padLength) % bytes);
  var res = new Array(k + this.padLength);
  res[0] = 0x80;
  for (var i = 1; i < k; i++)
    res[i] = 0;

  // Append length
  len <<= 3;
  if (this.endian === 'big') {
    for (var t = 8; t < this.padLength; t++)
      res[i++] = 0;

    res[i++] = 0;
    res[i++] = 0;
    res[i++] = 0;
    res[i++] = 0;
    res[i++] = (len >>> 24) & 0xff;
    res[i++] = (len >>> 16) & 0xff;
    res[i++] = (len >>> 8) & 0xff;
    res[i++] = len & 0xff;
  } else {
    res[i++] = len & 0xff;
    res[i++] = (len >>> 8) & 0xff;
    res[i++] = (len >>> 16) & 0xff;
    res[i++] = (len >>> 24) & 0xff;
    res[i++] = 0;
    res[i++] = 0;
    res[i++] = 0;
    res[i++] = 0;

    for (t = 8; t < this.padLength; t++)
      res[i++] = 0;
  }

  return res;
};


/***/ }),
/* 68 */
/***/ (function(module, exports, __webpack_require__) {

var asn1 = exports;

asn1.bignum = __webpack_require__(12);

asn1.define = __webpack_require__(483).define;
asn1.base = __webpack_require__(69);
asn1.constants = __webpack_require__(193);
asn1.decoders = __webpack_require__(489);
asn1.encoders = __webpack_require__(491);


/***/ }),
/* 69 */
/***/ (function(module, exports, __webpack_require__) {

var base = exports;

base.Reporter = __webpack_require__(486).Reporter;
base.DecoderBuffer = __webpack_require__(192).DecoderBuffer;
base.EncoderBuffer = __webpack_require__(192).EncoderBuffer;
base.Node = __webpack_require__(487);


/***/ }),
/* 70 */
/***/ (function(module, exports, __webpack_require__) {

var core = __webpack_require__(26);
var global = __webpack_require__(3);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});

(module.exports = function (key, value) {
  return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
  version: core.version,
  mode: __webpack_require__(40) ? 'pure' : 'global',
  copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
});


/***/ }),
/* 71 */
/***/ (function(module, exports, __webpack_require__) {

// false -> Array#indexOf
// true  -> Array#includes
var toIObject = __webpack_require__(21);
var toLength = __webpack_require__(11);
var toAbsoluteIndex = __webpack_require__(46);
module.exports = function (IS_INCLUDES) {
  return function ($this, el, fromIndex) {
    var O = toIObject($this);
    var length = toLength(O.length);
    var index = toAbsoluteIndex(fromIndex, length);
    var value;
    // Array#includes uses SameValueZero equality algorithm
    // eslint-disable-next-line no-self-compare
    if (IS_INCLUDES && el != el) while (length > index) {
      value = O[index++];
      // eslint-disable-next-line no-self-compare
      if (value != value) return true;
    // Array#indexOf ignores holes, Array#includes - not
    } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
      if (O[index] === el) return IS_INCLUDES || index || 0;
    } return !IS_INCLUDES && -1;
  };
};


/***/ }),
/* 72 */
/***/ (function(module, exports) {

exports.f = Object.getOwnPropertySymbols;


/***/ }),
/* 73 */
/***/ (function(module, exports, __webpack_require__) {

// 7.2.2 IsArray(argument)
var cof = __webpack_require__(28);
module.exports = Array.isArray || function isArray(arg) {
  return cof(arg) == 'Array';
};


/***/ }),
/* 74 */
/***/ (function(module, exports, __webpack_require__) {

// 7.2.8 IsRegExp(argument)
var isObject = __webpack_require__(5);
var cof = __webpack_require__(28);
var MATCH = __webpack_require__(7)('match');
module.exports = function (it) {
  var isRegExp;
  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
};


/***/ }),
/* 75 */
/***/ (function(module, exports, __webpack_require__) {

var ITERATOR = __webpack_require__(7)('iterator');
var SAFE_CLOSING = false;

try {
  var riter = [7][ITERATOR]();
  riter['return'] = function () { SAFE_CLOSING = true; };
  // eslint-disable-next-line no-throw-literal
  Array.from(riter, function () { throw 2; });
} catch (e) { /* empty */ }

module.exports = function (exec, skipClosing) {
  if (!skipClosing && !SAFE_CLOSING) return false;
  var safe = false;
  try {
    var arr = [7];
    var iter = arr[ITERATOR]();
    iter.next = function () { return { done: safe = true }; };
    arr[ITERATOR] = function () { return iter; };
    exec(arr);
  } catch (e) { /* empty */ }
  return safe;
};


/***/ }),
/* 76 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 21.2.5.3 get RegExp.prototype.flags
var anObject = __webpack_require__(2);
module.exports = function () {
  var that = anObject(this);
  var result = '';
  if (that.global) result += 'g';
  if (that.ignoreCase) result += 'i';
  if (that.multiline) result += 'm';
  if (that.unicode) result += 'u';
  if (that.sticky) result += 'y';
  return result;
};


/***/ }),
/* 77 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var hide = __webpack_require__(17);
var redefine = __webpack_require__(18);
var fails = __webpack_require__(4);
var defined = __webpack_require__(32);
var wks = __webpack_require__(7);

module.exports = function (KEY, length, exec) {
  var SYMBOL = wks(KEY);
  var fns = exec(defined, SYMBOL, ''[KEY]);
  var strfn = fns[0];
  var rxfn = fns[1];
  if (fails(function () {
    var O = {};
    O[SYMBOL] = function () { return 7; };
    return ''[KEY](O) != 7;
  })) {
    redefine(String.prototype, KEY, strfn);
    hide(RegExp.prototype, SYMBOL, length == 2
      // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
      // 21.2.5.11 RegExp.prototype[@@split](string, limit)
      ? function (string, arg) { return rxfn.call(string, this, arg); }
      // 21.2.5.6 RegExp.prototype[@@match](string)
      // 21.2.5.9 RegExp.prototype[@@search](string)
      : function (string) { return rxfn.call(string, this); }
    );
  }
};


/***/ }),
/* 78 */
/***/ (function(module, exports, __webpack_require__) {

// 7.3.20 SpeciesConstructor(O, defaultConstructor)
var anObject = __webpack_require__(2);
var aFunction = __webpack_require__(14);
var SPECIES = __webpack_require__(7)('species');
module.exports = function (O, D) {
  var C = anObject(O).constructor;
  var S;
  return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
};


/***/ }),
/* 79 */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(3);
var navigator = global.navigator;

module.exports = navigator && navigator.userAgent || '';


/***/ }),
/* 80 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var global = __webpack_require__(3);
var $export = __webpack_require__(0);
var redefine = __webpack_require__(18);
var redefineAll = __webpack_require__(52);
var meta = __webpack_require__(39);
var forOf = __webpack_require__(51);
var anInstance = __webpack_require__(50);
var isObject = __webpack_require__(5);
var fails = __webpack_require__(4);
var $iterDetect = __webpack_require__(75);
var setToStringTag = __webpack_require__(54);
var inheritIfRequired = __webpack_require__(97);

module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
  var Base = global[NAME];
  var C = Base;
  var ADDER = IS_MAP ? 'set' : 'add';
  var proto = C && C.prototype;
  var O = {};
  var fixMethod = function (KEY) {
    var fn = proto[KEY];
    redefine(proto, KEY,
      KEY == 'delete' ? function (a) {
        return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
      } : KEY == 'has' ? function has(a) {
        return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
      } : KEY == 'get' ? function get(a) {
        return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
      } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }
        : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }
    );
  };
  if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
    new C().entries().next();
  }))) {
    // create collection constructor
    C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
    redefineAll(C.prototype, methods);
    meta.NEED = true;
  } else {
    var instance = new C();
    // early implementations not supports chaining
    var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
    // V8 ~  Chromium 40- weak-collections throws on primitives, but should return false
    var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
    // most early implementations doesn't supports iterables, most modern - not close it correctly
    var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new
    // for early implementations -0 and +0 not the same
    var BUGGY_ZERO = !IS_WEAK && fails(function () {
      // V8 ~ Chromium 42- fails only with 5+ elements
      var $instance = new C();
      var index = 5;
      while (index--) $instance[ADDER](index, index);
      return !$instance.has(-0);
    });
    if (!ACCEPT_ITERABLES) {
      C = wrapper(function (target, iterable) {
        anInstance(target, C, NAME);
        var that = inheritIfRequired(new Base(), target, C);
        if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
        return that;
      });
      C.prototype = proto;
      proto.constructor = C;
    }
    if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
      fixMethod('delete');
      fixMethod('has');
      IS_MAP && fixMethod('get');
    }
    if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
    // weak collections should not contains .clear method
    if (IS_WEAK && proto.clear) delete proto.clear;
  }

  setToStringTag(C, NAME);

  O[NAME] = C;
  $export($export.G + $export.W + $export.F * (C != Base), O);

  if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);

  return C;
};


/***/ }),
/* 81 */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(3);
var hide = __webpack_require__(17);
var uid = __webpack_require__(44);
var TYPED = uid('typed_array');
var VIEW = uid('view');
var ABV = !!(global.ArrayBuffer && global.DataView);
var CONSTR = ABV;
var i = 0;
var l = 9;
var Typed;

var TypedArrayConstructors = (
  'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'
).split(',');

while (i < l) {
  if (Typed = global[TypedArrayConstructors[i++]]) {
    hide(Typed.prototype, TYPED, true);
    hide(Typed.prototype, VIEW, true);
  } else CONSTR = false;
}

module.exports = {
  ABV: ABV,
  CONSTR: CONSTR,
  TYPED: TYPED,
  VIEW: VIEW
};


/***/ }),
/* 82 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// Forced replacement prototype accessors methods
module.exports = __webpack_require__(40) || !__webpack_require__(4)(function () {
  var K = Math.random();
  // In FF throws only define methods
  // eslint-disable-next-line no-undef, no-useless-call
  __defineSetter__.call(null, K, function () { /* empty */ });
  delete __webpack_require__(3)[K];
});


/***/ }),
/* 83 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(0);

module.exports = function (COLLECTION) {
  $export($export.S, COLLECTION, { of: function of() {
    var length = arguments.length;
    var A = new Array(length);
    while (length--) A[length] = arguments[length];
    return new this(A);
  } });
};


/***/ }),
/* 84 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(0);
var aFunction = __webpack_require__(14);
var ctx = __webpack_require__(27);
var forOf = __webpack_require__(51);

module.exports = function (COLLECTION) {
  $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
    var mapFn = arguments[1];
    var mapping, A, n, cb;
    aFunction(this);
    mapping = mapFn !== undefined;
    if (mapping) aFunction(mapFn);
    if (source == undefined) return new this();
    A = [];
    if (mapping) {
      n = 0;
      cb = ctx(mapFn, arguments[2], 2);
      forOf(source, false, function (nextItem) {
        A.push(cb(nextItem, n++));
      });
    } else {
      forOf(source, false, A.push, A);
    }
    return new this(A);
  } });
};


/***/ }),
/* 85 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

if (!process.version ||
    process.version.indexOf('v0.') === 0 ||
    process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
  module.exports = { nextTick: nextTick };
} else {
  module.exports = process
}

function nextTick(fn, arg1, arg2, arg3) {
  if (typeof fn !== 'function') {
    throw new TypeError('"callback" argument must be a function');
  }
  var len = arguments.length;
  var args, i;
  switch (len) {
  case 0:
  case 1:
    return process.nextTick(fn);
  case 2:
    return process.nextTick(function afterTickOne() {
      fn.call(null, arg1);
    });
  case 3:
    return process.nextTick(function afterTickTwo() {
      fn.call(null, arg1, arg2);
    });
  case 4:
    return process.nextTick(function afterTickThree() {
      fn.call(null, arg1, arg2, arg3);
    });
  default:
    args = new Array(len - 1);
    i = 0;
    while (i < args.length) {
      args[i++] = arguments[i];
    }
    return process.nextTick(function afterTick() {
      fn.apply(null, args);
    });
  }
}


/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)))

/***/ }),
/* 86 */
/***/ (function(module, exports, __webpack_require__) {

// based on the aes implimentation in triple sec
// https://github.com/keybase/triplesec
// which is in turn based on the one from crypto-js
// https://code.google.com/p/crypto-js/

var Buffer = __webpack_require__(6).Buffer

function asUInt32Array (buf) {
  if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)

  var len = (buf.length / 4) | 0
  var out = new Array(len)

  for (var i = 0; i < len; i++) {
    out[i] = buf.readUInt32BE(i * 4)
  }

  return out
}

function scrubVec (v) {
  for (var i = 0; i < v.length; v++) {
    v[i] = 0
  }
}

function cryptBlock (M, keySchedule, SUB_MIX, SBOX, nRounds) {
  var SUB_MIX0 = SUB_MIX[0]
  var SUB_MIX1 = SUB_MIX[1]
  var SUB_MIX2 = SUB_MIX[2]
  var SUB_MIX3 = SUB_MIX[3]

  var s0 = M[0] ^ keySchedule[0]
  var s1 = M[1] ^ keySchedule[1]
  var s2 = M[2] ^ keySchedule[2]
  var s3 = M[3] ^ keySchedule[3]
  var t0, t1, t2, t3
  var ksRow = 4

  for (var round = 1; round < nRounds; round++) {
    t0 = SUB_MIX0[s0 >>> 24] ^ SUB_MIX1[(s1 >>> 16) & 0xff] ^ SUB_MIX2[(s2 >>> 8) & 0xff] ^ SUB_MIX3[s3 & 0xff] ^ keySchedule[ksRow++]
    t1 = SUB_MIX0[s1 >>> 24] ^ SUB_MIX1[(s2 >>> 16) & 0xff] ^ SUB_MIX2[(s3 >>> 8) & 0xff] ^ SUB_MIX3[s0 & 0xff] ^ keySchedule[ksRow++]
    t2 = SUB_MIX0[s2 >>> 24] ^ SUB_MIX1[(s3 >>> 16) & 0xff] ^ SUB_MIX2[(s0 >>> 8) & 0xff] ^ SUB_MIX3[s1 & 0xff] ^ keySchedule[ksRow++]
    t3 = SUB_MIX0[s3 >>> 24] ^ SUB_MIX1[(s0 >>> 16) & 0xff] ^ SUB_MIX2[(s1 >>> 8) & 0xff] ^ SUB_MIX3[s2 & 0xff] ^ keySchedule[ksRow++]
    s0 = t0
    s1 = t1
    s2 = t2
    s3 = t3
  }

  t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++]
  t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++]
  t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++]
  t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++]
  t0 = t0 >>> 0
  t1 = t1 >>> 0
  t2 = t2 >>> 0
  t3 = t3 >>> 0

  return [t0, t1, t2, t3]
}

// AES constants
var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]
var G = (function () {
  // Compute double table
  var d = new Array(256)
  for (var j = 0; j < 256; j++) {
    if (j < 128) {
      d[j] = j << 1
    } else {
      d[j] = (j << 1) ^ 0x11b
    }
  }

  var SBOX = []
  var INV_SBOX = []
  var SUB_MIX = [[], [], [], []]
  var INV_SUB_MIX = [[], [], [], []]

  // Walk GF(2^8)
  var x = 0
  var xi = 0
  for (var i = 0; i < 256; ++i) {
    // Compute sbox
    var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4)
    sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63
    SBOX[x] = sx
    INV_SBOX[sx] = x

    // Compute multiplication
    var x2 = d[x]
    var x4 = d[x2]
    var x8 = d[x4]

    // Compute sub bytes, mix columns tables
    var t = (d[sx] * 0x101) ^ (sx * 0x1010100)
    SUB_MIX[0][x] = (t << 24) | (t >>> 8)
    SUB_MIX[1][x] = (t << 16) | (t >>> 16)
    SUB_MIX[2][x] = (t << 8) | (t >>> 24)
    SUB_MIX[3][x] = t

    // Compute inv sub bytes, inv mix columns tables
    t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100)
    INV_SUB_MIX[0][sx] = (t << 24) | (t >>> 8)
    INV_SUB_MIX[1][sx] = (t << 16) | (t >>> 16)
    INV_SUB_MIX[2][sx] = (t << 8) | (t >>> 24)
    INV_SUB_MIX[3][sx] = t

    if (x === 0) {
      x = xi = 1
    } else {
      x = x2 ^ d[d[d[x8 ^ x2]]]
      xi ^= d[d[xi]]
    }
  }

  return {
    SBOX: SBOX,
    INV_SBOX: INV_SBOX,
    SUB_MIX: SUB_MIX,
    INV_SUB_MIX: INV_SUB_MIX
  }
})()

function AES (key) {
  this._key = asUInt32Array(key)
  this._reset()
}

AES.blockSize = 4 * 4
AES.keySize = 256 / 8
AES.prototype.blockSize = AES.blockSize
AES.prototype.keySize = AES.keySize
AES.prototype._reset = function () {
  var keyWords = this._key
  var keySize = keyWords.length
  var nRounds = keySize + 6
  var ksRows = (nRounds + 1) * 4

  var keySchedule = []
  for (var k = 0; k < keySize; k++) {
    keySchedule[k] = keyWords[k]
  }

  for (k = keySize; k < ksRows; k++) {
    var t = keySchedule[k - 1]

    if (k % keySize === 0) {
      t = (t << 8) | (t >>> 24)
      t =
        (G.SBOX[t >>> 24] << 24) |
        (G.SBOX[(t >>> 16) & 0xff] << 16) |
        (G.SBOX[(t >>> 8) & 0xff] << 8) |
        (G.SBOX[t & 0xff])

      t ^= RCON[(k / keySize) | 0] << 24
    } else if (keySize > 6 && k % keySize === 4) {
      t =
        (G.SBOX[t >>> 24] << 24) |
        (G.SBOX[(t >>> 16) & 0xff] << 16) |
        (G.SBOX[(t >>> 8) & 0xff] << 8) |
        (G.SBOX[t & 0xff])
    }

    keySchedule[k] = keySchedule[k - keySize] ^ t
  }

  var invKeySchedule = []
  for (var ik = 0; ik < ksRows; ik++) {
    var ksR = ksRows - ik
    var tt = keySchedule[ksR - (ik % 4 ? 0 : 4)]

    if (ik < 4 || ksR <= 4) {
      invKeySchedule[ik] = tt
    } else {
      invKeySchedule[ik] =
        G.INV_SUB_MIX[0][G.SBOX[tt >>> 24]] ^
        G.INV_SUB_MIX[1][G.SBOX[(tt >>> 16) & 0xff]] ^
        G.INV_SUB_MIX[2][G.SBOX[(tt >>> 8) & 0xff]] ^
        G.INV_SUB_MIX[3][G.SBOX[tt & 0xff]]
    }
  }

  this._nRounds = nRounds
  this._keySchedule = keySchedule
  this._invKeySchedule = invKeySchedule
}

AES.prototype.encryptBlockRaw = function (M) {
  M = asUInt32Array(M)
  return cryptBlock(M, this._keySchedule, G.SUB_MIX, G.SBOX, this._nRounds)
}

AES.prototype.encryptBlock = function (M) {
  var out = this.encryptBlockRaw(M)
  var buf = Buffer.allocUnsafe(16)
  buf.writeUInt32BE(out[0], 0)
  buf.writeUInt32BE(out[1], 4)
  buf.writeUInt32BE(out[2], 8)
  buf.writeUInt32BE(out[3], 12)
  return buf
}

AES.prototype.decryptBlock = function (M) {
  M = asUInt32Array(M)

  // swap
  var m1 = M[1]
  M[1] = M[3]
  M[3] = m1

  var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds)
  var buf = Buffer.allocUnsafe(16)
  buf.writeUInt32BE(out[0], 0)
  buf.writeUInt32BE(out[3], 4)
  buf.writeUInt32BE(out[2], 8)
  buf.writeUInt32BE(out[1], 12)
  return buf
}

AES.prototype.scrub = function () {
  scrubVec(this._keySchedule)
  scrubVec(this._invKeySchedule)
  scrubVec(this._key)
}

module.exports.AES = AES


/***/ }),
/* 87 */
/***/ (function(module, exports, __webpack_require__) {

var Buffer = __webpack_require__(6).Buffer
var MD5 = __webpack_require__(116)

/* eslint-disable camelcase */
function EVP_BytesToKey (password, salt, keyBits, ivLen) {
  if (!Buffer.isBuffer(password)) password = Buffer.from(password, 'binary')
  if (salt) {
    if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, 'binary')
    if (salt.length !== 8) throw new RangeError('salt should be Buffer with 8 byte length')
  }

  var keyLen = keyBits / 8
  var key = Buffer.alloc(keyLen)
  var iv = Buffer.alloc(ivLen || 0)
  var tmp = Buffer.alloc(0)

  while (keyLen > 0 || ivLen > 0) {
    var hash = new MD5()
    hash.update(tmp)
    hash.update(password)
    if (salt) hash.update(salt)
    tmp = hash.digest()

    var used = 0

    if (keyLen > 0) {
      var keyStart = key.length - keyLen
      used = Math.min(keyLen, tmp.length)
      tmp.copy(key, keyStart, 0, used)
      keyLen -= used
    }

    if (used < tmp.length && ivLen > 0) {
      var ivStart = iv.length - ivLen
      var length = Math.min(ivLen, tmp.length - used)
      tmp.copy(iv, ivStart, used, used + length)
      ivLen -= length
    }
  }

  tmp.fill(0)
  return { key: key, iv: iv }
}

module.exports = EVP_BytesToKey


/***/ }),
/* 88 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var curve = exports;

curve.base = __webpack_require__(463);
curve.short = __webpack_require__(464);
curve.mont = __webpack_require__(465);
curve.edwards = __webpack_require__(466);


/***/ }),
/* 89 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var asn1 = __webpack_require__(482)
var aesid = __webpack_require__(494)
var fixProc = __webpack_require__(495)
var ciphers = __webpack_require__(124)
var compat = __webpack_require__(175)
module.exports = parseKeys

function parseKeys (buffer) {
  var password
  if (typeof buffer === 'object' && !Buffer.isBuffer(buffer)) {
    password = buffer.passphrase
    buffer = buffer.key
  }
  if (typeof buffer === 'string') {
    buffer = new Buffer(buffer)
  }

  var stripped = fixProc(buffer, password)

  var type = stripped.tag
  var data = stripped.data
  var subtype, ndata
  switch (type) {
    case 'CERTIFICATE':
      ndata = asn1.certificate.decode(data, 'der').tbsCertificate.subjectPublicKeyInfo
      // falls through
    case 'PUBLIC KEY':
      if (!ndata) {
        ndata = asn1.PublicKey.decode(data, 'der')
      }
      subtype = ndata.algorithm.algorithm.join('.')
      switch (subtype) {
        case '1.2.840.113549.1.1.1':
          return asn1.RSAPublicKey.decode(ndata.subjectPublicKey.data, 'der')
        case '1.2.840.10045.2.1':
          ndata.subjectPrivateKey = ndata.subjectPublicKey
          return {
            type: 'ec',
            data: ndata
          }
        case '1.2.840.10040.4.1':
          ndata.algorithm.params.pub_key = asn1.DSAparam.decode(ndata.subjectPublicKey.data, 'der')
          return {
            type: 'dsa',
            data: ndata.algorithm.params
          }
        default: throw new Error('unknown key id ' + subtype)
      }
      throw new Error('unknown key type ' + type)
    case 'ENCRYPTED PRIVATE KEY':
      data = asn1.EncryptedPrivateKey.decode(data, 'der')
      data = decrypt(data, password)
      // falls through
    case 'PRIVATE KEY':
      ndata = asn1.PrivateKey.decode(data, 'der')
      subtype = ndata.algorithm.algorithm.join('.')
      switch (subtype) {
        case '1.2.840.113549.1.1.1':
          return asn1.RSAPrivateKey.decode(ndata.subjectPrivateKey, 'der')
        case '1.2.840.10045.2.1':
          return {
            curve: ndata.algorithm.curve,
            privateKey: asn1.ECPrivateKey.decode(ndata.subjectPrivateKey, 'der').privateKey
          }
        case '1.2.840.10040.4.1':
          ndata.algorithm.params.priv_key = asn1.DSAparam.decode(ndata.subjectPrivateKey, 'der')
          return {
            type: 'dsa',
            params: ndata.algorithm.params
          }
        default: throw new Error('unknown key id ' + subtype)
      }
      throw new Error('unknown key type ' + type)
    case 'RSA PUBLIC KEY':
      return asn1.RSAPublicKey.decode(data, 'der')
    case 'RSA PRIVATE KEY':
      return asn1.RSAPrivateKey.decode(data, 'der')
    case 'DSA PRIVATE KEY':
      return {
        type: 'dsa',
        params: asn1.DSAPrivateKey.decode(data, 'der')
      }
    case 'EC PRIVATE KEY':
      data = asn1.ECPrivateKey.decode(data, 'der')
      return {
        curve: data.parameters.value,
        privateKey: data.privateKey
      }
    default: throw new Error('unknown key type ' + type)
  }
}
parseKeys.signature = asn1.signature
function decrypt (data, password) {
  var salt = data.algorithm.decrypt.kde.kdeparams.salt
  var iters = parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(), 10)
  var algo = aesid[data.algorithm.decrypt.cipher.algo.join('.')]
  var iv = data.algorithm.decrypt.cipher.iv
  var cipherText = data.subjectPrivateKey
  var keylen = parseInt(algo.split('-')[1], 10) / 8
  var key = compat.pbkdf2Sync(password, salt, iters, keylen)
  var cipher = ciphers.createDecipheriv(algo, key, iv)
  var out = []
  out.push(cipher.update(cipherText))
  out.push(cipher.final())
  return Buffer.concat(out)
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 90 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(5);
var document = __webpack_require__(3).document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
  return is ? document.createElement(it) : {};
};


/***/ }),
/* 91 */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(3);
var core = __webpack_require__(26);
var LIBRARY = __webpack_require__(40);
var wksExt = __webpack_require__(129);
var defineProperty = __webpack_require__(10).f;
module.exports = function (name) {
  var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
};


/***/ }),
/* 92 */
/***/ (function(module, exports, __webpack_require__) {

var shared = __webpack_require__(70)('keys');
var uid = __webpack_require__(44);
module.exports = function (key) {
  return shared[key] || (shared[key] = uid(key));
};


/***/ }),
/* 93 */
/***/ (function(module, exports) {

// IE 8- don't enum bug keys
module.exports = (
  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');


/***/ }),
/* 94 */
/***/ (function(module, exports, __webpack_require__) {

var document = __webpack_require__(3).document;
module.exports = document && document.documentElement;


/***/ }),
/* 95 */
/***/ (function(module, exports, __webpack_require__) {

// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(5);
var anObject = __webpack_require__(2);
var check = function (O, proto) {
  anObject(O);
  if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
};
module.exports = {
  set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
    function (test, buggy, set) {
      try {
        set = __webpack_require__(27)(Function.call, __webpack_require__(22).f(Object.prototype, '__proto__').set, 2);
        set(test, []);
        buggy = !(test instanceof Array);
      } catch (e) { buggy = true; }
      return function setPrototypeOf(O, proto) {
        check(O, proto);
        if (buggy) O.__proto__ = proto;
        else set(O, proto);
        return O;
      };
    }({}, false) : undefined),
  check: check
};


/***/ }),
/* 96 */
/***/ (function(module, exports) {

module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
  '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';


/***/ }),
/* 97 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(5);
var setPrototypeOf = __webpack_require__(95).set;
module.exports = function (that, target, C) {
  var S = target.constructor;
  var P;
  if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
    setPrototypeOf(that, P);
  } return that;
};


/***/ }),
/* 98 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var toInteger = __webpack_require__(33);
var defined = __webpack_require__(32);

module.exports = function repeat(count) {
  var str = String(defined(this));
  var res = '';
  var n = toInteger(count);
  if (n < 0 || n == Infinity) throw RangeError("Count can't be negative");
  for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str;
  return res;
};


/***/ }),
/* 99 */
/***/ (function(module, exports) {

// 20.2.2.28 Math.sign(x)
module.exports = Math.sign || function sign(x) {
  // eslint-disable-next-line no-self-compare
  return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
};


/***/ }),
/* 100 */
/***/ (function(module, exports) {

// 20.2.2.14 Math.expm1(x)
var $expm1 = Math.expm1;
module.exports = (!$expm1
  // Old FF bug
  || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
  // Tor Browser bug
  || $expm1(-2e-17) != -2e-17
) ? function expm1(x) {
  return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;
} : $expm1;


/***/ }),
/* 101 */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(33);
var defined = __webpack_require__(32);
// true  -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
  return function (that, pos) {
    var s = String(defined(that));
    var i = toInteger(pos);
    var l = s.length;
    var a, b;
    if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
    a = s.charCodeAt(i);
    return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
      ? TO_STRING ? s.charAt(i) : a
      : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  };
};


/***/ }),
/* 102 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var LIBRARY = __webpack_require__(40);
var $export = __webpack_require__(0);
var redefine = __webpack_require__(18);
var hide = __webpack_require__(17);
var Iterators = __webpack_require__(56);
var $iterCreate = __webpack_require__(103);
var setToStringTag = __webpack_require__(54);
var getPrototypeOf = __webpack_require__(23);
var ITERATOR = __webpack_require__(7)('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';

var returnThis = function () { return this; };

module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  $iterCreate(Constructor, NAME, next);
  var getMethod = function (kind) {
    if (!BUGGY && kind in proto) return proto[kind];
    switch (kind) {
      case KEYS: return function keys() { return new Constructor(this, kind); };
      case VALUES: return function values() { return new Constructor(this, kind); };
    } return function entries() { return new Constructor(this, kind); };
  };
  var TAG = NAME + ' Iterator';
  var DEF_VALUES = DEFAULT == VALUES;
  var VALUES_BUG = false;
  var proto = Base.prototype;
  var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  var $default = $native || getMethod(DEFAULT);
  var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  var methods, key, IteratorPrototype;
  // Fix native
  if ($anyNative) {
    IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
    if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
      // Set @@toStringTag to native iterators
      setToStringTag(IteratorPrototype, TAG, true);
      // fix for some old engines
      if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
    }
  }
  // fix Array#{values, @@iterator}.name in V8 / FF
  if (DEF_VALUES && $native && $native.name !== VALUES) {
    VALUES_BUG = true;
    $default = function values() { return $native.call(this); };
  }
  // Define iterator
  if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
    hide(proto, ITERATOR, $default);
  }
  // Plug for library
  Iterators[NAME] = $default;
  Iterators[TAG] = returnThis;
  if (DEFAULT) {
    methods = {
      values: DEF_VALUES ? $default : getMethod(VALUES),
      keys: IS_SET ? $default : getMethod(KEYS),
      entries: $entries
    };
    if (FORCED) for (key in methods) {
      if (!(key in proto)) redefine(proto, key, methods[key]);
    } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  }
  return methods;
};


/***/ }),
/* 103 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var create = __webpack_require__(47);
var descriptor = __webpack_require__(43);
var setToStringTag = __webpack_require__(54);
var IteratorPrototype = {};

// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(17)(IteratorPrototype, __webpack_require__(7)('iterator'), function () { return this; });

module.exports = function (Constructor, NAME, next) {
  Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  setToStringTag(Constructor, NAME + ' Iterator');
};


/***/ }),
/* 104 */
/***/ (function(module, exports, __webpack_require__) {

// helper for String#{startsWith, endsWith, includes}
var isRegExp = __webpack_require__(74);
var defined = __webpack_require__(32);

module.exports = function (that, searchString, NAME) {
  if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
  return String(defined(that));
};


/***/ }),
/* 105 */
/***/ (function(module, exports, __webpack_require__) {

var MATCH = __webpack_require__(7)('match');
module.exports = function (KEY) {
  var re = /./;
  try {
    '/./'[KEY](re);
  } catch (e) {
    try {
      re[MATCH] = false;
      return !'/./'[KEY](re);
    } catch (f) { /* empty */ }
  } return true;
};


/***/ }),
/* 106 */
/***/ (function(module, exports, __webpack_require__) {

// check on default Array iterator
var Iterators = __webpack_require__(56);
var ITERATOR = __webpack_require__(7)('iterator');
var ArrayProto = Array.prototype;

module.exports = function (it) {
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};


/***/ }),
/* 107 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $defineProperty = __webpack_require__(10);
var createDesc = __webpack_require__(43);

module.exports = function (object, index, value) {
  if (index in object) $defineProperty.f(object, index, createDesc(0, value));
  else object[index] = value;
};


/***/ }),
/* 108 */
/***/ (function(module, exports, __webpack_require__) {

var classof = __webpack_require__(62);
var ITERATOR = __webpack_require__(7)('iterator');
var Iterators = __webpack_require__(56);
module.exports = __webpack_require__(26).getIteratorMethod = function (it) {
  if (it != undefined) return it[ITERATOR]
    || it['@@iterator']
    || Iterators[classof(it)];
};


/***/ }),
/* 109 */
/***/ (function(module, exports, __webpack_require__) {

// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
var speciesConstructor = __webpack_require__(294);

module.exports = function (original, length) {
  return new (speciesConstructor(original))(length);
};


/***/ }),
/* 110 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)

var toObject = __webpack_require__(13);
var toAbsoluteIndex = __webpack_require__(46);
var toLength = __webpack_require__(11);
module.exports = function fill(value /* , start = 0, end = @length */) {
  var O = toObject(this);
  var length = toLength(O.length);
  var aLen = arguments.length;
  var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
  var end = aLen > 2 ? arguments[2] : undefined;
  var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
  while (endPos > index) O[index++] = value;
  return O;
};


/***/ }),
/* 111 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var addToUnscopables = __webpack_require__(41);
var step = __webpack_require__(145);
var Iterators = __webpack_require__(56);
var toIObject = __webpack_require__(21);

// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(102)(Array, 'Array', function (iterated, kind) {
  this._t = toIObject(iterated); // target
  this._i = 0;                   // next index
  this._k = kind;                // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var kind = this._k;
  var index = this._i++;
  if (!O || index >= O.length) {
    this._t = undefined;
    return step(1);
  }
  if (kind == 'keys') return step(0, index);
  if (kind == 'values') return step(0, O[index]);
  return step(0, [index, O[index]]);
}, 'values');

// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;

addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');


/***/ }),
/* 112 */
/***/ (function(module, exports, __webpack_require__) {

var ctx = __webpack_require__(27);
var invoke = __webpack_require__(135);
var html = __webpack_require__(94);
var cel = __webpack_require__(90);
var global = __webpack_require__(3);
var process = global.process;
var setTask = global.setImmediate;
var clearTask = global.clearImmediate;
var MessageChannel = global.MessageChannel;
var Dispatch = global.Dispatch;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var defer, channel, port;
var run = function () {
  var id = +this;
  // eslint-disable-next-line no-prototype-builtins
  if (queue.hasOwnProperty(id)) {
    var fn = queue[id];
    delete queue[id];
    fn();
  }
};
var listener = function (event) {
  run.call(event.data);
};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if (!setTask || !clearTask) {
  setTask = function setImmediate(fn) {
    var args = [];
    var i = 1;
    while (arguments.length > i) args.push(arguments[i++]);
    queue[++counter] = function () {
      // eslint-disable-next-line no-new-func
      invoke(typeof fn == 'function' ? fn : Function(fn), args);
    };
    defer(counter);
    return counter;
  };
  clearTask = function clearImmediate(id) {
    delete queue[id];
  };
  // Node.js 0.8-
  if (__webpack_require__(28)(process) == 'process') {
    defer = function (id) {
      process.nextTick(ctx(run, id, 1));
    };
  // Sphere (JS game engine) Dispatch API
  } else if (Dispatch && Dispatch.now) {
    defer = function (id) {
      Dispatch.now(ctx(run, id, 1));
    };
  // Browsers with MessageChannel, includes WebWorkers
  } else if (MessageChannel) {
    channel = new MessageChannel();
    port = channel.port2;
    channel.port1.onmessage = listener;
    defer = ctx(port.postMessage, port, 1);
  // Browsers with postMessage, skip WebWorkers
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
  } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
    defer = function (id) {
      global.postMessage(id + '', '*');
    };
    global.addEventListener('message', listener, false);
  // IE8-
  } else if (ONREADYSTATECHANGE in cel('script')) {
    defer = function (id) {
      html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
        html.removeChild(this);
        run.call(id);
      };
    };
  // Rest old browsers
  } else {
    defer = function (id) {
      setTimeout(ctx(run, id, 1), 0);
    };
  }
}
module.exports = {
  set: setTask,
  clear: clearTask
};


/***/ }),
/* 113 */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(3);
var macrotask = __webpack_require__(112).set;
var Observer = global.MutationObserver || global.WebKitMutationObserver;
var process = global.process;
var Promise = global.Promise;
var isNode = __webpack_require__(28)(process) == 'process';

module.exports = function () {
  var head, last, notify;

  var flush = function () {
    var parent, fn;
    if (isNode && (parent = process.domain)) parent.exit();
    while (head) {
      fn = head.fn;
      head = head.next;
      try {
        fn();
      } catch (e) {
        if (head) notify();
        else last = undefined;
        throw e;
      }
    } last = undefined;
    if (parent) parent.enter();
  };

  // Node.js
  if (isNode) {
    notify = function () {
      process.nextTick(flush);
    };
  // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
  } else if (Observer && !(global.navigator && global.navigator.standalone)) {
    var toggle = true;
    var node = document.createTextNode('');
    new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
    notify = function () {
      node.data = toggle = !toggle;
    };
  // environments with maybe non-completely correct, but existent Promise
  } else if (Promise && Promise.resolve) {
    // Promise.resolve without an argument throws an error in LG WebOS 2
    var promise = Promise.resolve(undefined);
    notify = function () {
      promise.then(flush);
    };
  // for other environments - macrotask based on:
  // - setImmediate
  // - MessageChannel
  // - window.postMessag
  // - onreadystatechange
  // - setTimeout
  } else {
    notify = function () {
      // strange IE + webpack dev server bug - use .call(global)
      macrotask.call(global, flush);
    };
  }

  return function (fn) {
    var task = { fn: fn, next: undefined };
    if (last) last.next = task;
    if (!head) {
      head = task;
      notify();
    } last = task;
  };
};


/***/ }),
/* 114 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 25.4.1.5 NewPromiseCapability(C)
var aFunction = __webpack_require__(14);

function PromiseCapability(C) {
  var resolve, reject;
  this.promise = new C(function ($$resolve, $$reject) {
    if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
    resolve = $$resolve;
    reject = $$reject;
  });
  this.resolve = aFunction(resolve);
  this.reject = aFunction(reject);
}

module.exports.f = function (C) {
  return new PromiseCapability(C);
};


/***/ }),
/* 115 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var global = __webpack_require__(3);
var DESCRIPTORS = __webpack_require__(9);
var LIBRARY = __webpack_require__(40);
var $typed = __webpack_require__(81);
var hide = __webpack_require__(17);
var redefineAll = __webpack_require__(52);
var fails = __webpack_require__(4);
var anInstance = __webpack_require__(50);
var toInteger = __webpack_require__(33);
var toLength = __webpack_require__(11);
var toIndex = __webpack_require__(154);
var gOPN = __webpack_require__(48).f;
var dP = __webpack_require__(10).f;
var arrayFill = __webpack_require__(110);
var setToStringTag = __webpack_require__(54);
var ARRAY_BUFFER = 'ArrayBuffer';
var DATA_VIEW = 'DataView';
var PROTOTYPE = 'prototype';
var WRONG_LENGTH = 'Wrong length!';
var WRONG_INDEX = 'Wrong index!';
var $ArrayBuffer = global[ARRAY_BUFFER];
var $DataView = global[DATA_VIEW];
var Math = global.Math;
var RangeError = global.RangeError;
// eslint-disable-next-line no-shadow-restricted-names
var Infinity = global.Infinity;
var BaseBuffer = $ArrayBuffer;
var abs = Math.abs;
var pow = Math.pow;
var floor = Math.floor;
var log = Math.log;
var LN2 = Math.LN2;
var BUFFER = 'buffer';
var BYTE_LENGTH = 'byteLength';
var BYTE_OFFSET = 'byteOffset';
var $BUFFER = DESCRIPTORS ? '_b' : BUFFER;
var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH;
var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET;

// IEEE754 conversions based on https://github.com/feross/ieee754
function packIEEE754(value, mLen, nBytes) {
  var buffer = new Array(nBytes);
  var eLen = nBytes * 8 - mLen - 1;
  var eMax = (1 << eLen) - 1;
  var eBias = eMax >> 1;
  var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0;
  var i = 0;
  var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
  var e, m, c;
  value = abs(value);
  // eslint-disable-next-line no-self-compare
  if (value != value || value === Infinity) {
    // eslint-disable-next-line no-self-compare
    m = value != value ? 1 : 0;
    e = eMax;
  } else {
    e = floor(log(value) / LN2);
    if (value * (c = pow(2, -e)) < 1) {
      e--;
      c *= 2;
    }
    if (e + eBias >= 1) {
      value += rt / c;
    } else {
      value += rt * pow(2, 1 - eBias);
    }
    if (value * c >= 2) {
      e++;
      c /= 2;
    }
    if (e + eBias >= eMax) {
      m = 0;
      e = eMax;
    } else if (e + eBias >= 1) {
      m = (value * c - 1) * pow(2, mLen);
      e = e + eBias;
    } else {
      m = value * pow(2, eBias - 1) * pow(2, mLen);
      e = 0;
    }
  }
  for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8);
  e = e << mLen | m;
  eLen += mLen;
  for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8);
  buffer[--i] |= s * 128;
  return buffer;
}
function unpackIEEE754(buffer, mLen, nBytes) {
  var eLen = nBytes * 8 - mLen - 1;
  var eMax = (1 << eLen) - 1;
  var eBias = eMax >> 1;
  var nBits = eLen - 7;
  var i = nBytes - 1;
  var s = buffer[i--];
  var e = s & 127;
  var m;
  s >>= 7;
  for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8);
  m = e & (1 << -nBits) - 1;
  e >>= -nBits;
  nBits += mLen;
  for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8);
  if (e === 0) {
    e = 1 - eBias;
  } else if (e === eMax) {
    return m ? NaN : s ? -Infinity : Infinity;
  } else {
    m = m + pow(2, mLen);
    e = e - eBias;
  } return (s ? -1 : 1) * m * pow(2, e - mLen);
}

function unpackI32(bytes) {
  return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0];
}
function packI8(it) {
  return [it & 0xff];
}
function packI16(it) {
  return [it & 0xff, it >> 8 & 0xff];
}
function packI32(it) {
  return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff];
}
function packF64(it) {
  return packIEEE754(it, 52, 8);
}
function packF32(it) {
  return packIEEE754(it, 23, 4);
}

function addGetter(C, key, internal) {
  dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } });
}

function get(view, bytes, index, isLittleEndian) {
  var numIndex = +index;
  var intIndex = toIndex(numIndex);
  if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
  var store = view[$BUFFER]._b;
  var start = intIndex + view[$OFFSET];
  var pack = store.slice(start, start + bytes);
  return isLittleEndian ? pack : pack.reverse();
}
function set(view, bytes, index, conversion, value, isLittleEndian) {
  var numIndex = +index;
  var intIndex = toIndex(numIndex);
  if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
  var store = view[$BUFFER]._b;
  var start = intIndex + view[$OFFSET];
  var pack = conversion(+value);
  for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];
}

if (!$typed.ABV) {
  $ArrayBuffer = function ArrayBuffer(length) {
    anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
    var byteLength = toIndex(length);
    this._b = arrayFill.call(new Array(byteLength), 0);
    this[$LENGTH] = byteLength;
  };

  $DataView = function DataView(buffer, byteOffset, byteLength) {
    anInstance(this, $DataView, DATA_VIEW);
    anInstance(buffer, $ArrayBuffer, DATA_VIEW);
    var bufferLength = buffer[$LENGTH];
    var offset = toInteger(byteOffset);
    if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!');
    byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
    if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
    this[$BUFFER] = buffer;
    this[$OFFSET] = offset;
    this[$LENGTH] = byteLength;
  };

  if (DESCRIPTORS) {
    addGetter($ArrayBuffer, BYTE_LENGTH, '_l');
    addGetter($DataView, BUFFER, '_b');
    addGetter($DataView, BYTE_LENGTH, '_l');
    addGetter($DataView, BYTE_OFFSET, '_o');
  }

  redefineAll($DataView[PROTOTYPE], {
    getInt8: function getInt8(byteOffset) {
      return get(this, 1, byteOffset)[0] << 24 >> 24;
    },
    getUint8: function getUint8(byteOffset) {
      return get(this, 1, byteOffset)[0];
    },
    getInt16: function getInt16(byteOffset /* , littleEndian */) {
      var bytes = get(this, 2, byteOffset, arguments[1]);
      return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
    },
    getUint16: function getUint16(byteOffset /* , littleEndian */) {
      var bytes = get(this, 2, byteOffset, arguments[1]);
      return bytes[1] << 8 | bytes[0];
    },
    getInt32: function getInt32(byteOffset /* , littleEndian */) {
      return unpackI32(get(this, 4, byteOffset, arguments[1]));
    },
    getUint32: function getUint32(byteOffset /* , littleEndian */) {
      return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;
    },
    getFloat32: function getFloat32(byteOffset /* , littleEndian */) {
      return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);
    },
    getFloat64: function getFloat64(byteOffset /* , littleEndian */) {
      return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);
    },
    setInt8: function setInt8(byteOffset, value) {
      set(this, 1, byteOffset, packI8, value);
    },
    setUint8: function setUint8(byteOffset, value) {
      set(this, 1, byteOffset, packI8, value);
    },
    setInt16: function setInt16(byteOffset, value /* , littleEndian */) {
      set(this, 2, byteOffset, packI16, value, arguments[2]);
    },
    setUint16: function setUint16(byteOffset, value /* , littleEndian */) {
      set(this, 2, byteOffset, packI16, value, arguments[2]);
    },
    setInt32: function setInt32(byteOffset, value /* , littleEndian */) {
      set(this, 4, byteOffset, packI32, value, arguments[2]);
    },
    setUint32: function setUint32(byteOffset, value /* , littleEndian */) {
      set(this, 4, byteOffset, packI32, value, arguments[2]);
    },
    setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {
      set(this, 4, byteOffset, packF32, value, arguments[2]);
    },
    setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {
      set(this, 8, byteOffset, packF64, value, arguments[2]);
    }
  });
} else {
  if (!fails(function () {
    $ArrayBuffer(1);
  }) || !fails(function () {
    new $ArrayBuffer(-1); // eslint-disable-line no-new
  }) || fails(function () {
    new $ArrayBuffer(); // eslint-disable-line no-new
    new $ArrayBuffer(1.5); // eslint-disable-line no-new
    new $ArrayBuffer(NaN); // eslint-disable-line no-new
    return $ArrayBuffer.name != ARRAY_BUFFER;
  })) {
    $ArrayBuffer = function ArrayBuffer(length) {
      anInstance(this, $ArrayBuffer);
      return new BaseBuffer(toIndex(length));
    };
    var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];
    for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) {
      if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]);
    }
    if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer;
  }
  // iOS Safari 7.x bug
  var view = new $DataView(new $ArrayBuffer(2));
  var $setInt8 = $DataView[PROTOTYPE].setInt8;
  view.setInt8(0, 2147483648);
  view.setInt8(1, 2147483649);
  if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], {
    setInt8: function setInt8(byteOffset, value) {
      $setInt8.call(this, byteOffset, value << 24 >> 24);
    },
    setUint8: function setUint8(byteOffset, value) {
      $setInt8.call(this, byteOffset, value << 24 >> 24);
    }
  }, true);
}
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
setToStringTag($DataView, DATA_VIEW);
hide($DataView[PROTOTYPE], $typed.VIEW, true);
exports[ARRAY_BUFFER] = $ArrayBuffer;
exports[DATA_VIEW] = $DataView;


/***/ }),
/* 116 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(Buffer) {
var inherits = __webpack_require__(1)
var HashBase = __webpack_require__(165)

var ARRAY16 = new Array(16)

function MD5 () {
  HashBase.call(this, 64)

  // state
  this._a = 0x67452301
  this._b = 0xefcdab89
  this._c = 0x98badcfe
  this._d = 0x10325476
}

inherits(MD5, HashBase)

MD5.prototype._update = function () {
  var M = ARRAY16
  for (var i = 0; i < 16; ++i) M[i] = this._block.readInt32LE(i * 4)

  var a = this._a
  var b = this._b
  var c = this._c
  var d = this._d

  a = fnF(a, b, c, d, M[0], 0xd76aa478, 7)
  d = fnF(d, a, b, c, M[1], 0xe8c7b756, 12)
  c = fnF(c, d, a, b, M[2], 0x242070db, 17)
  b = fnF(b, c, d, a, M[3], 0xc1bdceee, 22)
  a = fnF(a, b, c, d, M[4], 0xf57c0faf, 7)
  d = fnF(d, a, b, c, M[5], 0x4787c62a, 12)
  c = fnF(c, d, a, b, M[6], 0xa8304613, 17)
  b = fnF(b, c, d, a, M[7], 0xfd469501, 22)
  a = fnF(a, b, c, d, M[8], 0x698098d8, 7)
  d = fnF(d, a, b, c, M[9], 0x8b44f7af, 12)
  c = fnF(c, d, a, b, M[10], 0xffff5bb1, 17)
  b = fnF(b, c, d, a, M[11], 0x895cd7be, 22)
  a = fnF(a, b, c, d, M[12], 0x6b901122, 7)
  d = fnF(d, a, b, c, M[13], 0xfd987193, 12)
  c = fnF(c, d, a, b, M[14], 0xa679438e, 17)
  b = fnF(b, c, d, a, M[15], 0x49b40821, 22)

  a = fnG(a, b, c, d, M[1], 0xf61e2562, 5)
  d = fnG(d, a, b, c, M[6], 0xc040b340, 9)
  c = fnG(c, d, a, b, M[11], 0x265e5a51, 14)
  b = fnG(b, c, d, a, M[0], 0xe9b6c7aa, 20)
  a = fnG(a, b, c, d, M[5], 0xd62f105d, 5)
  d = fnG(d, a, b, c, M[10], 0x02441453, 9)
  c = fnG(c, d, a, b, M[15], 0xd8a1e681, 14)
  b = fnG(b, c, d, a, M[4], 0xe7d3fbc8, 20)
  a = fnG(a, b, c, d, M[9], 0x21e1cde6, 5)
  d = fnG(d, a, b, c, M[14], 0xc33707d6, 9)
  c = fnG(c, d, a, b, M[3], 0xf4d50d87, 14)
  b = fnG(b, c, d, a, M[8], 0x455a14ed, 20)
  a = fnG(a, b, c, d, M[13], 0xa9e3e905, 5)
  d = fnG(d, a, b, c, M[2], 0xfcefa3f8, 9)
  c = fnG(c, d, a, b, M[7], 0x676f02d9, 14)
  b = fnG(b, c, d, a, M[12], 0x8d2a4c8a, 20)

  a = fnH(a, b, c, d, M[5], 0xfffa3942, 4)
  d = fnH(d, a, b, c, M[8], 0x8771f681, 11)
  c = fnH(c, d, a, b, M[11], 0x6d9d6122, 16)
  b = fnH(b, c, d, a, M[14], 0xfde5380c, 23)
  a = fnH(a, b, c, d, M[1], 0xa4beea44, 4)
  d = fnH(d, a, b, c, M[4], 0x4bdecfa9, 11)
  c = fnH(c, d, a, b, M[7], 0xf6bb4b60, 16)
  b = fnH(b, c, d, a, M[10], 0xbebfbc70, 23)
  a = fnH(a, b, c, d, M[13], 0x289b7ec6, 4)
  d = fnH(d, a, b, c, M[0], 0xeaa127fa, 11)
  c = fnH(c, d, a, b, M[3], 0xd4ef3085, 16)
  b = fnH(b, c, d, a, M[6], 0x04881d05, 23)
  a = fnH(a, b, c, d, M[9], 0xd9d4d039, 4)
  d = fnH(d, a, b, c, M[12], 0xe6db99e5, 11)
  c = fnH(c, d, a, b, M[15], 0x1fa27cf8, 16)
  b = fnH(b, c, d, a, M[2], 0xc4ac5665, 23)

  a = fnI(a, b, c, d, M[0], 0xf4292244, 6)
  d = fnI(d, a, b, c, M[7], 0x432aff97, 10)
  c = fnI(c, d, a, b, M[14], 0xab9423a7, 15)
  b = fnI(b, c, d, a, M[5], 0xfc93a039, 21)
  a = fnI(a, b, c, d, M[12], 0x655b59c3, 6)
  d = fnI(d, a, b, c, M[3], 0x8f0ccc92, 10)
  c = fnI(c, d, a, b, M[10], 0xffeff47d, 15)
  b = fnI(b, c, d, a, M[1], 0x85845dd1, 21)
  a = fnI(a, b, c, d, M[8], 0x6fa87e4f, 6)
  d = fnI(d, a, b, c, M[15], 0xfe2ce6e0, 10)
  c = fnI(c, d, a, b, M[6], 0xa3014314, 15)
  b = fnI(b, c, d, a, M[13], 0x4e0811a1, 21)
  a = fnI(a, b, c, d, M[4], 0xf7537e82, 6)
  d = fnI(d, a, b, c, M[11], 0xbd3af235, 10)
  c = fnI(c, d, a, b, M[2], 0x2ad7d2bb, 15)
  b = fnI(b, c, d, a, M[9], 0xeb86d391, 21)

  this._a = (this._a + a) | 0
  this._b = (this._b + b) | 0
  this._c = (this._c + c) | 0
  this._d = (this._d + d) | 0
}

MD5.prototype._digest = function () {
  // create padding and handle blocks
  this._block[this._blockOffset++] = 0x80
  if (this._blockOffset > 56) {
    this._block.fill(0, this._blockOffset, 64)
    this._update()
    this._blockOffset = 0
  }

  this._block.fill(0, this._blockOffset, 56)
  this._block.writeUInt32LE(this._length[0], 56)
  this._block.writeUInt32LE(this._length[1], 60)
  this._update()

  // produce result
  var buffer = new Buffer(16)
  buffer.writeInt32LE(this._a, 0)
  buffer.writeInt32LE(this._b, 4)
  buffer.writeInt32LE(this._c, 8)
  buffer.writeInt32LE(this._d, 12)
  return buffer
}

function rotl (x, n) {
  return (x << n) | (x >>> (32 - n))
}

function fnF (a, b, c, d, m, k, s) {
  return (rotl((a + ((b & c) | ((~b) & d)) + m + k) | 0, s) + b) | 0
}

function fnG (a, b, c, d, m, k, s) {
  return (rotl((a + ((b & d) | (c & (~d))) + m + k) | 0, s) + b) | 0
}

function fnH (a, b, c, d, m, k, s) {
  return (rotl((a + (b ^ c ^ d) + m + k) | 0, s) + b) | 0
}

function fnI (a, b, c, d, m, k, s) {
  return (rotl((a + ((c ^ (b | (~d)))) + m + k) | 0, s) + b) | 0
}

module.exports = MD5

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 117 */
/***/ (function(module, exports, __webpack_require__) {

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

module.exports = Stream;

var EE = __webpack_require__(63).EventEmitter;
var inherits = __webpack_require__(1);

inherits(Stream, EE);
Stream.Readable = __webpack_require__(118);
Stream.Writable = __webpack_require__(426);
Stream.Duplex = __webpack_require__(427);
Stream.Transform = __webpack_require__(428);
Stream.PassThrough = __webpack_require__(429);

// Backwards-compat with node 0.4.x
Stream.Stream = Stream;



// old-style streams.  Note that the pipe method (the only relevant
// part of this class) is overridden in the Readable class.

function Stream() {
  EE.call(this);
}

Stream.prototype.pipe = function(dest, options) {
  var source = this;

  function ondata(chunk) {
    if (dest.writable) {
      if (false === dest.write(chunk) && source.pause) {
        source.pause();
      }
    }
  }

  source.on('data', ondata);

  function ondrain() {
    if (source.readable && source.resume) {
      source.resume();
    }
  }

  dest.on('drain', ondrain);

  // If the 'end' option is not supplied, dest.end() will be called when
  // source gets the 'end' or 'close' events.  Only dest.end() once.
  if (!dest._isStdio && (!options || options.end !== false)) {
    source.on('end', onend);
    source.on('close', onclose);
  }

  var didOnEnd = false;
  function onend() {
    if (didOnEnd) return;
    didOnEnd = true;

    dest.end();
  }


  function onclose() {
    if (didOnEnd) return;
    didOnEnd = true;

    if (typeof dest.destroy === 'function') dest.destroy();
  }

  // don't leave dangling pipes when there are errors.
  function onerror(er) {
    cleanup();
    if (EE.listenerCount(this, 'error') === 0) {
      throw er; // Unhandled stream error in pipe.
    }
  }

  source.on('error', onerror);
  dest.on('error', onerror);

  // remove all the event listeners that were added.
  function cleanup() {
    source.removeListener('data', ondata);
    dest.removeListener('drain', ondrain);

    source.removeListener('end', onend);
    source.removeListener('close', onclose);

    source.removeListener('error', onerror);
    dest.removeListener('error', onerror);

    source.removeListener('end', cleanup);
    source.removeListener('close', cleanup);

    dest.removeListener('close', cleanup);
  }

  source.on('end', cleanup);
  source.on('close', cleanup);

  dest.on('close', cleanup);

  dest.emit('pipe', source);

  // Allow for unix-like usage: A.pipe(B).pipe(C)
  return dest;
};


/***/ }),
/* 118 */
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(166);
exports.Stream = exports;
exports.Readable = exports;
exports.Writable = __webpack_require__(119);
exports.Duplex = __webpack_require__(53);
exports.Transform = __webpack_require__(169);
exports.PassThrough = __webpack_require__(425);


/***/ }),
/* 119 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process, setImmediate, global) {// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.



/*<replacement>*/

var pna = __webpack_require__(85);
/*</replacement>*/

module.exports = Writable;

/* <replacement> */
function WriteReq(chunk, encoding, cb) {
  this.chunk = chunk;
  this.encoding = encoding;
  this.callback = cb;
  this.next = null;
}

// It seems a linked list but it is not
// there will be only 2 of these for each stream
function CorkedRequest(state) {
  var _this = this;

  this.next = null;
  this.entry = null;
  this.finish = function () {
    onCorkedFinish(_this, state);
  };
}
/* </replacement> */

/*<replacement>*/
var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
/*</replacement>*/

/*<replacement>*/
var Duplex;
/*</replacement>*/

Writable.WritableState = WritableState;

/*<replacement>*/
var util = __webpack_require__(65);
util.inherits = __webpack_require__(1);
/*</replacement>*/

/*<replacement>*/
var internalUtil = {
  deprecate: __webpack_require__(424)
};
/*</replacement>*/

/*<replacement>*/
var Stream = __webpack_require__(167);
/*</replacement>*/

/*<replacement>*/

var Buffer = __webpack_require__(6).Buffer;
var OurUint8Array = global.Uint8Array || function () {};
function _uint8ArrayToBuffer(chunk) {
  return Buffer.from(chunk);
}
function _isUint8Array(obj) {
  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
}

/*</replacement>*/

var destroyImpl = __webpack_require__(168);

util.inherits(Writable, Stream);

function nop() {}

function WritableState(options, stream) {
  Duplex = Duplex || __webpack_require__(53);

  options = options || {};

  // Duplex streams are both readable and writable, but share
  // the same options object.
  // However, some cases require setting options to different
  // values for the readable and the writable sides of the duplex stream.
  // These options can be provided separately as readableXXX and writableXXX.
  var isDuplex = stream instanceof Duplex;

  // object stream flag to indicate whether or not this stream
  // contains buffers or objects.
  this.objectMode = !!options.objectMode;

  if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;

  // the point at which write() starts returning false
  // Note: 0 is a valid value, means that we always return false if
  // the entire buffer is not flushed immediately on write()
  var hwm = options.highWaterMark;
  var writableHwm = options.writableHighWaterMark;
  var defaultHwm = this.objectMode ? 16 : 16 * 1024;

  if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;

  // cast to ints.
  this.highWaterMark = Math.floor(this.highWaterMark);

  // if _final has been called
  this.finalCalled = false;

  // drain event flag.
  this.needDrain = false;
  // at the start of calling end()
  this.ending = false;
  // when end() has been called, and returned
  this.ended = false;
  // when 'finish' is emitted
  this.finished = false;

  // has it been destroyed
  this.destroyed = false;

  // should we decode strings into buffers before passing to _write?
  // this is here so that some node-core streams can optimize string
  // handling at a lower level.
  var noDecode = options.decodeStrings === false;
  this.decodeStrings = !noDecode;

  // Crypto is kind of old and crusty.  Historically, its default string
  // encoding is 'binary' so we have to make this configurable.
  // Everything else in the universe uses 'utf8', though.
  this.defaultEncoding = options.defaultEncoding || 'utf8';

  // not an actual buffer we keep track of, but a measurement
  // of how much we're waiting to get pushed to some underlying
  // socket or file.
  this.length = 0;

  // a flag to see when we're in the middle of a write.
  this.writing = false;

  // when true all writes will be buffered until .uncork() call
  this.corked = 0;

  // a flag to be able to tell if the onwrite cb is called immediately,
  // or on a later tick.  We set this to true at first, because any
  // actions that shouldn't happen until "later" should generally also
  // not happen before the first write call.
  this.sync = true;

  // a flag to know if we're processing previously buffered items, which
  // may call the _write() callback in the same tick, so that we don't
  // end up in an overlapped onwrite situation.
  this.bufferProcessing = false;

  // the callback that's passed to _write(chunk,cb)
  this.onwrite = function (er) {
    onwrite(stream, er);
  };

  // the callback that the user supplies to write(chunk,encoding,cb)
  this.writecb = null;

  // the amount that is being written when _write is called.
  this.writelen = 0;

  this.bufferedRequest = null;
  this.lastBufferedRequest = null;

  // number of pending user-supplied write callbacks
  // this must be 0 before 'finish' can be emitted
  this.pendingcb = 0;

  // emit prefinish if the only thing we're waiting for is _write cbs
  // This is relevant for synchronous Transform streams
  this.prefinished = false;

  // True if the error was already emitted and should not be thrown again
  this.errorEmitted = false;

  // count buffered requests
  this.bufferedRequestCount = 0;

  // allocate the first CorkedRequest, there is always
  // one allocated and free to use, and we maintain at most two
  this.corkedRequestsFree = new CorkedRequest(this);
}

WritableState.prototype.getBuffer = function getBuffer() {
  var current = this.bufferedRequest;
  var out = [];
  while (current) {
    out.push(current);
    current = current.next;
  }
  return out;
};

(function () {
  try {
    Object.defineProperty(WritableState.prototype, 'buffer', {
      get: internalUtil.deprecate(function () {
        return this.getBuffer();
      }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')
    });
  } catch (_) {}
})();

// Test _writableState for inheritance to account for Duplex streams,
// whose prototype chain only points to Readable.
var realHasInstance;
if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
  realHasInstance = Function.prototype[Symbol.hasInstance];
  Object.defineProperty(Writable, Symbol.hasInstance, {
    value: function (object) {
      if (realHasInstance.call(this, object)) return true;
      if (this !== Writable) return false;

      return object && object._writableState instanceof WritableState;
    }
  });
} else {
  realHasInstance = function (object) {
    return object instanceof this;
  };
}

function Writable(options) {
  Duplex = Duplex || __webpack_require__(53);

  // Writable ctor is applied to Duplexes, too.
  // `realHasInstance` is necessary because using plain `instanceof`
  // would return false, as no `_writableState` property is attached.

  // Trying to use the custom `instanceof` for Writable here will also break the
  // Node.js LazyTransform implementation, which has a non-trivial getter for
  // `_writableState` that would lead to infinite recursion.
  if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {
    return new Writable(options);
  }

  this._writableState = new WritableState(options, this);

  // legacy.
  this.writable = true;

  if (options) {
    if (typeof options.write === 'function') this._write = options.write;

    if (typeof options.writev === 'function') this._writev = options.writev;

    if (typeof options.destroy === 'function') this._destroy = options.destroy;

    if (typeof options.final === 'function') this._final = options.final;
  }

  Stream.call(this);
}

// Otherwise people can pipe Writable streams, which is just wrong.
Writable.prototype.pipe = function () {
  this.emit('error', new Error('Cannot pipe, not readable'));
};

function writeAfterEnd(stream, cb) {
  var er = new Error('write after end');
  // TODO: defer error events consistently everywhere, not just the cb
  stream.emit('error', er);
  pna.nextTick(cb, er);
}

// Checks that a user-supplied chunk is valid, especially for the particular
// mode the stream is in. Currently this means that `null` is never accepted
// and undefined/non-string values are only allowed in object mode.
function validChunk(stream, state, chunk, cb) {
  var valid = true;
  var er = false;

  if (chunk === null) {
    er = new TypeError('May not write null values to stream');
  } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
    er = new TypeError('Invalid non-string/buffer chunk');
  }
  if (er) {
    stream.emit('error', er);
    pna.nextTick(cb, er);
    valid = false;
  }
  return valid;
}

Writable.prototype.write = function (chunk, encoding, cb) {
  var state = this._writableState;
  var ret = false;
  var isBuf = !state.objectMode && _isUint8Array(chunk);

  if (isBuf && !Buffer.isBuffer(chunk)) {
    chunk = _uint8ArrayToBuffer(chunk);
  }

  if (typeof encoding === 'function') {
    cb = encoding;
    encoding = null;
  }

  if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;

  if (typeof cb !== 'function') cb = nop;

  if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {
    state.pendingcb++;
    ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
  }

  return ret;
};

Writable.prototype.cork = function () {
  var state = this._writableState;

  state.corked++;
};

Writable.prototype.uncork = function () {
  var state = this._writableState;

  if (state.corked) {
    state.corked--;

    if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
  }
};

Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
  // node::ParseEncoding() requires lower case.
  if (typeof encoding === 'string') encoding = encoding.toLowerCase();
  if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);
  this._writableState.defaultEncoding = encoding;
  return this;
};

function decodeChunk(state, chunk, encoding) {
  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
    chunk = Buffer.from(chunk, encoding);
  }
  return chunk;
}

Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function () {
    return this._writableState.highWaterMark;
  }
});

// if we're already writing something, then just put this
// in the queue, and wait our turn.  Otherwise, call _write
// If we return false, then we need a drain event, so set that flag.
function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
  if (!isBuf) {
    var newChunk = decodeChunk(state, chunk, encoding);
    if (chunk !== newChunk) {
      isBuf = true;
      encoding = 'buffer';
      chunk = newChunk;
    }
  }
  var len = state.objectMode ? 1 : chunk.length;

  state.length += len;

  var ret = state.length < state.highWaterMark;
  // we must ensure that previous needDrain will not be reset to false.
  if (!ret) state.needDrain = true;

  if (state.writing || state.corked) {
    var last = state.lastBufferedRequest;
    state.lastBufferedRequest = {
      chunk: chunk,
      encoding: encoding,
      isBuf: isBuf,
      callback: cb,
      next: null
    };
    if (last) {
      last.next = state.lastBufferedRequest;
    } else {
      state.bufferedRequest = state.lastBufferedRequest;
    }
    state.bufferedRequestCount += 1;
  } else {
    doWrite(stream, state, false, len, chunk, encoding, cb);
  }

  return ret;
}

function doWrite(stream, state, writev, len, chunk, encoding, cb) {
  state.writelen = len;
  state.writecb = cb;
  state.writing = true;
  state.sync = true;
  if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
  state.sync = false;
}

function onwriteError(stream, state, sync, er, cb) {
  --state.pendingcb;

  if (sync) {
    // defer the callback if we are being called synchronously
    // to avoid piling up things on the stack
    pna.nextTick(cb, er);
    // this can emit finish, and it will always happen
    // after error
    pna.nextTick(finishMaybe, stream, state);
    stream._writableState.errorEmitted = true;
    stream.emit('error', er);
  } else {
    // the caller expect this to happen before if
    // it is async
    cb(er);
    stream._writableState.errorEmitted = true;
    stream.emit('error', er);
    // this can emit finish, but finish must
    // always follow error
    finishMaybe(stream, state);
  }
}

function onwriteStateUpdate(state) {
  state.writing = false;
  state.writecb = null;
  state.length -= state.writelen;
  state.writelen = 0;
}

function onwrite(stream, er) {
  var state = stream._writableState;
  var sync = state.sync;
  var cb = state.writecb;

  onwriteStateUpdate(state);

  if (er) onwriteError(stream, state, sync, er, cb);else {
    // Check if we're actually ready to finish, but don't emit yet
    var finished = needFinish(state);

    if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
      clearBuffer(stream, state);
    }

    if (sync) {
      /*<replacement>*/
      asyncWrite(afterWrite, stream, state, finished, cb);
      /*</replacement>*/
    } else {
      afterWrite(stream, state, finished, cb);
    }
  }
}

function afterWrite(stream, state, finished, cb) {
  if (!finished) onwriteDrain(stream, state);
  state.pendingcb--;
  cb();
  finishMaybe(stream, state);
}

// Must force callback to be called on nextTick, so that we don't
// emit 'drain' before the write() consumer gets the 'false' return
// value, and has a chance to attach a 'drain' listener.
function onwriteDrain(stream, state) {
  if (state.length === 0 && state.needDrain) {
    state.needDrain = false;
    stream.emit('drain');
  }
}

// if there's something in the buffer waiting, then process it
function clearBuffer(stream, state) {
  state.bufferProcessing = true;
  var entry = state.bufferedRequest;

  if (stream._writev && entry && entry.next) {
    // Fast case, write everything using _writev()
    var l = state.bufferedRequestCount;
    var buffer = new Array(l);
    var holder = state.corkedRequestsFree;
    holder.entry = entry;

    var count = 0;
    var allBuffers = true;
    while (entry) {
      buffer[count] = entry;
      if (!entry.isBuf) allBuffers = false;
      entry = entry.next;
      count += 1;
    }
    buffer.allBuffers = allBuffers;

    doWrite(stream, state, true, state.length, buffer, '', holder.finish);

    // doWrite is almost always async, defer these to save a bit of time
    // as the hot path ends with doWrite
    state.pendingcb++;
    state.lastBufferedRequest = null;
    if (holder.next) {
      state.corkedRequestsFree = holder.next;
      holder.next = null;
    } else {
      state.corkedRequestsFree = new CorkedRequest(state);
    }
    state.bufferedRequestCount = 0;
  } else {
    // Slow case, write chunks one-by-one
    while (entry) {
      var chunk = entry.chunk;
      var encoding = entry.encoding;
      var cb = entry.callback;
      var len = state.objectMode ? 1 : chunk.length;

      doWrite(stream, state, false, len, chunk, encoding, cb);
      entry = entry.next;
      state.bufferedRequestCount--;
      // if we didn't call the onwrite immediately, then
      // it means that we need to wait until it does.
      // also, that means that the chunk and cb are currently
      // being processed, so move the buffer counter past them.
      if (state.writing) {
        break;
      }
    }

    if (entry === null) state.lastBufferedRequest = null;
  }

  state.bufferedRequest = entry;
  state.bufferProcessing = false;
}

Writable.prototype._write = function (chunk, encoding, cb) {
  cb(new Error('_write() is not implemented'));
};

Writable.prototype._writev = null;

Writable.prototype.end = function (chunk, encoding, cb) {
  var state = this._writableState;

  if (typeof chunk === 'function') {
    cb = chunk;
    chunk = null;
    encoding = null;
  } else if (typeof encoding === 'function') {
    cb = encoding;
    encoding = null;
  }

  if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);

  // .end() fully uncorks
  if (state.corked) {
    state.corked = 1;
    this.uncork();
  }

  // ignore unnecessary end() calls.
  if (!state.ending && !state.finished) endWritable(this, state, cb);
};

function needFinish(state) {
  return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
}
function callFinal(stream, state) {
  stream._final(function (err) {
    state.pendingcb--;
    if (err) {
      stream.emit('error', err);
    }
    state.prefinished = true;
    stream.emit('prefinish');
    finishMaybe(stream, state);
  });
}
function prefinish(stream, state) {
  if (!state.prefinished && !state.finalCalled) {
    if (typeof stream._final === 'function') {
      state.pendingcb++;
      state.finalCalled = true;
      pna.nextTick(callFinal, stream, state);
    } else {
      state.prefinished = true;
      stream.emit('prefinish');
    }
  }
}

function finishMaybe(stream, state) {
  var need = needFinish(state);
  if (need) {
    prefinish(stream, state);
    if (state.pendingcb === 0) {
      state.finished = true;
      stream.emit('finish');
    }
  }
  return need;
}

function endWritable(stream, state, cb) {
  state.ending = true;
  finishMaybe(stream, state);
  if (cb) {
    if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);
  }
  state.ended = true;
  stream.writable = false;
}

function onCorkedFinish(corkReq, state, err) {
  var entry = corkReq.entry;
  corkReq.entry = null;
  while (entry) {
    var cb = entry.callback;
    state.pendingcb--;
    cb(err);
    entry = entry.next;
  }
  if (state.corkedRequestsFree) {
    state.corkedRequestsFree.next = corkReq;
  } else {
    state.corkedRequestsFree = corkReq;
  }
}

Object.defineProperty(Writable.prototype, 'destroyed', {
  get: function () {
    if (this._writableState === undefined) {
      return false;
    }
    return this._writableState.destroyed;
  },
  set: function (value) {
    // we ignore the value if the stream
    // has not been initialized yet
    if (!this._writableState) {
      return;
    }

    // backward compatibility, the user is explicitly
    // managing destroyed
    this._writableState.destroyed = value;
  }
});

Writable.prototype.destroy = destroyImpl.destroy;
Writable.prototype._undestroy = destroyImpl.undestroy;
Writable.prototype._destroy = function (err, cb) {
  this.end();
  cb(err);
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30), __webpack_require__(422).setImmediate, __webpack_require__(15)))

/***/ }),
/* 120 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.



/*<replacement>*/

var Buffer = __webpack_require__(6).Buffer;
/*</replacement>*/

var isEncoding = Buffer.isEncoding || function (encoding) {
  encoding = '' + encoding;
  switch (encoding && encoding.toLowerCase()) {
    case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
      return true;
    default:
      return false;
  }
};

function _normalizeEncoding(enc) {
  if (!enc) return 'utf8';
  var retried;
  while (true) {
    switch (enc) {
      case 'utf8':
      case 'utf-8':
        return 'utf8';
      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return 'utf16le';
      case 'latin1':
      case 'binary':
        return 'latin1';
      case 'base64':
      case 'ascii':
      case 'hex':
        return enc;
      default:
        if (retried) return; // undefined
        enc = ('' + enc).toLowerCase();
        retried = true;
    }
  }
};

// Do not cache `Buffer.isEncoding` when checking encoding names as some
// modules monkey-patch it to support additional encodings
function normalizeEncoding(enc) {
  var nenc = _normalizeEncoding(enc);
  if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
  return nenc || enc;
}

// StringDecoder provides an interface for efficiently splitting a series of
// buffers into a series of JS strings without breaking apart multi-byte
// characters.
exports.StringDecoder = StringDecoder;
function StringDecoder(encoding) {
  this.encoding = normalizeEncoding(encoding);
  var nb;
  switch (this.encoding) {
    case 'utf16le':
      this.text = utf16Text;
      this.end = utf16End;
      nb = 4;
      break;
    case 'utf8':
      this.fillLast = utf8FillLast;
      nb = 4;
      break;
    case 'base64':
      this.text = base64Text;
      this.end = base64End;
      nb = 3;
      break;
    default:
      this.write = simpleWrite;
      this.end = simpleEnd;
      return;
  }
  this.lastNeed = 0;
  this.lastTotal = 0;
  this.lastChar = Buffer.allocUnsafe(nb);
}

StringDecoder.prototype.write = function (buf) {
  if (buf.length === 0) return '';
  var r;
  var i;
  if (this.lastNeed) {
    r = this.fillLast(buf);
    if (r === undefined) return '';
    i = this.lastNeed;
    this.lastNeed = 0;
  } else {
    i = 0;
  }
  if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
  return r || '';
};

StringDecoder.prototype.end = utf8End;

// Returns only complete characters in a Buffer
StringDecoder.prototype.text = utf8Text;

// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
StringDecoder.prototype.fillLast = function (buf) {
  if (this.lastNeed <= buf.length) {
    buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
  }
  buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
  this.lastNeed -= buf.length;
};

// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
// continuation byte. If an invalid byte is detected, -2 is returned.
function utf8CheckByte(byte) {
  if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
  return byte >> 6 === 0x02 ? -1 : -2;
}

// Checks at most 3 bytes at the end of a Buffer in order to detect an
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
// needed to complete the UTF-8 character (if applicable) are returned.
function utf8CheckIncomplete(self, buf, i) {
  var j = buf.length - 1;
  if (j < i) return 0;
  var nb = utf8CheckByte(buf[j]);
  if (nb >= 0) {
    if (nb > 0) self.lastNeed = nb - 1;
    return nb;
  }
  if (--j < i || nb === -2) return 0;
  nb = utf8CheckByte(buf[j]);
  if (nb >= 0) {
    if (nb > 0) self.lastNeed = nb - 2;
    return nb;
  }
  if (--j < i || nb === -2) return 0;
  nb = utf8CheckByte(buf[j]);
  if (nb >= 0) {
    if (nb > 0) {
      if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
    }
    return nb;
  }
  return 0;
}

// Validates as many continuation bytes for a multi-byte UTF-8 character as
// needed or are available. If we see a non-continuation byte where we expect
// one, we "replace" the validated continuation bytes we've seen so far with
// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
// behavior. The continuation byte check is included three times in the case
// where all of the continuation bytes for a character exist in the same buffer.
// It is also done this way as a slight performance increase instead of using a
// loop.
function utf8CheckExtraBytes(self, buf, p) {
  if ((buf[0] & 0xC0) !== 0x80) {
    self.lastNeed = 0;
    return '\ufffd';
  }
  if (self.lastNeed > 1 && buf.length > 1) {
    if ((buf[1] & 0xC0) !== 0x80) {
      self.lastNeed = 1;
      return '\ufffd';
    }
    if (self.lastNeed > 2 && buf.length > 2) {
      if ((buf[2] & 0xC0) !== 0x80) {
        self.lastNeed = 2;
        return '\ufffd';
      }
    }
  }
}

// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
function utf8FillLast(buf) {
  var p = this.lastTotal - this.lastNeed;
  var r = utf8CheckExtraBytes(this, buf, p);
  if (r !== undefined) return r;
  if (this.lastNeed <= buf.length) {
    buf.copy(this.lastChar, p, 0, this.lastNeed);
    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
  }
  buf.copy(this.lastChar, p, 0, buf.length);
  this.lastNeed -= buf.length;
}

// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
// partial character, the character's bytes are buffered until the required
// number of bytes are available.
function utf8Text(buf, i) {
  var total = utf8CheckIncomplete(this, buf, i);
  if (!this.lastNeed) return buf.toString('utf8', i);
  this.lastTotal = total;
  var end = buf.length - (total - this.lastNeed);
  buf.copy(this.lastChar, 0, end);
  return buf.toString('utf8', i, end);
}

// For UTF-8, a replacement character is added when ending on a partial
// character.
function utf8End(buf) {
  var r = buf && buf.length ? this.write(buf) : '';
  if (this.lastNeed) return r + '\ufffd';
  return r;
}

// UTF-16LE typically needs two bytes per character, but even if we have an even
// number of bytes available, we need to check if we end on a leading/high
// surrogate. In that case, we need to wait for the next two bytes in order to
// decode the last character properly.
function utf16Text(buf, i) {
  if ((buf.length - i) % 2 === 0) {
    var r = buf.toString('utf16le', i);
    if (r) {
      var c = r.charCodeAt(r.length - 1);
      if (c >= 0xD800 && c <= 0xDBFF) {
        this.lastNeed = 2;
        this.lastTotal = 4;
        this.lastChar[0] = buf[buf.length - 2];
        this.lastChar[1] = buf[buf.length - 1];
        return r.slice(0, -1);
      }
    }
    return r;
  }
  this.lastNeed = 1;
  this.lastTotal = 2;
  this.lastChar[0] = buf[buf.length - 1];
  return buf.toString('utf16le', i, buf.length - 1);
}

// For UTF-16LE we do not explicitly append special replacement characters if we
// end on a partial character, we simply let v8 handle that.
function utf16End(buf) {
  var r = buf && buf.length ? this.write(buf) : '';
  if (this.lastNeed) {
    var end = this.lastTotal - this.lastNeed;
    return r + this.lastChar.toString('utf16le', 0, end);
  }
  return r;
}

function base64Text(buf, i) {
  var n = (buf.length - i) % 3;
  if (n === 0) return buf.toString('base64', i);
  this.lastNeed = 3 - n;
  this.lastTotal = 3;
  if (n === 1) {
    this.lastChar[0] = buf[buf.length - 1];
  } else {
    this.lastChar[0] = buf[buf.length - 2];
    this.lastChar[1] = buf[buf.length - 1];
  }
  return buf.toString('base64', i, buf.length - n);
}

function base64End(buf) {
  var r = buf && buf.length ? this.write(buf) : '';
  if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
  return r;
}

// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
function simpleWrite(buf) {
  return buf.toString(this.encoding);
}

function simpleEnd(buf) {
  return buf && buf.length ? this.write(buf) : '';
}

/***/ }),
/* 121 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var Buffer = __webpack_require__(8).Buffer
var inherits = __webpack_require__(1)
var HashBase = __webpack_require__(165)

var ARRAY16 = new Array(16)

var zl = [
  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
  7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
  3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
  1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
  4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
]

var zr = [
  5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
  6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
  15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
  8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
  12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
]

var sl = [
  11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
  7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
  11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
  11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
  9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
]

var sr = [
  8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
  9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
  9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
  15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
  8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
]

var hl = [0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e]
var hr = [0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000]

function RIPEMD160 () {
  HashBase.call(this, 64)

  // state
  this._a = 0x67452301
  this._b = 0xefcdab89
  this._c = 0x98badcfe
  this._d = 0x10325476
  this._e = 0xc3d2e1f0
}

inherits(RIPEMD160, HashBase)

RIPEMD160.prototype._update = function () {
  var words = ARRAY16
  for (var j = 0; j < 16; ++j) words[j] = this._block.readInt32LE(j * 4)

  var al = this._a | 0
  var bl = this._b | 0
  var cl = this._c | 0
  var dl = this._d | 0
  var el = this._e | 0

  var ar = this._a | 0
  var br = this._b | 0
  var cr = this._c | 0
  var dr = this._d | 0
  var er = this._e | 0

  // computation
  for (var i = 0; i < 80; i += 1) {
    var tl
    var tr
    if (i < 16) {
      tl = fn1(al, bl, cl, dl, el, words[zl[i]], hl[0], sl[i])
      tr = fn5(ar, br, cr, dr, er, words[zr[i]], hr[0], sr[i])
    } else if (i < 32) {
      tl = fn2(al, bl, cl, dl, el, words[zl[i]], hl[1], sl[i])
      tr = fn4(ar, br, cr, dr, er, words[zr[i]], hr[1], sr[i])
    } else if (i < 48) {
      tl = fn3(al, bl, cl, dl, el, words[zl[i]], hl[2], sl[i])
      tr = fn3(ar, br, cr, dr, er, words[zr[i]], hr[2], sr[i])
    } else if (i < 64) {
      tl = fn4(al, bl, cl, dl, el, words[zl[i]], hl[3], sl[i])
      tr = fn2(ar, br, cr, dr, er, words[zr[i]], hr[3], sr[i])
    } else { // if (i<80) {
      tl = fn5(al, bl, cl, dl, el, words[zl[i]], hl[4], sl[i])
      tr = fn1(ar, br, cr, dr, er, words[zr[i]], hr[4], sr[i])
    }

    al = el
    el = dl
    dl = rotl(cl, 10)
    cl = bl
    bl = tl

    ar = er
    er = dr
    dr = rotl(cr, 10)
    cr = br
    br = tr
  }

  // update state
  var t = (this._b + cl + dr) | 0
  this._b = (this._c + dl + er) | 0
  this._c = (this._d + el + ar) | 0
  this._d = (this._e + al + br) | 0
  this._e = (this._a + bl + cr) | 0
  this._a = t
}

RIPEMD160.prototype._digest = function () {
  // create padding and handle blocks
  this._block[this._blockOffset++] = 0x80
  if (this._blockOffset > 56) {
    this._block.fill(0, this._blockOffset, 64)
    this._update()
    this._blockOffset = 0
  }

  this._block.fill(0, this._blockOffset, 56)
  this._block.writeUInt32LE(this._length[0], 56)
  this._block.writeUInt32LE(this._length[1], 60)
  this._update()

  // produce result
  var buffer = Buffer.alloc ? Buffer.alloc(20) : new Buffer(20)
  buffer.writeInt32LE(this._a, 0)
  buffer.writeInt32LE(this._b, 4)
  buffer.writeInt32LE(this._c, 8)
  buffer.writeInt32LE(this._d, 12)
  buffer.writeInt32LE(this._e, 16)
  return buffer
}

function rotl (x, n) {
  return (x << n) | (x >>> (32 - n))
}

function fn1 (a, b, c, d, e, m, k, s) {
  return (rotl((a + (b ^ c ^ d) + m + k) | 0, s) + e) | 0
}

function fn2 (a, b, c, d, e, m, k, s) {
  return (rotl((a + ((b & c) | ((~b) & d)) + m + k) | 0, s) + e) | 0
}

function fn3 (a, b, c, d, e, m, k, s) {
  return (rotl((a + ((b | (~c)) ^ d) + m + k) | 0, s) + e) | 0
}

function fn4 (a, b, c, d, e, m, k, s) {
  return (rotl((a + ((b & d) | (c & (~d))) + m + k) | 0, s) + e) | 0
}

function fn5 (a, b, c, d, e, m, k, s) {
  return (rotl((a + (b ^ (c | (~d))) + m + k) | 0, s) + e) | 0
}

module.exports = RIPEMD160


/***/ }),
/* 122 */
/***/ (function(module, exports, __webpack_require__) {

var exports = module.exports = function SHA (algorithm) {
  algorithm = algorithm.toLowerCase()

  var Algorithm = exports[algorithm]
  if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)')

  return new Algorithm()
}

exports.sha = __webpack_require__(430)
exports.sha1 = __webpack_require__(431)
exports.sha224 = __webpack_require__(432)
exports.sha256 = __webpack_require__(170)
exports.sha384 = __webpack_require__(433)
exports.sha512 = __webpack_require__(171)


/***/ }),
/* 123 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.utils = __webpack_require__(439);
exports.Cipher = __webpack_require__(440);
exports.DES = __webpack_require__(441);
exports.CBC = __webpack_require__(442);
exports.EDE = __webpack_require__(443);


/***/ }),
/* 124 */
/***/ (function(module, exports, __webpack_require__) {

var ciphers = __webpack_require__(444)
var deciphers = __webpack_require__(452)
var modes = __webpack_require__(181)

function getCiphers () {
  return Object.keys(modes)
}

exports.createCipher = exports.Cipher = ciphers.createCipher
exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
exports.createDecipher = exports.Decipher = deciphers.createDecipher
exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
exports.listCiphers = exports.getCiphers = getCiphers


/***/ }),
/* 125 */
/***/ (function(module, exports, __webpack_require__) {

var modeModules = {
  ECB: __webpack_require__(445),
  CBC: __webpack_require__(446),
  CFB: __webpack_require__(447),
  CFB8: __webpack_require__(448),
  CFB1: __webpack_require__(449),
  OFB: __webpack_require__(450),
  CTR: __webpack_require__(179),
  GCM: __webpack_require__(179)
}

var modes = __webpack_require__(181)

for (var key in modes) {
  modes[key].module = modeModules[modes[key].mode]
}

module.exports = modes


/***/ }),
/* 126 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var bn = __webpack_require__(12);
var randomBytes = __webpack_require__(58);
module.exports = crt;
function blind(priv) {
  var r = getr(priv);
  var blinder = r.toRed(bn.mont(priv.modulus))
  .redPow(new bn(priv.publicExponent)).fromRed();
  return {
    blinder: blinder,
    unblinder:r.invm(priv.modulus)
  };
}
function crt(msg, priv) {
  var blinds = blind(priv);
  var len = priv.modulus.byteLength();
  var mod = bn.mont(priv.modulus);
  var blinded = new bn(msg).mul(blinds.blinder).umod(priv.modulus);
  var c1 = blinded.toRed(bn.mont(priv.prime1));
  var c2 = blinded.toRed(bn.mont(priv.prime2));
  var qinv = priv.coefficient;
  var p = priv.prime1;
  var q = priv.prime2;
  var m1 = c1.redPow(priv.exponent1);
  var m2 = c2.redPow(priv.exponent2);
  m1 = m1.fromRed();
  m2 = m2.fromRed();
  var h = m1.isub(m2).imul(qinv).umod(p);
  h.imul(q);
  m2.iadd(h);
  return new Buffer(m2.imul(blinds.unblinder).umod(priv.modulus).toArray(false, len));
}
crt.getr = getr;
function getr(priv) {
  var len = priv.modulus.byteLength();
  var r = new bn(randomBytes(len));
  while (r.cmp(priv.modulus) >=  0 || !r.umod(priv.prime1) || !r.umod(priv.prime2)) {
    r = new bn(randomBytes(len));
  }
  return r;
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 127 */
/***/ (function(module, exports, __webpack_require__) {

var hash = exports;

hash.utils = __webpack_require__(36);
hash.common = __webpack_require__(67);
hash.sha = __webpack_require__(468);
hash.ripemd = __webpack_require__(472);
hash.hmac = __webpack_require__(473);

// Proxy hash functions to the main object
hash.sha1 = hash.sha.sha1;
hash.sha256 = hash.sha.sha256;
hash.sha224 = hash.sha.sha224;
hash.sha384 = hash.sha.sha384;
hash.sha512 = hash.sha.sha512;
hash.ripemd160 = hash.ripemd.ripemd160;


/***/ }),
/* 128 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = !__webpack_require__(9) && !__webpack_require__(4)(function () {
  return Object.defineProperty(__webpack_require__(90)('div'), 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),
/* 129 */
/***/ (function(module, exports, __webpack_require__) {

exports.f = __webpack_require__(7);


/***/ }),
/* 130 */
/***/ (function(module, exports, __webpack_require__) {

var has = __webpack_require__(20);
var toIObject = __webpack_require__(21);
var arrayIndexOf = __webpack_require__(71)(false);
var IE_PROTO = __webpack_require__(92)('IE_PROTO');

module.exports = function (object, names) {
  var O = toIObject(object);
  var i = 0;
  var result = [];
  var key;
  for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  // Don't enum bug & hidden keys
  while (names.length > i) if (has(O, key = names[i++])) {
    ~arrayIndexOf(result, key) || result.push(key);
  }
  return result;
};


/***/ }),
/* 131 */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(10);
var anObject = __webpack_require__(2);
var getKeys = __webpack_require__(45);

module.exports = __webpack_require__(9) ? Object.defineProperties : function defineProperties(O, Properties) {
  anObject(O);
  var keys = getKeys(Properties);
  var length = keys.length;
  var i = 0;
  var P;
  while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  return O;
};


/***/ }),
/* 132 */
/***/ (function(module, exports, __webpack_require__) {

// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = __webpack_require__(21);
var gOPN = __webpack_require__(48).f;
var toString = {}.toString;

var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  ? Object.getOwnPropertyNames(window) : [];

var getWindowNames = function (it) {
  try {
    return gOPN(it);
  } catch (e) {
    return windowNames.slice();
  }
};

module.exports.f = function getOwnPropertyNames(it) {
  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
};


/***/ }),
/* 133 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = __webpack_require__(45);
var gOPS = __webpack_require__(72);
var pIE = __webpack_require__(61);
var toObject = __webpack_require__(13);
var IObject = __webpack_require__(60);
var $assign = Object.assign;

// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(4)(function () {
  var A = {};
  var B = {};
  // eslint-disable-next-line no-undef
  var S = Symbol();
  var K = 'abcdefghijklmnopqrst';
  A[S] = 7;
  K.split('').forEach(function (k) { B[k] = k; });
  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  var T = toObject(target);
  var aLen = arguments.length;
  var index = 1;
  var getSymbols = gOPS.f;
  var isEnum = pIE.f;
  while (aLen > index) {
    var S = IObject(arguments[index++]);
    var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
    var length = keys.length;
    var j = 0;
    var key;
    while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
  } return T;
} : $assign;


/***/ }),
/* 134 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var aFunction = __webpack_require__(14);
var isObject = __webpack_require__(5);
var invoke = __webpack_require__(135);
var arraySlice = [].slice;
var factories = {};

var construct = function (F, len, args) {
  if (!(len in factories)) {
    for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
    // eslint-disable-next-line no-new-func
    factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
  } return factories[len](F, args);
};

module.exports = Function.bind || function bind(that /* , ...args */) {
  var fn = aFunction(this);
  var partArgs = arraySlice.call(arguments, 1);
  var bound = function (/* args... */) {
    var args = partArgs.concat(arraySlice.call(arguments));
    return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
  };
  if (isObject(fn.prototype)) bound.prototype = fn.prototype;
  return bound;
};


/***/ }),
/* 135 */
/***/ (function(module, exports) {

// fast apply, http://jsperf.lnkit.com/fast-apply/5
module.exports = function (fn, args, that) {
  var un = that === undefined;
  switch (args.length) {
    case 0: return un ? fn()
                      : fn.call(that);
    case 1: return un ? fn(args[0])
                      : fn.call(that, args[0]);
    case 2: return un ? fn(args[0], args[1])
                      : fn.call(that, args[0], args[1]);
    case 3: return un ? fn(args[0], args[1], args[2])
                      : fn.call(that, args[0], args[1], args[2]);
    case 4: return un ? fn(args[0], args[1], args[2], args[3])
                      : fn.call(that, args[0], args[1], args[2], args[3]);
  } return fn.apply(that, args);
};


/***/ }),
/* 136 */
/***/ (function(module, exports, __webpack_require__) {

var $parseInt = __webpack_require__(3).parseInt;
var $trim = __webpack_require__(55).trim;
var ws = __webpack_require__(96);
var hex = /^[-+]?0[xX]/;

module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
  var string = $trim(String(str), 3);
  return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
} : $parseInt;


/***/ }),
/* 137 */
/***/ (function(module, exports, __webpack_require__) {

var $parseFloat = __webpack_require__(3).parseFloat;
var $trim = __webpack_require__(55).trim;

module.exports = 1 / $parseFloat(__webpack_require__(96) + '-0') !== -Infinity ? function parseFloat(str) {
  var string = $trim(String(str), 3);
  var result = $parseFloat(string);
  return result === 0 && string.charAt(0) == '-' ? -0 : result;
} : $parseFloat;


/***/ }),
/* 138 */
/***/ (function(module, exports, __webpack_require__) {

var cof = __webpack_require__(28);
module.exports = function (it, msg) {
  if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg);
  return +it;
};


/***/ }),
/* 139 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.3 Number.isInteger(number)
var isObject = __webpack_require__(5);
var floor = Math.floor;
module.exports = function isInteger(it) {
  return !isObject(it) && isFinite(it) && floor(it) === it;
};


/***/ }),
/* 140 */
/***/ (function(module, exports) {

// 20.2.2.20 Math.log1p(x)
module.exports = Math.log1p || function log1p(x) {
  return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
};


/***/ }),
/* 141 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.16 Math.fround(x)
var sign = __webpack_require__(99);
var pow = Math.pow;
var EPSILON = pow(2, -52);
var EPSILON32 = pow(2, -23);
var MAX32 = pow(2, 127) * (2 - EPSILON32);
var MIN32 = pow(2, -126);

var roundTiesToEven = function (n) {
  return n + 1 / EPSILON - 1 / EPSILON;
};

module.exports = Math.fround || function fround(x) {
  var $abs = Math.abs(x);
  var $sign = sign(x);
  var a, result;
  if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
  a = (1 + EPSILON32 / EPSILON) * $abs;
  result = a - (a - $abs);
  // eslint-disable-next-line no-self-compare
  if (result > MAX32 || result != result) return $sign * Infinity;
  return $sign * result;
};


/***/ }),
/* 142 */
/***/ (function(module, exports, __webpack_require__) {

// call something on iterator step with safe closing on error
var anObject = __webpack_require__(2);
module.exports = function (iterator, fn, value, entries) {
  try {
    return entries ? fn(anObject(value)[0], value[1]) : fn(value);
  // 7.4.6 IteratorClose(iterator, completion)
  } catch (e) {
    var ret = iterator['return'];
    if (ret !== undefined) anObject(ret.call(iterator));
    throw e;
  }
};


/***/ }),
/* 143 */
/***/ (function(module, exports, __webpack_require__) {

var aFunction = __webpack_require__(14);
var toObject = __webpack_require__(13);
var IObject = __webpack_require__(60);
var toLength = __webpack_require__(11);

module.exports = function (that, callbackfn, aLen, memo, isRight) {
  aFunction(callbackfn);
  var O = toObject(that);
  var self = IObject(O);
  var length = toLength(O.length);
  var index = isRight ? length - 1 : 0;
  var i = isRight ? -1 : 1;
  if (aLen < 2) for (;;) {
    if (index in self) {
      memo = self[index];
      index += i;
      break;
    }
    index += i;
    if (isRight ? index < 0 : length <= index) {
      throw TypeError('Reduce of empty array with no initial value');
    }
  }
  for (;isRight ? index >= 0 : length > index; index += i) if (index in self) {
    memo = callbackfn(memo, self[index], index, O);
  }
  return memo;
};


/***/ }),
/* 144 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)

var toObject = __webpack_require__(13);
var toAbsoluteIndex = __webpack_require__(46);
var toLength = __webpack_require__(11);

module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
  var O = toObject(this);
  var len = toLength(O.length);
  var to = toAbsoluteIndex(target, len);
  var from = toAbsoluteIndex(start, len);
  var end = arguments.length > 2 ? arguments[2] : undefined;
  var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
  var inc = 1;
  if (from < to && to < from + count) {
    inc = -1;
    from += count - 1;
    to += count - 1;
  }
  while (count-- > 0) {
    if (from in O) O[to] = O[from];
    else delete O[to];
    to += inc;
    from += inc;
  } return O;
};


/***/ }),
/* 145 */
/***/ (function(module, exports) {

module.exports = function (done, value) {
  return { value: value, done: !!done };
};


/***/ }),
/* 146 */
/***/ (function(module, exports, __webpack_require__) {

// 21.2.5.3 get RegExp.prototype.flags()
if (__webpack_require__(9) && /./g.flags != 'g') __webpack_require__(10).f(RegExp.prototype, 'flags', {
  configurable: true,
  get: __webpack_require__(76)
});


/***/ }),
/* 147 */
/***/ (function(module, exports) {

module.exports = function (exec) {
  try {
    return { e: false, v: exec() };
  } catch (e) {
    return { e: true, v: e };
  }
};


/***/ }),
/* 148 */
/***/ (function(module, exports, __webpack_require__) {

var anObject = __webpack_require__(2);
var isObject = __webpack_require__(5);
var newPromiseCapability = __webpack_require__(114);

module.exports = function (C, x) {
  anObject(C);
  if (isObject(x) && x.constructor === C) return x;
  var promiseCapability = newPromiseCapability.f(C);
  var resolve = promiseCapability.resolve;
  resolve(x);
  return promiseCapability.promise;
};


/***/ }),
/* 149 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var strong = __webpack_require__(150);
var validate = __webpack_require__(57);
var MAP = 'Map';

// 23.1 Map Objects
module.exports = __webpack_require__(80)(MAP, function (get) {
  return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
  // 23.1.3.6 Map.prototype.get(key)
  get: function get(key) {
    var entry = strong.getEntry(validate(this, MAP), key);
    return entry && entry.v;
  },
  // 23.1.3.9 Map.prototype.set(key, value)
  set: function set(key, value) {
    return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
  }
}, strong, true);


/***/ }),
/* 150 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var dP = __webpack_require__(10).f;
var create = __webpack_require__(47);
var redefineAll = __webpack_require__(52);
var ctx = __webpack_require__(27);
var anInstance = __webpack_require__(50);
var forOf = __webpack_require__(51);
var $iterDefine = __webpack_require__(102);
var step = __webpack_require__(145);
var setSpecies = __webpack_require__(49);
var DESCRIPTORS = __webpack_require__(9);
var fastKey = __webpack_require__(39).fastKey;
var validate = __webpack_require__(57);
var SIZE = DESCRIPTORS ? '_s' : 'size';

var getEntry = function (that, key) {
  // fast case
  var index = fastKey(key);
  var entry;
  if (index !== 'F') return that._i[index];
  // frozen object case
  for (entry = that._f; entry; entry = entry.n) {
    if (entry.k == key) return entry;
  }
};

module.exports = {
  getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
    var C = wrapper(function (that, iterable) {
      anInstance(that, C, NAME, '_i');
      that._t = NAME;         // collection type
      that._i = create(null); // index
      that._f = undefined;    // first entry
      that._l = undefined;    // last entry
      that[SIZE] = 0;         // size
      if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
    });
    redefineAll(C.prototype, {
      // 23.1.3.1 Map.prototype.clear()
      // 23.2.3.2 Set.prototype.clear()
      clear: function clear() {
        for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
          entry.r = true;
          if (entry.p) entry.p = entry.p.n = undefined;
          delete data[entry.i];
        }
        that._f = that._l = undefined;
        that[SIZE] = 0;
      },
      // 23.1.3.3 Map.prototype.delete(key)
      // 23.2.3.4 Set.prototype.delete(value)
      'delete': function (key) {
        var that = validate(this, NAME);
        var entry = getEntry(that, key);
        if (entry) {
          var next = entry.n;
          var prev = entry.p;
          delete that._i[entry.i];
          entry.r = true;
          if (prev) prev.n = next;
          if (next) next.p = prev;
          if (that._f == entry) that._f = next;
          if (that._l == entry) that._l = prev;
          that[SIZE]--;
        } return !!entry;
      },
      // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
      // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
      forEach: function forEach(callbackfn /* , that = undefined */) {
        validate(this, NAME);
        var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
        var entry;
        while (entry = entry ? entry.n : this._f) {
          f(entry.v, entry.k, this);
          // revert to the last existing entry
          while (entry && entry.r) entry = entry.p;
        }
      },
      // 23.1.3.7 Map.prototype.has(key)
      // 23.2.3.7 Set.prototype.has(value)
      has: function has(key) {
        return !!getEntry(validate(this, NAME), key);
      }
    });
    if (DESCRIPTORS) dP(C.prototype, 'size', {
      get: function () {
        return validate(this, NAME)[SIZE];
      }
    });
    return C;
  },
  def: function (that, key, value) {
    var entry = getEntry(that, key);
    var prev, index;
    // change existing entry
    if (entry) {
      entry.v = value;
    // create new entry
    } else {
      that._l = entry = {
        i: index = fastKey(key, true), // <- index
        k: key,                        // <- key
        v: value,                      // <- value
        p: prev = that._l,             // <- previous entry
        n: undefined,                  // <- next entry
        r: false                       // <- removed
      };
      if (!that._f) that._f = entry;
      if (prev) prev.n = entry;
      that[SIZE]++;
      // add to index
      if (index !== 'F') that._i[index] = entry;
    } return that;
  },
  getEntry: getEntry,
  setStrong: function (C, NAME, IS_MAP) {
    // add .keys, .values, .entries, [@@iterator]
    // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
    $iterDefine(C, NAME, function (iterated, kind) {
      this._t = validate(iterated, NAME); // target
      this._k = kind;                     // kind
      this._l = undefined;                // previous
    }, function () {
      var that = this;
      var kind = that._k;
      var entry = that._l;
      // revert to the last existing entry
      while (entry && entry.r) entry = entry.p;
      // get next entry
      if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
        // or finish the iteration
        that._t = undefined;
        return step(1);
      }
      // return step by kind
      if (kind == 'keys') return step(0, entry.k);
      if (kind == 'values') return step(0, entry.v);
      return step(0, [entry.k, entry.v]);
    }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);

    // add [@@species], 23.1.2.2, 23.2.2.2
    setSpecies(NAME);
  }
};


/***/ }),
/* 151 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var strong = __webpack_require__(150);
var validate = __webpack_require__(57);
var SET = 'Set';

// 23.2 Set Objects
module.exports = __webpack_require__(80)(SET, function (get) {
  return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
  // 23.2.3.1 Set.prototype.add(value)
  add: function add(value) {
    return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);
  }
}, strong);


/***/ }),
/* 152 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var each = __webpack_require__(35)(0);
var redefine = __webpack_require__(18);
var meta = __webpack_require__(39);
var assign = __webpack_require__(133);
var weak = __webpack_require__(153);
var isObject = __webpack_require__(5);
var fails = __webpack_require__(4);
var validate = __webpack_require__(57);
var WEAK_MAP = 'WeakMap';
var getWeak = meta.getWeak;
var isExtensible = Object.isExtensible;
var uncaughtFrozenStore = weak.ufstore;
var tmp = {};
var InternalMap;

var wrapper = function (get) {
  return function WeakMap() {
    return get(this, arguments.length > 0 ? arguments[0] : undefined);
  };
};

var methods = {
  // 23.3.3.3 WeakMap.prototype.get(key)
  get: function get(key) {
    if (isObject(key)) {
      var data = getWeak(key);
      if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
      return data ? data[this._i] : undefined;
    }
  },
  // 23.3.3.5 WeakMap.prototype.set(key, value)
  set: function set(key, value) {
    return weak.def(validate(this, WEAK_MAP), key, value);
  }
};

// 23.3 WeakMap Objects
var $WeakMap = module.exports = __webpack_require__(80)(WEAK_MAP, wrapper, methods, weak, true, true);

// IE11 WeakMap frozen keys fix
if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
  InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
  assign(InternalMap.prototype, methods);
  meta.NEED = true;
  each(['delete', 'has', 'get', 'set'], function (key) {
    var proto = $WeakMap.prototype;
    var method = proto[key];
    redefine(proto, key, function (a, b) {
      // store frozen objects on internal weakmap shim
      if (isObject(a) && !isExtensible(a)) {
        if (!this._f) this._f = new InternalMap();
        var result = this._f[key](a, b);
        return key == 'set' ? this : result;
      // store all the rest on native weakmap
      } return method.call(this, a, b);
    });
  });
}


/***/ }),
/* 153 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var redefineAll = __webpack_require__(52);
var getWeak = __webpack_require__(39).getWeak;
var anObject = __webpack_require__(2);
var isObject = __webpack_require__(5);
var anInstance = __webpack_require__(50);
var forOf = __webpack_require__(51);
var createArrayMethod = __webpack_require__(35);
var $has = __webpack_require__(20);
var validate = __webpack_require__(57);
var arrayFind = createArrayMethod(5);
var arrayFindIndex = createArrayMethod(6);
var id = 0;

// fallback for uncaught frozen keys
var uncaughtFrozenStore = function (that) {
  return that._l || (that._l = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function () {
  this.a = [];
};
var findUncaughtFrozen = function (store, key) {
  return arrayFind(store.a, function (it) {
    return it[0] === key;
  });
};
UncaughtFrozenStore.prototype = {
  get: function (key) {
    var entry = findUncaughtFrozen(this, key);
    if (entry) return entry[1];
  },
  has: function (key) {
    return !!findUncaughtFrozen(this, key);
  },
  set: function (key, value) {
    var entry = findUncaughtFrozen(this, key);
    if (entry) entry[1] = value;
    else this.a.push([key, value]);
  },
  'delete': function (key) {
    var index = arrayFindIndex(this.a, function (it) {
      return it[0] === key;
    });
    if (~index) this.a.splice(index, 1);
    return !!~index;
  }
};

module.exports = {
  getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
    var C = wrapper(function (that, iterable) {
      anInstance(that, C, NAME, '_i');
      that._t = NAME;      // collection type
      that._i = id++;      // collection id
      that._l = undefined; // leak store for uncaught frozen objects
      if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
    });
    redefineAll(C.prototype, {
      // 23.3.3.2 WeakMap.prototype.delete(key)
      // 23.4.3.3 WeakSet.prototype.delete(value)
      'delete': function (key) {
        if (!isObject(key)) return false;
        var data = getWeak(key);
        if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
        return data && $has(data, this._i) && delete data[this._i];
      },
      // 23.3.3.4 WeakMap.prototype.has(key)
      // 23.4.3.4 WeakSet.prototype.has(value)
      has: function has(key) {
        if (!isObject(key)) return false;
        var data = getWeak(key);
        if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
        return data && $has(data, this._i);
      }
    });
    return C;
  },
  def: function (that, key, value) {
    var data = getWeak(anObject(key), true);
    if (data === true) uncaughtFrozenStore(that).set(key, value);
    else data[that._i] = value;
    return that;
  },
  ufstore: uncaughtFrozenStore
};


/***/ }),
/* 154 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/ecma262/#sec-toindex
var toInteger = __webpack_require__(33);
var toLength = __webpack_require__(11);
module.exports = function (it) {
  if (it === undefined) return 0;
  var number = toInteger(it);
  var length = toLength(number);
  if (number !== length) throw RangeError('Wrong length!');
  return length;
};


/***/ }),
/* 155 */
/***/ (function(module, exports, __webpack_require__) {

// all object keys, includes non-enumerable and symbols
var gOPN = __webpack_require__(48);
var gOPS = __webpack_require__(72);
var anObject = __webpack_require__(2);
var Reflect = __webpack_require__(3).Reflect;
module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
  var keys = gOPN.f(anObject(it));
  var getSymbols = gOPS.f;
  return getSymbols ? keys.concat(getSymbols(it)) : keys;
};


/***/ }),
/* 156 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
var isArray = __webpack_require__(73);
var isObject = __webpack_require__(5);
var toLength = __webpack_require__(11);
var ctx = __webpack_require__(27);
var IS_CONCAT_SPREADABLE = __webpack_require__(7)('isConcatSpreadable');

function flattenIntoArray(target, original, source, sourceLen, start, depth, mapper, thisArg) {
  var targetIndex = start;
  var sourceIndex = 0;
  var mapFn = mapper ? ctx(mapper, thisArg, 3) : false;
  var element, spreadable;

  while (sourceIndex < sourceLen) {
    if (sourceIndex in source) {
      element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];

      spreadable = false;
      if (isObject(element)) {
        spreadable = element[IS_CONCAT_SPREADABLE];
        spreadable = spreadable !== undefined ? !!spreadable : isArray(element);
      }

      if (spreadable && depth > 0) {
        targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;
      } else {
        if (targetIndex >= 0x1fffffffffffff) throw TypeError();
        target[targetIndex] = element;
      }

      targetIndex++;
    }
    sourceIndex++;
  }
  return targetIndex;
}

module.exports = flattenIntoArray;


/***/ }),
/* 157 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-string-pad-start-end
var toLength = __webpack_require__(11);
var repeat = __webpack_require__(98);
var defined = __webpack_require__(32);

module.exports = function (that, maxLength, fillString, left) {
  var S = String(defined(that));
  var stringLength = S.length;
  var fillStr = fillString === undefined ? ' ' : String(fillString);
  var intMaxLength = toLength(maxLength);
  if (intMaxLength <= stringLength || fillStr == '') return S;
  var fillLen = intMaxLength - stringLength;
  var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
  if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
  return left ? stringFiller + S : S + stringFiller;
};


/***/ }),
/* 158 */
/***/ (function(module, exports, __webpack_require__) {

var getKeys = __webpack_require__(45);
var toIObject = __webpack_require__(21);
var isEnum = __webpack_require__(61).f;
module.exports = function (isEntries) {
  return function (it) {
    var O = toIObject(it);
    var keys = getKeys(O);
    var length = keys.length;
    var i = 0;
    var result = [];
    var key;
    while (length > i) if (isEnum.call(O, key = keys[i++])) {
      result.push(isEntries ? [key, O[key]] : O[key]);
    } return result;
  };
};


/***/ }),
/* 159 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var classof = __webpack_require__(62);
var from = __webpack_require__(160);
module.exports = function (NAME) {
  return function toJSON() {
    if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
    return from(this);
  };
};


/***/ }),
/* 160 */
/***/ (function(module, exports, __webpack_require__) {

var forOf = __webpack_require__(51);

module.exports = function (iter, ITERATOR) {
  var result = [];
  forOf(iter, false, result.push, result, ITERATOR);
  return result;
};


/***/ }),
/* 161 */
/***/ (function(module, exports) {

// https://rwaldron.github.io/proposal-math-extensions/
module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) {
  if (
    arguments.length === 0
      // eslint-disable-next-line no-self-compare
      || x != x
      // eslint-disable-next-line no-self-compare
      || inLow != inLow
      // eslint-disable-next-line no-self-compare
      || inHigh != inHigh
      // eslint-disable-next-line no-self-compare
      || outLow != outLow
      // eslint-disable-next-line no-self-compare
      || outHigh != outHigh
  ) return NaN;
  if (x === Infinity || x === -Infinity) return x;
  return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow;
};


/***/ }),
/* 162 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process, __dirname, Buffer) {module.exports = function(Module) {
  Module = Module || {};

var Module;if(!Module)Module=(typeof ZXing!=="undefined"?ZXing:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&"function"==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=__webpack_require__(163);var nodePath=__webpack_require__(164);Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(true){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.log(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,prepVararg:(function(ptr,type){if(type==="double"||type==="i64"){if(ptr&7){assert((ptr&7)===4);ptr+=4}}else{assert((ptr&3)===0)}return ptr}),getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){if(!args.splice)args=Array.prototype.slice.call(args);args.splice(0,0,ptr);return Module["dynCall_"+sig].apply(null,args)}else{return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],addFunction:(function(func){for(var i=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return 2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}var sigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,arguments)}}return sigCache[func]}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){var ret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+size|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){var ret=DYNAMICTOP;DYNAMICTOP=DYNAMICTOP+size|0;DYNAMICTOP=DYNAMICTOP+15&-16;if(DYNAMICTOP>=TOTAL_MEMORY){var success=enlargeMemory();if(!success){DYNAMICTOP=ret;return 0}}return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var __THREW__=0;var ABORT=false;var EXITSTATUS=0;var undef=0;var tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat;var tempI64,tempI64b;var tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}var globalScope=this;function getCFunc(ident){var func=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var JSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){ret=Runtime.stackAlloc((str.length<<2)+1);writeStringToMemory(str,ret)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args,opts){var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0){if(opts&&opts.async){EmterpreterAsync.asyncFinalizers.push((function(){Runtime.stackRestore(stack)}));return}Runtime.stackRestore(stack)}return ret};var sourceRegex=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function parseJSFunc(jsfunc){var parsed=jsfunc.toString().match(sourceRegex).slice(1);return{arguments:parsed[0],body:parsed[1],returnValue:parsed[2]}}var JSsource={};for(var fun in JSfuncs){if(JSfuncs.hasOwnProperty(fun)){JSsource[fun]=parseJSFunc(JSfuncs[fun])}}cwrap=function cwrap(ident,returnType,argTypes){argTypes=argTypes||[];var cfunc=getCFunc(ident);var numericArgs=argTypes.every((function(type){return type==="number"}));var numericRet=returnType!=="string";if(numericRet&&numericArgs){return cfunc}var argNames=argTypes.map((function(x,i){return"$"+i}));var funcstr="(function("+argNames.join(",")+") {";var nargs=argTypes.length;if(!numericArgs){funcstr+="var stack = "+JSsource["stackSave"].body+";";for(var i=0;i<nargs;i++){var arg=argNames[i],type=argTypes[i];if(type==="number")continue;var convertCode=JSsource[type+"ToC"];funcstr+="var "+convertCode.arguments+" = "+arg+";";funcstr+=convertCode.body+";";funcstr+=arg+"="+convertCode.returnValue+";"}}var cfuncname=parseJSFunc((function(){return cfunc})).returnValue;funcstr+="var ret = "+cfuncname+"("+argNames.join(",")+");";if(!numericRet){var strgfy=parseJSFunc((function(){return Pointer_stringify})).returnValue;funcstr+="ret = "+strgfy+"(ret);"}if(!numericArgs){funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";return eval(funcstr)}}))();Module["ccall"]=ccall;Module["cwrap"]=cwrap;function setValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var ALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i<size){var curr=slab[i];if(typeof curr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}Module["allocate"]=allocate;function getMemory(size){if(!staticSealed)return Runtime.staticAlloc(size);if(typeof _sbrk!=="undefined"&&!_sbrk.called||!runtimeInitialized)return Runtime.dynamicAlloc(size);return _malloc(size)}Module["getMemory"]=getMemory;function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(hasUtf<128){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}return Module["UTF8ToString"](ptr)}Module["Pointer_stringify"]=Pointer_stringify;function AsciiToString(ptr){var str="";while(1){var ch=HEAP8[ptr++>>0];if(!ch)return str;str+=String.fromCharCode(ch)}}Module["AsciiToString"]=AsciiToString;function stringToAscii(str,outPtr){return writeAsciiToMemory(str,outPtr,false)}Module["stringToAscii"]=stringToAscii;function UTF8ArrayToString(u8Array,idx){var u0,u1,u2,u3,u4,u5;var str="";while(1){u0=u8Array[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}Module["UTF8ArrayToString"]=UTF8ArrayToString;function UTF8ToString(ptr){return UTF8ArrayToString(HEAPU8,ptr)}Module["UTF8ToString"]=UTF8ToString;function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}Module["stringToUTF8Array"]=stringToUTF8Array;function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}Module["stringToUTF8"]=stringToUTF8;function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){++len}else if(u<=2047){len+=2}else if(u<=65535){len+=3}else if(u<=2097151){len+=4}else if(u<=67108863){len+=5}else{len+=6}}return len}Module["lengthBytesUTF8"]=lengthBytesUTF8;function UTF16ToString(ptr){var i=0;var str="";while(1){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)return str;++i;str+=String.fromCharCode(codeUnit)}}Module["UTF16ToString"]=UTF16ToString;function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2}HEAP16[outPtr>>1]=0;return outPtr-startPtr}Module["stringToUTF16"]=stringToUTF16;function lengthBytesUTF16(str){return str.length*2}Module["lengthBytesUTF16"]=lengthBytesUTF16;function UTF32ToString(ptr){var i=0;var str="";while(1){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)return str;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}}Module["UTF32ToString"]=UTF32ToString;function stringToUTF32(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}Module["stringToUTF32"]=stringToUTF32;function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4}return len}Module["lengthBytesUTF32"]=lengthBytesUTF32;function demangle(func){var hasLibcxxabi=!!Module["___cxa_demangle"];if(hasLibcxxabi){try{var buf=_malloc(func.length);writeStringToMemory(func.substr(1),buf);var status=_malloc(4);var ret=Module["___cxa_demangle"](buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}}var i=3;var basicTypes={"v":"void","b":"bool","c":"char","s":"short","i":"int","l":"long","f":"float","d":"double","w":"wchar_t","a":"signed char","h":"unsigned char","t":"unsigned short","j":"unsigned int","m":"unsigned long","x":"long long","y":"unsigned long long","z":"..."};var subs=[];var first=true;function dump(x){if(x)Module.print(x);Module.print(func);var pre="";for(var a=0;a<i;a++)pre+=" ";Module.print(pre+"^")}function parseNested(){i++;if(func[i]==="K")i++;var parts=[];while(func[i]!=="E"){if(func[i]==="S"){i++;var next=func.indexOf("_",i);var num=func.substring(i,next)||0;parts.push(subs[num]||"?");i=next+1;continue}if(func[i]==="C"){parts.push(parts[parts.length-1]);i+=2;continue}var size=parseInt(func.substr(i));var pre=size.toString().length;if(!size||!pre){i--;break}var curr=func.substr(i+pre,size);parts.push(curr);subs.push(curr);i+=pre+size}i++;return parts}function parse(rawList,limit,allowVoid){limit=limit||Infinity;var ret="",list=[];function flushList(){return"("+list.join(", ")+")"}var name;if(func[i]==="N"){name=parseNested().join("::");limit--;if(limit===0)return rawList?[name]:name}else{if(func[i]==="K"||first&&func[i]==="L")i++;var size=parseInt(func.substr(i));if(size){var pre=size.toString().length;name=func.substr(i+pre,size);i+=pre+size}}first=false;if(func[i]==="I"){i++;var iList=parse(true);var iRet=parse(true,1,true);ret+=iRet[0]+" "+name+"<"+iList.join(", ")+">"}else{ret=name}paramLoop:while(i<func.length&&limit-->0){var c=func[i++];if(c in basicTypes){list.push(basicTypes[c])}else{switch(c){case"P":list.push(parse(true,1,true)[0]+"*");break;case"R":list.push(parse(true,1,true)[0]+"&");break;case"L":{i++;var end=func.indexOf("E",i);var size=end-i;list.push(func.substr(i,size));i+=size+2;break};case"A":{var size=parseInt(func.substr(i));i+=size.toString().length;if(func[i]!=="_")throw"?";i++;list.push(parse(true,1,true)[0]+" ["+size+"]");break};case"E":break paramLoop;default:ret+="?"+c;break paramLoop}}}if(!allowVoid&&list.length===1&&list[0]==="void")list=[];if(rawList){if(ret){list.push(ret+"?")}return list}else{return ret+flushList()}}var parsed=func;try{if(func=="Object._main"||func=="_main"){return"main()"}if(typeof func==="number")func=Pointer_stringify(func);if(func[0]!=="_")return func;if(func[1]!=="_")return func;if(func[2]!=="Z")return func;switch(func[3]){case"n":return"operator new()";case"d":return"operator delete()"}parsed=parse()}catch(e){parsed+="?"}if(parsed.indexOf("?")>=0&&!hasLibcxxabi){Runtime.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with  -s DEMANGLE_SUPPORT=1  to link in libcxxabi demangling")}return parsed}function demangleAll(text){return text.replace(/__Z[\w\d_]+/g,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){return demangleAll(jsStackTrace())}Module["stackTrace"]=stackTrace;var PAGE_SIZE=4096;function alignMemoryPage(x){if(x%4096>0){x+=4096-x%4096}return x}var HEAP;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var STATIC_BASE=0,STATICTOP=0,staticSealed=false;var STACK_BASE=0,STACKTOP=0,STACK_MAX=0;var DYNAMIC_BASE=0,DYNAMICTOP=0;function abortOnCannotGrowMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value "+TOTAL_MEMORY+", (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ")}function enlargeMemory(){abortOnCannotGrowMemory()}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;var totalMemory=64*1024;while(totalMemory<TOTAL_MEMORY||totalMemory<2*TOTAL_STACK){if(totalMemory<16*1024*1024){totalMemory*=2}else{totalMemory+=16*1024*1024}}if(totalMemory!==TOTAL_MEMORY){TOTAL_MEMORY=totalMemory}assert(typeof Int32Array!=="undefined"&&typeof Float64Array!=="undefined"&&!!(new Int32Array(1))["subarray"]&&!!(new Int32Array(1))["set"],"JS engine does not provide full typed array support");var buffer;buffer=new ArrayBuffer(TOTAL_MEMORY);HEAP8=new Int8Array(buffer);HEAP16=new Int16Array(buffer);HEAP32=new Int32Array(buffer);HEAPU8=new Uint8Array(buffer);HEAPU16=new Uint16Array(buffer);HEAPU32=new Uint32Array(buffer);HEAPF32=new Float32Array(buffer);HEAPF64=new Float64Array(buffer);HEAP32[0]=255;assert(HEAPU8[0]===255&&HEAPU8[3]===0,"Typed arrays 2 must be run on a little-endian system");Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Runtime.dynCall("v",func)}else{Runtime.dynCall("vi",func,[callback.arg])}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){var array=intArrayFromString(string,dontAddNull);var i=0;while(i<array.length){var chr=array[i];HEAP8[buffer+i>>0]=chr;i=i+1}}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){for(var i=0;i<array.length;i++){HEAP8[buffer++>>0]=array[i]}}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;function unSign(value,bits,ignore){if(value>=0){return value}return bits<=32?2*Math.abs(1<<bits-1)+value:Math.pow(2,bits)+value}function reSign(value,bits,ignore){if(value<=0){return value}var half=bits<=32?Math.abs(1<<bits-1):Math.pow(2,bits-1);if(value>=half&&(bits<=32||value>half)){value=-2*half+value}return value}if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];if(!Math["clz32"])Math["clz32"]=(function(x){x=x>>>0;for(var i=0;i<32;i++){if(x&1<<31-i)return i}return 32});Math.clz32=Math["clz32"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_min=Math.min;var Math_clz32=Math.clz32;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};var memoryInitializer=null;var ASM_CONSTS=[];STATIC_BASE=8;STATICTOP=STATIC_BASE+62208;__ATINIT__.push({func:(function(){__GLOBAL__sub_I_zxing_js_cpp()})},{func:(function(){__GLOBAL__sub_I_CharacterSetECI_cpp()})},{func:(function(){__GLOBAL__sub_I_GlobalHistogramBinarizer_cpp()})},{func:(function(){__GLOBAL__sub_I_GenericGF_cpp()})},{func:(function(){__GLOBAL__sub_I_Version_cpp()})},{func:(function(){__GLOBAL__sub_I_DecodeHints_cpp()})},{func:(function(){__GLOBAL__sub_I_Code39Reader_cpp()})},{func:(function(){__GLOBAL__sub_I_Code93Reader_cpp()})},{func:(function(){__GLOBAL__sub_I_ITFReader_cpp()})},{func:(function(){__GLOBAL__sub_I_UPCEANReader_cpp()})},{func:(function(){__GLOBAL__sub_I_UPCEReader_cpp()})},{func:(function(){__GLOBAL__sub_I_DecodedBitStreamParser_cpp()})},{func:(function(){__GLOBAL__sub_I_ModulusGF_cpp()})},{func:(function(){__GLOBAL__sub_I_LinesSampler_cpp()})},{func:(function(){__GLOBAL__sub_I_DataMask_cpp()})},{func:(function(){__GLOBAL__sub_I_Mode_cpp()})},{func:(function(){__GLOBAL__sub_I_ErrorCorrectionLevel_cpp()})},{func:(function(){__GLOBAL__sub_I_Version_cpp733()})},{func:(function(){__GLOBAL__sub_I_bind_cpp()})});allocate([4,138,0,0,254,176,0,0,0,7,0,0,0,0,0,0,4,138,0,0,228,176,0,0,8,0,0,0,0,0,0,0,4,138,0,0,17,177,0,0,96,1,0,0,0,0,0,0,220,137,0,0,58,177,0,0,4,138,0,0,37,177,0,0,56,0,0,0,0,0,0,0,4,138,0,0,75,177,0,0,56,0,0,0,0,0,0,0,4,138,0,0,93,177,0,0,56,0,0,0,0,0,0,0,4,138,0,0,140,177,0,0,40,3,0,0,0,0,0,0,4,138,0,0,168,177,0,0,56,0,0,0,0,0,0,0,4,138,0,0,187,177,0,0,56,0,0,0,0,0,0,0,4,138,0,0,210,177,0,0,24,0,0,0,0,0,0,0,4,138,0,0,238,177,0,0,56,0,0,0,0,0,0,0,4,138,0,0,0,178,0,0,56,0,0,0,0,0,0,0,4,138,0,0,20,178,0,0,128,0,0,0,0,0,0,0,4,138,0,0,56,178,0,0,208,0,0,0,0,0,0,0,4,138,0,0,82,178,0,0,8,0,0,0,0,0,0,0,4,138,0,0,117,178,0,0,8,0,0,0,0,0,0,0,4,138,0,0,148,178,0,0,40,3,0,0,0,0,0,0,4,138,0,0,70,179,0,0,56,0,0,0,0,0,0,0,4,138,0,0,100,179,0,0,56,0,0,0,0,0,0,0,4,138,0,0,129,179,0,0,24,0,0,0,0,0,0,0,4,138,0,0,155,179,0,0,96,1,0,0,0,0,0,0,4,138,0,0,189,179,0,0,56,0,0,0,0,0,0,0,4,138,0,0,215,179,0,0,128,1,0,0,0,0,0,0,4,138,0,0,4,180,0,0,56,0,0,0,0,0,0,0,4,138,0,0,42,180,0,0,248,2,0,0,0,0,0,0,44,138,0,0,72,180,0,0,0,0,0,0,1,0,0,0,144,3,0,0,0,4,0,0,44,138,0,0,113,180,0,0,1,0,0,0,2,0,0,0,8,3,0,0,2,0,0,0,128,1,0,0,2,12,0,0,4,138,0,0,147,180,0,0,40,3,0,0,0,0,0,0,4,138,0,0,175,180,0,0,120,2,0,0,0,0,0,0,4,138,0,0,204,180,0,0,120,2,0,0,0,0,0,0,4,138,0,0,233,180,0,0,120,2,0,0,0,0,0,0,4,138,0,0,5,181,0,0,120,2,0,0,0,0,0,0,4,138,0,0,33,181,0,0,152,2,0,0,0,0,0,0,4,138,0,0,60,181,0,0,152,2,0,0,0,0,0,0,4,138,0,0,86,181,0,0,120,2,0,0,0,0,0,0,4,138,0,0,110,181,0,0,120,2,0,0,0,0,0,0,4,138,0,0,147,181,0,0,120,2,0,0,0,0,0,0,4,138,0,0,186,181,0,0,40,3,0,0,0,0,0,0,4,138,0,0,212,181,0,0,152,2,0,0,0,0,0,0,4,138,0,0,238,181,0,0,120,2,0,0,0,0,0,0,4,138,0,0,10,182,0,0,152,2,0,0,0,0,0,0,4,138,0,0,90,182,0,0,56,0,0,0,0,0,0,0,4,138,0,0,130,182,0,0,40,3,0,0,0,0,0,0,4,138,0,0,160,182,0,0,56,0,0,0,0,0,0,0,4,138,0,0,230,182,0,0,56,0,0,0,0,0,0,0,4,138,0,0,14,183,0,0,56,0,0,0,0,0,0,0,4,138,0,0,39,183,0,0,40,3,0,0,0,0,0,0,4,138,0,0,69,183,0,0,56,0,0,0,0,0,0,0,4,138,0,0,93,183,0,0,56,0,0,0,0,0,0,0,4,138,0,0,109,183,0,0,56,0,0,0,0,0,0,0,4,138,0,0,125,183,0,0,56,0,0,0,0,0,0,0,4,138,0,0,98,206,0,0,24,0,0,0,0,0,0,0,4,138,0,0,89,202,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,138,0,0,235,200,0,0,0,0,0,0,240,0,0,0,220,137,0,0,98,198,0,0,4,138,0,0,32,199,0,0,56,0,0,0,0,0,0,0,4,138,0,0,67,199,0,0,56,0,0,0,0,0,0,0,4,138,0,0,102,199,0,0,72,3,0,0,0,0,0,0,4,138,0,0,133,199,0,0,72,3,0,0,0,0,0,0,4,138,0,0,167,199,0,0,56,0,0,0,0,0,0,0,4,138,0,0,200,199,0,0,216,2,0,0,0,0,0,0,4,138,0,0,229,199,0,0,216,2,0,0,0,0,0,0,4,138,0,0,2,200,0,0,216,2,0,0,0,0,0,0,4,138,0,0,31,200,0,0,216,2,0,0,0,0,0,0,4,138,0,0,60,200,0,0,216,2,0,0,0,0,0,0,4,138,0,0,89,200,0,0,216,2,0,0,0,0,0,0,4,138,0,0,118,200,0,0,216,2,0,0,0,0,0,0,4,138,0,0,147,200,0,0,216,2,0,0,0,0,0,0,4,138,0,0,176,200,0,0,56,0,0,0,0,0,0,0,4,138,0,0,202,200,0,0,56,0,0,0,0,0,0,0,4,138,0,0,15,201,0,0,56,0,0,0,0,0,0,0,4,138,0,0,59,201,0,0,56,0,0,0,0,0,0,0,4,138,0,0,91,201,0,0,56,0,0,0,0,0,0,0,4,138,0,0,120,201,0,0,56,0,0,0,0,0,0,0,4,138,0,0,161,201,0,0,72,3,0,0,0,0,0,0,4,138,0,0,192,201,0,0,56,0,0,0,0,0,0,0,4,138,0,0,241,201,0,0,56,0,0,0,0,0,0,0,4,138,0,0,4,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,35,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,73,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,121,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,145,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,164,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,195,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,220,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,248,202,0,0,56,0,0,0,0,0,0,0,4,138,0,0,16,203,0,0,56,0,0,0,0,0,0,0,4,138,0,0,75,205,0,0,72,8,0,0,0,0,0,0,4,138,0,0,141,205,0,0,80,8,0,0,0,0,0,0,4,138,0,0,250,205,0,0,56,0,0,0,0,0,0,0,4,138,0,0,15,206,0,0,56,0,0,0,0,0,0,0,4,138,0,0,33,206,0,0,56,0,0,0,0,0,0,0,4,138,0,0,77,206,0,0,56,0,0,0,0,0,0,0,4,138,0,0,126,206,0,0,56,0,0,0,0,0,0,0,4,138,0,0,190,207,0,0,56,0,0,0,0,0,0,0,4,138,0,0,213,207,0,0,56,0,0,0,0,0,0,0,4,138,0,0,237,207,0,0,88,5,0,0,0,0,0,0,44,138,0,0,207,213,0,0,0,0,0,0,1,0,0,0,232,6,0,0,0,0,0,0,44,138,0,0,144,213,0,0,0,0,0,0,1,0,0,0,232,6,0,0,0,0,0,0,44,138,0,0,43,213,0,0,0,0,0,0,1,0,0,0,232,6,0,0,0,0,0,0,220,137,0,0,24,213,0,0,220,137,0,0,249,212,0,0,220,137,0,0,32,212,0,0,220,137,0,0,1,212,0,0,220,137,0,0,226,211,0,0,220,137,0,0,195,211,0,0,220,137,0,0,164,211,0,0,220,137,0,0,63,212,0,0,220,137,0,0,94,212,0,0,220,137,0,0,125,212,0,0,220,137,0,0,156,212,0,0,220,137,0,0,187,212,0,0,220,137,0,0,218,212,0,0,220,137,0,0,106,213,0,0,4,138,0,0,14,214,0,0,0,7,0,0,0,0,0,0,220,137,0,0,27,214,0,0,4,138,0,0,40,214,0,0,0,7,0,0,0,0,0,0,220,137,0,0,58,214,0,0,4,138,0,0,71,214,0,0,0,7,0,0,0,0,0,0,4,138,0,0,83,214,0,0,24,7,0,0,0,0,0,0,4,138,0,0,116,214,0,0,48,7,0,0,0,0,0,0,4,138,0,0,186,214,0,0,48,7,0,0,0,0,0,0,4,138,0,0,150,214,0,0,80,7,0,0,0,0,0,0,4,138,0,0,220,214,0,0,48,7,0,0,0,0,0,0,192,137,0,0,122,207,0,0,192,137,0,0,4,215,0,0,192,137,0,0,84,207,0,0,192,137,0,0,86,207,0,0,84,138,0,0,7,215,0,0,1,0,0,0,152,7,0,0,192,137,0,0,96,207,0,0,192,137,0,0,82,207,0,0,192,137,0,0,116,207,0,0,192,137,0,0,118,207,0,0,192,137,0,0,98,207,0,0,192,137,0,0,100,207,0,0,192,137,0,0,68,239,0,0,192,137,0,0,104,207,0,0,192,137,0,0,92,207,0,0,192,137,0,0,88,207,0,0,4,138,0,0,11,215,0,0,64,7,0,0,0,0,0,0,4,138,0,0,48,215,0,0,64,7,0,0,0,0,0,0,4,138,0,0,192,232,0,0,120,15,0,0,0,0,0,0,220,137,0,0,218,232,0,0,4,138,0,0,236,232,0,0,48,8,0,0,0,0,0,0,220,137,0,0,22,233,0,0,44,138,0,0,71,233,0,0,0,0,0,0,1,0,0,0,56,8,0,0,3,244,255,255,4,138,0,0,118,233,0,0,144,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,138,0,0,242,233,0,0,112,15,0,0,0,0,0,0,44,138,0,0,8,234,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,160,14,0,0,2,0,0,0,44,138,0,0,26,234,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,168,14,0,0,2,0,0,0,44,138,0,0,60,234,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,168,14,0,0,2,0,0,0,44,138,0,0,95,234,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,168,14,0,0,2,0,0,0,4,138,0,0,130,234,0,0,240,8,0,0,0,0,0,0,4,138,0,0,164,234,0,0,240,8,0,0,0,0,0,0,44,138,0,0,199,234,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,168,14,0,0,2,0,0,0,4,138,0,0,233,234,0,0,128,8,0,0,0,0,0,0,4,138,0,0,255,234,0,0,128,8,0,0,0,0,0,0,4,138,0,0,19,235,0,0,128,8,0,0,0,0,0,0,44,138,0,0,39,235,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,160,14,0,0,2,0,0,0,4,138,0,0,57,235,0,0,128,8,0,0,0,0,0,0,4,138,0,0,78,235,0,0,128,8,0,0,0,0,0,0,44,138,0,0,99,235,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,176,14,0,0,0,0,0,0,44,138,0,0,167,235,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,200,14,0,0,0,0,0,0,44,138,0,0,235,235,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,224,14,0,0,0,0,0,0,44,138,0,0,47,236,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,248,14,0,0,0,0,0,0,44,138,0,0,115,236,0,0,0,0,0,0,3,0,0,0,128,8,0,0,2,0,0,0,16,15,0,0,2,0,0,0,24,15,0,0,0,8,0,0,44,138,0,0,184,236,0,0,0,0,0,0,3,0,0,0,128,8,0,0,2,0,0,0,16,15,0,0,2,0,0,0,32,15,0,0,0,8,0,0,44,138,0,0,253,236,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,40,15,0,0,0,8,0,0,44,138,0,0,66,237,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,40,15,0,0,0,8,0,0,44,138,0,0,135,237,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,48,15,0,0,2,0,0,0,44,138,0,0,163,237,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,48,15,0,0,2,0,0,0,44,138,0,0,191,237,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,48,15,0,0,2,0,0,0,44,138,0,0,219,237,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,48,15,0,0,2,0,0,0,44,138,0,0,247,237,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,56,15,0,0,0,0,0,0,44,138,0,0,61,238,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,64,15,0,0,0,0,0,0,44,138,0,0,131,238,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,72,15,0,0,0,0,0,0,44,138,0,0,201,238,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,80,15,0,0,0,0,0,0,44,138,0,0,15,239,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,88,15,0,0,2,0,0,0,44,138,0,0,36,239,0,0,0,0,0,0,2,0,0,0,128,8,0,0,2,0,0,0,88,15,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,220,137,0,0,128,242,0,0,220,137,0,0,105,242,0,0,44,138,0,0,83,242,0,0,0,0,0,0,1,0,0,0,104,15,0,0,0,0,0,0,44,138,0,0,36,242,0,0,0,0,0,0,1,0,0,0,104,15,0,0,0,0,0,0,44,138,0,0,14,242,0,0,0,0,0,0,1,0,0,0,96,15,0,0,0,0,0,0,44,138,0,0,223,241,0,0,0,0,0,0,1,0,0,0,96,15,0,0,0,0,0,0,220,137,0,0,204,241,0,0,220,137,0,0,170,241,0,0,220,137,0,0,136,241,0,0,220,137,0,0,115,241,0,0,220,137,0,0,94,241,0,0,220,137,0,0,69,241,0,0,220,137,0,0,44,241,0,0,220,137,0,0,19,241,0,0,220,137,0,0,250,240,0,0,220,137,0,0,226,240,0,0,220,137,0,0,245,241,0,0,220,137,0,0,58,242,0,0,220,137,0,0,149,242,0,0,4,138,0,0,174,242,0,0,8,7,0,0,0,0,0,0,220,137,0,0,197,242,0,0,4,138,0,0,222,242,0,0,136,15,0,0,0,0,0,0,0,0,0,0,40,0,0,0,42,0,0,0,43,0,0,0,42,0,0,0,42,0,0,0,42,0,0,0,42,0,0,0,43,0,0,0,44,0,0,0,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,44,0,0,0,45,0,0,0,0,0,0,0,80,0,0,0,46,0,0,0,47,0,0,0,0,0,0,0,96,0,0,0,48,0,0,0,49,0,0,0,0,0,0,0,112,0,0,0,50,0,0,0,51,0,0,0,42,0,0,0,42,0,0,0,0,0,0,0,128,0,0,0,52,0,0,0,53,0,0,0,42,0,0,0,42,0,0,0,42,0,0,0,0,0,0,0,144,0,0,0,54,0,0,0,55,0,0,0,0,0,0,0,160,0,0,0,56,0,0,0,57,0,0,0,46,0,0,0,0,0,0,0,176,0,0,0,58,0,0,0,59,0,0,0,0,0,0,0,192,0,0,0,60,0,0,0,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,30,0,0,0,1,0,0,0,0,0,0,0,208,0,0,0,62,0,0,0,63,0,0,0,43,0,0,0,47,0,0,0,43,0,0,0,0,0,0,0,224,0,0,0,64,0,0,0,65,0,0,0,43,0,0,0,48,0,0,0,44,0,0,0,0,0,0,0,240,0,0,0,66,0,0,0,67,0,0,0,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,68,0,0,0,69,0,0,0,46,0,0,0,94,203,0,0,0,0,0,0,16,1,0,0,70,0,0,0,71,0,0,0,45,0,0,0,44,0,0,0,0,0,0,0,32,1,0,0,72,0,0,0,73,0,0,0,42,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,1,0,0,74,0,0,0,75,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,1,0,0,76,0,0,0,77,0,0,0,46,0,0,0,0,0,0,0,80,1,0,0,78,0,0,0,79,0,0,0,43,0,0,0,43,0,0,0,49,0,0,0,43,0,0,0,50,0,0,0,51,0,0,0,52,0,0,0,0,0,0,0,96,1,0,0,80,0,0,0,81,0,0,0,42,0,0,0,42,0,0,0,42,0,0,0,42,0,0,0,43,0,0,0,44,0,0,0,45,0,0,0,0,0,0,0,112,1,0,0,82,0,0,0,83,0,0,0,42,0,0,0,44,0,0,0,0,0,0,0,144,1,0,0,84,0,0,0,85,0,0,0,42,0,0,0,43,0,0,0,0,0,0,0,160,1,0,0,86,0,0,0,87,0,0,0,44,0,0,0,0,0,0,0,184,1,0,0,88,0,0,0,89,0,0,0,45,0,0,0,45,0,0,0,45,0,0,0,244,255,255,255,184,1,0,0,90,0,0,0,91,0,0,0,42,0,0,0,46,0,0,0,0,0,0,0,216,1,0,0,92,0,0,0,93,0,0,0,46,0,0,0,46,0,0,0,0,0,0,0,232,1,0,0,94,0,0,0,95,0,0,0,45,0,0,0,47,0,0,0,48,0,0,0,0,0,0,0,248,1,0,0,96,0,0,0,97,0,0,0,45,0,0,0,47,0,0,0,49,0,0,0,0,0,0,0,8,2,0,0,98,0,0,0,99,0,0,0,45,0,0,0,47,0,0,0,50,0,0,0,0,0,0,0,24,2,0,0,100,0,0,0,101,0,0,0,45,0,0,0,47,0,0,0,51,0,0,0,0,0,0,0,40,2,0,0,102,0,0,0,103,0,0,0,45,0,0,0,47,0,0,0,52,0,0,0,47,0,0,0,42,0,0,0,43,0,0,0,47,0,0,0,53,0,0,0,0,0,0,0,56,2,0,0,104,0,0,0,105,0,0,0,45,0,0,0,47,0,0,0,52,0,0,0,47,0,0,0,44,0,0,0,43,0,0,0,47,0,0,0,54,0,0,0,0,0,0,0,72,2,0,0,106,0,0,0,107,0,0,0,45,0,0,0,47,0,0,0,53,0,0,0,0,0,0,0,88,2,0,0,108,0,0,0,109,0,0,0,45,0,0,0,47,0,0,0,54,0,0,0,0,0,0,0,104,2,0,0,110,0,0,0,111,0,0,0,45,0,0,0,47,0,0,0,55,0,0,0,0,0,0,0,120,2,0,0,112,0,0,0,113,0,0,0,45,0,0,0,47,0,0,0,42,0,0,0,0,0,0,0,136,2,0,0,114,0,0,0,115,0,0,0,45,0,0,0,56,0,0,0,57,0,0,0,47,0,0,0,45,0,0,0,46,0,0,0,47,0,0,0,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,152,2,0,0,116,0,0,0,117,0,0,0,45,0,0,0,47,0,0,0,52,0,0,0,47,0,0,0,42,0,0,0,43,0,0,0,47,0,0,0,42,0,0,0,0,0,0,0,168,2,0,0,118,0,0,0,119,0,0,0,45,0,0,0,47,0,0,0,52,0,0,0,48,0,0,0,47,0,0,0,43,0,0,0,48,0,0,0,56,0,0,0,227,10,0,0,94,2,1,0,122,2,1,0,158,2,1,0,188,2,1,0,242,2,1,0,244,2,1,0,46,3,1,0,78,3,1,0,92,3,1,0,150,3,1,0,166,3,1,0,172,3,1,0,34,4,1,0,40,4,1,0,54,4,1,0,66,4,1,0,68,4,1,0,72,4,1,0,80,4,1,0,94,4,1,0,102,4,1,0,108,4,1,0,122,4,1,0,130,4,1,0,158,4,1,0,160,4,1,0,188,4,1,0,198,4,1,0,216,4,1,0,238,4,1,0,242,4,1,0,244,4,1,0,4,5,1,0,8,5,1,0,16,5,1,0,30,5,1,0,32,5,1,0,60,5,1,0,64,5,1,0,120,5,1,0,134,5,1,0,140,5,1,0,152,5,1,0,176,5,1,0,190,5,1,0,206,5,1,0,220,5,1,0,226,5,1,0,228,5,1,0,232,5,1,0,246,5,1,0,46,6,1,0,78,6,1,0,92,6,1,0,142,6,1,0,156,6,1,0,184,6,1,0,222,6,1,0,250,6,1,0,22,7,1,0,38,7,1,0,44,7,1,0,70,7,1,0,76,7,1,0,88,7,1,0,110,7,1,0,146,7,1,0,148,7,1,0,162,7,1,0,164,7,1,0,168,7,1,0,182,7,1,0,34,8,1,0,40,8,1,0,66,8,1,0,72,8,1,0,80,8,1,0,94,8,1,0,102,8,1,0,108,8,1,0,122,8,1,0,130,8,1,0,132,8,1,0,144,8,1,0,158,8,1,0,160,8,1,0,188,8,1,0,198,8,1,0,204,8,1,0,216,8,1,0,238,8,1,0,242,8,1,0,244,8,1,0,2,9,1,0,8,9,1,0,30,9,1,0,32,9,1,0,60,9,1,0,64,9,1,0,120,9,1,0,134,9,1,0,152,9,1,0,176,9,1,0,190,9,1,0,206,9,1,0,220,9,1,0,226,9,1,0,228,9,1,0,232,9,1,0,246,9,1,0,8,10,1,0,16,10,1,0,30,10,1,0,32,10,1,0,60,10,1,0,64,10,1,0,120,10,1,0,240,10,1,0,6,11,1,0,12,11,1,0,24,11,1,0,48,11,1,0,62,11,1,0,96,11,1,0,124,11,1,0,142,11,1,0,156,11,1,0,184,11,1,0,194,11,1,0,196,11,1,0,200,11,1,0,208,11,1,0,222,11,1,0,230,11,1,0,236,11,1,0,46,12,1,0,78,12,1,0,92,12,1,0,98,12,1,0,100,12,1,0,104,12,1,0,118,12,1,0,142,12,1,0,156,12,1,0,184,12,1,0,194,12,1,0,196,12,1,0,200,12,1,0,208,12,1,0,222,12,1,0,230,12,1,0,236,12,1,0,250,12,1,0,14,13,1,0,28,13,1,0,56,13,1,0,112,13,1,0,126,13,1,0,130,13,1,0,132,13,1,0,136,13,1,0,144,13,1,0,158,13,1,0,160,13,1,0,188,13,1,0,198,13,1,0,204,13,1,0,216,13,1,0,238,13,1,0,242,13,1,0,244,13,1,0,22,14,1,0,38,14,1,0,44,14,1,0,70,14,1,0,88,14,1,0,110,14,1,0,134,14,1,0,140,14,1,0,152,14,1,0,176,14,1,0,190,14,1,0,206,14,1,0,220,14,1,0,10,15,1,0,18,15,1,0,20,15,1,0,34,15,1,0,40,15,1,0,54,15,1,0,66,15,1,0,68,15,1,0,72,15,1,0,80,15,1,0,94,15,1,0,102,15,1,0,108,15,1,0,178,15,1,0,180,15,1,0,34,16,1,0,40,16,1,0,66,16,1,0,72,16,1,0,80,16,1,0,94,16,1,0,122,16,1,0,130,16,1,0,132,16,1,0,144,16,1,0,158,16,1,0,160,16,1,0,188,16,1,0,198,16,1,0,204,16,1,0,216,16,1,0,238,16,1,0,242,16,1,0,244,16,1,0,2,17,1,0,30,17,1,0,32,17,1,0,60,17,1,0,64,17,1,0,120,17,1,0,134,17,1,0,152,17,1,0,176,17,1,0,190,17,1,0,206,17,1,0,220,17,1,0,226,17,1,0,228,17,1,0,232,17,1,0,246,17,1,0,8,18,1,0,30,18,1,0,32,18,1,0,120,18,1,0,240,18,1,0,12,19,1,0,48,19,1,0,62,19,1,0,96,19,1,0,124,19,1,0,142,19,1,0,156,19,1,0,184,19,1,0,194,19,1,0,200,19,1,0,208,19,1,0,222,19,1,0,230,19,1,0,236,19,1,0,8,20,1,0,16,20,1,0,30,20,1,0,32,20,1,0,60,20,1,0,64,20,1,0,120,20,1,0,240,20,1,0,224,21,1,0,12,22,1,0,24,22,1,0,48,22,1,0,62,22,1,0,96,22,1,0,124,22,1,0,192,22,1,0,248,22,1,0,28,23,1,0,56,23,1,0,112,23,1,0,126,23,1,0,130,23,1,0,132,23,1,0,136,23,1,0,144,23,1,0,158,23,1,0,160,23,1,0,188,23,1,0,198,23,1,0,204,23,1,0,216,23,1,0,238,23,1,0,46,24,1,0,52,24,1,0,78,24,1,0,92,24,1,0,98,24,1,0,100,24,1,0,104,24,1,0,118,24,1,0,142,24,1,0,156,24,1,0,184,24,1,0,194,24,1,0,200,24,1,0,208,24,1,0,222,24,1,0,230,24,1,0,236,24,1,0,250,24,1,0,14,25,1,0,28,25,1,0,56,25,1,0,112,25,1,0,126,25,1,0,130,25,1,0,132,25,1,0,144,25,1,0,158,25,1,0,160,25,1,0,188,25,1,0,198,25,1,0,204,25,1,0,216,25,1,0,238,25,1,0,242,25,1,0,244,25,1,0,14,26,1,0,28,26,1,0,56,26,1,0,112,26,1,0,126,26,1,0,224,26,1,0,252,26,1,0,8,27,1,0,16,27,1,0,30,27,1,0,32,27,1,0,60,27,1,0,64,27,1,0,120,27,1,0,140,27,1,0,152,27,1,0,176,27,1,0,190,27,1,0,206,27,1,0,220,27,1,0,226,27,1,0,228,27,1,0,232,27,1,0,246,27,1,0,22,28,1,0,38,28,1,0,44,28,1,0,70,28,1,0,76,28,1,0,88,28,1,0,110,28,1,0,134,28,1,0,152,28,1,0,176,28,1,0,190,28,1,0,206,28,1,0,220,28,1,0,226,28,1,0,228,28,1,0,232,28,1,0,246,28,1,0,6,29,1,0,12,29,1,0,24,29,1,0,48,29,1,0,62,29,1,0,96,29,1,0,124,29,1,0,142,29,1,0,156,29,1,0,184,29,1,0,196,29,1,0,200,29,1,0,208,29,1,0,222,29,1,0,230,29,1,0,236,29,1,0,250,29,1,0,10,30,1,0,18,30,1,0,20,30,1,0,34,30,1,0,36,30,1,0,40,30,1,0,54,30,1,0,66,30,1,0,68,30,1,0,80,30,1,0,94,30,1,0,102,30,1,0,108,30,1,0,130,30,1,0,132,30,1,0,136,30,1,0,144,30,1,0,158,30,1,0,160,30,1,0,188,30,1,0,198,30,1,0,204,30,1,0,216,30,1,0,238,30,1,0,26,31,1,0,46,31,1,0,50,31,1,0,52,31,1,0,78,31,1,0,92,31,1,0,98,31,1,0,100,31,1,0,104,31,1,0,118,31,1,0,72,32,1,0,94,32,1,0,130,32,1,0,132,32,1,0,144,32,1,0,158,32,1,0,160,32,1,0,188,32,1,0,216,32,1,0,242,32,1,0,244,32,1,0,8,33,1,0,30,33,1,0,32,33,1,0,60,33,1,0,64,33,1,0,120,33,1,0,134,33,1,0,152,33,1,0,176,33,1,0,190,33,1,0,226,33,1,0,228,33,1,0,232,33,1,0,246,33,1,0,4,34,1,0,16,34,1,0,30,34,1,0,32,34,1,0,120,34,1,0,240,34,1,0,6,35,1,0,12,35,1,0,48,35,1,0,62,35,1,0,96,35,1,0,124,35,1,0,142,35,1,0,156,35,1,0,184,35,1,0,194,35,1,0,200,35,1,0,208,35,1,0,230,35,1,0,236,35,1,0,30,36,1,0,32,36,1,0,60,36,1,0,240,36,1,0,224,37,1,0,24,38,1,0,62,38,1,0,96,38,1,0,124,38,1,0,192,38,1,0,248,38,1,0,56,39,1,0,112,39,1,0,126,39,1,0,130,39,1,0,132,39,1,0,144,39,1,0,158,39,1,0,160,39,1,0,188,39,1,0,198,39,1,0,204,39,1,0,216,39,1,0,238,39,1,0,32,40,1,0,60,40,1,0,64,40,1,0,120,40,1,0,240,40,1,0,224,41,1,0,192,43,1,0,24,44,1,0,48,44,1,0,62,44,1,0,96,44,1,0,124,44,1,0,192,44,1,0,248,44,1,0,240,45,1,0,28,46,1,0,56,46,1,0,112,46,1,0,126,46,1,0,224,46,1,0,252,46,1,0,4,47,1,0,8,47,1,0,16,47,1,0,32,47,1,0,60,47,1,0,64,47,1,0,120,47,1,0,134,47,1,0,140,47,1,0,152,47,1,0,176,47,1,0,190,47,1,0,206,47,1,0,220,47,1,0,46,48,1,0,78,48,1,0,92,48,1,0,98,48,1,0,104,48,1,0,142,48,1,0,156,48,1,0,184,48,1,0,194,48,1,0,200,48,1,0,208,48,1,0,222,48,1,0,236,48,1,0,250,48,1,0,14,49,1,0,56,49,1,0,112,49,1,0,126,49,1,0,130,49,1,0,132,49,1,0,144,49,1,0,158,49,1,0,160,49,1,0,188,49,1,0,198,49,1,0,204,49,1,0,216,49,1,0,242,49,1,0,244,49,1,0,14,50,1,0,28,50,1,0,112,50,1,0,126,50,1,0,224,50,1,0,252,50,1,0,8,51,1,0,30,51,1,0,32,51,1,0,60,51,1,0,64,51,1,0,120,51,1,0,134,51,1,0,152,51,1,0,176,51,1,0,190,51,1,0,206,51,1,0,220,51,1,0,226,51,1,0,228,51,1,0,232,51,1,0,246,51,1,0,14,52,1,0,28,52,1,0,56,52,1,0,112,52,1,0,126,52,1,0,224,52,1,0,252,52,1,0,192,53,1,0,248,53,1,0,8,54,1,0,16,54,1,0,30,54,1,0,32,54,1,0,60,54,1,0,64,54,1,0,120,54,1,0,240,54,1,0,12,55,1,0,24,55,1,0,48,55,1,0,62,55,1,0,96,55,1,0,124,55,1,0,156,55,1,0,184,55,1,0,194,55,1,0,196,55,1,0,200,55,1,0,208,55,1,0,222,55,1,0,230,55,1,0,236,55,1,0,22,56,1,0,38,56,1,0,44,56,1,0,70,56,1,0,76,56,1,0,88,56,1,0,110,56,1,0,116,56,1,0,134,56,1,0,152,56,1,0,176,56,1,0,190,56,1,0,206,56,1,0,220,56,1,0,226,56,1,0,228,56,1,0,232,56,1,0,6,57,1,0,12,57,1,0,48,57,1,0,62,57,1,0,96,57,1,0,124,57,1,0,142,57,1,0,156,57,1,0,184,57,1,0,200,57,1,0,208,57,1,0,222,57,1,0,230,57,1,0,236,57,1,0,250,57,1,0,6,58,1,0,12,58,1,0,24,58,1,0,48,58,1,0,62,58,1,0,96,58,1,0,124,58,1,0,192,58,1,0,248,58,1,0,14,59,1,0,28,59,1,0,56,59,1,0,112,59,1,0,126,59,1,0,136,59,1,0,144,59,1,0,158,59,1,0,160,59,1,0,188,59,1,0,204,59,1,0,216,59,1,0,238,59,1,0,242,59,1,0,244,59,1,0,18,60,1,0,20,60,1,0,34,60,1,0,36,60,1,0,40,60,1,0,54,60,1,0,66,60,1,0,72,60,1,0,80,60,1,0,94,60,1,0,102,60,1,0,108,60,1,0,130,60,1,0,132,60,1,0,144,60,1,0,158,60,1,0,160,60,1,0,188,60,1,0,198,60,1,0,204,60,1,0,216,60,1,0,238,60,1,0,2,61,1,0,4,61,1,0,8,61,1,0,16,61,1,0,30,61,1,0,32,61,1,0,60,61,1,0,64,61,1,0,120,61,1,0,134,61,1,0,140,61,1,0,152,61,1,0,176,61,1,0,190,61,1,0,206,61,1,0,220,61,1,0,228,61,1,0,232,61,1,0,246,61,1,0,26,62,1,0,46,62,1,0,50,62,1,0,52,62,1,0,78,62,1,0,92,62,1,0,98,62,1,0,100,62,1,0,104,62,1,0,118,62,1,0,142,62,1,0,156,62,1,0,184,62,1,0,194,62,1,0,196,62,1,0,200,62,1,0,208,62,1,0,222,62,1,0,230,62,1,0,236,62,1,0,38,63,1,0,44,63,1,0,58,63,1,0,70,63,1,0,76,63,1,0,88,63,1,0,110,63,1,0,114,63,1,0,116,63,1,0,130,64,1,0,158,64,1,0,160,64,1,0,188,64,1,0,4,65,1,0,8,65,1,0,16,65,1,0,30,65,1,0,32,65,1,0,60,65,1,0,64,65,1,0,120,65,1,0,140,65,1,0,152,65,1,0,176,65,1,0,190,65,1,0,226,65,1,0,228,65,1,0,232,65,1,0,8,66,1,0,16,66,1,0,30,66,1,0,32,66,1,0,60,66,1,0,64,66,1,0,120,66,1,0,240,66,1,0,6,67,1,0,12,67,1,0,24,67,1,0,48,67,1,0,62,67,1,0,96,67,1,0,124,67,1,0,142,67,1,0,194,67,1,0,196,67,1,0,200,67,1,0,208,67,1,0,230,67,1,0,236,67,1,0,8,68,1,0,16,68,1,0,30,68,1,0,32,68,1,0,60,68,1,0,64,68,1,0,120,68,1,0,240,68,1,0,224,69,1,0,12,70,1,0,24,70,1,0,48,70,1,0,62,70,1,0,96,70,1,0,124,70,1,0,192,70,1,0,248,70,1,0,28,71,1,0,56,71,1,0,112,71,1,0,126,71,1,0,130,71,1,0,132,71,1,0,136,71,1,0,144,71,1,0,160,71,1,0,188,71,1,0,198,71,1,0,204,71,1,0,216,71,1,0,238,71,1,0,16,72,1,0,32,72,1,0,60,72,1,0,64,72,1,0,120,72,1,0,240,72,1,0,224,73,1,0,192,75,1,0,48,76,1,0,62,76,1,0,96,76,1,0,124,76,1,0,192,76,1,0,248,76,1,0,240,77,1,0,56,78,1,0,112,78,1,0,126,78,1,0,224,78,1,0,252,78,1,0,4,79,1,0,8,79,1,0,16,79,1,0,30,79,1,0,32,79,1,0,60,79,1,0,64,79,1,0,120,79,1,0,134,79,1,0,140,79,1,0,152,79,1,0,176,79,1,0,206,79,1,0,220,79,1,0,32,80,1,0,64,80,1,0,120,80,1,0,240,80,1,0,224,81,1,0,192,83,1,0,96,88,1,0,124,88,1,0,192,88,1,0,248,88,1,0,240,89,1,0,224,91,1,0,112,92,1,0,126,92,1,0,224,92,1,0,252,92,1,0,192,93,1,0,248,93,1,0,8,94,1,0,16,94,1,0,32,94,1,0,64,94,1,0,120,94,1,0,240,94,1,0,12,95,1,0,24,95,1,0,48,95,1,0,96,95,1,0,124,95,1,0,142,95,1,0,156,95,1,0,184,95,1,0,78,96,1,0,92,96,1,0,142,96,1,0,156,96,1,0,184,96,1,0,194,96,1,0,196,96,1,0,200,96,1,0,222,96,1,0,14,97,1,0,28,97,1,0,56,97,1,0,112,97,1,0,126,97,1,0,132,97,1,0,136,97,1,0,144,97,1,0,158,97,1,0,160,97,1,0,188,97,1,0,198,97,1,0,204,97,1,0,216,97,1,0,242,97,1,0,244,97,1,0,14,98,1,0,28,98,1,0,56,98,1,0,112,98,1,0,126,98,1,0,224,98,1,0,252,98,1,0,4,99,1,0,8,99,1,0,16,99,1,0,30,99,1,0,32,99,1,0,60,99,1,0,64,99,1,0,120,99,1,0,134,99,1,0,140,99,1,0,152,99,1,0,176,99,1,0,190,99,1,0,206,99,1,0,220,99,1,0,226,99,1,0,228,99,1,0,232,99,1,0,246,99,1,0,14,100,1,0,28,100,1,0,56,100,1,0,112,100,1,0,126,100,1,0,224,100,1,0,252,100,1,0,192,101,1,0,248,101,1,0,16,102,1,0,30,102,1,0,32,102,1,0,60,102,1,0,64,102,1,0,120,102,1,0,240,102,1,0,24,103,1,0,48,103,1,0,62,103,1,0,96,103,1,0,124,103,1,0,142,103,1,0,156,103,1,0,184,103,1,0,194,103,1,0,196,103,1,0,200,103,1,0,208,103,1,0,222,103,1,0,230,103,1,0,236,103,1,0,28,104,1,0,56,104,1,0,112,104,1,0,224,104,1,0,252,104,1,0,192,105,1,0,248,105,1,0,240,107,1,0,16,108,1,0,30,108,1,0,32,108,1,0,60,108,1,0,64,108,1,0,120,108,1,0,240,108,1,0,224,109,1,0,24,110,1,0,48,110,1,0,62,110,1,0,96,110,1,0,124,110,1,0,192,110,1,0,248,110,1,0,28,111,1,0,56,111,1,0,112,111,1,0,126,111,1,0,132,111,1,0,136,111,1,0,144,111,1,0,158,111,1,0,160,111,1,0,188,111,1,0,198,111,1,0,204,111,1,0,216,111,1,0,38,112,1,0,44,112,1,0,70,112,1,0,76,112,1,0,88,112,1,0,110,112,1,0,134,112,1,0,140,112,1,0,152,112,1,0,176,112,1,0,190,112,1,0,206,112,1,0,220,112,1,0,232,112,1,0,6,113,1,0,12,113,1,0,24,113,1,0,48,113,1,0,62,113,1,0,96,113,1,0,124,113,1,0,142,113,1,0,156,113,1,0,184,113,1,0,194,113,1,0,196,113,1,0,200,113,1,0,208,113,1,0,222,113,1,0,230,113,1,0,236,113,1,0,250,113,1,0,6,114,1,0,12,114,1,0,24,114,1,0,48,114,1,0,62,114,1,0,96,114,1,0,124,114,1,0,192,114,1,0,248,114,1,0,14,115,1,0,28,115,1,0,56,115,1,0,112,115,1,0,126,115,1,0,136,115,1,0,144,115,1,0,158,115,1,0,160,115,1,0,188,115,1,0,204,115,1,0,216,115,1,0,238,115,1,0,242,115,1,0,244,115,1,0,12,116,1,0,24,116,1,0,48,116,1,0,62,116,1,0,96,116,1,0,124,116,1,0,192,116,1,0,248,116,1,0,240,117,1,0,14,118,1,0,28,118,1,0,56,118,1,0,112,118,1,0,126,118,1,0,224,118,1,0,252,118,1,0,8,119,1,0,16,119,1,0,30,119,1,0,32,119,1,0,60,119,1,0,64,119,1,0,120,119,1,0,152,119,1,0,176,119,1,0,190,119,1,0,220,119,1,0,226,119,1,0,228,119,1,0,232,119,1,0,34,120,1,0,36,120,1,0,40,120,1,0,54,120,1,0,66,120,1,0,68,120,1,0,72,120,1,0,80,120,1,0,94,120,1,0,102,120,1,0,108,120,1,0,130,120,1,0,132,120,1,0,136,120,1,0,144,120,1,0,158,120,1,0,160,120,1,0,188,120,1,0,198,120,1,0,204,120,1,0,216,120,1,0,238,120,1,0,242,120,1,0,244,120,1,0,2,121,1,0,4,121,1,0,8,121,1,0,16,121,1,0,30,121,1,0,32,121,1,0,60,121,1,0,64,121,1,0,120,121,1,0,134,121,1,0,140,121,1,0,152,121,1,0,176,121,1,0,190,121,1,0,206,121,1,0,220,121,1,0,226,121,1,0,228,121,1,0,232,121,1,0,246,121,1,0,4,122,1,0,8,122,1,0,16,122,1,0,30,122,1,0,32,122,1,0,60,122,1,0,64,122,1,0,120,122,1,0,240,122,1,0,6,123,1,0,12,123,1,0,24,123,1,0,48,123,1,0,62,123,1,0,96,123,1,0,124,123,1,0,142,123,1,0,156,123,1,0,184,123,1,0,196,123,1,0,200,123,1,0,208,123,1,0,222,123,1,0,230,123,1,0,236,123,1,0,46,124,1,0,50,124,1,0,52,124,1,0,78,124,1,0,92,124,1,0,98,124,1,0,100,124,1,0,104,124,1,0,118,124,1,0,142,124,1,0,156,124,1,0,184,124,1,0,194,124,1,0,196,124,1,0,200,124,1,0,208,124,1,0,222,124,1,0,230,124,1,0,236,124,1,0,14,125,1,0,28,125,1,0,56,125,1,0,112,125,1,0,130,125,1,0,132,125,1,0,136,125,1,0,144,125,1,0,158,125,1,0,160,125,1,0,188,125,1,0,198,125,1,0,204,125,1,0,216,125,1,0,238,125,1,0,38,126,1,0,44,126,1,0,58,126,1,0,70,126,1,0,76,126,1,0,88,126,1,0,110,126,1,0,114,126,1,0,116,126,1,0,134,126,1,0,140,126,1,0,152,126,1,0,176,126,1,0,206,126,1,0,220,126,1,0,226,126,1,0,228,126,1,0,232,126,1,0,246,126,1,0,58,129,1,0,114,129,1,0,116,129,1,0,22,130,1,0,38,130,1,0,58,130,1,0,76,130,1,0,88,130,1,0,110,130,1,0,114,130,1,0,116,130,1,0,152,130,1,0,190,130,1,0,226,130,1,0,228,130,1,0,232,130,1,0,246,130,1,0,94,131,1,0,122,131,1,0,174,131,1,0,214,131,1,0,22,132,1,0,38,132,1,0,44,132,1,0,58,132,1,0,70,132,1,0,88,132,1,0,110,132,1,0,114,132,1,0,116,132,1,0,134,132,1,0,176,132,1,0,190,132,1,0,206,132,1,0,220,132,1,0,226,132,1,0,228,132,1,0,232,132,1,0,246,132,1,0,6,133,1,0,12,133,1,0,24,133,1,0,48,133,1,0,62,133,1,0,96,133,1,0,124,133,1,0,142,133,1,0,156,133,1,0,184,133,1,0,194,133,1,0,196,133,1,0,200,133,1,0,208,133,1,0,222,133,1],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);allocate([230,133,1,0,236,133,1,0,250,133,1,0,18,134,1,0,20,134,1,0,34,134,1,0,40,134,1,0,54,134,1,0,66,134,1,0,80,134,1,0,94,134,1,0,122,134,1,0,130,134,1,0,132,134,1,0,136,134,1,0,144,134,1,0,158,134,1,0,160,134,1,0,188,134,1,0,198,134,1,0,204,134,1,0,216,134,1,0,238,134,1,0,242,134,1,0,244,134,1,0,46,135,1,0,78,135,1,0,92,135,1,0,150,135,1,0,166,135,1,0,172,135,1,0,210,135,1,0,212,135,1,0,38,136,1,0,44,136,1,0,58,136,1,0,70,136,1,0,76,136,1,0,88,136,1,0,110,136,1,0,114,136,1,0,116,136,1,0,134,136,1,0,152,136,1,0,176,136,1,0,190,136,1,0,206,136,1,0,220,136,1,0,226,136,1,0,228,136,1,0,232,136,1,0,246,136,1,0,12,137,1,0,48,137,1,0,62,137,1,0,96,137,1,0,124,137,1,0,142,137,1,0,184,137,1,0,194,137,1,0,200,137,1,0,208,137,1,0,222,137,1,0,230,137,1,0,236,137,1,0,250,137,1,0,24,138,1,0,48,138,1,0,62,138,1,0,96,138,1,0,124,138,1,0,192,138,1,0,248,138,1,0,28,139,1,0,56,139,1,0,112,139,1,0,126,139,1,0,130,139,1,0,132,139,1,0,136,139,1,0,144,139,1,0,158,139,1,0,160,139,1,0,188,139,1,0,198,139,1,0,204,139,1,0,216,139,1,0,238,139,1,0,242,139,1,0,244,139,1,0,34,140,1,0,36,140,1,0,40,140,1,0,54,140,1,0,66,140,1,0,72,140,1,0,80,140,1,0,94,140,1,0,102,140,1,0,122,140,1,0,130,140,1,0,132,140,1,0,144,140,1,0,158,140,1,0,160,140,1,0,188,140,1,0,204,140,1,0,242,140,1,0,244,140,1,0,4,141,1,0,8,141,1,0,16,141,1,0,30,141,1,0,32,141,1,0,60,141,1,0,64,141,1,0,120,141,1,0,134,141,1,0,152,141,1,0,206,141,1,0,226,141,1,0,228,141,1,0,232,141,1,0,46,142,1,0,50,142,1,0,52,142,1,0,78,142,1,0,92,142,1,0,98,142,1,0,100,142,1,0,104,142,1,0,142,142,1,0,156,142,1,0,184,142,1,0,194,142,1,0,196,142,1,0,200,142,1,0,208,142,1,0,250,142,1,0,22,143,1,0,38,143,1,0,44,143,1,0,70,143,1,0,76,143,1,0,88,143,1,0,110,143,1,0,138,143,1,0,146,143,1,0,148,143,1,0,162,143,1,0,164,143,1,0,168,143,1,0,182,143,1,0,44,144,1,0,58,144,1,0,70,144,1,0,76,144,1,0,88,144,1,0,114,144,1,0,116,144,1,0,134,144,1,0,152,144,1,0,176,144,1,0,190,144,1,0,206,144,1,0,220,144,1,0,226,144,1,0,232,144,1,0,246,144,1,0,6,145,1,0,12,145,1,0,48,145,1,0,62,145,1,0,96,145,1,0,124,145,1,0,142,145,1,0,156,145,1,0,184,145,1,0,194,145,1,0,200,145,1,0,208,145,1,0,222,145,1,0,230,145,1,0,236,145,1,0,250,145,1,0,24,146,1,0,62,146,1,0,96,146,1,0,124,146,1,0,192,146,1,0,248,146,1,0,56,147,1,0,112,147,1,0,126,147,1,0,130,147,1,0,132,147,1,0,144,147,1,0,158,147,1,0,160,147,1,0,188,147,1,0,198,147,1,0,204,147,1,0,216,147,1,0,238,147,1,0,242,147,1,0,244,147,1,0,48,148,1,0,62,148,1,0,96,148,1,0,124,148,1,0,192,148,1,0,248,148,1,0,240,149,1,0,56,150,1,0,112,150,1,0,126,150,1,0,224,150,1,0,252,150,1,0,2,151,1,0,4,151,1,0,8,151,1,0,16,151,1,0,32,151,1,0,60,151,1,0,64,151,1,0,120,151,1,0,134,151,1,0,140,151,1,0,152,151,1,0,176,151,1,0,190,151,1,0,206,151,1,0,220,151,1,0,226,151,1,0,228,151,1,0,232,151,1,0,34,152,1,0,36,152,1,0,66,152,1,0,72,152,1,0,80,152,1,0,94,152,1,0,102,152,1,0,122,152,1,0,130,152,1,0,132,152,1,0,144,152,1,0,158,152,1,0,160,152,1,0,188,152,1,0,204,152,1,0,242,152,1,0,244,152,1,0,2,153,1,0,8,153,1,0,30,153,1,0,32,153,1,0,60,153,1,0,64,153,1,0,120,153,1,0,134,153,1,0,152,153,1,0,206,153,1,0,226,153,1,0,228,153,1,0,232,153,1,0,8,154,1,0,16,154,1,0,30,154,1,0,32,154,1,0,60,154,1,0,64,154,1,0,120,154,1,0,240,154,1,0,24,155,1,0,62,155,1,0,96,155,1,0,156,155,1,0,194,155,1,0,196,155,1,0,200,155,1,0,208,155,1,0,230,155,1,0,46,156,1,0,52,156,1,0,78,156,1,0,92,156,1,0,98,156,1,0,100,156,1,0,104,156,1,0,142,156,1,0,156,156,1,0,184,156,1,0,194,156,1,0,200,156,1,0,208,156,1,0,230,156,1,0,250,156,1,0,14,157,1,0,28,157,1,0,56,157,1,0,112,157,1,0,126,157,1,0,130,157,1,0,132,157,1,0,136,157,1,0,144,157,1,0,160,157,1,0,204,157,1,0,242,157,1,0,244,157,1,0,22,158,1,0,38,158,1,0,44,158,1,0,70,158,1,0,76,158,1,0,88,158,1,0,116,158,1,0,134,158,1,0,140,158,1,0,152,158,1,0,176,158,1,0,190,158,1,0,206,158,1,0,226,158,1,0,228,158,1,0,232,158,1,0,10,159,1,0,18,159,1,0,20,159,1,0,34,159,1,0,36,159,1,0,40,159,1,0,66,159,1,0,68,159,1,0,72,159,1,0,80,159,1,0,94,159,1,0,108,159,1,0,154,159,1,0,174,159,1,0,178,159,1,0,180,159,1,0,70,160,1,0,76,160,1,0,114,160,1,0,116,160,1,0,134,160,1,0,140,160,1,0,152,160,1,0,176,160,1,0,190,160,1,0,226,160,1,0,228,160,1,0,232,160,1,0,246,160,1,0,6,161,1,0,12,161,1,0,24,161,1,0,48,161,1,0,62,161,1,0,96,161,1,0,124,161,1,0,142,161,1,0,156,161,1,0,184,161,1,0,194,161,1,0,196,161,1,0,200,161,1,0,208,161,1,0,222,161,1,0,230,161,1,0,236,161,1,0,24,162,1,0,48,162,1,0,62,162,1,0,96,162,1,0,124,162,1,0,192,162,1,0,248,162,1,0,28,163,1,0,56,163,1,0,112,163,1,0,126,163,1,0,130,163,1,0,132,163,1,0,136,163,1,0,144,163,1,0,158,163,1,0,160,163,1,0,188,163,1,0,198,163,1,0,204,163,1,0,216,163,1,0,238,163,1,0,242,163,1,0,244,163,1,0,24,164,1,0,48,164,1,0,62,164,1,0,96,164,1,0,124,164,1,0,192,164,1,0,248,164,1,0,240,165,1,0,28,166,1,0,56,166,1,0,112,166,1,0,126,166,1,0,224,166,1,0,252,166,1,0,2,167,1,0,4,167,1,0,8,167,1,0,16,167,1,0,30,167,1,0,32,167,1,0,60,167,1,0,64,167,1,0,120,167,1,0,134,167,1,0,140,167,1,0,152,167,1,0,176,167,1,0,190,167,1,0,206,167,1,0,220,167,1,0,226,167,1,0,228,167,1,0,232,167,1,0,48,168,1,0,96,168,1,0,124,168,1,0,192,168,1,0,248,168,1,0,240,169,1,0,224,171,1,0,112,172,1,0,126,172,1,0,224,172,1,0,252,172,1,0,192,173,1,0,248,173,1,0,4,174,1,0,8,174,1,0,16,174,1,0,32,174,1,0,60,174,1,0,64,174,1,0,120,174,1,0,240,174,1,0,6,175,1,0,12,175,1,0,24,175,1,0,48,175,1,0,62,175,1,0,96,175,1,0,124,175,1,0,142,175,1,0,156,175,1,0,184,175,1,0,196,175,1,0,200,175,1,0,208,175,1,0,222,175,1,0,66,176,1,0,94,176,1,0,122,176,1,0,130,176,1,0,132,176,1,0,136,176,1,0,144,176,1,0,158,176,1,0,160,176,1,0,188,176,1,0,204,176,1,0,242,176,1,0,244,176,1,0,2,177,1,0,4,177,1,0,8,177,1,0,16,177,1,0,30,177,1,0,32,177,1,0,60,177,1,0,64,177,1,0,120,177,1,0,134,177,1,0,152,177,1,0,206,177,1,0,226,177,1,0,228,177,1,0,232,177,1,0,4,178,1,0,8,178,1,0,16,178,1,0,30,178,1,0,32,178,1,0,60,178,1,0,64,178,1,0,120,178,1,0,240,178,1,0,12,179,1,0,62,179,1,0,96,179,1,0,156,179,1,0,194,179,1,0,196,179,1,0,200,179,1,0,208,179,1,0,230,179,1,0,16,180,1,0,30,180,1,0,32,180,1,0,60,180,1,0,64,180,1,0,120,180,1,0,240,180,1,0,224,181,1,0,24,182,1,0,96,182,1,0,124,182,1,0,192,182,1,0,56,183,1,0,130,183,1,0,132,183,1,0,136,183,1,0,144,183,1,0,158,183,1,0,160,183,1,0,204,183,1,0,46,184,1,0,78,184,1,0,92,184,1,0,142,184,1,0,156,184,1,0,184,184,1,0,194,184,1,0,196,184,1,0,200,184,1,0,208,184,1,0,230,184,1,0,250,184,1,0,14,185,1,0,28,185,1,0,56,185,1,0,112,185,1,0,126,185,1,0,130,185,1,0,132,185,1,0,136,185,1,0,144,185,1,0,158,185,1,0,160,185,1,0,204,185,1,0,242,185,1,0,244,185,1,0,14,186,1,0,28,186,1,0,56,186,1,0,112,186,1,0,126,186,1,0,224,186,1,0,252,186,1,0,8,187,1,0,16,187,1,0,32,187,1,0,60,187,1,0,64,187,1,0,152,187,1,0,206,187,1,0,226,187,1,0,228,187,1,0,232,187,1,0,22,188,1,0,38,188,1,0,44,188,1,0,70,188,1,0,76,188,1,0,88,188,1,0,114,188,1,0,116,188,1,0,134,188,1,0,140,188,1,0,152,188,1,0,176,188,1,0,190,188,1,0,206,188,1,0,226,188,1,0,228,188,1,0,232,188,1,0,6,189,1,0,12,189,1,0,24,189,1,0,48,189,1,0,62,189,1,0,96,189,1,0,124,189,1,0,156,189,1,0,194,189,1,0,196,189,1,0,200,189,1,0,208,189,1,0,230,189,1,0,250,189,1,0,18,190,1,0,20,190,1,0,34,190,1,0,36,190,1,0,40,190,1,0,66,190,1,0,68,190,1,0,72,190,1,0,80,190,1,0,94,190,1,0,102,190,1,0,130,190,1,0,132,190,1,0,136,190,1,0,144,190,1,0,158,190,1,0,160,190,1,0,188,190,1,0,204,190,1,0,244,190,1,0,26,191,1,0,46,191,1,0,50,191,1,0,52,191,1,0,78,191,1,0,92,191,1,0,98,191,1,0,100,191,1,0,104,191,1,0,154,192,1,0,178,192,1,0,180,192,1,0,26,193,1,0,50,193,1,0,52,193,1,0,98,193,1,0,100,193,1,0,104,193,1,0,118,193,1,0,186,193,1,0,26,194,1,0,50,194,1,0,52,194,1,0,78,194,1,0,92,194,1,0,98,194,1,0,100,194,1,0,104,194,1,0,118,194,1,0,142,194,1,0,194,194,1,0,196,194,1,0,200,194,1,0,208,194,1,0,222,194,1,0,230,194,1,0,236,194,1,0,250,194,1,0,22,195,1,0,38,195,1,0,58,195,1,0,70,195,1,0,76,195,1,0,114,195,1,0,116,195,1,0,26,196,1,0,46,196,1,0,50,196,1,0,52,196,1,0,78,196,1,0,92,196,1,0,98,196,1,0,100,196,1,0,104,196,1,0,118,196,1,0,142,196,1,0,156,196,1,0,184,196,1,0,194,196,1,0,200,196,1,0,208,196,1,0,222,196,1,0,230,196,1,0,236,196,1,0,250,196,1,0,28,197,1,0,56,197,1,0,112,197,1,0,126,197,1,0,130,197,1,0,132,197,1,0,136,197,1,0,144,197,1,0,158,197,1,0,160,197,1,0,188,197,1,0,198,197,1,0,204,197,1,0,216,197,1,0,238,197,1,0,242,197,1,0,244,197,1,0,22,198,1,0,38,198,1,0,44,198,1,0,58,198,1,0,70,198,1,0,76,198,1,0,88,198,1,0,110,198,1,0,114,198,1,0,116,198,1,0,134,198,1,0,140,198,1,0,152,198,1,0,176,198,1,0,190,198,1,0,206,198,1,0,220,198,1,0,226,198,1,0,228,198,1,0,232,198,1,0,18,199,1,0,20,199,1,0,34,199,1,0,40,199,1,0,54,199,1,0,66,199,1,0,68,199,1,0,72,199,1,0,80,199,1,0,94,199,1,0,102,199,1,0,108,199,1,0,122,199,1,0,174,199,1,0,214,199,1,0,234,199,1,0,26,200,1,0,46,200,1,0,50,200,1,0,52,200,1,0,78,200,1,0,92,200,1,0,98,200,1,0,100,200,1,0,104,200,1,0,118,200,1,0,142,200,1,0,156,200,1,0,184,200,1,0,194,200,1,0,200,200,1,0,208,200,1,0,222,200,1,0,230,200,1,0,236,200,1,0,250,200,1,0,14,201,1,0,56,201,1,0,112,201,1,0,126,201,1,0,130,201,1,0,132,201,1,0,144,201,1,0,158,201,1,0,160,201,1,0,188,201,1,0,198,201,1,0,204,201,1,0,216,201,1,0,238,201,1,0,242,201,1,0,244,201,1,0,56,202,1,0,112,202,1,0,126,202,1,0,224,202,1,0,252,202,1,0,2,203,1,0,4,203,1,0,8,203,1,0,16,203,1,0,32,203,1,0,60,203,1,0,64,203,1,0,120,203,1,0,134,203,1,0,140,203,1,0,152,203,1,0,176,203,1,0,190,203,1,0,206,203,1,0,220,203,1,0,226,203,1,0,228,203,1,0,232,203,1,0,246,203,1,0,22,204,1,0,38,204,1,0,44,204,1,0,58,204,1,0,70,204,1,0,88,204,1,0,114,204,1,0,116,204,1,0,134,204,1,0,176,204,1,0,190,204,1,0,206,204,1,0,226,204,1,0,228,204,1,0,232,204,1,0,6,205,1,0,12,205,1,0,24,205,1,0,48,205,1,0,62,205,1,0,96,205,1,0,124,205,1,0,156,205,1,0,194,205,1,0,196,205,1,0,200,205,1,0,208,205,1,0,222,205,1,0,230,205,1,0,250,205,1,0,34,206,1,0,40,206,1,0,66,206,1,0,80,206,1,0,94,206,1,0,102,206,1,0,122,206,1,0,130,206,1,0,132,206,1,0,136,206,1,0,144,206,1,0,158,206,1,0,160,206,1,0,188,206,1,0,204,206,1,0,242,206,1,0,244,206,1,0,46,207,1,0,50,207,1,0,52,207,1,0,78,207,1,0,92,207,1,0,98,207,1,0,100,207,1,0,104,207,1,0,150,207,1,0,166,207,1,0,172,207,1,0,202,207,1,0,210,207,1,0,212,207,1,0,46,208,1,0,50,208,1,0,52,208,1,0,78,208,1,0,92,208,1,0,98,208,1,0,100,208,1,0,104,208,1,0,118,208,1,0,142,208,1,0,156,208,1,0,184,208,1,0,194,208,1,0,196,208,1,0,200,208,1,0,208,208,1,0,222,208,1,0,230,208,1,0,236,208,1,0,250,208,1,0,28,209,1,0,56,209,1,0,112,209,1,0,126,209,1,0,130,209,1,0,132,209,1,0,136,209,1,0,144,209,1,0,158,209,1,0,160,209,1,0,188,209,1,0,198,209,1,0,204,209,1,0,216,209,1,0,238,209,1,0,242,209,1,0,244,209,1,0,28,210,1,0,56,210,1,0,112,210,1,0,126,210,1,0,224,210,1,0,252,210,1,0,2,211,1,0,4,211,1,0,8,211,1,0,16,211,1,0,30,211,1,0,32,211,1,0,60,211,1,0,64,211,1,0,120,211,1,0,134,211,1,0,140,211,1,0,152,211,1,0,176,211,1,0,190,211,1,0,206,211,1,0,220,211,1,0,226,211,1,0,228,211,1,0,232,211,1,0,246,211,1,0,112,212,1,0,126,212,1,0,224,212,1,0,252,212,1,0,192,213,1,0,248,213,1,0,4,214,1,0,8,214,1,0,16,214,1,0,32,214,1,0,64,214,1,0,120,214,1,0,240,214,1,0,6,215,1,0,12,215,1,0,24,215,1,0,48,215,1,0,62,215,1,0,96,215,1,0,124,215,1,0,142,215,1,0,156,215,1,0,184,215,1,0,194,215,1,0,196,215,1,0,200,215,1,0,208,215,1,0,222,215,1,0,230,215,1,0,236,215,1,0,38,216,1,0,44,216,1,0,58,216,1,0,70,216,1,0,76,216,1,0,88,216,1,0,114,216,1,0,116,216,1,0,134,216,1,0,140,216,1,0,152,216,1,0,176,216,1,0,190,216,1,0,206,216,1,0,226,216,1,0,228,216,1,0,232,216,1,0,246,216,1,0,12,217,1,0,24,217,1,0,48,217,1,0,62,217,1,0,96,217,1,0,124,217,1,0,156,217,1,0,194,217,1,0,196,217,1,0,200,217,1,0,208,217,1,0,230,217,1,0,250,217,1,0,12,218,1,0,24,218,1,0,48,218,1,0,62,218,1,0,96,218,1,0,124,218,1,0,192,218,1,0,248,218,1,0,56,219,1,0,130,219,1,0,132,219,1,0,136,219,1,0,144,219,1,0,158,219,1,0,160,219,1,0,204,219,1,0,242,219,1,0,244,219,1,0,34,220,1,0,66,220,1,0,68,220,1,0,72,220,1,0,80,220,1,0,94,220,1,0,102,220,1,0,122,220,1,0,130,220,1,0,132,220,1,0,136,220,1,0,144,220,1,0,158,220,1,0,160,220,1,0,188,220,1,0,204,220,1,0,242,220,1,0,244,220,1,0,4,221,1,0,8,221,1,0,16,221,1,0,30,221,1,0,32,221,1,0,60,221,1,0,64,221,1,0,120,221,1,0,134,221,1,0,152,221,1,0,206,221,1,0,226,221,1,0,228,221,1,0,232,221,1,0,46,222,1,0,50,222,1,0,52,222,1,0,78,222,1,0,92,222,1,0,98,222,1,0,100,222,1,0,104,222,1,0,142,222,1,0,156,222,1,0,184,222,1,0,194,222,1,0,196,222,1,0,200,222,1,0,208,222,1,0,230,222,1,0,250,222,1,0,22,223,1,0,38,223,1,0,44,223,1,0,70,223,1,0,76,223,1,0,88,223,1,0,114,223,1,0,116,223,1,0,138,223,1,0,146,223,1,0,148,223,1,0,162,223,1,0,164,223,1,0,168,223,1,0,138,224,1,0,146,224,1,0,148,224,1,0,162,224,1,0,164,224,1,0,168,224,1,0,182,224,1,0,218,224,1,0,10,225,1,0,18,225,1,0,20,225,1,0,34,225,1,0,36,225,1,0,40,225,1,0,54,225,1,0,66,225,1,0,68,225,1,0,72,225,1,0,80,225,1,0,102,225,1,0,108,225,1,0,122,225,1,0,154,225,1,0,178,225,1,0,180,225,1,0,10,226,1,0,18,226,1,0,20,226,1,0,34,226,1,0,36,226,1,0,40,226,1,0,54,226,1,0,66,226,1,0,72,226,1,0,80,226,1,0,94,226,1,0,102,226,1,0,108,226,1,0,122,226,1,0,130,226,1,0,132,226,1,0,136,226,1,0,144,226,1,0,160,226,1,0,188,226,1,0,198,226,1,0,204,226,1,0,216,226,1,0,238,226,1,0,242,226,1,0,244,226,1,0,26,227,1,0,50,227,1,0,52,227,1,0,92,227,1,0,98,227,1,0,100,227,1,0,104,227,1,0,186,227,1,0,10,228,1,0,18,228,1,0,20,228,1,0,34,228,1,0,40,228,1,0,54,228,1,0,66,228,1,0,72,228,1,0,80,228,1,0,94,228,1,0,102,228,1,0,108,228,1,0,122,228,1,0,130,228,1,0,132,228,1,0,144,228,1,0,158,228,1,0,160,228,1,0,188,228,1,0,198,228,1,0,204,228,1,0,216,228,1,0,238,228,1,0,242,228,1,0,244,228,1,0,2,229,1,0,4,229,1,0,8,229,1,0,16,229,1,0,30,229,1,0,32,229,1,0,60,229,1,0,64,229,1,0,120,229,1,0,134,229,1,0,140,229,1,0,152,229,1,0,176,229,1,0,190,229,1,0,206,229,1,0,220,229,1,0,226,229,1,0,228,229,1,0,232,229,1,0,246,229,1,0,26,230,1,0,46,230,1,0,50,230,1,0,52,230,1,0,78,230,1,0,92,230,1,0,98,230,1,0,104,230,1,0,142,230,1,0,156,230,1,0,184,230,1,0,194,230,1,0,196,230,1,0,200,230,1,0,208,230,1,0,230,230,1,0,250,230,1,0,22,231,1,0,38,231,1,0,44,231,1,0,58,231,1,0,70,231,1,0,76,231,1,0,88,231,1,0,114,231,1,0,116,231,1,0,146,231,1,0,148,231,1,0,162,231,1,0,164,231,1,0,168,231,1,0,182,231,1,0,18,232,1,0,20,232,1,0,34,232,1,0,36,232,1,0,40,232,1,0,54,232,1,0,66,232,1,0,68,232,1,0,72,232,1,0,80,232,1,0,94,232,1,0,102,232,1,0,108,232,1,0,122,232,1,0,130,232,1,0,132,232,1,0,136,232,1,0,144,232,1,0,158,232,1,0,160,232,1,0,188,232,1,0,198,232,1,0,204,232,1,0,216,232,1,0,238,232,1,0,242,232,1,0,244,232,1,0,2,233,1,0,4,233,1,0,8,233,1,0,16,233,1,0,32,233,1,0,60,233,1,0,64,233,1,0,120,233,1,0,134,233,1,0,140,233,1,0,152,233,1,0,176,233,1,0,190,233,1,0,206,233,1,0,220,233,1,0,226,233,1,0,228,233,1,0,232,233,1,0,246,233,1,0,4,234,1,0,8,234,1,0,16,234,1,0,32,234,1,0,64,234,1,0,120,234,1,0,240,234,1,0,6,235,1,0,12,235,1,0,24,235,1,0,48,235,1,0,62,235,1,0,96,235,1,0,124,235,1,0,142,235,1,0,156,235,1,0,184,235,1,0,194,235,1,0,196,235,1,0,200,235,1,0,208,235,1,0,222,235,1,0,230,235,1,0,236,235,1,0,26,236,1,0,46,236,1,0,50,236,1,0,52,236,1,0,78,236,1,0,92,236,1,0,98,236,1,0,100,236,1,0,104,236,1,0,142,236,1,0,156,236,1,0,184,236,1,0,194,236,1,0,196,236,1,0,200,236,1,0,208,236,1,0,230,236,1,0,250,236,1,0,14,237,1,0,28,237,1,0,56,237,1,0,112,237,1,0,126,237,1,0,130,237,1,0,132,237,1,0,136,237,1,0,144,237,1,0,158,237,1,0,160,237,1,0,204,237,1,0,242,237,1,0,244,237,1,0,22,238,1,0,38,238,1,0,44,238,1,0,58,238,1,0,70,238,1,0,76,238,1,0,88,238,1,0,110,238,1,0,114,238,1,0,116,238,1,0,134,238,1,0,140,238,1,0,152,238,1,0,176,238,1,0,190,238,1,0,206,238,1,0,220,238,1,0,226,238,1,0,228,238,1,0,232,238,1,0,18,239,1,0,34,239,1,0,36,239,1,0,40,239,1,0,54,239,1,0,66,239,1,0,68,239,1,0,72,239,1,0,80,239,1,0,94,239,1,0,102,239,1,0,108,239,1,0,122,239,1,0,174,239,1,0,178,239,1,0,180,239,1,0,214,239,1,0,150,240,1,0,166,240,1,0,172,240,1,0,186,240,1,0,202,240,1,0,210,240,1,0,212,240,1,0,22,241,1,0,38,241,1,0,44,241,1,0,58,241,1,0,70,241,1,0,76,241,1,0,88,241,1,0,110,241,1,0,114,241,1,0,116,241,1,0,138,241,1,0,146,241,1,0,148,241,1,0,162,241,1,0,164,241,1,0,168,241,1,0,218,241,1,0,22,242,1,0,38,242,1,0,44,242,1,0,58,242,1,0,70,242,1,0,88,242,1,0,110,242,1,0,114,242,1,0,116,242,1,0,134,242,1,0,140,242,1,0,152,242,1,0,176,242,1,0,190,242,1,0,206,242,1,0,220,242,1,0,226,242,1,0,228,242,1,0,232,242,1,0,246,242,1,0,10,243,1,0,18,243,1,0,20,243,1,0,34,243,1,0,40,243,1,0,66,243,1,0,68,243,1,0,72,243,1,0,80,243,1,0,94,243,1,0,102,243,1,0,122,243,1,0,154,243,1,0,174,243,1,0,178,243,1,0,180,243,1,0,22,244,1,0,38,244,1,0,44,244,1,0,58,244,1,0,70,244,1,0,76,244,1,0,88,244,1,0,110,244,1,0,114,244,1,0,116,244,1,0,134,244,1,0,140,244,1,0,152,244,1,0,176,244,1,0,190,244,1,0,206,244,1,0,220,244,1,0,226,244,1,0,228,244,1,0,232,244,1,0,246,244,1,0,6,245,1,0,12,245,1,0,24,245,1,0,48,245,1,0,62,245,1,0,96,245,1,0,124,245,1,0,142,245,1,0,156,245,1,0,184,245,1,0,194,245,1,0,196,245,1,0,200,245,1,0,208,245,1,0,222,245,1,0,230,245,1,0,236,245,1,0,250,245,1,0,10,246,1,0,18,246,1,0,20,246,1,0,34,246,1,0,36,246,1,0,40,246,1,0,54,246,1,0,66,246,1,0,68,246,1,0,72,246,1,0,80,246,1,0,94,246,1,0,102,246,1,0,122,246,1,0,130,246,1,0,132,246,1,0,136,246,1,0,144,246,1,0,158,246,1,0,160,246,1,0,188,246,1,0,204,246,1,0,242,246,1,0,244,246,1,0,26,247,1,0,46,247,1,0,50,247,1,0,52,247,1,0,78,247,1,0,92,247,1,0,98,247,1,0,100,247,1,0,104,247,1,0,118,247,1,0,150,247,1,0,166,247,1,0,172,247,1,0,186,247,1,0,210,247,1,0,212,247,1,0,154,248,1,0,174,248,1,0,178,248,1,0,180,248,1,0,214,248,1,0,234,248,1,0,26,249,1,0,46,249,1,0,50,249,1,0,52,249,1,0,78,249,1,0,92,249,1,0,98,249,1,0,100,249,1,0,104,249,1,0,118,249,1,0,150,249,1,0,166,249,1,0,172,249,1,0,186,249,1,0,202,249,1,0,210,249,1,0,212,249,1,0,26,250,1,0,46,250,1,0,50,250,1,0,52,250,1,0,78,250,1,0,92,250,1,0,98,250,1,0,100,250,1,0,104,250,1,0,118,250,1,0,142,250,1,0,156,250,1,0,184,250,1,0,194,250,1,0,196,250,1,0,200,250,1,0,208,250,1,0,222,250,1,0,230,250,1,0,236,250,1,0,22,251,1,0,38,251,1,0,44,251,1,0,58,251,1,0,70,251,1,0,76,251,1,0,88,251,1,0,110,251,1,0,114,251,1,0,116,251,1,0,138,251,1,0,146,251,1,0,148,251,1,0,162,251,1,0,164,251,1,0,168,251,1,0,182,251,1,0,218,251,1,0,67,10,0,0,27,7,0,0,62,10,0,0,61,10,0,0,21,7,0,0,20,7,0,0,169,10,0,0,164,10,0,0,163,10,0,0,219,10,0,0,214,10,0,0,213,10,0,0,134,3,0,0,128,3,0,0,140,3,0,0,100,3,0,0,97,3,0,0,93,3,0,0,91,3,0,0,207,9,0,0,105,3,0,0,103,3,0,0,244,6,0,0,67,3,0,0,189,9,0,0,57,3,0,0,187,9,0,0,74,3,0,0,69,3,0,0,76,3,0,0,228,6,0,0,226,6,0,0,43,3,0,0,42,3,0,0,41,3,0,0,179,9,0,0,39,3,0,0,178,9,0,0,38,3,0,0,176,9,0,0,47,3,0,0,46,3,0,0,45,3,0,0,44,3,0,0,180,9,0,0,49,3,0,0,48,3,0,0,209,6,0,0,208,6,0,0,206,6,0,0,210,6,0,0,95,10,0,0,77,10,0,0,75,10,0,0,66,10,0,0,65,10,0,0,63,10,0,0,68,10,0,0,28,7,0,0,192,10,0,0,179,10,0,0,177,10,0,0,168,10,0,0,167,10,0,0,165,10,0,0,170,10,0,0,225,10,0,0,223,10,0,0,218,10,0,0,217,10,0,0,215,10,0,0,220,10,0,0,19,3,0,0,13,3,0,0,235,2,0,0,227,2,0,0,224,2,0,0,109,9,0,0,242,2,0,0,240,2,0,0,183,6,0,0,180,2,0,0,177,2,0,0,169,2,0,0,67,9,0,0,166,2,0,0,65,9,0,0,188,2,0,0,185,2,0,0,182,2,0,0,191,2,0,0,152,6,0,0,150,6,0,0,130,2,0,0,126,2,0,0,39,9,0,0,119,2,0,0,37,9,0,0,115,2,0,0,34,9,0,0,139,2,0,0,134,2,0,0,131,2,0,0,41,9,0,0,142,2,0,0,140,2,0,0,116,6,0,0,114,6,0,0,111,6,0,0,118,6,0,0,89,2,0,0,87,2,0,0,18,9,0,0,84,2,0,0,17,9,0,0,82,2,0,0,15,9,0,0,13,9,0,0,99,2,0,0,98,2,0,0,96,2,0,0,94,2,0,0,20,9,0,0,91,2,0,0,19,9,0,0,103,2,0,0,102,2,0,0,100,2,0,0,81,6,0,0,80,6,0,0,78,6,0,0,76,6,0,0,104,2,0,0,83,6,0,0,82,6,0,0,15,10,0,0,234,9,0,0,232,9,0,0,137,3,0,0,133,3,0,0,130,3,0,0,141,3,0,0,205,9,0,0,203,9,0,0,200,9,0,0,102,3,0,0,99,3,0,0,96,3,0,0,92,3,0,0,208,9,0,0,107,3,0,0,104,3,0,0,245,6,0,0,186,9,0,0,185,9,0,0,183,9,0,0,181,9,0,0,212,6,0,0,68,3,0,0,66,3,0,0,64,3,0,0,62,3,0,0,190,9,0,0,59,3,0,0,188,9,0,0,75,3,0,0,73,3,0,0,71,3,0,0,77,3,0,0,229,6,0,0,227,6,0,0,141,10,0,0,116,10,0,0,114,10,0,0,93,10,0,0,88,10,0,0,96,10,0,0,74,10,0,0,73,10,0,0,71,10,0,0,69,10,0,0,29,7,0,0,78,10,0,0,76,10,0,0,210,10,0,0,203,10,0,0,201,10,0,0,190,10,0,0,185,10,0,0,193,10,0,0,176,10,0,0,175,10,0,0,173,10,0,0,171,10,0,0,56,7,0,0,180,10,0,0,178,10,0,0,226,10,0,0,224,10,0,0,79,2,0,0,76,2,0,0,64,2,0,0,57,2,0,0,54,2,0,0,248,8,0,0,54,6,0,0,25,2,0,0,22,2,0,0,14,2,0,0,228,8,0,0,10,2,0,0,226,8,0,0,33,2,0,0,30,2,0,0,27,2,0,0,36,2,0,0,36,6,0,0,34,6,0,0,225,1,0,0,197,8,0,0,210,1,0,0,194,8,0,0,206,1,0,0,191,8,0,0,236,1,0,0,229,1,0,0,226,1,0,0,201,8,0,0,240,1,0,0,238,1,0,0,254,5,0,0,251,5,0,0,248,5,0,0,2,6,0,0,157,1,0,0,148,8,0,0,150,1,0,0,143,8,0,0,140,8,0,0,169,1,0,0,163,1,0,0,154,8,0,0,159,1,0,0,151,8,0,0,176,1,0,0,174,1,0,0,171,1,0,0,192,5,0,0,187,5,0,0,184,5,0,0,177,1,0,0,196,5,0,0,194,5,0,0,112,1,0,0,111,1,0,0,112,8,0,0,109,1,0,0,111,8,0,0,106,1,0,0,109,8,0,0,107,8,0,0,104,8,0,0,122,1,0,0,121,1,0,0,119,1,0,0,118,8,0,0,116,1,0,0,117,8,0,0,113,1,0,0,114,8,0,0,127,1,0,0,125,1,0,0,123,1,0,0,120,8,0,0,139,5,0,0,138,5,0,0,136,5,0,0,134,5,0,0,129,1,0,0,131,5,0,0,128,1,0,0,143,5,0,0,142,5,0,0,140,5,0,0,144,5,0,0,157,9,0,0,34,3,0,0,137,9,0,0,135,9,0,0,22,3,0,0,18,3,0,0,15,3,0,0,26,3,0,0,105,9,0,0,102,9,0,0,99,9,0,0,238,2,0,0,230,2,0,0,226,2,0,0,110,9,0,0,244,2,0,0,241,2,0,0,184,6,0,0,63,9,0,0,61,9,0,0,58,9,0,0,55,9,0,0,127,6,0,0,181,2,0,0,179,2,0,0,172,2,0,0,69,9,0,0,168,2,0,0,66,9,0,0,190,2,0,0,187,2,0,0,184,2,0,0,192,2,0,0,154,6,0,0,151,6,0,0,33,9,0,0,32,9,0,0,30,9,0,0,28,9,0,0,88,6,0,0,25,9,0,0,86,6,0,0,128,2,0,0,125,2,0,0,40,9,0,0,122,2,0,0,38,9,0,0,118,2,0,0,36,9,0,0,138,2,0,0,136,2,0,0,133,2,0,0,42,9,0,0,143,2,0,0,141,2,0,0,117,6,0,0,115,6,0,0,113,6,0,0,119,6,0,0,52,10,0,0,37,10,0,0,35,10,0,0,11,10,0,0,8,10,0,0,5,10,0,0,16,10,0,0,230,9,0,0,225,9,0,0,222,9,0,0,251,6,0,0,236,9,0,0,233,9,0,0,139,3,0,0,136,3,0,0,132,3,0,0,142,3,0,0,199,9,0,0,198,9,0,0,196,9,0,0,194,9,0,0,232,6,0,0,191,9,0,0,231,6,0,0,206,9,0,0,204,9,0,0,202,9,0,0,101,3,0,0,98,3,0,0,95,3,0,0,209,9,0,0,108,3,0,0,106,3,0,0,246,6,0,0,160,10,0,0,153,10,0,0,151,10,0,0,137,10,0,0,134,10,0,0,131,10,0,0,142,10,0,0,112,10,0,0,110,10,0,0,104,10,0,0,36,7,0,0,118,10,0,0,115,10,0,0,87,10,0,0,86,10,0,0,84,10,0,0,82,10,0,0,31,7,0,0,79,10,0,0,30,7,0,0,94,10,0,0,92,10,0,0,90,10,0,0,97,10,0,0,211,10,0,0,63,7,0,0,205,10,0,0,202,10,0,0,58,7,0,0,57,7,0,0,191,10,0,0,189,10,0,0,187,10,0,0,194,10,0,0,97,1,0,0,100,8,0,0,88,1,0,0,86,1,0,0,80,1,0,0,94,8,0,0,76,1,0,0,92,8,0,0,89,1,0,0,95,5,0,0,93,5,0,0,50,1,0,0,82,8,0,0,43,1,0,0,80,8,0,0,39,1,0,0,77,8,0,0,63,1,0,0,58,1,0,0,55,1,0,0,84,8,0,0,74,5,0,0,72,5,0,0,69,5,0,0,76,5,0,0,6,1,0,0,1,1,0,0,53,8,0,0,253,0,0,0,48,8,0,0,45,8,0,0,18,1,0,0,17,1,0,0,11,1,0,0,59,8,0,0,7,1,0,0,56,8,0,0,24,1,0,0,22,1,0,0,19,1,0,0,36,5,0,0,31,5,0,0,28,5,0,0,40,5,0,0,38,5,0,0,4,8,0,0,202,0,0,0,2,8,0,0,252,7,0,0,248,7,0,0,219,0,0,0,15,8,0,0,212,0,0,0,12,8,0,0,208,0,0,0,7,8,0,0,224,0,0,0,221,0,0,0,18,8,0,0,236,4,0,0,234,4,0,0,228,4,0,0,231,0,0,0,224,4,0,0,229,0,0,0,242,4,0,0,240,4,0,0,237,4,0,0,244,4,0,0,155,0,0,0,206,7,0,0,153,0,0,0,204,7,0,0,202,7,0,0,199,7,0,0,196,7,0,0,165,0,0,0,164,0,0,0,215,7,0,0,162,0,0,0,214,7,0,0,159,0,0,0,211,7,0,0,208,7,0,0,172,0,0,0,171,0,0,0,169,0,0,0,220,7,0,0,166,0,0,0,218,7,0,0,162,4,0,0,160,4,0,0,158,4,0,0,155,4,0,0,175,0,0,0,152,4,0,0,173,0,0,0,168,4,0,0,167,4,0,0,165,4,0,0,163,4,0,0,176,0,0,0,170,4,0,0,169,4,0,0,9,9,0,0,3,9,0,0,1,9,0,0,80,2,0,0,77,2,0,0,246,8,0,0,244,8,0,0,241,8,0,0,66,2,0,0,60,2,0,0,56,2,0,0,249,8,0,0,68,2,0,0,55,6,0,0,224,8,0,0,219,8,0,0,216,8,0,0,11,6,0,0,26,2,0,0,24,2,0,0,17,2,0,0,230,8,0,0,13,2,0,0,227,8,0,0,35,2,0,0,32,2,0,0,29,2,0,0,38,6,0,0,35,6,0,0,189,8,0,0,187,8,0,0,181,8,0,0,213,5,0,0,177,8,0,0,209,5,0,0,222,1,0,0,199,8,0,0,214,1,0,0,196,8,0,0,209,1,0,0,193,8,0,0,237,1,0,0,232,1,0,0,228,1,0,0,202,8,0,0,242,1,0,0,239,1,0,0,0,6,0,0,253,5,0,0,250,5,0,0,3,6,0,0,139,8,0,0,138,8,0,0,136,8,0,0,134,8,0,0,152,5,0,0,131,8,0,0,150,5,0,0,128,8,0,0,147,5,0,0,158,1,0,0,156,1,0,0,149,8,0,0,153,1,0,0,147,8,0,0,149,1,0,0,145,8,0,0,142,8,0,0,170,1,0,0,168,1,0,0,165,1,0,0,155,8,0,0,162,1,0,0,153,8,0,0,175,1,0,0,173,1,0,0,193,5,0,0,191,5,0,0,189,5,0,0,186,5,0,0,178,1,0,0,197,5,0,0,195,5,0,0,174,9,0,0,168,9,0,0,166,9,0,0,155,9,0,0,153,9,0,0,150,9,0,0,158,9,0,0,35,3,0,0,133,9,0,0,128,9,0,0,125,9,0,0,190,6,0,0,139,9,0,0,136,9,0,0,24,3,0,0,21,3,0,0,17,3,0,0,97,9,0,0,95,9,0,0,89,9,0,0,166,6,0,0,85,9,0,0,163,6,0,0,107,9,0,0,104,9,0,0,101,9,0,0,233,2,0,0,229,2,0,0,111,9,0,0,246,2,0,0,243,2,0,0,185,6,0,0,54,9,0,0,53,9,0,0,51,9,0,0,49,9,0,0,125,6,0,0,46,9,0,0,124,6,0,0,43,9,0,0,121,6,0,0,64,9,0,0,62,9,0,0,60,9,0,0,57,9,0,0,130,6,0,0,178,2,0,0,175,2,0,0,70,9,0,0,171,2,0,0,68,9,0,0,189,2,0,0,186,2,0,0,193,2,0,0,155,6,0,0,153,6,0,0,59,10,0,0,57,10,0,0,50,10,0,0,48,10,0,0,45,10,0,0,53,10,0,0,33,10,0,0,28,10,0,0,25,10,0,0,11,7,0,0,39,10,0,0,36,10,0,0,3,10,0,0,1,10,0,0,251,9,0,0,5,7,0,0,247,9,0,0,3,7,0,0,13,10,0,0,10,10,0,0,7,10,0,0,17,10,0,0,221,9,0,0,220,9,0,0,218,9,0,0,216,9,0,0,250,6,0,0,213,9,0,0,249,6,0,0,210,9,0,0,247,6,0,0,231,9,0,0,229,9,0,0,227,9,0,0,224,9,0,0,252,6,0,0,237,9,0,0,235,9,0,0,138,3,0,0,135,3,0,0,143,3,0,0,161,10,0,0,52,7,0,0,155,10,0,0,152,10,0,0,46,7,0,0,44,7,0,0,139,10,0,0,136,10,0,0,133,10,0,0,143,10,0,0,35,7,0,0,34,7,0,0,32,7,0,0,113,10,0,0,111,10,0,0,109,10,0,0,106,10,0,0,37,7,0,0,119,10,0,0,117,10,0,0,66,7,0,0,65,7,0,0,212,10,0,0,62,7,0,0,61,7,0,0,59,7,0,0,64,7,0,0,206,10,0,0,204,10,0,0,143,0,0,0,195,7,0,0,139,0,0,0,194,7,0,0,135,0,0,0,133,0,0,0,131,0,0,0,192,7,0,0,128,0,0,0,191,7,0,0,125,0,0,0,189,7,0,0,138,0,0,0,137,0,0,0,136,0,0,0,193,7,0,0,109,4,0,0,108,4,0,0,106,4,0,0,112,0,0,0,110,0,0,0,182,7,0,0,107,0,0,0,181,7,0,0,104,0,0,0,179,7,0,0,177,7,0,0,122,0,0,0,121,0,0,0,119,0,0,0,117,0,0,0,185,7,0,0,114,0,0,0,184,7,0,0,124,0,0,0,91,4,0,0,90,4,0,0,88,4,0,0,86,4,0,0,93,4,0,0,92,4,0,0,84,0,0,0,83,0,0,0,161,7,0,0,81,0,0,0,160,7,0,0,78,0,0,0,158,7,0,0,156,7,0,0,153,7,0,0,94,0,0,0,93,0,0,0,91,0,0,0,167,7,0,0,88,0,0,0,166,7,0,0,85,0,0,0,163,7,0,0,99,0,0,0,97,0,0,0,95,0,0,0,169,7,0,0,62,4,0,0,61,4,0,0,59,4,0,0,57,4,0,0,54,4,0,0,100,0,0,0,66,4,0,0,65,4,0,0,63,4,0,0,67,4,0,0,49,0,0,0,47,0,0,0,125,7,0,0,44,0,0,0,123,7,0,0,121,7,0,0,118,7,0,0,115,7,0,0,59,0,0,0,134,7,0,0,56,0,0,0,133,7,0,0,53,0,0,0,130,7,0,0,127,7,0,0,66,0,0,0,64,0,0,0,139,7,0,0,61,0,0,0,137,7,0,0,18,4,0,0,16,4,0,0,14,4,0,0,71,0,0,0,11,4,0,0,70,0,0,0,8,4,0,0,68,0,0,0,24,4,0,0,23,4,0,0,21,4,0,0,19,4,0,0,26,4,0,0,25,4,0,0,12,0,0,0,10,0,0,0,77,7,0,0,75,7,0,0,72,7,0,0,69,7,0,0,21,0,0,0,88,7,0,0,19,0,0,0,85,7,0,0,82,7,0,0,79,7,0,0,28,0,0,0,96,7,0,0,25,0,0,0,94,7,0,0,22,0,0,0,91,7,0,0,214,3,0,0,212,3,0,0,209,3,0,0,206,3,0,0,32,0,0,0,30,0,0,0,223,3,0,0,221,3,0,0,219,3,0,0,216,3,0,0,34,0,0,0,227,3,0,0,226,3,0,0,224,3,0,0,103,8,0,0,102,8,0,0,99,8,0,0,98,8,0,0,96,8,0,0,100,1,0,0,99,1,0,0,98,1,0,0,101,8,0,0,91,8,0,0,90,8,0,0,88,8,0,0,86,8,0,0,79,5,0,0,87,1,0,0,85,1,0,0,82,1,0,0,95,8,0,0,79,1,0,0,93,8,0,0,92,1,0,0,91,1,0,0,90,1,0,0,96,5,0,0,94,5,0,0,76,8,0,0,75,8,0,0,73,8,0,0,71,8,0,0,46,5,0,0,68,8,0,0,44,5,0,0,54,1,0,0,52,1,0,0,49,1,0,0,83,8,0,0,46,1,0,0,81,8,0,0,42,1,0,0,79,8,0,0,64,1,0,0,62,1,0,0,60,1,0,0,57,1,0,0,85,8,0,0,66,1,0,0,65,1,0,0,75,5,0,0,73,5,0,0,71,5,0,0,77,5,0,0,44,8,0,0,43,8,0,0,41,8,0,0,39,8,0,0,252,4,0,0,36,8,0,0,250,4,0,0,33,8,0,0,247,4,0,0,3,1,0,0,54,8,0,0,0,1,0,0,52,8,0,0,252,0,0,0,50,8,0,0,47,8,0,0,16,1,0,0,13,1,0,0,60,8,0,0,10,1,0,0,58,8,0,0,25,1,0,0,23,1,0,0,21,1,0,0,37,5,0,0,35,5,0,0,33,5,0,0,30,5,0,0,26,1,0,0,41,5,0,0,39,5,0,0,247,7,0,0,245,7,0,0,243,7,0,0,240,7,0,0,179,4,0,0,237,7,0,0,176,4,0,0,173,4,0,0,207,0,0,0,5,8,0,0,205,0,0,0,3,8,0,0,201,0,0,0,1,8,0,0,254,7,0,0,251,7,0,0,220,0,0,0,218,0,0,0,16,8,0,0,215,0,0,0,14,8,0,0,211,0,0,0,11,8,0,0,228,0,0,0,226,0,0,0,223,0,0,0,21,8,0,0,235,4,0,0,233,4,0,0,230,4,0,0,232,0,0,0,227,4,0,0,230,0,0,0,243,4,0,0,241,4,0,0,239,4,0,0,12,9,0,0,11,9,0,0,8,9,0,0,7,9,0,0,5,9,0,0,10,9,0,0,0,9,0,0,255,8,0,0,253,8,0,0,251,8,0,0,57,6,0,0,4,9,0,0,2,9,0,0,78,2,0,0,240,8,0,0,239,8,0,0,237,8,0,0,235,8,0,0,42,6,0,0,232,8,0,0,41,6,0,0,247,8,0,0,245,8,0,0,243,8,0,0,67,2,0,0,65,2,0,0,62,2,0,0,59,2,0,0,250,8,0,0,70,2,0,0,69,2,0,0,56,6,0,0,215,8,0,0,214,8,0,0,212,8],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+10240);allocate([210,8,0,0,9,6,0,0,207,8,0,0,8,6,0,0,204,8,0,0,5,6,0,0,225,8,0,0,223,8,0,0,221,8,0,0,218,8,0,0,14,6,0,0,23,2,0,0,20,2,0,0,231,8,0,0,16,2,0,0,229,8,0,0,34,2,0,0,31,2,0,0,37,2,0,0,39,6,0,0,37,6,0,0,176,8,0,0,174,8,0,0,172,8,0,0,206,5,0,0,169,8,0,0,205,5,0,0,166,8,0,0,202,5,0,0,199,5,0,0,190,8,0,0,188,8,0,0,186,8,0,0,183,8,0,0,216,5,0,0,180,8,0,0,212,5,0,0,224,1,0,0,221,1,0,0,200,8,0,0,217,1,0,0,198,8,0,0,213,1,0,0,195,8,0,0,234,1,0,0,231,1,0,0,203,8,0,0,241,1,0,0,1,6,0,0,255,5,0,0,252,5,0,0,173,9,0,0,172,9,0,0,170,9,0,0,175,9,0,0,165,9,0,0,164,9,0,0,162,9,0,0,160,9,0,0,194,6,0,0,169,9,0,0,167,9,0,0,149,9,0,0,148,9,0,0,146,9,0,0,144,9,0,0,193,6,0,0,141,9,0,0,192,6,0,0,156,9,0,0,154,9,0,0,152,9,0,0,159,9,0,0,37,3,0,0,36,3,0,0,124,9,0,0,123,9,0,0,121,9,0,0,119,9,0,0,189,6,0,0,116,9,0,0,188,6,0,0,113,9,0,0,186,6,0,0,134,9,0,0,132,9,0,0,130,9,0,0,127,9,0,0,191,6,0,0,140,9,0,0,138,9,0,0,25,3,0,0,23,3,0,0,20,3,0,0,27,3,0,0,84,9,0,0,82,9,0,0,80,9,0,0,161,6,0,0,77,9,0,0,160,6,0,0,74,9,0,0,158,6,0,0,156,6,0,0,98,9,0,0,96,9,0,0,94,9,0,0,91,9,0,0,167,6,0,0,88,9,0,0,165,6,0,0,108,9,0,0,106,9,0,0,103,9,0,0,239,2,0,0,236,2,0,0,232,2,0,0,112,9,0,0,247,2,0,0,245,2,0,0,15,7,0,0,60,10,0,0,58,10,0,0,14,7,0,0,13,7,0,0,51,10,0,0,49,10,0,0,47,10,0,0,54,10,0,0,10,7,0,0,9,7,0,0,7,7,0,0,34,10,0,0,32,10,0,0,30,10,0,0,27,10,0,0,12,7,0,0,40,10,0,0,38,10,0,0,2,7,0,0,1,7,0,0,255,6,0,0,253,6,0,0,4,10,0,0,2,10,0,0,0,10,0,0,253,9,0,0,6,7,0,0,250,9,0,0,4,7,0,0,14,10,0,0,12,10,0,0,9,10,0,0,18,10,0,0,55,7,0,0,54,7,0,0,162,10,0,0,51,7,0,0,50,7,0,0,48,7,0,0,53,7,0,0,156,10,0,0,154,10,0,0,43,7,0,0,42,7,0,0,40,7,0,0,38,7,0,0,47,7,0,0,45,7,0,0,140,10,0,0,138,10,0,0,135,10,0,0,144,10,0,0,25,7,0,0,19,7,0,0,18,7,0,0,129,3,0,0,94,3,0,0,241,6,0,0,61,3,0,0,58,3,0,0,70,3,0,0,224,6,0,0,222,6,0,0,40,3,0,0,177,9,0,0,205,6,0,0,204,6,0,0,202,6,0,0,207,6,0,0,64,10,0,0,26,7,0,0,166,10,0,0,216,10,0,0,14,3,0,0,228,2,0,0,225,2,0,0,179,6,0,0,174,2,0,0,167,2,0,0,183,2,0,0,146,6,0,0,144,6,0,0,127,2,0,0,116,2,0,0,35,9,0,0,135,2,0,0,132,2,0,0,109,6,0,0,107,6,0,0,104,6,0,0,112,6,0,0,90,2,0,0,88,2,0,0,85,2,0,0,83,2,0,0,16,9,0,0,81,2,0,0,14,9,0,0,97,2,0,0,95,2,0,0,92,2,0,0,75,6,0,0,74,6,0,0,72,6,0,0,70,6,0,0,101,2,0,0,79,6,0,0,77,6,0,0,24,9,0,0,158,3,0,0,156,3,0,0,124,3,0,0,118,3,0,0,131,3,0,0,89,3,0,0,82,3,0,0,201,9,0,0,242,6,0,0,56,3,0,0,55,3,0,0,53,3,0,0,51,3,0,0,184,9,0,0,50,3,0,0,182,9,0,0,65,3,0,0,63,3,0,0,60,3,0,0,72,3,0,0,225,6,0,0,223,6,0,0,89,10,0,0,72,10,0,0,70,10,0,0,186,10,0,0,174,10,0,0,172,10,0,0,222,10,0,0,221,10,0,0,58,2,0,0,55,2,0,0,51,6,0,0,19,2,0,0,15,2,0,0,11,2,0,0,28,2,0,0,30,6,0,0,28,6,0,0,220,1,0,0,211,1,0,0,207,1,0,0,192,8,0,0,230,1,0,0,227,1,0,0,244,5,0,0,241,5,0,0,238,5,0,0,249,5,0,0,155,1,0,0,147,1,0,0,144,8,0,0,143,1,0,0,141,8,0,0,167,1,0,0,160,1,0,0,182,5,0,0,177,5,0,0,174,5,0,0,172,1,0,0,188,5,0,0,185,5,0,0,162,8,0,0,110,1,0,0,107,1,0,0,110,8,0,0,104,1,0,0,108,8,0,0,101,1,0,0,105,8,0,0,120,1,0,0,117,1,0,0,114,1,0,0,115,8,0,0,130,5,0,0,129,5,0,0,127,5,0,0,125,5,0,0,126,1,0,0,122,5,0,0,124,1,0,0,137,5,0,0,135,5,0,0,132,5,0,0,141,5,0,0,127,8,0,0,126,8,0,0,9,3,0,0,6,3,0,0,3,3,0,0,16,3,0,0,220,2,0,0,213,2,0,0,210,2,0,0,100,9,0,0,231,2,0,0,180,6,0,0,164,2,0,0,162,2,0,0,156,2,0,0,59,9,0,0,153,2,0,0,56,9,0,0,173,2,0,0,148,6,0,0,145,6,0,0,114,2,0,0,112,2,0,0,110,2,0,0,31,9,0,0,108,2,0,0,29,9,0,0,105,2,0,0,26,9,0,0,129,2,0,0,123,2,0,0,137,2,0,0,110,6,0,0,108,6,0,0,106,6,0,0,6,10,0,0,160,3,0,0,157,3,0,0,226,9,0,0,223,9,0,0,126,3,0,0,123,3,0,0,120,3,0,0,197,9,0,0,195,9,0,0,192,9,0,0,90,3,0,0,88,3,0,0,86,3,0,0,83,3,0,0,243,6,0,0,132,10,0,0,108,10,0,0,105,10,0,0,85,10,0,0,83,10,0,0,80,10,0,0,91,10,0,0,208,10,0,0,199,10,0,0,197,10,0,0,184,10,0,0,183,10,0,0,181,10,0,0,188,10,0,0,96,1,0,0,102,5,0,0,84,1,0,0,81,1,0,0,77,1,0,0,91,5,0,0,89,5,0,0,51,1,0,0,44,1,0,0,40,1,0,0,78,8,0,0,59,1,0,0,56,1,0,0,67,5,0,0,62,5,0,0,70,5,0,0,5,1,0,0,2,1,0,0,250,0,0,0,49,8,0,0,246,0,0,0,46,8,0,0,15,1,0,0,12,1,0,0,8,1,0,0,26,5,0,0,21,5,0,0,18,5,0,0,20,1,0,0,32,5,0,0,29,5,0,0,67,8,0,0,203,0,0,0,0,8,0,0,195,0,0,0,253,7,0,0,191,0,0,0,249,7,0,0,213,0,0,0,209,0,0,0,8,8,0,0,222,4,0,0,220,4,0,0,214,4,0,0,225,0,0,0,210,4,0,0,222,0,0,0,232,4,0,0,229,4,0,0,225,4,0,0,238,4,0,0,32,8,0,0,31,8,0,0,154,0,0,0,205,7,0,0,150,0,0,0,203,7,0,0,147,0,0,0,200,7,0,0,197,7,0,0,163,0,0,0,160,0,0,0,212,7,0,0,156,0,0,0,209,7,0,0,151,4,0,0,150,4,0,0,148,4,0,0,146,4,0,0,143,4,0,0,170,0,0,0,140,4,0,0,167,0,0,0,161,4,0,0,159,4,0,0,156,4,0,0,153,4,0,0,174,0,0,0,166,4,0,0,164,4,0,0,233,7,0,0,232,7,0,0,230,7,0,0,75,2,0,0,74,2,0,0,52,2,0,0,47,2,0,0,44,2,0,0,242,8,0,0,61,2,0,0,52,6,0,0,8,2,0,0,6,2,0,0,0,2,0,0,220,8,0,0,252,1,0,0,217,8,0,0,18,2,0,0,32,6,0,0,29,6,0,0,205,1,0,0,201,1,0,0,185,8,0,0,194,1,0,0,182,8,0,0,190,1,0,0,178,8,0,0,223,1,0,0,215,1,0,0,233,1,0,0,246,5,0,0,243,5,0,0,240,5,0,0,141,1,0,0,139,1,0,0,137,8,0,0,136,1,0,0,135,8,0,0,133,1,0,0,132,8,0,0,129,8,0,0,154,1,0,0,146,8,0,0,146,1,0,0,166,1,0,0,183,5,0,0,181,5,0,0,179,5,0,0,176,5,0,0,190,5,0,0,151,9,0,0,31,3,0,0,129,9,0,0,126,9,0,0,11,3,0,0,8,3,0,0,5,3,0,0,93,9,0,0,90,9,0,0,86,9,0,0,222,2,0,0,216,2,0,0,212,2,0,0,234,2,0,0,181,6,0,0,52,9,0,0,50,9,0,0,47,9,0,0,44,9,0,0,122,6,0,0,165,2,0,0,163,2,0,0,161,2,0,0,158,2,0,0,155,2,0,0,176,2,0,0,149,6,0,0,147,6,0,0,46,10,0,0,29,10,0,0,26,10,0,0,255,9,0,0,252,9,0,0,248,9,0,0,159,3,0,0,219,9,0,0,217,9,0,0,214,9,0,0,211,9,0,0,248,6,0,0,228,9,0,0,127,3,0,0,125,3,0,0,122,3,0,0,158,10,0,0,149,10,0,0,147,10,0,0,129,10,0,0,127,10,0,0,124,10,0,0,103,10,0,0,102,10,0,0,100,10,0,0,98,10,0,0,33,7,0,0,107,10,0,0,209,10,0,0,60,7,0,0,200,10,0,0,198,10,0,0,142,0,0,0,141,0,0,0,115,4,0,0,114,4,0,0,134,0,0,0,132,0,0,0,129,0,0,0,126,0,0,0,190,7,0,0,105,4,0,0,104,4,0,0,102,4,0,0,107,4,0,0,113,0,0,0,111,0,0,0,108,0,0,0,105,0,0,0,180,7,0,0,101,0,0,0,178,7,0,0,120,0,0,0,118,0,0,0,115,0,0,0,85,4,0,0,84,4,0,0,82,4,0,0,80,4,0,0,123,0,0,0,89,4,0,0,87,4,0,0,82,0,0,0,79,0,0,0,159,7,0,0,75,0,0,0,157,7,0,0,72,0,0,0,154,7,0,0,92,0,0,0,89,0,0,0,86,0,0,0,164,7,0,0,53,4,0,0,52,4,0,0,50,4,0,0,48,4,0,0,98,0,0,0,45,4,0,0,96,0,0,0,60,4,0,0,58,4,0,0,55,4,0,0,64,4,0,0,176,7,0,0,175,7,0,0,48,0,0,0,45,0,0,0,124,7,0,0,42,0,0,0,122,7,0,0,39,0,0,0,119,7,0,0,116,7,0,0,60,0,0,0,57,0,0,0,54,0,0,0,131,7,0,0,50,0,0,0,128,7,0,0,7,4,0,0,6,4,0,0,4,4,0,0,2,4,0,0,67,0,0,0,255,3,0,0,65,0,0,0,252,3,0,0,62,0,0,0,17,4,0,0,15,4,0,0,12,4,0,0,9,4,0,0,69,0,0,0,22,4,0,0,20,4,0,0,152,7,0,0,151,7,0,0,149,7,0,0,11,0,0,0,9,0,0,0,76,7,0,0,7,0,0,0,73,7,0,0,70,7,0,0,67,7,0,0,20,0,0,0,86,7,0,0,16,0,0,0,83,7,0,0,13,0,0,0,80,7,0,0,202,3,0,0,200,3,0,0,198,3,0,0,195,3,0,0,29,0,0,0,192,3,0,0,26,0,0,0,23,0,0,0,215,3,0,0,213,3,0,0,210,3,0,0,207,3,0,0,33,0,0,0,203,3,0,0,31,0,0,0,222,3,0,0,220,3,0,0,217,3,0,0,114,7,0,0,112,7,0,0,110,7,0,0,225,3,0,0,95,1,0,0,97,8,0,0,103,5,0,0,75,1,0,0,74,1,0,0,72,1,0,0,70,1,0,0,89,8,0,0,67,1,0,0,87,8,0,0,83,1,0,0,92,5,0,0,90,5,0,0,38,1,0,0,37,1,0,0,35,1,0,0,33,1,0,0,74,8,0,0,30,1,0,0,72,8,0,0,27,1,0,0,69,8,0,0,53,1,0,0,47,1,0,0,61,1,0,0,68,5,0,0,66,5,0,0,64,5,0,0,245,0,0,0,244,0,0,0,242,0,0,0,42,8,0,0,239,0,0,0,40,8,0,0,236,0,0,0,37,8,0,0,34,8,0,0,4,1,0,0,51,8,0,0,249,0,0,0,14,1,0,0,27,5,0,0,25,5,0,0,23,5,0,0,20,5,0,0,34,5,0,0,189,0,0,0,246,7,0,0,186,0,0,0,244,7,0,0,183,0,0,0,241,7,0,0,238,7,0,0,234,7,0,0,206,0,0,0,198,0,0,0,255,7,0,0,194,0,0,0,216,0,0,0,223,4,0,0,221,4,0,0,219,4,0,0,216,4,0,0,227,0,0,0,213,4,0,0,231,4,0,0,6,9,0,0,254,8,0,0,252,8,0,0,238,8,0,0,236,8,0,0,233,8,0,0,53,2,0,0,51,2,0,0,49,2,0,0,46,2,0,0,63,2,0,0,53,6,0,0,213,8,0,0,211,8,0,0,208,8,0,0,205,8,0,0,6,6,0,0,9,2,0,0,7,2,0,0,5,2,0,0,2,2,0,0,222,8,0,0,255,1,0,0,21,2,0,0,33,6,0,0,31,6,0,0,175,8,0,0,173,8,0,0,170,8,0,0,167,8,0,0,203,5,0,0,163,8,0,0,200,5,0,0,203,1,0,0,200,1,0,0,197,1,0,0,184,8,0,0,193,1,0,0,218,1,0,0,235,1,0,0,247,5,0,0,245,5,0,0,242,5,0,0,171,9,0,0,163,9,0,0,161,9,0,0,147,9,0,0,145,9,0,0,142,9,0,0,33,3,0,0,32,3,0,0,122,9,0,0,120,9,0,0,117,9,0,0,114,9,0,0,187,6,0,0,131,9,0,0,12,3,0,0,10,3,0,0,7,3,0,0,83,9,0,0,81,9,0,0,78,9,0,0,75,9,0,0,159,6,0,0,71,9,0,0,157,6,0,0,92,9,0,0,223,2,0,0,221,2,0,0,218,2,0,0,215,2,0,0,237,2,0,0,182,6,0,0,56,10,0,0,55,10,0,0,44,10,0,0,43,10,0,0,41,10,0,0,24,10,0,0,23,10,0,0,21,10,0,0,19,10,0,0,8,7,0,0,31,10,0,0,246,9,0,0,245,9,0,0,243,9,0,0,241,9,0,0,0,7,0,0,238,9,0,0,254,6,0,0,254,9,0,0,161,3,0,0,159,10,0,0,49,7,0,0,150,10,0,0,148,10,0,0,41,7,0,0,39,7,0,0,130,10,0,0,128,10,0,0,126,10,0,0,23,7,0,0,17,7,0,0,16,7,0,0,238,6,0,0,220,6,0,0,218,6,0,0,201,6,0,0,200,6,0,0,198,6,0,0,203,6,0,0,24,7,0,0,175,6,0,0,140,6,0,0,138,6,0,0,121,2,0,0,117,2,0,0,102,6,0,0,100,6,0,0,97,6,0,0,105,6,0,0,86,2,0,0,69,6,0,0,68,6,0,0,66,6,0,0,64,6,0,0,93,2,0,0,73,6,0,0,71,6,0,0,23,9,0,0,119,3,0,0,85,3,0,0,239,6,0,0,54,3,0,0,52,3,0,0,221,6,0,0,219,6,0,0,48,6,0,0,12,2,0,0,24,6,0,0,22,6,0,0,212,1,0,0,208,1,0,0,234,5,0,0,231,5,0,0,228,5,0,0,239,5,0,0,152,1,0,0,148,1,0,0,144,1,0,0,172,5,0,0,167,5,0,0,164,5,0,0,161,1,0,0,178,5,0,0,175,5,0,0,160,8,0,0,108,1,0,0,105,1,0,0,102,1,0,0,106,8,0,0,121,5,0,0,120,5,0,0,118,5,0,0,116,5,0,0,118,1,0,0,113,5,0,0,115,1,0,0,128,5,0,0,126,5,0,0,123,5,0,0,133,5,0,0,125,8,0,0,124,8,0,0,4,3,0,0,214,2,0,0,211,2,0,0,176,6,0,0,160,2,0,0,157,2,0,0,154,2,0,0,170,2,0,0,142,6,0,0,139,6,0,0,113,2,0,0,111,2,0,0,109,2,0,0,106,2,0,0,27,9,0,0,124,2,0,0,120,2,0,0,103,6,0,0,101,6,0,0,99,6,0,0,152,3,0,0,150,3,0,0,116,3,0,0,112,3,0,0,121,3,0,0,81,3,0,0,80,3,0,0,79,3,0,0,78,3,0,0,193,9,0,0,87,3,0,0,84,3,0,0,240,6,0,0,81,10,0,0,182,10,0,0,227,10,0,0,100,5,0,0,78,1,0,0,87,5,0,0,85,5,0,0,45,1,0,0,41,1,0,0,60,5,0,0,58,5,0,0,55,5,0,0,63,5,0,0,255,0,0,0,251,0,0,0,247,0,0,0,16,5,0,0,11,5,0,0,8,5,0,0,9,1,0,0,22,5,0,0,19,5,0,0,65,8,0,0,204,0,0,0,196,0,0,0,192,0,0,0,250,7,0,0,208,4,0,0,206,4,0,0,200,4,0,0,214,0,0,0,196,4,0,0,210,0,0,0,218,4,0,0,215,4,0,0,211,4,0,0,226,4,0,0,29,8,0,0,27,8,0,0,151,0,0,0,148,0,0,0,201,7,0,0,144,0,0,0,198,7,0,0,139,4,0,0,138,4,0,0,136,4,0,0,134,4,0,0,131,4,0,0,161,0,0,0,128,4,0,0,157,0,0,0,149,4,0,0,147,4,0,0,144,4,0,0,141,4,0,0,168,0,0,0,157,4,0,0,154,4,0,0,229,7,0,0,228,7,0,0,226,7,0,0,231,7,0,0,73,2,0,0,48,2,0,0,45,2,0,0,49,6,0,0,4,2,0,0,253,1,0,0,26,6,0,0,23,6,0,0,202,1,0,0,191,1,0,0,179,8,0,0,216,1,0,0,236,5,0,0,233,5,0,0,230,5,0,0,142,1,0,0,140,1,0,0,137,1,0,0,134,1,0,0,133,8,0,0,130,1,0,0,130,8,0,0,151,1,0,0,173,5,0,0,171,5,0,0,169,5,0,0,166,5,0,0,164,1,0,0,180,5,0,0,161,8,0,0,1,3,0,0,252,2,0,0,208,2,0,0,200,2,0,0,87,9,0,0,217,2,0,0,177,6,0,0,152,2,0,0,151,2,0,0,149,2,0,0,147,2,0,0,48,9,0,0,144,2,0,0,45,9,0,0,159,2,0,0,143,6,0,0,141,6,0,0,249,9,0,0,154,3,0,0,151,3,0,0,215,9,0,0,212,9,0,0,117,3,0,0,115,3,0,0,113,3,0,0,125,10,0,0,101,10,0,0,99,10,0,0,207,10,0,0,196,10,0,0,195,10,0,0,140,0,0,0,113,4,0,0,112,4,0,0,130,0,0,0,127,0,0,0,101,4,0,0,100,4,0,0,98,4,0,0,103,4,0,0,109,0,0,0,106,0,0,0,102,0,0,0,79,4,0,0,78,4,0,0,76,4,0,0,74,4,0,0,116,0,0,0,83,4,0,0,81,4,0,0,188,7,0,0,80,0,0,0,76,0,0,0,73,0,0,0,155,7,0,0,44,4,0,0,43,4,0,0,41,4,0,0,39,4,0,0,90,0,0,0,36,4,0,0,87,0,0,0,51,4,0,0,49,4,0,0,46,4,0,0,56,4,0,0,174,7,0,0,173,7,0,0,46,0,0,0,43,0,0,0,40,0,0,0,120,7,0,0,36,0,0,0,117,7,0,0,251,3,0,0,250,3,0,0,248,3,0,0,246,3,0,0,58,0,0,0,243,3,0,0,55,0,0,0,240,3,0,0,51,0,0,0,5,4,0,0,3,4,0,0,0,4,0,0,253,3,0,0,63,0,0,0,13,4,0,0,10,4,0,0,148,7,0,0,147,7,0,0,145,7,0,0,150,7,0,0,8,0,0,0,74,7,0,0,4,0,0,0,71,7,0,0,1,0,0,0,68,7,0,0,188,3,0,0,186,3,0,0,184,3,0,0,181,3,0,0,178,3,0,0,17,0,0,0,14,0,0,0,201,3,0,0,199,3,0,0,196,3,0,0,193,3,0,0,27,0,0,0,189,3,0,0,24,0,0,0,211,3,0,0,208,3,0,0,204,3,0,0,109,7,0,0,108,7,0,0,106,7,0,0,104,7,0,0,218,3,0,0,113,7,0,0,111,7,0,0,94,1,0,0,93,1,0,0,101,5,0,0,73,1,0,0,71,1,0,0,68,1,0,0,88,5,0,0,86,5,0,0,36,1,0,0,34,1,0,0,31,1,0,0,28,1,0,0,70,8,0,0,48,1,0,0,61,5,0,0,59,5,0,0,57,5,0,0,65,5,0,0,243,0,0,0,240,0,0,0,237,0,0,0,38,8,0,0,233,0,0,0,35,8,0,0,254,0,0,0,17,5,0,0,15,5,0,0,13,5,0,0,10,5,0,0,24,5,0,0,66,8,0,0,190,0,0,0,187,0,0,0,184,0,0,0,242,7,0,0,180,0,0,0,239,7,0,0,177,0,0,0,235,7,0,0,199,0,0,0,209,4,0,0,207,4,0,0,205,4,0,0,202,4,0,0,217,0,0,0,199,4,0,0,217,4,0,0,30,8,0,0,28,8,0,0,72,2,0,0,43,2,0,0,42,2,0,0,40,2,0,0,38,2,0,0,234,8,0,0,50,2,0,0,50,6,0,0,251,1,0,0,250,1,0,0,248,1,0,0,246,1,0,0,209,8,0,0,243,1,0,0,206,8,0,0,3,2,0,0,27,6,0,0,25,6,0,0,189,1,0,0,187,1,0,0,185,1,0,0,171,8,0,0,182,1,0,0,168,8,0,0,179,1,0,0,164,8,0,0,204,1,0,0,198,1,0,0,219,1,0,0,237,5,0,0,235,5,0,0,232,5,0,0,143,9,0,0,30,3,0,0,29,3,0,0,118,9,0,0,115,9,0,0,2,3,0,0,0,3,0,0,254,2,0,0,79,9,0,0,76,9,0,0,72,9,0,0,209,2,0,0,207,2,0,0,205,2,0,0,202,2,0,0,219,2,0,0,178,6,0,0,42,10,0,0,22,10,0,0,20,10,0,0,244,9,0,0,242,9,0,0,239,9,0,0,155,3,0,0,153,3,0,0,157,10,0,0,146,10,0,0,145,10,0,0,123,10,0,0,122,10,0,0,120,10,0,0,235,6,0,0,216,6,0,0,214,6,0,0,197,6,0,0,196,6,0,0,195,6,0,0,199,6,0,0,22,7,0,0,171,6,0,0,134,6,0,0,132,6,0,0,95,6,0,0,93,6,0,0,90,6,0,0,98,6,0,0,63,6,0,0,62,6,0,0,60,6,0,0,58,6,0,0,67,6,0,0,65,6,0,0,22,9,0,0,236,6,0,0,217,6,0,0,215,6,0,0,45,6,0,0,18,6,0,0,16,6,0,0,224,5,0,0,221,5,0,0,218,5,0,0,229,5,0,0,162,5,0,0,157,5,0,0,154,5,0,0,145,1,0,0,168,5,0,0,165,5,0,0,158,8,0,0,112,5,0,0,111,5,0,0,109,5,0,0,107,5,0,0,104,5,0,0,103,1,0,0,119,5,0,0,117,5,0,0,114,5,0,0,124,5,0,0,123,8,0,0,122,8,0,0,172,6,0,0,136,6,0,0,133,6,0,0,107,2,0,0,96,6,0,0,94,6,0,0,92,6,0,0,237,6,0,0,98,5,0,0,83,5,0,0,81,5,0,0,53,5,0,0,48,5,0,0,56,5,0,0,6,5,0,0,1,5,0,0,254,4,0,0,248,0,0,0,12,5,0,0,9,5,0,0,63,8,0,0,194,4,0,0,192,4,0,0,186,4,0,0,197,0,0,0,182,4,0,0,193,0,0,0,204,4,0,0,201,4,0,0,197,4,0,0,212,4,0,0,25,8,0,0,23,8,0,0,127,4,0,0,126,4,0,0,124,4,0,0,122,4,0,0,152,0,0,0,119,4,0,0,149,0,0,0,116,4,0,0,145,0,0,0,137,4,0,0,135,4,0,0,132,4,0,0,129,4,0,0,158,0,0,0,145,4,0,0,142,4,0,0,225,7,0,0,224,7,0,0,222,7,0,0,227,7,0,0,46,6,0,0,254,1,0,0,20,6,0,0,17,6,0,0,196,1,0,0,192,1,0,0,226,5,0,0,220,5,0,0,138,1,0,0,135,1,0,0,131,1,0,0,163,5,0,0,161,5,0,0,159,5,0,0,156,5,0,0,170,5,0,0,159,8,0,0,253,2,0,0,204,2,0,0,201,2,0,0,173,6,0,0,150,2,0,0,148,2,0,0,145,2,0,0,137,6,0,0,135,6,0,0,148,3,0,0,146,3,0,0,111,3,0,0,110,3,0,0,109,3,0,0,114,3,0,0,111,4,0,0,110,4,0,0,97,4,0,0,96,4,0,0,94,4,0,0,99,4,0,0,73,4,0,0,72,4,0,0,70,4,0,0,68,4,0,0,103,0,0,0,77,4,0,0,75,4,0,0,187,7,0,0,35,4,0,0,34,4,0,0,32,4,0,0,30,4,0,0,77,0,0,0,27,4,0,0,74,0,0,0,42,4,0,0,40,4,0,0,37,4,0,0,47,4,0,0,172,7,0,0,171,7,0,0,239,3,0,0,238,3,0,0,236,3,0,0,234,3,0,0,231,3,0,0,41,0,0,0,228,3,0,0,37,0,0,0,249,3,0,0,247,3,0,0,244,3,0,0,241,3,0,0,52,0,0,0,1,4,0,0,254,3,0,0,144,7,0,0,143,7,0,0,141,7,0,0,146,7,0,0,174,3,0,0,172,3,0,0,170,3,0,0,167,3,0,0,164,3,0,0,5,0,0,0,2,0,0,0,187,3,0,0,185,3,0,0,182,3,0,0,179,3,0,0,18,0,0,0,175,3,0,0,15,0,0,0,197,3,0,0,194,3,0,0,190,3,0,0,103,7,0,0,102,7,0,0,100,7,0,0,98,7,0,0,205,3,0,0,107,7,0,0,105,7,0,0,99,5,0,0,69,1,0,0,84,5,0,0,82,5,0,0,32,1,0,0,29,1,0,0,54,5,0,0,52,5,0,0,50,5,0,0,241,0,0,0,238,0,0,0,234,0,0,0,7,5,0,0,5,5,0,0,3,5,0,0,0,5,0,0,14,5,0,0,64,8,0,0,188,0,0,0,185,0,0,0,181,0,0,0,178,0,0,0,236,7,0,0,195,4,0,0,193,4,0,0,191,4,0,0,188,4,0,0,200,0,0,0,185,4,0,0,203,4,0,0,26,8,0,0,24,8,0,0,71,2,0,0,41,2,0,0,39,2,0,0,47,6,0,0,249,1,0,0,247,1,0,0,244,1,0,0,1,2,0,0,21,6,0,0,19,6,0,0,188,1,0,0,186,1,0,0,183,1,0,0,180,1,0,0,165,8,0,0,199,1,0,0,195,1,0,0,227,5,0,0,225,5,0,0,222,5,0,0,28,3,0,0,251,2,0,0,250,2,0,0,248,2,0,0,255,2,0,0,199,2,0,0,198,2,0,0,196,2,0,0,194,2,0,0,73,9,0,0,206,2,0,0,203,2,0,0,174,6,0,0,240,9,0,0,149,3,0,0,147,3,0,0,121,10,0,0,91,6,0,0,61,6,0,0,59,6,0,0,21,9,0,0,233,6,0,0,213,6,0,0,211,6,0,0,219,5,0,0,158,5,0,0,155,5,0,0,156,8,0,0,110,5,0,0,108,5,0,0,105,5,0,0,115,5,0,0,121,8,0,0,119,8,0,0,168,6,0,0,129,6,0,0,126,6,0,0,89,6,0,0,87,6,0,0,84,6,0,0,234,6,0,0,49,5,0,0,2,5,0,0,255,4,0,0,61,8,0,0,190,4,0,0,183,4,0,0,198,4,0,0,20,8,0,0,17,8,0,0,125,4,0,0,123,4,0,0,120,4,0,0,117,4,0,0,146,0,0,0,133,4,0,0,130,4,0,0,221,7,0,0,219,7,0,0,216,7,0,0,223,7,0,0,43,6,0,0,13,6,0,0,10,6,0,0,215,5,0,0,207,5,0,0,153,5,0,0,151,5,0,0,148,5,0,0,145,5,0,0,132,1,0,0,160,5,0,0,157,8,0,0,169,6,0,0,146,2,0,0,131,6,0,0,128,6,0,0,95,4,0,0,71,4,0,0,69,4,0,0,186,7,0,0,33,4,0,0,31,4,0,0,28,4,0,0,38,4,0,0,170,7,0,0,168,7,0,0,237,3,0,0,235,3,0,0,232,3,0,0,229,3,0,0,38,0,0,0,245,3,0,0,242,3,0,0,140,7,0,0,138,7,0,0,135,7,0,0,142,7,0,0,173,3,0,0,171,3,0,0,168,3,0,0,165,3,0,0,6,0,0,0,162,3,0,0,3,0,0,0,183,3,0,0,180,3,0,0,176,3,0,0,97,7,0,0,95,7,0,0,92,7,0,0,89,7,0,0,191,3,0,0,101,7,0,0,99,7,0,0,35,0,0,0,97,5,0,0,80,5,0,0,78,5,0,0,47,5,0,0,45,5,0,0,42,5,0,0,51,5,0,0,253,4,0,0,251,4,0,0,248,4,0,0,245,4,0,0,235,0,0,0,4,5,0,0,62,8,0,0,181,4,0,0,180,4,0,0,177,4,0,0,174,4,0,0,182,0,0,0,171,4,0,0,179,0,0,0,189,4,0,0,22,8,0,0,19,8,0,0,44,6,0,0,245,1,0,0,15,6,0,0,12,6,0,0,184,1,0,0,181,1,0,0,217,5,0,0,214,5,0,0,210,5,0,0,223,5,0,0,249,2,0,0,197,2,0,0,195,2,0,0,170,6,0,0,145,3,0,0,144,3,0,0,150,8,0,0,106,5,0,0,116,8,0,0,113,8,0,0,85,6,0,0,230,6,0,0,55,8,0,0,184,4,0,0,10,8,0,0,6,8,0,0,121,4,0,0,118,4,0,0,213,7,0,0,210,7,0,0,207,7,0,0,217,7,0,0,208,5,0,0,149,5,0,0,146,5,0,0,152,8,0,0,162,6,0,0,123,6,0,0,120,6,0,0,183,7,0,0,29,4,0,0,165,7,0,0,162,7,0,0,233,3,0,0,230,3,0,0,132,7,0,0,129,7,0,0,126,7,0,0,136,7,0,0,169,3,0,0,166,3,0,0,163,3,0,0,87,7,0,0,84,7,0,0,81,7,0,0,78,7,0,0,177,3,0,0,93,7,0,0,90,7,0,0,43,5,0,0,249,4,0,0,246,4,0,0,57,8,0,0,178,4,0,0,175,4,0,0,172,4,0,0,187,4,0,0,13,8,0,0,9,8,0,0,40,6,0,0,7,6,0,0,4,6,0,0,204,5,0,0,201,5,0,0,198,5,0,0,211,5,0,0,164,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,2,0,0,120,0,0,0,121,0,0,0,8,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,8,0,0,0,7,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,200,2,0,0,122,0,0,0,123,0,0,0,45,0,0,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,2,0,0,124,0,0,0,125,0,0,0,0,0,0,0,248,2,0,0,126,0,0,0,127,0,0,0,42,0,0,0,2,0,0,0,3,0,0,0,57,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,228,109,0,0,208,109,0,0,12,110,0,0,248,109,0,0,18,84,0,0,18,84,0,0,0,0,0,0,37,81,0,0,1,0,0,0,124,94,0,0,2,0,0,0,75,91,0,0,3,0,0,0,249,69,0,0,4,0,0,0,206,64,0,0,5,0,0,0,151,79,0,0,6,0,0,0,160,74,0,0,7,0,0,0,196,119,0,0,8,0,0,0,243,114,0,0,9,0,0,0,170,125,0,0,10,0,0,0,157,120,0,0,11,0,0,0,47,102,0,0,12,0,0,0,24,99,0,0,13,0,0,0,65,108,0,0,14,0,0,0,118,105,0,0,15,0,0,0,137,22,0,0,16,0,0,0,190,19,0,0,17,0,0,0,231,28,0,0,18,0,0,0,208,25,0,0,19,0,0,0,98,7,0,0,20,0,0,0,85,2,0,0,21,0,0,0,12,13,0,0,22,0,0,0,59,8,0,0,23,0,0,0,95,53,0,0,24,0,0,0,104,48,0,0,25,0,0,0,49,63,0,0,26,0,0,0,6,58,0,0,27,0,0,0,180,36,0,0,28,0,0,0,131,33,0,0,29,0,0,0,218,46,0,0,30,0,0,0,237,43,0,0,31,0,0,0,32,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,0,0,0,0,8,3,0,0,128,0,0,0,129,0,0,0,45,0,0,0,45,0,0,0,148,124,0,0,188,133,0,0,153,154,0,0,211,164,0,0,246,187,0,0,98,199,0,0,71,216,0,0,13,230,0,0,40,249,0,0,120,11,1,0,93,20,1,0,23,42,1,0,50,53,1,0,166,73,1,0,131,86,1,0,201,104,1,0,236,119,1,0,196,142,1,0,225,145,1,0,171,175,1,0,142,176,1,0,26,204,1,0,63,211,1,0,117,237,1,0,80,242,1,0,213,9,2,0,240,22,2,0,186,40,2,0,159,55,2,0,11,75,2,0,46,84,2,0,100,106,2,0,65,117,2,0,105,140,2,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,3,0,0,130,0,0,0,131,0,0,0,0,0,0,0,56,3,0,0,132,0,0,0,133,0,0,0,0,0,0,0,72,3,0,0,134,0,0,0,135,0,0,0,42,0,0,0,43,0,0,0,0,0,0,0,40,6,0,0,136,0,0,0,137,0,0,0,0,0,0,0,24,6,0,0,138,0,0,0,139,0,0,0,0,0,0,0,8,6,0,0,140,0,0,0,141,0,0,0,159,206,0,0,167,206,0,0,148,207,0,0,150,207,0,0,60,239,0,0,152,207,0,0,154,207,0,0,156,207,0,0,158,207,0,0,21,208,0,0,160,207,0,0,162,207,0,0,164,207,0,0,74,239,0,0,17,208,0,0,166,207,0,0,168,207,0,0,170,207,0,0,19,208,0,0,172,207,0,0,174,207,0,0,176,207,0,0,178,207,0,0,180,207,0,0,182,207,0,0,184,207,0,0,186,207,0,0,188,207,0,0,58,207,0,0,132,207,0,0,140,207,0,0,74,207,0,0,159,206,0,0,167,206,0,0,82,207,0,0,84,207,0,0,86,207,0,0,88,207,0,0,90,207,0,0,92,207,0,0,94,207,0,0,96,207,0,0,98,207,0,0,100,207,0,0,102,207,0,0,68,239,0,0,104,207,0,0,106,207,0,0,108,207,0,0,110,207,0,0,112,207,0,0,114,207,0,0,116,207,0,0,118,207,0,0,120,207,0,0,122,207,0,0,124,207,0,0,126,207,0,0,128,207,0,0,130,207,0,0,199,206,0,0,132,207,0,0,140,207,0,0,74,207,0,0,159,206,0,0,167,206,0,0,8,207,0,0,10,207,0,0,12,207,0,0,14,207,0,0,16,207,0,0,18,207,0,0,20,207,0,0,22,207,0,0,24,207,0,0,26,207,0,0,28,207,0,0,30,207,0,0,207,206,0,0,32,207,0,0,34,207,0,0,36,207,0,0,38,207,0,0,40,207,0,0,42,207,0,0,44,207,0,0,46,207,0,0,48,207,0,0,50,207,0,0,52,207,0,0,54,207,0,0,56,207,0,0,58,207,0,0,191,206,0,0,66,207,0,0,74,207,0,0,73,239,0,0,207,206,0,0,209,206,0,0,212,206,0,0,215,206,0,0,245,242,0,0,218,206,0,0,220,206,0,0,222,206,0,0,224,206,0,0,226,206,0,0,228,206,0,0,230,206,0,0,232,206,0,0,234,206,0,0,236,206,0,0,238,206,0,0,189,206,0,0,240,206,0,0,190,232,0,0,242,206,0,0,244,206,0,0,246,206,0,0,248,206,0,0,250,206,0,0,252,206,0,0,254,206,0,0,0,207,0,0,2,207,0,0,4,207,0,0,6,207,0,0,191,206,0,0,159,206,0,0,167,206,0,0,169,206,0,0,171,206,0,0,173,206,0,0,175,206,0,0,177,206,0,0,179,206,0,0,181,206,0,0,183,206,0,0,185,206,0,0,187,206,0,0,189,206,0,0,190,232,0,0,191,206,0,0,199,206,0,0,0,0,0,0,104,0,0,0,240,0,0,0,152,1,0,0,96,2,0,0,0,0,0,0,17,0,0,0,40,0,0,0,51,0,0,0,76,0,0,0,0,0,0,0,128,0,0,0,32,1,0,0,224,1,0,0,192,2,0,0,192,3,0,0,224,4,0,0,32,6,0,0,128,7,0,0,0,9,0,0,160,10,0,0,96,12,0,0,64,14,0,0,64,16,0,0,96,18,0,0,160,20,0,0,0,23,0,0,128,25,0,0,32,28,0,0,224,30,0,0,192,33,0,0,192,36,0,0,224,39,0,0,32,43,0,0,128,46,0,0,0,50,0,0,160,53,0,0,96,57,0,0,64,61,0,0,64,65,0,0,96,69,0,0,160,73,0,0,0,78,0,0,0,0,0,0,21,0,0,0,48,0,0,0,60,0,0,0,88,0,0,0,120,0,0,0,156,0,0,0,196,0,0,0,240,0,0,0,230,0,0,0,16,1,0,0,60,1,0,0,108,1,0,0,160,1,0,0,214,1,0,0,16,2,0,0,76,2,0,0,140,2,0,0,208,2,0,0,22,3,0,0,96,3,0,0,172,3,0,0,252,3,0,0,152,3,0,0,224,3,0,0,42,4,0,0,120,4,0,0,200,4,0,0,26,5,0,0,112,5,0,0,200,5,0,0,34,6,0,0,128,6,0,0,0,0,0,0,248,5,0,0,142,0,0,0,143,0,0,0,0,0,0,0,232,5,0,0,144,0,0,0,145,0,0,0,0,0,0,0,24,0,0,0,146,0,0,0,147,0,0,0,46,0,0,0,0,0,0,0,216,5,0,0,148,0,0,0,149,0,0,0,0,0,0,0,184,5,0,0,150,0,0,0,151,0,0,0,56,0,0,0,0,0,0,0,80,8,0,0,152,0,0,0,153,0,0,0,200,255,255,255,200,255,255,255,80,8,0,0,154,0,0,0,155,0,0,0,56,0,0,0,0,0,0,0,168,5,0,0,156,0,0,0,157,0,0,0,200,255,255,255,200,255,255,255,168,5,0,0,158,0,0,0,159,0,0,0,0,0,0,0,152,5,0,0,160,0,0,0,161,0,0,0,44,0,0,0,59,0,0,0,42,0,0,0,49,0,0,0,57,0,0,0,58,0,0,0,60,0,0,0,59,0,0,0,60,0,0,0,49,0,0,0,61,0,0,0,50,0,0,0,136,116,0,0,96,116,0,0,116,116,0,0,156,116,0,0,0,0,0,0,2,0,0,0,255,255,255,255,69,205,0,0,0,0,0,0,1,0,0,0,3,0,0,0,255,255,255,255,48,205,0,0,58,205,0,0,0,0,0,0,4,0,0,0,255,255,255,255,27,205,0,0,37,205,0,0,0,0,0,0,5,0,0,0,255,255,255,255,6,205,0,0,16,205,0,0,0,0,0,0,6,0,0,0,255,255,255,255,241,204,0,0,251,204,0,0,0,0,0,0,7,0,0,0,255,255,255,255,220,204,0,0,230,204,0,0,0,0,0,0,8,0,0,0,255,255,255,255,199,204,0,0,209,204,0,0,0,0,0,0,9,0,0,0,255,255,255,255,178,204,0,0,188,204,0,0,0,0,0,0,10,0,0,0,255,255,255,255,157,204,0,0,167,204,0,0,0,0,0,0,11,0,0,0,255,255,255,255,136,204,0,0,146,204,0,0,0,0,0,0,12,0,0,0,255,255,255,255,113,204,0,0,124,204,0,0,0,0,0,0,13,0,0,0,255,255,255,255,90,204,0,0,101,204,0,0,0,0,0,0,15,0,0,0,255,255,255,255,67,204,0,0,78,204,0,0,0,0,0,0,16,0,0,0,255,255,255,255,44,204,0,0,55,204,0,0,0,0,0,0,17,0,0,0,255,255,255,255,21,204,0,0,32,204,0,0,0,0,0,0,18,0,0,0,255,255,255,255,254,203,0,0,9,204,0,0,0,0,0,0,20,0,0,0,255,255,255,255,239,203,0,0,244,203,0,0,0,0,0,0,21,0,0,0,255,255,255,255,219,203,0,0,226,203,0,0,0,0,0,0,22,0,0,0,255,255,255,255,199,203,0,0,206,203,0,0,0,0,0,0,23,0,0,0,255,255,255,255,179,203,0,0,186,203,0,0,0,0,0,0,24,0,0,0,255,255,255,255,159,203,0,0,166,203,0,0,0,0,0,0,25,0,0,0,255,255,255,255,120,203,0,0,139,203,0,0,148,203,0,0,0,0,0,0,26,0,0,0,255,255,255,255,109,203,0,0,114,203,0,0,0,0,0,0,27,0,0,0,170,0,0,0,255,255,255,255,94,203,0,0,100,203,0,0,0,0,0,0,28,0,0,0,255,255,255,255,89,203,0,0,0,0,0,0,29,0,0,0,255,255,255,255,63,203,0,0,71,203,0,0,78,203,0,0,85,203,0,0,0,0,0,0,30,0,0,0,255,255,255,255,49,203,0,0,56,203,0,0,0,0,0,0,0,0,0,0,136,5,0,0,144,0,0,0,162,0,0,0,0,0,0,0,120,5,0,0,163,0,0,0,164,0,0,0,0,0,0,0,104,5,0,0,165,0,0,0,166,0,0,0,0,0,0,0,88,3,0,0,146,0,0,0,167,0,0,0,46,0,0,0,0,0,0,0,88,5,0,0,136,0,0,0,168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,5,0,0,144,0,0,0,169,0,0,0,0,0,0,0,56,5,0,0,170,0,0,0,171,0,0,0,0,0,0,0,40,5,0,0,172,0,0,0,173,0,0,0,0,0,0,0,104,3,0,0,146,0,0,0,174,0,0,0,46,0,0,0,0,0,0,0,24,5,0,0,175,0,0,0,176,0,0,0,0,0,0,0,8,5,0,0,177,0,0,0,178,0,0,0,0,0,0,0,248,4,0,0,179,0,0,0,180,0,0,0,0,0,0,0,216,4,0,0,181,0,0,0,182],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+20480);allocate([3,0,0,0,6,0,0,0,9,0,0,0,96,0,0,0,18,0,0,0,66,0,0,0,33,0,0,0,36,0,0,0,48,0,0,0,72,0,0,0,12,0,0,0,24,0,0,0,69,0,0,0,81,0,0,0,84,0,0,0,21,0,0,0,26,0,0,0,41,0,0,0,11,0,0,0,14,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,33,1,0,0,97,0,0,0,96,1,0,0,49,0,0,0,48,1,0,0,112,0,0,0,37,0,0,0,36,1,0,0,100,0,0,0,9,1,0,0,73,0,0,0,72,1,0,0,25,0,0,0,24,1,0,0,88,0,0,0,13,0,0,0,12,1,0,0,76,0,0,0,28,0,0,0,3,1,0,0,67,0,0,0,66,1,0,0,19,0,0,0,18,1,0,0,82,0,0,0,7,0,0,0,6,1,0,0,70,0,0,0,22,0,0,0,129,1,0,0,193,0,0,0,192,1,0,0,145,0,0,0,144,1,0,0,208,0,0,0,133,0,0,0,132,1,0,0,196,0,0,0,148,0,0,0,168,0,0,0,162,0,0,0,138,0,0,0,42,0,0,0,0,0,0,0,20,1,0,0,72,1,0,0,68,1,0,0,66,1,0,0,40,1,0,0,36,1,0,0,34,1,0,0,80,1,0,0,18,1,0,0,10,1,0,0,168,1,0,0,164,1,0,0,162,1,0,0,148,1,0,0,146,1,0,0,138,1,0,0,104,1,0,0,100,1,0,0,98,1,0,0,52,1,0,0,26,1,0,0,88,1,0,0,76,1,0,0,70,1,0,0,44,1,0,0,22,1,0,0,180,1,0,0,178,1,0,0,172,1,0,0,166,1,0,0,150,1,0,0,154,1,0,0,108,1,0,0,102,1,0,0,54,1,0,0,58,1,0,0,46,1,0,0,212,1,0,0,210,1,0,0,202,1,0,0,110,1,0,0,118,1,0,0,174,1,0,0,38,1,0,0,218,1,0,0,214,1,0,0,50,1,0,0,94,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,13,0,0,0,14,0,0,0,19,0,0,0,25,0,0,0,28,0,0,0,21,0,0,0,22,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,0,0,0,0,200,4,0,0,134,0,0,0,183,0,0,0,42,0,0,0,43,0,0,0,56,0,0,0,52,0,0,0,50,0,0,0,49,0,0,0,44,0,0,0,38,0,0,0,35,0,0,0,42,0,0,0,41,0,0,0,37,0,0,0,7,0,0,0,11,0,0,0,13,0,0,0,14,0,0,0,19,0,0,0,25,0,0,0,28,0,0,0,21,0,0,0,22,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,4,0,0,184,0,0,0,185,0,0,0,0,0,0,0,136,4,0,0,144,0,0,0,186,0,0,0,0,0,0,0,120,4,0,0,187,0,0,0,188,0,0,0,0,0,0,0,104,4,0,0,189,0,0,0,190,0,0,0,0,0,0,0,88,4,0,0,191,0,0,0,192,0,0,0,62,0,0,0,0,0,0,0,72,4,0,0,191,0,0,0,193,0,0,0,63,0,0,0,0,0,0,0,56,4,0,0,191,0,0,0,194,0,0,0,64,0,0,0,0,0,0,0,40,4,0,0,191,0,0,0,195,0,0,0,65,0,0,0,0,0,0,0,24,4,0,0,191,0,0,0,196,0,0,0,66,0,0,0,0,0,0,0,8,4,0,0,191,0,0,0,197,0,0,0,67,0,0,0,0,0,0,0,248,3,0,0,191,0,0,0,198,0,0,0,68,0,0,0,0,0,0,0,232,3,0,0,191,0,0,0,199,0,0,0,69,0,0,0,0,0,0,0,200,3,0,0,134,0,0,0,200,0,0,0,42,0,0,0,43,0,0,0,0,0,0,0,184,3,0,0,134,0,0,0,201,0,0,0,42,0,0,0,43,0,0,0,0,0,0,0,168,3,0,0,202,0,0,0,203,0,0,0,0,0,0,0,152,3,0,0,144,0,0,0,204,0,0,0,0,0,0,0,0,0,0,0,216,3,0,0,205,0,0,0,206,0,0,0,0,0,0,0,152,4,0,0,207,0,0,0,208,0,0,0,0,0,0,0,168,4,0,0,209,0,0,0,210,0,0,0,0,0,0,0,8,0,0,0,146,0,0,0,211,0,0,0,46,0,0,0,0,0,0,0,232,4,0,0,212,0,0,0,213,0,0,0,0,0,0,0,200,5,0,0,214,0,0,0,215,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,1,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,48,0,0,0,44,0,0,0,24,0,0,0,20,0,0,0,18,0,0,0,16,0,0,0,14,0,0,0,12,0,0,0,10,0,0,0,8,0,0,0,6,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,43,0,0,0,0,0,0,0,240,6,0,0,216,0,0,0,217,0,0,0,61,0,0,0,0,0,0,0,0,0,0,0,8,7,0,0,218,0,0,0,219,0,0,0,62,0,0,0,0,0,0,0,32,7,0,0,220,0,0,0,221,0,0,0,63,0,0,0,0,0,0,0,112,7,0,0,222,0,0,0,223,0,0,0,224,0,0,0,225,0,0,0,70,0,0,0,0,0,0,0,64,7,0,0,222,0,0,0,226,0,0,0,224,0,0,0,225,0,0,0,71,0,0,0,43,0,0,0,42,0,0,0,50,0,0,0,0,0,0,0,0,8,0,0,222,0,0,0,227,0,0,0,224,0,0,0,225,0,0,0,71,0,0,0,44,0,0,0,43,0,0,0,51,0,0,0,0,0,0,0,16,8,0,0,222,0,0,0,228,0,0,0,224,0,0,0,225,0,0,0,71,0,0,0,45,0,0,0,44,0,0,0,52,0,0,0,0,0,0,0,96,7,0,0,222,0,0,0,229,0,0,0,224,0,0,0,225,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,20,218,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,28,140,0,0,140,140,0,0,228,174,0,0,252,148,0,0,252,142,0,0,0,0,0,0,10,0,0,0,100,0,0,0,232,3,0,0,16,39,0,0,160,134,1,0,64,66,15,0,128,150,152,0,0,225,245,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,73,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,75,0,0,0,170,230,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0,0,75,0,0,0,162,226,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,12,0,0,0,13,0,0,0,14,0,0,0,15,0,0,0,16,0,0,0,17,0,0,0,18,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,26,0,0,0,27,0,0,0,28,0,0,0,29,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,33,0,0,0,34,0,0,0,35,0,0,0,36,0,0,0,37,0,0,0,38,0,0,0,39,0,0,0,40,0,0,0,41,0,0,0,42,0,0,0,43,0,0,0,44,0,0,0,45,0,0,0,46,0,0,0,47,0,0,0,48,0,0,0,49,0,0,0,50,0,0,0,51,0,0,0,52,0,0,0,53,0,0,0,54,0,0,0,55,0,0,0,56,0,0,0,57,0,0,0,58,0,0,0,59,0,0,0,60,0,0,0,61,0,0,0,62,0,0,0,63,0,0,0,64,0,0,0,65,0,0,0,66,0,0,0,67,0,0,0,68,0,0,0,69,0,0,0,70,0,0,0,71,0,0,0,72,0,0,0,73,0,0,0,74,0,0,0,75,0,0,0,76,0,0,0,77,0,0,0,78,0,0,0,79,0,0,0,80,0,0,0,81,0,0,0,82,0,0,0,83,0,0,0,84,0,0,0,85,0,0,0,86,0,0,0,87,0,0,0,88,0,0,0,89,0,0,0,90,0,0,0,91,0,0,0,92,0,0,0,93,0,0,0,94,0,0,0,95,0,0,0,96,0,0,0,65,0,0,0,66,0,0,0,67,0,0,0,68,0,0,0,69,0,0,0,70,0,0,0,71,0,0,0,72,0,0,0,73,0,0,0,74,0,0,0,75,0,0,0,76,0,0,0,77,0,0,0,78,0,0,0,79,0,0,0,80,0,0,0,81,0,0,0,82,0,0,0,83,0,0,0,84,0,0,0,85,0,0,0,86,0,0,0,87,0,0,0,88,0,0,0,89,0,0,0,90,0,0,0,123,0,0,0,124,0,0,0,125,0,0,0,126,0,0,0,127],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+30728);allocate([1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,12,0,0,0,13,0,0,0,14,0,0,0,15,0,0,0,16,0,0,0,17,0,0,0,18,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,26,0,0,0,27,0,0,0,28,0,0,0,29,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,33,0,0,0,34,0,0,0,35,0,0,0,36,0,0,0,37,0,0,0,38,0,0,0,39,0,0,0,40,0,0,0,41,0,0,0,42,0,0,0,43,0,0,0,44,0,0,0,45,0,0,0,46,0,0,0,47,0,0,0,48,0,0,0,49,0,0,0,50,0,0,0,51,0,0,0,52,0,0,0,53,0,0,0,54,0,0,0,55,0,0,0,56,0,0,0,57,0,0,0,58,0,0,0,59,0,0,0,60,0,0,0,61,0,0,0,62,0,0,0,63,0,0,0,64,0,0,0,97,0,0,0,98,0,0,0,99,0,0,0,100,0,0,0,101,0,0,0,102,0,0,0,103,0,0,0,104,0,0,0,105,0,0,0,106,0,0,0,107,0,0,0,108,0,0,0,109,0,0,0,110,0,0,0,111,0,0,0,112,0,0,0,113,0,0,0,114,0,0,0,115,0,0,0,116,0,0,0,117,0,0,0,118,0,0,0,119,0,0,0,120,0,0,0,121,0,0,0,122,0,0,0,91,0,0,0,92,0,0,0,93,0,0,0,94,0,0,0,95,0,0,0,96,0,0,0,97,0,0,0,98,0,0,0,99,0,0,0,100,0,0,0,101,0,0,0,102,0,0,0,103,0,0,0,104,0,0,0,105,0,0,0,106,0,0,0,107,0,0,0,108,0,0,0,109,0,0,0,110,0,0,0,111,0,0,0,112,0,0,0,113,0,0,0,114,0,0,0,115,0,0,0,116,0,0,0,117,0,0,0,118,0,0,0,119,0,0,0,120,0,0,0,121,0,0,0,122,0,0,0,123,0,0,0,124,0,0,0,125,0,0,0,126,0,0,0,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,8,0,0,230,0,0,0,231,0,0,0,44,0,0,0,59,0,0,0,46,0,0,0,53,0,0,0,57,0,0,0,58,0,0,0,60,0,0,0,65,0,0,0,60,0,0,0,51,0,0,0,61,0,0,0,52,0,0,0,0,0,0,0,32,8,0,0,232,0,0,0,233,0,0,0,62,0,0,0,0,0,0,0,48,8,0,0,234,0,0,0,235,0,0,0,0,0,0,0,104,8,0,0,236,0,0,0,237,0,0,0,66,0,0,0,45,0,0,0,77,0,0,0,78,0,0,0,46,0,0,0,0,0,0,0,0,0,0,0,96,9,0,0,238,0,0,0,239,0,0,0,240,0,0,0,44,0,0,0,54,0,0,0,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,9,0,0,241,0,0,0,242,0,0,0,240,0,0,0,45,0,0,0,55,0,0,0,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,9,0,0,243,0,0,0,244,0,0,0,240,0,0,0,43,0,0,0,44,0,0,0,45,0,0,0,46,0,0,0,47,0,0,0,48,0,0,0,49,0,0,0,50,0,0,0,51,0,0,0,52,0,0,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,9,0,0,245,0,0,0,246,0,0,0,240,0,0,0,54,0,0,0,55,0,0,0,56,0,0,0,57,0,0,0,58,0,0,0,59,0,0,0,60,0,0,0,61,0,0,0,62,0,0,0,63,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,247,0,0,0,248,0,0,0,240,0,0,0,46,0,0,0,47,0,0,0,65,0,0,0,48,0,0,0,66,0,0,0,42,0,0,0,43,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,10,0,0,249,0,0,0,250,0,0,0,240,0,0,0,50,0,0,0,51,0,0,0,67,0,0,0,52,0,0,0,68,0,0,0,44,0,0,0,45,0,0,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,10,0,0,251,0,0,0,252,0,0,0,240,0,0,0,67,0,0,0,69,0,0,0,70,0,0,0,71,0,0,0,72,0,0,0,73,0,0,0,42,0,0,0,248,255,255,255,64,10,0,0,68,0,0,0,69,0,0,0,70,0,0,0,71,0,0,0,72,0,0,0,73,0,0,0,74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,10,0,0,253,0,0,0,254,0,0,0,240,0,0,0,75,0,0,0,74,0,0,0,75,0,0,0,76,0,0,0,77,0,0,0,78,0,0,0,43,0,0,0,248,255,255,255,104,10,0,0,76,0,0,0,77,0,0,0,78,0,0,0,79,0,0,0,80,0,0,0,81,0,0,0,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,10,0,0,255,0,0,0,0,1,0,0,240,0,0,0,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,10,0,0,1,1,0,0,2,1,0,0,240,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,10,0,0,3,1,0,0,4,1,0,0,240,0,0,0,83,0,0,0,84,0,0,0,45,0,0,0,46,0,0,0,47,0,0,0,48,0,0,0,85,0,0,0,49,0,0,0,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,10,0,0,5,1,0,0,6,1,0,0,240,0,0,0,86,0,0,0,87,0,0,0,51,0,0,0,52,0,0,0,53,0,0,0,54,0,0,0,88,0,0,0,55,0,0,0,56,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,11,0,0,7,1,0,0,8,1,0,0,240,0,0,0,89,0,0,0,90,0,0,0,57,0,0,0,58,0,0,0,59,0,0,0,60,0,0,0,91,0,0,0,61,0,0,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,11,0,0,9,1,0,0,10,1,0,0,240,0,0,0,92,0,0,0,93,0,0,0,63,0,0,0,64,0,0,0,65,0,0,0,66,0,0,0,94,0,0,0,67,0,0,0,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,11,0,0,11,1,0,0,12,1,0,0,240,0,0,0,45,0,0,0,46,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,11,0,0,13,1,0,0,14,1,0,0,240,0,0,0,47,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,11,0,0,15,1,0,0,16,1,0,0,240,0,0,0,42,0,0,0,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,11,0,0,17,1,0,0,18,1,0,0,240,0,0,0,43,0,0,0,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,208,11,0,0,19,1,0,0,20,1,0,0,240,0,0,0,81,0,0,0,47,0,0,0,69,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,11,0,0,21,1,0,0,22,1,0,0,240,0,0,0,82,0,0,0,48,0,0,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,9,0,0,23,1,0,0,24,1,0,0,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,9,0,0,25,1,0,0,26,1,0,0,240,0,0,0,53,0,0,0,83,0,0,0,54,0,0,0,84,0,0,0,55,0,0,0,48,0,0,0,85,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,9,0,0,27,1,0,0,28,1,0,0,240,0,0,0,44,0,0,0,45,0,0,0,55,0,0,0,95,0,0,0,96,0,0,0,56,0,0,0,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,9,0,0,29,1,0,0,30,1,0,0,240,0,0,0,98,0,0,0,99,0,0,0,71,0,0,0,72,0,0,0,73,0,0,0,0,0,0,0,176,9,0,0,31,1,0,0,32,1,0,0,240,0,0,0,100,0,0,0,101,0,0,0,74,0,0,0,75,0,0,0,76,0,0,0,0,0,0,0,128,8,0,0,33,1,0,0,34,1,0,0,240,0,0,0,0,0,0,0,144,8,0,0,33,1,0,0,35,1,0,0,240,0,0,0,86,0,0,0,49,0,0,0,50,0,0,0,51,0,0,0,56,0,0,0,87,0,0,0,57,0,0,0,88,0,0,0,58,0,0,0,52,0,0,0,89,0,0,0,57,0,0,0,0,0,0,0,176,8,0,0,33,1,0,0,36,1,0,0,240,0,0,0,46,0,0,0,47,0,0,0,58,0,0,0,102,0,0,0,103,0,0,0,59,0,0,0,104,0,0,0,0,0,0,0,208,8,0,0,33,1,0,0,37,1,0,0,240,0,0,0,48,0,0,0,49,0,0,0,60,0,0,0,105,0,0,0,106,0,0,0,61,0,0,0,107,0,0,0,0,0,0,0,240,8,0,0,33,1,0,0,38,1,0,0,240,0,0,0,50,0,0,0,51,0,0,0,62,0,0,0,108,0,0,0,109,0,0,0,63,0,0,0,110,0,0,0,0,0,0,0,16,9,0,0,33,1,0,0,39,1,0,0,240,0,0,0,50,0,0,0,51,0,0,0,62,0,0,0,108,0,0,0,109,0,0,0,63,0,0,0,110,0,0,0,0,0,0,0,32,9,0,0,33,1,0,0,40,1,0,0,240,0,0,0,50,0,0,0,51,0,0,0,62,0,0,0,108,0,0,0,109,0,0,0,63,0,0,0,110,0,0,0,0,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,37,0,0,0,89,0,0,0,45,0,0,0,37,0,0,0,109,0,0,0,45,0,0,0,37,0,0,0,100,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,116,0,0,0,114,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,102,0,0,0,97,0,0,0,108,0,0,0,115,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,110,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,114,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,83,0,0,0,97,0,0,0,116,0,0,0,117,0,0,0,114,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,0,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,0,0,0,0,83,0,0,0,97,0,0,0,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,114,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,114,0,0,0,99,0,0,0,104,0,0,0,0,0,0,0,65,0,0,0,112,0,0,0,114,0,0,0,105,0,0,0,108,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,101,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,121,0,0,0,0,0,0,0,65,0,0,0,117,0,0,0,103,0,0,0,117,0,0,0,115,0,0,0,116,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,116,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,111,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,78,0,0,0,111,0,0,0,118,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,68,0,0,0,101,0,0,0,99,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,114,0,0,0,0,0,0,0,65,0,0,0,112,0,0,0,114,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,0,0,0,0,65,0,0,0,117,0,0,0,103,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,0,0,0,0,78,0,0,0,111,0,0,0,118,0,0,0,0,0,0,0,68,0,0,0,101,0,0,0,99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65,0,0,0,77,0,0,0,0,0,0,0,80,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,97,0,0,0,32,0,0,0,37,0,0,0,98,0,0,0,32,0,0,0,37,0,0,0,100,0,0,0,32,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,15,0,0,41,1,0,0,42,1,0,0,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,3,32,2,32,2,32,2,32,2,32,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,1,96,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,4,192,8,216,8,216,8,216,8,216,8,216,8,216,8,216,8,216,8,216,8,216,4,192,4,192,4,192,4,192,4,192,4,192,4,192,8,213,8,213,8,213,8,213,8,213,8,213,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,8,197,4,192,4,192,4,192,4,192,4,192,4,192,8,214,8,214,8,214,8,214,8,214,8,214,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,8,198,4,192,4,192,4,192,4,192,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,53,122,120,105,110,103,49,53,82,101,97,100,101,114,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,57,69,120,99,101,112,116,105,111,110,69,0,49,55,73,109,97,103,101,82,101,97,100,101,114,83,111,117,114,99,101,0,78,53,122,120,105,110,103,56,65,114,114,97,121,82,101,102,73,99,69,69,0,78,53,122,120,105,110,103,55,67,111,117,110,116,101,100,69,0,78,53,122,120,105,110,103,53,65,114,114,97,121,73,99,69,69,0,78,53,122,120,105,110,103,56,65,114,114,97,121,82,101,102,73,78,83,95,51,82,101,102,73,78,83,95,49,49,82,101,115,117,108,116,80,111,105,110,116,69,69,69,69,69,0,78,53,122,120,105,110,103,53,97,122,116,101,99,49,49,65,122,116,101,99,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,57,66,105,110,97,114,105,122,101,114,69,0,78,53,122,120,105,110,103,49,50,66,105,110,97,114,121,66,105,116,109,97,112,69,0,78,53,122,120,105,110,103,49,55,67,104,101,99,107,115,117,109,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,56,66,105,116,65,114,114,97,121,69,0,78,53,122,120,105,110,103,57,66,105,116,77,97,116,114,105,120,69,0,0,78,53,122,120,105,110,103,50,52,71,108,111,98,97,108,72,105,115,116,111,103,114,97,109,66,105,110,97,114,105,122,101,114,69,0,0,78,53,122,120,105,110,103,49,53,72,121,98,114,105,100,66,105,110,97,114,105,122,101,114,69,0,78,53,122,120,105,110,103,50,52,73,108,108,101,103,97,108,65,114,103,117,109,101,110,116,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,50,48,82,101,101,100,83,111,108,111,109,111,110,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,49,48,100,97,116,97,109,97,116,114,105,120,49,54,68,97,116,97,77,97,116,114,105,120,82,101,97,100,101,114,69,0,42,42,42,32,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,58,59,60,61,62,63,64,91,92,93,94,95,42,42,42,32,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,39,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,78,53,122,120,105,110,103,49,48,100,97,116,97,109,97,116,114,105,120,56,68,101,116,101,99,116,111,114,69,0,78,53,122,120,105,110,103,49,48,100,97,116,97,109,97,116,114,105,120,55,86,101,114,115,105,111,110,69,0,78,53,122,120,105,110,103,49,53,70,111,114,109,97,116,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,50,51,73,110,118,101,114,116,101,100,76,117,109,105,110,97,110,99,101,83,111,117,114,99,101,69,0,78,53,122,120,105,110,103,49,53,76,117,109,105,110,97,110,99,101,83,111,117,114,99,101,69,0,78,53,122,120,105,110,103,53,109,117,108,116,105,50,56,71,101,110,101,114,105,99,77,117,108,116,105,112,108,101,66,97,114,99,111,100,101,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,53,109,117,108,116,105,50,49,77,117,108,116,105,112,108,101,66,97,114,99,111,100,101,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,53,109,117,108,116,105,49,51,77,117,108,116,105,68,101,116,101,99,116,111,114,69,0,78,53,122,120,105,110,103,53,109,117,108,116,105,50,52,77,117,108,116,105,70,105,110,100,101,114,80,97,116,116,101,114,110,70,105,110,100,101,114,69,0,78,53,122,120,105,110,103,53,109,117,108,116,105,49,55,81,82,67,111,100,101,77,117,108,116,105,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,49,55,77,117,108,116,105,70,111,114,109,97,116,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,51,67,111,100,97,66,97,114,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,51,67,111,100,101,49,50,56,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,50,67,111,100,101,51,57,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,50,67,111,100,101,57,51,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,49,69,65,78,49,51,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,48,69,65,78,56,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,57,73,84,70,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,50,49,77,117,108,116,105,70,111,114,109,97,116,79,110,101,68,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,50,51,77,117,108,116,105,70,111,114,109,97,116,85,80,67,69,65,78,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,48,79,110,101,68,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,48,85,80,67,65,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,50,85,80,67,69,65,78,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,48,85,80,67,69,82,101,97,100,101,114,69,0,59,60,62,64,91,92,125,95,96,126,33,13,9,44,58,10,45,46,36,47,34,124,42,40,41,63,123,125,39,48,49,50,51,52,53,54,55,56,57,38,13,9,44,58,35,45,46,36,47,43,37,42,61,94,78,53,122,120,105,110,103,54,112,100,102,52,49,55,55,100,101,99,111,100,101,114,50,101,99,49,49,77,111,100,117,108,117,115,80,111,108,121,69,0,78,53,122,120,105,110,103,54,112,100,102,52,49,55,49,50,80,68,70,52,49,55,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,56,68,97,116,97,77,97,115,107,69,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,36,37,42,43,45,46,47,58,78,53,122,120,105,110,103,54,113,114,99,111,100,101,50,50,65,108,105,103,110,109,101,110,116,80,97,116,116,101,114,110,70,105,110,100,101,114,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,56,68,101,116,101,99,116,111,114,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,50,81,82,67,111,100,101,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,55,86,101,114,115,105,111,110,69,0,78,53,122,120,105,110,103,54,82,101,97,100,101,114,69,0,78,53,122,120,105,110,103,54,82,101,115,117,108,116,69,0,78,53,122,120,105,110,103,49,49,82,101,115,117,108,116,80,111,105,110,116,69,0,100,97,116,97,32,105,115,32,116,111,111,32,108,111,110,103,0,114,115,32,100,101,99,111,100,105,110,103,32,102,97,105,108,101,100,0,98,105,116,32,119,97,115,32,110,111,116,32,105,110,118,101,114,116,101,100,0,105,110,118,97,108,105,100,32,105,110,112,117,116,32,100,97,116,97,0,67,84,82,76,95,0,101,110,99,111,117,110,116,101,114,101,100,32,119,114,111,110,103,32,98,117,108,108,115,101,121,101,32,114,105,110,103,32,99,111,117,110,116,0,98,117,108,108,115,101,121,101,32,101,120,116,101,110,100,115,32,111,118,101,114,32,105,109,97,103,101,32,98,111,117,110,100,115,0,99,111,117,108,100,32,110,111,116,32,100,101,116,101,114,109,105,110,101,32,111,114,105,101,110,116,97,116,105,111,110,0,109,97,116,114,105,120,32,101,120,116,101,110,100,115,32,111,118,101,114,32,105,109,97,103,101,32,98,111,117,110,100,115,0,102,97,105,108,101,100,32,116,111,32,100,101,99,111,100,101,32,112,97,114,97,109,101,116,101,114,32,100,97,116,97,0,76,101,102,116,32,97,110,100,32,116,111,112,32,109,117,115,116,32,98,101,32,110,111,110,110,101,103,97,116,105,118,101,0,72,101,105,103,104,116,32,97,110,100,32,119,105,100,116,104,32,109,117,115,116,32,98,101,32,97,116,32,108,101,97,115,116,32,49,0,84,104,101,32,114,101,103,105,111,110,32,109,117,115,116,32,102,105,116,32,105,110,115,105,100,101,32,116,104,101,32,109,97,116,114,105,120,0,73,110,118,97,108,105,100,32,100,105,109,101,110,115,105,111,110,115,32,87,104,105,116,101,82,101,99,116,97,110,103,108,101,68,101,116,101,99,116,111,114,0,122,32,61,61,32,78,85,76,76,0,116,32,61,61,32,78,85,76,76,0,120,32,61,61,32,78,85,76,76,0,121,32,61,61,32,78,85,76,76,0,78,111,32,98,108,97,99,107,32,112,111,105,110,116,32,102,111,117,110,100,32,111,110,32,98,111,114,100,101,114,0,84,114,97,110,115,102,111,114,109,101,100,32,112,111,105,110,116,32,111,117,116,32,111,102,32,98,111,117,110,100,115,32,97,116,32,0,68,101,103,114,101,101,32,109,117,115,116,32,98,101,32,110,111,110,45,110,101,103,97,116,105,118,101,0,99,97,110,110,111,116,32,103,105,118,101,32,108,111,103,40,48,41,0,67,97,110,110,111,116,32,99,97,108,99,117,108,97,116,101,32,116,104,101,32,105,110,118,101,114,115,101,32,111,102,32,48,0,110,101,101,100,32,99,111,101,102,102,105,99,105,101,110,116,115,0,71,101,110,101,114,105,99,71,70,80,111,108,121,115,32,100,111,32,110,111,116,32,104,97,118,101,32,115,97,109,101,32,71,101,110,101,114,105,99,71,70,32,102,105,101,108,100,0,100,101,103,114,101,101,32,109,117,115,116,32,110,111,116,32,98,101,32,108,101,115,115,32,116,104,101,110,32,48,0,66,97,100,32,101,114,114,111,114,32,108,111,99,97,116,105,111,110,0,114,95,123,105,45,49,125,32,119,97,115,32,122,101,114,111,0,68,105,118,105,115,105,111,110,32,97,108,103,111,114,105,116,104,109,32,102,97,105,108,101,100,32,116,111,32,114,101,100,117,99,101,32,112,111,108,121,110,111,109,105,97,108,63,0,115,105,103,109,97,84,105,108,100,101,40,48,41,32,119,97,115,32,122,101,114,111,0,69,114,114,111,114,32,108,111,99,97,116,111,114,32,100,101,103,114,101,101,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,110,117,109,98,101,114,32,111,102,32,114,111,111,116,115,0,83,72,73,70,84,95,74,73,83,0,73,83,79,56,56,53,57,45,49,0,68,105,109,101,110,115,105,111,110,32,109,117,115,116,32,98,101,32,101,118,101,110,44,32,62,32,56,32,60,32,49,52,52,0,67,111,117,108,100,110,39,116,32,100,101,99,111,100,101,32,118,101,114,115,105,111,110,0,68,105,109,101,110,115,105,111,110,32,111,102,32,98,105,116,77,97,116,114,105,120,32,109,117,115,116,32,109,97,116,99,104,32,116,104,101,32,118,101,114,115,105,111,110,32,115,105,122,101,0,85,110,115,117,112,112,111,114,116,101,100,32,109,111,100,101,32,105,110,100,105,99,97,116,111,114,0,78,111,116,32,101,110,111,117,103,104,32,98,105,116,115,32,116,111,32,100,101,99,111,100,101,0,91,41,62,82,83,48,53,71,83,0,82,83,69,79,84,0,91,41,62,82,83,48,54,71,83,0,78,111,116,32,116,111,32,98,101,32,117,115,101,100,32,105,110,32,65,83,67,73,73,32,101,110,99,111,100,97,116,105,111,110,0,100,101,99,111,100,101,67,52,48,83,101,103,109,101,110,116,58,32,85,112,112,101,114,32,83,104,105,102,116,0,100,101,99,111,100,101,67,52,48,83,101,103,109,101,110,116,58,32,110,111,32,99,97,115,101,0,100,101,99,111,100,101,84,101,120,116,83,101,103,109,101,110,116,58,32,85,112,112,101,114,32,83,104,105,102,116,0,100,101,99,111,100,101,84,101,120,116,83,101,103,109,101,110,116,58,32,110,111,32,99,97,115,101,0,100,101,99,111,100,101,65,110,115,105,88,49,50,83,101,103,109,101,110,116,58,32,110,111,32,99,97,115,101,0,78,101,103,97,116,105,118,101,65,114,114,97,121,83,105,122,101,69,120,99,101,112,116,105,111,110,0,98,121,116,101,83,101,103,109,101,110,116,115,0,78,117,109,98,101,114,32,111,102,32,114,111,119,115,32,97,110,100,32,99,111,108,117,109,110,115,32,109,117,115,116,32,98,101,32,101,118,101,110,0,69,114,114,111,114,32,118,101,114,115,105,111,110,32,110,111,116,32,102,111,117,110,100,0,85,110,114,101,99,111,103,110,105,122,100,32,98,97,114,99,111,100,101,32,102,111,114,109,97,116,0,84,104,105,115,32,108,117,109,105,110,97,110,99,101,32,115,111,117,114,99,101,32,100,111,101,115],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+38136);allocate([32,110,111,116,32,115,117,112,112,111,114,116,32,99,114,111,112,112,105,110,103,46,0,84,104,105,115,32,108,117,109,105,110,97,110,99,101,32,115,111,117,114,99,101,32,100,111,101,115,32,110,111,116,32,115,117,112,112,111,114,116,32,114,111,116,97,116,105,111,110,46,0,78,111,32,99,111,100,101,32,100,101,116,101,99,116,101,100,0,48,49,50,51,52,53,54,55,56,57,45,36,58,47,46,43,65,66,67,68,0,65,66,67,68,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,45,46,32,42,36,47,43,37,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,45,46,32,36,47,43,37,97,98,99,100,42,0,48,48,48,48,0,48,48,48,48,48,0,66,105,116,77,97,116,114,105,120,80,97,114,115,101,114,58,58,114,101,97,100,67,111,100,101,119,111,114,100,115,40,80,68,70,41,58,32,84,111,111,32,109,97,110,121,32,114,111,119,115,33,0,66,105,116,77,97,116,114,105,120,80,97,114,115,101,114,58,58,112,114,111,99,101,115,115,82,111,119,40,80,68,70,52,49,55,41,58,32,101,114,97,115,101,67,111,117,110,116,32,116,111,111,32,98,105,103,33,0,66,105,116,77,97,116,114,105,120,80,97,114,115,101,114,58,58,112,114,111,99,101,115,115,82,111,119,40,80,68,70,52,49,55,41,58,32,99,111,100,101,119,111,114,100,115,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,46,0,66,105,116,77,97,116,114,105,120,80,97,114,115,101,114,58,58,116,114,105,109,65,114,114,97,121,58,32,110,101,103,97,116,105,118,101,32,115,105,122,101,33,0,68,101,99,111,100,101,100,66,105,116,83,116,114,101,97,109,80,97,114,115,101,114,58,58,100,101,99,111,100,101,66,97,115,101,57,48,48,116,111,66,97,115,101,49,48,58,32,83,116,114,105,110,103,32,100,111,101,115,32,110,111,116,32,98,101,103,105,110,32,119,105,116,104,32,49,0,80,68,70,58,68,101,99,111,100,101,114,58,100,101,99,111,100,101,58,32,99,97,110,110,111,116,32,114,101,97,100,32,99,111,100,101,119,111,114,100,115,0,80,68,70,58,68,101,99,111,100,101,114,58,99,111,114,114,101,99,116,69,114,114,111,114,115,58,32,84,111,111,32,109,97,110,121,32,101,114,114,111,114,115,32,111,114,32,69,67,32,67,111,100,101,119,111,114,100,115,32,99,111,114,114,117,112,116,101,100,0,80,68,70,58,68,101,99,111,100,101,114,58,99,111,114,114,101,99,116,69,114,114,111,114,115,58,32,69,114,114,111,114,32,99,111,114,114,101,99,116,105,111,110,32,100,105,100,32,110,111,116,32,115,117,99,99,101,101,100,33,0,80,68,70,58,68,101,99,111,100,101,114,58,118,101,114,105,102,121,67,111,100,101,119,111,114,100,67,111,117,110,116,58,32,99,111,100,101,119,111,114,100,32,97,114,114,97,121,32,116,111,111,32,115,109,97,108,108,33,0,80,68,70,58,68,101,99,111,100,101,114,58,118,101,114,105,102,121,67,111,100,101,119,111,114,100,67,111,117,110,116,58,32,98,97,100,32,99,111,100,101,119,111,114,100,32,110,117,109,98,101,114,32,100,101,115,99,114,105,112,116,111,114,33,0,80,68,70,58,68,101,99,111,100,101,114,58,118,101,114,105,102,121,67,111,100,101,119,111,114,100,67,111,117,110,116,58,32,98,97,100,32,101,114,114,111,114,32,99,111,114,114,101,99,116,105,111,110,32,99,119,32,110,117,109,98,101,114,33,0,66,97,100,32,101,114,114,111,114,32,108,111,99,97,116,105,111,110,33,0,69,117,99,108,105,100,101,97,110,32,97,108,103,111,114,105,116,104,109,32,97,108,114,101,97,100,121,32,116,101,114,109,105,110,97,116,101,100,63,0,115,105,103,109,97,84,105,108,100,101,32,61,32,48,33,0,69,114,114,111,114,32,110,117,109,98,101,114,32,105,110,99,111,110,115,105,115,116,101,110,99,121,33,0,109,111,110,111,109,105,97,108,58,32,100,101,103,114,101,101,32,60,32,48,33,0,108,111,103,32,111,102,32,122,101,114,111,33,0,105,110,118,101,114,115,101,32,111,102,32,122,101,114,111,33,0,110,111,32,99,111,101,102,102,105,99,105,101,110,116,115,33,0,77,111,100,117,108,117,115,80,111,108,121,115,32,100,111,32,110,111,116,32,104,97,118,101,32,115,97,109,101,32,77,111,100,117,108,117,115,71,70,32,102,105,101,108,100,0,110,101,103,97,116,105,118,101,32,100,101,103,114,101,101,33,0,78,111,32,118,101,114,116,105,99,101,115,32,102,111,117,110,100,46,0,66,97,100,32,109,111,100,117,108,101,32,119,105,100,116,104,46,0,66,97,100,32,100,105,109,101,110,115,105,111,110,46,0,67,97,110,110,111,116,32,102,105,110,100,32,101,110,111,117,103,104,32,80,68,70,52,49,55,32,103,117,97,114,100,32,112,97,116,116,101,114,110,115,33,0,80,68,70,58,68,101,116,101,99,116,111,114,58,32,99,97,110,110,111,116,32,102,105,110,100,32,116,104,101,32,99,114,111,115,115,105,110,103,32,111,102,32,112,97,114,97,108,108,101,108,32,108,105,110,101,115,33,0,80,68,70,58,68,101,116,101,99,116,111,114,58,32,99,114,111,115,115,105,110,103,32,112,111,105,110,116,115,32,111,117,116,32,111,102,32,114,101,103,105,111,110,33,0,73,110,99,111,110,115,105,115,116,101,110,116,32,110,117,109,98,101,114,32,111,102,32,115,121,109,98,111,108,115,32,105,110,32,116,104,105,115,32,108,105,110,101,46,0,68,105,109,101,110,115,105,111,110,32,109,117,115,116,32,98,101,32,49,32,109,111,100,32,52,32,97,110,100,32,62,61,32,50,49,0,67,111,117,108,100,32,110,111,116,32,100,101,99,111,100,101,32,102,111,114,109,97,116,32,105,110,102,111,114,109,97,116,105,111,110,0,67,111,117,108,100,32,110,111,116,32,100,101,99,111,100,101,32,118,101,114,115,105,111,110,0,68,105,100,32,110,111,116,32,114,101,97,100,32,97,108,108,32,99,111,100,101,119,111,114,100,115,0,68,97,116,97,32,98,108,111,99,107,32,115,105,122,101,115,32,100,105,102,102,101,114,32,98,121,32,109,111,114,101,32,116,104,97,110,32,49,0,114,97,119,67,111,100,101,119,111,114,100,115,79,102,102,115,101,116,32,33,61,32,114,97,119,67,111,100,101,119,111,114,100,115,46,108,101,110,103,116,104,0,114,101,102,101,114,101,110,99,101,32,109,117,115,116,32,98,101,32,98,101,116,119,101,101,110,32,48,32,97,110,100,32,55,0,102,111,114,109,97,116,32,101,120,99,101,112,116,105,111,110,0,73,108,108,101,103,97,108,32,118,97,108,117,101,32,102,111,114,32,51,45,100,105,103,105,116,32,117,110,105,116,58,32,0,73,108,108,101,103,97,108,32,118,97,108,117,101,32,102,111,114,32,50,45,100,105,103,105,116,32,117,110,105,116,58,32,0,73,108,108,101,103,97,108,32,118,97,108,117,101,32,102,111,114,32,100,105,103,105,116,32,117,110,105,116,58,32,0,73,108,108,101,103,97,108,32,109,111,100,101,32,98,105,116,115,58,32,0,67,111,117,108,100,32,110,111,116,32,102,105,110,100,32,97,108,105,103,110,109,101,110,116,32,112,97,116,116,101,114,110,0,98,97,100,32,109,111,100,117,108,101,32,115,105,122,101,0,66,97,100,32,100,105,109,101,110,115,105,111,110,58,32,0,114,101,103,105,111,110,32,116,111,111,32,115,109,97,108,108,32,116,111,32,104,111,108,100,32,97,108,105,103,110,109,101,110,116,32,112,97,116,116,101,114,110,0,67,111,117,108,100,32,110,111,116,32,102,105,110,100,32,116,104,114,101,101,32,102,105,110,100,101,114,32,112,97,116,116,101,114,110,115,0,69,108,108,101,103,97,108,32,101,114,114,111,114,32,99,111,114,114,101,99,116,105,111,110,32,108,101,118,101,108,32,98,105,116,115,0,118,101,114,115,105,111,110,78,117,109,98,101,114,32,109,117,115,116,32,98,101,32,98,101,116,119,101,101,110,32,49,32,97,110,100,32,52,48,0,66,105,103,85,110,115,105,103,110,101,100,58,58,115,117,98,116,114,97,99,116,58,32,78,101,103,97,116,105,118,101,32,114,101,115,117,108,116,32,105,110,32,117,110,115,105,103,110,101,100,32,99,97,108,99,117,108,97,116,105,111,110,0,66,105,103,85,110,115,105,103,110,101,100,58,58,100,105,118,105,100,101,87,105,116,104,82,101,109,97,105,110,100,101,114,58,32,67,97,110,110,111,116,32,119,114,105,116,101,32,113,117,111,116,105,101,110,116,32,97,110,100,32,114,101,109,97,105,110,100,101,114,32,105,110,116,111,32,116,104,101,32,115,97,109,101,32,118,97,114,105,97,98,108,101,0,66,105,103,85,110,115,105,103,110,101,100,73,110,65,66,97,115,101,40,66,105,103,85,110,115,105,103,110,101,100,44,32,66,97,115,101,41,58,32,84,104,101,32,98,97,115,101,32,109,117,115,116,32,98,101,32,97,116,32,108,101,97,115,116,32,50,0,66,105,103,85,110,115,105,103,110,101,100,73,110,65,66,97,115,101,32,61,61,62,32,115,116,100,58,58,115,116,114,105,110,103,58,32,84,104,101,32,100,101,102,97,117,108,116,32,115,116,114,105,110,103,32,99,111,110,118,101,114,115,105,111,110,32,114,111,117,116,105,110,101,115,32,117,115,101,32,116,104,101,32,115,121,109,98,111,108,32,115,101,116,32,48,45,57,44,32,65,45,90,32,97,110,100,32,116,104,101,114,101,102,111,114,101,32,115,117,112,112,111,114,116,32,111,110,108,121,32,117,112,32,116,111,32,98,97,115,101,32,51,54,46,32,32,89,111,117,32,116,114,105,101,100,32,97,32,99,111,110,118,101,114,115,105,111,110,32,119,105,116,104,32,97,32,98,97,115,101,32,111,118,101,114,32,51,54,59,32,119,114,105,116,101,32,121,111,117,114,32,111,119,110,32,115,116,114,105,110,103,32,99,111,110,118,101,114,115,105,111,110,32,114,111,117,116,105,110,101,46,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,57,70,105,110,100,101,114,80,97,116,116,101,114,110,70,105,110,100,101,114,69,0,66,105,103,85,110,115,105,103,110,101,100,58,58,116,111,60,80,114,105,109,105,116,105,118,101,62,58,32,86,97,108,117,101,32,105,115,32,116,111,111,32,98,105,103,32,116,111,32,102,105,116,32,105,110,32,116,104,101,32,114,101,113,117,101,115,116,101,100,32,116,121,112,101,0,66,105,103,85,110,115,105,103,110,101,100,32,99,111,110,115,116,114,117,99,116,111,114,58,32,67,97,110,110,111,116,32,99,111,110,115,116,114,117,99,116,32,97,32,66,105,103,85,110,115,105,103,110,101,100,32,102,114,111,109,32,97,32,110,101,103,97,116,105,118,101,32,110,117,109,98,101,114,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,55,70,111,114,109,97,116,73,110,102,111,114,109,97,116,105,111,110,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,55,70,105,110,100,101,114,80,97,116,116,101,114,110,73,110,102,111,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,51,70,105,110,100,101,114,80,97,116,116,101,114,110,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,54,65,108,105,103,110,109,101,110,116,80,97,116,116,101,114,110,69,0,78,53,122,120,105,110,103,53,65,114,114,97,121,73,78,83,95,56,65,114,114,97,121,82,101,102,73,99,69,69,69,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,49,49,49,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,49,49,48,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,49,48,49,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,49,48,48,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,48,49,49,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,48,49,48,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,48,48,49,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,49,68,97,116,97,77,97,115,107,48,48,48,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,57,68,97,116,97,66,108,111,99,107,69,0,78,53,122,120,105,110,103,54,113,114,99,111,100,101,49,53,66,105,116,77,97,116,114,105,120,80,97,114,115,101,114,69,0,80,78,53,122,120,105,110,103,50,52,73,108,108,101,103,97,108,65,114,103,117,109,101,110,116,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,54,112,100,102,52,49,55,55,100,101,99,111,100,101,114,50,101,99,49,53,69,114,114,111,114,67,111,114,114,101,99,116,105,111,110,69,0,78,53,122,120,105,110,103,56,65,114,114,97,121,82,101,102,73,49,48,66,105,103,73,110,116,101,103,101,114,69,69,0,78,53,122,120,105,110,103,53,65,114,114,97,121,73,49,48,66,105,103,73,110,116,101,103,101,114,69,69,0,78,53,122,120,105,110,103,54,112,100,102,52,49,55,55,100,101,99,111,100,101,114,49,53,66,105,116,77,97,116,114,105,120,80,97,114,115,101,114,69,0,78,53,122,120,105,110,103,52,111,110,101,100,49,53,79,110,101,68,82,101,115,117,108,116,80,111,105,110,116,69,0,78,53,122,120,105,110,103,49,48,100,97,116,97,109,97,116,114,105,120,50,54,82,101,115,117,108,116,80,111,105,110,116,115,65,110,100,84,114,97,110,115,105,116,105,111,110,115,69,0,78,53,122,120,105,110,103,57,66,105,116,83,111,117,114,99,101,69,0,78,53,122,120,105,110,103,49,48,100,97,116,97,109,97,116,114,105,120,57,68,97,116,97,66,108,111,99,107,69,0,78,53,122,120,105,110,103,49,48,100,97,116,97,109,97,116,114,105,120,49,53,66,105,116,77,97,116,114,105,120,80,97,114,115,101,114,69,0,78,53,122,120,105,110,103,54,83,116,114,105,110,103,69,0,78,53,122,120,105,110,103,50,49,73,108,108,101,103,97,108,83,116,97,116,101,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,49,51,71,101,110,101,114,105,99,71,70,80,111,108,121,69,0,78,53,122,120,105,110,103,57,71,101,110,101,114,105,99,71,70,69,0,78,53,122,120,105,110,103,50,48,80,101,114,115,112,101,99,116,105,118,101,84,114,97,110,115,102,111,114,109,69,0,78,53,122,120,105,110,103,49,52,68,101,116,101,99,116,111,114,82,101,115,117,108,116,69,0,78,53,122,120,105,110,103,56,65,114,114,97,121,82,101,102,73,78,83,48,95,73,99,69,69,69,69,0,78,53,122,120,105,110,103,49,51,68,101,99,111,100,101,114,82,101,115,117,108,116,69,0,78,53,122,120,105,110,103,54,99,111,109,109,111,110,49,53,67,104,97,114,97,99,116,101,114,83,101,116,69,67,73,69,0,69,85,67,95,75,82,0,69,85,67,45,75,82,0,71,66,49,56,48,51,48,0,71,66,50,51,49,50,0,69,85,67,95,67,78,0,71,66,75,0,66,105,103,53,0,65,83,67,73,73,0,85,83,45,65,83,67,73,73,0,85,84,70,56,0,85,84,70,45,56,0,85,110,105,99,111,100,101,66,105,103,85,110,109,97,114,107,101,100,0,85,84,70,45,49,54,66,69,0,85,110,105,99,111,100,101,66,105,103,0,67,112,49,50,53,54,0,119,105,110,100,111,119,115,45,49,50,53,54,0,67,112,49,50,53,50,0,119,105,110,100,111,119,115,45,49,50,53,50,0,67,112,49,50,53,49,0,119,105,110,100,111,119,115,45,49,50,53,49,0,67,112,49,50,53,48,0,119,105,110,100,111,119,115,45,49,50,53,48,0,83,74,73,83,0,83,104,105,102,116,95,74,73,83,0,73,83,79,56,56,53,57,95,49,54,0,73,83,79,45,56,56,53,57,45,49,54,0,73,83,79,56,56,53,57,95,49,53,0,73,83,79,45,56,56,53,57,45,49,53,0,73,83,79,56,56,53,57,95,49,52,0,73,83,79,45,56,56,53,57,45,49,52,0,73,83,79,56,56,53,57,95,49,51,0,73,83,79,45,56,56,53,57,45,49,51,0,73,83,79,56,56,53,57,95,49,49,0,73,83,79,45,56,56,53,57,45,49,49,0,73,83,79,56,56,53,57,95,49,48,0,73,83,79,45,56,56,53,57,45,49,48,0,73,83,79,56,56,53,57,95,57,0,73,83,79,45,56,56,53,57,45,57,0,73,83,79,56,56,53,57,95,56,0,73,83,79,45,56,56,53,57,45,56,0,73,83,79,56,56,53,57,95,55,0,73,83,79,45,56,56,53,57,45,55,0,73,83,79,56,56,53,57,95,54,0,73,83,79,45,56,56,53,57,45,54,0,73,83,79,56,56,53,57,95,53,0,73,83,79,45,56,56,53,57,45,53,0,73,83,79,56,56,53,57,95,52,0,73,83,79,45,56,56,53,57,45,52,0,73,83,79,56,56,53,57,95,51,0,73,83,79,45,56,56,53,57,45,51,0,73,83,79,56,56,53,57,95,50,0,73,83,79,45,56,56,53,57,45,50,0,73,83,79,56,56,53,57,95,49,0,73,83,79,45,56,56,53,57,45,49,0,67,112,52,51,55,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,105,110,103,98,117,102,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,78,83,95,57,97,108,108,111,99,97,116,111,114,73,99,69,69,69,69,0,78,83,116,51,95,95,49,49,57,98,97,115,105,99,95,111,115,116,114,105,110,103,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,78,83,95,57,97,108,108,111,99,97,116,111,114,73,99,69,69,69,69,0,66,111,116,104,32,100,105,109,101,110,115,105,111,110,115,32,109,117,115,116,32,98,101,32,103,114,101,97,116,101,114,32,116,104,97,110,32,48,0,78,53,122,120,105,110,103,56,65,114,114,97,121,82,101,102,73,105,69,69,0,78,53,122,120,105,110,103,53,65,114,114,97,121,73,105,69,69,0,78,53,122,120,105,110,103,53,65,114,114,97,121,73,78,83,95,51,82,101,102,73,78,83,95,49,49,82,101,115,117,108,116,80,111,105,110,116,69,69,69,69,69,0,78,53,122,120,105,110,103,53,97,122,116,101,99,53,80,111,105,110,116,69,0,78,53,122,120,105,110,103,49,55,78,111,116,70,111,117,110,100,69,120,99,101,112,116,105,111,110,69,0,78,53,122,120,105,110,103,50,50,87,104,105,116,101,82,101,99,116,97,110,103,108,101,68,101,116,101,99,116,111,114,69,0,67,84,82,76,95,80,83,0,32,0,48,0,49,0,50,0,51,0,52,0,53,0,54,0,55,0,56,0,57,0,44,0,67,84,82,76,95,85,76,0,67,84,82,76,95,85,83,0,13,0,13,10,0,46,32,0,44,32,0,33,0,34,0,35,0,36,0,37,0,38,0,39,0,40,0,41,0,42,0,43,0,45,0,47,0,58,0,59,0,60,0,61,0,62,0,63,0,91,0,93,0,123,0,125,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,27,0,28,0,29,0,30,0,31,0,64,0,92,0,94,0,95,0,96,0,124,0,126,0,127,0,67,84,82,76,95,76,76,0,67,84,82,76,95,80,76,0,67,84,82,76,95,66,83,0,97,0,98,0,99,0,100,0,101,0,102,0,103,0,104,0,105,0,106,0,107,0,109,0,110,0,111,0,112,0,113,0,114,0,115,0,116,0,117,0,118,0,119,0,120,0,121,0,122,0,67,84,82,76,95,77,76,0,67,84,82,76,95,68,76,0,65,0,66,0,68,0,69,0,70,0,71,0,73,0,74,0,75,0,78,0,79,0,80,0,82,0,83,0,84,0,85,0,86,0,87,0,88,0,89,0,90,0,78,53,122,120,105,110,103,53,97,122,116,101,99,55,68,101,99,111,100,101,114,69,0,78,53,122,120,105,110,103,53,97,122,116,101,99,56,68,101,116,101,99,116,111,114,69,0,78,53,122,120,105,110,103,53,97,122,116,101,99,49,57,65,122,116,101,99,68,101,116,101,99,116,111,114,82,101,115,117,108,116,69,0,77,0,81,0,72,0,84,69,82,77,73,78,65,84,79,82,0,78,85,77,69,82,73,67,0,65,76,80,72,65,78,85,77,69,82,73,67,0,83,84,82,85,67,84,85,82,69,68,95,65,80,80,69,78,68,0,66,89,84,69,0,69,67,73,0,75,65,78,74,73,0,70,78,67,49,95,70,73,82,83,84,95,80,79,83,73,84,73,79,78,0,70,78,67,49,95,83,69,67,79,78,68,95,80,79,83,73,84,73,79,78,0,72,65,78,90,73,0,118,111,105,100,0,98,111,111,108,0,99,104,97,114,0,115,105,103,110,101,100,32,99,104,97,114,0,117,110,115,105,103,110,101,100,32,99,104,97,114,0,115,104,111,114,116,0,117,110,115,105,103,110,101,100,32,115,104,111,114,116,0,105,110,116,0,117,110,115,105,103,110,101,100,32,105,110,116,0,108,111,110,103,0,117,110,115,105,103,110,101,100,32,108,111,110,103,0,102,108,111,97,116,0,100,111,117,98,108,101,0,115,116,100,58,58,115,116,114,105,110,103,0,115,116,100,58,58,98,97,115,105,99,95,115,116,114,105,110,103,60,117,110,115,105,103,110,101,100,32,99,104,97,114,62,0,115,116,100,58,58,119,115,116,114,105,110,103,0,101,109,115,99,114,105,112,116,101,110,58,58,118,97,108,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,99,104,97,114,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,115,105,103,110,101,100,32,99,104,97,114,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,117,110,115,105,103,110,101,100,32,99,104,97,114,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,115,104,111,114,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,117,110,115,105,103,110,101,100,32,115,104,111,114,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,105,110,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,117,110,115,105,103,110,101,100,32,105,110,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,108,111,110,103,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,117,110,115,105,103,110,101,100,32,108,111,110,103,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,105,110,116,56,95,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,117,105,110,116,56,95,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,105,110,116,49,54,95,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,117,105,110,116,49,54,95,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,105,110,116,51,50,95,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,117,105,110,116,51,50,95,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,102,108,111,97,116,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,100,111,117,98,108,101,62,0,101,109,115,99,114,105,112,116,101,110,58,58,109,101,109,111,114,121,95,118,105,101,119,60,108,111,110,103,32,100,111,117,98,108,101,62,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,101,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,100,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,102,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,109,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,108,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,106,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,105,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,116,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,115,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,104,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,97,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,49,49,109,101,109,111,114,121,95,118,105,101,119,73,99,69,69,0,78,49,48,101,109,115,99,114,105,112,116,101,110,51,118,97,108,69,0,78,83,116,51,95,95,49,49,50,98,97,115,105,99,95,115,116,114,105,110,103,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,78,83,95,57,97,108,108,111,99,97,116,111,114,73,119,69,69,69,69,0,78,83,116,51,95,95,49,50,49,95,95,98,97,115,105,99,95,115,116,114,105,110,103,95,99,111,109,109,111,110,73,76,98,49,69,69,69,0,78,83,116,51,95,95,49,49,50,98,97,115,105,99,95,115,116,114,105,110,103,73,104,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,104,69,69,78,83,95,57,97,108,108,111,99,97,116,111,114,73,104,69,69,69,69,0,78,83,116,51,95,95,49,49,50,98,97,115,105,99,95,115,116,114,105,110,103,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,78,83,95,57,97,108,108,111,99,97,116,111,114,73,99,69,69,69,69,0,83,116,57,98,97,100,95,97,108,108,111,99,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,49,51,114,117,110,116,105,109,101,95,101,114,114,111,114,0,83,116,57,116,121,112,101,95,105,110,102,111,0,83,116,56,98,97,100,95,99,97,115,116,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,51,95,95,102,117,110,100,97,109,101,110,116,97,108,95,116,121,112,101,95,105,110,102,111,69,0,68,110,0,80,75,99,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,49,95,95,118,109,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,33,34,98,97,115,105,99,95,115,116,114,105,110,103,32,108,101,110,103,116,104,95,101,114,114,111,114,34,0,47,85,115,101,114,115,47,105,108,109,97,114,105,47,68,111,119,110,108,111,97,100,115,47,101,109,115,100,107,95,112,111,114,116,97,98,108,101,47,101,109,115,99,114,105,112,116,101,110,47,49,46,51,53,46,48,47,115,121,115,116,101,109,47,105,110,99,108,117,100,101,47,108,105,98,99,120,120,47,115,116,114,105,110,103,0,95,95,116,104,114,111,119,95,108,101,110,103,116,104,95,101,114,114,111,114,0,33,34,118,101,99,116,111,114,32,108,101,110,103,116,104,95,101,114,114,111,114,34,0,47,85,115,101,114,115,47,105,108,109,97,114,105,47,68,111,119,110,108,111,97,100,115,47,101,109,115,100,107,95,112,111,114,116,97,98,108,101,47,101,109,115,99,114,105,112,116,101,110,47,49,46,51,53,46,48,47,115,121,115,116,101,109,47,105,110,99,108,117,100,101,47,108,105,98,99,120,120,47,118,101,99,116,111,114,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,115,116,100,58,58,98,97,100,95,97,108,108,111,99,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,116,104,114,101,119,32,97,110,32,101,120,99,101,112,116,105,111,110,0,115,116,100,58,58,98,97,100,95,99,97,115,116,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,33,34,98,97,115,105,99,95,115,116,114,105,110,103,32,111,117,116,95,111,102,95,114,97,110,103,101,34,0,95,95,116,104,114,111,119,95,111,117,116,95,111,102,95,114,97,110,103,101,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,116,101,114,109,105,110,97,116,105,110,103,0,117,110,99,97,117,103,104,116,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,105,110,102,105,110,105,116,121,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,4,7,3,6,5,0,80,79,83,73,88],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+48376);allocate([17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,55,102,97,105,108,117,114,101,69,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,69,0,78,83,116,51,95,95,49,57,98,97,115,105,99,95,105,111,115,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,101,97,109,98,117,102,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,111,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,78,83,116,51,95,95,49,49,57,95,95,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,69,0,105,111,115,95,98,97,115,101,58,58,99,108,101,97,114,0,105,111,115,116,114,101,97,109,0,117,110,115,112,101,99,105,102,105,101,100,32,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,32,101,114,114,111,114,0,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,65,66,67,68,69,70,120,88,43,45,112,80,105,73,110,78,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,102,97,99,101,116,69,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,119,69,69,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,99,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,115,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,105,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,78,83,116,51,95,95,49,49,54,95,95,110,97,114,114,111,119,95,116,111,95,117,116,102,56,73,76,106,51,50,69,69,69,0,78,83,116,51,95,95,49,49,55,95,95,119,105,100,101,110,95,102,114,111,109,95,117,116,102,56,73,76,106,51,50,69,69,69,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,119,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,95,95,105,109,112,69,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,99,69,69,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,119,69,69,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,99,69,69,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,99,69,69,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,119,69,69,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,48,69,69,69,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,49,69,69,69,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,48,69,69,69,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,49,69,69,69,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,99,69,69,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,119,69,69,0,37,112,0,67,0,37,0,0,0,0,0,108,0,108,108,0,0,76,0,37,112,0,0,0,0,37,72,58,37,77,58,37,83,37,109,47,37,100,47,37,121,37,89,45,37,109,45,37,100,37,73,58,37,77,58,37,83,32,37,112,37,72,58,37,77,37,72,58,37,77,58,37,83,108,111,99,97,108,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,48,49,50,51,52,53,54,55,56,57,0,37,76,102,0,109,111,110,101,121,95,103,101,116,32,101,114,114,111,114,0,48,49,50,51,52,53,54,55,56,57,0,37,46,48,76,102,0,116,114,117,101,0,102,97,108,115,101,0,83,117,110,100,97,121,0,77,111,110,100,97,121,0,84,117,101,115,100,97,121,0,87,101,100,110,101,115,100,97,121,0,84,104,117,114,115,100,97,121,0,70,114,105,100,97,121,0,83,97,116,117,114,100,97,121,0,83,117,110,0,77,111,110,0,84,117,101,0,87,101,100,0,84,104,117,0,70,114,105,0,83,97,116,0,74,97,110,117,97,114,121,0,70,101,98,114,117,97,114,121,0,77,97,114,99,104,0,65,112,114,105,108,0,77,97,121,0,74,117,110,101,0,74,117,108,121,0,65,117,103,117,115,116,0,83,101,112,116,101,109,98,101,114,0,79,99,116,111,98,101,114,0,78,111,118,101,109,98,101,114,0,68,101,99,101,109,98,101,114,0,74,97,110,0,70,101,98,0,77,97,114,0,65,112,114,0,74,117,110,0,74,117,108,0,65,117,103,0,83,101,112,0,79,99,116,0,78,111,118,0,68,101,99,0,65,77,0,80,77,0,37,109,47,37,100,47,37,121,0,37,72,58,37,77,58,37,83,0,37,97,32,37,98,32,37,100,32,37,72,58,37,77,58,37,83,32,37,89,0,37,73,58,37,77,58,37,83,32,37,112,0,78,83,116,51,95,95,49,49,51,109,101,115,115,97,103,101,115,95,98,97,115,101,69,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,119,69,69,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,99,69,69,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,119,69,69,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,99,69,69,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,95,98,97,115,101,69,0,78,83,116,51,95,95,49,49,48,95,95,116,105,109,101,95,112,117,116,69,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,119,69,69,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,99,69,69,0,78,83,116,51,95,95,49,57,116,105,109,101,95,98,97,115,101,69,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,119,69,69,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,112,117,116,95,98,97,115,101,69,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,99,69,69,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,119,69,69,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,103,101,116,95,98,97,115,101,69,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,99,69,69,0,78,83,116,51,95,95,49,49,50,99,111,100,101,99,118,116,95,98,97,115,101,69,0,78,83,116,51,95,95,49,49,48,99,116,121,112,101,95,98,97,115,101,69,0,78,83,116,51,95,95,49,49,52,95,95,115,104,97,114,101,100,95,99,111,117,110,116,69,0,78,83,116,51,95,95,49,49,50,115,121,115,116,101,109,95,101,114,114,111,114,69,0,78,83,116,51,95,95,49,49,52,101,114,114,111,114,95,99,97,116,101,103,111,114,121,69,0,78,83,116,51,95,95,49,49,50,95,95,100,111,95,109,101,115,115,97,103,101,69,0,58,32,0],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+59042);var tempDoublePtr=Runtime.alignMemory(allocate(12,"i8",ALLOC_STATIC),8);assert(tempDoublePtr%8==0);function copyTempFloat(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3]}function copyTempDouble(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3];HEAP8[tempDoublePtr+4]=HEAP8[ptr+4];HEAP8[tempDoublePtr+5]=HEAP8[ptr+5];HEAP8[tempDoublePtr+6]=HEAP8[ptr+6];HEAP8[tempDoublePtr+7]=HEAP8[ptr+7]}function _atexit(func,arg){__ATEXIT__.unshift({func:func,arg:arg})}function ___cxa_atexit(){return _atexit.apply(null,arguments)}Module["_i64Add"]=_i64Add;Module["_i64Subtract"]=_i64Subtract;var _fabsf=Math_abs;var _floorf=Math_floor;function __ZSt18uncaught_exceptionv(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}var EXCEPTIONS={last:0,caught:[],infos:{},deAdjust:(function(adjusted){if(!adjusted||EXCEPTIONS.infos[adjusted])return adjusted;for(var ptr in EXCEPTIONS.infos){var info=EXCEPTIONS.infos[ptr];if(info.adjusted===adjusted){return ptr}}return adjusted}),addRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount++}),decRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];assert(info.refcount>0);info.refcount--;if(info.refcount===0){if(info.destructor){Runtime.dynCall("vi",info.destructor,[ptr])}delete EXCEPTIONS.infos[ptr];___cxa_free_exception(ptr)}}),clearRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount=0})};function ___resumeException(ptr){if(!EXCEPTIONS.last){EXCEPTIONS.last=ptr}EXCEPTIONS.clearRef(EXCEPTIONS.deAdjust(ptr));throw ptr}function ___cxa_find_matching_catch(){var thrown=EXCEPTIONS.last;if(!thrown){return(asm["setTempRet0"](0),0)|0}var info=EXCEPTIONS.infos[thrown];var throwntype=info.type;if(!throwntype){return(asm["setTempRet0"](0),thrown)|0}var typeArray=Array.prototype.slice.call(arguments);var pointer=Module["___cxa_is_pointer_type"](throwntype);if(!___cxa_find_matching_catch.buffer)___cxa_find_matching_catch.buffer=_malloc(4);HEAP32[___cxa_find_matching_catch.buffer>>2]=thrown;thrown=___cxa_find_matching_catch.buffer;for(var i=0;i<typeArray.length;i++){if(typeArray[i]&&Module["___cxa_can_catch"](typeArray[i],throwntype,thrown)){thrown=HEAP32[thrown>>2];info.adjusted=thrown;return(asm["setTempRet0"](typeArray[i]),thrown)|0}}thrown=HEAP32[thrown>>2];return(asm["setTempRet0"](throwntype),thrown)|0}function ___cxa_throw(ptr,type,destructor){EXCEPTIONS.infos[ptr]={ptr:ptr,adjusted:ptr,type:type,destructor:destructor,refcount:0};EXCEPTIONS.last=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exception=1}else{__ZSt18uncaught_exceptionv.uncaught_exception++}throw ptr}function getShiftFromSize(size){switch(size){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+size)}}function embind_init_charCodes(){var codes=new Array(256);for(var i=0;i<256;++i){codes[i]=String.fromCharCode(i)}embind_charCodes=codes}var embind_charCodes=undefined;function readLatin1String(ptr){var ret="";var c=ptr;while(HEAPU8[c]){ret+=embind_charCodes[HEAPU8[c++]]}return ret}var awaitingDependencies={};var registeredTypes={};var typeDependencies={};var char_0=48;var char_9=57;function makeLegalFunctionName(name){if(undefined===name){return"_unknown"}name=name.replace(/[^a-zA-Z0-9_]/g,"$");var f=name.charCodeAt(0);if(f>=char_0&&f<=char_9){return"_"+name}else{return name}}function createNamedFunction(name,body){name=makeLegalFunctionName(name);return(new Function("body","return function "+name+"() {\n"+'    "use strict";'+"    return body.apply(this, arguments);\n"+"};\n"))(body)}function extendError(baseErrorType,errorName){var errorClass=createNamedFunction(errorName,(function(message){this.name=errorName;this.message=message;var stack=(new Error(message)).stack;if(stack!==undefined){this.stack=this.toString()+"\n"+stack.replace(/^Error(:[^\n]*)?\n/,"")}}));errorClass.prototype=Object.create(baseErrorType.prototype);errorClass.prototype.constructor=errorClass;errorClass.prototype.toString=(function(){if(this.message===undefined){return this.name}else{return this.name+": "+this.message}});return errorClass}var BindingError=undefined;function throwBindingError(message){throw new BindingError(message)}var InternalError=undefined;function throwInternalError(message){throw new InternalError(message)}function whenDependentTypesAreResolved(myTypes,dependentTypes,getTypeConverters){myTypes.forEach((function(type){typeDependencies[type]=dependentTypes}));function onComplete(typeConverters){var myTypeConverters=getTypeConverters(typeConverters);if(myTypeConverters.length!==myTypes.length){throwInternalError("Mismatched type converter count")}for(var i=0;i<myTypes.length;++i){registerType(myTypes[i],myTypeConverters[i])}}var typeConverters=new Array(dependentTypes.length);var unregisteredTypes=[];var registered=0;dependentTypes.forEach((function(dt,i){if(registeredTypes.hasOwnProperty(dt)){typeConverters[i]=registeredTypes[dt]}else{unregisteredTypes.push(dt);if(!awaitingDependencies.hasOwnProperty(dt)){awaitingDependencies[dt]=[]}awaitingDependencies[dt].push((function(){typeConverters[i]=registeredTypes[dt];++registered;if(registered===unregisteredTypes.length){onComplete(typeConverters)}}))}}));if(0===unregisteredTypes.length){onComplete(typeConverters)}}function registerType(rawType,registeredInstance,options){options=options||{};if(!("argPackAdvance"in registeredInstance)){throw new TypeError("registerType registeredInstance requires argPackAdvance")}var name=registeredInstance.name;if(!rawType){throwBindingError('type "'+name+'" must have a positive integer typeid pointer')}if(registeredTypes.hasOwnProperty(rawType)){if(options.ignoreDuplicateRegistrations){return}else{throwBindingError("Cannot register type '"+name+"' twice")}}registeredTypes[rawType]=registeredInstance;delete typeDependencies[rawType];if(awaitingDependencies.hasOwnProperty(rawType)){var callbacks=awaitingDependencies[rawType];delete awaitingDependencies[rawType];callbacks.forEach((function(cb){cb()}))}}function __embind_register_bool(rawType,name,size,trueValue,falseValue){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(wt){return!!wt}),"toWireType":(function(destructors,o){return o?trueValue:falseValue}),"argPackAdvance":8,"readValueFromPointer":(function(pointer){var heap;if(size===1){heap=HEAP8}else if(size===2){heap=HEAP16}else if(size===4){heap=HEAP32}else{throw new TypeError("Unknown boolean type size: "+name)}return this["fromWireType"](heap[pointer>>shift])}),destructorFunction:null})}var _emscripten_landingpad=true;function _free(){}Module["_free"]=_free;function ___cxa_free_exception(ptr){try{return _free(ptr)}catch(e){}}function ___cxa_end_catch(){if(___cxa_end_catch.rethrown){___cxa_end_catch.rethrown=false;return}asm["setThrew"](0);var ptr=EXCEPTIONS.caught.pop();if(ptr){EXCEPTIONS.decRef(EXCEPTIONS.deAdjust(ptr));EXCEPTIONS.last=0}}function _embind_repr(v){if(v===null){return"null"}var t=typeof v;if(t==="object"||t==="array"||t==="function"){return v.toString()}else{return""+v}}function integerReadValueFromPointer(name,shift,signed){switch(shift){case 0:return signed?function readS8FromPointer(pointer){return HEAP8[pointer]}:function readU8FromPointer(pointer){return HEAPU8[pointer]};case 1:return signed?function readS16FromPointer(pointer){return HEAP16[pointer>>1]}:function readU16FromPointer(pointer){return HEAPU16[pointer>>1]};case 2:return signed?function readS32FromPointer(pointer){return HEAP32[pointer>>2]}:function readU32FromPointer(pointer){return HEAPU32[pointer>>2]};default:throw new TypeError("Unknown integer type: "+name)}}function __embind_register_integer(primitiveType,name,size,minRange,maxRange){name=readLatin1String(name);if(maxRange===-1){maxRange=4294967295}var shift=getShiftFromSize(size);var fromWireType=(function(value){return value});if(minRange===0){var bitshift=32-8*size;fromWireType=(function(value){return value<<bitshift>>>bitshift})}registerType(primitiveType,{name:name,"fromWireType":fromWireType,"toWireType":(function(destructors,value){if(typeof value!=="number"&&typeof value!=="boolean"){throw new TypeError('Cannot convert "'+_embind_repr(value)+'" to '+this.name)}if(value<minRange||value>maxRange){throw new TypeError('Passing a number "'+_embind_repr(value)+'" from JS side to C/C++ side to an argument of type "'+name+'", which is outside the valid range ['+minRange+", "+maxRange+"]!")}return value|0}),"argPackAdvance":8,"readValueFromPointer":integerReadValueFromPointer(name,shift,minRange!==0),destructorFunction:null})}var _sqrtf=Math_sqrt;function ___setErrNo(value){if(Module["___errno_location"])HEAP32[Module["___errno_location"]()>>2]=value;return value}var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};function _sysconf(name){switch(name){case 30:return PAGE_SIZE;case 85:return totalMemory/PAGE_SIZE;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:{if(typeof navigator==="object")return navigator["hardwareConcurrency"]||1;return 1}}___setErrNo(ERRNO_CODES.EINVAL);return-1}var _emscripten_postinvoke=true;var PTHREAD_SPECIFIC={};var PTHREAD_SPECIFIC_NEXT_KEY=1;function _pthread_key_create(key,destructor){if(key==0){return ERRNO_CODES.EINVAL}HEAP32[key>>2]=PTHREAD_SPECIFIC_NEXT_KEY;PTHREAD_SPECIFIC[PTHREAD_SPECIFIC_NEXT_KEY]=0;PTHREAD_SPECIFIC_NEXT_KEY++;return 0}var emval_free_list=[];var emval_handle_array=[{},{value:undefined},{value:null},{value:true},{value:false}];function __emval_decref(handle){if(handle>4&&0===--emval_handle_array[handle].refcount){emval_handle_array[handle]=undefined;emval_free_list.push(handle)}}function count_emval_handles(){var count=0;for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){++count}}return count}function get_first_emval(){for(var i=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){return emval_handle_array[i]}}return null}function init_emval(){Module["count_emval_handles"]=count_emval_handles;Module["get_first_emval"]=get_first_emval}function __emval_register(value){switch(value){case undefined:{return 1};case null:{return 2};case true:{return 3};case false:{return 4};default:{var handle=emval_free_list.length?emval_free_list.pop():emval_handle_array.length;emval_handle_array[handle]={refcount:1,value:value};return handle}}}function simpleReadValueFromPointer(pointer){return this["fromWireType"](HEAPU32[pointer>>2])}function __embind_register_emval(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(handle){var rv=emval_handle_array[handle].value;__emval_decref(handle);return rv}),"toWireType":(function(destructors,value){return __emval_register(value)}),"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:null})}var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};var PATH={splitPath:(function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)}),normalizeArray:(function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}),normalize:(function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path}),dirname:(function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir}),basename:(function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)}),extname:(function(path){return PATH.splitPath(path)[3]}),join:(function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))}),join2:(function(l,r){return PATH.normalize(l+"/"+r)}),resolve:(function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter((function(p){return!!p})),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."}),relative:(function(from,to){from=PATH.resolve(from).substr(1);to=PATH.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")})};var TTY={ttys:[],init:(function(){}),shutdown:(function(){}),register:(function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)}),stream_ops:{open:(function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}stream.tty=tty;stream.seekable=false}),close:(function(stream){stream.tty.ops.flush(stream.tty)}),flush:(function(stream){stream.tty.ops.flush(stream.tty)}),read:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.put_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}for(var i=0;i<length;i++){try{stream.tty.ops.put_char(stream.tty,buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})},default_tty_ops:{get_char:(function(tty){if(!tty.input.length){var result=null;if(ENVIRONMENT_IS_NODE){var BUFSIZE=256;var buf=new Buffer(BUFSIZE);var bytesRead=0;var fd=process.stdin.fd;var usingDevice=false;try{fd=fs.openSync("/dev/stdin","r");usingDevice=true}catch(e){}bytesRead=fs.readSync(fd,buf,0,BUFSIZE,null);if(usingDevice){fs.closeSync(fd)}if(bytesRead>0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()}),put_char:(function(tty,val){if(val===null||val===10){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}})},default_tty1_ops:{put_char:(function(tty,val){if(val===null||val===10){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}})}};var MEMFS={ops_table:null,mount:(function(mount){return MEMFS.createNode(null,"/",16384|511,0)}),createNode:(function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node}),getFileDataAsRegularArray:(function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i<node.usedBytes;++i)arr.push(node.contents[i]);return arr}return node.contents}),getFileDataAsTypedArray:(function(node){if(!node.contents)return new Uint8Array;if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)}),expandFileStorage:(function(node,newCapacity){if(node.contents&&node.contents.subarray&&newCapacity>node.contents.length){node.contents=MEMFS.getFileDataAsRegularArray(node);node.usedBytes=node.contents.length}if(!node.contents||node.contents.subarray){var prevCapacity=node.contents?node.contents.buffer.byteLength:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity<CAPACITY_DOUBLING_MAX?2:1.125)|0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return}if(!node.contents&&newCapacity>0)node.contents=[];while(node.contents.length<newCapacity)node.contents.push(0)}),resizeFileStorage:(function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(new ArrayBuffer(newSize));if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length<newSize)node.contents.push(0);node.usedBytes=newSize}),node_ops:{getattr:(function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}}),lookup:(function(parent,name){throw FS.genericErrors[ERRNO_CODES.ENOENT]}),mknod:(function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)}),rename:(function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}}}delete old_node.parent.contents[old_node.name];old_node.name=new_name;new_dir.contents[new_name]=old_node;old_node.parent=new_dir}),unlink:(function(parent,name){delete parent.contents[name]}),rmdir:(function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}delete parent.contents[name]}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node}),readlink:(function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return node.link})},stream_ops:{read:(function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);assert(size>=0);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i<size;i++)buffer[offset+i]=contents[position+i]}return size}),write:(function(stream,buffer,offset,length,position,canOwn){if(!length)return 0;var node=stream.node;node.timestamp=Date.now();if(buffer.subarray&&(!node.contents||node.contents.subarray)){if(canOwn){node.contents=buffer.subarray(offset,offset+length);node.usedBytes=length;return length}else if(node.usedBytes===0&&position===0){node.contents=new Uint8Array(buffer.subarray(offset,offset+length));node.usedBytes=length;return length}else if(position+length<=node.usedBytes){node.contents.set(buffer.subarray(offset,offset+length),position);return length}}MEMFS.expandFileStorage(node,position+length);if(node.contents.subarray&&buffer.subarray)node.contents.set(buffer.subarray(offset,offset+length),position);else{for(var i=0;i<length;i++){node.contents[position+i]=buffer[offset+i]}}node.usedBytes=Math.max(node.usedBytes,position+length);return length}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.usedBytes}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}),allocate:(function(stream,offset,length){MEMFS.expandFileStorage(stream.node,offset+length);stream.node.usedBytes=Math.max(stream.node.usedBytes,offset+length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}var ptr;var allocated;var contents=stream.node.contents;if(!(flags&2)&&(contents.buffer===buffer||contents.buffer===buffer.buffer)){allocated=false;ptr=contents.byteOffset}else{if(position>0||position+length<stream.node.usedBytes){if(contents.subarray){contents=contents.subarray(position,position+length)}else{contents=Array.prototype.slice.call(contents,position,position+length)}}allocated=true;ptr=_malloc(length);if(!ptr){throw new FS.ErrnoError(ERRNO_CODES.ENOMEM)}buffer.set(contents,ptr)}return{ptr:ptr,allocated:allocated}}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(mmapFlags&2){return 0}var bytesWritten=MEMFS.stream_ops.write(stream,buffer,0,length,offset,false);return 0})}};var IDBFS={dbs:{},indexedDB:(function(){if(typeof indexedDB!=="undefined")return indexedDB;var ret=null;if(typeof window==="object")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,"IDBFS used, but indexedDB not supported");return ret}),DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:(function(mount){return MEMFS.mount.apply(null,arguments)}),syncfs:(function(mount,populate,callback){IDBFS.getLocalSet(mount,(function(err,local){if(err)return callback(err);IDBFS.getRemoteSet(mount,(function(err,remote){if(err)return callback(err);var src=populate?remote:local;var dst=populate?local:remote;IDBFS.reconcile(src,dst,callback)}))}))}),getDB:(function(name,callback){var db=IDBFS.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBFS.indexedDB().open(name,IDBFS.DB_VERSION)}catch(e){return callback(e)}req.onupgradeneeded=(function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBFS.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBFS.DB_STORE_NAME)}if(!fileStore.indexNames.contains("timestamp")){fileStore.createIndex("timestamp","timestamp",{unique:false})}});req.onsuccess=(function(){db=req.result;IDBFS.dbs[name]=db;callback(null,db)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),getLocalSet:(function(mount,callback){var entries={};function isRealDir(p){return p!=="."&&p!==".."}function toAbsolute(root){return(function(p){return PATH.join2(root,p)})}var check=FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));while(check.length){var path=check.pop();var stat;try{stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){check.push.apply(check,FS.readdir(path).filter(isRealDir).map(toAbsolute(path)))}entries[path]={timestamp:stat.mtime}}return callback(null,{type:"local",entries:entries})}),getRemoteSet:(function(mount,callback){var entries={};IDBFS.getDB(mount.mountpoint,(function(err,db){if(err)return callback(err);var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readonly");transaction.onerror=(function(e){callback(this.error);e.preventDefault()});var store=transaction.objectStore(IDBFS.DB_STORE_NAME);var index=store.index("timestamp");index.openKeyCursor().onsuccess=(function(event){var cursor=event.target.result;if(!cursor){return callback(null,{type:"remote",db:db,entries:entries})}entries[cursor.primaryKey]={timestamp:cursor.key};cursor.continue()})}))}),loadLocalEntry:(function(path,callback){var stat,node;try{var lookup=FS.lookupPath(path);node=lookup.node;stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){return callback(null,{timestamp:stat.mtime,mode:stat.mode})}else if(FS.isFile(stat.mode)){node.contents=MEMFS.getFileDataAsTypedArray(node);return callback(null,{timestamp:stat.mtime,mode:stat.mode,contents:node.contents})}else{return callback(new Error("node type not supported"))}}),storeLocalEntry:(function(path,entry,callback){try{if(FS.isDir(entry.mode)){FS.mkdir(path,entry.mode)}else if(FS.isFile(entry.mode)){FS.writeFile(path,entry.contents,{encoding:"binary",canOwn:true})}else{return callback(new Error("node type not supported"))}FS.chmod(path,entry.mode);FS.utime(path,entry.timestamp,entry.timestamp)}catch(e){return callback(e)}callback(null)}),removeLocalEntry:(function(path,callback){try{var lookup=FS.lookupPath(path);var stat=FS.stat(path);if(FS.isDir(stat.mode)){FS.rmdir(path)}else if(FS.isFile(stat.mode)){FS.unlink(path)}}catch(e){return callback(e)}callback(null)}),loadRemoteEntry:(function(store,path,callback){var req=store.get(path);req.onsuccess=(function(event){callback(null,event.target.result)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),storeRemoteEntry:(function(store,path,entry,callback){var req=store.put(entry,path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),removeRemoteEntry:(function(store,path,callback){var req=store.delete(path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),reconcile:(function(src,dst,callback){var total=0;var create=[];Object.keys(src.entries).forEach((function(key){var e=src.entries[key];var e2=dst.entries[key];if(!e2||e.timestamp>e2.timestamp){create.push(key);total++}}));var remove=[];Object.keys(dst.entries).forEach((function(key){var e=dst.entries[key];var e2=src.entries[key];if(!e2){remove.push(key);total++}}));if(!total){return callback(null)}var errored=false;var completed=0;var db=src.type==="remote"?src.db:dst.db;var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readwrite");var store=transaction.objectStore(IDBFS.DB_STORE_NAME);function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=total){return callback(null)}}transaction.onerror=(function(e){done(this.error);e.preventDefault()});create.sort().forEach((function(path){if(dst.type==="local"){IDBFS.loadRemoteEntry(store,path,(function(err,entry){if(err)return done(err);IDBFS.storeLocalEntry(path,entry,done)}))}else{IDBFS.loadLocalEntry(path,(function(err,entry){if(err)return done(err);IDBFS.storeRemoteEntry(store,path,entry,done)}))}}));remove.sort().reverse().forEach((function(path){if(dst.type==="local"){IDBFS.removeLocalEntry(path,done)}else{IDBFS.removeRemoteEntry(store,path,done)}}))})};var NODEFS={isWindows:false,staticInit:(function(){NODEFS.isWindows=!!process.platform.match(/^win/)}),mount:(function(mount){assert(ENVIRONMENT_IS_NODE);return NODEFS.createNode(null,"/",NODEFS.getMode(mount.opts.root),0)}),createNode:(function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=FS.createNode(parent,name,mode);node.node_ops=NODEFS.node_ops;node.stream_ops=NODEFS.stream_ops;return node}),getMode:(function(path){var stat;try{stat=fs.lstatSync(path);if(NODEFS.isWindows){stat.mode=stat.mode|(stat.mode&146)>>1}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return stat.mode}),realPath:(function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)}),flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:(function(flags){flags&=~32768;if(flags in NODEFS.flagsToPermissionStringMap){return NODEFS.flagsToPermissionStringMap[flags]}else{throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}}),node_ops:{getattr:(function(node){var path=NODEFS.realPath(node);var stat;try{stat=fs.lstatSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(NODEFS.isWindows&&!stat.blksize){stat.blksize=4096}if(NODEFS.isWindows&&!stat.blocks){stat.blocks=(stat.size+stat.blksize-1)/stat.blksize|0}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}}),setattr:(function(node,attr){var path=NODEFS.realPath(node);try{if(attr.mode!==undefined){fs.chmodSync(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);fs.utimesSync(path,date,date)}if(attr.size!==undefined){fs.truncateSync(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),lookup:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);var mode=NODEFS.getMode(path);return NODEFS.createNode(parent,name,mode)}),mknod:(function(parent,name,mode,dev){var node=NODEFS.createNode(parent,name,mode,dev);var path=NODEFS.realPath(node);try{if(FS.isDir(node.mode)){fs.mkdirSync(path,node.mode)}else{fs.writeFileSync(path,"",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return node}),rename:(function(oldNode,newDir,newName){var oldPath=NODEFS.realPath(oldNode);var newPath=PATH.join2(NODEFS.realPath(newDir),newName);try{fs.renameSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),unlink:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.unlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),rmdir:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.rmdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readdir:(function(node){var path=NODEFS.realPath(node);try{return fs.readdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),symlink:(function(parent,newName,oldPath){var newPath=PATH.join2(NODEFS.realPath(parent),newName);try{fs.symlinkSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readlink:(function(node){var path=NODEFS.realPath(node);try{path=fs.readlinkSync(path);path=NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root),path);return path}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}})},stream_ops:{open:(function(stream){var path=NODEFS.realPath(stream.node);try{if(FS.isFile(stream.node.mode)){stream.nfd=fs.openSync(path,NODEFS.flagsToPermissionString(stream.flags))}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),close:(function(stream){try{if(FS.isFile(stream.node.mode)&&stream.nfd){fs.closeSync(stream.nfd)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),read:(function(stream,buffer,offset,length,position){if(length===0)return 0;var nbuffer=new Buffer(length);var res;try{res=fs.readSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(res>0){for(var i=0;i<res;i++){buffer[offset+i]=nbuffer[i]}}return res}),write:(function(stream,buffer,offset,length,position){var nbuffer=new Buffer(buffer.subarray(offset,offset+length));var res;try{res=fs.writeSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}return res}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){try{var stat=fs.fstatSync(stream.nfd);position+=stat.size}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:(function(mount){assert(ENVIRONMENT_IS_WORKER);if(!WORKERFS.reader)WORKERFS.reader=new FileReaderSync;var root=WORKERFS.createNode(null,"/",WORKERFS.DIR_MODE,0);var createdParents={};function ensureParent(path){var parts=path.split("/");var parent=root;for(var i=0;i<parts.length-1;i++){var curr=parts.slice(0,i+1).join("/");if(!createdParents[curr]){createdParents[curr]=WORKERFS.createNode(parent,curr,WORKERFS.DIR_MODE,0)}parent=createdParents[curr]}return parent}function base(path){var parts=path.split("/");return parts[parts.length-1]}Array.prototype.forEach.call(mount.opts["files"]||[],(function(file){WORKERFS.createNode(ensureParent(file.name),base(file.name),WORKERFS.FILE_MODE,0,file,file.lastModifiedDate)}));(mount.opts["blobs"]||[]).forEach((function(obj){WORKERFS.createNode(ensureParent(obj["name"]),base(obj["name"]),WORKERFS.FILE_MODE,0,obj["data"])}));(mount.opts["packages"]||[]).forEach((function(pack){pack["metadata"].files.forEach((function(file){var name=file.filename.substr(1);WORKERFS.createNode(ensureParent(name),base(name),WORKERFS.FILE_MODE,0,pack["blob"].slice(file.start,file.end))}))}));return root}),createNode:(function(parent,name,mode,dev,contents,mtime){var node=FS.createNode(parent,name,mode);node.mode=mode;node.node_ops=WORKERFS.node_ops;node.stream_ops=WORKERFS.stream_ops;node.timestamp=(mtime||new Date).getTime();assert(WORKERFS.FILE_MODE!==WORKERFS.DIR_MODE);if(mode===WORKERFS.FILE_MODE){node.size=contents.size;node.contents=contents}else{node.size=4096;node.contents={}}if(parent){parent.contents[name]=node}return node}),node_ops:{getattr:(function(node){return{dev:1,ino:undefined,mode:node.mode,nlink:1,uid:0,gid:0,rdev:undefined,size:node.size,atime:new Date(node.timestamp),mtime:new Date(node.timestamp),ctime:new Date(node.timestamp),blksize:4096,blocks:Math.ceil(node.size/4096)}}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}}),lookup:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}),mknod:(function(parent,name,mode,dev){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rename:(function(oldNode,newDir,newName){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),unlink:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rmdir:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readdir:(function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),symlink:(function(parent,newName,oldPath){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readlink:(function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)})},stream_ops:{read:(function(stream,buffer,offset,length,position){if(position>=stream.node.size)return 0;var chunk=stream.node.contents.slice(position,position+length);var ab=WORKERFS.reader.readAsArrayBuffer(chunk);buffer.set(new Uint8Array(ab),offset);return chunk.size}),write:(function(stream,buffer,offset,length,position){throw new FS.ErrnoError(ERRNO_CODES.EIO)}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.size}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};var _stdin=allocate(1,"i32*",ALLOC_STATIC);var _stdout=allocate(1,"i32*",ALLOC_STATIC);var _stderr=allocate(1,"i32*",ALLOC_STATIC);var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,handleFSError:(function(e){if(!(e instanceof FS.ErrnoError))throw e+" : "+stackTrace();return ___setErrNo(e.errno)}),lookupPath:(function(path,opts){path=PATH.resolve(FS.cwd(),path);opts=opts||{};if(!path)return{path:"",node:null};var defaults={follow_mount:true,recurse_count:0};for(var key in defaults){if(opts[key]===undefined){opts[key]=defaults[key]}}if(opts.recurse_count>8){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}var parts=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),false);var current=FS.root;var current_path="/";for(var i=0;i<parts.length;i++){var islast=i===parts.length-1;if(islast&&opts.parent){break}current=FS.lookupNode(current,parts[i]);current_path=PATH.join2(current_path,parts[i]);if(FS.isMountpoint(current)){if(!islast||islast&&opts.follow_mount){current=current.mounted.root}}if(!islast||opts.follow){var count=0;while(FS.isLink(current.mode)){var link=FS.readlink(current_path);current_path=PATH.resolve(PATH.dirname(current_path),link);var lookup=FS.lookupPath(current_path,{recurse_count:opts.recurse_count});current=lookup.node;if(count++>40){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}}}}return{path:current_path,node:current}}),getPath:(function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}}),hashName:(function(parentid,name){var hash=0;for(var i=0;i<name.length;i++){hash=(hash<<5)-hash+name.charCodeAt(i)|0}return(parentid+hash>>>0)%FS.nameTable.length}),hashAddNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node}),hashRemoveNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}}),lookupNode:(function(parent,name){var err=FS.mayLookup(parent);if(err){throw new FS.ErrnoError(err,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)}),createNode:(function(parent,name,mode,rdev){if(!FS.FSNode){FS.FSNode=(function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev});FS.FSNode.prototype={};var readMode=292|73;var writeMode=146;Object.defineProperties(FS.FSNode.prototype,{read:{get:(function(){return(this.mode&readMode)===readMode}),set:(function(val){val?this.mode|=readMode:this.mode&=~readMode})},write:{get:(function(){return(this.mode&writeMode)===writeMode}),set:(function(val){val?this.mode|=writeMode:this.mode&=~writeMode})},isFolder:{get:(function(){return FS.isDir(this.mode)})},isDevice:{get:(function(){return FS.isChrdev(this.mode)})}})}var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node}),destroyNode:(function(node){FS.hashRemoveNode(node)}),isRoot:(function(node){return node===node.parent}),isMountpoint:(function(node){return!!node.mounted}),isFile:(function(mode){return(mode&61440)===32768}),isDir:(function(mode){return(mode&61440)===16384}),isLink:(function(mode){return(mode&61440)===40960}),isChrdev:(function(mode){return(mode&61440)===8192}),isBlkdev:(function(mode){return(mode&61440)===24576}),isFIFO:(function(mode){return(mode&61440)===4096}),isSocket:(function(mode){return(mode&49152)===49152}),flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:(function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags}),flagsToPermissionString:(function(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms}),nodePermissions:(function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return ERRNO_CODES.EACCES}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return ERRNO_CODES.EACCES}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return ERRNO_CODES.EACCES}return 0}),mayLookup:(function(dir){var err=FS.nodePermissions(dir,"x");if(err)return err;if(!dir.node_ops.lookup)return ERRNO_CODES.EACCES;return 0}),mayCreate:(function(dir,name){try{var node=FS.lookupNode(dir,name);return ERRNO_CODES.EEXIST}catch(e){}return FS.nodePermissions(dir,"wx")}),mayDelete:(function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var err=FS.nodePermissions(dir,"wx");if(err){return err}if(isdir){if(!FS.isDir(node.mode)){return ERRNO_CODES.ENOTDIR}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return ERRNO_CODES.EBUSY}}else{if(FS.isDir(node.mode)){return ERRNO_CODES.EISDIR}}return 0}),mayOpen:(function(node,flags){if(!node){return ERRNO_CODES.ENOENT}if(FS.isLink(node.mode)){return ERRNO_CODES.ELOOP}else if(FS.isDir(node.mode)){if((flags&2097155)!==0||flags&512){return ERRNO_CODES.EISDIR}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))}),MAX_OPEN_FDS:4096,nextfd:(function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(ERRNO_CODES.EMFILE)}),getStream:(function(fd){return FS.streams[fd]}),createStream:(function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=(function(){});FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:(function(){return this.node}),set:(function(val){this.node=val})},isRead:{get:(function(){return(this.flags&2097155)!==1})},isWrite:{get:(function(){return(this.flags&2097155)!==0})},isAppend:{get:(function(){return this.flags&1024})}})}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream}),closeStream:(function(fd){FS.streams[fd]=null}),chrdev_stream_ops:{open:(function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}}),llseek:(function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)})},major:(function(dev){return dev>>8}),minor:(function(dev){return dev&255}),makedev:(function(ma,mi){return ma<<8|mi}),registerDevice:(function(dev,ops){FS.devices[dev]={stream_ops:ops}}),getDevice:(function(dev){return FS.devices[dev]}),getMounts:(function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts}),syncfs:(function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}var mounts=FS.getMounts(FS.root.mount);var completed=0;function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=mounts.length){callback(null)}}mounts.forEach((function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)}))}),mount:(function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot}),unmount:(function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach((function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}}));node.mounted=null;var idx=node.mount.mounts.indexOf(mount);assert(idx!==-1);node.mount.mounts.splice(idx,1)}),lookup:(function(parent,name){return parent.node_ops.lookup(parent,name)}),mknod:(function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.mayCreate(parent,name);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.mknod(parent,name,mode,dev)}),create:(function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)}),mkdir:(function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)}),mkdev:(function(path,mode,dev){if(typeof dev==="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)}),symlink:(function(oldpath,newpath){if(!PATH.resolve(oldpath)){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var newname=PATH.basename(newpath);var err=FS.mayCreate(parent,newname);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.symlink(parent,newname,oldpath)}),rename:(function(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;try{lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!old_dir||!new_dir)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(ERRNO_CODES.EXDEV)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}relative=PATH.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var err=FS.mayDelete(old_dir,old_name,isdir);if(err){throw new FS.ErrnoError(err)}err=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(err){throw new FS.ErrnoError(err)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(new_dir!==old_dir){err=FS.nodePermissions(old_dir,"w");if(err){throw new FS.ErrnoError(err)}}try{if(FS.trackingDelegate["willMovePath"]){FS.trackingDelegate["willMovePath"](old_path,new_path)}}catch(e){console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}try{if(FS.trackingDelegate["onMovePath"])FS.trackingDelegate["onMovePath"](old_path,new_path)}catch(e){console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}}),rmdir:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,true);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}return node.node_ops.readdir(node)}),unlink:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,false);if(err){if(err===ERRNO_CODES.EISDIR)err=ERRNO_CODES.EPERM;throw new FS.ErrnoError(err)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.unlink(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readlink:(function(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!link.node_ops.readlink){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return PATH.resolve(FS.getPath(link.parent),link.node_ops.readlink(link))}),stat:(function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!node.node_ops.getattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return node.node_ops.getattr(node)}),lstat:(function(path){return FS.stat(path,true)}),chmod:(function(path,mode,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})}),lchmod:(function(path,mode){FS.chmod(path,mode,true)}),fchmod:(function(fd,mode){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chmod(stream.node,mode)}),chown:(function(path,uid,gid,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{timestamp:Date.now()})}),lchown:(function(path,uid,gid){FS.chown(path,uid,gid,true)}),fchown:(function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chown(stream.node,uid,gid)}),truncate:(function(path,len){if(len<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.nodePermissions(node,"w");if(err){throw new FS.ErrnoError(err)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})}),ftruncate:(function(fd,len){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}FS.truncate(stream.node,len)}),utime:(function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})}),open:(function(path,flags,mode,fd_start,fd_end){if(path===""){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}flags=typeof flags==="string"?FS.modeStringToFlags(flags):flags;mode=typeof mode==="undefined"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path==="object"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}if(!created){var err=FS.mayOpen(node,flags);if(err){throw new FS.ErrnoError(err)}}if(flags&512){FS.truncate(node,0)}flags&=~(128|512);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false},fd_start,fd_end);if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module["logReadFiles"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1;Module["printErr"]("read file: "+path)}}try{if(FS.trackingDelegate["onOpenFile"]){var trackingFlags=0;if((flags&2097155)!==1){trackingFlags|=FS.tracking.openFlags.READ}if((flags&2097155)!==0){trackingFlags|=FS.tracking.openFlags.WRITE}FS.trackingDelegate["onOpenFile"](path,trackingFlags)}}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: "+e.message)}return stream}),close:(function(stream){if(stream.getdents)stream.getdents=null;try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}}),llseek:(function(stream,offset,whence){if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position}),read:(function(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.read){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead}),write:(function(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.write){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if(stream.flags&1024){FS.llseek(stream,0,2)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;try{if(stream.path&&FS.trackingDelegate["onWriteToFile"])FS.trackingDelegate["onWriteToFile"](stream.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return bytesWritten}),allocate:(function(stream,offset,length){if(offset<0||length<=0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}stream.stream_ops.allocate(stream,offset,length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EACCES)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}return stream.stream_ops.mmap(stream,buffer,offset,length,position,prot,flags)}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!stream||!stream.stream_ops.msync){return 0}return stream.stream_ops.msync(stream,buffer,offset,length,mmapFlags)}),munmap:(function(stream){return 0}),ioctl:(function(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(ERRNO_CODES.ENOTTY)}return stream.stream_ops.ioctl(stream,cmd,arg)}),readFile:(function(path,opts){opts=opts||{};opts.flags=opts.flags||"r";opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){ret=UTF8ArrayToString(buf,0)}else if(opts.encoding==="binary"){ret=buf}FS.close(stream);return ret}),writeFile:(function(path,data,opts){opts=opts||{};opts.flags=opts.flags||"w";opts.encoding=opts.encoding||"utf8";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var stream=FS.open(path,opts.flags,opts.mode);if(opts.encoding==="utf8"){var buf=new Uint8Array(lengthBytesUTF8(data)+1);var actualNumBytes=stringToUTF8Array(data,buf,0,buf.length);FS.write(stream,buf,0,actualNumBytes,0,opts.canOwn)}else if(opts.encoding==="binary"){FS.write(stream,data,0,data.length,0,opts.canOwn)}FS.close(stream)}),cwd:(function(){return FS.currentPath}),chdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}var err=FS.nodePermissions(lookup.node,"x");if(err){throw new FS.ErrnoError(err)}FS.currentPath=lookup.path}),createDefaultDirectories:(function(){FS.mkdir("/tmp");FS.mkdir("/home");FS.mkdir("/home/web_user")}),createDefaultDevices:(function(){FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:(function(){return 0}),write:(function(stream,buffer,offset,length,pos){return length})});FS.mkdev("/dev/null",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev("/dev/tty",FS.makedev(5,0));FS.mkdev("/dev/tty1",FS.makedev(6,0));var random_device;if(typeof crypto!=="undefined"){var randomBuffer=new Uint8Array(1);random_device=(function(){crypto.getRandomValues(randomBuffer);return randomBuffer[0]})}else if(ENVIRONMENT_IS_NODE){random_device=(function(){return __webpack_require__(417).randomBytes(1)[0]})}else{random_device=(function(){return Math.random()*256|0})}FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")}),createSpecialDirectories:(function(){FS.mkdir("/proc");FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd");FS.mount({mount:(function(){var node=FS.createNode("/proc/self","fd",16384|511,73);node.node_ops={lookup:(function(parent,name){var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:(function(){return stream.path})}};ret.parent=ret;return ret})};return node})},{},"/proc/self/fd")}),createStandardStreams:(function(){if(Module["stdin"]){FS.createDevice("/dev","stdin",Module["stdin"])}else{FS.symlink("/dev/tty","/dev/stdin")}if(Module["stdout"]){FS.createDevice("/dev","stdout",null,Module["stdout"])}else{FS.symlink("/dev/tty","/dev/stdout")}if(Module["stderr"]){FS.createDevice("/dev","stderr",null,Module["stderr"])}else{FS.symlink("/dev/tty1","/dev/stderr")}var stdin=FS.open("/dev/stdin","r");assert(stdin.fd===0,"invalid handle for stdin ("+stdin.fd+")");var stdout=FS.open("/dev/stdout","w");assert(stdout.fd===1,"invalid handle for stdout ("+stdout.fd+")");var stderr=FS.open("/dev/stderr","w");assert(stderr.fd===2,"invalid handle for stderr ("+stderr.fd+")")}),ensureErrnoError:(function(){if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=(function(errno){this.errno=errno;for(var key in ERRNO_CODES){if(ERRNO_CODES[key]===errno){this.code=key;break}}});this.setErrno(errno);this.message=ERRNO_MESSAGES[errno]};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[ERRNO_CODES.ENOENT].forEach((function(code){FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack="<generic error, no stack>"}))}),staticInit:(function(){FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices();FS.createSpecialDirectories();FS.filesystems={"MEMFS":MEMFS,"IDBFS":IDBFS,"NODEFS":NODEFS,"WORKERFS":WORKERFS}}),init:(function(input,output,error){assert(!FS.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");FS.init.initialized=true;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()}),quit:(function(){FS.init.initialized=false;var fflush=Module["_fflush"];if(fflush)fflush(0);for(var i=0;i<FS.streams.length;i++){var stream=FS.streams[i];if(!stream){continue}FS.close(stream)}}),getMode:(function(canRead,canWrite){var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode}),joinPath:(function(parts,forceRelative){var path=PATH.join.apply(null,parts);if(forceRelative&&path[0]=="/")path=path.substr(1);return path}),absolutePath:(function(relative,base){return PATH.resolve(base,relative)}),standardizePath:(function(path){return PATH.normalize(path)}),findObject:(function(path,dontResolveLastLink){var ret=FS.analyzePath(path,dontResolveLastLink);if(ret.exists){return ret.object}else{___setErrNo(ret.error);return null}}),analyzePath:(function(path,dontResolveLastLink){try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path==="/"}catch(e){ret.error=e.errno}return ret}),createFolder:(function(parent,name,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.mkdir(path,mode)}),createPath:(function(parent,path,canRead,canWrite){parent=typeof parent==="string"?parent:FS.getPath(parent);var parts=path.split("/").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){}parent=current}return current}),createFile:(function(parent,name,properties,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.create(path,mode)}),createDataFile:(function(parent,name,data,canRead,canWrite,canOwn){var path=name?PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name):parent;var mode=FS.getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data==="string"){var arr=new Array(data.length);for(var i=0,len=data.length;i<len;++i)arr[i]=data.charCodeAt(i);data=arr}FS.chmod(node,mode|146);var stream=FS.open(node,"w");FS.write(stream,data,0,data.length,0,canOwn);FS.close(stream);FS.chmod(node,mode)}return node}),createDevice:(function(parent,name,input,output){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(!!input,!!output);if(!FS.createDevice.major)FS.createDevice.major=64;var dev=FS.makedev(FS.createDevice.major++,0);FS.registerDevice(dev,{open:(function(stream){stream.seekable=false}),close:(function(stream){if(output&&output.buffer&&output.buffer.length){output(10)}}),read:(function(stream,buffer,offset,length,pos){var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=input()}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){for(var i=0;i<length;i++){try{output(buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})});return FS.mkdev(path,mode,dev)}),createLink:(function(parent,name,target,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);return FS.symlink(target,path)}),forceLoadFile:(function(obj){if(obj.isDevice||obj.isFolder||obj.link||obj.contents)return true;var success=true;if(typeof XMLHttpRequest!=="undefined"){throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")}else if(Module["read"]){try{obj.contents=intArrayFromString(Module["read"](obj.url),true);obj.usedBytes=obj.contents.length}catch(e){success=false}}else{throw new Error("Cannot load without read() or XMLHttpRequest.")}if(!success)___setErrNo(ERRNO_CODES.EIO);return success}),createLazyFile:(function(parent,name,url,canRead,canWrite){function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_get(idx){if(idx>this.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}});var lazyArray=this;lazyArray.setDataGetter((function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]}));this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperty(lazyArray,"length",{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._length})});Object.defineProperty(lazyArray,"chunkSize",{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize})});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperty(node,"usedBytes",{get:(function(){return this.contents.length})});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach((function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return fn.apply(null,arguments)}}));stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);assert(size>=0);if(contents.slice){for(var i=0;i<size;i++){buffer[offset+i]=contents[position+i]}}else{for(var i=0;i<size;i++){buffer[offset+i]=contents.get(position+i)}}return size};node.stream_ops=stream_ops;return node}),createPreloadedFile:(function(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish){Browser.init();var fullname=name?PATH.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency("cp "+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}var handled=false;Module["preloadPlugins"].forEach((function(plugin){if(handled)return;if(plugin["canHandle"](fullname)){plugin["handle"](byteArray,fullname,finish,(function(){if(onerror)onerror();removeRunDependency(dep)}));handled=true}}));if(!handled)finish(byteArray)}addRunDependency(dep);if(typeof url=="string"){Browser.asyncLoad(url,(function(byteArray){processData(byteArray)}),onerror)}else{processData(url)}}),indexedDB:(function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}),DB_NAME:(function(){return"EM_FS_"+window.location.pathname}),DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=function openRequest_onupgradeneeded(){console.log("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=function putRequest_onsuccess(){ok++;if(ok+fail==total)finish()};putRequest.onerror=function putRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror}),loadFilesFromDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var getRequest=files.get(path);getRequest.onsuccess=function getRequest_onsuccess(){if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=function getRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror})};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:(function(dirfd,path){if(path[0]!=="/"){var dir;if(dirfd===-100){dir=FS.cwd()}else{var dirstream=FS.getStream(dirfd);if(!dirstream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);dir=dirstream.path}path=PATH.join2(dir,path)}return path}),doStat:(function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-ERRNO_CODES.ENOTDIR}throw e}HEAP32[buf>>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;HEAP32[buf+36>>2]=stat.size;HEAP32[buf+40>>2]=4096;HEAP32[buf+44>>2]=stat.blocks;HEAP32[buf+48>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+52>>2]=0;HEAP32[buf+56>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ino;return 0}),doMsync:(function(addr,stream,len,flags){var buffer=new Uint8Array(HEAPU8.subarray(addr,addr+len));FS.msync(stream,buffer,0,len,flags)}),doMkdir:(function(path,mode){path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0}),doMknod:(function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-ERRNO_CODES.EINVAL}FS.mknod(path,mode,dev);return 0}),doReadlink:(function(path,buf,bufsize){if(bufsize<=0)return-ERRNO_CODES.EINVAL;var ret=FS.readlink(path);ret=ret.slice(0,Math.max(0,bufsize));writeStringToMemory(ret,buf,true);return ret.length}),doAccess:(function(path,amode){if(amode&~7){return-ERRNO_CODES.EINVAL}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-ERRNO_CODES.EACCES}return 0}),doDup:(function(path,flags,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.open(path,flags,0,suggestFD,suggestFD).fd}),doReadv:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr<len)break}return ret}),doWritev:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret}),varargs:0,get:(function(varargs){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret}),getStr:(function(){var ret=Pointer_stringify(SYSCALLS.get());return ret}),getStreamFromFD:(function(){var stream=FS.getStream(SYSCALLS.get());if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return stream}),getSocketFromFD:(function(){var socket=SOCKFS.getSocket(SYSCALLS.get());if(!socket)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return socket}),getSocketAddress:(function(allowNull){var addrp=SYSCALLS.get(),addrlen=SYSCALLS.get();if(allowNull&&addrp===0)return null;var info=__read_sockaddr(addrp,addrlen);if(info.errno)throw new FS.ErrnoError(info.errno);info.addr=DNS.lookup_addr(info.addr)||info.addr;return info}),get64:(function(){var low=SYSCALLS.get(),high=SYSCALLS.get();if(low>=0)assert(high===0);else assert(high===-1);return low}),getZero:(function(){assert(SYSCALLS.get()===0)})};function ___syscall54(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),op=SYSCALLS.get();switch(op){case 21505:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21506:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21519:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;var argp=SYSCALLS.get();HEAP32[argp>>2]=0;return 0};case 21520:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return-ERRNO_CODES.EINVAL};case 21531:{var argp=SYSCALLS.get();return FS.ioctl(stream,op,argp)};default:abort("bad ioctl syscall "+op)}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_bitshift64Ashr"]=_bitshift64Ashr;Module["_bitshift64Lshr"]=_bitshift64Lshr;var _BDtoIHigh=true;function _pthread_cleanup_push(routine,arg){__ATEXIT__.push((function(){Runtime.dynCall("vi",routine,[arg])}));_pthread_cleanup_push.level=__ATEXIT__.length}function _pthread_cond_broadcast(){return 0}var _emscripten_resume=true;function _pthread_cleanup_pop(){assert(_pthread_cleanup_push.level==__ATEXIT__.length,"cannot pop if something else added meanwhile!");__ATEXIT__.pop();_pthread_cleanup_push.level=__ATEXIT__.length}function _pthread_mutex_unlock(){}function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;function _pthread_mutex_lock(){}function _sbrk(bytes){var self=_sbrk;if(!self.called){DYNAMICTOP=alignMemoryPage(DYNAMICTOP);self.called=true;assert(Runtime.dynamicAlloc);self.alloc=Runtime.dynamicAlloc;Runtime.dynamicAlloc=(function(){abort("cannot dynamically allocate, sbrk now has control")})}var ret=DYNAMICTOP;if(bytes!=0){var success=self.alloc(bytes);if(!success)return-1>>>0}return ret}function __isLeapYear(year){return year%4===0&&(year%100!==0||year%400===0)}function __arraySum(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]);return sum}var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];var __MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];function __addDays(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=__isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11){newDate.setMonth(currentMonth+1)}else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate}function _strftime(s,maxsize,format,tm){var tm_zone=HEAP32[tm+40>>2];var date={tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?Pointer_stringify(tm_zone):""};var pattern=Pointer_stringify(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S"};for(var rule in EXPANSION_RULES_1){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule])}var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function leadingSomething(value,digits,character){var str=typeof value==="number"?value.toString():value||"";while(str.length<digits){str=character[0]+str}return str}function leadingNulls(value,digits){return leadingSomething(value,digits,"0")}function compareByDay(date1,date2){function sgn(value){return value<0?-1:value>0?1:0}var compare;if((compare=sgn(date1.getFullYear()-date2.getFullYear()))===0){if((compare=sgn(date1.getMonth()-date2.getMonth()))===0){compare=sgn(date1.getDate()-date2.getDate())}}return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear,thisDate)<=0){return thisDate.getFullYear()+1}else{return thisDate.getFullYear()}}else{return thisDate.getFullYear()-1}}var EXPANSION_RULES_2={"%a":(function(date){return WEEKDAYS[date.tm_wday].substring(0,3)}),"%A":(function(date){return WEEKDAYS[date.tm_wday]}),"%b":(function(date){return MONTHS[date.tm_mon].substring(0,3)}),"%B":(function(date){return MONTHS[date.tm_mon]}),"%C":(function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)}),"%d":(function(date){return leadingNulls(date.tm_mday,2)}),"%e":(function(date){return leadingSomething(date.tm_mday,2," ")}),"%g":(function(date){return getWeekBasedYear(date).toString().substring(2)}),"%G":(function(date){return getWeekBasedYear(date)}),"%H":(function(date){return leadingNulls(date.tm_hour,2)}),"%I":(function(date){return leadingNulls(date.tm_hour<13?date.tm_hour:date.tm_hour-12,2)}),"%j":(function(date){return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,date.tm_mon-1),3)}),"%m":(function(date){return leadingNulls(date.tm_mon+1,2)}),"%M":(function(date){return leadingNulls(date.tm_min,2)}),"%n":(function(){return"\n"}),"%p":(function(date){if(date.tm_hour>0&&date.tm_hour<13){return"AM"}else{return"PM"}}),"%S":(function(date){return leadingNulls(date.tm_sec,2)}),"%t":(function(){return"\t"}),"%u":(function(date){var day=new Date(date.tm_year+1900,date.tm_mon+1,date.tm_mday,0,0,0,0);return day.getDay()||7}),"%U":(function(date){var janFirst=new Date(date.tm_year+1900,0,1);var firstSunday=janFirst.getDay()===0?janFirst:__addDays(janFirst,7-janFirst.getDay());var endDate=new Date(date.tm_year+1900,date.tm_mon,date.tm_mday);if(compareByDay(firstSunday,endDate)<0){var februaryFirstUntilEndMonth=__arraySum(__isLeapYear(endDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,endDate.getMonth()-1)-31;var firstSundayUntilEndJanuary=31-firstSunday.getDate();var days=firstSundayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();return leadingNulls(Math.ceil(days/7),2)}return compareByDay(firstSunday,janFirst)===0?"01":"00"}),"%V":(function(date){var janFourthThisYear=new Date(date.tm_year+1900,0,4);var janFourthNextYear=new Date(date.tm_year+1901,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);var endDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);if(compareByDay(endDate,firstWeekStartThisYear)<0){return"53"}if(compareByDay(firstWeekStartNextYear,endDate)<=0){return"01"}var daysDifference;if(firstWeekStartThisYear.getFullYear()<date.tm_year+1900){daysDifference=date.tm_yday+32-firstWeekStartThisYear.getDate()}else{daysDifference=date.tm_yday+1-firstWeekStartThisYear.getDate()}return leadingNulls(Math.ceil(daysDifference/7),2)}),"%w":(function(date){var day=new Date(date.tm_year+1900,date.tm_mon+1,date.tm_mday,0,0,0,0);return day.getDay()}),"%W":(function(date){var janFirst=new Date(date.tm_year,0,1);var firstMonday=janFirst.getDay()===1?janFirst:__addDays(janFirst,janFirst.getDay()===0?1:7-janFirst.getDay()+1);var endDate=new Date(date.tm_year+1900,date.tm_mon,date.tm_mday);if(compareByDay(firstMonday,endDate)<0){var februaryFirstUntilEndMonth=__arraySum(__isLeapYear(endDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,endDate.getMonth()-1)-31;var firstMondayUntilEndJanuary=31-firstMonday.getDate();var days=firstMondayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();return leadingNulls(Math.ceil(days/7),2)}return compareByDay(firstMonday,janFirst)===0?"01":"00"}),"%y":(function(date){return(date.tm_year+1900).toString().substring(2)}),"%Y":(function(date){return date.tm_year+1900}),"%z":(function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)}),"%Z":(function(date){return date.tm_zone}),"%%":(function(){return"%"})};for(var rule in EXPANSION_RULES_2){if(pattern.indexOf(rule)>=0){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date))}}var bytes=intArrayFromString(pattern,false);if(bytes.length>maxsize){return 0}writeArrayToMemory(bytes,s);return bytes.length-1}function _strftime_l(s,maxsize,format,tm){return _strftime(s,maxsize,format,tm)}function ___cxa_guard_abort(){}Module["_memmove"]=_memmove;var _emscripten_preinvoke=true;var _BItoD=true;function _pthread_cond_wait(){return 0}function ___cxa_rethrow(){___cxa_end_catch.rethrown=true;var ptr=EXCEPTIONS.caught.pop();EXCEPTIONS.last=ptr;throw ptr}function __embind_register_memory_view(rawType,dataTypeIndex,name){var typeMapping=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];var TA=typeMapping[dataTypeIndex];function decodeMemoryView(handle){handle=handle>>2;var heap=HEAPU32;var size=heap[handle];var data=heap[handle+1];return new TA(heap["buffer"],data,size)}name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":decodeMemoryView,"argPackAdvance":8,"readValueFromPointer":decodeMemoryView},{ignoreDuplicateRegistrations:true})}function ___cxa_guard_release(){}function _malloc(bytes){var ptr=Runtime.dynamicAlloc(bytes+8);return ptr+8&4294967288}Module["_malloc"]=_malloc;function __embind_register_std_string(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(value){var length=HEAPU32[value>>2];var a=new Array(length);for(var i=0;i<length;++i){a[i]=String.fromCharCode(HEAPU8[value+4+i])}_free(value);return a.join("")}),"toWireType":(function(destructors,value){if(value instanceof ArrayBuffer){value=new Uint8Array(value)}function getTAElement(ta,index){return ta[index]}function getStringElement(string,index){return string.charCodeAt(index)}var getElement;if(value instanceof Uint8Array){getElement=getTAElement}else if(value instanceof Int8Array){getElement=getTAElement}else if(typeof value==="string"){getElement=getStringElement}else{throwBindingError("Cannot pass non-string to std::string")}var length=value.length;var ptr=_malloc(4+length);HEAPU32[ptr>>2]=length;for(var i=0;i<length;++i){var charCode=getElement(value,i);if(charCode>255){_free(ptr);throwBindingError("String has UTF-16 code units that do not fit in 8 bits")}HEAPU8[ptr+4+i]=charCode}if(destructors!==null){destructors.push(_free,ptr)}return ptr}),"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:(function(ptr){_free(ptr)})})}function ___assert_fail(condition,filename,line,func){ABORT=true;throw"Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"]+" at "+stackTrace()}function __embind_register_void(rawType,name){name=readLatin1String(name);registerType(rawType,{isVoid:true,name:name,"argPackAdvance":0,"fromWireType":(function(){return undefined}),"toWireType":(function(destructors,o){return undefined})})}Module["_memset"]=_memset;var _BDtoILow=true;function ___gxx_personality_v0(){}Module["_bitshift64Shl"]=_bitshift64Shl;function _abort(){Module["abort"]()}function _pthread_once(ptr,func){if(!_pthread_once.seen)_pthread_once.seen={};if(ptr in _pthread_once.seen)return;Runtime.dynCall("v",func);_pthread_once.seen[ptr]=1}function ___lock(){}function ___unlock(){}function _pthread_getspecific(key){return PTHREAD_SPECIFIC[key]||0}var _fabs=Math_abs;function _emscripten_set_main_loop_timing(mode,value){Browser.mainLoop.timingMode=mode;Browser.mainLoop.timingValue=value;if(!Browser.mainLoop.func){return 1}if(mode==0){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_setTimeout(){setTimeout(Browser.mainLoop.runner,value)};Browser.mainLoop.method="timeout"}else if(mode==1){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_rAF(){Browser.requestAnimationFrame(Browser.mainLoop.runner)};Browser.mainLoop.method="rAF"}else if(mode==2){if(!window["setImmediate"]){var setImmediates=[];var emscriptenMainLoopMessageId="__emcc";function Browser_setImmediate_messageHandler(event){if(event.source===window&&event.data===emscriptenMainLoopMessageId){event.stopPropagation();setImmediates.shift()()}}window.addEventListener("message",Browser_setImmediate_messageHandler,true);window["setImmediate"]=function Browser_emulated_setImmediate(func){setImmediates.push(func);window.postMessage(emscriptenMainLoopMessageId,"*")}}Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_setImmediate(){window["setImmediate"](Browser.mainLoop.runner)};Browser.mainLoop.method="immediate"}return 0}function _emscripten_set_main_loop(func,fps,simulateInfiniteLoop,arg,noSetTiming){Module["noExitRuntime"]=true;assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");Browser.mainLoop.func=func;Browser.mainLoop.arg=arg;var thisMainLoopId=Browser.mainLoop.currentlyRunningMainloop;Browser.mainLoop.runner=function Browser_mainLoop_runner(){if(ABORT)return;if(Browser.mainLoop.queue.length>0){var start=Date.now();var blocker=Browser.mainLoop.queue.shift();blocker.func(blocker.arg);if(Browser.mainLoop.remainingBlockers){var remaining=Browser.mainLoop.remainingBlockers;var next=remaining%1==0?remaining-1:Math.floor(remaining);if(blocker.counted){Browser.mainLoop.remainingBlockers=next}else{next=next+.5;Browser.mainLoop.remainingBlockers=(8*remaining+next)/9}}console.log('main loop blocker "'+blocker.name+'" took '+(Date.now()-start)+" ms");Browser.mainLoop.updateStatus();setTimeout(Browser.mainLoop.runner,0);return}if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0;if(Browser.mainLoop.timingMode==1&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}if(Browser.mainLoop.method==="timeout"&&Module.ctx){Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!");Browser.mainLoop.method=""}Browser.mainLoop.runIter((function(){if(typeof arg!=="undefined"){Runtime.dynCall("vi",func,[arg])}else{Runtime.dynCall("v",func)}}));if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;if(typeof SDL==="object"&&SDL.audio&&SDL.audio.queueNewAudioData)SDL.audio.queueNewAudioData();Browser.mainLoop.scheduler()};if(!noSetTiming){if(fps&&fps>0)_emscripten_set_main_loop_timing(0,1e3/fps);else _emscripten_set_main_loop_timing(1,1);Browser.mainLoop.scheduler()}if(simulateInfiniteLoop){throw"SimulateInfiniteLoop"}}var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:(function(){Browser.mainLoop.scheduler=null;Browser.mainLoop.currentlyRunningMainloop++}),resume:(function(){Browser.mainLoop.currentlyRunningMainloop++;var timingMode=Browser.mainLoop.timingMode;var timingValue=Browser.mainLoop.timingValue;var func=Browser.mainLoop.func;Browser.mainLoop.func=null;_emscripten_set_main_loop(func,0,false,Browser.mainLoop.arg,true);_emscripten_set_main_loop_timing(timingMode,timingValue);Browser.mainLoop.scheduler()}),updateStatus:(function(){if(Module["setStatus"]){var message=Module["statusMessage"]||"Please wait...";var remaining=Browser.mainLoop.remainingBlockers;var expected=Browser.mainLoop.expectedBlockers;if(remaining){if(remaining<expected){Module["setStatus"](message+" ("+(expected-remaining)+"/"+expected+")")}else{Module["setStatus"](message)}}else{Module["setStatus"]("")}}}),runIter:(function(func){if(ABORT)return;if(Module["preMainLoop"]){var preRet=Module["preMainLoop"]();if(preRet===false){return}}try{func()}catch(e){if(e instanceof ExitStatus){return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}if(Module["postMainLoop"])Module["postMainLoop"]()})},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:(function(){if(!Module["preloadPlugins"])Module["preloadPlugins"]=[];if(Browser.initted)return;Browser.initted=true;try{new Blob;Browser.hasBlobConstructor=true}catch(e){Browser.hasBlobConstructor=false;console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Browser.BlobBuilder=typeof MozBlobBuilder!="undefined"?MozBlobBuilder:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:!Browser.hasBlobConstructor?console.log("warning: no BlobBuilder"):null;Browser.URLObject=typeof window!="undefined"?window.URL?window.URL:window.webkitURL:undefined;if(!Module.noImageDecoding&&typeof Browser.URLObject==="undefined"){console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");Module.noImageDecoding=true}var imagePlugin={};imagePlugin["canHandle"]=function imagePlugin_canHandle(name){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(name)};imagePlugin["handle"]=function imagePlugin_handle(byteArray,name,onload,onerror){var b=null;if(Browser.hasBlobConstructor){try{b=new Blob([byteArray],{type:Browser.getMimetype(name)});if(b.size!==byteArray.length){b=new Blob([(new Uint8Array(byteArray)).buffer],{type:Browser.getMimetype(name)})}}catch(e){Runtime.warnOnce("Blob constructor present but fails: "+e+"; falling back to blob builder")}}if(!b){var bb=new Browser.BlobBuilder;bb.append((new Uint8Array(byteArray)).buffer);b=bb.getBlob()}var url=Browser.URLObject.createObjectURL(b);var img=new Image;img.onload=function img_onload(){assert(img.complete,"Image "+name+" could not be decoded");var canvas=document.createElement("canvas");canvas.width=img.width;canvas.height=img.height;var ctx=canvas.getContext("2d");ctx.drawImage(img,0,0);Module["preloadedImages"][name]=canvas;Browser.URLObject.revokeObjectURL(url);if(onload)onload(byteArray)};img.onerror=function img_onerror(event){console.log("Image "+url+" could not be decoded");if(onerror)onerror()};img.src=url};Module["preloadPlugins"].push(imagePlugin);var audioPlugin={};audioPlugin["canHandle"]=function audioPlugin_canHandle(name){return!Module.noAudioDecoding&&name.substr(-4)in{".ogg":1,".wav":1,".mp3":1}};audioPlugin["handle"]=function audioPlugin_handle(byteArray,name,onload,onerror){var done=false;function finish(audio){if(done)return;done=true;Module["preloadedAudios"][name]=audio;if(onload)onload(byteArray)}function fail(){if(done)return;done=true;Module["preloadedAudios"][name]=new Audio;if(onerror)onerror()}if(Browser.hasBlobConstructor){try{var b=new Blob([byteArray],{type:Browser.getMimetype(name)})}catch(e){return fail()}var url=Browser.URLObject.createObjectURL(b);var audio=new Audio;audio.addEventListener("canplaythrough",(function(){finish(audio)}),false);audio.onerror=function audio_onerror(event){if(done)return;console.log("warning: browser could not fully decode audio "+name+", trying slower base64 approach");function encode64(data){var BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var PAD="=";var ret="";var leftchar=0;var leftbits=0;for(var i=0;i<data.length;i++){leftchar=leftchar<<8|data[i];leftbits+=8;while(leftbits>=6){var curr=leftchar>>leftbits-6&63;leftbits-=6;ret+=BASE[curr]}}if(leftbits==2){ret+=BASE[(leftchar&3)<<4];ret+=PAD+PAD}else if(leftbits==4){ret+=BASE[(leftchar&15)<<2];ret+=PAD}return ret}audio.src="data:audio/x-"+name.substr(-3)+";base64,"+encode64(byteArray);finish(audio)};audio.src=url;Browser.safeSetTimeout((function(){finish(audio)}),1e4)}else{return fail()}};Module["preloadPlugins"].push(audioPlugin);var canvas=Module["canvas"];function pointerLockChange(){Browser.pointerLock=document["pointerLockElement"]===canvas||document["mozPointerLockElement"]===canvas||document["webkitPointerLockElement"]===canvas||document["msPointerLockElement"]===canvas}if(canvas){canvas.requestPointerLock=canvas["requestPointerLock"]||canvas["mozRequestPointerLock"]||canvas["webkitRequestPointerLock"]||canvas["msRequestPointerLock"]||(function(){});canvas.exitPointerLock=document["exitPointerLock"]||document["mozExitPointerLock"]||document["webkitExitPointerLock"]||document["msExitPointerLock"]||(function(){});canvas.exitPointerLock=canvas.exitPointerLock.bind(document);document.addEventListener("pointerlockchange",pointerLockChange,false);document.addEventListener("mozpointerlockchange",pointerLockChange,false);document.addEventListener("webkitpointerlockchange",pointerLockChange,false);document.addEventListener("mspointerlockchange",pointerLockChange,false);if(Module["elementPointerLock"]){canvas.addEventListener("click",(function(ev){if(!Browser.pointerLock&&canvas.requestPointerLock){canvas.requestPointerLock();ev.preventDefault()}}),false)}}}),createContext:(function(canvas,useWebGL,setInModule,webGLContextAttributes){if(useWebGL&&Module.ctx&&canvas==Module.canvas)return Module.ctx;var ctx;var contextHandle;if(useWebGL){var contextAttributes={antialias:false,alpha:false};if(webGLContextAttributes){for(var attribute in webGLContextAttributes){contextAttributes[attribute]=webGLContextAttributes[attribute]}}contextHandle=GL.createContext(canvas,contextAttributes);if(contextHandle){ctx=GL.getContext(contextHandle).GLctx}canvas.style.backgroundColor="black"}else{ctx=canvas.getContext("2d")}if(!ctx)return null;if(setInModule){if(!useWebGL)assert(typeof GLctx==="undefined","cannot set in module if GLctx is used, but we are a non-GL context that would replace it");Module.ctx=ctx;if(useWebGL)GL.makeContextCurrent(contextHandle);Module.useWebGL=useWebGL;Browser.moduleContextCreatedCallbacks.forEach((function(callback){callback()}));Browser.init()}return ctx}),destroyContext:(function(canvas,useWebGL,setInModule){}),fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:(function(lockPointer,resizeCanvas,vrDevice){Browser.lockPointer=lockPointer;Browser.resizeCanvas=resizeCanvas;Browser.vrDevice=vrDevice;if(typeof Browser.lockPointer==="undefined")Browser.lockPointer=true;if(typeof Browser.resizeCanvas==="undefined")Browser.resizeCanvas=false;if(typeof Browser.vrDevice==="undefined")Browser.vrDevice=null;var canvas=Module["canvas"];function fullScreenChange(){Browser.isFullScreen=false;var canvasContainer=canvas.parentNode;if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvasContainer){canvas.cancelFullScreen=document["cancelFullScreen"]||document["mozCancelFullScreen"]||document["webkitCancelFullScreen"]||document["msExitFullscreen"]||document["exitFullscreen"]||(function(){});canvas.cancelFullScreen=canvas.cancelFullScreen.bind(document);if(Browser.lockPointer)canvas.requestPointerLock();Browser.isFullScreen=true;if(Browser.resizeCanvas)Browser.setFullScreenCanvasSize()}else{canvasContainer.parentNode.insertBefore(canvas,canvasContainer);canvasContainer.parentNode.removeChild(canvasContainer);if(Browser.resizeCanvas)Browser.setWindowedCanvasSize()}if(Module["onFullScreen"])Module["onFullScreen"](Browser.isFullScreen);Browser.updateCanvasDimensions(canvas)}if(!Browser.fullScreenHandlersInstalled){Browser.fullScreenHandlersInstalled=true;document.addEventListener("fullscreenchange",fullScreenChange,false);document.addEventListener("mozfullscreenchange",fullScreenChange,false);document.addEventListener("webkitfullscreenchange",fullScreenChange,false);document.addEventListener("MSFullscreenChange",fullScreenChange,false)}var canvasContainer=document.createElement("div");canvas.parentNode.insertBefore(canvasContainer,canvas);canvasContainer.appendChild(canvas);canvasContainer.requestFullScreen=canvasContainer["requestFullScreen"]||canvasContainer["mozRequestFullScreen"]||canvasContainer["msRequestFullscreen"]||(canvasContainer["webkitRequestFullScreen"]?(function(){canvasContainer["webkitRequestFullScreen"](Element["ALLOW_KEYBOARD_INPUT"])}):null);if(vrDevice){canvasContainer.requestFullScreen({vrDisplay:vrDevice})}else{canvasContainer.requestFullScreen()}}),nextRAF:0,fakeRequestAnimationFrame:(function(func){var now=Date.now();if(Browser.nextRAF===0){Browser.nextRAF=now+1e3/60}else{while(now+2>=Browser.nextRAF){Browser.nextRAF+=1e3/60}}var delay=Math.max(Browser.nextRAF-now,0);setTimeout(func,delay)}),requestAnimationFrame:function requestAnimationFrame(func){if(typeof window==="undefined"){Browser.fakeRequestAnimationFrame(func)}else{if(!window.requestAnimationFrame){window.requestAnimationFrame=window["requestAnimationFrame"]||window["mozRequestAnimationFrame"]||window["webkitRequestAnimationFrame"]||window["msRequestAnimationFrame"]||window["oRequestAnimationFrame"]||Browser.fakeRequestAnimationFrame}window.requestAnimationFrame(func)}},safeCallback:(function(func){return(function(){if(!ABORT)return func.apply(null,arguments)})}),allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=false}),resumeAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=true;if(Browser.queuedAsyncCallbacks.length>0){var callbacks=Browser.queuedAsyncCallbacks;Browser.queuedAsyncCallbacks=[];callbacks.forEach((function(func){func()}))}}),safeRequestAnimationFrame:(function(func){return Browser.requestAnimationFrame((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}))}),safeSetTimeout:(function(func,timeout){Module["noExitRuntime"]=true;return setTimeout((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}),timeout)}),safeSetInterval:(function(func,timeout){Module["noExitRuntime"]=true;return setInterval((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}}),timeout)}),getMimetype:(function(name){return{"jpg":"image/jpeg","jpeg":"image/jpeg","png":"image/png","bmp":"image/bmp","ogg":"audio/ogg","wav":"audio/wav","mp3":"audio/mpeg"}[name.substr(name.lastIndexOf(".")+1)]}),getUserMedia:(function(func){if(!window.getUserMedia){window.getUserMedia=navigator["getUserMedia"]||navigator["mozGetUserMedia"]}window.getUserMedia(func)}),getMovementX:(function(event){return event["movementX"]||event["mozMovementX"]||event["webkitMovementX"]||0}),getMovementY:(function(event){return event["movementY"]||event["mozMovementY"]||event["webkitMovementY"]||0}),getMouseWheelDelta:(function(event){var delta=0;switch(event.type){case"DOMMouseScroll":delta=event.detail;break;case"mousewheel":delta=event.wheelDelta;break;case"wheel":delta=event["deltaY"];break;default:throw"unrecognized mouse wheel event: "+event.type}return delta}),mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:(function(event){if(Browser.pointerLock){if(event.type!="mousemove"&&"mozMovementX"in event){Browser.mouseMovementX=Browser.mouseMovementY=0}else{Browser.mouseMovementX=Browser.getMovementX(event);Browser.mouseMovementY=Browser.getMovementY(event)}if(typeof SDL!="undefined"){Browser.mouseX=SDL.mouseX+Browser.mouseMovementX;Browser.mouseY=SDL.mouseY+Browser.mouseMovementY}else{Browser.mouseX+=Browser.mouseMovementX;Browser.mouseY+=Browser.mouseMovementY}}else{var rect=Module["canvas"].getBoundingClientRect();var cw=Module["canvas"].width;var ch=Module["canvas"].height;var scrollX=typeof window.scrollX!=="undefined"?window.scrollX:window.pageXOffset;var scrollY=typeof window.scrollY!=="undefined"?window.scrollY:window.pageYOffset;if(event.type==="touchstart"||event.type==="touchend"||event.type==="touchmove"){var touch=event.touch;if(touch===undefined){return}var adjustedX=touch.pageX-(scrollX+rect.left);var adjustedY=touch.pageY-(scrollY+rect.top);adjustedX=adjustedX*(cw/rect.width);adjustedY=adjustedY*(ch/rect.height);var coords={x:adjustedX,y:adjustedY};if(event.type==="touchstart"){Browser.lastTouches[touch.identifier]=coords;Browser.touches[touch.identifier]=coords}else if(event.type==="touchend"||event.type==="touchmove"){var last=Browser.touches[touch.identifier];if(!last)last=coords;Browser.lastTouches[touch.identifier]=last;Browser.touches[touch.identifier]=coords}return}var x=event.pageX-(scrollX+rect.left);var y=event.pageY-(scrollY+rect.top);x=x*(cw/rect.width);y=y*(ch/rect.height);Browser.mouseMovementX=x-Browser.mouseX;Browser.mouseMovementY=y-Browser.mouseY;Browser.mouseX=x;Browser.mouseY=y}}),xhrLoad:(function(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)}),asyncLoad:(function(url,onload,onerror,noRunDep){Browser.xhrLoad(url,(function(arrayBuffer){assert(arrayBuffer,'Loading data file "'+url+'" failed (no arrayBuffer).');onload(new Uint8Array(arrayBuffer));if(!noRunDep)removeRunDependency("al "+url)}),(function(event){if(onerror){onerror()}else{throw'Loading data file "'+url+'" failed.'}}));if(!noRunDep)addRunDependency("al "+url)}),resizeListeners:[],updateResizeListeners:(function(){var canvas=Module["canvas"];Browser.resizeListeners.forEach((function(listener){listener(canvas.width,canvas.height)}))}),setCanvasSize:(function(width,height,noUpdates){var canvas=Module["canvas"];Browser.updateCanvasDimensions(canvas,width,height);if(!noUpdates)Browser.updateResizeListeners()}),windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags|8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),setWindowedCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags&~8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),updateCanvasDimensions:(function(canvas,wNative,hNative){if(wNative&&hNative){canvas.widthNative=wNative;canvas.heightNative=hNative}else{wNative=canvas.widthNative;hNative=canvas.heightNative}var w=wNative;var h=hNative;if(Module["forcedAspectRatio"]&&Module["forcedAspectRatio"]>0){if(w/h<Module["forcedAspectRatio"]){w=Math.round(h*Module["forcedAspectRatio"])}else{h=Math.round(w/Module["forcedAspectRatio"])}}if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvas.parentNode&&typeof screen!="undefined"){var factor=Math.min(screen.width/w,screen.height/h);w=Math.round(w*factor);h=Math.round(h*factor)}if(Browser.resizeCanvas){if(canvas.width!=w)canvas.width=w;if(canvas.height!=h)canvas.height=h;if(typeof canvas.style!="undefined"){canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}else{if(canvas.width!=wNative)canvas.width=wNative;if(canvas.height!=hNative)canvas.height=hNative;if(typeof canvas.style!="undefined"){if(w!=wNative||h!=hNative){canvas.style.setProperty("width",w+"px","important");canvas.style.setProperty("height",h+"px","important")}else{canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}}}),wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:(function(){var handle=Browser.nextWgetRequestHandle;Browser.nextWgetRequestHandle++;return handle})};function _pthread_setspecific(key,value){if(!(key in PTHREAD_SPECIFIC)){return ERRNO_CODES.EINVAL}PTHREAD_SPECIFIC[key]=value;return 0}function ___cxa_allocate_exception(size){return _malloc(size)}function ___cxa_pure_virtual(){ABORT=true;throw"Pure virtual function called!"}function floatReadValueFromPointer(name,shift){switch(shift){case 2:return(function(pointer){return this["fromWireType"](HEAPF32[pointer>>2])});case 3:return(function(pointer){return this["fromWireType"](HEAPF64[pointer>>3])});default:throw new TypeError("Unknown float type: "+name)}}function __embind_register_float(rawType,name,size){var shift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(value){return value}),"toWireType":(function(destructors,value){if(typeof value!=="number"&&typeof value!=="boolean"){throw new TypeError('Cannot convert "'+_embind_repr(value)+'" to '+this.name)}return value}),"argPackAdvance":8,"readValueFromPointer":floatReadValueFromPointer(name,shift),destructorFunction:null})}function ___cxa_guard_acquire(variable){if(!HEAP8[variable>>0]){HEAP8[variable>>0]=1;return 1}return 0}function ___cxa_begin_catch(ptr){__ZSt18uncaught_exceptionv.uncaught_exception--;EXCEPTIONS.caught.push(ptr);EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(ptr));return ptr}function _llvm_eh_typeid_for(type){return type}function ___syscall6(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD();FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___cxa_call_unexpected(exception){Module.printErr("Unexpected exception thrown, this is not properly supported - aborting");ABORT=true;throw exception}function __embind_register_std_wstring(rawType,charSize,name){name=readLatin1String(name);var getHeap,shift;if(charSize===2){getHeap=(function(){return HEAPU16});shift=1}else if(charSize===4){getHeap=(function(){return HEAPU32});shift=2}registerType(rawType,{name:name,"fromWireType":(function(value){var HEAP=getHeap();var length=HEAPU32[value>>2];var a=new Array(length);var start=value+4>>shift;for(var i=0;i<length;++i){a[i]=String.fromCharCode(HEAP[start+i])}_free(value);return a.join("")}),"toWireType":(function(destructors,value){var HEAP=getHeap();var length=value.length;var ptr=_malloc(4+length*charSize);HEAPU32[ptr>>2]=length;var start=ptr+4>>shift;for(var i=0;i<length;++i){HEAP[start+i]=value.charCodeAt(i)}if(destructors!==null){destructors.push(_free,ptr)}return ptr}),"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:(function(ptr){_free(ptr)})})}function _time(ptr){var ret=Date.now()/1e3|0;if(ptr){HEAP32[ptr>>2]=ret}return ret}function _pthread_self(){return 0}function ___syscall140(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),offset_high=SYSCALLS.get(),offset_low=SYSCALLS.get(),result=SYSCALLS.get(),whence=SYSCALLS.get();var offset=offset_low;assert(offset_high===0);FS.llseek(stream,offset,whence);HEAP32[result>>2]=stream.position;if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall146(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();return SYSCALLS.doWritev(stream,iov,iovcnt)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}var ___dso_handle=allocate(1,"i32*",ALLOC_STATIC);embind_init_charCodes();BindingError=Module["BindingError"]=extendError(Error,"BindingError");InternalError=Module["InternalError"]=extendError(Error,"InternalError");init_emval();FS.staticInit();__ATINIT__.unshift((function(){if(!Module["noFSInit"]&&!FS.init.initialized)FS.init()}));__ATMAIN__.push((function(){FS.ignorePermissions=false}));__ATEXIT__.push((function(){FS.quit()}));Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;__ATINIT__.unshift((function(){TTY.init()}));__ATEXIT__.push((function(){TTY.shutdown()}));if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(163);var NODEJS_PATH=__webpack_require__(164);NODEFS.staticInit()}Module["requestFullScreen"]=function Module_requestFullScreen(lockPointer,resizeCanvas,vrDevice){Browser.requestFullScreen(lockPointer,resizeCanvas,vrDevice)};Module["requestAnimationFrame"]=function Module_requestAnimationFrame(func){Browser.requestAnimationFrame(func)};Module["setCanvasSize"]=function Module_setCanvasSize(width,height,noUpdates){Browser.setCanvasSize(width,height,noUpdates)};Module["pauseMainLoop"]=function Module_pauseMainLoop(){Browser.mainLoop.pause()};Module["resumeMainLoop"]=function Module_resumeMainLoop(){Browser.mainLoop.resume()};Module["getUserMedia"]=function Module_getUserMedia(){Browser.getUserMedia()};Module["createContext"]=function Module_createContext(canvas,useWebGL,setInModule,webGLContextAttributes){return Browser.createContext(canvas,useWebGL,setInModule,webGLContextAttributes)};STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);staticSealed=true;STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=DYNAMICTOP=Runtime.alignMemory(STACK_MAX);assert(DYNAMIC_BASE<TOTAL_MEMORY,"TOTAL_MEMORY not big enough for stack");var cttz_i8=allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",ALLOC_DYNAMIC);function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){try{return Module["dynCall_iiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7)}function invoke_iiiiiid(index,a1,a2,a3,a4,a5,a6){try{return Module["dynCall_iiiiiid"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiiid(index,a1,a2,a3,a4,a5,a6){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6)}function invoke_viiiii(index,a1,a2,a3,a4,a5){try{Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiiii(index,a1,a2,a3,a4,a5){Runtime.functionPointers[index](a1,a2,a3,a4,a5)}function invoke_vi(index,a1){try{Module["dynCall_vi"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_vi(index,a1){Runtime.functionPointers[index](a1)}function invoke_vii(index,a1,a2){try{Module["dynCall_vii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_vii(index,a1,a2){Runtime.functionPointers[index](a1,a2)}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){try{return Module["dynCall_iiiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiiii(index,a1,a2,a3,a4,a5,a6){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6)}function invoke_ii(index,a1){try{return Module["dynCall_ii"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_ii(index,a1){return Runtime.functionPointers[index](a1)}function invoke_idddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8){try{return Module["dynCall_idddddddd"](index,a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_idddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8)}function invoke_iiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){try{return Module["dynCall_iiiiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}function invoke_vidd(index,a1,a2,a3){try{Module["dynCall_vidd"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_vidd(index,a1,a2,a3){Runtime.functionPointers[index](a1,a2,a3)}function invoke_iiii(index,a1,a2,a3){try{return Module["dynCall_iiii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiii(index,a1,a2,a3){return Runtime.functionPointers[index](a1,a2,a3)}function invoke_viiiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15){try{Module["dynCall_viiiiiiiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiiiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15){Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){try{Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiiiii(index,a1,a2,a3,a4,a5,a6){Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6)}function invoke_diiii(index,a1,a2,a3,a4){try{return Module["dynCall_diiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_diiii(index,a1,a2,a3,a4){return Runtime.functionPointers[index](a1,a2,a3,a4)}function invoke_iidiid(index,a1,a2,a3,a4,a5){try{return Module["dynCall_iidiid"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iidiid(index,a1,a2,a3,a4,a5){return Runtime.functionPointers[index](a1,a2,a3,a4,a5)}function invoke_viddd(index,a1,a2,a3,a4){try{Module["dynCall_viddd"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viddd(index,a1,a2,a3,a4){Runtime.functionPointers[index](a1,a2,a3,a4)}function invoke_di(index,a1){try{return Module["dynCall_di"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_di(index,a1){return Runtime.functionPointers[index](a1)}function invoke_iiiiidddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){try{return Module["dynCall_iiiiidddddddd"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiidddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7){try{Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7){Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7)}function invoke_iiddd(index,a1,a2,a3,a4){try{return Module["dynCall_iiddd"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiddd(index,a1,a2,a3,a4){return Runtime.functionPointers[index](a1,a2,a3,a4)}function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){try{Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8,a9)}function invoke_viiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){try{Module["dynCall_viiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}function invoke_iii(index,a1,a2){try{return Module["dynCall_iii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iii(index,a1,a2){return Runtime.functionPointers[index](a1,a2)}function invoke_iiiiii(index,a1,a2,a3,a4,a5){try{return Module["dynCall_iiiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiii(index,a1,a2,a3,a4,a5){return Runtime.functionPointers[index](a1,a2,a3,a4,a5)}function invoke_diii(index,a1,a2,a3){try{return Module["dynCall_diii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_diii(index,a1,a2,a3){return Runtime.functionPointers[index](a1,a2,a3)}function invoke_iiiidddddddddddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19){try{return Module["dynCall_iiiidddddddddddddddd"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiidddddddddddddddd(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19)}function invoke_viiiiiidi(index,a1,a2,a3,a4,a5,a6,a7,a8){try{Module["dynCall_viiiiiidi"](index,a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiiiiidi(index,a1,a2,a3,a4,a5,a6,a7,a8){Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8)}function invoke_dii(index,a1,a2){try{return Module["dynCall_dii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_dii(index,a1,a2){return Runtime.functionPointers[index](a1,a2)}function invoke_i(index){try{return Module["dynCall_i"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_i(index){return Runtime.functionPointers[index]()}function invoke_iiiid(index,a1,a2,a3,a4){try{return Module["dynCall_iiiid"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiid(index,a1,a2,a3,a4){return Runtime.functionPointers[index](a1,a2,a3,a4)}function invoke_iiiii(index,a1,a2,a3,a4){try{return Module["dynCall_iiiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiii(index,a1,a2,a3,a4){return Runtime.functionPointers[index](a1,a2,a3,a4)}function invoke_viii(index,a1,a2,a3){try{Module["dynCall_viii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viii(index,a1,a2,a3){Runtime.functionPointers[index](a1,a2,a3)}function invoke_v(index){try{Module["dynCall_v"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_v(index){Runtime.functionPointers[index]()}function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){try{return Module["dynCall_iiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){return Runtime.functionPointers[index](a1,a2,a3,a4,a5,a6,a7,a8)}function invoke_iiiiid(index,a1,a2,a3,a4,a5){try{return Module["dynCall_iiiiid"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_iiiiid(index,a1,a2,a3,a4,a5){return Runtime.functionPointers[index](a1,a2,a3,a4,a5)}function invoke_viiii(index,a1,a2,a3,a4){try{Module["dynCall_viiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function jsCall_viiii(index,a1,a2,a3,a4){Runtime.functionPointers[index](a1,a2,a3,a4)}Module.asmGlobalArg={"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity};Module.asmLibraryArg={"abort":abort,"assert":assert,"invoke_iiiiiiii":invoke_iiiiiiii,"jsCall_iiiiiiii":jsCall_iiiiiiii,"invoke_iiiiiid":invoke_iiiiiid,"jsCall_iiiiiid":jsCall_iiiiiid,"invoke_viiiii":invoke_viiiii,"jsCall_viiiii":jsCall_viiiii,"invoke_vi":invoke_vi,"jsCall_vi":jsCall_vi,"invoke_vii":invoke_vii,"jsCall_vii":jsCall_vii,"invoke_iiiiiii":invoke_iiiiiii,"jsCall_iiiiiii":jsCall_iiiiiii,"invoke_ii":invoke_ii,"jsCall_ii":jsCall_ii,"invoke_idddddddd":invoke_idddddddd,"jsCall_idddddddd":jsCall_idddddddd,"invoke_iiiiiiiiiiii":invoke_iiiiiiiiiiii,"jsCall_iiiiiiiiiiii":jsCall_iiiiiiiiiiii,"invoke_vidd":invoke_vidd,"jsCall_vidd":jsCall_vidd,"invoke_iiii":invoke_iiii,"jsCall_iiii":jsCall_iiii,"invoke_viiiiiiiiiiiiiii":invoke_viiiiiiiiiiiiiii,"jsCall_viiiiiiiiiiiiiii":jsCall_viiiiiiiiiiiiiii,"invoke_viiiiii":invoke_viiiiii,"jsCall_viiiiii":jsCall_viiiiii,"invoke_diiii":invoke_diiii,"jsCall_diiii":jsCall_diiii,"invoke_iidiid":invoke_iidiid,"jsCall_iidiid":jsCall_iidiid,"invoke_viddd":invoke_viddd,"jsCall_viddd":jsCall_viddd,"invoke_di":invoke_di,"jsCall_di":jsCall_di,"invoke_iiiiidddddddd":invoke_iiiiidddddddd,"jsCall_iiiiidddddddd":jsCall_iiiiidddddddd,"invoke_viiiiiii":invoke_viiiiiii,"jsCall_viiiiiii":jsCall_viiiiiii,"invoke_iiddd":invoke_iiddd,"jsCall_iiddd":jsCall_iiddd,"invoke_viiiiiiiii":invoke_viiiiiiiii,"jsCall_viiiiiiiii":jsCall_viiiiiiiii,"invoke_viiiiiiiiii":invoke_viiiiiiiiii,"jsCall_viiiiiiiiii":jsCall_viiiiiiiiii,"invoke_iii":invoke_iii,"jsCall_iii":jsCall_iii,"invoke_iiiiii":invoke_iiiiii,"jsCall_iiiiii":jsCall_iiiiii,"invoke_diii":invoke_diii,"jsCall_diii":jsCall_diii,"invoke_iiiidddddddddddddddd":invoke_iiiidddddddddddddddd,"jsCall_iiiidddddddddddddddd":jsCall_iiiidddddddddddddddd,"invoke_viiiiiidi":invoke_viiiiiidi,"jsCall_viiiiiidi":jsCall_viiiiiidi,"invoke_dii":invoke_dii,"jsCall_dii":jsCall_dii,"invoke_i":invoke_i,"jsCall_i":jsCall_i,"invoke_iiiid":invoke_iiiid,"jsCall_iiiid":jsCall_iiiid,"invoke_iiiii":invoke_iiiii,"jsCall_iiiii":jsCall_iiiii,"invoke_viii":invoke_viii,"jsCall_viii":jsCall_viii,"invoke_v":invoke_v,"jsCall_v":jsCall_v,"invoke_iiiiiiiii":invoke_iiiiiiiii,"jsCall_iiiiiiiii":jsCall_iiiiiiiii,"invoke_iiiiid":invoke_iiiiid,"jsCall_iiiiid":jsCall_iiiiid,"invoke_viiii":invoke_viiii,"jsCall_viiii":jsCall_viiii,"_fabs":_fabs,"_pthread_cleanup_pop":_pthread_cleanup_pop,"_pthread_cond_wait":_pthread_cond_wait,"___lock":___lock,"floatReadValueFromPointer":floatReadValueFromPointer,"simpleReadValueFromPointer":simpleReadValueFromPointer,"_sqrtf":_sqrtf,"__embind_register_memory_view":__embind_register_memory_view,"throwInternalError":throwInternalError,"get_first_emval":get_first_emval,"_abort":_abort,"___cxa_guard_acquire":___cxa_guard_acquire,"___setErrNo":___setErrNo,"___gxx_personality_v0":___gxx_personality_v0,"__embind_register_integer":__embind_register_integer,"_fabsf":_fabsf,"___assert_fail":___assert_fail,"___cxa_free_exception":___cxa_free_exception,"___cxa_allocate_exception":___cxa_allocate_exception,"__ZSt18uncaught_exceptionv":__ZSt18uncaught_exceptionv,"extendError":extendError,"getShiftFromSize":getShiftFromSize,"__embind_register_emval":__embind_register_emval,"__addDays":__addDays,"_strftime_l":_strftime_l,"throwBindingError":throwBindingError,"_emscripten_set_main_loop_timing":_emscripten_set_main_loop_timing,"_llvm_eh_typeid_for":_llvm_eh_typeid_for,"_sbrk":_sbrk,"__embind_register_void":__embind_register_void,"_emscripten_memcpy_big":_emscripten_memcpy_big,"___cxa_end_catch":___cxa_end_catch,"__embind_register_bool":__embind_register_bool,"___resumeException":___resumeException,"___cxa_find_matching_catch":___cxa_find_matching_catch,"_sysconf":_sysconf,"_embind_repr":_embind_repr,"___cxa_begin_catch":___cxa_begin_catch,"_strftime":_strftime,"createNamedFunction":createNamedFunction,"__emval_register":__emval_register,"embind_init_charCodes":embind_init_charCodes,"readLatin1String":readLatin1String,"_pthread_self":_pthread_self,"___cxa_call_unexpected":___cxa_call_unexpected,"__emval_decref":__emval_decref,"_pthread_once":_pthread_once,"_pthread_mutex_unlock":_pthread_mutex_unlock,"_pthread_getspecific":_pthread_getspecific,"___cxa_guard_abort":___cxa_guard_abort,"__embind_register_float":__embind_register_float,"_floorf":_floorf,"makeLegalFunctionName":makeLegalFunctionName,"whenDependentTypesAreResolved":whenDependentTypesAreResolved,"___syscall54":___syscall54,"___unlock":___unlock,"__embind_register_std_wstring":__embind_register_std_wstring,"init_emval":init_emval,"__isLeapYear":__isLeapYear,"_emscripten_set_main_loop":_emscripten_set_main_loop,"___cxa_guard_release":___cxa_guard_release,"_pthread_setspecific":_pthread_setspecific,"___cxa_atexit":___cxa_atexit,"integerReadValueFromPointer":integerReadValueFromPointer,"registerType":registerType,"___cxa_throw":___cxa_throw,"_pthread_cond_broadcast":_pthread_cond_broadcast,"___cxa_rethrow":___cxa_rethrow,"__arraySum":__arraySum,"___syscall6":___syscall6,"_pthread_cleanup_push":_pthread_cleanup_push,"count_emval_handles":count_emval_handles,"_time":_time,"_pthread_mutex_lock":_pthread_mutex_lock,"_pthread_key_create":_pthread_key_create,"_atexit":_atexit,"___syscall140":___syscall140,"__embind_register_std_string":__embind_register_std_string,"___cxa_pure_virtual":___cxa_pure_virtual,"___syscall146":___syscall146,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"cttz_i8":cttz_i8,"___dso_handle":___dso_handle};// EMSCRIPTEN_START_ASM
var asm=(function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=env.___dso_handle|0;var o=0;var p=0;var q=0;var r=0;var s=global.NaN,t=global.Infinity;var u=0,v=0,w=0,x=0,y=0.0,z=0,A=0,B=0,C=0.0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=0;var N=global.Math.floor;var O=global.Math.abs;var P=global.Math.sqrt;var Q=global.Math.pow;var R=global.Math.cos;var S=global.Math.sin;var T=global.Math.tan;var U=global.Math.acos;var V=global.Math.asin;var W=global.Math.atan;var X=global.Math.atan2;var Y=global.Math.exp;var Z=global.Math.log;var _=global.Math.ceil;var $=global.Math.imul;var aa=global.Math.min;var ba=global.Math.clz32;var ca=env.abort;var da=env.assert;var ea=env.invoke_iiiiiiii;var fa=env.jsCall_iiiiiiii;var ga=env.invoke_iiiiiid;var ha=env.jsCall_iiiiiid;var ia=env.invoke_viiiii;var ja=env.jsCall_viiiii;var ka=env.invoke_vi;var la=env.jsCall_vi;var ma=env.invoke_vii;var na=env.jsCall_vii;var oa=env.invoke_iiiiiii;var pa=env.jsCall_iiiiiii;var qa=env.invoke_ii;var ra=env.jsCall_ii;var sa=env.invoke_idddddddd;var ta=env.jsCall_idddddddd;var ua=env.invoke_iiiiiiiiiiii;var va=env.jsCall_iiiiiiiiiiii;var wa=env.invoke_vidd;var xa=env.jsCall_vidd;var ya=env.invoke_iiii;var za=env.jsCall_iiii;var Aa=env.invoke_viiiiiiiiiiiiiii;var Ba=env.jsCall_viiiiiiiiiiiiiii;var Ca=env.invoke_viiiiii;var Da=env.jsCall_viiiiii;var Ea=env.invoke_diiii;var Fa=env.jsCall_diiii;var Ga=env.invoke_iidiid;var Ha=env.jsCall_iidiid;var Ia=env.invoke_viddd;var Ja=env.jsCall_viddd;var Ka=env.invoke_di;var La=env.jsCall_di;var Ma=env.invoke_iiiiidddddddd;var Na=env.jsCall_iiiiidddddddd;var Oa=env.invoke_viiiiiii;var Pa=env.jsCall_viiiiiii;var Qa=env.invoke_iiddd;var Ra=env.jsCall_iiddd;var Sa=env.invoke_viiiiiiiii;var Ta=env.jsCall_viiiiiiiii;var Ua=env.invoke_viiiiiiiiii;var Va=env.jsCall_viiiiiiiiii;var Wa=env.invoke_iii;var Xa=env.jsCall_iii;var Ya=env.invoke_iiiiii;var Za=env.jsCall_iiiiii;var _a=env.invoke_diii;var $a=env.jsCall_diii;var ab=env.invoke_iiiidddddddddddddddd;var bb=env.jsCall_iiiidddddddddddddddd;var cb=env.invoke_viiiiiidi;var db=env.jsCall_viiiiiidi;var eb=env.invoke_dii;var fb=env.jsCall_dii;var gb=env.invoke_i;var hb=env.jsCall_i;var ib=env.invoke_iiiid;var jb=env.jsCall_iiiid;var kb=env.invoke_iiiii;var lb=env.jsCall_iiiii;var mb=env.invoke_viii;var nb=env.jsCall_viii;var ob=env.invoke_v;var pb=env.jsCall_v;var qb=env.invoke_iiiiiiiii;var rb=env.jsCall_iiiiiiiii;var sb=env.invoke_iiiiid;var tb=env.jsCall_iiiiid;var ub=env.invoke_viiii;var vb=env.jsCall_viiii;var wb=env._fabs;var xb=env._pthread_cleanup_pop;var yb=env._pthread_cond_wait;var zb=env.___lock;var Ab=env.floatReadValueFromPointer;var Bb=env.simpleReadValueFromPointer;var Cb=env._sqrtf;var Db=env.__embind_register_memory_view;var Eb=env.throwInternalError;var Fb=env.get_first_emval;var Gb=env._abort;var Hb=env.___cxa_guard_acquire;var Ib=env.___setErrNo;var Jb=env.___gxx_personality_v0;var Kb=env.__embind_register_integer;var Lb=env._fabsf;var Mb=env.___assert_fail;var Nb=env.___cxa_free_exception;var Ob=env.___cxa_allocate_exception;var Pb=env.__ZSt18uncaught_exceptionv;var Qb=env.extendError;var Rb=env.getShiftFromSize;var Sb=env.__embind_register_emval;var Tb=env.__addDays;var Ub=env._strftime_l;var Vb=env.throwBindingError;var Wb=env._emscripten_set_main_loop_timing;var Xb=env._llvm_eh_typeid_for;var Yb=env._sbrk;var Zb=env.__embind_register_void;var _b=env._emscripten_memcpy_big;var $b=env.___cxa_end_catch;var ac=env.__embind_register_bool;var bc=env.___resumeException;var cc=env.___cxa_find_matching_catch;var dc=env._sysconf;var ec=env._embind_repr;var fc=env.___cxa_begin_catch;var gc=env._strftime;var hc=env.createNamedFunction;var ic=env.__emval_register;var jc=env.embind_init_charCodes;var kc=env.readLatin1String;var lc=env._pthread_self;var mc=env.___cxa_call_unexpected;var nc=env.__emval_decref;var oc=env._pthread_once;var pc=env._pthread_mutex_unlock;var qc=env._pthread_getspecific;var rc=env.___cxa_guard_abort;var sc=env.__embind_register_float;var tc=env._floorf;var uc=env.makeLegalFunctionName;var vc=env.whenDependentTypesAreResolved;var wc=env.___syscall54;var xc=env.___unlock;var yc=env.__embind_register_std_wstring;var zc=env.init_emval;var Ac=env.__isLeapYear;var Bc=env._emscripten_set_main_loop;var Cc=env.___cxa_guard_release;var Dc=env._pthread_setspecific;var Ec=env.___cxa_atexit;var Fc=env.integerReadValueFromPointer;var Gc=env.registerType;var Hc=env.___cxa_throw;var Ic=env._pthread_cond_broadcast;var Jc=env.___cxa_rethrow;var Kc=env.__arraySum;var Lc=env.___syscall6;var Mc=env._pthread_cleanup_push;var Nc=env.count_emval_handles;var Oc=env._time;var Pc=env._pthread_mutex_lock;var Qc=env._pthread_key_create;var Rc=env._atexit;var Sc=env.___syscall140;var Tc=env.__embind_register_std_string;var Uc=env.___cxa_pure_virtual;var Vc=env.___syscall146;var Wc=0.0;
// EMSCRIPTEN_START_FUNCS
function Po(a){a=a|0;return c[a+8>>2]|0}function Qo(a){a=a|0;return c[a+12>>2]|0}function Ro(a){a=a|0;return c[a+28>>2]|0}function So(a){a=a|0;return (c[a+8>>2]<<2)+17|0}function To(a,b){a=a|0;b=b|0;b=to(b)|0;return c[(c[a+16>>2]|0)+(b<<2)>>2]|0}function Uo(a){a=a|0;var b=0,c=0;do if(((a|0)%4|0|0)==1){o=0;a=qa(189,a+-17>>2|0)|0;c=o;o=0;if(!(c&1))return a|0;a=cc(240)|0;c=D;if((c|0)==(Xb(240)|0)){fc(a|0)|0;a=Ob(8)|0;o=0;ka(308,a|0);c=o;o=0;if(c&1){c=cc()|0;Nb(a|0);a=c}else{o=0;mb(55,a|0,320,76);o=0;a=cc()|0}o=0;ob(44);c=o;o=0;if(c&1){c=cc(0)|0;oq(c)}else b=a}else b=a}else{a=Ob(8)|0;o=0;ka(308,a|0);c=o;o=0;if(c&1){b=cc()|0;Nb(a|0);break}else Hc(a|0,320,76)}while(0);bc(b|0);return 0}function Vo(a){a=a|0;if((a|0)<1|(c[8619]|0)<(a|0)){a=Ob(8)|0;zq(a,50292);c[a>>2]=29736;Hc(a|0,24,146)}else return c[(c[7175]|0)+(a+-1<<2)>>2]|0;return 0}function Wo(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;c[a+4>>2]=0;c[a>>2]=28720;c[a+8>>2]=b;c[a+12>>2]=d;b=a+16|0;Qt(b,4);i=a+28|0;c[i>>2]=0;c[c[b>>2]>>2]=e;c[(c[b>>2]|0)+4>>2]=f;c[(c[b>>2]|0)+8>>2]=g;c[(c[b>>2]|0)+12>>2]=h;f=c[e>>2]|0;g=c[e+4>>2]|0;a=(c[e+8>>2]|0)-g>>2;if(!a)d=0;else{b=0;d=0;do{e=c[g+(b<<2)>>2]|0;d=($((c[e+4>>2]|0)+f|0,c[e>>2]|0)|0)+d|0;b=b+1|0}while((b|0)!=(a|0))}c[i>>2]=d;return}function Xo(a){a=a|0;var b=0,d=0,e=0;c[a>>2]=28720;b=c[a+12>>2]|0;if(b){br(b);Uz(b)}e=a+16|0;d=a+20|0;b=c[e>>2]|0;if((c[d>>2]|0)!=(b|0)){a=0;do{b=c[b+(a<<2)>>2]|0;if(b){No(b);Uz(b)}a=a+1|0;b=c[e>>2]|0}while(a>>>0<(c[d>>2]|0)-b>>2>>>0)}Rt(e);return}function Yo(a){a=a|0;Xo(a);Uz(a);return}function Zo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;do if((c[7174]|0)>0){d=2147483647;f=0;b=0;while(1){e=c[28560+(b<<2)>>2]|0;if((e|0)==(a|0)){e=3;break}e=zo(a,e)|0;g=(e|0)<(d|0);f=g?b+7|0:f;d=g?e:d;b=b+1|0;if((b|0)>=(c[7174]|0)){b=f;e=5;break}}if((e|0)==3){b=Vo(b+7|0)|0;break}else if((e|0)==5){d=(d|0)<4;e=6;break}}else{d=0;b=0;e=6}while(0);if((e|0)==6)if(d)b=Vo(b)|0;else b=0;return b|0}function _o(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;r=i;i=i+16|0;s=r;m=a+8|0;n=c[m>>2]<<2;b=Sz(32)|0;o=0;ma(110,b|0,n+17|0);p=o;o=0;if(p&1){s=cc()|0;Uz(b);b=s}else{c[s>>2]=0;Ke(s,b);p=c[s>>2]|0;o=0;ia(54,p|0,0,0,9,9);l=o;o=0;a:do if((!(l&1)?(d=n+9|0,o=0,ia(54,p|0,d|0,0,8,9),l=o,o=0,!(l&1)):0)?(o=0,ia(54,p|0,0,d|0,9,8),l=o,o=0,!(l&1)):0){b=a+12|0;d=c[b>>2]|0;d=(c[d+4>>2]|0)-(c[d>>2]|0)>>2;a=d+-1|0;b:do if(d){e=(d|0)==0;k=0;c:while(1){f=(c[(c[c[b>>2]>>2]|0)+(k<<2)>>2]|0)+-2|0;g=(k|0)==0;h=(k|0)==(a|0);if(!e){l=0;do{j=(l|0)==0;if(g){if(!(j|(l|0)==(a|0)|h&(l|0)==0))q=15}else if(!(h&j))q=15;if((q|0)==15?(q=0,o=0,ia(54,p|0,(c[(c[c[b>>2]>>2]|0)+(l<<2)>>2]|0)+-2|0,f|0,5,5),j=o,o=0,j&1):0)break c;l=l+1|0}while(l>>>0<d>>>0)}k=k+1|0;if(k>>>0>=d>>>0)break b}b=cc()|0;break a}while(0);o=0;ia(54,p|0,6,9,1,n|0);q=o;o=0;if(!(q&1)?(o=0,ia(54,p|0,9,6,n|0,1),q=o,o=0,!(q&1)):0){if((c[m>>2]|0)>6){b=n+6|0;o=0;ia(54,p|0,b|0,0,3,6);q=o;o=0;if(q&1){q=13;break}o=0;ia(54,p|0,0,b|0,6,3);q=o;o=0;if(q&1){q=13;break}}i=r;return p|0}else q=13}else q=13;while(0);if((q|0)==13)b=cc()|0;Yd(s)}bc(b|0);return 0}function $o(a){a=a|0;return}function ap(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=i;i=i+16|0;d=f+8|0;e=f;g=c[(c[a>>2]|0)+12>>2]|0;_d(d,b);$d(e,4500);o=0;b=ya(g|0,a|0,d|0,e|0)|0;a=o;o=0;if(a&1){g=cc()|0;ze(e+4|0);ce(d);bc(g|0)}else{ze(e+4|0);ce(d);i=f;return b|0}return 0}function bp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[a+4>>2]=0;c[a>>2]=28736;Sq(a+8|0,b);Pd(a+12|0,d);oe(a+24|0,e);c[a+36>>2]=c[f>>2];return}function cp(a){a=a|0;c[a>>2]=28736;pe(a+24|0);Sd(a+12|0);ne(a+8|0);return}function dp(a){a=a|0;cp(a);Uz(a);return}function ep(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Sq(b,a+8|0);i=d;return c[b>>2]|0}function fp(a,b){a=a|0;b=b|0;Pd(a,b+12|0);return}function gp(a){a=a|0;return a+24|0}function hp(a){a=a|0;return c[a+36>>2]|0}function ip(a,b,d){a=a|0;b=+b;d=+d;c[a+4>>2]=0;c[a>>2]=28752;g[a+8>>2]=b;g[a+12>>2]=d;return}function jp(a){a=a|0;return}function kp(a){a=a|0;Uz(a);return}function lp(a){a=a|0;return +(+g[a+8>>2])}function mp(a){a=a|0;return +(+g[a+12>>2])}function np(a,b){a=a|0;b=b|0;var d=0,e=0.0;e=+g[a+8>>2];d=c[b>>2]|0;if(e==+ld[c[(c[d>>2]|0)+8>>2]&63](d)){e=+g[a+12>>2];b=c[b>>2]|0;b=e==+ld[c[(c[b>>2]|0)+12>>2]&63](b)}else b=0;return b|0}function op(a){a=a|0;var b=0,d=0,e=0.0,f=0.0,g=0.0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0.0,t=0.0,u=0;r=i;i=i+32|0;n=r+24|0;p=r+20|0;q=r+16|0;j=r+12|0;k=r+8|0;l=r+4|0;m=r;h=c[c[a>>2]>>2]|0;t=+ld[c[(c[h>>2]|0)+8>>2]&63](h);h=c[(c[a>>2]|0)+4>>2]|0;s=+ld[c[(c[h>>2]|0)+8>>2]&63](h);h=c[c[a>>2]>>2]|0;e=+ld[c[(c[h>>2]|0)+12>>2]&63](h);h=c[(c[a>>2]|0)+4>>2]|0;s=t-s;e=e-+ld[c[(c[h>>2]|0)+12>>2]&63](h);e=+P(+(s*s+e*e));h=c[(c[a>>2]|0)+4>>2]|0;s=+ld[c[(c[h>>2]|0)+8>>2]&63](h);h=c[(c[a>>2]|0)+8>>2]|0;t=+ld[c[(c[h>>2]|0)+8>>2]&63](h);h=c[(c[a>>2]|0)+4>>2]|0;f=+ld[c[(c[h>>2]|0)+12>>2]&63](h);h=c[(c[a>>2]|0)+8>>2]|0;t=s-t;f=f-+ld[c[(c[h>>2]|0)+12>>2]&63](h);f=+P(+(t*t+f*f));h=c[c[a>>2]>>2]|0;t=+ld[c[(c[h>>2]|0)+8>>2]&63](h);h=c[(c[a>>2]|0)+8>>2]|0;s=+ld[c[(c[h>>2]|0)+8>>2]&63](h);h=c[c[a>>2]>>2]|0;g=+ld[c[(c[h>>2]|0)+12>>2]&63](h);h=c[(c[a>>2]|0)+8>>2]|0;s=t-s;g=g-+ld[c[(c[h>>2]|0)+12>>2]&63](h);g=+P(+(s*s+g*g));c[n>>2]=0;vq(n,0);c[p>>2]=0;vq(p,0);c[q>>2]=0;vq(q,0);do if(!(f>=e)|!(f>=g)){b=c[a>>2]|0;if(!(g>=f)|!(g>=e)){vq(p,c[b+8>>2]|0);vq(n,c[c[a>>2]>>2]|0);vq(q,c[(c[a>>2]|0)+4>>2]|0);break}else{vq(p,c[b+4>>2]|0);vq(n,c[c[a>>2]>>2]|0);vq(q,c[(c[a>>2]|0)+8>>2]|0);break}}else{vq(p,c[c[a>>2]>>2]|0);vq(n,c[(c[a>>2]|0)+4>>2]|0);vq(q,c[(c[a>>2]|0)+8>>2]|0)}while(0);c[j>>2]=0;d=c[n>>2]|0;vq(j,d);c[k>>2]=0;h=c[p>>2]|0;vq(k,h);c[l>>2]=0;b=c[q>>2]|0;vq(l,b);o=0;e=+_a(43,j|0,k|0,l|0);u=o;o=0;if(u&1){u=cc()|0;uq(l);uq(k);uq(j);uq(q);uq(p);uq(n);bc(u|0)}uq(l);uq(k);uq(j);if(e<0.0){c[m>>2]=0;vq(m,d);vq(n,b);vq(q,c[m>>2]|0);uq(m);d=c[n>>2]|0;b=c[q>>2]|0}vq(c[a>>2]|0,d);vq((c[a>>2]|0)+4|0,h);vq((c[a>>2]|0)+8|0,b);uq(q);uq(p);uq(n);i=r;return}function pp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0.0,g=0.0,h=0;h=c[b>>2]|0;e=+ld[c[(c[h>>2]|0)+8>>2]&63](h);b=c[b>>2]|0;f=+ld[c[(c[b>>2]|0)+12>>2]&63](b);b=c[d>>2]|0;g=+ld[c[(c[b>>2]|0)+8>>2]&63](b)-e;b=c[a>>2]|0;g=g*(+ld[c[(c[b>>2]|0)+12>>2]&63](b)-f);d=c[d>>2]|0;f=+ld[c[(c[d>>2]|0)+12>>2]&63](d)-f;d=c[a>>2]|0;return +(g-f*(+ld[c[(c[d>>2]|0)+8>>2]&63](d)-e))}function qp(a,b){a=a|0;b=b|0;var d=0.0,e=0.0;a=c[a>>2]|0;b=c[b>>2]|0;e=+g[a+8>>2]-+g[b+8>>2];d=+g[a+12>>2]-+g[b+12>>2];return +(+P(+(e*e+d*d)))}function rp(a,b){a=a|0;b=b|0;if((a|0)!=(b|0)){c[a>>2]=c[b>>2];St(a+4|0,b+4|0)}return}function sp(a,b){a=a|0;b=b|0;c[a>>2]=(b|0)==0?0:(b|0)>0?1:-1;xp(a+4|0,(b|0)<0?0-b|0:b);return}function tp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+32|0;e=h+16|0;g=h;a:do if((a|0)==(b|0)|(a|0)==(d|0)){c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;o=0;mb(105,e|0,b|0,d|0);d=o;o=0;if(!(d&1)?(o=0,ma(155,a|0,e|0),a=o,o=0,!(a&1)):0){Ds(e+4|0);f=18;break}f=cc()|0;Ds(e+4|0);e=f;f=19}else{e=c[b>>2]|0;if(!e){rp(a,d);f=18;break}f=c[d>>2]|0;if(!f){rp(a,b);f=18;break}if((e|0)==(f|0)){c[a>>2]=e;Cp(a+4|0,b+4|0,d+4|0);f=18;break}e=b+4|0;f=d+4|0;switch(Bp(e,f)|0){case 0:{zp(g,0);o=0;ma(186,a+4|0,g|0);d=o;o=0;if(d&1){e=cc()|0;Ds(g);f=19;break a}else{Ds(g);c[a>>2]=0;f=18;break a}}case 1:{c[a>>2]=c[b>>2];Dp(a+4|0,e,f);f=18;break a}case -1:{c[a>>2]=c[d>>2];Dp(a+4|0,f,e);f=18;break a}default:{f=18;break a}}}while(0);if((f|0)==18){i=h;return}else if((f|0)==19)bc(e|0)}function up(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+32|0;e=h+16|0;f=h;do if(!((a|0)==(b|0)|(a|0)==(d|0))){e=c[b>>2]|0;if((e|0)!=0?(g=c[d>>2]|0,(g|0)!=0):0){c[a>>2]=(e|0)==(g|0)?1:-1;Ep(a+4|0,b+4|0,d+4|0);f=12;break}c[a>>2]=0;zp(f,0);o=0;ma(186,a+4|0,f|0);a=o;o=0;if(a&1){e=cc()|0;Ds(f);f=13;break}else{Ds(f);f=12;break}}else{c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;o=0;mb(106,e|0,b|0,d|0);d=o;o=0;if(!(d&1)?(o=0,ma(155,a|0,e|0),a=o,o=0,!(a&1)):0){Ds(e+4|0);f=12;break}f=cc()|0;Ds(e+4|0);e=f;f=13}while(0);if((f|0)==12){i=h;return}else if((f|0)==13)bc(e|0)}function vp(a,b){a=a|0;b=b|0;var c=0,d=0;d=i;i=i+16|0;c=d;Gp(c,b,10);o=0;ma(187,a|0,c|0);b=o;o=0;if(b&1){d=cc()|0;Vt(c);bc(d|0)}else{Vt(c);i=d;return}}function wp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+32|0;f=g+12|0;e=g;a:do if((c[d>>2]|0)!=-1){o=0;ma(188,b|0,d+4|0);f=o;o=0;if(f&1){d=cc()|0;e=11}else e=6}else{FC(f,52976,1);o=0;ma(188,e|0,d+4|0);d=o;o=0;do if(!(d&1)){d=a[e>>0]|0;h=(d&1)==0;o=0;d=ya(90,f|0,(h?e+1|0:c[e+8>>2]|0)|0,(h?(d&255)>>>1:c[e+4>>2]|0)|0)|0;h=o;o=0;if(h&1){d=cc()|0;IC(e);break}else{c[b>>2]=c[d>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;IC(e);IC(f);e=6;break a}}else d=cc()|0;while(0);IC(f);e=11}while(0);if((e|0)==6){i=g;return}else if((e|0)==11)bc(d|0)}function xp(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;o=0;ma(189,a|0,b|0);b=o;o=0;if(b&1){b=cc()|0;Ds(a);bc(b|0)}else return}function yp(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;o=0;ma(190,a|0,b|0);b=o;o=0;if(b&1){b=cc()|0;Ds(a);bc(b|0)}else return}function zp(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;o=0;ma(191,a|0,b|0);b=o;o=0;if(b&1){b=cc()|0;Ds(a);bc(b|0)}else return}function Ap(a){a=a|0;return Zt(a)|0}function Bp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=c[a+4>>2]|0;d=c[b+4>>2]|0;a:do if(e>>>0>=d>>>0)if(e>>>0>d>>>0)d=1;else{f=a+8|0;b=c[b+8>>2]|0;do{if(!e){d=0;break a}e=e+-1|0;a=c[(c[f>>2]|0)+(e<<2)>>2]|0;d=c[b+(e<<2)>>2]|0}while((a|0)==(d|0));d=a>>>0>d>>>0?1:-1}else d=-1;while(0);return d|0}function Cp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;p=i;i=i+16|0;e=p;do if(!((a|0)==(b|0)|(a|0)==(d|0))){e=c[b+4>>2]|0;if(!e){St(a,d);break}f=c[d+4>>2]|0;if(!f){St(a,b);break}e=e>>>0<f>>>0;l=e?d:b;e=e?b:d;k=l+4|0;f=(c[k>>2]|0)+1|0;n=a+4|0;c[n>>2]=f;au(a,f);f=c[e+4>>2]|0;l=l+8|0;m=a+8|0;if(!f)e=0;else{j=c[l>>2]|0;a=c[e+8>>2]|0;g=c[m>>2]|0;d=0;h=0;while(1){e=c[j+(h<<2)>>2]|0;b=(c[a+(h<<2)>>2]|0)+e|0;e=b>>>0<e>>>0;if(d){b=b+1|0;e=((b|0)==0|e&1|0)!=0}c[g+(h<<2)>>2]=b;h=h+1|0;if((h|0)==(f|0))break;else d=e}}h=c[k>>2]|0;if(e&f>>>0<h>>>0){b=c[l>>2]|0;d=c[m>>2]|0;do{k=(c[b+(f<<2)>>2]|0)+1|0;e=(k|0)==0;c[d+(f<<2)>>2]=k;f=f+1|0}while(e&f>>>0<h>>>0)}g=f>>>0>h>>>0;if(f>>>0<h>>>0){b=c[l>>2]|0;d=c[m>>2]|0;a=f;do{c[d+(a<<2)>>2]=c[b+(a<<2)>>2];a=a+1|0}while(a>>>0<h>>>0)}if(e){c[(c[m>>2]|0)+((g?f:h)<<2)>>2]=1;break}else{c[n>>2]=(c[n>>2]|0)+-1;break}}else{c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;o=0;mb(107,e|0,b|0,d|0);n=o;o=0;if(!(n&1)?(o=0,ma(186,a|0,e|0),n=o,o=0,!(n&1)):0){Ds(e);break}p=cc()|0;Ds(e);bc(p|0)}while(0);i=p;return}function Dp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;r=i;i=i+16|0;e=r;do if((a|0)==(b|0)|(a|0)==(d|0)){c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;o=0;mb(108,e|0,b|0,d|0);q=o;o=0;if(!(q&1)?(o=0,ma(186,a|0,e|0),a=o,o=0,!(a&1)):0){Ds(e);break}r=cc()|0;Ds(e);bc(r|0)}else{f=d+4|0;e=c[f>>2]|0;if(!e){St(a,b);break}m=b+4|0;g=c[m>>2]|0;if(g>>>0<e>>>0){r=Ob(4)|0;c[r>>2]=50331;Hc(r|0,1952,0)}q=a+4|0;c[q>>2]=g;au(a,g);e=c[f>>2]|0;p=c[b+8>>2]|0;j=c[d+8>>2]|0;n=a+8|0;if(!e)f=0;else{k=c[n>>2]|0;h=0;l=0;while(1){b=c[p+(l<<2)>>2]|0;d=c[j+(l<<2)>>2]|0;g=b-d|0;f=g>>>0>b>>>0;if(h){f=(f&1|(b|0)==(d|0)|0)!=0;g=g+-1|0}c[k+(l<<2)>>2]=g;l=l+1|0;if((l|0)==(e|0))break;else h=f}}b=c[m>>2]|0;if(f&e>>>0<b>>>0){g=c[n>>2]|0;do{m=c[p+(e<<2)>>2]|0;f=(m|0)==0;c[g+(e<<2)>>2]=m+-1;e=e+1|0}while(f&e>>>0<b>>>0)}if(f){c[q>>2]=0;r=Ob(4)|0;c[r>>2]=50331;Hc(r|0,1952,0)}if(e>>>0<b>>>0){f=c[n>>2]|0;do{c[f+(e<<2)>>2]=c[p+(e<<2)>>2];e=e+1|0}while(e>>>0<b>>>0)}_t(a)}while(0);i=r;return}function Ep(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;e=s;do if((a|0)==(b|0)|(a|0)==(d|0)){c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;o=0;mb(109,e|0,b|0,d|0);d=o;o=0;if(!(d&1)?(o=0,ma(186,a|0,e|0),d=o,o=0,!(d&1)):0){Ds(e);break}s=cc()|0;Ds(e);bc(s|0)}else{q=b+4|0;e=c[q>>2]|0;if((e|0)!=0?(r=d+4|0,f=c[r>>2]|0,(f|0)!=0):0){m=f+e|0;p=a+4|0;c[p>>2]=m;au(a,m);m=c[p>>2]|0;n=a+8|0;if(m){e=c[n>>2]|0;f=0;do{c[e+(f<<2)>>2]=0;f=f+1|0}while((f|0)!=(m|0))}j=b+8|0;if(c[q>>2]|0){k=0;do{l=0;do{if(c[(c[j>>2]|0)+(k<<2)>>2]&1<<l){b=0;h=0;e=k;while(1){g=(c[n>>2]|0)+(e<<2)|0;a=c[g>>2]|0;f=(bu(d,h,l)|0)+a|0;a=f>>>0<a>>>0;if(b){f=f+1|0;a=((f|0)==0|a&1|0)!=0}c[g>>2]=f;h=h+1|0;e=e+1|0;if(h>>>0>(c[r>>2]|0)>>>0)break;else b=a}if(a){f=c[n>>2]|0;while(1){g=f+(e<<2)|0;h=(c[g>>2]|0)+1|0;c[g>>2]=h;if(!h)e=e+1|0;else break}}}l=l+1|0}while((l|0)!=32);k=k+1|0}while(k>>>0<(c[q>>2]|0)>>>0)}e=m+-1|0;if(c[(c[n>>2]|0)+(e<<2)>>2]|0)break;c[p>>2]=e;break}c[a+4>>2]=0}while(0);i=s;return}function Fp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;e=x;if((a|0)==(d|0)){x=Ob(4)|0;c[x>>2]=50394;Hc(x|0,1952,0)}do if((a|0)==(b|0)|(d|0)==(b|0)){Tt(e,b);o=0;mb(110,a|0,e|0,d|0);a=o;o=0;if(a&1){x=cc()|0;Ds(e);bc(x|0)}else{Ds(e);break}}else{w=b+4|0;f=c[w>>2]|0;if(!f){c[d+4>>2]=0;break}e=a+4|0;v=c[e>>2]|0;if(v>>>0<f>>>0){c[d+4>>2]=0;break}$t(a,v+1|0);t=(c[e>>2]|0)+1|0;c[e>>2]=t;q=a+8|0;c[(c[q>>2]|0)+(v<<2)>>2]=0;t=Tz(t>>>0>1073741823?-1:t<<2)|0;r=v-(c[w>>2]|0)+1|0;u=d+4|0;c[u>>2]=r;au(d,r);r=c[u>>2]|0;s=c[d+8>>2]|0;if(r){e=0;do{c[s+(e<<2)>>2]=0;e=e+1|0}while((e|0)!=(r|0))}if(r){n=r;do{n=n+-1|0;m=s+(n<<2)|0;c[m>>2]=0;p=32;do{p=p+-1|0;k=c[w>>2]|0;j=0;l=0;d=n;while(1){g=c[(c[q>>2]|0)+(d<<2)>>2]|0;h=bu(b,l,p)|0;f=g-h|0;e=f>>>0>g>>>0;if(j){e=(e&1|(g|0)==(h|0)|0)!=0;f=f+-1|0}c[t+(d<<2)>>2]=f;l=l+1|0;d=d+1|0;if(l>>>0>k>>>0)break;else j=e}if(d>>>0<v>>>0&e){f=c[q>>2]|0;do{l=c[f+(d<<2)>>2]|0;e=(l|0)==0;c[t+(d<<2)>>2]=l+-1;d=d+1|0}while(d>>>0<v>>>0&e)}if(!e?(c[m>>2]=c[m>>2]|1<<p,d>>>0>n>>>0):0){f=c[q>>2]|0;e=d;do{e=e+-1|0;c[f+(e<<2)>>2]=c[t+(e<<2)>>2]}while(e>>>0>n>>>0)}}while((p|0)!=0)}while((n|0)!=0)}e=r+-1|0;if(!(c[s+(e<<2)>>2]|0))c[u>>2]=e;_t(a);Vz(t)}while(0);i=x;return}function Gp(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;n=i;i=i+48|0;q=n+24|0;p=n+12|0;l=n;c[a>>2]=0;m=a+4|0;c[m>>2]=0;k=a+8|0;c[k>>2]=0;if((e&65535)>=2){b[a+12>>1]=e;h=c[d+4>>2]|0;if(!(e<<16>>16))f=-1;else{g=e&65535;f=0;while(1){g=g>>>1;if(!g)break;else f=f+1|0}}h=(((h<<5)+-1+f|0)>>>0)/(f>>>0)|0;c[m>>2]=h;o=0;ma(192,a|0,h|0);h=o;o=0;if(!(h&1)?(o=0,ma(193,q|0,d|0),d=o,o=0,!(d&1)):0){o=0;ma(194,p|0,e|0);d=o;o=0;a:do if(d&1)f=cc()|0;else{h=q+4|0;b:do if(!(c[h>>2]|0))f=0;else{f=0;while(1){o=0;ma(193,l|0,q|0);j=o;o=0;if(j&1){j=16;break}o=0;mb(110,l|0,p|0,q|0);j=o;o=0;if(j&1){j=17;break}o=0;g=qa(190,l|0)|0;j=o;o=0;if(j&1){j=17;break}b[(c[k>>2]|0)+(f<<1)>>1]=g;f=f+1|0;Ds(l);if(!(c[h>>2]|0))break b}if((j|0)==16)f=cc()|0;else if((j|0)==17){f=cc()|0;Ds(l)}Ds(p);break a}while(0);c[m>>2]=f;Ds(p);Ds(q);i=n;return}while(0);Ds(q)}else j=3}else{j=Ob(4)|0;c[j>>2]=50487;o=0;mb(55,j|0,1952,0);o=0;j=3}if((j|0)==3)f=cc()|0;Vt(a);bc(f|0)}function Hp(d,f){d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;k=l;if((e[f+12>>1]|0)>36){l=Ob(4)|0;c[l>>2]=50554;Hc(l|0,1952,0)}h=c[f+4>>2]|0;if(!h)FC(d,52905,1);else{j=Tz(h+1|0)|0;a[j+h>>0]=0;f=c[f+8>>2]|0;g=0;do{m=b[f+(h+~g<<1)>>1]|0;a[j+g>>0]=(m&65535)+((m&65535)<10?48:55);g=g+1|0}while((g|0)!=(h|0));FC(k,j,iC(j)|0);Vz(j);c[d>>2]=c[k>>2];c[d+4>>2]=c[k+4>>2];c[d+8>>2]=c[k+8>>2];c[k>>2]=0;c[k+4>>2]=0;c[k+8>>2]=0;IC(k)}i=l;return}function Ip(){c[1062]=0;c[1063]=0;c[1061]=4248;Ec(326,4244,n|0)|0;c[1065]=0;c[1066]=0;c[1064]=4260;Ec(327,4256,n|0)|0;mg()|0;a[45587]=1;return}function Jp(){Rd(30580,0);Ec(44,30580,n|0)|0;return}function Kp(){var a=0,b=0;a=Sz(56)|0;o=0;ub(70,a|0,4201,4096,1);b=o;o=0;if(b&1){b=cc()|0;Uz(a);bc(b|0)}c[1088]=0;jq(4352,a);Ec(328,4352,n|0)|0;a=Sz(56)|0;o=0;ub(70,a|0,1033,1024,1);b=o;o=0;if(b&1){b=cc()|0;Uz(a);bc(b|0)}c[1089]=0;jq(4356,a);Ec(328,4356,n|0)|0;a=Sz(56)|0;o=0;ub(70,a|0,67,64,1);b=o;o=0;if(b&1){b=cc()|0;Uz(a);bc(b|0)}c[1090]=0;jq(4360,a);Ec(328,4360,n|0)|0;a=Sz(56)|0;o=0;ub(70,a|0,19,16,1);b=o;o=0;if(b&1){b=cc()|0;Uz(a);bc(b|0)}c[1091]=0;jq(4364,a);Ec(328,4364,n|0)|0;a=Sz(56)|0;o=0;ub(70,a|0,285,256,0);b=o;o=0;if(b&1){b=cc()|0;Uz(a);bc(b|0)}c[1092]=0;jq(4368,a);Ec(328,4368,n|0)|0;a=Sz(56)|0;o=0;ub(70,a|0,301,256,1);b=o;o=0;if(b&1){b=cc()|0;Uz(a);bc(b|0)}else{c[1093]=0;jq(4372,a);Ec(328,4372,n|0)|0;iq(4376,4372);Ec(328,4376,n|0)|0;iq(4380,4360);Ec(328,4380,n|0)|0;return}}function Lp(){c[1113]=0;c[1114]=0;c[1115]=0;Ec(329,4452,n|0)|0;c[7681]=Qi()|0;return}function Mp(){var a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0;a=i;i=i+64|0;g=a+48|0;e=a+40|0;c=a+32|0;b=a+24|0;d=a+16|0;f=a+8|0;h=a;bj(4484,106880);Ec(330,4484,n|0)|0;bj(g,572);$i(4492,g,4484);ze(g+4|0);Ec(330,4492,n|0)|0;bj(b,4096);$i(c,4492,b);bj(d,64);$i(e,c,d);bj(f,2);$i(g,e,f);bj(h,2048);$i(4500,g,h);ze(h+4|0);ze(g+4|0);ze(f+4|0);ze(e+4|0);ze(d+4|0);ze(c+4|0);ze(b+4|0);Ec(330,4500,n|0)|0;i=a;return}function Np(){FC(33384,48499,44);Ec(331,33384,n|0)|0;return}function Op(){FC(33768,48544,48);Ec(331,33768,n|0)|0;c[8393]=350;return}function Pp(){var a=0,b=0;a=Sz(20)|0;o=0;mb(111,a|0,35116,35160);b=o;o=0;if(b&1){b=cc()|0;Uz(a);bc(b|0)}else{Fq(33820,a);Ec(150,33820,n|0)|0;rz(33832,35160,35176);Ec(332,33832,n|0)|0;rz(33844,35176,35188);Ec(332,33844,n|0)|0;return}}function Qp(){rz(5128,34604,34616);Ec(332,5128,n|0)|0;rz(5140,34616,34636);Ec(332,5140,n|0)|0;sz(5152,34636,34796);Ec(333,5152,n|0)|0;sz(5164,34796,35116);Ec(333,5164,n|0)|0;return}function Rp(){rz(34160,34580,34604);Ec(332,34160,n|0)|0;return}function Sp(){Tl(27572);Ec(207,27572,n|0)|0;return}function Tp(){gm(27584,929,3);Ec(334,27584,n|0)|0;return}function Up(){Sm(27772);Ec(335,27772,n|0)|0;return}function Vp(){c[6952]=0;c[6953]=0;c[6954]=0;Ec(336,27808,n|0)|0;ln()|0;return}function Wp(){An(27820,0,0,0,0,53271);Ec(337,27820,n|0)|0;An(27844,10,12,14,0,53282);Ec(337,27844,n|0)|0;An(27868,9,11,13,0,53290);Ec(337,27868,n|0)|0;An(27892,0,0,0,0,53303);Ec(337,27892,n|0)|0;An(27916,8,16,16,0,53321);Ec(337,27916,n|0)|0;An(27940,0,0,0,0,53326);Ec(337,27940,n|0)|0;An(27964,8,10,12,0,53330);Ec(337,27964,n|0)|0;An(27988,0,0,0,0,53336);Ec(337,27988,n|0)|0;An(28012,0,0,0,0,53356);Ec(337,28012,n|0)|0;An(28036,8,10,12,0,53377);Ec(337,28036,n|0)|0;return}function Xp(){so(28112,0,1,61258);Ec(338,28112,n|0)|0;so(28132,1,0,53265);Ec(338,28132,n|0)|0;so(28152,2,3,53267);Ec(338,28152,n|0)|0;so(28172,3,2,53269);Ec(338,28172,n|0)|0;return}function Yp(){c[7175]=0;c[7176]=0;c[7177]=0;Ec(339,28700,n|0)|0;c[8619]=Oo()|0;return}function Zp(a,b){a=a|0;b=b|0;c[a>>2]=0;Ke(a,c[b>>2]|0);return}function _p(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function $p(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function aq(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function bq(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function cq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function dq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function eq(a,b,d){a=a|0;b=b|0;d=d|0;d=($(c[a+16>>2]|0,d)|0)+(b>>5)|0;return (c[(c[(c[a+28>>2]|0)+8>>2]|0)+(d<<2)>>2]&1<<(b&31)|0)!=0|0}function fq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=i;i=i+16|0;d=f;c[a>>2]=0;e=a+4|0;c[e>>2]=0;c[a+8>>2]=0;if(b){fz(a,b);g=c[e>>2]|0;c[e>>2]=g+b;c[d>>2]=(c[a>>2]|0)+(g>>>5<<2);c[d+4>>2]=g&31;gz(d,b)}i=f;return}function gq(a){a=a|0;var b=0;b=c[a>>2]|0;if(b){Uz(b);c[a>>2]=0;c[a+8>>2]=0;c[a+4>>2]=0}return}function hq(a){a=a|0;a=c[a>>2]|0;if(a)Uz(a);return}function iq(a,b){a=a|0;b=b|0;c[a>>2]=0;jq(a,c[b>>2]|0);return}function jq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function kq(a,b){a=a|0;b=b|0;var d=0,e=0;c[a+4>>2]=0;c[a>>2]=29772;c[a+8>>2]=0;o=0;d=qa(111,20)|0;e=o;o=0;do if(!(e&1)){o=0;ma(102,d|0,b|0);e=o;o=0;if(e&1){e=cc()|0;Uz(d);d=e;break}else{Hq(a,d);return}}else d=cc()|0;while(0);bc(d|0)}function lq(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function mq(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=29772;c[a+8>>2]=0;Hq(a,c[b+8>>2]|0);return}function nq(a){a=a|0;var b=0;c[a>>2]=29772;a=a+8|0;b=c[a>>2]|0;if(b)ye(b);c[a>>2]=0;return}function oq(a){a=a|0;fc(a|0)|0;$z()}function pq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function qq(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function rq(a,b){a=a|0;b=b|0;var d=0,e=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;d=b+4|0;e=(c[d>>2]|0)-(c[b>>2]|0)>>2;do if(e){o=0;ma(195,a|0,e|0);e=o;o=0;if(e&1){b=cc()|0;sq(a);bc(b|0)}else{ez(a,c[b>>2]|0,c[d>>2]|0);break}}while(0);return}function sq(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;qq(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function tq(a,b){a=a|0;b=b|0;c[a>>2]=0;vq(a,c[b>>2]|0);return}function uq(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function vq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function wq(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;uq(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function xq(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;b=e;d=Sz(16)|0;o=0;wa(42,d|0,+(+(c[a+8>>2]|0)),+(+(c[a+12>>2]|0)));a=o;o=0;if(a&1){e=cc()|0;Uz(d);bc(e|0)}else{c[b>>2]=0;vq(b,d);i=e;return c[b>>2]|0}return 0}function yq(a,b){a=a|0;b=b|0;c[a>>2]=0;pq(a,c[b>>2]|0);return}function zq(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=34536;o=0;b=qa(191,b|0)|0;d=o;o=0;if(d&1){d=cc()|0;mc(d|0)}else{c[a+4>>2]=b;return}}function Aq(a){a=a|0;c[a>>2]=34536;if((c[a+4>>2]|0)!=0?(o=0,ka(340,a|0),a=o,o=0,a&1):0){a=cc()|0;mc(a|0)}return}function Bq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Yy(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;yq(f,b);c[g>>2]=f+4;Zy(a,h);_y(h);i=j;return}function Cq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Ty(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;tq(f,b);c[g>>2]=f+4;Uy(a,h);Vy(h);i=j;return}function Dq(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4116;c[a+8>>2]=0;Te(a,b);return}function Eq(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[a+4>>2]=0;c[a>>2]=34572;c[e>>2]=0;ms(a+8|0,b,e);i=d;return}function Fq(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=29772;c[a+8>>2]=0;Hq(a,b);return}function Gq(a,b){a=a|0;b=b|0;c[a>>2]=0;Le(a,c[b>>2]|0);return}function Hq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}a=a+8|0;d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Iq(a){a=a|0;var b=0,c=0,d=0;if(!a)a=32;else{c=a<<16;d=(c|0)==0;a=d?a:c;d=d?31:15;c=a<<8;b=(c|0)==0;c=b?a:c;d=b?d:d+-8|0;b=c<<4;a=(b|0)==0;b=a?c:b;d=a?d:d+-4|0;a=b<<2;c=(a|0)==0;a=(c?d:d+-2|0)-((c?b:a)>>>30&1)|0}return a|0}function Jq(b,c){b=b|0;c=c|0;var d=0,e=0;d=i;i=i+16|0;e=d;a[e>>0]=c;b=dy(b,e,1)|0;i=d;return b|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;e=f;if(!((b|0)<1|(d|0)<1)){c[a+8>>2]=b;c[a+12>>2]=d;b=b+31>>5;c[a+16>>2]=b;kq(e,$(b,d)|0);Hq(a+20|0,c[e+8>>2]|0);nq(e);i=f;return}e=Ob(8)|0;o=0;ma(103,e|0,52691);f=o;o=0;if(f&1){f=cc()|0;Nb(e|0);bc(f|0)}else Hc(e|0,240,66)}function Lq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=b+32|0;JC(i,d)|0;h=b+44|0;c[h>>2]=0;j=b+48|0;g=c[j>>2]|0;if(g&8){d=a[i>>0]|0;if(!(d&1)){d=((d&255)>>>1)+(i+1)|0;c[h>>2]=d;e=i+1|0;f=i+1|0}else{d=(c[b+40>>2]|0)+(c[b+36>>2]|0)|0;c[h>>2]=d;f=c[b+40>>2]|0;e=f}c[b+8>>2]=e;c[b+12>>2]=f;c[b+16>>2]=d}if(g&16){d=a[i>>0]|0;if(!(d&1)){g=(d&255)>>>1;c[h>>2]=i+1+g;d=10;h=g}else{g=c[b+36>>2]|0;c[h>>2]=(c[b+40>>2]|0)+g;d=(c[i>>2]&-2)+-1|0;h=g}MC(i,d,0);d=a[i>>0]|0;if(!(d&1)){g=i+1|0;f=(d&255)>>>1;e=i+1|0}else{e=c[b+40>>2]|0;g=e;f=c[b+36>>2]|0}d=b+24|0;c[d>>2]=e;c[b+20>>2]=e;c[b+28>>2]=g+f;if(c[j>>2]&3)c[d>>2]=e+h}return}function Mq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=c[b+48>>2]|0;do if(!(d&16))if(!(d&8)){c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;break}else{Gy(a,c[b+8>>2]|0,c[b+16>>2]|0);break}else{e=b+44|0;d=c[e>>2]|0;f=c[b+24>>2]|0;if(d>>>0<f>>>0){c[e>>2]=f;d=f}Gy(a,c[b+20>>2]|0,d)}while(0);return}function Nq(a){a=a|0;Ey(a,29924);iD(a+56|0);return}function Oq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Pq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;g=h+12|0;f=h;e=Ay(a,g,b)|0;d=c[e>>2]|0;if(!d){By(f,a,b);d=c[f>>2]|0;Cy(a,c[g>>2]|0,e,d);c[f>>2]=0}i=h;return d+20|0}function Qq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;g=h+12|0;f=h;e=xy(a,g,b)|0;d=c[e>>2]|0;if(!d){zy(f,a,b);d=c[f>>2]|0;yy(a,c[g>>2]|0,e,d);c[f>>2]=0}i=h;return d+28|0}function Rq(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Sq(a,b){a=a|0;b=b|0;c[a>>2]=0;cq(a,c[b>>2]|0);return}function Tq(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=30536;c[a+8>>2]=0;iv(a,c[b+8>>2]|0);return}function Uq(a){a=a|0;var b=0;c[a>>2]=30536;a=a+8|0;b=c[a>>2]|0;if(b)ye(b);c[a>>2]=0;return}function Vq(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(196,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;wq(a);bc(d|0)}else{ty(a,b);break}}while(0);return}function Wq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;c[a>>2]=0;f=a+4|0;c[f>>2]=0;c[a+8>>2]=0;if(b){o=0;ma(197,a|0,b|0);e=o;o=0;if(e&1){d=cc()|0;Xq(a);bc(d|0)}g=c[f>>2]|0;e=g+(b<<2)|0;a=b;b=g;while(1){c[b>>2]=c[d>>2];a=a+-1|0;if(!a)break;else b=b+4|0}c[f>>2]=e}return}function Xq(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-4|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function Yq(a,b){a=a|0;b=b|0;return dy(a,b,iC(b)|0)|0}function Zq(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function _q(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function $q(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function ar(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function br(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-4|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function cr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+4|0;d=c[h>>2]|0;e=c[a>>2]|0;f=d-e>>2;if(f>>>0>=b>>>0){if(f>>>0>b>>>0?(g=e+(b<<2)|0,(d|0)!=(g|0)):0){do d=d+-4|0;while((d|0)!=(g|0));c[h>>2]=d}}else my(a,b-f|0);return}function dr(a,b){a=a|0;b=b|0;c[a>>2]=0;$q(a,c[b>>2]|0);return}function er(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(198,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;fr(a);bc(d|0)}else{jy(a,b);break}}while(0);return}function fr(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;ar(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function gr(b,d){b=b|0;d=d|0;var e=0,f=0;e=a[d>>0]|0;f=(e&1)==0;return dy(b,f?d+1|0:c[d+8>>2]|0,f?(e&255)>>>1:c[d+4>>2]|0)|0}function hr(a,b){a=a|0;b=b|0;var d=0,e=0;e=a+4|0;d=c[b>>2]|0;b=c[e>>2]|0;a:do if(!b)a=e;else{a=e;do{while(1){if((c[b+16>>2]|0)>>>0>=d>>>0){a=b;break}b=c[b+4>>2]|0;if(!b)break a}b=c[a>>2]|0}while((b|0)!=0)}while(0);if(!((a|0)!=(e|0)?d>>>0>=(c[a+16>>2]|0)>>>0:0))a=e;return a|0}function ir(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function jr(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function kr(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function lr(a,b){a=a|0;b=b|0;c[a>>2]=0;jr(a,c[b>>2]|0);return}function mr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;c[a>>2]=0;f=a+4|0;c[f>>2]=0;c[a+8>>2]=0;e=b+4|0;d=(c[e>>2]|0)-(c[b>>2]|0)>>2;if(d){o=0;ma(199,a|0,d|0);d=o;o=0;if(d&1){f=cc()|0;qr(a);bc(f|0)}d=c[b>>2]|0;b=c[e>>2]|0;if((d|0)!=(b|0))do{c[c[f>>2]>>2]=c[d>>2];c[f>>2]=(c[f>>2]|0)+4;d=d+4|0}while((d|0)!=(b|0))}return}function nr(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(200,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;rr(a);bc(d|0)}else{$x(a,b);break}}while(0);return}function or(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function pr(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function qr(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-4|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function rr(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;pr(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function sr(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=34556;Pd(a+8|0,b);c[a+20>>2]=0;c[a+24>>2]=0;return}function tr(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function ur(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;c[b>>2]=0;h=b+4|0;c[h>>2]=0;c[b+8>>2]=0;g=d+4|0;e=c[g>>2]|0;f=c[d>>2]|0;if((e|0)!=(f|0)){o=0;ma(83,b|0,e-f|0);f=o;o=0;if(f&1){h=cc()|0;He(b);bc(h|0)}e=c[d>>2]|0;f=c[g>>2]|0;if((e|0)!=(f|0))do{a[c[h>>2]>>0]=a[e>>0]|0;c[h>>2]=(c[h>>2]|0)+1;e=e+1|0}while((e|0)!=(f|0))}return}function wr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;j=k;h=b+4|0;e=c[b>>2]|0;g=(c[h>>2]|0)-e+1|0;if((g|0)<0)Qz(b);f=e;e=(c[b+8>>2]|0)-f|0;if(e>>>0<1073741823){e=e<<1;e=e>>>0<g>>>0?g:e}else e=2147483647;Vx(j,e,(c[h>>2]|0)-f|0,b+8|0);h=j+8|0;g=c[h>>2]|0;a[g>>0]=a[d>>0]|0;c[h>>2]=g+1;Wx(b,j);Xx(j);i=k;return}function xr(a,b){a=a|0;b=b|0;c[a>>2]=0;or(a,c[b>>2]|0);return}function yr(a){a=a|0;c[a>>2]=30684;Yd(a+16|0);kr(a+12|0);Yd(a+8|0);return}function zr(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ar(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(201,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;Jr(a);bc(d|0)}else{Sx(a,b);break}}while(0);return}function Br(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Cr(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Dr(a,b){a=a|0;b=b|0;c[a>>2]=0;Br(a,c[b>>2]|0);return}function Er(a,b){a=a|0;b=b|0;a=Nx(a,b)|0;c[a>>2]=(c[a>>2]|0)+1;return}function Fr(a){a=a|0;var b=0;b=c[a+4>>2]|0;if(!b)while(1){b=c[a+8>>2]|0;if((c[b>>2]|0)==(a|0))break;else a=b}else while(1){a=c[b>>2]|0;if(!a)break;else b=a}return b|0}function Gr(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;c[a+4>>2]=0;c[a>>2]=29756;c[d>>2]=0;vq(d,0);o=0;mb(112,a+8|0,b|0,d|0);a=o;o=0;if(a&1){e=cc()|0;uq(d);bc(e|0)}else{uq(d);i=e;return}}function Hr(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ir(a){a=a|0;Kx(a,c[a+4>>2]|0);return}function Jr(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;Cr(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function Kr(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Lr(a,b){a=a|0;b=b|0;c[a>>2]=0;Zq(a,c[b>>2]|0);return}function Mr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;e=a+4|0;c[e>>2]=0;c[a+8>>2]=0;if(b){o=0;ma(199,a|0,b|0);f=o;o=0;if(f&1){f=cc()|0;qr(a);bc(f|0)}a=c[e>>2]|0;do{c[a>>2]=c[d>>2];a=(c[e>>2]|0)+4|0;c[e>>2]=a;b=b+-1|0}while((b|0)!=0)}return}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Gx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;c[f>>2]=c[b>>2];c[g>>2]=f+4;Hx(a,h);Ix(h);i=j;return}function Or(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Dx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;lr(f,b);c[g>>2]=f+4;Ex(a,h);Fx(h);i=j;return}function Pr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;hx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;Pe(f,b);c[g>>2]=f+4;ix(a,h);jx(h);i=j;return}function Qr(a){a=a|0;c[a>>2]=28084;ze(a+12|0);Yd(a+8|0);return}function Rr(a,b){a=a|0;b=b|0;c[a>>2]=0;_r(a,c[b>>2]|0);return}function Sr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;zx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;Ax(f,b);c[g>>2]=f+4;Bx(a,h);Cx(h);i=j;return}function Tr(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Ur(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;Tr(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function Vr(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;ir(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function Wr(a){a=a|0;ze(a+20|0);Zr(a+4|0);Yd(a);return}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;d=b+4|0;e=(c[d>>2]|0)-(c[b>>2]|0)>>2;do if(e){o=0;ma(202,a|0,e|0);e=o;o=0;if(e&1){b=cc()|0;Zr(a);bc(b|0)}else{yx(a,c[b>>2]|0,c[d>>2]|0);break}}while(0);return}function Yr(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;fs(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0);c[a+8>>2]=0;c[e>>2]=0;c[a>>2]=0}return}function Zr(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;fs(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function _r(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function $r(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;vx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;Rr(f,b);c[g>>2]=f+4;wx(a,h);xx(h);i=j;return}function as(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;Zr(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function bs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=(((c[g>>2]|0)-d|0)/12|0)+1|0;if(f>>>0>357913941)Qz(a);e=d;d=((c[a+8>>2]|0)-e|0)/12|0;if(d>>>0<178956970){d=d<<1;d=d>>>0<f>>>0?f:d}else d=357913941;sx(h,d,((c[g>>2]|0)-e|0)/12|0,a+8|0);d=h+8|0;e=c[d>>2]|0;o=0;ma(133,e|0,b|0);b=o;o=0;if(b&1){j=cc()|0;ux(h);bc(j|0)}else{c[d>>2]=e+12;tx(a,h);ux(h);i=j;return}}function cs(a,b){a=a|0;b=b|0;var d=0.0;d=+$n(c[a>>2]|0);return d-+$n(c[b>>2]|0)<0.0|0}function ds(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;L=i;i=i+96|0;J=L+80|0;H=L+76|0;I=L+72|0;y=L+68|0;z=L+64|0;A=L+60|0;B=L+56|0;C=L+52|0;D=L+48|0;E=L+44|0;F=L+40|0;n=L+36|0;p=L+32|0;q=L+28|0;r=L+24|0;s=L+20|0;t=L+16|0;u=L+12|0;v=L+8|0;w=L+4|0;x=L;a:while(1){m=b;G=b+-4|0;b:while(1){l=a;e=m-l|0;f=e>>2;switch(f|0){case 1:case 0:{K=69;break a}case 2:{f=G;e=G;K=4;break a}case 3:{b=G;K=8;break a}case 4:{b=G;K=9;break a}case 5:{b=G;K=10;break a}default:{}}if((e|0)<28){K=12;break a}g=(f|0)/2|0;h=a+(g<<2)|0;if((e|0)>3996){f=(f|0)/4|0;f=px(a,a+(f<<2)|0,h,a+(f+g<<2)|0,G,d)|0}else f=nx(a,h,G,d)|0;e=c[d>>2]|0;es(y,a);es(z,h);o=0;e=Wa(e|0,y|0,z|0)|0;k=o;o=0;if(k&1){K=22;break a}fs(z);fs(y);do if(e)g=G;else{e=G;while(1){e=e+-4|0;if((a|0)==(e|0))break;g=c[d>>2]|0;es(q,e);es(r,h);o=0;g=Wa(g|0,q|0,r|0)|0;k=o;o=0;if(k&1){K=44;break a}fs(r);fs(q);if(g){K=43;break}}if((K|0)==43){K=0;es(J,a);hs(a,c[e>>2]|0);hs(e,c[J>>2]|0);fs(J);g=e;f=f+1|0;break}e=a+4|0;f=c[d>>2]|0;es(A,a);es(B,G);o=0;f=Wa(f|0,A|0,B|0)|0;l=o;o=0;if(l&1){K=23;break a}fs(B);fs(A);if(!f){if((e|0)==(G|0)){K=69;break a}else f=a;while(1){g=c[d>>2]|0;es(C,a);es(D,e);o=0;g=Wa(g|0,C|0,D|0)|0;l=o;o=0;if(l&1){K=27;break a}fs(D);fs(C);if(g)break;f=e+4|0;if((f|0)==(G|0)){K=69;break a}else{l=e;e=f;f=l}}es(J,e);hs(e,c[G>>2]|0);hs(G,c[J>>2]|0);fs(J);e=f+8|0}if((e|0)==(G|0)){K=69;break a}else f=G;while(1){while(1){g=c[d>>2]|0;es(E,a);es(F,e);o=0;g=Wa(g|0,E|0,F|0)|0;l=o;o=0;if(l&1){K=35;break a}fs(F);fs(E);if(g)break;e=e+4|0}do{g=c[d>>2]|0;es(n,a);f=f+-4|0;es(p,f);o=0;g=Wa(g|0,n|0,p|0)|0;l=o;o=0;if(l&1){K=38;break a}fs(p);fs(n)}while(g);if(e>>>0>=f>>>0){a=e;continue b}es(J,e);hs(e,c[f>>2]|0);hs(f,c[J>>2]|0);fs(J);e=e+4|0}}while(0);e=a+4|0;c:do if(e>>>0<g>>>0){k=g;while(1){while(1){g=c[d>>2]|0;es(s,e);es(t,h);o=0;g=Wa(g|0,s|0,t|0)|0;j=o;o=0;if(j&1){K=51;break a}fs(t);fs(s);if(!g){j=e;break}e=e+4|0}e=k;while(1){g=c[d>>2]|0;e=e+-4|0;es(u,e);es(v,h);o=0;g=Wa(g|0,u|0,v|0)|0;k=o;o=0;if(k&1){K=54;break a}fs(v);fs(u);if(g){g=e;break}}if(j>>>0>g>>>0){e=j;break c}es(J,j);hs(j,c[g>>2]|0);hs(g,c[J>>2]|0);fs(J);e=j+4|0;k=g;h=(h|0)==(j|0)?g:h;f=f+1|0}}while(0);if((e|0)!=(h|0)){g=c[d>>2]|0;es(w,h);es(x,e);o=0;g=Wa(g|0,w|0,x|0)|0;k=o;o=0;if(k&1){K=61;break a}fs(x);fs(w);if(g){es(J,e);hs(e,c[h>>2]|0);hs(h,c[J>>2]|0);fs(J);f=f+1|0}}if(!f){f=rx(a,e,d)|0;g=e+4|0;if(rx(g,b,d)|0){K=64;break}if(f){a=g;continue}}k=e;if((k-l|0)>=(m-k|0)){K=68;break}ds(a,e,d);a=e+4|0}if((K|0)==64){K=0;if(f){K=69;break}else{b=e;continue}}else if((K|0)==68){K=0;ds(e+4|0,b,d);b=e;continue}}switch(K|0){case 4:{b=c[d>>2]|0;es(H,f);es(I,a);o=0;b=Wa(b|0,H|0,I|0)|0;K=o;o=0;if(K&1){b=cc()|0;fs(I);fs(H);K=70;break}fs(I);fs(H);if(b){es(J,a);hs(a,c[e>>2]|0);hs(f,c[J>>2]|0);fs(J);K=69}else K=69;break}case 8:{nx(a,a+4|0,b,d)|0;K=69;break}case 9:{ox(a,a+4|0,a+8|0,b,d)|0;K=69;break}case 10:{px(a,a+4|0,a+8|0,a+12|0,b,d)|0;K=69;break}case 12:{qx(a,b,d);K=69;break}case 22:{b=cc()|0;fs(z);fs(y);K=70;break}case 23:{b=cc()|0;fs(B);fs(A);K=70;break}case 27:{b=cc()|0;fs(D);fs(C);K=70;break}case 35:{b=cc()|0;fs(F);fs(E);K=70;break}case 38:{b=cc()|0;fs(p);fs(n);K=70;break}case 44:{b=cc()|0;fs(r);fs(q);K=70;break}case 51:{b=cc()|0;fs(t);fs(s);K=70;break}case 54:{b=cc()|0;fs(v);fs(u);K=70;break}case 61:{b=cc()|0;fs(x);fs(w);K=70;break}}if((K|0)==69){i=L;return}else if((K|0)==70)bc(b|0)}function es(a,b){a=a|0;b=b|0;c[a>>2]=0;hs(a,c[b>>2]|0);return}function fs(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function gs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;kx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;es(f,b);c[g>>2]=f+4;lx(a,h);mx(h);i=j;return}function hs(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function is(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;hx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;Pe(f,b);c[g>>2]=f+4;ix(a,h);jx(h);i=j;return}function js(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;de(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function ks(a,b){a=a|0;b=b|0;c[a>>2]=c[b>>2];xe(a+4|0,c[b+4>>2]|0);return a|0}function ls(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;dx(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;ex(f,b);c[g>>2]=f+4;fx(a,h);gx(h);i=j;return}function ms(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;c[a>>2]=0;g=a+4|0;c[g>>2]=0;c[a+8>>2]=0;if(b){o=0;ma(203,a|0,b|0);f=o;o=0;if(f&1){d=cc()|0;br(a);bc(d|0)}e=c[g>>2]|0;a=b;f=e;while(1){c[f>>2]=c[d>>2];a=a+-1|0;if(!a)break;else f=f+4|0}c[g>>2]=e+(b<<2)}return}function ns(a,b){a=a|0;b=b|0;var d=0,e=0;c[a+4>>2]=0;c[a>>2]=4116;c[a+8>>2]=0;o=0;d=qa(111,20)|0;e=o;o=0;do if(!(e&1)){o=0;ma(124,d|0,b|0);e=o;o=0;if(e&1){e=cc()|0;Uz(d);d=e;break}else{Te(a,d);return}}else d=cc()|0;while(0);bc(d|0)}function os(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function ps(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function qs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Yv(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;c[f>>2]=c[b>>2];c[g>>2]=f+4;Zv(a,h);_v(h);i=j;return}function rs(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=34536;o=0;b=qa(191,c[b+4>>2]|0)|0;d=o;o=0;if(d&1){d=cc()|0;mc(d|0)}else{c[a+4>>2]=b;return}}function ss(a,b){a=a|0;b=b|0;var d=0,e=0;c[a>>2]=0;d=a+4|0;c[d>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(203,a|0,b|0);e=o;o=0;if(e&1){e=cc()|0;br(a);bc(e|0)}else{e=c[d>>2]|0;ZL(e|0,0,b<<2|0)|0;c[d>>2]=e+(b<<2);break}}while(0);return}function ts(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function us(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;_w(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;$w(f,b);c[g>>2]=f+4;ax(a,h);bx(h);i=j;return}function vs(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function ws(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;vs(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function xs(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function ys(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Xw(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;Bs(f,b);c[g>>2]=f+4;Yw(a,h);Zw(h);i=j;return}function zs(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function As(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;zs(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function Bs(a,b){a=a|0;b=b|0;c[a>>2]=0;xs(a,c[b>>2]|0);return}function Cs(a,b){a=a|0;b=b|0;var d=0,e=0;c[a+4>>2]=0;c[a>>2]=34504;c[a+8>>2]=0;o=0;d=qa(111,20)|0;e=o;o=0;do if(!(e&1)){o=0;ma(204,d|0,b|0);e=o;o=0;if(e&1){e=cc()|0;Uz(d);d=e;break}else{Pw(a,d);return}}else d=cc()|0;while(0);bc(d|0)}function Ds(a){a=a|0;a=c[a+8>>2]|0;if(a)Vz(a);return}function Es(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;o=0;mb(106,a|0,b|0,d|0);d=o;o=0;if(d&1){d=cc()|0;Ds(a+4|0);bc(d|0)}else return}function Fs(a){a=a|0;var b=0;c[a>>2]=34504;a=a+8|0;b=c[a>>2]|0;if(b)ye(b);c[a>>2]=0;return}function Gs(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;o=0;mb(105,a|0,b|0,d|0);d=o;o=0;if(d&1){d=cc()|0;Ds(a+4|0);bc(d|0)}else return}function Hs(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=c[d>>2]|0;i=c[e>>2]|0;j=i-g|0;f=a[b>>0]|0;if(!(f&1))h=10;else{f=c[b>>2]|0;h=(f&-2)+-1|0;f=f&255}if(j>>>0>h>>>0){if(!(f&1))f=(f&255)>>>1;else f=c[b+4>>2]|0;TC(b,h,j-h|0,f,0,f,0);f=a[b>>0]|0}if(!(f&1))f=b+1|0;else f=c[b+8>>2]|0;if((g|0)!=(i|0))do{a[f>>0]=a[g>>0]|0;g=(c[d>>2]|0)+1|0;c[d>>2]=g;f=f+1|0}while((g|0)!=(c[e>>2]|0));a[f>>0]=0;if(!(a[b>>0]&1))a[b>>0]=j<<1;else c[b+4>>2]=j;return b|0}function Is(a){a=a|0;c[a>>2]=34180;nq(a+52|0);Yd(a+8|0);return}function Js(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ks(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Ls(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ms(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Ns(a,b){a=a|0;b=b|0;c[a>>2]=0;Ls(a,c[b>>2]|0);return}function Os(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;Ms(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function Ps(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(205,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;Os(a);bc(d|0)}else{Lw(a,b);break}}while(0);return}function Qs(a,b){a=a|0;b=b|0;if((a|0)!=(b|0))Jw(a+8|0,c[b+8>>2]|0,c[b+12>>2]|0);return a|0}function Rs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=a+8|0;i=c[a>>2]|0;f=i;do if((c[e>>2]|0)-f>>2>>>0>=b>>>0){j=a+4|0;e=c[j>>2]|0;g=e-f>>2;h=g>>>0<b>>>0;f=h?g:b;if(f){a=i;while(1){c[a>>2]=c[d>>2];f=f+-1|0;if(!f)break;else a=a+4|0}}if(h){a=b-g|0;f=a;g=e;while(1){c[g>>2]=c[d>>2];f=f+-1|0;if(!f)break;else g=g+4|0}c[j>>2]=e+(a<<2);break}else{f=i+(b<<2)|0;if((e|0)==(f|0))break;do e=e+-4|0;while((e|0)!=(f|0));c[j>>2]=e;break}}else{Xv(a);if(b>>>0>1073741823)Qz(a);e=(c[e>>2]|0)-(c[a>>2]|0)|0;if(e>>2>>>0<536870911){e=e>>1;e=e>>>0<b>>>0?b:e}else e=1073741823;Iw(a,e);a=a+4|0;f=c[a>>2]|0;e=b;g=f;while(1){c[g>>2]=c[d>>2];e=e+-1|0;if(!e)break;else g=g+4|0}c[a>>2]=f+(b<<2)}while(0);return}function Ss(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(206,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;Us(a);bc(d|0)}else{Hw(a,b);break}}while(0);return}function Ts(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+4|0;d=c[h>>2]|0;e=c[a>>2]|0;f=d-e>>2;if(f>>>0>=b>>>0){if(f>>>0>b>>>0?(g=e+(b<<2)|0,(d|0)!=(g|0)):0){do d=d+-4|0;while((d|0)!=(g|0));c[h>>2]=d}}else Fw(a,b-f|0);return}function Us(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;Xq(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function Vs(a,b){a=a|0;b=b|0;var d=0,e=0;c[a>>2]=0;d=a+4|0;c[d>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(197,a|0,b|0);e=o;o=0;if(e&1){e=cc()|0;Xq(a);bc(e|0)}else{e=c[d>>2]|0;ZL(e|0,0,b<<2|0)|0;c[d>>2]=e+(b<<2);break}}while(0);return}function Ws(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(207,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;_s(a);bc(d|0)}else{zw(a,b);break}}while(0);return}function Xs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;i=a+4|0;e=c[i>>2]|0;f=c[a>>2]|0;g=e-f>>2;if(g>>>0>=b>>>0){if(g>>>0>b>>>0?(h=f+(b<<2)|0,(e|0)!=(h|0)):0){do e=e+-4|0;while((e|0)!=(h|0));c[i>>2]=e}}else Cw(a,b-g|0,d);return}function Ys(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a[b>>0]=0;h=b+4|0;c[h>>2]=0;e=c[d>>2]|0;g=d+4|0;if((e|0)!=(g|0)){f=0;while(1){d=c[e+20>>2]|0;if((d|0)<=(f|0))if((d|0)==(f|0)){a[b>>0]=1;d=f}else d=f;else{c[h>>2]=c[e+16>>2];a[b>>0]=0}e=Fr(e)|0;if((e|0)==(g|0))break;else f=d}}return}function Zs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;g=a+4|0;d=c[g>>2]|0;e=c[a>>2]|0;f=(d-e|0)/12|0;if(f>>>0>=b>>>0){if(f>>>0>b>>>0?(h=e+(b*12|0)|0,(d|0)!=(h|0)):0)do{a=d+-12|0;c[g>>2]=a;br(a);d=c[g>>2]|0}while((d|0)!=(h|0))}else yw(a,b-f|0);return}function _s(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;br(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function $s(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;aw(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function at(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;vw(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;c[f>>2]=c[b>>2];c[g>>2]=f+4;ww(a,h);xw(h);i=j;return}function bt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;i=a+4|0;e=c[i>>2]|0;f=c[a>>2]|0;g=e-f>>2;if(g>>>0>=b>>>0){if(g>>>0>b>>>0?(h=f+(b<<2)|0,(e|0)!=(h|0)):0){do e=e+-4|0;while((e|0)!=(h|0));c[i>>2]=e}}else uw(a,b-g|0,d);return}function ct(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(208,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;$s(a);bc(d|0)}else{bw(a,b);break}}while(0);return}function dt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;g=a+4|0;d=c[g>>2]|0;e=c[a>>2]|0;f=(d-e|0)/12|0;if(f>>>0>=b>>>0){if(f>>>0>b>>>0?(h=e+(b*12|0)|0,(d|0)!=(h|0)):0)do{a=d+-12|0;c[g>>2]=a;gt(a);d=c[g>>2]|0}while((d|0)!=(h|0))}else nw(a,b-f|0);return}function et(a){a=a|0;var b=0;b=a+4|0;gw(a,c[b>>2]|0);c[a+8>>2]=0;c[a>>2]=b;c[b>>2]=0;return}function ft(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;g=h+12|0;f=h;e=hw(a,g,b)|0;d=c[e>>2]|0;if(!d){iw(f,a,b);d=c[f>>2]|0;jw(a,c[g>>2]|0,e,d);c[f>>2]=0}i=h;return d+20|0}function gt(a){a=a|0;gw(a,c[a+4>>2]|0);return}function ht(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;g=a+4|0;d=c[g>>2]|0;e=c[a>>2]|0;f=(d-e|0)/12|0;if(f>>>0>=b>>>0){if(f>>>0>b>>>0?(h=e+(b*12|0)|0,(d|0)!=(h|0)):0)do{a=d+-12|0;c[g>>2]=a;aw(a);d=c[g>>2]|0}while((d|0)!=(h|0))}else $v(a,b-f|0);return}function it(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Yv(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;c[f>>2]=c[b>>2];c[g>>2]=f+4;Zv(a,h);_v(h);i=j;return}function jt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;r=i;i=i+32|0;l=r+21|0;m=r+20|0;q=r;h=c[b>>2]|0;d=c[d>>2]|0;p=d;f=h;g=(p-f|0)/12|0;j=b+4|0;k=c[j>>2]|0;n=c[b+8>>2]|0;do if(k>>>0<n>>>0)if((d|0)==(k|0)){c[d>>2]=0;q=d+4|0;c[q>>2]=0;c[d+8>>2]=0;c[d>>2]=c[e>>2];b=e+4|0;c[q>>2]=c[b>>2];q=e+8|0;c[d+8>>2]=c[q>>2];c[q>>2]=0;c[b>>2]=0;c[e>>2]=0;c[j>>2]=(c[j>>2]|0)+12;break}else{Qv(b,d,k,h+((g+1|0)*12|0)|0);a[l>>0]=a[m>>0]|0;Rv(d,e,l);break}else{g=((k-f|0)/12|0)+1|0;if(g>>>0>357913941)Qz(b);f=(n-h|0)/12|0;if(f>>>0<178956970){f=f<<1;f=f>>>0<g>>>0?g:f}else f=357913941;Sv(q,f,(p-h|0)/12|0,b+8|0);o=0;ma(209,q|0,e|0);e=o;o=0;if(e&1){r=cc()|0;Vv(q);bc(r|0)}else{d=Uv(b,q,d)|0;Vv(q);break}}while(0);i=r;return d|0}function kt(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function lt(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function mt(a,b){a=a|0;b=b|0;c[a>>2]=0;kt(a,c[b>>2]|0);return}function nt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;c[a>>2]=0;f=a+4|0;c[f>>2]=0;c[a+8>>2]=0;e=b+4|0;d=(c[e>>2]|0)-(c[b>>2]|0)>>2;if(d){o=0;ma(210,a|0,d|0);d=o;o=0;if(d&1){f=cc()|0;rt(a);bc(f|0)}d=c[b>>2]|0;b=c[e>>2]|0;if((d|0)!=(b|0))do{c[c[f>>2]>>2]=c[d>>2];c[f>>2]=(c[f>>2]|0)+4;d=d+4|0}while((d|0)!=(b|0))}return}function ot(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(211,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;st(a);bc(d|0)}else{Mv(a,b);break}}while(0);return}function pt(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function qt(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function rt(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-4|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function st(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;qt(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function tt(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function ut(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Fv(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;Gv(f,b);c[g>>2]=f+4;Hv(a,h);Iv(h);i=j;return}function vt(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function wt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=(((c[g>>2]|0)-d|0)/12|0)+1|0;if(f>>>0>357913941)Qz(a);e=d;d=((c[a+8>>2]|0)-e|0)/12|0;if(d>>>0<178956970){d=d<<1;d=d>>>0<f>>>0?f:d}else d=357913941;ov(h,d,((c[g>>2]|0)-e|0)/12|0,a+8|0);g=h+8|0;f=c[g>>2]|0;Pd(f,b);c[g>>2]=f+12;pv(a,h);qv(h);i=j;return}function xt(a,b){a=a|0;b=b|0;var d=0,e=0;c[a+4>>2]=0;c[a>>2]=30536;c[a+8>>2]=0;o=0;d=qa(111,20)|0;e=o;o=0;do if(!(e&1)){o=0;ma(212,d|0,b|0);e=o;o=0;if(e&1){e=cc()|0;Uz(d);d=e;break}else{iv(a,d);return}}else d=cc()|0;while(0);bc(d|0)}function yt(a,b){a=a|0;b=b|0;c[a>>2]=0;pt(a,c[b>>2]|0);return}function zt(a){a=a|0;gv(a,c[a+4>>2]|0);return}function At(a){a=a|0;c[a>>2]=34212;lt(a+16|0);Yd(a+8|0);return}function Bt(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ct(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Dt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;cv(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;c[f>>2]=c[b>>2];c[g>>2]=f+4;dv(a,h);ev(h);i=j;return}function Et(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-4|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function Ft(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;O=i;i=i+112|0;N=O+96|0;J=O+84|0;M=O+80|0;K=O+72|0;L=O+60|0;H=O+92|0;I=O+88|0;C=O+76|0;D=O+68|0;E=O+64|0;F=O+56|0;G=O+52|0;p=O+48|0;q=O+44|0;r=O+40|0;s=O+36|0;t=O+32|0;u=O+28|0;v=O+24|0;w=O+20|0;x=O+16|0;y=O+12|0;z=O+8|0;A=O+4|0;B=O;a:while(1){n=b;e=b+-4|0;b:while(1){m=a;f=n-m|0;g=f>>2;switch(g|0){case 1:case 0:{P=82;break a}case 2:{g=e;f=e;P=4;break a}case 3:{P=8;break a}case 4:{P=9;break a}case 5:{P=10;break a}default:{}}if((f|0)<28){P=12;break a}h=(g|0)/2|0;j=a+(h<<2)|0;if((f|0)>3996){f=(g|0)/4|0;f=$u(a,a+(f<<2)|0,j,a+(f+h<<2)|0,e,d)|0}else f=Zu(a,j,e,d)|0;es(C,a);es(D,j);o=0;g=ya(118,d|0,C|0,D|0)|0;l=o;o=0;if(l&1){P=35;break a}fs(D);fs(C);do if(g)g=e;else{g=e;while(1){g=g+-4|0;if((a|0)==(g|0))break;es(u,g);es(v,j);o=0;h=ya(118,d|0,u|0,v|0)|0;l=o;o=0;if(l&1){P=57;break a}fs(v);fs(u);if(h){P=56;break}}if((P|0)==56){P=0;es(N,a);hs(a,c[g>>2]|0);hs(g,c[N>>2]|0);fs(N);f=f+1|0;break}f=a+4|0;es(E,a);es(F,e);o=0;g=ya(118,d|0,E|0,F|0)|0;m=o;o=0;if(m&1){P=36;break a}fs(F);fs(E);if(!g){if((f|0)==(e|0)){P=82;break a}else g=a;while(1){es(G,a);es(p,f);o=0;h=ya(118,d|0,G|0,p|0)|0;m=o;o=0;if(m&1){P=40;break a}fs(p);fs(G);if(h)break;g=f+4|0;if((g|0)==(e|0)){P=82;break a}else{m=f;f=g;g=m}}es(N,f);hs(f,c[e>>2]|0);hs(e,c[N>>2]|0);fs(N);f=g+8|0}if((f|0)==(e|0)){P=82;break a}else g=e;while(1){while(1){es(q,a);es(r,f);o=0;h=ya(118,d|0,q|0,r|0)|0;m=o;o=0;if(m&1){P=48;break a}fs(r);fs(q);if(h)break;f=f+4|0}do{es(s,a);g=g+-4|0;es(t,g);o=0;h=ya(118,d|0,s|0,t|0)|0;m=o;o=0;if(m&1){P=51;break a}fs(t);fs(s)}while(h);if(f>>>0>=g>>>0){a=f;continue b}es(N,f);hs(f,c[g>>2]|0);hs(g,c[N>>2]|0);fs(N);f=f+4|0}}while(0);h=a+4|0;c:do if(h>>>0<g>>>0){l=j;while(1){while(1){es(w,h);es(x,l);o=0;j=ya(118,d|0,w|0,x|0)|0;k=o;o=0;if(k&1){P=64;break a}fs(x);fs(w);if(!j){k=h;break}h=h+4|0}while(1){g=g+-4|0;es(y,g);es(z,l);o=0;h=ya(118,d|0,y|0,z|0)|0;j=o;o=0;if(j&1){P=67;break a}fs(z);fs(y);if(h){j=g;break}}if(k>>>0>j>>>0){h=k;j=l;break c}es(N,k);hs(k,c[j>>2]|0);hs(j,c[N>>2]|0);fs(N);h=k+4|0;g=j;l=(l|0)==(k|0)?j:l;f=f+1|0}}while(0);if((h|0)!=(j|0)){es(A,j);es(B,h);o=0;g=ya(118,d|0,A|0,B|0)|0;l=o;o=0;if(l&1){P=74;break a}fs(B);fs(A);if(g){es(N,h);hs(h,c[j>>2]|0);hs(j,c[N>>2]|0);fs(N);f=f+1|0}}if(!f){f=av(a,h,d)|0;g=h+4|0;if(av(g,b,d)|0){P=77;break}if(f){a=g;continue}}l=h;if((l-m|0)>=(n-l|0)){e=h;P=81;break}Ft(a,h,d);a=h+4|0}if((P|0)==77){P=0;if(f){P=82;break}else{b=h;continue}}else if((P|0)==81){P=0;Ft(e+4|0,b,d);b=e;continue}}switch(P|0){case 4:{es(H,g);es(I,a);o=0;e=ya(118,d|0,H|0,I|0)|0;P=o;o=0;if(P&1){e=cc()|0;fs(I);fs(H);P=83;break}fs(I);fs(H);if(e){es(N,a);hs(a,c[f>>2]|0);hs(g,c[N>>2]|0);fs(N);P=82}else P=82;break}case 8:{Zu(a,a+4|0,e,d)|0;P=82;break}case 9:{_u(a,a+4|0,a+8|0,e,d)|0;P=82;break}case 10:{$u(a,a+4|0,a+8|0,a+12|0,e,d)|0;P=82;break}case 12:{f=a+8|0;Zu(a,a+4|0,f,d)|0;e=a+12|0;d:do if((e|0)!=(b|0)){e:while(1){es(N,e);es(J,f);o=0;g=ya(118,d|0,N|0,J|0)|0;I=o;o=0;if(I&1){P=21;break}fs(J);fs(N);if(g){es(M,e);g=e;while(1){hs(g,c[f>>2]|0);if((f|0)==(a|0)){P=17;break}c[K>>2]=0;g=c[M>>2]|0;hs(K,g);h=f+-4|0;es(L,h);o=0;j=ya(118,d|0,K|0,L|0)|0;I=o;o=0;if(I&1){P=22;break e}fs(L);fs(K);if(j){g=f;f=h}else break}if((P|0)==17){P=0;g=c[M>>2]|0;f=a}hs(f,g);fs(M)}f=e+4|0;if((f|0)==(b|0))break d;else{I=e;e=f;f=I}}if((P|0)==21){e=cc()|0;fs(J);fs(N)}else if((P|0)==22){e=cc()|0;fs(L);fs(K);fs(M)}bc(e|0)}while(0);P=82;break}case 35:{e=cc()|0;fs(D);fs(C);P=83;break}case 36:{e=cc()|0;fs(F);fs(E);P=83;break}case 40:{e=cc()|0;fs(p);fs(G);P=83;break}case 48:{e=cc()|0;fs(r);fs(q);P=83;break}case 51:{e=cc()|0;fs(t);fs(s);P=83;break}case 57:{e=cc()|0;fs(v);fs(u);P=83;break}case 64:{e=cc()|0;fs(x);fs(w);P=83;break}case 67:{e=cc()|0;fs(z);fs(y);P=83;break}case 74:{e=cc()|0;fs(B);fs(A);P=83;break}}if((P|0)==82){i=O;return}else if((P|0)==83)bc(e|0)}function Gt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;O=i;i=i+112|0;N=O+96|0;J=O+84|0;M=O+80|0;K=O+72|0;L=O+60|0;H=O+92|0;I=O+88|0;C=O+76|0;D=O+68|0;E=O+64|0;F=O+56|0;G=O+52|0;p=O+48|0;q=O+44|0;r=O+40|0;s=O+36|0;t=O+32|0;u=O+28|0;v=O+24|0;w=O+20|0;x=O+16|0;y=O+12|0;z=O+8|0;A=O+4|0;B=O;a:while(1){n=b;e=b+-4|0;b:while(1){m=a;f=n-m|0;g=f>>2;switch(g|0){case 1:case 0:{P=82;break a}case 2:{g=e;f=e;P=4;break a}case 3:{P=8;break a}case 4:{P=9;break a}case 5:{P=10;break a}default:{}}if((f|0)<28){P=12;break a}h=(g|0)/2|0;j=a+(h<<2)|0;if((f|0)>3996){f=(g|0)/4|0;f=Wu(a,a+(f<<2)|0,j,a+(f+h<<2)|0,e,d)|0}else f=Uu(a,j,e,d)|0;es(C,a);es(D,j);o=0;g=ya(119,d|0,C|0,D|0)|0;l=o;o=0;if(l&1){P=35;break a}fs(D);fs(C);do if(g)g=e;else{g=e;while(1){g=g+-4|0;if((a|0)==(g|0))break;es(u,g);es(v,j);o=0;h=ya(119,d|0,u|0,v|0)|0;l=o;o=0;if(l&1){P=57;break a}fs(v);fs(u);if(h){P=56;break}}if((P|0)==56){P=0;es(N,a);hs(a,c[g>>2]|0);hs(g,c[N>>2]|0);fs(N);f=f+1|0;break}f=a+4|0;es(E,a);es(F,e);o=0;g=ya(119,d|0,E|0,F|0)|0;m=o;o=0;if(m&1){P=36;break a}fs(F);fs(E);if(!g){if((f|0)==(e|0)){P=82;break a}else g=a;while(1){es(G,a);es(p,f);o=0;h=ya(119,d|0,G|0,p|0)|0;m=o;o=0;if(m&1){P=40;break a}fs(p);fs(G);if(h)break;g=f+4|0;if((g|0)==(e|0)){P=82;break a}else{m=f;f=g;g=m}}es(N,f);hs(f,c[e>>2]|0);hs(e,c[N>>2]|0);fs(N);f=g+8|0}if((f|0)==(e|0)){P=82;break a}else g=e;while(1){while(1){es(q,a);es(r,f);o=0;h=ya(119,d|0,q|0,r|0)|0;m=o;o=0;if(m&1){P=48;break a}fs(r);fs(q);if(h)break;f=f+4|0}do{es(s,a);g=g+-4|0;es(t,g);o=0;h=ya(119,d|0,s|0,t|0)|0;m=o;o=0;if(m&1){P=51;break a}fs(t);fs(s)}while(h);if(f>>>0>=g>>>0){a=f;continue b}es(N,f);hs(f,c[g>>2]|0);hs(g,c[N>>2]|0);fs(N);f=f+4|0}}while(0);h=a+4|0;c:do if(h>>>0<g>>>0){l=j;while(1){while(1){es(w,h);es(x,l);o=0;j=ya(119,d|0,w|0,x|0)|0;k=o;o=0;if(k&1){P=64;break a}fs(x);fs(w);if(!j){k=h;break}h=h+4|0}while(1){g=g+-4|0;es(y,g);es(z,l);o=0;h=ya(119,d|0,y|0,z|0)|0;j=o;o=0;if(j&1){P=67;break a}fs(z);fs(y);if(h){j=g;break}}if(k>>>0>j>>>0){h=k;j=l;break c}es(N,k);hs(k,c[j>>2]|0);hs(j,c[N>>2]|0);fs(N);h=k+4|0;g=j;l=(l|0)==(k|0)?j:l;f=f+1|0}}while(0);if((h|0)!=(j|0)){es(A,j);es(B,h);o=0;g=ya(119,d|0,A|0,B|0)|0;l=o;o=0;if(l&1){P=74;break a}fs(B);fs(A);if(g){es(N,h);hs(h,c[j>>2]|0);hs(j,c[N>>2]|0);fs(N);f=f+1|0}}if(!f){f=Xu(a,h,d)|0;g=h+4|0;if(Xu(g,b,d)|0){P=77;break}if(f){a=g;continue}}l=h;if((l-m|0)>=(n-l|0)){e=h;P=81;break}Gt(a,h,d);a=h+4|0}if((P|0)==77){P=0;if(f){P=82;break}else{b=h;continue}}else if((P|0)==81){P=0;Gt(e+4|0,b,d);b=e;continue}}switch(P|0){case 4:{es(H,g);es(I,a);o=0;e=ya(119,d|0,H|0,I|0)|0;P=o;o=0;if(P&1){e=cc()|0;fs(I);fs(H);P=83;break}fs(I);fs(H);if(e){es(N,a);hs(a,c[f>>2]|0);hs(g,c[N>>2]|0);fs(N);P=82}else P=82;break}case 8:{Uu(a,a+4|0,e,d)|0;P=82;break}case 9:{Vu(a,a+4|0,a+8|0,e,d)|0;P=82;break}case 10:{Wu(a,a+4|0,a+8|0,a+12|0,e,d)|0;P=82;break}case 12:{f=a+8|0;Uu(a,a+4|0,f,d)|0;e=a+12|0;d:do if((e|0)!=(b|0)){e:while(1){es(N,e);es(J,f);o=0;g=ya(119,d|0,N|0,J|0)|0;I=o;o=0;if(I&1){P=21;break}fs(J);fs(N);if(g){es(M,e);g=e;while(1){hs(g,c[f>>2]|0);if((f|0)==(a|0)){P=17;break}c[K>>2]=0;g=c[M>>2]|0;hs(K,g);h=f+-4|0;es(L,h);o=0;j=ya(119,d|0,K|0,L|0)|0;I=o;o=0;if(I&1){P=22;break e}fs(L);fs(K);if(j){g=f;f=h}else break}if((P|0)==17){P=0;g=c[M>>2]|0;f=a}hs(f,g);fs(M)}f=e+4|0;if((f|0)==(b|0))break d;else{I=e;e=f;f=I}}if((P|0)==21){e=cc()|0;fs(J);fs(N)}else if((P|0)==22){e=cc()|0;fs(L);fs(K);fs(M)}bc(e|0)}while(0);P=82;break}case 35:{e=cc()|0;fs(D);fs(C);P=83;break}case 36:{e=cc()|0;fs(F);fs(E);P=83;break}case 40:{e=cc()|0;fs(p);fs(G);P=83;break}case 48:{e=cc()|0;fs(r);fs(q);P=83;break}case 51:{e=cc()|0;fs(t);fs(s);P=83;break}case 57:{e=cc()|0;fs(v);fs(u);P=83;break}case 64:{e=cc()|0;fs(x);fs(w);P=83;break}case 67:{e=cc()|0;fs(z);fs(y);P=83;break}case 74:{e=cc()|0;fs(B);fs(A);P=83;break}}if((P|0)==82){i=O;return}else if((P|0)==83)bc(e|0)}function Ht(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=c[a>>2]|0;h=c[b>>2]|0;e=h;b=c[d>>2]|0;if((h|0)!=(b|0)){g=f+((b-e>>2)+(e-f>>2)<<2)|0;a=a+4|0;d=c[a>>2]|0;f=d;if((g|0)!=(d|0)){b=h;e=g;while(1){hs(b,c[e>>2]|0);e=e+4|0;if((e|0)==(d|0))break;else b=b+4|0}}e=h+((f-g|0)>>>2<<2)|0;b=c[a>>2]|0;if((b|0)!=(e|0))do{g=b+-4|0;c[a>>2]=g;fs(g);b=c[a>>2]|0}while((b|0)!=(e|0))}return h|0}function It(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(202,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;Zr(a);bc(d|0)}else{Su(a,b);break}}while(0);return}function Jt(a,b){a=a|0;b=b|0;c[a>>2]=0;vq(a,c[b>>2]|0);return}function Kt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;e=a+4|0;c[e>>2]=0;c[a+8>>2]=0;if(b){o=0;ma(210,a|0,b|0);f=o;o=0;if(f&1){f=cc()|0;rt(a);bc(f|0)}a=c[e>>2]|0;do{c[a>>2]=c[d>>2];a=(c[e>>2]|0)+4|0;c[e>>2]=a;b=b+-1|0}while((b|0)!=0)}return}function Lt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Ju(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;c[f>>2]=c[b>>2];c[g>>2]=f+4;Ku(a,h);Lu(h);i=j;return}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;g=i;i=i+16|0;f=g;c[f>>2]=b;b=Sz(12)|0;o=0;ma(213,b|0,a|0);e=o;o=0;if(e&1){g=cc()|0;Uz(b);bc(g|0)}if(a){d=c[b>>2]|0;e=0;do{j=(c[f>>2]|0)+(4-1)&~(4-1);h=c[j>>2]|0;c[f>>2]=j+4;c[d+(e<<2)>>2]=h;e=e+1|0}while((e|0)!=(a|0))}i=g;return b|0}function Nt(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;h=j;g=a+4|0;d=c[a>>2]|0;f=((c[g>>2]|0)-d>>2)+1|0;if(f>>>0>1073741823)Qz(a);e=d;d=(c[a+8>>2]|0)-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;Fu(h,d,(c[g>>2]|0)-e>>2,a+8|0);g=h+8|0;f=c[g>>2]|0;Gu(f,b);c[g>>2]=f+4;Hu(a,h);Iu(h);i=j;return}function Pt(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Qt(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b){o=0;ma(214,a|0,b|0);d=o;o=0;if(d&1){d=cc()|0;Rt(a);bc(d|0)}else{Eu(a,b);break}}while(0);return}function Rt(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-4|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if((a|0)!=(b|0)?(e=c[b+4>>2]|0,d=a+4|0,c[d>>2]=e,au(a,e),d=c[d>>2]|0,e=c[b+8>>2]|0,(d|0)!=0):0){a=c[a+8>>2]|0;b=0;do{c[a+(b<<2)>>2]=c[e+(b<<2)>>2];b=b+1|0}while((b|0)!=(d|0))}return}function Tt(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[b+4>>2]|0;c[a+4>>2]=d;c[a>>2]=d;e=Tz(d>>>0>1073741823?-1:d<<2)|0;c[a+8>>2]=e;a=c[b+8>>2]|0;if(d){b=0;do{c[e+(b<<2)>>2]=c[a+(b<<2)>>2];b=b+1|0}while((b|0)!=(d|0))}return}function Ut(a,b){a=a|0;b=b|0;c[a>>2]=c[b>>2];Tt(a+4|0,b+4|0);return}function Vt(a){a=a|0;a=c[a+8>>2]|0;if(a)Vz(a);return}function Wt(a,b){a=a|0;b=b|0;var d=0;if(b){c[a>>2]=1;d=Tz(4)|0;c[a+8>>2]=d;c[a+4>>2]=1;c[d>>2]=b}return}function Xt(a,b){a=a|0;b=b|0;var d=0;if(b<<16>>16){c[a>>2]=1;d=Tz(4)|0;c[a+8>>2]=d;c[a+4>>2]=1;c[d>>2]=b&65535}return}function Yt(a,b){a=a|0;b=b|0;if((b|0)<0){b=Ob(4)|0;c[b>>2]=50897;Hc(b|0,1952,0)}else{Cu(a,b);return}}function Zt(a){a=a|0;var b=0;switch(c[a+4>>2]|0){case 0:{a=0;b=5;break}case 1:{a=c[c[a+8>>2]>>2]|0;if((a&65535|0)==(a|0)){a=a&65535;b=5}else b=4;break}default:b=4}if((b|0)==4){b=Ob(4)|0;c[b>>2]=50823;Hc(b|0,1952,0)}else if((b|0)==5)return a|0;return 0}function _t(a){a=a|0;var b=0,d=0;d=a+4|0;b=c[d>>2]|0;a:do if(b){a=c[a+8>>2]|0;do{b=b+-1|0;if(c[a+(b<<2)>>2]|0)break a;c[d>>2]=b}while((b|0)!=0)}while(0);return}function $t(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if((c[a>>2]|0)>>>0<b>>>0){f=a+8|0;e=c[f>>2]|0;c[a>>2]=b;d=Tz(b>>>0>1073741823?-1:b<<2)|0;c[f>>2]=d;b=c[a+4>>2]|0;if(b){a=0;do{c[d+(a<<2)>>2]=c[e+(a<<2)>>2];a=a+1|0}while((a|0)!=(b|0))}if(e)Vz(e)}return}function au(a,b){a=a|0;b=b|0;var d=0,e=0;if((c[a>>2]|0)>>>0<b>>>0){d=a+8|0;e=c[d>>2]|0;if(e)Vz(e);c[a>>2]=b;c[d>>2]=Tz(b>>>0>1073741823?-1:b<<2)|0}return}function bu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)==0|(d|0)==0)e=0;else e=(c[(c[a+8>>2]|0)+(b+-1<<2)>>2]|0)>>>(32-d|0);if((c[a+4>>2]|0)==(b|0))a=0;else a=c[(c[a+8>>2]|0)+(b<<2)>>2]<<d;return a|e|0}function cu(a,b){a=a|0;b=b|0;var d=0,e=0;if((c[a>>2]|0)>>>0<b>>>0){d=a+8|0;e=c[d>>2]|0;if(e)Vz(e);c[a>>2]=b;c[d>>2]=Tz(b>>>0>2147483647?-1:b<<1)|0}return}function du(a){a=a|0;a=c[a+4>>2]|0;return ((a|0)==0?61257:a)|0}function eu(a){a=a|0;c[a>>2]=4440;Yd(a+8|0);return}function fu(a){a=a|0;c[a>>2]=4440;Yd(a+8|0);Uz(a);return}function gu(a){a=a|0;c[a>>2]=4536;Vd(a+16|0);return}function hu(a){a=a|0;gu(a);Uz(a);return}function iu(a){a=a|0;c[a>>2]=4768;br(a+20|0);IC(a+8|0);il(a);return}function ju(a){a=a|0;iu(a);Uz(a);return}function ku(a){a=a|0;c[a>>2]=4824;br(a+24|0);IC(a+12|0);il(a);return}function lu(a){a=a|0;ku(a);Uz(a);return}function mu(a){a=a|0;c[a>>2]=4852;br(a+20|0);IC(a+8|0);il(a);return}function nu(a){a=a|0;mu(a);Uz(a);return}function ou(a){a=a|0;c[a>>2]=4880;br(a+20|0);Cl(a);return}function pu(a){a=a|0;ou(a);Uz(a);return}function qu(a){a=a|0;c[a>>2]=4928;br(a+20|0);Cl(a);return}function ru(a){a=a|0;qu(a);Uz(a);return}function su(a){a=a|0;c[a>>2]=5004;ws(a+8|0);il(a);return}function tu(a){a=a|0;su(a);Uz(a);return}function uu(a){a=a|0;c[a>>2]=5032;As(a+8|0);il(a);return}function vu(a){a=a|0;uu(a);Uz(a);return}function wu(a){a=a|0;c[a>>2]=5088;ou(a+20|0);Cl(a);return}function xu(a){a=a|0;wu(a);Uz(a);return}function yu(a){a=a|0;c[a>>2]=5232;br(a+20|0);Cl(a);return}function zu(a){a=a|0;yu(a);Uz(a);return}function Au(a){a=a|0;Uz(a);return}function Bu(a){a=a|0;Qr(a);Uz(a);return}function Cu(a,b){a=a|0;b=b|0;var d=0;if(b){c[a>>2]=1;d=Tz(4)|0;c[a+8>>2]=d;c[a+4>>2]=1;c[d>>2]=b}return}function Du(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Eu(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function Fu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Gu(a,b){a=a|0;b=b|0;c[a>>2]=0;Nt(a,c[b>>2]|0);return}function Hu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;Gu((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function Iu(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;Pt(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function Ju(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Ku(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;g=a+4|0;d=b+4|0;f=(c[g>>2]|0)-e|0;h=(c[d>>2]|0)+(0-(f>>2)<<2)|0;c[d>>2]=h;XL(h|0,e|0,f|0)|0;f=c[a>>2]|0;c[a>>2]=c[d>>2];c[d>>2]=f;f=b+8|0;e=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=e;f=a+8|0;a=b+12|0;e=c[f>>2]|0;c[f>>2]=c[a>>2];c[a>>2]=e;c[b>>2]=c[d>>2];return}function Lu(a){a=a|0;var b=0,d=0,e=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0)){do b=b+-4|0;while((b|0)!=(d|0));c[e>>2]=b}b=c[a>>2]|0;if(b)Uz(b);return}function Mu(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Nu(a){a=a|0;return}function Ou(a){a=a|0;Uz(a);return}function Pu(a){a=a|0;c[a>>2]=34452;fs(a+16|0);fs(a+12|0);fs(a+8|0);return}function Qu(a){a=a|0;Pu(a);Uz(a);return}function Ru(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Su(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;hs(b,0);b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function Tu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0.0,h=0.0;e=_n(c[b>>2]|0)|0;e=(e|0)==(_n(c[d>>2]|0)|0);b=c[b>>2]|0;if(e){h=+$n(b);h=+O(+(h-+g[a>>2]));f=+$n(c[d>>2]|0);b=h<+O(+(f-+g[a>>2]))}else{b=_n(b)|0;b=(b|0)>(_n(c[d>>2]|0)|0)}return b|0}function Uu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+48|0;s=t+40|0;f=t+36|0;g=t+32|0;j=t+28|0;k=t+24|0;n=t+20|0;p=t+16|0;l=t+12|0;m=t+8|0;q=t+4|0;r=t;es(f,b);es(g,a);o=0;h=ya(119,e|0,f|0,g|0)|0;u=o;o=0;a:do if(u&1){u=cc()|0;fs(g);fs(f);f=u}else{fs(g);fs(f);do if(h){es(l,d);es(m,b);o=0;f=ya(119,e|0,l|0,m|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(m);fs(l);break a}fs(m);fs(l);if(f){es(s,a);hs(a,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);f=1;break}es(s,a);hs(a,c[b>>2]|0);hs(b,c[s>>2]|0);fs(s);es(q,d);es(r,b);o=0;f=ya(119,e|0,q|0,r|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(r);fs(q);break a}fs(r);fs(q);if(f){es(s,b);hs(b,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);f=2}else f=1}else{es(j,d);es(k,b);o=0;f=ya(119,e|0,j|0,k|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(k);fs(j);break a}fs(k);fs(j);if(f){es(s,b);hs(b,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);es(n,b);es(p,a);o=0;f=ya(119,e|0,n|0,p|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(p);fs(n);break a}fs(p);fs(n);if(f){es(s,a);hs(a,c[b>>2]|0);hs(b,c[s>>2]|0);fs(s);f=2}else f=1}else f=0}while(0);i=t;return f|0}while(0);bc(f|0);return 0}function Vu(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;q=r+24|0;g=r+20|0;h=r+16|0;k=r+12|0;l=r+8|0;m=r+4|0;n=r;p=Uu(a,b,d,f)|0;es(g,e);es(h,d);o=0;j=ya(119,f|0,g|0,h|0)|0;s=o;o=0;do if(s&1){s=cc()|0;fs(h);fs(g);g=s}else{fs(h);fs(g);if(j){es(q,d);hs(d,c[e>>2]|0);hs(e,c[q>>2]|0);fs(q);es(k,d);es(l,b);o=0;h=ya(119,f|0,k|0,l|0)|0;s=o;o=0;if(s&1){g=cc()|0;fs(l);fs(k);break}g=p+1|0;fs(l);fs(k);if(h){es(q,b);hs(b,c[d>>2]|0);hs(d,c[q>>2]|0);fs(q);es(m,b);es(n,a);o=0;g=ya(119,f|0,m|0,n|0)|0;s=o;o=0;if(s&1){g=cc()|0;fs(n);fs(m);break}fs(n);fs(m);if(g){es(q,a);hs(a,c[b>>2]|0);hs(b,c[q>>2]|0);fs(q);g=p+3|0}else g=p+2|0}}else g=p;i=r;return g|0}while(0);bc(g|0);return 0}function Wu(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+48|0;t=u+32|0;h=u+28|0;j=u+24|0;l=u+20|0;m=u+16|0;n=u+12|0;p=u+8|0;q=u+4|0;r=u;s=Vu(a,b,d,e,g)|0;es(h,f);es(j,e);o=0;k=ya(119,g|0,h|0,j|0)|0;v=o;o=0;do if(v&1){v=cc()|0;fs(j);fs(h);h=v}else{fs(j);fs(h);if(k){es(t,e);hs(e,c[f>>2]|0);hs(f,c[t>>2]|0);fs(t);es(l,e);es(m,d);o=0;j=ya(119,g|0,l|0,m|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(m);fs(l);break}h=s+1|0;fs(m);fs(l);if(j){es(t,d);hs(d,c[e>>2]|0);hs(e,c[t>>2]|0);fs(t);es(n,d);es(p,b);o=0;j=ya(119,g|0,n|0,p|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(p);fs(n);break}h=s+2|0;fs(p);fs(n);if(j){es(t,b);hs(b,c[d>>2]|0);hs(d,c[t>>2]|0);fs(t);es(q,b);es(r,a);o=0;h=ya(119,g|0,q|0,r|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(r);fs(q);break}fs(r);fs(q);if(h){es(t,a);hs(a,c[b>>2]|0);hs(b,c[t>>2]|0);fs(t);h=s+4|0}else h=s+3|0}}}else h=s;i=u;return h|0}while(0);bc(h|0);return 0}function Xu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+32|0;j=t+28|0;g=t+24|0;h=t+20|0;m=t+16|0;n=t+12|0;r=t+8|0;p=t+4|0;q=t;a:do switch(b-a>>2|0){case 1:case 0:{e=1;s=21;break}case 2:{f=b+-4|0;es(g,f);es(h,a);o=0;e=ya(119,d|0,g|0,h|0)|0;s=o;o=0;if(s&1){e=cc()|0;fs(h);fs(g);s=22;break a}fs(h);fs(g);if(e){es(j,a);hs(a,c[f>>2]|0);hs(f,c[j>>2]|0);fs(j);e=1;s=21}else{e=1;s=21}break}case 3:{Uu(a,a+4|0,b+-4|0,d)|0;e=1;s=21;break}case 4:{Vu(a,a+4|0,a+8|0,b+-4|0,d)|0;e=1;s=21;break}case 5:{Wu(a,a+4|0,a+8|0,a+12|0,b+-4|0,d)|0;e=1;s=21;break}default:{g=a+8|0;Uu(a,a+4|0,g,d)|0;f=a+12|0;if((f|0)!=(b|0)){e=0;l=0;b:while(1){es(m,f);es(n,g);o=0;h=ya(119,d|0,m|0,n|0)|0;k=o;o=0;if(k&1){s=18;break}fs(n);fs(m);if(h){es(r,f);h=f;while(1){hs(h,c[g>>2]|0);if((g|0)==(a|0)){s=14;break}c[p>>2]=0;h=c[r>>2]|0;hs(p,h);j=g+-4|0;es(q,j);o=0;k=ya(119,d|0,p|0,q|0)|0;u=o;o=0;if(u&1){s=19;break b}fs(q);fs(p);if(k){h=g;g=j}else break}if((s|0)==14){s=0;h=c[r>>2]|0;g=a}hs(g,h);g=l+1|0;j=(g|0)==8;k=f+4|0;e=j?(k|0)==(b|0):e;fs(r);if(j){s=21;break a}else{h=g;g=j?k:f}}else{h=l;g=f}f=g+4|0;if((f|0)==(b|0)){e=1;s=21;break a}else l=h}if((s|0)==18){e=cc()|0;fs(n);fs(m);s=22;break a}else if((s|0)==19){e=cc()|0;fs(q);fs(p);fs(r);s=22;break a}}else{e=1;s=21}}}while(0);if((s|0)==21){i=t;return e|0}else if((s|0)==22)bc(e|0);return 0}function Yu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0.0;f=+$n(c[b>>2]|0);f=+O(+(f-+g[a>>2]));e=+$n(c[d>>2]|0);return f>+O(+(e-+g[a>>2]))|0}function Zu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+48|0;s=t+40|0;f=t+36|0;g=t+32|0;j=t+28|0;k=t+24|0;n=t+20|0;p=t+16|0;l=t+12|0;m=t+8|0;q=t+4|0;r=t;es(f,b);es(g,a);o=0;h=ya(118,e|0,f|0,g|0)|0;u=o;o=0;a:do if(u&1){u=cc()|0;fs(g);fs(f);f=u}else{fs(g);fs(f);do if(h){es(l,d);es(m,b);o=0;f=ya(118,e|0,l|0,m|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(m);fs(l);break a}fs(m);fs(l);if(f){es(s,a);hs(a,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);f=1;break}es(s,a);hs(a,c[b>>2]|0);hs(b,c[s>>2]|0);fs(s);es(q,d);es(r,b);o=0;f=ya(118,e|0,q|0,r|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(r);fs(q);break a}fs(r);fs(q);if(f){es(s,b);hs(b,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);f=2}else f=1}else{es(j,d);es(k,b);o=0;f=ya(118,e|0,j|0,k|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(k);fs(j);break a}fs(k);fs(j);if(f){es(s,b);hs(b,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);es(n,b);es(p,a);o=0;f=ya(118,e|0,n|0,p|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(p);fs(n);break a}fs(p);fs(n);if(f){es(s,a);hs(a,c[b>>2]|0);hs(b,c[s>>2]|0);fs(s);f=2}else f=1}else f=0}while(0);i=t;return f|0}while(0);bc(f|0);return 0}function _u(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;q=r+24|0;g=r+20|0;h=r+16|0;k=r+12|0;l=r+8|0;m=r+4|0;n=r;p=Zu(a,b,d,f)|0;es(g,e);es(h,d);o=0;j=ya(118,f|0,g|0,h|0)|0;s=o;o=0;do if(s&1){s=cc()|0;fs(h);fs(g);g=s}else{fs(h);fs(g);if(j){es(q,d);hs(d,c[e>>2]|0);hs(e,c[q>>2]|0);fs(q);es(k,d);es(l,b);o=0;h=ya(118,f|0,k|0,l|0)|0;s=o;o=0;if(s&1){g=cc()|0;fs(l);fs(k);break}g=p+1|0;fs(l);fs(k);if(h){es(q,b);hs(b,c[d>>2]|0);hs(d,c[q>>2]|0);fs(q);es(m,b);es(n,a);o=0;g=ya(118,f|0,m|0,n|0)|0;s=o;o=0;if(s&1){g=cc()|0;fs(n);fs(m);break}fs(n);fs(m);if(g){es(q,a);hs(a,c[b>>2]|0);hs(b,c[q>>2]|0);fs(q);g=p+3|0}else g=p+2|0}}else g=p;i=r;return g|0}while(0);bc(g|0);return 0}function $u(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+48|0;t=u+32|0;h=u+28|0;j=u+24|0;l=u+20|0;m=u+16|0;n=u+12|0;p=u+8|0;q=u+4|0;r=u;s=_u(a,b,d,e,g)|0;es(h,f);es(j,e);o=0;k=ya(118,g|0,h|0,j|0)|0;v=o;o=0;do if(v&1){v=cc()|0;fs(j);fs(h);h=v}else{fs(j);fs(h);if(k){es(t,e);hs(e,c[f>>2]|0);hs(f,c[t>>2]|0);fs(t);es(l,e);es(m,d);o=0;j=ya(118,g|0,l|0,m|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(m);fs(l);break}h=s+1|0;fs(m);fs(l);if(j){es(t,d);hs(d,c[e>>2]|0);hs(e,c[t>>2]|0);fs(t);es(n,d);es(p,b);o=0;j=ya(118,g|0,n|0,p|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(p);fs(n);break}h=s+2|0;fs(p);fs(n);if(j){es(t,b);hs(b,c[d>>2]|0);hs(d,c[t>>2]|0);fs(t);es(q,b);es(r,a);o=0;h=ya(118,g|0,q|0,r|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(r);fs(q);break}fs(r);fs(q);if(h){es(t,a);hs(a,c[b>>2]|0);hs(b,c[t>>2]|0);fs(t);h=s+4|0}else h=s+3|0}}}else h=s;i=u;return h|0}while(0);bc(h|0);return 0}function av(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+32|0;j=t+28|0;g=t+24|0;h=t+20|0;m=t+16|0;n=t+12|0;r=t+8|0;p=t+4|0;q=t;a:do switch(b-a>>2|0){case 1:case 0:{e=1;s=21;break}case 2:{f=b+-4|0;es(g,f);es(h,a);o=0;e=ya(118,d|0,g|0,h|0)|0;s=o;o=0;if(s&1){e=cc()|0;fs(h);fs(g);s=22;break a}fs(h);fs(g);if(e){es(j,a);hs(a,c[f>>2]|0);hs(f,c[j>>2]|0);fs(j);e=1;s=21}else{e=1;s=21}break}case 3:{Zu(a,a+4|0,b+-4|0,d)|0;e=1;s=21;break}case 4:{_u(a,a+4|0,a+8|0,b+-4|0,d)|0;e=1;s=21;break}case 5:{$u(a,a+4|0,a+8|0,a+12|0,b+-4|0,d)|0;e=1;s=21;break}default:{g=a+8|0;Zu(a,a+4|0,g,d)|0;f=a+12|0;if((f|0)!=(b|0)){e=0;l=0;b:while(1){es(m,f);es(n,g);o=0;h=ya(118,d|0,m|0,n|0)|0;k=o;o=0;if(k&1){s=18;break}fs(n);fs(m);if(h){es(r,f);h=f;while(1){hs(h,c[g>>2]|0);if((g|0)==(a|0)){s=14;break}c[p>>2]=0;h=c[r>>2]|0;hs(p,h);j=g+-4|0;es(q,j);o=0;k=ya(118,d|0,p|0,q|0)|0;u=o;o=0;if(u&1){s=19;break b}fs(q);fs(p);if(k){h=g;g=j}else break}if((s|0)==14){s=0;h=c[r>>2]|0;g=a}hs(g,h);g=l+1|0;j=(g|0)==8;k=f+4|0;e=j?(k|0)==(b|0):e;fs(r);if(j){s=21;break a}else{h=g;g=j?k:f}}else{h=l;g=f}f=g+4|0;if((f|0)==(b|0)){e=1;s=21;break a}else l=h}if((s|0)==18){e=cc()|0;fs(n);fs(m);s=22;break a}else if((s|0)==19){e=cc()|0;fs(q);fs(p);fs(r);s=22;break a}}else{e=1;s=21}}}while(0);if((s|0)==21){i=t;return e|0}else if((s|0)==22)bc(e|0);return 0}function bv(a){a=a|0;Uz(a);return}function cv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function dv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;g=a+4|0;d=b+4|0;f=(c[g>>2]|0)-e|0;h=(c[d>>2]|0)+(0-(f>>2)<<2)|0;c[d>>2]=h;XL(h|0,e|0,f|0)|0;f=c[a>>2]|0;c[a>>2]=c[d>>2];c[d>>2]=f;f=b+8|0;e=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=e;f=a+8|0;a=b+12|0;e=c[f>>2]|0;c[f>>2]=c[a>>2];c[a>>2]=e;c[b>>2]=c[d>>2];return}function ev(a){a=a|0;var b=0,d=0,e=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0)){do b=b+-4|0;while((b|0)!=(d|0));c[e>>2]=b}b=c[a>>2]|0;if(b)Uz(b);return}function fv(a){a=a|0;Uz(a);return}function gv(a,b){a=a|0;b=b|0;if(!b)return;else{gv(a,c[b>>2]|0);gv(a,c[b+4>>2]|0);IC(b+20|0);Uz(b);return}}function hv(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;c[a+4>>2]=0;c[a>>2]=34488;c[d+4>>2]=0;c[d>>2]=4084;c[d+8>>2]=0;o=0;mb(113,a+8|0,b|0,d|0);a=o;o=0;if(a&1){e=cc()|0;Sd(d);bc(e|0)}else{Sd(d);i=e;return}}function iv(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}a=a+8|0;d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function jv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;e=a+4|0;c[e>>2]=0;c[a+8>>2]=0;if(b){o=0;ma(215,a|0,b|0);f=o;o=0;if(f&1){f=cc()|0;lv(a);bc(f|0)}a=c[e>>2]|0;do{Pd(a,d);a=(c[e>>2]|0)+12|0;c[e>>2]=a;b=b+-1|0}while((b|0)!=0)}return}function kv(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>357913941)Qz(a);else{d=Sz(b*12|0)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b*12|0);return}}function lv(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;_c[c[c[f>>2]>>2]&511](f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function mv(a){a=a|0;c[a>>2]=34488;lv(a+8|0);return}function nv(a){a=a|0;c[a>>2]=34488;lv(a+8|0);Uz(a);return}function ov(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b*12|0)|0;c[a>>2]=e;d=e+(d*12|0)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b*12|0);return}function pv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-12|0;Pd((c[g>>2]|0)+-12|0,d);c[g>>2]=(c[g>>2]|0)+-12}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function qv(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;_c[c[c[f>>2]>>2]&511](f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function rv(a){a=a|0;Uz(a);return}function sv(a,b,c){a=a|0;b=b|0;c=c|0;return (c+b+((($(c,b)|0)>>>0)%3|0)&1|0)==0|0}function tv(a){a=a|0;Uz(a);return}function uv(a,b,c){a=a|0;b=b|0;c=c|0;c=$(c,b)|0;return (((c>>>0)%3|0)+c&1|0)==0|0}function vv(a){a=a|0;Uz(a);return}function wv(a,b,c){a=a|0;b=b|0;c=c|0;c=$(c,b)|0;return (c&1|0)==(0-((c>>>0)%3|0)|0)|0}function xv(a){a=a|0;Uz(a);return}function yv(a,b,c){a=a|0;b=b|0;c=c|0;return (((c>>>0)/3|0)+(b>>>1)&1|0)==0|0}function zv(a){a=a|0;Uz(a);return}function Av(a,b,c){a=a|0;b=b|0;c=c|0;return (((c+b|0)>>>0)%3|0|0)==0|0}function Bv(a){a=a|0;Uz(a);return}function Cv(a,b,c){a=a|0;b=b|0;c=c|0;return ((c>>>0)%3|0|0)==0|0}function Dv(a){a=a|0;Uz(a);return}function Ev(a,b,c){a=a|0;b=b|0;c=c|0;return (b&1|0)==0|0}function Fv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Gv(a,b){a=a|0;b=b|0;c[a>>2]=0;tt(a,c[b>>2]|0);return}function Hv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;Gv((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function Iv(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;vt(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function Jv(a){a=a|0;Uz(a);return}function Kv(a,b,c){a=a|0;b=b|0;c=c|0;return (c+b&1|0)==0|0}function Lv(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Mv(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;pt(b,0);b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function Nv(a){a=a|0;c[a>>2]=34228;Sd(a+12|0);return}function Ov(a){a=a|0;c[a>>2]=34228;Sd(a+12|0);Uz(a);return}function Pv(a){a=a|0;At(a);Uz(a);return}function Qv(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+16|0;l=n+1|0;m=n;h=b+4|0;g=c[h>>2]|0;b=d+(((g-f|0)/12|0)*12|0)|0;if(b>>>0<e>>>0){j=g;k=b;do{c[j>>2]=0;p=j+4|0;c[p>>2]=0;c[j+8>>2]=0;c[j>>2]=c[k>>2];o=k+4|0;c[p>>2]=c[o>>2];p=k+8|0;c[j+8>>2]=c[p>>2];c[p>>2]=0;c[o>>2]=0;c[k>>2]=0;k=k+12|0;j=(c[h>>2]|0)+12|0;c[h>>2]=j}while(k>>>0<e>>>0)}if((g|0)!=(f|0))do{g=g+-12|0;b=b+-12|0;a[l>>0]=a[m>>0]|0;Rv(g,b,l)}while((b|0)!=(d|0));i=n;return}function Rv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;Xv(a);c[a>>2]=c[b>>2];d=b+4|0;c[a+4>>2]=c[d>>2];e=b+8|0;c[a+8>>2]=c[e>>2];c[e>>2]=0;c[d>>2]=0;c[b>>2]=0;return}function Sv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b*12|0)|0;c[a>>2]=e;d=e+(d*12|0)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b*12|0);return}function Tv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+48|0;m=q+32|0;l=q+28|0;j=q+8|0;f=q+4|0;g=q;p=b+8|0;e=c[p>>2]|0;h=b+12|0;do if((e|0)==(c[h>>2]|0)){n=b+4|0;o=c[n>>2]|0;k=c[b>>2]|0;if(o>>>0<=k>>>0){e=(e|0)==(k|0)?1:((e-k|0)/12|0)<<1;Sv(j,e,e>>>2,c[b+16>>2]|0);c[f>>2]=c[n>>2];c[g>>2]=c[p>>2];c[l>>2]=c[f>>2];c[m>>2]=c[g>>2];Wv(j,l,m);e=c[b>>2]|0;c[b>>2]=c[j>>2];c[j>>2]=e;e=j+4|0;o=c[n>>2]|0;c[n>>2]=c[e>>2];c[e>>2]=o;e=j+8|0;o=c[p>>2]|0;c[p>>2]=c[e>>2];c[e>>2]=o;e=j+12|0;o=c[h>>2]|0;c[h>>2]=c[e>>2];c[e>>2]=o;Vv(j);e=c[p>>2]|0;break}b=o;h=(((b-k|0)/12|0)+1|0)/-2|0;j=e;if((o|0)!=(e|0)){f=o+(h*12|0)|0;g=o;while(1){a[m>>0]=a[l>>0]|0;Rv(f,g,m);g=g+12|0;if((g|0)==(e|0))break;else f=f+12|0}}e=o+(((((j-b|0)>>>0)/12|0)+h|0)*12|0)|0;c[p>>2]=e;c[n>>2]=(c[n>>2]|0)+(h*12|0)}while(0);c[e>>2]=0;n=e+4|0;c[n>>2]=0;c[e+8>>2]=0;c[e>>2]=c[d>>2];o=d+4|0;c[n>>2]=c[o>>2];n=d+8|0;c[e+8>>2]=c[n>>2];c[n>>2]=0;c[o>>2]=0;c[d>>2]=0;c[p>>2]=(c[p>>2]|0)+12;i=q;return}function Uv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;i=b+4|0;j=c[i>>2]|0;f=c[a>>2]|0;if((f|0)!=(d|0)){e=d;g=j;do{h=g+-12|0;k=e;e=e+-12|0;c[h>>2]=0;l=g+-8|0;c[l>>2]=0;c[g+-4>>2]=0;c[h>>2]=c[e>>2];h=k+-8|0;c[l>>2]=c[h>>2];k=k+-4|0;c[g+-4>>2]=c[k>>2];c[k>>2]=0;c[h>>2]=0;c[e>>2]=0;g=(c[i>>2]|0)+-12|0;c[i>>2]=g}while((e|0)!=(f|0))}f=a+4|0;g=c[f>>2]|0;h=b+8|0;if((g|0)!=(d|0)){e=d;do{d=c[h>>2]|0;c[d>>2]=0;k=d+4|0;c[k>>2]=0;c[d+8>>2]=0;c[d>>2]=c[e>>2];l=e+4|0;c[k>>2]=c[l>>2];k=e+8|0;c[d+8>>2]=c[k>>2];c[k>>2]=0;c[l>>2]=0;c[e>>2]=0;e=e+12|0;c[h>>2]=(c[h>>2]|0)+12}while((e|0)!=(g|0))}l=c[a>>2]|0;c[a>>2]=c[i>>2];c[i>>2]=l;l=c[f>>2]|0;c[f>>2]=c[h>>2];c[h>>2]=l;a=a+8|0;l=b+12|0;k=c[a>>2]|0;c[a>>2]=c[l>>2];c[l>>2]=k;c[b>>2]=c[i>>2];return j|0}function Vv(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;br(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function Wv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d>>2]|0;a=a+8|0;d=c[b>>2]|0;if((d|0)!=(e|0))do{h=c[a>>2]|0;c[h>>2]=0;g=h+4|0;c[g>>2]=0;c[h+8>>2]=0;c[h>>2]=c[d>>2];f=d+4|0;c[g>>2]=c[f>>2];g=d+8|0;c[h+8>>2]=c[g>>2];c[g>>2]=0;c[f>>2]=0;c[d>>2]=0;c[a>>2]=(c[a>>2]|0)+12;d=d+12|0;c[b>>2]=d}while((d|0)!=(e|0));return}function Xv(a){a=a|0;var b=0,d=0,e=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0)){do b=b+-4|0;while((b|0)!=(d|0));c[e>>2]=b}Uz(d);c[a+8>>2]=0;c[e>>2]=0;c[a>>2]=0}return}function Yv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Zv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;g=a+4|0;d=b+4|0;f=(c[g>>2]|0)-e|0;h=(c[d>>2]|0)+(0-(f>>2)<<2)|0;c[d>>2]=h;XL(h|0,e|0,f|0)|0;f=c[a>>2]|0;c[a>>2]=c[d>>2];c[d>>2]=f;f=b+8|0;e=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=e;f=a+8|0;a=b+12|0;e=c[f>>2]|0;c[f>>2]=c[a>>2];c[a>>2]=e;c[b>>2]=c[d>>2];return}function _v(a){a=a|0;var b=0,d=0,e=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0)){do b=b+-4|0;while((b|0)!=(d|0));c[e>>2]=b}b=c[a>>2]|0;if(b)Uz(b);return}function $v(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;j=k;f=c[a+8>>2]|0;h=a+4|0;d=c[h>>2]|0;if(((f-d|0)/12|0)>>>0<b>>>0){e=c[a>>2]|0;g=((d-e|0)/12|0)+b|0;if(g>>>0>357913941)Qz(a);d=(f-e|0)/12|0;if(d>>>0<178956970){d=d<<1;d=d>>>0<g>>>0?g:d}else d=357913941;cw(j,d,((c[h>>2]|0)-e|0)/12|0,a+8|0);dw(j,b);ew(a,j);fw(j)}else bw(a,b);i=k;return}function aw(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;gt(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function bw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=a+4|0;d=c[e>>2]|0;a=b;f=d;while(1){c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;a=a+-1|0;if(!a)break;else f=f+12|0}c[e>>2]=d+(b*12|0);return}function cw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b*12|0)|0;c[a>>2]=e;d=e+(d*12|0)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b*12|0);return}function dw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=a+8|0;d=c[e>>2]|0;a=b;f=d;while(1){c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;a=a+-1|0;if(!a)break;else f=f+12|0}c[e>>2]=d+(b*12|0);return}function ew(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{j=c[g>>2]|0;h=j+-12|0;i=d;d=d+-12|0;c[h>>2]=0;k=j+-8|0;c[k>>2]=0;c[j+-4>>2]=0;c[h>>2]=c[d>>2];h=i+-8|0;c[k>>2]=c[h>>2];i=i+-4|0;c[j+-4>>2]=c[i>>2];c[i>>2]=0;c[h>>2]=0;c[d>>2]=0;c[g>>2]=(c[g>>2]|0)+-12}while((d|0)!=(e|0));i=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=i;i=b+8|0;k=c[f>>2]|0;c[f>>2]=c[i>>2];c[i>>2]=k;i=a+8|0;k=b+12|0;j=c[i>>2]|0;c[i>>2]=c[k>>2];c[k>>2]=j;c[b>>2]=c[g>>2];return}function fw(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;aw(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function gw(a,b){a=a|0;b=b|0;if(!b)return;else{gw(a,c[b>>2]|0);gw(a,c[b+4>>2]|0);Uz(b);return}}function hw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;a=a+4|0;e=c[a>>2]|0;do if(e){f=c[d>>2]|0;while(1){a=c[e+16>>2]|0;if((f|0)<(a|0)){a=c[e>>2]|0;if(!a){a=e;d=5;break}}else{if((a|0)>=(f|0)){a=e;d=10;break}a=e+4|0;d=c[a>>2]|0;if(!d){d=9;break}else a=d}e=a}if((d|0)==5){c[b>>2]=e;break}else if((d|0)==9){c[b>>2]=e;break}else if((d|0)==10){c[b>>2]=a;a=b;break}}else c[b>>2]=a;while(0);return a|0}function iw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=Sz(24)|0;c[e+16>>2]=c[d>>2];c[e+20>>2]=0;c[a>>2]=e;a=a+4|0;c[a>>2]=b+4;c[a+4>>2]=257;return}function jw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=b;c[d>>2]=e;b=c[a>>2]|0;if(c[b>>2]|0){c[a>>2]=c[b>>2];e=c[d>>2]|0}kw(c[a+4>>2]|0,e);a=a+8|0;c[a>>2]=(c[a>>2]|0)+1;return}function kw(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;a[d+12>>0]=(d|0)==(b|0)&1;a:do if((d|0)!=(b|0)){while(1){e=c[d+8>>2]|0;i=e+12|0;if(a[i>>0]|0)break a;f=e+8|0;h=d;d=c[f>>2]|0;g=c[d>>2]|0;if((g|0)==(e|0)){g=c[d+4>>2]|0;if(!g){g=h;h=7;break}g=g+12|0;if(a[g>>0]|0){g=h;h=7;break}a[i>>0]=1;a[d+12>>0]=(d|0)==(b|0)&1;a[g>>0]=1}else{if(!g){g=h;h=14;break}g=g+12|0;if(a[g>>0]|0){g=h;h=14;break}a[i>>0]=1;a[d+12>>0]=(d|0)==(b|0)&1;a[g>>0]=1}if((d|0)==(b|0))break a}if((h|0)==7){if((c[e>>2]|0)!=(g|0)){lw(e);d=c[f>>2]|0;e=d;d=c[d+8>>2]|0}a[e+12>>0]=1;a[d+12>>0]=0;mw(d);break}else if((h|0)==14){if((c[e>>2]|0)==(g|0)){mw(e);d=c[f>>2]|0;e=d;d=c[d+8>>2]|0}a[e+12>>0]=1;a[d+12>>0]=0;lw(d);break}}while(0);return}function lw(a){a=a|0;var b=0,d=0,e=0;d=a+4|0;e=c[d>>2]|0;b=c[e>>2]|0;c[d>>2]=b;if(b)c[b+8>>2]=a;b=a+8|0;c[e+8>>2]=c[b>>2];d=c[b>>2]|0;if((c[d>>2]|0)==(a|0))c[d>>2]=e;else c[d+4>>2]=e;c[e>>2]=a;c[b>>2]=e;return}function mw(a){a=a|0;var b=0,d=0,e=0,f=0;e=c[a>>2]|0;f=e+4|0;b=c[f>>2]|0;c[a>>2]=b;if(b)c[b+8>>2]=a;b=a+8|0;c[e+8>>2]=c[b>>2];d=c[b>>2]|0;if((c[d>>2]|0)==(a|0))c[d>>2]=e;else c[d+4>>2]=e;c[f>>2]=a;c[b>>2]=e;return}function nw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;j=k;f=c[a+8>>2]|0;h=a+4|0;d=c[h>>2]|0;if(((f-d|0)/12|0)>>>0<b>>>0){e=c[a>>2]|0;g=((d-e|0)/12|0)+b|0;if(g>>>0>357913941)Qz(a);d=(f-e|0)/12|0;if(d>>>0<178956970){d=d<<1;d=d>>>0<g>>>0?g:d}else d=357913941;pw(j,d,((c[h>>2]|0)-e|0)/12|0,a+8|0);f=j+8|0;e=c[f>>2]|0;d=b;g=e;while(1){c[g+4>>2]=0;c[g+8>>2]=0;c[g>>2]=g+4;d=d+-1|0;if(!d)break;else g=g+12|0}c[f>>2]=e+(b*12|0);qw(a,j);rw(j)}else ow(a,b);i=k;return}function ow(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b+4>>2]=0;c[b+8>>2]=0;c[b>>2]=b+4;b=(c[d>>2]|0)+12|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function pw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b*12|0)|0;c[a>>2]=e;d=e+(d*12|0)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b*12|0);return}function qw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-12|0;sw((c[g>>2]|0)+-12|0,d);c[g>>2]=(c[g>>2]|0)+-12}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function rw(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;gt(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function sw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;c[a>>2]=c[b>>2];d=c[b+4>>2]|0;c[a+4>>2]=d;e=b+8|0;g=c[e>>2]|0;c[a+8>>2]=g;f=a+4|0;if(!g)c[a>>2]=f;else{c[d+8>>2]=f;g=b+4|0;c[b>>2]=g;c[g>>2]=0;c[e>>2]=0}return}function tw(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>357913941)Qz(a);else{d=Sz(b*12|0)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b*12|0);return}}function uw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;l=i;i=i+32|0;k=l;h=c[a+8>>2]|0;j=a+4|0;e=c[j>>2]|0;f=e;if(h-f>>2>>>0<b>>>0){e=c[a>>2]|0;f=(f-e>>2)+b|0;if(f>>>0>1073741823)Qz(a);g=e;e=h-g|0;if(e>>2>>>0<536870911){e=e>>1;e=e>>>0<f>>>0?f:e}else e=1073741823;vw(k,e,(c[j>>2]|0)-g>>2,a+8|0);f=k+8|0;e=c[f>>2]|0;g=e+(b<<2)|0;while(1){c[e>>2]=c[d>>2];b=b+-1|0;if(!b)break;else e=e+4|0}c[f>>2]=g;ww(a,k);xw(k)}else{f=e+(b<<2)|0;while(1){c[e>>2]=c[d>>2];b=b+-1|0;if(!b)break;else e=e+4|0}c[j>>2]=f}i=l;return}function vw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function ww(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;g=a+4|0;d=b+4|0;f=(c[g>>2]|0)-e|0;h=(c[d>>2]|0)+(0-(f>>2)<<2)|0;c[d>>2]=h;XL(h|0,e|0,f|0)|0;f=c[a>>2]|0;c[a>>2]=c[d>>2];c[d>>2]=f;f=b+8|0;e=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=e;f=a+8|0;a=b+12|0;e=c[f>>2]|0;c[f>>2]=c[a>>2];c[a>>2]=e;c[b>>2]=c[d>>2];return}function xw(a){a=a|0;var b=0,d=0,e=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0)){do b=b+-4|0;while((b|0)!=(d|0));c[e>>2]=b}b=c[a>>2]|0;if(b)Uz(b);return}function yw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;j=k;f=c[a+8>>2]|0;h=a+4|0;d=c[h>>2]|0;if(((f-d|0)/12|0)>>>0<b>>>0){e=c[a>>2]|0;g=((d-e|0)/12|0)+b|0;if(g>>>0>357913941)Qz(a);d=(f-e|0)/12|0;if(d>>>0<178956970){d=d<<1;d=d>>>0<g>>>0?g:d}else d=357913941;Sv(j,d,((c[h>>2]|0)-e|0)/12|0,a+8|0);Aw(j,b);Bw(a,j);Vv(j)}else zw(a,b);i=k;return}function zw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=a+4|0;d=c[e>>2]|0;a=b;f=d;while(1){c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;a=a+-1|0;if(!a)break;else f=f+12|0}c[e>>2]=d+(b*12|0);return}function Aw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=a+8|0;d=c[e>>2]|0;a=b;f=d;while(1){c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;a=a+-1|0;if(!a)break;else f=f+12|0}c[e>>2]=d+(b*12|0);return}function Bw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{j=c[g>>2]|0;h=j+-12|0;i=d;d=d+-12|0;c[h>>2]=0;k=j+-8|0;c[k>>2]=0;c[j+-4>>2]=0;c[h>>2]=c[d>>2];h=i+-8|0;c[k>>2]=c[h>>2];i=i+-4|0;c[j+-4>>2]=c[i>>2];c[i>>2]=0;c[h>>2]=0;c[d>>2]=0;c[g>>2]=(c[g>>2]|0)+-12}while((d|0)!=(e|0));i=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=i;i=b+8|0;k=c[f>>2]|0;c[f>>2]=c[i>>2];c[i>>2]=k;i=a+8|0;k=b+12|0;j=c[i>>2]|0;c[i>>2]=c[k>>2];c[k>>2]=j;c[b>>2]=c[g>>2];return}function Cw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;l=i;i=i+32|0;k=l;h=c[a+8>>2]|0;j=a+4|0;g=c[j>>2]|0;f=g;if(h-f>>2>>>0<b>>>0){e=c[a>>2]|0;f=(f-e>>2)+b|0;if(f>>>0>1073741823)Qz(a);g=e;e=h-g|0;if(e>>2>>>0<536870911){e=e>>1;e=e>>>0<f>>>0?f:e}else e=1073741823;Yv(k,e,(c[j>>2]|0)-g>>2,a+8|0);g=k+8|0;f=c[g>>2]|0;e=b;h=f;while(1){c[h>>2]=c[d>>2];e=e+-1|0;if(!e)break;else h=h+4|0}c[g>>2]=f+(b<<2);Zv(a,k);_v(k)}else{e=b;f=g;while(1){c[f>>2]=c[d>>2];e=e+-1|0;if(!e)break;else f=f+4|0}c[j>>2]=g+(b<<2)}i=l;return}function Dw(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>357913941)Qz(a);else{d=Sz(b*12|0)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b*12|0);return}}function Ew(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Fw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;j=k;g=c[a+8>>2]|0;h=a+4|0;d=c[h>>2]|0;e=d;if(g-e>>2>>>0<b>>>0){d=c[a>>2]|0;e=(e-d>>2)+b|0;if(e>>>0>1073741823)Qz(a);f=d;d=g-f|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<e>>>0?e:d}else d=1073741823;vw(j,d,(c[h>>2]|0)-f>>2,a+8|0);h=j+8|0;g=c[h>>2]|0;ZL(g|0,0,b<<2|0)|0;c[h>>2]=g+(b<<2);ww(a,j);xw(j)}else{ZL(d|0,0,b<<2|0)|0;c[h>>2]=d+(b<<2)}i=k;return}function Gw(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>357913941)Qz(a);else{d=Sz(b*12|0)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b*12|0);return}}function Hw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=a+4|0;d=c[e>>2]|0;a=b;f=d;while(1){c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;a=a+-1|0;if(!a)break;else f=f+12|0}c[e>>2]=d+(b*12|0);return}function Iw(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Jw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;g=b;h=d-g>>2;e=a+8|0;i=c[a>>2]|0;f=i;do if(h>>>0>(c[e>>2]|0)-f>>2>>>0){Xv(a);if(h>>>0>1073741823)Qz(a);e=(c[e>>2]|0)-(c[a>>2]|0)|0;if(e>>2>>>0<536870911){e=e>>1;e=e>>>0<h>>>0?h:e}else e=1073741823;Iw(a,e);f=a+4|0;if((b|0)!=(d|0)){e=c[f>>2]|0;do{c[e>>2]=c[b>>2];e=e+4|0;b=b+4|0}while((b|0)!=(d|0));c[f>>2]=e}}else{a=a+4|0;e=(c[a>>2]|0)-f>>2;h=h>>>0>e>>>0;e=h?b+(e<<2)|0:d;g=e-g|0;YL(i|0,b|0,g|0)|0;b=i+(g>>2<<2)|0;if(!h){e=c[a>>2]|0;if((e|0)==(b|0))break;do e=e+-4|0;while((e|0)!=(b|0));c[a>>2]=e;break}if((e|0)!=(d|0)){b=e;e=c[a>>2]|0;do{c[e>>2]=c[b>>2];e=e+4|0;b=b+4|0}while((b|0)!=(d|0));c[a>>2]=e}}while(0);return}function Kw(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Lw(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;Ls(b,0);b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function Mw(a){a=a|0;Uz(a);return}function Nw(a){a=a|0;Fs(a);Uz(a);return}function Ow(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;c[a+4>>2]=0;c[a>>2]=34520;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;o=0;mb(114,a+8|0,b|0,d|0);a=o;o=0;if(a&1){e=cc()|0;Ds(d+4|0);bc(e|0)}else{Ds(d+4|0);i=e;return}}function Pw(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}a=a+8|0;d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Qw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;f=a+4|0;c[f>>2]=0;c[a+8>>2]=0;a:do if(b){o=0;ma(216,a|0,b|0);e=o;o=0;if(e&1)b=cc()|0;else{e=c[f>>2]|0;while(1){o=0;ma(217,e|0,d|0);e=o;o=0;if(e&1)break;e=(c[f>>2]|0)+16|0;c[f>>2]=e;b=b+-1|0;if(!b)break a}b=cc()|0}Sw(a);bc(b|0)}while(0);return}function Rw(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>268435455)Qz(a);else{d=Sz(b<<4)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<4);return}}function Sw(a){a=a|0;var b=0,d=0,e=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{c[e>>2]=b+-16;Ds(b+-12|0);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function Tw(a){a=a|0;c[a>>2]=34520;Sw(a+8|0);return}function Uw(a){a=a|0;c[a>>2]=34520;Sw(a+8|0);Uz(a);return}function Vw(a){a=a|0;Is(a);Uz(a);return}function Ww(a){a=a|0;Uz(a);return}function Xw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Yw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;Bs((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function Zw(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;zs(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function _w(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function $w(a,b){a=a|0;b=b|0;c[a>>2]=0;ts(a,c[b>>2]|0);return}function ax(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;$w((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function bx(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;vs(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function cx(a){a=a|0;Aq(a);Uz(a);return}function dx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function ex(a,b){a=a|0;b=b|0;c[a>>2]=0;Me(a,c[b>>2]|0);return}function fx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;ex((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function gx(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;de(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function hx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function ix(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;Pe((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function jx(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;be(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function kx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function lx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;es((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function mx(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;fs(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function nx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+48|0;s=t+40|0;f=t+36|0;g=t+32|0;j=t+28|0;k=t+24|0;n=t+20|0;p=t+16|0;l=t+12|0;m=t+8|0;q=t+4|0;r=t;h=c[e>>2]|0;es(f,b);es(g,a);o=0;h=Wa(h|0,f|0,g|0)|0;u=o;o=0;a:do if(u&1){u=cc()|0;fs(g);fs(f);f=u}else{fs(g);fs(f);f=c[e>>2]|0;do if(h){es(l,d);es(m,b);o=0;f=Wa(f|0,l|0,m|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(m);fs(l);break a}fs(m);fs(l);if(f){es(s,a);hs(a,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);f=1;break}es(s,a);hs(a,c[b>>2]|0);hs(b,c[s>>2]|0);fs(s);f=c[e>>2]|0;es(q,d);es(r,b);o=0;f=Wa(f|0,q|0,r|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(r);fs(q);break a}fs(r);fs(q);if(f){es(s,b);hs(b,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);f=2}else f=1}else{es(j,d);es(k,b);o=0;f=Wa(f|0,j|0,k|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(k);fs(j);break a}fs(k);fs(j);if(f){es(s,b);hs(b,c[d>>2]|0);hs(d,c[s>>2]|0);fs(s);f=c[e>>2]|0;es(n,b);es(p,a);o=0;f=Wa(f|0,n|0,p|0)|0;u=o;o=0;if(u&1){f=cc()|0;fs(p);fs(n);break a}fs(p);fs(n);if(f){es(s,a);hs(a,c[b>>2]|0);hs(b,c[s>>2]|0);fs(s);f=2}else f=1}else f=0}while(0);i=t;return f|0}while(0);bc(f|0);return 0}function ox(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;q=r+24|0;g=r+20|0;h=r+16|0;k=r+12|0;l=r+8|0;m=r+4|0;n=r;p=nx(a,b,d,f)|0;j=c[f>>2]|0;es(g,e);es(h,d);o=0;j=Wa(j|0,g|0,h|0)|0;s=o;o=0;do if(s&1){s=cc()|0;fs(h);fs(g);g=s}else{fs(h);fs(g);if(j){es(q,d);hs(d,c[e>>2]|0);hs(e,c[q>>2]|0);fs(q);h=c[f>>2]|0;es(k,d);es(l,b);o=0;h=Wa(h|0,k|0,l|0)|0;s=o;o=0;if(s&1){g=cc()|0;fs(l);fs(k);break}g=p+1|0;fs(l);fs(k);if(h){es(q,b);hs(b,c[d>>2]|0);hs(d,c[q>>2]|0);fs(q);g=c[f>>2]|0;es(m,b);es(n,a);o=0;g=Wa(g|0,m|0,n|0)|0;s=o;o=0;if(s&1){g=cc()|0;fs(n);fs(m);break}fs(n);fs(m);if(g){es(q,a);hs(a,c[b>>2]|0);hs(b,c[q>>2]|0);fs(q);g=p+3|0}else g=p+2|0}}else g=p;i=r;return g|0}while(0);bc(g|0);return 0}function px(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+48|0;t=u+32|0;h=u+28|0;j=u+24|0;l=u+20|0;m=u+16|0;n=u+12|0;p=u+8|0;q=u+4|0;r=u;s=ox(a,b,d,e,g)|0;k=c[g>>2]|0;es(h,f);es(j,e);o=0;k=Wa(k|0,h|0,j|0)|0;v=o;o=0;do if(v&1){v=cc()|0;fs(j);fs(h);h=v}else{fs(j);fs(h);if(k){es(t,e);hs(e,c[f>>2]|0);hs(f,c[t>>2]|0);fs(t);j=c[g>>2]|0;es(l,e);es(m,d);o=0;j=Wa(j|0,l|0,m|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(m);fs(l);break}h=s+1|0;fs(m);fs(l);if(j){es(t,d);hs(d,c[e>>2]|0);hs(e,c[t>>2]|0);fs(t);j=c[g>>2]|0;es(n,d);es(p,b);o=0;j=Wa(j|0,n|0,p|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(p);fs(n);break}h=s+2|0;fs(p);fs(n);if(j){es(t,b);hs(b,c[d>>2]|0);hs(d,c[t>>2]|0);fs(t);h=c[g>>2]|0;es(q,b);es(r,a);o=0;h=Wa(h|0,q|0,r|0)|0;v=o;o=0;if(v&1){h=cc()|0;fs(r);fs(q);break}fs(r);fs(q);if(h){es(t,a);hs(a,c[b>>2]|0);hs(b,c[t>>2]|0);fs(t);h=s+4|0}else h=s+3|0}}}else h=s;i=u;return h|0}while(0);bc(h|0);return 0}function qx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;q=i;i=i+32|0;k=q+16|0;l=q+12|0;p=q+8|0;m=q+4|0;n=q;f=a+8|0;nx(a,a+4|0,f,d)|0;e=a+12|0;a:do if((e|0)!=(b|0)){j=e;b:while(1){e=c[d>>2]|0;es(k,j);es(l,f);o=0;e=Wa(e|0,k|0,l|0)|0;h=o;o=0;if(h&1){r=10;break}fs(l);fs(k);if(e){es(p,j);e=j;while(1){hs(e,c[f>>2]|0);if((f|0)==(a|0)){r=6;break}h=c[d>>2]|0;c[m>>2]=0;e=c[p>>2]|0;hs(m,e);g=f+-4|0;es(n,g);o=0;h=Wa(h|0,m|0,n|0)|0;s=o;o=0;if(s&1){r=11;break b}fs(n);fs(m);if(h){e=f;f=g}else break}if((r|0)==6){r=0;e=c[p>>2]|0;f=a}hs(f,e);fs(p)}e=j+4|0;if((e|0)==(b|0))break a;else{f=j;j=e}}if((r|0)==10){e=cc()|0;fs(l);fs(k)}else if((r|0)==11){e=cc()|0;fs(n);fs(m);fs(p)}bc(e|0)}while(0);i=q;return}function rx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+32|0;j=t+28|0;g=t+24|0;h=t+20|0;m=t+16|0;n=t+12|0;r=t+8|0;p=t+4|0;q=t;a:do switch(b-a>>2|0){case 1:case 0:{e=1;s=21;break}case 2:{f=c[d>>2]|0;e=b+-4|0;es(g,e);es(h,a);o=0;f=Wa(f|0,g|0,h|0)|0;s=o;o=0;if(s&1){e=cc()|0;fs(h);fs(g);s=22;break a}fs(h);fs(g);if(f){es(j,a);hs(a,c[e>>2]|0);hs(e,c[j>>2]|0);fs(j);e=1;s=21}else{e=1;s=21}break}case 3:{nx(a,a+4|0,b+-4|0,d)|0;e=1;s=21;break}case 4:{ox(a,a+4|0,a+8|0,b+-4|0,d)|0;e=1;s=21;break}case 5:{px(a,a+4|0,a+8|0,a+12|0,b+-4|0,d)|0;e=1;s=21;break}default:{g=a+8|0;nx(a,a+4|0,g,d)|0;f=a+12|0;if((f|0)!=(b|0)){e=0;l=0;b:while(1){h=c[d>>2]|0;es(m,f);es(n,g);o=0;h=Wa(h|0,m|0,n|0)|0;k=o;o=0;if(k&1){s=18;break}fs(n);fs(m);if(h){es(r,f);h=f;while(1){hs(h,c[g>>2]|0);if((g|0)==(a|0)){s=14;break}k=c[d>>2]|0;c[p>>2]=0;h=c[r>>2]|0;hs(p,h);j=g+-4|0;es(q,j);o=0;k=Wa(k|0,p|0,q|0)|0;u=o;o=0;if(u&1){s=19;break b}fs(q);fs(p);if(k){h=g;g=j}else break}if((s|0)==14){s=0;h=c[r>>2]|0;g=a}hs(g,h);g=l+1|0;j=(g|0)==8;k=f+4|0;e=j?(k|0)==(b|0):e;fs(r);if(j){s=21;break a}else{h=g;g=j?k:f}}else{h=l;g=f}f=g+4|0;if((f|0)==(b|0)){e=1;s=21;break a}else l=h}if((s|0)==18){e=cc()|0;fs(n);fs(m);s=22;break a}else if((s|0)==19){e=cc()|0;fs(q);fs(p);fs(r);s=22;break a}}else{e=1;s=21}}}while(0);if((s|0)==21){i=t;return e|0}else if((s|0)==22)bc(e|0);return 0}function sx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b*12|0)|0;c[a>>2]=e;d=e+(d*12|0)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b*12|0);return}function tx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{j=c[g>>2]|0;h=j+-12|0;i=d;d=d+-12|0;c[h>>2]=0;k=j+-8|0;c[k>>2]=0;c[j+-4>>2]=0;c[h>>2]=c[d>>2];h=i+-8|0;c[k>>2]=c[h>>2];i=i+-4|0;c[j+-4>>2]=c[i>>2];c[i>>2]=0;c[h>>2]=0;c[d>>2]=0;c[g>>2]=(c[g>>2]|0)+-12}while((d|0)!=(e|0));i=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=i;i=b+8|0;k=c[f>>2]|0;c[f>>2]=c[i>>2];c[i>>2]=k;i=a+8|0;k=b+12|0;j=c[i>>2]|0;c[i>>2]=c[k>>2];c[k>>2]=j;c[b>>2]=c[g>>2];return}function ux(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-12|0;c[e>>2]=f;Zr(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function vx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function wx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;Rr((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function xx(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;Tr(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function yx(a,b,d){a=a|0;b=b|0;d=d|0;a=a+4|0;if((b|0)!=(d|0))do{es(c[a>>2]|0,b);c[a>>2]=(c[a>>2]|0)+4;b=b+4|0}while((b|0)!=(d|0));return}function zx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Ax(a,b){a=a|0;b=b|0;c[a>>2]=0;Hr(a,c[b>>2]|0);return}function Bx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;Ax((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function Cx(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;ir(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function Dx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Ex(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;lr((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function Fx(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;kr(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function Gx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Hx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;g=a+4|0;d=b+4|0;f=(c[g>>2]|0)-e|0;h=(c[d>>2]|0)+(0-(f>>2)<<2)|0;c[d>>2]=h;XL(h|0,e|0,f|0)|0;f=c[a>>2]|0;c[a>>2]=c[d>>2];c[d>>2]=f;f=b+8|0;e=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=e;f=a+8|0;a=b+12|0;e=c[f>>2]|0;c[f>>2]=c[a>>2];c[a>>2]=e;c[b>>2]=c[d>>2];return}function Ix(a){a=a|0;var b=0,d=0,e=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0)){do b=b+-4|0;while((b|0)!=(d|0));c[e>>2]=b}b=c[a>>2]|0;if(b)Uz(b);return}function Jx(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Kx(a,b){a=a|0;b=b|0;if(!b)return;else{Kx(a,c[b>>2]|0);Kx(a,c[b+4>>2]|0);uq(b+16|0);Uz(b);return}}function Lx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;e=a+4|0;c[e>>2]=0;c[a+8>>2]=0;if(b){o=0;ma(196,a|0,b|0);f=o;o=0;if(f&1){f=cc()|0;wq(a);bc(f|0)}a=c[e>>2]|0;do{tq(a,d);a=(c[e>>2]|0)+4|0;c[e>>2]=a;b=b+-1|0}while((b|0)!=0)}return}function Mx(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Nx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;g=h+12|0;f=h;e=Ox(a,g,b)|0;d=c[e>>2]|0;if(!d){Px(f,a,b);d=c[f>>2]|0;Qx(a,c[g>>2]|0,e,d);c[f>>2]=0}i=h;return d+20|0}function Ox(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;a=a+4|0;e=c[a>>2]|0;do if(e){f=c[d>>2]|0;while(1){a=c[e+16>>2]|0;if(f>>>0<a>>>0){a=c[e>>2]|0;if(!a){a=e;d=5;break}}else{if(a>>>0>=f>>>0){a=e;d=10;break}a=e+4|0;d=c[a>>2]|0;if(!d){d=9;break}else a=d}e=a}if((d|0)==5){c[b>>2]=e;break}else if((d|0)==9){c[b>>2]=e;break}else if((d|0)==10){c[b>>2]=a;a=b;break}}else c[b>>2]=a;while(0);return a|0}function Px(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=Sz(24)|0;tq(e+16|0,d);c[e+20>>2]=0;c[a>>2]=e;a=a+4|0;c[a>>2]=b+4;c[a+4>>2]=257;return}function Qx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=b;c[d>>2]=e;b=c[a>>2]|0;if(c[b>>2]|0){c[a>>2]=c[b>>2];e=c[d>>2]|0}kw(c[a+4>>2]|0,e);a=a+8|0;c[a>>2]=(c[a>>2]|0)+1;return}function Rx(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Sx(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;Br(b,0);b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function Tx(a){a=a|0;c[a>>2]=30716;uq(a+12|0);uq(a+8|0);return}function Ux(a){a=a|0;Tx(a);Uz(a);return}function Vx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b)|0;c[a>>2]=e;d=e+d|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+b;return}function Wx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;g=a+4|0;d=b+4|0;f=(c[g>>2]|0)-e|0;h=(c[d>>2]|0)+(0-f)|0;c[d>>2]=h;XL(h|0,e|0,f|0)|0;f=c[a>>2]|0;c[a>>2]=c[d>>2];c[d>>2]=f;f=b+8|0;e=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=e;f=a+8|0;a=b+12|0;e=c[f>>2]|0;c[f>>2]=c[a>>2];c[a>>2]=e;c[b>>2]=c[d>>2];return}function Xx(a){a=a|0;var b=0,d=0,e=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0)){do b=b+-1|0;while((b|0)!=(d|0));c[e>>2]=b}Uz(c[a>>2]|0);return}function Yx(a){a=a|0;c[a>>2]=34556;Sd(a+8|0);return}function Zx(a){a=a|0;c[a>>2]=34556;Sd(a+8|0);Uz(a);return}function _x(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function $x(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;or(b,0);b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function ay(a){a=a|0;c[a>>2]=30700;Sd(a+12|0);return}function by(a){a=a|0;c[a>>2]=30700;Sd(a+12|0);Uz(a);return}function cy(a){a=a|0;yr(a);Uz(a);return}function dy(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;q=i;i=i+32|0;j=q+16|0;n=q+8|0;k=q;o=0;ma(218,n|0,b|0);m=o;o=0;a:do if(m&1){e=cc(0)|0;f=b;g=b;p=15}else{do if(a[n>>0]|0){f=c[(c[b>>2]|0)+-12>>2]|0;c[k>>2]=c[b+(f+24)>>2];l=b+f|0;m=c[b+(f+4)>>2]|0;g=d+e|0;f=b+(f+76)|0;e=c[f>>2]|0;do if((e|0)==-1){o=0;e=qa(192,l|0)|0;r=o;o=0;if(r&1)p=13;else{c[j>>2]=e;o=0;e=Wa(115,j|0,40904)|0;r=o;o=0;if(!(r&1)?(o=0,h=Wa(c[(c[e>>2]|0)+28>>2]|0,e|0,32)|0,r=o,o=0,!(r&1)):0){aI(j);e=h<<24>>24;c[f>>2]=e;p=9;break}e=cc(0)|0;aI(j)}}else p=9;while(0);if((p|0)==9){o=0;c[j>>2]=c[k>>2];e=oa(83,j|0,d|0,((m&176|0)==32?g:d)|0,g|0,l|0,e&255|0)|0;r=o;o=0;if(!(r&1)){if(e)break;r=c[(c[b>>2]|0)+-12>>2]|0;o=0;ma(146,b+r|0,c[b+(r+16)>>2]|5|0);r=o;o=0;if(!(r&1))break;else p=13}else p=13}if((p|0)==13)e=cc(0)|0;KD(n);f=b;g=b;p=15;break a}while(0);KD(n)}while(0);do if((p|0)==15){fc(e|0)|0;o=0;ka(341,f+(c[(c[g>>2]|0)+-12>>2]|0)|0);r=o;o=0;if(!(r&1)){$b();break}e=cc()|0;o=0;ob(44);r=o;o=0;if(r&1){r=cc(0)|0;oq(r)}else bc(e|0)}while(0);i=q;return b|0}function ey(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0;p=i;i=i+16|0;n=p;j=c[b>>2]|0;a:do if(!j)j=0;else{q=d;l=f-q|0;m=g+12|0;k=c[m>>2]|0;l=(k|0)>(l|0)?k-l|0:0;k=e;g=k-q|0;if((g|0)>0?(fd[c[(c[j>>2]|0)+48>>2]&127](j,d,g)|0)!=(g|0):0){c[b>>2]=0;j=0;break}do if((l|0)>0){GC(n,l,h);o=0;g=ya(c[(c[j>>2]|0)+48>>2]|0,j|0,((a[n>>0]&1)==0?n+1|0:c[n+8>>2]|0)|0,l|0)|0;q=o;o=0;if(q&1){q=cc()|0;IC(n);bc(q|0)}if((g|0)==(l|0)){IC(n);break}else{c[b>>2]=0;IC(n);j=0;break a}}while(0);f=f-k|0;if((f|0)>0?(fd[c[(c[j>>2]|0)+48>>2]&127](j,e,f)|0)!=(f|0):0){c[b>>2]=0;j=0;break}c[m>>2]=0}while(0);i=p;return j|0}function fy(a){a=a|0;c[a>>2]=30668;IC(a+8|0);return}function gy(a){a=a|0;c[a>>2]=30668;IC(a+8|0);Uz(a);return}function hy(a){a=a|0;Aq(a);Uz(a);return}function iy(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function jy(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;$q(b,0);b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function ky(a){a=a|0;c[a>>2]=30632;nq(a+12|0);return}function ly(a){a=a|0;c[a>>2]=30632;nq(a+12|0);Uz(a);return}function my(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;j=k;g=c[a+8>>2]|0;h=a+4|0;d=c[h>>2]|0;e=d;if(g-e>>2>>>0<b>>>0){d=c[a>>2]|0;e=(e-d>>2)+b|0;if(e>>>0>1073741823)Qz(a);f=d;d=g-f|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<e>>>0?e:d}else d=1073741823;Yv(j,d,(c[h>>2]|0)-f>>2,a+8|0);h=j+8|0;g=c[h>>2]|0;ZL(g|0,0,b<<2|0)|0;c[h>>2]=g+(b<<2);Zv(a,j);_v(j)}else{ZL(d|0,0,b<<2|0)|0;c[h>>2]=d+(b<<2)}i=k;return}function ny(a){a=a|0;c[a>>2]=30616;ar(a+36|0);ar(a+32|0);br(a+20|0);br(a+8|0);return}function oy(a){a=a|0;ny(a);Uz(a);return}
function MC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=a[b>>0]|0;g=(f&1)==0;if(g)f=(f&255)>>>1;else f=c[b+4>>2]|0;do if(f>>>0>=d>>>0)if(g){a[b+1+d>>0]=0;a[b>>0]=d<<1;break}else{a[(c[b+8>>2]|0)+d>>0]=0;c[b+4>>2]=d;break}else NC(b,d-f|0,e)|0;while(0);return}function NC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if(d){f=a[b>>0]|0;if(!(f&1))g=10;else{f=c[b>>2]|0;g=(f&-2)+-1|0;f=f&255}if(!(f&1))h=(f&255)>>>1;else h=c[b+4>>2]|0;if((g-h|0)>>>0<d>>>0){TC(b,g,d-g+h|0,h,h,0,0);f=a[b>>0]|0}if(!(f&1))g=b+1|0;else g=c[b+8>>2]|0;ZL(g+h|0,e|0,d|0)|0;f=h+d|0;if(!(a[b>>0]&1))a[b>>0]=f<<1;else c[b+4>>2]=f;a[g+f>>0]=0}return b|0}function OC(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;if(d>>>0>4294967279)Pz(b);e=a[b>>0]|0;if(!(e&1))f=10;else{e=c[b>>2]|0;f=(e&-2)+-1|0;e=e&255}if(!(e&1))j=(e&255)>>>1;else j=c[b+4>>2]|0;d=j>>>0>d>>>0?j:d;if(d>>>0<11)i=10;else i=(d+16&-16)+-1|0;a:do if((i|0)!=(f|0)){do if((i|0)!=10){d=i+1|0;if(i>>>0<=f>>>0){o=0;d=qa(111,d|0)|0;h=o;o=0;if(h&1){b=cc(0)|0;fc(b|0)|0;$b();break a}}else d=Sz(d)|0;if(!(e&1)){f=1;g=b+1|0;h=0;break}else{f=1;g=c[b+8>>2]|0;h=1;break}}else{d=b+1|0;f=0;g=c[b+8>>2]|0;h=1}while(0);if(!(e&1))e=(e&255)>>>1;else e=c[b+4>>2]|0;XL(d|0,g|0,e+1|0)|0;if(h)Uz(g);if(f){c[b>>2]=i+1|1;c[b+4>>2]=j;c[b+8>>2]=d;break}else{a[b>>0]=j<<1;break}}while(0);return}function PC(a,b){a=a|0;b=b|0;return RC(a,b,iC(b)|0)|0}function QC(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=a[b>>0]|0;f=(e&1)!=0;if(f){g=(c[b>>2]&-2)+-1|0;h=c[b+4>>2]|0}else{g=10;h=(e&255)>>>1}if((h|0)==(g|0)){TC(b,g,1,g,g,0,0);if(!(a[b>>0]&1))g=7;else g=8}else if(f)g=8;else g=7;if((g|0)==7){a[b>>0]=(h<<1)+2;e=b+1|0;f=h+1|0}else if((g|0)==8){e=c[b+8>>2]|0;f=h+1|0;c[b+4>>2]=f}a[e+h>>0]=d;a[e+f>>0]=0;return}function RC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=a[b>>0]|0;if(!(f&1))g=10;else{f=c[b>>2]|0;g=(f&-2)+-1|0;f=f&255}if(!(f&1))h=(f&255)>>>1;else h=c[b+4>>2]|0;if((g-h|0)>>>0>=e>>>0){if(e){if(!(f&1))g=b+1|0;else g=c[b+8>>2]|0;XL(g+h|0,d|0,e|0)|0;f=h+e|0;if(!(a[b>>0]&1))a[b>>0]=f<<1;else c[b+4>>2]=f;a[g+f>>0]=0}}else SC(b,g,e-g+h|0,h,h,0,e,d);return b|0}function SC(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0;if((-18-d|0)>>>0<e>>>0)Pz(b);if(!(a[b>>0]&1))m=b+1|0;else m=c[b+8>>2]|0;if(d>>>0<2147483623){k=e+d|0;l=d<<1;k=k>>>0<l>>>0?l:k;k=k>>>0<11?11:k+16&-16}else k=-17;l=Sz(k)|0;if(g)XL(l|0,m|0,g|0)|0;if(i)XL(l+g|0,j|0,i|0)|0;e=f-h|0;if((e|0)!=(g|0))XL(l+(i+g)|0,m+(h+g)|0,e-g|0)|0;if((d|0)!=10)Uz(m);c[b+8>>2]=l;c[b>>2]=k|1;d=e+i|0;c[b+4>>2]=d;a[l+d>>0]=0;return}function TC(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;if((-17-d|0)>>>0<e>>>0)Pz(b);if(!(a[b>>0]&1))l=b+1|0;else l=c[b+8>>2]|0;if(d>>>0<2147483623){j=e+d|0;k=d<<1;j=j>>>0<k>>>0?k:j;j=j>>>0<11?11:j+16&-16}else j=-17;k=Sz(j)|0;if(g)XL(k|0,l|0,g|0)|0;e=f-h|0;if((e|0)!=(g|0))XL(k+(i+g)|0,l+(h+g)|0,e-g|0)|0;if((d|0)!=10)Uz(l);c[b+8>>2]=k;c[b>>2]=j|1;return}function UC(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=a[b>>0]|0;h=(g&1)==0;if(h)i=(g&255)>>>1;else i=c[b+4>>2]|0;if(i>>>0<d>>>0)RA(b);if(e){if(h)h=10;else{g=c[b>>2]|0;h=(g&-2)+-1|0;g=g&255}if((h-i|0)>>>0>=e>>>0){if(!(g&1))g=b+1|0;else g=c[b+8>>2]|0;if((i|0)==(d|0))h=g;else{YL(g+(e+d)|0,g+d|0,i-d|0)|0;h=g}}else{TC(b,h,i+e-h|0,i,d,0,e);h=c[b+8>>2]|0}ZL(h+d|0,f|0,e|0)|0;g=i+e|0;if(!(a[b>>0]&1))a[b>>0]=g<<1;else c[b+4>>2]=g;a[h+g>>0]=0}return b|0}function VC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=a[b>>0]|0;f=(g&1)==0;if(f)i=(g&255)>>>1;else i=c[b+4>>2]|0;if(i>>>0<d>>>0)RA(b);if(e){if(f)h=b+1|0;else h=c[b+8>>2]|0;f=i-d|0;e=f>>>0<e>>>0?f:e;if((f|0)!=(e|0)){YL(h+d|0,h+(e+d)|0,f-e|0)|0;g=a[b>>0]|0}f=i-e|0;if(!(g&1))a[b>>0]=f<<1;else c[b+4>>2]=f;a[h+f>>0]=0}return b|0}function WC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=a[b>>0]|0;if(!(f&1)){g=(f&255)>>>1;f=b+1|0}else{g=c[b+4>>2]|0;f=c[b+8>>2]|0}if(g>>>0>e>>>0?(h=aC(f+e|0,d&255,g-e|0)|0,(h|0)!=0):0)f=h-f|0;else f=-1;return f|0}function XC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;if(e>>>0>1073741807)Pz(b);if(e>>>0<2){a[b>>0]=e<<1;b=b+4|0}else{g=e+4&-4;f=Sz(g<<2)|0;c[b+8>>2]=f;c[b>>2]=g|1;c[b+4>>2]=e;b=f}kC(b,d,e)|0;c[b+(e<<2)>>2]=0;return}function YC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;if(d>>>0>1073741807)Pz(b);if(d>>>0<2){a[b>>0]=d<<1;b=b+4|0}else{g=d+4&-4;f=Sz(g<<2)|0;c[b+8>>2]=f;c[b>>2]=g|1;c[b+4>>2]=d;b=f}mC(b,e,d)|0;c[b+(d<<2)>>2]=0;return}function ZC(b){b=b|0;if(a[b>>0]&1)Uz(c[b+8>>2]|0);return}function _C(a,b){a=a|0;b=b|0;return $C(a,b,jC(b)|0)|0}function $C(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=a[b>>0]|0;if(!(f&1))h=1;else{f=c[b>>2]|0;h=(f&-2)+-1|0;f=f&255}g=(f&1)==0;do if(h>>>0>=e>>>0){if(g)f=b+4|0;else f=c[b+8>>2]|0;lC(f,d,e)|0;c[f+(e<<2)>>2]=0;if(!(a[b>>0]&1)){a[b>>0]=e<<1;break}else{c[b+4>>2]=e;break}}else{if(g)f=(f&255)>>>1;else f=c[b+4>>2]|0;cD(b,h,e-h|0,f,0,f,e,d)}while(0);return b|0}function aD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;if(d>>>0>1073741807)Pz(b);e=a[b>>0]|0;if(!(e&1))f=1;else{e=c[b>>2]|0;f=(e&-2)+-1|0;e=e&255}if(!(e&1))j=(e&255)>>>1;else j=c[b+4>>2]|0;d=j>>>0>d>>>0?j:d;if(d>>>0<2)i=1;else i=(d+4&-4)+-1|0;a:do if((i|0)!=(f|0)){do if((i|0)!=1){d=(i<<2)+4|0;if(i>>>0<=f>>>0){o=0;d=qa(111,d|0)|0;h=o;o=0;if(h&1){b=cc(0)|0;fc(b|0)|0;$b();break a}}else d=Sz(d)|0;if(!(e&1)){f=1;g=b+4|0;h=0;break}else{f=1;g=c[b+8>>2]|0;h=1;break}}else{d=b+4|0;f=0;g=c[b+8>>2]|0;h=1}while(0);if(!(e&1))e=(e&255)>>>1;else e=c[b+4>>2]|0;kC(d,g,e+1|0)|0;if(h)Uz(g);if(f){c[b>>2]=i+1|1;c[b+4>>2]=j;c[b+8>>2]=d;break}else{a[b>>0]=j<<1;break}}while(0);return}function bD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=a[b>>0]|0;f=(e&1)!=0;if(f){g=(c[b>>2]&-2)+-1|0;h=c[b+4>>2]|0}else{g=1;h=(e&255)>>>1}if((h|0)==(g|0)){dD(b,g,1,g,g,0,0);if(!(a[b>>0]&1))g=7;else g=8}else if(f)g=8;else g=7;if((g|0)==7){a[b>>0]=(h<<1)+2;e=b+4|0;f=h+1|0}else if((g|0)==8){e=c[b+8>>2]|0;f=h+1|0;c[b+4>>2]=f}c[e+(h<<2)>>2]=d;c[e+(f<<2)>>2]=0;return}function cD(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0;if((1073741806-d|0)>>>0<e>>>0)Pz(b);if(!(a[b>>0]&1))m=b+4|0;else m=c[b+8>>2]|0;if(d>>>0<536870887){k=e+d|0;l=d<<1;k=k>>>0<l>>>0?l:k;k=k>>>0<2?2:k+4&-4}else k=1073741807;l=Sz(k<<2)|0;if(g)kC(l,m,g)|0;if(i)kC(l+(g<<2)|0,j,i)|0;e=f-h|0;if((e|0)!=(g|0))kC(l+(i+g<<2)|0,m+(h+g<<2)|0,e-g|0)|0;if((d|0)!=1)Uz(m);c[b+8>>2]=l;c[b>>2]=k|1;d=e+i|0;c[b+4>>2]=d;c[l+(d<<2)>>2]=0;return}function dD(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;if((1073741807-d|0)>>>0<e>>>0)Pz(b);if(!(a[b>>0]&1))l=b+4|0;else l=c[b+8>>2]|0;if(d>>>0<536870887){j=e+d|0;k=d<<1;j=j>>>0<k>>>0?k:j;j=j>>>0<2?2:j+4&-4}else j=1073741807;k=Sz(j<<2)|0;if(g)kC(k,l,g)|0;e=f-h|0;if((e|0)!=(g|0))kC(k+(i+g<<2)|0,l+(h+g<<2)|0,e-g|0)|0;if((d|0)!=1)Uz(l);c[b+8>>2]=k;c[b>>2]=j|1;return}function eD(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=d;f=e-g|0;if(f>>>0>4294967279)Pz(b);if(f>>>0<11){a[b>>0]=f<<1;h=b+1|0}else{i=f+16&-16;h=Sz(i)|0;c[b+8>>2]=h;c[b>>2]=i|1;c[b+4>>2]=f}b=e-g|0;if((d|0)!=(e|0)){f=h;while(1){a[f>>0]=a[d>>0]|0;d=d+1|0;if((d|0)==(e|0))break;else f=f+1|0}}a[h+b>>0]=0;return}function fD(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;h=d;f=e-h|0;g=f>>2;if(g>>>0>1073741807)Pz(b);if(g>>>0<2){a[b>>0]=f>>>1;b=b+4|0}else{i=g+4&-4;f=Sz(i<<2)|0;c[b+8>>2]=f;c[b>>2]=i|1;c[b+4>>2]=g;b=f}g=(e-h|0)>>>2;if((d|0)!=(e|0)){f=b;while(1){c[f>>2]=c[d>>2];d=d+4|0;if((d|0)==(e|0))break;else f=f+4|0}}c[b+(g<<2)>>2]=0;return}function gD(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d;f=(c[a+24>>2]|0)==0;c[a+16>>2]=f&1|b;if(!((f&1|b)&c[a+20>>2])){i=d;return}b=Ob(16)|0;OD()|0;c[e>>2]=1;c[e+4>>2]=39796;o=0;mb(115,b|0,59796,e|0);f=o;o=0;if(f&1){f=cc()|0;Nb(b|0);bc(f|0)}else Hc(b|0,2080,232)}function hD(a){a=a|0;var b=0;c[a>>2]=39752;o=0;ma(221,a|0,0);b=o;o=0;if(b&1){b=cc(0)|0;oq(b)}else{aI(a+28|0);zC(c[a+32>>2]|0);zC(c[a+36>>2]|0);zC(c[a+48>>2]|0);zC(c[a+60>>2]|0);return}}function iD(a){a=a|0;hD(a);return}function jD(a){a=a|0;hD(a);Uz(a);return}function kD(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=c[a+40>>2]|0;e=a+32|0;f=a+36|0;if(d)do{d=d+-1|0;Ad[c[(c[e>>2]|0)+(d<<2)>>2]&127](b,a,c[(c[f>>2]|0)+(d<<2)>>2]|0)}while((d|0)!=0);return}function lD(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;$H(b,a+28|0);i=d;return c[b>>2]|0}function mD(a,b){a=a|0;b=b|0;var d=0;c[a+24>>2]=b;c[a+16>>2]=(b|0)==0&1;c[a+20>>2]=0;c[a+4>>2]=4098;c[a+12>>2]=0;c[a+8>>2]=6;d=a+28|0;b=a+32|0;a=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(a|0));_H(d);return}function nD(a){a=a|0;c[a>>2]=39668;aI(a+4|0);return}function oD(a){a=a|0;c[a>>2]=39668;aI(a+4|0);Uz(a);return}function pD(a){a=a|0;c[a>>2]=39668;_H(a+4|0);a=a+8|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;return}function qD(a,b){a=a|0;b=b|0;return}function rD(a,b,c){a=a|0;b=b|0;c=c|0;return a|0}function sD(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;b=a;c[b>>2]=0;c[b+4>>2]=0;b=a+8|0;c[b>>2]=-1;c[b+4>>2]=-1;return}function tD(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=a;c[b>>2]=0;c[b+4>>2]=0;b=a+8|0;c[b>>2]=-1;c[b+4>>2]=-1;return}function uD(a){a=a|0;return 0}function vD(a){a=a|0;return 0}function wD(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;h=b+12|0;i=b+16|0;a:do if((e|0)>0){g=d;d=0;while(1){f=c[h>>2]|0;if(f>>>0<(c[i>>2]|0)>>>0){c[h>>2]=f+1;f=a[f>>0]|0}else{f=bd[c[(c[b>>2]|0)+40>>2]&255](b)|0;if((f|0)==-1)break a;f=f&255}a[g>>0]=f;d=d+1|0;if((d|0)<(e|0))g=g+1|0;else break}}else d=0;while(0);return d|0}function xD(a){a=a|0;return -1}function yD(a){a=a|0;var b=0;if((bd[c[(c[a>>2]|0)+36>>2]&255](a)|0)==-1)a=-1;else{b=a+12|0;a=c[b>>2]|0;c[b>>2]=a+1;a=d[a>>0]|0}return a|0}function zD(a,b){a=a|0;b=b|0;return -1}function AD(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;i=b+24|0;j=b+28|0;a:do if((f|0)>0){h=e;e=0;while(1){g=c[i>>2]|0;if(g>>>0>=(c[j>>2]|0)>>>0){if((rd[c[(c[b>>2]|0)+52>>2]&127](b,d[h>>0]|0)|0)==-1)break a}else{k=a[h>>0]|0;c[i>>2]=g+1;a[g>>0]=k}e=e+1|0;if((e|0)<(f|0))h=h+1|0;else break}}else e=0;while(0);return e|0}function BD(a,b){a=a|0;b=b|0;return -1}function CD(b){b=b|0;var d=0,e=0,f=0,g=0;f=i;i=i+16|0;e=f;a:do if(c[b+((c[(c[b>>2]|0)+-12>>2]|0)+24)>>2]|0){o=0;ma(218,e|0,b|0);d=o;o=0;b:do if(d&1)d=cc(0)|0;else{do if(a[e>>0]|0){d=c[b+((c[(c[b>>2]|0)+-12>>2]|0)+24)>>2]|0;o=0;d=qa(c[(c[d>>2]|0)+24>>2]|0,d|0)|0;g=o;o=0;if(!(g&1)){if((d|0)!=-1)break;g=c[(c[b>>2]|0)+-12>>2]|0;o=0;ma(146,b+g|0,c[b+(g+16)>>2]|1|0);g=o;o=0;if(!(g&1))break}d=cc(0)|0;KD(e);break b}while(0);KD(e);break a}while(0);fc(d|0)|0;o=0;ka(341,b+(c[(c[b>>2]|0)+-12>>2]|0)|0);g=o;o=0;if(!(g&1)){$b();break}d=cc()|0;o=0;ob(44);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)}else bc(d|0)}while(0);i=f;return b|0}function DD(a){a=a|0;var b=0;b=a+16|0;c[b>>2]=c[b>>2]|1;if(!(c[a+20>>2]&1))return;else Jc()}function ED(a,b){a=a|0;b=b|0;return}function FD(a){a=a|0;hD(a+4|0);return}function GD(a){a=a|0;hD(a+((c[(c[a>>2]|0)+-12>>2]|0)+4)|0);return}function HD(a){a=a|0;hD(a+4|0);Uz(a);return}function ID(a){a=a|0;HD(a+(c[(c[a>>2]|0)+-12>>2]|0)|0);return}function JD(b,d){b=b|0;d=d|0;var e=0;a[b>>0]=0;c[b+4>>2]=d;e=c[(c[d>>2]|0)+-12>>2]|0;if(!(c[d+(e+16)>>2]|0)){e=c[d+(e+72)>>2]|0;if(e)CD(e)|0;a[b>>0]=1}return}function KD(a){a=a|0;var b=0,d=0;a=a+4|0;d=c[a>>2]|0;b=c[(c[d>>2]|0)+-12>>2]|0;do if((((c[d+(b+24)>>2]|0)!=0?(c[d+(b+16)>>2]|0)==0:0)?(c[d+(b+4)>>2]&8192|0)!=0:0)?!(Pb()|0):0){b=c[a>>2]|0;b=c[b+((c[(c[b>>2]|0)+-12>>2]|0)+24)>>2]|0;o=0;b=qa(c[(c[b>>2]|0)+24>>2]|0,b|0)|0;d=o;o=0;if(!(d&1)){if((b|0)!=-1)break;b=c[a>>2]|0;d=c[(c[b>>2]|0)+-12>>2]|0;o=0;ma(146,b+d|0,c[b+(d+16)>>2]|1|0);d=o;o=0;if(!(d&1))break}d=cc(0)|0;fc(d|0)|0;o=0;ob(44);d=o;o=0;if(d&1){d=cc(0)|0;oq(d)}}while(0);return}function LD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;q=i;i=i+32|0;k=q+20|0;l=q+16|0;n=q+8|0;e=q;o=0;ma(218,n|0,b|0);m=o;o=0;a:do if(m&1){e=cc(0)|0;f=b;g=b;p=19}else{do if(a[n>>0]|0){c[e>>2]=lD(b+(c[(c[b>>2]|0)+-12>>2]|0)|0)|0;o=0;m=Wa(115,e|0,40076)|0;j=o;o=0;if(j&1){p=cc(0)|0;aI(e);e=p}else{aI(e);g=c[(c[b>>2]|0)+-12>>2]|0;j=c[b+(g+24)>>2]|0;f=b+g|0;g=b+(g+76)|0;e=c[g>>2]|0;do if((e|0)==-1){c[k>>2]=lD(f)|0;o=0;e=Wa(115,k|0,40904)|0;r=o;o=0;if(!(r&1)?(o=0,h=Wa(c[(c[e>>2]|0)+28>>2]|0,e|0,32)|0,r=o,o=0,!(r&1)):0){aI(k);e=h<<24>>24;c[g>>2]=e;p=10;break}e=cc(0)|0;aI(k)}else p=10;while(0);if((p|0)==10){r=c[(c[m>>2]|0)+16>>2]|0;c[l>>2]=j;o=0;c[k>>2]=c[l>>2];e=Ya(r|0,m|0,k|0,f|0,e&255|0,d|0)|0;r=o;o=0;if(!(r&1)){if(e)break;r=c[(c[b>>2]|0)+-12>>2]|0;o=0;ma(146,b+r|0,c[b+(r+16)>>2]|5|0);r=o;o=0;if(!(r&1))break}e=cc(0)|0}}KD(n);f=b;g=b;p=19;break a}while(0);KD(n)}while(0);do if((p|0)==19){fc(e|0)|0;o=0;ka(341,f+(c[(c[g>>2]|0)+-12>>2]|0)|0);r=o;o=0;if(!(r&1)){$b();break}e=cc()|0;o=0;ob(44);r=o;o=0;if(r&1){r=cc(0)|0;oq(r)}else bc(e|0)}while(0);i=q;return b|0}function MD(a){a=a|0;return 59812}function ND(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)!=1&(c|0)<257)LL(a,b,c);else FC(a,59821,35);return}function OD(){if((a[2168]|0)==0?(Hb(2168)|0)!=0:0){c[9949]=39768;Ec(236,39796,n|0)|0;Cc(2168)}return 39796}function PD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+8|0;g=e;j=d;h=c[j+4>>2]|0;d=g;c[d>>2]=c[j>>2];c[d+4>>2]=h;c[f>>2]=c[g>>2];c[f+4>>2]=c[g+4>>2];NL(a,f,b);c[a>>2]=39732;i=e;return}function QD(a){a=a|0;OL(a);return}function RD(a){a=a|0;OL(a);Uz(a);return}function SD(a){a=a|0;hD(a);Uz(a);return}function TD(a){a=a|0;Uz(a);return}function UD(a){a=a|0;return}function VD(a){a=a|0;return}function WD(a){a=a|0;Uz(a);return}function XD(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;a:do if((e|0)==(f|0))h=6;else while(1){if((c|0)==(d|0)){c=-1;break a}b=a[c>>0]|0;g=a[e>>0]|0;if(b<<24>>24<g<<24>>24){c=-1;break a}if(g<<24>>24<b<<24>>24){c=1;break a}c=c+1|0;e=e+1|0;if((e|0)==(f|0)){h=6;break}}while(0);if((h|0)==6)c=(c|0)!=(d|0)&1;return c|0}function YD(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;eD(a,c,d);return}function ZD(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)==(d|0))b=0;else{b=0;do{b=(a[c>>0]|0)+(b<<4)|0;e=b&-268435456;b=(e>>>24|e)^b;c=c+1|0}while((c|0)!=(d|0))}return b|0}function _D(a){a=a|0;return}function $D(a){a=a|0;Uz(a);return}function aE(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;a:do if((e|0)==(f|0))h=6;else while(1){if((b|0)==(d|0)){b=-1;break a}a=c[b>>2]|0;g=c[e>>2]|0;if((a|0)<(g|0)){b=-1;break a}if((g|0)<(a|0)){b=1;break a}b=b+4|0;e=e+4|0;if((e|0)==(f|0)){h=6;break}}while(0);if((h|0)==6)b=(b|0)!=(d|0)&1;return b|0}function bE(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;fD(a,c,d);return}function cE(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)==(d|0))a=0;else{a=0;do{a=(c[b>>2]|0)+(a<<4)|0;e=a&-268435456;a=(e>>>24|e)^a;b=b+4|0}while((b|0)!=(d|0))}return a|0}function dE(a){a=a|0;return}function eE(a){a=a|0;Uz(a);return}function fE(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;s=i;i=i+64|0;q=s+56|0;j=s+52|0;n=s+48|0;k=s+44|0;l=s+40|0;m=s+36|0;p=s+32|0;t=s+8|0;r=s;a:do if(!(c[f+4>>2]&1)){c[n>>2]=-1;t=c[(c[b>>2]|0)+16>>2]|0;c[k>>2]=c[d>>2];c[l>>2]=c[e>>2];c[j>>2]=c[k>>2];c[q>>2]=c[l>>2];j=ad[t&127](b,j,q,f,g,n)|0;c[d>>2]=j;switch(c[n>>2]|0){case 0:{a[h>>0]=0;break a}case 1:{a[h>>0]=1;break a}default:{a[h>>0]=1;c[g>>2]=4;break a}}}else{j=lD(f)|0;c[m>>2]=j;o=0;b=Wa(115,m|0,40904)|0;n=o;o=0;do if(!(n&1)){EL(j)|0;j=lD(f)|0;c[p>>2]=j;o=0;l=Wa(115,p|0,41044)|0;p=o;o=0;if(p&1){t=cc()|0;EL(j)|0;j=t;break}EL(j)|0;o=0;ma(c[(c[l>>2]|0)+24>>2]|0,t|0,l|0);p=o;o=0;if(!(p&1)){k=t+12|0;o=0;ma(c[(c[l>>2]|0)+28>>2]|0,k|0,l|0);p=o;o=0;if(!(p&1)){c[r>>2]=c[e>>2];o=0;c[q>>2]=c[r>>2];j=ea(50,d|0,q|0,t|0,t+24|0,b|0,g|0,1)|0;g=o;o=0;if(g&1){j=cc()|0;IC(t+12|0);IC(t);break}else{a[h>>0]=(j|0)==(t|0)&1;j=c[d>>2]|0;IC(t+12|0);IC(t);break a}}}else k=t;j=cc()|0;l=D;if((t|0)!=(k|0))do{k=k+-12|0;IC(k)}while((k|0)!=(t|0))}else{t=cc()|0;EL(j)|0;j=t}while(0);bc(j|0)}while(0);i=s;return j|0}function gE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=UJ(a,k,j,e,f,g)|0;i=h;return a|0}function hE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=VJ(a,k,j,e,f,g)|0;i=h;return a|0}function iE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=WJ(a,k,j,e,f,g)|0;i=h;return a|0}function jE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=XJ(a,k,j,e,f,g)|0;i=h;return a|0}function kE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=YJ(a,k,j,e,f,g)|0;i=h;return a|0}function lE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=ZJ(a,k,j,e,f,g)|0;i=h;return a|0}function mE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=_J(a,k,j,e,f,g)|0;i=h;return a|0}function nE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=$J(a,k,j,e,f,g)|0;i=h;return a|0}function oE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=aK(a,k,j,e,f,g)|0;i=h;return a|0}function pE(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;C=i;i=i+240|0;x=C;s=C+208|0;E=C+32|0;b=C+28|0;D=C+16|0;w=C+12|0;u=C+48|0;v=C+8|0;t=C+4|0;c[E>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;o=0;g=qa(192,g|0)|0;r=o;o=0;do if(r&1)b=cc()|0;else{c[b>>2]=g;o=0;b=Wa(115,b|0,40904)|0;r=o;o=0;if(!(r&1)?(o=0,kb(c[(c[b>>2]|0)+32>>2]|0,b|0,59857,59883,s|0)|0,r=o,o=0,!(r&1)):0){EL(g)|0;c[D>>2]=0;c[D+4>>2]=0;c[D+8>>2]=0;if(!(a[D>>0]&1))b=10;else b=(c[D>>2]&-2)+-1|0;o=0;mb(80,D|0,b|0,0);r=o;o=0;a:do if(!(r&1)){q=D+8|0;r=D+1|0;g=(a[D>>0]&1)==0?r:c[q>>2]|0;c[w>>2]=g;c[v>>2]=u;c[t>>2]=0;p=D+4|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;n=o;o=0;if(n&1){F=29;break}if((k|0)==-1){c[e>>2]=0;b=0}}}else b=0;l=(b|0)==0;k=c[f>>2]|0;do if(k){if((c[k+12>>2]|0)!=(c[k+16>>2]|0))if(l)break;else break b;o=0;m=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;n=o;o=0;if(n&1){F=29;break b}if((m|0)!=-1)if(l)break;else break b;else{c[f>>2]=0;F=19;break}}else F=19;while(0);if((F|0)==19){F=0;if(l){k=0;break}else k=0}l=a[D>>0]|0;l=(l&1)==0?(l&255)>>>1:c[p>>2]|0;if((c[w>>2]|0)==(g+l|0)){o=0;mb(80,D|0,l<<1|0,0);n=o;o=0;if(n&1){F=29;break}if(!(a[D>>0]&1))g=10;else g=(c[D>>2]&-2)+-1|0;o=0;mb(80,D|0,g|0,0);n=o;o=0;if(n&1){F=29;break}g=(a[D>>0]&1)==0?r:c[q>>2]|0;c[w>>2]=g+l}m=b+12|0;l=c[m>>2]|0;n=b+16|0;if((l|0)==(c[n>>2]|0)){o=0;l=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;G=o;o=0;if(G&1){F=29;break}}else l=d[l>>0]|0;if(qE(l&255,16,g,w,t,0,E,u,v,s)|0)break;k=c[m>>2]|0;if((k|0)==(c[n>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;G=o;o=0;if(G&1){F=29;break}else continue}else{c[m>>2]=k+1;continue}}if((F|0)==29){b=cc()|0;break}o=0;mb(80,D|0,(c[w>>2]|0)-g|0,0);G=o;o=0;if((!(G&1)?(y=a[D>>0]|0,z=c[q>>2]|0,o=0,A=gb(45)|0,G=o,o=0,!(G&1)):0)?(o=0,c[x>>2]=j,B=kb(64,((y&1)==0?r:z)|0,A|0,61241,x|0)|0,G=o,o=0,!(G&1)):0){if((B|0)!=1)c[h>>2]=4;if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;G=o;o=0;if(G&1){F=30;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(k){if((c[k+12>>2]|0)==(c[k+16>>2]|0)){o=0;b=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;G=o;o=0;if(G&1){F=30;break a}if((b|0)==-1){c[f>>2]=0;F=55;break}}if(!g)F=56}else F=55;while(0);if((F|0)==55?g:0)F=56;if((F|0)==56)c[h>>2]=c[h>>2]|2;G=c[e>>2]|0;IC(D);IC(E);i=C;return G|0}else F=30}else F=30;while(0);if((F|0)==30)b=cc()|0;IC(D);break}b=cc()|0;EL(g)|0}while(0);IC(E);bc(b|0);return 0}function qE(b,d,e,f,g,h,i,j,k,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0;o=c[f>>2]|0;p=(o|0)==(e|0);do if(p){m=(a[l+24>>0]|0)==b<<24>>24;if(!m?(a[l+25>>0]|0)!=b<<24>>24:0){n=5;break}c[f>>2]=e+1;a[e>>0]=m?43:45;c[g>>2]=0;m=0}else n=5;while(0);a:do if((n|0)==5){n=a[i>>0]|0;if(b<<24>>24==h<<24>>24?(((n&1)==0?(n&255)>>>1:c[i+4>>2]|0)|0)!=0:0){m=c[k>>2]|0;if((m-j|0)>=160){m=0;break}d=c[g>>2]|0;c[k>>2]=m+4;c[m>>2]=d;c[g>>2]=0;m=0;break}i=l+26|0;m=l;while(1){if((a[m>>0]|0)==b<<24>>24)break;m=m+1|0;if((m|0)==(i|0)){m=i;break}}m=m-l|0;if((m|0)>23)m=-1;else{switch(d|0){case 10:case 8:{if((m|0)>=(d|0)){m=-1;break a}break}case 16:{if((m|0)>=22){if(p){m=-1;break a}if((o-e|0)>=3){m=-1;break a}if((a[o+-1>>0]|0)!=48){m=-1;break a}c[g>>2]=0;m=a[59857+m>>0]|0;c[f>>2]=o+1;a[o>>0]=m;m=0;break a}break}default:{}}m=a[59857+m>>0]|0;c[f>>2]=o+1;a[o>>0]=m;c[g>>2]=(c[g>>2]|0)+1;m=0}}while(0);return m|0}function rE(){var b=0,d=0;do if((a[3088]|0)==0?(Hb(3088)|0)!=0:0){o=0;b=ya(121,2147483647,61244,0)|0;d=o;o=0;if(d&1){d=cc()|0;rc(3088);bc(d|0)}else{c[10367]=b;Cc(3088);break}}while(0);return c[10367]|0}function sE(a){a=a|0;return}function tE(a){a=a|0;Uz(a);return}function uE(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;s=i;i=i+64|0;q=s+56|0;j=s+52|0;n=s+48|0;k=s+44|0;l=s+40|0;m=s+36|0;p=s+32|0;t=s+8|0;r=s;a:do if(!(c[f+4>>2]&1)){c[n>>2]=-1;t=c[(c[b>>2]|0)+16>>2]|0;c[k>>2]=c[d>>2];c[l>>2]=c[e>>2];c[j>>2]=c[k>>2];c[q>>2]=c[l>>2];j=ad[t&127](b,j,q,f,g,n)|0;c[d>>2]=j;switch(c[n>>2]|0){case 0:{a[h>>0]=0;break a}case 1:{a[h>>0]=1;break a}default:{a[h>>0]=1;c[g>>2]=4;break a}}}else{j=lD(f)|0;c[m>>2]=j;o=0;b=Wa(115,m|0,40896)|0;n=o;o=0;do if(!(n&1)){EL(j)|0;j=lD(f)|0;c[p>>2]=j;o=0;l=Wa(115,p|0,41052)|0;p=o;o=0;if(p&1){t=cc()|0;EL(j)|0;j=t;break}EL(j)|0;o=0;ma(c[(c[l>>2]|0)+24>>2]|0,t|0,l|0);p=o;o=0;if(!(p&1)){k=t+12|0;o=0;ma(c[(c[l>>2]|0)+28>>2]|0,k|0,l|0);p=o;o=0;if(!(p&1)){c[r>>2]=c[e>>2];o=0;c[q>>2]=c[r>>2];j=ea(51,d|0,q|0,t|0,t+24|0,b|0,g|0,1)|0;g=o;o=0;if(g&1){j=cc()|0;ZC(t+12|0);ZC(t);break}else{a[h>>0]=(j|0)==(t|0)&1;j=c[d>>2]|0;ZC(t+12|0);ZC(t);break a}}}else k=t;j=cc()|0;l=D;if((t|0)!=(k|0))do{k=k+-12|0;ZC(k)}while((k|0)!=(t|0))}else{t=cc()|0;EL(j)|0;j=t}while(0);bc(j|0)}while(0);i=s;return j|0}function vE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=dK(a,k,j,e,f,g)|0;i=h;return a|0}function wE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=eK(a,k,j,e,f,g)|0;i=h;return a|0}function xE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=fK(a,k,j,e,f,g)|0;i=h;return a|0}function yE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=gK(a,k,j,e,f,g)|0;i=h;return a|0}function zE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=hK(a,k,j,e,f,g)|0;i=h;return a|0}function AE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=iK(a,k,j,e,f,g)|0;i=h;return a|0}function BE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=jK(a,k,j,e,f,g)|0;i=h;return a|0}function CE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=kK(a,k,j,e,f,g)|0;i=h;return a|0}function DE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=lK(a,k,j,e,f,g)|0;i=h;return a|0}function EE(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;B=i;i=i+320|0;w=B;r=B+208|0;D=B+32|0;b=B+28|0;C=B+16|0;v=B+12|0;t=B+48|0;u=B+8|0;s=B+4|0;c[D>>2]=0;c[D+4>>2]=0;c[D+8>>2]=0;o=0;f=qa(192,f|0)|0;q=o;o=0;do if(q&1)b=cc()|0;else{c[b>>2]=f;o=0;b=Wa(115,b|0,40896)|0;q=o;o=0;if(!(q&1)?(o=0,kb(c[(c[b>>2]|0)+48>>2]|0,b|0,59857,59883,r|0)|0,q=o,o=0,!(q&1)):0){EL(f)|0;c[C>>2]=0;c[C+4>>2]=0;c[C+8>>2]=0;if(!(a[C>>0]&1))b=10;else b=(c[C>>2]&-2)+-1|0;o=0;mb(80,C|0,b|0,0);q=o;o=0;a:do if(!(q&1)){p=C+8|0;q=C+1|0;b=(a[C>>0]&1)==0?q:c[p>>2]|0;c[v>>2]=b;c[u>>2]=t;c[s>>2]=0;n=C+4|0;j=c[d>>2]|0;b:while(1){if(j){f=c[j+12>>2]|0;if((f|0)==(c[j+16>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;m=o;o=0;if(m&1){E=30;break}}else f=c[f>>2]|0;if((f|0)==-1){c[d>>2]=0;f=0;k=1}else{f=j;k=0}}else{f=0;k=1}l=c[e>>2]|0;do if(l){j=c[l+12>>2]|0;if((j|0)==(c[l+16>>2]|0)){o=0;j=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;m=o;o=0;if(m&1){E=30;break b}}else j=c[j>>2]|0;if((j|0)!=-1)if(k){j=l;break}else{j=l;break b}else{c[e>>2]=0;E=20;break}}else E=20;while(0);if((E|0)==20){E=0;if(k){j=0;break}else j=0}k=a[C>>0]|0;k=(k&1)==0?(k&255)>>>1:c[n>>2]|0;if((c[v>>2]|0)==(b+k|0)){o=0;mb(80,C|0,k<<1|0,0);m=o;o=0;if(m&1){E=30;break}if(!(a[C>>0]&1))b=10;else b=(c[C>>2]&-2)+-1|0;o=0;mb(80,C|0,b|0,0);m=o;o=0;if(m&1){E=30;break}b=(a[C>>0]&1)==0?q:c[p>>2]|0;c[v>>2]=b+k}l=f+12|0;k=c[l>>2]|0;m=f+16|0;if((k|0)==(c[m>>2]|0)){o=0;k=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;F=o;o=0;if(F&1){E=30;break}}else k=c[k>>2]|0;if(FE(k,16,b,v,s,0,D,t,u,r)|0)break;j=c[l>>2]|0;if((j|0)==(c[m>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;F=o;o=0;if(F&1){E=30;break}else{j=f;continue}}else{c[l>>2]=j+4;j=f;continue}}if((E|0)==30){b=cc()|0;break}o=0;mb(80,C|0,(c[v>>2]|0)-b|0,0);F=o;o=0;if((!(F&1)?(x=a[C>>0]|0,y=c[p>>2]|0,o=0,z=gb(45)|0,F=o,o=0,!(F&1)):0)?(o=0,c[w>>2]=h,A=kb(64,((x&1)==0?q:y)|0,z|0,61241,w|0)|0,F=o,o=0,!(F&1)):0){if((A|0)!=1)c[g>>2]=4;if(f){b=c[f+12>>2]|0;if((b|0)==(c[f+16>>2]|0)){o=0;b=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;F=o;o=0;if(F&1){E=31;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(j){b=c[j+12>>2]|0;if((b|0)==(c[j+16>>2]|0)){o=0;b=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;F=o;o=0;if(F&1){E=31;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{E=59;break}else{c[e>>2]=0;E=57;break}}else E=57;while(0);if((E|0)==57?f:0)E=59;if((E|0)==59)c[g>>2]=c[g>>2]|2;F=c[d>>2]|0;IC(C);IC(D);i=B;return F|0}else E=31}else E=31;while(0);if((E|0)==31)b=cc()|0;IC(C);break}b=cc()|0;EL(f)|0}while(0);IC(D);bc(b|0);return 0}function FE(b,d,e,f,g,h,i,j,k,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0;o=c[f>>2]|0;p=(o|0)==(e|0);do if(p){m=(c[l+96>>2]|0)==(b|0);if(!m?(c[l+100>>2]|0)!=(b|0):0){n=5;break}c[f>>2]=e+1;a[e>>0]=m?43:45;c[g>>2]=0;m=0}else n=5;while(0);a:do if((n|0)==5){n=a[i>>0]|0;if((b|0)==(h|0)?(((n&1)==0?(n&255)>>>1:c[i+4>>2]|0)|0)!=0:0){m=c[k>>2]|0;if((m-j|0)>=160){m=0;break}d=c[g>>2]|0;c[k>>2]=m+4;c[m>>2]=d;c[g>>2]=0;m=0;break}i=l+104|0;m=l;while(1){if((c[m>>2]|0)==(b|0))break;m=m+4|0;if((m|0)==(i|0)){m=i;break}}m=m-l|0;i=m>>2;if((m|0)>92)m=-1;else{switch(d|0){case 10:case 8:{if((i|0)>=(d|0)){m=-1;break a}break}case 16:{if((m|0)>=88){if(p){m=-1;break a}if((o-e|0)>=3){m=-1;break a}if((a[o+-1>>0]|0)!=48){m=-1;break a}c[g>>2]=0;m=a[59857+i>>0]|0;c[f>>2]=o+1;a[o>>0]=m;m=0;break a}break}default:{}}m=a[59857+i>>0]|0;c[f>>2]=o+1;a[o>>0]=m;c[g>>2]=(c[g>>2]|0)+1;m=0}}while(0);return m|0}function GE(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;k=l;d=lD(d)|0;c[k>>2]=d;o=0;g=Wa(115,k|0,40904)|0;m=o;o=0;if((((!(m&1)?(o=0,kb(c[(c[g>>2]|0)+32>>2]|0,g|0,59857,59883,e|0)|0,m=o,o=0,!(m&1)):0)?(o=0,j=Wa(115,k|0,41044)|0,m=o,o=0,!(m&1)):0)?(o=0,h=qa(c[(c[j>>2]|0)+16>>2]|0,j|0)|0,m=o,o=0,!(m&1)):0)?(a[f>>0]=h,o=0,ma(c[(c[j>>2]|0)+20>>2]|0,b|0,j|0),m=o,o=0,!(m&1)):0){EL(d)|0;i=l;return}m=cc()|0;EL(d)|0;bc(m|0)}function HE(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i;i=i+16|0;m=n;d=lD(d)|0;c[m>>2]=d;o=0;h=Wa(115,m|0,40904)|0;p=o;o=0;if(((((!(p&1)?(o=0,kb(c[(c[h>>2]|0)+32>>2]|0,h|0,59857,59889,e|0)|0,p=o,o=0,!(p&1)):0)?(o=0,l=Wa(115,m|0,41044)|0,p=o,o=0,!(p&1)):0)?(o=0,j=qa(c[(c[l>>2]|0)+12>>2]|0,l|0)|0,p=o,o=0,!(p&1)):0)?(a[f>>0]=j,o=0,k=qa(c[(c[l>>2]|0)+16>>2]|0,l|0)|0,p=o,o=0,!(p&1)):0)?(a[g>>0]=k,o=0,ma(c[(c[l>>2]|0)+20>>2]|0,b|0,l|0),p=o,o=0,!(p&1)):0){EL(d)|0;i=n;return}p=cc()|0;EL(d)|0;bc(p|0)}function IE(b,e,f,g,h,i,j,k,l,m,n,o){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0;a:do if(b<<24>>24==i<<24>>24)if(a[e>>0]|0){a[e>>0]=0;f=c[h>>2]|0;c[h>>2]=f+1;a[f>>0]=46;f=a[k>>0]|0;if((((f&1)==0?(f&255)>>>1:c[k+4>>2]|0)|0)!=0?(p=c[m>>2]|0,(p-l|0)<160):0){l=c[n>>2]|0;c[m>>2]=p+4;c[p>>2]=l;p=0}else p=0}else p=-1;else{if(b<<24>>24==j<<24>>24?(j=a[k>>0]|0,(((j&1)==0?(j&255)>>>1:c[k+4>>2]|0)|0)!=0):0){if(!(a[e>>0]|0)){p=-1;break}p=c[m>>2]|0;if((p-l|0)>=160){p=0;break}l=c[n>>2]|0;c[m>>2]=p+4;c[p>>2]=l;c[n>>2]=0;p=0;break}i=o+32|0;p=o;while(1){if((a[p>>0]|0)==b<<24>>24)break;p=p+1|0;if((p|0)==(i|0)){p=i;break}}i=p-o|0;if((i|0)>31)p=-1;else{j=a[59857+i>>0]|0;switch(i|0){case 24:case 25:{p=c[h>>2]|0;if((p|0)!=(g|0)?(d[p+-1>>0]&95|0)!=(d[f>>0]&127|0):0){p=-1;break a}c[h>>2]=p+1;a[p>>0]=j;p=0;break a}case 23:case 22:{a[f>>0]=80;p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=j;p=0;break a}default:{p=j&95;if((((p|0)==(a[f>>0]|0)?(a[f>>0]=p|128,(a[e>>0]|0)!=0):0)?(a[e>>0]=0,f=a[k>>0]|0,(((f&1)==0?(f&255)>>>1:c[k+4>>2]|0)|0)!=0):0)?(q=c[m>>2]|0,(q-l|0)<160):0){l=c[n>>2]|0;c[m>>2]=q+4;c[q>>2]=l}m=c[h>>2]|0;c[h>>2]=m+1;a[m>>0]=j;if((i|0)>21){p=0;break a}c[n>>2]=(c[n>>2]|0)+1;p=0;break a}}}}while(0);return p|0}function JE(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;k=i;i=i+16|0;j=k;b=lD(b)|0;c[j>>2]=b;o=0;f=Wa(115,j|0,40896)|0;l=o;o=0;if((((!(l&1)?(o=0,kb(c[(c[f>>2]|0)+48>>2]|0,f|0,59857,59883,d|0)|0,l=o,o=0,!(l&1)):0)?(o=0,h=Wa(115,j|0,41052)|0,l=o,o=0,!(l&1)):0)?(o=0,g=qa(c[(c[h>>2]|0)+16>>2]|0,h|0)|0,l=o,o=0,!(l&1)):0)?(c[e>>2]=g,o=0,ma(c[(c[h>>2]|0)+20>>2]|0,a|0,h|0),l=o,o=0,!(l&1)):0){EL(b)|0;i=k;return}l=cc()|0;EL(b)|0;bc(l|0)}function KE(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+16|0;l=m;b=lD(b)|0;c[l>>2]=b;o=0;g=Wa(115,l|0,40896)|0;n=o;o=0;if(((((!(n&1)?(o=0,kb(c[(c[g>>2]|0)+48>>2]|0,g|0,59857,59889,d|0)|0,n=o,o=0,!(n&1)):0)?(o=0,k=Wa(115,l|0,41052)|0,n=o,o=0,!(n&1)):0)?(o=0,h=qa(c[(c[k>>2]|0)+12>>2]|0,k|0)|0,n=o,o=0,!(n&1)):0)?(c[e>>2]=h,o=0,j=qa(c[(c[k>>2]|0)+16>>2]|0,k|0)|0,n=o,o=0,!(n&1)):0)?(c[f>>2]=j,o=0,ma(c[(c[k>>2]|0)+20>>2]|0,a|0,k|0),n=o,o=0,!(n&1)):0){EL(b)|0;i=m;return}n=cc()|0;EL(b)|0;bc(n|0)}function LE(b,e,f,g,h,i,j,k,l,m,n,o){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0;a:do if((b|0)==(i|0))if(a[e>>0]|0){a[e>>0]=0;f=c[h>>2]|0;c[h>>2]=f+1;a[f>>0]=46;f=a[k>>0]|0;if((((f&1)==0?(f&255)>>>1:c[k+4>>2]|0)|0)!=0?(p=c[m>>2]|0,(p-l|0)<160):0){l=c[n>>2]|0;c[m>>2]=p+4;c[p>>2]=l;p=0}else p=0}else p=-1;else{if((b|0)==(j|0)?(j=a[k>>0]|0,(((j&1)==0?(j&255)>>>1:c[k+4>>2]|0)|0)!=0):0){if(!(a[e>>0]|0)){p=-1;break}p=c[m>>2]|0;if((p-l|0)>=160){p=0;break}l=c[n>>2]|0;c[m>>2]=p+4;c[p>>2]=l;c[n>>2]=0;p=0;break}i=o+128|0;p=o;while(1){if((c[p>>2]|0)==(b|0))break;p=p+4|0;if((p|0)==(i|0)){p=i;break}}i=p-o|0;p=i>>2;if((i|0)<=124){j=a[59857+p>>0]|0;switch(p|0){case 24:case 25:{p=c[h>>2]|0;if((p|0)!=(g|0)?(d[p+-1>>0]&95|0)!=(d[f>>0]&127|0):0){p=-1;break a}c[h>>2]=p+1;a[p>>0]=j;p=0;break a}case 23:case 22:{a[f>>0]=80;break}default:{p=j&95;if((((p|0)==(a[f>>0]|0)?(a[f>>0]=p|128,(a[e>>0]|0)!=0):0)?(a[e>>0]=0,f=a[k>>0]|0,(((f&1)==0?(f&255)>>>1:c[k+4>>2]|0)|0)!=0):0)?(q=c[m>>2]|0,(q-l|0)<160):0){l=c[n>>2]|0;c[m>>2]=q+4;c[q>>2]=l}}}m=c[h>>2]|0;c[h>>2]=m+1;a[m>>0]=j;if((i|0)>84)p=0;else{c[n>>2]=(c[n>>2]|0)+1;p=0}}else p=-1}while(0);return p|0}function ME(a){a=a|0;return}function NE(a){a=a|0;Uz(a);return}function OE(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;h=n+20|0;j=n+16|0;k=n+12|0;m=n;a:do if(!(c[e+4>>2]&1)){m=c[(c[b>>2]|0)+24>>2]|0;c[j>>2]=c[d>>2];c[h>>2]=c[j>>2];h=sd[m&127](b,h,e,f,g&1)|0}else{h=lD(e)|0;c[k>>2]=h;o=0;j=Wa(115,k|0,41044)|0;l=o;o=0;b:do if(l&1){n=cc()|0;EL(h)|0;h=n}else{EL(h)|0;h=c[j>>2]|0;if(g)$c[c[h+24>>2]&511](m,j);else $c[c[h+28>>2]&511](m,j);b=a[m>>0]|0;l=(b&1)==0;h=m+1|0;g=m+8|0;k=l?h:m+1|0;h=l?h:c[m+8>>2]|0;l=m+4|0;e=(b&1)==0;c:do if((h|0)!=((e?k:c[g>>2]|0)+(e?(b&255)>>>1:c[l>>2]|0)|0)){d:while(1){j=a[h>>0]|0;f=c[d>>2]|0;do if(f){e=f+24|0;b=c[e>>2]|0;if((b|0)!=(c[f+28>>2]|0)){c[e>>2]=b+1;a[b>>0]=j;break}o=0;j=Wa(c[(c[f>>2]|0)+52>>2]|0,f|0,j&255|0)|0;b=o;o=0;if(b&1)break d;if((j|0)==-1)c[d>>2]=0}while(0);h=h+1|0;b=a[m>>0]|0;e=(b&1)==0;if((h|0)==((e?k:c[g>>2]|0)+(e?(b&255)>>>1:c[l>>2]|0)|0))break c}h=cc()|0;IC(m);break b}while(0);h=c[d>>2]|0;IC(m);break a}while(0);bc(h|0)}while(0);i=n;return h|0}function PE(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;n=i;i=i+64|0;h=n;q=n+56|0;r=n+44|0;k=n+20|0;m=n+16|0;l=n+12|0;p=n+8|0;j=n+4|0;a[q>>0]=a[61246]|0;a[q+1>>0]=a[61247]|0;a[q+2>>0]=a[61248]|0;a[q+3>>0]=a[61249]|0;a[q+4>>0]=a[61250]|0;a[q+5>>0]=a[61251]|0;QE(q+1|0,61252,1,c[e+4>>2]|0);b=rE()|0;c[h>>2]=g;g=r+(mK(r,12,b,q,h)|0)|0;q=RE(r,g,e)|0;b=lD(e)|0;c[p>>2]=b;o=0;Oa(46,r|0,q|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){r=cc()|0;EL(b)|0;bc(r|0)}else{EL(b)|0;c[j>>2]=c[d>>2];q=c[m>>2]|0;r=c[l>>2]|0;c[h>>2]=c[j>>2];r=ey(h,k,q,r,e,f)|0;i=n;return r|0}return 0}function QE(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if(e&2048){a[b>>0]=43;b=b+1|0}if(e&512){a[b>>0]=35;b=b+1|0}f=a[c>>0]|0;if(f<<24>>24){g=c;while(1){g=g+1|0;c=b+1|0;a[b>>0]=f;f=a[g>>0]|0;if(!(f<<24>>24)){b=c;break}else b=c}}a:do switch(e&74|0){case 64:{a[b>>0]=111;break}case 8:if(!(e&16384)){a[b>>0]=120;break a}else{a[b>>0]=88;break a}default:if(d){a[b>>0]=100;break a}else{a[b>>0]=117;break a}}while(0);return}function RE(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;a:do switch(c[e+4>>2]&176|0){case 16:{e=a[b>>0]|0;switch(e<<24>>24){case 43:case 45:{b=b+1|0;break a}default:{}}if((d-b|0)>1&e<<24>>24==48){switch(a[b+1>>0]|0){case 88:case 120:break;default:{f=7;break a}}b=b+2|0}else f=7;break}case 32:{b=d;break}default:f=7}while(0);return b|0}function SE(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;v=i;i=i+16|0;w=v;t=cI(j,40904)|0;m=cI(j,41044)|0;$c[c[(c[m>>2]|0)+20>>2]&511](w,m);r=a[w>>0]|0;s=w+4|0;a:do if(!(((r&1)==0?(r&255)>>>1:c[s>>2]|0)|0)){o=0;kb(c[(c[t>>2]|0)+32>>2]|0,t|0,b|0,e|0,f|0)|0;u=o;o=0;if(u&1)u=5;else{j=f+(e-b)|0;c[h>>2]=j;u=29}}else{c[h>>2]=f;j=a[b>>0]|0;switch(j<<24>>24){case 43:case 45:{o=0;j=Wa(c[(c[t>>2]|0)+28>>2]|0,t|0,j|0)|0;r=o;o=0;if(r&1){u=5;break a}l=c[h>>2]|0;c[h>>2]=l+1;a[l>>0]=j;l=b+1|0;break}default:l=b}b:do if((e-l|0)>1?(a[l>>0]|0)==48:0){j=l+1|0;switch(a[j>>0]|0){case 88:case 120:break;default:break b}o=0;k=Wa(c[(c[t>>2]|0)+28>>2]|0,t|0,48)|0;r=o;o=0;if(r&1){u=5;break a}r=c[h>>2]|0;c[h>>2]=r+1;a[r>>0]=k;o=0;j=Wa(c[(c[t>>2]|0)+28>>2]|0,t|0,a[j>>0]|0)|0;r=o;o=0;if(r&1){u=5;break a}r=c[h>>2]|0;c[h>>2]=r+1;a[r>>0]=j;l=l+2|0}while(0);if((l|0)!=(e|0)?(n=e+-1|0,l>>>0<n>>>0):0){k=l;j=n;do{r=a[k>>0]|0;a[k>>0]=a[j>>0]|0;a[j>>0]=r;k=k+1|0;j=j+-1|0}while(k>>>0<j>>>0)}o=0;n=qa(c[(c[m>>2]|0)+16>>2]|0,m|0)|0;r=o;o=0;if(!(r&1)){p=w+8|0;q=w+1|0;c:do if(l>>>0<e>>>0){j=0;k=0;r=l;while(1){m=a[((a[w>>0]&1)==0?q:c[p>>2]|0)+k>>0]|0;if(m<<24>>24!=0&(j|0)==(m<<24>>24|0)){j=c[h>>2]|0;c[h>>2]=j+1;a[j>>0]=n;j=a[w>>0]|0;m=0;k=(k>>>0<(((j&1)==0?(j&255)>>>1:c[s>>2]|0)+-1|0)>>>0&1)+k|0}else m=j;o=0;j=Wa(c[(c[t>>2]|0)+28>>2]|0,t|0,a[r>>0]|0)|0;x=o;o=0;if(x&1)break;x=c[h>>2]|0;c[h>>2]=x+1;a[x>>0]=j;r=r+1|0;if(r>>>0>=e>>>0)break c;else j=m+1|0}j=cc()|0;break a}while(0);k=b;j=f+(l-k)|0;b=c[h>>2]|0;if((j|0)==(b|0)){b=k;u=29}else{b=b+-1|0;if(j>>>0<b>>>0)do{x=a[j>>0]|0;a[j>>0]=a[b>>0]|0;a[b>>0]=x;j=j+1|0;b=b+-1|0}while(j>>>0<b>>>0);b=k;j=c[h>>2]|0;u=29}}else u=5}while(0);if((u|0)==5)j=cc()|0;else if((u|0)==29){c[g>>2]=(d|0)==(e|0)?j:f+(d-b)|0;IC(w);i=v;return}IC(w);bc(j|0)}function TE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;n=i;i=i+96|0;h=n+8|0;a=n;q=n+74|0;k=n+32|0;m=n+28|0;l=n+24|0;p=n+20|0;j=n+16|0;r=a;c[r>>2]=37;c[r+4>>2]=0;QE(a+1|0,61254,1,c[d+4>>2]|0);r=rE()|0;s=h;c[s>>2]=f;c[s+4>>2]=g;g=q+(mK(q,22,r,a,h)|0)|0;f=RE(q,g,d)|0;a=lD(d)|0;c[p>>2]=a;o=0;Oa(46,q|0,f|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){s=cc()|0;EL(a)|0;bc(s|0)}else{EL(a)|0;c[j>>2]=c[b>>2];r=c[m>>2]|0;s=c[l>>2]|0;c[h>>2]=c[j>>2];s=ey(h,k,r,s,d,e)|0;i=n;return s|0}return 0}function UE(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;n=i;i=i+64|0;h=n;q=n+56|0;r=n+44|0;k=n+20|0;m=n+16|0;l=n+12|0;p=n+8|0;j=n+4|0;a[q>>0]=a[61246]|0;a[q+1>>0]=a[61247]|0;a[q+2>>0]=a[61248]|0;a[q+3>>0]=a[61249]|0;a[q+4>>0]=a[61250]|0;a[q+5>>0]=a[61251]|0;QE(q+1|0,61252,0,c[e+4>>2]|0);b=rE()|0;c[h>>2]=g;g=r+(mK(r,12,b,q,h)|0)|0;q=RE(r,g,e)|0;b=lD(e)|0;c[p>>2]=b;o=0;Oa(46,r|0,q|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){r=cc()|0;EL(b)|0;bc(r|0)}else{EL(b)|0;c[j>>2]=c[d>>2];q=c[m>>2]|0;r=c[l>>2]|0;c[h>>2]=c[j>>2];r=ey(h,k,q,r,e,f)|0;i=n;return r|0}return 0}function VE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;n=i;i=i+112|0;h=n+8|0;a=n;q=n+75|0;k=n+32|0;m=n+28|0;l=n+24|0;p=n+20|0;j=n+16|0;r=a;c[r>>2]=37;c[r+4>>2]=0;QE(a+1|0,61254,0,c[d+4>>2]|0);r=rE()|0;s=h;c[s>>2]=f;c[s+4>>2]=g;g=q+(mK(q,23,r,a,h)|0)|0;f=RE(q,g,d)|0;a=lD(d)|0;c[p>>2]=a;o=0;Oa(46,q|0,f|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){s=cc()|0;EL(a)|0;bc(s|0)}else{EL(a)|0;c[j>>2]=c[b>>2];r=c[m>>2]|0;s=c[l>>2]|0;c[h>>2]=c[j>>2];s=ey(h,k,r,s,d,e)|0;i=n;return s|0}return 0}function WE(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;var g=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+176|0;u=z+84|0;q=z+48|0;p=z+32|0;l=z+24|0;g=z+8|0;n=z;s=z+88|0;t=z+80|0;k=z+118|0;y=z+76|0;x=z+72|0;v=z+68|0;w=z+64|0;m=n;c[m>>2]=37;c[m+4>>2]=0;m=XE(n+1|0,61257,c[d+4>>2]|0)|0;c[t>>2]=s;a=rE()|0;if(m){c[g>>2]=c[d+8>>2];h[g+8>>3]=f;g=mK(s,30,a,n,g)|0}else{h[l>>3]=f;g=mK(s,30,a,n,l)|0}a:do if((g|0)>29){o=0;a=gb(45)|0;g=o;o=0;g=g&1;if(m){if(!g?(o=0,c[p>>2]=c[d+8>>2],h[p+8>>3]=f,j=kb(65,t|0,a|0,n|0,p|0)|0,r=o,o=0,!(r&1)):0)A=12}else if(!g?(o=0,c[q>>2]=c[d+8>>2],h[q+8>>3]=f,r=kb(65,t|0,a|0,n|0,q|0)|0,q=o,o=0,!(q&1)):0){j=r;A=12}do if((A|0)==12){a=c[t>>2]|0;if(!a){o=0;ob(46);r=o;o=0;if(r&1)break;g=c[t>>2]|0}else g=a;a=g;n=g;A=16;break a}while(0);a=cc()|0}else{a=c[t>>2]|0;n=0;j=g;A=16}while(0);if((A|0)==16){l=a+j|0;m=RE(a,l,d)|0;do if((a|0)==(s|0)){a=s;g=0;A=22}else{j=yC(j<<1)|0;if(!j){o=0;ob(46);A=o;o=0;if(A&1){g=0;A=20;break}a=c[t>>2]|0}g=j;k=j;A=22}while(0);do if((A|0)==22){o=0;j=qa(192,d|0)|0;t=o;o=0;if(!(t&1)){c[v>>2]=j;o=0;Oa(47,a|0,m|0,l|0,k|0,y|0,x|0,v|0);v=o;o=0;if(v&1){a=cc()|0;EL(j)|0;break}EL(j)|0;c[w>>2]=c[b>>2];A=c[y>>2]|0;a=c[x>>2]|0;o=0;c[u>>2]=c[w>>2];a=oa(83,u|0,k|0,A|0,a|0,d|0,e|0)|0;A=o;o=0;if(!(A&1)){c[b>>2]=a;if(g)zC(g);if(n)zC(n);i=z;return a|0}else A=20}else A=20}while(0);if((A|0)==20)a=cc()|0;if(g)zC(g);if(n)zC(n)}bc(a|0);return 0}function XE(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;if(d&2048){a[b>>0]=43;b=b+1|0}if(d&1024){a[b>>0]=35;b=b+1|0}h=d&260;f=d>>>14;i=(h|0)==260;if(i)g=0;else{a[b>>0]=46;a[b+1>>0]=42;b=b+2|0;g=1}d=a[c>>0]|0;if(d<<24>>24){e=b;while(1){c=c+1|0;b=e+1|0;a[e>>0]=d;d=a[c>>0]|0;if(!(d<<24>>24))break;else e=b}}a:do switch(h|0){case 4:if(!(f&1)){a[b>>0]=102;break a}else{a[b>>0]=70;break a}case 256:if(!(f&1)){a[b>>0]=101;break a}else{a[b>>0]=69;break a}default:{d=(f&1|0)!=0;if(i)if(d){a[b>>0]=65;break a}else{a[b>>0]=97;break a}else if(d){a[b>>0]=71;break a}else{a[b>>0]=103;break a}}}while(0);return g|0}function YE(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;z=i;i=i+16|0;A=z;y=cI(j,40904)|0;w=cI(j,41044)|0;$c[c[(c[w>>2]|0)+20>>2]&511](A,w);c[h>>2]=f;j=a[b>>0]|0;switch(j<<24>>24){case 43:case 45:{o=0;j=Wa(c[(c[y>>2]|0)+28>>2]|0,y|0,j|0)|0;x=o;o=0;if(x&1)v=8;else{n=c[h>>2]|0;c[h>>2]=n+1;a[n>>0]=j;n=b+1|0;v=10}break}default:{n=b;v=10}}a:do if((v|0)==10){x=e;b:do if((x-n|0)>1?(a[n>>0]|0)==48:0){l=n+1|0;switch(a[l>>0]|0){case 88:case 120:break;default:{v=11;break b}}o=0;j=Wa(c[(c[y>>2]|0)+28>>2]|0,y|0,48)|0;u=o;o=0;if(u&1){v=8;break a}u=c[h>>2]|0;c[h>>2]=u+1;a[u>>0]=j;n=n+2|0;o=0;j=Wa(c[(c[y>>2]|0)+28>>2]|0,y|0,a[l>>0]|0)|0;u=o;o=0;if(u&1){v=8;break a}u=c[h>>2]|0;c[h>>2]=u+1;a[u>>0]=j;if(n>>>0<e>>>0){j=n;while(1){l=a[j>>0]|0;o=0;m=gb(45)|0;u=o;o=0;if(u&1)break;o=0;l=Wa(116,l<<24>>24|0,m|0)|0;u=o;o=0;if(u&1)break;if(!l){u=n;break b}j=j+1|0;if(j>>>0>=e>>>0){u=n;break b}}j=cc()|0;break a}else{u=n;j=n}}else v=11;while(0);c:do if((v|0)==11)if(n>>>0<e>>>0){j=n;while(1){l=a[j>>0]|0;o=0;m=gb(45)|0;u=o;o=0;if(u&1)break;o=0;l=Wa(117,l<<24>>24|0,m|0)|0;u=o;o=0;if(u&1)break;if(!l){u=n;break c}j=j+1|0;if(j>>>0>=e>>>0){u=n;break c}}j=cc()|0;break a}else{u=n;j=n}while(0);s=a[A>>0]|0;t=A+4|0;if(((s&1)==0?(s&255)>>>1:c[t>>2]|0)|0){if((u|0)!=(j|0)?(p=j+-1|0,u>>>0<p>>>0):0){m=u;l=p;do{s=a[m>>0]|0;a[m>>0]=a[l>>0]|0;a[l>>0]=s;m=m+1|0;l=l+-1|0}while(m>>>0<l>>>0)}o=0;p=qa(c[(c[w>>2]|0)+16>>2]|0,w|0)|0;s=o;o=0;if(s&1){v=8;break}q=A+8|0;r=A+1|0;d:do if(u>>>0<j>>>0){l=0;m=0;s=u;while(1){n=a[((a[A>>0]&1)==0?r:c[q>>2]|0)+m>>0]|0;if(n<<24>>24>0&(l|0)==(n<<24>>24|0)){l=c[h>>2]|0;c[h>>2]=l+1;a[l>>0]=p;l=a[A>>0]|0;n=0;m=(m>>>0<(((l&1)==0?(l&255)>>>1:c[t>>2]|0)+-1|0)>>>0&1)+m|0}else n=l;o=0;l=Wa(c[(c[y>>2]|0)+28>>2]|0,y|0,a[s>>0]|0)|0;B=o;o=0;if(B&1)break;B=c[h>>2]|0;c[h>>2]=B+1;a[B>>0]=l;s=s+1|0;if(s>>>0>=j>>>0)break d;else l=n+1|0}j=cc()|0;break a}while(0);l=f+(u-b)|0;m=c[h>>2]|0;if((l|0)!=(m|0)?(k=m+-1|0,l>>>0<k>>>0):0){do{B=a[l>>0]|0;a[l>>0]=a[k>>0]|0;a[k>>0]=B;l=l+1|0;k=k+-1|0}while(l>>>0<k>>>0);l=y}else l=y}else{o=0;kb(c[(c[y>>2]|0)+32>>2]|0,y|0,u|0,j|0,c[h>>2]|0)|0;B=o;o=0;if(B&1){v=8;break}c[h>>2]=(c[h>>2]|0)+(j-u);l=y}e:do if(j>>>0<e>>>0){while(1){k=a[j>>0]|0;if(k<<24>>24==46)break;o=0;k=Wa(c[(c[l>>2]|0)+28>>2]|0,y|0,k|0)|0;B=o;o=0;if(B&1){v=4;break}B=c[h>>2]|0;c[h>>2]=B+1;a[B>>0]=k;j=j+1|0;if(j>>>0>=e>>>0)break e}if((v|0)==4){j=cc()|0;break a}o=0;k=qa(c[(c[w>>2]|0)+12>>2]|0,w|0)|0;B=o;o=0;if(B&1){v=8;break a}B=c[h>>2]|0;c[h>>2]=B+1;a[B>>0]=k;j=j+1|0}while(0);o=0;kb(c[(c[y>>2]|0)+32>>2]|0,y|0,j|0,e|0,c[h>>2]|0)|0;B=o;o=0;if(B&1)v=8;else{B=(c[h>>2]|0)+(x-j)|0;c[h>>2]=B;c[g>>2]=(d|0)==(e|0)?B:f+(d-b)|0;IC(A);i=z;return}}while(0);if((v|0)==8)j=cc()|0;IC(A);bc(j|0)}function ZE(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;var g=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+176|0;u=z+76|0;q=z+48|0;p=z+32|0;l=z+24|0;g=z+8|0;n=z;s=z+80|0;t=z+72|0;k=z+110|0;y=z+68|0;x=z+64|0;v=z+60|0;w=z+56|0;m=n;c[m>>2]=37;c[m+4>>2]=0;m=XE(n+1|0,61258,c[d+4>>2]|0)|0;c[t>>2]=s;a=rE()|0;if(m){c[g>>2]=c[d+8>>2];h[g+8>>3]=f;g=mK(s,30,a,n,g)|0}else{h[l>>3]=f;g=mK(s,30,a,n,l)|0}a:do if((g|0)>29){o=0;a=gb(45)|0;g=o;o=0;g=g&1;if(m){if(!g?(o=0,c[p>>2]=c[d+8>>2],h[p+8>>3]=f,j=kb(65,t|0,a|0,n|0,p|0)|0,r=o,o=0,!(r&1)):0)A=12}else if(!g?(o=0,h[q>>3]=f,r=kb(65,t|0,a|0,n|0,q|0)|0,q=o,o=0,!(q&1)):0){j=r;A=12}do if((A|0)==12){a=c[t>>2]|0;if(!a){o=0;ob(46);r=o;o=0;if(r&1)break;g=c[t>>2]|0}else g=a;a=g;n=g;A=16;break a}while(0);a=cc()|0}else{a=c[t>>2]|0;n=0;j=g;A=16}while(0);if((A|0)==16){l=a+j|0;m=RE(a,l,d)|0;do if((a|0)==(s|0)){a=s;g=0;A=22}else{j=yC(j<<1)|0;if(!j){o=0;ob(46);A=o;o=0;if(A&1){g=0;A=20;break}a=c[t>>2]|0}g=j;k=j;A=22}while(0);do if((A|0)==22){o=0;j=qa(192,d|0)|0;t=o;o=0;if(!(t&1)){c[v>>2]=j;o=0;Oa(47,a|0,m|0,l|0,k|0,y|0,x|0,v|0);v=o;o=0;if(v&1){a=cc()|0;EL(j)|0;break}EL(j)|0;c[w>>2]=c[b>>2];A=c[y>>2]|0;a=c[x>>2]|0;o=0;c[u>>2]=c[w>>2];a=oa(83,u|0,k|0,A|0,a|0,d|0,e|0)|0;A=o;o=0;if(!(A&1)){c[b>>2]=a;if(g)zC(g);if(n)zC(n);i=z;return a|0}else A=20}else A=20}while(0);if((A|0)==20)a=cc()|0;if(g)zC(g);if(n)zC(n)}bc(a|0);return 0}function _E(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;q=i;i=i+80|0;l=q;b=q+70|0;n=q+12|0;p=q+32|0;k=q+8|0;m=q+4|0;a[b>>0]=a[61260]|0;a[b+1>>0]=a[61261]|0;a[b+2>>0]=a[61262]|0;a[b+3>>0]=a[61263]|0;a[b+4>>0]=a[61264]|0;a[b+5>>0]=a[61265]|0;h=rE()|0;c[l>>2]=g;b=mK(n,20,h,b,l)|0;g=n+b|0;h=RE(n,g,e)|0;j=lD(e)|0;c[k>>2]=j;o=0;k=Wa(115,k|0,40904)|0;r=o;o=0;if(r&1){r=cc()|0;EL(j)|0;bc(r|0)}else{EL(j)|0;zd[c[(c[k>>2]|0)+32>>2]&127](k,n,g,p)|0;r=p+b|0;c[m>>2]=c[d>>2];c[l>>2]=c[m>>2];r=ey(l,p,(h|0)==(g|0)?r:p+(h-n)|0,r,e,f)|0;i=q;return r|0}return 0}function $E(a){a=a|0;return}function aF(a){a=a|0;Uz(a);return}function bF(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;m=i;i=i+32|0;h=m+20|0;j=m+16|0;k=m+12|0;l=m;a:do if(!(c[e+4>>2]&1)){l=c[(c[b>>2]|0)+24>>2]|0;c[j>>2]=c[d>>2];c[h>>2]=c[j>>2];h=sd[l&127](b,h,e,f,g&1)|0}else{h=lD(e)|0;c[k>>2]=h;o=0;j=Wa(115,k|0,41052)|0;k=o;o=0;b:do if(k&1){m=cc()|0;EL(h)|0;h=m}else{EL(h)|0;h=c[j>>2]|0;if(g)$c[c[h+24>>2]&511](l,j);else $c[c[h+28>>2]&511](l,j);b=a[l>>0]|0;e=(b&1)==0;h=l+4|0;g=l+8|0;k=e?h:l+4|0;h=e?h:c[l+8>>2]|0;e=(b&1)==0;c:do if((h|0)!=((e?k:c[g>>2]|0)+((e?(b&255)>>>1:c[k>>2]|0)<<2)|0)){while(1){j=c[h>>2]|0;f=c[d>>2]|0;if(f){e=f+24|0;b=c[e>>2]|0;if((b|0)==(c[f+28>>2]|0)){o=0;j=Wa(c[(c[f>>2]|0)+52>>2]|0,f|0,j|0)|0;b=o;o=0;if(b&1)break}else{c[e>>2]=b+4;c[b>>2]=j}if((j|0)==-1)c[d>>2]=0}h=h+4|0;b=a[l>>0]|0;e=(b&1)==0;if((h|0)==((e?k:c[g>>2]|0)+((e?(b&255)>>>1:c[k>>2]|0)<<2)|0))break c}h=cc()|0;ZC(l);break b}while(0);h=c[d>>2]|0;ZC(l);break a}while(0);bc(h|0)}while(0);i=m;return h|0}function cF(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;n=i;i=i+128|0;h=n;q=n+116|0;r=n+104|0;k=n+20|0;m=n+16|0;l=n+12|0;p=n+8|0;j=n+4|0;a[q>>0]=a[61246]|0;a[q+1>>0]=a[61247]|0;a[q+2>>0]=a[61248]|0;a[q+3>>0]=a[61249]|0;a[q+4>>0]=a[61250]|0;a[q+5>>0]=a[61251]|0;QE(q+1|0,61252,1,c[e+4>>2]|0);b=rE()|0;c[h>>2]=g;g=r+(mK(r,12,b,q,h)|0)|0;q=RE(r,g,e)|0;b=lD(e)|0;c[p>>2]=b;o=0;Oa(48,r|0,q|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){r=cc()|0;EL(b)|0;bc(r|0)}else{EL(b)|0;c[j>>2]=c[d>>2];q=c[m>>2]|0;r=c[l>>2]|0;c[h>>2]=c[j>>2];r=oK(h,k,q,r,e,f)|0;i=n;return r|0}return 0}function dF(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;v=i;i=i+16|0;w=v;t=cI(j,40896)|0;m=cI(j,41052)|0;$c[c[(c[m>>2]|0)+20>>2]&511](w,m);r=a[w>>0]|0;s=w+4|0;a:do if(!(((r&1)==0?(r&255)>>>1:c[s>>2]|0)|0)){o=0;kb(c[(c[t>>2]|0)+48>>2]|0,t|0,b|0,e|0,f|0)|0;u=o;o=0;if(u&1)u=5;else{j=f+(e-b<<2)|0;c[h>>2]=j;u=28}}else{c[h>>2]=f;j=a[b>>0]|0;switch(j<<24>>24){case 43:case 45:{o=0;j=Wa(c[(c[t>>2]|0)+44>>2]|0,t|0,j|0)|0;r=o;o=0;if(r&1){u=5;break a}l=c[h>>2]|0;c[h>>2]=l+4;c[l>>2]=j;l=b+1|0;break}default:l=b}b:do if((e-l|0)>1?(a[l>>0]|0)==48:0){j=l+1|0;switch(a[j>>0]|0){case 88:case 120:break;default:{r=l;break b}}o=0;k=Wa(c[(c[t>>2]|0)+44>>2]|0,t|0,48)|0;r=o;o=0;if(r&1){u=5;break a}r=c[h>>2]|0;c[h>>2]=r+4;c[r>>2]=k;o=0;j=Wa(c[(c[t>>2]|0)+44>>2]|0,t|0,a[j>>0]|0)|0;r=o;o=0;if(r&1){u=5;break a}r=c[h>>2]|0;c[h>>2]=r+4;c[r>>2]=j;r=l+2|0}else r=l;while(0);if((r|0)!=(e|0)?(n=e+-1|0,r>>>0<n>>>0):0){k=r;j=n;do{q=a[k>>0]|0;a[k>>0]=a[j>>0]|0;a[j>>0]=q;k=k+1|0;j=j+-1|0}while(k>>>0<j>>>0)}o=0;m=qa(c[(c[m>>2]|0)+16>>2]|0,m|0)|0;q=o;o=0;if(!(q&1)){n=w+8|0;p=w+1|0;c:do if(r>>>0<e>>>0){j=0;k=0;q=r;while(1){l=a[((a[w>>0]&1)==0?p:c[n>>2]|0)+k>>0]|0;if(l<<24>>24!=0&(j|0)==(l<<24>>24|0)){j=c[h>>2]|0;c[h>>2]=j+4;c[j>>2]=m;j=a[w>>0]|0;l=0;k=(k>>>0<(((j&1)==0?(j&255)>>>1:c[s>>2]|0)+-1|0)>>>0&1)+k|0}else l=j;o=0;j=Wa(c[(c[t>>2]|0)+44>>2]|0,t|0,a[q>>0]|0)|0;x=o;o=0;if(x&1)break;x=c[h>>2]|0;c[h>>2]=x+4;c[x>>2]=j;q=q+1|0;if(q>>>0>=e>>>0)break c;else j=l+1|0}j=cc()|0;break a}while(0);l=b;j=f+(r-l<<2)|0;k=c[h>>2]|0;if((j|0)!=(k|0)){b=k+-4|0;if(j>>>0<b>>>0){do{x=c[j>>2]|0;c[j>>2]=c[b>>2];c[b>>2]=x;j=j+4|0;b=b+-4|0}while(j>>>0<b>>>0);b=l;j=k;u=28}else{b=l;j=k;u=28}}else{b=l;u=28}}else u=5}while(0);if((u|0)==5)j=cc()|0;else if((u|0)==28){c[g>>2]=(d|0)==(e|0)?j:f+(d-b<<2)|0;IC(w);i=v;return}IC(w);bc(j|0)}function eF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;n=i;i=i+224|0;h=n+8|0;a=n;q=n+196|0;k=n+32|0;m=n+28|0;l=n+24|0;p=n+20|0;j=n+16|0;r=a;c[r>>2]=37;c[r+4>>2]=0;QE(a+1|0,61254,1,c[d+4>>2]|0);r=rE()|0;s=h;c[s>>2]=f;c[s+4>>2]=g;g=q+(mK(q,22,r,a,h)|0)|0;f=RE(q,g,d)|0;a=lD(d)|0;c[p>>2]=a;o=0;Oa(48,q|0,f|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){s=cc()|0;EL(a)|0;bc(s|0)}else{EL(a)|0;c[j>>2]=c[b>>2];r=c[m>>2]|0;s=c[l>>2]|0;c[h>>2]=c[j>>2];s=oK(h,k,r,s,d,e)|0;i=n;return s|0}return 0}function fF(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;n=i;i=i+128|0;h=n;q=n+116|0;r=n+104|0;k=n+20|0;m=n+16|0;l=n+12|0;p=n+8|0;j=n+4|0;a[q>>0]=a[61246]|0;a[q+1>>0]=a[61247]|0;a[q+2>>0]=a[61248]|0;a[q+3>>0]=a[61249]|0;a[q+4>>0]=a[61250]|0;a[q+5>>0]=a[61251]|0;QE(q+1|0,61252,0,c[e+4>>2]|0);b=rE()|0;c[h>>2]=g;g=r+(mK(r,12,b,q,h)|0)|0;q=RE(r,g,e)|0;b=lD(e)|0;c[p>>2]=b;o=0;Oa(48,r|0,q|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){r=cc()|0;EL(b)|0;bc(r|0)}else{EL(b)|0;c[j>>2]=c[d>>2];q=c[m>>2]|0;r=c[l>>2]|0;c[h>>2]=c[j>>2];r=oK(h,k,q,r,e,f)|0;i=n;return r|0}return 0}function gF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;n=i;i=i+240|0;h=n+8|0;a=n;q=n+204|0;k=n+32|0;m=n+28|0;l=n+24|0;p=n+20|0;j=n+16|0;r=a;c[r>>2]=37;c[r+4>>2]=0;QE(a+1|0,61254,0,c[d+4>>2]|0);r=rE()|0;s=h;c[s>>2]=f;c[s+4>>2]=g;g=q+(mK(q,23,r,a,h)|0)|0;f=RE(q,g,d)|0;a=lD(d)|0;c[p>>2]=a;o=0;Oa(48,q|0,f|0,g|0,k|0,m|0,l|0,p|0);g=o;o=0;if(g&1){s=cc()|0;EL(a)|0;bc(s|0)}else{EL(a)|0;c[j>>2]=c[b>>2];r=c[m>>2]|0;s=c[l>>2]|0;c[h>>2]=c[j>>2];s=oK(h,k,r,s,d,e)|0;i=n;return s|0}return 0}function hF(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;var g=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+352|0;u=z+312|0;q=z+48|0;p=z+32|0;l=z+24|0;g=z+8|0;n=z;s=z+316|0;t=z+80|0;k=z+84|0;y=z+76|0;x=z+72|0;v=z+68|0;w=z+64|0;m=n;c[m>>2]=37;c[m+4>>2]=0;m=XE(n+1|0,61257,c[d+4>>2]|0)|0;c[t>>2]=s;a=rE()|0;if(m){c[g>>2]=c[d+8>>2];h[g+8>>3]=f;g=mK(s,30,a,n,g)|0}else{h[l>>3]=f;g=mK(s,30,a,n,l)|0}a:do if((g|0)>29){o=0;a=gb(45)|0;g=o;o=0;g=g&1;if(m){if(!g?(o=0,c[p>>2]=c[d+8>>2],h[p+8>>3]=f,j=kb(65,t|0,a|0,n|0,p|0)|0,r=o,o=0,!(r&1)):0)A=12}else if(!g?(o=0,c[q>>2]=c[d+8>>2],h[q+8>>3]=f,r=kb(65,t|0,a|0,n|0,q|0)|0,q=o,o=0,!(q&1)):0){j=r;A=12}do if((A|0)==12){a=c[t>>2]|0;if(!a){o=0;ob(46);r=o;o=0;if(r&1)break;g=c[t>>2]|0}else g=a;a=g;n=g;A=16;break a}while(0);a=cc()|0}else{a=c[t>>2]|0;n=0;j=g;A=16}while(0);if((A|0)==16){l=a+j|0;m=RE(a,l,d)|0;do if((a|0)==(s|0)){a=s;g=0;A=22}else{j=yC(j<<3)|0;if(!j){o=0;ob(46);A=o;o=0;if(A&1){g=0;A=20;break}a=c[t>>2]|0}g=j;k=j;A=22}while(0);do if((A|0)==22){o=0;j=qa(192,d|0)|0;t=o;o=0;if(!(t&1)){c[v>>2]=j;o=0;Oa(49,a|0,m|0,l|0,k|0,y|0,x|0,v|0);v=o;o=0;if(v&1){a=cc()|0;EL(j)|0;break}EL(j)|0;c[w>>2]=c[b>>2];A=c[y>>2]|0;a=c[x>>2]|0;o=0;c[u>>2]=c[w>>2];a=oa(84,u|0,k|0,A|0,a|0,d|0,e|0)|0;A=o;o=0;if(!(A&1)){c[b>>2]=a;if(g)zC(g);if(n)zC(n);i=z;return a|0}else A=20}else A=20}while(0);if((A|0)==20)a=cc()|0;if(g)zC(g);if(n)zC(n)}bc(a|0);return 0}function iF(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;y=i;i=i+16|0;z=y;x=cI(j,40896)|0;v=cI(j,41052)|0;$c[c[(c[v>>2]|0)+20>>2]&511](z,v);c[h>>2]=f;j=a[b>>0]|0;switch(j<<24>>24){case 43:case 45:{o=0;j=Wa(c[(c[x>>2]|0)+44>>2]|0,x|0,j|0)|0;w=o;o=0;if(w&1)u=8;else{m=c[h>>2]|0;c[h>>2]=m+4;c[m>>2]=j;m=b+1|0;u=10}break}default:{m=b;u=10}}a:do if((u|0)==10){w=e;b:do if((w-m|0)>1?(a[m>>0]|0)==48:0){k=m+1|0;switch(a[k>>0]|0){case 88:case 120:break;default:{u=11;break b}}o=0;j=Wa(c[(c[x>>2]|0)+44>>2]|0,x|0,48)|0;t=o;o=0;if(t&1){u=8;break a}t=c[h>>2]|0;c[h>>2]=t+4;c[t>>2]=j;m=m+2|0;o=0;j=Wa(c[(c[x>>2]|0)+44>>2]|0,x|0,a[k>>0]|0)|0;t=o;o=0;if(t&1){u=8;break a}t=c[h>>2]|0;c[h>>2]=t+4;c[t>>2]=j;if(m>>>0<e>>>0){j=m;while(1){k=a[j>>0]|0;o=0;l=gb(45)|0;t=o;o=0;if(t&1)break;o=0;k=Wa(116,k<<24>>24|0,l|0)|0;t=o;o=0;if(t&1)break;if(!k){t=m;break b}j=j+1|0;if(j>>>0>=e>>>0){t=m;break b}}j=cc()|0;break a}else{t=m;j=m}}else u=11;while(0);c:do if((u|0)==11)if(m>>>0<e>>>0){j=m;while(1){k=a[j>>0]|0;o=0;l=gb(45)|0;t=o;o=0;if(t&1)break;o=0;k=Wa(117,k<<24>>24|0,l|0)|0;t=o;o=0;if(t&1)break;if(!k){t=m;break c}j=j+1|0;if(j>>>0>=e>>>0){t=m;break c}}j=cc()|0;break a}else{t=m;j=m}while(0);r=a[z>>0]|0;s=z+4|0;if(((r&1)==0?(r&255)>>>1:c[s>>2]|0)|0){if((t|0)!=(j|0)?(n=j+-1|0,t>>>0<n>>>0):0){l=t;k=n;do{r=a[l>>0]|0;a[l>>0]=a[k>>0]|0;a[k>>0]=r;l=l+1|0;k=k+-1|0}while(l>>>0<k>>>0)}o=0;n=qa(c[(c[v>>2]|0)+16>>2]|0,v|0)|0;r=o;o=0;if(r&1){u=8;break}p=z+8|0;q=z+1|0;d:do if(t>>>0<j>>>0){k=0;l=0;r=t;while(1){m=a[((a[z>>0]&1)==0?q:c[p>>2]|0)+l>>0]|0;if(m<<24>>24>0&(k|0)==(m<<24>>24|0)){k=c[h>>2]|0;c[h>>2]=k+4;c[k>>2]=n;k=a[z>>0]|0;m=0;l=(l>>>0<(((k&1)==0?(k&255)>>>1:c[s>>2]|0)+-1|0)>>>0&1)+l|0}else m=k;o=0;k=Wa(c[(c[x>>2]|0)+44>>2]|0,x|0,a[r>>0]|0)|0;A=o;o=0;if(A&1)break;A=c[h>>2]|0;c[h>>2]=A+4;c[A>>2]=k;r=r+1|0;if(r>>>0>=j>>>0)break d;else k=m+1|0}j=cc()|0;break a}while(0);k=f+(t-b<<2)|0;m=c[h>>2]|0;if((k|0)!=(m|0)){l=m+-4|0;if(k>>>0<l>>>0){do{A=c[k>>2]|0;c[k>>2]=c[l>>2];c[l>>2]=A;k=k+4|0;l=l+-4|0}while(k>>>0<l>>>0);n=x;k=m}else{n=x;k=m}}else n=x}else{o=0;kb(c[(c[x>>2]|0)+48>>2]|0,x|0,t|0,j|0,c[h>>2]|0)|0;A=o;o=0;if(A&1){u=8;break}k=(c[h>>2]|0)+(j-t<<2)|0;c[h>>2]=k;n=x}e:do if(j>>>0<e>>>0){while(1){k=a[j>>0]|0;if(k<<24>>24==46){l=j;break}o=0;l=Wa(c[(c[n>>2]|0)+44>>2]|0,x|0,k|0)|0;A=o;o=0;if(A&1){u=4;break}A=c[h>>2]|0;k=A+4|0;c[h>>2]=k;c[A>>2]=l;j=j+1|0;if(j>>>0>=e>>>0)break e}if((u|0)==4){j=cc()|0;break a}o=0;j=qa(c[(c[v>>2]|0)+12>>2]|0,v|0)|0;A=o;o=0;if(A&1){u=8;break a}A=c[h>>2]|0;k=A+4|0;c[h>>2]=k;c[A>>2]=j;j=l+1|0}while(0);o=0;kb(c[(c[x>>2]|0)+48>>2]|0,x|0,j|0,e|0,k|0)|0;A=o;o=0;if(A&1)u=8;else{A=(c[h>>2]|0)+(w-j<<2)|0;c[h>>2]=A;c[g>>2]=(d|0)==(e|0)?A:f+(d-b<<2)|0;IC(z);i=y;return}}while(0);if((u|0)==8)j=cc()|0;IC(z);bc(j|0)}function jF(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;var g=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+352|0;u=z+304|0;q=z+48|0;p=z+32|0;l=z+24|0;g=z+8|0;n=z;s=z+308|0;t=z+72|0;k=z+76|0;y=z+68|0;x=z+64|0;v=z+60|0;w=z+56|0;m=n;c[m>>2]=37;c[m+4>>2]=0;m=XE(n+1|0,61258,c[d+4>>2]|0)|0;c[t>>2]=s;a=rE()|0;if(m){c[g>>2]=c[d+8>>2];h[g+8>>3]=f;g=mK(s,30,a,n,g)|0}else{h[l>>3]=f;g=mK(s,30,a,n,l)|0}a:do if((g|0)>29){o=0;a=gb(45)|0;g=o;o=0;g=g&1;if(m){if(!g?(o=0,c[p>>2]=c[d+8>>2],h[p+8>>3]=f,j=kb(65,t|0,a|0,n|0,p|0)|0,r=o,o=0,!(r&1)):0)A=12}else if(!g?(o=0,h[q>>3]=f,r=kb(65,t|0,a|0,n|0,q|0)|0,q=o,o=0,!(q&1)):0){j=r;A=12}do if((A|0)==12){a=c[t>>2]|0;if(!a){o=0;ob(46);r=o;o=0;if(r&1)break;g=c[t>>2]|0}else g=a;a=g;n=g;A=16;break a}while(0);a=cc()|0}else{a=c[t>>2]|0;n=0;j=g;A=16}while(0);if((A|0)==16){l=a+j|0;m=RE(a,l,d)|0;do if((a|0)==(s|0)){a=s;g=0;A=22}else{j=yC(j<<3)|0;if(!j){o=0;ob(46);A=o;o=0;if(A&1){g=0;A=20;break}a=c[t>>2]|0}g=j;k=j;A=22}while(0);do if((A|0)==22){o=0;j=qa(192,d|0)|0;t=o;o=0;if(!(t&1)){c[v>>2]=j;o=0;Oa(49,a|0,m|0,l|0,k|0,y|0,x|0,v|0);v=o;o=0;if(v&1){a=cc()|0;EL(j)|0;break}EL(j)|0;c[w>>2]=c[b>>2];A=c[y>>2]|0;a=c[x>>2]|0;o=0;c[u>>2]=c[w>>2];a=oa(84,u|0,k|0,A|0,a|0,d|0,e|0)|0;A=o;o=0;if(!(A&1)){c[b>>2]=a;if(g)zC(g);if(n)zC(n);i=z;return a|0}else A=20}else A=20}while(0);if((A|0)==20)a=cc()|0;if(g)zC(g);if(n)zC(n)}bc(a|0);return 0}function kF(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;q=i;i=i+192|0;l=q;b=q+180|0;n=q+160|0;p=q+12|0;k=q+8|0;m=q+4|0;a[b>>0]=a[61260]|0;a[b+1>>0]=a[61261]|0;a[b+2>>0]=a[61262]|0;a[b+3>>0]=a[61263]|0;a[b+4>>0]=a[61264]|0;a[b+5>>0]=a[61265]|0;h=rE()|0;c[l>>2]=g;b=mK(n,20,h,b,l)|0;g=n+b|0;h=RE(n,g,e)|0;j=lD(e)|0;c[k>>2]=j;o=0;k=Wa(115,k|0,40896)|0;r=o;o=0;if(r&1){r=cc()|0;EL(j)|0;bc(r|0)}else{EL(j)|0;zd[c[(c[k>>2]|0)+48>>2]&127](k,n,g,p)|0;r=p+(b<<2)|0;c[m>>2]=c[d>>2];c[l>>2]=c[m>>2];r=oK(l,p,(h|0)==(g|0)?r:p+(h-n<<2)|0,r,e,f)|0;i=q;return r|0}return 0}function lF(e,f,g,h,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+32|0;w=C+16|0;v=C+12|0;z=C+8|0;x=C+4|0;y=C;n=lD(h)|0;c[z>>2]=n;o=0;z=Wa(115,z|0,40904)|0;u=o;o=0;if(u&1){C=cc()|0;EL(n)|0;bc(C|0)}EL(n)|0;c[j>>2]=0;u=z+8|0;n=c[f>>2]|0;a:do if((l|0)!=(m|0)){b:while(1){p=n;if(n){if((c[n+12>>2]|0)==(c[n+16>>2]|0)?(bd[c[(c[n>>2]|0)+36>>2]&255](n)|0)==-1:0){c[f>>2]=0;n=0;p=0}}else n=0;s=(n|0)==0;r=c[g>>2]|0;q=r;do if(r){if((c[r+12>>2]|0)==(c[r+16>>2]|0)?(bd[c[(c[r>>2]|0)+36>>2]&255](r)|0)==-1:0){c[g>>2]=0;q=0;B=12;break}if(!s){B=13;break b}}else B=12;while(0);if((B|0)==12){B=0;if(s){B=13;break}else r=0}c:do if((fd[c[(c[z>>2]|0)+36>>2]&127](z,a[l>>0]|0,0)|0)<<24>>24==37){r=l+1|0;if((r|0)==(m|0)){B=17;break b}t=fd[c[(c[z>>2]|0)+36>>2]&127](z,a[r>>0]|0,0)|0;switch(t<<24>>24){case 48:case 69:{s=l+2|0;if((s|0)==(m|0)){B=20;break b}l=r;r=fd[c[(c[z>>2]|0)+36>>2]&127](z,a[s>>0]|0,0)|0;n=t;break}default:{r=t;n=0}}t=c[(c[e>>2]|0)+36>>2]|0;c[x>>2]=p;c[y>>2]=q;c[v>>2]=c[x>>2];c[w>>2]=c[y>>2];c[f>>2]=Cd[t&63](e,v,w,h,j,k,r,n)|0;l=l+2|0}else{p=a[l>>0]|0;if(p<<24>>24>-1?(A=c[u>>2]|0,(b[A+(p<<24>>24<<1)>>1]&8192)!=0):0){do{l=l+1|0;if((l|0)==(m|0)){l=m;break}p=a[l>>0]|0;if(p<<24>>24<=-1)break}while((b[A+(p<<24>>24<<1)>>1]&8192)!=0);p=r;while(1){if(n){if((c[n+12>>2]|0)==(c[n+16>>2]|0)?(bd[c[(c[n>>2]|0)+36>>2]&255](n)|0)==-1:0){c[f>>2]=0;n=0}}else n=0;q=(n|0)==0;do if(r){if((c[r+12>>2]|0)!=(c[r+16>>2]|0))if(q){t=p;break}else break c;if((bd[c[(c[r>>2]|0)+36>>2]&255](r)|0)!=-1)if(q^(p|0)==0){t=p;r=p;break}else break c;else{c[g>>2]=0;p=0;B=39;break}}else B=39;while(0);if((B|0)==39){B=0;if(q)break c;else{t=p;r=0}}q=n+12|0;p=c[q>>2]|0;s=n+16|0;if((p|0)==(c[s>>2]|0))p=bd[c[(c[n>>2]|0)+36>>2]&255](n)|0;else p=d[p>>0]|0;if((p&255)<<24>>24<=-1)break c;if(!(b[(c[u>>2]|0)+(p<<24>>24<<1)>>1]&8192))break c;p=c[q>>2]|0;if((p|0)==(c[s>>2]|0)){bd[c[(c[n>>2]|0)+40>>2]&255](n)|0;p=t;continue}else{c[q>>2]=p+1;p=t;continue}}}q=n+12|0;p=c[q>>2]|0;r=n+16|0;if((p|0)==(c[r>>2]|0))p=bd[c[(c[n>>2]|0)+36>>2]&255](n)|0;else p=d[p>>0]|0;t=rd[c[(c[z>>2]|0)+12>>2]&127](z,p&255)|0;if(t<<24>>24!=(rd[c[(c[z>>2]|0)+12>>2]&127](z,a[l>>0]|0)|0)<<24>>24){B=57;break b}p=c[q>>2]|0;if((p|0)==(c[r>>2]|0))bd[c[(c[n>>2]|0)+40>>2]&255](n)|0;else c[q>>2]=p+1;l=l+1|0}while(0);n=c[f>>2]|0;if(!((l|0)!=(m|0)&(c[j>>2]|0)==0))break a}if((B|0)==13){c[j>>2]=4;break}else if((B|0)==17){c[j>>2]=4;break}else if((B|0)==20){c[j>>2]=4;break}else if((B|0)==57){c[j>>2]=4;n=c[f>>2]|0;break}}while(0);if(n){if((c[n+12>>2]|0)==(c[n+16>>2]|0)?(bd[c[(c[n>>2]|0)+36>>2]&255](n)|0)==-1:0){c[f>>2]=0;n=0}}else n=0;l=(n|0)==0;p=c[g>>2]|0;do if(p){if((c[p+12>>2]|0)==(c[p+16>>2]|0)?(bd[c[(c[p>>2]|0)+36>>2]&255](p)|0)==-1:0){c[g>>2]=0;B=67;break}if(!l)B=68}else B=67;while(0);if((B|0)==67?l:0)B=68;if((B|0)==68)c[j>>2]=c[j>>2]|2;i=C;return n|0}function mF(a){a=a|0;return}function nF(a){a=a|0;Uz(a);return}function oF(a){a=a|0;return 2}function pF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=lF(a,k,j,e,f,g,61266,61274)|0;i=h;return a|0}function qF(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;i=i+16|0;k=j+12|0;l=j+8|0;n=j+4|0;m=j;o=b+8|0;o=bd[c[(c[o>>2]|0)+20>>2]&255](o)|0;c[n>>2]=c[d>>2];c[m>>2]=c[e>>2];e=a[o>>0]|0;p=(e&1)==0;d=p?o+1|0:c[o+8>>2]|0;e=d+(p?(e&255)>>>1:c[o+4>>2]|0)|0;c[l>>2]=c[n>>2];c[k>>2]=c[m>>2];b=lF(b,l,k,f,g,h,d,e)|0;i=j;return b|0}function rF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;j=l+8|0;h=l+4|0;k=l;e=lD(e)|0;c[h>>2]=e;o=0;h=Wa(115,h|0,40904)|0;m=o;o=0;if(m&1){m=cc()|0;EL(e)|0;bc(m|0)}else{EL(e)|0;c[k>>2]=c[d>>2];c[j>>2]=c[k>>2];sF(a,g+24|0,b,j,f,h);i=l;return c[b>>2]|0}return 0}function sF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;i=i+16|0;j=h+4|0;k=h;a=a+8|0;a=bd[c[c[a>>2]>>2]&255](a)|0;c[k>>2]=c[e>>2];c[j>>2]=c[k>>2];d=(TJ(d,j,a,a+168|0,g,f,0)|0)-a|0;if((d|0)<168)c[b>>2]=((d|0)/12|0|0)%7|0;i=h;return}function tF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;j=l+8|0;h=l+4|0;k=l;e=lD(e)|0;c[h>>2]=e;o=0;h=Wa(115,h|0,40904)|0;m=o;o=0;if(m&1){m=cc()|0;EL(e)|0;bc(m|0)}else{EL(e)|0;c[k>>2]=c[d>>2];c[j>>2]=c[k>>2];uF(a,g+16|0,b,j,f,h);i=l;return c[b>>2]|0}return 0}function uF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;i=i+16|0;j=h+4|0;k=h;a=a+8|0;a=bd[c[(c[a>>2]|0)+4>>2]&255](a)|0;c[k>>2]=c[e>>2];c[j>>2]=c[k>>2];d=(TJ(d,j,a,a+288|0,g,f,0)|0)-a|0;if((d|0)<288)c[b>>2]=((d|0)/12|0|0)%12|0;i=h;return}function vF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;j=l+8|0;h=l+4|0;k=l;e=lD(e)|0;c[h>>2]=e;o=0;h=Wa(115,h|0,40904)|0;m=o;o=0;if(m&1){m=cc()|0;EL(e)|0;bc(m|0)}else{EL(e)|0;c[k>>2]=c[d>>2];c[j>>2]=c[k>>2];wF(a,g+20|0,b,j,f,h);i=l;return c[b>>2]|0}return 0}function wF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,4)|0;if(!(c[f>>2]&4)){if((a|0)<69)a=a+2e3|0;else a=(a+-69|0)>>>0<31?a+1900|0:a;c[b>>2]=a+-1900}i=h;return}function xF(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;U=i;i=i+144|0;l=U+132|0;k=U+116|0;N=U+128|0;x=U+124|0;I=U+120|0;O=U+112|0;P=U+108|0;Q=U+104|0;R=U+100|0;S=U+96|0;T=U+92|0;m=U+88|0;n=U+84|0;p=U+80|0;q=U+76|0;r=U+72|0;s=U+68|0;t=U+64|0;u=U+60|0;v=U+56|0;w=U+52|0;y=U+48|0;z=U+44|0;A=U+40|0;B=U+36|0;C=U+32|0;D=U+28|0;E=U+24|0;F=U+20|0;G=U+16|0;H=U+12|0;J=U+8|0;K=U+4|0;L=U;c[g>>2]=0;M=lD(f)|0;c[N>>2]=M;o=0;N=Wa(115,N|0,40904)|0;W=o;o=0;if(W&1){W=cc()|0;EL(M)|0;bc(W|0)}EL(M)|0;do switch(j<<24>>24|0){case 65:case 97:{c[x>>2]=c[e>>2];c[l>>2]=c[x>>2];sF(b,h+24|0,d,l,g,N);V=28;break}case 104:case 66:case 98:{c[I>>2]=c[e>>2];c[l>>2]=c[I>>2];uF(b,h+16|0,d,l,g,N);V=28;break}case 99:{V=b+8|0;V=bd[c[(c[V>>2]|0)+12>>2]&255](V)|0;c[O>>2]=c[d>>2];c[P>>2]=c[e>>2];j=a[V>>0]|0;e=(j&1)==0;W=e?V+1|0:c[V+8>>2]|0;V=W+(e?(j&255)>>>1:c[V+4>>2]|0)|0;c[k>>2]=c[O>>2];c[l>>2]=c[P>>2];c[d>>2]=lF(b,k,l,f,g,h,W,V)|0;V=28;break}case 101:case 100:{c[Q>>2]=c[e>>2];c[l>>2]=c[Q>>2];yF(b,h+12|0,d,l,g,N);V=28;break}case 68:{c[R>>2]=c[d>>2];c[S>>2]=c[e>>2];c[k>>2]=c[R>>2];c[l>>2]=c[S>>2];c[d>>2]=lF(b,k,l,f,g,h,61274,61282)|0;V=28;break}case 70:{c[T>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k>>2]=c[T>>2];c[l>>2]=c[m>>2];c[d>>2]=lF(b,k,l,f,g,h,61282,61290)|0;V=28;break}case 72:{c[n>>2]=c[e>>2];c[l>>2]=c[n>>2];zF(b,h+8|0,d,l,g,N);V=28;break}case 73:{c[p>>2]=c[e>>2];c[l>>2]=c[p>>2];AF(b,h+8|0,d,l,g,N);V=28;break}case 106:{c[q>>2]=c[e>>2];c[l>>2]=c[q>>2];BF(b,h+28|0,d,l,g,N);V=28;break}case 109:{c[r>>2]=c[e>>2];c[l>>2]=c[r>>2];CF(b,h+16|0,d,l,g,N);V=28;break}case 77:{c[s>>2]=c[e>>2];c[l>>2]=c[s>>2];DF(b,h+4|0,d,l,g,N);V=28;break}case 116:case 110:{c[t>>2]=c[e>>2];c[l>>2]=c[t>>2];EF(b,d,l,g,N);V=28;break}case 112:{c[u>>2]=c[e>>2];c[l>>2]=c[u>>2];FF(b,h+8|0,d,l,g,N);V=28;break}case 114:{c[v>>2]=c[d>>2];c[w>>2]=c[e>>2];c[k>>2]=c[v>>2];c[l>>2]=c[w>>2];c[d>>2]=lF(b,k,l,f,g,h,61290,61301)|0;V=28;break}case 82:{c[y>>2]=c[d>>2];c[z>>2]=c[e>>2];c[k>>2]=c[y>>2];c[l>>2]=c[z>>2];c[d>>2]=lF(b,k,l,f,g,h,61301,61306)|0;V=28;break}case 83:{c[A>>2]=c[e>>2];c[l>>2]=c[A>>2];GF(b,h,d,l,g,N);V=28;break}case 84:{c[B>>2]=c[d>>2];c[C>>2]=c[e>>2];c[k>>2]=c[B>>2];c[l>>2]=c[C>>2];c[d>>2]=lF(b,k,l,f,g,h,61306,61314)|0;V=28;break}case 119:{c[D>>2]=c[e>>2];c[l>>2]=c[D>>2];HF(b,h+24|0,d,l,g,N);V=28;break}case 120:{W=c[(c[b>>2]|0)+20>>2]|0;c[E>>2]=c[d>>2];c[F>>2]=c[e>>2];c[k>>2]=c[E>>2];c[l>>2]=c[F>>2];k=ad[W&127](b,k,l,f,g,h)|0;break}case 88:{V=b+8|0;V=bd[c[(c[V>>2]|0)+24>>2]&255](V)|0;c[G>>2]=c[d>>2];c[H>>2]=c[e>>2];j=a[V>>0]|0;e=(j&1)==0;W=e?V+1|0:c[V+8>>2]|0;V=W+(e?(j&255)>>>1:c[V+4>>2]|0)|0;c[k>>2]=c[G>>2];c[l>>2]=c[H>>2];c[d>>2]=lF(b,k,l,f,g,h,W,V)|0;V=28;break}case 121:{c[J>>2]=c[e>>2];c[l>>2]=c[J>>2];wF(b,h+20|0,d,l,g,N);V=28;break}case 89:{c[K>>2]=c[e>>2];c[l>>2]=c[K>>2];IF(b,h+20|0,d,l,g,N);V=28;break}case 37:{c[L>>2]=c[e>>2];c[l>>2]=c[L>>2];JF(b,d,l,g,N);V=28;break}default:{c[g>>2]=c[g>>2]|4;V=28}}while(0);if((V|0)==28)k=c[d>>2]|0;i=U;return k|0}function yF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a+-1|0)>>>0<31&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function zF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<24&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function AF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a+-1|0)>>>0<12&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function BF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,3)|0;d=c[f>>2]|0;if((a|0)<366&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function CF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<13&(d&4|0)==0)c[b>>2]=a+-1;else c[f>>2]=d|4;i=h;return}function DF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<60&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function EF(a,e,f,g,h){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;j=h+8|0;a:while(1){h=c[e>>2]|0;do if(h){if((c[h+12>>2]|0)==(c[h+16>>2]|0))if((bd[c[(c[h>>2]|0)+36>>2]&255](h)|0)==-1){c[e>>2]=0;h=0;break}else{h=c[e>>2]|0;break}}else h=0;while(0);h=(h|0)==0;a=c[f>>2]|0;do if(a){if((c[a+12>>2]|0)!=(c[a+16>>2]|0))if(h)break;else break a;if((bd[c[(c[a>>2]|0)+36>>2]&255](a)|0)!=-1)if(h)break;else break a;else{c[f>>2]=0;k=12;break}}else k=12;while(0);if((k|0)==12){k=0;if(h){a=0;break}else a=0}h=c[e>>2]|0;i=c[h+12>>2]|0;if((i|0)==(c[h+16>>2]|0))h=bd[c[(c[h>>2]|0)+36>>2]&255](h)|0;else h=d[i>>0]|0;if((h&255)<<24>>24<=-1)break;if(!(b[(c[j>>2]|0)+(h<<24>>24<<1)>>1]&8192))break;h=c[e>>2]|0;a=h+12|0;i=c[a>>2]|0;if((i|0)==(c[h+16>>2]|0)){bd[c[(c[h>>2]|0)+40>>2]&255](h)|0;continue}else{c[a>>2]=i+1;continue}}h=c[e>>2]|0;do if(h){if((c[h+12>>2]|0)==(c[h+16>>2]|0))if((bd[c[(c[h>>2]|0)+36>>2]&255](h)|0)==-1){c[e>>2]=0;h=0;break}else{h=c[e>>2]|0;break}}else h=0;while(0);h=(h|0)==0;do if(a){if((c[a+12>>2]|0)==(c[a+16>>2]|0)?(bd[c[(c[a>>2]|0)+36>>2]&255](a)|0)==-1:0){c[f>>2]=0;k=32;break}if(!h)k=33}else k=32;while(0);if((k|0)==32?h:0)k=33;if((k|0)==33)c[g>>2]=c[g>>2]|2;return}function FF(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;k=n+4|0;l=n;m=b+8|0;m=bd[c[(c[m>>2]|0)+8>>2]&255](m)|0;b=a[m>>0]|0;if(!(b&1))j=(b&255)>>>1;else j=c[m+4>>2]|0;b=a[m+12>>0]|0;if(!(b&1))b=(b&255)>>>1;else b=c[m+16>>2]|0;do if((j|0)!=(0-b|0)){c[l>>2]=c[f>>2];c[k>>2]=c[l>>2];b=TJ(e,k,m,m+24|0,h,g,0)|0;j=c[d>>2]|0;if((b|0)==(m|0)&(j|0)==12){c[d>>2]=0;break}if((j|0)<12&(b-m|0)==12)c[d>>2]=j+12}else c[g>>2]=c[g>>2]|4;while(0);i=n;return}function GF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<61&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function HF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,1)|0;d=c[f>>2]|0;if((a|0)<7&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function IF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=pK(d,a,f,g,4)|0;if(!(c[f>>2]&4))c[b>>2]=a+-1900;i=h;return}function JF(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;a=c[b>>2]|0;do if(a){if((c[a+12>>2]|0)==(c[a+16>>2]|0))if((bd[c[(c[a>>2]|0)+36>>2]&255](a)|0)==-1){c[b>>2]=0;a=0;break}else{a=c[b>>2]|0;break}}else a=0;while(0);h=(a|0)==0;a=c[e>>2]|0;do if(a){if((c[a+12>>2]|0)==(c[a+16>>2]|0)?(bd[c[(c[a>>2]|0)+36>>2]&255](a)|0)==-1:0){c[e>>2]=0;j=11;break}if(h){i=a;j=13}else j=12}else j=11;while(0);if((j|0)==11)if(h)j=12;else{i=0;j=13}a:do if((j|0)==12)c[f>>2]=c[f>>2]|6;else if((j|0)==13){a=c[b>>2]|0;h=c[a+12>>2]|0;if((h|0)==(c[a+16>>2]|0))a=bd[c[(c[a>>2]|0)+36>>2]&255](a)|0;else a=d[h>>0]|0;if((fd[c[(c[g>>2]|0)+36>>2]&127](g,a&255,0)|0)<<24>>24!=37){c[f>>2]=c[f>>2]|4;break}a=c[b>>2]|0;h=a+12|0;g=c[h>>2]|0;if((g|0)==(c[a+16>>2]|0)){bd[c[(c[a>>2]|0)+40>>2]&255](a)|0;a=c[b>>2]|0;if(!a)a=0;else j=21}else{c[h>>2]=g+1;j=21}do if((j|0)==21)if((c[a+12>>2]|0)==(c[a+16>>2]|0))if((bd[c[(c[a>>2]|0)+36>>2]&255](a)|0)==-1){c[b>>2]=0;a=0;break}else{a=c[b>>2]|0;break}while(0);a=(a|0)==0;do if(i){if((c[i+12>>2]|0)==(c[i+16>>2]|0)?(bd[c[(c[i>>2]|0)+36>>2]&255](i)|0)==-1:0){c[e>>2]=0;j=30;break}if(a)break a}else j=30;while(0);if((j|0)==30?!a:0)break;c[f>>2]=c[f>>2]|2}while(0);return}function KF(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+32|0;s=x+16|0;r=x+12|0;v=x+8|0;t=x+4|0;u=x;k=lD(e)|0;c[v>>2]=k;o=0;v=Wa(115,v|0,40896)|0;q=o;o=0;if(q&1){x=cc()|0;EL(k)|0;bc(x|0)}EL(k)|0;c[f>>2]=0;k=c[b>>2]|0;a:do if((h|0)!=(j|0)){b:while(1){m=k;if(k){l=c[k+12>>2]|0;if((l|0)==(c[k+16>>2]|0))l=bd[c[(c[k>>2]|0)+36>>2]&255](k)|0;else l=c[l>>2]|0;if((l|0)==-1){c[b>>2]=0;k=0;p=1;q=0}else{p=0;q=m}}else{k=0;p=1;q=m}n=c[d>>2]|0;l=n;do if(n){m=c[n+12>>2]|0;if((m|0)==(c[n+16>>2]|0))m=bd[c[(c[n>>2]|0)+36>>2]&255](n)|0;else m=c[m>>2]|0;if((m|0)!=-1)if(p)break;else{w=17;break b}else{c[d>>2]=0;l=0;w=15;break}}else w=15;while(0);if((w|0)==15){w=0;if(p){w=17;break}else n=0}c:do if((fd[c[(c[v>>2]|0)+52>>2]&127](v,c[h>>2]|0,0)|0)<<24>>24==37){m=h+4|0;if((m|0)==(j|0)){w=21;break b}p=fd[c[(c[v>>2]|0)+52>>2]&127](v,c[m>>2]|0,0)|0;switch(p<<24>>24){case 48:case 69:{n=h+8|0;if((n|0)==(j|0)){w=24;break b}h=m;m=fd[c[(c[v>>2]|0)+52>>2]&127](v,c[n>>2]|0,0)|0;k=p;break}default:{m=p;k=0}}p=c[(c[a>>2]|0)+36>>2]|0;c[t>>2]=q;c[u>>2]=l;c[r>>2]=c[t>>2];c[s>>2]=c[u>>2];c[b>>2]=Cd[p&63](a,r,s,e,f,g,m,k)|0;h=h+8|0}else{if(!(fd[c[(c[v>>2]|0)+12>>2]&127](v,8192,c[h>>2]|0)|0)){m=k+12|0;l=c[m>>2]|0;n=k+16|0;if((l|0)==(c[n>>2]|0))l=bd[c[(c[k>>2]|0)+36>>2]&255](k)|0;else l=c[l>>2]|0;q=rd[c[(c[v>>2]|0)+28>>2]&127](v,l)|0;if((q|0)!=(rd[c[(c[v>>2]|0)+28>>2]&127](v,c[h>>2]|0)|0)){w=61;break b}l=c[m>>2]|0;if((l|0)==(c[n>>2]|0))bd[c[(c[k>>2]|0)+40>>2]&255](k)|0;else c[m>>2]=l+4;h=h+4|0;break}do{h=h+4|0;if((h|0)==(j|0)){h=j;break}}while(fd[c[(c[v>>2]|0)+12>>2]&127](v,8192,c[h>>2]|0)|0);l=n;p=n;while(1){if(k){m=c[k+12>>2]|0;if((m|0)==(c[k+16>>2]|0))m=bd[c[(c[k>>2]|0)+36>>2]&255](k)|0;else m=c[m>>2]|0;if((m|0)==-1){c[b>>2]=0;n=1;k=0}else n=0}else{n=1;k=0}do if(p){m=c[p+12>>2]|0;if((m|0)==(c[p+16>>2]|0))m=bd[c[(c[p>>2]|0)+36>>2]&255](p)|0;else m=c[m>>2]|0;if((m|0)!=-1)if(n^(l|0)==0){q=l;p=l;break}else break c;else{c[d>>2]=0;l=0;w=44;break}}else w=44;while(0);if((w|0)==44){w=0;if(n)break c;else{q=l;p=0}}m=k+12|0;l=c[m>>2]|0;n=k+16|0;if((l|0)==(c[n>>2]|0))l=bd[c[(c[k>>2]|0)+36>>2]&255](k)|0;else l=c[l>>2]|0;if(!(fd[c[(c[v>>2]|0)+12>>2]&127](v,8192,l)|0))break c;l=c[m>>2]|0;if((l|0)==(c[n>>2]|0)){bd[c[(c[k>>2]|0)+40>>2]&255](k)|0;l=q;continue}else{c[m>>2]=l+4;l=q;continue}}}while(0);k=c[b>>2]|0;if(!((h|0)!=(j|0)&(c[f>>2]|0)==0))break a}if((w|0)==17){c[f>>2]=4;break}else if((w|0)==21){c[f>>2]=4;break}else if((w|0)==24){c[f>>2]=4;break}else if((w|0)==61){c[f>>2]=4;k=c[b>>2]|0;break}}while(0);if(k){h=c[k+12>>2]|0;if((h|0)==(c[k+16>>2]|0))h=bd[c[(c[k>>2]|0)+36>>2]&255](k)|0;else h=c[h>>2]|0;if((h|0)==-1){c[b>>2]=0;k=0;m=1}else m=0}else{k=0;m=1}h=c[d>>2]|0;do if(h){l=c[h+12>>2]|0;if((l|0)==(c[h+16>>2]|0))h=bd[c[(c[h>>2]|0)+36>>2]&255](h)|0;else h=c[l>>2]|0;if((h|0)!=-1)if(m)break;else{w=76;break}else{c[d>>2]=0;w=74;break}}else w=74;while(0);if((w|0)==74?m:0)w=76;if((w|0)==76)c[f>>2]=c[f>>2]|2;i=x;return k|0}function LF(a){a=a|0;return}function MF(a){a=a|0;Uz(a);return}function NF(a){a=a|0;return 2}function OF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;m=h+4|0;l=h;c[m>>2]=c[b>>2];c[l>>2]=c[d>>2];c[k>>2]=c[m>>2];c[j>>2]=c[l>>2];a=KF(a,k,j,e,f,g,41472,41504)|0;i=h;return a|0}function PF(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+16|0;k=j+12|0;l=j+8|0;n=j+4|0;m=j;q=b+8|0;q=bd[c[(c[q>>2]|0)+20>>2]&255](q)|0;c[n>>2]=c[d>>2];c[m>>2]=c[e>>2];o=a[q>>0]|0;p=(o&1)==0;e=q+4|0;d=p?e:c[q+8>>2]|0;e=d+((p?(o&255)>>>1:c[e>>2]|0)<<2)|0;c[l>>2]=c[n>>2];c[k>>2]=c[m>>2];b=KF(b,l,k,f,g,h,d,e)|0;i=j;return b|0}function QF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;j=l+8|0;h=l+4|0;k=l;e=lD(e)|0;c[h>>2]=e;o=0;h=Wa(115,h|0,40896)|0;m=o;o=0;if(m&1){m=cc()|0;EL(e)|0;bc(m|0)}else{EL(e)|0;c[k>>2]=c[d>>2];c[j>>2]=c[k>>2];RF(a,g+24|0,b,j,f,h);i=l;return c[b>>2]|0}return 0}function RF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;i=i+16|0;j=h+4|0;k=h;a=a+8|0;a=bd[c[c[a>>2]>>2]&255](a)|0;c[k>>2]=c[e>>2];c[j>>2]=c[k>>2];d=(cK(d,j,a,a+168|0,g,f,0)|0)-a|0;if((d|0)<168)c[b>>2]=((d|0)/12|0|0)%7|0;i=h;return}function SF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;j=l+8|0;h=l+4|0;k=l;e=lD(e)|0;c[h>>2]=e;o=0;h=Wa(115,h|0,40896)|0;m=o;o=0;if(m&1){m=cc()|0;EL(e)|0;bc(m|0)}else{EL(e)|0;c[k>>2]=c[d>>2];c[j>>2]=c[k>>2];TF(a,g+16|0,b,j,f,h);i=l;return c[b>>2]|0}return 0}function TF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0;h=i;i=i+16|0;j=h+4|0;k=h;a=a+8|0;a=bd[c[(c[a>>2]|0)+4>>2]&255](a)|0;c[k>>2]=c[e>>2];c[j>>2]=c[k>>2];d=(cK(d,j,a,a+288|0,g,f,0)|0)-a|0;if((d|0)<288)c[b>>2]=((d|0)/12|0|0)%12|0;i=h;return}function UF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;j=l+8|0;h=l+4|0;k=l;e=lD(e)|0;c[h>>2]=e;o=0;h=Wa(115,h|0,40896)|0;m=o;o=0;if(m&1){m=cc()|0;EL(e)|0;bc(m|0)}else{EL(e)|0;c[k>>2]=c[d>>2];c[j>>2]=c[k>>2];VF(a,g+20|0,b,j,f,h);i=l;return c[b>>2]|0}return 0}function VF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,4)|0;if(!(c[f>>2]&4)){if((a|0)<69)a=a+2e3|0;else a=(a+-69|0)>>>0<31?a+1900|0:a;c[b>>2]=a+-1900}i=h;return}function WF(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;U=i;i=i+144|0;l=U+132|0;k=U+116|0;N=U+128|0;x=U+124|0;I=U+120|0;O=U+112|0;P=U+108|0;Q=U+104|0;R=U+100|0;S=U+96|0;T=U+92|0;m=U+88|0;n=U+84|0;p=U+80|0;q=U+76|0;r=U+72|0;s=U+68|0;t=U+64|0;u=U+60|0;v=U+56|0;w=U+52|0;y=U+48|0;z=U+44|0;A=U+40|0;B=U+36|0;C=U+32|0;D=U+28|0;E=U+24|0;F=U+20|0;G=U+16|0;H=U+12|0;J=U+8|0;K=U+4|0;L=U;c[g>>2]=0;M=lD(f)|0;c[N>>2]=M;o=0;N=Wa(115,N|0,40896)|0;W=o;o=0;if(W&1){W=cc()|0;EL(M)|0;bc(W|0)}EL(M)|0;do switch(j<<24>>24|0){case 65:case 97:{c[x>>2]=c[e>>2];c[l>>2]=c[x>>2];RF(b,h+24|0,d,l,g,N);V=28;break}case 104:case 66:case 98:{c[I>>2]=c[e>>2];c[l>>2]=c[I>>2];TF(b,h+16|0,d,l,g,N);V=28;break}case 99:{W=b+8|0;W=bd[c[(c[W>>2]|0)+12>>2]&255](W)|0;c[O>>2]=c[d>>2];c[P>>2]=c[e>>2];j=a[W>>0]|0;e=(j&1)==0;V=W+4|0;W=e?V:c[W+8>>2]|0;V=W+((e?(j&255)>>>1:c[V>>2]|0)<<2)|0;c[k>>2]=c[O>>2];c[l>>2]=c[P>>2];c[d>>2]=KF(b,k,l,f,g,h,W,V)|0;V=28;break}case 101:case 100:{c[Q>>2]=c[e>>2];c[l>>2]=c[Q>>2];XF(b,h+12|0,d,l,g,N);V=28;break}case 68:{c[R>>2]=c[d>>2];c[S>>2]=c[e>>2];c[k>>2]=c[R>>2];c[l>>2]=c[S>>2];c[d>>2]=KF(b,k,l,f,g,h,41504,41536)|0;V=28;break}case 70:{c[T>>2]=c[d>>2];c[m>>2]=c[e>>2];c[k>>2]=c[T>>2];c[l>>2]=c[m>>2];c[d>>2]=KF(b,k,l,f,g,h,41536,41568)|0;V=28;break}case 72:{c[n>>2]=c[e>>2];c[l>>2]=c[n>>2];YF(b,h+8|0,d,l,g,N);V=28;break}case 73:{c[p>>2]=c[e>>2];c[l>>2]=c[p>>2];ZF(b,h+8|0,d,l,g,N);V=28;break}case 106:{c[q>>2]=c[e>>2];c[l>>2]=c[q>>2];_F(b,h+28|0,d,l,g,N);V=28;break}case 109:{c[r>>2]=c[e>>2];c[l>>2]=c[r>>2];$F(b,h+16|0,d,l,g,N);V=28;break}case 77:{c[s>>2]=c[e>>2];c[l>>2]=c[s>>2];aG(b,h+4|0,d,l,g,N);V=28;break}case 116:case 110:{c[t>>2]=c[e>>2];c[l>>2]=c[t>>2];bG(b,d,l,g,N);V=28;break}case 112:{c[u>>2]=c[e>>2];c[l>>2]=c[u>>2];cG(b,h+8|0,d,l,g,N);V=28;break}case 114:{c[v>>2]=c[d>>2];c[w>>2]=c[e>>2];c[k>>2]=c[v>>2];c[l>>2]=c[w>>2];c[d>>2]=KF(b,k,l,f,g,h,41568,41612)|0;V=28;break}case 82:{c[y>>2]=c[d>>2];c[z>>2]=c[e>>2];c[k>>2]=c[y>>2];c[l>>2]=c[z>>2];c[d>>2]=KF(b,k,l,f,g,h,41612,41632)|0;V=28;break}case 83:{c[A>>2]=c[e>>2];c[l>>2]=c[A>>2];dG(b,h,d,l,g,N);V=28;break}case 84:{c[B>>2]=c[d>>2];c[C>>2]=c[e>>2];c[k>>2]=c[B>>2];c[l>>2]=c[C>>2];c[d>>2]=KF(b,k,l,f,g,h,41632,41664)|0;V=28;break}case 119:{c[D>>2]=c[e>>2];c[l>>2]=c[D>>2];eG(b,h+24|0,d,l,g,N);V=28;break}case 120:{W=c[(c[b>>2]|0)+20>>2]|0;c[E>>2]=c[d>>2];c[F>>2]=c[e>>2];c[k>>2]=c[E>>2];c[l>>2]=c[F>>2];k=ad[W&127](b,k,l,f,g,h)|0;break}case 88:{W=b+8|0;W=bd[c[(c[W>>2]|0)+24>>2]&255](W)|0;c[G>>2]=c[d>>2];c[H>>2]=c[e>>2];j=a[W>>0]|0;e=(j&1)==0;V=W+4|0;W=e?V:c[W+8>>2]|0;V=W+((e?(j&255)>>>1:c[V>>2]|0)<<2)|0;c[k>>2]=c[G>>2];c[l>>2]=c[H>>2];c[d>>2]=KF(b,k,l,f,g,h,W,V)|0;V=28;break}case 121:{c[J>>2]=c[e>>2];c[l>>2]=c[J>>2];VF(b,h+20|0,d,l,g,N);V=28;break}case 89:{c[K>>2]=c[e>>2];c[l>>2]=c[K>>2];fG(b,h+20|0,d,l,g,N);V=28;break}case 37:{c[L>>2]=c[e>>2];c[l>>2]=c[L>>2];gG(b,d,l,g,N);V=28;break}default:{c[g>>2]=c[g>>2]|4;V=28}}while(0);if((V|0)==28)k=c[d>>2]|0;i=U;return k|0}function XF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a+-1|0)>>>0<31&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function YF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<24&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function ZF(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a+-1|0)>>>0<12&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function _F(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,3)|0;d=c[f>>2]|0;if((a|0)<366&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function $F(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<13&(d&4|0)==0)c[b>>2]=a+-1;else c[f>>2]=d|4;i=h;return}function aG(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<60&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function bG(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;a:while(1){a=c[b>>2]|0;do if(a){g=c[a+12>>2]|0;if((g|0)==(c[a+16>>2]|0))a=bd[c[(c[a>>2]|0)+36>>2]&255](a)|0;else a=c[g>>2]|0;if((a|0)==-1){c[b>>2]=0;h=1;break}else{h=(c[b>>2]|0)==0;break}}else h=1;while(0);g=c[d>>2]|0;do if(g){a=c[g+12>>2]|0;if((a|0)==(c[g+16>>2]|0))a=bd[c[(c[g>>2]|0)+36>>2]&255](g)|0;else a=c[a>>2]|0;if((a|0)!=-1)if(h){h=g;break}else{h=g;break a}else{c[d>>2]=0;i=15;break}}else i=15;while(0);if((i|0)==15){i=0;if(h){h=0;break}else h=0}a=c[b>>2]|0;g=c[a+12>>2]|0;if((g|0)==(c[a+16>>2]|0))a=bd[c[(c[a>>2]|0)+36>>2]&255](a)|0;else a=c[g>>2]|0;if(!(fd[c[(c[f>>2]|0)+12>>2]&127](f,8192,a)|0))break;a=c[b>>2]|0;g=a+12|0;h=c[g>>2]|0;if((h|0)==(c[a+16>>2]|0)){bd[c[(c[a>>2]|0)+40>>2]&255](a)|0;continue}else{c[g>>2]=h+4;continue}}a=c[b>>2]|0;do if(a){g=c[a+12>>2]|0;if((g|0)==(c[a+16>>2]|0))a=bd[c[(c[a>>2]|0)+36>>2]&255](a)|0;else a=c[g>>2]|0;if((a|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}else g=1;while(0);do if(h){a=c[h+12>>2]|0;if((a|0)==(c[h+16>>2]|0))a=bd[c[(c[h>>2]|0)+36>>2]&255](h)|0;else a=c[a>>2]|0;if((a|0)!=-1)if(g)break;else{i=39;break}else{c[d>>2]=0;i=37;break}}else i=37;while(0);if((i|0)==37?g:0)i=39;if((i|0)==39)c[e>>2]=c[e>>2]|2;return}function cG(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;k=n+4|0;l=n;m=b+8|0;m=bd[c[(c[m>>2]|0)+8>>2]&255](m)|0;b=a[m>>0]|0;if(!(b&1))j=(b&255)>>>1;else j=c[m+4>>2]|0;b=a[m+12>>0]|0;if(!(b&1))b=(b&255)>>>1;else b=c[m+16>>2]|0;do if((j|0)!=(0-b|0)){c[l>>2]=c[f>>2];c[k>>2]=c[l>>2];b=cK(e,k,m,m+24|0,h,g,0)|0;j=c[d>>2]|0;if((b|0)==(m|0)&(j|0)==12){c[d>>2]=0;break}if((j|0)<12&(b-m|0)==12)c[d>>2]=j+12}else c[g>>2]=c[g>>2]|4;while(0);i=n;return}function dG(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,2)|0;d=c[f>>2]|0;if((a|0)<61&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function eG(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,1)|0;d=c[f>>2]|0;if((a|0)<7&(d&4|0)==0)c[b>>2]=a;else c[f>>2]=d|4;i=h;return}function fG(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;h=i;i=i+16|0;a=h+4|0;j=h;c[j>>2]=c[e>>2];c[a>>2]=c[j>>2];a=qK(d,a,f,g,4)|0;if(!(c[f>>2]&4))c[b>>2]=a+-1900;i=h;return}function gG(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;a=c[b>>2]|0;do if(a){g=c[a+12>>2]|0;if((g|0)==(c[a+16>>2]|0))a=bd[c[(c[a>>2]|0)+36>>2]&255](a)|0;else a=c[g>>2]|0;if((a|0)==-1){c[b>>2]=0;h=1;break}else{h=(c[b>>2]|0)==0;break}}else h=1;while(0);g=c[d>>2]|0;do if(g){a=c[g+12>>2]|0;if((a|0)==(c[g+16>>2]|0))a=bd[c[(c[g>>2]|0)+36>>2]&255](g)|0;else a=c[a>>2]|0;if((a|0)!=-1)if(h){i=g;j=17;break}else{j=16;break}else{c[d>>2]=0;j=14;break}}else j=14;while(0);if((j|0)==14)if(h)j=16;else{i=0;j=17}a:do if((j|0)==16)c[e>>2]=c[e>>2]|6;else if((j|0)==17){a=c[b>>2]|0;g=c[a+12>>2]|0;if((g|0)==(c[a+16>>2]|0))a=bd[c[(c[a>>2]|0)+36>>2]&255](a)|0;else a=c[g>>2]|0;if((fd[c[(c[f>>2]|0)+52>>2]&127](f,a,0)|0)<<24>>24!=37){c[e>>2]=c[e>>2]|4;break}a=c[b>>2]|0;g=a+12|0;h=c[g>>2]|0;if((h|0)==(c[a+16>>2]|0)){bd[c[(c[a>>2]|0)+40>>2]&255](a)|0;a=c[b>>2]|0;if(!a)g=1;else j=25}else{c[g>>2]=h+4;j=25}do if((j|0)==25){g=c[a+12>>2]|0;if((g|0)==(c[a+16>>2]|0))a=bd[c[(c[a>>2]|0)+36>>2]&255](a)|0;else a=c[g>>2]|0;if((a|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}while(0);do if(i){a=c[i+12>>2]|0;if((a|0)==(c[i+16>>2]|0))a=bd[c[(c[i>>2]|0)+36>>2]&255](i)|0;else a=c[a>>2]|0;if((a|0)!=-1)if(g)break a;else break;else{c[d>>2]=0;j=37;break}}else j=37;while(0);if((j|0)==37?!g:0)break;c[e>>2]=c[e>>2]|2}while(0);return}function hG(a){a=a|0;iG(a+8|0);return}function iG(a){a=a|0;var b=0,d=0,e=0;b=c[a>>2]|0;o=0;d=gb(45)|0;e=o;o=0;do if(!(e&1)){if((b|0)!=(d|0)?(o=0,ka(344,c[a>>2]|0),e=o,o=0,e&1):0)break;return}while(0);e=cc(0)|0;oq(e)}function jG(a){a=a|0;iG(a+8|0);Uz(a);return}function kG(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0;l=i;i=i+112|0;k=l+4|0;e=l;c[e>>2]=k+100;lG(b+8|0,k,e,g,h,j);g=c[e>>2]|0;e=c[d>>2]|0;if((k|0)!=(g|0))do{j=a[k>>0]|0;do if(e){f=e+24|0;h=c[f>>2]|0;if((h|0)==(c[e+28>>2]|0)){d=(rd[c[(c[e>>2]|0)+52>>2]&127](e,j&255)|0)==-1;e=d?0:e;break}else{c[f>>2]=h+1;a[h>>0]=j;break}}else e=0;while(0);k=k+1|0}while((k|0)!=(g|0));i=l;return e|0}function lG(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;m=i;i=i+16|0;l=m;a[l>>0]=37;j=l+1|0;a[j>>0]=g;k=l+2|0;a[k>>0]=h;a[l+3>>0]=0;if(h<<24>>24){a[j>>0]=h;a[k>>0]=g}c[e>>2]=d+(Ub(d|0,(c[e>>2]|0)-d|0,l|0,f|0,c[b>>2]|0)|0);i=m;return}function mG(a){a=a|0;iG(a+8|0);return}function nG(a){a=a|0;iG(a+8|0);Uz(a);return}function oG(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0;j=i;i=i+416|0;e=j+8|0;d=j;c[d>>2]=e+400;pG(a+8|0,e,d,f,g,h);a=c[d>>2]|0;d=c[b>>2]|0;if((e|0)!=(a|0)){f=e;do{e=c[f>>2]|0;if(!d)d=0;else{g=d+24|0;h=c[g>>2]|0;if((h|0)==(c[d+28>>2]|0))e=rd[c[(c[d>>2]|0)+52>>2]&127](d,e)|0;else{c[g>>2]=h+4;c[h>>2]=e}d=(e|0)==-1?0:d}f=f+4|0}while((f|0)!=(a|0))}i=j;return d|0}function pG(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+128|0;l=h+16|0;m=h+12|0;j=h;k=h+8|0;c[m>>2]=l+100;lG(a,l,m,e,f,g);f=j;c[f>>2]=0;c[f+4>>2]=0;c[k>>2]=l;f=(c[d>>2]|0)-b>>2;g=lB(c[a>>2]|0)|0;o=0;f=kb(66,b|0,k|0,f|0,j|0)|0;a=o;o=0;if(a&1){f=cc()|0;if((g|0)!=0?(o=0,qa(193,g|0)|0,m=o,o=0,m&1):0){m=cc(0)|0;oq(m)}bc(f|0)}if((g|0)!=0?(o=0,qa(193,g|0)|0,m=o,o=0,m&1):0){m=cc(0)|0;oq(m)}if((f|0)==-1)lH(61314);else{c[d>>2]=b+(f<<2);i=h;return}}function qG(a){a=a|0;return}function rG(a){a=a|0;Uz(a);return}function sG(a){a=a|0;return 127}function tG(a){a=a|0;return 127}function uG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function vG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function wG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function xG(a,b){a=a|0;b=b|0;GC(a,1,45);return}function yG(a){a=a|0;return 0}function zG(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function AG(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function BG(a){a=a|0;return}function CG(a){a=a|0;Uz(a);return}function DG(a){a=a|0;return 127}function EG(a){a=a|0;return 127}function FG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function GG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function HG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function IG(a,b){a=a|0;b=b|0;GC(a,1,45);return}function JG(a){a=a|0;return 0}function KG(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function LG(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function MG(a){a=a|0;return}function NG(a){a=a|0;Uz(a);return}function OG(a){a=a|0;return 2147483647}function PG(a){a=a|0;return 2147483647}function QG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function RG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function SG(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function TG(a,b){a=a|0;b=b|0;YC(a,1,45);return}function UG(a){a=a|0;return 0}function VG(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function WG(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function XG(a){a=a|0;return}function YG(a){a=a|0;Uz(a);return}function ZG(a){a=a|0;return 2147483647}function _G(a){a=a|0;return 2147483647}function $G(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function aH(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function bH(a,b){a=a|0;b=b|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function cH(a,b){a=a|0;b=b|0;YC(a,1,45);return}function dH(a){a=a|0;return 0}function eH(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function fH(b,c){b=b|0;c=c|0;a[b>>0]=2;a[b+1>>0]=3;a[b+2>>0]=0;a[b+3>>0]=4;return}function gH(a){a=a|0;return}function hH(a){a=a|0;Uz(a);return}function iH(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;B=i;i=i+240|0;z=B+24|0;A=B;b=B+136|0;D=B+16|0;y=B+12|0;C=B+8|0;p=B+134|0;l=B+4|0;x=B+124|0;c[D>>2]=b;E=D+4|0;c[E>>2]=345;m=b+100|0;o=0;k=qa(192,g|0)|0;w=o;o=0;if(!(w&1)){c[C>>2]=k;o=0;b=Wa(115,C|0,40904)|0;w=o;o=0;a:do if(!(w&1)?(a[p>>0]=0,c[l>>2]=c[e>>2],n=c[g+4>>2]|0,o=0,c[z>>2]=c[l>>2],n=ua(42,d|0,z|0,f|0,C|0,n|0,h|0,p|0,b|0,D|0,y|0,m|0)|0,w=o,o=0,!(w&1)):0){b:do if(n){o=0;kb(c[(c[b>>2]|0)+32>>2]|0,b|0,61335,61345,x|0)|0;w=o;o=0;if(w&1){G=10;break a}l=c[y>>2]|0;m=c[D>>2]|0;b=l-m|0;if((b|0)>98){b=yC(b+2|0)|0;k=b;if(!b){o=0;ob(46);w=o;o=0;if(!(w&1)){b=0;G=13}}else G=13}else{k=0;b=z;G=13}do if((G|0)==13){if(a[p>>0]|0){a[b>>0]=45;b=b+1|0}v=x+10|0;w=x;if(m>>>0<l>>>0){n=x+1|0;f=n+1|0;g=f+1|0;p=g+1|0;q=p+1|0;r=q+1|0;s=r+1|0;t=s+1|0;u=t+1|0;do{l=a[m>>0]|0;do if((a[x>>0]|0)!=l<<24>>24)if((a[n>>0]|0)!=l<<24>>24)if((a[f>>0]|0)!=l<<24>>24)if((a[g>>0]|0)!=l<<24>>24)if((a[p>>0]|0)==l<<24>>24)l=p;else{if((a[q>>0]|0)==l<<24>>24){l=q;break}if((a[r>>0]|0)==l<<24>>24){l=r;break}if((a[s>>0]|0)==l<<24>>24){l=s;break}if((a[t>>0]|0)==l<<24>>24){l=t;break}l=(a[u>>0]|0)==l<<24>>24?u:v}else l=g;else l=f;else l=n;else l=x;while(0);a[b>>0]=a[61335+(l-w)>>0]|0;m=m+1|0;b=b+1|0}while(m>>>0<(c[y>>2]|0)>>>0)}a[b>>0]=0;c[A>>2]=j;if((TB(z,61346,A)|0)!=1?(o=0,ka(346,61350),j=o,o=0,j&1):0)break;if(k)zC(k);break b}while(0);b=cc()|0;if(!k){l=b;k=D;break a}zC(k);l=b;k=D;break a}while(0);b=c[d>>2]|0;do if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;b=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;j=o;o=0;if(j&1){G=10;break a}if((b|0)==-1){c[d>>2]=0;b=0;break}else{b=c[d>>2]|0;break}}}else b=0;while(0);k=(b|0)==0;b=c[e>>2]|0;do if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;b=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;j=o;o=0;if(j&1){G=10;break a}if((b|0)==-1){c[e>>2]=0;G=37;break}}if(!k)G=38}else G=37;while(0);if((G|0)==37?k:0)G=38;if((G|0)==38)c[h>>2]=c[h>>2]|2;k=c[d>>2]|0;EL(c[C>>2]|0)|0;b=c[D>>2]|0;c[D>>2]=0;if((b|0)!=0?(o=0,ka(c[E>>2]|0,b|0),G=o,o=0,G&1):0){G=cc(0)|0;oq(G)}i=B;return k|0}else G=10;while(0);if((G|0)==10){l=cc()|0;k=D}EL(c[C>>2]|0)|0;b=c[k>>2]|0;c[k>>2]=0;if(!b)F=l;else{k=c[E>>2]|0;G=45}}else{l=cc()|0;c[D>>2]=0;k=345;G=45}if((G|0)==45){o=0;ka(k|0,b|0);G=o;o=0;if(G&1){G=cc(0)|0;oq(G)}else F=l}bc(F|0);return 0}function jH(a){a=a|0;return}function kH(e,f,g,h,j,k,l,m,n,p,q){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;ba=i;i=i+512|0;P=ba+88|0;u=ba+96|0;da=ba+80|0;T=ba+72|0;S=ba+68|0;U=ba+500|0;Q=ba+497|0;V=ba+496|0;Y=ba+56|0;aa=ba+44|0;_=ba+32|0;Z=ba+20|0;$=ba+8|0;R=ba+4|0;X=ba;c[P>>2]=q;c[da>>2]=u;ca=da+4|0;c[ca>>2]=345;c[T>>2]=u;c[S>>2]=u+400;c[Y>>2]=0;c[Y+4>>2]=0;c[Y+8>>2]=0;c[aa>>2]=0;c[aa+4>>2]=0;c[aa+8>>2]=0;c[_>>2]=0;c[_+4>>2]=0;c[_+8>>2]=0;c[Z>>2]=0;c[Z+4>>2]=0;c[Z+8>>2]=0;c[$>>2]=0;c[$+4>>2]=0;c[$+8>>2]=0;o=0;Ua(42,g|0,h|0,U|0,Q|0,V|0,Y|0,aa|0,_|0,Z|0,R|0);O=o;o=0;a:do if(O&1)m=cc()|0;else{c[p>>2]=c[n>>2];I=m+8|0;J=_+4|0;K=Z+4|0;L=Z+8|0;M=Z+1|0;N=_+8|0;O=_+1|0;z=(j&512|0)!=0;A=aa+8|0;B=aa+1|0;C=aa+4|0;D=$+4|0;E=$+8|0;F=$+1|0;G=U+3|0;H=Y+4|0;y=0;t=0;b:while(1){q=c[e>>2]|0;do if(q){if((c[q+12>>2]|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}if((q|0)==-1){c[e>>2]=0;q=0;break}else{q=c[e>>2]|0;break}}}else q=0;while(0);q=(q|0)==0;m=c[f>>2]|0;do if(m){if((c[m+12>>2]|0)!=(c[m+16>>2]|0))if(q){x=m;break}else{W=235;break b}o=0;g=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;x=o;o=0;if(x&1){W=24;break b}if((g|0)!=-1)if(q){x=m;break}else{W=235;break b}else{c[f>>2]=0;W=15;break}}else W=15;while(0);if((W|0)==15){W=0;if(q){W=235;break}else x=0}c:do switch(a[U+y>>0]|0){case 1:{if((y|0)!=3){q=c[e>>2]|0;m=c[q+12>>2]|0;if((m|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;W=o;o=0;if(W&1){W=24;break b}}else q=d[m>>0]|0;if((q&255)<<24>>24<=-1){W=40;break b}if(!(b[(c[I>>2]|0)+(q<<24>>24<<1)>>1]&8192)){W=40;break b}q=c[e>>2]|0;m=q+12|0;g=c[m>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;W=o;o=0;if(W&1){W=24;break b}}else{c[m>>2]=g+1;q=d[g>>0]|0}o=0;ma(93,$|0,q&255|0);W=o;o=0;if(W&1){W=24;break b}else{q=x;h=x;W=42}}break}case 0:{if((y|0)!=3){q=x;h=x;W=42}break}case 3:{m=a[_>>0]|0;q=(m&1)==0?(m&255)>>>1:c[J>>2]|0;g=a[Z>>0]|0;h=(g&1)==0?(g&255)>>>1:c[K>>2]|0;if((q|0)!=(0-h|0)){if(!q){q=c[e>>2]|0;m=c[q+12>>2]|0;if((m|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}m=a[Z>>0]|0}else{q=d[m>>0]|0;m=g}if((q&255)<<24>>24!=(a[((m&1)==0?M:c[L>>2]|0)>>0]|0))break c;q=c[e>>2]|0;m=q+12|0;g=c[m>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;qa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}}else c[m>>2]=g+1;a[l>>0]=1;x=a[Z>>0]|0;t=((x&1)==0?(x&255)>>>1:c[K>>2]|0)>>>0>1?Z:t;break c}j=c[e>>2]|0;r=c[j+12>>2]|0;g=c[j+16>>2]|0;q=(r|0)==(g|0);if(!h){if(q){o=0;q=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;x=o;o=0;if(x&1){W=24;break b}m=a[_>>0]|0}else q=d[r>>0]|0;if((q&255)<<24>>24!=(a[((m&1)==0?O:c[N>>2]|0)>>0]|0)){a[l>>0]=1;break c}q=c[e>>2]|0;m=q+12|0;g=c[m>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;qa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}}else c[m>>2]=g+1;x=a[_>>0]|0;t=((x&1)==0?(x&255)>>>1:c[J>>2]|0)>>>0>1?_:t;break c}if(q){o=0;q=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;x=o;o=0;if(x&1){W=24;break b}g=c[e>>2]|0;m=a[_>>0]|0;j=g;r=c[g+12>>2]|0;g=c[g+16>>2]|0}else q=d[r>>0]|0;h=j+12|0;g=(r|0)==(g|0);if((q&255)<<24>>24==(a[((m&1)==0?O:c[N>>2]|0)>>0]|0)){if(g){o=0;qa(c[(c[j>>2]|0)+40>>2]|0,j|0)|0;x=o;o=0;if(x&1){W=24;break b}}else c[h>>2]=r+1;x=a[_>>0]|0;t=((x&1)==0?(x&255)>>>1:c[J>>2]|0)>>>0>1?_:t;break c}if(g){o=0;q=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;x=o;o=0;if(x&1){W=24;break b}}else q=d[r>>0]|0;if((q&255)<<24>>24!=(a[((a[Z>>0]&1)==0?M:c[L>>2]|0)>>0]|0)){W=104;break b}q=c[e>>2]|0;m=q+12|0;g=c[m>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;qa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}}else c[m>>2]=g+1;a[l>>0]=1;x=a[Z>>0]|0;t=((x&1)==0?(x&255)>>>1:c[K>>2]|0)>>>0>1?Z:t}break}case 2:{if(!(y>>>0<2|(t|0)!=0)?!(z|(y|0)==2&(a[G>>0]|0)!=0):0){t=0;break c}v=a[aa>>0]|0;q=(v&1)==0;w=c[A>>2]|0;g=q?B:w;s=g;d:do if((y|0)!=0?(d[U+(y+-1)>>0]|0)<2:0){r=q?(v&255)>>>1:c[C>>2]|0;h=g+r|0;j=c[I>>2]|0;e:do if(!r)m=s;else{r=g;m=s;do{q=a[r>>0]|0;if(q<<24>>24<=-1)break e;if(!(b[j+(q<<24>>24<<1)>>1]&8192))break e;r=r+1|0;m=r}while((r|0)!=(h|0))}while(0);h=m-s|0;j=a[$>>0]|0;q=(j&1)==0;j=q?(j&255)>>>1:c[D>>2]|0;if(j>>>0>=h>>>0){q=q?F:c[E>>2]|0;r=q+j|0;if((m|0)!=(s|0)){q=q+(j-h)|0;while(1){if((a[q>>0]|0)!=(a[g>>0]|0)){m=s;break d}q=q+1|0;if((q|0)==(r|0))break;else g=g+1|0}}}else m=s}else m=s;while(0);q=(v&1)==0;q=(q?B:w)+(q?(v&255)>>>1:c[C>>2]|0)|0;f:do if((m|0)!=(q|0)){j=x;h=x;q=m;while(1){m=c[e>>2]|0;do if(m){if((c[m+12>>2]|0)==(c[m+16>>2]|0)){o=0;m=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;x=o;o=0;if(x&1){W=21;break b}if((m|0)==-1){c[e>>2]=0;m=0;break}else{m=c[e>>2]|0;break}}}else m=0;while(0);g=(m|0)==0;do if(h){if((c[h+12>>2]|0)!=(c[h+16>>2]|0))if(g){m=j;r=h;break}else break f;o=0;m=qa(c[(c[h>>2]|0)+36>>2]|0,h|0)|0;x=o;o=0;if(x&1){W=21;break b}if((m|0)!=-1)if(g^(j|0)==0){m=j;r=j;break}else break f;else{c[f>>2]=0;m=0;W=131;break}}else{m=j;W=131}while(0);if((W|0)==131){W=0;if(g)break f;else r=0}g=c[e>>2]|0;h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0)){o=0;g=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;x=o;o=0;if(x&1){W=21;break b}}else g=d[h>>0]|0;if((g&255)<<24>>24!=(a[q>>0]|0))break f;g=c[e>>2]|0;h=g+12|0;j=c[h>>2]|0;if((j|0)==(c[g+16>>2]|0)){o=0;qa(c[(c[g>>2]|0)+40>>2]|0,g|0)|0;x=o;o=0;if(x&1){W=21;break b}}else c[h>>2]=j+1;q=q+1|0;g=a[aa>>0]|0;x=(g&1)==0;g=(x?B:c[A>>2]|0)+(x?(g&255)>>>1:c[C>>2]|0)|0;if((q|0)==(g|0)){q=g;break}else{j=m;h=r}}}while(0);if(z?(x=a[aa>>0]|0,w=(x&1)==0,(q|0)!=((w?B:c[A>>2]|0)+(w?(x&255)>>>1:c[C>>2]|0)|0)):0){W=143;break b}break}case 4:{s=a[V>>0]|0;m=x;j=x;q=0;g:while(1){g=c[e>>2]|0;do if(g){if((c[g+12>>2]|0)==(c[g+16>>2]|0)){o=0;g=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;x=o;o=0;if(x&1){W=23;break b}if((g|0)==-1){c[e>>2]=0;g=0;break}else{g=c[e>>2]|0;break}}}else g=0;while(0);h=(g|0)==0;do if(j){if((c[j+12>>2]|0)!=(c[j+16>>2]|0))if(h){r=m;break}else{h=m;break g}o=0;g=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;x=o;o=0;if(x&1){W=23;break b}if((g|0)!=-1)if(h^(m|0)==0){r=m;j=m;break}else{h=m;break g}else{c[f>>2]=0;m=0;W=156;break}}else W=156;while(0);if((W|0)==156){W=0;if(h){h=m;break}else{r=m;j=0}}m=c[e>>2]|0;g=c[m+12>>2]|0;if((g|0)==(c[m+16>>2]|0)){o=0;m=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;x=o;o=0;if(x&1){W=23;break b}}else m=d[g>>0]|0;g=m&255;if(g<<24>>24>-1?(b[(c[I>>2]|0)+(m<<24>>24<<1)>>1]&2048)!=0:0){m=c[p>>2]|0;if((m|0)==(c[P>>2]|0)){o=0;mb(116,n|0,p|0,P|0);x=o;o=0;if(x&1){W=23;break b}m=c[p>>2]|0}c[p>>2]=m+1;a[m>>0]=g;q=q+1|0}else{x=a[Y>>0]|0;if(!(g<<24>>24==s<<24>>24&((q|0)!=0?(((x&1)==0?(x&255)>>>1:c[H>>2]|0)|0)!=0:0))){h=r;break}if((u|0)==(c[S>>2]|0)){o=0;mb(117,da|0,T|0,S|0);x=o;o=0;if(x&1){W=23;break b}u=c[T>>2]|0}x=u+4|0;c[T>>2]=x;c[u>>2]=q;u=x;q=0}m=c[e>>2]|0;g=m+12|0;h=c[g>>2]|0;if((h|0)==(c[m+16>>2]|0)){o=0;qa(c[(c[m>>2]|0)+40>>2]|0,m|0)|0;x=o;o=0;if(x&1){W=23;break b}else{m=r;continue}}else{c[g>>2]=h+1;m=r;continue}}if((q|0)!=0?(c[da>>2]|0)!=(u|0):0){if((u|0)==(c[S>>2]|0)){o=0;mb(117,da|0,T|0,S|0);x=o;o=0;if(x&1){W=24;break b}u=c[T>>2]|0}x=u+4|0;c[T>>2]=x;c[u>>2]=q;u=x}r=c[R>>2]|0;if((r|0)>0){q=c[e>>2]|0;do if(q){if((c[q+12>>2]|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}if((q|0)==-1){c[e>>2]=0;q=0;break}else{q=c[e>>2]|0;break}}}else q=0;while(0);q=(q|0)==0;do if(h){if((c[h+12>>2]|0)==(c[h+16>>2]|0)){o=0;m=qa(c[(c[h>>2]|0)+36>>2]|0,h|0)|0;x=o;o=0;if(x&1){W=24;break b}if((m|0)==-1){c[f>>2]=0;W=193;break}}if(!q){W=198;break b}}else W=193;while(0);if((W|0)==193){W=0;if(q){W=198;break b}else h=0}q=c[e>>2]|0;m=c[q+12>>2]|0;if((m|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}}else q=d[m>>0]|0;if((q&255)<<24>>24!=(a[Q>>0]|0)){W=198;break b}q=c[e>>2]|0;m=q+12|0;g=c[m>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;qa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=24;break b}}else c[m>>2]=g+1;if((r|0)>0){j=h;g=h;s=r;while(1){q=c[e>>2]|0;do if(q){if((c[q+12>>2]|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=22;break b}if((q|0)==-1){c[e>>2]=0;q=0;break}else{q=c[e>>2]|0;break}}}else q=0;while(0);m=(q|0)==0;do if(g){if((c[g+12>>2]|0)!=(c[g+16>>2]|0))if(m){q=j;r=g;break}else{W=222;break b}o=0;q=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;x=o;o=0;if(x&1){W=22;break b}if((q|0)!=-1)if(m^(j|0)==0){q=j;r=j;break}else{W=222;break b}else{c[f>>2]=0;q=0;W=215;break}}else{q=j;W=215}while(0);if((W|0)==215){W=0;if(m){W=222;break b}else r=0}m=c[e>>2]|0;g=c[m+12>>2]|0;if((g|0)==(c[m+16>>2]|0)){o=0;m=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;x=o;o=0;if(x&1){W=22;break b}}else m=d[g>>0]|0;if((m&255)<<24>>24<=-1){W=222;break b}if(!(b[(c[I>>2]|0)+(m<<24>>24<<1)>>1]&2048)){W=222;break b}if((c[p>>2]|0)==(c[P>>2]|0)?(o=0,mb(116,n|0,p|0,P|0),x=o,o=0,x&1):0){W=22;break b}m=c[e>>2]|0;g=c[m+12>>2]|0;if((g|0)==(c[m+16>>2]|0)){o=0;m=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;x=o;o=0;if(x&1){W=22;break b}}else m=d[g>>0]|0;g=c[p>>2]|0;c[p>>2]=g+1;a[g>>0]=m;m=s;s=s+-1|0;c[R>>2]=s;g=c[e>>2]|0;h=g+12|0;j=c[h>>2]|0;if((j|0)==(c[g+16>>2]|0)){o=0;qa(c[(c[g>>2]|0)+40>>2]|0,g|0)|0;x=o;o=0;if(x&1){W=22;break b}}else c[h>>2]=j+1;if((m|0)<=1)break;else{j=q;g=r}}}}if((c[p>>2]|0)==(c[n>>2]|0)){W=233;break b}break}default:{}}while(0);h:do if((W|0)==42)while(1){W=0;m=c[e>>2]|0;do if(m){if((c[m+12>>2]|0)==(c[m+16>>2]|0)){o=0;m=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;x=o;o=0;if(x&1){W=20;break b}if((m|0)==-1){c[e>>2]=0;m=0;break}else{m=c[e>>2]|0;break}}}else m=0;while(0);g=(m|0)==0;do if(h){if((c[h+12>>2]|0)!=(c[h+16>>2]|0))if(g){j=q;break}else break h;o=0;m=qa(c[(c[h>>2]|0)+36>>2]|0,h|0)|0;x=o;o=0;if(x&1){W=20;break b}if((m|0)!=-1)if(g^(q|0)==0){j=q;h=q;break}else break h;else{c[f>>2]=0;q=0;W=54;break}}else W=54;while(0);if((W|0)==54){W=0;if(g)break h;else{j=q;h=0}}q=c[e>>2]|0;m=c[q+12>>2]|0;if((m|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;x=o;o=0;if(x&1){W=20;break b}}else q=d[m>>0]|0;if((q&255)<<24>>24<=-1)break h;if(!(b[(c[I>>2]|0)+(q<<24>>24<<1)>>1]&8192))break h;q=c[e>>2]|0;m=q+12|0;g=c[m>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;W=o;o=0;if(W&1){W=20;break b}}else{c[m>>2]=g+1;q=d[g>>0]|0}o=0;ma(93,$|0,q&255|0);W=o;o=0;if(W&1){W=20;break b}else{q=j;W=42}}while(0);y=y+1|0;if(y>>>0>=4){W=235;break}}i:switch(W|0){case 20:{m=cc()|0;break a}case 21:{m=cc()|0;break a}case 22:{m=cc()|0;break a}case 23:{m=cc()|0;break a}case 24:{m=cc()|0;break a}case 40:{c[k>>2]=c[k>>2]|4;m=0;break}case 104:{c[k>>2]=c[k>>2]|4;m=0;break}case 143:{c[k>>2]=c[k>>2]|4;m=0;break}case 198:{c[k>>2]=c[k>>2]|4;m=0;break}case 222:{c[k>>2]=c[k>>2]|4;m=0;break}case 233:{c[k>>2]=c[k>>2]|4;m=0;break}case 235:{j:do if(t){j=t+1|0;r=t+8|0;s=t+4|0;g=1;k:while(1){q=a[t>>0]|0;if(!(q&1))q=(q&255)>>>1;else q=c[s>>2]|0;if(g>>>0>=q>>>0)break j;q=c[e>>2]|0;do if(q){if((c[q+12>>2]|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;p=o;o=0;if(p&1){W=19;break k}if((q|0)==-1){c[e>>2]=0;q=0;break}else{q=c[e>>2]|0;break}}}else q=0;while(0);m=(q|0)==0;q=c[f>>2]|0;do if(q){if((c[q+12>>2]|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;p=o;o=0;if(p&1){W=19;break k}if((q|0)==-1){c[f>>2]=0;W=253;break}}if(!m){W=260;break k}}else W=253;while(0);if((W|0)==253?(W=0,m):0){W=260;break}q=c[e>>2]|0;m=c[q+12>>2]|0;if((m|0)==(c[q+16>>2]|0)){o=0;q=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;p=o;o=0;if(p&1){W=19;break}}else q=d[m>>0]|0;if(!(a[t>>0]&1))m=j;else m=c[r>>2]|0;if((q&255)<<24>>24!=(a[m+g>>0]|0)){W=260;break}q=g+1|0;m=c[e>>2]|0;g=m+12|0;h=c[g>>2]|0;if((h|0)==(c[m+16>>2]|0)){o=0;qa(c[(c[m>>2]|0)+40>>2]|0,m|0)|0;p=o;o=0;if(p&1){W=19;break}else{g=q;continue}}else{c[g>>2]=h+1;g=q;continue}}if((W|0)==19){m=cc()|0;break a}else if((W|0)==260){c[k>>2]=c[k>>2]|4;m=0;break i}}while(0);q=c[da>>2]|0;if((q|0)!=(u|0)?(c[X>>2]=0,oH(Y,q,u,X),(c[X>>2]|0)!=0):0){c[k>>2]=c[k>>2]|4;m=0}else m=1;break}}IC($);IC(Z);IC(_);IC(aa);IC(Y);q=c[da>>2]|0;c[da>>2]=0;if((q|0)!=0?(o=0,ka(c[ca>>2]|0,q|0),da=o,o=0,da&1):0){da=cc(0)|0;oq(da)}i=ba;return m|0}while(0);IC($);IC(Z);IC(_);IC(aa);IC(Y);q=c[da>>2]|0;c[da>>2]=0;if((q|0)!=0?(o=0,ka(c[ca>>2]|0,q|0),da=o,o=0,da&1):0){da=cc(0)|0;oq(da)}bc(m|0);return 0}function lH(a){a=a|0;var b=0;b=Ob(8)|0;o=0;ma(222,b|0,a|0);a=o;o=0;if(a&1){a=cc()|0;Nb(b|0);bc(a|0)}else Hc(b|0,1800,218)}function mH(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;w=i;i=i+144|0;k=w+24|0;b=w+32|0;x=w+16|0;s=w+8|0;p=w+4|0;q=w+28|0;l=w;c[x>>2]=b;A=x+4|0;c[A>>2]=345;m=b+100|0;o=0;v=qa(192,g|0)|0;n=o;o=0;if(!(n&1)){c[p>>2]=v;o=0;n=Wa(115,p|0,40904)|0;b=o;o=0;a:do if(!(b&1)?(a[q>>0]=0,t=c[e>>2]|0,c[l>>2]=t,r=c[g+4>>2]|0,u=t,o=0,c[k>>2]=c[l>>2],r=ua(42,d|0,k|0,f|0,p|0,r|0,h|0,q|0,n|0,x|0,s|0,m|0)|0,g=o,o=0,!(g&1)):0){if(r){if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}if(a[q>>0]|0){o=0;b=Wa(c[(c[n>>2]|0)+28>>2]|0,n|0,45)|0;g=o;o=0;if(g&1)break;o=0;ma(93,j|0,b|0);g=o;o=0;if(g&1)break}o=0;l=Wa(c[(c[n>>2]|0)+28>>2]|0,n|0,48)|0;g=o;o=0;if(g&1)break;b=c[x>>2]|0;m=c[s>>2]|0;k=m+-1|0;b:do if(b>>>0<k>>>0)do{if((a[b>>0]|0)!=l<<24>>24)break b;b=b+1|0}while(b>>>0<k>>>0);while(0);o=0;ya(122,j|0,b|0,m|0)|0;j=o;o=0;if(j&1)break}b=c[d>>2]|0;do if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;b=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;j=o;o=0;if(j&1)break a;if((b|0)==-1){c[d>>2]=0;b=0;break}else{b=c[d>>2]|0;break}}}else b=0;while(0);k=(b|0)==0;do if(t){if((c[u+12>>2]|0)==(c[u+16>>2]|0)){o=0;b=qa(c[(c[t>>2]|0)+36>>2]|0,u|0)|0;u=o;o=0;if(u&1)break a;if((b|0)==-1){c[e>>2]=0;z=29;break}}if(!k)z=30}else z=29;while(0);if((z|0)==29?k:0)z=30;if((z|0)==30)c[h>>2]=c[h>>2]|2;k=c[d>>2]|0;EL(v)|0;b=c[x>>2]|0;c[x>>2]=0;if((b|0)!=0?(o=0,ka(c[A>>2]|0,b|0),A=o,o=0,A&1):0){A=cc(0)|0;oq(A)}i=w;return k|0}while(0);k=cc()|0;EL(v)|0;b=c[x>>2]|0;c[x>>2]=0;if(!b)y=k;else z=36}else{k=cc()|0;c[x>>2]=0;z=36}if((z|0)==36){o=0;ka(c[A>>2]|0,b|0);A=o;o=0;if(A&1){A=cc(0)|0;oq(A)}else y=k}bc(y|0);return 0}function nH(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+112|0;n=z+100|0;p=z+88|0;q=z+76|0;r=z+64|0;s=z+52|0;t=z+48|0;u=z+36|0;v=z+24|0;w=z+12|0;x=z;do if(b){b=cI(d,40512)|0;$c[c[(c[b>>2]|0)+44>>2]&511](n,b);x=c[n>>2]|0;a[e>>0]=x;a[e+1>>0]=x>>8;a[e+2>>0]=x>>16;a[e+3>>0]=x>>24;$c[c[(c[b>>2]|0)+32>>2]&511](p,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}o=0;ma(114,l|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[l>>2]=c[p>>2];c[l+4>>2]=c[p+4>>2];c[l+8>>2]=c[p+8>>2];c[p>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;IC(p);$c[c[(c[b>>2]|0)+28>>2]&511](q,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}o=0;ma(114,k|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[k>>2]=c[q>>2];c[k+4>>2]=c[q+4>>2];c[k+8>>2]=c[q+8>>2];c[q>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;IC(q);a[f>>0]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;a[g>>0]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[b>>2]|0)+20>>2]&511](r,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}o=0;ma(114,h|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)};c[h>>2]=c[r>>2];c[h+4>>2]=c[r+4>>2];c[h+8>>2]=c[r+8>>2];c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;IC(r);$c[c[(c[b>>2]|0)+24>>2]&511](s,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}o=0;ma(114,j|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)}else{c[j>>2]=c[s>>2];c[j+4>>2]=c[s+4>>2];c[j+8>>2]=c[s+8>>2];c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;IC(s);y=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}else{b=cI(d,40448)|0;$c[c[(c[b>>2]|0)+44>>2]&511](t,b);t=c[t>>2]|0;a[e>>0]=t;a[e+1>>0]=t>>8;a[e+2>>0]=t>>16;a[e+3>>0]=t>>24;$c[c[(c[b>>2]|0)+32>>2]&511](u,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}o=0;ma(114,l|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[l>>2]=c[u>>2];c[l+4>>2]=c[u+4>>2];c[l+8>>2]=c[u+8>>2];c[u>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;IC(u);$c[c[(c[b>>2]|0)+28>>2]&511](v,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}o=0;ma(114,k|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[k>>2]=c[v>>2];c[k+4>>2]=c[v+4>>2];c[k+8>>2]=c[v+8>>2];c[v>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;IC(v);a[f>>0]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;a[g>>0]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[b>>2]|0)+20>>2]&511](w,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}o=0;ma(114,h|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)};c[h>>2]=c[w>>2];c[h+4>>2]=c[w+4>>2];c[h+8>>2]=c[w+8>>2];c[w>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;IC(w);$c[c[(c[b>>2]|0)+24>>2]&511](x,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}o=0;ma(114,j|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)}else{c[j>>2]=c[x>>2];c[j+4>>2]=c[x+4>>2];c[j+8>>2]=c[x+8>>2];c[x>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;IC(x);y=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}while(0);c[m>>2]=y;i=z;return}function oH(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;g=a[b>>0]|0;i=b+4|0;h=c[i>>2]|0;a:do if(((g&1)==0?(g&255)>>>1:h)|0){if((d|0)!=(e|0)){g=e+-4|0;if(g>>>0>d>>>0){h=d;do{j=c[h>>2]|0;c[h>>2]=c[g>>2];c[g>>2]=j;h=h+4|0;g=g+-4|0}while(h>>>0<g>>>0)}g=a[b>>0]|0;h=c[i>>2]|0}j=(g&1)==0;i=j?b+1|0:c[b+8>>2]|0;e=e+-4|0;b=i+(j?(g&255)>>>1:h)|0;h=a[i>>0]|0;g=h<<24>>24<1|h<<24>>24==127;b:do if(e>>>0>d>>>0){while(1){if(!g?(h<<24>>24|0)!=(c[d>>2]|0):0)break;i=(b-i|0)>1?i+1|0:i;d=d+4|0;h=a[i>>0]|0;g=h<<24>>24<1|h<<24>>24==127;if(d>>>0>=e>>>0)break b}c[f>>2]=4;break a}while(0);if(!g?((c[e>>2]|0)+-1|0)>>>0>=h<<24>>24>>>0:0)c[f>>2]=4}while(0);return}function pH(a){a=a|0;return}function qH(a){a=a|0;Uz(a);return}function rH(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;B=i;i=i+576|0;x=B+424|0;A=B;b=B+24|0;D=B+16|0;y=B+12|0;C=B+8|0;p=B+464|0;l=B+4|0;z=B+468|0;c[D>>2]=b;F=D+4|0;c[F>>2]=345;m=b+400|0;o=0;k=qa(192,g|0)|0;w=o;o=0;if(!(w&1)){c[C>>2]=k;o=0;b=Wa(115,C|0,40896)|0;w=o;o=0;a:do if(!(w&1)?(a[p>>0]=0,c[l>>2]=c[e>>2],n=c[g+4>>2]|0,o=0,c[x>>2]=c[l>>2],n=ua(43,d|0,x|0,f|0,C|0,n|0,h|0,p|0,b|0,D|0,y|0,m|0)|0,w=o,o=0,!(w&1)):0){b:do if(n){o=0;kb(c[(c[b>>2]|0)+48>>2]|0,b|0,61366,61376,x|0)|0;w=o;o=0;if(w&1){G=10;break a}l=c[y>>2]|0;m=c[D>>2]|0;b=l-m|0;if((b|0)>392){b=yC((b>>2)+2|0)|0;k=b;if(!b){o=0;ob(46);w=o;o=0;if(!(w&1)){b=0;G=13}}else G=13}else{k=0;b=z;G=13}do if((G|0)==13){if(a[p>>0]|0){a[b>>0]=45;b=b+1|0}v=x+40|0;w=x;if(m>>>0<l>>>0){n=x+4|0;f=n+4|0;g=f+4|0;p=g+4|0;q=p+4|0;r=q+4|0;s=r+4|0;t=s+4|0;u=t+4|0;do{l=c[m>>2]|0;do if((c[x>>2]|0)!=(l|0))if((c[n>>2]|0)!=(l|0))if((c[f>>2]|0)!=(l|0))if((c[g>>2]|0)!=(l|0))if((c[p>>2]|0)==(l|0))l=p;else{if((c[q>>2]|0)==(l|0)){l=q;break}if((c[r>>2]|0)==(l|0)){l=r;break}if((c[s>>2]|0)==(l|0)){l=s;break}if((c[t>>2]|0)==(l|0)){l=t;break}l=(c[u>>2]|0)==(l|0)?u:v}else l=g;else l=f;else l=n;else l=x;while(0);a[b>>0]=a[61366+(l-w>>2)>>0]|0;m=m+4|0;b=b+1|0}while(m>>>0<(c[y>>2]|0)>>>0)}a[b>>0]=0;c[A>>2]=j;if((TB(z,61346,A)|0)!=1?(o=0,ka(346,61350),j=o,o=0,j&1):0)break;if(k)zC(k);break b}while(0);b=cc()|0;if(!k){l=b;k=D;break a}zC(k);l=b;k=D;break a}while(0);b=c[d>>2]|0;do if(b){k=c[b+12>>2]|0;if((k|0)==(c[b+16>>2]|0)){o=0;b=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;j=o;o=0;if(j&1){G=10;break a}}else b=c[k>>2]|0;if((b|0)==-1){c[d>>2]=0;l=1;break}else{l=(c[d>>2]|0)==0;break}}else l=1;while(0);b=c[e>>2]|0;do if(b){k=c[b+12>>2]|0;if((k|0)==(c[b+16>>2]|0)){o=0;b=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;j=o;o=0;if(j&1){G=10;break a}}else b=c[k>>2]|0;if((b|0)!=-1)if(l)break;else{G=40;break}else{c[e>>2]=0;G=38;break}}else G=38;while(0);if((G|0)==38?l:0)G=40;if((G|0)==40)c[h>>2]=c[h>>2]|2;k=c[d>>2]|0;EL(c[C>>2]|0)|0;b=c[D>>2]|0;c[D>>2]=0;if((b|0)!=0?(o=0,ka(c[F>>2]|0,b|0),G=o,o=0,G&1):0){G=cc(0)|0;oq(G)}i=B;return k|0}else G=10;while(0);if((G|0)==10){l=cc()|0;k=D}EL(c[C>>2]|0)|0;b=c[k>>2]|0;c[k>>2]=0;if(!b)E=l;else{k=c[F>>2]|0;G=47}}else{l=cc()|0;c[D>>2]=0;k=345;G=47}if((G|0)==47){o=0;ka(k|0,b|0);G=o;o=0;if(G&1){G=cc(0)|0;oq(G)}else E=l}bc(E|0);return 0}
function sH(b,e,f,g,h,j,k,l,m,n,p){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;Y=i;i=i+512|0;K=Y+96|0;q=Y+104|0;_=Y+88|0;O=Y+80|0;N=Y+76|0;P=Y+504|0;L=Y+72|0;Q=Y+68|0;T=Y+56|0;X=Y+44|0;V=Y+32|0;U=Y+20|0;W=Y+8|0;M=Y+4|0;S=Y;c[K>>2]=p;c[_>>2]=q;Z=_+4|0;c[Z>>2]=345;c[O>>2]=q;c[N>>2]=q+400;c[T>>2]=0;c[T+4>>2]=0;c[T+8>>2]=0;c[X>>2]=0;c[X+4>>2]=0;c[X+8>>2]=0;c[V>>2]=0;c[V+4>>2]=0;c[V+8>>2]=0;c[U>>2]=0;c[U+4>>2]=0;c[U+8>>2]=0;c[W>>2]=0;c[W+4>>2]=0;c[W+8>>2]=0;o=0;Ua(43,f|0,g|0,P|0,L|0,Q|0,T|0,X|0,V|0,U|0,M|0);J=o;o=0;a:do if(J&1)f=cc()|0;else{c[n>>2]=c[m>>2];G=V+4|0;H=U+4|0;I=U+8|0;J=V+8|0;z=(h&512|0)!=0;A=X+8|0;B=X+4|0;C=W+4|0;D=W+8|0;E=P+3|0;F=T+4|0;y=0;s=0;b:while(1){p=c[b>>2]|0;do if(p){f=c[p+12>>2]|0;if((f|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;x=o;o=0;if(x&1){R=26;break b}}else p=c[f>>2]|0;if((p|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}else g=1;while(0);f=c[e>>2]|0;do if(f){p=c[f+12>>2]|0;if((p|0)==(c[f+16>>2]|0)){o=0;p=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;x=o;o=0;if(x&1){R=26;break b}}else p=c[p>>2]|0;if((p|0)!=-1)if(g){x=f;break}else{t=q;R=244;break b}else{c[e>>2]=0;R=16;break}}else R=16;while(0);if((R|0)==16){R=0;if(g){t=q;R=244;break}else x=0}c:do switch(a[P+y>>0]|0){case 1:{if((y|0)!=3){p=c[b>>2]|0;f=c[p+12>>2]|0;if((f|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;R=o;o=0;if(R&1){R=26;break b}}else p=c[f>>2]|0;o=0;p=ya(c[(c[l>>2]|0)+12>>2]|0,l|0,8192,p|0)|0;R=o;o=0;if(R&1){R=26;break b}if(!p){R=42;break b}p=c[b>>2]|0;f=p+12|0;g=c[f>>2]|0;if((g|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+40>>2]|0,p|0)|0;R=o;o=0;if(R&1){R=26;break b}}else{c[f>>2]=g+4;p=c[g>>2]|0}o=0;ma(223,W|0,p|0);R=o;o=0;if(R&1){R=26;break b}else{p=x;h=x;R=44}}else p=q;break}case 0:{if((y|0)==3)p=q;else{p=x;h=x;R=44}break}case 3:{f=a[V>>0]|0;p=(f&1)==0?(f&255)>>>1:c[G>>2]|0;g=a[U>>0]|0;h=(g&1)==0?(g&255)>>>1:c[H>>2]|0;if((p|0)==(0-h|0))p=q;else{if(!p){p=c[b>>2]|0;f=c[p+12>>2]|0;if((f|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;x=o;o=0;if(x&1){R=26;break b}f=a[U>>0]|0}else{p=c[f>>2]|0;f=g}if((p|0)!=(c[((f&1)==0?H:c[I>>2]|0)>>2]|0)){p=q;break c}p=c[b>>2]|0;f=p+12|0;g=c[f>>2]|0;if((g|0)==(c[p+16>>2]|0)){o=0;qa(c[(c[p>>2]|0)+40>>2]|0,p|0)|0;x=o;o=0;if(x&1){R=26;break b}}else c[f>>2]=g+4;a[k>>0]=1;x=a[U>>0]|0;p=q;s=((x&1)==0?(x&255)>>>1:c[H>>2]|0)>>>0>1?U:s;break c}r=c[b>>2]|0;t=c[r+12>>2]|0;g=c[r+16>>2]|0;p=(t|0)==(g|0);if(!h){if(p){o=0;p=qa(c[(c[r>>2]|0)+36>>2]|0,r|0)|0;x=o;o=0;if(x&1){R=26;break b}f=a[V>>0]|0}else p=c[t>>2]|0;if((p|0)!=(c[((f&1)==0?G:c[J>>2]|0)>>2]|0)){a[k>>0]=1;p=q;break c}p=c[b>>2]|0;f=p+12|0;g=c[f>>2]|0;if((g|0)==(c[p+16>>2]|0)){o=0;qa(c[(c[p>>2]|0)+40>>2]|0,p|0)|0;x=o;o=0;if(x&1){R=26;break b}}else c[f>>2]=g+4;x=a[V>>0]|0;p=q;s=((x&1)==0?(x&255)>>>1:c[G>>2]|0)>>>0>1?V:s;break c}if(p){o=0;p=qa(c[(c[r>>2]|0)+36>>2]|0,r|0)|0;x=o;o=0;if(x&1){R=26;break b}g=c[b>>2]|0;f=a[V>>0]|0;r=g;t=c[g+12>>2]|0;g=c[g+16>>2]|0}else p=c[t>>2]|0;h=r+12|0;g=(t|0)==(g|0);if((p|0)==(c[((f&1)==0?G:c[J>>2]|0)>>2]|0)){if(g){o=0;qa(c[(c[r>>2]|0)+40>>2]|0,r|0)|0;x=o;o=0;if(x&1){R=26;break b}}else c[h>>2]=t+4;x=a[V>>0]|0;p=q;s=((x&1)==0?(x&255)>>>1:c[G>>2]|0)>>>0>1?V:s;break c}if(g){o=0;p=qa(c[(c[r>>2]|0)+36>>2]|0,r|0)|0;x=o;o=0;if(x&1){R=26;break b}}else p=c[t>>2]|0;if((p|0)!=(c[((a[U>>0]&1)==0?H:c[I>>2]|0)>>2]|0)){R=107;break b}p=c[b>>2]|0;f=p+12|0;g=c[f>>2]|0;if((g|0)==(c[p+16>>2]|0)){o=0;qa(c[(c[p>>2]|0)+40>>2]|0,p|0)|0;x=o;o=0;if(x&1){R=26;break b}}else c[f>>2]=g+4;a[k>>0]=1;x=a[U>>0]|0;p=q;s=((x&1)==0?(x&255)>>>1:c[H>>2]|0)>>>0>1?U:s}break}case 2:{if(!(y>>>0<2|(s|0)!=0)?!(z|(y|0)==2&(a[E>>0]|0)!=0):0){p=q;s=0;break c}h=a[X>>0]|0;g=c[A>>2]|0;f=(h&1)==0?B:g;p=f;d:do if((y|0)!=0?(d[P+(y+-1)>>0]|0)<2:0){w=(h&1)==0;e:do if((f|0)!=((w?B:g)+((w?(h&255)>>>1:c[B>>2]|0)<<2)|0)){h=f;while(1){o=0;f=ya(c[(c[l>>2]|0)+12>>2]|0,l|0,8192,c[h>>2]|0)|0;w=o;o=0;if(w&1){R=23;break b}if(!f)break;h=h+4|0;p=h;f=a[X>>0]|0;g=c[A>>2]|0;w=(f&1)==0;if((h|0)==((w?B:g)+((w?(f&255)>>>1:c[B>>2]|0)<<2)|0)){h=f;break e}}h=a[X>>0]|0;g=c[A>>2]|0}while(0);t=(h&1)==0?B:g;f=t;u=p-f>>2;v=a[W>>0]|0;r=(v&1)==0;v=r?(v&255)>>>1:c[C>>2]|0;if(v>>>0>=u>>>0){r=r?C:c[D>>2]|0;w=r+(v<<2)|0;if(!u)f=p;else{r=r+(v-u<<2)|0;while(1){if((c[r>>2]|0)!=(c[t>>2]|0))break d;r=r+4|0;if((r|0)==(w|0)){f=p;break}else t=t+4|0}}}}else f=p;while(0);p=(h&1)==0;p=(p?B:g)+((p?(h&255)>>>1:c[B>>2]|0)<<2)|0;f:do if((f|0)!=(p|0)){r=x;h=x;p=f;while(1){f=c[b>>2]|0;do if(f){g=c[f+12>>2]|0;if((g|0)==(c[f+16>>2]|0)){o=0;f=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;x=o;o=0;if(x&1){R=22;break b}}else f=c[g>>2]|0;if((f|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}else g=1;while(0);do if(h){f=c[h+12>>2]|0;if((f|0)==(c[h+16>>2]|0)){o=0;f=qa(c[(c[h>>2]|0)+36>>2]|0,h|0)|0;x=o;o=0;if(x&1){R=22;break b}}else f=c[f>>2]|0;if((f|0)!=-1)if(g^(r|0)==0){f=r;t=r;break}else break f;else{c[e>>2]=0;f=0;R=136;break}}else{f=r;R=136}while(0);if((R|0)==136){R=0;if(g)break f;else t=0}g=c[b>>2]|0;h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0)){o=0;g=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;x=o;o=0;if(x&1){R=22;break b}}else g=c[h>>2]|0;if((g|0)!=(c[p>>2]|0))break f;g=c[b>>2]|0;h=g+12|0;r=c[h>>2]|0;if((r|0)==(c[g+16>>2]|0)){o=0;qa(c[(c[g>>2]|0)+40>>2]|0,g|0)|0;x=o;o=0;if(x&1){R=22;break b}}else c[h>>2]=r+4;p=p+4|0;g=a[X>>0]|0;x=(g&1)==0;g=(x?B:c[A>>2]|0)+((x?(g&255)>>>1:c[B>>2]|0)<<2)|0;if((p|0)==(g|0)){p=g;break}else{r=f;h=t}}}while(0);if(z?(x=a[X>>0]|0,w=(x&1)==0,(p|0)!=((w?B:c[A>>2]|0)+((w?(x&255)>>>1:c[B>>2]|0)<<2)|0)):0){R=148;break b}else p=q;break}case 4:{v=c[Q>>2]|0;u=x;r=x;p=q;f=0;g:while(1){g=c[b>>2]|0;do if(g){h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0)){o=0;g=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;x=o;o=0;if(x&1){R=25;break b}}else g=c[h>>2]|0;if((g|0)==-1){c[b>>2]=0;h=1;break}else{h=(c[b>>2]|0)==0;break}}else h=1;while(0);do if(r){g=c[r+12>>2]|0;if((g|0)==(c[r+16>>2]|0)){o=0;g=qa(c[(c[r>>2]|0)+36>>2]|0,r|0)|0;x=o;o=0;if(x&1){R=25;break b}}else g=c[g>>2]|0;if((g|0)!=-1)if(h^(u|0)==0){g=u;t=u;break}else{q=u;break g}else{c[e>>2]=0;g=0;R=162;break}}else{g=u;R=162}while(0);if((R|0)==162){R=0;if(h){q=g;break}else t=0}h=c[b>>2]|0;q=c[h+12>>2]|0;if((q|0)==(c[h+16>>2]|0)){o=0;h=qa(c[(c[h>>2]|0)+36>>2]|0,h|0)|0;x=o;o=0;if(x&1){R=25;break b}}else h=c[q>>2]|0;o=0;q=ya(c[(c[l>>2]|0)+12>>2]|0,l|0,2048,h|0)|0;x=o;o=0;if(x&1){R=25;break b}if(q){q=c[n>>2]|0;if((q|0)==(c[K>>2]|0)){o=0;mb(118,m|0,n|0,K|0);x=o;o=0;if(x&1){R=25;break b}q=c[n>>2]|0}c[n>>2]=q+4;c[q>>2]=h;f=f+1|0}else{x=a[T>>0]|0;if(!((h|0)==(v|0)&((f|0)!=0?(((x&1)==0?(x&255)>>>1:c[F>>2]|0)|0)!=0:0))){q=g;break}if((p|0)==(c[N>>2]|0)){o=0;mb(117,_|0,O|0,N|0);x=o;o=0;if(x&1){R=25;break b}p=c[O>>2]|0}x=p+4|0;c[O>>2]=x;c[p>>2]=f;p=x;f=0}h=c[b>>2]|0;q=h+12|0;r=c[q>>2]|0;if((r|0)==(c[h+16>>2]|0)){o=0;qa(c[(c[h>>2]|0)+40>>2]|0,h|0)|0;x=o;o=0;if(x&1){R=25;break b}else{u=g;r=t;continue}}else{c[q>>2]=r+4;u=g;r=t;continue}}if((f|0)!=0?(c[_>>2]|0)!=(p|0):0){if((p|0)==(c[N>>2]|0)){o=0;mb(117,_|0,O|0,N|0);x=o;o=0;if(x&1){R=26;break b}p=c[O>>2]|0}x=p+4|0;c[O>>2]=x;c[p>>2]=f;p=x}t=c[M>>2]|0;if((t|0)>0){f=c[b>>2]|0;do if(f){g=c[f+12>>2]|0;if((g|0)==(c[f+16>>2]|0)){o=0;f=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;x=o;o=0;if(x&1){R=26;break b}}else f=c[g>>2]|0;if((f|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}else g=1;while(0);do if(q){f=c[q+12>>2]|0;if((f|0)==(c[q+16>>2]|0)){o=0;f=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;x=o;o=0;if(x&1){R=26;break b}}else f=c[f>>2]|0;if((f|0)!=-1)if(g)break;else{R=206;break b}else{c[e>>2]=0;R=200;break}}else R=200;while(0);if((R|0)==200){R=0;if(g){R=206;break b}else q=0}f=c[b>>2]|0;g=c[f+12>>2]|0;if((g|0)==(c[f+16>>2]|0)){o=0;f=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;x=o;o=0;if(x&1){R=26;break b}}else f=c[g>>2]|0;if((f|0)!=(c[L>>2]|0)){R=206;break b}f=c[b>>2]|0;g=f+12|0;h=c[g>>2]|0;if((h|0)==(c[f+16>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;x=o;o=0;if(x&1){R=26;break b}}else c[g>>2]=h+4;if((t|0)>0){r=q;h=q;u=t;while(1){f=c[b>>2]|0;do if(f){g=c[f+12>>2]|0;if((g|0)==(c[f+16>>2]|0)){o=0;f=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;x=o;o=0;if(x&1){R=24;break b}}else f=c[g>>2]|0;if((f|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}else g=1;while(0);do if(h){f=c[h+12>>2]|0;if((f|0)==(c[h+16>>2]|0)){o=0;f=qa(c[(c[h>>2]|0)+36>>2]|0,h|0)|0;x=o;o=0;if(x&1){R=24;break b}}else f=c[f>>2]|0;if((f|0)!=-1)if(g^(r|0)==0){f=r;t=r;break}else{R=231;break b}else{c[e>>2]=0;f=0;R=224;break}}else{f=r;R=224}while(0);if((R|0)==224){R=0;if(g){R=231;break b}else t=0}g=c[b>>2]|0;h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0)){o=0;g=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;x=o;o=0;if(x&1){R=24;break b}}else g=c[h>>2]|0;o=0;g=ya(c[(c[l>>2]|0)+12>>2]|0,l|0,2048,g|0)|0;x=o;o=0;if(x&1){R=24;break b}if(!g){R=231;break b}if((c[n>>2]|0)==(c[K>>2]|0)?(o=0,mb(118,m|0,n|0,K|0),x=o,o=0,x&1):0){R=24;break b}g=c[b>>2]|0;h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0)){o=0;g=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;x=o;o=0;if(x&1){R=24;break b}}else g=c[h>>2]|0;h=c[n>>2]|0;c[n>>2]=h+4;c[h>>2]=g;g=u;u=u+-1|0;c[M>>2]=u;h=c[b>>2]|0;q=h+12|0;r=c[q>>2]|0;if((r|0)==(c[h+16>>2]|0)){o=0;qa(c[(c[h>>2]|0)+40>>2]|0,h|0)|0;x=o;o=0;if(x&1){R=24;break b}}else c[q>>2]=r+4;if((g|0)<=1)break;else{r=f;h=t}}}}if((c[n>>2]|0)==(c[m>>2]|0)){R=242;break b}break}default:p=q}while(0);h:do if((R|0)==44)while(1){R=0;f=c[b>>2]|0;do if(f){g=c[f+12>>2]|0;if((g|0)==(c[f+16>>2]|0)){o=0;f=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;x=o;o=0;if(x&1){R=21;break b}}else f=c[g>>2]|0;if((f|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}else g=1;while(0);do if(h){f=c[h+12>>2]|0;if((f|0)==(c[h+16>>2]|0)){o=0;f=qa(c[(c[h>>2]|0)+36>>2]|0,h|0)|0;x=o;o=0;if(x&1){R=21;break b}}else f=c[f>>2]|0;if((f|0)!=-1)if(g^(p|0)==0){r=p;h=p;break}else{p=q;break h}else{c[e>>2]=0;p=0;R=57;break}}else R=57;while(0);if((R|0)==57){R=0;if(g){p=q;break h}else{r=p;h=0}}p=c[b>>2]|0;f=c[p+12>>2]|0;if((f|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;x=o;o=0;if(x&1){R=21;break b}}else p=c[f>>2]|0;o=0;p=ya(c[(c[l>>2]|0)+12>>2]|0,l|0,8192,p|0)|0;x=o;o=0;if(x&1){R=21;break b}if(!p){p=q;break h}p=c[b>>2]|0;f=p+12|0;g=c[f>>2]|0;if((g|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+40>>2]|0,p|0)|0;R=o;o=0;if(R&1){R=21;break b}}else{c[f>>2]=g+4;p=c[g>>2]|0}o=0;ma(223,W|0,p|0);R=o;o=0;if(R&1){R=21;break b}else{p=r;R=44}}while(0);y=y+1|0;if(y>>>0>=4){t=p;R=244;break}else q=p}i:switch(R|0){case 21:{f=cc()|0;break a}case 22:{f=cc()|0;break a}case 23:{f=cc()|0;break a}case 24:{f=cc()|0;break a}case 25:{f=cc()|0;break a}case 26:{f=cc()|0;break a}case 42:{c[j>>2]=c[j>>2]|4;f=0;break}case 107:{c[j>>2]=c[j>>2]|4;f=0;break}case 148:{c[j>>2]=c[j>>2]|4;f=0;break}case 206:{c[j>>2]=c[j>>2]|4;f=0;break}case 231:{c[j>>2]=c[j>>2]|4;f=0;break}case 242:{c[j>>2]=c[j>>2]|4;f=0;break}case 244:{j:do if(s){q=s+4|0;r=s+8|0;h=1;k:while(1){p=a[s>>0]|0;if(!(p&1))p=(p&255)>>>1;else p=c[q>>2]|0;if(h>>>0>=p>>>0)break j;p=c[b>>2]|0;do if(p){f=c[p+12>>2]|0;if((f|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;n=o;o=0;if(n&1){R=20;break k}}else p=c[f>>2]|0;if((p|0)==-1){c[b>>2]=0;g=1;break}else{g=(c[b>>2]|0)==0;break}}else g=1;while(0);p=c[e>>2]|0;do if(p){f=c[p+12>>2]|0;if((f|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;n=o;o=0;if(n&1){R=20;break k}}else p=c[f>>2]|0;if((p|0)!=-1)if(g)break;else{R=271;break k}else{c[e>>2]=0;R=263;break}}else R=263;while(0);if((R|0)==263?(R=0,g):0){R=271;break}p=c[b>>2]|0;f=c[p+12>>2]|0;if((f|0)==(c[p+16>>2]|0)){o=0;p=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;n=o;o=0;if(n&1){R=20;break}}else p=c[f>>2]|0;if(!(a[s>>0]&1))f=q;else f=c[r>>2]|0;if((p|0)!=(c[f+(h<<2)>>2]|0)){R=271;break}p=h+1|0;f=c[b>>2]|0;g=f+12|0;h=c[g>>2]|0;if((h|0)==(c[f+16>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;n=o;o=0;if(n&1){R=20;break}else{h=p;continue}}else{c[g>>2]=h+4;h=p;continue}}if((R|0)==20){f=cc()|0;break a}else if((R|0)==271){c[j>>2]=c[j>>2]|4;f=0;break i}}while(0);p=c[_>>2]|0;if((p|0)!=(t|0)?(c[S>>2]=0,oH(T,p,t,S),(c[S>>2]|0)!=0):0){c[j>>2]=c[j>>2]|4;f=0}else f=1;break}}ZC(W);ZC(U);ZC(V);ZC(X);IC(T);p=c[_>>2]|0;c[_>>2]=0;if((p|0)!=0?(o=0,ka(c[Z>>2]|0,p|0),_=o,o=0,_&1):0){_=cc(0)|0;oq(_)}i=Y;return f|0}while(0);ZC(W);ZC(U);ZC(V);ZC(X);IC(T);p=c[_>>2]|0;c[_>>2]=0;if((p|0)!=0?(o=0,ka(c[Z>>2]|0,p|0),_=o,o=0,_&1):0){_=cc(0)|0;oq(_)}bc(f|0);return 0}function tH(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;w=i;i=i+432|0;k=w+424|0;b=w+24|0;y=w+16|0;s=w+8|0;p=w+4|0;q=w+428|0;l=w;c[y>>2]=b;A=y+4|0;c[A>>2]=345;m=b+400|0;o=0;v=qa(192,g|0)|0;n=o;o=0;if(!(n&1)){c[p>>2]=v;o=0;n=Wa(115,p|0,40896)|0;b=o;o=0;a:do if(!(b&1)?(a[q>>0]=0,t=c[e>>2]|0,c[l>>2]=t,r=c[g+4>>2]|0,u=t,o=0,c[k>>2]=c[l>>2],r=ua(43,d|0,k|0,f|0,p|0,r|0,h|0,q|0,n|0,y|0,s|0,m|0)|0,g=o,o=0,!(g&1)):0){if(r){if(!(a[j>>0]&1))a[j>>0]=0;else c[c[j+8>>2]>>2]=0;c[j+4>>2]=0;if(a[q>>0]|0){o=0;b=Wa(c[(c[n>>2]|0)+44>>2]|0,n|0,45)|0;g=o;o=0;if(g&1)break;o=0;ma(223,j|0,b|0);g=o;o=0;if(g&1)break}o=0;l=Wa(c[(c[n>>2]|0)+44>>2]|0,n|0,48)|0;g=o;o=0;if(g&1)break;b=c[y>>2]|0;m=c[s>>2]|0;k=m+-4|0;b:do if(b>>>0<k>>>0)do{if((c[b>>2]|0)!=(l|0))break b;b=b+4|0}while(b>>>0<k>>>0);while(0);o=0;ya(123,j|0,b|0,m|0)|0;j=o;o=0;if(j&1)break}b=c[d>>2]|0;do if(b){k=c[b+12>>2]|0;if((k|0)==(c[b+16>>2]|0)){o=0;b=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;j=o;o=0;if(j&1)break a}else b=c[k>>2]|0;if((b|0)==-1){c[d>>2]=0;k=1;break}else{k=(c[d>>2]|0)==0;break}}else k=1;while(0);do if(t){b=c[u+12>>2]|0;if((b|0)==(c[u+16>>2]|0)){o=0;b=qa(c[(c[t>>2]|0)+36>>2]|0,u|0)|0;u=o;o=0;if(u&1)break a}else b=c[b>>2]|0;if((b|0)!=-1)if(k)break;else{z=32;break}else{c[e>>2]=0;z=30;break}}else z=30;while(0);if((z|0)==30?k:0)z=32;if((z|0)==32)c[h>>2]=c[h>>2]|2;k=c[d>>2]|0;EL(v)|0;b=c[y>>2]|0;c[y>>2]=0;if((b|0)!=0?(o=0,ka(c[A>>2]|0,b|0),A=o,o=0,A&1):0){A=cc(0)|0;oq(A)}i=w;return k|0}while(0);k=cc()|0;EL(v)|0;b=c[y>>2]|0;c[y>>2]=0;if(!b)x=k;else z=38}else{k=cc()|0;c[y>>2]=0;z=38}if((z|0)==38){o=0;ka(c[A>>2]|0,b|0);A=o;o=0;if(A&1){A=cc(0)|0;oq(A)}else x=k}bc(x|0);return 0}function uH(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+112|0;n=z+100|0;p=z+88|0;q=z+76|0;r=z+64|0;s=z+52|0;t=z+48|0;u=z+36|0;v=z+24|0;w=z+12|0;x=z;do if(b){b=cI(d,40640)|0;$c[c[(c[b>>2]|0)+44>>2]&511](n,b);x=c[n>>2]|0;a[e>>0]=x;a[e+1>>0]=x>>8;a[e+2>>0]=x>>16;a[e+3>>0]=x>>24;$c[c[(c[b>>2]|0)+32>>2]&511](p,b);if(!(a[l>>0]&1))a[l>>0]=0;else c[c[l+8>>2]>>2]=0;c[l+4>>2]=0;o=0;ma(224,l|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[l>>2]=c[p>>2];c[l+4>>2]=c[p+4>>2];c[l+8>>2]=c[p+8>>2];c[p>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;ZC(p);$c[c[(c[b>>2]|0)+28>>2]&511](q,b);if(!(a[k>>0]&1))a[k>>0]=0;else c[c[k+8>>2]>>2]=0;c[k+4>>2]=0;o=0;ma(224,k|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[k>>2]=c[q>>2];c[k+4>>2]=c[q+4>>2];c[k+8>>2]=c[q+8>>2];c[q>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;ZC(q);c[f>>2]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;c[g>>2]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[b>>2]|0)+20>>2]&511](r,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}o=0;ma(114,h|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)};c[h>>2]=c[r>>2];c[h+4>>2]=c[r+4>>2];c[h+8>>2]=c[r+8>>2];c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;IC(r);$c[c[(c[b>>2]|0)+24>>2]&511](s,b);if(!(a[j>>0]&1))a[j>>0]=0;else c[c[j+8>>2]>>2]=0;c[j+4>>2]=0;o=0;ma(224,j|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)}else{c[j>>2]=c[s>>2];c[j+4>>2]=c[s+4>>2];c[j+8>>2]=c[s+8>>2];c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;ZC(s);y=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}else{b=cI(d,40576)|0;$c[c[(c[b>>2]|0)+44>>2]&511](t,b);t=c[t>>2]|0;a[e>>0]=t;a[e+1>>0]=t>>8;a[e+2>>0]=t>>16;a[e+3>>0]=t>>24;$c[c[(c[b>>2]|0)+32>>2]&511](u,b);if(!(a[l>>0]&1))a[l>>0]=0;else c[c[l+8>>2]>>2]=0;c[l+4>>2]=0;o=0;ma(224,l|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[l>>2]=c[u>>2];c[l+4>>2]=c[u+4>>2];c[l+8>>2]=c[u+8>>2];c[u>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;ZC(u);$c[c[(c[b>>2]|0)+28>>2]&511](v,b);if(!(a[k>>0]&1))a[k>>0]=0;else c[c[k+8>>2]>>2]=0;c[k+4>>2]=0;o=0;ma(224,k|0,0);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)};c[k>>2]=c[v>>2];c[k+4>>2]=c[v+4>>2];c[k+8>>2]=c[v+8>>2];c[v>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;ZC(v);c[f>>2]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;c[g>>2]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[b>>2]|0)+20>>2]&511](w,b);if(!(a[h>>0]&1)){a[h+1>>0]=0;a[h>>0]=0}else{a[c[h+8>>2]>>0]=0;c[h+4>>2]=0}o=0;ma(114,h|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)};c[h>>2]=c[w>>2];c[h+4>>2]=c[w+4>>2];c[h+8>>2]=c[w+8>>2];c[w>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;IC(w);$c[c[(c[b>>2]|0)+24>>2]&511](x,b);if(!(a[j>>0]&1))a[j>>0]=0;else c[c[j+8>>2]>>2]=0;c[j+4>>2]=0;o=0;ma(224,j|0,0);g=o;o=0;if(g&1){g=cc(0)|0;oq(g)}else{c[j>>2]=c[x>>2];c[j+4>>2]=c[x+4>>2];c[j+8>>2]=c[x+8>>2];c[x>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;ZC(x);y=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}while(0);c[m>>2]=y;i=z;return}function vH(a){a=a|0;return}function wH(a){a=a|0;Uz(a);return}function xH(b,d,e,f,g,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=+j;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;D=i;i=i+384|0;v=D+8|0;k=D;m=D+284|0;n=D+72|0;l=D+184|0;F=D+68|0;A=D+80|0;x=D+77|0;B=D+76|0;G=D+56|0;I=D+44|0;H=D+32|0;p=D+28|0;u=D+84|0;z=D+24|0;y=D+20|0;w=D+16|0;c[n>>2]=m;h[v>>3]=j;m=SB(m,100,61377,v)|0;do if(m>>>0>99){o=0;b=gb(45)|0;C=o;o=0;if(!(C&1)?(o=0,h[k>>3]=j,s=kb(65,n|0,b|0,61377,k|0)|0,C=o,o=0,!(C&1)):0){b=c[n>>2]|0;if(!b){o=0;ob(46);C=o;o=0;if(C&1){b=0;k=0;C=7;break}b=c[n>>2]|0}l=yC(s)|0;k=l;if(!l){o=0;ob(46);C=o;o=0;if(C&1)C=7;else{t=0;C=10}}else{t=l;C=10}}else{b=0;k=0;C=7}}else{k=0;b=0;t=l;s=m;C=10}while(0);if((C|0)==10){o=0;l=qa(192,f|0)|0;r=o;o=0;if(r&1)C=7;else{c[F>>2]=l;o=0;r=Wa(115,F|0,40904)|0;q=o;o=0;if(!(q&1)?(q=c[n>>2]|0,o=0,kb(c[(c[r>>2]|0)+32>>2]|0,r|0,q|0,q+s|0,t|0)|0,q=o,o=0,!(q&1)):0){if(!s)q=0;else q=(a[c[n>>2]>>0]|0)==45;c[G>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[I>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;c[H>>2]=0;c[H+4>>2]=0;c[H+8>>2]=0;o=0;Ua(44,e|0,q|0,F|0,A|0,x|0,B|0,G|0,I|0,H|0,p|0);e=o;o=0;if(!(e&1)){p=c[p>>2]|0;if((s|0)>(p|0)){e=a[H>>0]|0;m=a[I>>0]|0;m=(s-p<<1|1)+p+((e&1)==0?(e&255)>>>1:c[H+4>>2]|0)+((m&1)==0?(m&255)>>>1:c[I+4>>2]|0)|0}else{e=a[H>>0]|0;m=a[I>>0]|0;m=p+2+((e&1)==0?(e&255)>>>1:c[H+4>>2]|0)+((m&1)==0?(m&255)>>>1:c[I+4>>2]|0)|0}if(m>>>0>100){m=yC(m)|0;n=m;if(!m){o=0;ob(46);u=o;o=0;if(!(u&1)){m=0;C=26}}else C=26}else{n=0;m=u;C=26}if((C|0)==26){o=0;Aa(42,m|0,z|0,y|0,c[f+4>>2]|0,t|0,t+s|0,r|0,q|0,A|0,a[x>>0]|0,a[B>>0]|0,G|0,I|0,H|0,p|0);B=o;o=0;if(!(B&1)?(c[w>>2]=c[d>>2],d=c[z>>2]|0,E=c[y>>2]|0,o=0,c[v>>2]=c[w>>2],E=oa(83,v|0,m|0,d|0,E|0,f|0,g|0)|0,d=o,o=0,!(d&1)):0){if(n){zC(n);l=c[F>>2]|0}IC(H);IC(I);IC(G);EL(l)|0;if(k)zC(k);if(b)zC(b);i=D;return E|0}}m=cc()|0;if(n){zC(n);l=c[F>>2]|0}}else m=cc()|0;IC(H);IC(I);IC(G)}else m=cc()|0;EL(l)|0}}if((C|0)==7)m=cc()|0;if(k)zC(k);if(b)zC(b);bc(m|0);return 0}function yH(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+112|0;q=D+108|0;r=D+96|0;u=D+92|0;v=D+80|0;w=D+68|0;x=D+56|0;y=D+52|0;z=D+40|0;A=D+36|0;B=D+24|0;s=D+12|0;t=D;do if(b){b=cI(e,40512)|0;e=c[b>>2]|0;do if(d){$c[c[e+44>>2]&511](q,b);d=c[q>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+32>>2]&511](r,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}o=0;ma(114,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[r>>2];c[l+4>>2]=c[r+4>>2];c[l+8>>2]=c[r+8>>2];c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;IC(r);p=b;break}}else{$c[c[e+40>>2]&511](u,b);d=c[u>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+28>>2]&511](v,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}o=0;ma(114,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[v>>2];c[l+4>>2]=c[v+4>>2];c[l+8>>2]=c[v+8>>2];c[v>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;IC(v);p=b;break}}while(0);a[g>>0]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;a[h>>0]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[p>>2]|0)+20>>2]&511](w,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}o=0;ma(114,j|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)};c[j>>2]=c[w>>2];c[j+4>>2]=c[w+4>>2];c[j+8>>2]=c[w+8>>2];c[w>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;IC(w);$c[c[(c[p>>2]|0)+24>>2]&511](x,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}o=0;ma(114,k|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)}else{c[k>>2]=c[x>>2];c[k+4>>2]=c[x+4>>2];c[k+8>>2]=c[x+8>>2];c[x>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;IC(x);C=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}else{b=cI(e,40448)|0;e=c[b>>2]|0;do if(d){$c[c[e+44>>2]&511](y,b);d=c[y>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+32>>2]&511](z,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}o=0;ma(114,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[z>>2];c[l+4>>2]=c[z+4>>2];c[l+8>>2]=c[z+8>>2];c[z>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;IC(z);n=b;break}}else{$c[c[e+40>>2]&511](A,b);d=c[A>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+28>>2]&511](B,b);if(!(a[l>>0]&1)){a[l+1>>0]=0;a[l>>0]=0}else{a[c[l+8>>2]>>0]=0;c[l+4>>2]=0}o=0;ma(114,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[B>>2];c[l+4>>2]=c[B+4>>2];c[l+8>>2]=c[B+8>>2];c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;IC(B);n=b;break}}while(0);a[g>>0]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;a[h>>0]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[n>>2]|0)+20>>2]&511](s,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}o=0;ma(114,j|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)};c[j>>2]=c[s>>2];c[j+4>>2]=c[s+4>>2];c[j+8>>2]=c[s+8>>2];c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;IC(s);$c[c[(c[n>>2]|0)+24>>2]&511](t,b);if(!(a[k>>0]&1)){a[k+1>>0]=0;a[k>>0]=0}else{a[c[k+8>>2]>>0]=0;c[k+4>>2]=0}o=0;ma(114,k|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)}else{c[k>>2]=c[t>>2];c[k+4>>2]=c[t+4>>2];c[k+8>>2]=c[t+8>>2];c[t>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;IC(t);C=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}while(0);c[m>>2]=C;i=D;return}function zH(d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;c[f>>2]=d;N=q+4|0;O=q+8|0;P=q+1|0;H=p+4|0;I=(g&512|0)==0;J=p+8|0;K=p+1|0;L=j+8|0;M=(r|0)>0;A=o+4|0;B=o+8|0;C=o+1|0;D=r+1|0;F=-2-r-((r|0)<0?~r:-1)|0;G=(r|0)>0;z=0;do{switch(a[l+z>>0]|0){case 0:{c[e>>2]=c[f>>2];break}case 1:{c[e>>2]=c[f>>2];x=rd[c[(c[j>>2]|0)+28>>2]&127](j,32)|0;y=c[f>>2]|0;c[f>>2]=y+1;a[y>>0]=x;break}case 3:{y=a[q>>0]|0;s=(y&1)==0;if((s?(y&255)>>>1:c[N>>2]|0)|0){x=a[(s?P:c[O>>2]|0)>>0]|0;y=c[f>>2]|0;c[f>>2]=y+1;a[y>>0]=x}break}case 2:{u=a[p>>0]|0;s=(u&1)==0;u=s?(u&255)>>>1:c[H>>2]|0;if(!(I|(u|0)==0)){t=s?K:c[J>>2]|0;v=t+u|0;s=c[f>>2]|0;if(u)do{a[s>>0]=a[t>>0]|0;t=t+1|0;s=s+1|0}while((t|0)!=(v|0));c[f>>2]=s}break}case 4:{s=c[f>>2]|0;h=k?h+1|0:h;w=h;v=c[L>>2]|0;a:do if(h>>>0<i>>>0){t=h;do{u=a[t>>0]|0;if(u<<24>>24<=-1)break a;if(!(b[v+(u<<24>>24<<1)>>1]&2048))break a;t=t+1|0}while(t>>>0<i>>>0)}else t=h;while(0);u=t;if(M){x=-2-u-~(u>>>0>w>>>0?w:u)|0;x=F>>>0>x>>>0?F:x;if(t>>>0>h>>>0&G){u=t;w=r;while(1){u=u+-1|0;y=a[u>>0]|0;v=c[f>>2]|0;c[f>>2]=v+1;a[v>>0]=y;v=(w|0)>1;if(!(u>>>0>h>>>0&v))break;else w=w+-1|0}}else v=G;y=D+x|0;u=t+(x+1)|0;if(v)w=rd[c[(c[j>>2]|0)+28>>2]&127](j,48)|0;else w=0;t=c[f>>2]|0;c[f>>2]=t+1;if((y|0)>0){v=y;while(1){a[t>>0]=w;t=c[f>>2]|0;c[f>>2]=t+1;if((v|0)>1)v=v+-1|0;else break}}a[t>>0]=m}else u=t;if((u|0)!=(h|0)){y=a[o>>0]|0;t=(y&1)==0;if(!((t?(y&255)>>>1:c[A>>2]|0)|0))t=-1;else t=a[(t?C:c[B>>2]|0)>>0]|0;if((u|0)!=(h|0)){v=0;w=0;while(1){if((w|0)==(t|0)){y=c[f>>2]|0;c[f>>2]=y+1;a[y>>0]=n;v=v+1|0;y=a[o>>0]|0;t=(y&1)==0;if(v>>>0<(t?(y&255)>>>1:c[A>>2]|0)>>>0){t=a[(t?C:c[B>>2]|0)+v>>0]|0;t=t<<24>>24==127?-1:t<<24>>24;w=0}else{t=w;w=0}}u=u+-1|0;x=a[u>>0]|0;y=c[f>>2]|0;c[f>>2]=y+1;a[y>>0]=x;if((u|0)==(h|0))break;else w=w+1|0}}}else{x=rd[c[(c[j>>2]|0)+28>>2]&127](j,48)|0;y=c[f>>2]|0;c[f>>2]=y+1;a[y>>0]=x}t=c[f>>2]|0;if((s|0)!=(t|0)?(E=t+-1|0,s>>>0<E>>>0):0){t=E;do{y=a[s>>0]|0;a[s>>0]=a[t>>0]|0;a[t>>0]=y;s=s+1|0;t=t+-1|0}while(s>>>0<t>>>0)}break}default:{}}z=z+1|0}while((z|0)!=4);t=a[q>>0]|0;h=(t&1)==0;t=h?(t&255)>>>1:c[N>>2]|0;if(t>>>0>1){s=h?P:c[O>>2]|0;u=s+t|0;h=c[f>>2]|0;if((t|0)!=1){s=s+1|0;do{a[h>>0]=a[s>>0]|0;h=h+1|0;s=s+1|0}while((s|0)!=(u|0))}c[f>>2]=h}switch(g&176|0){case 32:{c[e>>2]=c[f>>2];break}case 16:break;default:c[e>>2]=d}return}function AH(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;z=i;i=i+176|0;r=z+56|0;B=z+52|0;x=z+64|0;u=z+61|0;y=z+60|0;C=z+40|0;E=z+28|0;D=z+16|0;m=z+12|0;q=z+68|0;w=z+8|0;v=z+4|0;s=z;b=lD(f)|0;c[B>>2]=b;o=0;t=Wa(115,B|0,40904)|0;p=o;o=0;do if(p&1)F=13;else{n=a[h>>0]|0;j=(n&1)==0;p=h+4|0;if(!((j?(n&255)>>>1:c[p>>2]|0)|0))n=0;else{j=a[(j?h+1|0:c[h+8>>2]|0)>>0]|0;o=0;k=Wa(c[(c[t>>2]|0)+28>>2]|0,t|0,45)|0;n=o;o=0;if(n&1){F=13;break}n=j<<24>>24==k<<24>>24}c[C>>2]=0;c[C+4>>2]=0;c[C+8>>2]=0;c[E>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[D>>2]=0;c[D+4>>2]=0;c[D+8>>2]=0;o=0;Ua(44,e|0,n|0,B|0,x|0,u|0,y|0,C|0,E|0,D|0,m|0);l=o;o=0;if(!(l&1)){l=a[h>>0]|0;e=c[p>>2]|0;j=(l&1)==0?(l&255)>>>1:e;m=c[m>>2]|0;if((j|0)>(m|0)){G=a[D>>0]|0;k=a[E>>0]|0;j=(j-m<<1|1)+m+((G&1)==0?(G&255)>>>1:c[D+4>>2]|0)+((k&1)==0?(k&255)>>>1:c[E+4>>2]|0)|0}else{G=a[D>>0]|0;j=a[E>>0]|0;j=m+2+((G&1)==0?(G&255)>>>1:c[D+4>>2]|0)+((j&1)==0?(j&255)>>>1:c[E+4>>2]|0)|0}if(j>>>0>100){j=yC(j)|0;k=j;if(!j){o=0;ob(46);G=o;o=0;if(!(G&1)){l=a[h>>0]|0;e=c[p>>2]|0;j=0;F=17}}else F=17}else{k=0;j=q;F=17}if((F|0)==17){G=(l&1)==0;h=G?h+1|0:c[h+8>>2]|0;o=0;Aa(42,j|0,w|0,v|0,c[f+4>>2]|0,h|0,h+(G?(l&255)>>>1:e)|0,t|0,n|0,x|0,a[u>>0]|0,a[y>>0]|0,C|0,E|0,D|0,m|0);G=o;o=0;if(!(G&1)?(c[s>>2]=c[d>>2],G=c[w>>2]|0,A=c[v>>2]|0,o=0,c[r>>2]=c[s>>2],A=oa(83,r|0,j|0,G|0,A|0,f|0,g|0)|0,G=o,o=0,!(G&1)):0){if(k){zC(k);b=c[B>>2]|0}IC(D);IC(E);IC(C);EL(b)|0;i=z;return A|0}}j=cc()|0;if(k){zC(k);b=c[B>>2]|0}}else j=cc()|0;IC(D);IC(E);IC(C)}while(0);if((F|0)==13)j=cc()|0;EL(b)|0;bc(j|0);return 0}function BH(a){a=a|0;return}function CH(a){a=a|0;Uz(a);return}function DH(b,d,e,f,g,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=+j;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;D=i;i=i+992|0;v=D+8|0;k=D;m=D+888|0;n=D+880|0;l=D+480|0;F=D+76|0;A=D+884|0;x=D+72|0;B=D+68|0;G=D+56|0;I=D+44|0;H=D+32|0;p=D+28|0;u=D+80|0;z=D+24|0;y=D+20|0;w=D+16|0;c[n>>2]=m;h[v>>3]=j;m=SB(m,100,61377,v)|0;do if(m>>>0>99){o=0;b=gb(45)|0;C=o;o=0;if(!(C&1)?(o=0,h[k>>3]=j,s=kb(65,n|0,b|0,61377,k|0)|0,C=o,o=0,!(C&1)):0){b=c[n>>2]|0;if(!b){o=0;ob(46);C=o;o=0;if(C&1){b=0;k=0;C=7;break}b=c[n>>2]|0}l=yC(s<<2)|0;k=l;if(!l){o=0;ob(46);C=o;o=0;if(C&1)C=7;else{t=0;C=10}}else{t=l;C=10}}else{b=0;k=0;C=7}}else{k=0;b=0;t=l;s=m;C=10}while(0);if((C|0)==10){o=0;l=qa(192,f|0)|0;r=o;o=0;if(r&1)C=7;else{c[F>>2]=l;o=0;r=Wa(115,F|0,40896)|0;q=o;o=0;if(!(q&1)?(q=c[n>>2]|0,o=0,kb(c[(c[r>>2]|0)+48>>2]|0,r|0,q|0,q+s|0,t|0)|0,q=o,o=0,!(q&1)):0){if(!s)q=0;else q=(a[c[n>>2]>>0]|0)==45;c[G>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[I>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;c[H>>2]=0;c[H+4>>2]=0;c[H+8>>2]=0;o=0;Ua(45,e|0,q|0,F|0,A|0,x|0,B|0,G|0,I|0,H|0,p|0);e=o;o=0;if(!(e&1)){p=c[p>>2]|0;if((s|0)>(p|0)){e=a[H>>0]|0;m=a[I>>0]|0;m=(s-p<<1|1)+p+((e&1)==0?(e&255)>>>1:c[H+4>>2]|0)+((m&1)==0?(m&255)>>>1:c[I+4>>2]|0)|0}else{e=a[H>>0]|0;m=a[I>>0]|0;m=p+2+((e&1)==0?(e&255)>>>1:c[H+4>>2]|0)+((m&1)==0?(m&255)>>>1:c[I+4>>2]|0)|0}if(m>>>0>100){m=yC(m<<2)|0;n=m;if(!m){o=0;ob(46);u=o;o=0;if(!(u&1)){m=0;C=26}}else C=26}else{n=0;m=u;C=26}if((C|0)==26){o=0;Aa(43,m|0,z|0,y|0,c[f+4>>2]|0,t|0,t+(s<<2)|0,r|0,q|0,A|0,c[x>>2]|0,c[B>>2]|0,G|0,I|0,H|0,p|0);B=o;o=0;if(!(B&1)?(c[w>>2]=c[d>>2],d=c[z>>2]|0,E=c[y>>2]|0,o=0,c[v>>2]=c[w>>2],E=oa(84,v|0,m|0,d|0,E|0,f|0,g|0)|0,d=o,o=0,!(d&1)):0){if(n){zC(n);l=c[F>>2]|0}ZC(H);ZC(I);IC(G);EL(l)|0;if(k)zC(k);if(b)zC(b);i=D;return E|0}}m=cc()|0;if(n){zC(n);l=c[F>>2]|0}}else m=cc()|0;ZC(H);ZC(I);IC(G)}else m=cc()|0;EL(l)|0}}if((C|0)==7)m=cc()|0;if(k)zC(k);if(b)zC(b);bc(m|0);return 0}function EH(b,d,e,f,g,h,j,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+112|0;n=B+108|0;p=B+96|0;s=B+92|0;t=B+80|0;u=B+68|0;v=B+56|0;w=B+52|0;x=B+40|0;y=B+36|0;z=B+24|0;q=B+12|0;r=B;do if(b){b=cI(e,40640)|0;e=c[b>>2]|0;do if(d){$c[c[e+44>>2]&511](n,b);d=c[n>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+32>>2]&511](p,b);if(!(a[l>>0]&1))a[l>>0]=0;else c[c[l+8>>2]>>2]=0;c[l+4>>2]=0;o=0;ma(224,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[p>>2];c[l+4>>2]=c[p+4>>2];c[l+8>>2]=c[p+8>>2];c[p>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;ZC(p);break}}else{$c[c[e+40>>2]&511](s,b);d=c[s>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+28>>2]&511](t,b);if(!(a[l>>0]&1))a[l>>0]=0;else c[c[l+8>>2]>>2]=0;c[l+4>>2]=0;o=0;ma(224,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[t>>2];c[l+4>>2]=c[t+4>>2];c[l+8>>2]=c[t+8>>2];c[t>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;ZC(t);break}}while(0);c[g>>2]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;c[h>>2]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[b>>2]|0)+20>>2]&511](u,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}o=0;ma(114,j|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)};c[j>>2]=c[u>>2];c[j+4>>2]=c[u+4>>2];c[j+8>>2]=c[u+8>>2];c[u>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;IC(u);$c[c[(c[b>>2]|0)+24>>2]&511](v,b);if(!(a[k>>0]&1))a[k>>0]=0;else c[c[k+8>>2]>>2]=0;c[k+4>>2]=0;o=0;ma(224,k|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)}else{c[k>>2]=c[v>>2];c[k+4>>2]=c[v+4>>2];c[k+8>>2]=c[v+8>>2];c[v>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;ZC(v);A=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}else{b=cI(e,40576)|0;e=c[b>>2]|0;do if(d){$c[c[e+44>>2]&511](w,b);d=c[w>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+32>>2]&511](x,b);if(!(a[l>>0]&1))a[l>>0]=0;else c[c[l+8>>2]>>2]=0;c[l+4>>2]=0;o=0;ma(224,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[x>>2];c[l+4>>2]=c[x+4>>2];c[l+8>>2]=c[x+8>>2];c[x>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;ZC(x);break}}else{$c[c[e+40>>2]&511](y,b);d=c[y>>2]|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;$c[c[(c[b>>2]|0)+28>>2]&511](z,b);if(!(a[l>>0]&1))a[l>>0]=0;else c[c[l+8>>2]>>2]=0;c[l+4>>2]=0;o=0;ma(224,l|0,0);f=o;o=0;if(f&1){l=cc(0)|0;oq(l)}else{c[l>>2]=c[z>>2];c[l+4>>2]=c[z+4>>2];c[l+8>>2]=c[z+8>>2];c[z>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;ZC(z);break}}while(0);c[g>>2]=bd[c[(c[b>>2]|0)+12>>2]&255](b)|0;c[h>>2]=bd[c[(c[b>>2]|0)+16>>2]&255](b)|0;$c[c[(c[b>>2]|0)+20>>2]&511](q,b);if(!(a[j>>0]&1)){a[j+1>>0]=0;a[j>>0]=0}else{a[c[j+8>>2]>>0]=0;c[j+4>>2]=0}o=0;ma(114,j|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)};c[j>>2]=c[q>>2];c[j+4>>2]=c[q+4>>2];c[j+8>>2]=c[q+8>>2];c[q>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;IC(q);$c[c[(c[b>>2]|0)+24>>2]&511](r,b);if(!(a[k>>0]&1))a[k>>0]=0;else c[c[k+8>>2]>>2]=0;c[k+4>>2]=0;o=0;ma(224,k|0,0);h=o;o=0;if(h&1){h=cc(0)|0;oq(h)}else{c[k>>2]=c[r>>2];c[k+4>>2]=c[r+4>>2];c[k+8>>2]=c[r+8>>2];c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;ZC(r);A=bd[c[(c[b>>2]|0)+36>>2]&255](b)|0;break}}while(0);c[m>>2]=A;i=B;return}function FH(b,d,e,f,g,h,i,j,k,l,m,n,o,p,q){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;c[e>>2]=b;J=p+4|0;K=p+8|0;C=o+4|0;D=(f&512|0)==0;E=o+8|0;F=(q|0)>0;G=n+4|0;H=n+8|0;I=n+1|0;A=(q|0)>0;z=0;do{switch(a[k+z>>0]|0){case 0:{c[d>>2]=c[e>>2];break}case 1:{c[d>>2]=c[e>>2];x=rd[c[(c[i>>2]|0)+44>>2]&127](i,32)|0;y=c[e>>2]|0;c[e>>2]=y+4;c[y>>2]=x;break}case 3:{y=a[p>>0]|0;r=(y&1)==0;if((r?(y&255)>>>1:c[J>>2]|0)|0){x=c[(r?J:c[K>>2]|0)>>2]|0;y=c[e>>2]|0;c[e>>2]=y+4;c[y>>2]=x}break}case 2:{v=a[o>>0]|0;r=(v&1)==0;v=r?(v&255)>>>1:c[C>>2]|0;if(!(D|(v|0)==0)){r=r?C:c[E>>2]|0;t=r+(v<<2)|0;u=c[e>>2]|0;if(v){s=u;while(1){c[s>>2]=c[r>>2];r=r+4|0;if((r|0)==(t|0))break;else s=s+4|0}}c[e>>2]=u+(v<<2)}break}case 4:{r=c[e>>2]|0;g=j?g+4|0:g;a:do if(g>>>0<h>>>0){s=g;do{if(!(fd[c[(c[i>>2]|0)+12>>2]&127](i,2048,c[s>>2]|0)|0))break a;s=s+4|0}while(s>>>0<h>>>0)}else s=g;while(0);if(F){if(s>>>0>g>>>0&A){v=c[e>>2]|0;u=q;while(1){s=s+-4|0;t=v+4|0;c[v>>2]=c[s>>2];w=u+-1|0;u=(u|0)>1;if(s>>>0>g>>>0&u){v=t;u=w}else{v=w;break}}c[e>>2]=t;t=v}else{u=A;t=q}if(u)w=rd[c[(c[i>>2]|0)+44>>2]&127](i,48)|0;else w=0;x=c[e>>2]|0;u=t+((t|0)<0?~t:-1)|0;if((t|0)>0){v=x;while(1){c[v>>2]=w;if((t|0)>1){v=v+4|0;t=t+-1|0}else break}}c[e>>2]=x+(u+2<<2);c[x+(u+1<<2)>>2]=l}if((s|0)==(g|0)){x=rd[c[(c[i>>2]|0)+44>>2]&127](i,48)|0;y=c[e>>2]|0;s=y+4|0;c[e>>2]=s;c[y>>2]=x}else{x=a[n>>0]|0;t=(x&1)==0;y=c[G>>2]|0;if(!((t?(x&255)>>>1:y)|0))t=-1;else t=a[(t?I:c[H>>2]|0)>>0]|0;if((s|0)!=(g|0)){w=0;x=0;while(1){u=c[e>>2]|0;if((x|0)==(t|0)){v=u+4|0;c[e>>2]=v;c[u>>2]=m;w=w+1|0;u=a[n>>0]|0;t=(u&1)==0;if(w>>>0<(t?(u&255)>>>1:y)>>>0){t=a[(t?I:c[H>>2]|0)+w>>0]|0;u=v;t=t<<24>>24==127?-1:t<<24>>24;v=0}else{u=v;t=x;v=0}}else v=x;s=s+-4|0;x=c[s>>2]|0;c[e>>2]=u+4;c[u>>2]=x;if((s|0)==(g|0))break;else x=v+1|0}}s=c[e>>2]|0}if((r|0)!=(s|0)?(B=s+-4|0,r>>>0<B>>>0):0){s=B;do{y=c[r>>2]|0;c[r>>2]=c[s>>2];c[s>>2]=y;r=r+4|0;s=s+-4|0}while(r>>>0<s>>>0)}break}default:{}}z=z+1|0}while((z|0)!=4);r=a[p>>0]|0;g=(r&1)==0;r=g?(r&255)>>>1:c[J>>2]|0;if(r>>>0>1){s=g?J:c[K>>2]|0;g=s+4|0;s=s+(r<<2)|0;t=c[e>>2]|0;u=s-g|0;if((r|0)!=1){r=t;while(1){c[r>>2]=c[g>>2];g=g+4|0;if((g|0)==(s|0))break;else r=r+4|0}}c[e>>2]=t+(u>>>2<<2)}switch(f&176|0){case 32:{c[d>>2]=c[e>>2];break}case 16:break;default:c[d>>2]=b}return}function GH(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;z=i;i=i+480|0;q=z+468|0;B=z+464|0;x=z+472|0;u=z+56|0;y=z+52|0;C=z+40|0;E=z+28|0;D=z+16|0;m=z+12|0;p=z+64|0;w=z+8|0;v=z+4|0;r=z;b=lD(f)|0;c[B>>2]=b;o=0;s=Wa(115,B|0,40896)|0;t=o;o=0;do if(t&1)F=13;else{n=a[h>>0]|0;j=(n&1)==0;t=h+4|0;if(!((j?(n&255)>>>1:c[t>>2]|0)|0))n=0;else{j=c[(j?t:c[h+8>>2]|0)>>2]|0;o=0;k=Wa(c[(c[s>>2]|0)+44>>2]|0,s|0,45)|0;n=o;o=0;if(n&1){F=13;break}n=(j|0)==(k|0)}c[C>>2]=0;c[C+4>>2]=0;c[C+8>>2]=0;c[E>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[D>>2]=0;c[D+4>>2]=0;c[D+8>>2]=0;o=0;Ua(45,e|0,n|0,B|0,x|0,u|0,y|0,C|0,E|0,D|0,m|0);l=o;o=0;if(!(l&1)){l=a[h>>0]|0;e=c[t>>2]|0;j=(l&1)==0?(l&255)>>>1:e;m=c[m>>2]|0;if((j|0)>(m|0)){G=a[D>>0]|0;k=a[E>>0]|0;j=(j-m<<1|1)+m+((G&1)==0?(G&255)>>>1:c[D+4>>2]|0)+((k&1)==0?(k&255)>>>1:c[E+4>>2]|0)|0}else{G=a[D>>0]|0;j=a[E>>0]|0;j=m+2+((G&1)==0?(G&255)>>>1:c[D+4>>2]|0)+((j&1)==0?(j&255)>>>1:c[E+4>>2]|0)|0}if(j>>>0>100){j=yC(j<<2)|0;k=j;if(!j){o=0;ob(46);G=o;o=0;if(!(G&1)){l=a[h>>0]|0;e=c[t>>2]|0;j=0;F=17}}else F=17}else{k=0;j=p;F=17}if((F|0)==17){G=(l&1)==0;h=G?t:c[h+8>>2]|0;o=0;Aa(43,j|0,w|0,v|0,c[f+4>>2]|0,h|0,h+((G?(l&255)>>>1:e)<<2)|0,s|0,n|0,x|0,c[u>>2]|0,c[y>>2]|0,C|0,E|0,D|0,m|0);G=o;o=0;if(!(G&1)?(c[r>>2]=c[d>>2],G=c[w>>2]|0,A=c[v>>2]|0,o=0,c[q>>2]=c[r>>2],A=oa(84,q|0,j|0,G|0,A|0,f|0,g|0)|0,G=o,o=0,!(G&1)):0){if(k){zC(k);b=c[B>>2]|0}ZC(D);ZC(E);IC(C);EL(b)|0;i=z;return A|0}}j=cc()|0;if(k){zC(k);b=c[B>>2]|0}}else j=cc()|0;ZC(D);ZC(E);IC(C)}while(0);if((F|0)==13)j=cc()|0;EL(b)|0;bc(j|0);return 0}function HH(a){a=a|0;return}function IH(a){a=a|0;Uz(a);return}function JH(b,d,e){b=b|0;d=d|0;e=e|0;b=gB((a[d>>0]&1)==0?d+1|0:c[d+8>>2]|0,1)|0;return b>>>((b|0)!=(-1|0)&1)|0}function KH(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;k=i;i=i+16|0;l=k;c[l>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;j=a[h>>0]|0;m=(j&1)==0;d=m?h+1|0:c[h+8>>2]|0;j=m?(j&255)>>>1:c[h+4>>2]|0;h=d+j|0;a:do if((j|0)>0){while(1){o=0;ma(93,l|0,a[d>>0]|0);m=o;o=0;if(m&1)break;d=d+1|0;if(d>>>0>=h>>>0){j=4;break a}}d=cc()|0;j=7}else j=4;while(0);b:do if((j|0)==4){o=0;d=kb(67,((e|0)==-1?-1:e<<1)|0,f|0,g|0,((a[l>>0]&1)==0?l+1|0:c[l+8>>2]|0)|0)|0;m=o;o=0;if(m&1){d=cc()|0;j=7;break}c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;m=iC(d)|0;h=d+m|0;c:do if((m|0)>0){while(1){o=0;ma(93,b|0,a[d>>0]|0);m=o;o=0;if(m&1)break;d=d+1|0;if(d>>>0>=h>>>0)break c}d=cc()|0;IC(b);break b}while(0);IC(l);i=k;return}while(0);IC(l);bc(d|0)}function LH(a,b){a=a|0;b=b|0;return}function MH(a){a=a|0;return}function NH(a){a=a|0;Uz(a);return}function OH(b,d,e){b=b|0;d=d|0;e=e|0;b=gB((a[d>>0]&1)==0?d+1|0:c[d+8>>2]|0,1)|0;return b>>>((b|0)!=(-1|0)&1)|0}function PH(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=i;i=i+224|0;p=w+184|0;n=w+192|0;m=w+180|0;q=w+176|0;u=w+168|0;t=w+40|0;s=w+32|0;v=w+28|0;x=w+16|0;l=w+8|0;r=w;c[x>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[l+4>>2]=0;c[l>>2]=41380;k=a[h>>0]|0;y=(k&1)==0;j=h+4|0;d=y?j:c[h+8>>2]|0;h=y?(k&255)>>>1:c[j>>2]|0;j=d+(h<<2)|0;k=n+32|0;a:do if((h|0)>0){b:while(1){c[q>>2]=d;o=0;h=qb(c[(c[l>>2]|0)+12>>2]|0,l|0,p|0,d|0,j|0,q|0,n|0,k|0,m|0)|0;y=o;o=0;if(y&1){h=12;break}if((h|0)==2?1:(c[q>>2]|0)==(d|0)){h=5;break}if(n>>>0<(c[m>>2]|0)>>>0){d=n;do{o=0;ma(93,x|0,a[d>>0]|0);y=o;o=0;if(y&1){h=11;break b}d=d+1|0}while(d>>>0<(c[m>>2]|0)>>>0)}d=c[q>>2]|0;if(!((h|0)!=2&d>>>0<j>>>0)){h=9;break a}}if((h|0)==5){o=0;ka(346,61314);o=0;d=cc()|0}else if((h|0)==11)d=cc()|0;else if((h|0)==12)d=cc()|0}else h=9;while(0);c:do if((h|0)==9){o=0;d=kb(67,((e|0)==-1?-1:e<<1)|0,f|0,g|0,((a[x>>0]&1)==0?x+1|0:c[x+8>>2]|0)|0)|0;y=o;o=0;if(y&1){d=cc()|0;break}c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[r+4>>2]=0;c[r>>2]=41428;y=iC(d)|0;j=d+y|0;k=j;l=t+128|0;d:do if((y|0)>0){e:while(1){c[v>>2]=d;o=0;h=qb(c[(c[r>>2]|0)+16>>2]|0,r|0,u|0,d|0,((k-d|0)>32?d+32|0:j)|0,v|0,t|0,l|0,s|0)|0;y=o;o=0;if(y&1){h=24;break}if((h|0)==2?1:(c[v>>2]|0)==(d|0)){h=18;break}if(t>>>0<(c[s>>2]|0)>>>0){d=t;do{o=0;ma(223,b|0,c[d>>2]|0);y=o;o=0;if(y&1){h=23;break e}d=d+4|0}while(d>>>0<(c[s>>2]|0)>>>0)}d=c[v>>2]|0;if(!((h|0)!=2&d>>>0<j>>>0))break d}if((h|0)==18){o=0;ka(346,61314);o=0;d=cc()|0}else if((h|0)==23)d=cc()|0;else if((h|0)==24)d=cc()|0;ZC(b);break c}while(0);IC(x);i=w;return}while(0);IC(x);bc(d|0)}function QH(a,b){a=a|0;b=b|0;return}function RH(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;c[b+4>>2]=d+-1;c[b>>2]=40880;h=b+8|0;o=0;ma(225,h|0,28);g=o;o=0;if(g&1)d=cc()|0;else{g=b+144|0;o=0;mb(57,g|0,61244,1);f=o;o=0;if(f&1)d=cc()|0;else{e=c[h>>2]|0;f=b+12|0;d=c[f>>2]|0;if((d|0)!=(e|0)){do d=d+-4|0;while((d|0)!=(e|0));c[f>>2]=d}c[775]=0;c[774]=39808;o=0;ma(226,b|0,3096);f=o;o=0;do if(((((((((((((!(f&1)?(c[777]=0,c[776]=39848,o=0,ma(227,b|0,3104),f=o,o=0,!(f&1)):0)?(c[779]=0,c[778]=40920,c[780]=0,a[3124]=0,c[780]=iI()|0,o=0,ma(228,b|0,3112),f=o,o=0,!(f&1)):0)?(c[783]=0,c[782]=41168,o=0,ma(229,b|0,3128),f=o,o=0,!(f&1)):0)?(c[785]=0,c[784]=41236,o=0,ma(230,b|0,3136),f=o,o=0,!(f&1)):0)?(o=0,ma(231,3144,1),f=o,o=0,!(f&1)):0)?(o=0,ma(232,b|0,3144),f=o,o=0,!(f&1)):0)?(c[791]=0,c[790]=41284,o=0,ma(233,b|0,3160),f=o,o=0,!(f&1)):0)?(c[793]=0,c[792]=41332,o=0,ma(234,b|0,3168),f=o,o=0,!(f&1)):0)?(nJ(3176,1),o=0,ma(235,b|0,3176),f=o,o=0,!(f&1)):0)?(oJ(3200,1),o=0,ma(236,b|0,3200),f=o,o=0,!(f&1)):0)?(c[809]=0,c[808]=39888,o=0,ma(237,b|0,3232),f=o,o=0,!(f&1)):0)?(c[811]=0,c[810]=39960,o=0,ma(238,b|0,3240),f=o,o=0,!(f&1)):0)?(c[813]=0,c[812]=40032,o=0,ma(239,b|0,3248),f=o,o=0,!(f&1)):0){c[815]=0;c[814]=40092;o=0;ma(240,b|0,3256);f=o;o=0;if(f&1){i=42;break}c[817]=0;c[816]=40400;o=0;ma(241,b|0,3264);f=o;o=0;if(f&1){i=42;break}c[819]=0;c[818]=40464;o=0;ma(242,b|0,3272);f=o;o=0;if(f&1){i=42;break}c[821]=0;c[820]=40528;o=0;ma(243,b|0,3280);f=o;o=0;if(f&1){i=42;break}c[823]=0;c[822]=40592;o=0;ma(244,b|0,3288);f=o;o=0;if(f&1){i=42;break}c[825]=0;c[824]=40656;o=0;ma(245,b|0,3296);f=o;o=0;if(f&1){i=42;break}c[827]=0;c[826]=40692;o=0;ma(246,b|0,3304);f=o;o=0;if(f&1){i=42;break}c[829]=0;c[828]=40728;o=0;ma(247,b|0,3312);f=o;o=0;if(f&1){i=42;break}c[831]=0;c[830]=40764;o=0;ma(248,b|0,3320);f=o;o=0;if(f&1){i=42;break}c[833]=0;c[832]=40152;c[834]=40200;o=0;ma(249,b|0,3328);f=o;o=0;if(f&1){i=42;break}c[837]=0;c[836]=40244;c[838]=40292;o=0;ma(250,b|0,3344);f=o;o=0;if(f&1){i=42;break}c[841]=0;c[840]=41148;o=0;d=gb(45)|0;f=o;o=0;if(f&1){d=cc()|0;break}c[842]=d;c[840]=40336;o=0;ma(251,b|0,3360);f=o;o=0;if(f&1){i=42;break}c[845]=0;c[844]=41148;o=0;d=gb(45)|0;f=o;o=0;if(f&1){d=cc()|0;break}c[846]=d;c[844]=40368;o=0;ma(252,b|0,3376);i=o;o=0;if(i&1){i=42;break}c[849]=0;c[848]=40800;o=0;ma(253,b|0,3392);i=o;o=0;if(i&1){i=42;break}c[851]=0;c[850]=40840;o=0;ma(254,b|0,3400);i=o;o=0;if(i&1){i=42;break}return}else i=42;while(0);if((i|0)==42)d=cc()|0;IC(g)}ZK(h)}bc(d|0)}function SH(){var b=0;do if((a[3408]|0)==0?(Hb(3408)|0)!=0:0){o=0;gb(46)|0;b=o;o=0;if(b&1){b=cc()|0;rc(3408);bc(b|0)}else{c[10417]=41664;Cc(3408);break}}while(0);return c[10417]|0}function TH(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;DL(b);f=a+8|0;e=c[f>>2]|0;do if((c[a+12>>2]|0)-e>>2>>>0<=d>>>0){o=0;ma(255,f|0,d+1|0);a=o;o=0;if(!(a&1)){e=c[f>>2]|0;break}e=cc()|0;if(b)EL(b)|0;bc(e|0)}while(0);a=c[e+(d<<2)>>2]|0;if(a){EL(a)|0;e=c[f>>2]|0}c[e+(d<<2)>>2]=b;return}function UH(a){a=a|0;var b=0,d=0,e=0,f=0;c[a>>2]=40880;e=a+8|0;f=a+12|0;b=c[e>>2]|0;if((c[f>>2]|0)!=(b|0)){d=0;do{b=c[b+(d<<2)>>2]|0;if(b)EL(b)|0;d=d+1|0;b=c[e>>2]|0}while(d>>>0<(c[f>>2]|0)-b>>2>>>0)}IC(a+144|0);ZK(e);return}function VH(a){a=a|0;UH(a);Uz(a);return}function WH(a,b){a=a|0;b=b|0;if($K(a,b)|0)return c[(c[a+8>>2]|0)+(b<<2)>>2]|0;else{a=Ob(4)|0;gA(a);Hc(a|0,1824,220)}return 0}function XH(){RH(3416,1);c[10416]=3416;return 41664}function YH(){var a=0;a=c[(SH()|0)>>2]|0;c[10418]=a;DL(a);return 41672}function ZH(){var b=0;do if((a[3576]|0)==0?(Hb(3576)|0)!=0:0){o=0;gb(47)|0;b=o;o=0;if(b&1){b=cc()|0;rc(3576);bc(b|0)}else{c[10419]=41672;Cc(3576);break}}while(0);return c[10419]|0}function _H(a){a=a|0;var b=0,d=0;o=0;b=gb(48)|0;d=o;o=0;if(d&1){d=cc(0)|0;oq(d)}else{d=c[b>>2]|0;c[a>>2]=d;DL(d);return}}function $H(a,b){a=a|0;b=b|0;b=c[b>>2]|0;c[a>>2]=b;DL(b);return}function aI(a){a=a|0;EL(c[a>>2]|0)|0;return}function bI(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;if((c[a>>2]|0)!=-1){c[b>>2]=a;c[b+4>>2]=347;c[b+8>>2]=0;RL(a,b,348)}i=d;return (c[a+4>>2]|0)+-1|0}function cI(a,b){a=a|0;b=b|0;a=c[a>>2]|0;return WH(a,bI(b)|0)|0}function dI(a){a=a|0;Uz(a);return}function eI(a){a=a|0;if(a)_c[c[(c[a>>2]|0)+4>>2]&511](a);return}function fI(a){a=a|0;var b=0;b=c[10223]|0;c[10223]=b+1;c[a+4>>2]=b+1;return}function gI(a){a=a|0;Uz(a);return}function hI(a,c,d){a=a|0;c=c|0;d=d|0;if(d>>>0<128)d=(b[(iI()|0)+(d<<1)>>1]&c)<<16>>16!=0;else d=0;return d|0}function iI(){var a=0,b=0;o=0;a=gb(49)|0;b=o;o=0;if(b&1){b=cc(0)|0;oq(b)}else return c[a>>2]|0;return 0}function jI(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0;i=(f-d|0)>>>2;if((d|0)!=(f|0)){h=d;while(1){a=c[h>>2]|0;if(a>>>0<128)a=e[(iI()|0)+(a<<1)>>1]|0;else a=0;b[g>>1]=a;h=h+4|0;if((h|0)==(f|0))break;else g=g+2|0}}return d+(i<<2)|0}function kI(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;a:do if((e|0)==(f|0))e=f;else while(1){a=c[e>>2]|0;if(a>>>0<128?(b[(iI()|0)+(a<<1)>>1]&d)<<16>>16!=0:0)break a;e=e+4|0;if((e|0)==(f|0)){e=f;break}}while(0);return e|0}function lI(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;a:do if((e|0)==(f|0))e=f;else while(1){a=c[e>>2]|0;if(a>>>0>=128)break a;if(!((b[(iI()|0)+(a<<1)>>1]&d)<<16>>16))break a;e=e+4|0;if((e|0)==(f|0)){e=f;break}}while(0);return e|0}function mI(a,b){a=a|0;b=b|0;if(b>>>0<128)b=c[(nI()|0)+(b<<2)>>2]|0;return b|0}function nI(){var a=0,b=0;o=0;a=gb(50)|0;b=o;o=0;if(b&1){b=cc(0)|0;oq(b)}else return c[a>>2]|0;return 0}function oI(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=(d-b|0)>>>2;if((b|0)!=(d|0)){e=b;do{a=c[e>>2]|0;if(a>>>0<128)a=c[(nI()|0)+(a<<2)>>2]|0;c[e>>2]=a;e=e+4|0}while((e|0)!=(d|0))}return b+(f<<2)|0}function pI(a,b){a=a|0;b=b|0;if(b>>>0<128)b=c[(qI()|0)+(b<<2)>>2]|0;return b|0}function qI(){var a=0,b=0;o=0;a=gb(51)|0;b=o;o=0;if(b&1){b=cc(0)|0;oq(b)}else return c[a>>2]|0;return 0}function rI(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=(d-b|0)>>>2;if((b|0)!=(d|0)){e=b;do{a=c[e>>2]|0;if(a>>>0<128)a=c[(qI()|0)+(a<<2)>>2]|0;c[e>>2]=a;e=e+4|0}while((e|0)!=(d|0))}return b+(f<<2)|0}function sI(a,b){a=a|0;b=b|0;return b<<24>>24|0}function tI(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)!=(e|0))while(1){c[f>>2]=a[d>>0];d=d+1|0;if((d|0)==(e|0))break;else f=f+4|0}return e|0}function uI(a,b,c){a=a|0;b=b|0;c=c|0;return (b>>>0<128?b&255:c)|0}function vI(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;i=(e-d|0)>>>2;if((d|0)!=(e|0)){h=d;b=g;while(1){g=c[h>>2]|0;a[b>>0]=g>>>0<128?g&255:f;h=h+4|0;if((h|0)==(e|0))break;else b=b+1|0}}return d+(i<<2)|0}function wI(b){b=b|0;var d=0;c[b>>2]=40920;d=c[b+8>>2]|0;if((d|0)!=0?(a[b+12>>0]|0)!=0:0)Vz(d);return}function xI(a){a=a|0;wI(a);Uz(a);return}function yI(a,b){a=a|0;b=b|0;if(b<<24>>24>-1)b=c[(nI()|0)+((b&255)<<2)>>2]&255;return b|0}function zI(b,d,e){b=b|0;d=d|0;e=e|0;if((d|0)!=(e|0)){b=d;do{d=a[b>>0]|0;if(d<<24>>24>-1)d=c[(nI()|0)+(d<<24>>24<<2)>>2]&255;a[b>>0]=d;b=b+1|0}while((b|0)!=(e|0))}return e|0}function AI(a,b){a=a|0;b=b|0;if(b<<24>>24>-1)b=c[(qI()|0)+(b<<24>>24<<2)>>2]&255;return b|0}function BI(b,d,e){b=b|0;d=d|0;e=e|0;if((d|0)!=(e|0)){b=d;do{d=a[b>>0]|0;if(d<<24>>24>-1)d=c[(qI()|0)+(d<<24>>24<<2)>>2]&255;a[b>>0]=d;b=b+1|0}while((b|0)!=(e|0))}return e|0}function CI(a,b){a=a|0;b=b|0;return b|0}function DI(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if((c|0)!=(d|0))while(1){a[e>>0]=a[c>>0]|0;c=c+1|0;if((c|0)==(d|0))break;else e=e+1|0}return d|0}function EI(a,b,c){a=a|0;b=b|0;c=c|0;return (b<<24>>24>-1?b:c)|0}function FI(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if((c|0)!=(d|0))while(1){b=a[c>>0]|0;a[f>>0]=b<<24>>24>-1?b:e;c=c+1|0;if((c|0)==(d|0))break;else f=f+1|0}return d|0}function GI(a){a=a|0;Uz(a);return}function HI(a,b,d,e,f,g,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;c[f>>2]=d;c[i>>2]=g;return 3}function II(a,b,d,e,f,g,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;c[f>>2]=d;c[i>>2]=g;return 3}function JI(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=d;return 3}function KI(a){a=a|0;return 1}function LI(a){a=a|0;return 1}function MI(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=d-c|0;return (a>>>0<e>>>0?a:e)|0}function NI(a){a=a|0;return 1}function OI(a,b){a=a|0;b=b|0;var d=0;c[a+4>>2]=b+-1;c[a>>2]=40988;o=0;b=gb(45)|0;d=o;o=0;if(d&1){d=cc()|0;bc(d|0)}else{c[a+8>>2]=b;return}}function PI(a){a=a|0;SJ(a);Uz(a);return}function QI(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+16|0;s=u;q=u+8|0;a:do if((e|0)==(f|0))l=f;else{l=e;while(1){if(!(c[l>>2]|0))break a;l=l+4|0;if((l|0)==(f|0)){l=f;break}}}while(0);c[k>>2]=h;c[g>>2]=e;n=j;r=b+8|0;b:do if(!((h|0)==(j|0)|(e|0)==(f|0))){b=h;m=l;c:while(1){w=d;h=c[w+4>>2]|0;l=s;c[l>>2]=c[w>>2];c[l+4>>2]=h;l=lB(c[r>>2]|0)|0;o=0;h=Ya(70,b|0,g|0,m-e>>2|0,n-b|0,d|0)|0;w=o;o=0;if(w&1){v=9;break}if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){v=8;break}switch(h|0){case 0:{p=1;break b}case -1:{l=b;v=14;break c}default:{}}l=(c[k>>2]|0)+h|0;c[k>>2]=l;if((l|0)==(j|0)){v=27;break}if((m|0)==(f|0)){e=c[g>>2]|0;b=l;l=f}else{l=lB(c[r>>2]|0)|0;o=0;e=ya(124,q|0,0,d|0)|0;w=o;o=0;if(w&1){v=35;break}if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){v=34;break}if((e|0)==-1){p=2;break b}if(e>>>0>(n-(c[k>>2]|0)|0)>>>0){p=1;break b}if(e){l=q;while(1){m=a[l>>0]|0;w=c[k>>2]|0;c[k>>2]=w+1;a[w>>0]=m;e=e+-1|0;if(!e)break;else l=l+1|0}}e=(c[g>>2]|0)+4|0;c[g>>2]=e;d:do if((e|0)==(f|0))l=f;else{l=e;while(1){if(!(c[l>>2]|0))break d;l=l+4|0;if((l|0)==(f|0)){l=f;break}}}while(0);b=c[k>>2]|0}if((b|0)==(j|0)|(e|0)==(f|0)){v=47;break b}else m=l}if((v|0)==8){w=cc(0)|0;oq(w)}else if((v|0)==9){e=cc()|0;if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){w=cc(0)|0;oq(w)}bc(e|0)}else if((v|0)==14){c[k>>2]=l;e:do if((e|0)!=(c[g>>2]|0)){while(1){w=c[e>>2]|0;b=lB(c[r>>2]|0)|0;o=0;l=ya(124,l|0,w|0,s|0)|0;w=o;o=0;if(w&1){t=b;break}if((b|0)!=0?(o=0,qa(193,b|0)|0,w=o,o=0,w&1):0){v=18;break}if((l|0)==-1)break e;l=(c[k>>2]|0)+l|0;c[k>>2]=l;e=e+4|0;if((e|0)==(c[g>>2]|0))break e}if((v|0)==18){w=cc(0)|0;oq(w)}e=cc()|0;if((t|0)!=0?(o=0,qa(193,t|0)|0,w=o,o=0,w&1):0){w=cc(0)|0;oq(w)}bc(e|0)}while(0);c[g>>2]=e;p=2;break}else if((v|0)==27){e=c[g>>2]|0;v=47;break}else if((v|0)==34){w=cc(0)|0;oq(w)}else if((v|0)==35){e=cc()|0;if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){w=cc(0)|0;oq(w)}bc(e|0)}}else v=47;while(0);if((v|0)==47)p=(e|0)!=(f|0)&1;i=u;return p|0}function RI(b,d,e,f,g,h,j,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+16|0;t=u;a:do if((e|0)==(f|0))l=f;else{l=e;while(1){if(!(a[l>>0]|0))break a;l=l+1|0;if((l|0)==(f|0)){l=f;break}}}while(0);c[k>>2]=h;c[g>>2]=e;p=j;r=b+8|0;b:do if(!((h|0)==(j|0)|(e|0)==(f|0))){b=h;n=l;c:while(1){m=d;l=c[m+4>>2]|0;h=t;c[h>>2]=c[m>>2];c[h+4>>2]=l;h=n;l=lB(c[r>>2]|0)|0;o=0;m=Ya(71,b|0,g|0,h-e|0,p-b>>2|0,d|0)|0;w=o;o=0;if(w&1){v=9;break}if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){v=8;break}switch(m|0){case 0:{q=2;break b}case -1:{l=b;v=14;break c}default:{}}b=(c[k>>2]|0)+(m<<2)|0;c[k>>2]=b;if((b|0)==(j|0)){v=31;break}e=c[g>>2]|0;if((n|0)==(f|0))l=f;else{l=lB(c[r>>2]|0)|0;o=0;e=kb(68,b|0,e|0,1,d|0)|0;w=o;o=0;if(w&1){v=38;break}if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){v=37;break}if(e){q=2;break b}c[k>>2]=(c[k>>2]|0)+4;e=(c[g>>2]|0)+1|0;c[g>>2]=e;d:do if((e|0)==(f|0))l=f;else{l=e;while(1){if(!(a[l>>0]|0))break d;l=l+1|0;if((l|0)==(f|0)){l=f;break}}}while(0);b=c[k>>2]|0}if((b|0)==(j|0)|(e|0)==(f|0)){v=47;break b}else n=l}if((v|0)==8){w=cc(0)|0;oq(w)}else if((v|0)==9){e=cc()|0;if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){w=cc(0)|0;oq(w)}bc(e|0)}else if((v|0)==14){c[k>>2]=l;e:do if((e|0)!=(c[g>>2]|0)){b=l;f:while(1){l=lB(c[r>>2]|0)|0;o=0;b=kb(68,b|0,e|0,h-e|0,t|0)|0;w=o;o=0;if(w&1){v=19;break}if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){v=18;break}switch(b|0){case -1:{v=25;break f}case -2:{v=26;break f}case 0:{e=e+1|0;break}default:e=e+b|0}b=(c[k>>2]|0)+4|0;c[k>>2]=b;if((e|0)==(c[g>>2]|0)){s=e;break e}}if((v|0)==18){w=cc(0)|0;oq(w)}else if((v|0)==19){e=cc()|0;if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){w=cc(0)|0;oq(w)}bc(e|0)}else if((v|0)==25){c[g>>2]=e;q=2;break b}else if((v|0)==26){c[g>>2]=e;q=1;break b}}else s=e;while(0);c[g>>2]=s;q=(s|0)!=(f|0)&1;break}else if((v|0)==31){e=c[g>>2]|0;v=47;break}else if((v|0)==37){w=cc(0)|0;oq(w)}else if((v|0)==38){e=cc()|0;if((l|0)!=0?(o=0,qa(193,l|0)|0,w=o,o=0,w&1):0){w=cc(0)|0;oq(w)}bc(e|0)}}else v=47;while(0);if((v|0)==47)q=(e|0)!=(f|0)&1;i=u;return q|0}function SI(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0;j=i;i=i+16|0;h=j;c[g>>2]=e;e=lB(c[b+8>>2]|0)|0;o=0;b=ya(124,h|0,0,d|0)|0;d=o;o=0;if(d&1){h=cc()|0;if((e|0)!=0?(o=0,qa(193,e|0)|0,j=o,o=0,j&1):0){j=cc(0)|0;oq(j)}bc(h|0)}if((e|0)!=0?(o=0,qa(193,e|0)|0,d=o,o=0,d&1):0){d=cc(0)|0;oq(d)}switch(b|0){case 0:case -1:{h=2;break}default:{b=b+-1|0;if(b>>>0<=(f-(c[g>>2]|0)|0)>>>0)if(!b)h=0;else while(1){d=a[h>>0]|0;f=c[g>>2]|0;c[g>>2]=f+1;a[f>>0]=d;b=b+-1|0;if(!b){h=0;break}else h=h+1|0}else h=1}}i=j;return h|0}function TI(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a+8|0;o=0;d=qa(193,c[b>>2]|0)|0;e=o;o=0;do if(e&1)f=16;else{o=0;e=ya(125,0,0,4)|0;a=o;o=0;if(a&1){a=cc(0)|0;if(!d)break;o=0;qa(193,d|0)|0;h=o;o=0;if(!(h&1))break;h=cc(0)|0;oq(h)}if((d|0)!=0?(o=0,qa(193,d|0)|0,h=o,o=0,h&1):0){h=cc(0)|0;oq(h)}if(!e){a=c[b>>2]|0;if(a){o=0;a=qa(193,a|0)|0;h=o;o=0;if(h&1){f=16;break}if((a|0)!=0?(o=0,qa(193,a|0)|0,h=o,o=0,h&1):0){h=cc(0)|0;oq(h)}else g=0}else g=1}else g=-1;return g|0}while(0);if((f|0)==16)a=cc(0)|0;oq(a);return 0}function UI(a){a=a|0;return 0}function VI(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;k=e;j=a+8|0;a:do if((d|0)==(e|0)|(f|0)==0)a=0;else{a=0;i=0;while(1){h=lB(c[j>>2]|0)|0;o=0;g=ya(126,d|0,k-d|0,b|0)|0;n=o;o=0;if(n&1){m=h;break}if((h|0)!=0?(o=0,qa(193,h|0)|0,n=o,o=0,n&1):0){l=5;break}switch(g|0){case -2:case -1:break a;case 0:{d=d+1|0;g=1;break}default:d=d+g|0}a=g+a|0;i=i+1|0;if((d|0)==(e|0)|i>>>0>=f>>>0)break a}if((l|0)==5){n=cc(0)|0;oq(n)}a=cc()|0;if((m|0)!=0?(o=0,qa(193,m|0)|0,n=o,o=0,n&1):0){n=cc(0)|0;oq(n)}bc(a|0)}while(0);return a|0}function WI(a){a=a|0;var b=0,d=0;a=c[a+8>>2]|0;if(a){o=0;a=qa(193,a|0)|0;d=o;o=0;if(d&1){d=cc(0)|0;oq(d)}if((a|0)!=0?(o=0,qa(193,a|0)|0,d=o,o=0,d&1):0){d=cc(0)|0;oq(d)}else b=4}else b=1;return b|0}function XI(a){a=a|0;Uz(a);return}function YI(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0;a=i;i=i+16|0;k=a+4|0;b=a;c[k>>2]=d;c[b>>2]=g;h=bL(d,e,k,g,h,b,1114111,0)|0;c[f>>2]=c[k>>2];c[j>>2]=c[b>>2];i=a;return h|0}function ZI(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0;a=i;i=i+16|0;k=a+4|0;b=a;c[k>>2]=d;c[b>>2]=g;h=cL(d,e,k,g,h,b,1114111,0)|0;c[f>>2]=c[k>>2];c[j>>2]=c[b>>2];i=a;return h|0}function _I(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=d;return 3}function $I(a){a=a|0;return 0}function aJ(a){a=a|0;return 0}function bJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return dL(c,d,e,1114111,0)|0}function cJ(a){a=a|0;return 4}function dJ(a){a=a|0;Uz(a);return}function eJ(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0;a=i;i=i+16|0;k=a+4|0;b=a;c[k>>2]=d;c[b>>2]=g;h=eL(d,e,k,g,h,b,1114111,0)|0;c[f>>2]=c[k>>2];c[j>>2]=c[b>>2];i=a;return h|0}function fJ(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0;a=i;i=i+16|0;k=a+4|0;b=a;c[k>>2]=d;c[b>>2]=g;h=fL(d,e,k,g,h,b,1114111,0)|0;c[f>>2]=c[k>>2];c[j>>2]=c[b>>2];i=a;return h|0}function gJ(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[f>>2]=d;return 3}function hJ(a){a=a|0;return 0}function iJ(a){a=a|0;return 0}function jJ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return gL(c,d,e,1114111,0)|0}function kJ(a){a=a|0;return 4}function lJ(a){a=a|0;Uz(a);return}function mJ(a){a=a|0;Uz(a);return}function nJ(b,d){b=b|0;d=d|0;c[b+4>>2]=d+-1;c[b>>2]=41068;a[b+8>>0]=46;a[b+9>>0]=44;b=b+12|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;return}function oJ(a,b){a=a|0;b=b|0;c[a+4>>2]=b+-1;c[a>>2]=41108;c[a+8>>2]=46;c[a+12>>2]=44;a=a+16|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function pJ(a){a=a|0;c[a>>2]=41068;IC(a+12|0);return}function qJ(a){a=a|0;pJ(a);Uz(a);return}function rJ(a){a=a|0;c[a>>2]=41108;IC(a+16|0);return}function sJ(a){a=a|0;rJ(a);Uz(a);return}function tJ(b){b=b|0;return a[b+8>>0]|0}function uJ(a){a=a|0;return c[a+8>>2]|0}function vJ(b){b=b|0;return a[b+9>>0]|0}function wJ(a){a=a|0;return c[a+12>>2]|0}function xJ(a,b){a=a|0;b=b|0;EC(a,b+12|0);return}function yJ(a,b){a=a|0;b=b|0;EC(a,b+16|0);return}function zJ(a,b){a=a|0;b=b|0;FC(a,61383,4);return}function AJ(a,b){a=a|0;b=b|0;XC(a,41680,jC(41680)|0);return}function BJ(a,b){a=a|0;b=b|0;FC(a,61388,5);return}function CJ(a,b){a=a|0;b=b|0;XC(a,41700,jC(41700)|0);return}function DJ(a){a=a|0;switch(c[a+4>>2]&74|0){case 64:{a=8;break}case 8:{a=16;break}case 0:{a=0;break}default:a=10}return a|0}function EJ(b){b=b|0;do if((a[3584]|0)==0?(Hb(3584)|0)!=0:0){if((a[3592]|0)==0?(Hb(3592)|0)!=0:0){b=41724;do{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;b=b+12|0}while((b|0)!=41892);Ec(349,0,n|0)|0;Cc(3592)}o=0;Wa(108,41724,61394)|0;b=o;o=0;if(((((((((((((!(b&1)?(o=0,Wa(108,41736,61401)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41748,61408)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41760,61416)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41772,61426)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41784,61435)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41796,61442)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41808,61451)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41820,61455)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41832,61459)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41844,61463)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41856,61467)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41868,61471)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,41880,61475)|0,b=o,o=0,!(b&1)):0){c[10473]=41724;Cc(3584);break}b=cc()|0;rc(3584);bc(b|0)}while(0);return c[10473]|0}function FJ(b){b=b|0;do if((a[3600]|0)==0?(Hb(3600)|0)!=0:0){if((a[3608]|0)==0?(Hb(3608)|0)!=0:0){b=41896;do{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;b=b+12|0}while((b|0)!=42064);Ec(350,0,n|0)|0;Cc(3608)}o=0;Wa(118,41896,42064)|0;b=o;o=0;if(((((((((((((!(b&1)?(o=0,Wa(118,41908,42092)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,41920,42120)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,41932,42152)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,41944,42192)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,41956,42228)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,41968,42256)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,41980,42292)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,41992,42308)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42004,42324)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42016,42340)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42028,42356)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42040,42372)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42052,42388)|0,b=o,o=0,!(b&1)):0){c[10601]=41896;Cc(3600);break}b=cc()|0;rc(3600);bc(b|0)}while(0);return c[10601]|0}function GJ(b){b=b|0;a:do if((a[3616]|0)==0?(Hb(3616)|0)!=0:0){if((a[3624]|0)==0?(Hb(3624)|0)!=0:0){b=42408;do{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;b=b+12|0}while((b|0)!=42696);Ec(351,0,n|0)|0;Cc(3624)}o=0;Wa(108,42408,61479)|0;b=o;o=0;do if((((((((((((((!(b&1)?(o=0,Wa(108,42420,61487)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42432,61496)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42444,61502)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42456,61508)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42468,61512)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42480,61517)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42492,61522)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42504,61529)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42516,61539)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42528,61547)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42540,61556)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42552,61565)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42564,61569)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(108,42576,61573)|0,b=o,o=0,!(b&1)):0){o=0;Wa(108,42588,61577)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42600,61508)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42612,61581)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42624,61585)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42636,61589)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42648,61593)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42660,61597)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42672,61601)|0;b=o;o=0;if(b&1)break;o=0;Wa(108,42684,61605)|0;b=o;o=0;if(b&1)break;c[10674]=42408;Cc(3616);break a}while(0);b=cc()|0;rc(3616);bc(b|0)}while(0);return c[10674]|0}function HJ(b){b=b|0;a:do if((a[3632]|0)==0?(Hb(3632)|0)!=0:0){if((a[3640]|0)==0?(Hb(3640)|0)!=0:0){b=42700;do{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;b=b+12|0}while((b|0)!=42988);Ec(352,0,n|0)|0;Cc(3640)}o=0;Wa(118,42700,42988)|0;b=o;o=0;do if((((((((((((((!(b&1)?(o=0,Wa(118,42712,43020)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42724,43056)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42736,43080)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42748,43104)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42760,43120)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42772,43140)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42784,43160)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42796,43188)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42808,43228)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42820,43260)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42832,43296)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42844,43332)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42856,43348)|0,b=o,o=0,!(b&1)):0)?(o=0,Wa(118,42868,43364)|0,b=o,o=0,!(b&1)):0){o=0;Wa(118,42880,43380)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42892,43104)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42904,43396)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42916,43412)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42928,43428)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42940,43444)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42952,43460)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42964,43476)|0;b=o;o=0;if(b&1)break;o=0;Wa(118,42976,43492)|0;b=o;o=0;if(b&1)break;c[10877]=42700;Cc(3632);break a}while(0);b=cc()|0;rc(3632);bc(b|0)}while(0);return c[10877]|0}function IJ(b){b=b|0;do if((a[3648]|0)==0?(Hb(3648)|0)!=0:0){if((a[3656]|0)==0?(Hb(3656)|0)!=0:0){b=43512;do{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;b=b+12|0}while((b|0)!=43800);Ec(353,0,n|0)|0;Cc(3656)}o=0;Wa(108,43512,61609)|0;b=o;o=0;if(!(b&1)?(o=0,Wa(108,43524,61612)|0,b=o,o=0,!(b&1)):0){c[10950]=43512;Cc(3648);break}b=cc()|0;rc(3648);bc(b|0)}while(0);return c[10950]|0}function JJ(b){b=b|0;do if((a[3664]|0)==0?(Hb(3664)|0)!=0:0){if((a[3672]|0)==0?(Hb(3672)|0)!=0:0){b=43804;do{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;b=b+12|0}while((b|0)!=44092);Ec(354,0,n|0)|0;Cc(3672)}o=0;Wa(118,43804,44092)|0;b=o;o=0;if(!(b&1)?(o=0,Wa(118,43816,44104)|0,b=o,o=0,!(b&1)):0){c[11029]=43804;Cc(3664);break}b=cc()|0;rc(3664);bc(b|0)}while(0);return c[11029]|0}function KJ(b){b=b|0;do if((a[3680]|0)==0?(Hb(3680)|0)!=0:0){o=0;mb(57,44120,61615,8);b=o;o=0;if(b&1){b=cc()|0;rc(3680);bc(b|0)}else{Ec(331,44120,n|0)|0;Cc(3680);break}}while(0);return 44120}function LJ(b){b=b|0;var c=0;do if((a[3688]|0)==0?(Hb(3688)|0)!=0:0){o=0;b=qa(194,44132)|0;c=o;o=0;if(!(c&1)?(o=0,mb(119,44168,44132,b|0),c=o,o=0,!(c&1)):0){Ec(355,44168,n|0)|0;Cc(3688);break}c=cc()|0;rc(3688);bc(c|0)}while(0);return 44168}function MJ(b){b=b|0;do if((a[3696]|0)==0?(Hb(3696)|0)!=0:0){o=0;mb(57,44180,61624,8);b=o;o=0;if(b&1){b=cc()|0;rc(3696);bc(b|0)}else{Ec(331,44180,n|0)|0;Cc(3696);break}}while(0);return 44180}function NJ(b){b=b|0;var c=0;do if((a[3704]|0)==0?(Hb(3704)|0)!=0:0){o=0;b=qa(194,44192)|0;c=o;o=0;if(!(c&1)?(o=0,mb(119,44228,44192,b|0),c=o,o=0,!(c&1)):0){Ec(355,44228,n|0)|0;Cc(3704);break}c=cc()|0;rc(3704);bc(c|0)}while(0);return 44228}function OJ(b){b=b|0;do if((a[3712]|0)==0?(Hb(3712)|0)!=0:0){o=0;mb(57,44240,61633,20);b=o;o=0;if(b&1){b=cc()|0;rc(3712);bc(b|0)}else{Ec(331,44240,n|0)|0;Cc(3712);break}}while(0);return 44240}function PJ(b){b=b|0;var c=0;do if((a[3720]|0)==0?(Hb(3720)|0)!=0:0){o=0;b=qa(194,44252)|0;c=o;o=0;if(!(c&1)?(o=0,mb(119,44336,44252,b|0),c=o,o=0,!(c&1)):0){Ec(355,44336,n|0)|0;Cc(3720);break}c=cc()|0;rc(3720);bc(c|0)}while(0);return 44336}function QJ(b){b=b|0;do if((a[3728]|0)==0?(Hb(3728)|0)!=0:0){o=0;mb(57,44348,61654,11);b=o;o=0;if(b&1){b=cc()|0;rc(3728);bc(b|0)}else{Ec(331,44348,n|0)|0;Cc(3728);break}}while(0);return 44348}function RJ(b){b=b|0;var c=0;do if((a[3736]|0)==0?(Hb(3736)|0)!=0:0){o=0;b=qa(194,44360)|0;c=o;o=0;if(!(c&1)?(o=0,mb(119,44408,44360,b|0),c=o,o=0,!(c&1)):0){Ec(355,44408,n|0)|0;Cc(3736);break}c=cc()|0;rc(3736);bc(c|0)}while(0);return 44408}function SJ(a){a=a|0;var b=0,d=0,e=0;c[a>>2]=40988;a=a+8|0;b=c[a>>2]|0;o=0;d=gb(45)|0;e=o;o=0;do if(!(e&1)){if((b|0)!=(d|0)?(o=0,ka(344,c[a>>2]|0),e=o,o=0,e&1):0)break;return}while(0);e=cc(0)|0;oq(e)}function TJ(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+112|0;m=z;p=(g-f|0)/12|0;do if(p>>>0>100){m=yC(p)|0;if((m|0)==0?(o=0,ob(46),y=o,o=0,y&1):0){l=0;s=6;break}l=m;s=11}else{l=0;s=11}while(0);a:do if((s|0)==11){if((f|0)==(g|0))n=0;else{s=f;q=0;r=m;while(1){n=a[s>>0]|0;if(!(n&1))n=(n&255)>>>1;else n=c[s+4>>2]|0;if(!n){a[r>>0]=2;n=q+1|0;p=p+-1|0}else{a[r>>0]=1;n=q}s=s+12|0;if((s|0)==(g|0))break;else{q=n;r=r+1|0}}}x=(f|0)==(g|0);y=(f|0)==(g|0);w=0;t=n;b:while(1){n=c[b>>2]|0;do if(n){if((c[n+12>>2]|0)==(c[n+16>>2]|0)){o=0;n=qa(c[(c[n>>2]|0)+36>>2]|0,n|0)|0;v=o;o=0;if(v&1){s=5;break b}if((n|0)==-1){c[b>>2]=0;n=0;break}else{n=c[b>>2]|0;break}}}else n=0;while(0);s=(n|0)==0;q=c[e>>2]|0;if(q){if((c[q+12>>2]|0)==(c[q+16>>2]|0)){o=0;n=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;v=o;o=0;if(v&1){s=5;break}if((n|0)==-1){c[e>>2]=0;q=0}}}else q=0;r=(q|0)==0;n=c[b>>2]|0;if(!((p|0)!=0&(s^r))){s=64;break}q=c[n+12>>2]|0;if((q|0)==(c[n+16>>2]|0)){o=0;n=qa(c[(c[n>>2]|0)+36>>2]|0,n|0)|0;v=o;o=0;if(v&1){s=5;break}}else n=d[q>>0]|0;n=n&255;if(!k){o=0;n=Wa(c[(c[h>>2]|0)+12>>2]|0,h|0,n|0)|0;v=o;o=0;if(v&1){s=5;break}}v=w+1|0;if(x){n=0;s=t}else{r=0;u=f;s=t;t=m;while(1){do if((a[t>>0]|0)==1){if(!(a[u>>0]&1))q=u+1|0;else q=c[u+8>>2]|0;q=a[q+w>>0]|0;if(!k){o=0;q=Wa(c[(c[h>>2]|0)+12>>2]|0,h|0,q|0)|0;A=o;o=0;if(A&1){s=4;break b}}if(n<<24>>24!=q<<24>>24){a[t>>0]=0;q=r;p=p+-1|0;break}q=a[u>>0]|0;if(!(q&1))q=(q&255)>>>1;else q=c[u+4>>2]|0;if((q|0)==(v|0)){a[t>>0]=2;q=1;s=s+1|0;p=p+-1|0}else q=1}else q=r;while(0);u=u+12|0;if((u|0)==(g|0)){n=q;break}else{r=q;t=t+1|0}}}if(!n){w=v;t=s;continue}n=c[b>>2]|0;q=n+12|0;r=c[q>>2]|0;if((r|0)==(c[n+16>>2]|0)){o=0;qa(c[(c[n>>2]|0)+40>>2]|0,n|0)|0;A=o;o=0;if(A&1){s=5;break}}else c[q>>2]=r+1;if((s+p|0)>>>0<2|y){w=v;t=s;continue}else{n=f;r=s;s=m}while(1){if((a[s>>0]|0)==2){q=a[n>>0]|0;if(!(q&1))q=(q&255)>>>1;else q=c[n+4>>2]|0;if((q|0)!=(v|0)){a[s>>0]=0;r=r+-1|0}}n=n+12|0;if((n|0)==(g|0)){w=v;t=r;continue b}else s=s+1|0}}if((s|0)==4){f=cc()|0;break}else if((s|0)==5){f=cc()|0;break}else if((s|0)==64){do if(n){if((c[n+12>>2]|0)==(c[n+16>>2]|0)){o=0;n=qa(c[(c[n>>2]|0)+36>>2]|0,n|0)|0;A=o;o=0;if(A&1){s=6;break a}if((n|0)==-1){c[b>>2]=0;n=0;break}else{n=c[b>>2]|0;break}}}else n=0;while(0);p=(n|0)==0;do if(!r){if((c[q+12>>2]|0)==(c[q+16>>2]|0)){o=0;n=qa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;A=o;o=0;if(A&1){s=6;break a}if((n|0)==-1){c[e>>2]=0;s=76;break}}if(!p)s=77}else s=76;while(0);if((s|0)==76?p:0)s=77;if((s|0)==77)c[j>>2]=c[j>>2]|2;c:do if((f|0)==(g|0))s=81;else while(1){if((a[m>>0]|0)==2)break c;f=f+12|0;if((f|0)==(g|0)){s=81;break}else m=m+1|0}while(0);if((s|0)==81){c[j>>2]=c[j>>2]|4;f=g}if(l)zC(l);i=z;return f|0}}while(0);if((s|0)==6)f=cc()|0;if(l)zC(l);bc(f|0);return 0}function UJ(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;A=i;i=i+240|0;t=A+202|0;k=A+200|0;C=A+24|0;B=A+12|0;v=A+8|0;y=A+40|0;z=A+4|0;w=A;u=DJ(g)|0;GE(C,g,t,k);c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;if(!(a[B>>0]&1))b=10;else b=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,b|0,0);s=o;o=0;a:do if(!(s&1)){q=B+8|0;r=B+1|0;g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g;c[z>>2]=y;c[w>>2]=0;s=B+4|0;p=a[k>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;n=o;o=0;if(n&1){D=24;break}if((k|0)==-1){c[e>>2]=0;b=0}}}else b=0;l=(b|0)==0;k=c[f>>2]|0;do if(k){if((c[k+12>>2]|0)!=(c[k+16>>2]|0))if(l)break;else break b;o=0;m=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;n=o;o=0;if(n&1){D=24;break b}if((m|0)!=-1)if(l)break;else break b;else{c[f>>2]=0;D=16;break}}else D=16;while(0);if((D|0)==16){D=0;if(l){k=0;break}else k=0}l=a[B>>0]|0;l=(l&1)==0?(l&255)>>>1:c[s>>2]|0;if((c[v>>2]|0)==(g+l|0)){o=0;mb(80,B|0,l<<1|0,0);n=o;o=0;if(n&1){D=24;break}if(!(a[B>>0]&1))g=10;else g=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,g|0,0);n=o;o=0;if(n&1){D=24;break}g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g+l}m=b+12|0;l=c[m>>2]|0;n=b+16|0;if((l|0)==(c[n>>2]|0)){o=0;l=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=24;break}}else l=d[l>>0]|0;if(qE(l&255,u,g,v,w,p,C,y,z,t)|0)break;k=c[m>>2]|0;if((k|0)==(c[n>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=24;break}else continue}else{c[m>>2]=k+1;continue}}if((D|0)==24){b=cc()|0;break}E=a[C>>0]|0;if((((E&1)==0?(E&255)>>>1:c[C+4>>2]|0)|0)!=0?(x=c[z>>2]|0,(x-y|0)<160):0){E=c[w>>2]|0;c[z>>2]=x+4;c[x>>2]=E}o=0;g=kb(69,g|0,c[v>>2]|0,h|0,u|0)|0;E=o;o=0;if(!(E&1)){c[j>>2]=g;oH(C,y,c[z>>2]|0,h);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=25;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(k){if((c[k+12>>2]|0)==(c[k+16>>2]|0)){o=0;b=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;E=o;o=0;if(E&1){D=25;break a}if((b|0)==-1){c[f>>2]=0;D=49;break}}if(!g)D=50}else D=49;while(0);if((D|0)==49?g:0)D=50;if((D|0)==50)c[h>>2]=c[h>>2]|2;E=c[e>>2]|0;IC(B);IC(C);i=A;return E|0}else D=25}else D=25;while(0);if((D|0)==25)b=cc()|0;IC(B);IC(C);bc(b|0);return 0}function VJ(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0;A=i;i=i+240|0;t=A+202|0;k=A+200|0;C=A+24|0;B=A+12|0;v=A+8|0;y=A+40|0;z=A+4|0;w=A;u=DJ(g)|0;GE(C,g,t,k);c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;if(!(a[B>>0]&1))b=10;else b=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,b|0,0);s=o;o=0;a:do if(!(s&1)){q=B+8|0;r=B+1|0;g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g;c[z>>2]=y;c[w>>2]=0;s=B+4|0;p=a[k>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;n=o;o=0;if(n&1){E=24;break}if((k|0)==-1){c[e>>2]=0;b=0}}}else b=0;k=(b|0)==0;l=c[f>>2]|0;do if(l){if((c[l+12>>2]|0)!=(c[l+16>>2]|0))if(k)break;else break b;o=0;m=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;n=o;o=0;if(n&1){E=24;break b}if((m|0)!=-1)if(k)break;else break b;else{c[f>>2]=0;E=16;break}}else E=16;while(0);if((E|0)==16){E=0;if(k){l=0;break}else l=0}k=a[B>>0]|0;k=(k&1)==0?(k&255)>>>1:c[s>>2]|0;if((c[v>>2]|0)==(g+k|0)){o=0;mb(80,B|0,k<<1|0,0);n=o;o=0;if(n&1){E=24;break}if(!(a[B>>0]&1))g=10;else g=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,g|0,0);n=o;o=0;if(n&1){E=24;break}g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g+k}m=b+12|0;k=c[m>>2]|0;n=b+16|0;if((k|0)==(c[n>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;F=o;o=0;if(F&1){E=24;break}}else k=d[k>>0]|0;if(qE(k&255,u,g,v,w,p,C,y,z,t)|0)break;k=c[m>>2]|0;if((k|0)==(c[n>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;F=o;o=0;if(F&1){E=24;break}else continue}else{c[m>>2]=k+1;continue}}if((E|0)==24){b=cc()|0;break}F=a[C>>0]|0;if((((F&1)==0?(F&255)>>>1:c[C+4>>2]|0)|0)!=0?(x=c[z>>2]|0,(x-y|0)<160):0){F=c[w>>2]|0;c[z>>2]=x+4;c[x>>2]=F}o=0;g=kb(70,g|0,c[v>>2]|0,h|0,u|0)|0;k=D;F=o;o=0;if(!(F&1)){F=j;c[F>>2]=g;c[F+4>>2]=k;oH(C,y,c[z>>2]|0,h);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;F=o;o=0;if(F&1){E=25;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(l){if((c[l+12>>2]|0)==(c[l+16>>2]|0)){o=0;b=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;F=o;o=0;if(F&1){E=25;break a}if((b|0)==-1){c[f>>2]=0;E=49;break}}if(!g)E=50}else E=49;while(0);if((E|0)==49?g:0)E=50;if((E|0)==50)c[h>>2]=c[h>>2]|2;F=c[e>>2]|0;IC(B);IC(C);i=A;return F|0}else E=25}else E=25;while(0);if((E|0)==25)b=cc()|0;IC(B);IC(C);bc(b|0);return 0}function WJ(e,f,g,h,j,k){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;B=i;i=i+240|0;u=B+202|0;l=B+200|0;D=B+24|0;C=B+12|0;w=B+8|0;z=B+40|0;A=B+4|0;x=B;v=DJ(h)|0;GE(D,h,u,l);c[C>>2]=0;c[C+4>>2]=0;c[C+8>>2]=0;if(!(a[C>>0]&1))e=10;else e=(c[C>>2]&-2)+-1|0;o=0;mb(80,C|0,e|0,0);t=o;o=0;a:do if(!(t&1)){r=C+8|0;s=C+1|0;h=(a[C>>0]&1)==0?s:c[r>>2]|0;c[w>>2]=h;c[A>>2]=z;c[x>>2]=0;t=C+4|0;q=a[l>>0]|0;e=c[f>>2]|0;b:while(1){if(e){if((c[e+12>>2]|0)==(c[e+16>>2]|0)){o=0;l=qa(c[(c[e>>2]|0)+36>>2]|0,e|0)|0;p=o;o=0;if(p&1){E=24;break}if((l|0)==-1){c[f>>2]=0;e=0}}}else e=0;m=(e|0)==0;l=c[g>>2]|0;do if(l){if((c[l+12>>2]|0)!=(c[l+16>>2]|0))if(m)break;else break b;o=0;n=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;p=o;o=0;if(p&1){E=24;break b}if((n|0)!=-1)if(m)break;else break b;else{c[g>>2]=0;E=16;break}}else E=16;while(0);if((E|0)==16){E=0;if(m){l=0;break}else l=0}m=a[C>>0]|0;m=(m&1)==0?(m&255)>>>1:c[t>>2]|0;if((c[w>>2]|0)==(h+m|0)){o=0;mb(80,C|0,m<<1|0,0);p=o;o=0;if(p&1){E=24;break}if(!(a[C>>0]&1))h=10;else h=(c[C>>2]&-2)+-1|0;o=0;mb(80,C|0,h|0,0);p=o;o=0;if(p&1){E=24;break}h=(a[C>>0]&1)==0?s:c[r>>2]|0;c[w>>2]=h+m}n=e+12|0;m=c[n>>2]|0;p=e+16|0;if((m|0)==(c[p>>2]|0)){o=0;m=qa(c[(c[e>>2]|0)+36>>2]|0,e|0)|0;F=o;o=0;if(F&1){E=24;break}}else m=d[m>>0]|0;if(qE(m&255,v,h,w,x,q,D,z,A,u)|0)break;l=c[n>>2]|0;if((l|0)==(c[p>>2]|0)){o=0;qa(c[(c[e>>2]|0)+40>>2]|0,e|0)|0;F=o;o=0;if(F&1){E=24;break}else continue}else{c[n>>2]=l+1;continue}}if((E|0)==24){e=cc()|0;break}F=a[D>>0]|0;if((((F&1)==0?(F&255)>>>1:c[D+4>>2]|0)|0)!=0?(y=c[A>>2]|0,(y-z|0)<160):0){F=c[x>>2]|0;c[A>>2]=y+4;c[y>>2]=F}o=0;h=kb(71,h|0,c[w>>2]|0,j|0,v|0)|0;F=o;o=0;if(!(F&1)){b[k>>1]=h;oH(D,z,c[A>>2]|0,j);if(e){if((c[e+12>>2]|0)==(c[e+16>>2]|0)){o=0;h=qa(c[(c[e>>2]|0)+36>>2]|0,e|0)|0;F=o;o=0;if(F&1){E=25;break}if((h|0)==-1){c[f>>2]=0;e=0}}}else e=0;h=(e|0)==0;do if(l){if((c[l+12>>2]|0)==(c[l+16>>2]|0)){o=0;e=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;F=o;o=0;if(F&1){E=25;break a}if((e|0)==-1){c[g>>2]=0;E=49;break}}if(!h)E=50}else E=49;while(0);if((E|0)==49?h:0)E=50;if((E|0)==50)c[j>>2]=c[j>>2]|2;F=c[f>>2]|0;IC(C);IC(D);i=B;return F|0}else E=25}else E=25;while(0);if((E|0)==25)e=cc()|0;IC(C);IC(D);bc(e|0);return 0}function XJ(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;A=i;i=i+240|0;t=A+202|0;k=A+200|0;C=A+24|0;B=A+12|0;v=A+8|0;y=A+40|0;z=A+4|0;w=A;u=DJ(g)|0;GE(C,g,t,k);c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;if(!(a[B>>0]&1))b=10;else b=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,b|0,0);s=o;o=0;a:do if(!(s&1)){q=B+8|0;r=B+1|0;g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g;c[z>>2]=y;c[w>>2]=0;s=B+4|0;p=a[k>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;n=o;o=0;if(n&1){D=24;break}if((k|0)==-1){c[e>>2]=0;b=0}}}else b=0;l=(b|0)==0;k=c[f>>2]|0;do if(k){if((c[k+12>>2]|0)!=(c[k+16>>2]|0))if(l)break;else break b;o=0;m=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;n=o;o=0;if(n&1){D=24;break b}if((m|0)!=-1)if(l)break;else break b;else{c[f>>2]=0;D=16;break}}else D=16;while(0);if((D|0)==16){D=0;if(l){k=0;break}else k=0}l=a[B>>0]|0;l=(l&1)==0?(l&255)>>>1:c[s>>2]|0;if((c[v>>2]|0)==(g+l|0)){o=0;mb(80,B|0,l<<1|0,0);n=o;o=0;if(n&1){D=24;break}if(!(a[B>>0]&1))g=10;else g=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,g|0,0);n=o;o=0;if(n&1){D=24;break}g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g+l}m=b+12|0;l=c[m>>2]|0;n=b+16|0;if((l|0)==(c[n>>2]|0)){o=0;l=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=24;break}}else l=d[l>>0]|0;if(qE(l&255,u,g,v,w,p,C,y,z,t)|0)break;k=c[m>>2]|0;if((k|0)==(c[n>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=24;break}else continue}else{c[m>>2]=k+1;continue}}if((D|0)==24){b=cc()|0;break}E=a[C>>0]|0;if((((E&1)==0?(E&255)>>>1:c[C+4>>2]|0)|0)!=0?(x=c[z>>2]|0,(x-y|0)<160):0){E=c[w>>2]|0;c[z>>2]=x+4;c[x>>2]=E}o=0;g=kb(72,g|0,c[v>>2]|0,h|0,u|0)|0;E=o;o=0;if(!(E&1)){c[j>>2]=g;oH(C,y,c[z>>2]|0,h);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=25;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(k){if((c[k+12>>2]|0)==(c[k+16>>2]|0)){o=0;b=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;E=o;o=0;if(E&1){D=25;break a}if((b|0)==-1){c[f>>2]=0;D=49;break}}if(!g)D=50}else D=49;while(0);if((D|0)==49?g:0)D=50;if((D|0)==50)c[h>>2]=c[h>>2]|2;E=c[e>>2]|0;IC(B);IC(C);i=A;return E|0}else D=25}else D=25;while(0);if((D|0)==25)b=cc()|0;IC(B);IC(C);bc(b|0);return 0}function YJ(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;A=i;i=i+240|0;t=A+202|0;k=A+200|0;C=A+24|0;B=A+12|0;v=A+8|0;y=A+40|0;z=A+4|0;w=A;u=DJ(g)|0;GE(C,g,t,k);c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;if(!(a[B>>0]&1))b=10;else b=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,b|0,0);s=o;o=0;a:do if(!(s&1)){q=B+8|0;r=B+1|0;g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g;c[z>>2]=y;c[w>>2]=0;s=B+4|0;p=a[k>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;n=o;o=0;if(n&1){D=24;break}if((k|0)==-1){c[e>>2]=0;b=0}}}else b=0;l=(b|0)==0;k=c[f>>2]|0;do if(k){if((c[k+12>>2]|0)!=(c[k+16>>2]|0))if(l)break;else break b;o=0;m=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;n=o;o=0;if(n&1){D=24;break b}if((m|0)!=-1)if(l)break;else break b;else{c[f>>2]=0;D=16;break}}else D=16;while(0);if((D|0)==16){D=0;if(l){k=0;break}else k=0}l=a[B>>0]|0;l=(l&1)==0?(l&255)>>>1:c[s>>2]|0;if((c[v>>2]|0)==(g+l|0)){o=0;mb(80,B|0,l<<1|0,0);n=o;o=0;if(n&1){D=24;break}if(!(a[B>>0]&1))g=10;else g=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,g|0,0);n=o;o=0;if(n&1){D=24;break}g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g+l}m=b+12|0;l=c[m>>2]|0;n=b+16|0;if((l|0)==(c[n>>2]|0)){o=0;l=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=24;break}}else l=d[l>>0]|0;if(qE(l&255,u,g,v,w,p,C,y,z,t)|0)break;k=c[m>>2]|0;if((k|0)==(c[n>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=24;break}else continue}else{c[m>>2]=k+1;continue}}if((D|0)==24){b=cc()|0;break}E=a[C>>0]|0;if((((E&1)==0?(E&255)>>>1:c[C+4>>2]|0)|0)!=0?(x=c[z>>2]|0,(x-y|0)<160):0){E=c[w>>2]|0;c[z>>2]=x+4;c[x>>2]=E}o=0;g=kb(73,g|0,c[v>>2]|0,h|0,u|0)|0;E=o;o=0;if(!(E&1)){c[j>>2]=g;oH(C,y,c[z>>2]|0,h);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;E=o;o=0;if(E&1){D=25;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(k){if((c[k+12>>2]|0)==(c[k+16>>2]|0)){o=0;b=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;E=o;o=0;if(E&1){D=25;break a}if((b|0)==-1){c[f>>2]=0;D=49;break}}if(!g)D=50}else D=49;while(0);if((D|0)==49?g:0)D=50;if((D|0)==50)c[h>>2]=c[h>>2]|2;E=c[e>>2]|0;IC(B);IC(C);i=A;return E|0}else D=25}else D=25;while(0);if((D|0)==25)b=cc()|0;IC(B);IC(C);bc(b|0);return 0}function ZJ(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0;A=i;i=i+240|0;t=A+202|0;k=A+200|0;C=A+24|0;B=A+12|0;v=A+8|0;y=A+40|0;z=A+4|0;w=A;u=DJ(g)|0;GE(C,g,t,k);c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;if(!(a[B>>0]&1))b=10;else b=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,b|0,0);s=o;o=0;a:do if(!(s&1)){q=B+8|0;r=B+1|0;g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g;c[z>>2]=y;c[w>>2]=0;s=B+4|0;p=a[k>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;n=o;o=0;if(n&1){E=24;break}if((k|0)==-1){c[e>>2]=0;b=0}}}else b=0;k=(b|0)==0;l=c[f>>2]|0;do if(l){if((c[l+12>>2]|0)!=(c[l+16>>2]|0))if(k)break;else break b;o=0;m=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;n=o;o=0;if(n&1){E=24;break b}if((m|0)!=-1)if(k)break;else break b;else{c[f>>2]=0;E=16;break}}else E=16;while(0);if((E|0)==16){E=0;if(k){l=0;break}else l=0}k=a[B>>0]|0;k=(k&1)==0?(k&255)>>>1:c[s>>2]|0;if((c[v>>2]|0)==(g+k|0)){o=0;mb(80,B|0,k<<1|0,0);n=o;o=0;if(n&1){E=24;break}if(!(a[B>>0]&1))g=10;else g=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,g|0,0);n=o;o=0;if(n&1){E=24;break}g=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=g+k}m=b+12|0;k=c[m>>2]|0;n=b+16|0;if((k|0)==(c[n>>2]|0)){o=0;k=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;F=o;o=0;if(F&1){E=24;break}}else k=d[k>>0]|0;if(qE(k&255,u,g,v,w,p,C,y,z,t)|0)break;k=c[m>>2]|0;if((k|0)==(c[n>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;F=o;o=0;if(F&1){E=24;break}else continue}else{c[m>>2]=k+1;continue}}if((E|0)==24){b=cc()|0;break}F=a[C>>0]|0;if((((F&1)==0?(F&255)>>>1:c[C+4>>2]|0)|0)!=0?(x=c[z>>2]|0,(x-y|0)<160):0){F=c[w>>2]|0;c[z>>2]=x+4;c[x>>2]=F}o=0;g=kb(74,g|0,c[v>>2]|0,h|0,u|0)|0;k=D;F=o;o=0;if(!(F&1)){F=j;c[F>>2]=g;c[F+4>>2]=k;oH(C,y,c[z>>2]|0,h);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;F=o;o=0;if(F&1){E=25;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(l){if((c[l+12>>2]|0)==(c[l+16>>2]|0)){o=0;b=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;F=o;o=0;if(F&1){E=25;break a}if((b|0)==-1){c[f>>2]=0;E=49;break}}if(!g)E=50}else E=49;while(0);if((E|0)==49?g:0)E=50;if((E|0)==50)c[h>>2]=c[h>>2]|2;F=c[e>>2]|0;IC(B);IC(C);i=A;return F|0}else E=25}else E=25;while(0);if((E|0)==25)b=cc()|0;IC(B);IC(C);bc(b|0);return 0}function _J(b,e,f,h,j,k){b=b|0;e=e|0;f=f|0;h=h|0;j=j|0;k=k|0;var l=0.0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;E=i;i=i+240|0;w=E+208|0;m=E+203|0;n=E+202|0;G=E+24|0;F=E+12|0;y=E+8|0;C=E+40|0;D=E+4|0;z=E;A=E+201|0;x=E+200|0;HE(G,h,w,m,n);c[F>>2]=0;c[F+4>>2]=0;c[F+8>>2]=0;if(!(a[F>>0]&1))b=10;else b=(c[F>>2]&-2)+-1|0;o=0;mb(80,F|0,b|0,0);v=o;o=0;a:do if(!(v&1)){t=F+8|0;u=F+1|0;h=(a[F>>0]&1)==0?u:c[t>>2]|0;c[y>>2]=h;c[D>>2]=C;c[z>>2]=0;a[A>>0]=1;a[x>>0]=69;v=F+4|0;s=a[m>>0]|0;r=a[n>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;m=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;q=o;o=0;if(q&1){H=24;break}if((m|0)==-1){c[e>>2]=0;b=0}}}else b=0;n=(b|0)==0;m=c[f>>2]|0;do if(m){if((c[m+12>>2]|0)!=(c[m+16>>2]|0))if(n)break;else break b;o=0;p=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;q=o;o=0;if(q&1){H=24;break b}if((p|0)!=-1)if(n)break;else break b;else{c[f>>2]=0;H=16;break}}else H=16;while(0);if((H|0)==16){H=0;if(n){m=0;break}else m=0}n=a[F>>0]|0;n=(n&1)==0?(n&255)>>>1:c[v>>2]|0;if((c[y>>2]|0)==(h+n|0)){o=0;mb(80,F|0,n<<1|0,0);q=o;o=0;if(q&1){H=24;break}if(!(a[F>>0]&1))h=10;else h=(c[F>>2]&-2)+-1|0;o=0;mb(80,F|0,h|0,0);q=o;o=0;if(q&1){H=24;break}h=(a[F>>0]&1)==0?u:c[t>>2]|0;c[y>>2]=h+n}p=b+12|0;n=c[p>>2]|0;q=b+16|0;if((n|0)==(c[q>>2]|0)){o=0;n=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=24;break}}else n=d[n>>0]|0;if(IE(n&255,A,x,h,y,s,r,G,C,D,z,w)|0)break;m=c[p>>2]|0;if((m|0)==(c[q>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=24;break}else continue}else{c[p>>2]=m+1;continue}}if((H|0)==24){b=cc()|0;break}I=a[G>>0]|0;if(!((a[A>>0]|0)==0?1:(((I&1)==0?(I&255)>>>1:c[G+4>>2]|0)|0)==0)?(B=c[D>>2]|0,(B-C|0)<160):0){I=c[z>>2]|0;c[D>>2]=B+4;c[B>>2]=I}o=0;l=+_a(44,h|0,c[y>>2]|0,j|0);I=o;o=0;if(!(I&1)){g[k>>2]=l;oH(G,C,c[D>>2]|0,j);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;h=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=25;break}if((h|0)==-1){c[e>>2]=0;b=0}}}else b=0;h=(b|0)==0;do if(m){if((c[m+12>>2]|0)==(c[m+16>>2]|0)){o=0;b=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;I=o;o=0;if(I&1){H=25;break a}if((b|0)==-1){c[f>>2]=0;H=49;break}}if(!h)H=50}else H=49;while(0);if((H|0)==49?h:0)H=50;if((H|0)==50)c[j>>2]=c[j>>2]|2;I=c[e>>2]|0;IC(F);IC(G);i=E;return I|0}else H=25}else H=25;while(0);if((H|0)==25)b=cc()|0;IC(F);IC(G);bc(b|0);return 0}function $J(b,e,f,g,j,k){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0.0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;E=i;i=i+240|0;w=E+208|0;m=E+203|0;n=E+202|0;G=E+24|0;F=E+12|0;y=E+8|0;C=E+40|0;D=E+4|0;z=E;A=E+201|0;x=E+200|0;HE(G,g,w,m,n);c[F>>2]=0;c[F+4>>2]=0;c[F+8>>2]=0;if(!(a[F>>0]&1))b=10;else b=(c[F>>2]&-2)+-1|0;o=0;mb(80,F|0,b|0,0);v=o;o=0;a:do if(!(v&1)){t=F+8|0;u=F+1|0;g=(a[F>>0]&1)==0?u:c[t>>2]|0;c[y>>2]=g;c[D>>2]=C;c[z>>2]=0;a[A>>0]=1;a[x>>0]=69;v=F+4|0;s=a[m>>0]|0;r=a[n>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;m=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;q=o;o=0;if(q&1){H=24;break}if((m|0)==-1){c[e>>2]=0;b=0}}}else b=0;n=(b|0)==0;m=c[f>>2]|0;do if(m){if((c[m+12>>2]|0)!=(c[m+16>>2]|0))if(n)break;else break b;o=0;p=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;q=o;o=0;if(q&1){H=24;break b}if((p|0)!=-1)if(n)break;else break b;else{c[f>>2]=0;H=16;break}}else H=16;while(0);if((H|0)==16){H=0;if(n){m=0;break}else m=0}n=a[F>>0]|0;n=(n&1)==0?(n&255)>>>1:c[v>>2]|0;if((c[y>>2]|0)==(g+n|0)){o=0;mb(80,F|0,n<<1|0,0);q=o;o=0;if(q&1){H=24;break}if(!(a[F>>0]&1))g=10;else g=(c[F>>2]&-2)+-1|0;o=0;mb(80,F|0,g|0,0);q=o;o=0;if(q&1){H=24;break}g=(a[F>>0]&1)==0?u:c[t>>2]|0;c[y>>2]=g+n}p=b+12|0;n=c[p>>2]|0;q=b+16|0;if((n|0)==(c[q>>2]|0)){o=0;n=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=24;break}}else n=d[n>>0]|0;if(IE(n&255,A,x,g,y,s,r,G,C,D,z,w)|0)break;m=c[p>>2]|0;if((m|0)==(c[q>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=24;break}else continue}else{c[p>>2]=m+1;continue}}if((H|0)==24){b=cc()|0;break}I=a[G>>0]|0;if(!((a[A>>0]|0)==0?1:(((I&1)==0?(I&255)>>>1:c[G+4>>2]|0)|0)==0)?(B=c[D>>2]|0,(B-C|0)<160):0){I=c[z>>2]|0;c[D>>2]=B+4;c[B>>2]=I}o=0;l=+_a(45,g|0,c[y>>2]|0,j|0);I=o;o=0;if(!(I&1)){h[k>>3]=l;oH(G,C,c[D>>2]|0,j);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=25;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(m){if((c[m+12>>2]|0)==(c[m+16>>2]|0)){o=0;b=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;I=o;o=0;if(I&1){H=25;break a}if((b|0)==-1){c[f>>2]=0;H=49;break}}if(!g)H=50}else H=49;while(0);if((H|0)==49?g:0)H=50;if((H|0)==50)c[j>>2]=c[j>>2]|2;I=c[e>>2]|0;IC(F);IC(G);i=E;return I|0}else H=25}else H=25;while(0);if((H|0)==25)b=cc()|0;IC(F);IC(G);bc(b|0);return 0}function aK(b,e,f,g,j,k){b=b|0;e=e|0;f=f|0;g=g|0;j=j|0;k=k|0;var l=0.0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;E=i;i=i+240|0;w=E+208|0;m=E+203|0;n=E+202|0;G=E+24|0;F=E+12|0;y=E+8|0;C=E+40|0;D=E+4|0;z=E;A=E+201|0;x=E+200|0;HE(G,g,w,m,n);c[F>>2]=0;c[F+4>>2]=0;c[F+8>>2]=0;if(!(a[F>>0]&1))b=10;else b=(c[F>>2]&-2)+-1|0;o=0;mb(80,F|0,b|0,0);v=o;o=0;a:do if(!(v&1)){t=F+8|0;u=F+1|0;g=(a[F>>0]&1)==0?u:c[t>>2]|0;c[y>>2]=g;c[D>>2]=C;c[z>>2]=0;a[A>>0]=1;a[x>>0]=69;v=F+4|0;s=a[m>>0]|0;r=a[n>>0]|0;b=c[e>>2]|0;b:while(1){if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;m=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;q=o;o=0;if(q&1){H=24;break}if((m|0)==-1){c[e>>2]=0;b=0}}}else b=0;n=(b|0)==0;m=c[f>>2]|0;do if(m){if((c[m+12>>2]|0)!=(c[m+16>>2]|0))if(n)break;else break b;o=0;p=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;q=o;o=0;if(q&1){H=24;break b}if((p|0)!=-1)if(n)break;else break b;else{c[f>>2]=0;H=16;break}}else H=16;while(0);if((H|0)==16){H=0;if(n){m=0;break}else m=0}n=a[F>>0]|0;n=(n&1)==0?(n&255)>>>1:c[v>>2]|0;if((c[y>>2]|0)==(g+n|0)){o=0;mb(80,F|0,n<<1|0,0);q=o;o=0;if(q&1){H=24;break}if(!(a[F>>0]&1))g=10;else g=(c[F>>2]&-2)+-1|0;o=0;mb(80,F|0,g|0,0);q=o;o=0;if(q&1){H=24;break}g=(a[F>>0]&1)==0?u:c[t>>2]|0;c[y>>2]=g+n}p=b+12|0;n=c[p>>2]|0;q=b+16|0;if((n|0)==(c[q>>2]|0)){o=0;n=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=24;break}}else n=d[n>>0]|0;if(IE(n&255,A,x,g,y,s,r,G,C,D,z,w)|0)break;m=c[p>>2]|0;if((m|0)==(c[q>>2]|0)){o=0;qa(c[(c[b>>2]|0)+40>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=24;break}else continue}else{c[p>>2]=m+1;continue}}if((H|0)==24){b=cc()|0;break}I=a[G>>0]|0;if(!((a[A>>0]|0)==0?1:(((I&1)==0?(I&255)>>>1:c[G+4>>2]|0)|0)==0)?(B=c[D>>2]|0,(B-C|0)<160):0){I=c[z>>2]|0;c[D>>2]=B+4;c[B>>2]=I}o=0;l=+_a(46,g|0,c[y>>2]|0,j|0);I=o;o=0;if(!(I&1)){h[k>>3]=l;oH(G,C,c[D>>2]|0,j);if(b){if((c[b+12>>2]|0)==(c[b+16>>2]|0)){o=0;g=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;I=o;o=0;if(I&1){H=25;break}if((g|0)==-1){c[e>>2]=0;b=0}}}else b=0;g=(b|0)==0;do if(m){if((c[m+12>>2]|0)==(c[m+16>>2]|0)){o=0;b=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;I=o;o=0;if(I&1){H=25;break a}if((b|0)==-1){c[f>>2]=0;H=49;break}}if(!g)H=50}else H=49;while(0);if((H|0)==49?g:0)H=50;if((H|0)==50)c[j>>2]=c[j>>2]|2;I=c[e>>2]|0;IC(F);IC(G);i=E;return I|0}else H=25}else H=25;while(0);if((H|0)==25)b=cc()|0;IC(F);IC(G);bc(b|0);return 0}function bK(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;c[g>>2]=e;e=lB(b)|0;b=YB(a,d,g)|0;if((e|0)!=0?(o=0,qa(193,e|0)|0,g=o,o=0,g&1):0){g=cc(0)|0;oq(g)}i=f;return b|0}function cK(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+112|0;l=y;n=(f-e|0)/12|0;do if(n>>>0>100){l=yC(n)|0;if((l|0)==0?(o=0,ob(46),x=o,o=0,x&1):0){k=0;q=6;break}k=l;q=11}else{k=0;q=11}while(0);a:do if((q|0)==11){if((e|0)==(f|0))m=0;else{r=e;p=0;q=l;while(1){m=a[r>>0]|0;if(!(m&1))m=(m&255)>>>1;else m=c[r+4>>2]|0;if(!m){a[q>>0]=2;m=p+1|0;n=n+-1|0}else{a[q>>0]=1;m=p}r=r+12|0;if((r|0)==(f|0))break;else{p=m;q=q+1|0}}}w=(e|0)==(f|0);x=(e|0)==(f|0);v=0;s=n;b:while(1){n=c[b>>2]|0;do if(n){p=c[n+12>>2]|0;if((p|0)==(c[n+16>>2]|0)){o=0;n=qa(c[(c[n>>2]|0)+36>>2]|0,n|0)|0;u=o;o=0;if(u&1){q=5;break b}}else n=c[p>>2]|0;if((n|0)==-1){c[b>>2]=0;r=1;break}else{r=(c[b>>2]|0)==0;break}}else r=1;while(0);p=c[d>>2]|0;if(p){n=c[p+12>>2]|0;if((n|0)==(c[p+16>>2]|0)){o=0;n=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;u=o;o=0;if(u&1){q=5;break}}else n=c[n>>2]|0;if((n|0)==-1){c[d>>2]=0;p=0;q=1}else q=0}else{p=0;q=1}n=c[b>>2]|0;if(!((s|0)!=0&(r^q))){q=66;break}p=c[n+12>>2]|0;if((p|0)==(c[n+16>>2]|0)){o=0;n=qa(c[(c[n>>2]|0)+36>>2]|0,n|0)|0;u=o;o=0;if(u&1){q=5;break}}else n=c[p>>2]|0;if(!j){o=0;n=Wa(c[(c[g>>2]|0)+28>>2]|0,g|0,n|0)|0;u=o;o=0;if(u&1){q=5;break}}u=v+1|0;if(w){n=0;r=s}else{r=0;t=e;q=s;s=l;while(1){do if((a[s>>0]|0)==1){if(!(a[t>>0]&1))p=t+4|0;else p=c[t+8>>2]|0;p=c[p+(v<<2)>>2]|0;if(!j){o=0;p=Wa(c[(c[g>>2]|0)+28>>2]|0,g|0,p|0)|0;z=o;o=0;if(z&1){q=4;break b}}if((n|0)!=(p|0)){a[s>>0]=0;p=r;q=q+-1|0;break}p=a[t>>0]|0;if(!(p&1))p=(p&255)>>>1;else p=c[t+4>>2]|0;if((p|0)==(u|0)){a[s>>0]=2;p=1;m=m+1|0;q=q+-1|0}else p=1}else p=r;while(0);t=t+12|0;if((t|0)==(f|0)){n=p;r=q;break}else{r=p;s=s+1|0}}}if(!n){v=u;s=r;continue}n=c[b>>2]|0;p=n+12|0;q=c[p>>2]|0;if((q|0)==(c[n+16>>2]|0)){o=0;qa(c[(c[n>>2]|0)+40>>2]|0,n|0)|0;z=o;o=0;if(z&1){q=5;break}}else c[p>>2]=q+4;if((m+r|0)>>>0<2|x){v=u;s=r;continue}else{n=e;q=l}while(1){if((a[q>>0]|0)==2){p=a[n>>0]|0;if(!(p&1))p=(p&255)>>>1;else p=c[n+4>>2]|0;if((p|0)!=(u|0)){a[q>>0]=0;m=m+-1|0}}n=n+12|0;if((n|0)==(f|0)){v=u;s=r;continue b}else q=q+1|0}}if((q|0)==4){e=cc()|0;break}else if((q|0)==5){e=cc()|0;break}else if((q|0)==66){do if(n){m=c[n+12>>2]|0;if((m|0)==(c[n+16>>2]|0)){o=0;m=qa(c[(c[n>>2]|0)+36>>2]|0,n|0)|0;z=o;o=0;if(z&1){q=6;break a}}else m=c[m>>2]|0;if((m|0)==-1){c[b>>2]=0;n=1;break}else{n=(c[b>>2]|0)==0;break}}else n=1;while(0);do if(p){m=c[p+12>>2]|0;if((m|0)==(c[p+16>>2]|0)){o=0;m=qa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;z=o;o=0;if(z&1){q=6;break a}}else m=c[m>>2]|0;if((m|0)!=-1)if(n)break;else{q=81;break}else{c[d>>2]=0;q=79;break}}else q=79;while(0);if((q|0)==79?n:0)q=81;if((q|0)==81)c[h>>2]=c[h>>2]|2;c:do if((e|0)==(f|0))q=85;else while(1){if((a[l>>0]|0)==2)break c;e=e+12|0;if((e|0)==(f|0)){q=85;break}else l=l+1|0}while(0);if((q|0)==85){c[h>>2]=c[h>>2]|4;e=f}if(k)zC(k);i=y;return e|0}}while(0);if((q|0)==6)e=cc()|0;if(k)zC(k);bc(e|0);return 0}function dK(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;z=i;i=i+320|0;s=z+208|0;j=z+200|0;B=z+24|0;A=z+12|0;u=z+8|0;x=z+40|0;y=z+4|0;v=z;t=DJ(f)|0;JE(B,f,s,j);c[A>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);r=o;o=0;a:do if(!(r&1)){p=A+8|0;q=A+1|0;b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b;c[y>>2]=x;c[v>>2]=0;r=A+4|0;n=c[j>>2]|0;j=c[d>>2]|0;b:while(1){if(j){f=c[j+12>>2]|0;if((f|0)==(c[j+16>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;m=o;o=0;if(m&1){C=25;break}}else f=c[f>>2]|0;if((f|0)==-1){c[d>>2]=0;f=0;k=1}else{f=j;k=0}}else{f=0;k=1}l=c[e>>2]|0;do if(l){j=c[l+12>>2]|0;if((j|0)==(c[l+16>>2]|0)){o=0;j=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;m=o;o=0;if(m&1){C=25;break b}}else j=c[j>>2]|0;if((j|0)!=-1)if(k)break;else{j=l;break b}else{c[e>>2]=0;C=17;break}}else C=17;while(0);if((C|0)==17){C=0;if(k){j=0;break}else l=0}j=a[A>>0]|0;j=(j&1)==0?(j&255)>>>1:c[r>>2]|0;if((c[u>>2]|0)==(b+j|0)){o=0;mb(80,A|0,j<<1|0,0);m=o;o=0;if(m&1){C=25;break}if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);m=o;o=0;if(m&1){C=25;break}b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b+j}k=f+12|0;j=c[k>>2]|0;m=f+16|0;if((j|0)==(c[m>>2]|0)){o=0;j=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=25;break}}else j=c[j>>2]|0;if(FE(j,t,b,u,v,n,B,x,y,s)|0){j=l;break}j=c[k>>2]|0;if((j|0)==(c[m>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=25;break}else{j=f;continue}}else{c[k>>2]=j+4;j=f;continue}}if((C|0)==25){b=cc()|0;break}D=a[B>>0]|0;if((((D&1)==0?(D&255)>>>1:c[B+4>>2]|0)|0)!=0?(w=c[y>>2]|0,(w-x|0)<160):0){D=c[v>>2]|0;c[y>>2]=w+4;c[w>>2]=D}o=0;b=kb(69,b|0,c[u>>2]|0,g|0,t|0)|0;D=o;o=0;if(!(D&1)){c[h>>2]=b;oH(B,x,c[y>>2]|0,g);if(f){b=c[f+12>>2]|0;if((b|0)==(c[f+16>>2]|0)){o=0;b=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(j){b=c[j+12>>2]|0;if((b|0)==(c[j+16>>2]|0)){o=0;b=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;D=o;o=0;if(D&1){C=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{C=53;break}else{c[e>>2]=0;C=51;break}}else C=51;while(0);if((C|0)==51?f:0)C=53;if((C|0)==53)c[g>>2]=c[g>>2]|2;D=c[d>>2]|0;IC(A);IC(B);i=z;return D|0}else C=26}else C=26;while(0);if((C|0)==26)b=cc()|0;IC(A);IC(B);bc(b|0);return 0}function eK(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;z=i;i=i+320|0;s=z+208|0;j=z+200|0;B=z+24|0;A=z+12|0;u=z+8|0;x=z+40|0;y=z+4|0;v=z;t=DJ(f)|0;JE(B,f,s,j);c[A>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);r=o;o=0;a:do if(!(r&1)){p=A+8|0;q=A+1|0;b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b;c[y>>2]=x;c[v>>2]=0;r=A+4|0;n=c[j>>2]|0;j=c[d>>2]|0;b:while(1){if(j){f=c[j+12>>2]|0;if((f|0)==(c[j+16>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;m=o;o=0;if(m&1){C=25;break}}else f=c[f>>2]|0;if((f|0)==-1){c[d>>2]=0;j=0;l=1}else l=0}else{j=0;l=1}k=c[e>>2]|0;do if(k){f=c[k+12>>2]|0;if((f|0)==(c[k+16>>2]|0)){o=0;f=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;m=o;o=0;if(m&1){C=25;break b}}else f=c[f>>2]|0;if((f|0)!=-1)if(l)break;else break b;else{c[e>>2]=0;C=17;break}}else C=17;while(0);if((C|0)==17){C=0;if(l){k=0;break}else k=0}f=a[A>>0]|0;f=(f&1)==0?(f&255)>>>1:c[r>>2]|0;if((c[u>>2]|0)==(b+f|0)){o=0;mb(80,A|0,f<<1|0,0);m=o;o=0;if(m&1){C=25;break}if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);m=o;o=0;if(m&1){C=25;break}b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b+f}l=j+12|0;f=c[l>>2]|0;m=j+16|0;if((f|0)==(c[m>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;E=o;o=0;if(E&1){C=25;break}}else f=c[f>>2]|0;if(FE(f,t,b,u,v,n,B,x,y,s)|0)break;f=c[l>>2]|0;if((f|0)==(c[m>>2]|0)){o=0;qa(c[(c[j>>2]|0)+40>>2]|0,j|0)|0;E=o;o=0;if(E&1){C=25;break}else continue}else{c[l>>2]=f+4;continue}}if((C|0)==25){b=cc()|0;break}E=a[B>>0]|0;if((((E&1)==0?(E&255)>>>1:c[B+4>>2]|0)|0)!=0?(w=c[y>>2]|0,(w-x|0)<160):0){E=c[v>>2]|0;c[y>>2]=w+4;c[w>>2]=E}o=0;b=kb(70,b|0,c[u>>2]|0,g|0,t|0)|0;f=D;E=o;o=0;if(!(E&1)){E=h;c[E>>2]=b;c[E+4>>2]=f;oH(B,x,c[y>>2]|0,g);if(j){b=c[j+12>>2]|0;if((b|0)==(c[j+16>>2]|0)){o=0;b=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;E=o;o=0;if(E&1){C=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(k){b=c[k+12>>2]|0;if((b|0)==(c[k+16>>2]|0)){o=0;b=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;E=o;o=0;if(E&1){C=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{C=53;break}else{c[e>>2]=0;C=51;break}}else C=51;while(0);if((C|0)==51?f:0)C=53;if((C|0)==53)c[g>>2]=c[g>>2]|2;E=c[d>>2]|0;IC(A);IC(B);i=z;return E|0}else C=26}else C=26;while(0);if((C|0)==26)b=cc()|0;IC(A);IC(B);bc(b|0);return 0}function fK(d,e,f,g,h,j){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;A=i;i=i+320|0;t=A+208|0;k=A+200|0;C=A+24|0;B=A+12|0;v=A+8|0;y=A+40|0;z=A+4|0;w=A;u=DJ(g)|0;JE(C,g,t,k);c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;if(!(a[B>>0]&1))d=10;else d=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,d|0,0);s=o;o=0;a:do if(!(s&1)){q=B+8|0;r=B+1|0;d=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=d;c[z>>2]=y;c[w>>2]=0;s=B+4|0;p=c[k>>2]|0;k=c[e>>2]|0;b:while(1){if(k){g=c[k+12>>2]|0;if((g|0)==(c[k+16>>2]|0)){o=0;g=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;n=o;o=0;if(n&1){D=25;break}}else g=c[g>>2]|0;if((g|0)==-1){c[e>>2]=0;g=0;l=1}else{g=k;l=0}}else{g=0;l=1}m=c[f>>2]|0;do if(m){k=c[m+12>>2]|0;if((k|0)==(c[m+16>>2]|0)){o=0;k=qa(c[(c[m>>2]|0)+36>>2]|0,m|0)|0;n=o;o=0;if(n&1){D=25;break b}}else k=c[k>>2]|0;if((k|0)!=-1)if(l)break;else{k=m;break b}else{c[f>>2]=0;D=17;break}}else D=17;while(0);if((D|0)==17){D=0;if(l){k=0;break}else m=0}k=a[B>>0]|0;k=(k&1)==0?(k&255)>>>1:c[s>>2]|0;if((c[v>>2]|0)==(d+k|0)){o=0;mb(80,B|0,k<<1|0,0);n=o;o=0;if(n&1){D=25;break}if(!(a[B>>0]&1))d=10;else d=(c[B>>2]&-2)+-1|0;o=0;mb(80,B|0,d|0,0);n=o;o=0;if(n&1){D=25;break}d=(a[B>>0]&1)==0?r:c[q>>2]|0;c[v>>2]=d+k}l=g+12|0;k=c[l>>2]|0;n=g+16|0;if((k|0)==(c[n>>2]|0)){o=0;k=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;E=o;o=0;if(E&1){D=25;break}}else k=c[k>>2]|0;if(FE(k,u,d,v,w,p,C,y,z,t)|0){k=m;break}k=c[l>>2]|0;if((k|0)==(c[n>>2]|0)){o=0;qa(c[(c[g>>2]|0)+40>>2]|0,g|0)|0;E=o;o=0;if(E&1){D=25;break}else{k=g;continue}}else{c[l>>2]=k+4;k=g;continue}}if((D|0)==25){d=cc()|0;break}E=a[C>>0]|0;if((((E&1)==0?(E&255)>>>1:c[C+4>>2]|0)|0)!=0?(x=c[z>>2]|0,(x-y|0)<160):0){E=c[w>>2]|0;c[z>>2]=x+4;c[x>>2]=E}o=0;d=kb(71,d|0,c[v>>2]|0,h|0,u|0)|0;E=o;o=0;if(!(E&1)){b[j>>1]=d;oH(C,y,c[z>>2]|0,h);if(g){d=c[g+12>>2]|0;if((d|0)==(c[g+16>>2]|0)){o=0;d=qa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;E=o;o=0;if(E&1){D=26;break}}else d=c[d>>2]|0;if((d|0)==-1){c[e>>2]=0;g=1}else g=0}else g=1;do if(k){d=c[k+12>>2]|0;if((d|0)==(c[k+16>>2]|0)){o=0;d=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;E=o;o=0;if(E&1){D=26;break a}}else d=c[d>>2]|0;if((d|0)!=-1)if(g)break;else{D=53;break}else{c[f>>2]=0;D=51;break}}else D=51;while(0);if((D|0)==51?g:0)D=53;if((D|0)==53)c[h>>2]=c[h>>2]|2;E=c[e>>2]|0;IC(B);IC(C);i=A;return E|0}else D=26}else D=26;while(0);if((D|0)==26)d=cc()|0;IC(B);IC(C);bc(d|0);return 0}function gK(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;z=i;i=i+320|0;s=z+208|0;j=z+200|0;B=z+24|0;A=z+12|0;u=z+8|0;x=z+40|0;y=z+4|0;v=z;t=DJ(f)|0;JE(B,f,s,j);c[A>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);r=o;o=0;a:do if(!(r&1)){p=A+8|0;q=A+1|0;b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b;c[y>>2]=x;c[v>>2]=0;r=A+4|0;n=c[j>>2]|0;j=c[d>>2]|0;b:while(1){if(j){f=c[j+12>>2]|0;if((f|0)==(c[j+16>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;m=o;o=0;if(m&1){C=25;break}}else f=c[f>>2]|0;if((f|0)==-1){c[d>>2]=0;f=0;k=1}else{f=j;k=0}}else{f=0;k=1}l=c[e>>2]|0;do if(l){j=c[l+12>>2]|0;if((j|0)==(c[l+16>>2]|0)){o=0;j=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;m=o;o=0;if(m&1){C=25;break b}}else j=c[j>>2]|0;if((j|0)!=-1)if(k)break;else{j=l;break b}else{c[e>>2]=0;C=17;break}}else C=17;while(0);if((C|0)==17){C=0;if(k){j=0;break}else l=0}j=a[A>>0]|0;j=(j&1)==0?(j&255)>>>1:c[r>>2]|0;if((c[u>>2]|0)==(b+j|0)){o=0;mb(80,A|0,j<<1|0,0);m=o;o=0;if(m&1){C=25;break}if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);m=o;o=0;if(m&1){C=25;break}b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b+j}k=f+12|0;j=c[k>>2]|0;m=f+16|0;if((j|0)==(c[m>>2]|0)){o=0;j=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=25;break}}else j=c[j>>2]|0;if(FE(j,t,b,u,v,n,B,x,y,s)|0){j=l;break}j=c[k>>2]|0;if((j|0)==(c[m>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=25;break}else{j=f;continue}}else{c[k>>2]=j+4;j=f;continue}}if((C|0)==25){b=cc()|0;break}D=a[B>>0]|0;if((((D&1)==0?(D&255)>>>1:c[B+4>>2]|0)|0)!=0?(w=c[y>>2]|0,(w-x|0)<160):0){D=c[v>>2]|0;c[y>>2]=w+4;c[w>>2]=D}o=0;b=kb(72,b|0,c[u>>2]|0,g|0,t|0)|0;D=o;o=0;if(!(D&1)){c[h>>2]=b;oH(B,x,c[y>>2]|0,g);if(f){b=c[f+12>>2]|0;if((b|0)==(c[f+16>>2]|0)){o=0;b=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(j){b=c[j+12>>2]|0;if((b|0)==(c[j+16>>2]|0)){o=0;b=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;D=o;o=0;if(D&1){C=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{C=53;break}else{c[e>>2]=0;C=51;break}}else C=51;while(0);if((C|0)==51?f:0)C=53;if((C|0)==53)c[g>>2]=c[g>>2]|2;D=c[d>>2]|0;IC(A);IC(B);i=z;return D|0}else C=26}else C=26;while(0);if((C|0)==26)b=cc()|0;IC(A);IC(B);bc(b|0);return 0}function hK(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;z=i;i=i+320|0;s=z+208|0;j=z+200|0;B=z+24|0;A=z+12|0;u=z+8|0;x=z+40|0;y=z+4|0;v=z;t=DJ(f)|0;JE(B,f,s,j);c[A>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);r=o;o=0;a:do if(!(r&1)){p=A+8|0;q=A+1|0;b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b;c[y>>2]=x;c[v>>2]=0;r=A+4|0;n=c[j>>2]|0;j=c[d>>2]|0;b:while(1){if(j){f=c[j+12>>2]|0;if((f|0)==(c[j+16>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;m=o;o=0;if(m&1){C=25;break}}else f=c[f>>2]|0;if((f|0)==-1){c[d>>2]=0;f=0;k=1}else{f=j;k=0}}else{f=0;k=1}l=c[e>>2]|0;do if(l){j=c[l+12>>2]|0;if((j|0)==(c[l+16>>2]|0)){o=0;j=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;m=o;o=0;if(m&1){C=25;break b}}else j=c[j>>2]|0;if((j|0)!=-1)if(k)break;else{j=l;break b}else{c[e>>2]=0;C=17;break}}else C=17;while(0);if((C|0)==17){C=0;if(k){j=0;break}else l=0}j=a[A>>0]|0;j=(j&1)==0?(j&255)>>>1:c[r>>2]|0;if((c[u>>2]|0)==(b+j|0)){o=0;mb(80,A|0,j<<1|0,0);m=o;o=0;if(m&1){C=25;break}if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);m=o;o=0;if(m&1){C=25;break}b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b+j}k=f+12|0;j=c[k>>2]|0;m=f+16|0;if((j|0)==(c[m>>2]|0)){o=0;j=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=25;break}}else j=c[j>>2]|0;if(FE(j,t,b,u,v,n,B,x,y,s)|0){j=l;break}j=c[k>>2]|0;if((j|0)==(c[m>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=25;break}else{j=f;continue}}else{c[k>>2]=j+4;j=f;continue}}if((C|0)==25){b=cc()|0;break}D=a[B>>0]|0;if((((D&1)==0?(D&255)>>>1:c[B+4>>2]|0)|0)!=0?(w=c[y>>2]|0,(w-x|0)<160):0){D=c[v>>2]|0;c[y>>2]=w+4;c[w>>2]=D}o=0;b=kb(73,b|0,c[u>>2]|0,g|0,t|0)|0;D=o;o=0;if(!(D&1)){c[h>>2]=b;oH(B,x,c[y>>2]|0,g);if(f){b=c[f+12>>2]|0;if((b|0)==(c[f+16>>2]|0)){o=0;b=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;D=o;o=0;if(D&1){C=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(j){b=c[j+12>>2]|0;if((b|0)==(c[j+16>>2]|0)){o=0;b=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;D=o;o=0;if(D&1){C=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{C=53;break}else{c[e>>2]=0;C=51;break}}else C=51;while(0);if((C|0)==51?f:0)C=53;if((C|0)==53)c[g>>2]=c[g>>2]|2;D=c[d>>2]|0;IC(A);IC(B);i=z;return D|0}else C=26}else C=26;while(0);if((C|0)==26)b=cc()|0;IC(A);IC(B);bc(b|0);return 0}function iK(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;z=i;i=i+320|0;s=z+208|0;j=z+200|0;B=z+24|0;A=z+12|0;u=z+8|0;x=z+40|0;y=z+4|0;v=z;t=DJ(f)|0;JE(B,f,s,j);c[A>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);r=o;o=0;a:do if(!(r&1)){p=A+8|0;q=A+1|0;b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b;c[y>>2]=x;c[v>>2]=0;r=A+4|0;n=c[j>>2]|0;j=c[d>>2]|0;b:while(1){if(j){f=c[j+12>>2]|0;if((f|0)==(c[j+16>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;m=o;o=0;if(m&1){C=25;break}}else f=c[f>>2]|0;if((f|0)==-1){c[d>>2]=0;j=0;l=1}else l=0}else{j=0;l=1}k=c[e>>2]|0;do if(k){f=c[k+12>>2]|0;if((f|0)==(c[k+16>>2]|0)){o=0;f=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;m=o;o=0;if(m&1){C=25;break b}}else f=c[f>>2]|0;if((f|0)!=-1)if(l)break;else break b;else{c[e>>2]=0;C=17;break}}else C=17;while(0);if((C|0)==17){C=0;if(l){k=0;break}else k=0}f=a[A>>0]|0;f=(f&1)==0?(f&255)>>>1:c[r>>2]|0;if((c[u>>2]|0)==(b+f|0)){o=0;mb(80,A|0,f<<1|0,0);m=o;o=0;if(m&1){C=25;break}if(!(a[A>>0]&1))b=10;else b=(c[A>>2]&-2)+-1|0;o=0;mb(80,A|0,b|0,0);m=o;o=0;if(m&1){C=25;break}b=(a[A>>0]&1)==0?q:c[p>>2]|0;c[u>>2]=b+f}l=j+12|0;f=c[l>>2]|0;m=j+16|0;if((f|0)==(c[m>>2]|0)){o=0;f=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;E=o;o=0;if(E&1){C=25;break}}else f=c[f>>2]|0;if(FE(f,t,b,u,v,n,B,x,y,s)|0)break;f=c[l>>2]|0;if((f|0)==(c[m>>2]|0)){o=0;qa(c[(c[j>>2]|0)+40>>2]|0,j|0)|0;E=o;o=0;if(E&1){C=25;break}else continue}else{c[l>>2]=f+4;continue}}if((C|0)==25){b=cc()|0;break}E=a[B>>0]|0;if((((E&1)==0?(E&255)>>>1:c[B+4>>2]|0)|0)!=0?(w=c[y>>2]|0,(w-x|0)<160):0){E=c[v>>2]|0;c[y>>2]=w+4;c[w>>2]=E}o=0;b=kb(74,b|0,c[u>>2]|0,g|0,t|0)|0;f=D;E=o;o=0;if(!(E&1)){E=h;c[E>>2]=b;c[E+4>>2]=f;oH(B,x,c[y>>2]|0,g);if(j){b=c[j+12>>2]|0;if((b|0)==(c[j+16>>2]|0)){o=0;b=qa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;E=o;o=0;if(E&1){C=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(k){b=c[k+12>>2]|0;if((b|0)==(c[k+16>>2]|0)){o=0;b=qa(c[(c[k>>2]|0)+36>>2]|0,k|0)|0;E=o;o=0;if(E&1){C=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{C=53;break}else{c[e>>2]=0;C=51;break}}else C=51;while(0);if((C|0)==51?f:0)C=53;if((C|0)==53)c[g>>2]=c[g>>2]|2;E=c[d>>2]|0;IC(A);IC(B);i=z;return E|0}else C=26}else C=26;while(0);if((C|0)==26)b=cc()|0;IC(A);IC(B);bc(b|0);return 0}function jK(b,d,e,f,h,j){b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;j=j|0;var k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;D=i;i=i+352|0;v=D+208|0;l=D+40|0;m=D+36|0;F=D+24|0;E=D+12|0;x=D+8|0;B=D+48|0;C=D+4|0;y=D;z=D+337|0;w=D+336|0;KE(F,f,v,l,m);c[E>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;if(!(a[E>>0]&1))b=10;else b=(c[E>>2]&-2)+-1|0;o=0;mb(80,E|0,b|0,0);u=o;o=0;a:do if(!(u&1)){s=E+8|0;t=E+1|0;b=(a[E>>0]&1)==0?t:c[s>>2]|0;c[x>>2]=b;c[C>>2]=B;c[y>>2]=0;a[z>>0]=1;a[w>>0]=69;u=E+4|0;r=c[l>>2]|0;q=c[m>>2]|0;f=c[d>>2]|0;b:while(1){if(f){l=c[f+12>>2]|0;if((l|0)==(c[f+16>>2]|0)){o=0;l=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;p=o;o=0;if(p&1){G=25;break}}else l=c[l>>2]|0;if((l|0)==-1){c[d>>2]=0;f=0;n=1}else n=0}else{f=0;n=1}l=c[e>>2]|0;do if(l){m=c[l+12>>2]|0;if((m|0)==(c[l+16>>2]|0)){o=0;m=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;p=o;o=0;if(p&1){G=25;break b}}else m=c[m>>2]|0;if((m|0)!=-1)if(n)break;else break b;else{c[e>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(n){l=0;break}else l=0}m=a[E>>0]|0;m=(m&1)==0?(m&255)>>>1:c[u>>2]|0;if((c[x>>2]|0)==(b+m|0)){o=0;mb(80,E|0,m<<1|0,0);p=o;o=0;if(p&1){G=25;break}if(!(a[E>>0]&1))b=10;else b=(c[E>>2]&-2)+-1|0;o=0;mb(80,E|0,b|0,0);p=o;o=0;if(p&1){G=25;break}b=(a[E>>0]&1)==0?t:c[s>>2]|0;c[x>>2]=b+m}n=f+12|0;m=c[n>>2]|0;p=f+16|0;if((m|0)==(c[p>>2]|0)){o=0;m=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=25;break}}else m=c[m>>2]|0;if(LE(m,z,w,b,x,r,q,F,B,C,y,v)|0)break;l=c[n>>2]|0;if((l|0)==(c[p>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=25;break}else continue}else{c[n>>2]=l+4;continue}}if((G|0)==25){b=cc()|0;break}H=a[F>>0]|0;if(!((a[z>>0]|0)==0?1:(((H&1)==0?(H&255)>>>1:c[F+4>>2]|0)|0)==0)?(A=c[C>>2]|0,(A-B|0)<160):0){H=c[y>>2]|0;c[C>>2]=A+4;c[A>>2]=H}o=0;k=+_a(44,b|0,c[x>>2]|0,h|0);H=o;o=0;if(!(H&1)){g[j>>2]=k;oH(F,B,c[C>>2]|0,h);if(f){b=c[f+12>>2]|0;if((b|0)==(c[f+16>>2]|0)){o=0;b=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(l){b=c[l+12>>2]|0;if((b|0)==(c[l+16>>2]|0)){o=0;b=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;H=o;o=0;if(H&1){G=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{G=53;break}else{c[e>>2]=0;G=51;break}}else G=51;while(0);if((G|0)==51?f:0)G=53;if((G|0)==53)c[h>>2]=c[h>>2]|2;H=c[d>>2]|0;IC(E);IC(F);i=D;return H|0}else G=26}else G=26;while(0);if((G|0)==26)b=cc()|0;IC(E);IC(F);bc(b|0);return 0}function kK(b,d,e,f,g,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;var k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;D=i;i=i+352|0;v=D+208|0;l=D+40|0;m=D+36|0;F=D+24|0;E=D+12|0;x=D+8|0;B=D+48|0;C=D+4|0;y=D;z=D+337|0;w=D+336|0;KE(F,f,v,l,m);c[E>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;if(!(a[E>>0]&1))b=10;else b=(c[E>>2]&-2)+-1|0;o=0;mb(80,E|0,b|0,0);u=o;o=0;a:do if(!(u&1)){s=E+8|0;t=E+1|0;b=(a[E>>0]&1)==0?t:c[s>>2]|0;c[x>>2]=b;c[C>>2]=B;c[y>>2]=0;a[z>>0]=1;a[w>>0]=69;u=E+4|0;r=c[l>>2]|0;q=c[m>>2]|0;f=c[d>>2]|0;b:while(1){if(f){l=c[f+12>>2]|0;if((l|0)==(c[f+16>>2]|0)){o=0;l=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;p=o;o=0;if(p&1){G=25;break}}else l=c[l>>2]|0;if((l|0)==-1){c[d>>2]=0;f=0;n=1}else n=0}else{f=0;n=1}l=c[e>>2]|0;do if(l){m=c[l+12>>2]|0;if((m|0)==(c[l+16>>2]|0)){o=0;m=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;p=o;o=0;if(p&1){G=25;break b}}else m=c[m>>2]|0;if((m|0)!=-1)if(n)break;else break b;else{c[e>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(n){l=0;break}else l=0}m=a[E>>0]|0;m=(m&1)==0?(m&255)>>>1:c[u>>2]|0;if((c[x>>2]|0)==(b+m|0)){o=0;mb(80,E|0,m<<1|0,0);p=o;o=0;if(p&1){G=25;break}if(!(a[E>>0]&1))b=10;else b=(c[E>>2]&-2)+-1|0;o=0;mb(80,E|0,b|0,0);p=o;o=0;if(p&1){G=25;break}b=(a[E>>0]&1)==0?t:c[s>>2]|0;c[x>>2]=b+m}n=f+12|0;m=c[n>>2]|0;p=f+16|0;if((m|0)==(c[p>>2]|0)){o=0;m=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=25;break}}else m=c[m>>2]|0;if(LE(m,z,w,b,x,r,q,F,B,C,y,v)|0)break;l=c[n>>2]|0;if((l|0)==(c[p>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=25;break}else continue}else{c[n>>2]=l+4;continue}}if((G|0)==25){b=cc()|0;break}H=a[F>>0]|0;if(!((a[z>>0]|0)==0?1:(((H&1)==0?(H&255)>>>1:c[F+4>>2]|0)|0)==0)?(A=c[C>>2]|0,(A-B|0)<160):0){H=c[y>>2]|0;c[C>>2]=A+4;c[A>>2]=H}o=0;k=+_a(45,b|0,c[x>>2]|0,g|0);H=o;o=0;if(!(H&1)){h[j>>3]=k;oH(F,B,c[C>>2]|0,g);if(f){b=c[f+12>>2]|0;if((b|0)==(c[f+16>>2]|0)){o=0;b=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(l){b=c[l+12>>2]|0;if((b|0)==(c[l+16>>2]|0)){o=0;b=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;H=o;o=0;if(H&1){G=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{G=53;break}else{c[e>>2]=0;G=51;break}}else G=51;while(0);if((G|0)==51?f:0)G=53;if((G|0)==53)c[g>>2]=c[g>>2]|2;H=c[d>>2]|0;IC(E);IC(F);i=D;return H|0}else G=26}else G=26;while(0);if((G|0)==26)b=cc()|0;IC(E);IC(F);bc(b|0);return 0}
function lK(b,d,e,f,g,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;j=j|0;var k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;D=i;i=i+352|0;v=D+208|0;l=D+40|0;m=D+36|0;F=D+24|0;E=D+12|0;x=D+8|0;B=D+48|0;C=D+4|0;y=D;z=D+337|0;w=D+336|0;KE(F,f,v,l,m);c[E>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;if(!(a[E>>0]&1))b=10;else b=(c[E>>2]&-2)+-1|0;o=0;mb(80,E|0,b|0,0);u=o;o=0;a:do if(!(u&1)){s=E+8|0;t=E+1|0;b=(a[E>>0]&1)==0?t:c[s>>2]|0;c[x>>2]=b;c[C>>2]=B;c[y>>2]=0;a[z>>0]=1;a[w>>0]=69;u=E+4|0;r=c[l>>2]|0;q=c[m>>2]|0;f=c[d>>2]|0;b:while(1){if(f){l=c[f+12>>2]|0;if((l|0)==(c[f+16>>2]|0)){o=0;l=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;p=o;o=0;if(p&1){G=25;break}}else l=c[l>>2]|0;if((l|0)==-1){c[d>>2]=0;f=0;n=1}else n=0}else{f=0;n=1}l=c[e>>2]|0;do if(l){m=c[l+12>>2]|0;if((m|0)==(c[l+16>>2]|0)){o=0;m=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;p=o;o=0;if(p&1){G=25;break b}}else m=c[m>>2]|0;if((m|0)!=-1)if(n)break;else break b;else{c[e>>2]=0;G=17;break}}else G=17;while(0);if((G|0)==17){G=0;if(n){l=0;break}else l=0}m=a[E>>0]|0;m=(m&1)==0?(m&255)>>>1:c[u>>2]|0;if((c[x>>2]|0)==(b+m|0)){o=0;mb(80,E|0,m<<1|0,0);p=o;o=0;if(p&1){G=25;break}if(!(a[E>>0]&1))b=10;else b=(c[E>>2]&-2)+-1|0;o=0;mb(80,E|0,b|0,0);p=o;o=0;if(p&1){G=25;break}b=(a[E>>0]&1)==0?t:c[s>>2]|0;c[x>>2]=b+m}n=f+12|0;m=c[n>>2]|0;p=f+16|0;if((m|0)==(c[p>>2]|0)){o=0;m=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=25;break}}else m=c[m>>2]|0;if(LE(m,z,w,b,x,r,q,F,B,C,y,v)|0)break;l=c[n>>2]|0;if((l|0)==(c[p>>2]|0)){o=0;qa(c[(c[f>>2]|0)+40>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=25;break}else continue}else{c[n>>2]=l+4;continue}}if((G|0)==25){b=cc()|0;break}H=a[F>>0]|0;if(!((a[z>>0]|0)==0?1:(((H&1)==0?(H&255)>>>1:c[F+4>>2]|0)|0)==0)?(A=c[C>>2]|0,(A-B|0)<160):0){H=c[y>>2]|0;c[C>>2]=A+4;c[A>>2]=H}o=0;k=+_a(46,b|0,c[x>>2]|0,g|0);H=o;o=0;if(!(H&1)){h[j>>3]=k;oH(F,B,c[C>>2]|0,g);if(f){b=c[f+12>>2]|0;if((b|0)==(c[f+16>>2]|0)){o=0;b=qa(c[(c[f>>2]|0)+36>>2]|0,f|0)|0;H=o;o=0;if(H&1){G=26;break}}else b=c[b>>2]|0;if((b|0)==-1){c[d>>2]=0;f=1}else f=0}else f=1;do if(l){b=c[l+12>>2]|0;if((b|0)==(c[l+16>>2]|0)){o=0;b=qa(c[(c[l>>2]|0)+36>>2]|0,l|0)|0;H=o;o=0;if(H&1){G=26;break a}}else b=c[b>>2]|0;if((b|0)!=-1)if(f)break;else{G=53;break}else{c[e>>2]=0;G=51;break}}else G=51;while(0);if((G|0)==51?f:0)G=53;if((G|0)==53)c[g>>2]=c[g>>2]|2;H=c[d>>2]|0;IC(E);IC(F);i=D;return H|0}else G=26}else G=26;while(0);if((G|0)==26)b=cc()|0;IC(E);IC(F);bc(b|0);return 0}function mK(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+16|0;h=g;c[h>>2]=f;f=lB(d)|0;d=XB(a,b,e,h)|0;if((f|0)!=0?(o=0,qa(193,f|0)|0,h=o,o=0,h&1):0){h=cc(0)|0;oq(h)}i=g;return d|0}function nK(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;c[g>>2]=e;e=lB(b)|0;o=0;b=ya(127,a|0,d|0,g|0)|0;a=o;o=0;if(a&1){b=cc()|0;if((e|0)!=0?(o=0,qa(193,e|0)|0,g=o,o=0,g&1):0){g=cc(0)|0;oq(g)}bc(b|0)}else{if((e|0)!=0?(o=0,qa(193,e|0)|0,g=o,o=0,g&1):0){g=cc(0)|0;oq(g)}i=f;return b|0}return 0}function oK(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0;p=i;i=i+16|0;n=p;j=c[b>>2]|0;a:do if(!j)j=0;else{q=d;l=f-q>>2;m=g+12|0;k=c[m>>2]|0;l=(k|0)>(l|0)?k-l|0:0;k=e;q=k-q|0;g=q>>2;if((q|0)>0?(fd[c[(c[j>>2]|0)+48>>2]&127](j,d,g)|0)!=(g|0):0){c[b>>2]=0;j=0;break}do if((l|0)>0){YC(n,l,h);o=0;g=ya(c[(c[j>>2]|0)+48>>2]|0,j|0,((a[n>>0]&1)==0?n+4|0:c[n+8>>2]|0)|0,l|0)|0;q=o;o=0;if(q&1){q=cc()|0;ZC(n);bc(q|0)}if((g|0)==(l|0)){ZC(n);break}else{c[b>>2]=0;ZC(n);j=0;break a}}while(0);q=f-k|0;f=q>>2;if((q|0)>0?(fd[c[(c[j>>2]|0)+48>>2]&127](j,e,f)|0)!=(f|0):0){c[b>>2]=0;j=0;break}c[m>>2]=0}while(0);i=p;return j|0}function pK(a,e,f,g,h){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;i=c[a>>2]|0;do if(i){if((c[i+12>>2]|0)==(c[i+16>>2]|0))if((bd[c[(c[i>>2]|0)+36>>2]&255](i)|0)==-1){c[a>>2]=0;i=0;break}else{i=c[a>>2]|0;break}}else i=0;while(0);j=(i|0)==0;i=c[e>>2]|0;do if(i){if((c[i+12>>2]|0)==(c[i+16>>2]|0)?(bd[c[(c[i>>2]|0)+36>>2]&255](i)|0)==-1:0){c[e>>2]=0;r=11;break}if(j)r=13;else r=12}else r=11;while(0);if((r|0)==11)if(j)r=12;else{i=0;r=13}a:do if((r|0)==12){c[f>>2]=c[f>>2]|6;i=0}else if((r|0)==13){j=c[a>>2]|0;k=c[j+12>>2]|0;if((k|0)==(c[j+16>>2]|0))j=bd[c[(c[j>>2]|0)+36>>2]&255](j)|0;else j=d[k>>0]|0;k=j&255;if(k<<24>>24>-1?(q=g+8|0,(b[(c[q>>2]|0)+(j<<24>>24<<1)>>1]&2048)!=0):0){m=(fd[c[(c[g>>2]|0)+36>>2]&127](g,k,0)|0)<<24>>24;j=c[a>>2]|0;k=j+12|0;l=c[k>>2]|0;if((l|0)==(c[j+16>>2]|0)){bd[c[(c[j>>2]|0)+40>>2]&255](j)|0;o=h;n=i;h=i;i=m}else{c[k>>2]=l+1;o=h;n=i;h=i;i=m}while(1){i=i+-48|0;p=o+-1|0;j=c[a>>2]|0;do if(j){if((c[j+12>>2]|0)==(c[j+16>>2]|0))if((bd[c[(c[j>>2]|0)+36>>2]&255](j)|0)==-1){c[a>>2]=0;j=0;break}else{j=c[a>>2]|0;break}}else j=0;while(0);l=(j|0)==0;if(h)if((c[h+12>>2]|0)==(c[h+16>>2]|0))if((bd[c[(c[h>>2]|0)+36>>2]&255](h)|0)==-1){c[e>>2]=0;k=0;h=0}else{k=n;h=n}else k=n;else{k=n;h=0}j=c[a>>2]|0;if(!((o|0)>1&(l^(h|0)==0)))break;l=c[j+12>>2]|0;if((l|0)==(c[j+16>>2]|0))j=bd[c[(c[j>>2]|0)+36>>2]&255](j)|0;else j=d[l>>0]|0;l=j&255;if(l<<24>>24<=-1)break a;if(!(b[(c[q>>2]|0)+(j<<24>>24<<1)>>1]&2048))break a;i=((fd[c[(c[g>>2]|0)+36>>2]&127](g,l,0)|0)<<24>>24)+(i*10|0)|0;j=c[a>>2]|0;l=j+12|0;m=c[l>>2]|0;if((m|0)==(c[j+16>>2]|0)){bd[c[(c[j>>2]|0)+40>>2]&255](j)|0;o=p;n=k;continue}else{c[l>>2]=m+1;o=p;n=k;continue}}do if(j){if((c[j+12>>2]|0)==(c[j+16>>2]|0))if((bd[c[(c[j>>2]|0)+36>>2]&255](j)|0)==-1){c[a>>2]=0;j=0;break}else{j=c[a>>2]|0;break}}else j=0;while(0);j=(j|0)==0;do if(k){if((c[k+12>>2]|0)==(c[k+16>>2]|0)?(bd[c[(c[k>>2]|0)+36>>2]&255](k)|0)==-1:0){c[e>>2]=0;r=50;break}if(j)break a}else r=50;while(0);if((r|0)==50?!j:0)break;c[f>>2]=c[f>>2]|2;break}c[f>>2]=c[f>>2]|4;i=0}while(0);return i|0}function qK(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;g=c[a>>2]|0;do if(g){h=c[g+12>>2]|0;if((h|0)==(c[g+16>>2]|0))g=bd[c[(c[g>>2]|0)+36>>2]&255](g)|0;else g=c[h>>2]|0;if((g|0)==-1){c[a>>2]=0;i=1;break}else{i=(c[a>>2]|0)==0;break}}else i=1;while(0);h=c[b>>2]|0;do if(h){g=c[h+12>>2]|0;if((g|0)==(c[h+16>>2]|0))g=bd[c[(c[h>>2]|0)+36>>2]&255](h)|0;else g=c[g>>2]|0;if((g|0)!=-1)if(i){o=17;break}else{o=16;break}else{c[b>>2]=0;o=14;break}}else o=14;while(0);if((o|0)==14)if(i)o=16;else{h=0;o=17}a:do if((o|0)==16){c[d>>2]=c[d>>2]|6;g=0}else if((o|0)==17){g=c[a>>2]|0;i=c[g+12>>2]|0;if((i|0)==(c[g+16>>2]|0))g=bd[c[(c[g>>2]|0)+36>>2]&255](g)|0;else g=c[i>>2]|0;if(!(fd[c[(c[e>>2]|0)+12>>2]&127](e,2048,g)|0)){c[d>>2]=c[d>>2]|4;g=0;break}g=(fd[c[(c[e>>2]|0)+52>>2]&127](e,g,0)|0)<<24>>24;i=c[a>>2]|0;j=i+12|0;k=c[j>>2]|0;if((k|0)==(c[i+16>>2]|0)){bd[c[(c[i>>2]|0)+40>>2]&255](i)|0;m=f;l=h;j=h}else{c[j>>2]=k+4;m=f;l=h;j=h}while(1){g=g+-48|0;n=m+-1|0;h=c[a>>2]|0;do if(h){i=c[h+12>>2]|0;if((i|0)==(c[h+16>>2]|0))h=bd[c[(c[h>>2]|0)+36>>2]&255](h)|0;else h=c[i>>2]|0;if((h|0)==-1){c[a>>2]=0;k=1;break}else{k=(c[a>>2]|0)==0;break}}else k=1;while(0);do if(j){h=c[j+12>>2]|0;if((h|0)==(c[j+16>>2]|0))h=bd[c[(c[j>>2]|0)+36>>2]&255](j)|0;else h=c[h>>2]|0;if((h|0)==-1){c[b>>2]=0;j=0;f=0;h=1;break}else{j=l;f=l;h=(l|0)==0;break}}else{j=l;f=0;h=1}while(0);i=c[a>>2]|0;if(!((m|0)>1&(k^h)))break;h=c[i+12>>2]|0;if((h|0)==(c[i+16>>2]|0))h=bd[c[(c[i>>2]|0)+36>>2]&255](i)|0;else h=c[h>>2]|0;if(!(fd[c[(c[e>>2]|0)+12>>2]&127](e,2048,h)|0))break a;g=((fd[c[(c[e>>2]|0)+52>>2]&127](e,h,0)|0)<<24>>24)+(g*10|0)|0;h=c[a>>2]|0;i=h+12|0;k=c[i>>2]|0;if((k|0)==(c[h+16>>2]|0)){bd[c[(c[h>>2]|0)+40>>2]&255](h)|0;m=n;l=j;j=f;continue}else{c[i>>2]=k+4;m=n;l=j;j=f;continue}}do if(i){h=c[i+12>>2]|0;if((h|0)==(c[i+16>>2]|0))h=bd[c[(c[i>>2]|0)+36>>2]&255](i)|0;else h=c[h>>2]|0;if((h|0)==-1){c[a>>2]=0;i=1;break}else{i=(c[a>>2]|0)==0;break}}else i=1;while(0);do if(j){h=c[j+12>>2]|0;if((h|0)==(c[j+16>>2]|0))h=bd[c[(c[j>>2]|0)+36>>2]&255](j)|0;else h=c[h>>2]|0;if((h|0)!=-1)if(i)break a;else break;else{c[b>>2]=0;o=60;break}}else o=60;while(0);if((o|0)==60?!i:0)break;c[d>>2]=c[d>>2]|2}while(0);return g|0}function rK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;g=a+4|0;e=(c[g>>2]|0)!=345;i=c[a>>2]|0;h=i;f=(c[d>>2]|0)-h|0;f=f>>>0<2147483647?f<<1:-1;h=(c[b>>2]|0)-h|0;i=BC(e?i:0,f)|0;if(!i)MA();do if(!e){e=c[a>>2]|0;c[a>>2]=i;if(e){o=0;ka(c[g>>2]|0,e|0);i=o;o=0;if(i&1){i=cc(0)|0;oq(i)}else{j=c[a>>2]|0;break}}else j=i}else{c[a>>2]=i;j=i}while(0);c[g>>2]=356;c[b>>2]=j+h;c[d>>2]=(c[a>>2]|0)+f;return}function sK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;g=a+4|0;e=(c[g>>2]|0)!=345;i=c[a>>2]|0;h=i;f=(c[d>>2]|0)-h|0;f=f>>>0<2147483647?f<<1:-1;h=(c[b>>2]|0)-h>>2;i=BC(e?i:0,f)|0;if(!i)MA();do if(!e){e=c[a>>2]|0;c[a>>2]=i;if(e){o=0;ka(c[g>>2]|0,e|0);i=o;o=0;if(i&1){i=cc(0)|0;oq(i)}else{j=c[a>>2]|0;break}}else j=i}else{c[a>>2]=i;j=i}while(0);c[g>>2]=356;c[b>>2]=j+(h<<2);c[d>>2]=(c[a>>2]|0)+(f>>>2<<2);return}function tK(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=d;f=a[b>>0]|0;if(!(f&1)){g=10;k=(f&255)>>>1}else{f=c[b>>2]|0;g=(f&-2)+-1|0;k=c[b+4>>2]|0;f=f&255}j=e-h|0;do if((e|0)!=(d|0)){if((g-k|0)>>>0<j>>>0){TC(b,g,k+j-g|0,k,k,0,0);f=a[b>>0]|0}if(!(f&1))i=b+1|0;else i=c[b+8>>2]|0;h=e+(k-h)|0;if((d|0)!=(e|0)){f=d;g=i+k|0;while(1){a[g>>0]=a[f>>0]|0;f=f+1|0;if((f|0)==(e|0))break;else g=g+1|0}}a[i+h>>0]=0;f=k+j|0;if(!(a[b>>0]&1)){a[b>>0]=f<<1;break}else{c[b+4>>2]=f;break}}while(0);return b|0}function uK(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;g=a+4|0;e=(c[g>>2]|0)!=345;i=c[a>>2]|0;h=i;f=(c[d>>2]|0)-h|0;f=f>>>0<2147483647?f<<1:-1;h=(c[b>>2]|0)-h>>2;i=BC(e?i:0,f)|0;if(!i)MA();do if(!e){e=c[a>>2]|0;c[a>>2]=i;if(e){o=0;ka(c[g>>2]|0,e|0);i=o;o=0;if(i&1){i=cc(0)|0;oq(i)}else{j=c[a>>2]|0;break}}else j=i}else{c[a>>2]=i;j=i}while(0);c[g>>2]=356;c[b>>2]=j+(h<<2);c[d>>2]=(c[a>>2]|0)+(f>>>2<<2);return}function vK(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=d;f=a[b>>0]|0;if(!(f&1)){g=1;k=(f&255)>>>1}else{f=c[b>>2]|0;g=(f&-2)+-1|0;k=c[b+4>>2]|0;f=f&255}j=e-h>>2;do if(j){if((g-k|0)>>>0<j>>>0){dD(b,g,k+j-g|0,k,k,0,0);f=a[b>>0]|0}if(!(f&1))i=b+4|0;else i=c[b+8>>2]|0;h=k+((e-h|0)>>>2)|0;if((d|0)!=(e|0)){f=d;g=i+(k<<2)|0;while(1){c[g>>2]=c[f>>2];f=f+4|0;if((f|0)==(e|0))break;else g=g+4|0}}c[i+(h<<2)>>2]=0;f=k+j|0;if(!(a[b>>0]&1)){a[b>>0]=f<<1;break}else{c[b+4>>2]=f;break}}while(0);return b|0}function wK(b,d){b=b|0;d=d|0;var e=0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;a[b+128>>0]=0;do if(d){o=0;ma(256,b|0,d|0);e=o;o=0;if(e&1){e=cc()|0;ZK(b);bc(e|0)}else{oL(b,d);break}}while(0);return}function xK(a,b){a=a|0;b=b|0;TH(a,b,bI(39832)|0);return}function yK(a,b){a=a|0;b=b|0;TH(a,b,bI(39872)|0);return}function zK(a,b){a=a|0;b=b|0;TH(a,b,bI(40904)|0);return}function AK(a,b){a=a|0;b=b|0;TH(a,b,bI(40896)|0);return}function BK(a,b){a=a|0;b=b|0;TH(a,b,bI(40964)|0);return}function CK(a,b){a=a|0;b=b|0;TH(a,b,bI(40972)|0);return}function DK(a,b){a=a|0;b=b|0;TH(a,b,bI(41028)|0);return}function EK(a,b){a=a|0;b=b|0;TH(a,b,bI(41036)|0);return}function FK(a,b){a=a|0;b=b|0;TH(a,b,bI(41044)|0);return}function GK(a,b){a=a|0;b=b|0;TH(a,b,bI(41052)|0);return}function HK(a,b){a=a|0;b=b|0;TH(a,b,bI(39944)|0);return}function IK(a,b){a=a|0;b=b|0;TH(a,b,bI(40016)|0);return}function JK(a,b){a=a|0;b=b|0;TH(a,b,bI(40076)|0);return}function KK(a,b){a=a|0;b=b|0;TH(a,b,bI(40136)|0);return}function LK(a,b){a=a|0;b=b|0;TH(a,b,bI(40448)|0);return}function MK(a,b){a=a|0;b=b|0;TH(a,b,bI(40512)|0);return}function NK(a,b){a=a|0;b=b|0;TH(a,b,bI(40576)|0);return}function OK(a,b){a=a|0;b=b|0;TH(a,b,bI(40640)|0);return}function PK(a,b){a=a|0;b=b|0;TH(a,b,bI(40676)|0);return}function QK(a,b){a=a|0;b=b|0;TH(a,b,bI(40712)|0);return}function RK(a,b){a=a|0;b=b|0;TH(a,b,bI(40748)|0);return}function SK(a,b){a=a|0;b=b|0;TH(a,b,bI(40784)|0);return}function TK(a,b){a=a|0;b=b|0;TH(a,b,bI(40228)|0);return}function UK(a,b){a=a|0;b=b|0;TH(a,b,bI(40320)|0);return}function VK(a,b){a=a|0;b=b|0;TH(a,b,bI(40352)|0);return}function WK(a,b){a=a|0;b=b|0;TH(a,b,bI(40384)|0);return}function XK(a,b){a=a|0;b=b|0;TH(a,b,bI(40824)|0);return}function YK(a,b){a=a|0;b=b|0;TH(a,b,bI(40864)|0);return}function ZK(b){b=b|0;var d=0,e=0,f=0;e=c[b>>2]|0;do if(e){f=b+4|0;d=c[f>>2]|0;if((d|0)!=(e|0)){do d=d+-4|0;while((d|0)!=(e|0));c[f>>2]=d}if((b+16|0)==(e|0)){a[b+128>>0]=0;break}else{Uz(e);break}}while(0);return}function _K(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+4|0;d=c[h>>2]|0;e=c[a>>2]|0;f=d-e>>2;if(f>>>0>=b>>>0){if(f>>>0>b>>>0?(g=e+(b<<2)|0,(d|0)!=(g|0)):0){do d=d+-4|0;while((d|0)!=(g|0));c[h>>2]=d}}else nL(a,b-f|0);return}function $K(a,b){a=a|0;b=b|0;var d=0;d=c[a+8>>2]|0;if((c[a+12>>2]|0)-d>>2>>>0>b>>>0)d=(c[d+(b<<2)>>2]|0)!=0;else d=0;return d|0}function aL(a){a=a|0;var b=0,d=0;d=a+4|0;b=c[d>>2]|0;d=c[d+4>>2]|0;a=(c[a>>2]|0)+(d>>1)|0;if(d&1)b=c[(c[a>>2]|0)+b>>2]|0;_c[b&511](a);return}function bL(d,f,g,h,i,j,k,l){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0;c[g>>2]=d;c[j>>2]=h;if(l&2)if((i-h|0)<3)d=1;else{c[j>>2]=h+1;a[h>>0]=-17;m=c[j>>2]|0;c[j>>2]=m+1;a[m>>0]=-69;m=c[j>>2]|0;c[j>>2]=m+1;a[m>>0]=-65;m=4}else m=4;a:do if((m|0)==4){n=f;d=c[g>>2]|0;if(d>>>0<f>>>0)while(1){l=b[d>>1]|0;m=l&65535;if(m>>>0>k>>>0){d=2;break a}do if((l&65535)<128){d=c[j>>2]|0;if((i-d|0)<1){d=1;break a}c[j>>2]=d+1;a[d>>0]=l}else{if((l&65535)<2048){d=c[j>>2]|0;if((i-d|0)<2){d=1;break a}c[j>>2]=d+1;a[d>>0]=m>>>6|192;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=m&63|128;break}if((l&65535)<55296){d=c[j>>2]|0;if((i-d|0)<3){d=1;break a}c[j>>2]=d+1;a[d>>0]=m>>>12|224;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=m>>>6&63|128;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=m&63|128;break}if((l&65535)>=56320){if((l&65535)<57344){d=2;break a}d=c[j>>2]|0;if((i-d|0)<3){d=1;break a}c[j>>2]=d+1;a[d>>0]=m>>>12|224;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=m>>>6&63|128;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=m&63|128;break}if((n-d|0)<4){d=1;break a}d=d+2|0;l=e[d>>1]|0;if((l&64512|0)!=56320){d=2;break a}if((i-(c[j>>2]|0)|0)<4){d=1;break a}h=m&960;if(((h<<10)+65536|m<<10&64512|l&1023)>>>0>k>>>0){d=2;break a}c[g>>2]=d;d=(h>>>6)+1|0;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=d>>>2|240;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=m>>>2&15|d<<4&48|128;h=c[j>>2]|0;c[j>>2]=h+1;a[h>>0]=m<<4&48|l>>>6&15|128;m=c[j>>2]|0;c[j>>2]=m+1;a[m>>0]=l&63|128}while(0);d=(c[g>>2]|0)+2|0;c[g>>2]=d;if(d>>>0>=f>>>0){d=0;break}}else d=0}while(0);return d|0}function cL(e,f,g,h,i,j,k,l){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0;c[g>>2]=e;c[j>>2]=h;if(l&4){e=c[g>>2]|0;l=f;if((((l-e|0)>2?(a[e>>0]|0)==-17:0)?(a[e+1>>0]|0)==-69:0)?(a[e+2>>0]|0)==-65:0){c[g>>2]=e+3;m=c[j>>2]|0}else m=h}else{m=h;l=f}q=i;h=c[g>>2]|0;e=h>>>0<f>>>0;a:do if(e&m>>>0<i>>>0)while(1){e=a[h>>0]|0;o=e&255;if(o>>>0>k>>>0){e=2;break a}do if(e<<24>>24>-1){b[m>>1]=e&255;c[g>>2]=h+1}else{if((e&255)<194){e=2;break a}if((e&255)<224){if((l-h|0)<2){e=1;break a}e=d[h+1>>0]|0;if((e&192|0)!=128){e=2;break a}e=e&63|o<<6&1984;if(e>>>0>k>>>0){e=2;break a}b[m>>1]=e;c[g>>2]=h+2;break}if((e&255)<240){if((l-h|0)<3){e=1;break a}n=a[h+1>>0]|0;e=a[h+2>>0]|0;switch(o|0){case 224:{if((n&-32)<<24>>24!=-96){e=2;break a}break}case 237:{if((n&-32)<<24>>24!=-128){e=2;break a}break}default:if((n&-64)<<24>>24!=-128){e=2;break a}}e=e&255;if((e&192|0)!=128){e=2;break a}e=(n&255)<<6&4032|o<<12|e&63;if((e&65535)>>>0>k>>>0){e=2;break a}b[m>>1]=e;c[g>>2]=h+3;break}if((e&255)>=245){e=2;break a}if((l-h|0)<4){e=1;break a}n=a[h+1>>0]|0;e=a[h+2>>0]|0;h=a[h+3>>0]|0;switch(o|0){case 240:{if((n+112&255)>=48){e=2;break a}break}case 244:{if((n&-16)<<24>>24!=-128){e=2;break a}break}default:if((n&-64)<<24>>24!=-128){e=2;break a}}p=e&255;if((p&192|0)!=128){e=2;break a}e=h&255;if((e&192|0)!=128){e=2;break a}if((q-m|0)<4){e=1;break a}o=o&7;h=n&255;n=p<<6;e=e&63;if((h<<12&258048|o<<18|n&4032|e)>>>0>k>>>0){e=2;break a}b[m>>1]=h<<2&60|p>>>4&3|((h>>>4&3|o<<2)<<6)+16320|55296;p=m+2|0;c[j>>2]=p;b[p>>1]=e|n&960|56320;c[g>>2]=(c[g>>2]|0)+4}while(0);m=(c[j>>2]|0)+2|0;c[j>>2]=m;h=c[g>>2]|0;e=h>>>0<f>>>0;if(!(e&m>>>0<i>>>0)){r=39;break}}else r=39;while(0);if((r|0)==39)e=e&1;return e|0}function dL(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=c;if((((g&4|0)!=0?(n-b|0)>2:0)?(a[b>>0]|0)==-17:0)?(a[b+1>>0]|0)==-69:0)g=(a[b+2>>0]|0)==-65?b+3|0:b;else g=b;a:do if((e|0)!=0&g>>>0<c>>>0){m=g;h=0;b:while(1){g=a[m>>0]|0;l=g&255;if(l>>>0>f>>>0){g=m;h=42;break a}do if(g<<24>>24>-1)g=m+1|0;else{if((g&255)<194){g=m;h=42;break a}if((g&255)<224){if((n-m|0)<2){g=m;h=42;break a}g=d[m+1>>0]|0;if((g&192|0)!=128){g=m;h=42;break a}if((g&63|l<<6&1984)>>>0>f>>>0){g=m;h=42;break a}g=m+2|0;break}if((g&255)<240){g=m;if((n-g|0)<3){g=m;h=42;break a}j=a[m+1>>0]|0;i=a[m+2>>0]|0;switch(l|0){case 224:{if((j&-32)<<24>>24!=-96){h=20;break b}break}case 237:{if((j&-32)<<24>>24!=-128){h=22;break b}break}default:if((j&-64)<<24>>24!=-128){h=24;break b}}g=i&255;if((g&192|0)!=128){g=m;h=42;break a}if(((j&255)<<6&4032|l<<12&61440|g&63)>>>0>f>>>0){g=m;h=42;break a}g=m+3|0;break}if((g&255)>=245){g=m;h=42;break a}g=m;if((e-h|0)>>>0<2|(n-g|0)<4){g=m;h=42;break a}k=a[m+1>>0]|0;i=a[m+2>>0]|0;j=a[m+3>>0]|0;switch(l|0){case 240:{if((k+112&255)>=48){h=32;break b}break}case 244:{if((k&-16)<<24>>24!=-128){h=34;break b}break}default:if((k&-64)<<24>>24!=-128){h=36;break b}}i=i&255;if((i&192|0)!=128){g=m;h=42;break a}g=j&255;if((g&192|0)!=128){g=m;h=42;break a}if(((k&255)<<12&258048|l<<18&1835008|i<<6&4032|g&63)>>>0>f>>>0){g=m;h=42;break a}g=m+4|0;h=h+1|0}while(0);h=h+1|0;if(!(h>>>0<e>>>0&g>>>0<c>>>0)){h=42;break a}else m=g}if((h|0)==20){g=g-b|0;break}else if((h|0)==22){g=g-b|0;break}else if((h|0)==24){g=g-b|0;break}else if((h|0)==32){g=g-b|0;break}else if((h|0)==34){g=g-b|0;break}else if((h|0)==36){g=g-b|0;break}}else h=42;while(0);if((h|0)==42)g=g-b|0;return g|0}function eL(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;c[e>>2]=b;c[h>>2]=f;l=g;if(j&2)if((l-f|0)<3)b=1;else{c[h>>2]=f+1;a[f>>0]=-17;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=-69;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=-65;k=4}else k=4;a:do if((k|0)==4){b=c[e>>2]|0;if(b>>>0<d>>>0)while(1){j=c[b>>2]|0;if(j>>>0>i>>>0|(j&-2048|0)==55296){b=2;break a}do if(j>>>0>=128){if(j>>>0<2048){b=c[h>>2]|0;if((l-b|0)<2){b=1;break a}c[h>>2]=b+1;a[b>>0]=j>>>6|192;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=j&63|128;break}b=c[h>>2]|0;g=l-b|0;if(j>>>0<65536){if((g|0)<3){b=1;break a}c[h>>2]=b+1;a[b>>0]=j>>>12|224;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=j>>>6&63|128;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=j&63|128;break}else{if((g|0)<4){b=1;break a}c[h>>2]=b+1;a[b>>0]=j>>>18|240;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=j>>>12&63|128;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=j>>>6&63|128;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=j&63|128;break}}else{b=c[h>>2]|0;if((l-b|0)<1){b=1;break a}c[h>>2]=b+1;a[b>>0]=j}while(0);b=(c[e>>2]|0)+4|0;c[e>>2]=b;if(b>>>0>=d>>>0){b=0;break}}else b=0}while(0);return b|0}function fL(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0;c[f>>2]=b;c[i>>2]=g;if(k&4){b=c[f>>2]|0;k=e;if((((k-b|0)>2?(a[b>>0]|0)==-17:0)?(a[b+1>>0]|0)==-69:0)?(a[b+2>>0]|0)==-65:0){c[f>>2]=b+3;g=c[i>>2]|0;p=k}else p=k}else p=e;k=c[f>>2]|0;b=k>>>0<e>>>0;a:do if(b&g>>>0<h>>>0)while(1){b=a[k>>0]|0;o=b&255;do if(b<<24>>24>-1){if(o>>>0>j>>>0){b=2;break a}c[g>>2]=o;c[f>>2]=k+1}else{if((b&255)<194){b=2;break a}if((b&255)<224){if((p-k|0)<2){b=1;break a}b=d[k+1>>0]|0;if((b&192|0)!=128){b=2;break a}b=b&63|o<<6&1984;if(b>>>0>j>>>0){b=2;break a}c[g>>2]=b;c[f>>2]=k+2;break}if((b&255)<240){if((p-k|0)<3){b=1;break a}l=a[k+1>>0]|0;b=a[k+2>>0]|0;switch(o|0){case 224:{if((l&-32)<<24>>24!=-96){b=2;break a}break}case 237:{if((l&-32)<<24>>24!=-128){b=2;break a}break}default:if((l&-64)<<24>>24!=-128){b=2;break a}}b=b&255;if((b&192|0)!=128){b=2;break a}b=(l&255)<<6&4032|o<<12&61440|b&63;if(b>>>0>j>>>0){b=2;break a}c[g>>2]=b;c[f>>2]=k+3;break}if((b&255)>=245){b=2;break a}if((p-k|0)<4){b=1;break a}n=a[k+1>>0]|0;b=a[k+2>>0]|0;l=a[k+3>>0]|0;switch(o|0){case 240:{if((n+112&255)>=48){b=2;break a}break}case 244:{if((n&-16)<<24>>24!=-128){b=2;break a}break}default:if((n&-64)<<24>>24!=-128){b=2;break a}}m=b&255;if((m&192|0)!=128){b=2;break a}b=l&255;if((b&192|0)!=128){b=2;break a}b=(n&255)<<12&258048|o<<18&1835008|m<<6&4032|b&63;if(b>>>0>j>>>0){b=2;break a}c[g>>2]=b;c[f>>2]=k+4}while(0);g=(c[i>>2]|0)+4|0;c[i>>2]=g;k=c[f>>2]|0;b=k>>>0<e>>>0;if(!(b&g>>>0<h>>>0)){q=38;break}}else q=38;while(0);if((q|0)==38)b=b&1;return b|0}function gL(b,c,e,f,g){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=c;if((((g&4|0)!=0?(n-b|0)>2:0)?(a[b>>0]|0)==-17:0)?(a[b+1>>0]|0)==-69:0)g=(a[b+2>>0]|0)==-65?b+3|0:b;else g=b;a:do if((e|0)!=0&g>>>0<c>>>0){l=g;m=0;b:while(1){g=a[l>>0]|0;k=g&255;do if(g<<24>>24>-1){if(k>>>0>f>>>0){g=l;h=42;break a}g=l+1|0}else{if((g&255)<194){g=l;h=42;break a}if((g&255)<224){if((n-l|0)<2){g=l;h=42;break a}g=d[l+1>>0]|0;if((g&192|0)!=128){g=l;h=42;break a}if((g&63|k<<6&1984)>>>0>f>>>0){g=l;h=42;break a}g=l+2|0;break}if((g&255)<240){g=l;if((n-g|0)<3){g=l;h=42;break a}i=a[l+1>>0]|0;h=a[l+2>>0]|0;switch(k|0){case 224:{if((i&-32)<<24>>24!=-96){h=20;break b}break}case 237:{if((i&-32)<<24>>24!=-128){h=22;break b}break}default:if((i&-64)<<24>>24!=-128){h=24;break b}}g=h&255;if((g&192|0)!=128){g=l;h=42;break a}if(((i&255)<<6&4032|k<<12&61440|g&63)>>>0>f>>>0){g=l;h=42;break a}g=l+3|0;break}if((g&255)>=245){g=l;h=42;break a}g=l;if((n-g|0)<4){g=l;h=42;break a}j=a[l+1>>0]|0;h=a[l+2>>0]|0;i=a[l+3>>0]|0;switch(k|0){case 240:{if((j+112&255)>=48){h=32;break b}break}case 244:{if((j&-16)<<24>>24!=-128){h=34;break b}break}default:if((j&-64)<<24>>24!=-128){h=36;break b}}h=h&255;if((h&192|0)!=128){g=l;h=42;break a}g=i&255;if((g&192|0)!=128){g=l;h=42;break a}if(((j&255)<<12&258048|k<<18&1835008|h<<6&4032|g&63)>>>0>f>>>0){g=l;h=42;break a}g=l+4|0}while(0);m=m+1|0;if(!(m>>>0<e>>>0&g>>>0<c>>>0)){h=42;break a}else l=g}if((h|0)==20){g=g-b|0;break}else if((h|0)==22){g=g-b|0;break}else if((h|0)==24){g=g-b|0;break}else if((h|0)==32){g=g-b|0;break}else if((h|0)==34){g=g-b|0;break}else if((h|0)==36){g=g-b|0;break}}else h=42;while(0);if((h|0)==42)g=g-b|0;return g|0}function hL(a){a=a|0;IC(41880);IC(41868);IC(41856);IC(41844);IC(41832);IC(41820);IC(41808);IC(41796);IC(41784);IC(41772);IC(41760);IC(41748);IC(41736);IC(41724);return}function iL(a){a=a|0;ZC(42052);ZC(42040);ZC(42028);ZC(42016);ZC(42004);ZC(41992);ZC(41980);ZC(41968);ZC(41956);ZC(41944);ZC(41932);ZC(41920);ZC(41908);ZC(41896);return}function jL(a){a=a|0;IC(42684);IC(42672);IC(42660);IC(42648);IC(42636);IC(42624);IC(42612);IC(42600);IC(42588);IC(42576);IC(42564);IC(42552);IC(42540);IC(42528);IC(42516);IC(42504);IC(42492);IC(42480);IC(42468);IC(42456);IC(42444);IC(42432);IC(42420);IC(42408);return}function kL(a){a=a|0;ZC(42976);ZC(42964);ZC(42952);ZC(42940);ZC(42928);ZC(42916);ZC(42904);ZC(42892);ZC(42880);ZC(42868);ZC(42856);ZC(42844);ZC(42832);ZC(42820);ZC(42808);ZC(42796);ZC(42784);ZC(42772);ZC(42760);ZC(42748);ZC(42736);ZC(42724);ZC(42712);ZC(42700);return}function lL(a){a=a|0;IC(43788);IC(43776);IC(43764);IC(43752);IC(43740);IC(43728);IC(43716);IC(43704);IC(43692);IC(43680);IC(43668);IC(43656);IC(43644);IC(43632);IC(43620);IC(43608);IC(43596);IC(43584);IC(43572);IC(43560);IC(43548);IC(43536);IC(43524);IC(43512);return}function mL(a){a=a|0;ZC(44080);ZC(44068);ZC(44056);ZC(44044);ZC(44032);ZC(44020);ZC(44008);ZC(43996);ZC(43984);ZC(43972);ZC(43960);ZC(43948);ZC(43936);ZC(43924);ZC(43912);ZC(43900);ZC(43888);ZC(43876);ZC(43864);ZC(43852);ZC(43840);ZC(43828);ZC(43816);ZC(43804);return}function nL(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;j=k;g=c[a+8>>2]|0;d=c[a+4>>2]|0;if(g-d>>2>>>0<b>>>0){e=c[a>>2]|0;h=d-e>>2;f=h+b|0;if(f>>>0>1073741823)Qz(a);d=g-e|0;if(d>>2>>>0<536870911){d=d>>1;d=d>>>0<f>>>0?f:d}else d=1073741823;pL(j,d,h,a+16|0);h=j+8|0;g=c[h>>2]|0;ZL(g|0,0,b<<2|0)|0;c[h>>2]=g+(b<<2);qL(a,j);rL(j)}else oL(a,b);i=k;return}function oL(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function pL(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;c[b+12>>2]=0;c[b+16>>2]=f;do if(d){g=f+112|0;if(d>>>0<29&(a[g>>0]|0)==0){a[g>>0]=1;break}else{f=Sz(d<<2)|0;break}}else f=0;while(0);c[b>>2]=f;e=f+(e<<2)|0;c[b+8>>2]=e;c[b+4>>2]=e;c[b+12>>2]=f+(d<<2);return}function qL(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;g=a+4|0;d=b+4|0;f=(c[g>>2]|0)-e|0;h=(c[d>>2]|0)+(0-(f>>2)<<2)|0;c[d>>2]=h;XL(h|0,e|0,f|0)|0;f=c[a>>2]|0;c[a>>2]=c[d>>2];c[d>>2]=f;f=b+8|0;e=c[g>>2]|0;c[g>>2]=c[f>>2];c[f>>2]=e;f=a+8|0;a=b+12|0;e=c[f>>2]|0;c[f>>2]=c[a>>2];c[a>>2]=e;c[b>>2]=c[d>>2];return}function rL(b){b=b|0;var d=0,e=0,f=0;e=c[b+4>>2]|0;f=b+8|0;d=c[f>>2]|0;if((d|0)!=(e|0)){do d=d+-4|0;while((d|0)!=(e|0));c[f>>2]=d}e=c[b>>2]|0;do if(e){d=c[b+16>>2]|0;if((d|0)==(e|0)){a[d+112>>0]=0;break}else{Uz(e);break}}while(0);return}function sL(b,d){b=b|0;d=d|0;var e=0;if(d>>>0>1073741823)Qz(b);e=b+128|0;if(d>>>0<29&(a[e>>0]|0)==0){a[e>>0]=1;e=b+16|0}else e=Sz(d<<2)|0;c[b+4>>2]=e;c[b>>2]=e;c[b+8>>2]=e+(d<<2);return}function tL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0,g=0,h=0,j=0;j=i;i=i+16|0;h=j;do if((a|0)!=(b|0)){f=ZA()|0;g=c[f>>2]|0;c[f>>2]=0;e=+ZB(a,h,rE()|0);a=c[f>>2]|0;if(!a)c[f>>2]=g;if((c[h>>2]|0)!=(b|0)){c[d>>2]=4;e=0.0;break}if((a|0)==34)c[d>>2]=4}else{c[d>>2]=4;e=0.0}while(0);i=j;return +e}function uL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0,g=0,h=0,j=0;j=i;i=i+16|0;h=j;do if((a|0)!=(b|0)){f=ZA()|0;g=c[f>>2]|0;c[f>>2]=0;e=+ZB(a,h,rE()|0);a=c[f>>2]|0;if(!a)c[f>>2]=g;if((c[h>>2]|0)!=(b|0)){c[d>>2]=4;e=0.0;break}if((a|0)==34)c[d>>2]=4}else{c[d>>2]=4;e=0.0}while(0);i=j;return +e}function vL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0,g=0,h=0,j=0;j=i;i=i+16|0;h=j;do if((a|0)==(b|0)){c[d>>2]=4;e=0.0}else{f=ZA()|0;g=c[f>>2]|0;c[f>>2]=0;e=+ZB(a,h,rE()|0);a=c[f>>2]|0;if(!a)c[f>>2]=g;if((c[h>>2]|0)!=(b|0)){c[d>>2]=4;e=0.0;break}if((a|0)==34)c[d>>2]=4}while(0);i=j;return +e}function wL(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;k=i;i=i+16|0;j=k;do if((b|0)!=(d|0)){if((a[b>>0]|0)==45){c[e>>2]=4;f=0;b=0;break}g=ZA()|0;h=c[g>>2]|0;c[g>>2]=0;b=SA(b,j,f,rE()|0)|0;f=c[g>>2]|0;if(!f)c[g>>2]=h;if((c[j>>2]|0)!=(d|0)){c[e>>2]=4;f=0;b=0;break}if((f|0)==34){c[e>>2]=4;f=-1;b=-1}else f=D}else{c[e>>2]=4;f=0;b=0}while(0);D=f;i=k;return b|0}function xL(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;l=i;i=i+16|0;k=l;do if((b|0)!=(d|0)){if((a[b>>0]|0)==45){c[e>>2]=4;b=0;break}h=ZA()|0;j=c[h>>2]|0;c[h>>2]=0;b=SA(b,k,f,rE()|0)|0;f=D;g=c[h>>2]|0;if(!g)c[h>>2]=j;if((c[k>>2]|0)!=(d|0)){c[e>>2]=4;b=0;break}if(f>>>0>0|(f|0)==0&b>>>0>4294967295|(g|0)==34){c[e>>2]=4;b=-1;break}else break}else{c[e>>2]=4;b=0}while(0);i=l;return b|0}function yL(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;l=i;i=i+16|0;k=l;do if((b|0)!=(d|0)){if((a[b>>0]|0)==45){c[e>>2]=4;b=0;break}h=ZA()|0;j=c[h>>2]|0;c[h>>2]=0;b=SA(b,k,f,rE()|0)|0;f=D;g=c[h>>2]|0;if(!g)c[h>>2]=j;if((c[k>>2]|0)!=(d|0)){c[e>>2]=4;b=0;break}if(f>>>0>0|(f|0)==0&b>>>0>4294967295|(g|0)==34){c[e>>2]=4;b=-1;break}else break}else{c[e>>2]=4;b=0}while(0);i=l;return b|0}function zL(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;l=i;i=i+16|0;k=l;do if((b|0)!=(d|0)){if((a[b>>0]|0)==45){c[e>>2]=4;b=0;break}h=ZA()|0;j=c[h>>2]|0;c[h>>2]=0;b=SA(b,k,f,rE()|0)|0;f=D;g=c[h>>2]|0;if(!g)c[h>>2]=j;if((c[k>>2]|0)!=(d|0)){c[e>>2]=4;b=0;break}if(f>>>0>0|(f|0)==0&b>>>0>65535|(g|0)==34){c[e>>2]=4;b=-1;break}else{b=b&65535;break}}else{c[e>>2]=4;b=0}while(0);i=l;return b|0}function AL(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;k=i;i=i+16|0;j=k;do if((a|0)!=(b|0)){g=ZA()|0;h=c[g>>2]|0;c[g>>2]=0;a=TA(a,j,e,rE()|0)|0;e=D;f=c[g>>2]|0;if(!f)c[g>>2]=h;if((c[j>>2]|0)!=(b|0)){c[d>>2]=4;e=0;a=0;break}if((f|0)==34){c[d>>2]=4;j=(e|0)>0|(e|0)==0&a>>>0>0;D=j?2147483647:-2147483648;i=k;return (j?-1:0)|0}}else{c[d>>2]=4;e=0;a=0}while(0);D=e;i=k;return a|0}function BL(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;k=i;i=i+16|0;j=k;a:do if((a|0)==(b|0)){c[d>>2]=4;a=0}else{g=ZA()|0;h=c[g>>2]|0;c[g>>2]=0;a=TA(a,j,e,rE()|0)|0;e=D;f=c[g>>2]|0;if(!f)c[g>>2]=h;if((c[j>>2]|0)!=(b|0)){c[d>>2]=4;a=0;break}do if((f|0)==34){c[d>>2]=4;if((e|0)>0|(e|0)==0&a>>>0>0){a=2147483647;break a}}else{if((e|0)<-1|(e|0)==-1&a>>>0<2147483648){c[d>>2]=4;break}if((e|0)>0|(e|0)==0&a>>>0>2147483647){c[d>>2]=4;a=2147483647;break a}else break a}while(0);a=-2147483648}while(0);i=k;return a|0}function CL(a){a=a|0;return}function DL(a){a=a|0;a=a+4|0;c[a>>2]=(c[a>>2]|0)+1;return}function EL(a){a=a|0;var b=0,d=0;d=a+4|0;b=c[d>>2]|0;c[d>>2]=b+-1;if(!b){_c[c[(c[a>>2]|0)+8>>2]&511](a);a=1}else a=0;return a|0}function FL(b,d){b=b|0;d=d|0;c[b>>2]=35224;o=0;ma(257,b+4|0,((a[d>>0]&1)==0?d+1|0:c[d+8>>2]|0)|0);b=o;o=0;if(b&1){b=cc()|0;bc(b|0)}else return}function GL(a,b){a=a|0;b=b|0;c[a>>2]=35224;o=0;ma(257,a+4|0,b|0);a=o;o=0;if(a&1){a=cc()|0;bc(a|0)}else return}function HL(a,b){a=a|0;b=b|0;var d=0,e=0;e=iC(b)|0;d=Sz(e+13|0)|0;c[d>>2]=e;c[d+4>>2]=e;c[d+8>>2]=0;d=d+12|0;XL(d|0,b|0,e+1|0)|0;c[a>>2]=d;return}function IL(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=d;c[a+4>>2]=b;return}function JL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;e=f;Ad[c[(c[a>>2]|0)+12>>2]&127](e,a,b);if((c[e+4>>2]|0)==(c[d+4>>2]|0))e=(c[e>>2]|0)==(c[d>>2]|0);else e=0;i=f;return e|0}function KL(a,b,d){a=a|0;b=b|0;d=d|0;return ((c[b>>2]|0)==(d|0)?(c[b+4>>2]|0)==(a|0):0)|0}function LL(a,b,c){a=a|0;b=b|0;c=c|0;b=_A(c)|0;FC(a,b,iC(b)|0);return}function ML(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;j=i;i=i+16|0;h=j;f=c[d>>2]|0;do if(f){g=a[e>>0]|0;if(!(g&1))g=(g&255)>>>1;else g=c[e+4>>2]|0;if(g){PC(e,62197)|0;f=c[d>>2]|0}d=c[d+4>>2]|0;Ad[c[(c[d>>2]|0)+24>>2]&127](h,d,f);d=a[h>>0]|0;g=(d&1)==0;o=0;ya(90,e|0,(g?h+1|0:c[h+8>>2]|0)|0,(g?(d&255)>>>1:c[h+4>>2]|0)|0)|0;d=o;o=0;if(d&1){j=cc()|0;IC(h);bc(j|0)}else{IC(h);break}}while(0);c[b>>2]=c[e>>2];c[b+4>>2]=c[e+4>>2];c[b+8>>2]=c[e+8>>2];c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;i=j;return}function NL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+32|0;e=f+12|0;g=f;FC(g,d,iC(d)|0);o=0;mb(120,e|0,b|0,g|0);d=o;o=0;do if(!(d&1)){o=0;ma(258,a|0,e|0);d=o;o=0;if(d&1){f=cc()|0;IC(e);e=f;break}else{IC(e);IC(g);c[a>>2]=44428;d=c[b+4>>2]|0;g=a+8|0;c[g>>2]=c[b>>2];c[g+4>>2]=d;i=f;return}}else e=cc()|0;while(0);IC(g);bc(e|0)}function OL(a){a=a|0;cA(a);return}function PL(a){a=a|0;cA(a);Uz(a);return}function QL(a){a=a|0;return}function RL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;Pc(44440)|0;if((c[a>>2]|0)==1)do yb(44468,44440)|0;while((c[a>>2]|0)==1);do if(!(c[a>>2]|0)){c[a>>2]=1;o=0;qa(195,44440)|0;e=o;o=0;if((((!(e&1)?(o=0,ka(d|0,b|0),e=o,o=0,!(e&1)):0)?(o=0,qa(196,44440)|0,e=o,o=0,!(e&1)):0)?(c[a>>2]=-1,o=0,qa(195,44440)|0,e=o,o=0,!(e&1)):0)?(o=0,qa(197,44468)|0,e=o,o=0,!(e&1)):0)break;e=cc(0)|0;fc(e|0)|0;o=0;qa(196,44440)|0;e=o;o=0;if((!(e&1)?(c[a>>2]=0,o=0,qa(195,44440)|0,e=o,o=0,!(e&1)):0)?(o=0,qa(197,44468)|0,e=o,o=0,!(e&1)):0){o=0;ob(47);o=0}b=cc()|0;o=0;ob(44);e=o;o=0;if(e&1){e=cc(0)|0;oq(e)}else bc(b|0)}else pc(44440)|0;while(0);return}function SL(){}function TL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return (D=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function UL(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;d=b-d-(c>>>0>a>>>0|0)>>>0;return (D=d,a-c>>>0|0)|0}function VL(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=(b|0)<0?-1:0;return b>>c-32|0}function WL(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=0;return b>>>c-32|0}function XL(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return _b(b|0,d|0,e|0)|0;f=b|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function YL(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b>>0]=a[c>>0]|0}b=e}else XL(b,c,d)|0;return b|0}function ZL(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;h=b&3;i=d|d<<8|d<<16|d<<24;g=f&~3;if(h){h=b+4-h|0;while((b|0)<(h|0)){a[b>>0]=d;b=b+1|0}}while((b|0)<(g|0)){c[b>>2]=i;b=b+4|0}}while((b|0)<(f|0)){a[b>>0]=d;b=b+1|0}return b-e|0}function _L(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}D=a<<c-32;return 0}function $L(b){b=b|0;var c=0;c=a[m+(b&255)>>0]|0;if((c|0)<8)return c|0;c=a[m+(b>>8&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[m+(b>>16&255)>>0]|0;if((c|0)<8)return c+16|0;return (a[m+(b>>>24)>>0]|0)+24|0}function aM(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;e=b&65535;c=$(e,f)|0;d=a>>>16;a=(c>>>16)+($(e,d)|0)|0;e=b>>>16;b=$(e,f)|0;return (D=(a>>>16)+($(e,d)|0)+(((a&65535)+b|0)>>>16)|0,a+b<<16|c&65535|0)|0}function bM(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=b>>31|((b|0)<0?-1:0)<<1;i=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;f=d>>31|((d|0)<0?-1:0)<<1;e=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;h=UL(j^a,i^b,j,i)|0;g=D;a=f^j;b=e^i;return UL((gM(h,g,UL(f^c,e^d,f,e)|0,D,0)|0)^a,D^b,a,b)|0}function cM(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+16|0;j=f|0;h=b>>31|((b|0)<0?-1:0)<<1;g=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;l=e>>31|((e|0)<0?-1:0)<<1;k=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;a=UL(h^a,g^b,h,g)|0;b=D;gM(a,b,UL(l^d,k^e,l,k)|0,D,j)|0;e=UL(c[j>>2]^h,c[j+4>>2]^g,h,g)|0;d=D;i=f;return (D=d,e)|0}function dM(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;c=aM(e,f)|0;a=D;return (D=($(b,f)|0)+($(d,e)|0)+a|a&0,c|0|0)|0}function eM(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return gM(a,b,c,d,0)|0}function fM(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;f=g|0;gM(a,b,d,e,f)|0;i=g;return (D=c[f+4>>2]|0,c[f>>2]|0)|0}function gM(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=a;j=b;k=j;h=d;n=e;i=n;if(!k){g=(f|0)!=0;if(!i){if(g){c[f>>2]=(l>>>0)%(h>>>0);c[f+4>>2]=0}n=0;f=(l>>>0)/(h>>>0)>>>0;return (D=n,f)|0}else{if(!g){n=0;f=0;return (D=n,f)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;n=0;f=0;return (D=n,f)|0}}g=(i|0)==0;do if(h){if(!g){g=(ba(i|0)|0)-(ba(k|0)|0)|0;if(g>>>0<=31){m=g+1|0;i=31-g|0;b=g-31>>31;h=m;a=l>>>(m>>>0)&b|k<<i;b=k>>>(m>>>0)&b;g=0;i=l<<i;break}if(!f){n=0;f=0;return (D=n,f)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;n=0;f=0;return (D=n,f)|0}g=h-1|0;if(g&h){i=(ba(h|0)|0)+33-(ba(k|0)|0)|0;p=64-i|0;m=32-i|0;j=m>>31;o=i-32|0;b=o>>31;h=i;a=m-1>>31&k>>>(o>>>0)|(k<<m|l>>>(i>>>0))&b;b=b&k>>>(i>>>0);g=l<<p&j;i=(k<<p|l>>>(o>>>0))&j|l<<m&i-33>>31;break}if(f){c[f>>2]=g&l;c[f+4>>2]=0}if((h|0)==1){o=j|b&0;p=a|0|0;return (D=o,p)|0}else{p=$L(h|0)|0;o=k>>>(p>>>0)|0;p=k<<32-p|l>>>(p>>>0)|0;return (D=o,p)|0}}else{if(g){if(f){c[f>>2]=(k>>>0)%(h>>>0);c[f+4>>2]=0}o=0;p=(k>>>0)/(h>>>0)>>>0;return (D=o,p)|0}if(!l){if(f){c[f>>2]=0;c[f+4>>2]=(k>>>0)%(i>>>0)}o=0;p=(k>>>0)/(i>>>0)>>>0;return (D=o,p)|0}g=i-1|0;if(!(g&i)){if(f){c[f>>2]=a|0;c[f+4>>2]=g&k|b&0}o=0;p=k>>>(($L(i|0)|0)>>>0);return (D=o,p)|0}g=(ba(i|0)|0)-(ba(k|0)|0)|0;if(g>>>0<=30){b=g+1|0;i=31-g|0;h=b;a=k<<i|l>>>(b>>>0);b=k>>>(b>>>0);g=0;i=l<<i;break}if(!f){o=0;p=0;return (D=o,p)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;o=0;p=0;return (D=o,p)|0}while(0);if(!h){k=i;j=0;i=0}else{m=d|0|0;l=n|e&0;k=TL(m|0,l|0,-1,-1)|0;d=D;j=i;i=0;do{e=j;j=g>>>31|j<<1;g=i|g<<1;e=a<<1|e>>>31|0;n=a>>>31|b<<1|0;UL(k,d,e,n)|0;p=D;o=p>>31|((p|0)<0?-1:0)<<1;i=o&1;a=UL(e,n,o&m,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&l)|0;b=D;h=h-1|0}while((h|0)!=0);k=j;j=0}h=0;if(f){c[f>>2]=a;c[f+4>>2]=b}o=(g|0)>>>31|(k|h)<<1|(h<<1|g>>>31)&0|j;p=(g<<1|0>>>31)&-2|i;return (D=o,p)|0}function hM(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Xc[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function iM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(0,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function jM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(1,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function kM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(2,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function lM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(3,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function mM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(4,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function nM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(5,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function oM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(6,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function pM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(7,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function qM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(8,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function rM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(9,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function sM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(10,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function tM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(11,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function uM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(12,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function vM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(13,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function wM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(14,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function xM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(15,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function yM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(16,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function zM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(17,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function AM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(18,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function BM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return fa(19,a|0,b|0,c|0,d|0,e|0,f|0,g|0)|0}function CM(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;return Yc[a&63](b|0,c|0,d|0,e|0,f|0,+g)|0}function DM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(0,a|0,b|0,c|0,d|0,e|0,+f)|0}function EM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(1,a|0,b|0,c|0,d|0,e|0,+f)|0}function FM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(2,a|0,b|0,c|0,d|0,e|0,+f)|0}function GM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(3,a|0,b|0,c|0,d|0,e|0,+f)|0}function HM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(4,a|0,b|0,c|0,d|0,e|0,+f)|0}function IM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(5,a|0,b|0,c|0,d|0,e|0,+f)|0}function JM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(6,a|0,b|0,c|0,d|0,e|0,+f)|0}function KM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(7,a|0,b|0,c|0,d|0,e|0,+f)|0}function LM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(8,a|0,b|0,c|0,d|0,e|0,+f)|0}function MM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(9,a|0,b|0,c|0,d|0,e|0,+f)|0}function NM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(10,a|0,b|0,c|0,d|0,e|0,+f)|0}function OM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(11,a|0,b|0,c|0,d|0,e|0,+f)|0}function PM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(12,a|0,b|0,c|0,d|0,e|0,+f)|0}function QM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(13,a|0,b|0,c|0,d|0,e|0,+f)|0}function RM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(14,a|0,b|0,c|0,d|0,e|0,+f)|0}function SM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(15,a|0,b|0,c|0,d|0,e|0,+f)|0}function TM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(16,a|0,b|0,c|0,d|0,e|0,+f)|0}function UM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(17,a|0,b|0,c|0,d|0,e|0,+f)|0}function VM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(18,a|0,b|0,c|0,d|0,e|0,+f)|0}function WM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return ha(19,a|0,b|0,c|0,d|0,e|0,+f)|0}function XM(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Zc[a&63](b|0,c|0,d|0,e|0,f|0)}function YM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(0,a|0,b|0,c|0,d|0,e|0)}function ZM(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(1,a|0,b|0,c|0,d|0,e|0)}function _M(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(2,a|0,b|0,c|0,d|0,e|0)}function $M(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(3,a|0,b|0,c|0,d|0,e|0)}function aN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(4,a|0,b|0,c|0,d|0,e|0)}function bN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(5,a|0,b|0,c|0,d|0,e|0)}function cN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(6,a|0,b|0,c|0,d|0,e|0)}function dN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(7,a|0,b|0,c|0,d|0,e|0)}function eN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(8,a|0,b|0,c|0,d|0,e|0)}function fN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(9,a|0,b|0,c|0,d|0,e|0)}function gN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(10,a|0,b|0,c|0,d|0,e|0)}function hN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(11,a|0,b|0,c|0,d|0,e|0)}function iN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(12,a|0,b|0,c|0,d|0,e|0)}function jN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(13,a|0,b|0,c|0,d|0,e|0)}function kN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(14,a|0,b|0,c|0,d|0,e|0)}function lN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(15,a|0,b|0,c|0,d|0,e|0)}function mN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(16,a|0,b|0,c|0,d|0,e|0)}function nN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(17,a|0,b|0,c|0,d|0,e|0)}function oN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(18,a|0,b|0,c|0,d|0,e|0)}function pN(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ja(19,a|0,b|0,c|0,d|0,e|0)}function qN(a,b){a=a|0;b=b|0;_c[a&511](b|0)}function rN(a){a=a|0;la(0,a|0)}function sN(a){a=a|0;la(1,a|0)}function tN(a){a=a|0;la(2,a|0)}function uN(a){a=a|0;la(3,a|0)}function vN(a){a=a|0;la(4,a|0)}function wN(a){a=a|0;la(5,a|0)}function xN(a){a=a|0;la(6,a|0)}function yN(a){a=a|0;la(7,a|0)}function zN(a){a=a|0;la(8,a|0)}function AN(a){a=a|0;la(9,a|0)}function BN(a){a=a|0;la(10,a|0)}function CN(a){a=a|0;la(11,a|0)}function DN(a){a=a|0;la(12,a|0)}function EN(a){a=a|0;la(13,a|0)}function FN(a){a=a|0;la(14,a|0)}function GN(a){a=a|0;la(15,a|0)}function HN(a){a=a|0;la(16,a|0)}function IN(a){a=a|0;la(17,a|0)}function JN(a){a=a|0;la(18,a|0)}function KN(a){a=a|0;la(19,a|0)}function LN(a,b,c){a=a|0;b=b|0;c=c|0;$c[a&511](b|0,c|0)}function MN(a,b){a=a|0;b=b|0;na(0,a|0,b|0)}function NN(a,b){a=a|0;b=b|0;na(1,a|0,b|0)}function ON(a,b){a=a|0;b=b|0;na(2,a|0,b|0)}function PN(a,b){a=a|0;b=b|0;na(3,a|0,b|0)}function QN(a,b){a=a|0;b=b|0;na(4,a|0,b|0)}function RN(a,b){a=a|0;b=b|0;na(5,a|0,b|0)}function SN(a,b){a=a|0;b=b|0;na(6,a|0,b|0)}function TN(a,b){a=a|0;b=b|0;na(7,a|0,b|0)}function UN(a,b){a=a|0;b=b|0;na(8,a|0,b|0)}function VN(a,b){a=a|0;b=b|0;na(9,a|0,b|0)}function WN(a,b){a=a|0;b=b|0;na(10,a|0,b|0)}function XN(a,b){a=a|0;b=b|0;na(11,a|0,b|0)}function YN(a,b){a=a|0;b=b|0;na(12,a|0,b|0)}function ZN(a,b){a=a|0;b=b|0;na(13,a|0,b|0)}function _N(a,b){a=a|0;b=b|0;na(14,a|0,b|0)}function $N(a,b){a=a|0;b=b|0;na(15,a|0,b|0)}function aO(a,b){a=a|0;b=b|0;na(16,a|0,b|0)}function bO(a,b){a=a|0;b=b|0;na(17,a|0,b|0)}function cO(a,b){a=a|0;b=b|0;na(18,a|0,b|0)}function dO(a,b){a=a|0;b=b|0;na(19,a|0,b|0)}function eO(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return ad[a&127](b|0,c|0,d|0,e|0,f|0,g|0)|0}function fO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(0,a|0,b|0,c|0,d|0,e|0,f|0)|0}function gO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(1,a|0,b|0,c|0,d|0,e|0,f|0)|0}function hO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(2,a|0,b|0,c|0,d|0,e|0,f|0)|0}function iO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(3,a|0,b|0,c|0,d|0,e|0,f|0)|0}function jO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(4,a|0,b|0,c|0,d|0,e|0,f|0)|0}function kO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(5,a|0,b|0,c|0,d|0,e|0,f|0)|0}function lO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(6,a|0,b|0,c|0,d|0,e|0,f|0)|0}function mO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(7,a|0,b|0,c|0,d|0,e|0,f|0)|0}function nO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(8,a|0,b|0,c|0,d|0,e|0,f|0)|0}function oO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(9,a|0,b|0,c|0,d|0,e|0,f|0)|0}function pO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(10,a|0,b|0,c|0,d|0,e|0,f|0)|0}function qO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(11,a|0,b|0,c|0,d|0,e|0,f|0)|0}function rO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(12,a|0,b|0,c|0,d|0,e|0,f|0)|0}function sO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(13,a|0,b|0,c|0,d|0,e|0,f|0)|0}function tO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(14,a|0,b|0,c|0,d|0,e|0,f|0)|0}function uO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(15,a|0,b|0,c|0,d|0,e|0,f|0)|0}function vO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(16,a|0,b|0,c|0,d|0,e|0,f|0)|0}function wO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(17,a|0,b|0,c|0,d|0,e|0,f|0)|0}function xO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(18,a|0,b|0,c|0,d|0,e|0,f|0)|0}function yO(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return pa(19,a|0,b|0,c|0,d|0,e|0,f|0)|0}function zO(a,b){a=a|0;b=b|0;return bd[a&255](b|0)|0}function AO(a){a=a|0;return ra(0,a|0)|0}function BO(a){a=a|0;return ra(1,a|0)|0}function CO(a){a=a|0;return ra(2,a|0)|0}function DO(a){a=a|0;return ra(3,a|0)|0}function EO(a){a=a|0;return ra(4,a|0)|0}function FO(a){a=a|0;return ra(5,a|0)|0}function GO(a){a=a|0;return ra(6,a|0)|0}function HO(a){a=a|0;return ra(7,a|0)|0}function IO(a){a=a|0;return ra(8,a|0)|0}function JO(a){a=a|0;return ra(9,a|0)|0}function KO(a){a=a|0;return ra(10,a|0)|0}function LO(a){a=a|0;return ra(11,a|0)|0}function MO(a){a=a|0;return ra(12,a|0)|0}function NO(a){a=a|0;return ra(13,a|0)|0}function OO(a){a=a|0;return ra(14,a|0)|0}function PO(a){a=a|0;return ra(15,a|0)|0}function QO(a){a=a|0;return ra(16,a|0)|0}function RO(a){a=a|0;return ra(17,a|0)|0}function SO(a){a=a|0;return ra(18,a|0)|0}function TO(a){a=a|0;return ra(19,a|0)|0}function UO(a,b,c,d,e,f,g,h,i){a=a|0;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;return cd[a&63](+b,+c,+d,+e,+f,+g,+h,+i)|0}function VO(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(0,+a,+b,+c,+d,+e,+f,+g,+h)|0}function WO(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(1,+a,+b,+c,+d,+e,+f,+g,+h)|0}function XO(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(2,+a,+b,+c,+d,+e,+f,+g,+h)|0}function YO(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(3,+a,+b,+c,+d,+e,+f,+g,+h)|0}function ZO(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(4,+a,+b,+c,+d,+e,+f,+g,+h)|0}function _O(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(5,+a,+b,+c,+d,+e,+f,+g,+h)|0}function $O(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(6,+a,+b,+c,+d,+e,+f,+g,+h)|0}function aP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(7,+a,+b,+c,+d,+e,+f,+g,+h)|0}function bP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(8,+a,+b,+c,+d,+e,+f,+g,+h)|0}function cP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(9,+a,+b,+c,+d,+e,+f,+g,+h)|0}function dP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(10,+a,+b,+c,+d,+e,+f,+g,+h)|0}function eP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(11,+a,+b,+c,+d,+e,+f,+g,+h)|0}function fP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(12,+a,+b,+c,+d,+e,+f,+g,+h)|0}function gP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(13,+a,+b,+c,+d,+e,+f,+g,+h)|0}function hP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(14,+a,+b,+c,+d,+e,+f,+g,+h)|0}function iP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(15,+a,+b,+c,+d,+e,+f,+g,+h)|0}function jP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(16,+a,+b,+c,+d,+e,+f,+g,+h)|0}function kP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(17,+a,+b,+c,+d,+e,+f,+g,+h)|0}function lP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(18,+a,+b,+c,+d,+e,+f,+g,+h)|0}function mP(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;return ta(19,+a,+b,+c,+d,+e,+f,+g,+h)|0}function nP(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;return dd[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0)|0}function oP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(0,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function pP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(1,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function qP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(2,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function rP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(3,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function sP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(4,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function tP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(5,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function uP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(6,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function vP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(7,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function wP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(8,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function xP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(9,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function yP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(10,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function zP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(11,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function AP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(12,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function BP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(13,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function CP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(14,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function DP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(15,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function EP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(16,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function FP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(17,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function GP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(18,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function HP(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;return va(19,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)|0}function IP(a,b,c,d){a=a|0;b=b|0;c=+c;d=+d;ed[a&63](b|0,+c,+d)}function JP(a,b,c){a=a|0;b=+b;c=+c;xa(0,a|0,+b,+c)}function KP(a,b,c){a=a|0;b=+b;c=+c;xa(1,a|0,+b,+c)}function LP(a,b,c){a=a|0;b=+b;c=+c;xa(2,a|0,+b,+c)}function MP(a,b,c){a=a|0;b=+b;c=+c;xa(3,a|0,+b,+c)}function NP(a,b,c){a=a|0;b=+b;c=+c;xa(4,a|0,+b,+c)}function OP(a,b,c){a=a|0;b=+b;c=+c;xa(5,a|0,+b,+c)}function PP(a,b,c){a=a|0;b=+b;c=+c;xa(6,a|0,+b,+c)}function QP(a,b,c){a=a|0;b=+b;c=+c;xa(7,a|0,+b,+c)}function RP(a,b,c){a=a|0;b=+b;c=+c;xa(8,a|0,+b,+c)}function SP(a,b,c){a=a|0;b=+b;c=+c;xa(9,a|0,+b,+c)}function TP(a,b,c){a=a|0;b=+b;c=+c;xa(10,a|0,+b,+c)}function UP(a,b,c){a=a|0;b=+b;c=+c;xa(11,a|0,+b,+c)}function VP(a,b,c){a=a|0;b=+b;c=+c;xa(12,a|0,+b,+c)}function WP(a,b,c){a=a|0;b=+b;c=+c;xa(13,a|0,+b,+c)}function XP(a,b,c){a=a|0;b=+b;c=+c;xa(14,a|0,+b,+c)}function YP(a,b,c){a=a|0;b=+b;c=+c;xa(15,a|0,+b,+c)}function ZP(a,b,c){a=a|0;b=+b;c=+c;xa(16,a|0,+b,+c)}function _P(a,b,c){a=a|0;b=+b;c=+c;xa(17,a|0,+b,+c)}function $P(a,b,c){a=a|0;b=+b;c=+c;xa(18,a|0,+b,+c)}function aQ(a,b,c){a=a|0;b=+b;c=+c;xa(19,a|0,+b,+c)}function bQ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return fd[a&127](b|0,c|0,d|0)|0}function cQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(0,a|0,b|0,c|0)|0}function dQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(1,a|0,b|0,c|0)|0}function eQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(2,a|0,b|0,c|0)|0}function fQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(3,a|0,b|0,c|0)|0}function gQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(4,a|0,b|0,c|0)|0}function hQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(5,a|0,b|0,c|0)|0}function iQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(6,a|0,b|0,c|0)|0}function jQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(7,a|0,b|0,c|0)|0}function kQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(8,a|0,b|0,c|0)|0}function lQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(9,a|0,b|0,c|0)|0}function mQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(10,a|0,b|0,c|0)|0}function nQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(11,a|0,b|0,c|0)|0}function oQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(12,a|0,b|0,c|0)|0}function pQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(13,a|0,b|0,c|0)|0}function qQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(14,a|0,b|0,c|0)|0}function rQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(15,a|0,b|0,c|0)|0}function sQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(16,a|0,b|0,c|0)|0}function tQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(17,a|0,b|0,c|0)|0}function uQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(18,a|0,b|0,c|0)|0}function vQ(a,b,c){a=a|0;b=b|0;c=c|0;return za(19,a|0,b|0,c|0)|0}function wQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;gd[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0,p|0)}function xQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(0,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function yQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(1,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function zQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(2,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function AQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(3,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function BQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(4,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function CQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(5,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function DQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(6,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function EQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(7,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function FQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(8,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function GQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(9,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function HQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(10,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function IQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(11,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function JQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(12,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function KQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(13,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function LQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(14,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function MQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(15,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function NQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(16,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function OQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(17,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function PQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(18,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function QQ(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;Ba(19,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0,l|0,m|0,n|0,o|0)}function RQ(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;hd[a&63](b|0,c|0,d|0,e|0,f|0,g|0)}function SQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(0,a|0,b|0,c|0,d|0,e|0,f|0)}function TQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(1,a|0,b|0,c|0,d|0,e|0,f|0)}function UQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(2,a|0,b|0,c|0,d|0,e|0,f|0)}function VQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(3,a|0,b|0,c|0,d|0,e|0,f|0)}function WQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(4,a|0,b|0,c|0,d|0,e|0,f|0)}function XQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(5,a|0,b|0,c|0,d|0,e|0,f|0)}function YQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(6,a|0,b|0,c|0,d|0,e|0,f|0)}function ZQ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(7,a|0,b|0,c|0,d|0,e|0,f|0)}function _Q(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(8,a|0,b|0,c|0,d|0,e|0,f|0)}function $Q(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(9,a|0,b|0,c|0,d|0,e|0,f|0)}function aR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(10,a|0,b|0,c|0,d|0,e|0,f|0)}function bR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(11,a|0,b|0,c|0,d|0,e|0,f|0)}function cR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(12,a|0,b|0,c|0,d|0,e|0,f|0)}function dR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(13,a|0,b|0,c|0,d|0,e|0,f|0)}function eR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(14,a|0,b|0,c|0,d|0,e|0,f|0)}function fR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(15,a|0,b|0,c|0,d|0,e|0,f|0)}function gR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(16,a|0,b|0,c|0,d|0,e|0,f|0)}function hR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(17,a|0,b|0,c|0,d|0,e|0,f|0)}function iR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(18,a|0,b|0,c|0,d|0,e|0,f|0)}function jR(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Da(19,a|0,b|0,c|0,d|0,e|0,f|0)}function kR(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return +id[a&63](b|0,c|0,d|0,e|0)}function lR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(0,a|0,b|0,c|0,d|0)}function mR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(1,a|0,b|0,c|0,d|0)}function nR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(2,a|0,b|0,c|0,d|0)}function oR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(3,a|0,b|0,c|0,d|0)}function pR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(4,a|0,b|0,c|0,d|0)}function qR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(5,a|0,b|0,c|0,d|0)}function rR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(6,a|0,b|0,c|0,d|0)}function sR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(7,a|0,b|0,c|0,d|0)}function tR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(8,a|0,b|0,c|0,d|0)}function uR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(9,a|0,b|0,c|0,d|0)}function vR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(10,a|0,b|0,c|0,d|0)}function wR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(11,a|0,b|0,c|0,d|0)}function xR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(12,a|0,b|0,c|0,d|0)}function yR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(13,a|0,b|0,c|0,d|0)}function zR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(14,a|0,b|0,c|0,d|0)}function AR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(15,a|0,b|0,c|0,d|0)}function BR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(16,a|0,b|0,c|0,d|0)}function CR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(17,a|0,b|0,c|0,d|0)}function DR(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(18,a|0,b|0,c|0,d|0)}function ER(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +Fa(19,a|0,b|0,c|0,d|0)}function FR(a,b,c,d,e,f){a=a|0;b=b|0;c=+c;d=d|0;e=e|0;f=+f;return jd[a&63](b|0,+c,d|0,e|0,+f)|0}function GR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(0,a|0,+b,c|0,d|0,+e)|0}function HR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(1,a|0,+b,c|0,d|0,+e)|0}function IR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(2,a|0,+b,c|0,d|0,+e)|0}function JR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(3,a|0,+b,c|0,d|0,+e)|0}function KR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(4,a|0,+b,c|0,d|0,+e)|0}function LR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(5,a|0,+b,c|0,d|0,+e)|0}function MR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(6,a|0,+b,c|0,d|0,+e)|0}function NR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(7,a|0,+b,c|0,d|0,+e)|0}function OR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(8,a|0,+b,c|0,d|0,+e)|0}function PR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(9,a|0,+b,c|0,d|0,+e)|0}function QR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(10,a|0,+b,c|0,d|0,+e)|0}function RR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(11,a|0,+b,c|0,d|0,+e)|0}function SR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(12,a|0,+b,c|0,d|0,+e)|0}function TR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(13,a|0,+b,c|0,d|0,+e)|0}function UR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(14,a|0,+b,c|0,d|0,+e)|0}function VR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(15,a|0,+b,c|0,d|0,+e)|0}function WR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(16,a|0,+b,c|0,d|0,+e)|0}function XR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(17,a|0,+b,c|0,d|0,+e)|0}function YR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(18,a|0,+b,c|0,d|0,+e)|0}function ZR(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;return Ha(19,a|0,+b,c|0,d|0,+e)|0}function _R(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=+e;kd[a&63](b|0,+c,+d,+e)}function $R(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(0,a|0,+b,+c,+d)}function aS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(1,a|0,+b,+c,+d)}function bS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(2,a|0,+b,+c,+d)}function cS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(3,a|0,+b,+c,+d)}function dS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(4,a|0,+b,+c,+d)}function eS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(5,a|0,+b,+c,+d)}function fS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(6,a|0,+b,+c,+d)}function gS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(7,a|0,+b,+c,+d)}function hS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(8,a|0,+b,+c,+d)}function iS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(9,a|0,+b,+c,+d)}function jS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(10,a|0,+b,+c,+d)}function kS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(11,a|0,+b,+c,+d)}function lS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(12,a|0,+b,+c,+d)}function mS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(13,a|0,+b,+c,+d)}function nS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(14,a|0,+b,+c,+d)}function oS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(15,a|0,+b,+c,+d)}function pS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(16,a|0,+b,+c,+d)}function qS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(17,a|0,+b,+c,+d)}function rS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(18,a|0,+b,+c,+d)}function sS(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;Ja(19,a|0,+b,+c,+d)}function tS(a,b){a=a|0;b=b|0;return +ld[a&63](b|0)}function uS(a){a=a|0;return +La(0,a|0)}function vS(a){a=a|0;return +La(1,a|0)}function wS(a){a=a|0;return +La(2,a|0)}function xS(a){a=a|0;return +La(3,a|0)}function yS(a){a=a|0;return +La(4,a|0)}function zS(a){a=a|0;return +La(5,a|0)}function AS(a){a=a|0;return +La(6,a|0)}function BS(a){a=a|0;return +La(7,a|0)}function CS(a){a=a|0;return +La(8,a|0)}function DS(a){a=a|0;return +La(9,a|0)}function ES(a){a=a|0;return +La(10,a|0)}function FS(a){a=a|0;return +La(11,a|0)}function GS(a){a=a|0;return +La(12,a|0)}function HS(a){a=a|0;return +La(13,a|0)}function IS(a){a=a|0;return +La(14,a|0)}function JS(a){a=a|0;return +La(15,a|0)}function KS(a){a=a|0;return +La(16,a|0)}function LS(a){a=a|0;return +La(17,a|0)}function MS(a){a=a|0;return +La(18,a|0)}function NS(a){a=a|0;return +La(19,a|0)}function OS(a,b,c,d,e,f,g,h,i,j,k,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;return md[a&63](b|0,c|0,d|0,e|0,+f,+g,+h,+i,+j,+k,+l,+m)|0}function PS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(0,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function QS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(1,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function RS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(2,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function SS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(3,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function TS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(4,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function US(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(5,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function VS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(6,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function WS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(7,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function XS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(8,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function YS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(9,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function ZS(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(10,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function _S(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(11,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function $S(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(12,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function aT(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(13,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function bT(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(14,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function cT(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(15,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function dT(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(16,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function eT(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(17,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function fT(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(18,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function gT(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;return Na(19,a|0,b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l)|0}function hT(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;nd[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0)}function iT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(0,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function jT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(1,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function kT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(2,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function lT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(3,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function mT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(4,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function nT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(5,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function oT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(6,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function pT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(7,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function qT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(8,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function rT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(9,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function sT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(10,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function tT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(11,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function uT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(12,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function vT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(13,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function wT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(14,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function xT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(15,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function yT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(16,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function zT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(17,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function AT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(18,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function BT(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Pa(19,a|0,b|0,c|0,d|0,e|0,f|0,g|0)}function CT(a,b,c,d,e){a=a|0;b=b|0;c=+c;d=+d;e=+e;return od[a&63](b|0,+c,+d,+e)|0}function DT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(0,a|0,+b,+c,+d)|0}function ET(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(1,a|0,+b,+c,+d)|0}function FT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(2,a|0,+b,+c,+d)|0}function GT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(3,a|0,+b,+c,+d)|0}function HT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(4,a|0,+b,+c,+d)|0}function IT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(5,a|0,+b,+c,+d)|0}function JT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(6,a|0,+b,+c,+d)|0}function KT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(7,a|0,+b,+c,+d)|0}function LT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(8,a|0,+b,+c,+d)|0}function MT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(9,a|0,+b,+c,+d)|0}function NT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(10,a|0,+b,+c,+d)|0}function OT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(11,a|0,+b,+c,+d)|0}function PT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(12,a|0,+b,+c,+d)|0}function QT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(13,a|0,+b,+c,+d)|0}function RT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(14,a|0,+b,+c,+d)|0}function ST(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(15,a|0,+b,+c,+d)|0}function TT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(16,a|0,+b,+c,+d)|0}function UT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(17,a|0,+b,+c,+d)|0}function VT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(18,a|0,+b,+c,+d)|0}function WT(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return Ra(19,a|0,+b,+c,+d)|0}function XT(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;pd[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function YT(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(0,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function ZT(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(1,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function _T(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(2,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function $T(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(3,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function aU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(4,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function bU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(5,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function cU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(6,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function dU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(7,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function eU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(8,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function fU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(9,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function gU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(10,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function hU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(11,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function iU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(12,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function jU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(13,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function kU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(14,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function lU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(15,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function mU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(16,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function nU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(17,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function oU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(18,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function pU(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;Ta(19,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)}function qU(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;qd[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0,k|0)}function rU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(0,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function sU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(1,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function tU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(2,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function uU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(3,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function vU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(4,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function wU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(5,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function xU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(6,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function yU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(7,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function zU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(8,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function AU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(9,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function BU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(10,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function CU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(11,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function DU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(12,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function EU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(13,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function FU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(14,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function GU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(15,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function HU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(16,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function IU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(17,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function JU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(18,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function KU(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;Va(19,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)}function LU(a,b,c){a=a|0;b=b|0;c=c|0;return rd[a&127](b|0,c|0)|0}function MU(a,b){a=a|0;b=b|0;return Xa(0,a|0,b|0)|0}function NU(a,b){a=a|0;b=b|0;return Xa(1,a|0,b|0)|0}function OU(a,b){a=a|0;b=b|0;return Xa(2,a|0,b|0)|0}function PU(a,b){a=a|0;b=b|0;return Xa(3,a|0,b|0)|0}function QU(a,b){a=a|0;b=b|0;return Xa(4,a|0,b|0)|0}function RU(a,b){a=a|0;b=b|0;return Xa(5,a|0,b|0)|0}function SU(a,b){a=a|0;b=b|0;return Xa(6,a|0,b|0)|0}function TU(a,b){a=a|0;b=b|0;return Xa(7,a|0,b|0)|0}function UU(a,b){a=a|0;b=b|0;return Xa(8,a|0,b|0)|0}function VU(a,b){a=a|0;b=b|0;return Xa(9,a|0,b|0)|0}function WU(a,b){a=a|0;b=b|0;return Xa(10,a|0,b|0)|0}function XU(a,b){a=a|0;b=b|0;return Xa(11,a|0,b|0)|0}function YU(a,b){a=a|0;b=b|0;return Xa(12,a|0,b|0)|0}function ZU(a,b){a=a|0;b=b|0;return Xa(13,a|0,b|0)|0}function _U(a,b){a=a|0;b=b|0;return Xa(14,a|0,b|0)|0}function $U(a,b){a=a|0;b=b|0;return Xa(15,a|0,b|0)|0}function aV(a,b){a=a|0;b=b|0;return Xa(16,a|0,b|0)|0}function bV(a,b){a=a|0;b=b|0;return Xa(17,a|0,b|0)|0}function cV(a,b){a=a|0;b=b|0;return Xa(18,a|0,b|0)|0}function dV(a,b){a=a|0;b=b|0;return Xa(19,a|0,b|0)|0}function eV(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return sd[a&127](b|0,c|0,d|0,e|0,f|0)|0}function fV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(0,a|0,b|0,c|0,d|0,e|0)|0}function gV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(1,a|0,b|0,c|0,d|0,e|0)|0}function hV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(2,a|0,b|0,c|0,d|0,e|0)|0}function iV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(3,a|0,b|0,c|0,d|0,e|0)|0}function jV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(4,a|0,b|0,c|0,d|0,e|0)|0}function kV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(5,a|0,b|0,c|0,d|0,e|0)|0}function lV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(6,a|0,b|0,c|0,d|0,e|0)|0}function mV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(7,a|0,b|0,c|0,d|0,e|0)|0}function nV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(8,a|0,b|0,c|0,d|0,e|0)|0}function oV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(9,a|0,b|0,c|0,d|0,e|0)|0}function pV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(10,a|0,b|0,c|0,d|0,e|0)|0}function qV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(11,a|0,b|0,c|0,d|0,e|0)|0}function rV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(12,a|0,b|0,c|0,d|0,e|0)|0}function sV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(13,a|0,b|0,c|0,d|0,e|0)|0}function tV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(14,a|0,b|0,c|0,d|0,e|0)|0}function uV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(15,a|0,b|0,c|0,d|0,e|0)|0}function vV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(16,a|0,b|0,c|0,d|0,e|0)|0}function wV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(17,a|0,b|0,c|0,d|0,e|0)|0}function xV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(18,a|0,b|0,c|0,d|0,e|0)|0}function yV(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Za(19,a|0,b|0,c|0,d|0,e|0)|0}function zV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return +td[a&63](b|0,c|0,d|0)}function AV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(0,a|0,b|0,c|0)}function BV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(1,a|0,b|0,c|0)}function CV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(2,a|0,b|0,c|0)}function DV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(3,a|0,b|0,c|0)}function EV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(4,a|0,b|0,c|0)}function FV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(5,a|0,b|0,c|0)}function GV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(6,a|0,b|0,c|0)}function HV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(7,a|0,b|0,c|0)}function IV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(8,a|0,b|0,c|0)}function JV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(9,a|0,b|0,c|0)}function KV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(10,a|0,b|0,c|0)}function LV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(11,a|0,b|0,c|0)}function MV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(12,a|0,b|0,c|0)}function NV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(13,a|0,b|0,c|0)}function OV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(14,a|0,b|0,c|0)}function PV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(15,a|0,b|0,c|0)}function QV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(16,a|0,b|0,c|0)}function RV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(17,a|0,b|0,c|0)}function SV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(18,a|0,b|0,c|0)}function TV(a,b,c){a=a|0;b=b|0;c=c|0;return +$a(19,a|0,b|0,c|0)}function UV(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;t=+t;return ud[a&63](b|0,c|0,d|0,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s,+t)|0}function VV(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(0,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function WV(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(1,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function XV(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(2,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function YV(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(3,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function ZV(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(4,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function _V(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(5,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function $V(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(6,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function aW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(7,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function bW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(8,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function cW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(9,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function dW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(10,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function eW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(11,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function fW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(12,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function gW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(13,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function hW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(14,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function iW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(15,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function jW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(16,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function kW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(17,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function lW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(18,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function mW(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;return bb(19,a|0,b|0,c|0,+d,+e,+f,+g,+h,+i,+j,+k,+l,+m,+n,+o,+p,+q,+r,+s)|0}function nW(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=+h;i=i|0;vd[a&63](b|0,c|0,d|0,e|0,f|0,g|0,+h,i|0)}function oW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(0,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function pW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(1,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function qW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(2,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function rW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(3,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function sW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(4,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function tW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(5,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function uW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(6,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function vW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(7,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function wW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(8,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function xW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(9,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function yW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(10,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function zW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(11,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function AW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(12,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function BW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(13,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function CW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(14,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function DW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(15,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function EW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(16,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function FW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(17,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function GW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(18,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function HW(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;db(19,a|0,b|0,c|0,d|0,e|0,f|0,+g,h|0)}function IW(a,b,c){a=a|0;b=b|0;c=c|0;return +wd[a&63](b|0,c|0)}function JW(a,b){a=a|0;b=b|0;return +fb(0,a|0,b|0)}function KW(a,b){a=a|0;b=b|0;return +fb(1,a|0,b|0)}function LW(a,b){a=a|0;b=b|0;return +fb(2,a|0,b|0)}function MW(a,b){a=a|0;b=b|0;return +fb(3,a|0,b|0)}function NW(a,b){a=a|0;b=b|0;return +fb(4,a|0,b|0)}function OW(a,b){a=a|0;b=b|0;return +fb(5,a|0,b|0)}function PW(a,b){a=a|0;b=b|0;return +fb(6,a|0,b|0)}function QW(a,b){a=a|0;b=b|0;return +fb(7,a|0,b|0)}function RW(a,b){a=a|0;b=b|0;return +fb(8,a|0,b|0)}function SW(a,b){a=a|0;b=b|0;return +fb(9,a|0,b|0)}function TW(a,b){a=a|0;b=b|0;return +fb(10,a|0,b|0)}function UW(a,b){a=a|0;b=b|0;return +fb(11,a|0,b|0)}function VW(a,b){a=a|0;b=b|0;return +fb(12,a|0,b|0)}function WW(a,b){a=a|0;b=b|0;return +fb(13,a|0,b|0)}function XW(a,b){a=a|0;b=b|0;return +fb(14,a|0,b|0)}function YW(a,b){a=a|0;b=b|0;return +fb(15,a|0,b|0)}function ZW(a,b){a=a|0;b=b|0;return +fb(16,a|0,b|0)}function _W(a,b){a=a|0;b=b|0;return +fb(17,a|0,b|0)}function $W(a,b){a=a|0;b=b|0;return +fb(18,a|0,b|0)}function aX(a,b){a=a|0;b=b|0;return +fb(19,a|0,b|0)}function bX(a){a=a|0;return xd[a&63]()|0}function cX(){return hb(0)|0}function dX(){return hb(1)|0}function eX(){return hb(2)|0}function fX(){return hb(3)|0}function gX(){return hb(4)|0}function hX(){return hb(5)|0}function iX(){return hb(6)|0}function jX(){return hb(7)|0}function kX(){return hb(8)|0}function lX(){return hb(9)|0}function mX(){return hb(10)|0}function nX(){return hb(11)|0}function oX(){return hb(12)|0}function pX(){return hb(13)|0}function qX(){return hb(14)|0}function rX(){return hb(15)|0}function sX(){return hb(16)|0}function tX(){return hb(17)|0}function uX(){return hb(18)|0}function vX(){return hb(19)|0}function wX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return yd[a&63](b|0,c|0,d|0,+e)|0}function xX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(0,a|0,b|0,c|0,+d)|0}function yX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(1,a|0,b|0,c|0,+d)|0}function zX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(2,a|0,b|0,c|0,+d)|0}function AX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(3,a|0,b|0,c|0,+d)|0}function BX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(4,a|0,b|0,c|0,+d)|0}function CX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(5,a|0,b|0,c|0,+d)|0}function DX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(6,a|0,b|0,c|0,+d)|0}function EX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(7,a|0,b|0,c|0,+d)|0}function FX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(8,a|0,b|0,c|0,+d)|0}function GX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(9,a|0,b|0,c|0,+d)|0}function HX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(10,a|0,b|0,c|0,+d)|0}function IX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(11,a|0,b|0,c|0,+d)|0}function JX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(12,a|0,b|0,c|0,+d)|0}function KX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(13,a|0,b|0,c|0,+d)|0}function LX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(14,a|0,b|0,c|0,+d)|0}function MX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(15,a|0,b|0,c|0,+d)|0}function NX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(16,a|0,b|0,c|0,+d)|0}function OX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(17,a|0,b|0,c|0,+d)|0}function PX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(18,a|0,b|0,c|0,+d)|0}function QX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return jb(19,a|0,b|0,c|0,+d)|0}function RX(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return zd[a&127](b|0,c|0,d|0,e|0)|0}function SX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(0,a|0,b|0,c|0,d|0)|0}function TX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(1,a|0,b|0,c|0,d|0)|0}function UX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(2,a|0,b|0,c|0,d|0)|0}function VX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(3,a|0,b|0,c|0,d|0)|0}function WX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(4,a|0,b|0,c|0,d|0)|0}function XX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(5,a|0,b|0,c|0,d|0)|0}function YX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(6,a|0,b|0,c|0,d|0)|0}function ZX(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(7,a|0,b|0,c|0,d|0)|0}function _X(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(8,a|0,b|0,c|0,d|0)|0}function $X(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(9,a|0,b|0,c|0,d|0)|0}function aY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(10,a|0,b|0,c|0,d|0)|0}function bY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(11,a|0,b|0,c|0,d|0)|0}function cY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(12,a|0,b|0,c|0,d|0)|0}function dY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(13,a|0,b|0,c|0,d|0)|0}function eY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(14,a|0,b|0,c|0,d|0)|0}function fY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(15,a|0,b|0,c|0,d|0)|0}function gY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(16,a|0,b|0,c|0,d|0)|0}function hY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(17,a|0,b|0,c|0,d|0)|0}function iY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(18,a|0,b|0,c|0,d|0)|0}function jY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return lb(19,a|0,b|0,c|0,d|0)|0}function kY(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ad[a&127](b|0,c|0,d|0)}function lY(a,b,c){a=a|0;b=b|0;c=c|0;nb(0,a|0,b|0,c|0)}function mY(a,b,c){a=a|0;b=b|0;c=c|0;nb(1,a|0,b|0,c|0)}function nY(a,b,c){a=a|0;b=b|0;c=c|0;nb(2,a|0,b|0,c|0)}function oY(a,b,c){a=a|0;b=b|0;c=c|0;nb(3,a|0,b|0,c|0)}function pY(a,b,c){a=a|0;b=b|0;c=c|0;nb(4,a|0,b|0,c|0)}function qY(a,b,c){a=a|0;b=b|0;c=c|0;nb(5,a|0,b|0,c|0)}function rY(a,b,c){a=a|0;b=b|0;c=c|0;nb(6,a|0,b|0,c|0)}function sY(a,b,c){a=a|0;b=b|0;c=c|0;nb(7,a|0,b|0,c|0)}function tY(a,b,c){a=a|0;b=b|0;c=c|0;nb(8,a|0,b|0,c|0)}function uY(a,b,c){a=a|0;b=b|0;c=c|0;nb(9,a|0,b|0,c|0)}function vY(a,b,c){a=a|0;b=b|0;c=c|0;nb(10,a|0,b|0,c|0)}function wY(a,b,c){a=a|0;b=b|0;c=c|0;nb(11,a|0,b|0,c|0)}function xY(a,b,c){a=a|0;b=b|0;c=c|0;nb(12,a|0,b|0,c|0)}function yY(a,b,c){a=a|0;b=b|0;c=c|0;nb(13,a|0,b|0,c|0)}function zY(a,b,c){a=a|0;b=b|0;c=c|0;nb(14,a|0,b|0,c|0)}function AY(a,b,c){a=a|0;b=b|0;c=c|0;nb(15,a|0,b|0,c|0)}function BY(a,b,c){a=a|0;b=b|0;c=c|0;nb(16,a|0,b|0,c|0)}function CY(a,b,c){a=a|0;b=b|0;c=c|0;nb(17,a|0,b|0,c|0)}function DY(a,b,c){a=a|0;b=b|0;c=c|0;nb(18,a|0,b|0,c|0)}function EY(a,b,c){a=a|0;b=b|0;c=c|0;nb(19,a|0,b|0,c|0)}function FY(a){a=a|0;Bd[a&63]()}function GY(){pb(0)}function HY(){pb(1)}function IY(){pb(2)}function JY(){pb(3)}function KY(){pb(4)}function LY(){pb(5)}function MY(){pb(6)}function NY(){pb(7)}function OY(){pb(8)}function PY(){pb(9)}function QY(){pb(10)}function RY(){pb(11)}function SY(){pb(12)}function TY(){pb(13)}function UY(){pb(14)}function VY(){pb(15)}function WY(){pb(16)}function XY(){pb(17)}function YY(){pb(18)}function ZY(){pb(19)}function _Y(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return Cd[a&63](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function $Y(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(0,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function aZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(1,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function bZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(2,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function cZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(3,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function dZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(4,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function eZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(5,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function fZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(6,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function gZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(7,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function hZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(8,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function iZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(9,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function jZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(10,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function kZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(11,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function lZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(12,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function mZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(13,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function nZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(14,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function oZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(15,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function pZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(16,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function qZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(17,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function rZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(18,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function sZ(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return rb(19,a|0,b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function tZ(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;return Dd[a&63](b|0,c|0,d|0,e|0,+f)|0}function uZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(0,a|0,b|0,c|0,d|0,+e)|0}function vZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(1,a|0,b|0,c|0,d|0,+e)|0}function wZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(2,a|0,b|0,c|0,d|0,+e)|0}function xZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(3,a|0,b|0,c|0,d|0,+e)|0}function yZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(4,a|0,b|0,c|0,d|0,+e)|0}function zZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(5,a|0,b|0,c|0,d|0,+e)|0}function AZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(6,a|0,b|0,c|0,d|0,+e)|0}function BZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(7,a|0,b|0,c|0,d|0,+e)|0}function CZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(8,a|0,b|0,c|0,d|0,+e)|0}function DZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(9,a|0,b|0,c|0,d|0,+e)|0}function EZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(10,a|0,b|0,c|0,d|0,+e)|0}function FZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(11,a|0,b|0,c|0,d|0,+e)|0}function GZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(12,a|0,b|0,c|0,d|0,+e)|0}function HZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(13,a|0,b|0,c|0,d|0,+e)|0}function IZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(14,a|0,b|0,c|0,d|0,+e)|0}function JZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(15,a|0,b|0,c|0,d|0,+e)|0}function KZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(16,a|0,b|0,c|0,d|0,+e)|0}function LZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(17,a|0,b|0,c|0,d|0,+e)|0}function MZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(18,a|0,b|0,c|0,d|0,+e)|0}function NZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return tb(19,a|0,b|0,c|0,d|0,+e)|0}function OZ(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ed[a&127](b|0,c|0,d|0,e|0)}function PZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(0,a|0,b|0,c|0,d|0)}function QZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(1,a|0,b|0,c|0,d|0)}function RZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(2,a|0,b|0,c|0,d|0)}function SZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(3,a|0,b|0,c|0,d|0)}function TZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(4,a|0,b|0,c|0,d|0)}function UZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(5,a|0,b|0,c|0,d|0)}function VZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(6,a|0,b|0,c|0,d|0)}function WZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(7,a|0,b|0,c|0,d|0)}function XZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(8,a|0,b|0,c|0,d|0)}function YZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(9,a|0,b|0,c|0,d|0)}function ZZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(10,a|0,b|0,c|0,d|0)}function _Z(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(11,a|0,b|0,c|0,d|0)}function $Z(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(12,a|0,b|0,c|0,d|0)}function a_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(13,a|0,b|0,c|0,d|0)}function b_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(14,a|0,b|0,c|0,d|0)}function c_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(15,a|0,b|0,c|0,d|0)}function d_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(16,a|0,b|0,c|0,d|0)}function e_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(17,a|0,b|0,c|0,d|0)}function f_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(18,a|0,b|0,c|0,d|0)}function g_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb(19,a|0,b|0,c|0,d|0)}function h_(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;ca(0);return 0}function i_(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;ca(1);return 0}function j_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(2)}function k_(a){a=a|0;ca(3)}function l_(a,b){a=a|0;b=b|0;ca(4)}function m_(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(5);return 0}function n_(a){a=a|0;ca(6);return 0}function o_(a){a=a|0;return pc(a|0)|0}function p_(a){a=a|0;return Pc(a|0)|0}function q_(a){a=a|0;return Ic(a|0)|0}function r_(a,b,c,d,e,f,g,h){a=+a;b=+b;c=+c;d=+d;e=+e;f=+f;g=+g;h=+h;ca(7);return 0}function s_(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;ca(8);return 0}function t_(a,b,c){a=a|0;b=+b;c=+c;ca(9)}function u_(a,b,c){a=a|0;b=b|0;c=c|0;ca(10);return 0}function v_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;ca(11)}function w_(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ca(12)}function x_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(13);return 0.0}function y_(a,b,c,d,e){a=a|0;b=+b;c=c|0;d=d|0;e=+e;ca(14);return 0}function z_(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;ca(15)}function A_(a){a=a|0;ca(16);return 0.0}function B_(a,b,c,d,e,f,g,h,i,j,k,l){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;ca(17);return 0}function C_(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;ca(18)}function D_(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;ca(19);return 0}function E_(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;ca(20)}function F_(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;ca(21)}function G_(a,b){a=a|0;b=b|0;ca(22);return 0}function H_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ca(23);return 0}function I_(a,b,c){a=a|0;b=b|0;c=c|0;ca(24);return 0.0}function J_(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){a=a|0;b=b|0;c=c|0;d=+d;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;l=+l;m=+m;n=+n;o=+o;p=+p;q=+q;r=+r;s=+s;ca(25);return 0}function K_(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=+g;h=h|0;ca(26)}function L_(a,b){a=a|0;b=b|0;ca(27);return 0.0}function M_(){ca(28);return 0}function N_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;ca(29);return 0}function O_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(30);return 0}function P_(a,b,c){a=a|0;b=b|0;c=c|0;ca(31)}function Q_(a,b,c){a=a|0;b=b|0;c=c|0;Hc(a|0,b|0,c|0)}function R_(){ca(32)}function S_(){Uc()}function T_(){$b()}function U_(){Jc()}function V_(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;ca(33);return 0}function W_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;ca(34);return 0}function X_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ca(35)}
function Fd(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;return b|0}function Gd(){return i|0}function Hd(a){a=a|0;i=a}function Id(a,b){a=a|0;b=b|0;i=a;j=b}function Jd(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Kd(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0]}function Ld(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0];a[k+4>>0]=a[b+4>>0];a[k+5>>0]=a[b+5>>0];a[k+6>>0]=a[b+6>>0];a[k+7>>0]=a[b+7>>0]}function Md(a){a=a|0;D=a}function Nd(){return D|0}function Od(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;uj(a,d,e);c[a>>2]=4008;Pd(a+16|0,b);return}function Pd(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4084;c[a+8>>2]=0;Ae(a,c[b+8>>2]|0);return}function Qd(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;l=i;i=i+16|0;h=l;k=c[(c[d+24>>2]|0)+8>>2]|0;j=d+8|0;d=c[j>>2]|0;e=$(d,e)|0;g=f+8|0;if(!(c[g>>2]|0)){Rd(h,d);Ae(f,c[h+8>>2]|0);Sd(h)}if((c[j>>2]|0)>0){d=0;do{a[(c[(c[g>>2]|0)+8>>2]|0)+d>>0]=a[k+(d+e)>>0]|0;d=d+1|0}while((d|0)<(c[j>>2]|0))}Pd(b,f);i=l;return}function Rd(a,b){a=a|0;b=b|0;var d=0,e=0;c[a+4>>2]=0;c[a>>2]=4084;c[a+8>>2]=0;o=0;d=qa(111,20)|0;e=o;o=0;do if(!(e&1)){o=0;ma(77,d|0,b|0);e=o;o=0;if(e&1){e=cc()|0;Uz(d);d=e;break}else{Ae(a,d);return}}else d=cc()|0;while(0);bc(d|0)}function Sd(a){a=a|0;var b=0;c[a>>2]=4084;a=a+8|0;b=c[a>>2]|0;if(b)ye(b);c[a>>2]=0;return}function Td(a,b){a=a|0;b=b|0;Pd(a,b+16|0);return}function Ud(a,b){a=a|0;b=b|0;c[a>>2]=0;Ie(a,c[b>>2]|0);return}function Vd(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Wd(a,b){a=a|0;b=b|0;c[a>>2]=0;Je(a,c[b>>2]|0);return}function Xd(a,b,d){a=a|0;b=b|0;d=d|0;d=($(c[a+16>>2]|0,d)|0)+(b>>5)|0;d=(c[(c[a+28>>2]|0)+8>>2]|0)+(d<<2)|0;c[d>>2]=c[d>>2]|1<<(b&31);return}function Yd(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Zd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;k=g+16|0;f=g+12|0;h=g+8|0;j=g;e=Sz(12)|0;o=0;ka(299,e|0);l=o;o=0;if(l&1){l=cc()|0;Uz(e);e=l}else{c[k>>2]=0;Me(k,e);e=c[k>>2]|0;l=c[(c[e>>2]|0)+12>>2]|0;_d(h,b);$d(j,d);o=0;e=ya(l|0,e|0,h|0,j|0)|0;l=o;o=0;do if(!(l&1)){c[f>>2]=e;o=0;mb(47,a|0,1,f|0);l=o;o=0;if(l&1){e=cc()|0;be(f);break}else{be(f);ze(j+4|0);ce(h);de(k);i=g;return}}else e=cc()|0;while(0);ze(j+4|0);ce(h);de(k)}bc(e|0)}function _d(a,b){a=a|0;b=b|0;c[a>>2]=0;Ne(a,c[b>>2]|0);return}function $d(a,b){a=a|0;b=b|0;c[a>>2]=c[b>>2];we(a+4|0,b+4|0);c[a>>2]=c[b>>2];return}function ae(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;e=a+4|0;c[e>>2]=0;c[a+8>>2]=0;if(b){o=0;ma(78,a|0,b|0);f=o;o=0;if(f&1){f=cc()|0;me(a);bc(f|0)}a=c[e>>2]|0;do{Pe(a,d);a=(c[e>>2]|0)+4|0;c[e>>2]=a;b=b+-1|0}while((b|0)!=0)}return}function be(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function ce(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function de(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function ee(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;j=i;i=i+16|0;h=j+12|0;e=j+8|0;f=j;g=Sz(20)|0;o=0;ka(300,g|0);k=o;o=0;do if(!(k&1)){c[h>>2]=0;Re(h,g+12|0);k=c[h>>2]|0;g=c[(c[k>>2]|0)+12>>2]|0;_d(e,b);$d(f,d);o=0;ub(g|0,a|0,k|0,e|0,f|0);k=o;o=0;if(k&1){k=cc()|0;ze(f+4|0);ce(e);fe(h);e=k;break}else{ze(f+4|0);ce(e);fe(h);i=j;return}}else{e=cc()|0;Uz(g)}while(0);bc(e|0)}function fe(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function ge(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;k=g+16|0;f=g+12|0;h=g+8|0;j=g;e=Sz(28)|0;o=0;ka(301,e|0);l=o;o=0;if(l&1){l=cc()|0;Uz(e);e=l}else{c[k>>2]=0;Me(k,e);e=c[k>>2]|0;l=c[(c[e>>2]|0)+12>>2]|0;_d(h,b);$d(j,d);o=0;e=ya(l|0,e|0,h|0,j|0)|0;l=o;o=0;do if(!(l&1)){c[f>>2]=e;o=0;mb(47,a|0,1,f|0);l=o;o=0;if(l&1){e=cc()|0;be(f);break}else{be(f);ze(j+4|0);ce(h);de(k);i=g;return}}else e=cc()|0;while(0);ze(j+4|0);ce(h);de(k)}bc(e|0)}function he(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;g=i;i=i+64|0;h=g+24|0;f=g+12|0;d=g+8|0;e=g;_j(h);o=0;ma(79,f|0,h|0);j=o;o=0;do if(!(j&1)){_d(d,b);$d(e,c);o=0;ub(44,a|0,f|0,d|0,e|0);j=o;o=0;if(j&1){j=cc()|0;ze(e+4|0);ce(d);Dj(f);d=j;break}else{ze(e+4|0);ce(d);Dj(f);dk(h);i=g;return}}else d=cc()|0;while(0);dk(h);bc(d|0)}function ie(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4084;c[a+8>>2]=0;Ae(a,b);return}function je(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+32|0;f=g+16|0;d=g+12|0;e=g;Rd(f,$(b,a)|0);Ae(4056,c[f+8>>2]|0);Sd(f);c[1018]=c[(c[1016]|0)+8>>2];f=Sz(28)|0;Pd(e,4056);o=0;ub(56,f|0,e|0,a|0,b|0);a=o;o=0;if(a&1){g=cc()|0;Sd(e);Uz(f);bc(g|0)}else{c[d>>2]=0;Ie(d,f);Ie(4068,c[d>>2]|0);Vd(d);Sd(e);i=g;return c[1018]|0}return 0}function ke(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0.0,j=0,k=0,l=0,m=0,n=0.0,p=0.0,q=0.0,r=0,s=0.0,t=0.0,u=0.0,v=0.0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;J=i;i=i+176|0;M=J+152|0;K=J+148|0;L=J+144|0;F=J+136|0;e=J+132|0;g=J+128|0;w=J+116|0;x=J+112|0;y=J+104|0;z=J+92|0;A=J+88|0;B=J+80|0;C=J+68|0;E=J+64|0;j=J+56|0;k=J+44|0;l=J+40|0;m=J+32|0;I=J+16|0;G=J+12|0;H=J;c[M>>2]=0;r=M+4|0;c[r>>2]=0;c[M+8>>2]=0;c[K>>2]=0;Le(K,0);c[L>>2]=0;Ne(L,0);$d(F,4500);o=0;f=qa(111,44)|0;N=o;o=0;a:do if(!(N&1)){Ud(e,4068);o=0;ma(80,f|0,e|0);N=o;o=0;if(N&1){N=cc(24,240,8,1792)|0;g=D;Vd(e);Uz(f);e=N;f=g;g=21;break}Le(K,f);Vd(e);o=0;e=qa(111,12)|0;N=o;o=0;if(!(N&1)){c[g>>2]=0;Le(g,c[K>>2]|0);o=0;ma(81,e|0,g|0);N=o;o=0;if(N&1){N=cc(24,240,8,1792)|0;f=D;le(g);Uz(e);e=N;g=21;break}Ne(L,e);le(g);b:do switch(b|0){case 0:{c[x>>2]=0;Ne(x,c[L>>2]|0);$d(y,F);o=0;mb(48,w|0,x|0,y|0);N=o;o=0;if(N&1){e=cc(24,240,8,1792)|0;f=D;ze(y+4|0);ce(x);g=21;break a}else{Se(M);e=c[w>>2]|0;c[M>>2]=e;N=w+4|0;f=c[N>>2]|0;c[r>>2]=f;b=w+8|0;c[M+8>>2]=c[b>>2];c[b>>2]=0;c[N>>2]=0;c[w>>2]=0;me(w);ze(y+4|0);ce(x);break b}}case 1:{c[A>>2]=0;Ne(A,c[L>>2]|0);$d(B,F);o=0;mb(49,z|0,A|0,B|0);N=o;o=0;if(N&1){e=cc(24,240,8,1792)|0;f=D;ze(B+4|0);ce(A);g=21;break a}else{Se(M);e=c[z>>2]|0;c[M>>2]=e;N=z+4|0;f=c[N>>2]|0;c[r>>2]=f;b=z+8|0;c[M+8>>2]=c[b>>2];c[b>>2]=0;c[N>>2]=0;c[z>>2]=0;me(z);ze(B+4|0);ce(A);break b}}case 2:{c[E>>2]=0;Ne(E,c[L>>2]|0);$d(j,F);o=0;mb(50,C|0,E|0,j|0);N=o;o=0;if(N&1){e=cc(24,240,8,1792)|0;f=D;ze(j+4|0);ce(E);g=21;break a}else{Se(M);e=c[C>>2]|0;c[M>>2]=e;N=C+4|0;f=c[N>>2]|0;c[r>>2]=f;b=C+8|0;c[M+8>>2]=c[b>>2];c[b>>2]=0;c[N>>2]=0;c[C>>2]=0;me(C);ze(j+4|0);ce(E);break b}}default:{c[l>>2]=0;Ne(l,c[L>>2]|0);$d(m,F);o=0;mb(51,k|0,l|0,m|0);N=o;o=0;if(N&1){e=cc(24,240,8,1792)|0;f=D;ze(m+4|0);ce(l);g=21;break a}else{Se(M);e=c[k>>2]|0;c[M>>2]=e;N=k+4|0;f=c[N>>2]|0;c[r>>2]=f;b=k+8|0;c[M+8>>2]=c[b>>2];c[b>>2]=0;c[N>>2]=0;c[k>>2]=0;me(k);ze(m+4|0);ce(l);break b}}}while(0);y=e;ze(F+4|0);m=f-e>>2;r=I+8|0;w=I+1|0;x=I+4|0;k=f-e>>2;j=H+8|0;if(!m){e=0;g=51}else{l=0;while(1){f=y+(l<<2)|0;o=0;e=qa(112,c[f>>2]|0)|0;N=o;o=0;if(N&1){g=44;break}c[G>>2]=e;o=0;e=qa(113,e|0)|0;N=o;o=0;if(N&1){g=47;break}o=0;ma(82,I|0,e|0);N=o;o=0;if(N&1){g=47;break}ne(G);o=0;e=qa(114,c[f>>2]|0)|0;N=o;o=0;if(N&1){g=48;break}oe(H,e);g=a[I>>0]|0;e=(g&1)==0;f=e?w:c[r>>2]|0;g=e?(g&255)>>>1:c[x>>2]|0;e=(c[j>>2]|0)+8|0;N=c[c[e>>2]>>2]|0;o=0;n=+Ka(c[(c[N>>2]|0)+8>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}N=c[c[e>>2]>>2]|0;o=0;p=+Ka(c[(c[N>>2]|0)+12>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}N=c[(c[e>>2]|0)+4>>2]|0;o=0;q=+Ka(c[(c[N>>2]|0)+8>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}N=c[(c[e>>2]|0)+4>>2]|0;o=0;s=+Ka(c[(c[N>>2]|0)+12>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}N=c[(c[e>>2]|0)+8>>2]|0;o=0;t=+Ka(c[(c[N>>2]|0)+8>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}N=c[(c[e>>2]|0)+8>>2]|0;o=0;u=+Ka(c[(c[N>>2]|0)+12>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}N=c[(c[e>>2]|0)+12>>2]|0;o=0;v=+Ka(c[(c[N>>2]|0)+8>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}N=c[(c[e>>2]|0)+12>>2]|0;o=0;h=+Ka(c[(c[N>>2]|0)+12>>2]|0,N|0);N=o;o=0;if(N&1){g=49;break}o=0;Ma(d|0,f|0,g|0,l|0,k|0,+n,+p,+q,+s,+t,+u,+v,+h)|0;N=o;o=0;if(N&1){g=49;break}pe(H);IC(I);l=l+1|0;if(l>>>0>=m>>>0){e=0;g=51;break a}}if((g|0)==44){e=cc()|0;g=46;break}else if((g|0)==47){e=cc()|0;ne(G);break}else if((g|0)==48)e=cc()|0;else if((g|0)==49){e=cc()|0;pe(H)}IC(I)}}else g=8}else g=8;while(0);if((g|0)==8){e=cc(24,240,8,1792)|0;f=D;g=21}c:do if((g|0)==21){ze(F+4|0);do if((f|0)==(Xb(24)|0)){fc(e|0)|0;o=0;ob(44);N=o;o=0;if(!(N&1)){e=-2;g=51;break c}}else{if((f|0)==(Xb(240)|0)){fc(e|0)|0;o=0;ob(44);N=o;o=0;if(N&1)break;else{e=-3;g=51;break c}}if((f|0)==(Xb(8)|0)){fc(e|0)|0;o=0;ob(44);N=o;o=0;if(N&1)break;else{e=-4;g=51;break c}}if((f|0)!=(Xb(1792)|0))break c;fc(e|0)|0;o=0;ob(44);N=o;o=0;if(!(N&1)){e=-5;g=51;break c}}while(0);e=cc()|0;g=46}while(0);if((g|0)!=46)if((g|0)==51){ce(L);le(K);me(M);i=J;return e|0}ce(L);le(K);me(M);bc(e|0);return 0}function le(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function me(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;be(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function ne(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function oe(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4116;c[a+8>>2]=0;Te(a,c[b+8>>2]|0);return}function pe(a){a=a|0;var b=0;c[a>>2]=4116;a=a+8|0;b=c[a>>2]|0;if(b)ye(b);c[a>>2]=0;return}function qe(a){a=a|0;return ke(0,a)|0}function re(a){a=a|0;return ke(1,a)|0}function se(a){a=a|0;return ke(2,a)|0}function te(a){a=a|0;return ke(3,a)|0}function ue(a){a=a|0;c[a>>2]=4008;Sd(a+16|0);return}function ve(a){a=a|0;ue(a);Uz(a);return}function we(a,b){a=a|0;b=b|0;c[a>>2]=0;xe(a,c[b>>2]|0);return}function xe(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function ye(a){a=a|0;var b=0,d=0;b=a+4|0;d=(c[b>>2]|0)+-1|0;c[b>>2]=d;if(!d){c[b>>2]=-559026175;_c[c[(c[a>>2]|0)+4>>2]&511](a)}return}function ze(a){a=a|0;a=c[a>>2]|0;if(a)ye(a);return}function Ae(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}a=a+8|0;d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Be(a){a=a|0;Sd(a);Uz(a);return}function Ce(b,d){b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[b+4>>2]=0;c[b>>2]=4100;a[f>>0]=0;De(b+8|0,d,f);i=e;return}function De(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;c[b>>2]=0;f=b+4|0;c[f>>2]=0;c[b+8>>2]=0;if(d){o=0;ma(83,b|0,d|0);g=o;o=0;if(g&1){g=cc()|0;He(b);bc(g|0)}b=c[f>>2]|0;do{a[b>>0]=a[e>>0]|0;b=(c[f>>2]|0)+1|0;c[f>>2]=b;d=d+-1|0}while((d|0)!=0)}return}function Ee(a){a=a|0;c[a>>2]=4100;He(a+8|0);return}function Fe(a){a=a|0;c[a>>2]=4100;He(a+8|0);Uz(a);return}function Ge(a,b){a=a|0;b=b|0;var d=0;if((b|0)<0)Qz(a);else{d=Sz(b)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+b;return}}function He(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-1|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function Ie(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Je(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ke(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Le(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Me(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ne(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Oe(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function Pe(a,b){a=a|0;b=b|0;c[a>>2]=0;Qe(a,c[b>>2]|0);return}function Qe(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Re(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Se(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;be(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0);c[a+8>>2]=0;c[e>>2]=0;c[a>>2]=0}return}function Te(a,b){a=a|0;b=b|0;var d=0;if(b){d=b+4|0;c[d>>2]=(c[d>>2]|0)+1}a=a+8|0;d=c[a>>2]|0;if(d)ye(d);c[a>>2]=b;return}function Ue(a){a=a|0;pe(a);Uz(a);return}function Ve(){Rd(4044,0);Ec(44,4044,n|0)|0;ie(4056,0);Ec(44,4056,n|0)|0;c[1017]=0;Ie(4068,0);Ec(302,4068,n|0)|0;return}function We(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0;l=i;i=i+16|0;j=l+12|0;k=l;Zp(j,d);oe(k,e);o=0;mb(52,b|0,j|0,k|0);e=o;o=0;if(e&1){l=cc()|0;pe(k);Yd(j);bc(l|0)}else{pe(k);Yd(j);c[b>>2]=28776;a[b+24>>0]=f&1;c[b+28>>2]=g;c[b+32>>2]=h;i=l;return}}function Xe(b){b=b|0;return (a[b+24>>0]|0)!=0|0}function Ye(a){a=a|0;return c[a+28>>2]|0}function Ze(a){a=a|0;return c[a+32>>2]|0}function _e(a){a=a|0;c[a+4>>2]=0;c[a>>2]=4132;o=0;ka(303,a+8|0);a=o;o=0;if(a&1){a=cc()|0;bc(a|0)}else return}function $e(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;l=i;i=i+112|0;f=l+100|0;g=l+96|0;r=l+64|0;d=l+56|0;q=l+52|0;p=l+40|0;n=l+36|0;e=l+32|0;m=l+28|0;h=l+16|0;j=l+4|0;k=l;c[d>>2]=Kf(c[b>>2]|0)|0;o=0;ma(84,r|0,d|0);b=o;o=0;if(b&1){r=cc()|0;Yd(d);d=r}else{Yd(d);o=0;d=qa(115,r|0)|0;b=o;o=0;if(b&1)d=cc()|0;else{c[q>>2]=d;o=0;ma(85,p|0,d|0);b=o;o=0;if(b&1)d=cc()|0;else{c[e>>2]=0;_p(e,d);o=0;b=Wa(59,a+8|0,e|0)|0;a=o;o=0;if(a&1){d=cc()|0;$p(e)}else{c[n>>2]=b;$p(e);o=0;a=qa(111,40)|0;e=o;o=0;if(e&1)d=cc()|0;else{o=0;d=qa(116,b|0)|0;e=o;o=0;if(e&1)d=cc()|0;else{c[m>>2]=d;o=0;ma(86,h|0,b|0);e=o;o=0;do if(!(e&1)){oe(j,p);c[k>>2]=1;o=0;c[f>>2]=c[k>>2];ia(45,a|0,m|0,h|0,j|0,f|0);k=o;o=0;if(k&1){d=cc()|0;pe(j);Sd(h);break}else{c[g>>2]=0;Qe(g,a);pe(j);Sd(h);ne(m);aq(n);pe(p);$p(q);c[r>>2]=28792;Yd(r+8|0);i=l;return c[g>>2]|0}}else d=cc()|0;while(0);ne(m)}Uz(a)}aq(n)}pe(p)}$p(q)}c[r>>2]=28792;Yd(r+8|0)}bc(d|0);return 0}function af(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;e=f;d=c[(c[a>>2]|0)+8>>2]|0;_d(e,b);o=0;d=Wa(d|0,a|0,e|0)|0;a=o;o=0;if(a&1){f=cc()|0;ce(e);bc(f|0)}else{ce(e);i=f;return d|0}return 0}function bf(a){a=a|0;c[a>>2]=4132;c[a+8>>2]=28808;$p(a+24|0);return}function cf(a){a=a|0;bf(a);Uz(a);return}function df(a){a=a|0;switch(a<<24>>24|0){case 76:{a=1;break}case 80:{a=4;break}case 77:{a=2;break}case 68:{a=3;break}case 66:{a=5;break}default:a=0}return a|0}function ef(a,b){a=a|0;b=b|0;switch(a|0){case 0:{b=c[28816+(b<<2)>>2]|0;break}case 1:{b=c[28944+(b<<2)>>2]|0;break}case 2:{b=c[29072+(b<<2)>>2]|0;break}case 4:{b=c[29200+(b<<2)>>2]|0;break}case 3:{b=c[29328+(b<<2)>>2]|0;break}default:b=61257}return b|0}function ff(a){a=a|0;c[a+4>>2]=0;c[a>>2]=28808;a=a+16|0;c[a>>2]=0;_p(a,0);return}function gf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;q=i;i=i+80|0;m=q+64|0;v=q+60|0;g=q+56|0;h=q+52|0;u=q+48|0;j=q+44|0;t=q+40|0;k=q+36|0;s=q+32|0;l=q+28|0;r=q+16|0;n=q+4|0;p=q;f=b+16|0;_p(f,c[d>>2]|0);d=Cg(c[d>>2]|0)|0;c[v>>2]=d;o=0;e=qa(117,c[f>>2]|0)|0;x=o;o=0;a:do if(x&1)w=6;else{do if(!e){o=0;d=qa(118,c[f>>2]|0)|0;x=o;o=0;if(x&1){w=6;break a}c[h>>2]=d;o=0;d=qa(119,h|0)|0;x=o;o=0;if(x&1){d=cc()|0;Yd(h);break a}else{c[g>>2]=d;Ke(v,d);Yd(g);Yd(h);d=c[v>>2]|0;break}}while(0);c[j>>2]=0;Ke(j,d);o=0;d=Wa(60,b|0,j|0)|0;x=o;o=0;if(x&1){d=cc()|0;Yd(j);break}c[u>>2]=d;Yd(j);c[k>>2]=0;Je(k,d);o=0;e=Wa(61,b|0,k|0)|0;x=o;o=0;if(x&1){d=cc()|0;bq(k)}else{c[t>>2]=e;bq(k);c[l>>2]=0;Je(l,e);o=0;h=Wa(62,b|0,l|0)|0;x=o;o=0;if(x&1){d=cc()|0;bq(l)}else{c[s>>2]=h;bq(l);o=0;d=qa(120,e|0)|0;x=o;o=0;if(!(x&1)?(o=0,ma(87,r|0,d|0),x=o,o=0,!(x&1)):0){g=e+4|0;d=e+20|0;e=(c[r+8>>2]|0)+8|0;if((c[g>>2]|0)>0){f=0;do{a[(c[e>>2]|0)+f>>0]=(c[(c[(c[d>>2]|0)+8>>2]|0)+(f>>5<<2)>>2]&1<<(f&31)|0)!=0&1;f=f+1|0}while((f|0)<(c[g>>2]|0))}o=0;d=qa(111,48)|0;x=o;o=0;do if(!(x&1)){Pd(n,r);c[p>>2]=0;cq(p,h);o=0;mb(53,d|0,n|0,p|0);x=o;o=0;if(x&1){x=cc()|0;ne(p);Sd(n);Uz(d);d=x;break}else{c[m>>2]=0;dq(m,d);ne(p);Sd(n);Sd(r);ne(s);bq(t);bq(u);Yd(v);i=q;return c[m>>2]|0}}else d=cc()|0;while(0);Sd(r)}else d=cc()|0;ne(s)}bq(t)}bq(u)}while(0);if((w|0)==6)d=cc()|0;Yd(v);bc(d|0);return 0}function hf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;j=i;i=i+16|0;k=j;d=(((ig(c[a>>2]|0)|0)+-1|0)/32|0)<<1|1;e=Sz(32)|0;o=0;f=qa(121,c[a>>2]|0)|0;h=o;o=0;if((!(h&1)?(o=0,b=qa(122,c[a>>2]|0)|0,h=o,o=0,!(h&1)):0)?(o=0,mb(54,e|0,f-d|0,b-d|0),h=o,o=0,!(h&1)):0){c[k>>2]=0;Ke(k,e);h=c[k>>2]|0;b=0;g=0;a:while(1){o=0;d=qa(121,c[a>>2]|0)|0;f=o;o=0;if(f&1){d=11;break}if((g|0)>=(d|0)){d=23;break}o=0;d=qa(121,c[a>>2]|0)|0;f=o;o=0;if(f&1){d=11;break}if(((d|0)/2|0)-g&15){d=0;f=0;while(1){o=0;e=qa(122,c[a>>2]|0)|0;l=o;o=0;if(l&1){d=10;break a}if((f|0)>=(e|0))break;o=0;e=qa(121,c[a>>2]|0)|0;l=o;o=0;if(l&1){d=10;break a}if(((e|0)/2|0)-f&15){if(eq(c[a>>2]|0,g,f)|0)Xd(h,b,d);d=d+1|0}f=f+1|0}b=b+1|0}g=g+1|0}if((d|0)==10)b=cc()|0;else if((d|0)==11)b=cc()|0;else if((d|0)==23){i=j;return h|0}Yd(k)}else{b=cc()|0;Uz(e)}bc(b|0);return 0}function jf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+48|0;w=y+36|0;z=y+24|0;g=y+12|0;h=y;c[z>>2]=0;v=z+4|0;c[v>>2]=0;j=z+8|0;c[j>>2]=0;k=a+16|0;o=0;f=qa(117,c[k>>2]|0)|0;u=o;o=0;do if(!(u&1)){o=0;d=qa(123,c[k>>2]|0)|0;e=o;o=0;e=e&1;if(f){if(e){x=7;break}if((d|0)>5){d=Ob(8)|0;o=0;ma(88,d|0,46995);y=o;o=0;if(y&1){y=cc()|0;Nb(d|0);d=y;break}else{o=0;mb(55,d|0,320,76);o=0;x=7;break}}o=0;d=qa(123,c[k>>2]|0)|0;u=o;o=0;if(u&1){x=7;break}o=0;ma(89,g|0,c[29392+(d<<2)>>2]|0);u=o;o=0;if(u&1){x=7;break}gq(z);d=c[g>>2]|0;c[z>>2]=d;u=g+4|0;c[v>>2]=c[u>>2];e=g+8|0;c[j>>2]=c[e>>2];c[g>>2]=0;c[u>>2]=0;c[e>>2]=0;hq(g);o=0;e=qa(123,c[k>>2]|0)|0;u=o;o=0;if(u&1){x=7;break}c[a+8>>2]=c[29412+(e<<2)>>2]}else{if(e){x=7;break}if((d|0)>33){d=Ob(8)|0;o=0;ma(88,d|0,46995);y=o;o=0;if(y&1){y=cc()|0;Nb(d|0);d=y;break}else{o=0;mb(55,d|0,320,76);o=0;x=7;break}}o=0;d=qa(123,c[k>>2]|0)|0;u=o;o=0;if(u&1){x=7;break}o=0;ma(89,h|0,c[29432+(d<<2)>>2]|0);u=o;o=0;if(u&1){x=7;break}gq(z);d=c[h>>2]|0;c[z>>2]=d;u=h+4|0;c[v>>2]=c[u>>2];e=h+8|0;c[j>>2]=c[e>>2];c[h>>2]=0;c[u>>2]=0;c[e>>2]=0;hq(h);o=0;e=qa(123,c[k>>2]|0)|0;u=o;o=0;if(u&1){x=7;break}c[a+8>>2]=c[29564+(e<<2)>>2]}o=0;e=qa(123,c[k>>2]|0)|0;u=o;o=0;if(!(u&1)?(o=0,l=qa(122,c[b>>2]|0)|0,u=o,o=0,!(u&1)):0){if(e){t=0;u=0;s=l;while(1){q=s<<1;a=q+-4|0;k=a+u|0;r=s+-1+t|0;if((a|0)>0){l=0;m=0;while(1){f=m+u|0;g=d+(f>>>5<<2)|0;f=1<<(f&31);h=c[b>>2]|0;j=((m|0)/2|0)+t|0;if(eq(h,l+t|0,j)|0)f=c[g>>2]|f;else f=c[g>>2]&~f;c[g>>2]=f;f=k+m|0;g=d+(f>>>5<<2)|0;f=1<<(f&31);if(eq(h,j,r-l|0)|0)f=c[g>>2]|f;else f=c[g>>2]&~f;c[g>>2]=f;m=m+1|0;if((m|0)>=(a|0))break;else l=(l+1|0)%2|0}}f=q|1;l=(s<<2)+-7+u|0;m=t+-1|0;n=(s*6|0)+-11+u|0;if((f|0)>5){p=0;while(1){h=q-f|0;g=l+h|0;j=d+(g>>>5<<2)|0;g=1<<(g&31);a=c[b>>2]|0;k=m+((f|0)/2|0)|0;if(eq(a,r-p|0,k)|0)g=c[j>>2]|g;else g=c[j>>2]&~g;c[j>>2]=g;g=n+h|0;h=d+(g>>>5<<2)|0;g=1<<(g&31);if(eq(a,k,p+t|0)|0)g=c[h>>2]|g;else g=c[h>>2]&~g;c[h>>2]=g;f=f+-1|0;if((f|0)<=5)break;else p=(p+1|0)%2|0}}e=e+-1|0;if(!e)break;else{t=t+2|0;u=(s<<3)+-16+u|0;s=s+-4|0}}}o=0;d=qa(111,24)|0;b=o;o=0;if(!(b&1)){j=c[v>>2]|0;o=0;ma(90,d|0,j|0);v=o;o=0;if(v&1){y=cc()|0;Uz(d);d=y;break}c[w>>2]=0;Je(w,d);h=c[z>>2]|0;d=c[w>>2]|0;e=d+20|0;if((j|0)>0){g=0;do{f=1<<(g&31);if(c[h+(g>>>5<<2)>>2]&f){x=(c[(c[e>>2]|0)+8>>2]|0)+(g>>5<<2)|0;c[x>>2]=c[x>>2]|f}g=g+1|0}while((g|0)<(j|0))}hq(z);i=y;return d|0}else x=7}else x=7}else x=7;while(0);if((x|0)==7)d=cc()|0;hq(z);bc(d|0);return 0}function kf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;w=i;i=i+48|0;x=w+36|0;z=w+32|0;y=w+20|0;r=w+16|0;p=w+12|0;q=w;iq(z,4360);k=a+16|0;o=0;e=qa(123,c[k>>2]|0)|0;v=o;o=0;a:do if(!(v&1)){do if((e|0)>=3){o=0;e=qa(123,c[k>>2]|0)|0;v=o;o=0;if(v&1){s=4;break a}if((e|0)<9){c[a+12>>2]=8;jq(z,c[1094]|0);break}o=0;e=qa(123,c[k>>2]|0)|0;v=o;o=0;if(v&1){s=4;break a}f=a+12|0;if((e|0)<23){c[f>>2]=10;jq(z,c[1089]|0);break}else{c[f>>2]=12;jq(z,c[1088]|0);break}}else{c[a+12>>2]=6;jq(z,c[1090]|0)}while(0);o=0;v=qa(124,c[k>>2]|0)|0;u=o;o=0;if(!(u&1)?(o=0,g=qa(117,c[k>>2]|0)|0,u=o,o=0,!(u&1)):0){o=0;e=qa(123,c[k>>2]|0)|0;f=o;o=0;f=f&1;if(g){if(f){s=4;break}g=c[29392+(e<<2)>>2]|0;f=a+8|0;h=c[f>>2]|0;j=c[a+12>>2]|0;o=0;e=qa(123,c[k>>2]|0)|0;u=o;o=0;if(u&1){s=4;break}e=29412+(e<<2)|0;m=g-($(j,h)|0)|0}else{if(f){s=4;break}g=c[29432+(e<<2)>>2]|0;f=a+8|0;h=c[f>>2]|0;j=c[a+12>>2]|0;o=0;e=qa(123,c[k>>2]|0)|0;u=o;o=0;if(u&1){s=4;break}e=29564+(e<<2)|0;m=g-($(j,h)|0)|0}l=(c[e>>2]|0)-v|0;o=0;ma(91,y|0,c[f>>2]|0);u=o;o=0;if(!(u&1)){t=a+12|0;u=(c[y+8>>2]|0)+8|0;if((c[f>>2]|0)>0){k=0;do{e=c[t>>2]|0;if((e|0)>=1){j=c[(c[(c[b>>2]|0)+20>>2]|0)+8>>2]|0;g=1;h=1;while(1){s=m-h+e+($(e,k)|0)|0;if(c[j+(s>>5<<2)>>2]&1<<(s&31)){s=(c[u>>2]|0)+(k<<2)|0;c[s>>2]=(c[s>>2]|0)+g}e=c[t>>2]|0;if((h|0)>=(e|0))break;else{g=g<<1;h=h+1|0}}}k=k+1|0}while((k|0)<(c[f>>2]|0))}c[p>>2]=0;jq(p,c[z>>2]|0);o=0;ma(92,r|0,p|0);s=o;o=0;do if(!(s&1)){lq(p);mq(q,y);o=0;mb(56,r|0,q|0,l|0);s=o;o=0;if(s&1){e=cc(256,240)|0;f=D;nq(q);Fh(r);s=35;break}else{nq(q);Fh(r);s=42;break}}else{e=cc(256,240)|0;f=D;lq(p);s=35}while(0);do if((s|0)==35){if((f|0)!=(Xb(256)|0)){if((f|0)!=(Xb(240)|0)){d=e;break}fc(e|0)|0;o=0;ob(44);s=o;o=0;if(s&1){s=27;break}else{s=42;break}}fc(e|0)|0;e=Ob(8)|0;o=0;ma(88,e|0,47012);x=o;o=0;if(x&1){x=cc()|0;Nb(e|0);e=x}else{o=0;mb(55,e|0,320,76);o=0;e=cc()|0}o=0;ob(44);x=o;o=0;if(x&1){x=cc(0)|0;oq(x)}else d=e}while(0);b:do if((s|0)==42){r=a+20|0;c[r>>2]=0;o=0;d=qa(111,24)|0;a=o;o=0;if(a&1)s=27;else{a=$(c[t>>2]|0,v)|0;o=0;ma(90,d|0,a|0);a=o;o=0;if(a&1){x=cc()|0;Uz(d);d=x;break}c[x>>2]=0;Je(x,d);p=c[x>>2]|0;q=p+20|0;c:do if((v|0)>0){b=0;d=0;d:while(1){e=c[t>>2]|0;if((e|0)>0){n=(c[u>>2]|0)+(b<<2)|0;k=e;l=1<<e+-1;m=0;e=0;g=0;while(1){j=(c[n>>2]&l|0)==(l|0);h=e^j;do if((g|0)==(k+-1|0)){if(!h)break d;c[r>>2]=(c[r>>2]|0)+1;e=k;d=d+1|0;f=0;g=0}else{f=h?j:e;g=h?1:g+1|0;if(!j){e=k;break}a=m-d+($(k,b)|0)|0;e=(c[(c[q>>2]|0)+8>>2]|0)+(a>>5<<2)|0;c[e>>2]=c[e>>2]|1<<(a&31);e=c[t>>2]|0}while(0);m=m+1|0;if((m|0)>=(e|0))break;else{k=e;l=l>>>1;e=f}}}b=b+1|0;if((b|0)>=(v|0))break c}d=Ob(8)|0;o=0;ma(88,d|0,47031);w=o;o=0;if(w&1){w=cc()|0;Nb(d|0);d=w}else{o=0;mb(55,d|0,320,76);o=0;d=cc()|0}bq(x);break b}while(0);nq(y);lq(z);i=w;return p|0}}while(0);if((s|0)==27)d=cc()|0;nq(y)}else s=4}else s=4}else s=4;while(0);if((s|0)==4)d=cc()|0;lq(z);bc(d|0);return 0}function lf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;E=i;i=i+48|0;D=E+44|0;F=E+32|0;u=E+28|0;v=E+24|0;w=E+20|0;x=E+16|0;y=E+12|0;C=E;m=c[b+12>>2]|0;m=$(Ye(c[b+16>>2]|0)|0,m)|0;m=m-(c[b+20>>2]|0)|0;do if((m|0)>(Wf(c[d>>2]|0)|0)){b=Ob(8)|0;o=0;ma(88,b|0,47052);G=o;o=0;if(G&1){G=cc()|0;Nb(b|0);b=G;break}else Hc(b|0,320,76)}else{c[F>>2]=0;c[F+4>>2]=0;c[F+8>>2]=0;n=C+8|0;p=C+4|0;q=C+1|0;b=0;r=0;t=0;h=0;f=0;a:while(1){s=r;r=t?r:f;b:do if(b){if((m-h|0)<5){G=38;break a}Wd(u,d);b=mf(u,h,5)|0;bq(u);e=h+5|0;if(!b){if((m-e|0)<11){G=38;break a}Wd(v,d);b=(mf(v,e,11)|0)+31|0;bq(v);e=h+16|0}if((b|0)>0){g=0;while(1){if((m-e|0)<8){b=0;j=1;g=t;break b}Wd(w,d);l=mf(w,e,8)|0;bq(w);o=0;ma(93,F|0,l&255|0);l=o;o=0;if(l&1){G=10;break a}e=e+8|0;g=g+1|0;if((g|0)>=(b|0)){b=0;j=0;g=t;break}}}else{b=0;j=0;g=t}}else{if((f|0)==5){if((m-h|0)<8){G=38;break a}Wd(x,d);l=mf(x,h,8)|0;bq(x);o=0;ma(93,F|0,l&255|0);l=o;o=0;if(l&1){G=11;break a}else{b=0;j=0;g=t;e=h+8|0;f=5;break}}b=(f|0)==3?4:5;if((m-h|0)<(b|0)){G=38;break a}Wd(y,d);j=mf(y,h,b)|0;bq(y);e=b+h|0;j=ef(f,j)|0;l=iC(j)|0;o=0;mb(57,C|0,j|0,l|0);l=o;o=0;if(l&1){G=11;break a}l=a[C>>0]|0;h=(l&1)==0;k=h?q:c[n>>2]|0;l=h?(l&255)>>>1:c[p>>2]|0;c:do if((l>>>0>=5?(z=k+l|0,A=k,(l|0)>=5):0)?(h=l+-4|0,B=k+h|0,(h|0)!=0):0){b=k;d:while(1){if((a[b>>0]|0)==67){g=b;h=47071;do{h=h+1|0;if((h|0)==47076)break d;g=g+1|0}while((a[g>>0]|0)==(a[h>>0]|0))}b=b+1|0;if((b|0)==(B|0)){G=35;break c}}if((b|0)!=(z|0)?(b-A|0)!=-1:0){b=a[j+5>>0]|0;f=df(b)|0;g=(a[j+6>>0]|0)==83;b=g&b<<24>>24==66;g=g|t}else G=35}else G=35;while(0);if((G|0)==35){G=0;o=0;ya(90,F|0,k|0,l|0)|0;l=o;o=0;if(l&1){G=34;break a}else{b=0;g=t}}IC(C);j=0}while(0);f=t?s:f;if(j){G=38;break}else{t=g&(t^1);h=e}}do if((G|0)==10){b=cc()|0;G=13}else if((G|0)==11){b=cc()|0;G=13}else if((G|0)==34){b=cc()|0;IC(C)}else if((G|0)==38){o=0;b=qa(111,20)|0;C=o;o=0;if(C&1){b=cc()|0;G=13;break}o=0;ma(94,b|0,F|0);C=o;o=0;if(C&1){E=cc()|0;Uz(b);b=E;break}else{c[D>>2]=0;cq(D,b);IC(F);i=E;return c[D>>2]|0}}while(0);IC(F)}while(0);bc(b|0);return 0}function mf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=d+b|0;if((d|0)>0){e=c[(c[(c[a>>2]|0)+20>>2]|0)+8>>2]|0;a=b;d=0;do{d=(c[e+(a>>5<<2)>>2]&1<<(a&31)|0)!=0|d<<1;a=a+1|0}while((a|0)<(f|0))}else d=0;return d|0}function nf(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=28792;Zp(a+8|0,b);c[a+16>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;return}function of(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;q=i;i=i+112|0;m=q+96|0;v=q+92|0;t=q+80|0;d=q+76|0;e=q+64|0;s=q+52|0;f=q+40|0;r=q+36|0;g=q+32|0;h=q+28|0;j=q+24|0;k=q+20|0;l=q+16|0;p=q+12|0;n=q;w=pf(b)|0;c[v>>2]=w;c[d>>2]=0;pq(d,w);o=0;mb(58,t|0,b|0,d|0);w=o;o=0;if(w&1){w=cc()|0;qq(d);d=w}else{qq(d);o=0;ma(95,e|0,t|0);w=o;o=0;do if(!(w&1)){o=0;ma(96,b|0,e|0);w=o;o=0;if(w&1){d=cc()|0;sq(e);break}sq(e);o=0;ma(95,f|0,t|0);w=o;o=0;if(!(w&1)){o=0;mb(59,s|0,b|0,f|0);w=o;o=0;if(w&1){d=cc()|0;sq(f);break}sq(f);Zp(g,b+8|0);e=b+28|0;w=(c[s+8>>2]|0)+8|0;tq(h,(c[w>>2]|0)+(((c[e>>2]|0)%4|0)<<2)|0);tq(j,(c[w>>2]|0)+((((c[e>>2]|0)+3|0)%4|0)<<2)|0);tq(k,(c[w>>2]|0)+((((c[e>>2]|0)+2|0)%4|0)<<2)|0);tq(l,(c[w>>2]|0)+((((c[e>>2]|0)+1|0)%4|0)<<2)|0);o=0;e=oa(81,b|0,g|0,h|0,j|0,k|0,l|0)|0;w=o;o=0;if(w&1){d=cc()|0;uq(l);uq(k);uq(j);uq(h);Yd(g)}else{c[r>>2]=e;uq(l);uq(k);uq(j);uq(h);Yd(g);o=0;d=qa(111,36)|0;w=o;o=0;do if(!(w&1)){c[p>>2]=0;Ke(p,e);oe(n,s);o=0;Ca(49,d|0,p|0,n|0,(a[b+12>>0]|0)!=0|0,c[b+20>>2]|0,c[b+16>>2]|0);w=o;o=0;if(w&1){w=cc()|0;pe(n);Yd(p);Uz(d);d=w;break}else{c[m>>2]=0;_p(m,d);pe(n);Yd(p);Yd(r);pe(s);sq(t);qq(v);i=q;return c[m>>2]|0}}else d=cc()|0;while(0);Yd(r)}pe(s)}else u=11}else u=11;while(0);if((u|0)==11)d=cc()|0;sq(t)}qq(v);bc(d|0);return 0}function pf(a){a=a|0;var b=0,d=0.0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0.0,A=0,B=0.0,C=0,E=0.0,F=0.0,G=0.0,H=0.0,I=0.0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0.0,ba=0,ca=0.0,da=0,ea=0.0,fa=0,ga=0.0,ha=0.0,ja=0.0,ka=0.0,la=0,na=0,oa=0,pa=0,ra=0,sa=0,ta=0,ua=0;na=i;i=i+224|0;_=na+216|0;ra=na+212|0;sa=na+208|0;ta=na+204|0;ua=na+200|0;e=na+188|0;b=na+152|0;f=na+148|0;j=na+144|0;k=na+140|0;l=na+136|0;n=na+132|0;p=na+128|0;r=na+124|0;t=na+120|0;s=na+116|0;u=na+112|0;v=na+108|0;w=na+104|0;x=na+100|0;L=na+88|0;J=na+52|0;M=na+48|0;N=na+44|0;O=na+40|0;P=na+36|0;Q=na+32|0;R=na+28|0;T=na+24|0;U=na+20|0;V=na+16|0;W=na+12|0;X=na+8|0;Y=na+4|0;Z=na;c[ra>>2]=0;vq(ra,0);c[sa>>2]=0;vq(sa,0);c[ta>>2]=0;vq(ta,0);c[ua>>2]=0;vq(ua,0);K=a+8|0;Zp(f,K);o=0;ma(97,b|0,f|0);oa=o;o=0;do if(!(oa&1)){o=0;ma(98,e|0,b|0);oa=o;o=0;if(oa&1){oa=cc(856)|0;e=D;c[b>>2]=29704;Yd(b+8|0);b=oa;oa=6;break}else{c[b>>2]=29704;Yd(b+8|0);Yd(f);vq(ra,c[c[e>>2]>>2]|0);vq(sa,c[(c[e>>2]|0)+4>>2]|0);vq(ta,c[(c[e>>2]|0)+8>>2]|0);vq(ua,c[(c[e>>2]|0)+12>>2]|0);wq(e);oa=22;break}}else{b=cc(856)|0;e=D;oa=6}while(0);a:do if((oa|0)==6){Yd(f);if((e|0)==(Xb(856)|0)){fc(b|0)|0;o=0;b=qa(121,c[K>>2]|0)|0;f=o;o=0;b:do if((!(f&1)?(q=(b|0)/2|0,o=0,g=qa(122,c[K>>2]|0)|0,f=o,o=0,!(f&1)):0)?(m=(g|0)/2|0,o=0,h=qa(111,16)|0,g=o,o=0,!(g&1)):0){e=q+7|0;g=m+-7|0;c[h+4>>2]=0;c[h>>2]=29720;c[h+8>>2]=e;c[h+12>>2]=g;c[l>>2]=0;pq(l,h);o=0;b=Ya(64,a|0,l|0,0,1,-1)|0;h=o;o=0;do if(h&1)b=cc()|0;else{c[k>>2]=b;o=0;b=qa(125,b|0)|0;h=o;o=0;if(h&1){b=cc()|0;qq(k);break}c[j>>2]=b;vq(ra,b);uq(j);qq(k);qq(l);o=0;b=qa(111,16)|0;l=o;o=0;if(l&1){oa=33;break b}f=m+7|0;c[b+4>>2]=0;c[b>>2]=29720;c[b+8>>2]=e;c[b+12>>2]=f;c[r>>2]=0;pq(r,b);o=0;b=Ya(64,a|0,r|0,0,1,1)|0;m=o;o=0;do if(m&1)b=cc()|0;else{c[p>>2]=b;o=0;b=qa(125,b|0)|0;m=o;o=0;if(m&1){b=cc()|0;qq(p);break}c[n>>2]=b;vq(sa,b);uq(n);qq(p);qq(r);o=0;b=qa(111,16)|0;r=o;o=0;if(r&1){oa=33;break b}e=q+-7|0;c[b+4>>2]=0;c[b>>2]=29720;c[b+8>>2]=e;c[b+12>>2]=f;c[u>>2]=0;pq(u,b);o=0;b=Ya(64,a|0,u|0,0,-1,-1)|0;r=o;o=0;do if(r&1)b=cc()|0;else{c[s>>2]=b;o=0;b=qa(125,b|0)|0;r=o;o=0;if(r&1){b=cc()|0;qq(s);break}c[t>>2]=b;vq(ta,b);uq(t);qq(s);qq(u);o=0;b=qa(111,16)|0;u=o;o=0;if(u&1){oa=33;break b}c[b+4>>2]=0;c[b>>2]=29720;c[b+8>>2]=e;c[b+12>>2]=g;c[x>>2]=0;pq(x,b);o=0;b=Ya(64,a|0,x|0,0,-1,-1)|0;u=o;o=0;do if(!(u&1)){c[w>>2]=b;o=0;b=qa(125,b|0)|0;u=o;o=0;if(!(u&1)){c[v>>2]=b;vq(ua,b);uq(v);qq(w);qq(x);o=0;ob(44);oa=o;o=0;if(oa&1){oa=46;break a}else{oa=22;break a}}else{b=cc()|0;qq(w);break}}else b=cc()|0;while(0);qq(x);break b}while(0);qq(u);break b}while(0);qq(r);break b}while(0);qq(l)}else oa=33;while(0);if((oa|0)==33)b=cc()|0;o=0;ob(44);na=o;o=0;if(na&1)oa=89;else pa=b}else pa=b}while(0);c:do if((oa|0)==22){b=c[ra>>2]|0;o=0;d=+Ka(c[(c[b>>2]|0)+8>>2]|0,b|0);x=o;o=0;if(((((((!(x&1)?(y=c[ua>>2]|0,o=0,z=+Ka(c[(c[y>>2]|0)+8>>2]|0,y|0),x=o,o=0,!(x&1)):0)?(A=c[sa>>2]|0,o=0,B=+Ka(c[(c[A>>2]|0)+8>>2]|0,A|0),x=o,o=0,!(x&1)):0)?(C=c[ta>>2]|0,o=0,E=+Ka(c[(c[C>>2]|0)+8>>2]|0,C|0),x=o,o=0,!(x&1)):0)?(S=~~((d+z+B+E)*.25+.5),o=0,F=+Ka(c[(c[b>>2]|0)+12>>2]|0,b|0),x=o,o=0,!(x&1)):0)?(o=0,G=+Ka(c[(c[y>>2]|0)+12>>2]|0,y|0),y=o,o=0,!(y&1)):0)?(o=0,H=+Ka(c[(c[A>>2]|0)+12>>2]|0,A|0),A=o,o=0,!(A&1)):0)?(o=0,I=+Ka(c[(c[C>>2]|0)+12>>2]|0,C|0),C=o,o=0,!(C&1)):0){f=~~((F+G+H+I)*.25+.5);Zp(M,K);o=0;ia(46,J|0,M|0,15,S|0,f|0);K=o;o=0;do if(!(K&1)){o=0;ma(98,L|0,J|0);K=o;o=0;if(K&1){b=cc(856)|0;e=D;c[J>>2]=29704;Yd(J+8|0);oa=50;break}else{c[J>>2]=29704;Yd(J+8|0);Yd(M);vq(ra,c[c[L>>2]>>2]|0);vq(sa,c[(c[L>>2]|0)+4>>2]|0);vq(ta,c[(c[L>>2]|0)+8>>2]|0);vq(ua,c[(c[L>>2]|0)+12>>2]|0);wq(L);break}}else{b=cc(856)|0;e=D;oa=50}while(0);d:do if((oa|0)==50){Yd(M);if((e|0)!=(Xb(856)|0)){pa=b;break c}fc(b|0)|0;o=0;b=qa(111,16)|0;M=o;o=0;e:do if(M&1)oa=74;else{e=S+7|0;g=f+-7|0;c[b+4>>2]=0;c[b>>2]=29720;c[b+8>>2]=e;c[b+12>>2]=g;c[P>>2]=0;pq(P,b);o=0;b=Ya(64,a|0,P|0,0,1,-1)|0;M=o;o=0;do if(M&1)b=cc()|0;else{c[O>>2]=b;o=0;b=qa(125,b|0)|0;M=o;o=0;if(M&1){b=cc()|0;qq(O);break}c[N>>2]=b;vq(ra,b);uq(N);qq(O);qq(P);o=0;b=qa(111,16)|0;P=o;o=0;if(P&1){oa=74;break e}f=f+7|0;c[b+4>>2]=0;c[b>>2]=29720;c[b+8>>2]=e;c[b+12>>2]=f;c[T>>2]=0;pq(T,b);o=0;b=Ya(64,a|0,T|0,0,1,1)|0;P=o;o=0;do if(P&1)b=cc()|0;else{c[R>>2]=b;o=0;b=qa(125,b|0)|0;P=o;o=0;if(P&1){b=cc()|0;qq(R);break}c[Q>>2]=b;vq(sa,b);uq(Q);qq(R);qq(T);o=0;b=qa(111,16)|0;T=o;o=0;if(T&1){oa=74;break e}e=S+-7|0;c[b+4>>2]=0;c[b>>2]=29720;c[b+8>>2]=e;c[b+12>>2]=f;c[W>>2]=0;pq(W,b);o=0;b=Ya(64,a|0,W|0,0,-1,1)|0;T=o;o=0;do if(T&1)b=cc()|0;else{c[V>>2]=b;o=0;b=qa(125,b|0)|0;T=o;o=0;if(T&1){b=cc()|0;qq(V);break}c[U>>2]=b;vq(ta,b);uq(U);qq(V);qq(W);o=0;b=qa(111,16)|0;W=o;o=0;if(W&1){oa=74;break e}c[b+4>>2]=0;c[b>>2]=29720;c[b+8>>2]=e;c[b+12>>2]=g;c[Z>>2]=0;pq(Z,b);o=0;b=Ya(64,a|0,Z|0,0,-1,-1)|0;a=o;o=0;do if(!(a&1)){c[Y>>2]=b;o=0;b=qa(125,b|0)|0;a=o;o=0;if(!(a&1)){c[X>>2]=b;vq(ua,b);uq(X);qq(Y);qq(Z);o=0;ob(44);pa=o;o=0;if(pa&1){oa=46;break c}else break d}else{b=cc()|0;qq(Y);break}}else b=cc()|0;while(0);qq(Z);break e}while(0);qq(W);break e}while(0);qq(T);break e}while(0);qq(P)}while(0);if((oa|0)==74)b=cc()|0;o=0;ob(44);na=o;o=0;if(na&1){oa=89;break c}else{pa=b;break c}}while(0);b=c[ra>>2]|0;o=0;d=+Ka(c[(c[b>>2]|0)+8>>2]|0,b|0);pa=o;o=0;if((((((((!(pa&1)?($=c[ua>>2]|0,o=0,aa=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0),pa=o,o=0,!(pa&1)):0)?(ba=c[sa>>2]|0,o=0,ca=+Ka(c[(c[ba>>2]|0)+8>>2]|0,ba|0),pa=o,o=0,!(pa&1)):0)?(da=c[ta>>2]|0,o=0,ea=+Ka(c[(c[da>>2]|0)+8>>2]|0,da|0),pa=o,o=0,!(pa&1)):0)?(fa=~~((d+aa+ca+ea)*.25+.5),o=0,ga=+Ka(c[(c[b>>2]|0)+12>>2]|0,b|0),pa=o,o=0,!(pa&1)):0)?(o=0,ha=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),pa=o,o=0,!(pa&1)):0)?(o=0,ja=+Ka(c[(c[ba>>2]|0)+12>>2]|0,ba|0),pa=o,o=0,!(pa&1)):0)?(o=0,ka=+Ka(c[(c[da>>2]|0)+12>>2]|0,da|0),pa=o,o=0,!(pa&1)):0)?(o=0,la=qa(111,16)|0,pa=o,o=0,!(pa&1)):0){c[la+4>>2]=0;c[la>>2]=29720;c[la+8>>2]=fa;c[la+12>>2]=~~((ga+ha+ja+ka)*.25+.5);c[_>>2]=0;pq(_,la);uq(ua);uq(ta);uq(sa);uq(ra);i=na;return c[_>>2]|0}else oa=46}else oa=46}while(0);if((oa|0)==46)pa=cc()|0;else if((oa|0)==89){oa=cc(0)|0;oq(oa)}uq(ua);uq(ta);uq(sa);uq(ra);bc(pa|0);return 0}function qf(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0.0,Q=0.0,R=0.0;I=i;i=i+96|0;J=I+92|0;K=I+88|0;L=I+84|0;M=I+80|0;D=I+76|0;n=I+72|0;C=I+68|0;p=I+64|0;B=I+60|0;s=I+56|0;A=I+52|0;t=I+48|0;u=I+44|0;v=I+40|0;w=I+36|0;x=I+32|0;y=I+28|0;z=I+24|0;q=I+20|0;r=I+16|0;E=I+12|0;F=I+8|0;G=I+4|0;H=I;yq(J,e);yq(K,e);yq(L,e);yq(M,e);m=d+24|0;c[m>>2]=1;g=1;while(1){c[n>>2]=0;e=c[J>>2]|0;pq(n,e);o=0;h=Ya(64,d|0,n|0,g|0,1,-1)|0;l=o;o=0;if(l&1){N=11;break}c[D>>2]=h;qq(n);c[p>>2]=0;pq(p,c[K>>2]|0);o=0;j=Ya(64,d|0,p|0,g|0,1,1)|0;l=o;o=0;if(l&1){N=12;break}c[C>>2]=j;qq(p);c[s>>2]=0;pq(s,c[L>>2]|0);o=0;k=Ya(64,d|0,s|0,g|0,-1,1)|0;l=o;o=0;if(l&1){N=13;break}c[B>>2]=k;qq(s);c[t>>2]=0;f=c[M>>2]|0;pq(t,f);o=0;l=Ya(64,d|0,t|0,g|0,-1,-1)|0;O=o;o=0;if(O&1){N=14;break}c[A>>2]=l;qq(t);if((c[m>>2]|0)>2){c[u>>2]=0;pq(u,l);c[v>>2]=0;pq(v,h);Q=+zf(u,v);Q=Q*+(c[m>>2]|0);c[w>>2]=0;pq(w,f);c[x>>2]=0;pq(x,e);P=+zf(w,x);P=Q/(P*+((c[m>>2]|0)+2|0));qq(x);qq(w);qq(v);qq(u);if(!(P<.75|P>1.25)){c[y>>2]=0;pq(y,h);c[z>>2]=0;pq(z,j);c[q>>2]=0;pq(q,k);c[r>>2]=0;pq(r,l);o=0;e=Ya(65,d|0,y|0,z|0,q|0,r|0)|0;O=o;o=0;if(O&1){N=18;break}qq(r);qq(q);qq(z);qq(y);if(e)N=15;else f=0}else f=0}else N=15;if((N|0)==15){N=0;pq(J,h);pq(K,j);pq(L,k);pq(M,l);f=1;g=g^1}qq(A);qq(B);qq(C);qq(D);e=c[m>>2]|0;if(!f){N=22;break}e=e+1|0;c[m>>2]=e;if((e|0)>=9){N=22;break}}a:do if((N|0)==11){e=cc()|0;qq(n)}else if((N|0)==12){e=cc()|0;qq(p);N=21}else if((N|0)==13){e=cc()|0;qq(s);N=20}else if((N|0)==14){e=cc()|0;qq(t);N=19}else if((N|0)==18){e=cc()|0;qq(r);qq(q);qq(z);qq(y);qq(A);N=19}else if((N|0)==22){b:do switch(e|0){case 7:case 5:{a[d+12>>0]=(e|0)==5&1;Q=1.5/+((e<<1)+-3|0);g=c[J>>2]|0;f=c[g+8>>2]|0;p=c[M>>2]|0;n=c[p+8>>2]|0;g=c[g+12>>2]|0;m=c[L>>2]|0;l=c[m+12>>2]|0;R=Q*+(f-n|0);m=~~(+(c[m+8>>2]|0)-R+.5);P=Q*+(g-l|0);l=~~(+(l|0)-P+.5);f=~~(+(f|0)+R+.5);g=~~(+(g|0)+P+.5);j=c[K>>2]|0;h=c[j+8>>2]|0;j=c[j+12>>2]|0;p=c[p+12>>2]|0;P=Q*+(h-n|0);n=~~(+(n|0)-P+.5);Q=Q*+(j-p|0);p=~~(+(p|0)-Q+.5);h=~~(+(h|0)+P+.5);j=~~(+(j|0)+Q+.5);o=0;e=ya(91,d|0,f|0,g|0)|0;O=o;o=0;if(!(O&1)){if(e){o=0;e=ya(91,d|0,h|0,j|0)|0;O=o;o=0;if(O&1)break b;if(e){o=0;e=ya(91,d|0,m|0,l|0)|0;O=o;o=0;if(O&1)break b;if(e){o=0;e=ya(91,d|0,n|0,p|0)|0;O=o;o=0;if(O&1)break b;if(e){c[b>>2]=0;k=b+4|0;c[k>>2]=0;c[b+8>>2]=0;o=0;e=qa(111,16)|0;O=o;o=0;c:do if(!(O&1)){c[e+4>>2]=0;c[e>>2]=29720;c[e+8>>2]=f;c[e+12>>2]=g;c[E>>2]=0;pq(E,e);f=b+8|0;o=0;ma(99,b|0,E|0);O=o;o=0;if(O&1){e=cc()|0;qq(E);break}qq(E);o=0;e=qa(111,16)|0;O=o;o=0;if(!(O&1)){c[e+4>>2]=0;c[e>>2]=29720;c[e+8>>2]=h;c[e+12>>2]=j;c[F>>2]=0;pq(F,e);e=c[k>>2]|0;if(e>>>0>=(c[f>>2]|0)>>>0){o=0;ma(99,b|0,F|0);O=o;o=0;if(O&1){e=cc()|0;qq(F);break}}else{c[e>>2]=0;pq(e,c[F>>2]|0);c[k>>2]=(c[k>>2]|0)+4}qq(F);o=0;e=qa(111,16)|0;O=o;o=0;if(!(O&1)){c[e+4>>2]=0;c[e>>2]=29720;c[e+8>>2]=m;c[e+12>>2]=l;c[G>>2]=0;pq(G,e);e=c[k>>2]|0;if(e>>>0>=(c[f>>2]|0)>>>0){o=0;ma(99,b|0,G|0);O=o;o=0;if(O&1){e=cc()|0;qq(G);break}}else{c[e>>2]=0;pq(e,c[G>>2]|0);c[k>>2]=(c[k>>2]|0)+4}qq(G);o=0;e=qa(111,16)|0;O=o;o=0;if(!(O&1)){c[e+4>>2]=0;c[e>>2]=29720;c[e+8>>2]=n;c[e+12>>2]=p;c[H>>2]=0;pq(H,e);e=c[k>>2]|0;do if(e>>>0<(c[f>>2]|0)>>>0){c[e>>2]=0;pq(e,c[H>>2]|0);c[k>>2]=(c[k>>2]|0)+4}else{o=0;ma(99,b|0,H|0);O=o;o=0;if(!(O&1))break;e=cc()|0;qq(H);break c}while(0);qq(H);qq(M);qq(L);qq(K);qq(J);i=I;return}else N=48}else N=48}else N=48}else N=48;while(0);if((N|0)==48)e=cc()|0;sq(b);break a}}}}O=Ob(8)|0;zq(O,47115);c[O>>2]=29736;o=0;mb(55,O|0,24,146);o=0}break}default:{O=Ob(8)|0;zq(O,47077);c[O>>2]=29736;o=0;mb(55,O|0,24,146);o=0}}while(0);e=cc()|0}while(0);if((N|0)==19){qq(B);N=20}if((N|0)==20){qq(C);N=21}if((N|0)==21)qq(D);qq(M);qq(L);qq(K);qq(J);bc(e|0)}function rf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;w=i;i=i+64|0;B=w+60|0;e=w+56|0;f=w+52|0;A=w+48|0;g=w+44|0;h=w+40|0;z=w+36|0;k=w+32|0;l=w+28|0;y=w+24|0;n=w+20|0;p=w+16|0;x=w+12|0;v=w+8|0;t=w+4|0;u=w;q=c[b+24>>2]|0;r=q<<1;yq(e,c[d>>2]|0);yq(f,(c[d>>2]|0)+4|0);j=r|1;o=0;m=kb(53,b|0,e|0,f|0,j|0)|0;s=o;o=0;if(s&1){B=cc()|0;qq(f);qq(e);e=B}else{c[B>>2]=m;qq(f);qq(e);yq(g,(c[d>>2]|0)+4|0);yq(h,(c[d>>2]|0)+8|0);o=0;s=kb(53,b|0,g|0,h|0,j|0)|0;f=o;o=0;if(f&1){e=cc()|0;qq(h);qq(g)}else{c[A>>2]=s;qq(h);qq(g);yq(k,(c[d>>2]|0)+8|0);yq(l,(c[d>>2]|0)+12|0);o=0;g=kb(53,b|0,k|0,l|0,j|0)|0;h=o;o=0;if(h&1){e=cc()|0;qq(l);qq(k)}else{c[z>>2]=g;qq(l);qq(k);yq(n,(c[d>>2]|0)+12|0);yq(p,c[d>>2]|0);o=0;f=kb(53,b|0,n|0,p|0,j|0)|0;d=o;o=0;if(d&1){e=cc()|0;qq(p);qq(n)}else{c[y>>2]=f;qq(p);qq(n);k=m+20|0;p=c[(c[k>>2]|0)+8>>2]|0;if((c[p>>2]&1|0)!=0?(c[p+(q>>4<<2)>>2]&1<<(r&30)|0)!=0:0){c[b+28>>2]=0;p=23}else p=13;do if((p|0)==13){p=c[(c[s+20>>2]|0)+8>>2]|0;if((c[p>>2]&1|0)!=0?(c[p+(q>>4<<2)>>2]&1<<(r&30)|0)!=0:0){c[b+28>>2]=1;p=23;break}p=c[(c[g+20>>2]|0)+8>>2]|0;if((c[p>>2]&1|0)!=0?(c[p+(q>>4<<2)>>2]&1<<(r&30)|0)!=0:0){c[b+28>>2]=2;p=23;break}p=c[(c[f+20>>2]|0)+8>>2]|0;if((c[p>>2]&1|0)!=0?(c[p+(q>>4<<2)>>2]&1<<(r&30)|0)!=0:0){c[b+28>>2]=3;p=23;break}p=Ob(8)|0;zq(p,47150);c[p>>2]=29736;o=0;mb(55,p|0,24,146);o=0;p=12}while(0);do if((p|0)==23){o=0;e=qa(111,24)|0;r=o;o=0;if(r&1)p=12;else{n=b+12|0;o=0;ma(90,e|0,((a[n>>0]|0)!=0?28:40)|0);r=o;o=0;if(r&1){x=cc()|0;Uz(e);e=x;break}c[x>>2]=0;Je(x,e);o=0;e=qa(111,24)|0;r=o;o=0;do if(!(r&1)){o=0;ma(90,e|0,((a[n>>0]|0)!=0?28:40)|0);r=o;o=0;if(r&1){w=cc()|0;Uz(e);e=w;break}c[v>>2]=0;Je(v,e);h=s+20|0;j=g+20|0;d=f+20|0;m=(c[v>>2]|0)+20|0;if(!(a[n>>0]|0)){g=0;do{do if((g|0)<5){f=g+2|0;e=f>>5;f=1<<f;if(c[(c[(c[k>>2]|0)+8>>2]|0)+(e<<2)>>2]&f){s=(c[(c[m>>2]|0)+8>>2]|0)+(g>>5<<2)|0;c[s>>2]=c[s>>2]|1<<g}if(c[(c[(c[h>>2]|0)+8>>2]|0)+(e<<2)>>2]&f){r=g+10|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<r}if(c[(c[(c[j>>2]|0)+8>>2]|0)+(e<<2)>>2]&f){r=g+20|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<r}if(!(c[(c[(c[d>>2]|0)+8>>2]|0)+(e<<2)>>2]&f))break;r=g+30|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<(r&31)}else{if((g|0)<=5)break;f=g+2|0;e=f>>5;f=1<<f;if(c[(c[(c[k>>2]|0)+8>>2]|0)+(e<<2)>>2]&f){r=g+-1|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<(r&31)}if(c[(c[(c[h>>2]|0)+8>>2]|0)+(e<<2)>>2]&f){r=g+9|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<r}if(c[(c[(c[j>>2]|0)+8>>2]|0)+(e<<2)>>2]&f){r=g+19|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<r}if(!(c[(c[(c[d>>2]|0)+8>>2]|0)+(e<<2)>>2]&f))break;r=g+29|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<(r&31)}while(0);g=g+1|0}while((g|0)!=11);h=b+28|0;e=c[x>>2]|0;j=e+20|0;f=c[(c[m>>2]|0)+8>>2]|0;g=0;do{s=(((c[h>>2]|0)*10|0)+g|0)%40|0;if(c[f+(s>>5<<2)>>2]&1<<(s&31)){s=(c[(c[j>>2]|0)+8>>2]|0)+(g>>5<<2)|0;c[s>>2]=c[s>>2]|1<<(g&31)}g=g+1|0}while((g|0)!=40)}else{l=c[(c[k>>2]|0)+8>>2]|0;k=c[(c[h>>2]|0)+8>>2]|0;j=c[(c[j>>2]|0)+8>>2]|0;e=c[(c[d>>2]|0)+8>>2]|0;h=0;do{g=h+2|0;f=g>>5;g=1<<g;if(c[l+(f<<2)>>2]&g){s=(c[(c[m>>2]|0)+8>>2]|0)+(h>>5<<2)|0;c[s>>2]=c[s>>2]|1<<h}if(c[k+(f<<2)>>2]&g){r=h+7|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<r}if(c[j+(f<<2)>>2]&g){r=h+14|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<r}if(c[e+(f<<2)>>2]&g){r=h+21|0;s=(c[(c[m>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[s>>2]=c[s>>2]|1<<r}h=h+1|0}while((h|0)!=7);h=b+28|0;e=c[x>>2]|0;j=e+20|0;f=c[(c[m>>2]|0)+8>>2]|0;g=0;do{s=(((c[h>>2]|0)*7|0)+g|0)%28|0;if(c[f+(s>>5<<2)>>2]&1<<(s&31)){s=(c[(c[j>>2]|0)+8>>2]|0)+(g>>5<<2)|0;c[s>>2]=c[s>>2]|1<<g}g=g+1|0}while((g|0)!=28)}c[t>>2]=0;Je(t,e);o=0;ma(100,t|0,(a[n>>0]|0)!=0|0);s=o;o=0;if(s&1){e=cc()|0;bq(t);bq(v);break}else{bq(t);c[u>>2]=0;Je(u,e);wf(b,u);bq(u);bq(v);bq(x);bq(y);bq(z);bq(A);bq(B);i=w;return}}else e=cc()|0;while(0);bq(x)}}while(0);if((p|0)==12)e=cc()|0;bq(y)}bq(z)}bq(A)}bq(B)}bc(e|0)}function sf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0.0;v=i;i=i+16|0;g=v+12|0;k=v+8|0;r=v+4|0;u=v;t=c[b+16>>2]|0;w=+(((t|0)>4|t<<1)+((t+-4|0)/8|0)|0)/(+(c[b+24>>2]|0)*2.0);t=c[d>>2]|0;f=c[t>>2]|0;e=c[f+8>>2]|0;m=c[t+8>>2]|0;l=c[m+8>>2]|0;h=e-l|0;f=c[f+12>>2]|0;m=c[m+12>>2]|0;j=f-m|0;y=w*+(((h|0)>0?1:-1)+h|0);l=~~(+(l|0)-y+.5);x=w*+(((j|0)>0?1:-1)+j|0);m=~~(+(m|0)-x+.5);e=~~(+(e|0)+y+.5);f=~~(+(f|0)+x+.5);j=c[t+4>>2]|0;h=c[j+8>>2]|0;t=c[t+12>>2]|0;s=c[t+8>>2]|0;p=h-s|0;j=c[j+12>>2]|0;t=c[t+12>>2]|0;q=j-t|0;x=w*+(((p|0)>0?1:-1)+p|0);s=~~(+(s|0)-x+.5);w=w*+(((q|0)>0?1:-1)+q|0);t=~~(+(t|0)-w+.5);h=~~(+(h|0)+x+.5);j=~~(+(j|0)+w+.5);if(((xf(b,e,f)|0?xf(b,h,j)|0:0)?xf(b,l,m)|0:0)?xf(b,s,t)|0:0){b=Sz(20)|0;c[b+4>>2]=0;c[b>>2]=29756;n=b+8|0;c[n>>2]=0;p=b+12|0;c[p>>2]=0;q=b+16|0;c[q>>2]=0;d=Sz(16)|0;o=0;wa(42,d|0,+(+(e|0)),+(+(f|0)));f=o;o=0;do if(f&1){v=cc()|0;Uz(d);d=v}else{c[g>>2]=0;vq(g,d);o=0;ma(101,n|0,g|0);f=o;o=0;if(f&1){d=cc()|0;uq(g);break}uq(g);d=Sz(16)|0;o=0;wa(42,d|0,+(+(h|0)),+(+(j|0)));j=o;o=0;if(j&1){v=cc()|0;Uz(d);d=v;break}c[k>>2]=0;vq(k,d);d=c[p>>2]|0;if(d>>>0>=(c[q>>2]|0)>>>0){o=0;ma(101,n|0,k|0);j=o;o=0;if(j&1){d=cc()|0;uq(k);break}}else{c[d>>2]=0;vq(d,c[k>>2]|0);c[p>>2]=(c[p>>2]|0)+4}uq(k);d=Sz(16)|0;o=0;wa(42,d|0,+(+(l|0)),+(+(m|0)));m=o;o=0;if(m&1){v=cc()|0;Uz(d);d=v;break}c[r>>2]=0;vq(r,d);d=c[p>>2]|0;if(d>>>0>=(c[q>>2]|0)>>>0){o=0;ma(101,n|0,r|0);m=o;o=0;if(m&1){d=cc()|0;uq(r);break}}else{c[d>>2]=0;vq(d,c[r>>2]|0);c[p>>2]=(c[p>>2]|0)+4}uq(r);d=Sz(16)|0;o=0;wa(42,d|0,+(+(s|0)),+(+(t|0)));t=o;o=0;if(t&1){v=cc()|0;Uz(d);d=v;break}c[u>>2]=0;vq(u,d);d=c[p>>2]|0;if(d>>>0>=(c[q>>2]|0)>>>0){o=0;ma(101,n|0,u|0);t=o;o=0;if(t&1){d=cc()|0;uq(u);break}}else{c[d>>2]=0;vq(d,c[u>>2]|0);c[p>>2]=(c[p>>2]|0)+4}uq(u);Dq(a,b);i=v;return}while(0);bc(d|0)}v=Ob(8)|0;zq(v,47182);c[v>>2]=29736;Hc(v|0,24,146)}function tf(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0.0,k=0.0,l=0,m=0,n=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0,w=0,x=0;x=i;i=i+16|0;w=x+4|0;m=x;l=c[b+16>>2]|0;do if(!(a[b+12>>0]|0)){b=l<<2;if((l|0)<5){b=b+15|0;break}else{b=b+17+(((l+-4|0)/8|0)<<1)|0;break}}else b=(l<<2)+11|0;while(0);Zp(m,d);j=+(b|0)+-.5;d=c[e>>2]|0;o=0;k=+Ka(c[(c[d>>2]|0)+8>>2]|0,d|0);d=o;o=0;if((((((((!(d&1)?(e=c[e>>2]|0,o=0,n=+Ka(c[(c[e>>2]|0)+12>>2]|0,e|0),e=o,o=0,!(e&1)):0)?(e=c[h>>2]|0,o=0,p=+Ka(c[(c[e>>2]|0)+8>>2]|0,e|0),e=o,o=0,!(e&1)):0)?(h=c[h>>2]|0,o=0,q=+Ka(c[(c[h>>2]|0)+12>>2]|0,h|0),h=o,o=0,!(h&1)):0)?(h=c[g>>2]|0,o=0,r=+Ka(c[(c[h>>2]|0)+8>>2]|0,h|0),h=o,o=0,!(h&1)):0)?(h=c[g>>2]|0,o=0,s=+Ka(c[(c[h>>2]|0)+12>>2]|0,h|0),h=o,o=0,!(h&1)):0)?(h=c[f>>2]|0,o=0,t=+Ka(c[(c[h>>2]|0)+8>>2]|0,h|0),h=o,o=0,!(h&1)):0)?(h=c[f>>2]|0,o=0,u=+Ka(c[(c[h>>2]|0)+12>>2]|0,h|0),h=o,o=0,!(h&1)):0)?(o=0,v=ab(42,w|0,m|0,b|0,.5,.5,+j,.5,+j,+j,.5,+j,+k,+n,+p,+q,+r,+s,+t,+u)|0,h=o,o=0,!(h&1)):0){Yd(m);i=x;return v|0}x=cc()|0;Yd(m);bc(x|0);return 0}function uf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0.0,k=0.0,l=0,m=0.0,n=0.0,p=0,q=0;p=i;i=i+16|0;l=p+8|0;f=p+4|0;g=p;h=Sz(24)|0;o=0;ma(90,h|0,e|0);q=o;o=0;if(q&1){q=cc()|0;Uz(h);bc(q|0)}c[l>>2]=0;Je(l,h);yq(f,b);yq(g,d);n=+zf(f,g);qq(g);qq(f);k=n/+(e+-1|0);g=c[d>>2]|0;d=c[b>>2]|0;f=c[d+8>>2]|0;m=k*+((c[g+8>>2]|0)-f|0)/n;d=c[d+12>>2]|0;n=k*+((c[g+12>>2]|0)-d|0)/n;a=a+8|0;g=c[l>>2]|0;h=g+20|0;if((e|0)>0){b=0;k=+(f|0);j=+(d|0);while(1){if(eq(c[a>>2]|0,~~(k+.5),~~(j+.5))|0){q=(c[(c[h>>2]|0)+8>>2]|0)+(b>>5<<2)|0;c[q>>2]=c[q>>2]|1<<(b&31)}b=b+1|0;if((b|0)>=(e|0))break;else{k=m+k;j=n+j}}}i=p;return g|0}function vf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;u=t+20|0;q=t+16|0;n=t+12|0;p=t;s=b?2:4;k=b?7:10;l=k-s|0;b=Sz(20)|0;o=0;ma(102,b|0,k|0);j=o;o=0;if(j&1){d=cc()|0;Uz(b)}else{Fq(u,b);f=(c[u+8>>2]|0)+8|0;b=c[(c[(c[a>>2]|0)+20>>2]|0)+8>>2]|0;h=0;do{e=(h<<2)+4|0;g=1;j=1;while(1){v=e-j|0;if(c[b+(v>>5<<2)>>2]&1<<(v&31)){v=(c[f>>2]|0)+(h<<2)|0;c[v>>2]=(c[v>>2]|0)+g}j=j+1|0;if((j|0)==5)break;else g=g<<1}h=h+1|0}while((h|0)<(k|0));iq(n,4364);o=0;ma(92,q|0,n|0);v=o;o=0;do if(v&1){e=cc(256)|0;b=D;lq(n);r=16}else{lq(n);mq(p,u);o=0;mb(56,q|0,p|0,l|0);v=o;o=0;if(v&1){e=cc(256)|0;b=D;nq(p);Fh(q);r=16;break}nq(p);Fh(q);o=0;ka(304,c[a>>2]|0);v=o;o=0;if(v&1){d=cc()|0;break}d=c[f>>2]|0;g=0;do{b=(g<<2)+4|0;e=d+(g<<2)|0;f=1;h=1;while(1){if((c[e>>2]&f|0)==(f|0)){r=b-h|0;v=(c[(c[(c[a>>2]|0)+20>>2]|0)+8>>2]|0)+(r>>5<<2)|0;c[v>>2]=c[v>>2]|1<<(r&31)}h=h+1|0;if((h|0)==5)break;else f=f<<1}g=g+1|0}while((g|0)<(s|0));nq(u);i=t;return}while(0);if((r|0)==16)if((b|0)==(Xb(256)|0)){fc(e|0)|0;b=Ob(8)|0;zq(b,47215);c[b>>2]=29736;o=0;mb(55,b|0,24,146);o=0;b=cc()|0;o=0;ob(44);v=o;o=0;if(v&1){v=cc(0)|0;oq(v)}else d=b}else d=e;nq(u)}bc(d|0)}function wf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=b+16|0;c[j>>2]=0;k=b+20|0;c[k>>2]=0;h=(a[b+12>>0]|0)==0;e=h?5:2;f=c[(c[(c[d>>2]|0)+20>>2]|0)+8>>2]|0;b=0;g=0;do{b=b<<1;c[j>>2]=b;if(c[f+(g>>5<<2)>>2]&1<<g){b=b|1;c[j>>2]=b}g=g+1|0}while((g|0)<(e|0));i=b;g=e+(h?11:6)|0;f=c[(c[(c[d>>2]|0)+20>>2]|0)+8>>2]|0;b=0;do{b=b<<1;c[k>>2]=b;if(c[f+(e>>5<<2)>>2]&1<<(e&31)){b=b|1;c[k>>2]=b}e=e+1|0}while((e|0)<(g|0));c[j>>2]=i+1;c[k>>2]=b+1;return}function xf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>-1?(e=a+8|0,(d|0)>0&(ig(c[e>>2]|0)|0)>(b|0)):0)e=(jg(c[e>>2]|0)|0)>(d|0);else e=0;return e|0}function yf(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;m=i;i=i+16|0;l=m;b=c[b>>2]|0;k=a+8|0;g=c[b+8>>2]|0;b=c[b+12>>2]|0;while(1){j=b+f|0;h=g+e|0;if(!(xf(a,h,j)|0))break;if((eq(c[k>>2]|0,h,j)|0)^d)break;else{g=h;b=j}}a:do if(xf(a,g,b)|0)do{if((eq(c[k>>2]|0,g,b)|0)^d)break a;g=g+e|0}while(xf(a,g,b)|0);while(0);g=g-e|0;b:do if(xf(a,g,b)|0)do{if((eq(c[k>>2]|0,g,b)|0)^d)break b;b=b+f|0}while(xf(a,g,b)|0);while(0);a=Sz(16)|0;c[a+4>>2]=0;c[a>>2]=29720;c[a+8>>2]=g;c[a+12>>2]=b-f;c[l>>2]=0;pq(l,a);i=m;return c[l>>2]|0}function zf(a,b){a=a|0;b=b|0;var d=0;d=c[a>>2]|0;a=c[b>>2]|0;b=(c[d+8>>2]|0)-(c[a+8>>2]|0)|0;b=$(b,b)|0;a=(c[d+12>>2]|0)-(c[a+12>>2]|0)|0;return +(+P(+(+(($(a,a)|0)+b|0))))}function Af(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;g=r+28|0;h=r+24|0;j=r+20|0;k=r+16|0;l=r+12|0;m=r+8|0;p=r+4|0;q=r;n=Sz(16)|0;s=c[b>>2]|0;t=(c[s+8>>2]|0)+-3|0;s=(c[s+12>>2]|0)+3|0;c[n+4>>2]=0;c[n>>2]=29720;c[n+8>>2]=t;c[n+12>>2]=s;pq(b,n);n=Sz(16)|0;s=c[d>>2]|0;t=(c[s+8>>2]|0)+-3|0;s=(c[s+12>>2]|0)+-3|0;c[n+4>>2]=0;c[n>>2]=29720;c[n+8>>2]=t;c[n+12>>2]=s;pq(d,n);n=Sz(16)|0;s=c[e>>2]|0;t=(c[s+8>>2]|0)+3|0;s=(c[s+12>>2]|0)+-3|0;c[n+4>>2]=0;c[n>>2]=29720;c[n+8>>2]=t;c[n+12>>2]=s;pq(e,n);n=Sz(16)|0;s=c[f>>2]|0;t=(c[s+8>>2]|0)+3|0;s=(c[s+12>>2]|0)+3|0;c[n+4>>2]=0;c[n>>2]=29720;c[n+8>>2]=t;c[n+12>>2]=s;pq(f,n);yq(g,f);yq(h,b);o=0;n=ya(92,a|0,g|0,h|0)|0;s=o;o=0;a:do if(s&1){t=cc()|0;qq(h);qq(g);g=t}else{qq(h);qq(g);do if(n){yq(j,b);yq(k,d);o=0;g=ya(92,a|0,j|0,k|0)|0;t=o;o=0;if(t&1){g=cc()|0;qq(k);qq(j);break a}qq(k);qq(j);if((g|0)==(n|0)){yq(l,d);yq(m,e);o=0;g=ya(92,a|0,l|0,m|0)|0;t=o;o=0;if(t&1){g=cc()|0;qq(m);qq(l);break a}qq(m);qq(l);if((g|0)==(n|0)){yq(p,e);yq(q,f);o=0;g=ya(92,a|0,p|0,q|0)|0;t=o;o=0;if(t&1){g=cc()|0;qq(q);qq(p);break a}else{qq(q);qq(p);g=(g|0)==(n|0);break}}else g=0}else g=0}else g=0;while(0);i=r;return g|0}while(0);bc(g|0);return 0}function Bf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0,g=0.0,h=0,j=0.0,k=0.0,l=0,m=0.0,n=0;n=i;i=i+16|0;l=n+4|0;f=n;yq(l,b);yq(f,d);m=+zf(l,f);qq(f);qq(l);l=c[d>>2]|0;f=c[b>>2]|0;d=c[f+8>>2]|0;j=+((c[l+8>>2]|0)-d|0)/m;f=c[f+12>>2]|0;k=+((c[l+12>>2]|0)-f|0)/m;a=c[a+8>>2]|0;l=eq(a,d,f)|0;if(m>0.0){b=0;h=0;g=+(d|0);e=+(f|0);do{g=j+g;e=k+e;b=((l^(eq(a,~~(g+.5),~~(e+.5))|0))&1)+b|0;h=h+1|0}while(+(h|0)<m);e=+(b|0)}else e=0.0;e=e/m;if(e>.10000000149011612&e<.8999999761581421)b=0;else b=l^e<=.1?-1:1;i=n;return b|0}function Cf(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4156;Ud(a+8|0,b);return}function Df(a){a=a|0;c[a>>2]=4156;Vd(a+8|0);return}function Ef(a){a=a|0;c[a>>2]=4156;Vd(a+8|0);Uz(a);return}function Ff(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Ud(b,a+8|0);i=d;return c[b>>2]|0}function Gf(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4184;Gq(a+8|0,b);return}function Hf(a){a=a|0;c[a>>2]=4184;le(a+8|0);return}function If(a){a=a|0;c[a>>2]=4184;le(a+8|0);Uz(a);return}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;a=c[a+8>>2]|0;g=c[(c[a>>2]|0)+8>>2]|0;Wd(e,d);o=0;d=ya(g|0,a|0,b|0,e|0)|0;b=o;o=0;if(b&1){g=cc()|0;bq(e);bc(g|0)}else{bq(e);i=f;return d|0}return 0}function Kf(a){a=a|0;a=c[a+8>>2]|0;return bd[c[(c[a>>2]|0)+12>>2]&255](a)|0}function Lf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;a=Ff(c[a+8>>2]|0)|0;c[d>>2]=a;a=c[a+8>>2]|0;Vd(d);i=b;return a|0}function Mf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;a=Ff(c[a+8>>2]|0)|0;c[d>>2]=a;a=c[a+12>>2]|0;Vd(d);i=b;return a|0}function Nf(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;m=i;i=i+16|0;j=m+12|0;k=m+8|0;l=m+4|0;n=m;p=Sz(12)|0;g=c[a+8>>2]|0;h=c[(c[g>>2]|0)+16>>2]|0;o=0;a=qa(126,g|0)|0;q=o;o=0;if(q&1)a=cc()|0;else{c[n>>2]=a;o=0;a=Ya(c[(c[a>>2]|0)+20>>2]|0,a|0,b|0,d|0,e|0,f|0)|0;q=o;o=0;do if(!(q&1)){c[l>>2]=a;o=0;a=Wa(h|0,g|0,l|0)|0;q=o;o=0;if(q&1){a=cc()|0;Vd(l);break}else{c[k>>2]=a;Gf(p,k);c[j>>2]=0;Ne(j,p);le(k);Vd(l);Vd(n);i=m;return c[j>>2]|0}}else a=cc()|0;while(0);Vd(n)}Uz(p);bc(a|0);return 0}function Of(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;b=d;a=Ff(c[a+8>>2]|0)|0;c[b>>2]=a;o=0;a=qa(c[(c[a>>2]|0)+24>>2]|0,a|0)|0;e=o;o=0;if(e&1){e=cc()|0;Vd(b);bc(e|0)}else{Vd(b);i=d;return a|0}return 0}function Pf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+16|0;e=h+12|0;f=h+8|0;g=h+4|0;j=h;k=Sz(12)|0;b=c[a+8>>2]|0;d=c[(c[b>>2]|0)+16>>2]|0;o=0;a=qa(126,b|0)|0;l=o;o=0;if(l&1)a=cc()|0;else{c[j>>2]=a;o=0;a=qa(c[(c[a>>2]|0)+32>>2]|0,a|0)|0;l=o;o=0;do if(!(l&1)){c[g>>2]=a;o=0;a=Wa(d|0,b|0,g|0)|0;l=o;o=0;if(l&1){a=cc()|0;Vd(g);break}else{c[f>>2]=a;Gf(k,f);c[e>>2]=0;Ne(e,k);le(f);Vd(g);Vd(j);i=h;return c[e>>2]|0}}else a=cc()|0;while(0);Vd(j)}Uz(k);bc(a|0);return 0}function Qf(a){a=a|0;c[a+4>>2]=0;c[a>>2]=4200;return}function Rf(a){a=a|0;Aq(a);return}function Sf(a){a=a|0;Aq(a);Uz(a);return}function Tf(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4220;c[a+8>>2]=b;kq(a+12|0,b+31>>5);return}function Uf(a){a=a|0;c[a>>2]=4220;nq(a+12|0);return}function Vf(a){a=a|0;c[a>>2]=4220;nq(a+12|0);Uz(a);return}function Wf(a){a=a|0;return c[a+8>>2]|0}function Xf(a){a=a|0;var b=0,d=0;d=c[a+20>>2]|0;a=c[d+8>>2]|0;d=(c[d+12>>2]|0)-a|0;b=d>>2;if((d|0)>0){d=0;do{c[a+(d<<2)>>2]=0;d=d+1|0}while((d|0)<(b|0))}return}function Yf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;if((d|0)<(b|0)){d=Ob(8)|0;o=0;ka(305,d|0);e=o;o=0;if(e&1){e=cc()|0;Nb(d|0);bc(e|0)}else Hc(d|0,240,66)}a:do if((d|0)==(b|0))d=1;else{i=d+-1|0;j=b>>5;k=i>>5;h=b&31;i=i&31;f=a+20|0;g=j;while(1){if((g|0)>(k|0)){d=1;break a}d=(g|0)>(j|0)?0:h;a=(g|0)<(k|0)?31:i;if(!((d|0)==0&(a|0)==31))if(d>>>0>a>>>0)d=0;else{b=d;d=0;while(1){d=1<<b|d;if((b|0)<(a|0))b=b+1|0;else break}}else d=-1;if((c[(c[(c[f>>2]|0)+8>>2]|0)+(g<<2)>>2]&d|0)==((e?d:0)|0))g=g+1|0;else{d=0;break}}}while(0);return d|0}function Zf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;j=i;i=i+16|0;h=j;b=a+20|0;e=c[b>>2]|0;kq(h,(c[e+12>>2]|0)-(c[e+8>>2]|0)>>2);e=c[a+8>>2]|0;f=c[h+8>>2]|0;g=f+8|0;if((e|0)>0){b=c[(c[b>>2]|0)+8>>2]|0;d=0;do{k=e-d+-1|0;if(c[b+(k>>5<<2)>>2]&1<<(k&31)){k=(c[g>>2]|0)+(d>>5<<2)|0;c[k>>2]=c[k>>2]|1<<(d&31)}d=d+1|0}while((e|0)>(d|0))}Hq(a+12|0,f);nq(h);i=j;return}function _f(a,b){a=a|0;b=b|0;Wd(a,b);o=0;ka(306,c[a>>2]|0);b=o;o=0;if(b&1){b=cc()|0;bq(a);bc(b|0)}else return}function $f(a){a=a|0;var b=0;o=0;ka(306,c[a>>2]|0);b=o;o=0;if(b&1){b=cc(0)|0;bq(a);oq(b)}else{bq(a);return}}function ag(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[a+8>>2]|0;a:do if((d|0)>(b|0)){e=b>>5;f=c[a+20>>2]|0;g=c[f+8>>2]|0;a=c[g+(e<<2)>>2]&-1<<(b&31);if(!a){f=(c[f+12>>2]|0)-g>>2;a=e;while(1){e=a+1|0;if((e|0)==(f|0))break a;a=c[g+(e<<2)>>2]|0;if(!a)a=e;else break}}g=(Iq(a)|0)+(e<<5)|0;d=(g|0)>(d|0)?d:g}while(0);return d|0}function bg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[a+8>>2]|0;a:do if((d|0)>(b|0)){e=b>>5;f=c[a+20>>2]|0;g=c[f+8>>2]|0;a=-1<<(b&31)&~c[g+(e<<2)>>2];if(!a){f=(c[f+12>>2]|0)-g>>2;do{e=e+1|0;if((e|0)==(f|0))break a;a=c[g+(e<<2)>>2]|0}while((a|0)==-1);a=~a}g=(Iq(a)|0)+(e<<5)|0;d=(g|0)>(d|0)?d:g}while(0);return d|0}function cg(a,b){a=a|0;b=b|0;var d=0;c[a+4>>2]=0;c[a>>2]=4236;d=a+20|0;c[a+24>>2]=0;c[d>>2]=29772;c[a+28>>2]=0;o=0;mb(60,a|0,b|0,b|0);a=o;o=0;if(a&1){a=cc()|0;nq(d);bc(a|0)}else return}function dg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;c[a+4>>2]=0;c[a>>2]=4236;e=a+20|0;c[a+24>>2]=0;c[e>>2]=29772;c[a+28>>2]=0;o=0;mb(60,a|0,b|0,d|0);b=o;o=0;if(b&1){b=cc()|0;nq(e);bc(b|0)}else return}function eg(a){a=a|0;c[a>>2]=4236;nq(a+20|0);return}function fg(a){a=a|0;c[a>>2]=4236;nq(a+20|0);Uz(a);return}function gg(a,b,d){a=a|0;b=b|0;d=d|0;d=($(c[a+16>>2]|0,d)|0)+(b>>5)|0;d=(c[(c[a+28>>2]|0)+8>>2]|0)+(d<<2)|0;c[d>>2]=c[d>>2]^1<<(b&31);return}function hg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if((d|b|0)<0){a=Ob(8)|0;o=0;ma(103,a|0,47247);b=o;o=0;if(b&1){b=cc()|0;Nb(a|0);a=b;break}else Hc(a|0,240,66)}else{if((e|0)<1|(f|0)<1){a=Ob(8)|0;o=0;ma(103,a|0,47280);b=o;o=0;if(b&1){b=cc()|0;Nb(a|0);a=b;break}else Hc(a|0,240,66)}i=e+b|0;j=f+d|0;if((j|0)<=(c[a+12>>2]|0)?(i|0)<=(c[a+8>>2]|0):0){k=a+16|0;h=a+28|0;if((f|0)>0){g=(e|0)>0;do{a=$(c[k>>2]|0,d)|0;if(g){f=c[(c[h>>2]|0)+8>>2]|0;e=b;do{l=f+((e>>5)+a<<2)|0;c[l>>2]=c[l>>2]|1<<(e&31);e=e+1|0}while((e|0)<(i|0))}d=d+1|0}while((d|0)<(j|0))}return}a=Ob(8)|0;o=0;ma(103,a|0,47316);l=o;o=0;if(l&1){l=cc()|0;Nb(a|0);a=l;break}else Hc(a|0,240,66)}while(0);bc(a|0)}function ig(a){a=a|0;return c[a+8>>2]|0}function jg(a){a=a|0;return c[a+12>>2]|0}function kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;n=i;i=i+176|0;h=n+152|0;l=n+16|0;k=n;if(e>>>0<=32?(lg(b)|0)>=(e|0):0){m=b+24|0;h=c[m>>2]|0;if((h|0)>0){f=8-h|0;l=(f|0)>(e|0)?e:f;f=f-l|0;j=b+20|0;k=c[j>>2]|0;f=(a[(c[(c[b+16>>2]|0)+8>>2]|0)+k>>0]&255>>>(8-l|0)<<f)>>f;g=e-l|0;h=l+h|0;c[m>>2]=h;if((h|0)==8){c[m>>2]=0;c[j>>2]=k+1;h=0}}else{g=e;f=0}if((g|0)>0){l=b+20|0;e=b+16|0;k=g+((g|0)<7?~g:-8)+8&-8;if((g|0)>7){j=g;do{b=c[l>>2]|0;f=d[(c[(c[e>>2]|0)+8>>2]|0)+b>>0]|f<<8;c[l>>2]=b+1;j=j+-8|0}while((j|0)>7)}g=g-k|0;if((g|0)>0){b=8-g|0;f=(a[(c[(c[e>>2]|0)+8>>2]|0)+(c[l>>2]|0)>>0]&255>>>b<<b)>>b|f<<g;c[m>>2]=h+g}}i=n;return f|0}j=l+56|0;g=l+4|0;c[l>>2]=29792;c[j>>2]=29812;o=0;ma(104,l+56|0,g|0);n=o;o=0;if(n&1)f=cc()|0;else{c[l+128>>2]=0;c[l+132>>2]=-1;c[l>>2]=29832;c[l+56>>2]=29852;o=0;ka(307,g|0);n=o;o=0;do if(n&1)f=cc()|0;else{c[g>>2]=29868;f=l+36|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[l+48>>2]=0;c[l+52>>2]=16;c[h>>2]=0;c[h+4>>2]=0;c[h+8>>2]=0;o=0;ma(105,g|0,h|0);n=o;o=0;if(n&1){n=cc()|0;IC(h);IC(f);nD(g);f=n;break}IC(h);o=0;Wa(63,l|0,e|0)|0;n=o;o=0;do if(n&1)f=cc()|0;else{h=Ob(8)|0;o=0;ma(106,k|0,g|0);n=o;o=0;if(!(n&1)){o=0;ma(103,h|0,((a[k>>0]&1)==0?k+1|0:c[k+8>>2]|0)|0);n=o;o=0;if(n&1)g=1;else{o=0;mb(55,h|0,240,66);o=0;g=0}f=cc()|0;IC(k);if(!g)break}else f=cc()|0;Nb(h|0)}while(0);Nq(l);bc(f|0)}while(0)}iD(j);bc(f|0);return 0}function lg(a){a=a|0;var b=0;b=c[a+16>>2]|0;return ((c[b+12>>2]|0)-(c[b+8>>2]|0)-(c[a+20>>2]|0)<<3)-(c[a+24>>2]|0)|0}function mg(){ng(29940,29952);ng(29960,29972);ng(29984,29992);ng(30004,30012);ng(30024,30032);ng(30044,30052);ng(30064,30072);ng(30084,30092);ng(30104,30112);ng(30124,30132);ng(30144,30152);ng(30164,30172);ng(30184,30192);ng(30204,30212);ng(30224,30232);ng(30244,30252);ng(30264,30272);ng(30284,30292);ng(30304,30312);ng(30324,30332);ng(30344,30352);ng(30364,30372);ng(30388,30396);ng(30408,30420);ng(30432,30440);ng(30448,30456);ng(30476,30484);return 1}function ng(a,b){a=a|0;b=b|0;var c=0;c=Sz(16)|0;o=0;mb(61,c|0,a|0,b|0);a=o;o=0;if(a&1){a=cc()|0;Uz(c);bc(a|0)}else return}function og(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;i=i+16|0;h=g+12|0;f=g;c[a+4>>2]=0;c[a>>2]=30504;j=a+8|0;c[j>>2]=b;e=a+12|0;c[e>>2]=d;c[h>>2]=0;Oq(h,a);b=c[j>>2]|0;a:do if((c[b>>2]|0)==-1)d=7;else{while(1){o=0;d=Wa(64,4244,b|0)|0;j=o;o=0;if(j&1)break;Oq(d,c[h>>2]|0);b=b+4|0;if((c[b>>2]|0)==-1){d=7;break a}}b=cc()|0;d=6}while(0);b:do if((d|0)==7){d=c[e>>2]|0;b=c[d>>2]|0;c:do if(b){while(1){j=iC(b)|0;o=0;mb(57,f|0,b|0,j|0);j=o;o=0;if(j&1){d=4;break}o=0;b=Wa(65,4256,f|0)|0;j=o;o=0;if(j&1){d=11;break}Oq(b,c[h>>2]|0);IC(f);d=d+4|0;b=c[d>>2]|0;if(!b)break c}if((d|0)==4){b=cc()|0;d=6;break b}else if((d|0)==11){b=cc()|0;IC(f);break b}}while(0);Rq(h);i=g;return}while(0);Rq(h);bc(b|0)}function pg(a){a=a|0;return c[c[a+12>>2]>>2]|0}function qg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;if(a>>>0<=899){a=c[(Pq(4244,b)|0)>>2]|0;i=d;return a|0}b=Ob(8)|0;o=0;ka(308,b|0);d=o;o=0;if(d&1){d=cc()|0;Nb(b|0);bc(d|0)}else Hc(b|0,320,76);return 0}function rg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;c[a+4>>2]=0;c[a>>2]=30520;h=a+8|0;Pd(h,b);g=a+20|0;Sq(g,d);b=a+24|0;Tq(b,e);o=0;ma(82,a+36|0,f|0);a=o;o=0;if(a&1){a=cc()|0;Uq(b);ne(g);Sd(h);bc(a|0)}else return}function sg(a,b,d){a=a|0;b=b|0;d=d|0;c[a+4>>2]=0;c[a>>2]=30520;Pd(a+8|0,b);Sq(a+20|0,d);c[a+28>>2]=0;c[a+24>>2]=30536;c[a+32>>2]=0;a=a+36|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function tg(a,b){a=a|0;b=b|0;Pd(a,b+8|0);return}function ug(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Sq(b,a+20|0);i=d;return c[b>>2]|0}function vg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;c[a+4>>2]=0;c[a>>2]=29704;d=a+8|0;Zp(d,b);o=0;e=qa(121,c[b>>2]|0)|0;h=o;o=0;do if(!(h&1)?(f=a+12|0,c[f>>2]=e,o=0,g=qa(122,c[b>>2]|0)|0,h=o,o=0,!(h&1)):0){c[a+16>>2]=g;h=c[f>>2]|0;e=h-(c[1067]|0)>>1;c[a+20>>2]=e;b=(c[1067]|0)+h>>1;c[a+24>>2]=b;i=g-(c[1067]|0)>>1;c[a+32>>2]=i;f=(c[1067]|0)+g>>1;c[a+28>>2]=f;if((i|e|0)>-1&(f|0)<(g|0)&(b|0)<(h|0))return;else{i=Ob(8)|0;zq(i,47354);c[i>>2]=30552;o=0;mb(55,i|0,856,146);o=0;break}}while(0);i=cc()|0;Yd(d);bc(i|0)}function wg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;c[a+4>>2]=0;c[a>>2]=29704;g=a+8|0;Zp(g,b);o=0;h=qa(121,c[b>>2]|0)|0;k=o;o=0;if(!(k&1)?(i=a+12|0,c[i>>2]=h,o=0,j=qa(122,c[b>>2]|0)|0,k=o,o=0,!(k&1)):0){c[a+16>>2]=j;b=d>>1;d=e-b|0;c[a+20>>2]=d;k=b+e|0;c[a+24>>2]=k;e=f-b|0;c[a+32>>2]=e;f=b+f|0;c[a+28>>2]=f;if((e|d|0)>-1&(f|0)<(j|0)?(k|0)<(c[i>>2]|0):0)return;k=Ob(8)|0;zq(k,47354);c[k>>2]=30552;o=0;mb(55,k|0,856,146);o=0}k=cc()|0;Yd(g);bc(k|0)}function xg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;B=i;i=i+48|0;F=B+44|0;q=B+40|0;E=B+36|0;r=B+32|0;D=B+28|0;v=B+24|0;C=B+20|0;w=B+16|0;x=B+12|0;y=B+8|0;z=B+4|0;A=B;l=b+12|0;m=b+16|0;n=c[l>>2]|0;p=0;h=c[b+28>>2]|0;k=c[b+20>>2]|0;g=c[b+24>>2]|0;e=c[b+32>>2]|0;while(1){d=0;while(1){if((g|0)>=(n|0)){j=n;break}j=yg(b,e,h,g,0)|0;d=j?1:d;g=(j&1)+g|0;if(!j){u=3;break}}if((u|0)==3){u=0;j=c[l>>2]|0}if((g|0)>=(j|0))break;j=c[m>>2]|0;while(1){if((h|0)>=(j|0)){t=h;break}t=yg(b,k,g,h,1)|0;h=(t&1)+h|0;d=t?1:d;if(!t){u=8;break}}if((u|0)==8){u=0;j=c[m>>2]|0;t=h}if((t|0)>=(j|0))break;if((k|0)>-1){f=k;do{k=yg(b,e,t,f,0)|0;d=k?1:d;f=(k<<31>>31)+f|0}while(k&(f|0)>-1)}else f=k;if((f|0)<0)break;if((e|0)>-1){do{s=yg(b,f,g,e,1)|0;e=(s<<31>>31)+e|0;d=s?1:d}while((e|0)>-1&s);s=e}else s=e;if((s|0)<0)break;k=(d&1)!=0;p=p|k;if(!k){u=19;break}else{h=t;k=f;e=s}}if((u|0)==19?p:0){k=g-f|0;c[F>>2]=0;vq(F,0);e=1;while(1){if((e|0)>=(k|0)){u=26;break}o=0;d=Ya(66,b|0,f|0,t-e|0,e+f|0,t|0)|0;u=o;o=0;if(u&1){u=24;break}c[q>>2]=d;vq(F,d);uq(q);d=c[F>>2]|0;if(!d)e=e+1|0;else{j=d;u=28;break}}if((u|0)==24){d=cc()|0;u=25}else if((u|0)==26){d=c[F>>2]|0;if(!d){d=Ob(8)|0;zq(d,47396);c[d>>2]=30552;o=0;mb(55,d|0,856,146);o=0;d=cc()|0;u=25}else{j=d;u=28}}if((u|0)!=25)if((u|0)==28){c[E>>2]=0;vq(E,0);e=1;while(1){if((e|0)>=(k|0)){u=34;break}o=0;d=Ya(66,b|0,f|0,e+s|0,e+f|0,s|0)|0;u=o;o=0;if(u&1){u=32;break}c[r>>2]=d;vq(E,d);uq(r);d=c[E>>2]|0;if(!d)e=e+1|0;else{h=d;u=36;break}}if((u|0)==32){d=cc()|0;u=33}else if((u|0)==34){d=c[E>>2]|0;if(!d){d=Ob(8)|0;zq(d,47406);c[d>>2]=30552;o=0;mb(55,d|0,856,146);o=0;d=cc()|0;u=33}else{h=d;u=36}}if((u|0)!=33)if((u|0)==36){c[D>>2]=0;vq(D,0);e=1;while(1){if((e|0)>=(k|0)){u=42;break}o=0;d=Ya(66,b|0,g|0,e+s|0,g-e|0,s|0)|0;u=o;o=0;if(u&1){u=40;break}c[v>>2]=d;vq(D,d);uq(v);d=c[D>>2]|0;if(!d)e=e+1|0;else{f=d;u=44;break}}if((u|0)==40){d=cc()|0;u=41}else if((u|0)==42){d=c[D>>2]|0;if(!d){d=Ob(8)|0;zq(d,47416);c[d>>2]=30552;o=0;mb(55,d|0,856,146);o=0;d=cc()|0;u=41}else{f=d;u=44}}if((u|0)!=41)if((u|0)==44){c[C>>2]=0;vq(C,0);e=1;while(1){if((e|0)>=(k|0)){u=50;break}o=0;d=Ya(66,b|0,g|0,t-e|0,g-e|0,t|0)|0;v=o;o=0;if(v&1){u=48;break}c[w>>2]=d;vq(C,d);uq(w);d=c[C>>2]|0;if(!d)e=e+1|0;else{u=52;break}}if((u|0)==48){d=cc()|0;u=49}else if((u|0)==50){d=c[C>>2]|0;if(!d){d=Ob(8)|0;zq(d,47426);c[d>>2]=30552;o=0;mb(55,d|0,856,146);o=0;d=cc()|0;u=49}else u=52}do if((u|0)!=49)if((u|0)==52){c[x>>2]=0;vq(x,d);c[y>>2]=0;vq(y,j);c[z>>2]=0;vq(z,f);c[A>>2]=0;vq(A,h);o=0;Ca(50,a|0,b|0,x|0,y|0,z|0,A|0);b=o;o=0;if(b&1){d=cc()|0;uq(A);uq(z);uq(y);uq(x);break}else{uq(A);uq(z);uq(y);uq(x);uq(C);uq(D);uq(E);uq(F);i=B;return}}while(0);uq(C)}uq(D)}uq(E)}uq(F);bc(d|0)}F=Ob(8)|0;zq(F,47436);c[F>>2]=30552;Hc(F|0,856,146)}function yg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;a=a+8|0;a:do if(f)while(1){if((b|0)>(d|0)){b=0;break a}if(eq(c[a>>2]|0,b,e)|0){b=1;break}else b=b+1|0}else while(1){if((b|0)>(d|0)){b=0;break a}if(eq(c[a>>2]|0,e,b)|0){b=1;break}else b=b+1|0}while(0);return b|0}function zg(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0.0,k=0.0,l=0.0,m=0.0,n=0,p=0,q=0.0,r=0.0;p=i;i=i+16|0;g=p+4|0;n=p;m=+(b|0);l=+(d|0);j=+(e|0);q=+(f|0);r=m-j;k=l-q;h=~~(+P(+(r*r+k*k))+.5);k=+(h|0);j=(j-m)/k;k=(q-l)/k;b=a+8|0;f=0;while(1){if((f|0)>=(h|0)){b=6;break}r=+(f|0);e=~~(m+j*r+.5);d=~~(l+k*r+.5);if(eq(c[b>>2]|0,e,d)|0){b=4;break}else f=f+1|0}do if((b|0)==4){b=Sz(16)|0;o=0;wa(42,b|0,+(+(e|0)),+(+(d|0)));n=o;o=0;if(n&1){p=cc()|0;Uz(b);bc(p|0)}else{c[g>>2]=0;vq(g,b);break}}else if((b|0)==6){c[n>>2]=0;vq(n,0);c[g>>2]=0;vq(g,c[n>>2]|0);uq(n)}while(0);i=p;return c[g>>2]|0}function Ag(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,p=0,q=0,r=0,s=0,t=0.0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0,B=0,C=0.0;z=i;i=i+32|0;x=z+28|0;u=z+24|0;r=z+20|0;p=z+16|0;y=z+12|0;v=z+8|0;s=z+4|0;q=z;B=c[d>>2]|0;w=+ld[c[(c[B>>2]|0)+8>>2]&63](B);d=c[d>>2]|0;t=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[e>>2]|0;l=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[e>>2]|0;k=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[f>>2]|0;n=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[f>>2]|0;m=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[g>>2]|0;j=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[g>>2]|0;h=+ld[c[(c[d>>2]|0)+12>>2]&63](d);Vq(a,4);b=w<+(c[b+12>>2]|0)*.5;o=0;d=qa(111,16)|0;e=o;o=0;e=e&1;a:do if(b)if(e)A=11;else{C=+(c[1068]|0);o=0;wa(42,d|0,+(j-C),+(h+C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}c[x>>2]=0;vq(x,d);o=0;d=qa(111,16)|0;B=o;o=0;do if(B&1)d=cc()|0;else{C=+(c[1068]|0);o=0;wa(42,d|0,+(l+C),+(k+C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}c[u>>2]=0;vq(u,d);o=0;d=qa(111,16)|0;B=o;o=0;do if(B&1)d=cc()|0;else{C=+(c[1068]|0);o=0;wa(42,d|0,+(n-C),+(m-C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}c[r>>2]=0;vq(r,d);o=0;d=qa(111,16)|0;B=o;o=0;do if(!(B&1)){C=+(c[1068]|0);o=0;wa(42,d|0,+(w+C),+(t-C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}else{c[p>>2]=0;vq(p,d);vq(c[a>>2]|0,c[x>>2]|0);vq((c[a>>2]|0)+4|0,c[u>>2]|0);vq((c[a>>2]|0)+8|0,c[r>>2]|0);vq((c[a>>2]|0)+12|0,c[p>>2]|0);uq(p);uq(r);uq(u);uq(x);A=41;break a}}else d=cc()|0;while(0);uq(r)}while(0);uq(u)}while(0);uq(x)}else if(e)A=11;else{C=+(c[1068]|0);o=0;wa(42,d|0,+(j+C),+(h+C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}c[y>>2]=0;vq(y,d);o=0;d=qa(111,16)|0;B=o;o=0;do if(B&1)d=cc()|0;else{C=+(c[1068]|0);o=0;wa(42,d|0,+(l+C),+(k-C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}c[v>>2]=0;vq(v,d);o=0;d=qa(111,16)|0;B=o;o=0;do if(B&1)d=cc()|0;else{C=+(c[1068]|0);o=0;wa(42,d|0,+(n-C),+(m+C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}c[s>>2]=0;vq(s,d);o=0;d=qa(111,16)|0;B=o;o=0;do if(!(B&1)){C=+(c[1068]|0);o=0;wa(42,d|0,+(w-C),+(t-C));B=o;o=0;if(B&1){B=cc()|0;Uz(d);d=B;break}else{c[q>>2]=0;vq(q,d);vq(c[a>>2]|0,c[y>>2]|0);vq((c[a>>2]|0)+4|0,c[v>>2]|0);vq((c[a>>2]|0)+8|0,c[s>>2]|0);vq((c[a>>2]|0)+12|0,c[q>>2]|0);uq(q);uq(s);uq(v);uq(y);A=41;break a}}else d=cc()|0;while(0);uq(s)}while(0);uq(v)}while(0);uq(y)}while(0);if((A|0)==11)d=cc()|0;else if((A|0)==41){i=z;return}wq(a);bc(d|0)}function Bg(a,b,d){a=a|0;b=b|0;d=d|0;c[a+4>>2]=0;c[a>>2]=30572;Zp(a+8|0,b);oe(a+12|0,d);return}function Cg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Zp(b,a+8|0);i=d;return c[b>>2]|0}function Dg(a,b){a=a|0;b=b|0;oe(a,b+12|0);return}function Eg(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;Ud(d,b);o=0;ma(107,a|0,d|0);b=o;o=0;do if(!(b&1)){Vd(d);c[a>>2]=4284;d=a+12|0;Pd(d,30580);o=0;ma(91,a+24|0,32);b=o;o=0;if(b&1){e=cc()|0;Sd(d);Df(a);d=e;break}else{i=e;return}}else{e=cc()|0;Vd(d);d=e}while(0);bc(d|0)}function Fg(a){a=a|0;c[a>>2]=4284;nq(a+24|0);Sd(a+12|0);Df(a);return}function Gg(a){a=a|0;Fg(a);Uz(a);return}function Hg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e;f=c[a+20>>2]|0;if(((c[f+12>>2]|0)-(c[f+8>>2]|0)|0)<(b|0)){Rd(d,b);Ae(a+12|0,c[d+8>>2]|0);Sd(d)}d=c[(c[a+32>>2]|0)+8>>2]|0;b=0;do{c[d+(b<<2)>>2]=0;b=b+1|0}while((b|0)!=32);i=e;return}function Ig(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;r=i;i=i+48|0;n=r+40|0;m=r+36|0;q=r+24|0;g=r+12|0;p=r;h=Ff(a)|0;c[m>>2]=h;Vd(m);m=c[h+8>>2]|0;f=c[e>>2]|0;if((f|0)!=0?(Wf(f)|0)>=(m|0):0){Xf(c[e>>2]|0);j=7}else j=3;do if((j|0)==3){f=Sz(24)|0;o=0;ma(90,f|0,m|0);l=o;o=0;if(l&1){r=cc()|0;Uz(f);f=r;break}else{Je(e,f);j=7;break}}while(0);do if((j|0)==7){Hg(a,m);l=c[(c[h>>2]|0)+8>>2]|0;Pd(g,a+12|0);o=0;ub(l|0,q|0,h|0,b|0,g|0);l=o;o=0;if(l&1){f=cc()|0;Sd(g);break}Sd(g);mq(p,a+24|0);h=q+8|0;f=(c[p+8>>2]|0)+8|0;if((m|0)>0){g=0;do{l=(c[f>>2]|0)+((d[(c[(c[h>>2]|0)+8>>2]|0)+g>>0]|0)>>>3<<2)|0;c[l>>2]=(c[l>>2]|0)+1;g=g+1|0}while((g|0)<(m|0))}o=0;l=qa(127,p|0)|0;k=o;o=0;if(k&1){f=cc()|0;nq(p);Sd(q);break}k=c[(c[h>>2]|0)+8>>2]|0;f=m+-1|0;if((f|0)>1){h=d[k+1>>0]|0;a=d[k>>0]|0;b=1;while(1){j=b;b=b+1|0;g=d[k+b>>0]|0;if(((h<<2)-a-g>>1|0)<(l|0)){m=(c[(c[(c[e>>2]|0)+20>>2]|0)+8>>2]|0)+(j>>5<<2)|0;c[m>>2]=c[m>>2]|1<<(j&31)}if((b|0)>=(f|0))break;else{a=h;h=g}}}Wd(n,e);nq(p);Sd(q);i=r;return c[n>>2]|0}while(0);bc(f|0);return 0}function Jg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=c[a+8>>2]|0;l=c[k+8>>2]|0;k=(c[k+12>>2]|0)-l|0;h=k>>2;if((k|0)>0){a=0;f=0;b=0;g=0;while(1){d=c[l+(g<<2)>>2]|0;e=(d|0)>(f|0);a=e?g:a;b=(d|0)>(b|0)?d:b;g=g+1|0;if((g|0)>=(h|0)){g=a;j=b;break}else f=e?d:f}}else{g=0;j=0}if((k|0)>0){a=0;e=0;f=0;while(1){b=f-g|0;b=$($(b,b)|0,c[l+(f<<2)>>2]|0)|0;d=(b|0)>(e|0);a=d?f:a;f=f+1|0;if((f|0)>=(h|0))break;else e=d?b:e}}else a=0;h=(g|0)>(a|0);i=h?g:a;h=h?a:g;if((i-h|0)<=(k>>6|0)){l=Ob(8)|0;c[l+4>>2]=0;c[l>>2]=30552;Hc(l|0,856,146)}a=i+-1|0;if((a|0)>(h|0)){e=a;g=-1;f=a;while(1){b=f-h|0;b=$($(b,b)|0,i-f|0)|0;b=$(b,j-(c[l+(f<<2)>>2]|0)|0)|0;d=(b|0)>(g|0);a=d?f:e;f=f+-1|0;if((f|0)<=(h|0))break;else{e=a;g=d?b:g}}}return a<<3|0}function Kg(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+64|0;p=t+52|0;q=t+48|0;u=t+36|0;l=t+24|0;m=t+12|0;s=t;n=Ff(a)|0;c[q>>2]=n;Vd(q);q=c[n+8>>2]|0;r=c[n+12>>2]|0;b=Sz(32)|0;o=0;mb(54,b|0,q|0,r|0);k=o;o=0;if(k&1){u=cc()|0;Uz(b);b=u}else{c[p>>2]=0;Ke(p,b);o=0;ma(108,a|0,q|0);k=o;o=0;if(k&1)b=cc()|0;else{mq(u,a+24|0);b=a+12|0;a=(q<<2|0)/5|0;e=(q|0)/5|0;f=l+8|0;g=(c[u+8>>2]|0)+8|0;h=(e|0)<(a|0);k=1;while(1){v=c[(c[n>>2]|0)+8>>2]|0;Pd(m,b);j=($(k,r)|0)/5|0;o=0;ub(v|0,l|0,n|0,j|0,m|0);j=o;o=0;if(j&1){a=10;break}Sd(m);if(h){j=e;do{v=(c[g>>2]|0)+((d[(c[(c[f>>2]|0)+8>>2]|0)+j>>0]|0)>>>3<<2)|0;c[v>>2]=(c[v>>2]|0)+1;j=j+1|0}while((j|0)<(a|0))}Sd(l);k=k+1|0;if((k|0)>=5){a=12;break}}if((a|0)==10){b=cc()|0;Sd(m)}else if((a|0)==12){o=0;j=qa(127,u|0)|0;v=o;o=0;if(!(v&1)?(o=0,ma(c[(c[n>>2]|0)+12>>2]|0,s|0,n|0),v=o,o=0,!(v&1)):0){h=s+8|0;b=c[p>>2]|0;if((r|0)>0){a=(q|0)>0;g=0;do{e=$(g,q)|0;if(a){f=0;do{if((d[(c[(c[h>>2]|0)+8>>2]|0)+(f+e)>>0]|0|0)<(j|0))Xd(b,f,g);f=f+1|0}while((f|0)<(q|0))}g=g+1|0}while((g|0)<(r|0))}Sd(s);nq(u);i=t;return b|0}b=cc()|0}nq(u)}Yd(p)}bc(b|0);return 0}function Lg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;a=f+4|0;d=f;e=Sz(36)|0;Ud(d,b);o=0;ma(109,e|0,d|0);b=o;o=0;if(b&1){b=cc()|0;Vd(d);Uz(e);bc(b|0)}else{c[a>>2]=0;Le(a,e);Vd(d);i=f;return c[a>>2]|0}return 0}function Mg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0.0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;p=i;i=i+32|0;s=p+20|0;r=p+8|0;a=p+4|0;q=p;f=Sz(32)|0;o=0;ma(110,f|0,d|0);n=o;o=0;if(n&1){a=cc()|0;Uz(f)}else{c[s>>2]=0;Ke(s,f);g[a>>2]=0.0;o=0;mb(62,r|0,d<<1|0,a|0);n=o;o=0;a:do if(n&1)a=cc()|0;else{m=r+4|0;k=c[s>>2]|0;b:do if((d|0)>0){n=0;while(1){a=c[r>>2]|0;f=(c[m>>2]|0)-a|0;l=f>>2;h=+(n|0)+.5;if((f|0)>0){j=0;do{g[a+(j<<2)>>2]=+(j>>1|0)+.5;g[a+((j|1)<<2)>>2]=h;j=j+2|0}while((j|0)<(l|0))}o=0;ma(111,c[e>>2]|0,r|0);j=o;o=0;if(j&1){f=8;break}Zp(q,b);o=0;ma(112,q|0,r|0);j=o;o=0;if(j&1){f=14;break}Yd(q);if((f|0)>0){a=0;do{j=c[r>>2]|0;if(eq(c[b>>2]|0,~~+g[j+(a<<2)>>2],~~+g[j+((a|1)<<2)>>2])|0)Xd(k,a>>1,n);a=a+2|0}while((a|0)<(l|0))}n=n+1|0;if((n|0)>=(d|0))break b}if((f|0)==8)a=cc()|0;else if((f|0)==14){a=cc()|0;Yd(q)}Xq(r);break a}while(0);Xq(r);i=p;return k|0}while(0);Yd(s)}bc(a|0);return 0}function Ng(b,d){b=b|0;d=d|0;var e=0,f=0,h=0,j=0.0,k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;q=i;i=i+176|0;r=q+152|0;v=q+16|0;u=q;p=ig(c[b>>2]|0)|0;m=jg(c[b>>2]|0)|0;n=c[d>>2]|0;b=(c[d+4>>2]|0)-n>>2;j=+(m+-1|0);k=+(p+-1|0);a:do if(b){l=0;while(1){f=n+(l<<2)|0;e=~~+g[f>>2];h=n+((l|1)<<2)|0;d=~~+g[h>>2];if((e|0)<-1)break;if((d|0)>(m|0)|((e|0)>(p|0)|(d|0)<-1))break;if((e|0)!=-1){if((e|0)==(p|0))g[f>>2]=k}else g[f>>2]=0.0;if((d|0)!=-1){if((d|0)==(m|0))g[h>>2]=j}else g[h>>2]=0.0;l=l+2|0;if(l>>>0>=b>>>0)break a}f=v+56|0;h=v+4|0;c[v>>2]=29792;c[f>>2]=29812;o=0;ma(104,v+56|0,h|0);q=o;o=0;if(q&1)b=cc()|0;else{c[v+128>>2]=0;c[v+132>>2]=-1;c[v>>2]=29832;c[v+56>>2]=29852;o=0;ka(307,h|0);q=o;o=0;do if(q&1)b=cc()|0;else{c[h>>2]=29868;b=v+36|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[v+48>>2]=0;c[v+52>>2]=16;c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;o=0;ma(105,h|0,r|0);q=o;o=0;if(q&1){w=cc()|0;IC(r);IC(b);nD(h);b=w;break}IC(r);o=0;b=Wa(66,v|0,47467)|0;r=o;o=0;do if(((!(r&1)?(o=0,s=Wa(63,b|0,e|0)|0,r=o,o=0,!(r&1)):0)?(o=0,t=Wa(66,s|0,52925)|0,s=o,o=0,!(s&1)):0)?(o=0,Wa(63,t|0,d|0)|0,t=o,o=0,!(t&1)):0){b=Ob(8)|0;o=0;ma(106,u|0,h|0);t=o;o=0;if(t&1){u=cc()|0;Nb(b|0);b=u;break}else{zq(b,(a[u>>0]&1)==0?u+1|0:c[u+8>>2]|0);c[b>>2]=29736;o=0;mb(55,b|0,24,146);o=0;b=cc()|0;IC(u);break}}else w=18;while(0);if((w|0)==18)b=cc()|0;Nq(v);bc(b|0)}while(0)}iD(f);bc(b|0)}while(0);i=q;return}function Og(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0.0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;p=i;i=i+32|0;s=p+20|0;r=p+8|0;a=p+4|0;q=p;h=Sz(32)|0;o=0;mb(54,h|0,d|0,e|0);n=o;o=0;if(n&1){a=cc()|0;Uz(h)}else{c[s>>2]=0;Ke(s,h);g[a>>2]=0.0;o=0;mb(62,r|0,d<<1|0,a|0);n=o;o=0;a:do if(n&1)a=cc()|0;else{m=r+4|0;k=c[s>>2]|0;b:do if((e|0)>0){n=0;while(1){a=c[r>>2]|0;h=(c[m>>2]|0)-a|0;l=h>>2;j=+(n|0)+.5;if((h|0)>0){d=0;do{g[a+(d<<2)>>2]=+(d>>1|0)+.5;g[a+((d|1)<<2)>>2]=j;d=d+2|0}while((d|0)<(l|0))}o=0;ma(111,c[f>>2]|0,r|0);d=o;o=0;if(d&1){h=8;break}Zp(q,b);o=0;ma(112,q|0,r|0);d=o;o=0;if(d&1){h=14;break}Yd(q);if((h|0)>0){a=0;do{d=c[r>>2]|0;if(eq(c[b>>2]|0,~~+g[d+(a<<2)>>2],~~+g[d+((a|1)<<2)>>2])|0)Xd(k,a>>1,n);a=a+2|0}while((a|0)<(l|0))}n=n+1|0;if((n|0)>=(e|0))break b}if((h|0)==8)a=cc()|0;else if((h|0)==14){a=cc()|0;Yd(q)}Xq(r);break a}while(0);Xq(r);i=p;return k|0}while(0);Yd(s)}bc(a|0);return 0}function Pg(a,b,d,e,f,g,h,j,k,l,m,n,p,q,r,s,t,u,v){a=a|0;b=b|0;d=d|0;e=+e;f=+f;g=+g;h=+h;j=+j;k=+k;l=+l;m=+m;n=+n;p=+p;q=+q;r=+r;s=+s;t=+t;u=+u;v=+v;var w=0,x=0,y=0,z=0;z=i;i=i+16|0;y=z+8|0;w=z+4|0;x=z;a=bh(e,f,g,h,j,k,l,m,n,p,q,r,s,t,u,v)|0;c[y>>2]=a;Zp(w,b);c[x>>2]=0;Zq(x,a);o=0;a=kb(54,0,w|0,d|0,x|0)|0;b=o;o=0;if(b&1){z=cc()|0;_q(x);Yd(w);_q(y);bc(z|0)}else{_q(x);Yd(w);_q(y);i=z;return a|0}return 0}function Qg(){return 45623}function Rg(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;Ud(d,b);o=0;ma(109,a|0,d|0);b=o;o=0;if(b&1){e=cc()|0;Vd(d);bc(e|0)}else{Vd(d);c[a>>2]=4312;b=a+36|0;c[b>>2]=0;Ke(b,0);a=a+40|0;c[a>>2]=0;Je(a,0);i=e;return}}function Sg(a){a=a|0;c[a>>2]=4312;bq(a+40|0);Yd(a+36|0);Fg(a);return}function Tg(a){a=a|0;Sg(a);Uz(a);return}function Ug(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;a=f+4|0;d=f;e=Sz(44)|0;Ud(d,b);o=0;ma(80,e|0,d|0);b=o;o=0;if(b&1){b=cc()|0;Vd(d);Uz(e);bc(b|0)}else{c[a>>2]=0;Le(a,e);Vd(d);i=f;return c[a>>2]|0}return 0}function Vg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;p=i;i=i+80|0;j=p+72|0;b=p+68|0;r=p+56|0;q=p+44|0;h=p+32|0;n=p+28|0;k=p+16|0;l=p+4|0;d=p;m=a+36|0;if(!(c[m>>2]|0)){e=Ff(a)|0;c[b>>2]=e;Vd(b);f=c[e+8>>2]|0;g=c[e+12>>2]|0;a:do if((f|0)>39&(g|0)>39){$c[c[(c[e>>2]|0)+12>>2]&511](r,e);d=((f&7|0)!=0&1)+(f>>3)|0;e=((g&7|0)!=0&1)+(g>>3)|0;Pd(h,r);o=0;Oa(42,q|0,0,h|0,d|0,e|0,f|0,g|0);b=o;o=0;if(b&1){b=cc()|0;Sd(h)}else{Sd(h);o=0;b=qa(111,32)|0;h=o;o=0;do if(!(h&1)){o=0;mb(54,b|0,f|0,g|0);h=o;o=0;if(h&1){p=cc()|0;Uz(b);b=p;break}else{c[n>>2]=0;Ke(n,b);Pd(k,r);mq(l,q);Xg(a,k,d,e,f,g,l,n);nq(l);Sd(k);Ke(m,c[n>>2]|0);Yd(n);nq(q);Sd(r);break a}}else b=cc()|0;while(0);nq(q)}Sd(r);bc(b|0)}else{r=Kg(a)|0;c[d>>2]=r;Ke(m,r);Yd(d)}while(0);Zp(j,m)}else Zp(j,m);i=p;return c[j>>2]|0}function Wg(a,b,e,f,g,h,j){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;F=i;i=i+16|0;E=F;kq(a,$(g,f)|0);C=j+-8|0;D=h+-8|0;w=e+8|0;x=E+8|0;y=a+8|0;if((g|0)>0){z=(f|0)>0;B=0;do{r=B<<3;r=$((r|0)>(C|0)?C:r,h)|0;s=(B|0)>0;t=$(B+-1|0,f)|0;u=$(B,f)|0;v=u+-1|0;if(z){A=0;do{p=A<<3;q=c[(c[w>>2]|0)+8>>2]|0;j=0;k=255;p=((p|0)>(D|0)?D:p)+r|0;b=0;e=0;while(1){l=0;do{o=d[q+(l+p)>>0]|0;b=o+b|0;k=(o|0)<(k|0)?o:k;j=(o|0)>(j|0)?o:j;l=l+1|0}while((l|0)!=8);if((j-k|0)>24){o=$(8-e|0,h)|0;if((e|0)!=7){m=c[(c[w>>2]|0)+8>>2]|0;n=p;do{n=n+h|0;e=e+1|0;l=0;do{G=l+n|0;b=(d[m+G>>0]|0)+b+(d[m+(G+1)>>0]|0)|0;l=l+2|0}while((l|0)<8)}while((e|0)!=7)}l=p+o|0;e=8}else l=p;e=e+1|0;if((e|0)>=8){e=k;break}else p=l+h|0}b=b>>6;if((j-e|0)<25){b=e>>1;if(s&(A|0)>0){mq(E,a);G=A+t|0;q=c[(c[x>>2]|0)+8>>2]|0;G=(c[q+(v+A<<2)>>2]<<1)+(c[q+(G<<2)>>2]|0)+(c[q+(G+-1<<2)>>2]|0)>>2;nq(E);b=(e|0)<(G|0)?G:b}}c[(c[(c[y>>2]|0)+8>>2]|0)+(A+u<<2)>>2]=b;A=A+1|0}while((A|0)<(f|0))}B=B+1|0}while((B|0)<(g|0))}i=F;return}function Xg(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;C=i;i=i+16|0;B=C;x=g+-8|0;y=f+-8|0;z=d+-3|0;A=e+-3|0;t=h+8|0;if((e|0)>0){u=(d|0)>0;w=0;do{p=w<<3;p=(p|0)>(x|0)?x:p;q=(w|0)<2?2:(w|0)>(A|0)?A:w;if(u){v=0;do{r=v<<3;s=(r|0)>(y|0);g=(v|0)<2?2:(v|0)>(z|0)?z:v;h=g+-2|0;k=g+-1|0;l=g+1|0;m=g+2|0;n=c[(c[t>>2]|0)+8>>2]|0;a=0;o=-2;do{D=$(o+q|0,d)|0;a=(c[n+(h+D<<2)>>2]|0)+a+(c[n+(k+D<<2)>>2]|0)+(c[n+(D+g<<2)>>2]|0)+(c[n+(l+D<<2)>>2]|0)+(c[n+(m+D<<2)>>2]|0)|0;o=o+1|0}while((o|0)!=3);Pd(B,b);Yg(0,B,s?y:r,p,(a|0)/25|0,f,j);Sd(B);v=v+1|0}while((v|0)<(d|0))}w=w+1|0}while((w|0)<(e|0))}i=C;return}function Yg(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;b=b+8|0;j=($(h,f)|0)+e|0;l=0;while(1){a=l+f|0;k=0;do{if((d[(c[(c[b>>2]|0)+8>>2]|0)+(k+j)>>0]|0|0)<=(g|0))Xd(c[i>>2]|0,k+e|0,a);k=k+1|0}while((k|0)!=8);l=l+1|0;if((l|0)==8)break;else j=j+h|0}return}function Zg(a){a=a|0;c[a+4>>2]=0;c[a>>2]=4340;return}function _g(a,b){a=a|0;b=b|0;zq(a,b);c[a>>2]=4340;return}function $g(a){a=a|0;Aq(a);return}function ah(a){a=a|0;Aq(a);Uz(a);return}function bh(a,b,d,e,f,g,h,j,k,l,m,n,p,q,r,s){a=+a;b=+b;d=+d;e=+e;f=+f;g=+g;h=+h;j=+j;k=+k;l=+l;m=+m;n=+n;p=+p;q=+q;r=+r;s=+s;var t=0,u=0,v=0,w=0,x=0,y=0,z=0;x=i;i=i+16|0;y=x+8|0;w=x+4|0;v=x;u=ch(a,b,d,e,f,g,h,j)|0;c[y>>2]=u;o=0;t=sa(42,+k,+l,+m,+n,+p,+q,+r,+s)|0;z=o;o=0;do if(!(z&1)){c[w>>2]=t;c[v>>2]=0;Zq(v,u);o=0;t=Wa(67,t|0,v|0)|0;z=o;o=0;if(z&1){t=cc()|0;_q(v);_q(w);break}else{_q(v);_q(w);_q(y);i=x;return t|0}}else t=cc()|0;while(0);_q(y);bc(t|0);return 0}function ch(a,b,d,e,f,g,h,j){a=+a;b=+b;d=+d;e=+e;f=+f;g=+g;h=+h;j=+j;var k=0,l=0,m=0,n=0;m=i;i=i+16|0;l=m;k=dh(a,b,d,e,f,g,h,j)|0;c[l>>2]=k;o=0;k=qa(128,k|0)|0;n=o;o=0;if(n&1){n=cc()|0;_q(l);bc(n|0)}else{_q(l);i=m;return k|0}return 0}function dh(a,b,d,e,f,h,j,k){a=+a;b=+b;d=+d;e=+e;f=+f;h=+h;j=+j;k=+k;var l=0,m=0.0,n=0.0,o=0,p=0,q=0.0,r=0.0,s=0.0;o=i;i=i+16|0;l=o;m=a-d+f-j;n=b-e+h-k;if(m==0.0&n==0.0){p=Sz(44)|0;c[p+4>>2]=0;c[p>>2]=30600;g[p+8>>2]=d-a;g[p+12>>2]=e-b;g[p+16>>2]=0.0;g[p+20>>2]=f-d;g[p+24>>2]=h-e;g[p+28>>2]=0.0;g[p+32>>2]=a;g[p+36>>2]=b;g[p+40>>2]=1.0;c[l>>2]=0;Zq(l,p)}else{r=d-f;f=j-f;q=e-h;s=k-h;h=r*s-q*f;f=(m*s-f*n)/h;h=(r*n-q*m)/h;p=Sz(44)|0;c[p+4>>2]=0;c[p>>2]=30600;g[p+8>>2]=d-a+f*d;g[p+12>>2]=e-b+f*e;g[p+16>>2]=f;g[p+20>>2]=j-a+h*j;g[p+24>>2]=k-b+h*k;g[p+28>>2]=h;g[p+32>>2]=a;g[p+36>>2]=b;g[p+40>>2]=1.0;c[l>>2]=0;Zq(l,p)}i=o;return c[l>>2]|0}function eh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0;e=i;i=i+16|0;d=e;f=Sz(44)|0;t=+g[a+8>>2];b=c[b>>2]|0;z=+g[b+8>>2];s=+g[a+20>>2];y=+g[b+12>>2];r=+g[a+32>>2];x=+g[b+16>>2];w=+g[b+20>>2];v=+g[b+24>>2];u=+g[b+28>>2];n=+g[b+32>>2];l=+g[b+36>>2];j=+g[b+40>>2];q=+g[a+12>>2];p=+g[a+24>>2];o=+g[a+36>>2];m=+g[a+16>>2];k=+g[a+28>>2];h=+g[a+40>>2];c[f+4>>2]=0;c[f>>2]=30600;g[f+8>>2]=t*z+s*y+r*x;g[f+12>>2]=z*q+y*p+x*o;g[f+16>>2]=z*m+y*k+x*h;g[f+20>>2]=t*w+s*v+r*u;g[f+24>>2]=w*q+v*p+u*o;g[f+28>>2]=w*m+v*k+u*h;g[f+32>>2]=t*n+s*l+r*j;g[f+36>>2]=n*q+l*p+j*o;g[f+40>>2]=n*m+l*k+j*h;c[d>>2]=0;Zq(d,f);i=e;return c[d>>2]|0}function fh(a){a=a|0;var b=0,d=0,e=0,f=0.0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0;d=i;i=i+16|0;b=d;e=Sz(44)|0;k=+g[a+24>>2];p=+g[a+40>>2];n=+g[a+28>>2];l=+g[a+36>>2];m=+g[a+32>>2];h=+g[a+20>>2];o=+g[a+16>>2];f=+g[a+12>>2];j=+g[a+8>>2];c[e+4>>2]=0;c[e>>2]=30600;g[e+8>>2]=k*p-n*l;g[e+12>>2]=l*o-p*f;g[e+16>>2]=n*f-k*o;g[e+20>>2]=n*m-p*h;g[e+24>>2]=p*j-m*o;g[e+28>>2]=h*o-n*j;g[e+32>>2]=l*h-k*m;g[e+36>>2]=m*f-l*j;g[e+40>>2]=k*j-h*f;c[b>>2]=0;Zq(b,e);i=d;return c[b>>2]|0}function gh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0.0,q=0.0,r=0.0,s=0;n=c[b>>2]|0;o=(c[b+4>>2]|0)-n|0;j=o>>2;k=a+16|0;l=a+28|0;m=a+40|0;d=a+8|0;e=a+20|0;f=a+32|0;h=a+12|0;i=a+24|0;b=a+36|0;if((o|0)>0){a=0;do{s=n+(a<<2)|0;r=+g[s>>2];o=n+((a|1)<<2)|0;q=+g[o>>2];p=+g[m>>2]+(r*+g[k>>2]+q*+g[l>>2]);g[s>>2]=(+g[f>>2]+(r*+g[d>>2]+q*+g[e>>2]))/p;g[o>>2]=(+g[b>>2]+(r*+g[h>>2]+q*+g[i>>2]))/p;a=a+2|0}while((a|0)<(j|0))}return}function hh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;c[b+4>>2]=0;c[b>>2]=30616;g=b+8|0;h=b+32|0;c[g>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[g+20>>2]=0;c[g+24>>2]=0;$q(h,0);i=b+36|0;c[i>>2]=0;$q(i,0);c[b+40>>2]=e;c[b+44>>2]=d;c[b+48>>2]=f;a[b+52>>0]=0;if((e|0)<1?(o=0,ka(309,b|0),e=o,o=0,e&1):0){e=cc()|0;ar(i);ar(h);br(b+20|0);br(g);bc(e|0)}return}function ih(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+64|0;m=t+52|0;n=t+40|0;p=t+28|0;q=t+24|0;r=t+12|0;s=t;j=b+8|0;l=b+40|0;cr(j,c[l>>2]|0);k=b+20|0;cr(k,c[l>>2]|0);h=b+44|0;d=c[l>>2]|0;if((d|0)>0){f=c[j>>2]|0;g=0;d=1;while(1){c[f+(g<<2)>>2]=d;e=d<<1;d=c[l>>2]|0;if((e|0)>=(d|0))e=(c[h>>2]^e)&d+-1;g=g+1|0;if((g|0)>=(d|0))break;else d=e}}if((d|0)>1){f=c[j>>2]|0;d=c[k>>2]|0;e=0;do{c[d+(c[f+(e<<2)>>2]<<2)>>2]=e;e=e+1|0}while((e|0)<((c[l>>2]|0)+-1|0))}d=b+32|0;f=Sz(24)|0;o=0;e=qa(111,20)|0;l=o;o=0;do if(l&1){d=cc()|0;u=19}else{o=0;ma(102,e|0,1);l=o;o=0;if(l&1){d=cc()|0;Uz(e);u=19;break}Fq(n,e);o=0;mb(63,f|0,b|0,n|0);l=o;o=0;if(l&1){d=cc()|0;nq(n);u=19;break}c[m>>2]=0;$q(m,f);$q(d,c[m>>2]|0);ar(m);nq(n);vh(p,c[d>>2]|0);c[c[(c[p+8>>2]|0)+8>>2]>>2]=0;nq(p);d=b+36|0;f=Sz(24)|0;o=0;e=qa(111,20)|0;p=o;o=0;do if(!(p&1)){o=0;ma(102,e|0,1);p=o;o=0;if(p&1){d=cc()|0;Uz(e);break}Fq(r,e);o=0;mb(63,f|0,b|0,r|0);p=o;o=0;if(p&1){d=cc()|0;nq(r);break}else{c[q>>2]=0;$q(q,f);$q(d,c[q>>2]|0);ar(q);nq(r);vh(s,c[d>>2]|0);c[c[(c[s+8>>2]|0)+8>>2]>>2]=1;nq(s);a[b+52>>0]=1;i=t;return}}else d=cc()|0;while(0);Uz(f)}while(0);if((u|0)==19)Uz(f);bc(d|0)}function jh(b){b=b|0;if(!(a[b+52>>0]|0))ih(b);return}function kh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;jh(a);dr(b,a+32|0);i=d;return c[b>>2]|0}function lh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;jh(a);dr(b,a+36|0);i=d;return c[b>>2]|0}function mh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=i;i=i+32|0;e=j+24|0;h=j+12|0;g=j;jh(a);a:do if((b|0)<0){e=Ob(8)|0;o=0;ma(103,e|0,47503);j=o;o=0;if(j&1){j=cc()|0;Nb(e|0);e=j;break}else Hc(e|0,240,66)}else{b:do if(!d)dr(e,a+32|0);else{f=Sz(20)|0;o=0;ma(102,f|0,b+1|0);b=o;o=0;if(b&1){e=cc()|0;Uz(f);break a}Fq(h,f);c[c[(c[h+8>>2]|0)+8>>2]>>2]=d;o=0;f=qa(111,24)|0;b=o;o=0;do if(!(b&1)){mq(g,h);o=0;mb(63,f|0,a|0,g|0);a=o;o=0;if(a&1){e=cc()|0;nq(g);Uz(f);break}else{c[e>>2]=0;$q(e,f);nq(g);nq(h);break b}}else e=cc()|0;while(0);nq(h);break a}while(0);i=j;return c[e>>2]|0}while(0);bc(e|0);return 0}function nh(a,b){a=a|0;b=b|0;return b^a|0}function oh(a,b){a=a|0;b=b|0;jh(a);return c[(c[a+8>>2]|0)+(b<<2)>>2]|0}function ph(a,b){a=a|0;b=b|0;jh(a);if(b)return c[(c[a+20>>2]|0)+(b<<2)>>2]|0;b=Ob(8)|0;o=0;ma(103,b|0,47531);a=o;o=0;if(a&1){a=cc()|0;Nb(b|0);bc(a|0)}else Hc(b|0,240,66);return 0}function qh(a,b){a=a|0;b=b|0;jh(a);if(b)return c[(c[a+8>>2]|0)+((c[a+40>>2]|0)+-1-(c[(c[a+20>>2]|0)+(b<<2)>>2]|0)<<2)>>2]|0;b=Ob(8)|0;o=0;ma(103,b|0,47550);a=o;o=0;if(a&1){a=cc()|0;Nb(b|0);bc(a|0)}else Hc(b|0,240,66);return 0}function rh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;jh(a);if((b|0)==0|(d|0)==0)b=0;else{e=c[a+20>>2]|0;b=c[(c[a+8>>2]|0)+((((c[e+(d<<2)>>2]|0)+(c[e+(b<<2)>>2]|0)|0)%((c[a+40>>2]|0)+-1|0)|0)<<2)>>2]|0}return b|0}function sh(a){a=a|0;return c[a+40>>2]|0}function th(a){a=a|0;return c[a+48>>2]|0}function uh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;p=i;i=i+32|0;j=p+16|0;k=p+12|0;l=p;c[a+4>>2]=0;c[a>>2]=30632;c[a+8>>2]=b;n=a+12|0;c[a+16>>2]=0;c[n>>2]=29772;h=a+20|0;c[h>>2]=0;m=d+8|0;d=c[m>>2]|0;e=c[d+8>>2]|0;a=(c[d+12>>2]|0)-e|0;f=a>>2;a:do if(!f){a=Ob(8)|0;o=0;ma(103,a|0,47584);p=o;o=0;if(p&1){p=cc()|0;Nb(a|0);a=p;break}else{o=0;mb(55,a|0,240,66);o=0;q=4;break}}else{do if((a|0)>4?(c[e>>2]|0)==0:0){b:do if((a|0)>4){a=1;while(1){if(c[e+(a<<2)>>2]|0){g=a;break b}a=a+1|0;if((f|0)<=(a|0)){g=a;break}}}else g=1;while(0);o=0;if((f|0)==(g|0)){a=kh(b)|0;m=o;o=0;if(m&1){q=4;break a}c[k>>2]=a;mq(j,a+12|0);Hq(n,c[j+8>>2]|0);nq(j);ar(k);break}a=Sz(20)|0;k=o;o=0;if(k&1){q=4;break a}o=0;ma(102,a|0,f-g|0);k=o;o=0;if(k&1){p=cc()|0;Uz(a);a=p;break a}Fq(l,a);Hq(n,c[l+8>>2]|0);nq(l);n=c[h>>2]|0;e=c[n+8>>2]|0;n=(c[n+12>>2]|0)-e|0;f=n>>2;if((n|0)>0){a=c[(c[m>>2]|0)+8>>2]|0;d=0;do{c[e+(d<<2)>>2]=c[a+(d+g<<2)>>2];d=d+1|0}while((d|0)<(f|0))}}else q=20;while(0);if((q|0)==20)Hq(n,d);i=p;return}while(0);if((q|0)==4)a=cc()|0;nq(n);bc(a|0)}function vh(a,b){a=a|0;b=b|0;mq(a,b+12|0);return}function wh(a){a=a|0;a=c[a+20>>2]|0;return ((c[a+12>>2]|0)-(c[a+8>>2]|0)>>2)+-1|0}function xh(a){a=a|0;return (c[c[(c[a+20>>2]|0)+8>>2]>>2]|0)==0|0}function yh(a,b){a=a|0;b=b|0;var d=0;d=c[a+20>>2]|0;a=c[d+8>>2]|0;return c[a+(((c[d+12>>2]|0)-a>>2)+~b<<2)>>2]|0}function zh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;g=a+20|0;e=c[g>>2]|0;d=c[e+8>>2]|0;e=(c[e+12>>2]|0)-d|0;h=e>>2;switch(b|0){case 0:{d=c[d+(h+-1<<2)>>2]|0;break}case 1:{if((e|0)>0){a=0;d=0;do{d=nh(d,c[(c[(c[g>>2]|0)+8>>2]|0)+(a<<2)>>2]|0)|0;a=a+1|0}while((a|0)<(h|0))}else d=0;break}default:{d=c[d>>2]|0;f=a+8|0;if((e|0)>4){a=1;do{d=rh(c[f>>2]|0,b,d)|0;d=nh(d,c[(c[(c[g>>2]|0)+8>>2]|0)+(a<<2)>>2]|0)|0;a=a+1|0}while((a|0)<(h|0))}}}return d|0}function Ah(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;p=i;i=i+64|0;d=p+60|0;s=p+48|0;r=p+36|0;f=p+24|0;q=p+12|0;m=p;n=a+8|0;e=c[b>>2]|0;a:do if((c[n>>2]|0)!=(c[e+8>>2]|0)){d=Ob(8)|0;o=0;ma(103,d|0,47602);s=o;o=0;if(s&1){s=cc()|0;Nb(d|0);d=s;break}else Hc(d|0,240,66)}else{b:do if(!(c[c[(c[a+20>>2]|0)+8>>2]>>2]|0))dr(d,b);else{if(!(c[c[(c[e+20>>2]|0)+8>>2]>>2]|0)){c[d>>2]=0;$q(d,a);break}mq(s,a+12|0);mq(r,(c[b>>2]|0)+12|0);a=s+8|0;l=c[a>>2]|0;b=r+8|0;e=c[b>>2]|0;if(((c[l+12>>2]|0)-(c[l+8>>2]|0)|0)>((c[e+12>>2]|0)-(c[e+8>>2]|0)|0)){mq(f,s);Hq(s,e);Hq(r,c[f+8>>2]|0);nq(f)}o=0;e=qa(111,20)|0;l=o;o=0;do if(l&1)d=cc()|0;else{l=c[b>>2]|0;k=l+12|0;l=l+8|0;o=0;ma(102,e|0,(c[k>>2]|0)-(c[l>>2]|0)>>2|0);j=o;o=0;if(j&1){d=cc()|0;Uz(e);break}Fq(q,e);f=c[k>>2]|0;e=c[l>>2]|0;h=c[a>>2]|0;g=h+8|0;h=(f-e>>2)-((c[h+12>>2]|0)-(c[g>>2]|0)>>2)|0;j=(c[q+8>>2]|0)+8|0;if((h|0)>0){b=c[j>>2]|0;a=0;do{c[b+(a<<2)>>2]=c[e+(a<<2)>>2];a=a+1|0}while((a|0)<(h|0))}c:do if((h|0)<(f-e>>2|0)){b=h;while(1){o=0;e=Wa(68,c[(c[g>>2]|0)+(b-h<<2)>>2]|0,c[e+(b<<2)>>2]|0)|0;f=o;o=0;if(f&1)break;c[(c[j>>2]|0)+(b<<2)>>2]=e;b=b+1|0;e=c[l>>2]|0;if((b|0)>=((c[k>>2]|0)-e>>2|0)){b=24;break c}}d=cc()|0;b=21}else b=24;while(0);do if((b|0)==24){o=0;e=qa(111,24)|0;l=o;o=0;if(l&1){d=cc()|0;b=21;break}n=c[n>>2]|0;mq(m,q);o=0;mb(63,e|0,n|0,m|0);n=o;o=0;if(n&1){d=cc()|0;nq(m);Uz(e);break}else{c[d>>2]=0;$q(d,e);nq(m);nq(q);nq(r);nq(s);break b}}while(0);nq(q)}while(0);nq(r);nq(s);break a}while(0);i=p;return c[d>>2]|0}while(0);bc(d|0);return 0}function Bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;s=i;i=i+64|0;p=s+48|0;u=s+36|0;v=s+24|0;t=s+12|0;q=s;r=a+8|0;e=c[r>>2]|0;d=c[b>>2]|0;a:do if((e|0)!=(c[d+8>>2]|0)){d=Ob(8)|0;o=0;ma(103,d|0,47602);v=o;o=0;if(v&1){v=cc()|0;Nb(d|0);d=v;break}else Hc(d|0,240,66)}else{b:do if((c[c[(c[a+20>>2]|0)+8>>2]>>2]|0)!=0?(c[c[(c[d+20>>2]|0)+8>>2]>>2]|0)!=0:0){mq(u,a+12|0);e=c[u+8>>2]|0;m=e+8|0;e=(c[e+12>>2]|0)-(c[m>>2]|0)|0;n=e>>2;mq(v,(c[b>>2]|0)+12|0);a=c[v+8>>2]|0;k=a+8|0;a=(c[a+12>>2]|0)-(c[k>>2]|0)|0;l=a>>2;o=0;d=qa(111,20)|0;j=o;o=0;do if(j&1)d=cc()|0;else{o=0;ma(102,d|0,n+-1+l|0);j=o;o=0;if(j&1){t=cc()|0;Uz(d);d=t;break}Fq(t,d);j=(c[t+8>>2]|0)+8|0;c:do if((e|0)>0){e=(a|0)>0;g=0;d:while(1){b=c[(c[m>>2]|0)+(g<<2)>>2]|0;if(e){h=0;do{f=h+g|0;d=c[(c[j>>2]|0)+(f<<2)>>2]|0;o=0;a=ya(93,c[r>>2]|0,b|0,c[(c[k>>2]|0)+(h<<2)>>2]|0)|0;w=o;o=0;if(w&1)break d;o=0;d=Wa(68,d|0,a|0)|0;w=o;o=0;if(w&1)break d;c[(c[j>>2]|0)+(f<<2)>>2]=d;h=h+1|0}while((h|0)<(l|0))}g=g+1|0;if((g|0)>=(n|0)){a=22;break c}}d=cc()|0;a=20}else a=22;while(0);do if((a|0)==22){o=0;d=qa(111,24)|0;w=o;o=0;if(w&1){d=cc()|0;a=20;break}w=c[r>>2]|0;mq(q,t);o=0;mb(63,d|0,w|0,q|0);w=o;o=0;if(w&1){w=cc()|0;nq(q);Uz(d);d=w;break}else{c[p>>2]=0;$q(p,d);nq(q);nq(t);nq(v);nq(u);d=c[p>>2]|0;break b}}while(0);nq(t)}while(0);nq(v);nq(u);break a}else a=7;while(0);if((a|0)==7){d=kh(e)|0;c[p>>2]=d}i=s;return d|0}while(0);bc(d|0);return 0}function Ch(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;d=m+24|0;n=m+12|0;l=m;a:do switch(b|0){case 0:{c[d>>2]=kh(c[a+8>>2]|0)|0;break}case 1:{c[d>>2]=0;$q(d,a);break}default:{k=a+20|0;f=c[k>>2]|0;f=(c[f+12>>2]|0)-(c[f+8>>2]|0)|0;h=f>>2;e=Sz(20)|0;o=0;ma(102,e|0,h|0);j=o;o=0;if(j&1){d=cc()|0;Uz(e)}else{Fq(n,e);j=a+8|0;g=(c[n+8>>2]|0)+8|0;b:do if((f|0)>0){a=0;while(1){o=0;e=ya(93,c[j>>2]|0,c[(c[(c[k>>2]|0)+8>>2]|0)+(a<<2)>>2]|0,b|0)|0;f=o;o=0;if(f&1)break;c[(c[g>>2]|0)+(a<<2)>>2]=e;a=a+1|0;if((a|0)>=(h|0)){a=12;break b}}d=cc()|0;a=11}else a=12;while(0);do if((a|0)==12){o=0;e=qa(111,24)|0;b=o;o=0;if(b&1){d=cc()|0;a=11;break}b=c[j>>2]|0;mq(l,n);o=0;mb(63,e|0,b|0,l|0);b=o;o=0;if(b&1){d=cc()|0;nq(l);Uz(e);break}else{c[d>>2]=0;$q(d,e);nq(l);nq(n);break a}}while(0);nq(n)}bc(d|0)}}while(0);i=m;return c[d>>2]|0}function Dh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;k=m+24|0;n=m+12|0;l=m;a:do if((b|0)<0){e=Ob(8)|0;o=0;ma(103,e|0,47650);n=o;o=0;if(n&1){n=cc()|0;Nb(e|0);e=n;break}else Hc(e|0,240,66)}else{b:do if(!d){e=kh(c[a+8>>2]|0)|0;c[k>>2]=e}else{h=a+20|0;f=c[h>>2]|0;f=(c[f+12>>2]|0)-(c[f+8>>2]|0)|0;j=f>>2;e=Sz(20)|0;o=0;ma(102,e|0,j+b|0);g=o;o=0;if(g&1){n=cc()|0;Uz(e);e=n;break a}Fq(n,e);g=a+8|0;a=(c[n+8>>2]|0)+8|0;c:do if((f|0)>0){b=0;while(1){o=0;e=ya(93,c[g>>2]|0,c[(c[(c[h>>2]|0)+8>>2]|0)+(b<<2)>>2]|0,d|0)|0;f=o;o=0;if(f&1)break;c[(c[a>>2]|0)+(b<<2)>>2]=e;b=b+1|0;if((b|0)>=(j|0)){b=15;break c}}e=cc()|0;b=14}else b=15;while(0);do if((b|0)==15){o=0;e=qa(111,24)|0;d=o;o=0;if(d&1){e=cc()|0;b=14;break}d=c[g>>2]|0;mq(l,n);o=0;mb(63,e|0,d|0,l|0);d=o;o=0;if(d&1){m=cc()|0;nq(l);Uz(e);e=m;break}else{c[k>>2]=0;$q(k,e);nq(l);nq(n);e=c[k>>2]|0;break b}}while(0);nq(n);break a}while(0);i=m;return e|0}while(0);bc(e|0);return 0}function Eh(a,b){a=a|0;b=b|0;iq(a,b);return}function Fh(a){a=a|0;lq(a);return}function Gh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;t=i;i=i+128|0;B=t+112|0;e=t+100|0;A=t+88|0;z=t+84|0;m=t+72|0;y=t+60|0;n=t+56|0;p=t+52|0;x=t+48|0;w=t+44|0;v=t+32|0;q=t+28|0;u=t+16|0;r=t+12|0;s=t;f=Sz(24)|0;l=c[a>>2]|0;mq(e,b);o=0;mb(63,f|0,l|0,e|0);l=o;o=0;if(l&1){B=cc()|0;nq(e);Uz(f);e=B}else{c[B>>2]=0;$q(B,f);nq(e);o=0;ma(91,A|0,d|0);l=o;o=0;a:do if(l&1)e=cc()|0;else{g=c[B>>2]|0;j=c[A+8>>2]|0;h=j+12|0;j=j+8|0;b:do if((d|0)>0){k=0;l=1;while(1){e=c[a>>2]|0;o=0;f=qa(129,e|0)|0;C=o;o=0;if(C&1){f=10;break}o=0;e=Wa(69,e|0,f+k|0)|0;C=o;o=0;if(C&1){f=10;break}o=0;e=Wa(70,g|0,e|0)|0;C=o;o=0;if(C&1){f=10;break}C=c[j>>2]|0;c[C+(((c[h>>2]|0)-C>>2)+~k<<2)>>2]=e;l=l&(e|0)==0;k=k+1|0;if((k|0)>=(d|0)){f=13;break}}do if((f|0)==10){e=cc()|0;f=12}else if((f|0)==13){if(l)break b;o=0;e=qa(111,24)|0;C=o;o=0;if(C&1){e=cc()|0;f=12;break}C=c[a>>2]|0;mq(m,A);o=0;mb(63,e|0,C|0,m|0);C=o;o=0;if(C&1){C=cc()|0;nq(m);Uz(e);e=C;break}c[z>>2]=0;$q(z,e);nq(m);o=0;e=ya(94,c[a>>2]|0,d|0,1)|0;C=o;o=0;do if(C&1)e=cc()|0;else{c[n>>2]=e;c[p>>2]=0;$q(p,c[z>>2]|0);o=0;ia(47,y|0,a|0,n|0,p|0,d|0);C=o;o=0;if(C&1){e=cc()|0;ar(p);ar(n);break}ar(p);ar(n);dr(x,c[y>>2]|0);dr(w,(c[y>>2]|0)+4|0);c[q>>2]=0;$q(q,c[x>>2]|0);o=0;mb(64,v|0,a|0,q|0);C=o;o=0;if(C&1){e=cc()|0;ar(q)}else{ar(q);c[r>>2]=0;$q(r,c[w>>2]|0);mq(s,v);o=0;ub(57,u|0,a|0,r|0,s|0);C=o;o=0;c:do if(C&1){e=cc()|0;nq(s);ar(r)}else{nq(s);ar(r);m=c[v+8>>2]|0;l=m+12|0;m=m+8|0;j=b+8|0;k=(c[u+8>>2]|0)+8|0;e=c[m>>2]|0;d:do if(((c[l>>2]|0)-e|0)>0){h=0;while(1){g=c[j>>2]|0;f=c[g+12>>2]|0;g=c[g+8>>2]|0;o=0;e=Wa(71,c[a>>2]|0,c[e+(h<<2)>>2]|0)|0;C=o;o=0;if(C&1){f=29;break}e=(f-g>>2)+-1-e|0;if((e|0)<0){f=23;break}o=0;f=Wa(68,c[(c[(c[j>>2]|0)+8>>2]|0)+(e<<2)>>2]|0,c[(c[k>>2]|0)+(h<<2)>>2]|0)|0;C=o;o=0;if(C&1){f=29;break}c[(c[(c[j>>2]|0)+8>>2]|0)+(e<<2)>>2]=f;h=h+1|0;e=c[m>>2]|0;if((h|0)>=((c[l>>2]|0)-e>>2|0))break d}if((f|0)==23){e=Ob(8)|0;Kh(e,47681);o=0;mb(55,e|0,256,68);o=0;e=cc()|0}else if((f|0)==29)e=cc()|0;nq(u);break c}while(0);nq(u);nq(v);ar(w);ar(x);fr(y);ar(z);break b}while(0);nq(v)}ar(w);ar(x);fr(y)}while(0);ar(z)}while(0);nq(A);break a}while(0);nq(A);ar(B);i=t;return}while(0);ar(B)}bc(e|0)}function Hh(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;A=i;i=i+80|0;g=A+68|0;F=A+64|0;E=A+60|0;D=A+56|0;C=A+52|0;y=A+48|0;z=A+44|0;v=A+40|0;m=A+36|0;q=A+32|0;n=A+28|0;r=A+24|0;p=A+20|0;s=A+16|0;u=A+12|0;t=A+8|0;B=A+4|0;x=A;l=wh(c[d>>2]|0)|0;if((l|0)<(wh(c[e>>2]|0)|0)){dr(g,d);$q(d,c[e>>2]|0);$q(e,c[g>>2]|0);ar(g)}dr(F,d);dr(E,e);o=0;g=qa(130,c[b>>2]|0)|0;l=o;o=0;if(l&1)d=cc()|0;else{c[D>>2]=g;o=0;d=qa(131,c[b>>2]|0)|0;l=o;o=0;if(l&1)d=cc()|0;else{c[C>>2]=d;l=(f|0)/2|0;e=c[E>>2]|0;a:while(1){o=0;d=qa(132,e|0)|0;k=o;o=0;if(k&1){f=13;break}if((d|0)<(l|0)){f=54;break}c[y>>2]=0;$q(y,c[F>>2]|0);c[z>>2]=0;$q(z,g);$q(F,e);$q(D,c[C>>2]|0);k=c[F>>2]|0;o=0;d=qa(133,k|0)|0;j=o;o=0;if(j&1){f=16;break}if(d){f=10;break}$q(E,c[y>>2]|0);o=0;d=qa(130,c[b>>2]|0)|0;j=o;o=0;if(j&1){f=16;break}c[v>>2]=d;o=0;d=qa(132,k|0)|0;j=o;o=0;if(j&1){f=38;break}o=0;d=Wa(72,k|0,d|0)|0;j=o;o=0;if(j&1){f=38;break}o=0;j=Wa(73,c[b>>2]|0,d|0)|0;h=o;o=0;if(h&1){f=38;break}while(1){e=c[E>>2]|0;o=0;d=qa(132,e|0)|0;h=o;o=0;if(h&1){f=37;break a}o=0;g=qa(132,k|0)|0;h=o;o=0;if(h&1){f=37;break a}if((d|0)<(g|0))break;o=0;d=qa(133,e|0)|0;h=o;o=0;if(h&1){f=37;break a}if(d)break;o=0;d=qa(132,e|0)|0;h=o;o=0;if(h&1){f=37;break a}o=0;g=qa(132,k|0)|0;h=o;o=0;if(h&1){f=37;break a}h=d-g|0;g=c[b>>2]|0;o=0;d=qa(132,e|0)|0;f=o;o=0;if(f&1){f=37;break a}o=0;d=Wa(72,e|0,d|0)|0;f=o;o=0;if(f&1){f=37;break a}o=0;f=ya(93,g|0,d|0,j|0)|0;g=o;o=0;if(g&1){f=37;break a}d=c[v>>2]|0;o=0;g=ya(94,c[b>>2]|0,h|0,f|0)|0;G=o;o=0;if(G&1){f=37;break a}c[q>>2]=g;o=0;d=Wa(74,d|0,q|0)|0;G=o;o=0;if(G&1){f=40;break a}c[m>>2]=d;$q(v,d);ar(m);ar(q);o=0;d=ya(95,k|0,h|0,f|0)|0;G=o;o=0;if(G&1){f=37;break a}c[r>>2]=d;o=0;d=Wa(74,e|0,r|0)|0;G=o;o=0;if(G&1){f=41;break a}c[n>>2]=d;$q(E,d);ar(n);ar(r)}d=c[v>>2]|0;c[u>>2]=0;g=c[D>>2]|0;$q(u,g);o=0;d=Wa(75,d|0,u|0)|0;G=o;o=0;if(G&1){f=48;break}c[s>>2]=d;c[t>>2]=0;$q(t,c[z>>2]|0);o=0;d=Wa(74,d|0,t|0)|0;G=o;o=0;if(G&1){f=49;break}c[p>>2]=d;$q(C,d);ar(p);ar(t);ar(s);ar(u);o=0;f=qa(132,e|0)|0;G=o;o=0;if(G&1){f=38;break}o=0;d=qa(132,k|0)|0;G=o;o=0;if(G&1){f=38;break}if((f|0)>=(d|0)){f=47;break}ar(v);ar(z);ar(y)}b:switch(f|0){case 10:{d=Ob(8)|0;Kh(d,47700);o=0;mb(55,d|0,256,68);o=0;d=cc()|0;f=17;break}case 13:{d=cc()|0;f=15;break}case 16:{d=cc()|0;f=17;break}case 37:{d=cc()|0;f=39;break}case 38:{d=cc()|0;f=39;break}case 40:{d=cc()|0;ar(q);f=52;break}case 41:{d=cc()|0;ar(r);f=52;break}case 47:{d=Ob(8)|0;zq(d,47717);c[d>>2]=30648;o=0;mb(55,d|0,872,146);o=0;d=cc()|0;f=39;break}case 48:{d=cc()|0;f=50;break}case 49:{d=cc()|0;ar(t);ar(s);f=50;break}case 54:{g=c[C>>2]|0;o=0;d=Wa(72,g|0,0)|0;G=o;o=0;do if(!(G&1)){if(!d){G=Ob(8)|0;Kh(G,47765);o=0;mb(55,G|0,256,68);o=0;break}o=0;d=Wa(73,c[b>>2]|0,d|0)|0;G=o;o=0;if(!(G&1)?(o=0,w=Wa(76,g|0,d|0)|0,G=o,o=0,!(G&1)):0){c[B>>2]=w;o=0;d=Wa(76,e|0,d|0)|0;G=o;o=0;do if(!(G&1)){c[x>>2]=d;o=0;ma(113,a|0,2);G=o;o=0;if(G&1){d=cc()|0;ar(x);break}else{$q(c[a>>2]|0,w);$q((c[a>>2]|0)+4|0,d);ar(x);ar(B);ar(C);ar(D);ar(E);ar(F);i=A;return}}else d=cc()|0;while(0);ar(B);break b}}while(0);d=cc()|0;f=15;break}}if((f|0)!=15)if((f|0)==17)f=53;else if((f|0)==39)f=52;else if((f|0)==50){ar(u);f=52}if((f|0)==52){ar(v);f=53}if((f|0)==53){ar(z);ar(y)}ar(C)}ar(D)}ar(E);ar(F);bc(d|0)}function Ih(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;k=l;j=wh(c[d>>2]|0)|0;e=Sz(20)|0;o=0;a:do if((j|0)==1){Eq(e,1);k=o;o=0;if(k&1){f=cc()|0;Uz(e);e=f;f=23;break}Fq(a,e);o=0;e=Wa(72,c[d>>2]|0,1)|0;k=o;o=0;if(k&1){e=cc()|0;nq(a);f=23;break}else{c[c[(c[a+8>>2]|0)+8>>2]>>2]=e;f=22;break}}else{Eq(e,j);h=o;o=0;if(h&1){f=cc()|0;Uz(e);e=f;f=23;break}Fq(k,e);g=(c[k+8>>2]|0)+8|0;e=0;h=1;while(1){o=0;f=qa(134,c[b>>2]|0)|0;m=o;o=0;if(m&1){f=16;break}if(!((e|0)<(j|0)&(h|0)<(f|0))){f=19;break}o=0;f=Wa(70,c[d>>2]|0,h|0)|0;m=o;o=0;if(m&1){f=16;break}if(!f){o=0;f=Wa(73,c[b>>2]|0,h|0)|0;m=o;o=0;if(m&1){f=16;break}c[(c[g>>2]|0)+(e<<2)>>2]=f;e=e+1|0}h=h+1|0}do if((f|0)==16)e=cc()|0;else if((f|0)==19)if((e|0)==(j|0)){mq(a,k);nq(k);f=22;break a}else{e=Ob(8)|0;Kh(e,47788);o=0;mb(55,e|0,256,68);o=0;e=cc()|0;break}while(0);nq(k);f=23}while(0);if((f|0)==22){i=l;return}else if((f|0)==23)bc(e|0)}function Jh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;l=e+8|0;f=c[l>>2]|0;f=(c[f+12>>2]|0)-(c[f+8>>2]|0)|0;m=f>>2;e=Sz(20)|0;o=0;ma(102,e|0,m|0);k=o;o=0;a:do if(k&1){a=cc()|0;Uz(e);e=a}else{Fq(a,e);k=a+8|0;b:do if((f|0)>0){i=(f|0)>0;j=0;c:while(1){o=0;h=Wa(73,c[b>>2]|0,c[(c[(c[l>>2]|0)+8>>2]|0)+(j<<2)>>2]|0)|0;g=o;o=0;if(g&1){f=11;break}if(i){e=1;g=0;do{if((j|0)!=(g|0)){o=0;f=ya(93,c[b>>2]|0,c[(c[(c[l>>2]|0)+8>>2]|0)+(g<<2)>>2]|0,h|0)|0;n=o;o=0;if(n&1){f=10;break c}o=0;e=ya(93,c[b>>2]|0,e|0,((f&1|0)==0?f|1:f&-2)|0)|0;n=o;o=0;if(n&1){f=10;break c}}g=g+1|0}while((g|0)<(m|0))}else e=1;f=c[b>>2]|0;o=0;g=Wa(70,c[d>>2]|0,h|0)|0;n=o;o=0;if(n&1){f=11;break}o=0;e=Wa(73,c[b>>2]|0,e|0)|0;n=o;o=0;if(n&1){f=11;break}o=0;e=ya(93,f|0,g|0,e|0)|0;n=o;o=0;if(n&1){f=11;break}f=(c[k>>2]|0)+8|0;c[(c[f>>2]|0)+(j<<2)>>2]=e;o=0;e=qa(129,c[b>>2]|0)|0;n=o;o=0;if(n&1){f=11;break}if(e){o=0;e=ya(93,c[b>>2]|0,c[(c[f>>2]|0)+(j<<2)>>2]|0,h|0)|0;n=o;o=0;if(n&1){f=11;break}c[(c[f>>2]|0)+(j<<2)>>2]=e}j=j+1|0;if((j|0)>=(m|0))break b}if((f|0)==10)e=cc()|0;else if((f|0)==11)e=cc()|0;nq(a);break a}while(0);return}while(0);bc(e|0)}function Kh(a,b){a=a|0;b=b|0;zq(a,b);c[a>>2]=4392;return}function Lh(a){a=a|0;Aq(a);return}function Mh(a){a=a|0;Aq(a);Uz(a);return}function Nh(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=30668;EC(a+8|0,b);return}function Oh(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=30668;a=a+8|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;o=0;ma(114,a|0,b|0);b=o;o=0;if(b&1){b=cc()|0;IC(a);bc(b|0)}else return}function Ph(a){a=a|0;return a+8|0}function Qh(b,d){b=b|0;d=d|0;var e=0;e=b+8|0;if(!(a[e>>0]&1))e=e+1|0;else e=c[b+16>>2]|0;return a[e+d>>0]|0}function Rh(b){b=b|0;var d=0;d=a[b+8>>0]|0;if(!(d&1))d=(d&255)>>>1;else d=c[b+12>>2]|0;return d|0}function Sh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=i;i=i+16|0;d=f+12|0;e=f;g=Sz(20)|0;a=a+8|0;o=0;ia(48,e|0,a|0,b|0,-1,a|0);a=o;o=0;do if(!(a&1)){o=0;ma(94,g|0,e|0);a=o;o=0;if(a&1){d=cc()|0;IC(e);break}else{c[d>>2]=0;cq(d,g);IC(e);i=f;return c[d>>2]|0}}else d=cc()|0;while(0);Uz(g);bc(d|0);return 0}function Th(b,d){b=b|0;d=d|0;var e=0,f=0;e=a[d>>0]|0;f=(e&1)==0;RC(b+8|0,f?d+1|0:c[d+8>>2]|0,f?(e&255)>>>1:c[d+4>>2]|0)|0;return}function Uh(a,b){a=a|0;b=b|0;NC(a+8|0,1,b)|0;return}function Vh(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;f=hr(e,4480)|0;a:do if((f|0)==(e+4|0)){if(((d|0)>3?(a[c>>0]|0)==-17:0)?(a[c+1>>0]|0)==-69:0)x=(a[c+2>>0]|0)==-65;else x=0;if((d|0)>0){p=1;n=1;o=1;u=0;m=0;s=0;v=0;w=0;t=0;k=0;j=0;i=0;h=0;g=0;e=0;while(1){q=a[c+u>>0]|0;l=q&255;do if(o){f=(l&128|0)==0;if((e|0)>0){r=f^1;o=r;e=(r<<31>>31)+e|0;break}if(!f)if(l&64){if(!(l&32)){o=1;i=i+1|0;e=e+1|0;break}if(!(l&16)){o=1;h=h+1|0;e=e+2|0;break}else{r=l&8;o=(r|0)==0;g=(r>>>3^1)+g|0;e=e+3|0;break}}else o=0;else o=1}else o=0;while(0);if(p?!(q<<24>>24<0&(q&255)<160):0)if((q&255)>159){p=1;m=(((q&255)<192|(q&-33)<<24>>24==-41)&1)+m|0}else p=1;else p=0;do if(n){if((s|0)>0){f=(q+-64&255)<189&q<<24>>24!=127;n=f;f=(f<<31>>31)+s|0;q=v;r=w;l=t;break}if(!((q&255)>239|(q&-33)<<24>>24==-128)){if((q+95&255)<63){v=w+1|0;n=1;f=s;q=0;r=v;l=t+1|0;j=(w|0)<(j|0)?j:v;break}if(q<<24>>24<0){w=v+1|0;n=1;f=s+1|0;q=w;r=0;l=t;k=(v|0)<(k|0)?k:w}else{n=1;f=s;q=0;r=0;l=t}}else{n=0;f=s;q=v;r=w;l=t}}else{n=0;f=s;q=v;r=w;l=t}while(0);u=u+1|0;if(!((u|0)<(d|0)&(o|(n|p))))break;else{s=f;v=q;w=r;t=l}}}else{p=1;n=1;o=1;m=0;f=0;l=0;k=0;j=0;i=0;h=0;g=0;e=0}f=(f|0)<1&n;do if(o&(e|0)<1){if(!x?(h+i+g|0)<=0:0)break;FC(b,52082,5);break a}while(0);if(!f)if(p){FC(b,47850,9);break}else{FC(b,52082,5);break}if((j|0)>2|(k|0)>2){FC(b,47840,9);break}if(p){FC(b,((l|0)!=2|(j|0)!=2)&(m*10|0)<(d|0)?47850:47840,9);break}else{FC(b,47840,9);break}}else EC(b,f+20|0);while(0);return}function Wh(a){a=a|0;c[a+4>>2]=0;c[a>>2]=4416;o=0;ka(310,a+8|0);a=o;o=0;if(a&1){a=cc()|0;bc(a|0)}else return}function Xh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;l=i;i=i+80|0;f=l+76|0;g=l+72|0;r=l+60|0;d=l+56|0;q=l+52|0;p=l+40|0;n=l+36|0;e=l+32|0;m=l+28|0;h=l+16|0;j=l+4|0;k=l;c[d>>2]=Kf(c[b>>2]|0)|0;o=0;ma(115,r|0,d|0);b=o;o=0;if(b&1){r=cc()|0;Yd(d);d=r}else{Yd(d);o=0;d=qa(135,r|0)|0;b=o;o=0;if(b&1)d=cc()|0;else{c[q>>2]=d;o=0;ma(85,p|0,d|0);b=o;o=0;if(b&1)d=cc()|0;else{o=0;d=qa(118,d|0)|0;b=o;o=0;do if(b&1)d=cc()|0;else{c[e>>2]=d;o=0;b=Wa(77,a+8|0,e|0)|0;a=o;o=0;if(a&1){d=cc()|0;Yd(e);break}c[n>>2]=b;Yd(e);o=0;e=qa(111,40)|0;a=o;o=0;if(a&1)d=cc()|0;else{o=0;d=qa(116,b|0)|0;a=o;o=0;if(a&1)d=cc()|0;else{c[m>>2]=d;o=0;ma(86,h|0,b|0);a=o;o=0;do if(!(a&1)){oe(j,p);c[k>>2]=6;o=0;c[f>>2]=c[k>>2];ia(45,e|0,m|0,h|0,j|0,f|0);k=o;o=0;if(k&1){d=cc()|0;pe(j);Sd(h);break}else{c[g>>2]=0;Qe(g,e);pe(j);Sd(h);ne(m);aq(n);pe(p);ir(q);c[r>>2]=4440;Yd(r+8|0);i=l;return c[g>>2]|0}}else d=cc()|0;while(0);ne(m)}Uz(e)}aq(n)}while(0);pe(p)}ir(q)}c[r>>2]=4440;Yd(r+8|0)}bc(d|0);return 0}function Yh(a){a=a|0;c[a>>2]=4416;Fh(a+8|0);return}function Zh(a){a=a|0;Yh(a);Uz(a);return}function _h(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;k=i;i=i+16|0;e=k+12|0;f=k+8|0;g=k+4|0;h=k;c[a+4>>2]=0;c[a>>2]=30684;l=a+8|0;c[l>>2]=0;Ke(l,0);m=a+12|0;c[m>>2]=0;jr(m,0);n=a+16|0;c[n>>2]=0;Ke(n,0);o=0;d=qa(122,c[b>>2]|0)|0;q=o;o=0;do if(!(q&1)){if(!((d+-8|0)>>>0<137&(d&1|0)==0)){p=Ob(8)|0;zq(p,47860);c[p>>2]=29736;o=0;mb(55,p|0,24,146);o=0;p=4;break}Zp(f,b);o=0;d=Wa(78,a|0,f|0)|0;q=o;o=0;if(q&1){d=cc()|0;Yd(f);break}c[e>>2]=d;jr(m,d);kr(e);Yd(f);Zp(h,b);o=0;d=Wa(79,a|0,h|0)|0;q=o;o=0;if(q&1){d=cc()|0;Yd(h);break}c[g>>2]=d;Ke(l,d);Yd(g);Yd(h);o=0;d=qa(111,32)|0;q=o;o=0;if(!(q&1)){o=0;e=qa(121,c[l>>2]|0)|0;q=o;o=0;if((!(q&1)?(o=0,j=qa(122,c[l>>2]|0)|0,q=o,o=0,!(q&1)):0)?(o=0,mb(54,d|0,e|0,j|0),q=o,o=0,!(q&1)):0){Ke(n,d);i=k;return}q=cc()|0;Uz(d);d=q}else p=4}else p=4;while(0);if((p|0)==4)d=cc()|0;Yd(n);kr(m);Yd(l);bc(d|0)}function $h(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=i;i=i+16|0;d=f+4|0;e=f;a=a+12|0;do if(!(c[a>>2]|0)){g=jg(c[b>>2]|0)|0;b=ig(c[b>>2]|0)|0;a=_i(c[a>>2]|0,g,b)|0;c[e>>2]=a;if(!a){g=Ob(8)|0;zq(g,47894);c[g>>2]=29736;o=0;mb(55,g|0,24,146);o=0;g=cc()|0;kr(e);bc(g|0)}else{c[d>>2]=0;jr(d,a);kr(e);break}}else lr(d,a);while(0);i=f;return c[d>>2]|0}function ai(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;f=y;a=a+12|0;d=Ui(c[a>>2]|0)|0;e=Vi(c[a>>2]|0)|0;do if((jg(c[b>>2]|0)|0)!=(d|0)){a=Ob(8)|0;o=0;ma(103,a|0,47918);y=o;o=0;if(y&1){y=cc()|0;Nb(a|0);a=y;break}else Hc(a|0,240,66)}else{x=Wi(c[a>>2]|0)|0;w=Xi(c[a>>2]|0)|0;v=(d|0)/(x|0)|0;u=(e|0)/(w|0)|0;t=$(v,x)|0;s=$(u,w)|0;a=Sz(32)|0;o=0;mb(54,a|0,s|0,t|0);t=o;o=0;if(t&1){y=cc()|0;Uz(a);a=y;break}c[f>>2]=0;Ke(f,a);s=x+2|0;t=w+2|0;a=c[f>>2]|0;if((v|0)>0){d=(u|0)>0;e=(x|0)>0;f=(w|0)>0;p=0;do{g=$(p,x)|0;h=($(p,s)|0)+1|0;if(d){n=0;do{j=$(n,w)|0;k=($(n,t)|0)+1|0;if(e){q=0;do{l=h+q|0;m=q+g|0;if(f){r=0;do{if(eq(c[b>>2]|0,k+r|0,l)|0)Xd(a,r+j|0,m);r=r+1|0}while((r|0)<(w|0))}q=q+1|0}while((q|0)<(x|0))}n=n+1|0}while((n|0)<(u|0))}p=p+1|0}while((p|0)<(v|0))}i=y;return a|0}while(0);bc(a|0);return 0}function bi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=d+12|0;Rd(b,Yi(c[x>>2]|0)|0);e=d+8|0;o=0;v=qa(122,c[e>>2]|0)|0;u=o;o=0;do if(!(u&1)?(o=0,w=qa(121,c[e>>2]|0)|0,u=o,o=0,!(u&1)):0){n=v+-2|0;p=(w&3|0)==0;q=v+4|0;s=w&7;r=(s|0)==0;s=(s|0)==4;t=b+8|0;u=d+16|0;i=0;l=0;m=0;j=0;k=0;f=0;g=4;while(1){e=(i|0)==0;do if(l|e&(g|0)==(v|0)^1){e=e&(g|0)==(n|0);if(!(p|e^1|m)){e=di(d,v,w)|0;a[(c[(c[t>>2]|0)+8>>2]|0)+f>>0]=e;i=i+2|0;e=l;h=1;f=f+1|0;g=g+-2|0;break}if(!(j|r&((i|0)==2&(g|0)==(q|0))^1)){e=ei(d,v,w)|0;a[(c[(c[t>>2]|0)+8>>2]|0)+f>>0]=e;i=i+2|0;e=l;h=m;j=1;f=f+1|0;g=g+-2|0;break}if(!(k|s&e^1)){e=fi(d,v,w)|0;a[(c[(c[t>>2]|0)+8>>2]|0)+f>>0]=e;i=i+2|0;e=l;h=m;k=1;f=f+1|0;g=g+-2|0;break}while(1){if((i|0)>-1&(g|0)<(v|0)?!(eq(c[u>>2]|0,i,g)|0):0){h=gi(d,g,i,v,w)|0;a[(c[(c[t>>2]|0)+8>>2]|0)+f>>0]=h;f=f+1|0}h=g+-2|0;e=i+2|0;if((e|0)<(w|0)&(h|0)>-1){i=e;g=h}else{e=i;break}}h=e+5|0;i=g+-1|0;while(1){if((h|0)<(w|0)&(i|0)>-1?!(eq(c[u>>2]|0,h,i)|0):0){g=gi(d,i,h,v,w)|0;a[(c[(c[t>>2]|0)+8>>2]|0)+f>>0]=g;f=f+1|0}g=i+2|0;e=h+-2|0;if((e|0)>-1&(g|0)<(v|0)){h=e;i=g}else{e=h;g=i;break}}i=e+-1|0;e=l;h=m;g=g+5|0}else{e=ci(d,v,w)|0;a[(c[(c[t>>2]|0)+8>>2]|0)+f>>0]=e;i=i+2|0;e=1;h=m;f=f+1|0;g=g+-2|0}while(0);if((i|0)<(w|0)|(g|0)<(v|0)){l=e;m=h}else break}o=0;e=qa(136,c[x>>2]|0)|0;x=o;o=0;if(!(x&1))if((f|0)==(e|0))return;else{x=Ob(8)|0;zq(x,49835);c[x>>2]=29736;o=0;mb(55,x|0,24,146);o=0;break}}while(0);x=cc()|0;Sd(b);bc(x|0)}function ci(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=b+-1|0;d=hi(a,e,0,b,c)|0;d=((hi(a,e,1,b,c)|0)&1|(d?2:0))<<1;e=(d|(hi(a,e,2,b,c)|0)&1)<<1;e=(e|(hi(a,0,c+-2|0,b,c)|0)&1)<<1;d=c+-1|0;e=(e|(hi(a,0,d,b,c)|0)&1)<<1;e=(e|(hi(a,1,d,b,c)|0)&1)<<1;e=(e|(hi(a,2,d,b,c)|0)&1)<<1;return e|(hi(a,3,d,b,c)|0)&1|0}function di(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=hi(a,b+-3|0,0,b,c)|0;e=((hi(a,b+-2|0,0,b,c)|0)&1|(e?2:0))<<1;e=(e|(hi(a,b+-1|0,0,b,c)|0)&1)<<1;e=(e|(hi(a,0,c+-4|0,b,c)|0)&1)<<1;e=(e|(hi(a,0,c+-3|0,b,c)|0)&1)<<1;e=(e|(hi(a,0,c+-2|0,b,c)|0)&1)<<1;d=c+-1|0;e=(e|(hi(a,0,d,b,c)|0)&1)<<1;return e|(hi(a,1,d,b,c)|0)&1|0}function ei(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=b+-1|0;g=hi(a,f,0,b,c)|0;d=c+-1|0;g=((hi(a,f,d,b,c)|0)&1|(g?2:0))<<1;f=c+-3|0;g=(g|(hi(a,0,f,b,c)|0)&1)<<1;e=c+-2|0;g=(g|(hi(a,0,e,b,c)|0)&1)<<1;g=(g|(hi(a,0,d,b,c)|0)&1)<<1;f=(g|(hi(a,1,f,b,c)|0)&1)<<1;e=(f|(hi(a,1,e,b,c)|0)&1)<<1;return e|(hi(a,1,d,b,c)|0)&1|0}function fi(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=hi(a,b+-3|0,0,b,c)|0;e=((hi(a,b+-2|0,0,b,c)|0)&1|(e?2:0))<<1;e=(e|(hi(a,b+-1|0,0,b,c)|0)&1)<<1;e=(e|(hi(a,0,c+-2|0,b,c)|0)&1)<<1;d=c+-1|0;e=(e|(hi(a,0,d,b,c)|0)&1)<<1;e=(e|(hi(a,1,d,b,c)|0)&1)<<1;e=(e|(hi(a,2,d,b,c)|0)&1)<<1;return e|(hi(a,3,d,b,c)|0)&1|0}function gi(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;h=b+-2|0;g=c+-2|0;i=hi(a,h,g,d,e)|0;f=c+-1|0;i=((hi(a,h,f,d,e)|0)&1|(i?2:0))<<1;h=b+-1|0;i=(i|(hi(a,h,g,d,e)|0)&1)<<1;i=(i|(hi(a,h,f,d,e)|0)&1)<<1;h=(i|(hi(a,h,c,d,e)|0)&1)<<1;g=(h|(hi(a,b,g,d,e)|0)&1)<<1;f=(g|(hi(a,b,f,d,e)|0)&1)<<1;return f|(hi(a,b,c,d,e)|0)&1|0}function hi(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;if((b|0)<0){b=e+b|0;d=d+4-(e+4&7)|0}if((d|0)<0){b=4-(f+4&7)+b|0;d=d+f|0}Xd(c[a+16>>2]|0,d,b);return eq(c[a+8>>2]|0,d,b)|0}function ii(a,b,d){a=a|0;b=b|0;d=d|0;c[a+4>>2]=0;c[a>>2]=30700;c[a+8>>2]=b;Pd(a+12|0,d);return}function ji(a){a=a|0;return c[a+8>>2]|0}function ki(a,b){a=a|0;b=b|0;Pd(a,b+12|0);return}
function qk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0.0,j=0.0,k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;P=i;i=i+304|0;J=P+288|0;K=P+284|0;W=P+272|0;b=P+132|0;V=P+120|0;U=P+108|0;f=P+300|0;T=P+96|0;g=P+92|0;S=P+136|0;B=P+88|0;C=P+76|0;D=P+64|0;R=P+52|0;Q=P+40|0;H=P+36|0;I=P+32|0;O=P+28|0;L=P+16|0;M=P+4|0;N=P;Wd(b,e);o=0;ma(145,W|0,b|0);A=o;o=0;if(A&1){W=cc()|0;bq(b);b=W}else{bq(b);m=c[(c[W>>2]|0)+8>>2]|0;a:do switch(m|0){case 103:{p=101;r=9;break}case 104:{p=100;r=9;break}case 105:{p=99;r=9;break}default:{b=Ob(8)|0;o=0;ka(308,b|0);V=o;o=0;if(V&1){V=cc()|0;Nb(b|0);b=V;break a}else{o=0;mb(55,b|0,320,76);o=0;b=cc()|0;break a}}}while(0);if((r|0)==9){c[V>>2]=0;c[V+4>>2]=0;c[V+8>>2]=0;a[f>>0]=0;o=0;mb(77,U|0,20,f|0);A=o;o=0;if(A&1)b=cc()|0;else{l=c[(c[W>>2]|0)+4>>2]|0;c[g>>2]=0;o=0;mb(75,T|0,6,g|0);A=o;o=0;if(A&1)b=cc()|0;else{f=S+56|0;A=S+4|0;c[S>>2]=29792;c[f>>2]=29812;o=0;ma(104,S+56|0,A|0);z=o;o=0;b:do if(z&1){b=cc()|0;r=23}else{c[S+128>>2]=0;c[S+132>>2]=-1;c[S>>2]=29832;c[S+56>>2]=29852;o=0;ka(307,A|0);z=o;o=0;do if(z&1)b=cc()|0;else{c[A>>2]=29868;b=S+36|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[S+48>>2]=0;c[S+52>>2]=16;c[J>>2]=0;c[J+4>>2]=0;c[J+8>>2]=0;o=0;ma(105,A|0,J|0);z=o;o=0;if(z&1){S=cc()|0;IC(J);IC(b);nD(A);b=S;break}IC(J);w=T+4|0;x=D+8|0;y=D+1|0;z=D+4|0;q=m;n=0;v=0;m=1;g=0;c:while(1){Wd(B,e);o=0;u=ya(100,B|0,T|0,l|0)|0;t=o;o=0;if(t&1){r=27;break}bq(B);t=(u|0)!=106;m=m|t;if(t){g=g+1|0;q=($(u,g)|0)+q|0}f=c[T>>2]|0;s=(c[w>>2]|0)-f|0;r=s>>2;if((s|0)>0){s=0;b=l;do{b=(c[f+(s<<2)>>2]|0)+b|0;s=s+1|0}while((s|0)<(r|0))}else b=l;if((u+-103|0)>>>0<3){r=32;break}d:do switch(p|0){case 101:{if((u|0)<64){o=0;ya(101,V|0,1,u+32&255|0)|0;t=o;o=0;if(t&1){r=24;break c}else{p=101;f=0;r=0;break d}}if((u|0)<96){o=0;ya(101,V|0,1,u+192&255|0)|0;t=o;o=0;if(t&1){r=24;break c}else{p=101;f=0;r=0;break d}}m=m^t;switch(u|0){case 98:{p=100;f=0;r=1;break d}case 106:{p=101;f=1;r=0;break d}case 99:{p=u;f=0;r=0;break d}case 100:{p=u;f=0;r=0;break d}default:{p=101;f=0;r=0;break d}}}case 100:{if((u|0)<96){o=0;ya(101,V|0,1,u+32&255|0)|0;t=o;o=0;if(t&1){r=24;break c}else{p=100;f=0;r=0;break d}}m=m^t;switch(u|0){case 106:{p=100;f=1;r=0;break d}case 99:{p=u;f=0;r=0;break d}case 101:{p=u;f=0;r=0;break d}case 98:{p=101;f=0;r=1;break d}default:{p=100;f=0;r=0;break d}}}case 99:{if((u|0)>=100){m=m^t;switch(u|0){case 106:{p=99;f=1;r=0;break d}case 101:{p=u;f=0;r=0;break d}case 100:{p=u;f=0;r=0;break d}default:{p=99;f=0;r=0;break d}}}if((u|0)<10?(o=0,ya(101,V|0,1,48)|0,t=o,o=0,t&1):0){r=24;break c}o=0;ma(146,S+(c[(c[S>>2]|0)+-12>>2]|0)|0,0);t=o;o=0;if(t&1){r=24;break c}o=0;mb(57,C|0,61257,0);t=o;o=0;if(t&1){r=24;break c}o=0;ma(105,A|0,C|0);t=o;o=0;if(t&1){r=62;break c}IC(C);o=0;Wa(63,S|0,u|0)|0;t=o;o=0;if(t&1){r=24;break c}o=0;ma(106,D|0,A|0);t=o;o=0;if(t&1){r=24;break c}t=a[D>>0]|0;s=(t&1)==0;o=0;ya(90,V|0,(s?y:c[x>>2]|0)|0,(s?(t&255)>>>1:c[z>>2]|0)|0)|0;t=o;o=0;if(t&1){r=63;break c}IC(D);p=99;f=0;r=0;break}default:{f=0;r=0}}while(0);p=v?((p|0)==101?100:101):p;if(f){r=69;break}else{n=u;v=r;l=b}}e:do if((r|0)==24){b=cc()|0;r=26}else if((r|0)==27){b=cc()|0;bq(B)}else if((r|0)==32){b=Ob(8)|0;o=0;ka(308,b|0);R=o;o=0;if(R&1){R=cc()|0;Nb(b|0);b=R;break}else{o=0;mb(55,b|0,320,76);o=0;r=25;break}}else if((r|0)==62){b=cc()|0;IC(C)}else if((r|0)==63){b=cc()|0;IC(D)}else if((r|0)==69){f=b-l|0;o=0;b=Wa(88,c[e>>2]|0,b|0)|0;D=o;o=0;if((!(D&1)?(E=c[e>>2]|0,o=0,F=qa(120,E|0)|0,e=o,o=0,!(e&1)):0)?(G=((b-l|0)/2|0)+b|0,o=0,G=kb(57,E|0,b|0,((G|0)<(F|0)?G:F)|0,0)|0,e=o,o=0,!(e&1)):0){if(!G){r=Ob(8)|0;c[r+4>>2]=0;c[r>>2]=30552;o=0;mb(55,r|0,856,146);o=0;r=25;break}if(((q-($(n,g)|0)|0)%103|0|0)!=(n|0)){r=Ob(8)|0;Qf(r);o=0;mb(55,r|0,160,56);o=0;r=25;break}b=a[V>>0]|0;b=(b&1)==0?(b&255)>>>1:c[V+4>>2]|0;if(!b){r=Ob(8)|0;c[r+4>>2]=0;c[r>>2]=30552;o=0;mb(55,r|0,856,146);o=0;r=25;break}do if(!((b|0)<1|m^1))if((p|0)==99){o=0;ya(102,V|0,b+-2|0,b|0)|0;e=o;o=0;if(e&1){r=25;break e}else break}else{o=0;ya(102,V|0,b+-1|0,b|0)|0;e=o;o=0;if(e&1){r=25;break e}else break}while(0);b=c[W>>2]|0;j=+((c[b>>2]|0)+(c[b+4>>2]|0)|0)*.5;k=+(l|0)+ +(f|0)*.5;b=(c[U+4>>2]|0)-(c[U>>2]|0)|0;o=0;ma(87,R|0,b|0);e=o;o=0;if(e&1){r=25;break}f=(c[R+8>>2]|0)+8|0;if((b|0)>0){g=0;do{a[(c[f>>2]|0)+g>>0]=a[(c[U>>2]|0)+g>>0]|0;g=g+1|0}while((g|0)<(b|0))}o=0;ma(147,Q|0,2);e=o;o=0;if(e&1)b=cc()|0;else{b=(c[Q+8>>2]|0)+8|0;f=c[b>>2]|0;o=0;g=qa(111,16)|0;e=o;o=0;do if(e&1)r=96;else{h=+(d|0);o=0;wa(43,g|0,+j,+h);d=o;o=0;if(d&1){b=cc()|0;Uz(g);break}c[H>>2]=0;os(H,g);vq(f,c[H>>2]|0);ps(H);b=(c[b>>2]|0)+4|0;o=0;f=qa(111,16)|0;d=o;o=0;if(d&1){r=96;break}o=0;wa(43,f|0,+k,+h);d=o;o=0;if(d&1){b=cc()|0;Uz(f);break}c[I>>2]=0;os(I,f);vq(b,c[I>>2]|0);ps(I);o=0;f=qa(111,40)|0;I=o;o=0;if(I&1){r=96;break}o=0;b=qa(111,20)|0;I=o;o=0;do if(!(I&1)){o=0;ma(94,b|0,V|0);I=o;o=0;if(I&1){P=cc()|0;Uz(b);b=P;break}c[O>>2]=0;cq(O,b);Pd(L,R);oe(M,Q);c[N>>2]=5;o=0;c[J>>2]=c[N>>2];ia(45,f|0,O|0,L|0,M|0,J|0);N=o;o=0;if(N&1){b=cc()|0;pe(M);Sd(L);ne(O);break}else{c[K>>2]=0;Qe(K,f);pe(M);Sd(L);ne(O);pe(Q);Sd(R);Nq(S);br(T);He(U);IC(V);br(W);i=P;return c[K>>2]|0}}else b=cc()|0;while(0);Uz(f)}while(0);if((r|0)==96)b=cc()|0;pe(Q)}Sd(R)}else r=25}while(0);if((r|0)==25){b=cc()|0;r=26}Nq(S);break b}while(0);r=23}while(0);if((r|0)==23)iD(f);br(T)}He(U)}IC(V)}br(W)}bc(b|0);return 0}function rk(a){a=a|0;il(a);return}function sk(a){a=a|0;il(a);Uz(a);return}function tk(b,c,d){b=b|0;c=c|0;d=d|0;a[b+8>>0]=c&1;a[b+9>>0]=d&1;OC(b+12|0,20);cr(b+24|0,9);return}function uk(a){a=a|0;var b=0,d=0,e=0;cl(a);c[a>>2]=4824;b=a+12|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;d=a+24|0;c[d>>2]=0;c[a+28>>2]=0;c[a+32>>2]=0;o=0;mb(78,a|0,0,0);e=o;o=0;if(e&1){e=cc()|0;br(d);IC(b);il(a);bc(e|0)}else return}function vk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0.0,k=0.0,l=0.0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;H=i;i=i+112|0;B=H+100|0;C=H+96|0;K=H+84|0;f=H+80|0;q=H+76|0;J=H+72|0;v=H+68|0;w=H+56|0;x=H+52|0;I=H+40|0;z=H+36|0;A=H+32|0;F=H+28|0;G=H+16|0;D=H+4|0;E=H;r=b+24|0;s=b+28|0;u=(c[s>>2]|0)-(c[r>>2]|0)>>2;cr(r,0);cr(r,u);u=b+12|0;if(!(a[u>>0]&1)){a[u+1>>0]=0;a[u>>0]=0}else{a[c[b+20>>2]>>0]=0;c[b+16>>2]=0}Wd(f,e);o=0;mb(79,K|0,f|0,r|0);y=o;o=0;if(y&1){K=cc()|0;bq(f);f=K}else{bq(f);o=0;f=Wa(89,c[e>>2]|0,c[(c[K>>2]|0)+4>>2]|0)|0;y=o;o=0;a:do if(!(y&1)?(o=0,t=qa(120,c[e>>2]|0)|0,y=o,o=0,!(y&1)):0){while(1){Wd(q,e);o=0;mb(76,q|0,f|0,r|0);y=o;o=0;if(y&1){y=14;break}bq(q);g=xk(r)|0;if((g|0)<0){y=9;break}o=0;p=qa(152,g|0)|0;y=o;o=0;if(y&1){y=11;break}o=0;ya(101,u|0,1,p|0)|0;y=o;o=0;if(y&1){y=11;break}h=c[r>>2]|0;y=(c[s>>2]|0)-h|0;m=y>>2;if((y|0)>0){n=0;g=f;do{g=(c[h+(n<<2)>>2]|0)+g|0;n=n+1|0}while((n|0)<(m|0))}else g=f;o=0;g=Wa(89,c[e>>2]|0,g|0)|0;y=o;o=0;if(y&1){y=11;break}if(p<<24>>24==42){q=f;y=21;break}else f=g}if((y|0)==9){J=Ob(8)|0;c[J+4>>2]=0;c[J>>2]=30552;o=0;mb(55,J|0,856,146);o=0;y=12;break}else if((y|0)==11){f=cc()|0;y=13;break}else if((y|0)==14){f=cc()|0;bq(q);break}else if((y|0)==21){f=a[u>>0]|0;if(!(f&1))f=(f&255)>>>1;else f=c[b+16>>2]|0;o=0;mb(80,u|0,f+-1|0,0);e=o;o=0;if(e&1){y=12;break}n=c[r>>2]|0;s=(c[s>>2]|0)-n|0;h=s>>2;if((s|0)>0){m=0;f=0;do{f=(c[n+(m<<2)>>2]|0)+f|0;m=m+1|0}while((m|0)<(h|0));e=f}else e=0;if((g|0)!=(t|0)?(g-q-e>>1|0)<(e|0):0){y=Ob(8)|0;c[y+4>>2]=0;c[y>>2]=30552;o=0;mb(55,y|0,856,146);o=0;y=12;break}do if(a[b+8>>0]|0){g=a[u>>0]|0;if(!(g&1))f=(g&255)>>>1;else f=c[b+16>>2]|0;p=f+-1|0;f=u+1|0;n=b+20|0;g=(g&1)==0;if((p|0)>0){m=0;h=0;do{if(g)g=f;else g=c[n>>2]|0;h=(WC(33384,a[g+m>>0]|0,0)|0)+h|0;m=m+1|0;g=(a[u>>0]&1)==0}while((m|0)<(p|0))}else h=0;if(!g)f=c[n>>2]|0;if((a[f+p>>0]|0)==(a[48499+((h|0)%43|0)>>0]|0)){o=0;mb(80,u|0,p|0,0);t=o;o=0;if(t&1){y=12;break a}else break}else{y=Ob(8)|0;Qf(y);o=0;mb(55,y|0,160,56);o=0;y=12;break a}}while(0);f=a[u>>0]|0;if(!(f&1))f=(f&255)>>>1;else f=c[b+16>>2]|0;if(!f){y=Ob(8)|0;c[y+4>>2]=0;c[y>>2]=30552;o=0;mb(55,y|0,856,146);o=0;y=12;break}c[J>>2]=0;cq(J,0);o=0;do if(!(a[b+9>>0]|0)){f=Sz(20)|0;w=o;o=0;if(!(w&1)){o=0;ma(94,f|0,u|0);w=o;o=0;if(w&1){I=cc()|0;Uz(f);f=I;break}else{c[x>>2]=0;cq(x,f);cq(J,c[x>>2]|0);ne(x);y=58;break}}else y=52}else{EC(w,u);x=o;o=0;if(!(x&1)){o=0;f=qa(153,w|0)|0;x=o;o=0;if(x&1){f=cc()|0;IC(w);break}else{c[v>>2]=f;cq(J,f);ne(v);IC(w);y=58;break}}else y=52}while(0);if((y|0)==58){x=c[K>>2]|0;k=+((c[x>>2]|0)+(c[x+4>>2]|0)|0)*.5;l=+(q|0)+ +(e|0)*.5;o=0;ma(147,I|0,2);x=o;o=0;if(x&1)y=52;else{f=(c[I+8>>2]|0)+8|0;g=c[f>>2]|0;o=0;h=qa(111,16)|0;x=o;o=0;do if(!(x&1)){j=+(d|0);o=0;wa(43,h|0,+k,+j);d=o;o=0;if(d&1){f=cc()|0;Uz(h);break}c[z>>2]=0;os(z,h);vq(g,c[z>>2]|0);ps(z);f=(c[f>>2]|0)+4|0;o=0;g=qa(111,16)|0;z=o;o=0;if(z&1){y=66;break}o=0;wa(43,g|0,+l,+j);z=o;o=0;if(z&1){f=cc()|0;Uz(g);break}c[A>>2]=0;os(A,g);vq(f,c[A>>2]|0);ps(A);o=0;f=qa(111,40)|0;A=o;o=0;if(A&1){y=66;break}c[F>>2]=0;cq(F,c[J>>2]|0);c[G+4>>2]=0;c[G>>2]=4084;c[G+8>>2]=0;oe(D,I);c[E>>2]=3;o=0;c[B>>2]=c[E>>2];ia(45,f|0,F|0,G|0,D|0,B|0);E=o;o=0;if(E&1){H=cc()|0;pe(D);Sd(G);ne(F);Uz(f);f=H;break}else{c[C>>2]=0;Qe(C,f);pe(D);Sd(G);ne(F);pe(I);ne(J);br(K);i=H;return c[C>>2]|0}}else y=66;while(0);if((y|0)==66)f=cc()|0;pe(I)}}if((y|0)==52)f=cc()|0;ne(J);break}}else y=12;while(0);if((y|0)==12){f=cc()|0;y=13}br(K)}bc(f|0);return 0}function wk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;s=t;r=Wf(c[b>>2]|0)|0;g=ag(c[b>>2]|0,0)|0;f=c[d>>2]|0;e=(c[d+4>>2]|0)-f|0;n=e>>2;o=n+-1|0;p=n+-2|0;q=n+-2|0;a:do if((g|0)<(r|0)){m=(e|0)>8;j=f;k=0;f=g;l=0;e=g;while(1){g=c[b>>2]|0;if(l^(c[(c[(c[g+20>>2]|0)+8>>2]|0)+(f>>5<<2)>>2]&1<<(f&31)|0)!=0){g=j+(k<<2)|0;c[g>>2]=(c[g>>2]|0)+1;g=j;h=l}else{if((k|0)==(o|0)){if((xk(d)|0)==148){k=e-(f-e>>1)|0;if(Yf(g,(k|0)>0?k:0,e,0)|0)break;g=c[d>>2]|0}else g=j;j=c[g+4>>2]|0;h=(c[g>>2]|0)+e|0;if(m){e=2;do{c[g+(e+-2<<2)>>2]=c[g+(e<<2)>>2];e=e+1|0}while((e|0)<(n|0))}c[g+(p<<2)>>2]=0;c[g+(o<<2)>>2]=0;k=q;e=h+j|0}else{g=j;k=k+1|0}c[g+(k<<2)>>2]=1;h=l^1}f=f+1|0;if((f|0)>=(r|0))break a;else{j=g;l=h}}c[s>>2]=0;ms(a,2,s);a=c[a>>2]|0;c[a>>2]=e;c[a+4>>2]=f;i=t;return}while(0);t=Ob(8)|0;c[t+4>>2]=0;c[t>>2]=30552;Hc(t|0,856,146)}function xk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=c[a>>2]|0;k=(c[a+4>>2]|0)-n|0;m=k>>2;h=m+-1|0;i=(k|0)>0;j=(k|0)>0;d=0;while(1){if(i){b=0;a=2147483647;do{g=c[n+(b<<2)>>2]|0;a=(g|0)<(a|0)&(g|0)>(d|0)?g:a;b=b+1|0}while((b|0)<(m|0));d=a}else d=2147483647;if(j){g=0;a=0;f=0;b=0;do{e=c[n+(g<<2)>>2]|0;if((e|0)>(d|0)){a=1<<h-g|a;f=e+f|0;b=b+1|0}g=g+1|0}while((g|0)<(m|0))}else{a=0;f=0;b=0}if((b|0)==3){g=d;l=9;break}if((b|0)<=3){a=-1;break}}a:do if((l|0)==9)if((k|0)>0){e=0;b=3;do{d=c[n+(e<<2)>>2]|0;if((d|0)>(g|0))if((d<<1|0)<(f|0))b=b+-1|0;else{a=-1;break a}e=e+1|0}while((b|0)>0&(e|0)<(m|0))}while(0);return a|0}function yk(b){b=b|0;var d=0;d=0;while(1){if((c[33396+(d<<2)>>2]|0)==(b|0)){b=3;break}d=d+1|0;if((d|0)>=44){b=5;break}}if((b|0)==3)return a[48499+d>>0]|0;else if((b|0)==5){b=Ob(8)|0;zq(b,61257);c[b>>2]=29736;Hc(b|0,24,146)}return 0}function zk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+16|0;l=m+12|0;n=m;d=a[b>>0]|0;if(!(d&1))k=(d&255)>>>1;else k=c[b+4>>2]|0;c[n>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;h=b+1|0;j=b+8|0;a:do if((k|0)>0){d=0;b:while(1){f=(a[b>>0]&1)==0;if(f)e=h;else e=c[j>>2]|0;g=a[e+d>>0]|0;switch(g<<24>>24){case 47:case 37:case 36:case 43:{d=d+1|0;if(f)e=h;else e=c[j>>2]|0;f=a[e+d>>0]|0;c:do switch(g<<24>>24|0){case 43:{if((f+-65&255)>=26){e=16;break b}e=(f&255)+32&255;break}case 36:{if((f+-65&255)>=26){e=19;break b}e=(f&255)+192&255;break}case 37:{e=f<<24>>24;if((f+-65&255)<5){e=e+218&255;break c}if((f+-70&255)>=18){e=24;break b}e=e+245&255;break}case 47:if((f+-65&255)>=15)if(f<<24>>24==90){e=58;break c}else{e=28;break b}else{e=(f&255)+224&255;break c}default:e=0}while(0);o=0;ya(101,n|0,1,e|0)|0;g=o;o=0;if(g&1){e=11;break b}break}default:{o=0;ya(101,n|0,1,g|0)|0;g=o;o=0;if(g&1){e=11;break b}}}d=d+1|0;if((d|0)>=(k|0)){e=32;break a}}if((e|0)==11){d=cc()|0;e=13;break}else if((e|0)==16){m=Ob(8)|0;zq(m,61257);c[m>>2]=29736;o=0;mb(55,m|0,24,146);o=0;e=12;break}else if((e|0)==19){m=Ob(8)|0;zq(m,61257);c[m>>2]=29736;o=0;mb(55,m|0,24,146);o=0;e=12;break}else if((e|0)==24){m=Ob(8)|0;zq(m,61257);c[m>>2]=29736;o=0;mb(55,m|0,24,146);o=0;e=12;break}else if((e|0)==28){m=Ob(8)|0;zq(m,61257);c[m>>2]=29736;o=0;mb(55,m|0,24,146);o=0;e=12;break}}else e=32;while(0);do if((e|0)==32){o=0;d=qa(111,20)|0;b=o;o=0;if(!(b&1)){o=0;ma(94,d|0,n|0);b=o;o=0;if(b&1){m=cc()|0;Uz(d);d=m;break}else{c[l>>2]=0;cq(l,d);IC(n);i=m;return c[l>>2]|0}}else e=12}while(0);if((e|0)==12){d=cc()|0;e=13}IC(n);bc(d|0);return 0}function Ak(a){a=a|0;var b=0,d=0,e=0;cl(a);c[a>>2]=4852;b=a+8|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;d=a+20|0;c[d>>2]=0;c[a+24>>2]=0;c[a+28>>2]=0;o=0;ma(114,b|0,20);e=o;o=0;if(!(e&1)?(o=0,ma(148,d|0,6),e=o,o=0,!(e&1)):0)return;e=cc()|0;br(d);IC(b);il(a);bc(e|0)}function Bk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0.0,k=0.0,l=0.0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;G=i;i=i+80|0;A=G+76|0;B=G+72|0;x=G+64|0;f=G+60|0;q=G+56|0;I=G+52|0;H=G+40|0;y=G+36|0;z=G+32|0;C=G+28|0;D=G+16|0;E=G+4|0;F=G;Wd(f,e);o=0;mb(81,x|0,b|0,f|0);w=o;o=0;do if(!(w&1)){bq(f);v=c[x+4>>2]|0;f=ag(c[e>>2]|0,v)|0;t=Wf(c[e>>2]|0)|0;r=b+20|0;s=b+24|0;u=(c[s>>2]|0)-(c[r>>2]|0)>>2;cr(r,0);cr(r,u);u=b+8|0;if(!(a[u>>0]&1)){a[u+1>>0]=0;a[u>>0]=0}else{a[c[b+16>>2]>>0]=0;c[b+12>>2]=0}while(1){Wd(q,e);o=0;mb(76,q|0,f|0,r|0);w=o;o=0;if(w&1){w=9;break}bq(q);g=Dk(r)|0;if((g|0)<0){w=7;break}p=Ek(g)|0;NC(u,1,p)|0;h=c[r>>2]|0;w=(c[s>>2]|0)-h|0;m=w>>2;if((w|0)>0){n=0;g=f;do{g=(c[h+(n<<2)>>2]|0)+g|0;n=n+1|0}while((n|0)<(m|0))}else g=f;g=ag(c[e>>2]|0,g)|0;if(p<<24>>24==42){p=f;w=13;break}else f=g}if((w|0)==7){I=Ob(8)|0;c[I+4>>2]=0;c[I>>2]=30552;Hc(I|0,856,146)}else if((w|0)==9){f=cc()|0;bq(q);break}else if((w|0)==13){f=a[u>>0]|0;if(!(f&1))f=(f&255)>>>1;else f=c[b+12>>2]|0;MC(u,f+-1|0,0);n=c[r>>2]|0;s=(c[s>>2]|0)-n|0;h=s>>2;if((s|0)>0){m=0;f=0;do{f=(c[n+(m<<2)>>2]|0)+f|0;m=m+1|0}while((m|0)<(h|0));j=+(f|0)*.5}else j=0.0;if((g|0)!=(t|0)?(c[(c[(c[(c[e>>2]|0)+20>>2]|0)+8>>2]|0)+(g>>5<<2)>>2]&1<<(g&31)|0)!=0:0){f=a[u>>0]|0;if(!(f&1))f=(f&255)>>>1;else f=c[b+12>>2]|0;if(f>>>0<2){I=Ob(8)|0;c[I+4>>2]=0;c[I>>2]=30552;Hc(I|0,856,146)}Fk(u);f=a[u>>0]|0;if(!(f&1))f=(f&255)>>>1;else f=c[b+12>>2]|0;MC(u,f+-2|0,0);m=Gk(u)|0;c[I>>2]=m;k=+((c[x>>2]|0)+v|0)*.5;l=+(p|0)+j;o=0;ma(147,H|0,2);x=o;o=0;if(x&1)f=cc()|0;else{f=(c[H+8>>2]|0)+8|0;g=c[f>>2]|0;o=0;h=qa(111,16)|0;x=o;o=0;do if(!(x&1)){j=+(d|0);o=0;wa(43,h|0,+k,+j);d=o;o=0;if(d&1){f=cc()|0;Uz(h);break}c[y>>2]=0;os(y,h);vq(g,c[y>>2]|0);ps(y);f=(c[f>>2]|0)+4|0;o=0;g=qa(111,16)|0;y=o;o=0;if(!(y&1)){o=0;wa(43,g|0,+l,+j);y=o;o=0;if(y&1){f=cc()|0;Uz(g);break}c[z>>2]=0;os(z,g);vq(f,c[z>>2]|0);ps(z);o=0;f=qa(111,40)|0;z=o;o=0;if(!(z&1)){c[C>>2]=0;cq(C,m);c[D+4>>2]=0;c[D>>2]=4084;c[D+8>>2]=0;oe(E,H);c[F>>2]=4;o=0;c[A>>2]=c[F>>2];ia(45,f|0,C|0,D|0,E|0,A|0);F=o;o=0;if(F&1){G=cc()|0;pe(E);Sd(D);ne(C);Uz(f);f=G;break}else{c[B>>2]=0;Qe(B,f);pe(E);Sd(D);ne(C);pe(H);ne(I);i=G;return c[B>>2]|0}}else w=39}else w=39}else w=39;while(0);if((w|0)==39)f=cc()|0;pe(H)}ne(I);break}I=Ob(8)|0;c[I+4>>2]=0;c[I>>2]=30552;Hc(I|0,856,146)}}else{I=cc()|0;bq(f);f=I}while(0);bc(f|0);return 0}function Ck(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=Wf(c[d>>2]|0)|0;f=ag(c[d>>2]|0,0)|0;s=b+20|0;b=b+24|0;k=(c[b>>2]|0)-(c[s>>2]|0)>>2;cr(s,0);cr(s,k);k=c[s>>2]|0;b=(c[b>>2]|0)-k|0;l=b>>2;m=l+-1|0;n=k+4|0;o=k+(l+-2<<2)|0;p=k+(m<<2)|0;q=l+-2|0;a:do if((f|0)<(r|0)){j=(b|0)>8;g=0;e=f;i=0;b=f;while(1){if(i^(c[(c[(c[(c[d>>2]|0)+20>>2]|0)+8>>2]|0)+(e>>5<<2)>>2]&1<<(e&31)|0)!=0){f=k+(g<<2)|0;c[f>>2]=(c[f>>2]|0)+1;f=i}else{if((g|0)==(m|0)){h=Dk(s)|0;if((h|0)==(c[8393]|0))break;g=c[n>>2]|0;f=(c[k>>2]|0)+b|0;if(j){b=2;do{c[k+(b+-2<<2)>>2]=c[k+(b<<2)>>2];b=b+1|0}while((b|0)<(l|0))}c[o>>2]=0;c[p>>2]=0;h=q;b=f+g|0}else h=g+1|0;c[k+(h<<2)>>2]=1;g=h;f=i^1}e=e+1|0;if((e|0)>=(r|0))break a;else i=f}c[a>>2]=b;c[a+4>>2]=e;return}while(0);a=Ob(8)|0;c[a+4>>2]=0;c[a>>2]=30552;Hc(a|0,856,146)}function Dk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=c[a>>2]|0;d=(c[a+4>>2]|0)-h|0;g=d>>2;if((d|0)>0){b=0;a=0;do{a=(c[h+(b<<2)>>2]|0)+a|0;b=b+1|0}while((b|0)<(g|0));f=a}else f=0;a:do if((d|0)>0){e=0;a=0;do{b=((c[h+(e<<2)>>2]|0)*2304|0)/(f|0)|0;b=((b&128)>>>0>127&1)+(b>>8)|0;if((b+-1|0)>>>0>3){a=-1;break a}if(!(e&1)){if((b|0)>0){d=0;do{a=a<<1|1;d=d+1|0}while((d|0)<(b|0))}}else a=a<<b;e=e+1|0}while((e|0)<(g|0))}else a=0;while(0);return a|0}function Ek(b){b=b|0;var d=0;d=0;while(1){if((c[33576+(d<<2)>>2]|0)==(b|0)){b=3;break}d=d+1|0;if((d|0)>=48){b=5;break}}if((b|0)==3)return a[48544+d>>0]|0;else if((b|0)==5){b=Ob(8)|0;c[b+4>>2]=0;c[b>>2]=30552;Hc(b|0,856,146)}return 0}function Fk(b){b=b|0;var d=0;d=a[b>>0]|0;d=(d&1)==0?(d&255)>>>1:c[b+4>>2]|0;Hk(b,d+-2|0,20);Hk(b,d+-1|0,15);return}function Gk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;n=i;i=i+16|0;m=n+12|0;p=n;j=a[b>>0]|0;h=c[b+4>>2]|0;c[p>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;h=(j&1)==0?(j&255)>>>1:h;j=b+8|0;k=b+1|0;l=h+-1|0;a:do if((h|0)>0){d=0;b:while(1){f=(a[b>>0]&1)==0?k:c[j>>2]|0;e=a[f+d>>0]|0;g=e<<24>>24;if((e+-97&255)<4){if((d|0)>=(l|0)){f=4;break}d=d+1|0;f=a[f+d>>0]|0;c:do switch(g|0){case 100:{if((f+-65&255)>=26){f=13;break b}e=(f&255)+32&255;break}case 97:{if((f+-65&255)>=26){f=18;break b}e=(f&255)+192&255;break}case 98:{e=f<<24>>24;if((f+-65&255)<5){e=e+218&255;break c}if((f+-70&255)<5){e=e+245&255;break c}if((f+-75&255)<5){e=e+16&255;break c}if((f&-4)<<24>>24!=80)if((f+-84&255)<7){e=127;break c}else{f=30;break b}else{e=e+43&255;break c}}case 99:if((f+-65&255)>=15)if(f<<24>>24==90){e=58;break c}else{f=36;break b}else{e=(f&255)+224&255;break c}default:e=0}while(0);o=0;ya(101,p|0,1,e|0)|0;g=o;o=0;if(g&1){f=6;break}}else{o=0;ya(101,p|0,1,e|0)|0;g=o;o=0;if(g&1){f=6;break}}d=d+1|0;if((d|0)>=(h|0)){f=42;break a}}if((f|0)==4){d=Ob(8)|0;o=0;e=gb(42)|0;n=o;o=0;if(n&1){n=cc()|0;Nb(d|0);d=n;break}else{rs(d,e);c[d>>2]=4516;o=0;mb(55,d|0,320,76);o=0;f=7;break}}else if((f|0)==6){d=cc()|0;f=8;break}else if((f|0)==13){d=Ob(8)|0;o=0;e=gb(42)|0;n=o;o=0;if(n&1){n=cc()|0;Nb(d|0);d=n;break}else{rs(d,e);c[d>>2]=4516;o=0;mb(55,d|0,320,76);o=0;f=7;break}}else if((f|0)==18){d=Ob(8)|0;o=0;e=gb(42)|0;n=o;o=0;if(n&1){n=cc()|0;Nb(d|0);d=n;break}else{rs(d,e);c[d>>2]=4516;o=0;mb(55,d|0,320,76);o=0;f=7;break}}else if((f|0)==30){d=Ob(8)|0;o=0;e=gb(42)|0;n=o;o=0;if(n&1){n=cc()|0;Nb(d|0);d=n;break}else{rs(d,e);c[d>>2]=4516;o=0;mb(55,d|0,320,76);o=0;f=7;break}}else if((f|0)==36){d=Ob(8)|0;o=0;e=gb(42)|0;n=o;o=0;if(n&1){n=cc()|0;Nb(d|0);d=n;break}else{rs(d,e);c[d>>2]=4516;o=0;mb(55,d|0,320,76);o=0;f=7;break}}}else f=42;while(0);do if((f|0)==42){o=0;d=qa(111,20)|0;b=o;o=0;if(!(b&1)){o=0;ma(94,d|0,p|0);b=o;o=0;if(b&1){n=cc()|0;Uz(d);d=n;break}else{c[m>>2]=0;cq(m,d);IC(p);i=n;return c[m>>2]|0}}else f=7}while(0);if((f|0)==7){d=cc()|0;f=8}IC(p);bc(d|0);return 0}function Hk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=b+8|0;k=b+1|0;g=(a[b>>0]&1)==0?k:c[j>>2]|0;if((d|0)>0){h=d;f=0;i=1;while(1){l=h;h=h+-1|0;f=($(WC(33768,a[g+h>>0]|0,0)|0,i)|0)+f|0;g=(a[b>>0]&1)==0?k:c[j>>2]|0;if((l|0)<=1)break;else i=(i|0)>=(e|0)?1:i+1|0}f=(f|0)%47|0}else f=0;if((a[g+d>>0]|0)==(a[48544+f>>0]|0))return;else{l=Ob(8)|0;Qf(l);Hc(l|0,160,56)}}function Ik(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;sl(a);c[a>>2]=4880;c[d>>2]=0;o=0;mb(75,a+20|0,4,d|0);d=o;o=0;if(d&1){d=cc()|0;Cl(a);bc(d|0)}else{i=b;return}}function Jk(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+32|0;l=u+16|0;n=u+8|0;m=u+4|0;s=u;t=a+20|0;f=c[t>>2]|0;r=a+24|0;a=c[r>>2]|0;if((a|0)!=(f|0)){do a=a+-4|0;while((a|0)!=(f|0));c[r>>2]=a}cr(t,4);q=Wf(c[b>>2]|0)|0;a=c[d+4>>2]|0;a:do if((a|0)<(q|0)){f=0;k=0;while(1){Wd(l,b);o=0;j=kb(58,l|0,t|0,a|0,5164)|0;h=o;o=0;if(h&1)break;bq(l);NC(e,1,((j|0)%10|0)+48&255)|0;d=c[t>>2]|0;h=(c[r>>2]|0)-d|0;g=h>>2;if((h|0)>0){h=0;do{a=(c[d+(h<<2)>>2]|0)+a|0;h=h+1|0}while((h|0)<(g|0))}if((j|0)>9)f=1<<5-k|f;k=k+1|0;if(!((k|0)<6&(a|0)<(q|0))){p=12;break a}}a=cc()|0;bq(l)}else{f=0;p=12}while(0);b:do if((p|0)==12){Kk(e,f);Wd(m,b);o=0;ia(49,n|0,m|0,a|0,1,5140);p=o;o=0;if(p&1){a=cc()|0;bq(m);break}bq(m);a=c[n+4>>2]|0;c:do if((a|0)<(q|0)){h=0;while(1){Wd(s,b);o=0;f=kb(58,s|0,t|0,a|0,5152)|0;p=o;o=0;if(p&1)break;bq(s);NC(e,1,f+48&255)|0;f=c[t>>2]|0;p=(c[r>>2]|0)-f|0;d=p>>2;if((p|0)>0){g=0;do{a=(c[f+(g<<2)>>2]|0)+a|0;g=g+1|0}while((g|0)<(d|0))}h=h+1|0;if(!((h|0)<6&(a|0)<(q|0)))break c}a=cc()|0;bq(s);break b}while(0);i=u;return a|0}while(0);bc(a|0);return 0}function Kk(a,b){a=a|0;b=b|0;var d=0;d=0;while(1){if((c[33780+(d<<2)>>2]|0)==(b|0)){b=3;break}d=d+1|0;if((d|0)>=10){b=5;break}}if((b|0)==3){UC(a,0,1,d+48&255)|0;return}else if((b|0)==5){a=Ob(8)|0;c[a+4>>2]=0;c[a>>2]=30552;Hc(a|0,856,146)}}function Lk(a){a=a|0;return 8}function Mk(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;sl(a);c[a>>2]=4928;c[d>>2]=0;o=0;mb(75,a+20|0,4,d|0);d=o;o=0;if(d&1){d=cc()|0;Cl(a);bc(d|0)}else{i=b;return}}function Nk(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;j=s+16|0;l=s+8|0;k=s+4|0;p=s;q=a+20|0;r=c[q>>2]|0;c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;r=Wf(c[b>>2]|0)|0;d=c[d+4>>2]|0;n=a+24|0;a:do if((d|0)<(r|0)){h=0;while(1){Wd(j,b);o=0;a=kb(58,j|0,q|0,d|0,5152)|0;g=o;o=0;if(g&1)break;bq(j);NC(e,1,a+48&255)|0;a=c[q>>2]|0;g=(c[n>>2]|0)-a|0;f=g>>2;if((g|0)>0){g=0;do{d=(c[a+(g<<2)>>2]|0)+d|0;g=g+1|0}while((g|0)<(f|0))}h=h+1|0;if(!((h|0)<4&(d|0)<(r|0))){m=7;break a}}d=cc()|0;bq(j)}else m=7;while(0);b:do if((m|0)==7){Wd(k,b);o=0;ia(49,l|0,k|0,d|0,1,5140);m=o;o=0;if(m&1){d=cc()|0;bq(k);break}bq(k);d=c[l+4>>2]|0;c:do if((d|0)<(r|0)){h=0;while(1){Wd(p,b);o=0;a=kb(58,p|0,q|0,d|0,5152)|0;m=o;o=0;if(m&1)break;bq(p);NC(e,1,a+48&255)|0;a=c[q>>2]|0;m=(c[n>>2]|0)-a|0;f=m>>2;if((m|0)>0){g=0;do{d=(c[a+(g<<2)>>2]|0)+d|0;g=g+1|0}while((g|0)<(f|0))}h=h+1|0;if(!((h|0)<4&(d|0)<(r|0)))break c}d=cc()|0;bq(p);break b}while(0);i=s;return d|0}while(0);bc(d|0);return 0}function Ok(a){a=a|0;return 7}function Pk(a){a=a|0;cl(a);c[a>>2]=4976;c[a+8>>2]=-1;return}function Qk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0.0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;v=i;i=i+128|0;p=v+116|0;q=v+112|0;g=v+104|0;e=v+96|0;j=v+88|0;f=v+84|0;A=v+72|0;k=v+68|0;y=v+64|0;x=v+52|0;w=v+40|0;m=v+36|0;n=v+32|0;r=v+28|0;s=v+16|0;t=v+4|0;u=v;Wd(e,d);o=0;mb(82,g|0,a|0,e|0);l=o;o=0;do if(l&1){A=cc()|0;bq(e);e=A}else{bq(e);Wd(f,d);o=0;mb(83,j|0,a|0,f|0);l=o;o=0;if(l&1){e=cc()|0;bq(f);break}bq(f);c[A>>2]=0;c[A+4>>2]=0;c[A+8>>2]=0;Wd(k,d);a=c[g+4>>2]|0;l=c[j>>2]|0;o=0;ub(61,k|0,a|0,l|0,A|0);j=o;o=0;do if(j&1){e=cc()|0;bq(k)}else{bq(k);o=0;e=qa(111,20)|0;k=o;o=0;if(k&1){e=cc()|0;break}o=0;ma(94,e|0,A|0);k=o;o=0;if(k&1){z=cc()|0;Uz(e);e=z;break}c[y>>2]=0;cq(y,e);c[x+4>>2]=0;c[x>>2]=29772;e=x+8|0;c[e>>2]=0;Hq(x,c[8457]|0);j=c[y>>2]|0;o=0;g=qa(154,j|0)|0;k=o;o=0;do if(!(k&1)){f=c[e>>2]|0;e=c[f+8>>2]|0;f=(c[f+12>>2]|0)-e>>2;d=0;while(1){if((d|0)>=(f|0)){z=16;break}if((g|0)==(c[e+(d<<2)>>2]|0))break;else d=d+1|0}if((z|0)==16){e=Ob(8)|0;o=0;ka(308,e|0);w=o;o=0;if(w&1){w=cc()|0;Nb(e|0);e=w;break}else{o=0;mb(55,e|0,320,76);o=0;z=11;break}}o=0;ma(147,w|0,2);k=o;o=0;if(!(k&1)){e=(c[w+8>>2]|0)+8|0;f=c[e>>2]|0;o=0;d=qa(111,16)|0;k=o;o=0;do if(!(k&1)){h=+(b|0);o=0;wa(43,d|0,+(+(a|0)),+h);b=o;o=0;if(b&1){e=cc()|0;Uz(d);break}c[m>>2]=0;os(m,d);vq(f,c[m>>2]|0);ps(m);e=(c[e>>2]|0)+4|0;o=0;f=qa(111,16)|0;m=o;o=0;if(!(m&1)){o=0;wa(43,f|0,+(+(l|0)),+h);m=o;o=0;if(m&1){e=cc()|0;Uz(f);break}c[n>>2]=0;os(n,f);vq(e,c[n>>2]|0);ps(n);o=0;e=qa(111,40)|0;n=o;o=0;if(!(n&1)){c[r>>2]=0;cq(r,j);c[s+4>>2]=0;c[s>>2]=4084;c[s+8>>2]=0;oe(t,w);c[u>>2]=9;o=0;c[p>>2]=c[u>>2];ia(45,e|0,r|0,s|0,t|0,p|0);u=o;o=0;if(u&1){v=cc()|0;pe(t);Sd(s);ne(r);Uz(e);e=v;break}else{c[q>>2]=0;Qe(q,e);pe(t);Sd(s);ne(r);pe(w);nq(x);ne(y);IC(A);i=v;return c[q>>2]|0}}else z=27}else z=27}else z=27;while(0);if((z|0)==27)e=cc()|0;pe(w)}else z=11}else z=11;while(0);if((z|0)==11)e=cc()|0;nq(x);ne(y)}while(0);IC(A)}while(0);bc(e|0);return 0}function Rk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;j=i;i=i+16|0;e=j+8|0;f=j+4|0;g=j;Wd(e,d);o=0;h=qa(155,e|0)|0;k=o;o=0;do if(!(k&1)){bq(e);Wd(f,d);o=0;ub(62,a|0,f|0,h|0,33832);k=o;o=0;if(k&1){e=cc()|0;bq(f);break}bq(f);k=c[a>>2]|0;c[b+8>>2]=(c[a+4>>2]|0)-k>>2;Wd(g,d);o=0;mb(84,b|0,g|0,k|0);k=o;o=0;if(k&1){e=cc()|0;bq(g);break}else{bq(g);i=j;return}}else{k=cc()|0;bq(e);e=k}while(0);bc(e|0)}function Sk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;m=l+16|0;e=l+12|0;f=l+8|0;g=l+4|0;h=l;Wd(e,d);o=0;ma(149,m|0,e|0);n=o;o=0;if(n&1){n=cc()|0;bq(e);e=n}else{bq(e);Wd(f,d);o=0;e=qa(155,f|0)|0;n=o;o=0;do if(n&1){e=cc()|0;bq(f)}else{bq(f);Wd(g,d);o=0;ub(62,a|0,g|0,e|0,33844);n=o;o=0;if(n&1){e=cc()|0;bq(g);break}bq(g);Wd(h,d);f=c[a>>2]|0;o=0;mb(84,b|0,h|0,f|0);n=o;o=0;if(n&1){e=cc()|0;bq(h);break}bq(h);o=0;e=qa(120,c[d>>2]|0)|0;n=o;o=0;if(!(n&1)?(j=a+4|0,c[a>>2]=e-(c[j>>2]|0),o=0,k=qa(120,c[d>>2]|0)|0,n=o,o=0,!(n&1)):0){c[j>>2]=k-f;$f(m);i=l;return}e=cc()|0}while(0);$f(m)}bc(e|0)}function Tk(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;l=i;i=i+64|0;q=l+40|0;j=l+36|0;p=l+24|0;k=l+20|0;n=l+8|0;f=l+4|0;m=l;c[j>>2]=0;ms(q,10,j);c[k>>2]=0;o=0;mb(75,p|0,5,k|0);k=o;o=0;if(k&1)b=cc()|0;else{c[f>>2]=0;o=0;mb(75,n|0,5,f|0);k=o;o=0;a:do if(k&1)b=cc()|0;else{k=q+4|0;b:do if((b|0)<(d|0)){while(1){Wd(m,a);o=0;mb(76,m|0,b|0,q|0);j=o;o=0;if(j&1){f=11;break}bq(m);f=c[q>>2]|0;g=c[p>>2]|0;h=c[n>>2]|0;j=0;do{r=j<<1;c[g+(j<<2)>>2]=c[f+(r<<2)>>2];c[h+(j<<2)>>2]=c[f+((r|1)<<2)>>2];j=j+1|0}while((j|0)!=5);o=0;f=qa(156,p|0)|0;r=o;o=0;if(r&1){f=10;break}o=0;ya(101,e|0,1,f+48&255|0)|0;r=o;o=0;if(r&1){f=10;break}o=0;f=qa(156,n|0)|0;r=o;o=0;if(r&1){f=10;break}o=0;ya(101,e|0,1,f+48&255|0)|0;r=o;o=0;if(r&1){f=10;break}g=c[q>>2]|0;r=(c[k>>2]|0)-g|0;h=r>>2;if((r|0)>0){f=0;do{b=(c[g+(f<<2)>>2]|0)+b|0;f=f+1|0}while((f|0)<(h|0))}if((b|0)>=(d|0))break b}if((f|0)==10)b=cc()|0;else if((f|0)==11){b=cc()|0;bq(m)}br(n);break a}while(0);br(n);br(p);br(q);i=l;return}while(0);br(p)}br(q);bc(b|0)}function Uk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=-1;f=107;g=0;while(1){d=gl(a,33856+(g*20|0)|0,199)|0;e=(d|0)<(f|0);b=e?g:b;g=g+1|0;if((g|0)==10)break;else f=e?d:f}if((b|0)>-1)return b|0;else{g=Ob(8)|0;c[g+4>>2]=0;c[g>>2]=30552;Hc(g|0,856,146)}return 0}function Vk(a){a=a|0;var b=0;b=Wf(c[a>>2]|0)|0;a=ag(c[a>>2]|0,0)|0;if((a|0)==(b|0)){b=Ob(8)|0;c[b+4>>2]=0;c[b>>2]=30552;Hc(b|0,856,146)}else return a|0;return 0}function Wk(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;u=t;f=(c[e+4>>2]|0)-(c[e>>2]|0)|0;r=f>>2;ss(u,r);o=0;s=qa(120,c[b>>2]|0)|0;q=o;o=0;a:do if(q&1)d=7;else{n=r+-1|0;p=r+-2|0;q=r+-2|0;b:do if((s|0)>(d|0)){m=(f|0)>8;j=0;h=0;g=d;f=d;while(1){if(h^(c[(c[(c[(c[b>>2]|0)+20>>2]|0)+8>>2]|0)+(f>>5<<2)>>2]&1<<(f&31)|0)!=0){d=(c[u>>2]|0)+(j<<2)|0;c[d>>2]=(c[d>>2]|0)+1;d=j}else{if((j|0)==(n|0)){o=0;d=ya(99,u|0,c[e>>2]|0,199)|0;l=o;o=0;if(l&1){d=6;break}if((d|0)<107){d=12;break}d=c[u>>2]|0;l=c[d+4>>2]|0;j=(c[d>>2]|0)+g|0;if(m){g=2;do{c[d+(g+-2<<2)>>2]=c[d+(g<<2)>>2];g=g+1|0}while((g|0)<(r|0))}c[d+(p<<2)>>2]=0;c[d+(n<<2)>>2]=0;k=q;g=j+l|0}else{d=c[u>>2]|0;k=j+1|0}c[d+(k<<2)>>2]=1;d=k;h=h^1}f=f+1|0;if((f|0)>=(s|0))break b;else j=d}if((d|0)==6){f=cc()|0;break a}else if((d|0)==12){c[a>>2]=g;c[a+4>>2]=f;br(u);i=t;return}}while(0);d=Ob(8)|0;c[d+4>>2]=0;c[d>>2]=30552;o=0;mb(55,d|0,856,146);o=0;d=7}while(0);if((d|0)==7)f=cc()|0;br(u);bc(f|0)}function Xk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[a+8>>2]|0;a=f*10|0;a:do if((f|0)>0&(d|0)>0){f=c[(c[(c[b>>2]|0)+20>>2]|0)+8>>2]|0;e=d;d=a;while(1){b=e;e=e+-1|0;if(c[f+(e>>5<<2)>>2]&1<<(e&31)){a=d;break a}a=d+-1|0;if(!((d|0)>1&(b|0)>1))break;else d=a}}while(0);if(!a)return;else{f=Ob(8)|0;c[f+4>>2]=0;c[f>>2]=30552;Hc(f|0,856,146)}}function Yk(a){a=a|0;il(a);return}function Zk(a){a=a|0;il(a);Uz(a);return}function _k(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;E=i;i=i+112|0;s=E+108|0;e=E+104|0;d=E+100|0;f=E+96|0;g=E+92|0;h=E+88|0;j=E+80|0;k=E+72|0;l=E+68|0;m=E+64|0;p=E+60|0;n=E+56|0;q=E+52|0;r=E+48|0;t=E+44|0;u=E+40|0;v=E+36|0;w=E+32|0;x=E+24|0;y=E+16|0;z=E+12|0;A=E+8|0;B=E+4|0;C=E;cl(a);c[a>>2]=5004;F=a+8|0;c[F>>2]=0;D=a+12|0;c[D>>2]=0;c[a+16>>2]=0;c[e>>2]=8;o=0;c[s>>2]=c[e>>2];e=Wa(90,b|0,s|0)|0;H=o;o=0;a:do if(!(H&1)){if(!e){c[d>>2]=7;o=0;c[s>>2]=c[d>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(H&1){G=15;break}if(!d){c[f>>2]=15;o=0;c[s>>2]=c[f>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(H&1){G=15;break}if(!d){c[g>>2]=16;o=0;c[s>>2]=c[g>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(H&1){G=15;break}if(d)G=9}else G=9}else G=9}else G=9;if((G|0)==9){o=0;d=qa(111,20)|0;H=o;o=0;if(H&1){G=15;break}$d(j,b);o=0;ma(150,d|0,j|0);H=o;o=0;if(H&1){H=cc()|0;ze(j+4|0);Uz(d);d=H;break}c[h>>2]=0;ts(h,d);d=c[D>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(151,F|0,h|0);H=o;o=0;if(H&1){d=cc()|0;vs(h);ze(j+4|0);break}}else{c[d>>2]=0;ts(d,c[h>>2]|0);c[D>>2]=(c[D>>2]|0)+4}vs(h);ze(j+4|0)}c[k>>2]=3;o=0;c[s>>2]=c[k>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(!(H&1)){if(d){o=0;d=qa(111,36)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(315,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[l>>2]=0;ts(l,d);d=c[D>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(151,F|0,l|0);H=o;o=0;if(H&1){d=cc()|0;vs(l);break}}else{c[d>>2]=0;ts(d,c[l>>2]|0);c[D>>2]=(c[D>>2]|0)+4}vs(l)}c[m>>2]=4;o=0;c[s>>2]=c[m>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(!(H&1)){if(d){o=0;d=qa(111,32)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(316,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[p>>2]=0;ts(p,d);d=c[D>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(151,F|0,p|0);H=o;o=0;if(H&1){d=cc()|0;vs(p);break}}else{c[d>>2]=0;ts(d,c[p>>2]|0);c[D>>2]=(c[D>>2]|0)+4}vs(p)}c[n>>2]=5;o=0;c[s>>2]=c[n>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(!(H&1)){if(d){o=0;d=qa(111,8)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(317,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[q>>2]=0;ts(q,d);d=c[D>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(151,F|0,q|0);H=o;o=0;if(H&1){d=cc()|0;vs(q);break}}else{c[d>>2]=0;ts(d,c[q>>2]|0);c[D>>2]=(c[D>>2]|0)+4}vs(q)}c[r>>2]=9;o=0;c[s>>2]=c[r>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(!(H&1)){if(d){o=0;d=qa(111,12)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(318,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[t>>2]=0;ts(t,d);d=c[D>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(151,F|0,t|0);H=o;o=0;if(H&1){d=cc()|0;vs(t);break}}else{c[d>>2]=0;ts(d,c[t>>2]|0);c[D>>2]=(c[D>>2]|0)+4}vs(t)}c[u>>2]=2;o=0;c[s>>2]=c[u>>2];d=Wa(90,b|0,s|0)|0;H=o;o=0;if(!(H&1)){if(d){o=0;d=qa(111,36)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(319,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[v>>2]=0;ts(v,d);d=c[D>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(151,F|0,v|0);H=o;o=0;if(H&1){d=cc()|0;vs(v);break}}else{c[d>>2]=0;ts(d,c[v>>2]|0);c[D>>2]=(c[D>>2]|0)+4}vs(v)}if((c[D>>2]|0)==(c[F>>2]|0)){o=0;d=qa(111,20)|0;H=o;o=0;if(H&1){G=15;break}$d(x,b);o=0;ma(150,d|0,x|0);H=o;o=0;if(H&1){H=cc()|0;ze(x+4|0);Uz(d);d=H;break}c[w>>2]=0;ts(w,d);d=c[D>>2]|0;e=a+16|0;if(d>>>0>=(c[e>>2]|0)>>>0){o=0;ma(151,F|0,w|0);H=o;o=0;if(H&1){d=cc()|0;vs(w);ze(x+4|0);break}}else{c[d>>2]=0;ts(d,c[w>>2]|0);c[D>>2]=(c[D>>2]|0)+4}vs(w);ze(x+4|0);o=0;d=qa(111,36)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(315,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[y>>2]=0;ts(y,d);d=c[D>>2]|0;do if(d>>>0<(c[e>>2]|0)>>>0){c[d>>2]=0;ts(d,c[y>>2]|0);c[D>>2]=(c[D>>2]|0)+4}else{o=0;ma(151,F|0,y|0);H=o;o=0;if(!(H&1))break;d=cc()|0;vs(y);break a}while(0);vs(y);o=0;d=qa(111,36)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(319,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[z>>2]=0;ts(z,d);d=c[D>>2]|0;do if(d>>>0<(c[e>>2]|0)>>>0){c[d>>2]=0;ts(d,c[z>>2]|0);c[D>>2]=(c[D>>2]|0)+4}else{o=0;ma(151,F|0,z|0);H=o;o=0;if(!(H&1))break;d=cc()|0;vs(z);break a}while(0);vs(z);o=0;d=qa(111,32)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(316,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[A>>2]=0;ts(A,d);d=c[D>>2]|0;do if(d>>>0<(c[e>>2]|0)>>>0){c[d>>2]=0;ts(d,c[A>>2]|0);c[D>>2]=(c[D>>2]|0)+4}else{o=0;ma(151,F|0,A|0);H=o;o=0;if(!(H&1))break;d=cc()|0;vs(A);break a}while(0);vs(A);o=0;d=qa(111,8)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(317,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[B>>2]=0;ts(B,d);d=c[D>>2]|0;do if(d>>>0<(c[e>>2]|0)>>>0){c[d>>2]=0;ts(d,c[B>>2]|0);c[D>>2]=(c[D>>2]|0)+4}else{o=0;ma(151,F|0,B|0);H=o;o=0;if(!(H&1))break;d=cc()|0;vs(B);break a}while(0);vs(B);o=0;d=qa(111,12)|0;H=o;o=0;if(H&1){G=15;break}o=0;ka(318,d|0);H=o;o=0;if(H&1){H=cc()|0;Uz(d);d=H;break}c[C>>2]=0;ts(C,d);d=c[D>>2]|0;do if(d>>>0<(c[e>>2]|0)>>>0){c[d>>2]=0;ts(d,c[C>>2]|0);c[D>>2]=(c[D>>2]|0)+4}else{o=0;ma(151,F|0,C|0);H=o;o=0;if(!(H&1))break;d=cc()|0;vs(C);break a}while(0);vs(C)}i=E;return}else G=15}else G=15}else G=15}else G=15}else G=15}else G=15;while(0);if((G|0)==15)d=cc()|0;ws(F);il(a);bc(d|0)}function $k(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;j=i;i=i+16|0;h=j;g=a+8|0;f=(c[a+12>>2]|0)-(c[g>>2]|0)|0;e=f>>2;a:do if((f|0)>0){f=0;while(1){a=c[(c[g>>2]|0)+(f<<2)>>2]|0;k=c[(c[a>>2]|0)+16>>2]|0;Wd(h,d);o=0;a=ya(k|0,a|0,b|0,h|0)|0;k=o;o=0;if(!(k&1)){e=3;break}a=cc(24)|0;k=D;bq(h);if((k|0)!=(Xb(24)|0)){e=7;break}fc(a|0)|0;$b();f=f+1|0;if((f|0)>=(e|0))break a}if((e|0)==3){bq(h);i=j;return a|0}else if((e|0)==7)bc(a|0)}while(0);k=Ob(8)|0;c[k+4>>2]=0;c[k>>2]=30552;Hc(k|0,856,146);return 0}function al(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;s=i;i=i+48|0;j=s+44|0;d=s+40|0;f=s+36|0;e=s+32|0;g=s+28|0;h=s+24|0;k=s+20|0;l=s+16|0;m=s+12|0;n=s+8|0;p=s+4|0;q=s;cl(a);c[a>>2]=5032;t=a+8|0;c[t>>2]=0;r=a+12|0;c[r>>2]=0;c[a+16>>2]=0;c[d>>2]=8;o=0;c[j>>2]=c[d>>2];d=Wa(90,b|0,j|0)|0;v=o;o=0;do if(!(v&1)){if(!d){c[e>>2]=15;o=0;c[j>>2]=c[e>>2];d=Wa(90,b|0,j|0)|0;v=o;o=0;if(v&1){u=9;break}if(d){o=0;d=qa(111,52)|0;v=o;o=0;if(v&1){u=9;break}o=0;ka(321,d|0);v=o;o=0;if(v&1){v=cc()|0;Uz(d);d=v;break}c[g>>2]=0;xs(g,d);d=c[r>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(152,t|0,g|0);v=o;o=0;if(v&1){d=cc()|0;zs(g);break}}else{c[d>>2]=0;xs(d,c[g>>2]|0);c[r>>2]=(c[r>>2]|0)+4}zs(g)}}else{o=0;d=qa(111,32)|0;v=o;o=0;if(v&1){u=9;break}o=0;ka(320,d|0);v=o;o=0;if(v&1){v=cc()|0;Uz(d);d=v;break}c[f>>2]=0;xs(f,d);d=c[r>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(152,t|0,f|0);v=o;o=0;if(v&1){d=cc()|0;zs(f);break}}else{c[d>>2]=0;xs(d,c[f>>2]|0);c[r>>2]=(c[r>>2]|0)+4}zs(f)}c[h>>2]=7;o=0;c[j>>2]=c[h>>2];d=Wa(90,b|0,j|0)|0;v=o;o=0;if(!(v&1)){if(d){o=0;d=qa(111,32)|0;v=o;o=0;if(v&1){u=9;break}o=0;ka(322,d|0);v=o;o=0;if(v&1){v=cc()|0;Uz(d);d=v;break}c[k>>2]=0;xs(k,d);d=c[r>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(152,t|0,k|0);v=o;o=0;if(v&1){d=cc()|0;zs(k);break}}else{c[d>>2]=0;xs(d,c[k>>2]|0);c[r>>2]=(c[r>>2]|0)+4}zs(k)}c[l>>2]=16;o=0;c[j>>2]=c[l>>2];d=Wa(90,b|0,j|0)|0;v=o;o=0;if(!(v&1)){if(d){o=0;d=qa(111,32)|0;v=o;o=0;if(v&1){u=9;break}o=0;ka(323,d|0);v=o;o=0;if(v&1){v=cc()|0;Uz(d);d=v;break}c[m>>2]=0;xs(m,d);d=c[r>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(152,t|0,m|0);v=o;o=0;if(v&1){d=cc()|0;zs(m);break}}else{c[d>>2]=0;xs(d,c[m>>2]|0);c[r>>2]=(c[r>>2]|0)+4}zs(m)}if((c[r>>2]|0)==(c[t>>2]|0)){o=0;d=qa(111,32)|0;v=o;o=0;if(v&1){u=9;break}o=0;ka(320,d|0);v=o;o=0;if(v&1){v=cc()|0;Uz(d);d=v;break}c[n>>2]=0;xs(n,d);d=c[r>>2]|0;e=a+16|0;if(d>>>0>=(c[e>>2]|0)>>>0){o=0;ma(152,t|0,n|0);v=o;o=0;if(v&1){d=cc()|0;zs(n);break}}else{c[d>>2]=0;xs(d,c[n>>2]|0);c[r>>2]=(c[r>>2]|0)+4}zs(n);o=0;d=qa(111,32)|0;v=o;o=0;if(v&1){u=9;break}o=0;ka(322,d|0);v=o;o=0;if(v&1){v=cc()|0;Uz(d);d=v;break}c[p>>2]=0;xs(p,d);d=c[r>>2]|0;if(d>>>0>=(c[e>>2]|0)>>>0){o=0;ma(152,t|0,p|0);v=o;o=0;if(v&1){d=cc()|0;zs(p);break}}else{c[d>>2]=0;xs(d,c[p>>2]|0);c[r>>2]=(c[r>>2]|0)+4}zs(p);o=0;d=qa(111,32)|0;v=o;o=0;if(v&1){u=9;break}o=0;ka(323,d|0);v=o;o=0;if(v&1){v=cc()|0;Uz(d);d=v;break}c[q>>2]=0;xs(q,d);d=c[r>>2]|0;if(d>>>0>=(c[e>>2]|0)>>>0){o=0;ma(152,t|0,q|0);v=o;o=0;if(v&1){d=cc()|0;zs(q);break}}else{c[d>>2]=0;xs(d,c[q>>2]|0);c[r>>2]=(c[r>>2]|0)+4}zs(q)}i=s;return}else u=9}else u=9}else u=9;while(0);if((u|0)==9)d=cc()|0;As(t);il(a);bc(d|0)}function bl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;s=i;i=i+80|0;m=s+76|0;n=s+72|0;h=s+64|0;e=s+56|0;v=s+52|0;w=s+48|0;j=s+44|0;k=s+40|0;l=s+36|0;t=s+32|0;u=s+28|0;r=s+16|0;p=s+4|0;q=s;Wd(e,d);o=0;ma(153,h|0,e|0);g=o;o=0;a:do if(g&1){x=cc()|0;bq(e);e=x}else{bq(e);g=a+8|0;f=(c[a+12>>2]|0)-(c[g>>2]|0)|0;a=f>>2;b:do if((f|0)>0){f=0;while(1){Bs(v,(c[g>>2]|0)+(f<<2)|0);c[w>>2]=0;Qe(w,0);e=c[v>>2]|0;y=c[(c[e>>2]|0)+28>>2]|0;Wd(k,d);o=0;e=kb(y|0,e|0,b|0,k|0,h|0)|0;y=o;o=0;if(!(y&1)){x=4;break}e=cc(24)|0;y=D;bq(k);if((y|0)!=(Xb(24)|0))break;fc(e|0)|0;o=0;ob(44);y=o;o=0;if(y&1){x=8;break}be(w);zs(v);f=f+1|0;if((f|0)>=(a|0))break b}c:do if((x|0)==4){c[j>>2]=e;Qe(w,e);be(j);bq(k);a=c[w>>2]|0;o=0;e=qa(144,a|0)|0;y=o;o=0;d:do if(!(y&1)){e:do if((e|0)==8){o=0;e=qa(112,a|0)|0;y=o;o=0;if(y&1)break d;c[l>>2]=e;o=0;e=Wa(91,e|0,0)|0;y=o;o=0;if(y&1){e=cc()|0;ne(l);break c}ne(l);if(e<<24>>24==48){o=0;f=qa(111,40)|0;y=o;o=0;if(y&1)break d;o=0;e=qa(112,a|0)|0;y=o;o=0;if(y&1)e=cc()|0;else{c[u>>2]=e;o=0;e=Wa(92,e|0,1)|0;y=o;o=0;if(y&1)e=cc()|0;else{c[t>>2]=e;o=0;ma(129,r|0,a|0);y=o;o=0;if(y&1)e=cc()|0;else{o=0;e=qa(114,a|0)|0;y=o;o=0;do if(!(y&1)){oe(p,e);c[q>>2]=15;o=0;c[m>>2]=c[q>>2];ia(45,f|0,t|0,r|0,p|0,m|0);y=o;o=0;if(y&1){e=cc()|0;pe(p);break}else{c[n>>2]=0;Qe(n,f);pe(p);Sd(r);ne(t);ne(u);be(w);zs(v);e=n;break e}}else e=cc()|0;while(0);Sd(r)}ne(t)}ne(u)}Uz(f);break c}else x=32}else x=32;while(0);if((x|0)==32){c[n>>2]=0;Qe(n,a);be(w);zs(v);e=n}i=s;return c[e>>2]|0}while(0);e=cc()|0;x=10}else if((x|0)==8){e=cc()|0;x=10}while(0);be(w);zs(v);break a}while(0);y=Ob(8)|0;c[y+4>>2]=0;c[y>>2]=30552;Hc(y|0,856,146)}while(0);bc(e|0);return 0}function cl(a){a=a|0;c[a+4>>2]=0;c[a>>2]=5060;return}function dl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0.0,j=0.0,k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;p=i;i=i+32|0;q=p+28|0;f=p+24|0;g=p+16|0;r=p+12|0;l=p+8|0;m=p;_d(f,b);$d(g,d);o=0;e=ya(103,a|0,f|0,g|0)|0;t=o;o=0;a:do if(t&1){e=cc(856)|0;t=D;ze(g+4|0);ce(f);if((t|0)==(Xb(856)|0)){f=fc(e|0)|0;o=0;e=qa(157,d|0)|0;t=o;o=0;do if(t&1)n=20;else{if(e){o=0;e=qa(158,c[b>>2]|0)|0;t=o;o=0;if(t&1){n=20;break}if(e){o=0;g=qa(159,c[b>>2]|0)|0;t=o;o=0;if(t&1){n=20;break}c[r>>2]=g;c[l>>2]=0;Ne(l,g);$d(m,d);o=0;e=ya(103,a|0,l|0,m|0)|0;t=o;o=0;if(t&1){e=cc()|0;ze(m+4|0);ce(l)}else{c[q>>2]=e;ze(m+4|0);ce(l);o=0;f=qa(114,e|0)|0;t=o;o=0;b:do if(t&1)n=23;else{d=f+8|0;t=c[d>>2]|0;c:do if((t|0)!=0?(c[t+12>>2]|0)!=(c[t+8>>2]|0):0){o=0;f=qa(143,g|0)|0;t=o;o=0;if(t&1){n=23;break b}k=+(f|0);t=c[d>>2]|0;f=c[t+8>>2]|0;if(((c[t+12>>2]|0)-f|0)>0){b=0;while(1){o=0;g=qa(111,16)|0;t=o;o=0;if(t&1){n=22;break}t=c[(c[(c[d>>2]|0)+8>>2]|0)+(b<<2)>>2]|0;o=0;h=+Ka(c[(c[t>>2]|0)+12>>2]|0,t|0);t=o;o=0;if(t&1){e=g;n=25;break}t=c[(c[(c[d>>2]|0)+8>>2]|0)+(b<<2)>>2]|0;o=0;j=+Ka(c[(c[t>>2]|0)+8>>2]|0,t|0);t=o;o=0;if(t&1){e=g;n=25;break}o=0;wa(43,g|0,+(k-h+-1.0),+j);t=o;o=0;if(t&1){e=g;n=25;break}vq(f+(b<<2)|0,g);b=b+1|0;t=c[d>>2]|0;f=c[t+8>>2]|0;if((b|0)>=((c[t+12>>2]|0)-f>>2|0))break c}if((n|0)==22){e=cc()|0;n=24;break b}else if((n|0)==25){t=cc()|0;Uz(e);e=t;break b}}}while(0);ce(r);$b();break a}while(0);if((n|0)==23){e=cc()|0;n=24}be(q)}ce(r);break}}n=Ob(8)|0;rs(n,f);c[n>>2]=30552;o=0;mb(55,n|0,856,146);o=0;n=20}while(0);if((n|0)==20)e=cc()|0;o=0;ob(44);t=o;o=0;if(t&1){t=cc(0)|0;oq(t)}else s=e}else s=e;bc(s|0)}else{c[q>>2]=e;ze(g+4|0);ce(f)}while(0);i=p;return e|0}function el(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0.0,h=0.0,j=0,k=0,l=0,m=0,n=0.0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0;C=i;i=i+48|0;u=C+36|0;E=C+32|0;v=C+28|0;w=C+24|0;x=C+20|0;B=C+8|0;y=C+4|0;A=C;f=Lf(c[b>>2]|0)|0;z=Mf(c[b>>2]|0)|0;e=Sz(24)|0;o=0;ma(90,e|0,f|0);t=o;o=0;if(t&1){F=cc()|0;Uz(e);e=F}else{c[E>>2]=0;Je(E,e);t=z>>1;o=0;e=qa(157,d|0)|0;s=o;o=0;a:do if(s&1)F=7;else{s=z>>(e?8:5);s=(s|0)>1?s:1;q=e?z:15;r=B+8|0;n=+(f|0);b:do if((q|0)>0){p=0;c:while(1){l=p;p=p+1|0;m=p>>1;m=($((l&1|0)==0?m:0-m|0,s)|0)+t|0;if(!((m|0)>-1&(m|0)<(z|0)))break b;e=c[b>>2]|0;c[w>>2]=0;Je(w,c[E>>2]|0);o=0;e=ya(104,e|0,m|0,w|0)|0;l=o;o=0;if(l&1){e=cc(856)|0;m=D;bq(w);if((m|0)!=(Xb(856)|0))break a;fc(e|0)|0;o=0;ob(44);m=o;o=0;if(m&1){F=6;break}}else{c[v>>2]=e;Je(E,e);bq(v);bq(w);k=c[E>>2]|0;l=0;do{d=(l|0)==1;if(d?(o=0,ka(306,k|0),j=o,o=0,j&1):0){F=5;break c}e=c[(c[a>>2]|0)+16>>2]|0;c[x>>2]=0;Je(x,k);o=0;e=ya(e|0,a|0,m|0,x|0)|0;j=o;o=0;if(j&1){e=cc(24)|0;d=D;bq(x)}else{c[u>>2]=e;bq(x);if(!d)break c;o=0;d=qa(114,e|0)|0;j=o;o=0;if(j&1){e=cc(24)|0;d=D}else{oe(B,d);d=c[r>>2]|0;if(!d){F=35;break c}j=d+8|0;d=c[j>>2]|0;o=0;f=qa(111,16)|0;G=o;o=0;d:do if(G&1)F=32;else{G=c[c[j>>2]>>2]|0;o=0;g=+Ka(c[(c[G>>2]|0)+8>>2]|0,G|0);G=o;o=0;do if(!(G&1)){G=c[c[j>>2]>>2]|0;o=0;h=+Ka(c[(c[G>>2]|0)+12>>2]|0,G|0);G=o;o=0;if(G&1)break;o=0;wa(43,f|0,+(n-g+-1.0),+h);G=o;o=0;if(G&1)break;c[y>>2]=0;vq(y,f);vq(d,c[y>>2]|0);uq(y);f=c[j>>2]|0;o=0;d=qa(111,16)|0;G=o;o=0;if(G&1){F=32;break d}G=c[(c[j>>2]|0)+4>>2]|0;o=0;h=+Ka(c[(c[G>>2]|0)+8>>2]|0,G|0);G=o;o=0;do if(!(G&1)){G=c[(c[j>>2]|0)+4>>2]|0;o=0;g=+Ka(c[(c[G>>2]|0)+12>>2]|0,G|0);G=o;o=0;if(G&1)break;o=0;wa(43,d|0,+(n-h+-1.0),+g);G=o;o=0;if(!(G&1)){F=29;break c}}while(0);e=cc(24)|0;G=D;Uz(d);d=G;break d}while(0);e=cc(24)|0;d=D;Uz(f)}while(0);if((F|0)==32){F=0;e=cc(24)|0;d=D}pe(B)}be(u)}if((d|0)!=(Xb(24)|0))break a;fc(e|0)|0;o=0;ob(44);G=o;o=0;if(G&1){F=5;break c}l=l+1|0}while((l|0)<2)}if((p|0)>=(q|0))break b}if((F|0)==5){e=cc()|0;F=8;break a}else if((F|0)==6){e=cc()|0;F=8;break a}else if((F|0)==29){c[A>>2]=0;vq(A,d);vq(f+4|0,c[A>>2]|0);uq(A);F=35}if((F|0)==35)pe(B);bq(E);i=C;return e|0}while(0);F=Ob(8)|0;c[F+4>>2]=0;c[F>>2]=30552;o=0;mb(55,F|0,856,146);o=0;F=7}while(0);if((F|0)==7){e=cc()|0;F=8}bq(E)}bc(e|0);return 0}function fl(a,b,d){a=a|0;b=b|0;d=d|0;return gl(a,c[b>>2]|0,d)|0}function gl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[a>>2]|0;g=(c[a+4>>2]|0)-j|0;i=g>>2;if((g|0)>0){f=0;a=0;e=0;do{e=(c[j+(f<<2)>>2]|0)+e|0;a=(c[b+(f<<2)>>2]|0)+a|0;f=f+1|0}while((f|0)<(i|0))}else{a=0;e=0}a:do if(e>>>0<a>>>0)a=2147483647;else{h=(e<<8>>>0)/(a>>>0)|0;d=($(h,d)|0)>>8;if((g|0)>0){a=0;g=0;do{f=c[j+(g<<2)>>2]<<8;k=$(c[b+(g<<2)>>2]|0,h)|0;f=(f|0)>(k|0)?f-k|0:k-f|0;if((f|0)>(d|0)){a=2147483647;break a}a=f+a|0;g=g+1|0}while((g|0)<(i|0))}else a=0;a=(a>>>0)/(e>>>0)|0}while(0);return a|0}function hl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=c[d>>2]|0;h=(c[d+4>>2]|0)-e|0;i=h>>2;if((h|0)>0){f=0;do{c[e+(f<<2)>>2]=0;f=f+1|0}while((f|0)<(i|0))}h=Wf(c[a>>2]|0)|0;if((h|0)<=(b|0)){l=Ob(8)|0;c[l+4>>2]=0;c[l>>2]=30552;Hc(l|0,856,146)}g=c[(c[(c[a>>2]|0)+20>>2]|0)+8>>2]|0;d=c[d>>2]|0;a:do if((h|0)>(b|0)){e=0;f=b;a=(c[g+(b>>5<<2)>>2]&1<<(b&31)|0)==0;while(1){if(a^(c[g+(f>>5<<2)>>2]&1<<(f&31)|0)!=0){b=d+(e<<2)|0;c[b>>2]=(c[b>>2]|0)+1}else{e=e+1|0;if((e|0)==(i|0))break a;c[d+(e<<2)>>2]=1;a=a^1}f=f+1|0;if((f|0)>=(h|0)){j=e;k=f;l=12;break}}}else{j=0;k=b;l=12}while(0);if(((l|0)==12?(j|0)!=(i|0):0)?!((k|0)==(h|0)&(j|0)==(i+-1|0)):0){l=Ob(8)|0;c[l+4>>2]=0;c[l>>2]=30552;Hc(l|0,856,146)}return}function il(a){a=a|0;return}function jl(a){a=a|0;Uz(a);return}function kl(a,b,d){a=a|0;b=+b;d=+d;ip(a,b,d);c[a>>2]=34064;return}function ll(a){a=a|0;var b=0;sl(a);c[a>>2]=5088;o=0;ka(320,a+20|0);b=o;o=0;if(b&1){b=cc()|0;Cl(a);bc(b|0)}else return}function ml(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;e=f+4|0;g=f;a=a+20|0;h=c[(c[a>>2]|0)+16>>2]|0;Wd(g,d);o=0;d=ya(h|0,a|0,b|0,g|0)|0;a=o;o=0;do if(!(a&1)){c[e>>2]=d;o=0;d=qa(160,e|0)|0;h=o;o=0;if(h&1){d=cc()|0;be(e);break}else{be(e);bq(g);i=f;return d|0}}else d=cc()|0;while(0);bq(g);bc(d|0);return 0}function nl(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;m=i;i=i+64|0;h=m+56|0;j=m+52|0;d=m+48|0;q=m+44|0;e=m+32|0;p=m+28|0;n=m+16|0;k=m+4|0;l=m;g=ep(c[b>>2]|0)|0;c[d>>2]=g;o=0;g=qa(113,g|0)|0;f=o;o=0;a:do if(f&1){q=cc()|0;ne(d);d=q}else{ne(d);if((a[((a[g>>0]&1)==0?g+1|0:c[g+8>>2]|0)>>0]|0)!=48){d=Ob(8)|0;o=0;ka(308,d|0);q=o;o=0;if(q&1){q=cc()|0;Nb(d|0);d=q;break}else Hc(d|0,320,76)}f=Sz(20)|0;o=0;ia(48,e|0,g|0,1,-1,g|0);g=o;o=0;do if(g&1)d=cc()|0;else{o=0;ma(94,f|0,e|0);g=o;o=0;if(g&1){d=cc()|0;IC(e);break}c[q>>2]=0;cq(q,f);IC(e);o=0;e=qa(111,40)|0;g=o;o=0;if(g&1)d=cc()|0;else{c[p>>2]=0;cq(p,c[q>>2]|0);o=0;ma(129,n|0,c[b>>2]|0);g=o;o=0;if(g&1)d=cc()|0;else{o=0;d=qa(114,c[b>>2]|0)|0;b=o;o=0;do if(!(b&1)){oe(k,d);c[l>>2]=15;o=0;c[h>>2]=c[l>>2];ia(45,e|0,p|0,n|0,k|0,h|0);l=o;o=0;if(l&1){d=cc()|0;pe(k);break}else{c[j>>2]=0;Qe(j,e);pe(k);Sd(n);ne(p);ne(q);i=m;return c[j>>2]|0}}else d=cc()|0;while(0);Sd(n)}ne(p);Uz(e)}ne(q);break a}while(0);Uz(f)}while(0);bc(d|0);return 0}function ol(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;g=i;i=i+16|0;f=g+4|0;h=g;a=a+20|0;j=c[(c[a>>2]|0)+28>>2]|0;Wd(h,d);o=0;d=kb(j|0,a|0,b|0,h|0,e|0)|0;a=o;o=0;do if(!(a&1)){c[f>>2]=d;o=0;d=qa(160,f|0)|0;j=o;o=0;if(j&1){d=cc()|0;be(f);break}else{be(f);bq(h);i=g;return d|0}}else d=cc()|0;while(0);bq(h);bc(d|0);return 0}function pl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;e=f+12|0;g=f+8|0;h=f;a=a+20|0;j=c[(c[a>>2]|0)+12>>2]|0;_d(g,b);$d(h,d);o=0;d=ya(j|0,a|0,g|0,h|0)|0;a=o;o=0;do if(!(a&1)){c[e>>2]=d;o=0;d=qa(160,e|0)|0;j=o;o=0;if(j&1){d=cc()|0;be(e);break}else{be(e);ze(h+4|0);ce(g);i=f;return d|0}}else d=cc()|0;while(0);ze(h+4|0);ce(g);bc(d|0);return 0}function ql(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;e=f;Wd(e,b);o=0;d=kb(42,a+20|0,e|0,c|0,d|0)|0;a=o;o=0;if(a&1){f=cc()|0;bq(e);bc(f|0)}else{bq(e);i=f;return d|0}return 0}function rl(a){a=a|0;return 15}function sl(a){a=a|0;cl(a);c[a>>2]=5184;a=a+8|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;return}function tl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;e=k+16|0;f=k+8|0;g=k;h=c[(c[a>>2]|0)+28>>2]|0;Wd(e,d);Wd(g,d);o=0;ma(153,f|0,g|0);d=o;o=0;if(!(d&1)?(o=0,j=kb(h|0,a|0,b|0,e|0,f|0)|0,a=o,o=0,!(a&1)):0){bq(g);bq(e);i=k;return j|0}k=cc()|0;bq(g);bq(e);bc(k|0);return 0}function ul(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;k=i;i=i+32|0;l=k+16|0;d=k+12|0;h=k;j=k+8|0;e=(c[1283]|0)-(c[1282]|0)>>2;c[d>>2]=0;ms(l,e,d);d=0;e=0;a:while(1){if(d){e=10;break}do{g=(c[1283]|0)-(c[1282]|0)|0;d=g>>2;f=c[l>>2]|0;if((g|0)>0){g=0;do{c[f+(g<<2)>>2]=0;g=g+1|0}while((g|0)<(d|0))}Wd(j,b);o=0;Ca(51,h|0,j|0,e|0,0,5128,l|0);g=o;o=0;if(g&1){e=9;break a}e=h;d=c[e>>2]|0;e=c[e+4>>2]|0;f=a;c[f>>2]=d;c[f+4>>2]=e;bq(j);f=d-e+d|0}while((f|0)<=-1);o=0;d=kb(57,c[b>>2]|0,f|0,d|0,0)|0;g=o;o=0;if(g&1){e=5;break}}if((e|0)==5)d=cc()|0;else if((e|0)==9){d=cc()|0;bq(j)}else if((e|0)==10){br(l);i=k;return}br(l);bc(d|0)}function vl(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0.0,l=0.0,m=0.0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;y=i;i=i+96|0;s=y+80|0;t=y+76|0;g=y+72|0;p=y+64|0;h=y+56|0;A=y+52|0;z=y+40|0;q=y+36|0;r=y+32|0;u=y+28|0;v=y+16|0;w=y+4|0;x=y;n=b+8|0;if(!(a[n>>0]&1)){a[n+1>>0]=0;a[n>>0]=0}else{a[c[b+16>>2]>>0]=0;c[b+12>>2]=0}j=c[(c[b>>2]|0)+24>>2]|0;Wd(g,e);o=0;j=kb(j|0,b|0,g|0,f|0,n|0)|0;C=o;o=0;do if(C&1){C=cc()|0;bq(g);g=C}else{bq(g);C=c[(c[b>>2]|0)+20>>2]|0;Wd(h,e);o=0;ub(C|0,p|0,b|0,h|0,j|0);C=o;o=0;if(C&1){g=cc()|0;bq(h);break}bq(h);j=p+4|0;g=c[j>>2]|0;h=g-(c[p>>2]|0)+g|0;if((h|0)<(Wf(c[e>>2]|0)|0)?Yf(c[e>>2]|0,g,h,0)|0:0){g=a[n>>0]|0;if(!(g&1))g=(g&255)>>>1;else g=c[b+12>>2]|0;if(g>>>0<8){g=Ob(8)|0;o=0;ka(308,g|0);C=o;o=0;if(C&1){C=cc()|0;Nb(g|0);g=C;break}else Hc(g|0,320,76)}g=Sz(20)|0;o=0;ma(94,g|0,n|0);C=o;o=0;if(C&1){C=cc()|0;Uz(g);g=C;break}c[A>>2]=0;cq(A,g);o=0;g=Wa(c[(c[b>>2]|0)+32>>2]|0,b|0,A|0)|0;C=o;o=0;do if(!(C&1)){if(!g){B=Ob(8)|0;Qf(B);o=0;mb(55,B|0,160,56);o=0;B=23;break}l=+((c[f>>2]|0)+(c[f+4>>2]|0)|0)*.5;m=+((c[p>>2]|0)+(c[j>>2]|0)|0)*.5;o=0;e=qa(c[(c[b>>2]|0)+36>>2]|0,b|0)|0;C=o;o=0;if(!(C&1)?(o=0,ma(147,z|0,2),C=o,o=0,!(C&1)):0){g=(c[z+8>>2]|0)+8|0;h=c[g>>2]|0;o=0;j=qa(111,16)|0;C=o;o=0;do if(!(C&1)){k=+(d|0);o=0;wa(43,j|0,+l,+k);C=o;o=0;if(C&1){g=cc()|0;Uz(j);break}c[q>>2]=0;vq(q,j);vq(h,c[q>>2]|0);uq(q);g=(c[g>>2]|0)+4|0;o=0;h=qa(111,16)|0;C=o;o=0;if(!(C&1)){o=0;wa(43,h|0,+m,+k);C=o;o=0;if(C&1){g=cc()|0;Uz(h);break}c[r>>2]=0;vq(r,h);vq(g,c[r>>2]|0);uq(r);o=0;g=qa(111,40)|0;C=o;o=0;if(C&1){B=33;break}c[u>>2]=0;cq(u,c[A>>2]|0);c[v+4>>2]=0;c[v>>2]=4084;c[v+8>>2]=0;oe(w,z);c[x>>2]=e;o=0;c[s>>2]=c[x>>2];ia(45,g|0,u|0,v|0,w|0,s|0);C=o;o=0;if(C&1){C=cc()|0;pe(w);Sd(v);ne(u);Uz(g);g=C;break}else{c[t>>2]=0;Qe(t,g);pe(w);Sd(v);ne(u);pe(z);ne(A);i=y;return c[t>>2]|0}}else B=33}else B=33;while(0);if((B|0)==33)g=cc()|0;pe(z)}else B=23}else B=23;while(0);if((B|0)==23)g=cc()|0;ne(A);break}C=Ob(8)|0;c[C+4>>2]=0;c[C>>2]=30552;Hc(C|0,856,146)}while(0);bc(g|0);return 0}function wl(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;i=(c[f+4>>2]|0)-(c[f>>2]|0)|0;q=i>>2;r=Wf(c[b>>2]|0)|0;h=c[b>>2]|0;if(e){e=1;d=bg(h,d)|0}else{e=0;d=ag(h,d)|0}n=q+-1|0;o=q+-2|0;p=q+-2|0;a:do if((d|0)<(r|0)){m=(i|0)>8;j=0;i=e;h=d;e=d;while(1){if(i^(c[(c[(c[(c[b>>2]|0)+20>>2]|0)+8>>2]|0)+(e>>5<<2)>>2]&1<<(e&31)|0)!=0){d=(c[g>>2]|0)+(j<<2)|0;c[d>>2]=(c[d>>2]|0)+1;d=j}else{if((j|0)==(n|0)){if((fl(g,f,179)|0)<122)break;d=c[g>>2]|0;l=c[d+4>>2]|0;j=(c[d>>2]|0)+h|0;if(m){h=2;do{c[d+(h+-2<<2)>>2]=c[d+(h<<2)>>2];h=h+1|0}while((h|0)<(q|0))}c[d+(o<<2)>>2]=0;c[d+(n<<2)>>2]=0;k=p;h=j+l|0}else{d=c[g>>2]|0;k=j+1|0}c[d+(k<<2)>>2]=1;d=k;i=i^1}e=e+1|0;if((e|0)>=(r|0))break a;else j=d}c[a>>2]=h;c[a+4>>2]=e;return}while(0);a=Ob(8)|0;c[a+4>>2]=0;c[a>>2]=30552;Hc(a|0,856,146)}function xl(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;j=i;i=i+32|0;h=j+8|0;k=j+4|0;g=j;l=(c[f+4>>2]|0)-(c[f>>2]|0)>>2;c[k>>2]=0;ms(h,l,k);Wd(g,b);o=0;Ca(51,a|0,g|0,d|0,e|0,f|0,h|0);e=o;o=0;if(e&1){l=cc()|0;bq(g);br(h);bc(l|0)}else{bq(g);br(h);i=j;return}}function yl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;i=i+16|0;b=e;Wd(b,c);o=0;ia(49,a|0,b|0,d|0,0,5128);c=o;o=0;if(c&1){c=cc()|0;bq(b);bc(c|0)}else{bq(b);i=e;return}}function zl(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;k=i;i=i+16|0;f=k;Wd(f,a);o=0;mb(76,f|0,d|0,b|0);j=o;o=0;if(j&1){k=cc()|0;bq(f);bc(k|0)}bq(f);j=(c[e+4>>2]|0)-(c[e>>2]|0)|0;g=j>>2;if((j|0)>0){f=-1;h=122;j=0;while(1){a=gl(b,c[(c[e>>2]|0)+(j<<2)>>2]|0,179)|0;d=(a|0)<(h|0);f=d?j:f;j=j+1|0;if((j|0)>=(g|0))break;else h=d?a:h}}else f=-1;if((f|0)>-1){i=k;return f|0}else{k=Ob(8)|0;c[k+4>>2]=0;c[k>>2]=30552;Hc(k|0,856,146)}return 0}function Al(a,b){a=a|0;b=b|0;return Bl(b)|0}function Bl(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;b=Ph(c[b>>2]|0)|0;f=a[b>>0]|0;d=(f&1)==0;f=d?(f&255)>>>1:c[b+4>>2]|0;a:do if(!f)b=0;else{g=d?b+1|0:c[b+8>>2]|0;e=f;b=0;while(1){e=e+-2|0;if((e|0)<=-1)break;h=a[g+e>>0]|0;d=(h<<24>>24)+-48|0;if(h<<24>>24<48|(d|0)>9){b=0;break a}else b=d+b|0}b=b*3|0;if((f|0)>0){e=f+-1|0;do{h=a[g+e>>0]|0;d=(h<<24>>24)+-48|0;if(h<<24>>24<48|(d|0)>9){b=0;break a}b=d+b|0;e=e+-2|0}while((e|0)>-1)}b=((b|0)%10|0|0)==0}while(0);return b|0}function Cl(a){a=a|0;c[a>>2]=5184;IC(a+8|0);il(a);return}function Dl(a){a=a|0;Cl(a);Uz(a);return}function El(a){a=a|0;sl(a);c[a>>2]=5232;c[a+20>>2]=0;c[a+24>>2]=0;c[a+28>>2]=0;return}function Fl(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;q=i;i=i+16|0;n=q;p=a+20|0;f=c[p>>2]|0;m=a+24|0;a=c[m>>2]|0;if((a|0)!=(f|0)){do a=a+-4|0;while((a|0)!=(f|0));c[m>>2]=a}cr(p,4);l=Wf(c[b>>2]|0)|0;a=c[d+4>>2]|0;a:do if((a|0)<(l|0)){f=0;k=0;while(1){Wd(n,b);o=0;j=kb(58,n|0,p|0,a|0,5164)|0;h=o;o=0;if(h&1)break;bq(n);NC(e,1,((j|0)%10|0)+48&255)|0;d=c[p>>2]|0;h=(c[m>>2]|0)-d|0;g=h>>2;if((h|0)>0){h=0;do{a=(c[d+(h<<2)>>2]|0)+a|0;h=h+1|0}while((h|0)<(g|0))}if((j|0)>9)f=1<<5-k|f;k=k+1|0;if(!((k|0)<6&(a|0)<(l|0)))break a}q=cc()|0;bq(n);bc(q|0)}else f=0;while(0);Gl(e,f)|0;i=q;return a|0}function Gl(a,b){a=a|0;b=b|0;var d=0,e=0;d=0;while(1){if((c[34080+(d<<2)>>2]|0)==(b|0)){b=0;e=3;break}d=d+1|0;if((d|0)>=10){d=0;e=6;break}}a:do if((e|0)==6)while(1){e=0;if((c[34120+(d<<2)>>2]|0)==(b|0)){b=1;e=3;break a}d=d+1|0;if((d|0)>=10){d=0;break}else e=6}while(0);if((e|0)==3){UC(a,0,1,b+48&255)|0;NC(a,1,d+48&255)|0;d=1}return d|0}function Hl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=i;i=i+16|0;b=e;Wd(b,c);o=0;ia(49,a|0,b|0,d|0,1,34160);c=o;o=0;if(c&1){c=cc()|0;bq(b);bc(c|0)}else{bq(b);i=e;return}}function Il(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;c[d>>2]=Jl(b)|0;o=0;b=Wa(47,a|0,d|0)|0;a=o;o=0;if(a&1){e=cc()|0;ne(d);bc(e|0)}else{ne(d);i=e;return b|0}return 0}function Jl(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;q=i;i=i+96|0;g=q+84|0;r=q+72|0;h=q+60|0;k=q+48|0;l=q+36|0;m=q+24|0;n=q+12|0;p=q;f=Ph(c[b>>2]|0)|0;c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;b=f+8|0;d=f+1|0;o=0;ya(101,r|0,1,a[((a[f>>0]&1)==0?d:c[b>>2]|0)>>0]|0)|0;e=o;o=0;a:do if(!(e&1)){e=a[((a[f>>0]&1)==0?d:c[b>>2]|0)+6>>0]|0;b:do switch(e<<24>>24|0){case 50:case 49:case 48:{o=0;ia(48,h|0,f|0,1,2,f|0);p=o;o=0;if(p&1){s=3;break a}p=a[h>>0]|0;n=(p&1)==0;o=0;ya(90,r|0,(n?h+1|0:c[h+8>>2]|0)|0,(n?(p&255)>>>1:c[h+4>>2]|0)|0)|0;p=o;o=0;if(p&1){b=cc()|0;IC(h);break a}IC(h);o=0;ya(101,r|0,1,e|0)|0;p=o;o=0;if(p&1){s=3;break a}o=0;Wa(93,r|0,48593)|0;p=o;o=0;if(p&1){s=3;break a}o=0;ia(48,k|0,f|0,3,3,f|0);p=o;o=0;if(p&1){s=3;break a}p=a[k>>0]|0;n=(p&1)==0;o=0;ya(90,r|0,(n?k+1|0:c[k+8>>2]|0)|0,(n?(p&255)>>>1:c[k+4>>2]|0)|0)|0;p=o;o=0;if(p&1){b=cc()|0;IC(k);break a}else{IC(k);break b}}case 51:{o=0;ia(48,l|0,f|0,1,3,f|0);p=o;o=0;if(p&1){s=3;break a}p=a[l>>0]|0;n=(p&1)==0;o=0;ya(90,r|0,(n?l+1|0:c[l+8>>2]|0)|0,(n?(p&255)>>>1:c[l+4>>2]|0)|0)|0;p=o;o=0;if(p&1){b=cc()|0;IC(l);break a}IC(l);o=0;Wa(93,r|0,48598)|0;p=o;o=0;if(p&1){s=3;break a}o=0;ia(48,m|0,f|0,4,2,f|0);p=o;o=0;if(p&1){s=3;break a}p=a[m>>0]|0;n=(p&1)==0;o=0;ya(90,r|0,(n?m+1|0:c[m+8>>2]|0)|0,(n?(p&255)>>>1:c[m+4>>2]|0)|0)|0;p=o;o=0;if(p&1){b=cc()|0;IC(m);break a}else{IC(m);break b}}case 52:{o=0;ia(48,n|0,f|0,1,4,f|0);p=o;o=0;if(p&1){s=3;break a}p=a[n>>0]|0;m=(p&1)==0;o=0;ya(90,r|0,(m?n+1|0:c[n+8>>2]|0)|0,(m?(p&255)>>>1:c[n+4>>2]|0)|0)|0;p=o;o=0;if(p&1){b=cc()|0;IC(n);break a}IC(n);o=0;Wa(93,r|0,48598)|0;p=o;o=0;if(p&1){s=3;break a}o=0;ya(101,r|0,1,a[((a[f>>0]&1)==0?d:c[b>>2]|0)+5>>0]|0)|0;p=o;o=0;if(p&1){s=3;break a}break}default:{o=0;ia(48,p|0,f|0,1,5,f|0);n=o;o=0;if(n&1){s=3;break a}n=a[p>>0]|0;m=(n&1)==0;o=0;ya(90,r|0,(m?p+1|0:c[p+8>>2]|0)|0,(m?(n&255)>>>1:c[p+4>>2]|0)|0)|0;n=o;o=0;if(n&1){b=cc()|0;IC(p);break a}IC(p);o=0;Wa(93,r|0,48593)|0;p=o;o=0;if(p&1){s=3;break a}o=0;ya(101,r|0,1,e|0)|0;p=o;o=0;if(p&1){s=3;break a}}}while(0);o=0;ya(101,r|0,1,a[((a[f>>0]&1)==0?d:c[b>>2]|0)+7>>0]|0)|0;p=o;o=0;if(!(p&1)?(o=0,j=qa(111,20)|0,p=o,o=0,!(p&1)):0){o=0;ma(94,j|0,r|0);p=o;o=0;if(p&1){b=cc()|0;Uz(j);break}else{c[g>>2]=0;cq(g,j);IC(r);i=q;return c[g>>2]|0}}else s=3}else s=3;while(0);if((s|0)==3)b=cc()|0;IC(r);bc(b|0);return 0}function Kl(a){a=a|0;return 16}function Ll(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=34180;Zp(a+8|0,b);c[a+56>>2]=0;c[a+52>>2]=29772;c[a+60>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;c[a+36>>2]=0;c[a+28>>2]=0;c[a+40>>2]=0;c[a+32>>2]=0;c[a+44>>2]=0;c[a+48>>2]=0;c[a+64>>2]=-1;return}function Ml(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;m=i;i=i+64|0;n=m+48|0;f=m+36|0;h=m+24|0;j=m+12|0;k=m;g=jg(c[b+8>>2]|0)|0;l=b+52|0;d=Sz(20)|0;o=0;ma(102,d|0,929);e=o;o=0;do if(e&1){p=cc()|0;Uz(d);d=p}else{Hq(l,d);d=Sz(20)|0;o=0;ma(102,d|0,929);e=o;o=0;if(e&1){p=cc()|0;Uz(d);d=p;break}Fq(n,d);a:do if((g|0)>0){d=0;e=0;while(1){if((e|0)>89)break;mq(f,n);o=0;d=kb(59,b|0,e|0,f|0,d|0)|0;q=o;o=0;if(q&1){p=12;break}nq(f);e=e+1|0;if((e|0)>=(g|0)){p=13;break a}}if((p|0)==12){d=cc()|0;nq(f);break}d=Ob(8)|0;o=0;ma(88,d|0,48604);q=o;o=0;if(q&1){q=cc()|0;Nb(d|0);d=q;break}else{o=0;mb(55,d|0,320,76);o=0;d=cc()|0;break}}else{d=0;p=13}while(0);do if((p|0)==13){mq(j,l);o=0;mb(85,h|0,j|0,c[b+48>>2]|0);q=o;o=0;if(q&1){d=cc()|0;nq(j);break}Hq(l,c[h+8>>2]|0);nq(h);nq(j);mq(k,n);o=0;mb(85,a|0,k|0,d|0);q=o;o=0;if(q&1){d=cc()|0;nq(k);break}else{nq(k);nq(n);i=m;return}}while(0);nq(n)}while(0);bc(d|0)}function Nl(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;A=i;i=i+16|0;u=A;p=a+8|0;q=ig(c[p>>2]|0)|0;c[u>>2]=-1;y=(b|0)%3|0;r=q+-17|0;s=a+48|0;t=a+60|0;w=d+8|0;n=a+24+(y<<2)|0;x=a+64|0;m=(y|0)==1;v=a+16|0;a:do if((q|0)>0){d=0;l=0;b:while(1){h=l+16|0;j=c[p>>2]|0;g=0;f=0;k=16;while(1){if(eq(j,h-k|0,b)|0){B=_L(1,0,k|0)|0;f=D|f;g=B|g}if((k|0)>0)k=k+-1|0;else break}c[u>>2]=-1;f=Pl(g,f,u)|0;do if((d|0)>0){g=c[u>>2]|0;g=(g|0)<0|(g|0)==(y|0)?f:-1;if((l|0)<(r|0)&(g|0)<0){f=c[s>>2]|0;B=c[t>>2]|0;g=c[B+8>>2]|0;if((f|0)>=((c[B+12>>2]|0)-g>>2|0)){f=9;break b}c[g+(f<<2)>>2]=e;c[s>>2]=(c[s>>2]|0)+1;e=e+1|0;break}else{B=c[w>>2]|0;f=c[B+8>>2]|0;if((e|0)>=((c[B+12>>2]|0)-f>>2|0)){f=14;break b}c[f+(e<<2)>>2]=g;e=e+1|0;break}}else{c[n>>2]=f;if(m&(c[x>>2]|0)<0)c[v>>2]=f}while(0);l=l+17|0;if((l|0)>=(q|0)){f=21;break}else d=d+1|0}do if((f|0)==9){e=Ob(8)|0;o=0;ma(88,e|0,48656);B=o;o=0;if(B&1){B=cc()|0;Nb(e|0);e=B;break}else Hc(e|0,320,76)}else if((f|0)==14){e=Ob(8)|0;o=0;ma(88,e|0,48713);B=o;o=0;if(B&1){B=cc()|0;Nb(e|0);e=B;break}else Hc(e|0,320,76)}else if((f|0)==21){d=(d|0)>0;break a}while(0);bc(e|0)}else d=0;while(0);if(d){e=e+-1|0;d=c[(c[w>>2]|0)+8>>2]|0;f=d+(e<<2)|0;c[a+36+(y<<2)>>2]=c[f>>2];if((y|0)==2){if((c[x>>2]|0)<0?(z=c[f>>2]|0,c[a+20>>2]=z,B=c[v>>2]|0,(z|0)==(B|0)&(B|0)>0):0)c[x>>2]=(((z|0)%30|0)-((c[a+12>>2]|0)%3|0)|0)/3|0;Ql(a,b)|0;d=c[(c[w>>2]|0)+8>>2]|0}c[d+(e<<2)>>2]=0}i=A;return e|0}function Ol(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;do if((d|0)<0){e=Ob(8)|0;o=0;ma(103,e|0,48780);d=o;o=0;if(d&1){d=cc()|0;Nb(e|0);e=d;break}else Hc(e|0,240,66)}else{e=Sz(20)|0;o=0;ma(102,e|0,d|0);f=o;o=0;if(f&1){d=cc()|0;Uz(e);e=d;break}Fq(a,e);if(d){f=c[(c[b+8>>2]|0)+8>>2]|0;e=c[(c[a+8>>2]|0)+8>>2]|0;b=0;do{c[e+(b<<2)>>2]=c[f+(b<<2)>>2];b=b+1|0}while((b|0)!=(d|0))}return}while(0);bc(e|0)}function Pl(a,b,d){a=a|0;b=b|0;d=d|0;a=Rl(a&262143,0)|0;if((a|0)==-1)a=-1;else{a=(c[16424+(a<<2)>>2]|0)+-1|0;if(d)c[d>>2]=(a|0)/929|0;a=(a|0)%929|0}return a|0}function Ql(a,b){a=a|0;b=b|0;Sl(0,a+24|0,a+40|0,b)|0;Sl(0,a+28|0,a+44|0,b)|0;Sl(0,a+32|0,a+36|0,b)|0;return 1}function Rl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=0;d=2787;a:while(1){f=d;while(1){if((h|0)>=(f|0)){d=-1;break a}d=(f+h|0)>>>1;e=c[5276+(d<<2)>>2]|0;g=((e|0)<0)<<31>>31;if((g|0)>(b|0)|(g|0)==(b|0)&e>>>0>a>>>0)f=d;else break}if(!((g|0)<(b|0)|(g|0)==(b|0)&e>>>0<a>>>0))break;h=d+1|0;d=f}return d|0}function Sl(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=c[b>>2]|0;a=c[d>>2]|0;if(!((a|0)==-1|((f|0)==-1|(f|0)==(a|0)))){e=((e|0)/3|0)*30|0;g=e+29|0;if((f|0)<(e|0)|(f|0)>(g|0)){c[b>>2]=-1;a=c[d>>2]|0}if((a|0)<(e|0)|(a|0)>(g|0))c[d>>2]=-1}return 1}function Tl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;k=i;i=i+48|0;b=k+32|0;l=k+16|0;h=k;Cs(a,16);d=c[a+8>>2]|0;j=d+8|0;e=c[j>>2]|0;o=0;ma(154,b|0,1);f=o;o=0;do if(!(f&1)){o=0;ma(155,e|0,b|0);f=o;o=0;if(f&1){l=cc()|0;Ds(b+4|0);b=l;break}Ds(b+4|0);o=0;ma(154,l|0,900);g=o;o=0;if(!(g&1)){o=0;ma(155,(c[j>>2]|0)+16|0,l|0);g=o;o=0;a:do if(g&1){b=cc()|0;g=13}else{e=d+12|0;f=h+4|0;b=c[j>>2]|0;b:do if(((c[e>>2]|0)-b|0)>32){d=2;while(1){o=0;mb(86,h|0,b+(d+-1<<4)|0,l|0);g=o;o=0;if(g&1){g=11;break}o=0;ma(155,b+(d<<4)|0,h|0);g=o;o=0;if(g&1){g=14;break}Ds(f);d=d+1|0;b=c[j>>2]|0;if((d|0)>=((c[e>>2]|0)-b>>4|0))break b}if((g|0)==11){b=cc()|0;g=13;break a}else if((g|0)==14){b=cc()|0;Ds(f);break a}}while(0);Ds(l+4|0);i=k;return}while(0);Ds(l+4|0)}else g=9}else g=9;while(0);if((g|0)==9)b=cc()|0;Fs(a);bc(b|0)}function Ul(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+128|0;v=y+116|0;z=y+112|0;g=y+100|0;l=y+96|0;n=y+84|0;p=y+80|0;q=y+68|0;r=y+64|0;s=y+52|0;t=y+48|0;u=y+36|0;h=y+32|0;j=y+20|0;k=y+16|0;w=y+4|0;x=y;b=Sz(20)|0;o=0;ma(156,b|0,100);m=o;o=0;if(m&1){z=cc()|0;Uz(b);b=z}else{c[z>>2]=0;cq(z,b);f=a+8|0;b=c[(c[f>>2]|0)+8>>2]|0;m=c[z>>2]|0;a:do if((c[b>>2]|0)>2){b=b+4|0;e=2;b:while(1){switch(c[b>>2]|0){case 900:{mq(g,a);c[l>>2]=0;cq(l,m);o=0;b=ya(105,g|0,e|0,l|0)|0;e=o;o=0;if(e&1){d=9;break b}ne(l);nq(g);break}case 901:{mq(n,a);c[p>>2]=0;cq(p,m);o=0;b=kb(60,901,n|0,e|0,p|0)|0;e=o;o=0;if(e&1){d=12;break b}ne(p);nq(n);break}case 902:{mq(q,a);c[r>>2]=0;cq(r,m);o=0;b=ya(106,q|0,e|0,r|0)|0;e=o;o=0;if(e&1){d=15;break b}ne(r);nq(q);break}case 913:{mq(s,a);c[t>>2]=0;cq(t,m);o=0;b=kb(60,913,s|0,e|0,t|0)|0;e=o;o=0;if(e&1){d=18;break b}ne(t);nq(s);break}case 924:{mq(u,a);c[h>>2]=0;cq(h,m);o=0;b=kb(60,924,u|0,e|0,h|0)|0;e=o;o=0;if(e&1){d=21;break b}ne(h);nq(u);break}default:{mq(j,a);c[k>>2]=0;cq(k,m);o=0;b=ya(105,j|0,e+-1|0,k|0)|0;e=o;o=0;if(e&1){d=24;break b}ne(k);nq(j)}}e=c[f>>2]|0;d=c[e+8>>2]|0;if((b|0)>=((c[e+12>>2]|0)-d>>2|0)){d=27;break}e=b+1|0;if((e|0)>=(c[d>>2]|0)){d=30;break a}else b=d+(b<<2)|0}if((d|0)==9){b=cc()|0;ne(l);nq(g);break}else if((d|0)==12){b=cc()|0;ne(p);nq(n);break}else if((d|0)==15){b=cc()|0;ne(r);nq(q);break}else if((d|0)==18){b=cc()|0;ne(t);nq(s);break}else if((d|0)==21){b=cc()|0;ne(h);nq(u);break}else if((d|0)==24){b=cc()|0;ne(k);nq(j);break}else if((d|0)==27){b=Ob(8)|0;o=0;ka(308,b|0);y=o;o=0;if(y&1){y=cc()|0;Nb(b|0);b=y;break}else{o=0;mb(55,b|0,320,76);o=0;d=6;break}}}else d=30;while(0);do if((d|0)==30){o=0;b=qa(111,48)|0;u=o;o=0;if(!(u&1)){c[w+4>>2]=0;c[w>>2]=4084;c[w+8>>2]=0;c[x>>2]=0;cq(x,m);o=0;mb(53,b|0,w|0,x|0);u=o;o=0;if(u&1){y=cc()|0;ne(x);Sd(w);Uz(b);b=y;break}else{c[v>>2]=0;dq(v,b);ne(x);Sd(w);ne(z);i=y;return c[v>>2]|0}}else d=6}while(0);if((d|0)==6)b=cc()|0;ne(z)}bc(b|0);return 0}function Vl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;r=i;i=i+64|0;s=r+40|0;q=r+28|0;m=r+16|0;n=r+4|0;p=r;a=a+8|0;kq(s,c[c[(c[a>>2]|0)+8>>2]>>2]<<1);o=0;ma(91,q|0,c[c[(c[a>>2]|0)+8>>2]>>2]<<1|0);l=o;o=0;do if(!(l&1)){j=c[(c[a>>2]|0)+8>>2]|0;k=(c[s+8>>2]|0)+8|0;l=(c[q+8>>2]|0)+8|0;a=0;a:while(1){h=c[j>>2]|0;g=0;b:while(1)while(1){if(g|(b|0)>=(h|0))break a;e=b+1|0;f=c[j+(b<<2)>>2]|0;if((f|0)<900){b=e;e=f;f=7;break b}switch(f|0){case 924:case 902:case 901:{g=1;continue b}case 900:{b=e;f=10;break b}case 913:{f=11;break b}default:b=e}}if((f|0)==7){h=c[k>>2]|0;c[h+(a<<2)>>2]=(e|0)/30|0;c[h+(a+1<<2)>>2]=(e|0)%30|0;a=a+2|0;continue}else if((f|0)==10){c[(c[k>>2]|0)+(a<<2)>>2]=900;a=a+1|0;continue}else if((f|0)==11){c[(c[k>>2]|0)+(a<<2)>>2]=913;c[(c[l>>2]|0)+(a<<2)>>2]=c[j+(e<<2)>>2];b=b+2|0;a=a+1|0;continue}}mq(m,s);mq(n,q);Sq(p,d);o=0;ub(63,m|0,n|0,a|0,p|0);d=o;o=0;if(d&1){a=cc()|0;ne(p);nq(n);nq(m);nq(q);break}else{ne(p);nq(n);nq(m);nq(q);nq(s);i=r;return b|0}}else a=cc()|0;while(0);nq(s);bc(a|0);return 0}function Wl(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+64|0;t=u+48|0;s=u+36|0;q=u+24|0;p=u+12|0;n=u;a:do switch(b|0){case 901:{b=Sz(20)|0;o=0;ma(77,b|0,6);r=o;o=0;if(r&1){e=cc()|0;Uz(b);h=43;break a}ie(t,b);o=0;b=qa(111,20)|0;r=o;o=0;do if(r&1)e=cc()|0;else{o=0;ma(102,b|0,6);r=o;o=0;if(r&1){e=cc()|0;Uz(b);break}Fq(s,b);m=d+8|0;b=c[(c[m>>2]|0)+8>>2]|0;d=c[b+(e<<2)>>2]|0;r=(c[s+8>>2]|0)+8|0;p=c[t+8>>2]|0;n=p+8|0;p=p+12|0;e=e+1|0;g=c[b>>2]|0;b:do if((e|0)<(g|0)){k=0;h=0;l=b;j=0;c:while(1){b=j+1|0;c[(c[r>>2]|0)+(j<<2)>>2]=d;g=dM(k|0,h|0,900,0)|0;g=TL(d|0,((d|0)<0)<<31>>31|0,g|0,D|0)|0;h=D;d=c[l+(e<<2)>>2]|0;switch(d|0){case 900:case 901:case 902:case 922:case 923:case 924:case 928:{k=g;j=1;break}default:if((j|0)>-1&((b|0)%5|0|0)==0){a[(c[n>>2]|0)+5>>0]=g;g=VL(g|0,h|0,8)|0;a[(c[n>>2]|0)+4>>0]=g;g=VL(g|0,D|0,8)|0;a[(c[n>>2]|0)+3>>0]=g;g=VL(g|0,D|0,8)|0;a[(c[n>>2]|0)+2>>0]=g;g=VL(g|0,D|0,8)|0;a[(c[n>>2]|0)+1>>0]=g;g=VL(g|0,D|0,8)|0;a[c[n>>2]>>0]=g;g=VL(g|0,D|0,8)|0;h=D;b=c[f>>2]|0;l=c[n>>2]|0;o=0;mb(57,q|0,l|0,(c[p>>2]|0)-l|0);l=o;o=0;if(l&1){h=13;break c}o=0;ma(157,b|0,q|0);l=o;o=0;if(l&1){h=19;break c}IC(q);l=c[(c[m>>2]|0)+8>>2]|0;k=g;b=0;j=0}else{k=g;j=0}}e=e+1|0;g=c[l>>2]|0;if(j|(e|0)>=(g|0)){h=20;break b}else j=b}if((h|0)==13){e=cc()|0;h=14;break}else if((h|0)==19){e=cc()|0;IC(q);break}}else{b=0;h=20}while(0);d:do if((h|0)==20){if((d|0)<900&(e|0)==(g|0)){c[(c[r>>2]|0)+(b<<2)>>2]=d;b=b+1|0}e:do if((b|0)>0){d=0;while(1){o=0;ma(158,c[f>>2]|0,c[(c[r>>2]|0)+(d<<2)>>2]&255|0);q=o;o=0;if(q&1)break;d=d+1|0;if((d|0)>=(b|0))break e}e=cc()|0;h=14;break d}while(0);nq(s);Sd(t);h=42;break a}while(0);nq(s)}while(0);Sd(t);h=43;break}case 924:{l=d+8|0;m=p+8|0;b=c[(c[l>>2]|0)+8>>2]|0;if((c[b>>2]|0)>(e|0)){j=0;d=0;h=0;while(1){g=e+1|0;b=c[b+(e<<2)>>2]|0;f:do if((b|0)<900){d=dM(j|0,d|0,900,0)|0;b=TL(b|0,((b|0)<0)<<31>>31|0,d|0,D|0)|0;d=D;e=h+1|0;k=0}else{switch(b|0){case 900:case 901:case 902:case 922:case 923:case 924:case 928:break;default:{b=j;e=h;k=0;break f}}g=e;b=j;e=h;k=1}while(0);if((e|0)>0&((e|0)%5|0|0)==0){e=Sz(20)|0;o=0;ma(77,e|0,6);t=o;o=0;if(t&1){h=35;break}ie(p,e);t=(c[m>>2]|0)+8|0;a[(c[t>>2]|0)+5>>0]=b;e=VL(b|0,d|0,8)|0;a[(c[t>>2]|0)+4>>0]=e;e=VL(e|0,D|0,8)|0;a[(c[t>>2]|0)+3>>0]=e;e=VL(e|0,D|0,8)|0;a[(c[t>>2]|0)+2>>0]=e;e=VL(e|0,D|0,8)|0;a[(c[t>>2]|0)+1>>0]=e;e=VL(e|0,D|0,8)|0;a[c[t>>2]>>0]=e;e=VL(e|0,D|0,8)|0;d=D;b=c[f>>2]|0;o=0;mb(57,n|0,c[t>>2]|0,6);t=o;o=0;if(t&1){h=36;break}o=0;ma(157,b|0,n|0);t=o;o=0;if(t&1){h=40;break}IC(n);Sd(p);j=e;h=0}else{j=b;h=e}b=c[(c[l>>2]|0)+8>>2]|0;if(k|(g|0)>=(c[b>>2]|0)){e=g;h=42;break a}else e=g}if((h|0)==35){u=cc()|0;Uz(e);e=u;h=43;break a}else if((h|0)==36)e=cc()|0;else if((h|0)==40){e=cc()|0;IC(n)}Sd(p);h=43}else h=42;break}default:h=42}while(0);if((h|0)==42){i=u;return e|0}else if((h|0)==43)bc(e|0);return 0}function Xl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;p=i;i=i+32|0;q=p+16|0;n=p+12|0;m=p;e=Sz(20)|0;o=0;ma(102,e|0,15);l=o;o=0;a:do if(l&1){b=cc()|0;Uz(e)}else{Fq(q,e);k=a+8|0;l=q+8|0;e=c[(c[k>>2]|0)+8>>2]|0;a=c[e>>2]|0;b:do if((a|0)>(b|0)){g=0;f=0;while(1){j=b+1|0;h=c[e+(b<<2)>>2]|0;f=f|(j|0)==(a|0);if((h|0)<900){c[(c[(c[l>>2]|0)+8>>2]|0)+(g<<2)>>2]=h;e=g+1|0;a=7}else switch(h|0){case 900:case 901:case 922:case 923:case 924:case 928:{e=g;f=1;a=9;break}default:{e=g;a=7}}if((a|0)==7){a=0;if(f|((h|0)==902|((e|0)%15|0|0)==0)){b=j;a=9}else{b=j;g=e;f=0}}if((a|0)==9){mq(m,q);o=0;e=Wa(94,m|0,e|0)|0;j=o;o=0;if(j&1){a=13;break}c[n>>2]=e;nq(m);a=c[d>>2]|0;o=0;e=qa(113,e|0)|0;j=o;o=0;if(j&1){a=14;break}o=0;ma(157,a|0,e|0);j=o;o=0;if(j&1){a=14;break}ne(n);g=0}e=c[(c[k>>2]|0)+8>>2]|0;a=c[e>>2]|0;if(!((b|0)<(a|0)&(f^1)))break b}if((a|0)==13){b=cc()|0;nq(m)}else if((a|0)==14){b=cc()|0;ne(n)}nq(q);break a}while(0);nq(q);i=p;return b|0}while(0);bc(b|0);return 0}function Yl(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;k=b+8|0;h=d+8|0;a:do if((e|0)>0){i=0;j=0;b=0;while(1){d=c[(c[(c[k>>2]|0)+8>>2]|0)+(i<<2)>>2]|0;b:do switch(b|0){case 0:{if((d|0)<26){b=d+65&255;d=0;l=39;break b}switch(d|0){case 26:{b=32;d=0;l=40;break b}case 27:{g=j;b=1;break b}case 28:{g=j;b=2;break b}case 29:{g=0;b=5;break b}case 913:{Uh(c[f>>2]|0,c[(c[(c[h>>2]|0)+8>>2]|0)+(i<<2)>>2]&255);g=j;b=0;break b}default:{g=j;b=0;break b}}}case 1:{if((d|0)<26){b=d+97&255;d=1;l=39;break b}switch(d|0){case 26:{b=32;d=1;l=40;break b}case 27:{g=1;b=4;break b}case 28:{g=j;b=2;break b}case 29:{g=1;b=5;break b}case 913:{Uh(c[f>>2]|0,c[(c[(c[h>>2]|0)+8>>2]|0)+(i<<2)>>2]&255);g=j;b=1;break b}default:{g=j;b=(d|0)!=900&1;break b}}}case 2:{if((d|0)<25){b=a[46657+d>>0]|0;d=2;l=39;break b}switch(d|0){case 25:{g=j;b=3;break b}case 26:{b=32;d=2;l=40;break b}case 27:{g=j;b=1;break b}case 28:{g=j;b=0;break b}case 29:{g=2;b=5;break b}case 913:{Uh(c[f>>2]|0,c[(c[(c[h>>2]|0)+8>>2]|0)+(i<<2)>>2]&255);g=j;b=2;break b}default:{g=j;b=(d|0)==900?0:2;break b}}}case 3:{if((d|0)<29){b=a[46628+d>>0]|0;d=3;l=39;break b}switch(d|0){case 29:{g=j;b=0;break b}case 913:{Uh(c[f>>2]|0,c[(c[(c[h>>2]|0)+8>>2]|0)+(i<<2)>>2]&255);g=j;b=3;break b}default:{g=j;b=(d|0)==900?0:3;break b}}}case 4:{if((d|0)<26){b=d+65&255;d=j;l=39;break b}if((d|0)==26){b=32;d=j;l=40}else{g=j;b=(d|0)==900?0:j}break}case 5:{if((d|0)<29){b=a[46628+d>>0]|0;d=j;l=39;break b}switch(d|0){case 29:{g=j;b=0;break b}case 913:{Uh(c[f>>2]|0,c[(c[(c[h>>2]|0)+8>>2]|0)+(i<<2)>>2]&255);g=j;b=j;break b}default:{g=j;b=(d|0)==900?0:j;break b}}}default:g=j}while(0);if((l|0)==39){l=0;if(!(b<<24>>24)){g=j;b=d}else l=40}if((l|0)==40){l=0;Uh(c[f>>2]|0,b);g=j;b=d}i=i+1|0;if((i|0)>=(e|0))break a;else j=g}}while(0);return}function Zl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;v=i;i=i+112|0;q=v+104|0;p=v+100|0;r=v+96|0;y=v+80|0;h=v+64|0;j=v+48|0;k=v+32|0;x=v+20|0;w=v+8|0;s=v+4|0;t=v;sp(y,0);e=b+8|0;f=d+-1|0;l=h+4|0;m=j+4|0;n=k+4|0;a:do if((d|0)>0){g=0;while(1){b=c[(c[6895]|0)+8>>2]|0;o=0;ma(154,k|0,c[(c[(c[e>>2]|0)+8>>2]|0)+(g<<2)>>2]|0);z=o;o=0;if(z&1){g=7;break}o=0;mb(86,j|0,b+(f-g<<4)|0,k|0);z=o;o=0;if(z&1){g=10;break}o=0;mb(87,h|0,y|0,j|0);z=o;o=0;if(z&1){g=11;break}o=0;ma(155,y|0,h|0);z=o;o=0;if(z&1){g=12;break}Ds(l);Ds(m);Ds(n);g=g+1|0;if((g|0)>=(d|0)){g=15;break a}}if((g|0)==7){b=cc()|0;g=9;break}else if((g|0)==10)b=cc()|0;else if((g|0)==11){b=cc()|0;g=13}else if((g|0)==12){b=cc()|0;Ds(l);g=13}if((g|0)==13)Ds(m);Ds(n)}else g=15;while(0);do if((g|0)==15){o=0;ma(159,x|0,y|0);z=o;o=0;if(z&1){b=cc()|0;g=9;break}b=a[x>>0]|0;e=(b&1)==0;f=e?x+1|0:c[x+8>>2]|0;do if((a[f>>0]|0)!=49){b=Ob(8)|0;o=0;ma(88,b|0,48823);z=o;o=0;if(z&1){z=cc()|0;Nb(b|0);b=z;break}else{o=0;mb(55,b|0,320,76);o=0;b=cc()|0;break}}else{c[w>>2]=0;c[w+4>>2]=0;c[w+8>>2]=0;c[s>>2]=f+1;c[t>>2]=f+(e?(b&255)>>>1:c[x+4>>2]|0);o=0;c[p>>2]=c[s>>2];c[q>>2]=c[t>>2];ya(107,w|0,p|0,q|0)|0;z=o;o=0;do if(!(z&1)?(o=0,u=qa(111,20)|0,z=o,o=0,!(z&1)):0){o=0;ma(94,u|0,w|0);z=o;o=0;if(z&1){b=cc()|0;Uz(u);break}else{c[r>>2]=0;cq(r,u);IC(w);IC(x);Ds(y+4|0);i=v;return c[r>>2]|0}}else g=23;while(0);if((g|0)==23)b=cc()|0;IC(w)}while(0);IC(x)}while(0);Ds(y+4|0);bc(b|0);return 0}function _l(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+144|0;l=h+76|0;d=h+72|0;k=h+60|0;j=h+48|0;a=h+36|0;e=h+24|0;f=h+12|0;g=h;Zp(d,b);o=0;ma(160,l|0,d|0);b=o;o=0;if(b&1){l=cc()|0;Yd(d);d=l}else{Yd(d);o=0;ma(161,k|0,l|0);b=o;o=0;if(b&1)d=cc()|0;else{b=c[k+8>>2]|0;do if((c[b+12>>2]|0)==(c[b+8>>2]|0)){d=Ob(8)|0;o=0;ma(88,d|0,48899);j=o;o=0;if(j&1){j=cc()|0;Nb(d|0);d=j;break}else{o=0;mb(55,d|0,320,76);o=0;d=cc()|0;break}}else{d=1<<(c[l+64>>2]|0)+1;mq(j,l+52|0);mq(a,k);mq(e,j);o=0;ub(64,0,a|0,e|0,d|0);b=o;o=0;do if(!(b&1)){nq(e);nq(a);mq(f,k);o=0;ma(162,f|0,d|0);b=o;o=0;if(b&1){d=cc()|0;nq(f);break}nq(f);mq(g,k);o=0;d=qa(161,g|0)|0;b=o;o=0;if(b&1){d=cc()|0;nq(g);break}else{nq(g);nq(j);nq(k);Is(l);i=h;return d|0}}else{d=cc()|0;nq(e);nq(a)}while(0);nq(j)}while(0);nq(k)}Is(l)}bc(d|0);return 0}function $l(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+32|0;k=h+24|0;a=h+12|0;f=h;g=c[d+8>>2]|0;do if(e>>>0>512?1:((c[g+12>>2]|0)-(c[g+8>>2]|0)>>2|0)>(((e|0)/2|0)+3|0)){a=Ob(8)|0;o=0;ma(88,a|0,48941);k=o;o=0;if(k&1){k=cc()|0;Nb(a|0);a=k;break}else Hc(a|0,320,76)}else{g=Sz(12)|0;o=0;ka(324,g|0);l=o;o=0;if(l&1){a=cc()|0;Uz(g);break}c[k>>2]=0;Js(k,g);l=c[k>>2]|0;mq(a,b);mq(f,d);o=0;ub(65,l|0,a|0,e|0,f|0);l=o;o=0;do if(!(l&1)){nq(f);nq(a);f=c[b+8>>2]|0;a=c[f+8>>2]|0;f=(c[f+12>>2]|0)-a>>2;g=0;while(1){if((g|0)>=(f|0)){j=15;break}if((c[a+(g<<2)>>2]|0)<0)break;else g=g+1|0}if((j|0)==15){Ks(k);i=h;return}a=Ob(8)|0;o=0;ma(88,a|0,49010);l=o;o=0;if(l&1){l=cc()|0;Nb(a|0);a=l;break}else{o=0;mb(55,a|0,320,76);o=0;a=cc()|0;break}}else{l=cc()|0;nq(f);nq(a);a=l}while(0);Ks(k)}while(0);bc(a|0)}function am(a,b){a=a|0;b=b|0;var d=0,e=0;a=c[a+8>>2]|0;d=c[a+8>>2]|0;a=(c[a+12>>2]|0)-d|0;e=a>>2;a:do if((a|0)<16){a=Ob(8)|0;o=0;ma(88,a|0,49071);b=o;o=0;if(b&1){b=cc()|0;Nb(a|0);a=b;break}else Hc(a|0,320,76)}else{a=c[d>>2]|0;if((a|0)>(e|0)){a=Ob(8)|0;o=0;ma(88,a|0,49130);b=o;o=0;if(b&1){b=cc()|0;Nb(a|0);a=b;break}else Hc(a|0,320,76)}do if(!a){if((e|0)>(b|0)){c[d>>2]=e-b;break}a=Ob(8)|0;o=0;ma(88,a|0,49195);b=o;o=0;if(b&1){b=cc()|0;Nb(a|0);a=b;break a}else Hc(a|0,320,76)}while(0);return}while(0);bc(a|0)}function bm(a){a=a|0;c[a+4>>2]=0;c[a>>2]=34196;c[a+8>>2]=27584;return}function cm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;A=i;i=i+160|0;J=A+156|0;f=A+144|0;I=A+132|0;H=A+128|0;u=A+116|0;n=A+112|0;p=A+100|0;l=A+96|0;m=A+92|0;G=A+88|0;q=A+76|0;F=A+64|0;r=A+60|0;t=A+56|0;E=A+52|0;D=A+48|0;C=A+36|0;w=A+32|0;B=A+20|0;x=A+16|0;y=A+12|0;v=A;g=Sz(24)|0;z=a+8|0;s=c[z>>2]|0;mq(f,b);o=0;mb(88,g|0,s|0,f|0);s=o;o=0;if(s&1){J=cc()|0;nq(f);Uz(g);f=J}else{c[J>>2]=0;Ls(J,g);nq(f);o=0;f=qa(111,20)|0;s=o;o=0;a:do if(s&1)f=cc()|0;else{o=0;ma(102,f|0,d|0);s=o;o=0;if(s&1){I=cc()|0;Uz(f);f=I;break}Fq(I,f);g=c[J>>2]|0;h=(c[I+8>>2]|0)+8|0;b:do if((d|0)>0){k=0;j=d;while(1){o=0;f=Wa(95,c[z>>2]|0,j|0)|0;s=o;o=0;if(s&1){g=11;break}o=0;f=Wa(96,g|0,f|0)|0;s=o;o=0;if(s&1){g=11;break}c[(c[h>>2]|0)+(d-j<<2)>>2]=f;k=k|(f|0)!=0;if((j|0)<=1){g=14;break}else j=j+-1|0}do if((g|0)==11){f=cc()|0;g=13}else if((g|0)==14){if(!k)break b;o=0;f=qa(162,c[z>>2]|0)|0;s=o;o=0;if(s&1){f=cc()|0;g=13;break}c[H>>2]=f;k=e+8|0;s=b+8|0;j=u+8|0;b=c[k>>2]|0;f=c[b+8>>2]|0;c:do if(((c[b+12>>2]|0)-f|0)>0){h=0;while(1){g=c[s>>2]|0;o=0;g=Wa(95,c[z>>2]|0,((c[g+12>>2]|0)-(c[g+8>>2]|0)>>2)+~c[f+(h<<2)>>2]|0)|0;b=o;o=0;if(b&1){g=25;break}o=0;f=qa(111,20)|0;b=o;o=0;if(b&1){g=25;break}o=0;ma(102,f|0,2);b=o;o=0;if(b&1){g=28;break}Fq(u,f);o=0;f=ya(108,c[z>>2]|0,0,g|0)|0;b=o;o=0;if(b&1){g=29;break}b=c[(c[j>>2]|0)+8>>2]|0;c[b+4>>2]=f;c[b>>2]=1;o=0;f=qa(111,24)|0;b=o;o=0;if(b&1){g=29;break}b=c[z>>2]|0;mq(p,u);o=0;mb(88,f|0,b|0,p|0);b=o;o=0;if(b&1){g=30;break}c[n>>2]=0;Ls(n,f);nq(p);f=c[H>>2]|0;c[m>>2]=0;Ls(m,c[n>>2]|0);o=0;f=Wa(97,f|0,m|0)|0;b=o;o=0;if(b&1){g=31;break}c[l>>2]=f;Ls(H,f);Ms(l);Ms(m);Ms(n);nq(u);h=h+1|0;b=c[k>>2]|0;f=c[b+8>>2]|0;if((h|0)>=((c[b+12>>2]|0)-f>>2|0)){g=33;break c}}if((g|0)==25){f=cc()|0;g=27;break}else if((g|0)==28){G=cc()|0;Uz(f);f=G;break}else if((g|0)==29)f=cc()|0;else if((g|0)==30){G=cc()|0;nq(p);Uz(f);f=G}else if((g|0)==31){f=cc()|0;Ms(m);Ms(n)}nq(u)}else g=33;while(0);do if((g|0)==33){o=0;f=qa(111,24)|0;u=o;o=0;if(u&1){f=cc()|0;g=27;break}u=c[z>>2]|0;mq(q,I);o=0;mb(88,f|0,u|0,q|0);u=o;o=0;if(u&1){G=cc()|0;nq(q);Uz(f);f=G;break}c[G>>2]=0;Ls(G,f);nq(q);o=0;f=ya(109,c[z>>2]|0,d|0,1)|0;u=o;o=0;do if(u&1)f=cc()|0;else{c[r>>2]=f;c[t>>2]=0;Ls(t,c[G>>2]|0);o=0;ia(50,F|0,a|0,r|0,t|0,d|0);u=o;o=0;if(u&1){f=cc()|0;Ms(t);Ms(r);break}Ms(t);Ms(r);Ns(E,c[F>>2]|0);Ns(D,(c[F>>2]|0)+4|0);c[w>>2]=0;f=c[E>>2]|0;Ls(w,f);o=0;mb(89,C|0,a|0,w|0);u=o;o=0;if(u&1){f=cc()|0;Ms(w)}else{Ms(w);c[x>>2]=0;Ls(x,c[D>>2]|0);c[y>>2]=0;Ls(y,f);mq(v,C);o=0;ia(51,B|0,a|0,x|0,y|0,v|0);a=o;o=0;d:do if(a&1){f=cc()|0;nq(v);Ms(y);Ms(x)}else{nq(v);Ms(y);Ms(x);e=c[C+8>>2]|0;k=e+12|0;e=e+8|0;b=(c[B+8>>2]|0)+8|0;f=c[e>>2]|0;e:do if(((c[k>>2]|0)-f|0)>0){j=0;while(1){h=c[s>>2]|0;g=c[h+12>>2]|0;h=c[h+8>>2]|0;o=0;f=Wa(98,c[z>>2]|0,c[f+(j<<2)>>2]|0)|0;a=o;o=0;if(a&1){g=48;break}f=(g-h>>2)+-1-f|0;if((f|0)<0){g=42;break}o=0;g=ya(108,c[z>>2]|0,c[(c[(c[s>>2]|0)+8>>2]|0)+(f<<2)>>2]|0,c[(c[b>>2]|0)+(j<<2)>>2]|0)|0;a=o;o=0;if(a&1){g=48;break}c[(c[(c[s>>2]|0)+8>>2]|0)+(f<<2)>>2]=g;j=j+1|0;f=c[e>>2]|0;if((j|0)>=((c[k>>2]|0)-f>>2|0))break e}if((g|0)==42){f=Ob(8)|0;Kh(f,49260);o=0;mb(55,f|0,256,68);o=0;f=cc()|0}else if((g|0)==48)f=cc()|0;nq(B);break d}while(0);nq(B);nq(C);Ms(D);Ms(E);Os(F);Ms(G);Ms(H);break b}while(0);nq(C)}Ms(D);Ms(E);Os(F)}while(0);Ms(G)}while(0);Ms(H)}while(0);nq(I);break a}while(0);nq(I);Ms(J);i=A;return}while(0);Ms(J)}bc(f|0)}function dm(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;z=i;i=i+80|0;g=z+72|0;G=z+68|0;F=z+64|0;E=z+60|0;D=z+56|0;A=z+52|0;C=z+48|0;w=z+44|0;l=z+40|0;q=z+36|0;n=z+32|0;r=z+28|0;p=z+24|0;s=z+20|0;t=z+16|0;v=z+12|0;u=z+8|0;B=z+4|0;y=z;m=sm(c[d>>2]|0)|0;if((m|0)<(sm(c[e>>2]|0)|0)){Ns(g,d);Ls(d,c[e>>2]|0);Ls(e,c[g>>2]|0);Ms(g)}Ns(G,d);Ns(F,e);m=b+8|0;o=0;g=qa(163,c[m>>2]|0)|0;k=o;o=0;if(k&1)d=cc()|0;else{c[E>>2]=g;o=0;d=qa(162,c[m>>2]|0)|0;k=o;o=0;if(k&1)d=cc()|0;else{c[D>>2]=d;k=(f|0)/2|0;e=c[F>>2]|0;a:while(1){o=0;d=qa(164,e|0)|0;j=o;o=0;if(j&1){b=13;break}if((d|0)<(k|0)){b=53;break}c[A>>2]=0;Ls(A,c[G>>2]|0);c[C>>2]=0;Ls(C,g);Ls(G,e);Ls(E,c[D>>2]|0);j=c[G>>2]|0;o=0;d=qa(165,j|0)|0;h=o;o=0;if(h&1){b=16;break}if(d){b=10;break}Ls(F,c[A>>2]|0);o=0;d=qa(163,c[m>>2]|0)|0;h=o;o=0;if(h&1){b=16;break}c[w>>2]=d;o=0;d=qa(164,j|0)|0;h=o;o=0;if(h&1){b=38;break}o=0;d=Wa(99,j|0,d|0)|0;h=o;o=0;if(h&1){b=38;break}o=0;h=Wa(100,c[m>>2]|0,d|0)|0;f=o;o=0;if(f&1){b=38;break}while(1){e=c[F>>2]|0;o=0;d=qa(164,e|0)|0;f=o;o=0;if(f&1){b=37;break a}o=0;g=qa(164,j|0)|0;f=o;o=0;if(f&1){b=37;break a}if((d|0)<(g|0))break;o=0;d=qa(165,e|0)|0;f=o;o=0;if(f&1){b=37;break a}if(d)break;o=0;d=qa(164,e|0)|0;f=o;o=0;if(f&1){b=37;break a}o=0;g=qa(164,j|0)|0;f=o;o=0;if(f&1){b=37;break a}f=d-g|0;g=c[m>>2]|0;o=0;d=qa(164,e|0)|0;b=o;o=0;if(b&1){b=37;break a}o=0;d=Wa(99,e|0,d|0)|0;b=o;o=0;if(b&1){b=37;break a}o=0;b=ya(110,g|0,d|0,h|0)|0;g=o;o=0;if(g&1){b=37;break a}d=c[w>>2]|0;o=0;g=ya(109,c[m>>2]|0,f|0,b|0)|0;H=o;o=0;if(H&1){b=37;break a}c[q>>2]=g;o=0;d=Wa(101,d|0,q|0)|0;H=o;o=0;if(H&1){b=40;break a}c[l>>2]=d;Ls(w,d);Ms(l);Ms(q);o=0;d=ya(111,j|0,f|0,b|0)|0;H=o;o=0;if(H&1){b=37;break a}c[r>>2]=d;o=0;d=Wa(102,e|0,r|0)|0;H=o;o=0;if(H&1){b=41;break a}c[n>>2]=d;Ls(F,d);Ms(n);Ms(r)}d=c[w>>2]|0;c[v>>2]=0;g=c[E>>2]|0;Ls(v,g);o=0;d=Wa(97,d|0,v|0)|0;H=o;o=0;if(H&1){b=46;break}c[t>>2]=d;c[u>>2]=0;Ls(u,c[C>>2]|0);o=0;d=Wa(102,d|0,u|0)|0;H=o;o=0;if(H&1){b=47;break}c[s>>2]=d;o=0;d=qa(166,d|0)|0;H=o;o=0;if(H&1){b=48;break}c[p>>2]=d;Ls(D,d);Ms(p);Ms(s);Ms(u);Ms(t);Ms(v);Ms(w);Ms(C);Ms(A)}b:switch(b|0){case 10:{d=Ob(8)|0;Kh(d,49280);o=0;mb(55,d|0,256,68);o=0;d=cc()|0;b=17;break}case 13:{d=cc()|0;b=15;break}case 16:{d=cc()|0;b=17;break}case 37:{d=cc()|0;b=39;break}case 38:{d=cc()|0;b=39;break}case 40:{d=cc()|0;Ms(q);b=51;break}case 41:{d=cc()|0;Ms(r);b=51;break}case 46:{d=cc()|0;b=50;break}case 47:{d=cc()|0;b=49;break}case 48:{d=cc()|0;Ms(s);b=49;break}case 53:{g=c[D>>2]|0;o=0;d=Wa(99,g|0,0)|0;H=o;o=0;do if(!(H&1)){if(!d){H=Ob(8)|0;Kh(H,49320);o=0;mb(55,H|0,256,68);o=0;break}o=0;d=Wa(100,c[m>>2]|0,d|0)|0;H=o;o=0;if(!(H&1)?(o=0,x=Wa(103,g|0,d|0)|0,H=o,o=0,!(H&1)):0){c[B>>2]=x;o=0;d=Wa(103,e|0,d|0)|0;H=o;o=0;do if(!(H&1)){c[y>>2]=d;o=0;ma(163,a|0,2);H=o;o=0;if(H&1){d=cc()|0;Ms(y);break}else{Ls(c[a>>2]|0,x);Ls((c[a>>2]|0)+4|0,d);Ms(y);Ms(B);Ms(D);Ms(E);Ms(F);Ms(G);i=z;return}}else d=cc()|0;while(0);Ms(B);break b}}while(0);d=cc()|0;b=15;break}}if((b|0)!=15)if((b|0)==17)b=52;else if((b|0)==39)b=51;else if((b|0)==49){Ms(u);Ms(t);b=50}if((b|0)==50){Ms(v);b=51}if((b|0)==51){Ms(w);b=52}if((b|0)==52){Ms(C);Ms(A)}Ms(D)}Ms(E)}Ms(F);Ms(G);bc(d|0)}function em(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=sm(c[d>>2]|0)|0;e=Sz(20)|0;o=0;ma(102,e|0,i|0);h=o;o=0;if(h&1){a=cc()|0;Uz(e);e=a}else{Fq(a,e);f=b+8|0;g=a+8|0;e=0;h=1;while(1){o=0;b=qa(167,c[f>>2]|0)|0;j=o;o=0;if(j&1){b=10;break}if(!((e|0)<(i|0)&(h|0)<(b|0))){b=13;break}o=0;b=Wa(96,c[d>>2]|0,h|0)|0;j=o;o=0;if(j&1){b=10;break}if(!b){o=0;b=Wa(100,c[f>>2]|0,h|0)|0;j=o;o=0;if(j&1){b=10;break}c[(c[(c[g>>2]|0)+8>>2]|0)+(e<<2)>>2]=b;e=e+1|0}h=h+1|0}do if((b|0)==10)e=cc()|0;else if((b|0)==13)if((e|0)==(i|0))return;else{e=Ob(8)|0;Kh(e,49336);o=0;mb(55,e|0,256,68);o=0;e=cc()|0;break}while(0);nq(a)}bc(e|0)}function fm(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;q=i;i=i+32|0;s=q+16|0;r=q+12|0;l=q;k=sm(c[e>>2]|0)|0;g=Sz(20)|0;o=0;ma(102,g|0,k|0);p=o;o=0;if(p&1){s=cc()|0;Uz(g);g=s}else{Fq(s,g);p=b+8|0;h=(c[s+8>>2]|0)+8|0;a:do if((k|0)<1)n=10;else{j=1;while(1){g=c[p>>2]|0;o=0;b=Wa(99,c[e>>2]|0,j|0)|0;n=o;o=0;if(n&1)break;o=0;g=ya(110,g|0,j|0,b|0)|0;n=o;o=0;if(n&1)break;c[(c[h>>2]|0)+(k-j<<2)>>2]=g;j=j+1|0;if((k|0)<(j|0)){n=10;break a}}g=cc()|0;n=9}while(0);do if((n|0)==10){o=0;g=qa(111,24)|0;m=o;o=0;if(m&1){g=cc()|0;n=9;break}m=c[p>>2]|0;mq(l,s);o=0;mb(88,g|0,m|0,l|0);m=o;o=0;if(m&1){r=cc()|0;nq(l);Uz(g);g=r;break}c[r>>2]=0;Ls(r,g);nq(l);f=f+8|0;b=c[f>>2]|0;b=(c[b+12>>2]|0)-(c[b+8>>2]|0)|0;m=b>>2;o=0;g=qa(111,20)|0;l=o;o=0;b:do if(l&1)g=cc()|0;else{o=0;ma(102,g|0,m|0);l=o;o=0;if(l&1){q=cc()|0;Uz(g);g=q;break}Fq(a,g);e=c[r>>2]|0;l=a+8|0;c:do if((b|0)>0){k=0;while(1){o=0;h=Wa(100,c[p>>2]|0,c[(c[(c[f>>2]|0)+8>>2]|0)+(k<<2)>>2]|0)|0;j=o;o=0;if(j&1)break;g=c[p>>2]|0;o=0;b=Wa(96,c[d>>2]|0,h|0)|0;j=o;o=0;if(j&1)break;o=0;j=ya(108,g|0,0,b|0)|0;b=o;o=0;if(b&1)break;b=c[p>>2]|0;o=0;g=Wa(96,e|0,h|0)|0;h=o;o=0;if(h&1)break;o=0;g=Wa(100,b|0,g|0)|0;h=o;o=0;if(h&1)break;o=0;g=ya(110,c[p>>2]|0,j|0,g|0)|0;j=o;o=0;if(j&1)break;c[(c[(c[l>>2]|0)+8>>2]|0)+(k<<2)>>2]=g;k=k+1|0;if((k|0)>=(m|0))break c}g=cc()|0;nq(a);break b}while(0);Ms(r);nq(s);i=q;return}while(0);Ms(r)}while(0);nq(s)}bc(g|0)}function gm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;n=i;i=i+48|0;q=n+36|0;p=n+24|0;l=n+12|0;m=n;c[a+4>>2]=0;c[a>>2]=29772;h=a+8|0;c[h>>2]=0;r=a+12|0;c[a+16>>2]=0;c[r>>2]=29772;j=a+20|0;c[j>>2]=0;s=a+24|0;c[s>>2]=0;Ls(s,0);t=a+28|0;c[t>>2]=0;Ls(t,0);k=a+32|0;c[k>>2]=b;o=0;e=qa(111,20)|0;g=o;o=0;do if(!(g&1)){o=0;ma(102,e|0,b|0);g=o;o=0;if(g&1){q=cc()|0;Uz(e);e=q;break}Hq(a,e);o=0;e=qa(111,20)|0;g=o;o=0;if(!(g&1)){o=0;ma(102,e|0,c[k>>2]|0);g=o;o=0;if(g&1){q=cc()|0;Uz(e);e=q;break}Hq(r,e);e=c[k>>2]|0;if((e|0)>0){f=c[(c[h>>2]|0)+8>>2]|0;g=0;e=1;while(1){c[f+(g<<2)>>2]=e;b=$(e,d)|0;e=c[k>>2]|0;g=g+1|0;if((g|0)>=(e|0))break;else e=(b|0)%(e|0)|0}}if((e|0)>1){f=c[(c[h>>2]|0)+8>>2]|0;e=c[(c[j>>2]|0)+8>>2]|0;b=0;do{c[e+(c[f+(b<<2)>>2]<<2)>>2]=b;b=b+1|0}while((b|0)<((c[k>>2]|0)+-1|0))}o=0;e=qa(111,20)|0;k=o;o=0;if(!(k&1)){o=0;ma(102,e|0,1);k=o;o=0;if(k&1){q=cc()|0;Uz(e);e=q;break}Fq(q,e);o=0;e=qa(111,20)|0;k=o;o=0;do if(k&1)e=cc()|0;else{o=0;ma(102,e|0,1);k=o;o=0;if(k&1){p=cc()|0;Uz(e);e=p;break}Fq(p,e);c[c[(c[q+8>>2]|0)+8>>2]>>2]=0;c[c[(c[p+8>>2]|0)+8>>2]>>2]=1;o=0;e=qa(111,24)|0;k=o;o=0;do if(!(k&1)){mq(l,q);o=0;mb(88,e|0,a|0,l|0);k=o;o=0;if(k&1){n=cc()|0;nq(l);Uz(e);e=n;break}Ls(s,e);nq(l);o=0;e=qa(111,24)|0;l=o;o=0;if(!(l&1)){mq(m,p);o=0;mb(88,e|0,a|0,m|0);l=o;o=0;if(l&1){n=cc()|0;nq(m);Uz(e);e=n;break}else{Ls(t,e);nq(m);nq(p);nq(q);i=n;return}}else u=26}else u=26;while(0);if((u|0)==26)e=cc()|0;nq(p)}while(0);nq(q)}else u=10}else u=10}else u=10;while(0);if((u|0)==10)e=cc()|0;Ms(t);Ms(s);nq(r);nq(a);bc(e|0)}function hm(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Ns(b,a+24|0);i=d;return c[b>>2]|0}function im(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Ns(b,a+28|0);i=d;return c[b>>2]|0}function jm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+32|0;e=k+28|0;j=k+16|0;h=k+12|0;g=k;a:do if((b|0)<0){e=Ob(8)|0;o=0;ma(103,e|0,49364);k=o;o=0;if(k&1){k=cc()|0;Nb(e|0);e=k;break}else Hc(e|0,240,66)}else{b:do if(!d)Ns(e,a+24|0);else{f=Sz(20)|0;o=0;ma(102,f|0,b+1|0);b=o;o=0;if(b&1){e=cc()|0;Uz(f);break a}Fq(j,f);c[c[(c[j+8>>2]|0)+8>>2]>>2]=d;o=0;f=qa(111,24)|0;b=o;o=0;do if(!(b&1)){mq(g,j);o=0;mb(88,f|0,a|0,g|0);a=o;o=0;if(a&1){e=cc()|0;nq(g);Uz(f);break}else{c[h>>2]=0;Ls(h,f);nq(g);c[e>>2]=0;Ls(e,c[h>>2]|0);Ms(h);nq(j);break b}}else e=cc()|0;while(0);nq(j);break a}while(0);i=k;return c[e>>2]|0}while(0);bc(e|0);return 0}function km(a,b,d){a=a|0;b=b|0;d=d|0;return (d+b|0)%(c[a+32>>2]|0)|0|0}function lm(a,b,d){a=a|0;b=b|0;d=d|0;a=c[a+32>>2]|0;return (b-d+a|0)%(a|0)|0|0}function mm(a,b){a=a|0;b=b|0;return c[(c[(c[a+8>>2]|0)+8>>2]|0)+(b<<2)>>2]|0}function nm(a,b){a=a|0;b=b|0;if(b)return c[(c[(c[a+20>>2]|0)+8>>2]|0)+(b<<2)>>2]|0;b=Ob(8)|0;o=0;ma(103,b|0,49386);a=o;o=0;if(a&1){a=cc()|0;Nb(b|0);bc(a|0)}else Hc(b|0,240,66);return 0}function om(a,b){a=a|0;b=b|0;if(b)return c[(c[(c[a+8>>2]|0)+8>>2]|0)+((c[a+32>>2]|0)+-1-(c[(c[(c[a+20>>2]|0)+8>>2]|0)+(b<<2)>>2]|0)<<2)>>2]|0;b=Ob(8)|0;o=0;ma(103,b|0,49399);a=o;o=0;if(a&1){a=cc()|0;Nb(b|0);bc(a|0)}else Hc(b|0,240,66);return 0}function pm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)==0|(d|0)==0)b=0;else{e=c[(c[a+20>>2]|0)+8>>2]|0;b=c[(c[(c[a+8>>2]|0)+8>>2]|0)+((((c[e+(d<<2)>>2]|0)+(c[e+(b<<2)>>2]|0)|0)%((c[a+32>>2]|0)+-1|0)|0)<<2)>>2]|0}return b|0}function qm(a){a=a|0;return c[a+32>>2]|0}function rm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;s=i;i=i+48|0;j=s+32|0;k=s+28|0;m=s+16|0;n=s+12|0;q=s;c[a+4>>2]=0;c[a>>2]=27628;l=a+8|0;c[l>>2]=b;r=a+12|0;c[a+16>>2]=0;c[r>>2]=29772;p=a+20|0;c[p>>2]=0;a=c[d+8>>2]|0;f=c[a+8>>2]|0;e=(c[a+12>>2]|0)-f|0;g=e>>2;a:do if(!g){a=Ob(8)|0;o=0;ma(103,a|0,49416);s=o;o=0;if(s&1){s=cc()|0;Nb(a|0);a=s;break}else{o=0;mb(55,a|0,240,66);o=0;t=4;break}}else{b:do if((e|0)>4?(c[f>>2]|0)==0:0){c:do if((e|0)>4){a=1;while(1){if(c[f+(a<<2)>>2]|0){h=a;break c}a=a+1|0;if((g|0)<=(a|0)){h=a;break}}}else h=1;while(0);if((g|0)==(h|0)){o=0;a=qa(163,b|0)|0;q=o;o=0;if(q&1){t=4;break a}c[k>>2]=a;mq(j,a+12|0);f=c[j+8>>2]|0;e=c[f+12>>2]|0;f=c[f+8>>2]|0;nq(j);Ms(k);o=0;a=qa(111,20)|0;q=o;o=0;if(q&1){t=4;break a}o=0;ma(102,a|0,e-f>>2|0);q=o;o=0;if(q&1){s=cc()|0;Uz(a);a=s;break a}Hq(r,a);e=c[p>>2]|0;o=0;a=qa(163,c[l>>2]|0)|0;q=o;o=0;if(q&1){t=4;break a}c[n>>2]=a;mq(m,a+12|0);o=0;Wa(104,e|0,c[m+8>>2]|0)|0;q=o;o=0;if(q&1){a=cc()|0;nq(m);Ms(n);break a}else{nq(m);Ms(n);break}}mq(q,d);g=g-h|0;o=0;a=qa(111,20)|0;n=o;o=0;do if(n&1)a=cc()|0;else{o=0;ma(102,a|0,g|0);n=o;o=0;if(n&1){s=cc()|0;Uz(a);a=s;break}Hq(r,a);if((g|0)>0){f=c[(c[q+8>>2]|0)+8>>2]|0;a=c[(c[p>>2]|0)+8>>2]|0;e=0;do{c[a+(e<<2)>>2]=c[f+(e+h<<2)>>2];e=e+1|0}while((e|0)<(g|0))}nq(q);break b}while(0);nq(q);break a}else t=29;while(0);if((t|0)==29)Hq(r,a);i=s;return}while(0);if((t|0)==4)a=cc()|0;nq(r);bc(a|0)}function sm(a){a=a|0;a=c[a+20>>2]|0;return ((c[a+12>>2]|0)-(c[a+8>>2]|0)>>2)+-1|0}function tm(a){a=a|0;return (c[c[(c[a+20>>2]|0)+8>>2]>>2]|0)==0|0}function um(a,b){a=a|0;b=b|0;var d=0;d=c[a+20>>2]|0;a=c[d+8>>2]|0;return c[a+(((c[d+12>>2]|0)-a>>2)+~b<<2)>>2]|0}function vm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;g=a+20|0;f=c[g>>2]|0;d=c[f+8>>2]|0;f=(c[f+12>>2]|0)-d|0;h=f>>2;switch(b|0){case 0:{d=c[d+(h+-1<<2)>>2]|0;break}case 1:{e=a+8|0;if((f|0)>0){a=0;d=0;do{d=km(c[e>>2]|0,d,c[(c[(c[g>>2]|0)+8>>2]|0)+(a<<2)>>2]|0)|0;a=a+1|0}while((a|0)<(h|0))}else d=0;break}default:{d=c[d>>2]|0;e=a+8|0;if((f|0)>4){a=1;do{f=c[e>>2]|0;d=pm(f,b,d)|0;d=km(f,d,c[(c[(c[g>>2]|0)+8>>2]|0)+(a<<2)>>2]|0)|0;a=a+1|0}while((a|0)<(h|0))}}}return d|0}function wm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;p=i;i=i+64|0;d=p+60|0;s=p+48|0;r=p+36|0;f=p+24|0;q=p+12|0;m=p;n=a+8|0;e=c[b>>2]|0;a:do if((c[n>>2]|0)!=(c[e+8>>2]|0)){d=Ob(8)|0;o=0;ma(103,d|0,49433);s=o;o=0;if(s&1){s=cc()|0;Nb(d|0);d=s;break}else Hc(d|0,240,66)}else{b:do if(!(c[c[(c[a+20>>2]|0)+8>>2]>>2]|0))Ns(d,b);else{if(!(c[c[(c[e+20>>2]|0)+8>>2]>>2]|0)){c[d>>2]=0;Ls(d,a);break}mq(s,a+12|0);mq(r,(c[b>>2]|0)+12|0);a=s+8|0;l=c[a>>2]|0;b=r+8|0;e=c[b>>2]|0;if(((c[l+12>>2]|0)-(c[l+8>>2]|0)|0)>((c[e+12>>2]|0)-(c[e+8>>2]|0)|0)){mq(f,s);Hq(s,e);Hq(r,c[f+8>>2]|0);nq(f)}o=0;e=qa(111,20)|0;l=o;o=0;do if(l&1)d=cc()|0;else{l=c[b>>2]|0;k=l+12|0;l=l+8|0;o=0;ma(102,e|0,(c[k>>2]|0)-(c[l>>2]|0)>>2|0);j=o;o=0;if(j&1){d=cc()|0;Uz(e);break}Fq(q,e);f=c[k>>2]|0;e=c[l>>2]|0;h=c[a>>2]|0;g=h+8|0;h=(f-e>>2)-((c[h+12>>2]|0)-(c[g>>2]|0)>>2)|0;j=(c[q+8>>2]|0)+8|0;if((h|0)>0){b=c[j>>2]|0;a=0;do{c[b+(a<<2)>>2]=c[e+(a<<2)>>2];a=a+1|0}while((a|0)<(h|0))}c:do if((h|0)<(f-e>>2|0)){b=h;while(1){o=0;e=ya(112,c[n>>2]|0,c[(c[g>>2]|0)+(b-h<<2)>>2]|0,c[e+(b<<2)>>2]|0)|0;f=o;o=0;if(f&1)break;c[(c[j>>2]|0)+(b<<2)>>2]=e;b=b+1|0;e=c[l>>2]|0;if((b|0)>=((c[k>>2]|0)-e>>2|0)){b=24;break c}}d=cc()|0;b=21}else b=24;while(0);do if((b|0)==24){o=0;e=qa(111,24)|0;l=o;o=0;if(l&1){d=cc()|0;b=21;break}n=c[n>>2]|0;mq(m,q);o=0;mb(88,e|0,n|0,m|0);n=o;o=0;if(n&1){d=cc()|0;nq(m);Uz(e);break}else{c[d>>2]=0;Ls(d,e);nq(m);nq(q);nq(r);nq(s);break b}}while(0);nq(q)}while(0);nq(r);nq(s);break a}while(0);i=p;return c[d>>2]|0}while(0);bc(d|0);return 0}function xm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;d=f+4|0;e=f;b=c[b>>2]|0;a:do if((c[a+8>>2]|0)==(c[b+8>>2]|0)){do if(c[c[(c[b+20>>2]|0)+8>>2]>>2]|0){c[e>>2]=ym(b)|0;o=0;b=Wa(101,a|0,e|0)|0;a=o;o=0;if(a&1){b=cc()|0;Ms(e);break a}else{c[d>>2]=b;Ms(e);break}}else{c[d>>2]=0;Ls(d,a);b=c[d>>2]|0}while(0);i=f;return b|0}else{a=Ob(4)|0;o=0;b=qa(111,8)|0;f=o;o=0;do if(!(f&1)){o=0;ma(103,b|0,49433);f=o;o=0;if(f&1){f=cc()|0;Uz(b);b=f;break}else{c[a>>2]=b;Hc(a|0,896,0)}}else b=cc()|0;while(0);Nb(a|0)}while(0);bc(b|0);return 0}function ym(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+32|0;j=l+24|0;m=l+12|0;k=l;h=a+20|0;d=c[h>>2]|0;d=(c[d+12>>2]|0)-(c[d+8>>2]|0)|0;f=d>>2;b=Sz(20)|0;o=0;ma(102,b|0,f|0);g=o;o=0;if(g&1){m=cc()|0;Uz(b);b=m}else{Fq(m,b);g=a+8|0;e=(c[m+8>>2]|0)+8|0;a:do if((d|0)>0){a=0;while(1){o=0;b=ya(108,c[g>>2]|0,0,c[(c[(c[h>>2]|0)+8>>2]|0)+(a<<2)>>2]|0)|0;d=o;o=0;if(d&1)break;c[(c[e>>2]|0)+(a<<2)>>2]=b;a=a+1|0;if((a|0)>=(f|0)){a=9;break a}}b=cc()|0;a=8}else a=9;while(0);do if((a|0)==9){o=0;b=qa(111,24)|0;h=o;o=0;if(h&1){b=cc()|0;a=8;break}h=c[g>>2]|0;mq(k,m);o=0;mb(88,b|0,h|0,k|0);h=o;o=0;if(h&1){l=cc()|0;nq(k);Uz(b);b=l;break}else{c[j>>2]=0;Ls(j,b);nq(k);nq(m);i=l;return c[j>>2]|0}}while(0);nq(m)}bc(b|0);return 0}function zm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=i;i=i+64|0;q=t+48|0;v=t+36|0;w=t+24|0;u=t+12|0;r=t;s=a+8|0;e=c[s>>2]|0;d=c[b>>2]|0;a:do if((e|0)==(c[d+8>>2]|0)){b:do if((c[c[(c[a+20>>2]|0)+8>>2]>>2]|0)!=0?(c[c[(c[d+20>>2]|0)+8>>2]>>2]|0)!=0:0){mq(v,a+12|0);e=c[v+8>>2]|0;n=e+8|0;e=(c[e+12>>2]|0)-(c[n>>2]|0)|0;p=e>>2;mq(w,(c[b>>2]|0)+12|0);a=c[w+8>>2]|0;l=a+8|0;a=(c[a+12>>2]|0)-(c[l>>2]|0)|0;m=a>>2;o=0;d=qa(111,20)|0;k=o;o=0;do if(k&1)d=cc()|0;else{o=0;ma(102,d|0,p+-1+m|0);k=o;o=0;if(k&1){u=cc()|0;Uz(d);d=u;break}Fq(u,d);k=(c[u+8>>2]|0)+8|0;c:do if((e|0)>0){b=(a|0)>0;h=0;d:while(1){f=c[(c[n>>2]|0)+(h<<2)>>2]|0;if(b){j=0;do{d=c[s>>2]|0;g=j+h|0;a=c[(c[k>>2]|0)+(g<<2)>>2]|0;o=0;e=ya(110,d|0,f|0,c[(c[l>>2]|0)+(j<<2)>>2]|0)|0;x=o;o=0;if(x&1)break d;o=0;d=ya(112,d|0,a|0,e|0)|0;x=o;o=0;if(x&1)break d;c[(c[k>>2]|0)+(g<<2)>>2]=d;j=j+1|0}while((j|0)<(m|0))}h=h+1|0;if((h|0)>=(p|0)){a=25;break c}}d=cc()|0;a=23}else a=25;while(0);do if((a|0)==25){o=0;d=qa(111,24)|0;x=o;o=0;if(x&1){d=cc()|0;a=23;break}x=c[s>>2]|0;mq(r,u);o=0;mb(88,d|0,x|0,r|0);x=o;o=0;if(x&1){x=cc()|0;nq(r);Uz(d);d=x;break}else{c[q>>2]=0;Ls(q,d);nq(r);nq(u);nq(w);nq(v);d=c[q>>2]|0;break b}}while(0);nq(u)}while(0);nq(w);nq(v);break a}else a=10;while(0);if((a|0)==10){d=hm(e)|0;c[q>>2]=d}i=t;return d|0}else{a=Ob(4)|0;o=0;d=qa(111,8)|0;x=o;o=0;do if(!(x&1)){o=0;ma(103,d|0,49433);x=o;o=0;if(x&1){x=cc()|0;Uz(d);d=x;break}else{c[a>>2]=d;Hc(a|0,896,0)}}else d=cc()|0;while(0);Nb(a|0)}while(0);bc(d|0);return 0}function Am(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;d=m+24|0;n=m+12|0;l=m;a:do switch(b|0){case 0:{c[d>>2]=hm(c[a+8>>2]|0)|0;break}case 1:{c[d>>2]=0;Ls(d,a);break}default:{k=a+20|0;f=c[k>>2]|0;f=(c[f+12>>2]|0)-(c[f+8>>2]|0)|0;h=f>>2;e=Sz(20)|0;o=0;ma(102,e|0,h|0);j=o;o=0;if(j&1){d=cc()|0;Uz(e)}else{Fq(n,e);j=a+8|0;g=(c[n+8>>2]|0)+8|0;b:do if((f|0)>0){a=0;while(1){o=0;e=ya(110,c[j>>2]|0,c[(c[(c[k>>2]|0)+8>>2]|0)+(a<<2)>>2]|0,b|0)|0;f=o;o=0;if(f&1)break;c[(c[g>>2]|0)+(a<<2)>>2]=e;a=a+1|0;if((a|0)>=(h|0)){a=12;break b}}d=cc()|0;a=11}else a=12;while(0);do if((a|0)==12){o=0;e=qa(111,24)|0;b=o;o=0;if(b&1){d=cc()|0;a=11;break}b=c[j>>2]|0;mq(l,n);o=0;mb(88,e|0,b|0,l|0);b=o;o=0;if(b&1){d=cc()|0;nq(l);Uz(e);break}else{c[d>>2]=0;Ls(d,e);nq(l);nq(n);break a}}while(0);nq(n)}bc(d|0)}}while(0);i=m;return c[d>>2]|0}function Bm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;k=m+24|0;n=m+12|0;l=m;a:do if((b|0)<0){b=Ob(4)|0;o=0;e=qa(111,8)|0;n=o;o=0;do if(!(n&1)){o=0;ma(103,e|0,49479);n=o;o=0;if(n&1){n=cc()|0;Uz(e);e=n;break}else{c[b>>2]=e;Hc(b|0,896,0)}}else e=cc()|0;while(0);Nb(b|0)}else{b:do if(!d){e=hm(c[a+8>>2]|0)|0;c[k>>2]=e}else{h=a+20|0;f=c[h>>2]|0;f=(c[f+12>>2]|0)-(c[f+8>>2]|0)|0;j=f>>2;e=Sz(20)|0;o=0;ma(102,e|0,j+b|0);g=o;o=0;if(g&1){n=cc()|0;Uz(e);e=n;break a}Fq(n,e);g=a+8|0;a=(c[n+8>>2]|0)+8|0;c:do if((f|0)>0){b=0;while(1){o=0;e=ya(110,c[g>>2]|0,c[(c[(c[h>>2]|0)+8>>2]|0)+(b<<2)>>2]|0,d|0)|0;f=o;o=0;if(f&1)break;c[(c[a>>2]|0)+(b<<2)>>2]=e;b=b+1|0;if((b|0)>=(j|0)){b=18;break c}}e=cc()|0;b=17}else b=18;while(0);do if((b|0)==18){o=0;e=qa(111,24)|0;d=o;o=0;if(d&1){e=cc()|0;b=17;break}d=c[g>>2]|0;mq(l,n);o=0;mb(88,e|0,d|0,l|0);d=o;o=0;if(d&1){m=cc()|0;nq(l);Uz(e);e=m;break}else{c[k>>2]=0;Ls(k,e);nq(l);nq(n);e=c[k>>2]|0;break b}}while(0);nq(n);break a}while(0);i=m;return e|0}while(0);bc(e|0);return 0}function Cm(a){a=a|0;c[a>>2]=27628;nq(a+12|0);return}function Dm(a){a=a|0;c[a>>2]=27628;nq(a+12|0);Uz(a);return}function Em(a,b){a=a|0;b=b|0;_d(a,b);return}function Fm(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;s=i;i=i+112|0;n=s+96|0;x=s+92|0;w=s+80|0;b=s+76|0;f=s+64|0;g=s+60|0;k=s+56|0;h=s+52|0;v=s+48|0;u=s+44|0;l=s+32|0;p=s+28|0;t=s+16|0;q=s+12|0;r=s;j=Kf(c[a>>2]|0)|0;c[x>>2]=j;c[b>>2]=0;Ke(b,j);o=0;mb(90,w|0,b|0,8);d=o;o=0;if(d&1){y=cc()|0;Yd(b);b=y}else{Yd(b);d=w+8|0;b=c[d>>2]|0;do if(!b){c[g>>2]=0;Ke(g,j);o=0;mb(91,f|0,g|0,8);h=o;o=0;if(h&1){b=cc()|0;Yd(g);break}Te(w,c[f+8>>2]|0);pe(f);Yd(g);b=c[d>>2]|0;if(!b){y=Ob(8)|0;zq(y,49496);c[y>>2]=30552;o=0;mb(55,y|0,856,146);o=0;y=8;break}c[k>>2]=0;Ke(k,j);o=0;mb(92,k|0,w|0,1);j=o;o=0;if(j&1){b=cc()|0;Yd(k);break}else{Yd(k);y=15;break}}else{c[h>>2]=0;Ke(h,j);o=0;mb(92,h|0,w|0,0);k=o;o=0;if(k&1){b=cc()|0;Yd(h);break}else{Yd(h);y=15;break}}while(0);do if((y|0)==15){o=0;e=+Ka(45,w|0);k=o;o=0;if(!(k&1)){if(e<1.0){y=Ob(8)|0;zq(y,49515);c[y>>2]=30552;o=0;mb(55,y|0,856,146);o=0;y=8;break}f=b+8|0;d=c[f>>2]|0;o=0;d=sb(46,d+48|0,d+56|0,d+52|0,d+60|0,+e)|0;k=o;o=0;if(!(k&1)){if((d|0)<1){y=Ob(8)|0;zq(y,49533);c[y>>2]=30552;o=0;mb(55,y|0,856,146);o=0;y=8;break}b=c[f>>2]|0;o=0;b=ga(44,0,b+48|0,b+56|0,b+52|0,b+60|0,+e)|0;k=o;o=0;if(!(k&1)?(o=0,m=kb(61,a|0,w|0,d|0,((b|0)<(d|0)?d:b)|0)|0,a=o,o=0,!(a&1)):0){c[v>>2]=m;c[p>>2]=0;Ke(p,m);o=0;mb(93,l|0,p|0,d|0);a=o;o=0;do if(a&1){b=cc()|0;y=31}else{o=0;d=qa(168,l|0)|0;a=o;o=0;if(a&1){b=cc()|0;Yd(l);y=31;break}c[u>>2]=d;Yd(l);Yd(p);o=0;ma(147,t|0,4);p=o;o=0;if(p&1)b=cc()|0;else{b=(c[t+8>>2]|0)+8|0;vq(c[b>>2]|0,c[(c[f>>2]|0)+20>>2]|0);vq((c[b>>2]|0)+4|0,c[(c[f>>2]|0)+16>>2]|0);vq((c[b>>2]|0)+8|0,c[(c[f>>2]|0)+24>>2]|0);vq((c[b>>2]|0)+12|0,c[(c[f>>2]|0)+28>>2]|0);o=0;b=qa(111,24)|0;p=o;o=0;do if(!(p&1)){c[q>>2]=0;Ke(q,d);oe(r,t);o=0;mb(52,b|0,q|0,r|0);p=o;o=0;if(p&1){s=cc()|0;pe(r);Yd(q);Uz(b);b=s;break}else{c[n>>2]=0;Hr(n,b);pe(r);Yd(q);pe(t);Yd(u);Yd(v);pe(w);Yd(x);i=s;return c[n>>2]|0}}else b=cc()|0;while(0);pe(t)}Yd(u)}while(0);if((y|0)==31)Yd(p);Yd(v)}else y=8}else y=8}else y=8}while(0);if((y|0)==8)b=cc()|0;pe(w)}Yd(x);bc(b|0);return 0}function Gm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0.0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;w=i;i=i+96|0;A=w+76|0;y=w+64|0;l=w+52|0;g=w+48|0;p=w+36|0;m=w+32|0;t=w+20|0;r=w+16|0;x=w+4|0;u=w;s=jg(c[b>>2]|0)|0;v=ig(c[b>>2]|0)|0;ns(A,16);o=0;e=qa(111,20)|0;n=o;o=0;do if(n&1)e=cc()|0;else{o=0;ma(102,e|0,8);n=o;o=0;if(n&1){z=cc()|0;Uz(e);e=z;break}Fq(y,e);e=l+8|0;a:do if((s|0)>0){h=0;while(1){Zp(g,b);o=0;Sa(42,l|0,g|0,0,h|0,v|0,0,27636,8,y|0);n=o;o=0;if(n&1){z=13;break}Yd(g);f=c[e>>2]|0;if(f)break;nq(l);h=h+d|0;if((h|0)>=(s|0)){f=0;z=34;break a}}if((z|0)==13){e=cc()|0;Yd(g);break}n=(c[A+8>>2]|0)+8|0;e=c[n>>2]|0;o=0;g=qa(111,16)|0;k=o;o=0;do if(!(k&1)){k=f+8|0;j=+(h|0);o=0;wa(42,g|0,+(+(c[c[k>>2]>>2]|0)),+j);h=o;o=0;if(h&1){e=cc()|0;Uz(g);break}vq(e,g);e=(c[n>>2]|0)+16|0;o=0;f=qa(111,16)|0;h=o;o=0;if(!(h&1)){o=0;wa(42,f|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);k=o;o=0;if(k&1){e=cc()|0;Uz(f);break}vq(e,f);nq(l);e=p+8|0;if((s|0)<=1){f=0;z=34;break a}g=s+-1|0;while(1){Zp(m,b);o=0;Sa(42,p|0,m|0,0,g|0,v|0,0,27636,8,y|0);l=o;o=0;if(l&1){z=27;break}Yd(m);f=c[e>>2]|0;if(f)break;nq(p);g=g-d|0;if((g|0)<=0){f=0;z=34;break a}}if((z|0)==27){e=cc()|0;Yd(m);break a}e=(c[n>>2]|0)+4|0;o=0;h=qa(111,16)|0;m=o;o=0;do if(!(m&1)){k=f+8|0;j=+(g|0);o=0;wa(42,h|0,+(+(c[c[k>>2]>>2]|0)),+j);m=o;o=0;if(m&1){e=cc()|0;Uz(h);break}vq(e,h);e=(c[n>>2]|0)+20|0;o=0;f=qa(111,16)|0;n=o;o=0;if(!(n&1)){o=0;wa(42,f|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);n=o;o=0;if(n&1){e=cc()|0;Uz(f);break}else{vq(e,f);nq(p);f=1;z=34;break a}}else z=28}else z=28;while(0);if((z|0)==28)e=cc()|0;nq(p);break a}else z=14}else z=14;while(0);if((z|0)==14)e=cc()|0;nq(l)}else{f=0;z=34}while(0);b:do if((z|0)==34){o=0;e=qa(111,20)|0;p=o;o=0;if(p&1){e=cc()|0;break}o=0;ma(102,e|0,9);p=o;o=0;if(p&1){z=cc()|0;Uz(e);e=z;break}Hq(y,e);c:do if(f?(q=t+8|0,(s|0)>0):0){f=0;while(1){Zp(r,b);o=0;Sa(42,t|0,r|0,0,f|0,v|0,0,27700,9,y|0);p=o;o=0;if(p&1){z=45;break}Yd(r);e=c[q>>2]|0;if(e)break;nq(t);f=f+d|0;if((f|0)>=(s|0)){z=66;break c}}if((z|0)==45){e=cc()|0;Yd(r);break b}l=(c[A+8>>2]|0)+8|0;g=(c[l>>2]|0)+8|0;o=0;h=qa(111,16)|0;r=o;o=0;do if(!(r&1)){k=e+8|0;j=+(f|0);o=0;wa(42,h|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);r=o;o=0;if(r&1){e=cc()|0;Uz(h);break}vq(g,h);e=(c[l>>2]|0)+24|0;o=0;f=qa(111,16)|0;r=o;o=0;if(!(r&1)){o=0;wa(42,f|0,+(+(c[c[k>>2]>>2]|0)),+j);r=o;o=0;if(r&1){e=cc()|0;Uz(f);break}vq(e,f);nq(t);g=x+8|0;if((s|0)<=1){z=66;break c}f=s+-1|0;while(1){Zp(u,b);o=0;Sa(42,x|0,u|0,0,f|0,v|0,0,27700,9,y|0);t=o;o=0;if(t&1){z=59;break}Yd(u);e=c[g>>2]|0;if(e)break;nq(x);f=f-d|0;if((f|0)<=0){z=66;break c}}if((z|0)==59){e=cc()|0;Yd(u);break b}g=(c[l>>2]|0)+12|0;o=0;h=qa(111,16)|0;d=o;o=0;do if(!(d&1)){k=e+8|0;j=+(f|0);o=0;wa(42,h|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);d=o;o=0;if(d&1){e=cc()|0;Uz(h);break}vq(g,h);e=(c[l>>2]|0)+28|0;o=0;f=qa(111,16)|0;d=o;o=0;if(!(d&1)){o=0;wa(42,f|0,+(+(c[c[k>>2]>>2]|0)),+j);d=o;o=0;if(d&1){e=cc()|0;Uz(f);break}else{vq(e,f);nq(x);oe(a,A);break c}}else z=60}else z=60;while(0);if((z|0)==60)e=cc()|0;nq(x);break b}else z=46}else z=46;while(0);if((z|0)==46)e=cc()|0;nq(t);break b}else z=66;while(0);if((z|0)==66){c[a+4>>2]=0;c[a>>2]=4116;c[a+8>>2]=0}nq(y);pe(A);i=w;return}while(0);nq(y)}while(0);pe(A);bc(e|0)}function Hm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0.0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;x=i;i=i+96|0;B=x+76|0;z=x+64|0;l=x+52|0;g=x+48|0;q=x+36|0;m=x+32|0;t=x+20|0;s=x+16|0;y=x+4|0;u=x;v=jg(c[b>>2]|0)|0;w=(ig(c[b>>2]|0)|0)>>1;ns(B,16);o=0;e=qa(111,20)|0;p=o;o=0;do if(p&1)e=cc()|0;else{o=0;ma(102,e|0,8);p=o;o=0;if(p&1){A=cc()|0;Uz(e);e=A;break}Fq(z,e);p=v+-1|0;e=l+8|0;a:do if((v|0)>1){h=p;while(1){Zp(g,b);o=0;Sa(42,l|0,g|0,w|0,h|0,w|0,1,27668,8,z|0);n=o;o=0;if(n&1){A=13;break}Yd(g);f=c[e>>2]|0;if(f)break;nq(l);h=h-d|0;if((h|0)<=0){f=0;A=33;break a}}if((A|0)==13){e=cc()|0;Yd(g);break}n=(c[B+8>>2]|0)+8|0;e=c[n>>2]|0;o=0;g=qa(111,16)|0;k=o;o=0;do if(!(k&1)){k=f+8|0;j=+(h|0);o=0;wa(42,g|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);h=o;o=0;if(h&1){e=cc()|0;Uz(g);break}vq(e,g);e=(c[n>>2]|0)+16|0;o=0;f=qa(111,16)|0;h=o;o=0;if(!(h&1)){o=0;wa(42,f|0,+(+(c[c[k>>2]>>2]|0)),+j);k=o;o=0;if(k&1){e=cc()|0;Uz(f);break}vq(e,f);nq(l);e=q+8|0;if((v|0)>0)g=0;else{f=0;A=33;break a}while(1){Zp(m,b);o=0;Sa(42,q|0,m|0,w|0,g|0,w|0,1,27668,8,z|0);l=o;o=0;if(l&1){A=26;break}Yd(m);f=c[e>>2]|0;if(f)break;nq(q);g=g+d|0;if((g|0)>=(v|0)){f=0;A=33;break a}}if((A|0)==26){e=cc()|0;Yd(m);break a}e=(c[n>>2]|0)+4|0;o=0;h=qa(111,16)|0;m=o;o=0;do if(!(m&1)){k=f+8|0;j=+(g|0);o=0;wa(42,h|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);m=o;o=0;if(m&1){e=cc()|0;Uz(h);break}vq(e,h);e=(c[n>>2]|0)+20|0;o=0;f=qa(111,16)|0;n=o;o=0;if(!(n&1)){o=0;wa(42,f|0,+(+(c[c[k>>2]>>2]|0)),+j);n=o;o=0;if(n&1){e=cc()|0;Uz(f);break}else{vq(e,f);nq(q);f=1;A=33;break a}}else A=27}else A=27;while(0);if((A|0)==27)e=cc()|0;nq(q);break a}else A=14}else A=14;while(0);if((A|0)==14)e=cc()|0;nq(l)}else{f=0;A=33}while(0);b:do if((A|0)==33){o=0;e=qa(111,20)|0;q=o;o=0;if(q&1){e=cc()|0;break}o=0;ma(102,e|0,9);q=o;o=0;if(q&1){A=cc()|0;Uz(e);e=A;break}Hq(z,e);c:do if(f?(r=t+8|0,(v|0)>1):0){f=p;while(1){Zp(s,b);o=0;Sa(42,t|0,s|0,0,f|0,w|0,0,27736,9,z|0);q=o;o=0;if(q&1){A=44;break}Yd(s);e=c[r>>2]|0;if(e)break;nq(t);f=f-d|0;if((f|0)<=0){A=64;break c}}if((A|0)==44){e=cc()|0;Yd(s);break b}l=(c[B+8>>2]|0)+8|0;g=(c[l>>2]|0)+8|0;o=0;h=qa(111,16)|0;s=o;o=0;do if(!(s&1)){k=e+8|0;j=+(f|0);o=0;wa(42,h|0,+(+(c[c[k>>2]>>2]|0)),+j);s=o;o=0;if(s&1){e=cc()|0;Uz(h);break}vq(g,h);e=(c[l>>2]|0)+24|0;o=0;f=qa(111,16)|0;s=o;o=0;if(!(s&1)){o=0;wa(42,f|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);s=o;o=0;if(s&1){e=cc()|0;Uz(f);break}vq(e,f);nq(t);g=y+8|0;if((v|0)>0)f=0;else{A=64;break c}while(1){Zp(u,b);o=0;Sa(42,y|0,u|0,0,f|0,w|0,0,27736,9,z|0);t=o;o=0;if(t&1){A=57;break}Yd(u);e=c[g>>2]|0;if(e)break;nq(y);f=f+d|0;if((f|0)>=(v|0)){A=64;break c}}if((A|0)==57){e=cc()|0;Yd(u);break b}g=(c[l>>2]|0)+12|0;o=0;h=qa(111,16)|0;d=o;o=0;do if(!(d&1)){k=e+8|0;j=+(f|0);o=0;wa(42,h|0,+(+(c[c[k>>2]>>2]|0)),+j);d=o;o=0;if(d&1){e=cc()|0;Uz(h);break}vq(g,h);e=(c[l>>2]|0)+28|0;o=0;f=qa(111,16)|0;d=o;o=0;if(!(d&1)){o=0;wa(42,f|0,+(+(c[(c[k>>2]|0)+4>>2]|0)),+j);d=o;o=0;if(d&1){e=cc()|0;Uz(f);break}else{vq(e,f);nq(y);oe(a,B);break c}}else A=58}else A=58;while(0);if((A|0)==58)e=cc()|0;nq(y);break b}else A=45}else A=45;while(0);if((A|0)==45)e=cc()|0;nq(t);break b}else A=64;while(0);if((A|0)==64){c[a+4>>2]=0;c[a>>2]=4116;c[a+8>>2]=0}nq(z);pe(B);i=x;return}while(0);nq(z)}while(0);pe(B);bc(e|0)}function Im(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0.0,m=0,n=0;k=i;i=i+16|0;e=k+12|0;f=k+8|0;g=k+4|0;h=k;j=b+8|0;m=c[(c[(c[j>>2]|0)+8>>2]|0)+16>>2]|0;l=+ld[c[(c[m>>2]|0)+12>>2]&63](m);m=c[(c[(c[j>>2]|0)+8>>2]|0)+20>>2]|0;m=+O(+(l-+ld[c[(c[m>>2]|0)+12>>2]&63](m)))<20.0;n=c[(c[(c[j>>2]|0)+8>>2]|0)+24>>2]|0;l=+ld[c[(c[n>>2]|0)+12>>2]&63](n);j=c[(c[(c[j>>2]|0)+8>>2]|0)+28>>2]|0;if(m|+O(+(l-+ld[c[(c[j>>2]|0)+12>>2]&63](j)))<20.0){n=Ob(8)|0;zq(n,49548);c[n>>2]=30552;Hc(n|0,856,146)}Zp(e,a);j=d?1:-1;o=0;Oa(44,e|0,b|0,0,0,8,17,j|0);n=o;o=0;do if(!(n&1)){Yd(e);Zp(f,a);e=d?-1:1;o=0;Oa(44,f|0,b|0,1,0,8,17,e|0);n=o;o=0;if(n&1){e=cc()|0;Yd(f);break}Yd(f);Zp(g,a);o=0;Oa(44,g|0,b|0,2,11,7,18,j|0);n=o;o=0;if(n&1){e=cc()|0;Yd(g);break}Yd(g);Zp(h,a);o=0;Oa(44,h|0,b|0,3,11,7,18,e|0);n=o;o=0;if(n&1){e=cc()|0;Yd(h);break}else{Yd(h);Qm(b,12,4,5,8,10,a);Qm(b,13,4,5,9,11,a);Qm(b,14,6,7,8,10,a);Qm(b,15,6,7,9,11,a);i=k;return}}else{n=cc()|0;Yd(e);e=n}while(0);bc(e|0)}function Jm(a){a=a|0;var b=0.0,d=0.0,e=0,f=0,g=0.0,h=0,j=0,k=0.0,l=0,m=0,n=0,p=0,q=0,r=0;q=i;i=i+32|0;e=q+28|0;f=q+24|0;h=q+20|0;j=q+16|0;l=q+12|0;m=q+8|0;n=q+4|0;p=q;a=a+8|0;tq(e,c[(c[a>>2]|0)+8>>2]|0);tq(f,(c[(c[a>>2]|0)+8>>2]|0)+16|0);o=0;k=+eb(42,e|0,f|0);r=o;o=0;do if(!(r&1)){uq(f);uq(e);tq(h,(c[(c[a>>2]|0)+8>>2]|0)+4|0);tq(j,(c[(c[a>>2]|0)+8>>2]|0)+20|0);o=0;g=+eb(42,h|0,j|0);r=o;o=0;if(r&1){a=cc()|0;uq(j);uq(h);break}uq(j);uq(h);tq(l,(c[(c[a>>2]|0)+8>>2]|0)+24|0);tq(m,(c[(c[a>>2]|0)+8>>2]|0)+8|0);o=0;d=+eb(42,l|0,m|0);r=o;o=0;if(r&1){a=cc()|0;uq(m);uq(l);break}uq(m);uq(l);tq(n,(c[(c[a>>2]|0)+8>>2]|0)+28|0);tq(p,(c[(c[a>>2]|0)+8>>2]|0)+12|0);o=0;b=+eb(42,n|0,p|0);r=o;o=0;if(r&1){a=cc()|0;uq(p);uq(n);break}else{uq(p);uq(n);i=q;return +(((d+b)/36.0+(k+g)/34.0)*.5)}}else{a=cc()|0;uq(f);uq(e)}while(0);bc(a|0);return 0.0}function Km(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;var f=0.0,g=0.0,h=0,j=0,k=0,l=0,m=0;m=i;i=i+16|0;h=m+12|0;j=m+8|0;k=m+4|0;l=m;tq(h,a);tq(j,b);o=0;g=+eb(42,h|0,j|0);b=o;o=0;do if(!(b&1)){uq(j);uq(h);tq(k,c);tq(l,d);o=0;f=+eb(42,k|0,l|0);d=o;o=0;if(d&1){a=cc()|0;uq(l);uq(k);break}else{uq(l);uq(k);l=(~~(f/e+.5)+~~(g/e+.5)>>1)+8|0;i=m;return l-((l|0)%17|0)|0}}else{a=cc()|0;uq(j);uq(h)}while(0);bc(a|0);return 0}function Lm(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;var g=0.0,h=0.0,j=0,k=0,l=0,m=0;m=i;i=i+16|0;a=m+12|0;j=m+8|0;k=m+4|0;l=m;tq(a,b);tq(j,d);o=0;h=+eb(42,a|0,j|0);b=o;o=0;do if(!(b&1)){uq(j);uq(a);tq(k,c);tq(l,e);o=0;g=+eb(42,k|0,l|0);c=o;o=0;if(c&1){a=cc()|0;uq(l);uq(k);break}else{uq(l);uq(k);i=m;return ~~(g/f+.5)+~~(h/f+.5)>>1|0}}else{m=cc()|0;uq(j);uq(a);a=m}while(0);bc(a|0);return 0}function Mm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0.0;l=i;i=i+16|0;m=l+8|0;j=l+4|0;k=l;g=e<<3;f=d<<2;x=+(g|0);w=+(f|0);e=b+8|0;d=c[(c[(c[e>>2]|0)+8>>2]|0)+48>>2]|0;v=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[(c[(c[e>>2]|0)+8>>2]|0)+48>>2]|0;u=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[(c[(c[e>>2]|0)+8>>2]|0)+56>>2]|0;t=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[(c[(c[e>>2]|0)+8>>2]|0)+56>>2]|0;s=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[(c[(c[e>>2]|0)+8>>2]|0)+52>>2]|0;r=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[(c[(c[e>>2]|0)+8>>2]|0)+52>>2]|0;q=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[(c[(c[e>>2]|0)+8>>2]|0)+60>>2]|0;p=+ld[c[(c[d>>2]|0)+8>>2]&63](d);e=c[(c[(c[e>>2]|0)+8>>2]|0)+60>>2]|0;e=bh(0.0,0.0,x,0.0,0.0,w,x,w,v,u,t,s,r,q,p,+ld[c[(c[e>>2]|0)+12>>2]&63](e))|0;c[m>>2]=e;o=0;d=gb(43)|0;b=o;o=0;do if(!(b&1)?(o=0,h=qa(150,c[a>>2]|0)|0,a=o,o=0,!(a&1)):0){c[j>>2]=h;c[k>>2]=0;Zq(k,e);o=0;e=Ya(68,d|0,j|0,g|0,f|0,k|0)|0;a=o;o=0;if(a&1){e=cc()|0;_q(k);Yd(j);break}else{_q(k);Yd(j);_q(m);i=l;return e|0}}else n=5;while(0);if((n|0)==5)e=cc()|0;_q(m);bc(e|0);return 0}
function py(a){a=a|0;Uz(a);return}function qy(a){a=a|0;c[a>>2]=30572;pe(a+12|0);Yd(a+8|0);return}function ry(a){a=a|0;qy(a);Uz(a);return}function sy(a){a=a|0;Aq(a);Uz(a);return}function ty(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;a=b;b=c[d>>2]|0;do{c[b>>2]=0;vq(b,0);b=(c[d>>2]|0)+4|0;c[d>>2]=b;a=a+-1|0}while((a|0)!=0);return}function uy(a){a=a|0;Uq(a);Uz(a);return}function vy(a){a=a|0;c[a>>2]=30520;IC(a+36|0);Uq(a+24|0);ne(a+20|0);Sd(a+8|0);return}function wy(a){a=a|0;vy(a);Uz(a);return}function xy(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;b=b+4|0;f=c[b>>2]|0;do if(f){j=a[e>>0]|0;i=(j&1)==0;j=i?(j&255)>>>1:c[e+4>>2]|0;i=i?e+1|0:c[e+8>>2]|0;while(1){e=f+16|0;b=a[e>>0]|0;g=(b&1)==0;b=g?(b&255)>>>1:c[f+20>>2]|0;e=g?e+1|0:c[f+24>>2]|0;g=b>>>0<j>>>0;k=bC(i,e,g?b:j)|0;h=j>>>0<b>>>0;if((((k|0)==0?(h?-2147483648:0):k)|0)<0){b=c[f>>2]|0;if(!b){b=f;e=5;break}}else{k=bC(e,i,h?j:b)|0;if((((k|0)==0?(g?-2147483648:0):k)|0)>=0){b=f;e=10;break}b=f+4|0;e=c[b>>2]|0;if(!e){e=9;break}else b=e}f=b}if((e|0)==5){c[d>>2]=f;break}else if((e|0)==9){c[d>>2]=f;break}else if((e|0)==10){c[d>>2]=b;b=d;break}}else c[d>>2]=b;while(0);return b|0}function yy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=b;c[d>>2]=e;b=c[a>>2]|0;if(c[b>>2]|0){c[a>>2]=c[b>>2];e=c[d>>2]|0}kw(c[a+4>>2]|0,e);a=a+8|0;c[a>>2]=(c[a>>2]|0)+1;return}function zy(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=Sz(32)|0;c[b>>2]=g;c[b+4>>2]=d+4;f=b+8|0;a[f>>0]=0;d=b+9|0;a[d>>0]=0;g=g+16|0;c[g>>2]=c[e>>2];c[g+4>>2]=c[e+4>>2];c[g+8>>2]=c[e+8>>2];c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;a[f>>0]=1;b=(c[b>>2]|0)+28|0;c[b>>2]=0;Oq(b,0);a[d>>0]=1;return}function Ay(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;a=a+4|0;e=c[a>>2]|0;do if(e){f=c[d>>2]|0;while(1){a=c[e+16>>2]|0;if((f|0)<(a|0)){a=c[e>>2]|0;if(!a){a=e;d=5;break}}else{if((a|0)>=(f|0)){a=e;d=10;break}a=e+4|0;d=c[a>>2]|0;if(!d){d=9;break}else a=d}e=a}if((d|0)==5){c[b>>2]=e;break}else if((d|0)==9){c[b>>2]=e;break}else if((d|0)==10){c[b>>2]=a;a=b;break}}else c[b>>2]=a;while(0);return a|0}function By(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=Sz(24)|0;c[e+16>>2]=c[d>>2];d=e+20|0;c[d>>2]=0;Oq(d,0);c[a>>2]=e;a=a+4|0;c[a>>2]=b+4;c[a+4>>2]=257;return}function Cy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=b;c[d>>2]=e;b=c[a>>2]|0;if(c[b>>2]|0){c[a>>2]=c[b>>2];e=c[d>>2]|0}kw(c[a+4>>2]|0,e);a=a+8|0;c[a>>2]=(c[a>>2]|0)+1;return}function Dy(a){a=a|0;Uz(a);return}function Ey(a,b){a=a|0;b=b|0;var d=0;d=c[b>>2]|0;c[a>>2]=d;c[a+(c[d+-12>>2]|0)>>2]=c[b+12>>2];Fy(a+4|0);return}function Fy(a){a=a|0;c[a>>2]=29868;IC(a+32|0);nD(a);return}function Gy(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=d;f=e-g|0;if(f>>>0>4294967279)Pz(b);if(f>>>0<11){a[b>>0]=f<<1;h=b+1|0}else{i=f+16&-16;h=Sz(i)|0;c[b+8>>2]=h;c[b>>2]=i|1;c[b+4>>2]=f}b=e-g|0;if((d|0)!=(e|0)){f=h;while(1){a[f>>0]=a[d>>0]|0;d=d+1|0;if((d|0)==(e|0))break;else f=f+1|0}}a[h+b>>0]=0;return}function Hy(a){a=a|0;Fy(a);Uz(a);return}function Iy(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0;i=d+44|0;j=c[i>>2]|0;l=d+24|0;m=c[l>>2]|0;if(j>>>0<m>>>0){c[i>>2]=m;j=m}k=j;i=h&24;a:do if(!i){d=b;c[d>>2]=0;c[d+4>>2]=0;d=b+8|0;c[d>>2]=-1;c[d+4>>2]=-1}else{if((g|0)==1&(i|0)==24){d=b;c[d>>2]=0;c[d+4>>2]=0;d=b+8|0;c[d>>2]=-1;c[d+4>>2]=-1;break}b:do switch(g|0){case 0:{i=0;g=0;break}case 1:if(!(h&8)){g=m-(c[d+20>>2]|0)|0;i=g;g=((g|0)<0)<<31>>31;break b}else{g=(c[d+12>>2]|0)-(c[d+8>>2]|0)|0;i=g;g=((g|0)<0)<<31>>31;break b}case 2:{i=d+32|0;if(!(a[i>>0]&1))i=i+1|0;else i=c[d+40>>2]|0;g=j-i|0;i=g;g=((g|0)<0)<<31>>31;break}default:{d=b;c[d>>2]=0;c[d+4>>2]=0;d=b+8|0;c[d>>2]=-1;c[d+4>>2]=-1;break a}}while(0);g=TL(i|0,g|0,e|0,f|0)|0;e=D;if((e|0)>=0){i=d+32|0;if(!(a[i>>0]&1))i=i+1|0;else i=c[d+40>>2]|0;f=j-i|0;j=((f|0)<0)<<31>>31;if(!((j|0)<(e|0)|(j|0)==(e|0)&f>>>0<g>>>0)){i=h&8;if(!((g|0)==0&(e|0)==0)){if((i|0)!=0?(c[d+12>>2]|0)==0:0){d=b;c[d>>2]=0;c[d+4>>2]=0;d=b+8|0;c[d>>2]=-1;c[d+4>>2]=-1;break}if((h&16|0)!=0&(m|0)==0){d=b;c[d>>2]=0;c[d+4>>2]=0;d=b+8|0;c[d>>2]=-1;c[d+4>>2]=-1;break}}if(i){c[d+12>>2]=(c[d+8>>2]|0)+g;c[d+16>>2]=k}if(h&16)c[l>>2]=(c[d+20>>2]|0)+g;d=b;c[d>>2]=0;c[d+4>>2]=0;d=b+8|0;c[d>>2]=g;c[d+4>>2]=e;break}}d=b;c[d>>2]=0;c[d+4>>2]=0;d=b+8|0;c[d>>2]=-1;c[d+4>>2]=-1}while(0);return}function Jy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;d=d+8|0;hd[c[(c[b>>2]|0)+16>>2]&63](a,b,c[d>>2]|0,c[d+4>>2]|0,0,e);return}function Ky(a){a=a|0;var b=0,e=0,f=0,g=0;b=a+44|0;e=c[b>>2]|0;f=c[a+24>>2]|0;if(e>>>0<f>>>0){c[b>>2]=f;e=f}if(c[a+48>>2]&8){g=a+16|0;b=c[g>>2]|0;f=a+12|0;if(b>>>0<e>>>0){f=c[f>>2]|0;c[g>>2]=e;b=e}else f=c[f>>2]|0;if(f>>>0<b>>>0)b=d[f>>0]|0;else b=-1}else b=-1;return b|0}function Ly(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=b+44|0;e=c[f>>2]|0;g=c[b+24>>2]|0;if(e>>>0<g>>>0){c[f>>2]=g;e=g}j=b+8|0;f=c[j>>2]|0;k=b+12|0;h=c[k>>2]|0;i=f;do if(f>>>0<h>>>0){if((d|0)==-1){c[j>>2]=f;c[k>>2]=h+-1;c[b+16>>2]=e;d=0;break}if(!(c[b+48>>2]&16)){g=d&255;f=h+-1|0;if(g<<24>>24!=(a[f>>0]|0)){d=-1;break}}else{g=d&255;f=h+-1|0}c[j>>2]=i;c[k>>2]=f;c[b+16>>2]=e;a[f>>0]=g}else d=-1;while(0);return d|0}function My(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;n=t;a:do if((d|0)!=-1){p=b+12|0;q=b+8|0;r=(c[p>>2]|0)-(c[q>>2]|0)|0;s=b+24|0;e=c[s>>2]|0;m=b+28|0;f=c[m>>2]|0;do if((e|0)==(f|0)){k=b+48|0;if(!(c[k>>2]&16)){e=-1;break a}l=b+20|0;j=c[l>>2]|0;g=e-j|0;h=b+44|0;j=(c[h>>2]|0)-j|0;f=b+32|0;o=0;ma(93,f|0,0);e=o;o=0;if(!(e&1)){if(!(a[f>>0]&1))e=10;else e=(c[f>>2]&-2)+-1|0;o=0;mb(80,f|0,e|0,0);e=o;o=0;if(!(e&1)){e=a[f>>0]|0;if(!(e&1)){f=f+1|0;e=(e&255)>>>1}else{f=c[b+40>>2]|0;e=c[b+36>>2]|0}u=f+e|0;c[l>>2]=f;c[m>>2]=u;l=f+g|0;c[s>>2]=l;e=f+j|0;c[h>>2]=e;f=u;break}}e=cc(0)|0;fc(e|0)|0;$b();e=-1;break a}else{u=b+44|0;k=b+48|0;h=u;l=e;e=c[u>>2]|0}while(0);j=l+1|0;c[n>>2]=j;g=c[(j>>>0<e>>>0?h:n)>>2]|0;c[h>>2]=g;if(c[k>>2]&8){e=b+32|0;if(!(a[e>>0]&1))e=e+1|0;else e=c[b+40>>2]|0;c[q>>2]=e;c[p>>2]=e+r;c[b+16>>2]=g}if((l|0)==(f|0)){e=rd[c[(c[b>>2]|0)+52>>2]&127](b,d&255)|0;break}else{c[s>>2]=j;a[l>>0]=d;e=d&255;break}}else e=0;while(0);i=t;return e|0}function Ny(a){a=a|0;Nq(a);Uz(a);return}function Oy(a){a=a|0;Nq(a+(c[(c[a>>2]|0)+-12>>2]|0)|0);return}function Py(a){a=a|0;Ny(a+(c[(c[a>>2]|0)+-12>>2]|0)|0);return}function Qy(a){a=a|0;nq(a);Uz(a);return}function Ry(a){a=a|0;c[a>>2]=34572;br(a+8|0);return}function Sy(a){a=a|0;c[a>>2]=34572;br(a+8|0);Uz(a);return}function Ty(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Uy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;tq((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function Vy(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;uq(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function Wy(a){a=a|0;c[a>>2]=29756;wq(a+8|0);return}function Xy(a){a=a|0;c[a>>2]=29756;wq(a+8|0);Uz(a);return}function Yy(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;if(!b)e=0;else e=Sz(b<<2)|0;c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function Zy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=c[a>>2]|0;f=a+4|0;d=c[f>>2]|0;g=b+4|0;if((d|0)!=(e|0))do{d=d+-4|0;yq((c[g>>2]|0)+-4|0,d);c[g>>2]=(c[g>>2]|0)+-4}while((d|0)!=(e|0));e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;d=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=d;e=a+8|0;a=b+12|0;f=c[e>>2]|0;c[e>>2]=c[a>>2];c[a>>2]=f;c[b>>2]=c[g>>2];return}function _y(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a+4>>2]|0;e=a+8|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;qq(f);b=c[e>>2]|0}while((b|0)!=(d|0));b=c[a>>2]|0;if(b)Uz(b);return}function $y(a){a=a|0;Aq(a);Uz(a);return}function az(a){a=a|0;Uz(a);return}function bz(a){a=a|0;c[a>>2]=29704;Yd(a+8|0);return}function cz(a){a=a|0;c[a>>2]=29704;Yd(a+8|0);Uz(a);return}function dz(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function ez(a,b,d){a=a|0;b=b|0;d=d|0;a=a+4|0;if((b|0)!=(d|0))do{yq(c[a>>2]|0,b);c[a>>2]=(c[a>>2]|0)+4;b=b+4|0}while((b|0)!=(d|0));return}function fz(a,b){a=a|0;b=b|0;if((b|0)<0)Qz(a);else{b=((b+-1|0)>>>5)+1|0;c[a>>2]=Sz(b<<2)|0;c[a+4>>2]=0;c[a+8>>2]=b;return}}function gz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[a+4>>2]|0;if(!d){e=a;d=c[a>>2]|0}else{g=32-d|0;f=g>>>0>b>>>0?b:g;e=c[a>>2]|0;c[e>>2]=c[e>>2]&~(-1>>>(g-f|0)&-1<<d);d=e+4|0;c[a>>2]=d;e=a;b=b-f|0}a=b>>>5;ZL(d|0,0,a<<2|0)|0;d=a<<5;if((d|0)!=(b|0)){g=(c[e>>2]|0)+(a<<2)|0;c[e>>2]=g;c[g>>2]=c[g>>2]&~(-1>>>(32-b+d|0))}return}function hz(a){a=a|0;c[a>>2]=28808;$p(a+16|0);return}function iz(a){a=a|0;c[a>>2]=28808;$p(a+16|0);Uz(a);return}function jz(a){a=a|0;c[a>>2]=28792;Yd(a+8|0);return}function kz(a){a=a|0;c[a>>2]=28792;Yd(a+8|0);Uz(a);return}function lz(a){a=a|0;qy(a);Uz(a);return}function mz(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;Pt(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function nz(a){a=a|0;IC(a+8|0);return}function oz(a){a=a|0;IC(a+12|0);return}function pz(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;vt(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function qz(a){a=a|0;Ms(a+28|0);Ms(a+24|0);nq(a+12|0);nq(a);return}function rz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;f=a+4|0;c[f>>2]=0;c[a+8>>2]=0;e=d-b>>2;if(e){o=0;ma(203,a|0,e|0);e=o;o=0;if(e&1){f=cc()|0;br(a);bc(f|0)}if((b|0)!=(d|0)){e=c[f>>2]|0;do{c[e>>2]=c[b>>2];e=e+4|0;b=b+4|0}while((b|0)!=(d|0));c[f>>2]=e}}return}function sz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;f=a+4|0;c[f>>2]=0;c[a+8>>2]=0;e=d-b>>4;if(e){o=0;ma(219,a|0,e|0);e=o;o=0;if(e&1){d=cc()|0;tz(a);bc(d|0)}if((b|0)!=(d|0))do{c[c[f>>2]>>2]=b;c[f>>2]=(c[f>>2]|0)+4;b=b+16|0}while((b|0)!=(d|0))}return}function tz(a){a=a|0;var b=0,d=0;d=c[a>>2]|0;if(d){b=a+4|0;a=c[b>>2]|0;if((a|0)!=(d|0)){do a=a+-4|0;while((a|0)!=(d|0));c[b>>2]=a}Uz(d)}return}function uz(a,b){a=a|0;b=b|0;var d=0;if(b>>>0>1073741823)Qz(a);else{d=Sz(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}}function vz(a,b,d){a=a|0;b=b|0;d=d|0;c[a+4>>2]=0;c[a>>2]=34572;rz(a+8|0,b,d);return}function wz(a){a=a|0;ze(a+4|0);return}function xz(a){a=a|0;var b=0,d=0,e=0,f=0;d=c[a>>2]|0;if(d){e=a+4|0;b=c[e>>2]|0;if((b|0)!=(d|0))do{f=b+-4|0;c[e>>2]=f;kr(f);b=c[e>>2]|0}while((b|0)!=(d|0));Uz(c[a>>2]|0)}return}function yz(a){a=a|0;Dz(a);return}function zz(a){a=a|0;Az(a);return}function Az(a){a=a|0;Bz(a,c[a+4>>2]|0);return}function Bz(a,b){a=a|0;b=b|0;if(!b)return;else{Bz(a,c[b>>2]|0);Bz(a,c[b+4>>2]|0);Cz(b+16|0);Uz(b);return}}function Cz(a){a=a|0;Rq(a+12|0);IC(a);return}function Dz(a){a=a|0;Ez(a,c[a+4>>2]|0);return}function Ez(a,b){a=a|0;b=b|0;if(!b)return;else{Ez(a,c[b>>2]|0);Ez(a,c[b+4>>2]|0);Rq(b+20|0);Uz(b);return}}function Fz(a){a=a|0;return hC(c[a+4>>2]|0)|0}function Gz(a){a=a|0;Zb(1920,53383);ac(1936,53388,1,1,0);Kb(1944,53393,1,-128,127);Kb(1976,53398,1,-128,127);Kb(1968,53410,1,0,255);Kb(1984,53424,2,-32768,32767);Kb(1992,53430,2,0,65535);Kb(2e3,53445,4,-2147483648,2147483647);Kb(2008,53449,4,0,-1);Kb(2016,53462,4,-2147483648,2147483647);Kb(2024,53467,4,0,-1);sc(2032,53481,4);sc(2040,53487,8);Tc(1592,53494);Tc(1616,53506);yc(1640,4,53539);Sb(1664,53552);Db(1672,0,53568);Iz(53598);Jz(53635);Kz(53674);Lz(53705);Mz(53745);Nz(53774);Db(1680,4,53812);Db(1688,5,53842);Iz(53881);Jz(53913);Kz(53946);Lz(53979);Mz(54013);Nz(54046);Db(1696,6,54080);Db(1704,7,54111);Db(1712,7,54143);return}function Hz(){Gz(0);return}function Iz(a){a=a|0;Db(1760,0,a|0);return}function Jz(a){a=a|0;Db(1752,1,a|0);return}function Kz(a){a=a|0;Db(1744,2,a|0);return}function Lz(a){a=a|0;Db(1736,3,a|0);return}function Mz(a){a=a|0;Db(1728,4,a|0);return}function Nz(a){a=a|0;Db(1720,5,a|0);return}function Oz(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d>>2]=b;b=c[8923]|0;VB(b,a,d)|0;QB(10,b)|0;Gb()}function Pz(a){a=a|0;Mb(55126,55155,1164,55241)}function Qz(a){a=a|0;Mb(55262,55285,303,55241)}function Rz(){var a=0,b=0;a=i;i=i+16|0;if(!(oc(35436,45)|0)){b=qc(c[8858]|0)|0;i=a;return b|0}else Oz(55371,a);return 0}function Sz(a){a=a|0;var b=0;b=(a|0)==0?1:a;a=yC(b)|0;a:do if(!a){while(1){a=aA()|0;if(!a)break;Bd[a&63]();a=yC(b)|0;if(a)break a}b=Ob(4)|0;c[b>>2]=35200;Hc(b|0,1776,216)}while(0);return a|0}function Tz(a){a=a|0;return Sz(a)|0}function Uz(a){a=a|0;zC(a);return}function Vz(a){a=a|0;Uz(a);return}function Wz(a){a=a|0;c[a>>2]=35200;return}function Xz(a){a=a|0;return}function Yz(a){a=a|0;Uz(a);return}function Zz(a){a=a|0;return 55420}function _z(a){a=a|0;var b=0;b=i;i=i+16|0;o=0;ob(a|0);a=o;o=0;if(!(a&1)){o=0;ma(220,55435,b|0);o=0}a=cc(0)|0;fc(a|0)|0;o=0;ma(220,55475,b+8|0);o=0;a=cc(0)|0;o=0;ob(44);b=o;o=0;if(b&1){b=cc(0)|0;oq(b)}else oq(a)}function $z(){var a=0,b=0,d=0;o=0;a=gb(44)|0;d=o;o=0;if(d&1){d=cc(0)|0;oq(d)}if(((a|0)!=0?(b=c[a>>2]|0,(b|0)!=0):0)?(d=b+48|0,(c[d>>2]&-256|0)==1126902528?(c[d+4>>2]|0)==1129074247:0):0)_z(c[b+12>>2]|0);d=c[8797]|0;c[8797]=d+0;_z(d)}function aA(){var a=0;a=c[8803]|0;c[8803]=a+0;return a|0}function bA(a){a=a|0;return}function cA(a){a=a|0;c[a>>2]=35224;PA(a+4|0);return}function dA(a){a=a|0;cA(a);Uz(a);return}function eA(a){a=a|0;return c[a+4>>2]|0}function fA(a){a=a|0;return}function gA(a){a=a|0;c[a>>2]=35244;return}function hA(a){a=a|0;return}function iA(a){a=a|0;Uz(a);return}function jA(a){a=a|0;return 55525}function kA(a){a=a|0;return}function lA(a){a=a|0;return}function mA(a){a=a|0;return}function nA(a){a=a|0;Uz(a);return}function oA(a){a=a|0;Uz(a);return}function pA(a){a=a|0;Uz(a);return}function qA(a){a=a|0;Uz(a);return}function rA(a){a=a|0;Uz(a);return}function sA(a,b,c){a=a|0;b=b|0;c=c|0;return (a|0)==(b|0)|0}function tA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+64|0;g=h;if((a|0)!=(b|0))if((b|0)!=0?(f=AA(b,1840,1856,0)|0,(f|0)!=0):0){b=g;e=b+56|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(e|0));c[g>>2]=f;c[g+8>>2]=a;c[g+12>>2]=-1;c[g+48>>2]=1;Ed[c[(c[f>>2]|0)+28>>2]&127](f,g,c[d>>2]|0,1);if((c[g+24>>2]|0)==1){c[d>>2]=c[g+16>>2];b=1}else b=0}else b=0;else b=1;i=h;return b|0}function uA(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0;b=d+16|0;g=c[b>>2]|0;do if(g){if((g|0)!=(e|0)){f=d+36|0;c[f>>2]=(c[f>>2]|0)+1;c[d+24>>2]=2;a[d+54>>0]=1;break}b=d+24|0;if((c[b>>2]|0)==2)c[b>>2]=f}else{c[b>>2]=e;c[d+24>>2]=f;c[d+36>>2]=1}while(0);return}function vA(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if((a|0)==(c[b+8>>2]|0))uA(0,b,d,e);return}function wA(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if((a|0)==(c[b+8>>2]|0))uA(0,b,d,e);else{a=c[a+8>>2]|0;Ed[c[(c[a>>2]|0)+28>>2]&127](a,b,d,e)}return}function xA(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[a+4>>2]|0;f=g>>8;if(g&1)f=c[(c[d>>2]|0)+f>>2]|0;a=c[a>>2]|0;Ed[c[(c[a>>2]|0)+28>>2]&127](a,b,d+f|0,(g&2|0)!=0?e:2);return}function yA(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;a:do if((b|0)!=(c[d+8>>2]|0)){h=c[b+12>>2]|0;g=b+16+(h<<3)|0;xA(b+16|0,d,e,f);if((h|0)>1){h=d+54|0;b=b+24|0;do{xA(b,d,e,f);if(a[h>>0]|0)break a;b=b+8|0}while(b>>>0<g>>>0)}}else uA(0,d,e,f);while(0);return}function zA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;k=i;i=i+64|0;j=k;c[d>>2]=c[c[d>>2]>>2];if(!((a|0)==(b|0)|(b|0)==1928))if(((b|0)!=0?(e=AA(b,1840,1888,0)|0,(e|0)!=0):0)?(c[e+8>>2]&~c[a+8>>2]|0)==0:0){b=c[a+12>>2]|0;a=e+12|0;if(!((b|0)==1920?1:(b|0)==(c[a>>2]|0)))if((((b|0)!=0?(g=AA(b,1840,1856,0)|0,(g|0)!=0):0)?(f=c[a>>2]|0,(f|0)!=0):0)?(h=AA(f,1840,1856,0)|0,(h|0)!=0):0){a=j;b=a+56|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(b|0));c[j>>2]=h;c[j+8>>2]=g;c[j+12>>2]=-1;c[j+48>>2]=1;Ed[c[(c[h>>2]|0)+28>>2]&127](h,j,c[d>>2]|0,1);if((c[j+24>>2]|0)==1){c[d>>2]=c[j+16>>2];a=1}else a=0}else a=0;else a=1}else a=0;else a=1;i=k;return a|0}function AA(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+64|0;q=r;p=c[d>>2]|0;o=d+(c[p+-8>>2]|0)|0;p=c[p+-4>>2]|0;c[q>>2]=f;c[q+4>>2]=d;c[q+8>>2]=e;c[q+12>>2]=g;g=q+16|0;d=q+20|0;e=q+24|0;h=q+28|0;j=q+32|0;k=q+40|0;l=(p|0)==(f|0);m=g;n=m+36|0;do{c[m>>2]=0;m=m+4|0}while((m|0)<(n|0));b[g+36>>1]=0;a[g+38>>0]=0;a:do if(l){c[q+48>>2]=1;hd[c[(c[f>>2]|0)+20>>2]&63](f,q,o,o,1,0);g=(c[e>>2]|0)==1?o:0}else{Zc[c[(c[p>>2]|0)+24>>2]&63](p,q,o,1,0);switch(c[q+36>>2]|0){case 0:{g=(c[k>>2]|0)==1&(c[h>>2]|0)==1&(c[j>>2]|0)==1?c[d>>2]|0:0;break a}case 1:break;default:{g=0;break a}}if((c[e>>2]|0)!=1?!((c[k>>2]|0)==0&(c[h>>2]|0)==1&(c[j>>2]|0)==1):0){g=0;break}g=c[g>>2]|0}while(0);i=r;return g|0}function BA(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;a[d+53>>0]=1;do if((c[d+4>>2]|0)==(f|0)){a[d+52>>0]=1;f=d+16|0;b=c[f>>2]|0;if(!b){c[f>>2]=e;c[d+24>>2]=g;c[d+36>>2]=1;if(!((g|0)==1?(c[d+48>>2]|0)==1:0))break;a[d+54>>0]=1;break}if((b|0)!=(e|0)){g=d+36|0;c[g>>2]=(c[g>>2]|0)+1;a[d+54>>0]=1;break}b=d+24|0;f=c[b>>2]|0;if((f|0)==2){c[b>>2]=g;f=g}if((f|0)==1?(c[d+48>>2]|0)==1:0)a[d+54>>0]=1}while(0);return}function CA(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;a:do if((b|0)==(c[d+8>>2]|0)){if((c[d+4>>2]|0)==(e|0)?(h=d+28|0,(c[h>>2]|0)!=1):0)c[h>>2]=f}else{if((b|0)!=(c[d>>2]|0)){q=c[b+12>>2]|0;j=b+16+(q<<3)|0;EA(b+16|0,d,e,f,g);h=b+24|0;if((q|0)<=1)break;i=c[b+8>>2]|0;if((i&2|0)==0?(k=d+36|0,(c[k>>2]|0)!=1):0){if(!(i&1)){i=d+54|0;while(1){if(a[i>>0]|0)break a;if((c[k>>2]|0)==1)break a;EA(h,d,e,f,g);h=h+8|0;if(h>>>0>=j>>>0)break a}}i=d+24|0;b=d+54|0;while(1){if(a[b>>0]|0)break a;if((c[k>>2]|0)==1?(c[i>>2]|0)==1:0)break a;EA(h,d,e,f,g);h=h+8|0;if(h>>>0>=j>>>0)break a}}i=d+54|0;while(1){if(a[i>>0]|0)break a;EA(h,d,e,f,g);h=h+8|0;if(h>>>0>=j>>>0)break a}}if((c[d+16>>2]|0)!=(e|0)?(p=d+20|0,(c[p>>2]|0)!=(e|0)):0){c[d+32>>2]=f;m=d+44|0;if((c[m>>2]|0)==4)break;i=c[b+12>>2]|0;j=b+16+(i<<3)|0;k=d+52|0;f=d+53|0;n=d+54|0;l=b+8|0;o=d+24|0;b:do if((i|0)>0){i=0;h=0;b=b+16|0;while(1){a[k>>0]=0;a[f>>0]=0;DA(b,d,e,e,1,g);if(a[n>>0]|0){q=20;break b}do if(a[f>>0]|0){if(!(a[k>>0]|0))if(!(c[l>>2]&1)){h=1;q=20;break b}else{h=1;break}if((c[o>>2]|0)==1)break b;if(!(c[l>>2]&2))break b;else{i=1;h=1}}while(0);b=b+8|0;if(b>>>0>=j>>>0){q=20;break}}}else{i=0;h=0;q=20}while(0);do if((q|0)==20){if((!i?(c[p>>2]=e,e=d+40|0,c[e>>2]=(c[e>>2]|0)+1,(c[d+36>>2]|0)==1):0)?(c[o>>2]|0)==2:0){a[n>>0]=1;if(h)break}else q=24;if((q|0)==24?h:0)break;c[m>>2]=4;break a}while(0);c[m>>2]=3;break}if((f|0)==1)c[d+32>>2]=1}while(0);return}function DA(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;i=c[a+4>>2]|0;h=i>>8;if(i&1)h=c[(c[e>>2]|0)+h>>2]|0;a=c[a>>2]|0;hd[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e+h|0,(i&2|0)!=0?f:2,g);return}function EA(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=c[a+4>>2]|0;g=h>>8;if(h&1)g=c[(c[d>>2]|0)+g>>2]|0;a=c[a>>2]|0;Zc[c[(c[a>>2]|0)+24>>2]&63](a,b,d+g|0,(h&2|0)!=0?e:2,f);return}function FA(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;a:do if((b|0)==(c[d+8>>2]|0)){if((c[d+4>>2]|0)==(e|0)?(h=d+28|0,(c[h>>2]|0)!=1):0)c[h>>2]=f}else{if((b|0)!=(c[d>>2]|0)){j=c[b+8>>2]|0;Zc[c[(c[j>>2]|0)+24>>2]&63](j,d,e,f,g);break}if((c[d+16>>2]|0)!=(e|0)?(i=d+20|0,(c[i>>2]|0)!=(e|0)):0){c[d+32>>2]=f;f=d+44|0;if((c[f>>2]|0)==4)break;h=d+52|0;a[h>>0]=0;k=d+53|0;a[k>>0]=0;b=c[b+8>>2]|0;hd[c[(c[b>>2]|0)+20>>2]&63](b,d,e,e,1,g);if(a[k>>0]|0){if(!(a[h>>0]|0)){h=1;j=13}}else{h=0;j=13}do if((j|0)==13){c[i>>2]=e;k=d+40|0;c[k>>2]=(c[k>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0){a[d+54>>0]=1;if(h)break}else j=16;if((j|0)==16?h:0)break;c[f>>2]=4;break a}while(0);c[f>>2]=3;break}if((f|0)==1)c[d+32>>2]=1}while(0);return}function GA(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((b|0)==(c[d+8>>2]|0)){if((c[d+4>>2]|0)==(e|0)?(i=d+28|0,(c[i>>2]|0)!=1):0)c[i>>2]=f}else if((b|0)==(c[d>>2]|0)){if((c[d+16>>2]|0)!=(e|0)?(h=d+20|0,(c[h>>2]|0)!=(e|0)):0){c[d+32>>2]=f;c[h>>2]=e;g=d+40|0;c[g>>2]=(c[g>>2]|0)+1;if((c[d+36>>2]|0)==1?(c[d+24>>2]|0)==2:0)a[d+54>>0]=1;c[d+44>>2]=4;break}if((f|0)==1)c[d+32>>2]=1}while(0);return}function HA(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if((b|0)==(c[d+8>>2]|0))BA(0,d,e,f,g);else{m=d+52|0;n=a[m>>0]|0;o=d+53|0;p=a[o>>0]|0;l=c[b+12>>2]|0;i=b+16+(l<<3)|0;a[m>>0]=0;a[o>>0]=0;DA(b+16|0,d,e,f,g,h);a:do if((l|0)>1){j=d+24|0;k=b+8|0;l=d+54|0;b=b+24|0;do{if(a[l>>0]|0)break a;if(!(a[m>>0]|0)){if((a[o>>0]|0)!=0?(c[k>>2]&1|0)==0:0)break a}else{if((c[j>>2]|0)==1)break a;if(!(c[k>>2]&2))break a}a[m>>0]=0;a[o>>0]=0;DA(b,d,e,f,g,h);b=b+8|0}while(b>>>0<i>>>0)}while(0);a[m>>0]=n;a[o>>0]=p}return}function IA(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((a|0)==(c[b+8>>2]|0))BA(0,b,d,e,f);else{a=c[a+8>>2]|0;hd[c[(c[a>>2]|0)+20>>2]&63](a,b,d,e,f,g)}return}function JA(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((a|0)==(c[b+8>>2]|0))BA(0,b,d,e,f);return}function KA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;e=f;c[e>>2]=c[d>>2];a=fd[c[(c[a>>2]|0)+16>>2]&127](a,b,e)|0;if(a)c[d>>2]=c[e>>2];i=f;return a&1|0}function LA(a){a=a|0;if(!a)a=0;else a=(AA(a,1840,1888,0)|0)!=0;return a&1|0}function MA(){var a=0;a=Ob(4)|0;Wz(a);Hc(a|0,1776,216)}function NA(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,j=0;f=i;i=i+48|0;h=f+32|0;d=f+24|0;j=f+16|0;g=f;f=f+36|0;a=Rz()|0;if((a|0)!=0?(e=c[a>>2]|0,(e|0)!=0):0){a=e+48|0;b=c[a>>2]|0;a=c[a+4>>2]|0;if(!((b&-256|0)==1126902528&(a|0)==1129074247)){c[d>>2]=c[8860];Oz(55778,d)}if((b|0)==1126902529&(a|0)==1129074247)a=c[e+44>>2]|0;else a=e+80|0;c[f>>2]=a;e=c[e>>2]|0;a=c[e+4>>2]|0;if(fd[c[(c[1792>>2]|0)+16>>2]&127](1792,e,f)|0){j=c[f>>2]|0;f=c[8860]|0;j=bd[c[(c[j>>2]|0)+8>>2]&255](j)|0;c[g>>2]=f;c[g+4>>2]=a;c[g+8>>2]=j;Oz(55692,g)}else{c[j>>2]=c[8860];c[j+4>>2]=a;Oz(55737,j)}}Oz(55816,h)}function OA(){var a=0;a=i;i=i+16|0;if(!(Qc(35432,342)|0)){i=a;return}else Oz(55539,a)}function PA(a){a=a|0;var b=0,d=0;d=(c[a>>2]|0)+-4|0;b=c[d>>2]|0;c[d>>2]=b+-1;if((b+-1|0)<0)Uz((c[a>>2]|0)+-12|0);return}function QA(a){a=a|0;var b=0;b=i;i=i+16|0;zC(a);if(!(Dc(c[8858]|0,0)|0)){i=b;return}else Oz(55589,b)}function RA(a){a=a|0;Mb(55642,55155,1175,55671)}function SA(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=_B(a,b,c)|0;return a|0}function TA(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=$B(a,b,c)|0;return a|0}function UA(){return 35700}function VA(){return 35704}function WA(){return 35708}function XA(a){a=a|0;return ((a|0)==32|(a+-9|0)>>>0<5)&1|0}function YA(a){a=a|0;if((a+-48|0)>>>0<10)a=1;else a=((a|32)+-97|0)>>>0<6;return a&1|0}function ZA(){var a=0;if(!(c[8861]|0))a=35712;else a=c[(lc()|0)+60>>2]|0;return a|0}function _A(b){b=b|0;var c=0,e=0;c=0;while(1){if((d[55837+c>>0]|0)==(b|0)){e=2;break}c=c+1|0;if((c|0)==87){c=87;b=55925;e=5;break}}if((e|0)==2)if(!c)b=55925;else{b=55925;e=5}if((e|0)==5)while(1){e=b;while(1){b=e+1|0;if(!(a[e>>0]|0))break;else e=b}c=c+-1|0;if(!c)break;else e=5}return b|0}function $A(b,e,f){b=b|0;e=e|0;f=f|0;var g=0.0,h=0,j=0.0,k=0,l=0,m=0.0,n=0,o=0,p=0,q=0.0,r=0.0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0.0;L=i;i=i+512|0;H=L;switch(e|0){case 0:{K=24;J=-149;A=4;break}case 1:{K=53;J=-1074;A=4;break}case 2:{K=53;J=-1074;A=4;break}default:g=0.0}a:do if((A|0)==4){E=b+4|0;C=b+100|0;do{e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0}while((XA(e)|0)!=0);b:do switch(e|0){case 43:case 45:{h=1-(((e|0)==45&1)<<1)|0;e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0;I=h;break b}else{e=cB(b)|0;I=h;break b}}default:I=1}while(0);h=e;e=0;do{if((h|32|0)!=(a[57729+e>>0]|0))break;do if(e>>>0<7){h=c[E>>2]|0;if(h>>>0<(c[C>>2]|0)>>>0){c[E>>2]=h+1;h=d[h>>0]|0;break}else{h=cB(b)|0;break}}while(0);e=e+1|0}while(e>>>0<8);c:do switch(e|0){case 8:break;case 3:{A=23;break}default:{k=(f|0)!=0;if(k&e>>>0>3)if((e|0)==8)break c;else{A=23;break c}d:do if(!e){e=0;do{if((h|32|0)!=(a[59574+e>>0]|0))break d;do if(e>>>0<2){h=c[E>>2]|0;if(h>>>0<(c[C>>2]|0)>>>0){c[E>>2]=h+1;h=d[h>>0]|0;break}else{h=cB(b)|0;break}}while(0);e=e+1|0}while(e>>>0<3)}while(0);switch(e|0){case 3:{e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0;if((e|0)==40)e=1;else{if(!(c[C>>2]|0)){g=s;break a}c[E>>2]=(c[E>>2]|0)+-1;g=s;break a}while(1){h=c[E>>2]|0;if(h>>>0<(c[C>>2]|0)>>>0){c[E>>2]=h+1;h=d[h>>0]|0}else h=cB(b)|0;if(!((h+-48|0)>>>0<10|(h+-65|0)>>>0<26)?!((h|0)==95|(h+-97|0)>>>0<26):0)break;e=e+1|0}if((h|0)==41){g=s;break a}h=(c[C>>2]|0)==0;if(!h)c[E>>2]=(c[E>>2]|0)+-1;if(!k){c[(ZA()|0)>>2]=22;bB(b,0);g=0.0;break a}if(!e){g=s;break a}while(1){e=e+-1|0;if(!h)c[E>>2]=(c[E>>2]|0)+-1;if(!e){g=s;break a}}}case 0:{do if((h|0)==48){e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0;if((e|32|0)!=120){if(!(c[C>>2]|0)){e=48;break}c[E>>2]=(c[E>>2]|0)+-1;e=48;break}e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0;k=0}else{e=cB(b)|0;k=0}e:while(1){switch(e|0){case 46:{A=74;break e}case 48:break;default:{y=0;l=0;x=0;h=0;n=k;o=0;w=0;m=1.0;k=0;g=0.0;break e}}e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0;k=1;continue}else{e=cB(b)|0;k=1;continue}}if((A|0)==74){e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0;if((e|0)==48){k=0;h=0;do{e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0;k=TL(k|0,h|0,-1,-1)|0;h=D}while((e|0)==48);y=0;l=0;x=k;n=1;o=1;w=0;m=1.0;k=0;g=0.0}else{y=0;l=0;x=0;h=0;n=k;o=1;w=0;m=1.0;k=0;g=0.0}}while(1){u=e+-48|0;p=e|32;if(u>>>0>=10){v=(e|0)==46;if(!(v|(p+-97|0)>>>0<6)){p=x;u=y;break}if(v)if(!o){v=l;h=y;u=y;o=1;p=w;j=m}else{p=x;u=y;e=46;break}else A=86}else A=86;if((A|0)==86){A=0;e=(e|0)>57?p+-87|0:u;do if(!((y|0)<0|(y|0)==0&l>>>0<8)){if((y|0)<0|(y|0)==0&l>>>0<14){r=m*.0625;p=w;j=r;g=g+r*+(e|0);break}if((w|0)!=0|(e|0)==0){p=w;j=m}else{p=1;j=m;g=g+m*.5}}else{p=w;j=m;k=e+(k<<4)|0}while(0);l=TL(l|0,y|0,1,0)|0;v=x;u=D;n=1}e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;y=u;x=v;e=d[e>>0]|0;w=p;m=j;continue}else{y=u;x=v;e=cB(b)|0;w=p;m=j;continue}}if(!n){e=(c[C>>2]|0)==0;if(!e)c[E>>2]=(c[E>>2]|0)+-1;if(f){if(!e?(z=c[E>>2]|0,c[E>>2]=z+-1,(o|0)!=0):0)c[E>>2]=z+-2}else bB(b,0);g=+(I|0)*0.0;break a}n=(o|0)==0;o=n?l:p;n=n?u:h;if((u|0)<0|(u|0)==0&l>>>0<8){h=u;do{k=k<<4;l=TL(l|0,h|0,1,0)|0;h=D}while((h|0)<0|(h|0)==0&l>>>0<8)}if((e|32|0)==112){h=nC(b,f)|0;e=D;if((h|0)==0&(e|0)==-2147483648){if(!f){bB(b,0);g=0.0;break a}if(!(c[C>>2]|0)){h=0;e=0}else{c[E>>2]=(c[E>>2]|0)+-1;h=0;e=0}}}else if(!(c[C>>2]|0)){h=0;e=0}else{c[E>>2]=(c[E>>2]|0)+-1;h=0;e=0}H=_L(o|0,n|0,2)|0;H=TL(H|0,D|0,-32,-1)|0;e=TL(H|0,D|0,h|0,e|0)|0;h=D;if(!k){g=+(I|0)*0.0;break a}if((h|0)>0|(h|0)==0&e>>>0>(0-J|0)>>>0){c[(ZA()|0)>>2]=34;g=+(I|0)*1797693134862315708145274.0e284*1797693134862315708145274.0e284;break a}H=J+-106|0;G=((H|0)<0)<<31>>31;if((h|0)<(G|0)|(h|0)==(G|0)&e>>>0<H>>>0){c[(ZA()|0)>>2]=34;g=+(I|0)*2.2250738585072014e-308*2.2250738585072014e-308;break a}if((k|0)>-1){do{G=!(g>=.5);H=G&1|k<<1;k=H^1;g=g+(G?g:g+-1.0);e=TL(e|0,h|0,-1,-1)|0;h=D}while((H|0)>-1);l=e;m=g}else{l=e;m=g}e=UL(32,0,J|0,((J|0)<0)<<31>>31|0)|0;e=TL(l|0,h|0,e|0,D|0)|0;J=D;if(0>(J|0)|0==(J|0)&K>>>0>e>>>0)if((e|0)<0){e=0;A=127}else A=125;else{e=K;A=125}if((A|0)==125)if((e|0)<53)A=127;else{h=e;j=+(I|0);g=0.0}if((A|0)==127){g=+(I|0);h=e;j=g;g=+nB(+sB(1.0,84-e|0),g)}K=(k&1|0)==0&(m!=0.0&(h|0)<32);g=j*(K?0.0:m)+(g+j*+(((K&1)+k|0)>>>0))-g;if(!(g!=0.0))c[(ZA()|0)>>2]=34;g=+tB(g,l);break a}else e=h;while(0);F=J+K|0;G=0-F|0;k=0;f:while(1){switch(e|0){case 46:{A=138;break f}case 48:break;default:{h=0;p=0;o=0;break f}}e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0;k=1;continue}else{e=cB(b)|0;k=1;continue}}if((A|0)==138){e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0;if((e|0)==48){h=0;e=0;while(1){h=TL(h|0,e|0,-1,-1)|0;k=D;e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0;if((e|0)==48)e=k;else{p=k;k=1;o=1;break}}}else{h=0;p=0;o=1}}c[H>>2]=0;n=e+-48|0;l=(e|0)==46;g:do if(l|n>>>0<10){B=H+496|0;y=0;v=0;w=l;A=p;u=k;z=o;k=0;l=0;o=0;h:while(1){do if(w)if(!z){h=y;p=v;z=1}else{p=A;e=y;n=v;break h}else{w=TL(y|0,v|0,1,0)|0;v=D;x=(e|0)!=48;if((l|0)>=125){if(!x){p=A;y=w;break}c[B>>2]=c[B>>2]|1;p=A;y=w;break}p=H+(l<<2)|0;if(k)n=e+-48+((c[p>>2]|0)*10|0)|0;c[p>>2]=n;k=k+1|0;n=(k|0)==9;p=A;y=w;u=1;k=n?0:k;l=(n&1)+l|0;o=x?w:o}while(0);e=c[E>>2]|0;if(e>>>0<(c[C>>2]|0)>>>0){c[E>>2]=e+1;e=d[e>>0]|0}else e=cB(b)|0;n=e+-48|0;w=(e|0)==46;if(!(w|n>>>0<10)){n=z;A=161;break g}else A=p}u=(u|0)!=0;A=169}else{y=0;v=0;u=k;n=o;k=0;l=0;o=0;A=161}while(0);do if((A|0)==161){B=(n|0)==0;h=B?y:h;p=B?v:p;u=(u|0)!=0;if(!((e|32|0)==101&u))if((e|0)>-1){e=y;n=v;A=169;break}else{e=y;n=v;A=171;break}n=nC(b,f)|0;e=D;if((n|0)==0&(e|0)==-2147483648){if(!f){bB(b,0);g=0.0;break}if(!(c[C>>2]|0)){n=0;e=0}else{c[E>>2]=(c[E>>2]|0)+-1;n=0;e=0}}h=TL(n|0,e|0,h|0,p|0)|0;u=y;p=D;n=v;A=173}while(0);if((A|0)==169)if(c[C>>2]|0){c[E>>2]=(c[E>>2]|0)+-1;if(u){u=e;A=173}else A=172}else A=171;if((A|0)==171)if(u){u=e;A=173}else A=172;do if((A|0)==172){c[(ZA()|0)>>2]=22;bB(b,0);g=0.0}else if((A|0)==173){e=c[H>>2]|0;if(!e){g=+(I|0)*0.0;break}if(((n|0)<0|(n|0)==0&u>>>0<10)&((h|0)==(u|0)&(p|0)==(n|0))?K>>>0>30|(e>>>K|0)==0:0){g=+(I|0)*+(e>>>0);break}b=(J|0)/-2|0;E=((b|0)<0)<<31>>31;if((p|0)>(E|0)|(p|0)==(E|0)&h>>>0>b>>>0){c[(ZA()|0)>>2]=34;g=+(I|0)*1797693134862315708145274.0e284*1797693134862315708145274.0e284;break}b=J+-106|0;E=((b|0)<0)<<31>>31;if((p|0)<(E|0)|(p|0)==(E|0)&h>>>0<b>>>0){c[(ZA()|0)>>2]=34;g=+(I|0)*2.2250738585072014e-308*2.2250738585072014e-308;break}if(k){if((k|0)<9){n=H+(l<<2)|0;e=c[n>>2]|0;do{e=e*10|0;k=k+1|0}while((k|0)!=9);c[n>>2]=e}l=l+1|0}if((o|0)<9?(o|0)<=(h|0)&(h|0)<18:0){if((h|0)==9){g=+(I|0)*+((c[H>>2]|0)>>>0);break}if((h|0)<9){g=+(I|0)*+((c[H>>2]|0)>>>0)/+(c[35716+(8-h<<2)>>2]|0);break}b=K+27+($(h,-3)|0)|0;e=c[H>>2]|0;if((b|0)>30|(e>>>b|0)==0){g=+(I|0)*+(e>>>0)*+(c[35716+(h+-10<<2)>>2]|0);break}}e=(h|0)%9|0;if(!e){k=0;e=0}else{u=(h|0)>-1?e:e+9|0;n=c[35716+(8-u<<2)>>2]|0;if(l){o=1e9/(n|0)|0;k=0;e=0;p=0;do{C=H+(p<<2)|0;E=c[C>>2]|0;b=((E>>>0)/(n>>>0)|0)+e|0;c[C>>2]=b;e=$((E>>>0)%(n>>>0)|0,o)|0;b=(p|0)==(k|0)&(b|0)==0;p=p+1|0;h=b?h+-9|0:h;k=b?p&127:k}while((p|0)!=(l|0));if(e){c[H+(l<<2)>>2]=e;l=l+1|0}}else{k=0;l=0}e=0;h=9-u+h|0}i:while(1){v=(h|0)<18;w=(h|0)==18;x=H+(k<<2)|0;do{if(!v){if(!w)break i;if((c[x>>2]|0)>>>0>=9007199){h=18;break i}}n=0;o=l+127|0;while(1){u=o&127;p=H+(u<<2)|0;o=_L(c[p>>2]|0,0,29)|0;o=TL(o|0,D|0,n|0,0)|0;n=D;if(n>>>0>0|(n|0)==0&o>>>0>1e9){b=eM(o|0,n|0,1e9,0)|0;o=fM(o|0,n|0,1e9,0)|0;n=b}else n=0;c[p>>2]=o;b=(u|0)==(k|0);l=(u|0)!=(l+127&127|0)|b?l:(o|0)==0?u:l;if(b)break;else o=u+-1|0}e=e+-29|0}while((n|0)==0);k=k+127&127;if((k|0)==(l|0)){b=l+127&127;l=H+((l+126&127)<<2)|0;c[l>>2]=c[l>>2]|c[H+(b<<2)>>2];l=b}c[H+(k<<2)>>2]=n;h=h+9|0}j:while(1){y=l+1&127;x=H+((l+127&127)<<2)|0;while(1){v=(h|0)==18;w=(h|0)>27?9:1;u=v^1;while(1){o=k&127;p=(o|0)==(l|0);do if(!p){n=c[H+(o<<2)>>2]|0;if(n>>>0<9007199){A=219;break}if(n>>>0>9007199)break;n=k+1&127;if((n|0)==(l|0)){A=219;break}n=c[H+(n<<2)>>2]|0;if(n>>>0<254740991){A=219;break}if(!(n>>>0>254740991|u)){h=o;break j}}else A=219;while(0);if((A|0)==219?(A=0,v):0){A=220;break j}e=e+w|0;if((k|0)==(l|0))k=l;else break}u=(1<<w)+-1|0;v=1e9>>>w;o=k;n=0;p=k;while(1){E=H+(p<<2)|0;b=c[E>>2]|0;k=(b>>>w)+n|0;c[E>>2]=k;n=$(b&u,v)|0;k=(p|0)==(o|0)&(k|0)==0;p=p+1&127;h=k?h+-9|0:h;k=k?p:o;if((p|0)==(l|0))break;else o=k}if(!n)continue;if((y|0)!=(k|0))break;c[x>>2]=c[x>>2]|1}c[H+(l<<2)>>2]=n;l=y}if((A|0)==220)if(p){c[H+(y+-1<<2)>>2]=0;h=l;l=y}else h=o;g=+((c[H+(h<<2)>>2]|0)>>>0);h=k+1&127;if((h|0)==(l|0)){l=k+2&127;c[H+(l+-1<<2)>>2]=0}r=+(I|0);j=r*(g*1.0e9+ +((c[H+(h<<2)>>2]|0)>>>0));v=e+53|0;p=v-J|0;u=(p|0)<(K|0);h=u&1;o=u?((p|0)<0?0:p):K;if((o|0)<53){M=+nB(+sB(1.0,105-o|0),j);m=+pB(j,+sB(1.0,53-o|0));q=M;g=m;m=M+(j-m)}else{q=0.0;g=0.0;m=j}n=k+2&127;do if((n|0)==(l|0))j=g;else{n=c[H+(n<<2)>>2]|0;do if(n>>>0>=5e8){if(n>>>0>5e8){g=r*.75+g;break}if((k+3&127|0)==(l|0)){g=r*.5+g;break}else{g=r*.75+g;break}}else{if((n|0)==0?(k+3&127|0)==(l|0):0)break;g=r*.25+g}while(0);if((53-o|0)<=1){j=g;break}if(+pB(g,1.0)!=0.0){j=g;break}j=g+1.0}while(0);g=m+j-q;do if((v&2147483647|0)>(-2-F|0)){if(+O(+g)>=9007199254740992.0){h=u&(o|0)==(p|0)?0:h;e=e+1|0;g=g*.5}if((e+50|0)<=(G|0)?!(j!=0.0&(h|0)!=0):0)break;c[(ZA()|0)>>2]=34}while(0);g=+tB(g,e)}while(0);break a}default:{if(c[C>>2]|0)c[E>>2]=(c[E>>2]|0)+-1;c[(ZA()|0)>>2]=22;bB(b,0);g=0.0;break a}}}}while(0);if((A|0)==23){h=(c[C>>2]|0)==0;if(!h)c[E>>2]=(c[E>>2]|0)+-1;if((f|0)!=0&e>>>0>3)do{if(!h)c[E>>2]=(c[E>>2]|0)+-1;e=e+-1|0}while(e>>>0>3)}g=+(I|0)*t}while(0);i=L;return +g}function aB(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a:do if(e>>>0>36){c[(ZA()|0)>>2]=22;h=0;g=0}else{r=b+4|0;q=b+100|0;do{i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0}while((XA(i)|0)!=0);b:do switch(i|0){case 43:case 45:{j=((i|0)==45)<<31>>31;i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0;p=j;break b}else{i=cB(b)|0;p=j;break b}}default:p=0}while(0);j=(e|0)==0;do if((e&-17|0)==0&(i|0)==48){i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0;if((i|32|0)!=120)if(j){e=8;n=46;break}else{n=32;break}e=c[r>>2]|0;if(e>>>0<(c[q>>2]|0)>>>0){c[r>>2]=e+1;i=d[e>>0]|0}else i=cB(b)|0;if((d[57738+(i+1)>>0]|0)>15){g=(c[q>>2]|0)==0;if(!g)c[r>>2]=(c[r>>2]|0)+-1;if(!f){bB(b,0);h=0;g=0;break a}if(g){h=0;g=0;break a}c[r>>2]=(c[r>>2]|0)+-1;h=0;g=0;break a}else{e=16;n=46}}else{e=j?10:e;if((d[57738+(i+1)>>0]|0)>>>0<e>>>0)n=32;else{if(c[q>>2]|0)c[r>>2]=(c[r>>2]|0)+-1;bB(b,0);c[(ZA()|0)>>2]=22;h=0;g=0;break a}}while(0);if((n|0)==32)if((e|0)==10){e=i+-48|0;if(e>>>0<10){i=0;while(1){j=(i*10|0)+e|0;e=c[r>>2]|0;if(e>>>0<(c[q>>2]|0)>>>0){c[r>>2]=e+1;i=d[e>>0]|0}else i=cB(b)|0;e=i+-48|0;if(!(e>>>0<10&j>>>0<429496729)){e=j;break}else i=j}j=0}else{e=0;j=0}f=i+-48|0;if(f>>>0<10){while(1){k=dM(e|0,j|0,10,0)|0;l=D;m=((f|0)<0)<<31>>31;o=~m;if(l>>>0>o>>>0|(l|0)==(o|0)&k>>>0>~f>>>0){k=e;break}e=TL(k|0,l|0,f|0,m|0)|0;j=D;i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0;f=i+-48|0;if(!(f>>>0<10&(j>>>0<429496729|(j|0)==429496729&e>>>0<2576980378))){k=e;break}}if(f>>>0>9){i=k;e=p}else{e=10;n=72}}else{i=e;e=p}}else n=46;c:do if((n|0)==46){if(!(e+-1&e)){n=a[57995+((e*23|0)>>>5&7)>>0]|0;j=a[57738+(i+1)>>0]|0;f=j&255;if(f>>>0<e>>>0){i=0;while(1){k=f|i<<n;i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0;j=a[57738+(i+1)>>0]|0;f=j&255;if(!(k>>>0<134217728&f>>>0<e>>>0))break;else i=k}f=0}else{f=0;k=0}l=WL(-1,-1,n|0)|0;m=D;if((j&255)>>>0>=e>>>0|(f>>>0>m>>>0|(f|0)==(m|0)&k>>>0>l>>>0)){j=f;n=72;break}else i=f;while(1){k=_L(k|0,i|0,n|0)|0;f=D;k=j&255|k;i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0;j=a[57738+(i+1)>>0]|0;if((j&255)>>>0>=e>>>0|(f>>>0>m>>>0|(f|0)==(m|0)&k>>>0>l>>>0)){j=f;n=72;break c}else i=f}}j=a[57738+(i+1)>>0]|0;f=j&255;if(f>>>0<e>>>0){i=0;while(1){k=f+($(i,e)|0)|0;i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0;j=a[57738+(i+1)>>0]|0;f=j&255;if(!(k>>>0<119304647&f>>>0<e>>>0))break;else i=k}f=0}else{k=0;f=0}if((j&255)>>>0<e>>>0){n=eM(-1,-1,e|0,0)|0;o=D;m=f;while(1){if(m>>>0>o>>>0|(m|0)==(o|0)&k>>>0>n>>>0){j=m;n=72;break c}f=dM(k|0,m|0,e|0,0)|0;l=D;j=j&255;if(l>>>0>4294967295|(l|0)==-1&f>>>0>~j>>>0){j=m;n=72;break c}k=TL(j|0,0,f|0,l|0)|0;f=D;i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0;j=a[57738+(i+1)>>0]|0;if((j&255)>>>0>=e>>>0){j=f;n=72;break}else m=f}}else{j=f;n=72}}while(0);if((n|0)==72)if((d[57738+(i+1)>>0]|0)>>>0<e>>>0){do{i=c[r>>2]|0;if(i>>>0<(c[q>>2]|0)>>>0){c[r>>2]=i+1;i=d[i>>0]|0}else i=cB(b)|0}while((d[57738+(i+1)>>0]|0)>>>0<e>>>0);c[(ZA()|0)>>2]=34;j=h;i=g;e=(g&1|0)==0&0==0?p:0}else{i=k;e=p}if(c[q>>2]|0)c[r>>2]=(c[r>>2]|0)+-1;if(!(j>>>0<h>>>0|(j|0)==(h|0)&i>>>0<g>>>0)){if(!((g&1|0)!=0|0!=0|(e|0)!=0)){c[(ZA()|0)>>2]=34;g=TL(g|0,h|0,-1,-1)|0;h=D;break}if(j>>>0>h>>>0|(j|0)==(h|0)&i>>>0>g>>>0){c[(ZA()|0)>>2]=34;break}}g=((e|0)<0)<<31>>31;g=UL(i^e|0,j^g|0,e|0,g|0)|0;h=D}while(0);D=h;return g|0}function bB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;c[a+104>>2]=b;d=c[a+4>>2]|0;e=c[a+8>>2]|0;f=e-d|0;c[a+108>>2]=f;if((b|0)!=0&(f|0)>(b|0))c[a+100>>2]=d+b;else c[a+100>>2]=e;return}function cB(b){b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=b+104|0;i=c[f>>2]|0;if((i|0)!=0?(c[b+108>>2]|0)>=(i|0):0)j=4;else{e=OB(b)|0;if((e|0)>=0){h=c[f>>2]|0;f=b+8|0;if(h){g=c[f>>2]|0;i=c[b+4>>2]|0;f=g;h=h-(c[b+108>>2]|0)+-1|0;if((f-i|0)>(h|0))c[b+100>>2]=i+h;else j=9}else{g=c[f>>2]|0;f=g;j=9}if((j|0)==9)c[b+100>>2]=f;f=c[b+4>>2]|0;if(g){b=b+108|0;c[b>>2]=g+1-f+(c[b>>2]|0)}f=f+-1|0;if((d[f>>0]|0|0)!=(e|0))a[f>>0]=e}else j=4}if((j|0)==4){c[b+100>>2]=0;e=-1}return e|0}function dB(a){a=a|0;if(a>>>0>4294963200){c[(ZA()|0)>>2]=0-a;a=-1}return a|0}function eB(a){a=a|0;return 0}function fB(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return d|0}function gB(a,b){a=a|0;b=b|0;return -1|0}function hB(a){a=a|0;zC(a);return}function iB(a,b){a=a|0;b=b|0;return (a+-48|0)>>>0<10|0}function jB(a,b){a=a|0;b=b|0;return YA(a)|0}function kB(b,c,d){b=b|0;c=c|0;d=d|0;if(((a[c>>0]|0)!=0?(fC(c,61244)|0)!=0:0)?(fC(c,58004)|0)!=0:0)d=0;else if(!d)d=AC(1,4)|0;return d|0}function lB(a){a=a|0;var b=0,d=0;b=(lc()|0)+176|0;d=c[b>>2]|0;if(a)c[b>>2]=a;return d|0}function mB(a,b){a=+a;b=+b;var d=0,e=0;h[k>>3]=a;e=c[k>>2]|0;d=c[k+4>>2]|0;h[k>>3]=b;d=c[k+4>>2]&-2147483648|d&2147483647;c[k>>2]=e;c[k+4>>2]=d;return +(+h[k>>3])}function nB(a,b){a=+a;b=+b;return +(+mB(a,b))}function oB(a,b){a=+a;b=+b;var d=0,e=0,f=0,g=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;h[k>>3]=a;d=c[k>>2]|0;m=c[k+4>>2]|0;h[k>>3]=b;n=c[k>>2]|0;o=c[k+4>>2]|0;e=WL(d|0,m|0,52)|0;e=e&2047;j=WL(n|0,o|0,52)|0;j=j&2047;p=m&-2147483648;i=_L(n|0,o|0,1)|0;l=D;a:do if(!((i|0)==0&(l|0)==0)?(g=o&2147483647,!(g>>>0>2146435072|(g|0)==2146435072&n>>>0>0|(e|0)==2047)):0){f=_L(d|0,m|0,1)|0;g=D;if(!(g>>>0>l>>>0|(g|0)==(l|0)&f>>>0>i>>>0))return +((f|0)==(i|0)&(g|0)==(l|0)?a*0.0:a);if(!e){e=_L(d|0,m|0,12)|0;f=D;if((f|0)>-1|(f|0)==-1&e>>>0>4294967295){g=e;e=0;do{e=e+-1|0;g=_L(g|0,f|0,1)|0;f=D}while((f|0)>-1|(f|0)==-1&g>>>0>4294967295)}else e=0;d=_L(d|0,m|0,1-e|0)|0;f=D}else f=m&1048575|1048576;if(!j){g=_L(n|0,o|0,12)|0;i=D;if((i|0)>-1|(i|0)==-1&g>>>0>4294967295){j=0;do{j=j+-1|0;g=_L(g|0,i|0,1)|0;i=D}while((i|0)>-1|(i|0)==-1&g>>>0>4294967295)}else j=0;n=_L(n|0,o|0,1-j|0)|0;m=D}else m=o&1048575|1048576;l=UL(d|0,f|0,n|0,m|0)|0;i=D;g=(i|0)>-1|(i|0)==-1&l>>>0>4294967295;b:do if((e|0)>(j|0)){while(1){if(g)if((d|0)==(n|0)&(f|0)==(m|0))break;else{d=l;f=i}d=_L(d|0,f|0,1)|0;f=D;e=e+-1|0;l=UL(d|0,f|0,n|0,m|0)|0;i=D;g=(i|0)>-1|(i|0)==-1&l>>>0>4294967295;if((e|0)<=(j|0))break b}b=a*0.0;break a}while(0);if(g)if((d|0)==(n|0)&(f|0)==(m|0)){b=a*0.0;break}else{f=i;d=l}if(f>>>0<1048576|(f|0)==1048576&d>>>0<0)do{d=_L(d|0,f|0,1)|0;f=D;e=e+-1|0}while(f>>>0<1048576|(f|0)==1048576&d>>>0<0);if((e|0)>0){o=TL(d|0,f|0,0,-1048576)|0;d=D;e=_L(e|0,0,52)|0;d=d|D;e=o|e}else{e=WL(d|0,f|0,1-e|0)|0;d=D}c[k>>2]=e;c[k+4>>2]=d|p;b=+h[k>>3]}else q=3;while(0);if((q|0)==3){b=a*b;b=b/b}return +b}function pB(a,b){a=+a;b=+b;return +(+oB(a,b))}function qB(a,b){a=+a;b=b|0;var d=0,e=0,f=0;h[k>>3]=a;d=c[k>>2]|0;e=c[k+4>>2]|0;f=WL(d|0,e|0,52)|0;f=f&2047;switch(f|0){case 0:{if(a!=0.0){a=+qB(a*18446744073709551616.0,b);d=(c[b>>2]|0)+-64|0}else d=0;c[b>>2]=d;break}case 2047:break;default:{c[b>>2]=f+-1022;c[k>>2]=d;c[k+4>>2]=e&-2146435073|1071644672;a=+h[k>>3]}}return +a}function rB(a,b){a=+a;b=b|0;return +(+qB(a,b))}function sB(a,b){a=+a;b=b|0;var d=0;if((b|0)>1023){a=a*8988465674311579538646525.0e283;d=b+-1023|0;if((d|0)>1023){d=b+-2046|0;d=(d|0)>1023?1023:d;a=a*8988465674311579538646525.0e283}}else if((b|0)<-1022){a=a*2.2250738585072014e-308;d=b+1022|0;if((d|0)<-1022){d=b+2044|0;d=(d|0)<-1022?-1022:d;a=a*2.2250738585072014e-308}}else d=b;d=_L(d+1023|0,0,52)|0;b=D;c[k>>2]=d;c[k+4>>2]=b;return +(a*+h[k>>3])}function tB(a,b){a=+a;b=b|0;return +(+sB(a,b))}function uB(a,b,c){a=a|0;b=b|0;c=c|0;return vB(0,a,b,(c|0)!=0?c:35748)|0}function vB(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;g=l;j=(f|0)==0?35752:f;f=c[j>>2]|0;a:do if(!d)if(!f)f=0;else k=15;else{h=(b|0)==0?g:b;if(!e)f=-2;else{if(!f){f=a[d>>0]|0;g=f&255;if(f<<24>>24>-1){c[h>>2]=g;f=f<<24>>24!=0&1;break}f=g+-194|0;if(f>>>0>50){k=15;break}f=c[35488+(f<<2)>>2]|0;g=e+-1|0;if(g){d=d+1|0;k=9}}else{g=e;k=9}b:do if((k|0)==9){b=a[d>>0]|0;m=(b&255)>>>3;if((m+-16|m+(f>>26))>>>0>7){k=15;break a}while(1){d=d+1|0;f=(b&255)+-128|f<<6;g=g+-1|0;if((f|0)>=0)break;if(!g)break b;b=a[d>>0]|0;if((b&-64)<<24>>24!=-128){k=15;break a}}c[j>>2]=0;c[h>>2]=f;f=e-g|0;break a}while(0);c[j>>2]=f;f=-2}}while(0);if((k|0)==15){c[j>>2]=0;c[(ZA()|0)>>2]=84;f=-1}i=l;return f|0}function wB(a){a=a|0;if(!a)a=1;else a=(c[a>>2]|0)==0;return a&1|0}function xB(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;o=i;i=i+1040|0;l=o+8|0;n=o;k=c[b>>2]|0;c[n>>2]=k;m=(a|0)!=0;e=m?e:256;a=m?a:l;g=k;a:do if((e|0)!=0&(k|0)!=0){j=e;k=g;e=0;while(1){g=d>>>2;h=g>>>0>=j>>>0;if(!(d>>>0>131|h)){g=k;break a}g=h?j:g;d=d-g|0;g=yB(a,n,g,f)|0;if((g|0)==-1){e=d;break}p=(a|0)==(l|0);k=p?0:g;h=j-k|0;a=p?a:a+(g<<2)|0;e=g+e|0;g=c[n>>2]|0;if((j|0)!=(k|0)&(g|0)!=0){j=h;k=g}else{j=h;break a}}d=e;j=0;g=c[n>>2]|0;e=-1}else{j=e;e=0}while(0);b:do if((g|0)!=0?(j|0)!=0&(d|0)!=0:0){h=g;g=a;while(1){a=vB(g,h,d,f)|0;if((a+2|0)>>>0<3)break;h=(c[n>>2]|0)+a|0;c[n>>2]=h;j=j+-1|0;e=e+1|0;if(!((j|0)!=0&(d|0)!=(a|0)))break b;else{d=d-a|0;g=g+4|0}}switch(a|0){case -1:{e=-1;break b}case 0:{c[n>>2]=0;break b}default:{c[f>>2]=0;break b}}}while(0);if(m)c[b>>2]=c[n>>2];i=o;return e|0}function yB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;h=c[e>>2]|0;if((g|0)!=0?(i=c[g>>2]|0,(i|0)!=0):0)if(!b){g=f;j=h;m=16}else{c[g>>2]=0;l=b;g=f;k=i;m=37}else if(!b){g=f;m=7}else{i=b;g=f;m=6}a:while(1)if((m|0)==6){if(!g){m=26;break}else b=i;while(1){i=a[h>>0]|0;do if(((i&255)+-1|0)>>>0<127?g>>>0>4&(h&3|0)==0:0){j=h;while(1){h=c[j>>2]|0;if((h+-16843009|h)&-2139062144){i=h;h=j;m=32;break}c[b>>2]=h&255;c[b+4>>2]=d[j+1>>0];c[b+8>>2]=d[j+2>>0];h=j+4|0;i=b+16|0;c[b+12>>2]=d[j+3>>0];g=g+-4|0;if(g>>>0>4){b=i;j=h}else{m=31;break}}if((m|0)==31){b=i;i=a[h>>0]|0;break}else if((m|0)==32){i=i&255;break}}while(0);i=i&255;if((i+-1|0)>>>0>=127)break;h=h+1|0;c[b>>2]=i;g=g+-1|0;if(!g){m=26;break a}else b=b+4|0}i=i+-194|0;if(i>>>0>50){m=48;break}l=b;k=c[35488+(i<<2)>>2]|0;h=h+1|0;m=37;continue}else if((m|0)==7){i=a[h>>0]|0;if(((i&255)+-1|0)>>>0<127?(h&3|0)==0:0){i=c[h>>2]|0;if(!((i+-16843009|i)&-2139062144))do{h=h+4|0;g=g+-4|0;i=c[h>>2]|0}while(((i+-16843009|i)&-2139062144|0)==0);i=i&255}i=i&255;if((i+-1|0)>>>0<127){g=g+-1|0;h=h+1|0;m=7;continue}i=i+-194|0;if(i>>>0>50){m=48;break}i=c[35488+(i<<2)>>2]|0;j=h+1|0;m=16;continue}else if((m|0)==16){m=(d[j>>0]|0)>>>3;if((m+-16|m+(i>>26))>>>0>7){m=17;break}h=j+1|0;if(i&33554432){if((a[h>>0]&-64)<<24>>24!=-128){m=20;break}h=j+2|0;if(i&524288){if((a[h>>0]&-64)<<24>>24!=-128){m=23;break}h=j+3|0}}g=g+-1|0;m=7;continue}else if((m|0)==37){i=d[h>>0]|0;m=i>>>3;if((m+-16|m+(k>>26))>>>0>7){m=38;break}j=h+1|0;b=i+-128|k<<6;if((b|0)<0){i=d[j>>0]|0;if((i&192|0)!=128){m=41;break}j=h+2|0;b=i+-128|b<<6;if((b|0)<0){i=d[j>>0]|0;if((i&192|0)!=128){m=44;break}b=i+-128|b<<6;h=h+3|0}else h=j}else h=j;c[l>>2]=b;i=l+4|0;g=g+-1|0;m=6;continue}if((m|0)==17){h=j+-1|0;m=47}else if((m|0)==20){h=j+-1|0;m=47}else if((m|0)==23){h=j+-1|0;m=47}else if((m|0)==26)c[e>>2]=h;else if((m|0)==38){b=l;i=k;h=h+-1|0;m=47}else if((m|0)==41){g=l;f=h+-1|0;m=52}else if((m|0)==44){g=l;f=h+-1|0;m=52}if((m|0)==47)if(!i)m=48;else{g=b;f=h;m=52}if((m|0)==48)if(!(a[h>>0]|0)){if(b){c[b>>2]=0;c[e>>2]=0}f=f-g|0}else{g=b;f=h;m=52}if((m|0)==52){c[(ZA()|0)>>2]=84;if(!g)f=-1;else{c[e>>2]=f;f=-1}}return f|0}function zB(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;k=i;i=i+16|0;g=k;a:do if(!e)g=0;else{do if(f){j=(b|0)==0?g:b;g=a[e>>0]|0;b=g&255;if(g<<24>>24>-1){c[j>>2]=b;g=g<<24>>24!=0&1;break a}g=b+-194|0;if(g>>>0<=50){b=e+1|0;h=c[35488+(g<<2)>>2]|0;if(f>>>0<4?(h&-2147483648>>>((f*6|0)+-6|0)|0)!=0:0)break;g=d[b>>0]|0;f=g>>>3;if((f+-16|f+(h>>26))>>>0<=7){g=g+-128|h<<6;if((g|0)>=0){c[j>>2]=g;g=2;break a}b=d[e+2>>0]|0;if((b&192|0)==128){b=b+-128|g<<6;if((b|0)>=0){c[j>>2]=b;g=3;break a}g=d[e+3>>0]|0;if((g&192|0)==128){c[j>>2]=g+-128|b<<6;g=4;break a}}}}}while(0);c[(ZA()|0)>>2]=84;g=-1}while(0);i=k;return g|0}function AB(b,d,e){b=b|0;d=d|0;e=e|0;do if(b){if(d>>>0<128){a[b>>0]=d;b=1;break}if(d>>>0<2048){a[b>>0]=d>>>6|192;a[b+1>>0]=d&63|128;b=2;break}if(d>>>0<55296|(d&-8192|0)==57344){a[b>>0]=d>>>12|224;a[b+1>>0]=d>>>6&63|128;a[b+2>>0]=d&63|128;b=3;break}if((d+-65536|0)>>>0<1048576){a[b>>0]=d>>>18|240;a[b+1>>0]=d>>>12&63|128;a[b+2>>0]=d>>>6&63|128;a[b+3>>0]=d&63|128;b=4;break}else{c[(ZA()|0)>>2]=84;b=-1;break}}else b=1;while(0);return b|0}function BB(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+272|0;j=m+8|0;l=m;h=c[b>>2]|0;c[l>>2]=h;k=(a|0)!=0;f=k?e:256;e=k?a:j;a=h;a:do if((f|0)!=0&(h|0)!=0){h=f;g=a;f=0;while(1){a=d>>>0>=h>>>0;if(!(a|d>>>0>32)){a=g;break a}a=a?h:d;d=d-a|0;a=CB(e,l,a,0)|0;if((a|0)==-1){f=d;break}o=(e|0)==(j|0);n=o?0:a;g=h-n|0;e=o?e:e+a|0;f=a+f|0;a=c[l>>2]|0;if((h|0)!=(n|0)&(a|0)!=0){h=g;g=a}else{h=g;break a}}d=f;h=0;a=c[l>>2]|0;f=-1}else{h=f;f=0}while(0);b:do if((a|0)!=0?(h|0)!=0&(d|0)!=0:0){g=a;a=e;while(1){e=AB(a,c[g>>2]|0,0)|0;if((e+1|0)>>>0<2)break;g=(c[l>>2]|0)+4|0;c[l>>2]=g;d=d+-1|0;f=f+1|0;if(!((h|0)!=(e|0)&(d|0)!=0))break b;else{h=h-e|0;a=a+e|0}}if(!e)c[l>>2]=0;else f=-1}while(0);if(k)c[b>>2]=c[l>>2];i=m;return f|0}function CB(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;k=i;i=i+16|0;j=k;a:do if(!b){b=c[d>>2]|0;f=c[b>>2]|0;if(!f)e=0;else{e=0;do{if(f>>>0>127){f=AB(j,f,0)|0;if((f|0)==-1){e=-1;break a}}else f=1;e=f+e|0;b=b+4|0;f=c[b>>2]|0}while((f|0)!=0)}}else{b:do if(e>>>0>3){f=e;g=c[d>>2]|0;while(1){h=c[g>>2]|0;if((h+-1|0)>>>0>126){if(!h)break;h=AB(b,h,0)|0;if((h|0)==-1){e=-1;break a}b=b+h|0;f=f-h|0}else{a[b>>0]=h;b=b+1|0;f=f+-1|0;g=c[d>>2]|0}g=g+4|0;c[d>>2]=g;if(f>>>0<=3)break b}a[b>>0]=0;c[d>>2]=0;e=e-f|0;break a}else f=e;while(0);if(f){g=c[d>>2]|0;while(1){h=c[g>>2]|0;if((h+-1|0)>>>0>126){if(!h){g=19;break}h=AB(j,h,0)|0;if((h|0)==-1){e=-1;break a}if(f>>>0<h>>>0){g=22;break}AB(b,c[g>>2]|0,0)|0;b=b+h|0;f=f-h|0}else{a[b>>0]=h;b=b+1|0;f=f+-1|0;g=c[d>>2]|0}g=g+4|0;c[d>>2]=g;if(!f)break a}if((g|0)==19){a[b>>0]=0;c[d>>2]=0;e=e-f|0;break}else if((g|0)==22){e=e-f|0;break}}}while(0);i=k;return e|0}function DB(a,b){a=a|0;b=b|0;if(!a)a=0;else a=AB(a,b,0)|0;return a|0}function EB(a){a=a|0;return 0}function FB(a){a=a|0;return}function GB(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;m=i;i=i+16|0;l=m;k=e&255;a[l>>0]=k;g=b+16|0;h=c[g>>2]|0;if(!h)if(!(NB(b)|0)){h=c[g>>2]|0;j=4}else f=-1;else j=4;do if((j|0)==4){g=b+20|0;j=c[g>>2]|0;if(j>>>0<h>>>0?(f=e&255,(f|0)!=(a[b+75>>0]|0)):0){c[g>>2]=j+1;a[j>>0]=k;break}if((fd[c[b+36>>2]&127](b,l,1)|0)==1)f=d[l>>0]|0;else f=-1}while(0);i=m;return f|0}function HB(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=c[a+60>>2];a=dB(Lc(6,d|0)|0)|0;i=b;return a|0}function IB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+32|0;g=f;e=f+20|0;c[g>>2]=c[a+60>>2];c[g+4>>2]=0;c[g+8>>2]=b;c[g+12>>2]=e;c[g+16>>2]=d;if((dB(Sc(140,g|0)|0)|0)<0){c[e>>2]=-1;a=-1}else a=c[e>>2]|0;i=f;return a|0}function JB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+48|0;n=q+16|0;m=q;e=q+32|0;o=a+28|0;f=c[o>>2]|0;c[e>>2]=f;p=a+20|0;f=(c[p>>2]|0)-f|0;c[e+4>>2]=f;c[e+8>>2]=b;c[e+12>>2]=d;k=a+60|0;l=a+44|0;b=2;f=f+d|0;while(1){if(!(c[8861]|0)){c[n>>2]=c[k>>2];c[n+4>>2]=e;c[n+8>>2]=b;h=dB(Vc(146,n|0)|0)|0}else{Mc(343,a|0);c[m>>2]=c[k>>2];c[m+4>>2]=e;c[m+8>>2]=b;h=dB(Vc(146,m|0)|0)|0;xb(0)}if((f|0)==(h|0)){f=6;break}if((h|0)<0){f=8;break}f=f-h|0;g=c[e+4>>2]|0;if(h>>>0<=g>>>0)if((b|0)==2){c[o>>2]=(c[o>>2]|0)+h;j=g;b=2}else j=g;else{j=c[l>>2]|0;c[o>>2]=j;c[p>>2]=j;j=c[e+12>>2]|0;h=h-g|0;e=e+8|0;b=b+-1|0}c[e>>2]=(c[e>>2]|0)+h;c[e+4>>2]=j-h}if((f|0)==6){n=c[l>>2]|0;c[a+16>>2]=n+(c[a+48>>2]|0);a=n;c[o>>2]=a;c[p>>2]=a}else if((f|0)==8){c[a+16>>2]=0;c[o>>2]=0;c[p>>2]=0;c[a>>2]=c[a>>2]|32;if((b|0)==2)d=0;else d=d-(c[e+4>>2]|0)|0}i=q;return d|0}function KB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+80|0;f=g;c[b+36>>2]=74;if((c[b>>2]&64|0)==0?(c[f>>2]=c[b+60>>2],c[f+4>>2]=21505,c[f+8>>2]=g+12,(wc(54,f|0)|0)!=0):0)a[b+75>>0]=-1;f=JB(b,d,e)|0;i=g;return f|0}function LB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=a+84|0;g=c[e>>2]|0;h=d+256|0;f=aC(g,0,h)|0;f=(f|0)==0?h:f-g|0;d=f>>>0<d>>>0?f:d;XL(b|0,g|0,d|0)|0;c[a+4>>2]=g+d;b=g+f|0;c[a+8>>2]=b;c[e>>2]=b;return d|0}function MB(b){b=b|0;var d=0,e=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;d=b+20|0;e=b+44|0;if((c[d>>2]|0)>>>0>(c[e>>2]|0)>>>0)fd[c[b+36>>2]&127](b,0,0)|0;c[b+16>>2]=0;c[b+28>>2]=0;c[d>>2]=0;d=c[b>>2]|0;if(d&20)if(!(d&4))d=-1;else{c[b>>2]=d|32;d=-1}else{d=c[e>>2]|0;c[b+8>>2]=d;c[b+4>>2]=d;d=0}return d|0}function NB(b){b=b|0;var d=0,e=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;d=c[b>>2]|0;if(!(d&8)){c[b+8>>2]=0;c[b+4>>2]=0;d=c[b+44>>2]|0;c[b+28>>2]=d;c[b+20>>2]=d;c[b+16>>2]=d+(c[b+48>>2]|0);d=0}else{c[b>>2]=d|32;d=-1}return d|0}function OB(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;if((c[a+8>>2]|0)==0?(MB(a)|0)!=0:0)b=-1;else if((fd[c[a+32>>2]&127](a,b,1)|0)==1)b=d[b>>0]|0;else b=-1;i=e;return b|0}function PB(a){a=a|0;var b=0,d=0;do if(a){if((c[a+76>>2]|0)<=-1){b=pC(a)|0;break}d=(EB(a)|0)==0;b=pC(a)|0;if(!d)FB(a)}else{if(!(c[8924]|0))b=0;else b=PB(c[8924]|0)|0;zb(35472);a=c[8867]|0;if(a)do{if((c[a+76>>2]|0)>-1)d=EB(a)|0;else d=0;if((c[a+20>>2]|0)>>>0>(c[a+28>>2]|0)>>>0)b=pC(a)|0|b;if(d)FB(a);a=c[a+56>>2]|0}while((a|0)!=0);xc(35472)}while(0);return b|0}function QB(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;if((c[d+76>>2]|0)>=0?(EB(d)|0)!=0:0){if((a[d+75>>0]|0)!=(b|0)?(f=d+20|0,g=c[f>>2]|0,g>>>0<(c[d+16>>2]|0)>>>0):0){c[f>>2]=g+1;a[g>>0]=b;e=b&255}else e=GB(d,b)|0;FB(d)}else i=3;do if((i|0)==3){if((a[d+75>>0]|0)!=(b|0)?(h=d+20|0,e=c[h>>2]|0,e>>>0<(c[d+16>>2]|0)>>>0):0){c[h>>2]=e+1;a[e>>0]=b;e=b&255;break}e=GB(d,b)|0}while(0);return e|0}function RB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=e+16|0;g=c[f>>2]|0;if(!g)if(!(NB(e)|0)){g=c[f>>2]|0;h=4}else f=0;else h=4;a:do if((h|0)==4){i=e+20|0;h=c[i>>2]|0;if((g-h|0)>>>0<d>>>0){f=fd[c[e+36>>2]&127](e,b,d)|0;break}b:do if((a[e+75>>0]|0)>-1){f=d;while(1){if(!f){g=h;f=0;break b}g=f+-1|0;if((a[b+g>>0]|0)==10)break;else f=g}if((fd[c[e+36>>2]&127](e,b,f)|0)>>>0<f>>>0)break a;d=d-f|0;b=b+f|0;g=c[i>>2]|0}else{g=h;f=0}while(0);XL(g|0,b|0,d|0)|0;c[i>>2]=(c[i>>2]|0)+d;f=f+d|0}while(0);return f|0}function SB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;c[g>>2]=e;e=XB(a,b,d,g)|0;i=f;return e|0}function TB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[f>>2]=d;d=YB(a,b,f)|0;i=e;return d|0}function UB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=i;i=i+16|0;e=j;f=yC(240)|0;do if(f){c[e>>2]=c[d>>2];e=XB(f,240,b,e)|0;if(e>>>0<240){b=BC(f,e+1|0)|0;c[a>>2]=(b|0)!=0?b:f;break}zC(f);if((e|0)>=0?(h=e+1|0,g=yC(h)|0,c[a>>2]=g,(g|0)!=0):0)e=XB(g,h,b,d)|0;else e=-1}else e=-1;while(0);i=j;return e|0}function VB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+224|0;o=s+80|0;r=s+96|0;q=s;p=s+136|0;f=r;g=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[o>>2]=c[e>>2];if((qC(0,d,o,q,r)|0)<0)e=-1;else{if((c[b+76>>2]|0)>-1)m=EB(b)|0;else m=0;e=c[b>>2]|0;n=e&32;if((a[b+74>>0]|0)<1)c[b>>2]=e&-33;e=b+48|0;if(!(c[e>>2]|0)){g=b+44|0;h=c[g>>2]|0;c[g>>2]=p;j=b+28|0;c[j>>2]=p;k=b+20|0;c[k>>2]=p;c[e>>2]=80;l=b+16|0;c[l>>2]=p+80;f=qC(b,d,o,q,r)|0;if(h){fd[c[b+36>>2]&127](b,0,0)|0;f=(c[k>>2]|0)==0?-1:f;c[g>>2]=h;c[e>>2]=0;c[l>>2]=0;c[j>>2]=0;c[k>>2]=0}}else f=qC(b,d,o,q,r)|0;e=c[b>>2]|0;c[b>>2]=e|n;if(m)FB(b);e=(e&32|0)==0?f:-1}i=s;return e|0}function WB(e,f,j){e=e|0;f=f|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;P=i;i=i+304|0;H=P+16|0;J=P+8|0;I=P+33|0;K=P;y=P+32|0;if((c[e+76>>2]|0)>-1)O=EB(e)|0;else O=0;k=a[f>>0]|0;a:do if(k<<24>>24){L=e+4|0;M=e+100|0;G=e+108|0;z=e+8|0;A=I+10|0;B=I+33|0;C=J+4|0;E=I+46|0;F=I+94|0;m=k;k=0;n=f;s=0;l=0;f=0;b:while(1){c:do if(!(XA(m&255)|0)){m=(a[n>>0]|0)==37;d:do if(m){q=n+1|0;o=a[q>>0]|0;e:do switch(o<<24>>24){case 37:break d;case 42:{x=0;o=n+2|0;break}default:{o=(o&255)+-48|0;if(o>>>0<10?(a[n+2>>0]|0)==36:0){c[H>>2]=c[j>>2];while(1){x=(c[H>>2]|0)+(4-1)&~(4-1);m=c[x>>2]|0;c[H>>2]=x+4;if(o>>>0>1)o=o+-1|0;else break}x=m;o=n+3|0;break e}o=(c[j>>2]|0)+(4-1)&~(4-1);x=c[o>>2]|0;c[j>>2]=o+4;o=q}}while(0);m=a[o>>0]|0;n=m&255;if((n+-48|0)>>>0<10){m=0;while(1){q=(m*10|0)+-48+n|0;o=o+1|0;m=a[o>>0]|0;n=m&255;if((n+-48|0)>>>0>=10)break;else m=q}}else q=0;if(m<<24>>24==109){o=o+1|0;r=a[o>>0]|0;m=(x|0)!=0&1;l=0;f=0}else{r=m;m=0}n=o+1|0;switch(r&255|0){case 104:{w=(a[n>>0]|0)==104;n=w?o+2|0:n;o=w?-2:-1;break}case 108:{w=(a[n>>0]|0)==108;n=w?o+2|0:n;o=w?3:1;break}case 106:{o=3;break}case 116:case 122:{o=1;break}case 76:{o=2;break}case 110:case 112:case 67:case 83:case 91:case 99:case 115:case 88:case 71:case 70:case 69:case 65:case 103:case 102:case 101:case 97:case 120:case 117:case 111:case 105:case 100:{n=o;o=0;break}default:{N=152;break b}}r=d[n>>0]|0;t=(r&47|0)==3;r=t?r|32:r;t=t?1:o;switch(r|0){case 99:{w=s;v=(q|0)<1?1:q;break}case 91:{w=s;v=q;break}case 110:{if(!x){o=s;break c}switch(t|0){case -2:{a[x>>0]=s;o=s;break c}case -1:{b[x>>1]=s;o=s;break c}case 0:{c[x>>2]=s;o=s;break c}case 1:{c[x>>2]=s;o=s;break c}case 3:{o=x;c[o>>2]=s;c[o+4>>2]=((s|0)<0)<<31>>31;o=s;break c}default:{o=s;break c}}}default:{bB(e,0);do{o=c[L>>2]|0;if(o>>>0<(c[M>>2]|0)>>>0){c[L>>2]=o+1;o=d[o>>0]|0}else o=cB(e)|0}while((XA(o)|0)!=0);o=c[L>>2]|0;if(c[M>>2]|0){o=o+-1|0;c[L>>2]=o}w=(c[G>>2]|0)+s+o-(c[z>>2]|0)|0;v=q}}bB(e,v);o=c[L>>2]|0;q=c[M>>2]|0;if(o>>>0<q>>>0)c[L>>2]=o+1;else{if((cB(e)|0)<0){N=152;break b}q=c[M>>2]|0}if(q)c[L>>2]=(c[L>>2]|0)+-1;f:do switch(r|0){case 91:case 99:case 115:{u=(r|0)==99;g:do if((r&239|0)==99){ZL(I|0,-1,257)|0;a[I>>0]=0;if((r|0)==115){a[B>>0]=0;a[A>>0]=0;a[A+1>>0]=0;a[A+2>>0]=0;a[A+3>>0]=0;a[A+4>>0]=0}}else{Q=n+1|0;s=(a[Q>>0]|0)==94;o=s&1;r=s?Q:n;n=s?n+2|0:Q;ZL(I|0,s&1|0,257)|0;a[I>>0]=0;switch(a[n>>0]|0){case 45:{s=(o^1)&255;a[E>>0]=s;n=r+2|0;break}case 93:{s=(o^1)&255;a[F>>0]=s;n=r+2|0;break}default:s=(o^1)&255}while(1){o=a[n>>0]|0;h:do switch(o<<24>>24){case 0:{N=152;break b}case 93:break g;case 45:{r=n+1|0;o=a[r>>0]|0;switch(o<<24>>24){case 93:case 0:{o=45;break h}default:{}}n=a[n+-1>>0]|0;if((n&255)<(o&255)){n=n&255;do{n=n+1|0;a[I+n>>0]=s;o=a[r>>0]|0}while((n|0)<(o&255|0));n=r}else n=r;break}default:{}}while(0);a[I+((o&255)+1)>>0]=s;n=n+1|0}}while(0);r=u?v+1|0:31;s=(t|0)==1;t=(m|0)!=0;i:do if(s){if(t){f=yC(r<<2)|0;if(!f){l=0;N=152;break b}}else f=x;c[J>>2]=0;c[C>>2]=0;l=0;j:while(1){q=(f|0)==0;do{k:while(1){o=c[L>>2]|0;if(o>>>0<(c[M>>2]|0)>>>0){c[L>>2]=o+1;o=d[o>>0]|0}else o=cB(e)|0;if(!(a[I+(o+1)>>0]|0))break j;a[y>>0]=o;switch(vB(K,y,1,J)|0){case -1:{l=0;N=152;break b}case -2:break;default:break k}}if(!q){c[f+(l<<2)>>2]=c[K>>2];l=l+1|0}}while(!(t&(l|0)==(r|0)));l=r<<1|1;o=BC(f,l<<2)|0;if(!o){l=0;N=152;break b}Q=r;r=l;f=o;l=Q}if(!(wB(J)|0)){l=0;N=152;break b}else{q=l;l=0}}else{if(t){l=yC(r)|0;if(!l){l=0;f=0;N=152;break b}else o=0;while(1){do{f=c[L>>2]|0;if(f>>>0<(c[M>>2]|0)>>>0){c[L>>2]=f+1;f=d[f>>0]|0}else f=cB(e)|0;if(!(a[I+(f+1)>>0]|0)){q=o;f=0;break i}a[l+o>>0]=f;o=o+1|0}while((o|0)!=(r|0));f=r<<1|1;o=BC(l,f)|0;if(!o){f=0;N=152;break b}else{Q=r;r=f;l=o;o=Q}}}if(!x){l=q;while(1){f=c[L>>2]|0;if(f>>>0<l>>>0){c[L>>2]=f+1;f=d[f>>0]|0}else f=cB(e)|0;if(!(a[I+(f+1)>>0]|0)){q=0;l=0;f=0;break i}l=c[M>>2]|0}}else{l=0;while(1){f=c[L>>2]|0;if(f>>>0<q>>>0){c[L>>2]=f+1;f=d[f>>0]|0}else f=cB(e)|0;if(!(a[I+(f+1)>>0]|0)){q=l;l=x;f=0;break i}a[x+l>>0]=f;q=c[M>>2]|0;l=l+1|0}}}while(0);o=c[L>>2]|0;if(c[M>>2]|0){o=o+-1|0;c[L>>2]=o}o=o-(c[z>>2]|0)+(c[G>>2]|0)|0;if(!o)break b;if(!((o|0)==(v|0)|u^1))break b;do if(t)if(s){c[x>>2]=f;break}else{c[x>>2]=l;break}while(0);if(!u){if(f)c[f+(q<<2)>>2]=0;if(!l){l=0;break f}a[l+q>>0]=0}break}case 120:case 88:case 112:{o=16;N=134;break}case 111:{o=8;N=134;break}case 117:case 100:{o=10;N=134;break}case 105:{o=0;N=134;break}case 71:case 103:case 70:case 102:case 69:case 101:case 65:case 97:{p=+$A(e,t,0);if((c[G>>2]|0)==((c[z>>2]|0)-(c[L>>2]|0)|0))break b;if(x)switch(t|0){case 0:{g[x>>2]=p;break f}case 1:{h[x>>3]=p;break f}case 2:{h[x>>3]=p;break f}default:break f}break}default:{}}while(0);l:do if((N|0)==134){N=0;o=aB(e,o,0,-1,-1)|0;if((c[G>>2]|0)==((c[z>>2]|0)-(c[L>>2]|0)|0))break b;if((x|0)!=0&(r|0)==112){c[x>>2]=o;break}if(x)switch(t|0){case -2:{a[x>>0]=o;break l}case -1:{b[x>>1]=o;break l}case 0:{c[x>>2]=o;break l}case 1:{c[x>>2]=o;break l}case 3:{Q=x;c[Q>>2]=o;c[Q+4>>2]=D;break l}default:break l}}while(0);k=((x|0)!=0&1)+k|0;o=(c[G>>2]|0)+w+(c[L>>2]|0)-(c[z>>2]|0)|0;break c}while(0);n=n+(m&1)|0;bB(e,0);m=c[L>>2]|0;if(m>>>0<(c[M>>2]|0)>>>0){c[L>>2]=m+1;m=d[m>>0]|0}else m=cB(e)|0;if((m|0)!=(d[n>>0]|0)){N=21;break b}o=s+1|0}else{while(1){m=n+1|0;if(!(XA(d[m>>0]|0)|0))break;else n=m}bB(e,0);do{m=c[L>>2]|0;if(m>>>0<(c[M>>2]|0)>>>0){c[L>>2]=m+1;m=d[m>>0]|0}else m=cB(e)|0}while((XA(m)|0)!=0);m=c[L>>2]|0;if(c[M>>2]|0){m=m+-1|0;c[L>>2]=m}o=(c[G>>2]|0)+s+m-(c[z>>2]|0)|0}while(0);n=n+1|0;m=a[n>>0]|0;if(!(m<<24>>24))break a;else s=o}if((N|0)==21){if(c[M>>2]|0)c[L>>2]=(c[L>>2]|0)+-1;if((k|0)!=0|(m|0)>-1)break;else{k=0;N=153}}else if((N|0)==152)if(!k){k=m;N=153}if((N|0)==153){m=k;k=-1}if(m){zC(l);zC(f)}}else k=0;while(0);if(O)FB(e);i=P;return k|0}function XB(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;n=i;i=i+128|0;g=n+112|0;m=n;h=m;j=35756;k=h+112|0;do{c[h>>2]=c[j>>2];h=h+4|0;j=j+4|0}while((h|0)<(k|0));if((d+-1|0)>>>0>2147483646)if(!d){d=1;l=4}else{c[(ZA()|0)>>2]=75;d=-1}else{g=b;l=4}if((l|0)==4){l=-2-g|0;l=d>>>0>l>>>0?l:d;c[m+48>>2]=l;b=m+20|0;c[b>>2]=g;c[m+44>>2]=g;d=g+l|0;g=m+16|0;c[g>>2]=d;c[m+28>>2]=d;d=VB(m,e,f)|0;if(l){e=c[b>>2]|0;a[e+(((e|0)==(c[g>>2]|0))<<31>>31)>>0]=0}}i=n;return d|0}function YB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+112|0;e=g;f=e;h=f+112|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(h|0));c[e+32>>2]=120;c[e+44>>2]=a;c[e+76>>2]=-1;c[e+84>>2]=a;h=WB(e,b,d)|0;i=g;return h|0}function ZB(a,b,c){a=a|0;b=b|0;c=c|0;return +(+sC(a,b,2))}function _B(a,b,c){a=a|0;b=b|0;c=c|0;a=tC(a,b,c,-1,-1)|0;return a|0}function $B(a,b,c){a=a|0;b=b|0;c=c|0;a=tC(a,b,c,0,-2147483648)|0;return a|0}function aC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;h=d&255;f=(e|0)!=0;a:do if(f&(b&3|0)!=0){g=d&255;while(1){if((a[b>>0]|0)==g<<24>>24){i=6;break a}b=b+1|0;e=e+-1|0;f=(e|0)!=0;if(!(f&(b&3|0)!=0)){i=5;break}}}else i=5;while(0);if((i|0)==5)if(f)i=6;else e=0;b:do if((i|0)==6){g=d&255;if((a[b>>0]|0)!=g<<24>>24){f=$(h,16843009)|0;c:do if(e>>>0>3)while(1){h=c[b>>2]^f;if((h&-2139062144^-2139062144)&h+-16843009)break;b=b+4|0;e=e+-4|0;if(e>>>0<=3){i=11;break c}}else i=11;while(0);if((i|0)==11)if(!e){e=0;break}while(1){if((a[b>>0]|0)==g<<24>>24)break b;b=b+1|0;e=e+-1|0;if(!e){e=0;break}}}}while(0);return ((e|0)!=0?b:0)|0}function bC(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0;a:do if(!d)d=0;else{f=d;e=b;while(1){b=a[e>>0]|0;d=a[c>>0]|0;if(b<<24>>24!=d<<24>>24)break;f=f+-1|0;if(!f){d=0;break a}else{e=e+1|0;c=c+1|0}}d=(b&255)-(d&255)|0}while(0);return d|0}function cC(b,d){b=b|0;d=d|0;var e=0,f=0;e=d;a:do if(!((e^b)&3)){if(e&3)do{e=a[d>>0]|0;a[b>>0]=e;if(!(e<<24>>24))break a;d=d+1|0;b=b+1|0}while((d&3|0)!=0);e=c[d>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009)){f=b;while(1){d=d+4|0;b=f+4|0;c[f>>2]=e;e=c[d>>2]|0;if((e&-2139062144^-2139062144)&e+-16843009)break;else f=b}}f=8}else f=8;while(0);if((f|0)==8){f=a[d>>0]|0;a[b>>0]=f;if(f<<24>>24)do{d=d+1|0;b=b+1|0;f=a[d>>0]|0;a[b>>0]=f}while(f<<24>>24!=0)}return b|0}function dC(b,c){b=b|0;c=c|0;b=eC(b,c)|0;return ((a[b>>0]|0)==(c&255)<<24>>24?b:0)|0}function eC(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=d&255;a:do if(!f)b=b+(iC(b)|0)|0;else{if(b&3){e=d&255;do{g=a[b>>0]|0;if(g<<24>>24==0?1:g<<24>>24==e<<24>>24)break a;b=b+1|0}while((b&3|0)!=0)}f=$(f,16843009)|0;e=c[b>>2]|0;b:do if(!((e&-2139062144^-2139062144)&e+-16843009))do{g=e^f;if((g&-2139062144^-2139062144)&g+-16843009)break b;b=b+4|0;e=c[b>>2]|0}while(((e&-2139062144^-2139062144)&e+-16843009|0)==0);while(0);e=d&255;while(1){g=a[b>>0]|0;if(g<<24>>24==0?1:g<<24>>24==e<<24>>24)break;else b=b+1|0}}while(0);return b|0}function fC(b,c){b=b|0;c=c|0;var d=0,e=0;e=a[b>>0]|0;d=a[c>>0]|0;if(e<<24>>24==0?1:e<<24>>24!=d<<24>>24)c=e;else{do{b=b+1|0;c=c+1|0;e=a[b>>0]|0;d=a[c>>0]|0}while(!(e<<24>>24==0?1:e<<24>>24!=d<<24>>24));c=e}return (c&255)-(d&255)|0}function gC(a,b){a=a|0;b=b|0;cC(a,b)|0;return a|0}function hC(a){a=a|0;var b=0,c=0;c=(iC(a)|0)+1|0;b=yC(c)|0;if(!b)b=0;else XL(b|0,a|0,c|0)|0;return b|0}function iC(b){b=b|0;var d=0,e=0,f=0;f=b;a:do if(!(f&3))e=4;else{d=b;b=f;while(1){if(!(a[d>>0]|0))break a;d=d+1|0;b=d;if(!(b&3)){b=d;e=4;break}}}while(0);if((e|0)==4){while(1){d=c[b>>2]|0;if(!((d&-2139062144^-2139062144)&d+-16843009))b=b+4|0;else break}if((d&255)<<24>>24)do b=b+1|0;while((a[b>>0]|0)!=0)}return b-f|0}function jC(a){a=a|0;var b=0;b=a;while(1)if(!(c[b>>2]|0))break;else b=b+4|0;return b-a>>2|0}function kC(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(d){e=a;while(1){d=d+-1|0;c[e>>2]=c[b>>2];if(!d)break;else{b=b+4|0;e=e+4|0}}}return a|0}function lC(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=(d|0)==0;if(a-b>>2>>>0<d>>>0){if(!e)do{d=d+-1|0;c[a+(d<<2)>>2]=c[b+(d<<2)>>2]}while((d|0)!=0)}else if(!e){e=b;b=a;while(1){d=d+-1|0;c[b>>2]=c[e>>2];if(!d)break;else{e=e+4|0;b=b+4|0}}}return a|0}function mC(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(d){e=a;while(1){d=d+-1|0;c[e>>2]=b;if(!d)break;else e=e+4|0}}return a|0}function nC(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=a+4|0;e=c[i>>2]|0;j=a+100|0;if(e>>>0<(c[j>>2]|0)>>>0){c[i>>2]=e+1;e=d[e>>0]|0}else e=cB(a)|0;switch(e|0){case 43:case 45:{f=(e|0)==45&1;e=c[i>>2]|0;if(e>>>0<(c[j>>2]|0)>>>0){c[i>>2]=e+1;e=d[e>>0]|0}else e=cB(a)|0;if((b|0)!=0&(e+-48|0)>>>0>9?(c[j>>2]|0)!=0:0){c[i>>2]=(c[i>>2]|0)+-1;h=f}else h=f;break}default:h=0}if((e+-48|0)>>>0>9)if(!(c[j>>2]|0)){f=-2147483648;e=0}else{c[i>>2]=(c[i>>2]|0)+-1;f=-2147483648;e=0}else{f=0;do{f=e+-48+(f*10|0)|0;e=c[i>>2]|0;if(e>>>0<(c[j>>2]|0)>>>0){c[i>>2]=e+1;e=d[e>>0]|0}else e=cB(a)|0}while((e+-48|0)>>>0<10&(f|0)<214748364);b=((f|0)<0)<<31>>31;if((e+-48|0)>>>0<10){do{b=dM(f|0,b|0,10,0)|0;f=D;e=TL(e|0,((e|0)<0)<<31>>31|0,-48,-1)|0;f=TL(e|0,D|0,b|0,f|0)|0;b=D;e=c[i>>2]|0;if(e>>>0<(c[j>>2]|0)>>>0){c[i>>2]=e+1;e=d[e>>0]|0}else e=cB(a)|0}while((e+-48|0)>>>0<10&((b|0)<21474836|(b|0)==21474836&f>>>0<2061584302));g=f}else g=f;if((e+-48|0)>>>0<10)do{e=c[i>>2]|0;if(e>>>0<(c[j>>2]|0)>>>0){c[i>>2]=e+1;e=d[e>>0]|0}else e=cB(a)|0}while((e+-48|0)>>>0<10);if(c[j>>2]|0)c[i>>2]=(c[i>>2]|0)+-1;a=(h|0)!=0;e=UL(0,0,g|0,b|0)|0;f=a?D:b;e=a?e:g}D=f;return e|0}function oC(a){a=a|0;if(!(c[a+68>>2]|0))FB(a);return}function pC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a+20|0;g=a+28|0;if((c[b>>2]|0)>>>0>(c[g>>2]|0)>>>0?(fd[c[a+36>>2]&127](a,0,0)|0,(c[b>>2]|0)==0):0)b=-1;else{h=a+4|0;d=c[h>>2]|0;e=a+8|0;f=c[e>>2]|0;if(d>>>0<f>>>0)fd[c[a+40>>2]&127](a,d-f|0,1)|0;c[a+16>>2]=0;c[g>>2]=0;c[b>>2]=0;c[e>>2]=0;c[h>>2]=0;b=0}return b|0}function qC(e,f,g,j,l){e=e|0;f=f|0;g=g|0;j=j|0;l=l|0;var m=0,n=0,o=0,p=0,q=0.0,r=0,s=0,t=0,u=0,v=0.0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0;ha=i;i=i+624|0;ca=ha+24|0;ea=ha+16|0;da=ha+588|0;Y=ha+576|0;ba=ha;V=ha+536|0;ga=ha+8|0;fa=ha+528|0;M=(e|0)!=0;N=V+40|0;U=N;V=V+39|0;W=ga+4|0;X=Y+12|0;Y=Y+11|0;Z=da;_=X;aa=_-Z|0;O=-2-Z|0;P=_+2|0;Q=ca+288|0;R=da+9|0;S=R;T=da+8|0;m=0;w=f;n=0;f=0;a:while(1){do if((m|0)>-1)if((n|0)>(2147483647-m|0)){c[(ZA()|0)>>2]=75;m=-1;break}else{m=n+m|0;break}while(0);n=a[w>>0]|0;if(!(n<<24>>24)){L=245;break}else o=w;b:while(1){switch(n<<24>>24){case 37:{n=o;L=9;break b}case 0:{n=o;break b}default:{}}K=o+1|0;n=a[K>>0]|0;o=K}c:do if((L|0)==9)while(1){L=0;if((a[n+1>>0]|0)!=37)break c;o=o+1|0;n=n+2|0;if((a[n>>0]|0)==37)L=9;else break}while(0);y=o-w|0;if(M?(c[e>>2]&32|0)==0:0)RB(w,y,e)|0;if((o|0)!=(w|0)){w=n;n=y;continue}r=n+1|0;o=a[r>>0]|0;p=(o<<24>>24)+-48|0;if(p>>>0<10){K=(a[n+2>>0]|0)==36;r=K?n+3|0:r;o=a[r>>0]|0;u=K?p:-1;f=K?1:f}else u=-1;n=o<<24>>24;d:do if((n&-32|0)==32){p=0;while(1){if(!(1<<n+-32&75913)){s=p;n=r;break d}p=1<<(o<<24>>24)+-32|p;r=r+1|0;o=a[r>>0]|0;n=o<<24>>24;if((n&-32|0)!=32){s=p;n=r;break}}}else{s=0;n=r}while(0);do if(o<<24>>24==42){p=n+1|0;o=(a[p>>0]|0)+-48|0;if(o>>>0<10?(a[n+2>>0]|0)==36:0){c[l+(o<<2)>>2]=10;f=1;n=n+3|0;o=c[j+((a[p>>0]|0)+-48<<3)>>2]|0}else{if(f){m=-1;break a}if(!M){x=s;n=p;f=0;K=0;break}f=(c[g>>2]|0)+(4-1)&~(4-1);o=c[f>>2]|0;c[g>>2]=f+4;f=0;n=p}if((o|0)<0){x=s|8192;K=0-o|0}else{x=s;K=o}}else{p=(o<<24>>24)+-48|0;if(p>>>0<10){o=0;do{o=(o*10|0)+p|0;n=n+1|0;p=(a[n>>0]|0)+-48|0}while(p>>>0<10);if((o|0)<0){m=-1;break a}else{x=s;K=o}}else{x=s;K=0}}while(0);e:do if((a[n>>0]|0)==46){p=n+1|0;o=a[p>>0]|0;if(o<<24>>24!=42){r=(o<<24>>24)+-48|0;if(r>>>0<10){n=p;o=0}else{n=p;r=0;break}while(1){o=(o*10|0)+r|0;n=n+1|0;r=(a[n>>0]|0)+-48|0;if(r>>>0>=10){r=o;break e}}}p=n+2|0;o=(a[p>>0]|0)+-48|0;if(o>>>0<10?(a[n+3>>0]|0)==36:0){c[l+(o<<2)>>2]=10;n=n+4|0;r=c[j+((a[p>>0]|0)+-48<<3)>>2]|0;break}if(f){m=-1;break a}if(M){n=(c[g>>2]|0)+(4-1)&~(4-1);r=c[n>>2]|0;c[g>>2]=n+4;n=p}else{n=p;r=0}}else r=-1;while(0);t=0;while(1){o=(a[n>>0]|0)+-65|0;if(o>>>0>57){m=-1;break a}p=n+1|0;o=a[59050+(t*58|0)+o>>0]|0;s=o&255;if((s+-1|0)>>>0<8){n=p;t=s}else{J=p;break}}if(!(o<<24>>24)){m=-1;break}p=(u|0)>-1;do if(o<<24>>24==19)if(p){m=-1;break a}else L=52;else{if(p){c[l+(u<<2)>>2]=s;H=j+(u<<3)|0;I=c[H+4>>2]|0;L=ba;c[L>>2]=c[H>>2];c[L+4>>2]=I;L=52;break}if(!M){m=0;break a}vC(ba,s,g)}while(0);if((L|0)==52?(L=0,!M):0){w=J;n=y;continue}u=a[n>>0]|0;u=(t|0)!=0&(u&15|0)==3?u&-33:u;p=x&-65537;I=(x&8192|0)==0?x:p;f:do switch(u|0){case 110:switch(t|0){case 0:{c[c[ba>>2]>>2]=m;w=J;n=y;continue a}case 1:{c[c[ba>>2]>>2]=m;w=J;n=y;continue a}case 2:{w=c[ba>>2]|0;c[w>>2]=m;c[w+4>>2]=((m|0)<0)<<31>>31;w=J;n=y;continue a}case 3:{b[c[ba>>2]>>1]=m;w=J;n=y;continue a}case 4:{a[c[ba>>2]>>0]=m;w=J;n=y;continue a}case 6:{c[c[ba>>2]>>2]=m;w=J;n=y;continue a}case 7:{w=c[ba>>2]|0;c[w>>2]=m;c[w+4>>2]=((m|0)<0)<<31>>31;w=J;n=y;continue a}default:{w=J;n=y;continue a}}case 112:{t=I|8;r=r>>>0>8?r:8;u=120;L=64;break}case 88:case 120:{t=I;L=64;break}case 111:{p=ba;o=c[p>>2]|0;p=c[p+4>>2]|0;if((o|0)==0&(p|0)==0)n=N;else{n=N;do{n=n+-1|0;a[n>>0]=o&7|48;o=WL(o|0,p|0,3)|0;p=D}while(!((o|0)==0&(p|0)==0))}if(!(I&8)){o=I;t=0;s=59530;L=77}else{t=U-n+1|0;o=I;r=(r|0)<(t|0)?t:r;t=0;s=59530;L=77}break}case 105:case 100:{o=ba;n=c[o>>2]|0;o=c[o+4>>2]|0;if((o|0)<0){n=UL(0,0,n|0,o|0)|0;o=D;p=ba;c[p>>2]=n;c[p+4>>2]=o;p=1;s=59530;L=76;break f}if(!(I&2048)){s=I&1;p=s;s=(s|0)==0?59530:59532;L=76}else{p=1;s=59531;L=76}break}case 117:{o=ba;n=c[o>>2]|0;o=c[o+4>>2]|0;p=0;s=59530;L=76;break}case 99:{a[V>>0]=c[ba>>2];w=V;o=1;t=0;u=59530;n=N;break}case 109:{n=_A(c[(ZA()|0)>>2]|0)|0;L=82;break}case 115:{n=c[ba>>2]|0;n=(n|0)!=0?n:59540;L=82;break}case 67:{c[ga>>2]=c[ba>>2];c[W>>2]=0;c[ba>>2]=ga;r=-1;L=86;break}case 83:{if(!r){xC(e,32,K,0,I);n=0;L=98}else L=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{q=+h[ba>>3];c[ea>>2]=0;h[k>>3]=q;if((c[k+4>>2]|0)>=0)if(!(I&2048)){H=I&1;G=H;H=(H|0)==0?59548:59553}else{G=1;H=59550}else{q=-q;G=1;H=59547}h[k>>3]=q;F=c[k+4>>2]&2146435072;do if(F>>>0<2146435072|(F|0)==2146435072&0<0){v=+rB(q,ea)*2.0;o=v!=0.0;if(o)c[ea>>2]=(c[ea>>2]|0)+-1;C=u|32;if((C|0)==97){w=u&32;y=(w|0)==0?H:H+9|0;x=G|2;n=12-r|0;do if(!(r>>>0>11|(n|0)==0)){q=8.0;do{n=n+-1|0;q=q*16.0}while((n|0)!=0);if((a[y>>0]|0)==45){q=-(q+(-v-q));break}else{q=v+q-q;break}}else q=v;while(0);o=c[ea>>2]|0;n=(o|0)<0?0-o|0:o;n=wC(n,((n|0)<0)<<31>>31,X)|0;if((n|0)==(X|0)){a[Y>>0]=48;n=Y}a[n+-1>>0]=(o>>31&2)+43;t=n+-2|0;a[t>>0]=u+15;s=(r|0)<1;p=(I&8|0)==0;o=da;while(1){H=~~q;n=o+1|0;a[o>>0]=d[59514+H>>0]|w;q=(q-+(H|0))*16.0;do if((n-Z|0)==1){if(p&(s&q==0.0))break;a[n>>0]=46;n=o+2|0}while(0);if(!(q!=0.0))break;else o=n}r=(r|0)!=0&(O+n|0)<(r|0)?P+r-t|0:aa-t+n|0;p=r+x|0;xC(e,32,K,p,I);if(!(c[e>>2]&32))RB(y,x,e)|0;xC(e,48,K,p,I^65536);n=n-Z|0;if(!(c[e>>2]&32))RB(da,n,e)|0;o=_-t|0;xC(e,48,r-(n+o)|0,0,0);if(!(c[e>>2]&32))RB(t,o,e)|0;xC(e,32,K,p,I^8192);n=(p|0)<(K|0)?K:p;break}n=(r|0)<0?6:r;if(o){o=(c[ea>>2]|0)+-28|0;c[ea>>2]=o;q=v*268435456.0}else{q=v;o=c[ea>>2]|0}F=(o|0)<0?ca:Q;E=F;o=F;do{B=~~q>>>0;c[o>>2]=B;o=o+4|0;q=(q-+(B>>>0))*1.0e9}while(q!=0.0);p=o;o=c[ea>>2]|0;if((o|0)>0){s=F;while(1){t=(o|0)>29?29:o;r=p+-4|0;do if(r>>>0<s>>>0)r=s;else{o=0;do{B=_L(c[r>>2]|0,0,t|0)|0;B=TL(B|0,D|0,o|0,0)|0;o=D;A=fM(B|0,o|0,1e9,0)|0;c[r>>2]=A;o=eM(B|0,o|0,1e9,0)|0;r=r+-4|0}while(r>>>0>=s>>>0);if(!o){r=s;break}r=s+-4|0;c[r>>2]=o}while(0);while(1){if(p>>>0<=r>>>0)break;o=p+-4|0;if(!(c[o>>2]|0))p=o;else break}o=(c[ea>>2]|0)-t|0;c[ea>>2]=o;if((o|0)>0)s=r;else break}}else r=F;if((o|0)<0){y=((n+25|0)/9|0)+1|0;z=(C|0)==102;w=r;while(1){x=0-o|0;x=(x|0)>9?9:x;do if(w>>>0<p>>>0){o=(1<<x)+-1|0;s=1e9>>>x;r=0;t=w;do{B=c[t>>2]|0;c[t>>2]=(B>>>x)+r;r=$(B&o,s)|0;t=t+4|0}while(t>>>0<p>>>0);o=(c[w>>2]|0)==0?w+4|0:w;if(!r){r=o;break}c[p>>2]=r;r=o;p=p+4|0}else r=(c[w>>2]|0)==0?w+4|0:w;while(0);o=z?F:r;p=(p-o>>2|0)>(y|0)?o+(y<<2)|0:p;o=(c[ea>>2]|0)+x|0;c[ea>>2]=o;if((o|0)>=0){w=r;break}else w=r}}else w=r;do if(w>>>0<p>>>0){o=(E-w>>2)*9|0;s=c[w>>2]|0;if(s>>>0<10)break;else r=10;do{r=r*10|0;o=o+1|0}while(s>>>0>=r>>>0)}else o=0;while(0);A=(C|0)==103;B=(n|0)!=0;r=n-((C|0)!=102?o:0)+((B&A)<<31>>31)|0;if((r|0)<(((p-E>>2)*9|0)+-9|0)){t=r+9216|0;z=(t|0)/9|0;r=F+(z+-1023<<2)|0;t=((t|0)%9|0)+1|0;if((t|0)<9){s=10;do{s=s*10|0;t=t+1|0}while((t|0)!=9)}else s=10;x=c[r>>2]|0;y=(x>>>0)%(s>>>0)|0;if((y|0)==0?(F+(z+-1022<<2)|0)==(p|0):0)s=w;else L=163;do if((L|0)==163){L=0;v=(((x>>>0)/(s>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;t=(s|0)/2|0;do if(y>>>0<t>>>0)q=.5;else{if((y|0)==(t|0)?(F+(z+-1022<<2)|0)==(p|0):0){q=1.0;break}q=1.5}while(0);do if(G){if((a[H>>0]|0)!=45)break;v=-v;q=-q}while(0);t=x-y|0;c[r>>2]=t;if(!(v+q!=v)){s=w;break}C=t+s|0;c[r>>2]=C;if(C>>>0>999999999){o=w;while(1){s=r+-4|0;c[r>>2]=0;if(s>>>0<o>>>0){o=o+-4|0;c[o>>2]=0}C=(c[s>>2]|0)+1|0;c[s>>2]=C;if(C>>>0>999999999)r=s;else{w=o;r=s;break}}}o=(E-w>>2)*9|0;t=c[w>>2]|0;if(t>>>0<10){s=w;break}else s=10;do{s=s*10|0;o=o+1|0}while(t>>>0>=s>>>0);s=w}while(0);C=r+4|0;w=s;p=p>>>0>C>>>0?C:p}y=0-o|0;while(1){if(p>>>0<=w>>>0){z=0;C=p;break}r=p+-4|0;if(!(c[r>>2]|0))p=r;else{z=1;C=p;break}}do if(A){n=(B&1^1)+n|0;if((n|0)>(o|0)&(o|0)>-5){u=u+-1|0;n=n+-1-o|0}else{u=u+-2|0;n=n+-1|0}p=I&8;if(p)break;do if(z){p=c[C+-4>>2]|0;if(!p){r=9;break}if(!((p>>>0)%10|0)){s=10;r=0}else{r=0;break}do{s=s*10|0;r=r+1|0}while(((p>>>0)%(s>>>0)|0|0)==0)}else r=9;while(0);p=((C-E>>2)*9|0)+-9|0;if((u|32|0)==102){p=p-r|0;p=(p|0)<0?0:p;n=(n|0)<(p|0)?n:p;p=0;break}else{p=p+o-r|0;p=(p|0)<0?0:p;n=(n|0)<(p|0)?n:p;p=0;break}}else p=I&8;while(0);x=n|p;s=(x|0)!=0&1;t=(u|32|0)==102;if(t){o=(o|0)>0?o:0;u=0}else{r=(o|0)<0?y:o;r=wC(r,((r|0)<0)<<31>>31,X)|0;if((_-r|0)<2)do{r=r+-1|0;a[r>>0]=48}while((_-r|0)<2);a[r+-1>>0]=(o>>31&2)+43;E=r+-2|0;a[E>>0]=u;o=_-E|0;u=E}y=G+1+n+s+o|0;xC(e,32,K,y,I);if(!(c[e>>2]&32))RB(H,G,e)|0;xC(e,48,K,y,I^65536);do if(t){r=w>>>0>F>>>0?F:w;o=r;do{p=wC(c[o>>2]|0,0,R)|0;do if((o|0)==(r|0)){if((p|0)!=(R|0))break;a[T>>0]=48;p=T}else{if(p>>>0<=da>>>0)break;do{p=p+-1|0;a[p>>0]=48}while(p>>>0>da>>>0)}while(0);if(!(c[e>>2]&32))RB(p,S-p|0,e)|0;o=o+4|0}while(o>>>0<=F>>>0);do if(x){if(c[e>>2]&32)break;RB(59582,1,e)|0}while(0);if((n|0)>0&o>>>0<C>>>0){p=o;while(1){o=wC(c[p>>2]|0,0,R)|0;if(o>>>0>da>>>0)do{o=o+-1|0;a[o>>0]=48}while(o>>>0>da>>>0);if(!(c[e>>2]&32))RB(o,(n|0)>9?9:n,e)|0;p=p+4|0;o=n+-9|0;if(!((n|0)>9&p>>>0<C>>>0)){n=o;break}else n=o}}xC(e,48,n+9|0,9,0)}else{t=z?C:w+4|0;if((n|0)>-1){s=(p|0)==0;r=w;do{o=wC(c[r>>2]|0,0,R)|0;if((o|0)==(R|0)){a[T>>0]=48;o=T}do if((r|0)==(w|0)){p=o+1|0;if(!(c[e>>2]&32))RB(o,1,e)|0;if(s&(n|0)<1){o=p;break}if(c[e>>2]&32){o=p;break}RB(59582,1,e)|0;o=p}else{if(o>>>0<=da>>>0)break;do{o=o+-1|0;a[o>>0]=48}while(o>>>0>da>>>0)}while(0);p=S-o|0;if(!(c[e>>2]&32))RB(o,(n|0)>(p|0)?p:n,e)|0;n=n-p|0;r=r+4|0}while(r>>>0<t>>>0&(n|0)>-1)}xC(e,48,n+18|0,18,0);if(c[e>>2]&32)break;RB(u,_-u|0,e)|0}while(0);xC(e,32,K,y,I^8192);n=(y|0)<(K|0)?K:y}else{t=(u&32|0)!=0;s=q!=q|0.0!=0.0;o=s?0:G;r=o+3|0;xC(e,32,K,r,p);n=c[e>>2]|0;if(!(n&32)){RB(H,o,e)|0;n=c[e>>2]|0}if(!(n&32))RB(s?(t?59574:59578):t?59566:59570,3,e)|0;xC(e,32,K,r,I^8192);n=(r|0)<(K|0)?K:r}while(0);w=J;continue a}default:{p=I;o=r;t=0;u=59530;n=N}}while(0);g:do if((L|0)==64){p=ba;o=c[p>>2]|0;p=c[p+4>>2]|0;s=u&32;if(!((o|0)==0&(p|0)==0)){n=N;do{n=n+-1|0;a[n>>0]=d[59514+(o&15)>>0]|s;o=WL(o|0,p|0,4)|0;p=D}while(!((o|0)==0&(p|0)==0));L=ba;if((t&8|0)==0|(c[L>>2]|0)==0&(c[L+4>>2]|0)==0){o=t;t=0;s=59530;L=77}else{o=t;t=2;s=59530+(u>>4)|0;L=77}}else{n=N;o=t;t=0;s=59530;L=77}}else if((L|0)==76){n=wC(n,o,N)|0;o=I;t=p;L=77}else if((L|0)==82){L=0;I=aC(n,0,r)|0;H=(I|0)==0;w=n;o=H?r:I-n|0;t=0;u=59530;n=H?n+r|0:I}else if((L|0)==86){L=0;o=0;n=0;s=c[ba>>2]|0;while(1){p=c[s>>2]|0;if(!p)break;n=DB(fa,p)|0;if((n|0)<0|n>>>0>(r-o|0)>>>0)break;o=n+o|0;if(r>>>0>o>>>0)s=s+4|0;else break}if((n|0)<0){m=-1;break a}xC(e,32,K,o,I);if(!o){n=0;L=98}else{p=0;r=c[ba>>2]|0;while(1){n=c[r>>2]|0;if(!n){n=o;L=98;break g}n=DB(fa,n)|0;p=n+p|0;if((p|0)>(o|0)){n=o;L=98;break g}if(!(c[e>>2]&32))RB(fa,n,e)|0;if(p>>>0>=o>>>0){n=o;L=98;break}else r=r+4|0}}}while(0);if((L|0)==98){L=0;xC(e,32,K,n,I^8192);w=J;n=(K|0)>(n|0)?K:n;continue}if((L|0)==77){L=0;p=(r|0)>-1?o&-65537:o;o=ba;o=(c[o>>2]|0)!=0|(c[o+4>>2]|0)!=0;if((r|0)!=0|o){o=(o&1^1)+(U-n)|0;w=n;o=(r|0)>(o|0)?r:o;u=s;n=N}else{w=N;o=0;u=s;n=N}}s=n-w|0;o=(o|0)<(s|0)?s:o;r=t+o|0;n=(K|0)<(r|0)?r:K;xC(e,32,n,r,p);if(!(c[e>>2]&32))RB(u,t,e)|0;xC(e,48,n,r,p^65536);xC(e,48,o,s,0);if(!(c[e>>2]&32))RB(w,s,e)|0;xC(e,32,n,r,p^8192);w=J}h:do if((L|0)==245)if(!e)if(f){m=1;while(1){f=c[l+(m<<2)>>2]|0;if(!f)break;vC(j+(m<<3)|0,f,g);m=m+1|0;if((m|0)>=10){m=1;break h}}if((m|0)<10)while(1){if(c[l+(m<<2)>>2]|0){m=-1;break h}m=m+1|0;if((m|0)>=10){m=1;break}}else m=1}else m=0;while(0);i=ha;return m|0}function rC(a,b,c){a=a|0;b=b|0;c=c|0;return LB(a,b,c)|0}function sC(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0,g=0,h=0,j=0;j=i;i=i+112|0;h=j;f=h;g=f+112|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));f=h+4|0;c[f>>2]=a;g=h+8|0;c[g>>2]=-1;c[h+44>>2]=a;c[h+76>>2]=-1;bB(h,0);e=+$A(h,d,1);d=(c[f>>2]|0)-(c[g>>2]|0)+(c[h+108>>2]|0)|0;if(b)c[b>>2]=(d|0)!=0?a+d|0:a;i=j;return +e}function tC(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;k=i;i=i+112|0;j=k;c[j>>2]=0;g=j+4|0;c[g>>2]=a;c[j+44>>2]=a;h=j+8|0;c[h>>2]=(a|0)<0?-1:a+2147483647|0;c[j+76>>2]=-1;bB(j,0);e=aB(j,d,1,e,f)|0;if(b)c[b>>2]=a+((c[g>>2]|0)+(c[j+108>>2]|0)-(c[h>>2]|0));i=k;return e|0}function uC(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=a+20|0;f=c[e>>2]|0;a=(c[a+16>>2]|0)-f|0;a=a>>>0>d>>>0?d:a;XL(f|0,b|0,a|0)|0;c[e>>2]=(c[e>>2]|0)+a;return d|0}function vC(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0.0;a:do if(b>>>0<=20)do switch(b|0){case 9:{e=(c[d>>2]|0)+(4-1)&~(4-1);b=c[e>>2]|0;c[d>>2]=e+4;c[a>>2]=b;break a}case 10:{e=(c[d>>2]|0)+(4-1)&~(4-1);b=c[e>>2]|0;c[d>>2]=e+4;e=a;c[e>>2]=b;c[e+4>>2]=((b|0)<0)<<31>>31;break a}case 11:{e=(c[d>>2]|0)+(4-1)&~(4-1);b=c[e>>2]|0;c[d>>2]=e+4;e=a;c[e>>2]=b;c[e+4>>2]=0;break a}case 12:{e=(c[d>>2]|0)+(8-1)&~(8-1);b=e;f=c[b>>2]|0;b=c[b+4>>2]|0;c[d>>2]=e+8;e=a;c[e>>2]=f;c[e+4>>2]=b;break a}case 13:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;e=(e&65535)<<16>>16;f=a;c[f>>2]=e;c[f+4>>2]=((e|0)<0)<<31>>31;break a}case 14:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;f=a;c[f>>2]=e&65535;c[f+4>>2]=0;break a}case 15:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;e=(e&255)<<24>>24;f=a;c[f>>2]=e;c[f+4>>2]=((e|0)<0)<<31>>31;break a}case 16:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;f=a;c[f>>2]=e&255;c[f+4>>2]=0;break a}case 17:{f=(c[d>>2]|0)+(8-1)&~(8-1);g=+h[f>>3];c[d>>2]=f+8;h[a>>3]=g;break a}case 18:{f=(c[d>>2]|0)+(8-1)&~(8-1);g=+h[f>>3];c[d>>2]=f+8;h[a>>3]=g;break a}default:break a}while(0);while(0);return}function wC(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(c>>>0>0|(c|0)==0&b>>>0>4294967295)while(1){e=fM(b|0,c|0,10,0)|0;d=d+-1|0;a[d>>0]=e|48;e=eM(b|0,c|0,10,0)|0;if(c>>>0>9|(c|0)==9&b>>>0>4294967295){b=e;c=D}else{b=e;break}}if(b)while(1){d=d+-1|0;a[d>>0]=(b>>>0)%10|0|48;if(b>>>0<10)break;else b=(b>>>0)/10|0}return d|0}function xC(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;j=i;i=i+256|0;h=j;do if((d|0)>(e|0)&(f&73728|0)==0){f=d-e|0;ZL(h|0,b|0,(f>>>0>256?256:f)|0)|0;b=c[a>>2]|0;g=(b&32|0)==0;if(f>>>0>255){e=d-e|0;do{if(g){RB(h,256,a)|0;b=c[a>>2]|0}f=f+-256|0;g=(b&32|0)==0}while(f>>>0>255);if(g)f=e&255;else break}else if(!g)break;RB(h,f,a)|0}while(0);i=j;return}function yC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;do if(a>>>0<245){o=a>>>0<11?16:a+11&-8;a=o>>>3;i=c[9791]|0;d=i>>>a;if(d&3){a=(d&1^1)+a|0;e=a<<1;d=39204+(e<<2)|0;e=39204+(e+2<<2)|0;f=c[e>>2]|0;g=f+8|0;h=c[g>>2]|0;do if((d|0)!=(h|0)){if(h>>>0<(c[9795]|0)>>>0)Gb();b=h+12|0;if((c[b>>2]|0)==(f|0)){c[b>>2]=d;c[e>>2]=h;break}else Gb()}else c[9791]=i&~(1<<a);while(0);M=a<<3;c[f+4>>2]=M|3;M=f+(M|4)|0;c[M>>2]=c[M>>2]|1;M=g;return M|0}h=c[9793]|0;if(o>>>0>h>>>0){if(d){e=2<<a;e=d<<a&(e|0-e);e=(e&0-e)+-1|0;j=e>>>12&16;e=e>>>j;f=e>>>5&8;e=e>>>f;g=e>>>2&4;e=e>>>g;d=e>>>1&2;e=e>>>d;a=e>>>1&1;a=(f|j|g|d|a)+(e>>>a)|0;e=a<<1;d=39204+(e<<2)|0;e=39204+(e+2<<2)|0;g=c[e>>2]|0;j=g+8|0;f=c[j>>2]|0;do if((d|0)!=(f|0)){if(f>>>0<(c[9795]|0)>>>0)Gb();b=f+12|0;if((c[b>>2]|0)==(g|0)){c[b>>2]=d;c[e>>2]=f;k=c[9793]|0;break}else Gb()}else{c[9791]=i&~(1<<a);k=h}while(0);M=a<<3;h=M-o|0;c[g+4>>2]=o|3;i=g+o|0;c[g+(o|4)>>2]=h|1;c[g+M>>2]=h;if(k){f=c[9796]|0;d=k>>>3;b=d<<1;e=39204+(b<<2)|0;a=c[9791]|0;d=1<<d;if(a&d){a=39204+(b+2<<2)|0;b=c[a>>2]|0;if(b>>>0<(c[9795]|0)>>>0)Gb();else{l=a;m=b}}else{c[9791]=a|d;l=39204+(b+2<<2)|0;m=e}c[l>>2]=f;c[m+12>>2]=f;c[f+8>>2]=m;c[f+12>>2]=e}c[9793]=h;c[9796]=i;M=j;return M|0}a=c[9792]|0;if(a){d=(a&0-a)+-1|0;L=d>>>12&16;d=d>>>L;K=d>>>5&8;d=d>>>K;M=d>>>2&4;d=d>>>M;a=d>>>1&2;d=d>>>a;e=d>>>1&1;e=c[39468+((K|L|M|a|e)+(d>>>e)<<2)>>2]|0;d=(c[e+4>>2]&-8)-o|0;a=e;while(1){b=c[a+16>>2]|0;if(!b){b=c[a+20>>2]|0;if(!b){j=d;break}}a=(c[b+4>>2]&-8)-o|0;M=a>>>0<d>>>0;d=M?a:d;a=b;e=M?b:e}g=c[9795]|0;if(e>>>0<g>>>0)Gb();i=e+o|0;if(e>>>0>=i>>>0)Gb();h=c[e+24>>2]|0;d=c[e+12>>2]|0;do if((d|0)==(e|0)){a=e+20|0;b=c[a>>2]|0;if(!b){a=e+16|0;b=c[a>>2]|0;if(!b){n=0;break}}while(1){d=b+20|0;f=c[d>>2]|0;if(f){b=f;a=d;continue}d=b+16|0;f=c[d>>2]|0;if(!f)break;else{b=f;a=d}}if(a>>>0<g>>>0)Gb();else{c[a>>2]=0;n=b;break}}else{f=c[e+8>>2]|0;if(f>>>0<g>>>0)Gb();b=f+12|0;if((c[b>>2]|0)!=(e|0))Gb();a=d+8|0;if((c[a>>2]|0)==(e|0)){c[b>>2]=d;c[a>>2]=f;n=d;break}else Gb()}while(0);do if(h){b=c[e+28>>2]|0;a=39468+(b<<2)|0;if((e|0)==(c[a>>2]|0)){c[a>>2]=n;if(!n){c[9792]=c[9792]&~(1<<b);break}}else{if(h>>>0<(c[9795]|0)>>>0)Gb();b=h+16|0;if((c[b>>2]|0)==(e|0))c[b>>2]=n;else c[h+20>>2]=n;if(!n)break}a=c[9795]|0;if(n>>>0<a>>>0)Gb();c[n+24>>2]=h;b=c[e+16>>2]|0;do if(b)if(b>>>0<a>>>0)Gb();else{c[n+16>>2]=b;c[b+24>>2]=n;break}while(0);b=c[e+20>>2]|0;if(b)if(b>>>0<(c[9795]|0)>>>0)Gb();else{c[n+20>>2]=b;c[b+24>>2]=n;break}}while(0);if(j>>>0<16){M=j+o|0;c[e+4>>2]=M|3;M=e+(M+4)|0;c[M>>2]=c[M>>2]|1}else{c[e+4>>2]=o|3;c[e+(o|4)>>2]=j|1;c[e+(j+o)>>2]=j;b=c[9793]|0;if(b){g=c[9796]|0;d=b>>>3;b=d<<1;f=39204+(b<<2)|0;a=c[9791]|0;d=1<<d;if(a&d){b=39204+(b+2<<2)|0;a=c[b>>2]|0;if(a>>>0<(c[9795]|0)>>>0)Gb();else{p=b;q=a}}else{c[9791]=a|d;p=39204+(b+2<<2)|0;q=f}c[p>>2]=g;c[q+12>>2]=g;c[g+8>>2]=q;c[g+12>>2]=f}c[9793]=j;c[9796]=i}M=e+8|0;return M|0}else q=o}else q=o}else if(a>>>0<=4294967231){a=a+11|0;m=a&-8;l=c[9792]|0;if(l){d=0-m|0;a=a>>>8;if(a)if(m>>>0>16777215)k=31;else{q=(a+1048320|0)>>>16&8;v=a<<q;p=(v+520192|0)>>>16&4;v=v<<p;k=(v+245760|0)>>>16&2;k=14-(p|q|k)+(v<<k>>>15)|0;k=m>>>(k+7|0)&1|k<<1}else k=0;a=c[39468+(k<<2)>>2]|0;a:do if(!a){f=0;a=0;v=86}else{h=d;f=0;i=m<<((k|0)==31?0:25-(k>>>1)|0);j=a;a=0;while(1){g=c[j+4>>2]&-8;d=g-m|0;if(d>>>0<h>>>0)if((g|0)==(m|0)){g=j;a=j;v=90;break a}else a=j;else d=h;v=c[j+20>>2]|0;j=c[j+16+(i>>>31<<2)>>2]|0;f=(v|0)==0|(v|0)==(j|0)?f:v;if(!j){v=86;break}else{h=d;i=i<<1}}}while(0);if((v|0)==86){if((f|0)==0&(a|0)==0){a=2<<k;a=l&(a|0-a);if(!a){q=m;break}a=(a&0-a)+-1|0;n=a>>>12&16;a=a>>>n;l=a>>>5&8;a=a>>>l;p=a>>>2&4;a=a>>>p;q=a>>>1&2;a=a>>>q;f=a>>>1&1;f=c[39468+((l|n|p|q|f)+(a>>>f)<<2)>>2]|0;a=0}if(!f){i=d;j=a}else{g=f;v=90}}if((v|0)==90)while(1){v=0;q=(c[g+4>>2]&-8)-m|0;f=q>>>0<d>>>0;d=f?q:d;a=f?g:a;f=c[g+16>>2]|0;if(f){g=f;v=90;continue}g=c[g+20>>2]|0;if(!g){i=d;j=a;break}else v=90}if((j|0)!=0?i>>>0<((c[9793]|0)-m|0)>>>0:0){f=c[9795]|0;if(j>>>0<f>>>0)Gb();h=j+m|0;if(j>>>0>=h>>>0)Gb();g=c[j+24>>2]|0;d=c[j+12>>2]|0;do if((d|0)==(j|0)){a=j+20|0;b=c[a>>2]|0;if(!b){a=j+16|0;b=c[a>>2]|0;if(!b){o=0;break}}while(1){d=b+20|0;e=c[d>>2]|0;if(e){b=e;a=d;continue}d=b+16|0;e=c[d>>2]|0;if(!e)break;else{b=e;a=d}}if(a>>>0<f>>>0)Gb();else{c[a>>2]=0;o=b;break}}else{e=c[j+8>>2]|0;if(e>>>0<f>>>0)Gb();b=e+12|0;if((c[b>>2]|0)!=(j|0))Gb();a=d+8|0;if((c[a>>2]|0)==(j|0)){c[b>>2]=d;c[a>>2]=e;o=d;break}else Gb()}while(0);do if(g){b=c[j+28>>2]|0;a=39468+(b<<2)|0;if((j|0)==(c[a>>2]|0)){c[a>>2]=o;if(!o){c[9792]=c[9792]&~(1<<b);break}}else{if(g>>>0<(c[9795]|0)>>>0)Gb();b=g+16|0;if((c[b>>2]|0)==(j|0))c[b>>2]=o;else c[g+20>>2]=o;if(!o)break}a=c[9795]|0;if(o>>>0<a>>>0)Gb();c[o+24>>2]=g;b=c[j+16>>2]|0;do if(b)if(b>>>0<a>>>0)Gb();else{c[o+16>>2]=b;c[b+24>>2]=o;break}while(0);b=c[j+20>>2]|0;if(b)if(b>>>0<(c[9795]|0)>>>0)Gb();else{c[o+20>>2]=b;c[b+24>>2]=o;break}}while(0);b:do if(i>>>0>=16){c[j+4>>2]=m|3;c[j+(m|4)>>2]=i|1;c[j+(i+m)>>2]=i;b=i>>>3;if(i>>>0<256){a=b<<1;e=39204+(a<<2)|0;d=c[9791]|0;b=1<<b;if(d&b){b=39204+(a+2<<2)|0;a=c[b>>2]|0;if(a>>>0<(c[9795]|0)>>>0)Gb();else{s=b;t=a}}else{c[9791]=d|b;s=39204+(a+2<<2)|0;t=e}c[s>>2]=h;c[t+12>>2]=h;c[j+(m+8)>>2]=t;c[j+(m+12)>>2]=e;break}b=i>>>8;if(b)if(i>>>0>16777215)e=31;else{L=(b+1048320|0)>>>16&8;M=b<<L;K=(M+520192|0)>>>16&4;M=M<<K;e=(M+245760|0)>>>16&2;e=14-(K|L|e)+(M<<e>>>15)|0;e=i>>>(e+7|0)&1|e<<1}else e=0;b=39468+(e<<2)|0;c[j+(m+28)>>2]=e;c[j+(m+20)>>2]=0;c[j+(m+16)>>2]=0;a=c[9792]|0;d=1<<e;if(!(a&d)){c[9792]=a|d;c[b>>2]=h;c[j+(m+24)>>2]=b;c[j+(m+12)>>2]=h;c[j+(m+8)>>2]=h;break}b=c[b>>2]|0;c:do if((c[b+4>>2]&-8|0)!=(i|0)){e=i<<((e|0)==31?0:25-(e>>>1)|0);while(1){a=b+16+(e>>>31<<2)|0;d=c[a>>2]|0;if(!d)break;if((c[d+4>>2]&-8|0)==(i|0)){y=d;break c}else{e=e<<1;b=d}}if(a>>>0<(c[9795]|0)>>>0)Gb();else{c[a>>2]=h;c[j+(m+24)>>2]=b;c[j+(m+12)>>2]=h;c[j+(m+8)>>2]=h;break b}}else y=b;while(0);b=y+8|0;a=c[b>>2]|0;M=c[9795]|0;if(a>>>0>=M>>>0&y>>>0>=M>>>0){c[a+12>>2]=h;c[b>>2]=h;c[j+(m+8)>>2]=a;c[j+(m+12)>>2]=y;c[j+(m+24)>>2]=0;break}else Gb()}else{M=i+m|0;c[j+4>>2]=M|3;M=j+(M+4)|0;c[M>>2]=c[M>>2]|1}while(0);M=j+8|0;return M|0}else q=m}else q=m}else q=-1;while(0);d=c[9793]|0;if(d>>>0>=q>>>0){b=d-q|0;a=c[9796]|0;if(b>>>0>15){c[9796]=a+q;c[9793]=b;c[a+(q+4)>>2]=b|1;c[a+d>>2]=b;c[a+4>>2]=q|3}else{c[9793]=0;c[9796]=0;c[a+4>>2]=d|3;M=a+(d+4)|0;c[M>>2]=c[M>>2]|1}M=a+8|0;return M|0}a=c[9794]|0;if(a>>>0>q>>>0){L=a-q|0;c[9794]=L;M=c[9797]|0;c[9797]=M+q;c[M+(q+4)>>2]=L|1;c[M+4>>2]=q|3;M=M+8|0;return M|0}do if(!(c[9909]|0)){a=dc(30)|0;if(!(a+-1&a)){c[9911]=a;c[9910]=a;c[9912]=-1;c[9913]=-1;c[9914]=0;c[9902]=0;c[9909]=(Oc(0)|0)&-16^1431655768;break}else Gb()}while(0);j=q+48|0;i=c[9911]|0;k=q+47|0;h=i+k|0;i=0-i|0;l=h&i;if(l>>>0<=q>>>0){M=0;return M|0}a=c[9901]|0;if((a|0)!=0?(t=c[9899]|0,y=t+l|0,y>>>0<=t>>>0|y>>>0>a>>>0):0){M=0;return M|0}d:do if(!(c[9902]&4)){a=c[9797]|0;e:do if(a){f=39612;while(1){d=c[f>>2]|0;if(d>>>0<=a>>>0?(r=f+4|0,(d+(c[r>>2]|0)|0)>>>0>a>>>0):0){g=f;a=r;break}f=c[f+8>>2]|0;if(!f){v=174;break e}}d=h-(c[9794]|0)&i;if(d>>>0<2147483647){f=Yb(d|0)|0;y=(f|0)==((c[g>>2]|0)+(c[a>>2]|0)|0);a=y?d:0;if(y){if((f|0)!=(-1|0)){w=f;p=a;v=194;break d}}else v=184}else a=0}else v=174;while(0);do if((v|0)==174){g=Yb(0)|0;if((g|0)!=(-1|0)){a=g;d=c[9910]|0;f=d+-1|0;if(!(f&a))d=l;else d=l-a+(f+a&0-d)|0;a=c[9899]|0;f=a+d|0;if(d>>>0>q>>>0&d>>>0<2147483647){y=c[9901]|0;if((y|0)!=0?f>>>0<=a>>>0|f>>>0>y>>>0:0){a=0;break}f=Yb(d|0)|0;y=(f|0)==(g|0);a=y?d:0;if(y){w=g;p=a;v=194;break d}else v=184}else a=0}else a=0}while(0);f:do if((v|0)==184){g=0-d|0;do if(j>>>0>d>>>0&(d>>>0<2147483647&(f|0)!=(-1|0))?(u=c[9911]|0,u=k-d+u&0-u,u>>>0<2147483647):0)if((Yb(u|0)|0)==(-1|0)){Yb(g|0)|0;break f}else{d=u+d|0;break}while(0);if((f|0)!=(-1|0)){w=f;p=d;v=194;break d}}while(0);c[9902]=c[9902]|4;v=191}else{a=0;v=191}while(0);if((((v|0)==191?l>>>0<2147483647:0)?(w=Yb(l|0)|0,x=Yb(0)|0,w>>>0<x>>>0&((w|0)!=(-1|0)&(x|0)!=(-1|0))):0)?(z=x-w|0,A=z>>>0>(q+40|0)>>>0,A):0){p=A?z:a;v=194}if((v|0)==194){a=(c[9899]|0)+p|0;c[9899]=a;if(a>>>0>(c[9900]|0)>>>0)c[9900]=a;h=c[9797]|0;g:do if(h){g=39612;do{a=c[g>>2]|0;d=g+4|0;f=c[d>>2]|0;if((w|0)==(a+f|0)){B=a;C=d;D=f;E=g;v=204;break}g=c[g+8>>2]|0}while((g|0)!=0);if(((v|0)==204?(c[E+12>>2]&8|0)==0:0)?h>>>0<w>>>0&h>>>0>=B>>>0:0){c[C>>2]=D+p;M=(c[9794]|0)+p|0;L=h+8|0;L=(L&7|0)==0?0:0-L&7;K=M-L|0;c[9797]=h+L;c[9794]=K;c[h+(L+4)>>2]=K|1;c[h+(M+4)>>2]=40;c[9798]=c[9913];break}a=c[9795]|0;if(w>>>0<a>>>0){c[9795]=w;a=w}d=w+p|0;g=39612;while(1){if((c[g>>2]|0)==(d|0)){f=g;d=g;v=212;break}g=c[g+8>>2]|0;if(!g){d=39612;break}}if((v|0)==212)if(!(c[d+12>>2]&8)){c[f>>2]=w;n=d+4|0;c[n>>2]=(c[n>>2]|0)+p;n=w+8|0;n=(n&7|0)==0?0:0-n&7;k=w+(p+8)|0;k=(k&7|0)==0?0:0-k&7;b=w+(k+p)|0;m=n+q|0;o=w+m|0;l=b-(w+n)-q|0;c[w+(n+4)>>2]=q|3;h:do if((b|0)!=(h|0)){if((b|0)==(c[9796]|0)){M=(c[9793]|0)+l|0;c[9793]=M;c[9796]=o;c[w+(m+4)>>2]=M|1;c[w+(M+m)>>2]=M;break}i=p+4|0;d=c[w+(i+k)>>2]|0;if((d&3|0)==1){j=d&-8;g=d>>>3;i:do if(d>>>0>=256){h=c[w+((k|24)+p)>>2]|0;e=c[w+(p+12+k)>>2]|0;do if((e|0)==(b|0)){f=k|16;e=w+(i+f)|0;d=c[e>>2]|0;if(!d){e=w+(f+p)|0;d=c[e>>2]|0;if(!d){J=0;break}}while(1){f=d+20|0;g=c[f>>2]|0;if(g){d=g;e=f;continue}f=d+16|0;g=c[f>>2]|0;if(!g)break;else{d=g;e=f}}if(e>>>0<a>>>0)Gb();else{c[e>>2]=0;J=d;break}}else{f=c[w+((k|8)+p)>>2]|0;if(f>>>0<a>>>0)Gb();a=f+12|0;if((c[a>>2]|0)!=(b|0))Gb();d=e+8|0;if((c[d>>2]|0)==(b|0)){c[a>>2]=e;c[d>>2]=f;J=e;break}else Gb()}while(0);if(!h)break;a=c[w+(p+28+k)>>2]|0;d=39468+(a<<2)|0;do if((b|0)!=(c[d>>2]|0)){if(h>>>0<(c[9795]|0)>>>0)Gb();a=h+16|0;if((c[a>>2]|0)==(b|0))c[a>>2]=J;else c[h+20>>2]=J;if(!J)break i}else{c[d>>2]=J;if(J)break;c[9792]=c[9792]&~(1<<a);break i}while(0);d=c[9795]|0;if(J>>>0<d>>>0)Gb();c[J+24>>2]=h;b=k|16;a=c[w+(b+p)>>2]|0;do if(a)if(a>>>0<d>>>0)Gb();else{c[J+16>>2]=a;c[a+24>>2]=J;break}while(0);b=c[w+(i+b)>>2]|0;if(!b)break;if(b>>>0<(c[9795]|0)>>>0)Gb();else{c[J+20>>2]=b;c[b+24>>2]=J;break}}else{e=c[w+((k|8)+p)>>2]|0;f=c[w+(p+12+k)>>2]|0;d=39204+(g<<1<<2)|0;do if((e|0)!=(d|0)){if(e>>>0<a>>>0)Gb();if((c[e+12>>2]|0)==(b|0))break;Gb()}while(0);if((f|0)==(e|0)){c[9791]=c[9791]&~(1<<g);break}do if((f|0)==(d|0))F=f+8|0;else{if(f>>>0<a>>>0)Gb();a=f+8|0;if((c[a>>2]|0)==(b|0)){F=a;break}Gb()}while(0);c[e+12>>2]=f;c[F>>2]=e}while(0);b=w+((j|k)+p)|0;f=j+l|0}else f=l;b=b+4|0;c[b>>2]=c[b>>2]&-2;c[w+(m+4)>>2]=f|1;c[w+(f+m)>>2]=f;b=f>>>3;if(f>>>0<256){a=b<<1;e=39204+(a<<2)|0;d=c[9791]|0;b=1<<b;do if(!(d&b)){c[9791]=d|b;K=39204+(a+2<<2)|0;L=e}else{b=39204+(a+2<<2)|0;a=c[b>>2]|0;if(a>>>0>=(c[9795]|0)>>>0){K=b;L=a;break}Gb()}while(0);c[K>>2]=o;c[L+12>>2]=o;c[w+(m+8)>>2]=L;c[w+(m+12)>>2]=e;break}b=f>>>8;do if(!b)e=0;else{if(f>>>0>16777215){e=31;break}K=(b+1048320|0)>>>16&8;L=b<<K;J=(L+520192|0)>>>16&4;L=L<<J;e=(L+245760|0)>>>16&2;e=14-(J|K|e)+(L<<e>>>15)|0;e=f>>>(e+7|0)&1|e<<1}while(0);b=39468+(e<<2)|0;c[w+(m+28)>>2]=e;c[w+(m+20)>>2]=0;c[w+(m+16)>>2]=0;a=c[9792]|0;d=1<<e;if(!(a&d)){c[9792]=a|d;c[b>>2]=o;c[w+(m+24)>>2]=b;c[w+(m+12)>>2]=o;c[w+(m+8)>>2]=o;break}b=c[b>>2]|0;j:do if((c[b+4>>2]&-8|0)!=(f|0)){e=f<<((e|0)==31?0:25-(e>>>1)|0);while(1){a=b+16+(e>>>31<<2)|0;d=c[a>>2]|0;if(!d)break;if((c[d+4>>2]&-8|0)==(f|0)){M=d;break j}else{e=e<<1;b=d}}if(a>>>0<(c[9795]|0)>>>0)Gb();else{c[a>>2]=o;c[w+(m+24)>>2]=b;c[w+(m+12)>>2]=o;c[w+(m+8)>>2]=o;break h}}else M=b;while(0);b=M+8|0;a=c[b>>2]|0;L=c[9795]|0;if(a>>>0>=L>>>0&M>>>0>=L>>>0){c[a+12>>2]=o;c[b>>2]=o;c[w+(m+8)>>2]=a;c[w+(m+12)>>2]=M;c[w+(m+24)>>2]=0;break}else Gb()}else{M=(c[9794]|0)+l|0;c[9794]=M;c[9797]=o;c[w+(m+4)>>2]=M|1}while(0);M=w+(n|8)|0;return M|0}else d=39612;while(1){a=c[d>>2]|0;if(a>>>0<=h>>>0?(b=c[d+4>>2]|0,e=a+b|0,e>>>0>h>>>0):0)break;d=c[d+8>>2]|0}f=a+(b+-39)|0;a=a+(b+-47+((f&7|0)==0?0:0-f&7))|0;f=h+16|0;a=a>>>0<f>>>0?h:a;b=a+8|0;d=w+8|0;d=(d&7|0)==0?0:0-d&7;M=p+-40-d|0;c[9797]=w+d;c[9794]=M;c[w+(d+4)>>2]=M|1;c[w+(p+-36)>>2]=40;c[9798]=c[9913];d=a+4|0;c[d>>2]=27;c[b>>2]=c[9903];c[b+4>>2]=c[9904];c[b+8>>2]=c[9905];c[b+12>>2]=c[9906];c[9903]=w;c[9904]=p;c[9906]=0;c[9905]=b;b=a+28|0;c[b>>2]=7;if((a+32|0)>>>0<e>>>0)do{M=b;b=b+4|0;c[b>>2]=7}while((M+8|0)>>>0<e>>>0);if((a|0)!=(h|0)){g=a-h|0;c[d>>2]=c[d>>2]&-2;c[h+4>>2]=g|1;c[a>>2]=g;b=g>>>3;if(g>>>0<256){a=b<<1;e=39204+(a<<2)|0;d=c[9791]|0;b=1<<b;if(d&b){b=39204+(a+2<<2)|0;a=c[b>>2]|0;if(a>>>0<(c[9795]|0)>>>0)Gb();else{G=b;H=a}}else{c[9791]=d|b;G=39204+(a+2<<2)|0;H=e}c[G>>2]=h;c[H+12>>2]=h;c[h+8>>2]=H;c[h+12>>2]=e;break}b=g>>>8;if(b)if(g>>>0>16777215)e=31;else{L=(b+1048320|0)>>>16&8;M=b<<L;K=(M+520192|0)>>>16&4;M=M<<K;e=(M+245760|0)>>>16&2;e=14-(K|L|e)+(M<<e>>>15)|0;e=g>>>(e+7|0)&1|e<<1}else e=0;d=39468+(e<<2)|0;c[h+28>>2]=e;c[h+20>>2]=0;c[f>>2]=0;b=c[9792]|0;a=1<<e;if(!(b&a)){c[9792]=b|a;c[d>>2]=h;c[h+24>>2]=d;c[h+12>>2]=h;c[h+8>>2]=h;break}b=c[d>>2]|0;k:do if((c[b+4>>2]&-8|0)!=(g|0)){e=g<<((e|0)==31?0:25-(e>>>1)|0);while(1){a=b+16+(e>>>31<<2)|0;d=c[a>>2]|0;if(!d)break;if((c[d+4>>2]&-8|0)==(g|0)){I=d;break k}else{e=e<<1;b=d}}if(a>>>0<(c[9795]|0)>>>0)Gb();else{c[a>>2]=h;c[h+24>>2]=b;c[h+12>>2]=h;c[h+8>>2]=h;break g}}else I=b;while(0);b=I+8|0;a=c[b>>2]|0;M=c[9795]|0;if(a>>>0>=M>>>0&I>>>0>=M>>>0){c[a+12>>2]=h;c[b>>2]=h;c[h+8>>2]=a;c[h+12>>2]=I;c[h+24>>2]=0;break}else Gb()}}else{M=c[9795]|0;if((M|0)==0|w>>>0<M>>>0)c[9795]=w;c[9903]=w;c[9904]=p;c[9906]=0;c[9800]=c[9909];c[9799]=-1;b=0;do{M=b<<1;L=39204+(M<<2)|0;c[39204+(M+3<<2)>>2]=L;c[39204+(M+2<<2)>>2]=L;b=b+1|0}while((b|0)!=32);M=w+8|0;M=(M&7|0)==0?0:0-M&7;L=p+-40-M|0;c[9797]=w+M;c[9794]=L;c[w+(M+4)>>2]=L|1;c[w+(p+-36)>>2]=40;c[9798]=c[9913]}while(0);b=c[9794]|0;if(b>>>0>q>>>0){L=b-q|0;c[9794]=L;M=c[9797]|0;c[9797]=M+q;c[M+(q+4)>>2]=L|1;c[M+4>>2]=q|3;M=M+8|0;return M|0}}c[(ZA()|0)>>2]=12;M=0;return M|0}function zC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;if(!a)return;b=a+-8|0;i=c[9795]|0;if(b>>>0<i>>>0)Gb();d=c[a+-4>>2]|0;e=d&3;if((e|0)==1)Gb();o=d&-8;q=a+(o+-8)|0;do if(!(d&1)){b=c[b>>2]|0;if(!e)return;j=-8-b|0;l=a+j|0;m=b+o|0;if(l>>>0<i>>>0)Gb();if((l|0)==(c[9796]|0)){b=a+(o+-4)|0;d=c[b>>2]|0;if((d&3|0)!=3){u=l;g=m;break}c[9793]=m;c[b>>2]=d&-2;c[a+(j+4)>>2]=m|1;c[q>>2]=m;return}f=b>>>3;if(b>>>0<256){e=c[a+(j+8)>>2]|0;d=c[a+(j+12)>>2]|0;b=39204+(f<<1<<2)|0;if((e|0)!=(b|0)){if(e>>>0<i>>>0)Gb();if((c[e+12>>2]|0)!=(l|0))Gb()}if((d|0)==(e|0)){c[9791]=c[9791]&~(1<<f);u=l;g=m;break}if((d|0)!=(b|0)){if(d>>>0<i>>>0)Gb();b=d+8|0;if((c[b>>2]|0)==(l|0))h=b;else Gb()}else h=d+8|0;c[e+12>>2]=d;c[h>>2]=e;u=l;g=m;break}h=c[a+(j+24)>>2]|0;e=c[a+(j+12)>>2]|0;do if((e|0)==(l|0)){d=a+(j+20)|0;b=c[d>>2]|0;if(!b){d=a+(j+16)|0;b=c[d>>2]|0;if(!b){k=0;break}}while(1){e=b+20|0;f=c[e>>2]|0;if(f){b=f;d=e;continue}e=b+16|0;f=c[e>>2]|0;if(!f)break;else{b=f;d=e}}if(d>>>0<i>>>0)Gb();else{c[d>>2]=0;k=b;break}}else{f=c[a+(j+8)>>2]|0;if(f>>>0<i>>>0)Gb();b=f+12|0;if((c[b>>2]|0)!=(l|0))Gb();d=e+8|0;if((c[d>>2]|0)==(l|0)){c[b>>2]=e;c[d>>2]=f;k=e;break}else Gb()}while(0);if(h){b=c[a+(j+28)>>2]|0;d=39468+(b<<2)|0;if((l|0)==(c[d>>2]|0)){c[d>>2]=k;if(!k){c[9792]=c[9792]&~(1<<b);u=l;g=m;break}}else{if(h>>>0<(c[9795]|0)>>>0)Gb();b=h+16|0;if((c[b>>2]|0)==(l|0))c[b>>2]=k;else c[h+20>>2]=k;if(!k){u=l;g=m;break}}d=c[9795]|0;if(k>>>0<d>>>0)Gb();c[k+24>>2]=h;b=c[a+(j+16)>>2]|0;do if(b)if(b>>>0<d>>>0)Gb();else{c[k+16>>2]=b;c[b+24>>2]=k;break}while(0);b=c[a+(j+20)>>2]|0;if(b)if(b>>>0<(c[9795]|0)>>>0)Gb();else{c[k+20>>2]=b;c[b+24>>2]=k;u=l;g=m;break}else{u=l;g=m}}else{u=l;g=m}}else{u=b;g=o}while(0);if(u>>>0>=q>>>0)Gb();b=a+(o+-4)|0;d=c[b>>2]|0;if(!(d&1))Gb();if(!(d&2)){if((q|0)==(c[9797]|0)){t=(c[9794]|0)+g|0;c[9794]=t;c[9797]=u;c[u+4>>2]=t|1;if((u|0)!=(c[9796]|0))return;c[9796]=0;c[9793]=0;return}if((q|0)==(c[9796]|0)){t=(c[9793]|0)+g|0;c[9793]=t;c[9796]=u;c[u+4>>2]=t|1;c[u+t>>2]=t;return}g=(d&-8)+g|0;f=d>>>3;do if(d>>>0>=256){h=c[a+(o+16)>>2]|0;b=c[a+(o|4)>>2]|0;do if((b|0)==(q|0)){d=a+(o+12)|0;b=c[d>>2]|0;if(!b){d=a+(o+8)|0;b=c[d>>2]|0;if(!b){p=0;break}}while(1){e=b+20|0;f=c[e>>2]|0;if(f){b=f;d=e;continue}e=b+16|0;f=c[e>>2]|0;if(!f)break;else{b=f;d=e}}if(d>>>0<(c[9795]|0)>>>0)Gb();else{c[d>>2]=0;p=b;break}}else{d=c[a+o>>2]|0;if(d>>>0<(c[9795]|0)>>>0)Gb();e=d+12|0;if((c[e>>2]|0)!=(q|0))Gb();f=b+8|0;if((c[f>>2]|0)==(q|0)){c[e>>2]=b;c[f>>2]=d;p=b;break}else Gb()}while(0);if(h){b=c[a+(o+20)>>2]|0;d=39468+(b<<2)|0;if((q|0)==(c[d>>2]|0)){c[d>>2]=p;if(!p){c[9792]=c[9792]&~(1<<b);break}}else{if(h>>>0<(c[9795]|0)>>>0)Gb();b=h+16|0;if((c[b>>2]|0)==(q|0))c[b>>2]=p;else c[h+20>>2]=p;if(!p)break}d=c[9795]|0;if(p>>>0<d>>>0)Gb();c[p+24>>2]=h;b=c[a+(o+8)>>2]|0;do if(b)if(b>>>0<d>>>0)Gb();else{c[p+16>>2]=b;c[b+24>>2]=p;break}while(0);b=c[a+(o+12)>>2]|0;if(b)if(b>>>0<(c[9795]|0)>>>0)Gb();else{c[p+20>>2]=b;c[b+24>>2]=p;break}}}else{e=c[a+o>>2]|0;d=c[a+(o|4)>>2]|0;b=39204+(f<<1<<2)|0;if((e|0)!=(b|0)){if(e>>>0<(c[9795]|0)>>>0)Gb();if((c[e+12>>2]|0)!=(q|0))Gb()}if((d|0)==(e|0)){c[9791]=c[9791]&~(1<<f);break}if((d|0)!=(b|0)){if(d>>>0<(c[9795]|0)>>>0)Gb();b=d+8|0;if((c[b>>2]|0)==(q|0))n=b;else Gb()}else n=d+8|0;c[e+12>>2]=d;c[n>>2]=e}while(0);c[u+4>>2]=g|1;c[u+g>>2]=g;if((u|0)==(c[9796]|0)){c[9793]=g;return}}else{c[b>>2]=d&-2;c[u+4>>2]=g|1;c[u+g>>2]=g}b=g>>>3;if(g>>>0<256){d=b<<1;f=39204+(d<<2)|0;e=c[9791]|0;b=1<<b;if(e&b){b=39204+(d+2<<2)|0;d=c[b>>2]|0;if(d>>>0<(c[9795]|0)>>>0)Gb();else{r=b;s=d}}else{c[9791]=e|b;r=39204+(d+2<<2)|0;s=f}c[r>>2]=u;c[s+12>>2]=u;c[u+8>>2]=s;c[u+12>>2]=f;return}b=g>>>8;if(b)if(g>>>0>16777215)f=31;else{r=(b+1048320|0)>>>16&8;s=b<<r;q=(s+520192|0)>>>16&4;s=s<<q;f=(s+245760|0)>>>16&2;f=14-(q|r|f)+(s<<f>>>15)|0;f=g>>>(f+7|0)&1|f<<1}else f=0;b=39468+(f<<2)|0;c[u+28>>2]=f;c[u+20>>2]=0;c[u+16>>2]=0;d=c[9792]|0;e=1<<f;a:do if(d&e){b=c[b>>2]|0;b:do if((c[b+4>>2]&-8|0)!=(g|0)){f=g<<((f|0)==31?0:25-(f>>>1)|0);while(1){d=b+16+(f>>>31<<2)|0;e=c[d>>2]|0;if(!e)break;if((c[e+4>>2]&-8|0)==(g|0)){t=e;break b}else{f=f<<1;b=e}}if(d>>>0<(c[9795]|0)>>>0)Gb();else{c[d>>2]=u;c[u+24>>2]=b;c[u+12>>2]=u;c[u+8>>2]=u;break a}}else t=b;while(0);b=t+8|0;d=c[b>>2]|0;s=c[9795]|0;if(d>>>0>=s>>>0&t>>>0>=s>>>0){c[d+12>>2]=u;c[b>>2]=u;c[u+8>>2]=d;c[u+12>>2]=t;c[u+24>>2]=0;break}else Gb()}else{c[9792]=d|e;c[b>>2]=u;c[u+24>>2]=b;c[u+12>>2]=u;c[u+8>>2]=u}while(0);u=(c[9799]|0)+-1|0;c[9799]=u;if(!u)b=39620;else return;while(1){b=c[b>>2]|0;if(!b)break;else b=b+8|0}c[9799]=-1;return}function AC(a,b){a=a|0;b=b|0;var d=0;if(a){d=$(b,a)|0;if((b|a)>>>0>65535)d=((d>>>0)/(a>>>0)|0|0)==(b|0)?d:-1}else d=0;b=yC(d)|0;if(!b)return b|0;if(!(c[b+-4>>2]&3))return b|0;ZL(b|0,0,d|0)|0;return b|0}function BC(a,b){a=a|0;b=b|0;var d=0,e=0;if(!a){a=yC(b)|0;return a|0}if(b>>>0>4294967231){c[(ZA()|0)>>2]=12;a=0;return a|0}d=CC(a+-8|0,b>>>0<11?16:b+11&-8)|0;if(d){a=d+8|0;return a|0}d=yC(b)|0;if(!d){a=0;return a|0}e=c[a+-4>>2]|0;e=(e&-8)-((e&3|0)==0?8:4)|0;XL(d|0,a|0,(e>>>0<b>>>0?e:b)|0)|0;zC(a);a=d;return a|0}function CC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;o=a+4|0;p=c[o>>2]|0;j=p&-8;l=a+j|0;i=c[9795]|0;d=p&3;if(!((d|0)!=1&a>>>0>=i>>>0&a>>>0<l>>>0))Gb();e=a+(j|4)|0;f=c[e>>2]|0;if(!(f&1))Gb();if(!d){if(b>>>0<256){a=0;return a|0}if(j>>>0>=(b+4|0)>>>0?(j-b|0)>>>0<=c[9911]<<1>>>0:0)return a|0;a=0;return a|0}if(j>>>0>=b>>>0){d=j-b|0;if(d>>>0<=15)return a|0;c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=d|3;c[e>>2]=c[e>>2]|1;DC(a+b|0,d);return a|0}if((l|0)==(c[9797]|0)){d=(c[9794]|0)+j|0;if(d>>>0<=b>>>0){a=0;return a|0}n=d-b|0;c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=n|1;c[9797]=a+b;c[9794]=n;return a|0}if((l|0)==(c[9796]|0)){e=(c[9793]|0)+j|0;if(e>>>0<b>>>0){a=0;return a|0}d=e-b|0;if(d>>>0>15){c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=d|1;c[a+e>>2]=d;e=a+(e+4)|0;c[e>>2]=c[e>>2]&-2;e=a+b|0}else{c[o>>2]=p&1|e|2;e=a+(e+4)|0;c[e>>2]=c[e>>2]|1;e=0;d=0}c[9793]=d;c[9796]=e;return a|0}if(f&2){a=0;return a|0}m=(f&-8)+j|0;if(m>>>0<b>>>0){a=0;return a|0}n=m-b|0;g=f>>>3;do if(f>>>0>=256){h=c[a+(j+24)>>2]|0;g=c[a+(j+12)>>2]|0;do if((g|0)==(l|0)){e=a+(j+20)|0;d=c[e>>2]|0;if(!d){e=a+(j+16)|0;d=c[e>>2]|0;if(!d){k=0;break}}while(1){f=d+20|0;g=c[f>>2]|0;if(g){d=g;e=f;continue}f=d+16|0;g=c[f>>2]|0;if(!g)break;else{d=g;e=f}}if(e>>>0<i>>>0)Gb();else{c[e>>2]=0;k=d;break}}else{f=c[a+(j+8)>>2]|0;if(f>>>0<i>>>0)Gb();d=f+12|0;if((c[d>>2]|0)!=(l|0))Gb();e=g+8|0;if((c[e>>2]|0)==(l|0)){c[d>>2]=g;c[e>>2]=f;k=g;break}else Gb()}while(0);if(h){d=c[a+(j+28)>>2]|0;e=39468+(d<<2)|0;if((l|0)==(c[e>>2]|0)){c[e>>2]=k;if(!k){c[9792]=c[9792]&~(1<<d);break}}else{if(h>>>0<(c[9795]|0)>>>0)Gb();d=h+16|0;if((c[d>>2]|0)==(l|0))c[d>>2]=k;else c[h+20>>2]=k;if(!k)break}e=c[9795]|0;if(k>>>0<e>>>0)Gb();c[k+24>>2]=h;d=c[a+(j+16)>>2]|0;do if(d)if(d>>>0<e>>>0)Gb();else{c[k+16>>2]=d;c[d+24>>2]=k;break}while(0);d=c[a+(j+20)>>2]|0;if(d)if(d>>>0<(c[9795]|0)>>>0)Gb();else{c[k+20>>2]=d;c[d+24>>2]=k;break}}}else{f=c[a+(j+8)>>2]|0;e=c[a+(j+12)>>2]|0;d=39204+(g<<1<<2)|0;if((f|0)!=(d|0)){if(f>>>0<i>>>0)Gb();if((c[f+12>>2]|0)!=(l|0))Gb()}if((e|0)==(f|0)){c[9791]=c[9791]&~(1<<g);break}if((e|0)!=(d|0)){if(e>>>0<i>>>0)Gb();d=e+8|0;if((c[d>>2]|0)==(l|0))h=d;else Gb()}else h=e+8|0;c[f+12>>2]=e;c[h>>2]=f}while(0);if(n>>>0<16){c[o>>2]=m|p&1|2;b=a+(m|4)|0;c[b>>2]=c[b>>2]|1;return a|0}else{c[o>>2]=p&1|b|2;c[a+(b+4)>>2]=n|3;p=a+(m|4)|0;c[p>>2]=c[p>>2]|1;DC(a+b|0,n);return a|0}return 0}function DC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;q=a+b|0;d=c[a+4>>2]|0;do if(!(d&1)){k=c[a>>2]|0;if(!(d&3))return;n=a+(0-k)|0;m=k+b|0;j=c[9795]|0;if(n>>>0<j>>>0)Gb();if((n|0)==(c[9796]|0)){e=a+(b+4)|0;d=c[e>>2]|0;if((d&3|0)!=3){t=n;h=m;break}c[9793]=m;c[e>>2]=d&-2;c[a+(4-k)>>2]=m|1;c[q>>2]=m;return}g=k>>>3;if(k>>>0<256){f=c[a+(8-k)>>2]|0;e=c[a+(12-k)>>2]|0;d=39204+(g<<1<<2)|0;if((f|0)!=(d|0)){if(f>>>0<j>>>0)Gb();if((c[f+12>>2]|0)!=(n|0))Gb()}if((e|0)==(f|0)){c[9791]=c[9791]&~(1<<g);t=n;h=m;break}if((e|0)!=(d|0)){if(e>>>0<j>>>0)Gb();d=e+8|0;if((c[d>>2]|0)==(n|0))i=d;else Gb()}else i=e+8|0;c[f+12>>2]=e;c[i>>2]=f;t=n;h=m;break}i=c[a+(24-k)>>2]|0;f=c[a+(12-k)>>2]|0;do if((f|0)==(n|0)){f=16-k|0;e=a+(f+4)|0;d=c[e>>2]|0;if(!d){e=a+f|0;d=c[e>>2]|0;if(!d){l=0;break}}while(1){f=d+20|0;g=c[f>>2]|0;if(g){d=g;e=f;continue}f=d+16|0;g=c[f>>2]|0;if(!g)break;else{d=g;e=f}}if(e>>>0<j>>>0)Gb();else{c[e>>2]=0;l=d;break}}else{g=c[a+(8-k)>>2]|0;if(g>>>0<j>>>0)Gb();d=g+12|0;if((c[d>>2]|0)!=(n|0))Gb();e=f+8|0;if((c[e>>2]|0)==(n|0)){c[d>>2]=f;c[e>>2]=g;l=f;break}else Gb()}while(0);if(i){d=c[a+(28-k)>>2]|0;e=39468+(d<<2)|0;if((n|0)==(c[e>>2]|0)){c[e>>2]=l;if(!l){c[9792]=c[9792]&~(1<<d);t=n;h=m;break}}else{if(i>>>0<(c[9795]|0)>>>0)Gb();d=i+16|0;if((c[d>>2]|0)==(n|0))c[d>>2]=l;else c[i+20>>2]=l;if(!l){t=n;h=m;break}}f=c[9795]|0;if(l>>>0<f>>>0)Gb();c[l+24>>2]=i;d=16-k|0;e=c[a+d>>2]|0;do if(e)if(e>>>0<f>>>0)Gb();else{c[l+16>>2]=e;c[e+24>>2]=l;break}while(0);d=c[a+(d+4)>>2]|0;if(d)if(d>>>0<(c[9795]|0)>>>0)Gb();else{c[l+20>>2]=d;c[d+24>>2]=l;t=n;h=m;break}else{t=n;h=m}}else{t=n;h=m}}else{t=a;h=b}while(0);j=c[9795]|0;if(q>>>0<j>>>0)Gb();d=a+(b+4)|0;e=c[d>>2]|0;if(!(e&2)){if((q|0)==(c[9797]|0)){s=(c[9794]|0)+h|0;c[9794]=s;c[9797]=t;c[t+4>>2]=s|1;if((t|0)!=(c[9796]|0))return;c[9796]=0;c[9793]=0;return}if((q|0)==(c[9796]|0)){s=(c[9793]|0)+h|0;c[9793]=s;c[9796]=t;c[t+4>>2]=s|1;c[t+s>>2]=s;return}h=(e&-8)+h|0;g=e>>>3;do if(e>>>0>=256){i=c[a+(b+24)>>2]|0;f=c[a+(b+12)>>2]|0;do if((f|0)==(q|0)){e=a+(b+20)|0;d=c[e>>2]|0;if(!d){e=a+(b+16)|0;d=c[e>>2]|0;if(!d){p=0;break}}while(1){f=d+20|0;g=c[f>>2]|0;if(g){d=g;e=f;continue}f=d+16|0;g=c[f>>2]|0;if(!g)break;else{d=g;e=f}}if(e>>>0<j>>>0)Gb();else{c[e>>2]=0;p=d;break}}else{g=c[a+(b+8)>>2]|0;if(g>>>0<j>>>0)Gb();d=g+12|0;if((c[d>>2]|0)!=(q|0))Gb();e=f+8|0;if((c[e>>2]|0)==(q|0)){c[d>>2]=f;c[e>>2]=g;p=f;break}else Gb()}while(0);if(i){d=c[a+(b+28)>>2]|0;e=39468+(d<<2)|0;if((q|0)==(c[e>>2]|0)){c[e>>2]=p;if(!p){c[9792]=c[9792]&~(1<<d);break}}else{if(i>>>0<(c[9795]|0)>>>0)Gb();d=i+16|0;if((c[d>>2]|0)==(q|0))c[d>>2]=p;else c[i+20>>2]=p;if(!p)break}e=c[9795]|0;if(p>>>0<e>>>0)Gb();c[p+24>>2]=i;d=c[a+(b+16)>>2]|0;do if(d)if(d>>>0<e>>>0)Gb();else{c[p+16>>2]=d;c[d+24>>2]=p;break}while(0);d=c[a+(b+20)>>2]|0;if(d)if(d>>>0<(c[9795]|0)>>>0)Gb();else{c[p+20>>2]=d;c[d+24>>2]=p;break}}}else{f=c[a+(b+8)>>2]|0;e=c[a+(b+12)>>2]|0;d=39204+(g<<1<<2)|0;if((f|0)!=(d|0)){if(f>>>0<j>>>0)Gb();if((c[f+12>>2]|0)!=(q|0))Gb()}if((e|0)==(f|0)){c[9791]=c[9791]&~(1<<g);break}if((e|0)!=(d|0)){if(e>>>0<j>>>0)Gb();d=e+8|0;if((c[d>>2]|0)==(q|0))o=d;else Gb()}else o=e+8|0;c[f+12>>2]=e;c[o>>2]=f}while(0);c[t+4>>2]=h|1;c[t+h>>2]=h;if((t|0)==(c[9796]|0)){c[9793]=h;return}}else{c[d>>2]=e&-2;c[t+4>>2]=h|1;c[t+h>>2]=h}d=h>>>3;if(h>>>0<256){e=d<<1;g=39204+(e<<2)|0;f=c[9791]|0;d=1<<d;if(f&d){d=39204+(e+2<<2)|0;e=c[d>>2]|0;if(e>>>0<(c[9795]|0)>>>0)Gb();else{r=d;s=e}}else{c[9791]=f|d;r=39204+(e+2<<2)|0;s=g}c[r>>2]=t;c[s+12>>2]=t;c[t+8>>2]=s;c[t+12>>2]=g;return}d=h>>>8;if(d)if(h>>>0>16777215)g=31;else{r=(d+1048320|0)>>>16&8;s=d<<r;q=(s+520192|0)>>>16&4;s=s<<q;g=(s+245760|0)>>>16&2;g=14-(q|r|g)+(s<<g>>>15)|0;g=h>>>(g+7|0)&1|g<<1}else g=0;d=39468+(g<<2)|0;c[t+28>>2]=g;c[t+20>>2]=0;c[t+16>>2]=0;e=c[9792]|0;f=1<<g;if(!(e&f)){c[9792]=e|f;c[d>>2]=t;c[t+24>>2]=d;c[t+12>>2]=t;c[t+8>>2]=t;return}d=c[d>>2]|0;a:do if((c[d+4>>2]&-8|0)!=(h|0)){g=h<<((g|0)==31?0:25-(g>>>1)|0);while(1){e=d+16+(g>>>31<<2)|0;f=c[e>>2]|0;if(!f)break;if((c[f+4>>2]&-8|0)==(h|0)){d=f;break a}else{g=g<<1;d=f}}if(e>>>0<(c[9795]|0)>>>0)Gb();c[e>>2]=t;c[t+24>>2]=d;c[t+12>>2]=t;c[t+8>>2]=t;return}while(0);e=d+8|0;f=c[e>>2]|0;s=c[9795]|0;if(!(f>>>0>=s>>>0&d>>>0>=s>>>0))Gb();c[f+12>>2]=t;c[e>>2]=t;c[t+8>>2]=f;c[t+12>>2]=d;c[t+24>>2]=0;return}function EC(b,d){b=b|0;d=d|0;if(!(a[d>>0]&1)){c[b>>2]=c[d>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2]}else FC(b,c[d+8>>2]|0,c[d+4>>2]|0);return}function FC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;if(e>>>0>4294967279)Pz(b);if(e>>>0<11){a[b>>0]=e<<1;b=b+1|0}else{g=e+16&-16;f=Sz(g)|0;c[b+8>>2]=f;c[b>>2]=g|1;c[b+4>>2]=e;b=f}XL(b|0,d|0,e|0)|0;a[b+e>>0]=0;return}function GC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;if(d>>>0>4294967279)Pz(b);if(d>>>0<11){a[b>>0]=d<<1;b=b+1|0}else{g=d+16&-16;f=Sz(g)|0;c[b+8>>2]=f;c[b>>2]=g|1;c[b+4>>2]=d;b=f}ZL(b|0,e|0,d|0)|0;a[b+d>>0]=0;return}function HC(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0;h=a[d>>0]|0;g=(h&1)==0;h=g?(h&255)>>>1:c[d+4>>2]|0;if(h>>>0<e>>>0)RA(b);else{h=h-e|0;FC(b,(g?d+1|0:c[d+8>>2]|0)+e|0,h>>>0<f>>>0?h:f);return}}function IC(b){b=b|0;if(a[b>>0]&1)Uz(c[b+8>>2]|0);return}function JC(b,d){b=b|0;d=d|0;var e=0,f=0;if((b|0)!=(d|0)){e=a[d>>0]|0;f=(e&1)==0;LC(b,f?d+1|0:c[d+8>>2]|0,f?(e&255)>>>1:c[d+4>>2]|0)|0}return b|0}function KC(a,b){a=a|0;b=b|0;return LC(a,b,iC(b)|0)|0}function LC(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=a[b>>0]|0;if(!(f&1))h=10;else{f=c[b>>2]|0;h=(f&-2)+-1|0;f=f&255}g=(f&1)==0;do if(h>>>0>=e>>>0){if(g)f=b+1|0;else f=c[b+8>>2]|0;YL(f|0,d|0,e|0)|0;a[f+e>>0]=0;if(!(a[b>>0]&1)){a[b>>0]=e<<1;break}else{c[b+4>>2]=e;break}}else{if(g)f=(f&255)>>>1;else f=c[b+4>>2]|0;SC(b,h,e-h|0,f,0,f,e,d)}while(0);return b|0}
function li(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+48|0;x=w+28|0;p=w+16|0;n=w+12|0;m=w;q=Zi(e)|0;mr(x,Oi(q)|0);l=x+4|0;e=c[x>>2]|0;a:do if((c[l>>2]|0)==(e|0)){e=0;u=7}else{g=0;f=0;while(1){o=0;e=qa(137,c[e+(g<<2)>>2]|0)|0;u=o;o=0;if(u&1)break;f=e+f|0;g=g+1|0;e=c[x>>2]|0;if(g>>>0>=(c[l>>2]|0)-e>>2>>>0){e=f;u=7;break a}}e=cc()|0;u=6}while(0);do if((u|0)==7){o=0;ma(116,b|0,e|0);u=o;o=0;if(u&1){e=cc()|0;u=6;break}e=c[x>>2]|0;b:do if((c[l>>2]|0)!=(e|0)){k=0;f=0;c:while(1){h=c[e+(k<<2)>>2]|0;j=0;while(1){o=0;e=qa(137,h|0)|0;u=o;o=0;if(u&1){u=17;break c}if((j|0)>=(e|0))break;o=0;g=qa(138,h|0)|0;u=o;o=0;if(u&1){u=17;break c}o=0;e=qa(139,q|0)|0;u=o;o=0;if(u&1){u=17;break c}o=0;ma(87,p|0,e+g|0);u=o;o=0;if(u&1){u=17;break c}o=0;e=qa(111,24)|0;u=o;o=0;if(u&1){u=20;break c}Pd(m,p);ii(e,g,m);c[n>>2]=0;or(n,e);Sd(m);or((c[b>>2]|0)+(f<<2)|0,c[n>>2]|0);pr(n);Sd(p);j=j+1|0;f=f+1|0}k=k+1|0;e=c[x>>2]|0;if(k>>>0>=(c[l>>2]|0)-e>>2>>>0){u=22;break b}}if((u|0)==17){e=cc()|0;u=19;break}else if((u|0)==20){e=cc()|0;Sd(p);break}}else{f=0;u=22}while(0);d:do if((u|0)==22){e=c[b>>2]|0;t=c[(c[e>>2]|0)+20>>2]|0;s=c[t+12>>2]|0;t=c[t+8>>2]|0;l=s-t|0;g=l+1|0;j=(c[b+4>>2]|0)-e>>2;while(1){k=j;j=j+-1|0;if((k|0)<=0){u=29;break}h=c[(c[e+(j<<2)>>2]|0)+20>>2]|0;h=(c[h+12>>2]|0)-(c[h+8>>2]|0)|0;if((h|0)==(l|0)){u=29;break}if((h|0)!=(g|0)){u=26;break}}do if((u|0)==26){e=Ob(8)|0;o=0;ma(103,e|0,49862);w=o;o=0;if(w&1){w=cc()|0;Nb(e|0);e=w;break d}else{o=0;mb(55,e|0,240,66);o=0;break}}else if((u|0)==29?(o=0,v=qa(139,q|0)|0,r=o,o=0,!(r&1)):0){q=l-v|0;d=d+8|0;r=(f|0)>0?f:0;m=(q|0)>0?q:0;if((q|0)>0){e=(f|0)>0;g=0;j=0;while(1){if(e){h=0;l=j;while(1){a[(c[(c[(c[(c[b>>2]|0)+(h<<2)>>2]|0)+20>>2]|0)+8>>2]|0)+g>>0]=a[(c[(c[d>>2]|0)+8>>2]|0)+l>>0]|0;h=h+1|0;if((h|0)>=(f|0))break;else l=l+1|0}}g=g+1|0;if((g|0)>=(q|0))break;else j=r+j|0}}e=$(r,m)|0;g=e+((k|0)>(f|0)?k:f)|0;if((k|0)<(f|0)){h=k;while(1){a[(c[(c[(c[(c[b>>2]|0)+(h<<2)>>2]|0)+20>>2]|0)+8>>2]|0)+q>>0]=a[(c[(c[d>>2]|0)+8>>2]|0)+e>>0]|0;h=h+1|0;if((h|0)>=(f|0))break;else e=e+1|0}}n=g-k|0;p=c[(c[c[b>>2]>>2]|0)+20>>2]|0;p=(c[p+12>>2]|0)-(c[p+8>>2]|0)|0;l=$(r,t+v+((q|0)>(p|0)?q:p)-s|0)|0;if((q|0)<(p|0)){m=(f|0)>0;e=q;h=n;while(1){if(m){g=0;j=h;while(1){a[(c[(c[(c[(c[b>>2]|0)+(g<<2)>>2]|0)+20>>2]|0)+8>>2]|0)+(((g|0)>=(k|0)&1)+e)>>0]=a[(c[(c[d>>2]|0)+8>>2]|0)+j>>0]|0;g=g+1|0;if((g|0)>=(f|0))break;else j=j+1|0}}e=e+1|0;if((e|0)>=(p|0))break;else h=r+h|0}}v=c[d>>2]|0;if((n+l|0)==((c[v+12>>2]|0)-(c[v+8>>2]|0)|0)){qr(x);i=w;return}e=Ob(8)|0;o=0;ma(103,e|0,49901);w=o;o=0;if(w&1){w=cc()|0;Nb(e|0);e=w;break d}else{o=0;mb(55,e|0,240,66);o=0;break}}while(0);e=cc()|0;u=19}while(0);rr(b)}while(0);qr(x);bc(e|0)}function mi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;y=i;i=i+432|0;g=y+408|0;e=y+396|0;x=y+392|0;E=y+116|0;D=y+256|0;C=y+120|0;B=y+104|0;l=y+100|0;m=y+96|0;n=y+92|0;p=y+88|0;q=y+84|0;u=y+80|0;r=y+68|0;j=y+56|0;k=y+44|0;A=y+32|0;z=y+28|0;s=y+16|0;v=y+4|0;w=y;h=Sz(28)|0;sr(h,d);c[E>>2]=0;tr(E,h);h=D+56|0;t=D+4|0;c[D>>2]=29792;c[h>>2]=29812;o=0;ma(104,D+56|0,t|0);f=o;o=0;a:do if(f&1){e=cc()|0;g=18}else{c[D+128>>2]=0;c[D+132>>2]=-1;c[D>>2]=29832;c[D+56>>2]=29852;o=0;ka(307,t|0);f=o;o=0;do if(f&1)e=cc()|0;else{c[t>>2]=29868;f=D+36|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[D+48>>2]=0;c[D+52>>2]=16;c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;o=0;ma(105,t|0,e|0);F=o;o=0;if(F&1){F=cc()|0;IC(e);IC(f);nD(t);e=F;break}IC(e);f=C+56|0;h=C+4|0;c[C>>2]=29792;c[f>>2]=29812;o=0;ma(104,C+56|0,h|0);F=o;o=0;b:do if(F&1){e=cc()|0;g=19}else{c[C+128>>2]=0;c[C+132>>2]=-1;c[C>>2]=29832;c[C+56>>2]=29852;o=0;ka(307,h|0);F=o;o=0;do if(F&1)e=cc()|0;else{c[h>>2]=29868;e=C+36|0;c[e>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[C+48>>2]=0;c[C+52>>2]=16;c[g>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;o=0;ma(105,h|0,g|0);F=o;o=0;if(F&1){F=cc()|0;IC(g);IC(e);nD(h);e=F;break}IC(g);c[B>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;g=c[E>>2]|0;e=1;c:while(1){switch(e|0){case 1:{c[l>>2]=0;tr(l,g);o=0;e=kb(55,0,l|0,D|0,C|0)|0;F=o;o=0;if(F&1){g=23;break c}ur(l);if(!e){g=48;break c}break}case 2:{c[m>>2]=0;tr(m,g);o=0;mb(65,b|0,m|0,D|0);F=o;o=0;if(F&1){g=26;break c}ur(m);e=1;break}case 3:{c[n>>2]=0;tr(n,g);o=0;mb(66,b|0,n|0,D|0);F=o;o=0;if(F&1){g=29;break c}ur(n);e=1;break}case 4:{c[p>>2]=0;tr(p,g);o=0;mb(67,b|0,p|0,D|0);F=o;o=0;if(F&1){g=32;break c}ur(p);e=1;break}case 5:{c[q>>2]=0;tr(q,g);o=0;mb(68,0,q|0,D|0);F=o;o=0;if(F&1){g=35;break c}ur(q);e=1;break}case 6:{c[u>>2]=0;tr(u,g);o=0;ma(117,r|0,B|0);F=o;o=0;if(F&1){g=39;break c}o=0;ub(58,b|0,u|0,D|0,r|0);F=o;o=0;if(F&1){g=40;break c}He(r);ur(u);e=1;break}default:{g=42;break c}}o=0;f=qa(140,g|0)|0;F=o;o=0;if(F&1){g=20;break}if((f|0)<=0){g=48;break}}d:switch(g|0){case 20:{e=cc()|0;g=22;break}case 23:{e=cc()|0;ur(l);break}case 26:{e=cc()|0;ur(m);break}case 29:{e=cc()|0;ur(n);break}case 32:{e=cc()|0;ur(p);break}case 35:{e=cc()|0;ur(q);break}case 39:{e=cc()|0;g=41;break}case 40:{e=cc()|0;He(r);g=41;break}case 42:{e=Ob(8)|0;o=0;ma(88,e|0,47969);F=o;o=0;if(F&1){F=cc()|0;Nb(e|0);e=F;break}else{o=0;mb(55,e|0,320,76);o=0;g=21;break}}case 48:{o=0;ma(106,j|0,h|0);F=o;o=0;if(F&1)g=21;else{F=a[j>>0]|0;F=(((F&1)==0?(F&255)>>>1:c[j+4>>2]|0)|0)==0;IC(j);do if(!F){o=0;ma(106,k|0,h|0);F=o;o=0;if(F&1){g=21;break d}o=0;Wa(80,D|0,k|0)|0;F=o;o=0;if(F&1){e=cc()|0;IC(k);break d}else{IC(k);break}}while(0);Pd(A,d);o=0;f=qa(111,20)|0;F=o;o=0;e:do if(F&1)e=cc()|0;else{o=0;ma(106,s|0,t|0);F=o;o=0;do if(F&1)e=cc()|0;else{o=0;ma(94,f|0,s|0);F=o;o=0;if(F&1){e=cc()|0;IC(s);break}c[z>>2]=0;cq(z,f);IC(s);o=0;e=qa(111,48)|0;F=o;o=0;do if(!(F&1)){Pd(v,A);c[w>>2]=0;cq(w,c[z>>2]|0);o=0;mb(53,e|0,v|0,w|0);F=o;o=0;if(F&1){F=cc()|0;ne(w);Sd(v);Uz(e);e=F;break}else{c[x>>2]=0;dq(x,e);ne(w);Sd(v);ne(z);Sd(A);He(B);Nq(C);Nq(D);ur(E);i=y;return c[x>>2]|0}}else e=cc()|0;while(0);ne(z);break e}while(0);Uz(f)}while(0);Sd(A)}break}}if((g|0)==21){e=cc()|0;g=22}else if((g|0)==41)ur(u);He(B);Nq(C);break b}while(0);g=19}while(0);if((g|0)==19)iD(f);Nq(D);break a}while(0);g=18}while(0);if((g|0)==18)iD(h);ur(E);bc(e|0);return 0}function ni(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;a=0;a:while(1){f=kg(c[b>>2]|0,8)|0;if(!f){b=3;break}if((f|0)<129){b=7;break}if((f|0)==129){a=0;b=27;break}b:do if((f|0)>=230){switch(f|0){case 230:{a=2;b=27;break a}case 231:{a=6;b=28;break a}case 232:{Jq(d,29)|0;break b}default:{}}if((f+-233|0)>>>0>=2)switch(f|0){case 238:{a=4;b=27;break a}case 239:{a=3;b=28;break a}case 240:{b=26;break a}case 235:{a=1;break b}case 236:{Yq(d,48022)|0;Yq(e,48032)|0;break b}case 237:{Yq(d,48038)|0;Yq(e,48032)|0;break b}default:{if((f|0)<=241)break b;if((f|0)!=254){b=22;break a}if(!(lg(c[b>>2]|0)|0))break b;else{b=22;break a}}}}else{f=f+-130|0;if((f|0)<10)Jq(d,48)|0;LD(d,f)|0}while(0);if((lg(c[b>>2]|0)|0)<=0){a=1;b=27;break}}do if((b|0)==3){a=Ob(8)|0;o=0;ma(88,a|0,47996);d=o;o=0;if(d&1){b=cc()|0;Nb(a|0);a=b;b=29;break}else Hc(a|0,320,76)}else if((b|0)==7){Jq(d,(a?f+128|0:f)+255&255)|0;a=1;b=28}else if((b|0)==22){a=Ob(8)|0;o=0;ma(88,a|0,48048);d=o;o=0;if(d&1){b=cc()|0;Nb(a|0);a=b;b=29;break}else Hc(a|0,320,76)}else if((b|0)==26){a=5;b=28}else if((b|0)==27)b=28;while(0);if((b|0)==28)return a|0;else if((b|0)==29)bc(a|0);return 0}function oi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;m=i;i=i+16|0;l=m;j=l+4|0;k=l+8|0;g=0;f=0;a:while(1){if((lg(c[d>>2]|0)|0)==8){f=31;break}b=kg(c[d>>2]|0,8)|0;if((b|0)==254){f=31;break}h=(b<<8)+-1+(kg(c[d>>2]|0,8)|0)|0;b=(h|0)/1600|0;c[l>>2]=b;b=h+($(b,-1600)|0)|0;h=(b|0)/40|0;c[j>>2]=h;c[k>>2]=b+($(h,-40)|0);h=0;b=g;do{g=c[l+(h<<2)>>2]|0;b:do switch(b|0){case 0:{if((g|0)<3){b=g+1|0;break b}b=a[45755+g>>0]|0;if(f){Jq(e,(b&255)+128&255)|0;b=0;f=0;break b}else{Jq(e,b)|0;b=0;f=0;break b}}case 1:if(f){Jq(e,g+128&255)|0;b=0;f=0;break b}else{Jq(e,g&255)|0;b=0;f=0;break b}case 2:{if((g|0)>=27){switch(g|0){case 30:{b=0;f=1;break b}case 27:break;default:{f=20;break a}}Jq(e,29)|0;b=0;break b}b=a[45795+g>>0]|0;if(f){Jq(e,(b&255)+128&255)|0;b=0;f=0;break b}else{Jq(e,b)|0;b=0;f=0;break b}}case 3:if(f){Jq(e,g+224&255)|0;b=0;f=0;break b}else{Jq(e,g+96&255)|0;b=0;f=0;break b}default:{f=26;break a}}while(0);h=h+1|0}while((h|0)<3);if((lg(c[d>>2]|0)|0)>0)g=b;else{f=31;break}}do if((f|0)==20){b=Ob(8)|0;o=0;ma(88,b|0,48083);m=o;o=0;if(m&1){m=cc()|0;Nb(b|0);b=m;break}else Hc(b|0,320,76)}else if((f|0)==26){b=Ob(8)|0;o=0;ma(88,b|0,48113);m=o;o=0;if(m&1){m=cc()|0;Nb(b|0);b=m;break}else Hc(b|0,320,76)}else if((f|0)==31){i=m;return}while(0);bc(b|0)}function pi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;m=i;i=i+16|0;l=m;j=l+4|0;k=l+8|0;g=0;f=0;a:while(1){if((lg(c[d>>2]|0)|0)==8){f=31;break}b=kg(c[d>>2]|0,8)|0;if((b|0)==254){f=31;break}h=(b<<8)+-1+(kg(c[d>>2]|0,8)|0)|0;b=(h|0)/1600|0;c[l>>2]=b;b=h+($(b,-1600)|0)|0;h=(b|0)/40|0;c[j>>2]=h;c[k>>2]=b+($(h,-40)|0);h=0;b=g;do{g=c[l+(h<<2)>>2]|0;b:do switch(b|0){case 0:{if((g|0)<3){b=g+1|0;break b}b=a[45822+g>>0]|0;if(f){Jq(e,(b&255)+128&255)|0;b=0;f=0;break b}else{Jq(e,b)|0;b=0;f=0;break b}}case 1:if(f){Jq(e,g+128&255)|0;b=0;f=0;break b}else{Jq(e,g&255)|0;b=0;f=0;break b}case 2:{if((g|0)>=27){switch(g|0){case 30:{b=0;f=1;break b}case 27:break;default:{f=20;break a}}Jq(e,29)|0;b=0;break b}b=a[45795+g>>0]|0;if(f){Jq(e,(b&255)+128&255)|0;b=0;f=0;break b}else{Jq(e,b)|0;b=0;f=0;break b}}case 3:{b=a[45862+g>>0]|0;if(f){Jq(e,(b&255)+128&255)|0;b=0;f=0;break b}else{Jq(e,b)|0;b=0;f=0;break b}}default:{f=26;break a}}while(0);h=h+1|0}while((h|0)<3);if((lg(c[d>>2]|0)|0)>0)g=b;else{f=31;break}}do if((f|0)==20){b=Ob(8)|0;o=0;ma(88,b|0,48139);m=o;o=0;if(m&1){m=cc()|0;Nb(b|0);b=m;break}else Hc(b|0,320,76)}else if((f|0)==26){b=Ob(8)|0;o=0;ma(88,b|0,48170);m=o;o=0;if(m&1){m=cc()|0;Nb(b|0);b=m;break}else Hc(b|0,320,76)}else if((f|0)==31){i=m;return}while(0);bc(b|0)}function qi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;j=i;i=i+16|0;h=j;f=h+4|0;g=h+8|0;a:while(1){if((lg(c[b>>2]|0)|0)==8){k=19;break}a=kg(c[b>>2]|0,8)|0;if((a|0)==254){k=19;break}e=(a<<8)+-1+(kg(c[b>>2]|0,8)|0)|0;a=(e|0)/1600|0;c[h>>2]=a;a=e+($(a,-1600)|0)|0;e=(a|0)/40|0;c[f>>2]=e;c[g>>2]=a+($(e,-40)|0);e=0;do{a=c[h+(e<<2)>>2]|0;b:do switch(a|0){case 0:{Jq(d,13)|0;break}case 1:{Jq(d,42)|0;break}case 2:{Jq(d,62)|0;break}case 3:{Jq(d,32)|0;break}default:{if((a|0)<14){Jq(d,a+44&255)|0;break b}if((a|0)>=40)break a;Jq(d,a+51&255)|0}}while(0);e=e+1|0}while((e|0)<3);if((lg(c[b>>2]|0)|0)<=0){k=19;break}}if((k|0)==19){i=j;return}a=Ob(8)|0;o=0;ma(88,a|0,48197);k=o;o=0;if(k&1){k=cc()|0;Nb(a|0);bc(k|0)}else Hc(a|0,320,76)}function ri(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do{if((lg(c[b>>2]|0)|0)<17)break;a=c[b>>2]|0;e=0;do{a=kg(a,6)|0;if((a|0)==31){h=5;break a}Jq(d,(a<<1&64^64|a)&255)|0;e=e+1|0;a=c[b>>2]|0}while((e|0)<4)}while((lg(a)|0)>0);if((h|0)==5?(f=c[b>>2]|0,g=c[f+24>>2]|0,(g|0)!=0):0)kg(f,8-g|0)|0;return}function si(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;p=i;i=i+16|0;n=p;m=c[d>>2]|0;b=c[m+20>>2]|0;g=b+2|0;b=(kg(m,8)|0)+255-(((b*149|0)+149|0)%255|0)|0;if(!((b&255)<<24>>24))m=(lg(c[d>>2]|0)|0)/8|0;else m=b<<24>>24;a:do if((m|0)<0){b=Ob(8)|0;o=0;ma(88,b|0,48227);e=o;o=0;if(e&1){e=cc()|0;Nb(b|0);b=e;break}else Hc(b|0,320,76)}else{k=f+4|0;l=f+8|0;b:do if((m|0)>0){j=0;while(1){if((lg(c[d>>2]|0)|0)<8)break;b=(kg(c[d>>2]|0,8)|0)+255-((g*149|0)%255|0)&255;a[n>>0]=b;h=c[k>>2]|0;if((h|0)==(c[l>>2]|0))wr(f,n);else{a[h>>0]=b;c[k>>2]=(c[k>>2]|0)+1}Jq(e,b)|0;j=j+1|0;if((j|0)>=(m|0))break b;else g=g+1|0}b=Ob(8)|0;o=0;ma(88,b|0,48254);e=o;o=0;if(e&1){e=cc()|0;Nb(b|0);b=e;break a}else Hc(b|0,320,76)}while(0);i=p;return}while(0);bc(b|0)}function ti(a){a=a|0;var b=0,c=0;c=i;i=i+16|0;b=c;iq(b,4372);o=0;ma(92,a|0,b|0);a=o;o=0;if(a&1){c=cc()|0;lq(b);bc(c|0)}else{lq(b);i=c;return}}function ui(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;n=l+12|0;k=l;h=e+8|0;e=c[h>>2]|0;e=(c[e+12>>2]|0)-(c[e+8>>2]|0)|0;kq(n,e);j=(c[n+8>>2]|0)+8|0;if((e|0)>0){g=0;do{c[(c[j>>2]|0)+(g<<2)>>2]=d[(c[(c[h>>2]|0)+8>>2]|0)+g>>0];g=g+1|0}while((g|0)<(e|0))}mq(k,n);o=0;mb(56,b|0,k|0,e-f|0);b=o;o=0;if(!(b&1)){nq(k);if((f|0)>0){e=0;do{a[(c[(c[h>>2]|0)+8>>2]|0)+e>>0]=c[(c[j>>2]|0)+(e<<2)>>2];e=e+1|0}while((e|0)<(f|0))}nq(n);i=l;return}e=cc(256)|0;l=D;nq(k);if((l|0)==(Xb(256)|0)){fc(e|0)|0;e=Ob(8)|0;Qf(e);o=0;mb(55,e|0,160,56);o=0;e=cc()|0;o=0;ob(44);l=o;o=0;if(l&1){l=cc(0)|0;oq(l)}else m=e}else m=e;nq(n);bc(m|0)}function vi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;q=i;i=i+128|0;v=q+100|0;e=q+96|0;f=q+92|0;g=q+88|0;u=q+76|0;t=q+64|0;h=q+52|0;s=q+40|0;r=q+36|0;p=q+24|0;l=q+12|0;m=q+120|0;n=q;Zp(e,d);o=0;ma(118,v|0,e|0);k=o;o=0;if(k&1){v=cc()|0;Yd(e);e=v}else{Yd(e);Zp(g,d);o=0;e=Wa(78,v|0,g|0)|0;k=o;o=0;do if(k&1){e=cc()|0;Yd(g)}else{c[f>>2]=e;kr(f);Yd(g);o=0;ma(119,u|0,v|0);k=o;o=0;if(k&1){e=cc()|0;break}Pd(h,u);o=0;mb(69,t|0,h|0,e|0);k=o;o=0;if(k&1){e=cc()|0;Sd(h)}else{Sd(h);j=(c[t+4>>2]|0)-(c[t>>2]|0)|0;k=j>>2;a:do if((j|0)>0){f=0;e=0;while(1){o=0;d=qa(141,c[(c[t>>2]|0)+(f<<2)>>2]|0)|0;h=o;o=0;if(h&1)break;e=d+e|0;f=f+1|0;if((f|0)>=(k|0)){d=15;break a}}e=cc()|0;d=14}else{e=0;d=15}while(0);do if((d|0)==15){o=0;ma(87,s|0,e|0);h=o;o=0;if(h&1){e=cc()|0;d=14;break}g=p+8|0;h=(c[s+8>>2]|0)+8|0;b:do if((j|0)>0){f=0;while(1){xr(r,(c[t>>2]|0)+(f<<2)|0);e=c[r>>2]|0;o=0;ma(120,p|0,e|0);j=o;o=0;if(j&1){d=22;break}o=0;e=qa(141,e|0)|0;j=o;o=0;if(j&1){d=23;break}Pd(l,p);o=0;mb(70,b|0,l|0,e|0);j=o;o=0;if(j&1){d=24;break}Sd(l);if((e|0)>0){d=0;do{j=($(d,k)|0)+f|0;a[(c[h>>2]|0)+j>>0]=a[(c[(c[g>>2]|0)+8>>2]|0)+d>>0]|0;d=d+1|0}while((d|0)<(e|0))}Sd(p);pr(r);f=f+1|0;if((f|0)>=(k|0)){d=28;break b}}if((d|0)==22)e=cc()|0;else if((d|0)==23){e=cc()|0;d=26}else if((d|0)==24){e=cc()|0;Sd(l);d=26}if((d|0)==26)Sd(p);pr(r)}else d=28;while(0);do if((d|0)==28){Pd(n,s);o=0;e=Wa(81,m|0,n|0)|0;r=o;o=0;if(r&1){e=cc()|0;Sd(n);break}else{Sd(n);Sd(s);rr(t);Sd(u);yr(v);i=q;return e|0}}while(0);Sd(s)}while(0);rr(t)}Sd(u)}while(0);yr(v)}bc(e|0);return 0}function wi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+4>>2]=0;c[a>>2]=30716;tq(a+8|0,d);tq(a+12|0,b);c[a+16>>2]=e;return}function xi(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;tq(b,a+12|0);i=d;return c[b>>2]|0}function yi(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;tq(b,a+8|0);i=d;return c[b>>2]|0}function zi(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4440;Zp(a+8|0,b);return}function Ai(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,na=0,pa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Xa=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0;Ia=i;i=i+432|0;Fa=Ia+420|0;eb=Ia+416|0;b=Ia+412|0;$a=Ia+400|0;ab=Ia+396|0;bb=Ia+392|0;cb=Ia+388|0;db=Ia+384|0;_a=Ia+372|0;e=Ia+368|0;f=Ia+364|0;g=Ia+360|0;h=Ia+356|0;j=Ia+352|0;k=Ia+348|0;m=Ia+344|0;n=Ia+340|0;l=Ia+336|0;p=Ia+332|0;q=Ia+328|0;r=Ia+324|0;Va=Ia+320|0;Xa=Ia+316|0;Za=Ia+304|0;s=Ia+300|0;t=Ia+296|0;u=Ia+292|0;v=Ia+288|0;Ua=Ia+284|0;Sa=Ia+280|0;Ta=Ia+276|0;Qa=Ia+264|0;Na=Ia+260|0;Oa=Ia+256|0;Pa=Ia+252|0;A=Ia+248|0;y=Ia+244|0;x=Ia+240|0;E=Ia+236|0;D=Ia+232|0;C=Ia+228|0;H=Ia+224|0;G=Ia+220|0;F=Ia+216|0;I=Ia+212|0;J=Ia+208|0;K=Ia+204|0;L=Ia+200|0;M=Ia+196|0;N=Ia+192|0;Ka=Ia+188|0;Ma=Ia+184|0;La=Ia+180|0;O=Ia+176|0;P=Ia+172|0;Q=Ia+168|0;R=Ia+164|0;S=Ia+160|0;Y=Ia+156|0;Z=Ia+152|0;_=Ia+148|0;$=Ia+144|0;aa=Ia+140|0;ba=Ia+136|0;sa=Ia+132|0;ta=Ia+128|0;ua=Ia+124|0;va=Ia+120|0;wa=Ia+116|0;Ba=Ia+112|0;Ca=Ia+108|0;Da=Ia+104|0;T=Ia+100|0;U=Ia+96|0;V=Ia+92|0;W=Ia+88|0;X=Ia+84|0;ca=Ia+80|0;ha=Ia+76|0;ia=Ia+72|0;da=Ia+68|0;fa=Ia+64|0;ga=Ia+60|0;ja=Ia+56|0;la=Ia+52|0;na=Ia+48|0;pa=Ia+44|0;ra=Ia+40|0;xa=Ia+36|0;za=Ia+32|0;Aa=Ia+28|0;Ja=Ia+16|0;Ga=Ia+12|0;Ha=Ia;d=Sz(36)|0;Ea=a+8|0;Zp(b,Ea);o=0;ma(97,d|0,b|0);B=o;o=0;if(B&1){eb=cc()|0;Yd(b);Uz(d);b=eb}else{c[eb>>2]=0;zr(eb,d);Yd(b);o=0;ma(98,$a|0,c[eb>>2]|0);B=o;o=0;if(B&1)b=cc()|0;else{tq(ab,c[$a>>2]|0);tq(bb,(c[$a>>2]|0)+4|0);tq(cb,(c[$a>>2]|0)+8|0);tq(db,(c[$a>>2]|0)+12|0);o=0;ma(121,_a|0,4);B=o;o=0;if(B&1)b=cc()|0;else{b=c[_a>>2]|0;c[f>>2]=0;w=c[ab>>2]|0;vq(f,w);c[g>>2]=0;B=c[bb>>2]|0;vq(g,B);o=0;d=ya(96,a|0,f|0,g|0)|0;z=o;o=0;do if(z&1){b=cc()|0;uq(g);uq(f)}else{c[e>>2]=d;Br(b,d);Cr(e);uq(g);uq(f);b=c[_a>>2]|0;c[j>>2]=0;vq(j,w);c[k>>2]=0;z=c[cb>>2]|0;vq(k,z);o=0;d=ya(96,a|0,j|0,k|0)|0;g=o;o=0;if(g&1){b=cc()|0;uq(k);uq(j);break}c[h>>2]=d;Br(b+4|0,d);Cr(h);uq(k);uq(j);b=c[_a>>2]|0;c[n>>2]=0;vq(n,B);c[l>>2]=0;g=c[db>>2]|0;vq(l,g);o=0;d=ya(96,a|0,n|0,l|0)|0;k=o;o=0;if(k&1){b=cc()|0;uq(l);uq(n);break}c[m>>2]=d;Br(b+8|0,d);Cr(m);uq(l);uq(n);b=c[_a>>2]|0;c[q>>2]=0;vq(q,z);c[r>>2]=0;vq(r,g);o=0;d=ya(96,a|0,q|0,r|0)|0;n=o;o=0;if(n&1){b=cc()|0;uq(r);uq(q);break}c[p>>2]=d;Br(b+12|0,d);Cr(p);uq(r);uq(q);Ci(a,_a);Dr(Va,c[_a>>2]|0);Dr(Xa,(c[_a>>2]|0)+4|0);c[Za+4>>2]=0;c[Za+8>>2]=0;f=Za+4|0;c[Za>>2]=f;b=c[Va>>2]|0;c[s>>2]=xi(b)|0;o=0;ma(122,Za|0,s|0);r=o;o=0;do if(r&1){b=cc()|0;uq(s)}else{uq(s);c[t>>2]=yi(b)|0;o=0;ma(122,Za|0,t|0);s=o;o=0;if(s&1){b=cc()|0;uq(t);break}uq(t);b=c[Xa>>2]|0;c[u>>2]=xi(b)|0;o=0;ma(122,Za|0,u|0);t=o;o=0;if(t&1){b=cc()|0;uq(u);break}uq(u);c[v>>2]=yi(b)|0;o=0;ma(122,Za|0,v|0);u=o;o=0;if(u&1){b=cc()|0;uq(v);break}uq(v);c[Ua>>2]=0;vq(Ua,0);c[Sa>>2]=0;vq(Sa,0);c[Ta>>2]=0;vq(Ta,0);b=c[Za>>2]|0;if((b|0)!=(f|0)){e=b;d=b;while(1){b=e+16|0;do if((c[e+20>>2]|0)!=2){b=c[b>>2]|0;if(!(c[Ua>>2]|0)){vq(Ua,b);break}else{vq(Ta,b);break}}else vq(Sa,c[b>>2]|0);while(0);b=Fr(d)|0;if((b|0)==(f|0))break;else{e=b;d=b}}}b=c[Ua>>2]|0;d=c[Sa>>2]|0;e=c[Ta>>2]|0;if(!((b|0)==0|(d|0)==0|(e|0)==0)){o=0;ma(123,Qa|0,3);v=o;o=0;if(v&1)Ra=27;else{vq(c[Qa>>2]|0,b);vq((c[Qa>>2]|0)+4|0,d);vq((c[Qa>>2]|0)+8|0,e);o=0;ka(311,Qa|0);v=o;o=0;if(v&1)b=cc()|0;else{tq(Na,c[Qa>>2]|0);vq(Sa,c[(c[Qa>>2]|0)+4>>2]|0);tq(Oa,(c[Qa>>2]|0)+8|0);c[Pa>>2]=0;vq(Pa,0);c[A>>2]=0;j=c[Na>>2]|0;vq(A,j);o=0;b=Wa(82,w|0,A|0)|0;v=o;o=0;a:do if(v&1){b=cc()|0;Ra=49}else{b:do if(b){uq(A);Ra=51}else{c[y>>2]=0;vq(y,c[Sa>>2]|0);o=0;b=Wa(82,w|0,y|0)|0;v=o;o=0;do if(v&1)b=cc()|0;else{if(b){uq(y);uq(A);Ra=51;break b}c[x>>2]=0;b=c[Oa>>2]|0;vq(x,b);o=0;d=Wa(82,w|0,x|0)|0;v=o;o=0;if(v&1){b=cc()|0;uq(x);break}uq(x);uq(y);uq(A);if(d){Ra=51;break b}vq(Pa,w);f=Oa;break b}while(0);uq(y);Ra=49;break a}while(0);c:do if((Ra|0)==51){c[E>>2]=0;vq(E,j);o=0;b=Wa(82,B|0,E|0)|0;A=o;o=0;d:do if(A&1)b=cc()|0;else{e:do if(b)uq(E);else{c[D>>2]=0;vq(D,c[Sa>>2]|0);o=0;b=Wa(82,B|0,D|0)|0;A=o;o=0;do if(A&1)b=cc()|0;else{if(b){uq(D);uq(E);break e}c[C>>2]=0;b=c[Oa>>2]|0;vq(C,b);o=0;d=Wa(82,B|0,C|0)|0;A=o;o=0;if(A&1){b=cc()|0;uq(C);break}uq(C);uq(D);uq(E);if(d)break e;vq(Pa,B);f=Oa;break c}while(0);uq(D);break d}while(0);c[H>>2]=0;vq(H,j);o=0;b=Wa(82,z|0,H|0)|0;E=o;o=0;f:do if(E&1)b=cc()|0;else{g:do if(b)uq(H);else{c[G>>2]=0;vq(G,c[Sa>>2]|0);o=0;b=Wa(82,z|0,G|0)|0;E=o;o=0;do if(E&1)b=cc()|0;else{if(b){uq(G);uq(H);break g}c[F>>2]=0;b=c[Oa>>2]|0;vq(F,b);o=0;d=Wa(82,z|0,F|0)|0;E=o;o=0;if(E&1){b=cc()|0;uq(F);break}uq(F);uq(G);uq(H);if(d)break g;vq(Pa,z);f=Oa;break c}while(0);uq(G);break f}while(0);vq(Pa,g);f=Oa;b=c[Oa>>2]|0;break c}while(0);uq(H);break a}while(0);uq(E);break a}while(0);c[J>>2]=0;vq(J,b);c[K>>2]=0;g=c[Pa>>2]|0;vq(K,g);o=0;b=ya(96,a|0,J|0,K|0)|0;H=o;o=0;if(H&1){b=cc()|0;uq(K);uq(J);break}c[I>>2]=b;d=c[b+16>>2]|0;Cr(I);uq(K);uq(J);c[M>>2]=0;vq(M,j);c[N>>2]=0;vq(N,g);o=0;b=ya(96,a|0,M|0,N|0)|0;K=o;o=0;if(K&1){b=cc()|0;uq(N);uq(M);break}c[L>>2]=b;K=c[b+16>>2]|0;Cr(L);uq(N);uq(M);b=d+2+(d&1)|0;d=K+2+(K&1)|0;c[Ka>>2]=0;Ke(Ka,0);c[Ma>>2]=0;Zq(Ma,0);c[La>>2]=0;vq(La,0);h:do if((b<<2|0)<(d*7|0)){if((d<<2|0)>=(b*7|0)){Ra=86;break}c[U>>2]=0;e=c[Sa>>2]|0;vq(U,e);c[V>>2]=0;vq(V,j);c[W>>2]=0;f=c[f>>2]|0;vq(W,f);c[X>>2]=0;vq(X,g);o=0;b=oa(82,a|0,U|0,V|0,W|0,X|0,((d|0)>(b|0)?b:d)|0)|0;Da=o;o=0;if(Da&1){b=cc()|0;uq(X);uq(W);uq(V);uq(U);break}c[T>>2]=b;vq(La,b);uq(T);uq(X);uq(W);uq(V);uq(U);d=c[La>>2]|0;if(!d){vq(La,g);d=c[La>>2]|0}c[ha>>2]=0;vq(ha,f);c[ia>>2]=0;vq(ia,d);o=0;b=ya(96,a|0,ha|0,ia|0)|0;Da=o;o=0;do if(!(Da&1)){c[ca>>2]=b;b=c[b+16>>2]|0;c[fa>>2]=0;vq(fa,j);c[ga>>2]=0;vq(ga,d);o=0;g=ya(96,a|0,fa|0,ga|0)|0;Da=o;o=0;if(Da&1){b=cc()|0;uq(ga);uq(fa);Cr(ca);break}c[da>>2]=g;g=c[g+16>>2]|0;g=(b|0)<(g|0)?g:b;Cr(da);uq(ga);uq(fa);Cr(ca);uq(ia);uq(ha);b=g+1|0;g=(b&1|0)==0?b:g+2|0;b=c[(c[a>>2]|0)+8>>2]|0;c[la>>2]=0;vq(la,f);c[na>>2]=0;vq(na,d);c[pa>>2]=0;vq(pa,e);c[ra>>2]=0;vq(ra,j);o=0;b=ea(b|0,a|0,la|0,na|0,pa|0,ra|0,g|0,g|0)|0;a=o;o=0;if(a&1){b=cc()|0;uq(ra);uq(pa);uq(na);uq(la);break h}c[ja>>2]=b;Zq(Ma,b);_q(ja);uq(ra);uq(pa);uq(na);uq(la);Zp(za,Ea);c[Aa>>2]=0;Zq(Aa,c[Ma>>2]|0);o=0;b=Ya(67,0,za|0,g|0,g|0,Aa|0)|0;Ea=o;o=0;if(Ea&1){b=cc()|0;_q(Aa);Yd(za);break h}else{c[xa>>2]=b;Ke(Ka,b);Yd(xa);_q(Aa);Yd(za);Ra=114;break h}}else b=cc()|0;while(0);uq(ia);uq(ha)}else Ra=86;while(0);do if((Ra|0)==86){c[P>>2]=0;e=c[Sa>>2]|0;vq(P,e);c[Q>>2]=0;vq(Q,j);c[R>>2]=0;f=c[f>>2]|0;vq(R,f);c[S>>2]=0;vq(S,g);o=0;b=ea(49,a|0,P|0,Q|0,R|0,S|0,b|0,d|0)|0;Aa=o;o=0;if(Aa&1){b=cc()|0;uq(S);uq(R);uq(Q);uq(P);break}c[O>>2]=b;vq(La,b);uq(O);uq(S);uq(R);uq(Q);uq(P);d=c[La>>2]|0;if(!d){vq(La,g);d=c[La>>2]|0}c[Z>>2]=0;vq(Z,f);c[_>>2]=0;vq(_,d);o=0;b=ya(96,a|0,Z|0,_|0)|0;Aa=o;o=0;if(Aa&1){b=cc()|0;uq(_);uq(Z);break}c[Y>>2]=b;g=c[b+16>>2]|0;Cr(Y);uq(_);uq(Z);c[aa>>2]=0;vq(aa,j);c[ba>>2]=0;vq(ba,d);o=0;b=ya(96,a|0,aa|0,ba|0)|0;Aa=o;o=0;if(Aa&1){b=cc()|0;uq(ba);uq(aa);break}c[$>>2]=b;h=c[b+16>>2]|0;Cr($);uq(ba);uq(aa);g=(g&1)+g|0;h=(h&1)+h|0;b=c[(c[a>>2]|0)+8>>2]|0;c[ta>>2]=0;vq(ta,f);c[ua>>2]=0;vq(ua,d);c[va>>2]=0;vq(va,e);c[wa>>2]=0;vq(wa,j);o=0;b=ea(b|0,a|0,ta|0,ua|0,va|0,wa|0,g|0,h|0)|0;a=o;o=0;if(a&1){b=cc()|0;uq(wa);uq(va);uq(ua);uq(ta);break}c[sa>>2]=b;Zq(Ma,b);_q(sa);uq(wa);uq(va);uq(ua);uq(ta);Zp(Ca,Ea);c[Da>>2]=0;Zq(Da,c[Ma>>2]|0);o=0;b=Ya(67,0,Ca|0,g|0,h|0,Da|0)|0;Ea=o;o=0;if(Ea&1){b=cc()|0;_q(Da);Yd(Ca);break}else{c[Ba>>2]=b;Ke(Ka,b);Yd(Ba);_q(Da);Yd(Ca);Ra=114;break}}while(0);do if((Ra|0)==114){o=0;b=qa(111,20)|0;Ea=o;o=0;if(Ea&1){b=cc()|0;break}o=0;ma(124,b|0,4);Ea=o;o=0;if(Ea&1){Ja=cc()|0;Uz(b);b=Ja;break}Dq(Ja,b);b=(c[Ja+8>>2]|0)+8|0;vq(c[b>>2]|0,f);vq((c[b>>2]|0)+4|0,e);vq((c[b>>2]|0)+8|0,d);vq((c[b>>2]|0)+12|0,j);o=0;b=qa(111,24)|0;Ea=o;o=0;do if(!(Ea&1)){c[Ga>>2]=0;Ke(Ga,c[Ka>>2]|0);oe(Ha,Ja);o=0;mb(52,b|0,Ga|0,Ha|0);Ea=o;o=0;if(Ea&1){Ia=cc()|0;pe(Ha);Yd(Ga);Uz(b);b=Ia;break}else{c[Fa>>2]=0;Hr(Fa,b);pe(Ha);Yd(Ga);pe(Ja);uq(La);_q(Ma);Yd(Ka);uq(Pa);uq(Oa);uq(Na);wq(Qa);uq(Ta);uq(Sa);uq(Ua);Ir(Za);Cr(Xa);Cr(Va);Jr(_a);uq(db);uq(cb);uq(bb);uq(ab);wq($a);Kr(eb);i=Ia;return c[Fa>>2]|0}}else b=cc()|0;while(0);pe(Ja)}while(0);uq(La);_q(Ma);Yd(Ka)}while(0);if((Ra|0)==49)uq(A);uq(Pa);uq(Oa);uq(Na)}wq(Qa)}}else{Ra=Ob(8)|0;c[Ra+4>>2]=0;c[Ra>>2]=30552;o=0;mb(55,Ra|0,856,146);o=0;Ra=27}if((Ra|0)==27)b=cc()|0;uq(Ta);uq(Sa);uq(Ua)}while(0);Ir(Za);Cr(Xa);Cr(Va)}while(0);Jr(_a)}uq(db);uq(cb);uq(bb);uq(ab);wq($a)}Kr(eb)}bc(b|0);return 0}function Bi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+16|0;t=w+8|0;u=w+4|0;v=w;f=c[b>>2]|0;f=~~+ld[c[(c[f>>2]|0)+8>>2]&63](f);e=c[b>>2]|0;e=~~+ld[c[(c[e>>2]|0)+12>>2]&63](e);m=c[d>>2]|0;m=~~+ld[c[(c[m>>2]|0)+8>>2]&63](m);h=c[d>>2]|0;h=~~+ld[c[(c[h>>2]|0)+12>>2]&63](h);l=h-e|0;n=m-f|0;n=(((l|0)>-1?l:0-l|0)|0)>(((n|0)>-1?n:0-n|0)|0);l=n?m:h;m=n?h:m;h=n?f:e;g=n?e:f;p=m-g|0;p=(p|0)>-1?p:0-p|0;q=l-h|0;q=(q|0)>-1?q:0-q|0;r=(l|0)>(h|0)?1:-1;s=(m|0)>(g|0)?1:-1;k=c[a+8>>2]|0;a:do if((m|0)==(g|0))e=0;else{a=0-p>>1;j=eq(k,f,e)|0;e=0;f=h;do{h=eq(k,n?f:g,n?g:f)|0;x=j^h;e=(x&1)+e|0;j=x?h:j;a=a+q|0;if((a|0)>0){if((f|0)==(l|0))break a;a=a-p|0;f=f+r|0}g=g+s|0}while((g|0)!=(m|0))}while(0);a=Sz(20)|0;tq(u,b);tq(v,d);o=0;ub(59,a|0,u|0,v|0,e|0);x=o;o=0;if(x&1){x=cc()|0;uq(v);uq(u);Uz(a);bc(x|0)}else{c[t>>2]=0;Br(t,a);uq(v);uq(u);i=w;return c[t>>2]|0}return 0}function Ci(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;l=n+12|0;m=n+8|0;g=n+4|0;h=n;j=(c[b+4>>2]|0)-(c[b>>2]|0)>>2;c[l>>2]=0;Br(l,0);c[m>>2]=0;Br(m,0);k=1;a=0;while(1){if((k|0)>=(j|0))if(a){k=1;a=0;continue}else break;d=k+-1|0;Br(l,c[(c[b>>2]|0)+(d<<2)>>2]|0);c[g>>2]=0;e=c[l>>2]|0;Br(g,e);Br(m,c[(c[b>>2]|0)+(k<<2)>>2]|0);c[h>>2]=0;f=c[m>>2]|0;Br(h,f);o=(c[(c[g>>2]|0)+16>>2]|0)>(c[(c[h>>2]|0)+16>>2]|0);Cr(h);Cr(g);if(o){Br((c[b>>2]|0)+(d<<2)|0,f);Br((c[b>>2]|0)+(k<<2)|0,e);a=1}k=k+1|0}Cr(m);Cr(l);i=n;return}function Di(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0.0,p=0,q=0.0,r=0,s=0.0,t=0.0,u=0.0,v=0.0,w=0.0,x=0,y=0,z=0,A=0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0,I=0.0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;Y=i;i=i+112|0;j=Y+100|0;l=Y+96|0;m=Y+92|0;p=Y+88|0;r=Y+84|0;_=Y+80|0;x=Y+76|0;y=Y+72|0;z=Y+68|0;A=Y+64|0;Z=Y+60|0;J=Y+56|0;K=Y+52|0;L=Y+48|0;M=Y+44|0;Q=Y+40|0;R=Y+36|0;N=Y+32|0;O=Y+28|0;P=Y+24|0;S=Y+20|0;W=Y+16|0;X=Y+12|0;T=Y+8|0;U=Y+4|0;V=Y;tq(l,b);tq(m,d);o=0;k=ya(97,0,l|0,m|0)|0;$=o;o=0;do if($&1){j=cc()|0;uq(m);uq(l)}else{v=+(k|0)/+(g|0);uq(m);uq(l);tq(p,e);tq(r,f);o=0;k=ya(97,0,p|0,r|0)|0;$=o;o=0;if($&1){j=cc()|0;uq(r);uq(p);break}uq(r);uq(p);$=c[f>>2]|0;t=+ld[c[(c[$>>2]|0)+8>>2]&63]($);$=c[e>>2]|0;u=+ld[c[(c[$>>2]|0)+8>>2]&63]($);n=+(k|0);k=c[f>>2]|0;q=+ld[c[(c[k>>2]|0)+12>>2]&63](k);k=c[e>>2]|0;q=(q-+ld[c[(c[k>>2]|0)+12>>2]&63](k))/n;k=Sz(16)|0;$=c[f>>2]|0;o=0;s=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0);$=o;o=0;if((!($&1)?($=c[f>>2]|0,o=0,w=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?(o=0,wa(42,k|0,+(s+v*((t-u)/n)),+(v*q+w)),$=o,o=0,!($&1)):0){c[_>>2]=0;vq(_,k);tq(x,b);tq(y,e);o=0;k=ya(97,0,x|0,y|0)|0;$=o;o=0;do if($&1){j=cc()|0;uq(y);uq(x)}else{q=+(k|0)/+(h|0);uq(y);uq(x);tq(z,d);tq(A,f);o=0;k=ya(97,0,z|0,A|0)|0;$=o;o=0;if($&1){j=cc()|0;uq(A);uq(z);break}uq(A);uq(z);$=c[f>>2]|0;o=0;n=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0);$=o;o=0;if((((!($&1)?($=c[d>>2]|0,o=0,E=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0),$=o,o=0,!($&1)):0)?(B=+(k|0),F=(n-E)/B,$=c[f>>2]|0,o=0,C=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?($=c[d>>2]|0,o=0,D=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?(G=(C-D)/B,o=0,H=qa(111,16)|0,$=o,o=0,!($&1)):0){$=c[f>>2]|0;o=0;n=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0);$=o;o=0;if((!($&1)?($=c[f>>2]|0,o=0,I=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?(o=0,wa(42,H|0,+(q*F+n),+(q*G+I)),$=o,o=0,!($&1)):0){c[Z>>2]=0;vq(Z,H);c[J>>2]=0;m=c[_>>2]|0;vq(J,m);o=0;k=Wa(83,a|0,J|0)|0;$=o;o=0;a:do if($&1){j=cc()|0;uq(J)}else{uq(J);b:do if(!k){c[K>>2]=0;l=c[Z>>2]|0;vq(K,l);o=0;k=Wa(83,a|0,K|0)|0;$=o;o=0;if($&1){j=cc()|0;uq(K);break a}uq(K);c[j>>2]=0;if(k){vq(j,l);break}else{vq(j,0);break}}else{c[L>>2]=0;p=c[Z>>2]|0;vq(L,p);o=0;k=Wa(83,a|0,L|0)|0;$=o;o=0;if($&1){j=cc()|0;uq(L);break a}uq(L);if(!k){c[j>>2]=0;vq(j,m);break}tq(Q,e);c[R>>2]=0;vq(R,m);o=0;k=ya(96,a|0,Q|0,R|0)|0;$=o;o=0;do if($&1)j=cc()|0;else{c[M>>2]=k;l=g-(c[k+16>>2]|0)|0;tq(O,d);c[P>>2]=0;vq(P,m);o=0;k=ya(96,a|0,O|0,P|0)|0;$=o;o=0;if($&1){j=cc()|0;uq(P);uq(O);Cr(M);break}c[N>>2]=k;m=h-(c[k+16>>2]|0)|0;m=((m|0)>-1?m:0-m|0)+((l|0)>-1?l:0-l|0)|0;Cr(N);uq(P);uq(O);Cr(M);uq(R);uq(Q);tq(W,e);c[X>>2]=0;vq(X,p);o=0;k=ya(96,a|0,W|0,X|0)|0;$=o;o=0;do if(!($&1)){c[S>>2]=k;l=g-(c[k+16>>2]|0)|0;tq(U,d);c[V>>2]=0;vq(V,p);o=0;k=ya(96,a|0,U|0,V|0)|0;$=o;o=0;if($&1){j=cc()|0;uq(V);uq(U);Cr(S);break}else{c[T>>2]=k;$=h-(c[k+16>>2]|0)|0;Cr(T);uq(V);uq(U);Cr(S);uq(X);uq(W);tq(j,(m|0)<=((($|0)>-1?$:0-$|0)+((l|0)>-1?l:0-l|0)|0)?_:Z);break b}}else j=cc()|0;while(0);uq(X);uq(W);break a}while(0);uq(R);uq(Q);break a}while(0);uq(Z);uq(_);i=Y;return c[j>>2]|0}while(0);uq(Z);break}j=cc()|0;Uz(H);break}j=cc()|0}while(0);uq(_);break}j=cc()|0;Uz(k)}while(0);bc(j|0);return 0}function Ei(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;f=h+4|0;g=h;a=Qg()|0;Zp(f,b);Lr(g,e);o=0;a=Ya(68,a|0,f|0,c|0,d|0,g|0)|0;e=o;o=0;if(e&1){h=cc()|0;_q(g);Yd(f);bc(h|0)}else{_q(g);Yd(f);i=h;return a|0}return 0}function Fi(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0.0,m=0,n=0.0,p=0.0,q=0,r=0.0,s=0,t=0.0,u=0.0,v=0.0,w=0.0,x=0,y=0,z=0,A=0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0.0,H=0,I=0.0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;Y=i;i=i+112|0;h=Y+100|0;k=Y+96|0;m=Y+92|0;q=Y+88|0;s=Y+84|0;_=Y+80|0;x=Y+76|0;y=Y+72|0;z=Y+68|0;A=Y+64|0;Z=Y+60|0;J=Y+56|0;K=Y+52|0;L=Y+48|0;M=Y+44|0;Q=Y+40|0;R=Y+36|0;N=Y+32|0;O=Y+28|0;P=Y+24|0;S=Y+20|0;W=Y+16|0;X=Y+12|0;T=Y+8|0;U=Y+4|0;V=Y;tq(k,b);tq(m,d);o=0;j=ya(97,0,k|0,m|0)|0;$=o;o=0;do if($&1){h=cc()|0;uq(m);uq(k)}else{v=+(g|0);u=+(j|0)/v;uq(m);uq(k);tq(q,e);tq(s,f);o=0;g=ya(97,0,q|0,s|0)|0;$=o;o=0;if($&1){h=cc()|0;uq(s);uq(q);break}uq(s);uq(q);$=c[f>>2]|0;r=+ld[c[(c[$>>2]|0)+8>>2]&63]($);$=c[e>>2]|0;t=+ld[c[(c[$>>2]|0)+8>>2]&63]($);l=+(g|0);g=c[f>>2]|0;n=+ld[c[(c[g>>2]|0)+12>>2]&63](g);g=c[e>>2]|0;n=(n-+ld[c[(c[g>>2]|0)+12>>2]&63](g))/l;g=Sz(16)|0;$=c[f>>2]|0;o=0;p=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0);$=o;o=0;if((!($&1)?($=c[f>>2]|0,o=0,w=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?(o=0,wa(42,g|0,+(p+u*((r-t)/l)),+(u*n+w)),$=o,o=0,!($&1)):0){c[_>>2]=0;vq(_,g);tq(x,b);tq(y,e);o=0;g=ya(97,0,x|0,y|0)|0;$=o;o=0;do if($&1){h=cc()|0;uq(y);uq(x)}else{n=+(g|0)/v;uq(y);uq(x);tq(z,d);tq(A,f);o=0;g=ya(97,0,z|0,A|0)|0;$=o;o=0;if($&1){h=cc()|0;uq(A);uq(z);break}uq(A);uq(z);$=c[f>>2]|0;o=0;l=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0);$=o;o=0;if((((!($&1)?($=c[d>>2]|0,o=0,E=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0),$=o,o=0,!($&1)):0)?(B=+(g|0),F=(l-E)/B,$=c[f>>2]|0,o=0,C=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?($=c[d>>2]|0,o=0,D=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?(G=(C-D)/B,o=0,H=qa(111,16)|0,$=o,o=0,!($&1)):0){$=c[f>>2]|0;o=0;l=+Ka(c[(c[$>>2]|0)+8>>2]|0,$|0);$=o;o=0;if((!($&1)?($=c[f>>2]|0,o=0,I=+Ka(c[(c[$>>2]|0)+12>>2]|0,$|0),$=o,o=0,!($&1)):0)?(o=0,wa(42,H|0,+(n*F+l),+(n*G+I)),$=o,o=0,!($&1)):0){c[Z>>2]=0;vq(Z,H);c[J>>2]=0;k=c[_>>2]|0;vq(J,k);o=0;g=Wa(83,a|0,J|0)|0;$=o;o=0;a:do if($&1){h=cc()|0;uq(J)}else{uq(J);b:do if(!g){c[K>>2]=0;j=c[Z>>2]|0;vq(K,j);o=0;g=Wa(83,a|0,K|0)|0;$=o;o=0;if($&1){h=cc()|0;uq(K);break a}uq(K);c[h>>2]=0;if(g){vq(h,j);break}else{vq(h,0);break}}else{c[L>>2]=0;m=c[Z>>2]|0;vq(L,m);o=0;g=Wa(83,a|0,L|0)|0;$=o;o=0;if($&1){h=cc()|0;uq(L);break a}uq(L);if(!g){c[h>>2]=0;vq(h,k);break}tq(Q,e);c[R>>2]=0;vq(R,k);o=0;g=ya(96,a|0,Q|0,R|0)|0;$=o;o=0;do if($&1)h=cc()|0;else{c[M>>2]=g;j=c[g+16>>2]|0;tq(O,d);c[P>>2]=0;vq(P,k);o=0;g=ya(96,a|0,O|0,P|0)|0;$=o;o=0;if($&1){h=cc()|0;uq(P);uq(O);Cr(M);break}c[N>>2]=g;k=j-(c[g+16>>2]|0)|0;k=(k|0)>-1?k:0-k|0;Cr(N);uq(P);uq(O);Cr(M);uq(R);uq(Q);tq(W,e);c[X>>2]=0;vq(X,m);o=0;g=ya(96,a|0,W|0,X|0)|0;$=o;o=0;do if(!($&1)){c[S>>2]=g;j=c[g+16>>2]|0;tq(U,d);c[V>>2]=0;vq(V,m);o=0;g=ya(96,a|0,U|0,V|0)|0;$=o;o=0;if($&1){h=cc()|0;uq(V);uq(U);Cr(S);break}else{c[T>>2]=g;$=j-(c[g+16>>2]|0)|0;Cr(T);uq(V);uq(U);Cr(S);uq(X);uq(W);tq(h,(k|0)<=((($|0)>-1?$:0-$|0)|0)?_:Z);break b}}else h=cc()|0;while(0);uq(X);uq(W);break a}while(0);uq(R);uq(Q);break a}while(0);uq(Z);uq(_);i=Y;return c[h>>2]|0}while(0);uq(Z);break}h=cc()|0;Uz(H);break}h=cc()|0}while(0);uq(_);break}h=cc()|0;Uz(g)}while(0);bc(h|0);return 0}function Gi(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0,f=0;f=i;i=i+16|0;a=f+4|0;e=f;tq(a,b);tq(e,c);o=0;d=+eb(42,a|0,e|0);c=o;o=0;if(c&1){f=cc()|0;uq(e);uq(a);bc(f|0)}else{uq(e);uq(a);i=f;return ~~(d+.5)|0}return 0}function Hi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0.0;e=c[b>>2]|0;if((+ld[c[(c[e>>2]|0)+8>>2]&63](e)>=0.0?(d=c[b>>2]|0,f=+ld[c[(c[d>>2]|0)+8>>2]&63](d),d=a+8|0,f<+(ig(c[d>>2]|0)|0)):0)?(e=c[b>>2]|0,+ld[c[(c[e>>2]|0)+12>>2]&63](e)>0.0):0){e=c[b>>2]|0;f=+ld[c[(c[e>>2]|0)+12>>2]&63](e);d=f<+(jg(c[d>>2]|0)|0)}else d=0;return d|0}function Ii(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0;q=+(g|0)+-.5;p=+(h|0)+-.5;a=c[b>>2]|0;o=+ld[c[(c[a>>2]|0)+8>>2]&63](a);b=c[b>>2]|0;n=+ld[c[(c[b>>2]|0)+12>>2]&63](b);b=c[d>>2]|0;m=+ld[c[(c[b>>2]|0)+8>>2]&63](b);d=c[d>>2]|0;l=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[f>>2]|0;k=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[f>>2]|0;j=+ld[c[(c[d>>2]|0)+12>>2]&63](d);d=c[e>>2]|0;i=+ld[c[(c[d>>2]|0)+8>>2]&63](d);d=c[e>>2]|0;return bh(.5,.5,q,.5,q,p,.5,p,o,n,m,l,k,j,i,+ld[c[(c[d>>2]|0)+12>>2]&63](d))|0}function Ji(a){a=a|0;return c[a>>2]|0}function Ki(a){a=a|0;return c[a+4>>2]|0}function Li(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[f>>2]=d;c[a>>2]=b;Mr(a+4|0,1,f);i=e;return}function Mi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;f=h+4|0;g=h;c[f>>2]=d;c[g>>2]=e;c[a>>2]=b;d=a+4|0;Mr(d,1,f);b=a+8|0;f=c[b>>2]|0;if((f|0)==(c[a+12>>2]|0)){o=0;ma(125,d|0,g|0);a=o;o=0;if(a&1){h=cc()|0;qr(d);bc(h|0)}}else{c[f>>2]=e;c[b>>2]=(c[b>>2]|0)+4}i=h;return}function Ni(a){a=a|0;return c[a>>2]|0}function Oi(a){a=a|0;return a+4|0}function Pi(a){a=a|0;var b=0,d=0,e=0;e=a+4|0;d=a+8|0;a=c[e>>2]|0;if((c[d>>2]|0)!=(a|0)){b=0;do{a=c[a+(b<<2)>>2]|0;if(a)Uz(a);b=b+1|0;a=c[e>>2]|0}while(b>>>0<(c[d>>2]|0)-a>>2>>>0)}qr(e);return}function Qi(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;K=i;i=i+128|0;d=K+116|0;f=K+112|0;g=K+108|0;h=K+104|0;j=K+100|0;k=K+96|0;l=K+92|0;m=K+88|0;n=K+84|0;p=K+80|0;q=K+76|0;r=K+72|0;s=K+68|0;t=K+64|0;u=K+60|0;v=K+56|0;w=K+52|0;x=K+48|0;y=K+44|0;z=K+40|0;A=K+36|0;B=K+32|0;C=K+28|0;D=K+24|0;E=K+20|0;F=K+16|0;G=K+12|0;H=K+8|0;I=K+4|0;J=K;e=Sz(36)|0;o=0;a=qa(111,16)|0;b=o;o=0;a:do if(b&1){a=cc()|0;L=185}else{o=0;b=qa(111,8)|0;M=o;o=0;if(!(M&1)?(c[b>>2]=1,c[b+4>>2]=3,o=0,mb(71,a|0,5,b|0),M=o,o=0,!(M&1)):0){Ri(e,1,10,10,8,8,a);c[d>>2]=0;jr(d,e);a=c[1114]|0;if(a>>>0>=(c[1115]|0)>>>0){o=0;ma(126,4452,d|0);M=o;o=0;if(M&1){a=cc()|0;kr(d);break}}else{c[a>>2]=0;jr(a,c[d>>2]|0);c[1114]=(c[1114]|0)+4}kr(d);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;if(!(M&1)?(c[b>>2]=1,c[b+4>>2]=5,o=0,mb(71,a|0,7,b|0),M=o,o=0,!(M&1)):0){Ri(d,2,12,12,10,10,a);c[f>>2]=0;jr(f,d);a=c[1114]|0;if(a>>>0>=(c[1115]|0)>>>0){o=0;ma(126,4452,f|0);M=o;o=0;if(M&1){a=cc()|0;kr(f);break}}else{c[a>>2]=0;jr(a,c[f>>2]|0);c[1114]=(c[1114]|0)+4}kr(f);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;if(!(M&1)?(c[b>>2]=1,c[b+4>>2]=8,o=0,mb(71,a|0,10,b|0),M=o,o=0,!(M&1)):0){Ri(d,3,14,14,12,12,a);c[g>>2]=0;jr(g,d);a=c[1114]|0;if(a>>>0>=(c[1115]|0)>>>0){o=0;ma(126,4452,g|0);M=o;o=0;if(M&1){a=cc()|0;kr(g);break}}else{c[a>>2]=0;jr(a,c[g>>2]|0);c[1114]=(c[1114]|0)+4}kr(g);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=12;o=0;mb(71,a|0,12,b|0);M=o;o=0;if(M&1)break;Ri(d,4,16,16,14,14,a);c[h>>2]=0;jr(h,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[h>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,h|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(h);break a}while(0);kr(h);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=18;o=0;mb(71,a|0,14,b|0);M=o;o=0;if(M&1)break;Ri(d,5,18,18,16,16,a);c[j>>2]=0;jr(j,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[j>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,j|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(j);break a}while(0);kr(j);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=22;o=0;mb(71,a|0,18,b|0);M=o;o=0;if(M&1)break;Ri(d,6,20,20,18,18,a);c[k>>2]=0;jr(k,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[k>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,k|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(k);break a}while(0);kr(k);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=30;o=0;mb(71,a|0,20,b|0);M=o;o=0;if(M&1)break;Ri(d,7,22,22,20,20,a);c[l>>2]=0;jr(l,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[l>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,l|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(l);break a}while(0);kr(l);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=36;o=0;mb(71,a|0,24,b|0);M=o;o=0;if(M&1)break;Ri(d,8,24,24,22,22,a);c[m>>2]=0;jr(m,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[m>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,m|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(m);break a}while(0);kr(m);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=44;o=0;mb(71,a|0,28,b|0);M=o;o=0;if(M&1)break;Ri(d,9,26,26,24,24,a);c[n>>2]=0;jr(n,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[n>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,n|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(n);break a}while(0);kr(n);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=62;o=0;mb(71,a|0,36,b|0);M=o;o=0;if(M&1)break;Ri(d,10,32,32,14,14,a);c[p>>2]=0;jr(p,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[p>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,p|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(p);break a}while(0);kr(p);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=86;o=0;mb(71,a|0,42,b|0);M=o;o=0;if(M&1)break;Ri(d,11,36,36,16,16,a);c[q>>2]=0;jr(q,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[q>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,q|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(q);break a}while(0);kr(q);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=114;o=0;mb(71,a|0,48,b|0);M=o;o=0;if(M&1)break;Ri(d,12,40,40,18,18,a);c[r>>2]=0;jr(r,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[r>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,r|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(r);break a}while(0);kr(r);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=144;o=0;mb(71,a|0,56,b|0);M=o;o=0;if(M&1)break;Ri(d,13,44,44,20,20,a);c[s>>2]=0;jr(s,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[s>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,s|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(s);break a}while(0);kr(s);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=174;o=0;mb(71,a|0,68,b|0);M=o;o=0;if(M&1)break;Ri(d,14,48,48,22,22,a);c[t>>2]=0;jr(t,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[t>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,t|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(t);break a}while(0);kr(t);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=2;c[b+4>>2]=102;o=0;mb(71,a|0,42,b|0);M=o;o=0;if(M&1)break;Ri(d,15,52,52,24,24,a);c[u>>2]=0;jr(u,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[u>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,u|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(u);break a}while(0);kr(u);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=2;c[b+4>>2]=140;o=0;mb(71,a|0,56,b|0);M=o;o=0;if(M&1)break;Ri(d,16,64,64,14,14,a);c[v>>2]=0;jr(v,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[v>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,v|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(v);break a}while(0);kr(v);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=4;c[b+4>>2]=92;o=0;mb(71,a|0,36,b|0);M=o;o=0;if(M&1)break;Ri(d,17,72,72,16,16,a);c[w>>2]=0;jr(w,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[w>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,w|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(w);break a}while(0);kr(w);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=4;c[b+4>>2]=114;o=0;mb(71,a|0,48,b|0);M=o;o=0;if(M&1)break;Ri(d,18,80,80,18,18,a);c[x>>2]=0;jr(x,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[x>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,x|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(x);break a}while(0);kr(x);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=4;c[b+4>>2]=144;o=0;mb(71,a|0,56,b|0);M=o;o=0;if(M&1)break;Ri(d,19,88,88,20,20,a);c[y>>2]=0;jr(y,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[y>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,y|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(y);break a}while(0);kr(y);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=4;c[b+4>>2]=174;o=0;mb(71,a|0,68,b|0);M=o;o=0;if(M&1)break;Ri(d,20,96,96,22,22,a);c[z>>2]=0;jr(z,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[z>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,z|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(z);break a}while(0);kr(z);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=6;c[b+4>>2]=136;o=0;mb(71,a|0,56,b|0);M=o;o=0;if(M&1)break;Ri(d,21,104,104,24,24,a);c[A>>2]=0;jr(A,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[A>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,A|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(A);break a}while(0);kr(A);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=6;c[b+4>>2]=175;o=0;mb(71,a|0,68,b|0);M=o;o=0;if(M&1)break;Ri(d,22,120,120,18,18,a);c[B>>2]=0;jr(B,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[B>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,B|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(B);break a}while(0);kr(B);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=8;c[b+4>>2]=163;o=0;mb(71,a|0,62,b|0);M=o;o=0;if(M&1)break;Ri(d,23,132,132,20,20,a);c[C>>2]=0;jr(C,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[C>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,C|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(C);break a}while(0);kr(C);e=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=8;c[b+4>>2]=156;o=0;d=qa(111,8)|0;M=o;o=0;if(M&1)break;c[d>>2]=2;c[d+4>>2]=155;o=0;ub(60,a|0,62,b|0,d|0);M=o;o=0;if(M&1)break;Ri(e,24,144,144,22,22,a);c[D>>2]=0;jr(D,e);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[D>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,D|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(D);break a}while(0);kr(D);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=5;o=0;mb(71,a|0,7,b|0);M=o;o=0;if(M&1)break;Ri(d,25,8,18,6,16,a);c[E>>2]=0;jr(E,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[E>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,E|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(E);break a}while(0);kr(E);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=10;o=0;mb(71,a|0,11,b|0);M=o;o=0;if(M&1)break;Ri(d,26,8,32,6,14,a);c[F>>2]=0;jr(F,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[F>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,F|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(F);break a}while(0);kr(F);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=16;o=0;mb(71,a|0,14,b|0);M=o;o=0;if(M&1)break;Ri(d,27,12,26,10,24,a);c[G>>2]=0;jr(G,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[G>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,G|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(G);break a}while(0);kr(G);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=22;o=0;mb(71,a|0,18,b|0);M=o;o=0;if(M&1)break;Ri(d,28,12,36,10,16,a);c[H>>2]=0;jr(H,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[H>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,H|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(H);break a}while(0);kr(H);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=32;o=0;mb(71,a|0,24,b|0);M=o;o=0;if(M&1)break;Ri(d,29,16,36,14,16,a);c[I>>2]=0;jr(I,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[I>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,I|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(I);break a}while(0);kr(I);d=Sz(36)|0;o=0;a=qa(111,16)|0;M=o;o=0;if(M&1)a=cc()|0;else{o=0;b=qa(111,8)|0;M=o;o=0;do if(!(M&1)){c[b>>2]=1;c[b+4>>2]=49;o=0;mb(71,a|0,28,b|0);M=o;o=0;if(M&1)break;Ri(d,30,16,48,14,22,a);c[J>>2]=0;jr(J,d);a=c[1114]|0;do if(a>>>0<(c[1115]|0)>>>0){c[a>>2]=0;jr(a,c[J>>2]|0);c[1114]=(c[1114]|0)+4}else{o=0;ma(126,4452,J|0);M=o;o=0;if(!(M&1))break;a=cc()|0;kr(J);break a}while(0);kr(J);i=K;return (c[1114]|0)-(c[1113]|0)>>2|0}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(e);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break a}while(0);M=cc()|0;Uz(a);a=M}Uz(d);break}M=cc()|0;Uz(a);a=M}Uz(d);break}M=cc()|0;Uz(a);a=M}Uz(d);break}L=cc()|0;Uz(a);a=L;L=185}while(0);if((L|0)==185)Uz(e);bc(a|0);return 0}function Ri(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;c[a+4>>2]=0;c[a>>2]=4472;c[a+8>>2]=b;c[a+12>>2]=d;c[a+16>>2]=e;c[a+20>>2]=f;c[a+24>>2]=g;c[a+28>>2]=h;b=a+32|0;c[b>>2]=0;a=c[h>>2]|0;d=c[h+4>>2]|0;f=(c[h+8>>2]|0)-d>>2;if(!f)g=0;else{e=0;g=0;do{h=c[d+(e<<2)>>2]|0;g=($((c[h+4>>2]|0)+a|0,c[h>>2]|0)|0)+g|0;e=e+1|0}while((e|0)!=(f|0))}c[b>>2]=g;return}function Si(a){a=a|0;c[a>>2]=4472;a=c[a+28>>2]|0;if(a){Pi(a);Uz(a)}return}function Ti(a){a=a|0;Si(a);Uz(a);return}function Ui(a){a=a|0;return c[a+12>>2]|0}function Vi(a){a=a|0;return c[a+16>>2]|0}function Wi(a){a=a|0;return c[a+20>>2]|0}function Xi(a){a=a|0;return c[a+24>>2]|0}function Yi(a){a=a|0;return c[a+32>>2]|0}function Zi(a){a=a|0;return c[a+28>>2]|0}function _i(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;e=g;if((d|b)&1){g=Ob(8)|0;zq(g,48267);c[g>>2]=29736;Hc(g|0,24,146)}a:do if((c[7681]|0)>0){f=0;while(1){lr(e,(c[1113]|0)+(f<<2)|0);a=c[e>>2]|0;if((c[a+12>>2]|0)==(b|0)?(c[a+16>>2]|0)==(d|0):0)break;kr(e);f=f+1|0;if((f|0)>=(c[7681]|0))break a}i=g;return a|0}while(0);g=Ob(8)|0;zq(g,48307);c[g>>2]=29736;Hc(g|0,24,146);return 0}function $i(a,b,d){a=a|0;b=b|0;d=d|0;$d(a,b);c[a>>2]=c[a>>2]|c[d>>2];a=a+4|0;if(!(c[a>>2]|0))xe(a,c[d+4>>2]|0);return}function aj(a){a=a|0;var b=0;b=a+4|0;c[b>>2]=0;xe(b,0);c[a>>2]=0;return}function bj(a,b){a=a|0;b=b|0;var d=0;d=a+4|0;c[d>>2]=0;xe(d,0);c[a>>2]=b;return}function cj(a,b){a=a|0;b=b|0;do switch(c[b>>2]|0){case 1:{b=2;break}case 2:{b=4;break}case 3:{b=8;break}case 4:{b=16;break}case 5:{b=32;break}case 6:{b=64;break}case 7:{b=128;break}case 8:{b=256;break}case 9:{b=512;break}case 10:{b=1024;break}case 11:{b=2048;break}case 12:{b=4096;break}case 13:{b=8192;break}case 14:{b=16384;break}case 15:{b=32768;break}case 16:{b=65536;break}case 17:{b=131072;break}default:{b=Ob(8)|0;o=0;ma(103,b|0,48331);a=o;o=0;if(a&1){a=cc()|0;Nb(b|0);bc(a|0)}else Hc(b|0,240,66)}}while(0);return (c[a>>2]&b|0)!=0|0}function dj(a){a=a|0;return (c[a>>2]|0)<0|0}function ej(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;we(b,a+4|0);i=d;return c[b>>2]|0}function fj(a){a=a|0;Vz(c[a+4>>2]|0);return}function gj(a){a=a|0;var b=0;if((a|0)!=0?(b=(iC(a)|0)+1|0,(b|0)!=0):0){b=Tz((b|0)>-1?b:-1)|0;gC(b,a)|0}else b=0;return b|0}function hj(a){a=a|0;c[a+4>>2]=0;c[a>>2]=4516;return}function ij(a,b){a=a|0;b=b|0;zq(a,b);c[a>>2]=4516;return}function jj(a){a=a|0;Aq(a);return}function kj(a){a=a|0;Aq(a);Uz(a);return}function lj(){if((a[888]|0)==0?(Hb(888)|0)!=0:0){c[7683]=0;c[7682]=4516;Ec(76,30728,n|0)|0;Cc(888)}return 30728}function mj(a,b){a=a|0;b=b|0;var d=0;d=c[b>>2]|0;uj(a,c[d+8>>2]|0,c[d+12>>2]|0);c[a>>2]=4536;Ud(a+16|0,b);return}function nj(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;k=i;i=i+32|0;h=k+12|0;j=k;l=c[e+16>>2]|0;m=c[(c[l>>2]|0)+8>>2]|0;Pd(j,g);o=0;ub(m|0,h|0,l|0,f|0,j|0);f=o;o=0;if(f&1){m=cc()|0;Sd(j);bc(m|0)}Ae(g,c[h+8>>2]|0);Sd(h);Sd(j);h=c[e+8>>2]|0;j=g+8|0;if((h|0)>0){e=0;do{m=(c[(c[j>>2]|0)+8>>2]|0)+e|0;a[m>>0]=(d[m>>0]|0)^255;e=e+1|0}while((e|0)<(h|0))}Pd(b,g);i=k;return}function oj(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;j=i;i=i+16|0;h=j;g=c[e+16>>2]|0;$c[c[(c[g>>2]|0)+12>>2]&511](h,g);g=$(c[e+12>>2]|0,c[e+8>>2]|0)|0;o=0;ma(87,b|0,g|0);f=o;o=0;if(f&1){j=cc()|0;Sd(h);bc(j|0)}f=h+8|0;if((g|0)>0){e=(c[b+8>>2]|0)+8|0;b=0;do{a[(c[e>>2]|0)+b>>0]=(d[(c[(c[f>>2]|0)+8>>2]|0)+b>>0]|0)^255;b=b+1|0}while((b|0)<(g|0))}Sd(h);i=j;return}function pj(a){a=a|0;a=c[a+16>>2]|0;return bd[c[(c[a>>2]|0)+16>>2]&255](a)|0}function qj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;j=i;i=i+16|0;g=j+4|0;h=j;k=Sz(20)|0;a=c[a+16>>2]|0;o=0;f=Ya(c[(c[a>>2]|0)+20>>2]|0,a|0,b|0,d|0,e|0,f|0)|0;e=o;o=0;do if(!(e&1)){c[h>>2]=f;o=0;ma(127,k|0,h|0);e=o;o=0;if(e&1){f=cc()|0;Vd(h);break}else{c[g>>2]=0;Ie(g,k);Vd(h);i=j;return c[g>>2]|0}}else f=cc()|0;while(0);Uz(k);bc(f|0);return 0}function rj(a){a=a|0;a=c[a+16>>2]|0;return bd[c[(c[a>>2]|0)+24>>2]&255](a)|0}function sj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Ud(b,a+16|0);i=d;return c[b>>2]|0}function tj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=i;i=i+16|0;b=e+4|0;d=e;f=Sz(20)|0;a=c[a+16>>2]|0;o=0;a=qa(c[(c[a>>2]|0)+32>>2]|0,a|0)|0;g=o;o=0;do if(!(g&1)){c[d>>2]=a;o=0;ma(127,f|0,d|0);g=o;o=0;if(g&1){a=cc()|0;Vd(d);break}else{c[b>>2]=0;Ie(b,f);Vd(d);i=e;return c[b>>2]|0}}else a=cc()|0;while(0);Uz(f);bc(a|0);return 0}function uj(a,b,d){a=a|0;b=b|0;d=d|0;c[a+4>>2]=0;c[a>>2]=4580;c[a+8>>2]=b;c[a+12>>2]=d;return}function vj(a){a=a|0;return}function wj(a){a=a|0;Uz(a);return}function xj(a){a=a|0;return 0}function yj(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Ob(8)|0;o=0;ma(103,b|0,48358);a=o;o=0;if(a&1){a=cc()|0;Nb(b|0);bc(a|0)}else Hc(b|0,240,66);return 0}function zj(a){a=a|0;return 0}function Aj(a){a=a|0;var b=0;a=Ob(8)|0;o=0;ma(103,a|0,48407);b=o;o=0;if(b&1){b=cc()|0;Nb(a|0);bc(b|0)}else Hc(a|0,240,66);return 0}function Bj(a){a=a|0;var b=0,d=0,e=0,f=0;f=i;i=i+16|0;b=f+4|0;d=f;e=Sz(20)|0;c[d>>2]=0;Ie(d,a);o=0;ma(127,e|0,d|0);a=o;o=0;if(a&1){f=cc()|0;Vd(d);Uz(e);bc(f|0)}else{c[b>>2]=0;Ie(b,e);Vd(d);i=f;return c[b>>2]|0}return 0}function Cj(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=4624;c[a+8>>2]=b;return}function Dj(a){a=a|0;return}function Ej(a){a=a|0;Uz(a);return}function Fj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;j=i;i=i+16|0;f=j+8|0;g=j;c[a>>2]=0;h=a+4|0;c[h>>2]=0;c[a+8>>2]=0;_d(f,d);$d(g,e);o=0;Oa(43,b|0,f|0,g|0,a|0,0,0,0);b=o;o=0;do if(!(b&1)){ze(g+4|0);ce(f);if((c[a>>2]|0)==(c[h>>2]|0)){f=Ob(8)|0;zq(f,48456);c[f>>2]=29736;o=0;mb(55,f|0,24,146);o=0;f=cc()|0;break}else{i=j;return}}else{j=cc()|0;ze(g+4|0);ce(f);f=j}while(0);me(a);bc(f|0)}function Gj(b,d,e,f,g,h,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0.0,n=0,p=0.0,q=0,r=0.0,s=0.0,t=0.0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;Q=i;i=i+128|0;R=Q+112|0;k=Q+108|0;n=Q+104|0;q=Q+96|0;B=Q+92|0;A=Q+88|0;z=Q+84|0;C=Q+80|0;E=Q+76|0;P=Q+64|0;F=Q+60|0;G=Q+56|0;H=Q+48|0;J=Q+40|0;I=Q+32|0;K=Q+24|0;L=Q+16|0;N=Q+8|0;O=Q;do if((j|0)<=4){c[R>>2]=0;Qe(R,0);l=c[b+8>>2]|0;y=c[(c[l>>2]|0)+12>>2]|0;_d(n,d);$d(q,e);o=0;l=ya(y|0,l|0,n|0,q|0)|0;y=o;o=0;a:do if(y&1){k=cc(24)|0;P=D;ze(q+4|0);ce(n);if((P|0)==(Xb(24)|0)){fc(k|0)|0;o=0;ob(44);P=o;o=0;if(P&1)w=6;else w=65}}else{c[k>>2]=l;Qe(R,l);be(k);ze(q+4|0);ce(n);y=f+4|0;k=0;x=0;while(1){l=c[f>>2]|0;if(x>>>0>=(c[y>>2]|0)-l>>2>>>0){w=24;break}Pe(B,l+(x<<2)|0);o=0;l=qa(112,c[B>>2]|0)|0;w=o;o=0;if(w&1){w=19;break}c[A>>2]=l;o=0;n=qa(113,l|0)|0;w=o;o=0;if(w&1){w=20;break}o=0;l=qa(112,c[R>>2]|0)|0;w=o;o=0;if(w&1){w=20;break}c[z>>2]=l;o=0;l=qa(113,l|0)|0;w=o;o=0;if(w&1){w=21;break}q=a[n>>0]|0;w=(q&1)==0;q=w?(q&255)>>>1:c[n+4>>2]|0;S=a[l>>0]|0;v=(S&1)==0;b:do if((q|0)==((v?(S&255)>>>1:c[l+4>>2]|0)|0)){n=w?n+1|0:c[n+8>>2]|0;l=v?l+1|0:c[l+8>>2]|0;if(!w){l=(bC(n,l,q)|0)==0;break}if(!q)l=1;else while(1){if((a[n>>0]|0)!=(a[l>>0]|0)){l=0;break b}q=q+-1|0;if(!q){l=1;break}else{n=n+1|0;l=l+1|0}}}else l=0;while(0);ne(z);ne(A);k=k|l;be(B);if(l){w=24;break}else x=x+1|0}if((w|0)==19)k=cc()|0;else if((w|0)==20){k=cc()|0;w=22}else if((w|0)==21){k=cc()|0;ne(z);w=22}else if((w|0)==24){c:do if(k)k=c[R>>2]|0;else{c[E>>2]=0;k=c[R>>2]|0;Qe(E,k);o=0;l=ya(98,E|0,g|0,h|0)|0;S=o;o=0;do if(S&1)k=cc()|0;else{c[C>>2]=l;n=c[y>>2]|0;if(n>>>0>=(c[f+8>>2]|0)>>>0){o=0;ma(128,f|0,C|0);S=o;o=0;if(S&1){k=cc()|0;be(C);break}}else{c[n>>2]=0;Qe(n,l);c[y>>2]=(c[y>>2]|0)+4}be(C);be(E);break c}while(0);be(E);break a}while(0);o=0;k=qa(114,k|0)|0;S=o;o=0;if(S&1){w=6;break}oe(P,k);q=c[P+8>>2]|0;n=q+12|0;q=q+8|0;d:do if((c[n>>2]|0)!=(c[q>>2]|0)){o=0;v=qa(142,c[d>>2]|0)|0;S=o;o=0;e:do if(!(S&1)?(o=0,M=qa(143,c[d>>2]|0)|0,S=o,o=0,!(S&1)):0){p=+(v|0);m=+(M|0);k=c[q>>2]|0;f:do if(((c[n>>2]|0)-k|0)>0){l=0;r=0.0;s=0.0;while(1){tq(F,k+(l<<2)|0);k=c[F>>2]|0;o=0;t=+Ka(c[(c[k>>2]|0)+8>>2]|0,k|0);S=o;o=0;if(S&1)break;o=0;u=+Ka(c[(c[k>>2]|0)+12>>2]|0,k|0);S=o;o=0;if(S&1)break;p=t<p?t:p;m=u<m?u:m;r=t>r?t:r;s=u>s?u:s;uq(F);l=l+1|0;k=c[q>>2]|0;if((l|0)>=((c[n>>2]|0)-k>>2|0))break f}k=cc()|0;uq(F);break e}else{r=0.0;s=0.0}while(0);do if(p>100.0){o=0;k=Ya(69,c[d>>2]|0,0,0,~~p|0,M|0)|0;S=o;o=0;if(S&1){w=36;break e}c[G>>2]=k;$d(H,e);o=0;Oa(43,b|0,G|0,H|0,f|0,g|0,h|0,j+1|0);S=o;o=0;if(S&1){k=cc()|0;ze(H+4|0);ce(G);break e}else{ze(H+4|0);ce(G);break}}while(0);do if(m>100.0){o=0;k=Ya(69,c[d>>2]|0,0,0,v|0,~~m|0)|0;S=o;o=0;if(S&1){w=36;break e}c[J>>2]=k;$d(I,e);o=0;Oa(43,b|0,J|0,I|0,f|0,g|0,h|0,j+1|0);S=o;o=0;if(S&1){k=cc()|0;ze(I+4|0);ce(J);break e}else{ze(I+4|0);ce(J);break}}while(0);do if(r<+(v+-100|0)){k=~~r;o=0;l=Ya(69,c[d>>2]|0,k|0,0,v-k|0,M|0)|0;S=o;o=0;if(S&1){w=36;break e}c[K>>2]=l;$d(L,e);o=0;Oa(43,b|0,K|0,L|0,f|0,k+g|0,h|0,j+1|0);S=o;o=0;if(S&1){k=cc()|0;ze(L+4|0);ce(K);break e}else{ze(L+4|0);ce(K);break}}while(0);if(!(s<+(M+-100|0)))break d;l=~~s;o=0;k=Ya(69,c[d>>2]|0,0,l|0,v|0,M-l|0)|0;S=o;o=0;if(!(S&1)){c[N>>2]=k;$d(O,e);o=0;Oa(43,b|0,N|0,O|0,f|0,g|0,l+h|0,j+1|0);S=o;o=0;if(S&1){k=cc()|0;ze(O+4|0);ce(N);break}else{ze(O+4|0);ce(N);break d}}else w=36}else w=36;while(0);if((w|0)==36)k=cc()|0;pe(P);break a}while(0);pe(P);w=65;break}if((w|0)==22)ne(A);be(B)}while(0);if((w|0)==6)k=cc()|0;else if((w|0)==65){be(R);break}be(R);bc(k|0)}while(0);i=Q;return}function Hj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0.0,h=0.0,j=0.0,k=0,l=0,m=0.0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;y=i;i=i+80|0;t=y+68|0;e=y+64|0;A=y+52|0;z=y+40|0;s=y+36|0;r=y+32|0;x=y+28|0;u=y+16|0;v=y+4|0;w=y;oe(A,gp(c[a>>2]|0)|0);q=c[A+8>>2]|0;p=q+12|0;q=q+8|0;a:do if((c[p>>2]|0)==(c[q>>2]|0))Pe(e,a);else{o=0;f=qa(111,20)|0;n=o;o=0;if(n&1)e=cc()|0;else{c[f+4>>2]=0;c[f>>2]=29756;c[f+8>>2]=0;c[f+12>>2]=0;c[f+16>>2]=0;Dq(z,f);l=c[z+8>>2]|0;n=l+8|0;m=+(b|0);j=+(d|0);k=l+12|0;l=l+16|0;f=c[q>>2]|0;b:do if(((c[p>>2]|0)-f|0)>0){d=0;while(1){tq(s,f+(d<<2)|0);o=0;b=qa(111,16)|0;f=o;o=0;if(f&1){f=15;break}f=c[s>>2]|0;o=0;h=+Ka(c[(c[f>>2]|0)+8>>2]|0,f|0);B=o;o=0;if(B&1){e=b;f=16;break}o=0;g=+Ka(c[(c[f>>2]|0)+12>>2]|0,f|0);B=o;o=0;if(B&1){e=b;f=16;break}o=0;wa(42,b|0,+(m+h),+(j+g));B=o;o=0;if(B&1){e=b;f=16;break}c[r>>2]=0;vq(r,b);f=c[k>>2]|0;if(f>>>0>=(c[l>>2]|0)>>>0){o=0;ma(101,n|0,r|0);B=o;o=0;if(B&1){f=17;break}}else{c[f>>2]=0;vq(f,c[r>>2]|0);c[k>>2]=(c[k>>2]|0)+4}uq(r);uq(s);d=d+1|0;f=c[q>>2]|0;if((d|0)>=((c[p>>2]|0)-f>>2|0)){f=19;break b}}if((f|0)==15)e=cc()|0;else if((f|0)==16){B=cc()|0;Uz(e);e=B}else if((f|0)==17){e=cc()|0;uq(r)}uq(s)}else f=19;while(0);do if((f|0)==19){o=0;b=qa(111,40)|0;B=o;o=0;if(B&1){e=cc()|0;break}o=0;f=qa(112,c[a>>2]|0)|0;B=o;o=0;if(B&1)e=cc()|0;else{c[x>>2]=f;o=0;ma(129,u|0,c[a>>2]|0);B=o;o=0;if(B&1)e=cc()|0;else{oe(v,z);o=0;f=qa(144,c[a>>2]|0)|0;B=o;o=0;if(!(B&1)?(c[w>>2]=f,o=0,c[t>>2]=c[w>>2],ia(45,b|0,x|0,u|0,v|0,t|0),B=o,o=0,!(B&1)):0){c[e>>2]=0;Qe(e,b);pe(v);Sd(u);ne(x);pe(z);break a}e=cc()|0;pe(v);Sd(u)}ne(x)}Uz(b)}while(0);pe(z)}pe(A);bc(e|0)}while(0);pe(A);i=y;return c[e>>2]|0}function Ij(a){a=a|0;return}function Jj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;e=g+8|0;f=g;h=c[(c[b>>2]|0)+12>>2]|0;_d(e,d);$d(f,4500);o=0;ub(h|0,a|0,b|0,e|0,f|0);b=o;o=0;if(b&1){h=cc()|0;ze(f+4|0);ce(e);bc(h|0)}else{ze(f+4|0);ce(e);i=g;return}}function Kj(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;Zp(d,b);o=0;ma(130,a|0,d|0);b=o;o=0;if(b&1){e=cc()|0;Yd(d);bc(e|0)}else{Yd(d);c[a>>2]=4648;i=e;return}}function Lj(a){a=a|0;Qr(a);return}function Mj(a){a=a|0;Qr(a);Uz(a);return}function Nj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;m=i;i=i+64|0;q=m+56|0;p=m+28|0;g=m+24|0;e=m+20|0;n=m+8|0;k=m+4|0;l=m;f=On(b)|0;c[q>>2]=f;c[g>>2]=0;Ke(g,f);o=0;f=qa(145,d|0)|0;j=o;o=0;do if(j&1){e=cc()|0;r=12}else{c[e>>2]=f;o=0;mb(72,p|0,g|0,e|0);j=o;o=0;if(j&1){r=cc()|0;ze(e);e=r;r=12;break}ze(e);Yd(g);o=0;mb(44,n|0,p|0,d|0);j=o;o=0;a:do if(j&1)e=cc()|0;else{c[a>>2]=0;g=a+4|0;c[g>>2]=0;c[a+8>>2]=0;h=n+4|0;j=a+8|0;e=c[n>>2]|0;b:do if((c[h>>2]|0)!=(e|0)){d=0;while(1){Rr(l,e+(d<<2)|0);o=0;e=Wa(84,b|0,l|0)|0;f=o;o=0;do if(f&1){e=cc(24)|0;f=D;r=16}else{c[k>>2]=e;f=c[g>>2]|0;if(f>>>0>=(c[j>>2]|0)>>>0){o=0;ma(131,a|0,k|0);f=o;o=0;if(f&1){e=cc(24)|0;f=D;ir(k);r=16;break}}else{c[f>>2]=0;Hr(f,e);c[g>>2]=(c[g>>2]|0)+4}ir(k);Tr(l)}while(0);if((r|0)==16){r=0;Tr(l);if((f|0)!=(Xb(24)|0))break;fc(e|0)|0;o=0;ob(44);f=o;o=0;if(f&1){r=19;break}}d=d+1|0;e=c[n>>2]|0;if(d>>>0>=(c[h>>2]|0)-e>>2>>>0)break b}if((r|0)==19)e=cc()|0;Vr(a);Ur(n);break a}while(0);Ur(n);Pj(p);Yd(q);i=m;return}while(0);Pj(p)}while(0);if((r|0)==12)Yd(g);Yd(q);bc(e|0)}function Oj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;e=f;Zp(e,b);o=0;mb(73,a+4|0,e|0,d|0);d=o;o=0;if(d&1){f=cc()|0;Yd(e);bc(f|0)}else{Yd(e);c[a>>2]=4672;i=f;return}}function Pj(a){a=a|0;Wr(a+4|0);return}function Qj(a){a=a|0;Wr(a+4|0);Uz(a);return}function Rj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;x=i;i=i+96|0;B=x+84|0;t=x+64|0;A=x+52|0;z=x+40|0;u=x+28|0;v=x+16|0;w=x+12|0;y=x;d=dj(d)|0;p=b+4|0;Zp(B,p);q=c[B>>2]|0;o=0;r=qa(122,q|0)|0;n=o;o=0;a:do if(!(n&1)?(o=0,s=qa(121,q|0)|0,n=o,o=0,!(n&1)):0){n=~~(+(r|0)/(+(c[7026]|0)*4.0)*3.0);g=c[7025]|0;n=d|(n|0)<(g|0)?g:n;g=t+4|0;h=t+8|0;j=t+12|0;k=t+16|0;b:do if((n|0)<=(r|0)){l=(s|0)>0;m=n+-1|0;c:while(1){c[t>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;c[t+12>>2]=0;c[t+16>>2]=0;if(l){d=0;f=0;do{e=d&1;do if(eq(q,f,m)|0){d=e+d|0;e=t+(d<<2)|0;c[e>>2]=(c[e>>2]|0)+1}else{if(e){e=t+(d<<2)|0;c[e>>2]=(c[e>>2]|0)+1;break}if((d|0)!=4){d=d+1|0;e=t+(d<<2)|0;c[e>>2]=(c[e>>2]|0)+1;break}o=0;d=qa(146,t|0)|0;e=o;o=0;if(e&1){f=5;break c}if(d){o=0;d=kb(56,p|0,t|0,m|0,f|0)|0;e=o;o=0;if(e&1){f=5;break c}if(d){c[t>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;c[t+12>>2]=0;c[t+16>>2]=0;d=0;break}}c[t>>2]=c[h>>2];c[g>>2]=c[j>>2];c[h>>2]=c[k>>2];c[j>>2]=1;c[k>>2]=0;d=3}while(0);f=f+1|0}while((f|0)<(s|0))}o=0;d=qa(146,t|0)|0;f=o;o=0;if(f&1){f=6;break}if(d?(o=0,kb(56,p|0,t|0,m|0,s|0)|0,f=o,o=0,f&1):0){f=6;break}m=m+n|0;if((m|0)>=(r|0))break b}if((f|0)==5){d=cc()|0;f=8;break a}else if((f|0)==6){d=cc()|0;f=8;break a}}while(0);o=0;ma(132,A|0,b|0);b=o;o=0;if(!(b&1)){c[a>>2]=0;g=a+4|0;c[g>>2]=0;c[a+8>>2]=0;h=A+4|0;j=u+4|0;k=z+4|0;l=u+8|0;m=z+8|0;n=a+8|0;d=c[A>>2]|0;d:do if((c[h>>2]|0)!=(d|0)){f=0;while(1){o=0;ma(133,z|0,d+(f*12|0)|0);b=o;o=0;if(b&1){f=39;break}o=0;ma(133,v|0,z|0);b=o;o=0;if(b&1){f=40;break}o=0;ma(134,u|0,v|0);b=o;o=0;if(b&1){f=41;break}Yr(z);c[z>>2]=c[u>>2];c[k>>2]=c[j>>2];c[m>>2]=c[l>>2];c[l>>2]=0;c[j>>2]=0;c[u>>2]=0;Zr(u);Zr(v);o=0;e=qa(111,20)|0;b=o;o=0;if(b&1){f=40;break}o=0;ma(133,y|0,z|0);b=o;o=0;if(b&1){f=42;break}o=0;ma(135,e|0,y|0);b=o;o=0;if(b&1){f=43;break}c[w>>2]=0;_r(w,e);d=c[g>>2]|0;if(d>>>0>=(c[n>>2]|0)>>>0){o=0;ma(136,a|0,w|0);b=o;o=0;if(b&1){f=44;break}}else{c[d>>2]=0;_r(d,c[w>>2]|0);c[g>>2]=(c[g>>2]|0)+4}Tr(w);Zr(y);Zr(z);f=f+1|0;d=c[A>>2]|0;if(f>>>0>=(((c[h>>2]|0)-d|0)/12|0)>>>0)break d}if((f|0)==39)d=cc()|0;else if((f|0)==40){d=cc()|0;f=46}else if((f|0)==41){d=cc()|0;Zr(v);f=46}else if((f|0)==42){d=cc()|0;f=45}else if((f|0)==43){d=cc()|0;Zr(y);f=45}else if((f|0)==44){d=cc()|0;Tr(w);Zr(y);f=46}if((f|0)==45){Uz(e);f=46}if((f|0)==46)Zr(z);Ur(a);as(A);break a}while(0);as(A);Yd(B);i=x;return}else f=7}else f=7;while(0);if((f|0)==7){d=cc()|0;f=8}Yd(B);bc(d|0)}function Sj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;J=i;i=i+128|0;f=J+124|0;Y=J+112|0;W=J+108|0;X=J+104|0;V=J+100|0;U=J+88|0;B=J+76|0;G=J+64|0;T=J+60|0;M=J+48|0;N=J+44|0;Q=J+40|0;H=J+36|0;I=J+32|0;R=J+28|0;S=J+24|0;C=J+20|0;D=J+16|0;K=J+12|0;L=J+8|0;E=J+4|0;F=J;b=b+8|0;Xr(Y,b);d=c[Y+4>>2]|0;e=c[Y>>2]|0;g=d-e|0;z=g>>2;if((g|0)<12){b=Ob(8)|0;zq(b,48456);c[b>>2]=29736;o=0;mb(55,b|0,24,146);o=0;b=cc()|0}else{c[a>>2]=0;A=a+4|0;c[A>>2]=0;c[a+8>>2]=0;a:do if((z|0)==3){o=0;ma(137,a|0,b|0);X=o;o=0;if(X&1)e=5;else e=82}else{c[f>>2]=85;o=0;mb(74,e|0,d|0,f|0);y=o;o=0;if(!(y&1)){r=z+-2|0;s=z+-1|0;t=U+4|0;u=U+8|0;v=U+8|0;w=B+4|0;x=B+8|0;y=a+8|0;b:do if((g|0)>8){p=0;c:while(1){es(W,(c[Y>>2]|0)+(p<<2)|0);p=p+1|0;d:do if((p|0)<(s|0)){q=p;while(1){es(X,(c[Y>>2]|0)+(q<<2)|0);f=c[W>>2]|0;o=0;h=+Ka(44,f|0);g=o;o=0;if(g&1){e=17;break c}g=c[X>>2]|0;o=0;j=+Ka(44,g|0);e=o;o=0;if(e&1){e=17;break c}o=0;k=+Ka(44,f|0);e=o;o=0;if(e&1){e=17;break c}o=0;l=+Ka(44,g|0);e=o;o=0;if(e&1){e=17;break c}o=0;m=+Ka(44,f|0);e=o;o=0;if(e&1){e=17;break c}o=0;n=+Ka(44,g|0);e=o;o=0;if(e&1){e=17;break c}if(+O(+(m-n))>.5?(h-j)/(l<k?l:k)>=.05000000074505806:0)break;b=q+1|0;e:do if((b|0)<(z|0)){while(1){es(V,(c[Y>>2]|0)+(b<<2)|0);o=0;k=+Ka(44,g|0);e=o;o=0;if(e&1){e=26;break c}e=c[V>>2]|0;o=0;l=+Ka(44,e|0);d=o;o=0;if(d&1){e=26;break c}o=0;m=+Ka(44,g|0);d=o;o=0;if(d&1){e=26;break c}o=0;n=+Ka(44,e|0);d=o;o=0;if(d&1){e=26;break c}o=0;h=+Ka(44,g|0);d=o;o=0;if(d&1){e=26;break c}o=0;j=+Ka(44,e|0);d=o;o=0;if(d&1){e=26;break c}if(+O(+(h-j))>.5?(k-l)/(n<m?n:m)>=.05000000074505806:0)break;c[U>>2]=0;c[t>>2]=0;c[u>>2]=0;o=0;ma(138,U|0,W|0);d=o;o=0;if(d&1){e=51;break c}d=c[t>>2]|0;if((d|0)==(c[v>>2]|0)){o=0;ma(138,U|0,X|0);d=o;o=0;if(d&1){e=51;break c}d=c[t>>2]|0}else{c[d>>2]=0;hs(d,g);d=(c[t>>2]|0)+4|0;c[t>>2]=d}if((d|0)==(c[v>>2]|0)){o=0;ma(138,U|0,V|0);e=o;o=0;if(e&1){e=51;break c}}else{c[d>>2]=0;hs(d,e);c[t>>2]=(c[t>>2]|0)+4}o=0;ma(133,G|0,U|0);e=o;o=0;if(e&1){e=51;break c}o=0;ma(134,B|0,G|0);e=o;o=0;if(e&1){e=52;break c}Yr(U);c[U>>2]=c[B>>2];c[t>>2]=c[w>>2];c[v>>2]=c[x>>2];c[x>>2]=0;c[w>>2]=0;c[B>>2]=0;Zr(B);Zr(G);o=0;d=qa(111,20)|0;e=o;o=0;if(e&1){e=51;break c}o=0;ma(133,M|0,U|0);e=o;o=0;if(e&1){e=53;break c}o=0;ma(135,d|0,M|0);e=o;o=0;if(e&1){e=54;break c}c[T>>2]=0;_r(T,d);Zr(M);e=c[T>>2]|0;o=0;d=qa(147,e|0)|0;Z=o;o=0;if(Z&1){e=56;break c}c[Q>>2]=d;c[N>>2]=0;vq(N,d);o=0;d=qa(148,e|0)|0;Z=o;o=0;if(Z&1){e=57;break c}c[I>>2]=d;c[H>>2]=0;vq(H,d);o=0;l=+eb(43,N|0,H|0);Z=o;o=0;if(Z&1){e=58;break c}uq(H);fs(I);uq(N);fs(Q);o=0;d=qa(149,e|0)|0;Z=o;o=0;if(Z&1){e=56;break c}c[S>>2]=d;c[R>>2]=0;vq(R,d);o=0;d=qa(148,e|0)|0;Z=o;o=0;if(Z&1){e=60;break c}c[D>>2]=d;c[C>>2]=0;vq(C,d);o=0;k=+eb(43,R|0,C|0);Z=o;o=0;if(Z&1){e=61;break c}uq(C);fs(D);uq(R);fs(S);o=0;d=qa(147,e|0)|0;Z=o;o=0;if(Z&1){e=56;break c}c[L>>2]=d;c[K>>2]=0;vq(K,d);o=0;d=qa(149,e|0)|0;Z=o;o=0;if(Z&1){e=63;break c}c[F>>2]=d;c[E>>2]=0;vq(E,d);o=0;h=+eb(43,K|0,E|0);Z=o;o=0;if(Z&1){e=64;break c}uq(E);fs(F);uq(K);fs(L);o=0;j=+Ka(44,f|0);Z=o;o=0;if(Z&1){e=56;break c}n=(l+h)/(j*2.0);do if(!(n>180.0|n<9.0)){if(+O(+((l-h)/(h<l?h:l)))>=.10000000149011612)break;n=+P(+(l*l+h*h));if(+O(+((k-n)/(n<k?n:k)))>=.10000000149011612)break;d=c[A>>2]|0;o=0;if((d|0)==(c[y>>2]|0)){bs(a,U);Z=o;o=0;if(Z&1){e=56;break c}else break}Xr(d,U);Z=o;o=0;if(Z&1){e=56;break c}c[A>>2]=(c[A>>2]|0)+12}while(0);Tr(T);Zr(U);fs(V);b=b+1|0;if((b|0)>=(z|0))break e}fs(V)}while(0);fs(X);q=q+1|0;if((q|0)>=(s|0))break d}fs(X)}while(0);fs(W);if((p|0)>=(r|0))break b}switch(e|0){case 17:{b=cc()|0;break}case 26:{b=cc()|0;e=75;break}case 51:{b=cc()|0;e=74;break}case 52:{b=cc()|0;Zr(G);e=74;break}case 53:{b=cc()|0;e=55;break}case 54:{b=cc()|0;Zr(M);e=55;break}case 56:{b=cc()|0;e=73;break}case 57:{b=cc()|0;e=59;break}case 58:{b=cc()|0;uq(H);fs(I);e=59;break}case 60:{b=cc()|0;e=62;break}case 61:{b=cc()|0;uq(C);fs(D);e=62;break}case 63:{b=cc()|0;e=65;break}case 64:{b=cc()|0;uq(E);fs(F);e=65;break}}if((e|0)==55){Uz(d);e=74}else if((e|0)==59){uq(N);fs(Q);e=73}else if((e|0)==62){uq(R);fs(S);e=73}else if((e|0)==65){uq(K);fs(L);e=73}if((e|0)==73){Tr(T);e=74}if((e|0)==74){Zr(U);e=75}if((e|0)==75)fs(V);fs(X);fs(W);break a}while(0);if((c[a>>2]|0)==(c[A>>2]|0)){e=Ob(8)|0;zq(e,48456);c[e>>2]=29736;o=0;mb(55,e|0,24,146);o=0;e=5}else e=82}else e=5}while(0);if((e|0)==5)b=cc()|0;else if((e|0)==82){Zr(Y);i=J;return}as(a)}Zr(Y);bc(b|0)}function Tj(a){a=a|0;Co(a);c[a+16>>2]=0;c[a>>2]=4692;c[a+12>>2]=4720;return}function Uj(a){a=a|0;Eo(a);return}function Vj(a){a=a|0;Uj(a+-12|0);return}function Wj(a){a=a|0;Uj(a);Uz(a);return}function Xj(a){a=a|0;Wj(a+-12|0);return}function Yj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;x=i;i=i+112|0;l=x+96|0;z=x+80|0;f=x+76|0;y=x+64|0;g=x+56|0;u=x+52|0;m=x+48|0;v=x+36|0;w=x+32|0;p=x+28|0;q=x+16|0;r=x+4|0;s=x;c[a>>2]=0;t=a+4|0;c[t>>2]=0;c[a+8>>2]=0;o=0;d=qa(150,c[d>>2]|0)|0;k=o;o=0;do if(k&1)d=cc()|0;else{c[f>>2]=d;o=0;ma(139,z|0,f|0);k=o;o=0;if(k&1){d=cc()|0;Yd(f);break}Yd(f);$d(g,e);o=0;mb(43,y|0,z|0,g|0);k=o;o=0;if(k&1){d=cc()|0;ze(g+4|0)}else{ze(g+4|0);e=y+4|0;j=a+8|0;a:do if((c[e>>2]|0)==(c[y>>2]|0))h=37;else{k=0;while(1){o=0;d=qa(151,b|0)|0;g=o;o=0;b:do if(!(g&1)?(o=0,n=qa(118,c[(c[y>>2]|0)+(k<<2)>>2]|0)|0,g=o,o=0,!(g&1)):0){c[m>>2]=n;o=0;d=Wa(86,d|0,m|0)|0;g=o;o=0;if(g&1){d=cc(24)|0;f=D;Yd(m);h=32;break}c[u>>2]=d;Yd(m);o=0;ma(85,v|0,c[(c[y>>2]|0)+(k<<2)>>2]|0);g=o;o=0;if(g&1){d=cc(24)|0;f=D}else{o=0;g=qa(111,40)|0;f=o;o=0;c:do if(f&1){d=cc(24)|0;f=D}else{o=0;f=qa(116,d|0)|0;A=o;o=0;if(A&1){d=cc(24)|0;f=D}else{c[p>>2]=f;o=0;ma(86,q|0,d|0);A=o;o=0;do if(A&1){d=cc(24)|0;f=D}else{oe(r,v);c[s>>2]=12;o=0;c[l>>2]=c[s>>2];ia(45,g|0,p|0,q|0,r|0,l|0);A=o;o=0;if(A&1){d=cc(24)|0;f=D;pe(r);Sd(q);break}c[w>>2]=0;Qe(w,g);pe(r);Sd(q);ne(p);d=c[t>>2]|0;do if((d|0)==(c[j>>2]|0)){o=0;ma(140,a|0,w|0);A=o;o=0;if(!(A&1))break;d=cc(24)|0;f=D;be(w);break c}else{c[d>>2]=0;Qe(d,c[w>>2]|0);c[t>>2]=(c[t>>2]|0)+4}while(0);be(w);pe(v);aq(u);break b}while(0);ne(p)}Uz(g)}while(0);pe(v)}aq(u);h=32}else h=20;while(0);if((h|0)==20){d=cc(24)|0;f=D;h=32}if((h|0)==32){h=0;if((f|0)!=(Xb(24)|0))break a;fc(d|0)|0;o=0;ob(44);A=o;o=0;if(A&1)break}k=k+1|0;if(k>>>0>=(c[e>>2]|0)-(c[y>>2]|0)>>2>>>0){h=37;break a}}d=cc()|0;h=36}while(0);do if((h|0)==37)if((c[a>>2]|0)==(c[t>>2]|0)){d=Ob(8)|0;zq(d,48456);c[d>>2]=29736;o=0;mb(55,d|0,24,146);o=0;d=cc()|0;h=36;break}else{Vr(y);Lj(z);i=x;return}while(0);Vr(y)}Lj(z)}while(0);me(a);bc(d|0)}function Zj(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Yj(a,b+-12|0,c,d);return}function _j(a){a=a|0;var b=0;c[a+4>>2]=0;c[a>>2]=4744;b=a+8|0;c[b>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;o=0;ka(312,a+20|0);a=o;o=0;if(a&1){a=cc()|0;js(b);bc(a|0)}else return}function $j(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=i;i=i+16|0;c=e+8|0;d=e;$d(c,4500);o=0;ma(141,a|0,c|0);f=o;o=0;do if(!(f&1)){ze(c+4|0);_d(d,b);o=0;c=Wa(87,a|0,d|0)|0;f=o;o=0;if(f&1){c=cc()|0;ce(d);break}else{ce(d);i=e;return c|0}}else{f=cc()|0;ze(c+4|0);c=f}while(0);bc(c|0);return 0}function ak(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+160|0;B=S+156|0;f=S+152|0;g=S+148|0;k=S+144|0;l=S+140|0;m=S+136|0;n=S+132|0;p=S+128|0;q=S+124|0;r=S+120|0;s=S+116|0;h=S+112|0;j=S+108|0;t=S+104|0;u=S+96|0;v=S+88|0;x=S+84|0;y=S+80|0;z=S+76|0;A=S+72|0;C=S+68|0;D=S+64|0;E=S+60|0;F=S+56|0;G=S+48|0;H=S+40|0;I=S+32|0;J=S+24|0;K=S+20|0;M=S+16|0;N=S+12|0;O=S+8|0;P=S;ks(a+20|0,b)|0;Q=a+8|0;e=c[Q>>2]|0;R=a+12|0;d=c[R>>2]|0;if((d|0)!=(e|0))do{L=d+-4|0;c[R>>2]=L;de(L);d=c[R>>2]|0}while((d|0)!=(e|0));L=dj(b)|0;c[f>>2]=16;c[B>>2]=c[f>>2];if((((((((((!(cj(b,B)|0)?(c[g>>2]=15,c[B>>2]=c[g>>2],!(cj(b,B)|0)):0)?(c[k>>2]=16,c[B>>2]=c[k>>2],!(cj(b,B)|0)):0)?(c[l>>2]=8,c[B>>2]=c[l>>2],!(cj(b,B)|0)):0)?(c[m>>2]=7,c[B>>2]=c[m>>2],!(cj(b,B)|0)):0)?(c[n>>2]=2,c[B>>2]=c[n>>2],!(cj(b,B)|0)):0)?(c[p>>2]=3,c[B>>2]=c[p>>2],!(cj(b,B)|0)):0)?(c[q>>2]=4,c[B>>2]=c[q>>2],!(cj(b,B)|0)):0)?(c[r>>2]=5,c[B>>2]=c[r>>2],!(cj(b,B)|0)):0)?(c[s>>2]=9,c[B>>2]=c[s>>2],!(cj(b,B)|0)):0)?(c[h>>2]=13,c[B>>2]=c[h>>2],!(cj(b,B)|0)):0){c[j>>2]=14;c[B>>2]=c[j>>2];d=cj(b,B)|0}else d=1;e=d^1;do if(L|e)w=23;else{d=Sz(20)|0;$d(u,b);o=0;ma(142,d|0,u|0);s=o;o=0;if(s&1){S=cc()|0;ze(u+4|0);Uz(d);d=S;break}c[t>>2]=0;Me(t,d);d=c[R>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(143,Q|0,t|0);s=o;o=0;if(s&1){d=cc()|0;de(t);ze(u+4|0);break}}else{c[d>>2]=0;Me(d,c[t>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(t);ze(u+4|0);w=23}while(0);a:do if((w|0)==23){c[v>>2]=12;c[B>>2]=c[v>>2];if(cj(b,B)|0){d=Sz(12)|0;o=0;ka(299,d|0);w=o;o=0;if(w&1){S=cc()|0;Uz(d);d=S;break}c[x>>2]=0;Me(x,d);d=c[R>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(143,Q|0,x|0);w=o;o=0;if(w&1){d=cc()|0;de(x);break}}else{c[d>>2]=0;Me(d,c[x>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(x)}c[y>>2]=6;c[B>>2]=c[y>>2];if(cj(b,B)|0){d=Sz(12)|0;o=0;ka(313,d|0);y=o;o=0;if(y&1){S=cc()|0;Uz(d);d=S;break}c[z>>2]=0;Me(z,d);d=c[R>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(143,Q|0,z|0);y=o;o=0;if(y&1){d=cc()|0;de(z);break}}else{c[d>>2]=0;Me(d,c[z>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(z)}c[A>>2]=1;c[B>>2]=c[A>>2];if(cj(b,B)|0){d=Sz(32)|0;o=0;ka(314,d|0);A=o;o=0;if(A&1){S=cc()|0;Uz(d);d=S;break}c[C>>2]=0;Me(C,d);d=c[R>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(143,Q|0,C|0);A=o;o=0;if(A&1){d=cc()|0;de(C);break}}else{c[d>>2]=0;Me(d,c[C>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(C)}c[D>>2]=11;c[B>>2]=c[D>>2];if(cj(b,B)|0){d=Sz(12)|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d>>2]=27792;c[E>>2]=0;Me(E,d);d=c[R>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(143,Q|0,E|0);D=o;o=0;if(D&1){d=cc()|0;de(E);break}}else{c[d>>2]=0;Me(d,c[E>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(E)}if(!(L^1|e)){d=Sz(20)|0;$d(G,b);o=0;ma(142,d|0,G|0);E=o;o=0;if(E&1){S=cc()|0;ze(G+4|0);Uz(d);d=S;break}c[F>>2]=0;Me(F,d);d=c[R>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(143,Q|0,F|0);E=o;o=0;if(E&1){d=cc()|0;de(F);ze(G+4|0);break}}else{c[d>>2]=0;Me(d,c[F>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(F);ze(G+4|0)}if((c[R>>2]|0)==(c[Q>>2]|0)){if(!L){d=Sz(20)|0;$d(I,b);o=0;ma(142,d|0,I|0);G=o;o=0;if(G&1){S=cc()|0;ze(I+4|0);Uz(d);d=S;break}c[H>>2]=0;Me(H,d);d=c[R>>2]|0;if(d>>>0>=(c[a+16>>2]|0)>>>0){o=0;ma(143,Q|0,H|0);G=o;o=0;if(G&1){d=cc()|0;de(H);ze(I+4|0);break}}else{c[d>>2]=0;Me(d,c[H>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(H);ze(I+4|0)}d=Sz(12)|0;o=0;ka(299,d|0);I=o;o=0;if(I&1){S=cc()|0;Uz(d);d=S;break}c[J>>2]=0;Me(J,d);d=c[R>>2]|0;e=a+16|0;if(d>>>0>=(c[e>>2]|0)>>>0){o=0;ma(143,Q|0,J|0);a=o;o=0;if(a&1){d=cc()|0;de(J);break}}else{c[d>>2]=0;Me(d,c[J>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(J);d=Sz(12)|0;o=0;ka(313,d|0);J=o;o=0;if(J&1){S=cc()|0;Uz(d);d=S;break}c[K>>2]=0;Me(K,d);d=c[R>>2]|0;if(d>>>0>=(c[e>>2]|0)>>>0){o=0;ma(143,Q|0,K|0);J=o;o=0;if(J&1){d=cc()|0;de(K);break}}else{c[d>>2]=0;Me(d,c[K>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(K);d=Sz(32)|0;o=0;ka(314,d|0);K=o;o=0;if(K&1){S=cc()|0;Uz(d);d=S;break}c[M>>2]=0;Me(M,d);d=c[R>>2]|0;if(d>>>0>=(c[e>>2]|0)>>>0){o=0;ma(143,Q|0,M|0);K=o;o=0;if(K&1){d=cc()|0;de(M);break}}else{c[d>>2]=0;Me(d,c[M>>2]|0);c[R>>2]=(c[R>>2]|0)+4}de(M);d=Sz(12)|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d>>2]=27792;c[N>>2]=0;Me(N,d);d=c[R>>2]|0;do if(d>>>0<(c[e>>2]|0)>>>0){c[d>>2]=0;Me(d,c[N>>2]|0);c[R>>2]=(c[R>>2]|0)+4}else{o=0;ma(143,Q|0,N|0);M=o;o=0;if(!(M&1))break;d=cc()|0;de(N);break a}while(0);de(N);if(L){d=Sz(20)|0;$d(P,b);o=0;ma(142,d|0,P|0);b=o;o=0;if(b&1){S=cc()|0;ze(P+4|0);Uz(d);d=S;break}c[O>>2]=0;Me(O,d);d=c[R>>2]|0;do if(d>>>0<(c[e>>2]|0)>>>0){c[d>>2]=0;Me(d,c[O>>2]|0);c[R>>2]=(c[R>>2]|0)+4}else{o=0;ma(143,Q|0,O|0);R=o;o=0;if(!(R&1))break;d=cc()|0;de(O);ze(P+4|0);break a}while(0);de(O);ze(P+4|0)}}i=S;return}while(0);bc(d|0)}function bk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+16|0;k=l+8|0;f=l;g=a+12|0;h=a+8|0;e=a+20|0;j=f+4|0;a=c[h>>2]|0;a:do if((c[g>>2]|0)!=(a|0)){d=0;while(1){a=c[a+(d<<2)>>2]|0;m=c[(c[a>>2]|0)+12>>2]|0;_d(k,b);$d(f,e);o=0;a=ya(m|0,a|0,k|0,f|0)|0;m=o;o=0;if(!(m&1)){d=3;break}a=cc(24)|0;m=D;ze(j);ce(k);if((m|0)!=(Xb(24)|0)){d=7;break}fc(a|0)|0;$b();d=d+1|0;a=c[h>>2]|0;if(d>>>0>=(c[g>>2]|0)-a>>2>>>0)break a}if((d|0)==3){ze(j);ce(k);i=l;return a|0}else if((d|0)==7)bc(a|0)}while(0);m=Ob(8)|0;zq(m,48456);c[m>>2]=29736;Hc(m|0,24,146);return 0}function ck(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;d=f+8|0;e=f;$d(d,c);o=0;ma(141,a|0,d|0);c=o;o=0;do if(!(c&1)){ze(d+4|0);_d(e,b);o=0;d=Wa(87,a|0,e|0)|0;a=o;o=0;if(a&1){d=cc()|0;ce(e);break}else{ce(e);i=f;return d|0}}else{f=cc()|0;ze(d+4|0);d=f}while(0);bc(d|0);return 0}function dk(a){a=a|0;c[a>>2]=4744;ze(a+24|0);js(a+8|0);return}function ek(a){a=a|0;dk(a);Uz(a);return}function fk(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d;cl(a);c[a>>2]=4768;b=a+8|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[e>>2]=0;o=0;mb(75,a+20|0,80,e|0);e=o;o=0;if(e&1){e=cc()|0;IC(b);il(a);bc(e|0)}else{c[a+32>>2]=0;i=d;return}}function gk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0.0,j=0,k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;A=i;i=i+64|0;u=A+60|0;v=A+56|0;f=A+52|0;B=A+40|0;r=A+36|0;t=A+32|0;w=A+28|0;x=A+16|0;y=A+4|0;z=A;q=b+20|0;s=(c[b+24>>2]|0)-(c[q>>2]|0)>>2;cr(q,0);cr(q,s);Wd(f,e);o=0;ma(144,b|0,f|0);s=o;o=0;if(s&1){C=cc()|0;bq(f);f=C}else{bq(f);e=ik(b)|0;s=b+8|0;if(!(a[s>>0]&1)){a[s+1>>0]=0;a[s>>0]=0;n=b+12|0}else{a[c[b+16>>2]>>0]=0;n=b+12|0;c[n>>2]=0}m=b+32|0;f=e;while(1){l=jk(b,f)|0;if((l|0)==-1){C=7;break}NC(s,1,l&255)|0;g=f+8|0;j=a[s>>0]|0;if(!(j&1))j=(j&255)>>>1;else j=c[n>>2]|0;if(j>>>0>1?kk(48494,a[48473+l>>0]|0)|0:0)break;if((g|0)<(c[m>>2]|0))f=g;else break}if((C|0)==7){C=Ob(8)|0;c[C+4>>2]=0;c[C>>2]=30552;Hc(C|0,856,146)}p=f+7|0;l=c[q>>2]|0;if((g|0)<(c[m>>2]|0)?(c[l+(p<<2)>>2]|0)<(((c[l+(-2+g<<2)>>2]|0)+((c[l+(-3+g<<2)>>2]|0)+((c[l+(-4+g<<2)>>2]|0)+((c[l+(-5+g<<2)>>2]|0)+((c[l+(-6+g<<2)>>2]|0)+((c[l+(-7+g<<2)>>2]|0)+(c[l+(f<<2)>>2]|0))))))|0)/2|0|0):0){C=Ob(8)|0;c[C+4>>2]=0;c[C>>2]=30552;Hc(C|0,856,146)}lk(b,e);f=s+1|0;b=b+16|0;m=0;while(1){g=a[s>>0]|0;l=(g&1)==0;if(l)j=(g&255)>>>1;else j=c[n>>2]|0;if((m|0)>=(j|0)){j=g;break}if(l){g=s+1+m|0;j=f}else{j=c[b>>2]|0;g=j+m|0}a[j+m>>0]=a[48473+(a[g>>0]|0)>>0]|0;m=m+1|0}if(l)g=f;else g=c[b>>2]|0;if(!(kk(48494,a[g>>0]|0)|0)){C=Ob(8)|0;c[C+4>>2]=0;c[C>>2]=30552;Hc(C|0,856,146)}if(l)g=(j&255)>>>1;else{g=c[n>>2]|0;f=c[b>>2]|0}if(!(kk(48494,a[f+(g+-1)>>0]|0)|0)){C=Ob(8)|0;c[C+4>>2]=0;c[C>>2]=30552;Hc(C|0,856,146)}if(l)f=(j&255)>>>1;else f=c[n>>2]|0;if((f|0)<4){C=Ob(8)|0;c[C+4>>2]=0;c[C>>2]=30552;Hc(C|0,856,146)}if(l)f=(j&255)>>>1;else f=c[n>>2]|0;VC(s,f+-1|0,1)|0;VC(s,0,1)|0;if((e|0)>0){g=c[q>>2]|0;j=0;f=0;do{f=(c[g+(j<<2)>>2]|0)+f|0;j=j+1|0}while((j|0)<(e|0));j=f}else j=0;if((e|0)<(p|0)){g=c[q>>2]|0;f=j;do{f=(c[g+(e<<2)>>2]|0)+f|0;e=e+1|0}while((e|0)<(p|0))}else f=j;k=+(f|0);ns(B,2);f=(c[B+8>>2]|0)+8|0;e=c[f>>2]|0;o=0;g=qa(111,16)|0;q=o;o=0;do if(!(q&1)){h=+(d|0);o=0;wa(43,g|0,+(+(j|0)),+h);d=o;o=0;if(d&1){f=cc()|0;Uz(g);break}c[r>>2]=0;os(r,g);vq(e,c[r>>2]|0);ps(r);f=(c[f>>2]|0)+4|0;o=0;e=qa(111,16)|0;r=o;o=0;if(!(r&1)){o=0;wa(43,e|0,+k,+h);r=o;o=0;if(r&1){f=cc()|0;Uz(e);break}c[t>>2]=0;os(t,e);vq(f,c[t>>2]|0);ps(t);o=0;e=qa(111,40)|0;t=o;o=0;if(!(t&1)){o=0;f=qa(111,20)|0;t=o;o=0;do if(!(t&1)){o=0;ma(94,f|0,s|0);t=o;o=0;if(t&1){A=cc()|0;Uz(f);f=A;break}c[w>>2]=0;cq(w,f);c[x+4>>2]=0;c[x>>2]=4084;c[x+8>>2]=0;oe(y,B);c[z>>2]=2;o=0;c[u>>2]=c[z>>2];ia(45,e|0,w|0,x|0,y|0,u|0);z=o;o=0;if(z&1){f=cc()|0;pe(y);Sd(x);ne(w);break}else{c[v>>2]=0;Qe(v,e);pe(y);Sd(x);ne(w);pe(B);i=A;return c[v>>2]|0}}else f=cc()|0;while(0);Uz(e)}else C=58}else C=58}else C=58;while(0);if((C|0)==58)f=cc()|0;pe(B)}bc(f|0);return 0}function hk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;c[a+32>>2]=0;e=bg(c[b>>2]|0,0)|0;g=Wf(c[b>>2]|0)|0;if((e|0)>=(g|0)){a=Ob(8)|0;c[a+4>>2]=0;c[a>>2]=30552;Hc(a|0,856,146)}if((e|0)<(g|0)){d=0;f=1;do{if(f^(c[(c[(c[(c[b>>2]|0)+20>>2]|0)+8>>2]|0)+(e>>5<<2)>>2]&1<<(e&31)|0)!=0)d=d+1|0;else{mk(a,d);d=1;f=f^1}e=e+1|0}while((e|0)<(g|0))}else d=0;mk(a,d);return}function ik(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=c[b+32>>2]|0;g=b+20|0;a:do if((f|0)>1){d=1;h=8;while(1){e=jk(b,d)|0;if((e|0)!=-1?kk(48494,a[48473+e>>0]|0)|0:0){if((d|0)==(h|0))e=0;else{e=d+1|0;i=e+1|0;j=i+1|0;k=j+1|0;l=k+1|0;e=(c[(c[g>>2]|0)+(l+1<<2)>>2]|0)+((c[(c[g>>2]|0)+(l<<2)>>2]|0)+((c[(c[g>>2]|0)+(k<<2)>>2]|0)+((c[(c[g>>2]|0)+(j<<2)>>2]|0)+((c[(c[g>>2]|0)+(i<<2)>>2]|0)+((c[(c[g>>2]|0)+(e<<2)>>2]|0)+(c[(c[g>>2]|0)+(d<<2)>>2]|0))))))|0}if((d|0)==1){d=1;break}if((c[(c[g>>2]|0)+(d+-1<<2)>>2]|0)>=((e|0)/2|0|0))break}d=d+2|0;if((d|0)>=(f|0))break a;else h=h+2|0}return d|0}while(0);l=Ob(8)|0;c[l+4>>2]=0;c[l>>2]=30552;Hc(l|0,856,146);return 0}function jk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:do if((b+7|0)<(c[a+32>>2]|0)){f=a+20|0;i=c[(c[f>>2]|0)+(b<<2)>>2]|0;a=(i|0)<2147483647?i:2147483647;i=(i|0)>0?i:0;d=b+2|0;g=c[(c[f>>2]|0)+(d<<2)>>2]|0;a=(g|0)<(a|0)?g:a;i=(g|0)>(i|0)?g:i;d=d+2|0;g=c[(c[f>>2]|0)+(d<<2)>>2]|0;a=(g|0)<(a|0)?g:a;i=(g|0)>(i|0)?g:i;d=c[(c[f>>2]|0)+(d+2<<2)>>2]|0;g=b+1|0;e=c[(c[f>>2]|0)+(g<<2)>>2]|0;h=(e|0)<2147483647?e:2147483647;e=(e|0)>0?e:0;g=g+2|0;j=c[(c[f>>2]|0)+(g<<2)>>2]|0;h=(j|0)<(h|0)?j:h;e=(j|0)>(e|0)?j:e;g=c[(c[f>>2]|0)+(g+2<<2)>>2]|0;a=((d|0)>(i|0)?d:i)+((d|0)<(a|0)?d:a)|0;e=((g|0)<(h|0)?g:h)+((g|0)>(e|0)?g:e)|0;f=c[f>>2]|0;g=128;h=0;d=0;do{g=g>>1;d=((c[f+(h+b<<2)>>2]|0)>((((h&1|0)==0?a:e)|0)/2|0|0)?g:0)|d;h=h+1|0}while((h|0)!=7);a=0;while(1){if((c[30736+(a<<2)>>2]|0)==(d|0))break a;a=a+1|0;if((a|0)>=20){a=-1;break}}}else a=-1;while(0);return a|0}function kk(a,b){a=a|0;b=b|0;return (dC(a,b<<24>>24)|0)!=0|0}function lk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;u=i;i=i+64|0;x=u+52|0;r=u+48|0;w=u+36|0;s=u+32|0;v=u+20|0;l=u+16|0;t=u+4|0;m=u;c[r>>2]=0;ms(x,4,r);c[s>>2]=0;o=0;mb(75,w|0,4,s|0);s=o;o=0;if(s&1)e=cc()|0;else{p=b+8|0;f=a[p>>0]|0;if(!(f&1))e=(f&255)>>>1;else e=c[b+12>>2]|0;r=e+-1|0;s=p+1|0;n=b+20|0;q=b+16|0;e=f;j=0;k=d;while(1){if(!(e&1))e=s;else e=c[q>>2]|0;b=c[x>>2]|0;f=c[w>>2]|0;g=c[n>>2]|0;h=6;e=c[30736+(a[e+j>>0]<<2)>>2]|0;while(1){y=h&1|e<<1&2;z=b+(y<<2)|0;c[z>>2]=(c[z>>2]|0)+(c[g+(h+k<<2)>>2]|0);y=f+(y<<2)|0;c[y>>2]=(c[y>>2]|0)+1;if((h|0)>0){h=h+-1|0;e=e>>1}else break}if((j|0)>=(r|0))break;e=a[p>>0]|0;j=j+1|0;k=k+8|0}c[l>>2]=0;o=0;mb(75,v|0,4,l|0);z=o;o=0;if(z&1)e=cc()|0;else{c[m>>2]=0;o=0;mb(75,t|0,4,m|0);z=o;o=0;do if(!(z&1)){l=c[t>>2]|0;e=c[x>>2]|0;b=c[w>>2]|0;m=c[v>>2]|0;f=0;do{c[l+(f<<2)>>2]=0;z=f+2|0;k=e+(z<<2)|0;y=b+(z<<2)|0;j=((c[k>>2]<<8|0)/(c[y>>2]|0)|0)+((c[e+(f<<2)>>2]<<8|0)/(c[b+(f<<2)>>2]|0)|0)>>1;c[l+(z<<2)>>2]=j;c[m+(f<<2)>>2]=j;c[m+(z<<2)>>2]=(c[k>>2]<<9|384|0)/(c[y>>2]|0)|0;f=f+1|0}while((f|0)!=2);k=(a[p>>0]&1)==0;h=c[n>>2]|0;j=0;a:while(1){if(k)e=s;else e=c[q>>2]|0;g=6;f=c[30736+(a[e+j>>0]<<2)>>2]|0;while(1){e=g&1|f<<1&2;b=c[h+(g+d<<2)>>2]<<8;if((b|0)<(c[l+(e<<2)>>2]|0)){b=25;break a}if((b|0)>(c[m+(e<<2)>>2]|0)){b=25;break a}if((g|0)>0){g=g+-1|0;f=f>>1}else break}if((j|0)>=(r|0)){b=29;break}j=j+1|0;d=d+8|0}if((b|0)==25){e=Ob(8)|0;c[e+4>>2]=0;c[e>>2]=30552;o=0;mb(55,e|0,856,146);o=0;e=cc()|0;br(t);break}else if((b|0)==29){br(t);br(v);br(w);br(x);i=u;return}}else e=cc()|0;while(0);br(v)}br(w)}br(x);bc(e|0)}function mk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;l=i;i=i+16|0;d=l;c[d>>2]=b;e=a+32|0;f=c[e>>2]|0;g=a+20|0;h=a+24|0;j=c[h>>2]|0;k=c[g>>2]|0;do if((f|0)>=(j-k>>2|0))if((j|0)==(c[a+28>>2]|0)){qs(g,d);break}else{c[j>>2]=b;c[h>>2]=j+4;break}else c[k+(f<<2)>>2]=b;while(0);c[e>>2]=(c[e>>2]|0)+1;i=l;return}function nk(a){a=a|0;cl(a);c[a>>2]=4796;return}function ok(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;v=u+8|0;e=u+4|0;t=u;s=Wf(c[b>>2]|0)|0;f=ag(c[b>>2]|0,0)|0;c[e>>2]=0;ms(v,6,e);e=c[v>>2]|0;d=(c[v+4>>2]|0)-e|0;n=d>>2;p=n+-1|0;q=n+-2|0;r=n+-2|0;a:do if((f|0)<(s|0)){m=(d|0)>8;d=e;h=0;g=f;l=0;e=f;while(1){if(l^(c[(c[(c[(c[b>>2]|0)+20>>2]|0)+8>>2]|0)+(g>>5<<2)>>2]&1<<(g&31)|0)!=0){f=d+(h<<2)|0;c[f>>2]=(c[f>>2]|0)+1;f=d;j=l}else{if((h|0)==(p|0)){o=0;d=ya(99,v|0,33288,179)|0;k=o;o=0;if(k&1){f=5;break}k=(d|0)<64;d=k?d:64;o=0;f=ya(99,v|0,33312,179)|0;j=o;o=0;if(j&1){f=5;break}h=(f|0)<(d|0);o=0;j=ya(99,v|0,33336,179)|0;w=o;o=0;if(w&1){f=5;break}d=(j|0)<((h?f:d)|0)?105:h?104:k?103:-1;if((d|0)>-1){f=e-((g-e|0)/2|0)|0;o=0;f=kb(57,c[b>>2]|0,((f|0)>0?f:0)|0,e|0,0)|0;w=o;o=0;if(w&1){f=6;break}if(f){f=14;break}}f=c[v>>2]|0;h=c[f+4>>2]|0;e=(c[f>>2]|0)+e|0;if(m){d=2;do{c[f+(d+-2<<2)>>2]=c[f+(d<<2)>>2];d=d+1|0}while((d|0)<(n|0))}c[f+(q<<2)>>2]=0;c[f+(p<<2)>>2]=0;d=r;e=e+h|0}else{f=d;d=h+1|0}c[f+(d<<2)>>2]=1;h=d;j=l^1}g=g+1|0;if((g|0)>=(s|0)){f=22;break a}else{d=f;l=j}}if((f|0)==5){d=cc()|0;break}else if((f|0)==6){d=cc()|0;break}else if((f|0)==14){c[t>>2]=0;o=0;mb(75,a|0,3,t|0);w=o;o=0;if(w&1){f=7;break}w=c[a>>2]|0;c[w>>2]=e;c[w+4>>2]=g;c[w+8>>2]=d;br(v);i=u;return}}else f=22;while(0);if((f|0)==22){w=Ob(8)|0;c[w+4>>2]=0;c[w>>2]=30552;o=0;mb(55,w|0,856,146);o=0;f=7}if((f|0)==7)d=cc()|0;br(v);bc(d|0)}function pk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;e=h;Wd(e,a);o=0;mb(76,e|0,d|0,b|0);g=o;o=0;if(g&1){h=cc()|0;bq(e);bc(h|0)}bq(e);e=-1;f=64;g=0;while(1){a=gl(b,30816+(g*24|0)|0,179)|0;d=(a|0)<(f|0);e=d?g:e;g=g+1|0;if((g|0)==107)break;else f=d?a:f}if((e|0)>-1){i=h;return e|0}else{h=Ob(8)|0;c[h+4>>2]=0;c[h>>2]=30552;Hc(h|0,856,146)}return 0}
function Nm(a,b,d,e,f,g,h,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;q=v;p=k+8|0;s=c[p>>2]|0;r=(c[s+12>>2]|0)-(c[s+8>>2]|0)>>2;c[q>>2]=0;Rs(s+8|0,r,q);q=f+d|0;r=j+-1|0;s=j+-2|0;t=j+-2|0;a:do if((f|0)>0){n=(j|0)>2;j=0;m=g;g=d;f=d;while(1){if(m^(eq(c[b>>2]|0,f,e)|0)){d=(c[(c[p>>2]|0)+8>>2]|0)+(j<<2)|0;c[d>>2]=(c[d>>2]|0)+1;d=m}else{if((j|0)==(r|0)){if((Om(k,h,204)|0)<107)break;d=c[(c[p>>2]|0)+8>>2]|0;l=c[d+4>>2]|0;g=(c[d>>2]|0)+g|0;if(n){j=0;do{c[d+(j<<2)>>2]=c[d+(j+2<<2)>>2];j=j+1|0}while((j|0)<(s|0))}c[d+(s<<2)>>2]=0;c[d+(r<<2)>>2]=0;j=t;g=g+l|0}else{d=c[(c[p>>2]|0)+8>>2]|0;j=j+1|0}c[d+(j<<2)>>2]=1;d=m^1}f=f+1|0;if((f|0)>=(q|0)){u=15;break a}else m=d}j=Sz(20)|0;o=0;ma(102,j|0,2);e=o;o=0;if(e&1){v=cc()|0;Uz(j);bc(v|0)}else{Fq(a,j);a=c[(c[a+8>>2]|0)+8>>2]|0;c[a>>2]=g;c[a+4>>2]=f;break}}else u=15;while(0);if((u|0)==15){c[a+4>>2]=0;c[a>>2]=29772;c[a+8>>2]=0}i=v;return}function Om(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=c[a+8>>2]|0;i=c[g+8>>2]|0;g=(c[g+12>>2]|0)-i|0;j=g>>2;if((g|0)>0){f=0;a=0;e=0;do{e=(c[i+(f<<2)>>2]|0)+e|0;a=(c[b+(f<<2)>>2]|0)+a|0;f=f+1|0}while((f|0)<(j|0))}else{a=0;e=0}a:do if((e|0)<(a|0))a=2147483647;else{h=(e<<8|0)/(a|0)|0;d=($(h,d)|0)>>8;if((g|0)>0){a=0;g=0;do{f=c[i+(g<<2)>>2]<<8;k=$(c[b+(g<<2)>>2]|0,h)|0;f=(f|0)>(k|0)?f-k|0:k-f|0;if((f|0)>(d|0)){a=2147483647;break a}a=f+a|0;g=g+1|0}while((g|0)<(j|0))}else a=0;a=(a|0)/(e|0)|0}while(0);return a|0}function Pm(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0.0,m=0.0,n=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0,u=0,v=0,w=0.0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;B=i;i=i+16|0;D=B+4|0;C=B;A=b+8|0;tq(D,(c[(c[A>>2]|0)+8>>2]|0)+(d<<2)|0);tq(C,(c[(c[A>>2]|0)+8>>2]|0)+(d+4<<2)|0);b=f+e|0;z=c[C>>2]|0;o=0;l=+Ka(c[(c[z>>2]|0)+8>>2]|0,z|0);z=o;o=0;do if((((!(z&1)?(j=c[D>>2]|0,o=0,m=+Ka(c[(c[j>>2]|0)+8>>2]|0,j|0),z=o,o=0,!(z&1)):0)?(n=l-m,o=0,p=+Ka(c[(c[j>>2]|0)+8>>2]|0,j|0),z=o,o=0,!(z&1)):0)?(q=+(g|0),w=p+ +(e|0)*n/q,o=0,r=+Ka(c[(c[j>>2]|0)+8>>2]|0,j|0),z=o,o=0,!(z&1)):0)?(x=r+ +(b|0)*n/q,k=~~+N(+((w+x)*.5+.5)),o=0,s=+Ka(c[(c[j>>2]|0)+12>>2]|0,j|0),z=o,o=0,!(z&1)):0){z=~~+N(+(s+.5));f=c[a>>2]|0;b=~~((w<x?x:w)+1.0);while(1){o=0;f=qa(121,f|0)|0;y=o;o=0;if(y&1){E=12;break}if((b|0)>=(f|0))break;f=c[a>>2]|0;if(!(eq(f,b+-1|0,z)|0)?eq(f,b,z)|0:0)break;b=b+1|0}if((E|0)==12){b=cc()|0;E=14;break}y=b-k|0;j=z;a:while(1){g=k+y|0;e=g+1|0;t=(k|0)>0;u=k+-1|0;v=k+1|0;while(1){b=c[a>>2]|0;do if(eq(b,k,j)|0){if(eq(b,g,j)|0)f=0;else f=(eq(b,e,j)|0)^1;j=j+h|0;if((j|0)>=1){o=0;b=qa(122,b|0)|0;F=o;o=0;if(F&1){E=11;break a}if((j|0)<(b+-1|0)){b=f;break}}b=1}else{if(t?eq(b,u,j)|0:0){k=u;continue a}o=0;b=qa(121,b|0)|0;F=o;o=0;if(F&1){E=11;break a}if((k|0)<(b+-1|0)?eq(c[a>>2]|0,v,j)|0:0){k=v;continue a}b=1;j=j-((j|0)==(z|0)?0:h)|0}while(0);if(b)break a}}if((E|0)==11){b=cc()|0;E=14;break}b=(c[(c[A>>2]|0)+8>>2]|0)+(d+8<<2)|0;o=0;f=qa(111,16)|0;F=o;o=0;if(!(F&1)){o=0;wa(42,f|0,+(+(k|0)),+(+(j|0)));F=o;o=0;if(F&1){b=cc()|0;Uz(f);break}else{vq(b,f);uq(C);uq(D);i=B;return}}else E=13}else E=13;while(0);if((E|0)==13){b=cc()|0;E=14}uq(C);uq(D);bc(b|0)}function Qm(a,b,d,e,f,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;j=j|0;var k=0.0,l=0,m=0,n=0.0,p=0,q=0,r=0,s=0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0;q=i;i=i+80|0;r=q+64|0;s=q+48|0;l=q+40|0;v=q+16|0;u=q;p=q+32|0;m=a+8|0;a=c[(c[(c[m>>2]|0)+8>>2]|0)+(d<<2)>>2]|0;C=+ld[c[(c[a>>2]|0)+8>>2]&63](a);d=c[(c[(c[m>>2]|0)+8>>2]|0)+(d<<2)>>2]|0;B=+ld[c[(c[d>>2]|0)+12>>2]&63](d);C=+C;B=+B;d=c[(c[(c[m>>2]|0)+8>>2]|0)+(e<<2)>>2]|0;A=+ld[c[(c[d>>2]|0)+8>>2]&63](d);e=c[(c[(c[m>>2]|0)+8>>2]|0)+(e<<2)>>2]|0;z=+ld[c[(c[e>>2]|0)+12>>2]&63](e);A=+A;z=+z;e=c[(c[(c[m>>2]|0)+8>>2]|0)+(f<<2)>>2]|0;y=+ld[c[(c[e>>2]|0)+8>>2]&63](e);f=c[(c[(c[m>>2]|0)+8>>2]|0)+(f<<2)>>2]|0;x=+ld[c[(c[f>>2]|0)+12>>2]&63](f);y=+y;x=+x;f=c[(c[(c[m>>2]|0)+8>>2]|0)+(h<<2)>>2]|0;w=+ld[c[(c[f>>2]|0)+8>>2]&63](f);h=c[(c[(c[m>>2]|0)+8>>2]|0)+(h<<2)>>2]|0;k=+ld[c[(c[h>>2]|0)+12>>2]&63](h);w=+w;k=+k;h=v;g[h>>2]=C;g[h+4>>2]=B;h=v+8|0;g[h>>2]=A;g[h+4>>2]=z;h=u;g[h>>2]=y;g[h+4>>2]=x;h=u+8|0;g[h>>2]=w;g[h+4>>2]=k;c[s>>2]=c[v>>2];c[s+4>>2]=c[v+4>>2];c[s+8>>2]=c[v+8>>2];c[s+12>>2]=c[v+12>>2];c[r>>2]=c[u>>2];c[r+4>>2]=c[u+4>>2];c[r+8>>2]=c[u+8>>2];c[r+12>>2]=c[u+12>>2];Rm(l,s,r);k=+g[l>>2];if(!(k==t)?(n=+g[l+4>>2],!(n==t)):0){a=~~+N(+(k+.5));d=~~+N(+(n+.5));if(((a|0)>=0?!((d|0)<0|(a|0)>=(ig(c[j>>2]|0)|0)):0)?(d|0)<(jg(c[j>>2]|0)|0):0){a=c[(c[m>>2]|0)+8>>2]|0;d=Sz(16)|0;o=0;wa(42,d|0,+k,+n);v=o;o=0;if(v&1){v=cc()|0;Uz(d);bc(v|0)}else{c[p>>2]=0;vq(p,d);vq(a+(b<<2)|0,c[p>>2]|0);uq(p);i=q;return}}v=Ob(8)|0;zq(v,49648);c[v>>2]=30552;Hc(v|0,856,146)}v=Ob(8)|0;zq(v,49590);c[v>>2]=30552;Hc(v|0,856,146)}function Rm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0;p=+g[b>>2];n=+g[b+8>>2];j=p-n;m=+g[c>>2];i=+g[c+8>>2];k=m-i;f=+g[b+4>>2];o=+g[b+12>>2];e=f-o;h=+g[c+4>>2];l=+g[c+12>>2];d=h-l;f=p*o-n*f;h=m*l-i*h;i=j*d-k*e;if(+O(+i)<1.0e-12){e=t;d=t}else{e=(f*d-e*h)/i;d=(k*f-j*h)/i}g[a>>2]=d;g[a+4>>2]=e;return}function Sm(a){a=a|0;var b=0,d=0,e=0,f=0,h=0.0,j=0,k=0,l=0,m=0,n=0,p=0,q=0;p=i;i=i+16|0;q=p;n=c[1318]|0;Ss(q,n);e=q+4|0;b=c[q>>2]|0;a:do if(((c[e>>2]|0)-b|0)>0){d=0;while(1){o=0;ma(164,b+(d*12|0)|0,8);m=o;o=0;if(m&1)break;d=d+1|0;b=c[q>>2]|0;if((d|0)>=(((c[e>>2]|0)-b|0)/12|0|0)){f=7;break a}}b=cc()|0}else f=7;while(0);do if((f|0)==7){o=0;ma(165,a|0,n<<3|0);m=o;o=0;if(m&1){b=cc()|0;break}m=c[q>>2]|0;if((n|0)>0){j=c[a>>2]|0;k=0;l=0;while(1){d=c[5276+(k<<2)>>2]|0;a=c[m+(k*12|0)>>2]|0;e=d&1;f=0;while(1){b=d&1;if((b|0)==(e|0)){h=0.0;do{h=h+1.0;d=d>>1;b=d&1}while((b|0)==(e|0))}else h=0.0;g[a+(7-f<<2)>>2]=h/17.0;f=f+1|0;if((f|0)==8)break;else e=b}b=c[m+(k*12|0)>>2]|0;d=0;e=l;while(1){c[j+(e<<2)>>2]=c[b+(d<<2)>>2];d=d+1|0;if((d|0)==8)break;else e=e+1|0}k=k+1|0;if((k|0)>=(n|0))break;else l=l+8|0}}Us(q);i=p;return}while(0);Us(q);bc(b|0)}function Tm(a,b,d){a=a|0;b=b|0;d=d|0;Zp(a,b);c[a+8>>2]=d;return}function Um(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;p=i;i=i+112|0;l=p+96|0;v=p+84|0;b=p+80|0;u=p+68|0;t=p+56|0;d=p+52|0;s=p+40|0;r=p+28|0;h=p+24|0;j=p+16|0;q=p;n=a+8|0;k=(c[n>>2]|0)/17|0;c[v>>2]=0;c[v+4>>2]=0;c[v+8>>2]=0;Zp(b,a);o=0;mb(94,v|0,k|0,b|0);g=o;o=0;do if(g&1){u=cc()|0;Yd(b);b=u}else{Yd(b);o=0;b=qa(122,c[a>>2]|0)|0;g=o;o=0;if(!(g&1)?(o=0,ma(166,u|0,b|0),g=o,o=0,!(g&1)):0){o=0;b=qa(122,c[a>>2]|0)|0;g=o;o=0;if(!(g&1)?(o=0,ma(166,t|0,b|0),g=o,o=0,!(g&1)):0){Zp(d,a);o=0;ia(52,t|0,k|0,v|0,d|0,u|0);g=o;o=0;do if(g&1){b=cc()|0;Yd(d)}else{Yd(d);o=0;ub(66,s|0,k|0,u|0,t|0);g=o;o=0;if(g&1){b=cc()|0;break}f=s+4|0;o=0;ma(166,r|0,((c[f>>2]|0)-(c[s>>2]|0)|0)/12|0|0);g=o;o=0;if(g&1)b=cc()|0;else{g=j+4|0;b=c[s>>2]|0;a:do if(((c[f>>2]|0)-b|0)>0){e=0;while(1){d=(c[r>>2]|0)+(e*12|0)|0;a=((c[b+(e*12|0)+4>>2]|0)-(c[b+(e*12|0)>>2]|0)|0)/12|0;c[h>>2]=0;o=0;mb(95,d|0,a|0,h|0);a=o;o=0;if(a&1)break;b=c[s>>2]|0;d=c[b+(e*12|0)>>2]|0;if(((c[b+(e*12|0)+4>>2]|0)-d|0)>0){a=0;do{if(c[d+(a*12|0)+8>>2]|0){Ys(j,d+(a*12|0)|0);c[(c[(c[r>>2]|0)+(e*12|0)>>2]|0)+(a<<2)>>2]=c[g>>2]}a=a+1|0;b=c[s>>2]|0;d=c[b+(e*12|0)>>2]|0}while((a|0)<(((c[b+(e*12|0)+4>>2]|0)-d|0)/12|0|0))}e=e+1|0;if((e|0)>=(((c[f>>2]|0)-b|0)/12|0|0)){d=25;break a}}b=cc()|0;d=22}else d=25;while(0);do if((d|0)==25){o=0;mb(96,q|0,k|0,r|0);j=o;o=0;if(j&1){b=cc()|0;d=22;break}o=0;b=ya(113,k|0,r|0,q|0)|0;k=o;o=0;do if((!(k&1)?(o=0,ma(167,r|0,b|0),k=o,o=0,!(k&1)):0)?(o=0,m=qa(111,32)|0,k=o,o=0,!(k&1)):0){o=0;mb(54,m|0,c[n>>2]|0,((c[r+4>>2]|0)-(c[r>>2]|0)|0)/12|0|0);n=o;o=0;if(n&1){b=cc()|0;Uz(m);break}else{c[l>>2]=0;Ke(l,m);_m(r,l);br(q);_s(r);$s(s);_s(t);_s(u);Xq(v);i=p;return c[l>>2]|0}}else d=30;while(0);if((d|0)==30)b=cc()|0;br(q)}while(0);_s(r)}$s(s)}while(0);_s(t)}else b=cc()|0;_s(u);break}b=cc()|0}while(0);Xq(v);bc(b|0);return 0}function Vm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0,h=0,j=0.0,k=0,l=0.0,m=0,n=0,p=0,q=0.0,r=0,s=0,t=0,u=0,v=0,w=0;t=i;i=i+32|0;r=t+24|0;v=t+12|0;s=t+8|0;n=t+4|0;u=t;q=+(ig(c[d>>2]|0)|0);q=(b|0)>0?q/+(b|0):q;g[r>>2]=q;p=ig(c[d>>2]|0)|0;c[s>>2]=0;ms(v,p,s);s=a+4|0;p=a+8|0;l=q;j=l*.75;l=l*1.5;k=1;f=0;m=2;a:while(1){o=0;h=qa(121,c[d>>2]|0)|0;b=o;o=0;if(b&1){h=11;break}b=c[d>>2]|0;if((m|0)<(h|0))h=0;else{h=27;break}while(1){o=0;b=qa(122,b|0)|0;w=o;o=0;if(w&1){h=10;break a}if((h|0)>=(b|0))break;b=c[d>>2]|0;if(eq(b,m,h)|0){w=(c[v>>2]|0)+(m<<2)|0;c[w>>2]=(c[w>>2]|0)+1}h=h+1|0}b=c[(c[v>>2]|0)+(m<<2)>>2]|0;o=0;h=qa(122,c[d>>2]|0)|0;w=o;o=0;if(w&1){h=11;break}b=(b|0)!=(h|0);do if(!(k|b)){e=+(m-f|0);g[n>>2]=e;if(e>j){f=c[s>>2]|0;b=(f|0)==(c[p>>2]|0);if(e>l)do{if(b){o=0;ma(168,a|0,r|0);w=o;o=0;if(w&1){h=9;break a}}else{g[f>>2]=q;c[s>>2]=f+4}e=e-q;g[n>>2]=e;f=c[s>>2]|0;b=(f|0)==(c[p>>2]|0)}while(e>l);if(b){o=0;ma(168,a|0,n|0);w=o;o=0;if(w&1){h=11;break a}else{b=1;f=m;break}}else{g[f>>2]=e;c[s>>2]=f+4;b=1;f=m;break}}else b=0}else b=b^1;while(0);k=b;m=m+1|0}b:do if((h|0)==9)b=cc()|0;else if((h|0)==10)b=cc()|0;else if((h|0)==11)b=cc()|0;else if((h|0)==27){o=0;b=qa(121,b|0)|0;w=o;o=0;do if(!(w&1)){e=+(b-f|0);j=q*1.5;f=c[s>>2]|0;b=(f|0)==(c[p>>2]|0);c:do if(e>j){while(1){if(b){o=0;ma(168,a|0,r|0);w=o;o=0;if(w&1)break}else{g[f>>2]=q;c[s>>2]=f+4}e=e-q;f=c[s>>2]|0;b=(f|0)==(c[p>>2]|0);if(!(e>j))break c}b=cc()|0;g[u>>2]=e;break b}while(0);g[u>>2]=e;if(b){o=0;ma(168,a|0,u|0);w=o;o=0;if(w&1)break}else{g[f>>2]=e;c[s>>2]=f+4}br(v);i=t;return}while(0);b=cc()|0}while(0);br(v);bc(b|0)}function Wm(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0,j=0,k=0,l=0,m=0.0,n=0.0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0.0;E=i;i=i+64|0;t=E+52|0;u=E+48|0;H=E+36|0;x=E+32|0;G=E+20|0;y=E+16|0;F=E+4|0;z=E;A=d+4|0;B=H+4|0;C=b+-1|0;a:do if((jg(c[e>>2]|0)|0)>0){v=(b|0)>1;w=(b|0)>0;D=0;b:while(1){if(((c[A>>2]|0)-(c[d>>2]|0)>>2|0)<(b|0)){j=4;break}h=(c[f>>2]|0)+(D*12|0)|0;c[t>>2]=0;Xs(h,b,t);h=(c[a>>2]|0)+(D*12|0)|0;c[u>>2]=-1;Xs(h,b,u);c[x>>2]=0;ms(H,1,x);h=c[H>>2]|0;c[h>>2]=(c[h>>2]|0)+2;h=0;k=1;l=2;while(1){o=0;j=qa(121,c[e>>2]|0)|0;s=o;o=0;if(s&1){j=11;break b}if((l|0)>=(j|0))break;if(eq(c[e>>2]|0,l,D)|0)if(!k){o=0;ma(148,H|0,((c[B>>2]|0)-(c[H>>2]|0)>>2)+1|0);s=o;o=0;if(s&1){j=11;break b}else{h=h+1|0;k=1}}else k=1;else if(k){o=0;ma(148,H|0,((c[B>>2]|0)-(c[H>>2]|0)>>2)+1|0);s=o;o=0;if(s&1){j=11;break b}else{h=h+1|0;k=0}}else k=0;s=(c[H>>2]|0)+(h<<2)|0;c[s>>2]=(c[s>>2]|0)+1;l=l+1|0}s=h+1|0;o=0;ma(148,H|0,((c[B>>2]|0)-(c[H>>2]|0)>>2)+1|0);r=o;o=0;if(r&1){j=12;break}c[y>>2]=0;o=0;mb(75,G|0,b|0,y|0);r=o;o=0;if(r&1){j=12;break}l=c[G>>2]|0;c[l>>2]=0;p=c[H>>2]|0;q=c[d>>2]|0;if(v&(h|0)>-1){k=1;h=0;j=0;do{h=(c[p+(j<<2)>>2]|0)+h|0;if(+(h|0)>+g[q+(k+-1<<2)>>2]){j=(((j|0)%2|0|0)==1&1)+j|0;h=c[p+(j<<2)>>2]|0;c[l+(k<<2)>>2]=j;k=k+1|0}j=j+1|0}while((k|0)<(b|0)&(j|0)<(s|0))}o=0;ma(169,F|0,b|0);r=o;o=0;if(r&1){j=22;break}if(w){r=0;do{q=(c[F>>2]|0)+(r*12|0)|0;g[z>>2]=0.0;o=0;mb(97,q|0,8,z|0);q=o;o=0;if(q&1){j=31;break b}h=c[G>>2]|0;q=c[h+(r<<2)>>2]|0;if((r|0)==(C|0))h=s;else h=c[h+(r+1<<2)>>2]|0;k=h-q|0;if((k+-7|0)>>>0<=2){h=(k|0)<8?k:8;p=c[H>>2]|0;if((h|0)>0){m=0.0;j=0;do{m=m+ +(c[p+(j+q<<2)>>2]|0);j=j+1|0}while((j|0)<(h|0))}else m=0.0;if((k|0)!=7){l=c[F>>2]|0;h=c[l+(r*12|0)>>2]|0;l=(c[l+(r*12|0)+4>>2]|0)-h|0;j=l>>2;if((l|0)>0){k=0;do{g[h+(k<<2)>>2]=+(c[p+(k+q<<2)>>2]|0)/m;k=k+1|0}while((k|0)<(j|0));p=h}else p=h}else{h=(c[d>>2]|0)+(r<<2)|0;j=(c[F>>2]|0)+(r*12|0)|0;k=c[j>>2]|0;l=0;do{g[k+(l<<2)>>2]=+(c[p+(l+q<<2)>>2]|0)/+g[h>>2];l=l+1|0}while((l|0)<7);n=+g[h>>2];p=c[j>>2]|0;g[p+28>>2]=(n-m)/n}l=c[6943]|0;h=0;m=3402823466385288598117041.0e14;q=0;do{j=q<<3;n=0.0;k=0;while(1){if((k|0)>=8)break;I=+g[l+(k+j<<2)>>2]-+g[p+(k<<2)>>2];n=n+I*I;if(!(n>=m))k=k+1|0;else break}if(n<m){h=c[5276+(q<<2)>>2]|0;m=n}q=q+1|0}while((q|0)!=2787);c[(c[(c[f>>2]|0)+(D*12|0)>>2]|0)+(r<<2)>>2]=h;q=$m(h)|0;c[(c[(c[a>>2]|0)+(D*12|0)>>2]|0)+(r<<2)>>2]=q}r=r+1|0}while((r|0)<(b|0))}Us(F);br(G);br(H);D=D+1|0;if((D|0)>=(jg(c[e>>2]|0)|0))break a}if((j|0)==4){H=Ob(8)|0;zq(H,49693);c[H>>2]=30552;Hc(H|0,856,146)}else if((j|0)==11){h=cc()|0;j=13}else if((j|0)==12){h=cc()|0;j=13}else if((j|0)==22){h=cc()|0;j=49}else if((j|0)==31){h=cc()|0;Us(F);j=49}if((j|0)!=13)if((j|0)==49)br(G);br(H);bc(h|0)}while(0);i=E;return}function Xm(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;z=i;i=i+32|0;A=z+8|0;x=z;ct(b,1);o=0;ma(170,c[b>>2]|0,d|0);y=o;o=0;a:do if(y&1)g=cc()|0;else{c[A+4>>2]=0;t=A+8|0;c[t>>2]=0;c[A>>2]=A+4;u=e+4|0;v=x+4|0;w=b+4|0;b:do if(((c[u>>2]|0)-(c[e>>2]|0)|0)>0){l=0;g=-1;y=0;c:while(1){et(A);s=c[e>>2]|0;if(((c[s+(y*12|0)+4>>2]|0)-(c[s+(y*12|0)>>2]|0)|0)>0){k=0;do{h=(c[(c[f>>2]|0)+(y*12|0)>>2]|0)+(k<<2)|0;if((c[h>>2]|0)!=-1){o=0;h=Wa(105,A|0,h|0)|0;s=o;o=0;if(s&1){h=10;break c}h=c[h>>2]|0;o=0;j=Wa(105,A|0,(c[(c[f>>2]|0)+(y*12|0)>>2]|0)+(k<<2)|0)|0;s=o;o=0;if(s&1){h=10;break c}c[j>>2]=h+1}k=k+1|0;s=c[e>>2]|0}while((k|0)<((c[s+(y*12|0)+4>>2]|0)-(c[s+(y*12|0)>>2]|0)>>2|0))}if(c[t>>2]|0){Ys(x,A);s=(a[x>>0]|0)!=0?g:c[v>>2]|0;h=(g+3|0)%9|0;k=(g|0)!=-1;s=k&(s|0)!=(h|0)?g:s;if(k|(g|0)==-1&(s|0)==0){if(k&(s|0)==(h|0)){j=l+1|0;h=l+2|0;if((((c[w>>2]|0)-(c[b>>2]|0)|0)/12|0|0)<(h|0)){o=0;ma(171,b|0,h|0);r=o;o=0;if(r&1){h=11;break}o=0;ma(170,(c[b>>2]|0)+(j*12|0)|0,d|0);r=o;o=0;if(r&1){h=11;break}}}else j=l;if(k&(s|0)==((g+6|0)%9|0|0)){h=j+2|0;g=j+3|0;if((((c[w>>2]|0)-(c[b>>2]|0)|0)/12|0|0)<(g|0)){o=0;ma(171,b|0,g|0);r=o;o=0;if(r&1){h=11;break}o=0;ma(170,(c[b>>2]|0)+(h*12|0)|0,d|0);r=o;o=0;if(r&1){h=11;break}}}else h=j;l=(s+3|0)%9|0;m=h+2|0;n=h+1|0;p=(s+6|0)%9|0;q=(h|0)>0;r=h+-1|0;k=c[e>>2]|0;g=c[k+(y*12|0)>>2]|0;if(((c[k+(y*12|0)+4>>2]|0)-g|0)>0){k=0;while(1){j=c[(c[(c[f>>2]|0)+(y*12|0)>>2]|0)+(k<<2)>>2]|0;do if((j|0)!=-1){if((j|0)==(s|0)){o=0;g=Wa(105,(c[(c[b>>2]|0)+(h*12|0)>>2]|0)+(k*12|0)|0,g+(k<<2)|0)|0;j=o;o=0;if(j&1){h=9;break c}g=c[g>>2]|0;o=0;j=Wa(105,(c[(c[b>>2]|0)+(h*12|0)>>2]|0)+(k*12|0)|0,(c[(c[e>>2]|0)+(y*12|0)>>2]|0)+(k<<2)|0)|0;B=o;o=0;if(B&1){h=9;break c}c[j>>2]=g+1;break}if((j|0)!=(l|0)){if(!(q&(j|0)==(p|0)))break;o=0;g=Wa(105,(c[(c[b>>2]|0)+(r*12|0)>>2]|0)+(k*12|0)|0,g+(k<<2)|0)|0;B=o;o=0;if(B&1){h=9;break c}g=c[g>>2]|0;o=0;j=Wa(105,(c[(c[b>>2]|0)+(r*12|0)>>2]|0)+(k*12|0)|0,(c[(c[e>>2]|0)+(y*12|0)>>2]|0)+(k<<2)|0)|0;B=o;o=0;if(B&1){h=9;break c}c[j>>2]=g+1;break}j=c[b>>2]|0;if((((c[w>>2]|0)-j|0)/12|0|0)<(m|0)){o=0;ma(171,b|0,m|0);B=o;o=0;if(B&1){h=9;break c}o=0;ma(170,(c[b>>2]|0)+(n*12|0)|0,d|0);B=o;o=0;if(B&1){h=9;break c}j=c[b>>2]|0;g=c[(c[e>>2]|0)+(y*12|0)>>2]|0}o=0;g=Wa(105,(c[j+(n*12|0)>>2]|0)+(k*12|0)|0,g+(k<<2)|0)|0;B=o;o=0;if(B&1){h=9;break c}g=c[g>>2]|0;o=0;j=Wa(105,(c[(c[b>>2]|0)+(n*12|0)>>2]|0)+(k*12|0)|0,(c[(c[e>>2]|0)+(y*12|0)>>2]|0)+(k<<2)|0)|0;B=o;o=0;if(B&1){h=9;break c}c[j>>2]=g+1}while(0);k=k+1|0;B=c[e>>2]|0;g=c[B+(y*12|0)>>2]|0;if((k|0)>=((c[B+(y*12|0)+4>>2]|0)-g>>2|0)){g=s;break}}}else g=s}else{h=l;g=-1}}else h=l;y=y+1|0;if((y|0)>=(((c[u>>2]|0)-(c[e>>2]|0)|0)/12|0|0))break b;else l=h}if((h|0)==9)g=cc()|0;else if((h|0)==10)g=cc()|0;else if((h|0)==11)g=cc()|0;gt(A);break a}while(0);gt(A);i=z;return}while(0);$s(b);bc(g|0)}function Ym(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;s=x+36|0;l=x+32|0;m=x+28|0;p=x+24|0;q=x+20|0;t=x+16|0;u=x+4|0;v=x;c[a>>2]=0;w=a+4|0;c[w>>2]=0;c[a+8>>2]=0;r=d+4|0;e=c[r>>2]|0;f=c[d>>2]|0;a:do if(((e-f|0)/12|0)>>>0>1?(n=a+8|0,(e-f|0)>12):0){k=0;b:while(1){h=c[f+(k*12|0)>>2]|0;j=(c[f+(k*12|0)+4>>2]|0)-h|0;e=j>>2;if((j|0)>0){g=0;do{f=$m(c[h+(g<<2)>>2]|0)|0;g=g+1|0}while((f|0)==-1&(g|0)<(e|0));j=f}else j=-1;do if((k|0)==0&(j|0)>0){c[l>>2]=0;e=c[w>>2]|0;if(e>>>0>=(c[n>>2]|0)>>>0){o=0;ma(172,a|0,l|0);h=o;o=0;if(h&1)break b}else{c[e>>2]=0;c[w>>2]=e+4}if((j|0)>3){c[m>>2]=0;e=c[w>>2]|0;if(e>>>0>=(c[n>>2]|0)>>>0){o=0;ma(172,a|0,m|0);h=o;o=0;if(h&1)break b;else break}else{c[e>>2]=0;c[w>>2]=e+4;break}}}while(0);k=k+1|0;h=c[d>>2]|0;e=c[h+(k*12|0)>>2]|0;h=(c[h+(k*12|0)+4>>2]|0)-e|0;g=h>>2;if((h|0)>0){h=0;do{f=$m(c[e+(h<<2)>>2]|0)|0;h=h+1|0}while((f|0)==-1&(h|0)<(g|0))}else f=-1;do if((f|0)!=-1&((j|0)!=-1?((j+3|0)%9|0|0)!=(f|0):0)){c[p>>2]=k;e=c[w>>2]|0;if(e>>>0>=(c[n>>2]|0)>>>0){o=0;ma(172,a|0,p|0);h=o;o=0;if(h&1)break b}else{c[e>>2]=k;c[w>>2]=e+4}if((j|0)==(f|0)){c[q>>2]=k;e=c[w>>2]|0;if(e>>>0>=(c[n>>2]|0)>>>0){o=0;ma(172,a|0,q|0);j=o;o=0;if(j&1)break b;else break}else{c[e>>2]=k;c[w>>2]=e+4;break}}}while(0);f=c[d>>2]|0;if((k|0)>=((((c[r>>2]|0)-f|0)/12|0)+-1|0)){f=3;break a}}e=cc()|0;f=8}else f=3;while(0);c:do if((f|0)==3){e=c[a>>2]|0;d:do if(((c[w>>2]|0)-e|0)>0){f=0;while(1){c[t>>2]=(c[d>>2]|0)+(((c[e+(f<<2)>>2]|0)+f|0)*12|0);c[v>>2]=0;o=0;mb(75,u|0,b|0,v|0);r=o;o=0;if(r&1){f=6;break}o=0;c[s>>2]=c[t>>2];ya(114,d|0,s|0,u|0)|0;r=o;o=0;if(r&1){f=31;break}br(u);f=f+1|0;e=c[a>>2]|0;if((f|0)>=((c[w>>2]|0)-e>>2|0))break d}if((f|0)==6){e=cc()|0;f=8;break c}else if((f|0)==31){e=cc()|0;br(u);break c}}while(0);i=x;return}while(0);br(a);bc(e|0)}function Zm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;P=i;i=i+128|0;J=P+120|0;R=P+108|0;Q=P+96|0;S=P+84|0;y=P+80|0;A=P+76|0;z=P+72|0;C=P+68|0;B=P+64|0;D=P+60|0;E=P+56|0;F=P+52|0;G=P+48|0;H=P+44|0;I=P+40|0;x=P+32|0;K=P+24|0;M=P+12|0;N=P+8|0;O=P;c[R+4>>2]=0;c[R+8>>2]=0;c[R>>2]=R+4;c[Q+4>>2]=0;c[Q+8>>2]=0;c[Q>>2]=Q+4;c[S+4>>2]=0;c[S+8>>2]=0;c[S>>2]=S+4;f=c[d>>2]|0;L=d+4|0;e=c[L>>2]|0;if((e|0)!=(f|0)){do e=e+-4|0;while((e|0)!=(f|0));c[L>>2]=e}s=b+4|0;t=x+4|0;u=d+8|0;c[y>>2]=0;a:do if(((c[s>>2]|0)-(c[b>>2]|0)|0)>24){v=0;l=2;w=-1;b:while(1){et(S);e=c[b>>2]|0;f=c[c[e+(v*12|0)>>2]>>2]|0;if(!f)f=-1;else{o=0;f=ya(115,f|0,((f|0)<0)<<31>>31|0,0)|0;r=o;o=0;if(r&1){f=11;break}e=c[b>>2]|0}k=v+1|0;g=c[c[e+(k*12|0)>>2]>>2]|0;if(!g)g=-1;else{o=0;g=ya(115,g|0,((g|0)<0)<<31>>31|0,0)|0;r=o;o=0;if(r&1){f=11;break}e=c[b>>2]|0}h=c[c[e+(l*12|0)>>2]>>2]|0;if(!h)h=-1;else{o=0;h=ya(115,h|0,((h|0)<0)<<31>>31|0,0)|0;r=o;o=0;if(r&1){f=11;break}e=c[b>>2]|0}j=c[e+(v*12|0)>>2]|0;j=c[j+(((c[e+(v*12|0)+4>>2]|0)-j>>2)+-1<<2)>>2]|0;if(!j)r=-1;else{o=0;j=ya(115,j|0,((j|0)<0)<<31>>31|0,0)|0;r=o;o=0;if(r&1){f=11;break}e=c[b>>2]|0;r=j}j=c[e+(k*12|0)>>2]|0;j=c[j+(((c[e+(k*12|0)+4>>2]|0)-j>>2)+-1<<2)>>2]|0;if(!j)j=-1;else{o=0;j=ya(115,j|0,((j|0)<0)<<31>>31|0,0)|0;q=o;o=0;if(q&1){f=11;break}e=c[b>>2]|0}q=c[e+(l*12|0)>>2]|0;e=c[q+(((c[e+(l*12|0)+4>>2]|0)-q>>2)+-1<<2)>>2]|0;if(e){o=0;e=ya(115,e|0,((e|0)<0)<<31>>31|0,0)|0;q=o;o=0;if(q&1){f=11;break}else q=e}else q=-1;l=(f|0)!=-1;m=(g|0)!=-1;if(l&m){e=(g|0)%30|0;c[A>>2]=((e|0)%3|0)+(((f|0)%30|0)*3|0);c[z>>2]=(e|0)/3|0;o=0;e=Wa(105,R|0,A|0)|0;p=o;o=0;if(p&1){f=11;break}e=c[e>>2]|0;o=0;k=Wa(105,R|0,A|0)|0;p=o;o=0;if(p&1){f=11;break}c[k>>2]=e+1;o=0;e=Wa(105,Q|0,z|0)|0;p=o;o=0;if(p&1){f=11;break}e=c[e>>2]|0;o=0;k=Wa(105,Q|0,z|0)|0;p=o;o=0;if(p&1){f=11;break}c[k>>2]=e+1}n=(j|0)!=-1;p=(q|0)!=-1;if(n&p){e=(q|0)%30|0;c[C>>2]=((e|0)%3|0)+(((j|0)%30|0)*3|0);c[B>>2]=(e|0)/3|0;o=0;e=Wa(105,R|0,C|0)|0;k=o;o=0;if(k&1){f=11;break}e=c[e>>2]|0;o=0;k=Wa(105,R|0,C|0)|0;T=o;o=0;if(T&1){f=11;break}c[k>>2]=e+1;o=0;e=Wa(105,Q|0,B|0)|0;T=o;o=0;if(T&1){f=11;break}e=c[e>>2]|0;o=0;k=Wa(105,Q|0,B|0)|0;T=o;o=0;if(T&1){f=11;break}c[k>>2]=e+1}if(l){c[D>>2]=(f|0)/30|0;o=0;e=Wa(105,S|0,D|0)|0;T=o;o=0;if(T&1){f=11;break}e=c[e>>2]|0;o=0;f=Wa(105,S|0,D|0)|0;T=o;o=0;if(T&1){f=11;break}c[f>>2]=e+1}if(m){c[E>>2]=(g|0)/30|0;o=0;e=Wa(105,S|0,E|0)|0;T=o;o=0;if(T&1){f=11;break}e=c[e>>2]|0;o=0;f=Wa(105,S|0,E|0)|0;T=o;o=0;if(T&1){f=11;break}c[f>>2]=e+1}if((h|0)!=-1){c[F>>2]=(h|0)/30|0;o=0;e=Wa(105,S|0,F|0)|0;T=o;o=0;if(T&1){f=11;break}e=c[e>>2]|0;o=0;f=Wa(105,S|0,F|0)|0;T=o;o=0;if(T&1){f=11;break}c[f>>2]=e+1}if((r|0)!=-1){c[G>>2]=(r|0)/30|0;o=0;e=Wa(105,S|0,G|0)|0;T=o;o=0;if(T&1){f=11;break}e=c[e>>2]|0;o=0;f=Wa(105,S|0,G|0)|0;T=o;o=0;if(T&1){f=11;break}c[f>>2]=e+1}if(n){c[H>>2]=(j|0)/30|0;o=0;e=Wa(105,S|0,H|0)|0;T=o;o=0;if(T&1){f=11;break}e=c[e>>2]|0;o=0;f=Wa(105,S|0,H|0)|0;T=o;o=0;if(T&1){f=11;break}c[f>>2]=e+1}if(p){c[I>>2]=(q|0)/30|0;o=0;e=Wa(105,S|0,I|0)|0;T=o;o=0;if(T&1){f=11;break}e=c[e>>2]|0;o=0;f=Wa(105,S|0,I|0)|0;T=o;o=0;if(T&1){f=11;break}c[f>>2]=e+1}Ys(x,S);e=w;w=c[t>>2]|0;e=e+1|0;if((e|0)<(w|0))do{f=c[L>>2]|0;g=c[u>>2]|0;if((f|0)==(g|0)){o=0;ma(173,d|0,y|0);T=o;o=0;if(T&1){f=10;break b}h=c[L>>2]|0;f=c[u>>2]|0}else{c[f>>2]=v;h=f+4|0;c[L>>2]=h;f=g}if((h|0)==(f|0)){o=0;ma(173,d|0,y|0);T=o;o=0;if(T&1){f=10;break b}g=c[L>>2]|0;f=c[u>>2]|0}else{c[h>>2]=v;g=h+4|0;c[L>>2]=g}if((g|0)==(f|0)){o=0;ma(173,d|0,y|0);T=o;o=0;if(T&1){f=10;break b}}else{c[g>>2]=v;c[L>>2]=g+4}e=e+1|0}while((e|0)<(w|0));l=v;v=v+3|0;c[y>>2]=v;l=l+5|0;if((l|0)>=(((c[s>>2]|0)-(c[b>>2]|0)|0)/12|0|0)){f=5;break a}}if((f|0)==10){e=cc()|0;f=12;break}else if((f|0)==11){e=cc()|0;f=12;break}}else f=5;while(0);c:do if((f|0)==5){e=c[d>>2]|0;d:do if(((c[L>>2]|0)-e|0)>0){f=0;while(1){c[K>>2]=(c[b>>2]|0)+(((c[e+(f<<2)>>2]|0)+f|0)*12|0);c[N>>2]=0;o=0;mb(75,M|0,a|0,N|0);T=o;o=0;if(T&1){f=9;break}o=0;c[J>>2]=c[K>>2];ya(114,b|0,J|0,M|0)|0;T=o;o=0;if(T&1){f=80;break}br(M);f=f+1|0;e=c[d>>2]|0;if((f|0)>=((c[L>>2]|0)-e>>2|0))break d}if((f|0)==9){e=cc()|0;f=12;break c}else if((f|0)==80){e=cc()|0;br(M);break c}}while(0);Ys(O,R);T=(c[O+4>>2]|0)+1|0;gt(S);gt(Q);gt(R);i=P;return T|0}while(0);gt(S);gt(Q);gt(R);bc(e|0);return 0}function _m(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+4|0;d=c[a>>2]|0;if(((c[h>>2]|0)-d|0)>0){g=0;do{if(((c[d+(g*12|0)+4>>2]|0)-(c[d+(g*12|0)>>2]|0)|0)>0){f=0;do{d=f*17|0;e=0;do{if((c[(c[(c[a>>2]|0)+(g*12|0)>>2]|0)+(f<<2)>>2]&1<<16-e|0)>0)Xd(c[b>>2]|0,e+d|0,g);e=e+1|0}while((e|0)!=17);f=f+1|0;d=c[a>>2]|0}while((f|0)<((c[d+(g*12|0)+4>>2]|0)-(c[d+(g*12|0)>>2]|0)>>2|0))}g=g+1|0}while((g|0)<(((c[h>>2]|0)-d|0)/12|0|0))}return}function $m(a){a=a|0;var b=0,c=0,d=0,e=0;if(!a)b=-1;else{c=0;d=1;b=0;e=0;do{do if((1<<e&a|0)>0){c=(d&1^1)+c|0;if(!(c&1)){d=1;b=b+1|0;break}else{d=1;b=b+-1|0;break}}else d=0;while(0);e=e+1|0}while((e|0)!=17);b=(b+9|0)%9|0}return b|0}function an(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;t=i;i=i+80|0;n=t+76|0;p=t+72|0;z=t+68|0;y=t+64|0;e=t+60|0;x=t+56|0;v=t+44|0;k=t+40|0;l=t+36|0;m=t+32|0;u=t+28|0;q=t+16|0;r=t+4|0;s=t;c[z>>2]=0;dq(z,0);_d(e,b);o=0;ma(174,y|0,e|0);g=o;o=0;if(g&1){y=cc()|0;ce(e);e=y}else{ce(e);o=0;f=Wa(106,y|0,d|0)|0;g=o;o=0;if(g&1)e=cc()|0;else{c[x>>2]=f;o=0;ma(85,v|0,f|0);g=o;o=0;if(g&1)e=cc()|0;else{a:do if(c[d>>2]|0){o=0;g=qa(145,d|0)|0;b=o;o=0;if(b&1)w=13;else{c[k>>2]=g;b:do if((g|0)!=0?(j=v+8|0,b=c[j>>2]|0,h=c[b+8>>2]|0,((c[b+12>>2]|0)-h|0)>0):0){e=h;b=0;while(1){o=0;ma(c[(c[g>>2]|0)+8>>2]|0,g|0,c[e+(b<<2)>>2]|0);h=o;o=0;if(h&1)break;b=b+1|0;h=c[j>>2]|0;e=c[h+8>>2]|0;if((b|0)>=((c[h+12>>2]|0)-e>>2|0))break b}e=cc()|0;ze(k);break a}while(0);ze(k);w=16}}else w=16;while(0);do if((w|0)==16){o=0;e=qa(118,f|0)|0;k=o;o=0;if(!(k&1)){c[m>>2]=e;o=0;e=ya(116,a+8|0,m|0,d|0)|0;a=o;o=0;if(a&1){e=cc()|0;Yd(m);break}c[l>>2]=e;dq(z,e);aq(l);Yd(m);o=0;f=qa(111,40)|0;m=o;o=0;if(!(m&1)){e=c[z>>2]|0;o=0;b=qa(116,e|0)|0;m=o;o=0;if(m&1)e=cc()|0;else{c[u>>2]=b;o=0;ma(86,q|0,e|0);m=o;o=0;do if(!(m&1)){oe(r,v);c[s>>2]=11;o=0;c[n>>2]=c[s>>2];ia(45,f|0,u|0,q|0,r|0,n|0);s=o;o=0;if(s&1){e=cc()|0;pe(r);Sd(q);break}else{c[p>>2]=0;Qe(p,f);pe(r);Sd(q);ne(u);pe(v);ir(x);ce(y);aq(z);i=t;return c[p>>2]|0}}else e=cc()|0;while(0);ne(u)}Uz(f)}else w=13}else w=13}while(0);if((w|0)==13)e=cc()|0;pe(v)}ir(x)}ce(y)}aq(z);bc(e|0);return 0}function bn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;return (eq(c[a+8>>2]|0,b,d)|0)&1|e<<1|0}function cn(a,b){a=a|0;b=b|0;var d=0,e=0;c[a+4>>2]=0;c[a>>2]=34212;e=a+8|0;Zp(e,b);c[a+12>>2]=0;d=a+16|0;c[d>>2]=0;kt(d,0);o=0;a=qa(122,c[b>>2]|0)|0;b=o;o=0;do if(!(b&1))if(a>>>0>20&(a&3|0)==1)return;else{b=Ob(8)|0;zq(b,49738);c[b>>2]=29736;o=0;mb(55,b|0,24,146);o=0;break}while(0);b=cc()|0;lt(d);Yd(e);bc(b|0)}function dn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=i;i=i+16|0;f=l+4|0;g=l;j=a+16|0;do if(!(c[j>>2]|0)){h=bn(a,8,0,bn(a,8,1,bn(a,8,2,bn(a,8,3,bn(a,8,4,bn(a,8,5,bn(a,8,7,bn(a,8,8,bn(a,7,8,bn(a,5,8,bn(a,4,8,bn(a,3,8,bn(a,2,8,bn(a,1,8,bn(a,0,8,0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0)|0;k=jg(c[a+8>>2]|0)|0;d=k+-6|0;b=0;e=k;do{m=e;e=e+-1|0;b=bn(a,8,e,b)|0}while((m|0)>(d|0));m=k+-8|0;k=m+1|0;e=k+1|0;d=e+1|0;n=d+1|0;o=n+1|0;p=o+1|0;m=Ao(h,bn(a,p+1|0,8,bn(a,p,8,bn(a,o,8,bn(a,n,8,bn(a,d,8,bn(a,e,8,bn(a,k,8,bn(a,m,8,b)|0)|0)|0)|0)|0)|0)|0)|0)|0;c[g>>2]=m;kt(j,m);lt(g);if(!(c[j>>2]|0)){p=Ob(8)|0;zq(p,49774);c[p>>2]=29736;Hc(p|0,24,146)}else{mt(f,j);break}}else mt(f,j);while(0);i=l;return c[f>>2]|0}function en(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;i=a+12|0;b=c[i>>2]|0;do if(!b){h=jg(c[a+8>>2]|0)|0;b=h+-17>>2;if((b|0)<7){b=Vo(b)|0;break}g=h+-9|0;d=g+-1|0;e=d+-1|0;b=0;f=5;while(1){b=bn(a,e,f,bn(a,d,f,bn(a,g,f,b)|0)|0)|0;if((f|0)>0)f=f+-1|0;else break}b=Zo(b)|0;c[i>>2]=b;if((b|0)!=0?(So(b)|0)==(h|0):0){b=c[i>>2]|0;break}d=g+-1|0;e=d+-1|0;b=0;f=5;while(1){b=bn(a,f,e,bn(a,f,d,bn(a,f,g,b)|0)|0)|0;if((f|0)>0)f=f+-1|0;else break}b=Zo(b)|0;c[i>>2]=b;if((b|0)!=0?(So(b)|0)==(h|0):0){b=c[i>>2]|0;break}i=Ob(8)|0;zq(i,49810);c[i>>2]=29736;Hc(i|0,24,146)}while(0);return b|0}function fn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;v=i;i=i+16|0;x=v+4|0;w=v;e=dn(d)|0;c[x>>2]=e;o=0;u=qa(169,d|0)|0;q=o;o=0;if(((((!(q&1)?(o=0,f=qa(170,e|0)|0,q=o,o=0,!(q&1)):0)?(o=0,g=qa(171,f<<24>>24|0)|0,q=o,o=0,!(q&1)):0)?(r=d+8|0,o=0,s=qa(122,c[r>>2]|0)|0,q=o,o=0,!(q&1)):0)?(o=0,mb(98,g|0,c[r>>2]|0,s|0),q=o,o=0,!(q&1)):0)?(o=0,t=qa(172,u|0)|0,q=o,o=0,!(q&1)):0){c[w>>2]=t;o=0;e=qa(173,u|0)|0;q=o;o=0;if(!(q&1)?(o=0,ma(87,b|0,e|0),q=o,o=0,!(q&1)):0){m=s+-1|0;n=b+8|0;if((s|0)>1){p=(s|0)>0;g=0;d=0;q=1;f=0;e=m;while(1){l=(((e|0)==6)<<31>>31)+e|0;if(p){k=0;e=d;do{j=q?m-k|0:k;h=0;do{d=l-h|0;if(!(eq(t,d,j)|0)){g=g+1|0;e=(eq(c[r>>2]|0,d,j)|0)&1|e<<1;if((g|0)==8){a[(c[(c[n>>2]|0)+8>>2]|0)+f>>0]=e;g=0;e=0;f=f+1|0}}h=h+1|0}while((h|0)!=2);k=k+1|0}while((k|0)<(s|0))}else e=d;if((l|0)>2){d=e;q=q^1;e=l+-2|0}else break}}else f=0;o=0;e=qa(173,u|0)|0;u=o;o=0;do if(!(u&1))if((f|0)==(e|0)){Yd(w);lt(x);i=v;return}else{v=Ob(8)|0;zq(v,49835);c[v>>2]=29736;o=0;mb(55,v|0,24,146);o=0;break}while(0);e=cc()|0;Sd(b)}else e=cc()|0;Yd(w)}else e=cc()|0;lt(x);bc(e|0)}function gn(a,b,d){a=a|0;b=b|0;d=d|0;c[a+4>>2]=0;c[a>>2]=34228;c[a+8>>2]=b;Pd(a+12|0,d);return}function hn(a){a=a|0;return c[a+8>>2]|0}function jn(a,b){a=a|0;b=b|0;Pd(a,b+12|0);return}function kn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+48|0;x=w+28|0;p=w+16|0;n=w+12|0;m=w;q=To(e,f)|0;nt(x,Mo(q)|0);l=x+4|0;f=c[x>>2]|0;a:do if((c[l>>2]|0)==(f|0)){f=0;u=7}else{g=0;e=0;while(1){o=0;f=qa(174,c[f+(g<<2)>>2]|0)|0;u=o;o=0;if(u&1)break;e=f+e|0;g=g+1|0;f=c[x>>2]|0;if(g>>>0>=(c[l>>2]|0)-f>>2>>>0){f=e;u=7;break a}}f=cc()|0;u=6}while(0);do if((u|0)==7){o=0;ma(175,b|0,f|0);u=o;o=0;if(u&1){f=cc()|0;u=6;break}f=c[x>>2]|0;b:do if((c[l>>2]|0)!=(f|0)){k=0;e=0;c:while(1){h=c[f+(k<<2)>>2]|0;j=0;while(1){o=0;f=qa(174,h|0)|0;u=o;o=0;if(u&1){u=17;break c}if((j|0)>=(f|0))break;o=0;g=qa(175,h|0)|0;u=o;o=0;if(u&1){u=17;break c}o=0;f=qa(176,q|0)|0;u=o;o=0;if(u&1){u=17;break c}o=0;ma(87,p|0,f+g|0);u=o;o=0;if(u&1){u=17;break c}o=0;f=qa(111,24)|0;u=o;o=0;if(u&1){u=20;break c}Pd(m,p);gn(f,g,m);c[n>>2]=0;pt(n,f);Sd(m);pt((c[b>>2]|0)+(e<<2)|0,c[n>>2]|0);qt(n);Sd(p);j=j+1|0;e=e+1|0}k=k+1|0;f=c[x>>2]|0;if(k>>>0>=(c[l>>2]|0)-f>>2>>>0){u=22;break b}}if((u|0)==17){f=cc()|0;u=19;break}else if((u|0)==20){f=cc()|0;Sd(p);break}}else{e=0;u=22}while(0);d:do if((u|0)==22){f=c[b>>2]|0;t=c[(c[f>>2]|0)+20>>2]|0;s=c[t+12>>2]|0;t=c[t+8>>2]|0;l=s-t|0;g=l+1|0;j=(c[b+4>>2]|0)-f>>2;while(1){k=j;j=j+-1|0;if((k|0)<=0){u=29;break}h=c[(c[f+(j<<2)>>2]|0)+20>>2]|0;h=(c[h+12>>2]|0)-(c[h+8>>2]|0)|0;if((h|0)==(l|0)){u=29;break}if((h|0)!=(g|0)){u=26;break}}do if((u|0)==26){f=Ob(8)|0;o=0;ma(103,f|0,49862);w=o;o=0;if(w&1){w=cc()|0;Nb(f|0);f=w;break d}else{o=0;mb(55,f|0,240,66);o=0;break}}else if((u|0)==29?(o=0,v=qa(176,q|0)|0,r=o,o=0,!(r&1)):0){q=l-v|0;d=d+8|0;r=(e|0)>0?e:0;m=(q|0)>0?q:0;if((q|0)>0){f=(e|0)>0;g=0;j=0;while(1){if(f){h=0;l=j;while(1){a[(c[(c[(c[(c[b>>2]|0)+(h<<2)>>2]|0)+20>>2]|0)+8>>2]|0)+g>>0]=a[(c[(c[d>>2]|0)+8>>2]|0)+l>>0]|0;h=h+1|0;if((h|0)>=(e|0))break;else l=l+1|0}}g=g+1|0;if((g|0)>=(q|0))break;else j=r+j|0}}f=$(r,m)|0;g=f+((k|0)>(e|0)?k:e)|0;if((k|0)<(e|0)){h=k;while(1){a[(c[(c[(c[(c[b>>2]|0)+(h<<2)>>2]|0)+20>>2]|0)+8>>2]|0)+q>>0]=a[(c[(c[d>>2]|0)+8>>2]|0)+f>>0]|0;h=h+1|0;if((h|0)>=(e|0))break;else f=f+1|0}}n=g-k|0;p=c[(c[c[b>>2]>>2]|0)+20>>2]|0;p=(c[p+12>>2]|0)-(c[p+8>>2]|0)|0;l=$(r,t+v+((q|0)>(p|0)?q:p)-s|0)|0;if((q|0)<(p|0)){m=(e|0)>0;f=q;h=n;while(1){if(m){g=0;j=h;while(1){a[(c[(c[(c[(c[b>>2]|0)+(g<<2)>>2]|0)+20>>2]|0)+8>>2]|0)+(((g|0)>=(k|0)&1)+f)>>0]=a[(c[(c[d>>2]|0)+8>>2]|0)+j>>0]|0;g=g+1|0;if((g|0)>=(e|0))break;else j=j+1|0}}f=f+1|0;if((f|0)>=(p|0))break;else h=r+h|0}}v=c[d>>2]|0;if((n+l|0)==((c[v+12>>2]|0)-(c[v+8>>2]|0)|0)){rt(x);i=w;return}f=Ob(8)|0;o=0;ma(103,f|0,49901);w=o;o=0;if(w&1){w=cc()|0;Nb(f|0);f=w;break d}else{o=0;mb(55,f|0,240,66);o=0;break}}while(0);f=cc()|0;u=19}while(0);st(b)}while(0);rt(x);bc(f|0)}function ln(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;a=m+28|0;d=m+24|0;f=m+20|0;g=m+16|0;h=m+12|0;j=m+8|0;k=m+4|0;l=m;b=Sz(8)|0;n=b;c[n>>2]=0;c[n+4>>2]=0;c[b+4>>2]=0;c[b>>2]=34244;c[a>>2]=0;tt(a,b);b=c[6953]|0;if(b>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,a|0);n=o;o=0;if(n&1){n=cc()|0;vt(a);a=n}else e=4}else{c[b>>2]=0;tt(b,c[a>>2]|0);c[6953]=(c[6953]|0)+4;e=4}do if((e|0)==4){vt(a);a=Sz(8)|0;n=a;c[n>>2]=0;c[n+4>>2]=0;c[a+4>>2]=0;c[a>>2]=34264;c[d>>2]=0;tt(d,a);a=c[6953]|0;if(a>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,d|0);n=o;o=0;if(n&1){a=cc()|0;vt(d);break}}else{c[a>>2]=0;tt(a,c[d>>2]|0);c[6953]=(c[6953]|0)+4}vt(d);a=Sz(8)|0;n=a;c[n>>2]=0;c[n+4>>2]=0;c[a+4>>2]=0;c[a>>2]=34284;c[f>>2]=0;tt(f,a);a=c[6953]|0;if(a>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,f|0);n=o;o=0;if(n&1){a=cc()|0;vt(f);break}}else{c[a>>2]=0;tt(a,c[f>>2]|0);c[6953]=(c[6953]|0)+4}vt(f);a=Sz(8)|0;n=a;c[n>>2]=0;c[n+4>>2]=0;c[a+4>>2]=0;c[a>>2]=34304;c[g>>2]=0;tt(g,a);a=c[6953]|0;if(a>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,g|0);n=o;o=0;if(n&1){a=cc()|0;vt(g);break}}else{c[a>>2]=0;tt(a,c[g>>2]|0);c[6953]=(c[6953]|0)+4}vt(g);a=Sz(8)|0;n=a;c[n>>2]=0;c[n+4>>2]=0;c[a+4>>2]=0;c[a>>2]=34324;c[h>>2]=0;tt(h,a);a=c[6953]|0;if(a>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,h|0);n=o;o=0;if(n&1){a=cc()|0;vt(h);break}}else{c[a>>2]=0;tt(a,c[h>>2]|0);c[6953]=(c[6953]|0)+4}vt(h);a=Sz(8)|0;n=a;c[n>>2]=0;c[n+4>>2]=0;c[a+4>>2]=0;c[a>>2]=34344;c[j>>2]=0;tt(j,a);a=c[6953]|0;if(a>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,j|0);n=o;o=0;if(n&1){a=cc()|0;vt(j);break}}else{c[a>>2]=0;tt(a,c[j>>2]|0);c[6953]=(c[6953]|0)+4}vt(j);a=Sz(8)|0;n=a;c[n>>2]=0;c[n+4>>2]=0;c[a+4>>2]=0;c[a>>2]=34364;c[k>>2]=0;tt(k,a);a=c[6953]|0;if(a>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,k|0);n=o;o=0;if(n&1){a=cc()|0;vt(k);break}}else{c[a>>2]=0;tt(a,c[k>>2]|0);c[6953]=(c[6953]|0)+4}vt(k);a=Sz(8)|0;n=a;c[n>>2]=0;c[n+4>>2]=0;c[a+4>>2]=0;c[a>>2]=34384;c[l>>2]=0;tt(l,a);a=c[6953]|0;if(a>>>0>=(c[6954]|0)>>>0){o=0;ma(176,27808,l|0);n=o;o=0;if(n&1){a=cc()|0;vt(l);break}}else{c[a>>2]=0;tt(a,c[l>>2]|0);c[6953]=(c[6953]|0)+4}vt(l);i=m;return (c[6953]|0)-(c[6952]|0)>>2|0}while(0);bc(a|0);return 0}function mn(a){a=a|0;var b=0;if(a>>>0<=7)return c[(c[6952]|0)+(a<<2)>>2]|0;a=Ob(8)|0;o=0;ma(103,a|0,49943);b=o;o=0;if(b&1){b=cc()|0;Nb(a|0);bc(b|0)}else Hc(a|0,240,66);return 0}function nn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;if(d){e=(d|0)==0;g=0;do{if(!e){f=0;do{if(fd[c[(c[a>>2]|0)+8>>2]&127](a,g,f)|0)gg(b,f,g);f=f+1|0}while((f|0)!=(d|0))}g=g+1|0}while((g|0)!=(d|0))}return}function on(a){a=a|0;return}function pn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;e=a[d>>0]|0;f=(e&1)==0;RC(b,f?d+1|0:c[d+8>>2]|0,f?(e&255)>>>1:c[d+4>>2]|0)|0;return}function qn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=c[b>>2]|0;do if((e*13|0)>(lg(f)|0)){b=Ob(8)|0;o=0;ka(308,b|0);i=o;o=0;if(i&1){i=cc()|0;Nb(b|0);break}else Hc(b|0,320,76)}else{g=e<<1;h=Tz(g)|0;if((e|0)>0){b=e;e=0;while(1){j=kg(f,13)|0;j=((j|0)/96|0)<<8|((j|0)%96|0);j=((j|0)<959?41377:42657)+j|0;a[h+e>>0]=j>>>8;a[h+(e|1)>>0]=j;if((b|0)>1){b=b+-1|0;e=e+2|0}else break}}o=0;ya(90,d|0,h|0,g|0)|0;j=o;o=0;if(!(j&1)){Vz(h);return}b=cc(24)|0;j=D;if((j|0)==(Xb(24)|0)){fc(b|0)|0;Vz(h);b=Ob(8)|0;o=0;ka(308,b|0);j=o;o=0;if(j&1){j=cc()|0;Nb(b|0);b=j}else{o=0;mb(55,b|0,320,76);o=0;b=cc()|0}o=0;ob(44);j=o;o=0;if(j&1){j=cc(0)|0;oq(j)}else i=b}else i=b}while(0);bc(i|0)}function rn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=e<<1;h=Tz(g)|0;if((e|0)>0){f=0;while(1){j=kg(c[b>>2]|0,13)|0;j=((j|0)/192|0)<<8|((j|0)%192|0);j=((j|0)<7936?33088:49472)+j|0;a[h+f>>0]=j>>>8;a[h+(f|1)>>0]=j;if((e|0)>1){e=e+-1|0;f=f+2|0}else break}}o=0;ya(90,d|0,h|0,g|0)|0;j=o;o=0;if(!(j&1)){Vz(h);return}e=cc(24)|0;j=D;if((j|0)==(Xb(24)|0)){fc(e|0)|0;Vz(h);e=Ob(8)|0;o=0;ka(308,e|0);j=o;o=0;if(j&1){j=cc()|0;Nb(e|0);e=j}else{o=0;mb(55,e|0,320,76);o=0;e=cc()|0}o=0;ob(44);j=o;o=0;if(j&1){j=cc(0)|0;oq(j)}else i=e}else i=e;bc(i|0)}function sn(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;r=i;i=i+48|0;t=r+24|0;s=r+12|0;n=r;b=c[b>>2]|0;do if((e<<3|0)>(lg(b)|0)){j=Ob(8)|0;o=0;ka(308,j|0);t=o;o=0;if(t&1){t=cc()|0;Nb(j|0);j=t;break}else Hc(j|0,320,76)}else{Rd(t,e);p=c[(c[t+8>>2]|0)+8>>2]|0;a:do if((e|0)>0){l=0;while(1){o=0;k=Wa(107,b|0,8)|0;u=o;o=0;if(u&1)break;a[p+l>>0]=k;l=l+1|0;if((l|0)>=(e|0)){q=9;break a}}j=cc()|0}else q=9;while(0);if((q|0)==9){c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;o=0;do if(!f){Vh(n,p,e,h);u=o;o=0;if(!(u&1)){if(!(a[s>>0]&1)){a[s+1>>0]=0;a[s>>0]=0}else{a[c[s+8>>2]>>0]=0;c[s+4>>2]=0}o=0;ma(114,s|0,0);u=o;o=0;if(u&1){u=cc(0)|0;oq(u)}else{c[s>>2]=c[n>>2];c[s+4>>2]=c[n+4>>2];c[s+8>>2]=c[n+8>>2];c[n>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;IC(n);q=20;break}}else q=17}else{b=pg(f)|0;u=o;o=0;if(!(u&1)?(o=0,Wa(108,s|0,b|0)|0,u=o,o=0,!(u&1)):0)q=20;else q=17}while(0);do if((q|0)==20){o=0;ya(90,d|0,p|0,e|0)|0;u=o;o=0;if(!(u&1)){j=c[g+8>>2]|0;b=j+12|0;k=c[b>>2]|0;if((k|0)==(c[j+16>>2]|0)){o=0;ma(177,j+8|0,t|0);u=o;o=0;if(u&1){q=17;break}}else{Pd(k,t);c[b>>2]=(c[b>>2]|0)+12}IC(s);Sd(t);i=r;return}b=cc(24)|0;u=D;if((u|0)==(Xb(24)|0)){fc(b|0)|0;b=Ob(8)|0;o=0;ka(308,b|0);u=o;o=0;if(u&1){u=cc()|0;Nb(b|0);b=u}else{o=0;mb(55,b|0,320,76);o=0;b=cc()|0}o=0;ob(44);u=o;o=0;if(u&1){u=cc(0)|0;oq(u)}else j=b}else j=b}while(0);if((q|0)==17)j=cc()|0;IC(s)}Sd(t)}while(0);bc(j|0)}function tn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;k=i;i=i+464|0;s=k+452|0;m=k+304|0;l=k+440|0;q=k+152|0;n=k+288|0;r=k+16|0;p=k;t=Tz((e|0)>-1?e:-1)|0;a:do if((e|0)>2){f=e;h=0;while(1){if((lg(c[b>>2]|0)|0)<10){u=3;break}g=kg(c[b>>2]|0,10)|0;if((g|0)>999)break;a[t+h>>0]=a[46777+((g|0)/100|0)>>0]|0;a[t+(h+1)>>0]=a[46777+(((g|0)/10|0|0)%10|0)>>0]|0;j=h+3|0;a[t+(h+2)>>0]=a[46777+((g|0)%10|0)>>0]|0;f=f+-3|0;if((f|0)>2)h=j;else{g=j;u=21;break a}}if((u|0)==3){Vz(t);u=Ob(8)|0;zq(u,49977);c[u>>2]=29736;Hc(u|0,24,146)}h=m+56|0;j=m+4|0;c[m>>2]=29792;c[h>>2]=29812;o=0;ma(104,m+56|0,j|0);r=o;o=0;if(r&1)f=cc()|0;else{c[m+128>>2]=0;c[m+132>>2]=-1;c[m>>2]=29832;c[m+56>>2]=29852;o=0;ka(307,j|0);r=o;o=0;do if(r&1)f=cc()|0;else{c[j>>2]=29868;f=m+36|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[m+48>>2]=0;c[m+52>>2]=16;c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;o=0;ma(105,j|0,s|0);r=o;o=0;if(r&1){u=cc()|0;IC(s);IC(f);nD(j);f=u;break}IC(s);o=0;f=Wa(66,m|0,49994)|0;s=o;o=0;do if(!(s&1)?(o=0,Wa(63,f|0,g|0)|0,s=o,o=0,!(s&1)):0){Vz(t);f=Ob(8)|0;o=0;ma(106,l|0,j|0);t=o;o=0;if(t&1){t=cc()|0;Nb(f|0);f=t;break}else{zq(f,(a[l>>0]&1)==0?l+1|0:c[l+8>>2]|0);c[f>>2]=29736;o=0;mb(55,f|0,24,146);o=0;f=cc()|0;IC(l);break}}else u=17;while(0);if((u|0)==17)f=cc()|0;Nq(m);break a}while(0)}iD(h);bc(f|0)}else{f=e;g=0;u=21}while(0);b:do if((u|0)==21){c:do switch(f|0){case 2:{if((lg(c[b>>2]|0)|0)<7){Vz(t);u=Ob(8)|0;zq(u,49977);c[u>>2]=29736;Hc(u|0,24,146)}j=kg(c[b>>2]|0,7)|0;if((j|0)<=99){a[t+g>>0]=a[46777+((j|0)/10|0)>>0]|0;a[t+(g+1)>>0]=a[46777+((j|0)%10|0)>>0]|0;break c}g=q+56|0;h=q+4|0;c[q>>2]=29792;c[g>>2]=29812;o=0;ma(104,q+56|0,h|0);r=o;o=0;if(r&1)f=cc()|0;else{c[q+128>>2]=0;c[q+132>>2]=-1;c[q>>2]=29832;c[q+56>>2]=29852;o=0;ka(307,h|0);r=o;o=0;do if(r&1)f=cc()|0;else{c[h>>2]=29868;f=q+36|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[q+48>>2]=0;c[q+52>>2]=16;c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;o=0;ma(105,h|0,s|0);r=o;o=0;if(r&1){u=cc()|0;IC(s);IC(f);nD(h);f=u;break}IC(s);o=0;f=Wa(66,q|0,50027)|0;s=o;o=0;do if(!(s&1)?(o=0,Wa(63,f|0,j|0)|0,s=o,o=0,!(s&1)):0){Vz(t);f=Ob(8)|0;o=0;ma(106,n|0,h|0);t=o;o=0;if(t&1){t=cc()|0;Nb(f|0);f=t;break}else{zq(f,(a[n>>0]&1)==0?n+1|0:c[n+8>>2]|0);c[f>>2]=29736;o=0;mb(55,f|0,24,146);o=0;f=cc()|0;IC(n);break}}else u=37;while(0);if((u|0)==37)f=cc()|0;Nq(q);break b}while(0)}iD(g);bc(f|0)}case 1:{if((lg(c[b>>2]|0)|0)<4){Vz(t);u=Ob(8)|0;zq(u,49977);c[u>>2]=29736;Hc(u|0,24,146)}j=kg(c[b>>2]|0,4)|0;if((j|0)<=9){a[t+g>>0]=a[46777+j>>0]|0;break c}g=r+56|0;h=r+4|0;c[r>>2]=29792;c[g>>2]=29812;o=0;ma(104,r+56|0,h|0);q=o;o=0;if(q&1)f=cc()|0;else{c[r+128>>2]=0;c[r+132>>2]=-1;c[r>>2]=29832;c[r+56>>2]=29852;o=0;ka(307,h|0);q=o;o=0;do if(q&1)f=cc()|0;else{c[h>>2]=29868;f=r+36|0;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[r+48>>2]=0;c[r+52>>2]=16;c[s>>2]=0;c[s+4>>2]=0;c[s+8>>2]=0;o=0;ma(105,h|0,s|0);q=o;o=0;if(q&1){u=cc()|0;IC(s);IC(f);nD(h);f=u;break}IC(s);o=0;f=Wa(66,r|0,50060)|0;s=o;o=0;do if(!(s&1)?(o=0,Wa(63,f|0,j|0)|0,s=o,o=0,!(s&1)):0){Vz(t);f=Ob(8)|0;o=0;ma(106,p|0,h|0);t=o;o=0;if(t&1){t=cc()|0;Nb(f|0);f=t;break}else{zq(f,(a[p>>0]&1)==0?p+1|0:c[p+8>>2]|0);c[f>>2]=29736;o=0;mb(55,f|0,24,146);o=0;f=cc()|0;IC(p);break}}else u=56;while(0);if((u|0)==56)f=cc()|0;Nq(r);break b}while(0)}iD(g);bc(f|0)}default:{}}while(0);RC(d,t,e)|0;Vz(t);i=k;return}while(0);bc(f|0)}function un(b){b=b|0;var c=0;if(b>>>0<=44)return a[46777+b>>0]|0;b=Ob(8)|0;o=0;ka(308,b|0);c=o;o=0;if(c&1){c=cc()|0;Nb(b|0);bc(c|0)}else Hc(b|0,320,76);return 0}function vn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;r=i;i=i+320|0;l=r+300|0;u=r+152|0;s=r+288|0;q=r+16|0;n=r;j=c[b>>2]|0;h=u+56|0;k=u+4|0;c[u>>2]=29792;c[h>>2]=29812;o=0;ma(104,u+56|0,k|0);m=o;o=0;if(m&1)g=cc()|0;else{c[u+128>>2]=0;c[u+132>>2]=-1;c[u>>2]=29832;c[u+56>>2]=29852;o=0;ka(307,k|0);m=o;o=0;do if(m&1)g=cc()|0;else{c[k>>2]=29868;b=u+36|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[u+48>>2]=0;c[u+52>>2]=16;c[l>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;o=0;ma(105,k|0,l|0);m=o;o=0;if(m&1){g=cc()|0;IC(l);IC(b);nD(k);break}IC(l);a:do if((e|0)>1){b=e;while(1){o=0;e=qa(140,j|0)|0;m=o;o=0;if(m&1){t=14;break}if((e|0)<11)break;o=0;e=Wa(107,j|0,11)|0;m=o;o=0;if(m&1){t=14;break}o=0;h=qa(177,(e|0)/45|0|0)|0;m=o;o=0;if(m&1){t=14;break}o=0;Wa(109,u|0,h|0)|0;m=o;o=0;if(m&1){t=14;break}o=0;e=qa(177,(e|0)%45|0|0)|0;m=o;o=0;if(m&1){t=14;break}o=0;Wa(109,u|0,e|0)|0;m=o;o=0;if(m&1){t=14;break}b=b+-2|0;if((b|0)<=1){t=24;break a}}if((t|0)==14){g=cc()|0;t=16;break}g=Ob(8)|0;o=0;ka(308,g|0);s=o;o=0;if(s&1){s=cc()|0;Nb(g|0);g=s;break}else{o=0;mb(55,g|0,320,76);o=0;t=15;break}}else{b=e;t=24}while(0);b:do if((t|0)==24){do if((b|0)==1){o=0;b=qa(140,j|0)|0;m=o;o=0;if(m&1){t=15;break b}if((b|0)<6){g=Ob(8)|0;o=0;ka(308,g|0);s=o;o=0;if(s&1){s=cc()|0;Nb(g|0);g=s;break b}else{o=0;mb(55,g|0,320,76);o=0;t=15;break b}}else{o=0;b=Wa(107,j|0,6)|0;m=o;o=0;if(m&1){t=15;break b}o=0;b=qa(177,b|0)|0;m=o;o=0;if(m&1){t=15;break b}o=0;Wa(109,u|0,b|0)|0;m=o;o=0;if(m&1){t=15;break b}else break}}while(0);o=0;ma(106,s|0,k|0);m=o;o=0;if(m&1)t=15;else{c:do if(f){e=q+56|0;m=q+4|0;c[q>>2]=29792;c[e>>2]=29812;o=0;ma(104,q+56|0,m|0);f=o;o=0;if(f&1)g=cc()|0;else{c[q+128>>2]=0;c[q+132>>2]=-1;c[q>>2]=29832;c[q+56>>2]=29852;o=0;ka(307,m|0);f=o;o=0;do if(f&1)g=cc()|0;else{c[m>>2]=29868;b=q+36|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[q+48>>2]=0;c[q+52>>2]=16;c[l>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;o=0;ma(105,m|0,l|0);f=o;o=0;if(f&1){g=cc()|0;IC(l);IC(b);nD(m);break}IC(l);k=s+4|0;f=s+8|0;l=s+1|0;e=a[s>>0]|0;b=(e&1)==0;e=b?(e&255)>>>1:c[k>>2]|0;d:do if(!e)t=56;else{j=0;e:while(1){h=b?l:c[f>>2]|0;b=a[h+j>>0]|0;f:do if(b<<24>>24==37){do if(j>>>0<(e+-1|0)>>>0){b=j+1|0;if((a[h+b>>0]|0)!=37)break;o=0;Wa(109,q|0,37)|0;j=o;o=0;if(j&1)break e;else break f}while(0);o=0;Wa(109,q|0,29)|0;h=o;o=0;if(h&1)break e;else b=j}else{o=0;Wa(109,q|0,b|0)|0;h=o;o=0;if(h&1)break e;else b=j}while(0);j=b+1|0;e=a[s>>0]|0;b=(e&1)==0;e=b?(e&255)>>>1:c[k>>2]|0;if(j>>>0>=e>>>0){t=56;break d}}g=cc()|0}while(0);do if((t|0)==56){o=0;ma(106,n|0,m|0);p=o;o=0;if(p&1){g=cc()|0;break}if(!(a[s>>0]&1)){a[l>>0]=0;a[s>>0]=0}else{a[c[f>>2]>>0]=0;c[k>>2]=0}o=0;ma(114,s|0,0);p=o;o=0;if(p&1){r=cc(0)|0;oq(r)}else{c[s>>2]=c[n>>2];c[s+4>>2]=c[n+4>>2];c[s+8>>2]=c[n+8>>2];c[n>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;IC(n);Nq(q);t=63;break c}}while(0);Nq(q);break c}while(0)}iD(e);t=47}else t=63;while(0);do if((t|0)==63){o=0;mb(99,d|0,s|0,c[1101]|0);t=o;o=0;if(t&1){g=cc()|0;t=47;break}else{IC(s);Nq(u);i=r;return}}while(0);IC(s)}}while(0);if((t|0)==15){g=cc()|0;t=16}Nq(u);bc(g|0)}while(0)}iD(h);bc(g|0)}function wn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;t=i;i=i+80|0;r=t+76|0;x=t+72|0;z=t+60|0;y=t+48|0;l=t+44|0;m=t+40|0;n=t+36|0;p=t+32|0;q=t+28|0;v=t+16|0;u=t+12|0;s=t;j=Sz(28)|0;sr(j,a);c[x>>2]=0;tr(x,j);j=c[x>>2]|0;c[z>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;o=0;ma(114,z|0,50);k=o;o=0;do if(!(k&1)?(o=0,ma(178,y|0,0),k=o,o=0,!(k&1)):0){f=0;k=0;a:while(1){o=0;g=qa(140,j|0)|0;h=o;o=0;if(h&1){h=7;break}if((g|0)<4){h=75;break}o=0;g=Wa(107,j|0,4)|0;h=o;o=0;if(h&1){h=12;break}o=0;h=qa(178,g|0)|0;g=o;o=0;if(g&1){h=12;break}if((h|0)==27820){h=75;break}if((h|0)==27988|(h|0)==28012){h=f;k=1;f=h;continue}if((h|0)==27892){o=0;g=qa(140,j|0)|0;h=o;o=0;if(h&1){h=7;break}if((g|0)<16){h=19;break}o=0;Wa(107,j|0,16)|0;h=o;o=0;if(h&1){h=7;break}else{g=k;h=f;k=g;f=h;continue}}if((h|0)==27940){o=0;g=Wa(107,j|0,8)|0;h=o;o=0;if(h&1){h=7;break}do if(!(g&128))f=g&127;else{if((g&192|0)==128){o=0;f=Wa(107,j|0,8)|0;h=o;o=0;if(h&1){h=7;break a}f=f|g<<8&16128;break}if((g&224|0)!=192){h=33;break a}o=0;f=Wa(107,j|0,16)|0;h=o;o=0;if(h&1){h=7;break a}f=f|g<<16&2031616}while(0);o=0;f=qa(179,f|0)|0;h=o;o=0;if(h&1){h=7;break}if(!f){h=38;break}else{h=k;k=h;continue}}o=0;if((h|0)==28036){h=kg(j,4)|0;g=o;o=0;if(g&1){h=7;break}o=0;g=Wa(110,28036,b|0)|0;A=o;o=0;if(A&1){h=7;break}o=0;g=Wa(107,j|0,g|0)|0;A=o;o=0;if(A&1){h=7;break}if((h|0)!=1){h=k;A=f;k=h;f=A;continue}c[l>>2]=0;tr(l,j);o=0;mb(100,l|0,z|0,g|0);A=o;o=0;if(A&1){h=48;break}ur(l);h=k;A=f;k=h;f=A;continue}g=Cn(h,b)|0;A=o;o=0;if(A&1){h=7;break}o=0;g=Wa(107,j|0,g|0)|0;A=o;o=0;if(A&1){h=7;break}if((h|0)==27844){c[m>>2]=0;tr(m,j);o=0;mb(101,m|0,z|0,g|0);A=o;o=0;if(A&1){h=54;break}ur(m);h=k;A=f;k=h;f=A;continue}if((h|0)==27868){c[n>>2]=0;tr(n,j);o=0;ub(67,n|0,z|0,g|0,k|0);A=o;o=0;if(A&1){h=58;break}ur(n);h=k;A=f;k=h;f=A;continue}if((h|0)==27916){c[p>>2]=0;tr(p,j);o=0;Ca(52,p|0,z|0,g|0,f|0,y|0,e|0);A=o;o=0;if(A&1){h=62;break}ur(p);h=k;A=f;k=h;f=A;continue}if((h|0)!=27964){h=67;break}c[q>>2]=0;tr(q,j);o=0;mb(102,q|0,z|0,g|0);A=o;o=0;if(A&1){h=66;break}ur(q);h=k;A=f;k=h;f=A}switch(h|0){case 7:{f=cc(240)|0;g=D;h=9;break}case 12:{f=cc(240)|0;g=D;if((g|0)==(Xb(240)|0)){g=fc(f|0)|0;f=Ob(8)|0;rs(f,g);c[f>>2]=4340;o=0;mb(55,f|0,240,66);o=0;f=cc(240)|0;g=D;o=0;ob(44);A=o;o=0;if(A&1)h=91;else h=70}else h=70;break}case 19:{f=Ob(8)|0;o=0;ka(308,f|0);A=o;o=0;if(A&1){h=cc(240)|0;g=D;Nb(f|0);f=h;h=70;break}else{o=0;mb(55,f|0,320,76);o=0;h=8;break}}case 33:{f=Ob(8)|0;o=0;ka(308,f|0);A=o;o=0;if(A&1){h=cc(240)|0;g=D;Nb(f|0);f=h;h=9;break}else{o=0;mb(55,f|0,320,76);o=0;h=8;break}}case 38:{f=Ob(8)|0;o=0;ka(308,f|0);A=o;o=0;if(A&1){h=cc(240)|0;g=D;Nb(f|0);f=h;h=70;break}else{o=0;mb(55,f|0,320,76);o=0;h=8;break}}case 48:{f=cc(240)|0;g=D;ur(l);h=70;break}case 54:{f=cc(240)|0;g=D;ur(m);h=70;break}case 58:{f=cc(240)|0;g=D;ur(n);h=70;break}case 62:{f=cc(240)|0;g=D;ur(p);h=70;break}case 66:{f=cc(240)|0;g=D;ur(q);h=70;break}case 67:{f=Ob(8)|0;o=0;ka(308,f|0);A=o;o=0;if(A&1){h=cc(240)|0;g=D;Nb(f|0);f=h;h=70;break}else{o=0;mb(55,f|0,320,76);o=0;h=8;break}}case 75:{o=0;g=qa(111,48)|0;A=o;o=0;if(A&1){f=cc()|0;h=89;break}Pd(v,a);o=0;f=qa(111,20)|0;A=o;o=0;do if(A&1)f=cc()|0;else{o=0;ma(94,f|0,z|0);A=o;o=0;if(A&1){A=cc()|0;Uz(f);f=A;break}c[u>>2]=0;cq(u,f);o=0;f=qa(180,d|0)|0;A=o;o=0;do if(!(A&1)?(o=0,ma(82,s|0,f|0),A=o,o=0,!(A&1)):0){o=0;ia(53,g|0,v|0,u|0,y|0,s|0);A=o;o=0;if(A&1){f=cc()|0;IC(s);break}else{c[r>>2]=0;dq(r,g);IC(s);ne(u);Sd(v);Uq(y);IC(z);ur(x);i=t;return c[r>>2]|0}}else h=85;while(0);if((h|0)==85)f=cc()|0;ne(u)}while(0);Sd(v);Uz(g);h=89;break}}if((h|0)==8){f=cc(240)|0;g=D;h=9}if((h|0)==9)h=70;if((h|0)==70)if((g|0)==(Xb(240)|0)){fc(f|0)|0;f=Ob(8)|0;o=0;ka(308,f|0);A=o;o=0;if(A&1){A=cc()|0;Nb(f|0);f=A}else{o=0;mb(55,f|0,320,76);o=0;f=cc()|0}o=0;ob(44);A=o;o=0;if(A&1)h=91;else h=89}else h=89;if((h|0)==89){Uq(y);w=f;break}else if((h|0)==91){A=cc(0)|0;oq(A)}}else h=6;while(0);if((h|0)==6)w=cc()|0;IC(z);ur(x);bc(w|0);return 0}function xn(a){a=a|0;var b=0,c=0;c=i;i=i+16|0;b=c;iq(b,4368);o=0;ma(92,a|0,b|0);a=o;o=0;if(a&1){c=cc()|0;lq(b);bc(c|0)}else{lq(b);i=c;return}}function yn(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;n=l+12|0;k=l;h=e+8|0;e=c[h>>2]|0;e=(c[e+12>>2]|0)-(c[e+8>>2]|0)|0;kq(n,e);j=(c[n+8>>2]|0)+8|0;if((e|0)>0){g=0;do{c[(c[j>>2]|0)+(g<<2)>>2]=d[(c[(c[h>>2]|0)+8>>2]|0)+g>>0];g=g+1|0}while((g|0)<(e|0))}mq(k,n);o=0;mb(56,b|0,k|0,e-f|0);b=o;o=0;if(!(b&1)){nq(k);if((f|0)>0){e=0;do{a[(c[(c[h>>2]|0)+8>>2]|0)+e>>0]=c[(c[j>>2]|0)+(e<<2)>>2];e=e+1|0}while((e|0)<(f|0))}nq(n);i=l;return}e=cc(256)|0;l=D;nq(k);if((l|0)==(Xb(256)|0)){fc(e|0)|0;e=Ob(8)|0;Qf(e);o=0;mb(55,e|0,160,56);o=0;e=cc()|0;o=0;ob(44);l=o;o=0;if(l&1){l=cc(0)|0;oq(l)}else m=e}else m=e;nq(n);bc(m|0)}function zn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;u=i;i=i+128|0;z=u+108|0;e=u+104|0;g=u+100|0;y=u+88|0;x=u+76|0;h=u+64|0;w=u+52|0;v=u+48|0;t=u+36|0;q=u+24|0;r=u+12|0;s=u;Zp(e,d);o=0;ma(179,z|0,e|0);p=o;o=0;if(p&1){z=cc()|0;Yd(e);e=z}else{Yd(e);o=0;p=qa(169,z|0)|0;n=o;o=0;do if(!(n&1)?(o=0,f=qa(181,z|0)|0,n=o,o=0,!(n&1)):0){c[g>>2]=f;o=0;n=qa(182,f|0)|0;m=o;o=0;if(m&1){e=cc()|0;lt(g);break}lt(g);o=0;ma(180,y|0,z|0);m=o;o=0;if(!(m&1)){Pd(h,y);o=0;ub(68,x|0,h|0,p|0,n|0);m=o;o=0;if(m&1){e=cc()|0;Sd(h)}else{Sd(h);m=x+4|0;e=c[x>>2]|0;a:do if((c[m>>2]|0)==(e|0)){e=0;j=17}else{f=0;d=0;while(1){o=0;e=qa(183,c[e+(f<<2)>>2]|0)|0;l=o;o=0;if(l&1)break;d=e+d|0;f=f+1|0;e=c[x>>2]|0;if(f>>>0>=(c[m>>2]|0)-e>>2>>>0){e=d;j=17;break a}}e=cc()|0;j=16}while(0);do if((j|0)==17){o=0;ma(87,w|0,e|0);l=o;o=0;if(l&1){e=cc()|0;j=16;break}k=t+8|0;l=(c[w+8>>2]|0)+8|0;e=c[x>>2]|0;b:do if((c[m>>2]|0)==(e|0))j=30;else{h=0;j=0;while(1){yt(v,e+(h<<2)|0);e=c[v>>2]|0;o=0;ma(181,t|0,e|0);g=o;o=0;if(g&1){j=24;break}o=0;e=qa(183,e|0)|0;g=o;o=0;if(g&1){j=25;break}Pd(q,t);o=0;mb(103,b|0,q|0,e|0);g=o;o=0;if(g&1){j=26;break}Sd(q);g=(e|0)>0?e:0;if((e|0)>0){d=0;f=j;while(1){a[(c[l>>2]|0)+f>>0]=a[(c[(c[k>>2]|0)+8>>2]|0)+d>>0]|0;d=d+1|0;if((d|0)>=(e|0))break;else f=f+1|0}}Sd(t);qt(v);h=h+1|0;e=c[x>>2]|0;if(h>>>0>=(c[m>>2]|0)-e>>2>>>0){j=30;break b}else j=j+g|0}if((j|0)==24)e=cc()|0;else if((j|0)==25){e=cc()|0;j=28}else if((j|0)==26){e=cc()|0;Sd(q);j=28}if((j|0)==28)Sd(t);qt(v)}while(0);do if((j|0)==30){Pd(r,w);c[s+4>>2]=0;c[s+8>>2]=0;c[s>>2]=s+4;o=0;e=kb(62,r|0,p|0,n|0,s|0)|0;v=o;o=0;if(v&1){e=cc()|0;zt(s);Sd(r);break}else{zt(s);Sd(r);Sd(w);st(x);Sd(y);At(z);i=u;return e|0}}while(0);Sd(w)}while(0);st(x)}Sd(y)}else j=11}else j=11;while(0);if((j|0)==11)e=cc()|0;At(z)}bc(e|0);return 0}function An(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;c[a>>2]=b;c[a+4>>2]=d;c[a+8>>2]=e;FC(a+12|0,g,iC(g)|0);return}function Bn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+176|0;f=e+152|0;j=e+16|0;h=e;do switch(b|0){case 0:{d=27820;break}case 1:{d=27844;break}case 2:{d=27868;break}case 3:{d=27892;break}case 4:{d=27916;break}case 5:{d=27988;break}case 7:{d=27940;break}case 8:{d=27964;break}case 9:{d=28012;break}case 13:{d=28036;break}default:{e=j+56|0;g=j+4|0;c[j>>2]=29792;c[e>>2]=29812;o=0;ma(104,j+56|0,g|0);d=o;o=0;if(d&1)d=cc()|0;else{c[j+128>>2]=0;c[j+132>>2]=-1;c[j>>2]=29832;c[j+56>>2]=29852;o=0;ka(307,g|0);d=o;o=0;do if(d&1)d=cc()|0;else{c[g>>2]=29868;d=j+36|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[j+48>>2]=0;c[j+52>>2]=16;c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;o=0;ma(105,g|0,f|0);l=o;o=0;if(l&1){l=cc()|0;IC(f);IC(d);nD(g);d=l;break}IC(f);o=0;d=Wa(66,j|0,50091)|0;l=o;o=0;do if(!(l&1)?(o=0,Wa(63,d|0,b|0)|0,l=o,o=0,!(l&1)):0){d=Ob(8)|0;o=0;ma(106,h|0,g|0);l=o;o=0;if(l&1){l=cc()|0;Nb(d|0);d=l;break}else{zq(d,(a[h>>0]&1)==0?h+1|0:c[h+8>>2]|0);c[d>>2]=29736;o=0;mb(55,d|0,24,146);o=0;d=cc()|0;IC(h);break}}else k=23;while(0);if((k|0)==23)d=cc()|0;Nq(j);bc(d|0)}while(0)}iD(e);bc(d|0)}}while(0);i=e;return d|0}function Cn(a,b){a=a|0;b=b|0;b=Po(b)|0;do if((b|0)>=10)if((b|0)<27){a=a+4|0;break}else{a=a+8|0;break}while(0);return c[a>>2]|0}function Dn(a,b,d,e){a=a|0;b=+b;d=+d;e=+e;ip(a,b,d);c[a>>2]=34404;g[a+16>>2]=e;return}function En(a,b,d,e){a=a|0;b=+b;d=+d;e=+e;if(+O(+(d-+ld[c[(c[a>>2]|0)+12>>2]&63](a)))<=b?+O(+(e-+ld[c[(c[a>>2]|0)+8>>2]&63](a)))<=b:0){e=+g[a+16>>2];d=+O(+(b-e));if(!(d<=1.0))a=d<=e;else a=1}else a=0;return a|0}function Fn(a,b,d,e){a=a|0;b=+b;d=+d;e=+e;var f=0,h=0,j=0,k=0.0;h=i;i=i+16|0;f=h;k=(+ld[c[(c[a>>2]|0)+8>>2]&63](a)+d)*.5;d=(+ld[c[(c[a>>2]|0)+12>>2]&63](a)+b)*.5;b=+g[a+16>>2];a=Sz(20)|0;o=0;wa(42,a|0,+k,+d);j=o;o=0;if(j&1){j=cc()|0;Uz(a);bc(j|0)}else{c[a>>2]=34404;g[a+16>>2]=(b+e)*.5;c[f>>2]=0;Bt(f,a);i=h;return c[f>>2]|0}return 0}function Gn(a,b){a=a|0;b=b|0;var d=0.0,e=0.0;d=+g[a+32>>2];e=d*.5;a=c[b>>2]|0;b=0;while(1){if((b|0)>=3){a=1;break}if(!(+O(+(d-+(c[a+(b<<2)>>2]|0)))>=e))b=b+1|0;else{a=0;break}}return a|0}function Hn(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0;t=i;i=i+16|0;r=t+4|0;o=t;j=a+8|0;p=jg(c[j>>2]|0)|0;c[o>>2]=0;ms(r,3,o);a:do if((b|0)>-1){h=b;while(1){k=c[j>>2]|0;o=eq(k,d,h)|0;m=c[r>>2]|0;l=m+4|0;n=c[l>>2]|0;if((n|0)>(e|0)|o^1)break;c[l>>2]=n+1;if((h|0)>0)h=h+-1|0;else{g=s;break a}}l=m+4|0;if((n|0)<=(e|0)){b:do if((h|0)>-1)while(1){if(eq(k,d,h)|0){q=7;break b}j=c[m>>2]|0;if((j|0)>(e|0)){o=j;break b}c[m>>2]=j+1;if((h|0)>0)h=h+-1|0;else{q=7;break}}else q=7;while(0);if((q|0)==7)o=c[m>>2]|0;if((o|0)<=(e|0)){h=b+1|0;c:do if((h|0)<(p|0)){j=n;while(1){if((j|0)>(e|0)|(eq(k,d,h)|0)^1){n=j;break c}j=j+1|0;c[l>>2]=j;h=h+1|0;if((h|0)>=(p|0)){n=j;break}}}while(0);if(!((h|0)==(p|0)|(n|0)>(e|0))){l=m+8|0;d:do if((h|0)<(p|0))while(1){if(eq(k,d,h)|0){q=17;break d}j=c[l>>2]|0;if((j|0)>(e|0))break d;c[l>>2]=j+1;h=h+1|0;if((h|0)>=(p|0)){q=17;break}}else q=17;while(0);if((q|0)==17)j=c[m+8>>2]|0;if(((j|0)<=(e|0)?(q=j-f+o+n|0,(((q|0)>-1?q:0-q|0)*5|0)<(f<<1|0)):0)?Gn(a,r)|0:0)g=+(h-j|0)-+(n|0)*.5;else g=s}else g=s}else g=s}else g=s}else g=s;while(0);br(r);i=t;return +g}function In(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0.0,l=0.0,m=0.0,n=0,p=0,q=0,r=0,s=0,t=0;s=i;i=i+16|0;r=s+12|0;n=s+8|0;p=s+4|0;q=s;f=c[b>>2]|0;t=c[f+4>>2]|0;h=c[f+8>>2]|0;m=+(e-h|0)-+(t|0)*.5;l=+Hn(a,d,~~m,t<<1,t+(c[f>>2]|0)+h|0);a:do if(((g[k>>2]=l,c[k>>2]|0)&2147483647)>>>0>2139095040)d=18;else{h=c[b>>2]|0;j=+((c[h+4>>2]|0)+(c[h>>2]|0)+(c[h+8>>2]|0)|0)/3.0;h=a+12|0;t=c[h>>2]|0;t=(c[t+4>>2]|0)-(c[t>>2]|0)|0;d=t>>2;b:do if((t|0)>0){f=0;while(1){e=c[(c[c[h>>2]>>2]|0)+(f<<2)>>2]|0;c[n>>2]=0;Bt(n,e);e=c[n>>2]|0;o=0;b=Qa(42,e|0,+j,+l,+m)|0;t=o;o=0;if(t&1){d=7;break}if(b){d=5;break}Ct(n);f=f+1|0;if((f|0)>=(d|0)){d=11;break b}}do if((d|0)==5){o=0;e=Qa(43,e|0,+l,+m,+j)|0;t=o;o=0;if(t&1){e=cc()|0;break}else{c[r>>2]=e;Ct(n);break a}}else if((d|0)==7)e=cc()|0;while(0);Ct(n)}else d=11;while(0);do if((d|0)==11){f=Sz(20)|0;o=0;Ia(42,f|0,+m,+l,+j);t=o;o=0;if(t&1){e=cc()|0;Uz(f);break}c[p>>2]=f;e=f+4|0;c[e>>2]=(c[e>>2]|0)+1;e=c[h>>2]|0;d=e+4|0;b=c[d>>2]|0;if((b|0)==(c[e+8>>2]|0))Dt(e,p);else{c[b>>2]=f;c[d>>2]=(c[d>>2]|0)+4}e=c[a+36>>2]|0;if(!e){d=18;break a}$c[c[(c[e>>2]|0)+8>>2]&511](e,f);d=18;break a}while(0);bc(e|0)}while(0);if((d|0)==18){c[q>>2]=0;Bt(q,0);c[r>>2]=0;Bt(r,c[q>>2]|0);Ct(q);e=c[r>>2]|0}i=s;return e|0}function Jn(a,b,d,e,f,h,i,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=+i;j=j|0;var k=0,l=0;c[a+4>>2]=0;c[a>>2]=28068;k=a+8|0;Zp(k,b);o=0;b=qa(111,12)|0;l=o;o=0;if(l&1){l=cc()|0;Yd(k);bc(l|0)}else{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[a+12>>2]=b;c[a+16>>2]=d;c[a+20>>2]=e;c[a+24>>2]=f;c[a+28>>2]=h;g[a+32>>2]=i;we(a+36|0,j);return}}function Kn(a){a=a|0;var b=0,d=0,e=0,f=0;c[a>>2]=28068;f=a+12|0;b=c[f>>2]|0;d=c[b>>2]|0;if(((c[b+4>>2]|0)-d|0)>0){e=0;do{ye(c[d+(e<<2)>>2]|0);c[(c[c[f>>2]>>2]|0)+(e<<2)>>2]=0;e=e+1|0;b=c[f>>2]|0;d=c[b>>2]|0}while((e|0)<((c[b+4>>2]|0)-d>>2|0))}if(b){Et(b);Uz(b)}ze(a+36|0);Yd(a+8|0);return}function Ln(a){a=a|0;Kn(a);Uz(a);return}function Mn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;q=i;i=i+32|0;p=q+16|0;r=q+4|0;j=q;k=a+16|0;l=(c[a+24>>2]|0)+(c[k>>2]|0)|0;m=a+28|0;h=(c[m>>2]>>1)+(c[a+20>>2]|0)|0;c[j>>2]=0;ms(r,3,j);j=a+8|0;a:do if((c[m>>2]|0)>0){n=0;b:while(1){b=n;n=n+1|0;g=n>>1;g=h+((b&1|0)==0?g:0-g|0)|0;b=c[r>>2]|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;d=c[k>>2]|0;c:do if((d|0)<(l|0)){e=c[j>>2]|0;do{if(eq(e,d,g)|0)break c;d=d+1|0}while((d|0)<(l|0))}while(0);if((d|0)<(l|0)){f=0;while(1){e=(f|0)==1;do if(eq(c[j>>2]|0,d,g)|0){if(e){e=b+4|0;c[e>>2]=(c[e>>2]|0)+1;e=1;break}if((f|0)!=2){e=f+1|0;f=b+(e<<2)|0;c[f>>2]=(c[f>>2]|0)+1;break}if(Gn(a,r)|0){o=0;b=kb(63,a|0,r|0,g|0,d|0)|0;f=o;o=0;if(f&1){d=28;break b}c[p>>2]=b;if(b){d=27;break a}Ct(p);b=c[r>>2]|0}e=b+8|0;c[b>>2]=c[e>>2];c[b+4>>2]=1;c[e>>2]=0;e=1}else{e=(e&1)+f|0;f=b+(e<<2)|0;c[f>>2]=(c[f>>2]|0)+1}while(0);d=d+1|0;if((d|0)>=(l|0))break;else f=e}}if(Gn(a,r)|0){o=0;b=kb(63,a|0,r|0,g|0,l|0)|0;g=o;o=0;if(g&1){d=29;break}c[p>>2]=b;if(b){d=27;break a}Ct(p)}if((n|0)>=(c[m>>2]|0)){d=24;break a}}if((d|0)==28){b=cc()|0;d=30;break}else if((d|0)==29){b=cc()|0;d=30;break}}else d=24;while(0);do if((d|0)==24){a=c[a+12>>2]|0;b=c[a>>2]|0;if((c[a+4>>2]|0)==(b|0)){b=Ob(8)|0;zq(b,50111);c[b>>2]=29736;o=0;mb(55,b|0,24,146);o=0;b=cc()|0;d=30;break}else{b=c[b>>2]|0;c[p>>2]=0;Bt(p,b);b=c[p>>2]|0;d=27;break}}while(0);if((d|0)==27){br(r);i=q;return b|0}else if((d|0)==30){br(r);bc(b|0)}return 0}function Nn(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=28084;Zp(a+8|0,b);a=a+12|0;c[a>>2]=0;xe(a,0);return}function On(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;Zp(b,a+8|0);i=d;return c[b>>2]|0}function Pn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=i;i=i+48|0;e=j+40|0;k=j+16|0;f=j+12|0;d=j+8|0;h=j+4|0;g=j;m=ej(b)|0;c[e>>2]=m;xe(a+12|0,m);ze(e);Zp(f,a+8|0);o=0;e=qa(145,b|0)|0;m=o;o=0;do if(m&1){d=cc()|0;l=8}else{c[d>>2]=e;o=0;mb(73,k|0,f|0,d|0);m=o;o=0;if(m&1){l=cc()|0;ze(d);d=l;l=8;break}ze(d);Yd(f);o=0;d=Wa(111,k|0,b|0)|0;m=o;o=0;do if(!(m&1)){c[h>>2]=d;c[g>>2]=0;_r(g,d);o=0;d=Wa(84,a|0,g|0)|0;m=o;o=0;if(m&1){d=cc()|0;Tr(g);Tr(h);break}else{Tr(g);Tr(h);Wr(k);i=j;return d|0}}else d=cc()|0;while(0);Wr(k)}while(0);if((l|0)==8)Yd(f);bc(d|0);return 0}function Qn(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0.0,g=0.0,h=0.0,j=0.0,k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0.0,t=0.0,u=0.0,v=0.0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;L=i;i=i+112|0;I=L+104|0;T=L+100|0;S=L+96|0;R=L+92|0;d=L+88|0;l=L+84|0;m=L+80|0;n=L+76|0;p=L+72|0;q=L+68|0;P=L+64|0;x=L+60|0;O=L+56|0;A=L+52|0;B=L+48|0;y=L+44|0;z=L+40|0;N=L+36|0;C=L+32|0;E=L+28|0;M=L+16|0;J=L+12|0;K=L;G=qo(c[b>>2]|0)|0;c[T>>2]=G;o=0;F=qa(149,c[b>>2]|0)|0;H=o;o=0;if(H&1)b=cc()|0;else{c[S>>2]=F;o=0;H=qa(148,c[b>>2]|0)|0;w=o;o=0;if(w&1)b=cc()|0;else{c[R>>2]=H;c[d>>2]=0;vq(d,G);c[l>>2]=0;vq(l,F);c[m>>2]=0;vq(m,H);o=0;v=+Ea(42,a|0,d|0,l|0,m|0);w=o;o=0;do if(w&1){b=cc()|0;uq(m);uq(l);uq(d)}else{uq(m);uq(l);uq(d);if(!(v<1.0)){c[n>>2]=0;vq(n,G);c[p>>2]=0;vq(p,F);c[q>>2]=0;vq(q,H);o=0;w=ib(42,n|0,p|0,q|0,+v)|0;m=o;o=0;if(m&1){b=cc()|0;uq(q);uq(p);uq(n);break}uq(q);uq(p);uq(n);o=0;b=qa(184,w|0)|0;q=o;o=0;if(!(q&1)?(o=0,r=qa(185,b|0)|0,q=o,o=0,!(q&1)):0){d=r+-7|0;c[P>>2]=0;Bt(P,0);o=0;b=qa(186,b|0)|0;r=o;o=0;a:do if(r&1)Q=30;else{b:do if((c[b+4>>2]|0)!=(c[b>>2]|0)){o=0;g=+Ka(c[(c[F>>2]|0)+8>>2]|0,F|0);r=o;o=0;if(r&1){Q=30;break a}o=0;h=+Ka(c[(c[G>>2]|0)+8>>2]|0,G|0);r=o;o=0;if(r&1){Q=30;break a}o=0;j=+Ka(c[(c[H>>2]|0)+8>>2]|0,H|0);r=o;o=0;if(r&1){Q=30;break a}o=0;s=+Ka(c[(c[F>>2]|0)+12>>2]|0,F|0);r=o;o=0;if(r&1){Q=30;break a}o=0;t=+Ka(c[(c[G>>2]|0)+12>>2]|0,G|0);r=o;o=0;if(r&1){Q=30;break a}o=0;u=+Ka(c[(c[H>>2]|0)+12>>2]|0,H|0);r=o;o=0;if(r&1){Q=30;break a}k=1.0-3.0/+(d|0);o=0;e=+Ka(c[(c[G>>2]|0)+8>>2]|0,G|0);r=o;o=0;if(r&1){Q=30;break a}o=0;f=+Ka(c[(c[G>>2]|0)+8>>2]|0,G|0);r=o;o=0;if(r&1){Q=30;break a}m=~~(e+k*(g-h+j-f));o=0;e=+Ka(c[(c[G>>2]|0)+12>>2]|0,G|0);r=o;o=0;if(r&1){Q=30;break a}o=0;f=+Ka(c[(c[G>>2]|0)+12>>2]|0,G|0);r=o;o=0;if(r&1){Q=30;break a}d=~~(e+k*(s-t+u-f));l=4;while(1){o=0;b=Ga(42,a|0,+v,m|0,d|0,+(+(l|0)))|0;r=o;o=0;if(!(r&1)){Q=27;break}b=cc(24)|0;r=D;if((r|0)!=(Xb(24)|0))break a;fc(b|0)|0;o=0;ob(44);r=o;o=0;if(r&1){Q=29;break}l=l<<1;if((l|0)>=17)break b}if((Q|0)==27){c[x>>2]=b;Bt(P,b);Ct(x);break}else if((Q|0)==29){b=cc()|0;Q=31;break a}}while(0);b=c[(c[a>>2]|0)+8>>2]|0;c[A>>2]=0;vq(A,G);c[B>>2]=0;vq(B,F);c[y>>2]=0;vq(y,H);c[z>>2]=0;d=c[P>>2]|0;vq(z,d);o=0;b=oa(b|0,a|0,A|0,B|0,y|0,z|0,w|0)|0;x=o;o=0;if(x&1){b=cc()|0;uq(z);uq(y);uq(B);uq(A);break}c[O>>2]=b;uq(z);uq(y);uq(B);uq(A);Zp(C,a+8|0);c[E>>2]=0;Zq(E,b);o=0;l=ya(117,C|0,w|0,E|0)|0;a=o;o=0;if(a&1){b=cc()|0;_q(E);Yd(C)}else{c[N>>2]=l;_q(E);Yd(C);o=0;b=qa(111,20)|0;E=o;o=0;do if(E&1)b=cc()|0;else{o=0;ma(124,b|0,4);E=o;o=0;if(E&1){M=cc()|0;Uz(b);b=M;break}Dq(M,b);b=(c[M+8>>2]|0)+8|0;vq(c[b>>2]|0,H);vq((c[b>>2]|0)+4|0,G);vq((c[b>>2]|0)+8|0,F);do if(!d){o=0;h=+Ka(c[(c[F>>2]|0)+8>>2]|0,F|0);E=o;o=0;if(E&1){Q=45;break}o=0;j=+Ka(c[(c[G>>2]|0)+8>>2]|0,G|0);E=o;o=0;if(E&1){Q=45;break}o=0;k=+Ka(c[(c[H>>2]|0)+8>>2]|0,H|0);E=o;o=0;if(E&1){Q=45;break}o=0;g=+Ka(c[(c[F>>2]|0)+12>>2]|0,F|0);F=o;o=0;if(F&1){Q=45;break}o=0;f=+Ka(c[(c[G>>2]|0)+12>>2]|0,G|0);G=o;o=0;if(G&1){Q=45;break}o=0;e=+Ka(c[(c[H>>2]|0)+12>>2]|0,H|0);H=o;o=0;if(H&1){Q=45;break}b=(c[b>>2]|0)+12|0;o=0;d=qa(111,16)|0;H=o;o=0;if(H&1){Q=45;break}o=0;wa(42,d|0,+(h-j+k),+(g-f+e));H=o;o=0;if(H&1){b=cc()|0;Uz(d);break}else{vq(b,d);Q=56;break}}else{vq((c[b>>2]|0)+12|0,d);Q=56}while(0);do if((Q|0)==56){o=0;b=qa(111,24)|0;H=o;o=0;if(H&1){Q=45;break}c[J>>2]=0;Ke(J,l);oe(K,M);o=0;mb(52,b|0,J|0,K|0);H=o;o=0;if(H&1){L=cc()|0;pe(K);Yd(J);Uz(b);b=L;break}else{c[I>>2]=0;Hr(I,b);pe(K);Yd(J);pe(M);Yd(N);_q(O);Ct(P);fs(R);fs(S);fs(T);i=L;return c[I>>2]|0}}while(0);if((Q|0)==45)b=cc()|0;pe(M)}while(0);Yd(N)}_q(O)}while(0);if((Q|0)==30){b=cc()|0;Q=31}Ct(P);break}}else{Q=Ob(8)|0;zq(Q,50144);c[Q>>2]=29736;o=0;mb(55,Q|0,24,146);o=0}b=cc()|0}while(0);fs(R)}fs(S)}fs(T);bc(b|0);return 0}function Rn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0.0,f=0.0,g=0,h=0,j=0,k=0,l=0;j=i;i=i+16|0;k=j+12|0;l=j+8|0;g=j+4|0;h=j;tq(k,b);tq(l,c);o=0;f=+_a(42,a|0,k|0,l|0);c=o;o=0;do if(!(c&1)){tq(g,b);tq(h,d);o=0;e=+_a(42,a|0,g|0,h|0);b=o;o=0;if(b&1){c=cc()|0;uq(h);uq(g);break}else{uq(h);uq(g);uq(l);uq(k);i=j;return +((f+e)*.5)}}else c=cc()|0;while(0);uq(l);uq(k);bc(c|0);return 0.0}function Sn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=+f;var g=0,h=0,j=0.0,k=0.0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;n=i;i=i+176|0;p=n+164|0;g=n+160|0;h=n+20|0;l=n+16|0;m=n+12|0;r=n+24|0;q=n;tq(g,b);tq(h,d);o=0;k=+eb(42,g|0,h|0);d=o;o=0;a:do if(d&1){d=cc()|0;uq(h);uq(g)}else{uq(h);uq(g);tq(l,b);tq(m,e);o=0;j=+eb(42,l|0,m|0);b=o;o=0;if(b&1){d=cc()|0;uq(m);uq(l);break}uq(m);uq(l);g=~~(j/f+.5)+~~(k/f+.5)>>1;d=g+7|0;switch(d&3|0){case 0:{d=g+8|0;break}case 2:{d=g+6|0;break}case 3:{h=r+56|0;e=r+4|0;c[r>>2]=29792;c[h>>2]=29812;o=0;ma(104,r+56|0,e|0);n=o;o=0;if(n&1)d=cc()|0;else{c[r+128>>2]=0;c[r+132>>2]=-1;c[r>>2]=29832;c[r+56>>2]=29852;o=0;ka(307,e|0);n=o;o=0;do if(n&1)d=cc()|0;else{c[e>>2]=29868;g=r+36|0;c[g>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[r+48>>2]=0;c[r+52>>2]=16;c[p>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;o=0;ma(105,e|0,p|0);n=o;o=0;if(n&1){d=cc()|0;IC(p);IC(g);nD(e);break}IC(p);o=0;g=Wa(66,r|0,50160)|0;p=o;o=0;do if(!(p&1)?(o=0,Wa(63,g|0,d|0)|0,p=o,o=0,!(p&1)):0){d=Ob(8)|0;o=0;ma(106,q|0,e|0);p=o;o=0;if(p&1){q=cc()|0;Nb(d|0);d=q;break}else{zq(d,(a[q>>0]&1)==0?q+1|0:c[q+8>>2]|0);c[d>>2]=29736;o=0;mb(55,d|0,24,146);o=0;d=cc()|0;IC(q);break}}else s=20;while(0);if((s|0)==20)d=cc()|0;Nq(r);break a}while(0)}iD(h);bc(d|0)}default:{}}i=n;return d|0}while(0);bc(d|0);return 0}function Tn(a,b,d,e,f){a=a|0;b=+b;d=d|0;e=e|0;f=+f;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;p=i;i=i+48|0;n=p+8|0;m=p;h=~~(b*f);k=d-h|0;k=(k|0)>0?k:0;l=a+8|0;g=(ig(c[l>>2]|0)|0)+-1|0;j=h+d|0;g=((j|0)<(g|0)?j:g)-k|0;f=b*3.0;if(+(g|0)<f){p=Ob(8)|0;zq(p,50176);c[p>>2]=29736;Hc(p|0,24,146)}j=e-h|0;j=(j|0)>0?j:0;d=(jg(c[l>>2]|0)|0)+-1|0;e=h+e|0;d=((e|0)<(d|0)?e:d)-j|0;if(+(d|0)<f){p=Ob(8)|0;zq(p,50176);c[p>>2]=29736;Hc(p|0,24,146)}Zp(m,l);o=0;cb(42,n|0,m|0,k|0,j|0,g|0,d|0,+b,a+12|0);a=o;o=0;do if(!(a&1)){Yd(m);o=0;d=qa(187,n|0)|0;a=o;o=0;if(a&1){d=cc()|0;Kn(n);break}else{Kn(n);i=p;return d|0}}else{d=cc()|0;Yd(m)}while(0);bc(d|0);return 0}function Un(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=i;i=i+16|0;d=f+4|0;e=f;g=Qg()|0;Zp(d,a);Lr(e,c);o=0;b=kb(54,g|0,d|0,b|0,e|0)|0;c=o;o=0;if(c&1){g=cc()|0;_q(e);Yd(d);bc(g|0)}else{_q(e);Yd(d);i=f;return b|0}return 0}function Vn(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0.0,i=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0;k=+(g|0)+-3.5;g=c[f>>2]|0;if(!g){f=c[d>>2]|0;h=+ld[c[(c[f>>2]|0)+8>>2]&63](f);f=c[b>>2]|0;h=h-+ld[c[(c[f>>2]|0)+8>>2]&63](f);f=c[e>>2]|0;h=h+ +ld[c[(c[f>>2]|0)+8>>2]&63](f);f=c[d>>2]|0;i=+ld[c[(c[f>>2]|0)+12>>2]&63](f);f=c[b>>2]|0;i=i-+ld[c[(c[f>>2]|0)+12>>2]&63](f);f=c[e>>2]|0;a=e;g=b;i=i+ +ld[c[(c[f>>2]|0)+12>>2]&63](f);j=k}else{h=+ld[c[(c[g>>2]|0)+8>>2]&63](g);f=c[f>>2]|0;a=e;g=b;i=+ld[c[(c[f>>2]|0)+12>>2]&63](f);j=k+-3.0}b=c[g>>2]|0;p=+ld[c[(c[b>>2]|0)+8>>2]&63](b);b=c[g>>2]|0;o=+ld[c[(c[b>>2]|0)+12>>2]&63](b);b=c[d>>2]|0;n=+ld[c[(c[b>>2]|0)+8>>2]&63](b);b=c[d>>2]|0;m=+ld[c[(c[b>>2]|0)+12>>2]&63](b);b=c[a>>2]|0;l=+ld[c[(c[b>>2]|0)+8>>2]&63](b);b=c[a>>2]|0;return bh(3.5,3.5,k,3.5,j,j,3.5,k,p,o,n,m,h,i,l,+ld[c[(c[b>>2]|0)+12>>2]&63](b))|0}function Wn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0.0,f=0.0,h=0,i=0,j=0,l=0;l=c[b>>2]|0;l=~~+ld[c[(c[l>>2]|0)+8>>2]&63](l);j=c[b>>2]|0;j=~~+ld[c[(c[j>>2]|0)+12>>2]&63](j);h=c[d>>2]|0;h=~~+ld[c[(c[h>>2]|0)+8>>2]&63](h);i=c[d>>2]|0;e=+Xn(a,l,j,h,~~+ld[c[(c[i>>2]|0)+12>>2]&63](i));i=c[d>>2]|0;i=~~+ld[c[(c[i>>2]|0)+8>>2]&63](i);h=c[d>>2]|0;h=~~+ld[c[(c[h>>2]|0)+12>>2]&63](h);d=c[b>>2]|0;d=~~+ld[c[(c[d>>2]|0)+8>>2]&63](d);b=c[b>>2]|0;f=+Xn(a,i,h,d,~~+ld[c[(c[b>>2]|0)+12>>2]&63](b));if(((g[k>>2]=e,c[k>>2]|0)&2147483647)>>>0<=2139095040){if(((g[k>>2]=f,c[k>>2]|0)&2147483647)>>>0<=2139095040)e=(e+f)/14.0}else e=f;return +e}function Xn(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,i=0,j=0.0,k=0,l=0.0;l=+Yn(a,b,d,e,f);i=e-b|0;e=b-i|0;if((e|0)>=0){h=a+8|0;if((e|0)<(ig(c[h>>2]|0)|0)){k=e;g=1.0}else{g=+((ig(c[h>>2]|0)|0)+~b|0)/+(0-i|0);k=(ig(c[h>>2]|0)|0)+-1|0}}else{k=0;g=+(b|0)/+(i|0)}j=+(d|0);h=~~(j-+(f-d|0)*g);if((h|0)>=0){e=a+8|0;if((h|0)<(jg(c[e>>2]|0)|0)){e=h;g=1.0}else{g=+((jg(c[e>>2]|0)|0)+~d|0)/+(h-d|0);e=(jg(c[e>>2]|0)|0)+-1|0}}else{e=0;g=j/+(d-h|0)}return +(l+ +Yn(a,b,d,~~(+(b|0)+ +(k-b|0)*g),e)+-1.0)}function Yn(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=f-d|0;o=e-b|0;o=(((q|0)>-1?q:0-q|0)|0)>(((o|0)>-1?o:0-o|0)|0);q=o?e:f;l=o?f:e;p=o?b:d;n=o?d:b;j=l-n|0;j=(j|0)>-1?j:0-j|0;m=q-p|0;k=(m|0)>-1?m:0-m|0;h=(l|0)>(n|0)?1:-1;i=(q|0)>(p|0)?1:-1;l=h+l|0;a:do if((l|0)==(n|0)){e=0;r=11}else{a=c[a+8>>2]|0;b=0-j>>1;e=0;f=n;d=p;while(1){if(!((e|0)==1^(eq(a,o?d:f,o?f:d)|0))){if((e|0)==2){e=d;break}e=e+1|0}b=b+k|0;if((b|0)>0){if((d|0)==(q|0)){r=11;break a}b=b-j|0;d=d+i|0}f=f+h|0;if((f|0)==(l|0)){r=11;break a}}q=f-n|0;p=e-p|0;g=+P(+(+(($(p,p)|0)+($(q,q)|0)|0)))}while(0);if((r|0)==11)if((e|0)==2){r=l-n|0;g=+P(+(+(($(r,r)|0)+($(m,m)|0)|0)))}else g=s;return +g}function Zn(a,b,d,e){a=a|0;b=+b;d=+d;e=+e;ip(a,b,d);c[a>>2]=34428;g[a+16>>2]=e;c[a+20>>2]=1;return}function _n(a){a=a|0;return c[a+20>>2]|0}function $n(a){a=a|0;return +(+g[a+16>>2])}function ao(a,b,d,e){a=a|0;b=+b;d=+d;e=+e;if(+O(+(d-+ld[c[(c[a>>2]|0)+12>>2]&63](a)))<=b?+O(+(e-+ld[c[(c[a>>2]|0)+8>>2]&63](a)))<=b:0){e=+g[a+16>>2];d=+O(+(b-e));if(!(d<=1.0))a=d<=e;else a=1}else a=0;return a|0}function bo(a,b,d,e){a=a|0;b=+b;d=+d;e=+e;var f=0,h=0,j=0.0,k=0,l=0,m=0,n=0.0;l=i;i=i+16|0;h=l;f=a+20|0;m=c[f>>2]|0;k=m+1|0;j=+(k|0);n=(+(m|0)*+ld[c[(c[a>>2]|0)+8>>2]&63](a)+d)/j;d=+(c[f>>2]|0);d=(d*+ld[c[(c[a>>2]|0)+12>>2]&63](a)+b)/j;f=c[f>>2]|0;b=+g[a+16>>2];a=Sz(24)|0;o=0;wa(42,a|0,+n,+d);m=o;o=0;if(m&1){m=cc()|0;Uz(a);bc(m|0)}else{c[a>>2]=34428;g[a+16>>2]=(+(f|0)*b+e)/j;c[a+20>>2]=k;c[h>>2]=0;hs(h,a);i=l;return c[h>>2]|0}return 0}function co(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0.0,j=0.0;b=c[a>>2]|0;if((((((((((b|0)!=0?(d=c[a+4>>2]|0,(d|0)!=0):0)?(e=c[a+8>>2]|0,(e|0)!=0):0)?(f=c[a+12>>2]|0,(f|0)!=0):0)?(g=c[a+16>>2]|0,(g|0)!=0):0)?(h=g+(f+(e+(d+b)))|0,(h|0)>=7):0)?(i=+(h|0)/7.0,j=i*.5,+O(+(i-+(c[a>>2]|0)))<j):0)?+O(+(i-+(c[a+4>>2]|0)))<j:0)?+O(+(i*3.0-+(c[a+8>>2]|0)))<j*3.0:0)?+O(+(i-+(c[a+12>>2]|0)))<j:0)b=+O(+(i-+(c[a+16>>2]|0)))<j;else b=0;return b|0}function eo(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0,u=0;u=i;i=i+32|0;r=u;n=jg(c[a>>2]|0)|0;c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;c[r+16>>2]=0;p=r+8|0;a:do if((b|0)>-1){a=c[a>>2]|0;h=b;while(1){if(!(eq(a,d,h)|0)){m=a;break}c[p>>2]=(c[p>>2]|0)+1;if((h|0)>0)h=h+-1|0;else{g=s;break a}}j=r+4|0;if((h|0)>-1){while(1){l=eq(m,d,h)|0;a=c[j>>2]|0;if(l|(a|0)>(e|0)){l=a;break}c[j>>2]=a+1;if((h|0)>0)h=h+-1|0;else{g=s;break a}}if((l|0)<=(e|0)){b:do if((h|0)>-1)while(1){if(!(eq(m,d,h)|0)){t=11;break b}a=c[r>>2]|0;if((a|0)>(e|0)){k=a;break b}c[r>>2]=a+1;if((h|0)>0)h=h+-1|0;else{t=11;break}}else t=11;while(0);if((t|0)==11)k=c[r>>2]|0;if((k|0)<=(e|0)){a=b+1|0;c:do if((a|0)<(n|0))do{if(!(eq(m,d,a)|0))break c;c[p>>2]=(c[p>>2]|0)+1;a=a+1|0}while((a|0)<(n|0));while(0);if((a|0)!=(n|0)){j=r+12|0;d:do if((a|0)<(n|0))do{if(eq(m,d,a)|0)break d;h=c[j>>2]|0;if((h|0)>=(e|0))break d;c[j>>2]=h+1;a=a+1|0}while((a|0)<(n|0));while(0);if((a|0)!=(n|0)?(o=c[j>>2]|0,(o|0)<(e|0)):0){j=r+16|0;e:do if((a|0)<(n|0))while(1){if(!(eq(m,d,a)|0)){t=27;break e}h=c[j>>2]|0;if((h|0)>=(e|0))break e;c[j>>2]=h+1;a=a+1|0;if((a|0)>=(n|0)){t=27;break}}else t=27;while(0);if((t|0)==27)h=c[j>>2]|0;if(((h|0)<(e|0)?(q=c[p>>2]|0,t=h-f+k+l+q+o|0,(((t|0)>-1?t:0-t|0)*5|0)<(f<<1|0)):0)?co(r)|0:0)g=+(a-h-o|0)-+(q|0)*.5;else g=s}else g=s}else g=s}else g=s}else g=s}else g=s}else g=s;while(0);i=u;return +g}function fo(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0,u=0;u=i;i=i+32|0;r=u;n=ig(c[a>>2]|0)|0;c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;c[r+16>>2]=0;p=r+8|0;a:do if((b|0)>-1){a=c[a>>2]|0;h=b;while(1){if(!(eq(a,h,d)|0)){m=a;break}c[p>>2]=(c[p>>2]|0)+1;if((h|0)>0)h=h+-1|0;else{g=s;break a}}j=r+4|0;if((h|0)>-1){while(1){l=eq(m,h,d)|0;a=c[j>>2]|0;if(l|(a|0)>(e|0)){l=a;break}c[j>>2]=a+1;if((h|0)>0)h=h+-1|0;else{g=s;break a}}if((l|0)<=(e|0)){b:do if((h|0)>-1)while(1){if(!(eq(m,h,d)|0)){t=11;break b}a=c[r>>2]|0;if((a|0)>(e|0)){k=a;break b}c[r>>2]=a+1;if((h|0)>0)h=h+-1|0;else{t=11;break}}else t=11;while(0);if((t|0)==11)k=c[r>>2]|0;if((k|0)<=(e|0)){a=b+1|0;c:do if((a|0)<(n|0))do{if(!(eq(m,a,d)|0))break c;c[p>>2]=(c[p>>2]|0)+1;a=a+1|0}while((a|0)<(n|0));while(0);if((a|0)!=(n|0)){j=r+12|0;d:do if((a|0)<(n|0))do{if(eq(m,a,d)|0)break d;h=c[j>>2]|0;if((h|0)>=(e|0))break d;c[j>>2]=h+1;a=a+1|0}while((a|0)<(n|0));while(0);if((a|0)!=(n|0)?(o=c[j>>2]|0,(o|0)<(e|0)):0){j=r+16|0;e:do if((a|0)<(n|0))while(1){if(!(eq(m,a,d)|0)){t=27;break e}h=c[j>>2]|0;if((h|0)>=(e|0))break e;c[j>>2]=h+1;a=a+1|0;if((a|0)>=(n|0)){t=27;break}}else t=27;while(0);if((t|0)==27)h=c[j>>2]|0;if(((h|0)<(e|0)?(q=c[p>>2]|0,t=h-f+k+l+q+o|0,(((t|0)>-1?t:0-t|0)*5|0)<(f|0)):0)?co(r)|0:0)g=+(a-h-o|0)-+(q|0)*.5;else g=s}else g=s}else g=s}else g=s}else g=s}else g=s}else g=s;while(0);i=u;return +g}function go(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,h=0,j=0.0,l=0,m=0.0,n=0,p=0,q=0.0,r=0,s=0,t=0,u=0;s=i;i=i+16|0;r=s+8|0;p=s+4|0;n=s;h=b+8|0;l=c[h>>2]|0;u=c[b+12>>2]|0;t=c[b+16>>2]|0;f=(c[b+4>>2]|0)+(c[b>>2]|0)+l+u+t|0;b=~~(+(e-u-t|0)-+(l|0)*.5)>>>0;m=+eo(a,d,b,l,f);a:do if(((g[k>>2]=m,c[k>>2]|0)&2147483647)>>>0<=2139095040?(q=+fo(a,b,~~m>>>0,c[h>>2]|0,f),((g[k>>2]=q,c[k>>2]|0)&2147483647)>>>0<=2139095040):0){j=+(f|0)/7.0;l=a+4|0;h=a+8|0;e=(c[h>>2]|0)-(c[l>>2]|0)>>2;b:do if(!e)d=12;else{f=0;while(1){es(r,(c[l>>2]|0)+(f<<2)|0);b=c[r>>2]|0;o=0;d=Qa(44,b|0,+j,+m,+q)|0;u=o;o=0;if(u&1){d=9;break}if(d){d=6;break}fs(r);f=f+1|0;if(f>>>0>=e>>>0){d=12;break b}}do if((d|0)==6){e=c[l>>2]|0;o=0;b=Qa(45,b|0,+m,+q,+j)|0;u=o;o=0;if(u&1){b=cc()|0;break}else{c[p>>2]=b;hs(e+(f<<2)|0,b);fs(p);fs(r);b=1;break a}}else if((d|0)==9)b=cc()|0;while(0);fs(r)}while(0);do if((d|0)==12){b=Sz(24)|0;o=0;Ia(43,b|0,+q,+m,+j);u=o;o=0;if(u&1){u=cc()|0;Uz(b);b=u;break}c[n>>2]=0;hs(n,b);b=c[h>>2]|0;if((b|0)==(c[a+12>>2]|0)){o=0;ma(138,l|0,n|0);u=o;o=0;if(!(u&1))d=16}else{c[b>>2]=0;hs(b,c[n>>2]|0);c[h>>2]=(c[h>>2]|0)+4;d=16}do if((d|0)==16){b=c[a+20>>2]|0;if((b|0)!=0?(o=0,ma(c[(c[b>>2]|0)+8>>2]|0,b|0,c[n>>2]|0),u=o,o=0,u&1):0)break;fs(n);b=1;break a}while(0);b=cc()|0;fs(n)}while(0);bc(b|0)}else b=0;while(0);i=s;return b|0}function ho(b){b=b|0;var d=0,e=0.0,f=0,g=0,h=0,j=0,k=0,l=0.0,m=0.0,n=0.0,p=0.0,q=0,r=0,s=0;s=i;i=i+16|0;r=s+4|0;q=s;h=b+4|0;j=(c[b+8>>2]|0)-(c[h>>2]|0)>>2;if(j>>>0<2)d=0;else{c[r>>2]=0;hs(r,0);a:do if(!j)d=0;else{k=0;while(1){es(q,(c[h>>2]|0)+(k<<2)|0);d=c[q>>2]|0;o=0;f=qa(188,d|0)|0;g=o;o=0;if(g&1){f=14;break}if((f|0)>=(c[7024]|0)){g=c[r>>2]|0;if(g){f=7;break}hs(r,d)}fs(q);k=k+1|0;if(k>>>0>=j>>>0){d=0;break a}}if((f|0)==7){a[b+16>>0]=1;o=0;e=+Ka(c[(c[g>>2]|0)+8>>2]|0,g|0);b=o;o=0;if(((!(b&1)?(o=0,l=+Ka(c[(c[d>>2]|0)+8>>2]|0,d|0),b=o,o=0,!(b&1)):0)?(m=+O(+(e-l)),o=0,n=+Ka(c[(c[g>>2]|0)+12>>2]|0,g|0),b=o,o=0,!(b&1)):0)?(o=0,p=+Ka(c[(c[d>>2]|0)+12>>2]|0,d|0),b=o,o=0,!(b&1)):0){d=(~~(m-+O(+(n-p)))|0)/2|0;fs(q);break}d=cc()|0}else if((f|0)==14)d=cc()|0;fs(q);fs(r);bc(d|0)}while(0);fs(r)}i=s;return d|0}function io(a){a=a|0;var b=0.0,d=0.0,e=0.0,f=0,g=0,h=0.0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0;q=i;i=i+16|0;k=q+4|0;p=q;n=a+4|0;m=(c[a+8>>2]|0)-(c[n>>2]|0)>>2;a:do if(!m){a=0;h=0.0;l=8}else{a=0;j=0;d=0.0;while(1){es(k,(c[n>>2]|0)+(j<<2)|0);f=c[k>>2]|0;o=0;g=qa(188,f|0)|0;r=o;o=0;if(r&1)break;if((g|0)<(c[7024]|0))b=d;else{o=0;b=+Ka(44,f|0);r=o;o=0;if(r&1)break;a=a+1|0;b=d+b}fs(k);j=j+1|0;if(j>>>0>=m>>>0){h=b;l=8;break a}else d=b}a=cc()|0;fs(k)}while(0);b:do if((l|0)==8){if((a|0)<3)a=0;else{e=h/+(m>>>0);c:do if(!m)b=0.0;else{a=0;b=0.0;while(1){es(p,(c[n>>2]|0)+(a<<2)|0);o=0;d=+Ka(44,c[p>>2]|0);r=o;o=0;if(r&1)break;b=b+ +O(+(d-e));fs(p);a=a+1|0;if(a>>>0>=m>>>0)break c}a=cc()|0;fs(p);break b}while(0);a=b<=h*.05000000074505806}i=q;return a|0}while(0);bc(a|0);return 0}function jo(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0.0,h=0,j=0,k=0,l=0,m=0.0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0.0;t=i;i=i+16|0;p=t;o=t+12|0;q=t+8|0;r=t+4|0;s=b+4|0;n=b+8|0;b=c[n>>2]|0;d=c[s>>2]|0;h=b-d>>2;if(h>>>0<3){t=Ob(8)|0;zq(t,50219);c[t>>2]=29736;Hc(t|0,24,146)}if(h>>>0>3){if(!h){f=0.0;e=0.0}else{b=0;f=0.0;e=0.0;do{m=+$n(c[(c[s>>2]|0)+(b<<2)>>2]|0);e=e+m;f=f+m*m;b=b+1|0}while((b|0)!=(h|0))}u=+(h>>>0);m=e/u;f=+P(+(f/u-m*m));d=c[s>>2]|0;b=c[n>>2]|0;g[p>>2]=m;Ft(d,b,p);e=m*.20000000298023224;e=e<f?f:e;b=c[n>>2]|0;d=c[s>>2]|0;if(b-d>>2>>>0>3){l=0;do{if(+O(+(+$n(c[d+(l<<2)>>2]|0)-m))>e){h=c[s>>2]|0;j=h+((l<<2>>2)+1<<2)|0;k=c[n>>2]|0;if((j|0)!=(k|0)){b=h+(l<<2)|0;d=j;while(1){hs(b,c[d>>2]|0);d=d+4|0;if((d|0)==(k|0))break;else b=b+4|0}}d=h+(((k-j|0)>>>2)+l<<2)|0;b=c[n>>2]|0;if((b|0)!=(d|0))do{k=b+-4|0;c[n>>2]=k;fs(k);b=c[n>>2]|0}while((b|0)!=(d|0));b=l+-1|0}else b=l;l=b+1|0;b=c[n>>2]|0;d=c[s>>2]|0;k=b-d>>2}while(l>>>0<k>>>0&k>>>0>3)}}if(b-d>>2>>>0>3){h=b-d>>2;if(!h)e=0.0;else{j=0;e=0.0;do{e=e+ +$n(c[d+(j<<2)>>2]|0);j=j+1|0;b=c[n>>2]|0;d=c[s>>2]|0;h=b-d>>2}while(j>>>0<h>>>0)}g[p>>2]=e/+(h>>>0);Gt(d,b,p);b=c[n>>2]|0;d=c[s>>2]|0}if(b-d>>2>>>0>3){c[q>>2]=d+12;c[r>>2]=b;c[o>>2]=c[q>>2];c[p>>2]=c[r>>2];Ht(s,o,p)|0}It(a,3);hs(c[a>>2]|0,c[c[s>>2]>>2]|0);hs((c[a>>2]|0)+4|0,c[(c[s>>2]|0)+4>>2]|0);hs((c[a>>2]|0)+8|0,c[(c[s>>2]|0)+8>>2]|0);i=t;return}function ko(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0,g=0.0,h=0,j=0,k=0,l=0,m=0.0,n=0.0,p=0.0,q=0.0,r=0,s=0.0,t=0.0,u=0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0,B=0,C=0,D=0,E=0,F=0;E=i;i=i+48|0;d=E+36|0;f=E+32|0;h=E+28|0;j=E+24|0;k=E+20|0;l=E+16|0;C=E+12|0;D=E+8|0;A=E+4|0;B=E;Jt(d,c[b>>2]|0);Jt(f,(c[b>>2]|0)+4|0);o=0;m=+eb(43,d|0,f|0);F=o;o=0;do if(F&1){F=cc()|0;uq(f);uq(d);d=F}else{uq(f);uq(d);Jt(h,(c[b>>2]|0)+4|0);Jt(j,(c[b>>2]|0)+8|0);o=0;g=+eb(43,h|0,j|0);F=o;o=0;if(F&1){d=cc()|0;uq(j);uq(h);break}uq(j);uq(h);Jt(k,c[b>>2]|0);Jt(l,(c[b>>2]|0)+8|0);o=0;e=+eb(43,k|0,l|0);F=o;o=0;if(F&1){d=cc()|0;uq(l);uq(k);break}uq(l);uq(k);c[C>>2]=0;hs(C,0);c[D>>2]=0;hs(D,0);c[A>>2]=0;hs(A,0);do if(!(g>=m)|!(g>=e)){d=c[b>>2]|0;if(!(e>=g)|!(e>=m)){hs(C,c[d+8>>2]|0);hs(D,c[c[b>>2]>>2]|0);hs(A,c[(c[b>>2]|0)+4>>2]|0);break}else{hs(C,c[d+4>>2]|0);hs(D,c[c[b>>2]>>2]|0);hs(A,c[(c[b>>2]|0)+8>>2]|0);break}}else{hs(C,c[c[b>>2]>>2]|0);hs(D,c[(c[b>>2]|0)+4>>2]|0);hs(A,c[(c[b>>2]|0)+8>>2]|0)}while(0);d=c[A>>2]|0;o=0;e=+Ka(c[(c[d>>2]|0)+12>>2]|0,d|0);F=o;o=0;if(((((((!(F&1)?(r=c[C>>2]|0,o=0,s=+Ka(c[(c[r>>2]|0)+12>>2]|0,r|0),F=o,o=0,!(F&1)):0)?(t=e-s,u=c[D>>2]|0,o=0,v=+Ka(c[(c[u>>2]|0)+8>>2]|0,u|0),F=o,o=0,!(F&1)):0)?(o=0,w=+Ka(c[(c[r>>2]|0)+8>>2]|0,r|0),F=o,o=0,!(F&1)):0)?(x=t*(v-w),o=0,y=+Ka(c[(c[d>>2]|0)+8>>2]|0,d|0),F=o,o=0,!(F&1)):0)?(o=0,z=+Ka(c[(c[r>>2]|0)+8>>2]|0,r|0),F=o,o=0,!(F&1)):0)?(n=y-z,o=0,p=+Ka(c[(c[u>>2]|0)+12>>2]|0,u|0),F=o,o=0,!(F&1)):0)?(o=0,q=+Ka(c[(c[r>>2]|0)+12>>2]|0,r|0),F=o,o=0,!(F&1)):0){if(x<n*(p-q)){c[B>>2]=0;hs(B,u);hs(D,d);hs(A,c[B>>2]|0);fs(B)}o=0;ma(182,a|0,3);F=o;o=0;if(!(F&1)){hs(c[a>>2]|0,c[A>>2]|0);hs((c[a>>2]|0)+4|0,r);hs((c[a>>2]|0)+8|0,c[D>>2]|0);fs(A);fs(D);fs(C);i=E;return}}d=cc()|0;fs(A);fs(D);fs(C)}while(0);bc(d|0)}function lo(a,b){a=a|0;b=b|0;var d=0.0,e=0.0,f=0;f=c[a>>2]|0;e=+ld[c[(c[f>>2]|0)+8>>2]&63](f);f=c[b>>2]|0;e=e-+ld[c[(c[f>>2]|0)+8>>2]&63](f);a=c[a>>2]|0;d=+ld[c[(c[a>>2]|0)+12>>2]&63](a);b=c[b>>2]|0;d=d-+ld[c[(c[b>>2]|0)+12>>2]&63](b);return +(+P(+(e*e+d*d)))}function mo(b,d,e){b=b|0;d=d|0;e=e|0;Zp(b,d);d=b+4|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;a[d+12>>0]=0;we(b+20|0,e);return}function no(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;A=i;i=i+80|0;y=A+68|0;x=A+48|0;B=A+36|0;v=A+24|0;w=A+12|0;z=A;d=dj(d)|0;t=jg(c[b>>2]|0)|0;u=ig(c[b>>2]|0)|0;e=((t*3|0)>>>0)/(c[7026]<<2>>>0)|0;k=c[7025]|0;e=d|(e|0)<(k|0)?k:e;k=c[b>>2]|0;d=e+-1|0;l=x+4|0;m=x+8|0;n=x+12|0;p=x+16|0;q=b+16|0;r=u+-1|0;if(d>>>0<t>>>0){s=(u|0)==0;do{c[x>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[x+16>>2]=0;if(s)f=0;else{j=0;h=0;f=0;do{g=j&1;do if(eq(k,f,d)|0){j=g+j|0;g=x+(j<<2)|0;c[g>>2]=(c[g>>2]|0)+1}else{if(g){g=x+(j<<2)|0;c[g>>2]=(c[g>>2]|0)+1;break}if((j|0)!=4){j=j+1|0;g=x+(j<<2)|0;c[g>>2]=(c[g>>2]|0)+1;break}if(!(co(x)|0)){c[x>>2]=c[m>>2];c[l>>2]=c[n>>2];c[m>>2]=c[p>>2];c[n>>2]=1;c[p>>2]=0;j=3;break}if(!(go(b,x,d,f)|0)){c[x>>2]=c[m>>2];c[l>>2]=c[n>>2];c[m>>2]=c[p>>2];c[n>>2]=1;c[p>>2]=0;j=3;break}if(!(a[q>>0]|0)){e=ho(b)|0;g=c[m>>2]|0;if((e|0)>(g|0)){d=d+-2+e-g|0;f=r}}else h=io(b)|0;c[x>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[x+16>>2]=0;j=0;e=2}while(0);f=f+1|0}while(f>>>0<u>>>0);f=h}if(co(x)|0?go(b,x,d,u)|0:0){e=c[x>>2]|0;if(a[q>>0]|0)f=io(b)|0}d=e+d|0}while(!(d>>>0>=t>>>0|f))}jo(B,b);o=0;ma(133,w|0,B|0);b=o;o=0;do if(!(b&1)){o=0;ma(134,v|0,w|0);b=o;o=0;if(b&1){d=cc()|0;Zr(w);break}Yr(B);c[B>>2]=c[v>>2];e=v+4|0;c[B+4>>2]=c[e>>2];b=v+8|0;c[B+8>>2]=c[b>>2];c[b>>2]=0;c[e>>2]=0;c[v>>2]=0;Zr(v);Zr(w);o=0;e=qa(111,20)|0;b=o;o=0;if(!(b&1)){o=0;ma(133,z|0,B|0);b=o;o=0;do if(!(b&1)){o=0;ma(135,e|0,z|0);b=o;o=0;if(b&1){d=cc()|0;Zr(z);break}else{c[y>>2]=0;_r(y,e);Zr(z);Zr(B);i=A;return c[y>>2]|0}}else d=cc()|0;while(0);Uz(e)}else C=31}else C=31;while(0);if((C|0)==31)d=cc()|0;Zr(B);bc(d|0);return 0}function oo(a,b){a=a|0;b=b|0;c[a+4>>2]=0;c[a>>2]=34452;es(a+8|0,c[b>>2]|0);es(a+12|0,(c[b>>2]|0)+4|0);es(a+16|0,(c[b>>2]|0)+8|0);return}function po(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;es(b,a+8|0);i=d;return c[b>>2]|0}function qo(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;es(b,a+12|0);i=d;return c[b>>2]|0}function ro(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;es(b,a+16|0);i=d;return c[b>>2]|0}function so(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a>>2]=b;c[a+4>>2]=d;FC(a+8|0,e,iC(e)|0);return}function to(a){a=a|0;return c[a>>2]|0}function uo(a){a=a|0;return a+8|0}function vo(a){a=a|0;if((a|0)>-1&(c[7027]|0)>(a|0))return c[28192+(a<<2)>>2]|0;else{a=Ob(8)|0;zq(a,50256);c[a>>2]=29736;Hc(a|0,24,146)}return 0}function wo(b,d){b=b|0;d=d|0;c[b+4>>2]=0;c[b>>2]=34468;c[b+8>>2]=vo(d>>>3&3)|0;a[b+12>>0]=d&7;return}function xo(a){a=a|0;return c[a+8>>2]|0}function yo(b){b=b|0;return a[b+12>>0]|0}function zo(a,b){a=a|0;b=b|0;b=b^a;return (c[28472+((b>>>4&15)<<2)>>2]|0)+(c[28472+((b&15)<<2)>>2]|0)+(c[28472+((b>>>8&15)<<2)>>2]|0)+(c[28472+((b>>>12&15)<<2)>>2]|0)+(c[28472+((b>>>16&15)<<2)>>2]|0)+(c[28472+((b>>>20&15)<<2)>>2]|0)+(c[28472+((b>>>24&15)<<2)>>2]|0)+(c[28472+(b>>>28<<2)>>2]|0)|0}function Ao(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;e=g+4|0;f=g;d=Bo(a,b)|0;c[f>>2]=d;do if(!d){d=c[7052]|0;o=0;d=Wa(112,d^a|0,d^b|0)|0;b=o;o=0;if(b&1){g=cc()|0;lt(f);bc(g|0)}else{c[e>>2]=d;break}}else{c[e>>2]=0;kt(e,d);d=c[e>>2]|0}while(0);lt(f);i=g;return d|0}function Bo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0;p=i;i=i+16|0;d=p+4|0;n=p;k=c[7117]|0;m=(a|0)==(b|0);a:do if((k|0)>0){e=2147483647;h=0;f=0;while(1){j=c[28212+(f<<3)>>2]|0;if((j|0)==(a|0)|(j|0)==(b|0))break;g=zo(a,j)|0;if((g|0)<(e|0)){e=g;g=c[28212+(f<<3)+4>>2]|0}else g=h;if(!m?(l=zo(b,j)|0,(l|0)<(e|0)):0){e=l;g=c[28212+(f<<3)+4>>2]|0}f=f+1|0;if((f|0)>=(k|0)){f=g;g=12;break a}else h=g}e=Sz(16)|0;o=0;ma(183,e|0,c[28212+(f<<3)+4>>2]|0);n=o;o=0;if(n&1){d=cc()|0;Uz(e);g=18;break}else{c[d>>2]=0;kt(d,e);g=17;break}}else{e=2147483647;f=0;g=12}while(0);do if((g|0)==12){if((e|0)>=4){c[n>>2]=0;kt(n,0);c[d>>2]=0;kt(d,c[n>>2]|0);lt(n);g=17;break}e=Sz(16)|0;o=0;ma(183,e|0,f|0);n=o;o=0;if(n&1){d=cc()|0;Uz(e);g=18;break}else{c[d>>2]=0;kt(d,e);g=17;break}}while(0);if((g|0)==17){i=p;return c[d>>2]|0}else if((g|0)==18)bc(d|0);return 0}function Co(a){a=a|0;c[a+4>>2]=0;c[a>>2]=28544;o=0;ka(325,a+8|0);a=o;o=0;if(a&1){a=cc()|0;bc(a|0)}else return}function Do(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;m=i;i=i+96|0;g=m+84|0;h=m+80|0;s=m+64|0;e=m+56|0;r=m+52|0;q=m+40|0;p=m+36|0;f=m+32|0;n=m+28|0;j=m+16|0;k=m+4|0;l=m;c[e>>2]=Kf(c[b>>2]|0)|0;o=0;ma(130,s|0,e|0);b=o;o=0;if(b&1){s=cc()|0;Yd(e);e=s}else{Yd(e);o=0;e=Wa(113,s|0,d|0)|0;b=o;o=0;if(b&1)e=cc()|0;else{c[r>>2]=e;o=0;ma(85,q|0,e|0);b=o;o=0;if(b&1)e=cc()|0;else{o=0;e=qa(118,e|0)|0;b=o;o=0;do if(b&1)e=cc()|0;else{c[f>>2]=e;o=0;d=Wa(86,a+8|0,f|0)|0;a=o;o=0;if(a&1){e=cc()|0;Yd(f);break}c[p>>2]=d;Yd(f);o=0;b=qa(111,40)|0;f=o;o=0;if(f&1)e=cc()|0;else{o=0;e=qa(116,d|0)|0;f=o;o=0;if(f&1)e=cc()|0;else{c[n>>2]=e;o=0;ma(86,j|0,d|0);f=o;o=0;do if(!(f&1)){oe(k,q);c[l>>2]=12;o=0;c[g>>2]=c[l>>2];ia(45,b|0,n|0,j|0,k|0,g|0);l=o;o=0;if(l&1){e=cc()|0;pe(k);Sd(j);break}else{c[h>>2]=0;Qe(h,b);pe(k);Sd(j);ne(n);aq(p);pe(q);ir(r);Qr(s);i=m;return c[h>>2]|0}}else e=cc()|0;while(0);ne(n)}Uz(b)}aq(p)}while(0);pe(q)}ir(r)}Qr(s)}bc(e|0);return 0}function Eo(a){a=a|0;c[a>>2]=28544;Fh(a+8|0);return}function Fo(a){a=a|0;Eo(a);Uz(a);return}function Go(a){a=a|0;return a+8|0}function Ho(a){a=a|0;return c[a>>2]|0}function Io(a){a=a|0;return c[a+4>>2]|0}function Jo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[f>>2]=d;c[a>>2]=b;Kt(a+4|0,1,f);i=e;return}function Ko(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;f=h+4|0;g=h;c[f>>2]=d;c[g>>2]=e;c[a>>2]=b;d=a+4|0;Kt(d,1,f);b=a+8|0;f=c[b>>2]|0;if((f|0)==(c[a+12>>2]|0)){o=0;ma(184,d|0,g|0);a=o;o=0;if(a&1){h=cc()|0;rt(d);bc(h|0)}}else{c[f>>2]=e;c[b>>2]=(c[b>>2]|0)+4}i=h;return}function Lo(a){a=a|0;return c[a>>2]|0}function Mo(a){a=a|0;return a+4|0}function No(a){a=a|0;var b=0,d=0,e=0;e=a+4|0;d=a+8|0;a=c[e>>2]|0;if((c[d>>2]|0)!=(a|0)){b=0;do{a=c[a+(b<<2)>>2]|0;if(a)Uz(a);b=b+1|0;a=c[e>>2]|0}while(b>>>0<(c[d>>2]|0)-a>>2>>>0)}rt(e);return}
function Oo(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,na=0,oa=0,pa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0;La=i;i=i+960|0;Ja=La+768|0;Ha=La+736|0;Fa=La+704|0;Da=La+672|0;Ba=La+640|0;za=La+608|0;xa=La+584|0;va=La+560|0;ta=La+536|0;ra=La+512|0;oa=La+488|0;la=La+464|0;ja=La+440|0;ha=La+416|0;fa=La+392|0;da=La+368|0;ba=La+344|0;$=La+320|0;Z=La+296|0;X=La+272|0;V=La+256|0;T=La+240|0;R=La+224|0;P=La+208|0;N=La+192|0;L=La+176|0;J=La+160|0;H=La+144|0;F=La+128|0;D=La+112|0;B=La+96|0;z=La+80|0;x=La+64|0;v=La+48|0;t=La+40|0;r=La+32|0;p=La+24|0;m=La+16|0;k=La+8|0;h=La+952|0;l=La+948|0;n=La+944|0;q=La+940|0;s=La+936|0;u=La+932|0;w=La+928|0;y=La+924|0;A=La+920|0;C=La+916|0;E=La+912|0;G=La+908|0;I=La+904|0;K=La+900|0;M=La+896|0;O=La+892|0;Q=La+888|0;S=La+884|0;U=La+880|0;W=La+876|0;Y=La+872|0;_=La+868|0;aa=La+864|0;ca=La+860|0;ea=La+856|0;ga=La+852|0;ia=La+848|0;ka=La+844|0;na=La+840|0;pa=La+836|0;sa=La+832|0;ua=La+828|0;wa=La+824|0;ya=La+820|0;Aa=La+816|0;Ca=La+812|0;Ea=La+808|0;Ga=La+804|0;Ia=La+800|0;Ka=La+796|0;j=Sz(32)|0;o=0;f=Wa(114,0,La|0)|0;e=o;o=0;a:do if(!(e&1)?(o=0,g=qa(111,16)|0,e=o,o=0,!(e&1)):0){o=0;a=qa(111,8)|0;e=o;o=0;if(!(e&1)?(c[a>>2]=1,c[a+4>>2]=19,o=0,mb(104,g|0,7,a|0),e=o,o=0,!(e&1)):0){o=0;e=qa(111,16)|0;d=o;o=0;if(d&1){Ma=810;break}o=0;a=qa(111,8)|0;d=o;o=0;if(!(d&1)?(c[a>>2]=1,c[a+4>>2]=16,o=0,mb(104,e|0,10,a|0),d=o,o=0,!(d&1)):0){o=0;d=qa(111,16)|0;b=o;o=0;if(b&1){Ma=810;break}o=0;a=qa(111,8)|0;b=o;o=0;if(!(b&1)?(c[a>>2]=1,c[a+4>>2]=13,o=0,mb(104,d|0,13,a|0),b=o,o=0,!(b&1)):0){o=0;a=qa(111,16)|0;b=o;o=0;if(b&1){Ma=810;break}o=0;b=qa(111,8)|0;Na=o;o=0;if(!(Na&1)?(c[b>>2]=1,c[b+4>>2]=9,o=0,mb(104,a|0,17,b|0),Na=o,o=0,!(Na&1)):0){o=0;Oa(45,j|0,1,f|0,g|0,e|0,d|0,a|0);Na=o;o=0;if(Na&1){Ma=810;break}c[h>>2]=0;Nt(h,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[h>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,h|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(h);break a}while(0);Pt(h);h=Sz(32)|0;o=0;c[k>>2]=6;c[k+4>>2]=18;f=Wa(114,2,k|0)|0;Na=o;o=0;b:do if(Na&1)Ma=817;else{o=0;g=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=817;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=34;o=0;mb(104,g|0,10,a|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=817;break b}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=28;o=0;mb(104,e|0,16,a|0);Na=o;o=0;if(Na&1)break;o=0;d=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=817;break b}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=22;o=0;mb(104,d|0,22,a|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=817;break b}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=1;c[b+4>>2]=16;o=0;mb(104,a|0,28,b|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,h|0,2,f|0,g|0,e|0,d|0,a|0);Na=o;o=0;if(Na&1){Ma=817;break b}c[l>>2]=0;Nt(l,h);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[l>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,l|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(l);break a}while(0);Pt(l);h=Sz(32)|0;o=0;c[m>>2]=6;c[m+4>>2]=22;f=Wa(114,2,m|0)|0;Na=o;o=0;c:do if(Na&1)Ma=824;else{o=0;g=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=824;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=55;o=0;mb(104,g|0,15,a|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=824;break c}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=44;o=0;mb(104,e|0,26,a|0);Na=o;o=0;if(Na&1)break;o=0;d=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=824;break c}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=17;o=0;mb(104,d|0,18,a|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=824;break c}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=2;c[b+4>>2]=13;o=0;mb(104,a|0,22,b|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,h|0,3,f|0,g|0,e|0,d|0,a|0);Na=o;o=0;if(Na&1){Ma=824;break c}c[n>>2]=0;Nt(n,h);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[n>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,n|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(n);break a}while(0);Pt(n);h=Sz(32)|0;o=0;c[p>>2]=6;c[p+4>>2]=26;f=Wa(114,2,p|0)|0;Na=o;o=0;d:do if(Na&1)Ma=831;else{o=0;g=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=831;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=80;o=0;mb(104,g|0,20,a|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=831;break d}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=32;o=0;mb(104,e|0,18,a|0);Na=o;o=0;if(Na&1)break;o=0;d=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=831;break d}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=24;o=0;mb(104,d|0,26,a|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=831;break d}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=4;c[b+4>>2]=9;o=0;mb(104,a|0,16,b|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,h|0,4,f|0,g|0,e|0,d|0,a|0);Na=o;o=0;if(Na&1){Ma=831;break d}c[q>>2]=0;Nt(q,h);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[q>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,q|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(q);break a}while(0);Pt(q);j=Sz(32)|0;o=0;c[r>>2]=6;c[r+4>>2]=30;g=Wa(114,2,r|0)|0;Na=o;o=0;e:do if(Na&1)Ma=838;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=838;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=108;o=0;mb(104,h|0,26,a|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=838;break e}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=43;o=0;mb(104,f|0,24,a|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=838;break e}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=15;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=16;o=0;ub(69,e|0,18,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=838;break e}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=2;c[b+4>>2]=11;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=2;c[d+4>>2]=12;o=0;ub(69,a|0,22,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,5,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=838;break e}c[s>>2]=0;Nt(s,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[s>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,s|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(s);break a}while(0);Pt(s);h=Sz(32)|0;o=0;c[t>>2]=6;c[t+4>>2]=34;f=Wa(114,2,t|0)|0;Na=o;o=0;f:do if(Na&1)Ma=845;else{o=0;g=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=845;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=68;o=0;mb(104,g|0,18,a|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=845;break f}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=27;o=0;mb(104,e|0,16,a|0);Na=o;o=0;if(Na&1)break;o=0;d=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=845;break f}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=19;o=0;mb(104,d|0,24,a|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=845;break f}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=4;c[b+4>>2]=15;o=0;mb(104,a|0,28,b|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,h|0,6,f|0,g|0,e|0,d|0,a|0);Na=o;o=0;if(Na&1){Ma=845;break f}c[u>>2]=0;Nt(u,h);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[u>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,u|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(u);break a}while(0);Pt(u);j=Sz(32)|0;o=0;c[v>>2]=6;c[v+4>>2]=22;c[v+8>>2]=38;g=Wa(114,3,v|0)|0;Na=o;o=0;g:do if(Na&1)Ma=852;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=852;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=78;o=0;mb(104,h|0,20,a|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=852;break g}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=31;o=0;mb(104,f|0,18,a|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=852;break g}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=14;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=15;o=0;ub(69,e|0,18,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=852;break g}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=4;c[b+4>>2]=13;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=1;c[d+4>>2]=14;o=0;ub(69,a|0,26,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,7,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=852;break g}c[w>>2]=0;Nt(w,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[w>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,w|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(w);break a}while(0);Pt(w);j=Sz(32)|0;o=0;c[x>>2]=6;c[x+4>>2]=24;c[x+8>>2]=42;g=Wa(114,3,x|0)|0;Na=o;o=0;h:do if(Na&1)Ma=859;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=859;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=97;o=0;mb(104,h|0,24,a|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=859;break h}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=38;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=39;o=0;ub(69,f|0,22,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=859;break h}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=18;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=19;o=0;ub(69,e|0,22,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=859;break h}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=4;c[b+4>>2]=14;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=2;c[d+4>>2]=15;o=0;ub(69,a|0,26,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,8,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=859;break h}c[y>>2]=0;Nt(y,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[y>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,y|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(y);break a}while(0);Pt(y);j=Sz(32)|0;o=0;c[z>>2]=6;c[z+4>>2]=26;c[z+8>>2]=46;g=Wa(114,3,z|0)|0;Na=o;o=0;i:do if(Na&1)Ma=866;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=866;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=116;o=0;mb(104,h|0,30,a|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=866;break i}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=36;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=37;o=0;ub(69,f|0,22,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=866;break i}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=16;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=17;o=0;ub(69,e|0,20,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=866;break i}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=4;c[b+4>>2]=12;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=4;c[d+4>>2]=13;o=0;ub(69,a|0,24,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,9,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=866;break i}c[A>>2]=0;Nt(A,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[A>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,A|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(A);break a}while(0);Pt(A);j=Sz(32)|0;o=0;c[B>>2]=6;c[B+4>>2]=28;c[B+8>>2]=50;g=Wa(114,3,B|0)|0;Na=o;o=0;j:do if(Na&1)Ma=873;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=873;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=68;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=69;o=0;ub(69,h|0,18,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=873;break j}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=43;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=44;o=0;ub(69,f|0,26,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=873;break j}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=6;c[a+4>>2]=19;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=20;o=0;ub(69,e|0,24,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=873;break j}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=6;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=2;c[d+4>>2]=16;o=0;ub(69,a|0,28,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,10,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=873;break j}c[C>>2]=0;Nt(C,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[C>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,C|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(C);break a}while(0);Pt(C);j=Sz(32)|0;o=0;c[D>>2]=6;c[D+4>>2]=30;c[D+8>>2]=54;g=Wa(114,3,D|0)|0;Na=o;o=0;k:do if(Na&1)Ma=880;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=880;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=81;o=0;mb(104,h|0,20,a|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=880;break k}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=50;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=51;o=0;ub(69,f|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=880;break k}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=22;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=23;o=0;ub(69,e|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=880;break k}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=3;c[b+4>>2]=12;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=8;c[d+4>>2]=13;o=0;ub(69,a|0,24,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,11,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=880;break k}c[E>>2]=0;Nt(E,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[E>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,E|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(E);break a}while(0);Pt(E);j=Sz(32)|0;o=0;c[F>>2]=6;c[F+4>>2]=32;c[F+8>>2]=58;g=Wa(114,3,F|0)|0;Na=o;o=0;l:do if(Na&1)Ma=887;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=887;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=92;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=93;o=0;ub(69,h|0,24,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=887;break l}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=6;c[a+4>>2]=36;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=37;o=0;ub(69,f|0,22,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=887;break l}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=20;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=6;c[b+4>>2]=21;o=0;ub(69,e|0,26,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=887;break l}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=7;c[b+4>>2]=14;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=4;c[d+4>>2]=15;o=0;ub(69,a|0,28,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,12,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=887;break l}c[G>>2]=0;Nt(G,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[G>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,G|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(G);break a}while(0);Pt(G);j=Sz(32)|0;o=0;c[H>>2]=6;c[H+4>>2]=34;c[H+8>>2]=62;g=Wa(114,3,H|0)|0;Na=o;o=0;m:do if(Na&1)Ma=894;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=894;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=107;o=0;mb(104,h|0,26,a|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=894;break m}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=8;c[a+4>>2]=37;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=38;o=0;ub(69,f|0,22,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=894;break m}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=8;c[a+4>>2]=20;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=21;o=0;ub(69,e|0,24,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=894;break m}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=12;c[b+4>>2]=11;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=4;c[d+4>>2]=12;o=0;ub(69,a|0,22,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,13,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=894;break m}c[I>>2]=0;Nt(I,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[I>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,I|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(I);break a}while(0);Pt(I);j=Sz(32)|0;o=0;c[J>>2]=6;c[J+4>>2]=26;c[J+8>>2]=46;c[J+12>>2]=66;g=Wa(114,4,J|0)|0;Na=o;o=0;n:do if(Na&1)Ma=901;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=901;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=115;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=116;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=901;break n}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=40;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=5;c[b+4>>2]=41;o=0;ub(69,f|0,24,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=901;break n}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=11;c[a+4>>2]=16;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=5;c[b+4>>2]=17;o=0;ub(69,e|0,20,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=901;break n}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=11;c[b+4>>2]=12;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=5;c[d+4>>2]=13;o=0;ub(69,a|0,24,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,14,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=901;break n}c[K>>2]=0;Nt(K,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[K>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,K|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(K);break a}while(0);Pt(K);j=Sz(32)|0;o=0;c[L>>2]=6;c[L+4>>2]=26;c[L+8>>2]=48;c[L+12>>2]=70;g=Wa(114,4,L|0)|0;Na=o;o=0;o:do if(Na&1)Ma=908;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=908;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=5;c[a+4>>2]=87;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=88;o=0;ub(69,h|0,22,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=908;break o}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=5;c[a+4>>2]=41;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=5;c[b+4>>2]=42;o=0;ub(69,f|0,24,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=908;break o}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=5;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=7;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=908;break o}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=11;c[b+4>>2]=12;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=7;c[d+4>>2]=13;o=0;ub(69,a|0,24,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,15,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=908;break o}c[M>>2]=0;Nt(M,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[M>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,M|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(M);break a}while(0);Pt(M);j=Sz(32)|0;o=0;c[N>>2]=6;c[N+4>>2]=26;c[N+8>>2]=50;c[N+12>>2]=74;g=Wa(114,4,N|0)|0;Na=o;o=0;p:do if(Na&1)Ma=915;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=915;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=5;c[a+4>>2]=98;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=99;o=0;ub(69,h|0,24,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=915;break p}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=7;c[a+4>>2]=45;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=3;c[b+4>>2]=46;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=915;break p}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=15;c[a+4>>2]=19;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=20;o=0;ub(69,e|0,24,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=915;break p}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=3;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=13;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,16,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=915;break p}c[O>>2]=0;Nt(O,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[O>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,O|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(O);break a}while(0);Pt(O);j=Sz(32)|0;o=0;c[P>>2]=6;c[P+4>>2]=30;c[P+8>>2]=54;c[P+12>>2]=78;g=Wa(114,4,P|0)|0;Na=o;o=0;q:do if(Na&1)Ma=922;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=922;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=107;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=5;c[b+4>>2]=108;o=0;ub(69,h|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=922;break q}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=10;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=922;break q}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=22;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=15;c[b+4>>2]=23;o=0;ub(69,e|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=922;break q}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=2;c[b+4>>2]=14;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=17;c[d+4>>2]=15;o=0;ub(69,a|0,28,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,17,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=922;break q}c[Q>>2]=0;Nt(Q,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Q>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Q|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Q);break a}while(0);Pt(Q);j=Sz(32)|0;o=0;c[R>>2]=6;c[R+4>>2]=30;c[R+8>>2]=56;c[R+12>>2]=82;g=Wa(114,4,R|0)|0;Na=o;o=0;r:do if(Na&1)Ma=929;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=929;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=5;c[a+4>>2]=120;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=121;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=929;break r}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=9;c[a+4>>2]=43;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=44;o=0;ub(69,f|0,26,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=929;break r}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=22;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=23;o=0;ub(69,e|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=929;break r}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=2;c[b+4>>2]=14;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=19;c[d+4>>2]=15;o=0;ub(69,a|0,28,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,18,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=929;break r}c[S>>2]=0;Nt(S,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[S>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,S|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(S);break a}while(0);Pt(S);j=Sz(32)|0;o=0;c[T>>2]=6;c[T+4>>2]=30;c[T+8>>2]=58;c[T+12>>2]=86;g=Wa(114,4,T|0)|0;Na=o;o=0;s:do if(Na&1)Ma=936;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=936;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=113;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=114;o=0;ub(69,h|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=936;break s}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=44;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=11;c[b+4>>2]=45;o=0;ub(69,f|0,26,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=936;break s}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=21;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=22;o=0;ub(69,e|0,26,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=936;break s}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=9;c[b+4>>2]=13;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=16;c[d+4>>2]=14;o=0;ub(69,a|0,26,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,19,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=936;break s}c[U>>2]=0;Nt(U,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[U>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,U|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(U);break a}while(0);Pt(U);j=Sz(32)|0;o=0;c[V>>2]=6;c[V+4>>2]=34;c[V+8>>2]=62;c[V+12>>2]=90;g=Wa(114,4,V|0)|0;Na=o;o=0;t:do if(Na&1)Ma=943;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=943;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=107;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=5;c[b+4>>2]=108;o=0;ub(69,h|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=943;break t}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=41;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=13;c[b+4>>2]=42;o=0;ub(69,f|0,26,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=943;break t}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=15;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=5;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=943;break t}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=15;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=10;c[d+4>>2]=16;o=0;ub(69,a|0,28,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,20,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=943;break t}c[W>>2]=0;Nt(W,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[W>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,W|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(W);break a}while(0);Pt(W);j=Sz(32)|0;o=0;c[X>>2]=6;c[X+4>>2]=28;c[X+8>>2]=50;c[X+12>>2]=72;c[X+16>>2]=94;g=Wa(114,5,X|0)|0;Na=o;o=0;u:do if(Na&1)Ma=950;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=950;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=116;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=117;o=0;ub(69,h|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=950;break u}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=42;o=0;mb(104,f|0,26,a|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=950;break u}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=22;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=6;c[b+4>>2]=23;o=0;ub(69,e|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=950;break u}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=19;c[b+4>>2]=16;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=6;c[d+4>>2]=17;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,21,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=950;break u}c[Y>>2]=0;Nt(Y,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Y>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Y|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Y);break a}while(0);Pt(Y);h=Sz(32)|0;o=0;c[Z>>2]=6;c[Z+4>>2]=26;c[Z+8>>2]=50;c[Z+12>>2]=74;c[Z+16>>2]=98;f=Wa(114,5,Z|0)|0;Na=o;o=0;v:do if(Na&1)Ma=957;else{o=0;g=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=957;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=111;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=7;c[b+4>>2]=112;o=0;ub(69,g|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=957;break v}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=46;o=0;mb(104,e|0,28,a|0);Na=o;o=0;if(Na&1)break;o=0;d=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=957;break v}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=7;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=16;c[b+4>>2]=25;o=0;ub(69,d|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=957;break v}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=34;c[b+4>>2]=13;o=0;mb(104,a|0,24,b|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,h|0,22,f|0,g|0,e|0,d|0,a|0);Na=o;o=0;if(Na&1){Ma=957;break v}c[_>>2]=0;Nt(_,h);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[_>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,_|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(_);break a}while(0);Pt(_);j=Sz(32)|0;o=0;c[$>>2]=6;c[$+4>>2]=30;c[$+8>>2]=54;c[$+12>>2]=78;c[$+16>>2]=102;g=Wa(114,5,$|0)|0;Na=o;o=0;w:do if(Na&1)Ma=964;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=964;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=121;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=5;c[b+4>>2]=122;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=964;break w}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=47;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=14;c[b+4>>2]=48;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=964;break w}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=11;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=14;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=964;break w}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=16;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=14;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,23,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=964;break w}c[aa>>2]=0;Nt(aa,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[aa>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,aa|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(aa);break a}while(0);Pt(aa);j=Sz(32)|0;o=0;c[ba>>2]=6;c[ba+4>>2]=28;c[ba+8>>2]=54;c[ba+12>>2]=80;c[ba+16>>2]=106;g=Wa(114,5,ba|0)|0;Na=o;o=0;x:do if(Na&1)Ma=971;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=971;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=6;c[a+4>>2]=117;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=118;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=971;break x}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=6;c[a+4>>2]=45;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=14;c[b+4>>2]=46;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=971;break x}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=11;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=16;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=971;break x}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=30;c[b+4>>2]=16;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=2;c[d+4>>2]=17;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,24,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=971;break x}c[ca>>2]=0;Nt(ca,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[ca>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,ca|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(ca);break a}while(0);Pt(ca);j=Sz(32)|0;o=0;c[da>>2]=6;c[da+4>>2]=32;c[da+8>>2]=58;c[da+12>>2]=84;c[da+16>>2]=110;g=Wa(114,5,da|0)|0;Na=o;o=0;y:do if(Na&1)Ma=978;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=978;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=8;c[a+4>>2]=106;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=107;o=0;ub(69,h|0,26,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=978;break y}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=8;c[a+4>>2]=47;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=13;c[b+4>>2]=48;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=978;break y}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=7;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=22;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=978;break y}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=22;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=13;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,25,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=978;break y}c[ea>>2]=0;Nt(ea,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[ea>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,ea|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(ea);break a}while(0);Pt(ea);j=Sz(32)|0;o=0;c[fa>>2]=6;c[fa+4>>2]=30;c[fa+8>>2]=58;c[fa+12>>2]=86;c[fa+16>>2]=114;g=Wa(114,5,fa|0)|0;Na=o;o=0;z:do if(Na&1)Ma=985;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=985;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=10;c[a+4>>2]=114;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=2;c[b+4>>2]=115;o=0;ub(69,h|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=985;break z}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=19;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=985;break z}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=28;c[a+4>>2]=22;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=6;c[b+4>>2]=23;o=0;ub(69,e|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=985;break z}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=33;c[b+4>>2]=16;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=4;c[d+4>>2]=17;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,26,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=985;break z}c[ga>>2]=0;Nt(ga,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[ga>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,ga|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(ga);break a}while(0);Pt(ga);j=Sz(32)|0;o=0;c[ha>>2]=6;c[ha+4>>2]=34;c[ha+8>>2]=62;c[ha+12>>2]=90;c[ha+16>>2]=118;g=Wa(114,5,ha|0)|0;Na=o;o=0;A:do if(Na&1)Ma=992;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=992;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=8;c[a+4>>2]=122;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=123;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=992;break A}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=22;c[a+4>>2]=45;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=3;c[b+4>>2]=46;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=992;break A}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=8;c[a+4>>2]=23;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=26;c[b+4>>2]=24;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=992;break A}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=12;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=28;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,27,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=992;break A}c[ia>>2]=0;Nt(ia,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[ia>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,ia|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(ia);break a}while(0);Pt(ia);j=Sz(32)|0;o=0;c[ja>>2]=6;c[ja+4>>2]=26;c[ja+8>>2]=50;c[ja+12>>2]=74;c[ja+16>>2]=98;c[ja+20>>2]=122;g=Wa(114,6,ja|0)|0;Na=o;o=0;B:do if(Na&1)Ma=999;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=999;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=117;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=10;c[b+4>>2]=118;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=999;break B}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=3;c[a+4>>2]=45;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=23;c[b+4>>2]=46;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=999;break B}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=31;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=999;break B}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=11;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=31;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,28,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=999;break B}c[ka>>2]=0;Nt(ka,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[ka>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,ka|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(ka);break a}while(0);Pt(ka);j=Sz(32)|0;o=0;c[la>>2]=6;c[la+4>>2]=30;c[la+8>>2]=54;c[la+12>>2]=78;c[la+16>>2]=102;c[la+20>>2]=126;g=Wa(114,6,la|0)|0;Na=o;o=0;C:do if(Na&1)Ma=1006;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1006;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=7;c[a+4>>2]=116;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=7;c[b+4>>2]=117;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1006;break C}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=21;c[a+4>>2]=45;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=7;c[b+4>>2]=46;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1006;break C}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=1;c[a+4>>2]=23;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=37;c[b+4>>2]=24;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1006;break C}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=19;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=26;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,29,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1006;break C}c[na>>2]=0;Nt(na,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[na>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,na|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(na);break a}while(0);Pt(na);j=Sz(32)|0;o=0;c[oa>>2]=6;c[oa+4>>2]=26;c[oa+8>>2]=52;c[oa+12>>2]=78;c[oa+16>>2]=104;c[oa+20>>2]=130;g=Wa(114,6,oa|0)|0;Na=o;o=0;D:do if(Na&1)Ma=1013;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1013;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=5;c[a+4>>2]=115;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=10;c[b+4>>2]=116;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1013;break D}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=19;c[a+4>>2]=47;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=10;c[b+4>>2]=48;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1013;break D}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=15;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=25;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1013;break D}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=23;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=25;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,30,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1013;break D}c[pa>>2]=0;Nt(pa,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[pa>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,pa|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(pa);break a}while(0);Pt(pa);j=Sz(32)|0;o=0;c[ra>>2]=6;c[ra+4>>2]=30;c[ra+8>>2]=56;c[ra+12>>2]=82;c[ra+16>>2]=108;c[ra+20>>2]=134;g=Wa(114,6,ra|0)|0;Na=o;o=0;E:do if(Na&1)Ma=1020;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1020;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=13;c[a+4>>2]=115;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=3;c[b+4>>2]=116;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1020;break E}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=2;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=29;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1020;break E}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=42;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1020;break E}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=23;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=28;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,31,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1020;break E}c[sa>>2]=0;Nt(sa,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[sa>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,sa|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(sa);break a}while(0);Pt(sa);j=Sz(32)|0;o=0;c[ta>>2]=6;c[ta+4>>2]=34;c[ta+8>>2]=60;c[ta+12>>2]=86;c[ta+16>>2]=112;c[ta+20>>2]=138;g=Wa(114,6,ta|0)|0;Na=o;o=0;F:do if(Na&1)Ma=1027;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1027;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=115;o=0;mb(104,h|0,30,a|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1027;break F}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=10;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=23;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1027;break F}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=10;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=35;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1027;break F}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=19;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=35;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,32,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1027;break F}c[ua>>2]=0;Nt(ua,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[ua>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,ua|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(ua);break a}while(0);Pt(ua);j=Sz(32)|0;o=0;c[va>>2]=6;c[va+4>>2]=30;c[va+8>>2]=58;c[va+12>>2]=86;c[va+16>>2]=114;c[va+20>>2]=142;g=Wa(114,6,va|0)|0;Na=o;o=0;G:do if(Na&1)Ma=1034;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1034;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=115;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=1;c[b+4>>2]=116;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1034;break G}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=14;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=21;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1034;break G}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=29;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=19;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1034;break G}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=11;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=46;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,33,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1034;break G}c[wa>>2]=0;Nt(wa,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[wa>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,wa|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(wa);break a}while(0);Pt(wa);j=Sz(32)|0;o=0;c[xa>>2]=6;c[xa+4>>2]=34;c[xa+8>>2]=62;c[xa+12>>2]=90;c[xa+16>>2]=118;c[xa+20>>2]=146;g=Wa(114,6,xa|0)|0;Na=o;o=0;H:do if(Na&1)Ma=1041;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1041;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=13;c[a+4>>2]=115;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=6;c[b+4>>2]=116;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1041;break H}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=14;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=23;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1041;break H}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=44;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=7;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1041;break H}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=59;c[b+4>>2]=16;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=1;c[d+4>>2]=17;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,34,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1041;break H}c[ya>>2]=0;Nt(ya,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[ya>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,ya|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(ya);break a}while(0);Pt(ya);j=Sz(32)|0;o=0;c[za>>2]=6;c[za+4>>2]=30;c[za+8>>2]=54;c[za+12>>2]=78;c[za+16>>2]=102;c[za+20>>2]=126;c[za+24>>2]=150;g=Wa(114,7,za|0)|0;Na=o;o=0;I:do if(Na&1)Ma=1048;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1048;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=12;c[a+4>>2]=121;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=7;c[b+4>>2]=122;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1048;break I}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=12;c[a+4>>2]=47;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=26;c[b+4>>2]=48;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1048;break I}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=39;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=14;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1048;break I}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=22;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=41;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,35,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1048;break I}c[Aa>>2]=0;Nt(Aa,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Aa>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Aa|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Aa);break a}while(0);Pt(Aa);j=Sz(32)|0;o=0;c[Ba>>2]=6;c[Ba+4>>2]=24;c[Ba+8>>2]=50;c[Ba+12>>2]=76;c[Ba+16>>2]=102;c[Ba+20>>2]=128;c[Ba+24>>2]=154;g=Wa(114,7,Ba|0)|0;Na=o;o=0;J:do if(Na&1)Ma=1055;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1055;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=6;c[a+4>>2]=121;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=14;c[b+4>>2]=122;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1055;break J}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=6;c[a+4>>2]=47;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=34;c[b+4>>2]=48;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1055;break J}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=46;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=10;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1055;break J}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=2;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=64;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,36,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1055;break J}c[Ca>>2]=0;Nt(Ca,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Ca>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Ca|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Ca);break a}while(0);Pt(Ca);j=Sz(32)|0;o=0;c[Da>>2]=6;c[Da+4>>2]=28;c[Da+8>>2]=54;c[Da+12>>2]=80;c[Da+16>>2]=106;c[Da+20>>2]=132;c[Da+24>>2]=158;g=Wa(114,7,Da|0)|0;Na=o;o=0;K:do if(Na&1)Ma=1062;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1062;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=17;c[a+4>>2]=122;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=123;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1062;break K}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=29;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=14;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1062;break K}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=49;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=10;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1062;break K}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=24;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=46;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,37,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1062;break K}c[Ea>>2]=0;Nt(Ea,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Ea>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Ea|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Ea);break a}while(0);Pt(Ea);j=Sz(32)|0;o=0;c[Fa>>2]=6;c[Fa+4>>2]=32;c[Fa+8>>2]=58;c[Fa+12>>2]=84;c[Fa+16>>2]=110;c[Fa+20>>2]=136;c[Fa+24>>2]=162;g=Wa(114,7,Fa|0)|0;Na=o;o=0;L:do if(Na&1)Ma=1069;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1069;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=4;c[a+4>>2]=122;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=18;c[b+4>>2]=123;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1069;break L}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=13;c[a+4>>2]=46;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=32;c[b+4>>2]=47;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1069;break L}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=48;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=14;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1069;break L}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=42;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=32;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,38,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1069;break L}c[Ga>>2]=0;Nt(Ga,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Ga>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Ga|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Ga);break a}while(0);Pt(Ga);j=Sz(32)|0;o=0;c[Ha>>2]=6;c[Ha+4>>2]=26;c[Ha+8>>2]=54;c[Ha+12>>2]=82;c[Ha+16>>2]=110;c[Ha+20>>2]=138;c[Ha+24>>2]=166;g=Wa(114,7,Ha|0)|0;Na=o;o=0;M:do if(Na&1)Ma=1076;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1076;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=20;c[a+4>>2]=117;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=4;c[b+4>>2]=118;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1076;break M}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=40;c[a+4>>2]=47;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=7;c[b+4>>2]=48;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1076;break M}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=43;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=22;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1076;break M}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=10;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=67;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,39,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1076;break M}c[Ia>>2]=0;Nt(Ia,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Ia>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Ia|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Ia);break a}while(0);Pt(Ia);j=Sz(32)|0;o=0;c[Ja>>2]=6;c[Ja+4>>2]=30;c[Ja+8>>2]=58;c[Ja+12>>2]=86;c[Ja+16>>2]=114;c[Ja+20>>2]=142;c[Ja+24>>2]=170;g=Wa(114,7,Ja|0)|0;Na=o;o=0;N:do if(Na&1)Ma=1083;else{o=0;h=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1083;break}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=19;c[a+4>>2]=118;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=6;c[b+4>>2]=119;o=0;ub(69,h|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;f=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1083;break N}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=18;c[a+4>>2]=47;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=31;c[b+4>>2]=48;o=0;ub(69,f|0,28,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;e=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1083;break N}o=0;a=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[a>>2]=34;c[a+4>>2]=24;o=0;b=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[b>>2]=34;c[b+4>>2]=25;o=0;ub(69,e|0,30,a|0,b|0);Na=o;o=0;if(Na&1)break;o=0;a=qa(111,16)|0;Na=o;o=0;if(Na&1){Ma=1083;break N}o=0;b=qa(111,8)|0;Na=o;o=0;do if(!(Na&1)){c[b>>2]=20;c[b+4>>2]=15;o=0;d=qa(111,8)|0;Na=o;o=0;if(Na&1)break;c[d>>2]=61;c[d+4>>2]=16;o=0;ub(69,a|0,30,b|0,d|0);Na=o;o=0;if(Na&1)break;o=0;Oa(45,j|0,40,g|0,h|0,f|0,e|0,a|0);Na=o;o=0;if(Na&1){Ma=1083;break N}c[Ka>>2]=0;Nt(Ka,j);a=c[7176]|0;do if(a>>>0<(c[7177]|0)>>>0){c[a>>2]=0;Nt(a,c[Ka>>2]|0);c[7176]=(c[7176]|0)+4}else{o=0;ma(185,28700,Ka|0);Na=o;o=0;if(!(Na&1))break;a=cc()|0;Pt(Ka);break a}while(0);Pt(Ka);i=La;return (c[7176]|0)-(c[7175]|0)>>2|0}while(0);Na=cc()|0;Uz(a);a=Na;break N}while(0);a=cc()|0;Uz(e);break N}while(0);a=cc()|0;Uz(f);break N}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1083)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break M}while(0);a=cc()|0;Uz(e);break M}while(0);a=cc()|0;Uz(f);break M}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1076)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break L}while(0);a=cc()|0;Uz(e);break L}while(0);a=cc()|0;Uz(f);break L}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1069)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break K}while(0);a=cc()|0;Uz(e);break K}while(0);a=cc()|0;Uz(f);break K}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1062)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break J}while(0);a=cc()|0;Uz(e);break J}while(0);a=cc()|0;Uz(f);break J}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1055)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break I}while(0);a=cc()|0;Uz(e);break I}while(0);a=cc()|0;Uz(f);break I}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1048)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break H}while(0);a=cc()|0;Uz(e);break H}while(0);a=cc()|0;Uz(f);break H}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1041)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break G}while(0);a=cc()|0;Uz(e);break G}while(0);a=cc()|0;Uz(f);break G}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1034)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break F}while(0);a=cc()|0;Uz(e);break F}while(0);a=cc()|0;Uz(f);break F}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1027)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break E}while(0);a=cc()|0;Uz(e);break E}while(0);a=cc()|0;Uz(f);break E}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1020)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break D}while(0);a=cc()|0;Uz(e);break D}while(0);a=cc()|0;Uz(f);break D}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1013)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break C}while(0);a=cc()|0;Uz(e);break C}while(0);a=cc()|0;Uz(f);break C}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==1006)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break B}while(0);a=cc()|0;Uz(e);break B}while(0);a=cc()|0;Uz(f);break B}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==999)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break A}while(0);a=cc()|0;Uz(e);break A}while(0);a=cc()|0;Uz(f);break A}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==992)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break z}while(0);a=cc()|0;Uz(e);break z}while(0);a=cc()|0;Uz(f);break z}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==985)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break y}while(0);a=cc()|0;Uz(e);break y}while(0);a=cc()|0;Uz(f);break y}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==978)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break x}while(0);a=cc()|0;Uz(e);break x}while(0);a=cc()|0;Uz(f);break x}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==971)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break w}while(0);a=cc()|0;Uz(e);break w}while(0);a=cc()|0;Uz(f);break w}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==964)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break v}while(0);a=cc()|0;Uz(d);break v}while(0);a=cc()|0;Uz(e);break v}while(0);a=cc()|0;Uz(g)}while(0);if((Ma|0)==957)a=cc()|0;Uz(h);break a}while(0);Na=cc()|0;Uz(a);a=Na;break u}while(0);a=cc()|0;Uz(e);break u}while(0);a=cc()|0;Uz(f);break u}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==950)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break t}while(0);a=cc()|0;Uz(e);break t}while(0);a=cc()|0;Uz(f);break t}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==943)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break s}while(0);a=cc()|0;Uz(e);break s}while(0);a=cc()|0;Uz(f);break s}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==936)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break r}while(0);a=cc()|0;Uz(e);break r}while(0);a=cc()|0;Uz(f);break r}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==929)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break q}while(0);a=cc()|0;Uz(e);break q}while(0);a=cc()|0;Uz(f);break q}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==922)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break p}while(0);a=cc()|0;Uz(e);break p}while(0);a=cc()|0;Uz(f);break p}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==915)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break o}while(0);a=cc()|0;Uz(e);break o}while(0);a=cc()|0;Uz(f);break o}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==908)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break n}while(0);a=cc()|0;Uz(e);break n}while(0);a=cc()|0;Uz(f);break n}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==901)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break m}while(0);a=cc()|0;Uz(e);break m}while(0);a=cc()|0;Uz(f);break m}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==894)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break l}while(0);a=cc()|0;Uz(e);break l}while(0);a=cc()|0;Uz(f);break l}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==887)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break k}while(0);a=cc()|0;Uz(e);break k}while(0);a=cc()|0;Uz(f);break k}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==880)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break j}while(0);a=cc()|0;Uz(e);break j}while(0);a=cc()|0;Uz(f);break j}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==873)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break i}while(0);a=cc()|0;Uz(e);break i}while(0);a=cc()|0;Uz(f);break i}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==866)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break h}while(0);a=cc()|0;Uz(e);break h}while(0);a=cc()|0;Uz(f);break h}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==859)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break g}while(0);a=cc()|0;Uz(e);break g}while(0);a=cc()|0;Uz(f);break g}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==852)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break f}while(0);a=cc()|0;Uz(d);break f}while(0);a=cc()|0;Uz(e);break f}while(0);a=cc()|0;Uz(g)}while(0);if((Ma|0)==845)a=cc()|0;Uz(h);break a}while(0);Na=cc()|0;Uz(a);a=Na;break e}while(0);a=cc()|0;Uz(e);break e}while(0);a=cc()|0;Uz(f);break e}while(0);a=cc()|0;Uz(h)}while(0);if((Ma|0)==838)a=cc()|0;Uz(j);break a}while(0);Na=cc()|0;Uz(a);a=Na;break d}while(0);a=cc()|0;Uz(d);break d}while(0);a=cc()|0;Uz(e);break d}while(0);a=cc()|0;Uz(g)}while(0);if((Ma|0)==831)a=cc()|0;Uz(h);break a}while(0);Na=cc()|0;Uz(a);a=Na;break c}while(0);a=cc()|0;Uz(d);break c}while(0);a=cc()|0;Uz(e);break c}while(0);a=cc()|0;Uz(g)}while(0);if((Ma|0)==824)a=cc()|0;Uz(h);break a}while(0);Na=cc()|0;Uz(a);a=Na;break b}while(0);a=cc()|0;Uz(d);break b}while(0);a=cc()|0;Uz(e);break b}while(0);a=cc()|0;Uz(g)}while(0);if((Ma|0)==817)a=cc()|0;Uz(h);break}Ma=cc()|0;Uz(a);a=Ma;Ma=815;break}a=cc()|0;Uz(d);Ma=815;break}a=cc()|0;Uz(e);Ma=815;break}a=cc()|0;Uz(g);Ma=815}else Ma=810;while(0);if((Ma|0)==810){a=cc()|0;Ma=815}if((Ma|0)==815)Uz(j);bc(a|0);return 0}

// EMSCRIPTEN_END_FUNCS
var Xc=[h_,h_,iM,h_,jM,h_,kM,h_,lM,h_,mM,h_,nM,h_,oM,h_,pM,h_,qM,h_,rM,h_,sM,h_,tM,h_,uM,h_,vM,h_,wM,h_,xM,h_,yM,h_,zM,h_,AM,h_,BM,h_,Ii,kG,oG,iH,mH,rH,tH,Di,TJ,cK,h_,h_,h_,h_,h_,h_,h_,h_,h_,h_,h_,h_];var Yc=[i_,i_,DM,i_,EM,i_,FM,i_,GM,i_,HM,i_,IM,i_,JM,i_,KM,i_,LM,i_,MM,i_,NM,i_,OM,i_,PM,i_,QM,i_,RM,i_,SM,i_,TM,i_,UM,i_,VM,i_,WM,i_,xH,DH,Lm,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_,i_];var Zc=[j_,j_,YM,j_,ZM,j_,_M,j_,$M,j_,aN,j_,bN,j_,cN,j_,dN,j_,eN,j_,fN,j_,gN,j_,hN,j_,iN,j_,jN,j_,kN,j_,lN,j_,mN,j_,nN,j_,oN,j_,pN,j_,GA,FA,CA,bp,wg,Hh,HC,xl,dm,fm,Wm,rg,hg,j_,j_,j_,j_,j_,j_,j_,j_,j_];var _c=[k_,k_,rN,k_,sN,k_,tN,k_,uN,k_,vN,k_,wN,k_,xN,k_,yN,k_,zN,k_,AN,k_,BN,k_,CN,k_,DN,k_,EN,k_,FN,k_,GN,k_,HN,k_,IN,k_,JN,k_,KN,k_,ue,ve,Sd,Be,Ee,Fe,pe,Ue,bf,cf,Df,Ef,Hf,If,Rf,Sf,Uf,Vf,eg,fg,Fg,Gg,Sg,Tg,$g,ah,Lh,Mh,Yh,Zh,eu,fu,Si,Ti,jj,kj,gu,hu,vj,wj,Dj,Ej,Lj,Mj,Pj,Qj,Uj,Wj,Vj,Xj,dk,ek,iu,ju,rk,sk,ku,lu,mu,nu,ou,pu,qu,ru,Yk,Zk,su,tu,uu,vu,il,jl,wu,xu,Cl,Dl,yu,zu,Cm,Dm,$o,Au,Kn,Ln,Qr,Bu,Eo,Fo,Xo,Yo,cp,dp,jp,kp,qy,lz,jz,kz,hz,iz,bz,cz,Nu,az,Aq,$y,Wy,Xy,nq,Qy,FD,HD,GD,ID,Nq,Ny,Oy,Py,Fy,Hy,Dy,vy,wy,Uq,uy,sy,ry,py,ny,oy,ky,ly,hy,fy,gy,yr,cy,ay,by,Tx,Ux,Ww,Is,Vw,Mw,At,Pv,Nv,Ov,on,Jv,Dv,Bv,zv,xv,vv,tv,rv,fv,bv,Pu,Qu,Ou,mv,nv,Fs,Nw,Tw,Uw,cx,Yx,Zx,Ry,Sy,Xz,Yz,cA,dA,hA,iA,kA,nA,lA,mA,oA,pA,qA,rA,nD,oD,QD,RD,hD,SD,QL,TD,UD,WD,eI,_D,$D,dE,eE,sE,tE,ME,NE,$E,aF,mF,nF,LF,MF,hG,jG,mG,nG,qG,rG,BG,CG,MG,NG,XG,YG,gH,hH,pH,qH,vH,wH,BH,CH,HH,IH,MH,NH,UH,VH,wI,xI,SJ,PI,pJ,qJ,rJ,sJ,VD,dI,gI,GI,XI,dJ,lJ,mJ,OL,PL,Co,Tj,_j,Vd,ff,Xf,Zg,Zf,pD,hj,ih,ti,op,aj,Wh,_e,uk,Ak,nk,Pk,fk,Ik,ll,Mk,El,bm,xn,yz,zz,lq,xz,wz,IC,br,tz,qz,Xq,pz,oz,nz,mz,fj,DD,QA,oC,hB,jH,lH,fI,aL,hL,iL,jL,kL,lL,mL,ZC,zC,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_,k_];var $c=[l_,l_,MN,l_,NN,l_,ON,l_,PN,l_,QN,l_,RN,l_,SN,l_,TN,l_,UN,l_,VN,l_,WN,l_,XN,l_,YN,l_,ZN,l_,_N,l_,$N,l_,aO,l_,bO,l_,cO,l_,dO,l_,Td,oj,qD,uG,vG,wG,xG,zG,AG,FG,GG,HG,IG,KG,LG,QG,RG,SG,TG,VG,WG,$G,aH,bH,cH,eH,fH,LH,QH,xJ,zJ,BJ,yJ,AJ,CJ,Ce,Oe,Cj,Rg,Gf,EC,Ge,nf,Dg,tg,Rd,ij,fq,Tf,kq,Eh,QC,Nh,rq,rf,vg,xg,Bq,vf,Cq,Eq,_g,mD,Lq,Mq,Cf,Hg,Eg,cg,gh,Ng,er,OC,zi,nr,vr,_h,bi,ki,Ar,Er,Vq,Gr,Nr,Or,mj,Pr,fp,Nn,Sr,Sj,Xr,ko,oo,$r,bs,gs,Kj,is,ak,_k,ls,hk,ok,gD,ns,cr,_f,al,us,ys,ul,sp,rp,Oh,Th,Uh,wp,Ll,Ml,am,Ps,Ts,Vs,Ws,Zs,at,Ss,dt,ht,it,qs,Em,ot,ut,wt,xt,cn,fn,jn,It,wo,Lt,Ot,St,Hp,vp,Wt,Xt,Yt,cu,Tt,yp,dz,Mx,Ew,iy,Jx,_x,Rx,Ru,Iw,Ow,Kw,Gw,Dw,tw,Tv,Mu,Lv,hv,ss,Du,kv,Rw,Ut,JD,uz,Oz,kD,GL,bD,aD,wK,xK,yK,zK,AK,BK,OI,CK,DK,EK,FK,GK,HK,IK,JK,KK,LK,MK,NK,OK,PK,QK,RK,SK,TK,UK,VK,WK,XK,YK,_K,sL,HL,FL,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_,l_];var ad=[m_,m_,fO,m_,gO,m_,hO,m_,iO,m_,jO,m_,kO,m_,lO,m_,mO,m_,nO,m_,oO,m_,pO,m_,qO,m_,rO,m_,sO,m_,tO,m_,uO,m_,vO,m_,wO,m_,xO,m_,yO,m_,Vn,fE,gE,hE,iE,jE,kE,lE,mE,nE,oE,pE,uE,vE,wE,xE,yE,zE,AE,BE,CE,DE,EE,TE,VE,eF,gF,pF,qF,rF,tF,vF,OF,PF,QF,SF,UF,AH,GH,tf,Fi,ey,oK,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_,m_];var bd=[n_,n_,AO,n_,BO,n_,CO,n_,DO,n_,EO,n_,FO,n_,GO,n_,HO,n_,IO,n_,JO,n_,KO,n_,LO,n_,MO,n_,NO,n_,OO,n_,PO,n_,QO,n_,RO,n_,SO,n_,TO,n_,xj,zj,Bj,Aj,du,Kg,Vg,pj,rj,sj,tj,Lk,Ok,rl,Kl,uD,vD,Ky,yD,Zz,eA,jA,HB,xD,MD,oF,EJ,GJ,IJ,OJ,QJ,KJ,MJ,NF,FJ,HJ,JJ,PJ,RJ,LJ,NJ,sG,tG,yG,DG,EG,JG,OG,PG,UG,ZG,_G,dH,TI,UI,WI,tJ,vJ,uJ,wJ,KI,LI,NI,$I,aJ,cJ,hJ,iJ,kJ,Sz,ep,Ph,gp,of,ug,Xe,Cg,hf,Wf,ig,jg,Ze,Ye,xq,Ff,Jg,fh,th,kh,lh,wh,xh,sh,Ai,Yi,Ji,Ki,Ni,lg,ji,Lf,Mf,hp,ej,co,qo,po,ro,Kf,Go,yk,zk,Rh,Vk,Uk,dj,Of,Pf,nl,Ul,im,hm,sm,tm,ym,qm,Um,en,yo,mn,_o,Ro,Ho,Io,Lo,un,Bn,qg,uo,dn,xo,hn,Uo,So,Qo,Mn,_n,Vo,Ap,gj,lD,lB,jC,o_,p_,q_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_,n_];var cd=[r_,r_,VO,r_,WO,r_,XO,r_,YO,r_,ZO,r_,_O,r_,$O,r_,aP,r_,bP,r_,cP,r_,dP,r_,eP,r_,fP,r_,gP,r_,hP,r_,iP,r_,jP,r_,kP,r_,lP,r_,mP,r_,dh,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_,r_];var dd=[s_,s_,oP,s_,pP,s_,qP,s_,rP,s_,sP,s_,tP,s_,uP,s_,vP,s_,wP,s_,xP,s_,yP,s_,zP,s_,AP,s_,BP,s_,CP,s_,DP,s_,EP,s_,FP,s_,GP,s_,HP,s_,kH,sH,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_];var ed=[t_,t_,JP,t_,KP,t_,LP,t_,MP,t_,NP,t_,OP,t_,PP,t_,QP,t_,RP,t_,SP,t_,TP,t_,UP,t_,VP,t_,WP,t_,XP,t_,YP,t_,ZP,t_,_P,t_,$P,t_,aQ,t_,ip,kl,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_,t_];var fd=[u_,u_,cQ,u_,dQ,u_,eQ,u_,fQ,u_,gQ,u_,hQ,u_,iQ,u_,jQ,u_,kQ,u_,lQ,u_,mQ,u_,nQ,u_,oQ,u_,pQ,u_,qQ,u_,rQ,u_,sQ,u_,tQ,u_,uQ,u_,vQ,u_,af,Ig,Xh,Do,ck,dl,gk,qk,vk,Bk,tl,Qk,$k,bl,pl,ml,an,rD,wD,AD,Kv,Ev,Cv,Av,yv,wv,uv,sv,sA,tA,zA,uC,JB,IB,KB,JL,KL,ZD,cE,JH,OH,zI,BI,EI,hI,oI,rI,uI,RC,xf,Bf,rh,mh,Dh,Bi,Gi,Hj,gl,pk,NC,VC,el,Jf,Vl,Xl,Hs,lm,jm,pm,Bm,km,Zm,jt,Pl,_l,Un,Yu,Tu,rC,kB,tK,vK,AB,zB,uB,UB];var gd=[v_,v_,xQ,v_,yQ,v_,zQ,v_,AQ,v_,BQ,v_,CQ,v_,DQ,v_,EQ,v_,FQ,v_,GQ,v_,HQ,v_,IQ,v_,JQ,v_,KQ,v_,LQ,v_,MQ,v_,NQ,v_,OQ,v_,PQ,v_,QQ,v_,zH,FH,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_,v_];var hd=[w_,w_,SQ,w_,TQ,w_,UQ,w_,VQ,w_,WQ,w_,XQ,w_,YQ,w_,ZQ,w_,_Q,w_,$Q,w_,aR,w_,bR,w_,cR,w_,dR,w_,eR,w_,fR,w_,gR,w_,hR,w_,iR,w_,jR,w_,Iy,JA,IA,HA,sD,KH,PH,We,Ag,wl,sn,w_,w_,w_,w_,w_,w_,w_,w_,w_,w_,w_];var id=[x_,x_,lR,x_,mR,x_,nR,x_,oR,x_,pR,x_,qR,x_,rR,x_,sR,x_,tR,x_,uR,x_,vR,x_,wR,x_,xR,x_,yR,x_,zR,x_,AR,x_,BR,x_,CR,x_,DR,x_,ER,x_,Rn,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_,x_];var jd=[y_,y_,GR,y_,HR,y_,IR,y_,JR,y_,KR,y_,LR,y_,MR,y_,NR,y_,OR,y_,PR,y_,QR,y_,RR,y_,SR,y_,TR,y_,UR,y_,VR,y_,WR,y_,XR,y_,YR,y_,ZR,y_,Tn,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_,y_];var kd=[z_,z_,$R,z_,aS,z_,bS,z_,cS,z_,dS,z_,eS,z_,fS,z_,gS,z_,hS,z_,iS,z_,jS,z_,kS,z_,lS,z_,mS,z_,nS,z_,oS,z_,pS,z_,qS,z_,rS,z_,sS,z_,Dn,Zn,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_,z_];var ld=[A_,A_,uS,A_,vS,A_,wS,A_,xS,A_,yS,A_,zS,A_,AS,A_,BS,A_,CS,A_,DS,A_,ES,A_,FS,A_,GS,A_,HS,A_,IS,A_,JS,A_,KS,A_,LS,A_,MS,A_,NS,A_,lp,mp,$n,Jm,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_,A_];var md=[B_,B_,PS,B_,QS,B_,RS,B_,SS,B_,TS,B_,US,B_,VS,B_,WS,B_,XS,B_,YS,B_,ZS,B_,_S,B_,$S,B_,aT,B_,bT,B_,cT,B_,dT,B_,eT,B_,fT,B_,gT,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_,B_];var nd=[C_,C_,iT,C_,jT,C_,kT,C_,lT,C_,mT,C_,nT,C_,oT,C_,pT,C_,qT,C_,rT,C_,sT,C_,tT,C_,uT,C_,vT,C_,wT,C_,xT,C_,yT,C_,zT,C_,AT,C_,BT,C_,Wg,Gj,Pm,Wo,SE,YE,dF,iF,C_,C_,C_,C_,C_,C_,C_,C_,C_,C_,C_,C_,C_,C_];var od=[D_,D_,DT,D_,ET,D_,FT,D_,GT,D_,HT,D_,IT,D_,JT,D_,KT,D_,LT,D_,MT,D_,NT,D_,OT,D_,PT,D_,QT,D_,RT,D_,ST,D_,TT,D_,UT,D_,VT,D_,WT,D_,En,Fn,ao,bo,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_,D_];var pd=[E_,E_,YT,E_,ZT,E_,_T,E_,$T,E_,aU,E_,bU,E_,cU,E_,dU,E_,eU,E_,fU,E_,gU,E_,hU,E_,iU,E_,jU,E_,kU,E_,lU,E_,mU,E_,nU,E_,oU,E_,pU,E_,Nm,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_,E_];var qd=[F_,F_,rU,F_,sU,F_,tU,F_,uU,F_,vU,F_,wU,F_,xU,F_,yU,F_,zU,F_,AU,F_,BU,F_,CU,F_,DU,F_,EU,F_,FU,F_,GU,F_,HU,F_,IU,F_,JU,F_,KU,F_,nH,uH,yH,EH,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_,F_];var rd=[G_,G_,MU,G_,NU,G_,OU,G_,PU,G_,QU,G_,RU,G_,SU,G_,TU,G_,UU,G_,VU,G_,WU,G_,XU,G_,YU,G_,ZU,G_,_U,G_,$U,G_,aV,G_,bV,G_,cV,G_,dV,G_,$e,Lg,Ug,ap,$j,Al,Il,Ly,My,zD,BD,yI,AI,CI,mI,pI,sI,gf,jf,kf,lf,LD,Pq,Qq,Yq,eh,nh,oh,zh,ph,yh,qh,Ah,Bh,Ch,vi,$h,ai,gr,mi,np,Hi,Qn,cs,zn,bk,bg,ag,cj,Qh,Sh,PC,Zl,mm,vm,zm,nm,um,om,wm,xm,Am,Qs,ft,Fm,kg,KC,Jq,Cn,no,Bo,Pn,Mt,cI,jB,iB,_C,G_,G_,G_,G_,G_,G_,G_,G_,G_];var sd=[H_,H_,fV,H_,gV,H_,hV,H_,iV,H_,jV,H_,kV,H_,lV,H_,mV,H_,nV,H_,oV,H_,pV,H_,qV,H_,rV,H_,sV,H_,tV,H_,uV,H_,vV,H_,wV,H_,xV,H_,yV,H_,yj,qj,XD,aE,OE,PE,UE,_E,bF,cF,fF,kF,FI,SI,VI,vI,JI,MI,_I,bJ,gJ,jJ,yf,Af,zg,Ei,Og,Nf,BB,xB,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_,H_];var td=[I_,I_,AV,I_,BV,I_,CV,I_,DV,I_,EV,I_,FV,I_,GV,I_,HV,I_,IV,I_,JV,I_,KV,I_,LV,I_,MV,I_,NV,I_,OV,I_,PV,I_,QV,I_,RV,I_,SV,I_,TV,I_,Wn,pp,vL,uL,tL,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_,I_];var ud=[J_,J_,VV,J_,WV,J_,XV,J_,YV,J_,ZV,J_,_V,J_,$V,J_,aW,J_,bW,J_,cW,J_,dW,J_,eW,J_,fW,J_,gW,J_,hW,J_,iW,J_,jW,J_,kW,J_,lW,J_,mW,J_,Pg,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_,J_];var vd=[K_,K_,oW,K_,pW,K_,qW,K_,rW,K_,sW,K_,tW,K_,uW,K_,vW,K_,wW,K_,xW,K_,yW,K_,zW,K_,AW,K_,BW,K_,CW,K_,DW,K_,EW,K_,FW,K_,GW,K_,HW,K_,Jn,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_,K_];var wd=[L_,L_,JW,L_,KW,L_,LW,L_,MW,L_,NW,L_,OW,L_,PW,L_,QW,L_,RW,L_,SW,L_,TW,L_,UW,L_,VW,L_,WW,L_,XW,L_,YW,L_,ZW,L_,_W,L_,$W,L_,aX,L_,qp,lo,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_,L_];var xd=[M_,M_,cX,M_,dX,M_,eX,M_,fX,M_,gX,M_,hX,M_,iX,M_,jX,M_,kX,M_,lX,M_,mX,M_,nX,M_,oX,M_,pX,M_,qX,M_,rX,M_,sX,M_,tX,M_,uX,M_,vX,M_,lj,Qg,Rz,rE,XH,YH,ZH,UA,WA,VA,M_,M_,M_,M_,M_,M_,M_,M_,M_,M_,M_,M_];var yd=[N_,N_,xX,N_,yX,N_,zX,N_,AX,N_,BX,N_,CX,N_,DX,N_,EX,N_,FX,N_,GX,N_,HX,N_,IX,N_,JX,N_,KX,N_,LX,N_,MX,N_,NX,N_,OX,N_,PX,N_,QX,N_,Sn,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_,N_];var zd=[O_,O_,SX,O_,TX,O_,UX,O_,VX,O_,WX,O_,XX,O_,YX,O_,ZX,O_,_X,O_,$X,O_,aY,O_,bY,O_,cY,O_,dY,O_,eY,O_,fY,O_,gY,O_,hY,O_,iY,O_,jY,O_,Jk,vl,Nk,ql,ol,Fl,DI,jI,kI,lI,tI,uf,Mg,ni,go,Yf,zl,Nl,Wl,Mm,wn,In,bK,nK,yB,fB,vB,BL,AL,zL,yL,xL,wL,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_,O_];var Ad=[P_,P_,lY,P_,mY,P_,nY,P_,oY,P_,pY,P_,qY,P_,rY,P_,sY,P_,tY,P_,uY,P_,vY,P_,wY,P_,xY,P_,yY,P_,zY,P_,AY,P_,BY,P_,CY,P_,DY,P_,EY,P_,Jj,Nj,Rj,IL,ND,ae,Zd,ee,ge,he,Bg,sg,dg,Q_,Gh,FC,qf,sf,Kq,og,Wq,uh,Ih,oi,pi,qi,ri,li,ui,Li,Oj,mo,ds,ms,hl,De,tk,wk,MC,Ck,Rk,Sk,Xk,Ol,Es,Gs,rm,em,Gm,Hm,Im,Tm,Vm,Xs,Ym,bt,nn,pn,qn,tn,rn,yn,Jo,tp,up,Cp,Dp,Ep,Fp,vz,Lx,jv,Qw,PD,rK,sK,uK,XC,ML,P_,P_,P_,P_,P_,P_,P_];var Bd=[R_,R_,GY,R_,HY,R_,IY,R_,JY,R_,KY,R_,LY,R_,MY,R_,NY,R_,OY,R_,PY,R_,QY,R_,RY,R_,SY,R_,TY,R_,UY,R_,VY,R_,WY,R_,XY,R_,YY,R_,ZY,R_,S_,NA,T_,OA,MA,U_,R_,R_,R_,R_,R_,R_,R_,R_,R_,R_,R_,R_,R_,R_,R_,R_];var Cd=[V_,V_,$Y,V_,aZ,V_,bZ,V_,cZ,V_,dZ,V_,eZ,V_,fZ,V_,gZ,V_,hZ,V_,iZ,V_,jZ,V_,kZ,V_,lZ,V_,mZ,V_,nZ,V_,oZ,V_,pZ,V_,qZ,V_,rZ,V_,sZ,V_,xF,WF,QI,RI,HI,II,YI,ZI,eJ,fJ,V_,V_,V_,V_,V_,V_,V_,V_,V_,V_,V_,V_];var Dd=[W_,W_,uZ,W_,vZ,W_,wZ,W_,xZ,W_,yZ,W_,zZ,W_,AZ,W_,BZ,W_,CZ,W_,DZ,W_,EZ,W_,FZ,W_,GZ,W_,HZ,W_,IZ,W_,JZ,W_,KZ,W_,LZ,W_,MZ,W_,NZ,W_,WE,ZE,hF,jF,Km,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_,W_];var Ed=[X_,X_,PZ,X_,QZ,X_,RZ,X_,SZ,X_,TZ,X_,UZ,X_,VZ,X_,WZ,X_,XZ,X_,YZ,X_,ZZ,X_,_Z,X_,$Z,X_,a_,X_,b_,X_,c_,X_,d_,X_,e_,X_,f_,X_,g_,X_,Qd,nj,Fj,Yj,Zj,yl,Hl,Jy,vA,wA,yA,tD,YD,bE,Od,Jh,si,wi,Mi,Tk,Wk,Yl,$l,cm,Xm,vn,kn,Ko,hh,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_,X_];return{___cxa_can_catch:KA,_resize:je,_memcpy:XL,___cxa_is_pointer_type:LA,_i64Add:TL,_memmove:YL,_bitshift64Ashr:VL,_decode_any:se,_memset:ZL,_malloc:yC,_free:zC,_decode_multi:te,_decode_qr_multi:re,___getTypeName:Fz,_bitshift64Lshr:WL,_fflush:PB,_decode_qr:qe,_i64Subtract:UL,___errno_location:ZA,_bitshift64Shl:_L,__GLOBAL__sub_I_zxing_js_cpp:Ve,__GLOBAL__sub_I_CharacterSetECI_cpp:Ip,__GLOBAL__sub_I_GlobalHistogramBinarizer_cpp:Jp,__GLOBAL__sub_I_GenericGF_cpp:Kp,__GLOBAL__sub_I_Version_cpp:Lp,__GLOBAL__sub_I_DecodeHints_cpp:Mp,__GLOBAL__sub_I_Code39Reader_cpp:Np,__GLOBAL__sub_I_Code93Reader_cpp:Op,__GLOBAL__sub_I_ITFReader_cpp:Pp,__GLOBAL__sub_I_UPCEANReader_cpp:Qp,__GLOBAL__sub_I_UPCEReader_cpp:Rp,__GLOBAL__sub_I_DecodedBitStreamParser_cpp:Sp,__GLOBAL__sub_I_ModulusGF_cpp:Tp,__GLOBAL__sub_I_LinesSampler_cpp:Up,__GLOBAL__sub_I_DataMask_cpp:Vp,__GLOBAL__sub_I_Mode_cpp:Wp,__GLOBAL__sub_I_ErrorCorrectionLevel_cpp:Xp,__GLOBAL__sub_I_Version_cpp733:Yp,__GLOBAL__sub_I_bind_cpp:Hz,runPostSets:SL,stackAlloc:Fd,stackSave:Gd,stackRestore:Hd,establishStackSpace:Id,setThrew:Jd,setTempRet0:Md,getTempRet0:Nd,dynCall_iiiiiiii:hM,dynCall_iiiiiid:CM,dynCall_viiiii:XM,dynCall_vi:qN,dynCall_vii:LN,dynCall_iiiiiii:eO,dynCall_ii:zO,dynCall_idddddddd:UO,dynCall_iiiiiiiiiiii:nP,dynCall_vidd:IP,dynCall_iiii:bQ,dynCall_viiiiiiiiiiiiiii:wQ,dynCall_viiiiii:RQ,dynCall_diiii:kR,dynCall_iidiid:FR,dynCall_viddd:_R,dynCall_di:tS,dynCall_iiiiidddddddd:OS,dynCall_viiiiiii:hT,dynCall_iiddd:CT,dynCall_viiiiiiiii:XT,dynCall_viiiiiiiiii:qU,dynCall_iii:LU,dynCall_iiiiii:eV,dynCall_diii:zV,dynCall_iiiidddddddddddddddd:UV,dynCall_viiiiiidi:nW,dynCall_dii:IW,dynCall_i:bX,dynCall_iiiid:wX,dynCall_iiiii:RX,dynCall_viii:kY,dynCall_v:FY,dynCall_iiiiiiiii:_Y,dynCall_iiiiid:tZ,dynCall_viiii:OZ}})


// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var __GLOBAL__sub_I_zxing_js_cpp=Module["__GLOBAL__sub_I_zxing_js_cpp"]=asm["__GLOBAL__sub_I_zxing_js_cpp"];var __GLOBAL__sub_I_GenericGF_cpp=Module["__GLOBAL__sub_I_GenericGF_cpp"]=asm["__GLOBAL__sub_I_GenericGF_cpp"];var __GLOBAL__sub_I_CharacterSetECI_cpp=Module["__GLOBAL__sub_I_CharacterSetECI_cpp"]=asm["__GLOBAL__sub_I_CharacterSetECI_cpp"];var __GLOBAL__sub_I_ErrorCorrectionLevel_cpp=Module["__GLOBAL__sub_I_ErrorCorrectionLevel_cpp"]=asm["__GLOBAL__sub_I_ErrorCorrectionLevel_cpp"];var _memset=Module["_memset"]=asm["_memset"];var __GLOBAL__sub_I_UPCEReader_cpp=Module["__GLOBAL__sub_I_UPCEReader_cpp"]=asm["__GLOBAL__sub_I_UPCEReader_cpp"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var __GLOBAL__sub_I_Version_cpp733=Module["__GLOBAL__sub_I_Version_cpp733"]=asm["__GLOBAL__sub_I_Version_cpp733"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var __GLOBAL__sub_I_Code93Reader_cpp=Module["__GLOBAL__sub_I_Code93Reader_cpp"]=asm["__GLOBAL__sub_I_Code93Reader_cpp"];var _fflush=Module["_fflush"]=asm["_fflush"];var ___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=asm["___cxa_is_pointer_type"];var __GLOBAL__sub_I_Version_cpp=Module["__GLOBAL__sub_I_Version_cpp"]=asm["__GLOBAL__sub_I_Version_cpp"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _decode_any=Module["_decode_any"]=asm["_decode_any"];var __GLOBAL__sub_I_LinesSampler_cpp=Module["__GLOBAL__sub_I_LinesSampler_cpp"]=asm["__GLOBAL__sub_I_LinesSampler_cpp"];var _decode_qr=Module["_decode_qr"]=asm["_decode_qr"];var __GLOBAL__sub_I_DataMask_cpp=Module["__GLOBAL__sub_I_DataMask_cpp"]=asm["__GLOBAL__sub_I_DataMask_cpp"];var __GLOBAL__sub_I_GlobalHistogramBinarizer_cpp=Module["__GLOBAL__sub_I_GlobalHistogramBinarizer_cpp"]=asm["__GLOBAL__sub_I_GlobalHistogramBinarizer_cpp"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var __GLOBAL__sub_I_bind_cpp=Module["__GLOBAL__sub_I_bind_cpp"]=asm["__GLOBAL__sub_I_bind_cpp"];var _resize=Module["_resize"]=asm["_resize"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var ___getTypeName=Module["___getTypeName"]=asm["___getTypeName"];var __GLOBAL__sub_I_DecodedBitStreamParser_cpp=Module["__GLOBAL__sub_I_DecodedBitStreamParser_cpp"]=asm["__GLOBAL__sub_I_DecodedBitStreamParser_cpp"];var __GLOBAL__sub_I_UPCEANReader_cpp=Module["__GLOBAL__sub_I_UPCEANReader_cpp"]=asm["__GLOBAL__sub_I_UPCEANReader_cpp"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var __GLOBAL__sub_I_ModulusGF_cpp=Module["__GLOBAL__sub_I_ModulusGF_cpp"]=asm["__GLOBAL__sub_I_ModulusGF_cpp"];var ___cxa_can_catch=Module["___cxa_can_catch"]=asm["___cxa_can_catch"];var _free=Module["_free"]=asm["_free"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var _memmove=Module["_memmove"]=asm["_memmove"];var __GLOBAL__sub_I_Mode_cpp=Module["__GLOBAL__sub_I_Mode_cpp"]=asm["__GLOBAL__sub_I_Mode_cpp"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _decode_multi=Module["_decode_multi"]=asm["_decode_multi"];var _decode_qr_multi=Module["_decode_qr_multi"]=asm["_decode_qr_multi"];var __GLOBAL__sub_I_Code39Reader_cpp=Module["__GLOBAL__sub_I_Code39Reader_cpp"]=asm["__GLOBAL__sub_I_Code39Reader_cpp"];var __GLOBAL__sub_I_DecodeHints_cpp=Module["__GLOBAL__sub_I_DecodeHints_cpp"]=asm["__GLOBAL__sub_I_DecodeHints_cpp"];var __GLOBAL__sub_I_ITFReader_cpp=Module["__GLOBAL__sub_I_ITFReader_cpp"]=asm["__GLOBAL__sub_I_ITFReader_cpp"];var dynCall_iiiiiiii=Module["dynCall_iiiiiiii"]=asm["dynCall_iiiiiiii"];var dynCall_iiiiiid=Module["dynCall_iiiiiid"]=asm["dynCall_iiiiiid"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=asm["dynCall_iiiiiii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_idddddddd=Module["dynCall_idddddddd"]=asm["dynCall_idddddddd"];var dynCall_iiiiiiiiiiii=Module["dynCall_iiiiiiiiiiii"]=asm["dynCall_iiiiiiiiiiii"];var dynCall_vidd=Module["dynCall_vidd"]=asm["dynCall_vidd"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiiiiiiiiiiiii=Module["dynCall_viiiiiiiiiiiiiii"]=asm["dynCall_viiiiiiiiiiiiiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_diiii=Module["dynCall_diiii"]=asm["dynCall_diiii"];var dynCall_iidiid=Module["dynCall_iidiid"]=asm["dynCall_iidiid"];var dynCall_viddd=Module["dynCall_viddd"]=asm["dynCall_viddd"];var dynCall_di=Module["dynCall_di"]=asm["dynCall_di"];var dynCall_iiiiidddddddd=Module["dynCall_iiiiidddddddd"]=asm["dynCall_iiiiidddddddd"];var dynCall_viiiiiii=Module["dynCall_viiiiiii"]=asm["dynCall_viiiiiii"];var dynCall_iiddd=Module["dynCall_iiddd"]=asm["dynCall_iiddd"];var dynCall_viiiiiiiii=Module["dynCall_viiiiiiiii"]=asm["dynCall_viiiiiiiii"];var dynCall_viiiiiiiiii=Module["dynCall_viiiiiiiiii"]=asm["dynCall_viiiiiiiiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];var dynCall_diii=Module["dynCall_diii"]=asm["dynCall_diii"];var dynCall_iiiidddddddddddddddd=Module["dynCall_iiiidddddddddddddddd"]=asm["dynCall_iiiidddddddddddddddd"];var dynCall_viiiiiidi=Module["dynCall_viiiiiidi"]=asm["dynCall_viiiiiidi"];var dynCall_dii=Module["dynCall_dii"]=asm["dynCall_dii"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_iiiid=Module["dynCall_iiiid"]=asm["dynCall_iiiid"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iiiiiiiii=Module["dynCall_iiiiiiiii"]=asm["dynCall_iiiiiiiii"];var dynCall_iiiiid=Module["dynCall_iiiiid"]=asm["dynCall_iiiiid"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.establishStackSpace=asm["establishStackSpace"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){assert(runDependencies==0,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");assert(__ATPRERUN__.length==0,"cannot call main when preRun functions remain to be called");args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);try{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=Module.run=run;function exit(status,implicit){if(implicit&&Module["noExitRuntime"]){return}if(Module["noExitRuntime"]){}else{ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status)}if(ENVIRONMENT_IS_NODE){process["stdout"]["once"]("drain",(function(){process["exit"](status)}));console.log(" ");setTimeout((function(){process["exit"](status)}),500)}else if(ENVIRONMENT_IS_SHELL&&typeof quit==="function"){quit(status)}throw new ExitStatus(status)}Module["exit"]=Module.exit=exit;var abortDecorators=[];function abort(what){if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;var extra="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";var output="abort("+what+") at "+stackTrace()+extra;if(abortDecorators){abortDecorators.forEach((function(decorator){output=decorator(output,what)}))}throw output}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}run()





  return Module;
};

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30), "/", __webpack_require__(8).Buffer))

/***/ }),
/* 163 */
/***/ (function(module, exports) {



/***/ }),
/* 164 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// resolves . and .. elements in a path array with directory names there
// must be no slashes, empty elements, or device names (c:\) in the array
// (so also no leading and trailing slashes - it does not distinguish
// relative and absolute paths)
function normalizeArray(parts, allowAboveRoot) {
  // if the path tries to go above the root, `up` ends up > 0
  var up = 0;
  for (var i = parts.length - 1; i >= 0; i--) {
    var last = parts[i];
    if (last === '.') {
      parts.splice(i, 1);
    } else if (last === '..') {
      parts.splice(i, 1);
      up++;
    } else if (up) {
      parts.splice(i, 1);
      up--;
    }
  }

  // if the path is allowed to go above the root, restore leading ..s
  if (allowAboveRoot) {
    for (; up--; up) {
      parts.unshift('..');
    }
  }

  return parts;
}

// Split a filename into [root, dir, basename, ext], unix version
// 'root' is just a slash, or nothing.
var splitPathRe =
    /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
var splitPath = function(filename) {
  return splitPathRe.exec(filename).slice(1);
};

// path.resolve([from ...], to)
// posix version
exports.resolve = function() {
  var resolvedPath = '',
      resolvedAbsolute = false;

  for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
    var path = (i >= 0) ? arguments[i] : process.cwd();

    // Skip empty and invalid entries
    if (typeof path !== 'string') {
      throw new TypeError('Arguments to path.resolve must be strings');
    } else if (!path) {
      continue;
    }

    resolvedPath = path + '/' + resolvedPath;
    resolvedAbsolute = path.charAt(0) === '/';
  }

  // At this point the path should be resolved to a full absolute path, but
  // handle relative paths to be safe (might happen when process.cwd() fails)

  // Normalize the path
  resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
    return !!p;
  }), !resolvedAbsolute).join('/');

  return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
};

// path.normalize(path)
// posix version
exports.normalize = function(path) {
  var isAbsolute = exports.isAbsolute(path),
      trailingSlash = substr(path, -1) === '/';

  // Normalize the path
  path = normalizeArray(filter(path.split('/'), function(p) {
    return !!p;
  }), !isAbsolute).join('/');

  if (!path && !isAbsolute) {
    path = '.';
  }
  if (path && trailingSlash) {
    path += '/';
  }

  return (isAbsolute ? '/' : '') + path;
};

// posix version
exports.isAbsolute = function(path) {
  return path.charAt(0) === '/';
};

// posix version
exports.join = function() {
  var paths = Array.prototype.slice.call(arguments, 0);
  return exports.normalize(filter(paths, function(p, index) {
    if (typeof p !== 'string') {
      throw new TypeError('Arguments to path.join must be strings');
    }
    return p;
  }).join('/'));
};


// path.relative(from, to)
// posix version
exports.relative = function(from, to) {
  from = exports.resolve(from).substr(1);
  to = exports.resolve(to).substr(1);

  function trim(arr) {
    var start = 0;
    for (; start < arr.length; start++) {
      if (arr[start] !== '') break;
    }

    var end = arr.length - 1;
    for (; end >= 0; end--) {
      if (arr[end] !== '') break;
    }

    if (start > end) return [];
    return arr.slice(start, end - start + 1);
  }

  var fromParts = trim(from.split('/'));
  var toParts = trim(to.split('/'));

  var length = Math.min(fromParts.length, toParts.length);
  var samePartsLength = length;
  for (var i = 0; i < length; i++) {
    if (fromParts[i] !== toParts[i]) {
      samePartsLength = i;
      break;
    }
  }

  var outputParts = [];
  for (var i = samePartsLength; i < fromParts.length; i++) {
    outputParts.push('..');
  }

  outputParts = outputParts.concat(toParts.slice(samePartsLength));

  return outputParts.join('/');
};

exports.sep = '/';
exports.delimiter = ':';

exports.dirname = function(path) {
  var result = splitPath(path),
      root = result[0],
      dir = result[1];

  if (!root && !dir) {
    // No dirname whatsoever
    return '.';
  }

  if (dir) {
    // It has a dirname, strip trailing slash
    dir = dir.substr(0, dir.length - 1);
  }

  return root + dir;
};


exports.basename = function(path, ext) {
  var f = splitPath(path)[2];
  // TODO: make this comparison case-insensitive on windows?
  if (ext && f.substr(-1 * ext.length) === ext) {
    f = f.substr(0, f.length - ext.length);
  }
  return f;
};


exports.extname = function(path) {
  return splitPath(path)[3];
};

function filter (xs, f) {
    if (xs.filter) return xs.filter(f);
    var res = [];
    for (var i = 0; i < xs.length; i++) {
        if (f(xs[i], i, xs)) res.push(xs[i]);
    }
    return res;
}

// String.prototype.substr - negative index don't work in IE8
var substr = 'ab'.substr(-1) === 'b'
    ? function (str, start, len) { return str.substr(start, len) }
    : function (str, start, len) {
        if (start < 0) start = str.length + start;
        return str.substr(start, len);
    }
;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)))

/***/ }),
/* 165 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var Buffer = __webpack_require__(6).Buffer
var Transform = __webpack_require__(117).Transform
var inherits = __webpack_require__(1)

function throwIfNotStringOrBuffer (val, prefix) {
  if (!Buffer.isBuffer(val) && typeof val !== 'string') {
    throw new TypeError(prefix + ' must be a string or a buffer')
  }
}

function HashBase (blockSize) {
  Transform.call(this)

  this._block = Buffer.allocUnsafe(blockSize)
  this._blockSize = blockSize
  this._blockOffset = 0
  this._length = [0, 0, 0, 0]

  this._finalized = false
}

inherits(HashBase, Transform)

HashBase.prototype._transform = function (chunk, encoding, callback) {
  var error = null
  try {
    this.update(chunk, encoding)
  } catch (err) {
    error = err
  }

  callback(error)
}

HashBase.prototype._flush = function (callback) {
  var error = null
  try {
    this.push(this.digest())
  } catch (err) {
    error = err
  }

  callback(error)
}

HashBase.prototype.update = function (data, encoding) {
  throwIfNotStringOrBuffer(data, 'Data')
  if (this._finalized) throw new Error('Digest already called')
  if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding)

  // consume data
  var block = this._block
  var offset = 0
  while (this._blockOffset + data.length - offset >= this._blockSize) {
    for (var i = this._blockOffset; i < this._blockSize;) block[i++] = data[offset++]
    this._update()
    this._blockOffset = 0
  }
  while (offset < data.length) block[this._blockOffset++] = data[offset++]

  // update length
  for (var j = 0, carry = data.length * 8; carry > 0; ++j) {
    this._length[j] += carry
    carry = (this._length[j] / 0x0100000000) | 0
    if (carry > 0) this._length[j] -= 0x0100000000 * carry
  }

  return this
}

HashBase.prototype._update = function () {
  throw new Error('_update is not implemented')
}

HashBase.prototype.digest = function (encoding) {
  if (this._finalized) throw new Error('Digest already called')
  this._finalized = true

  var digest = this._digest()
  if (encoding !== undefined) digest = digest.toString(encoding)

  // reset state
  this._block.fill(0)
  this._blockOffset = 0
  for (var i = 0; i < 4; ++i) this._length[i] = 0

  return digest
}

HashBase.prototype._digest = function () {
  throw new Error('_digest is not implemented')
}

module.exports = HashBase


/***/ }),
/* 166 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.



/*<replacement>*/

var pna = __webpack_require__(85);
/*</replacement>*/

module.exports = Readable;

/*<replacement>*/
var isArray = __webpack_require__(418);
/*</replacement>*/

/*<replacement>*/
var Duplex;
/*</replacement>*/

Readable.ReadableState = ReadableState;

/*<replacement>*/
var EE = __webpack_require__(63).EventEmitter;

var EElistenerCount = function (emitter, type) {
  return emitter.listeners(type).length;
};
/*</replacement>*/

/*<replacement>*/
var Stream = __webpack_require__(167);
/*</replacement>*/

/*<replacement>*/

var Buffer = __webpack_require__(6).Buffer;
var OurUint8Array = global.Uint8Array || function () {};
function _uint8ArrayToBuffer(chunk) {
  return Buffer.from(chunk);
}
function _isUint8Array(obj) {
  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
}

/*</replacement>*/

/*<replacement>*/
var util = __webpack_require__(65);
util.inherits = __webpack_require__(1);
/*</replacement>*/

/*<replacement>*/
var debugUtil = __webpack_require__(419);
var debug = void 0;
if (debugUtil && debugUtil.debuglog) {
  debug = debugUtil.debuglog('stream');
} else {
  debug = function () {};
}
/*</replacement>*/

var BufferList = __webpack_require__(420);
var destroyImpl = __webpack_require__(168);
var StringDecoder;

util.inherits(Readable, Stream);

var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];

function prependListener(emitter, event, fn) {
  // Sadly this is not cacheable as some libraries bundle their own
  // event emitter implementation with them.
  if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);

  // This is a hack to make sure that our error handler is attached before any
  // userland ones.  NEVER DO THIS. This is here only because this code needs
  // to continue to work with older versions of Node.js that do not include
  // the prependListener() method. The goal is to eventually remove this hack.
  if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
}

function ReadableState(options, stream) {
  Duplex = Duplex || __webpack_require__(53);

  options = options || {};

  // Duplex streams are both readable and writable, but share
  // the same options object.
  // However, some cases require setting options to different
  // values for the readable and the writable sides of the duplex stream.
  // These options can be provided separately as readableXXX and writableXXX.
  var isDuplex = stream instanceof Duplex;

  // object stream flag. Used to make read(n) ignore n and to
  // make all the buffer merging and length checks go away
  this.objectMode = !!options.objectMode;

  if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;

  // the point at which it stops calling _read() to fill the buffer
  // Note: 0 is a valid value, means "don't call _read preemptively ever"
  var hwm = options.highWaterMark;
  var readableHwm = options.readableHighWaterMark;
  var defaultHwm = this.objectMode ? 16 : 16 * 1024;

  if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;

  // cast to ints.
  this.highWaterMark = Math.floor(this.highWaterMark);

  // A linked list is used to store data chunks instead of an array because the
  // linked list can remove elements from the beginning faster than
  // array.shift()
  this.buffer = new BufferList();
  this.length = 0;
  this.pipes = null;
  this.pipesCount = 0;
  this.flowing = null;
  this.ended = false;
  this.endEmitted = false;
  this.reading = false;

  // a flag to be able to tell if the event 'readable'/'data' is emitted
  // immediately, or on a later tick.  We set this to true at first, because
  // any actions that shouldn't happen until "later" should generally also
  // not happen before the first read call.
  this.sync = true;

  // whenever we return null, then we set a flag to say
  // that we're awaiting a 'readable' event emission.
  this.needReadable = false;
  this.emittedReadable = false;
  this.readableListening = false;
  this.resumeScheduled = false;

  // has it been destroyed
  this.destroyed = false;

  // Crypto is kind of old and crusty.  Historically, its default string
  // encoding is 'binary' so we have to make this configurable.
  // Everything else in the universe uses 'utf8', though.
  this.defaultEncoding = options.defaultEncoding || 'utf8';

  // the number of writers that are awaiting a drain event in .pipe()s
  this.awaitDrain = 0;

  // if true, a maybeReadMore has been scheduled
  this.readingMore = false;

  this.decoder = null;
  this.encoding = null;
  if (options.encoding) {
    if (!StringDecoder) StringDecoder = __webpack_require__(120).StringDecoder;
    this.decoder = new StringDecoder(options.encoding);
    this.encoding = options.encoding;
  }
}

function Readable(options) {
  Duplex = Duplex || __webpack_require__(53);

  if (!(this instanceof Readable)) return new Readable(options);

  this._readableState = new ReadableState(options, this);

  // legacy
  this.readable = true;

  if (options) {
    if (typeof options.read === 'function') this._read = options.read;

    if (typeof options.destroy === 'function') this._destroy = options.destroy;
  }

  Stream.call(this);
}

Object.defineProperty(Readable.prototype, 'destroyed', {
  get: function () {
    if (this._readableState === undefined) {
      return false;
    }
    return this._readableState.destroyed;
  },
  set: function (value) {
    // we ignore the value if the stream
    // has not been initialized yet
    if (!this._readableState) {
      return;
    }

    // backward compatibility, the user is explicitly
    // managing destroyed
    this._readableState.destroyed = value;
  }
});

Readable.prototype.destroy = destroyImpl.destroy;
Readable.prototype._undestroy = destroyImpl.undestroy;
Readable.prototype._destroy = function (err, cb) {
  this.push(null);
  cb(err);
};

// Manually shove something into the read() buffer.
// This returns true if the highWaterMark has not been hit yet,
// similar to how Writable.write() returns true if you should
// write() some more.
Readable.prototype.push = function (chunk, encoding) {
  var state = this._readableState;
  var skipChunkCheck;

  if (!state.objectMode) {
    if (typeof chunk === 'string') {
      encoding = encoding || state.defaultEncoding;
      if (encoding !== state.encoding) {
        chunk = Buffer.from(chunk, encoding);
        encoding = '';
      }
      skipChunkCheck = true;
    }
  } else {
    skipChunkCheck = true;
  }

  return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
};

// Unshift should *always* be something directly out of read()
Readable.prototype.unshift = function (chunk) {
  return readableAddChunk(this, chunk, null, true, false);
};

function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
  var state = stream._readableState;
  if (chunk === null) {
    state.reading = false;
    onEofChunk(stream, state);
  } else {
    var er;
    if (!skipChunkCheck) er = chunkInvalid(state, chunk);
    if (er) {
      stream.emit('error', er);
    } else if (state.objectMode || chunk && chunk.length > 0) {
      if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {
        chunk = _uint8ArrayToBuffer(chunk);
      }

      if (addToFront) {
        if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);
      } else if (state.ended) {
        stream.emit('error', new Error('stream.push() after EOF'));
      } else {
        state.reading = false;
        if (state.decoder && !encoding) {
          chunk = state.decoder.write(chunk);
          if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);
        } else {
          addChunk(stream, state, chunk, false);
        }
      }
    } else if (!addToFront) {
      state.reading = false;
    }
  }

  return needMoreData(state);
}

function addChunk(stream, state, chunk, addToFront) {
  if (state.flowing && state.length === 0 && !state.sync) {
    stream.emit('data', chunk);
    stream.read(0);
  } else {
    // update the buffer info.
    state.length += state.objectMode ? 1 : chunk.length;
    if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);

    if (state.needReadable) emitReadable(stream);
  }
  maybeReadMore(stream, state);
}

function chunkInvalid(state, chunk) {
  var er;
  if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
    er = new TypeError('Invalid non-string/buffer chunk');
  }
  return er;
}

// if it's past the high water mark, we can push in some more.
// Also, if we have no data yet, we can stand some
// more bytes.  This is to work around cases where hwm=0,
// such as the repl.  Also, if the push() triggered a
// readable event, and the user called read(largeNumber) such that
// needReadable was set, then we ought to push more, so that another
// 'readable' event will be triggered.
function needMoreData(state) {
  return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);
}

Readable.prototype.isPaused = function () {
  return this._readableState.flowing === false;
};

// backwards compatibility.
Readable.prototype.setEncoding = function (enc) {
  if (!StringDecoder) StringDecoder = __webpack_require__(120).StringDecoder;
  this._readableState.decoder = new StringDecoder(enc);
  this._readableState.encoding = enc;
  return this;
};

// Don't raise the hwm > 8MB
var MAX_HWM = 0x800000;
function computeNewHighWaterMark(n) {
  if (n >= MAX_HWM) {
    n = MAX_HWM;
  } else {
    // Get the next highest power of 2 to prevent increasing hwm excessively in
    // tiny amounts
    n--;
    n |= n >>> 1;
    n |= n >>> 2;
    n |= n >>> 4;
    n |= n >>> 8;
    n |= n >>> 16;
    n++;
  }
  return n;
}

// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function howMuchToRead(n, state) {
  if (n <= 0 || state.length === 0 && state.ended) return 0;
  if (state.objectMode) return 1;
  if (n !== n) {
    // Only flow one buffer at a time
    if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
  }
  // If we're asking for more than the current hwm, then raise the hwm.
  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
  if (n <= state.length) return n;
  // Don't have enough
  if (!state.ended) {
    state.needReadable = true;
    return 0;
  }
  return state.length;
}

// you can override either this method, or the async _read(n) below.
Readable.prototype.read = function (n) {
  debug('read', n);
  n = parseInt(n, 10);
  var state = this._readableState;
  var nOrig = n;

  if (n !== 0) state.emittedReadable = false;

  // if we're doing read(0) to trigger a readable event, but we
  // already have a bunch of data in the buffer, then just trigger
  // the 'readable' event and move on.
  if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
    debug('read: emitReadable', state.length, state.ended);
    if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
    return null;
  }

  n = howMuchToRead(n, state);

  // if we've ended, and we're now clear, then finish it up.
  if (n === 0 && state.ended) {
    if (state.length === 0) endReadable(this);
    return null;
  }

  // All the actual chunk generation logic needs to be
  // *below* the call to _read.  The reason is that in certain
  // synthetic stream cases, such as passthrough streams, _read
  // may be a completely synchronous operation which may change
  // the state of the read buffer, providing enough data when
  // before there was *not* enough.
  //
  // So, the steps are:
  // 1. Figure out what the state of things will be after we do
  // a read from the buffer.
  //
  // 2. If that resulting state will trigger a _read, then call _read.
  // Note that this may be asynchronous, or synchronous.  Yes, it is
  // deeply ugly to write APIs this way, but that still doesn't mean
  // that the Readable class should behave improperly, as streams are
  // designed to be sync/async agnostic.
  // Take note if the _read call is sync or async (ie, if the read call
  // has returned yet), so that we know whether or not it's safe to emit
  // 'readable' etc.
  //
  // 3. Actually pull the requested chunks out of the buffer and return.

  // if we need a readable event, then we need to do some reading.
  var doRead = state.needReadable;
  debug('need readable', doRead);

  // if we currently have less than the highWaterMark, then also read some
  if (state.length === 0 || state.length - n < state.highWaterMark) {
    doRead = true;
    debug('length less than watermark', doRead);
  }

  // however, if we've ended, then there's no point, and if we're already
  // reading, then it's unnecessary.
  if (state.ended || state.reading) {
    doRead = false;
    debug('reading or ended', doRead);
  } else if (doRead) {
    debug('do read');
    state.reading = true;
    state.sync = true;
    // if the length is currently zero, then we *need* a readable event.
    if (state.length === 0) state.needReadable = true;
    // call internal read method
    this._read(state.highWaterMark);
    state.sync = false;
    // If _read pushed data synchronously, then `reading` will be false,
    // and we need to re-evaluate how much data we can return to the user.
    if (!state.reading) n = howMuchToRead(nOrig, state);
  }

  var ret;
  if (n > 0) ret = fromList(n, state);else ret = null;

  if (ret === null) {
    state.needReadable = true;
    n = 0;
  } else {
    state.length -= n;
  }

  if (state.length === 0) {
    // If we have nothing in the buffer, then we want to know
    // as soon as we *do* get something into the buffer.
    if (!state.ended) state.needReadable = true;

    // If we tried to read() past the EOF, then emit end on the next tick.
    if (nOrig !== n && state.ended) endReadable(this);
  }

  if (ret !== null) this.emit('data', ret);

  return ret;
};

function onEofChunk(stream, state) {
  if (state.ended) return;
  if (state.decoder) {
    var chunk = state.decoder.end();
    if (chunk && chunk.length) {
      state.buffer.push(chunk);
      state.length += state.objectMode ? 1 : chunk.length;
    }
  }
  state.ended = true;

  // emit 'readable' now to make sure it gets picked up.
  emitReadable(stream);
}

// Don't emit readable right away in sync mode, because this can trigger
// another read() call => stack overflow.  This way, it might trigger
// a nextTick recursion warning, but that's not so bad.
function emitReadable(stream) {
  var state = stream._readableState;
  state.needReadable = false;
  if (!state.emittedReadable) {
    debug('emitReadable', state.flowing);
    state.emittedReadable = true;
    if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);
  }
}

function emitReadable_(stream) {
  debug('emit readable');
  stream.emit('readable');
  flow(stream);
}

// at this point, the user has presumably seen the 'readable' event,
// and called read() to consume some data.  that may have triggered
// in turn another _read(n) call, in which case reading = true if
// it's in progress.
// However, if we're not ended, or reading, and the length < hwm,
// then go ahead and try to read some more preemptively.
function maybeReadMore(stream, state) {
  if (!state.readingMore) {
    state.readingMore = true;
    pna.nextTick(maybeReadMore_, stream, state);
  }
}

function maybeReadMore_(stream, state) {
  var len = state.length;
  while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {
    debug('maybeReadMore read 0');
    stream.read(0);
    if (len === state.length)
      // didn't get any data, stop spinning.
      break;else len = state.length;
  }
  state.readingMore = false;
}

// abstract method.  to be overridden in specific implementation classes.
// call cb(er, data) where data is <= n in length.
// for virtual (non-string, non-buffer) streams, "length" is somewhat
// arbitrary, and perhaps not very meaningful.
Readable.prototype._read = function (n) {
  this.emit('error', new Error('_read() is not implemented'));
};

Readable.prototype.pipe = function (dest, pipeOpts) {
  var src = this;
  var state = this._readableState;

  switch (state.pipesCount) {
    case 0:
      state.pipes = dest;
      break;
    case 1:
      state.pipes = [state.pipes, dest];
      break;
    default:
      state.pipes.push(dest);
      break;
  }
  state.pipesCount += 1;
  debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);

  var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;

  var endFn = doEnd ? onend : unpipe;
  if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);

  dest.on('unpipe', onunpipe);
  function onunpipe(readable, unpipeInfo) {
    debug('onunpipe');
    if (readable === src) {
      if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
        unpipeInfo.hasUnpiped = true;
        cleanup();
      }
    }
  }

  function onend() {
    debug('onend');
    dest.end();
  }

  // when the dest drains, it reduces the awaitDrain counter
  // on the source.  This would be more elegant with a .once()
  // handler in flow(), but adding and removing repeatedly is
  // too slow.
  var ondrain = pipeOnDrain(src);
  dest.on('drain', ondrain);

  var cleanedUp = false;
  function cleanup() {
    debug('cleanup');
    // cleanup event handlers once the pipe is broken
    dest.removeListener('close', onclose);
    dest.removeListener('finish', onfinish);
    dest.removeListener('drain', ondrain);
    dest.removeListener('error', onerror);
    dest.removeListener('unpipe', onunpipe);
    src.removeListener('end', onend);
    src.removeListener('end', unpipe);
    src.removeListener('data', ondata);

    cleanedUp = true;

    // if the reader is waiting for a drain event from this
    // specific writer, then it would cause it to never start
    // flowing again.
    // So, if this is awaiting a drain, then we just call it now.
    // If we don't know, then assume that we are waiting for one.
    if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
  }

  // If the user pushes more data while we're writing to dest then we'll end up
  // in ondata again. However, we only want to increase awaitDrain once because
  // dest will only emit one 'drain' event for the multiple writes.
  // => Introduce a guard on increasing awaitDrain.
  var increasedAwaitDrain = false;
  src.on('data', ondata);
  function ondata(chunk) {
    debug('ondata');
    increasedAwaitDrain = false;
    var ret = dest.write(chunk);
    if (false === ret && !increasedAwaitDrain) {
      // If the user unpiped during `dest.write()`, it is possible
      // to get stuck in a permanently paused state if that write
      // also returned false.
      // => Check whether `dest` is still a piping destination.
      if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
        debug('false write response, pause', src._readableState.awaitDrain);
        src._readableState.awaitDrain++;
        increasedAwaitDrain = true;
      }
      src.pause();
    }
  }

  // if the dest has an error, then stop piping into it.
  // however, don't suppress the throwing behavior for this.
  function onerror(er) {
    debug('onerror', er);
    unpipe();
    dest.removeListener('error', onerror);
    if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
  }

  // Make sure our error handler is attached before userland ones.
  prependListener(dest, 'error', onerror);

  // Both close and finish should trigger unpipe, but only once.
  function onclose() {
    dest.removeListener('finish', onfinish);
    unpipe();
  }
  dest.once('close', onclose);
  function onfinish() {
    debug('onfinish');
    dest.removeListener('close', onclose);
    unpipe();
  }
  dest.once('finish', onfinish);

  function unpipe() {
    debug('unpipe');
    src.unpipe(dest);
  }

  // tell the dest that it's being piped to
  dest.emit('pipe', src);

  // start the flow if it hasn't been started already.
  if (!state.flowing) {
    debug('pipe resume');
    src.resume();
  }

  return dest;
};

function pipeOnDrain(src) {
  return function () {
    var state = src._readableState;
    debug('pipeOnDrain', state.awaitDrain);
    if (state.awaitDrain) state.awaitDrain--;
    if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
      state.flowing = true;
      flow(src);
    }
  };
}

Readable.prototype.unpipe = function (dest) {
  var state = this._readableState;
  var unpipeInfo = { hasUnpiped: false };

  // if we're not piping anywhere, then do nothing.
  if (state.pipesCount === 0) return this;

  // just one destination.  most common case.
  if (state.pipesCount === 1) {
    // passed in one, but it's not the right one.
    if (dest && dest !== state.pipes) return this;

    if (!dest) dest = state.pipes;

    // got a match.
    state.pipes = null;
    state.pipesCount = 0;
    state.flowing = false;
    if (dest) dest.emit('unpipe', this, unpipeInfo);
    return this;
  }

  // slow case. multiple pipe destinations.

  if (!dest) {
    // remove all.
    var dests = state.pipes;
    var len = state.pipesCount;
    state.pipes = null;
    state.pipesCount = 0;
    state.flowing = false;

    for (var i = 0; i < len; i++) {
      dests[i].emit('unpipe', this, unpipeInfo);
    }return this;
  }

  // try to find the right one.
  var index = indexOf(state.pipes, dest);
  if (index === -1) return this;

  state.pipes.splice(index, 1);
  state.pipesCount -= 1;
  if (state.pipesCount === 1) state.pipes = state.pipes[0];

  dest.emit('unpipe', this, unpipeInfo);

  return this;
};

// set up data events if they are asked for
// Ensure readable listeners eventually get something
Readable.prototype.on = function (ev, fn) {
  var res = Stream.prototype.on.call(this, ev, fn);

  if (ev === 'data') {
    // Start flowing on next tick if stream isn't explicitly paused
    if (this._readableState.flowing !== false) this.resume();
  } else if (ev === 'readable') {
    var state = this._readableState;
    if (!state.endEmitted && !state.readableListening) {
      state.readableListening = state.needReadable = true;
      state.emittedReadable = false;
      if (!state.reading) {
        pna.nextTick(nReadingNextTick, this);
      } else if (state.length) {
        emitReadable(this);
      }
    }
  }

  return res;
};
Readable.prototype.addListener = Readable.prototype.on;

function nReadingNextTick(self) {
  debug('readable nexttick read 0');
  self.read(0);
}

// pause() and resume() are remnants of the legacy readable stream API
// If the user uses them, then switch into old mode.
Readable.prototype.resume = function () {
  var state = this._readableState;
  if (!state.flowing) {
    debug('resume');
    state.flowing = true;
    resume(this, state);
  }
  return this;
};

function resume(stream, state) {
  if (!state.resumeScheduled) {
    state.resumeScheduled = true;
    pna.nextTick(resume_, stream, state);
  }
}

function resume_(stream, state) {
  if (!state.reading) {
    debug('resume read 0');
    stream.read(0);
  }

  state.resumeScheduled = false;
  state.awaitDrain = 0;
  stream.emit('resume');
  flow(stream);
  if (state.flowing && !state.reading) stream.read(0);
}

Readable.prototype.pause = function () {
  debug('call pause flowing=%j', this._readableState.flowing);
  if (false !== this._readableState.flowing) {
    debug('pause');
    this._readableState.flowing = false;
    this.emit('pause');
  }
  return this;
};

function flow(stream) {
  var state = stream._readableState;
  debug('flow', state.flowing);
  while (state.flowing && stream.read() !== null) {}
}

// wrap an old-style stream as the async data source.
// This is *not* part of the readable stream interface.
// It is an ugly unfortunate mess of history.
Readable.prototype.wrap = function (stream) {
  var _this = this;

  var state = this._readableState;
  var paused = false;

  stream.on('end', function () {
    debug('wrapped end');
    if (state.decoder && !state.ended) {
      var chunk = state.decoder.end();
      if (chunk && chunk.length) _this.push(chunk);
    }

    _this.push(null);
  });

  stream.on('data', function (chunk) {
    debug('wrapped data');
    if (state.decoder) chunk = state.decoder.write(chunk);

    // don't skip over falsy values in objectMode
    if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;

    var ret = _this.push(chunk);
    if (!ret) {
      paused = true;
      stream.pause();
    }
  });

  // proxy all the other methods.
  // important when wrapping filters and duplexes.
  for (var i in stream) {
    if (this[i] === undefined && typeof stream[i] === 'function') {
      this[i] = function (method) {
        return function () {
          return stream[method].apply(stream, arguments);
        };
      }(i);
    }
  }

  // proxy certain important events.
  for (var n = 0; n < kProxyEvents.length; n++) {
    stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
  }

  // when we try to consume some more bytes, simply unpause the
  // underlying stream.
  this._read = function (n) {
    debug('wrapped _read', n);
    if (paused) {
      paused = false;
      stream.resume();
    }
  };

  return this;
};

Object.defineProperty(Readable.prototype, 'readableHighWaterMark', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function () {
    return this._readableState.highWaterMark;
  }
});

// exposed for testing purposes only.
Readable._fromList = fromList;

// Pluck off n bytes from an array of buffers.
// Length is the combined lengths of all the buffers in the list.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function fromList(n, state) {
  // nothing buffered
  if (state.length === 0) return null;

  var ret;
  if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
    // read it all, truncate the list
    if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);
    state.buffer.clear();
  } else {
    // read part of list
    ret = fromListPartial(n, state.buffer, state.decoder);
  }

  return ret;
}

// Extracts only enough buffered data to satisfy the amount requested.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function fromListPartial(n, list, hasStrings) {
  var ret;
  if (n < list.head.data.length) {
    // slice is the same for buffers and strings
    ret = list.head.data.slice(0, n);
    list.head.data = list.head.data.slice(n);
  } else if (n === list.head.data.length) {
    // first chunk is a perfect match
    ret = list.shift();
  } else {
    // result spans more than one buffer
    ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
  }
  return ret;
}

// Copies a specified amount of characters from the list of buffered data
// chunks.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function copyFromBufferString(n, list) {
  var p = list.head;
  var c = 1;
  var ret = p.data;
  n -= ret.length;
  while (p = p.next) {
    var str = p.data;
    var nb = n > str.length ? str.length : n;
    if (nb === str.length) ret += str;else ret += str.slice(0, n);
    n -= nb;
    if (n === 0) {
      if (nb === str.length) {
        ++c;
        if (p.next) list.head = p.next;else list.head = list.tail = null;
      } else {
        list.head = p;
        p.data = str.slice(nb);
      }
      break;
    }
    ++c;
  }
  list.length -= c;
  return ret;
}

// Copies a specified amount of bytes from the list of buffered data chunks.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.
function copyFromBuffer(n, list) {
  var ret = Buffer.allocUnsafe(n);
  var p = list.head;
  var c = 1;
  p.data.copy(ret);
  n -= p.data.length;
  while (p = p.next) {
    var buf = p.data;
    var nb = n > buf.length ? buf.length : n;
    buf.copy(ret, ret.length - n, 0, nb);
    n -= nb;
    if (n === 0) {
      if (nb === buf.length) {
        ++c;
        if (p.next) list.head = p.next;else list.head = list.tail = null;
      } else {
        list.head = p;
        p.data = buf.slice(nb);
      }
      break;
    }
    ++c;
  }
  list.length -= c;
  return ret;
}

function endReadable(stream) {
  var state = stream._readableState;

  // If we get here before consuming all the bytes, then that is a
  // bug in node.  Should never happen.
  if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');

  if (!state.endEmitted) {
    state.ended = true;
    pna.nextTick(endReadableNT, state, stream);
  }
}

function endReadableNT(state, stream) {
  // Check that we didn't get one last unshift.
  if (!state.endEmitted && state.length === 0) {
    state.endEmitted = true;
    stream.readable = false;
    stream.emit('end');
  }
}

function indexOf(xs, x) {
  for (var i = 0, l = xs.length; i < l; i++) {
    if (xs[i] === x) return i;
  }
  return -1;
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15), __webpack_require__(30)))

/***/ }),
/* 167 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(63).EventEmitter;


/***/ }),
/* 168 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/*<replacement>*/

var pna = __webpack_require__(85);
/*</replacement>*/

// undocumented cb() API, needed for core, not for public API
function destroy(err, cb) {
  var _this = this;

  var readableDestroyed = this._readableState && this._readableState.destroyed;
  var writableDestroyed = this._writableState && this._writableState.destroyed;

  if (readableDestroyed || writableDestroyed) {
    if (cb) {
      cb(err);
    } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
      pna.nextTick(emitErrorNT, this, err);
    }
    return this;
  }

  // we set destroyed to true before firing error callbacks in order
  // to make it re-entrance safe in case destroy() is called within callbacks

  if (this._readableState) {
    this._readableState.destroyed = true;
  }

  // if this is a duplex stream mark the writable part as destroyed as well
  if (this._writableState) {
    this._writableState.destroyed = true;
  }

  this._destroy(err || null, function (err) {
    if (!cb && err) {
      pna.nextTick(emitErrorNT, _this, err);
      if (_this._writableState) {
        _this._writableState.errorEmitted = true;
      }
    } else if (cb) {
      cb(err);
    }
  });

  return this;
}

function undestroy() {
  if (this._readableState) {
    this._readableState.destroyed = false;
    this._readableState.reading = false;
    this._readableState.ended = false;
    this._readableState.endEmitted = false;
  }

  if (this._writableState) {
    this._writableState.destroyed = false;
    this._writableState.ended = false;
    this._writableState.ending = false;
    this._writableState.finished = false;
    this._writableState.errorEmitted = false;
  }
}

function emitErrorNT(self, err) {
  self.emit('error', err);
}

module.exports = {
  destroy: destroy,
  undestroy: undestroy
};

/***/ }),
/* 169 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// a transform stream is a readable/writable stream where you do
// something with the data.  Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
// some bits pass through, and others are simply ignored.  (That would
// be a valid example of a transform, of course.)
//
// While the output is causally related to the input, it's not a
// necessarily symmetric or synchronous transformation.  For example,
// a zlib stream might take multiple plain-text writes(), and then
// emit a single compressed chunk some time in the future.
//
// Here's how this works:
//
// The Transform stream has all the aspects of the readable and writable
// stream classes.  When you write(chunk), that calls _write(chunk,cb)
// internally, and returns false if there's a lot of pending writes
// buffered up.  When you call read(), that calls _read(n) until
// there's enough pending readable data buffered up.
//
// In a transform stream, the written data is placed in a buffer.  When
// _read(n) is called, it transforms the queued up data, calling the
// buffered _write cb's as it consumes chunks.  If consuming a single
// written chunk would result in multiple output chunks, then the first
// outputted bit calls the readcb, and subsequent chunks just go into
// the read buffer, and will cause it to emit 'readable' if necessary.
//
// This way, back-pressure is actually determined by the reading side,
// since _read has to be called to start processing a new chunk.  However,
// a pathological inflate type of transform can cause excessive buffering
// here.  For example, imagine a stream where every byte of input is
// interpreted as an integer from 0-255, and then results in that many
// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in
// 1kb of data being output.  In this case, you could write a very small
// amount of input, and end up with a very large amount of output.  In
// such a pathological inflating mechanism, there'd be no way to tell
// the system to stop doing the transform.  A single 4MB write could
// cause the system to run out of memory.
//
// However, even in such a pathological case, only a single written chunk
// would be consumed, and then the rest would wait (un-transformed) until
// the results of the previous transformed chunk were consumed.



module.exports = Transform;

var Duplex = __webpack_require__(53);

/*<replacement>*/
var util = __webpack_require__(65);
util.inherits = __webpack_require__(1);
/*</replacement>*/

util.inherits(Transform, Duplex);

function afterTransform(er, data) {
  var ts = this._transformState;
  ts.transforming = false;

  var cb = ts.writecb;

  if (!cb) {
    return this.emit('error', new Error('write callback called multiple times'));
  }

  ts.writechunk = null;
  ts.writecb = null;

  if (data != null) // single equals check for both `null` and `undefined`
    this.push(data);

  cb(er);

  var rs = this._readableState;
  rs.reading = false;
  if (rs.needReadable || rs.length < rs.highWaterMark) {
    this._read(rs.highWaterMark);
  }
}

function Transform(options) {
  if (!(this instanceof Transform)) return new Transform(options);

  Duplex.call(this, options);

  this._transformState = {
    afterTransform: afterTransform.bind(this),
    needTransform: false,
    transforming: false,
    writecb: null,
    writechunk: null,
    writeencoding: null
  };

  // start out asking for a readable event once data is transformed.
  this._readableState.needReadable = true;

  // we have implemented the _read method, and done the other things
  // that Readable wants before the first _read call, so unset the
  // sync guard flag.
  this._readableState.sync = false;

  if (options) {
    if (typeof options.transform === 'function') this._transform = options.transform;

    if (typeof options.flush === 'function') this._flush = options.flush;
  }

  // When the writable side finishes, then flush out anything remaining.
  this.on('prefinish', prefinish);
}

function prefinish() {
  var _this = this;

  if (typeof this._flush === 'function') {
    this._flush(function (er, data) {
      done(_this, er, data);
    });
  } else {
    done(this, null, null);
  }
}

Transform.prototype.push = function (chunk, encoding) {
  this._transformState.needTransform = false;
  return Duplex.prototype.push.call(this, chunk, encoding);
};

// This is the part where you do stuff!
// override this function in implementation classes.
// 'chunk' is an input chunk.
//
// Call `push(newChunk)` to pass along transformed output
// to the readable side.  You may call 'push' zero or more times.
//
// Call `cb(err)` when you are done with this chunk.  If you pass
// an error, then that'll put the hurt on the whole operation.  If you
// never call cb(), then you'll never get another chunk.
Transform.prototype._transform = function (chunk, encoding, cb) {
  throw new Error('_transform() is not implemented');
};

Transform.prototype._write = function (chunk, encoding, cb) {
  var ts = this._transformState;
  ts.writecb = cb;
  ts.writechunk = chunk;
  ts.writeencoding = encoding;
  if (!ts.transforming) {
    var rs = this._readableState;
    if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
  }
};

// Doesn't matter what the args are here.
// _transform does all the work.
// That we got here means that the readable side wants more data.
Transform.prototype._read = function (n) {
  var ts = this._transformState;

  if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
    ts.transforming = true;
    this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
  } else {
    // mark that we need a transform, so that any data that comes in
    // will get processed, now that we've asked for it.
    ts.needTransform = true;
  }
};

Transform.prototype._destroy = function (err, cb) {
  var _this2 = this;

  Duplex.prototype._destroy.call(this, err, function (err2) {
    cb(err2);
    _this2.emit('close');
  });
};

function done(stream, er, data) {
  if (er) return stream.emit('error', er);

  if (data != null) // single equals check for both `null` and `undefined`
    stream.push(data);

  // if there's nothing in the write buffer, then that means
  // that nothing more will ever be provided
  if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');

  if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');

  return stream.push(null);
}

/***/ }),
/* 170 */
/***/ (function(module, exports, __webpack_require__) {

/**
 * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
 * in FIPS 180-2
 * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
 *
 */

var inherits = __webpack_require__(1)
var Hash = __webpack_require__(59)
var Buffer = __webpack_require__(6).Buffer

var K = [
  0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,
  0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
  0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,
  0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
  0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,
  0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
  0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,
  0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
  0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,
  0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
  0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,
  0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
  0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,
  0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
  0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,
  0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2
]

var W = new Array(64)

function Sha256 () {
  this.init()

  this._w = W // new Array(64)

  Hash.call(this, 64, 56)
}

inherits(Sha256, Hash)

Sha256.prototype.init = function () {
  this._a = 0x6a09e667
  this._b = 0xbb67ae85
  this._c = 0x3c6ef372
  this._d = 0xa54ff53a
  this._e = 0x510e527f
  this._f = 0x9b05688c
  this._g = 0x1f83d9ab
  this._h = 0x5be0cd19

  return this
}

function ch (x, y, z) {
  return z ^ (x & (y ^ z))
}

function maj (x, y, z) {
  return (x & y) | (z & (x | y))
}

function sigma0 (x) {
  return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10)
}

function sigma1 (x) {
  return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7)
}

function gamma0 (x) {
  return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ (x >>> 3)
}

function gamma1 (x) {
  return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ (x >>> 10)
}

Sha256.prototype._update = function (M) {
  var W = this._w

  var a = this._a | 0
  var b = this._b | 0
  var c = this._c | 0
  var d = this._d | 0
  var e = this._e | 0
  var f = this._f | 0
  var g = this._g | 0
  var h = this._h | 0

  for (var i = 0; i < 16; ++i) W[i] = M.readInt32BE(i * 4)
  for (; i < 64; ++i) W[i] = (gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16]) | 0

  for (var j = 0; j < 64; ++j) {
    var T1 = (h + sigma1(e) + ch(e, f, g) + K[j] + W[j]) | 0
    var T2 = (sigma0(a) + maj(a, b, c)) | 0

    h = g
    g = f
    f = e
    e = (d + T1) | 0
    d = c
    c = b
    b = a
    a = (T1 + T2) | 0
  }

  this._a = (a + this._a) | 0
  this._b = (b + this._b) | 0
  this._c = (c + this._c) | 0
  this._d = (d + this._d) | 0
  this._e = (e + this._e) | 0
  this._f = (f + this._f) | 0
  this._g = (g + this._g) | 0
  this._h = (h + this._h) | 0
}

Sha256.prototype._hash = function () {
  var H = Buffer.allocUnsafe(32)

  H.writeInt32BE(this._a, 0)
  H.writeInt32BE(this._b, 4)
  H.writeInt32BE(this._c, 8)
  H.writeInt32BE(this._d, 12)
  H.writeInt32BE(this._e, 16)
  H.writeInt32BE(this._f, 20)
  H.writeInt32BE(this._g, 24)
  H.writeInt32BE(this._h, 28)

  return H
}

module.exports = Sha256


/***/ }),
/* 171 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1)
var Hash = __webpack_require__(59)
var Buffer = __webpack_require__(6).Buffer

var K = [
  0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
  0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
  0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
  0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,
  0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,
  0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,
  0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,
  0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,
  0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,
  0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,
  0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,
  0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,
  0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,
  0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,
  0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,
  0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,
  0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,
  0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,
  0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,
  0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,
  0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,
  0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,
  0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,
  0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,
  0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,
  0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,
  0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,
  0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,
  0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,
  0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,
  0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,
  0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,
  0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,
  0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,
  0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,
  0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,
  0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,
  0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,
  0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,
  0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
]

var W = new Array(160)

function Sha512 () {
  this.init()
  this._w = W

  Hash.call(this, 128, 112)
}

inherits(Sha512, Hash)

Sha512.prototype.init = function () {
  this._ah = 0x6a09e667
  this._bh = 0xbb67ae85
  this._ch = 0x3c6ef372
  this._dh = 0xa54ff53a
  this._eh = 0x510e527f
  this._fh = 0x9b05688c
  this._gh = 0x1f83d9ab
  this._hh = 0x5be0cd19

  this._al = 0xf3bcc908
  this._bl = 0x84caa73b
  this._cl = 0xfe94f82b
  this._dl = 0x5f1d36f1
  this._el = 0xade682d1
  this._fl = 0x2b3e6c1f
  this._gl = 0xfb41bd6b
  this._hl = 0x137e2179

  return this
}

function Ch (x, y, z) {
  return z ^ (x & (y ^ z))
}

function maj (x, y, z) {
  return (x & y) | (z & (x | y))
}

function sigma0 (x, xl) {
  return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25)
}

function sigma1 (x, xl) {
  return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23)
}

function Gamma0 (x, xl) {
  return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7)
}

function Gamma0l (x, xl) {
  return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25)
}

function Gamma1 (x, xl) {
  return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6)
}

function Gamma1l (x, xl) {
  return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26)
}

function getCarry (a, b) {
  return (a >>> 0) < (b >>> 0) ? 1 : 0
}

Sha512.prototype._update = function (M) {
  var W = this._w

  var ah = this._ah | 0
  var bh = this._bh | 0
  var ch = this._ch | 0
  var dh = this._dh | 0
  var eh = this._eh | 0
  var fh = this._fh | 0
  var gh = this._gh | 0
  var hh = this._hh | 0

  var al = this._al | 0
  var bl = this._bl | 0
  var cl = this._cl | 0
  var dl = this._dl | 0
  var el = this._el | 0
  var fl = this._fl | 0
  var gl = this._gl | 0
  var hl = this._hl | 0

  for (var i = 0; i < 32; i += 2) {
    W[i] = M.readInt32BE(i * 4)
    W[i + 1] = M.readInt32BE(i * 4 + 4)
  }
  for (; i < 160; i += 2) {
    var xh = W[i - 15 * 2]
    var xl = W[i - 15 * 2 + 1]
    var gamma0 = Gamma0(xh, xl)
    var gamma0l = Gamma0l(xl, xh)

    xh = W[i - 2 * 2]
    xl = W[i - 2 * 2 + 1]
    var gamma1 = Gamma1(xh, xl)
    var gamma1l = Gamma1l(xl, xh)

    // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
    var Wi7h = W[i - 7 * 2]
    var Wi7l = W[i - 7 * 2 + 1]

    var Wi16h = W[i - 16 * 2]
    var Wi16l = W[i - 16 * 2 + 1]

    var Wil = (gamma0l + Wi7l) | 0
    var Wih = (gamma0 + Wi7h + getCarry(Wil, gamma0l)) | 0
    Wil = (Wil + gamma1l) | 0
    Wih = (Wih + gamma1 + getCarry(Wil, gamma1l)) | 0
    Wil = (Wil + Wi16l) | 0
    Wih = (Wih + Wi16h + getCarry(Wil, Wi16l)) | 0

    W[i] = Wih
    W[i + 1] = Wil
  }

  for (var j = 0; j < 160; j += 2) {
    Wih = W[j]
    Wil = W[j + 1]

    var majh = maj(ah, bh, ch)
    var majl = maj(al, bl, cl)

    var sigma0h = sigma0(ah, al)
    var sigma0l = sigma0(al, ah)
    var sigma1h = sigma1(eh, el)
    var sigma1l = sigma1(el, eh)

    // t1 = h + sigma1 + ch + K[j] + W[j]
    var Kih = K[j]
    var Kil = K[j + 1]

    var chh = Ch(eh, fh, gh)
    var chl = Ch(el, fl, gl)

    var t1l = (hl + sigma1l) | 0
    var t1h = (hh + sigma1h + getCarry(t1l, hl)) | 0
    t1l = (t1l + chl) | 0
    t1h = (t1h + chh + getCarry(t1l, chl)) | 0
    t1l = (t1l + Kil) | 0
    t1h = (t1h + Kih + getCarry(t1l, Kil)) | 0
    t1l = (t1l + Wil) | 0
    t1h = (t1h + Wih + getCarry(t1l, Wil)) | 0

    // t2 = sigma0 + maj
    var t2l = (sigma0l + majl) | 0
    var t2h = (sigma0h + majh + getCarry(t2l, sigma0l)) | 0

    hh = gh
    hl = gl
    gh = fh
    gl = fl
    fh = eh
    fl = el
    el = (dl + t1l) | 0
    eh = (dh + t1h + getCarry(el, dl)) | 0
    dh = ch
    dl = cl
    ch = bh
    cl = bl
    bh = ah
    bl = al
    al = (t1l + t2l) | 0
    ah = (t1h + t2h + getCarry(al, t1l)) | 0
  }

  this._al = (this._al + al) | 0
  this._bl = (this._bl + bl) | 0
  this._cl = (this._cl + cl) | 0
  this._dl = (this._dl + dl) | 0
  this._el = (this._el + el) | 0
  this._fl = (this._fl + fl) | 0
  this._gl = (this._gl + gl) | 0
  this._hl = (this._hl + hl) | 0

  this._ah = (this._ah + ah + getCarry(this._al, al)) | 0
  this._bh = (this._bh + bh + getCarry(this._bl, bl)) | 0
  this._ch = (this._ch + ch + getCarry(this._cl, cl)) | 0
  this._dh = (this._dh + dh + getCarry(this._dl, dl)) | 0
  this._eh = (this._eh + eh + getCarry(this._el, el)) | 0
  this._fh = (this._fh + fh + getCarry(this._fl, fl)) | 0
  this._gh = (this._gh + gh + getCarry(this._gl, gl)) | 0
  this._hh = (this._hh + hh + getCarry(this._hl, hl)) | 0
}

Sha512.prototype._hash = function () {
  var H = Buffer.allocUnsafe(64)

  function writeInt64BE (h, l, offset) {
    H.writeInt32BE(h, offset)
    H.writeInt32BE(l, offset + 4)
  }

  writeInt64BE(this._ah, this._al, 0)
  writeInt64BE(this._bh, this._bl, 8)
  writeInt64BE(this._ch, this._cl, 16)
  writeInt64BE(this._dh, this._dl, 24)
  writeInt64BE(this._eh, this._el, 32)
  writeInt64BE(this._fh, this._fl, 40)
  writeInt64BE(this._gh, this._gl, 48)
  writeInt64BE(this._hh, this._hl, 56)

  return H
}

module.exports = Sha512


/***/ }),
/* 172 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var inherits = __webpack_require__(1)
var Legacy = __webpack_require__(434)
var Base = __webpack_require__(42)
var Buffer = __webpack_require__(6).Buffer
var md5 = __webpack_require__(173)
var RIPEMD160 = __webpack_require__(121)

var sha = __webpack_require__(122)

var ZEROS = Buffer.alloc(128)

function Hmac (alg, key) {
  Base.call(this, 'digest')
  if (typeof key === 'string') {
    key = Buffer.from(key)
  }

  var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64

  this._alg = alg
  this._key = key
  if (key.length > blocksize) {
    var hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg)
    key = hash.update(key).digest()
  } else if (key.length < blocksize) {
    key = Buffer.concat([key, ZEROS], blocksize)
  }

  var ipad = this._ipad = Buffer.allocUnsafe(blocksize)
  var opad = this._opad = Buffer.allocUnsafe(blocksize)

  for (var i = 0; i < blocksize; i++) {
    ipad[i] = key[i] ^ 0x36
    opad[i] = key[i] ^ 0x5C
  }
  this._hash = alg === 'rmd160' ? new RIPEMD160() : sha(alg)
  this._hash.update(ipad)
}

inherits(Hmac, Base)

Hmac.prototype._update = function (data) {
  this._hash.update(data)
}

Hmac.prototype._final = function () {
  var h = this._hash.digest()
  var hash = this._alg === 'rmd160' ? new RIPEMD160() : sha(this._alg)
  return hash.update(this._opad).update(h).digest()
}

module.exports = function createHmac (alg, key) {
  alg = alg.toLowerCase()
  if (alg === 'rmd160' || alg === 'ripemd160') {
    return new Hmac('rmd160', key)
  }
  if (alg === 'md5') {
    return new Legacy(md5, key)
  }
  return new Hmac(alg, key)
}


/***/ }),
/* 173 */
/***/ (function(module, exports, __webpack_require__) {

var MD5 = __webpack_require__(116)

module.exports = function (buffer) {
  return new MD5().update(buffer).digest()
}


/***/ }),
/* 174 */
/***/ (function(module, exports) {

module.exports = {"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}

/***/ }),
/* 175 */
/***/ (function(module, exports, __webpack_require__) {

exports.pbkdf2 = __webpack_require__(436)
exports.pbkdf2Sync = __webpack_require__(178)


/***/ }),
/* 176 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var MAX_ALLOC = Math.pow(2, 30) - 1 // default in iojs

function checkBuffer (buf, name) {
  if (typeof buf !== 'string' && !Buffer.isBuffer(buf)) {
    throw new TypeError(name + ' must be a buffer or string')
  }
}

module.exports = function (password, salt, iterations, keylen) {
  checkBuffer(password, 'Password')
  checkBuffer(salt, 'Salt')

  if (typeof iterations !== 'number') {
    throw new TypeError('Iterations not a number')
  }

  if (iterations < 0) {
    throw new TypeError('Bad iterations')
  }

  if (typeof keylen !== 'number') {
    throw new TypeError('Key length not a number')
  }

  if (keylen < 0 || keylen > MAX_ALLOC || keylen !== keylen) { /* eslint no-self-compare: 0 */
    throw new TypeError('Bad key length')
  }
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 177 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {var defaultEncoding
/* istanbul ignore next */
if (process.browser) {
  defaultEncoding = 'utf-8'
} else {
  var pVersionMajor = parseInt(process.version.split('.')[0].slice(1), 10)

  defaultEncoding = pVersionMajor >= 6 ? 'utf-8' : 'binary'
}
module.exports = defaultEncoding

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)))

/***/ }),
/* 178 */
/***/ (function(module, exports, __webpack_require__) {

var md5 = __webpack_require__(173)
var rmd160 = __webpack_require__(121)
var sha = __webpack_require__(122)

var checkParameters = __webpack_require__(176)
var defaultEncoding = __webpack_require__(177)
var Buffer = __webpack_require__(6).Buffer
var ZEROS = Buffer.alloc(128)
var sizes = {
  md5: 16,
  sha1: 20,
  sha224: 28,
  sha256: 32,
  sha384: 48,
  sha512: 64,
  rmd160: 20,
  ripemd160: 20
}

function Hmac (alg, key, saltLen) {
  var hash = getDigest(alg)
  var blocksize = (alg === 'sha512' || alg === 'sha384') ? 128 : 64

  if (key.length > blocksize) {
    key = hash(key)
  } else if (key.length < blocksize) {
    key = Buffer.concat([key, ZEROS], blocksize)
  }

  var ipad = Buffer.allocUnsafe(blocksize + sizes[alg])
  var opad = Buffer.allocUnsafe(blocksize + sizes[alg])
  for (var i = 0; i < blocksize; i++) {
    ipad[i] = key[i] ^ 0x36
    opad[i] = key[i] ^ 0x5C
  }

  var ipad1 = Buffer.allocUnsafe(blocksize + saltLen + 4)
  ipad.copy(ipad1, 0, 0, blocksize)
  this.ipad1 = ipad1
  this.ipad2 = ipad
  this.opad = opad
  this.alg = alg
  this.blocksize = blocksize
  this.hash = hash
  this.size = sizes[alg]
}

Hmac.prototype.run = function (data, ipad) {
  data.copy(ipad, this.blocksize)
  var h = this.hash(ipad)
  h.copy(this.opad, this.blocksize)
  return this.hash(this.opad)
}

function getDigest (alg) {
  function shaFunc (data) {
    return sha(alg).update(data).digest()
  }

  if (alg === 'rmd160' || alg === 'ripemd160') return rmd160
  if (alg === 'md5') return md5
  return shaFunc
}

function pbkdf2 (password, salt, iterations, keylen, digest) {
  checkParameters(password, salt, iterations, keylen)

  if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding)
  if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding)

  digest = digest || 'sha1'

  var hmac = new Hmac(digest, password, salt.length)

  var DK = Buffer.allocUnsafe(keylen)
  var block1 = Buffer.allocUnsafe(salt.length + 4)
  salt.copy(block1, 0, 0, salt.length)

  var destPos = 0
  var hLen = sizes[digest]
  var l = Math.ceil(keylen / hLen)

  for (var i = 1; i <= l; i++) {
    block1.writeUInt32BE(i, salt.length)

    var T = hmac.run(block1, hmac.ipad1)
    var U = T

    for (var j = 1; j < iterations; j++) {
      U = hmac.run(U, hmac.ipad2)
      for (var k = 0; k < hLen; k++) T[k] ^= U[k]
    }

    T.copy(DK, destPos)
    destPos += hLen
  }

  return DK
}

module.exports = pbkdf2


/***/ }),
/* 179 */
/***/ (function(module, exports, __webpack_require__) {

var xor = __webpack_require__(66)
var Buffer = __webpack_require__(6).Buffer
var incr32 = __webpack_require__(180)

function getBlock (self) {
  var out = self._cipher.encryptBlockRaw(self._prev)
  incr32(self._prev)
  return out
}

var blockSize = 16
exports.encrypt = function (self, chunk) {
  var chunkNum = Math.ceil(chunk.length / blockSize)
  var start = self._cache.length
  self._cache = Buffer.concat([
    self._cache,
    Buffer.allocUnsafe(chunkNum * blockSize)
  ])
  for (var i = 0; i < chunkNum; i++) {
    var out = getBlock(self)
    var offset = start + i * blockSize
    self._cache.writeUInt32BE(out[0], offset + 0)
    self._cache.writeUInt32BE(out[1], offset + 4)
    self._cache.writeUInt32BE(out[2], offset + 8)
    self._cache.writeUInt32BE(out[3], offset + 12)
  }
  var pad = self._cache.slice(0, chunk.length)
  self._cache = self._cache.slice(chunk.length)
  return xor(chunk, pad)
}


/***/ }),
/* 180 */
/***/ (function(module, exports) {

function incr32 (iv) {
  var len = iv.length
  var item
  while (len--) {
    item = iv.readUInt8(len)
    if (item === 255) {
      iv.writeUInt8(0, len)
    } else {
      item++
      iv.writeUInt8(item, len)
      break
    }
  }
}
module.exports = incr32


/***/ }),
/* 181 */
/***/ (function(module, exports) {

module.exports = {"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}

/***/ }),
/* 182 */
/***/ (function(module, exports, __webpack_require__) {

var aes = __webpack_require__(86)
var Buffer = __webpack_require__(6).Buffer
var Transform = __webpack_require__(42)
var inherits = __webpack_require__(1)
var GHASH = __webpack_require__(451)
var xor = __webpack_require__(66)
var incr32 = __webpack_require__(180)

function xorTest (a, b) {
  var out = 0
  if (a.length !== b.length) out++

  var len = Math.min(a.length, b.length)
  for (var i = 0; i < len; ++i) {
    out += (a[i] ^ b[i])
  }

  return out
}

function calcIv (self, iv, ck) {
  if (iv.length === 12) {
    self._finID = Buffer.concat([iv, Buffer.from([0, 0, 0, 1])])
    return Buffer.concat([iv, Buffer.from([0, 0, 0, 2])])
  }
  var ghash = new GHASH(ck)
  var len = iv.length
  var toPad = len % 16
  ghash.update(iv)
  if (toPad) {
    toPad = 16 - toPad
    ghash.update(Buffer.alloc(toPad, 0))
  }
  ghash.update(Buffer.alloc(8, 0))
  var ivBits = len * 8
  var tail = Buffer.alloc(8)
  tail.writeUIntBE(ivBits, 0, 8)
  ghash.update(tail)
  self._finID = ghash.state
  var out = Buffer.from(self._finID)
  incr32(out)
  return out
}
function StreamCipher (mode, key, iv, decrypt) {
  Transform.call(this)

  var h = Buffer.alloc(4, 0)

  this._cipher = new aes.AES(key)
  var ck = this._cipher.encryptBlock(h)
  this._ghash = new GHASH(ck)
  iv = calcIv(this, iv, ck)

  this._prev = Buffer.from(iv)
  this._cache = Buffer.allocUnsafe(0)
  this._secCache = Buffer.allocUnsafe(0)
  this._decrypt = decrypt
  this._alen = 0
  this._len = 0
  this._mode = mode

  this._authTag = null
  this._called = false
}

inherits(StreamCipher, Transform)

StreamCipher.prototype._update = function (chunk) {
  if (!this._called && this._alen) {
    var rump = 16 - (this._alen % 16)
    if (rump < 16) {
      rump = Buffer.alloc(rump, 0)
      this._ghash.update(rump)
    }
  }

  this._called = true
  var out = this._mode.encrypt(this, chunk)
  if (this._decrypt) {
    this._ghash.update(chunk)
  } else {
    this._ghash.update(out)
  }
  this._len += chunk.length
  return out
}

StreamCipher.prototype._final = function () {
  if (this._decrypt && !this._authTag) throw new Error('Unsupported state or unable to authenticate data')

  var tag = xor(this._ghash.final(this._alen * 8, this._len * 8), this._cipher.encryptBlock(this._finID))
  if (this._decrypt && xorTest(tag, this._authTag)) throw new Error('Unsupported state or unable to authenticate data')

  this._authTag = tag
  this._cipher.scrub()
}

StreamCipher.prototype.getAuthTag = function getAuthTag () {
  if (this._decrypt || !Buffer.isBuffer(this._authTag)) throw new Error('Attempting to get auth tag in unsupported state')

  return this._authTag
}

StreamCipher.prototype.setAuthTag = function setAuthTag (tag) {
  if (!this._decrypt) throw new Error('Attempting to set auth tag in unsupported state')

  this._authTag = tag
}

StreamCipher.prototype.setAAD = function setAAD (buf) {
  if (this._called) throw new Error('Attempting to set AAD in unsupported state')

  this._ghash.update(buf)
  this._alen += buf.length
}

module.exports = StreamCipher


/***/ }),
/* 183 */
/***/ (function(module, exports, __webpack_require__) {

var aes = __webpack_require__(86)
var Buffer = __webpack_require__(6).Buffer
var Transform = __webpack_require__(42)
var inherits = __webpack_require__(1)

function StreamCipher (mode, key, iv, decrypt) {
  Transform.call(this)

  this._cipher = new aes.AES(key)
  this._prev = Buffer.from(iv)
  this._cache = Buffer.allocUnsafe(0)
  this._secCache = Buffer.allocUnsafe(0)
  this._decrypt = decrypt
  this._mode = mode
}

inherits(StreamCipher, Transform)

StreamCipher.prototype._update = function (chunk) {
  return this._mode.encrypt(this, chunk, this._decrypt)
}

StreamCipher.prototype._final = function () {
  this._cipher.scrub()
}

module.exports = StreamCipher


/***/ }),
/* 184 */
/***/ (function(module, exports, __webpack_require__) {

var randomBytes = __webpack_require__(58);
module.exports = findPrime;
findPrime.simpleSieve = simpleSieve;
findPrime.fermatTest = fermatTest;
var BN = __webpack_require__(12);
var TWENTYFOUR = new BN(24);
var MillerRabin = __webpack_require__(186);
var millerRabin = new MillerRabin();
var ONE = new BN(1);
var TWO = new BN(2);
var FIVE = new BN(5);
var SIXTEEN = new BN(16);
var EIGHT = new BN(8);
var TEN = new BN(10);
var THREE = new BN(3);
var SEVEN = new BN(7);
var ELEVEN = new BN(11);
var FOUR = new BN(4);
var TWELVE = new BN(12);
var primes = null;

function _getPrimes() {
  if (primes !== null)
    return primes;

  var limit = 0x100000;
  var res = [];
  res[0] = 2;
  for (var i = 1, k = 3; k < limit; k += 2) {
    var sqrt = Math.ceil(Math.sqrt(k));
    for (var j = 0; j < i && res[j] <= sqrt; j++)
      if (k % res[j] === 0)
        break;

    if (i !== j && res[j] <= sqrt)
      continue;

    res[i++] = k;
  }
  primes = res;
  return res;
}

function simpleSieve(p) {
  var primes = _getPrimes();

  for (var i = 0; i < primes.length; i++)
    if (p.modn(primes[i]) === 0) {
      if (p.cmpn(primes[i]) === 0) {
        return true;
      } else {
        return false;
      }
    }

  return true;
}

function fermatTest(p) {
  var red = BN.mont(p);
  return TWO.toRed(red).redPow(p.subn(1)).fromRed().cmpn(1) === 0;
}

function findPrime(bits, gen) {
  if (bits < 16) {
    // this is what openssl does
    if (gen === 2 || gen === 5) {
      return new BN([0x8c, 0x7b]);
    } else {
      return new BN([0x8c, 0x27]);
    }
  }
  gen = new BN(gen);

  var num, n2;

  while (true) {
    num = new BN(randomBytes(Math.ceil(bits / 8)));
    while (num.bitLength() > bits) {
      num.ishrn(1);
    }
    if (num.isEven()) {
      num.iadd(ONE);
    }
    if (!num.testn(1)) {
      num.iadd(TWO);
    }
    if (!gen.cmp(TWO)) {
      while (num.mod(TWENTYFOUR).cmp(ELEVEN)) {
        num.iadd(FOUR);
      }
    } else if (!gen.cmp(FIVE)) {
      while (num.mod(TEN).cmp(THREE)) {
        num.iadd(FOUR);
      }
    }
    n2 = num.shrn(1);
    if (simpleSieve(n2) && simpleSieve(num) &&
      fermatTest(n2) && fermatTest(num) &&
      millerRabin.test(n2) && millerRabin.test(num)) {
      return num;
    }
  }

}


/***/ }),
/* 185 */
/***/ (function(module, exports) {

module.exports = function(module) {
	if(!module.webpackPolyfill) {
		module.deprecate = function() {};
		module.paths = [];
		// module.parent = undefined by default
		if(!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),
/* 186 */
/***/ (function(module, exports, __webpack_require__) {

var bn = __webpack_require__(12);
var brorand = __webpack_require__(187);

function MillerRabin(rand) {
  this.rand = rand || new brorand.Rand();
}
module.exports = MillerRabin;

MillerRabin.create = function create(rand) {
  return new MillerRabin(rand);
};

MillerRabin.prototype._randbelow = function _randbelow(n) {
  var len = n.bitLength();
  var min_bytes = Math.ceil(len / 8);

  // Generage random bytes until a number less than n is found.
  // This ensures that 0..n-1 have an equal probability of being selected.
  do
    var a = new bn(this.rand.generate(min_bytes));
  while (a.cmp(n) >= 0);

  return a;
};

MillerRabin.prototype._randrange = function _randrange(start, stop) {
  // Generate a random number greater than or equal to start and less than stop.
  var size = stop.sub(start);
  return start.add(this._randbelow(size));
};

MillerRabin.prototype.test = function test(n, k, cb) {
  var len = n.bitLength();
  var red = bn.mont(n);
  var rone = new bn(1).toRed(red);

  if (!k)
    k = Math.max(1, (len / 48) | 0);

  // Find d and s, (n - 1) = (2 ^ s) * d;
  var n1 = n.subn(1);
  for (var s = 0; !n1.testn(s); s++) {}
  var d = n.shrn(s);

  var rn1 = n1.toRed(red);

  var prime = true;
  for (; k > 0; k--) {
    var a = this._randrange(new bn(2), n1);
    if (cb)
      cb(a);

    var x = a.toRed(red).redPow(d);
    if (x.cmp(rone) === 0 || x.cmp(rn1) === 0)
      continue;

    for (var i = 1; i < s; i++) {
      x = x.redSqr();

      if (x.cmp(rone) === 0)
        return false;
      if (x.cmp(rn1) === 0)
        break;
    }

    if (i === s)
      return false;
  }

  return prime;
};

MillerRabin.prototype.getDivisor = function getDivisor(n, k) {
  var len = n.bitLength();
  var red = bn.mont(n);
  var rone = new bn(1).toRed(red);

  if (!k)
    k = Math.max(1, (len / 48) | 0);

  // Find d and s, (n - 1) = (2 ^ s) * d;
  var n1 = n.subn(1);
  for (var s = 0; !n1.testn(s); s++) {}
  var d = n.shrn(s);

  var rn1 = n1.toRed(red);

  for (; k > 0; k--) {
    var a = this._randrange(new bn(2), n1);

    var g = n.gcd(a);
    if (g.cmpn(1) !== 0)
      return g;

    var x = a.toRed(red).redPow(d);
    if (x.cmp(rone) === 0 || x.cmp(rn1) === 0)
      continue;

    for (var i = 1; i < s; i++) {
      x = x.redSqr();

      if (x.cmp(rone) === 0)
        return x.fromRed().subn(1).gcd(n);
      if (x.cmp(rn1) === 0)
        break;
    }

    if (i === s) {
      x = x.redSqr();
      return x.fromRed().subn(1).gcd(n);
    }
  }

  return false;
};


/***/ }),
/* 187 */
/***/ (function(module, exports, __webpack_require__) {

var r;

module.exports = function rand(len) {
  if (!r)
    r = new Rand(null);

  return r.generate(len);
};

function Rand(rand) {
  this.rand = rand;
}
module.exports.Rand = Rand;

Rand.prototype.generate = function generate(len) {
  return this._rand(len);
};

// Emulate crypto API using randy
Rand.prototype._rand = function _rand(n) {
  if (this.rand.getBytes)
    return this.rand.getBytes(n);

  var res = new Uint8Array(n);
  for (var i = 0; i < res.length; i++)
    res[i] = this.rand.getByte();
  return res;
};

if (typeof self === 'object') {
  if (self.crypto && self.crypto.getRandomValues) {
    // Modern browsers
    Rand.prototype._rand = function _rand(n) {
      var arr = new Uint8Array(n);
      self.crypto.getRandomValues(arr);
      return arr;
    };
  } else if (self.msCrypto && self.msCrypto.getRandomValues) {
    // IE
    Rand.prototype._rand = function _rand(n) {
      var arr = new Uint8Array(n);
      self.msCrypto.getRandomValues(arr);
      return arr;
    };

  // Safari's WebWorkers do not have `crypto`
  } else if (typeof window === 'object') {
    // Old junk
    Rand.prototype._rand = function() {
      throw new Error('Not implemented yet');
    };
  }
} else {
  // Node.js or Web worker with no crypto support
  try {
    var crypto = __webpack_require__(456);
    if (typeof crypto.randomBytes !== 'function')
      throw new Error('Not supported');

    Rand.prototype._rand = function _rand(n) {
      return crypto.randomBytes(n);
    };
  } catch (e) {
  }
}


/***/ }),
/* 188 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = exports;

function toArray(msg, enc) {
  if (Array.isArray(msg))
    return msg.slice();
  if (!msg)
    return [];
  var res = [];
  if (typeof msg !== 'string') {
    for (var i = 0; i < msg.length; i++)
      res[i] = msg[i] | 0;
    return res;
  }
  if (enc === 'hex') {
    msg = msg.replace(/[^a-z0-9]+/ig, '');
    if (msg.length % 2 !== 0)
      msg = '0' + msg;
    for (var i = 0; i < msg.length; i += 2)
      res.push(parseInt(msg[i] + msg[i + 1], 16));
  } else {
    for (var i = 0; i < msg.length; i++) {
      var c = msg.charCodeAt(i);
      var hi = c >> 8;
      var lo = c & 0xff;
      if (hi)
        res.push(hi, lo);
      else
        res.push(lo);
    }
  }
  return res;
}
utils.toArray = toArray;

function zero2(word) {
  if (word.length === 1)
    return '0' + word;
  else
    return word;
}
utils.zero2 = zero2;

function toHex(msg) {
  var res = '';
  for (var i = 0; i < msg.length; i++)
    res += zero2(msg[i].toString(16));
  return res;
}
utils.toHex = toHex;

utils.encode = function encode(arr, enc) {
  if (enc === 'hex')
    return toHex(arr);
  else
    return arr;
};


/***/ }),
/* 189 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var rotr32 = utils.rotr32;

function ft_1(s, x, y, z) {
  if (s === 0)
    return ch32(x, y, z);
  if (s === 1 || s === 3)
    return p32(x, y, z);
  if (s === 2)
    return maj32(x, y, z);
}
exports.ft_1 = ft_1;

function ch32(x, y, z) {
  return (x & y) ^ ((~x) & z);
}
exports.ch32 = ch32;

function maj32(x, y, z) {
  return (x & y) ^ (x & z) ^ (y & z);
}
exports.maj32 = maj32;

function p32(x, y, z) {
  return x ^ y ^ z;
}
exports.p32 = p32;

function s0_256(x) {
  return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);
}
exports.s0_256 = s0_256;

function s1_256(x) {
  return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);
}
exports.s1_256 = s1_256;

function g0_256(x) {
  return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);
}
exports.g0_256 = g0_256;

function g1_256(x) {
  return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);
}
exports.g1_256 = g1_256;


/***/ }),
/* 190 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var common = __webpack_require__(67);
var shaCommon = __webpack_require__(189);
var assert = __webpack_require__(25);

var sum32 = utils.sum32;
var sum32_4 = utils.sum32_4;
var sum32_5 = utils.sum32_5;
var ch32 = shaCommon.ch32;
var maj32 = shaCommon.maj32;
var s0_256 = shaCommon.s0_256;
var s1_256 = shaCommon.s1_256;
var g0_256 = shaCommon.g0_256;
var g1_256 = shaCommon.g1_256;

var BlockHash = common.BlockHash;

var sha256_K = [
  0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
  0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
  0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
  0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
  0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
  0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
  0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
  0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
  0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
  0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
  0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
  0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
  0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
  0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
  0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
  0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
];

function SHA256() {
  if (!(this instanceof SHA256))
    return new SHA256();

  BlockHash.call(this);
  this.h = [
    0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
    0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
  ];
  this.k = sha256_K;
  this.W = new Array(64);
}
utils.inherits(SHA256, BlockHash);
module.exports = SHA256;

SHA256.blockSize = 512;
SHA256.outSize = 256;
SHA256.hmacStrength = 192;
SHA256.padLength = 64;

SHA256.prototype._update = function _update(msg, start) {
  var W = this.W;

  for (var i = 0; i < 16; i++)
    W[i] = msg[start + i];
  for (; i < W.length; i++)
    W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);

  var a = this.h[0];
  var b = this.h[1];
  var c = this.h[2];
  var d = this.h[3];
  var e = this.h[4];
  var f = this.h[5];
  var g = this.h[6];
  var h = this.h[7];

  assert(this.k.length === W.length);
  for (i = 0; i < W.length; i++) {
    var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);
    var T2 = sum32(s0_256(a), maj32(a, b, c));
    h = g;
    g = f;
    f = e;
    e = sum32(d, T1);
    d = c;
    c = b;
    b = a;
    a = sum32(T1, T2);
  }

  this.h[0] = sum32(this.h[0], a);
  this.h[1] = sum32(this.h[1], b);
  this.h[2] = sum32(this.h[2], c);
  this.h[3] = sum32(this.h[3], d);
  this.h[4] = sum32(this.h[4], e);
  this.h[5] = sum32(this.h[5], f);
  this.h[6] = sum32(this.h[6], g);
  this.h[7] = sum32(this.h[7], h);
};

SHA256.prototype._digest = function digest(enc) {
  if (enc === 'hex')
    return utils.toHex32(this.h, 'big');
  else
    return utils.split32(this.h, 'big');
};


/***/ }),
/* 191 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var common = __webpack_require__(67);
var assert = __webpack_require__(25);

var rotr64_hi = utils.rotr64_hi;
var rotr64_lo = utils.rotr64_lo;
var shr64_hi = utils.shr64_hi;
var shr64_lo = utils.shr64_lo;
var sum64 = utils.sum64;
var sum64_hi = utils.sum64_hi;
var sum64_lo = utils.sum64_lo;
var sum64_4_hi = utils.sum64_4_hi;
var sum64_4_lo = utils.sum64_4_lo;
var sum64_5_hi = utils.sum64_5_hi;
var sum64_5_lo = utils.sum64_5_lo;

var BlockHash = common.BlockHash;

var sha512_K = [
  0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
  0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
  0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
  0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,
  0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,
  0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,
  0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,
  0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,
  0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,
  0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,
  0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,
  0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,
  0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,
  0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,
  0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,
  0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,
  0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,
  0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,
  0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,
  0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,
  0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,
  0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,
  0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,
  0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,
  0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,
  0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,
  0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,
  0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,
  0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,
  0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,
  0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,
  0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,
  0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,
  0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,
  0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,
  0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,
  0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,
  0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,
  0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,
  0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
];

function SHA512() {
  if (!(this instanceof SHA512))
    return new SHA512();

  BlockHash.call(this);
  this.h = [
    0x6a09e667, 0xf3bcc908,
    0xbb67ae85, 0x84caa73b,
    0x3c6ef372, 0xfe94f82b,
    0xa54ff53a, 0x5f1d36f1,
    0x510e527f, 0xade682d1,
    0x9b05688c, 0x2b3e6c1f,
    0x1f83d9ab, 0xfb41bd6b,
    0x5be0cd19, 0x137e2179 ];
  this.k = sha512_K;
  this.W = new Array(160);
}
utils.inherits(SHA512, BlockHash);
module.exports = SHA512;

SHA512.blockSize = 1024;
SHA512.outSize = 512;
SHA512.hmacStrength = 192;
SHA512.padLength = 128;

SHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {
  var W = this.W;

  // 32 x 32bit words
  for (var i = 0; i < 32; i++)
    W[i] = msg[start + i];
  for (; i < W.length; i += 2) {
    var c0_hi = g1_512_hi(W[i - 4], W[i - 3]);  // i - 2
    var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);
    var c1_hi = W[i - 14];  // i - 7
    var c1_lo = W[i - 13];
    var c2_hi = g0_512_hi(W[i - 30], W[i - 29]);  // i - 15
    var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);
    var c3_hi = W[i - 32];  // i - 16
    var c3_lo = W[i - 31];

    W[i] = sum64_4_hi(
      c0_hi, c0_lo,
      c1_hi, c1_lo,
      c2_hi, c2_lo,
      c3_hi, c3_lo);
    W[i + 1] = sum64_4_lo(
      c0_hi, c0_lo,
      c1_hi, c1_lo,
      c2_hi, c2_lo,
      c3_hi, c3_lo);
  }
};

SHA512.prototype._update = function _update(msg, start) {
  this._prepareBlock(msg, start);

  var W = this.W;

  var ah = this.h[0];
  var al = this.h[1];
  var bh = this.h[2];
  var bl = this.h[3];
  var ch = this.h[4];
  var cl = this.h[5];
  var dh = this.h[6];
  var dl = this.h[7];
  var eh = this.h[8];
  var el = this.h[9];
  var fh = this.h[10];
  var fl = this.h[11];
  var gh = this.h[12];
  var gl = this.h[13];
  var hh = this.h[14];
  var hl = this.h[15];

  assert(this.k.length === W.length);
  for (var i = 0; i < W.length; i += 2) {
    var c0_hi = hh;
    var c0_lo = hl;
    var c1_hi = s1_512_hi(eh, el);
    var c1_lo = s1_512_lo(eh, el);
    var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);
    var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);
    var c3_hi = this.k[i];
    var c3_lo = this.k[i + 1];
    var c4_hi = W[i];
    var c4_lo = W[i + 1];

    var T1_hi = sum64_5_hi(
      c0_hi, c0_lo,
      c1_hi, c1_lo,
      c2_hi, c2_lo,
      c3_hi, c3_lo,
      c4_hi, c4_lo);
    var T1_lo = sum64_5_lo(
      c0_hi, c0_lo,
      c1_hi, c1_lo,
      c2_hi, c2_lo,
      c3_hi, c3_lo,
      c4_hi, c4_lo);

    c0_hi = s0_512_hi(ah, al);
    c0_lo = s0_512_lo(ah, al);
    c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);
    c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);

    var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);
    var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);

    hh = gh;
    hl = gl;

    gh = fh;
    gl = fl;

    fh = eh;
    fl = el;

    eh = sum64_hi(dh, dl, T1_hi, T1_lo);
    el = sum64_lo(dl, dl, T1_hi, T1_lo);

    dh = ch;
    dl = cl;

    ch = bh;
    cl = bl;

    bh = ah;
    bl = al;

    ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);
    al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);
  }

  sum64(this.h, 0, ah, al);
  sum64(this.h, 2, bh, bl);
  sum64(this.h, 4, ch, cl);
  sum64(this.h, 6, dh, dl);
  sum64(this.h, 8, eh, el);
  sum64(this.h, 10, fh, fl);
  sum64(this.h, 12, gh, gl);
  sum64(this.h, 14, hh, hl);
};

SHA512.prototype._digest = function digest(enc) {
  if (enc === 'hex')
    return utils.toHex32(this.h, 'big');
  else
    return utils.split32(this.h, 'big');
};

function ch64_hi(xh, xl, yh, yl, zh) {
  var r = (xh & yh) ^ ((~xh) & zh);
  if (r < 0)
    r += 0x100000000;
  return r;
}

function ch64_lo(xh, xl, yh, yl, zh, zl) {
  var r = (xl & yl) ^ ((~xl) & zl);
  if (r < 0)
    r += 0x100000000;
  return r;
}

function maj64_hi(xh, xl, yh, yl, zh) {
  var r = (xh & yh) ^ (xh & zh) ^ (yh & zh);
  if (r < 0)
    r += 0x100000000;
  return r;
}

function maj64_lo(xh, xl, yh, yl, zh, zl) {
  var r = (xl & yl) ^ (xl & zl) ^ (yl & zl);
  if (r < 0)
    r += 0x100000000;
  return r;
}

function s0_512_hi(xh, xl) {
  var c0_hi = rotr64_hi(xh, xl, 28);
  var c1_hi = rotr64_hi(xl, xh, 2);  // 34
  var c2_hi = rotr64_hi(xl, xh, 7);  // 39

  var r = c0_hi ^ c1_hi ^ c2_hi;
  if (r < 0)
    r += 0x100000000;
  return r;
}

function s0_512_lo(xh, xl) {
  var c0_lo = rotr64_lo(xh, xl, 28);
  var c1_lo = rotr64_lo(xl, xh, 2);  // 34
  var c2_lo = rotr64_lo(xl, xh, 7);  // 39

  var r = c0_lo ^ c1_lo ^ c2_lo;
  if (r < 0)
    r += 0x100000000;
  return r;
}

function s1_512_hi(xh, xl) {
  var c0_hi = rotr64_hi(xh, xl, 14);
  var c1_hi = rotr64_hi(xh, xl, 18);
  var c2_hi = rotr64_hi(xl, xh, 9);  // 41

  var r = c0_hi ^ c1_hi ^ c2_hi;
  if (r < 0)
    r += 0x100000000;
  return r;
}

function s1_512_lo(xh, xl) {
  var c0_lo = rotr64_lo(xh, xl, 14);
  var c1_lo = rotr64_lo(xh, xl, 18);
  var c2_lo = rotr64_lo(xl, xh, 9);  // 41

  var r = c0_lo ^ c1_lo ^ c2_lo;
  if (r < 0)
    r += 0x100000000;
  return r;
}

function g0_512_hi(xh, xl) {
  var c0_hi = rotr64_hi(xh, xl, 1);
  var c1_hi = rotr64_hi(xh, xl, 8);
  var c2_hi = shr64_hi(xh, xl, 7);

  var r = c0_hi ^ c1_hi ^ c2_hi;
  if (r < 0)
    r += 0x100000000;
  return r;
}

function g0_512_lo(xh, xl) {
  var c0_lo = rotr64_lo(xh, xl, 1);
  var c1_lo = rotr64_lo(xh, xl, 8);
  var c2_lo = shr64_lo(xh, xl, 7);

  var r = c0_lo ^ c1_lo ^ c2_lo;
  if (r < 0)
    r += 0x100000000;
  return r;
}

function g1_512_hi(xh, xl) {
  var c0_hi = rotr64_hi(xh, xl, 19);
  var c1_hi = rotr64_hi(xl, xh, 29);  // 61
  var c2_hi = shr64_hi(xh, xl, 6);

  var r = c0_hi ^ c1_hi ^ c2_hi;
  if (r < 0)
    r += 0x100000000;
  return r;
}

function g1_512_lo(xh, xl) {
  var c0_lo = rotr64_lo(xh, xl, 19);
  var c1_lo = rotr64_lo(xl, xh, 29);  // 61
  var c2_lo = shr64_lo(xh, xl, 6);

  var r = c0_lo ^ c1_lo ^ c2_lo;
  if (r < 0)
    r += 0x100000000;
  return r;
}


/***/ }),
/* 192 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1);
var Reporter = __webpack_require__(69).Reporter;
var Buffer = __webpack_require__(8).Buffer;

function DecoderBuffer(base, options) {
  Reporter.call(this, options);
  if (!Buffer.isBuffer(base)) {
    this.error('Input not Buffer');
    return;
  }

  this.base = base;
  this.offset = 0;
  this.length = base.length;
}
inherits(DecoderBuffer, Reporter);
exports.DecoderBuffer = DecoderBuffer;

DecoderBuffer.prototype.save = function save() {
  return { offset: this.offset, reporter: Reporter.prototype.save.call(this) };
};

DecoderBuffer.prototype.restore = function restore(save) {
  // Return skipped data
  var res = new DecoderBuffer(this.base);
  res.offset = save.offset;
  res.length = this.offset;

  this.offset = save.offset;
  Reporter.prototype.restore.call(this, save.reporter);

  return res;
};

DecoderBuffer.prototype.isEmpty = function isEmpty() {
  return this.offset === this.length;
};

DecoderBuffer.prototype.readUInt8 = function readUInt8(fail) {
  if (this.offset + 1 <= this.length)
    return this.base.readUInt8(this.offset++, true);
  else
    return this.error(fail || 'DecoderBuffer overrun');
}

DecoderBuffer.prototype.skip = function skip(bytes, fail) {
  if (!(this.offset + bytes <= this.length))
    return this.error(fail || 'DecoderBuffer overrun');

  var res = new DecoderBuffer(this.base);

  // Share reporter state
  res._reporterState = this._reporterState;

  res.offset = this.offset;
  res.length = this.offset + bytes;
  this.offset += bytes;
  return res;
}

DecoderBuffer.prototype.raw = function raw(save) {
  return this.base.slice(save ? save.offset : this.offset, this.length);
}

function EncoderBuffer(value, reporter) {
  if (Array.isArray(value)) {
    this.length = 0;
    this.value = value.map(function(item) {
      if (!(item instanceof EncoderBuffer))
        item = new EncoderBuffer(item, reporter);
      this.length += item.length;
      return item;
    }, this);
  } else if (typeof value === 'number') {
    if (!(0 <= value && value <= 0xff))
      return reporter.error('non-byte EncoderBuffer value');
    this.value = value;
    this.length = 1;
  } else if (typeof value === 'string') {
    this.value = value;
    this.length = Buffer.byteLength(value);
  } else if (Buffer.isBuffer(value)) {
    this.value = value;
    this.length = value.length;
  } else {
    return reporter.error('Unsupported type: ' + typeof value);
  }
}
exports.EncoderBuffer = EncoderBuffer;

EncoderBuffer.prototype.join = function join(out, offset) {
  if (!out)
    out = new Buffer(this.length);
  if (!offset)
    offset = 0;

  if (this.length === 0)
    return out;

  if (Array.isArray(this.value)) {
    this.value.forEach(function(item) {
      item.join(out, offset);
      offset += item.length;
    });
  } else {
    if (typeof this.value === 'number')
      out[offset] = this.value;
    else if (typeof this.value === 'string')
      out.write(this.value, offset);
    else if (Buffer.isBuffer(this.value))
      this.value.copy(out, offset);
    offset += this.length;
  }

  return out;
};


/***/ }),
/* 193 */
/***/ (function(module, exports, __webpack_require__) {

var constants = exports;

// Helper
constants._reverse = function reverse(map) {
  var res = {};

  Object.keys(map).forEach(function(key) {
    // Convert key to integer if it is stringified
    if ((key | 0) == key)
      key = key | 0;

    var value = map[key];
    res[value] = key;
  });

  return res;
};

constants.der = __webpack_require__(488);


/***/ }),
/* 194 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1);

var asn1 = __webpack_require__(68);
var base = asn1.base;
var bignum = asn1.bignum;

// Import DER constants
var der = asn1.constants.der;

function DERDecoder(entity) {
  this.enc = 'der';
  this.name = entity.name;
  this.entity = entity;

  // Construct base tree
  this.tree = new DERNode();
  this.tree._init(entity.body);
};
module.exports = DERDecoder;

DERDecoder.prototype.decode = function decode(data, options) {
  if (!(data instanceof base.DecoderBuffer))
    data = new base.DecoderBuffer(data, options);

  return this.tree._decode(data, options);
};

// Tree methods

function DERNode(parent) {
  base.Node.call(this, 'der', parent);
}
inherits(DERNode, base.Node);

DERNode.prototype._peekTag = function peekTag(buffer, tag, any) {
  if (buffer.isEmpty())
    return false;

  var state = buffer.save();
  var decodedTag = derDecodeTag(buffer, 'Failed to peek tag: "' + tag + '"');
  if (buffer.isError(decodedTag))
    return decodedTag;

  buffer.restore(state);

  return decodedTag.tag === tag || decodedTag.tagStr === tag ||
    (decodedTag.tagStr + 'of') === tag || any;
};

DERNode.prototype._decodeTag = function decodeTag(buffer, tag, any) {
  var decodedTag = derDecodeTag(buffer,
                                'Failed to decode tag of "' + tag + '"');
  if (buffer.isError(decodedTag))
    return decodedTag;

  var len = derDecodeLen(buffer,
                         decodedTag.primitive,
                         'Failed to get length of "' + tag + '"');

  // Failure
  if (buffer.isError(len))
    return len;

  if (!any &&
      decodedTag.tag !== tag &&
      decodedTag.tagStr !== tag &&
      decodedTag.tagStr + 'of' !== tag) {
    return buffer.error('Failed to match tag: "' + tag + '"');
  }

  if (decodedTag.primitive || len !== null)
    return buffer.skip(len, 'Failed to match body of: "' + tag + '"');

  // Indefinite length... find END tag
  var state = buffer.save();
  var res = this._skipUntilEnd(
      buffer,
      'Failed to skip indefinite length body: "' + this.tag + '"');
  if (buffer.isError(res))
    return res;

  len = buffer.offset - state.offset;
  buffer.restore(state);
  return buffer.skip(len, 'Failed to match body of: "' + tag + '"');
};

DERNode.prototype._skipUntilEnd = function skipUntilEnd(buffer, fail) {
  while (true) {
    var tag = derDecodeTag(buffer, fail);
    if (buffer.isError(tag))
      return tag;
    var len = derDecodeLen(buffer, tag.primitive, fail);
    if (buffer.isError(len))
      return len;

    var res;
    if (tag.primitive || len !== null)
      res = buffer.skip(len)
    else
      res = this._skipUntilEnd(buffer, fail);

    // Failure
    if (buffer.isError(res))
      return res;

    if (tag.tagStr === 'end')
      break;
  }
};

DERNode.prototype._decodeList = function decodeList(buffer, tag, decoder,
                                                    options) {
  var result = [];
  while (!buffer.isEmpty()) {
    var possibleEnd = this._peekTag(buffer, 'end');
    if (buffer.isError(possibleEnd))
      return possibleEnd;

    var res = decoder.decode(buffer, 'der', options);
    if (buffer.isError(res) && possibleEnd)
      break;
    result.push(res);
  }
  return result;
};

DERNode.prototype._decodeStr = function decodeStr(buffer, tag) {
  if (tag === 'bitstr') {
    var unused = buffer.readUInt8();
    if (buffer.isError(unused))
      return unused;
    return { unused: unused, data: buffer.raw() };
  } else if (tag === 'bmpstr') {
    var raw = buffer.raw();
    if (raw.length % 2 === 1)
      return buffer.error('Decoding of string type: bmpstr length mismatch');

    var str = '';
    for (var i = 0; i < raw.length / 2; i++) {
      str += String.fromCharCode(raw.readUInt16BE(i * 2));
    }
    return str;
  } else if (tag === 'numstr') {
    var numstr = buffer.raw().toString('ascii');
    if (!this._isNumstr(numstr)) {
      return buffer.error('Decoding of string type: ' +
                          'numstr unsupported characters');
    }
    return numstr;
  } else if (tag === 'octstr') {
    return buffer.raw();
  } else if (tag === 'objDesc') {
    return buffer.raw();
  } else if (tag === 'printstr') {
    var printstr = buffer.raw().toString('ascii');
    if (!this._isPrintstr(printstr)) {
      return buffer.error('Decoding of string type: ' +
                          'printstr unsupported characters');
    }
    return printstr;
  } else if (/str$/.test(tag)) {
    return buffer.raw().toString();
  } else {
    return buffer.error('Decoding of string type: ' + tag + ' unsupported');
  }
};

DERNode.prototype._decodeObjid = function decodeObjid(buffer, values, relative) {
  var result;
  var identifiers = [];
  var ident = 0;
  while (!buffer.isEmpty()) {
    var subident = buffer.readUInt8();
    ident <<= 7;
    ident |= subident & 0x7f;
    if ((subident & 0x80) === 0) {
      identifiers.push(ident);
      ident = 0;
    }
  }
  if (subident & 0x80)
    identifiers.push(ident);

  var first = (identifiers[0] / 40) | 0;
  var second = identifiers[0] % 40;

  if (relative)
    result = identifiers;
  else
    result = [first, second].concat(identifiers.slice(1));

  if (values) {
    var tmp = values[result.join(' ')];
    if (tmp === undefined)
      tmp = values[result.join('.')];
    if (tmp !== undefined)
      result = tmp;
  }

  return result;
};

DERNode.prototype._decodeTime = function decodeTime(buffer, tag) {
  var str = buffer.raw().toString();
  if (tag === 'gentime') {
    var year = str.slice(0, 4) | 0;
    var mon = str.slice(4, 6) | 0;
    var day = str.slice(6, 8) | 0;
    var hour = str.slice(8, 10) | 0;
    var min = str.slice(10, 12) | 0;
    var sec = str.slice(12, 14) | 0;
  } else if (tag === 'utctime') {
    var year = str.slice(0, 2) | 0;
    var mon = str.slice(2, 4) | 0;
    var day = str.slice(4, 6) | 0;
    var hour = str.slice(6, 8) | 0;
    var min = str.slice(8, 10) | 0;
    var sec = str.slice(10, 12) | 0;
    if (year < 70)
      year = 2000 + year;
    else
      year = 1900 + year;
  } else {
    return buffer.error('Decoding ' + tag + ' time is not supported yet');
  }

  return Date.UTC(year, mon - 1, day, hour, min, sec, 0);
};

DERNode.prototype._decodeNull = function decodeNull(buffer) {
  return null;
};

DERNode.prototype._decodeBool = function decodeBool(buffer) {
  var res = buffer.readUInt8();
  if (buffer.isError(res))
    return res;
  else
    return res !== 0;
};

DERNode.prototype._decodeInt = function decodeInt(buffer, values) {
  // Bigint, return as it is (assume big endian)
  var raw = buffer.raw();
  var res = new bignum(raw);

  if (values)
    res = values[res.toString(10)] || res;

  return res;
};

DERNode.prototype._use = function use(entity, obj) {
  if (typeof entity === 'function')
    entity = entity(obj);
  return entity._getDecoder('der').tree;
};

// Utility methods

function derDecodeTag(buf, fail) {
  var tag = buf.readUInt8(fail);
  if (buf.isError(tag))
    return tag;

  var cls = der.tagClass[tag >> 6];
  var primitive = (tag & 0x20) === 0;

  // Multi-octet tag - load
  if ((tag & 0x1f) === 0x1f) {
    var oct = tag;
    tag = 0;
    while ((oct & 0x80) === 0x80) {
      oct = buf.readUInt8(fail);
      if (buf.isError(oct))
        return oct;

      tag <<= 7;
      tag |= oct & 0x7f;
    }
  } else {
    tag &= 0x1f;
  }
  var tagStr = der.tag[tag];

  return {
    cls: cls,
    primitive: primitive,
    tag: tag,
    tagStr: tagStr
  };
}

function derDecodeLen(buf, primitive, fail) {
  var len = buf.readUInt8(fail);
  if (buf.isError(len))
    return len;

  // Indefinite form
  if (!primitive && len === 0x80)
    return null;

  // Definite form
  if ((len & 0x80) === 0) {
    // Short form
    return len;
  }

  // Long form
  var num = len & 0x7f;
  if (num > 4)
    return buf.error('length octect is too long');

  len = 0;
  for (var i = 0; i < num; i++) {
    len <<= 8;
    var j = buf.readUInt8(fail);
    if (buf.isError(j))
      return j;
    len |= j;
  }

  return len;
}


/***/ }),
/* 195 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1);
var Buffer = __webpack_require__(8).Buffer;

var asn1 = __webpack_require__(68);
var base = asn1.base;

// Import DER constants
var der = asn1.constants.der;

function DEREncoder(entity) {
  this.enc = 'der';
  this.name = entity.name;
  this.entity = entity;

  // Construct base tree
  this.tree = new DERNode();
  this.tree._init(entity.body);
};
module.exports = DEREncoder;

DEREncoder.prototype.encode = function encode(data, reporter) {
  return this.tree._encode(data, reporter).join();
};

// Tree methods

function DERNode(parent) {
  base.Node.call(this, 'der', parent);
}
inherits(DERNode, base.Node);

DERNode.prototype._encodeComposite = function encodeComposite(tag,
                                                              primitive,
                                                              cls,
                                                              content) {
  var encodedTag = encodeTag(tag, primitive, cls, this.reporter);

  // Short form
  if (content.length < 0x80) {
    var header = new Buffer(2);
    header[0] = encodedTag;
    header[1] = content.length;
    return this._createEncoderBuffer([ header, content ]);
  }

  // Long form
  // Count octets required to store length
  var lenOctets = 1;
  for (var i = content.length; i >= 0x100; i >>= 8)
    lenOctets++;

  var header = new Buffer(1 + 1 + lenOctets);
  header[0] = encodedTag;
  header[1] = 0x80 | lenOctets;

  for (var i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8)
    header[i] = j & 0xff;

  return this._createEncoderBuffer([ header, content ]);
};

DERNode.prototype._encodeStr = function encodeStr(str, tag) {
  if (tag === 'bitstr') {
    return this._createEncoderBuffer([ str.unused | 0, str.data ]);
  } else if (tag === 'bmpstr') {
    var buf = new Buffer(str.length * 2);
    for (var i = 0; i < str.length; i++) {
      buf.writeUInt16BE(str.charCodeAt(i), i * 2);
    }
    return this._createEncoderBuffer(buf);
  } else if (tag === 'numstr') {
    if (!this._isNumstr(str)) {
      return this.reporter.error('Encoding of string type: numstr supports ' +
                                 'only digits and space');
    }
    return this._createEncoderBuffer(str);
  } else if (tag === 'printstr') {
    if (!this._isPrintstr(str)) {
      return this.reporter.error('Encoding of string type: printstr supports ' +
                                 'only latin upper and lower case letters, ' +
                                 'digits, space, apostrophe, left and rigth ' +
                                 'parenthesis, plus sign, comma, hyphen, ' +
                                 'dot, slash, colon, equal sign, ' +
                                 'question mark');
    }
    return this._createEncoderBuffer(str);
  } else if (/str$/.test(tag)) {
    return this._createEncoderBuffer(str);
  } else if (tag === 'objDesc') {
    return this._createEncoderBuffer(str);
  } else {
    return this.reporter.error('Encoding of string type: ' + tag +
                               ' unsupported');
  }
};

DERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) {
  if (typeof id === 'string') {
    if (!values)
      return this.reporter.error('string objid given, but no values map found');
    if (!values.hasOwnProperty(id))
      return this.reporter.error('objid not found in values map');
    id = values[id].split(/[\s\.]+/g);
    for (var i = 0; i < id.length; i++)
      id[i] |= 0;
  } else if (Array.isArray(id)) {
    id = id.slice();
    for (var i = 0; i < id.length; i++)
      id[i] |= 0;
  }

  if (!Array.isArray(id)) {
    return this.reporter.error('objid() should be either array or string, ' +
                               'got: ' + JSON.stringify(id));
  }

  if (!relative) {
    if (id[1] >= 40)
      return this.reporter.error('Second objid identifier OOB');
    id.splice(0, 2, id[0] * 40 + id[1]);
  }

  // Count number of octets
  var size = 0;
  for (var i = 0; i < id.length; i++) {
    var ident = id[i];
    for (size++; ident >= 0x80; ident >>= 7)
      size++;
  }

  var objid = new Buffer(size);
  var offset = objid.length - 1;
  for (var i = id.length - 1; i >= 0; i--) {
    var ident = id[i];
    objid[offset--] = ident & 0x7f;
    while ((ident >>= 7) > 0)
      objid[offset--] = 0x80 | (ident & 0x7f);
  }

  return this._createEncoderBuffer(objid);
};

function two(num) {
  if (num < 10)
    return '0' + num;
  else
    return num;
}

DERNode.prototype._encodeTime = function encodeTime(time, tag) {
  var str;
  var date = new Date(time);

  if (tag === 'gentime') {
    str = [
      two(date.getFullYear()),
      two(date.getUTCMonth() + 1),
      two(date.getUTCDate()),
      two(date.getUTCHours()),
      two(date.getUTCMinutes()),
      two(date.getUTCSeconds()),
      'Z'
    ].join('');
  } else if (tag === 'utctime') {
    str = [
      two(date.getFullYear() % 100),
      two(date.getUTCMonth() + 1),
      two(date.getUTCDate()),
      two(date.getUTCHours()),
      two(date.getUTCMinutes()),
      two(date.getUTCSeconds()),
      'Z'
    ].join('');
  } else {
    this.reporter.error('Encoding ' + tag + ' time is not supported yet');
  }

  return this._encodeStr(str, 'octstr');
};

DERNode.prototype._encodeNull = function encodeNull() {
  return this._createEncoderBuffer('');
};

DERNode.prototype._encodeInt = function encodeInt(num, values) {
  if (typeof num === 'string') {
    if (!values)
      return this.reporter.error('String int or enum given, but no values map');
    if (!values.hasOwnProperty(num)) {
      return this.reporter.error('Values map doesn\'t contain: ' +
                                 JSON.stringify(num));
    }
    num = values[num];
  }

  // Bignum, assume big endian
  if (typeof num !== 'number' && !Buffer.isBuffer(num)) {
    var numArray = num.toArray();
    if (!num.sign && numArray[0] & 0x80) {
      numArray.unshift(0);
    }
    num = new Buffer(numArray);
  }

  if (Buffer.isBuffer(num)) {
    var size = num.length;
    if (num.length === 0)
      size++;

    var out = new Buffer(size);
    num.copy(out);
    if (num.length === 0)
      out[0] = 0
    return this._createEncoderBuffer(out);
  }

  if (num < 0x80)
    return this._createEncoderBuffer(num);

  if (num < 0x100)
    return this._createEncoderBuffer([0, num]);

  var size = 1;
  for (var i = num; i >= 0x100; i >>= 8)
    size++;

  var out = new Array(size);
  for (var i = out.length - 1; i >= 0; i--) {
    out[i] = num & 0xff;
    num >>= 8;
  }
  if(out[0] & 0x80) {
    out.unshift(0);
  }

  return this._createEncoderBuffer(new Buffer(out));
};

DERNode.prototype._encodeBool = function encodeBool(value) {
  return this._createEncoderBuffer(value ? 0xff : 0);
};

DERNode.prototype._use = function use(entity, obj) {
  if (typeof entity === 'function')
    entity = entity(obj);
  return entity._getEncoder('der').tree;
};

DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) {
  var state = this._baseState;
  var i;
  if (state['default'] === null)
    return false;

  var data = dataBuffer.join();
  if (state.defaultBuffer === undefined)
    state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join();

  if (data.length !== state.defaultBuffer.length)
    return false;

  for (i=0; i < data.length; i++)
    if (data[i] !== state.defaultBuffer[i])
      return false;

  return true;
};

// Utility methods

function encodeTag(tag, primitive, cls, reporter) {
  var res;

  if (tag === 'seqof')
    tag = 'seq';
  else if (tag === 'setof')
    tag = 'set';

  if (der.tagByName.hasOwnProperty(tag))
    res = der.tagByName[tag];
  else if (typeof tag === 'number' && (tag | 0) === tag)
    res = tag;
  else
    return reporter.error('Unknown tag: ' + tag);

  if (res >= 0x1f)
    return reporter.error('Multi-octet tag encoding unsupported');

  if (!primitive)
    res |= 0x20;

  res |= (der.tagClassByName[cls || 'universal'] << 6);

  return res;
}


/***/ }),
/* 196 */
/***/ (function(module, exports) {

module.exports = {"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}

/***/ }),
/* 197 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(64);
module.exports = function (seed, len) {
  var t = new Buffer('');
  var  i = 0, c;
  while (t.length < len) {
    c = i2ops(i++);
    t = Buffer.concat([t, createHash('sha1').update(seed).update(c).digest()]);
  }
  return t.slice(0, len);
};

function i2ops(c) {
  var out = new Buffer(4);
  out.writeUInt32BE(c,0);
  return out;
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 198 */
/***/ (function(module, exports) {

module.exports = function xor(a, b) {
  var len = a.length;
  var i = -1;
  while (++i < len) {
    a[i] ^= b[i];
  }
  return a
};

/***/ }),
/* 199 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var bn = __webpack_require__(12);
function withPublic(paddedMsg, key) {
  return new Buffer(paddedMsg
    .toRed(bn.mont(key.modulus))
    .redPow(new bn(key.publicExponent))
    .fromRed()
    .toArray());
}

module.exports = withPublic;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 200 */
/***/ (function(module, exports) {

;(function (global) {
    var lastId = -1;

    // Visibility.js allow you to know, that your web page is in the background
    // tab and thus not visible to the user. This library is wrap under
    // Page Visibility API. It fix problems with different vendor prefixes and
    // add high-level useful functions.
    var self = {

        // Call callback only when page become to visible for user or
        // call it now if page is visible now or Page Visibility API
        // doesn’t supported.
        //
        // Return false if API isn’t supported, true if page is already visible
        // or listener ID (you can use it in `unbind` method) if page isn’t
        // visible now.
        //
        //   Visibility.onVisible(function () {
        //       startIntroAnimation();
        //   });
        onVisible: function (callback) {
            var support = self.isSupported();
            if ( !support || !self.hidden() ) {
                callback();
                return support;
            }

            var listener = self.change(function (e, state) {
                if ( !self.hidden() ) {
                    self.unbind(listener);
                    callback();
                }
            });
            return listener;
        },

        // Call callback when visibility will be changed. First argument for
        // callback will be original event object, second will be visibility
        // state name.
        //
        // Return listener ID to unbind listener by `unbind` method.
        //
        // If Page Visibility API doesn’t supported method will be return false
        // and callback never will be called.
        //
        //   Visibility.change(function(e, state) {
        //       Statistics.visibilityChange(state);
        //   });
        //
        // It is just proxy to `visibilitychange` event, but use vendor prefix.
        change: function (callback) {
            if ( !self.isSupported() ) {
                return false;
            }
            lastId += 1;
            var number = lastId;
            self._callbacks[number] = callback;
            self._listen();
            return number;
        },

        // Remove `change` listener by it ID.
        //
        //   var id = Visibility.change(function(e, state) {
        //       firstChangeCallback();
        //       Visibility.unbind(id);
        //   });
        unbind: function (id) {
            delete self._callbacks[id];
        },

        // Call `callback` in any state, expect “prerender”. If current state
        // is “prerender” it will wait until state will be changed.
        // If Page Visibility API doesn’t supported, it will call `callback`
        // immediately.
        //
        // Return false if API isn’t supported, true if page is already after
        // prerendering or listener ID (you can use it in `unbind` method)
        // if page is prerended now.
        //
        //   Visibility.afterPrerendering(function () {
        //       Statistics.countVisitor();
        //   });
        afterPrerendering: function (callback) {
            var support   = self.isSupported();
            var prerender = 'prerender';

            if ( !support || prerender != self.state() ) {
                callback();
                return support;
            }

            var listener = self.change(function (e, state) {
                if ( prerender != state ) {
                    self.unbind(listener);
                    callback();
                }
            });
            return listener;
        },

        // Return true if page now isn’t visible to user.
        //
        //   if ( !Visibility.hidden() ) {
        //       VideoPlayer.play();
        //   }
        //
        // It is just proxy to `document.hidden`, but use vendor prefix.
        hidden: function () {
            return !!(self._doc.hidden || self._doc.webkitHidden);
        },

        // Return visibility state: 'visible', 'hidden' or 'prerender'.
        //
        //   if ( 'prerender' == Visibility.state() ) {
        //       Statistics.pageIsPrerendering();
        //   }
        //
        // Don’t use `Visibility.state()` to detect, is page visible, because
        // visibility states can extend in next API versions.
        // Use more simpler and general `Visibility.hidden()` for this cases.
        //
        // It is just proxy to `document.visibilityState`, but use
        // vendor prefix.
        state: function () {
            return self._doc.visibilityState       ||
                   self._doc.webkitVisibilityState ||
                   'visible';
        },

        // Return true if browser support Page Visibility API.
        //
        //   if ( Visibility.isSupported() ) {
        //       Statistics.startTrackingVisibility();
        //       Visibility.change(function(e, state)) {
        //           Statistics.trackVisibility(state);
        //       });
        //   }
        isSupported: function () {
            return !!(self._doc.visibilityState ||
                      self._doc.webkitVisibilityState);
        },

        // Link to document object to change it in tests.
        _doc: document || {},

        // Callbacks from `change` method, that wait visibility changes.
        _callbacks: { },

        // Listener for `visibilitychange` event.
        _change: function(event) {
            var state = self.state();

            for ( var i in self._callbacks ) {
                self._callbacks[i].call(self._doc, event, state);
            }
        },

        // Set listener for `visibilitychange` event.
        _listen: function () {
            if ( self._init ) {
                return;
            }

            var event = 'visibilitychange';
            if ( self._doc.webkitVisibilityState ) {
                event = 'webkit' + event;
            }

            var listener = function () {
                self._change.apply(self, arguments);
            };
            if ( self._doc.addEventListener ) {
                self._doc.addEventListener(event, listener);
            } else {
                self._doc.attachEvent(event, listener);
            }
            self._init = true;
        }

    };

    if ( typeof(module) != 'undefined' && module.exports ) {
        module.exports = self;
    } else {
        global.Visibility = self;
    }

})(this);


/***/ }),
/* 201 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(202);
__webpack_require__(404);

var Instascan = {
  Scanner: __webpack_require__(413),
  Camera: __webpack_require__(509),
  Zxing: __webpack_require__(162)
};

module.exports = Instascan;


/***/ }),
/* 202 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {

__webpack_require__(203);

__webpack_require__(400);

__webpack_require__(401);

// if (global._babelPolyfill) {
//   throw new Error("only one instance of babel-polyfill is allowed");
// }
global._babelPolyfill = true;

var DEFINE_PROPERTY = "defineProperty";
function define(O, key, value) {
  O[key] || Object[DEFINE_PROPERTY](O, key, {
    writable: true,
    configurable: true,
    value: value
  });
}

define(String.prototype, "padLeft", "".padStart);
define(String.prototype, "padRight", "".padEnd);

"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) {
  [][key] && define(Array, key, Function.call.bind([][key]));
});
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)))

/***/ }),
/* 203 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(204);
__webpack_require__(206);
__webpack_require__(207);
__webpack_require__(208);
__webpack_require__(209);
__webpack_require__(210);
__webpack_require__(211);
__webpack_require__(212);
__webpack_require__(213);
__webpack_require__(214);
__webpack_require__(215);
__webpack_require__(216);
__webpack_require__(217);
__webpack_require__(218);
__webpack_require__(219);
__webpack_require__(220);
__webpack_require__(222);
__webpack_require__(223);
__webpack_require__(224);
__webpack_require__(225);
__webpack_require__(226);
__webpack_require__(227);
__webpack_require__(228);
__webpack_require__(229);
__webpack_require__(230);
__webpack_require__(231);
__webpack_require__(232);
__webpack_require__(233);
__webpack_require__(234);
__webpack_require__(235);
__webpack_require__(236);
__webpack_require__(237);
__webpack_require__(238);
__webpack_require__(239);
__webpack_require__(240);
__webpack_require__(241);
__webpack_require__(242);
__webpack_require__(243);
__webpack_require__(244);
__webpack_require__(245);
__webpack_require__(246);
__webpack_require__(247);
__webpack_require__(248);
__webpack_require__(249);
__webpack_require__(250);
__webpack_require__(251);
__webpack_require__(252);
__webpack_require__(253);
__webpack_require__(254);
__webpack_require__(255);
__webpack_require__(256);
__webpack_require__(257);
__webpack_require__(258);
__webpack_require__(259);
__webpack_require__(260);
__webpack_require__(261);
__webpack_require__(262);
__webpack_require__(263);
__webpack_require__(264);
__webpack_require__(265);
__webpack_require__(266);
__webpack_require__(267);
__webpack_require__(268);
__webpack_require__(269);
__webpack_require__(270);
__webpack_require__(271);
__webpack_require__(272);
__webpack_require__(273);
__webpack_require__(274);
__webpack_require__(275);
__webpack_require__(276);
__webpack_require__(277);
__webpack_require__(278);
__webpack_require__(279);
__webpack_require__(280);
__webpack_require__(281);
__webpack_require__(282);
__webpack_require__(284);
__webpack_require__(285);
__webpack_require__(287);
__webpack_require__(288);
__webpack_require__(289);
__webpack_require__(290);
__webpack_require__(291);
__webpack_require__(292);
__webpack_require__(293);
__webpack_require__(295);
__webpack_require__(296);
__webpack_require__(297);
__webpack_require__(298);
__webpack_require__(299);
__webpack_require__(300);
__webpack_require__(301);
__webpack_require__(302);
__webpack_require__(303);
__webpack_require__(304);
__webpack_require__(305);
__webpack_require__(306);
__webpack_require__(307);
__webpack_require__(111);
__webpack_require__(308);
__webpack_require__(309);
__webpack_require__(146);
__webpack_require__(310);
__webpack_require__(311);
__webpack_require__(312);
__webpack_require__(313);
__webpack_require__(314);
__webpack_require__(149);
__webpack_require__(151);
__webpack_require__(152);
__webpack_require__(315);
__webpack_require__(316);
__webpack_require__(317);
__webpack_require__(318);
__webpack_require__(319);
__webpack_require__(320);
__webpack_require__(321);
__webpack_require__(322);
__webpack_require__(323);
__webpack_require__(324);
__webpack_require__(325);
__webpack_require__(326);
__webpack_require__(327);
__webpack_require__(328);
__webpack_require__(329);
__webpack_require__(330);
__webpack_require__(331);
__webpack_require__(332);
__webpack_require__(333);
__webpack_require__(334);
__webpack_require__(335);
__webpack_require__(336);
__webpack_require__(337);
__webpack_require__(338);
__webpack_require__(339);
__webpack_require__(340);
__webpack_require__(341);
__webpack_require__(342);
__webpack_require__(343);
__webpack_require__(344);
__webpack_require__(345);
__webpack_require__(346);
__webpack_require__(347);
__webpack_require__(348);
__webpack_require__(349);
__webpack_require__(350);
__webpack_require__(351);
__webpack_require__(352);
__webpack_require__(353);
__webpack_require__(354);
__webpack_require__(355);
__webpack_require__(356);
__webpack_require__(357);
__webpack_require__(358);
__webpack_require__(359);
__webpack_require__(360);
__webpack_require__(361);
__webpack_require__(362);
__webpack_require__(363);
__webpack_require__(364);
__webpack_require__(365);
__webpack_require__(366);
__webpack_require__(367);
__webpack_require__(368);
__webpack_require__(369);
__webpack_require__(370);
__webpack_require__(371);
__webpack_require__(372);
__webpack_require__(373);
__webpack_require__(374);
__webpack_require__(375);
__webpack_require__(376);
__webpack_require__(377);
__webpack_require__(378);
__webpack_require__(379);
__webpack_require__(380);
__webpack_require__(381);
__webpack_require__(382);
__webpack_require__(383);
__webpack_require__(384);
__webpack_require__(385);
__webpack_require__(386);
__webpack_require__(387);
__webpack_require__(388);
__webpack_require__(389);
__webpack_require__(390);
__webpack_require__(391);
__webpack_require__(392);
__webpack_require__(393);
__webpack_require__(394);
__webpack_require__(395);
__webpack_require__(396);
__webpack_require__(397);
__webpack_require__(398);
__webpack_require__(399);
module.exports = __webpack_require__(26);


/***/ }),
/* 204 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// ECMAScript 6 symbols shim
var global = __webpack_require__(3);
var has = __webpack_require__(20);
var DESCRIPTORS = __webpack_require__(9);
var $export = __webpack_require__(0);
var redefine = __webpack_require__(18);
var META = __webpack_require__(39).KEY;
var $fails = __webpack_require__(4);
var shared = __webpack_require__(70);
var setToStringTag = __webpack_require__(54);
var uid = __webpack_require__(44);
var wks = __webpack_require__(7);
var wksExt = __webpack_require__(129);
var wksDefine = __webpack_require__(91);
var enumKeys = __webpack_require__(205);
var isArray = __webpack_require__(73);
var anObject = __webpack_require__(2);
var isObject = __webpack_require__(5);
var toIObject = __webpack_require__(21);
var toPrimitive = __webpack_require__(31);
var createDesc = __webpack_require__(43);
var _create = __webpack_require__(47);
var gOPNExt = __webpack_require__(132);
var $GOPD = __webpack_require__(22);
var $DP = __webpack_require__(10);
var $keys = __webpack_require__(45);
var gOPD = $GOPD.f;
var dP = $DP.f;
var gOPN = gOPNExt.f;
var $Symbol = global.Symbol;
var $JSON = global.JSON;
var _stringify = $JSON && $JSON.stringify;
var PROTOTYPE = 'prototype';
var HIDDEN = wks('_hidden');
var TO_PRIMITIVE = wks('toPrimitive');
var isEnum = {}.propertyIsEnumerable;
var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function';
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;

// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function () {
  return _create(dP({}, 'a', {
    get: function () { return dP(this, 'a', { value: 7 }).a; }
  })).a != 7;
}) ? function (it, key, D) {
  var protoDesc = gOPD(ObjectProto, key);
  if (protoDesc) delete ObjectProto[key];
  dP(it, key, D);
  if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
} : dP;

var wrap = function (tag) {
  var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  sym._k = tag;
  return sym;
};

var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  return typeof it == 'symbol';
} : function (it) {
  return it instanceof $Symbol;
};

var $defineProperty = function defineProperty(it, key, D) {
  if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  anObject(it);
  key = toPrimitive(key, true);
  anObject(D);
  if (has(AllSymbols, key)) {
    if (!D.enumerable) {
      if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
      it[HIDDEN][key] = true;
    } else {
      if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
      D = _create(D, { enumerable: createDesc(0, false) });
    } return setSymbolDesc(it, key, D);
  } return dP(it, key, D);
};
var $defineProperties = function defineProperties(it, P) {
  anObject(it);
  var keys = enumKeys(P = toIObject(P));
  var i = 0;
  var l = keys.length;
  var key;
  while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  return it;
};
var $create = function create(it, P) {
  return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  var E = isEnum.call(this, key = toPrimitive(key, true));
  if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  it = toIObject(it);
  key = toPrimitive(key, true);
  if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  var D = gOPD(it, key);
  if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  var names = gOPN(toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  } return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  var IS_OP = it === ObjectProto;
  var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  } return result;
};

// 19.4.1.1 Symbol([description])
if (!USE_NATIVE) {
  $Symbol = function Symbol() {
    if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
    var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
    var $set = function (value) {
      if (this === ObjectProto) $set.call(OPSymbols, value);
      if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
      setSymbolDesc(this, tag, createDesc(1, value));
    };
    if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
    return wrap(tag);
  };
  redefine($Symbol[PROTOTYPE], 'toString', function toString() {
    return this._k;
  });

  $GOPD.f = $getOwnPropertyDescriptor;
  $DP.f = $defineProperty;
  __webpack_require__(48).f = gOPNExt.f = $getOwnPropertyNames;
  __webpack_require__(61).f = $propertyIsEnumerable;
  __webpack_require__(72).f = $getOwnPropertySymbols;

  if (DESCRIPTORS && !__webpack_require__(40)) {
    redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  }

  wksExt.f = function (name) {
    return wrap(wks(name));
  };
}

$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });

for (var es6Symbols = (
  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);

for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);

$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  // 19.4.2.1 Symbol.for(key)
  'for': function (key) {
    return has(SymbolRegistry, key += '')
      ? SymbolRegistry[key]
      : SymbolRegistry[key] = $Symbol(key);
  },
  // 19.4.2.5 Symbol.keyFor(sym)
  keyFor: function keyFor(sym) {
    if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
    for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  },
  useSetter: function () { setter = true; },
  useSimple: function () { setter = false; }
});

$export($export.S + $export.F * !USE_NATIVE, 'Object', {
  // 19.1.2.2 Object.create(O [, Properties])
  create: $create,
  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  defineProperty: $defineProperty,
  // 19.1.2.3 Object.defineProperties(O, Properties)
  defineProperties: $defineProperties,
  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  // 19.1.2.7 Object.getOwnPropertyNames(O)
  getOwnPropertyNames: $getOwnPropertyNames,
  // 19.1.2.8 Object.getOwnPropertySymbols(O)
  getOwnPropertySymbols: $getOwnPropertySymbols
});

// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  var S = $Symbol();
  // MS Edge converts symbol values to JSON as {}
  // WebKit converts symbol values to JSON as null
  // V8 throws on boxed symbols
  return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
})), 'JSON', {
  stringify: function stringify(it) {
    var args = [it];
    var i = 1;
    var replacer, $replacer;
    while (arguments.length > i) args.push(arguments[i++]);
    $replacer = replacer = args[1];
    if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
    if (!isArray(replacer)) replacer = function (key, value) {
      if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
      if (!isSymbol(value)) return value;
    };
    args[1] = replacer;
    return _stringify.apply($JSON, args);
  }
});

// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(17)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);


/***/ }),
/* 205 */
/***/ (function(module, exports, __webpack_require__) {

// all enumerable object keys, includes symbols
var getKeys = __webpack_require__(45);
var gOPS = __webpack_require__(72);
var pIE = __webpack_require__(61);
module.exports = function (it) {
  var result = getKeys(it);
  var getSymbols = gOPS.f;
  if (getSymbols) {
    var symbols = getSymbols(it);
    var isEnum = pIE.f;
    var i = 0;
    var key;
    while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  } return result;
};


/***/ }),
/* 206 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
$export($export.S, 'Object', { create: __webpack_require__(47) });


/***/ }),
/* 207 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !__webpack_require__(9), 'Object', { defineProperty: __webpack_require__(10).f });


/***/ }),
/* 208 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
$export($export.S + $export.F * !__webpack_require__(9), 'Object', { defineProperties: __webpack_require__(131) });


/***/ }),
/* 209 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var toIObject = __webpack_require__(21);
var $getOwnPropertyDescriptor = __webpack_require__(22).f;

__webpack_require__(34)('getOwnPropertyDescriptor', function () {
  return function getOwnPropertyDescriptor(it, key) {
    return $getOwnPropertyDescriptor(toIObject(it), key);
  };
});


/***/ }),
/* 210 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.9 Object.getPrototypeOf(O)
var toObject = __webpack_require__(13);
var $getPrototypeOf = __webpack_require__(23);

__webpack_require__(34)('getPrototypeOf', function () {
  return function getPrototypeOf(it) {
    return $getPrototypeOf(toObject(it));
  };
});


/***/ }),
/* 211 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__(13);
var $keys = __webpack_require__(45);

__webpack_require__(34)('keys', function () {
  return function keys(it) {
    return $keys(toObject(it));
  };
});


/***/ }),
/* 212 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.7 Object.getOwnPropertyNames(O)
__webpack_require__(34)('getOwnPropertyNames', function () {
  return __webpack_require__(132).f;
});


/***/ }),
/* 213 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.5 Object.freeze(O)
var isObject = __webpack_require__(5);
var meta = __webpack_require__(39).onFreeze;

__webpack_require__(34)('freeze', function ($freeze) {
  return function freeze(it) {
    return $freeze && isObject(it) ? $freeze(meta(it)) : it;
  };
});


/***/ }),
/* 214 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.17 Object.seal(O)
var isObject = __webpack_require__(5);
var meta = __webpack_require__(39).onFreeze;

__webpack_require__(34)('seal', function ($seal) {
  return function seal(it) {
    return $seal && isObject(it) ? $seal(meta(it)) : it;
  };
});


/***/ }),
/* 215 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.15 Object.preventExtensions(O)
var isObject = __webpack_require__(5);
var meta = __webpack_require__(39).onFreeze;

__webpack_require__(34)('preventExtensions', function ($preventExtensions) {
  return function preventExtensions(it) {
    return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;
  };
});


/***/ }),
/* 216 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.12 Object.isFrozen(O)
var isObject = __webpack_require__(5);

__webpack_require__(34)('isFrozen', function ($isFrozen) {
  return function isFrozen(it) {
    return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
  };
});


/***/ }),
/* 217 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.13 Object.isSealed(O)
var isObject = __webpack_require__(5);

__webpack_require__(34)('isSealed', function ($isSealed) {
  return function isSealed(it) {
    return isObject(it) ? $isSealed ? $isSealed(it) : false : true;
  };
});


/***/ }),
/* 218 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.11 Object.isExtensible(O)
var isObject = __webpack_require__(5);

__webpack_require__(34)('isExtensible', function ($isExtensible) {
  return function isExtensible(it) {
    return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
  };
});


/***/ }),
/* 219 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(0);

$export($export.S + $export.F, 'Object', { assign: __webpack_require__(133) });


/***/ }),
/* 220 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.10 Object.is(value1, value2)
var $export = __webpack_require__(0);
$export($export.S, 'Object', { is: __webpack_require__(221) });


/***/ }),
/* 221 */
/***/ (function(module, exports) {

// 7.2.9 SameValue(x, y)
module.exports = Object.is || function is(x, y) {
  // eslint-disable-next-line no-self-compare
  return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};


/***/ }),
/* 222 */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.19 Object.setPrototypeOf(O, proto)
var $export = __webpack_require__(0);
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(95).set });


/***/ }),
/* 223 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 19.1.3.6 Object.prototype.toString()
var classof = __webpack_require__(62);
var test = {};
test[__webpack_require__(7)('toStringTag')] = 'z';
if (test + '' != '[object z]') {
  __webpack_require__(18)(Object.prototype, 'toString', function toString() {
    return '[object ' + classof(this) + ']';
  }, true);
}


/***/ }),
/* 224 */
/***/ (function(module, exports, __webpack_require__) {

// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
var $export = __webpack_require__(0);

$export($export.P, 'Function', { bind: __webpack_require__(134) });


/***/ }),
/* 225 */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(10).f;
var FProto = Function.prototype;
var nameRE = /^\s*function ([^ (]*)/;
var NAME = 'name';

// 19.2.4.2 name
NAME in FProto || __webpack_require__(9) && dP(FProto, NAME, {
  configurable: true,
  get: function () {
    try {
      return ('' + this).match(nameRE)[1];
    } catch (e) {
      return '';
    }
  }
});


/***/ }),
/* 226 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var isObject = __webpack_require__(5);
var getPrototypeOf = __webpack_require__(23);
var HAS_INSTANCE = __webpack_require__(7)('hasInstance');
var FunctionProto = Function.prototype;
// 19.2.3.6 Function.prototype[@@hasInstance](V)
if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(10).f(FunctionProto, HAS_INSTANCE, { value: function (O) {
  if (typeof this != 'function' || !isObject(O)) return false;
  if (!isObject(this.prototype)) return O instanceof this;
  // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
  while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
  return false;
} });


/***/ }),
/* 227 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var $parseInt = __webpack_require__(136);
// 18.2.5 parseInt(string, radix)
$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });


/***/ }),
/* 228 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var $parseFloat = __webpack_require__(137);
// 18.2.4 parseFloat(string)
$export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat });


/***/ }),
/* 229 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var global = __webpack_require__(3);
var has = __webpack_require__(20);
var cof = __webpack_require__(28);
var inheritIfRequired = __webpack_require__(97);
var toPrimitive = __webpack_require__(31);
var fails = __webpack_require__(4);
var gOPN = __webpack_require__(48).f;
var gOPD = __webpack_require__(22).f;
var dP = __webpack_require__(10).f;
var $trim = __webpack_require__(55).trim;
var NUMBER = 'Number';
var $Number = global[NUMBER];
var Base = $Number;
var proto = $Number.prototype;
// Opera ~12 has broken Object#toString
var BROKEN_COF = cof(__webpack_require__(47)(proto)) == NUMBER;
var TRIM = 'trim' in String.prototype;

// 7.1.3 ToNumber(argument)
var toNumber = function (argument) {
  var it = toPrimitive(argument, false);
  if (typeof it == 'string' && it.length > 2) {
    it = TRIM ? it.trim() : $trim(it, 3);
    var first = it.charCodeAt(0);
    var third, radix, maxCode;
    if (first === 43 || first === 45) {
      third = it.charCodeAt(2);
      if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
    } else if (first === 48) {
      switch (it.charCodeAt(1)) {
        case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
        case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
        default: return +it;
      }
      for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
        code = digits.charCodeAt(i);
        // parseInt parses a string to a first unavailable symbol
        // but ToNumber should return NaN if a string contains unavailable symbols
        if (code < 48 || code > maxCode) return NaN;
      } return parseInt(digits, radix);
    }
  } return +it;
};

if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
  $Number = function Number(value) {
    var it = arguments.length < 1 ? 0 : value;
    var that = this;
    return that instanceof $Number
      // check on 1..constructor(foo) case
      && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
        ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
  };
  for (var keys = __webpack_require__(9) ? gOPN(Base) : (
    // ES3:
    'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
    // ES6 (in case, if modules with ES6 Number statics required before):
    'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
    'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
  ).split(','), j = 0, key; keys.length > j; j++) {
    if (has(Base, key = keys[j]) && !has($Number, key)) {
      dP($Number, key, gOPD(Base, key));
    }
  }
  $Number.prototype = proto;
  proto.constructor = $Number;
  __webpack_require__(18)(global, NUMBER, $Number);
}


/***/ }),
/* 230 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var toInteger = __webpack_require__(33);
var aNumberValue = __webpack_require__(138);
var repeat = __webpack_require__(98);
var $toFixed = 1.0.toFixed;
var floor = Math.floor;
var data = [0, 0, 0, 0, 0, 0];
var ERROR = 'Number.toFixed: incorrect invocation!';
var ZERO = '0';

var multiply = function (n, c) {
  var i = -1;
  var c2 = c;
  while (++i < 6) {
    c2 += n * data[i];
    data[i] = c2 % 1e7;
    c2 = floor(c2 / 1e7);
  }
};
var divide = function (n) {
  var i = 6;
  var c = 0;
  while (--i >= 0) {
    c += data[i];
    data[i] = floor(c / n);
    c = (c % n) * 1e7;
  }
};
var numToString = function () {
  var i = 6;
  var s = '';
  while (--i >= 0) {
    if (s !== '' || i === 0 || data[i] !== 0) {
      var t = String(data[i]);
      s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t;
    }
  } return s;
};
var pow = function (x, n, acc) {
  return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
};
var log = function (x) {
  var n = 0;
  var x2 = x;
  while (x2 >= 4096) {
    n += 12;
    x2 /= 4096;
  }
  while (x2 >= 2) {
    n += 1;
    x2 /= 2;
  } return n;
};

$export($export.P + $export.F * (!!$toFixed && (
  0.00008.toFixed(3) !== '0.000' ||
  0.9.toFixed(0) !== '1' ||
  1.255.toFixed(2) !== '1.25' ||
  1000000000000000128.0.toFixed(0) !== '1000000000000000128'
) || !__webpack_require__(4)(function () {
  // V8 ~ Android 4.3-
  $toFixed.call({});
})), 'Number', {
  toFixed: function toFixed(fractionDigits) {
    var x = aNumberValue(this, ERROR);
    var f = toInteger(fractionDigits);
    var s = '';
    var m = ZERO;
    var e, z, j, k;
    if (f < 0 || f > 20) throw RangeError(ERROR);
    // eslint-disable-next-line no-self-compare
    if (x != x) return 'NaN';
    if (x <= -1e21 || x >= 1e21) return String(x);
    if (x < 0) {
      s = '-';
      x = -x;
    }
    if (x > 1e-21) {
      e = log(x * pow(2, 69, 1)) - 69;
      z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1);
      z *= 0x10000000000000;
      e = 52 - e;
      if (e > 0) {
        multiply(0, z);
        j = f;
        while (j >= 7) {
          multiply(1e7, 0);
          j -= 7;
        }
        multiply(pow(10, j, 1), 0);
        j = e - 1;
        while (j >= 23) {
          divide(1 << 23);
          j -= 23;
        }
        divide(1 << j);
        multiply(1, 1);
        divide(2);
        m = numToString();
      } else {
        multiply(0, z);
        multiply(1 << -e, 0);
        m = numToString() + repeat.call(ZERO, f);
      }
    }
    if (f > 0) {
      k = m.length;
      m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f));
    } else {
      m = s + m;
    } return m;
  }
});


/***/ }),
/* 231 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $fails = __webpack_require__(4);
var aNumberValue = __webpack_require__(138);
var $toPrecision = 1.0.toPrecision;

$export($export.P + $export.F * ($fails(function () {
  // IE7-
  return $toPrecision.call(1, undefined) !== '1';
}) || !$fails(function () {
  // V8 ~ Android 4.3-
  $toPrecision.call({});
})), 'Number', {
  toPrecision: function toPrecision(precision) {
    var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');
    return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision);
  }
});


/***/ }),
/* 232 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.1 Number.EPSILON
var $export = __webpack_require__(0);

$export($export.S, 'Number', { EPSILON: Math.pow(2, -52) });


/***/ }),
/* 233 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.2 Number.isFinite(number)
var $export = __webpack_require__(0);
var _isFinite = __webpack_require__(3).isFinite;

$export($export.S, 'Number', {
  isFinite: function isFinite(it) {
    return typeof it == 'number' && _isFinite(it);
  }
});


/***/ }),
/* 234 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.3 Number.isInteger(number)
var $export = __webpack_require__(0);

$export($export.S, 'Number', { isInteger: __webpack_require__(139) });


/***/ }),
/* 235 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.4 Number.isNaN(number)
var $export = __webpack_require__(0);

$export($export.S, 'Number', {
  isNaN: function isNaN(number) {
    // eslint-disable-next-line no-self-compare
    return number != number;
  }
});


/***/ }),
/* 236 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.5 Number.isSafeInteger(number)
var $export = __webpack_require__(0);
var isInteger = __webpack_require__(139);
var abs = Math.abs;

$export($export.S, 'Number', {
  isSafeInteger: function isSafeInteger(number) {
    return isInteger(number) && abs(number) <= 0x1fffffffffffff;
  }
});


/***/ }),
/* 237 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.6 Number.MAX_SAFE_INTEGER
var $export = __webpack_require__(0);

$export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });


/***/ }),
/* 238 */
/***/ (function(module, exports, __webpack_require__) {

// 20.1.2.10 Number.MIN_SAFE_INTEGER
var $export = __webpack_require__(0);

$export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });


/***/ }),
/* 239 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var $parseFloat = __webpack_require__(137);
// 20.1.2.12 Number.parseFloat(string)
$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat });


/***/ }),
/* 240 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var $parseInt = __webpack_require__(136);
// 20.1.2.13 Number.parseInt(string, radix)
$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt });


/***/ }),
/* 241 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.3 Math.acosh(x)
var $export = __webpack_require__(0);
var log1p = __webpack_require__(140);
var sqrt = Math.sqrt;
var $acosh = Math.acosh;

$export($export.S + $export.F * !($acosh
  // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
  && Math.floor($acosh(Number.MAX_VALUE)) == 710
  // Tor Browser bug: Math.acosh(Infinity) -> NaN
  && $acosh(Infinity) == Infinity
), 'Math', {
  acosh: function acosh(x) {
    return (x = +x) < 1 ? NaN : x > 94906265.62425156
      ? Math.log(x) + Math.LN2
      : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
  }
});


/***/ }),
/* 242 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.5 Math.asinh(x)
var $export = __webpack_require__(0);
var $asinh = Math.asinh;

function asinh(x) {
  return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
}

// Tor Browser bug: Math.asinh(0) -> -0
$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });


/***/ }),
/* 243 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.7 Math.atanh(x)
var $export = __webpack_require__(0);
var $atanh = Math.atanh;

// Tor Browser bug: Math.atanh(-0) -> 0
$export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
  atanh: function atanh(x) {
    return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
  }
});


/***/ }),
/* 244 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.9 Math.cbrt(x)
var $export = __webpack_require__(0);
var sign = __webpack_require__(99);

$export($export.S, 'Math', {
  cbrt: function cbrt(x) {
    return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
  }
});


/***/ }),
/* 245 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.11 Math.clz32(x)
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  clz32: function clz32(x) {
    return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
  }
});


/***/ }),
/* 246 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.12 Math.cosh(x)
var $export = __webpack_require__(0);
var exp = Math.exp;

$export($export.S, 'Math', {
  cosh: function cosh(x) {
    return (exp(x = +x) + exp(-x)) / 2;
  }
});


/***/ }),
/* 247 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.14 Math.expm1(x)
var $export = __webpack_require__(0);
var $expm1 = __webpack_require__(100);

$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 });


/***/ }),
/* 248 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.16 Math.fround(x)
var $export = __webpack_require__(0);

$export($export.S, 'Math', { fround: __webpack_require__(141) });


/***/ }),
/* 249 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
var $export = __webpack_require__(0);
var abs = Math.abs;

$export($export.S, 'Math', {
  hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
    var sum = 0;
    var i = 0;
    var aLen = arguments.length;
    var larg = 0;
    var arg, div;
    while (i < aLen) {
      arg = abs(arguments[i++]);
      if (larg < arg) {
        div = larg / arg;
        sum = sum * div * div + 1;
        larg = arg;
      } else if (arg > 0) {
        div = arg / larg;
        sum += div * div;
      } else sum += arg;
    }
    return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
  }
});


/***/ }),
/* 250 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.18 Math.imul(x, y)
var $export = __webpack_require__(0);
var $imul = Math.imul;

// some WebKit versions fails with big numbers, some has wrong arity
$export($export.S + $export.F * __webpack_require__(4)(function () {
  return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
}), 'Math', {
  imul: function imul(x, y) {
    var UINT16 = 0xffff;
    var xn = +x;
    var yn = +y;
    var xl = UINT16 & xn;
    var yl = UINT16 & yn;
    return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
  }
});


/***/ }),
/* 251 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.21 Math.log10(x)
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  log10: function log10(x) {
    return Math.log(x) * Math.LOG10E;
  }
});


/***/ }),
/* 252 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.20 Math.log1p(x)
var $export = __webpack_require__(0);

$export($export.S, 'Math', { log1p: __webpack_require__(140) });


/***/ }),
/* 253 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.22 Math.log2(x)
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  log2: function log2(x) {
    return Math.log(x) / Math.LN2;
  }
});


/***/ }),
/* 254 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.28 Math.sign(x)
var $export = __webpack_require__(0);

$export($export.S, 'Math', { sign: __webpack_require__(99) });


/***/ }),
/* 255 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.30 Math.sinh(x)
var $export = __webpack_require__(0);
var expm1 = __webpack_require__(100);
var exp = Math.exp;

// V8 near Chromium 38 has a problem with very small numbers
$export($export.S + $export.F * __webpack_require__(4)(function () {
  return !Math.sinh(-2e-17) != -2e-17;
}), 'Math', {
  sinh: function sinh(x) {
    return Math.abs(x = +x) < 1
      ? (expm1(x) - expm1(-x)) / 2
      : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);
  }
});


/***/ }),
/* 256 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.33 Math.tanh(x)
var $export = __webpack_require__(0);
var expm1 = __webpack_require__(100);
var exp = Math.exp;

$export($export.S, 'Math', {
  tanh: function tanh(x) {
    var a = expm1(x = +x);
    var b = expm1(-x);
    return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
  }
});


/***/ }),
/* 257 */
/***/ (function(module, exports, __webpack_require__) {

// 20.2.2.34 Math.trunc(x)
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  trunc: function trunc(it) {
    return (it > 0 ? Math.floor : Math.ceil)(it);
  }
});


/***/ }),
/* 258 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var toAbsoluteIndex = __webpack_require__(46);
var fromCharCode = String.fromCharCode;
var $fromCodePoint = String.fromCodePoint;

// length should be 1, old FF problem
$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
  // 21.1.2.2 String.fromCodePoint(...codePoints)
  fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars
    var res = [];
    var aLen = arguments.length;
    var i = 0;
    var code;
    while (aLen > i) {
      code = +arguments[i++];
      if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point');
      res.push(code < 0x10000
        ? fromCharCode(code)
        : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
      );
    } return res.join('');
  }
});


/***/ }),
/* 259 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var toIObject = __webpack_require__(21);
var toLength = __webpack_require__(11);

$export($export.S, 'String', {
  // 21.1.2.4 String.raw(callSite, ...substitutions)
  raw: function raw(callSite) {
    var tpl = toIObject(callSite.raw);
    var len = toLength(tpl.length);
    var aLen = arguments.length;
    var res = [];
    var i = 0;
    while (len > i) {
      res.push(String(tpl[i++]));
      if (i < aLen) res.push(String(arguments[i]));
    } return res.join('');
  }
});


/***/ }),
/* 260 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 21.1.3.25 String.prototype.trim()
__webpack_require__(55)('trim', function ($trim) {
  return function trim() {
    return $trim(this, 3);
  };
});


/***/ }),
/* 261 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $at = __webpack_require__(101)(true);

// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(102)(String, 'String', function (iterated) {
  this._t = String(iterated); // target
  this._i = 0;                // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var index = this._i;
  var point;
  if (index >= O.length) return { value: undefined, done: true };
  point = $at(O, index);
  this._i += point.length;
  return { value: point, done: false };
});


/***/ }),
/* 262 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $at = __webpack_require__(101)(false);
$export($export.P, 'String', {
  // 21.1.3.3 String.prototype.codePointAt(pos)
  codePointAt: function codePointAt(pos) {
    return $at(this, pos);
  }
});


/***/ }),
/* 263 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])

var $export = __webpack_require__(0);
var toLength = __webpack_require__(11);
var context = __webpack_require__(104);
var ENDS_WITH = 'endsWith';
var $endsWith = ''[ENDS_WITH];

$export($export.P + $export.F * __webpack_require__(105)(ENDS_WITH), 'String', {
  endsWith: function endsWith(searchString /* , endPosition = @length */) {
    var that = context(this, searchString, ENDS_WITH);
    var endPosition = arguments.length > 1 ? arguments[1] : undefined;
    var len = toLength(that.length);
    var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len);
    var search = String(searchString);
    return $endsWith
      ? $endsWith.call(that, search, end)
      : that.slice(end - search.length, end) === search;
  }
});


/***/ }),
/* 264 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// 21.1.3.7 String.prototype.includes(searchString, position = 0)

var $export = __webpack_require__(0);
var context = __webpack_require__(104);
var INCLUDES = 'includes';

$export($export.P + $export.F * __webpack_require__(105)(INCLUDES), 'String', {
  includes: function includes(searchString /* , position = 0 */) {
    return !!~context(this, searchString, INCLUDES)
      .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
  }
});


/***/ }),
/* 265 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);

$export($export.P, 'String', {
  // 21.1.3.13 String.prototype.repeat(count)
  repeat: __webpack_require__(98)
});


/***/ }),
/* 266 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// 21.1.3.18 String.prototype.startsWith(searchString [, position ])

var $export = __webpack_require__(0);
var toLength = __webpack_require__(11);
var context = __webpack_require__(104);
var STARTS_WITH = 'startsWith';
var $startsWith = ''[STARTS_WITH];

$export($export.P + $export.F * __webpack_require__(105)(STARTS_WITH), 'String', {
  startsWith: function startsWith(searchString /* , position = 0 */) {
    var that = context(this, searchString, STARTS_WITH);
    var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
    var search = String(searchString);
    return $startsWith
      ? $startsWith.call(that, search, index)
      : that.slice(index, index + search.length) === search;
  }
});


/***/ }),
/* 267 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.2 String.prototype.anchor(name)
__webpack_require__(19)('anchor', function (createHTML) {
  return function anchor(name) {
    return createHTML(this, 'a', 'name', name);
  };
});


/***/ }),
/* 268 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.3 String.prototype.big()
__webpack_require__(19)('big', function (createHTML) {
  return function big() {
    return createHTML(this, 'big', '', '');
  };
});


/***/ }),
/* 269 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.4 String.prototype.blink()
__webpack_require__(19)('blink', function (createHTML) {
  return function blink() {
    return createHTML(this, 'blink', '', '');
  };
});


/***/ }),
/* 270 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.5 String.prototype.bold()
__webpack_require__(19)('bold', function (createHTML) {
  return function bold() {
    return createHTML(this, 'b', '', '');
  };
});


/***/ }),
/* 271 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.6 String.prototype.fixed()
__webpack_require__(19)('fixed', function (createHTML) {
  return function fixed() {
    return createHTML(this, 'tt', '', '');
  };
});


/***/ }),
/* 272 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.7 String.prototype.fontcolor(color)
__webpack_require__(19)('fontcolor', function (createHTML) {
  return function fontcolor(color) {
    return createHTML(this, 'font', 'color', color);
  };
});


/***/ }),
/* 273 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.8 String.prototype.fontsize(size)
__webpack_require__(19)('fontsize', function (createHTML) {
  return function fontsize(size) {
    return createHTML(this, 'font', 'size', size);
  };
});


/***/ }),
/* 274 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.9 String.prototype.italics()
__webpack_require__(19)('italics', function (createHTML) {
  return function italics() {
    return createHTML(this, 'i', '', '');
  };
});


/***/ }),
/* 275 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.10 String.prototype.link(url)
__webpack_require__(19)('link', function (createHTML) {
  return function link(url) {
    return createHTML(this, 'a', 'href', url);
  };
});


/***/ }),
/* 276 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.11 String.prototype.small()
__webpack_require__(19)('small', function (createHTML) {
  return function small() {
    return createHTML(this, 'small', '', '');
  };
});


/***/ }),
/* 277 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.12 String.prototype.strike()
__webpack_require__(19)('strike', function (createHTML) {
  return function strike() {
    return createHTML(this, 'strike', '', '');
  };
});


/***/ }),
/* 278 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.13 String.prototype.sub()
__webpack_require__(19)('sub', function (createHTML) {
  return function sub() {
    return createHTML(this, 'sub', '', '');
  };
});


/***/ }),
/* 279 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// B.2.3.14 String.prototype.sup()
__webpack_require__(19)('sup', function (createHTML) {
  return function sup() {
    return createHTML(this, 'sup', '', '');
  };
});


/***/ }),
/* 280 */
/***/ (function(module, exports, __webpack_require__) {

// 20.3.3.1 / 15.9.4.4 Date.now()
var $export = __webpack_require__(0);

$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });


/***/ }),
/* 281 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var toObject = __webpack_require__(13);
var toPrimitive = __webpack_require__(31);

$export($export.P + $export.F * __webpack_require__(4)(function () {
  return new Date(NaN).toJSON() !== null
    || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
}), 'Date', {
  // eslint-disable-next-line no-unused-vars
  toJSON: function toJSON(key) {
    var O = toObject(this);
    var pv = toPrimitive(O);
    return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();
  }
});


/***/ }),
/* 282 */
/***/ (function(module, exports, __webpack_require__) {

// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
var $export = __webpack_require__(0);
var toISOString = __webpack_require__(283);

// PhantomJS / old WebKit has a broken implementations
$export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', {
  toISOString: toISOString
});


/***/ }),
/* 283 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
var fails = __webpack_require__(4);
var getTime = Date.prototype.getTime;
var $toISOString = Date.prototype.toISOString;

var lz = function (num) {
  return num > 9 ? num : '0' + num;
};

// PhantomJS / old WebKit has a broken implementations
module.exports = (fails(function () {
  return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';
}) || !fails(function () {
  $toISOString.call(new Date(NaN));
})) ? function toISOString() {
  if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');
  var d = this;
  var y = d.getUTCFullYear();
  var m = d.getUTCMilliseconds();
  var s = y < 0 ? '-' : y > 9999 ? '+' : '';
  return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
    '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
    'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
    ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';
} : $toISOString;


/***/ }),
/* 284 */
/***/ (function(module, exports, __webpack_require__) {

var DateProto = Date.prototype;
var INVALID_DATE = 'Invalid Date';
var TO_STRING = 'toString';
var $toString = DateProto[TO_STRING];
var getTime = DateProto.getTime;
if (new Date(NaN) + '' != INVALID_DATE) {
  __webpack_require__(18)(DateProto, TO_STRING, function toString() {
    var value = getTime.call(this);
    // eslint-disable-next-line no-self-compare
    return value === value ? $toString.call(this) : INVALID_DATE;
  });
}


/***/ }),
/* 285 */
/***/ (function(module, exports, __webpack_require__) {

var TO_PRIMITIVE = __webpack_require__(7)('toPrimitive');
var proto = Date.prototype;

if (!(TO_PRIMITIVE in proto)) __webpack_require__(17)(proto, TO_PRIMITIVE, __webpack_require__(286));


/***/ }),
/* 286 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var anObject = __webpack_require__(2);
var toPrimitive = __webpack_require__(31);
var NUMBER = 'number';

module.exports = function (hint) {
  if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint');
  return toPrimitive(anObject(this), hint != NUMBER);
};


/***/ }),
/* 287 */
/***/ (function(module, exports, __webpack_require__) {

// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
var $export = __webpack_require__(0);

$export($export.S, 'Array', { isArray: __webpack_require__(73) });


/***/ }),
/* 288 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var ctx = __webpack_require__(27);
var $export = __webpack_require__(0);
var toObject = __webpack_require__(13);
var call = __webpack_require__(142);
var isArrayIter = __webpack_require__(106);
var toLength = __webpack_require__(11);
var createProperty = __webpack_require__(107);
var getIterFn = __webpack_require__(108);

$export($export.S + $export.F * !__webpack_require__(75)(function (iter) { Array.from(iter); }), 'Array', {
  // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
  from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
    var O = toObject(arrayLike);
    var C = typeof this == 'function' ? this : Array;
    var aLen = arguments.length;
    var mapfn = aLen > 1 ? arguments[1] : undefined;
    var mapping = mapfn !== undefined;
    var index = 0;
    var iterFn = getIterFn(O);
    var length, result, step, iterator;
    if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
    // if object isn't iterable or it's array with default iterator - use simple case
    if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
      for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
        createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
      }
    } else {
      length = toLength(O.length);
      for (result = new C(length); length > index; index++) {
        createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
      }
    }
    result.length = index;
    return result;
  }
});


/***/ }),
/* 289 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var createProperty = __webpack_require__(107);

// WebKit Array.of isn't generic
$export($export.S + $export.F * __webpack_require__(4)(function () {
  function F() { /* empty */ }
  return !(Array.of.call(F) instanceof F);
}), 'Array', {
  // 22.1.2.3 Array.of( ...items)
  of: function of(/* ...args */) {
    var index = 0;
    var aLen = arguments.length;
    var result = new (typeof this == 'function' ? this : Array)(aLen);
    while (aLen > index) createProperty(result, index, arguments[index++]);
    result.length = aLen;
    return result;
  }
});


/***/ }),
/* 290 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 22.1.3.13 Array.prototype.join(separator)
var $export = __webpack_require__(0);
var toIObject = __webpack_require__(21);
var arrayJoin = [].join;

// fallback for not array-like strings
$export($export.P + $export.F * (__webpack_require__(60) != Object || !__webpack_require__(29)(arrayJoin)), 'Array', {
  join: function join(separator) {
    return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);
  }
});


/***/ }),
/* 291 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var html = __webpack_require__(94);
var cof = __webpack_require__(28);
var toAbsoluteIndex = __webpack_require__(46);
var toLength = __webpack_require__(11);
var arraySlice = [].slice;

// fallback for not array-like ES3 strings and DOM objects
$export($export.P + $export.F * __webpack_require__(4)(function () {
  if (html) arraySlice.call(html);
}), 'Array', {
  slice: function slice(begin, end) {
    var len = toLength(this.length);
    var klass = cof(this);
    end = end === undefined ? len : end;
    if (klass == 'Array') return arraySlice.call(this, begin, end);
    var start = toAbsoluteIndex(begin, len);
    var upTo = toAbsoluteIndex(end, len);
    var size = toLength(upTo - start);
    var cloned = new Array(size);
    var i = 0;
    for (; i < size; i++) cloned[i] = klass == 'String'
      ? this.charAt(start + i)
      : this[start + i];
    return cloned;
  }
});


/***/ }),
/* 292 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var aFunction = __webpack_require__(14);
var toObject = __webpack_require__(13);
var fails = __webpack_require__(4);
var $sort = [].sort;
var test = [1, 2, 3];

$export($export.P + $export.F * (fails(function () {
  // IE8-
  test.sort(undefined);
}) || !fails(function () {
  // V8 bug
  test.sort(null);
  // Old WebKit
}) || !__webpack_require__(29)($sort)), 'Array', {
  // 22.1.3.25 Array.prototype.sort(comparefn)
  sort: function sort(comparefn) {
    return comparefn === undefined
      ? $sort.call(toObject(this))
      : $sort.call(toObject(this), aFunction(comparefn));
  }
});


/***/ }),
/* 293 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $forEach = __webpack_require__(35)(0);
var STRICT = __webpack_require__(29)([].forEach, true);

$export($export.P + $export.F * !STRICT, 'Array', {
  // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
  forEach: function forEach(callbackfn /* , thisArg */) {
    return $forEach(this, callbackfn, arguments[1]);
  }
});


/***/ }),
/* 294 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(5);
var isArray = __webpack_require__(73);
var SPECIES = __webpack_require__(7)('species');

module.exports = function (original) {
  var C;
  if (isArray(original)) {
    C = original.constructor;
    // cross-realm fallback
    if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
    if (isObject(C)) {
      C = C[SPECIES];
      if (C === null) C = undefined;
    }
  } return C === undefined ? Array : C;
};


/***/ }),
/* 295 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $map = __webpack_require__(35)(1);

$export($export.P + $export.F * !__webpack_require__(29)([].map, true), 'Array', {
  // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
  map: function map(callbackfn /* , thisArg */) {
    return $map(this, callbackfn, arguments[1]);
  }
});


/***/ }),
/* 296 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $filter = __webpack_require__(35)(2);

$export($export.P + $export.F * !__webpack_require__(29)([].filter, true), 'Array', {
  // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
  filter: function filter(callbackfn /* , thisArg */) {
    return $filter(this, callbackfn, arguments[1]);
  }
});


/***/ }),
/* 297 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $some = __webpack_require__(35)(3);

$export($export.P + $export.F * !__webpack_require__(29)([].some, true), 'Array', {
  // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
  some: function some(callbackfn /* , thisArg */) {
    return $some(this, callbackfn, arguments[1]);
  }
});


/***/ }),
/* 298 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $every = __webpack_require__(35)(4);

$export($export.P + $export.F * !__webpack_require__(29)([].every, true), 'Array', {
  // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
  every: function every(callbackfn /* , thisArg */) {
    return $every(this, callbackfn, arguments[1]);
  }
});


/***/ }),
/* 299 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $reduce = __webpack_require__(143);

$export($export.P + $export.F * !__webpack_require__(29)([].reduce, true), 'Array', {
  // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
  reduce: function reduce(callbackfn /* , initialValue */) {
    return $reduce(this, callbackfn, arguments.length, arguments[1], false);
  }
});


/***/ }),
/* 300 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $reduce = __webpack_require__(143);

$export($export.P + $export.F * !__webpack_require__(29)([].reduceRight, true), 'Array', {
  // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
  reduceRight: function reduceRight(callbackfn /* , initialValue */) {
    return $reduce(this, callbackfn, arguments.length, arguments[1], true);
  }
});


/***/ }),
/* 301 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $indexOf = __webpack_require__(71)(false);
var $native = [].indexOf;
var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;

$export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(29)($native)), 'Array', {
  // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
  indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
    return NEGATIVE_ZERO
      // convert -0 to +0
      ? $native.apply(this, arguments) || 0
      : $indexOf(this, searchElement, arguments[1]);
  }
});


/***/ }),
/* 302 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var toIObject = __webpack_require__(21);
var toInteger = __webpack_require__(33);
var toLength = __webpack_require__(11);
var $native = [].lastIndexOf;
var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0;

$export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(29)($native)), 'Array', {
  // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
  lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
    // convert -0 to +0
    if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0;
    var O = toIObject(this);
    var length = toLength(O.length);
    var index = length - 1;
    if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1]));
    if (index < 0) index = length + index;
    for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0;
    return -1;
  }
});


/***/ }),
/* 303 */
/***/ (function(module, exports, __webpack_require__) {

// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
var $export = __webpack_require__(0);

$export($export.P, 'Array', { copyWithin: __webpack_require__(144) });

__webpack_require__(41)('copyWithin');


/***/ }),
/* 304 */
/***/ (function(module, exports, __webpack_require__) {

// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
var $export = __webpack_require__(0);

$export($export.P, 'Array', { fill: __webpack_require__(110) });

__webpack_require__(41)('fill');


/***/ }),
/* 305 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
var $export = __webpack_require__(0);
var $find = __webpack_require__(35)(5);
var KEY = 'find';
var forced = true;
// Shouldn't skip holes
if (KEY in []) Array(1)[KEY](function () { forced = false; });
$export($export.P + $export.F * forced, 'Array', {
  find: function find(callbackfn /* , that = undefined */) {
    return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  }
});
__webpack_require__(41)(KEY);


/***/ }),
/* 306 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
var $export = __webpack_require__(0);
var $find = __webpack_require__(35)(6);
var KEY = 'findIndex';
var forced = true;
// Shouldn't skip holes
if (KEY in []) Array(1)[KEY](function () { forced = false; });
$export($export.P + $export.F * forced, 'Array', {
  findIndex: function findIndex(callbackfn /* , that = undefined */) {
    return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  }
});
__webpack_require__(41)(KEY);


/***/ }),
/* 307 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(49)('Array');


/***/ }),
/* 308 */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(3);
var inheritIfRequired = __webpack_require__(97);
var dP = __webpack_require__(10).f;
var gOPN = __webpack_require__(48).f;
var isRegExp = __webpack_require__(74);
var $flags = __webpack_require__(76);
var $RegExp = global.RegExp;
var Base = $RegExp;
var proto = $RegExp.prototype;
var re1 = /a/g;
var re2 = /a/g;
// "new" creates a new object, old webkit buggy here
var CORRECT_NEW = new $RegExp(re1) !== re1;

if (__webpack_require__(9) && (!CORRECT_NEW || __webpack_require__(4)(function () {
  re2[__webpack_require__(7)('match')] = false;
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
  return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
}))) {
  $RegExp = function RegExp(p, f) {
    var tiRE = this instanceof $RegExp;
    var piRE = isRegExp(p);
    var fiU = f === undefined;
    return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
      : inheritIfRequired(CORRECT_NEW
        ? new Base(piRE && !fiU ? p.source : p, f)
        : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
      , tiRE ? this : proto, $RegExp);
  };
  var proxy = function (key) {
    key in $RegExp || dP($RegExp, key, {
      configurable: true,
      get: function () { return Base[key]; },
      set: function (it) { Base[key] = it; }
    });
  };
  for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
  proto.constructor = $RegExp;
  $RegExp.prototype = proto;
  __webpack_require__(18)(global, 'RegExp', $RegExp);
}

__webpack_require__(49)('RegExp');


/***/ }),
/* 309 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

__webpack_require__(146);
var anObject = __webpack_require__(2);
var $flags = __webpack_require__(76);
var DESCRIPTORS = __webpack_require__(9);
var TO_STRING = 'toString';
var $toString = /./[TO_STRING];

var define = function (fn) {
  __webpack_require__(18)(RegExp.prototype, TO_STRING, fn, true);
};

// 21.2.5.14 RegExp.prototype.toString()
if (__webpack_require__(4)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
  define(function toString() {
    var R = anObject(this);
    return '/'.concat(R.source, '/',
      'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
  });
// FF44- RegExp#toString has a wrong name
} else if ($toString.name != TO_STRING) {
  define(function toString() {
    return $toString.call(this);
  });
}


/***/ }),
/* 310 */
/***/ (function(module, exports, __webpack_require__) {

// @@match logic
__webpack_require__(77)('match', 1, function (defined, MATCH, $match) {
  // 21.1.3.11 String.prototype.match(regexp)
  return [function match(regexp) {
    'use strict';
    var O = defined(this);
    var fn = regexp == undefined ? undefined : regexp[MATCH];
    return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
  }, $match];
});


/***/ }),
/* 311 */
/***/ (function(module, exports, __webpack_require__) {

// @@replace logic
__webpack_require__(77)('replace', 2, function (defined, REPLACE, $replace) {
  // 21.1.3.14 String.prototype.replace(searchValue, replaceValue)
  return [function replace(searchValue, replaceValue) {
    'use strict';
    var O = defined(this);
    var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
    return fn !== undefined
      ? fn.call(searchValue, O, replaceValue)
      : $replace.call(String(O), searchValue, replaceValue);
  }, $replace];
});


/***/ }),
/* 312 */
/***/ (function(module, exports, __webpack_require__) {

// @@search logic
__webpack_require__(77)('search', 1, function (defined, SEARCH, $search) {
  // 21.1.3.15 String.prototype.search(regexp)
  return [function search(regexp) {
    'use strict';
    var O = defined(this);
    var fn = regexp == undefined ? undefined : regexp[SEARCH];
    return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
  }, $search];
});


/***/ }),
/* 313 */
/***/ (function(module, exports, __webpack_require__) {

// @@split logic
__webpack_require__(77)('split', 2, function (defined, SPLIT, $split) {
  'use strict';
  var isRegExp = __webpack_require__(74);
  var _split = $split;
  var $push = [].push;
  var $SPLIT = 'split';
  var LENGTH = 'length';
  var LAST_INDEX = 'lastIndex';
  if (
    'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
    'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
    'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
    '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
    '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
    ''[$SPLIT](/.?/)[LENGTH]
  ) {
    var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group
    // based on es5-shim implementation, need to rework it
    $split = function (separator, limit) {
      var string = String(this);
      if (separator === undefined && limit === 0) return [];
      // If `separator` is not a regex, use native split
      if (!isRegExp(separator)) return _split.call(string, separator, limit);
      var output = [];
      var flags = (separator.ignoreCase ? 'i' : '') +
                  (separator.multiline ? 'm' : '') +
                  (separator.unicode ? 'u' : '') +
                  (separator.sticky ? 'y' : '');
      var lastLastIndex = 0;
      var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;
      // Make `global` and avoid `lastIndex` issues by working with a copy
      var separatorCopy = new RegExp(separator.source, flags + 'g');
      var separator2, match, lastIndex, lastLength, i;
      // Doesn't need flags gy, but they don't hurt
      if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
      while (match = separatorCopy.exec(string)) {
        // `separatorCopy.lastIndex` is not reliable cross-browser
        lastIndex = match.index + match[0][LENGTH];
        if (lastIndex > lastLastIndex) {
          output.push(string.slice(lastLastIndex, match.index));
          // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG
          // eslint-disable-next-line no-loop-func
          if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () {
            for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined;
          });
          if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
          lastLength = match[0][LENGTH];
          lastLastIndex = lastIndex;
          if (output[LENGTH] >= splitLimit) break;
        }
        if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
      }
      if (lastLastIndex === string[LENGTH]) {
        if (lastLength || !separatorCopy.test('')) output.push('');
      } else output.push(string.slice(lastLastIndex));
      return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
    };
  // Chakra, V8
  } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
    $split = function (separator, limit) {
      return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);
    };
  }
  // 21.1.3.17 String.prototype.split(separator, limit)
  return [function split(separator, limit) {
    var O = defined(this);
    var fn = separator == undefined ? undefined : separator[SPLIT];
    return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);
  }, $split];
});


/***/ }),
/* 314 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var LIBRARY = __webpack_require__(40);
var global = __webpack_require__(3);
var ctx = __webpack_require__(27);
var classof = __webpack_require__(62);
var $export = __webpack_require__(0);
var isObject = __webpack_require__(5);
var aFunction = __webpack_require__(14);
var anInstance = __webpack_require__(50);
var forOf = __webpack_require__(51);
var speciesConstructor = __webpack_require__(78);
var task = __webpack_require__(112).set;
var microtask = __webpack_require__(113)();
var newPromiseCapabilityModule = __webpack_require__(114);
var perform = __webpack_require__(147);
var userAgent = __webpack_require__(79);
var promiseResolve = __webpack_require__(148);
var PROMISE = 'Promise';
var TypeError = global.TypeError;
var process = global.process;
var versions = process && process.versions;
var v8 = versions && versions.v8 || '';
var $Promise = global[PROMISE];
var isNode = classof(process) == 'process';
var empty = function () { /* empty */ };
var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;

var USE_NATIVE = !!function () {
  try {
    // correct subclassing with @@species support
    var promise = $Promise.resolve(1);
    var FakePromise = (promise.constructor = {})[__webpack_require__(7)('species')] = function (exec) {
      exec(empty, empty);
    };
    // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
    return (isNode || typeof PromiseRejectionEvent == 'function')
      && promise.then(empty) instanceof FakePromise
      // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
      // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
      // we can't detect it synchronously, so just check versions
      && v8.indexOf('6.6') !== 0
      && userAgent.indexOf('Chrome/66') === -1;
  } catch (e) { /* empty */ }
}();

// helpers
var isThenable = function (it) {
  var then;
  return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var notify = function (promise, isReject) {
  if (promise._n) return;
  promise._n = true;
  var chain = promise._c;
  microtask(function () {
    var value = promise._v;
    var ok = promise._s == 1;
    var i = 0;
    var run = function (reaction) {
      var handler = ok ? reaction.ok : reaction.fail;
      var resolve = reaction.resolve;
      var reject = reaction.reject;
      var domain = reaction.domain;
      var result, then, exited;
      try {
        if (handler) {
          if (!ok) {
            if (promise._h == 2) onHandleUnhandled(promise);
            promise._h = 1;
          }
          if (handler === true) result = value;
          else {
            if (domain) domain.enter();
            result = handler(value); // may throw
            if (domain) {
              domain.exit();
              exited = true;
            }
          }
          if (result === reaction.promise) {
            reject(TypeError('Promise-chain cycle'));
          } else if (then = isThenable(result)) {
            then.call(result, resolve, reject);
          } else resolve(result);
        } else reject(value);
      } catch (e) {
        if (domain && !exited) domain.exit();
        reject(e);
      }
    };
    while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
    promise._c = [];
    promise._n = false;
    if (isReject && !promise._h) onUnhandled(promise);
  });
};
var onUnhandled = function (promise) {
  task.call(global, function () {
    var value = promise._v;
    var unhandled = isUnhandled(promise);
    var result, handler, console;
    if (unhandled) {
      result = perform(function () {
        if (isNode) {
          process.emit('unhandledRejection', value, promise);
        } else if (handler = global.onunhandledrejection) {
          handler({ promise: promise, reason: value });
        } else if ((console = global.console) && console.error) {
          console.error('Unhandled promise rejection', value);
        }
      });
      // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
      promise._h = isNode || isUnhandled(promise) ? 2 : 1;
    } promise._a = undefined;
    if (unhandled && result.e) throw result.v;
  });
};
var isUnhandled = function (promise) {
  return promise._h !== 1 && (promise._a || promise._c).length === 0;
};
var onHandleUnhandled = function (promise) {
  task.call(global, function () {
    var handler;
    if (isNode) {
      process.emit('rejectionHandled', promise);
    } else if (handler = global.onrejectionhandled) {
      handler({ promise: promise, reason: promise._v });
    }
  });
};
var $reject = function (value) {
  var promise = this;
  if (promise._d) return;
  promise._d = true;
  promise = promise._w || promise; // unwrap
  promise._v = value;
  promise._s = 2;
  if (!promise._a) promise._a = promise._c.slice();
  notify(promise, true);
};
var $resolve = function (value) {
  var promise = this;
  var then;
  if (promise._d) return;
  promise._d = true;
  promise = promise._w || promise; // unwrap
  try {
    if (promise === value) throw TypeError("Promise can't be resolved itself");
    if (then = isThenable(value)) {
      microtask(function () {
        var wrapper = { _w: promise, _d: false }; // wrap
        try {
          then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
        } catch (e) {
          $reject.call(wrapper, e);
        }
      });
    } else {
      promise._v = value;
      promise._s = 1;
      notify(promise, false);
    }
  } catch (e) {
    $reject.call({ _w: promise, _d: false }, e); // wrap
  }
};

// constructor polyfill
if (!USE_NATIVE) {
  // 25.4.3.1 Promise(executor)
  $Promise = function Promise(executor) {
    anInstance(this, $Promise, PROMISE, '_h');
    aFunction(executor);
    Internal.call(this);
    try {
      executor(ctx($resolve, this, 1), ctx($reject, this, 1));
    } catch (err) {
      $reject.call(this, err);
    }
  };
  // eslint-disable-next-line no-unused-vars
  Internal = function Promise(executor) {
    this._c = [];             // <- awaiting reactions
    this._a = undefined;      // <- checked in isUnhandled reactions
    this._s = 0;              // <- state
    this._d = false;          // <- done
    this._v = undefined;      // <- value
    this._h = 0;              // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
    this._n = false;          // <- notify
  };
  Internal.prototype = __webpack_require__(52)($Promise.prototype, {
    // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
    then: function then(onFulfilled, onRejected) {
      var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
      reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
      reaction.fail = typeof onRejected == 'function' && onRejected;
      reaction.domain = isNode ? process.domain : undefined;
      this._c.push(reaction);
      if (this._a) this._a.push(reaction);
      if (this._s) notify(this, false);
      return reaction.promise;
    },
    // 25.4.5.1 Promise.prototype.catch(onRejected)
    'catch': function (onRejected) {
      return this.then(undefined, onRejected);
    }
  });
  OwnPromiseCapability = function () {
    var promise = new Internal();
    this.promise = promise;
    this.resolve = ctx($resolve, promise, 1);
    this.reject = ctx($reject, promise, 1);
  };
  newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
    return C === $Promise || C === Wrapper
      ? new OwnPromiseCapability(C)
      : newGenericPromiseCapability(C);
  };
}

$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
__webpack_require__(54)($Promise, PROMISE);
__webpack_require__(49)(PROMISE);
Wrapper = __webpack_require__(26)[PROMISE];

// statics
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
  // 25.4.4.5 Promise.reject(r)
  reject: function reject(r) {
    var capability = newPromiseCapability(this);
    var $$reject = capability.reject;
    $$reject(r);
    return capability.promise;
  }
});
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
  // 25.4.4.6 Promise.resolve(x)
  resolve: function resolve(x) {
    return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
  }
});
$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(75)(function (iter) {
  $Promise.all(iter)['catch'](empty);
})), PROMISE, {
  // 25.4.4.1 Promise.all(iterable)
  all: function all(iterable) {
    var C = this;
    var capability = newPromiseCapability(C);
    var resolve = capability.resolve;
    var reject = capability.reject;
    var result = perform(function () {
      var values = [];
      var index = 0;
      var remaining = 1;
      forOf(iterable, false, function (promise) {
        var $index = index++;
        var alreadyCalled = false;
        values.push(undefined);
        remaining++;
        C.resolve(promise).then(function (value) {
          if (alreadyCalled) return;
          alreadyCalled = true;
          values[$index] = value;
          --remaining || resolve(values);
        }, reject);
      });
      --remaining || resolve(values);
    });
    if (result.e) reject(result.v);
    return capability.promise;
  },
  // 25.4.4.4 Promise.race(iterable)
  race: function race(iterable) {
    var C = this;
    var capability = newPromiseCapability(C);
    var reject = capability.reject;
    var result = perform(function () {
      forOf(iterable, false, function (promise) {
        C.resolve(promise).then(capability.resolve, reject);
      });
    });
    if (result.e) reject(result.v);
    return capability.promise;
  }
});


/***/ }),
/* 315 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var weak = __webpack_require__(153);
var validate = __webpack_require__(57);
var WEAK_SET = 'WeakSet';

// 23.4 WeakSet Objects
__webpack_require__(80)(WEAK_SET, function (get) {
  return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
  // 23.4.3.1 WeakSet.prototype.add(value)
  add: function add(value) {
    return weak.def(validate(this, WEAK_SET), value, true);
  }
}, weak, false, true);


/***/ }),
/* 316 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var $typed = __webpack_require__(81);
var buffer = __webpack_require__(115);
var anObject = __webpack_require__(2);
var toAbsoluteIndex = __webpack_require__(46);
var toLength = __webpack_require__(11);
var isObject = __webpack_require__(5);
var ArrayBuffer = __webpack_require__(3).ArrayBuffer;
var speciesConstructor = __webpack_require__(78);
var $ArrayBuffer = buffer.ArrayBuffer;
var $DataView = buffer.DataView;
var $isView = $typed.ABV && ArrayBuffer.isView;
var $slice = $ArrayBuffer.prototype.slice;
var VIEW = $typed.VIEW;
var ARRAY_BUFFER = 'ArrayBuffer';

$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer });

$export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, {
  // 24.1.3.1 ArrayBuffer.isView(arg)
  isView: function isView(it) {
    return $isView && $isView(it) || isObject(it) && VIEW in it;
  }
});

$export($export.P + $export.U + $export.F * __webpack_require__(4)(function () {
  return !new $ArrayBuffer(2).slice(1, undefined).byteLength;
}), ARRAY_BUFFER, {
  // 24.1.4.3 ArrayBuffer.prototype.slice(start, end)
  slice: function slice(start, end) {
    if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix
    var len = anObject(this).byteLength;
    var first = toAbsoluteIndex(start, len);
    var fin = toAbsoluteIndex(end === undefined ? len : end, len);
    var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first));
    var viewS = new $DataView(this);
    var viewT = new $DataView(result);
    var index = 0;
    while (first < fin) {
      viewT.setUint8(index++, viewS.getUint8(first++));
    } return result;
  }
});

__webpack_require__(49)(ARRAY_BUFFER);


/***/ }),
/* 317 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
$export($export.G + $export.W + $export.F * !__webpack_require__(81).ABV, {
  DataView: __webpack_require__(115).DataView
});


/***/ }),
/* 318 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Int8', 1, function (init) {
  return function Int8Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 319 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Uint8', 1, function (init) {
  return function Uint8Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 320 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Uint8', 1, function (init) {
  return function Uint8ClampedArray(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
}, true);


/***/ }),
/* 321 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Int16', 2, function (init) {
  return function Int16Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 322 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Uint16', 2, function (init) {
  return function Uint16Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 323 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Int32', 4, function (init) {
  return function Int32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 324 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Uint32', 4, function (init) {
  return function Uint32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 325 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Float32', 4, function (init) {
  return function Float32Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 326 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(37)('Float64', 8, function (init) {
  return function Float64Array(data, byteOffset, length) {
    return init(this, data, byteOffset, length);
  };
});


/***/ }),
/* 327 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
var $export = __webpack_require__(0);
var aFunction = __webpack_require__(14);
var anObject = __webpack_require__(2);
var rApply = (__webpack_require__(3).Reflect || {}).apply;
var fApply = Function.apply;
// MS Edge argumentsList argument is optional
$export($export.S + $export.F * !__webpack_require__(4)(function () {
  rApply(function () { /* empty */ });
}), 'Reflect', {
  apply: function apply(target, thisArgument, argumentsList) {
    var T = aFunction(target);
    var L = anObject(argumentsList);
    return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);
  }
});


/***/ }),
/* 328 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
var $export = __webpack_require__(0);
var create = __webpack_require__(47);
var aFunction = __webpack_require__(14);
var anObject = __webpack_require__(2);
var isObject = __webpack_require__(5);
var fails = __webpack_require__(4);
var bind = __webpack_require__(134);
var rConstruct = (__webpack_require__(3).Reflect || {}).construct;

// MS Edge supports only 2 arguments and argumentsList argument is optional
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
var NEW_TARGET_BUG = fails(function () {
  function F() { /* empty */ }
  return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
});
var ARGS_BUG = !fails(function () {
  rConstruct(function () { /* empty */ });
});

$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
  construct: function construct(Target, args /* , newTarget */) {
    aFunction(Target);
    anObject(args);
    var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
    if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
    if (Target == newTarget) {
      // w/o altered newTarget, optimization for 0-4 arguments
      switch (args.length) {
        case 0: return new Target();
        case 1: return new Target(args[0]);
        case 2: return new Target(args[0], args[1]);
        case 3: return new Target(args[0], args[1], args[2]);
        case 4: return new Target(args[0], args[1], args[2], args[3]);
      }
      // w/o altered newTarget, lot of arguments case
      var $args = [null];
      $args.push.apply($args, args);
      return new (bind.apply(Target, $args))();
    }
    // with altered newTarget, not support built-in constructors
    var proto = newTarget.prototype;
    var instance = create(isObject(proto) ? proto : Object.prototype);
    var result = Function.apply.call(Target, instance, args);
    return isObject(result) ? result : instance;
  }
});


/***/ }),
/* 329 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
var dP = __webpack_require__(10);
var $export = __webpack_require__(0);
var anObject = __webpack_require__(2);
var toPrimitive = __webpack_require__(31);

// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
$export($export.S + $export.F * __webpack_require__(4)(function () {
  // eslint-disable-next-line no-undef
  Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });
}), 'Reflect', {
  defineProperty: function defineProperty(target, propertyKey, attributes) {
    anObject(target);
    propertyKey = toPrimitive(propertyKey, true);
    anObject(attributes);
    try {
      dP.f(target, propertyKey, attributes);
      return true;
    } catch (e) {
      return false;
    }
  }
});


/***/ }),
/* 330 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.4 Reflect.deleteProperty(target, propertyKey)
var $export = __webpack_require__(0);
var gOPD = __webpack_require__(22).f;
var anObject = __webpack_require__(2);

$export($export.S, 'Reflect', {
  deleteProperty: function deleteProperty(target, propertyKey) {
    var desc = gOPD(anObject(target), propertyKey);
    return desc && !desc.configurable ? false : delete target[propertyKey];
  }
});


/***/ }),
/* 331 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 26.1.5 Reflect.enumerate(target)
var $export = __webpack_require__(0);
var anObject = __webpack_require__(2);
var Enumerate = function (iterated) {
  this._t = anObject(iterated); // target
  this._i = 0;                  // next index
  var keys = this._k = [];      // keys
  var key;
  for (key in iterated) keys.push(key);
};
__webpack_require__(103)(Enumerate, 'Object', function () {
  var that = this;
  var keys = that._k;
  var key;
  do {
    if (that._i >= keys.length) return { value: undefined, done: true };
  } while (!((key = keys[that._i++]) in that._t));
  return { value: key, done: false };
});

$export($export.S, 'Reflect', {
  enumerate: function enumerate(target) {
    return new Enumerate(target);
  }
});


/***/ }),
/* 332 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.6 Reflect.get(target, propertyKey [, receiver])
var gOPD = __webpack_require__(22);
var getPrototypeOf = __webpack_require__(23);
var has = __webpack_require__(20);
var $export = __webpack_require__(0);
var isObject = __webpack_require__(5);
var anObject = __webpack_require__(2);

function get(target, propertyKey /* , receiver */) {
  var receiver = arguments.length < 3 ? target : arguments[2];
  var desc, proto;
  if (anObject(target) === receiver) return target[propertyKey];
  if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
    ? desc.value
    : desc.get !== undefined
      ? desc.get.call(receiver)
      : undefined;
  if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
}

$export($export.S, 'Reflect', { get: get });


/***/ }),
/* 333 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
var gOPD = __webpack_require__(22);
var $export = __webpack_require__(0);
var anObject = __webpack_require__(2);

$export($export.S, 'Reflect', {
  getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
    return gOPD.f(anObject(target), propertyKey);
  }
});


/***/ }),
/* 334 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.8 Reflect.getPrototypeOf(target)
var $export = __webpack_require__(0);
var getProto = __webpack_require__(23);
var anObject = __webpack_require__(2);

$export($export.S, 'Reflect', {
  getPrototypeOf: function getPrototypeOf(target) {
    return getProto(anObject(target));
  }
});


/***/ }),
/* 335 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.9 Reflect.has(target, propertyKey)
var $export = __webpack_require__(0);

$export($export.S, 'Reflect', {
  has: function has(target, propertyKey) {
    return propertyKey in target;
  }
});


/***/ }),
/* 336 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.10 Reflect.isExtensible(target)
var $export = __webpack_require__(0);
var anObject = __webpack_require__(2);
var $isExtensible = Object.isExtensible;

$export($export.S, 'Reflect', {
  isExtensible: function isExtensible(target) {
    anObject(target);
    return $isExtensible ? $isExtensible(target) : true;
  }
});


/***/ }),
/* 337 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.11 Reflect.ownKeys(target)
var $export = __webpack_require__(0);

$export($export.S, 'Reflect', { ownKeys: __webpack_require__(155) });


/***/ }),
/* 338 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.12 Reflect.preventExtensions(target)
var $export = __webpack_require__(0);
var anObject = __webpack_require__(2);
var $preventExtensions = Object.preventExtensions;

$export($export.S, 'Reflect', {
  preventExtensions: function preventExtensions(target) {
    anObject(target);
    try {
      if ($preventExtensions) $preventExtensions(target);
      return true;
    } catch (e) {
      return false;
    }
  }
});


/***/ }),
/* 339 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
var dP = __webpack_require__(10);
var gOPD = __webpack_require__(22);
var getPrototypeOf = __webpack_require__(23);
var has = __webpack_require__(20);
var $export = __webpack_require__(0);
var createDesc = __webpack_require__(43);
var anObject = __webpack_require__(2);
var isObject = __webpack_require__(5);

function set(target, propertyKey, V /* , receiver */) {
  var receiver = arguments.length < 4 ? target : arguments[3];
  var ownDesc = gOPD.f(anObject(target), propertyKey);
  var existingDescriptor, proto;
  if (!ownDesc) {
    if (isObject(proto = getPrototypeOf(target))) {
      return set(proto, propertyKey, V, receiver);
    }
    ownDesc = createDesc(0);
  }
  if (has(ownDesc, 'value')) {
    if (ownDesc.writable === false || !isObject(receiver)) return false;
    if (existingDescriptor = gOPD.f(receiver, propertyKey)) {
      if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
      existingDescriptor.value = V;
      dP.f(receiver, propertyKey, existingDescriptor);
    } else dP.f(receiver, propertyKey, createDesc(0, V));
    return true;
  }
  return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
}

$export($export.S, 'Reflect', { set: set });


/***/ }),
/* 340 */
/***/ (function(module, exports, __webpack_require__) {

// 26.1.14 Reflect.setPrototypeOf(target, proto)
var $export = __webpack_require__(0);
var setProto = __webpack_require__(95);

if (setProto) $export($export.S, 'Reflect', {
  setPrototypeOf: function setPrototypeOf(target, proto) {
    setProto.check(target, proto);
    try {
      setProto.set(target, proto);
      return true;
    } catch (e) {
      return false;
    }
  }
});


/***/ }),
/* 341 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/tc39/Array.prototype.includes
var $export = __webpack_require__(0);
var $includes = __webpack_require__(71)(true);

$export($export.P, 'Array', {
  includes: function includes(el /* , fromIndex = 0 */) {
    return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  }
});

__webpack_require__(41)('includes');


/***/ }),
/* 342 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap
var $export = __webpack_require__(0);
var flattenIntoArray = __webpack_require__(156);
var toObject = __webpack_require__(13);
var toLength = __webpack_require__(11);
var aFunction = __webpack_require__(14);
var arraySpeciesCreate = __webpack_require__(109);

$export($export.P, 'Array', {
  flatMap: function flatMap(callbackfn /* , thisArg */) {
    var O = toObject(this);
    var sourceLen, A;
    aFunction(callbackfn);
    sourceLen = toLength(O.length);
    A = arraySpeciesCreate(O, 0);
    flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments[1]);
    return A;
  }
});

__webpack_require__(41)('flatMap');


/***/ }),
/* 343 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten
var $export = __webpack_require__(0);
var flattenIntoArray = __webpack_require__(156);
var toObject = __webpack_require__(13);
var toLength = __webpack_require__(11);
var toInteger = __webpack_require__(33);
var arraySpeciesCreate = __webpack_require__(109);

$export($export.P, 'Array', {
  flatten: function flatten(/* depthArg = 1 */) {
    var depthArg = arguments[0];
    var O = toObject(this);
    var sourceLen = toLength(O.length);
    var A = arraySpeciesCreate(O, 0);
    flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));
    return A;
  }
});

__webpack_require__(41)('flatten');


/***/ }),
/* 344 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/mathiasbynens/String.prototype.at
var $export = __webpack_require__(0);
var $at = __webpack_require__(101)(true);

$export($export.P, 'String', {
  at: function at(pos) {
    return $at(this, pos);
  }
});


/***/ }),
/* 345 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/tc39/proposal-string-pad-start-end
var $export = __webpack_require__(0);
var $pad = __webpack_require__(157);
var userAgent = __webpack_require__(79);

// https://github.com/zloirock/core-js/issues/280
$export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
  padStart: function padStart(maxLength /* , fillString = ' ' */) {
    return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
  }
});


/***/ }),
/* 346 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/tc39/proposal-string-pad-start-end
var $export = __webpack_require__(0);
var $pad = __webpack_require__(157);
var userAgent = __webpack_require__(79);

// https://github.com/zloirock/core-js/issues/280
$export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
  padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
    return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
  }
});


/***/ }),
/* 347 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
__webpack_require__(55)('trimLeft', function ($trim) {
  return function trimLeft() {
    return $trim(this, 1);
  };
}, 'trimStart');


/***/ }),
/* 348 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
__webpack_require__(55)('trimRight', function ($trim) {
  return function trimRight() {
    return $trim(this, 2);
  };
}, 'trimEnd');


/***/ }),
/* 349 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/String.prototype.matchAll/
var $export = __webpack_require__(0);
var defined = __webpack_require__(32);
var toLength = __webpack_require__(11);
var isRegExp = __webpack_require__(74);
var getFlags = __webpack_require__(76);
var RegExpProto = RegExp.prototype;

var $RegExpStringIterator = function (regexp, string) {
  this._r = regexp;
  this._s = string;
};

__webpack_require__(103)($RegExpStringIterator, 'RegExp String', function next() {
  var match = this._r.exec(this._s);
  return { value: match, done: match === null };
});

$export($export.P, 'String', {
  matchAll: function matchAll(regexp) {
    defined(this);
    if (!isRegExp(regexp)) throw TypeError(regexp + ' is not a regexp!');
    var S = String(this);
    var flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp);
    var rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags);
    rx.lastIndex = toLength(regexp.lastIndex);
    return new $RegExpStringIterator(rx, S);
  }
});


/***/ }),
/* 350 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(91)('asyncIterator');


/***/ }),
/* 351 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(91)('observable');


/***/ }),
/* 352 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-object-getownpropertydescriptors
var $export = __webpack_require__(0);
var ownKeys = __webpack_require__(155);
var toIObject = __webpack_require__(21);
var gOPD = __webpack_require__(22);
var createProperty = __webpack_require__(107);

$export($export.S, 'Object', {
  getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
    var O = toIObject(object);
    var getDesc = gOPD.f;
    var keys = ownKeys(O);
    var result = {};
    var i = 0;
    var key, desc;
    while (keys.length > i) {
      desc = getDesc(O, key = keys[i++]);
      if (desc !== undefined) createProperty(result, key, desc);
    }
    return result;
  }
});


/***/ }),
/* 353 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(0);
var $values = __webpack_require__(158)(false);

$export($export.S, 'Object', {
  values: function values(it) {
    return $values(it);
  }
});


/***/ }),
/* 354 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(0);
var $entries = __webpack_require__(158)(true);

$export($export.S, 'Object', {
  entries: function entries(it) {
    return $entries(it);
  }
});


/***/ }),
/* 355 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var toObject = __webpack_require__(13);
var aFunction = __webpack_require__(14);
var $defineProperty = __webpack_require__(10);

// B.2.2.2 Object.prototype.__defineGetter__(P, getter)
__webpack_require__(9) && $export($export.P + __webpack_require__(82), 'Object', {
  __defineGetter__: function __defineGetter__(P, getter) {
    $defineProperty.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true });
  }
});


/***/ }),
/* 356 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var toObject = __webpack_require__(13);
var aFunction = __webpack_require__(14);
var $defineProperty = __webpack_require__(10);

// B.2.2.3 Object.prototype.__defineSetter__(P, setter)
__webpack_require__(9) && $export($export.P + __webpack_require__(82), 'Object', {
  __defineSetter__: function __defineSetter__(P, setter) {
    $defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });
  }
});


/***/ }),
/* 357 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var toObject = __webpack_require__(13);
var toPrimitive = __webpack_require__(31);
var getPrototypeOf = __webpack_require__(23);
var getOwnPropertyDescriptor = __webpack_require__(22).f;

// B.2.2.4 Object.prototype.__lookupGetter__(P)
__webpack_require__(9) && $export($export.P + __webpack_require__(82), 'Object', {
  __lookupGetter__: function __lookupGetter__(P) {
    var O = toObject(this);
    var K = toPrimitive(P, true);
    var D;
    do {
      if (D = getOwnPropertyDescriptor(O, K)) return D.get;
    } while (O = getPrototypeOf(O));
  }
});


/***/ }),
/* 358 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $export = __webpack_require__(0);
var toObject = __webpack_require__(13);
var toPrimitive = __webpack_require__(31);
var getPrototypeOf = __webpack_require__(23);
var getOwnPropertyDescriptor = __webpack_require__(22).f;

// B.2.2.5 Object.prototype.__lookupSetter__(P)
__webpack_require__(9) && $export($export.P + __webpack_require__(82), 'Object', {
  __lookupSetter__: function __lookupSetter__(P) {
    var O = toObject(this);
    var K = toPrimitive(P, true);
    var D;
    do {
      if (D = getOwnPropertyDescriptor(O, K)) return D.set;
    } while (O = getPrototypeOf(O));
  }
});


/***/ }),
/* 359 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = __webpack_require__(0);

$export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(159)('Map') });


/***/ }),
/* 360 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = __webpack_require__(0);

$export($export.P + $export.R, 'Set', { toJSON: __webpack_require__(159)('Set') });


/***/ }),
/* 361 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
__webpack_require__(83)('Map');


/***/ }),
/* 362 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
__webpack_require__(83)('Set');


/***/ }),
/* 363 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
__webpack_require__(83)('WeakMap');


/***/ }),
/* 364 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
__webpack_require__(83)('WeakSet');


/***/ }),
/* 365 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
__webpack_require__(84)('Map');


/***/ }),
/* 366 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
__webpack_require__(84)('Set');


/***/ }),
/* 367 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
__webpack_require__(84)('WeakMap');


/***/ }),
/* 368 */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
__webpack_require__(84)('WeakSet');


/***/ }),
/* 369 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-global
var $export = __webpack_require__(0);

$export($export.G, { global: __webpack_require__(3) });


/***/ }),
/* 370 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-global
var $export = __webpack_require__(0);

$export($export.S, 'System', { global: __webpack_require__(3) });


/***/ }),
/* 371 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/ljharb/proposal-is-error
var $export = __webpack_require__(0);
var cof = __webpack_require__(28);

$export($export.S, 'Error', {
  isError: function isError(it) {
    return cof(it) === 'Error';
  }
});


/***/ }),
/* 372 */
/***/ (function(module, exports, __webpack_require__) {

// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  clamp: function clamp(x, lower, upper) {
    return Math.min(upper, Math.max(lower, x));
  }
});


/***/ }),
/* 373 */
/***/ (function(module, exports, __webpack_require__) {

// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(0);

$export($export.S, 'Math', { DEG_PER_RAD: Math.PI / 180 });


/***/ }),
/* 374 */
/***/ (function(module, exports, __webpack_require__) {

// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(0);
var RAD_PER_DEG = 180 / Math.PI;

$export($export.S, 'Math', {
  degrees: function degrees(radians) {
    return radians * RAD_PER_DEG;
  }
});


/***/ }),
/* 375 */
/***/ (function(module, exports, __webpack_require__) {

// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(0);
var scale = __webpack_require__(161);
var fround = __webpack_require__(141);

$export($export.S, 'Math', {
  fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
    return fround(scale(x, inLow, inHigh, outLow, outHigh));
  }
});


/***/ }),
/* 376 */
/***/ (function(module, exports, __webpack_require__) {

// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  iaddh: function iaddh(x0, x1, y0, y1) {
    var $x0 = x0 >>> 0;
    var $x1 = x1 >>> 0;
    var $y0 = y0 >>> 0;
    return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;
  }
});


/***/ }),
/* 377 */
/***/ (function(module, exports, __webpack_require__) {

// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  isubh: function isubh(x0, x1, y0, y1) {
    var $x0 = x0 >>> 0;
    var $x1 = x1 >>> 0;
    var $y0 = y0 >>> 0;
    return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;
  }
});


/***/ }),
/* 378 */
/***/ (function(module, exports, __webpack_require__) {

// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  imulh: function imulh(u, v) {
    var UINT16 = 0xffff;
    var $u = +u;
    var $v = +v;
    var u0 = $u & UINT16;
    var v0 = $v & UINT16;
    var u1 = $u >> 16;
    var v1 = $v >> 16;
    var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
    return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);
  }
});


/***/ }),
/* 379 */
/***/ (function(module, exports, __webpack_require__) {

// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(0);

$export($export.S, 'Math', { RAD_PER_DEG: 180 / Math.PI });


/***/ }),
/* 380 */
/***/ (function(module, exports, __webpack_require__) {

// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(0);
var DEG_PER_RAD = Math.PI / 180;

$export($export.S, 'Math', {
  radians: function radians(degrees) {
    return degrees * DEG_PER_RAD;
  }
});


/***/ }),
/* 381 */
/***/ (function(module, exports, __webpack_require__) {

// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(0);

$export($export.S, 'Math', { scale: __webpack_require__(161) });


/***/ }),
/* 382 */
/***/ (function(module, exports, __webpack_require__) {

// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);

$export($export.S, 'Math', {
  umulh: function umulh(u, v) {
    var UINT16 = 0xffff;
    var $u = +u;
    var $v = +v;
    var u0 = $u & UINT16;
    var v0 = $v & UINT16;
    var u1 = $u >>> 16;
    var v1 = $v >>> 16;
    var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
    return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);
  }
});


/***/ }),
/* 383 */
/***/ (function(module, exports, __webpack_require__) {

// http://jfbastien.github.io/papers/Math.signbit.html
var $export = __webpack_require__(0);

$export($export.S, 'Math', { signbit: function signbit(x) {
  // eslint-disable-next-line no-self-compare
  return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
} });


/***/ }),
/* 384 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// https://github.com/tc39/proposal-promise-finally

var $export = __webpack_require__(0);
var core = __webpack_require__(26);
var global = __webpack_require__(3);
var speciesConstructor = __webpack_require__(78);
var promiseResolve = __webpack_require__(148);

$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
  var C = speciesConstructor(this, core.Promise || global.Promise);
  var isFunction = typeof onFinally == 'function';
  return this.then(
    isFunction ? function (x) {
      return promiseResolve(C, onFinally()).then(function () { return x; });
    } : onFinally,
    isFunction ? function (e) {
      return promiseResolve(C, onFinally()).then(function () { throw e; });
    } : onFinally
  );
} });


/***/ }),
/* 385 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/tc39/proposal-promise-try
var $export = __webpack_require__(0);
var newPromiseCapability = __webpack_require__(114);
var perform = __webpack_require__(147);

$export($export.S, 'Promise', { 'try': function (callbackfn) {
  var promiseCapability = newPromiseCapability.f(this);
  var result = perform(callbackfn);
  (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
  return promiseCapability.promise;
} });


/***/ }),
/* 386 */
/***/ (function(module, exports, __webpack_require__) {

var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var toMetaKey = metadata.key;
var ordinaryDefineOwnMetadata = metadata.set;

metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {
  ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
} });


/***/ }),
/* 387 */
/***/ (function(module, exports, __webpack_require__) {

var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var toMetaKey = metadata.key;
var getOrCreateMetadataMap = metadata.map;
var store = metadata.store;

metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
  var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]);
  var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
  if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
  if (metadataMap.size) return true;
  var targetMetadata = store.get(target);
  targetMetadata['delete'](targetKey);
  return !!targetMetadata.size || store['delete'](target);
} });


/***/ }),
/* 388 */
/***/ (function(module, exports, __webpack_require__) {

var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var getPrototypeOf = __webpack_require__(23);
var ordinaryHasOwnMetadata = metadata.has;
var ordinaryGetOwnMetadata = metadata.get;
var toMetaKey = metadata.key;

var ordinaryGetMetadata = function (MetadataKey, O, P) {
  var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
  if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);
  var parent = getPrototypeOf(O);
  return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;
};

metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
  return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });


/***/ }),
/* 389 */
/***/ (function(module, exports, __webpack_require__) {

var Set = __webpack_require__(151);
var from = __webpack_require__(160);
var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var getPrototypeOf = __webpack_require__(23);
var ordinaryOwnMetadataKeys = metadata.keys;
var toMetaKey = metadata.key;

var ordinaryMetadataKeys = function (O, P) {
  var oKeys = ordinaryOwnMetadataKeys(O, P);
  var parent = getPrototypeOf(O);
  if (parent === null) return oKeys;
  var pKeys = ordinaryMetadataKeys(parent, P);
  return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;
};

metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
  return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
} });


/***/ }),
/* 390 */
/***/ (function(module, exports, __webpack_require__) {

var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var ordinaryGetOwnMetadata = metadata.get;
var toMetaKey = metadata.key;

metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
  return ordinaryGetOwnMetadata(metadataKey, anObject(target)
    , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });


/***/ }),
/* 391 */
/***/ (function(module, exports, __webpack_require__) {

var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var ordinaryOwnMetadataKeys = metadata.keys;
var toMetaKey = metadata.key;

metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
  return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
} });


/***/ }),
/* 392 */
/***/ (function(module, exports, __webpack_require__) {

var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var getPrototypeOf = __webpack_require__(23);
var ordinaryHasOwnMetadata = metadata.has;
var toMetaKey = metadata.key;

var ordinaryHasMetadata = function (MetadataKey, O, P) {
  var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
  if (hasOwn) return true;
  var parent = getPrototypeOf(O);
  return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;
};

metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
  return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });


/***/ }),
/* 393 */
/***/ (function(module, exports, __webpack_require__) {

var metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var ordinaryHasOwnMetadata = metadata.has;
var toMetaKey = metadata.key;

metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
  return ordinaryHasOwnMetadata(metadataKey, anObject(target)
    , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });


/***/ }),
/* 394 */
/***/ (function(module, exports, __webpack_require__) {

var $metadata = __webpack_require__(38);
var anObject = __webpack_require__(2);
var aFunction = __webpack_require__(14);
var toMetaKey = $metadata.key;
var ordinaryDefineOwnMetadata = $metadata.set;

$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) {
  return function decorator(target, targetKey) {
    ordinaryDefineOwnMetadata(
      metadataKey, metadataValue,
      (targetKey !== undefined ? anObject : aFunction)(target),
      toMetaKey(targetKey)
    );
  };
} });


/***/ }),
/* 395 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask
var $export = __webpack_require__(0);
var microtask = __webpack_require__(113)();
var process = __webpack_require__(3).process;
var isNode = __webpack_require__(28)(process) == 'process';

$export($export.G, {
  asap: function asap(fn) {
    var domain = isNode && process.domain;
    microtask(domain ? domain.bind(fn) : fn);
  }
});


/***/ }),
/* 396 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://github.com/zenparsing/es-observable
var $export = __webpack_require__(0);
var global = __webpack_require__(3);
var core = __webpack_require__(26);
var microtask = __webpack_require__(113)();
var OBSERVABLE = __webpack_require__(7)('observable');
var aFunction = __webpack_require__(14);
var anObject = __webpack_require__(2);
var anInstance = __webpack_require__(50);
var redefineAll = __webpack_require__(52);
var hide = __webpack_require__(17);
var forOf = __webpack_require__(51);
var RETURN = forOf.RETURN;

var getMethod = function (fn) {
  return fn == null ? undefined : aFunction(fn);
};

var cleanupSubscription = function (subscription) {
  var cleanup = subscription._c;
  if (cleanup) {
    subscription._c = undefined;
    cleanup();
  }
};

var subscriptionClosed = function (subscription) {
  return subscription._o === undefined;
};

var closeSubscription = function (subscription) {
  if (!subscriptionClosed(subscription)) {
    subscription._o = undefined;
    cleanupSubscription(subscription);
  }
};

var Subscription = function (observer, subscriber) {
  anObject(observer);
  this._c = undefined;
  this._o = observer;
  observer = new SubscriptionObserver(this);
  try {
    var cleanup = subscriber(observer);
    var subscription = cleanup;
    if (cleanup != null) {
      if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); };
      else aFunction(cleanup);
      this._c = cleanup;
    }
  } catch (e) {
    observer.error(e);
    return;
  } if (subscriptionClosed(this)) cleanupSubscription(this);
};

Subscription.prototype = redefineAll({}, {
  unsubscribe: function unsubscribe() { closeSubscription(this); }
});

var SubscriptionObserver = function (subscription) {
  this._s = subscription;
};

SubscriptionObserver.prototype = redefineAll({}, {
  next: function next(value) {
    var subscription = this._s;
    if (!subscriptionClosed(subscription)) {
      var observer = subscription._o;
      try {
        var m = getMethod(observer.next);
        if (m) return m.call(observer, value);
      } catch (e) {
        try {
          closeSubscription(subscription);
        } finally {
          throw e;
        }
      }
    }
  },
  error: function error(value) {
    var subscription = this._s;
    if (subscriptionClosed(subscription)) throw value;
    var observer = subscription._o;
    subscription._o = undefined;
    try {
      var m = getMethod(observer.error);
      if (!m) throw value;
      value = m.call(observer, value);
    } catch (e) {
      try {
        cleanupSubscription(subscription);
      } finally {
        throw e;
      }
    } cleanupSubscription(subscription);
    return value;
  },
  complete: function complete(value) {
    var subscription = this._s;
    if (!subscriptionClosed(subscription)) {
      var observer = subscription._o;
      subscription._o = undefined;
      try {
        var m = getMethod(observer.complete);
        value = m ? m.call(observer, value) : undefined;
      } catch (e) {
        try {
          cleanupSubscription(subscription);
        } finally {
          throw e;
        }
      } cleanupSubscription(subscription);
      return value;
    }
  }
});

var $Observable = function Observable(subscriber) {
  anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber);
};

redefineAll($Observable.prototype, {
  subscribe: function subscribe(observer) {
    return new Subscription(observer, this._f);
  },
  forEach: function forEach(fn) {
    var that = this;
    return new (core.Promise || global.Promise)(function (resolve, reject) {
      aFunction(fn);
      var subscription = that.subscribe({
        next: function (value) {
          try {
            return fn(value);
          } catch (e) {
            reject(e);
            subscription.unsubscribe();
          }
        },
        error: reject,
        complete: resolve
      });
    });
  }
});

redefineAll($Observable, {
  from: function from(x) {
    var C = typeof this === 'function' ? this : $Observable;
    var method = getMethod(anObject(x)[OBSERVABLE]);
    if (method) {
      var observable = anObject(method.call(x));
      return observable.constructor === C ? observable : new C(function (observer) {
        return observable.subscribe(observer);
      });
    }
    return new C(function (observer) {
      var done = false;
      microtask(function () {
        if (!done) {
          try {
            if (forOf(x, false, function (it) {
              observer.next(it);
              if (done) return RETURN;
            }) === RETURN) return;
          } catch (e) {
            if (done) throw e;
            observer.error(e);
            return;
          } observer.complete();
        }
      });
      return function () { done = true; };
    });
  },
  of: function of() {
    for (var i = 0, l = arguments.length, items = new Array(l); i < l;) items[i] = arguments[i++];
    return new (typeof this === 'function' ? this : $Observable)(function (observer) {
      var done = false;
      microtask(function () {
        if (!done) {
          for (var j = 0; j < items.length; ++j) {
            observer.next(items[j]);
            if (done) return;
          } observer.complete();
        }
      });
      return function () { done = true; };
    });
  }
});

hide($Observable.prototype, OBSERVABLE, function () { return this; });

$export($export.G, { Observable: $Observable });

__webpack_require__(49)('Observable');


/***/ }),
/* 397 */
/***/ (function(module, exports, __webpack_require__) {

// ie9- setTimeout & setInterval additional parameters fix
var global = __webpack_require__(3);
var $export = __webpack_require__(0);
var userAgent = __webpack_require__(79);
var slice = [].slice;
var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
var wrap = function (set) {
  return function (fn, time /* , ...args */) {
    var boundArgs = arguments.length > 2;
    var args = boundArgs ? slice.call(arguments, 2) : false;
    return set(boundArgs ? function () {
      // eslint-disable-next-line no-new-func
      (typeof fn == 'function' ? fn : Function(fn)).apply(this, args);
    } : fn, time);
  };
};
$export($export.G + $export.B + $export.F * MSIE, {
  setTimeout: wrap(global.setTimeout),
  setInterval: wrap(global.setInterval)
});


/***/ }),
/* 398 */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(0);
var $task = __webpack_require__(112);
$export($export.G + $export.B, {
  setImmediate: $task.set,
  clearImmediate: $task.clear
});


/***/ }),
/* 399 */
/***/ (function(module, exports, __webpack_require__) {

var $iterators = __webpack_require__(111);
var getKeys = __webpack_require__(45);
var redefine = __webpack_require__(18);
var global = __webpack_require__(3);
var hide = __webpack_require__(17);
var Iterators = __webpack_require__(56);
var wks = __webpack_require__(7);
var ITERATOR = wks('iterator');
var TO_STRING_TAG = wks('toStringTag');
var ArrayValues = Iterators.Array;

var DOMIterables = {
  CSSRuleList: true, // TODO: Not spec compliant, should be false.
  CSSStyleDeclaration: false,
  CSSValueList: false,
  ClientRectList: false,
  DOMRectList: false,
  DOMStringList: false,
  DOMTokenList: true,
  DataTransferItemList: false,
  FileList: false,
  HTMLAllCollection: false,
  HTMLCollection: false,
  HTMLFormElement: false,
  HTMLSelectElement: false,
  MediaList: true, // TODO: Not spec compliant, should be false.
  MimeTypeArray: false,
  NamedNodeMap: false,
  NodeList: true,
  PaintRequestList: false,
  Plugin: false,
  PluginArray: false,
  SVGLengthList: false,
  SVGNumberList: false,
  SVGPathSegList: false,
  SVGPointList: false,
  SVGStringList: false,
  SVGTransformList: false,
  SourceBufferList: false,
  StyleSheetList: true, // TODO: Not spec compliant, should be false.
  TextTrackCueList: false,
  TextTrackList: false,
  TouchList: false
};

for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
  var NAME = collections[i];
  var explicit = DOMIterables[NAME];
  var Collection = global[NAME];
  var proto = Collection && Collection.prototype;
  var key;
  if (proto) {
    if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
    if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
    Iterators[NAME] = ArrayValues;
    if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
  }
}


/***/ }),
/* 400 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {/**
 * Copyright (c) 2014, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * https://raw.github.com/facebook/regenerator/master/LICENSE file. An
 * additional grant of patent rights can be found in the PATENTS file in
 * the same directory.
 */

!(function(global) {
  "use strict";

  var Op = Object.prototype;
  var hasOwn = Op.hasOwnProperty;
  var undefined; // More compressible than void 0.
  var $Symbol = typeof Symbol === "function" ? Symbol : {};
  var iteratorSymbol = $Symbol.iterator || "@@iterator";
  var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";

  var inModule = typeof module === "object";
  var runtime = global.regeneratorRuntime;
  if (runtime) {
    if (inModule) {
      // If regeneratorRuntime is defined globally and we're in a module,
      // make the exports object identical to regeneratorRuntime.
      module.exports = runtime;
    }
    // Don't bother evaluating the rest of this file if the runtime was
    // already defined globally.
    return;
  }

  // Define the runtime globally (as expected by generated code) as either
  // module.exports (if we're in a module) or a new, empty object.
  runtime = global.regeneratorRuntime = inModule ? module.exports : {};

  function wrap(innerFn, outerFn, self, tryLocsList) {
    // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
    var generator = Object.create(protoGenerator.prototype);
    var context = new Context(tryLocsList || []);

    // The ._invoke method unifies the implementations of the .next,
    // .throw, and .return methods.
    generator._invoke = makeInvokeMethod(innerFn, self, context);

    return generator;
  }
  runtime.wrap = wrap;

  // Try/catch helper to minimize deoptimizations. Returns a completion
  // record like context.tryEntries[i].completion. This interface could
  // have been (and was previously) designed to take a closure to be
  // invoked without arguments, but in all the cases we care about we
  // already have an existing method we want to call, so there's no need
  // to create a new function object. We can even get away with assuming
  // the method takes exactly one argument, since that happens to be true
  // in every case, so we don't have to touch the arguments object. The
  // only additional allocation required is the completion record, which
  // has a stable shape and so hopefully should be cheap to allocate.
  function tryCatch(fn, obj, arg) {
    try {
      return { type: "normal", arg: fn.call(obj, arg) };
    } catch (err) {
      return { type: "throw", arg: err };
    }
  }

  var GenStateSuspendedStart = "suspendedStart";
  var GenStateSuspendedYield = "suspendedYield";
  var GenStateExecuting = "executing";
  var GenStateCompleted = "completed";

  // Returning this object from the innerFn has the same effect as
  // breaking out of the dispatch switch statement.
  var ContinueSentinel = {};

  // Dummy constructor functions that we use as the .constructor and
  // .constructor.prototype properties for functions that return Generator
  // objects. For full spec compliance, you may wish to configure your
  // minifier not to mangle the names of these two functions.
  function Generator() {}
  function GeneratorFunction() {}
  function GeneratorFunctionPrototype() {}

  // This is a polyfill for %IteratorPrototype% for environments that
  // don't natively support it.
  var IteratorPrototype = {};
  IteratorPrototype[iteratorSymbol] = function () {
    return this;
  };

  var getProto = Object.getPrototypeOf;
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  if (NativeIteratorPrototype &&
      NativeIteratorPrototype !== Op &&
      hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
    // This environment has a native %IteratorPrototype%; use it instead
    // of the polyfill.
    IteratorPrototype = NativeIteratorPrototype;
  }

  var Gp = GeneratorFunctionPrototype.prototype =
    Generator.prototype = Object.create(IteratorPrototype);
  GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  GeneratorFunctionPrototype.constructor = GeneratorFunction;
  GeneratorFunctionPrototype[toStringTagSymbol] =
    GeneratorFunction.displayName = "GeneratorFunction";

  // Helper for defining the .next, .throw, and .return methods of the
  // Iterator interface in terms of a single ._invoke method.
  function defineIteratorMethods(prototype) {
    ["next", "throw", "return"].forEach(function(method) {
      prototype[method] = function(arg) {
        return this._invoke(method, arg);
      };
    });
  }

  runtime.isGeneratorFunction = function(genFun) {
    var ctor = typeof genFun === "function" && genFun.constructor;
    return ctor
      ? ctor === GeneratorFunction ||
        // For the native GeneratorFunction constructor, the best we can
        // do is to check its .name property.
        (ctor.displayName || ctor.name) === "GeneratorFunction"
      : false;
  };

  runtime.mark = function(genFun) {
    if (Object.setPrototypeOf) {
      Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
    } else {
      genFun.__proto__ = GeneratorFunctionPrototype;
      if (!(toStringTagSymbol in genFun)) {
        genFun[toStringTagSymbol] = "GeneratorFunction";
      }
    }
    genFun.prototype = Object.create(Gp);
    return genFun;
  };

  // Within the body of any async function, `await x` is transformed to
  // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  // `hasOwn.call(value, "__await")` to determine if the yielded value is
  // meant to be awaited.
  runtime.awrap = function(arg) {
    return { __await: arg };
  };

  function AsyncIterator(generator) {
    function invoke(method, arg, resolve, reject) {
      var record = tryCatch(generator[method], generator, arg);
      if (record.type === "throw") {
        reject(record.arg);
      } else {
        var result = record.arg;
        var value = result.value;
        if (value &&
            typeof value === "object" &&
            hasOwn.call(value, "__await")) {
          return Promise.resolve(value.__await).then(function(value) {
            invoke("next", value, resolve, reject);
          }, function(err) {
            invoke("throw", err, resolve, reject);
          });
        }

        return Promise.resolve(value).then(function(unwrapped) {
          // When a yielded Promise is resolved, its final value becomes
          // the .value of the Promise<{value,done}> result for the
          // current iteration. If the Promise is rejected, however, the
          // result for this iteration will be rejected with the same
          // reason. Note that rejections of yielded Promises are not
          // thrown back into the generator function, as is the case
          // when an awaited Promise is rejected. This difference in
          // behavior between yield and await is important, because it
          // allows the consumer to decide what to do with the yielded
          // rejection (swallow it and continue, manually .throw it back
          // into the generator, abandon iteration, whatever). With
          // await, by contrast, there is no opportunity to examine the
          // rejection reason outside the generator function, so the
          // only option is to throw it from the await expression, and
          // let the generator function handle the exception.
          result.value = unwrapped;
          resolve(result);
        }, reject);
      }
    }

    if (typeof global.process === "object" && global.process.domain) {
      invoke = global.process.domain.bind(invoke);
    }

    var previousPromise;

    function enqueue(method, arg) {
      function callInvokeWithMethodAndArg() {
        return new Promise(function(resolve, reject) {
          invoke(method, arg, resolve, reject);
        });
      }

      return previousPromise =
        // If enqueue has been called before, then we want to wait until
        // all previous Promises have been resolved before calling invoke,
        // so that results are always delivered in the correct order. If
        // enqueue has not been called before, then it is important to
        // call invoke immediately, without waiting on a callback to fire,
        // so that the async generator function has the opportunity to do
        // any necessary setup in a predictable way. This predictability
        // is why the Promise constructor synchronously invokes its
        // executor callback, and why async functions synchronously
        // execute code before the first await. Since we implement simple
        // async functions in terms of async generators, it is especially
        // important to get this right, even though it requires care.
        previousPromise ? previousPromise.then(
          callInvokeWithMethodAndArg,
          // Avoid propagating failures to Promises returned by later
          // invocations of the iterator.
          callInvokeWithMethodAndArg
        ) : callInvokeWithMethodAndArg();
    }

    // Define the unified helper method that is used to implement .next,
    // .throw, and .return (see defineIteratorMethods).
    this._invoke = enqueue;
  }

  defineIteratorMethods(AsyncIterator.prototype);
  AsyncIterator.prototype[asyncIteratorSymbol] = function () {
    return this;
  };
  runtime.AsyncIterator = AsyncIterator;

  // Note that simple async functions are implemented on top of
  // AsyncIterator objects; they just return a Promise for the value of
  // the final result produced by the iterator.
  runtime.async = function(innerFn, outerFn, self, tryLocsList) {
    var iter = new AsyncIterator(
      wrap(innerFn, outerFn, self, tryLocsList)
    );

    return runtime.isGeneratorFunction(outerFn)
      ? iter // If outerFn is a generator, return the full iterator.
      : iter.next().then(function(result) {
          return result.done ? result.value : iter.next();
        });
  };

  function makeInvokeMethod(innerFn, self, context) {
    var state = GenStateSuspendedStart;

    return function invoke(method, arg) {
      if (state === GenStateExecuting) {
        throw new Error("Generator is already running");
      }

      if (state === GenStateCompleted) {
        if (method === "throw") {
          throw arg;
        }

        // Be forgiving, per 25.3.3.3.3 of the spec:
        // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
        return doneResult();
      }

      context.method = method;
      context.arg = arg;

      while (true) {
        var delegate = context.delegate;
        if (delegate) {
          var delegateResult = maybeInvokeDelegate(delegate, context);
          if (delegateResult) {
            if (delegateResult === ContinueSentinel) continue;
            return delegateResult;
          }
        }

        if (context.method === "next") {
          // Setting context._sent for legacy support of Babel's
          // function.sent implementation.
          context.sent = context._sent = context.arg;

        } else if (context.method === "throw") {
          if (state === GenStateSuspendedStart) {
            state = GenStateCompleted;
            throw context.arg;
          }

          context.dispatchException(context.arg);

        } else if (context.method === "return") {
          context.abrupt("return", context.arg);
        }

        state = GenStateExecuting;

        var record = tryCatch(innerFn, self, context);
        if (record.type === "normal") {
          // If an exception is thrown from innerFn, we leave state ===
          // GenStateExecuting and loop back for another invocation.
          state = context.done
            ? GenStateCompleted
            : GenStateSuspendedYield;

          if (record.arg === ContinueSentinel) {
            continue;
          }

          return {
            value: record.arg,
            done: context.done
          };

        } else if (record.type === "throw") {
          state = GenStateCompleted;
          // Dispatch the exception by looping back around to the
          // context.dispatchException(context.arg) call above.
          context.method = "throw";
          context.arg = record.arg;
        }
      }
    };
  }

  // Call delegate.iterator[context.method](context.arg) and handle the
  // result, either by returning a { value, done } result from the
  // delegate iterator, or by modifying context.method and context.arg,
  // setting context.delegate to null, and returning the ContinueSentinel.
  function maybeInvokeDelegate(delegate, context) {
    var method = delegate.iterator[context.method];
    if (method === undefined) {
      // A .throw or .return when the delegate iterator has no .throw
      // method always terminates the yield* loop.
      context.delegate = null;

      if (context.method === "throw") {
        if (delegate.iterator.return) {
          // If the delegate iterator has a return method, give it a
          // chance to clean up.
          context.method = "return";
          context.arg = undefined;
          maybeInvokeDelegate(delegate, context);

          if (context.method === "throw") {
            // If maybeInvokeDelegate(context) changed context.method from
            // "return" to "throw", let that override the TypeError below.
            return ContinueSentinel;
          }
        }

        context.method = "throw";
        context.arg = new TypeError(
          "The iterator does not provide a 'throw' method");
      }

      return ContinueSentinel;
    }

    var record = tryCatch(method, delegate.iterator, context.arg);

    if (record.type === "throw") {
      context.method = "throw";
      context.arg = record.arg;
      context.delegate = null;
      return ContinueSentinel;
    }

    var info = record.arg;

    if (! info) {
      context.method = "throw";
      context.arg = new TypeError("iterator result is not an object");
      context.delegate = null;
      return ContinueSentinel;
    }

    if (info.done) {
      // Assign the result of the finished delegate to the temporary
      // variable specified by delegate.resultName (see delegateYield).
      context[delegate.resultName] = info.value;

      // Resume execution at the desired location (see delegateYield).
      context.next = delegate.nextLoc;

      // If context.method was "throw" but the delegate handled the
      // exception, let the outer generator proceed normally. If
      // context.method was "next", forget context.arg since it has been
      // "consumed" by the delegate iterator. If context.method was
      // "return", allow the original .return call to continue in the
      // outer generator.
      if (context.method !== "return") {
        context.method = "next";
        context.arg = undefined;
      }

    } else {
      // Re-yield the result returned by the delegate method.
      return info;
    }

    // The delegate iterator is finished, so forget it and continue with
    // the outer generator.
    context.delegate = null;
    return ContinueSentinel;
  }

  // Define Generator.prototype.{next,throw,return} in terms of the
  // unified ._invoke helper method.
  defineIteratorMethods(Gp);

  Gp[toStringTagSymbol] = "Generator";

  // A Generator should always return itself as the iterator object when the
  // @@iterator function is called on it. Some browsers' implementations of the
  // iterator prototype chain incorrectly implement this, causing the Generator
  // object to not be returned from this call. This ensures that doesn't happen.
  // See https://github.com/facebook/regenerator/issues/274 for more details.
  Gp[iteratorSymbol] = function() {
    return this;
  };

  Gp.toString = function() {
    return "[object Generator]";
  };

  function pushTryEntry(locs) {
    var entry = { tryLoc: locs[0] };

    if (1 in locs) {
      entry.catchLoc = locs[1];
    }

    if (2 in locs) {
      entry.finallyLoc = locs[2];
      entry.afterLoc = locs[3];
    }

    this.tryEntries.push(entry);
  }

  function resetTryEntry(entry) {
    var record = entry.completion || {};
    record.type = "normal";
    delete record.arg;
    entry.completion = record;
  }

  function Context(tryLocsList) {
    // The root entry object (effectively a try statement without a catch
    // or a finally block) gives us a place to store values thrown from
    // locations where there is no enclosing try statement.
    this.tryEntries = [{ tryLoc: "root" }];
    tryLocsList.forEach(pushTryEntry, this);
    this.reset(true);
  }

  runtime.keys = function(object) {
    var keys = [];
    for (var key in object) {
      keys.push(key);
    }
    keys.reverse();

    // Rather than returning an object with a next method, we keep
    // things simple and return the next function itself.
    return function next() {
      while (keys.length) {
        var key = keys.pop();
        if (key in object) {
          next.value = key;
          next.done = false;
          return next;
        }
      }

      // To avoid creating an additional object, we just hang the .value
      // and .done properties off the next function object itself. This
      // also ensures that the minifier will not anonymize the function.
      next.done = true;
      return next;
    };
  };

  function values(iterable) {
    if (iterable) {
      var iteratorMethod = iterable[iteratorSymbol];
      if (iteratorMethod) {
        return iteratorMethod.call(iterable);
      }

      if (typeof iterable.next === "function") {
        return iterable;
      }

      if (!isNaN(iterable.length)) {
        var i = -1, next = function next() {
          while (++i < iterable.length) {
            if (hasOwn.call(iterable, i)) {
              next.value = iterable[i];
              next.done = false;
              return next;
            }
          }

          next.value = undefined;
          next.done = true;

          return next;
        };

        return next.next = next;
      }
    }

    // Return an iterator with no values.
    return { next: doneResult };
  }
  runtime.values = values;

  function doneResult() {
    return { value: undefined, done: true };
  }

  Context.prototype = {
    constructor: Context,

    reset: function(skipTempReset) {
      this.prev = 0;
      this.next = 0;
      // Resetting context._sent for legacy support of Babel's
      // function.sent implementation.
      this.sent = this._sent = undefined;
      this.done = false;
      this.delegate = null;

      this.method = "next";
      this.arg = undefined;

      this.tryEntries.forEach(resetTryEntry);

      if (!skipTempReset) {
        for (var name in this) {
          // Not sure about the optimal order of these conditions:
          if (name.charAt(0) === "t" &&
              hasOwn.call(this, name) &&
              !isNaN(+name.slice(1))) {
            this[name] = undefined;
          }
        }
      }
    },

    stop: function() {
      this.done = true;

      var rootEntry = this.tryEntries[0];
      var rootRecord = rootEntry.completion;
      if (rootRecord.type === "throw") {
        throw rootRecord.arg;
      }

      return this.rval;
    },

    dispatchException: function(exception) {
      if (this.done) {
        throw exception;
      }

      var context = this;
      function handle(loc, caught) {
        record.type = "throw";
        record.arg = exception;
        context.next = loc;

        if (caught) {
          // If the dispatched exception was caught by a catch block,
          // then let that catch block handle the exception normally.
          context.method = "next";
          context.arg = undefined;
        }

        return !! caught;
      }

      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        var record = entry.completion;

        if (entry.tryLoc === "root") {
          // Exception thrown outside of any try block that could handle
          // it, so set the completion value of the entire function to
          // throw the exception.
          return handle("end");
        }

        if (entry.tryLoc <= this.prev) {
          var hasCatch = hasOwn.call(entry, "catchLoc");
          var hasFinally = hasOwn.call(entry, "finallyLoc");

          if (hasCatch && hasFinally) {
            if (this.prev < entry.catchLoc) {
              return handle(entry.catchLoc, true);
            } else if (this.prev < entry.finallyLoc) {
              return handle(entry.finallyLoc);
            }

          } else if (hasCatch) {
            if (this.prev < entry.catchLoc) {
              return handle(entry.catchLoc, true);
            }

          } else if (hasFinally) {
            if (this.prev < entry.finallyLoc) {
              return handle(entry.finallyLoc);
            }

          } else {
            throw new Error("try statement without catch or finally");
          }
        }
      }
    },

    abrupt: function(type, arg) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc <= this.prev &&
            hasOwn.call(entry, "finallyLoc") &&
            this.prev < entry.finallyLoc) {
          var finallyEntry = entry;
          break;
        }
      }

      if (finallyEntry &&
          (type === "break" ||
           type === "continue") &&
          finallyEntry.tryLoc <= arg &&
          arg <= finallyEntry.finallyLoc) {
        // Ignore the finally entry if control is not jumping to a
        // location outside the try/catch block.
        finallyEntry = null;
      }

      var record = finallyEntry ? finallyEntry.completion : {};
      record.type = type;
      record.arg = arg;

      if (finallyEntry) {
        this.method = "next";
        this.next = finallyEntry.finallyLoc;
        return ContinueSentinel;
      }

      return this.complete(record);
    },

    complete: function(record, afterLoc) {
      if (record.type === "throw") {
        throw record.arg;
      }

      if (record.type === "break" ||
          record.type === "continue") {
        this.next = record.arg;
      } else if (record.type === "return") {
        this.rval = this.arg = record.arg;
        this.method = "return";
        this.next = "end";
      } else if (record.type === "normal" && afterLoc) {
        this.next = afterLoc;
      }

      return ContinueSentinel;
    },

    finish: function(finallyLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.finallyLoc === finallyLoc) {
          this.complete(entry.completion, entry.afterLoc);
          resetTryEntry(entry);
          return ContinueSentinel;
        }
      }
    },

    "catch": function(tryLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc === tryLoc) {
          var record = entry.completion;
          if (record.type === "throw") {
            var thrown = record.arg;
            resetTryEntry(entry);
          }
          return thrown;
        }
      }

      // The context.catch method must only be called with a location
      // argument that corresponds to a known catch block.
      throw new Error("illegal catch attempt");
    },

    delegateYield: function(iterable, resultName, nextLoc) {
      this.delegate = {
        iterator: values(iterable),
        resultName: resultName,
        nextLoc: nextLoc
      };

      if (this.method === "next") {
        // Deliberately forget the last sent value so that we don't
        // accidentally pass it on to the delegate.
        this.arg = undefined;
      }

      return ContinueSentinel;
    }
  };
})(
  // Among the various tricks for obtaining a reference to the global
  // object, this seems to be the most reliable technique that does not
  // use indirect eval (which violates Content Security Policy).
  typeof global === "object" ? global :
  typeof window === "object" ? window :
  typeof self === "object" ? self : this
);

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)))

/***/ }),
/* 401 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(402);
module.exports = __webpack_require__(26).RegExp.escape;


/***/ }),
/* 402 */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/benjamingr/RexExp.escape
var $export = __webpack_require__(0);
var $re = __webpack_require__(403)(/[\\^$*+?.()|[\]{}]/g, '\\$&');

$export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } });


/***/ }),
/* 403 */
/***/ (function(module, exports) {

module.exports = function (regExp, replace) {
  var replacer = replace === Object(replace) ? function (part) {
    return replace[part];
  } : replace;
  return function (it) {
    return String(it).replace(regExp, replacer);
  };
};


/***/ }),
/* 404 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */



// Shimming starts here.
(function() {
  // Utils.
  var logging = __webpack_require__(24).log;
  var browserDetails = __webpack_require__(24).browserDetails;
  // Export to the adapter global object visible in the browser.
  module.exports.browserDetails = browserDetails;
  module.exports.extractVersion = __webpack_require__(24).extractVersion;
  module.exports.disableLog = __webpack_require__(24).disableLog;

  // Uncomment the line below if you want logging to occur, including logging
  // for the switch statement below. Can also be turned on in the browser via
  // adapter.disableLog(false), but then logging from the switch statement below
  // will not appear.
  // require('./utils').disableLog(false);

  // Browser shims.
  var chromeShim = __webpack_require__(405) || null;
  var edgeShim = __webpack_require__(407) || null;
  var firefoxShim = __webpack_require__(410) || null;
  var safariShim = __webpack_require__(412) || null;

  // Shim browser if found.
  switch (browserDetails.browser) {
    case 'opera': // fallthrough as it uses chrome shims
    case 'chrome':
      if (!chromeShim || !chromeShim.shimPeerConnection) {
        logging('Chrome shim is not included in this adapter release.');
        return;
      }
      logging('adapter.js shimming chrome.');
      // Export to the adapter global object visible in the browser.
      module.exports.browserShim = chromeShim;

      chromeShim.shimGetUserMedia();
      chromeShim.shimMediaStream();
      chromeShim.shimSourceObject();
      chromeShim.shimPeerConnection();
      chromeShim.shimOnTrack();
      break;
    case 'firefox':
      if (!firefoxShim || !firefoxShim.shimPeerConnection) {
        logging('Firefox shim is not included in this adapter release.');
        return;
      }
      logging('adapter.js shimming firefox.');
      // Export to the adapter global object visible in the browser.
      module.exports.browserShim = firefoxShim;

      firefoxShim.shimGetUserMedia();
      firefoxShim.shimSourceObject();
      firefoxShim.shimPeerConnection();
      firefoxShim.shimOnTrack();
      break;
    case 'edge':
      if (!edgeShim || !edgeShim.shimPeerConnection) {
        logging('MS edge shim is not included in this adapter release.');
        return;
      }
      logging('adapter.js shimming edge.');
      // Export to the adapter global object visible in the browser.
      module.exports.browserShim = edgeShim;

      edgeShim.shimGetUserMedia();
      edgeShim.shimPeerConnection();
      break;
    case 'safari':
      if (!safariShim) {
        logging('Safari shim is not included in this adapter release.');
        return;
      }
      logging('adapter.js shimming safari.');
      // Export to the adapter global object visible in the browser.
      module.exports.browserShim = safariShim;

      safariShim.shimGetUserMedia();
      break;
    default:
      logging('Unsupported browser!');
  }
})();


/***/ }),
/* 405 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */

var logging = __webpack_require__(24).log;
var browserDetails = __webpack_require__(24).browserDetails;

var chromeShim = {
  shimMediaStream: function() {
    window.MediaStream = window.MediaStream || window.webkitMediaStream;
  },

  shimOnTrack: function() {
    if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in
        window.RTCPeerConnection.prototype)) {
      Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', {
        get: function() {
          return this._ontrack;
        },
        set: function(f) {
          var self = this;
          if (this._ontrack) {
            this.removeEventListener('track', this._ontrack);
            this.removeEventListener('addstream', this._ontrackpoly);
          }
          this.addEventListener('track', this._ontrack = f);
          this.addEventListener('addstream', this._ontrackpoly = function(e) {
            // onaddstream does not fire when a track is added to an existing
            // stream. But stream.onaddtrack is implemented so we use that.
            e.stream.addEventListener('addtrack', function(te) {
              var event = new Event('track');
              event.track = te.track;
              event.receiver = {track: te.track};
              event.streams = [e.stream];
              self.dispatchEvent(event);
            });
            e.stream.getTracks().forEach(function(track) {
              var event = new Event('track');
              event.track = track;
              event.receiver = {track: track};
              event.streams = [e.stream];
              this.dispatchEvent(event);
            }.bind(this));
          }.bind(this));
        }
      });
    }
  },

  shimSourceObject: function() {
    if (typeof window === 'object') {
      if (window.HTMLMediaElement &&
        !('srcObject' in window.HTMLMediaElement.prototype)) {
        // Shim the srcObject property, once, when HTMLMediaElement is found.
        Object.defineProperty(window.HTMLMediaElement.prototype, 'srcObject', {
          get: function() {
            return this._srcObject;
          },
          set: function(stream) {
            var self = this;
            // Use _srcObject as a private property for this shim
            this._srcObject = stream;
            if (this.src) {
              URL.revokeObjectURL(this.src);
            }

            if (!stream) {
              this.src = '';
              return;
            }
            this.src = URL.createObjectURL(stream);
            // We need to recreate the blob url when a track is added or
            // removed. Doing it manually since we want to avoid a recursion.
            stream.addEventListener('addtrack', function() {
              if (self.src) {
                URL.revokeObjectURL(self.src);
              }
              self.src = URL.createObjectURL(stream);
            });
            stream.addEventListener('removetrack', function() {
              if (self.src) {
                URL.revokeObjectURL(self.src);
              }
              self.src = URL.createObjectURL(stream);
            });
          }
        });
      }
    }
  },

  shimPeerConnection: function() {
    // The RTCPeerConnection object.
    window.RTCPeerConnection = function(pcConfig, pcConstraints) {
      // Translate iceTransportPolicy to iceTransports,
      // see https://code.google.com/p/webrtc/issues/detail?id=4869
      logging('PeerConnection');
      if (pcConfig && pcConfig.iceTransportPolicy) {
        pcConfig.iceTransports = pcConfig.iceTransportPolicy;
      }

      var pc = new webkitRTCPeerConnection(pcConfig, pcConstraints);
      var origGetStats = pc.getStats.bind(pc);
      pc.getStats = function(selector, successCallback, errorCallback) {
        var self = this;
        var args = arguments;

        // If selector is a function then we are in the old style stats so just
        // pass back the original getStats format to avoid breaking old users.
        if (arguments.length > 0 && typeof selector === 'function') {
          return origGetStats(selector, successCallback);
        }

        var fixChromeStats_ = function(response) {
          var standardReport = {};
          var reports = response.result();
          reports.forEach(function(report) {
            var standardStats = {
              id: report.id,
              timestamp: report.timestamp,
              type: report.type
            };
            report.names().forEach(function(name) {
              standardStats[name] = report.stat(name);
            });
            standardReport[standardStats.id] = standardStats;
          });

          return standardReport;
        };

        // shim getStats with maplike support
        var makeMapStats = function(stats, legacyStats) {
          var map = new Map(Object.keys(stats).map(function(key) {
            return[key, stats[key]];
          }));
          legacyStats = legacyStats || stats;
          Object.keys(legacyStats).forEach(function(key) {
            map[key] = legacyStats[key];
          });
          return map;
        };

        if (arguments.length >= 2) {
          var successCallbackWrapper_ = function(response) {
            args[1](makeMapStats(fixChromeStats_(response)));
          };

          return origGetStats.apply(this, [successCallbackWrapper_,
              arguments[0]]);
        }

        // promise-support
        return new Promise(function(resolve, reject) {
          if (args.length === 1 && typeof selector === 'object') {
            origGetStats.apply(self, [
              function(response) {
                resolve(makeMapStats(fixChromeStats_(response)));
              }, reject]);
          } else {
            // Preserve legacy chrome stats only on legacy access of stats obj
            origGetStats.apply(self, [
              function(response) {
                resolve(makeMapStats(fixChromeStats_(response),
                    response.result()));
              }, reject]);
          }
        }).then(successCallback, errorCallback);
      };

      return pc;
    };
    window.RTCPeerConnection.prototype = webkitRTCPeerConnection.prototype;

    // wrap static methods. Currently just generateCertificate.
    if (webkitRTCPeerConnection.generateCertificate) {
      Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', {
        get: function() {
          return webkitRTCPeerConnection.generateCertificate;
        }
      });
    }

    ['createOffer', 'createAnswer'].forEach(function(method) {
      var nativeMethod = webkitRTCPeerConnection.prototype[method];
      webkitRTCPeerConnection.prototype[method] = function() {
        var self = this;
        if (arguments.length < 1 || (arguments.length === 1 &&
            typeof arguments[0] === 'object')) {
          var opts = arguments.length === 1 ? arguments[0] : undefined;
          return new Promise(function(resolve, reject) {
            nativeMethod.apply(self, [resolve, reject, opts]);
          });
        }
        return nativeMethod.apply(this, arguments);
      };
    });

    // add promise support -- natively available in Chrome 51
    if (browserDetails.version < 51) {
      ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate']
          .forEach(function(method) {
            var nativeMethod = webkitRTCPeerConnection.prototype[method];
            webkitRTCPeerConnection.prototype[method] = function() {
              var args = arguments;
              var self = this;
              var promise = new Promise(function(resolve, reject) {
                nativeMethod.apply(self, [args[0], resolve, reject]);
              });
              if (args.length < 2) {
                return promise;
              }
              return promise.then(function() {
                args[1].apply(null, []);
              },
              function(err) {
                if (args.length >= 3) {
                  args[2].apply(null, [err]);
                }
              });
            };
          });
    }

    // support for addIceCandidate(null)
    var nativeAddIceCandidate =
        RTCPeerConnection.prototype.addIceCandidate;
    RTCPeerConnection.prototype.addIceCandidate = function() {
      return arguments[0] === null ? Promise.resolve()
          : nativeAddIceCandidate.apply(this, arguments);
    };

    // shim implicit creation of RTCSessionDescription/RTCIceCandidate
    ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate']
        .forEach(function(method) {
          var nativeMethod = webkitRTCPeerConnection.prototype[method];
          webkitRTCPeerConnection.prototype[method] = function() {
            arguments[0] = new ((method === 'addIceCandidate') ?
                RTCIceCandidate : RTCSessionDescription)(arguments[0]);
            return nativeMethod.apply(this, arguments);
          };
        });
  },

  // Attach a media stream to an element.
  attachMediaStream: function(element, stream) {
    logging('DEPRECATED, attachMediaStream will soon be removed.');
    if (browserDetails.version >= 43) {
      element.srcObject = stream;
    } else if (typeof element.src !== 'undefined') {
      element.src = URL.createObjectURL(stream);
    } else {
      logging('Error attaching stream to element.');
    }
  },

  reattachMediaStream: function(to, from) {
    logging('DEPRECATED, reattachMediaStream will soon be removed.');
    if (browserDetails.version >= 43) {
      to.srcObject = from.srcObject;
    } else {
      to.src = from.src;
    }
  }
};


// Expose public methods.
module.exports = {
  shimMediaStream: chromeShim.shimMediaStream,
  shimOnTrack: chromeShim.shimOnTrack,
  shimSourceObject: chromeShim.shimSourceObject,
  shimPeerConnection: chromeShim.shimPeerConnection,
  shimGetUserMedia: __webpack_require__(406),
  attachMediaStream: chromeShim.attachMediaStream,
  reattachMediaStream: chromeShim.reattachMediaStream
};


/***/ }),
/* 406 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */

var logging = __webpack_require__(24).log;

// Expose public methods.
module.exports = function() {
  var constraintsToChrome_ = function(c) {
    if (typeof c !== 'object' || c.mandatory || c.optional) {
      return c;
    }
    var cc = {};
    Object.keys(c).forEach(function(key) {
      if (key === 'require' || key === 'advanced' || key === 'mediaSource') {
        return;
      }
      var r = (typeof c[key] === 'object') ? c[key] : {ideal: c[key]};
      if (r.exact !== undefined && typeof r.exact === 'number') {
        r.min = r.max = r.exact;
      }
      var oldname_ = function(prefix, name) {
        if (prefix) {
          return prefix + name.charAt(0).toUpperCase() + name.slice(1);
        }
        return (name === 'deviceId') ? 'sourceId' : name;
      };
      if (r.ideal !== undefined) {
        cc.optional = cc.optional || [];
        var oc = {};
        if (typeof r.ideal === 'number') {
          oc[oldname_('min', key)] = r.ideal;
          cc.optional.push(oc);
          oc = {};
          oc[oldname_('max', key)] = r.ideal;
          cc.optional.push(oc);
        } else {
          oc[oldname_('', key)] = r.ideal;
          cc.optional.push(oc);
        }
      }
      if (r.exact !== undefined && typeof r.exact !== 'number') {
        cc.mandatory = cc.mandatory || {};
        cc.mandatory[oldname_('', key)] = r.exact;
      } else {
        ['min', 'max'].forEach(function(mix) {
          if (r[mix] !== undefined) {
            cc.mandatory = cc.mandatory || {};
            cc.mandatory[oldname_(mix, key)] = r[mix];
          }
        });
      }
    });
    if (c.advanced) {
      cc.optional = (cc.optional || []).concat(c.advanced);
    }
    return cc;
  };

  var shimConstraints_ = function(constraints, func) {
    constraints = JSON.parse(JSON.stringify(constraints));
    if (constraints && constraints.audio) {
      constraints.audio = constraintsToChrome_(constraints.audio);
    }
    if (constraints && typeof constraints.video === 'object') {
      // Shim facingMode for mobile, where it defaults to "user".
      var face = constraints.video.facingMode;
      face = face && ((typeof face === 'object') ? face : {ideal: face});

      if ((face && (face.exact === 'user' || face.exact === 'environment' ||
                    face.ideal === 'user' || face.ideal === 'environment')) &&
          !(navigator.mediaDevices.getSupportedConstraints &&
            navigator.mediaDevices.getSupportedConstraints().facingMode)) {
        delete constraints.video.facingMode;
        if (face.exact === 'environment' || face.ideal === 'environment') {
          // Look for "back" in label, or use last cam (typically back cam).
          return navigator.mediaDevices.enumerateDevices()
          .then(function(devices) {
            devices = devices.filter(function(d) {
              return d.kind === 'videoinput';
            });
            var back = devices.find(function(d) {
              return d.label.toLowerCase().indexOf('back') !== -1;
            }) || (devices.length && devices[devices.length - 1]);
            if (back) {
              constraints.video.deviceId = face.exact ? {exact: back.deviceId} :
                                                        {ideal: back.deviceId};
            }
            constraints.video = constraintsToChrome_(constraints.video);
            logging('chrome: ' + JSON.stringify(constraints));
            return func(constraints);
          });
        }
      }
      constraints.video = constraintsToChrome_(constraints.video);
    }
    logging('chrome: ' + JSON.stringify(constraints));
    return func(constraints);
  };

  var shimError_ = function(e) {
    return {
      name: {
        PermissionDeniedError: 'NotAllowedError',
        ConstraintNotSatisfiedError: 'OverconstrainedError'
      }[e.name] || e.name,
      message: e.message,
      constraint: e.constraintName,
      toString: function() {
        return this.name + (this.message && ': ') + this.message;
      }
    };
  };

  var getUserMedia_ = function(constraints, onSuccess, onError) {
    shimConstraints_(constraints, function(c) {
      navigator.webkitGetUserMedia(c, onSuccess, function(e) {
        onError(shimError_(e));
      });
    });
  };

  navigator.getUserMedia = getUserMedia_;

  // Returns the result of getUserMedia as a Promise.
  var getUserMediaPromise_ = function(constraints) {
    return new Promise(function(resolve, reject) {
      navigator.getUserMedia(constraints, resolve, reject);
    });
  };

  if (!navigator.mediaDevices) {
    navigator.mediaDevices = {
      getUserMedia: getUserMediaPromise_,
      enumerateDevices: function() {
        return new Promise(function(resolve) {
          var kinds = {audio: 'audioinput', video: 'videoinput'};
          return MediaStreamTrack.getSources(function(devices) {
            resolve(devices.map(function(device) {
              return {label: device.label,
                      kind: kinds[device.kind],
                      deviceId: device.id,
                      groupId: ''};
            }));
          });
        });
      }
    };
  }

  // A shim for getUserMedia method on the mediaDevices object.
  // TODO(KaptenJansson) remove once implemented in Chrome stable.
  if (!navigator.mediaDevices.getUserMedia) {
    navigator.mediaDevices.getUserMedia = function(constraints) {
      return getUserMediaPromise_(constraints);
    };
  } else {
    // Even though Chrome 45 has navigator.mediaDevices and a getUserMedia
    // function which returns a Promise, it does not accept spec-style
    // constraints.
    var origGetUserMedia = navigator.mediaDevices.getUserMedia.
        bind(navigator.mediaDevices);
    navigator.mediaDevices.getUserMedia = function(cs) {
      return shimConstraints_(cs, function(c) {
        return origGetUserMedia(c).catch(function(e) {
          return Promise.reject(shimError_(e));
        });
      });
    };
  }

  // Dummy devicechange event methods.
  // TODO(KaptenJansson) remove once implemented in Chrome stable.
  if (typeof navigator.mediaDevices.addEventListener === 'undefined') {
    navigator.mediaDevices.addEventListener = function() {
      logging('Dummy mediaDevices.addEventListener called.');
    };
  }
  if (typeof navigator.mediaDevices.removeEventListener === 'undefined') {
    navigator.mediaDevices.removeEventListener = function() {
      logging('Dummy mediaDevices.removeEventListener called.');
    };
  }
};


/***/ }),
/* 407 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */


var SDPUtils = __webpack_require__(408);
var logging = __webpack_require__(24).log;

var edgeShim = {
  shimPeerConnection: function() {
    if (window.RTCIceGatherer) {
      // ORTC defines an RTCIceCandidate object but no constructor.
      // Not implemented in Edge.
      if (!window.RTCIceCandidate) {
        window.RTCIceCandidate = function(args) {
          return args;
        };
      }
      // ORTC does not have a session description object but
      // other browsers (i.e. Chrome) that will support both PC and ORTC
      // in the future might have this defined already.
      if (!window.RTCSessionDescription) {
        window.RTCSessionDescription = function(args) {
          return args;
        };
      }
    }

    window.RTCPeerConnection = function(config) {
      var self = this;

      var _eventTarget = document.createDocumentFragment();
      ['addEventListener', 'removeEventListener', 'dispatchEvent']
          .forEach(function(method) {
            self[method] = _eventTarget[method].bind(_eventTarget);
          });

      this.onicecandidate = null;
      this.onaddstream = null;
      this.ontrack = null;
      this.onremovestream = null;
      this.onsignalingstatechange = null;
      this.oniceconnectionstatechange = null;
      this.onnegotiationneeded = null;
      this.ondatachannel = null;

      this.localStreams = [];
      this.remoteStreams = [];
      this.getLocalStreams = function() {
        return self.localStreams;
      };
      this.getRemoteStreams = function() {
        return self.remoteStreams;
      };

      this.localDescription = new RTCSessionDescription({
        type: '',
        sdp: ''
      });
      this.remoteDescription = new RTCSessionDescription({
        type: '',
        sdp: ''
      });
      this.signalingState = 'stable';
      this.iceConnectionState = 'new';
      this.iceGatheringState = 'new';

      this.iceOptions = {
        gatherPolicy: 'all',
        iceServers: []
      };
      if (config && config.iceTransportPolicy) {
        switch (config.iceTransportPolicy) {
          case 'all':
          case 'relay':
            this.iceOptions.gatherPolicy = config.iceTransportPolicy;
            break;
          case 'none':
            // FIXME: remove once implementation and spec have added this.
            throw new TypeError('iceTransportPolicy "none" not supported');
          default:
            // don't set iceTransportPolicy.
            break;
        }
      }
      this.usingBundle = config && config.bundlePolicy === 'max-bundle';

      if (config && config.iceServers) {
        // Edge does not like
        // 1) stun:
        // 2) turn: that does not have all of turn:host:port?transport=udp
        var iceServers = JSON.parse(JSON.stringify(config.iceServers));
        this.iceOptions.iceServers = iceServers.filter(function(server) {
          if (server && server.urls) {
            var urls = server.urls;
            if (typeof urls === 'string') {
              urls = [urls];
            }
            urls = urls.filter(function(url) {
              return url.indexOf('turn:') === 0 &&
                  url.indexOf('transport=udp') !== -1;
            })[0];
            return !!urls;
          }
          return false;
        });
      }

      // per-track iceGathers, iceTransports, dtlsTransports, rtpSenders, ...
      // everything that is needed to describe a SDP m-line.
      this.transceivers = [];

      // since the iceGatherer is currently created in createOffer but we
      // must not emit candidates until after setLocalDescription we buffer
      // them in this array.
      this._localIceCandidatesBuffer = [];
    };

    window.RTCPeerConnection.prototype._emitBufferedCandidates = function() {
      var self = this;
      var sections = SDPUtils.splitSections(self.localDescription.sdp);
      // FIXME: need to apply ice candidates in a way which is async but
      // in-order
      this._localIceCandidatesBuffer.forEach(function(event) {
        var end = !event.candidate || Object.keys(event.candidate).length === 0;
        if (end) {
          for (var j = 1; j < sections.length; j++) {
            if (sections[j].indexOf('\r\na=end-of-candidates\r\n') === -1) {
              sections[j] += 'a=end-of-candidates\r\n';
            }
          }
        } else if (event.candidate.candidate.indexOf('typ endOfCandidates')
            === -1) {
          sections[event.candidate.sdpMLineIndex + 1] +=
              'a=' + event.candidate.candidate + '\r\n';
        }
        self.localDescription.sdp = sections.join('');
        self.dispatchEvent(event);
        if (self.onicecandidate !== null) {
          self.onicecandidate(event);
        }
        if (!event.candidate && self.iceGatheringState !== 'complete') {
          var complete = self.transceivers.every(function(transceiver) {
            return transceiver.iceGatherer &&
                transceiver.iceGatherer.state === 'completed';
          });
          if (complete) {
            self.iceGatheringState = 'complete';
          }
        }
      });
      this._localIceCandidatesBuffer = [];
    };

    window.RTCPeerConnection.prototype.addStream = function(stream) {
      // Clone is necessary for local demos mostly, attaching directly
      // to two different senders does not work (build 10547).
      this.localStreams.push(stream.clone());
      this._maybeFireNegotiationNeeded();
    };

    window.RTCPeerConnection.prototype.removeStream = function(stream) {
      var idx = this.localStreams.indexOf(stream);
      if (idx > -1) {
        this.localStreams.splice(idx, 1);
        this._maybeFireNegotiationNeeded();
      }
    };

    window.RTCPeerConnection.prototype.getSenders = function() {
      return this.transceivers.filter(function(transceiver) {
        return !!transceiver.rtpSender;
      })
      .map(function(transceiver) {
        return transceiver.rtpSender;
      });
    };

    window.RTCPeerConnection.prototype.getReceivers = function() {
      return this.transceivers.filter(function(transceiver) {
        return !!transceiver.rtpReceiver;
      })
      .map(function(transceiver) {
        return transceiver.rtpReceiver;
      });
    };

    // Determines the intersection of local and remote capabilities.
    window.RTCPeerConnection.prototype._getCommonCapabilities =
        function(localCapabilities, remoteCapabilities) {
          var commonCapabilities = {
            codecs: [],
            headerExtensions: [],
            fecMechanisms: []
          };
          localCapabilities.codecs.forEach(function(lCodec) {
            for (var i = 0; i < remoteCapabilities.codecs.length; i++) {
              var rCodec = remoteCapabilities.codecs[i];
              if (lCodec.name.toLowerCase() === rCodec.name.toLowerCase() &&
                  lCodec.clockRate === rCodec.clockRate &&
                  lCodec.numChannels === rCodec.numChannels) {
                // push rCodec so we reply with offerer payload type
                commonCapabilities.codecs.push(rCodec);

                // FIXME: also need to determine intersection between
                // .rtcpFeedback and .parameters
                break;
              }
            }
          });

          localCapabilities.headerExtensions
              .forEach(function(lHeaderExtension) {
                for (var i = 0; i < remoteCapabilities.headerExtensions.length;
                     i++) {
                  var rHeaderExtension = remoteCapabilities.headerExtensions[i];
                  if (lHeaderExtension.uri === rHeaderExtension.uri) {
                    commonCapabilities.headerExtensions.push(rHeaderExtension);
                    break;
                  }
                }
              });

          // FIXME: fecMechanisms
          return commonCapabilities;
        };

    // Create ICE gatherer, ICE transport and DTLS transport.
    window.RTCPeerConnection.prototype._createIceAndDtlsTransports =
        function(mid, sdpMLineIndex) {
          var self = this;
          var iceGatherer = new RTCIceGatherer(self.iceOptions);
          var iceTransport = new RTCIceTransport(iceGatherer);
          iceGatherer.onlocalcandidate = function(evt) {
            var event = new Event('icecandidate');
            event.candidate = {sdpMid: mid, sdpMLineIndex: sdpMLineIndex};

            var cand = evt.candidate;
            var end = !cand || Object.keys(cand).length === 0;
            // Edge emits an empty object for RTCIceCandidateComplete‥
            if (end) {
              // polyfill since RTCIceGatherer.state is not implemented in
              // Edge 10547 yet.
              if (iceGatherer.state === undefined) {
                iceGatherer.state = 'completed';
              }

              // Emit a candidate with type endOfCandidates to make the samples
              // work. Edge requires addIceCandidate with this empty candidate
              // to start checking. The real solution is to signal
              // end-of-candidates to the other side when getting the null
              // candidate but some apps (like the samples) don't do that.
              event.candidate.candidate =
                  'candidate:1 1 udp 1 0.0.0.0 9 typ endOfCandidates';
            } else {
              // RTCIceCandidate doesn't have a component, needs to be added
              cand.component = iceTransport.component === 'RTCP' ? 2 : 1;
              event.candidate.candidate = SDPUtils.writeCandidate(cand);
            }

            // update local description.
            var sections = SDPUtils.splitSections(self.localDescription.sdp);
            if (event.candidate.candidate.indexOf('typ endOfCandidates')
                === -1) {
              sections[event.candidate.sdpMLineIndex + 1] +=
                  'a=' + event.candidate.candidate + '\r\n';
            } else {
              sections[event.candidate.sdpMLineIndex + 1] +=
                  'a=end-of-candidates\r\n';
            }
            self.localDescription.sdp = sections.join('');

            var complete = self.transceivers.every(function(transceiver) {
              return transceiver.iceGatherer &&
                  transceiver.iceGatherer.state === 'completed';
            });

            // Emit candidate if localDescription is set.
            // Also emits null candidate when all gatherers are complete.
            switch (self.iceGatheringState) {
              case 'new':
                self._localIceCandidatesBuffer.push(event);
                if (end && complete) {
                  self._localIceCandidatesBuffer.push(
                      new Event('icecandidate'));
                }
                break;
              case 'gathering':
                self._emitBufferedCandidates();
                self.dispatchEvent(event);
                if (self.onicecandidate !== null) {
                  self.onicecandidate(event);
                }
                if (complete) {
                  self.dispatchEvent(new Event('icecandidate'));
                  if (self.onicecandidate !== null) {
                    self.onicecandidate(new Event('icecandidate'));
                  }
                  self.iceGatheringState = 'complete';
                }
                break;
              case 'complete':
                // should not happen... currently!
                break;
              default: // no-op.
                break;
            }
          };
          iceTransport.onicestatechange = function() {
            self._updateConnectionState();
          };

          var dtlsTransport = new RTCDtlsTransport(iceTransport);
          dtlsTransport.ondtlsstatechange = function() {
            self._updateConnectionState();
          };
          dtlsTransport.onerror = function() {
            // onerror does not set state to failed by itself.
            dtlsTransport.state = 'failed';
            self._updateConnectionState();
          };

          return {
            iceGatherer: iceGatherer,
            iceTransport: iceTransport,
            dtlsTransport: dtlsTransport
          };
        };

    // Start the RTP Sender and Receiver for a transceiver.
    window.RTCPeerConnection.prototype._transceive = function(transceiver,
        send, recv) {
      var params = this._getCommonCapabilities(transceiver.localCapabilities,
          transceiver.remoteCapabilities);
      if (send && transceiver.rtpSender) {
        params.encodings = transceiver.sendEncodingParameters;
        params.rtcp = {
          cname: SDPUtils.localCName
        };
        if (transceiver.recvEncodingParameters.length) {
          params.rtcp.ssrc = transceiver.recvEncodingParameters[0].ssrc;
        }
        transceiver.rtpSender.send(params);
      }
      if (recv && transceiver.rtpReceiver) {
        params.encodings = transceiver.recvEncodingParameters;
        params.rtcp = {
          cname: transceiver.cname
        };
        if (transceiver.sendEncodingParameters.length) {
          params.rtcp.ssrc = transceiver.sendEncodingParameters[0].ssrc;
        }
        transceiver.rtpReceiver.receive(params);
      }
    };

    window.RTCPeerConnection.prototype.setLocalDescription =
        function(description) {
          var self = this;
          var sections;
          var sessionpart;
          if (description.type === 'offer') {
            // FIXME: What was the purpose of this empty if statement?
            // if (!this._pendingOffer) {
            // } else {
            if (this._pendingOffer) {
              // VERY limited support for SDP munging. Limited to:
              // * changing the order of codecs
              sections = SDPUtils.splitSections(description.sdp);
              sessionpart = sections.shift();
              sections.forEach(function(mediaSection, sdpMLineIndex) {
                var caps = SDPUtils.parseRtpParameters(mediaSection);
                self._pendingOffer[sdpMLineIndex].localCapabilities = caps;
              });
              this.transceivers = this._pendingOffer;
              delete this._pendingOffer;
            }
          } else if (description.type === 'answer') {
            sections = SDPUtils.splitSections(self.remoteDescription.sdp);
            sessionpart = sections.shift();
            var isIceLite = SDPUtils.matchPrefix(sessionpart,
                'a=ice-lite').length > 0;
            sections.forEach(function(mediaSection, sdpMLineIndex) {
              var transceiver = self.transceivers[sdpMLineIndex];
              var iceGatherer = transceiver.iceGatherer;
              var iceTransport = transceiver.iceTransport;
              var dtlsTransport = transceiver.dtlsTransport;
              var localCapabilities = transceiver.localCapabilities;
              var remoteCapabilities = transceiver.remoteCapabilities;
              var rejected = mediaSection.split('\n', 1)[0]
                  .split(' ', 2)[1] === '0';

              if (!rejected) {
                var remoteIceParameters = SDPUtils.getIceParameters(
                    mediaSection, sessionpart);
                if (isIceLite) {
                  var cands = SDPUtils.matchPrefix(mediaSection, 'a=candidate:')
                  .map(function(cand) {
                    return SDPUtils.parseCandidate(cand);
                  })
                  .filter(function(cand) {
                    return cand.component === '1';
                  });
                  // ice-lite only includes host candidates in the SDP so we can
                  // use setRemoteCandidates (which implies an
                  // RTCIceCandidateComplete)
                  if (cands.length) {
                    iceTransport.setRemoteCandidates(cands);
                  }
                }
                var remoteDtlsParameters = SDPUtils.getDtlsParameters(
                    mediaSection, sessionpart);
                if (isIceLite) {
                  remoteDtlsParameters.role = 'server';
                }

                if (!self.usingBundle || sdpMLineIndex === 0) {
                  iceTransport.start(iceGatherer, remoteIceParameters,
                      isIceLite ? 'controlling' : 'controlled');
                  dtlsTransport.start(remoteDtlsParameters);
                }

                // Calculate intersection of capabilities.
                var params = self._getCommonCapabilities(localCapabilities,
                    remoteCapabilities);

                // Start the RTCRtpSender. The RTCRtpReceiver for this
                // transceiver has already been started in setRemoteDescription.
                self._transceive(transceiver,
                    params.codecs.length > 0,
                    false);
              }
            });
          }

          this.localDescription = {
            type: description.type,
            sdp: description.sdp
          };
          switch (description.type) {
            case 'offer':
              this._updateSignalingState('have-local-offer');
              break;
            case 'answer':
              this._updateSignalingState('stable');
              break;
            default:
              throw new TypeError('unsupported type "' + description.type +
                  '"');
          }

          // If a success callback was provided, emit ICE candidates after it
          // has been executed. Otherwise, emit callback after the Promise is
          // resolved.
          var hasCallback = arguments.length > 1 &&
            typeof arguments[1] === 'function';
          if (hasCallback) {
            var cb = arguments[1];
            window.setTimeout(function() {
              cb();
              if (self.iceGatheringState === 'new') {
                self.iceGatheringState = 'gathering';
              }
              self._emitBufferedCandidates();
            }, 0);
          }
          var p = Promise.resolve();
          p.then(function() {
            if (!hasCallback) {
              if (self.iceGatheringState === 'new') {
                self.iceGatheringState = 'gathering';
              }
              // Usually candidates will be emitted earlier.
              window.setTimeout(self._emitBufferedCandidates.bind(self), 500);
            }
          });
          return p;
        };

    window.RTCPeerConnection.prototype.setRemoteDescription =
        function(description) {
          var self = this;
          var stream = new MediaStream();
          var receiverList = [];
          var sections = SDPUtils.splitSections(description.sdp);
          var sessionpart = sections.shift();
          var isIceLite = SDPUtils.matchPrefix(sessionpart,
              'a=ice-lite').length > 0;
          this.usingBundle = SDPUtils.matchPrefix(sessionpart,
              'a=group:BUNDLE ').length > 0;
          sections.forEach(function(mediaSection, sdpMLineIndex) {
            var lines = SDPUtils.splitLines(mediaSection);
            var mline = lines[0].substr(2).split(' ');
            var kind = mline[0];
            var rejected = mline[1] === '0';
            var direction = SDPUtils.getDirection(mediaSection, sessionpart);

            var transceiver;
            var iceGatherer;
            var iceTransport;
            var dtlsTransport;
            var rtpSender;
            var rtpReceiver;
            var sendEncodingParameters;
            var recvEncodingParameters;
            var localCapabilities;

            var track;
            // FIXME: ensure the mediaSection has rtcp-mux set.
            var remoteCapabilities = SDPUtils.parseRtpParameters(mediaSection);
            var remoteIceParameters;
            var remoteDtlsParameters;
            if (!rejected) {
              remoteIceParameters = SDPUtils.getIceParameters(mediaSection,
                  sessionpart);
              remoteDtlsParameters = SDPUtils.getDtlsParameters(mediaSection,
                  sessionpart);
              remoteDtlsParameters.role = 'client';
            }
            recvEncodingParameters =
                SDPUtils.parseRtpEncodingParameters(mediaSection);

            var mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:');
            if (mid.length) {
              mid = mid[0].substr(6);
            } else {
              mid = SDPUtils.generateIdentifier();
            }

            var cname;
            // Gets the first SSRC. Note that with RTX there might be multiple
            // SSRCs.
            var remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:')
                .map(function(line) {
                  return SDPUtils.parseSsrcMedia(line);
                })
                .filter(function(obj) {
                  return obj.attribute === 'cname';
                })[0];
            if (remoteSsrc) {
              cname = remoteSsrc.value;
            }

            var isComplete = SDPUtils.matchPrefix(mediaSection,
                'a=end-of-candidates').length > 0;
            var cands = SDPUtils.matchPrefix(mediaSection, 'a=candidate:')
                .map(function(cand) {
                  return SDPUtils.parseCandidate(cand);
                })
                .filter(function(cand) {
                  return cand.component === '1';
                });
            if (description.type === 'offer' && !rejected) {
              var transports = self.usingBundle && sdpMLineIndex > 0 ? {
                iceGatherer: self.transceivers[0].iceGatherer,
                iceTransport: self.transceivers[0].iceTransport,
                dtlsTransport: self.transceivers[0].dtlsTransport
              } : self._createIceAndDtlsTransports(mid, sdpMLineIndex);

              if (isComplete) {
                transports.iceTransport.setRemoteCandidates(cands);
              }

              localCapabilities = RTCRtpReceiver.getCapabilities(kind);
              sendEncodingParameters = [{
                ssrc: (2 * sdpMLineIndex + 2) * 1001
              }];

              rtpReceiver = new RTCRtpReceiver(transports.dtlsTransport, kind);

              track = rtpReceiver.track;
              receiverList.push([track, rtpReceiver]);
              // FIXME: not correct when there are multiple streams but that is
              // not currently supported in this shim.
              stream.addTrack(track);

              // FIXME: look at direction.
              if (self.localStreams.length > 0 &&
                  self.localStreams[0].getTracks().length >= sdpMLineIndex) {
                // FIXME: actually more complicated, needs to match types etc
                var localtrack = self.localStreams[0]
                    .getTracks()[sdpMLineIndex];
                rtpSender = new RTCRtpSender(localtrack,
                    transports.dtlsTransport);
              }

              self.transceivers[sdpMLineIndex] = {
                iceGatherer: transports.iceGatherer,
                iceTransport: transports.iceTransport,
                dtlsTransport: transports.dtlsTransport,
                localCapabilities: localCapabilities,
                remoteCapabilities: remoteCapabilities,
                rtpSender: rtpSender,
                rtpReceiver: rtpReceiver,
                kind: kind,
                mid: mid,
                cname: cname,
                sendEncodingParameters: sendEncodingParameters,
                recvEncodingParameters: recvEncodingParameters
              };
              // Start the RTCRtpReceiver now. The RTPSender is started in
              // setLocalDescription.
              self._transceive(self.transceivers[sdpMLineIndex],
                  false,
                  direction === 'sendrecv' || direction === 'sendonly');
            } else if (description.type === 'answer' && !rejected) {
              transceiver = self.transceivers[sdpMLineIndex];
              iceGatherer = transceiver.iceGatherer;
              iceTransport = transceiver.iceTransport;
              dtlsTransport = transceiver.dtlsTransport;
              rtpSender = transceiver.rtpSender;
              rtpReceiver = transceiver.rtpReceiver;
              sendEncodingParameters = transceiver.sendEncodingParameters;
              localCapabilities = transceiver.localCapabilities;

              self.transceivers[sdpMLineIndex].recvEncodingParameters =
                  recvEncodingParameters;
              self.transceivers[sdpMLineIndex].remoteCapabilities =
                  remoteCapabilities;
              self.transceivers[sdpMLineIndex].cname = cname;

              if ((isIceLite || isComplete) && cands.length) {
                iceTransport.setRemoteCandidates(cands);
              }
              if (!self.usingBundle || sdpMLineIndex === 0) {
                iceTransport.start(iceGatherer, remoteIceParameters,
                    'controlling');
                dtlsTransport.start(remoteDtlsParameters);
              }

              self._transceive(transceiver,
                  direction === 'sendrecv' || direction === 'recvonly',
                  direction === 'sendrecv' || direction === 'sendonly');

              if (rtpReceiver &&
                  (direction === 'sendrecv' || direction === 'sendonly')) {
                track = rtpReceiver.track;
                receiverList.push([track, rtpReceiver]);
                stream.addTrack(track);
              } else {
                // FIXME: actually the receiver should be created later.
                delete transceiver.rtpReceiver;
              }
            }
          });

          this.remoteDescription = {
            type: description.type,
            sdp: description.sdp
          };
          switch (description.type) {
            case 'offer':
              this._updateSignalingState('have-remote-offer');
              break;
            case 'answer':
              this._updateSignalingState('stable');
              break;
            default:
              throw new TypeError('unsupported type "' + description.type +
                  '"');
          }
          if (stream.getTracks().length) {
            self.remoteStreams.push(stream);
            window.setTimeout(function() {
              var event = new Event('addstream');
              event.stream = stream;
              self.dispatchEvent(event);
              if (self.onaddstream !== null) {
                window.setTimeout(function() {
                  self.onaddstream(event);
                }, 0);
              }

              receiverList.forEach(function(item) {
                var track = item[0];
                var receiver = item[1];
                var trackEvent = new Event('track');
                trackEvent.track = track;
                trackEvent.receiver = receiver;
                trackEvent.streams = [stream];
                self.dispatchEvent(event);
                if (self.ontrack !== null) {
                  window.setTimeout(function() {
                    self.ontrack(trackEvent);
                  }, 0);
                }
              });
            }, 0);
          }
          if (arguments.length > 1 && typeof arguments[1] === 'function') {
            window.setTimeout(arguments[1], 0);
          }
          return Promise.resolve();
        };

    window.RTCPeerConnection.prototype.close = function() {
      this.transceivers.forEach(function(transceiver) {
        /* not yet
        if (transceiver.iceGatherer) {
          transceiver.iceGatherer.close();
        }
        */
        if (transceiver.iceTransport) {
          transceiver.iceTransport.stop();
        }
        if (transceiver.dtlsTransport) {
          transceiver.dtlsTransport.stop();
        }
        if (transceiver.rtpSender) {
          transceiver.rtpSender.stop();
        }
        if (transceiver.rtpReceiver) {
          transceiver.rtpReceiver.stop();
        }
      });
      // FIXME: clean up tracks, local streams, remote streams, etc
      this._updateSignalingState('closed');
    };

    // Update the signaling state.
    window.RTCPeerConnection.prototype._updateSignalingState =
        function(newState) {
          this.signalingState = newState;
          var event = new Event('signalingstatechange');
          this.dispatchEvent(event);
          if (this.onsignalingstatechange !== null) {
            this.onsignalingstatechange(event);
          }
        };

    // Determine whether to fire the negotiationneeded event.
    window.RTCPeerConnection.prototype._maybeFireNegotiationNeeded =
        function() {
          // Fire away (for now).
          var event = new Event('negotiationneeded');
          this.dispatchEvent(event);
          if (this.onnegotiationneeded !== null) {
            this.onnegotiationneeded(event);
          }
        };

    // Update the connection state.
    window.RTCPeerConnection.prototype._updateConnectionState = function() {
      var self = this;
      var newState;
      var states = {
        'new': 0,
        closed: 0,
        connecting: 0,
        checking: 0,
        connected: 0,
        completed: 0,
        failed: 0
      };
      this.transceivers.forEach(function(transceiver) {
        states[transceiver.iceTransport.state]++;
        states[transceiver.dtlsTransport.state]++;
      });
      // ICETransport.completed and connected are the same for this purpose.
      states.connected += states.completed;

      newState = 'new';
      if (states.failed > 0) {
        newState = 'failed';
      } else if (states.connecting > 0 || states.checking > 0) {
        newState = 'connecting';
      } else if (states.disconnected > 0) {
        newState = 'disconnected';
      } else if (states.new > 0) {
        newState = 'new';
      } else if (states.connected > 0 || states.completed > 0) {
        newState = 'connected';
      }

      if (newState !== self.iceConnectionState) {
        self.iceConnectionState = newState;
        var event = new Event('iceconnectionstatechange');
        this.dispatchEvent(event);
        if (this.oniceconnectionstatechange !== null) {
          this.oniceconnectionstatechange(event);
        }
      }
    };

    window.RTCPeerConnection.prototype.createOffer = function() {
      var self = this;
      if (this._pendingOffer) {
        throw new Error('createOffer called while there is a pending offer.');
      }
      var offerOptions;
      if (arguments.length === 1 && typeof arguments[0] !== 'function') {
        offerOptions = arguments[0];
      } else if (arguments.length === 3) {
        offerOptions = arguments[2];
      }

      var tracks = [];
      var numAudioTracks = 0;
      var numVideoTracks = 0;
      // Default to sendrecv.
      if (this.localStreams.length) {
        numAudioTracks = this.localStreams[0].getAudioTracks().length;
        numVideoTracks = this.localStreams[0].getVideoTracks().length;
      }
      // Determine number of audio and video tracks we need to send/recv.
      if (offerOptions) {
        // Reject Chrome legacy constraints.
        if (offerOptions.mandatory || offerOptions.optional) {
          throw new TypeError(
              'Legacy mandatory/optional constraints not supported.');
        }
        if (offerOptions.offerToReceiveAudio !== undefined) {
          numAudioTracks = offerOptions.offerToReceiveAudio;
        }
        if (offerOptions.offerToReceiveVideo !== undefined) {
          numVideoTracks = offerOptions.offerToReceiveVideo;
        }
      }
      if (this.localStreams.length) {
        // Push local streams.
        this.localStreams[0].getTracks().forEach(function(track) {
          tracks.push({
            kind: track.kind,
            track: track,
            wantReceive: track.kind === 'audio' ?
                numAudioTracks > 0 : numVideoTracks > 0
          });
          if (track.kind === 'audio') {
            numAudioTracks--;
          } else if (track.kind === 'video') {
            numVideoTracks--;
          }
        });
      }
      // Create M-lines for recvonly streams.
      while (numAudioTracks > 0 || numVideoTracks > 0) {
        if (numAudioTracks > 0) {
          tracks.push({
            kind: 'audio',
            wantReceive: true
          });
          numAudioTracks--;
        }
        if (numVideoTracks > 0) {
          tracks.push({
            kind: 'video',
            wantReceive: true
          });
          numVideoTracks--;
        }
      }

      var sdp = SDPUtils.writeSessionBoilerplate();
      var transceivers = [];
      tracks.forEach(function(mline, sdpMLineIndex) {
        // For each track, create an ice gatherer, ice transport,
        // dtls transport, potentially rtpsender and rtpreceiver.
        var track = mline.track;
        var kind = mline.kind;
        var mid = SDPUtils.generateIdentifier();

        var transports = self.usingBundle && sdpMLineIndex > 0 ? {
          iceGatherer: transceivers[0].iceGatherer,
          iceTransport: transceivers[0].iceTransport,
          dtlsTransport: transceivers[0].dtlsTransport
        } : self._createIceAndDtlsTransports(mid, sdpMLineIndex);

        var localCapabilities = RTCRtpSender.getCapabilities(kind);
        var rtpSender;
        var rtpReceiver;

        // generate an ssrc now, to be used later in rtpSender.send
        var sendEncodingParameters = [{
          ssrc: (2 * sdpMLineIndex + 1) * 1001
        }];
        if (track) {
          rtpSender = new RTCRtpSender(track, transports.dtlsTransport);
        }

        if (mline.wantReceive) {
          rtpReceiver = new RTCRtpReceiver(transports.dtlsTransport, kind);
        }

        transceivers[sdpMLineIndex] = {
          iceGatherer: transports.iceGatherer,
          iceTransport: transports.iceTransport,
          dtlsTransport: transports.dtlsTransport,
          localCapabilities: localCapabilities,
          remoteCapabilities: null,
          rtpSender: rtpSender,
          rtpReceiver: rtpReceiver,
          kind: kind,
          mid: mid,
          sendEncodingParameters: sendEncodingParameters,
          recvEncodingParameters: null
        };
      });
      if (this.usingBundle) {
        sdp += 'a=group:BUNDLE ' + transceivers.map(function(t) {
          return t.mid;
        }).join(' ') + '\r\n';
      }
      tracks.forEach(function(mline, sdpMLineIndex) {
        var transceiver = transceivers[sdpMLineIndex];
        sdp += SDPUtils.writeMediaSection(transceiver,
            transceiver.localCapabilities, 'offer', self.localStreams[0]);
      });

      this._pendingOffer = transceivers;
      var desc = new RTCSessionDescription({
        type: 'offer',
        sdp: sdp
      });
      if (arguments.length && typeof arguments[0] === 'function') {
        window.setTimeout(arguments[0], 0, desc);
      }
      return Promise.resolve(desc);
    };

    window.RTCPeerConnection.prototype.createAnswer = function() {
      var self = this;

      var sdp = SDPUtils.writeSessionBoilerplate();
      if (this.usingBundle) {
        sdp += 'a=group:BUNDLE ' + this.transceivers.map(function(t) {
          return t.mid;
        }).join(' ') + '\r\n';
      }
      this.transceivers.forEach(function(transceiver) {
        // Calculate intersection of capabilities.
        var commonCapabilities = self._getCommonCapabilities(
            transceiver.localCapabilities,
            transceiver.remoteCapabilities);

        sdp += SDPUtils.writeMediaSection(transceiver, commonCapabilities,
            'answer', self.localStreams[0]);
      });

      var desc = new RTCSessionDescription({
        type: 'answer',
        sdp: sdp
      });
      if (arguments.length && typeof arguments[0] === 'function') {
        window.setTimeout(arguments[0], 0, desc);
      }
      return Promise.resolve(desc);
    };

    window.RTCPeerConnection.prototype.addIceCandidate = function(candidate) {
      if (candidate === null) {
        this.transceivers.forEach(function(transceiver) {
          transceiver.iceTransport.addRemoteCandidate({});
        });
      } else {
        var mLineIndex = candidate.sdpMLineIndex;
        if (candidate.sdpMid) {
          for (var i = 0; i < this.transceivers.length; i++) {
            if (this.transceivers[i].mid === candidate.sdpMid) {
              mLineIndex = i;
              break;
            }
          }
        }
        var transceiver = this.transceivers[mLineIndex];
        if (transceiver) {
          var cand = Object.keys(candidate.candidate).length > 0 ?
              SDPUtils.parseCandidate(candidate.candidate) : {};
          // Ignore Chrome's invalid candidates since Edge does not like them.
          if (cand.protocol === 'tcp' && cand.port === 0) {
            return;
          }
          // Ignore RTCP candidates, we assume RTCP-MUX.
          if (cand.component !== '1') {
            return;
          }
          // A dirty hack to make samples work.
          if (cand.type === 'endOfCandidates') {
            cand = {};
          }
          transceiver.iceTransport.addRemoteCandidate(cand);

          // update the remoteDescription.
          var sections = SDPUtils.splitSections(this.remoteDescription.sdp);
          sections[mLineIndex + 1] += (cand.type ? candidate.candidate.trim()
              : 'a=end-of-candidates') + '\r\n';
          this.remoteDescription.sdp = sections.join('');
        }
      }
      if (arguments.length > 1 && typeof arguments[1] === 'function') {
        window.setTimeout(arguments[1], 0);
      }
      return Promise.resolve();
    };

    window.RTCPeerConnection.prototype.getStats = function() {
      var promises = [];
      this.transceivers.forEach(function(transceiver) {
        ['rtpSender', 'rtpReceiver', 'iceGatherer', 'iceTransport',
            'dtlsTransport'].forEach(function(method) {
              if (transceiver[method]) {
                promises.push(transceiver[method].getStats());
              }
            });
      });
      var cb = arguments.length > 1 && typeof arguments[1] === 'function' &&
          arguments[1];
      return new Promise(function(resolve) {
        // shim getStats with maplike support
        var results = new Map();
        Promise.all(promises).then(function(res) {
          res.forEach(function(result) {
            Object.keys(result).forEach(function(id) {
              results.set(id, result[id]);
              results[id] = result[id];
            });
          });
          if (cb) {
            window.setTimeout(cb, 0, results);
          }
          resolve(results);
        });
      });
    };
  },

  // Attach a media stream to an element.
  attachMediaStream: function(element, stream) {
    logging('DEPRECATED, attachMediaStream will soon be removed.');
    element.srcObject = stream;
  },

  reattachMediaStream: function(to, from) {
    logging('DEPRECATED, reattachMediaStream will soon be removed.');
    to.srcObject = from.srcObject;
  }
};

// Expose public methods.
module.exports = {
  shimPeerConnection: edgeShim.shimPeerConnection,
  shimGetUserMedia: __webpack_require__(409),
  attachMediaStream: edgeShim.attachMediaStream,
  reattachMediaStream: edgeShim.reattachMediaStream
};


/***/ }),
/* 408 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
 /* eslint-env node */


// SDP helpers.
var SDPUtils = {};

// Generate an alphanumeric identifier for cname or mids.
// TODO: use UUIDs instead? https://gist.github.com/jed/982883
SDPUtils.generateIdentifier = function() {
  return Math.random().toString(36).substr(2, 10);
};

// The RTCP CNAME used by all peerconnections from the same JS.
SDPUtils.localCName = SDPUtils.generateIdentifier();

// Splits SDP into lines, dealing with both CRLF and LF.
SDPUtils.splitLines = function(blob) {
  return blob.trim().split('\n').map(function(line) {
    return line.trim();
  });
};
// Splits SDP into sessionpart and mediasections. Ensures CRLF.
SDPUtils.splitSections = function(blob) {
  var parts = blob.split('\nm=');
  return parts.map(function(part, index) {
    return (index > 0 ? 'm=' + part : part).trim() + '\r\n';
  });
};

// Returns lines that start with a certain prefix.
SDPUtils.matchPrefix = function(blob, prefix) {
  return SDPUtils.splitLines(blob).filter(function(line) {
    return line.indexOf(prefix) === 0;
  });
};

// Parses an ICE candidate line. Sample input:
// candidate:702786350 2 udp 41819902 8.8.8.8 60769 typ relay raddr 8.8.8.8
// rport 55996"
SDPUtils.parseCandidate = function(line) {
  var parts;
  // Parse both variants.
  if (line.indexOf('a=candidate:') === 0) {
    parts = line.substring(12).split(' ');
  } else {
    parts = line.substring(10).split(' ');
  }

  var candidate = {
    foundation: parts[0],
    component: parts[1],
    protocol: parts[2].toLowerCase(),
    priority: parseInt(parts[3], 10),
    ip: parts[4],
    port: parseInt(parts[5], 10),
    // skip parts[6] == 'typ'
    type: parts[7]
  };

  for (var i = 8; i < parts.length; i += 2) {
    switch (parts[i]) {
      case 'raddr':
        candidate.relatedAddress = parts[i + 1];
        break;
      case 'rport':
        candidate.relatedPort = parseInt(parts[i + 1], 10);
        break;
      case 'tcptype':
        candidate.tcpType = parts[i + 1];
        break;
      default: // extension handling, in particular ufrag
        candidate[parts[i]] = parts[i + 1];
        break;
    }
  }
  return candidate;
};

// Translates a candidate object into SDP candidate attribute.
SDPUtils.writeCandidate = function(candidate) {
  var sdp = [];
  sdp.push(candidate.foundation);
  sdp.push(candidate.component);
  sdp.push(candidate.protocol.toUpperCase());
  sdp.push(candidate.priority);
  sdp.push(candidate.ip);
  sdp.push(candidate.port);

  var type = candidate.type;
  sdp.push('typ');
  sdp.push(type);
  if (type !== 'host' && candidate.relatedAddress &&
      candidate.relatedPort) {
    sdp.push('raddr');
    sdp.push(candidate.relatedAddress); // was: relAddr
    sdp.push('rport');
    sdp.push(candidate.relatedPort); // was: relPort
  }
  if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') {
    sdp.push('tcptype');
    sdp.push(candidate.tcpType);
  }
  return 'candidate:' + sdp.join(' ');
};

// Parses an ice-options line, returns an array of option tags.
// a=ice-options:foo bar
SDPUtils.parseIceOptions = function(line) {
  return line.substr(14).split(' ');
}

// Parses an rtpmap line, returns RTCRtpCoddecParameters. Sample input:
// a=rtpmap:111 opus/48000/2
SDPUtils.parseRtpMap = function(line) {
  var parts = line.substr(9).split(' ');
  var parsed = {
    payloadType: parseInt(parts.shift(), 10) // was: id
  };

  parts = parts[0].split('/');

  parsed.name = parts[0];
  parsed.clockRate = parseInt(parts[1], 10); // was: clockrate
  // was: channels
  parsed.numChannels = parts.length === 3 ? parseInt(parts[2], 10) : 1;
  return parsed;
};

// Generate an a=rtpmap line from RTCRtpCodecCapability or
// RTCRtpCodecParameters.
SDPUtils.writeRtpMap = function(codec) {
  var pt = codec.payloadType;
  if (codec.preferredPayloadType !== undefined) {
    pt = codec.preferredPayloadType;
  }
  return 'a=rtpmap:' + pt + ' ' + codec.name + '/' + codec.clockRate +
      (codec.numChannels !== 1 ? '/' + codec.numChannels : '') + '\r\n';
};

// Parses an a=extmap line (headerextension from RFC 5285). Sample input:
// a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
// a=extmap:2/sendonly urn:ietf:params:rtp-hdrext:toffset
SDPUtils.parseExtmap = function(line) {
  var parts = line.substr(9).split(' ');
  return {
    id: parseInt(parts[0], 10),
    direction: parts[0].indexOf('/') > 0 ? parts[0].split('/')[1] : 'sendrecv',
    uri: parts[1]
  };
};

// Generates a=extmap line from RTCRtpHeaderExtensionParameters or
// RTCRtpHeaderExtension.
SDPUtils.writeExtmap = function(headerExtension) {
  return 'a=extmap:' + (headerExtension.id || headerExtension.preferredId) +
      (headerExtension.direction && headerExtension.direction !== 'sendrecv'
          ? '/' + headerExtension.direction
          : '') +
      ' ' + headerExtension.uri + '\r\n';
};

// Parses an ftmp line, returns dictionary. Sample input:
// a=fmtp:96 vbr=on;cng=on
// Also deals with vbr=on; cng=on
SDPUtils.parseFmtp = function(line) {
  var parsed = {};
  var kv;
  var parts = line.substr(line.indexOf(' ') + 1).split(';');
  for (var j = 0; j < parts.length; j++) {
    kv = parts[j].trim().split('=');
    parsed[kv[0].trim()] = kv[1];
  }
  return parsed;
};

// Generates an a=ftmp line from RTCRtpCodecCapability or RTCRtpCodecParameters.
SDPUtils.writeFmtp = function(codec) {
  var line = '';
  var pt = codec.payloadType;
  if (codec.preferredPayloadType !== undefined) {
    pt = codec.preferredPayloadType;
  }
  if (codec.parameters && Object.keys(codec.parameters).length) {
    var params = [];
    Object.keys(codec.parameters).forEach(function(param) {
      params.push(param + '=' + codec.parameters[param]);
    });
    line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\r\n';
  }
  return line;
};

// Parses an rtcp-fb line, returns RTCPRtcpFeedback object. Sample input:
// a=rtcp-fb:98 nack rpsi
SDPUtils.parseRtcpFb = function(line) {
  var parts = line.substr(line.indexOf(' ') + 1).split(' ');
  return {
    type: parts.shift(),
    parameter: parts.join(' ')
  };
};
// Generate a=rtcp-fb lines from RTCRtpCodecCapability or RTCRtpCodecParameters.
SDPUtils.writeRtcpFb = function(codec) {
  var lines = '';
  var pt = codec.payloadType;
  if (codec.preferredPayloadType !== undefined) {
    pt = codec.preferredPayloadType;
  }
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
    // FIXME: special handling for trr-int?
    codec.rtcpFeedback.forEach(function(fb) {
      lines += 'a=rtcp-fb:' + pt + ' ' + fb.type +
      (fb.parameter && fb.parameter.length ? ' ' + fb.parameter : '') +
          '\r\n';
    });
  }
  return lines;
};

// Parses an RFC 5576 ssrc media attribute. Sample input:
// a=ssrc:3735928559 cname:something
SDPUtils.parseSsrcMedia = function(line) {
  var sp = line.indexOf(' ');
  var parts = {
    ssrc: parseInt(line.substr(7, sp - 7), 10)
  };
  var colon = line.indexOf(':', sp);
  if (colon > -1) {
    parts.attribute = line.substr(sp + 1, colon - sp - 1);
    parts.value = line.substr(colon + 1);
  } else {
    parts.attribute = line.substr(sp + 1);
  }
  return parts;
};

// Extracts the MID (RFC 5888) from a media section.
// returns the MID or undefined if no mid line was found.
SDPUtils.getMid = function(mediaSection) {
  var mid = SDPUtils.matchPrefix(mediaSection, 'a=mid:')[0];
  if (mid) {
    return mid.substr(6);
  }
}

SDPUtils.parseFingerprint = function(line) {
  var parts = line.substr(14).split(' ');
  return {
    algorithm: parts[0].toLowerCase(), // algorithm is case-sensitive in Edge.
    value: parts[1]
  };
};

// Extracts DTLS parameters from SDP media section or sessionpart.
// FIXME: for consistency with other functions this should only
//   get the fingerprint line as input. See also getIceParameters.
SDPUtils.getDtlsParameters = function(mediaSection, sessionpart) {
  var lines = SDPUtils.matchPrefix(mediaSection + sessionpart,
      'a=fingerprint:');
  // Note: a=setup line is ignored since we use the 'auto' role.
  // Note2: 'algorithm' is not case sensitive except in Edge.
  return {
    role: 'auto',
    fingerprints: lines.map(SDPUtils.parseFingerprint)
  };
};

// Serializes DTLS parameters to SDP.
SDPUtils.writeDtlsParameters = function(params, setupType) {
  var sdp = 'a=setup:' + setupType + '\r\n';
  params.fingerprints.forEach(function(fp) {
    sdp += 'a=fingerprint:' + fp.algorithm + ' ' + fp.value + '\r\n';
  });
  return sdp;
};
// Parses ICE information from SDP media section or sessionpart.
// FIXME: for consistency with other functions this should only
//   get the ice-ufrag and ice-pwd lines as input.
SDPUtils.getIceParameters = function(mediaSection, sessionpart) {
  var lines = SDPUtils.splitLines(mediaSection);
  // Search in session part, too.
  lines = lines.concat(SDPUtils.splitLines(sessionpart));
  var iceParameters = {
    usernameFragment: lines.filter(function(line) {
      return line.indexOf('a=ice-ufrag:') === 0;
    })[0].substr(12),
    password: lines.filter(function(line) {
      return line.indexOf('a=ice-pwd:') === 0;
    })[0].substr(10)
  };
  return iceParameters;
};

// Serializes ICE parameters to SDP.
SDPUtils.writeIceParameters = function(params) {
  return 'a=ice-ufrag:' + params.usernameFragment + '\r\n' +
      'a=ice-pwd:' + params.password + '\r\n';
};

// Parses the SDP media section and returns RTCRtpParameters.
SDPUtils.parseRtpParameters = function(mediaSection) {
  var description = {
    codecs: [],
    headerExtensions: [],
    fecMechanisms: [],
    rtcp: []
  };
  var lines = SDPUtils.splitLines(mediaSection);
  var mline = lines[0].split(' ');
  for (var i = 3; i < mline.length; i++) { // find all codecs from mline[3..]
    var pt = mline[i];
    var rtpmapline = SDPUtils.matchPrefix(
        mediaSection, 'a=rtpmap:' + pt + ' ')[0];
    if (rtpmapline) {
      var codec = SDPUtils.parseRtpMap(rtpmapline);
      var fmtps = SDPUtils.matchPrefix(
          mediaSection, 'a=fmtp:' + pt + ' ');
      // Only the first a=fmtp:<pt> is considered.
      codec.parameters = fmtps.length ? SDPUtils.parseFmtp(fmtps[0]) : {};
      codec.rtcpFeedback = SDPUtils.matchPrefix(
          mediaSection, 'a=rtcp-fb:' + pt + ' ')
        .map(SDPUtils.parseRtcpFb);
      description.codecs.push(codec);
      // parse FEC mechanisms from rtpmap lines.
      switch (codec.name.toUpperCase()) {
        case 'RED':
        case 'ULPFEC':
          description.fecMechanisms.push(codec.name.toUpperCase());
          break;
        default: // only RED and ULPFEC are recognized as FEC mechanisms.
          break;
      }
    }
  }
  SDPUtils.matchPrefix(mediaSection, 'a=extmap:').forEach(function(line) {
    description.headerExtensions.push(SDPUtils.parseExtmap(line));
  });
  // FIXME: parse rtcp.
  return description;
};

// Generates parts of the SDP media section describing the capabilities /
// parameters.
SDPUtils.writeRtpDescription = function(kind, caps) {
  var sdp = '';

  // Build the mline.
  sdp += 'm=' + kind + ' ';
  sdp += caps.codecs.length > 0 ? '9' : '0'; // reject if no codecs.
  sdp += ' UDP/TLS/RTP/SAVPF ';
  sdp += caps.codecs.map(function(codec) {
    if (codec.preferredPayloadType !== undefined) {
      return codec.preferredPayloadType;
    }
    return codec.payloadType;
  }).join(' ') + '\r\n';

  sdp += 'c=IN IP4 0.0.0.0\r\n';
  sdp += 'a=rtcp:9 IN IP4 0.0.0.0\r\n';

  // Add a=rtpmap lines for each codec. Also fmtp and rtcp-fb.
  caps.codecs.forEach(function(codec) {
    sdp += SDPUtils.writeRtpMap(codec);
    sdp += SDPUtils.writeFmtp(codec);
    sdp += SDPUtils.writeRtcpFb(codec);
  });
  var maxptime = 0;
  caps.codecs.forEach(function(codec) {
    if (codec.maxptime > maxptime) {
      maxptime = codec.maxptime;
    }
  });
  if (maxptime > 0) {
    sdp += 'a=maxptime:' + maxptime + '\r\n';
  }
  sdp += 'a=rtcp-mux\r\n';

  caps.headerExtensions.forEach(function(extension) {
    sdp += SDPUtils.writeExtmap(extension);
  });
  // FIXME: write fecMechanisms.
  return sdp;
};

// Parses the SDP media section and returns an array of
// RTCRtpEncodingParameters.
SDPUtils.parseRtpEncodingParameters = function(mediaSection) {
  var encodingParameters = [];
  var description = SDPUtils.parseRtpParameters(mediaSection);
  var hasRed = description.fecMechanisms.indexOf('RED') !== -1;
  var hasUlpfec = description.fecMechanisms.indexOf('ULPFEC') !== -1;

  // filter a=ssrc:... cname:, ignore PlanB-msid
  var ssrcs = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:')
  .map(function(line) {
    return SDPUtils.parseSsrcMedia(line);
  })
  .filter(function(parts) {
    return parts.attribute === 'cname';
  });
  var primarySsrc = ssrcs.length > 0 && ssrcs[0].ssrc;
  var secondarySsrc;

  var flows = SDPUtils.matchPrefix(mediaSection, 'a=ssrc-group:FID')
  .map(function(line) {
    var parts = line.split(' ');
    parts.shift();
    return parts.map(function(part) {
      return parseInt(part, 10);
    });
  });
  if (flows.length > 0 && flows[0].length > 1 && flows[0][0] === primarySsrc) {
    secondarySsrc = flows[0][1];
  }

  description.codecs.forEach(function(codec) {
    if (codec.name.toUpperCase() === 'RTX' && codec.parameters.apt) {
      var encParam = {
        ssrc: primarySsrc,
        codecPayloadType: parseInt(codec.parameters.apt, 10),
        rtx: {
          ssrc: secondarySsrc
        }
      };
      encodingParameters.push(encParam);
      if (hasRed) {
        encParam = JSON.parse(JSON.stringify(encParam));
        encParam.fec = {
          ssrc: secondarySsrc,
          mechanism: hasUlpfec ? 'red+ulpfec' : 'red'
        };
        encodingParameters.push(encParam);
      }
    }
  });
  if (encodingParameters.length === 0 && primarySsrc) {
    encodingParameters.push({
      ssrc: primarySsrc
    });
  }

  // we support both b=AS and b=TIAS but interpret AS as TIAS.
  var bandwidth = SDPUtils.matchPrefix(mediaSection, 'b=');
  if (bandwidth.length) {
    if (bandwidth[0].indexOf('b=TIAS:') === 0) {
      bandwidth = parseInt(bandwidth[0].substr(7), 10);
    } else if (bandwidth[0].indexOf('b=AS:') === 0) {
      bandwidth = parseInt(bandwidth[0].substr(5), 10);
    }
    encodingParameters.forEach(function(params) {
      params.maxBitrate = bandwidth;
    });
  }
  return encodingParameters;
};

// parses http://draft.ortc.org/#rtcrtcpparameters*
SDPUtils.parseRtcpParameters = function(mediaSection) {
  var rtcpParameters = {};

  var cname;
  // Gets the first SSRC. Note that with RTX there might be multiple
  // SSRCs.
  var remoteSsrc = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:')
      .map(function(line) {
        return SDPUtils.parseSsrcMedia(line);
      })
      .filter(function(obj) {
        return obj.attribute === 'cname';
      })[0];
  if (remoteSsrc) {
    rtcpParameters.cname = remoteSsrc.value;
    rtcpParameters.ssrc = remoteSsrc.ssrc;
  }

  // Edge uses the compound attribute instead of reducedSize
  // compound is !reducedSize
  var rsize = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-rsize');
  rtcpParameters.reducedSize = rsize.length > 0;
  rtcpParameters.compound = rsize.length === 0;

  // parses the rtcp-mux attrіbute.
  // Note that Edge does not support unmuxed RTCP.
  var mux = SDPUtils.matchPrefix(mediaSection, 'a=rtcp-mux');
  rtcpParameters.mux = mux.length > 0;

  return rtcpParameters;
};

// parses either a=msid: or a=ssrc:... msid lines and returns
// the id of the MediaStream and MediaStreamTrack.
SDPUtils.parseMsid = function(mediaSection) {
  var parts;
  var spec = SDPUtils.matchPrefix(mediaSection, 'a=msid:');
  if (spec.length === 1) {
    parts = spec[0].substr(7).split(' ');
    return {stream: parts[0], track: parts[1]};
  }
  var planB = SDPUtils.matchPrefix(mediaSection, 'a=ssrc:')
  .map(function(line) {
    return SDPUtils.parseSsrcMedia(line);
  })
  .filter(function(parts) {
    return parts.attribute === 'msid';
  });
  if (planB.length > 0) {
    parts = planB[0].value.split(' ');
    return {stream: parts[0], track: parts[1]};
  }
};

SDPUtils.writeSessionBoilerplate = function() {
  // FIXME: sess-id should be an NTP timestamp.
  return 'v=0\r\n' +
      'o=thisisadapterortc 8169639915646943137 2 IN IP4 127.0.0.1\r\n' +
      's=-\r\n' +
      't=0 0\r\n';
};

SDPUtils.writeMediaSection = function(transceiver, caps, type, stream) {
  var sdp = SDPUtils.writeRtpDescription(transceiver.kind, caps);

  // Map ICE parameters (ufrag, pwd) to SDP.
  sdp += SDPUtils.writeIceParameters(
      transceiver.iceGatherer.getLocalParameters());

  // Map DTLS parameters to SDP.
  sdp += SDPUtils.writeDtlsParameters(
      transceiver.dtlsTransport.getLocalParameters(),
      type === 'offer' ? 'actpass' : 'active');

  sdp += 'a=mid:' + transceiver.mid + '\r\n';

  if (transceiver.direction) {
    sdp += 'a=' + transceiver.direction + '\r\n';
  } else if (transceiver.rtpSender && transceiver.rtpReceiver) {
    sdp += 'a=sendrecv\r\n';
  } else if (transceiver.rtpSender) {
    sdp += 'a=sendonly\r\n';
  } else if (transceiver.rtpReceiver) {
    sdp += 'a=recvonly\r\n';
  } else {
    sdp += 'a=inactive\r\n';
  }

  if (transceiver.rtpSender) {
    // spec.
    var msid = 'msid:' + stream.id + ' ' +
        transceiver.rtpSender.track.id + '\r\n';
    sdp += 'a=' + msid;

    // for Chrome.
    sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc +
        ' ' + msid;
    if (transceiver.sendEncodingParameters[0].rtx) {
      sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc +
          ' ' + msid;
      sdp += 'a=ssrc-group:FID ' +
          transceiver.sendEncodingParameters[0].ssrc + ' ' +
          transceiver.sendEncodingParameters[0].rtx.ssrc +
          '\r\n';
    }
  }
  // FIXME: this should be written by writeRtpDescription.
  sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].ssrc +
      ' cname:' + SDPUtils.localCName + '\r\n';
  if (transceiver.rtpSender && transceiver.sendEncodingParameters[0].rtx) {
    sdp += 'a=ssrc:' + transceiver.sendEncodingParameters[0].rtx.ssrc +
        ' cname:' + SDPUtils.localCName + '\r\n';
  }
  return sdp;
};

// Gets the direction from the mediaSection or the sessionpart.
SDPUtils.getDirection = function(mediaSection, sessionpart) {
  // Look for sendrecv, sendonly, recvonly, inactive, default to sendrecv.
  var lines = SDPUtils.splitLines(mediaSection);
  for (var i = 0; i < lines.length; i++) {
    switch (lines[i]) {
      case 'a=sendrecv':
      case 'a=sendonly':
      case 'a=recvonly':
      case 'a=inactive':
        return lines[i].substr(2);
      default:
        // FIXME: What should happen here?
    }
  }
  if (sessionpart) {
    return SDPUtils.getDirection(sessionpart);
  }
  return 'sendrecv';
};

SDPUtils.getKind = function(mediaSection) {
  var lines = SDPUtils.splitLines(mediaSection);
  var mline = lines[0].split(' ');
  return mline[0].substr(2);
};

SDPUtils.isRejected = function(mediaSection) {
  return mediaSection.split(' ', 2)[1] === '0';
};

// Expose public methods.
module.exports = SDPUtils;


/***/ }),
/* 409 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */


// Expose public methods.
module.exports = function() {
  var shimError_ = function(e) {
    return {
      name: {PermissionDeniedError: 'NotAllowedError'}[e.name] || e.name,
      message: e.message,
      constraint: e.constraint,
      toString: function() {
        return this.name;
      }
    };
  };

  // getUserMedia error shim.
  var origGetUserMedia = navigator.mediaDevices.getUserMedia.
      bind(navigator.mediaDevices);
  navigator.mediaDevices.getUserMedia = function(c) {
    return origGetUserMedia(c).catch(function(e) {
      return Promise.reject(shimError_(e));
    });
  };
};


/***/ }),
/* 410 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */


var logging = __webpack_require__(24).log;
var browserDetails = __webpack_require__(24).browserDetails;

var firefoxShim = {
  shimOnTrack: function() {
    if (typeof window === 'object' && window.RTCPeerConnection && !('ontrack' in
        window.RTCPeerConnection.prototype)) {
      Object.defineProperty(window.RTCPeerConnection.prototype, 'ontrack', {
        get: function() {
          return this._ontrack;
        },
        set: function(f) {
          if (this._ontrack) {
            this.removeEventListener('track', this._ontrack);
            this.removeEventListener('addstream', this._ontrackpoly);
          }
          this.addEventListener('track', this._ontrack = f);
          this.addEventListener('addstream', this._ontrackpoly = function(e) {
            e.stream.getTracks().forEach(function(track) {
              var event = new Event('track');
              event.track = track;
              event.receiver = {track: track};
              event.streams = [e.stream];
              this.dispatchEvent(event);
            }.bind(this));
          }.bind(this));
        }
      });
    }
  },

  shimSourceObject: function() {
    // Firefox has supported mozSrcObject since FF22, unprefixed in 42.
    if (typeof window === 'object') {
      if (window.HTMLMediaElement &&
        !('srcObject' in window.HTMLMediaElement.prototype)) {
        // Shim the srcObject property, once, when HTMLMediaElement is found.
        Object.defineProperty(window.HTMLMediaElement.prototype, 'srcObject', {
          get: function() {
            return this.mozSrcObject;
          },
          set: function(stream) {
            this.mozSrcObject = stream;
          }
        });
      }
    }
  },

  shimPeerConnection: function() {
    if (typeof window !== 'object' || !(window.RTCPeerConnection ||
        window.mozRTCPeerConnection)) {
      return; // probably media.peerconnection.enabled=false in about:config
    }
    // The RTCPeerConnection object.
    if (!window.RTCPeerConnection) {
      window.RTCPeerConnection = function(pcConfig, pcConstraints) {
        if (browserDetails.version < 38) {
          // .urls is not supported in FF < 38.
          // create RTCIceServers with a single url.
          if (pcConfig && pcConfig.iceServers) {
            var newIceServers = [];
            for (var i = 0; i < pcConfig.iceServers.length; i++) {
              var server = pcConfig.iceServers[i];
              if (server.hasOwnProperty('urls')) {
                for (var j = 0; j < server.urls.length; j++) {
                  var newServer = {
                    url: server.urls[j]
                  };
                  if (server.urls[j].indexOf('turn') === 0) {
                    newServer.username = server.username;
                    newServer.credential = server.credential;
                  }
                  newIceServers.push(newServer);
                }
              } else {
                newIceServers.push(pcConfig.iceServers[i]);
              }
            }
            pcConfig.iceServers = newIceServers;
          }
        }
        return new mozRTCPeerConnection(pcConfig, pcConstraints);
      };
      window.RTCPeerConnection.prototype = mozRTCPeerConnection.prototype;

      // wrap static methods. Currently just generateCertificate.
      if (mozRTCPeerConnection.generateCertificate) {
        Object.defineProperty(window.RTCPeerConnection, 'generateCertificate', {
          get: function() {
            return mozRTCPeerConnection.generateCertificate;
          }
        });
      }

      window.RTCSessionDescription = mozRTCSessionDescription;
      window.RTCIceCandidate = mozRTCIceCandidate;
    }

    // shim away need for obsolete RTCIceCandidate/RTCSessionDescription.
    ['setLocalDescription', 'setRemoteDescription', 'addIceCandidate']
        .forEach(function(method) {
          var nativeMethod = RTCPeerConnection.prototype[method];
          RTCPeerConnection.prototype[method] = function() {
            arguments[0] = new ((method === 'addIceCandidate') ?
                RTCIceCandidate : RTCSessionDescription)(arguments[0]);
            return nativeMethod.apply(this, arguments);
          };
        });

    // support for addIceCandidate(null)
    var nativeAddIceCandidate =
        RTCPeerConnection.prototype.addIceCandidate;
    RTCPeerConnection.prototype.addIceCandidate = function() {
      return arguments[0] === null ? Promise.resolve()
          : nativeAddIceCandidate.apply(this, arguments);
    };

    // shim getStats with maplike support
    var makeMapStats = function(stats) {
      var map = new Map();
      Object.keys(stats).forEach(function(key) {
        map.set(key, stats[key]);
        map[key] = stats[key];
      });
      return map;
    };

    var nativeGetStats = RTCPeerConnection.prototype.getStats;
    RTCPeerConnection.prototype.getStats = function(selector, onSucc, onErr) {
      return nativeGetStats.apply(this, [selector || null])
        .then(function(stats) {
          return makeMapStats(stats);
        })
        .then(onSucc, onErr);
    };
  },

  // Attach a media stream to an element.
  attachMediaStream: function(element, stream) {
    logging('DEPRECATED, attachMediaStream will soon be removed.');
    element.srcObject = stream;
  },

  reattachMediaStream: function(to, from) {
    logging('DEPRECATED, reattachMediaStream will soon be removed.');
    to.srcObject = from.srcObject;
  }
};

// Expose public methods.
module.exports = {
  shimOnTrack: firefoxShim.shimOnTrack,
  shimSourceObject: firefoxShim.shimSourceObject,
  shimPeerConnection: firefoxShim.shimPeerConnection,
  shimGetUserMedia: __webpack_require__(411),
  attachMediaStream: firefoxShim.attachMediaStream,
  reattachMediaStream: firefoxShim.reattachMediaStream
};


/***/ }),
/* 411 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */
 /* eslint-env node */


var logging = __webpack_require__(24).log;
var browserDetails = __webpack_require__(24).browserDetails;

// Expose public methods.
module.exports = function() {
  var shimError_ = function(e) {
    return {
      name: {
        SecurityError: 'NotAllowedError',
        PermissionDeniedError: 'NotAllowedError'
      }[e.name] || e.name,
      message: {
        'The operation is insecure.': 'The request is not allowed by the ' +
        'user agent or the platform in the current context.'
      }[e.message] || e.message,
      constraint: e.constraint,
      toString: function() {
        return this.name + (this.message && ': ') + this.message;
      }
    };
  };

  // getUserMedia constraints shim.
  var getUserMedia_ = function(constraints, onSuccess, onError) {
    var constraintsToFF37_ = function(c) {
      if (typeof c !== 'object' || c.require) {
        return c;
      }
      var require = [];
      Object.keys(c).forEach(function(key) {
        if (key === 'require' || key === 'advanced' || key === 'mediaSource') {
          return;
        }
        var r = c[key] = (typeof c[key] === 'object') ?
            c[key] : {ideal: c[key]};
        if (r.min !== undefined ||
            r.max !== undefined || r.exact !== undefined) {
          require.push(key);
        }
        if (r.exact !== undefined) {
          if (typeof r.exact === 'number') {
            r. min = r.max = r.exact;
          } else {
            c[key] = r.exact;
          }
          delete r.exact;
        }
        if (r.ideal !== undefined) {
          c.advanced = c.advanced || [];
          var oc = {};
          if (typeof r.ideal === 'number') {
            oc[key] = {min: r.ideal, max: r.ideal};
          } else {
            oc[key] = r.ideal;
          }
          c.advanced.push(oc);
          delete r.ideal;
          if (!Object.keys(r).length) {
            delete c[key];
          }
        }
      });
      if (require.length) {
        c.require = require;
      }
      return c;
    };
    constraints = JSON.parse(JSON.stringify(constraints));
    if (browserDetails.version < 38) {
      logging('spec: ' + JSON.stringify(constraints));
      if (constraints.audio) {
        constraints.audio = constraintsToFF37_(constraints.audio);
      }
      if (constraints.video) {
        constraints.video = constraintsToFF37_(constraints.video);
      }
      logging('ff37: ' + JSON.stringify(constraints));
    }
    return navigator.mozGetUserMedia(constraints, onSuccess, function(e) {
      onError(shimError_(e));
    });
  };

  // Returns the result of getUserMedia as a Promise.
  var getUserMediaPromise_ = function(constraints) {
    return new Promise(function(resolve, reject) {
      getUserMedia_(constraints, resolve, reject);
    });
  };

  // Shim for mediaDevices on older versions.
  if (!navigator.mediaDevices) {
    navigator.mediaDevices = {getUserMedia: getUserMediaPromise_,
      addEventListener: function() { },
      removeEventListener: function() { }
    };
  }
  navigator.mediaDevices.enumerateDevices =
      navigator.mediaDevices.enumerateDevices || function() {
        return new Promise(function(resolve) {
          var infos = [
            {kind: 'audioinput', deviceId: 'default', label: '', groupId: ''},
            {kind: 'videoinput', deviceId: 'default', label: '', groupId: ''}
          ];
          resolve(infos);
        });
      };

  if (browserDetails.version < 41) {
    // Work around http://bugzil.la/1169665
    var orgEnumerateDevices =
        navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices);
    navigator.mediaDevices.enumerateDevices = function() {
      return orgEnumerateDevices().then(undefined, function(e) {
        if (e.name === 'NotFoundError') {
          return [];
        }
        throw e;
      });
    };
  }
  if (browserDetails.version < 49) {
    var origGetUserMedia = navigator.mediaDevices.getUserMedia.
        bind(navigator.mediaDevices);
    navigator.mediaDevices.getUserMedia = function(c) {
      return origGetUserMedia(c).catch(function(e) {
        return Promise.reject(shimError_(e));
      });
    };
  }
  navigator.getUserMedia = function(constraints, onSuccess, onError) {
    if (browserDetails.version < 44) {
      return getUserMedia_(constraints, onSuccess, onError);
    }
    // Replace Firefox 44+'s deprecation warning with unprefixed version.
    console.warn('navigator.getUserMedia has been replaced by ' +
                 'navigator.mediaDevices.getUserMedia');
    navigator.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
  };
};


/***/ }),
/* 412 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree.
 */

var safariShim = {
  // TODO: DrAlex, should be here, double check against LayoutTests
  // shimOnTrack: function() { },

  // TODO: DrAlex
  // attachMediaStream: function(element, stream) { },
  // reattachMediaStream: function(to, from) { },

  // TODO: once the back-end for the mac port is done, add.
  // TODO: check for webkitGTK+
  // shimPeerConnection: function() { },

  shimGetUserMedia: function() {
    navigator.getUserMedia = navigator.webkitGetUserMedia;
  }
};

// Expose public methods.
module.exports = {
  shimGetUserMedia: safariShim.shimGetUserMedia
  // TODO
  // shimOnTrack: safariShim.shimOnTrack,
  // shimPeerConnection: safariShim.shimPeerConnection,
  // attachMediaStream: safariShim.attachMediaStream,
  // reattachMediaStream: safariShim.reattachMediaStream
};


/***/ }),
/* 413 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var EventEmitter = __webpack_require__(63);
var ZXing = __webpack_require__(162)();
var Visibility = __webpack_require__(502);
var StateMachine = __webpack_require__(504);

var ScanProvider = function () {
  function ScanProvider(emitter, analyzer, captureImage, scanPeriod, refractoryPeriod) {
    _classCallCheck(this, ScanProvider);

    this.scanPeriod = scanPeriod;
    this.captureImage = captureImage;
    this.refractoryPeriod = refractoryPeriod;
    this._emitter = emitter;
    this._frameCount = 0;
    this._analyzer = analyzer;
    this._lastResult = null;
    this._active = false;
  }

  _createClass(ScanProvider, [{
    key: 'start',
    value: function start() {
      var _this = this;

      this._active = true;
      requestAnimationFrame(function () {
        return _this._scan();
      });
    }
  }, {
    key: 'stop',
    value: function stop() {
      this._active = false;
    }
  }, {
    key: 'scan',
    value: function scan() {
      return this._analyze(false);
    }
  }, {
    key: '_analyze',
    value: function _analyze(skipDups) {
      var _this2 = this;

      var analysis = this._analyzer.analyze();
      if (!analysis) {
        return null;
      }

      var result = analysis.result,
          canvas = analysis.canvas;

      if (!result) {
        return null;
      }

      if (skipDups && result === this._lastResult) {
        return null;
      }

      clearTimeout(this.refractoryTimeout);
      this.refractoryTimeout = setTimeout(function () {
        _this2._lastResult = null;
      }, this.refractoryPeriod);

      var image = this.captureImage ? canvas.toDataURL('image/webp', 0.8) : null;

      this._lastResult = result;

      var payload = { content: result };
      if (image) {
        payload.image = image;
      }

      return payload;
    }
  }, {
    key: '_scan',
    value: function _scan() {
      var _this3 = this;

      if (!this._active) {
        return;
      }

      requestAnimationFrame(function () {
        return _this3._scan();
      });

      if (++this._frameCount !== this.scanPeriod) {
        return;
      } else {
        this._frameCount = 0;
      }

      var result = this._analyze(true);
      if (result) {
        setTimeout(function () {
          _this3._emitter.emit('scan', result.content, result.image || null);
        }, 0);
      }
    }
  }]);

  return ScanProvider;
}();

var Analyzer = function () {
  function Analyzer(video) {
    _classCallCheck(this, Analyzer);

    this.video = video;

    this.imageBuffer = null;
    this.sensorLeft = null;
    this.sensorTop = null;
    this.sensorWidth = null;
    this.sensorHeight = null;

    this.canvas = document.createElement('canvas');
    this.canvas.style.display = 'none';
    this.canvasContext = null;

    this.decodeCallback = ZXing.Runtime.addFunction(function (ptr, len, resultIndex, resultCount) {
      var result = new Uint8Array(ZXing.HEAPU8.buffer, ptr, len);
      var str = String.fromCharCode.apply(null, result);
      if (resultIndex === 0) {
        window.zxDecodeResult = '';
      }
      window.zxDecodeResult += str;
    });
  }

  _createClass(Analyzer, [{
    key: 'analyze',
    value: function analyze() {
      if (!this.video.videoWidth) {
        return null;
      }

      if (!this.imageBuffer) {
        var videoWidth = this.video.videoWidth;
        var videoHeight = this.video.videoHeight;

        this.sensorWidth = videoWidth;
        this.sensorHeight = videoHeight;
        this.sensorLeft = Math.floor(videoWidth / 2 - this.sensorWidth / 2);
        this.sensorTop = Math.floor(videoHeight / 2 - this.sensorHeight / 2);

        this.canvas.width = this.sensorWidth;
        this.canvas.height = this.sensorHeight;

        this.canvasContext = this.canvas.getContext('2d');
        this.imageBuffer = ZXing._resize(this.sensorWidth, this.sensorHeight);
        return null;
      }

      this.canvasContext.drawImage(this.video, this.sensorLeft, this.sensorTop, this.sensorWidth, this.sensorHeight);

      var data = this.canvasContext.getImageData(0, 0, this.sensorWidth, this.sensorHeight).data;
      for (var i = 0, j = 0; i < data.length; i += 4, j++) {
        var _ref = [data[i], data[i + 1], data[i + 2]],
            r = _ref[0],
            g = _ref[1],
            b = _ref[2];

        ZXing.HEAPU8[this.imageBuffer + j] = Math.trunc((r + g + b) / 3);
      }

      var err = ZXing._decode_qr(this.decodeCallback);
      if (err) {
        return null;
      }

      var result = window.zxDecodeResult;
      if (result != null) {
        return { result: result, canvas: this.canvas };
      }

      return null;
    }
  }]);

  return Analyzer;
}();

var Scanner = function (_EventEmitter) {
  _inherits(Scanner, _EventEmitter);

  function Scanner(opts) {
    _classCallCheck(this, Scanner);

    var _this4 = _possibleConstructorReturn(this, (Scanner.__proto__ || Object.getPrototypeOf(Scanner)).call(this));

    _this4.video = _this4._configureVideo(opts);
    _this4.mirror = opts.mirror !== false;
    _this4.backgroundScan = opts.backgroundScan !== false;
    _this4._continuous = opts.continuous !== false;
    _this4._analyzer = new Analyzer(_this4.video);
    _this4._camera = null;

    var captureImage = opts.captureImage || false;
    var scanPeriod = opts.scanPeriod || 1;
    var refractoryPeriod = opts.refractoryPeriod || 5 * 1000;

    _this4._scanner = new ScanProvider(_this4, _this4._analyzer, captureImage, scanPeriod, refractoryPeriod);
    _this4._fsm = _this4._createStateMachine();

    Visibility.change(function (e, state) {
      if (state === 'visible') {
        setTimeout(function () {
          if (_this4._fsm.can('activate')) {
            _this4._fsm.activate();
          }
        }, 0);
      } else {
        if (!_this4.backgroundScan && _this4._fsm.can('deactivate')) {
          _this4._fsm.deactivate();
        }
      }
    });

    _this4.addListener('active', function () {
      _this4.video.classList.remove('inactive');
      _this4.video.classList.add('active');
    });

    _this4.addListener('inactive', function () {
      _this4.video.classList.remove('active');
      _this4.video.classList.add('inactive');
    });

    _this4.emit('inactive');
    return _this4;
  }

  _createClass(Scanner, [{
    key: 'scan',
    value: function scan() {
      return this._scanner.scan();
    }
  }, {
    key: 'start',
    value: function () {
      var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
        var camera = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
        return regeneratorRuntime.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                if (!this._fsm.can('start')) {
                  _context.next = 5;
                  break;
                }

                _context.next = 3;
                return this._fsm.start(camera);

              case 3:
                _context.next = 9;
                break;

              case 5:
                _context.next = 7;
                return this._fsm.stop();

              case 7:
                _context.next = 9;
                return this._fsm.start(camera);

              case 9:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, this);
      }));

      function start() {
        return _ref2.apply(this, arguments);
      }

      return start;
    }()
  }, {
    key: 'stop',
    value: function () {
      var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
        return regeneratorRuntime.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                if (!this._fsm.can('stop')) {
                  _context2.next = 3;
                  break;
                }

                _context2.next = 3;
                return this._fsm.stop();

              case 3:
              case 'end':
                return _context2.stop();
            }
          }
        }, _callee2, this);
      }));

      function stop() {
        return _ref3.apply(this, arguments);
      }

      return stop;
    }()
  }, {
    key: '_enableScan',
    value: function () {
      var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(camera) {
        var stream;
        return regeneratorRuntime.wrap(function _callee3$(_context3) {
          while (1) {
            switch (_context3.prev = _context3.next) {
              case 0:
                this._camera = camera || this._camera;

                if (this._camera) {
                  _context3.next = 3;
                  break;
                }

                throw new Error('Camera is not defined.');

              case 3:
                _context3.next = 5;
                return this._camera.start();

              case 5:
                stream = _context3.sent;

                this.video.srcObject = stream;

                if (this._continuous) {
                  this._scanner.start();
                }

              case 8:
              case 'end':
                return _context3.stop();
            }
          }
        }, _callee3, this);
      }));

      function _enableScan(_x2) {
        return _ref4.apply(this, arguments);
      }

      return _enableScan;
    }()
  }, {
    key: '_disableScan',
    value: function _disableScan() {
      this.video.src = '';

      if (this._scanner) {
        this._scanner.stop();
      }

      if (this._camera) {
        this._camera.stop();
      }
    }
  }, {
    key: '_configureVideo',
    value: function _configureVideo(opts) {
      if (opts.video) {
        if (opts.video.tagName !== 'VIDEO') {
          throw new Error('Video must be a <video> element.');
        }
      }

      var video = opts.video || document.createElement('video');
      video.setAttribute('autoplay', 'autoplay');

      return video;
    }
  }, {
    key: '_createStateMachine',
    value: function _createStateMachine() {
      var _this5 = this;

      return StateMachine.create({
        initial: 'stopped',
        events: [{
          name: 'start',
          from: 'stopped',
          to: 'started'
        }, {
          name: 'stop',
          from: ['started', 'active', 'inactive'],
          to: 'stopped'
        }, {
          name: 'activate',
          from: ['started', 'inactive'],
          to: ['active', 'inactive'],
          condition: function condition(options) {
            if (Visibility.state() === 'visible' || this.backgroundScan) {
              return 'active';
            } else {
              return 'inactive';
            }
          }
        }, {
          name: 'deactivate',
          from: ['started', 'active'],
          to: 'inactive'
        }],
        callbacks: {
          onenteractive: function () {
            var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(options) {
              return regeneratorRuntime.wrap(function _callee4$(_context4) {
                while (1) {
                  switch (_context4.prev = _context4.next) {
                    case 0:
                      _context4.next = 2;
                      return _this5._enableScan(options.args[0]);

                    case 2:
                      _this5.emit('active');

                    case 3:
                    case 'end':
                      return _context4.stop();
                  }
                }
              }, _callee4, _this5);
            }));

            function onenteractive(_x3) {
              return _ref5.apply(this, arguments);
            }

            return onenteractive;
          }(),
          onleaveactive: function onleaveactive() {
            _this5._disableScan();
            _this5.emit('inactive');
          },
          onenteredstarted: function () {
            var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(options) {
              return regeneratorRuntime.wrap(function _callee5$(_context5) {
                while (1) {
                  switch (_context5.prev = _context5.next) {
                    case 0:
                      _context5.next = 2;
                      return _this5._fsm.activate(options.args[0]);

                    case 2:
                    case 'end':
                      return _context5.stop();
                  }
                }
              }, _callee5, _this5);
            }));

            function onenteredstarted(_x4) {
              return _ref6.apply(this, arguments);
            }

            return onenteredstarted;
          }()
        }
      });
    }
  }, {
    key: 'captureImage',
    set: function set(capture) {
      this._scanner.captureImage = capture;
    },
    get: function get() {
      return this._scanner.captureImage;
    }
  }, {
    key: 'scanPeriod',
    set: function set(period) {
      this._scanner.scanPeriod = period;
    },
    get: function get() {
      return this._scanner.scanPeriod;
    }
  }, {
    key: 'refractoryPeriod',
    set: function set(period) {
      this._scanner.refractoryPeriod = period;
    },
    get: function get() {
      return this._scanner.refractoryPeriod;
    }
  }, {
    key: 'continuous',
    set: function set(continuous) {
      this._continuous = continuous;

      if (continuous && this._fsm.current === 'active') {
        this._scanner.start();
      } else {
        this._scanner.stop();
      }
    },
    get: function get() {
      return this._continuous;
    }
  }, {
    key: 'mirror',
    set: function set(mirror) {
      this._mirror = mirror;

      if (mirror) {
        this.video.style.MozTransform = 'scaleX(-1)';
        this.video.style.webkitTransform = 'scaleX(-1)';
        this.video.style.OTransform = 'scaleX(-1)';
        this.video.style.msFilter = 'FlipH';
        this.video.style.filter = 'FlipH';
        this.video.style.transform = 'scaleX(-1)';
      } else {
        this.video.style.MozTransform = null;
        this.video.style.webkitTransform = null;
        this.video.style.OTransform = null;
        this.video.style.msFilter = null;
        this.video.style.filter = null;
        this.video.style.transform = null;
      }
    },
    get: function get() {
      return this._mirror;
    }
  }]);

  return Scanner;
}(EventEmitter);

module.exports = Scanner;

/***/ }),
/* 414 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.byteLength = byteLength
exports.toByteArray = toByteArray
exports.fromByteArray = fromByteArray

var lookup = []
var revLookup = []
var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array

var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
for (var i = 0, len = code.length; i < len; ++i) {
  lookup[i] = code[i]
  revLookup[code.charCodeAt(i)] = i
}

// Support decoding URL-safe base64 strings, as Node.js does.
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
revLookup['-'.charCodeAt(0)] = 62
revLookup['_'.charCodeAt(0)] = 63

function getLens (b64) {
  var len = b64.length

  if (len % 4 > 0) {
    throw new Error('Invalid string. Length must be a multiple of 4')
  }

  // Trim off extra bytes after placeholder bytes are found
  // See: https://github.com/beatgammit/base64-js/issues/42
  var validLen = b64.indexOf('=')
  if (validLen === -1) validLen = len

  var placeHoldersLen = validLen === len
    ? 0
    : 4 - (validLen % 4)

  return [validLen, placeHoldersLen]
}

// base64 is 4/3 + up to two characters of the original data
function byteLength (b64) {
  var lens = getLens(b64)
  var validLen = lens[0]
  var placeHoldersLen = lens[1]
  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
}

function _byteLength (b64, validLen, placeHoldersLen) {
  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
}

function toByteArray (b64) {
  var tmp
  var lens = getLens(b64)
  var validLen = lens[0]
  var placeHoldersLen = lens[1]

  var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))

  var curByte = 0

  // if there are placeholders, only get up to the last complete 4 chars
  var len = placeHoldersLen > 0
    ? validLen - 4
    : validLen

  for (var i = 0; i < len; i += 4) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 18) |
      (revLookup[b64.charCodeAt(i + 1)] << 12) |
      (revLookup[b64.charCodeAt(i + 2)] << 6) |
      revLookup[b64.charCodeAt(i + 3)]
    arr[curByte++] = (tmp >> 16) & 0xFF
    arr[curByte++] = (tmp >> 8) & 0xFF
    arr[curByte++] = tmp & 0xFF
  }

  if (placeHoldersLen === 2) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 2) |
      (revLookup[b64.charCodeAt(i + 1)] >> 4)
    arr[curByte++] = tmp & 0xFF
  }

  if (placeHoldersLen === 1) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 10) |
      (revLookup[b64.charCodeAt(i + 1)] << 4) |
      (revLookup[b64.charCodeAt(i + 2)] >> 2)
    arr[curByte++] = (tmp >> 8) & 0xFF
    arr[curByte++] = tmp & 0xFF
  }

  return arr
}

function tripletToBase64 (num) {
  return lookup[num >> 18 & 0x3F] +
    lookup[num >> 12 & 0x3F] +
    lookup[num >> 6 & 0x3F] +
    lookup[num & 0x3F]
}

function encodeChunk (uint8, start, end) {
  var tmp
  var output = []
  for (var i = start; i < end; i += 3) {
    tmp =
      ((uint8[i] << 16) & 0xFF0000) +
      ((uint8[i + 1] << 8) & 0xFF00) +
      (uint8[i + 2] & 0xFF)
    output.push(tripletToBase64(tmp))
  }
  return output.join('')
}

function fromByteArray (uint8) {
  var tmp
  var len = uint8.length
  var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  var parts = []
  var maxChunkLength = 16383 // must be multiple of 3

  // go through the array every three bytes, we'll deal with trailing stuff later
  for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
    parts.push(encodeChunk(
      uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)
    ))
  }

  // pad the end with zeros, but make sure to not forget the extra bytes
  if (extraBytes === 1) {
    tmp = uint8[len - 1]
    parts.push(
      lookup[tmp >> 2] +
      lookup[(tmp << 4) & 0x3F] +
      '=='
    )
  } else if (extraBytes === 2) {
    tmp = (uint8[len - 2] << 8) + uint8[len - 1]
    parts.push(
      lookup[tmp >> 10] +
      lookup[(tmp >> 4) & 0x3F] +
      lookup[(tmp << 2) & 0x3F] +
      '='
    )
  }

  return parts.join('')
}


/***/ }),
/* 415 */
/***/ (function(module, exports) {

exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  var e, m
  var eLen = (nBytes * 8) - mLen - 1
  var eMax = (1 << eLen) - 1
  var eBias = eMax >> 1
  var nBits = -7
  var i = isLE ? (nBytes - 1) : 0
  var d = isLE ? -1 : 1
  var s = buffer[offset + i]

  i += d

  e = s & ((1 << (-nBits)) - 1)
  s >>= (-nBits)
  nBits += eLen
  for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}

  m = e & ((1 << (-nBits)) - 1)
  e >>= (-nBits)
  nBits += mLen
  for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}

  if (e === 0) {
    e = 1 - eBias
  } else if (e === eMax) {
    return m ? NaN : ((s ? -1 : 1) * Infinity)
  } else {
    m = m + Math.pow(2, mLen)
    e = e - eBias
  }
  return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
}

exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  var e, m, c
  var eLen = (nBytes * 8) - mLen - 1
  var eMax = (1 << eLen) - 1
  var eBias = eMax >> 1
  var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  var i = isLE ? 0 : (nBytes - 1)
  var d = isLE ? 1 : -1
  var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0

  value = Math.abs(value)

  if (isNaN(value) || value === Infinity) {
    m = isNaN(value) ? 1 : 0
    e = eMax
  } else {
    e = Math.floor(Math.log(value) / Math.LN2)
    if (value * (c = Math.pow(2, -e)) < 1) {
      e--
      c *= 2
    }
    if (e + eBias >= 1) {
      value += rt / c
    } else {
      value += rt * Math.pow(2, 1 - eBias)
    }
    if (value * c >= 2) {
      e++
      c /= 2
    }

    if (e + eBias >= eMax) {
      m = 0
      e = eMax
    } else if (e + eBias >= 1) {
      m = ((value * c) - 1) * Math.pow(2, mLen)
      e = e + eBias
    } else {
      m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
      e = 0
    }
  }

  for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}

  e = (e << mLen) | m
  eLen += mLen
  for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}

  buffer[offset + i - d] |= s * 128
}


/***/ }),
/* 416 */
/***/ (function(module, exports) {

var toString = {}.toString;

module.exports = Array.isArray || function (arr) {
  return toString.call(arr) == '[object Array]';
};


/***/ }),
/* 417 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.randomBytes = exports.rng = exports.pseudoRandomBytes = exports.prng = __webpack_require__(58)
exports.createHash = exports.Hash = __webpack_require__(64)
exports.createHmac = exports.Hmac = __webpack_require__(172)

var algos = __webpack_require__(435)
var algoKeys = Object.keys(algos)
var hashes = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'].concat(algoKeys)
exports.getHashes = function () {
  return hashes
}

var p = __webpack_require__(175)
exports.pbkdf2 = p.pbkdf2
exports.pbkdf2Sync = p.pbkdf2Sync

var aes = __webpack_require__(437)

exports.Cipher = aes.Cipher
exports.createCipher = aes.createCipher
exports.Cipheriv = aes.Cipheriv
exports.createCipheriv = aes.createCipheriv
exports.Decipher = aes.Decipher
exports.createDecipher = aes.createDecipher
exports.Decipheriv = aes.Decipheriv
exports.createDecipheriv = aes.createDecipheriv
exports.getCiphers = aes.getCiphers
exports.listCiphers = aes.listCiphers

var dh = __webpack_require__(454)

exports.DiffieHellmanGroup = dh.DiffieHellmanGroup
exports.createDiffieHellmanGroup = dh.createDiffieHellmanGroup
exports.getDiffieHellman = dh.getDiffieHellman
exports.createDiffieHellman = dh.createDiffieHellman
exports.DiffieHellman = dh.DiffieHellman

var sign = __webpack_require__(459)

exports.createSign = sign.createSign
exports.Sign = sign.Sign
exports.createVerify = sign.createVerify
exports.Verify = sign.Verify

exports.createECDH = __webpack_require__(497)

var publicEncrypt = __webpack_require__(498)

exports.publicEncrypt = publicEncrypt.publicEncrypt
exports.privateEncrypt = publicEncrypt.privateEncrypt
exports.publicDecrypt = publicEncrypt.publicDecrypt
exports.privateDecrypt = publicEncrypt.privateDecrypt

// the least I can do is make error messages for the rest of the node.js/crypto api.
// ;[
//   'createCredentials'
// ].forEach(function (name) {
//   exports[name] = function () {
//     throw new Error([
//       'sorry, ' + name + ' is not implemented yet',
//       'we accept pull requests',
//       'https://github.com/crypto-browserify/crypto-browserify'
//     ].join('\n'))
//   }
// })

var rf = __webpack_require__(501)

exports.randomFill = rf.randomFill
exports.randomFillSync = rf.randomFillSync

exports.createCredentials = function () {
  throw new Error([
    'sorry, createCredentials is not implemented yet',
    'we accept pull requests',
    'https://github.com/crypto-browserify/crypto-browserify'
  ].join('\n'))
}

exports.constants = {
  'DH_CHECK_P_NOT_SAFE_PRIME': 2,
  'DH_CHECK_P_NOT_PRIME': 1,
  'DH_UNABLE_TO_CHECK_GENERATOR': 4,
  'DH_NOT_SUITABLE_GENERATOR': 8,
  'NPN_ENABLED': 1,
  'ALPN_ENABLED': 1,
  'RSA_PKCS1_PADDING': 1,
  'RSA_SSLV23_PADDING': 2,
  'RSA_NO_PADDING': 3,
  'RSA_PKCS1_OAEP_PADDING': 4,
  'RSA_X931_PADDING': 5,
  'RSA_PKCS1_PSS_PADDING': 6,
  'POINT_CONVERSION_COMPRESSED': 2,
  'POINT_CONVERSION_UNCOMPRESSED': 4,
  'POINT_CONVERSION_HYBRID': 6
}


/***/ }),
/* 418 */
/***/ (function(module, exports) {

var toString = {}.toString;

module.exports = Array.isArray || function (arr) {
  return toString.call(arr) == '[object Array]';
};


/***/ }),
/* 419 */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),
/* 420 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Buffer = __webpack_require__(6).Buffer;
var util = __webpack_require__(421);

function copyBuffer(src, target, offset) {
  src.copy(target, offset);
}

module.exports = function () {
  function BufferList() {
    _classCallCheck(this, BufferList);

    this.head = null;
    this.tail = null;
    this.length = 0;
  }

  BufferList.prototype.push = function push(v) {
    var entry = { data: v, next: null };
    if (this.length > 0) this.tail.next = entry;else this.head = entry;
    this.tail = entry;
    ++this.length;
  };

  BufferList.prototype.unshift = function unshift(v) {
    var entry = { data: v, next: this.head };
    if (this.length === 0) this.tail = entry;
    this.head = entry;
    ++this.length;
  };

  BufferList.prototype.shift = function shift() {
    if (this.length === 0) return;
    var ret = this.head.data;
    if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
    --this.length;
    return ret;
  };

  BufferList.prototype.clear = function clear() {
    this.head = this.tail = null;
    this.length = 0;
  };

  BufferList.prototype.join = function join(s) {
    if (this.length === 0) return '';
    var p = this.head;
    var ret = '' + p.data;
    while (p = p.next) {
      ret += s + p.data;
    }return ret;
  };

  BufferList.prototype.concat = function concat(n) {
    if (this.length === 0) return Buffer.alloc(0);
    if (this.length === 1) return this.head.data;
    var ret = Buffer.allocUnsafe(n >>> 0);
    var p = this.head;
    var i = 0;
    while (p) {
      copyBuffer(p.data, ret, i);
      i += p.data.length;
      p = p.next;
    }
    return ret;
  };

  return BufferList;
}();

if (util && util.inspect && util.inspect.custom) {
  module.exports.prototype[util.inspect.custom] = function () {
    var obj = util.inspect({ length: this.length });
    return this.constructor.name + ' ' + obj;
  };
}

/***/ }),
/* 421 */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),
/* 422 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
            (typeof self !== "undefined" && self) ||
            window;
var apply = Function.prototype.apply;

// DOM APIs, for completeness

exports.setTimeout = function() {
  return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
};
exports.setInterval = function() {
  return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
};
exports.clearTimeout =
exports.clearInterval = function(timeout) {
  if (timeout) {
    timeout.close();
  }
};

function Timeout(id, clearFn) {
  this._id = id;
  this._clearFn = clearFn;
}
Timeout.prototype.unref = Timeout.prototype.ref = function() {};
Timeout.prototype.close = function() {
  this._clearFn.call(scope, this._id);
};

// Does not start the time, just sets up the members needed.
exports.enroll = function(item, msecs) {
  clearTimeout(item._idleTimeoutId);
  item._idleTimeout = msecs;
};

exports.unenroll = function(item) {
  clearTimeout(item._idleTimeoutId);
  item._idleTimeout = -1;
};

exports._unrefActive = exports.active = function(item) {
  clearTimeout(item._idleTimeoutId);

  var msecs = item._idleTimeout;
  if (msecs >= 0) {
    item._idleTimeoutId = setTimeout(function onTimeout() {
      if (item._onTimeout)
        item._onTimeout();
    }, msecs);
  }
};

// setimmediate attaches itself to the global object
__webpack_require__(423);
// On some exotic environments, it's not clear which object `setimmediate` was
// able to install onto.  Search each possibility in the same order as the
// `setimmediate` library.
exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
                       (typeof global !== "undefined" && global.setImmediate) ||
                       (this && this.setImmediate);
exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
                         (typeof global !== "undefined" && global.clearImmediate) ||
                         (this && this.clearImmediate);

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)))

/***/ }),
/* 423 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
    "use strict";

    if (global.setImmediate) {
        return;
    }

    var nextHandle = 1; // Spec says greater than zero
    var tasksByHandle = {};
    var currentlyRunningATask = false;
    var doc = global.document;
    var registerImmediate;

    function setImmediate(callback) {
      // Callback can either be a function or a string
      if (typeof callback !== "function") {
        callback = new Function("" + callback);
      }
      // Copy function arguments
      var args = new Array(arguments.length - 1);
      for (var i = 0; i < args.length; i++) {
          args[i] = arguments[i + 1];
      }
      // Store and register the task
      var task = { callback: callback, args: args };
      tasksByHandle[nextHandle] = task;
      registerImmediate(nextHandle);
      return nextHandle++;
    }

    function clearImmediate(handle) {
        delete tasksByHandle[handle];
    }

    function run(task) {
        var callback = task.callback;
        var args = task.args;
        switch (args.length) {
        case 0:
            callback();
            break;
        case 1:
            callback(args[0]);
            break;
        case 2:
            callback(args[0], args[1]);
            break;
        case 3:
            callback(args[0], args[1], args[2]);
            break;
        default:
            callback.apply(undefined, args);
            break;
        }
    }

    function runIfPresent(handle) {
        // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
        // So if we're currently running a task, we'll need to delay this invocation.
        if (currentlyRunningATask) {
            // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
            // "too much recursion" error.
            setTimeout(runIfPresent, 0, handle);
        } else {
            var task = tasksByHandle[handle];
            if (task) {
                currentlyRunningATask = true;
                try {
                    run(task);
                } finally {
                    clearImmediate(handle);
                    currentlyRunningATask = false;
                }
            }
        }
    }

    function installNextTickImplementation() {
        registerImmediate = function(handle) {
            process.nextTick(function () { runIfPresent(handle); });
        };
    }

    function canUsePostMessage() {
        // The test against `importScripts` prevents this implementation from being installed inside a web worker,
        // where `global.postMessage` means something completely different and can't be used for this purpose.
        if (global.postMessage && !global.importScripts) {
            var postMessageIsAsynchronous = true;
            var oldOnMessage = global.onmessage;
            global.onmessage = function() {
                postMessageIsAsynchronous = false;
            };
            global.postMessage("", "*");
            global.onmessage = oldOnMessage;
            return postMessageIsAsynchronous;
        }
    }

    function installPostMessageImplementation() {
        // Installs an event handler on `global` for the `message` event: see
        // * https://developer.mozilla.org/en/DOM/window.postMessage
        // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages

        var messagePrefix = "setImmediate$" + Math.random() + "$";
        var onGlobalMessage = function(event) {
            if (event.source === global &&
                typeof event.data === "string" &&
                event.data.indexOf(messagePrefix) === 0) {
                runIfPresent(+event.data.slice(messagePrefix.length));
            }
        };

        if (global.addEventListener) {
            global.addEventListener("message", onGlobalMessage, false);
        } else {
            global.attachEvent("onmessage", onGlobalMessage);
        }

        registerImmediate = function(handle) {
            global.postMessage(messagePrefix + handle, "*");
        };
    }

    function installMessageChannelImplementation() {
        var channel = new MessageChannel();
        channel.port1.onmessage = function(event) {
            var handle = event.data;
            runIfPresent(handle);
        };

        registerImmediate = function(handle) {
            channel.port2.postMessage(handle);
        };
    }

    function installReadyStateChangeImplementation() {
        var html = doc.documentElement;
        registerImmediate = function(handle) {
            // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
            // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
            var script = doc.createElement("script");
            script.onreadystatechange = function () {
                runIfPresent(handle);
                script.onreadystatechange = null;
                html.removeChild(script);
                script = null;
            };
            html.appendChild(script);
        };
    }

    function installSetTimeoutImplementation() {
        registerImmediate = function(handle) {
            setTimeout(runIfPresent, 0, handle);
        };
    }

    // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
    var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
    attachTo = attachTo && attachTo.setTimeout ? attachTo : global;

    // Don't get fooled by e.g. browserify environments.
    if ({}.toString.call(global.process) === "[object process]") {
        // For Node.js before 0.9
        installNextTickImplementation();

    } else if (canUsePostMessage()) {
        // For non-IE10 modern browsers
        installPostMessageImplementation();

    } else if (global.MessageChannel) {
        // For web workers, where supported
        installMessageChannelImplementation();

    } else if (doc && "onreadystatechange" in doc.createElement("script")) {
        // For IE 6–8
        installReadyStateChangeImplementation();

    } else {
        // For older browsers
        installSetTimeoutImplementation();
    }

    attachTo.setImmediate = setImmediate;
    attachTo.clearImmediate = clearImmediate;
}(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15), __webpack_require__(30)))

/***/ }),
/* 424 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {
/**
 * Module exports.
 */

module.exports = deprecate;

/**
 * Mark that a method should not be used.
 * Returns a modified function which warns once by default.
 *
 * If `localStorage.noDeprecation = true` is set, then it is a no-op.
 *
 * If `localStorage.throwDeprecation = true` is set, then deprecated functions
 * will throw an Error when invoked.
 *
 * If `localStorage.traceDeprecation = true` is set, then deprecated functions
 * will invoke `console.trace()` instead of `console.error()`.
 *
 * @param {Function} fn - the function to deprecate
 * @param {String} msg - the string to print to the console when `fn` is invoked
 * @returns {Function} a new "deprecated" version of `fn`
 * @api public
 */

function deprecate (fn, msg) {
  if (config('noDeprecation')) {
    return fn;
  }

  var warned = false;
  function deprecated() {
    if (!warned) {
      if (config('throwDeprecation')) {
        throw new Error(msg);
      } else if (config('traceDeprecation')) {
        console.trace(msg);
      } else {
        console.warn(msg);
      }
      warned = true;
    }
    return fn.apply(this, arguments);
  }

  return deprecated;
}

/**
 * Checks `localStorage` for boolean values for the given `name`.
 *
 * @param {String} name
 * @returns {Boolean}
 * @api private
 */

function config (name) {
  // accessing global.localStorage can trigger a DOMException in sandboxed iframes
  try {
    if (!global.localStorage) return false;
  } catch (_) {
    return false;
  }
  var val = global.localStorage[name];
  if (null == val) return false;
  return String(val).toLowerCase() === 'true';
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)))

/***/ }),
/* 425 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.



module.exports = PassThrough;

var Transform = __webpack_require__(169);

/*<replacement>*/
var util = __webpack_require__(65);
util.inherits = __webpack_require__(1);
/*</replacement>*/

util.inherits(PassThrough, Transform);

function PassThrough(options) {
  if (!(this instanceof PassThrough)) return new PassThrough(options);

  Transform.call(this, options);
}

PassThrough.prototype._transform = function (chunk, encoding, cb) {
  cb(null, chunk);
};

/***/ }),
/* 426 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(119);


/***/ }),
/* 427 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(53);


/***/ }),
/* 428 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(118).Transform


/***/ }),
/* 429 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(118).PassThrough


/***/ }),
/* 430 */
/***/ (function(module, exports, __webpack_require__) {

/*
 * A JavaScript implementation of the Secure Hash Algorithm, SHA-0, as defined
 * in FIPS PUB 180-1
 * This source code is derived from sha1.js of the same repository.
 * The difference between SHA-0 and SHA-1 is just a bitwise rotate left
 * operation was added.
 */

var inherits = __webpack_require__(1)
var Hash = __webpack_require__(59)
var Buffer = __webpack_require__(6).Buffer

var K = [
  0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0
]

var W = new Array(80)

function Sha () {
  this.init()
  this._w = W

  Hash.call(this, 64, 56)
}

inherits(Sha, Hash)

Sha.prototype.init = function () {
  this._a = 0x67452301
  this._b = 0xefcdab89
  this._c = 0x98badcfe
  this._d = 0x10325476
  this._e = 0xc3d2e1f0

  return this
}

function rotl5 (num) {
  return (num << 5) | (num >>> 27)
}

function rotl30 (num) {
  return (num << 30) | (num >>> 2)
}

function ft (s, b, c, d) {
  if (s === 0) return (b & c) | ((~b) & d)
  if (s === 2) return (b & c) | (b & d) | (c & d)
  return b ^ c ^ d
}

Sha.prototype._update = function (M) {
  var W = this._w

  var a = this._a | 0
  var b = this._b | 0
  var c = this._c | 0
  var d = this._d | 0
  var e = this._e | 0

  for (var i = 0; i < 16; ++i) W[i] = M.readInt32BE(i * 4)
  for (; i < 80; ++i) W[i] = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16]

  for (var j = 0; j < 80; ++j) {
    var s = ~~(j / 20)
    var t = (rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s]) | 0

    e = d
    d = c
    c = rotl30(b)
    b = a
    a = t
  }

  this._a = (a + this._a) | 0
  this._b = (b + this._b) | 0
  this._c = (c + this._c) | 0
  this._d = (d + this._d) | 0
  this._e = (e + this._e) | 0
}

Sha.prototype._hash = function () {
  var H = Buffer.allocUnsafe(20)

  H.writeInt32BE(this._a | 0, 0)
  H.writeInt32BE(this._b | 0, 4)
  H.writeInt32BE(this._c | 0, 8)
  H.writeInt32BE(this._d | 0, 12)
  H.writeInt32BE(this._e | 0, 16)

  return H
}

module.exports = Sha


/***/ }),
/* 431 */
/***/ (function(module, exports, __webpack_require__) {

/*
 * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
 * in FIPS PUB 180-1
 * Version 2.1a Copyright Paul Johnston 2000 - 2002.
 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
 * Distributed under the BSD License
 * See http://pajhome.org.uk/crypt/md5 for details.
 */

var inherits = __webpack_require__(1)
var Hash = __webpack_require__(59)
var Buffer = __webpack_require__(6).Buffer

var K = [
  0x5a827999, 0x6ed9eba1, 0x8f1bbcdc | 0, 0xca62c1d6 | 0
]

var W = new Array(80)

function Sha1 () {
  this.init()
  this._w = W

  Hash.call(this, 64, 56)
}

inherits(Sha1, Hash)

Sha1.prototype.init = function () {
  this._a = 0x67452301
  this._b = 0xefcdab89
  this._c = 0x98badcfe
  this._d = 0x10325476
  this._e = 0xc3d2e1f0

  return this
}

function rotl1 (num) {
  return (num << 1) | (num >>> 31)
}

function rotl5 (num) {
  return (num << 5) | (num >>> 27)
}

function rotl30 (num) {
  return (num << 30) | (num >>> 2)
}

function ft (s, b, c, d) {
  if (s === 0) return (b & c) | ((~b) & d)
  if (s === 2) return (b & c) | (b & d) | (c & d)
  return b ^ c ^ d
}

Sha1.prototype._update = function (M) {
  var W = this._w

  var a = this._a | 0
  var b = this._b | 0
  var c = this._c | 0
  var d = this._d | 0
  var e = this._e | 0

  for (var i = 0; i < 16; ++i) W[i] = M.readInt32BE(i * 4)
  for (; i < 80; ++i) W[i] = rotl1(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16])

  for (var j = 0; j < 80; ++j) {
    var s = ~~(j / 20)
    var t = (rotl5(a) + ft(s, b, c, d) + e + W[j] + K[s]) | 0

    e = d
    d = c
    c = rotl30(b)
    b = a
    a = t
  }

  this._a = (a + this._a) | 0
  this._b = (b + this._b) | 0
  this._c = (c + this._c) | 0
  this._d = (d + this._d) | 0
  this._e = (e + this._e) | 0
}

Sha1.prototype._hash = function () {
  var H = Buffer.allocUnsafe(20)

  H.writeInt32BE(this._a | 0, 0)
  H.writeInt32BE(this._b | 0, 4)
  H.writeInt32BE(this._c | 0, 8)
  H.writeInt32BE(this._d | 0, 12)
  H.writeInt32BE(this._e | 0, 16)

  return H
}

module.exports = Sha1


/***/ }),
/* 432 */
/***/ (function(module, exports, __webpack_require__) {

/**
 * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
 * in FIPS 180-2
 * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
 *
 */

var inherits = __webpack_require__(1)
var Sha256 = __webpack_require__(170)
var Hash = __webpack_require__(59)
var Buffer = __webpack_require__(6).Buffer

var W = new Array(64)

function Sha224 () {
  this.init()

  this._w = W // new Array(64)

  Hash.call(this, 64, 56)
}

inherits(Sha224, Sha256)

Sha224.prototype.init = function () {
  this._a = 0xc1059ed8
  this._b = 0x367cd507
  this._c = 0x3070dd17
  this._d = 0xf70e5939
  this._e = 0xffc00b31
  this._f = 0x68581511
  this._g = 0x64f98fa7
  this._h = 0xbefa4fa4

  return this
}

Sha224.prototype._hash = function () {
  var H = Buffer.allocUnsafe(28)

  H.writeInt32BE(this._a, 0)
  H.writeInt32BE(this._b, 4)
  H.writeInt32BE(this._c, 8)
  H.writeInt32BE(this._d, 12)
  H.writeInt32BE(this._e, 16)
  H.writeInt32BE(this._f, 20)
  H.writeInt32BE(this._g, 24)

  return H
}

module.exports = Sha224


/***/ }),
/* 433 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1)
var SHA512 = __webpack_require__(171)
var Hash = __webpack_require__(59)
var Buffer = __webpack_require__(6).Buffer

var W = new Array(160)

function Sha384 () {
  this.init()
  this._w = W

  Hash.call(this, 128, 112)
}

inherits(Sha384, SHA512)

Sha384.prototype.init = function () {
  this._ah = 0xcbbb9d5d
  this._bh = 0x629a292a
  this._ch = 0x9159015a
  this._dh = 0x152fecd8
  this._eh = 0x67332667
  this._fh = 0x8eb44a87
  this._gh = 0xdb0c2e0d
  this._hh = 0x47b5481d

  this._al = 0xc1059ed8
  this._bl = 0x367cd507
  this._cl = 0x3070dd17
  this._dl = 0xf70e5939
  this._el = 0xffc00b31
  this._fl = 0x68581511
  this._gl = 0x64f98fa7
  this._hl = 0xbefa4fa4

  return this
}

Sha384.prototype._hash = function () {
  var H = Buffer.allocUnsafe(48)

  function writeInt64BE (h, l, offset) {
    H.writeInt32BE(h, offset)
    H.writeInt32BE(l, offset + 4)
  }

  writeInt64BE(this._ah, this._al, 0)
  writeInt64BE(this._bh, this._bl, 8)
  writeInt64BE(this._ch, this._cl, 16)
  writeInt64BE(this._dh, this._dl, 24)
  writeInt64BE(this._eh, this._el, 32)
  writeInt64BE(this._fh, this._fl, 40)

  return H
}

module.exports = Sha384


/***/ }),
/* 434 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var inherits = __webpack_require__(1)
var Buffer = __webpack_require__(6).Buffer

var Base = __webpack_require__(42)

var ZEROS = Buffer.alloc(128)
var blocksize = 64

function Hmac (alg, key) {
  Base.call(this, 'digest')
  if (typeof key === 'string') {
    key = Buffer.from(key)
  }

  this._alg = alg
  this._key = key

  if (key.length > blocksize) {
    key = alg(key)
  } else if (key.length < blocksize) {
    key = Buffer.concat([key, ZEROS], blocksize)
  }

  var ipad = this._ipad = Buffer.allocUnsafe(blocksize)
  var opad = this._opad = Buffer.allocUnsafe(blocksize)

  for (var i = 0; i < blocksize; i++) {
    ipad[i] = key[i] ^ 0x36
    opad[i] = key[i] ^ 0x5C
  }

  this._hash = [ipad]
}

inherits(Hmac, Base)

Hmac.prototype._update = function (data) {
  this._hash.push(data)
}

Hmac.prototype._final = function () {
  var h = this._alg(Buffer.concat(this._hash))
  return this._alg(Buffer.concat([this._opad, h]))
}
module.exports = Hmac


/***/ }),
/* 435 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(174)


/***/ }),
/* 436 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, process) {var checkParameters = __webpack_require__(176)
var defaultEncoding = __webpack_require__(177)
var sync = __webpack_require__(178)
var Buffer = __webpack_require__(6).Buffer

var ZERO_BUF
var subtle = global.crypto && global.crypto.subtle
var toBrowser = {
  'sha': 'SHA-1',
  'sha-1': 'SHA-1',
  'sha1': 'SHA-1',
  'sha256': 'SHA-256',
  'sha-256': 'SHA-256',
  'sha384': 'SHA-384',
  'sha-384': 'SHA-384',
  'sha-512': 'SHA-512',
  'sha512': 'SHA-512'
}
var checks = []
function checkNative (algo) {
  if (global.process && !global.process.browser) {
    return Promise.resolve(false)
  }
  if (!subtle || !subtle.importKey || !subtle.deriveBits) {
    return Promise.resolve(false)
  }
  if (checks[algo] !== undefined) {
    return checks[algo]
  }
  ZERO_BUF = ZERO_BUF || Buffer.alloc(8)
  var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo)
    .then(function () {
      return true
    }).catch(function () {
      return false
    })
  checks[algo] = prom
  return prom
}

function browserPbkdf2 (password, salt, iterations, length, algo) {
  return subtle.importKey(
    'raw', password, {name: 'PBKDF2'}, false, ['deriveBits']
  ).then(function (key) {
    return subtle.deriveBits({
      name: 'PBKDF2',
      salt: salt,
      iterations: iterations,
      hash: {
        name: algo
      }
    }, key, length << 3)
  }).then(function (res) {
    return Buffer.from(res)
  })
}

function resolvePromise (promise, callback) {
  promise.then(function (out) {
    process.nextTick(function () {
      callback(null, out)
    })
  }, function (e) {
    process.nextTick(function () {
      callback(e)
    })
  })
}
module.exports = function (password, salt, iterations, keylen, digest, callback) {
  if (typeof digest === 'function') {
    callback = digest
    digest = undefined
  }

  digest = digest || 'sha1'
  var algo = toBrowser[digest.toLowerCase()]

  if (!algo || typeof global.Promise !== 'function') {
    return process.nextTick(function () {
      var out
      try {
        out = sync(password, salt, iterations, keylen, digest)
      } catch (e) {
        return callback(e)
      }
      callback(null, out)
    })
  }

  checkParameters(password, salt, iterations, keylen)
  if (typeof callback !== 'function') throw new Error('No callback provided to pbkdf2')
  if (!Buffer.isBuffer(password)) password = Buffer.from(password, defaultEncoding)
  if (!Buffer.isBuffer(salt)) salt = Buffer.from(salt, defaultEncoding)

  resolvePromise(checkNative(algo).then(function (resp) {
    if (resp) return browserPbkdf2(password, salt, iterations, keylen, algo)

    return sync(password, salt, iterations, keylen, digest)
  }), callback)
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15), __webpack_require__(30)))

/***/ }),
/* 437 */
/***/ (function(module, exports, __webpack_require__) {

var DES = __webpack_require__(438)
var aes = __webpack_require__(124)
var aesModes = __webpack_require__(125)
var desModes = __webpack_require__(453)
var ebtk = __webpack_require__(87)

function createCipher (suite, password) {
  suite = suite.toLowerCase()

  var keyLen, ivLen
  if (aesModes[suite]) {
    keyLen = aesModes[suite].key
    ivLen = aesModes[suite].iv
  } else if (desModes[suite]) {
    keyLen = desModes[suite].key * 8
    ivLen = desModes[suite].iv
  } else {
    throw new TypeError('invalid suite type')
  }

  var keys = ebtk(password, false, keyLen, ivLen)
  return createCipheriv(suite, keys.key, keys.iv)
}

function createDecipher (suite, password) {
  suite = suite.toLowerCase()

  var keyLen, ivLen
  if (aesModes[suite]) {
    keyLen = aesModes[suite].key
    ivLen = aesModes[suite].iv
  } else if (desModes[suite]) {
    keyLen = desModes[suite].key * 8
    ivLen = desModes[suite].iv
  } else {
    throw new TypeError('invalid suite type')
  }

  var keys = ebtk(password, false, keyLen, ivLen)
  return createDecipheriv(suite, keys.key, keys.iv)
}

function createCipheriv (suite, key, iv) {
  suite = suite.toLowerCase()
  if (aesModes[suite]) return aes.createCipheriv(suite, key, iv)
  if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite })

  throw new TypeError('invalid suite type')
}

function createDecipheriv (suite, key, iv) {
  suite = suite.toLowerCase()
  if (aesModes[suite]) return aes.createDecipheriv(suite, key, iv)
  if (desModes[suite]) return new DES({ key: key, iv: iv, mode: suite, decrypt: true })

  throw new TypeError('invalid suite type')
}

function getCiphers () {
  return Object.keys(desModes).concat(aes.getCiphers())
}

exports.createCipher = exports.Cipher = createCipher
exports.createCipheriv = exports.Cipheriv = createCipheriv
exports.createDecipher = exports.Decipher = createDecipher
exports.createDecipheriv = exports.Decipheriv = createDecipheriv
exports.listCiphers = exports.getCiphers = getCiphers


/***/ }),
/* 438 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var CipherBase = __webpack_require__(42)
var des = __webpack_require__(123)
var inherits = __webpack_require__(1)

var modes = {
  'des-ede3-cbc': des.CBC.instantiate(des.EDE),
  'des-ede3': des.EDE,
  'des-ede-cbc': des.CBC.instantiate(des.EDE),
  'des-ede': des.EDE,
  'des-cbc': des.CBC.instantiate(des.DES),
  'des-ecb': des.DES
}
modes.des = modes['des-cbc']
modes.des3 = modes['des-ede3-cbc']
module.exports = DES
inherits(DES, CipherBase)
function DES (opts) {
  CipherBase.call(this)
  var modeName = opts.mode.toLowerCase()
  var mode = modes[modeName]
  var type
  if (opts.decrypt) {
    type = 'decrypt'
  } else {
    type = 'encrypt'
  }
  var key = opts.key
  if (modeName === 'des-ede' || modeName === 'des-ede-cbc') {
    key = Buffer.concat([key, key.slice(0, 8)])
  }
  var iv = opts.iv
  this._des = mode.create({
    key: key,
    iv: iv,
    type: type
  })
}
DES.prototype._update = function (data) {
  return new Buffer(this._des.update(data))
}
DES.prototype._final = function () {
  return new Buffer(this._des.final())
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 439 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.readUInt32BE = function readUInt32BE(bytes, off) {
  var res =  (bytes[0 + off] << 24) |
             (bytes[1 + off] << 16) |
             (bytes[2 + off] << 8) |
             bytes[3 + off];
  return res >>> 0;
};

exports.writeUInt32BE = function writeUInt32BE(bytes, value, off) {
  bytes[0 + off] = value >>> 24;
  bytes[1 + off] = (value >>> 16) & 0xff;
  bytes[2 + off] = (value >>> 8) & 0xff;
  bytes[3 + off] = value & 0xff;
};

exports.ip = function ip(inL, inR, out, off) {
  var outL = 0;
  var outR = 0;

  for (var i = 6; i >= 0; i -= 2) {
    for (var j = 0; j <= 24; j += 8) {
      outL <<= 1;
      outL |= (inR >>> (j + i)) & 1;
    }
    for (var j = 0; j <= 24; j += 8) {
      outL <<= 1;
      outL |= (inL >>> (j + i)) & 1;
    }
  }

  for (var i = 6; i >= 0; i -= 2) {
    for (var j = 1; j <= 25; j += 8) {
      outR <<= 1;
      outR |= (inR >>> (j + i)) & 1;
    }
    for (var j = 1; j <= 25; j += 8) {
      outR <<= 1;
      outR |= (inL >>> (j + i)) & 1;
    }
  }

  out[off + 0] = outL >>> 0;
  out[off + 1] = outR >>> 0;
};

exports.rip = function rip(inL, inR, out, off) {
  var outL = 0;
  var outR = 0;

  for (var i = 0; i < 4; i++) {
    for (var j = 24; j >= 0; j -= 8) {
      outL <<= 1;
      outL |= (inR >>> (j + i)) & 1;
      outL <<= 1;
      outL |= (inL >>> (j + i)) & 1;
    }
  }
  for (var i = 4; i < 8; i++) {
    for (var j = 24; j >= 0; j -= 8) {
      outR <<= 1;
      outR |= (inR >>> (j + i)) & 1;
      outR <<= 1;
      outR |= (inL >>> (j + i)) & 1;
    }
  }

  out[off + 0] = outL >>> 0;
  out[off + 1] = outR >>> 0;
};

exports.pc1 = function pc1(inL, inR, out, off) {
  var outL = 0;
  var outR = 0;

  // 7, 15, 23, 31, 39, 47, 55, 63
  // 6, 14, 22, 30, 39, 47, 55, 63
  // 5, 13, 21, 29, 39, 47, 55, 63
  // 4, 12, 20, 28
  for (var i = 7; i >= 5; i--) {
    for (var j = 0; j <= 24; j += 8) {
      outL <<= 1;
      outL |= (inR >> (j + i)) & 1;
    }
    for (var j = 0; j <= 24; j += 8) {
      outL <<= 1;
      outL |= (inL >> (j + i)) & 1;
    }
  }
  for (var j = 0; j <= 24; j += 8) {
    outL <<= 1;
    outL |= (inR >> (j + i)) & 1;
  }

  // 1, 9, 17, 25, 33, 41, 49, 57
  // 2, 10, 18, 26, 34, 42, 50, 58
  // 3, 11, 19, 27, 35, 43, 51, 59
  // 36, 44, 52, 60
  for (var i = 1; i <= 3; i++) {
    for (var j = 0; j <= 24; j += 8) {
      outR <<= 1;
      outR |= (inR >> (j + i)) & 1;
    }
    for (var j = 0; j <= 24; j += 8) {
      outR <<= 1;
      outR |= (inL >> (j + i)) & 1;
    }
  }
  for (var j = 0; j <= 24; j += 8) {
    outR <<= 1;
    outR |= (inL >> (j + i)) & 1;
  }

  out[off + 0] = outL >>> 0;
  out[off + 1] = outR >>> 0;
};

exports.r28shl = function r28shl(num, shift) {
  return ((num << shift) & 0xfffffff) | (num >>> (28 - shift));
};

var pc2table = [
  // inL => outL
  14, 11, 17, 4, 27, 23, 25, 0,
  13, 22, 7, 18, 5, 9, 16, 24,
  2, 20, 12, 21, 1, 8, 15, 26,

  // inR => outR
  15, 4, 25, 19, 9, 1, 26, 16,
  5, 11, 23, 8, 12, 7, 17, 0,
  22, 3, 10, 14, 6, 20, 27, 24
];

exports.pc2 = function pc2(inL, inR, out, off) {
  var outL = 0;
  var outR = 0;

  var len = pc2table.length >>> 1;
  for (var i = 0; i < len; i++) {
    outL <<= 1;
    outL |= (inL >>> pc2table[i]) & 0x1;
  }
  for (var i = len; i < pc2table.length; i++) {
    outR <<= 1;
    outR |= (inR >>> pc2table[i]) & 0x1;
  }

  out[off + 0] = outL >>> 0;
  out[off + 1] = outR >>> 0;
};

exports.expand = function expand(r, out, off) {
  var outL = 0;
  var outR = 0;

  outL = ((r & 1) << 5) | (r >>> 27);
  for (var i = 23; i >= 15; i -= 4) {
    outL <<= 6;
    outL |= (r >>> i) & 0x3f;
  }
  for (var i = 11; i >= 3; i -= 4) {
    outR |= (r >>> i) & 0x3f;
    outR <<= 6;
  }
  outR |= ((r & 0x1f) << 1) | (r >>> 31);

  out[off + 0] = outL >>> 0;
  out[off + 1] = outR >>> 0;
};

var sTable = [
  14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1,
  3, 10, 10, 6, 6, 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8,
  4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, 9, 2, 1, 11, 7,
  15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13,

  15, 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14,
  9, 12, 7, 0, 2, 1, 13, 10, 12, 6, 0, 9, 5, 11, 10, 5,
  0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, 13, 4, 1, 2,
  5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9,

  10, 13, 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10,
  1, 2, 13, 8, 12, 5, 7, 14, 11, 12, 4, 11, 2, 15, 8, 1,
  13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, 0, 7,
  11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12,

  7, 13, 13, 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3,
  1, 4, 2, 7, 8, 2, 5, 12, 11, 1, 12, 10, 4, 14, 15, 9,
  10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, 8,
  15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14,

  2, 14, 12, 11, 4, 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1,
  8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, 9, 14, 8, 9, 6,
  4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13,
  15, 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3,

  12, 10, 1, 15, 10, 4, 15, 2, 9, 7, 2, 12, 6, 9, 8, 5,
  0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, 11, 8,
  9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10,
  7, 11, 0, 14, 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13,

  4, 13, 11, 0, 2, 11, 14, 7, 15, 4, 0, 9, 8, 1, 13, 10,
  3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6,
  1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7,
  10, 9, 15, 5, 6, 0, 8, 15, 0, 14, 5, 2, 9, 3, 2, 12,

  13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, 11, 7, 1, 4,
  10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2,
  7, 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13,
  0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11
];

exports.substitute = function substitute(inL, inR) {
  var out = 0;
  for (var i = 0; i < 4; i++) {
    var b = (inL >>> (18 - i * 6)) & 0x3f;
    var sb = sTable[i * 0x40 + b];

    out <<= 4;
    out |= sb;
  }
  for (var i = 0; i < 4; i++) {
    var b = (inR >>> (18 - i * 6)) & 0x3f;
    var sb = sTable[4 * 0x40 + i * 0x40 + b];

    out <<= 4;
    out |= sb;
  }
  return out >>> 0;
};

var permuteTable = [
  16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22,
  30, 24, 8, 18, 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7
];

exports.permute = function permute(num) {
  var out = 0;
  for (var i = 0; i < permuteTable.length; i++) {
    out <<= 1;
    out |= (num >>> permuteTable[i]) & 0x1;
  }
  return out >>> 0;
};

exports.padSplit = function padSplit(num, size, group) {
  var str = num.toString(2);
  while (str.length < size)
    str = '0' + str;

  var out = [];
  for (var i = 0; i < size; i += group)
    out.push(str.slice(i, i + group));
  return out.join(' ');
};


/***/ }),
/* 440 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var assert = __webpack_require__(25);

function Cipher(options) {
  this.options = options;

  this.type = this.options.type;
  this.blockSize = 8;
  this._init();

  this.buffer = new Array(this.blockSize);
  this.bufferOff = 0;
}
module.exports = Cipher;

Cipher.prototype._init = function _init() {
  // Might be overrided
};

Cipher.prototype.update = function update(data) {
  if (data.length === 0)
    return [];

  if (this.type === 'decrypt')
    return this._updateDecrypt(data);
  else
    return this._updateEncrypt(data);
};

Cipher.prototype._buffer = function _buffer(data, off) {
  // Append data to buffer
  var min = Math.min(this.buffer.length - this.bufferOff, data.length - off);
  for (var i = 0; i < min; i++)
    this.buffer[this.bufferOff + i] = data[off + i];
  this.bufferOff += min;

  // Shift next
  return min;
};

Cipher.prototype._flushBuffer = function _flushBuffer(out, off) {
  this._update(this.buffer, 0, out, off);
  this.bufferOff = 0;
  return this.blockSize;
};

Cipher.prototype._updateEncrypt = function _updateEncrypt(data) {
  var inputOff = 0;
  var outputOff = 0;

  var count = ((this.bufferOff + data.length) / this.blockSize) | 0;
  var out = new Array(count * this.blockSize);

  if (this.bufferOff !== 0) {
    inputOff += this._buffer(data, inputOff);

    if (this.bufferOff === this.buffer.length)
      outputOff += this._flushBuffer(out, outputOff);
  }

  // Write blocks
  var max = data.length - ((data.length - inputOff) % this.blockSize);
  for (; inputOff < max; inputOff += this.blockSize) {
    this._update(data, inputOff, out, outputOff);
    outputOff += this.blockSize;
  }

  // Queue rest
  for (; inputOff < data.length; inputOff++, this.bufferOff++)
    this.buffer[this.bufferOff] = data[inputOff];

  return out;
};

Cipher.prototype._updateDecrypt = function _updateDecrypt(data) {
  var inputOff = 0;
  var outputOff = 0;

  var count = Math.ceil((this.bufferOff + data.length) / this.blockSize) - 1;
  var out = new Array(count * this.blockSize);

  // TODO(indutny): optimize it, this is far from optimal
  for (; count > 0; count--) {
    inputOff += this._buffer(data, inputOff);
    outputOff += this._flushBuffer(out, outputOff);
  }

  // Buffer rest of the input
  inputOff += this._buffer(data, inputOff);

  return out;
};

Cipher.prototype.final = function final(buffer) {
  var first;
  if (buffer)
    first = this.update(buffer);

  var last;
  if (this.type === 'encrypt')
    last = this._finalEncrypt();
  else
    last = this._finalDecrypt();

  if (first)
    return first.concat(last);
  else
    return last;
};

Cipher.prototype._pad = function _pad(buffer, off) {
  if (off === 0)
    return false;

  while (off < buffer.length)
    buffer[off++] = 0;

  return true;
};

Cipher.prototype._finalEncrypt = function _finalEncrypt() {
  if (!this._pad(this.buffer, this.bufferOff))
    return [];

  var out = new Array(this.blockSize);
  this._update(this.buffer, 0, out, 0);
  return out;
};

Cipher.prototype._unpad = function _unpad(buffer) {
  return buffer;
};

Cipher.prototype._finalDecrypt = function _finalDecrypt() {
  assert.equal(this.bufferOff, this.blockSize, 'Not enough data to decrypt');
  var out = new Array(this.blockSize);
  this._flushBuffer(out, 0);

  return this._unpad(out);
};


/***/ }),
/* 441 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var assert = __webpack_require__(25);
var inherits = __webpack_require__(1);

var des = __webpack_require__(123);
var utils = des.utils;
var Cipher = des.Cipher;

function DESState() {
  this.tmp = new Array(2);
  this.keys = null;
}

function DES(options) {
  Cipher.call(this, options);

  var state = new DESState();
  this._desState = state;

  this.deriveKeys(state, options.key);
}
inherits(DES, Cipher);
module.exports = DES;

DES.create = function create(options) {
  return new DES(options);
};

var shiftTable = [
  1, 1, 2, 2, 2, 2, 2, 2,
  1, 2, 2, 2, 2, 2, 2, 1
];

DES.prototype.deriveKeys = function deriveKeys(state, key) {
  state.keys = new Array(16 * 2);

  assert.equal(key.length, this.blockSize, 'Invalid key length');

  var kL = utils.readUInt32BE(key, 0);
  var kR = utils.readUInt32BE(key, 4);

  utils.pc1(kL, kR, state.tmp, 0);
  kL = state.tmp[0];
  kR = state.tmp[1];
  for (var i = 0; i < state.keys.length; i += 2) {
    var shift = shiftTable[i >>> 1];
    kL = utils.r28shl(kL, shift);
    kR = utils.r28shl(kR, shift);
    utils.pc2(kL, kR, state.keys, i);
  }
};

DES.prototype._update = function _update(inp, inOff, out, outOff) {
  var state = this._desState;

  var l = utils.readUInt32BE(inp, inOff);
  var r = utils.readUInt32BE(inp, inOff + 4);

  // Initial Permutation
  utils.ip(l, r, state.tmp, 0);
  l = state.tmp[0];
  r = state.tmp[1];

  if (this.type === 'encrypt')
    this._encrypt(state, l, r, state.tmp, 0);
  else
    this._decrypt(state, l, r, state.tmp, 0);

  l = state.tmp[0];
  r = state.tmp[1];

  utils.writeUInt32BE(out, l, outOff);
  utils.writeUInt32BE(out, r, outOff + 4);
};

DES.prototype._pad = function _pad(buffer, off) {
  var value = buffer.length - off;
  for (var i = off; i < buffer.length; i++)
    buffer[i] = value;

  return true;
};

DES.prototype._unpad = function _unpad(buffer) {
  var pad = buffer[buffer.length - 1];
  for (var i = buffer.length - pad; i < buffer.length; i++)
    assert.equal(buffer[i], pad);

  return buffer.slice(0, buffer.length - pad);
};

DES.prototype._encrypt = function _encrypt(state, lStart, rStart, out, off) {
  var l = lStart;
  var r = rStart;

  // Apply f() x16 times
  for (var i = 0; i < state.keys.length; i += 2) {
    var keyL = state.keys[i];
    var keyR = state.keys[i + 1];

    // f(r, k)
    utils.expand(r, state.tmp, 0);

    keyL ^= state.tmp[0];
    keyR ^= state.tmp[1];
    var s = utils.substitute(keyL, keyR);
    var f = utils.permute(s);

    var t = r;
    r = (l ^ f) >>> 0;
    l = t;
  }

  // Reverse Initial Permutation
  utils.rip(r, l, out, off);
};

DES.prototype._decrypt = function _decrypt(state, lStart, rStart, out, off) {
  var l = rStart;
  var r = lStart;

  // Apply f() x16 times
  for (var i = state.keys.length - 2; i >= 0; i -= 2) {
    var keyL = state.keys[i];
    var keyR = state.keys[i + 1];

    // f(r, k)
    utils.expand(l, state.tmp, 0);

    keyL ^= state.tmp[0];
    keyR ^= state.tmp[1];
    var s = utils.substitute(keyL, keyR);
    var f = utils.permute(s);

    var t = l;
    l = (r ^ f) >>> 0;
    r = t;
  }

  // Reverse Initial Permutation
  utils.rip(l, r, out, off);
};


/***/ }),
/* 442 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var assert = __webpack_require__(25);
var inherits = __webpack_require__(1);

var proto = {};

function CBCState(iv) {
  assert.equal(iv.length, 8, 'Invalid IV length');

  this.iv = new Array(8);
  for (var i = 0; i < this.iv.length; i++)
    this.iv[i] = iv[i];
}

function instantiate(Base) {
  function CBC(options) {
    Base.call(this, options);
    this._cbcInit();
  }
  inherits(CBC, Base);

  var keys = Object.keys(proto);
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    CBC.prototype[key] = proto[key];
  }

  CBC.create = function create(options) {
    return new CBC(options);
  };

  return CBC;
}

exports.instantiate = instantiate;

proto._cbcInit = function _cbcInit() {
  var state = new CBCState(this.options.iv);
  this._cbcState = state;
};

proto._update = function _update(inp, inOff, out, outOff) {
  var state = this._cbcState;
  var superProto = this.constructor.super_.prototype;

  var iv = state.iv;
  if (this.type === 'encrypt') {
    for (var i = 0; i < this.blockSize; i++)
      iv[i] ^= inp[inOff + i];

    superProto._update.call(this, iv, 0, out, outOff);

    for (var i = 0; i < this.blockSize; i++)
      iv[i] = out[outOff + i];
  } else {
    superProto._update.call(this, inp, inOff, out, outOff);

    for (var i = 0; i < this.blockSize; i++)
      out[outOff + i] ^= iv[i];

    for (var i = 0; i < this.blockSize; i++)
      iv[i] = inp[inOff + i];
  }
};


/***/ }),
/* 443 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var assert = __webpack_require__(25);
var inherits = __webpack_require__(1);

var des = __webpack_require__(123);
var Cipher = des.Cipher;
var DES = des.DES;

function EDEState(type, key) {
  assert.equal(key.length, 24, 'Invalid key length');

  var k1 = key.slice(0, 8);
  var k2 = key.slice(8, 16);
  var k3 = key.slice(16, 24);

  if (type === 'encrypt') {
    this.ciphers = [
      DES.create({ type: 'encrypt', key: k1 }),
      DES.create({ type: 'decrypt', key: k2 }),
      DES.create({ type: 'encrypt', key: k3 })
    ];
  } else {
    this.ciphers = [
      DES.create({ type: 'decrypt', key: k3 }),
      DES.create({ type: 'encrypt', key: k2 }),
      DES.create({ type: 'decrypt', key: k1 })
    ];
  }
}

function EDE(options) {
  Cipher.call(this, options);

  var state = new EDEState(this.type, this.options.key);
  this._edeState = state;
}
inherits(EDE, Cipher);

module.exports = EDE;

EDE.create = function create(options) {
  return new EDE(options);
};

EDE.prototype._update = function _update(inp, inOff, out, outOff) {
  var state = this._edeState;

  state.ciphers[0]._update(inp, inOff, out, outOff);
  state.ciphers[1]._update(out, outOff, out, outOff);
  state.ciphers[2]._update(out, outOff, out, outOff);
};

EDE.prototype._pad = DES.prototype._pad;
EDE.prototype._unpad = DES.prototype._unpad;


/***/ }),
/* 444 */
/***/ (function(module, exports, __webpack_require__) {

var MODES = __webpack_require__(125)
var AuthCipher = __webpack_require__(182)
var Buffer = __webpack_require__(6).Buffer
var StreamCipher = __webpack_require__(183)
var Transform = __webpack_require__(42)
var aes = __webpack_require__(86)
var ebtk = __webpack_require__(87)
var inherits = __webpack_require__(1)

function Cipher (mode, key, iv) {
  Transform.call(this)

  this._cache = new Splitter()
  this._cipher = new aes.AES(key)
  this._prev = Buffer.from(iv)
  this._mode = mode
  this._autopadding = true
}

inherits(Cipher, Transform)

Cipher.prototype._update = function (data) {
  this._cache.add(data)
  var chunk
  var thing
  var out = []

  while ((chunk = this._cache.get())) {
    thing = this._mode.encrypt(this, chunk)
    out.push(thing)
  }

  return Buffer.concat(out)
}

var PADDING = Buffer.alloc(16, 0x10)

Cipher.prototype._final = function () {
  var chunk = this._cache.flush()
  if (this._autopadding) {
    chunk = this._mode.encrypt(this, chunk)
    this._cipher.scrub()
    return chunk
  }

  if (!chunk.equals(PADDING)) {
    this._cipher.scrub()
    throw new Error('data not multiple of block length')
  }
}

Cipher.prototype.setAutoPadding = function (setTo) {
  this._autopadding = !!setTo
  return this
}

function Splitter () {
  this.cache = Buffer.allocUnsafe(0)
}

Splitter.prototype.add = function (data) {
  this.cache = Buffer.concat([this.cache, data])
}

Splitter.prototype.get = function () {
  if (this.cache.length > 15) {
    var out = this.cache.slice(0, 16)
    this.cache = this.cache.slice(16)
    return out
  }
  return null
}

Splitter.prototype.flush = function () {
  var len = 16 - this.cache.length
  var padBuff = Buffer.allocUnsafe(len)

  var i = -1
  while (++i < len) {
    padBuff.writeUInt8(len, i)
  }

  return Buffer.concat([this.cache, padBuff])
}

function createCipheriv (suite, password, iv) {
  var config = MODES[suite.toLowerCase()]
  if (!config) throw new TypeError('invalid suite type')

  if (typeof password === 'string') password = Buffer.from(password)
  if (password.length !== config.key / 8) throw new TypeError('invalid key length ' + password.length)

  if (typeof iv === 'string') iv = Buffer.from(iv)
  if (config.mode !== 'GCM' && iv.length !== config.iv) throw new TypeError('invalid iv length ' + iv.length)

  if (config.type === 'stream') {
    return new StreamCipher(config.module, password, iv)
  } else if (config.type === 'auth') {
    return new AuthCipher(config.module, password, iv)
  }

  return new Cipher(config.module, password, iv)
}

function createCipher (suite, password) {
  var config = MODES[suite.toLowerCase()]
  if (!config) throw new TypeError('invalid suite type')

  var keys = ebtk(password, false, config.key, config.iv)
  return createCipheriv(suite, keys.key, keys.iv)
}

exports.createCipheriv = createCipheriv
exports.createCipher = createCipher


/***/ }),
/* 445 */
/***/ (function(module, exports) {

exports.encrypt = function (self, block) {
  return self._cipher.encryptBlock(block)
}

exports.decrypt = function (self, block) {
  return self._cipher.decryptBlock(block)
}


/***/ }),
/* 446 */
/***/ (function(module, exports, __webpack_require__) {

var xor = __webpack_require__(66)

exports.encrypt = function (self, block) {
  var data = xor(block, self._prev)

  self._prev = self._cipher.encryptBlock(data)
  return self._prev
}

exports.decrypt = function (self, block) {
  var pad = self._prev

  self._prev = block
  var out = self._cipher.decryptBlock(block)

  return xor(out, pad)
}


/***/ }),
/* 447 */
/***/ (function(module, exports, __webpack_require__) {

var Buffer = __webpack_require__(6).Buffer
var xor = __webpack_require__(66)

function encryptStart (self, data, decrypt) {
  var len = data.length
  var out = xor(data, self._cache)
  self._cache = self._cache.slice(len)
  self._prev = Buffer.concat([self._prev, decrypt ? data : out])
  return out
}

exports.encrypt = function (self, data, decrypt) {
  var out = Buffer.allocUnsafe(0)
  var len

  while (data.length) {
    if (self._cache.length === 0) {
      self._cache = self._cipher.encryptBlock(self._prev)
      self._prev = Buffer.allocUnsafe(0)
    }

    if (self._cache.length <= data.length) {
      len = self._cache.length
      out = Buffer.concat([out, encryptStart(self, data.slice(0, len), decrypt)])
      data = data.slice(len)
    } else {
      out = Buffer.concat([out, encryptStart(self, data, decrypt)])
      break
    }
  }

  return out
}


/***/ }),
/* 448 */
/***/ (function(module, exports, __webpack_require__) {

var Buffer = __webpack_require__(6).Buffer

function encryptByte (self, byteParam, decrypt) {
  var pad = self._cipher.encryptBlock(self._prev)
  var out = pad[0] ^ byteParam

  self._prev = Buffer.concat([
    self._prev.slice(1),
    Buffer.from([decrypt ? byteParam : out])
  ])

  return out
}

exports.encrypt = function (self, chunk, decrypt) {
  var len = chunk.length
  var out = Buffer.allocUnsafe(len)
  var i = -1

  while (++i < len) {
    out[i] = encryptByte(self, chunk[i], decrypt)
  }

  return out
}


/***/ }),
/* 449 */
/***/ (function(module, exports, __webpack_require__) {

var Buffer = __webpack_require__(6).Buffer

function encryptByte (self, byteParam, decrypt) {
  var pad
  var i = -1
  var len = 8
  var out = 0
  var bit, value
  while (++i < len) {
    pad = self._cipher.encryptBlock(self._prev)
    bit = (byteParam & (1 << (7 - i))) ? 0x80 : 0
    value = pad[0] ^ bit
    out += ((value & 0x80) >> (i % 8))
    self._prev = shiftIn(self._prev, decrypt ? bit : value)
  }
  return out
}

function shiftIn (buffer, value) {
  var len = buffer.length
  var i = -1
  var out = Buffer.allocUnsafe(buffer.length)
  buffer = Buffer.concat([buffer, Buffer.from([value])])

  while (++i < len) {
    out[i] = buffer[i] << 1 | buffer[i + 1] >> (7)
  }

  return out
}

exports.encrypt = function (self, chunk, decrypt) {
  var len = chunk.length
  var out = Buffer.allocUnsafe(len)
  var i = -1

  while (++i < len) {
    out[i] = encryptByte(self, chunk[i], decrypt)
  }

  return out
}


/***/ }),
/* 450 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var xor = __webpack_require__(66)

function getBlock (self) {
  self._prev = self._cipher.encryptBlock(self._prev)
  return self._prev
}

exports.encrypt = function (self, chunk) {
  while (self._cache.length < chunk.length) {
    self._cache = Buffer.concat([self._cache, getBlock(self)])
  }

  var pad = self._cache.slice(0, chunk.length)
  self._cache = self._cache.slice(chunk.length)
  return xor(chunk, pad)
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 451 */
/***/ (function(module, exports, __webpack_require__) {

var Buffer = __webpack_require__(6).Buffer
var ZEROES = Buffer.alloc(16, 0)

function toArray (buf) {
  return [
    buf.readUInt32BE(0),
    buf.readUInt32BE(4),
    buf.readUInt32BE(8),
    buf.readUInt32BE(12)
  ]
}

function fromArray (out) {
  var buf = Buffer.allocUnsafe(16)
  buf.writeUInt32BE(out[0] >>> 0, 0)
  buf.writeUInt32BE(out[1] >>> 0, 4)
  buf.writeUInt32BE(out[2] >>> 0, 8)
  buf.writeUInt32BE(out[3] >>> 0, 12)
  return buf
}

function GHASH (key) {
  this.h = key
  this.state = Buffer.alloc(16, 0)
  this.cache = Buffer.allocUnsafe(0)
}

// from http://bitwiseshiftleft.github.io/sjcl/doc/symbols/src/core_gcm.js.html
// by Juho Vähä-Herttua
GHASH.prototype.ghash = function (block) {
  var i = -1
  while (++i < block.length) {
    this.state[i] ^= block[i]
  }
  this._multiply()
}

GHASH.prototype._multiply = function () {
  var Vi = toArray(this.h)
  var Zi = [0, 0, 0, 0]
  var j, xi, lsbVi
  var i = -1
  while (++i < 128) {
    xi = (this.state[~~(i / 8)] & (1 << (7 - (i % 8)))) !== 0
    if (xi) {
      // Z_i+1 = Z_i ^ V_i
      Zi[0] ^= Vi[0]
      Zi[1] ^= Vi[1]
      Zi[2] ^= Vi[2]
      Zi[3] ^= Vi[3]
    }

    // Store the value of LSB(V_i)
    lsbVi = (Vi[3] & 1) !== 0

    // V_i+1 = V_i >> 1
    for (j = 3; j > 0; j--) {
      Vi[j] = (Vi[j] >>> 1) | ((Vi[j - 1] & 1) << 31)
    }
    Vi[0] = Vi[0] >>> 1

    // If LSB(V_i) is 1, V_i+1 = (V_i >> 1) ^ R
    if (lsbVi) {
      Vi[0] = Vi[0] ^ (0xe1 << 24)
    }
  }
  this.state = fromArray(Zi)
}

GHASH.prototype.update = function (buf) {
  this.cache = Buffer.concat([this.cache, buf])
  var chunk
  while (this.cache.length >= 16) {
    chunk = this.cache.slice(0, 16)
    this.cache = this.cache.slice(16)
    this.ghash(chunk)
  }
}

GHASH.prototype.final = function (abl, bl) {
  if (this.cache.length) {
    this.ghash(Buffer.concat([this.cache, ZEROES], 16))
  }

  this.ghash(fromArray([0, abl, 0, bl]))
  return this.state
}

module.exports = GHASH


/***/ }),
/* 452 */
/***/ (function(module, exports, __webpack_require__) {

var AuthCipher = __webpack_require__(182)
var Buffer = __webpack_require__(6).Buffer
var MODES = __webpack_require__(125)
var StreamCipher = __webpack_require__(183)
var Transform = __webpack_require__(42)
var aes = __webpack_require__(86)
var ebtk = __webpack_require__(87)
var inherits = __webpack_require__(1)

function Decipher (mode, key, iv) {
  Transform.call(this)

  this._cache = new Splitter()
  this._last = void 0
  this._cipher = new aes.AES(key)
  this._prev = Buffer.from(iv)
  this._mode = mode
  this._autopadding = true
}

inherits(Decipher, Transform)

Decipher.prototype._update = function (data) {
  this._cache.add(data)
  var chunk
  var thing
  var out = []
  while ((chunk = this._cache.get(this._autopadding))) {
    thing = this._mode.decrypt(this, chunk)
    out.push(thing)
  }
  return Buffer.concat(out)
}

Decipher.prototype._final = function () {
  var chunk = this._cache.flush()
  if (this._autopadding) {
    return unpad(this._mode.decrypt(this, chunk))
  } else if (chunk) {
    throw new Error('data not multiple of block length')
  }
}

Decipher.prototype.setAutoPadding = function (setTo) {
  this._autopadding = !!setTo
  return this
}

function Splitter () {
  this.cache = Buffer.allocUnsafe(0)
}

Splitter.prototype.add = function (data) {
  this.cache = Buffer.concat([this.cache, data])
}

Splitter.prototype.get = function (autoPadding) {
  var out
  if (autoPadding) {
    if (this.cache.length > 16) {
      out = this.cache.slice(0, 16)
      this.cache = this.cache.slice(16)
      return out
    }
  } else {
    if (this.cache.length >= 16) {
      out = this.cache.slice(0, 16)
      this.cache = this.cache.slice(16)
      return out
    }
  }

  return null
}

Splitter.prototype.flush = function () {
  if (this.cache.length) return this.cache
}

function unpad (last) {
  var padded = last[15]
  if (padded < 1 || padded > 16) {
    throw new Error('unable to decrypt data')
  }
  var i = -1
  while (++i < padded) {
    if (last[(i + (16 - padded))] !== padded) {
      throw new Error('unable to decrypt data')
    }
  }
  if (padded === 16) return

  return last.slice(0, 16 - padded)
}

function createDecipheriv (suite, password, iv) {
  var config = MODES[suite.toLowerCase()]
  if (!config) throw new TypeError('invalid suite type')

  if (typeof iv === 'string') iv = Buffer.from(iv)
  if (config.mode !== 'GCM' && iv.length !== config.iv) throw new TypeError('invalid iv length ' + iv.length)

  if (typeof password === 'string') password = Buffer.from(password)
  if (password.length !== config.key / 8) throw new TypeError('invalid key length ' + password.length)

  if (config.type === 'stream') {
    return new StreamCipher(config.module, password, iv, true)
  } else if (config.type === 'auth') {
    return new AuthCipher(config.module, password, iv, true)
  }

  return new Decipher(config.module, password, iv)
}

function createDecipher (suite, password) {
  var config = MODES[suite.toLowerCase()]
  if (!config) throw new TypeError('invalid suite type')

  var keys = ebtk(password, false, config.key, config.iv)
  return createDecipheriv(suite, keys.key, keys.iv)
}

exports.createDecipher = createDecipher
exports.createDecipheriv = createDecipheriv


/***/ }),
/* 453 */
/***/ (function(module, exports) {

exports['des-ecb'] = {
  key: 8,
  iv: 0
}
exports['des-cbc'] = exports.des = {
  key: 8,
  iv: 8
}
exports['des-ede3-cbc'] = exports.des3 = {
  key: 24,
  iv: 8
}
exports['des-ede3'] = {
  key: 24,
  iv: 0
}
exports['des-ede-cbc'] = {
  key: 16,
  iv: 8
}
exports['des-ede'] = {
  key: 16,
  iv: 0
}


/***/ }),
/* 454 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var generatePrime = __webpack_require__(184)
var primes = __webpack_require__(457)

var DH = __webpack_require__(458)

function getDiffieHellman (mod) {
  var prime = new Buffer(primes[mod].prime, 'hex')
  var gen = new Buffer(primes[mod].gen, 'hex')

  return new DH(prime, gen)
}

var ENCODINGS = {
  'binary': true, 'hex': true, 'base64': true
}

function createDiffieHellman (prime, enc, generator, genc) {
  if (Buffer.isBuffer(enc) || ENCODINGS[enc] === undefined) {
    return createDiffieHellman(prime, 'binary', enc, generator)
  }

  enc = enc || 'binary'
  genc = genc || 'binary'
  generator = generator || new Buffer([2])

  if (!Buffer.isBuffer(generator)) {
    generator = new Buffer(generator, genc)
  }

  if (typeof prime === 'number') {
    return new DH(generatePrime(prime, generator), generator, true)
  }

  if (!Buffer.isBuffer(prime)) {
    prime = new Buffer(prime, enc)
  }

  return new DH(prime, generator, true)
}

exports.DiffieHellmanGroup = exports.createDiffieHellmanGroup = exports.getDiffieHellman = getDiffieHellman
exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 455 */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),
/* 456 */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),
/* 457 */
/***/ (function(module, exports) {

module.exports = {"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}

/***/ }),
/* 458 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var BN = __webpack_require__(12);
var MillerRabin = __webpack_require__(186);
var millerRabin = new MillerRabin();
var TWENTYFOUR = new BN(24);
var ELEVEN = new BN(11);
var TEN = new BN(10);
var THREE = new BN(3);
var SEVEN = new BN(7);
var primes = __webpack_require__(184);
var randomBytes = __webpack_require__(58);
module.exports = DH;

function setPublicKey(pub, enc) {
  enc = enc || 'utf8';
  if (!Buffer.isBuffer(pub)) {
    pub = new Buffer(pub, enc);
  }
  this._pub = new BN(pub);
  return this;
}

function setPrivateKey(priv, enc) {
  enc = enc || 'utf8';
  if (!Buffer.isBuffer(priv)) {
    priv = new Buffer(priv, enc);
  }
  this._priv = new BN(priv);
  return this;
}

var primeCache = {};
function checkPrime(prime, generator) {
  var gen = generator.toString('hex');
  var hex = [gen, prime.toString(16)].join('_');
  if (hex in primeCache) {
    return primeCache[hex];
  }
  var error = 0;

  if (prime.isEven() ||
    !primes.simpleSieve ||
    !primes.fermatTest(prime) ||
    !millerRabin.test(prime)) {
    //not a prime so +1
    error += 1;

    if (gen === '02' || gen === '05') {
      // we'd be able to check the generator
      // it would fail so +8
      error += 8;
    } else {
      //we wouldn't be able to test the generator
      // so +4
      error += 4;
    }
    primeCache[hex] = error;
    return error;
  }
  if (!millerRabin.test(prime.shrn(1))) {
    //not a safe prime
    error += 2;
  }
  var rem;
  switch (gen) {
    case '02':
      if (prime.mod(TWENTYFOUR).cmp(ELEVEN)) {
        // unsuidable generator
        error += 8;
      }
      break;
    case '05':
      rem = prime.mod(TEN);
      if (rem.cmp(THREE) && rem.cmp(SEVEN)) {
        // prime mod 10 needs to equal 3 or 7
        error += 8;
      }
      break;
    default:
      error += 4;
  }
  primeCache[hex] = error;
  return error;
}

function DH(prime, generator, malleable) {
  this.setGenerator(generator);
  this.__prime = new BN(prime);
  this._prime = BN.mont(this.__prime);
  this._primeLen = prime.length;
  this._pub = undefined;
  this._priv = undefined;
  this._primeCode = undefined;
  if (malleable) {
    this.setPublicKey = setPublicKey;
    this.setPrivateKey = setPrivateKey;
  } else {
    this._primeCode = 8;
  }
}
Object.defineProperty(DH.prototype, 'verifyError', {
  enumerable: true,
  get: function () {
    if (typeof this._primeCode !== 'number') {
      this._primeCode = checkPrime(this.__prime, this.__gen);
    }
    return this._primeCode;
  }
});
DH.prototype.generateKeys = function () {
  if (!this._priv) {
    this._priv = new BN(randomBytes(this._primeLen));
  }
  this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed();
  return this.getPublicKey();
};

DH.prototype.computeSecret = function (other) {
  other = new BN(other);
  other = other.toRed(this._prime);
  var secret = other.redPow(this._priv).fromRed();
  var out = new Buffer(secret.toArray());
  var prime = this.getPrime();
  if (out.length < prime.length) {
    var front = new Buffer(prime.length - out.length);
    front.fill(0);
    out = Buffer.concat([front, out]);
  }
  return out;
};

DH.prototype.getPublicKey = function getPublicKey(enc) {
  return formatReturnValue(this._pub, enc);
};

DH.prototype.getPrivateKey = function getPrivateKey(enc) {
  return formatReturnValue(this._priv, enc);
};

DH.prototype.getPrime = function (enc) {
  return formatReturnValue(this.__prime, enc);
};

DH.prototype.getGenerator = function (enc) {
  return formatReturnValue(this._gen, enc);
};

DH.prototype.setGenerator = function (gen, enc) {
  enc = enc || 'utf8';
  if (!Buffer.isBuffer(gen)) {
    gen = new Buffer(gen, enc);
  }
  this.__gen = gen;
  this._gen = new BN(gen);
  return this;
};

function formatReturnValue(bn, enc) {
  var buf = new Buffer(bn.toArray());
  if (!enc) {
    return buf;
  } else {
    return buf.toString(enc);
  }
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 459 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(64)
var stream = __webpack_require__(117)
var inherits = __webpack_require__(1)
var sign = __webpack_require__(460)
var verify = __webpack_require__(496)

var algorithms = __webpack_require__(174)
Object.keys(algorithms).forEach(function (key) {
  algorithms[key].id = new Buffer(algorithms[key].id, 'hex')
  algorithms[key.toLowerCase()] = algorithms[key]
})

function Sign (algorithm) {
  stream.Writable.call(this)

  var data = algorithms[algorithm]
  if (!data) throw new Error('Unknown message digest')

  this._hashType = data.hash
  this._hash = createHash(data.hash)
  this._tag = data.id
  this._signType = data.sign
}
inherits(Sign, stream.Writable)

Sign.prototype._write = function _write (data, _, done) {
  this._hash.update(data)
  done()
}

Sign.prototype.update = function update (data, enc) {
  if (typeof data === 'string') data = new Buffer(data, enc)

  this._hash.update(data)
  return this
}

Sign.prototype.sign = function signMethod (key, enc) {
  this.end()
  var hash = this._hash.digest()
  var sig = sign(hash, key, this._hashType, this._signType, this._tag)

  return enc ? sig.toString(enc) : sig
}

function Verify (algorithm) {
  stream.Writable.call(this)

  var data = algorithms[algorithm]
  if (!data) throw new Error('Unknown message digest')

  this._hash = createHash(data.hash)
  this._tag = data.id
  this._signType = data.sign
}
inherits(Verify, stream.Writable)

Verify.prototype._write = function _write (data, _, done) {
  this._hash.update(data)
  done()
}

Verify.prototype.update = function update (data, enc) {
  if (typeof data === 'string') data = new Buffer(data, enc)

  this._hash.update(data)
  return this
}

Verify.prototype.verify = function verifyMethod (key, sig, enc) {
  if (typeof sig === 'string') sig = new Buffer(sig, enc)

  this.end()
  var hash = this._hash.digest()
  return verify(sig, hash, key, this._signType, this._tag)
}

function createSign (algorithm) {
  return new Sign(algorithm)
}

function createVerify (algorithm) {
  return new Verify(algorithm)
}

module.exports = {
  Sign: createSign,
  Verify: createVerify,
  createSign: createSign,
  createVerify: createVerify
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 460 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
var createHmac = __webpack_require__(172)
var crt = __webpack_require__(126)
var EC = __webpack_require__(16).ec
var BN = __webpack_require__(12)
var parseKeys = __webpack_require__(89)
var curves = __webpack_require__(196)

function sign (hash, key, hashType, signType, tag) {
  var priv = parseKeys(key)
  if (priv.curve) {
    // rsa keys can be interpreted as ecdsa ones in openssl
    if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type')
    return ecSign(hash, priv)
  } else if (priv.type === 'dsa') {
    if (signType !== 'dsa') throw new Error('wrong private key type')
    return dsaSign(hash, priv, hashType)
  } else {
    if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type')
  }
  hash = Buffer.concat([tag, hash])
  var len = priv.modulus.byteLength()
  var pad = [ 0, 1 ]
  while (hash.length + pad.length + 1 < len) pad.push(0xff)
  pad.push(0x00)
  var i = -1
  while (++i < hash.length) pad.push(hash[i])

  var out = crt(pad, priv)
  return out
}

function ecSign (hash, priv) {
  var curveId = curves[priv.curve.join('.')]
  if (!curveId) throw new Error('unknown curve ' + priv.curve.join('.'))

  var curve = new EC(curveId)
  var key = curve.keyFromPrivate(priv.privateKey)
  var out = key.sign(hash)

  return new Buffer(out.toDER())
}

function dsaSign (hash, priv, algo) {
  var x = priv.params.priv_key
  var p = priv.params.p
  var q = priv.params.q
  var g = priv.params.g
  var r = new BN(0)
  var k
  var H = bits2int(hash, q).mod(q)
  var s = false
  var kv = getKey(x, q, hash, algo)
  while (s === false) {
    k = makeKey(q, kv, algo)
    r = makeR(g, k, p, q)
    s = k.invm(q).imul(H.add(x.mul(r))).mod(q)
    if (s.cmpn(0) === 0) {
      s = false
      r = new BN(0)
    }
  }
  return toDER(r, s)
}

function toDER (r, s) {
  r = r.toArray()
  s = s.toArray()

  // Pad values
  if (r[0] & 0x80) r = [ 0 ].concat(r)
  if (s[0] & 0x80) s = [ 0 ].concat(s)

  var total = r.length + s.length + 4
  var res = [ 0x30, total, 0x02, r.length ]
  res = res.concat(r, [ 0x02, s.length ], s)
  return new Buffer(res)
}

function getKey (x, q, hash, algo) {
  x = new Buffer(x.toArray())
  if (x.length < q.byteLength()) {
    var zeros = new Buffer(q.byteLength() - x.length)
    zeros.fill(0)
    x = Buffer.concat([ zeros, x ])
  }
  var hlen = hash.length
  var hbits = bits2octets(hash, q)
  var v = new Buffer(hlen)
  v.fill(1)
  var k = new Buffer(hlen)
  k.fill(0)
  k = createHmac(algo, k).update(v).update(new Buffer([ 0 ])).update(x).update(hbits).digest()
  v = createHmac(algo, k).update(v).digest()
  k = createHmac(algo, k).update(v).update(new Buffer([ 1 ])).update(x).update(hbits).digest()
  v = createHmac(algo, k).update(v).digest()
  return { k: k, v: v }
}

function bits2int (obits, q) {
  var bits = new BN(obits)
  var shift = (obits.length << 3) - q.bitLength()
  if (shift > 0) bits.ishrn(shift)
  return bits
}

function bits2octets (bits, q) {
  bits = bits2int(bits, q)
  bits = bits.mod(q)
  var out = new Buffer(bits.toArray())
  if (out.length < q.byteLength()) {
    var zeros = new Buffer(q.byteLength() - out.length)
    zeros.fill(0)
    out = Buffer.concat([ zeros, out ])
  }
  return out
}

function makeKey (q, kv, algo) {
  var t
  var k

  do {
    t = new Buffer(0)

    while (t.length * 8 < q.bitLength()) {
      kv.v = createHmac(algo, kv.k).update(kv.v).digest()
      t = Buffer.concat([ t, kv.v ])
    }

    k = bits2int(t, q)
    kv.k = createHmac(algo, kv.k).update(kv.v).update(new Buffer([ 0 ])).digest()
    kv.v = createHmac(algo, kv.k).update(kv.v).digest()
  } while (k.cmp(q) !== -1)

  return k
}

function makeR (g, k, p, q) {
  return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q)
}

module.exports = sign
module.exports.getKey = getKey
module.exports.makeKey = makeKey

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 461 */
/***/ (function(module, exports) {

module.exports = {"_args":[["elliptic@6.4.0","C:\\Users\\Keiden\\Downloads\\instascan-feature-webpack-umd-module\\instascan-feature-webpack-umd-module"]],"_development":true,"_from":"elliptic@6.4.0","_id":"elliptic@6.4.0","_inBundle":false,"_integrity":"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.4.0","name":"elliptic","escapedName":"elliptic","rawSpec":"6.4.0","saveSpec":null,"fetchSpec":"6.4.0"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"http://26.0.132.74:8081/repository/npm-group/elliptic/-/elliptic-6.4.0.tgz","_spec":"6.4.0","_where":"C:\\Users\\Keiden\\Downloads\\instascan-feature-webpack-umd-module\\instascan-feature-webpack-umd-module","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^2.11.3","grunt":"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2","istanbul":"^0.4.2","jscs":"^2.9.0","jshint":"^2.6.0","mocha":"^2.1.0"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.4.0"}

/***/ }),
/* 462 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = exports;
var BN = __webpack_require__(12);
var minAssert = __webpack_require__(25);
var minUtils = __webpack_require__(188);

utils.assert = minAssert;
utils.toArray = minUtils.toArray;
utils.zero2 = minUtils.zero2;
utils.toHex = minUtils.toHex;
utils.encode = minUtils.encode;

// Represent num in a w-NAF form
function getNAF(num, w) {
  var naf = [];
  var ws = 1 << (w + 1);
  var k = num.clone();
  while (k.cmpn(1) >= 0) {
    var z;
    if (k.isOdd()) {
      var mod = k.andln(ws - 1);
      if (mod > (ws >> 1) - 1)
        z = (ws >> 1) - mod;
      else
        z = mod;
      k.isubn(z);
    } else {
      z = 0;
    }
    naf.push(z);

    // Optimization, shift by word if possible
    var shift = (k.cmpn(0) !== 0 && k.andln(ws - 1) === 0) ? (w + 1) : 1;
    for (var i = 1; i < shift; i++)
      naf.push(0);
    k.iushrn(shift);
  }

  return naf;
}
utils.getNAF = getNAF;

// Represent k1, k2 in a Joint Sparse Form
function getJSF(k1, k2) {
  var jsf = [
    [],
    []
  ];

  k1 = k1.clone();
  k2 = k2.clone();
  var d1 = 0;
  var d2 = 0;
  while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {

    // First phase
    var m14 = (k1.andln(3) + d1) & 3;
    var m24 = (k2.andln(3) + d2) & 3;
    if (m14 === 3)
      m14 = -1;
    if (m24 === 3)
      m24 = -1;
    var u1;
    if ((m14 & 1) === 0) {
      u1 = 0;
    } else {
      var m8 = (k1.andln(7) + d1) & 7;
      if ((m8 === 3 || m8 === 5) && m24 === 2)
        u1 = -m14;
      else
        u1 = m14;
    }
    jsf[0].push(u1);

    var u2;
    if ((m24 & 1) === 0) {
      u2 = 0;
    } else {
      var m8 = (k2.andln(7) + d2) & 7;
      if ((m8 === 3 || m8 === 5) && m14 === 2)
        u2 = -m24;
      else
        u2 = m24;
    }
    jsf[1].push(u2);

    // Second phase
    if (2 * d1 === u1 + 1)
      d1 = 1 - d1;
    if (2 * d2 === u2 + 1)
      d2 = 1 - d2;
    k1.iushrn(1);
    k2.iushrn(1);
  }

  return jsf;
}
utils.getJSF = getJSF;

function cachedProperty(obj, name, computer) {
  var key = '_' + name;
  obj.prototype[name] = function cachedProperty() {
    return this[key] !== undefined ? this[key] :
           this[key] = computer.call(this);
  };
}
utils.cachedProperty = cachedProperty;

function parseBytes(bytes) {
  return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :
                                     bytes;
}
utils.parseBytes = parseBytes;

function intFromLE(bytes) {
  return new BN(bytes, 'hex', 'le');
}
utils.intFromLE = intFromLE;



/***/ }),
/* 463 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var BN = __webpack_require__(12);
var elliptic = __webpack_require__(16);
var utils = elliptic.utils;
var getNAF = utils.getNAF;
var getJSF = utils.getJSF;
var assert = utils.assert;

function BaseCurve(type, conf) {
  this.type = type;
  this.p = new BN(conf.p, 16);

  // Use Montgomery, when there is no fast reduction for the prime
  this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);

  // Useful for many curves
  this.zero = new BN(0).toRed(this.red);
  this.one = new BN(1).toRed(this.red);
  this.two = new BN(2).toRed(this.red);

  // Curve configuration, optional
  this.n = conf.n && new BN(conf.n, 16);
  this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);

  // Temporary arrays
  this._wnafT1 = new Array(4);
  this._wnafT2 = new Array(4);
  this._wnafT3 = new Array(4);
  this._wnafT4 = new Array(4);

  // Generalized Greg Maxwell's trick
  var adjustCount = this.n && this.p.div(this.n);
  if (!adjustCount || adjustCount.cmpn(100) > 0) {
    this.redN = null;
  } else {
    this._maxwellTrick = true;
    this.redN = this.n.toRed(this.red);
  }
}
module.exports = BaseCurve;

BaseCurve.prototype.point = function point() {
  throw new Error('Not implemented');
};

BaseCurve.prototype.validate = function validate() {
  throw new Error('Not implemented');
};

BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {
  assert(p.precomputed);
  var doubles = p._getDoubles();

  var naf = getNAF(k, 1);
  var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);
  I /= 3;

  // Translate into more windowed form
  var repr = [];
  for (var j = 0; j < naf.length; j += doubles.step) {
    var nafW = 0;
    for (var k = j + doubles.step - 1; k >= j; k--)
      nafW = (nafW << 1) + naf[k];
    repr.push(nafW);
  }

  var a = this.jpoint(null, null, null);
  var b = this.jpoint(null, null, null);
  for (var i = I; i > 0; i--) {
    for (var j = 0; j < repr.length; j++) {
      var nafW = repr[j];
      if (nafW === i)
        b = b.mixedAdd(doubles.points[j]);
      else if (nafW === -i)
        b = b.mixedAdd(doubles.points[j].neg());
    }
    a = a.add(b);
  }
  return a.toP();
};

BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
  var w = 4;

  // Precompute window
  var nafPoints = p._getNAFPoints(w);
  w = nafPoints.wnd;
  var wnd = nafPoints.points;

  // Get NAF form
  var naf = getNAF(k, w);

  // Add `this`*(N+1) for every w-NAF index
  var acc = this.jpoint(null, null, null);
  for (var i = naf.length - 1; i >= 0; i--) {
    // Count zeroes
    for (var k = 0; i >= 0 && naf[i] === 0; i--)
      k++;
    if (i >= 0)
      k++;
    acc = acc.dblp(k);

    if (i < 0)
      break;
    var z = naf[i];
    assert(z !== 0);
    if (p.type === 'affine') {
      // J +- P
      if (z > 0)
        acc = acc.mixedAdd(wnd[(z - 1) >> 1]);
      else
        acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());
    } else {
      // J +- J
      if (z > 0)
        acc = acc.add(wnd[(z - 1) >> 1]);
      else
        acc = acc.add(wnd[(-z - 1) >> 1].neg());
    }
  }
  return p.type === 'affine' ? acc.toP() : acc;
};

BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
                                                       points,
                                                       coeffs,
                                                       len,
                                                       jacobianResult) {
  var wndWidth = this._wnafT1;
  var wnd = this._wnafT2;
  var naf = this._wnafT3;

  // Fill all arrays
  var max = 0;
  for (var i = 0; i < len; i++) {
    var p = points[i];
    var nafPoints = p._getNAFPoints(defW);
    wndWidth[i] = nafPoints.wnd;
    wnd[i] = nafPoints.points;
  }

  // Comb small window NAFs
  for (var i = len - 1; i >= 1; i -= 2) {
    var a = i - 1;
    var b = i;
    if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {
      naf[a] = getNAF(coeffs[a], wndWidth[a]);
      naf[b] = getNAF(coeffs[b], wndWidth[b]);
      max = Math.max(naf[a].length, max);
      max = Math.max(naf[b].length, max);
      continue;
    }

    var comb = [
      points[a], /* 1 */
      null, /* 3 */
      null, /* 5 */
      points[b] /* 7 */
    ];

    // Try to avoid Projective points, if possible
    if (points[a].y.cmp(points[b].y) === 0) {
      comb[1] = points[a].add(points[b]);
      comb[2] = points[a].toJ().mixedAdd(points[b].neg());
    } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {
      comb[1] = points[a].toJ().mixedAdd(points[b]);
      comb[2] = points[a].add(points[b].neg());
    } else {
      comb[1] = points[a].toJ().mixedAdd(points[b]);
      comb[2] = points[a].toJ().mixedAdd(points[b].neg());
    }

    var index = [
      -3, /* -1 -1 */
      -1, /* -1 0 */
      -5, /* -1 1 */
      -7, /* 0 -1 */
      0, /* 0 0 */
      7, /* 0 1 */
      5, /* 1 -1 */
      1, /* 1 0 */
      3  /* 1 1 */
    ];

    var jsf = getJSF(coeffs[a], coeffs[b]);
    max = Math.max(jsf[0].length, max);
    naf[a] = new Array(max);
    naf[b] = new Array(max);
    for (var j = 0; j < max; j++) {
      var ja = jsf[0][j] | 0;
      var jb = jsf[1][j] | 0;

      naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];
      naf[b][j] = 0;
      wnd[a] = comb;
    }
  }

  var acc = this.jpoint(null, null, null);
  var tmp = this._wnafT4;
  for (var i = max; i >= 0; i--) {
    var k = 0;

    while (i >= 0) {
      var zero = true;
      for (var j = 0; j < len; j++) {
        tmp[j] = naf[j][i] | 0;
        if (tmp[j] !== 0)
          zero = false;
      }
      if (!zero)
        break;
      k++;
      i--;
    }
    if (i >= 0)
      k++;
    acc = acc.dblp(k);
    if (i < 0)
      break;

    for (var j = 0; j < len; j++) {
      var z = tmp[j];
      var p;
      if (z === 0)
        continue;
      else if (z > 0)
        p = wnd[j][(z - 1) >> 1];
      else if (z < 0)
        p = wnd[j][(-z - 1) >> 1].neg();

      if (p.type === 'affine')
        acc = acc.mixedAdd(p);
      else
        acc = acc.add(p);
    }
  }
  // Zeroify references
  for (var i = 0; i < len; i++)
    wnd[i] = null;

  if (jacobianResult)
    return acc;
  else
    return acc.toP();
};

function BasePoint(curve, type) {
  this.curve = curve;
  this.type = type;
  this.precomputed = null;
}
BaseCurve.BasePoint = BasePoint;

BasePoint.prototype.eq = function eq(/*other*/) {
  throw new Error('Not implemented');
};

BasePoint.prototype.validate = function validate() {
  return this.curve.validate(this);
};

BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
  bytes = utils.toArray(bytes, enc);

  var len = this.p.byteLength();

  // uncompressed, hybrid-odd, hybrid-even
  if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&
      bytes.length - 1 === 2 * len) {
    if (bytes[0] === 0x06)
      assert(bytes[bytes.length - 1] % 2 === 0);
    else if (bytes[0] === 0x07)
      assert(bytes[bytes.length - 1] % 2 === 1);

    var res =  this.point(bytes.slice(1, 1 + len),
                          bytes.slice(1 + len, 1 + 2 * len));

    return res;
  } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&
              bytes.length - 1 === len) {
    return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);
  }
  throw new Error('Unknown point format');
};

BasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {
  return this.encode(enc, true);
};

BasePoint.prototype._encode = function _encode(compact) {
  var len = this.curve.p.byteLength();
  var x = this.getX().toArray('be', len);

  if (compact)
    return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);

  return [ 0x04 ].concat(x, this.getY().toArray('be', len)) ;
};

BasePoint.prototype.encode = function encode(enc, compact) {
  return utils.encode(this._encode(compact), enc);
};

BasePoint.prototype.precompute = function precompute(power) {
  if (this.precomputed)
    return this;

  var precomputed = {
    doubles: null,
    naf: null,
    beta: null
  };
  precomputed.naf = this._getNAFPoints(8);
  precomputed.doubles = this._getDoubles(4, power);
  precomputed.beta = this._getBeta();
  this.precomputed = precomputed;

  return this;
};

BasePoint.prototype._hasDoubles = function _hasDoubles(k) {
  if (!this.precomputed)
    return false;

  var doubles = this.precomputed.doubles;
  if (!doubles)
    return false;

  return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);
};

BasePoint.prototype._getDoubles = function _getDoubles(step, power) {
  if (this.precomputed && this.precomputed.doubles)
    return this.precomputed.doubles;

  var doubles = [ this ];
  var acc = this;
  for (var i = 0; i < power; i += step) {
    for (var j = 0; j < step; j++)
      acc = acc.dbl();
    doubles.push(acc);
  }
  return {
    step: step,
    points: doubles
  };
};

BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {
  if (this.precomputed && this.precomputed.naf)
    return this.precomputed.naf;

  var res = [ this ];
  var max = (1 << wnd) - 1;
  var dbl = max === 1 ? null : this.dbl();
  for (var i = 1; i < max; i++)
    res[i] = res[i - 1].add(dbl);
  return {
    wnd: wnd,
    points: res
  };
};

BasePoint.prototype._getBeta = function _getBeta() {
  return null;
};

BasePoint.prototype.dblp = function dblp(k) {
  var r = this;
  for (var i = 0; i < k; i++)
    r = r.dbl();
  return r;
};


/***/ }),
/* 464 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var curve = __webpack_require__(88);
var elliptic = __webpack_require__(16);
var BN = __webpack_require__(12);
var inherits = __webpack_require__(1);
var Base = curve.base;

var assert = elliptic.utils.assert;

function ShortCurve(conf) {
  Base.call(this, 'short', conf);

  this.a = new BN(conf.a, 16).toRed(this.red);
  this.b = new BN(conf.b, 16).toRed(this.red);
  this.tinv = this.two.redInvm();

  this.zeroA = this.a.fromRed().cmpn(0) === 0;
  this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;

  // If the curve is endomorphic, precalculate beta and lambda
  this.endo = this._getEndomorphism(conf);
  this._endoWnafT1 = new Array(4);
  this._endoWnafT2 = new Array(4);
}
inherits(ShortCurve, Base);
module.exports = ShortCurve;

ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
  // No efficient endomorphism
  if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)
    return;

  // Compute beta and lambda, that lambda * P = (beta * Px; Py)
  var beta;
  var lambda;
  if (conf.beta) {
    beta = new BN(conf.beta, 16).toRed(this.red);
  } else {
    var betas = this._getEndoRoots(this.p);
    // Choose the smallest beta
    beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];
    beta = beta.toRed(this.red);
  }
  if (conf.lambda) {
    lambda = new BN(conf.lambda, 16);
  } else {
    // Choose the lambda that is matching selected beta
    var lambdas = this._getEndoRoots(this.n);
    if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {
      lambda = lambdas[0];
    } else {
      lambda = lambdas[1];
      assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);
    }
  }

  // Get basis vectors, used for balanced length-two representation
  var basis;
  if (conf.basis) {
    basis = conf.basis.map(function(vec) {
      return {
        a: new BN(vec.a, 16),
        b: new BN(vec.b, 16)
      };
    });
  } else {
    basis = this._getEndoBasis(lambda);
  }

  return {
    beta: beta,
    lambda: lambda,
    basis: basis
  };
};

ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {
  // Find roots of for x^2 + x + 1 in F
  // Root = (-1 +- Sqrt(-3)) / 2
  //
  var red = num === this.p ? this.red : BN.mont(num);
  var tinv = new BN(2).toRed(red).redInvm();
  var ntinv = tinv.redNeg();

  var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);

  var l1 = ntinv.redAdd(s).fromRed();
  var l2 = ntinv.redSub(s).fromRed();
  return [ l1, l2 ];
};

ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {
  // aprxSqrt >= sqrt(this.n)
  var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));

  // 3.74
  // Run EGCD, until r(L + 1) < aprxSqrt
  var u = lambda;
  var v = this.n.clone();
  var x1 = new BN(1);
  var y1 = new BN(0);
  var x2 = new BN(0);
  var y2 = new BN(1);

  // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)
  var a0;
  var b0;
  // First vector
  var a1;
  var b1;
  // Second vector
  var a2;
  var b2;

  var prevR;
  var i = 0;
  var r;
  var x;
  while (u.cmpn(0) !== 0) {
    var q = v.div(u);
    r = v.sub(q.mul(u));
    x = x2.sub(q.mul(x1));
    var y = y2.sub(q.mul(y1));

    if (!a1 && r.cmp(aprxSqrt) < 0) {
      a0 = prevR.neg();
      b0 = x1;
      a1 = r.neg();
      b1 = x;
    } else if (a1 && ++i === 2) {
      break;
    }
    prevR = r;

    v = u;
    u = r;
    x2 = x1;
    x1 = x;
    y2 = y1;
    y1 = y;
  }
  a2 = r.neg();
  b2 = x;

  var len1 = a1.sqr().add(b1.sqr());
  var len2 = a2.sqr().add(b2.sqr());
  if (len2.cmp(len1) >= 0) {
    a2 = a0;
    b2 = b0;
  }

  // Normalize signs
  if (a1.negative) {
    a1 = a1.neg();
    b1 = b1.neg();
  }
  if (a2.negative) {
    a2 = a2.neg();
    b2 = b2.neg();
  }

  return [
    { a: a1, b: b1 },
    { a: a2, b: b2 }
  ];
};

ShortCurve.prototype._endoSplit = function _endoSplit(k) {
  var basis = this.endo.basis;
  var v1 = basis[0];
  var v2 = basis[1];

  var c1 = v2.b.mul(k).divRound(this.n);
  var c2 = v1.b.neg().mul(k).divRound(this.n);

  var p1 = c1.mul(v1.a);
  var p2 = c2.mul(v2.a);
  var q1 = c1.mul(v1.b);
  var q2 = c2.mul(v2.b);

  // Calculate answer
  var k1 = k.sub(p1).sub(p2);
  var k2 = q1.add(q2).neg();
  return { k1: k1, k2: k2 };
};

ShortCurve.prototype.pointFromX = function pointFromX(x, odd) {
  x = new BN(x, 16);
  if (!x.red)
    x = x.toRed(this.red);

  var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);
  var y = y2.redSqrt();
  if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)
    throw new Error('invalid point');

  // XXX Is there any way to tell if the number is odd without converting it
  // to non-red form?
  var isOdd = y.fromRed().isOdd();
  if (odd && !isOdd || !odd && isOdd)
    y = y.redNeg();

  return this.point(x, y);
};

ShortCurve.prototype.validate = function validate(point) {
  if (point.inf)
    return true;

  var x = point.x;
  var y = point.y;

  var ax = this.a.redMul(x);
  var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);
  return y.redSqr().redISub(rhs).cmpn(0) === 0;
};

ShortCurve.prototype._endoWnafMulAdd =
    function _endoWnafMulAdd(points, coeffs, jacobianResult) {
  var npoints = this._endoWnafT1;
  var ncoeffs = this._endoWnafT2;
  for (var i = 0; i < points.length; i++) {
    var split = this._endoSplit(coeffs[i]);
    var p = points[i];
    var beta = p._getBeta();

    if (split.k1.negative) {
      split.k1.ineg();
      p = p.neg(true);
    }
    if (split.k2.negative) {
      split.k2.ineg();
      beta = beta.neg(true);
    }

    npoints[i * 2] = p;
    npoints[i * 2 + 1] = beta;
    ncoeffs[i * 2] = split.k1;
    ncoeffs[i * 2 + 1] = split.k2;
  }
  var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);

  // Clean-up references to points and coefficients
  for (var j = 0; j < i * 2; j++) {
    npoints[j] = null;
    ncoeffs[j] = null;
  }
  return res;
};

function Point(curve, x, y, isRed) {
  Base.BasePoint.call(this, curve, 'affine');
  if (x === null && y === null) {
    this.x = null;
    this.y = null;
    this.inf = true;
  } else {
    this.x = new BN(x, 16);
    this.y = new BN(y, 16);
    // Force redgomery representation when loading from JSON
    if (isRed) {
      this.x.forceRed(this.curve.red);
      this.y.forceRed(this.curve.red);
    }
    if (!this.x.red)
      this.x = this.x.toRed(this.curve.red);
    if (!this.y.red)
      this.y = this.y.toRed(this.curve.red);
    this.inf = false;
  }
}
inherits(Point, Base.BasePoint);

ShortCurve.prototype.point = function point(x, y, isRed) {
  return new Point(this, x, y, isRed);
};

ShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {
  return Point.fromJSON(this, obj, red);
};

Point.prototype._getBeta = function _getBeta() {
  if (!this.curve.endo)
    return;

  var pre = this.precomputed;
  if (pre && pre.beta)
    return pre.beta;

  var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
  if (pre) {
    var curve = this.curve;
    var endoMul = function(p) {
      return curve.point(p.x.redMul(curve.endo.beta), p.y);
    };
    pre.beta = beta;
    beta.precomputed = {
      beta: null,
      naf: pre.naf && {
        wnd: pre.naf.wnd,
        points: pre.naf.points.map(endoMul)
      },
      doubles: pre.doubles && {
        step: pre.doubles.step,
        points: pre.doubles.points.map(endoMul)
      }
    };
  }
  return beta;
};

Point.prototype.toJSON = function toJSON() {
  if (!this.precomputed)
    return [ this.x, this.y ];

  return [ this.x, this.y, this.precomputed && {
    doubles: this.precomputed.doubles && {
      step: this.precomputed.doubles.step,
      points: this.precomputed.doubles.points.slice(1)
    },
    naf: this.precomputed.naf && {
      wnd: this.precomputed.naf.wnd,
      points: this.precomputed.naf.points.slice(1)
    }
  } ];
};

Point.fromJSON = function fromJSON(curve, obj, red) {
  if (typeof obj === 'string')
    obj = JSON.parse(obj);
  var res = curve.point(obj[0], obj[1], red);
  if (!obj[2])
    return res;

  function obj2point(obj) {
    return curve.point(obj[0], obj[1], red);
  }

  var pre = obj[2];
  res.precomputed = {
    beta: null,
    doubles: pre.doubles && {
      step: pre.doubles.step,
      points: [ res ].concat(pre.doubles.points.map(obj2point))
    },
    naf: pre.naf && {
      wnd: pre.naf.wnd,
      points: [ res ].concat(pre.naf.points.map(obj2point))
    }
  };
  return res;
};

Point.prototype.inspect = function inspect() {
  if (this.isInfinity())
    return '<EC Point Infinity>';
  return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +
      ' y: ' + this.y.fromRed().toString(16, 2) + '>';
};

Point.prototype.isInfinity = function isInfinity() {
  return this.inf;
};

Point.prototype.add = function add(p) {
  // O + P = P
  if (this.inf)
    return p;

  // P + O = P
  if (p.inf)
    return this;

  // P + P = 2P
  if (this.eq(p))
    return this.dbl();

  // P + (-P) = O
  if (this.neg().eq(p))
    return this.curve.point(null, null);

  // P + Q = O
  if (this.x.cmp(p.x) === 0)
    return this.curve.point(null, null);

  var c = this.y.redSub(p.y);
  if (c.cmpn(0) !== 0)
    c = c.redMul(this.x.redSub(p.x).redInvm());
  var nx = c.redSqr().redISub(this.x).redISub(p.x);
  var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
  return this.curve.point(nx, ny);
};

Point.prototype.dbl = function dbl() {
  if (this.inf)
    return this;

  // 2P = O
  var ys1 = this.y.redAdd(this.y);
  if (ys1.cmpn(0) === 0)
    return this.curve.point(null, null);

  var a = this.curve.a;

  var x2 = this.x.redSqr();
  var dyinv = ys1.redInvm();
  var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);

  var nx = c.redSqr().redISub(this.x.redAdd(this.x));
  var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
  return this.curve.point(nx, ny);
};

Point.prototype.getX = function getX() {
  return this.x.fromRed();
};

Point.prototype.getY = function getY() {
  return this.y.fromRed();
};

Point.prototype.mul = function mul(k) {
  k = new BN(k, 16);

  if (this._hasDoubles(k))
    return this.curve._fixedNafMul(this, k);
  else if (this.curve.endo)
    return this.curve._endoWnafMulAdd([ this ], [ k ]);
  else
    return this.curve._wnafMul(this, k);
};

Point.prototype.mulAdd = function mulAdd(k1, p2, k2) {
  var points = [ this, p2 ];
  var coeffs = [ k1, k2 ];
  if (this.curve.endo)
    return this.curve._endoWnafMulAdd(points, coeffs);
  else
    return this.curve._wnafMulAdd(1, points, coeffs, 2);
};

Point.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {
  var points = [ this, p2 ];
  var coeffs = [ k1, k2 ];
  if (this.curve.endo)
    return this.curve._endoWnafMulAdd(points, coeffs, true);
  else
    return this.curve._wnafMulAdd(1, points, coeffs, 2, true);
};

Point.prototype.eq = function eq(p) {
  return this === p ||
         this.inf === p.inf &&
             (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);
};

Point.prototype.neg = function neg(_precompute) {
  if (this.inf)
    return this;

  var res = this.curve.point(this.x, this.y.redNeg());
  if (_precompute && this.precomputed) {
    var pre = this.precomputed;
    var negate = function(p) {
      return p.neg();
    };
    res.precomputed = {
      naf: pre.naf && {
        wnd: pre.naf.wnd,
        points: pre.naf.points.map(negate)
      },
      doubles: pre.doubles && {
        step: pre.doubles.step,
        points: pre.doubles.points.map(negate)
      }
    };
  }
  return res;
};

Point.prototype.toJ = function toJ() {
  if (this.inf)
    return this.curve.jpoint(null, null, null);

  var res = this.curve.jpoint(this.x, this.y, this.curve.one);
  return res;
};

function JPoint(curve, x, y, z) {
  Base.BasePoint.call(this, curve, 'jacobian');
  if (x === null && y === null && z === null) {
    this.x = this.curve.one;
    this.y = this.curve.one;
    this.z = new BN(0);
  } else {
    this.x = new BN(x, 16);
    this.y = new BN(y, 16);
    this.z = new BN(z, 16);
  }
  if (!this.x.red)
    this.x = this.x.toRed(this.curve.red);
  if (!this.y.red)
    this.y = this.y.toRed(this.curve.red);
  if (!this.z.red)
    this.z = this.z.toRed(this.curve.red);

  this.zOne = this.z === this.curve.one;
}
inherits(JPoint, Base.BasePoint);

ShortCurve.prototype.jpoint = function jpoint(x, y, z) {
  return new JPoint(this, x, y, z);
};

JPoint.prototype.toP = function toP() {
  if (this.isInfinity())
    return this.curve.point(null, null);

  var zinv = this.z.redInvm();
  var zinv2 = zinv.redSqr();
  var ax = this.x.redMul(zinv2);
  var ay = this.y.redMul(zinv2).redMul(zinv);

  return this.curve.point(ax, ay);
};

JPoint.prototype.neg = function neg() {
  return this.curve.jpoint(this.x, this.y.redNeg(), this.z);
};

JPoint.prototype.add = function add(p) {
  // O + P = P
  if (this.isInfinity())
    return p;

  // P + O = P
  if (p.isInfinity())
    return this;

  // 12M + 4S + 7A
  var pz2 = p.z.redSqr();
  var z2 = this.z.redSqr();
  var u1 = this.x.redMul(pz2);
  var u2 = p.x.redMul(z2);
  var s1 = this.y.redMul(pz2.redMul(p.z));
  var s2 = p.y.redMul(z2.redMul(this.z));

  var h = u1.redSub(u2);
  var r = s1.redSub(s2);
  if (h.cmpn(0) === 0) {
    if (r.cmpn(0) !== 0)
      return this.curve.jpoint(null, null, null);
    else
      return this.dbl();
  }

  var h2 = h.redSqr();
  var h3 = h2.redMul(h);
  var v = u1.redMul(h2);

  var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
  var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
  var nz = this.z.redMul(p.z).redMul(h);

  return this.curve.jpoint(nx, ny, nz);
};

JPoint.prototype.mixedAdd = function mixedAdd(p) {
  // O + P = P
  if (this.isInfinity())
    return p.toJ();

  // P + O = P
  if (p.isInfinity())
    return this;

  // 8M + 3S + 7A
  var z2 = this.z.redSqr();
  var u1 = this.x;
  var u2 = p.x.redMul(z2);
  var s1 = this.y;
  var s2 = p.y.redMul(z2).redMul(this.z);

  var h = u1.redSub(u2);
  var r = s1.redSub(s2);
  if (h.cmpn(0) === 0) {
    if (r.cmpn(0) !== 0)
      return this.curve.jpoint(null, null, null);
    else
      return this.dbl();
  }

  var h2 = h.redSqr();
  var h3 = h2.redMul(h);
  var v = u1.redMul(h2);

  var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
  var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
  var nz = this.z.redMul(h);

  return this.curve.jpoint(nx, ny, nz);
};

JPoint.prototype.dblp = function dblp(pow) {
  if (pow === 0)
    return this;
  if (this.isInfinity())
    return this;
  if (!pow)
    return this.dbl();

  if (this.curve.zeroA || this.curve.threeA) {
    var r = this;
    for (var i = 0; i < pow; i++)
      r = r.dbl();
    return r;
  }

  // 1M + 2S + 1A + N * (4S + 5M + 8A)
  // N = 1 => 6M + 6S + 9A
  var a = this.curve.a;
  var tinv = this.curve.tinv;

  var jx = this.x;
  var jy = this.y;
  var jz = this.z;
  var jz4 = jz.redSqr().redSqr();

  // Reuse results
  var jyd = jy.redAdd(jy);
  for (var i = 0; i < pow; i++) {
    var jx2 = jx.redSqr();
    var jyd2 = jyd.redSqr();
    var jyd4 = jyd2.redSqr();
    var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));

    var t1 = jx.redMul(jyd2);
    var nx = c.redSqr().redISub(t1.redAdd(t1));
    var t2 = t1.redISub(nx);
    var dny = c.redMul(t2);
    dny = dny.redIAdd(dny).redISub(jyd4);
    var nz = jyd.redMul(jz);
    if (i + 1 < pow)
      jz4 = jz4.redMul(jyd4);

    jx = nx;
    jz = nz;
    jyd = dny;
  }

  return this.curve.jpoint(jx, jyd.redMul(tinv), jz);
};

JPoint.prototype.dbl = function dbl() {
  if (this.isInfinity())
    return this;

  if (this.curve.zeroA)
    return this._zeroDbl();
  else if (this.curve.threeA)
    return this._threeDbl();
  else
    return this._dbl();
};

JPoint.prototype._zeroDbl = function _zeroDbl() {
  var nx;
  var ny;
  var nz;
  // Z = 1
  if (this.zOne) {
    // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
    //     #doubling-mdbl-2007-bl
    // 1M + 5S + 14A

    // XX = X1^2
    var xx = this.x.redSqr();
    // YY = Y1^2
    var yy = this.y.redSqr();
    // YYYY = YY^2
    var yyyy = yy.redSqr();
    // S = 2 * ((X1 + YY)^2 - XX - YYYY)
    var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
    s = s.redIAdd(s);
    // M = 3 * XX + a; a = 0
    var m = xx.redAdd(xx).redIAdd(xx);
    // T = M ^ 2 - 2*S
    var t = m.redSqr().redISub(s).redISub(s);

    // 8 * YYYY
    var yyyy8 = yyyy.redIAdd(yyyy);
    yyyy8 = yyyy8.redIAdd(yyyy8);
    yyyy8 = yyyy8.redIAdd(yyyy8);

    // X3 = T
    nx = t;
    // Y3 = M * (S - T) - 8 * YYYY
    ny = m.redMul(s.redISub(t)).redISub(yyyy8);
    // Z3 = 2*Y1
    nz = this.y.redAdd(this.y);
  } else {
    // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
    //     #doubling-dbl-2009-l
    // 2M + 5S + 13A

    // A = X1^2
    var a = this.x.redSqr();
    // B = Y1^2
    var b = this.y.redSqr();
    // C = B^2
    var c = b.redSqr();
    // D = 2 * ((X1 + B)^2 - A - C)
    var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);
    d = d.redIAdd(d);
    // E = 3 * A
    var e = a.redAdd(a).redIAdd(a);
    // F = E^2
    var f = e.redSqr();

    // 8 * C
    var c8 = c.redIAdd(c);
    c8 = c8.redIAdd(c8);
    c8 = c8.redIAdd(c8);

    // X3 = F - 2 * D
    nx = f.redISub(d).redISub(d);
    // Y3 = E * (D - X3) - 8 * C
    ny = e.redMul(d.redISub(nx)).redISub(c8);
    // Z3 = 2 * Y1 * Z1
    nz = this.y.redMul(this.z);
    nz = nz.redIAdd(nz);
  }

  return this.curve.jpoint(nx, ny, nz);
};

JPoint.prototype._threeDbl = function _threeDbl() {
  var nx;
  var ny;
  var nz;
  // Z = 1
  if (this.zOne) {
    // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html
    //     #doubling-mdbl-2007-bl
    // 1M + 5S + 15A

    // XX = X1^2
    var xx = this.x.redSqr();
    // YY = Y1^2
    var yy = this.y.redSqr();
    // YYYY = YY^2
    var yyyy = yy.redSqr();
    // S = 2 * ((X1 + YY)^2 - XX - YYYY)
    var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
    s = s.redIAdd(s);
    // M = 3 * XX + a
    var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);
    // T = M^2 - 2 * S
    var t = m.redSqr().redISub(s).redISub(s);
    // X3 = T
    nx = t;
    // Y3 = M * (S - T) - 8 * YYYY
    var yyyy8 = yyyy.redIAdd(yyyy);
    yyyy8 = yyyy8.redIAdd(yyyy8);
    yyyy8 = yyyy8.redIAdd(yyyy8);
    ny = m.redMul(s.redISub(t)).redISub(yyyy8);
    // Z3 = 2 * Y1
    nz = this.y.redAdd(this.y);
  } else {
    // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b
    // 3M + 5S

    // delta = Z1^2
    var delta = this.z.redSqr();
    // gamma = Y1^2
    var gamma = this.y.redSqr();
    // beta = X1 * gamma
    var beta = this.x.redMul(gamma);
    // alpha = 3 * (X1 - delta) * (X1 + delta)
    var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));
    alpha = alpha.redAdd(alpha).redIAdd(alpha);
    // X3 = alpha^2 - 8 * beta
    var beta4 = beta.redIAdd(beta);
    beta4 = beta4.redIAdd(beta4);
    var beta8 = beta4.redAdd(beta4);
    nx = alpha.redSqr().redISub(beta8);
    // Z3 = (Y1 + Z1)^2 - gamma - delta
    nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);
    // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2
    var ggamma8 = gamma.redSqr();
    ggamma8 = ggamma8.redIAdd(ggamma8);
    ggamma8 = ggamma8.redIAdd(ggamma8);
    ggamma8 = ggamma8.redIAdd(ggamma8);
    ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);
  }

  return this.curve.jpoint(nx, ny, nz);
};

JPoint.prototype._dbl = function _dbl() {
  var a = this.curve.a;

  // 4M + 6S + 10A
  var jx = this.x;
  var jy = this.y;
  var jz = this.z;
  var jz4 = jz.redSqr().redSqr();

  var jx2 = jx.redSqr();
  var jy2 = jy.redSqr();

  var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));

  var jxd4 = jx.redAdd(jx);
  jxd4 = jxd4.redIAdd(jxd4);
  var t1 = jxd4.redMul(jy2);
  var nx = c.redSqr().redISub(t1.redAdd(t1));
  var t2 = t1.redISub(nx);

  var jyd8 = jy2.redSqr();
  jyd8 = jyd8.redIAdd(jyd8);
  jyd8 = jyd8.redIAdd(jyd8);
  jyd8 = jyd8.redIAdd(jyd8);
  var ny = c.redMul(t2).redISub(jyd8);
  var nz = jy.redAdd(jy).redMul(jz);

  return this.curve.jpoint(nx, ny, nz);
};

JPoint.prototype.trpl = function trpl() {
  if (!this.curve.zeroA)
    return this.dbl().add(this);

  // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl
  // 5M + 10S + ...

  // XX = X1^2
  var xx = this.x.redSqr();
  // YY = Y1^2
  var yy = this.y.redSqr();
  // ZZ = Z1^2
  var zz = this.z.redSqr();
  // YYYY = YY^2
  var yyyy = yy.redSqr();
  // M = 3 * XX + a * ZZ2; a = 0
  var m = xx.redAdd(xx).redIAdd(xx);
  // MM = M^2
  var mm = m.redSqr();
  // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM
  var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
  e = e.redIAdd(e);
  e = e.redAdd(e).redIAdd(e);
  e = e.redISub(mm);
  // EE = E^2
  var ee = e.redSqr();
  // T = 16*YYYY
  var t = yyyy.redIAdd(yyyy);
  t = t.redIAdd(t);
  t = t.redIAdd(t);
  t = t.redIAdd(t);
  // U = (M + E)^2 - MM - EE - T
  var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);
  // X3 = 4 * (X1 * EE - 4 * YY * U)
  var yyu4 = yy.redMul(u);
  yyu4 = yyu4.redIAdd(yyu4);
  yyu4 = yyu4.redIAdd(yyu4);
  var nx = this.x.redMul(ee).redISub(yyu4);
  nx = nx.redIAdd(nx);
  nx = nx.redIAdd(nx);
  // Y3 = 8 * Y1 * (U * (T - U) - E * EE)
  var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));
  ny = ny.redIAdd(ny);
  ny = ny.redIAdd(ny);
  ny = ny.redIAdd(ny);
  // Z3 = (Z1 + E)^2 - ZZ - EE
  var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);

  return this.curve.jpoint(nx, ny, nz);
};

JPoint.prototype.mul = function mul(k, kbase) {
  k = new BN(k, kbase);

  return this.curve._wnafMul(this, k);
};

JPoint.prototype.eq = function eq(p) {
  if (p.type === 'affine')
    return this.eq(p.toJ());

  if (this === p)
    return true;

  // x1 * z2^2 == x2 * z1^2
  var z2 = this.z.redSqr();
  var pz2 = p.z.redSqr();
  if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0)
    return false;

  // y1 * z2^3 == y2 * z1^3
  var z3 = z2.redMul(this.z);
  var pz3 = pz2.redMul(p.z);
  return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;
};

JPoint.prototype.eqXToP = function eqXToP(x) {
  var zs = this.z.redSqr();
  var rx = x.toRed(this.curve.red).redMul(zs);
  if (this.x.cmp(rx) === 0)
    return true;

  var xc = x.clone();
  var t = this.curve.redN.redMul(zs);
  for (;;) {
    xc.iadd(this.curve.n);
    if (xc.cmp(this.curve.p) >= 0)
      return false;

    rx.redIAdd(t);
    if (this.x.cmp(rx) === 0)
      return true;
  }
  return false;
};

JPoint.prototype.inspect = function inspect() {
  if (this.isInfinity())
    return '<EC JPoint Infinity>';
  return '<EC JPoint x: ' + this.x.toString(16, 2) +
      ' y: ' + this.y.toString(16, 2) +
      ' z: ' + this.z.toString(16, 2) + '>';
};

JPoint.prototype.isInfinity = function isInfinity() {
  // XXX This code assumes that zero is always zero in red
  return this.z.cmpn(0) === 0;
};


/***/ }),
/* 465 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var curve = __webpack_require__(88);
var BN = __webpack_require__(12);
var inherits = __webpack_require__(1);
var Base = curve.base;

var elliptic = __webpack_require__(16);
var utils = elliptic.utils;

function MontCurve(conf) {
  Base.call(this, 'mont', conf);

  this.a = new BN(conf.a, 16).toRed(this.red);
  this.b = new BN(conf.b, 16).toRed(this.red);
  this.i4 = new BN(4).toRed(this.red).redInvm();
  this.two = new BN(2).toRed(this.red);
  this.a24 = this.i4.redMul(this.a.redAdd(this.two));
}
inherits(MontCurve, Base);
module.exports = MontCurve;

MontCurve.prototype.validate = function validate(point) {
  var x = point.normalize().x;
  var x2 = x.redSqr();
  var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);
  var y = rhs.redSqrt();

  return y.redSqr().cmp(rhs) === 0;
};

function Point(curve, x, z) {
  Base.BasePoint.call(this, curve, 'projective');
  if (x === null && z === null) {
    this.x = this.curve.one;
    this.z = this.curve.zero;
  } else {
    this.x = new BN(x, 16);
    this.z = new BN(z, 16);
    if (!this.x.red)
      this.x = this.x.toRed(this.curve.red);
    if (!this.z.red)
      this.z = this.z.toRed(this.curve.red);
  }
}
inherits(Point, Base.BasePoint);

MontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
  return this.point(utils.toArray(bytes, enc), 1);
};

MontCurve.prototype.point = function point(x, z) {
  return new Point(this, x, z);
};

MontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
  return Point.fromJSON(this, obj);
};

Point.prototype.precompute = function precompute() {
  // No-op
};

Point.prototype._encode = function _encode() {
  return this.getX().toArray('be', this.curve.p.byteLength());
};

Point.fromJSON = function fromJSON(curve, obj) {
  return new Point(curve, obj[0], obj[1] || curve.one);
};

Point.prototype.inspect = function inspect() {
  if (this.isInfinity())
    return '<EC Point Infinity>';
  return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +
      ' z: ' + this.z.fromRed().toString(16, 2) + '>';
};

Point.prototype.isInfinity = function isInfinity() {
  // XXX This code assumes that zero is always zero in red
  return this.z.cmpn(0) === 0;
};

Point.prototype.dbl = function dbl() {
  // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3
  // 2M + 2S + 4A

  // A = X1 + Z1
  var a = this.x.redAdd(this.z);
  // AA = A^2
  var aa = a.redSqr();
  // B = X1 - Z1
  var b = this.x.redSub(this.z);
  // BB = B^2
  var bb = b.redSqr();
  // C = AA - BB
  var c = aa.redSub(bb);
  // X3 = AA * BB
  var nx = aa.redMul(bb);
  // Z3 = C * (BB + A24 * C)
  var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c)));
  return this.curve.point(nx, nz);
};

Point.prototype.add = function add() {
  throw new Error('Not supported on Montgomery curve');
};

Point.prototype.diffAdd = function diffAdd(p, diff) {
  // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3
  // 4M + 2S + 6A

  // A = X2 + Z2
  var a = this.x.redAdd(this.z);
  // B = X2 - Z2
  var b = this.x.redSub(this.z);
  // C = X3 + Z3
  var c = p.x.redAdd(p.z);
  // D = X3 - Z3
  var d = p.x.redSub(p.z);
  // DA = D * A
  var da = d.redMul(a);
  // CB = C * B
  var cb = c.redMul(b);
  // X5 = Z1 * (DA + CB)^2
  var nx = diff.z.redMul(da.redAdd(cb).redSqr());
  // Z5 = X1 * (DA - CB)^2
  var nz = diff.x.redMul(da.redISub(cb).redSqr());
  return this.curve.point(nx, nz);
};

Point.prototype.mul = function mul(k) {
  var t = k.clone();
  var a = this; // (N / 2) * Q + Q
  var b = this.curve.point(null, null); // (N / 2) * Q
  var c = this; // Q

  for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1))
    bits.push(t.andln(1));

  for (var i = bits.length - 1; i >= 0; i--) {
    if (bits[i] === 0) {
      // N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q
      a = a.diffAdd(b, c);
      // N * Q = 2 * ((N / 2) * Q + Q))
      b = b.dbl();
    } else {
      // N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q)
      b = a.diffAdd(b, c);
      // N * Q + Q = 2 * ((N / 2) * Q + Q)
      a = a.dbl();
    }
  }
  return b;
};

Point.prototype.mulAdd = function mulAdd() {
  throw new Error('Not supported on Montgomery curve');
};

Point.prototype.jumlAdd = function jumlAdd() {
  throw new Error('Not supported on Montgomery curve');
};

Point.prototype.eq = function eq(other) {
  return this.getX().cmp(other.getX()) === 0;
};

Point.prototype.normalize = function normalize() {
  this.x = this.x.redMul(this.z.redInvm());
  this.z = this.curve.one;
  return this;
};

Point.prototype.getX = function getX() {
  // Normalize coordinates
  this.normalize();

  return this.x.fromRed();
};


/***/ }),
/* 466 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var curve = __webpack_require__(88);
var elliptic = __webpack_require__(16);
var BN = __webpack_require__(12);
var inherits = __webpack_require__(1);
var Base = curve.base;

var assert = elliptic.utils.assert;

function EdwardsCurve(conf) {
  // NOTE: Important as we are creating point in Base.call()
  this.twisted = (conf.a | 0) !== 1;
  this.mOneA = this.twisted && (conf.a | 0) === -1;
  this.extended = this.mOneA;

  Base.call(this, 'edwards', conf);

  this.a = new BN(conf.a, 16).umod(this.red.m);
  this.a = this.a.toRed(this.red);
  this.c = new BN(conf.c, 16).toRed(this.red);
  this.c2 = this.c.redSqr();
  this.d = new BN(conf.d, 16).toRed(this.red);
  this.dd = this.d.redAdd(this.d);

  assert(!this.twisted || this.c.fromRed().cmpn(1) === 0);
  this.oneC = (conf.c | 0) === 1;
}
inherits(EdwardsCurve, Base);
module.exports = EdwardsCurve;

EdwardsCurve.prototype._mulA = function _mulA(num) {
  if (this.mOneA)
    return num.redNeg();
  else
    return this.a.redMul(num);
};

EdwardsCurve.prototype._mulC = function _mulC(num) {
  if (this.oneC)
    return num;
  else
    return this.c.redMul(num);
};

// Just for compatibility with Short curve
EdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) {
  return this.point(x, y, z, t);
};

EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) {
  x = new BN(x, 16);
  if (!x.red)
    x = x.toRed(this.red);

  var x2 = x.redSqr();
  var rhs = this.c2.redSub(this.a.redMul(x2));
  var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2));

  var y2 = rhs.redMul(lhs.redInvm());
  var y = y2.redSqrt();
  if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)
    throw new Error('invalid point');

  var isOdd = y.fromRed().isOdd();
  if (odd && !isOdd || !odd && isOdd)
    y = y.redNeg();

  return this.point(x, y);
};

EdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) {
  y = new BN(y, 16);
  if (!y.red)
    y = y.toRed(this.red);

  // x^2 = (y^2 - 1) / (d y^2 + 1)
  var y2 = y.redSqr();
  var lhs = y2.redSub(this.one);
  var rhs = y2.redMul(this.d).redAdd(this.one);
  var x2 = lhs.redMul(rhs.redInvm());

  if (x2.cmp(this.zero) === 0) {
    if (odd)
      throw new Error('invalid point');
    else
      return this.point(this.zero, y);
  }

  var x = x2.redSqrt();
  if (x.redSqr().redSub(x2).cmp(this.zero) !== 0)
    throw new Error('invalid point');

  if (x.isOdd() !== odd)
    x = x.redNeg();

  return this.point(x, y);
};

EdwardsCurve.prototype.validate = function validate(point) {
  if (point.isInfinity())
    return true;

  // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2)
  point.normalize();

  var x2 = point.x.redSqr();
  var y2 = point.y.redSqr();
  var lhs = x2.redMul(this.a).redAdd(y2);
  var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2)));

  return lhs.cmp(rhs) === 0;
};

function Point(curve, x, y, z, t) {
  Base.BasePoint.call(this, curve, 'projective');
  if (x === null && y === null && z === null) {
    this.x = this.curve.zero;
    this.y = this.curve.one;
    this.z = this.curve.one;
    this.t = this.curve.zero;
    this.zOne = true;
  } else {
    this.x = new BN(x, 16);
    this.y = new BN(y, 16);
    this.z = z ? new BN(z, 16) : this.curve.one;
    this.t = t && new BN(t, 16);
    if (!this.x.red)
      this.x = this.x.toRed(this.curve.red);
    if (!this.y.red)
      this.y = this.y.toRed(this.curve.red);
    if (!this.z.red)
      this.z = this.z.toRed(this.curve.red);
    if (this.t && !this.t.red)
      this.t = this.t.toRed(this.curve.red);
    this.zOne = this.z === this.curve.one;

    // Use extended coordinates
    if (this.curve.extended && !this.t) {
      this.t = this.x.redMul(this.y);
      if (!this.zOne)
        this.t = this.t.redMul(this.z.redInvm());
    }
  }
}
inherits(Point, Base.BasePoint);

EdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
  return Point.fromJSON(this, obj);
};

EdwardsCurve.prototype.point = function point(x, y, z, t) {
  return new Point(this, x, y, z, t);
};

Point.fromJSON = function fromJSON(curve, obj) {
  return new Point(curve, obj[0], obj[1], obj[2]);
};

Point.prototype.inspect = function inspect() {
  if (this.isInfinity())
    return '<EC Point Infinity>';
  return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +
      ' y: ' + this.y.fromRed().toString(16, 2) +
      ' z: ' + this.z.fromRed().toString(16, 2) + '>';
};

Point.prototype.isInfinity = function isInfinity() {
  // XXX This code assumes that zero is always zero in red
  return this.x.cmpn(0) === 0 &&
         this.y.cmp(this.z) === 0;
};

Point.prototype._extDbl = function _extDbl() {
  // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html
  //     #doubling-dbl-2008-hwcd
  // 4M + 4S

  // A = X1^2
  var a = this.x.redSqr();
  // B = Y1^2
  var b = this.y.redSqr();
  // C = 2 * Z1^2
  var c = this.z.redSqr();
  c = c.redIAdd(c);
  // D = a * A
  var d = this.curve._mulA(a);
  // E = (X1 + Y1)^2 - A - B
  var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);
  // G = D + B
  var g = d.redAdd(b);
  // F = G - C
  var f = g.redSub(c);
  // H = D - B
  var h = d.redSub(b);
  // X3 = E * F
  var nx = e.redMul(f);
  // Y3 = G * H
  var ny = g.redMul(h);
  // T3 = E * H
  var nt = e.redMul(h);
  // Z3 = F * G
  var nz = f.redMul(g);
  return this.curve.point(nx, ny, nz, nt);
};

Point.prototype._projDbl = function _projDbl() {
  // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
  //     #doubling-dbl-2008-bbjlp
  //     #doubling-dbl-2007-bl
  // and others
  // Generally 3M + 4S or 2M + 4S

  // B = (X1 + Y1)^2
  var b = this.x.redAdd(this.y).redSqr();
  // C = X1^2
  var c = this.x.redSqr();
  // D = Y1^2
  var d = this.y.redSqr();

  var nx;
  var ny;
  var nz;
  if (this.curve.twisted) {
    // E = a * C
    var e = this.curve._mulA(c);
    // F = E + D
    var f = e.redAdd(d);
    if (this.zOne) {
      // X3 = (B - C - D) * (F - 2)
      nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));
      // Y3 = F * (E - D)
      ny = f.redMul(e.redSub(d));
      // Z3 = F^2 - 2 * F
      nz = f.redSqr().redSub(f).redSub(f);
    } else {
      // H = Z1^2
      var h = this.z.redSqr();
      // J = F - 2 * H
      var j = f.redSub(h).redISub(h);
      // X3 = (B-C-D)*J
      nx = b.redSub(c).redISub(d).redMul(j);
      // Y3 = F * (E - D)
      ny = f.redMul(e.redSub(d));
      // Z3 = F * J
      nz = f.redMul(j);
    }
  } else {
    // E = C + D
    var e = c.redAdd(d);
    // H = (c * Z1)^2
    var h = this.curve._mulC(this.c.redMul(this.z)).redSqr();
    // J = E - 2 * H
    var j = e.redSub(h).redSub(h);
    // X3 = c * (B - E) * J
    nx = this.curve._mulC(b.redISub(e)).redMul(j);
    // Y3 = c * E * (C - D)
    ny = this.curve._mulC(e).redMul(c.redISub(d));
    // Z3 = E * J
    nz = e.redMul(j);
  }
  return this.curve.point(nx, ny, nz);
};

Point.prototype.dbl = function dbl() {
  if (this.isInfinity())
    return this;

  // Double in extended coordinates
  if (this.curve.extended)
    return this._extDbl();
  else
    return this._projDbl();
};

Point.prototype._extAdd = function _extAdd(p) {
  // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html
  //     #addition-add-2008-hwcd-3
  // 8M

  // A = (Y1 - X1) * (Y2 - X2)
  var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x));
  // B = (Y1 + X1) * (Y2 + X2)
  var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));
  // C = T1 * k * T2
  var c = this.t.redMul(this.curve.dd).redMul(p.t);
  // D = Z1 * 2 * Z2
  var d = this.z.redMul(p.z.redAdd(p.z));
  // E = B - A
  var e = b.redSub(a);
  // F = D - C
  var f = d.redSub(c);
  // G = D + C
  var g = d.redAdd(c);
  // H = B + A
  var h = b.redAdd(a);
  // X3 = E * F
  var nx = e.redMul(f);
  // Y3 = G * H
  var ny = g.redMul(h);
  // T3 = E * H
  var nt = e.redMul(h);
  // Z3 = F * G
  var nz = f.redMul(g);
  return this.curve.point(nx, ny, nz, nt);
};

Point.prototype._projAdd = function _projAdd(p) {
  // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
  //     #addition-add-2008-bbjlp
  //     #addition-add-2007-bl
  // 10M + 1S

  // A = Z1 * Z2
  var a = this.z.redMul(p.z);
  // B = A^2
  var b = a.redSqr();
  // C = X1 * X2
  var c = this.x.redMul(p.x);
  // D = Y1 * Y2
  var d = this.y.redMul(p.y);
  // E = d * C * D
  var e = this.curve.d.redMul(c).redMul(d);
  // F = B - E
  var f = b.redSub(e);
  // G = B + E
  var g = b.redAdd(e);
  // X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D)
  var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);
  var nx = a.redMul(f).redMul(tmp);
  var ny;
  var nz;
  if (this.curve.twisted) {
    // Y3 = A * G * (D - a * C)
    ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));
    // Z3 = F * G
    nz = f.redMul(g);
  } else {
    // Y3 = A * G * (D - C)
    ny = a.redMul(g).redMul(d.redSub(c));
    // Z3 = c * F * G
    nz = this.curve._mulC(f).redMul(g);
  }
  return this.curve.point(nx, ny, nz);
};

Point.prototype.add = function add(p) {
  if (this.isInfinity())
    return p;
  if (p.isInfinity())
    return this;

  if (this.curve.extended)
    return this._extAdd(p);
  else
    return this._projAdd(p);
};

Point.prototype.mul = function mul(k) {
  if (this._hasDoubles(k))
    return this.curve._fixedNafMul(this, k);
  else
    return this.curve._wnafMul(this, k);
};

Point.prototype.mulAdd = function mulAdd(k1, p, k2) {
  return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, false);
};

Point.prototype.jmulAdd = function jmulAdd(k1, p, k2) {
  return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true);
};

Point.prototype.normalize = function normalize() {
  if (this.zOne)
    return this;

  // Normalize coordinates
  var zi = this.z.redInvm();
  this.x = this.x.redMul(zi);
  this.y = this.y.redMul(zi);
  if (this.t)
    this.t = this.t.redMul(zi);
  this.z = this.curve.one;
  this.zOne = true;
  return this;
};

Point.prototype.neg = function neg() {
  return this.curve.point(this.x.redNeg(),
                          this.y,
                          this.z,
                          this.t && this.t.redNeg());
};

Point.prototype.getX = function getX() {
  this.normalize();
  return this.x.fromRed();
};

Point.prototype.getY = function getY() {
  this.normalize();
  return this.y.fromRed();
};

Point.prototype.eq = function eq(other) {
  return this === other ||
         this.getX().cmp(other.getX()) === 0 &&
         this.getY().cmp(other.getY()) === 0;
};

Point.prototype.eqXToP = function eqXToP(x) {
  var rx = x.toRed(this.curve.red).redMul(this.z);
  if (this.x.cmp(rx) === 0)
    return true;

  var xc = x.clone();
  var t = this.curve.redN.redMul(this.z);
  for (;;) {
    xc.iadd(this.curve.n);
    if (xc.cmp(this.curve.p) >= 0)
      return false;

    rx.redIAdd(t);
    if (this.x.cmp(rx) === 0)
      return true;
  }
  return false;
};

// Compatibility with BaseCurve
Point.prototype.toP = Point.prototype.normalize;
Point.prototype.mixedAdd = Point.prototype.add;


/***/ }),
/* 467 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var curves = exports;

var hash = __webpack_require__(127);
var elliptic = __webpack_require__(16);

var assert = elliptic.utils.assert;

function PresetCurve(options) {
  if (options.type === 'short')
    this.curve = new elliptic.curve.short(options);
  else if (options.type === 'edwards')
    this.curve = new elliptic.curve.edwards(options);
  else
    this.curve = new elliptic.curve.mont(options);
  this.g = this.curve.g;
  this.n = this.curve.n;
  this.hash = options.hash;

  assert(this.g.validate(), 'Invalid curve');
  assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');
}
curves.PresetCurve = PresetCurve;

function defineCurve(name, options) {
  Object.defineProperty(curves, name, {
    configurable: true,
    enumerable: true,
    get: function() {
      var curve = new PresetCurve(options);
      Object.defineProperty(curves, name, {
        configurable: true,
        enumerable: true,
        value: curve
      });
      return curve;
    }
  });
}

defineCurve('p192', {
  type: 'short',
  prime: 'p192',
  p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',
  a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',
  b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',
  n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',
  hash: hash.sha256,
  gRed: false,
  g: [
    '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',
    '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811'
  ]
});

defineCurve('p224', {
  type: 'short',
  prime: 'p224',
  p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',
  a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',
  b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',
  n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',
  hash: hash.sha256,
  gRed: false,
  g: [
    'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',
    'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34'
  ]
});

defineCurve('p256', {
  type: 'short',
  prime: null,
  p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',
  a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',
  b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',
  n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',
  hash: hash.sha256,
  gRed: false,
  g: [
    '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',
    '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5'
  ]
});

defineCurve('p384', {
  type: 'short',
  prime: null,
  p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
     'fffffffe ffffffff 00000000 00000000 ffffffff',
  a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
     'fffffffe ffffffff 00000000 00000000 fffffffc',
  b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' +
     '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',
  n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' +
     'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',
  hash: hash.sha384,
  gRed: false,
  g: [
    'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +
    '5502f25d bf55296c 3a545e38 72760ab7',
    '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +
    '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f'
  ]
});

defineCurve('p521', {
  type: 'short',
  prime: null,
  p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
     'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
     'ffffffff ffffffff ffffffff ffffffff ffffffff',
  a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
     'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
     'ffffffff ffffffff ffffffff ffffffff fffffffc',
  b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' +
     '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' +
     '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',
  n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
     'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' +
     'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',
  hash: hash.sha512,
  gRed: false,
  g: [
    '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' +
    '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' +
    'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',
    '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +
    '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +
    '3fad0761 353c7086 a272c240 88be9476 9fd16650'
  ]
});

defineCurve('curve25519', {
  type: 'mont',
  prime: 'p25519',
  p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
  a: '76d06',
  b: '1',
  n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
  hash: hash.sha256,
  gRed: false,
  g: [
    '9'
  ]
});

defineCurve('ed25519', {
  type: 'edwards',
  prime: 'p25519',
  p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
  a: '-1',
  c: '1',
  // -121665 * (121666^(-1)) (mod P)
  d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',
  n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
  hash: hash.sha256,
  gRed: false,
  g: [
    '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',

    // 4/5
    '6666666666666666666666666666666666666666666666666666666666666658'
  ]
});

var pre;
try {
  pre = __webpack_require__(474);
} catch (e) {
  pre = undefined;
}

defineCurve('secp256k1', {
  type: 'short',
  prime: 'k256',
  p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',
  a: '0',
  b: '7',
  n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',
  h: '1',
  hash: hash.sha256,

  // Precomputed endomorphism
  beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',
  lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',
  basis: [
    {
      a: '3086d221a7d46bcde86c90e49284eb15',
      b: '-e4437ed6010e88286f547fa90abfe4c3'
    },
    {
      a: '114ca50f7a8e2f3f657c1108d9d44cfd8',
      b: '3086d221a7d46bcde86c90e49284eb15'
    }
  ],

  gRed: false,
  g: [
    '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
    '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
    pre
  ]
});


/***/ }),
/* 468 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.sha1 = __webpack_require__(469);
exports.sha224 = __webpack_require__(470);
exports.sha256 = __webpack_require__(190);
exports.sha384 = __webpack_require__(471);
exports.sha512 = __webpack_require__(191);


/***/ }),
/* 469 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var common = __webpack_require__(67);
var shaCommon = __webpack_require__(189);

var rotl32 = utils.rotl32;
var sum32 = utils.sum32;
var sum32_5 = utils.sum32_5;
var ft_1 = shaCommon.ft_1;
var BlockHash = common.BlockHash;

var sha1_K = [
  0x5A827999, 0x6ED9EBA1,
  0x8F1BBCDC, 0xCA62C1D6
];

function SHA1() {
  if (!(this instanceof SHA1))
    return new SHA1();

  BlockHash.call(this);
  this.h = [
    0x67452301, 0xefcdab89, 0x98badcfe,
    0x10325476, 0xc3d2e1f0 ];
  this.W = new Array(80);
}

utils.inherits(SHA1, BlockHash);
module.exports = SHA1;

SHA1.blockSize = 512;
SHA1.outSize = 160;
SHA1.hmacStrength = 80;
SHA1.padLength = 64;

SHA1.prototype._update = function _update(msg, start) {
  var W = this.W;

  for (var i = 0; i < 16; i++)
    W[i] = msg[start + i];

  for(; i < W.length; i++)
    W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);

  var a = this.h[0];
  var b = this.h[1];
  var c = this.h[2];
  var d = this.h[3];
  var e = this.h[4];

  for (i = 0; i < W.length; i++) {
    var s = ~~(i / 20);
    var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);
    e = d;
    d = c;
    c = rotl32(b, 30);
    b = a;
    a = t;
  }

  this.h[0] = sum32(this.h[0], a);
  this.h[1] = sum32(this.h[1], b);
  this.h[2] = sum32(this.h[2], c);
  this.h[3] = sum32(this.h[3], d);
  this.h[4] = sum32(this.h[4], e);
};

SHA1.prototype._digest = function digest(enc) {
  if (enc === 'hex')
    return utils.toHex32(this.h, 'big');
  else
    return utils.split32(this.h, 'big');
};


/***/ }),
/* 470 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var SHA256 = __webpack_require__(190);

function SHA224() {
  if (!(this instanceof SHA224))
    return new SHA224();

  SHA256.call(this);
  this.h = [
    0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
    0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ];
}
utils.inherits(SHA224, SHA256);
module.exports = SHA224;

SHA224.blockSize = 512;
SHA224.outSize = 224;
SHA224.hmacStrength = 192;
SHA224.padLength = 64;

SHA224.prototype._digest = function digest(enc) {
  // Just truncate output
  if (enc === 'hex')
    return utils.toHex32(this.h.slice(0, 7), 'big');
  else
    return utils.split32(this.h.slice(0, 7), 'big');
};



/***/ }),
/* 471 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);

var SHA512 = __webpack_require__(191);

function SHA384() {
  if (!(this instanceof SHA384))
    return new SHA384();

  SHA512.call(this);
  this.h = [
    0xcbbb9d5d, 0xc1059ed8,
    0x629a292a, 0x367cd507,
    0x9159015a, 0x3070dd17,
    0x152fecd8, 0xf70e5939,
    0x67332667, 0xffc00b31,
    0x8eb44a87, 0x68581511,
    0xdb0c2e0d, 0x64f98fa7,
    0x47b5481d, 0xbefa4fa4 ];
}
utils.inherits(SHA384, SHA512);
module.exports = SHA384;

SHA384.blockSize = 1024;
SHA384.outSize = 384;
SHA384.hmacStrength = 192;
SHA384.padLength = 128;

SHA384.prototype._digest = function digest(enc) {
  if (enc === 'hex')
    return utils.toHex32(this.h.slice(0, 12), 'big');
  else
    return utils.split32(this.h.slice(0, 12), 'big');
};


/***/ }),
/* 472 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var common = __webpack_require__(67);

var rotl32 = utils.rotl32;
var sum32 = utils.sum32;
var sum32_3 = utils.sum32_3;
var sum32_4 = utils.sum32_4;
var BlockHash = common.BlockHash;

function RIPEMD160() {
  if (!(this instanceof RIPEMD160))
    return new RIPEMD160();

  BlockHash.call(this);

  this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ];
  this.endian = 'little';
}
utils.inherits(RIPEMD160, BlockHash);
exports.ripemd160 = RIPEMD160;

RIPEMD160.blockSize = 512;
RIPEMD160.outSize = 160;
RIPEMD160.hmacStrength = 192;
RIPEMD160.padLength = 64;

RIPEMD160.prototype._update = function update(msg, start) {
  var A = this.h[0];
  var B = this.h[1];
  var C = this.h[2];
  var D = this.h[3];
  var E = this.h[4];
  var Ah = A;
  var Bh = B;
  var Ch = C;
  var Dh = D;
  var Eh = E;
  for (var j = 0; j < 80; j++) {
    var T = sum32(
      rotl32(
        sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)),
        s[j]),
      E);
    A = E;
    E = D;
    D = rotl32(C, 10);
    C = B;
    B = T;
    T = sum32(
      rotl32(
        sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)),
        sh[j]),
      Eh);
    Ah = Eh;
    Eh = Dh;
    Dh = rotl32(Ch, 10);
    Ch = Bh;
    Bh = T;
  }
  T = sum32_3(this.h[1], C, Dh);
  this.h[1] = sum32_3(this.h[2], D, Eh);
  this.h[2] = sum32_3(this.h[3], E, Ah);
  this.h[3] = sum32_3(this.h[4], A, Bh);
  this.h[4] = sum32_3(this.h[0], B, Ch);
  this.h[0] = T;
};

RIPEMD160.prototype._digest = function digest(enc) {
  if (enc === 'hex')
    return utils.toHex32(this.h, 'little');
  else
    return utils.split32(this.h, 'little');
};

function f(j, x, y, z) {
  if (j <= 15)
    return x ^ y ^ z;
  else if (j <= 31)
    return (x & y) | ((~x) & z);
  else if (j <= 47)
    return (x | (~y)) ^ z;
  else if (j <= 63)
    return (x & z) | (y & (~z));
  else
    return x ^ (y | (~z));
}

function K(j) {
  if (j <= 15)
    return 0x00000000;
  else if (j <= 31)
    return 0x5a827999;
  else if (j <= 47)
    return 0x6ed9eba1;
  else if (j <= 63)
    return 0x8f1bbcdc;
  else
    return 0xa953fd4e;
}

function Kh(j) {
  if (j <= 15)
    return 0x50a28be6;
  else if (j <= 31)
    return 0x5c4dd124;
  else if (j <= 47)
    return 0x6d703ef3;
  else if (j <= 63)
    return 0x7a6d76e9;
  else
    return 0x00000000;
}

var r = [
  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
  7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
  3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
  1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
  4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
];

var rh = [
  5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
  6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
  15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
  8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
  12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
];

var s = [
  11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
  7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
  11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
  11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
  9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
];

var sh = [
  8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
  9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
  9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
  15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
  8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
];


/***/ }),
/* 473 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(36);
var assert = __webpack_require__(25);

function Hmac(hash, key, enc) {
  if (!(this instanceof Hmac))
    return new Hmac(hash, key, enc);
  this.Hash = hash;
  this.blockSize = hash.blockSize / 8;
  this.outSize = hash.outSize / 8;
  this.inner = null;
  this.outer = null;

  this._init(utils.toArray(key, enc));
}
module.exports = Hmac;

Hmac.prototype._init = function init(key) {
  // Shorten key, if needed
  if (key.length > this.blockSize)
    key = new this.Hash().update(key).digest();
  assert(key.length <= this.blockSize);

  // Add padding to key
  for (var i = key.length; i < this.blockSize; i++)
    key.push(0);

  for (i = 0; i < key.length; i++)
    key[i] ^= 0x36;
  this.inner = new this.Hash().update(key);

  // 0x36 ^ 0x5c = 0x6a
  for (i = 0; i < key.length; i++)
    key[i] ^= 0x6a;
  this.outer = new this.Hash().update(key);
};

Hmac.prototype.update = function update(msg, enc) {
  this.inner.update(msg, enc);
  return this;
};

Hmac.prototype.digest = function digest(enc) {
  this.outer.update(this.inner.digest());
  return this.outer.digest(enc);
};


/***/ }),
/* 474 */
/***/ (function(module, exports) {

module.exports = {
  doubles: {
    step: 4,
    points: [
      [
        'e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a',
        'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821'
      ],
      [
        '8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508',
        '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf'
      ],
      [
        '175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739',
        'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695'
      ],
      [
        '363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640',
        '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9'
      ],
      [
        '8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c',
        '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36'
      ],
      [
        '723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda',
        '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f'
      ],
      [
        'eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa',
        '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999'
      ],
      [
        '100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0',
        'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09'
      ],
      [
        'e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d',
        '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d'
      ],
      [
        'feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d',
        'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088'
      ],
      [
        'da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1',
        '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d'
      ],
      [
        '53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0',
        '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8'
      ],
      [
        '8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047',
        '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a'
      ],
      [
        '385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862',
        '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453'
      ],
      [
        '6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7',
        '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160'
      ],
      [
        '3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd',
        '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0'
      ],
      [
        '85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83',
        '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6'
      ],
      [
        '948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a',
        '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589'
      ],
      [
        '6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8',
        'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17'
      ],
      [
        'e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d',
        '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda'
      ],
      [
        'e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725',
        '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd'
      ],
      [
        '213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754',
        '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2'
      ],
      [
        '4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c',
        '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6'
      ],
      [
        'fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6',
        '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f'
      ],
      [
        '76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39',
        'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01'
      ],
      [
        'c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891',
        '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3'
      ],
      [
        'd895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b',
        'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f'
      ],
      [
        'b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03',
        '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7'
      ],
      [
        'e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d',
        'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78'
      ],
      [
        'a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070',
        '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1'
      ],
      [
        '90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4',
        'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150'
      ],
      [
        '8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da',
        '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82'
      ],
      [
        'e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11',
        '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc'
      ],
      [
        '8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e',
        'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b'
      ],
      [
        'e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41',
        '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51'
      ],
      [
        'b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef',
        '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45'
      ],
      [
        'd68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8',
        'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120'
      ],
      [
        '324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d',
        '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84'
      ],
      [
        '4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96',
        '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d'
      ],
      [
        '9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd',
        'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d'
      ],
      [
        '6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5',
        '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8'
      ],
      [
        'a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266',
        '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8'
      ],
      [
        '7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71',
        '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac'
      ],
      [
        '928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac',
        'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f'
      ],
      [
        '85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751',
        '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962'
      ],
      [
        'ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e',
        '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907'
      ],
      [
        '827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241',
        'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec'
      ],
      [
        'eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3',
        'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d'
      ],
      [
        'e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f',
        '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414'
      ],
      [
        '1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19',
        'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd'
      ],
      [
        '146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be',
        'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0'
      ],
      [
        'fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9',
        '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811'
      ],
      [
        'da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2',
        '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1'
      ],
      [
        'a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13',
        '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c'
      ],
      [
        '174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c',
        'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73'
      ],
      [
        '959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba',
        '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd'
      ],
      [
        'd2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151',
        'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405'
      ],
      [
        '64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073',
        'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589'
      ],
      [
        '8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458',
        '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e'
      ],
      [
        '13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b',
        '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27'
      ],
      [
        'bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366',
        'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1'
      ],
      [
        '8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa',
        '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482'
      ],
      [
        '8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0',
        '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945'
      ],
      [
        'dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787',
        '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573'
      ],
      [
        'f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e',
        'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82'
      ]
    ]
  },
  naf: {
    wnd: 7,
    points: [
      [
        'f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9',
        '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672'
      ],
      [
        '2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4',
        'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6'
      ],
      [
        '5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc',
        '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da'
      ],
      [
        'acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe',
        'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37'
      ],
      [
        '774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb',
        'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b'
      ],
      [
        'f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8',
        'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81'
      ],
      [
        'd7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e',
        '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58'
      ],
      [
        'defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34',
        '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77'
      ],
      [
        '2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c',
        '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a'
      ],
      [
        '352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5',
        '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c'
      ],
      [
        '2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f',
        '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67'
      ],
      [
        '9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714',
        '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402'
      ],
      [
        'daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729',
        'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55'
      ],
      [
        'c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db',
        '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482'
      ],
      [
        '6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4',
        'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82'
      ],
      [
        '1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5',
        'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396'
      ],
      [
        '605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479',
        '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49'
      ],
      [
        '62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d',
        '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf'
      ],
      [
        '80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f',
        '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a'
      ],
      [
        '7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb',
        'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7'
      ],
      [
        'd528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9',
        'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933'
      ],
      [
        '49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963',
        '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a'
      ],
      [
        '77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74',
        '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6'
      ],
      [
        'f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530',
        'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37'
      ],
      [
        '463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b',
        '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e'
      ],
      [
        'f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247',
        'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6'
      ],
      [
        'caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1',
        'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476'
      ],
      [
        '2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120',
        '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40'
      ],
      [
        '7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435',
        '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61'
      ],
      [
        '754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18',
        '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683'
      ],
      [
        'e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8',
        '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5'
      ],
      [
        '186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb',
        '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b'
      ],
      [
        'df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f',
        '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417'
      ],
      [
        '5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143',
        'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868'
      ],
      [
        '290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba',
        'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a'
      ],
      [
        'af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45',
        'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6'
      ],
      [
        '766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a',
        '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996'
      ],
      [
        '59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e',
        'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e'
      ],
      [
        'f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8',
        'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d'
      ],
      [
        '7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c',
        '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2'
      ],
      [
        '948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519',
        'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e'
      ],
      [
        '7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab',
        '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437'
      ],
      [
        '3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca',
        'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311'
      ],
      [
        'd3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf',
        '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4'
      ],
      [
        '1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610',
        '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575'
      ],
      [
        '733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4',
        'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d'
      ],
      [
        '15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c',
        'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d'
      ],
      [
        'a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940',
        'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629'
      ],
      [
        'e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980',
        'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06'
      ],
      [
        '311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3',
        '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374'
      ],
      [
        '34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf',
        '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee'
      ],
      [
        'f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63',
        '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1'
      ],
      [
        'd7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448',
        'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b'
      ],
      [
        '32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf',
        '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661'
      ],
      [
        '7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5',
        '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6'
      ],
      [
        'ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6',
        '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e'
      ],
      [
        '16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5',
        '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d'
      ],
      [
        'eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99',
        'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc'
      ],
      [
        '78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51',
        'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4'
      ],
      [
        '494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5',
        '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c'
      ],
      [
        'a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5',
        '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b'
      ],
      [
        'c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997',
        '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913'
      ],
      [
        '841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881',
        '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154'
      ],
      [
        '5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5',
        '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865'
      ],
      [
        '36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66',
        'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc'
      ],
      [
        '336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726',
        'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224'
      ],
      [
        '8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede',
        '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e'
      ],
      [
        '1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94',
        '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6'
      ],
      [
        '85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31',
        '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511'
      ],
      [
        '29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51',
        'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b'
      ],
      [
        'a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252',
        'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2'
      ],
      [
        '4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5',
        'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c'
      ],
      [
        'd24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b',
        '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3'
      ],
      [
        'ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4',
        '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d'
      ],
      [
        'af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f',
        '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700'
      ],
      [
        'e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889',
        '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4'
      ],
      [
        '591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246',
        'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196'
      ],
      [
        '11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984',
        '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4'
      ],
      [
        '3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a',
        'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257'
      ],
      [
        'cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030',
        'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13'
      ],
      [
        'c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197',
        '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096'
      ],
      [
        'c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593',
        'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38'
      ],
      [
        'a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef',
        '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f'
      ],
      [
        '347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38',
        '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448'
      ],
      [
        'da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a',
        '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a'
      ],
      [
        'c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111',
        '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4'
      ],
      [
        '4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502',
        '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437'
      ],
      [
        '3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea',
        'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7'
      ],
      [
        'cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26',
        '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d'
      ],
      [
        'b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986',
        '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a'
      ],
      [
        'd4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e',
        '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54'
      ],
      [
        '48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4',
        '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77'
      ],
      [
        'dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda',
        'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517'
      ],
      [
        '6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859',
        'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10'
      ],
      [
        'e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f',
        'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125'
      ],
      [
        'eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c',
        '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e'
      ],
      [
        '13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942',
        'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1'
      ],
      [
        'ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a',
        '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2'
      ],
      [
        'b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80',
        '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423'
      ],
      [
        'ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d',
        '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8'
      ],
      [
        '8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1',
        'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758'
      ],
      [
        '52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63',
        'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375'
      ],
      [
        'e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352',
        '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d'
      ],
      [
        '7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193',
        'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec'
      ],
      [
        '5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00',
        '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0'
      ],
      [
        '32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58',
        'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c'
      ],
      [
        'e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7',
        'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4'
      ],
      [
        '8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8',
        'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f'
      ],
      [
        '4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e',
        '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649'
      ],
      [
        '3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d',
        'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826'
      ],
      [
        '674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b',
        '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5'
      ],
      [
        'd32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f',
        'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87'
      ],
      [
        '30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6',
        '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b'
      ],
      [
        'be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297',
        '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc'
      ],
      [
        '93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a',
        '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c'
      ],
      [
        'b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c',
        'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f'
      ],
      [
        'd5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52',
        '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a'
      ],
      [
        'd3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb',
        'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46'
      ],
      [
        '463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065',
        'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f'
      ],
      [
        '7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917',
        '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03'
      ],
      [
        '74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9',
        'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08'
      ],
      [
        '30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3',
        '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8'
      ],
      [
        '9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57',
        '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373'
      ],
      [
        '176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66',
        'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3'
      ],
      [
        '75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8',
        '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8'
      ],
      [
        '809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721',
        '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1'
      ],
      [
        '1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180',
        '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9'
      ]
    ]
  }
};


/***/ }),
/* 475 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var BN = __webpack_require__(12);
var HmacDRBG = __webpack_require__(476);
var elliptic = __webpack_require__(16);
var utils = elliptic.utils;
var assert = utils.assert;

var KeyPair = __webpack_require__(477);
var Signature = __webpack_require__(478);

function EC(options) {
  if (!(this instanceof EC))
    return new EC(options);

  // Shortcut `elliptic.ec(curve-name)`
  if (typeof options === 'string') {
    assert(elliptic.curves.hasOwnProperty(options), 'Unknown curve ' + options);

    options = elliptic.curves[options];
  }

  // Shortcut for `elliptic.ec(elliptic.curves.curveName)`
  if (options instanceof elliptic.curves.PresetCurve)
    options = { curve: options };

  this.curve = options.curve.curve;
  this.n = this.curve.n;
  this.nh = this.n.ushrn(1);
  this.g = this.curve.g;

  // Point on curve
  this.g = options.curve.g;
  this.g.precompute(options.curve.n.bitLength() + 1);

  // Hash for function for DRBG
  this.hash = options.hash || options.curve.hash;
}
module.exports = EC;

EC.prototype.keyPair = function keyPair(options) {
  return new KeyPair(this, options);
};

EC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {
  return KeyPair.fromPrivate(this, priv, enc);
};

EC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {
  return KeyPair.fromPublic(this, pub, enc);
};

EC.prototype.genKeyPair = function genKeyPair(options) {
  if (!options)
    options = {};

  // Instantiate Hmac_DRBG
  var drbg = new HmacDRBG({
    hash: this.hash,
    pers: options.pers,
    persEnc: options.persEnc || 'utf8',
    entropy: options.entropy || elliptic.rand(this.hash.hmacStrength),
    entropyEnc: options.entropy && options.entropyEnc || 'utf8',
    nonce: this.n.toArray()
  });

  var bytes = this.n.byteLength();
  var ns2 = this.n.sub(new BN(2));
  do {
    var priv = new BN(drbg.generate(bytes));
    if (priv.cmp(ns2) > 0)
      continue;

    priv.iaddn(1);
    return this.keyFromPrivate(priv);
  } while (true);
};

EC.prototype._truncateToN = function truncateToN(msg, truncOnly) {
  var delta = msg.byteLength() * 8 - this.n.bitLength();
  if (delta > 0)
    msg = msg.ushrn(delta);
  if (!truncOnly && msg.cmp(this.n) >= 0)
    return msg.sub(this.n);
  else
    return msg;
};

EC.prototype.sign = function sign(msg, key, enc, options) {
  if (typeof enc === 'object') {
    options = enc;
    enc = null;
  }
  if (!options)
    options = {};

  key = this.keyFromPrivate(key, enc);
  msg = this._truncateToN(new BN(msg, 16));

  // Zero-extend key to provide enough entropy
  var bytes = this.n.byteLength();
  var bkey = key.getPrivate().toArray('be', bytes);

  // Zero-extend nonce to have the same byte size as N
  var nonce = msg.toArray('be', bytes);

  // Instantiate Hmac_DRBG
  var drbg = new HmacDRBG({
    hash: this.hash,
    entropy: bkey,
    nonce: nonce,
    pers: options.pers,
    persEnc: options.persEnc || 'utf8'
  });

  // Number of bytes to generate
  var ns1 = this.n.sub(new BN(1));

  for (var iter = 0; true; iter++) {
    var k = options.k ?
        options.k(iter) :
        new BN(drbg.generate(this.n.byteLength()));
    k = this._truncateToN(k, true);
    if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)
      continue;

    var kp = this.g.mul(k);
    if (kp.isInfinity())
      continue;

    var kpX = kp.getX();
    var r = kpX.umod(this.n);
    if (r.cmpn(0) === 0)
      continue;

    var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));
    s = s.umod(this.n);
    if (s.cmpn(0) === 0)
      continue;

    var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |
                        (kpX.cmp(r) !== 0 ? 2 : 0);

    // Use complement of `s`, if it is > `n / 2`
    if (options.canonical && s.cmp(this.nh) > 0) {
      s = this.n.sub(s);
      recoveryParam ^= 1;
    }

    return new Signature({ r: r, s: s, recoveryParam: recoveryParam });
  }
};

EC.prototype.verify = function verify(msg, signature, key, enc) {
  msg = this._truncateToN(new BN(msg, 16));
  key = this.keyFromPublic(key, enc);
  signature = new Signature(signature, 'hex');

  // Perform primitive values validation
  var r = signature.r;
  var s = signature.s;
  if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0)
    return false;
  if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0)
    return false;

  // Validate signature
  var sinv = s.invm(this.n);
  var u1 = sinv.mul(msg).umod(this.n);
  var u2 = sinv.mul(r).umod(this.n);

  if (!this.curve._maxwellTrick) {
    var p = this.g.mulAdd(u1, key.getPublic(), u2);
    if (p.isInfinity())
      return false;

    return p.getX().umod(this.n).cmp(r) === 0;
  }

  // NOTE: Greg Maxwell's trick, inspired by:
  // https://git.io/vad3K

  var p = this.g.jmulAdd(u1, key.getPublic(), u2);
  if (p.isInfinity())
    return false;

  // Compare `p.x` of Jacobian point with `r`,
  // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the
  // inverse of `p.z^2`
  return p.eqXToP(r);
};

EC.prototype.recoverPubKey = function(msg, signature, j, enc) {
  assert((3 & j) === j, 'The recovery param is more than two bits');
  signature = new Signature(signature, enc);

  var n = this.n;
  var e = new BN(msg);
  var r = signature.r;
  var s = signature.s;

  // A set LSB signifies that the y-coordinate is odd
  var isYOdd = j & 1;
  var isSecondKey = j >> 1;
  if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey)
    throw new Error('Unable to find sencond key candinate');

  // 1.1. Let x = r + jn.
  if (isSecondKey)
    r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);
  else
    r = this.curve.pointFromX(r, isYOdd);

  var rInv = signature.r.invm(n);
  var s1 = n.sub(e).mul(rInv).umod(n);
  var s2 = s.mul(rInv).umod(n);

  // 1.6.1 Compute Q = r^-1 (sR -  eG)
  //               Q = r^-1 (sR + -eG)
  return this.g.mulAdd(s1, r, s2);
};

EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
  signature = new Signature(signature, enc);
  if (signature.recoveryParam !== null)
    return signature.recoveryParam;

  for (var i = 0; i < 4; i++) {
    var Qprime;
    try {
      Qprime = this.recoverPubKey(e, signature, i);
    } catch (e) {
      continue;
    }

    if (Qprime.eq(Q))
      return i;
  }
  throw new Error('Unable to find valid recovery factor');
};


/***/ }),
/* 476 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var hash = __webpack_require__(127);
var utils = __webpack_require__(188);
var assert = __webpack_require__(25);

function HmacDRBG(options) {
  if (!(this instanceof HmacDRBG))
    return new HmacDRBG(options);
  this.hash = options.hash;
  this.predResist = !!options.predResist;

  this.outLen = this.hash.outSize;
  this.minEntropy = options.minEntropy || this.hash.hmacStrength;

  this._reseed = null;
  this.reseedInterval = null;
  this.K = null;
  this.V = null;

  var entropy = utils.toArray(options.entropy, options.entropyEnc || 'hex');
  var nonce = utils.toArray(options.nonce, options.nonceEnc || 'hex');
  var pers = utils.toArray(options.pers, options.persEnc || 'hex');
  assert(entropy.length >= (this.minEntropy / 8),
         'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
  this._init(entropy, nonce, pers);
}
module.exports = HmacDRBG;

HmacDRBG.prototype._init = function init(entropy, nonce, pers) {
  var seed = entropy.concat(nonce).concat(pers);

  this.K = new Array(this.outLen / 8);
  this.V = new Array(this.outLen / 8);
  for (var i = 0; i < this.V.length; i++) {
    this.K[i] = 0x00;
    this.V[i] = 0x01;
  }

  this._update(seed);
  this._reseed = 1;
  this.reseedInterval = 0x1000000000000;  // 2^48
};

HmacDRBG.prototype._hmac = function hmac() {
  return new hash.hmac(this.hash, this.K);
};

HmacDRBG.prototype._update = function update(seed) {
  var kmac = this._hmac()
                 .update(this.V)
                 .update([ 0x00 ]);
  if (seed)
    kmac = kmac.update(seed);
  this.K = kmac.digest();
  this.V = this._hmac().update(this.V).digest();
  if (!seed)
    return;

  this.K = this._hmac()
               .update(this.V)
               .update([ 0x01 ])
               .update(seed)
               .digest();
  this.V = this._hmac().update(this.V).digest();
};

HmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {
  // Optional entropy enc
  if (typeof entropyEnc !== 'string') {
    addEnc = add;
    add = entropyEnc;
    entropyEnc = null;
  }

  entropy = utils.toArray(entropy, entropyEnc);
  add = utils.toArray(add, addEnc);

  assert(entropy.length >= (this.minEntropy / 8),
         'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');

  this._update(entropy.concat(add || []));
  this._reseed = 1;
};

HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
  if (this._reseed > this.reseedInterval)
    throw new Error('Reseed is required');

  // Optional encoding
  if (typeof enc !== 'string') {
    addEnc = add;
    add = enc;
    enc = null;
  }

  // Optional additional data
  if (add) {
    add = utils.toArray(add, addEnc || 'hex');
    this._update(add);
  }

  var temp = [];
  while (temp.length < len) {
    this.V = this._hmac().update(this.V).digest();
    temp = temp.concat(this.V);
  }

  var res = temp.slice(0, len);
  this._update(add);
  this._reseed++;
  return utils.encode(res, enc);
};


/***/ }),
/* 477 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var BN = __webpack_require__(12);
var elliptic = __webpack_require__(16);
var utils = elliptic.utils;
var assert = utils.assert;

function KeyPair(ec, options) {
  this.ec = ec;
  this.priv = null;
  this.pub = null;

  // KeyPair(ec, { priv: ..., pub: ... })
  if (options.priv)
    this._importPrivate(options.priv, options.privEnc);
  if (options.pub)
    this._importPublic(options.pub, options.pubEnc);
}
module.exports = KeyPair;

KeyPair.fromPublic = function fromPublic(ec, pub, enc) {
  if (pub instanceof KeyPair)
    return pub;

  return new KeyPair(ec, {
    pub: pub,
    pubEnc: enc
  });
};

KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {
  if (priv instanceof KeyPair)
    return priv;

  return new KeyPair(ec, {
    priv: priv,
    privEnc: enc
  });
};

KeyPair.prototype.validate = function validate() {
  var pub = this.getPublic();

  if (pub.isInfinity())
    return { result: false, reason: 'Invalid public key' };
  if (!pub.validate())
    return { result: false, reason: 'Public key is not a point' };
  if (!pub.mul(this.ec.curve.n).isInfinity())
    return { result: false, reason: 'Public key * N != O' };

  return { result: true, reason: null };
};

KeyPair.prototype.getPublic = function getPublic(compact, enc) {
  // compact is optional argument
  if (typeof compact === 'string') {
    enc = compact;
    compact = null;
  }

  if (!this.pub)
    this.pub = this.ec.g.mul(this.priv);

  if (!enc)
    return this.pub;

  return this.pub.encode(enc, compact);
};

KeyPair.prototype.getPrivate = function getPrivate(enc) {
  if (enc === 'hex')
    return this.priv.toString(16, 2);
  else
    return this.priv;
};

KeyPair.prototype._importPrivate = function _importPrivate(key, enc) {
  this.priv = new BN(key, enc || 16);

  // Ensure that the priv won't be bigger than n, otherwise we may fail
  // in fixed multiplication method
  this.priv = this.priv.umod(this.ec.curve.n);
};

KeyPair.prototype._importPublic = function _importPublic(key, enc) {
  if (key.x || key.y) {
    // Montgomery points only have an `x` coordinate.
    // Weierstrass/Edwards points on the other hand have both `x` and
    // `y` coordinates.
    if (this.ec.curve.type === 'mont') {
      assert(key.x, 'Need x coordinate');
    } else if (this.ec.curve.type === 'short' ||
               this.ec.curve.type === 'edwards') {
      assert(key.x && key.y, 'Need both x and y coordinate');
    }
    this.pub = this.ec.curve.point(key.x, key.y);
    return;
  }
  this.pub = this.ec.curve.decodePoint(key, enc);
};

// ECDH
KeyPair.prototype.derive = function derive(pub) {
  return pub.mul(this.priv).getX();
};

// ECDSA
KeyPair.prototype.sign = function sign(msg, enc, options) {
  return this.ec.sign(msg, this, enc, options);
};

KeyPair.prototype.verify = function verify(msg, signature) {
  return this.ec.verify(msg, signature, this);
};

KeyPair.prototype.inspect = function inspect() {
  return '<Key priv: ' + (this.priv && this.priv.toString(16, 2)) +
         ' pub: ' + (this.pub && this.pub.inspect()) + ' >';
};


/***/ }),
/* 478 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var BN = __webpack_require__(12);

var elliptic = __webpack_require__(16);
var utils = elliptic.utils;
var assert = utils.assert;

function Signature(options, enc) {
  if (options instanceof Signature)
    return options;

  if (this._importDER(options, enc))
    return;

  assert(options.r && options.s, 'Signature without r or s');
  this.r = new BN(options.r, 16);
  this.s = new BN(options.s, 16);
  if (options.recoveryParam === undefined)
    this.recoveryParam = null;
  else
    this.recoveryParam = options.recoveryParam;
}
module.exports = Signature;

function Position() {
  this.place = 0;
}

function getLength(buf, p) {
  var initial = buf[p.place++];
  if (!(initial & 0x80)) {
    return initial;
  }
  var octetLen = initial & 0xf;
  var val = 0;
  for (var i = 0, off = p.place; i < octetLen; i++, off++) {
    val <<= 8;
    val |= buf[off];
  }
  p.place = off;
  return val;
}

function rmPadding(buf) {
  var i = 0;
  var len = buf.length - 1;
  while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {
    i++;
  }
  if (i === 0) {
    return buf;
  }
  return buf.slice(i);
}

Signature.prototype._importDER = function _importDER(data, enc) {
  data = utils.toArray(data, enc);
  var p = new Position();
  if (data[p.place++] !== 0x30) {
    return false;
  }
  var len = getLength(data, p);
  if ((len + p.place) !== data.length) {
    return false;
  }
  if (data[p.place++] !== 0x02) {
    return false;
  }
  var rlen = getLength(data, p);
  var r = data.slice(p.place, rlen + p.place);
  p.place += rlen;
  if (data[p.place++] !== 0x02) {
    return false;
  }
  var slen = getLength(data, p);
  if (data.length !== slen + p.place) {
    return false;
  }
  var s = data.slice(p.place, slen + p.place);
  if (r[0] === 0 && (r[1] & 0x80)) {
    r = r.slice(1);
  }
  if (s[0] === 0 && (s[1] & 0x80)) {
    s = s.slice(1);
  }

  this.r = new BN(r);
  this.s = new BN(s);
  this.recoveryParam = null;

  return true;
};

function constructLength(arr, len) {
  if (len < 0x80) {
    arr.push(len);
    return;
  }
  var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);
  arr.push(octets | 0x80);
  while (--octets) {
    arr.push((len >>> (octets << 3)) & 0xff);
  }
  arr.push(len);
}

Signature.prototype.toDER = function toDER(enc) {
  var r = this.r.toArray();
  var s = this.s.toArray();

  // Pad values
  if (r[0] & 0x80)
    r = [ 0 ].concat(r);
  // Pad values
  if (s[0] & 0x80)
    s = [ 0 ].concat(s);

  r = rmPadding(r);
  s = rmPadding(s);

  while (!s[0] && !(s[1] & 0x80)) {
    s = s.slice(1);
  }
  var arr = [ 0x02 ];
  constructLength(arr, r.length);
  arr = arr.concat(r);
  arr.push(0x02);
  constructLength(arr, s.length);
  var backHalf = arr.concat(s);
  var res = [ 0x30 ];
  constructLength(res, backHalf.length);
  res = res.concat(backHalf);
  return utils.encode(res, enc);
};


/***/ }),
/* 479 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var hash = __webpack_require__(127);
var elliptic = __webpack_require__(16);
var utils = elliptic.utils;
var assert = utils.assert;
var parseBytes = utils.parseBytes;
var KeyPair = __webpack_require__(480);
var Signature = __webpack_require__(481);

function EDDSA(curve) {
  assert(curve === 'ed25519', 'only tested with ed25519 so far');

  if (!(this instanceof EDDSA))
    return new EDDSA(curve);

  var curve = elliptic.curves[curve].curve;
  this.curve = curve;
  this.g = curve.g;
  this.g.precompute(curve.n.bitLength() + 1);

  this.pointClass = curve.point().constructor;
  this.encodingLength = Math.ceil(curve.n.bitLength() / 8);
  this.hash = hash.sha512;
}

module.exports = EDDSA;

/**
* @param {Array|String} message - message bytes
* @param {Array|String|KeyPair} secret - secret bytes or a keypair
* @returns {Signature} - signature
*/
EDDSA.prototype.sign = function sign(message, secret) {
  message = parseBytes(message);
  var key = this.keyFromSecret(secret);
  var r = this.hashInt(key.messagePrefix(), message);
  var R = this.g.mul(r);
  var Rencoded = this.encodePoint(R);
  var s_ = this.hashInt(Rencoded, key.pubBytes(), message)
               .mul(key.priv());
  var S = r.add(s_).umod(this.curve.n);
  return this.makeSignature({ R: R, S: S, Rencoded: Rencoded });
};

/**
* @param {Array} message - message bytes
* @param {Array|String|Signature} sig - sig bytes
* @param {Array|String|Point|KeyPair} pub - public key
* @returns {Boolean} - true if public key matches sig of message
*/
EDDSA.prototype.verify = function verify(message, sig, pub) {
  message = parseBytes(message);
  sig = this.makeSignature(sig);
  var key = this.keyFromPublic(pub);
  var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);
  var SG = this.g.mul(sig.S());
  var RplusAh = sig.R().add(key.pub().mul(h));
  return RplusAh.eq(SG);
};

EDDSA.prototype.hashInt = function hashInt() {
  var hash = this.hash();
  for (var i = 0; i < arguments.length; i++)
    hash.update(arguments[i]);
  return utils.intFromLE(hash.digest()).umod(this.curve.n);
};

EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {
  return KeyPair.fromPublic(this, pub);
};

EDDSA.prototype.keyFromSecret = function keyFromSecret(secret) {
  return KeyPair.fromSecret(this, secret);
};

EDDSA.prototype.makeSignature = function makeSignature(sig) {
  if (sig instanceof Signature)
    return sig;
  return new Signature(this, sig);
};

/**
* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2
*
* EDDSA defines methods for encoding and decoding points and integers. These are
* helper convenience methods, that pass along to utility functions implied
* parameters.
*
*/
EDDSA.prototype.encodePoint = function encodePoint(point) {
  var enc = point.getY().toArray('le', this.encodingLength);
  enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0;
  return enc;
};

EDDSA.prototype.decodePoint = function decodePoint(bytes) {
  bytes = utils.parseBytes(bytes);

  var lastIx = bytes.length - 1;
  var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80);
  var xIsOdd = (bytes[lastIx] & 0x80) !== 0;

  var y = utils.intFromLE(normed);
  return this.curve.pointFromY(y, xIsOdd);
};

EDDSA.prototype.encodeInt = function encodeInt(num) {
  return num.toArray('le', this.encodingLength);
};

EDDSA.prototype.decodeInt = function decodeInt(bytes) {
  return utils.intFromLE(bytes);
};

EDDSA.prototype.isPoint = function isPoint(val) {
  return val instanceof this.pointClass;
};


/***/ }),
/* 480 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var elliptic = __webpack_require__(16);
var utils = elliptic.utils;
var assert = utils.assert;
var parseBytes = utils.parseBytes;
var cachedProperty = utils.cachedProperty;

/**
* @param {EDDSA} eddsa - instance
* @param {Object} params - public/private key parameters
*
* @param {Array<Byte>} [params.secret] - secret seed bytes
* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms)
* @param {Array<Byte>} [params.pub] - public key point encoded as bytes
*
*/
function KeyPair(eddsa, params) {
  this.eddsa = eddsa;
  this._secret = parseBytes(params.secret);
  if (eddsa.isPoint(params.pub))
    this._pub = params.pub;
  else
    this._pubBytes = parseBytes(params.pub);
}

KeyPair.fromPublic = function fromPublic(eddsa, pub) {
  if (pub instanceof KeyPair)
    return pub;
  return new KeyPair(eddsa, { pub: pub });
};

KeyPair.fromSecret = function fromSecret(eddsa, secret) {
  if (secret instanceof KeyPair)
    return secret;
  return new KeyPair(eddsa, { secret: secret });
};

KeyPair.prototype.secret = function secret() {
  return this._secret;
};

cachedProperty(KeyPair, 'pubBytes', function pubBytes() {
  return this.eddsa.encodePoint(this.pub());
});

cachedProperty(KeyPair, 'pub', function pub() {
  if (this._pubBytes)
    return this.eddsa.decodePoint(this._pubBytes);
  return this.eddsa.g.mul(this.priv());
});

cachedProperty(KeyPair, 'privBytes', function privBytes() {
  var eddsa = this.eddsa;
  var hash = this.hash();
  var lastIx = eddsa.encodingLength - 1;

  var a = hash.slice(0, eddsa.encodingLength);
  a[0] &= 248;
  a[lastIx] &= 127;
  a[lastIx] |= 64;

  return a;
});

cachedProperty(KeyPair, 'priv', function priv() {
  return this.eddsa.decodeInt(this.privBytes());
});

cachedProperty(KeyPair, 'hash', function hash() {
  return this.eddsa.hash().update(this.secret()).digest();
});

cachedProperty(KeyPair, 'messagePrefix', function messagePrefix() {
  return this.hash().slice(this.eddsa.encodingLength);
});

KeyPair.prototype.sign = function sign(message) {
  assert(this._secret, 'KeyPair can only verify');
  return this.eddsa.sign(message, this);
};

KeyPair.prototype.verify = function verify(message, sig) {
  return this.eddsa.verify(message, sig, this);
};

KeyPair.prototype.getSecret = function getSecret(enc) {
  assert(this._secret, 'KeyPair is public only');
  return utils.encode(this.secret(), enc);
};

KeyPair.prototype.getPublic = function getPublic(enc) {
  return utils.encode(this.pubBytes(), enc);
};

module.exports = KeyPair;


/***/ }),
/* 481 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var BN = __webpack_require__(12);
var elliptic = __webpack_require__(16);
var utils = elliptic.utils;
var assert = utils.assert;
var cachedProperty = utils.cachedProperty;
var parseBytes = utils.parseBytes;

/**
* @param {EDDSA} eddsa - eddsa instance
* @param {Array<Bytes>|Object} sig -
* @param {Array<Bytes>|Point} [sig.R] - R point as Point or bytes
* @param {Array<Bytes>|bn} [sig.S] - S scalar as bn or bytes
* @param {Array<Bytes>} [sig.Rencoded] - R point encoded
* @param {Array<Bytes>} [sig.Sencoded] - S scalar encoded
*/
function Signature(eddsa, sig) {
  this.eddsa = eddsa;

  if (typeof sig !== 'object')
    sig = parseBytes(sig);

  if (Array.isArray(sig)) {
    sig = {
      R: sig.slice(0, eddsa.encodingLength),
      S: sig.slice(eddsa.encodingLength)
    };
  }

  assert(sig.R && sig.S, 'Signature without R or S');

  if (eddsa.isPoint(sig.R))
    this._R = sig.R;
  if (sig.S instanceof BN)
    this._S = sig.S;

  this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded;
  this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded;
}

cachedProperty(Signature, 'S', function S() {
  return this.eddsa.decodeInt(this.Sencoded());
});

cachedProperty(Signature, 'R', function R() {
  return this.eddsa.decodePoint(this.Rencoded());
});

cachedProperty(Signature, 'Rencoded', function Rencoded() {
  return this.eddsa.encodePoint(this.R());
});

cachedProperty(Signature, 'Sencoded', function Sencoded() {
  return this.eddsa.encodeInt(this.S());
});

Signature.prototype.toBytes = function toBytes() {
  return this.Rencoded().concat(this.Sencoded());
};

Signature.prototype.toHex = function toHex() {
  return utils.encode(this.toBytes(), 'hex').toUpperCase();
};

module.exports = Signature;


/***/ }),
/* 482 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// from https://github.com/indutny/self-signed/blob/gh-pages/lib/asn1.js
// Fedor, you are amazing.


var asn1 = __webpack_require__(68)

exports.certificate = __webpack_require__(493)

var RSAPrivateKey = asn1.define('RSAPrivateKey', function () {
  this.seq().obj(
    this.key('version').int(),
    this.key('modulus').int(),
    this.key('publicExponent').int(),
    this.key('privateExponent').int(),
    this.key('prime1').int(),
    this.key('prime2').int(),
    this.key('exponent1').int(),
    this.key('exponent2').int(),
    this.key('coefficient').int()
  )
})
exports.RSAPrivateKey = RSAPrivateKey

var RSAPublicKey = asn1.define('RSAPublicKey', function () {
  this.seq().obj(
    this.key('modulus').int(),
    this.key('publicExponent').int()
  )
})
exports.RSAPublicKey = RSAPublicKey

var PublicKey = asn1.define('SubjectPublicKeyInfo', function () {
  this.seq().obj(
    this.key('algorithm').use(AlgorithmIdentifier),
    this.key('subjectPublicKey').bitstr()
  )
})
exports.PublicKey = PublicKey

var AlgorithmIdentifier = asn1.define('AlgorithmIdentifier', function () {
  this.seq().obj(
    this.key('algorithm').objid(),
    this.key('none').null_().optional(),
    this.key('curve').objid().optional(),
    this.key('params').seq().obj(
      this.key('p').int(),
      this.key('q').int(),
      this.key('g').int()
    ).optional()
  )
})

var PrivateKeyInfo = asn1.define('PrivateKeyInfo', function () {
  this.seq().obj(
    this.key('version').int(),
    this.key('algorithm').use(AlgorithmIdentifier),
    this.key('subjectPrivateKey').octstr()
  )
})
exports.PrivateKey = PrivateKeyInfo
var EncryptedPrivateKeyInfo = asn1.define('EncryptedPrivateKeyInfo', function () {
  this.seq().obj(
    this.key('algorithm').seq().obj(
      this.key('id').objid(),
      this.key('decrypt').seq().obj(
        this.key('kde').seq().obj(
          this.key('id').objid(),
          this.key('kdeparams').seq().obj(
            this.key('salt').octstr(),
            this.key('iters').int()
          )
        ),
        this.key('cipher').seq().obj(
          this.key('algo').objid(),
          this.key('iv').octstr()
        )
      )
    ),
    this.key('subjectPrivateKey').octstr()
  )
})

exports.EncryptedPrivateKey = EncryptedPrivateKeyInfo

var DSAPrivateKey = asn1.define('DSAPrivateKey', function () {
  this.seq().obj(
    this.key('version').int(),
    this.key('p').int(),
    this.key('q').int(),
    this.key('g').int(),
    this.key('pub_key').int(),
    this.key('priv_key').int()
  )
})
exports.DSAPrivateKey = DSAPrivateKey

exports.DSAparam = asn1.define('DSAparam', function () {
  this.int()
})

var ECPrivateKey = asn1.define('ECPrivateKey', function () {
  this.seq().obj(
    this.key('version').int(),
    this.key('privateKey').octstr(),
    this.key('parameters').optional().explicit(0).use(ECParameters),
    this.key('publicKey').optional().explicit(1).bitstr()
  )
})
exports.ECPrivateKey = ECPrivateKey

var ECParameters = asn1.define('ECParameters', function () {
  this.choice({
    namedCurve: this.objid()
  })
})

exports.signature = asn1.define('signature', function () {
  this.seq().obj(
    this.key('r').int(),
    this.key('s').int()
  )
})


/***/ }),
/* 483 */
/***/ (function(module, exports, __webpack_require__) {

var asn1 = __webpack_require__(68);
var inherits = __webpack_require__(1);

var api = exports;

api.define = function define(name, body) {
  return new Entity(name, body);
};

function Entity(name, body) {
  this.name = name;
  this.body = body;

  this.decoders = {};
  this.encoders = {};
};

Entity.prototype._createNamed = function createNamed(base) {
  var named;
  try {
    named = __webpack_require__(484).runInThisContext(
      '(function ' + this.name + '(entity) {\n' +
      '  this._initNamed(entity);\n' +
      '})'
    );
  } catch (e) {
    named = function (entity) {
      this._initNamed(entity);
    };
  }
  inherits(named, base);
  named.prototype._initNamed = function initnamed(entity) {
    base.call(this, entity);
  };

  return new named(this);
};

Entity.prototype._getDecoder = function _getDecoder(enc) {
  enc = enc || 'der';
  // Lazily create decoder
  if (!this.decoders.hasOwnProperty(enc))
    this.decoders[enc] = this._createNamed(asn1.decoders[enc]);
  return this.decoders[enc];
};

Entity.prototype.decode = function decode(data, enc, options) {
  return this._getDecoder(enc).decode(data, options);
};

Entity.prototype._getEncoder = function _getEncoder(enc) {
  enc = enc || 'der';
  // Lazily create encoder
  if (!this.encoders.hasOwnProperty(enc))
    this.encoders[enc] = this._createNamed(asn1.encoders[enc]);
  return this.encoders[enc];
};

Entity.prototype.encode = function encode(data, enc, /* internal */ reporter) {
  return this._getEncoder(enc).encode(data, reporter);
};


/***/ }),
/* 484 */
/***/ (function(module, exports, __webpack_require__) {

var indexOf = __webpack_require__(485);

var Object_keys = function (obj) {
    if (Object.keys) return Object.keys(obj)
    else {
        var res = [];
        for (var key in obj) res.push(key)
        return res;
    }
};

var forEach = function (xs, fn) {
    if (xs.forEach) return xs.forEach(fn)
    else for (var i = 0; i < xs.length; i++) {
        fn(xs[i], i, xs);
    }
};

var defineProp = (function() {
    try {
        Object.defineProperty({}, '_', {});
        return function(obj, name, value) {
            Object.defineProperty(obj, name, {
                writable: true,
                enumerable: false,
                configurable: true,
                value: value
            })
        };
    } catch(e) {
        return function(obj, name, value) {
            obj[name] = value;
        };
    }
}());

var globals = ['Array', 'Boolean', 'Date', 'Error', 'EvalError', 'Function',
'Infinity', 'JSON', 'Math', 'NaN', 'Number', 'Object', 'RangeError',
'ReferenceError', 'RegExp', 'String', 'SyntaxError', 'TypeError', 'URIError',
'decodeURI', 'decodeURIComponent', 'encodeURI', 'encodeURIComponent', 'escape',
'eval', 'isFinite', 'isNaN', 'parseFloat', 'parseInt', 'undefined', 'unescape'];

function Context() {}
Context.prototype = {};

var Script = exports.Script = function NodeScript (code) {
    if (!(this instanceof Script)) return new Script(code);
    this.code = code;
};

Script.prototype.runInContext = function (context) {
    if (!(context instanceof Context)) {
        throw new TypeError("needs a 'context' argument.");
    }
    
    var iframe = document.createElement('iframe');
    if (!iframe.style) iframe.style = {};
    iframe.style.display = 'none';
    
    document.body.appendChild(iframe);
    
    var win = iframe.contentWindow;
    var wEval = win.eval, wExecScript = win.execScript;

    if (!wEval && wExecScript) {
        // win.eval() magically appears when this is called in IE:
        wExecScript.call(win, 'null');
        wEval = win.eval;
    }
    
    forEach(Object_keys(context), function (key) {
        win[key] = context[key];
    });
    forEach(globals, function (key) {
        if (context[key]) {
            win[key] = context[key];
        }
    });
    
    var winKeys = Object_keys(win);

    var res = wEval.call(win, this.code);
    
    forEach(Object_keys(win), function (key) {
        // Avoid copying circular objects like `top` and `window` by only
        // updating existing context properties or new properties in the `win`
        // that was only introduced after the eval.
        if (key in context || indexOf(winKeys, key) === -1) {
            context[key] = win[key];
        }
    });

    forEach(globals, function (key) {
        if (!(key in context)) {
            defineProp(context, key, win[key]);
        }
    });
    
    document.body.removeChild(iframe);
    
    return res;
};

Script.prototype.runInThisContext = function () {
    return eval(this.code); // maybe...
};

Script.prototype.runInNewContext = function (context) {
    var ctx = Script.createContext(context);
    var res = this.runInContext(ctx);

    forEach(Object_keys(ctx), function (key) {
        context[key] = ctx[key];
    });

    return res;
};

forEach(Object_keys(Script.prototype), function (name) {
    exports[name] = Script[name] = function (code) {
        var s = Script(code);
        return s[name].apply(s, [].slice.call(arguments, 1));
    };
});

exports.createScript = function (code) {
    return exports.Script(code);
};

exports.createContext = Script.createContext = function (context) {
    var copy = new Context();
    if(typeof context === 'object') {
        forEach(Object_keys(context), function (key) {
            copy[key] = context[key];
        });
    }
    return copy;
};


/***/ }),
/* 485 */
/***/ (function(module, exports) {


var indexOf = [].indexOf;

module.exports = function(arr, obj){
  if (indexOf) return arr.indexOf(obj);
  for (var i = 0; i < arr.length; ++i) {
    if (arr[i] === obj) return i;
  }
  return -1;
};

/***/ }),
/* 486 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1);

function Reporter(options) {
  this._reporterState = {
    obj: null,
    path: [],
    options: options || {},
    errors: []
  };
}
exports.Reporter = Reporter;

Reporter.prototype.isError = function isError(obj) {
  return obj instanceof ReporterError;
};

Reporter.prototype.save = function save() {
  var state = this._reporterState;

  return { obj: state.obj, pathLen: state.path.length };
};

Reporter.prototype.restore = function restore(data) {
  var state = this._reporterState;

  state.obj = data.obj;
  state.path = state.path.slice(0, data.pathLen);
};

Reporter.prototype.enterKey = function enterKey(key) {
  return this._reporterState.path.push(key);
};

Reporter.prototype.exitKey = function exitKey(index) {
  var state = this._reporterState;

  state.path = state.path.slice(0, index - 1);
};

Reporter.prototype.leaveKey = function leaveKey(index, key, value) {
  var state = this._reporterState;

  this.exitKey(index);
  if (state.obj !== null)
    state.obj[key] = value;
};

Reporter.prototype.path = function path() {
  return this._reporterState.path.join('/');
};

Reporter.prototype.enterObject = function enterObject() {
  var state = this._reporterState;

  var prev = state.obj;
  state.obj = {};
  return prev;
};

Reporter.prototype.leaveObject = function leaveObject(prev) {
  var state = this._reporterState;

  var now = state.obj;
  state.obj = prev;
  return now;
};

Reporter.prototype.error = function error(msg) {
  var err;
  var state = this._reporterState;

  var inherited = msg instanceof ReporterError;
  if (inherited) {
    err = msg;
  } else {
    err = new ReporterError(state.path.map(function(elem) {
      return '[' + JSON.stringify(elem) + ']';
    }).join(''), msg.message || msg, msg.stack);
  }

  if (!state.options.partial)
    throw err;

  if (!inherited)
    state.errors.push(err);

  return err;
};

Reporter.prototype.wrapResult = function wrapResult(result) {
  var state = this._reporterState;
  if (!state.options.partial)
    return result;

  return {
    result: this.isError(result) ? null : result,
    errors: state.errors
  };
};

function ReporterError(path, msg) {
  this.path = path;
  this.rethrow(msg);
};
inherits(ReporterError, Error);

ReporterError.prototype.rethrow = function rethrow(msg) {
  this.message = msg + ' at: ' + (this.path || '(shallow)');
  if (Error.captureStackTrace)
    Error.captureStackTrace(this, ReporterError);

  if (!this.stack) {
    try {
      // IE only adds stack when thrown
      throw new Error(this.message);
    } catch (e) {
      this.stack = e.stack;
    }
  }
  return this;
};


/***/ }),
/* 487 */
/***/ (function(module, exports, __webpack_require__) {

var Reporter = __webpack_require__(69).Reporter;
var EncoderBuffer = __webpack_require__(69).EncoderBuffer;
var DecoderBuffer = __webpack_require__(69).DecoderBuffer;
var assert = __webpack_require__(25);

// Supported tags
var tags = [
  'seq', 'seqof', 'set', 'setof', 'objid', 'bool',
  'gentime', 'utctime', 'null_', 'enum', 'int', 'objDesc',
  'bitstr', 'bmpstr', 'charstr', 'genstr', 'graphstr', 'ia5str', 'iso646str',
  'numstr', 'octstr', 'printstr', 't61str', 'unistr', 'utf8str', 'videostr'
];

// Public methods list
var methods = [
  'key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice',
  'any', 'contains'
].concat(tags);

// Overrided methods list
var overrided = [
  '_peekTag', '_decodeTag', '_use',
  '_decodeStr', '_decodeObjid', '_decodeTime',
  '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList',

  '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime',
  '_encodeNull', '_encodeInt', '_encodeBool'
];

function Node(enc, parent) {
  var state = {};
  this._baseState = state;

  state.enc = enc;

  state.parent = parent || null;
  state.children = null;

  // State
  state.tag = null;
  state.args = null;
  state.reverseArgs = null;
  state.choice = null;
  state.optional = false;
  state.any = false;
  state.obj = false;
  state.use = null;
  state.useDecoder = null;
  state.key = null;
  state['default'] = null;
  state.explicit = null;
  state.implicit = null;
  state.contains = null;

  // Should create new instance on each method
  if (!state.parent) {
    state.children = [];
    this._wrap();
  }
}
module.exports = Node;

var stateProps = [
  'enc', 'parent', 'children', 'tag', 'args', 'reverseArgs', 'choice',
  'optional', 'any', 'obj', 'use', 'alteredUse', 'key', 'default', 'explicit',
  'implicit', 'contains'
];

Node.prototype.clone = function clone() {
  var state = this._baseState;
  var cstate = {};
  stateProps.forEach(function(prop) {
    cstate[prop] = state[prop];
  });
  var res = new this.constructor(cstate.parent);
  res._baseState = cstate;
  return res;
};

Node.prototype._wrap = function wrap() {
  var state = this._baseState;
  methods.forEach(function(method) {
    this[method] = function _wrappedMethod() {
      var clone = new this.constructor(this);
      state.children.push(clone);
      return clone[method].apply(clone, arguments);
    };
  }, this);
};

Node.prototype._init = function init(body) {
  var state = this._baseState;

  assert(state.parent === null);
  body.call(this);

  // Filter children
  state.children = state.children.filter(function(child) {
    return child._baseState.parent === this;
  }, this);
  assert.equal(state.children.length, 1, 'Root node can have only one child');
};

Node.prototype._useArgs = function useArgs(args) {
  var state = this._baseState;

  // Filter children and args
  var children = args.filter(function(arg) {
    return arg instanceof this.constructor;
  }, this);
  args = args.filter(function(arg) {
    return !(arg instanceof this.constructor);
  }, this);

  if (children.length !== 0) {
    assert(state.children === null);
    state.children = children;

    // Replace parent to maintain backward link
    children.forEach(function(child) {
      child._baseState.parent = this;
    }, this);
  }
  if (args.length !== 0) {
    assert(state.args === null);
    state.args = args;
    state.reverseArgs = args.map(function(arg) {
      if (typeof arg !== 'object' || arg.constructor !== Object)
        return arg;

      var res = {};
      Object.keys(arg).forEach(function(key) {
        if (key == (key | 0))
          key |= 0;
        var value = arg[key];
        res[value] = key;
      });
      return res;
    });
  }
};

//
// Overrided methods
//

overrided.forEach(function(method) {
  Node.prototype[method] = function _overrided() {
    var state = this._baseState;
    throw new Error(method + ' not implemented for encoding: ' + state.enc);
  };
});

//
// Public methods
//

tags.forEach(function(tag) {
  Node.prototype[tag] = function _tagMethod() {
    var state = this._baseState;
    var args = Array.prototype.slice.call(arguments);

    assert(state.tag === null);
    state.tag = tag;

    this._useArgs(args);

    return this;
  };
});

Node.prototype.use = function use(item) {
  assert(item);
  var state = this._baseState;

  assert(state.use === null);
  state.use = item;

  return this;
};

Node.prototype.optional = function optional() {
  var state = this._baseState;

  state.optional = true;

  return this;
};

Node.prototype.def = function def(val) {
  var state = this._baseState;

  assert(state['default'] === null);
  state['default'] = val;
  state.optional = true;

  return this;
};

Node.prototype.explicit = function explicit(num) {
  var state = this._baseState;

  assert(state.explicit === null && state.implicit === null);
  state.explicit = num;

  return this;
};

Node.prototype.implicit = function implicit(num) {
  var state = this._baseState;

  assert(state.explicit === null && state.implicit === null);
  state.implicit = num;

  return this;
};

Node.prototype.obj = function obj() {
  var state = this._baseState;
  var args = Array.prototype.slice.call(arguments);

  state.obj = true;

  if (args.length !== 0)
    this._useArgs(args);

  return this;
};

Node.prototype.key = function key(newKey) {
  var state = this._baseState;

  assert(state.key === null);
  state.key = newKey;

  return this;
};

Node.prototype.any = function any() {
  var state = this._baseState;

  state.any = true;

  return this;
};

Node.prototype.choice = function choice(obj) {
  var state = this._baseState;

  assert(state.choice === null);
  state.choice = obj;
  this._useArgs(Object.keys(obj).map(function(key) {
    return obj[key];
  }));

  return this;
};

Node.prototype.contains = function contains(item) {
  var state = this._baseState;

  assert(state.use === null);
  state.contains = item;

  return this;
};

//
// Decoding
//

Node.prototype._decode = function decode(input, options) {
  var state = this._baseState;

  // Decode root node
  if (state.parent === null)
    return input.wrapResult(state.children[0]._decode(input, options));

  var result = state['default'];
  var present = true;

  var prevKey = null;
  if (state.key !== null)
    prevKey = input.enterKey(state.key);

  // Check if tag is there
  if (state.optional) {
    var tag = null;
    if (state.explicit !== null)
      tag = state.explicit;
    else if (state.implicit !== null)
      tag = state.implicit;
    else if (state.tag !== null)
      tag = state.tag;

    if (tag === null && !state.any) {
      // Trial and Error
      var save = input.save();
      try {
        if (state.choice === null)
          this._decodeGeneric(state.tag, input, options);
        else
          this._decodeChoice(input, options);
        present = true;
      } catch (e) {
        present = false;
      }
      input.restore(save);
    } else {
      present = this._peekTag(input, tag, state.any);

      if (input.isError(present))
        return present;
    }
  }

  // Push object on stack
  var prevObj;
  if (state.obj && present)
    prevObj = input.enterObject();

  if (present) {
    // Unwrap explicit values
    if (state.explicit !== null) {
      var explicit = this._decodeTag(input, state.explicit);
      if (input.isError(explicit))
        return explicit;
      input = explicit;
    }

    var start = input.offset;

    // Unwrap implicit and normal values
    if (state.use === null && state.choice === null) {
      if (state.any)
        var save = input.save();
      var body = this._decodeTag(
        input,
        state.implicit !== null ? state.implicit : state.tag,
        state.any
      );
      if (input.isError(body))
        return body;

      if (state.any)
        result = input.raw(save);
      else
        input = body;
    }

    if (options && options.track && state.tag !== null)
      options.track(input.path(), start, input.length, 'tagged');

    if (options && options.track && state.tag !== null)
      options.track(input.path(), input.offset, input.length, 'content');

    // Select proper method for tag
    if (state.any)
      result = result;
    else if (state.choice === null)
      result = this._decodeGeneric(state.tag, input, options);
    else
      result = this._decodeChoice(input, options);

    if (input.isError(result))
      return result;

    // Decode children
    if (!state.any && state.choice === null && state.children !== null) {
      state.children.forEach(function decodeChildren(child) {
        // NOTE: We are ignoring errors here, to let parser continue with other
        // parts of encoded data
        child._decode(input, options);
      });
    }

    // Decode contained/encoded by schema, only in bit or octet strings
    if (state.contains && (state.tag === 'octstr' || state.tag === 'bitstr')) {
      var data = new DecoderBuffer(result);
      result = this._getUse(state.contains, input._reporterState.obj)
          ._decode(data, options);
    }
  }

  // Pop object
  if (state.obj && present)
    result = input.leaveObject(prevObj);

  // Set key
  if (state.key !== null && (result !== null || present === true))
    input.leaveKey(prevKey, state.key, result);
  else if (prevKey !== null)
    input.exitKey(prevKey);

  return result;
};

Node.prototype._decodeGeneric = function decodeGeneric(tag, input, options) {
  var state = this._baseState;

  if (tag === 'seq' || tag === 'set')
    return null;
  if (tag === 'seqof' || tag === 'setof')
    return this._decodeList(input, tag, state.args[0], options);
  else if (/str$/.test(tag))
    return this._decodeStr(input, tag, options);
  else if (tag === 'objid' && state.args)
    return this._decodeObjid(input, state.args[0], state.args[1], options);
  else if (tag === 'objid')
    return this._decodeObjid(input, null, null, options);
  else if (tag === 'gentime' || tag === 'utctime')
    return this._decodeTime(input, tag, options);
  else if (tag === 'null_')
    return this._decodeNull(input, options);
  else if (tag === 'bool')
    return this._decodeBool(input, options);
  else if (tag === 'objDesc')
    return this._decodeStr(input, tag, options);
  else if (tag === 'int' || tag === 'enum')
    return this._decodeInt(input, state.args && state.args[0], options);

  if (state.use !== null) {
    return this._getUse(state.use, input._reporterState.obj)
        ._decode(input, options);
  } else {
    return input.error('unknown tag: ' + tag);
  }
};

Node.prototype._getUse = function _getUse(entity, obj) {

  var state = this._baseState;
  // Create altered use decoder if implicit is set
  state.useDecoder = this._use(entity, obj);
  assert(state.useDecoder._baseState.parent === null);
  state.useDecoder = state.useDecoder._baseState.children[0];
  if (state.implicit !== state.useDecoder._baseState.implicit) {
    state.useDecoder = state.useDecoder.clone();
    state.useDecoder._baseState.implicit = state.implicit;
  }
  return state.useDecoder;
};

Node.prototype._decodeChoice = function decodeChoice(input, options) {
  var state = this._baseState;
  var result = null;
  var match = false;

  Object.keys(state.choice).some(function(key) {
    var save = input.save();
    var node = state.choice[key];
    try {
      var value = node._decode(input, options);
      if (input.isError(value))
        return false;

      result = { type: key, value: value };
      match = true;
    } catch (e) {
      input.restore(save);
      return false;
    }
    return true;
  }, this);

  if (!match)
    return input.error('Choice not matched');

  return result;
};

//
// Encoding
//

Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) {
  return new EncoderBuffer(data, this.reporter);
};

Node.prototype._encode = function encode(data, reporter, parent) {
  var state = this._baseState;
  if (state['default'] !== null && state['default'] === data)
    return;

  var result = this._encodeValue(data, reporter, parent);
  if (result === undefined)
    return;

  if (this._skipDefault(result, reporter, parent))
    return;

  return result;
};

Node.prototype._encodeValue = function encode(data, reporter, parent) {
  var state = this._baseState;

  // Decode root node
  if (state.parent === null)
    return state.children[0]._encode(data, reporter || new Reporter());

  var result = null;

  // Set reporter to share it with a child class
  this.reporter = reporter;

  // Check if data is there
  if (state.optional && data === undefined) {
    if (state['default'] !== null)
      data = state['default']
    else
      return;
  }

  // Encode children first
  var content = null;
  var primitive = false;
  if (state.any) {
    // Anything that was given is translated to buffer
    result = this._createEncoderBuffer(data);
  } else if (state.choice) {
    result = this._encodeChoice(data, reporter);
  } else if (state.contains) {
    content = this._getUse(state.contains, parent)._encode(data, reporter);
    primitive = true;
  } else if (state.children) {
    content = state.children.map(function(child) {
      if (child._baseState.tag === 'null_')
        return child._encode(null, reporter, data);

      if (child._baseState.key === null)
        return reporter.error('Child should have a key');
      var prevKey = reporter.enterKey(child._baseState.key);

      if (typeof data !== 'object')
        return reporter.error('Child expected, but input is not object');

      var res = child._encode(data[child._baseState.key], reporter, data);
      reporter.leaveKey(prevKey);

      return res;
    }, this).filter(function(child) {
      return child;
    });
    content = this._createEncoderBuffer(content);
  } else {
    if (state.tag === 'seqof' || state.tag === 'setof') {
      // TODO(indutny): this should be thrown on DSL level
      if (!(state.args && state.args.length === 1))
        return reporter.error('Too many args for : ' + state.tag);

      if (!Array.isArray(data))
        return reporter.error('seqof/setof, but data is not Array');

      var child = this.clone();
      child._baseState.implicit = null;
      content = this._createEncoderBuffer(data.map(function(item) {
        var state = this._baseState;

        return this._getUse(state.args[0], data)._encode(item, reporter);
      }, child));
    } else if (state.use !== null) {
      result = this._getUse(state.use, parent)._encode(data, reporter);
    } else {
      content = this._encodePrimitive(state.tag, data);
      primitive = true;
    }
  }

  // Encode data itself
  var result;
  if (!state.any && state.choice === null) {
    var tag = state.implicit !== null ? state.implicit : state.tag;
    var cls = state.implicit === null ? 'universal' : 'context';

    if (tag === null) {
      if (state.use === null)
        reporter.error('Tag could be omitted only for .use()');
    } else {
      if (state.use === null)
        result = this._encodeComposite(tag, primitive, cls, content);
    }
  }

  // Wrap in explicit
  if (state.explicit !== null)
    result = this._encodeComposite(state.explicit, false, 'context', result);

  return result;
};

Node.prototype._encodeChoice = function encodeChoice(data, reporter) {
  var state = this._baseState;

  var node = state.choice[data.type];
  if (!node) {
    assert(
        false,
        data.type + ' not found in ' +
            JSON.stringify(Object.keys(state.choice)));
  }
  return node._encode(data.value, reporter);
};

Node.prototype._encodePrimitive = function encodePrimitive(tag, data) {
  var state = this._baseState;

  if (/str$/.test(tag))
    return this._encodeStr(data, tag);
  else if (tag === 'objid' && state.args)
    return this._encodeObjid(data, state.reverseArgs[0], state.args[1]);
  else if (tag === 'objid')
    return this._encodeObjid(data, null, null);
  else if (tag === 'gentime' || tag === 'utctime')
    return this._encodeTime(data, tag);
  else if (tag === 'null_')
    return this._encodeNull();
  else if (tag === 'int' || tag === 'enum')
    return this._encodeInt(data, state.args && state.reverseArgs[0]);
  else if (tag === 'bool')
    return this._encodeBool(data);
  else if (tag === 'objDesc')
    return this._encodeStr(data, tag);
  else
    throw new Error('Unsupported tag: ' + tag);
};

Node.prototype._isNumstr = function isNumstr(str) {
  return /^[0-9 ]*$/.test(str);
};

Node.prototype._isPrintstr = function isPrintstr(str) {
  return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(str);
};


/***/ }),
/* 488 */
/***/ (function(module, exports, __webpack_require__) {

var constants = __webpack_require__(193);

exports.tagClass = {
  0: 'universal',
  1: 'application',
  2: 'context',
  3: 'private'
};
exports.tagClassByName = constants._reverse(exports.tagClass);

exports.tag = {
  0x00: 'end',
  0x01: 'bool',
  0x02: 'int',
  0x03: 'bitstr',
  0x04: 'octstr',
  0x05: 'null_',
  0x06: 'objid',
  0x07: 'objDesc',
  0x08: 'external',
  0x09: 'real',
  0x0a: 'enum',
  0x0b: 'embed',
  0x0c: 'utf8str',
  0x0d: 'relativeOid',
  0x10: 'seq',
  0x11: 'set',
  0x12: 'numstr',
  0x13: 'printstr',
  0x14: 't61str',
  0x15: 'videostr',
  0x16: 'ia5str',
  0x17: 'utctime',
  0x18: 'gentime',
  0x19: 'graphstr',
  0x1a: 'iso646str',
  0x1b: 'genstr',
  0x1c: 'unistr',
  0x1d: 'charstr',
  0x1e: 'bmpstr'
};
exports.tagByName = constants._reverse(exports.tag);


/***/ }),
/* 489 */
/***/ (function(module, exports, __webpack_require__) {

var decoders = exports;

decoders.der = __webpack_require__(194);
decoders.pem = __webpack_require__(490);


/***/ }),
/* 490 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1);
var Buffer = __webpack_require__(8).Buffer;

var DERDecoder = __webpack_require__(194);

function PEMDecoder(entity) {
  DERDecoder.call(this, entity);
  this.enc = 'pem';
};
inherits(PEMDecoder, DERDecoder);
module.exports = PEMDecoder;

PEMDecoder.prototype.decode = function decode(data, options) {
  var lines = data.toString().split(/[\r\n]+/g);

  var label = options.label.toUpperCase();

  var re = /^-----(BEGIN|END) ([^-]+)-----$/;
  var start = -1;
  var end = -1;
  for (var i = 0; i < lines.length; i++) {
    var match = lines[i].match(re);
    if (match === null)
      continue;

    if (match[2] !== label)
      continue;

    if (start === -1) {
      if (match[1] !== 'BEGIN')
        break;
      start = i;
    } else {
      if (match[1] !== 'END')
        break;
      end = i;
      break;
    }
  }
  if (start === -1 || end === -1)
    throw new Error('PEM section not found for: ' + label);

  var base64 = lines.slice(start + 1, end).join('');
  // Remove excessive symbols
  base64.replace(/[^a-z0-9\+\/=]+/gi, '');

  var input = new Buffer(base64, 'base64');
  return DERDecoder.prototype.decode.call(this, input, options);
};


/***/ }),
/* 491 */
/***/ (function(module, exports, __webpack_require__) {

var encoders = exports;

encoders.der = __webpack_require__(195);
encoders.pem = __webpack_require__(492);


/***/ }),
/* 492 */
/***/ (function(module, exports, __webpack_require__) {

var inherits = __webpack_require__(1);

var DEREncoder = __webpack_require__(195);

function PEMEncoder(entity) {
  DEREncoder.call(this, entity);
  this.enc = 'pem';
};
inherits(PEMEncoder, DEREncoder);
module.exports = PEMEncoder;

PEMEncoder.prototype.encode = function encode(data, options) {
  var buf = DEREncoder.prototype.encode.call(this, data);

  var p = buf.toString('base64');
  var out = [ '-----BEGIN ' + options.label + '-----' ];
  for (var i = 0; i < p.length; i += 64)
    out.push(p.slice(i, i + 64));
  out.push('-----END ' + options.label + '-----');
  return out.join('\n');
};


/***/ }),
/* 493 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
// from https://github.com/Rantanen/node-dtls/blob/25a7dc861bda38cfeac93a723500eea4f0ac2e86/Certificate.js
// thanks to @Rantanen



var asn = __webpack_require__(68)

var Time = asn.define('Time', function () {
  this.choice({
    utcTime: this.utctime(),
    generalTime: this.gentime()
  })
})

var AttributeTypeValue = asn.define('AttributeTypeValue', function () {
  this.seq().obj(
    this.key('type').objid(),
    this.key('value').any()
  )
})

var AlgorithmIdentifier = asn.define('AlgorithmIdentifier', function () {
  this.seq().obj(
    this.key('algorithm').objid(),
    this.key('parameters').optional()
  )
})

var SubjectPublicKeyInfo = asn.define('SubjectPublicKeyInfo', function () {
  this.seq().obj(
    this.key('algorithm').use(AlgorithmIdentifier),
    this.key('subjectPublicKey').bitstr()
  )
})

var RelativeDistinguishedName = asn.define('RelativeDistinguishedName', function () {
  this.setof(AttributeTypeValue)
})

var RDNSequence = asn.define('RDNSequence', function () {
  this.seqof(RelativeDistinguishedName)
})

var Name = asn.define('Name', function () {
  this.choice({
    rdnSequence: this.use(RDNSequence)
  })
})

var Validity = asn.define('Validity', function () {
  this.seq().obj(
    this.key('notBefore').use(Time),
    this.key('notAfter').use(Time)
  )
})

var Extension = asn.define('Extension', function () {
  this.seq().obj(
    this.key('extnID').objid(),
    this.key('critical').bool().def(false),
    this.key('extnValue').octstr()
  )
})

var TBSCertificate = asn.define('TBSCertificate', function () {
  this.seq().obj(
    this.key('version').explicit(0).int(),
    this.key('serialNumber').int(),
    this.key('signature').use(AlgorithmIdentifier),
    this.key('issuer').use(Name),
    this.key('validity').use(Validity),
    this.key('subject').use(Name),
    this.key('subjectPublicKeyInfo').use(SubjectPublicKeyInfo),
    this.key('issuerUniqueID').implicit(1).bitstr().optional(),
    this.key('subjectUniqueID').implicit(2).bitstr().optional(),
    this.key('extensions').explicit(3).seqof(Extension).optional()
  )
})

var X509Certificate = asn.define('X509Certificate', function () {
  this.seq().obj(
    this.key('tbsCertificate').use(TBSCertificate),
    this.key('signatureAlgorithm').use(AlgorithmIdentifier),
    this.key('signatureValue').bitstr()
  )
})

module.exports = X509Certificate


/***/ }),
/* 494 */
/***/ (function(module, exports) {

module.exports = {"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}

/***/ }),
/* 495 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {// adapted from https://github.com/apatil/pemstrip
var findProc = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m
var startRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m
var fullRegex = /^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m
var evp = __webpack_require__(87)
var ciphers = __webpack_require__(124)
module.exports = function (okey, password) {
  var key = okey.toString()
  var match = key.match(findProc)
  var decrypted
  if (!match) {
    var match2 = key.match(fullRegex)
    decrypted = new Buffer(match2[2].replace(/[\r\n]/g, ''), 'base64')
  } else {
    var suite = 'aes' + match[1]
    var iv = new Buffer(match[2], 'hex')
    var cipherText = new Buffer(match[3].replace(/[\r\n]/g, ''), 'base64')
    var cipherKey = evp(password, iv.slice(0, 8), parseInt(match[1], 10)).key
    var out = []
    var cipher = ciphers.createDecipheriv(suite, cipherKey, iv)
    out.push(cipher.update(cipherText))
    out.push(cipher.final())
    decrypted = Buffer.concat(out)
  }
  var tag = key.match(startRegex)[1]
  return {
    tag: tag,
    data: decrypted
  }
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 496 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
var BN = __webpack_require__(12)
var EC = __webpack_require__(16).ec
var parseKeys = __webpack_require__(89)
var curves = __webpack_require__(196)

function verify (sig, hash, key, signType, tag) {
  var pub = parseKeys(key)
  if (pub.type === 'ec') {
    // rsa keys can be interpreted as ecdsa ones in openssl
    if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type')
    return ecVerify(sig, hash, pub)
  } else if (pub.type === 'dsa') {
    if (signType !== 'dsa') throw new Error('wrong public key type')
    return dsaVerify(sig, hash, pub)
  } else {
    if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type')
  }
  hash = Buffer.concat([tag, hash])
  var len = pub.modulus.byteLength()
  var pad = [ 1 ]
  var padNum = 0
  while (hash.length + pad.length + 2 < len) {
    pad.push(0xff)
    padNum++
  }
  pad.push(0x00)
  var i = -1
  while (++i < hash.length) {
    pad.push(hash[i])
  }
  pad = new Buffer(pad)
  var red = BN.mont(pub.modulus)
  sig = new BN(sig).toRed(red)

  sig = sig.redPow(new BN(pub.publicExponent))
  sig = new Buffer(sig.fromRed().toArray())
  var out = padNum < 8 ? 1 : 0
  len = Math.min(sig.length, pad.length)
  if (sig.length !== pad.length) out = 1

  i = -1
  while (++i < len) out |= sig[i] ^ pad[i]
  return out === 0
}

function ecVerify (sig, hash, pub) {
  var curveId = curves[pub.data.algorithm.curve.join('.')]
  if (!curveId) throw new Error('unknown curve ' + pub.data.algorithm.curve.join('.'))

  var curve = new EC(curveId)
  var pubkey = pub.data.subjectPrivateKey.data

  return curve.verify(hash, sig, pubkey)
}

function dsaVerify (sig, hash, pub) {
  var p = pub.data.p
  var q = pub.data.q
  var g = pub.data.g
  var y = pub.data.pub_key
  var unpacked = parseKeys.signature.decode(sig, 'der')
  var s = unpacked.s
  var r = unpacked.r
  checkValue(s, q)
  checkValue(r, q)
  var montp = BN.mont(p)
  var w = s.invm(q)
  var v = g.toRed(montp)
    .redPow(new BN(hash).mul(w).mod(q))
    .fromRed()
    .mul(y.toRed(montp).redPow(r.mul(w).mod(q)).fromRed())
    .mod(p)
    .mod(q)
  return v.cmp(r) === 0
}

function checkValue (b, q) {
  if (b.cmpn(0) <= 0) throw new Error('invalid sig')
  if (b.cmp(q) >= q) throw new Error('invalid sig')
}

module.exports = verify

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 497 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var elliptic = __webpack_require__(16)
var BN = __webpack_require__(12)

module.exports = function createECDH (curve) {
  return new ECDH(curve)
}

var aliases = {
  secp256k1: {
    name: 'secp256k1',
    byteLength: 32
  },
  secp224r1: {
    name: 'p224',
    byteLength: 28
  },
  prime256v1: {
    name: 'p256',
    byteLength: 32
  },
  prime192v1: {
    name: 'p192',
    byteLength: 24
  },
  ed25519: {
    name: 'ed25519',
    byteLength: 32
  },
  secp384r1: {
    name: 'p384',
    byteLength: 48
  },
  secp521r1: {
    name: 'p521',
    byteLength: 66
  }
}

aliases.p224 = aliases.secp224r1
aliases.p256 = aliases.secp256r1 = aliases.prime256v1
aliases.p192 = aliases.secp192r1 = aliases.prime192v1
aliases.p384 = aliases.secp384r1
aliases.p521 = aliases.secp521r1

function ECDH (curve) {
  this.curveType = aliases[curve]
  if (!this.curveType) {
    this.curveType = {
      name: curve
    }
  }
  this.curve = new elliptic.ec(this.curveType.name) // eslint-disable-line new-cap
  this.keys = void 0
}

ECDH.prototype.generateKeys = function (enc, format) {
  this.keys = this.curve.genKeyPair()
  return this.getPublicKey(enc, format)
}

ECDH.prototype.computeSecret = function (other, inenc, enc) {
  inenc = inenc || 'utf8'
  if (!Buffer.isBuffer(other)) {
    other = new Buffer(other, inenc)
  }
  var otherPub = this.curve.keyFromPublic(other).getPublic()
  var out = otherPub.mul(this.keys.getPrivate()).getX()
  return formatReturnValue(out, enc, this.curveType.byteLength)
}

ECDH.prototype.getPublicKey = function (enc, format) {
  var key = this.keys.getPublic(format === 'compressed', true)
  if (format === 'hybrid') {
    if (key[key.length - 1] % 2) {
      key[0] = 7
    } else {
      key[0] = 6
    }
  }
  return formatReturnValue(key, enc)
}

ECDH.prototype.getPrivateKey = function (enc) {
  return formatReturnValue(this.keys.getPrivate(), enc)
}

ECDH.prototype.setPublicKey = function (pub, enc) {
  enc = enc || 'utf8'
  if (!Buffer.isBuffer(pub)) {
    pub = new Buffer(pub, enc)
  }
  this.keys._importPublic(pub)
  return this
}

ECDH.prototype.setPrivateKey = function (priv, enc) {
  enc = enc || 'utf8'
  if (!Buffer.isBuffer(priv)) {
    priv = new Buffer(priv, enc)
  }

  var _priv = new BN(priv)
  _priv = _priv.toString(16)
  this.keys = this.curve.genKeyPair()
  this.keys._importPrivate(_priv)
  return this
}

function formatReturnValue (bn, enc, len) {
  if (!Array.isArray(bn)) {
    bn = bn.toArray()
  }
  var buf = new Buffer(bn)
  if (len && buf.length < len) {
    var zeros = new Buffer(len - buf.length)
    zeros.fill(0)
    buf = Buffer.concat([zeros, buf])
  }
  if (!enc) {
    return buf
  } else {
    return buf.toString(enc)
  }
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 498 */
/***/ (function(module, exports, __webpack_require__) {

exports.publicEncrypt = __webpack_require__(499);
exports.privateDecrypt = __webpack_require__(500);

exports.privateEncrypt = function privateEncrypt(key, buf) {
  return exports.publicEncrypt(key, buf, true);
};

exports.publicDecrypt = function publicDecrypt(key, buf) {
  return exports.privateDecrypt(key, buf, true);
};

/***/ }),
/* 499 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var parseKeys = __webpack_require__(89);
var randomBytes = __webpack_require__(58);
var createHash = __webpack_require__(64);
var mgf = __webpack_require__(197);
var xor = __webpack_require__(198);
var bn = __webpack_require__(12);
var withPublic = __webpack_require__(199);
var crt = __webpack_require__(126);

var constants = {
  RSA_PKCS1_OAEP_PADDING: 4,
  RSA_PKCS1_PADDIN: 1,
  RSA_NO_PADDING: 3
};

module.exports = function publicEncrypt(public_key, msg, reverse) {
  var padding;
  if (public_key.padding) {
    padding = public_key.padding;
  } else if (reverse) {
    padding = 1;
  } else {
    padding = 4;
  }
  var key = parseKeys(public_key);
  var paddedMsg;
  if (padding === 4) {
    paddedMsg = oaep(key, msg);
  } else if (padding === 1) {
    paddedMsg = pkcs1(key, msg, reverse);
  } else if (padding === 3) {
    paddedMsg = new bn(msg);
    if (paddedMsg.cmp(key.modulus) >= 0) {
      throw new Error('data too long for modulus');
    }
  } else {
    throw new Error('unknown padding');
  }
  if (reverse) {
    return crt(paddedMsg, key);
  } else {
    return withPublic(paddedMsg, key);
  }
};

function oaep(key, msg){
  var k = key.modulus.byteLength();
  var mLen = msg.length;
  var iHash = createHash('sha1').update(new Buffer('')).digest();
  var hLen = iHash.length;
  var hLen2 = 2 * hLen;
  if (mLen > k - hLen2 - 2) {
    throw new Error('message too long');
  }
  var ps = new Buffer(k - mLen - hLen2 - 2);
  ps.fill(0);
  var dblen = k - hLen - 1;
  var seed = randomBytes(hLen);
  var maskedDb = xor(Buffer.concat([iHash, ps, new Buffer([1]), msg], dblen), mgf(seed, dblen));
  var maskedSeed = xor(seed, mgf(maskedDb, hLen));
  return new bn(Buffer.concat([new Buffer([0]), maskedSeed, maskedDb], k));
}
function pkcs1(key, msg, reverse){
  var mLen = msg.length;
  var k = key.modulus.byteLength();
  if (mLen > k - 11) {
    throw new Error('message too long');
  }
  var ps;
  if (reverse) {
    ps = new Buffer(k - mLen - 3);
    ps.fill(0xff);
  } else {
    ps = nonZero(k - mLen - 3);
  }
  return new bn(Buffer.concat([new Buffer([0, reverse?1:2]), ps, new Buffer([0]), msg], k));
}
function nonZero(len, crypto) {
  var out = new Buffer(len);
  var i = 0;
  var cache = randomBytes(len*2);
  var cur = 0;
  var num;
  while (i < len) {
    if (cur === cache.length) {
      cache = randomBytes(len*2);
      cur = 0;
    }
    num = cache[cur++];
    if (num) {
      out[i++] = num;
    }
  }
  return out;
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 500 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {var parseKeys = __webpack_require__(89);
var mgf = __webpack_require__(197);
var xor = __webpack_require__(198);
var bn = __webpack_require__(12);
var crt = __webpack_require__(126);
var createHash = __webpack_require__(64);
var withPublic = __webpack_require__(199);
module.exports = function privateDecrypt(private_key, enc, reverse) {
  var padding;
  if (private_key.padding) {
    padding = private_key.padding;
  } else if (reverse) {
    padding = 1;
  } else {
    padding = 4;
  }
  
  var key = parseKeys(private_key);
  var k = key.modulus.byteLength();
  if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) {
    throw new Error('decryption error');
  }
  var msg;
  if (reverse) {
    msg = withPublic(new bn(enc), key);
  } else {
    msg = crt(enc, key);
  }
  var zBuffer = new Buffer(k - msg.length);
  zBuffer.fill(0);
  msg = Buffer.concat([zBuffer, msg], k);
  if (padding === 4) {
    return oaep(key, msg);
  } else if (padding === 1) {
    return pkcs1(key, msg, reverse);
  } else if (padding === 3) {
    return msg;
  } else {
    throw new Error('unknown padding');
  }
};

function oaep(key, msg){
  var n = key.modulus;
  var k = key.modulus.byteLength();
  var mLen = msg.length;
  var iHash = createHash('sha1').update(new Buffer('')).digest();
  var hLen = iHash.length;
  var hLen2 = 2 * hLen;
  if (msg[0] !== 0) {
    throw new Error('decryption error');
  }
  var maskedSeed = msg.slice(1, hLen + 1);
  var maskedDb =  msg.slice(hLen + 1);
  var seed = xor(maskedSeed, mgf(maskedDb, hLen));
  var db = xor(maskedDb, mgf(seed, k - hLen - 1));
  if (compare(iHash, db.slice(0, hLen))) {
    throw new Error('decryption error');
  }
  var i = hLen;
  while (db[i] === 0) {
    i++;
  }
  if (db[i++] !== 1) {
    throw new Error('decryption error');
  }
  return db.slice(i);
}

function pkcs1(key, msg, reverse){
  var p1 = msg.slice(0, 2);
  var i = 2;
  var status = 0;
  while (msg[i++] !== 0) {
    if (i >= msg.length) {
      status++;
      break;
    }
  }
  var ps = msg.slice(2, i - 1);
  var p2 = msg.slice(i - 1, i);

  if ((p1.toString('hex') !== '0002' && !reverse) || (p1.toString('hex') !== '0001' && reverse)){
    status++;
  }
  if (ps.length < 8) {
    status++;
  }
  if (status) {
    throw new Error('decryption error');
  }
  return  msg.slice(i);
}
function compare(a, b){
  a = new Buffer(a);
  b = new Buffer(b);
  var dif = 0;
  var len = a.length;
  if (a.length !== b.length) {
    dif++;
    len = Math.min(a.length, b.length);
  }
  var i = -1;
  while (++i < len) {
    dif += (a[i] ^ b[i]);
  }
  return dif;
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8).Buffer))

/***/ }),
/* 501 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global, process) {

function oldBrowser () {
  throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11')
}
var safeBuffer = __webpack_require__(6)
var randombytes = __webpack_require__(58)
var Buffer = safeBuffer.Buffer
var kBufferMaxLength = safeBuffer.kMaxLength
var crypto = global.crypto || global.msCrypto
var kMaxUint32 = Math.pow(2, 32) - 1
function assertOffset (offset, length) {
  if (typeof offset !== 'number' || offset !== offset) { // eslint-disable-line no-self-compare
    throw new TypeError('offset must be a number')
  }

  if (offset > kMaxUint32 || offset < 0) {
    throw new TypeError('offset must be a uint32')
  }

  if (offset > kBufferMaxLength || offset > length) {
    throw new RangeError('offset out of range')
  }
}

function assertSize (size, offset, length) {
  if (typeof size !== 'number' || size !== size) { // eslint-disable-line no-self-compare
    throw new TypeError('size must be a number')
  }

  if (size > kMaxUint32 || size < 0) {
    throw new TypeError('size must be a uint32')
  }

  if (size + offset > length || size > kBufferMaxLength) {
    throw new RangeError('buffer too small')
  }
}
if ((crypto && crypto.getRandomValues) || !process.browser) {
  exports.randomFill = randomFill
  exports.randomFillSync = randomFillSync
} else {
  exports.randomFill = oldBrowser
  exports.randomFillSync = oldBrowser
}
function randomFill (buf, offset, size, cb) {
  if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
    throw new TypeError('"buf" argument must be a Buffer or Uint8Array')
  }

  if (typeof offset === 'function') {
    cb = offset
    offset = 0
    size = buf.length
  } else if (typeof size === 'function') {
    cb = size
    size = buf.length - offset
  } else if (typeof cb !== 'function') {
    throw new TypeError('"cb" argument must be a function')
  }
  assertOffset(offset, buf.length)
  assertSize(size, offset, buf.length)
  return actualFill(buf, offset, size, cb)
}

function actualFill (buf, offset, size, cb) {
  if (process.browser) {
    var ourBuf = buf.buffer
    var uint = new Uint8Array(ourBuf, offset, size)
    crypto.getRandomValues(uint)
    if (cb) {
      process.nextTick(function () {
        cb(null, buf)
      })
      return
    }
    return buf
  }
  if (cb) {
    randombytes(size, function (err, bytes) {
      if (err) {
        return cb(err)
      }
      bytes.copy(buf, offset)
      cb(null, buf)
    })
    return
  }
  var bytes = randombytes(size)
  bytes.copy(buf, offset)
  return buf
}
function randomFillSync (buf, offset, size) {
  if (typeof offset === 'undefined') {
    offset = 0
  }
  if (!Buffer.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
    throw new TypeError('"buf" argument must be a Buffer or Uint8Array')
  }

  assertOffset(offset, buf.length)

  if (size === undefined) size = buf.length - offset

  assertSize(size, offset, buf.length)

  return actualFill(buf, offset, size)
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15), __webpack_require__(30)))

/***/ }),
/* 502 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(503)


/***/ }),
/* 503 */
/***/ (function(module, exports, __webpack_require__) {

;(function (window) {
    var lastTimer = -1;

    var install = function (Visibility) {

        // Run callback every `interval` milliseconds if page is visible and
        // every `hiddenInterval` milliseconds if page is hidden.
        //
        //   Visibility.every(60 * 1000, 5 * 60 * 1000, function () {
        //       checkNewMails();
        //   });
        //
        // You can skip `hiddenInterval` and callback will be called only if
        // page is visible.
        //
        //   Visibility.every(1000, function () {
        //       updateCountdown();
        //   });
        //
        // It is analog of `setInterval(callback, interval)` but use visibility
        // state.
        //
        // It return timer ID, that you can use in `Visibility.stop(id)` to stop
        // timer (`clearInterval` analog).
        // Warning: timer ID is different from interval ID from `setInterval`,
        // so don’t use it in `clearInterval`.
        //
        // On change state from hidden to visible timers will be execute.
        Visibility.every = function (interval, hiddenInterval, callback) {
            Visibility._time();

            if ( !callback ) {
                callback = hiddenInterval;
                hiddenInterval = null;
            }

            lastTimer += 1;
            var number = lastTimer;

            Visibility._timers[number] = {
                visible:  interval,
                hidden:   hiddenInterval,
                callback: callback
            };
            Visibility._run(number, false);

            if ( Visibility.isSupported() ) {
                Visibility._listen();
            }
            return number;
        };

        // Stop timer from `every` method by it ID (`every` method return it).
        //
        //   slideshow = Visibility.every(5 * 1000, function () {
        //       changeSlide();
        //   });
        //   $('.stopSlideshow').click(function () {
        //       Visibility.stop(slideshow);
        //   });
        Visibility.stop = function(id) {
            if ( !Visibility._timers[id] ) {
                return false;
            }
            Visibility._stop(id);
            delete Visibility._timers[id];
            return true;
        };

        // Callbacks and intervals added by `every` method.
        Visibility._timers = { };

        // Initialize variables on page loading.
        Visibility._time = function () {
            if ( Visibility._timed ) {
                return;
            }
            Visibility._timed     = true;
            Visibility._wasHidden = Visibility.hidden();

            Visibility.change(function () {
                Visibility._stopRun();
                Visibility._wasHidden = Visibility.hidden();
            });
        };

        // Try to run timer from every method by it’s ID. It will be use
        // `interval` or `hiddenInterval` depending on visibility state.
        // If page is hidden and `hiddenInterval` is null,
        // it will not run timer.
        //
        // Argument `runNow` say, that timers must be execute now too.
        Visibility._run = function (id, runNow) {
            var interval,
                timer = Visibility._timers[id];

            if ( Visibility.hidden() ) {
                if ( null === timer.hidden ) {
                    return;
                }
                interval = timer.hidden;
            } else {
                interval = timer.visible;
            }

            var runner = function () {
                timer.last = new Date();
                timer.callback.call(window);
            }

            if ( runNow ) {
                var now  = new Date();
                var last = now - timer.last ;

                if ( interval > last ) {
                    timer.delay = setTimeout(function () {
                        timer.id = setInterval(runner, interval);
                        runner();
                    }, interval - last);
                } else {
                    timer.id = setInterval(runner, interval);
                    runner();
                }

            } else {
              timer.id = setInterval(runner, interval);
            }
        };

        // Stop timer from `every` method by it’s ID.
        Visibility._stop = function (id) {
            var timer = Visibility._timers[id];
            clearInterval(timer.id);
            clearTimeout(timer.delay);
            delete timer.id;
            delete timer.delay;
        };

        // Listener for `visibilitychange` event.
        Visibility._stopRun = function (event) {
            var isHidden  = Visibility.hidden(),
                wasHidden = Visibility._wasHidden;

            if ( (isHidden && !wasHidden) || (!isHidden && wasHidden) ) {
                for ( var i in Visibility._timers ) {
                    Visibility._stop(i);
                    Visibility._run(i, !isHidden);
                }
            }
        };

        return Visibility;
    }

    if ( typeof(module) != 'undefined' && module.exports ) {
        module.exports = install(__webpack_require__(200));
    } else {
        install(window.Visibility || __webpack_require__(200))
    }

})(window);


/***/ }),
/* 504 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {/*
 * @author Vlad Stirbu
 * @license MIT
 *
 * Copyright © 2014-2016
 */



var FsmError = __webpack_require__(505);
var stampit = __webpack_require__(506);
var _ = __webpack_require__(507);
var EventEmitter = __webpack_require__(63).EventEmitter;

var AssignFirstArgument = stampit({
  init: function init(opts) {
    Object.assign(this, opts);
  }
});

var StateMachine = stampit({
  props: {
    // can be an object or an array
    events: [],
    pseudoStates: {},
    responses: {},
    pseudoEvents: {},
    callbacks: {},
    states: {},
    final: null,
    initial: 'none',
    current: 'none'
  },
  statics: {
    Promise: global.Promise || __webpack_require__(508).Promise,
    FsmError: FsmError,
    callbackPrefix: 'on',
    noChoiceFound: 'no-choice',
    type: function type (options) {
      var Type = this.Type;
      if (options.from === options.to || _.isUndefined(options.to)) {
        return Type.NOOP;
      } else if (options.from === '*') {
        return Type.GENERAL;
      }
      return Type.INTER;
    },
    Type: {
      NOOP: 0,
      INTER: 1,
      GENERAL: 2
    },
    isConditional: function isConditional (event) {
      return _.isFunction(event.condition) && _.isArray(event.to);
    },
    pseudoEvent: function pseudoEvent (state, name) {
      return state + '--' + name;
    }
  },
  methods: {
    emit: _.noop,
    canTransition: function canTransition (options) {
      var factory = this.factory;
      var Type = factory.Type;
      switch (factory.type(options)) {
        case Type.NOOP:
          if (this.inTransition) {
            throw new factory.FsmError('Previous transition pending', options);
          }
          break;
        case Type.INTER:
          if (this.states[this.current].noopTransition >
            0 ||
            this.inTransition) {
            throw new factory.FsmError('Previous transition pending', options);
          }
          break;
        default:
      }

      return options;
    },
    can: function can (name) {
      return Boolean(this.events[name][this.current]);
    },
    cannot: function cannot (name) {
      return !this.can(name);
    },
    hasState: function hasState (state) {
      return Boolean(this.states[state]);
    },
    is: function is (state) {
      return state == this.current;
    },
    isFinal: function isFinal (state) {
      state = state || this.current;
      if (_.isArray(this.final)) {
        return _.includes(this.final, state);
      }
      return this.final === state;
    },
    isValidEvent: function isValidEvent (options) {
      if (this.cannot(options.name)) {
        throw new this.factory.FsmError('Invalid event in current state', options);
      }

      return options;
    },
    addEvents: function addEvents (events) {
      _.forEach(events, function (event) {
        this.addEvent(event);
      }.bind(this));
    },
    addEvent: function addEvent (event) {
      this.events[event.name] = this.events[event.name] || {};

      //NOTE: Add the choice pseudo-state for conditional transition
      if (this.factory.isConditional(event)) {
        return this.addConditionalEvent(event);
      }
      this.addBasicEvent(event);
    },
    addBasicEvent: function addBasicEvent (event) {
      if (_.isArray(event.to)) {
        throw new this.factory.FsmError('Ambigous transition', event);
      }

      event.from = [].concat(event.from || []);

      _.forEach(event.from, function (from) {
        this.events[event.name][from] = event.to || from;
      }.bind(this));
    },
    addConditionalEvent: function addConditionalEvent (event) {
      var pseudoState;
      var factory = this.factory;
      var callbackPrefix = factory.callbackPrefix;
      var noChoiceFound = factory.noChoiceFound;
      var pseudoEvent = factory.pseudoEvent;
      var Promise = factory.Promise;

      if (_.isArray(event.from)) {
        return _.forEach(event.from, function (from) {
          this.addConditionalEvent({
            name: event.name,
            from: from,
            to: event.to,
            condition: event.condition
          });
        }.bind(this));
      }
      pseudoState = event.from + '__' + event.name;

      this.pseudoStates[pseudoState] = event.from;

      this.addState(pseudoState);

      this.addEvent({
        name: event.name,
        from: event.from,
        to: pseudoState
      });

      this.addEvent({
        name: pseudoEvent(pseudoState, noChoiceFound),
        from: pseudoState,
        to: event.from
      });

      this.pseudoEvents[pseudoEvent(pseudoState, noChoiceFound)] = event.name;

      _.forEach(event.to, function (toState) {
        this.addEvent({
          name: pseudoEvent(pseudoState, toState),
          from: pseudoState,
          to: toState
        });

        this.pseudoEvents[pseudoEvent(pseudoState, toState)] = event.name;
      }.bind(this));

      this.callbacks[callbackPrefix + 'entered' + pseudoState] = function (options) {
        var target = this.target;

        _.defaults(options, {
          args: []
        });

        return new Promise(function (resolve) {
          resolve(event.condition(options));
        })
          .then(function (index) {
            var toState;

            if (_.isNumber(index)) {
              toState = event.to[index];
            } else if (_.includes(event.to, index)) {
              toState = index;
            }

            if (_.isUndefined(toState)) {
              return target[pseudoEvent(pseudoState, noChoiceFound)]()
                .then(function () {
                  throw new factory.FsmError('Choice index out of range', event);
                });
            } else {
              return target[pseudoEvent(pseudoState, toState)].apply(target,
                options.args);
            }
          }.bind(this));
      }.bind(this);
    },
    addState: function addState (state) {
      var states = this.states;
      state = [].concat(state || []);
      state.forEach(function (name) {
        states[name] = states[name] || {
            noopTransition: 0
          };
      });
    },
    preprocessPseudoState: function preprocessPseudoState (name, options) {
      var responses = this.responses;

      // transition to choice state in a conditional event
      Object.defineProperty(options, 'res', {
        get: function getRes () {
          return responses[name];
        },
        set: function setRes (value) {
          responses[name] = value;
        }
      });

      // reset previous results
      delete responses[name];

      return options;
    },
    preprocessPseudoEvent: function preprocessPseudoEvent (name, options) {
      // transition from choice state in a conditional event
      var pseudoEvent = this.pseudoEvents[name];
      var responses = this.responses;
      var pseudoStates = this.pseudoStates;
      var pOptions = {
        name: pseudoEvent,
        from: pseudoStates[this.current],
        to: options.to,
        args: options.args
      };

      Object.defineProperties(pOptions, {
        res: {
          get: function () {
            return responses[pseudoEvent];
          },
          set: function (val) {
            responses[pseudoEvent] = val;
          }
        }
      });

      return pOptions;
    },
    buildEvent: function buildEvent (name) {
      var callbacks = this.callbacks;
      var pseudoEvents = this.pseudoEvents;
      var pseudoStates = this.pseudoStates;
      var events = this.events;
      var Type = this.factory.Type;
      var callbackPrefix = this.factory.callbackPrefix;

      return function triggerEvent () {
        var args = _.toArray(arguments);
        var current = this.current;
        var target = this.target;
        var options = {
          name: name,
          from: current,
          to: events[name][current],
          args: args
        };
        var pOptions;
        var isPseudo = pseudoEvents[name];

        if (pseudoStates[options.to]) {
          options = this.preprocessPseudoState(name, options);
        }

        if (isPseudo) {
          pOptions = this.preprocessPseudoEvent(name, options);
        }

        return new this.factory.Promise(function (resolve) {
          resolve(options);
        })
          .then(this.isValidEvent.bind(this))
          .then(this.canTransition.bind(this))
          .then(callbacks[callbackPrefix + 'leave' + current] ? callbacks[callbackPrefix + 'leave' +
          current].bind(target, options) : _.identity)
          .then(callbacks.onleave
            ? callbacks.onleave.bind(target, options)
            : _.identity)
          .then(onleavestate.bind(this, options))
          .then(callbacks[callbackPrefix + name] ? callbacks[callbackPrefix + name].bind(target,
            options) : _.identity)
          //in the case of the transition from choice pseudostate we provide
          // the options of the original transition
          .then(callbacks[callbackPrefix + 'enter' + events[name][current]]
            ? callbacks[callbackPrefix + 'enter' + events[name][current]].bind(target,
            isPseudo ? pOptions : options)
            : _.identity)
          .then(callbacks.onenter ? callbacks.onenter.bind(target,
            isPseudo ? pOptions : options) : _.identity)
          .then(onenterstate.bind(this, options))
          .then(callbacks[callbackPrefix + 'entered' + events[name][current]]
            ? callbacks[callbackPrefix + 'entered' + events[name][current]].bind(target,
            isPseudo ? pOptions : options)
            : _.identity)
          .then(callbacks.onentered ? callbacks.onentered.bind(target,
            isPseudo ? pOptions : options) : _.identity)
          .then(returnValue.bind(this, options))
          .catch(revert.bind(this));

        function returnValue (options) {
          return options.res || options;
        }

        function onleavestate (options) {
          switch (this.factory.type(options)) {
            case Type.NOOP:
              this.states[this.current].noopTransition += 1;
              break;
            default:
              this.inTransition = true;
          }

          return options;
        }

        function onenterstate (options) {
          switch (this.factory.type(options)) {
            case Type.NOOP:
              this.states[this.current].noopTransition -= 1;
              break;
            default:
              this.inTransition = false;
              this.current = options.to;
              this.emit('state', this.current);
          }

          return options;
        }

        //NOTE: Internal error handling stub
        function revert (err) {
          switch (this.factory.type(options)) {
            case Type.INTER:
              this.inTransition = false;
              break;
            case Type.NOOP:
              if (this.states[this.current].noopTransition > 0) {
                this.states[this.current].noopTransition -= 1;
              }
              break;
            default:
          }
          throw err;
        }
      }.bind(this);
    },
    initTarget: function initTarget(target) {
      var mixin;

      if (!_.isObject(target)) {
        target = new EventEmitter();
      }

      if (_.isFunction(target.emit)) {
        this.emit = function emit () {
          return target.emit.apply(target, arguments);
        };
      }

      mixin = _.mapValues(this.events, function (event, name) {
        return this.buildEvent(name);
      }.bind(this));

      _.assign(target, mixin, {
        can: this.can.bind(this),
        cannot: this.cannot.bind(this),
        is: this.is.bind(this),
        hasState: this.hasState.bind(this),
        isFinal: this.isFinal.bind(this)
      });

      Object.defineProperty(target, 'current', {
        get: function getCurrent () {
          return this.current;
        }.bind(this)
      });

      this.target = target;

      return target;
    }
  },
  init: function init (opts, context) {
    this.factory = context.stamp;

    var events = this.events;
    this.events = {};
    _.forEach(events, function (event, name) {
      if (_.isString(name)) {
        event.name = name;
      }

      this.addEvent(event);

      //NOTE: Add states
      this.addState(event.from);
      this.addState(event.to);
    }.bind(this));

    this.current = this.initial;
    // return this.initTarget(_.first(context.args));
    return this.initTarget(context.args[1]);
  }
});

StateMachine = AssignFirstArgument.compose(StateMachine);

module.exports = StateMachine;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)))

/***/ }),
/* 505 */
/***/ (function(module, exports) {

module.exports = FsmError;

function FsmError(message, options) {
  Error.captureStackTrace(this, this.constructor);
  this.name = 'FsmError';
  this.message = message;
  this.trigger = options.name;
  this.current = options.from;
}

FsmError.prototype = Object.create(Error.prototype);
FsmError.prototype.constructor = FsmError;


/***/ }),
/* 506 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, '__esModule', { value: true });

/**
 * The 'src' argument plays the command role.
 * The returned values is always of the same type as the 'src'.
 * @param dst
 * @param src
 * @returns {*}
 */
function mergeOne(dst, src) {
  if (src === undefined) { return dst; }

  // According to specification arrays must be concatenated.
  // Also, the '.concat' creates a new array instance. Overrides the 'dst'.
  if (isArray(src)) { return (isArray(dst) ? dst : []).concat(src); }

  // Now deal with non plain 'src' object. 'src' overrides 'dst'
  // Note that functions are also assigned! We do not deep merge functions.
  if (!isPlainObject(src)) { return src; }

  // See if 'dst' is allowed to be mutated. If not - it's overridden with a new plain object.
  var returnValue = isObject(dst) ? dst : {};

  var keys = Object.keys(src);
  for (var i = 0; i < keys.length; i += 1) {
    var key = keys[i];

    var srcValue = src[key];
    // Do not merge properties with the 'undefined' value.
    if (srcValue !== undefined) {
      var dstValue = returnValue[key];
      // Recursive calls to mergeOne() must allow only plain objects or arrays in dst
      var newDst = isPlainObject(dstValue) || isArray(srcValue) ? dstValue : {};

      // deep merge each property. Recursion!
      returnValue[key] = mergeOne(newDst, srcValue);
    }
  }

  return returnValue;
}

var merge = function (dst) {
  var srcs = [], len = arguments.length - 1;
  while ( len-- > 0 ) srcs[ len ] = arguments[ len + 1 ];

  return srcs.reduce(mergeOne, dst);
};

function isFunction(obj) {
  return typeof obj === 'function';
}

function isObject(obj) {
  var type = typeof obj;
  return !!obj && (type === 'object' || type === 'function');
}

var assign = Object.assign || function assign(to) {
  var args = arguments;
  for (var s = 1; s < args.length; s += 1) {
    var from = args[s];
    if (from) {
      var keys = Object.keys(from);
      for (var i = 0; i < keys.length; i += 1) {
        var key = keys[i];
        to[key] = from[key];
      }
    }
  }

  return to;
};

var isArray = Array.isArray;

function isPlainObject(value) {
  return !!value && typeof value === 'object' &&
    Object.getPrototypeOf(value) === Object.prototype;
}


var concat = Array.prototype.concat;
function extractFunctions() {
  var fns = concat.apply([], arguments).filter(isFunction);
  return fns.length === 0 ? undefined : fns;
}

function concatAssignFunctions(dstObject, srcArray, propName) {
  if (!isArray(srcArray)) { return; }

  var length = srcArray.length;
  var dstArray = dstObject[propName] || [];
  dstObject[propName] = dstArray;
  for (var i = 0; i < length; i += 1) {
    var fn = srcArray[i];
    if (isFunction(fn) && dstArray.indexOf(fn) < 0) {
      dstArray.push(fn);
    }
  }
}


function combineProperties(dstObject, srcObject, propName, action) {
  if (!isObject(srcObject[propName])) { return; }
  if (!isObject(dstObject[propName])) { dstObject[propName] = {}; }
  action(dstObject[propName], srcObject[propName]);
}

function deepMergeAssign(dstObject, srcObject, propName) {
  combineProperties(dstObject, srcObject, propName, merge);
}
function mergeAssign(dstObject, srcObject, propName) {
  combineProperties(dstObject, srcObject, propName, assign);
}

/**
 * Converts stampit extended descriptor to a standard one.
 * @param [methods]
 * @param [properties]
 * @param [props]
 * @param [refs]
 * @param [initializers]
 * @param [init]
 * @param [deepProperties]
 * @param [deepProps]
 * @param [propertyDescriptors]
 * @param [staticProperties]
 * @param [statics]
 * @param [staticDeepProperties]
 * @param [deepStatics]
 * @param [staticPropertyDescriptors]
 * @param [configuration]
 * @param [conf]
 * @param [deepConfiguration]
 * @param [deepConf]
 * @param [composers]
 * @returns {Descriptor}
 */
var standardiseDescriptor = function (ref) {
  if ( ref === void 0 ) ref = {};
  var methods = ref.methods;
  var properties = ref.properties;
  var props = ref.props;
  var refs = ref.refs;
  var initializers = ref.initializers;
  var init = ref.init;
  var composers = ref.composers;
  var deepProperties = ref.deepProperties;
  var deepProps = ref.deepProps;
  var propertyDescriptors = ref.propertyDescriptors;
  var staticProperties = ref.staticProperties;
  var statics = ref.statics;
  var staticDeepProperties = ref.staticDeepProperties;
  var deepStatics = ref.deepStatics;
  var staticPropertyDescriptors = ref.staticPropertyDescriptors;
  var configuration = ref.configuration;
  var conf = ref.conf;
  var deepConfiguration = ref.deepConfiguration;
  var deepConf = ref.deepConf;

  var p = isObject(props) || isObject(refs) || isObject(properties) ?
    assign({}, props, refs, properties) : undefined;

  var dp = isObject(deepProps) ? merge({}, deepProps) : undefined;
  dp = isObject(deepProperties) ? merge(dp, deepProperties) : dp;

  var sp = isObject(statics) || isObject(staticProperties) ?
    assign({}, statics, staticProperties) : undefined;

  var dsp = isObject(deepStatics) ? merge({}, deepStatics) : undefined;
  dsp = isObject(staticDeepProperties) ? merge(dsp, staticDeepProperties) : dsp;

  var c = isObject(conf) || isObject(configuration) ?
    assign({}, conf, configuration) : undefined;

  var dc = isObject(deepConf) ? merge({}, deepConf) : undefined;
  dc = isObject(deepConfiguration) ? merge(dc, deepConfiguration) : dc;

  var ii = extractFunctions(init, initializers);

  var composerFunctions = extractFunctions(composers);
  if (composerFunctions) {
    dc = dc || {};
    concatAssignFunctions(dc, composerFunctions, 'composers');
  }

  var descriptor = {};
  if (methods) { descriptor.methods = methods; }
  if (p) { descriptor.properties = p; }
  if (ii) { descriptor.initializers = ii; }
  if (dp) { descriptor.deepProperties = dp; }
  if (sp) { descriptor.staticProperties = sp; }
  if (methods) { descriptor.methods = methods; }
  if (dsp) { descriptor.staticDeepProperties = dsp; }
  if (propertyDescriptors) { descriptor.propertyDescriptors = propertyDescriptors; }
  if (staticPropertyDescriptors) { descriptor.staticPropertyDescriptors = staticPropertyDescriptors; }
  if (c) { descriptor.configuration = c; }
  if (dc) { descriptor.deepConfiguration = dc; }

  return descriptor;
};

/**
 * Creates new factory instance.
 * @param {Descriptor} descriptor The information about the object the factory will be creating.
 * @returns {Function} The new factory function.
 */
function createFactory(descriptor) {
  return function Stamp(options) {
    var args = [], len = arguments.length - 1;
    while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];

    // Next line was optimized for most JS VMs. Please, be careful here!
    var obj = Object.create(descriptor.methods || null);

    merge(obj, descriptor.deepProperties);
    assign(obj, descriptor.properties);
    Object.defineProperties(obj, descriptor.propertyDescriptors || {});

    if (!descriptor.initializers || descriptor.initializers.length === 0) { return obj; }

    if (options === undefined) { options = {}; }
    var inits = descriptor.initializers;
    var length = inits.length;
    for (var i = 0; i < length; i += 1) {
      var initializer = inits[i];
      if (isFunction(initializer)) {
        var returnedValue = initializer.call(obj, options,
          {instance: obj, stamp: Stamp, args: [options].concat(args)});
        obj = returnedValue === undefined ? obj : returnedValue;
      }
    }

    return obj;
  };
}

/**
 * Returns a new stamp given a descriptor and a compose function implementation.
 * @param {Descriptor} [descriptor={}] The information about the object the stamp will be creating.
 * @param {Compose} composeFunction The "compose" function implementation.
 * @returns {Stamp}
 */
function createStamp(descriptor, composeFunction) {
  var Stamp = createFactory(descriptor);

  merge(Stamp, descriptor.staticDeepProperties);
  assign(Stamp, descriptor.staticProperties);
  Object.defineProperties(Stamp, descriptor.staticPropertyDescriptors || {});

  var composeImplementation = isFunction(Stamp.compose) ? Stamp.compose : composeFunction;
  Stamp.compose = function _compose() {
    var args = [], len = arguments.length;
    while ( len-- ) args[ len ] = arguments[ len ];

    return composeImplementation.apply(this, args);
  };
  assign(Stamp.compose, descriptor);

  return Stamp;
}

/**
 * Mutates the dstDescriptor by merging the srcComposable data into it.
 * @param {Descriptor} dstDescriptor The descriptor object to merge into.
 * @param {Composable} [srcComposable] The composable
 * (either descriptor or stamp) to merge data form.
 * @returns {Descriptor} Returns the dstDescriptor argument.
 */
function mergeComposable(dstDescriptor, srcComposable) {
  var srcDescriptor = (srcComposable && srcComposable.compose) || srcComposable;
  if (!isObject(srcDescriptor)) { return dstDescriptor; }

  mergeAssign(dstDescriptor, srcDescriptor, 'methods');
  mergeAssign(dstDescriptor, srcDescriptor, 'properties');
  deepMergeAssign(dstDescriptor, srcDescriptor, 'deepProperties');
  mergeAssign(dstDescriptor, srcDescriptor, 'propertyDescriptors');
  mergeAssign(dstDescriptor, srcDescriptor, 'staticProperties');
  deepMergeAssign(dstDescriptor, srcDescriptor, 'staticDeepProperties');
  mergeAssign(dstDescriptor, srcDescriptor, 'staticPropertyDescriptors');
  mergeAssign(dstDescriptor, srcDescriptor, 'configuration');
  deepMergeAssign(dstDescriptor, srcDescriptor, 'deepConfiguration');
  concatAssignFunctions(dstDescriptor, srcDescriptor.initializers, 'initializers');

  return dstDescriptor;
}

/**
 * Given the list of composables (stamp descriptors and stamps) returns
 * a new stamp (composable factory function).
 * @typedef {Function} Compose
 * @param {...(Composable)} [composables] The list of composables.
 * @returns {Stamp} A new stamp (aka composable factory function)
 */
function compose() {
  var composables = [], len = arguments.length;
  while ( len-- ) composables[ len ] = arguments[ len ];

  var descriptor = [this]
    .concat(composables)
    .filter(isObject)
    .reduce(mergeComposable, {});
  return createStamp(descriptor, compose);
}


/**
 * The Stamp Descriptor
 * @typedef {Function|Object} Descriptor
 * @returns {Stamp} A new stamp based on this Stamp
 * @property {Object} [methods] Methods or other data used as object instances' prototype
 * @property {Array<Function>} [initializers] List of initializers called for each object instance
 * @property {Object} [properties] Shallow assigned properties of object instances
 * @property {Object} [deepProperties] Deeply merged properties of object instances
 * @property {Object} [staticProperties] Shallow assigned properties of Stamps
 * @property {Object} [staticDeepProperties] Deeply merged properties of Stamps
 * @property {Object} [configuration] Shallow assigned properties of Stamp arbitrary metadata
 * @property {Object} [deepConfiguration] Deeply merged properties of Stamp arbitrary metadata
 * @property {Object} [propertyDescriptors] ES5 Property Descriptors applied to object instances
 * @property {Object} [staticPropertyDescriptors] ES5 Property Descriptors applied to Stamps
 */

/**
 * The Stamp factory function
 * @typedef {Function} Stamp
 * @returns {*} Instantiated object
 * @property {Descriptor} compose - The Stamp descriptor and composition function
 */

/**
 * A composable object - stamp or descriptor
 * @typedef {Stamp|Descriptor} Composable
 */

/**
 * Returns true if argument is a stamp.
 * @param {*} obj
 * @returns {Boolean}
 */
function isStamp(obj) {
  return isFunction(obj) && isFunction(obj.compose);
}

function createUtilityFunction(propName, action) {
  return function composeUtil() {
    var i = arguments.length, argsArray = Array(i);
    while ( i-- ) argsArray[i] = arguments[i];

    return ((this && this.compose) || stampit).call(this, ( obj = {}, obj[propName] = action.apply(void 0, [ {} ].concat( argsArray )), obj ));
    var obj;
  };
}

var methods = createUtilityFunction('methods', assign);

var properties = createUtilityFunction('properties', assign);
function initializers() {
  var args = [], len = arguments.length;
  while ( len-- ) args[ len ] = arguments[ len ];

  return ((this && this.compose) || stampit).call(this, {
    initializers: extractFunctions.apply(void 0, args)
  });
}
function composers() {
  var args = [], len = arguments.length;
  while ( len-- ) args[ len ] = arguments[ len ];

  return ((this && this.compose) || stampit).call(this, {
    composers: extractFunctions.apply(void 0, args)
  });
}

var deepProperties = createUtilityFunction('deepProperties', merge);
var staticProperties = createUtilityFunction('staticProperties', assign);
var staticDeepProperties = createUtilityFunction('staticDeepProperties', merge);
var configuration = createUtilityFunction('configuration', assign);
var deepConfiguration = createUtilityFunction('deepConfiguration', merge);
var propertyDescriptors = createUtilityFunction('propertyDescriptors', assign);

var staticPropertyDescriptors = createUtilityFunction('staticPropertyDescriptors', assign);

var allUtilities = {
  methods: methods,

  properties: properties,
  refs: properties,
  props: properties,

  initializers: initializers,
  init: initializers,

  composers: composers,

  deepProperties: deepProperties,
  deepProps: deepProperties,

  staticProperties: staticProperties,
  statics: staticProperties,

  staticDeepProperties: staticDeepProperties,
  deepStatics: staticDeepProperties,

  configuration: configuration,
  conf: configuration,

  deepConfiguration: deepConfiguration,
  deepConf: deepConfiguration,

  propertyDescriptors: propertyDescriptors,

  staticPropertyDescriptors: staticPropertyDescriptors
};

/**
 * Infected stamp. Used as a storage of the infection metadata
 * @type {Function}
 * @return {Stamp}
 */
var baseStampit = compose(
  {staticProperties: allUtilities},
  {
    staticProperties: {
      create: function create() {
        var args = [], len = arguments.length;
        while ( len-- ) args[ len ] = arguments[ len ];

        return this.apply(void 0, args);
      },
      compose: stampit // infecting
    }
  }
);

/**
 * Infected compose
 * @param {...(Composable)} [args] The list of composables.
 * @return {Stamp}
 */
function stampit() {
  var args = [], len = arguments.length;
  while ( len-- ) args[ len ] = arguments[ len ];

  var composables = args.filter(isObject)
    .map(function (arg) { return isStamp(arg) ? arg : standardiseDescriptor(arg); });

  // Calling the standard pure compose function here.
  var stamp = compose.apply(this || baseStampit, composables);

  var composerFunctions = stamp.compose.deepConfiguration &&
    stamp.compose.deepConfiguration.composers;
  if (isArray(composerFunctions) && composerFunctions.length > 0) {
    var uniqueComposers = [];
    for (var i = 0; i < composerFunctions.length; i += 1) {
      var composer = composerFunctions[i];
      if (isFunction(composer) && uniqueComposers.indexOf(composer) < 0) {
        uniqueComposers.push(composer);
      }
    }
    stamp.compose.deepConfiguration.composers = uniqueComposers;

    if (isStamp(this)) { composables.unshift(this); }
    for (var i$1 = 0; i$1 < uniqueComposers.length; i$1 += 1) {
      var composer$1 = uniqueComposers[i$1];
      var returnedValue = composer$1({stamp: stamp, composables: composables});
      stamp = isStamp(returnedValue) ? returnedValue : stamp;
    }
  }

  return stamp;
}

var exportedCompose = stampit.bind(); // bind to 'undefined'
stampit.compose = exportedCompose;

// Setting up the shortcut functions
var stampit$1 = assign(stampit, allUtilities);

exports.methods = methods;
exports.properties = properties;
exports.refs = properties;
exports.props = properties;
exports.initializers = initializers;
exports.init = initializers;
exports.composers = composers;
exports.deepProperties = deepProperties;
exports.deepProps = deepProperties;
exports.staticProperties = staticProperties;
exports.statics = staticProperties;
exports.staticDeepProperties = staticDeepProperties;
exports.deepStatics = staticDeepProperties;
exports.configuration = configuration;
exports.conf = configuration;
exports.deepConfiguration = deepConfiguration;
exports.deepConf = deepConfiguration;
exports.propertyDescriptors = propertyDescriptors;
exports.staticPropertyDescriptors = staticPropertyDescriptors;
exports.compose = exportedCompose;
exports['default'] = stampit$1;
module.exports = exports['default'];
//# sourceMappingURL=stampit.full.js.map


/***/ }),
/* 507 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright JS Foundation and other contributors <https://js.foundation/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */
;(function() {

  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  var undefined;

  /** Used as the semantic version number. */
  var VERSION = '4.17.10';

  /** Used as the size to enable large array optimizations. */
  var LARGE_ARRAY_SIZE = 200;

  /** Error message constants. */
  var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
      FUNC_ERROR_TEXT = 'Expected a function';

  /** Used to stand-in for `undefined` hash values. */
  var HASH_UNDEFINED = '__lodash_hash_undefined__';

  /** Used as the maximum memoize cache size. */
  var MAX_MEMOIZE_SIZE = 500;

  /** Used as the internal argument placeholder. */
  var PLACEHOLDER = '__lodash_placeholder__';

  /** Used to compose bitmasks for cloning. */
  var CLONE_DEEP_FLAG = 1,
      CLONE_FLAT_FLAG = 2,
      CLONE_SYMBOLS_FLAG = 4;

  /** Used to compose bitmasks for value comparisons. */
  var COMPARE_PARTIAL_FLAG = 1,
      COMPARE_UNORDERED_FLAG = 2;

  /** Used to compose bitmasks for function metadata. */
  var WRAP_BIND_FLAG = 1,
      WRAP_BIND_KEY_FLAG = 2,
      WRAP_CURRY_BOUND_FLAG = 4,
      WRAP_CURRY_FLAG = 8,
      WRAP_CURRY_RIGHT_FLAG = 16,
      WRAP_PARTIAL_FLAG = 32,
      WRAP_PARTIAL_RIGHT_FLAG = 64,
      WRAP_ARY_FLAG = 128,
      WRAP_REARG_FLAG = 256,
      WRAP_FLIP_FLAG = 512;

  /** Used as default options for `_.truncate`. */
  var DEFAULT_TRUNC_LENGTH = 30,
      DEFAULT_TRUNC_OMISSION = '...';

  /** Used to detect hot functions by number of calls within a span of milliseconds. */
  var HOT_COUNT = 800,
      HOT_SPAN = 16;

  /** Used to indicate the type of lazy iteratees. */
  var LAZY_FILTER_FLAG = 1,
      LAZY_MAP_FLAG = 2,
      LAZY_WHILE_FLAG = 3;

  /** Used as references for various `Number` constants. */
  var INFINITY = 1 / 0,
      MAX_SAFE_INTEGER = 9007199254740991,
      MAX_INTEGER = 1.7976931348623157e+308,
      NAN = 0 / 0;

  /** Used as references for the maximum length and index of an array. */
  var MAX_ARRAY_LENGTH = 4294967295,
      MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
      HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;

  /** Used to associate wrap methods with their bit flags. */
  var wrapFlags = [
    ['ary', WRAP_ARY_FLAG],
    ['bind', WRAP_BIND_FLAG],
    ['bindKey', WRAP_BIND_KEY_FLAG],
    ['curry', WRAP_CURRY_FLAG],
    ['curryRight', WRAP_CURRY_RIGHT_FLAG],
    ['flip', WRAP_FLIP_FLAG],
    ['partial', WRAP_PARTIAL_FLAG],
    ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
    ['rearg', WRAP_REARG_FLAG]
  ];

  /** `Object#toString` result references. */
  var argsTag = '[object Arguments]',
      arrayTag = '[object Array]',
      asyncTag = '[object AsyncFunction]',
      boolTag = '[object Boolean]',
      dateTag = '[object Date]',
      domExcTag = '[object DOMException]',
      errorTag = '[object Error]',
      funcTag = '[object Function]',
      genTag = '[object GeneratorFunction]',
      mapTag = '[object Map]',
      numberTag = '[object Number]',
      nullTag = '[object Null]',
      objectTag = '[object Object]',
      promiseTag = '[object Promise]',
      proxyTag = '[object Proxy]',
      regexpTag = '[object RegExp]',
      setTag = '[object Set]',
      stringTag = '[object String]',
      symbolTag = '[object Symbol]',
      undefinedTag = '[object Undefined]',
      weakMapTag = '[object WeakMap]',
      weakSetTag = '[object WeakSet]';

  var arrayBufferTag = '[object ArrayBuffer]',
      dataViewTag = '[object DataView]',
      float32Tag = '[object Float32Array]',
      float64Tag = '[object Float64Array]',
      int8Tag = '[object Int8Array]',
      int16Tag = '[object Int16Array]',
      int32Tag = '[object Int32Array]',
      uint8Tag = '[object Uint8Array]',
      uint8ClampedTag = '[object Uint8ClampedArray]',
      uint16Tag = '[object Uint16Array]',
      uint32Tag = '[object Uint32Array]';

  /** Used to match empty string literals in compiled template source. */
  var reEmptyStringLeading = /\b__p \+= '';/g,
      reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
      reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;

  /** Used to match HTML entities and HTML characters. */
  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
      reUnescapedHtml = /[&<>"']/g,
      reHasEscapedHtml = RegExp(reEscapedHtml.source),
      reHasUnescapedHtml = RegExp(reUnescapedHtml.source);

  /** Used to match template delimiters. */
  var reEscape = /<%-([\s\S]+?)%>/g,
      reEvaluate = /<%([\s\S]+?)%>/g,
      reInterpolate = /<%=([\s\S]+?)%>/g;

  /** Used to match property names within property paths. */
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
      reIsPlainProp = /^\w*$/,
      rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

  /**
   * Used to match `RegExp`
   * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
   */
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
      reHasRegExpChar = RegExp(reRegExpChar.source);

  /** Used to match leading and trailing whitespace. */
  var reTrim = /^\s+|\s+$/g,
      reTrimStart = /^\s+/,
      reTrimEnd = /\s+$/;

  /** Used to match wrap detail comments. */
  var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
      reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
      reSplitDetails = /,? & /;

  /** Used to match words composed of alphanumeric characters. */
  var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;

  /** Used to match backslashes in property paths. */
  var reEscapeChar = /\\(\\)?/g;

  /**
   * Used to match
   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
   */
  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;

  /** Used to match `RegExp` flags from their coerced string values. */
  var reFlags = /\w*$/;

  /** Used to detect bad signed hexadecimal string values. */
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

  /** Used to detect binary string values. */
  var reIsBinary = /^0b[01]+$/i;

  /** Used to detect host constructors (Safari). */
  var reIsHostCtor = /^\[object .+?Constructor\]$/;

  /** Used to detect octal string values. */
  var reIsOctal = /^0o[0-7]+$/i;

  /** Used to detect unsigned integer values. */
  var reIsUint = /^(?:0|[1-9]\d*)$/;

  /** Used to match Latin Unicode letters (excluding mathematical operators). */
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;

  /** Used to ensure capturing order of template delimiters. */
  var reNoMatch = /($^)/;

  /** Used to match unescaped characters in compiled string literals. */
  var reUnescapedString = /['\n\r\u2028\u2029\\]/g;

  /** Used to compose unicode character classes. */
  var rsAstralRange = '\\ud800-\\udfff',
      rsComboMarksRange = '\\u0300-\\u036f',
      reComboHalfMarksRange = '\\ufe20-\\ufe2f',
      rsComboSymbolsRange = '\\u20d0-\\u20ff',
      rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
      rsDingbatRange = '\\u2700-\\u27bf',
      rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
      rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
      rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
      rsPunctuationRange = '\\u2000-\\u206f',
      rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
      rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
      rsVarRange = '\\ufe0e\\ufe0f',
      rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;

  /** Used to compose unicode capture groups. */
  var rsApos = "['\u2019]",
      rsAstral = '[' + rsAstralRange + ']',
      rsBreak = '[' + rsBreakRange + ']',
      rsCombo = '[' + rsComboRange + ']',
      rsDigits = '\\d+',
      rsDingbat = '[' + rsDingbatRange + ']',
      rsLower = '[' + rsLowerRange + ']',
      rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
      rsFitz = '\\ud83c[\\udffb-\\udfff]',
      rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
      rsNonAstral = '[^' + rsAstralRange + ']',
      rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
      rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
      rsUpper = '[' + rsUpperRange + ']',
      rsZWJ = '\\u200d';

  /** Used to compose unicode regexes. */
  var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
      rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
      rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
      rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
      reOptMod = rsModifier + '?',
      rsOptVar = '[' + rsVarRange + ']?',
      rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
      rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
      rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
      rsSeq = rsOptVar + reOptMod + rsOptJoin,
      rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
      rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';

  /** Used to match apostrophes. */
  var reApos = RegExp(rsApos, 'g');

  /**
   * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
   * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
   */
  var reComboMark = RegExp(rsCombo, 'g');

  /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');

  /** Used to match complex or compound words. */
  var reUnicodeWord = RegExp([
    rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
    rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
    rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
    rsUpper + '+' + rsOptContrUpper,
    rsOrdUpper,
    rsOrdLower,
    rsDigits,
    rsEmoji
  ].join('|'), 'g');

  /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');

  /** Used to detect strings that need a more robust regexp to match words. */
  var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;

  /** Used to assign default `context` object properties. */
  var contextProps = [
    'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
    'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
    'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
    'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
    '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  ];

  /** Used to make template sourceURLs easier to identify. */
  var templateCounter = -1;

  /** Used to identify `toStringTag` values of typed arrays. */
  var typedArrayTags = {};
  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  typedArrayTags[uint32Tag] = true;
  typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  typedArrayTags[setTag] = typedArrayTags[stringTag] =
  typedArrayTags[weakMapTag] = false;

  /** Used to identify `toStringTag` values supported by `_.clone`. */
  var cloneableTags = {};
  cloneableTags[argsTag] = cloneableTags[arrayTag] =
  cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  cloneableTags[boolTag] = cloneableTags[dateTag] =
  cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  cloneableTags[int32Tag] = cloneableTags[mapTag] =
  cloneableTags[numberTag] = cloneableTags[objectTag] =
  cloneableTags[regexpTag] = cloneableTags[setTag] =
  cloneableTags[stringTag] = cloneableTags[symbolTag] =
  cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  cloneableTags[errorTag] = cloneableTags[funcTag] =
  cloneableTags[weakMapTag] = false;

  /** Used to map Latin Unicode letters to basic Latin letters. */
  var deburredLetters = {
    // Latin-1 Supplement block.
    '\xc0': 'A',  '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
    '\xe0': 'a',  '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
    '\xc7': 'C',  '\xe7': 'c',
    '\xd0': 'D',  '\xf0': 'd',
    '\xc8': 'E',  '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
    '\xe8': 'e',  '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
    '\xcc': 'I',  '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
    '\xec': 'i',  '\xed': 'i', '\xee': 'i', '\xef': 'i',
    '\xd1': 'N',  '\xf1': 'n',
    '\xd2': 'O',  '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
    '\xf2': 'o',  '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
    '\xd9': 'U',  '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
    '\xf9': 'u',  '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
    '\xdd': 'Y',  '\xfd': 'y', '\xff': 'y',
    '\xc6': 'Ae', '\xe6': 'ae',
    '\xde': 'Th', '\xfe': 'th',
    '\xdf': 'ss',
    // Latin Extended-A block.
    '\u0100': 'A',  '\u0102': 'A', '\u0104': 'A',
    '\u0101': 'a',  '\u0103': 'a', '\u0105': 'a',
    '\u0106': 'C',  '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
    '\u0107': 'c',  '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
    '\u010e': 'D',  '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
    '\u0112': 'E',  '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
    '\u0113': 'e',  '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
    '\u011c': 'G',  '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
    '\u011d': 'g',  '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
    '\u0124': 'H',  '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
    '\u0128': 'I',  '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
    '\u0129': 'i',  '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
    '\u0134': 'J',  '\u0135': 'j',
    '\u0136': 'K',  '\u0137': 'k', '\u0138': 'k',
    '\u0139': 'L',  '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
    '\u013a': 'l',  '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
    '\u0143': 'N',  '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
    '\u0144': 'n',  '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
    '\u014c': 'O',  '\u014e': 'O', '\u0150': 'O',
    '\u014d': 'o',  '\u014f': 'o', '\u0151': 'o',
    '\u0154': 'R',  '\u0156': 'R', '\u0158': 'R',
    '\u0155': 'r',  '\u0157': 'r', '\u0159': 'r',
    '\u015a': 'S',  '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
    '\u015b': 's',  '\u015d': 's', '\u015f': 's', '\u0161': 's',
    '\u0162': 'T',  '\u0164': 'T', '\u0166': 'T',
    '\u0163': 't',  '\u0165': 't', '\u0167': 't',
    '\u0168': 'U',  '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
    '\u0169': 'u',  '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
    '\u0174': 'W',  '\u0175': 'w',
    '\u0176': 'Y',  '\u0177': 'y', '\u0178': 'Y',
    '\u0179': 'Z',  '\u017b': 'Z', '\u017d': 'Z',
    '\u017a': 'z',  '\u017c': 'z', '\u017e': 'z',
    '\u0132': 'IJ', '\u0133': 'ij',
    '\u0152': 'Oe', '\u0153': 'oe',
    '\u0149': "'n", '\u017f': 's'
  };

  /** Used to map characters to HTML entities. */
  var htmlEscapes = {
    '&': '&amp;',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    "'": '&#39;'
  };

  /** Used to map HTML entities to characters. */
  var htmlUnescapes = {
    '&amp;': '&',
    '&lt;': '<',
    '&gt;': '>',
    '&quot;': '"',
    '&#39;': "'"
  };

  /** Used to escape characters for inclusion in compiled string literals. */
  var stringEscapes = {
    '\\': '\\',
    "'": "'",
    '\n': 'n',
    '\r': 'r',
    '\u2028': 'u2028',
    '\u2029': 'u2029'
  };

  /** Built-in method references without a dependency on `root`. */
  var freeParseFloat = parseFloat,
      freeParseInt = parseInt;

  /** Detect free variable `global` from Node.js. */
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

  /** Detect free variable `self`. */
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

  /** Used as a reference to the global object. */
  var root = freeGlobal || freeSelf || Function('return this')();

  /** Detect free variable `exports`. */
  var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

  /** Detect free variable `module`. */
  var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

  /** Detect the popular CommonJS extension `module.exports`. */
  var moduleExports = freeModule && freeModule.exports === freeExports;

  /** Detect free variable `process` from Node.js. */
  var freeProcess = moduleExports && freeGlobal.process;

  /** Used to access faster Node.js helpers. */
  var nodeUtil = (function() {
    try {
      // Use `util.types` for Node.js 10+.
      var types = freeModule && freeModule.require && freeModule.require('util').types;

      if (types) {
        return types;
      }

      // Legacy `process.binding('util')` for Node.js < 10.
      return freeProcess && freeProcess.binding && freeProcess.binding('util');
    } catch (e) {}
  }());

  /* Node.js helper references. */
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
      nodeIsDate = nodeUtil && nodeUtil.isDate,
      nodeIsMap = nodeUtil && nodeUtil.isMap,
      nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
      nodeIsSet = nodeUtil && nodeUtil.isSet,
      nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

  /*--------------------------------------------------------------------------*/

  /**
   * A faster alternative to `Function#apply`, this function invokes `func`
   * with the `this` binding of `thisArg` and the arguments of `args`.
   *
   * @private
   * @param {Function} func The function to invoke.
   * @param {*} thisArg The `this` binding of `func`.
   * @param {Array} args The arguments to invoke `func` with.
   * @returns {*} Returns the result of `func`.
   */
  function apply(func, thisArg, args) {
    switch (args.length) {
      case 0: return func.call(thisArg);
      case 1: return func.call(thisArg, args[0]);
      case 2: return func.call(thisArg, args[0], args[1]);
      case 3: return func.call(thisArg, args[0], args[1], args[2]);
    }
    return func.apply(thisArg, args);
  }

  /**
   * A specialized version of `baseAggregator` for arrays.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} setter The function to set `accumulator` values.
   * @param {Function} iteratee The iteratee to transform keys.
   * @param {Object} accumulator The initial aggregated object.
   * @returns {Function} Returns `accumulator`.
   */
  function arrayAggregator(array, setter, iteratee, accumulator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      var value = array[index];
      setter(accumulator, value, iteratee(value), array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.forEach` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEach(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (iteratee(array[index], index, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.forEachRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEachRight(array, iteratee) {
    var length = array == null ? 0 : array.length;

    while (length--) {
      if (iteratee(array[length], length, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.every` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if all elements pass the predicate check,
   *  else `false`.
   */
  function arrayEvery(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (!predicate(array[index], index, array)) {
        return false;
      }
    }
    return true;
  }

  /**
   * A specialized version of `_.filter` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {Array} Returns the new filtered array.
   */
  function arrayFilter(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (predicate(value, index, array)) {
        result[resIndex++] = value;
      }
    }
    return result;
  }

  /**
   * A specialized version of `_.includes` for arrays without support for
   * specifying an index to search from.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludes(array, value) {
    var length = array == null ? 0 : array.length;
    return !!length && baseIndexOf(array, value, 0) > -1;
  }

  /**
   * This function is like `arrayIncludes` except that it accepts a comparator.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludesWith(array, value, comparator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (comparator(value, array[index])) {
        return true;
      }
    }
    return false;
  }

  /**
   * A specialized version of `_.map` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the new mapped array.
   */
  function arrayMap(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length,
        result = Array(length);

    while (++index < length) {
      result[index] = iteratee(array[index], index, array);
    }
    return result;
  }

  /**
   * Appends the elements of `values` to `array`.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {Array} values The values to append.
   * @returns {Array} Returns `array`.
   */
  function arrayPush(array, values) {
    var index = -1,
        length = values.length,
        offset = array.length;

    while (++index < length) {
      array[offset + index] = values[index];
    }
    return array;
  }

  /**
   * A specialized version of `_.reduce` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the first element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduce(array, iteratee, accumulator, initAccum) {
    var index = -1,
        length = array == null ? 0 : array.length;

    if (initAccum && length) {
      accumulator = array[++index];
    }
    while (++index < length) {
      accumulator = iteratee(accumulator, array[index], index, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.reduceRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the last element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduceRight(array, iteratee, accumulator, initAccum) {
    var length = array == null ? 0 : array.length;
    if (initAccum && length) {
      accumulator = array[--length];
    }
    while (length--) {
      accumulator = iteratee(accumulator, array[length], length, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.some` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if any element passes the predicate check,
   *  else `false`.
   */
  function arraySome(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (predicate(array[index], index, array)) {
        return true;
      }
    }
    return false;
  }

  /**
   * Gets the size of an ASCII `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  var asciiSize = baseProperty('length');

  /**
   * Converts an ASCII `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function asciiToArray(string) {
    return string.split('');
  }

  /**
   * Splits an ASCII `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function asciiWords(string) {
    return string.match(reAsciiWord) || [];
  }

  /**
   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
   * without support for iteratee shorthands, which iterates over `collection`
   * using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the found element or its key, else `undefined`.
   */
  function baseFindKey(collection, predicate, eachFunc) {
    var result;
    eachFunc(collection, function(value, key, collection) {
      if (predicate(value, key, collection)) {
        result = key;
        return false;
      }
    });
    return result;
  }

  /**
   * The base implementation of `_.findIndex` and `_.findLastIndex` without
   * support for iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {number} fromIndex The index to search from.
   * @param {boolean} [fromRight] Specify iterating from right to left.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseFindIndex(array, predicate, fromIndex, fromRight) {
    var length = array.length,
        index = fromIndex + (fromRight ? 1 : -1);

    while ((fromRight ? index-- : ++index < length)) {
      if (predicate(array[index], index, array)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOf(array, value, fromIndex) {
    return value === value
      ? strictIndexOf(array, value, fromIndex)
      : baseFindIndex(array, baseIsNaN, fromIndex);
  }

  /**
   * This function is like `baseIndexOf` except that it accepts a comparator.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOfWith(array, value, fromIndex, comparator) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (comparator(array[index], value)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.isNaN` without support for number objects.
   *
   * @private
   * @param {*} value The value to check.
   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
   */
  function baseIsNaN(value) {
    return value !== value;
  }

  /**
   * The base implementation of `_.mean` and `_.meanBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the mean.
   */
  function baseMean(array, iteratee) {
    var length = array == null ? 0 : array.length;
    return length ? (baseSum(array, iteratee) / length) : NAN;
  }

  /**
   * The base implementation of `_.property` without support for deep paths.
   *
   * @private
   * @param {string} key The key of the property to get.
   * @returns {Function} Returns the new accessor function.
   */
  function baseProperty(key) {
    return function(object) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.propertyOf` without support for deep paths.
   *
   * @private
   * @param {Object} object The object to query.
   * @returns {Function} Returns the new accessor function.
   */
  function basePropertyOf(object) {
    return function(key) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.reduce` and `_.reduceRight`, without support
   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} accumulator The initial value.
   * @param {boolean} initAccum Specify using the first or last element of
   *  `collection` as the initial value.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the accumulated value.
   */
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
    eachFunc(collection, function(value, index, collection) {
      accumulator = initAccum
        ? (initAccum = false, value)
        : iteratee(accumulator, value, index, collection);
    });
    return accumulator;
  }

  /**
   * The base implementation of `_.sortBy` which uses `comparer` to define the
   * sort order of `array` and replaces criteria objects with their corresponding
   * values.
   *
   * @private
   * @param {Array} array The array to sort.
   * @param {Function} comparer The function to define sort order.
   * @returns {Array} Returns `array`.
   */
  function baseSortBy(array, comparer) {
    var length = array.length;

    array.sort(comparer);
    while (length--) {
      array[length] = array[length].value;
    }
    return array;
  }

  /**
   * The base implementation of `_.sum` and `_.sumBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the sum.
   */
  function baseSum(array, iteratee) {
    var result,
        index = -1,
        length = array.length;

    while (++index < length) {
      var current = iteratee(array[index]);
      if (current !== undefined) {
        result = result === undefined ? current : (result + current);
      }
    }
    return result;
  }

  /**
   * The base implementation of `_.times` without support for iteratee shorthands
   * or max array length checks.
   *
   * @private
   * @param {number} n The number of times to invoke `iteratee`.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the array of results.
   */
  function baseTimes(n, iteratee) {
    var index = -1,
        result = Array(n);

    while (++index < n) {
      result[index] = iteratee(index);
    }
    return result;
  }

  /**
   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
   * of key-value pairs for `object` corresponding to the property names of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the key-value pairs.
   */
  function baseToPairs(object, props) {
    return arrayMap(props, function(key) {
      return [key, object[key]];
    });
  }

  /**
   * The base implementation of `_.unary` without support for storing metadata.
   *
   * @private
   * @param {Function} func The function to cap arguments for.
   * @returns {Function} Returns the new capped function.
   */
  function baseUnary(func) {
    return function(value) {
      return func(value);
    };
  }

  /**
   * The base implementation of `_.values` and `_.valuesIn` which creates an
   * array of `object` property values corresponding to the property names
   * of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the array of property values.
   */
  function baseValues(object, props) {
    return arrayMap(props, function(key) {
      return object[key];
    });
  }

  /**
   * Checks if a `cache` value for `key` exists.
   *
   * @private
   * @param {Object} cache The cache to query.
   * @param {string} key The key of the entry to check.
   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
   */
  function cacheHas(cache, key) {
    return cache.has(key);
  }

  /**
   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the first unmatched string symbol.
   */
  function charsStartIndex(strSymbols, chrSymbols) {
    var index = -1,
        length = strSymbols.length;

    while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the last unmatched string symbol.
   */
  function charsEndIndex(strSymbols, chrSymbols) {
    var index = strSymbols.length;

    while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Gets the number of `placeholder` occurrences in `array`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} placeholder The placeholder to search for.
   * @returns {number} Returns the placeholder count.
   */
  function countHolders(array, placeholder) {
    var length = array.length,
        result = 0;

    while (length--) {
      if (array[length] === placeholder) {
        ++result;
      }
    }
    return result;
  }

  /**
   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
   * letters to basic Latin letters.
   *
   * @private
   * @param {string} letter The matched letter to deburr.
   * @returns {string} Returns the deburred letter.
   */
  var deburrLetter = basePropertyOf(deburredLetters);

  /**
   * Used by `_.escape` to convert characters to HTML entities.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  var escapeHtmlChar = basePropertyOf(htmlEscapes);

  /**
   * Used by `_.template` to escape characters for inclusion in compiled string literals.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  function escapeStringChar(chr) {
    return '\\' + stringEscapes[chr];
  }

  /**
   * Gets the value at `key` of `object`.
   *
   * @private
   * @param {Object} [object] The object to query.
   * @param {string} key The key of the property to get.
   * @returns {*} Returns the property value.
   */
  function getValue(object, key) {
    return object == null ? undefined : object[key];
  }

  /**
   * Checks if `string` contains Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
   */
  function hasUnicode(string) {
    return reHasUnicode.test(string);
  }

  /**
   * Checks if `string` contains a word composed of Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a word is found, else `false`.
   */
  function hasUnicodeWord(string) {
    return reHasUnicodeWord.test(string);
  }

  /**
   * Converts `iterator` to an array.
   *
   * @private
   * @param {Object} iterator The iterator to convert.
   * @returns {Array} Returns the converted array.
   */
  function iteratorToArray(iterator) {
    var data,
        result = [];

    while (!(data = iterator.next()).done) {
      result.push(data.value);
    }
    return result;
  }

  /**
   * Converts `map` to its key-value pairs.
   *
   * @private
   * @param {Object} map The map to convert.
   * @returns {Array} Returns the key-value pairs.
   */
  function mapToArray(map) {
    var index = -1,
        result = Array(map.size);

    map.forEach(function(value, key) {
      result[++index] = [key, value];
    });
    return result;
  }

  /**
   * Creates a unary function that invokes `func` with its argument transformed.
   *
   * @private
   * @param {Function} func The function to wrap.
   * @param {Function} transform The argument transform.
   * @returns {Function} Returns the new function.
   */
  function overArg(func, transform) {
    return function(arg) {
      return func(transform(arg));
    };
  }

  /**
   * Replaces all `placeholder` elements in `array` with an internal placeholder
   * and returns an array of their indexes.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {*} placeholder The placeholder to replace.
   * @returns {Array} Returns the new array of placeholder indexes.
   */
  function replaceHolders(array, placeholder) {
    var index = -1,
        length = array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (value === placeholder || value === PLACEHOLDER) {
        array[index] = PLACEHOLDER;
        result[resIndex++] = index;
      }
    }
    return result;
  }

  /**
   * Gets the value at `key`, unless `key` is "__proto__".
   *
   * @private
   * @param {Object} object The object to query.
   * @param {string} key The key of the property to get.
   * @returns {*} Returns the property value.
   */
  function safeGet(object, key) {
    return key == '__proto__'
      ? undefined
      : object[key];
  }

  /**
   * Converts `set` to an array of its values.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the values.
   */
  function setToArray(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = value;
    });
    return result;
  }

  /**
   * Converts `set` to its value-value pairs.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the value-value pairs.
   */
  function setToPairs(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = [value, value];
    });
    return result;
  }

  /**
   * A specialized version of `_.indexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictIndexOf(array, value, fromIndex) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (array[index] === value) {
        return index;
      }
    }
    return -1;
  }

  /**
   * A specialized version of `_.lastIndexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictLastIndexOf(array, value, fromIndex) {
    var index = fromIndex + 1;
    while (index--) {
      if (array[index] === value) {
        return index;
      }
    }
    return index;
  }

  /**
   * Gets the number of symbols in `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the string size.
   */
  function stringSize(string) {
    return hasUnicode(string)
      ? unicodeSize(string)
      : asciiSize(string);
  }

  /**
   * Converts `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function stringToArray(string) {
    return hasUnicode(string)
      ? unicodeToArray(string)
      : asciiToArray(string);
  }

  /**
   * Used by `_.unescape` to convert HTML entities to characters.
   *
   * @private
   * @param {string} chr The matched character to unescape.
   * @returns {string} Returns the unescaped character.
   */
  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);

  /**
   * Gets the size of a Unicode `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  function unicodeSize(string) {
    var result = reUnicode.lastIndex = 0;
    while (reUnicode.test(string)) {
      ++result;
    }
    return result;
  }

  /**
   * Converts a Unicode `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function unicodeToArray(string) {
    return string.match(reUnicode) || [];
  }

  /**
   * Splits a Unicode `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function unicodeWords(string) {
    return string.match(reUnicodeWord) || [];
  }

  /*--------------------------------------------------------------------------*/

  /**
   * Create a new pristine `lodash` function using the `context` object.
   *
   * @static
   * @memberOf _
   * @since 1.1.0
   * @category Util
   * @param {Object} [context=root] The context object.
   * @returns {Function} Returns a new `lodash` function.
   * @example
   *
   * _.mixin({ 'foo': _.constant('foo') });
   *
   * var lodash = _.runInContext();
   * lodash.mixin({ 'bar': lodash.constant('bar') });
   *
   * _.isFunction(_.foo);
   * // => true
   * _.isFunction(_.bar);
   * // => false
   *
   * lodash.isFunction(lodash.foo);
   * // => false
   * lodash.isFunction(lodash.bar);
   * // => true
   *
   * // Create a suped-up `defer` in Node.js.
   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
   */
  var runInContext = (function runInContext(context) {
    context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));

    /** Built-in constructor references. */
    var Array = context.Array,
        Date = context.Date,
        Error = context.Error,
        Function = context.Function,
        Math = context.Math,
        Object = context.Object,
        RegExp = context.RegExp,
        String = context.String,
        TypeError = context.TypeError;

    /** Used for built-in method references. */
    var arrayProto = Array.prototype,
        funcProto = Function.prototype,
        objectProto = Object.prototype;

    /** Used to detect overreaching core-js shims. */
    var coreJsData = context['__core-js_shared__'];

    /** Used to resolve the decompiled source of functions. */
    var funcToString = funcProto.toString;

    /** Used to check objects for own properties. */
    var hasOwnProperty = objectProto.hasOwnProperty;

    /** Used to generate unique IDs. */
    var idCounter = 0;

    /** Used to detect methods masquerading as native. */
    var maskSrcKey = (function() {
      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
      return uid ? ('Symbol(src)_1.' + uid) : '';
    }());

    /**
     * Used to resolve the
     * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
     * of values.
     */
    var nativeObjectToString = objectProto.toString;

    /** Used to infer the `Object` constructor. */
    var objectCtorString = funcToString.call(Object);

    /** Used to restore the original `_` reference in `_.noConflict`. */
    var oldDash = root._;

    /** Used to detect if a method is native. */
    var reIsNative = RegExp('^' +
      funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
      .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
    );

    /** Built-in value references. */
    var Buffer = moduleExports ? context.Buffer : undefined,
        Symbol = context.Symbol,
        Uint8Array = context.Uint8Array,
        allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
        getPrototype = overArg(Object.getPrototypeOf, Object),
        objectCreate = Object.create,
        propertyIsEnumerable = objectProto.propertyIsEnumerable,
        splice = arrayProto.splice,
        spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
        symIterator = Symbol ? Symbol.iterator : undefined,
        symToStringTag = Symbol ? Symbol.toStringTag : undefined;

    var defineProperty = (function() {
      try {
        var func = getNative(Object, 'defineProperty');
        func({}, '', {});
        return func;
      } catch (e) {}
    }());

    /** Mocked built-ins. */
    var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
        ctxNow = Date && Date.now !== root.Date.now && Date.now,
        ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;

    /* Built-in method references for those with the same name as other `lodash` methods. */
    var nativeCeil = Math.ceil,
        nativeFloor = Math.floor,
        nativeGetSymbols = Object.getOwnPropertySymbols,
        nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
        nativeIsFinite = context.isFinite,
        nativeJoin = arrayProto.join,
        nativeKeys = overArg(Object.keys, Object),
        nativeMax = Math.max,
        nativeMin = Math.min,
        nativeNow = Date.now,
        nativeParseInt = context.parseInt,
        nativeRandom = Math.random,
        nativeReverse = arrayProto.reverse;

    /* Built-in method references that are verified to be native. */
    var DataView = getNative(context, 'DataView'),
        Map = getNative(context, 'Map'),
        Promise = getNative(context, 'Promise'),
        Set = getNative(context, 'Set'),
        WeakMap = getNative(context, 'WeakMap'),
        nativeCreate = getNative(Object, 'create');

    /** Used to store function metadata. */
    var metaMap = WeakMap && new WeakMap;

    /** Used to lookup unminified function names. */
    var realNames = {};

    /** Used to detect maps, sets, and weakmaps. */
    var dataViewCtorString = toSource(DataView),
        mapCtorString = toSource(Map),
        promiseCtorString = toSource(Promise),
        setCtorString = toSource(Set),
        weakMapCtorString = toSource(WeakMap);

    /** Used to convert symbols to primitives and strings. */
    var symbolProto = Symbol ? Symbol.prototype : undefined,
        symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
        symbolToString = symbolProto ? symbolProto.toString : undefined;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` object which wraps `value` to enable implicit method
     * chain sequences. Methods that operate on and return arrays, collections,
     * and functions can be chained together. Methods that retrieve a single value
     * or may return a primitive value will automatically end the chain sequence
     * and return the unwrapped value. Otherwise, the value must be unwrapped
     * with `_#value`.
     *
     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
     * enabled using `_.chain`.
     *
     * The execution of chained methods is lazy, that is, it's deferred until
     * `_#value` is implicitly or explicitly called.
     *
     * Lazy evaluation allows several methods to support shortcut fusion.
     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
     * the creation of intermediate arrays and can greatly reduce the number of
     * iteratee executions. Sections of a chain sequence qualify for shortcut
     * fusion if the section is applied to an array and iteratees accept only
     * one argument. The heuristic for whether a section qualifies for shortcut
     * fusion is subject to change.
     *
     * Chaining is supported in custom builds as long as the `_#value` method is
     * directly or indirectly included in the build.
     *
     * In addition to lodash methods, wrappers have `Array` and `String` methods.
     *
     * The wrapper `Array` methods are:
     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
     *
     * The wrapper `String` methods are:
     * `replace` and `split`
     *
     * The wrapper methods that support shortcut fusion are:
     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
     *
     * The chainable wrapper methods are:
     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
     * `zipObject`, `zipObjectDeep`, and `zipWith`
     *
     * The wrapper methods that are **not** chainable by default are:
     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
     * `upperFirst`, `value`, and `words`
     *
     * @name _
     * @constructor
     * @category Seq
     * @param {*} value The value to wrap in a `lodash` instance.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2, 3]);
     *
     * // Returns an unwrapped value.
     * wrapped.reduce(_.add);
     * // => 6
     *
     * // Returns a wrapped value.
     * var squares = wrapped.map(square);
     *
     * _.isArray(squares);
     * // => false
     *
     * _.isArray(squares.value());
     * // => true
     */
    function lodash(value) {
      if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
        if (value instanceof LodashWrapper) {
          return value;
        }
        if (hasOwnProperty.call(value, '__wrapped__')) {
          return wrapperClone(value);
        }
      }
      return new LodashWrapper(value);
    }

    /**
     * The base implementation of `_.create` without support for assigning
     * properties to the created object.
     *
     * @private
     * @param {Object} proto The object to inherit from.
     * @returns {Object} Returns the new object.
     */
    var baseCreate = (function() {
      function object() {}
      return function(proto) {
        if (!isObject(proto)) {
          return {};
        }
        if (objectCreate) {
          return objectCreate(proto);
        }
        object.prototype = proto;
        var result = new object;
        object.prototype = undefined;
        return result;
      };
    }());

    /**
     * The function whose prototype chain sequence wrappers inherit from.
     *
     * @private
     */
    function baseLodash() {
      // No operation performed.
    }

    /**
     * The base constructor for creating `lodash` wrapper objects.
     *
     * @private
     * @param {*} value The value to wrap.
     * @param {boolean} [chainAll] Enable explicit method chain sequences.
     */
    function LodashWrapper(value, chainAll) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__chain__ = !!chainAll;
      this.__index__ = 0;
      this.__values__ = undefined;
    }

    /**
     * By default, the template delimiters used by lodash are like those in
     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
     * following template settings to use alternative delimiters.
     *
     * @static
     * @memberOf _
     * @type {Object}
     */
    lodash.templateSettings = {

      /**
       * Used to detect `data` property values to be HTML-escaped.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'escape': reEscape,

      /**
       * Used to detect code to be evaluated.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'evaluate': reEvaluate,

      /**
       * Used to detect `data` property values to inject.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'interpolate': reInterpolate,

      /**
       * Used to reference the data object in the template text.
       *
       * @memberOf _.templateSettings
       * @type {string}
       */
      'variable': '',

      /**
       * Used to import variables into the compiled template.
       *
       * @memberOf _.templateSettings
       * @type {Object}
       */
      'imports': {

        /**
         * A reference to the `lodash` function.
         *
         * @memberOf _.templateSettings.imports
         * @type {Function}
         */
        '_': lodash
      }
    };

    // Ensure wrappers are instances of `baseLodash`.
    lodash.prototype = baseLodash.prototype;
    lodash.prototype.constructor = lodash;

    LodashWrapper.prototype = baseCreate(baseLodash.prototype);
    LodashWrapper.prototype.constructor = LodashWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
     *
     * @private
     * @constructor
     * @param {*} value The value to wrap.
     */
    function LazyWrapper(value) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__dir__ = 1;
      this.__filtered__ = false;
      this.__iteratees__ = [];
      this.__takeCount__ = MAX_ARRAY_LENGTH;
      this.__views__ = [];
    }

    /**
     * Creates a clone of the lazy wrapper object.
     *
     * @private
     * @name clone
     * @memberOf LazyWrapper
     * @returns {Object} Returns the cloned `LazyWrapper` object.
     */
    function lazyClone() {
      var result = new LazyWrapper(this.__wrapped__);
      result.__actions__ = copyArray(this.__actions__);
      result.__dir__ = this.__dir__;
      result.__filtered__ = this.__filtered__;
      result.__iteratees__ = copyArray(this.__iteratees__);
      result.__takeCount__ = this.__takeCount__;
      result.__views__ = copyArray(this.__views__);
      return result;
    }

    /**
     * Reverses the direction of lazy iteration.
     *
     * @private
     * @name reverse
     * @memberOf LazyWrapper
     * @returns {Object} Returns the new reversed `LazyWrapper` object.
     */
    function lazyReverse() {
      if (this.__filtered__) {
        var result = new LazyWrapper(this);
        result.__dir__ = -1;
        result.__filtered__ = true;
      } else {
        result = this.clone();
        result.__dir__ *= -1;
      }
      return result;
    }

    /**
     * Extracts the unwrapped value from its lazy wrapper.
     *
     * @private
     * @name value
     * @memberOf LazyWrapper
     * @returns {*} Returns the unwrapped value.
     */
    function lazyValue() {
      var array = this.__wrapped__.value(),
          dir = this.__dir__,
          isArr = isArray(array),
          isRight = dir < 0,
          arrLength = isArr ? array.length : 0,
          view = getView(0, arrLength, this.__views__),
          start = view.start,
          end = view.end,
          length = end - start,
          index = isRight ? end : (start - 1),
          iteratees = this.__iteratees__,
          iterLength = iteratees.length,
          resIndex = 0,
          takeCount = nativeMin(length, this.__takeCount__);

      if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
        return baseWrapperValue(array, this.__actions__);
      }
      var result = [];

      outer:
      while (length-- && resIndex < takeCount) {
        index += dir;

        var iterIndex = -1,
            value = array[index];

        while (++iterIndex < iterLength) {
          var data = iteratees[iterIndex],
              iteratee = data.iteratee,
              type = data.type,
              computed = iteratee(value);

          if (type == LAZY_MAP_FLAG) {
            value = computed;
          } else if (!computed) {
            if (type == LAZY_FILTER_FLAG) {
              continue outer;
            } else {
              break outer;
            }
          }
        }
        result[resIndex++] = value;
      }
      return result;
    }

    // Ensure `LazyWrapper` is an instance of `baseLodash`.
    LazyWrapper.prototype = baseCreate(baseLodash.prototype);
    LazyWrapper.prototype.constructor = LazyWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a hash object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Hash(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the hash.
     *
     * @private
     * @name clear
     * @memberOf Hash
     */
    function hashClear() {
      this.__data__ = nativeCreate ? nativeCreate(null) : {};
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the hash.
     *
     * @private
     * @name delete
     * @memberOf Hash
     * @param {Object} hash The hash to modify.
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function hashDelete(key) {
      var result = this.has(key) && delete this.__data__[key];
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the hash value for `key`.
     *
     * @private
     * @name get
     * @memberOf Hash
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function hashGet(key) {
      var data = this.__data__;
      if (nativeCreate) {
        var result = data[key];
        return result === HASH_UNDEFINED ? undefined : result;
      }
      return hasOwnProperty.call(data, key) ? data[key] : undefined;
    }

    /**
     * Checks if a hash value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Hash
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function hashHas(key) {
      var data = this.__data__;
      return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
    }

    /**
     * Sets the hash `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Hash
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the hash instance.
     */
    function hashSet(key, value) {
      var data = this.__data__;
      this.size += this.has(key) ? 0 : 1;
      data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
      return this;
    }

    // Add methods to `Hash`.
    Hash.prototype.clear = hashClear;
    Hash.prototype['delete'] = hashDelete;
    Hash.prototype.get = hashGet;
    Hash.prototype.has = hashHas;
    Hash.prototype.set = hashSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an list cache object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function ListCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the list cache.
     *
     * @private
     * @name clear
     * @memberOf ListCache
     */
    function listCacheClear() {
      this.__data__ = [];
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the list cache.
     *
     * @private
     * @name delete
     * @memberOf ListCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function listCacheDelete(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        return false;
      }
      var lastIndex = data.length - 1;
      if (index == lastIndex) {
        data.pop();
      } else {
        splice.call(data, index, 1);
      }
      --this.size;
      return true;
    }

    /**
     * Gets the list cache value for `key`.
     *
     * @private
     * @name get
     * @memberOf ListCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function listCacheGet(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      return index < 0 ? undefined : data[index][1];
    }

    /**
     * Checks if a list cache value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf ListCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function listCacheHas(key) {
      return assocIndexOf(this.__data__, key) > -1;
    }

    /**
     * Sets the list cache `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf ListCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the list cache instance.
     */
    function listCacheSet(key, value) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        ++this.size;
        data.push([key, value]);
      } else {
        data[index][1] = value;
      }
      return this;
    }

    // Add methods to `ListCache`.
    ListCache.prototype.clear = listCacheClear;
    ListCache.prototype['delete'] = listCacheDelete;
    ListCache.prototype.get = listCacheGet;
    ListCache.prototype.has = listCacheHas;
    ListCache.prototype.set = listCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a map cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function MapCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the map.
     *
     * @private
     * @name clear
     * @memberOf MapCache
     */
    function mapCacheClear() {
      this.size = 0;
      this.__data__ = {
        'hash': new Hash,
        'map': new (Map || ListCache),
        'string': new Hash
      };
    }

    /**
     * Removes `key` and its value from the map.
     *
     * @private
     * @name delete
     * @memberOf MapCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function mapCacheDelete(key) {
      var result = getMapData(this, key)['delete'](key);
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the map value for `key`.
     *
     * @private
     * @name get
     * @memberOf MapCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function mapCacheGet(key) {
      return getMapData(this, key).get(key);
    }

    /**
     * Checks if a map value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf MapCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function mapCacheHas(key) {
      return getMapData(this, key).has(key);
    }

    /**
     * Sets the map `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf MapCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the map cache instance.
     */
    function mapCacheSet(key, value) {
      var data = getMapData(this, key),
          size = data.size;

      data.set(key, value);
      this.size += data.size == size ? 0 : 1;
      return this;
    }

    // Add methods to `MapCache`.
    MapCache.prototype.clear = mapCacheClear;
    MapCache.prototype['delete'] = mapCacheDelete;
    MapCache.prototype.get = mapCacheGet;
    MapCache.prototype.has = mapCacheHas;
    MapCache.prototype.set = mapCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     *
     * Creates an array cache object to store unique values.
     *
     * @private
     * @constructor
     * @param {Array} [values] The values to cache.
     */
    function SetCache(values) {
      var index = -1,
          length = values == null ? 0 : values.length;

      this.__data__ = new MapCache;
      while (++index < length) {
        this.add(values[index]);
      }
    }

    /**
     * Adds `value` to the array cache.
     *
     * @private
     * @name add
     * @memberOf SetCache
     * @alias push
     * @param {*} value The value to cache.
     * @returns {Object} Returns the cache instance.
     */
    function setCacheAdd(value) {
      this.__data__.set(value, HASH_UNDEFINED);
      return this;
    }

    /**
     * Checks if `value` is in the array cache.
     *
     * @private
     * @name has
     * @memberOf SetCache
     * @param {*} value The value to search for.
     * @returns {number} Returns `true` if `value` is found, else `false`.
     */
    function setCacheHas(value) {
      return this.__data__.has(value);
    }

    // Add methods to `SetCache`.
    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
    SetCache.prototype.has = setCacheHas;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a stack cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Stack(entries) {
      var data = this.__data__ = new ListCache(entries);
      this.size = data.size;
    }

    /**
     * Removes all key-value entries from the stack.
     *
     * @private
     * @name clear
     * @memberOf Stack
     */
    function stackClear() {
      this.__data__ = new ListCache;
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the stack.
     *
     * @private
     * @name delete
     * @memberOf Stack
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function stackDelete(key) {
      var data = this.__data__,
          result = data['delete'](key);

      this.size = data.size;
      return result;
    }

    /**
     * Gets the stack value for `key`.
     *
     * @private
     * @name get
     * @memberOf Stack
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function stackGet(key) {
      return this.__data__.get(key);
    }

    /**
     * Checks if a stack value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Stack
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function stackHas(key) {
      return this.__data__.has(key);
    }

    /**
     * Sets the stack `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Stack
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the stack cache instance.
     */
    function stackSet(key, value) {
      var data = this.__data__;
      if (data instanceof ListCache) {
        var pairs = data.__data__;
        if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
          pairs.push([key, value]);
          this.size = ++data.size;
          return this;
        }
        data = this.__data__ = new MapCache(pairs);
      }
      data.set(key, value);
      this.size = data.size;
      return this;
    }

    // Add methods to `Stack`.
    Stack.prototype.clear = stackClear;
    Stack.prototype['delete'] = stackDelete;
    Stack.prototype.get = stackGet;
    Stack.prototype.has = stackHas;
    Stack.prototype.set = stackSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of the enumerable property names of the array-like `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @param {boolean} inherited Specify returning inherited property names.
     * @returns {Array} Returns the array of property names.
     */
    function arrayLikeKeys(value, inherited) {
      var isArr = isArray(value),
          isArg = !isArr && isArguments(value),
          isBuff = !isArr && !isArg && isBuffer(value),
          isType = !isArr && !isArg && !isBuff && isTypedArray(value),
          skipIndexes = isArr || isArg || isBuff || isType,
          result = skipIndexes ? baseTimes(value.length, String) : [],
          length = result.length;

      for (var key in value) {
        if ((inherited || hasOwnProperty.call(value, key)) &&
            !(skipIndexes && (
               // Safari 9 has enumerable `arguments.length` in strict mode.
               key == 'length' ||
               // Node.js 0.10 has enumerable non-index properties on buffers.
               (isBuff && (key == 'offset' || key == 'parent')) ||
               // PhantomJS 2 has enumerable non-index properties on typed arrays.
               (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
               // Skip index properties.
               isIndex(key, length)
            ))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * A specialized version of `_.sample` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @returns {*} Returns the random element.
     */
    function arraySample(array) {
      var length = array.length;
      return length ? array[baseRandom(0, length - 1)] : undefined;
    }

    /**
     * A specialized version of `_.sampleSize` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function arraySampleSize(array, n) {
      return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
    }

    /**
     * A specialized version of `_.shuffle` for arrays.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function arrayShuffle(array) {
      return shuffleSelf(copyArray(array));
    }

    /**
     * This function is like `assignValue` except that it doesn't assign
     * `undefined` values.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignMergeValue(object, key, value) {
      if ((value !== undefined && !eq(object[key], value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Assigns `value` to `key` of `object` if the existing value is not equivalent
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignValue(object, key, value) {
      var objValue = object[key];
      if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Gets the index at which the `key` is found in `array` of key-value pairs.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {*} key The key to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     */
    function assocIndexOf(array, key) {
      var length = array.length;
      while (length--) {
        if (eq(array[length][0], key)) {
          return length;
        }
      }
      return -1;
    }

    /**
     * Aggregates elements of `collection` on `accumulator` with keys transformed
     * by `iteratee` and values set by `setter`.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform keys.
     * @param {Object} accumulator The initial aggregated object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseAggregator(collection, setter, iteratee, accumulator) {
      baseEach(collection, function(value, key, collection) {
        setter(accumulator, value, iteratee(value), collection);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.assign` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssign(object, source) {
      return object && copyObject(source, keys(source), object);
    }

    /**
     * The base implementation of `_.assignIn` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssignIn(object, source) {
      return object && copyObject(source, keysIn(source), object);
    }

    /**
     * The base implementation of `assignValue` and `assignMergeValue` without
     * value checks.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function baseAssignValue(object, key, value) {
      if (key == '__proto__' && defineProperty) {
        defineProperty(object, key, {
          'configurable': true,
          'enumerable': true,
          'value': value,
          'writable': true
        });
      } else {
        object[key] = value;
      }
    }

    /**
     * The base implementation of `_.at` without support for individual paths.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {string[]} paths The property paths to pick.
     * @returns {Array} Returns the picked elements.
     */
    function baseAt(object, paths) {
      var index = -1,
          length = paths.length,
          result = Array(length),
          skip = object == null;

      while (++index < length) {
        result[index] = skip ? undefined : get(object, paths[index]);
      }
      return result;
    }

    /**
     * The base implementation of `_.clamp` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     */
    function baseClamp(number, lower, upper) {
      if (number === number) {
        if (upper !== undefined) {
          number = number <= upper ? number : upper;
        }
        if (lower !== undefined) {
          number = number >= lower ? number : lower;
        }
      }
      return number;
    }

    /**
     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
     * traversed objects.
     *
     * @private
     * @param {*} value The value to clone.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Deep clone
     *  2 - Flatten inherited properties
     *  4 - Clone symbols
     * @param {Function} [customizer] The function to customize cloning.
     * @param {string} [key] The key of `value`.
     * @param {Object} [object] The parent object of `value`.
     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
     * @returns {*} Returns the cloned value.
     */
    function baseClone(value, bitmask, customizer, key, object, stack) {
      var result,
          isDeep = bitmask & CLONE_DEEP_FLAG,
          isFlat = bitmask & CLONE_FLAT_FLAG,
          isFull = bitmask & CLONE_SYMBOLS_FLAG;

      if (customizer) {
        result = object ? customizer(value, key, object, stack) : customizer(value);
      }
      if (result !== undefined) {
        return result;
      }
      if (!isObject(value)) {
        return value;
      }
      var isArr = isArray(value);
      if (isArr) {
        result = initCloneArray(value);
        if (!isDeep) {
          return copyArray(value, result);
        }
      } else {
        var tag = getTag(value),
            isFunc = tag == funcTag || tag == genTag;

        if (isBuffer(value)) {
          return cloneBuffer(value, isDeep);
        }
        if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
          result = (isFlat || isFunc) ? {} : initCloneObject(value);
          if (!isDeep) {
            return isFlat
              ? copySymbolsIn(value, baseAssignIn(result, value))
              : copySymbols(value, baseAssign(result, value));
          }
        } else {
          if (!cloneableTags[tag]) {
            return object ? value : {};
          }
          result = initCloneByTag(value, tag, isDeep);
        }
      }
      // Check for circular references and return its corresponding clone.
      stack || (stack = new Stack);
      var stacked = stack.get(value);
      if (stacked) {
        return stacked;
      }
      stack.set(value, result);

      if (isSet(value)) {
        value.forEach(function(subValue) {
          result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
        });

        return result;
      }

      if (isMap(value)) {
        value.forEach(function(subValue, key) {
          result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
        });

        return result;
      }

      var keysFunc = isFull
        ? (isFlat ? getAllKeysIn : getAllKeys)
        : (isFlat ? keysIn : keys);

      var props = isArr ? undefined : keysFunc(value);
      arrayEach(props || value, function(subValue, key) {
        if (props) {
          key = subValue;
          subValue = value[key];
        }
        // Recursively populate clone (susceptible to call stack limits).
        assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
      });
      return result;
    }

    /**
     * The base implementation of `_.conforms` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     */
    function baseConforms(source) {
      var props = keys(source);
      return function(object) {
        return baseConformsTo(object, source, props);
      };
    }

    /**
     * The base implementation of `_.conformsTo` which accepts `props` to check.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     */
    function baseConformsTo(object, source, props) {
      var length = props.length;
      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (length--) {
        var key = props[length],
            predicate = source[key],
            value = object[key];

        if ((value === undefined && !(key in object)) || !predicate(value)) {
          return false;
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.delay` and `_.defer` which accepts `args`
     * to provide to `func`.
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {Array} args The arguments to provide to `func`.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    function baseDelay(func, wait, args) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return setTimeout(function() { func.apply(undefined, args); }, wait);
    }

    /**
     * The base implementation of methods like `_.difference` without support
     * for excluding multiple arrays or iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Array} values The values to exclude.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     */
    function baseDifference(array, values, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          isCommon = true,
          length = array.length,
          result = [],
          valuesLength = values.length;

      if (!length) {
        return result;
      }
      if (iteratee) {
        values = arrayMap(values, baseUnary(iteratee));
      }
      if (comparator) {
        includes = arrayIncludesWith;
        isCommon = false;
      }
      else if (values.length >= LARGE_ARRAY_SIZE) {
        includes = cacheHas;
        isCommon = false;
        values = new SetCache(values);
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee == null ? value : iteratee(value);

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var valuesIndex = valuesLength;
          while (valuesIndex--) {
            if (values[valuesIndex] === computed) {
              continue outer;
            }
          }
          result.push(value);
        }
        else if (!includes(values, computed, comparator)) {
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.forEach` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEach = createBaseEach(baseForOwn);

    /**
     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEachRight = createBaseEach(baseForOwnRight, true);

    /**
     * The base implementation of `_.every` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`
     */
    function baseEvery(collection, predicate) {
      var result = true;
      baseEach(collection, function(value, index, collection) {
        result = !!predicate(value, index, collection);
        return result;
      });
      return result;
    }

    /**
     * The base implementation of methods like `_.max` and `_.min` which accepts a
     * `comparator` to determine the extremum value.
     *
     * @private
     * @param {Array} array The array to iterate over.
     * @param {Function} iteratee The iteratee invoked per iteration.
     * @param {Function} comparator The comparator used to compare values.
     * @returns {*} Returns the extremum value.
     */
    function baseExtremum(array, iteratee, comparator) {
      var index = -1,
          length = array.length;

      while (++index < length) {
        var value = array[index],
            current = iteratee(value);

        if (current != null && (computed === undefined
              ? (current === current && !isSymbol(current))
              : comparator(current, computed)
            )) {
          var computed = current,
              result = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.fill` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     */
    function baseFill(array, value, start, end) {
      var length = array.length;

      start = toInteger(start);
      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = (end === undefined || end > length) ? length : toInteger(end);
      if (end < 0) {
        end += length;
      }
      end = start > end ? 0 : toLength(end);
      while (start < end) {
        array[start++] = value;
      }
      return array;
    }

    /**
     * The base implementation of `_.filter` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     */
    function baseFilter(collection, predicate) {
      var result = [];
      baseEach(collection, function(value, index, collection) {
        if (predicate(value, index, collection)) {
          result.push(value);
        }
      });
      return result;
    }

    /**
     * The base implementation of `_.flatten` with support for restricting flattening.
     *
     * @private
     * @param {Array} array The array to flatten.
     * @param {number} depth The maximum recursion depth.
     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
     * @param {Array} [result=[]] The initial result value.
     * @returns {Array} Returns the new flattened array.
     */
    function baseFlatten(array, depth, predicate, isStrict, result) {
      var index = -1,
          length = array.length;

      predicate || (predicate = isFlattenable);
      result || (result = []);

      while (++index < length) {
        var value = array[index];
        if (depth > 0 && predicate(value)) {
          if (depth > 1) {
            // Recursively flatten arrays (susceptible to call stack limits).
            baseFlatten(value, depth - 1, predicate, isStrict, result);
          } else {
            arrayPush(result, value);
          }
        } else if (!isStrict) {
          result[result.length] = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `baseForOwn` which iterates over `object`
     * properties returned by `keysFunc` and invokes `iteratee` for each property.
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseFor = createBaseFor();

    /**
     * This function is like `baseFor` except that it iterates over properties
     * in the opposite order.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseForRight = createBaseFor(true);

    /**
     * The base implementation of `_.forOwn` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwn(object, iteratee) {
      return object && baseFor(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwnRight(object, iteratee) {
      return object && baseForRight(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.functions` which creates an array of
     * `object` function property names filtered from `props`.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Array} props The property names to filter.
     * @returns {Array} Returns the function names.
     */
    function baseFunctions(object, props) {
      return arrayFilter(props, function(key) {
        return isFunction(object[key]);
      });
    }

    /**
     * The base implementation of `_.get` without support for default values.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @returns {*} Returns the resolved value.
     */
    function baseGet(object, path) {
      path = castPath(path, object);

      var index = 0,
          length = path.length;

      while (object != null && index < length) {
        object = object[toKey(path[index++])];
      }
      return (index && index == length) ? object : undefined;
    }

    /**
     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @param {Function} symbolsFunc The function to get the symbols of `object`.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function baseGetAllKeys(object, keysFunc, symbolsFunc) {
      var result = keysFunc(object);
      return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
    }

    /**
     * The base implementation of `getTag` without fallbacks for buggy environments.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    function baseGetTag(value) {
      if (value == null) {
        return value === undefined ? undefinedTag : nullTag;
      }
      return (symToStringTag && symToStringTag in Object(value))
        ? getRawTag(value)
        : objectToString(value);
    }

    /**
     * The base implementation of `_.gt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     */
    function baseGt(value, other) {
      return value > other;
    }

    /**
     * The base implementation of `_.has` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHas(object, key) {
      return object != null && hasOwnProperty.call(object, key);
    }

    /**
     * The base implementation of `_.hasIn` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHasIn(object, key) {
      return object != null && key in Object(object);
    }

    /**
     * The base implementation of `_.inRange` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to check.
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     */
    function baseInRange(number, start, end) {
      return number >= nativeMin(start, end) && number < nativeMax(start, end);
    }

    /**
     * The base implementation of methods like `_.intersection`, without support
     * for iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of shared values.
     */
    function baseIntersection(arrays, iteratee, comparator) {
      var includes = comparator ? arrayIncludesWith : arrayIncludes,
          length = arrays[0].length,
          othLength = arrays.length,
          othIndex = othLength,
          caches = Array(othLength),
          maxLength = Infinity,
          result = [];

      while (othIndex--) {
        var array = arrays[othIndex];
        if (othIndex && iteratee) {
          array = arrayMap(array, baseUnary(iteratee));
        }
        maxLength = nativeMin(array.length, maxLength);
        caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
          ? new SetCache(othIndex && array)
          : undefined;
      }
      array = arrays[0];

      var index = -1,
          seen = caches[0];

      outer:
      while (++index < length && result.length < maxLength) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (!(seen
              ? cacheHas(seen, computed)
              : includes(result, computed, comparator)
            )) {
          othIndex = othLength;
          while (--othIndex) {
            var cache = caches[othIndex];
            if (!(cache
                  ? cacheHas(cache, computed)
                  : includes(arrays[othIndex], computed, comparator))
                ) {
              continue outer;
            }
          }
          if (seen) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.invert` and `_.invertBy` which inverts
     * `object` with values transformed by `iteratee` and set by `setter`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform values.
     * @param {Object} accumulator The initial inverted object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseInverter(object, setter, iteratee, accumulator) {
      baseForOwn(object, function(value, key, object) {
        setter(accumulator, iteratee(value), key, object);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.invoke` without support for individual
     * method arguments.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {Array} args The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     */
    function baseInvoke(object, path, args) {
      path = castPath(path, object);
      object = parent(object, path);
      var func = object == null ? object : object[toKey(last(path))];
      return func == null ? undefined : apply(func, object, args);
    }

    /**
     * The base implementation of `_.isArguments`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     */
    function baseIsArguments(value) {
      return isObjectLike(value) && baseGetTag(value) == argsTag;
    }

    /**
     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     */
    function baseIsArrayBuffer(value) {
      return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
    }

    /**
     * The base implementation of `_.isDate` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     */
    function baseIsDate(value) {
      return isObjectLike(value) && baseGetTag(value) == dateTag;
    }

    /**
     * The base implementation of `_.isEqual` which supports partial comparisons
     * and tracks traversed objects.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Unordered comparison
     *  2 - Partial comparison
     * @param {Function} [customizer] The function to customize comparisons.
     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     */
    function baseIsEqual(value, other, bitmask, customizer, stack) {
      if (value === other) {
        return true;
      }
      if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
        return value !== value && other !== other;
      }
      return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
    }

    /**
     * A specialized version of `baseIsEqual` for arrays and objects which performs
     * deep comparisons and tracks traversed objects enabling objects with circular
     * references to be compared.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
      var objIsArr = isArray(object),
          othIsArr = isArray(other),
          objTag = objIsArr ? arrayTag : getTag(object),
          othTag = othIsArr ? arrayTag : getTag(other);

      objTag = objTag == argsTag ? objectTag : objTag;
      othTag = othTag == argsTag ? objectTag : othTag;

      var objIsObj = objTag == objectTag,
          othIsObj = othTag == objectTag,
          isSameTag = objTag == othTag;

      if (isSameTag && isBuffer(object)) {
        if (!isBuffer(other)) {
          return false;
        }
        objIsArr = true;
        objIsObj = false;
      }
      if (isSameTag && !objIsObj) {
        stack || (stack = new Stack);
        return (objIsArr || isTypedArray(object))
          ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
          : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
      }
      if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
        var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
            othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

        if (objIsWrapped || othIsWrapped) {
          var objUnwrapped = objIsWrapped ? object.value() : object,
              othUnwrapped = othIsWrapped ? other.value() : other;

          stack || (stack = new Stack);
          return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
        }
      }
      if (!isSameTag) {
        return false;
      }
      stack || (stack = new Stack);
      return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
    }

    /**
     * The base implementation of `_.isMap` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     */
    function baseIsMap(value) {
      return isObjectLike(value) && getTag(value) == mapTag;
    }

    /**
     * The base implementation of `_.isMatch` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Array} matchData The property names, values, and compare flags to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     */
    function baseIsMatch(object, source, matchData, customizer) {
      var index = matchData.length,
          length = index,
          noCustomizer = !customizer;

      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (index--) {
        var data = matchData[index];
        if ((noCustomizer && data[2])
              ? data[1] !== object[data[0]]
              : !(data[0] in object)
            ) {
          return false;
        }
      }
      while (++index < length) {
        data = matchData[index];
        var key = data[0],
            objValue = object[key],
            srcValue = data[1];

        if (noCustomizer && data[2]) {
          if (objValue === undefined && !(key in object)) {
            return false;
          }
        } else {
          var stack = new Stack;
          if (customizer) {
            var result = customizer(objValue, srcValue, key, object, source, stack);
          }
          if (!(result === undefined
                ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
                : result
              )) {
            return false;
          }
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.isNative` without bad shim checks.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     */
    function baseIsNative(value) {
      if (!isObject(value) || isMasked(value)) {
        return false;
      }
      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
      return pattern.test(toSource(value));
    }

    /**
     * The base implementation of `_.isRegExp` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     */
    function baseIsRegExp(value) {
      return isObjectLike(value) && baseGetTag(value) == regexpTag;
    }

    /**
     * The base implementation of `_.isSet` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     */
    function baseIsSet(value) {
      return isObjectLike(value) && getTag(value) == setTag;
    }

    /**
     * The base implementation of `_.isTypedArray` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     */
    function baseIsTypedArray(value) {
      return isObjectLike(value) &&
        isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
    }

    /**
     * The base implementation of `_.iteratee`.
     *
     * @private
     * @param {*} [value=_.identity] The value to convert to an iteratee.
     * @returns {Function} Returns the iteratee.
     */
    function baseIteratee(value) {
      // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
      // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
      if (typeof value == 'function') {
        return value;
      }
      if (value == null) {
        return identity;
      }
      if (typeof value == 'object') {
        return isArray(value)
          ? baseMatchesProperty(value[0], value[1])
          : baseMatches(value);
      }
      return property(value);
    }

    /**
     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeys(object) {
      if (!isPrototype(object)) {
        return nativeKeys(object);
      }
      var result = [];
      for (var key in Object(object)) {
        if (hasOwnProperty.call(object, key) && key != 'constructor') {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeysIn(object) {
      if (!isObject(object)) {
        return nativeKeysIn(object);
      }
      var isProto = isPrototype(object),
          result = [];

      for (var key in object) {
        if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.lt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     */
    function baseLt(value, other) {
      return value < other;
    }

    /**
     * The base implementation of `_.map` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     */
    function baseMap(collection, iteratee) {
      var index = -1,
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value, key, collection) {
        result[++index] = iteratee(value, key, collection);
      });
      return result;
    }

    /**
     * The base implementation of `_.matches` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatches(source) {
      var matchData = getMatchData(source);
      if (matchData.length == 1 && matchData[0][2]) {
        return matchesStrictComparable(matchData[0][0], matchData[0][1]);
      }
      return function(object) {
        return object === source || baseIsMatch(object, source, matchData);
      };
    }

    /**
     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
     *
     * @private
     * @param {string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatchesProperty(path, srcValue) {
      if (isKey(path) && isStrictComparable(srcValue)) {
        return matchesStrictComparable(toKey(path), srcValue);
      }
      return function(object) {
        var objValue = get(object, path);
        return (objValue === undefined && objValue === srcValue)
          ? hasIn(object, path)
          : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
      };
    }

    /**
     * The base implementation of `_.merge` without support for multiple sources.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} [customizer] The function to customize merged values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMerge(object, source, srcIndex, customizer, stack) {
      if (object === source) {
        return;
      }
      baseFor(source, function(srcValue, key) {
        if (isObject(srcValue)) {
          stack || (stack = new Stack);
          baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
        }
        else {
          var newValue = customizer
            ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
            : undefined;

          if (newValue === undefined) {
            newValue = srcValue;
          }
          assignMergeValue(object, key, newValue);
        }
      }, keysIn);
    }

    /**
     * A specialized version of `baseMerge` for arrays and objects which performs
     * deep merges and tracks traversed objects enabling objects with circular
     * references to be merged.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {string} key The key of the value to merge.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} mergeFunc The function to merge values.
     * @param {Function} [customizer] The function to customize assigned values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
      var objValue = safeGet(object, key),
          srcValue = safeGet(source, key),
          stacked = stack.get(srcValue);

      if (stacked) {
        assignMergeValue(object, key, stacked);
        return;
      }
      var newValue = customizer
        ? customizer(objValue, srcValue, (key + ''), object, source, stack)
        : undefined;

      var isCommon = newValue === undefined;

      if (isCommon) {
        var isArr = isArray(srcValue),
            isBuff = !isArr && isBuffer(srcValue),
            isTyped = !isArr && !isBuff && isTypedArray(srcValue);

        newValue = srcValue;
        if (isArr || isBuff || isTyped) {
          if (isArray(objValue)) {
            newValue = objValue;
          }
          else if (isArrayLikeObject(objValue)) {
            newValue = copyArray(objValue);
          }
          else if (isBuff) {
            isCommon = false;
            newValue = cloneBuffer(srcValue, true);
          }
          else if (isTyped) {
            isCommon = false;
            newValue = cloneTypedArray(srcValue, true);
          }
          else {
            newValue = [];
          }
        }
        else if (isPlainObject(srcValue) || isArguments(srcValue)) {
          newValue = objValue;
          if (isArguments(objValue)) {
            newValue = toPlainObject(objValue);
          }
          else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
            newValue = initCloneObject(srcValue);
          }
        }
        else {
          isCommon = false;
        }
      }
      if (isCommon) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, newValue);
        mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
        stack['delete'](srcValue);
      }
      assignMergeValue(object, key, newValue);
    }

    /**
     * The base implementation of `_.nth` which doesn't coerce arguments.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {number} n The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     */
    function baseNth(array, n) {
      var length = array.length;
      if (!length) {
        return;
      }
      n += n < 0 ? length : 0;
      return isIndex(n, length) ? array[n] : undefined;
    }

    /**
     * The base implementation of `_.orderBy` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
     * @param {string[]} orders The sort orders of `iteratees`.
     * @returns {Array} Returns the new sorted array.
     */
    function baseOrderBy(collection, iteratees, orders) {
      var index = -1;
      iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));

      var result = baseMap(collection, function(value, key, collection) {
        var criteria = arrayMap(iteratees, function(iteratee) {
          return iteratee(value);
        });
        return { 'criteria': criteria, 'index': ++index, 'value': value };
      });

      return baseSortBy(result, function(object, other) {
        return compareMultiple(object, other, orders);
      });
    }

    /**
     * The base implementation of `_.pick` without support for individual
     * property identifiers.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @returns {Object} Returns the new object.
     */
    function basePick(object, paths) {
      return basePickBy(object, paths, function(value, path) {
        return hasIn(object, path);
      });
    }

    /**
     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @param {Function} predicate The function invoked per property.
     * @returns {Object} Returns the new object.
     */
    function basePickBy(object, paths, predicate) {
      var index = -1,
          length = paths.length,
          result = {};

      while (++index < length) {
        var path = paths[index],
            value = baseGet(object, path);

        if (predicate(value, path)) {
          baseSet(result, castPath(path, object), value);
        }
      }
      return result;
    }

    /**
     * A specialized version of `baseProperty` which supports deep paths.
     *
     * @private
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     */
    function basePropertyDeep(path) {
      return function(object) {
        return baseGet(object, path);
      };
    }

    /**
     * The base implementation of `_.pullAllBy` without support for iteratee
     * shorthands.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     */
    function basePullAll(array, values, iteratee, comparator) {
      var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
          index = -1,
          length = values.length,
          seen = array;

      if (array === values) {
        values = copyArray(values);
      }
      if (iteratee) {
        seen = arrayMap(array, baseUnary(iteratee));
      }
      while (++index < length) {
        var fromIndex = 0,
            value = values[index],
            computed = iteratee ? iteratee(value) : value;

        while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
          if (seen !== array) {
            splice.call(seen, fromIndex, 1);
          }
          splice.call(array, fromIndex, 1);
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.pullAt` without support for individual
     * indexes or capturing the removed elements.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {number[]} indexes The indexes of elements to remove.
     * @returns {Array} Returns `array`.
     */
    function basePullAt(array, indexes) {
      var length = array ? indexes.length : 0,
          lastIndex = length - 1;

      while (length--) {
        var index = indexes[length];
        if (length == lastIndex || index !== previous) {
          var previous = index;
          if (isIndex(index)) {
            splice.call(array, index, 1);
          } else {
            baseUnset(array, index);
          }
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.random` without support for returning
     * floating-point numbers.
     *
     * @private
     * @param {number} lower The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the random number.
     */
    function baseRandom(lower, upper) {
      return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
    }

    /**
     * The base implementation of `_.range` and `_.rangeRight` which doesn't
     * coerce arguments.
     *
     * @private
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @param {number} step The value to increment or decrement by.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the range of numbers.
     */
    function baseRange(start, end, step, fromRight) {
      var index = -1,
          length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
          result = Array(length);

      while (length--) {
        result[fromRight ? length : ++index] = start;
        start += step;
      }
      return result;
    }

    /**
     * The base implementation of `_.repeat` which doesn't coerce arguments.
     *
     * @private
     * @param {string} string The string to repeat.
     * @param {number} n The number of times to repeat the string.
     * @returns {string} Returns the repeated string.
     */
    function baseRepeat(string, n) {
      var result = '';
      if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
        return result;
      }
      // Leverage the exponentiation by squaring algorithm for a faster repeat.
      // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
      do {
        if (n % 2) {
          result += string;
        }
        n = nativeFloor(n / 2);
        if (n) {
          string += string;
        }
      } while (n);

      return result;
    }

    /**
     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     */
    function baseRest(func, start) {
      return setToString(overRest(func, start, identity), func + '');
    }

    /**
     * The base implementation of `_.sample`.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     */
    function baseSample(collection) {
      return arraySample(values(collection));
    }

    /**
     * The base implementation of `_.sampleSize` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function baseSampleSize(collection, n) {
      var array = values(collection);
      return shuffleSelf(array, baseClamp(n, 0, array.length));
    }

    /**
     * The base implementation of `_.set`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseSet(object, path, value, customizer) {
      if (!isObject(object)) {
        return object;
      }
      path = castPath(path, object);

      var index = -1,
          length = path.length,
          lastIndex = length - 1,
          nested = object;

      while (nested != null && ++index < length) {
        var key = toKey(path[index]),
            newValue = value;

        if (index != lastIndex) {
          var objValue = nested[key];
          newValue = customizer ? customizer(objValue, key, nested) : undefined;
          if (newValue === undefined) {
            newValue = isObject(objValue)
              ? objValue
              : (isIndex(path[index + 1]) ? [] : {});
          }
        }
        assignValue(nested, key, newValue);
        nested = nested[key];
      }
      return object;
    }

    /**
     * The base implementation of `setData` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var baseSetData = !metaMap ? identity : function(func, data) {
      metaMap.set(func, data);
      return func;
    };

    /**
     * The base implementation of `setToString` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var baseSetToString = !defineProperty ? identity : function(func, string) {
      return defineProperty(func, 'toString', {
        'configurable': true,
        'enumerable': false,
        'value': constant(string),
        'writable': true
      });
    };

    /**
     * The base implementation of `_.shuffle`.
     *
     * @private
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function baseShuffle(collection) {
      return shuffleSelf(values(collection));
    }

    /**
     * The base implementation of `_.slice` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseSlice(array, start, end) {
      var index = -1,
          length = array.length;

      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = end > length ? length : end;
      if (end < 0) {
        end += length;
      }
      length = start > end ? 0 : ((end - start) >>> 0);
      start >>>= 0;

      var result = Array(length);
      while (++index < length) {
        result[index] = array[index + start];
      }
      return result;
    }

    /**
     * The base implementation of `_.some` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     */
    function baseSome(collection, predicate) {
      var result;

      baseEach(collection, function(value, index, collection) {
        result = predicate(value, index, collection);
        return !result;
      });
      return !!result;
    }

    /**
     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
     * performs a binary search of `array` to determine the index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndex(array, value, retHighest) {
      var low = 0,
          high = array == null ? low : array.length;

      if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
        while (low < high) {
          var mid = (low + high) >>> 1,
              computed = array[mid];

          if (computed !== null && !isSymbol(computed) &&
              (retHighest ? (computed <= value) : (computed < value))) {
            low = mid + 1;
          } else {
            high = mid;
          }
        }
        return high;
      }
      return baseSortedIndexBy(array, value, identity, retHighest);
    }

    /**
     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
     * which invokes `iteratee` for `value` and each element of `array` to compute
     * their sort ranking. The iteratee is invoked with one argument; (value).
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} iteratee The iteratee invoked per element.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndexBy(array, value, iteratee, retHighest) {
      value = iteratee(value);

      var low = 0,
          high = array == null ? 0 : array.length,
          valIsNaN = value !== value,
          valIsNull = value === null,
          valIsSymbol = isSymbol(value),
          valIsUndefined = value === undefined;

      while (low < high) {
        var mid = nativeFloor((low + high) / 2),
            computed = iteratee(array[mid]),
            othIsDefined = computed !== undefined,
            othIsNull = computed === null,
            othIsReflexive = computed === computed,
            othIsSymbol = isSymbol(computed);

        if (valIsNaN) {
          var setLow = retHighest || othIsReflexive;
        } else if (valIsUndefined) {
          setLow = othIsReflexive && (retHighest || othIsDefined);
        } else if (valIsNull) {
          setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
        } else if (valIsSymbol) {
          setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
        } else if (othIsNull || othIsSymbol) {
          setLow = false;
        } else {
          setLow = retHighest ? (computed <= value) : (computed < value);
        }
        if (setLow) {
          low = mid + 1;
        } else {
          high = mid;
        }
      }
      return nativeMin(high, MAX_ARRAY_INDEX);
    }

    /**
     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
     * support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseSortedUniq(array, iteratee) {
      var index = -1,
          length = array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        if (!index || !eq(computed, seen)) {
          var seen = computed;
          result[resIndex++] = value === 0 ? 0 : value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.toNumber` which doesn't ensure correct
     * conversions of binary, hexadecimal, or octal string values.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     */
    function baseToNumber(value) {
      if (typeof value == 'number') {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      return +value;
    }

    /**
     * The base implementation of `_.toString` which doesn't convert nullish
     * values to empty strings.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {string} Returns the string.
     */
    function baseToString(value) {
      // Exit early for strings to avoid a performance hit in some environments.
      if (typeof value == 'string') {
        return value;
      }
      if (isArray(value)) {
        // Recursively convert values (susceptible to call stack limits).
        return arrayMap(value, baseToString) + '';
      }
      if (isSymbol(value)) {
        return symbolToString ? symbolToString.call(value) : '';
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseUniq(array, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          length = array.length,
          isCommon = true,
          result = [],
          seen = result;

      if (comparator) {
        isCommon = false;
        includes = arrayIncludesWith;
      }
      else if (length >= LARGE_ARRAY_SIZE) {
        var set = iteratee ? null : createSet(array);
        if (set) {
          return setToArray(set);
        }
        isCommon = false;
        includes = cacheHas;
        seen = new SetCache;
      }
      else {
        seen = iteratee ? [] : result;
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var seenIndex = seen.length;
          while (seenIndex--) {
            if (seen[seenIndex] === computed) {
              continue outer;
            }
          }
          if (iteratee) {
            seen.push(computed);
          }
          result.push(value);
        }
        else if (!includes(seen, computed, comparator)) {
          if (seen !== result) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.unset`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The property path to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     */
    function baseUnset(object, path) {
      path = castPath(path, object);
      object = parent(object, path);
      return object == null || delete object[toKey(last(path))];
    }

    /**
     * The base implementation of `_.update`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to update.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseUpdate(object, path, updater, customizer) {
      return baseSet(object, path, updater(baseGet(object, path)), customizer);
    }

    /**
     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
     * without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {Function} predicate The function invoked per iteration.
     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseWhile(array, predicate, isDrop, fromRight) {
      var length = array.length,
          index = fromRight ? length : -1;

      while ((fromRight ? index-- : ++index < length) &&
        predicate(array[index], index, array)) {}

      return isDrop
        ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
        : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
    }

    /**
     * The base implementation of `wrapperValue` which returns the result of
     * performing a sequence of actions on the unwrapped `value`, where each
     * successive action is supplied the return value of the previous.
     *
     * @private
     * @param {*} value The unwrapped value.
     * @param {Array} actions Actions to perform to resolve the unwrapped value.
     * @returns {*} Returns the resolved value.
     */
    function baseWrapperValue(value, actions) {
      var result = value;
      if (result instanceof LazyWrapper) {
        result = result.value();
      }
      return arrayReduce(actions, function(result, action) {
        return action.func.apply(action.thisArg, arrayPush([result], action.args));
      }, result);
    }

    /**
     * The base implementation of methods like `_.xor`, without support for
     * iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of values.
     */
    function baseXor(arrays, iteratee, comparator) {
      var length = arrays.length;
      if (length < 2) {
        return length ? baseUniq(arrays[0]) : [];
      }
      var index = -1,
          result = Array(length);

      while (++index < length) {
        var array = arrays[index],
            othIndex = -1;

        while (++othIndex < length) {
          if (othIndex != index) {
            result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
          }
        }
      }
      return baseUniq(baseFlatten(result, 1), iteratee, comparator);
    }

    /**
     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
     *
     * @private
     * @param {Array} props The property identifiers.
     * @param {Array} values The property values.
     * @param {Function} assignFunc The function to assign values.
     * @returns {Object} Returns the new object.
     */
    function baseZipObject(props, values, assignFunc) {
      var index = -1,
          length = props.length,
          valsLength = values.length,
          result = {};

      while (++index < length) {
        var value = index < valsLength ? values[index] : undefined;
        assignFunc(result, props[index], value);
      }
      return result;
    }

    /**
     * Casts `value` to an empty array if it's not an array like object.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Array|Object} Returns the cast array-like object.
     */
    function castArrayLikeObject(value) {
      return isArrayLikeObject(value) ? value : [];
    }

    /**
     * Casts `value` to `identity` if it's not a function.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Function} Returns cast function.
     */
    function castFunction(value) {
      return typeof value == 'function' ? value : identity;
    }

    /**
     * Casts `value` to a path array if it's not one.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {Object} [object] The object to query keys on.
     * @returns {Array} Returns the cast property path array.
     */
    function castPath(value, object) {
      if (isArray(value)) {
        return value;
      }
      return isKey(value, object) ? [value] : stringToPath(toString(value));
    }

    /**
     * A `baseRest` alias which can be replaced with `identity` by module
     * replacement plugins.
     *
     * @private
     * @type {Function}
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */
    var castRest = baseRest;

    /**
     * Casts `array` to a slice if it's needed.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {number} start The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the cast slice.
     */
    function castSlice(array, start, end) {
      var length = array.length;
      end = end === undefined ? length : end;
      return (!start && end >= length) ? array : baseSlice(array, start, end);
    }

    /**
     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
     *
     * @private
     * @param {number|Object} id The timer id or timeout object of the timer to clear.
     */
    var clearTimeout = ctxClearTimeout || function(id) {
      return root.clearTimeout(id);
    };

    /**
     * Creates a clone of  `buffer`.
     *
     * @private
     * @param {Buffer} buffer The buffer to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Buffer} Returns the cloned buffer.
     */
    function cloneBuffer(buffer, isDeep) {
      if (isDeep) {
        return buffer.slice();
      }
      var length = buffer.length,
          result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

      buffer.copy(result);
      return result;
    }

    /**
     * Creates a clone of `arrayBuffer`.
     *
     * @private
     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
     * @returns {ArrayBuffer} Returns the cloned array buffer.
     */
    function cloneArrayBuffer(arrayBuffer) {
      var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
      new Uint8Array(result).set(new Uint8Array(arrayBuffer));
      return result;
    }

    /**
     * Creates a clone of `dataView`.
     *
     * @private
     * @param {Object} dataView The data view to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned data view.
     */
    function cloneDataView(dataView, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
      return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
    }

    /**
     * Creates a clone of `regexp`.
     *
     * @private
     * @param {Object} regexp The regexp to clone.
     * @returns {Object} Returns the cloned regexp.
     */
    function cloneRegExp(regexp) {
      var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
      result.lastIndex = regexp.lastIndex;
      return result;
    }

    /**
     * Creates a clone of the `symbol` object.
     *
     * @private
     * @param {Object} symbol The symbol object to clone.
     * @returns {Object} Returns the cloned symbol object.
     */
    function cloneSymbol(symbol) {
      return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
    }

    /**
     * Creates a clone of `typedArray`.
     *
     * @private
     * @param {Object} typedArray The typed array to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned typed array.
     */
    function cloneTypedArray(typedArray, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
      return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
    }

    /**
     * Compares values to sort them in ascending order.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {number} Returns the sort order indicator for `value`.
     */
    function compareAscending(value, other) {
      if (value !== other) {
        var valIsDefined = value !== undefined,
            valIsNull = value === null,
            valIsReflexive = value === value,
            valIsSymbol = isSymbol(value);

        var othIsDefined = other !== undefined,
            othIsNull = other === null,
            othIsReflexive = other === other,
            othIsSymbol = isSymbol(other);

        if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
            (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
            (valIsNull && othIsDefined && othIsReflexive) ||
            (!valIsDefined && othIsReflexive) ||
            !valIsReflexive) {
          return 1;
        }
        if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
            (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
            (othIsNull && valIsDefined && valIsReflexive) ||
            (!othIsDefined && valIsReflexive) ||
            !othIsReflexive) {
          return -1;
        }
      }
      return 0;
    }

    /**
     * Used by `_.orderBy` to compare multiple properties of a value to another
     * and stable sort them.
     *
     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
     * specify an order of "desc" for descending or "asc" for ascending sort order
     * of corresponding values.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {boolean[]|string[]} orders The order to sort by for each property.
     * @returns {number} Returns the sort order indicator for `object`.
     */
    function compareMultiple(object, other, orders) {
      var index = -1,
          objCriteria = object.criteria,
          othCriteria = other.criteria,
          length = objCriteria.length,
          ordersLength = orders.length;

      while (++index < length) {
        var result = compareAscending(objCriteria[index], othCriteria[index]);
        if (result) {
          if (index >= ordersLength) {
            return result;
          }
          var order = orders[index];
          return result * (order == 'desc' ? -1 : 1);
        }
      }
      // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
      // that causes it, under certain circumstances, to provide the same value for
      // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
      // for more details.
      //
      // This also ensures a stable sort in V8 and other engines.
      // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
      return object.index - other.index;
    }

    /**
     * Creates an array that is the composition of partially applied arguments,
     * placeholders, and provided arguments into a single array of arguments.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to prepend to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgs(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersLength = holders.length,
          leftIndex = -1,
          leftLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(leftLength + rangeLength),
          isUncurried = !isCurried;

      while (++leftIndex < leftLength) {
        result[leftIndex] = partials[leftIndex];
      }
      while (++argsIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[holders[argsIndex]] = args[argsIndex];
        }
      }
      while (rangeLength--) {
        result[leftIndex++] = args[argsIndex++];
      }
      return result;
    }

    /**
     * This function is like `composeArgs` except that the arguments composition
     * is tailored for `_.partialRight`.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to append to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgsRight(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersIndex = -1,
          holdersLength = holders.length,
          rightIndex = -1,
          rightLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(rangeLength + rightLength),
          isUncurried = !isCurried;

      while (++argsIndex < rangeLength) {
        result[argsIndex] = args[argsIndex];
      }
      var offset = argsIndex;
      while (++rightIndex < rightLength) {
        result[offset + rightIndex] = partials[rightIndex];
      }
      while (++holdersIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[offset + holders[holdersIndex]] = args[argsIndex++];
        }
      }
      return result;
    }

    /**
     * Copies the values of `source` to `array`.
     *
     * @private
     * @param {Array} source The array to copy values from.
     * @param {Array} [array=[]] The array to copy values to.
     * @returns {Array} Returns `array`.
     */
    function copyArray(source, array) {
      var index = -1,
          length = source.length;

      array || (array = Array(length));
      while (++index < length) {
        array[index] = source[index];
      }
      return array;
    }

    /**
     * Copies properties of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy properties from.
     * @param {Array} props The property identifiers to copy.
     * @param {Object} [object={}] The object to copy properties to.
     * @param {Function} [customizer] The function to customize copied values.
     * @returns {Object} Returns `object`.
     */
    function copyObject(source, props, object, customizer) {
      var isNew = !object;
      object || (object = {});

      var index = -1,
          length = props.length;

      while (++index < length) {
        var key = props[index];

        var newValue = customizer
          ? customizer(object[key], source[key], key, object, source)
          : undefined;

        if (newValue === undefined) {
          newValue = source[key];
        }
        if (isNew) {
          baseAssignValue(object, key, newValue);
        } else {
          assignValue(object, key, newValue);
        }
      }
      return object;
    }

    /**
     * Copies own symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbols(source, object) {
      return copyObject(source, getSymbols(source), object);
    }

    /**
     * Copies own and inherited symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbolsIn(source, object) {
      return copyObject(source, getSymbolsIn(source), object);
    }

    /**
     * Creates a function like `_.groupBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} [initializer] The accumulator object initializer.
     * @returns {Function} Returns the new aggregator function.
     */
    function createAggregator(setter, initializer) {
      return function(collection, iteratee) {
        var func = isArray(collection) ? arrayAggregator : baseAggregator,
            accumulator = initializer ? initializer() : {};

        return func(collection, setter, getIteratee(iteratee, 2), accumulator);
      };
    }

    /**
     * Creates a function like `_.assign`.
     *
     * @private
     * @param {Function} assigner The function to assign values.
     * @returns {Function} Returns the new assigner function.
     */
    function createAssigner(assigner) {
      return baseRest(function(object, sources) {
        var index = -1,
            length = sources.length,
            customizer = length > 1 ? sources[length - 1] : undefined,
            guard = length > 2 ? sources[2] : undefined;

        customizer = (assigner.length > 3 && typeof customizer == 'function')
          ? (length--, customizer)
          : undefined;

        if (guard && isIterateeCall(sources[0], sources[1], guard)) {
          customizer = length < 3 ? undefined : customizer;
          length = 1;
        }
        object = Object(object);
        while (++index < length) {
          var source = sources[index];
          if (source) {
            assigner(object, source, index, customizer);
          }
        }
        return object;
      });
    }

    /**
     * Creates a `baseEach` or `baseEachRight` function.
     *
     * @private
     * @param {Function} eachFunc The function to iterate over a collection.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseEach(eachFunc, fromRight) {
      return function(collection, iteratee) {
        if (collection == null) {
          return collection;
        }
        if (!isArrayLike(collection)) {
          return eachFunc(collection, iteratee);
        }
        var length = collection.length,
            index = fromRight ? length : -1,
            iterable = Object(collection);

        while ((fromRight ? index-- : ++index < length)) {
          if (iteratee(iterable[index], index, iterable) === false) {
            break;
          }
        }
        return collection;
      };
    }

    /**
     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseFor(fromRight) {
      return function(object, iteratee, keysFunc) {
        var index = -1,
            iterable = Object(object),
            props = keysFunc(object),
            length = props.length;

        while (length--) {
          var key = props[fromRight ? length : ++index];
          if (iteratee(iterable[key], key, iterable) === false) {
            break;
          }
        }
        return object;
      };
    }

    /**
     * Creates a function that wraps `func` to invoke it with the optional `this`
     * binding of `thisArg`.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createBind(func, bitmask, thisArg) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return fn.apply(isBind ? thisArg : this, arguments);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.lowerFirst`.
     *
     * @private
     * @param {string} methodName The name of the `String` case method to use.
     * @returns {Function} Returns the new case function.
     */
    function createCaseFirst(methodName) {
      return function(string) {
        string = toString(string);

        var strSymbols = hasUnicode(string)
          ? stringToArray(string)
          : undefined;

        var chr = strSymbols
          ? strSymbols[0]
          : string.charAt(0);

        var trailing = strSymbols
          ? castSlice(strSymbols, 1).join('')
          : string.slice(1);

        return chr[methodName]() + trailing;
      };
    }

    /**
     * Creates a function like `_.camelCase`.
     *
     * @private
     * @param {Function} callback The function to combine each word.
     * @returns {Function} Returns the new compounder function.
     */
    function createCompounder(callback) {
      return function(string) {
        return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
      };
    }

    /**
     * Creates a function that produces an instance of `Ctor` regardless of
     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
     *
     * @private
     * @param {Function} Ctor The constructor to wrap.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCtor(Ctor) {
      return function() {
        // Use a `switch` statement to work with class constructors. See
        // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
        // for more details.
        var args = arguments;
        switch (args.length) {
          case 0: return new Ctor;
          case 1: return new Ctor(args[0]);
          case 2: return new Ctor(args[0], args[1]);
          case 3: return new Ctor(args[0], args[1], args[2]);
          case 4: return new Ctor(args[0], args[1], args[2], args[3]);
          case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
          case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
          case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
        }
        var thisBinding = baseCreate(Ctor.prototype),
            result = Ctor.apply(thisBinding, args);

        // Mimic the constructor's `return` behavior.
        // See https://es5.github.io/#x13.2.2 for more details.
        return isObject(result) ? result : thisBinding;
      };
    }

    /**
     * Creates a function that wraps `func` to enable currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {number} arity The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCurry(func, bitmask, arity) {
      var Ctor = createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length,
            placeholder = getHolder(wrapper);

        while (index--) {
          args[index] = arguments[index];
        }
        var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
          ? []
          : replaceHolders(args, placeholder);

        length -= holders.length;
        if (length < arity) {
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, undefined,
            args, holders, undefined, undefined, arity - length);
        }
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return apply(fn, this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.find` or `_.findLast` function.
     *
     * @private
     * @param {Function} findIndexFunc The function to find the collection index.
     * @returns {Function} Returns the new find function.
     */
    function createFind(findIndexFunc) {
      return function(collection, predicate, fromIndex) {
        var iterable = Object(collection);
        if (!isArrayLike(collection)) {
          var iteratee = getIteratee(predicate, 3);
          collection = keys(collection);
          predicate = function(key) { return iteratee(iterable[key], key, iterable); };
        }
        var index = findIndexFunc(collection, predicate, fromIndex);
        return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
      };
    }

    /**
     * Creates a `_.flow` or `_.flowRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new flow function.
     */
    function createFlow(fromRight) {
      return flatRest(function(funcs) {
        var length = funcs.length,
            index = length,
            prereq = LodashWrapper.prototype.thru;

        if (fromRight) {
          funcs.reverse();
        }
        while (index--) {
          var func = funcs[index];
          if (typeof func != 'function') {
            throw new TypeError(FUNC_ERROR_TEXT);
          }
          if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
            var wrapper = new LodashWrapper([], true);
          }
        }
        index = wrapper ? index : length;
        while (++index < length) {
          func = funcs[index];

          var funcName = getFuncName(func),
              data = funcName == 'wrapper' ? getData(func) : undefined;

          if (data && isLaziable(data[0]) &&
                data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
                !data[4].length && data[9] == 1
              ) {
            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
          } else {
            wrapper = (func.length == 1 && isLaziable(func))
              ? wrapper[funcName]()
              : wrapper.thru(func);
          }
        }
        return function() {
          var args = arguments,
              value = args[0];

          if (wrapper && args.length == 1 && isArray(value)) {
            return wrapper.plant(value).value();
          }
          var index = 0,
              result = length ? funcs[index].apply(this, args) : value;

          while (++index < length) {
            result = funcs[index].call(this, result);
          }
          return result;
        };
      });
    }

    /**
     * Creates a function that wraps `func` to invoke it with optional `this`
     * binding of `thisArg`, partial application, and currying.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [partialsRight] The arguments to append to those provided
     *  to the new function.
     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
      var isAry = bitmask & WRAP_ARY_FLAG,
          isBind = bitmask & WRAP_BIND_FLAG,
          isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
          isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
          isFlip = bitmask & WRAP_FLIP_FLAG,
          Ctor = isBindKey ? undefined : createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length;

        while (index--) {
          args[index] = arguments[index];
        }
        if (isCurried) {
          var placeholder = getHolder(wrapper),
              holdersCount = countHolders(args, placeholder);
        }
        if (partials) {
          args = composeArgs(args, partials, holders, isCurried);
        }
        if (partialsRight) {
          args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
        }
        length -= holdersCount;
        if (isCurried && length < arity) {
          var newHolders = replaceHolders(args, placeholder);
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, thisArg,
            args, newHolders, argPos, ary, arity - length
          );
        }
        var thisBinding = isBind ? thisArg : this,
            fn = isBindKey ? thisBinding[func] : func;

        length = args.length;
        if (argPos) {
          args = reorder(args, argPos);
        } else if (isFlip && length > 1) {
          args.reverse();
        }
        if (isAry && ary < length) {
          args.length = ary;
        }
        if (this && this !== root && this instanceof wrapper) {
          fn = Ctor || createCtor(fn);
        }
        return fn.apply(thisBinding, args);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.invertBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} toIteratee The function to resolve iteratees.
     * @returns {Function} Returns the new inverter function.
     */
    function createInverter(setter, toIteratee) {
      return function(object, iteratee) {
        return baseInverter(object, setter, toIteratee(iteratee), {});
      };
    }

    /**
     * Creates a function that performs a mathematical operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @param {number} [defaultValue] The value used for `undefined` arguments.
     * @returns {Function} Returns the new mathematical operation function.
     */
    function createMathOperation(operator, defaultValue) {
      return function(value, other) {
        var result;
        if (value === undefined && other === undefined) {
          return defaultValue;
        }
        if (value !== undefined) {
          result = value;
        }
        if (other !== undefined) {
          if (result === undefined) {
            return other;
          }
          if (typeof value == 'string' || typeof other == 'string') {
            value = baseToString(value);
            other = baseToString(other);
          } else {
            value = baseToNumber(value);
            other = baseToNumber(other);
          }
          result = operator(value, other);
        }
        return result;
      };
    }

    /**
     * Creates a function like `_.over`.
     *
     * @private
     * @param {Function} arrayFunc The function to iterate over iteratees.
     * @returns {Function} Returns the new over function.
     */
    function createOver(arrayFunc) {
      return flatRest(function(iteratees) {
        iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
        return baseRest(function(args) {
          var thisArg = this;
          return arrayFunc(iteratees, function(iteratee) {
            return apply(iteratee, thisArg, args);
          });
        });
      });
    }

    /**
     * Creates the padding for `string` based on `length`. The `chars` string
     * is truncated if the number of characters exceeds `length`.
     *
     * @private
     * @param {number} length The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padding for `string`.
     */
    function createPadding(length, chars) {
      chars = chars === undefined ? ' ' : baseToString(chars);

      var charsLength = chars.length;
      if (charsLength < 2) {
        return charsLength ? baseRepeat(chars, length) : chars;
      }
      var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
      return hasUnicode(chars)
        ? castSlice(stringToArray(result), 0, length).join('')
        : result.slice(0, length);
    }

    /**
     * Creates a function that wraps `func` to invoke it with the `this` binding
     * of `thisArg` and `partials` prepended to the arguments it receives.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {Array} partials The arguments to prepend to those provided to
     *  the new function.
     * @returns {Function} Returns the new wrapped function.
     */
    function createPartial(func, bitmask, thisArg, partials) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var argsIndex = -1,
            argsLength = arguments.length,
            leftIndex = -1,
            leftLength = partials.length,
            args = Array(leftLength + argsLength),
            fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;

        while (++leftIndex < leftLength) {
          args[leftIndex] = partials[leftIndex];
        }
        while (argsLength--) {
          args[leftIndex++] = arguments[++argsIndex];
        }
        return apply(fn, isBind ? thisArg : this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.range` or `_.rangeRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new range function.
     */
    function createRange(fromRight) {
      return function(start, end, step) {
        if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
          end = step = undefined;
        }
        // Ensure the sign of `-0` is preserved.
        start = toFinite(start);
        if (end === undefined) {
          end = start;
          start = 0;
        } else {
          end = toFinite(end);
        }
        step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
        return baseRange(start, end, step, fromRight);
      };
    }

    /**
     * Creates a function that performs a relational operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @returns {Function} Returns the new relational operation function.
     */
    function createRelationalOperation(operator) {
      return function(value, other) {
        if (!(typeof value == 'string' && typeof other == 'string')) {
          value = toNumber(value);
          other = toNumber(other);
        }
        return operator(value, other);
      };
    }

    /**
     * Creates a function that wraps `func` to continue currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {Function} wrapFunc The function to create the `func` wrapper.
     * @param {*} placeholder The placeholder value.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
      var isCurry = bitmask & WRAP_CURRY_FLAG,
          newHolders = isCurry ? holders : undefined,
          newHoldersRight = isCurry ? undefined : holders,
          newPartials = isCurry ? partials : undefined,
          newPartialsRight = isCurry ? undefined : partials;

      bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
      bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);

      if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
        bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
      }
      var newData = [
        func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
        newHoldersRight, argPos, ary, arity
      ];

      var result = wrapFunc.apply(undefined, newData);
      if (isLaziable(func)) {
        setData(result, newData);
      }
      result.placeholder = placeholder;
      return setWrapToString(result, func, bitmask);
    }

    /**
     * Creates a function like `_.round`.
     *
     * @private
     * @param {string} methodName The name of the `Math` method to use when rounding.
     * @returns {Function} Returns the new round function.
     */
    function createRound(methodName) {
      var func = Math[methodName];
      return function(number, precision) {
        number = toNumber(number);
        precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
        if (precision) {
          // Shift with exponential notation to avoid floating-point issues.
          // See [MDN](https://mdn.io/round#Examples) for more details.
          var pair = (toString(number) + 'e').split('e'),
              value = func(pair[0] + 'e' + (+pair[1] + precision));

          pair = (toString(value) + 'e').split('e');
          return +(pair[0] + 'e' + (+pair[1] - precision));
        }
        return func(number);
      };
    }

    /**
     * Creates a set object of `values`.
     *
     * @private
     * @param {Array} values The values to add to the set.
     * @returns {Object} Returns the new set.
     */
    var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
      return new Set(values);
    };

    /**
     * Creates a `_.toPairs` or `_.toPairsIn` function.
     *
     * @private
     * @param {Function} keysFunc The function to get the keys of a given object.
     * @returns {Function} Returns the new pairs function.
     */
    function createToPairs(keysFunc) {
      return function(object) {
        var tag = getTag(object);
        if (tag == mapTag) {
          return mapToArray(object);
        }
        if (tag == setTag) {
          return setToPairs(object);
        }
        return baseToPairs(object, keysFunc(object));
      };
    }

    /**
     * Creates a function that either curries or invokes `func` with optional
     * `this` binding and partially applied arguments.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags.
     *    1 - `_.bind`
     *    2 - `_.bindKey`
     *    4 - `_.curry` or `_.curryRight` of a bound function
     *    8 - `_.curry`
     *   16 - `_.curryRight`
     *   32 - `_.partial`
     *   64 - `_.partialRight`
     *  128 - `_.rearg`
     *  256 - `_.ary`
     *  512 - `_.flip`
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to be partially applied.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
      var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
      if (!isBindKey && typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      var length = partials ? partials.length : 0;
      if (!length) {
        bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
        partials = holders = undefined;
      }
      ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
      arity = arity === undefined ? arity : toInteger(arity);
      length -= holders ? holders.length : 0;

      if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
        var partialsRight = partials,
            holdersRight = holders;

        partials = holders = undefined;
      }
      var data = isBindKey ? undefined : getData(func);

      var newData = [
        func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
        argPos, ary, arity
      ];

      if (data) {
        mergeData(newData, data);
      }
      func = newData[0];
      bitmask = newData[1];
      thisArg = newData[2];
      partials = newData[3];
      holders = newData[4];
      arity = newData[9] = newData[9] === undefined
        ? (isBindKey ? 0 : func.length)
        : nativeMax(newData[9] - length, 0);

      if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
        bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
      }
      if (!bitmask || bitmask == WRAP_BIND_FLAG) {
        var result = createBind(func, bitmask, thisArg);
      } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
        result = createCurry(func, bitmask, arity);
      } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
        result = createPartial(func, bitmask, thisArg, partials);
      } else {
        result = createHybrid.apply(undefined, newData);
      }
      var setter = data ? baseSetData : setData;
      return setWrapToString(setter(result, newData), func, bitmask);
    }

    /**
     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
     * of source objects to the destination object for all destination properties
     * that resolve to `undefined`.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to assign.
     * @param {Object} object The parent object of `objValue`.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsAssignIn(objValue, srcValue, key, object) {
      if (objValue === undefined ||
          (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
        return srcValue;
      }
      return objValue;
    }

    /**
     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
     * objects into destination objects that are passed thru.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to merge.
     * @param {Object} object The parent object of `objValue`.
     * @param {Object} source The parent object of `srcValue`.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
      if (isObject(objValue) && isObject(srcValue)) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, objValue);
        baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
        stack['delete'](srcValue);
      }
      return objValue;
    }

    /**
     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
     * objects.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {string} key The key of the property to inspect.
     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
     */
    function customOmitClone(value) {
      return isPlainObject(value) ? undefined : value;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for arrays with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Array} array The array to compare.
     * @param {Array} other The other array to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `array` and `other` objects.
     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
     */
    function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
          arrLength = array.length,
          othLength = other.length;

      if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(array);
      if (stacked && stack.get(other)) {
        return stacked == other;
      }
      var index = -1,
          result = true,
          seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;

      stack.set(array, other);
      stack.set(other, array);

      // Ignore non-index properties.
      while (++index < arrLength) {
        var arrValue = array[index],
            othValue = other[index];

        if (customizer) {
          var compared = isPartial
            ? customizer(othValue, arrValue, index, other, array, stack)
            : customizer(arrValue, othValue, index, array, other, stack);
        }
        if (compared !== undefined) {
          if (compared) {
            continue;
          }
          result = false;
          break;
        }
        // Recursively compare arrays (susceptible to call stack limits).
        if (seen) {
          if (!arraySome(other, function(othValue, othIndex) {
                if (!cacheHas(seen, othIndex) &&
                    (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
                  return seen.push(othIndex);
                }
              })) {
            result = false;
            break;
          }
        } else if (!(
              arrValue === othValue ||
                equalFunc(arrValue, othValue, bitmask, customizer, stack)
            )) {
          result = false;
          break;
        }
      }
      stack['delete'](array);
      stack['delete'](other);
      return result;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for comparing objects of
     * the same `toStringTag`.
     *
     * **Note:** This function only supports comparing values with tags of
     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {string} tag The `toStringTag` of the objects to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
      switch (tag) {
        case dataViewTag:
          if ((object.byteLength != other.byteLength) ||
              (object.byteOffset != other.byteOffset)) {
            return false;
          }
          object = object.buffer;
          other = other.buffer;

        case arrayBufferTag:
          if ((object.byteLength != other.byteLength) ||
              !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
            return false;
          }
          return true;

        case boolTag:
        case dateTag:
        case numberTag:
          // Coerce booleans to `1` or `0` and dates to milliseconds.
          // Invalid dates are coerced to `NaN`.
          return eq(+object, +other);

        case errorTag:
          return object.name == other.name && object.message == other.message;

        case regexpTag:
        case stringTag:
          // Coerce regexes to strings and treat strings, primitives and objects,
          // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
          // for more details.
          return object == (other + '');

        case mapTag:
          var convert = mapToArray;

        case setTag:
          var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
          convert || (convert = setToArray);

          if (object.size != other.size && !isPartial) {
            return false;
          }
          // Assume cyclic values are equal.
          var stacked = stack.get(object);
          if (stacked) {
            return stacked == other;
          }
          bitmask |= COMPARE_UNORDERED_FLAG;

          // Recursively compare objects (susceptible to call stack limits).
          stack.set(object, other);
          var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
          stack['delete'](object);
          return result;

        case symbolTag:
          if (symbolValueOf) {
            return symbolValueOf.call(object) == symbolValueOf.call(other);
          }
      }
      return false;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for objects with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
          objProps = getAllKeys(object),
          objLength = objProps.length,
          othProps = getAllKeys(other),
          othLength = othProps.length;

      if (objLength != othLength && !isPartial) {
        return false;
      }
      var index = objLength;
      while (index--) {
        var key = objProps[index];
        if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
          return false;
        }
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked && stack.get(other)) {
        return stacked == other;
      }
      var result = true;
      stack.set(object, other);
      stack.set(other, object);

      var skipCtor = isPartial;
      while (++index < objLength) {
        key = objProps[index];
        var objValue = object[key],
            othValue = other[key];

        if (customizer) {
          var compared = isPartial
            ? customizer(othValue, objValue, key, other, object, stack)
            : customizer(objValue, othValue, key, object, other, stack);
        }
        // Recursively compare objects (susceptible to call stack limits).
        if (!(compared === undefined
              ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
              : compared
            )) {
          result = false;
          break;
        }
        skipCtor || (skipCtor = key == 'constructor');
      }
      if (result && !skipCtor) {
        var objCtor = object.constructor,
            othCtor = other.constructor;

        // Non `Object` object instances with different constructors are not equal.
        if (objCtor != othCtor &&
            ('constructor' in object && 'constructor' in other) &&
            !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
              typeof othCtor == 'function' && othCtor instanceof othCtor)) {
          result = false;
        }
      }
      stack['delete'](object);
      stack['delete'](other);
      return result;
    }

    /**
     * A specialized version of `baseRest` which flattens the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */
    function flatRest(func) {
      return setToString(overRest(func, undefined, flatten), func + '');
    }

    /**
     * Creates an array of own enumerable property names and symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function getAllKeys(object) {
      return baseGetAllKeys(object, keys, getSymbols);
    }

    /**
     * Creates an array of own and inherited enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function getAllKeysIn(object) {
      return baseGetAllKeys(object, keysIn, getSymbolsIn);
    }

    /**
     * Gets metadata for `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {*} Returns the metadata for `func`.
     */
    var getData = !metaMap ? noop : function(func) {
      return metaMap.get(func);
    };

    /**
     * Gets the name of `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {string} Returns the function name.
     */
    function getFuncName(func) {
      var result = (func.name + ''),
          array = realNames[result],
          length = hasOwnProperty.call(realNames, result) ? array.length : 0;

      while (length--) {
        var data = array[length],
            otherFunc = data.func;
        if (otherFunc == null || otherFunc == func) {
          return data.name;
        }
      }
      return result;
    }

    /**
     * Gets the argument placeholder value for `func`.
     *
     * @private
     * @param {Function} func The function to inspect.
     * @returns {*} Returns the placeholder value.
     */
    function getHolder(func) {
      var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
      return object.placeholder;
    }

    /**
     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
     * this function returns the custom method, otherwise it returns `baseIteratee`.
     * If arguments are provided, the chosen function is invoked with them and
     * its result is returned.
     *
     * @private
     * @param {*} [value] The value to convert to an iteratee.
     * @param {number} [arity] The arity of the created iteratee.
     * @returns {Function} Returns the chosen function or its result.
     */
    function getIteratee() {
      var result = lodash.iteratee || iteratee;
      result = result === iteratee ? baseIteratee : result;
      return arguments.length ? result(arguments[0], arguments[1]) : result;
    }

    /**
     * Gets the data for `map`.
     *
     * @private
     * @param {Object} map The map to query.
     * @param {string} key The reference key.
     * @returns {*} Returns the map data.
     */
    function getMapData(map, key) {
      var data = map.__data__;
      return isKeyable(key)
        ? data[typeof key == 'string' ? 'string' : 'hash']
        : data.map;
    }

    /**
     * Gets the property names, values, and compare flags of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the match data of `object`.
     */
    function getMatchData(object) {
      var result = keys(object),
          length = result.length;

      while (length--) {
        var key = result[length],
            value = object[key];

        result[length] = [key, value, isStrictComparable(value)];
      }
      return result;
    }

    /**
     * Gets the native function at `key` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the method to get.
     * @returns {*} Returns the function if it's native, else `undefined`.
     */
    function getNative(object, key) {
      var value = getValue(object, key);
      return baseIsNative(value) ? value : undefined;
    }

    /**
     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the raw `toStringTag`.
     */
    function getRawTag(value) {
      var isOwn = hasOwnProperty.call(value, symToStringTag),
          tag = value[symToStringTag];

      try {
        value[symToStringTag] = undefined;
        var unmasked = true;
      } catch (e) {}

      var result = nativeObjectToString.call(value);
      if (unmasked) {
        if (isOwn) {
          value[symToStringTag] = tag;
        } else {
          delete value[symToStringTag];
        }
      }
      return result;
    }

    /**
     * Creates an array of the own enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
      if (object == null) {
        return [];
      }
      object = Object(object);
      return arrayFilter(nativeGetSymbols(object), function(symbol) {
        return propertyIsEnumerable.call(object, symbol);
      });
    };

    /**
     * Creates an array of the own and inherited enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
      var result = [];
      while (object) {
        arrayPush(result, getSymbols(object));
        object = getPrototype(object);
      }
      return result;
    };

    /**
     * Gets the `toStringTag` of `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    var getTag = baseGetTag;

    // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
    if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
        (Map && getTag(new Map) != mapTag) ||
        (Promise && getTag(Promise.resolve()) != promiseTag) ||
        (Set && getTag(new Set) != setTag) ||
        (WeakMap && getTag(new WeakMap) != weakMapTag)) {
      getTag = function(value) {
        var result = baseGetTag(value),
            Ctor = result == objectTag ? value.constructor : undefined,
            ctorString = Ctor ? toSource(Ctor) : '';

        if (ctorString) {
          switch (ctorString) {
            case dataViewCtorString: return dataViewTag;
            case mapCtorString: return mapTag;
            case promiseCtorString: return promiseTag;
            case setCtorString: return setTag;
            case weakMapCtorString: return weakMapTag;
          }
        }
        return result;
      };
    }

    /**
     * Gets the view, applying any `transforms` to the `start` and `end` positions.
     *
     * @private
     * @param {number} start The start of the view.
     * @param {number} end The end of the view.
     * @param {Array} transforms The transformations to apply to the view.
     * @returns {Object} Returns an object containing the `start` and `end`
     *  positions of the view.
     */
    function getView(start, end, transforms) {
      var index = -1,
          length = transforms.length;

      while (++index < length) {
        var data = transforms[index],
            size = data.size;

        switch (data.type) {
          case 'drop':      start += size; break;
          case 'dropRight': end -= size; break;
          case 'take':      end = nativeMin(end, start + size); break;
          case 'takeRight': start = nativeMax(start, end - size); break;
        }
      }
      return { 'start': start, 'end': end };
    }

    /**
     * Extracts wrapper details from the `source` body comment.
     *
     * @private
     * @param {string} source The source to inspect.
     * @returns {Array} Returns the wrapper details.
     */
    function getWrapDetails(source) {
      var match = source.match(reWrapDetails);
      return match ? match[1].split(reSplitDetails) : [];
    }

    /**
     * Checks if `path` exists on `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @param {Function} hasFunc The function to check properties.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     */
    function hasPath(object, path, hasFunc) {
      path = castPath(path, object);

      var index = -1,
          length = path.length,
          result = false;

      while (++index < length) {
        var key = toKey(path[index]);
        if (!(result = object != null && hasFunc(object, key))) {
          break;
        }
        object = object[key];
      }
      if (result || ++index != length) {
        return result;
      }
      length = object == null ? 0 : object.length;
      return !!length && isLength(length) && isIndex(key, length) &&
        (isArray(object) || isArguments(object));
    }

    /**
     * Initializes an array clone.
     *
     * @private
     * @param {Array} array The array to clone.
     * @returns {Array} Returns the initialized clone.
     */
    function initCloneArray(array) {
      var length = array.length,
          result = new array.constructor(length);

      // Add properties assigned by `RegExp#exec`.
      if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
        result.index = array.index;
        result.input = array.input;
      }
      return result;
    }

    /**
     * Initializes an object clone.
     *
     * @private
     * @param {Object} object The object to clone.
     * @returns {Object} Returns the initialized clone.
     */
    function initCloneObject(object) {
      return (typeof object.constructor == 'function' && !isPrototype(object))
        ? baseCreate(getPrototype(object))
        : {};
    }

    /**
     * Initializes an object clone based on its `toStringTag`.
     *
     * **Note:** This function only supports cloning values with tags of
     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
     *
     * @private
     * @param {Object} object The object to clone.
     * @param {string} tag The `toStringTag` of the object to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the initialized clone.
     */
    function initCloneByTag(object, tag, isDeep) {
      var Ctor = object.constructor;
      switch (tag) {
        case arrayBufferTag:
          return cloneArrayBuffer(object);

        case boolTag:
        case dateTag:
          return new Ctor(+object);

        case dataViewTag:
          return cloneDataView(object, isDeep);

        case float32Tag: case float64Tag:
        case int8Tag: case int16Tag: case int32Tag:
        case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
          return cloneTypedArray(object, isDeep);

        case mapTag:
          return new Ctor;

        case numberTag:
        case stringTag:
          return new Ctor(object);

        case regexpTag:
          return cloneRegExp(object);

        case setTag:
          return new Ctor;

        case symbolTag:
          return cloneSymbol(object);
      }
    }

    /**
     * Inserts wrapper `details` in a comment at the top of the `source` body.
     *
     * @private
     * @param {string} source The source to modify.
     * @returns {Array} details The details to insert.
     * @returns {string} Returns the modified source.
     */
    function insertWrapDetails(source, details) {
      var length = details.length;
      if (!length) {
        return source;
      }
      var lastIndex = length - 1;
      details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
      details = details.join(length > 2 ? ', ' : ' ');
      return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
    }

    /**
     * Checks if `value` is a flattenable `arguments` object or array.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
     */
    function isFlattenable(value) {
      return isArray(value) || isArguments(value) ||
        !!(spreadableSymbol && value && value[spreadableSymbol]);
    }

    /**
     * Checks if `value` is a valid array-like index.
     *
     * @private
     * @param {*} value The value to check.
     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
     */
    function isIndex(value, length) {
      var type = typeof value;
      length = length == null ? MAX_SAFE_INTEGER : length;

      return !!length &&
        (type == 'number' ||
          (type != 'symbol' && reIsUint.test(value))) &&
            (value > -1 && value % 1 == 0 && value < length);
    }

    /**
     * Checks if the given arguments are from an iteratee call.
     *
     * @private
     * @param {*} value The potential iteratee value argument.
     * @param {*} index The potential iteratee index or key argument.
     * @param {*} object The potential iteratee object argument.
     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
     *  else `false`.
     */
    function isIterateeCall(value, index, object) {
      if (!isObject(object)) {
        return false;
      }
      var type = typeof index;
      if (type == 'number'
            ? (isArrayLike(object) && isIndex(index, object.length))
            : (type == 'string' && index in object)
          ) {
        return eq(object[index], value);
      }
      return false;
    }

    /**
     * Checks if `value` is a property name and not a property path.
     *
     * @private
     * @param {*} value The value to check.
     * @param {Object} [object] The object to query keys on.
     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
     */
    function isKey(value, object) {
      if (isArray(value)) {
        return false;
      }
      var type = typeof value;
      if (type == 'number' || type == 'symbol' || type == 'boolean' ||
          value == null || isSymbol(value)) {
        return true;
      }
      return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
        (object != null && value in Object(object));
    }

    /**
     * Checks if `value` is suitable for use as unique object key.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
     */
    function isKeyable(value) {
      var type = typeof value;
      return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
        ? (value !== '__proto__')
        : (value === null);
    }

    /**
     * Checks if `func` has a lazy counterpart.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
     *  else `false`.
     */
    function isLaziable(func) {
      var funcName = getFuncName(func),
          other = lodash[funcName];

      if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
        return false;
      }
      if (func === other) {
        return true;
      }
      var data = getData(other);
      return !!data && func === data[0];
    }

    /**
     * Checks if `func` has its source masked.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` is masked, else `false`.
     */
    function isMasked(func) {
      return !!maskSrcKey && (maskSrcKey in func);
    }

    /**
     * Checks if `func` is capable of being masked.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
     */
    var isMaskable = coreJsData ? isFunction : stubFalse;

    /**
     * Checks if `value` is likely a prototype object.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
     */
    function isPrototype(value) {
      var Ctor = value && value.constructor,
          proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

      return value === proto;
    }

    /**
     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` if suitable for strict
     *  equality comparisons, else `false`.
     */
    function isStrictComparable(value) {
      return value === value && !isObject(value);
    }

    /**
     * A specialized version of `matchesProperty` for source values suitable
     * for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {string} key The key of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */
    function matchesStrictComparable(key, srcValue) {
      return function(object) {
        if (object == null) {
          return false;
        }
        return object[key] === srcValue &&
          (srcValue !== undefined || (key in Object(object)));
      };
    }

    /**
     * A specialized version of `_.memoize` which clears the memoized function's
     * cache when it exceeds `MAX_MEMOIZE_SIZE`.
     *
     * @private
     * @param {Function} func The function to have its output memoized.
     * @returns {Function} Returns the new memoized function.
     */
    function memoizeCapped(func) {
      var result = memoize(func, function(key) {
        if (cache.size === MAX_MEMOIZE_SIZE) {
          cache.clear();
        }
        return key;
      });

      var cache = result.cache;
      return result;
    }

    /**
     * Merges the function metadata of `source` into `data`.
     *
     * Merging metadata reduces the number of wrappers used to invoke a function.
     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
     * may be applied regardless of execution order. Methods like `_.ary` and
     * `_.rearg` modify function arguments, making the order in which they are
     * executed important, preventing the merging of metadata. However, we make
     * an exception for a safe combined case where curried functions have `_.ary`
     * and or `_.rearg` applied.
     *
     * @private
     * @param {Array} data The destination metadata.
     * @param {Array} source The source metadata.
     * @returns {Array} Returns `data`.
     */
    function mergeData(data, source) {
      var bitmask = data[1],
          srcBitmask = source[1],
          newBitmask = bitmask | srcBitmask,
          isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);

      var isCombo =
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
        ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));

      // Exit early if metadata can't be merged.
      if (!(isCommon || isCombo)) {
        return data;
      }
      // Use source `thisArg` if available.
      if (srcBitmask & WRAP_BIND_FLAG) {
        data[2] = source[2];
        // Set when currying a bound function.
        newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
      }
      // Compose partial arguments.
      var value = source[3];
      if (value) {
        var partials = data[3];
        data[3] = partials ? composeArgs(partials, value, source[4]) : value;
        data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
      }
      // Compose partial right arguments.
      value = source[5];
      if (value) {
        partials = data[5];
        data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
        data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
      }
      // Use source `argPos` if available.
      value = source[7];
      if (value) {
        data[7] = value;
      }
      // Use source `ary` if it's smaller.
      if (srcBitmask & WRAP_ARY_FLAG) {
        data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
      }
      // Use source `arity` if one is not provided.
      if (data[9] == null) {
        data[9] = source[9];
      }
      // Use source `func` and merge bitmasks.
      data[0] = source[0];
      data[1] = newBitmask;

      return data;
    }

    /**
     * This function is like
     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * except that it includes inherited enumerable properties.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function nativeKeysIn(object) {
      var result = [];
      if (object != null) {
        for (var key in Object(object)) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * Converts `value` to a string using `Object.prototype.toString`.
     *
     * @private
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     */
    function objectToString(value) {
      return nativeObjectToString.call(value);
    }

    /**
     * A specialized version of `baseRest` which transforms the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @param {Function} transform The rest array transform.
     * @returns {Function} Returns the new function.
     */
    function overRest(func, start, transform) {
      start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
      return function() {
        var args = arguments,
            index = -1,
            length = nativeMax(args.length - start, 0),
            array = Array(length);

        while (++index < length) {
          array[index] = args[start + index];
        }
        index = -1;
        var otherArgs = Array(start + 1);
        while (++index < start) {
          otherArgs[index] = args[index];
        }
        otherArgs[start] = transform(array);
        return apply(func, this, otherArgs);
      };
    }

    /**
     * Gets the parent value at `path` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array} path The path to get the parent value of.
     * @returns {*} Returns the parent value.
     */
    function parent(object, path) {
      return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
    }

    /**
     * Reorder `array` according to the specified indexes where the element at
     * the first index is assigned as the first element, the element at
     * the second index is assigned as the second element, and so on.
     *
     * @private
     * @param {Array} array The array to reorder.
     * @param {Array} indexes The arranged array indexes.
     * @returns {Array} Returns `array`.
     */
    function reorder(array, indexes) {
      var arrLength = array.length,
          length = nativeMin(indexes.length, arrLength),
          oldArray = copyArray(array);

      while (length--) {
        var index = indexes[length];
        array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
      }
      return array;
    }

    /**
     * Sets metadata for `func`.
     *
     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
     * period of time, it will trip its breaker and transition to an identity
     * function to avoid garbage collection pauses in V8. See
     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
     * for more details.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var setData = shortOut(baseSetData);

    /**
     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    var setTimeout = ctxSetTimeout || function(func, wait) {
      return root.setTimeout(func, wait);
    };

    /**
     * Sets the `toString` method of `func` to return `string`.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var setToString = shortOut(baseSetToString);

    /**
     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
     * with wrapper details in a comment at the top of the source body.
     *
     * @private
     * @param {Function} wrapper The function to modify.
     * @param {Function} reference The reference function.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Function} Returns `wrapper`.
     */
    function setWrapToString(wrapper, reference, bitmask) {
      var source = (reference + '');
      return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
    }

    /**
     * Creates a function that'll short out and invoke `identity` instead
     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
     * milliseconds.
     *
     * @private
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new shortable function.
     */
    function shortOut(func) {
      var count = 0,
          lastCalled = 0;

      return function() {
        var stamp = nativeNow(),
            remaining = HOT_SPAN - (stamp - lastCalled);

        lastCalled = stamp;
        if (remaining > 0) {
          if (++count >= HOT_COUNT) {
            return arguments[0];
          }
        } else {
          count = 0;
        }
        return func.apply(undefined, arguments);
      };
    }

    /**
     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @param {number} [size=array.length] The size of `array`.
     * @returns {Array} Returns `array`.
     */
    function shuffleSelf(array, size) {
      var index = -1,
          length = array.length,
          lastIndex = length - 1;

      size = size === undefined ? length : size;
      while (++index < size) {
        var rand = baseRandom(index, lastIndex),
            value = array[rand];

        array[rand] = array[index];
        array[index] = value;
      }
      array.length = size;
      return array;
    }

    /**
     * Converts `string` to a property path array.
     *
     * @private
     * @param {string} string The string to convert.
     * @returns {Array} Returns the property path array.
     */
    var stringToPath = memoizeCapped(function(string) {
      var result = [];
      if (string.charCodeAt(0) === 46 /* . */) {
        result.push('');
      }
      string.replace(rePropName, function(match, number, quote, subString) {
        result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
      });
      return result;
    });

    /**
     * Converts `value` to a string key if it's not a string or symbol.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {string|symbol} Returns the key.
     */
    function toKey(value) {
      if (typeof value == 'string' || isSymbol(value)) {
        return value;
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * Converts `func` to its source code.
     *
     * @private
     * @param {Function} func The function to convert.
     * @returns {string} Returns the source code.
     */
    function toSource(func) {
      if (func != null) {
        try {
          return funcToString.call(func);
        } catch (e) {}
        try {
          return (func + '');
        } catch (e) {}
      }
      return '';
    }

    /**
     * Updates wrapper `details` based on `bitmask` flags.
     *
     * @private
     * @returns {Array} details The details to modify.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Array} Returns `details`.
     */
    function updateWrapDetails(details, bitmask) {
      arrayEach(wrapFlags, function(pair) {
        var value = '_.' + pair[0];
        if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
          details.push(value);
        }
      });
      return details.sort();
    }

    /**
     * Creates a clone of `wrapper`.
     *
     * @private
     * @param {Object} wrapper The wrapper to clone.
     * @returns {Object} Returns the cloned wrapper.
     */
    function wrapperClone(wrapper) {
      if (wrapper instanceof LazyWrapper) {
        return wrapper.clone();
      }
      var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
      result.__actions__ = copyArray(wrapper.__actions__);
      result.__index__  = wrapper.__index__;
      result.__values__ = wrapper.__values__;
      return result;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of elements split into groups the length of `size`.
     * If `array` can't be split evenly, the final chunk will be the remaining
     * elements.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to process.
     * @param {number} [size=1] The length of each chunk
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the new array of chunks.
     * @example
     *
     * _.chunk(['a', 'b', 'c', 'd'], 2);
     * // => [['a', 'b'], ['c', 'd']]
     *
     * _.chunk(['a', 'b', 'c', 'd'], 3);
     * // => [['a', 'b', 'c'], ['d']]
     */
    function chunk(array, size, guard) {
      if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
        size = 1;
      } else {
        size = nativeMax(toInteger(size), 0);
      }
      var length = array == null ? 0 : array.length;
      if (!length || size < 1) {
        return [];
      }
      var index = 0,
          resIndex = 0,
          result = Array(nativeCeil(length / size));

      while (index < length) {
        result[resIndex++] = baseSlice(array, index, (index += size));
      }
      return result;
    }

    /**
     * Creates an array with all falsey values removed. The values `false`, `null`,
     * `0`, `""`, `undefined`, and `NaN` are falsey.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to compact.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.compact([0, 1, false, 2, '', 3]);
     * // => [1, 2, 3]
     */
    function compact(array) {
      var index = -1,
          length = array == null ? 0 : array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index];
        if (value) {
          result[resIndex++] = value;
        }
      }
      return result;
    }

    /**
     * Creates a new array concatenating `array` with any additional arrays
     * and/or values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to concatenate.
     * @param {...*} [values] The values to concatenate.
     * @returns {Array} Returns the new concatenated array.
     * @example
     *
     * var array = [1];
     * var other = _.concat(array, 2, [3], [[4]]);
     *
     * console.log(other);
     * // => [1, 2, 3, [4]]
     *
     * console.log(array);
     * // => [1]
     */
    function concat() {
      var length = arguments.length;
      if (!length) {
        return [];
      }
      var args = Array(length - 1),
          array = arguments[0],
          index = length;

      while (index--) {
        args[index - 1] = arguments[index];
      }
      return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
    }

    /**
     * Creates an array of `array` values not included in the other given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * **Note:** Unlike `_.pullAll`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.without, _.xor
     * @example
     *
     * _.difference([2, 1], [2, 3]);
     * // => [1]
     */
    var difference = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `iteratee` which
     * is invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var differenceBy = baseRest(function(array, values) {
      var iteratee = last(values);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `comparator`
     * which is invoked to compare elements of `array` to `values`. The order and
     * references of result values are determined by the first array. The comparator
     * is invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     *
     * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }]
     */
    var differenceWith = baseRest(function(array, values) {
      var comparator = last(values);
      if (isArrayLikeObject(comparator)) {
        comparator = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
        : [];
    });

    /**
     * Creates a slice of `array` with `n` elements dropped from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.drop([1, 2, 3]);
     * // => [2, 3]
     *
     * _.drop([1, 2, 3], 2);
     * // => [3]
     *
     * _.drop([1, 2, 3], 5);
     * // => []
     *
     * _.drop([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
    function drop(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * Creates a slice of `array` with `n` elements dropped from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.dropRight([1, 2, 3]);
     * // => [1, 2]
     *
     * _.dropRight([1, 2, 3], 2);
     * // => [1]
     *
     * _.dropRight([1, 2, 3], 5);
     * // => []
     *
     * _.dropRight([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
    function dropRight(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      n = length - n;
      return baseSlice(array, 0, n < 0 ? 0 : n);
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the end.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.dropRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropRightWhile(users, ['active', false]);
     * // => objects for ['barney']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropRightWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true, true)
        : [];
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the beginning.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.dropWhile(users, function(o) { return !o.active; });
     * // => objects for ['pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropWhile(users, ['active', false]);
     * // => objects for ['pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true)
        : [];
    }

    /**
     * Fills elements of `array` with `value` from `start` up to, but not
     * including, `end`.
     *
     * **Note:** This method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Array
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.fill(array, 'a');
     * console.log(array);
     * // => ['a', 'a', 'a']
     *
     * _.fill(Array(3), 2);
     * // => [2, 2, 2]
     *
     * _.fill([4, 6, 8, 10], '*', 1, 3);
     * // => [4, '*', '*', 10]
     */
    function fill(array, value, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
        start = 0;
        end = length;
      }
      return baseFill(array, value, start, end);
    }

    /**
     * This method is like `_.find` except that it returns the index of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.findIndex(users, function(o) { return o.user == 'barney'; });
     * // => 0
     *
     * // The `_.matches` iteratee shorthand.
     * _.findIndex(users, { 'user': 'fred', 'active': false });
     * // => 1
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findIndex(users, ['active', false]);
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.findIndex(users, 'active');
     * // => 2
     */
    function findIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index);
    }

    /**
     * This method is like `_.findIndex` except that it iterates over elements
     * of `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
     * // => 2
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
     * // => 0
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastIndex(users, ['active', false]);
     * // => 2
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastIndex(users, 'active');
     * // => 0
     */
    function findLastIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length - 1;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = fromIndex < 0
          ? nativeMax(length + index, 0)
          : nativeMin(index, length - 1);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index, true);
    }

    /**
     * Flattens `array` a single level deep.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flatten([1, [2, [3, [4]], 5]]);
     * // => [1, 2, [3, [4]], 5]
     */
    function flatten(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, 1) : [];
    }

    /**
     * Recursively flattens `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flattenDeep([1, [2, [3, [4]], 5]]);
     * // => [1, 2, 3, 4, 5]
     */
    function flattenDeep(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, INFINITY) : [];
    }

    /**
     * Recursively flatten `array` up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * var array = [1, [2, [3, [4]], 5]];
     *
     * _.flattenDepth(array, 1);
     * // => [1, 2, [3, [4]], 5]
     *
     * _.flattenDepth(array, 2);
     * // => [1, 2, 3, [4], 5]
     */
    function flattenDepth(array, depth) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(array, depth);
    }

    /**
     * The inverse of `_.toPairs`; this method returns an object composed
     * from key-value `pairs`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} pairs The key-value pairs.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.fromPairs([['a', 1], ['b', 2]]);
     * // => { 'a': 1, 'b': 2 }
     */
    function fromPairs(pairs) {
      var index = -1,
          length = pairs == null ? 0 : pairs.length,
          result = {};

      while (++index < length) {
        var pair = pairs[index];
        result[pair[0]] = pair[1];
      }
      return result;
    }

    /**
     * Gets the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias first
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the first element of `array`.
     * @example
     *
     * _.head([1, 2, 3]);
     * // => 1
     *
     * _.head([]);
     * // => undefined
     */
    function head(array) {
      return (array && array.length) ? array[0] : undefined;
    }

    /**
     * Gets the index at which the first occurrence of `value` is found in `array`
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. If `fromIndex` is negative, it's used as the
     * offset from the end of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.indexOf([1, 2, 1, 2], 2);
     * // => 1
     *
     * // Search from the `fromIndex`.
     * _.indexOf([1, 2, 1, 2], 2, 2);
     * // => 3
     */
    function indexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseIndexOf(array, value, index);
    }

    /**
     * Gets all but the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.initial([1, 2, 3]);
     * // => [1, 2]
     */
    function initial(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 0, -1) : [];
    }

    /**
     * Creates an array of unique values that are included in all given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersection([2, 1], [2, 3]);
     * // => [2]
     */
    var intersection = baseRest(function(arrays) {
      var mapped = arrayMap(arrays, castArrayLikeObject);
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped)
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `iteratee`
     * which is invoked for each element of each `arrays` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [2.1]
     *
     * // The `_.property` iteratee shorthand.
     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }]
     */
    var intersectionBy = baseRest(function(arrays) {
      var iteratee = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      if (iteratee === last(mapped)) {
        iteratee = undefined;
      } else {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `comparator`
     * which is invoked to compare elements of `arrays`. The order and references
     * of result values are determined by the first array. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.intersectionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }]
     */
    var intersectionWith = baseRest(function(arrays) {
      var comparator = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      comparator = typeof comparator == 'function' ? comparator : undefined;
      if (comparator) {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, undefined, comparator)
        : [];
    });

    /**
     * Converts all elements in `array` into a string separated by `separator`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to convert.
     * @param {string} [separator=','] The element separator.
     * @returns {string} Returns the joined string.
     * @example
     *
     * _.join(['a', 'b', 'c'], '~');
     * // => 'a~b~c'
     */
    function join(array, separator) {
      return array == null ? '' : nativeJoin.call(array, separator);
    }

    /**
     * Gets the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the last element of `array`.
     * @example
     *
     * _.last([1, 2, 3]);
     * // => 3
     */
    function last(array) {
      var length = array == null ? 0 : array.length;
      return length ? array[length - 1] : undefined;
    }

    /**
     * This method is like `_.indexOf` except that it iterates over elements of
     * `array` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.lastIndexOf([1, 2, 1, 2], 2);
     * // => 3
     *
     * // Search from the `fromIndex`.
     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
     * // => 1
     */
    function lastIndexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
      }
      return value === value
        ? strictLastIndexOf(array, value, index)
        : baseFindIndex(array, baseIsNaN, index, true);
    }

    /**
     * Gets the element at index `n` of `array`. If `n` is negative, the nth
     * element from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.11.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=0] The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     *
     * _.nth(array, 1);
     * // => 'b'
     *
     * _.nth(array, -2);
     * // => 'c';
     */
    function nth(array, n) {
      return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
    }

    /**
     * Removes all given values from `array` using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
     * to remove elements from an array by predicate.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...*} [values] The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pull(array, 'a', 'c');
     * console.log(array);
     * // => ['b', 'b']
     */
    var pull = baseRest(pullAll);

    /**
     * This method is like `_.pull` except that it accepts an array of values to remove.
     *
     * **Note:** Unlike `_.difference`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pullAll(array, ['a', 'c']);
     * console.log(array);
     * // => ['b', 'b']
     */
    function pullAll(array, values) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values)
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `iteratee` which is
     * invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The iteratee is invoked with one argument: (value).
     *
     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
     *
     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
     * console.log(array);
     * // => [{ 'x': 2 }]
     */
    function pullAllBy(array, values, iteratee) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, getIteratee(iteratee, 2))
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `comparator` which
     * is invoked to compare elements of `array` to `values`. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
     *
     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
     * console.log(array);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
     */
    function pullAllWith(array, values, comparator) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, undefined, comparator)
        : array;
    }

    /**
     * Removes elements from `array` corresponding to `indexes` and returns an
     * array of removed elements.
     *
     * **Note:** Unlike `_.at`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     * var pulled = _.pullAt(array, [1, 3]);
     *
     * console.log(array);
     * // => ['a', 'c']
     *
     * console.log(pulled);
     * // => ['b', 'd']
     */
    var pullAt = flatRest(function(array, indexes) {
      var length = array == null ? 0 : array.length,
          result = baseAt(array, indexes);

      basePullAt(array, arrayMap(indexes, function(index) {
        return isIndex(index, length) ? +index : index;
      }).sort(compareAscending));

      return result;
    });

    /**
     * Removes all elements from `array` that `predicate` returns truthy for
     * and returns an array of the removed elements. The predicate is invoked
     * with three arguments: (value, index, array).
     *
     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
     * to pull elements from an array by value.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = [1, 2, 3, 4];
     * var evens = _.remove(array, function(n) {
     *   return n % 2 == 0;
     * });
     *
     * console.log(array);
     * // => [1, 3]
     *
     * console.log(evens);
     * // => [2, 4]
     */
    function remove(array, predicate) {
      var result = [];
      if (!(array && array.length)) {
        return result;
      }
      var index = -1,
          indexes = [],
          length = array.length;

      predicate = getIteratee(predicate, 3);
      while (++index < length) {
        var value = array[index];
        if (predicate(value, index, array)) {
          result.push(value);
          indexes.push(index);
        }
      }
      basePullAt(array, indexes);
      return result;
    }

    /**
     * Reverses `array` so that the first element becomes the last, the second
     * element becomes the second to last, and so on.
     *
     * **Note:** This method mutates `array` and is based on
     * [`Array#reverse`](https://mdn.io/Array/reverse).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.reverse(array);
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function reverse(array) {
      return array == null ? array : nativeReverse.call(array);
    }

    /**
     * Creates a slice of `array` from `start` up to, but not including, `end`.
     *
     * **Note:** This method is used instead of
     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
     * returned.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function slice(array, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
        start = 0;
        end = length;
      }
      else {
        start = start == null ? 0 : toInteger(start);
        end = end === undefined ? length : toInteger(end);
      }
      return baseSlice(array, start, end);
    }

    /**
     * Uses a binary search to determine the lowest index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedIndex([30, 50], 40);
     * // => 1
     */
    function sortedIndex(array, value) {
      return baseSortedIndex(array, value);
    }

    /**
     * This method is like `_.sortedIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
     * // => 0
     */
    function sortedIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
    }

    /**
     * This method is like `_.indexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
     * // => 1
     */
    function sortedIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value);
        if (index < length && eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.sortedIndex` except that it returns the highest
     * index at which `value` should be inserted into `array` in order to
     * maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
     * // => 4
     */
    function sortedLastIndex(array, value) {
      return baseSortedIndex(array, value, true);
    }

    /**
     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 1
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
     * // => 1
     */
    function sortedLastIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
    }

    /**
     * This method is like `_.lastIndexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
     * // => 3
     */
    function sortedLastIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value, true) - 1;
        if (eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.uniq` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniq([1, 1, 2]);
     * // => [1, 2]
     */
    function sortedUniq(array) {
      return (array && array.length)
        ? baseSortedUniq(array)
        : [];
    }

    /**
     * This method is like `_.uniqBy` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
     * // => [1.1, 2.3]
     */
    function sortedUniqBy(array, iteratee) {
      return (array && array.length)
        ? baseSortedUniq(array, getIteratee(iteratee, 2))
        : [];
    }

    /**
     * Gets all but the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.tail([1, 2, 3]);
     * // => [2, 3]
     */
    function tail(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 1, length) : [];
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.take([1, 2, 3]);
     * // => [1]
     *
     * _.take([1, 2, 3], 2);
     * // => [1, 2]
     *
     * _.take([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.take([1, 2, 3], 0);
     * // => []
     */
    function take(array, n, guard) {
      if (!(array && array.length)) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, 0, n < 0 ? 0 : n);
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.takeRight([1, 2, 3]);
     * // => [3]
     *
     * _.takeRight([1, 2, 3], 2);
     * // => [2, 3]
     *
     * _.takeRight([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.takeRight([1, 2, 3], 0);
     * // => []
     */
    function takeRight(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      n = length - n;
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * Creates a slice of `array` with elements taken from the end. Elements are
     * taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.takeRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeRightWhile(users, ['active', false]);
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeRightWhile(users, 'active');
     * // => []
     */
    function takeRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), false, true)
        : [];
    }

    /**
     * Creates a slice of `array` with elements taken from the beginning. Elements
     * are taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.takeWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeWhile(users, ['active', false]);
     * // => objects for ['barney', 'fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeWhile(users, 'active');
     * // => []
     */
    function takeWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3))
        : [];
    }

    /**
     * Creates an array of unique values, in order, from all given arrays using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.union([2], [1, 2]);
     * // => [2, 1]
     */
    var union = baseRest(function(arrays) {
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
    });

    /**
     * This method is like `_.union` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which uniqueness is computed. Result values are chosen from the first
     * array in which the value occurs. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    var unionBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.union` except that it accepts `comparator` which
     * is invoked to compare elements of `arrays`. Result values are chosen from
     * the first array in which the value occurs. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.unionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var unionWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
    });

    /**
     * Creates a duplicate-free version of an array, using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons, in which only the first occurrence of each element
     * is kept. The order of result values is determined by the order they occur
     * in the array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniq([2, 1, 2]);
     * // => [2, 1]
     */
    function uniq(array) {
      return (array && array.length) ? baseUniq(array) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * uniqueness is computed. The order of result values is determined by the
     * order they occur in the array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    function uniqBy(array, iteratee) {
      return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `comparator` which
     * is invoked to compare elements of `array`. The order of result values is
     * determined by the order they occur in the array.The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.uniqWith(objects, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
     */
    function uniqWith(array, comparator) {
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
    }

    /**
     * This method is like `_.zip` except that it accepts an array of grouped
     * elements and creates an array regrouping the elements to their pre-zip
     * configuration.
     *
     * @static
     * @memberOf _
     * @since 1.2.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     *
     * _.unzip(zipped);
     * // => [['a', 'b'], [1, 2], [true, false]]
     */
    function unzip(array) {
      if (!(array && array.length)) {
        return [];
      }
      var length = 0;
      array = arrayFilter(array, function(group) {
        if (isArrayLikeObject(group)) {
          length = nativeMax(group.length, length);
          return true;
        }
      });
      return baseTimes(length, function(index) {
        return arrayMap(array, baseProperty(index));
      });
    }

    /**
     * This method is like `_.unzip` except that it accepts `iteratee` to specify
     * how regrouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  regrouped values.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
     * // => [[1, 10, 100], [2, 20, 200]]
     *
     * _.unzipWith(zipped, _.add);
     * // => [3, 30, 300]
     */
    function unzipWith(array, iteratee) {
      if (!(array && array.length)) {
        return [];
      }
      var result = unzip(array);
      if (iteratee == null) {
        return result;
      }
      return arrayMap(result, function(group) {
        return apply(iteratee, undefined, group);
      });
    }

    /**
     * Creates an array excluding all given values using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.pull`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...*} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.xor
     * @example
     *
     * _.without([2, 1, 2, 3], 1, 2);
     * // => [3]
     */
    var without = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, values)
        : [];
    });

    /**
     * Creates an array of unique values that is the
     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
     * of the given arrays. The order of result values is determined by the order
     * they occur in the arrays.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.without
     * @example
     *
     * _.xor([2, 1], [2, 3]);
     * // => [1, 3]
     */
    var xor = baseRest(function(arrays) {
      return baseXor(arrayFilter(arrays, isArrayLikeObject));
    });

    /**
     * This method is like `_.xor` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which by which they're compared. The order of result values is determined
     * by the order they occur in the arrays. The iteratee is invoked with one
     * argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2, 3.4]
     *
     * // The `_.property` iteratee shorthand.
     * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var xorBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.xor` except that it accepts `comparator` which is
     * invoked to compare elements of `arrays`. The order of result values is
     * determined by the order they occur in the arrays. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.xorWith(objects, others, _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var xorWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
    });

    /**
     * Creates an array of grouped elements, the first of which contains the
     * first elements of the given arrays, the second of which contains the
     * second elements of the given arrays, and so on.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     */
    var zip = baseRest(unzip);

    /**
     * This method is like `_.fromPairs` except that it accepts two arrays,
     * one of property identifiers and one of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 0.4.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObject(['a', 'b'], [1, 2]);
     * // => { 'a': 1, 'b': 2 }
     */
    function zipObject(props, values) {
      return baseZipObject(props || [], values || [], assignValue);
    }

    /**
     * This method is like `_.zipObject` except that it supports property paths.
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
     */
    function zipObjectDeep(props, values) {
      return baseZipObject(props || [], values || [], baseSet);
    }

    /**
     * This method is like `_.zip` except that it accepts `iteratee` to specify
     * how grouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  grouped values.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
     *   return a + b + c;
     * });
     * // => [111, 222]
     */
    var zipWith = baseRest(function(arrays) {
      var length = arrays.length,
          iteratee = length > 1 ? arrays[length - 1] : undefined;

      iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
      return unzipWith(arrays, iteratee);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
     * chain sequences enabled. The result of such sequences must be unwrapped
     * with `_#value`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Seq
     * @param {*} value The value to wrap.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36 },
     *   { 'user': 'fred',    'age': 40 },
     *   { 'user': 'pebbles', 'age': 1 }
     * ];
     *
     * var youngest = _
     *   .chain(users)
     *   .sortBy('age')
     *   .map(function(o) {
     *     return o.user + ' is ' + o.age;
     *   })
     *   .head()
     *   .value();
     * // => 'pebbles is 1'
     */
    function chain(value) {
      var result = lodash(value);
      result.__chain__ = true;
      return result;
    }

    /**
     * This method invokes `interceptor` and returns `value`. The interceptor
     * is invoked with one argument; (value). The purpose of this method is to
     * "tap into" a method chain sequence in order to modify intermediate results.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns `value`.
     * @example
     *
     * _([1, 2, 3])
     *  .tap(function(array) {
     *    // Mutate input array.
     *    array.pop();
     *  })
     *  .reverse()
     *  .value();
     * // => [2, 1]
     */
    function tap(value, interceptor) {
      interceptor(value);
      return value;
    }

    /**
     * This method is like `_.tap` except that it returns the result of `interceptor`.
     * The purpose of this method is to "pass thru" values replacing intermediate
     * results in a method chain sequence.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns the result of `interceptor`.
     * @example
     *
     * _('  abc  ')
     *  .chain()
     *  .trim()
     *  .thru(function(value) {
     *    return [value];
     *  })
     *  .value();
     * // => ['abc']
     */
    function thru(value, interceptor) {
      return interceptor(value);
    }

    /**
     * This method is the wrapper version of `_.at`.
     *
     * @name at
     * @memberOf _
     * @since 1.0.0
     * @category Seq
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _(object).at(['a[0].b.c', 'a[1]']).value();
     * // => [3, 4]
     */
    var wrapperAt = flatRest(function(paths) {
      var length = paths.length,
          start = length ? paths[0] : 0,
          value = this.__wrapped__,
          interceptor = function(object) { return baseAt(object, paths); };

      if (length > 1 || this.__actions__.length ||
          !(value instanceof LazyWrapper) || !isIndex(start)) {
        return this.thru(interceptor);
      }
      value = value.slice(start, +start + (length ? 1 : 0));
      value.__actions__.push({
        'func': thru,
        'args': [interceptor],
        'thisArg': undefined
      });
      return new LodashWrapper(value, this.__chain__).thru(function(array) {
        if (length && !array.length) {
          array.push(undefined);
        }
        return array;
      });
    });

    /**
     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
     *
     * @name chain
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 }
     * ];
     *
     * // A sequence without explicit chaining.
     * _(users).head();
     * // => { 'user': 'barney', 'age': 36 }
     *
     * // A sequence with explicit chaining.
     * _(users)
     *   .chain()
     *   .head()
     *   .pick('user')
     *   .value();
     * // => { 'user': 'barney' }
     */
    function wrapperChain() {
      return chain(this);
    }

    /**
     * Executes the chain sequence and returns the wrapped result.
     *
     * @name commit
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2];
     * var wrapped = _(array).push(3);
     *
     * console.log(array);
     * // => [1, 2]
     *
     * wrapped = wrapped.commit();
     * console.log(array);
     * // => [1, 2, 3]
     *
     * wrapped.last();
     * // => 3
     *
     * console.log(array);
     * // => [1, 2, 3]
     */
    function wrapperCommit() {
      return new LodashWrapper(this.value(), this.__chain__);
    }

    /**
     * Gets the next value on a wrapped object following the
     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
     *
     * @name next
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the next iterator value.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 1 }
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 2 }
     *
     * wrapped.next();
     * // => { 'done': true, 'value': undefined }
     */
    function wrapperNext() {
      if (this.__values__ === undefined) {
        this.__values__ = toArray(this.value());
      }
      var done = this.__index__ >= this.__values__.length,
          value = done ? undefined : this.__values__[this.__index__++];

      return { 'done': done, 'value': value };
    }

    /**
     * Enables the wrapper to be iterable.
     *
     * @name Symbol.iterator
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the wrapper object.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped[Symbol.iterator]() === wrapped;
     * // => true
     *
     * Array.from(wrapped);
     * // => [1, 2]
     */
    function wrapperToIterator() {
      return this;
    }

    /**
     * Creates a clone of the chain sequence planting `value` as the wrapped value.
     *
     * @name plant
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @param {*} value The value to plant.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2]).map(square);
     * var other = wrapped.plant([3, 4]);
     *
     * other.value();
     * // => [9, 16]
     *
     * wrapped.value();
     * // => [1, 4]
     */
    function wrapperPlant(value) {
      var result,
          parent = this;

      while (parent instanceof baseLodash) {
        var clone = wrapperClone(parent);
        clone.__index__ = 0;
        clone.__values__ = undefined;
        if (result) {
          previous.__wrapped__ = clone;
        } else {
          result = clone;
        }
        var previous = clone;
        parent = parent.__wrapped__;
      }
      previous.__wrapped__ = value;
      return result;
    }

    /**
     * This method is the wrapper version of `_.reverse`.
     *
     * **Note:** This method mutates the wrapped array.
     *
     * @name reverse
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _(array).reverse().value()
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function wrapperReverse() {
      var value = this.__wrapped__;
      if (value instanceof LazyWrapper) {
        var wrapped = value;
        if (this.__actions__.length) {
          wrapped = new LazyWrapper(this);
        }
        wrapped = wrapped.reverse();
        wrapped.__actions__.push({
          'func': thru,
          'args': [reverse],
          'thisArg': undefined
        });
        return new LodashWrapper(wrapped, this.__chain__);
      }
      return this.thru(reverse);
    }

    /**
     * Executes the chain sequence to resolve the unwrapped value.
     *
     * @name value
     * @memberOf _
     * @since 0.1.0
     * @alias toJSON, valueOf
     * @category Seq
     * @returns {*} Returns the resolved unwrapped value.
     * @example
     *
     * _([1, 2, 3]).value();
     * // => [1, 2, 3]
     */
    function wrapperValue() {
      return baseWrapperValue(this.__wrapped__, this.__actions__);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the number of times the key was returned by `iteratee`. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.countBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': 1, '6': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.countBy(['one', 'two', 'three'], 'length');
     * // => { '3': 2, '5': 1 }
     */
    var countBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        ++result[key];
      } else {
        baseAssignValue(result, key, 1);
      }
    });

    /**
     * Checks if `predicate` returns truthy for **all** elements of `collection`.
     * Iteration is stopped once `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * **Note:** This method returns `true` for
     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
     * elements of empty collections.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`.
     * @example
     *
     * _.every([true, 1, null, 'yes'], Boolean);
     * // => false
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.every(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.every(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.every(users, 'active');
     * // => false
     */
    function every(collection, predicate, guard) {
      var func = isArray(collection) ? arrayEvery : baseEvery;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Iterates over elements of `collection`, returning an array of all elements
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * **Note:** Unlike `_.remove`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.reject
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * _.filter(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, { 'age': 36, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.filter(users, 'active');
     * // => objects for ['barney']
     */
    function filter(collection, predicate) {
      var func = isArray(collection) ? arrayFilter : baseFilter;
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Iterates over elements of `collection`, returning the first element
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': true },
     *   { 'user': 'fred',    'age': 40, 'active': false },
     *   { 'user': 'pebbles', 'age': 1,  'active': true }
     * ];
     *
     * _.find(users, function(o) { return o.age < 40; });
     * // => object for 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.find(users, { 'age': 1, 'active': true });
     * // => object for 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.find(users, ['active', false]);
     * // => object for 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.find(users, 'active');
     * // => object for 'barney'
     */
    var find = createFind(findIndex);

    /**
     * This method is like `_.find` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=collection.length-1] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * _.findLast([1, 2, 3, 4], function(n) {
     *   return n % 2 == 1;
     * });
     * // => 3
     */
    var findLast = createFind(findLastIndex);

    /**
     * Creates a flattened array of values by running each element in `collection`
     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
     * with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [n, n];
     * }
     *
     * _.flatMap([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMap(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), 1);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDeep([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMapDeep(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), INFINITY);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDepth([1, 2], duplicate, 2);
     * // => [[1, 1], [2, 2]]
     */
    function flatMapDepth(collection, iteratee, depth) {
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(map(collection, iteratee), depth);
    }

    /**
     * Iterates over elements of `collection` and invokes `iteratee` for each element.
     * The iteratee is invoked with three arguments: (value, index|key, collection).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * **Note:** As with other "Collections" methods, objects with a "length"
     * property are iterated like arrays. To avoid this behavior use `_.forIn`
     * or `_.forOwn` for object iteration.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias each
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEachRight
     * @example
     *
     * _.forEach([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `1` then `2`.
     *
     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forEach(collection, iteratee) {
      var func = isArray(collection) ? arrayEach : baseEach;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forEach` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @alias eachRight
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEach
     * @example
     *
     * _.forEachRight([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `2` then `1`.
     */
    function forEachRight(collection, iteratee) {
      var func = isArray(collection) ? arrayEachRight : baseEachRight;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The order of grouped values
     * is determined by the order they occur in `collection`. The corresponding
     * value of each key is an array of elements responsible for generating the
     * key. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': [4.2], '6': [6.1, 6.3] }
     *
     * // The `_.property` iteratee shorthand.
     * _.groupBy(['one', 'two', 'three'], 'length');
     * // => { '3': ['one', 'two'], '5': ['three'] }
     */
    var groupBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        result[key].push(value);
      } else {
        baseAssignValue(result, key, [value]);
      }
    });

    /**
     * Checks if `value` is in `collection`. If `collection` is a string, it's
     * checked for a substring of `value`, otherwise
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * is used for equality comparisons. If `fromIndex` is negative, it's used as
     * the offset from the end of `collection`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {boolean} Returns `true` if `value` is found, else `false`.
     * @example
     *
     * _.includes([1, 2, 3], 1);
     * // => true
     *
     * _.includes([1, 2, 3], 1, 2);
     * // => false
     *
     * _.includes({ 'a': 1, 'b': 2 }, 1);
     * // => true
     *
     * _.includes('abcd', 'bc');
     * // => true
     */
    function includes(collection, value, fromIndex, guard) {
      collection = isArrayLike(collection) ? collection : values(collection);
      fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;

      var length = collection.length;
      if (fromIndex < 0) {
        fromIndex = nativeMax(length + fromIndex, 0);
      }
      return isString(collection)
        ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
        : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
    }

    /**
     * Invokes the method at `path` of each element in `collection`, returning
     * an array of the results of each invoked method. Any additional arguments
     * are provided to each invoked method. If `path` is a function, it's invoked
     * for, and `this` bound to, each element in `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array|Function|string} path The path of the method to invoke or
     *  the function invoked per iteration.
     * @param {...*} [args] The arguments to invoke each method with.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
     * // => [[1, 5, 7], [1, 2, 3]]
     *
     * _.invokeMap([123, 456], String.prototype.split, '');
     * // => [['1', '2', '3'], ['4', '5', '6']]
     */
    var invokeMap = baseRest(function(collection, path, args) {
      var index = -1,
          isFunc = typeof path == 'function',
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value) {
        result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
      });
      return result;
    });

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the last element responsible for generating the key. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * var array = [
     *   { 'dir': 'left', 'code': 97 },
     *   { 'dir': 'right', 'code': 100 }
     * ];
     *
     * _.keyBy(array, function(o) {
     *   return String.fromCharCode(o.code);
     * });
     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
     *
     * _.keyBy(array, 'dir');
     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
     */
    var keyBy = createAggregator(function(result, value, key) {
      baseAssignValue(result, key, value);
    });

    /**
     * Creates an array of values by running each element in `collection` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
     *
     * The guarded methods are:
     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * _.map([4, 8], square);
     * // => [16, 64]
     *
     * _.map({ 'a': 4, 'b': 8 }, square);
     * // => [16, 64] (iteration order is not guaranteed)
     *
     * var users = [
     *   { 'user': 'barney' },
     *   { 'user': 'fred' }
     * ];
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, 'user');
     * // => ['barney', 'fred']
     */
    function map(collection, iteratee) {
      var func = isArray(collection) ? arrayMap : baseMap;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.sortBy` except that it allows specifying the sort
     * orders of the iteratees to sort by. If `orders` is unspecified, all values
     * are sorted in ascending order. Otherwise, specify an order of "desc" for
     * descending or "asc" for ascending sort order of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @param {string[]} [orders] The sort orders of `iteratees`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 34 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 36 }
     * ];
     *
     * // Sort by `user` in ascending order and by `age` in descending order.
     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     */
    function orderBy(collection, iteratees, orders, guard) {
      if (collection == null) {
        return [];
      }
      if (!isArray(iteratees)) {
        iteratees = iteratees == null ? [] : [iteratees];
      }
      orders = guard ? undefined : orders;
      if (!isArray(orders)) {
        orders = orders == null ? [] : [orders];
      }
      return baseOrderBy(collection, iteratees, orders);
    }

    /**
     * Creates an array of elements split into two groups, the first of which
     * contains elements `predicate` returns truthy for, the second of which
     * contains elements `predicate` returns falsey for. The predicate is
     * invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of grouped elements.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': false },
     *   { 'user': 'fred',    'age': 40, 'active': true },
     *   { 'user': 'pebbles', 'age': 1,  'active': false }
     * ];
     *
     * _.partition(users, function(o) { return o.active; });
     * // => objects for [['fred'], ['barney', 'pebbles']]
     *
     * // The `_.matches` iteratee shorthand.
     * _.partition(users, { 'age': 1, 'active': false });
     * // => objects for [['pebbles'], ['barney', 'fred']]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.partition(users, ['active', false]);
     * // => objects for [['barney', 'pebbles'], ['fred']]
     *
     * // The `_.property` iteratee shorthand.
     * _.partition(users, 'active');
     * // => objects for [['fred'], ['barney', 'pebbles']]
     */
    var partition = createAggregator(function(result, value, key) {
      result[key ? 0 : 1].push(value);
    }, function() { return [[], []]; });

    /**
     * Reduces `collection` to a value which is the accumulated result of running
     * each element in `collection` thru `iteratee`, where each successive
     * invocation is supplied the return value of the previous. If `accumulator`
     * is not given, the first element of `collection` is used as the initial
     * value. The iteratee is invoked with four arguments:
     * (accumulator, value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.reduce`, `_.reduceRight`, and `_.transform`.
     *
     * The guarded methods are:
     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
     * and `sortBy`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduceRight
     * @example
     *
     * _.reduce([1, 2], function(sum, n) {
     *   return sum + n;
     * }, 0);
     * // => 3
     *
     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     *   return result;
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
     */
    function reduce(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduce : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
    }

    /**
     * This method is like `_.reduce` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduce
     * @example
     *
     * var array = [[0, 1], [2, 3], [4, 5]];
     *
     * _.reduceRight(array, function(flattened, other) {
     *   return flattened.concat(other);
     * }, []);
     * // => [4, 5, 2, 3, 0, 1]
     */
    function reduceRight(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduceRight : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
    }

    /**
     * The opposite of `_.filter`; this method returns the elements of `collection`
     * that `predicate` does **not** return truthy for.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.filter
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': true }
     * ];
     *
     * _.reject(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.reject(users, { 'age': 40, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.reject(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.reject(users, 'active');
     * // => objects for ['barney']
     */
    function reject(collection, predicate) {
      var func = isArray(collection) ? arrayFilter : baseFilter;
      return func(collection, negate(getIteratee(predicate, 3)));
    }

    /**
     * Gets a random element from `collection`.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     * @example
     *
     * _.sample([1, 2, 3, 4]);
     * // => 2
     */
    function sample(collection) {
      var func = isArray(collection) ? arraySample : baseSample;
      return func(collection);
    }

    /**
     * Gets `n` random elements at unique keys from `collection` up to the
     * size of `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @param {number} [n=1] The number of elements to sample.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the random elements.
     * @example
     *
     * _.sampleSize([1, 2, 3], 2);
     * // => [3, 1]
     *
     * _.sampleSize([1, 2, 3], 4);
     * // => [2, 3, 1]
     */
    function sampleSize(collection, n, guard) {
      if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      var func = isArray(collection) ? arraySampleSize : baseSampleSize;
      return func(collection, n);
    }

    /**
     * Creates an array of shuffled values, using a version of the
     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     * @example
     *
     * _.shuffle([1, 2, 3, 4]);
     * // => [4, 1, 3, 2]
     */
    function shuffle(collection) {
      var func = isArray(collection) ? arrayShuffle : baseShuffle;
      return func(collection);
    }

    /**
     * Gets the size of `collection` by returning its length for array-like
     * values or the number of own enumerable string keyed properties for objects.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @returns {number} Returns the collection size.
     * @example
     *
     * _.size([1, 2, 3]);
     * // => 3
     *
     * _.size({ 'a': 1, 'b': 2 });
     * // => 2
     *
     * _.size('pebbles');
     * // => 7
     */
    function size(collection) {
      if (collection == null) {
        return 0;
      }
      if (isArrayLike(collection)) {
        return isString(collection) ? stringSize(collection) : collection.length;
      }
      var tag = getTag(collection);
      if (tag == mapTag || tag == setTag) {
        return collection.size;
      }
      return baseKeys(collection).length;
    }

    /**
     * Checks if `predicate` returns truthy for **any** element of `collection`.
     * Iteration is stopped once `predicate` returns truthy. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     * @example
     *
     * _.some([null, 0, 'yes', false], Boolean);
     * // => true
     *
     * var users = [
     *   { 'user': 'barney', 'active': true },
     *   { 'user': 'fred',   'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.some(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.some(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.some(users, 'active');
     * // => true
     */
    function some(collection, predicate, guard) {
      var func = isArray(collection) ? arraySome : baseSome;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Creates an array of elements, sorted in ascending order by the results of
     * running each element in a collection thru each iteratee. This method
     * performs a stable sort, that is, it preserves the original sort order of
     * equal elements. The iteratees are invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 34 }
     * ];
     *
     * _.sortBy(users, [function(o) { return o.user; }]);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     *
     * _.sortBy(users, ['user', 'age']);
     * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
     */
    var sortBy = baseRest(function(collection, iteratees) {
      if (collection == null) {
        return [];
      }
      var length = iteratees.length;
      if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
        iteratees = [];
      } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
        iteratees = [iteratees[0]];
      }
      return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Gets the timestamp of the number of milliseconds that have elapsed since
     * the Unix epoch (1 January 1970 00:00:00 UTC).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Date
     * @returns {number} Returns the timestamp.
     * @example
     *
     * _.defer(function(stamp) {
     *   console.log(_.now() - stamp);
     * }, _.now());
     * // => Logs the number of milliseconds it took for the deferred invocation.
     */
    var now = ctxNow || function() {
      return root.Date.now();
    };

    /*------------------------------------------------------------------------*/

    /**
     * The opposite of `_.before`; this method creates a function that invokes
     * `func` once it's called `n` or more times.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {number} n The number of calls before `func` is invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var saves = ['profile', 'settings'];
     *
     * var done = _.after(saves.length, function() {
     *   console.log('done saving!');
     * });
     *
     * _.forEach(saves, function(type) {
     *   asyncSave({ 'type': type, 'complete': done });
     * });
     * // => Logs 'done saving!' after the two async saves have completed.
     */
    function after(n, func) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n < 1) {
          return func.apply(this, arguments);
        }
      };
    }

    /**
     * Creates a function that invokes `func`, with up to `n` arguments,
     * ignoring any additional arguments.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @param {number} [n=func.length] The arity cap.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
     * // => [6, 8, 10]
     */
    function ary(func, n, guard) {
      n = guard ? undefined : n;
      n = (func && n == null) ? func.length : n;
      return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
    }

    /**
     * Creates a function that invokes `func`, with the `this` binding and arguments
     * of the created function, while it's called less than `n` times. Subsequent
     * calls to the created function return the result of the last `func` invocation.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {number} n The number of calls at which `func` is no longer invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * jQuery(element).on('click', _.before(5, addContactToList));
     * // => Allows adding up to 4 contacts to the list.
     */
    function before(n, func) {
      var result;
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n > 0) {
          result = func.apply(this, arguments);
        }
        if (n <= 1) {
          func = undefined;
        }
        return result;
      };
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of `thisArg`
     * and `partials` prepended to the arguments it receives.
     *
     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for partially applied arguments.
     *
     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
     * property of bound functions.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to bind.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * function greet(greeting, punctuation) {
     *   return greeting + ' ' + this.user + punctuation;
     * }
     *
     * var object = { 'user': 'fred' };
     *
     * var bound = _.bind(greet, object, 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bind(greet, object, _, '!');
     * bound('hi');
     * // => 'hi fred!'
     */
    var bind = baseRest(function(func, thisArg, partials) {
      var bitmask = WRAP_BIND_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bind));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(func, bitmask, thisArg, partials, holders);
    });

    /**
     * Creates a function that invokes the method at `object[key]` with `partials`
     * prepended to the arguments it receives.
     *
     * This method differs from `_.bind` by allowing bound functions to reference
     * methods that may be redefined or don't yet exist. See
     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
     * for more details.
     *
     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Function
     * @param {Object} object The object to invoke the method on.
     * @param {string} key The key of the method.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * var object = {
     *   'user': 'fred',
     *   'greet': function(greeting, punctuation) {
     *     return greeting + ' ' + this.user + punctuation;
     *   }
     * };
     *
     * var bound = _.bindKey(object, 'greet', 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * object.greet = function(greeting, punctuation) {
     *   return greeting + 'ya ' + this.user + punctuation;
     * };
     *
     * bound('!');
     * // => 'hiya fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bindKey(object, 'greet', _, '!');
     * bound('hi');
     * // => 'hiya fred!'
     */
    var bindKey = baseRest(function(object, key, partials) {
      var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bindKey));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(key, bitmask, object, partials, holders);
    });

    /**
     * Creates a function that accepts arguments of `func` and either invokes
     * `func` returning its result, if at least `arity` number of arguments have
     * been provided, or returns a function that accepts the remaining `func`
     * arguments, and so on. The arity of `func` may be specified if `func.length`
     * is not sufficient.
     *
     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curry(abc);
     *
     * curried(1)(2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(1)(_, 3)(2);
     * // => [1, 2, 3]
     */
    function curry(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curry.placeholder;
      return result;
    }

    /**
     * This method is like `_.curry` except that arguments are applied to `func`
     * in the manner of `_.partialRight` instead of `_.partial`.
     *
     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curryRight(abc);
     *
     * curried(3)(2)(1);
     * // => [1, 2, 3]
     *
     * curried(2, 3)(1);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(3)(1, _)(2);
     * // => [1, 2, 3]
     */
    function curryRight(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curryRight.placeholder;
      return result;
    }

    /**
     * Creates a debounced function that delays invoking `func` until after `wait`
     * milliseconds have elapsed since the last time the debounced function was
     * invoked. The debounced function comes with a `cancel` method to cancel
     * delayed `func` invocations and a `flush` method to immediately invoke them.
     * Provide `options` to indicate whether `func` should be invoked on the
     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
     * with the last arguments provided to the debounced function. Subsequent
     * calls to the debounced function return the result of the last `func`
     * invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the debounced function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.debounce` and `_.throttle`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to debounce.
     * @param {number} [wait=0] The number of milliseconds to delay.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=false]
     *  Specify invoking on the leading edge of the timeout.
     * @param {number} [options.maxWait]
     *  The maximum time `func` is allowed to be delayed before it's invoked.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new debounced function.
     * @example
     *
     * // Avoid costly calculations while the window size is in flux.
     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
     *
     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
     * jQuery(element).on('click', _.debounce(sendMail, 300, {
     *   'leading': true,
     *   'trailing': false
     * }));
     *
     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
     * var source = new EventSource('/stream');
     * jQuery(source).on('message', debounced);
     *
     * // Cancel the trailing debounced invocation.
     * jQuery(window).on('popstate', debounced.cancel);
     */
    function debounce(func, wait, options) {
      var lastArgs,
          lastThis,
          maxWait,
          result,
          timerId,
          lastCallTime,
          lastInvokeTime = 0,
          leading = false,
          maxing = false,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      wait = toNumber(wait) || 0;
      if (isObject(options)) {
        leading = !!options.leading;
        maxing = 'maxWait' in options;
        maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }

      function invokeFunc(time) {
        var args = lastArgs,
            thisArg = lastThis;

        lastArgs = lastThis = undefined;
        lastInvokeTime = time;
        result = func.apply(thisArg, args);
        return result;
      }

      function leadingEdge(time) {
        // Reset any `maxWait` timer.
        lastInvokeTime = time;
        // Start the timer for the trailing edge.
        timerId = setTimeout(timerExpired, wait);
        // Invoke the leading edge.
        return leading ? invokeFunc(time) : result;
      }

      function remainingWait(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime,
            timeWaiting = wait - timeSinceLastCall;

        return maxing
          ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
          : timeWaiting;
      }

      function shouldInvoke(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime;

        // Either this is the first call, activity has stopped and we're at the
        // trailing edge, the system time has gone backwards and we're treating
        // it as the trailing edge, or we've hit the `maxWait` limit.
        return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
          (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
      }

      function timerExpired() {
        var time = now();
        if (shouldInvoke(time)) {
          return trailingEdge(time);
        }
        // Restart the timer.
        timerId = setTimeout(timerExpired, remainingWait(time));
      }

      function trailingEdge(time) {
        timerId = undefined;

        // Only invoke if we have `lastArgs` which means `func` has been
        // debounced at least once.
        if (trailing && lastArgs) {
          return invokeFunc(time);
        }
        lastArgs = lastThis = undefined;
        return result;
      }

      function cancel() {
        if (timerId !== undefined) {
          clearTimeout(timerId);
        }
        lastInvokeTime = 0;
        lastArgs = lastCallTime = lastThis = timerId = undefined;
      }

      function flush() {
        return timerId === undefined ? result : trailingEdge(now());
      }

      function debounced() {
        var time = now(),
            isInvoking = shouldInvoke(time);

        lastArgs = arguments;
        lastThis = this;
        lastCallTime = time;

        if (isInvoking) {
          if (timerId === undefined) {
            return leadingEdge(lastCallTime);
          }
          if (maxing) {
            // Handle invocations in a tight loop.
            timerId = setTimeout(timerExpired, wait);
            return invokeFunc(lastCallTime);
          }
        }
        if (timerId === undefined) {
          timerId = setTimeout(timerExpired, wait);
        }
        return result;
      }
      debounced.cancel = cancel;
      debounced.flush = flush;
      return debounced;
    }

    /**
     * Defers invoking the `func` until the current call stack has cleared. Any
     * additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to defer.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.defer(function(text) {
     *   console.log(text);
     * }, 'deferred');
     * // => Logs 'deferred' after one millisecond.
     */
    var defer = baseRest(function(func, args) {
      return baseDelay(func, 1, args);
    });

    /**
     * Invokes `func` after `wait` milliseconds. Any additional arguments are
     * provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.delay(function(text) {
     *   console.log(text);
     * }, 1000, 'later');
     * // => Logs 'later' after one second.
     */
    var delay = baseRest(function(func, wait, args) {
      return baseDelay(func, toNumber(wait) || 0, args);
    });

    /**
     * Creates a function that invokes `func` with arguments reversed.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to flip arguments for.
     * @returns {Function} Returns the new flipped function.
     * @example
     *
     * var flipped = _.flip(function() {
     *   return _.toArray(arguments);
     * });
     *
     * flipped('a', 'b', 'c', 'd');
     * // => ['d', 'c', 'b', 'a']
     */
    function flip(func) {
      return createWrap(func, WRAP_FLIP_FLAG);
    }

    /**
     * Creates a function that memoizes the result of `func`. If `resolver` is
     * provided, it determines the cache key for storing the result based on the
     * arguments provided to the memoized function. By default, the first argument
     * provided to the memoized function is used as the map cache key. The `func`
     * is invoked with the `this` binding of the memoized function.
     *
     * **Note:** The cache is exposed as the `cache` property on the memoized
     * function. Its creation may be customized by replacing the `_.memoize.Cache`
     * constructor with one whose instances implement the
     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
     * method interface of `clear`, `delete`, `get`, `has`, and `set`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to have its output memoized.
     * @param {Function} [resolver] The function to resolve the cache key.
     * @returns {Function} Returns the new memoized function.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     * var other = { 'c': 3, 'd': 4 };
     *
     * var values = _.memoize(_.values);
     * values(object);
     * // => [1, 2]
     *
     * values(other);
     * // => [3, 4]
     *
     * object.a = 2;
     * values(object);
     * // => [1, 2]
     *
     * // Modify the result cache.
     * values.cache.set(object, ['a', 'b']);
     * values(object);
     * // => ['a', 'b']
     *
     * // Replace `_.memoize.Cache`.
     * _.memoize.Cache = WeakMap;
     */
    function memoize(func, resolver) {
      if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      var memoized = function() {
        var args = arguments,
            key = resolver ? resolver.apply(this, args) : args[0],
            cache = memoized.cache;

        if (cache.has(key)) {
          return cache.get(key);
        }
        var result = func.apply(this, args);
        memoized.cache = cache.set(key, result) || cache;
        return result;
      };
      memoized.cache = new (memoize.Cache || MapCache);
      return memoized;
    }

    // Expose `MapCache`.
    memoize.Cache = MapCache;

    /**
     * Creates a function that negates the result of the predicate `func`. The
     * `func` predicate is invoked with the `this` binding and arguments of the
     * created function.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} predicate The predicate to negate.
     * @returns {Function} Returns the new negated function.
     * @example
     *
     * function isEven(n) {
     *   return n % 2 == 0;
     * }
     *
     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
     * // => [1, 3, 5]
     */
    function negate(predicate) {
      if (typeof predicate != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return function() {
        var args = arguments;
        switch (args.length) {
          case 0: return !predicate.call(this);
          case 1: return !predicate.call(this, args[0]);
          case 2: return !predicate.call(this, args[0], args[1]);
          case 3: return !predicate.call(this, args[0], args[1], args[2]);
        }
        return !predicate.apply(this, args);
      };
    }

    /**
     * Creates a function that is restricted to invoking `func` once. Repeat calls
     * to the function return the value of the first invocation. The `func` is
     * invoked with the `this` binding and arguments of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var initialize = _.once(createApplication);
     * initialize();
     * initialize();
     * // => `createApplication` is invoked once
     */
    function once(func) {
      return before(2, func);
    }

    /**
     * Creates a function that invokes `func` with its arguments transformed.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Function
     * @param {Function} func The function to wrap.
     * @param {...(Function|Function[])} [transforms=[_.identity]]
     *  The argument transforms.
     * @returns {Function} Returns the new function.
     * @example
     *
     * function doubled(n) {
     *   return n * 2;
     * }
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var func = _.overArgs(function(x, y) {
     *   return [x, y];
     * }, [square, doubled]);
     *
     * func(9, 3);
     * // => [81, 6]
     *
     * func(10, 5);
     * // => [100, 10]
     */
    var overArgs = castRest(function(func, transforms) {
      transforms = (transforms.length == 1 && isArray(transforms[0]))
        ? arrayMap(transforms[0], baseUnary(getIteratee()))
        : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));

      var funcsLength = transforms.length;
      return baseRest(function(args) {
        var index = -1,
            length = nativeMin(args.length, funcsLength);

        while (++index < length) {
          args[index] = transforms[index].call(this, args[index]);
        }
        return apply(func, this, args);
      });
    });

    /**
     * Creates a function that invokes `func` with `partials` prepended to the
     * arguments it receives. This method is like `_.bind` except it does **not**
     * alter the `this` binding.
     *
     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 0.2.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var sayHelloTo = _.partial(greet, 'hello');
     * sayHelloTo('fred');
     * // => 'hello fred'
     *
     * // Partially applied with placeholders.
     * var greetFred = _.partial(greet, _, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     */
    var partial = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partial));
      return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
    });

    /**
     * This method is like `_.partial` except that partially applied arguments
     * are appended to the arguments it receives.
     *
     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var greetFred = _.partialRight(greet, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     *
     * // Partially applied with placeholders.
     * var sayHelloTo = _.partialRight(greet, 'hello', _);
     * sayHelloTo('fred');
     * // => 'hello fred'
     */
    var partialRight = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partialRight));
      return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
    });

    /**
     * Creates a function that invokes `func` with arguments arranged according
     * to the specified `indexes` where the argument value at the first index is
     * provided as the first argument, the argument value at the second index is
     * provided as the second argument, and so on.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to rearrange arguments for.
     * @param {...(number|number[])} indexes The arranged argument indexes.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var rearged = _.rearg(function(a, b, c) {
     *   return [a, b, c];
     * }, [2, 0, 1]);
     *
     * rearged('b', 'c', 'a')
     * // => ['a', 'b', 'c']
     */
    var rearg = flatRest(function(func, indexes) {
      return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
    });

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * created function and arguments from `start` and beyond provided as
     * an array.
     *
     * **Note:** This method is based on the
     * [rest parameter](https://mdn.io/rest_parameters).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.rest(function(what, names) {
     *   return what + ' ' + _.initial(names).join(', ') +
     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
     * });
     *
     * say('hello', 'fred', 'barney', 'pebbles');
     * // => 'hello fred, barney, & pebbles'
     */
    function rest(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start === undefined ? start : toInteger(start);
      return baseRest(func, start);
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * create function and an array of arguments much like
     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
     *
     * **Note:** This method is based on the
     * [spread operator](https://mdn.io/spread_operator).
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Function
     * @param {Function} func The function to spread arguments over.
     * @param {number} [start=0] The start position of the spread.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.spread(function(who, what) {
     *   return who + ' says ' + what;
     * });
     *
     * say(['fred', 'hello']);
     * // => 'fred says hello'
     *
     * var numbers = Promise.all([
     *   Promise.resolve(40),
     *   Promise.resolve(36)
     * ]);
     *
     * numbers.then(_.spread(function(x, y) {
     *   return x + y;
     * }));
     * // => a Promise of 76
     */
    function spread(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start == null ? 0 : nativeMax(toInteger(start), 0);
      return baseRest(function(args) {
        var array = args[start],
            otherArgs = castSlice(args, 0, start);

        if (array) {
          arrayPush(otherArgs, array);
        }
        return apply(func, this, otherArgs);
      });
    }

    /**
     * Creates a throttled function that only invokes `func` at most once per
     * every `wait` milliseconds. The throttled function comes with a `cancel`
     * method to cancel delayed `func` invocations and a `flush` method to
     * immediately invoke them. Provide `options` to indicate whether `func`
     * should be invoked on the leading and/or trailing edge of the `wait`
     * timeout. The `func` is invoked with the last arguments provided to the
     * throttled function. Subsequent calls to the throttled function return the
     * result of the last `func` invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the throttled function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.throttle` and `_.debounce`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to throttle.
     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=true]
     *  Specify invoking on the leading edge of the timeout.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new throttled function.
     * @example
     *
     * // Avoid excessively updating the position while scrolling.
     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
     *
     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
     * jQuery(element).on('click', throttled);
     *
     * // Cancel the trailing throttled invocation.
     * jQuery(window).on('popstate', throttled.cancel);
     */
    function throttle(func, wait, options) {
      var leading = true,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      if (isObject(options)) {
        leading = 'leading' in options ? !!options.leading : leading;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }
      return debounce(func, wait, {
        'leading': leading,
        'maxWait': wait,
        'trailing': trailing
      });
    }

    /**
     * Creates a function that accepts up to one argument, ignoring any
     * additional arguments.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.unary(parseInt));
     * // => [6, 8, 10]
     */
    function unary(func) {
      return ary(func, 1);
    }

    /**
     * Creates a function that provides `value` to `wrapper` as its first
     * argument. Any additional arguments provided to the function are appended
     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
     * binding of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {*} value The value to wrap.
     * @param {Function} [wrapper=identity] The wrapper function.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var p = _.wrap(_.escape, function(func, text) {
     *   return '<p>' + func(text) + '</p>';
     * });
     *
     * p('fred, barney, & pebbles');
     * // => '<p>fred, barney, &amp; pebbles</p>'
     */
    function wrap(value, wrapper) {
      return partial(castFunction(wrapper), value);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Casts `value` as an array if it's not one.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Lang
     * @param {*} value The value to inspect.
     * @returns {Array} Returns the cast array.
     * @example
     *
     * _.castArray(1);
     * // => [1]
     *
     * _.castArray({ 'a': 1 });
     * // => [{ 'a': 1 }]
     *
     * _.castArray('abc');
     * // => ['abc']
     *
     * _.castArray(null);
     * // => [null]
     *
     * _.castArray(undefined);
     * // => [undefined]
     *
     * _.castArray();
     * // => []
     *
     * var array = [1, 2, 3];
     * console.log(_.castArray(array) === array);
     * // => true
     */
    function castArray() {
      if (!arguments.length) {
        return [];
      }
      var value = arguments[0];
      return isArray(value) ? value : [value];
    }

    /**
     * Creates a shallow clone of `value`.
     *
     * **Note:** This method is loosely based on the
     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
     * and supports cloning arrays, array buffers, booleans, date objects, maps,
     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
     * arrays. The own enumerable properties of `arguments` objects are cloned
     * as plain objects. An empty object is returned for uncloneable values such
     * as error objects, functions, DOM nodes, and WeakMaps.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to clone.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeep
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var shallow = _.clone(objects);
     * console.log(shallow[0] === objects[0]);
     * // => true
     */
    function clone(value) {
      return baseClone(value, CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.clone` except that it accepts `customizer` which
     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
     * cloning is handled by the method instead. The `customizer` is invoked with
     * up to four arguments; (value [, index|key, object, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeepWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(false);
     *   }
     * }
     *
     * var el = _.cloneWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 0
     */
    function cloneWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * This method is like `_.clone` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @returns {*} Returns the deep cloned value.
     * @see _.clone
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var deep = _.cloneDeep(objects);
     * console.log(deep[0] === objects[0]);
     * // => false
     */
    function cloneDeep(value) {
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.cloneWith` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the deep cloned value.
     * @see _.cloneWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(true);
     *   }
     * }
     *
     * var el = _.cloneDeepWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 20
     */
    function cloneDeepWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * Checks if `object` conforms to `source` by invoking the predicate
     * properties of `source` with the corresponding property values of `object`.
     *
     * **Note:** This method is equivalent to `_.conforms` when `source` is
     * partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
     * // => true
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
     * // => false
     */
    function conformsTo(object, source) {
      return source == null || baseConformsTo(object, source, keys(source));
    }

    /**
     * Performs a
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * comparison between two values to determine if they are equivalent.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.eq(object, object);
     * // => true
     *
     * _.eq(object, other);
     * // => false
     *
     * _.eq('a', 'a');
     * // => true
     *
     * _.eq('a', Object('a'));
     * // => false
     *
     * _.eq(NaN, NaN);
     * // => true
     */
    function eq(value, other) {
      return value === other || (value !== value && other !== other);
    }

    /**
     * Checks if `value` is greater than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     * @see _.lt
     * @example
     *
     * _.gt(3, 1);
     * // => true
     *
     * _.gt(3, 3);
     * // => false
     *
     * _.gt(1, 3);
     * // => false
     */
    var gt = createRelationalOperation(baseGt);

    /**
     * Checks if `value` is greater than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than or equal to
     *  `other`, else `false`.
     * @see _.lte
     * @example
     *
     * _.gte(3, 1);
     * // => true
     *
     * _.gte(3, 3);
     * // => true
     *
     * _.gte(1, 3);
     * // => false
     */
    var gte = createRelationalOperation(function(value, other) {
      return value >= other;
    });

    /**
     * Checks if `value` is likely an `arguments` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     *  else `false`.
     * @example
     *
     * _.isArguments(function() { return arguments; }());
     * // => true
     *
     * _.isArguments([1, 2, 3]);
     * // => false
     */
    var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
      return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
        !propertyIsEnumerable.call(value, 'callee');
    };

    /**
     * Checks if `value` is classified as an `Array` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array, else `false`.
     * @example
     *
     * _.isArray([1, 2, 3]);
     * // => true
     *
     * _.isArray(document.body.children);
     * // => false
     *
     * _.isArray('abc');
     * // => false
     *
     * _.isArray(_.noop);
     * // => false
     */
    var isArray = Array.isArray;

    /**
     * Checks if `value` is classified as an `ArrayBuffer` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     * @example
     *
     * _.isArrayBuffer(new ArrayBuffer(2));
     * // => true
     *
     * _.isArrayBuffer(new Array(2));
     * // => false
     */
    var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;

    /**
     * Checks if `value` is array-like. A value is considered array-like if it's
     * not a function and has a `value.length` that's an integer greater than or
     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
     * @example
     *
     * _.isArrayLike([1, 2, 3]);
     * // => true
     *
     * _.isArrayLike(document.body.children);
     * // => true
     *
     * _.isArrayLike('abc');
     * // => true
     *
     * _.isArrayLike(_.noop);
     * // => false
     */
    function isArrayLike(value) {
      return value != null && isLength(value.length) && !isFunction(value);
    }

    /**
     * This method is like `_.isArrayLike` except that it also checks if `value`
     * is an object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array-like object,
     *  else `false`.
     * @example
     *
     * _.isArrayLikeObject([1, 2, 3]);
     * // => true
     *
     * _.isArrayLikeObject(document.body.children);
     * // => true
     *
     * _.isArrayLikeObject('abc');
     * // => false
     *
     * _.isArrayLikeObject(_.noop);
     * // => false
     */
    function isArrayLikeObject(value) {
      return isObjectLike(value) && isArrayLike(value);
    }

    /**
     * Checks if `value` is classified as a boolean primitive or object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
     * @example
     *
     * _.isBoolean(false);
     * // => true
     *
     * _.isBoolean(null);
     * // => false
     */
    function isBoolean(value) {
      return value === true || value === false ||
        (isObjectLike(value) && baseGetTag(value) == boolTag);
    }

    /**
     * Checks if `value` is a buffer.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
     * @example
     *
     * _.isBuffer(new Buffer(2));
     * // => true
     *
     * _.isBuffer(new Uint8Array(2));
     * // => false
     */
    var isBuffer = nativeIsBuffer || stubFalse;

    /**
     * Checks if `value` is classified as a `Date` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     * @example
     *
     * _.isDate(new Date);
     * // => true
     *
     * _.isDate('Mon April 23 2012');
     * // => false
     */
    var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;

    /**
     * Checks if `value` is likely a DOM element.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
     * @example
     *
     * _.isElement(document.body);
     * // => true
     *
     * _.isElement('<body>');
     * // => false
     */
    function isElement(value) {
      return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
    }

    /**
     * Checks if `value` is an empty object, collection, map, or set.
     *
     * Objects are considered empty if they have no own enumerable string keyed
     * properties.
     *
     * Array-like values such as `arguments` objects, arrays, buffers, strings, or
     * jQuery-like collections are considered empty if they have a `length` of `0`.
     * Similarly, maps and sets are considered empty if they have a `size` of `0`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
     * @example
     *
     * _.isEmpty(null);
     * // => true
     *
     * _.isEmpty(true);
     * // => true
     *
     * _.isEmpty(1);
     * // => true
     *
     * _.isEmpty([1, 2, 3]);
     * // => false
     *
     * _.isEmpty({ 'a': 1 });
     * // => false
     */
    function isEmpty(value) {
      if (value == null) {
        return true;
      }
      if (isArrayLike(value) &&
          (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
            isBuffer(value) || isTypedArray(value) || isArguments(value))) {
        return !value.length;
      }
      var tag = getTag(value);
      if (tag == mapTag || tag == setTag) {
        return !value.size;
      }
      if (isPrototype(value)) {
        return !baseKeys(value).length;
      }
      for (var key in value) {
        if (hasOwnProperty.call(value, key)) {
          return false;
        }
      }
      return true;
    }

    /**
     * Performs a deep comparison between two values to determine if they are
     * equivalent.
     *
     * **Note:** This method supports comparing arrays, array buffers, booleans,
     * date objects, error objects, maps, numbers, `Object` objects, regexes,
     * sets, strings, symbols, and typed arrays. `Object` objects are compared
     * by their own, not inherited, enumerable properties. Functions and DOM
     * nodes are compared by strict equality, i.e. `===`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.isEqual(object, other);
     * // => true
     *
     * object === other;
     * // => false
     */
    function isEqual(value, other) {
      return baseIsEqual(value, other);
    }

    /**
     * This method is like `_.isEqual` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with up to
     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, othValue) {
     *   if (isGreeting(objValue) && isGreeting(othValue)) {
     *     return true;
     *   }
     * }
     *
     * var array = ['hello', 'goodbye'];
     * var other = ['hi', 'goodbye'];
     *
     * _.isEqualWith(array, other, customizer);
     * // => true
     */
    function isEqualWith(value, other, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      var result = customizer ? customizer(value, other) : undefined;
      return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
    }

    /**
     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
     * `SyntaxError`, `TypeError`, or `URIError` object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
     * @example
     *
     * _.isError(new Error);
     * // => true
     *
     * _.isError(Error);
     * // => false
     */
    function isError(value) {
      if (!isObjectLike(value)) {
        return false;
      }
      var tag = baseGetTag(value);
      return tag == errorTag || tag == domExcTag ||
        (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
    }

    /**
     * Checks if `value` is a finite primitive number.
     *
     * **Note:** This method is based on
     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
     * @example
     *
     * _.isFinite(3);
     * // => true
     *
     * _.isFinite(Number.MIN_VALUE);
     * // => true
     *
     * _.isFinite(Infinity);
     * // => false
     *
     * _.isFinite('3');
     * // => false
     */
    function isFinite(value) {
      return typeof value == 'number' && nativeIsFinite(value);
    }

    /**
     * Checks if `value` is classified as a `Function` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a function, else `false`.
     * @example
     *
     * _.isFunction(_);
     * // => true
     *
     * _.isFunction(/abc/);
     * // => false
     */
    function isFunction(value) {
      if (!isObject(value)) {
        return false;
      }
      // The use of `Object#toString` avoids issues with the `typeof` operator
      // in Safari 9 which returns 'object' for typed arrays and other constructors.
      var tag = baseGetTag(value);
      return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
    }

    /**
     * Checks if `value` is an integer.
     *
     * **Note:** This method is based on
     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
     * @example
     *
     * _.isInteger(3);
     * // => true
     *
     * _.isInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isInteger(Infinity);
     * // => false
     *
     * _.isInteger('3');
     * // => false
     */
    function isInteger(value) {
      return typeof value == 'number' && value == toInteger(value);
    }

    /**
     * Checks if `value` is a valid array-like length.
     *
     * **Note:** This method is loosely based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
     * @example
     *
     * _.isLength(3);
     * // => true
     *
     * _.isLength(Number.MIN_VALUE);
     * // => false
     *
     * _.isLength(Infinity);
     * // => false
     *
     * _.isLength('3');
     * // => false
     */
    function isLength(value) {
      return typeof value == 'number' &&
        value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is the
     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
     * @example
     *
     * _.isObject({});
     * // => true
     *
     * _.isObject([1, 2, 3]);
     * // => true
     *
     * _.isObject(_.noop);
     * // => true
     *
     * _.isObject(null);
     * // => false
     */
    function isObject(value) {
      var type = typeof value;
      return value != null && (type == 'object' || type == 'function');
    }

    /**
     * Checks if `value` is object-like. A value is object-like if it's not `null`
     * and has a `typeof` result of "object".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
     * @example
     *
     * _.isObjectLike({});
     * // => true
     *
     * _.isObjectLike([1, 2, 3]);
     * // => true
     *
     * _.isObjectLike(_.noop);
     * // => false
     *
     * _.isObjectLike(null);
     * // => false
     */
    function isObjectLike(value) {
      return value != null && typeof value == 'object';
    }

    /**
     * Checks if `value` is classified as a `Map` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     * @example
     *
     * _.isMap(new Map);
     * // => true
     *
     * _.isMap(new WeakMap);
     * // => false
     */
    var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

    /**
     * Performs a partial deep comparison between `object` and `source` to
     * determine if `object` contains equivalent property values.
     *
     * **Note:** This method is equivalent to `_.matches` when `source` is
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.isMatch(object, { 'b': 2 });
     * // => true
     *
     * _.isMatch(object, { 'b': 1 });
     * // => false
     */
    function isMatch(object, source) {
      return object === source || baseIsMatch(object, source, getMatchData(source));
    }

    /**
     * This method is like `_.isMatch` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with five
     * arguments: (objValue, srcValue, index|key, object, source).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, srcValue) {
     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
     *     return true;
     *   }
     * }
     *
     * var object = { 'greeting': 'hello' };
     * var source = { 'greeting': 'hi' };
     *
     * _.isMatchWith(object, source, customizer);
     * // => true
     */
    function isMatchWith(object, source, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseIsMatch(object, source, getMatchData(source), customizer);
    }

    /**
     * Checks if `value` is `NaN`.
     *
     * **Note:** This method is based on
     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
     * `undefined` and other non-number values.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
     * @example
     *
     * _.isNaN(NaN);
     * // => true
     *
     * _.isNaN(new Number(NaN));
     * // => true
     *
     * isNaN(undefined);
     * // => true
     *
     * _.isNaN(undefined);
     * // => false
     */
    function isNaN(value) {
      // An `NaN` primitive is the only value that is not equal to itself.
      // Perform the `toStringTag` check first to avoid errors with some
      // ActiveX objects in IE.
      return isNumber(value) && value != +value;
    }

    /**
     * Checks if `value` is a pristine native function.
     *
     * **Note:** This method can't reliably detect native functions in the presence
     * of the core-js package because core-js circumvents this kind of detection.
     * Despite multiple requests, the core-js maintainer has made it clear: any
     * attempt to fix the detection will be obstructed. As a result, we're left
     * with little choice but to throw an error. Unfortunately, this also affects
     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
     * which rely on core-js.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     * @example
     *
     * _.isNative(Array.prototype.push);
     * // => true
     *
     * _.isNative(_);
     * // => false
     */
    function isNative(value) {
      if (isMaskable(value)) {
        throw new Error(CORE_ERROR_TEXT);
      }
      return baseIsNative(value);
    }

    /**
     * Checks if `value` is `null`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
     * @example
     *
     * _.isNull(null);
     * // => true
     *
     * _.isNull(void 0);
     * // => false
     */
    function isNull(value) {
      return value === null;
    }

    /**
     * Checks if `value` is `null` or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
     * @example
     *
     * _.isNil(null);
     * // => true
     *
     * _.isNil(void 0);
     * // => true
     *
     * _.isNil(NaN);
     * // => false
     */
    function isNil(value) {
      return value == null;
    }

    /**
     * Checks if `value` is classified as a `Number` primitive or object.
     *
     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
     * classified as numbers, use the `_.isFinite` method.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a number, else `false`.
     * @example
     *
     * _.isNumber(3);
     * // => true
     *
     * _.isNumber(Number.MIN_VALUE);
     * // => true
     *
     * _.isNumber(Infinity);
     * // => true
     *
     * _.isNumber('3');
     * // => false
     */
    function isNumber(value) {
      return typeof value == 'number' ||
        (isObjectLike(value) && baseGetTag(value) == numberTag);
    }

    /**
     * Checks if `value` is a plain object, that is, an object created by the
     * `Object` constructor or one with a `[[Prototype]]` of `null`.
     *
     * @static
     * @memberOf _
     * @since 0.8.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * _.isPlainObject(new Foo);
     * // => false
     *
     * _.isPlainObject([1, 2, 3]);
     * // => false
     *
     * _.isPlainObject({ 'x': 0, 'y': 0 });
     * // => true
     *
     * _.isPlainObject(Object.create(null));
     * // => true
     */
    function isPlainObject(value) {
      if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
        return false;
      }
      var proto = getPrototype(value);
      if (proto === null) {
        return true;
      }
      var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
      return typeof Ctor == 'function' && Ctor instanceof Ctor &&
        funcToString.call(Ctor) == objectCtorString;
    }

    /**
     * Checks if `value` is classified as a `RegExp` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     * @example
     *
     * _.isRegExp(/abc/);
     * // => true
     *
     * _.isRegExp('/abc/');
     * // => false
     */
    var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;

    /**
     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
     * double precision number which isn't the result of a rounded unsafe integer.
     *
     * **Note:** This method is based on
     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
     * @example
     *
     * _.isSafeInteger(3);
     * // => true
     *
     * _.isSafeInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isSafeInteger(Infinity);
     * // => false
     *
     * _.isSafeInteger('3');
     * // => false
     */
    function isSafeInteger(value) {
      return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is classified as a `Set` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     * @example
     *
     * _.isSet(new Set);
     * // => true
     *
     * _.isSet(new WeakSet);
     * // => false
     */
    var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

    /**
     * Checks if `value` is classified as a `String` primitive or object.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
     * @example
     *
     * _.isString('abc');
     * // => true
     *
     * _.isString(1);
     * // => false
     */
    function isString(value) {
      return typeof value == 'string' ||
        (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
    }

    /**
     * Checks if `value` is classified as a `Symbol` primitive or object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
     * @example
     *
     * _.isSymbol(Symbol.iterator);
     * // => true
     *
     * _.isSymbol('abc');
     * // => false
     */
    function isSymbol(value) {
      return typeof value == 'symbol' ||
        (isObjectLike(value) && baseGetTag(value) == symbolTag);
    }

    /**
     * Checks if `value` is classified as a typed array.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     * @example
     *
     * _.isTypedArray(new Uint8Array);
     * // => true
     *
     * _.isTypedArray([]);
     * // => false
     */
    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

    /**
     * Checks if `value` is `undefined`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
     * @example
     *
     * _.isUndefined(void 0);
     * // => true
     *
     * _.isUndefined(null);
     * // => false
     */
    function isUndefined(value) {
      return value === undefined;
    }

    /**
     * Checks if `value` is classified as a `WeakMap` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
     * @example
     *
     * _.isWeakMap(new WeakMap);
     * // => true
     *
     * _.isWeakMap(new Map);
     * // => false
     */
    function isWeakMap(value) {
      return isObjectLike(value) && getTag(value) == weakMapTag;
    }

    /**
     * Checks if `value` is classified as a `WeakSet` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
     * @example
     *
     * _.isWeakSet(new WeakSet);
     * // => true
     *
     * _.isWeakSet(new Set);
     * // => false
     */
    function isWeakSet(value) {
      return isObjectLike(value) && baseGetTag(value) == weakSetTag;
    }

    /**
     * Checks if `value` is less than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     * @see _.gt
     * @example
     *
     * _.lt(1, 3);
     * // => true
     *
     * _.lt(3, 3);
     * // => false
     *
     * _.lt(3, 1);
     * // => false
     */
    var lt = createRelationalOperation(baseLt);

    /**
     * Checks if `value` is less than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than or equal to
     *  `other`, else `false`.
     * @see _.gte
     * @example
     *
     * _.lte(1, 3);
     * // => true
     *
     * _.lte(3, 3);
     * // => true
     *
     * _.lte(3, 1);
     * // => false
     */
    var lte = createRelationalOperation(function(value, other) {
      return value <= other;
    });

    /**
     * Converts `value` to an array.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Array} Returns the converted array.
     * @example
     *
     * _.toArray({ 'a': 1, 'b': 2 });
     * // => [1, 2]
     *
     * _.toArray('abc');
     * // => ['a', 'b', 'c']
     *
     * _.toArray(1);
     * // => []
     *
     * _.toArray(null);
     * // => []
     */
    function toArray(value) {
      if (!value) {
        return [];
      }
      if (isArrayLike(value)) {
        return isString(value) ? stringToArray(value) : copyArray(value);
      }
      if (symIterator && value[symIterator]) {
        return iteratorToArray(value[symIterator]());
      }
      var tag = getTag(value),
          func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);

      return func(value);
    }

    /**
     * Converts `value` to a finite number.
     *
     * @static
     * @memberOf _
     * @since 4.12.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted number.
     * @example
     *
     * _.toFinite(3.2);
     * // => 3.2
     *
     * _.toFinite(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toFinite(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toFinite('3.2');
     * // => 3.2
     */
    function toFinite(value) {
      if (!value) {
        return value === 0 ? value : 0;
      }
      value = toNumber(value);
      if (value === INFINITY || value === -INFINITY) {
        var sign = (value < 0 ? -1 : 1);
        return sign * MAX_INTEGER;
      }
      return value === value ? value : 0;
    }

    /**
     * Converts `value` to an integer.
     *
     * **Note:** This method is loosely based on
     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toInteger(3.2);
     * // => 3
     *
     * _.toInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toInteger(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toInteger('3.2');
     * // => 3
     */
    function toInteger(value) {
      var result = toFinite(value),
          remainder = result % 1;

      return result === result ? (remainder ? result - remainder : result) : 0;
    }

    /**
     * Converts `value` to an integer suitable for use as the length of an
     * array-like object.
     *
     * **Note:** This method is based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toLength(3.2);
     * // => 3
     *
     * _.toLength(Number.MIN_VALUE);
     * // => 0
     *
     * _.toLength(Infinity);
     * // => 4294967295
     *
     * _.toLength('3.2');
     * // => 3
     */
    function toLength(value) {
      return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
    }

    /**
     * Converts `value` to a number.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     * @example
     *
     * _.toNumber(3.2);
     * // => 3.2
     *
     * _.toNumber(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toNumber(Infinity);
     * // => Infinity
     *
     * _.toNumber('3.2');
     * // => 3.2
     */
    function toNumber(value) {
      if (typeof value == 'number') {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      if (isObject(value)) {
        var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
        value = isObject(other) ? (other + '') : other;
      }
      if (typeof value != 'string') {
        return value === 0 ? value : +value;
      }
      value = value.replace(reTrim, '');
      var isBinary = reIsBinary.test(value);
      return (isBinary || reIsOctal.test(value))
        ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
        : (reIsBadHex.test(value) ? NAN : +value);
    }

    /**
     * Converts `value` to a plain object flattening inherited enumerable string
     * keyed properties of `value` to own properties of the plain object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Object} Returns the converted plain object.
     * @example
     *
     * function Foo() {
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.assign({ 'a': 1 }, new Foo);
     * // => { 'a': 1, 'b': 2 }
     *
     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
     * // => { 'a': 1, 'b': 2, 'c': 3 }
     */
    function toPlainObject(value) {
      return copyObject(value, keysIn(value));
    }

    /**
     * Converts `value` to a safe integer. A safe integer can be compared and
     * represented correctly.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toSafeInteger(3.2);
     * // => 3
     *
     * _.toSafeInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toSafeInteger(Infinity);
     * // => 9007199254740991
     *
     * _.toSafeInteger('3.2');
     * // => 3
     */
    function toSafeInteger(value) {
      return value
        ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
        : (value === 0 ? value : 0);
    }

    /**
     * Converts `value` to a string. An empty string is returned for `null`
     * and `undefined` values. The sign of `-0` is preserved.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.toString(null);
     * // => ''
     *
     * _.toString(-0);
     * // => '-0'
     *
     * _.toString([1, 2, 3]);
     * // => '1,2,3'
     */
    function toString(value) {
      return value == null ? '' : baseToString(value);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Assigns own enumerable string keyed properties of source objects to the
     * destination object. Source objects are applied from left to right.
     * Subsequent sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object` and is loosely based on
     * [`Object.assign`](https://mdn.io/Object/assign).
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assignIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assign({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'c': 3 }
     */
    var assign = createAssigner(function(object, source) {
      if (isPrototype(source) || isArrayLike(source)) {
        copyObject(source, keys(source), object);
        return;
      }
      for (var key in source) {
        if (hasOwnProperty.call(source, key)) {
          assignValue(object, key, source[key]);
        }
      }
    });

    /**
     * This method is like `_.assign` except that it iterates over own and
     * inherited source properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extend
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assign
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
     */
    var assignIn = createAssigner(function(object, source) {
      copyObject(source, keysIn(source), object);
    });

    /**
     * This method is like `_.assignIn` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extendWith
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignInWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keysIn(source), object, customizer);
    });

    /**
     * This method is like `_.assign` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignInWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keys(source), object, customizer);
    });

    /**
     * Creates an array of values corresponding to `paths` of `object`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Array} Returns the picked values.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _.at(object, ['a[0].b.c', 'a[1]']);
     * // => [3, 4]
     */
    var at = flatRest(baseAt);

    /**
     * Creates an object that inherits from the `prototype` object. If a
     * `properties` object is given, its own enumerable string keyed properties
     * are assigned to the created object.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Object
     * @param {Object} prototype The object to inherit from.
     * @param {Object} [properties] The properties to assign to the object.
     * @returns {Object} Returns the new object.
     * @example
     *
     * function Shape() {
     *   this.x = 0;
     *   this.y = 0;
     * }
     *
     * function Circle() {
     *   Shape.call(this);
     * }
     *
     * Circle.prototype = _.create(Shape.prototype, {
     *   'constructor': Circle
     * });
     *
     * var circle = new Circle;
     * circle instanceof Circle;
     * // => true
     *
     * circle instanceof Shape;
     * // => true
     */
    function create(prototype, properties) {
      var result = baseCreate(prototype);
      return properties == null ? result : baseAssign(result, properties);
    }

    /**
     * Assigns own and inherited enumerable string keyed properties of source
     * objects to the destination object for all destination properties that
     * resolve to `undefined`. Source objects are applied from left to right.
     * Once a property is set, additional values of the same property are ignored.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaultsDeep
     * @example
     *
     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var defaults = baseRest(function(object, sources) {
      object = Object(object);

      var index = -1;
      var length = sources.length;
      var guard = length > 2 ? sources[2] : undefined;

      if (guard && isIterateeCall(sources[0], sources[1], guard)) {
        length = 1;
      }

      while (++index < length) {
        var source = sources[index];
        var props = keysIn(source);
        var propsIndex = -1;
        var propsLength = props.length;

        while (++propsIndex < propsLength) {
          var key = props[propsIndex];
          var value = object[key];

          if (value === undefined ||
              (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
            object[key] = source[key];
          }
        }
      }

      return object;
    });

    /**
     * This method is like `_.defaults` except that it recursively assigns
     * default properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaults
     * @example
     *
     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
     * // => { 'a': { 'b': 2, 'c': 3 } }
     */
    var defaultsDeep = baseRest(function(args) {
      args.push(undefined, customDefaultsMerge);
      return apply(mergeWith, undefined, args);
    });

    /**
     * This method is like `_.find` except that it returns the key of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findKey(users, function(o) { return o.age < 40; });
     * // => 'barney' (iteration order is not guaranteed)
     *
     * // The `_.matches` iteratee shorthand.
     * _.findKey(users, { 'age': 1, 'active': true });
     * // => 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findKey(users, 'active');
     * // => 'barney'
     */
    function findKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
    }

    /**
     * This method is like `_.findKey` except that it iterates over elements of
     * a collection in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findLastKey(users, function(o) { return o.age < 40; });
     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastKey(users, { 'age': 36, 'active': true });
     * // => 'barney'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastKey(users, 'active');
     * // => 'pebbles'
     */
    function findLastKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
    }

    /**
     * Iterates over own and inherited enumerable string keyed properties of an
     * object and invokes `iteratee` for each property. The iteratee is invoked
     * with three arguments: (value, key, object). Iteratee functions may exit
     * iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forInRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forIn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
     */
    function forIn(object, iteratee) {
      return object == null
        ? object
        : baseFor(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * This method is like `_.forIn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forInRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
     */
    function forInRight(object, iteratee) {
      return object == null
        ? object
        : baseForRight(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * Iterates over own enumerable string keyed properties of an object and
     * invokes `iteratee` for each property. The iteratee is invoked with three
     * arguments: (value, key, object). Iteratee functions may exit iteration
     * early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwnRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forOwn(object, iteratee) {
      return object && baseForOwn(object, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forOwn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwnRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
     */
    function forOwnRight(object, iteratee) {
      return object && baseForOwnRight(object, getIteratee(iteratee, 3));
    }

    /**
     * Creates an array of function property names from own enumerable properties
     * of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functionsIn
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functions(new Foo);
     * // => ['a', 'b']
     */
    function functions(object) {
      return object == null ? [] : baseFunctions(object, keys(object));
    }

    /**
     * Creates an array of function property names from own and inherited
     * enumerable properties of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functions
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functionsIn(new Foo);
     * // => ['a', 'b', 'c']
     */
    function functionsIn(object) {
      return object == null ? [] : baseFunctions(object, keysIn(object));
    }

    /**
     * Gets the value at `path` of `object`. If the resolved value is
     * `undefined`, the `defaultValue` is returned in its place.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.get(object, 'a[0].b.c');
     * // => 3
     *
     * _.get(object, ['a', '0', 'b', 'c']);
     * // => 3
     *
     * _.get(object, 'a.b.c', 'default');
     * // => 'default'
     */
    function get(object, path, defaultValue) {
      var result = object == null ? undefined : baseGet(object, path);
      return result === undefined ? defaultValue : result;
    }

    /**
     * Checks if `path` is a direct property of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = { 'a': { 'b': 2 } };
     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.has(object, 'a');
     * // => true
     *
     * _.has(object, 'a.b');
     * // => true
     *
     * _.has(object, ['a', 'b']);
     * // => true
     *
     * _.has(other, 'a');
     * // => false
     */
    function has(object, path) {
      return object != null && hasPath(object, path, baseHas);
    }

    /**
     * Checks if `path` is a direct or inherited property of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.hasIn(object, 'a');
     * // => true
     *
     * _.hasIn(object, 'a.b');
     * // => true
     *
     * _.hasIn(object, ['a', 'b']);
     * // => true
     *
     * _.hasIn(object, 'b');
     * // => false
     */
    function hasIn(object, path) {
      return object != null && hasPath(object, path, baseHasIn);
    }

    /**
     * Creates an object composed of the inverted keys and values of `object`.
     * If `object` contains duplicate values, subsequent values overwrite
     * property assignments of previous values.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Object
     * @param {Object} object The object to invert.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invert(object);
     * // => { '1': 'c', '2': 'b' }
     */
    var invert = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      result[value] = key;
    }, constant(identity));

    /**
     * This method is like `_.invert` except that the inverted object is generated
     * from the results of running each element of `object` thru `iteratee`. The
     * corresponding inverted value of each inverted key is an array of keys
     * responsible for generating the inverted value. The iteratee is invoked
     * with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Object
     * @param {Object} object The object to invert.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invertBy(object);
     * // => { '1': ['a', 'c'], '2': ['b'] }
     *
     * _.invertBy(object, function(value) {
     *   return 'group' + value;
     * });
     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
     */
    var invertBy = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      if (hasOwnProperty.call(result, value)) {
        result[value].push(key);
      } else {
        result[value] = [key];
      }
    }, getIteratee);

    /**
     * Invokes the method at `path` of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
     *
     * _.invoke(object, 'a[0].b.c.slice', 1, 3);
     * // => [2, 3]
     */
    var invoke = baseRest(baseInvoke);

    /**
     * Creates an array of the own enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects. See the
     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * for more details.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keys(new Foo);
     * // => ['a', 'b'] (iteration order is not guaranteed)
     *
     * _.keys('hi');
     * // => ['0', '1']
     */
    function keys(object) {
      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
    }

    /**
     * Creates an array of the own and inherited enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keysIn(new Foo);
     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
     */
    function keysIn(object) {
      return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
    }

    /**
     * The opposite of `_.mapValues`; this method creates an object with the
     * same values as `object` and keys generated by running each own enumerable
     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
     * with three arguments: (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapValues
     * @example
     *
     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
     *   return key + value;
     * });
     * // => { 'a1': 1, 'b2': 2 }
     */
    function mapKeys(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, iteratee(value, key, object), value);
      });
      return result;
    }

    /**
     * Creates an object with the same keys as `object` and values generated
     * by running each own enumerable string keyed property of `object` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapKeys
     * @example
     *
     * var users = {
     *   'fred':    { 'user': 'fred',    'age': 40 },
     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
     * };
     *
     * _.mapValues(users, function(o) { return o.age; });
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     *
     * // The `_.property` iteratee shorthand.
     * _.mapValues(users, 'age');
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     */
    function mapValues(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, key, iteratee(value, key, object));
      });
      return result;
    }

    /**
     * This method is like `_.assign` except that it recursively merges own and
     * inherited enumerable string keyed properties of source objects into the
     * destination object. Source properties that resolve to `undefined` are
     * skipped if a destination value exists. Array and plain object properties
     * are merged recursively. Other objects and value types are overridden by
     * assignment. Source objects are applied from left to right. Subsequent
     * sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {
     *   'a': [{ 'b': 2 }, { 'd': 4 }]
     * };
     *
     * var other = {
     *   'a': [{ 'c': 3 }, { 'e': 5 }]
     * };
     *
     * _.merge(object, other);
     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
     */
    var merge = createAssigner(function(object, source, srcIndex) {
      baseMerge(object, source, srcIndex);
    });

    /**
     * This method is like `_.merge` except that it accepts `customizer` which
     * is invoked to produce the merged values of the destination and source
     * properties. If `customizer` returns `undefined`, merging is handled by the
     * method instead. The `customizer` is invoked with six arguments:
     * (objValue, srcValue, key, object, source, stack).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} customizer The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   if (_.isArray(objValue)) {
     *     return objValue.concat(srcValue);
     *   }
     * }
     *
     * var object = { 'a': [1], 'b': [2] };
     * var other = { 'a': [3], 'b': [4] };
     *
     * _.mergeWith(object, other, customizer);
     * // => { 'a': [1, 3], 'b': [2, 4] }
     */
    var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
      baseMerge(object, source, srcIndex, customizer);
    });

    /**
     * The opposite of `_.pick`; this method creates an object composed of the
     * own and inherited enumerable property paths of `object` that are not omitted.
     *
     * **Note:** This method is considerably slower than `_.pick`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to omit.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omit(object, ['a', 'c']);
     * // => { 'b': '2' }
     */
    var omit = flatRest(function(object, paths) {
      var result = {};
      if (object == null) {
        return result;
      }
      var isDeep = false;
      paths = arrayMap(paths, function(path) {
        path = castPath(path, object);
        isDeep || (isDeep = path.length > 1);
        return path;
      });
      copyObject(object, getAllKeysIn(object), result);
      if (isDeep) {
        result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
      }
      var length = paths.length;
      while (length--) {
        baseUnset(result, paths[length]);
      }
      return result;
    });

    /**
     * The opposite of `_.pickBy`; this method creates an object composed of
     * the own and inherited enumerable string keyed properties of `object` that
     * `predicate` doesn't return truthy for. The predicate is invoked with two
     * arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omitBy(object, _.isNumber);
     * // => { 'b': '2' }
     */
    function omitBy(object, predicate) {
      return pickBy(object, negate(getIteratee(predicate)));
    }

    /**
     * Creates an object composed of the picked `object` properties.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pick(object, ['a', 'c']);
     * // => { 'a': 1, 'c': 3 }
     */
    var pick = flatRest(function(object, paths) {
      return object == null ? {} : basePick(object, paths);
    });

    /**
     * Creates an object composed of the `object` properties `predicate` returns
     * truthy for. The predicate is invoked with two arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pickBy(object, _.isNumber);
     * // => { 'a': 1, 'c': 3 }
     */
    function pickBy(object, predicate) {
      if (object == null) {
        return {};
      }
      var props = arrayMap(getAllKeysIn(object), function(prop) {
        return [prop];
      });
      predicate = getIteratee(predicate);
      return basePickBy(object, props, function(value, path) {
        return predicate(value, path[0]);
      });
    }

    /**
     * This method is like `_.get` except that if the resolved value is a
     * function it's invoked with the `this` binding of its parent object and
     * its result is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to resolve.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
     *
     * _.result(object, 'a[0].b.c1');
     * // => 3
     *
     * _.result(object, 'a[0].b.c2');
     * // => 4
     *
     * _.result(object, 'a[0].b.c3', 'default');
     * // => 'default'
     *
     * _.result(object, 'a[0].b.c3', _.constant('default'));
     * // => 'default'
     */
    function result(object, path, defaultValue) {
      path = castPath(path, object);

      var index = -1,
          length = path.length;

      // Ensure the loop is entered when path is empty.
      if (!length) {
        length = 1;
        object = undefined;
      }
      while (++index < length) {
        var value = object == null ? undefined : object[toKey(path[index])];
        if (value === undefined) {
          index = length;
          value = defaultValue;
        }
        object = isFunction(value) ? value.call(object) : value;
      }
      return object;
    }

    /**
     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
     * it's created. Arrays are created for missing index properties while objects
     * are created for all other missing properties. Use `_.setWith` to customize
     * `path` creation.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.set(object, 'a[0].b.c', 4);
     * console.log(object.a[0].b.c);
     * // => 4
     *
     * _.set(object, ['x', '0', 'y', 'z'], 5);
     * console.log(object.x[0].y.z);
     * // => 5
     */
    function set(object, path, value) {
      return object == null ? object : baseSet(object, path, value);
    }

    /**
     * This method is like `_.set` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.setWith(object, '[0][1]', 'a', Object);
     * // => { '0': { '1': 'a' } }
     */
    function setWith(object, path, value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseSet(object, path, value, customizer);
    }

    /**
     * Creates an array of own enumerable string keyed-value pairs for `object`
     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
     * entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entries
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairs(new Foo);
     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
     */
    var toPairs = createToPairs(keys);

    /**
     * Creates an array of own and inherited enumerable string keyed-value pairs
     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
     * or set, its entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entriesIn
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairsIn(new Foo);
     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
     */
    var toPairsIn = createToPairs(keysIn);

    /**
     * An alternative to `_.reduce`; this method transforms `object` to a new
     * `accumulator` object which is the result of running each of its own
     * enumerable string keyed properties thru `iteratee`, with each invocation
     * potentially mutating the `accumulator` object. If `accumulator` is not
     * provided, a new object with the same `[[Prototype]]` will be used. The
     * iteratee is invoked with four arguments: (accumulator, value, key, object).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The custom accumulator value.
     * @returns {*} Returns the accumulated value.
     * @example
     *
     * _.transform([2, 3, 4], function(result, n) {
     *   result.push(n *= n);
     *   return n % 2 == 0;
     * }, []);
     * // => [4, 9]
     *
     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] }
     */
    function transform(object, iteratee, accumulator) {
      var isArr = isArray(object),
          isArrLike = isArr || isBuffer(object) || isTypedArray(object);

      iteratee = getIteratee(iteratee, 4);
      if (accumulator == null) {
        var Ctor = object && object.constructor;
        if (isArrLike) {
          accumulator = isArr ? new Ctor : [];
        }
        else if (isObject(object)) {
          accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
        }
        else {
          accumulator = {};
        }
      }
      (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
        return iteratee(accumulator, value, index, object);
      });
      return accumulator;
    }

    /**
     * Removes the property at `path` of `object`.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
     * _.unset(object, 'a[0].b.c');
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     *
     * _.unset(object, ['a', '0', 'b', 'c']);
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     */
    function unset(object, path) {
      return object == null ? true : baseUnset(object, path);
    }

    /**
     * This method is like `_.set` except that accepts `updater` to produce the
     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
     * is invoked with one argument: (value).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
     * console.log(object.a[0].b.c);
     * // => 9
     *
     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
     * console.log(object.x[0].y.z);
     * // => 0
     */
    function update(object, path, updater) {
      return object == null ? object : baseUpdate(object, path, castFunction(updater));
    }

    /**
     * This method is like `_.update` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
     * // => { '0': { '1': 'a' } }
     */
    function updateWith(object, path, updater, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
    }

    /**
     * Creates an array of the own enumerable string keyed property values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.values(new Foo);
     * // => [1, 2] (iteration order is not guaranteed)
     *
     * _.values('hi');
     * // => ['h', 'i']
     */
    function values(object) {
      return object == null ? [] : baseValues(object, keys(object));
    }

    /**
     * Creates an array of the own and inherited enumerable string keyed property
     * values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.valuesIn(new Foo);
     * // => [1, 2, 3] (iteration order is not guaranteed)
     */
    function valuesIn(object) {
      return object == null ? [] : baseValues(object, keysIn(object));
    }

    /*------------------------------------------------------------------------*/

    /**
     * Clamps `number` within the inclusive `lower` and `upper` bounds.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Number
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     * @example
     *
     * _.clamp(-10, -5, 5);
     * // => -5
     *
     * _.clamp(10, -5, 5);
     * // => 5
     */
    function clamp(number, lower, upper) {
      if (upper === undefined) {
        upper = lower;
        lower = undefined;
      }
      if (upper !== undefined) {
        upper = toNumber(upper);
        upper = upper === upper ? upper : 0;
      }
      if (lower !== undefined) {
        lower = toNumber(lower);
        lower = lower === lower ? lower : 0;
      }
      return baseClamp(toNumber(number), lower, upper);
    }

    /**
     * Checks if `n` is between `start` and up to, but not including, `end`. If
     * `end` is not specified, it's set to `start` with `start` then set to `0`.
     * If `start` is greater than `end` the params are swapped to support
     * negative ranges.
     *
     * @static
     * @memberOf _
     * @since 3.3.0
     * @category Number
     * @param {number} number The number to check.
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     * @see _.range, _.rangeRight
     * @example
     *
     * _.inRange(3, 2, 4);
     * // => true
     *
     * _.inRange(4, 8);
     * // => true
     *
     * _.inRange(4, 2);
     * // => false
     *
     * _.inRange(2, 2);
     * // => false
     *
     * _.inRange(1.2, 2);
     * // => true
     *
     * _.inRange(5.2, 4);
     * // => false
     *
     * _.inRange(-3, -2, -6);
     * // => true
     */
    function inRange(number, start, end) {
      start = toFinite(start);
      if (end === undefined) {
        end = start;
        start = 0;
      } else {
        end = toFinite(end);
      }
      number = toNumber(number);
      return baseInRange(number, start, end);
    }

    /**
     * Produces a random number between the inclusive `lower` and `upper` bounds.
     * If only one argument is provided a number between `0` and the given number
     * is returned. If `floating` is `true`, or either `lower` or `upper` are
     * floats, a floating-point number is returned instead of an integer.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Number
     * @param {number} [lower=0] The lower bound.
     * @param {number} [upper=1] The upper bound.
     * @param {boolean} [floating] Specify returning a floating-point number.
     * @returns {number} Returns the random number.
     * @example
     *
     * _.random(0, 5);
     * // => an integer between 0 and 5
     *
     * _.random(5);
     * // => also an integer between 0 and 5
     *
     * _.random(5, true);
     * // => a floating-point number between 0 and 5
     *
     * _.random(1.2, 5.2);
     * // => a floating-point number between 1.2 and 5.2
     */
    function random(lower, upper, floating) {
      if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
        upper = floating = undefined;
      }
      if (floating === undefined) {
        if (typeof upper == 'boolean') {
          floating = upper;
          upper = undefined;
        }
        else if (typeof lower == 'boolean') {
          floating = lower;
          lower = undefined;
        }
      }
      if (lower === undefined && upper === undefined) {
        lower = 0;
        upper = 1;
      }
      else {
        lower = toFinite(lower);
        if (upper === undefined) {
          upper = lower;
          lower = 0;
        } else {
          upper = toFinite(upper);
        }
      }
      if (lower > upper) {
        var temp = lower;
        lower = upper;
        upper = temp;
      }
      if (floating || lower % 1 || upper % 1) {
        var rand = nativeRandom();
        return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
      }
      return baseRandom(lower, upper);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the camel cased string.
     * @example
     *
     * _.camelCase('Foo Bar');
     * // => 'fooBar'
     *
     * _.camelCase('--foo-bar--');
     * // => 'fooBar'
     *
     * _.camelCase('__FOO_BAR__');
     * // => 'fooBar'
     */
    var camelCase = createCompounder(function(result, word, index) {
      word = word.toLowerCase();
      return result + (index ? capitalize(word) : word);
    });

    /**
     * Converts the first character of `string` to upper case and the remaining
     * to lower case.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to capitalize.
     * @returns {string} Returns the capitalized string.
     * @example
     *
     * _.capitalize('FRED');
     * // => 'Fred'
     */
    function capitalize(string) {
      return upperFirst(toString(string).toLowerCase());
    }

    /**
     * Deburrs `string` by converting
     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
     * letters to basic Latin letters and removing
     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to deburr.
     * @returns {string} Returns the deburred string.
     * @example
     *
     * _.deburr('déjà vu');
     * // => 'deja vu'
     */
    function deburr(string) {
      string = toString(string);
      return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
    }

    /**
     * Checks if `string` ends with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=string.length] The position to search up to.
     * @returns {boolean} Returns `true` if `string` ends with `target`,
     *  else `false`.
     * @example
     *
     * _.endsWith('abc', 'c');
     * // => true
     *
     * _.endsWith('abc', 'b');
     * // => false
     *
     * _.endsWith('abc', 'b', 2);
     * // => true
     */
    function endsWith(string, target, position) {
      string = toString(string);
      target = baseToString(target);

      var length = string.length;
      position = position === undefined
        ? length
        : baseClamp(toInteger(position), 0, length);

      var end = position;
      position -= target.length;
      return position >= 0 && string.slice(position, end) == target;
    }

    /**
     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
     * corresponding HTML entities.
     *
     * **Note:** No other characters are escaped. To escape additional
     * characters use a third-party library like [_he_](https://mths.be/he).
     *
     * Though the ">" character is escaped for symmetry, characters like
     * ">" and "/" don't need escaping in HTML and have no special meaning
     * unless they're part of a tag or unquoted attribute value. See
     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
     * (under "semi-related fun fact") for more details.
     *
     * When working with HTML you should always
     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
     * XSS vectors.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escape('fred, barney, & pebbles');
     * // => 'fred, barney, &amp; pebbles'
     */
    function escape(string) {
      string = toString(string);
      return (string && reHasUnescapedHtml.test(string))
        ? string.replace(reUnescapedHtml, escapeHtmlChar)
        : string;
    }

    /**
     * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
     * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escapeRegExp('[lodash](https://lodash.com/)');
     * // => '\[lodash\]\(https://lodash\.com/\)'
     */
    function escapeRegExp(string) {
      string = toString(string);
      return (string && reHasRegExpChar.test(string))
        ? string.replace(reRegExpChar, '\\$&')
        : string;
    }

    /**
     * Converts `string` to
     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the kebab cased string.
     * @example
     *
     * _.kebabCase('Foo Bar');
     * // => 'foo-bar'
     *
     * _.kebabCase('fooBar');
     * // => 'foo-bar'
     *
     * _.kebabCase('__FOO_BAR__');
     * // => 'foo-bar'
     */
    var kebabCase = createCompounder(function(result, word, index) {
      return result + (index ? '-' : '') + word.toLowerCase();
    });

    /**
     * Converts `string`, as space separated words, to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.lowerCase('--Foo-Bar--');
     * // => 'foo bar'
     *
     * _.lowerCase('fooBar');
     * // => 'foo bar'
     *
     * _.lowerCase('__FOO_BAR__');
     * // => 'foo bar'
     */
    var lowerCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toLowerCase();
    });

    /**
     * Converts the first character of `string` to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.lowerFirst('Fred');
     * // => 'fred'
     *
     * _.lowerFirst('FRED');
     * // => 'fRED'
     */
    var lowerFirst = createCaseFirst('toLowerCase');

    /**
     * Pads `string` on the left and right sides if it's shorter than `length`.
     * Padding characters are truncated if they can't be evenly divided by `length`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.pad('abc', 8);
     * // => '  abc   '
     *
     * _.pad('abc', 8, '_-');
     * // => '_-abc_-_'
     *
     * _.pad('abc', 3);
     * // => 'abc'
     */
    function pad(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      if (!length || strLength >= length) {
        return string;
      }
      var mid = (length - strLength) / 2;
      return (
        createPadding(nativeFloor(mid), chars) +
        string +
        createPadding(nativeCeil(mid), chars)
      );
    }

    /**
     * Pads `string` on the right side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padEnd('abc', 6);
     * // => 'abc   '
     *
     * _.padEnd('abc', 6, '_-');
     * // => 'abc_-_'
     *
     * _.padEnd('abc', 3);
     * // => 'abc'
     */
    function padEnd(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (string + createPadding(length - strLength, chars))
        : string;
    }

    /**
     * Pads `string` on the left side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padStart('abc', 6);
     * // => '   abc'
     *
     * _.padStart('abc', 6, '_-');
     * // => '_-_abc'
     *
     * _.padStart('abc', 3);
     * // => 'abc'
     */
    function padStart(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (createPadding(length - strLength, chars) + string)
        : string;
    }

    /**
     * Converts `string` to an integer of the specified radix. If `radix` is
     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
     * hexadecimal, in which case a `radix` of `16` is used.
     *
     * **Note:** This method aligns with the
     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category String
     * @param {string} string The string to convert.
     * @param {number} [radix=10] The radix to interpret `value` by.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.parseInt('08');
     * // => 8
     *
     * _.map(['6', '08', '10'], _.parseInt);
     * // => [6, 8, 10]
     */
    function parseInt(string, radix, guard) {
      if (guard || radix == null) {
        radix = 0;
      } else if (radix) {
        radix = +radix;
      }
      return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
    }

    /**
     * Repeats the given string `n` times.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to repeat.
     * @param {number} [n=1] The number of times to repeat the string.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the repeated string.
     * @example
     *
     * _.repeat('*', 3);
     * // => '***'
     *
     * _.repeat('abc', 2);
     * // => 'abcabc'
     *
     * _.repeat('abc', 0);
     * // => ''
     */
    function repeat(string, n, guard) {
      if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      return baseRepeat(toString(string), n);
    }

    /**
     * Replaces matches for `pattern` in `string` with `replacement`.
     *
     * **Note:** This method is based on
     * [`String#replace`](https://mdn.io/String/replace).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to modify.
     * @param {RegExp|string} pattern The pattern to replace.
     * @param {Function|string} replacement The match replacement.
     * @returns {string} Returns the modified string.
     * @example
     *
     * _.replace('Hi Fred', 'Fred', 'Barney');
     * // => 'Hi Barney'
     */
    function replace() {
      var args = arguments,
          string = toString(args[0]);

      return args.length < 3 ? string : string.replace(args[1], args[2]);
    }

    /**
     * Converts `string` to
     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the snake cased string.
     * @example
     *
     * _.snakeCase('Foo Bar');
     * // => 'foo_bar'
     *
     * _.snakeCase('fooBar');
     * // => 'foo_bar'
     *
     * _.snakeCase('--FOO-BAR--');
     * // => 'foo_bar'
     */
    var snakeCase = createCompounder(function(result, word, index) {
      return result + (index ? '_' : '') + word.toLowerCase();
    });

    /**
     * Splits `string` by `separator`.
     *
     * **Note:** This method is based on
     * [`String#split`](https://mdn.io/String/split).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to split.
     * @param {RegExp|string} separator The separator pattern to split by.
     * @param {number} [limit] The length to truncate results to.
     * @returns {Array} Returns the string segments.
     * @example
     *
     * _.split('a-b-c', '-', 2);
     * // => ['a', 'b']
     */
    function split(string, separator, limit) {
      if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
        separator = limit = undefined;
      }
      limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
      if (!limit) {
        return [];
      }
      string = toString(string);
      if (string && (
            typeof separator == 'string' ||
            (separator != null && !isRegExp(separator))
          )) {
        separator = baseToString(separator);
        if (!separator && hasUnicode(string)) {
          return castSlice(stringToArray(string), 0, limit);
        }
      }
      return string.split(separator, limit);
    }

    /**
     * Converts `string` to
     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
     *
     * @static
     * @memberOf _
     * @since 3.1.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the start cased string.
     * @example
     *
     * _.startCase('--foo-bar--');
     * // => 'Foo Bar'
     *
     * _.startCase('fooBar');
     * // => 'Foo Bar'
     *
     * _.startCase('__FOO_BAR__');
     * // => 'FOO BAR'
     */
    var startCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + upperFirst(word);
    });

    /**
     * Checks if `string` starts with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=0] The position to search from.
     * @returns {boolean} Returns `true` if `string` starts with `target`,
     *  else `false`.
     * @example
     *
     * _.startsWith('abc', 'a');
     * // => true
     *
     * _.startsWith('abc', 'b');
     * // => false
     *
     * _.startsWith('abc', 'b', 1);
     * // => true
     */
    function startsWith(string, target, position) {
      string = toString(string);
      position = position == null
        ? 0
        : baseClamp(toInteger(position), 0, string.length);

      target = baseToString(target);
      return string.slice(position, position + target.length) == target;
    }

    /**
     * Creates a compiled template function that can interpolate data properties
     * in "interpolate" delimiters, HTML-escape interpolated data properties in
     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
     * properties may be accessed as free variables in the template. If a setting
     * object is given, it takes precedence over `_.templateSettings` values.
     *
     * **Note:** In the development build `_.template` utilizes
     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
     * for easier debugging.
     *
     * For more information on precompiling templates see
     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
     *
     * For more information on Chrome extension sandboxes see
     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The template string.
     * @param {Object} [options={}] The options object.
     * @param {RegExp} [options.escape=_.templateSettings.escape]
     *  The HTML "escape" delimiter.
     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
     *  The "evaluate" delimiter.
     * @param {Object} [options.imports=_.templateSettings.imports]
     *  An object to import into the template as free variables.
     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
     *  The "interpolate" delimiter.
     * @param {string} [options.sourceURL='lodash.templateSources[n]']
     *  The sourceURL of the compiled template.
     * @param {string} [options.variable='obj']
     *  The data object variable name.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the compiled template function.
     * @example
     *
     * // Use the "interpolate" delimiter to create a compiled template.
     * var compiled = _.template('hello <%= user %>!');
     * compiled({ 'user': 'fred' });
     * // => 'hello fred!'
     *
     * // Use the HTML "escape" delimiter to escape data property values.
     * var compiled = _.template('<b><%- value %></b>');
     * compiled({ 'value': '<script>' });
     * // => '<b>&lt;script&gt;</b>'
     *
     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the internal `print` function in "evaluate" delimiters.
     * var compiled = _.template('<% print("hello " + user); %>!');
     * compiled({ 'user': 'barney' });
     * // => 'hello barney!'
     *
     * // Use the ES template literal delimiter as an "interpolate" delimiter.
     * // Disable support by replacing the "interpolate" delimiter.
     * var compiled = _.template('hello ${ user }!');
     * compiled({ 'user': 'pebbles' });
     * // => 'hello pebbles!'
     *
     * // Use backslashes to treat delimiters as plain text.
     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
     * compiled({ 'value': 'ignored' });
     * // => '<%- value %>'
     *
     * // Use the `imports` option to import `jQuery` as `jq`.
     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     * compiled(data);
     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
     *
     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     * compiled.source;
     * // => function(data) {
     * //   var __t, __p = '';
     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
     * //   return __p;
     * // }
     *
     * // Use custom template delimiters.
     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     * var compiled = _.template('hello {{ user }}!');
     * compiled({ 'user': 'mustache' });
     * // => 'hello mustache!'
     *
     * // Use the `source` property to inline compiled templates for meaningful
     * // line numbers in error messages and stack traces.
     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
     *   var JST = {\
     *     "main": ' + _.template(mainText).source + '\
     *   };\
     * ');
     */
    function template(string, options, guard) {
      // Based on John Resig's `tmpl` implementation
      // (http://ejohn.org/blog/javascript-micro-templating/)
      // and Laura Doktorova's doT.js (https://github.com/olado/doT).
      var settings = lodash.templateSettings;

      if (guard && isIterateeCall(string, options, guard)) {
        options = undefined;
      }
      string = toString(string);
      options = assignInWith({}, options, settings, customDefaultsAssignIn);

      var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
          importsKeys = keys(imports),
          importsValues = baseValues(imports, importsKeys);

      var isEscaping,
          isEvaluating,
          index = 0,
          interpolate = options.interpolate || reNoMatch,
          source = "__p += '";

      // Compile the regexp to match each delimiter.
      var reDelimiters = RegExp(
        (options.escape || reNoMatch).source + '|' +
        interpolate.source + '|' +
        (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
        (options.evaluate || reNoMatch).source + '|$'
      , 'g');

      // Use a sourceURL for easier debugging.
      var sourceURL = '//# sourceURL=' +
        ('sourceURL' in options
          ? options.sourceURL
          : ('lodash.templateSources[' + (++templateCounter) + ']')
        ) + '\n';

      string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
        interpolateValue || (interpolateValue = esTemplateValue);

        // Escape characters that can't be included in string literals.
        source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);

        // Replace delimiters with snippets.
        if (escapeValue) {
          isEscaping = true;
          source += "' +\n__e(" + escapeValue + ") +\n'";
        }
        if (evaluateValue) {
          isEvaluating = true;
          source += "';\n" + evaluateValue + ";\n__p += '";
        }
        if (interpolateValue) {
          source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
        }
        index = offset + match.length;

        // The JS engine embedded in Adobe products needs `match` returned in
        // order to produce the correct `offset` value.
        return match;
      });

      source += "';\n";

      // If `variable` is not specified wrap a with-statement around the generated
      // code to add the data object to the top of the scope chain.
      var variable = options.variable;
      if (!variable) {
        source = 'with (obj) {\n' + source + '\n}\n';
      }
      // Cleanup code by stripping empty strings.
      source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
        .replace(reEmptyStringMiddle, '$1')
        .replace(reEmptyStringTrailing, '$1;');

      // Frame code as the function body.
      source = 'function(' + (variable || 'obj') + ') {\n' +
        (variable
          ? ''
          : 'obj || (obj = {});\n'
        ) +
        "var __t, __p = ''" +
        (isEscaping
           ? ', __e = _.escape'
           : ''
        ) +
        (isEvaluating
          ? ', __j = Array.prototype.join;\n' +
            "function print() { __p += __j.call(arguments, '') }\n"
          : ';\n'
        ) +
        source +
        'return __p\n}';

      var result = attempt(function() {
        return Function(importsKeys, sourceURL + 'return ' + source)
          .apply(undefined, importsValues);
      });

      // Provide the compiled function's source by its `toString` method or
      // the `source` property as a convenience for inlining compiled templates.
      result.source = source;
      if (isError(result)) {
        throw result;
      }
      return result;
    }

    /**
     * Converts `string`, as a whole, to lower case just like
     * [String#toLowerCase](https://mdn.io/toLowerCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.toLower('--Foo-Bar--');
     * // => '--foo-bar--'
     *
     * _.toLower('fooBar');
     * // => 'foobar'
     *
     * _.toLower('__FOO_BAR__');
     * // => '__foo_bar__'
     */
    function toLower(value) {
      return toString(value).toLowerCase();
    }

    /**
     * Converts `string`, as a whole, to upper case just like
     * [String#toUpperCase](https://mdn.io/toUpperCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.toUpper('--foo-bar--');
     * // => '--FOO-BAR--'
     *
     * _.toUpper('fooBar');
     * // => 'FOOBAR'
     *
     * _.toUpper('__foo_bar__');
     * // => '__FOO_BAR__'
     */
    function toUpper(value) {
      return toString(value).toUpperCase();
    }

    /**
     * Removes leading and trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trim('  abc  ');
     * // => 'abc'
     *
     * _.trim('-_-abc-_-', '_-');
     * // => 'abc'
     *
     * _.map(['  foo  ', '  bar  '], _.trim);
     * // => ['foo', 'bar']
     */
    function trim(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrim, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          chrSymbols = stringToArray(chars),
          start = charsStartIndex(strSymbols, chrSymbols),
          end = charsEndIndex(strSymbols, chrSymbols) + 1;

      return castSlice(strSymbols, start, end).join('');
    }

    /**
     * Removes trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimEnd('  abc  ');
     * // => '  abc'
     *
     * _.trimEnd('-_-abc-_-', '_-');
     * // => '-_-abc'
     */
    function trimEnd(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimEnd, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;

      return castSlice(strSymbols, 0, end).join('');
    }

    /**
     * Removes leading whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimStart('  abc  ');
     * // => 'abc  '
     *
     * _.trimStart('-_-abc-_-', '_-');
     * // => 'abc-_-'
     */
    function trimStart(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimStart, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          start = charsStartIndex(strSymbols, stringToArray(chars));

      return castSlice(strSymbols, start).join('');
    }

    /**
     * Truncates `string` if it's longer than the given maximum string length.
     * The last characters of the truncated string are replaced with the omission
     * string which defaults to "...".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to truncate.
     * @param {Object} [options={}] The options object.
     * @param {number} [options.length=30] The maximum string length.
     * @param {string} [options.omission='...'] The string to indicate text is omitted.
     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
     * @returns {string} Returns the truncated string.
     * @example
     *
     * _.truncate('hi-diddly-ho there, neighborino');
     * // => 'hi-diddly-ho there, neighbo...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': ' '
     * });
     * // => 'hi-diddly-ho there,...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': /,? +/
     * });
     * // => 'hi-diddly-ho there...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'omission': ' [...]'
     * });
     * // => 'hi-diddly-ho there, neig [...]'
     */
    function truncate(string, options) {
      var length = DEFAULT_TRUNC_LENGTH,
          omission = DEFAULT_TRUNC_OMISSION;

      if (isObject(options)) {
        var separator = 'separator' in options ? options.separator : separator;
        length = 'length' in options ? toInteger(options.length) : length;
        omission = 'omission' in options ? baseToString(options.omission) : omission;
      }
      string = toString(string);

      var strLength = string.length;
      if (hasUnicode(string)) {
        var strSymbols = stringToArray(string);
        strLength = strSymbols.length;
      }
      if (length >= strLength) {
        return string;
      }
      var end = length - stringSize(omission);
      if (end < 1) {
        return omission;
      }
      var result = strSymbols
        ? castSlice(strSymbols, 0, end).join('')
        : string.slice(0, end);

      if (separator === undefined) {
        return result + omission;
      }
      if (strSymbols) {
        end += (result.length - end);
      }
      if (isRegExp(separator)) {
        if (string.slice(end).search(separator)) {
          var match,
              substring = result;

          if (!separator.global) {
            separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
          }
          separator.lastIndex = 0;
          while ((match = separator.exec(substring))) {
            var newEnd = match.index;
          }
          result = result.slice(0, newEnd === undefined ? end : newEnd);
        }
      } else if (string.indexOf(baseToString(separator), end) != end) {
        var index = result.lastIndexOf(separator);
        if (index > -1) {
          result = result.slice(0, index);
        }
      }
      return result + omission;
    }

    /**
     * The inverse of `_.escape`; this method converts the HTML entities
     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
     * their corresponding characters.
     *
     * **Note:** No other HTML entities are unescaped. To unescape additional
     * HTML entities use a third-party library like [_he_](https://mths.be/he).
     *
     * @static
     * @memberOf _
     * @since 0.6.0
     * @category String
     * @param {string} [string=''] The string to unescape.
     * @returns {string} Returns the unescaped string.
     * @example
     *
     * _.unescape('fred, barney, &amp; pebbles');
     * // => 'fred, barney, & pebbles'
     */
    function unescape(string) {
      string = toString(string);
      return (string && reHasEscapedHtml.test(string))
        ? string.replace(reEscapedHtml, unescapeHtmlChar)
        : string;
    }

    /**
     * Converts `string`, as space separated words, to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.upperCase('--foo-bar');
     * // => 'FOO BAR'
     *
     * _.upperCase('fooBar');
     * // => 'FOO BAR'
     *
     * _.upperCase('__foo_bar__');
     * // => 'FOO BAR'
     */
    var upperCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toUpperCase();
    });

    /**
     * Converts the first character of `string` to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.upperFirst('fred');
     * // => 'Fred'
     *
     * _.upperFirst('FRED');
     * // => 'FRED'
     */
    var upperFirst = createCaseFirst('toUpperCase');

    /**
     * Splits `string` into an array of its words.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {RegExp|string} [pattern] The pattern to match words.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the words of `string`.
     * @example
     *
     * _.words('fred, barney, & pebbles');
     * // => ['fred', 'barney', 'pebbles']
     *
     * _.words('fred, barney, & pebbles', /[^, ]+/g);
     * // => ['fred', 'barney', '&', 'pebbles']
     */
    function words(string, pattern, guard) {
      string = toString(string);
      pattern = guard ? undefined : pattern;

      if (pattern === undefined) {
        return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
      }
      return string.match(pattern) || [];
    }

    /*------------------------------------------------------------------------*/

    /**
     * Attempts to invoke `func`, returning either the result or the caught error
     * object. Any additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Function} func The function to attempt.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {*} Returns the `func` result or error object.
     * @example
     *
     * // Avoid throwing errors for invalid selectors.
     * var elements = _.attempt(function(selector) {
     *   return document.querySelectorAll(selector);
     * }, '>_>');
     *
     * if (_.isError(elements)) {
     *   elements = [];
     * }
     */
    var attempt = baseRest(function(func, args) {
      try {
        return apply(func, undefined, args);
      } catch (e) {
        return isError(e) ? e : new Error(e);
      }
    });

    /**
     * Binds methods of an object to the object itself, overwriting the existing
     * method.
     *
     * **Note:** This method doesn't set the "length" property of bound functions.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Object} object The object to bind and assign the bound methods to.
     * @param {...(string|string[])} methodNames The object method names to bind.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var view = {
     *   'label': 'docs',
     *   'click': function() {
     *     console.log('clicked ' + this.label);
     *   }
     * };
     *
     * _.bindAll(view, ['click']);
     * jQuery(element).on('click', view.click);
     * // => Logs 'clicked docs' when clicked.
     */
    var bindAll = flatRest(function(object, methodNames) {
      arrayEach(methodNames, function(key) {
        key = toKey(key);
        baseAssignValue(object, key, bind(object[key], object));
      });
      return object;
    });

    /**
     * Creates a function that iterates over `pairs` and invokes the corresponding
     * function of the first predicate to return truthy. The predicate-function
     * pairs are invoked with the `this` binding and arguments of the created
     * function.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Array} pairs The predicate-function pairs.
     * @returns {Function} Returns the new composite function.
     * @example
     *
     * var func = _.cond([
     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
     *   [_.stubTrue,                      _.constant('no match')]
     * ]);
     *
     * func({ 'a': 1, 'b': 2 });
     * // => 'matches A'
     *
     * func({ 'a': 0, 'b': 1 });
     * // => 'matches B'
     *
     * func({ 'a': '1', 'b': '2' });
     * // => 'no match'
     */
    function cond(pairs) {
      var length = pairs == null ? 0 : pairs.length,
          toIteratee = getIteratee();

      pairs = !length ? [] : arrayMap(pairs, function(pair) {
        if (typeof pair[1] != 'function') {
          throw new TypeError(FUNC_ERROR_TEXT);
        }
        return [toIteratee(pair[0]), pair[1]];
      });

      return baseRest(function(args) {
        var index = -1;
        while (++index < length) {
          var pair = pairs[index];
          if (apply(pair[0], this, args)) {
            return apply(pair[1], this, args);
          }
        }
      });
    }

    /**
     * Creates a function that invokes the predicate properties of `source` with
     * the corresponding property values of a given object, returning `true` if
     * all predicates return truthy, else `false`.
     *
     * **Note:** The created function is equivalent to `_.conformsTo` with
     * `source` partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 2, 'b': 1 },
     *   { 'a': 1, 'b': 2 }
     * ];
     *
     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
     * // => [{ 'a': 1, 'b': 2 }]
     */
    function conforms(source) {
      return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that returns `value`.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {*} value The value to return from the new function.
     * @returns {Function} Returns the new constant function.
     * @example
     *
     * var objects = _.times(2, _.constant({ 'a': 1 }));
     *
     * console.log(objects);
     * // => [{ 'a': 1 }, { 'a': 1 }]
     *
     * console.log(objects[0] === objects[1]);
     * // => true
     */
    function constant(value) {
      return function() {
        return value;
      };
    }

    /**
     * Checks `value` to determine whether a default value should be returned in
     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
     * or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Util
     * @param {*} value The value to check.
     * @param {*} defaultValue The default value.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * _.defaultTo(1, 10);
     * // => 1
     *
     * _.defaultTo(undefined, 10);
     * // => 10
     */
    function defaultTo(value, defaultValue) {
      return (value == null || value !== value) ? defaultValue : value;
    }

    /**
     * Creates a function that returns the result of invoking the given functions
     * with the `this` binding of the created function, where each successive
     * invocation is supplied the return value of the previous.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flowRight
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flow([_.add, square]);
     * addSquare(1, 2);
     * // => 9
     */
    var flow = createFlow();

    /**
     * This method is like `_.flow` except that it creates a function that
     * invokes the given functions from right to left.
     *
     * @static
     * @since 3.0.0
     * @memberOf _
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flow
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flowRight([square, _.add]);
     * addSquare(1, 2);
     * // => 9
     */
    var flowRight = createFlow(true);

    /**
     * This method returns the first argument it receives.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {*} value Any value.
     * @returns {*} Returns `value`.
     * @example
     *
     * var object = { 'a': 1 };
     *
     * console.log(_.identity(object) === object);
     * // => true
     */
    function identity(value) {
      return value;
    }

    /**
     * Creates a function that invokes `func` with the arguments of the created
     * function. If `func` is a property name, the created function returns the
     * property value for a given element. If `func` is an array or object, the
     * created function returns `true` for elements that contain the equivalent
     * source properties, otherwise it returns `false`.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Util
     * @param {*} [func=_.identity] The value to convert to a callback.
     * @returns {Function} Returns the callback.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, _.iteratee(['user', 'fred']));
     * // => [{ 'user': 'fred', 'age': 40 }]
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, _.iteratee('user'));
     * // => ['barney', 'fred']
     *
     * // Create custom iteratee shorthands.
     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
     *     return func.test(string);
     *   };
     * });
     *
     * _.filter(['abc', 'def'], /ef/);
     * // => ['def']
     */
    function iteratee(func) {
      return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that performs a partial deep comparison between a given
     * object and `source`, returning `true` if the given object has equivalent
     * property values, else `false`.
     *
     * **Note:** The created function is equivalent to `_.isMatch` with `source`
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
     */
    function matches(source) {
      return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that performs a partial deep comparison between the
     * value at `path` of a given object to `srcValue`, returning `true` if the
     * object value is equivalent, else `false`.
     *
     * **Note:** Partial comparisons will match empty array and empty object
     * `srcValue` values against any array or object value, respectively. See
     * `_.isEqual` for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.find(objects, _.matchesProperty('a', 4));
     * // => { 'a': 4, 'b': 5, 'c': 6 }
     */
    function matchesProperty(path, srcValue) {
      return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that invokes the method at `path` of a given object.
     * Any additional arguments are provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': _.constant(2) } },
     *   { 'a': { 'b': _.constant(1) } }
     * ];
     *
     * _.map(objects, _.method('a.b'));
     * // => [2, 1]
     *
     * _.map(objects, _.method(['a', 'b']));
     * // => [2, 1]
     */
    var method = baseRest(function(path, args) {
      return function(object) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * The opposite of `_.method`; this method creates a function that invokes
     * the method at a given path of `object`. Any additional arguments are
     * provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Object} object The object to query.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var array = _.times(3, _.constant),
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
     * // => [2, 0]
     */
    var methodOf = baseRest(function(object, args) {
      return function(path) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * Adds all own enumerable string keyed function properties of a source
     * object to the destination object. If `object` is a function, then methods
     * are added to its prototype as well.
     *
     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
     * avoid conflicts caused by modifying the original.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Function|Object} [object=lodash] The destination object.
     * @param {Object} source The object of functions to add.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
     * @returns {Function|Object} Returns `object`.
     * @example
     *
     * function vowels(string) {
     *   return _.filter(string, function(v) {
     *     return /[aeiou]/i.test(v);
     *   });
     * }
     *
     * _.mixin({ 'vowels': vowels });
     * _.vowels('fred');
     * // => ['e']
     *
     * _('fred').vowels().value();
     * // => ['e']
     *
     * _.mixin({ 'vowels': vowels }, { 'chain': false });
     * _('fred').vowels();
     * // => ['e']
     */
    function mixin(object, source, options) {
      var props = keys(source),
          methodNames = baseFunctions(source, props);

      if (options == null &&
          !(isObject(source) && (methodNames.length || !props.length))) {
        options = source;
        source = object;
        object = this;
        methodNames = baseFunctions(source, keys(source));
      }
      var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
          isFunc = isFunction(object);

      arrayEach(methodNames, function(methodName) {
        var func = source[methodName];
        object[methodName] = func;
        if (isFunc) {
          object.prototype[methodName] = function() {
            var chainAll = this.__chain__;
            if (chain || chainAll) {
              var result = object(this.__wrapped__),
                  actions = result.__actions__ = copyArray(this.__actions__);

              actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
              result.__chain__ = chainAll;
              return result;
            }
            return func.apply(object, arrayPush([this.value()], arguments));
          };
        }
      });

      return object;
    }

    /**
     * Reverts the `_` variable to its previous value and returns a reference to
     * the `lodash` function.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @returns {Function} Returns the `lodash` function.
     * @example
     *
     * var lodash = _.noConflict();
     */
    function noConflict() {
      if (root._ === this) {
        root._ = oldDash;
      }
      return this;
    }

    /**
     * This method returns `undefined`.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Util
     * @example
     *
     * _.times(2, _.noop);
     * // => [undefined, undefined]
     */
    function noop() {
      // No operation performed.
    }

    /**
     * Creates a function that gets the argument at index `n`. If `n` is negative,
     * the nth argument from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [n=0] The index of the argument to return.
     * @returns {Function} Returns the new pass-thru function.
     * @example
     *
     * var func = _.nthArg(1);
     * func('a', 'b', 'c', 'd');
     * // => 'b'
     *
     * var func = _.nthArg(-2);
     * func('a', 'b', 'c', 'd');
     * // => 'c'
     */
    function nthArg(n) {
      n = toInteger(n);
      return baseRest(function(args) {
        return baseNth(args, n);
      });
    }

    /**
     * Creates a function that invokes `iteratees` with the arguments it receives
     * and returns their results.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to invoke.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.over([Math.max, Math.min]);
     *
     * func(1, 2, 3, 4);
     * // => [4, 1]
     */
    var over = createOver(arrayMap);

    /**
     * Creates a function that checks if **all** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overEvery([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => false
     *
     * func(NaN);
     * // => false
     */
    var overEvery = createOver(arrayEvery);

    /**
     * Creates a function that checks if **any** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overSome([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => true
     *
     * func(NaN);
     * // => false
     */
    var overSome = createOver(arraySome);

    /**
     * Creates a function that returns the value at `path` of a given object.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': 2 } },
     *   { 'a': { 'b': 1 } }
     * ];
     *
     * _.map(objects, _.property('a.b'));
     * // => [2, 1]
     *
     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
     * // => [1, 2]
     */
    function property(path) {
      return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
    }

    /**
     * The opposite of `_.property`; this method creates a function that returns
     * the value at a given path of `object`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} object The object to query.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var array = [0, 1, 2],
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
     * // => [2, 0]
     */
    function propertyOf(object) {
      return function(path) {
        return object == null ? undefined : baseGet(object, path);
      };
    }

    /**
     * Creates an array of numbers (positive and/or negative) progressing from
     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
     * `start` is specified without an `end` or `step`. If `end` is not specified,
     * it's set to `start` with `start` then set to `0`.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.rangeRight
     * @example
     *
     * _.range(4);
     * // => [0, 1, 2, 3]
     *
     * _.range(-4);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 5);
     * // => [1, 2, 3, 4]
     *
     * _.range(0, 20, 5);
     * // => [0, 5, 10, 15]
     *
     * _.range(0, -4, -1);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.range(0);
     * // => []
     */
    var range = createRange();

    /**
     * This method is like `_.range` except that it populates values in
     * descending order.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.range
     * @example
     *
     * _.rangeRight(4);
     * // => [3, 2, 1, 0]
     *
     * _.rangeRight(-4);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 5);
     * // => [4, 3, 2, 1]
     *
     * _.rangeRight(0, 20, 5);
     * // => [15, 10, 5, 0]
     *
     * _.rangeRight(0, -4, -1);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.rangeRight(0);
     * // => []
     */
    var rangeRight = createRange(true);

    /**
     * This method returns a new empty array.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Array} Returns the new empty array.
     * @example
     *
     * var arrays = _.times(2, _.stubArray);
     *
     * console.log(arrays);
     * // => [[], []]
     *
     * console.log(arrays[0] === arrays[1]);
     * // => false
     */
    function stubArray() {
      return [];
    }

    /**
     * This method returns `false`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `false`.
     * @example
     *
     * _.times(2, _.stubFalse);
     * // => [false, false]
     */
    function stubFalse() {
      return false;
    }

    /**
     * This method returns a new empty object.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Object} Returns the new empty object.
     * @example
     *
     * var objects = _.times(2, _.stubObject);
     *
     * console.log(objects);
     * // => [{}, {}]
     *
     * console.log(objects[0] === objects[1]);
     * // => false
     */
    function stubObject() {
      return {};
    }

    /**
     * This method returns an empty string.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {string} Returns the empty string.
     * @example
     *
     * _.times(2, _.stubString);
     * // => ['', '']
     */
    function stubString() {
      return '';
    }

    /**
     * This method returns `true`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `true`.
     * @example
     *
     * _.times(2, _.stubTrue);
     * // => [true, true]
     */
    function stubTrue() {
      return true;
    }

    /**
     * Invokes the iteratee `n` times, returning an array of the results of
     * each invocation. The iteratee is invoked with one argument; (index).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} n The number of times to invoke `iteratee`.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.times(3, String);
     * // => ['0', '1', '2']
     *
     *  _.times(4, _.constant(0));
     * // => [0, 0, 0, 0]
     */
    function times(n, iteratee) {
      n = toInteger(n);
      if (n < 1 || n > MAX_SAFE_INTEGER) {
        return [];
      }
      var index = MAX_ARRAY_LENGTH,
          length = nativeMin(n, MAX_ARRAY_LENGTH);

      iteratee = getIteratee(iteratee);
      n -= MAX_ARRAY_LENGTH;

      var result = baseTimes(length, iteratee);
      while (++index < n) {
        iteratee(index);
      }
      return result;
    }

    /**
     * Converts `value` to a property path array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {*} value The value to convert.
     * @returns {Array} Returns the new property path array.
     * @example
     *
     * _.toPath('a.b.c');
     * // => ['a', 'b', 'c']
     *
     * _.toPath('a[0].b.c');
     * // => ['a', '0', 'b', 'c']
     */
    function toPath(value) {
      if (isArray(value)) {
        return arrayMap(value, toKey);
      }
      return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
    }

    /**
     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {string} [prefix=''] The value to prefix the ID with.
     * @returns {string} Returns the unique ID.
     * @example
     *
     * _.uniqueId('contact_');
     * // => 'contact_104'
     *
     * _.uniqueId();
     * // => '105'
     */
    function uniqueId(prefix) {
      var id = ++idCounter;
      return toString(prefix) + id;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Adds two numbers.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {number} augend The first number in an addition.
     * @param {number} addend The second number in an addition.
     * @returns {number} Returns the total.
     * @example
     *
     * _.add(6, 4);
     * // => 10
     */
    var add = createMathOperation(function(augend, addend) {
      return augend + addend;
    }, 0);

    /**
     * Computes `number` rounded up to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round up.
     * @param {number} [precision=0] The precision to round up to.
     * @returns {number} Returns the rounded up number.
     * @example
     *
     * _.ceil(4.006);
     * // => 5
     *
     * _.ceil(6.004, 2);
     * // => 6.01
     *
     * _.ceil(6040, -2);
     * // => 6100
     */
    var ceil = createRound('ceil');

    /**
     * Divide two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} dividend The first number in a division.
     * @param {number} divisor The second number in a division.
     * @returns {number} Returns the quotient.
     * @example
     *
     * _.divide(6, 4);
     * // => 1.5
     */
    var divide = createMathOperation(function(dividend, divisor) {
      return dividend / divisor;
    }, 1);

    /**
     * Computes `number` rounded down to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round down.
     * @param {number} [precision=0] The precision to round down to.
     * @returns {number} Returns the rounded down number.
     * @example
     *
     * _.floor(4.006);
     * // => 4
     *
     * _.floor(0.046, 2);
     * // => 0.04
     *
     * _.floor(4060, -2);
     * // => 4000
     */
    var floor = createRound('floor');

    /**
     * Computes the maximum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * _.max([4, 2, 8, 6]);
     * // => 8
     *
     * _.max([]);
     * // => undefined
     */
    function max(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseGt)
        : undefined;
    }

    /**
     * This method is like `_.max` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.maxBy(objects, function(o) { return o.n; });
     * // => { 'n': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.maxBy(objects, 'n');
     * // => { 'n': 2 }
     */
    function maxBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
        : undefined;
    }

    /**
     * Computes the mean of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the mean.
     * @example
     *
     * _.mean([4, 2, 8, 6]);
     * // => 5
     */
    function mean(array) {
      return baseMean(array, identity);
    }

    /**
     * This method is like `_.mean` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be averaged.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the mean.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.meanBy(objects, function(o) { return o.n; });
     * // => 5
     *
     * // The `_.property` iteratee shorthand.
     * _.meanBy(objects, 'n');
     * // => 5
     */
    function meanBy(array, iteratee) {
      return baseMean(array, getIteratee(iteratee, 2));
    }

    /**
     * Computes the minimum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * _.min([4, 2, 8, 6]);
     * // => 2
     *
     * _.min([]);
     * // => undefined
     */
    function min(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseLt)
        : undefined;
    }

    /**
     * This method is like `_.min` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.minBy(objects, function(o) { return o.n; });
     * // => { 'n': 1 }
     *
     * // The `_.property` iteratee shorthand.
     * _.minBy(objects, 'n');
     * // => { 'n': 1 }
     */
    function minBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
        : undefined;
    }

    /**
     * Multiply two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} multiplier The first number in a multiplication.
     * @param {number} multiplicand The second number in a multiplication.
     * @returns {number} Returns the product.
     * @example
     *
     * _.multiply(6, 4);
     * // => 24
     */
    var multiply = createMathOperation(function(multiplier, multiplicand) {
      return multiplier * multiplicand;
    }, 1);

    /**
     * Computes `number` rounded to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round.
     * @param {number} [precision=0] The precision to round to.
     * @returns {number} Returns the rounded number.
     * @example
     *
     * _.round(4.006);
     * // => 4
     *
     * _.round(4.006, 2);
     * // => 4.01
     *
     * _.round(4060, -2);
     * // => 4100
     */
    var round = createRound('round');

    /**
     * Subtract two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {number} minuend The first number in a subtraction.
     * @param {number} subtrahend The second number in a subtraction.
     * @returns {number} Returns the difference.
     * @example
     *
     * _.subtract(6, 4);
     * // => 2
     */
    var subtract = createMathOperation(function(minuend, subtrahend) {
      return minuend - subtrahend;
    }, 0);

    /**
     * Computes the sum of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the sum.
     * @example
     *
     * _.sum([4, 2, 8, 6]);
     * // => 20
     */
    function sum(array) {
      return (array && array.length)
        ? baseSum(array, identity)
        : 0;
    }

    /**
     * This method is like `_.sum` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be summed.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the sum.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.sumBy(objects, function(o) { return o.n; });
     * // => 20
     *
     * // The `_.property` iteratee shorthand.
     * _.sumBy(objects, 'n');
     * // => 20
     */
    function sumBy(array, iteratee) {
      return (array && array.length)
        ? baseSum(array, getIteratee(iteratee, 2))
        : 0;
    }

    /*------------------------------------------------------------------------*/

    // Add methods that return wrapped values in chain sequences.
    lodash.after = after;
    lodash.ary = ary;
    lodash.assign = assign;
    lodash.assignIn = assignIn;
    lodash.assignInWith = assignInWith;
    lodash.assignWith = assignWith;
    lodash.at = at;
    lodash.before = before;
    lodash.bind = bind;
    lodash.bindAll = bindAll;
    lodash.bindKey = bindKey;
    lodash.castArray = castArray;
    lodash.chain = chain;
    lodash.chunk = chunk;
    lodash.compact = compact;
    lodash.concat = concat;
    lodash.cond = cond;
    lodash.conforms = conforms;
    lodash.constant = constant;
    lodash.countBy = countBy;
    lodash.create = create;
    lodash.curry = curry;
    lodash.curryRight = curryRight;
    lodash.debounce = debounce;
    lodash.defaults = defaults;
    lodash.defaultsDeep = defaultsDeep;
    lodash.defer = defer;
    lodash.delay = delay;
    lodash.difference = difference;
    lodash.differenceBy = differenceBy;
    lodash.differenceWith = differenceWith;
    lodash.drop = drop;
    lodash.dropRight = dropRight;
    lodash.dropRightWhile = dropRightWhile;
    lodash.dropWhile = dropWhile;
    lodash.fill = fill;
    lodash.filter = filter;
    lodash.flatMap = flatMap;
    lodash.flatMapDeep = flatMapDeep;
    lodash.flatMapDepth = flatMapDepth;
    lodash.flatten = flatten;
    lodash.flattenDeep = flattenDeep;
    lodash.flattenDepth = flattenDepth;
    lodash.flip = flip;
    lodash.flow = flow;
    lodash.flowRight = flowRight;
    lodash.fromPairs = fromPairs;
    lodash.functions = functions;
    lodash.functionsIn = functionsIn;
    lodash.groupBy = groupBy;
    lodash.initial = initial;
    lodash.intersection = intersection;
    lodash.intersectionBy = intersectionBy;
    lodash.intersectionWith = intersectionWith;
    lodash.invert = invert;
    lodash.invertBy = invertBy;
    lodash.invokeMap = invokeMap;
    lodash.iteratee = iteratee;
    lodash.keyBy = keyBy;
    lodash.keys = keys;
    lodash.keysIn = keysIn;
    lodash.map = map;
    lodash.mapKeys = mapKeys;
    lodash.mapValues = mapValues;
    lodash.matches = matches;
    lodash.matchesProperty = matchesProperty;
    lodash.memoize = memoize;
    lodash.merge = merge;
    lodash.mergeWith = mergeWith;
    lodash.method = method;
    lodash.methodOf = methodOf;
    lodash.mixin = mixin;
    lodash.negate = negate;
    lodash.nthArg = nthArg;
    lodash.omit = omit;
    lodash.omitBy = omitBy;
    lodash.once = once;
    lodash.orderBy = orderBy;
    lodash.over = over;
    lodash.overArgs = overArgs;
    lodash.overEvery = overEvery;
    lodash.overSome = overSome;
    lodash.partial = partial;
    lodash.partialRight = partialRight;
    lodash.partition = partition;
    lodash.pick = pick;
    lodash.pickBy = pickBy;
    lodash.property = property;
    lodash.propertyOf = propertyOf;
    lodash.pull = pull;
    lodash.pullAll = pullAll;
    lodash.pullAllBy = pullAllBy;
    lodash.pullAllWith = pullAllWith;
    lodash.pullAt = pullAt;
    lodash.range = range;
    lodash.rangeRight = rangeRight;
    lodash.rearg = rearg;
    lodash.reject = reject;
    lodash.remove = remove;
    lodash.rest = rest;
    lodash.reverse = reverse;
    lodash.sampleSize = sampleSize;
    lodash.set = set;
    lodash.setWith = setWith;
    lodash.shuffle = shuffle;
    lodash.slice = slice;
    lodash.sortBy = sortBy;
    lodash.sortedUniq = sortedUniq;
    lodash.sortedUniqBy = sortedUniqBy;
    lodash.split = split;
    lodash.spread = spread;
    lodash.tail = tail;
    lodash.take = take;
    lodash.takeRight = takeRight;
    lodash.takeRightWhile = takeRightWhile;
    lodash.takeWhile = takeWhile;
    lodash.tap = tap;
    lodash.throttle = throttle;
    lodash.thru = thru;
    lodash.toArray = toArray;
    lodash.toPairs = toPairs;
    lodash.toPairsIn = toPairsIn;
    lodash.toPath = toPath;
    lodash.toPlainObject = toPlainObject;
    lodash.transform = transform;
    lodash.unary = unary;
    lodash.union = union;
    lodash.unionBy = unionBy;
    lodash.unionWith = unionWith;
    lodash.uniq = uniq;
    lodash.uniqBy = uniqBy;
    lodash.uniqWith = uniqWith;
    lodash.unset = unset;
    lodash.unzip = unzip;
    lodash.unzipWith = unzipWith;
    lodash.update = update;
    lodash.updateWith = updateWith;
    lodash.values = values;
    lodash.valuesIn = valuesIn;
    lodash.without = without;
    lodash.words = words;
    lodash.wrap = wrap;
    lodash.xor = xor;
    lodash.xorBy = xorBy;
    lodash.xorWith = xorWith;
    lodash.zip = zip;
    lodash.zipObject = zipObject;
    lodash.zipObjectDeep = zipObjectDeep;
    lodash.zipWith = zipWith;

    // Add aliases.
    lodash.entries = toPairs;
    lodash.entriesIn = toPairsIn;
    lodash.extend = assignIn;
    lodash.extendWith = assignInWith;

    // Add methods to `lodash.prototype`.
    mixin(lodash, lodash);

    /*------------------------------------------------------------------------*/

    // Add methods that return unwrapped values in chain sequences.
    lodash.add = add;
    lodash.attempt = attempt;
    lodash.camelCase = camelCase;
    lodash.capitalize = capitalize;
    lodash.ceil = ceil;
    lodash.clamp = clamp;
    lodash.clone = clone;
    lodash.cloneDeep = cloneDeep;
    lodash.cloneDeepWith = cloneDeepWith;
    lodash.cloneWith = cloneWith;
    lodash.conformsTo = conformsTo;
    lodash.deburr = deburr;
    lodash.defaultTo = defaultTo;
    lodash.divide = divide;
    lodash.endsWith = endsWith;
    lodash.eq = eq;
    lodash.escape = escape;
    lodash.escapeRegExp = escapeRegExp;
    lodash.every = every;
    lodash.find = find;
    lodash.findIndex = findIndex;
    lodash.findKey = findKey;
    lodash.findLast = findLast;
    lodash.findLastIndex = findLastIndex;
    lodash.findLastKey = findLastKey;
    lodash.floor = floor;
    lodash.forEach = forEach;
    lodash.forEachRight = forEachRight;
    lodash.forIn = forIn;
    lodash.forInRight = forInRight;
    lodash.forOwn = forOwn;
    lodash.forOwnRight = forOwnRight;
    lodash.get = get;
    lodash.gt = gt;
    lodash.gte = gte;
    lodash.has = has;
    lodash.hasIn = hasIn;
    lodash.head = head;
    lodash.identity = identity;
    lodash.includes = includes;
    lodash.indexOf = indexOf;
    lodash.inRange = inRange;
    lodash.invoke = invoke;
    lodash.isArguments = isArguments;
    lodash.isArray = isArray;
    lodash.isArrayBuffer = isArrayBuffer;
    lodash.isArrayLike = isArrayLike;
    lodash.isArrayLikeObject = isArrayLikeObject;
    lodash.isBoolean = isBoolean;
    lodash.isBuffer = isBuffer;
    lodash.isDate = isDate;
    lodash.isElement = isElement;
    lodash.isEmpty = isEmpty;
    lodash.isEqual = isEqual;
    lodash.isEqualWith = isEqualWith;
    lodash.isError = isError;
    lodash.isFinite = isFinite;
    lodash.isFunction = isFunction;
    lodash.isInteger = isInteger;
    lodash.isLength = isLength;
    lodash.isMap = isMap;
    lodash.isMatch = isMatch;
    lodash.isMatchWith = isMatchWith;
    lodash.isNaN = isNaN;
    lodash.isNative = isNative;
    lodash.isNil = isNil;
    lodash.isNull = isNull;
    lodash.isNumber = isNumber;
    lodash.isObject = isObject;
    lodash.isObjectLike = isObjectLike;
    lodash.isPlainObject = isPlainObject;
    lodash.isRegExp = isRegExp;
    lodash.isSafeInteger = isSafeInteger;
    lodash.isSet = isSet;
    lodash.isString = isString;
    lodash.isSymbol = isSymbol;
    lodash.isTypedArray = isTypedArray;
    lodash.isUndefined = isUndefined;
    lodash.isWeakMap = isWeakMap;
    lodash.isWeakSet = isWeakSet;
    lodash.join = join;
    lodash.kebabCase = kebabCase;
    lodash.last = last;
    lodash.lastIndexOf = lastIndexOf;
    lodash.lowerCase = lowerCase;
    lodash.lowerFirst = lowerFirst;
    lodash.lt = lt;
    lodash.lte = lte;
    lodash.max = max;
    lodash.maxBy = maxBy;
    lodash.mean = mean;
    lodash.meanBy = meanBy;
    lodash.min = min;
    lodash.minBy = minBy;
    lodash.stubArray = stubArray;
    lodash.stubFalse = stubFalse;
    lodash.stubObject = stubObject;
    lodash.stubString = stubString;
    lodash.stubTrue = stubTrue;
    lodash.multiply = multiply;
    lodash.nth = nth;
    lodash.noConflict = noConflict;
    lodash.noop = noop;
    lodash.now = now;
    lodash.pad = pad;
    lodash.padEnd = padEnd;
    lodash.padStart = padStart;
    lodash.parseInt = parseInt;
    lodash.random = random;
    lodash.reduce = reduce;
    lodash.reduceRight = reduceRight;
    lodash.repeat = repeat;
    lodash.replace = replace;
    lodash.result = result;
    lodash.round = round;
    lodash.runInContext = runInContext;
    lodash.sample = sample;
    lodash.size = size;
    lodash.snakeCase = snakeCase;
    lodash.some = some;
    lodash.sortedIndex = sortedIndex;
    lodash.sortedIndexBy = sortedIndexBy;
    lodash.sortedIndexOf = sortedIndexOf;
    lodash.sortedLastIndex = sortedLastIndex;
    lodash.sortedLastIndexBy = sortedLastIndexBy;
    lodash.sortedLastIndexOf = sortedLastIndexOf;
    lodash.startCase = startCase;
    lodash.startsWith = startsWith;
    lodash.subtract = subtract;
    lodash.sum = sum;
    lodash.sumBy = sumBy;
    lodash.template = template;
    lodash.times = times;
    lodash.toFinite = toFinite;
    lodash.toInteger = toInteger;
    lodash.toLength = toLength;
    lodash.toLower = toLower;
    lodash.toNumber = toNumber;
    lodash.toSafeInteger = toSafeInteger;
    lodash.toString = toString;
    lodash.toUpper = toUpper;
    lodash.trim = trim;
    lodash.trimEnd = trimEnd;
    lodash.trimStart = trimStart;
    lodash.truncate = truncate;
    lodash.unescape = unescape;
    lodash.uniqueId = uniqueId;
    lodash.upperCase = upperCase;
    lodash.upperFirst = upperFirst;

    // Add aliases.
    lodash.each = forEach;
    lodash.eachRight = forEachRight;
    lodash.first = head;

    mixin(lodash, (function() {
      var source = {};
      baseForOwn(lodash, function(func, methodName) {
        if (!hasOwnProperty.call(lodash.prototype, methodName)) {
          source[methodName] = func;
        }
      });
      return source;
    }()), { 'chain': false });

    /*------------------------------------------------------------------------*/

    /**
     * The semantic version number.
     *
     * @static
     * @memberOf _
     * @type {string}
     */
    lodash.VERSION = VERSION;

    // Assign default placeholders.
    arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
      lodash[methodName].placeholder = lodash;
    });

    // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
    arrayEach(['drop', 'take'], function(methodName, index) {
      LazyWrapper.prototype[methodName] = function(n) {
        n = n === undefined ? 1 : nativeMax(toInteger(n), 0);

        var result = (this.__filtered__ && !index)
          ? new LazyWrapper(this)
          : this.clone();

        if (result.__filtered__) {
          result.__takeCount__ = nativeMin(n, result.__takeCount__);
        } else {
          result.__views__.push({
            'size': nativeMin(n, MAX_ARRAY_LENGTH),
            'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
          });
        }
        return result;
      };

      LazyWrapper.prototype[methodName + 'Right'] = function(n) {
        return this.reverse()[methodName](n).reverse();
      };
    });

    // Add `LazyWrapper` methods that accept an `iteratee` value.
    arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
      var type = index + 1,
          isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;

      LazyWrapper.prototype[methodName] = function(iteratee) {
        var result = this.clone();
        result.__iteratees__.push({
          'iteratee': getIteratee(iteratee, 3),
          'type': type
        });
        result.__filtered__ = result.__filtered__ || isFilter;
        return result;
      };
    });

    // Add `LazyWrapper` methods for `_.head` and `_.last`.
    arrayEach(['head', 'last'], function(methodName, index) {
      var takeName = 'take' + (index ? 'Right' : '');

      LazyWrapper.prototype[methodName] = function() {
        return this[takeName](1).value()[0];
      };
    });

    // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
    arrayEach(['initial', 'tail'], function(methodName, index) {
      var dropName = 'drop' + (index ? '' : 'Right');

      LazyWrapper.prototype[methodName] = function() {
        return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
      };
    });

    LazyWrapper.prototype.compact = function() {
      return this.filter(identity);
    };

    LazyWrapper.prototype.find = function(predicate) {
      return this.filter(predicate).head();
    };

    LazyWrapper.prototype.findLast = function(predicate) {
      return this.reverse().find(predicate);
    };

    LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
      if (typeof path == 'function') {
        return new LazyWrapper(this);
      }
      return this.map(function(value) {
        return baseInvoke(value, path, args);
      });
    });

    LazyWrapper.prototype.reject = function(predicate) {
      return this.filter(negate(getIteratee(predicate)));
    };

    LazyWrapper.prototype.slice = function(start, end) {
      start = toInteger(start);

      var result = this;
      if (result.__filtered__ && (start > 0 || end < 0)) {
        return new LazyWrapper(result);
      }
      if (start < 0) {
        result = result.takeRight(-start);
      } else if (start) {
        result = result.drop(start);
      }
      if (end !== undefined) {
        end = toInteger(end);
        result = end < 0 ? result.dropRight(-end) : result.take(end - start);
      }
      return result;
    };

    LazyWrapper.prototype.takeRightWhile = function(predicate) {
      return this.reverse().takeWhile(predicate).reverse();
    };

    LazyWrapper.prototype.toArray = function() {
      return this.take(MAX_ARRAY_LENGTH);
    };

    // Add `LazyWrapper` methods to `lodash.prototype`.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
          isTaker = /^(?:head|last)$/.test(methodName),
          lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
          retUnwrapped = isTaker || /^find/.test(methodName);

      if (!lodashFunc) {
        return;
      }
      lodash.prototype[methodName] = function() {
        var value = this.__wrapped__,
            args = isTaker ? [1] : arguments,
            isLazy = value instanceof LazyWrapper,
            iteratee = args[0],
            useLazy = isLazy || isArray(value);

        var interceptor = function(value) {
          var result = lodashFunc.apply(lodash, arrayPush([value], args));
          return (isTaker && chainAll) ? result[0] : result;
        };

        if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
          // Avoid lazy use if the iteratee has a "length" value other than `1`.
          isLazy = useLazy = false;
        }
        var chainAll = this.__chain__,
            isHybrid = !!this.__actions__.length,
            isUnwrapped = retUnwrapped && !chainAll,
            onlyLazy = isLazy && !isHybrid;

        if (!retUnwrapped && useLazy) {
          value = onlyLazy ? value : new LazyWrapper(this);
          var result = func.apply(value, args);
          result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
          return new LodashWrapper(result, chainAll);
        }
        if (isUnwrapped && onlyLazy) {
          return func.apply(this, args);
        }
        result = this.thru(interceptor);
        return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
      };
    });

    // Add `Array` methods to `lodash.prototype`.
    arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
      var func = arrayProto[methodName],
          chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
          retUnwrapped = /^(?:pop|shift)$/.test(methodName);

      lodash.prototype[methodName] = function() {
        var args = arguments;
        if (retUnwrapped && !this.__chain__) {
          var value = this.value();
          return func.apply(isArray(value) ? value : [], args);
        }
        return this[chainName](function(value) {
          return func.apply(isArray(value) ? value : [], args);
        });
      };
    });

    // Map minified method names to their real names.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var lodashFunc = lodash[methodName];
      if (lodashFunc) {
        var key = (lodashFunc.name + ''),
            names = realNames[key] || (realNames[key] = []);

        names.push({ 'name': methodName, 'func': lodashFunc });
      }
    });

    realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
      'name': 'wrapper',
      'func': undefined
    }];

    // Add methods to `LazyWrapper`.
    LazyWrapper.prototype.clone = lazyClone;
    LazyWrapper.prototype.reverse = lazyReverse;
    LazyWrapper.prototype.value = lazyValue;

    // Add chain sequence methods to the `lodash` wrapper.
    lodash.prototype.at = wrapperAt;
    lodash.prototype.chain = wrapperChain;
    lodash.prototype.commit = wrapperCommit;
    lodash.prototype.next = wrapperNext;
    lodash.prototype.plant = wrapperPlant;
    lodash.prototype.reverse = wrapperReverse;
    lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;

    // Add lazy aliases.
    lodash.prototype.first = lodash.prototype.head;

    if (symIterator) {
      lodash.prototype[symIterator] = wrapperToIterator;
    }
    return lodash;
  });

  /*--------------------------------------------------------------------------*/

  // Export lodash.
  var _ = runInContext();

  // Some AMD build optimizers, like r.js, check for condition patterns like:
  if (true) {
    // Expose Lodash on the global object to prevent errors when Lodash is
    // loaded by a script tag in the presence of an AMD loader.
    // See http://requirejs.org/docs/errors.html#mismatch for more details.
    // Use `_.noConflict` to remove Lodash from the global object.
    root._ = _;

    // Define as an anonymous module so, through path mapping, it can be
    // referenced as the "underscore" module.
    !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
      return _;
    }).call(exports, __webpack_require__, exports, module),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  }
  // Check for `exports` after `define` in case a build optimizer adds it.
  else if (freeModule) {
    // Export for Node.js.
    (freeModule.exports = _)._ = _;
    // Export for CommonJS support.
    freeExports._ = _;
  }
  else {
    // Export to the global object.
    root._ = _;
  }
}.call(this));

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15), __webpack_require__(185)(module)))

/***/ }),
/* 508 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process, global) {/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.4+314e4831
 */

(function (global, factory) {
	 true ? module.exports = factory() :
	typeof define === 'function' && define.amd ? define(factory) :
	(global.ES6Promise = factory());
}(this, (function () { 'use strict';

function objectOrFunction(x) {
  var type = typeof x;
  return x !== null && (type === 'object' || type === 'function');
}

function isFunction(x) {
  return typeof x === 'function';
}



var _isArray = void 0;
if (Array.isArray) {
  _isArray = Array.isArray;
} else {
  _isArray = function (x) {
    return Object.prototype.toString.call(x) === '[object Array]';
  };
}

var isArray = _isArray;

var len = 0;
var vertxNext = void 0;
var customSchedulerFn = void 0;

var asap = function asap(callback, arg) {
  queue[len] = callback;
  queue[len + 1] = arg;
  len += 2;
  if (len === 2) {
    // If len is 2, that means that we need to schedule an async flush.
    // If additional callbacks are queued before the queue is flushed, they
    // will be processed by this flush that we are scheduling.
    if (customSchedulerFn) {
      customSchedulerFn(flush);
    } else {
      scheduleFlush();
    }
  }
};

function setScheduler(scheduleFn) {
  customSchedulerFn = scheduleFn;
}

function setAsap(asapFn) {
  asap = asapFn;
}

var browserWindow = typeof window !== 'undefined' ? window : undefined;
var browserGlobal = browserWindow || {};
var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';

// test for web worker but not in IE10
var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';

// node
function useNextTick() {
  // node version 0.10.x displays a deprecation warning when nextTick is used recursively
  // see https://github.com/cujojs/when/issues/410 for details
  return function () {
    return process.nextTick(flush);
  };
}

// vertx
function useVertxTimer() {
  if (typeof vertxNext !== 'undefined') {
    return function () {
      vertxNext(flush);
    };
  }

  return useSetTimeout();
}

function useMutationObserver() {
  var iterations = 0;
  var observer = new BrowserMutationObserver(flush);
  var node = document.createTextNode('');
  observer.observe(node, { characterData: true });

  return function () {
    node.data = iterations = ++iterations % 2;
  };
}

// web worker
function useMessageChannel() {
  var channel = new MessageChannel();
  channel.port1.onmessage = flush;
  return function () {
    return channel.port2.postMessage(0);
  };
}

function useSetTimeout() {
  // Store setTimeout reference so es6-promise will be unaffected by
  // other code modifying setTimeout (like sinon.useFakeTimers())
  var globalSetTimeout = setTimeout;
  return function () {
    return globalSetTimeout(flush, 1);
  };
}

var queue = new Array(1000);
function flush() {
  for (var i = 0; i < len; i += 2) {
    var callback = queue[i];
    var arg = queue[i + 1];

    callback(arg);

    queue[i] = undefined;
    queue[i + 1] = undefined;
  }

  len = 0;
}

function attemptVertx() {
  try {
    var vertx = Function('return this')().require('vertx');
    vertxNext = vertx.runOnLoop || vertx.runOnContext;
    return useVertxTimer();
  } catch (e) {
    return useSetTimeout();
  }
}

var scheduleFlush = void 0;
// Decide what async method to use to triggering processing of queued callbacks:
if (isNode) {
  scheduleFlush = useNextTick();
} else if (BrowserMutationObserver) {
  scheduleFlush = useMutationObserver();
} else if (isWorker) {
  scheduleFlush = useMessageChannel();
} else if (browserWindow === undefined && "function" === 'function') {
  scheduleFlush = attemptVertx();
} else {
  scheduleFlush = useSetTimeout();
}

function then(onFulfillment, onRejection) {
  var parent = this;

  var child = new this.constructor(noop);

  if (child[PROMISE_ID] === undefined) {
    makePromise(child);
  }

  var _state = parent._state;


  if (_state) {
    var callback = arguments[_state - 1];
    asap(function () {
      return invokeCallback(_state, child, callback, parent._result);
    });
  } else {
    subscribe(parent, child, onFulfillment, onRejection);
  }

  return child;
}

/**
  `Promise.resolve` returns a promise that will become resolved with the
  passed `value`. It is shorthand for the following:

  ```javascript
  let promise = new Promise(function(resolve, reject){
    resolve(1);
  });

  promise.then(function(value){
    // value === 1
  });
  ```

  Instead of writing the above, your code now simply becomes the following:

  ```javascript
  let promise = Promise.resolve(1);

  promise.then(function(value){
    // value === 1
  });
  ```

  @method resolve
  @static
  @param {Any} value value that the returned promise will be resolved with
  Useful for tooling.
  @return {Promise} a promise that will become fulfilled with the given
  `value`
*/
function resolve$1(object) {
  /*jshint validthis:true */
  var Constructor = this;

  if (object && typeof object === 'object' && object.constructor === Constructor) {
    return object;
  }

  var promise = new Constructor(noop);
  resolve(promise, object);
  return promise;
}

var PROMISE_ID = Math.random().toString(36).substring(2);

function noop() {}

var PENDING = void 0;
var FULFILLED = 1;
var REJECTED = 2;

var TRY_CATCH_ERROR = { error: null };

function selfFulfillment() {
  return new TypeError("You cannot resolve a promise with itself");
}

function cannotReturnOwn() {
  return new TypeError('A promises callback cannot return that same promise.');
}

function getThen(promise) {
  try {
    return promise.then;
  } catch (error) {
    TRY_CATCH_ERROR.error = error;
    return TRY_CATCH_ERROR;
  }
}

function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {
  try {
    then$$1.call(value, fulfillmentHandler, rejectionHandler);
  } catch (e) {
    return e;
  }
}

function handleForeignThenable(promise, thenable, then$$1) {
  asap(function (promise) {
    var sealed = false;
    var error = tryThen(then$$1, thenable, function (value) {
      if (sealed) {
        return;
      }
      sealed = true;
      if (thenable !== value) {
        resolve(promise, value);
      } else {
        fulfill(promise, value);
      }
    }, function (reason) {
      if (sealed) {
        return;
      }
      sealed = true;

      reject(promise, reason);
    }, 'Settle: ' + (promise._label || ' unknown promise'));

    if (!sealed && error) {
      sealed = true;
      reject(promise, error);
    }
  }, promise);
}

function handleOwnThenable(promise, thenable) {
  if (thenable._state === FULFILLED) {
    fulfill(promise, thenable._result);
  } else if (thenable._state === REJECTED) {
    reject(promise, thenable._result);
  } else {
    subscribe(thenable, undefined, function (value) {
      return resolve(promise, value);
    }, function (reason) {
      return reject(promise, reason);
    });
  }
}

function handleMaybeThenable(promise, maybeThenable, then$$1) {
  if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {
    handleOwnThenable(promise, maybeThenable);
  } else {
    if (then$$1 === TRY_CATCH_ERROR) {
      reject(promise, TRY_CATCH_ERROR.error);
      TRY_CATCH_ERROR.error = null;
    } else if (then$$1 === undefined) {
      fulfill(promise, maybeThenable);
    } else if (isFunction(then$$1)) {
      handleForeignThenable(promise, maybeThenable, then$$1);
    } else {
      fulfill(promise, maybeThenable);
    }
  }
}

function resolve(promise, value) {
  if (promise === value) {
    reject(promise, selfFulfillment());
  } else if (objectOrFunction(value)) {
    handleMaybeThenable(promise, value, getThen(value));
  } else {
    fulfill(promise, value);
  }
}

function publishRejection(promise) {
  if (promise._onerror) {
    promise._onerror(promise._result);
  }

  publish(promise);
}

function fulfill(promise, value) {
  if (promise._state !== PENDING) {
    return;
  }

  promise._result = value;
  promise._state = FULFILLED;

  if (promise._subscribers.length !== 0) {
    asap(publish, promise);
  }
}

function reject(promise, reason) {
  if (promise._state !== PENDING) {
    return;
  }
  promise._state = REJECTED;
  promise._result = reason;

  asap(publishRejection, promise);
}

function subscribe(parent, child, onFulfillment, onRejection) {
  var _subscribers = parent._subscribers;
  var length = _subscribers.length;


  parent._onerror = null;

  _subscribers[length] = child;
  _subscribers[length + FULFILLED] = onFulfillment;
  _subscribers[length + REJECTED] = onRejection;

  if (length === 0 && parent._state) {
    asap(publish, parent);
  }
}

function publish(promise) {
  var subscribers = promise._subscribers;
  var settled = promise._state;

  if (subscribers.length === 0) {
    return;
  }

  var child = void 0,
      callback = void 0,
      detail = promise._result;

  for (var i = 0; i < subscribers.length; i += 3) {
    child = subscribers[i];
    callback = subscribers[i + settled];

    if (child) {
      invokeCallback(settled, child, callback, detail);
    } else {
      callback(detail);
    }
  }

  promise._subscribers.length = 0;
}

function tryCatch(callback, detail) {
  try {
    return callback(detail);
  } catch (e) {
    TRY_CATCH_ERROR.error = e;
    return TRY_CATCH_ERROR;
  }
}

function invokeCallback(settled, promise, callback, detail) {
  var hasCallback = isFunction(callback),
      value = void 0,
      error = void 0,
      succeeded = void 0,
      failed = void 0;

  if (hasCallback) {
    value = tryCatch(callback, detail);

    if (value === TRY_CATCH_ERROR) {
      failed = true;
      error = value.error;
      value.error = null;
    } else {
      succeeded = true;
    }

    if (promise === value) {
      reject(promise, cannotReturnOwn());
      return;
    }
  } else {
    value = detail;
    succeeded = true;
  }

  if (promise._state !== PENDING) {
    // noop
  } else if (hasCallback && succeeded) {
    resolve(promise, value);
  } else if (failed) {
    reject(promise, error);
  } else if (settled === FULFILLED) {
    fulfill(promise, value);
  } else if (settled === REJECTED) {
    reject(promise, value);
  }
}

function initializePromise(promise, resolver) {
  try {
    resolver(function resolvePromise(value) {
      resolve(promise, value);
    }, function rejectPromise(reason) {
      reject(promise, reason);
    });
  } catch (e) {
    reject(promise, e);
  }
}

var id = 0;
function nextId() {
  return id++;
}

function makePromise(promise) {
  promise[PROMISE_ID] = id++;
  promise._state = undefined;
  promise._result = undefined;
  promise._subscribers = [];
}

function validationError() {
  return new Error('Array Methods must be provided an Array');
}

var Enumerator = function () {
  function Enumerator(Constructor, input) {
    this._instanceConstructor = Constructor;
    this.promise = new Constructor(noop);

    if (!this.promise[PROMISE_ID]) {
      makePromise(this.promise);
    }

    if (isArray(input)) {
      this.length = input.length;
      this._remaining = input.length;

      this._result = new Array(this.length);

      if (this.length === 0) {
        fulfill(this.promise, this._result);
      } else {
        this.length = this.length || 0;
        this._enumerate(input);
        if (this._remaining === 0) {
          fulfill(this.promise, this._result);
        }
      }
    } else {
      reject(this.promise, validationError());
    }
  }

  Enumerator.prototype._enumerate = function _enumerate(input) {
    for (var i = 0; this._state === PENDING && i < input.length; i++) {
      this._eachEntry(input[i], i);
    }
  };

  Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {
    var c = this._instanceConstructor;
    var resolve$$1 = c.resolve;


    if (resolve$$1 === resolve$1) {
      var _then = getThen(entry);

      if (_then === then && entry._state !== PENDING) {
        this._settledAt(entry._state, i, entry._result);
      } else if (typeof _then !== 'function') {
        this._remaining--;
        this._result[i] = entry;
      } else if (c === Promise$1) {
        var promise = new c(noop);
        handleMaybeThenable(promise, entry, _then);
        this._willSettleAt(promise, i);
      } else {
        this._willSettleAt(new c(function (resolve$$1) {
          return resolve$$1(entry);
        }), i);
      }
    } else {
      this._willSettleAt(resolve$$1(entry), i);
    }
  };

  Enumerator.prototype._settledAt = function _settledAt(state, i, value) {
    var promise = this.promise;


    if (promise._state === PENDING) {
      this._remaining--;

      if (state === REJECTED) {
        reject(promise, value);
      } else {
        this._result[i] = value;
      }
    }

    if (this._remaining === 0) {
      fulfill(promise, this._result);
    }
  };

  Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {
    var enumerator = this;

    subscribe(promise, undefined, function (value) {
      return enumerator._settledAt(FULFILLED, i, value);
    }, function (reason) {
      return enumerator._settledAt(REJECTED, i, reason);
    });
  };

  return Enumerator;
}();

/**
  `Promise.all` accepts an array of promises, and returns a new promise which
  is fulfilled with an array of fulfillment values for the passed promises, or
  rejected with the reason of the first passed promise to be rejected. It casts all
  elements of the passed iterable to promises as it runs this algorithm.

  Example:

  ```javascript
  let promise1 = resolve(1);
  let promise2 = resolve(2);
  let promise3 = resolve(3);
  let promises = [ promise1, promise2, promise3 ];

  Promise.all(promises).then(function(array){
    // The array here would be [ 1, 2, 3 ];
  });
  ```

  If any of the `promises` given to `all` are rejected, the first promise
  that is rejected will be given as an argument to the returned promises's
  rejection handler. For example:

  Example:

  ```javascript
  let promise1 = resolve(1);
  let promise2 = reject(new Error("2"));
  let promise3 = reject(new Error("3"));
  let promises = [ promise1, promise2, promise3 ];

  Promise.all(promises).then(function(array){
    // Code here never runs because there are rejected promises!
  }, function(error) {
    // error.message === "2"
  });
  ```

  @method all
  @static
  @param {Array} entries array of promises
  @param {String} label optional string for labeling the promise.
  Useful for tooling.
  @return {Promise} promise that is fulfilled when all `promises` have been
  fulfilled, or rejected if any of them become rejected.
  @static
*/
function all(entries) {
  return new Enumerator(this, entries).promise;
}

/**
  `Promise.race` returns a new promise which is settled in the same way as the
  first passed promise to settle.

  Example:

  ```javascript
  let promise1 = new Promise(function(resolve, reject){
    setTimeout(function(){
      resolve('promise 1');
    }, 200);
  });

  let promise2 = new Promise(function(resolve, reject){
    setTimeout(function(){
      resolve('promise 2');
    }, 100);
  });

  Promise.race([promise1, promise2]).then(function(result){
    // result === 'promise 2' because it was resolved before promise1
    // was resolved.
  });
  ```

  `Promise.race` is deterministic in that only the state of the first
  settled promise matters. For example, even if other promises given to the
  `promises` array argument are resolved, but the first settled promise has
  become rejected before the other promises became fulfilled, the returned
  promise will become rejected:

  ```javascript
  let promise1 = new Promise(function(resolve, reject){
    setTimeout(function(){
      resolve('promise 1');
    }, 200);
  });

  let promise2 = new Promise(function(resolve, reject){
    setTimeout(function(){
      reject(new Error('promise 2'));
    }, 100);
  });

  Promise.race([promise1, promise2]).then(function(result){
    // Code here never runs
  }, function(reason){
    // reason.message === 'promise 2' because promise 2 became rejected before
    // promise 1 became fulfilled
  });
  ```

  An example real-world use case is implementing timeouts:

  ```javascript
  Promise.race([ajax('foo.json'), timeout(5000)])
  ```

  @method race
  @static
  @param {Array} promises array of promises to observe
  Useful for tooling.
  @return {Promise} a promise which settles in the same way as the first passed
  promise to settle.
*/
function race(entries) {
  /*jshint validthis:true */
  var Constructor = this;

  if (!isArray(entries)) {
    return new Constructor(function (_, reject) {
      return reject(new TypeError('You must pass an array to race.'));
    });
  } else {
    return new Constructor(function (resolve, reject) {
      var length = entries.length;
      for (var i = 0; i < length; i++) {
        Constructor.resolve(entries[i]).then(resolve, reject);
      }
    });
  }
}

/**
  `Promise.reject` returns a promise rejected with the passed `reason`.
  It is shorthand for the following:

  ```javascript
  let promise = new Promise(function(resolve, reject){
    reject(new Error('WHOOPS'));
  });

  promise.then(function(value){
    // Code here doesn't run because the promise is rejected!
  }, function(reason){
    // reason.message === 'WHOOPS'
  });
  ```

  Instead of writing the above, your code now simply becomes the following:

  ```javascript
  let promise = Promise.reject(new Error('WHOOPS'));

  promise.then(function(value){
    // Code here doesn't run because the promise is rejected!
  }, function(reason){
    // reason.message === 'WHOOPS'
  });
  ```

  @method reject
  @static
  @param {Any} reason value that the returned promise will be rejected with.
  Useful for tooling.
  @return {Promise} a promise rejected with the given `reason`.
*/
function reject$1(reason) {
  /*jshint validthis:true */
  var Constructor = this;
  var promise = new Constructor(noop);
  reject(promise, reason);
  return promise;
}

function needsResolver() {
  throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
}

function needsNew() {
  throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
}

/**
  Promise objects represent the eventual result of an asynchronous operation. The
  primary way of interacting with a promise is through its `then` method, which
  registers callbacks to receive either a promise's eventual value or the reason
  why the promise cannot be fulfilled.

  Terminology
  -----------

  - `promise` is an object or function with a `then` method whose behavior conforms to this specification.
  - `thenable` is an object or function that defines a `then` method.
  - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).
  - `exception` is a value that is thrown using the throw statement.
  - `reason` is a value that indicates why a promise was rejected.
  - `settled` the final resting state of a promise, fulfilled or rejected.

  A promise can be in one of three states: pending, fulfilled, or rejected.

  Promises that are fulfilled have a fulfillment value and are in the fulfilled
  state.  Promises that are rejected have a rejection reason and are in the
  rejected state.  A fulfillment value is never a thenable.

  Promises can also be said to *resolve* a value.  If this value is also a
  promise, then the original promise's settled state will match the value's
  settled state.  So a promise that *resolves* a promise that rejects will
  itself reject, and a promise that *resolves* a promise that fulfills will
  itself fulfill.


  Basic Usage:
  ------------

  ```js
  let promise = new Promise(function(resolve, reject) {
    // on success
    resolve(value);

    // on failure
    reject(reason);
  });

  promise.then(function(value) {
    // on fulfillment
  }, function(reason) {
    // on rejection
  });
  ```

  Advanced Usage:
  ---------------

  Promises shine when abstracting away asynchronous interactions such as
  `XMLHttpRequest`s.

  ```js
  function getJSON(url) {
    return new Promise(function(resolve, reject){
      let xhr = new XMLHttpRequest();

      xhr.open('GET', url);
      xhr.onreadystatechange = handler;
      xhr.responseType = 'json';
      xhr.setRequestHeader('Accept', 'application/json');
      xhr.send();

      function handler() {
        if (this.readyState === this.DONE) {
          if (this.status === 200) {
            resolve(this.response);
          } else {
            reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));
          }
        }
      };
    });
  }

  getJSON('/posts.json').then(function(json) {
    // on fulfillment
  }, function(reason) {
    // on rejection
  });
  ```

  Unlike callbacks, promises are great composable primitives.

  ```js
  Promise.all([
    getJSON('/posts'),
    getJSON('/comments')
  ]).then(function(values){
    values[0] // => postsJSON
    values[1] // => commentsJSON

    return values;
  });
  ```

  @class Promise
  @param {Function} resolver
  Useful for tooling.
  @constructor
*/

var Promise$1 = function () {
  function Promise(resolver) {
    this[PROMISE_ID] = nextId();
    this._result = this._state = undefined;
    this._subscribers = [];

    if (noop !== resolver) {
      typeof resolver !== 'function' && needsResolver();
      this instanceof Promise ? initializePromise(this, resolver) : needsNew();
    }
  }

  /**
  The primary way of interacting with a promise is through its `then` method,
  which registers callbacks to receive either a promise's eventual value or the
  reason why the promise cannot be fulfilled.
   ```js
  findUser().then(function(user){
    // user is available
  }, function(reason){
    // user is unavailable, and you are given the reason why
  });
  ```
   Chaining
  --------
   The return value of `then` is itself a promise.  This second, 'downstream'
  promise is resolved with the return value of the first promise's fulfillment
  or rejection handler, or rejected if the handler throws an exception.
   ```js
  findUser().then(function (user) {
    return user.name;
  }, function (reason) {
    return 'default name';
  }).then(function (userName) {
    // If `findUser` fulfilled, `userName` will be the user's name, otherwise it
    // will be `'default name'`
  });
   findUser().then(function (user) {
    throw new Error('Found user, but still unhappy');
  }, function (reason) {
    throw new Error('`findUser` rejected and we're unhappy');
  }).then(function (value) {
    // never reached
  }, function (reason) {
    // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.
    // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.
  });
  ```
  If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.
   ```js
  findUser().then(function (user) {
    throw new PedagogicalException('Upstream error');
  }).then(function (value) {
    // never reached
  }).then(function (value) {
    // never reached
  }, function (reason) {
    // The `PedgagocialException` is propagated all the way down to here
  });
  ```
   Assimilation
  ------------
   Sometimes the value you want to propagate to a downstream promise can only be
  retrieved asynchronously. This can be achieved by returning a promise in the
  fulfillment or rejection handler. The downstream promise will then be pending
  until the returned promise is settled. This is called *assimilation*.
   ```js
  findUser().then(function (user) {
    return findCommentsByAuthor(user);
  }).then(function (comments) {
    // The user's comments are now available
  });
  ```
   If the assimliated promise rejects, then the downstream promise will also reject.
   ```js
  findUser().then(function (user) {
    return findCommentsByAuthor(user);
  }).then(function (comments) {
    // If `findCommentsByAuthor` fulfills, we'll have the value here
  }, function (reason) {
    // If `findCommentsByAuthor` rejects, we'll have the reason here
  });
  ```
   Simple Example
  --------------
   Synchronous Example
   ```javascript
  let result;
   try {
    result = findResult();
    // success
  } catch(reason) {
    // failure
  }
  ```
   Errback Example
   ```js
  findResult(function(result, err){
    if (err) {
      // failure
    } else {
      // success
    }
  });
  ```
   Promise Example;
   ```javascript
  findResult().then(function(result){
    // success
  }, function(reason){
    // failure
  });
  ```
   Advanced Example
  --------------
   Synchronous Example
   ```javascript
  let author, books;
   try {
    author = findAuthor();
    books  = findBooksByAuthor(author);
    // success
  } catch(reason) {
    // failure
  }
  ```
   Errback Example
   ```js
   function foundBooks(books) {
   }
   function failure(reason) {
   }
   findAuthor(function(author, err){
    if (err) {
      failure(err);
      // failure
    } else {
      try {
        findBoooksByAuthor(author, function(books, err) {
          if (err) {
            failure(err);
          } else {
            try {
              foundBooks(books);
            } catch(reason) {
              failure(reason);
            }
          }
        });
      } catch(error) {
        failure(err);
      }
      // success
    }
  });
  ```
   Promise Example;
   ```javascript
  findAuthor().
    then(findBooksByAuthor).
    then(function(books){
      // found books
  }).catch(function(reason){
    // something went wrong
  });
  ```
   @method then
  @param {Function} onFulfilled
  @param {Function} onRejected
  Useful for tooling.
  @return {Promise}
  */

  /**
  `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
  as the catch block of a try/catch statement.
  ```js
  function findAuthor(){
  throw new Error('couldn't find that author');
  }
  // synchronous
  try {
  findAuthor();
  } catch(reason) {
  // something went wrong
  }
  // async with promises
  findAuthor().catch(function(reason){
  // something went wrong
  });
  ```
  @method catch
  @param {Function} onRejection
  Useful for tooling.
  @return {Promise}
  */


  Promise.prototype.catch = function _catch(onRejection) {
    return this.then(null, onRejection);
  };

  /**
    `finally` will be invoked regardless of the promise's fate just as native
    try/catch/finally behaves
  
    Synchronous example:
  
    ```js
    findAuthor() {
      if (Math.random() > 0.5) {
        throw new Error();
      }
      return new Author();
    }
  
    try {
      return findAuthor(); // succeed or fail
    } catch(error) {
      return findOtherAuther();
    } finally {
      // always runs
      // doesn't affect the return value
    }
    ```
  
    Asynchronous example:
  
    ```js
    findAuthor().catch(function(reason){
      return findOtherAuther();
    }).finally(function(){
      // author was either found, or not
    });
    ```
  
    @method finally
    @param {Function} callback
    @return {Promise}
  */


  Promise.prototype.finally = function _finally(callback) {
    var promise = this;
    var constructor = promise.constructor;

    return promise.then(function (value) {
      return constructor.resolve(callback()).then(function () {
        return value;
      });
    }, function (reason) {
      return constructor.resolve(callback()).then(function () {
        throw reason;
      });
    });
  };

  return Promise;
}();

Promise$1.prototype.then = then;
Promise$1.all = all;
Promise$1.race = race;
Promise$1.resolve = resolve$1;
Promise$1.reject = reject$1;
Promise$1._setScheduler = setScheduler;
Promise$1._setAsap = setAsap;
Promise$1._asap = asap;

/*global self*/
function polyfill() {
  var local = void 0;

  if (typeof global !== 'undefined') {
    local = global;
  } else if (typeof self !== 'undefined') {
    local = self;
  } else {
    try {
      local = Function('return this')();
    } catch (e) {
      throw new Error('polyfill failed because global object is unavailable in this environment');
    }
  }

  var P = local.Promise;

  if (P) {
    var promiseToString = null;
    try {
      promiseToString = Object.prototype.toString.call(P.resolve());
    } catch (e) {
      // silently ignored
    }

    if (promiseToString === '[object Promise]' && !P.cast) {
      return;
    }
  }

  local.Promise = Promise$1;
}

// Strange compat..
Promise$1.polyfill = polyfill;
Promise$1.Promise = Promise$1;

return Promise$1;

})));



//# sourceMappingURL=es6-promise.map

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30), __webpack_require__(15)))

/***/ }),
/* 509 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function cameraName(label) {
  var clean = label.replace(/\s*\([0-9a-f]+(:[0-9a-f]+)?\)\s*$/, '');
  return clean || label || null;
}

var MediaError = function (_Error) {
  _inherits(MediaError, _Error);

  function MediaError(type) {
    _classCallCheck(this, MediaError);

    var _this = _possibleConstructorReturn(this, (MediaError.__proto__ || Object.getPrototypeOf(MediaError)).call(this, 'Cannot access video stream (' + type + ').'));

    _this.type = type;
    return _this;
  }

  return MediaError;
}(Error);

var Camera = function () {
  function Camera(id, name) {
    _classCallCheck(this, Camera);

    this.id = id;
    this.name = name;
    this._stream = null;
  }

  _createClass(Camera, [{
    key: 'start',
    value: function () {
      var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
        var _this2 = this;

        var constraints;
        return regeneratorRuntime.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                constraints = {
                  audio: false,
                  video: {
                    mandatory: {
                      sourceId: this.id,
                      minWidth: 600,
                      maxWidth: 800,
                      minAspectRatio: 1.6
                    },
                    optional: []
                  }
                };
                _context2.next = 3;
                return Camera._wrapErrors(_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
                  return regeneratorRuntime.wrap(function _callee$(_context) {
                    while (1) {
                      switch (_context.prev = _context.next) {
                        case 0:
                          _context.next = 2;
                          return navigator.mediaDevices.getUserMedia(constraints);

                        case 2:
                          return _context.abrupt('return', _context.sent);

                        case 3:
                        case 'end':
                          return _context.stop();
                      }
                    }
                  }, _callee, _this2);
                })));

              case 3:
                this._stream = _context2.sent;
                return _context2.abrupt('return', this._stream);

              case 5:
              case 'end':
                return _context2.stop();
            }
          }
        }, _callee2, this);
      }));

      function start() {
        return _ref.apply(this, arguments);
      }

      return start;
    }()
  }, {
    key: 'stop',
    value: function stop() {
      if (!this._stream) {
        return;
      }

      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = this._stream.getVideoTracks()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var stream = _step.value;

          stream.stop();
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      this._stream = null;
    }
  }], [{
    key: 'getCameras',
    value: function () {
      var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
        var devices;
        return regeneratorRuntime.wrap(function _callee3$(_context3) {
          while (1) {
            switch (_context3.prev = _context3.next) {
              case 0:
                _context3.next = 2;
                return this._ensureAccess();

              case 2:
                _context3.next = 4;
                return navigator.mediaDevices.enumerateDevices();

              case 4:
                devices = _context3.sent;
                return _context3.abrupt('return', devices.filter(function (d) {
                  return d.kind === 'videoinput';
                }).map(function (d) {
                  return new Camera(d.deviceId, cameraName(d.label));
                }));

              case 6:
              case 'end':
                return _context3.stop();
            }
          }
        }, _callee3, this);
      }));

      function getCameras() {
        return _ref3.apply(this, arguments);
      }

      return getCameras;
    }()
  }, {
    key: '_ensureAccess',
    value: function () {
      var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
        var _this3 = this;

        return regeneratorRuntime.wrap(function _callee5$(_context5) {
          while (1) {
            switch (_context5.prev = _context5.next) {
              case 0:
                _context5.next = 2;
                return this._wrapErrors(_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
                  var access, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, stream;

                  return regeneratorRuntime.wrap(function _callee4$(_context4) {
                    while (1) {
                      switch (_context4.prev = _context4.next) {
                        case 0:
                          _context4.next = 2;
                          return navigator.mediaDevices.getUserMedia({ video: true });

                        case 2:
                          access = _context4.sent;
                          _iteratorNormalCompletion2 = true;
                          _didIteratorError2 = false;
                          _iteratorError2 = undefined;
                          _context4.prev = 6;

                          for (_iterator2 = access.getVideoTracks()[Symbol.iterator](); !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
                            stream = _step2.value;

                            stream.stop();
                          }
                          _context4.next = 14;
                          break;

                        case 10:
                          _context4.prev = 10;
                          _context4.t0 = _context4['catch'](6);
                          _didIteratorError2 = true;
                          _iteratorError2 = _context4.t0;

                        case 14:
                          _context4.prev = 14;
                          _context4.prev = 15;

                          if (!_iteratorNormalCompletion2 && _iterator2.return) {
                            _iterator2.return();
                          }

                        case 17:
                          _context4.prev = 17;

                          if (!_didIteratorError2) {
                            _context4.next = 20;
                            break;
                          }

                          throw _iteratorError2;

                        case 20:
                          return _context4.finish(17);

                        case 21:
                          return _context4.finish(14);

                        case 22:
                        case 'end':
                          return _context4.stop();
                      }
                    }
                  }, _callee4, _this3, [[6, 10, 14, 22], [15,, 17, 21]]);
                })));

              case 2:
                return _context5.abrupt('return', _context5.sent);

              case 3:
              case 'end':
                return _context5.stop();
            }
          }
        }, _callee5, this);
      }));

      function _ensureAccess() {
        return _ref4.apply(this, arguments);
      }

      return _ensureAccess;
    }()
  }, {
    key: '_wrapErrors',
    value: function () {
      var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(fn) {
        return regeneratorRuntime.wrap(function _callee6$(_context6) {
          while (1) {
            switch (_context6.prev = _context6.next) {
              case 0:
                _context6.prev = 0;
                _context6.next = 3;
                return fn();

              case 3:
                return _context6.abrupt('return', _context6.sent);

              case 6:
                _context6.prev = 6;
                _context6.t0 = _context6['catch'](0);

                if (!_context6.t0.name) {
                  _context6.next = 12;
                  break;
                }

                throw new MediaError(_context6.t0.name);

              case 12:
                throw _context6.t0;

              case 13:
              case 'end':
                return _context6.stop();
            }
          }
        }, _callee6, this, [[0, 6]]);
      }));

      function _wrapErrors(_x) {
        return _ref6.apply(this, arguments);
      }

      return _wrapErrors;
    }()
  }]);

  return Camera;
}();

module.exports = Camera;

/***/ })
/******/ ]);
});
//# sourceMappingURL=instascan.js.map