mirror of https://github.com/morpheus65535/bazarr
15478 lines
1.2 MiB
15478 lines
1.2 MiB
from js2py.pyjs import *
|
|
# setting scope
|
|
var = Scope( JS_BUILTINS )
|
|
set_global_object(var)
|
|
|
|
# Code follows:
|
|
var.registers(['getFromGlobals', 'crypto_js', '_typeof'])
|
|
@Js
|
|
def PyJsHoisted_getFromGlobals_(name, this, arguments, var=var):
|
|
var = Scope({'name':name, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['name'])
|
|
if var.get('Object').get('prototype').callprop('hasOwnProperty', Js('_fake_exports')).neg():
|
|
PyJsTempException = JsToPyException(var.get('Error')((Js('Could not find any value named ')+var.get('name'))))
|
|
raise PyJsTempException
|
|
if var.get('Object').get('prototype').get('_fake_exports').callprop('hasOwnProperty', var.get('name')):
|
|
return var.get('Object').get('prototype').get('_fake_exports').get(var.get('name'))
|
|
else:
|
|
PyJsTempException = JsToPyException(var.get('Error')((Js('Could not find any value named ')+var.get('name'))))
|
|
raise PyJsTempException
|
|
PyJsHoisted_getFromGlobals_.func_name = 'getFromGlobals'
|
|
var.put('getFromGlobals', PyJsHoisted_getFromGlobals_)
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_0_(obj, this, arguments, var=var):
|
|
var = Scope({'obj':obj, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['obj'])
|
|
return var.get('obj',throw=False).typeof()
|
|
PyJs_anonymous_0_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1_(obj, this, arguments, var=var):
|
|
var = Scope({'obj':obj, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['obj'])
|
|
return (Js('symbol') if (((var.get('obj') and PyJsStrictEq(var.get('Symbol',throw=False).typeof(),Js('function'))) and PyJsStrictEq(var.get('obj').get('constructor'),var.get('Symbol'))) and PyJsStrictNeq(var.get('obj'),var.get('Symbol').get('prototype'))) else var.get('obj',throw=False).typeof())
|
|
PyJs_anonymous_1_._set_name('anonymous')
|
|
var.put('_typeof', (PyJs_anonymous_0_ if (PyJsStrictEq(var.get('Symbol',throw=False).typeof(),Js('function')) and PyJsStrictEq(var.get('Symbol').get('iterator').typeof(),Js('symbol'))) else PyJs_anonymous_1_))
|
|
def PyJs_LONG_1357_(var=var):
|
|
@Js
|
|
def PyJs_anonymous_2_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'addToGlobals', 'module_temp_love_python'])
|
|
@Js
|
|
def PyJsHoisted_addToGlobals_(name, obj, this, arguments, var=var):
|
|
var = Scope({'name':name, 'obj':obj, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['name', 'obj'])
|
|
if var.get('Object').get('prototype').callprop('hasOwnProperty', Js('_fake_exports')).neg():
|
|
var.get('Object').get('prototype').put('_fake_exports', Js({}))
|
|
var.get('Object').get('prototype').get('_fake_exports').put(var.get('name'), var.get('obj'))
|
|
PyJsHoisted_addToGlobals_.func_name = 'addToGlobals'
|
|
var.put('addToGlobals', PyJsHoisted_addToGlobals_)
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
var.get('require')(Js('babel-polyfill'))
|
|
var.put('module_temp_love_python', var.get('require')(Js('crypto-js')))
|
|
var.get('addToGlobals')(Js('crypto-js'), var.get('module_temp_love_python'))
|
|
PyJs_anonymous_2_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_3_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_4_(PyJsArg_676c6f62616c_, this, arguments, var=var):
|
|
var = Scope({'global':PyJsArg_676c6f62616c_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['global'])
|
|
@Js
|
|
def PyJs_anonymous_5_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['DEFINE_PROPERTY', 'define'])
|
|
@Js
|
|
def PyJsHoisted_define_(O, key, value, this, arguments, var=var):
|
|
var = Scope({'O':O, 'key':key, 'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['O', 'value', 'key'])
|
|
(var.get('O').get(var.get('key')) or var.get('Object').callprop(var.get('DEFINE_PROPERTY'), var.get('O'), var.get('key'), Js({'writable':Js(True),'configurable':Js(True),'value':var.get('value')})))
|
|
PyJsHoisted_define_.func_name = 'define'
|
|
var.put('define', PyJsHoisted_define_)
|
|
Js('use strict')
|
|
var.get('require')(Js('core-js/shim'))
|
|
var.get('require')(Js('regenerator-runtime/runtime'))
|
|
var.get('require')(Js('core-js/fn/regexp/escape'))
|
|
if var.get('global').get('_babelPolyfill'):
|
|
PyJsTempException = JsToPyException(var.get('Error').create(Js('only one instance of babel-polyfill is allowed')))
|
|
raise PyJsTempException
|
|
var.get('global').put('_babelPolyfill', Js(True))
|
|
var.put('DEFINE_PROPERTY', Js('defineProperty'))
|
|
pass
|
|
var.get('define')(var.get('String').get('prototype'), Js('padLeft'), Js('').get('padStart'))
|
|
var.get('define')(var.get('String').get('prototype'), Js('padRight'), Js('').get('padEnd'))
|
|
@Js
|
|
def PyJs_anonymous_6_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['key'])
|
|
(Js([]).get(var.get('key')) and var.get('define')(var.get('Array'), var.get('key'), var.get('Function').get('call').callprop('bind', Js([]).get(var.get('key')))))
|
|
PyJs_anonymous_6_._set_name('anonymous')
|
|
Js('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').callprop('split', Js(',')).callprop('forEach', PyJs_anonymous_6_)
|
|
PyJs_anonymous_5_._set_name('anonymous')
|
|
PyJs_anonymous_5_.callprop('call', var.get(u"this"))
|
|
PyJs_anonymous_4_._set_name('anonymous')
|
|
PyJs_anonymous_4_.callprop('call', var.get(u"this"), (var.get('global') if PyJsStrictNeq(var.get('global',throw=False).typeof(),Js('undefined')) else (var.get('self') if PyJsStrictNeq(var.get('self',throw=False).typeof(),Js('undefined')) else (var.get('window') if PyJsStrictNeq(var.get('window',throw=False).typeof(),Js('undefined')) else Js({})))))
|
|
PyJs_anonymous_3_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_7_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('../../modules/core.regexp.escape'))
|
|
var.get('module').put('exports', var.get('require')(Js('../../modules/_core')).get('RegExp').get('escape'))
|
|
PyJs_anonymous_7_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_8_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_9_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
if (var.get('it',throw=False).typeof()!=Js('function')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('it')+Js(' is not a function!'))))
|
|
raise PyJsTempException
|
|
return var.get('it')
|
|
PyJs_anonymous_9_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_9_)
|
|
PyJs_anonymous_8_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_10_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['cof', 'module', 'require', 'exports'])
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
@Js
|
|
def PyJs_anonymous_11_(it, msg, this, arguments, var=var):
|
|
var = Scope({'it':it, 'msg':msg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'msg'])
|
|
if ((var.get('it',throw=False).typeof()!=Js('number')) and (var.get('cof')(var.get('it'))!=Js('Number'))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(var.get('msg')))
|
|
raise PyJsTempException
|
|
return (+var.get('it'))
|
|
PyJs_anonymous_11_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_11_)
|
|
PyJs_anonymous_10_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_12_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'UNSCOPABLES', 'ArrayProto', 'exports', 'module'])
|
|
var.put('UNSCOPABLES', var.get('require')(Js('./_wks'))(Js('unscopables')))
|
|
var.put('ArrayProto', var.get('Array').get('prototype'))
|
|
if (var.get('ArrayProto').get(var.get('UNSCOPABLES'))==var.get('undefined')):
|
|
var.get('require')(Js('./_hide'))(var.get('ArrayProto'), var.get('UNSCOPABLES'), Js({}))
|
|
@Js
|
|
def PyJs_anonymous_13_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['key'])
|
|
var.get('ArrayProto').get(var.get('UNSCOPABLES')).put(var.get('key'), Js(True))
|
|
PyJs_anonymous_13_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_13_)
|
|
PyJs_anonymous_12_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_14_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'at', 'exports'])
|
|
Js('use strict')
|
|
var.put('at', var.get('require')(Js('./_string-at'))(Js(True)))
|
|
@Js
|
|
def PyJs_anonymous_15_(S, index, unicode, this, arguments, var=var):
|
|
var = Scope({'S':S, 'index':index, 'unicode':unicode, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'unicode', 'S'])
|
|
return (var.get('index')+(var.get('at')(var.get('S'), var.get('index')).get('length') if var.get('unicode') else Js(1.0)))
|
|
PyJs_anonymous_15_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_15_)
|
|
PyJs_anonymous_14_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_16_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_17_(it, Constructor, name, forbiddenField, this, arguments, var=var):
|
|
var = Scope({'it':it, 'Constructor':Constructor, 'name':name, 'forbiddenField':forbiddenField, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'Constructor', 'name', 'forbiddenField'])
|
|
if (var.get('it').instanceof(var.get('Constructor')).neg() or (PyJsStrictNeq(var.get('forbiddenField'),var.get('undefined')) and var.get('it').contains(var.get('forbiddenField')))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('name')+Js(': incorrect invocation!'))))
|
|
raise PyJsTempException
|
|
return var.get('it')
|
|
PyJs_anonymous_17_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_17_)
|
|
PyJs_anonymous_16_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_18_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'isObject', 'module', 'exports'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
@Js
|
|
def PyJs_anonymous_19_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
if var.get('isObject')(var.get('it')).neg():
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('it')+Js(' is not an object!'))))
|
|
raise PyJsTempException
|
|
return var.get('it')
|
|
PyJs_anonymous_19_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_19_)
|
|
PyJs_anonymous_18_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_20_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'toAbsoluteIndex', 'toObject', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
@Js
|
|
def PyJs_copyWithin_21_(target, start, this, arguments, var=var):
|
|
var = Scope({'target':target, 'start':start, 'this':this, 'arguments':arguments, 'copyWithin':PyJs_copyWithin_21_}, var)
|
|
var.registers(['target', 'end', 'start', 'O', 'from', 'to', 'inc', 'count', 'len'])
|
|
var.put('O', var.get('toObject')(var.get(u"this")))
|
|
var.put('len', var.get('toLength')(var.get('O').get('length')))
|
|
var.put('to', var.get('toAbsoluteIndex')(var.get('target'), var.get('len')))
|
|
var.put('from', var.get('toAbsoluteIndex')(var.get('start'), var.get('len')))
|
|
var.put('end', (var.get('arguments').get('2') if (var.get('arguments').get('length')>Js(2.0)) else var.get('undefined')))
|
|
var.put('count', var.get('Math').callprop('min', ((var.get('len') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('toAbsoluteIndex')(var.get('end'), var.get('len')))-var.get('from')), (var.get('len')-var.get('to'))))
|
|
var.put('inc', Js(1.0))
|
|
if ((var.get('from')<var.get('to')) and (var.get('to')<(var.get('from')+var.get('count')))):
|
|
var.put('inc', (-Js(1.0)))
|
|
var.put('from', (var.get('count')-Js(1.0)), '+')
|
|
var.put('to', (var.get('count')-Js(1.0)), '+')
|
|
while ((var.put('count',Js(var.get('count').to_number())-Js(1))+Js(1))>Js(0.0)):
|
|
if var.get('O').contains(var.get('from')):
|
|
var.get('O').put(var.get('to'), var.get('O').get(var.get('from')))
|
|
else:
|
|
var.get('O').delete(var.get('to'))
|
|
var.put('to', var.get('inc'), '+')
|
|
var.put('from', var.get('inc'), '+')
|
|
return var.get('O')
|
|
PyJs_copyWithin_21_._set_name('copyWithin')
|
|
var.get('module').put('exports', (Js([]).get('copyWithin') or PyJs_copyWithin_21_))
|
|
PyJs_anonymous_20_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_22_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'toAbsoluteIndex', 'toObject', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
@Js
|
|
def PyJs_fill_23_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'fill':PyJs_fill_23_}, var)
|
|
var.registers(['length', 'index', 'endPos', 'end', 'O', 'aLen', 'value'])
|
|
var.put('O', var.get('toObject')(var.get(u"this")))
|
|
var.put('length', var.get('toLength')(var.get('O').get('length')))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('index', var.get('toAbsoluteIndex')((var.get('arguments').get('1') if (var.get('aLen')>Js(1.0)) else var.get('undefined')), var.get('length')))
|
|
var.put('end', (var.get('arguments').get('2') if (var.get('aLen')>Js(2.0)) else var.get('undefined')))
|
|
var.put('endPos', (var.get('length') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('toAbsoluteIndex')(var.get('end'), var.get('length'))))
|
|
while (var.get('endPos')>var.get('index')):
|
|
var.get('O').put((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)), var.get('value'))
|
|
return var.get('O')
|
|
PyJs_fill_23_._set_name('fill')
|
|
var.get('module').put('exports', PyJs_fill_23_)
|
|
PyJs_anonymous_22_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_24_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['forOf', 'require', 'module', 'exports'])
|
|
var.put('forOf', var.get('require')(Js('./_for-of')))
|
|
@Js
|
|
def PyJs_anonymous_25_(iter, ITERATOR, this, arguments, var=var):
|
|
var = Scope({'iter':iter, 'ITERATOR':ITERATOR, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iter', 'result', 'ITERATOR'])
|
|
var.put('result', Js([]))
|
|
var.get('forOf')(var.get('iter'), Js(False), var.get('result').get('push'), var.get('result'), var.get('ITERATOR'))
|
|
return var.get('result')
|
|
PyJs_anonymous_25_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_25_)
|
|
PyJs_anonymous_24_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_26_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'toIObject', 'toAbsoluteIndex', 'exports', 'module'])
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index')))
|
|
@Js
|
|
def PyJs_anonymous_27_(IS_INCLUDES, this, arguments, var=var):
|
|
var = Scope({'IS_INCLUDES':IS_INCLUDES, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['IS_INCLUDES'])
|
|
@Js
|
|
def PyJs_anonymous_28_(PyJsArg_2474686973_, el, fromIndex, this, arguments, var=var):
|
|
var = Scope({'$this':PyJsArg_2474686973_, 'el':el, 'fromIndex':fromIndex, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['length', 'index', '$this', 'el', 'O', 'fromIndex', 'value'])
|
|
var.put('O', var.get('toIObject')(var.get('$this')))
|
|
var.put('length', var.get('toLength')(var.get('O').get('length')))
|
|
var.put('index', var.get('toAbsoluteIndex')(var.get('fromIndex'), var.get('length')))
|
|
pass
|
|
if (var.get('IS_INCLUDES') and (var.get('el')!=var.get('el'))):
|
|
while (var.get('length')>var.get('index')):
|
|
var.put('value', var.get('O').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))))
|
|
if (var.get('value')!=var.get('value')):
|
|
return Js(True)
|
|
else:
|
|
#for JS loop
|
|
|
|
while (var.get('length')>var.get('index')):
|
|
try:
|
|
if (var.get('IS_INCLUDES') or var.get('O').contains(var.get('index'))):
|
|
if PyJsStrictEq(var.get('O').get(var.get('index')),var.get('el')):
|
|
return ((var.get('IS_INCLUDES') or var.get('index')) or Js(0.0))
|
|
finally:
|
|
(var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))
|
|
return (var.get('IS_INCLUDES').neg() and (-Js(1.0)))
|
|
PyJs_anonymous_28_._set_name('anonymous')
|
|
return PyJs_anonymous_28_
|
|
PyJs_anonymous_27_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_27_)
|
|
PyJs_anonymous_26_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_29_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'toObject', 'asc', 'exports', 'module', 'IObject', 'ctx'])
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('IObject', var.get('require')(Js('./_iobject')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('asc', var.get('require')(Js('./_array-species-create')))
|
|
@Js
|
|
def PyJs_anonymous_30_(TYPE, PyJsArg_24637265617465_, this, arguments, var=var):
|
|
var = Scope({'TYPE':TYPE, '$create':PyJsArg_24637265617465_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['IS_FIND_INDEX', 'IS_FILTER', 'TYPE', 'IS_MAP', 'NO_HOLES', '$create', 'IS_EVERY', 'create', 'IS_SOME'])
|
|
var.put('IS_MAP', (var.get('TYPE')==Js(1.0)))
|
|
var.put('IS_FILTER', (var.get('TYPE')==Js(2.0)))
|
|
var.put('IS_SOME', (var.get('TYPE')==Js(3.0)))
|
|
var.put('IS_EVERY', (var.get('TYPE')==Js(4.0)))
|
|
var.put('IS_FIND_INDEX', (var.get('TYPE')==Js(6.0)))
|
|
var.put('NO_HOLES', ((var.get('TYPE')==Js(5.0)) or var.get('IS_FIND_INDEX')))
|
|
var.put('create', (var.get('$create') or var.get('asc')))
|
|
@Js
|
|
def PyJs_anonymous_31_(PyJsArg_2474686973_, callbackfn, that, this, arguments, var=var):
|
|
var = Scope({'$this':PyJsArg_2474686973_, 'callbackfn':callbackfn, 'that':that, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['f', 'length', 'index', 'val', '$this', 'that', 'O', 'result', 'callbackfn', 'self', 'res'])
|
|
var.put('O', var.get('toObject')(var.get('$this')))
|
|
var.put('self', var.get('IObject')(var.get('O')))
|
|
var.put('f', var.get('ctx')(var.get('callbackfn'), var.get('that'), Js(3.0)))
|
|
var.put('length', var.get('toLength')(var.get('self').get('length')))
|
|
var.put('index', Js(0.0))
|
|
var.put('result', (var.get('create')(var.get('$this'), var.get('length')) if var.get('IS_MAP') else (var.get('create')(var.get('$this'), Js(0.0)) if var.get('IS_FILTER') else var.get('undefined'))))
|
|
pass
|
|
#for JS loop
|
|
|
|
while (var.get('length')>var.get('index')):
|
|
try:
|
|
if (var.get('NO_HOLES') or var.get('self').contains(var.get('index'))):
|
|
var.put('val', var.get('self').get(var.get('index')))
|
|
var.put('res', var.get('f')(var.get('val'), var.get('index'), var.get('O')))
|
|
if var.get('TYPE'):
|
|
if var.get('IS_MAP'):
|
|
var.get('result').put(var.get('index'), var.get('res'))
|
|
else:
|
|
if var.get('res'):
|
|
while 1:
|
|
SWITCHED = False
|
|
CONDITION = (var.get('TYPE'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(3.0)):
|
|
SWITCHED = True
|
|
return Js(True)
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(5.0)):
|
|
SWITCHED = True
|
|
return var.get('val')
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(6.0)):
|
|
SWITCHED = True
|
|
return var.get('index')
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(2.0)):
|
|
SWITCHED = True
|
|
var.get('result').callprop('push', var.get('val'))
|
|
SWITCHED = True
|
|
break
|
|
else:
|
|
if var.get('IS_EVERY'):
|
|
return Js(False)
|
|
finally:
|
|
(var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))
|
|
return ((-Js(1.0)) if var.get('IS_FIND_INDEX') else (var.get('IS_EVERY') if (var.get('IS_SOME') or var.get('IS_EVERY')) else var.get('result')))
|
|
PyJs_anonymous_31_._set_name('anonymous')
|
|
return PyJs_anonymous_31_
|
|
PyJs_anonymous_30_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_30_)
|
|
PyJs_anonymous_29_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_32_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'toLength', 'toObject', 'exports', 'module', 'IObject'])
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('IObject', var.get('require')(Js('./_iobject')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
@Js
|
|
def PyJs_anonymous_33_(that, callbackfn, aLen, memo, isRight, this, arguments, var=var):
|
|
var = Scope({'that':that, 'callbackfn':callbackfn, 'aLen':aLen, 'memo':memo, 'isRight':isRight, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['length', 'index', 'i', 'that', 'memo', 'isRight', 'O', 'callbackfn', 'self', 'aLen'])
|
|
var.get('aFunction')(var.get('callbackfn'))
|
|
var.put('O', var.get('toObject')(var.get('that')))
|
|
var.put('self', var.get('IObject')(var.get('O')))
|
|
var.put('length', var.get('toLength')(var.get('O').get('length')))
|
|
var.put('index', ((var.get('length')-Js(1.0)) if var.get('isRight') else Js(0.0)))
|
|
var.put('i', ((-Js(1.0)) if var.get('isRight') else Js(1.0)))
|
|
if (var.get('aLen')<Js(2.0)):
|
|
#for JS loop
|
|
|
|
while 1:
|
|
if var.get('self').contains(var.get('index')):
|
|
var.put('memo', var.get('self').get(var.get('index')))
|
|
var.put('index', var.get('i'), '+')
|
|
break
|
|
var.put('index', var.get('i'), '+')
|
|
if ((var.get('index')<Js(0.0)) if var.get('isRight') else (var.get('length')<=var.get('index'))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js('Reduce of empty array with no initial value')))
|
|
raise PyJsTempException
|
|
|
|
#for JS loop
|
|
|
|
while ((var.get('index')>=Js(0.0)) if var.get('isRight') else (var.get('length')>var.get('index'))):
|
|
try:
|
|
if var.get('self').contains(var.get('index')):
|
|
var.put('memo', var.get('callbackfn')(var.get('memo'), var.get('self').get(var.get('index')), var.get('index'), var.get('O')))
|
|
finally:
|
|
var.put('index', var.get('i'), '+')
|
|
return var.get('memo')
|
|
PyJs_anonymous_33_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_33_)
|
|
PyJs_anonymous_32_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_34_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'SPECIES', 'isArray', 'exports', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('isArray', var.get('require')(Js('./_is-array')))
|
|
var.put('SPECIES', var.get('require')(Js('./_wks'))(Js('species')))
|
|
@Js
|
|
def PyJs_anonymous_35_(original, this, arguments, var=var):
|
|
var = Scope({'original':original, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'original'])
|
|
pass
|
|
if var.get('isArray')(var.get('original')):
|
|
var.put('C', var.get('original').get('constructor'))
|
|
if ((var.get('C',throw=False).typeof()==Js('function')) and (PyJsStrictEq(var.get('C'),var.get('Array')) or var.get('isArray')(var.get('C').get('prototype')))):
|
|
var.put('C', var.get('undefined'))
|
|
if var.get('isObject')(var.get('C')):
|
|
var.put('C', var.get('C').get(var.get('SPECIES')))
|
|
if PyJsStrictEq(var.get('C'),var.get(u"null")):
|
|
var.put('C', var.get('undefined'))
|
|
return (var.get('Array') if PyJsStrictEq(var.get('C'),var.get('undefined')) else var.get('C'))
|
|
PyJs_anonymous_35_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_35_)
|
|
PyJs_anonymous_34_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_36_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'speciesConstructor', 'module', 'exports'])
|
|
var.put('speciesConstructor', var.get('require')(Js('./_array-species-constructor')))
|
|
@Js
|
|
def PyJs_anonymous_37_(original, length, this, arguments, var=var):
|
|
var = Scope({'original':original, 'length':length, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['length', 'original'])
|
|
return var.get('speciesConstructor')(var.get('original')).create(var.get('length'))
|
|
PyJs_anonymous_37_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_37_)
|
|
PyJs_anonymous_36_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_38_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'arraySlice', 'invoke', 'construct', 'exports', 'module', 'factories', 'isObject'])
|
|
Js('use strict')
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('invoke', var.get('require')(Js('./_invoke')))
|
|
var.put('arraySlice', Js([]).get('slice'))
|
|
var.put('factories', Js({}))
|
|
@Js
|
|
def PyJs_construct_39_(F, len, args, this, arguments, var=var):
|
|
var = Scope({'F':F, 'len':len, 'args':args, 'this':this, 'arguments':arguments, 'construct':PyJs_construct_39_}, var)
|
|
var.registers(['F', 'n', 'args', 'i', 'len'])
|
|
if var.get('factories').contains(var.get('len')).neg():
|
|
#for JS loop
|
|
var.put('n', Js([]))
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('len')):
|
|
try:
|
|
var.get('n').put(var.get('i'), ((Js('a[')+var.get('i'))+Js(']')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('factories').put(var.get('len'), var.get('Function')(Js('F,a'), ((Js('return new F(')+var.get('n').callprop('join', Js(',')))+Js(')'))))
|
|
return var.get('factories').callprop(var.get('len'), var.get('F'), var.get('args'))
|
|
PyJs_construct_39_._set_name('construct')
|
|
var.put('construct', PyJs_construct_39_)
|
|
@Js
|
|
def PyJs_bind_40_(that, this, arguments, var=var):
|
|
var = Scope({'that':that, 'this':this, 'arguments':arguments, 'bind':PyJs_bind_40_}, var)
|
|
var.registers(['bound', 'fn', 'that', 'partArgs'])
|
|
var.put('fn', var.get('aFunction')(var.get(u"this")))
|
|
var.put('partArgs', var.get('arraySlice').callprop('call', var.get('arguments'), Js(1.0)))
|
|
@Js
|
|
def PyJs_bound_41_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'bound':PyJs_bound_41_}, var)
|
|
var.registers(['args'])
|
|
var.put('args', var.get('partArgs').callprop('concat', var.get('arraySlice').callprop('call', var.get('arguments'))))
|
|
return (var.get('construct')(var.get('fn'), var.get('args').get('length'), var.get('args')) if var.get(u"this").instanceof(var.get('bound')) else var.get('invoke')(var.get('fn'), var.get('args'), var.get('that')))
|
|
PyJs_bound_41_._set_name('bound')
|
|
var.put('bound', PyJs_bound_41_)
|
|
if var.get('isObject')(var.get('fn').get('prototype')):
|
|
var.get('bound').put('prototype', var.get('fn').get('prototype'))
|
|
return var.get('bound')
|
|
PyJs_bind_40_._set_name('bind')
|
|
var.get('module').put('exports', (var.get('Function').get('bind') or PyJs_bind_40_))
|
|
PyJs_anonymous_38_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_42_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'ARG', 'TAG', 'exports', 'cof', 'module', 'tryGet'])
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
var.put('TAG', var.get('require')(Js('./_wks'))(Js('toStringTag')))
|
|
@Js
|
|
def PyJs_anonymous_43_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('arguments')
|
|
PyJs_anonymous_43_._set_name('anonymous')
|
|
var.put('ARG', (var.get('cof')(PyJs_anonymous_43_())==Js('Arguments')))
|
|
@Js
|
|
def PyJs_tryGet_44_(it, key, this, arguments, var=var):
|
|
var = Scope({'it':it, 'key':key, 'this':this, 'arguments':arguments, 'tryGet':PyJs_tryGet_44_}, var)
|
|
var.registers(['it', 'key'])
|
|
try:
|
|
return var.get('it').get(var.get('key'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_23754863 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
pass
|
|
finally:
|
|
if PyJsHolder_65_23754863 is not None:
|
|
var.own['e'] = PyJsHolder_65_23754863
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_23754863
|
|
PyJs_tryGet_44_._set_name('tryGet')
|
|
var.put('tryGet', PyJs_tryGet_44_)
|
|
@Js
|
|
def PyJs_anonymous_45_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'O', 'B', 'T'])
|
|
pass
|
|
def PyJs_LONG_46_(var=var):
|
|
return (Js('Null') if PyJsStrictEq(var.get('it'),var.get(u"null")) else (var.get('T') if (var.put('T', var.get('tryGet')(var.put('O', var.get('Object')(var.get('it'))), var.get('TAG'))).typeof()==Js('string')) else (var.get('cof')(var.get('O')) if var.get('ARG') else (Js('Arguments') if ((var.put('B', var.get('cof')(var.get('O')))==Js('Object')) and (var.get('O').get('callee').typeof()==Js('function'))) else var.get('B')))))
|
|
return (Js('Undefined') if PyJsStrictEq(var.get('it'),var.get('undefined')) else PyJs_LONG_46_())
|
|
PyJs_anonymous_45_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_45_)
|
|
PyJs_anonymous_42_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_47_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'toString'])
|
|
var.put('toString', Js({}).get('toString'))
|
|
@Js
|
|
def PyJs_anonymous_48_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('toString').callprop('call', var.get('it')).callprop('slice', Js(8.0), (-Js(1.0)))
|
|
PyJs_anonymous_48_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_48_)
|
|
PyJs_anonymous_47_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_49_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'redefineAll', 'anInstance', 'DESCRIPTORS', 'SIZE', '$iterDefine', 'getEntry', 'module', 'exports', 'setSpecies', 'step', 'validate', 'create', 'forOf', 'ctx', 'fastKey', 'dP'])
|
|
Js('use strict')
|
|
var.put('dP', var.get('require')(Js('./_object-dp')).get('f'))
|
|
var.put('create', var.get('require')(Js('./_object-create')))
|
|
var.put('redefineAll', var.get('require')(Js('./_redefine-all')))
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('anInstance', var.get('require')(Js('./_an-instance')))
|
|
var.put('forOf', var.get('require')(Js('./_for-of')))
|
|
var.put('$iterDefine', var.get('require')(Js('./_iter-define')))
|
|
var.put('step', var.get('require')(Js('./_iter-step')))
|
|
var.put('setSpecies', var.get('require')(Js('./_set-species')))
|
|
var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors')))
|
|
var.put('fastKey', var.get('require')(Js('./_meta')).get('fastKey'))
|
|
var.put('validate', var.get('require')(Js('./_validate-collection')))
|
|
var.put('SIZE', (Js('_s') if var.get('DESCRIPTORS') else Js('size')))
|
|
@Js
|
|
def PyJs_getEntry_50_(that, key, this, arguments, var=var):
|
|
var = Scope({'that':that, 'key':key, 'this':this, 'arguments':arguments, 'getEntry':PyJs_getEntry_50_}, var)
|
|
var.registers(['index', 'entry', 'that', 'key'])
|
|
var.put('index', var.get('fastKey')(var.get('key')))
|
|
pass
|
|
if PyJsStrictNeq(var.get('index'),Js('F')):
|
|
return var.get('that').get('_i').get(var.get('index'))
|
|
#for JS loop
|
|
var.put('entry', var.get('that').get('_f'))
|
|
while var.get('entry'):
|
|
try:
|
|
if (var.get('entry').get('k')==var.get('key')):
|
|
return var.get('entry')
|
|
finally:
|
|
var.put('entry', var.get('entry').get('n'))
|
|
PyJs_getEntry_50_._set_name('getEntry')
|
|
var.put('getEntry', PyJs_getEntry_50_)
|
|
@Js
|
|
def PyJs_getConstructor_51_(wrapper, NAME, IS_MAP, ADDER, this, arguments, var=var):
|
|
var = Scope({'wrapper':wrapper, 'NAME':NAME, 'IS_MAP':IS_MAP, 'ADDER':ADDER, 'this':this, 'arguments':arguments, 'getConstructor':PyJs_getConstructor_51_}, var)
|
|
var.registers(['C', 'ADDER', 'wrapper', 'NAME', 'IS_MAP'])
|
|
@Js
|
|
def PyJs_anonymous_52_(that, iterable, this, arguments, var=var):
|
|
var = Scope({'that':that, 'iterable':iterable, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iterable', 'that'])
|
|
var.get('anInstance')(var.get('that'), var.get('C'), var.get('NAME'), Js('_i'))
|
|
var.get('that').put('_t', var.get('NAME'))
|
|
var.get('that').put('_i', var.get('create')(var.get(u"null")))
|
|
var.get('that').put('_f', var.get('undefined'))
|
|
var.get('that').put('_l', var.get('undefined'))
|
|
var.get('that').put(var.get('SIZE'), Js(0.0))
|
|
if (var.get('iterable')!=var.get('undefined')):
|
|
var.get('forOf')(var.get('iterable'), var.get('IS_MAP'), var.get('that').get(var.get('ADDER')), var.get('that'))
|
|
PyJs_anonymous_52_._set_name('anonymous')
|
|
var.put('C', var.get('wrapper')(PyJs_anonymous_52_))
|
|
@Js
|
|
def PyJs_clear_53_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clear':PyJs_clear_53_}, var)
|
|
var.registers(['entry', 'that', 'data'])
|
|
#for JS loop
|
|
var.put('that', var.get('validate')(var.get(u"this"), var.get('NAME')))
|
|
var.put('data', var.get('that').get('_i'))
|
|
var.put('entry', var.get('that').get('_f'))
|
|
while var.get('entry'):
|
|
try:
|
|
var.get('entry').put('r', Js(True))
|
|
if var.get('entry').get('p'):
|
|
var.get('entry').put('p', var.get('entry').get('p').put('n', var.get('undefined')))
|
|
var.get('data').delete(var.get('entry').get('i'))
|
|
finally:
|
|
var.put('entry', var.get('entry').get('n'))
|
|
var.get('that').put('_f', var.get('that').put('_l', var.get('undefined')))
|
|
var.get('that').put(var.get('SIZE'), Js(0.0))
|
|
PyJs_clear_53_._set_name('clear')
|
|
@Js
|
|
def PyJs__delete_54_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, '_delete':PyJs__delete_54_}, var)
|
|
var.registers(['next', 'that', 'prev', 'entry', 'key'])
|
|
var.put('that', var.get('validate')(var.get(u"this"), var.get('NAME')))
|
|
var.put('entry', var.get('getEntry')(var.get('that'), var.get('key')))
|
|
if var.get('entry'):
|
|
var.put('next', var.get('entry').get('n'))
|
|
var.put('prev', var.get('entry').get('p'))
|
|
var.get('that').get('_i').delete(var.get('entry').get('i'))
|
|
var.get('entry').put('r', Js(True))
|
|
if var.get('prev'):
|
|
var.get('prev').put('n', var.get('next'))
|
|
if var.get('next'):
|
|
var.get('next').put('p', var.get('prev'))
|
|
if (var.get('that').get('_f')==var.get('entry')):
|
|
var.get('that').put('_f', var.get('next'))
|
|
if (var.get('that').get('_l')==var.get('entry')):
|
|
var.get('that').put('_l', var.get('prev'))
|
|
(var.get('that').put(var.get('SIZE'),Js(var.get('that').get(var.get('SIZE')).to_number())-Js(1))+Js(1))
|
|
return var.get('entry').neg().neg()
|
|
PyJs__delete_54_._set_name('_delete')
|
|
@Js
|
|
def PyJs_forEach_55_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'forEach':PyJs_forEach_55_}, var)
|
|
var.registers(['entry', 'callbackfn', 'f'])
|
|
var.get('validate')(var.get(u"this"), var.get('NAME'))
|
|
var.put('f', var.get('ctx')(var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')), Js(3.0)))
|
|
pass
|
|
while var.put('entry', (var.get('entry').get('n') if var.get('entry') else var.get(u"this").get('_f'))):
|
|
var.get('f')(var.get('entry').get('v'), var.get('entry').get('k'), var.get(u"this"))
|
|
while (var.get('entry') and var.get('entry').get('r')):
|
|
var.put('entry', var.get('entry').get('p'))
|
|
PyJs_forEach_55_._set_name('forEach')
|
|
@Js
|
|
def PyJs_has_56_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'has':PyJs_has_56_}, var)
|
|
var.registers(['key'])
|
|
return var.get('getEntry')(var.get('validate')(var.get(u"this"), var.get('NAME')), var.get('key')).neg().neg()
|
|
PyJs_has_56_._set_name('has')
|
|
var.get('redefineAll')(var.get('C').get('prototype'), Js({'clear':PyJs_clear_53_,'delete':PyJs__delete_54_,'forEach':PyJs_forEach_55_,'has':PyJs_has_56_}))
|
|
if var.get('DESCRIPTORS'):
|
|
@Js
|
|
def PyJs_get_57_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_57_}, var)
|
|
var.registers([])
|
|
return var.get('validate')(var.get(u"this"), var.get('NAME')).get(var.get('SIZE'))
|
|
PyJs_get_57_._set_name('get')
|
|
var.get('dP')(var.get('C').get('prototype'), Js('size'), Js({'get':PyJs_get_57_}))
|
|
return var.get('C')
|
|
PyJs_getConstructor_51_._set_name('getConstructor')
|
|
@Js
|
|
def PyJs_InlineNonPyName_58_(that, key, value, this, arguments, var=var):
|
|
var = Scope({'that':that, 'key':key, 'value':value, 'this':this, 'arguments':arguments, 'def':PyJs_InlineNonPyName_58_}, var)
|
|
var.registers(['index', 'that', 'prev', 'entry', 'value', 'key'])
|
|
var.put('entry', var.get('getEntry')(var.get('that'), var.get('key')))
|
|
pass
|
|
if var.get('entry'):
|
|
var.get('entry').put('v', var.get('value'))
|
|
else:
|
|
var.get('that').put('_l', var.put('entry', Js({'i':var.put('index', var.get('fastKey')(var.get('key'), Js(True))),'k':var.get('key'),'v':var.get('value'),'p':var.put('prev', var.get('that').get('_l')),'n':var.get('undefined'),'r':Js(False)})))
|
|
if var.get('that').get('_f').neg():
|
|
var.get('that').put('_f', var.get('entry'))
|
|
if var.get('prev'):
|
|
var.get('prev').put('n', var.get('entry'))
|
|
(var.get('that').put(var.get('SIZE'),Js(var.get('that').get(var.get('SIZE')).to_number())+Js(1))-Js(1))
|
|
if PyJsStrictNeq(var.get('index'),Js('F')):
|
|
var.get('that').get('_i').put(var.get('index'), var.get('entry'))
|
|
return var.get('that')
|
|
PyJs_InlineNonPyName_58_._set_name('def')
|
|
@Js
|
|
def PyJs_setStrong_59_(C, NAME, IS_MAP, this, arguments, var=var):
|
|
var = Scope({'C':C, 'NAME':NAME, 'IS_MAP':IS_MAP, 'this':this, 'arguments':arguments, 'setStrong':PyJs_setStrong_59_}, var)
|
|
var.registers(['NAME', 'C', 'IS_MAP'])
|
|
@Js
|
|
def PyJs_anonymous_60_(iterated, kind, this, arguments, var=var):
|
|
var = Scope({'iterated':iterated, 'kind':kind, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iterated', 'kind'])
|
|
var.get(u"this").put('_t', var.get('validate')(var.get('iterated'), var.get('NAME')))
|
|
var.get(u"this").put('_k', var.get('kind'))
|
|
var.get(u"this").put('_l', var.get('undefined'))
|
|
PyJs_anonymous_60_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_61_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['entry', 'that', 'kind'])
|
|
var.put('that', var.get(u"this"))
|
|
var.put('kind', var.get('that').get('_k'))
|
|
var.put('entry', var.get('that').get('_l'))
|
|
while (var.get('entry') and var.get('entry').get('r')):
|
|
var.put('entry', var.get('entry').get('p'))
|
|
if (var.get('that').get('_t').neg() or var.get('that').put('_l', var.put('entry', (var.get('entry').get('n') if var.get('entry') else var.get('that').get('_t').get('_f')))).neg()):
|
|
var.get('that').put('_t', var.get('undefined'))
|
|
return var.get('step')(Js(1.0))
|
|
if (var.get('kind')==Js('keys')):
|
|
return var.get('step')(Js(0.0), var.get('entry').get('k'))
|
|
if (var.get('kind')==Js('values')):
|
|
return var.get('step')(Js(0.0), var.get('entry').get('v'))
|
|
return var.get('step')(Js(0.0), Js([var.get('entry').get('k'), var.get('entry').get('v')]))
|
|
PyJs_anonymous_61_._set_name('anonymous')
|
|
var.get('$iterDefine')(var.get('C'), var.get('NAME'), PyJs_anonymous_60_, PyJs_anonymous_61_, (Js('entries') if var.get('IS_MAP') else Js('values')), var.get('IS_MAP').neg(), Js(True))
|
|
var.get('setSpecies')(var.get('NAME'))
|
|
PyJs_setStrong_59_._set_name('setStrong')
|
|
var.get('module').put('exports', Js({'getConstructor':PyJs_getConstructor_51_,'def':PyJs_InlineNonPyName_58_,'getEntry':var.get('getEntry'),'setStrong':PyJs_setStrong_59_}))
|
|
PyJs_anonymous_49_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_62_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'classof', 'exports', 'module', 'from'])
|
|
var.put('classof', var.get('require')(Js('./_classof')))
|
|
var.put('from', var.get('require')(Js('./_array-from-iterable')))
|
|
@Js
|
|
def PyJs_anonymous_63_(NAME, this, arguments, var=var):
|
|
var = Scope({'NAME':NAME, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['NAME'])
|
|
@Js
|
|
def PyJs_toJSON_64_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toJSON':PyJs_toJSON_64_}, var)
|
|
var.registers([])
|
|
if (var.get('classof')(var.get(u"this"))!=var.get('NAME')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('NAME')+Js("#toJSON isn't generic"))))
|
|
raise PyJsTempException
|
|
return var.get('from')(var.get(u"this"))
|
|
PyJs_toJSON_64_._set_name('toJSON')
|
|
return PyJs_toJSON_64_
|
|
PyJs_anonymous_63_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_63_)
|
|
PyJs_anonymous_62_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_65_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['getWeak', 'arrayFindIndex', 'require', 'UncaughtFrozenStore', 'redefineAll', 'anInstance', 'arrayFind', 'uncaughtFrozenStore', 'exports', 'createArrayMethod', 'module', 'id', 'validate', '$has', 'forOf', 'isObject', 'findUncaughtFrozen', 'anObject'])
|
|
Js('use strict')
|
|
var.put('redefineAll', var.get('require')(Js('./_redefine-all')))
|
|
var.put('getWeak', var.get('require')(Js('./_meta')).get('getWeak'))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('anInstance', var.get('require')(Js('./_an-instance')))
|
|
var.put('forOf', var.get('require')(Js('./_for-of')))
|
|
var.put('createArrayMethod', var.get('require')(Js('./_array-methods')))
|
|
var.put('$has', var.get('require')(Js('./_has')))
|
|
var.put('validate', var.get('require')(Js('./_validate-collection')))
|
|
var.put('arrayFind', var.get('createArrayMethod')(Js(5.0)))
|
|
var.put('arrayFindIndex', var.get('createArrayMethod')(Js(6.0)))
|
|
var.put('id', Js(0.0))
|
|
@Js
|
|
def PyJs_uncaughtFrozenStore_66_(that, this, arguments, var=var):
|
|
var = Scope({'that':that, 'this':this, 'arguments':arguments, 'uncaughtFrozenStore':PyJs_uncaughtFrozenStore_66_}, var)
|
|
var.registers(['that'])
|
|
return (var.get('that').get('_l') or var.get('that').put('_l', var.get('UncaughtFrozenStore').create()))
|
|
PyJs_uncaughtFrozenStore_66_._set_name('uncaughtFrozenStore')
|
|
var.put('uncaughtFrozenStore', PyJs_uncaughtFrozenStore_66_)
|
|
@Js
|
|
def PyJs_UncaughtFrozenStore_67_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'UncaughtFrozenStore':PyJs_UncaughtFrozenStore_67_}, var)
|
|
var.registers([])
|
|
var.get(u"this").put('a', Js([]))
|
|
PyJs_UncaughtFrozenStore_67_._set_name('UncaughtFrozenStore')
|
|
var.put('UncaughtFrozenStore', PyJs_UncaughtFrozenStore_67_)
|
|
@Js
|
|
def PyJs_findUncaughtFrozen_68_(store, key, this, arguments, var=var):
|
|
var = Scope({'store':store, 'key':key, 'this':this, 'arguments':arguments, 'findUncaughtFrozen':PyJs_findUncaughtFrozen_68_}, var)
|
|
var.registers(['store', 'key'])
|
|
@Js
|
|
def PyJs_anonymous_69_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return PyJsStrictEq(var.get('it').get('0'),var.get('key'))
|
|
PyJs_anonymous_69_._set_name('anonymous')
|
|
return var.get('arrayFind')(var.get('store').get('a'), PyJs_anonymous_69_)
|
|
PyJs_findUncaughtFrozen_68_._set_name('findUncaughtFrozen')
|
|
var.put('findUncaughtFrozen', PyJs_findUncaughtFrozen_68_)
|
|
@Js
|
|
def PyJs_get_70_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'get':PyJs_get_70_}, var)
|
|
var.registers(['entry', 'key'])
|
|
var.put('entry', var.get('findUncaughtFrozen')(var.get(u"this"), var.get('key')))
|
|
if var.get('entry'):
|
|
return var.get('entry').get('1')
|
|
PyJs_get_70_._set_name('get')
|
|
@Js
|
|
def PyJs_has_71_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'has':PyJs_has_71_}, var)
|
|
var.registers(['key'])
|
|
return var.get('findUncaughtFrozen')(var.get(u"this"), var.get('key')).neg().neg()
|
|
PyJs_has_71_._set_name('has')
|
|
@Js
|
|
def PyJs_set_72_(key, value, this, arguments, var=var):
|
|
var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_72_}, var)
|
|
var.registers(['entry', 'value', 'key'])
|
|
var.put('entry', var.get('findUncaughtFrozen')(var.get(u"this"), var.get('key')))
|
|
if var.get('entry'):
|
|
var.get('entry').put('1', var.get('value'))
|
|
else:
|
|
var.get(u"this").get('a').callprop('push', Js([var.get('key'), var.get('value')]))
|
|
PyJs_set_72_._set_name('set')
|
|
@Js
|
|
def PyJs__delete_73_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, '_delete':PyJs__delete_73_}, var)
|
|
var.registers(['index', 'key'])
|
|
@Js
|
|
def PyJs_anonymous_74_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return PyJsStrictEq(var.get('it').get('0'),var.get('key'))
|
|
PyJs_anonymous_74_._set_name('anonymous')
|
|
var.put('index', var.get('arrayFindIndex')(var.get(u"this").get('a'), PyJs_anonymous_74_))
|
|
if (~var.get('index')):
|
|
var.get(u"this").get('a').callprop('splice', var.get('index'), Js(1.0))
|
|
return (~var.get('index')).neg().neg()
|
|
PyJs__delete_73_._set_name('_delete')
|
|
var.get('UncaughtFrozenStore').put('prototype', Js({'get':PyJs_get_70_,'has':PyJs_has_71_,'set':PyJs_set_72_,'delete':PyJs__delete_73_}))
|
|
@Js
|
|
def PyJs_getConstructor_75_(wrapper, NAME, IS_MAP, ADDER, this, arguments, var=var):
|
|
var = Scope({'wrapper':wrapper, 'NAME':NAME, 'IS_MAP':IS_MAP, 'ADDER':ADDER, 'this':this, 'arguments':arguments, 'getConstructor':PyJs_getConstructor_75_}, var)
|
|
var.registers(['C', 'ADDER', 'wrapper', 'NAME', 'IS_MAP'])
|
|
@Js
|
|
def PyJs_anonymous_76_(that, iterable, this, arguments, var=var):
|
|
var = Scope({'that':that, 'iterable':iterable, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iterable', 'that'])
|
|
var.get('anInstance')(var.get('that'), var.get('C'), var.get('NAME'), Js('_i'))
|
|
var.get('that').put('_t', var.get('NAME'))
|
|
var.get('that').put('_i', (var.put('id',Js(var.get('id').to_number())+Js(1))-Js(1)))
|
|
var.get('that').put('_l', var.get('undefined'))
|
|
if (var.get('iterable')!=var.get('undefined')):
|
|
var.get('forOf')(var.get('iterable'), var.get('IS_MAP'), var.get('that').get(var.get('ADDER')), var.get('that'))
|
|
PyJs_anonymous_76_._set_name('anonymous')
|
|
var.put('C', var.get('wrapper')(PyJs_anonymous_76_))
|
|
@Js
|
|
def PyJs__delete_77_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, '_delete':PyJs__delete_77_}, var)
|
|
var.registers(['data', 'key'])
|
|
if var.get('isObject')(var.get('key')).neg():
|
|
return Js(False)
|
|
var.put('data', var.get('getWeak')(var.get('key')))
|
|
if PyJsStrictEq(var.get('data'),Js(True)):
|
|
return var.get('uncaughtFrozenStore')(var.get('validate')(var.get(u"this"), var.get('NAME'))).callprop('delete', var.get('key'))
|
|
return ((var.get('data') and var.get('$has')(var.get('data'), var.get(u"this").get('_i'))) and var.get('data').delete(var.get(u"this").get('_i')))
|
|
PyJs__delete_77_._set_name('_delete')
|
|
@Js
|
|
def PyJs_has_78_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'has':PyJs_has_78_}, var)
|
|
var.registers(['data', 'key'])
|
|
if var.get('isObject')(var.get('key')).neg():
|
|
return Js(False)
|
|
var.put('data', var.get('getWeak')(var.get('key')))
|
|
if PyJsStrictEq(var.get('data'),Js(True)):
|
|
return var.get('uncaughtFrozenStore')(var.get('validate')(var.get(u"this"), var.get('NAME'))).callprop('has', var.get('key'))
|
|
return (var.get('data') and var.get('$has')(var.get('data'), var.get(u"this").get('_i')))
|
|
PyJs_has_78_._set_name('has')
|
|
var.get('redefineAll')(var.get('C').get('prototype'), Js({'delete':PyJs__delete_77_,'has':PyJs_has_78_}))
|
|
return var.get('C')
|
|
PyJs_getConstructor_75_._set_name('getConstructor')
|
|
@Js
|
|
def PyJs_InlineNonPyName_79_(that, key, value, this, arguments, var=var):
|
|
var = Scope({'that':that, 'key':key, 'value':value, 'this':this, 'arguments':arguments, 'def':PyJs_InlineNonPyName_79_}, var)
|
|
var.registers(['value', 'data', 'key', 'that'])
|
|
var.put('data', var.get('getWeak')(var.get('anObject')(var.get('key')), Js(True)))
|
|
if PyJsStrictEq(var.get('data'),Js(True)):
|
|
var.get('uncaughtFrozenStore')(var.get('that')).callprop('set', var.get('key'), var.get('value'))
|
|
else:
|
|
var.get('data').put(var.get('that').get('_i'), var.get('value'))
|
|
return var.get('that')
|
|
PyJs_InlineNonPyName_79_._set_name('def')
|
|
var.get('module').put('exports', Js({'getConstructor':PyJs_getConstructor_75_,'def':PyJs_InlineNonPyName_79_,'ufstore':var.get('uncaughtFrozenStore')}))
|
|
PyJs_anonymous_65_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_80_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'setToStringTag', 'redefineAll', 'anInstance', 'inheritIfRequired', 'redefine', 'meta', '$export', 'exports', 'module', 'forOf', 'fails', 'global', 'isObject', '$iterDetect'])
|
|
Js('use strict')
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
var.put('redefineAll', var.get('require')(Js('./_redefine-all')))
|
|
var.put('meta', var.get('require')(Js('./_meta')))
|
|
var.put('forOf', var.get('require')(Js('./_for-of')))
|
|
var.put('anInstance', var.get('require')(Js('./_an-instance')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('$iterDetect', var.get('require')(Js('./_iter-detect')))
|
|
var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag')))
|
|
var.put('inheritIfRequired', var.get('require')(Js('./_inherit-if-required')))
|
|
@Js
|
|
def PyJs_anonymous_81_(NAME, wrapper, methods, common, IS_MAP, IS_WEAK, this, arguments, var=var):
|
|
var = Scope({'NAME':NAME, 'wrapper':wrapper, 'methods':methods, 'common':common, 'IS_MAP':IS_MAP, 'IS_WEAK':IS_WEAK, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['ACCEPT_ITERABLES', 'C', 'THROWS_ON_PRIMITIVES', 'fixMethod', 'proto', 'methods', 'IS_WEAK', 'O', 'Base', 'ADDER', 'BUGGY_ZERO', 'wrapper', 'NAME', 'HASNT_CHAINING', 'IS_MAP', 'instance', 'common'])
|
|
var.put('Base', var.get('global').get(var.get('NAME')))
|
|
var.put('C', var.get('Base'))
|
|
var.put('ADDER', (Js('set') if var.get('IS_MAP') else Js('add')))
|
|
var.put('proto', (var.get('C') and var.get('C').get('prototype')))
|
|
var.put('O', Js({}))
|
|
@Js
|
|
def PyJs_fixMethod_82_(KEY, this, arguments, var=var):
|
|
var = Scope({'KEY':KEY, 'this':this, 'arguments':arguments, 'fixMethod':PyJs_fixMethod_82_}, var)
|
|
var.registers(['fn', 'KEY'])
|
|
var.put('fn', var.get('proto').get(var.get('KEY')))
|
|
@Js
|
|
def PyJs_anonymous_83_(a, this, arguments, var=var):
|
|
var = Scope({'a':a, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['a'])
|
|
return (Js(False) if (var.get('IS_WEAK') and var.get('isObject')(var.get('a')).neg()) else var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a'))))
|
|
PyJs_anonymous_83_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_has_84_(a, this, arguments, var=var):
|
|
var = Scope({'a':a, 'this':this, 'arguments':arguments, 'has':PyJs_has_84_}, var)
|
|
var.registers(['a'])
|
|
return (Js(False) if (var.get('IS_WEAK') and var.get('isObject')(var.get('a')).neg()) else var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a'))))
|
|
PyJs_has_84_._set_name('has')
|
|
@Js
|
|
def PyJs_get_85_(a, this, arguments, var=var):
|
|
var = Scope({'a':a, 'this':this, 'arguments':arguments, 'get':PyJs_get_85_}, var)
|
|
var.registers(['a'])
|
|
return (var.get('undefined') if (var.get('IS_WEAK') and var.get('isObject')(var.get('a')).neg()) else var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a'))))
|
|
PyJs_get_85_._set_name('get')
|
|
@Js
|
|
def PyJs_add_86_(a, this, arguments, var=var):
|
|
var = Scope({'a':a, 'this':this, 'arguments':arguments, 'add':PyJs_add_86_}, var)
|
|
var.registers(['a'])
|
|
var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a')))
|
|
return var.get(u"this")
|
|
PyJs_add_86_._set_name('add')
|
|
@Js
|
|
def PyJs_set_87_(a, b, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'this':this, 'arguments':arguments, 'set':PyJs_set_87_}, var)
|
|
var.registers(['a', 'b'])
|
|
var.get('fn').callprop('call', var.get(u"this"), (Js(0.0) if PyJsStrictEq(var.get('a'),Js(0.0)) else var.get('a')), var.get('b'))
|
|
return var.get(u"this")
|
|
PyJs_set_87_._set_name('set')
|
|
var.get('redefine')(var.get('proto'), var.get('KEY'), (PyJs_anonymous_83_ if (var.get('KEY')==Js('delete')) else (PyJs_has_84_ if (var.get('KEY')==Js('has')) else (PyJs_get_85_ if (var.get('KEY')==Js('get')) else (PyJs_add_86_ if (var.get('KEY')==Js('add')) else PyJs_set_87_)))))
|
|
PyJs_fixMethod_82_._set_name('fixMethod')
|
|
var.put('fixMethod', PyJs_fixMethod_82_)
|
|
@Js
|
|
def PyJs_anonymous_88_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('C').create().callprop('entries').callprop('next')
|
|
PyJs_anonymous_88_._set_name('anonymous')
|
|
if ((var.get('C',throw=False).typeof()!=Js('function')) or (var.get('IS_WEAK') or (var.get('proto').get('forEach') and var.get('fails')(PyJs_anonymous_88_).neg())).neg()):
|
|
var.put('C', var.get('common').callprop('getConstructor', var.get('wrapper'), var.get('NAME'), var.get('IS_MAP'), var.get('ADDER')))
|
|
var.get('redefineAll')(var.get('C').get('prototype'), var.get('methods'))
|
|
var.get('meta').put('NEED', Js(True))
|
|
else:
|
|
var.put('instance', var.get('C').create())
|
|
var.put('HASNT_CHAINING', (var.get('instance').callprop(var.get('ADDER'), (Js({}) if var.get('IS_WEAK') else (-Js(0.0))), Js(1.0))!=var.get('instance')))
|
|
@Js
|
|
def PyJs_anonymous_89_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('instance').callprop('has', Js(1.0))
|
|
PyJs_anonymous_89_._set_name('anonymous')
|
|
var.put('THROWS_ON_PRIMITIVES', var.get('fails')(PyJs_anonymous_89_))
|
|
@Js
|
|
def PyJs_anonymous_90_(iter, this, arguments, var=var):
|
|
var = Scope({'iter':iter, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iter'])
|
|
var.get('C').create(var.get('iter'))
|
|
PyJs_anonymous_90_._set_name('anonymous')
|
|
var.put('ACCEPT_ITERABLES', var.get('$iterDetect')(PyJs_anonymous_90_))
|
|
@Js
|
|
def PyJs_anonymous_91_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', '$instance'])
|
|
var.put('$instance', var.get('C').create())
|
|
var.put('index', Js(5.0))
|
|
while (var.put('index',Js(var.get('index').to_number())-Js(1))+Js(1)):
|
|
var.get('$instance').callprop(var.get('ADDER'), var.get('index'), var.get('index'))
|
|
return var.get('$instance').callprop('has', (-Js(0.0))).neg()
|
|
PyJs_anonymous_91_._set_name('anonymous')
|
|
var.put('BUGGY_ZERO', (var.get('IS_WEAK').neg() and var.get('fails')(PyJs_anonymous_91_)))
|
|
if var.get('ACCEPT_ITERABLES').neg():
|
|
@Js
|
|
def PyJs_anonymous_92_(target, iterable, this, arguments, var=var):
|
|
var = Scope({'target':target, 'iterable':iterable, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['target', 'iterable', 'that'])
|
|
var.get('anInstance')(var.get('target'), var.get('C'), var.get('NAME'))
|
|
var.put('that', var.get('inheritIfRequired')(var.get('Base').create(), var.get('target'), var.get('C')))
|
|
if (var.get('iterable')!=var.get('undefined')):
|
|
var.get('forOf')(var.get('iterable'), var.get('IS_MAP'), var.get('that').get(var.get('ADDER')), var.get('that'))
|
|
return var.get('that')
|
|
PyJs_anonymous_92_._set_name('anonymous')
|
|
var.put('C', var.get('wrapper')(PyJs_anonymous_92_))
|
|
var.get('C').put('prototype', var.get('proto'))
|
|
var.get('proto').put('constructor', var.get('C'))
|
|
if (var.get('THROWS_ON_PRIMITIVES') or var.get('BUGGY_ZERO')):
|
|
var.get('fixMethod')(Js('delete'))
|
|
var.get('fixMethod')(Js('has'))
|
|
(var.get('IS_MAP') and var.get('fixMethod')(Js('get')))
|
|
if (var.get('BUGGY_ZERO') or var.get('HASNT_CHAINING')):
|
|
var.get('fixMethod')(var.get('ADDER'))
|
|
if (var.get('IS_WEAK') and var.get('proto').get('clear')):
|
|
var.get('proto').delete('clear')
|
|
var.get('setToStringTag')(var.get('C'), var.get('NAME'))
|
|
var.get('O').put(var.get('NAME'), var.get('C'))
|
|
var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*(var.get('C')!=var.get('Base')))), var.get('O'))
|
|
if var.get('IS_WEAK').neg():
|
|
var.get('common').callprop('setStrong', var.get('C'), var.get('NAME'), var.get('IS_MAP'))
|
|
return var.get('C')
|
|
PyJs_anonymous_81_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_81_)
|
|
PyJs_anonymous_80_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_93_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['core', 'module', 'require', 'exports'])
|
|
var.put('core', var.get('module').put('exports', Js({'version':Js('2.6.12')})))
|
|
if (var.get('__e',throw=False).typeof()==Js('number')):
|
|
var.put('__e', var.get('core'))
|
|
PyJs_anonymous_93_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_94_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$defineProperty', 'exports', 'module', 'createDesc'])
|
|
Js('use strict')
|
|
var.put('$defineProperty', var.get('require')(Js('./_object-dp')))
|
|
var.put('createDesc', var.get('require')(Js('./_property-desc')))
|
|
@Js
|
|
def PyJs_anonymous_95_(object, index, value, this, arguments, var=var):
|
|
var = Scope({'object':object, 'index':index, 'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'value', 'object'])
|
|
if var.get('object').contains(var.get('index')):
|
|
var.get('$defineProperty').callprop('f', var.get('object'), var.get('index'), var.get('createDesc')(Js(0.0), var.get('value')))
|
|
else:
|
|
var.get('object').put(var.get('index'), var.get('value'))
|
|
PyJs_anonymous_95_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_95_)
|
|
PyJs_anonymous_94_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_96_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'module', 'exports'])
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
@Js
|
|
def PyJs_anonymous_97_(fn, that, length, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'that':that, 'length':length, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['length', 'fn', 'that'])
|
|
var.get('aFunction')(var.get('fn'))
|
|
if PyJsStrictEq(var.get('that'),var.get('undefined')):
|
|
return var.get('fn')
|
|
while 1:
|
|
SWITCHED = False
|
|
CONDITION = (var.get('length'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(1.0)):
|
|
SWITCHED = True
|
|
@Js
|
|
def PyJs_anonymous_98_(a, this, arguments, var=var):
|
|
var = Scope({'a':a, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['a'])
|
|
return var.get('fn').callprop('call', var.get('that'), var.get('a'))
|
|
PyJs_anonymous_98_._set_name('anonymous')
|
|
return PyJs_anonymous_98_
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(2.0)):
|
|
SWITCHED = True
|
|
@Js
|
|
def PyJs_anonymous_99_(a, b, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['a', 'b'])
|
|
return var.get('fn').callprop('call', var.get('that'), var.get('a'), var.get('b'))
|
|
PyJs_anonymous_99_._set_name('anonymous')
|
|
return PyJs_anonymous_99_
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(3.0)):
|
|
SWITCHED = True
|
|
@Js
|
|
def PyJs_anonymous_100_(a, b, c, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'c':c, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['c', 'a', 'b'])
|
|
return var.get('fn').callprop('call', var.get('that'), var.get('a'), var.get('b'), var.get('c'))
|
|
PyJs_anonymous_100_._set_name('anonymous')
|
|
return PyJs_anonymous_100_
|
|
SWITCHED = True
|
|
break
|
|
@Js
|
|
def PyJs_anonymous_101_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('fn').callprop('apply', var.get('that'), var.get('arguments'))
|
|
PyJs_anonymous_101_._set_name('anonymous')
|
|
return PyJs_anonymous_101_
|
|
PyJs_anonymous_97_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_97_)
|
|
PyJs_anonymous_96_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_102_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$toISOString', 'exports', 'lz', 'module', 'getTime', 'fails'])
|
|
Js('use strict')
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('getTime', var.get('Date').get('prototype').get('getTime'))
|
|
var.put('$toISOString', var.get('Date').get('prototype').get('toISOString'))
|
|
@Js
|
|
def PyJs_lz_103_(num, this, arguments, var=var):
|
|
var = Scope({'num':num, 'this':this, 'arguments':arguments, 'lz':PyJs_lz_103_}, var)
|
|
var.registers(['num'])
|
|
return (var.get('num') if (var.get('num')>Js(9.0)) else (Js('0')+var.get('num')))
|
|
PyJs_lz_103_._set_name('lz')
|
|
var.put('lz', PyJs_lz_103_)
|
|
@Js
|
|
def PyJs_toISOString_104_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toISOString':PyJs_toISOString_104_}, var)
|
|
var.registers(['s', 'm', 'd', 'y'])
|
|
if var.get('isFinite')(var.get('getTime').callprop('call', var.get(u"this"))).neg():
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(Js('Invalid time value')))
|
|
raise PyJsTempException
|
|
var.put('d', var.get(u"this"))
|
|
var.put('y', var.get('d').callprop('getUTCFullYear'))
|
|
var.put('m', var.get('d').callprop('getUTCMilliseconds'))
|
|
var.put('s', (Js('-') if (var.get('y')<Js(0.0)) else (Js('+') if (var.get('y')>Js(9999.0)) else Js(''))))
|
|
def PyJs_LONG_105_(var=var):
|
|
return (((((((((var.get('s')+(Js('00000')+var.get('Math').callprop('abs', var.get('y'))).callprop('slice', ((-Js(6.0)) if var.get('s') else (-Js(4.0)))))+Js('-'))+var.get('lz')((var.get('d').callprop('getUTCMonth')+Js(1.0))))+Js('-'))+var.get('lz')(var.get('d').callprop('getUTCDate')))+Js('T'))+var.get('lz')(var.get('d').callprop('getUTCHours')))+Js(':'))+var.get('lz')(var.get('d').callprop('getUTCMinutes')))
|
|
return (((((PyJs_LONG_105_()+Js(':'))+var.get('lz')(var.get('d').callprop('getUTCSeconds')))+Js('.'))+(var.get('m') if (var.get('m')>Js(99.0)) else (Js('0')+var.get('lz')(var.get('m')))))+Js('Z'))
|
|
PyJs_toISOString_104_._set_name('toISOString')
|
|
@Js
|
|
def PyJs_anonymous_106_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return (var.get('$toISOString').callprop('call', var.get('Date').create(((-Js(50000000000000.0))-Js(1.0))))!=Js('0385-07-25T07:06:39.999Z'))
|
|
PyJs_anonymous_106_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_107_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('$toISOString').callprop('call', var.get('Date').create(var.get('NaN')))
|
|
PyJs_anonymous_107_._set_name('anonymous')
|
|
var.get('module').put('exports', (PyJs_toISOString_104_ if (var.get('fails')(PyJs_anonymous_106_) or var.get('fails')(PyJs_anonymous_107_).neg()) else var.get('$toISOString')))
|
|
PyJs_anonymous_102_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_108_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toPrimitive', 'NUMBER', 'exports', 'module', 'anObject'])
|
|
Js('use strict')
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('NUMBER', Js('number'))
|
|
@Js
|
|
def PyJs_anonymous_109_(hint, this, arguments, var=var):
|
|
var = Scope({'hint':hint, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['hint'])
|
|
if ((PyJsStrictNeq(var.get('hint'),Js('string')) and PyJsStrictNeq(var.get('hint'),var.get('NUMBER'))) and PyJsStrictNeq(var.get('hint'),Js('default'))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js('Incorrect hint')))
|
|
raise PyJsTempException
|
|
return var.get('toPrimitive')(var.get('anObject')(var.get(u"this")), (var.get('hint')!=var.get('NUMBER')))
|
|
PyJs_anonymous_109_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_109_)
|
|
PyJs_anonymous_108_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_110_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_111_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
if (var.get('it')==var.get('undefined')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((Js("Can't call method on ")+var.get('it'))))
|
|
raise PyJsTempException
|
|
return var.get('it')
|
|
PyJs_anonymous_111_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_111_)
|
|
PyJs_anonymous_110_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_112_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_113_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_get_114_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_114_}, var)
|
|
var.registers([])
|
|
return Js(7.0)
|
|
PyJs_get_114_._set_name('get')
|
|
return (var.get('Object').callprop('defineProperty', Js({}), Js('a'), Js({'get':PyJs_get_114_})).get('a')!=Js(7.0))
|
|
PyJs_anonymous_113_._set_name('anonymous')
|
|
var.get('module').put('exports', var.get('require')(Js('./_fails'))(PyJs_anonymous_113_).neg())
|
|
PyJs_anonymous_112_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_115_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['document', 'require', 'is', 'exports', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('document', var.get('require')(Js('./_global')).get('document'))
|
|
var.put('is', (var.get('isObject')(var.get('document')) and var.get('isObject')(var.get('document').get('createElement'))))
|
|
@Js
|
|
def PyJs_anonymous_116_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return (var.get('document').callprop('createElement', var.get('it')) if var.get('is') else Js({}))
|
|
PyJs_anonymous_116_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_116_)
|
|
PyJs_anonymous_115_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_117_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('module').put('exports', Js('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf').callprop('split', Js(',')))
|
|
PyJs_anonymous_117_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_118_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'getKeys', 'pIE', 'gOPS', 'exports', 'module'])
|
|
var.put('getKeys', var.get('require')(Js('./_object-keys')))
|
|
var.put('gOPS', var.get('require')(Js('./_object-gops')))
|
|
var.put('pIE', var.get('require')(Js('./_object-pie')))
|
|
@Js
|
|
def PyJs_anonymous_119_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'symbols', 'i', 'result', 'getSymbols', 'isEnum', 'key'])
|
|
var.put('result', var.get('getKeys')(var.get('it')))
|
|
var.put('getSymbols', var.get('gOPS').get('f'))
|
|
if var.get('getSymbols'):
|
|
var.put('symbols', var.get('getSymbols')(var.get('it')))
|
|
var.put('isEnum', var.get('pIE').get('f'))
|
|
var.put('i', Js(0.0))
|
|
pass
|
|
while (var.get('symbols').get('length')>var.get('i')):
|
|
if var.get('isEnum').callprop('call', var.get('it'), var.put('key', var.get('symbols').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))):
|
|
var.get('result').callprop('push', var.get('key'))
|
|
return var.get('result')
|
|
PyJs_anonymous_119_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_119_)
|
|
PyJs_anonymous_118_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_120_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['core', 'PROTOTYPE', 'hide', 'require', 'redefine', '$export', 'exports', 'module', 'ctx', 'global'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('core', var.get('require')(Js('./_core')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('PROTOTYPE', Js('prototype'))
|
|
@Js
|
|
def PyJs_InlineNonPyName_121_(type, name, source, this, arguments, var=var):
|
|
var = Scope({'type':type, 'name':name, 'source':source, 'this':this, 'arguments':arguments, '$export':PyJs_InlineNonPyName_121_}, var)
|
|
var.registers(['expProto', 'target', 'IS_BIND', 'IS_STATIC', 'type', 'source', 'exports', 'IS_PROTO', 'out', 'name', 'key', 'IS_FORCED', 'own', 'exp', 'IS_GLOBAL'])
|
|
var.put('IS_FORCED', (var.get('type')&var.get('$export').get('F')))
|
|
var.put('IS_GLOBAL', (var.get('type')&var.get('$export').get('G')))
|
|
var.put('IS_STATIC', (var.get('type')&var.get('$export').get('S')))
|
|
var.put('IS_PROTO', (var.get('type')&var.get('$export').get('P')))
|
|
var.put('IS_BIND', (var.get('type')&var.get('$export').get('B')))
|
|
var.put('target', (var.get('global') if var.get('IS_GLOBAL') else ((var.get('global').get(var.get('name')) or var.get('global').put(var.get('name'), Js({}))) if var.get('IS_STATIC') else (var.get('global').get(var.get('name')) or Js({})).get(var.get('PROTOTYPE')))))
|
|
var.put('exports', (var.get('core') if var.get('IS_GLOBAL') else (var.get('core').get(var.get('name')) or var.get('core').put(var.get('name'), Js({})))))
|
|
var.put('expProto', (var.get('exports').get(var.get('PROTOTYPE')) or var.get('exports').put(var.get('PROTOTYPE'), Js({}))))
|
|
pass
|
|
if var.get('IS_GLOBAL'):
|
|
var.put('source', var.get('name'))
|
|
for PyJsTemp in var.get('source'):
|
|
var.put('key', PyJsTemp)
|
|
var.put('own', ((var.get('IS_FORCED').neg() and var.get('target')) and PyJsStrictNeq(var.get('target').get(var.get('key')),var.get('undefined'))))
|
|
var.put('out', (var.get('target') if var.get('own') else var.get('source')).get(var.get('key')))
|
|
var.put('exp', (var.get('ctx')(var.get('out'), var.get('global')) if (var.get('IS_BIND') and var.get('own')) else (var.get('ctx')(var.get('Function').get('call'), var.get('out')) if (var.get('IS_PROTO') and (var.get('out',throw=False).typeof()==Js('function'))) else var.get('out'))))
|
|
if var.get('target'):
|
|
var.get('redefine')(var.get('target'), var.get('key'), var.get('out'), (var.get('type')&var.get('$export').get('U')))
|
|
if (var.get('exports').get(var.get('key'))!=var.get('out')):
|
|
var.get('hide')(var.get('exports'), var.get('key'), var.get('exp'))
|
|
if (var.get('IS_PROTO') and (var.get('expProto').get(var.get('key'))!=var.get('out'))):
|
|
var.get('expProto').put(var.get('key'), var.get('out'))
|
|
PyJs_InlineNonPyName_121_._set_name('$export')
|
|
var.put('$export', PyJs_InlineNonPyName_121_)
|
|
var.get('global').put('core', var.get('core'))
|
|
var.get('$export').put('F', Js(1.0))
|
|
var.get('$export').put('G', Js(2.0))
|
|
var.get('$export').put('S', Js(4.0))
|
|
var.get('$export').put('P', Js(8.0))
|
|
var.get('$export').put('B', Js(16.0))
|
|
var.get('$export').put('W', Js(32.0))
|
|
var.get('$export').put('U', Js(64.0))
|
|
var.get('$export').put('R', Js(128.0))
|
|
var.get('module').put('exports', var.get('$export'))
|
|
PyJs_anonymous_120_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_122_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'MATCH', 'module', 'exports'])
|
|
var.put('MATCH', var.get('require')(Js('./_wks'))(Js('match')))
|
|
@Js
|
|
def PyJs_anonymous_123_(KEY, this, arguments, var=var):
|
|
var = Scope({'KEY':KEY, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['re', 'KEY'])
|
|
var.put('re', JsRegExp('/./'))
|
|
try:
|
|
Js('/./').callprop(var.get('KEY'), var.get('re'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_39574769 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
try:
|
|
var.get('re').put(var.get('MATCH'), Js(False))
|
|
return Js('/./').callprop(var.get('KEY'), var.get('re')).neg()
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_66_54701817 = var.own.get('f')
|
|
var.force_own_put('f', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
pass
|
|
finally:
|
|
if PyJsHolder_66_54701817 is not None:
|
|
var.own['f'] = PyJsHolder_66_54701817
|
|
else:
|
|
del var.own['f']
|
|
del PyJsHolder_66_54701817
|
|
finally:
|
|
if PyJsHolder_65_39574769 is not None:
|
|
var.own['e'] = PyJsHolder_65_39574769
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_39574769
|
|
return Js(True)
|
|
PyJs_anonymous_123_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_123_)
|
|
PyJs_anonymous_122_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_124_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_125_(exec, this, arguments, var=var):
|
|
var = Scope({'exec':exec, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['exec'])
|
|
try:
|
|
return var.get('exec')().neg().neg()
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_92210443 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return Js(True)
|
|
finally:
|
|
if PyJsHolder_65_92210443 is not None:
|
|
var.own['e'] = PyJsHolder_65_92210443
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_92210443
|
|
PyJs_anonymous_125_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_125_)
|
|
PyJs_anonymous_124_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_126_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'hide', 'wks', 'SPECIES', 'redefine', 'REPLACE_SUPPORTS_NAMED_GROUPS', 'exports', 'module', 'SPLIT_WORKS_WITH_OVERWRITTEN_EXEC', 'fails', 'regexpExec'])
|
|
Js('use strict')
|
|
var.get('require')(Js('./es6.regexp.exec'))
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
var.put('wks', var.get('require')(Js('./_wks')))
|
|
var.put('regexpExec', var.get('require')(Js('./_regexp-exec')))
|
|
var.put('SPECIES', var.get('wks')(Js('species')))
|
|
@Js
|
|
def PyJs_anonymous_127_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['re'])
|
|
var.put('re', JsRegExp('/./'))
|
|
@Js
|
|
def PyJs_anonymous_128_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['result'])
|
|
var.put('result', Js([]))
|
|
var.get('result').put('groups', Js({'a':Js('7')}))
|
|
return var.get('result')
|
|
PyJs_anonymous_128_._set_name('anonymous')
|
|
var.get('re').put('exec', PyJs_anonymous_128_)
|
|
return PyJsStrictNeq(Js('').callprop('replace', var.get('re'), Js('$<a>')),Js('7'))
|
|
PyJs_anonymous_127_._set_name('anonymous')
|
|
var.put('REPLACE_SUPPORTS_NAMED_GROUPS', var.get('fails')(PyJs_anonymous_127_).neg())
|
|
@Js
|
|
def PyJs_anonymous_129_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['re', 'result', 'originalExec'])
|
|
var.put('re', JsRegExp('/(?:)/'))
|
|
var.put('originalExec', var.get('re').get('exec'))
|
|
@Js
|
|
def PyJs_anonymous_130_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('originalExec').callprop('apply', var.get(u"this"), var.get('arguments'))
|
|
PyJs_anonymous_130_._set_name('anonymous')
|
|
var.get('re').put('exec', PyJs_anonymous_130_)
|
|
var.put('result', Js('ab').callprop('split', var.get('re')))
|
|
return ((PyJsStrictEq(var.get('result').get('length'),Js(2.0)) and PyJsStrictEq(var.get('result').get('0'),Js('a'))) and PyJsStrictEq(var.get('result').get('1'),Js('b')))
|
|
PyJs_anonymous_129_._set_name('anonymous')
|
|
var.put('SPLIT_WORKS_WITH_OVERWRITTEN_EXEC', PyJs_anonymous_129_())
|
|
@Js
|
|
def PyJs_anonymous_131_(KEY, length, exec, this, arguments, var=var):
|
|
var = Scope({'KEY':KEY, 'length':length, 'exec':exec, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['SYMBOL', 'KEY', 'fns', 'nativeRegExpMethod', 'strfn', 'length', 'rxfn', 'exec', 'DELEGATES_TO_SYMBOL', 'DELEGATES_TO_EXEC'])
|
|
var.put('SYMBOL', var.get('wks')(var.get('KEY')))
|
|
@Js
|
|
def PyJs_anonymous_132_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['O'])
|
|
var.put('O', Js({}))
|
|
@Js
|
|
def PyJs_anonymous_133_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return Js(7.0)
|
|
PyJs_anonymous_133_._set_name('anonymous')
|
|
var.get('O').put(var.get('SYMBOL'), PyJs_anonymous_133_)
|
|
return (Js('').callprop(var.get('KEY'), var.get('O'))!=Js(7.0))
|
|
PyJs_anonymous_132_._set_name('anonymous')
|
|
var.put('DELEGATES_TO_SYMBOL', var.get('fails')(PyJs_anonymous_132_).neg())
|
|
@Js
|
|
def PyJs_anonymous_134_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['execCalled', 're'])
|
|
var.put('execCalled', Js(False))
|
|
var.put('re', JsRegExp('/a/'))
|
|
@Js
|
|
def PyJs_anonymous_135_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.put('execCalled', Js(True))
|
|
return var.get(u"null")
|
|
PyJs_anonymous_135_._set_name('anonymous')
|
|
var.get('re').put('exec', PyJs_anonymous_135_)
|
|
if PyJsStrictEq(var.get('KEY'),Js('split')):
|
|
var.get('re').put('constructor', Js({}))
|
|
@Js
|
|
def PyJs_anonymous_136_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('re')
|
|
PyJs_anonymous_136_._set_name('anonymous')
|
|
var.get('re').get('constructor').put(var.get('SPECIES'), PyJs_anonymous_136_)
|
|
var.get('re').callprop(var.get('SYMBOL'), Js(''))
|
|
return var.get('execCalled').neg()
|
|
PyJs_anonymous_134_._set_name('anonymous')
|
|
var.put('DELEGATES_TO_EXEC', (var.get('fails')(PyJs_anonymous_134_).neg() if var.get('DELEGATES_TO_SYMBOL') else var.get('undefined')))
|
|
if (((var.get('DELEGATES_TO_SYMBOL').neg() or var.get('DELEGATES_TO_EXEC').neg()) or (PyJsStrictEq(var.get('KEY'),Js('replace')) and var.get('REPLACE_SUPPORTS_NAMED_GROUPS').neg())) or (PyJsStrictEq(var.get('KEY'),Js('split')) and var.get('SPLIT_WORKS_WITH_OVERWRITTEN_EXEC').neg())):
|
|
var.put('nativeRegExpMethod', JsRegExp('/./').get(var.get('SYMBOL')))
|
|
@Js
|
|
def PyJs_maybeCallNative_137_(nativeMethod, regexp, str, arg2, forceStringMethod, this, arguments, var=var):
|
|
var = Scope({'nativeMethod':nativeMethod, 'regexp':regexp, 'str':str, 'arg2':arg2, 'forceStringMethod':forceStringMethod, 'this':this, 'arguments':arguments, 'maybeCallNative':PyJs_maybeCallNative_137_}, var)
|
|
var.registers(['regexp', 'nativeMethod', 'str', 'forceStringMethod', 'arg2'])
|
|
if PyJsStrictEq(var.get('regexp').get('exec'),var.get('regexpExec')):
|
|
if (var.get('DELEGATES_TO_SYMBOL') and var.get('forceStringMethod').neg()):
|
|
return Js({'done':Js(True),'value':var.get('nativeRegExpMethod').callprop('call', var.get('regexp'), var.get('str'), var.get('arg2'))})
|
|
return Js({'done':Js(True),'value':var.get('nativeMethod').callprop('call', var.get('str'), var.get('regexp'), var.get('arg2'))})
|
|
return Js({'done':Js(False)})
|
|
PyJs_maybeCallNative_137_._set_name('maybeCallNative')
|
|
var.put('fns', var.get('exec')(var.get('defined'), var.get('SYMBOL'), Js('').get(var.get('KEY')), PyJs_maybeCallNative_137_))
|
|
var.put('strfn', var.get('fns').get('0'))
|
|
var.put('rxfn', var.get('fns').get('1'))
|
|
var.get('redefine')(var.get('String').get('prototype'), var.get('KEY'), var.get('strfn'))
|
|
@Js
|
|
def PyJs_anonymous_138_(string, arg, this, arguments, var=var):
|
|
var = Scope({'string':string, 'arg':arg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['string', 'arg'])
|
|
return var.get('rxfn').callprop('call', var.get('string'), var.get(u"this"), var.get('arg'))
|
|
PyJs_anonymous_138_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_139_(string, this, arguments, var=var):
|
|
var = Scope({'string':string, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['string'])
|
|
return var.get('rxfn').callprop('call', var.get('string'), var.get(u"this"))
|
|
PyJs_anonymous_139_._set_name('anonymous')
|
|
var.get('hide')(var.get('RegExp').get('prototype'), var.get('SYMBOL'), (PyJs_anonymous_138_ if (var.get('length')==Js(2.0)) else PyJs_anonymous_139_))
|
|
PyJs_anonymous_131_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_131_)
|
|
PyJs_anonymous_126_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_140_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'anObject', 'exports'])
|
|
Js('use strict')
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
@Js
|
|
def PyJs_anonymous_141_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['result', 'that'])
|
|
var.put('that', var.get('anObject')(var.get(u"this")))
|
|
var.put('result', Js(''))
|
|
if var.get('that').get('global'):
|
|
var.put('result', Js('g'), '+')
|
|
if var.get('that').get('ignoreCase'):
|
|
var.put('result', Js('i'), '+')
|
|
if var.get('that').get('multiline'):
|
|
var.put('result', Js('m'), '+')
|
|
if var.get('that').get('unicode'):
|
|
var.put('result', Js('u'), '+')
|
|
if var.get('that').get('sticky'):
|
|
var.put('result', Js('y'), '+')
|
|
return var.get('result')
|
|
PyJs_anonymous_141_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_141_)
|
|
PyJs_anonymous_140_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_142_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'flattenIntoArray', 'IS_CONCAT_SPREADABLE', 'isArray', 'module', 'exports', 'ctx', 'isObject'])
|
|
@Js
|
|
def PyJsHoisted_flattenIntoArray_(target, original, source, sourceLen, start, depth, mapper, thisArg, this, arguments, var=var):
|
|
var = Scope({'target':target, 'original':original, 'source':source, 'sourceLen':sourceLen, 'start':start, 'depth':depth, 'mapper':mapper, 'thisArg':thisArg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['mapFn', 'target', 'depth', 'sourceIndex', 'original', 'source', 'sourceLen', 'start', 'targetIndex', 'spreadable', 'mapper', 'thisArg', 'element'])
|
|
var.put('targetIndex', var.get('start'))
|
|
var.put('sourceIndex', Js(0.0))
|
|
var.put('mapFn', (var.get('ctx')(var.get('mapper'), var.get('thisArg'), Js(3.0)) if var.get('mapper') else Js(False)))
|
|
pass
|
|
while (var.get('sourceIndex')<var.get('sourceLen')):
|
|
if var.get('source').contains(var.get('sourceIndex')):
|
|
var.put('element', (var.get('mapFn')(var.get('source').get(var.get('sourceIndex')), var.get('sourceIndex'), var.get('original')) if var.get('mapFn') else var.get('source').get(var.get('sourceIndex'))))
|
|
var.put('spreadable', Js(False))
|
|
if var.get('isObject')(var.get('element')):
|
|
var.put('spreadable', var.get('element').get(var.get('IS_CONCAT_SPREADABLE')))
|
|
var.put('spreadable', (var.get('spreadable').neg().neg() if PyJsStrictNeq(var.get('spreadable'),var.get('undefined')) else var.get('isArray')(var.get('element'))))
|
|
if (var.get('spreadable') and (var.get('depth')>Js(0.0))):
|
|
var.put('targetIndex', (var.get('flattenIntoArray')(var.get('target'), var.get('original'), var.get('element'), var.get('toLength')(var.get('element').get('length')), var.get('targetIndex'), (var.get('depth')-Js(1.0)))-Js(1.0)))
|
|
else:
|
|
if (var.get('targetIndex')>=Js(9007199254740991)):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')())
|
|
raise PyJsTempException
|
|
var.get('target').put(var.get('targetIndex'), var.get('element'))
|
|
(var.put('targetIndex',Js(var.get('targetIndex').to_number())+Js(1))-Js(1))
|
|
(var.put('sourceIndex',Js(var.get('sourceIndex').to_number())+Js(1))-Js(1))
|
|
return var.get('targetIndex')
|
|
PyJsHoisted_flattenIntoArray_.func_name = 'flattenIntoArray'
|
|
var.put('flattenIntoArray', PyJsHoisted_flattenIntoArray_)
|
|
Js('use strict')
|
|
var.put('isArray', var.get('require')(Js('./_is-array')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('IS_CONCAT_SPREADABLE', var.get('require')(Js('./_wks'))(Js('isConcatSpreadable')))
|
|
pass
|
|
var.get('module').put('exports', var.get('flattenIntoArray'))
|
|
PyJs_anonymous_142_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_143_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'getIterFn', 'BREAK', 'toLength', 'isArrayIter', 'call', 'exports', 'module', 'ctx', 'RETURN', 'anObject'])
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('call', var.get('require')(Js('./_iter-call')))
|
|
var.put('isArrayIter', var.get('require')(Js('./_is-array-iter')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('getIterFn', var.get('require')(Js('./core.get-iterator-method')))
|
|
var.put('BREAK', Js({}))
|
|
var.put('RETURN', Js({}))
|
|
@Js
|
|
def PyJs_anonymous_144_(iterable, entries, fn, that, ITERATOR, this, arguments, var=var):
|
|
var = Scope({'iterable':iterable, 'entries':entries, 'fn':fn, 'that':that, 'ITERATOR':ITERATOR, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['f', 'iterator', 'index', 'length', 'ITERATOR', 'fn', 'that', 'result', 'step', 'iterFn', 'iterable', 'entries'])
|
|
@Js
|
|
def PyJs_anonymous_145_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('iterable')
|
|
PyJs_anonymous_145_._set_name('anonymous')
|
|
var.put('iterFn', (PyJs_anonymous_145_ if var.get('ITERATOR') else var.get('getIterFn')(var.get('iterable'))))
|
|
var.put('f', var.get('ctx')(var.get('fn'), var.get('that'), (Js(2.0) if var.get('entries') else Js(1.0))))
|
|
var.put('index', Js(0.0))
|
|
pass
|
|
if (var.get('iterFn',throw=False).typeof()!=Js('function')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('iterable')+Js(' is not iterable!'))))
|
|
raise PyJsTempException
|
|
if var.get('isArrayIter')(var.get('iterFn')):
|
|
#for JS loop
|
|
var.put('length', var.get('toLength')(var.get('iterable').get('length')))
|
|
while (var.get('length')>var.get('index')):
|
|
try:
|
|
var.put('result', (var.get('f')(var.get('anObject')(var.put('step', var.get('iterable').get(var.get('index')))).get('0'), var.get('step').get('1')) if var.get('entries') else var.get('f')(var.get('iterable').get(var.get('index')))))
|
|
if (PyJsStrictEq(var.get('result'),var.get('BREAK')) or PyJsStrictEq(var.get('result'),var.get('RETURN'))):
|
|
return var.get('result')
|
|
finally:
|
|
(var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))
|
|
else:
|
|
#for JS loop
|
|
var.put('iterator', var.get('iterFn').callprop('call', var.get('iterable')))
|
|
while var.put('step', var.get('iterator').callprop('next')).get('done').neg():
|
|
var.put('result', var.get('call')(var.get('iterator'), var.get('f'), var.get('step').get('value'), var.get('entries')))
|
|
if (PyJsStrictEq(var.get('result'),var.get('BREAK')) or PyJsStrictEq(var.get('result'),var.get('RETURN'))):
|
|
return var.get('result')
|
|
|
|
PyJs_anonymous_144_._set_name('anonymous')
|
|
var.put('exports', var.get('module').put('exports', PyJs_anonymous_144_))
|
|
var.get('exports').put('BREAK', var.get('BREAK'))
|
|
var.get('exports').put('RETURN', var.get('RETURN'))
|
|
PyJs_anonymous_143_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_146_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('module').put('exports', var.get('require')(Js('./_shared'))(Js('native-function-to-string'), var.get('Function').get('toString')))
|
|
PyJs_anonymous_146_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_147_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'global', 'module', 'exports'])
|
|
var.put('global', var.get('module').put('exports', (var.get('window') if ((var.get('window',throw=False).typeof()!=Js('undefined')) and (var.get('window').get('Math')==var.get('Math'))) else (var.get('self') if ((var.get('self',throw=False).typeof()!=Js('undefined')) and (var.get('self').get('Math')==var.get('Math'))) else var.get('Function')(Js('return this'))()))))
|
|
if (var.get('__g',throw=False).typeof()==Js('number')):
|
|
var.put('__g', var.get('global'))
|
|
PyJs_anonymous_147_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_148_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['hasOwnProperty', 'require', 'module', 'exports'])
|
|
var.put('hasOwnProperty', Js({}).get('hasOwnProperty'))
|
|
@Js
|
|
def PyJs_anonymous_149_(it, key, this, arguments, var=var):
|
|
var = Scope({'it':it, 'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'key'])
|
|
return var.get('hasOwnProperty').callprop('call', var.get('it'), var.get('key'))
|
|
PyJs_anonymous_149_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_149_)
|
|
PyJs_anonymous_148_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_150_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'createDesc', 'dP'])
|
|
var.put('dP', var.get('require')(Js('./_object-dp')))
|
|
var.put('createDesc', var.get('require')(Js('./_property-desc')))
|
|
@Js
|
|
def PyJs_anonymous_151_(object, key, value, this, arguments, var=var):
|
|
var = Scope({'object':object, 'key':key, 'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['value', 'object', 'key'])
|
|
return var.get('dP').callprop('f', var.get('object'), var.get('key'), var.get('createDesc')(Js(1.0), var.get('value')))
|
|
PyJs_anonymous_151_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_152_(object, key, value, this, arguments, var=var):
|
|
var = Scope({'object':object, 'key':key, 'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['value', 'object', 'key'])
|
|
var.get('object').put(var.get('key'), var.get('value'))
|
|
return var.get('object')
|
|
PyJs_anonymous_152_._set_name('anonymous')
|
|
var.get('module').put('exports', (PyJs_anonymous_151_ if var.get('require')(Js('./_descriptors')) else PyJs_anonymous_152_))
|
|
PyJs_anonymous_150_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_153_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['document', 'module', 'require', 'exports'])
|
|
var.put('document', var.get('require')(Js('./_global')).get('document'))
|
|
var.get('module').put('exports', (var.get('document') and var.get('document').get('documentElement')))
|
|
PyJs_anonymous_153_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_154_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_155_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_get_156_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_156_}, var)
|
|
var.registers([])
|
|
return Js(7.0)
|
|
PyJs_get_156_._set_name('get')
|
|
return (var.get('Object').callprop('defineProperty', var.get('require')(Js('./_dom-create'))(Js('div')), Js('a'), Js({'get':PyJs_get_156_})).get('a')!=Js(7.0))
|
|
PyJs_anonymous_155_._set_name('anonymous')
|
|
var.get('module').put('exports', (var.get('require')(Js('./_descriptors')).neg() and var.get('require')(Js('./_fails'))(PyJs_anonymous_155_).neg()))
|
|
PyJs_anonymous_154_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_157_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'setPrototypeOf', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('setPrototypeOf', var.get('require')(Js('./_set-proto')).get('set'))
|
|
@Js
|
|
def PyJs_anonymous_158_(that, target, C, this, arguments, var=var):
|
|
var = Scope({'that':that, 'target':target, 'C':C, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['target', 'C', 'that', 'S', 'P'])
|
|
var.put('S', var.get('target').get('constructor'))
|
|
pass
|
|
if ((((PyJsStrictNeq(var.get('S'),var.get('C')) and (var.get('S',throw=False).typeof()==Js('function'))) and PyJsStrictNeq(var.put('P', var.get('S').get('prototype')),var.get('C').get('prototype'))) and var.get('isObject')(var.get('P'))) and var.get('setPrototypeOf')):
|
|
var.get('setPrototypeOf')(var.get('that'), var.get('P'))
|
|
return var.get('that')
|
|
PyJs_anonymous_158_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_158_)
|
|
PyJs_anonymous_157_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_159_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_160_(fn, args, that, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'args':args, 'that':that, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['fn', 'that', 'args', 'un'])
|
|
var.put('un', PyJsStrictEq(var.get('that'),var.get('undefined')))
|
|
while 1:
|
|
SWITCHED = False
|
|
CONDITION = (var.get('args').get('length'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(0.0)):
|
|
SWITCHED = True
|
|
return (var.get('fn')() if var.get('un') else var.get('fn').callprop('call', var.get('that')))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(1.0)):
|
|
SWITCHED = True
|
|
return (var.get('fn')(var.get('args').get('0')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0')))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(2.0)):
|
|
SWITCHED = True
|
|
return (var.get('fn')(var.get('args').get('0'), var.get('args').get('1')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0'), var.get('args').get('1')))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(3.0)):
|
|
SWITCHED = True
|
|
return (var.get('fn')(var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2')))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(4.0)):
|
|
SWITCHED = True
|
|
return (var.get('fn')(var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2'), var.get('args').get('3')) if var.get('un') else var.get('fn').callprop('call', var.get('that'), var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2'), var.get('args').get('3')))
|
|
SWITCHED = True
|
|
break
|
|
return var.get('fn').callprop('apply', var.get('that'), var.get('args'))
|
|
PyJs_anonymous_160_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_160_)
|
|
PyJs_anonymous_159_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_161_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['cof', 'module', 'require', 'exports'])
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
@Js
|
|
def PyJs_anonymous_162_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return (var.get('it').callprop('split', Js('')) if (var.get('cof')(var.get('it'))==Js('String')) else var.get('Object')(var.get('it')))
|
|
PyJs_anonymous_162_._set_name('anonymous')
|
|
var.get('module').put('exports', (var.get('Object') if var.get('Object')(Js('z')).callprop('propertyIsEnumerable', Js(0.0)) else PyJs_anonymous_162_))
|
|
PyJs_anonymous_161_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_163_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'ArrayProto', 'ITERATOR', 'exports', 'module', 'Iterators'])
|
|
var.put('Iterators', var.get('require')(Js('./_iterators')))
|
|
var.put('ITERATOR', var.get('require')(Js('./_wks'))(Js('iterator')))
|
|
var.put('ArrayProto', var.get('Array').get('prototype'))
|
|
@Js
|
|
def PyJs_anonymous_164_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return (PyJsStrictNeq(var.get('it'),var.get('undefined')) and (PyJsStrictEq(var.get('Iterators').get('Array'),var.get('it')) or PyJsStrictEq(var.get('ArrayProto').get(var.get('ITERATOR')),var.get('it'))))
|
|
PyJs_anonymous_164_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_164_)
|
|
PyJs_anonymous_163_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_165_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['cof', 'module', 'require', 'exports'])
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
@Js
|
|
def PyJs_isArray_166_(arg, this, arguments, var=var):
|
|
var = Scope({'arg':arg, 'this':this, 'arguments':arguments, 'isArray':PyJs_isArray_166_}, var)
|
|
var.registers(['arg'])
|
|
return (var.get('cof')(var.get('arg'))==Js('Array'))
|
|
PyJs_isArray_166_._set_name('isArray')
|
|
var.get('module').put('exports', (var.get('Array').get('isArray') or PyJs_isArray_166_))
|
|
PyJs_anonymous_165_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_167_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'floor', 'exports', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('floor', var.get('Math').get('floor'))
|
|
@Js
|
|
def PyJs_isInteger_168_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isInteger':PyJs_isInteger_168_}, var)
|
|
var.registers(['it'])
|
|
return ((var.get('isObject')(var.get('it')).neg() and var.get('isFinite')(var.get('it'))) and PyJsStrictEq(var.get('floor')(var.get('it')),var.get('it')))
|
|
PyJs_isInteger_168_._set_name('isInteger')
|
|
var.get('module').put('exports', PyJs_isInteger_168_)
|
|
PyJs_anonymous_167_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_169_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_170_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return (PyJsStrictNeq(var.get('it'),var.get(u"null")) if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('it',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('it'))),Js('object')) else PyJsStrictEq(var.get('it',throw=False).typeof(),Js('function')))
|
|
PyJs_anonymous_170_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_170_)
|
|
PyJs_anonymous_169_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_171_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'MATCH', 'exports', 'cof', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
var.put('MATCH', var.get('require')(Js('./_wks'))(Js('match')))
|
|
@Js
|
|
def PyJs_anonymous_172_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'isRegExp'])
|
|
pass
|
|
return (var.get('isObject')(var.get('it')) and (var.get('isRegExp').neg().neg() if PyJsStrictNeq(var.put('isRegExp', var.get('it').get(var.get('MATCH'))),var.get('undefined')) else (var.get('cof')(var.get('it'))==Js('RegExp'))))
|
|
PyJs_anonymous_172_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_172_)
|
|
PyJs_anonymous_171_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_173_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'anObject', 'exports'])
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
@Js
|
|
def PyJs_anonymous_174_(iterator, fn, value, entries, this, arguments, var=var):
|
|
var = Scope({'iterator':iterator, 'fn':fn, 'value':value, 'entries':entries, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iterator', 'fn', 'value', 'ret', 'entries'])
|
|
try:
|
|
return (var.get('fn')(var.get('anObject')(var.get('value')).get('0'), var.get('value').get('1')) if var.get('entries') else var.get('fn')(var.get('value')))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_72948994 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
var.put('ret', var.get('iterator').get('return'))
|
|
if PyJsStrictNeq(var.get('ret'),var.get('undefined')):
|
|
var.get('anObject')(var.get('ret').callprop('call', var.get('iterator')))
|
|
PyJsTempException = JsToPyException(var.get('e'))
|
|
raise PyJsTempException
|
|
finally:
|
|
if PyJsHolder_65_72948994 is not None:
|
|
var.own['e'] = PyJsHolder_65_72948994
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_72948994
|
|
PyJs_anonymous_174_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_174_)
|
|
PyJs_anonymous_173_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_175_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'setToStringTag', 'IteratorPrototype', 'exports', 'module', 'create', 'descriptor'])
|
|
Js('use strict')
|
|
var.put('create', var.get('require')(Js('./_object-create')))
|
|
var.put('descriptor', var.get('require')(Js('./_property-desc')))
|
|
var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag')))
|
|
var.put('IteratorPrototype', Js({}))
|
|
@Js
|
|
def PyJs_anonymous_176_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get(u"this")
|
|
PyJs_anonymous_176_._set_name('anonymous')
|
|
var.get('require')(Js('./_hide'))(var.get('IteratorPrototype'), var.get('require')(Js('./_wks'))(Js('iterator')), PyJs_anonymous_176_)
|
|
@Js
|
|
def PyJs_anonymous_177_(Constructor, NAME, next, this, arguments, var=var):
|
|
var = Scope({'Constructor':Constructor, 'NAME':NAME, 'next':next, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['NAME', 'Constructor', 'next'])
|
|
var.get('Constructor').put('prototype', var.get('create')(var.get('IteratorPrototype'), Js({'next':var.get('descriptor')(Js(1.0), var.get('next'))})))
|
|
var.get('setToStringTag')(var.get('Constructor'), (var.get('NAME')+Js(' Iterator')))
|
|
PyJs_anonymous_177_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_177_)
|
|
PyJs_anonymous_175_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_178_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'setToStringTag', 'hide', 'ITERATOR', '$iterCreate', 'redefine', 'LIBRARY', '$export', 'exports', 'module', 'FF_ITERATOR', 'returnThis', 'getPrototypeOf', 'KEYS', 'Iterators', 'BUGGY', 'VALUES'])
|
|
Js('use strict')
|
|
var.put('LIBRARY', var.get('require')(Js('./_library')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('Iterators', var.get('require')(Js('./_iterators')))
|
|
var.put('$iterCreate', var.get('require')(Js('./_iter-create')))
|
|
var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('ITERATOR', var.get('require')(Js('./_wks'))(Js('iterator')))
|
|
var.put('BUGGY', (Js([]).get('keys') and Js([]).callprop('keys').contains(Js('next'))).neg())
|
|
var.put('FF_ITERATOR', Js('@@iterator'))
|
|
var.put('KEYS', Js('keys'))
|
|
var.put('VALUES', Js('values'))
|
|
@Js
|
|
def PyJs_returnThis_179_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'returnThis':PyJs_returnThis_179_}, var)
|
|
var.registers([])
|
|
return var.get(u"this")
|
|
PyJs_returnThis_179_._set_name('returnThis')
|
|
var.put('returnThis', PyJs_returnThis_179_)
|
|
@Js
|
|
def PyJs_anonymous_180_(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED, this, arguments, var=var):
|
|
var = Scope({'Base':Base, 'NAME':NAME, 'Constructor':Constructor, 'next':next, 'DEFAULT':DEFAULT, 'IS_SET':IS_SET, 'FORCED':FORCED, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['proto', 'methods', 'TAG', 'Base', 'DEFAULT', 'IS_SET', 'key', '$anyNative', 'getMethod', 'FORCED', '$default', 'IteratorPrototype', 'next', 'Constructor', 'NAME', '$native', '$entries', 'DEF_VALUES', 'VALUES_BUG'])
|
|
var.get('$iterCreate')(var.get('Constructor'), var.get('NAME'), var.get('next'))
|
|
@Js
|
|
def PyJs_getMethod_181_(kind, this, arguments, var=var):
|
|
var = Scope({'kind':kind, 'this':this, 'arguments':arguments, 'getMethod':PyJs_getMethod_181_}, var)
|
|
var.registers(['kind'])
|
|
if (var.get('BUGGY').neg() and var.get('proto').contains(var.get('kind'))):
|
|
return var.get('proto').get(var.get('kind'))
|
|
while 1:
|
|
SWITCHED = False
|
|
CONDITION = (var.get('kind'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, var.get('KEYS')):
|
|
SWITCHED = True
|
|
@Js
|
|
def PyJs_keys_182_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'keys':PyJs_keys_182_}, var)
|
|
var.registers([])
|
|
return var.get('Constructor').create(var.get(u"this"), var.get('kind'))
|
|
PyJs_keys_182_._set_name('keys')
|
|
return PyJs_keys_182_
|
|
if SWITCHED or PyJsStrictEq(CONDITION, var.get('VALUES')):
|
|
SWITCHED = True
|
|
@Js
|
|
def PyJs_values_183_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'values':PyJs_values_183_}, var)
|
|
var.registers([])
|
|
return var.get('Constructor').create(var.get(u"this"), var.get('kind'))
|
|
PyJs_values_183_._set_name('values')
|
|
return PyJs_values_183_
|
|
SWITCHED = True
|
|
break
|
|
@Js
|
|
def PyJs_entries_184_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'entries':PyJs_entries_184_}, var)
|
|
var.registers([])
|
|
return var.get('Constructor').create(var.get(u"this"), var.get('kind'))
|
|
PyJs_entries_184_._set_name('entries')
|
|
return PyJs_entries_184_
|
|
PyJs_getMethod_181_._set_name('getMethod')
|
|
var.put('getMethod', PyJs_getMethod_181_)
|
|
var.put('TAG', (var.get('NAME')+Js(' Iterator')))
|
|
var.put('DEF_VALUES', (var.get('DEFAULT')==var.get('VALUES')))
|
|
var.put('VALUES_BUG', Js(False))
|
|
var.put('proto', var.get('Base').get('prototype'))
|
|
var.put('$native', ((var.get('proto').get(var.get('ITERATOR')) or var.get('proto').get(var.get('FF_ITERATOR'))) or (var.get('DEFAULT') and var.get('proto').get(var.get('DEFAULT')))))
|
|
var.put('$default', (var.get('$native') or var.get('getMethod')(var.get('DEFAULT'))))
|
|
var.put('$entries', ((var.get('$default') if var.get('DEF_VALUES').neg() else var.get('getMethod')(Js('entries'))) if var.get('DEFAULT') else var.get('undefined')))
|
|
var.put('$anyNative', ((var.get('proto').get('entries') or var.get('$native')) if (var.get('NAME')==Js('Array')) else var.get('$native')))
|
|
pass
|
|
if var.get('$anyNative'):
|
|
var.put('IteratorPrototype', var.get('getPrototypeOf')(var.get('$anyNative').callprop('call', var.get('Base').create())))
|
|
if (PyJsStrictNeq(var.get('IteratorPrototype'),var.get('Object').get('prototype')) and var.get('IteratorPrototype').get('next')):
|
|
var.get('setToStringTag')(var.get('IteratorPrototype'), var.get('TAG'), Js(True))
|
|
if (var.get('LIBRARY').neg() and (var.get('IteratorPrototype').get(var.get('ITERATOR')).typeof()!=Js('function'))):
|
|
var.get('hide')(var.get('IteratorPrototype'), var.get('ITERATOR'), var.get('returnThis'))
|
|
if ((var.get('DEF_VALUES') and var.get('$native')) and PyJsStrictNeq(var.get('$native').get('name'),var.get('VALUES'))):
|
|
var.put('VALUES_BUG', Js(True))
|
|
@Js
|
|
def PyJs_values_185_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'values':PyJs_values_185_}, var)
|
|
var.registers([])
|
|
return var.get('$native').callprop('call', var.get(u"this"))
|
|
PyJs_values_185_._set_name('values')
|
|
var.put('$default', PyJs_values_185_)
|
|
if ((var.get('LIBRARY').neg() or var.get('FORCED')) and ((var.get('BUGGY') or var.get('VALUES_BUG')) or var.get('proto').get(var.get('ITERATOR')).neg())):
|
|
var.get('hide')(var.get('proto'), var.get('ITERATOR'), var.get('$default'))
|
|
var.get('Iterators').put(var.get('NAME'), var.get('$default'))
|
|
var.get('Iterators').put(var.get('TAG'), var.get('returnThis'))
|
|
if var.get('DEFAULT'):
|
|
var.put('methods', Js({'values':(var.get('$default') if var.get('DEF_VALUES') else var.get('getMethod')(var.get('VALUES'))),'keys':(var.get('$default') if var.get('IS_SET') else var.get('getMethod')(var.get('KEYS'))),'entries':var.get('$entries')}))
|
|
if var.get('FORCED'):
|
|
for PyJsTemp in var.get('methods'):
|
|
var.put('key', PyJsTemp)
|
|
if var.get('proto').contains(var.get('key')).neg():
|
|
var.get('redefine')(var.get('proto'), var.get('key'), var.get('methods').get(var.get('key')))
|
|
else:
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('BUGGY') or var.get('VALUES_BUG')))), var.get('NAME'), var.get('methods'))
|
|
return var.get('methods')
|
|
PyJs_anonymous_180_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_180_)
|
|
PyJs_anonymous_178_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_186_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'riter', 'ITERATOR', 'exports', 'module', 'SAFE_CLOSING'])
|
|
var.put('ITERATOR', var.get('require')(Js('./_wks'))(Js('iterator')))
|
|
var.put('SAFE_CLOSING', Js(False))
|
|
try:
|
|
var.put('riter', Js([Js(7.0)]).callprop(var.get('ITERATOR')))
|
|
@Js
|
|
def PyJs_anonymous_187_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.put('SAFE_CLOSING', Js(True))
|
|
PyJs_anonymous_187_._set_name('anonymous')
|
|
var.get('riter').put('return', PyJs_anonymous_187_)
|
|
@Js
|
|
def PyJs_anonymous_188_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
PyJsTempException = JsToPyException(Js(2.0))
|
|
raise PyJsTempException
|
|
PyJs_anonymous_188_._set_name('anonymous')
|
|
var.get('Array').callprop('from', var.get('riter'), PyJs_anonymous_188_)
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_84662025 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
pass
|
|
finally:
|
|
if PyJsHolder_65_84662025 is not None:
|
|
var.own['e'] = PyJsHolder_65_84662025
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_84662025
|
|
@Js
|
|
def PyJs_anonymous_189_(exec, skipClosing, this, arguments, var=var):
|
|
var = Scope({'exec':exec, 'skipClosing':skipClosing, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iter', 'safe', 'arr', 'exec', 'skipClosing'])
|
|
if (var.get('skipClosing').neg() and var.get('SAFE_CLOSING').neg()):
|
|
return Js(False)
|
|
var.put('safe', Js(False))
|
|
try:
|
|
var.put('arr', Js([Js(7.0)]))
|
|
var.put('iter', var.get('arr').callprop(var.get('ITERATOR')))
|
|
@Js
|
|
def PyJs_anonymous_190_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return Js({'done':var.put('safe', Js(True))})
|
|
PyJs_anonymous_190_._set_name('anonymous')
|
|
var.get('iter').put('next', PyJs_anonymous_190_)
|
|
@Js
|
|
def PyJs_anonymous_191_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('iter')
|
|
PyJs_anonymous_191_._set_name('anonymous')
|
|
var.get('arr').put(var.get('ITERATOR'), PyJs_anonymous_191_)
|
|
var.get('exec')(var.get('arr'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_98625816 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
pass
|
|
finally:
|
|
if PyJsHolder_65_98625816 is not None:
|
|
var.own['e'] = PyJsHolder_65_98625816
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_98625816
|
|
return var.get('safe')
|
|
PyJs_anonymous_189_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_189_)
|
|
PyJs_anonymous_186_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_192_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_193_(done, value, this, arguments, var=var):
|
|
var = Scope({'done':done, 'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['value', 'done'])
|
|
return Js({'value':var.get('value'),'done':var.get('done').neg().neg()})
|
|
PyJs_anonymous_193_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_193_)
|
|
PyJs_anonymous_192_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_194_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('module').put('exports', Js({}))
|
|
PyJs_anonymous_194_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_195_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('module').put('exports', Js(False))
|
|
PyJs_anonymous_195_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_196_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$expm1', 'exports'])
|
|
var.put('$expm1', var.get('Math').get('expm1'))
|
|
@Js
|
|
def PyJs_expm1_197_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'expm1':PyJs_expm1_197_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('x') if (var.put('x', (+var.get('x')))==Js(0.0)) else ((var.get('x')+((var.get('x')*var.get('x'))/Js(2.0))) if ((var.get('x')>(-Js(1e-06))) and (var.get('x')<Js(1e-06))) else (var.get('Math').callprop('exp', var.get('x'))-Js(1.0))))
|
|
PyJs_expm1_197_._set_name('expm1')
|
|
var.get('module').put('exports', (PyJs_expm1_197_ if (((var.get('$expm1').neg() or (var.get('$expm1')(Js(10.0))>Js(22025.465794806718))) or (var.get('$expm1')(Js(10.0))<Js(22025.465794806718))) or (var.get('$expm1')((-Js(2e-17)))!=(-Js(2e-17)))) else var.get('$expm1')))
|
|
PyJs_anonymous_196_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_198_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'MIN32', 'EPSILON', 'roundTiesToEven', 'exports', 'module', 'sign', 'pow', 'MAX32', 'EPSILON32'])
|
|
var.put('sign', var.get('require')(Js('./_math-sign')))
|
|
var.put('pow', var.get('Math').get('pow'))
|
|
var.put('EPSILON', var.get('pow')(Js(2.0), (-Js(52.0))))
|
|
var.put('EPSILON32', var.get('pow')(Js(2.0), (-Js(23.0))))
|
|
var.put('MAX32', (var.get('pow')(Js(2.0), Js(127.0))*(Js(2.0)-var.get('EPSILON32'))))
|
|
var.put('MIN32', var.get('pow')(Js(2.0), (-Js(126.0))))
|
|
@Js
|
|
def PyJs_roundTiesToEven_199_(n, this, arguments, var=var):
|
|
var = Scope({'n':n, 'this':this, 'arguments':arguments, 'roundTiesToEven':PyJs_roundTiesToEven_199_}, var)
|
|
var.registers(['n'])
|
|
return ((var.get('n')+(Js(1.0)/var.get('EPSILON')))-(Js(1.0)/var.get('EPSILON')))
|
|
PyJs_roundTiesToEven_199_._set_name('roundTiesToEven')
|
|
var.put('roundTiesToEven', PyJs_roundTiesToEven_199_)
|
|
@Js
|
|
def PyJs_fround_200_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'fround':PyJs_fround_200_}, var)
|
|
var.registers(['$sign', 'x', '$abs', 'result', 'a'])
|
|
var.put('$abs', var.get('Math').callprop('abs', var.get('x')))
|
|
var.put('$sign', var.get('sign')(var.get('x')))
|
|
pass
|
|
if (var.get('$abs')<var.get('MIN32')):
|
|
return (((var.get('$sign')*var.get('roundTiesToEven')(((var.get('$abs')/var.get('MIN32'))/var.get('EPSILON32'))))*var.get('MIN32'))*var.get('EPSILON32'))
|
|
var.put('a', ((Js(1.0)+(var.get('EPSILON32')/var.get('EPSILON')))*var.get('$abs')))
|
|
var.put('result', (var.get('a')-(var.get('a')-var.get('$abs'))))
|
|
if ((var.get('result')>var.get('MAX32')) or (var.get('result')!=var.get('result'))):
|
|
return (var.get('$sign')*var.get('Infinity'))
|
|
return (var.get('$sign')*var.get('result'))
|
|
PyJs_fround_200_._set_name('fround')
|
|
var.get('module').put('exports', (var.get('Math').get('fround') or PyJs_fround_200_))
|
|
PyJs_anonymous_198_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_201_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_log1p_202_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'log1p':PyJs_log1p_202_}, var)
|
|
var.registers(['x'])
|
|
return ((var.get('x')-((var.get('x')*var.get('x'))/Js(2.0))) if ((var.put('x', (+var.get('x')))>(-Js(1e-08))) and (var.get('x')<Js(1e-08))) else var.get('Math').callprop('log', (Js(1.0)+var.get('x'))))
|
|
PyJs_log1p_202_._set_name('log1p')
|
|
var.get('module').put('exports', (var.get('Math').get('log1p') or PyJs_log1p_202_))
|
|
PyJs_anonymous_201_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_203_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_scale_204_(x, inLow, inHigh, outLow, outHigh, this, arguments, var=var):
|
|
var = Scope({'x':x, 'inLow':inLow, 'inHigh':inHigh, 'outLow':outLow, 'outHigh':outHigh, 'this':this, 'arguments':arguments, 'scale':PyJs_scale_204_}, var)
|
|
var.registers(['outLow', 'x', 'inLow', 'inHigh', 'outHigh'])
|
|
if (((((PyJsStrictEq(var.get('arguments').get('length'),Js(0.0)) or (var.get('x')!=var.get('x'))) or (var.get('inLow')!=var.get('inLow'))) or (var.get('inHigh')!=var.get('inHigh'))) or (var.get('outLow')!=var.get('outLow'))) or (var.get('outHigh')!=var.get('outHigh'))):
|
|
return var.get('NaN')
|
|
if (PyJsStrictEq(var.get('x'),var.get('Infinity')) or PyJsStrictEq(var.get('x'),(-var.get('Infinity')))):
|
|
return var.get('x')
|
|
return ((((var.get('x')-var.get('inLow'))*(var.get('outHigh')-var.get('outLow')))/(var.get('inHigh')-var.get('inLow')))+var.get('outLow'))
|
|
PyJs_scale_204_._set_name('scale')
|
|
var.get('module').put('exports', (var.get('Math').get('scale') or PyJs_scale_204_))
|
|
PyJs_anonymous_203_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_205_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_sign_206_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'sign':PyJs_sign_206_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('x') if ((var.put('x', (+var.get('x')))==Js(0.0)) or (var.get('x')!=var.get('x'))) else ((-Js(1.0)) if (var.get('x')<Js(0.0)) else Js(1.0)))
|
|
PyJs_sign_206_._set_name('sign')
|
|
var.get('module').put('exports', (var.get('Math').get('sign') or PyJs_sign_206_))
|
|
PyJs_anonymous_205_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_207_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['getWeak', 'require', 'onFreeze', 'fastKey', 'META', 'setDesc', 'isExtensible', 'meta', 'FREEZE', 'exports', 'module', 'id', 'setMeta', 'isObject', 'has'])
|
|
var.put('META', var.get('require')(Js('./_uid'))(Js('meta')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('setDesc', var.get('require')(Js('./_object-dp')).get('f'))
|
|
var.put('id', Js(0.0))
|
|
@Js
|
|
def PyJs_anonymous_208_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return Js(True)
|
|
PyJs_anonymous_208_._set_name('anonymous')
|
|
var.put('isExtensible', (var.get('Object').get('isExtensible') or PyJs_anonymous_208_))
|
|
@Js
|
|
def PyJs_anonymous_209_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('isExtensible')(var.get('Object').callprop('preventExtensions', Js({})))
|
|
PyJs_anonymous_209_._set_name('anonymous')
|
|
var.put('FREEZE', var.get('require')(Js('./_fails'))(PyJs_anonymous_209_).neg())
|
|
@Js
|
|
def PyJs_setMeta_210_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'setMeta':PyJs_setMeta_210_}, var)
|
|
var.registers(['it'])
|
|
var.get('setDesc')(var.get('it'), var.get('META'), Js({'value':Js({'i':(Js('O')+var.put('id',Js(var.get('id').to_number())+Js(1))),'w':Js({})})}))
|
|
PyJs_setMeta_210_._set_name('setMeta')
|
|
var.put('setMeta', PyJs_setMeta_210_)
|
|
@Js
|
|
def PyJs_fastKey_211_(it, create, this, arguments, var=var):
|
|
var = Scope({'it':it, 'create':create, 'this':this, 'arguments':arguments, 'fastKey':PyJs_fastKey_211_}, var)
|
|
var.registers(['it', 'create'])
|
|
if var.get('isObject')(var.get('it')).neg():
|
|
return (var.get('it') if ((Js('undefined') if PyJsStrictEq(var.get('it',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('it')))==Js('symbol')) else ((Js('S') if (var.get('it',throw=False).typeof()==Js('string')) else Js('P'))+var.get('it')))
|
|
if var.get('has')(var.get('it'), var.get('META')).neg():
|
|
if var.get('isExtensible')(var.get('it')).neg():
|
|
return Js('F')
|
|
if var.get('create').neg():
|
|
return Js('E')
|
|
var.get('setMeta')(var.get('it'))
|
|
return var.get('it').get(var.get('META')).get('i')
|
|
PyJs_fastKey_211_._set_name('fastKey')
|
|
var.put('fastKey', PyJs_fastKey_211_)
|
|
@Js
|
|
def PyJs_getWeak_212_(it, create, this, arguments, var=var):
|
|
var = Scope({'it':it, 'create':create, 'this':this, 'arguments':arguments, 'getWeak':PyJs_getWeak_212_}, var)
|
|
var.registers(['it', 'create'])
|
|
if var.get('has')(var.get('it'), var.get('META')).neg():
|
|
if var.get('isExtensible')(var.get('it')).neg():
|
|
return Js(True)
|
|
if var.get('create').neg():
|
|
return Js(False)
|
|
var.get('setMeta')(var.get('it'))
|
|
return var.get('it').get(var.get('META')).get('w')
|
|
PyJs_getWeak_212_._set_name('getWeak')
|
|
var.put('getWeak', PyJs_getWeak_212_)
|
|
@Js
|
|
def PyJs_onFreeze_213_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'onFreeze':PyJs_onFreeze_213_}, var)
|
|
var.registers(['it'])
|
|
if (((var.get('FREEZE') and var.get('meta').get('NEED')) and var.get('isExtensible')(var.get('it'))) and var.get('has')(var.get('it'), var.get('META')).neg()):
|
|
var.get('setMeta')(var.get('it'))
|
|
return var.get('it')
|
|
PyJs_onFreeze_213_._set_name('onFreeze')
|
|
var.put('onFreeze', PyJs_onFreeze_213_)
|
|
var.put('meta', var.get('module').put('exports', Js({'KEY':var.get('META'),'NEED':Js(False),'fastKey':var.get('fastKey'),'getWeak':var.get('getWeak'),'onFreeze':var.get('onFreeze')})))
|
|
PyJs_anonymous_207_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_214_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'ordinaryGetOwnMetadata', 'ordinaryDefineOwnMetadata', '$export', 'exports', 'shared', 'getOrCreateMetadataMap', 'store', 'toMetaKey', 'module', 'ordinaryOwnMetadataKeys', 'Map', 'exp', 'ordinaryHasOwnMetadata'])
|
|
var.put('Map', var.get('require')(Js('./es6.map')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('shared', var.get('require')(Js('./_shared'))(Js('metadata')))
|
|
var.put('store', (var.get('shared').get('store') or var.get('shared').put('store', var.get('require')(Js('./es6.weak-map')).create())))
|
|
@Js
|
|
def PyJs_getOrCreateMetadataMap_215_(target, targetKey, create, this, arguments, var=var):
|
|
var = Scope({'target':target, 'targetKey':targetKey, 'create':create, 'this':this, 'arguments':arguments, 'getOrCreateMetadataMap':PyJs_getOrCreateMetadataMap_215_}, var)
|
|
var.registers(['target', 'keyMetadata', 'targetMetadata', 'targetKey', 'create'])
|
|
var.put('targetMetadata', var.get('store').callprop('get', var.get('target')))
|
|
if var.get('targetMetadata').neg():
|
|
if var.get('create').neg():
|
|
return var.get('undefined')
|
|
var.get('store').callprop('set', var.get('target'), var.put('targetMetadata', var.get('Map').create()))
|
|
var.put('keyMetadata', var.get('targetMetadata').callprop('get', var.get('targetKey')))
|
|
if var.get('keyMetadata').neg():
|
|
if var.get('create').neg():
|
|
return var.get('undefined')
|
|
var.get('targetMetadata').callprop('set', var.get('targetKey'), var.put('keyMetadata', var.get('Map').create()))
|
|
return var.get('keyMetadata')
|
|
PyJs_getOrCreateMetadataMap_215_._set_name('getOrCreateMetadataMap')
|
|
var.put('getOrCreateMetadataMap', PyJs_getOrCreateMetadataMap_215_)
|
|
@Js
|
|
def PyJs_ordinaryHasOwnMetadata_216_(MetadataKey, O, P, this, arguments, var=var):
|
|
var = Scope({'MetadataKey':MetadataKey, 'O':O, 'P':P, 'this':this, 'arguments':arguments, 'ordinaryHasOwnMetadata':PyJs_ordinaryHasOwnMetadata_216_}, var)
|
|
var.registers(['metadataMap', 'O', 'P', 'MetadataKey'])
|
|
var.put('metadataMap', var.get('getOrCreateMetadataMap')(var.get('O'), var.get('P'), Js(False)))
|
|
return (Js(False) if PyJsStrictEq(var.get('metadataMap'),var.get('undefined')) else var.get('metadataMap').callprop('has', var.get('MetadataKey')))
|
|
PyJs_ordinaryHasOwnMetadata_216_._set_name('ordinaryHasOwnMetadata')
|
|
var.put('ordinaryHasOwnMetadata', PyJs_ordinaryHasOwnMetadata_216_)
|
|
@Js
|
|
def PyJs_ordinaryGetOwnMetadata_217_(MetadataKey, O, P, this, arguments, var=var):
|
|
var = Scope({'MetadataKey':MetadataKey, 'O':O, 'P':P, 'this':this, 'arguments':arguments, 'ordinaryGetOwnMetadata':PyJs_ordinaryGetOwnMetadata_217_}, var)
|
|
var.registers(['metadataMap', 'O', 'P', 'MetadataKey'])
|
|
var.put('metadataMap', var.get('getOrCreateMetadataMap')(var.get('O'), var.get('P'), Js(False)))
|
|
return (var.get('undefined') if PyJsStrictEq(var.get('metadataMap'),var.get('undefined')) else var.get('metadataMap').callprop('get', var.get('MetadataKey')))
|
|
PyJs_ordinaryGetOwnMetadata_217_._set_name('ordinaryGetOwnMetadata')
|
|
var.put('ordinaryGetOwnMetadata', PyJs_ordinaryGetOwnMetadata_217_)
|
|
@Js
|
|
def PyJs_ordinaryDefineOwnMetadata_218_(MetadataKey, MetadataValue, O, P, this, arguments, var=var):
|
|
var = Scope({'MetadataKey':MetadataKey, 'MetadataValue':MetadataValue, 'O':O, 'P':P, 'this':this, 'arguments':arguments, 'ordinaryDefineOwnMetadata':PyJs_ordinaryDefineOwnMetadata_218_}, var)
|
|
var.registers(['O', 'MetadataValue', 'P', 'MetadataKey'])
|
|
var.get('getOrCreateMetadataMap')(var.get('O'), var.get('P'), Js(True)).callprop('set', var.get('MetadataKey'), var.get('MetadataValue'))
|
|
PyJs_ordinaryDefineOwnMetadata_218_._set_name('ordinaryDefineOwnMetadata')
|
|
var.put('ordinaryDefineOwnMetadata', PyJs_ordinaryDefineOwnMetadata_218_)
|
|
@Js
|
|
def PyJs_ordinaryOwnMetadataKeys_219_(target, targetKey, this, arguments, var=var):
|
|
var = Scope({'target':target, 'targetKey':targetKey, 'this':this, 'arguments':arguments, 'ordinaryOwnMetadataKeys':PyJs_ordinaryOwnMetadataKeys_219_}, var)
|
|
var.registers(['metadataMap', 'target', 'targetKey', 'keys'])
|
|
var.put('metadataMap', var.get('getOrCreateMetadataMap')(var.get('target'), var.get('targetKey'), Js(False)))
|
|
var.put('keys', Js([]))
|
|
if var.get('metadataMap'):
|
|
@Js
|
|
def PyJs_anonymous_220_(_, key, this, arguments, var=var):
|
|
var = Scope({'_':_, 'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['_', 'key'])
|
|
var.get('keys').callprop('push', var.get('key'))
|
|
PyJs_anonymous_220_._set_name('anonymous')
|
|
var.get('metadataMap').callprop('forEach', PyJs_anonymous_220_)
|
|
return var.get('keys')
|
|
PyJs_ordinaryOwnMetadataKeys_219_._set_name('ordinaryOwnMetadataKeys')
|
|
var.put('ordinaryOwnMetadataKeys', PyJs_ordinaryOwnMetadataKeys_219_)
|
|
@Js
|
|
def PyJs_toMetaKey_221_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'toMetaKey':PyJs_toMetaKey_221_}, var)
|
|
var.registers(['it'])
|
|
return (var.get('it') if (PyJsStrictEq(var.get('it'),var.get('undefined')) or ((Js('undefined') if PyJsStrictEq(var.get('it',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('it')))==Js('symbol'))) else var.get('String')(var.get('it')))
|
|
PyJs_toMetaKey_221_._set_name('toMetaKey')
|
|
var.put('toMetaKey', PyJs_toMetaKey_221_)
|
|
@Js
|
|
def PyJs_exp_222_(O, this, arguments, var=var):
|
|
var = Scope({'O':O, 'this':this, 'arguments':arguments, 'exp':PyJs_exp_222_}, var)
|
|
var.registers(['O'])
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), var.get('O'))
|
|
PyJs_exp_222_._set_name('exp')
|
|
var.put('exp', PyJs_exp_222_)
|
|
var.get('module').put('exports', Js({'store':var.get('store'),'map':var.get('getOrCreateMetadataMap'),'has':var.get('ordinaryHasOwnMetadata'),'get':var.get('ordinaryGetOwnMetadata'),'set':var.get('ordinaryDefineOwnMetadata'),'keys':var.get('ordinaryOwnMetadataKeys'),'key':var.get('toMetaKey'),'exp':var.get('exp')}))
|
|
PyJs_anonymous_214_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_223_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['isNode', 'require', 'Promise', 'macrotask', 'exports', 'module', 'Observer', 'global', 'process'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('macrotask', var.get('require')(Js('./_task')).get('set'))
|
|
var.put('Observer', (var.get('global').get('MutationObserver') or var.get('global').get('WebKitMutationObserver')))
|
|
var.put('process', var.get('global').get('process'))
|
|
var.put('Promise', var.get('global').get('Promise'))
|
|
var.put('isNode', (var.get('require')(Js('./_cof'))(var.get('process'))==Js('process')))
|
|
@Js
|
|
def PyJs_anonymous_224_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['head', 'toggle', 'node', 'flush', 'promise', 'last', 'notify'])
|
|
pass
|
|
@Js
|
|
def PyJs_flush_225_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'flush':PyJs_flush_225_}, var)
|
|
var.registers(['parent', 'fn'])
|
|
pass
|
|
if (var.get('isNode') and var.put('parent', var.get('process').get('domain'))):
|
|
var.get('parent').callprop('exit')
|
|
while var.get('head'):
|
|
var.put('fn', var.get('head').get('fn'))
|
|
var.put('head', var.get('head').get('next'))
|
|
try:
|
|
var.get('fn')()
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_18298253 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
if var.get('head'):
|
|
var.get('notify')()
|
|
else:
|
|
var.put('last', var.get('undefined'))
|
|
PyJsTempException = JsToPyException(var.get('e'))
|
|
raise PyJsTempException
|
|
finally:
|
|
if PyJsHolder_65_18298253 is not None:
|
|
var.own['e'] = PyJsHolder_65_18298253
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_18298253
|
|
var.put('last', var.get('undefined'))
|
|
if var.get('parent'):
|
|
var.get('parent').callprop('enter')
|
|
PyJs_flush_225_._set_name('flush')
|
|
var.put('flush', PyJs_flush_225_)
|
|
if var.get('isNode'):
|
|
@Js
|
|
def PyJs_notify_226_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'notify':PyJs_notify_226_}, var)
|
|
var.registers([])
|
|
var.get('process').callprop('nextTick', var.get('flush'))
|
|
PyJs_notify_226_._set_name('notify')
|
|
var.put('notify', PyJs_notify_226_)
|
|
else:
|
|
if (var.get('Observer') and (var.get('global').get('navigator') and var.get('global').get('navigator').get('standalone')).neg()):
|
|
var.put('toggle', Js(True))
|
|
var.put('node', var.get('document').callprop('createTextNode', Js('')))
|
|
var.get('Observer').create(var.get('flush')).callprop('observe', var.get('node'), Js({'characterData':Js(True)}))
|
|
@Js
|
|
def PyJs_notify_227_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'notify':PyJs_notify_227_}, var)
|
|
var.registers([])
|
|
var.get('node').put('data', var.put('toggle', var.get('toggle').neg()))
|
|
PyJs_notify_227_._set_name('notify')
|
|
var.put('notify', PyJs_notify_227_)
|
|
else:
|
|
if (var.get('Promise') and var.get('Promise').get('resolve')):
|
|
var.put('promise', var.get('Promise').callprop('resolve', var.get('undefined')))
|
|
@Js
|
|
def PyJs_notify_228_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'notify':PyJs_notify_228_}, var)
|
|
var.registers([])
|
|
var.get('promise').callprop('then', var.get('flush'))
|
|
PyJs_notify_228_._set_name('notify')
|
|
var.put('notify', PyJs_notify_228_)
|
|
else:
|
|
@Js
|
|
def PyJs_notify_229_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'notify':PyJs_notify_229_}, var)
|
|
var.registers([])
|
|
var.get('macrotask').callprop('call', var.get('global'), var.get('flush'))
|
|
PyJs_notify_229_._set_name('notify')
|
|
var.put('notify', PyJs_notify_229_)
|
|
@Js
|
|
def PyJs_anonymous_230_(fn, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['task', 'fn'])
|
|
var.put('task', Js({'fn':var.get('fn'),'next':var.get('undefined')}))
|
|
if var.get('last'):
|
|
var.get('last').put('next', var.get('task'))
|
|
if var.get('head').neg():
|
|
var.put('head', var.get('task'))
|
|
var.get('notify')()
|
|
var.put('last', var.get('task'))
|
|
PyJs_anonymous_230_._set_name('anonymous')
|
|
return PyJs_anonymous_230_
|
|
PyJs_anonymous_224_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_224_)
|
|
PyJs_anonymous_223_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_231_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'PromiseCapability', 'exports', 'module'])
|
|
@Js
|
|
def PyJsHoisted_PromiseCapability_(C, this, arguments, var=var):
|
|
var = Scope({'C':C, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'resolve', 'reject'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_232_(PyJsArg_24247265736f6c7665_, PyJsArg_242472656a656374_, this, arguments, var=var):
|
|
var = Scope({'$$resolve':PyJsArg_24247265736f6c7665_, '$$reject':PyJsArg_242472656a656374_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$$reject', '$$resolve'])
|
|
if (PyJsStrictNeq(var.get('resolve'),var.get('undefined')) or PyJsStrictNeq(var.get('reject'),var.get('undefined'))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js('Bad Promise constructor')))
|
|
raise PyJsTempException
|
|
var.put('resolve', var.get('$$resolve'))
|
|
var.put('reject', var.get('$$reject'))
|
|
PyJs_anonymous_232_._set_name('anonymous')
|
|
var.get(u"this").put('promise', var.get('C').create(PyJs_anonymous_232_))
|
|
var.get(u"this").put('resolve', var.get('aFunction')(var.get('resolve')))
|
|
var.get(u"this").put('reject', var.get('aFunction')(var.get('reject')))
|
|
PyJsHoisted_PromiseCapability_.func_name = 'PromiseCapability'
|
|
var.put('PromiseCapability', PyJsHoisted_PromiseCapability_)
|
|
Js('use strict')
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_233_(C, this, arguments, var=var):
|
|
var = Scope({'C':C, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C'])
|
|
return var.get('PromiseCapability').create(var.get('C'))
|
|
PyJs_anonymous_233_._set_name('anonymous')
|
|
var.get('module').get('exports').put('f', PyJs_anonymous_233_)
|
|
PyJs_anonymous_231_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_234_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'getKeys', 'DESCRIPTORS', 'pIE', 'gOPS', 'toObject', 'exports', 'module', 'IObject', '$assign'])
|
|
Js('use strict')
|
|
var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors')))
|
|
var.put('getKeys', var.get('require')(Js('./_object-keys')))
|
|
var.put('gOPS', var.get('require')(Js('./_object-gops')))
|
|
var.put('pIE', var.get('require')(Js('./_object-pie')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('IObject', var.get('require')(Js('./_iobject')))
|
|
var.put('$assign', var.get('Object').get('assign'))
|
|
@Js
|
|
def PyJs_assign_235_(target, source, this, arguments, var=var):
|
|
var = Scope({'target':target, 'source':source, 'this':this, 'arguments':arguments, 'assign':PyJs_assign_235_}, var)
|
|
var.registers(['target', 'keys', 'index', 'length', 'source', 'j', 'getSymbols', 'isEnum', 'aLen', 'S', 'key', 'T'])
|
|
var.put('T', var.get('toObject')(var.get('target')))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('index', Js(1.0))
|
|
var.put('getSymbols', var.get('gOPS').get('f'))
|
|
var.put('isEnum', var.get('pIE').get('f'))
|
|
while (var.get('aLen')>var.get('index')):
|
|
var.put('S', var.get('IObject')(var.get('arguments').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)))))
|
|
var.put('keys', (var.get('getKeys')(var.get('S')).callprop('concat', var.get('getSymbols')(var.get('S'))) if var.get('getSymbols') else var.get('getKeys')(var.get('S'))))
|
|
var.put('length', var.get('keys').get('length'))
|
|
var.put('j', Js(0.0))
|
|
pass
|
|
while (var.get('length')>var.get('j')):
|
|
var.put('key', var.get('keys').get((var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))))
|
|
if (var.get('DESCRIPTORS').neg() or var.get('isEnum').callprop('call', var.get('S'), var.get('key'))):
|
|
var.get('T').put(var.get('key'), var.get('S').get(var.get('key')))
|
|
return var.get('T')
|
|
PyJs_assign_235_._set_name('assign')
|
|
@Js
|
|
def PyJs_anonymous_236_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['B', 'K', 'S', 'A'])
|
|
var.put('A', Js({}))
|
|
var.put('B', Js({}))
|
|
var.put('S', var.get('Symbol')())
|
|
var.put('K', Js('abcdefghijklmnopqrst'))
|
|
var.get('A').put(var.get('S'), Js(7.0))
|
|
@Js
|
|
def PyJs_anonymous_237_(k, this, arguments, var=var):
|
|
var = Scope({'k':k, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['k'])
|
|
var.get('B').put(var.get('k'), var.get('k'))
|
|
PyJs_anonymous_237_._set_name('anonymous')
|
|
var.get('K').callprop('split', Js('')).callprop('forEach', PyJs_anonymous_237_)
|
|
return ((var.get('$assign')(Js({}), var.get('A')).get(var.get('S'))!=Js(7.0)) or (var.get('Object').callprop('keys', var.get('$assign')(Js({}), var.get('B'))).callprop('join', Js(''))!=var.get('K')))
|
|
PyJs_anonymous_236_._set_name('anonymous')
|
|
var.get('module').put('exports', (PyJs_assign_235_ if (var.get('$assign').neg() or var.get('require')(Js('./_fails'))(PyJs_anonymous_236_)) else var.get('$assign')))
|
|
PyJs_anonymous_234_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_238_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['PROTOTYPE', 'require', 'IE_PROTO', 'enumBugKeys', '_createDict', 'Empty', 'exports', 'module', 'anObject', 'dPs'])
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('dPs', var.get('require')(Js('./_object-dps')))
|
|
var.put('enumBugKeys', var.get('require')(Js('./_enum-bug-keys')))
|
|
var.put('IE_PROTO', var.get('require')(Js('./_shared-key'))(Js('IE_PROTO')))
|
|
@Js
|
|
def PyJs_Empty_239_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'Empty':PyJs_Empty_239_}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_Empty_239_._set_name('Empty')
|
|
var.put('Empty', PyJs_Empty_239_)
|
|
var.put('PROTOTYPE', Js('prototype'))
|
|
@Js
|
|
def PyJs_createDict_240_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'createDict':PyJs_createDict_240_}, var)
|
|
var.registers(['lt', 'iframe', 'i', 'iframeDocument', 'gt'])
|
|
var.put('iframe', var.get('require')(Js('./_dom-create'))(Js('iframe')))
|
|
var.put('i', var.get('enumBugKeys').get('length'))
|
|
var.put('lt', Js('<'))
|
|
var.put('gt', Js('>'))
|
|
pass
|
|
var.get('iframe').get('style').put('display', Js('none'))
|
|
var.get('require')(Js('./_html')).callprop('appendChild', var.get('iframe'))
|
|
var.get('iframe').put('src', Js('javascript:'))
|
|
var.put('iframeDocument', var.get('iframe').get('contentWindow').get('document'))
|
|
var.get('iframeDocument').callprop('open')
|
|
var.get('iframeDocument').callprop('write', ((((((var.get('lt')+Js('script'))+var.get('gt'))+Js('document.F=Object'))+var.get('lt'))+Js('/script'))+var.get('gt')))
|
|
var.get('iframeDocument').callprop('close')
|
|
var.put('_createDict', var.get('iframeDocument').get('F'))
|
|
while (var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1)):
|
|
var.get('_createDict').get(var.get('PROTOTYPE')).delete(var.get('enumBugKeys').get(var.get('i')))
|
|
return var.get('_createDict')()
|
|
PyJs_createDict_240_._set_name('createDict')
|
|
var.put('_createDict', PyJs_createDict_240_)
|
|
@Js
|
|
def PyJs_create_241_(O, Properties, this, arguments, var=var):
|
|
var = Scope({'O':O, 'Properties':Properties, 'this':this, 'arguments':arguments, 'create':PyJs_create_241_}, var)
|
|
var.registers(['Properties', 'O', 'result'])
|
|
pass
|
|
if PyJsStrictNeq(var.get('O'),var.get(u"null")):
|
|
var.get('Empty').put(var.get('PROTOTYPE'), var.get('anObject')(var.get('O')))
|
|
var.put('result', var.get('Empty').create())
|
|
var.get('Empty').put(var.get('PROTOTYPE'), var.get(u"null"))
|
|
var.get('result').put(var.get('IE_PROTO'), var.get('O'))
|
|
else:
|
|
var.put('result', var.get('_createDict')())
|
|
return (var.get('result') if PyJsStrictEq(var.get('Properties'),var.get('undefined')) else var.get('dPs')(var.get('result'), var.get('Properties')))
|
|
PyJs_create_241_._set_name('create')
|
|
var.get('module').put('exports', (var.get('Object').get('create') or PyJs_create_241_))
|
|
PyJs_anonymous_238_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_242_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toPrimitive', 'exports', 'module', 'IE8_DOM_DEFINE', 'dP', 'anObject'])
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('IE8_DOM_DEFINE', var.get('require')(Js('./_ie8-dom-define')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('dP', var.get('Object').get('defineProperty'))
|
|
@Js
|
|
def PyJs_defineProperty_243_(O, P, Attributes, this, arguments, var=var):
|
|
var = Scope({'O':O, 'P':P, 'Attributes':Attributes, 'this':this, 'arguments':arguments, 'defineProperty':PyJs_defineProperty_243_}, var)
|
|
var.registers(['Attributes', 'O', 'P'])
|
|
var.get('anObject')(var.get('O'))
|
|
var.put('P', var.get('toPrimitive')(var.get('P'), Js(True)))
|
|
var.get('anObject')(var.get('Attributes'))
|
|
if var.get('IE8_DOM_DEFINE'):
|
|
try:
|
|
return var.get('dP')(var.get('O'), var.get('P'), var.get('Attributes'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_44789280 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
pass
|
|
finally:
|
|
if PyJsHolder_65_44789280 is not None:
|
|
var.own['e'] = PyJsHolder_65_44789280
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_44789280
|
|
if (var.get('Attributes').contains(Js('get')) or var.get('Attributes').contains(Js('set'))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js('Accessors not supported!')))
|
|
raise PyJsTempException
|
|
if var.get('Attributes').contains(Js('value')):
|
|
var.get('O').put(var.get('P'), var.get('Attributes').get('value'))
|
|
return var.get('O')
|
|
PyJs_defineProperty_243_._set_name('defineProperty')
|
|
var.get('exports').put('f', (var.get('Object').get('defineProperty') if var.get('require')(Js('./_descriptors')) else PyJs_defineProperty_243_))
|
|
PyJs_anonymous_242_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_244_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'getKeys', 'exports', 'module', 'dP', 'anObject'])
|
|
var.put('dP', var.get('require')(Js('./_object-dp')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('getKeys', var.get('require')(Js('./_object-keys')))
|
|
@Js
|
|
def PyJs_defineProperties_245_(O, Properties, this, arguments, var=var):
|
|
var = Scope({'O':O, 'Properties':Properties, 'this':this, 'arguments':arguments, 'defineProperties':PyJs_defineProperties_245_}, var)
|
|
var.registers(['keys', 'length', 'i', 'O', 'Properties', 'P'])
|
|
var.get('anObject')(var.get('O'))
|
|
var.put('keys', var.get('getKeys')(var.get('Properties')))
|
|
var.put('length', var.get('keys').get('length'))
|
|
var.put('i', Js(0.0))
|
|
pass
|
|
while (var.get('length')>var.get('i')):
|
|
var.get('dP').callprop('f', var.get('O'), var.put('P', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))), var.get('Properties').get(var.get('P')))
|
|
return var.get('O')
|
|
PyJs_defineProperties_245_._set_name('defineProperties')
|
|
var.get('module').put('exports', (var.get('Object').get('defineProperties') if var.get('require')(Js('./_descriptors')) else PyJs_defineProperties_245_))
|
|
PyJs_anonymous_244_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_246_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_247_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['K'])
|
|
var.put('K', var.get('Math').callprop('random'))
|
|
@Js
|
|
def PyJs_anonymous_248_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_anonymous_248_._set_name('anonymous')
|
|
var.get('__defineSetter__').callprop('call', var.get(u"null"), var.get('K'), PyJs_anonymous_248_)
|
|
var.get('require')(Js('./_global')).delete(var.get('K'))
|
|
PyJs_anonymous_247_._set_name('anonymous')
|
|
var.get('module').put('exports', (var.get('require')(Js('./_library')) or var.get('require')(Js('./_fails'))(PyJs_anonymous_247_).neg()))
|
|
PyJs_anonymous_246_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_249_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toPrimitive', 'toIObject', 'pIE', 'gOPD', 'exports', 'module', 'IE8_DOM_DEFINE', 'createDesc', 'has'])
|
|
var.put('pIE', var.get('require')(Js('./_object-pie')))
|
|
var.put('createDesc', var.get('require')(Js('./_property-desc')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('IE8_DOM_DEFINE', var.get('require')(Js('./_ie8-dom-define')))
|
|
var.put('gOPD', var.get('Object').get('getOwnPropertyDescriptor'))
|
|
@Js
|
|
def PyJs_getOwnPropertyDescriptor_250_(O, P, this, arguments, var=var):
|
|
var = Scope({'O':O, 'P':P, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_250_}, var)
|
|
var.registers(['O', 'P'])
|
|
var.put('O', var.get('toIObject')(var.get('O')))
|
|
var.put('P', var.get('toPrimitive')(var.get('P'), Js(True)))
|
|
if var.get('IE8_DOM_DEFINE'):
|
|
try:
|
|
return var.get('gOPD')(var.get('O'), var.get('P'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_12374525 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
pass
|
|
finally:
|
|
if PyJsHolder_65_12374525 is not None:
|
|
var.own['e'] = PyJsHolder_65_12374525
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_12374525
|
|
if var.get('has')(var.get('O'), var.get('P')):
|
|
return var.get('createDesc')(var.get('pIE').get('f').callprop('call', var.get('O'), var.get('P')).neg(), var.get('O').get(var.get('P')))
|
|
PyJs_getOwnPropertyDescriptor_250_._set_name('getOwnPropertyDescriptor')
|
|
var.get('exports').put('f', (var.get('gOPD') if var.get('require')(Js('./_descriptors')) else PyJs_getOwnPropertyDescriptor_250_))
|
|
PyJs_anonymous_249_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_251_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'windowNames', 'toIObject', 'gOPN', 'toString', 'exports', 'module', 'getWindowNames'])
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f'))
|
|
var.put('toString', Js({}).get('toString'))
|
|
var.put('windowNames', (var.get('Object').callprop('getOwnPropertyNames', var.get('window')) if ((((Js('undefined') if PyJsStrictEq(var.get('window',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('window')))==Js('object')) and var.get('window')) and var.get('Object').get('getOwnPropertyNames')) else Js([])))
|
|
@Js
|
|
def PyJs_getWindowNames_252_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getWindowNames':PyJs_getWindowNames_252_}, var)
|
|
var.registers(['it'])
|
|
try:
|
|
return var.get('gOPN')(var.get('it'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_89617369 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return var.get('windowNames').callprop('slice')
|
|
finally:
|
|
if PyJsHolder_65_89617369 is not None:
|
|
var.own['e'] = PyJsHolder_65_89617369
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_89617369
|
|
PyJs_getWindowNames_252_._set_name('getWindowNames')
|
|
var.put('getWindowNames', PyJs_getWindowNames_252_)
|
|
@Js
|
|
def PyJs_getOwnPropertyNames_253_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertyNames':PyJs_getOwnPropertyNames_253_}, var)
|
|
var.registers(['it'])
|
|
return (var.get('getWindowNames')(var.get('it')) if (var.get('windowNames') and (var.get('toString').callprop('call', var.get('it'))==Js('[object Window]'))) else var.get('gOPN')(var.get('toIObject')(var.get('it'))))
|
|
PyJs_getOwnPropertyNames_253_._set_name('getOwnPropertyNames')
|
|
var.get('module').get('exports').put('f', PyJs_getOwnPropertyNames_253_)
|
|
PyJs_anonymous_251_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_254_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$keys', 'exports', 'module', 'hiddenKeys'])
|
|
var.put('$keys', var.get('require')(Js('./_object-keys-internal')))
|
|
var.put('hiddenKeys', var.get('require')(Js('./_enum-bug-keys')).callprop('concat', Js('length'), Js('prototype')))
|
|
@Js
|
|
def PyJs_getOwnPropertyNames_255_(O, this, arguments, var=var):
|
|
var = Scope({'O':O, 'this':this, 'arguments':arguments, 'getOwnPropertyNames':PyJs_getOwnPropertyNames_255_}, var)
|
|
var.registers(['O'])
|
|
return var.get('$keys')(var.get('O'), var.get('hiddenKeys'))
|
|
PyJs_getOwnPropertyNames_255_._set_name('getOwnPropertyNames')
|
|
var.get('exports').put('f', (var.get('Object').get('getOwnPropertyNames') or PyJs_getOwnPropertyNames_255_))
|
|
PyJs_anonymous_254_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_256_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('exports').put('f', var.get('Object').get('getOwnPropertySymbols'))
|
|
PyJs_anonymous_256_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_257_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'IE_PROTO', 'toObject', 'exports', 'module', 'ObjectProto', 'has'])
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('IE_PROTO', var.get('require')(Js('./_shared-key'))(Js('IE_PROTO')))
|
|
var.put('ObjectProto', var.get('Object').get('prototype'))
|
|
@Js
|
|
def PyJs_anonymous_258_(O, this, arguments, var=var):
|
|
var = Scope({'O':O, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['O'])
|
|
var.put('O', var.get('toObject')(var.get('O')))
|
|
if var.get('has')(var.get('O'), var.get('IE_PROTO')):
|
|
return var.get('O').get(var.get('IE_PROTO'))
|
|
if ((var.get('O').get('constructor').typeof()==Js('function')) and var.get('O').instanceof(var.get('O').get('constructor'))):
|
|
return var.get('O').get('constructor').get('prototype')
|
|
return (var.get('ObjectProto') if var.get('O').instanceof(var.get('Object')) else var.get(u"null"))
|
|
PyJs_anonymous_258_._set_name('anonymous')
|
|
var.get('module').put('exports', (var.get('Object').get('getPrototypeOf') or PyJs_anonymous_258_))
|
|
PyJs_anonymous_257_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_259_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'IE_PROTO', 'arrayIndexOf', 'toIObject', 'exports', 'module', 'has'])
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('arrayIndexOf', var.get('require')(Js('./_array-includes'))(Js(False)))
|
|
var.put('IE_PROTO', var.get('require')(Js('./_shared-key'))(Js('IE_PROTO')))
|
|
@Js
|
|
def PyJs_anonymous_260_(object, names, this, arguments, var=var):
|
|
var = Scope({'object':object, 'names':names, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['object', 'i', 'O', 'result', 'key', 'names'])
|
|
var.put('O', var.get('toIObject')(var.get('object')))
|
|
var.put('i', Js(0.0))
|
|
var.put('result', Js([]))
|
|
pass
|
|
for PyJsTemp in var.get('O'):
|
|
var.put('key', PyJsTemp)
|
|
if (var.get('key')!=var.get('IE_PROTO')):
|
|
(var.get('has')(var.get('O'), var.get('key')) and var.get('result').callprop('push', var.get('key')))
|
|
while (var.get('names').get('length')>var.get('i')):
|
|
if var.get('has')(var.get('O'), var.put('key', var.get('names').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))):
|
|
((~var.get('arrayIndexOf')(var.get('result'), var.get('key'))) or var.get('result').callprop('push', var.get('key')))
|
|
return var.get('result')
|
|
PyJs_anonymous_260_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_260_)
|
|
PyJs_anonymous_259_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_261_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'enumBugKeys', '$keys', 'exports', 'module'])
|
|
var.put('$keys', var.get('require')(Js('./_object-keys-internal')))
|
|
var.put('enumBugKeys', var.get('require')(Js('./_enum-bug-keys')))
|
|
@Js
|
|
def PyJs_keys_262_(O, this, arguments, var=var):
|
|
var = Scope({'O':O, 'this':this, 'arguments':arguments, 'keys':PyJs_keys_262_}, var)
|
|
var.registers(['O'])
|
|
return var.get('$keys')(var.get('O'), var.get('enumBugKeys'))
|
|
PyJs_keys_262_._set_name('keys')
|
|
var.get('module').put('exports', (var.get('Object').get('keys') or PyJs_keys_262_))
|
|
PyJs_anonymous_261_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_263_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('exports').put('f', Js({}).get('propertyIsEnumerable'))
|
|
PyJs_anonymous_263_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_264_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['core', 'require', '$export', 'exports', 'module', 'fails'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('core', var.get('require')(Js('./_core')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
@Js
|
|
def PyJs_anonymous_265_(KEY, exec, this, arguments, var=var):
|
|
var = Scope({'KEY':KEY, 'exec':exec, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['exp', 'exec', 'fn', 'KEY'])
|
|
var.put('fn', ((var.get('core').get('Object') or Js({})).get(var.get('KEY')) or var.get('Object').get(var.get('KEY'))))
|
|
var.put('exp', Js({}))
|
|
var.get('exp').put(var.get('KEY'), var.get('exec')(var.get('fn')))
|
|
@Js
|
|
def PyJs_anonymous_266_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('fn')(Js(1.0))
|
|
PyJs_anonymous_266_._set_name('anonymous')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('fails')(PyJs_anonymous_266_))), Js('Object'), var.get('exp'))
|
|
PyJs_anonymous_265_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_265_)
|
|
PyJs_anonymous_264_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_267_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'getKeys', 'toIObject', 'DESCRIPTORS', 'exports', 'module', 'isEnum'])
|
|
var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors')))
|
|
var.put('getKeys', var.get('require')(Js('./_object-keys')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('isEnum', var.get('require')(Js('./_object-pie')).get('f'))
|
|
@Js
|
|
def PyJs_anonymous_268_(isEntries, this, arguments, var=var):
|
|
var = Scope({'isEntries':isEntries, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['isEntries'])
|
|
@Js
|
|
def PyJs_anonymous_269_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'length', 'i', 'O', 'result', 'key', 'keys'])
|
|
var.put('O', var.get('toIObject')(var.get('it')))
|
|
var.put('keys', var.get('getKeys')(var.get('O')))
|
|
var.put('length', var.get('keys').get('length'))
|
|
var.put('i', Js(0.0))
|
|
var.put('result', Js([]))
|
|
pass
|
|
while (var.get('length')>var.get('i')):
|
|
var.put('key', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))
|
|
if (var.get('DESCRIPTORS').neg() or var.get('isEnum').callprop('call', var.get('O'), var.get('key'))):
|
|
var.get('result').callprop('push', (Js([var.get('key'), var.get('O').get(var.get('key'))]) if var.get('isEntries') else var.get('O').get(var.get('key'))))
|
|
return var.get('result')
|
|
PyJs_anonymous_269_._set_name('anonymous')
|
|
return PyJs_anonymous_269_
|
|
PyJs_anonymous_268_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_268_)
|
|
PyJs_anonymous_267_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_270_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'Reflect', 'gOPN', 'gOPS', 'exports', 'module', 'anObject'])
|
|
var.put('gOPN', var.get('require')(Js('./_object-gopn')))
|
|
var.put('gOPS', var.get('require')(Js('./_object-gops')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('Reflect', var.get('require')(Js('./_global')).get('Reflect'))
|
|
@Js
|
|
def PyJs_ownKeys_271_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'ownKeys':PyJs_ownKeys_271_}, var)
|
|
var.registers(['it', 'getSymbols', 'keys'])
|
|
var.put('keys', var.get('gOPN').callprop('f', var.get('anObject')(var.get('it'))))
|
|
var.put('getSymbols', var.get('gOPS').get('f'))
|
|
return (var.get('keys').callprop('concat', var.get('getSymbols')(var.get('it'))) if var.get('getSymbols') else var.get('keys'))
|
|
PyJs_ownKeys_271_._set_name('ownKeys')
|
|
var.get('module').put('exports', ((var.get('Reflect') and var.get('Reflect').get('ownKeys')) or PyJs_ownKeys_271_))
|
|
PyJs_anonymous_270_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_272_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$parseFloat', 'exports', 'module', '$trim'])
|
|
var.put('$parseFloat', var.get('require')(Js('./_global')).get('parseFloat'))
|
|
var.put('$trim', var.get('require')(Js('./_string-trim')).get('trim'))
|
|
@Js
|
|
def PyJs_parseFloat_273_(str, this, arguments, var=var):
|
|
var = Scope({'str':str, 'this':this, 'arguments':arguments, 'parseFloat':PyJs_parseFloat_273_}, var)
|
|
var.registers(['str', 'string', 'result'])
|
|
var.put('string', var.get('$trim')(var.get('String')(var.get('str')), Js(3.0)))
|
|
var.put('result', var.get('$parseFloat')(var.get('string')))
|
|
return ((-Js(0.0)) if (PyJsStrictEq(var.get('result'),Js(0.0)) and (var.get('string').callprop('charAt', Js(0.0))==Js('-'))) else var.get('result'))
|
|
PyJs_parseFloat_273_._set_name('parseFloat')
|
|
var.get('module').put('exports', (PyJs_parseFloat_273_ if PyJsStrictNeq((Js(1.0)/var.get('$parseFloat')((var.get('require')(Js('./_string-ws'))+Js('-0')))),(-var.get('Infinity'))) else var.get('$parseFloat')))
|
|
PyJs_anonymous_272_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_274_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'hex', '$parseInt', 'ws', 'exports', 'module', '$trim'])
|
|
var.put('$parseInt', var.get('require')(Js('./_global')).get('parseInt'))
|
|
var.put('$trim', var.get('require')(Js('./_string-trim')).get('trim'))
|
|
var.put('ws', var.get('require')(Js('./_string-ws')))
|
|
var.put('hex', JsRegExp('/^[-+]?0[xX]/'))
|
|
@Js
|
|
def PyJs_parseInt_275_(str, radix, this, arguments, var=var):
|
|
var = Scope({'str':str, 'radix':radix, 'this':this, 'arguments':arguments, 'parseInt':PyJs_parseInt_275_}, var)
|
|
var.registers(['str', 'string', 'radix'])
|
|
var.put('string', var.get('$trim')(var.get('String')(var.get('str')), Js(3.0)))
|
|
return var.get('$parseInt')(var.get('string'), (PyJsBshift(var.get('radix'),Js(0.0)) or (Js(16.0) if var.get('hex').callprop('test', var.get('string')) else Js(10.0))))
|
|
PyJs_parseInt_275_._set_name('parseInt')
|
|
var.get('module').put('exports', (PyJs_parseInt_275_ if (PyJsStrictNeq(var.get('$parseInt')((var.get('ws')+Js('08'))),Js(8.0)) or PyJsStrictNeq(var.get('$parseInt')((var.get('ws')+Js('0x16'))),Js(22.0))) else var.get('$parseInt')))
|
|
PyJs_anonymous_274_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_276_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_277_(exec, this, arguments, var=var):
|
|
var = Scope({'exec':exec, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['exec'])
|
|
try:
|
|
return Js({'e':Js(False),'v':var.get('exec')()})
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_57087974 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return Js({'e':Js(True),'v':var.get('e')})
|
|
finally:
|
|
if PyJsHolder_65_57087974 is not None:
|
|
var.own['e'] = PyJsHolder_65_57087974
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_57087974
|
|
PyJs_anonymous_277_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_277_)
|
|
PyJs_anonymous_276_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_278_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'newPromiseCapability', 'isObject', 'anObject'])
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('newPromiseCapability', var.get('require')(Js('./_new-promise-capability')))
|
|
@Js
|
|
def PyJs_anonymous_279_(C, x, this, arguments, var=var):
|
|
var = Scope({'C':C, 'x':x, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'x', 'promiseCapability', 'resolve'])
|
|
var.get('anObject')(var.get('C'))
|
|
if (var.get('isObject')(var.get('x')) and PyJsStrictEq(var.get('x').get('constructor'),var.get('C'))):
|
|
return var.get('x')
|
|
var.put('promiseCapability', var.get('newPromiseCapability').callprop('f', var.get('C')))
|
|
var.put('resolve', var.get('promiseCapability').get('resolve'))
|
|
var.get('resolve')(var.get('x'))
|
|
return var.get('promiseCapability').get('promise')
|
|
PyJs_anonymous_279_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_279_)
|
|
PyJs_anonymous_278_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_280_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_281_(bitmap, value, this, arguments, var=var):
|
|
var = Scope({'bitmap':bitmap, 'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['value', 'bitmap'])
|
|
return Js({'enumerable':(var.get('bitmap')&Js(1.0)).neg(),'configurable':(var.get('bitmap')&Js(2.0)).neg(),'writable':(var.get('bitmap')&Js(4.0)).neg(),'value':var.get('value')})
|
|
PyJs_anonymous_281_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_281_)
|
|
PyJs_anonymous_280_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_282_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'redefine', 'module', 'exports'])
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
@Js
|
|
def PyJs_anonymous_283_(target, src, safe, this, arguments, var=var):
|
|
var = Scope({'target':target, 'src':src, 'safe':safe, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['target', 'src', 'key', 'safe'])
|
|
for PyJsTemp in var.get('src'):
|
|
var.put('key', PyJsTemp)
|
|
var.get('redefine')(var.get('target'), var.get('key'), var.get('src').get(var.get('key')), var.get('safe'))
|
|
return var.get('target')
|
|
PyJs_anonymous_283_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_283_)
|
|
PyJs_anonymous_282_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_284_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'has', 'hide', 'TPL', 'exports', 'module', 'TO_STRING', 'global', '$toString', 'SRC'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('SRC', var.get('require')(Js('./_uid'))(Js('src')))
|
|
var.put('$toString', var.get('require')(Js('./_function-to-string')))
|
|
var.put('TO_STRING', Js('toString'))
|
|
var.put('TPL', (Js('')+var.get('$toString')).callprop('split', var.get('TO_STRING')))
|
|
@Js
|
|
def PyJs_anonymous_285_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('$toString').callprop('call', var.get('it'))
|
|
PyJs_anonymous_285_._set_name('anonymous')
|
|
var.get('require')(Js('./_core')).put('inspectSource', PyJs_anonymous_285_)
|
|
@Js
|
|
def PyJs_toString_286_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_286_}, var)
|
|
var.registers([])
|
|
return (((var.get(u"this",throw=False).typeof()==Js('function')) and var.get(u"this").get(var.get('SRC'))) or var.get('$toString').callprop('call', var.get(u"this")))
|
|
PyJs_toString_286_._set_name('toString')
|
|
@Js
|
|
def PyJs_anonymous_287_(O, key, val, safe, this, arguments, var=var):
|
|
var = Scope({'O':O, 'key':key, 'val':val, 'safe':safe, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['isFunction', 'safe', 'val', 'O', 'key'])
|
|
var.put('isFunction', (var.get('val',throw=False).typeof()==Js('function')))
|
|
if var.get('isFunction'):
|
|
(var.get('has')(var.get('val'), Js('name')) or var.get('hide')(var.get('val'), Js('name'), var.get('key')))
|
|
if PyJsStrictEq(var.get('O').get(var.get('key')),var.get('val')):
|
|
return var.get('undefined')
|
|
if var.get('isFunction'):
|
|
(var.get('has')(var.get('val'), var.get('SRC')) or var.get('hide')(var.get('val'), var.get('SRC'), ((Js('')+var.get('O').get(var.get('key'))) if var.get('O').get(var.get('key')) else var.get('TPL').callprop('join', var.get('String')(var.get('key'))))))
|
|
if PyJsStrictEq(var.get('O'),var.get('global')):
|
|
var.get('O').put(var.get('key'), var.get('val'))
|
|
else:
|
|
if var.get('safe').neg():
|
|
var.get('O').delete(var.get('key'))
|
|
var.get('hide')(var.get('O'), var.get('key'), var.get('val'))
|
|
else:
|
|
if var.get('O').get(var.get('key')):
|
|
var.get('O').put(var.get('key'), var.get('val'))
|
|
else:
|
|
var.get('hide')(var.get('O'), var.get('key'), var.get('val'))
|
|
PyJs_anonymous_287_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_287_)(var.get('Function').get('prototype'), var.get('TO_STRING'), PyJs_toString_286_)
|
|
PyJs_anonymous_284_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_288_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'builtinExec', 'classof', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('classof', var.get('require')(Js('./_classof')))
|
|
var.put('builtinExec', var.get('RegExp').get('prototype').get('exec'))
|
|
@Js
|
|
def PyJs_anonymous_289_(R, S, this, arguments, var=var):
|
|
var = Scope({'R':R, 'S':S, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['result', 'exec', 'S', 'R'])
|
|
var.put('exec', var.get('R').get('exec'))
|
|
if PyJsStrictEq(var.get('exec',throw=False).typeof(),Js('function')):
|
|
var.put('result', var.get('exec').callprop('call', var.get('R'), var.get('S')))
|
|
if PyJsStrictNeq((Js('undefined') if PyJsStrictEq(var.get('result',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('result'))),Js('object')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError').create(Js('RegExp exec method returned something other than an Object or null')))
|
|
raise PyJsTempException
|
|
return var.get('result')
|
|
if PyJsStrictNeq(var.get('classof')(var.get('R')),Js('RegExp')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError').create(Js('RegExp#exec called on incompatible receiver')))
|
|
raise PyJsTempException
|
|
return var.get('builtinExec').callprop('call', var.get('R'), var.get('S'))
|
|
PyJs_anonymous_289_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_289_)
|
|
PyJs_anonymous_288_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_290_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'UPDATES_LAST_INDEX_WRONG', 'regexpFlags', 'NPCG_INCLUDED', 'nativeExec', 'PATCH', 'nativeReplace', 'exports', 'LAST_INDEX', 'module', 'patchedExec'])
|
|
Js('use strict')
|
|
var.put('regexpFlags', var.get('require')(Js('./_flags')))
|
|
var.put('nativeExec', var.get('RegExp').get('prototype').get('exec'))
|
|
var.put('nativeReplace', var.get('String').get('prototype').get('replace'))
|
|
var.put('patchedExec', var.get('nativeExec'))
|
|
var.put('LAST_INDEX', Js('lastIndex'))
|
|
@Js
|
|
def PyJs_anonymous_291_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['re2', 're1'])
|
|
var.put('re1', JsRegExp('/a/'))
|
|
var.put('re2', JsRegExp('/b*/g'))
|
|
var.get('nativeExec').callprop('call', var.get('re1'), Js('a'))
|
|
var.get('nativeExec').callprop('call', var.get('re2'), Js('a'))
|
|
return (PyJsStrictNeq(var.get('re1').get(var.get('LAST_INDEX')),Js(0.0)) or PyJsStrictNeq(var.get('re2').get(var.get('LAST_INDEX')),Js(0.0)))
|
|
PyJs_anonymous_291_._set_name('anonymous')
|
|
var.put('UPDATES_LAST_INDEX_WRONG', PyJs_anonymous_291_())
|
|
var.put('NPCG_INCLUDED', PyJsStrictNeq(JsRegExp('/()??/').callprop('exec', Js('')).get('1'),var.get('undefined')))
|
|
var.put('PATCH', (var.get('UPDATES_LAST_INDEX_WRONG') or var.get('NPCG_INCLUDED')))
|
|
if var.get('PATCH'):
|
|
@Js
|
|
def PyJs_exec_292_(str, this, arguments, var=var):
|
|
var = Scope({'str':str, 'this':this, 'arguments':arguments, 'exec':PyJs_exec_292_}, var)
|
|
var.registers(['reCopy', 'str', 're', 'i', 'match', 'lastIndex'])
|
|
var.put('re', var.get(u"this"))
|
|
pass
|
|
if var.get('NPCG_INCLUDED'):
|
|
var.put('reCopy', var.get('RegExp').create(((Js('^')+var.get('re').get('source'))+Js('$(?!\\s)')), var.get('regexpFlags').callprop('call', var.get('re'))))
|
|
if var.get('UPDATES_LAST_INDEX_WRONG'):
|
|
var.put('lastIndex', var.get('re').get(var.get('LAST_INDEX')))
|
|
var.put('match', var.get('nativeExec').callprop('call', var.get('re'), var.get('str')))
|
|
if (var.get('UPDATES_LAST_INDEX_WRONG') and var.get('match')):
|
|
var.get('re').put(var.get('LAST_INDEX'), ((var.get('match').get('index')+var.get('match').get('0').get('length')) if var.get('re').get('global') else var.get('lastIndex')))
|
|
if ((var.get('NPCG_INCLUDED') and var.get('match')) and (var.get('match').get('length')>Js(1.0))):
|
|
@Js
|
|
def PyJs_anonymous_293_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
#for JS loop
|
|
var.put('i', Js(1.0))
|
|
while (var.get('i')<(var.get('arguments').get('length')-Js(2.0))):
|
|
try:
|
|
if PyJsStrictEq(var.get('arguments').get(var.get('i')),var.get('undefined')):
|
|
var.get('match').put(var.get('i'), var.get('undefined'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_293_._set_name('anonymous')
|
|
var.get('nativeReplace').callprop('call', var.get('match').get('0'), var.get('reCopy'), PyJs_anonymous_293_)
|
|
return var.get('match')
|
|
PyJs_exec_292_._set_name('exec')
|
|
var.put('patchedExec', PyJs_exec_292_)
|
|
var.get('module').put('exports', var.get('patchedExec'))
|
|
PyJs_anonymous_290_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_294_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_295_(regExp, replace, this, arguments, var=var):
|
|
var = Scope({'regExp':regExp, 'replace':replace, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['replacer', 'replace', 'regExp'])
|
|
@Js
|
|
def PyJs_anonymous_296_(part, this, arguments, var=var):
|
|
var = Scope({'part':part, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['part'])
|
|
return var.get('replace').get(var.get('part'))
|
|
PyJs_anonymous_296_._set_name('anonymous')
|
|
var.put('replacer', (PyJs_anonymous_296_ if PyJsStrictEq(var.get('replace'),var.get('Object')(var.get('replace'))) else var.get('replace')))
|
|
@Js
|
|
def PyJs_anonymous_297_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('String')(var.get('it')).callprop('replace', var.get('regExp'), var.get('replacer'))
|
|
PyJs_anonymous_297_._set_name('anonymous')
|
|
return PyJs_anonymous_297_
|
|
PyJs_anonymous_295_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_295_)
|
|
PyJs_anonymous_294_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_298_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_InlineNonPyName_299_(x, y, this, arguments, var=var):
|
|
var = Scope({'x':x, 'y':y, 'this':this, 'arguments':arguments, 'is':PyJs_InlineNonPyName_299_}, var)
|
|
var.registers(['x', 'y'])
|
|
return ((PyJsStrictNeq(var.get('x'),Js(0.0)) or PyJsStrictEq((Js(1.0)/var.get('x')),(Js(1.0)/var.get('y')))) if PyJsStrictEq(var.get('x'),var.get('y')) else ((var.get('x')!=var.get('x')) and (var.get('y')!=var.get('y'))))
|
|
PyJs_InlineNonPyName_299_._set_name('is')
|
|
var.get('module').put('exports', (var.get('Object').get('is') or PyJs_InlineNonPyName_299_))
|
|
PyJs_anonymous_298_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_300_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', '$export', 'exports', 'module', 'forOf', 'ctx'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('forOf', var.get('require')(Js('./_for-of')))
|
|
@Js
|
|
def PyJs_anonymous_301_(COLLECTION, this, arguments, var=var):
|
|
var = Scope({'COLLECTION':COLLECTION, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['COLLECTION'])
|
|
@Js
|
|
def PyJs_InlineNonPyName_302_(source, this, arguments, var=var):
|
|
var = Scope({'source':source, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_302_}, var)
|
|
var.registers(['mapFn', 'cb', 'n', 'A', 'source', 'mapping'])
|
|
var.put('mapFn', var.get('arguments').get('1'))
|
|
pass
|
|
var.get('aFunction')(var.get(u"this"))
|
|
var.put('mapping', PyJsStrictNeq(var.get('mapFn'),var.get('undefined')))
|
|
if var.get('mapping'):
|
|
var.get('aFunction')(var.get('mapFn'))
|
|
if (var.get('source')==var.get('undefined')):
|
|
return var.get(u"this").create()
|
|
var.put('A', Js([]))
|
|
if var.get('mapping'):
|
|
var.put('n', Js(0.0))
|
|
var.put('cb', var.get('ctx')(var.get('mapFn'), var.get('arguments').get('2'), Js(2.0)))
|
|
@Js
|
|
def PyJs_anonymous_303_(nextItem, this, arguments, var=var):
|
|
var = Scope({'nextItem':nextItem, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['nextItem'])
|
|
var.get('A').callprop('push', var.get('cb')(var.get('nextItem'), (var.put('n',Js(var.get('n').to_number())+Js(1))-Js(1))))
|
|
PyJs_anonymous_303_._set_name('anonymous')
|
|
var.get('forOf')(var.get('source'), Js(False), PyJs_anonymous_303_)
|
|
else:
|
|
var.get('forOf')(var.get('source'), Js(False), var.get('A').get('push'), var.get('A'))
|
|
return var.get(u"this").create(var.get('A'))
|
|
PyJs_InlineNonPyName_302_._set_name('from')
|
|
var.get('$export')(var.get('$export').get('S'), var.get('COLLECTION'), Js({'from':PyJs_InlineNonPyName_302_}))
|
|
PyJs_anonymous_301_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_301_)
|
|
PyJs_anonymous_300_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_304_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_anonymous_305_(COLLECTION, this, arguments, var=var):
|
|
var = Scope({'COLLECTION':COLLECTION, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['COLLECTION'])
|
|
@Js
|
|
def PyJs_of_306_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_306_}, var)
|
|
var.registers(['length', 'A'])
|
|
var.put('length', var.get('arguments').get('length'))
|
|
var.put('A', var.get('Array').create(var.get('length')))
|
|
while (var.put('length',Js(var.get('length').to_number())-Js(1))+Js(1)):
|
|
var.get('A').put(var.get('length'), var.get('arguments').get(var.get('length')))
|
|
return var.get(u"this").create(var.get('A'))
|
|
PyJs_of_306_._set_name('of')
|
|
var.get('$export')(var.get('$export').get('S'), var.get('COLLECTION'), Js({'of':PyJs_of_306_}))
|
|
PyJs_anonymous_305_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_305_)
|
|
PyJs_anonymous_304_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_307_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'check', 'isObject', 'anObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
@Js
|
|
def PyJs_check_308_(O, proto, this, arguments, var=var):
|
|
var = Scope({'O':O, 'proto':proto, 'this':this, 'arguments':arguments, 'check':PyJs_check_308_}, var)
|
|
var.registers(['O', 'proto'])
|
|
var.get('anObject')(var.get('O'))
|
|
if (var.get('isObject')(var.get('proto')).neg() and PyJsStrictNeq(var.get('proto'),var.get(u"null"))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('proto')+Js(": can't set as prototype!"))))
|
|
raise PyJsTempException
|
|
PyJs_check_308_._set_name('check')
|
|
var.put('check', PyJs_check_308_)
|
|
@Js
|
|
def PyJs_anonymous_309_(test, buggy, set, this, arguments, var=var):
|
|
var = Scope({'test':test, 'buggy':buggy, 'set':set, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['set', 'test', 'buggy'])
|
|
try:
|
|
var.put('set', var.get('require')(Js('./_ctx'))(var.get('Function').get('call'), var.get('require')(Js('./_object-gopd')).callprop('f', var.get('Object').get('prototype'), Js('__proto__')).get('set'), Js(2.0)))
|
|
var.get('set')(var.get('test'), Js([]))
|
|
var.put('buggy', var.get('test').instanceof(var.get('Array')).neg())
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_54108196 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
var.put('buggy', Js(True))
|
|
finally:
|
|
if PyJsHolder_65_54108196 is not None:
|
|
var.own['e'] = PyJsHolder_65_54108196
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_54108196
|
|
@Js
|
|
def PyJs_setPrototypeOf_310_(O, proto, this, arguments, var=var):
|
|
var = Scope({'O':O, 'proto':proto, 'this':this, 'arguments':arguments, 'setPrototypeOf':PyJs_setPrototypeOf_310_}, var)
|
|
var.registers(['O', 'proto'])
|
|
var.get('check')(var.get('O'), var.get('proto'))
|
|
if var.get('buggy'):
|
|
var.get('O').put('__proto__', var.get('proto'))
|
|
else:
|
|
var.get('set')(var.get('O'), var.get('proto'))
|
|
return var.get('O')
|
|
PyJs_setPrototypeOf_310_._set_name('setPrototypeOf')
|
|
return PyJs_setPrototypeOf_310_
|
|
PyJs_anonymous_309_._set_name('anonymous')
|
|
var.get('module').put('exports', Js({'set':(var.get('Object').get('setPrototypeOf') or (PyJs_anonymous_309_(Js({}), Js(False)) if Js({}).contains(Js('__proto__')) else var.get('undefined'))),'check':var.get('check')}))
|
|
PyJs_anonymous_307_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_311_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'SPECIES', 'DESCRIPTORS', 'exports', 'module', 'global', 'dP'])
|
|
Js('use strict')
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('dP', var.get('require')(Js('./_object-dp')))
|
|
var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors')))
|
|
var.put('SPECIES', var.get('require')(Js('./_wks'))(Js('species')))
|
|
@Js
|
|
def PyJs_anonymous_312_(KEY, this, arguments, var=var):
|
|
var = Scope({'KEY':KEY, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'KEY'])
|
|
var.put('C', var.get('global').get(var.get('KEY')))
|
|
if ((var.get('DESCRIPTORS') and var.get('C')) and var.get('C').get(var.get('SPECIES')).neg()):
|
|
@Js
|
|
def PyJs_get_313_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_313_}, var)
|
|
var.registers([])
|
|
return var.get(u"this")
|
|
PyJs_get_313_._set_name('get')
|
|
var.get('dP').callprop('f', var.get('C'), var.get('SPECIES'), Js({'configurable':Js(True),'get':PyJs_get_313_}))
|
|
PyJs_anonymous_312_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_312_)
|
|
PyJs_anonymous_311_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_314_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'def', 'TAG', 'exports', 'module', 'has'])
|
|
var.put('def', var.get('require')(Js('./_object-dp')).get('f'))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('TAG', var.get('require')(Js('./_wks'))(Js('toStringTag')))
|
|
@Js
|
|
def PyJs_anonymous_315_(it, tag, stat, this, arguments, var=var):
|
|
var = Scope({'it':it, 'tag':tag, 'stat':stat, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'tag', 'stat'])
|
|
if (var.get('it') and var.get('has')(var.put('it', (var.get('it') if var.get('stat') else var.get('it').get('prototype'))), var.get('TAG')).neg()):
|
|
var.get('def')(var.get('it'), var.get('TAG'), Js({'configurable':Js(True),'value':var.get('tag')}))
|
|
PyJs_anonymous_315_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_315_)
|
|
PyJs_anonymous_314_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_316_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'shared', 'uid', 'module'])
|
|
var.put('shared', var.get('require')(Js('./_shared'))(Js('keys')))
|
|
var.put('uid', var.get('require')(Js('./_uid')))
|
|
@Js
|
|
def PyJs_anonymous_317_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['key'])
|
|
return (var.get('shared').get(var.get('key')) or var.get('shared').put(var.get('key'), var.get('uid')(var.get('key'))))
|
|
PyJs_anonymous_317_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_317_)
|
|
PyJs_anonymous_316_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_318_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['core', 'require', 'SHARED', 'exports', 'store', 'module', 'global'])
|
|
var.put('core', var.get('require')(Js('./_core')))
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('SHARED', Js('__core-js_shared__'))
|
|
var.put('store', (var.get('global').get(var.get('SHARED')) or var.get('global').put(var.get('SHARED'), Js({}))))
|
|
@Js
|
|
def PyJs_anonymous_319_(key, value, this, arguments, var=var):
|
|
var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['value', 'key'])
|
|
return (var.get('store').get(var.get('key')) or var.get('store').put(var.get('key'), (var.get('value') if PyJsStrictNeq(var.get('value'),var.get('undefined')) else Js({}))))
|
|
PyJs_anonymous_319_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_319_)(Js('versions'), Js([])).callprop('push', Js({'version':var.get('core').get('version'),'mode':(Js('pure') if var.get('require')(Js('./_library')) else Js('global')),'copyright':Js('© 2020 Denis Pushkarev (zloirock.ru)')}))
|
|
PyJs_anonymous_318_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_320_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'SPECIES', 'exports', 'module', 'anObject'])
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('SPECIES', var.get('require')(Js('./_wks'))(Js('species')))
|
|
@Js
|
|
def PyJs_anonymous_321_(O, D, this, arguments, var=var):
|
|
var = Scope({'O':O, 'D':D, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['O', 'C', 'D', 'S'])
|
|
var.put('C', var.get('anObject')(var.get('O')).get('constructor'))
|
|
pass
|
|
return (var.get('D') if (PyJsStrictEq(var.get('C'),var.get('undefined')) or (var.put('S', var.get('anObject')(var.get('C')).get(var.get('SPECIES')))==var.get('undefined'))) else var.get('aFunction')(var.get('S')))
|
|
PyJs_anonymous_321_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_321_)
|
|
PyJs_anonymous_320_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_322_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['fails', 'module', 'require', 'exports'])
|
|
Js('use strict')
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
@Js
|
|
def PyJs_anonymous_323_(method, arg, this, arguments, var=var):
|
|
var = Scope({'method':method, 'arg':arg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['arg', 'method'])
|
|
@Js
|
|
def PyJs_anonymous_324_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_anonymous_325_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_anonymous_325_._set_name('anonymous')
|
|
(var.get('method').callprop('call', var.get(u"null"), PyJs_anonymous_325_, Js(1.0)) if var.get('arg') else var.get('method').callprop('call', var.get(u"null")))
|
|
PyJs_anonymous_324_._set_name('anonymous')
|
|
return (var.get('method').neg().neg() and var.get('fails')(PyJs_anonymous_324_))
|
|
PyJs_anonymous_323_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_323_)
|
|
PyJs_anonymous_322_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_326_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'exports', 'module', 'toInteger'])
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
@Js
|
|
def PyJs_anonymous_327_(TO_STRING, this, arguments, var=var):
|
|
var = Scope({'TO_STRING':TO_STRING, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['TO_STRING'])
|
|
@Js
|
|
def PyJs_anonymous_328_(that, pos, this, arguments, var=var):
|
|
var = Scope({'that':that, 'pos':pos, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['pos', 'i', 'that', 'a', 'b', 's', 'l'])
|
|
var.put('s', var.get('String')(var.get('defined')(var.get('that'))))
|
|
var.put('i', var.get('toInteger')(var.get('pos')))
|
|
var.put('l', var.get('s').get('length'))
|
|
pass
|
|
if ((var.get('i')<Js(0.0)) or (var.get('i')>=var.get('l'))):
|
|
return (Js('') if var.get('TO_STRING') else var.get('undefined'))
|
|
var.put('a', var.get('s').callprop('charCodeAt', var.get('i')))
|
|
def PyJs_LONG_329_(var=var):
|
|
return ((var.get('s').callprop('charAt', var.get('i')) if var.get('TO_STRING') else var.get('a')) if (((((var.get('a')<Js(55296)) or (var.get('a')>Js(56319))) or PyJsStrictEq((var.get('i')+Js(1.0)),var.get('l'))) or (var.put('b', var.get('s').callprop('charCodeAt', (var.get('i')+Js(1.0))))<Js(56320))) or (var.get('b')>Js(57343))) else (var.get('s').callprop('slice', var.get('i'), (var.get('i')+Js(2.0))) if var.get('TO_STRING') else ((((var.get('a')-Js(55296))<<Js(10.0))+(var.get('b')-Js(56320)))+Js(65536))))
|
|
return PyJs_LONG_329_()
|
|
PyJs_anonymous_328_._set_name('anonymous')
|
|
return PyJs_anonymous_328_
|
|
PyJs_anonymous_327_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_327_)
|
|
PyJs_anonymous_326_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_330_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'isRegExp', 'exports', 'module'])
|
|
var.put('isRegExp', var.get('require')(Js('./_is-regexp')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
@Js
|
|
def PyJs_anonymous_331_(that, searchString, NAME, this, arguments, var=var):
|
|
var = Scope({'that':that, 'searchString':searchString, 'NAME':NAME, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['NAME', 'searchString', 'that'])
|
|
if var.get('isRegExp')(var.get('searchString')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(((Js('String#')+var.get('NAME'))+Js(" doesn't accept regex!"))))
|
|
raise PyJsTempException
|
|
return var.get('String')(var.get('defined')(var.get('that')))
|
|
PyJs_anonymous_331_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_331_)
|
|
PyJs_anonymous_330_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_332_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'createHTML', '$export', 'exports', 'module', 'quot', 'fails'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
var.put('quot', JsRegExp('/"/g'))
|
|
@Js
|
|
def PyJs_createHTML_333_(string, tag, attribute, value, this, arguments, var=var):
|
|
var = Scope({'string':string, 'tag':tag, 'attribute':attribute, 'value':value, 'this':this, 'arguments':arguments, 'createHTML':PyJs_createHTML_333_}, var)
|
|
var.registers(['string', 'p1', 'attribute', 'value', 'tag', 'S'])
|
|
var.put('S', var.get('String')(var.get('defined')(var.get('string'))))
|
|
var.put('p1', (Js('<')+var.get('tag')))
|
|
if PyJsStrictNeq(var.get('attribute'),Js('')):
|
|
var.put('p1', ((((Js(' ')+var.get('attribute'))+Js('="'))+var.get('String')(var.get('value')).callprop('replace', var.get('quot'), Js('"')))+Js('"')), '+')
|
|
return (((((var.get('p1')+Js('>'))+var.get('S'))+Js('</'))+var.get('tag'))+Js('>'))
|
|
PyJs_createHTML_333_._set_name('createHTML')
|
|
var.put('createHTML', PyJs_createHTML_333_)
|
|
@Js
|
|
def PyJs_anonymous_334_(NAME, exec, this, arguments, var=var):
|
|
var = Scope({'NAME':NAME, 'exec':exec, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['NAME', 'O', 'exec'])
|
|
var.put('O', Js({}))
|
|
var.get('O').put(var.get('NAME'), var.get('exec')(var.get('createHTML')))
|
|
@Js
|
|
def PyJs_anonymous_335_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['test'])
|
|
var.put('test', Js('').callprop(var.get('NAME'), Js('"')))
|
|
return (PyJsStrictNeq(var.get('test'),var.get('test').callprop('toLowerCase')) or (var.get('test').callprop('split', Js('"')).get('length')>Js(3.0)))
|
|
PyJs_anonymous_335_._set_name('anonymous')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('fails')(PyJs_anonymous_335_))), Js('String'), var.get('O'))
|
|
PyJs_anonymous_334_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_334_)
|
|
PyJs_anonymous_332_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_336_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'toLength', 'exports', 'module', 'repeat'])
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('repeat', var.get('require')(Js('./_string-repeat')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
@Js
|
|
def PyJs_anonymous_337_(that, maxLength, fillString, left, this, arguments, var=var):
|
|
var = Scope({'that':that, 'maxLength':maxLength, 'fillString':fillString, 'left':left, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['intMaxLength', 'fillString', 'fillStr', 'left', 'that', 'stringLength', 'maxLength', 'fillLen', 'stringFiller', 'S'])
|
|
var.put('S', var.get('String')(var.get('defined')(var.get('that'))))
|
|
var.put('stringLength', var.get('S').get('length'))
|
|
var.put('fillStr', (Js(' ') if PyJsStrictEq(var.get('fillString'),var.get('undefined')) else var.get('String')(var.get('fillString'))))
|
|
var.put('intMaxLength', var.get('toLength')(var.get('maxLength')))
|
|
if ((var.get('intMaxLength')<=var.get('stringLength')) or (var.get('fillStr')==Js(''))):
|
|
return var.get('S')
|
|
var.put('fillLen', (var.get('intMaxLength')-var.get('stringLength')))
|
|
var.put('stringFiller', var.get('repeat').callprop('call', var.get('fillStr'), var.get('Math').callprop('ceil', (var.get('fillLen')/var.get('fillStr').get('length')))))
|
|
if (var.get('stringFiller').get('length')>var.get('fillLen')):
|
|
var.put('stringFiller', var.get('stringFiller').callprop('slice', Js(0.0), var.get('fillLen')))
|
|
return ((var.get('stringFiller')+var.get('S')) if var.get('left') else (var.get('S')+var.get('stringFiller')))
|
|
PyJs_anonymous_337_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_337_)
|
|
PyJs_anonymous_336_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_338_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'exports', 'module', 'toInteger'])
|
|
Js('use strict')
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
@Js
|
|
def PyJs_repeat_339_(count, this, arguments, var=var):
|
|
var = Scope({'count':count, 'this':this, 'arguments':arguments, 'repeat':PyJs_repeat_339_}, var)
|
|
var.registers(['str', 'count', 'n', 'res'])
|
|
var.put('str', var.get('String')(var.get('defined')(var.get(u"this"))))
|
|
var.put('res', Js(''))
|
|
var.put('n', var.get('toInteger')(var.get('count')))
|
|
if ((var.get('n')<Js(0.0)) or (var.get('n')==var.get('Infinity'))):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(Js("Count can't be negative")))
|
|
raise PyJsTempException
|
|
#for JS loop
|
|
|
|
while (var.get('n')>Js(0.0)):
|
|
try:
|
|
if (var.get('n')&Js(1.0)):
|
|
var.put('res', var.get('str'), '+')
|
|
finally:
|
|
(var.put('n', Js(1.0), '>>>') and var.put('str', var.get('str'), '+'))
|
|
return var.get('res')
|
|
PyJs_repeat_339_._set_name('repeat')
|
|
var.get('module').put('exports', PyJs_repeat_339_)
|
|
PyJs_anonymous_338_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_340_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['rtrim', 'non', 'defined', 'require', 'spaces', 'ltrim', 'exporter', '$export', 'exports', 'module', 'fails', 'space', 'trim'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('spaces', var.get('require')(Js('./_string-ws')))
|
|
var.put('space', ((Js('[')+var.get('spaces'))+Js(']')))
|
|
var.put('non', Js('\u200b\x85'))
|
|
var.put('ltrim', var.get('RegExp')((((Js('^')+var.get('space'))+var.get('space'))+Js('*'))))
|
|
var.put('rtrim', var.get('RegExp')(((var.get('space')+var.get('space'))+Js('*$'))))
|
|
@Js
|
|
def PyJs_exporter_341_(KEY, exec, ALIAS, this, arguments, var=var):
|
|
var = Scope({'KEY':KEY, 'exec':exec, 'ALIAS':ALIAS, 'this':this, 'arguments':arguments, 'exporter':PyJs_exporter_341_}, var)
|
|
var.registers(['KEY', 'ALIAS', 'fn', 'FORCE', 'exec', 'exp'])
|
|
var.put('exp', Js({}))
|
|
@Js
|
|
def PyJs_anonymous_342_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return (var.get('spaces').callprop(var.get('KEY')).neg().neg() or (var.get('non').callprop(var.get('KEY'))!=var.get('non')))
|
|
PyJs_anonymous_342_._set_name('anonymous')
|
|
var.put('FORCE', var.get('fails')(PyJs_anonymous_342_))
|
|
var.put('fn', var.get('exp').put(var.get('KEY'), (var.get('exec')(var.get('trim')) if var.get('FORCE') else var.get('spaces').get(var.get('KEY')))))
|
|
if var.get('ALIAS'):
|
|
var.get('exp').put(var.get('ALIAS'), var.get('fn'))
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('FORCE'))), Js('String'), var.get('exp'))
|
|
PyJs_exporter_341_._set_name('exporter')
|
|
var.put('exporter', PyJs_exporter_341_)
|
|
@Js
|
|
def PyJs_anonymous_343_(string, TYPE, this, arguments, var=var):
|
|
var = Scope({'string':string, 'TYPE':TYPE, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['TYPE', 'string'])
|
|
var.put('string', var.get('String')(var.get('defined')(var.get('string'))))
|
|
if (var.get('TYPE')&Js(1.0)):
|
|
var.put('string', var.get('string').callprop('replace', var.get('ltrim'), Js('')))
|
|
if (var.get('TYPE')&Js(2.0)):
|
|
var.put('string', var.get('string').callprop('replace', var.get('rtrim'), Js('')))
|
|
return var.get('string')
|
|
PyJs_anonymous_343_._set_name('anonymous')
|
|
var.put('trim', var.get('exporter').put('trim', PyJs_anonymous_343_))
|
|
var.get('module').put('exports', var.get('exporter'))
|
|
PyJs_anonymous_340_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_344_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('module').put('exports', (Js('\t\n\x0b\x0c\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003')+Js('\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff')))
|
|
PyJs_anonymous_344_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_345_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['clearTask', 'Dispatch', 'defer', 'port', 'process', 'invoke', 'require', 'ONREADYSTATECHANGE', 'setTask', 'cel', 'counter', 'module', 'run', 'channel', 'global', 'html', 'MessageChannel', 'exports', 'queue', 'listener', 'ctx'])
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('invoke', var.get('require')(Js('./_invoke')))
|
|
var.put('html', var.get('require')(Js('./_html')))
|
|
var.put('cel', var.get('require')(Js('./_dom-create')))
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('process', var.get('global').get('process'))
|
|
var.put('setTask', var.get('global').get('setImmediate'))
|
|
var.put('clearTask', var.get('global').get('clearImmediate'))
|
|
var.put('MessageChannel', var.get('global').get('MessageChannel'))
|
|
var.put('Dispatch', var.get('global').get('Dispatch'))
|
|
var.put('counter', Js(0.0))
|
|
var.put('queue', Js({}))
|
|
var.put('ONREADYSTATECHANGE', Js('onreadystatechange'))
|
|
pass
|
|
@Js
|
|
def PyJs_run_346_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'run':PyJs_run_346_}, var)
|
|
var.registers(['fn', 'id'])
|
|
var.put('id', (+var.get(u"this")))
|
|
if var.get('queue').callprop('hasOwnProperty', var.get('id')):
|
|
var.put('fn', var.get('queue').get(var.get('id')))
|
|
var.get('queue').delete(var.get('id'))
|
|
var.get('fn')()
|
|
PyJs_run_346_._set_name('run')
|
|
var.put('run', PyJs_run_346_)
|
|
@Js
|
|
def PyJs_listener_347_(event, this, arguments, var=var):
|
|
var = Scope({'event':event, 'this':this, 'arguments':arguments, 'listener':PyJs_listener_347_}, var)
|
|
var.registers(['event'])
|
|
var.get('run').callprop('call', var.get('event').get('data'))
|
|
PyJs_listener_347_._set_name('listener')
|
|
var.put('listener', PyJs_listener_347_)
|
|
if (var.get('setTask').neg() or var.get('clearTask').neg()):
|
|
@Js
|
|
def PyJs_setImmediate_348_(fn, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'setImmediate':PyJs_setImmediate_348_}, var)
|
|
var.registers(['i', 'fn', 'args'])
|
|
var.put('args', Js([]))
|
|
var.put('i', Js(1.0))
|
|
while (var.get('arguments').get('length')>var.get('i')):
|
|
var.get('args').callprop('push', var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))
|
|
@Js
|
|
def PyJs_anonymous_349_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('invoke')((var.get('fn') if (var.get('fn',throw=False).typeof()==Js('function')) else var.get('Function')(var.get('fn'))), var.get('args'))
|
|
PyJs_anonymous_349_._set_name('anonymous')
|
|
var.get('queue').put(var.put('counter',Js(var.get('counter').to_number())+Js(1)), PyJs_anonymous_349_)
|
|
var.get('defer')(var.get('counter'))
|
|
return var.get('counter')
|
|
PyJs_setImmediate_348_._set_name('setImmediate')
|
|
var.put('setTask', PyJs_setImmediate_348_)
|
|
@Js
|
|
def PyJs_clearImmediate_350_(id, this, arguments, var=var):
|
|
var = Scope({'id':id, 'this':this, 'arguments':arguments, 'clearImmediate':PyJs_clearImmediate_350_}, var)
|
|
var.registers(['id'])
|
|
var.get('queue').delete(var.get('id'))
|
|
PyJs_clearImmediate_350_._set_name('clearImmediate')
|
|
var.put('clearTask', PyJs_clearImmediate_350_)
|
|
if (var.get('require')(Js('./_cof'))(var.get('process'))==Js('process')):
|
|
@Js
|
|
def PyJs_defer_351_(id, this, arguments, var=var):
|
|
var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_351_}, var)
|
|
var.registers(['id'])
|
|
var.get('process').callprop('nextTick', var.get('ctx')(var.get('run'), var.get('id'), Js(1.0)))
|
|
PyJs_defer_351_._set_name('defer')
|
|
var.put('defer', PyJs_defer_351_)
|
|
else:
|
|
if (var.get('Dispatch') and var.get('Dispatch').get('now')):
|
|
@Js
|
|
def PyJs_defer_352_(id, this, arguments, var=var):
|
|
var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_352_}, var)
|
|
var.registers(['id'])
|
|
var.get('Dispatch').callprop('now', var.get('ctx')(var.get('run'), var.get('id'), Js(1.0)))
|
|
PyJs_defer_352_._set_name('defer')
|
|
var.put('defer', PyJs_defer_352_)
|
|
else:
|
|
if var.get('MessageChannel'):
|
|
var.put('channel', var.get('MessageChannel').create())
|
|
var.put('port', var.get('channel').get('port2'))
|
|
var.get('channel').get('port1').put('onmessage', var.get('listener'))
|
|
var.put('defer', var.get('ctx')(var.get('port').get('postMessage'), var.get('port'), Js(1.0)))
|
|
else:
|
|
if ((var.get('global').get('addEventListener') and (var.get('postMessage',throw=False).typeof()==Js('function'))) and var.get('global').get('importScripts').neg()):
|
|
@Js
|
|
def PyJs_defer_353_(id, this, arguments, var=var):
|
|
var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_353_}, var)
|
|
var.registers(['id'])
|
|
var.get('global').callprop('postMessage', (var.get('id')+Js('')), Js('*'))
|
|
PyJs_defer_353_._set_name('defer')
|
|
var.put('defer', PyJs_defer_353_)
|
|
var.get('global').callprop('addEventListener', Js('message'), var.get('listener'), Js(False))
|
|
else:
|
|
if var.get('cel')(Js('script')).contains(var.get('ONREADYSTATECHANGE')):
|
|
@Js
|
|
def PyJs_defer_354_(id, this, arguments, var=var):
|
|
var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_354_}, var)
|
|
var.registers(['id'])
|
|
@Js
|
|
def PyJs_anonymous_355_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('html').callprop('removeChild', var.get(u"this"))
|
|
var.get('run').callprop('call', var.get('id'))
|
|
PyJs_anonymous_355_._set_name('anonymous')
|
|
var.get('html').callprop('appendChild', var.get('cel')(Js('script'))).put(var.get('ONREADYSTATECHANGE'), PyJs_anonymous_355_)
|
|
PyJs_defer_354_._set_name('defer')
|
|
var.put('defer', PyJs_defer_354_)
|
|
else:
|
|
@Js
|
|
def PyJs_defer_356_(id, this, arguments, var=var):
|
|
var = Scope({'id':id, 'this':this, 'arguments':arguments, 'defer':PyJs_defer_356_}, var)
|
|
var.registers(['id'])
|
|
var.get('setTimeout')(var.get('ctx')(var.get('run'), var.get('id'), Js(1.0)), Js(0.0))
|
|
PyJs_defer_356_._set_name('defer')
|
|
var.put('defer', PyJs_defer_356_)
|
|
var.get('module').put('exports', Js({'set':var.get('setTask'),'clear':var.get('clearTask')}))
|
|
PyJs_anonymous_345_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_357_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'max', 'min', 'exports', 'module', 'toInteger'])
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('max', var.get('Math').get('max'))
|
|
var.put('min', var.get('Math').get('min'))
|
|
@Js
|
|
def PyJs_anonymous_358_(index, length, this, arguments, var=var):
|
|
var = Scope({'index':index, 'length':length, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'length'])
|
|
var.put('index', var.get('toInteger')(var.get('index')))
|
|
return (var.get('max')((var.get('index')+var.get('length')), Js(0.0)) if (var.get('index')<Js(0.0)) else var.get('min')(var.get('index'), var.get('length')))
|
|
PyJs_anonymous_358_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_358_)
|
|
PyJs_anonymous_357_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_359_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'exports', 'module', 'toInteger'])
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
@Js
|
|
def PyJs_anonymous_360_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['length', 'it', 'number'])
|
|
if PyJsStrictEq(var.get('it'),var.get('undefined')):
|
|
return Js(0.0)
|
|
var.put('number', var.get('toInteger')(var.get('it')))
|
|
var.put('length', var.get('toLength')(var.get('number')))
|
|
if PyJsStrictNeq(var.get('number'),var.get('length')):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(Js('Wrong length!')))
|
|
raise PyJsTempException
|
|
return var.get('length')
|
|
PyJs_anonymous_360_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_360_)
|
|
PyJs_anonymous_359_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_361_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'floor', 'exports', 'ceil', 'module'])
|
|
var.put('ceil', var.get('Math').get('ceil'))
|
|
var.put('floor', var.get('Math').get('floor'))
|
|
@Js
|
|
def PyJs_anonymous_362_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return (Js(0.0) if var.get('isNaN')(var.put('it', (+var.get('it')))) else (var.get('floor') if (var.get('it')>Js(0.0)) else var.get('ceil'))(var.get('it')))
|
|
PyJs_anonymous_362_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_362_)
|
|
PyJs_anonymous_361_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_363_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'exports', 'module', 'IObject'])
|
|
var.put('IObject', var.get('require')(Js('./_iobject')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
@Js
|
|
def PyJs_anonymous_364_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('IObject')(var.get('defined')(var.get('it')))
|
|
PyJs_anonymous_364_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_364_)
|
|
PyJs_anonymous_363_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_365_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'min', 'exports', 'module', 'toInteger'])
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('min', var.get('Math').get('min'))
|
|
@Js
|
|
def PyJs_anonymous_366_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return (var.get('min')(var.get('toInteger')(var.get('it')), Js(9007199254740991)) if (var.get('it')>Js(0.0)) else Js(0.0))
|
|
PyJs_anonymous_366_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_366_)
|
|
PyJs_anonymous_365_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_367_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'module', 'exports'])
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
@Js
|
|
def PyJs_anonymous_368_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('Object')(var.get('defined')(var.get('it')))
|
|
PyJs_anonymous_368_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_368_)
|
|
PyJs_anonymous_367_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_369_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'isObject', 'module', 'exports'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
@Js
|
|
def PyJs_anonymous_370_(it, S, this, arguments, var=var):
|
|
var = Scope({'it':it, 'S':S, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'fn', 'val', 'S'])
|
|
if var.get('isObject')(var.get('it')).neg():
|
|
return var.get('it')
|
|
pass
|
|
if ((var.get('S') and (var.put('fn', var.get('it').get('toString')).typeof()==Js('function'))) and var.get('isObject')(var.put('val', var.get('fn').callprop('call', var.get('it')))).neg()):
|
|
return var.get('val')
|
|
if ((var.put('fn', var.get('it').get('valueOf')).typeof()==Js('function')) and var.get('isObject')(var.put('val', var.get('fn').callprop('call', var.get('it')))).neg()):
|
|
return var.get('val')
|
|
if ((var.get('S').neg() and (var.put('fn', var.get('it').get('toString')).typeof()==Js('function'))) and var.get('isObject')(var.put('val', var.get('fn').callprop('call', var.get('it')))).neg()):
|
|
return var.get('val')
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js("Can't convert object to primitive value")))
|
|
raise PyJsTempException
|
|
PyJs_anonymous_370_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_370_)
|
|
PyJs_anonymous_369_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_371_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['dP', 'toInteger', 'arrayFindIndex', 'arrayReduce', 'TYPED_ARRAY', 'gOPN', 'createArrayIncludes', 'VIEW', 'arrayForEach', 'arrayToLocaleString', '$map', 'toPrimitive', 'arraySome', 'toObject', 'arrayEvery', 'ArrayIterators', '$from', 'arrayFilter', 'gOPD', '$setDesc', 'TYPED_CONSTRUCTOR', 'WRONG_LENGTH', 'arrayJoin', 'isObject', '$GOPD', 'addGetter', 'getIterFn', 'arraySlice', 'ITERATOR', 'toIndex', 'wks', 'ArrayProto', 'propertyDesc', 'speciesConstructor', 'DEF_CONSTRUCTOR', 'arrayToString', 'require', 'arrayFind', 'TO_LOCALE_BUG', 'createArrayMethod', 'module', 'global', 'arrayIncludes', 'PROTOTYPE', 'anInstance', 'toAbsoluteIndex', 'arrayCopyWithin', 'exports', 'Iterators', 'ctx', '$getDesc', '$buffer', '$toLocaleString', 'toLength', 'RangeError', 'uid', 'FORCED_SET', 'classof', 'allocate', '$of', '$slice', 'fails', 'arraySort', 'ALL_CONSTRUCTORS', 'arrayIndexOf', '$ArrayBuffer', 'TypeError', 'ARRAY_BUFFER', 'LITTLE_ENDIAN', '$iterators', 'has', '$iterDetect', 'hide', 'proto', 'arrayReduceRight', 'TAG', '$set', '$TypedArrayPrototype$', 'setSpecies', 'toOffset', 'arrayKeys', 'arrayValues', 'fromList', 'isTAIndex', 'LIBRARY', 'speciesFromList', 'validate', 'isArrayIter', 'arrayEntries', '$typed', 'SHARED_BUFFER', 'BYTES_PER_ELEMENT', '$DataView', 'getPrototypeOf', 'create', 'arrayLastIndexOf', 'Uint8Array', '$DP', 'redefineAll', 'arrayFill', '$export'])
|
|
Js('use strict')
|
|
if var.get('require')(Js('./_descriptors')):
|
|
var.put('LIBRARY', var.get('require')(Js('./_library')))
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$typed', var.get('require')(Js('./_typed')))
|
|
var.put('$buffer', var.get('require')(Js('./_typed-buffer')))
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('anInstance', var.get('require')(Js('./_an-instance')))
|
|
var.put('propertyDesc', var.get('require')(Js('./_property-desc')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('redefineAll', var.get('require')(Js('./_redefine-all')))
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('toIndex', var.get('require')(Js('./_to-index')))
|
|
var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('classof', var.get('require')(Js('./_classof')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('isArrayIter', var.get('require')(Js('./_is-array-iter')))
|
|
var.put('create', var.get('require')(Js('./_object-create')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f'))
|
|
var.put('getIterFn', var.get('require')(Js('./core.get-iterator-method')))
|
|
var.put('uid', var.get('require')(Js('./_uid')))
|
|
var.put('wks', var.get('require')(Js('./_wks')))
|
|
var.put('createArrayMethod', var.get('require')(Js('./_array-methods')))
|
|
var.put('createArrayIncludes', var.get('require')(Js('./_array-includes')))
|
|
var.put('speciesConstructor', var.get('require')(Js('./_species-constructor')))
|
|
var.put('ArrayIterators', var.get('require')(Js('./es6.array.iterator')))
|
|
var.put('Iterators', var.get('require')(Js('./_iterators')))
|
|
var.put('$iterDetect', var.get('require')(Js('./_iter-detect')))
|
|
var.put('setSpecies', var.get('require')(Js('./_set-species')))
|
|
var.put('arrayFill', var.get('require')(Js('./_array-fill')))
|
|
var.put('arrayCopyWithin', var.get('require')(Js('./_array-copy-within')))
|
|
var.put('$DP', var.get('require')(Js('./_object-dp')))
|
|
var.put('$GOPD', var.get('require')(Js('./_object-gopd')))
|
|
var.put('dP', var.get('$DP').get('f'))
|
|
var.put('gOPD', var.get('$GOPD').get('f'))
|
|
var.put('RangeError', var.get('global').get('RangeError'))
|
|
var.put('TypeError', var.get('global').get('TypeError'))
|
|
var.put('Uint8Array', var.get('global').get('Uint8Array'))
|
|
var.put('ARRAY_BUFFER', Js('ArrayBuffer'))
|
|
var.put('SHARED_BUFFER', (Js('Shared')+var.get('ARRAY_BUFFER')))
|
|
var.put('BYTES_PER_ELEMENT', Js('BYTES_PER_ELEMENT'))
|
|
var.put('PROTOTYPE', Js('prototype'))
|
|
var.put('ArrayProto', var.get('Array').get(var.get('PROTOTYPE')))
|
|
var.put('$ArrayBuffer', var.get('$buffer').get('ArrayBuffer'))
|
|
var.put('$DataView', var.get('$buffer').get('DataView'))
|
|
var.put('arrayForEach', var.get('createArrayMethod')(Js(0.0)))
|
|
var.put('arrayFilter', var.get('createArrayMethod')(Js(2.0)))
|
|
var.put('arraySome', var.get('createArrayMethod')(Js(3.0)))
|
|
var.put('arrayEvery', var.get('createArrayMethod')(Js(4.0)))
|
|
var.put('arrayFind', var.get('createArrayMethod')(Js(5.0)))
|
|
var.put('arrayFindIndex', var.get('createArrayMethod')(Js(6.0)))
|
|
var.put('arrayIncludes', var.get('createArrayIncludes')(Js(True)))
|
|
var.put('arrayIndexOf', var.get('createArrayIncludes')(Js(False)))
|
|
var.put('arrayValues', var.get('ArrayIterators').get('values'))
|
|
var.put('arrayKeys', var.get('ArrayIterators').get('keys'))
|
|
var.put('arrayEntries', var.get('ArrayIterators').get('entries'))
|
|
var.put('arrayLastIndexOf', var.get('ArrayProto').get('lastIndexOf'))
|
|
var.put('arrayReduce', var.get('ArrayProto').get('reduce'))
|
|
var.put('arrayReduceRight', var.get('ArrayProto').get('reduceRight'))
|
|
var.put('arrayJoin', var.get('ArrayProto').get('join'))
|
|
var.put('arraySort', var.get('ArrayProto').get('sort'))
|
|
var.put('arraySlice', var.get('ArrayProto').get('slice'))
|
|
var.put('arrayToString', var.get('ArrayProto').get('toString'))
|
|
var.put('arrayToLocaleString', var.get('ArrayProto').get('toLocaleString'))
|
|
var.put('ITERATOR', var.get('wks')(Js('iterator')))
|
|
var.put('TAG', var.get('wks')(Js('toStringTag')))
|
|
var.put('TYPED_CONSTRUCTOR', var.get('uid')(Js('typed_constructor')))
|
|
var.put('DEF_CONSTRUCTOR', var.get('uid')(Js('def_constructor')))
|
|
var.put('ALL_CONSTRUCTORS', var.get('$typed').get('CONSTR'))
|
|
var.put('TYPED_ARRAY', var.get('$typed').get('TYPED'))
|
|
var.put('VIEW', var.get('$typed').get('VIEW'))
|
|
var.put('WRONG_LENGTH', Js('Wrong length!'))
|
|
@Js
|
|
def PyJs_anonymous_372_(O, length, this, arguments, var=var):
|
|
var = Scope({'O':O, 'length':length, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['length', 'O'])
|
|
return var.get('allocate')(var.get('speciesConstructor')(var.get('O'), var.get('O').get(var.get('DEF_CONSTRUCTOR'))), var.get('length'))
|
|
PyJs_anonymous_372_._set_name('anonymous')
|
|
var.put('$map', var.get('createArrayMethod')(Js(1.0), PyJs_anonymous_372_))
|
|
@Js
|
|
def PyJs_anonymous_373_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return PyJsStrictEq(var.get('Uint8Array').create(var.get('Uint16Array').create(Js([Js(1.0)])).get('buffer')).get('0'),Js(1.0))
|
|
PyJs_anonymous_373_._set_name('anonymous')
|
|
var.put('LITTLE_ENDIAN', var.get('fails')(PyJs_anonymous_373_))
|
|
@Js
|
|
def PyJs_anonymous_374_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('Uint8Array').create(Js(1.0)).callprop('set', Js({}))
|
|
PyJs_anonymous_374_._set_name('anonymous')
|
|
var.put('FORCED_SET', ((var.get('Uint8Array').neg().neg() and var.get('Uint8Array').get(var.get('PROTOTYPE')).get('set').neg().neg()) and var.get('fails')(PyJs_anonymous_374_)))
|
|
@Js
|
|
def PyJs_toOffset_375_(it, BYTES, this, arguments, var=var):
|
|
var = Scope({'it':it, 'BYTES':BYTES, 'this':this, 'arguments':arguments, 'toOffset':PyJs_toOffset_375_}, var)
|
|
var.registers(['offset', 'it', 'BYTES'])
|
|
var.put('offset', var.get('toInteger')(var.get('it')))
|
|
if ((var.get('offset')<Js(0.0)) or (var.get('offset')%var.get('BYTES'))):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(Js('Wrong offset!')))
|
|
raise PyJsTempException
|
|
return var.get('offset')
|
|
PyJs_toOffset_375_._set_name('toOffset')
|
|
var.put('toOffset', PyJs_toOffset_375_)
|
|
@Js
|
|
def PyJs_validate_376_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'validate':PyJs_validate_376_}, var)
|
|
var.registers(['it'])
|
|
if (var.get('isObject')(var.get('it')) and var.get('it').contains(var.get('TYPED_ARRAY'))):
|
|
return var.get('it')
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('it')+Js(' is not a typed array!'))))
|
|
raise PyJsTempException
|
|
PyJs_validate_376_._set_name('validate')
|
|
var.put('validate', PyJs_validate_376_)
|
|
@Js
|
|
def PyJs_allocate_377_(C, length, this, arguments, var=var):
|
|
var = Scope({'C':C, 'length':length, 'this':this, 'arguments':arguments, 'allocate':PyJs_allocate_377_}, var)
|
|
var.registers(['length', 'C'])
|
|
if (var.get('isObject')(var.get('C')) and var.get('C').contains(var.get('TYPED_CONSTRUCTOR'))).neg():
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js('It is not a typed array constructor!')))
|
|
raise PyJsTempException
|
|
return var.get('C').create(var.get('length'))
|
|
PyJs_allocate_377_._set_name('allocate')
|
|
var.put('allocate', PyJs_allocate_377_)
|
|
@Js
|
|
def PyJs_speciesFromList_378_(O, list, this, arguments, var=var):
|
|
var = Scope({'O':O, 'list':list, 'this':this, 'arguments':arguments, 'speciesFromList':PyJs_speciesFromList_378_}, var)
|
|
var.registers(['O', 'list'])
|
|
return var.get('fromList')(var.get('speciesConstructor')(var.get('O'), var.get('O').get(var.get('DEF_CONSTRUCTOR'))), var.get('list'))
|
|
PyJs_speciesFromList_378_._set_name('speciesFromList')
|
|
var.put('speciesFromList', PyJs_speciesFromList_378_)
|
|
@Js
|
|
def PyJs_fromList_379_(C, list, this, arguments, var=var):
|
|
var = Scope({'C':C, 'list':list, 'this':this, 'arguments':arguments, 'fromList':PyJs_fromList_379_}, var)
|
|
var.registers(['C', 'index', 'length', 'result', 'list'])
|
|
var.put('index', Js(0.0))
|
|
var.put('length', var.get('list').get('length'))
|
|
var.put('result', var.get('allocate')(var.get('C'), var.get('length')))
|
|
while (var.get('length')>var.get('index')):
|
|
var.get('result').put(var.get('index'), var.get('list').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))))
|
|
return var.get('result')
|
|
PyJs_fromList_379_._set_name('fromList')
|
|
var.put('fromList', PyJs_fromList_379_)
|
|
@Js
|
|
def PyJs_addGetter_380_(it, key, internal, this, arguments, var=var):
|
|
var = Scope({'it':it, 'key':key, 'internal':internal, 'this':this, 'arguments':arguments, 'addGetter':PyJs_addGetter_380_}, var)
|
|
var.registers(['it', 'internal', 'key'])
|
|
@Js
|
|
def PyJs_get_381_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_381_}, var)
|
|
var.registers([])
|
|
return var.get(u"this").get('_d').get(var.get('internal'))
|
|
PyJs_get_381_._set_name('get')
|
|
var.get('dP')(var.get('it'), var.get('key'), Js({'get':PyJs_get_381_}))
|
|
PyJs_addGetter_380_._set_name('addGetter')
|
|
var.put('addGetter', PyJs_addGetter_380_)
|
|
@Js
|
|
def PyJs_InlineNonPyName_382_(source, this, arguments, var=var):
|
|
var = Scope({'source':source, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_382_}, var)
|
|
var.registers(['iterator', 'length', 'i', 'source', 'mapfn', 'O', 'result', 'step', 'mapping', 'aLen', 'iterFn', 'values'])
|
|
var.put('O', var.get('toObject')(var.get('source')))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('mapfn', (var.get('arguments').get('1') if (var.get('aLen')>Js(1.0)) else var.get('undefined')))
|
|
var.put('mapping', PyJsStrictNeq(var.get('mapfn'),var.get('undefined')))
|
|
var.put('iterFn', var.get('getIterFn')(var.get('O')))
|
|
pass
|
|
if ((var.get('iterFn')!=var.get('undefined')) and var.get('isArrayIter')(var.get('iterFn')).neg()):
|
|
#for JS loop
|
|
PyJsComma(PyJsComma(var.put('iterator', var.get('iterFn').callprop('call', var.get('O'))),var.put('values', Js([]))),var.put('i', Js(0.0)))
|
|
while var.put('step', var.get('iterator').callprop('next')).get('done').neg():
|
|
try:
|
|
var.get('values').callprop('push', var.get('step').get('value'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.put('O', var.get('values'))
|
|
if (var.get('mapping') and (var.get('aLen')>Js(2.0))):
|
|
var.put('mapfn', var.get('ctx')(var.get('mapfn'), var.get('arguments').get('2'), Js(2.0)))
|
|
#for JS loop
|
|
PyJsComma(PyJsComma(var.put('i', Js(0.0)),var.put('length', var.get('toLength')(var.get('O').get('length')))),var.put('result', var.get('allocate')(var.get(u"this"), var.get('length'))))
|
|
while (var.get('length')>var.get('i')):
|
|
try:
|
|
var.get('result').put(var.get('i'), (var.get('mapfn')(var.get('O').get(var.get('i')), var.get('i')) if var.get('mapping') else var.get('O').get(var.get('i'))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('result')
|
|
PyJs_InlineNonPyName_382_._set_name('from')
|
|
var.put('$from', PyJs_InlineNonPyName_382_)
|
|
@Js
|
|
def PyJs_of_383_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_383_}, var)
|
|
var.registers(['index', 'length', 'result'])
|
|
var.put('index', Js(0.0))
|
|
var.put('length', var.get('arguments').get('length'))
|
|
var.put('result', var.get('allocate')(var.get(u"this"), var.get('length')))
|
|
while (var.get('length')>var.get('index')):
|
|
var.get('result').put(var.get('index'), var.get('arguments').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))))
|
|
return var.get('result')
|
|
PyJs_of_383_._set_name('of')
|
|
var.put('$of', PyJs_of_383_)
|
|
@Js
|
|
def PyJs_anonymous_384_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('arrayToLocaleString').callprop('call', var.get('Uint8Array').create(Js(1.0)))
|
|
PyJs_anonymous_384_._set_name('anonymous')
|
|
var.put('TO_LOCALE_BUG', (var.get('Uint8Array').neg().neg() and var.get('fails')(PyJs_anonymous_384_)))
|
|
@Js
|
|
def PyJs_toLocaleString_385_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toLocaleString':PyJs_toLocaleString_385_}, var)
|
|
var.registers([])
|
|
return var.get('arrayToLocaleString').callprop('apply', (var.get('arraySlice').callprop('call', var.get('validate')(var.get(u"this"))) if var.get('TO_LOCALE_BUG') else var.get('validate')(var.get(u"this"))), var.get('arguments'))
|
|
PyJs_toLocaleString_385_._set_name('toLocaleString')
|
|
var.put('$toLocaleString', PyJs_toLocaleString_385_)
|
|
@Js
|
|
def PyJs_copyWithin_386_(target, start, this, arguments, var=var):
|
|
var = Scope({'target':target, 'start':start, 'this':this, 'arguments':arguments, 'copyWithin':PyJs_copyWithin_386_}, var)
|
|
var.registers(['target', 'start'])
|
|
return var.get('arrayCopyWithin').callprop('call', var.get('validate')(var.get(u"this")), var.get('target'), var.get('start'), (var.get('arguments').get('2') if (var.get('arguments').get('length')>Js(2.0)) else var.get('undefined')))
|
|
PyJs_copyWithin_386_._set_name('copyWithin')
|
|
@Js
|
|
def PyJs_every_387_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'every':PyJs_every_387_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('arrayEvery')(var.get('validate')(var.get(u"this")), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_every_387_._set_name('every')
|
|
@Js
|
|
def PyJs_fill_388_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'fill':PyJs_fill_388_}, var)
|
|
var.registers(['value'])
|
|
return var.get('arrayFill').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments'))
|
|
PyJs_fill_388_._set_name('fill')
|
|
@Js
|
|
def PyJs_filter_389_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'filter':PyJs_filter_389_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('speciesFromList')(var.get(u"this"), var.get('arrayFilter')(var.get('validate')(var.get(u"this")), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined'))))
|
|
PyJs_filter_389_._set_name('filter')
|
|
@Js
|
|
def PyJs_find_390_(predicate, this, arguments, var=var):
|
|
var = Scope({'predicate':predicate, 'this':this, 'arguments':arguments, 'find':PyJs_find_390_}, var)
|
|
var.registers(['predicate'])
|
|
return var.get('arrayFind')(var.get('validate')(var.get(u"this")), var.get('predicate'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_find_390_._set_name('find')
|
|
@Js
|
|
def PyJs_findIndex_391_(predicate, this, arguments, var=var):
|
|
var = Scope({'predicate':predicate, 'this':this, 'arguments':arguments, 'findIndex':PyJs_findIndex_391_}, var)
|
|
var.registers(['predicate'])
|
|
return var.get('arrayFindIndex')(var.get('validate')(var.get(u"this")), var.get('predicate'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_findIndex_391_._set_name('findIndex')
|
|
@Js
|
|
def PyJs_forEach_392_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'forEach':PyJs_forEach_392_}, var)
|
|
var.registers(['callbackfn'])
|
|
var.get('arrayForEach')(var.get('validate')(var.get(u"this")), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_forEach_392_._set_name('forEach')
|
|
@Js
|
|
def PyJs_indexOf_393_(searchElement, this, arguments, var=var):
|
|
var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'indexOf':PyJs_indexOf_393_}, var)
|
|
var.registers(['searchElement'])
|
|
return var.get('arrayIndexOf')(var.get('validate')(var.get(u"this")), var.get('searchElement'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_indexOf_393_._set_name('indexOf')
|
|
@Js
|
|
def PyJs_includes_394_(searchElement, this, arguments, var=var):
|
|
var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'includes':PyJs_includes_394_}, var)
|
|
var.registers(['searchElement'])
|
|
return var.get('arrayIncludes')(var.get('validate')(var.get(u"this")), var.get('searchElement'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_includes_394_._set_name('includes')
|
|
@Js
|
|
def PyJs_join_395_(separator, this, arguments, var=var):
|
|
var = Scope({'separator':separator, 'this':this, 'arguments':arguments, 'join':PyJs_join_395_}, var)
|
|
var.registers(['separator'])
|
|
return var.get('arrayJoin').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments'))
|
|
PyJs_join_395_._set_name('join')
|
|
@Js
|
|
def PyJs_lastIndexOf_396_(searchElement, this, arguments, var=var):
|
|
var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'lastIndexOf':PyJs_lastIndexOf_396_}, var)
|
|
var.registers(['searchElement'])
|
|
return var.get('arrayLastIndexOf').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments'))
|
|
PyJs_lastIndexOf_396_._set_name('lastIndexOf')
|
|
@Js
|
|
def PyJs_map_397_(mapfn, this, arguments, var=var):
|
|
var = Scope({'mapfn':mapfn, 'this':this, 'arguments':arguments, 'map':PyJs_map_397_}, var)
|
|
var.registers(['mapfn'])
|
|
return var.get('$map')(var.get('validate')(var.get(u"this")), var.get('mapfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_map_397_._set_name('map')
|
|
@Js
|
|
def PyJs_reduce_398_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduce':PyJs_reduce_398_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('arrayReduce').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments'))
|
|
PyJs_reduce_398_._set_name('reduce')
|
|
@Js
|
|
def PyJs_reduceRight_399_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduceRight':PyJs_reduceRight_399_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('arrayReduceRight').callprop('apply', var.get('validate')(var.get(u"this")), var.get('arguments'))
|
|
PyJs_reduceRight_399_._set_name('reduceRight')
|
|
@Js
|
|
def PyJs_reverse_400_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'reverse':PyJs_reverse_400_}, var)
|
|
var.registers(['length', 'index', 'that', 'value', 'middle'])
|
|
var.put('that', var.get(u"this"))
|
|
var.put('length', var.get('validate')(var.get('that')).get('length'))
|
|
var.put('middle', var.get('Math').callprop('floor', (var.get('length')/Js(2.0))))
|
|
var.put('index', Js(0.0))
|
|
pass
|
|
while (var.get('index')<var.get('middle')):
|
|
var.put('value', var.get('that').get(var.get('index')))
|
|
var.get('that').put((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)), var.get('that').get(var.put('length',Js(var.get('length').to_number())-Js(1))))
|
|
var.get('that').put(var.get('length'), var.get('value'))
|
|
return var.get('that')
|
|
PyJs_reverse_400_._set_name('reverse')
|
|
@Js
|
|
def PyJs_some_401_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'some':PyJs_some_401_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('arraySome')(var.get('validate')(var.get(u"this")), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_some_401_._set_name('some')
|
|
@Js
|
|
def PyJs_sort_402_(comparefn, this, arguments, var=var):
|
|
var = Scope({'comparefn':comparefn, 'this':this, 'arguments':arguments, 'sort':PyJs_sort_402_}, var)
|
|
var.registers(['comparefn'])
|
|
return var.get('arraySort').callprop('call', var.get('validate')(var.get(u"this")), var.get('comparefn'))
|
|
PyJs_sort_402_._set_name('sort')
|
|
@Js
|
|
def PyJs_subarray_403_(begin, end, this, arguments, var=var):
|
|
var = Scope({'begin':begin, 'end':end, 'this':this, 'arguments':arguments, 'subarray':PyJs_subarray_403_}, var)
|
|
var.registers(['begin', 'length', 'end', 'O', '$begin'])
|
|
var.put('O', var.get('validate')(var.get(u"this")))
|
|
var.put('length', var.get('O').get('length'))
|
|
var.put('$begin', var.get('toAbsoluteIndex')(var.get('begin'), var.get('length')))
|
|
return var.get('speciesConstructor')(var.get('O'), var.get('O').get(var.get('DEF_CONSTRUCTOR'))).create(var.get('O').get('buffer'), (var.get('O').get('byteOffset')+(var.get('$begin')*var.get('O').get('BYTES_PER_ELEMENT'))), var.get('toLength')(((var.get('length') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('toAbsoluteIndex')(var.get('end'), var.get('length')))-var.get('$begin'))))
|
|
PyJs_subarray_403_._set_name('subarray')
|
|
var.put('proto', Js({'copyWithin':PyJs_copyWithin_386_,'every':PyJs_every_387_,'fill':PyJs_fill_388_,'filter':PyJs_filter_389_,'find':PyJs_find_390_,'findIndex':PyJs_findIndex_391_,'forEach':PyJs_forEach_392_,'indexOf':PyJs_indexOf_393_,'includes':PyJs_includes_394_,'join':PyJs_join_395_,'lastIndexOf':PyJs_lastIndexOf_396_,'map':PyJs_map_397_,'reduce':PyJs_reduce_398_,'reduceRight':PyJs_reduceRight_399_,'reverse':PyJs_reverse_400_,'some':PyJs_some_401_,'sort':PyJs_sort_402_,'subarray':PyJs_subarray_403_}))
|
|
@Js
|
|
def PyJs_slice_404_(start, end, this, arguments, var=var):
|
|
var = Scope({'start':start, 'end':end, 'this':this, 'arguments':arguments, 'slice':PyJs_slice_404_}, var)
|
|
var.registers(['end', 'start'])
|
|
return var.get('speciesFromList')(var.get(u"this"), var.get('arraySlice').callprop('call', var.get('validate')(var.get(u"this")), var.get('start'), var.get('end')))
|
|
PyJs_slice_404_._set_name('slice')
|
|
var.put('$slice', PyJs_slice_404_)
|
|
@Js
|
|
def PyJs_set_405_(arrayLike, this, arguments, var=var):
|
|
var = Scope({'arrayLike':arrayLike, 'this':this, 'arguments':arguments, 'set':PyJs_set_405_}, var)
|
|
var.registers(['length', 'src', 'index', 'arrayLike', 'offset', 'len'])
|
|
var.get('validate')(var.get(u"this"))
|
|
var.put('offset', var.get('toOffset')(var.get('arguments').get('1'), Js(1.0)))
|
|
var.put('length', var.get(u"this").get('length'))
|
|
var.put('src', var.get('toObject')(var.get('arrayLike')))
|
|
var.put('len', var.get('toLength')(var.get('src').get('length')))
|
|
var.put('index', Js(0.0))
|
|
if ((var.get('len')+var.get('offset'))>var.get('length')):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH')))
|
|
raise PyJsTempException
|
|
while (var.get('index')<var.get('len')):
|
|
var.get(u"this").put((var.get('offset')+var.get('index')), var.get('src').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))))
|
|
PyJs_set_405_._set_name('set')
|
|
var.put('$set', PyJs_set_405_)
|
|
@Js
|
|
def PyJs_entries_406_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'entries':PyJs_entries_406_}, var)
|
|
var.registers([])
|
|
return var.get('arrayEntries').callprop('call', var.get('validate')(var.get(u"this")))
|
|
PyJs_entries_406_._set_name('entries')
|
|
@Js
|
|
def PyJs_keys_407_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'keys':PyJs_keys_407_}, var)
|
|
var.registers([])
|
|
return var.get('arrayKeys').callprop('call', var.get('validate')(var.get(u"this")))
|
|
PyJs_keys_407_._set_name('keys')
|
|
@Js
|
|
def PyJs_values_408_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'values':PyJs_values_408_}, var)
|
|
var.registers([])
|
|
return var.get('arrayValues').callprop('call', var.get('validate')(var.get(u"this")))
|
|
PyJs_values_408_._set_name('values')
|
|
var.put('$iterators', Js({'entries':PyJs_entries_406_,'keys':PyJs_keys_407_,'values':PyJs_values_408_}))
|
|
@Js
|
|
def PyJs_isTAIndex_409_(target, key, this, arguments, var=var):
|
|
var = Scope({'target':target, 'key':key, 'this':this, 'arguments':arguments, 'isTAIndex':PyJs_isTAIndex_409_}, var)
|
|
var.registers(['target', 'key'])
|
|
return ((((var.get('isObject')(var.get('target')) and var.get('target').get(var.get('TYPED_ARRAY'))) and ((Js('undefined') if PyJsStrictEq(var.get('key',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('key')))!=Js('symbol'))) and var.get('target').contains(var.get('key'))) and (var.get('String')((+var.get('key')))==var.get('String')(var.get('key'))))
|
|
PyJs_isTAIndex_409_._set_name('isTAIndex')
|
|
var.put('isTAIndex', PyJs_isTAIndex_409_)
|
|
@Js
|
|
def PyJs_getOwnPropertyDescriptor_410_(target, key, this, arguments, var=var):
|
|
var = Scope({'target':target, 'key':key, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_410_}, var)
|
|
var.registers(['target', 'key'])
|
|
return (var.get('propertyDesc')(Js(2.0), var.get('target').get(var.get('key'))) if var.get('isTAIndex')(var.get('target'), var.put('key', var.get('toPrimitive')(var.get('key'), Js(True)))) else var.get('gOPD')(var.get('target'), var.get('key')))
|
|
PyJs_getOwnPropertyDescriptor_410_._set_name('getOwnPropertyDescriptor')
|
|
var.put('$getDesc', PyJs_getOwnPropertyDescriptor_410_)
|
|
@Js
|
|
def PyJs_defineProperty_411_(target, key, desc, this, arguments, var=var):
|
|
var = Scope({'target':target, 'key':key, 'desc':desc, 'this':this, 'arguments':arguments, 'defineProperty':PyJs_defineProperty_411_}, var)
|
|
var.registers(['target', 'desc', 'key'])
|
|
def PyJs_LONG_412_(var=var):
|
|
return ((((((var.get('isTAIndex')(var.get('target'), var.put('key', var.get('toPrimitive')(var.get('key'), Js(True)))) and var.get('isObject')(var.get('desc'))) and var.get('has')(var.get('desc'), Js('value'))) and var.get('has')(var.get('desc'), Js('get')).neg()) and var.get('has')(var.get('desc'), Js('set')).neg()) and var.get('desc').get('configurable').neg()) and (var.get('has')(var.get('desc'), Js('writable')).neg() or var.get('desc').get('writable')))
|
|
if (PyJs_LONG_412_() and (var.get('has')(var.get('desc'), Js('enumerable')).neg() or var.get('desc').get('enumerable'))):
|
|
var.get('target').put(var.get('key'), var.get('desc').get('value'))
|
|
return var.get('target')
|
|
return var.get('dP')(var.get('target'), var.get('key'), var.get('desc'))
|
|
PyJs_defineProperty_411_._set_name('defineProperty')
|
|
var.put('$setDesc', PyJs_defineProperty_411_)
|
|
if var.get('ALL_CONSTRUCTORS').neg():
|
|
var.get('$GOPD').put('f', var.get('$getDesc'))
|
|
var.get('$DP').put('f', var.get('$setDesc'))
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('ALL_CONSTRUCTORS').neg())), Js('Object'), Js({'getOwnPropertyDescriptor':var.get('$getDesc'),'defineProperty':var.get('$setDesc')}))
|
|
@Js
|
|
def PyJs_anonymous_413_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('arrayToString').callprop('call', Js({}))
|
|
PyJs_anonymous_413_._set_name('anonymous')
|
|
if var.get('fails')(PyJs_anonymous_413_):
|
|
@Js
|
|
def PyJs_toString_414_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_414_}, var)
|
|
var.registers([])
|
|
return var.get('arrayJoin').callprop('call', var.get(u"this"))
|
|
PyJs_toString_414_._set_name('toString')
|
|
var.put('arrayToString', var.put('arrayToLocaleString', PyJs_toString_414_))
|
|
var.put('$TypedArrayPrototype$', var.get('redefineAll')(Js({}), var.get('proto')))
|
|
var.get('redefineAll')(var.get('$TypedArrayPrototype$'), var.get('$iterators'))
|
|
var.get('hide')(var.get('$TypedArrayPrototype$'), var.get('ITERATOR'), var.get('$iterators').get('values'))
|
|
@Js
|
|
def PyJs_constructor_415_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'constructor':PyJs_constructor_415_}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_constructor_415_._set_name('constructor')
|
|
var.get('redefineAll')(var.get('$TypedArrayPrototype$'), Js({'slice':var.get('$slice'),'set':var.get('$set'),'constructor':PyJs_constructor_415_,'toString':var.get('arrayToString'),'toLocaleString':var.get('$toLocaleString')}))
|
|
var.get('addGetter')(var.get('$TypedArrayPrototype$'), Js('buffer'), Js('b'))
|
|
var.get('addGetter')(var.get('$TypedArrayPrototype$'), Js('byteOffset'), Js('o'))
|
|
var.get('addGetter')(var.get('$TypedArrayPrototype$'), Js('byteLength'), Js('l'))
|
|
var.get('addGetter')(var.get('$TypedArrayPrototype$'), Js('length'), Js('e'))
|
|
@Js
|
|
def PyJs_get_416_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_416_}, var)
|
|
var.registers([])
|
|
return var.get(u"this").get(var.get('TYPED_ARRAY'))
|
|
PyJs_get_416_._set_name('get')
|
|
var.get('dP')(var.get('$TypedArrayPrototype$'), var.get('TAG'), Js({'get':PyJs_get_416_}))
|
|
@Js
|
|
def PyJs_anonymous_417_(KEY, BYTES, wrapper, CLAMPED, this, arguments, var=var):
|
|
var = Scope({'KEY':KEY, 'BYTES':BYTES, 'wrapper':wrapper, 'CLAMPED':CLAMPED, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['KEY', '$iterator', 'TypedArrayPrototype', 'O', 'Base', 'SETTER', '$nativeIterator', 'TypedArray', 'wrapper', 'FORCED', 'CLAMPED', 'NAME', 'TAC', 'GETTER', 'getter', 'BYTES', 'setter', 'addElement', 'CORRECT_ITER_NAME'])
|
|
var.put('CLAMPED', var.get('CLAMPED').neg().neg())
|
|
var.put('NAME', ((var.get('KEY')+(Js('Clamped') if var.get('CLAMPED') else Js('')))+Js('Array')))
|
|
var.put('GETTER', (Js('get')+var.get('KEY')))
|
|
var.put('SETTER', (Js('set')+var.get('KEY')))
|
|
var.put('TypedArray', var.get('global').get(var.get('NAME')))
|
|
var.put('Base', (var.get('TypedArray') or Js({})))
|
|
var.put('TAC', (var.get('TypedArray') and var.get('getPrototypeOf')(var.get('TypedArray'))))
|
|
var.put('FORCED', (var.get('TypedArray').neg() or var.get('$typed').get('ABV').neg()))
|
|
var.put('O', Js({}))
|
|
var.put('TypedArrayPrototype', (var.get('TypedArray') and var.get('TypedArray').get(var.get('PROTOTYPE'))))
|
|
@Js
|
|
def PyJs_getter_418_(that, index, this, arguments, var=var):
|
|
var = Scope({'that':that, 'index':index, 'this':this, 'arguments':arguments, 'getter':PyJs_getter_418_}, var)
|
|
var.registers(['index', 'data', 'that'])
|
|
var.put('data', var.get('that').get('_d'))
|
|
return var.get('data').get('v').callprop(var.get('GETTER'), ((var.get('index')*var.get('BYTES'))+var.get('data').get('o')), var.get('LITTLE_ENDIAN'))
|
|
PyJs_getter_418_._set_name('getter')
|
|
var.put('getter', PyJs_getter_418_)
|
|
@Js
|
|
def PyJs_setter_419_(that, index, value, this, arguments, var=var):
|
|
var = Scope({'that':that, 'index':index, 'value':value, 'this':this, 'arguments':arguments, 'setter':PyJs_setter_419_}, var)
|
|
var.registers(['index', 'value', 'data', 'that'])
|
|
var.put('data', var.get('that').get('_d'))
|
|
if var.get('CLAMPED'):
|
|
var.put('value', (Js(0.0) if (var.put('value', var.get('Math').callprop('round', var.get('value')))<Js(0.0)) else (Js(255) if (var.get('value')>Js(255)) else (var.get('value')&Js(255)))))
|
|
var.get('data').get('v').callprop(var.get('SETTER'), ((var.get('index')*var.get('BYTES'))+var.get('data').get('o')), var.get('value'), var.get('LITTLE_ENDIAN'))
|
|
PyJs_setter_419_._set_name('setter')
|
|
var.put('setter', PyJs_setter_419_)
|
|
@Js
|
|
def PyJs_addElement_420_(that, index, this, arguments, var=var):
|
|
var = Scope({'that':that, 'index':index, 'this':this, 'arguments':arguments, 'addElement':PyJs_addElement_420_}, var)
|
|
var.registers(['index', 'that'])
|
|
@Js
|
|
def PyJs_get_421_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_421_}, var)
|
|
var.registers([])
|
|
return var.get('getter')(var.get(u"this"), var.get('index'))
|
|
PyJs_get_421_._set_name('get')
|
|
@Js
|
|
def PyJs_set_422_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_422_}, var)
|
|
var.registers(['value'])
|
|
return var.get('setter')(var.get(u"this"), var.get('index'), var.get('value'))
|
|
PyJs_set_422_._set_name('set')
|
|
var.get('dP')(var.get('that'), var.get('index'), Js({'get':PyJs_get_421_,'set':PyJs_set_422_,'enumerable':Js(True)}))
|
|
PyJs_addElement_420_._set_name('addElement')
|
|
var.put('addElement', PyJs_addElement_420_)
|
|
if var.get('FORCED'):
|
|
@Js
|
|
def PyJs_anonymous_423_(that, data, PyJsArg_246f6666736574_, PyJsArg_246c656e677468_, this, arguments, var=var):
|
|
var = Scope({'that':that, 'data':data, '$offset':PyJsArg_246f6666736574_, '$length':PyJsArg_246c656e677468_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['buffer', '$len', 'index', 'length', '$offset', '$length', 'that', 'byteLength', 'data', 'offset', 'klass'])
|
|
var.get('anInstance')(var.get('that'), var.get('TypedArray'), var.get('NAME'), Js('_d'))
|
|
var.put('index', Js(0.0))
|
|
var.put('offset', Js(0.0))
|
|
pass
|
|
if var.get('isObject')(var.get('data')).neg():
|
|
var.put('length', var.get('toIndex')(var.get('data')))
|
|
var.put('byteLength', (var.get('length')*var.get('BYTES')))
|
|
var.put('buffer', var.get('$ArrayBuffer').create(var.get('byteLength')))
|
|
else:
|
|
if ((var.get('data').instanceof(var.get('$ArrayBuffer')) or (var.put('klass', var.get('classof')(var.get('data')))==var.get('ARRAY_BUFFER'))) or (var.get('klass')==var.get('SHARED_BUFFER'))):
|
|
var.put('buffer', var.get('data'))
|
|
var.put('offset', var.get('toOffset')(var.get('$offset'), var.get('BYTES')))
|
|
var.put('$len', var.get('data').get('byteLength'))
|
|
if PyJsStrictEq(var.get('$length'),var.get('undefined')):
|
|
if (var.get('$len')%var.get('BYTES')):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH')))
|
|
raise PyJsTempException
|
|
var.put('byteLength', (var.get('$len')-var.get('offset')))
|
|
if (var.get('byteLength')<Js(0.0)):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH')))
|
|
raise PyJsTempException
|
|
else:
|
|
var.put('byteLength', (var.get('toLength')(var.get('$length'))*var.get('BYTES')))
|
|
if ((var.get('byteLength')+var.get('offset'))>var.get('$len')):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH')))
|
|
raise PyJsTempException
|
|
var.put('length', (var.get('byteLength')/var.get('BYTES')))
|
|
else:
|
|
if var.get('data').contains(var.get('TYPED_ARRAY')):
|
|
return var.get('fromList')(var.get('TypedArray'), var.get('data'))
|
|
else:
|
|
return var.get('$from').callprop('call', var.get('TypedArray'), var.get('data'))
|
|
var.get('hide')(var.get('that'), Js('_d'), Js({'b':var.get('buffer'),'o':var.get('offset'),'l':var.get('byteLength'),'e':var.get('length'),'v':var.get('$DataView').create(var.get('buffer'))}))
|
|
while (var.get('index')<var.get('length')):
|
|
var.get('addElement')(var.get('that'), (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)))
|
|
PyJs_anonymous_423_._set_name('anonymous')
|
|
var.put('TypedArray', var.get('wrapper')(PyJs_anonymous_423_))
|
|
var.put('TypedArrayPrototype', var.get('TypedArray').put(var.get('PROTOTYPE'), var.get('create')(var.get('$TypedArrayPrototype$'))))
|
|
var.get('hide')(var.get('TypedArrayPrototype'), Js('constructor'), var.get('TypedArray'))
|
|
else:
|
|
@Js
|
|
def PyJs_anonymous_424_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('TypedArray')(Js(1.0))
|
|
PyJs_anonymous_424_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_425_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('TypedArray').create((-Js(1.0)))
|
|
PyJs_anonymous_425_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_426_(iter, this, arguments, var=var):
|
|
var = Scope({'iter':iter, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iter'])
|
|
var.get('TypedArray').create()
|
|
var.get('TypedArray').create(var.get(u"null"))
|
|
var.get('TypedArray').create(Js(1.5))
|
|
var.get('TypedArray').create(var.get('iter'))
|
|
PyJs_anonymous_426_._set_name('anonymous')
|
|
if ((var.get('fails')(PyJs_anonymous_424_).neg() or var.get('fails')(PyJs_anonymous_425_).neg()) or var.get('$iterDetect')(PyJs_anonymous_426_, Js(True)).neg()):
|
|
@Js
|
|
def PyJs_anonymous_427_(that, data, PyJsArg_246f6666736574_, PyJsArg_246c656e677468_, this, arguments, var=var):
|
|
var = Scope({'that':that, 'data':data, '$offset':PyJsArg_246f6666736574_, '$length':PyJsArg_246c656e677468_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$length', '$offset', 'that', 'data', 'klass'])
|
|
var.get('anInstance')(var.get('that'), var.get('TypedArray'), var.get('NAME'))
|
|
pass
|
|
if var.get('isObject')(var.get('data')).neg():
|
|
return var.get('Base').create(var.get('toIndex')(var.get('data')))
|
|
if ((var.get('data').instanceof(var.get('$ArrayBuffer')) or (var.put('klass', var.get('classof')(var.get('data')))==var.get('ARRAY_BUFFER'))) or (var.get('klass')==var.get('SHARED_BUFFER'))):
|
|
return (var.get('Base').create(var.get('data'), var.get('toOffset')(var.get('$offset'), var.get('BYTES')), var.get('$length')) if PyJsStrictNeq(var.get('$length'),var.get('undefined')) else (var.get('Base').create(var.get('data'), var.get('toOffset')(var.get('$offset'), var.get('BYTES'))) if PyJsStrictNeq(var.get('$offset'),var.get('undefined')) else var.get('Base').create(var.get('data'))))
|
|
if var.get('data').contains(var.get('TYPED_ARRAY')):
|
|
return var.get('fromList')(var.get('TypedArray'), var.get('data'))
|
|
return var.get('$from').callprop('call', var.get('TypedArray'), var.get('data'))
|
|
PyJs_anonymous_427_._set_name('anonymous')
|
|
var.put('TypedArray', var.get('wrapper')(PyJs_anonymous_427_))
|
|
@Js
|
|
def PyJs_anonymous_428_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['key'])
|
|
if var.get('TypedArray').contains(var.get('key')).neg():
|
|
var.get('hide')(var.get('TypedArray'), var.get('key'), var.get('Base').get(var.get('key')))
|
|
PyJs_anonymous_428_._set_name('anonymous')
|
|
var.get('arrayForEach')((var.get('gOPN')(var.get('Base')).callprop('concat', var.get('gOPN')(var.get('TAC'))) if PyJsStrictNeq(var.get('TAC'),var.get('Function').get('prototype')) else var.get('gOPN')(var.get('Base'))), PyJs_anonymous_428_)
|
|
var.get('TypedArray').put(var.get('PROTOTYPE'), var.get('TypedArrayPrototype'))
|
|
if var.get('LIBRARY').neg():
|
|
var.get('TypedArrayPrototype').put('constructor', var.get('TypedArray'))
|
|
var.put('$nativeIterator', var.get('TypedArrayPrototype').get(var.get('ITERATOR')))
|
|
var.put('CORRECT_ITER_NAME', (var.get('$nativeIterator').neg().neg() and ((var.get('$nativeIterator').get('name')==Js('values')) or (var.get('$nativeIterator').get('name')==var.get('undefined')))))
|
|
var.put('$iterator', var.get('$iterators').get('values'))
|
|
var.get('hide')(var.get('TypedArray'), var.get('TYPED_CONSTRUCTOR'), Js(True))
|
|
var.get('hide')(var.get('TypedArrayPrototype'), var.get('TYPED_ARRAY'), var.get('NAME'))
|
|
var.get('hide')(var.get('TypedArrayPrototype'), var.get('VIEW'), Js(True))
|
|
var.get('hide')(var.get('TypedArrayPrototype'), var.get('DEF_CONSTRUCTOR'), var.get('TypedArray'))
|
|
if ((var.get('TypedArray').create(Js(1.0)).get(var.get('TAG'))!=var.get('NAME')) if var.get('CLAMPED') else var.get('TypedArrayPrototype').contains(var.get('TAG')).neg()):
|
|
@Js
|
|
def PyJs_get_429_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_429_}, var)
|
|
var.registers([])
|
|
return var.get('NAME')
|
|
PyJs_get_429_._set_name('get')
|
|
var.get('dP')(var.get('TypedArrayPrototype'), var.get('TAG'), Js({'get':PyJs_get_429_}))
|
|
var.get('O').put(var.get('NAME'), var.get('TypedArray'))
|
|
var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*(var.get('TypedArray')!=var.get('Base')))), var.get('O'))
|
|
var.get('$export')(var.get('$export').get('S'), var.get('NAME'), Js({'BYTES_PER_ELEMENT':var.get('BYTES')}))
|
|
@Js
|
|
def PyJs_anonymous_430_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('Base').get('of').callprop('call', var.get('TypedArray'), Js(1.0))
|
|
PyJs_anonymous_430_._set_name('anonymous')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('fails')(PyJs_anonymous_430_))), var.get('NAME'), Js({'from':var.get('$from'),'of':var.get('$of')}))
|
|
if var.get('TypedArrayPrototype').contains(var.get('BYTES_PER_ELEMENT')).neg():
|
|
var.get('hide')(var.get('TypedArrayPrototype'), var.get('BYTES_PER_ELEMENT'), var.get('BYTES'))
|
|
var.get('$export')(var.get('$export').get('P'), var.get('NAME'), var.get('proto'))
|
|
var.get('setSpecies')(var.get('NAME'))
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('FORCED_SET'))), var.get('NAME'), Js({'set':var.get('$set')}))
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('CORRECT_ITER_NAME').neg())), var.get('NAME'), var.get('$iterators'))
|
|
if (var.get('LIBRARY').neg() and (var.get('TypedArrayPrototype').get('toString')!=var.get('arrayToString'))):
|
|
var.get('TypedArrayPrototype').put('toString', var.get('arrayToString'))
|
|
@Js
|
|
def PyJs_anonymous_431_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('TypedArray').create(Js(1.0)).callprop('slice')
|
|
PyJs_anonymous_431_._set_name('anonymous')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('fails')(PyJs_anonymous_431_))), var.get('NAME'), Js({'slice':var.get('$slice')}))
|
|
@Js
|
|
def PyJs_anonymous_432_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return (Js([Js(1.0), Js(2.0)]).callprop('toLocaleString')!=var.get('TypedArray').create(Js([Js(1.0), Js(2.0)])).callprop('toLocaleString'))
|
|
PyJs_anonymous_432_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_433_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('TypedArrayPrototype').get('toLocaleString').callprop('call', Js([Js(1.0), Js(2.0)]))
|
|
PyJs_anonymous_433_._set_name('anonymous')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('fails')(PyJs_anonymous_432_) or var.get('fails')(PyJs_anonymous_433_).neg()))), var.get('NAME'), Js({'toLocaleString':var.get('$toLocaleString')}))
|
|
var.get('Iterators').put(var.get('NAME'), (var.get('$nativeIterator') if var.get('CORRECT_ITER_NAME') else var.get('$iterator')))
|
|
if (var.get('LIBRARY').neg() and var.get('CORRECT_ITER_NAME').neg()):
|
|
var.get('hide')(var.get('TypedArrayPrototype'), var.get('ITERATOR'), var.get('$iterator'))
|
|
PyJs_anonymous_417_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_417_)
|
|
else:
|
|
@Js
|
|
def PyJs_anonymous_434_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_anonymous_434_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_434_)
|
|
PyJs_anonymous_371_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_435_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['hide', 'DATA_VIEW', 'packI8', 'DESCRIPTORS', '$BUFFER', 'BUFFER', 'view', 'set', 'toIndex', 'dP', 'toInteger', 'key', 'setToStringTag', 'toLength', 'RangeError', 'packF32', '$OFFSET', 'gOPN', 'LIBRARY', 'require', 'WRONG_INDEX', 'get', 'Math', 'BaseBuffer', 'LN2', '$typed', 'abs', 'module', '$DataView', 'fails', 'global', 'pow', 'packF64', 'log', 'keys', 'unpackIEEE754', 'PROTOTYPE', '$setInt8', 'redefineAll', 'anInstance', 'Infinity', 'floor', 'packIEEE754', 'arrayFill', 'unpackI32', '$ArrayBuffer', '$LENGTH', 'packI32', 'exports', 'ArrayBufferProto', 'j', 'BYTE_LENGTH', 'ARRAY_BUFFER', 'BYTE_OFFSET', 'WRONG_LENGTH', 'addGetter', 'packI16'])
|
|
@Js
|
|
def PyJsHoisted_packIEEE754_(value, mLen, nBytes, this, arguments, var=var):
|
|
var = Scope({'value':value, 'mLen':mLen, 'nBytes':nBytes, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['buffer', 'rt', 'mLen', 'i', 'eLen', 'eBias', 'm', 'e', 'nBytes', 'eMax', 'value', 'c', 's'])
|
|
var.put('buffer', var.get('Array').create(var.get('nBytes')))
|
|
var.put('eLen', (((var.get('nBytes')*Js(8.0))-var.get('mLen'))-Js(1.0)))
|
|
var.put('eMax', ((Js(1.0)<<var.get('eLen'))-Js(1.0)))
|
|
var.put('eBias', (var.get('eMax')>>Js(1.0)))
|
|
var.put('rt', ((var.get('pow')(Js(2.0), (-Js(24.0)))-var.get('pow')(Js(2.0), (-Js(77.0)))) if PyJsStrictEq(var.get('mLen'),Js(23.0)) else Js(0.0)))
|
|
var.put('i', Js(0.0))
|
|
var.put('s', (Js(1.0) if ((var.get('value')<Js(0.0)) or (PyJsStrictEq(var.get('value'),Js(0.0)) and ((Js(1.0)/var.get('value'))<Js(0.0)))) else Js(0.0)))
|
|
pass
|
|
var.put('value', var.get('abs')(var.get('value')))
|
|
if ((var.get('value')!=var.get('value')) or PyJsStrictEq(var.get('value'),var.get('Infinity'))):
|
|
var.put('m', (Js(1.0) if (var.get('value')!=var.get('value')) else Js(0.0)))
|
|
var.put('e', var.get('eMax'))
|
|
else:
|
|
var.put('e', var.get('floor')((var.get('log')(var.get('value'))/var.get('LN2'))))
|
|
if ((var.get('value')*var.put('c', var.get('pow')(Js(2.0), (-var.get('e')))))<Js(1.0)):
|
|
(var.put('e',Js(var.get('e').to_number())-Js(1))+Js(1))
|
|
var.put('c', Js(2.0), '*')
|
|
if ((var.get('e')+var.get('eBias'))>=Js(1.0)):
|
|
var.put('value', (var.get('rt')/var.get('c')), '+')
|
|
else:
|
|
var.put('value', (var.get('rt')*var.get('pow')(Js(2.0), (Js(1.0)-var.get('eBias')))), '+')
|
|
if ((var.get('value')*var.get('c'))>=Js(2.0)):
|
|
(var.put('e',Js(var.get('e').to_number())+Js(1))-Js(1))
|
|
var.put('c', Js(2.0), '/')
|
|
if ((var.get('e')+var.get('eBias'))>=var.get('eMax')):
|
|
var.put('m', Js(0.0))
|
|
var.put('e', var.get('eMax'))
|
|
else:
|
|
if ((var.get('e')+var.get('eBias'))>=Js(1.0)):
|
|
var.put('m', (((var.get('value')*var.get('c'))-Js(1.0))*var.get('pow')(Js(2.0), var.get('mLen'))))
|
|
var.put('e', (var.get('e')+var.get('eBias')))
|
|
else:
|
|
var.put('m', ((var.get('value')*var.get('pow')(Js(2.0), (var.get('eBias')-Js(1.0))))*var.get('pow')(Js(2.0), var.get('mLen'))))
|
|
var.put('e', Js(0.0))
|
|
#for JS loop
|
|
|
|
while (var.get('mLen')>=Js(8.0)):
|
|
try:
|
|
pass
|
|
finally:
|
|
PyJsComma(PyJsComma(var.get('buffer').put((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)), (var.get('m')&Js(255.0))),var.put('m', Js(256.0), '/')),var.put('mLen', Js(8.0), '-'))
|
|
var.put('e', ((var.get('e')<<var.get('mLen'))|var.get('m')))
|
|
var.put('eLen', var.get('mLen'), '+')
|
|
#for JS loop
|
|
|
|
while (var.get('eLen')>Js(0.0)):
|
|
try:
|
|
pass
|
|
finally:
|
|
PyJsComma(PyJsComma(var.get('buffer').put((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)), (var.get('e')&Js(255.0))),var.put('e', Js(256.0), '/')),var.put('eLen', Js(8.0), '-'))
|
|
var.get('buffer').put(var.put('i',Js(var.get('i').to_number())-Js(1)), (var.get('s')*Js(128.0)), '|')
|
|
return var.get('buffer')
|
|
PyJsHoisted_packIEEE754_.func_name = 'packIEEE754'
|
|
var.put('packIEEE754', PyJsHoisted_packIEEE754_)
|
|
@Js
|
|
def PyJsHoisted_unpackIEEE754_(buffer, mLen, nBytes, this, arguments, var=var):
|
|
var = Scope({'buffer':buffer, 'mLen':mLen, 'nBytes':nBytes, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['nBits', 'buffer', 'mLen', 'i', 'eLen', 'eBias', 'm', 'e', 'nBytes', 'eMax', 's'])
|
|
var.put('eLen', (((var.get('nBytes')*Js(8.0))-var.get('mLen'))-Js(1.0)))
|
|
var.put('eMax', ((Js(1.0)<<var.get('eLen'))-Js(1.0)))
|
|
var.put('eBias', (var.get('eMax')>>Js(1.0)))
|
|
var.put('nBits', (var.get('eLen')-Js(7.0)))
|
|
var.put('i', (var.get('nBytes')-Js(1.0)))
|
|
var.put('s', var.get('buffer').get((var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1))))
|
|
var.put('e', (var.get('s')&Js(127.0)))
|
|
pass
|
|
var.put('s', Js(7.0), '>>')
|
|
#for JS loop
|
|
|
|
while (var.get('nBits')>Js(0.0)):
|
|
try:
|
|
pass
|
|
finally:
|
|
PyJsComma(PyJsComma(var.put('e', ((var.get('e')*Js(256.0))+var.get('buffer').get(var.get('i')))),(var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1))),var.put('nBits', Js(8.0), '-'))
|
|
var.put('m', (var.get('e')&((Js(1.0)<<(-var.get('nBits')))-Js(1.0))))
|
|
var.put('e', (-var.get('nBits')), '>>')
|
|
var.put('nBits', var.get('mLen'), '+')
|
|
#for JS loop
|
|
|
|
while (var.get('nBits')>Js(0.0)):
|
|
try:
|
|
pass
|
|
finally:
|
|
PyJsComma(PyJsComma(var.put('m', ((var.get('m')*Js(256.0))+var.get('buffer').get(var.get('i')))),(var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1))),var.put('nBits', Js(8.0), '-'))
|
|
if PyJsStrictEq(var.get('e'),Js(0.0)):
|
|
var.put('e', (Js(1.0)-var.get('eBias')))
|
|
else:
|
|
if PyJsStrictEq(var.get('e'),var.get('eMax')):
|
|
return (var.get('NaN') if var.get('m') else ((-var.get('Infinity')) if var.get('s') else var.get('Infinity')))
|
|
else:
|
|
var.put('m', (var.get('m')+var.get('pow')(Js(2.0), var.get('mLen'))))
|
|
var.put('e', (var.get('e')-var.get('eBias')))
|
|
return ((((-Js(1.0)) if var.get('s') else Js(1.0))*var.get('m'))*var.get('pow')(Js(2.0), (var.get('e')-var.get('mLen'))))
|
|
PyJsHoisted_unpackIEEE754_.func_name = 'unpackIEEE754'
|
|
var.put('unpackIEEE754', PyJsHoisted_unpackIEEE754_)
|
|
@Js
|
|
def PyJsHoisted_unpackI32_(bytes, this, arguments, var=var):
|
|
var = Scope({'bytes':bytes, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['bytes'])
|
|
return ((((var.get('bytes').get('3')<<Js(24.0))|(var.get('bytes').get('2')<<Js(16.0)))|(var.get('bytes').get('1')<<Js(8.0)))|var.get('bytes').get('0'))
|
|
PyJsHoisted_unpackI32_.func_name = 'unpackI32'
|
|
var.put('unpackI32', PyJsHoisted_unpackI32_)
|
|
@Js
|
|
def PyJsHoisted_packI8_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return Js([(var.get('it')&Js(255))])
|
|
PyJsHoisted_packI8_.func_name = 'packI8'
|
|
var.put('packI8', PyJsHoisted_packI8_)
|
|
@Js
|
|
def PyJsHoisted_packI16_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return Js([(var.get('it')&Js(255)), ((var.get('it')>>Js(8.0))&Js(255))])
|
|
PyJsHoisted_packI16_.func_name = 'packI16'
|
|
var.put('packI16', PyJsHoisted_packI16_)
|
|
@Js
|
|
def PyJsHoisted_packI32_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return Js([(var.get('it')&Js(255)), ((var.get('it')>>Js(8.0))&Js(255)), ((var.get('it')>>Js(16.0))&Js(255)), ((var.get('it')>>Js(24.0))&Js(255))])
|
|
PyJsHoisted_packI32_.func_name = 'packI32'
|
|
var.put('packI32', PyJsHoisted_packI32_)
|
|
@Js
|
|
def PyJsHoisted_packF64_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('packIEEE754')(var.get('it'), Js(52.0), Js(8.0))
|
|
PyJsHoisted_packF64_.func_name = 'packF64'
|
|
var.put('packF64', PyJsHoisted_packF64_)
|
|
@Js
|
|
def PyJsHoisted_packF32_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('packIEEE754')(var.get('it'), Js(23.0), Js(4.0))
|
|
PyJsHoisted_packF32_.func_name = 'packF32'
|
|
var.put('packF32', PyJsHoisted_packF32_)
|
|
@Js
|
|
def PyJsHoisted_addGetter_(C, key, internal, this, arguments, var=var):
|
|
var = Scope({'C':C, 'key':key, 'internal':internal, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'internal', 'key'])
|
|
@Js
|
|
def PyJs_get_436_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_436_}, var)
|
|
var.registers([])
|
|
return var.get(u"this").get(var.get('internal'))
|
|
PyJs_get_436_._set_name('get')
|
|
var.get('dP')(var.get('C').get(var.get('PROTOTYPE')), var.get('key'), Js({'get':PyJs_get_436_}))
|
|
PyJsHoisted_addGetter_.func_name = 'addGetter'
|
|
var.put('addGetter', PyJsHoisted_addGetter_)
|
|
@Js
|
|
def PyJsHoisted_get_(view, bytes, index, isLittleEndian, this, arguments, var=var):
|
|
var = Scope({'view':view, 'bytes':bytes, 'index':index, 'isLittleEndian':isLittleEndian, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'isLittleEndian', 'start', 'numIndex', 'store', 'intIndex', 'view', 'bytes', 'pack'])
|
|
var.put('numIndex', (+var.get('index')))
|
|
var.put('intIndex', var.get('toIndex')(var.get('numIndex')))
|
|
if ((var.get('intIndex')+var.get('bytes'))>var.get('view').get(var.get('$LENGTH'))):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_INDEX')))
|
|
raise PyJsTempException
|
|
var.put('store', var.get('view').get(var.get('$BUFFER')).get('_b'))
|
|
var.put('start', (var.get('intIndex')+var.get('view').get(var.get('$OFFSET'))))
|
|
var.put('pack', var.get('store').callprop('slice', var.get('start'), (var.get('start')+var.get('bytes'))))
|
|
return (var.get('pack') if var.get('isLittleEndian') else var.get('pack').callprop('reverse'))
|
|
PyJsHoisted_get_.func_name = 'get'
|
|
var.put('get', PyJsHoisted_get_)
|
|
@Js
|
|
def PyJsHoisted_set_(view, bytes, index, conversion, value, isLittleEndian, this, arguments, var=var):
|
|
var = Scope({'view':view, 'bytes':bytes, 'index':index, 'conversion':conversion, 'value':value, 'isLittleEndian':isLittleEndian, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'conversion', 'i', 'isLittleEndian', 'start', 'numIndex', 'store', 'intIndex', 'view', 'bytes', 'value', 'pack'])
|
|
var.put('numIndex', (+var.get('index')))
|
|
var.put('intIndex', var.get('toIndex')(var.get('numIndex')))
|
|
if ((var.get('intIndex')+var.get('bytes'))>var.get('view').get(var.get('$LENGTH'))):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_INDEX')))
|
|
raise PyJsTempException
|
|
var.put('store', var.get('view').get(var.get('$BUFFER')).get('_b'))
|
|
var.put('start', (var.get('intIndex')+var.get('view').get(var.get('$OFFSET'))))
|
|
var.put('pack', var.get('conversion')((+var.get('value'))))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('bytes')):
|
|
try:
|
|
var.get('store').put((var.get('start')+var.get('i')), var.get('pack').get((var.get('i') if var.get('isLittleEndian') else ((var.get('bytes')-var.get('i'))-Js(1.0)))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJsHoisted_set_.func_name = 'set'
|
|
var.put('set', PyJsHoisted_set_)
|
|
Js('use strict')
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors')))
|
|
var.put('LIBRARY', var.get('require')(Js('./_library')))
|
|
var.put('$typed', var.get('require')(Js('./_typed')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('redefineAll', var.get('require')(Js('./_redefine-all')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('anInstance', var.get('require')(Js('./_an-instance')))
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('toIndex', var.get('require')(Js('./_to-index')))
|
|
var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f'))
|
|
var.put('dP', var.get('require')(Js('./_object-dp')).get('f'))
|
|
var.put('arrayFill', var.get('require')(Js('./_array-fill')))
|
|
var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag')))
|
|
var.put('ARRAY_BUFFER', Js('ArrayBuffer'))
|
|
var.put('DATA_VIEW', Js('DataView'))
|
|
var.put('PROTOTYPE', Js('prototype'))
|
|
var.put('WRONG_LENGTH', Js('Wrong length!'))
|
|
var.put('WRONG_INDEX', Js('Wrong index!'))
|
|
var.put('$ArrayBuffer', var.get('global').get(var.get('ARRAY_BUFFER')))
|
|
var.put('$DataView', var.get('global').get(var.get('DATA_VIEW')))
|
|
var.put('Math', var.get('global').get('Math'))
|
|
var.put('RangeError', var.get('global').get('RangeError'))
|
|
var.put('Infinity', var.get('global').get('Infinity'))
|
|
var.put('BaseBuffer', var.get('$ArrayBuffer'))
|
|
var.put('abs', var.get('Math').get('abs'))
|
|
var.put('pow', var.get('Math').get('pow'))
|
|
var.put('floor', var.get('Math').get('floor'))
|
|
var.put('log', var.get('Math').get('log'))
|
|
var.put('LN2', var.get('Math').get('LN2'))
|
|
var.put('BUFFER', Js('buffer'))
|
|
var.put('BYTE_LENGTH', Js('byteLength'))
|
|
var.put('BYTE_OFFSET', Js('byteOffset'))
|
|
var.put('$BUFFER', (Js('_b') if var.get('DESCRIPTORS') else var.get('BUFFER')))
|
|
var.put('$LENGTH', (Js('_l') if var.get('DESCRIPTORS') else var.get('BYTE_LENGTH')))
|
|
var.put('$OFFSET', (Js('_o') if var.get('DESCRIPTORS') else var.get('BYTE_OFFSET')))
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
if var.get('$typed').get('ABV').neg():
|
|
@Js
|
|
def PyJs_ArrayBuffer_437_(length, this, arguments, var=var):
|
|
var = Scope({'length':length, 'this':this, 'arguments':arguments, 'ArrayBuffer':PyJs_ArrayBuffer_437_}, var)
|
|
var.registers(['length', 'byteLength'])
|
|
var.get('anInstance')(var.get(u"this"), var.get('$ArrayBuffer'), var.get('ARRAY_BUFFER'))
|
|
var.put('byteLength', var.get('toIndex')(var.get('length')))
|
|
var.get(u"this").put('_b', var.get('arrayFill').callprop('call', var.get('Array').create(var.get('byteLength')), Js(0.0)))
|
|
var.get(u"this").put(var.get('$LENGTH'), var.get('byteLength'))
|
|
PyJs_ArrayBuffer_437_._set_name('ArrayBuffer')
|
|
var.put('$ArrayBuffer', PyJs_ArrayBuffer_437_)
|
|
@Js
|
|
def PyJs_DataView_438_(buffer, byteOffset, byteLength, this, arguments, var=var):
|
|
var = Scope({'buffer':buffer, 'byteOffset':byteOffset, 'byteLength':byteLength, 'this':this, 'arguments':arguments, 'DataView':PyJs_DataView_438_}, var)
|
|
var.registers(['buffer', 'byteOffset', 'byteLength', 'bufferLength', 'offset'])
|
|
var.get('anInstance')(var.get(u"this"), var.get('$DataView'), var.get('DATA_VIEW'))
|
|
var.get('anInstance')(var.get('buffer'), var.get('$ArrayBuffer'), var.get('DATA_VIEW'))
|
|
var.put('bufferLength', var.get('buffer').get(var.get('$LENGTH')))
|
|
var.put('offset', var.get('toInteger')(var.get('byteOffset')))
|
|
if ((var.get('offset')<Js(0.0)) or (var.get('offset')>var.get('bufferLength'))):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(Js('Wrong offset!')))
|
|
raise PyJsTempException
|
|
var.put('byteLength', ((var.get('bufferLength')-var.get('offset')) if PyJsStrictEq(var.get('byteLength'),var.get('undefined')) else var.get('toLength')(var.get('byteLength'))))
|
|
if ((var.get('offset')+var.get('byteLength'))>var.get('bufferLength')):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('WRONG_LENGTH')))
|
|
raise PyJsTempException
|
|
var.get(u"this").put(var.get('$BUFFER'), var.get('buffer'))
|
|
var.get(u"this").put(var.get('$OFFSET'), var.get('offset'))
|
|
var.get(u"this").put(var.get('$LENGTH'), var.get('byteLength'))
|
|
PyJs_DataView_438_._set_name('DataView')
|
|
var.put('$DataView', PyJs_DataView_438_)
|
|
if var.get('DESCRIPTORS'):
|
|
var.get('addGetter')(var.get('$ArrayBuffer'), var.get('BYTE_LENGTH'), Js('_l'))
|
|
var.get('addGetter')(var.get('$DataView'), var.get('BUFFER'), Js('_b'))
|
|
var.get('addGetter')(var.get('$DataView'), var.get('BYTE_LENGTH'), Js('_l'))
|
|
var.get('addGetter')(var.get('$DataView'), var.get('BYTE_OFFSET'), Js('_o'))
|
|
def PyJs_LONG_455_(var=var):
|
|
@Js
|
|
def PyJs_getInt8_439_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getInt8':PyJs_getInt8_439_}, var)
|
|
var.registers(['byteOffset'])
|
|
return ((var.get('get')(var.get(u"this"), Js(1.0), var.get('byteOffset')).get('0')<<Js(24.0))>>Js(24.0))
|
|
PyJs_getInt8_439_._set_name('getInt8')
|
|
@Js
|
|
def PyJs_getUint8_440_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getUint8':PyJs_getUint8_440_}, var)
|
|
var.registers(['byteOffset'])
|
|
return var.get('get')(var.get(u"this"), Js(1.0), var.get('byteOffset')).get('0')
|
|
PyJs_getUint8_440_._set_name('getUint8')
|
|
@Js
|
|
def PyJs_getInt16_441_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getInt16':PyJs_getInt16_441_}, var)
|
|
var.registers(['byteOffset', 'bytes'])
|
|
var.put('bytes', var.get('get')(var.get(u"this"), Js(2.0), var.get('byteOffset'), var.get('arguments').get('1')))
|
|
return ((((var.get('bytes').get('1')<<Js(8.0))|var.get('bytes').get('0'))<<Js(16.0))>>Js(16.0))
|
|
PyJs_getInt16_441_._set_name('getInt16')
|
|
@Js
|
|
def PyJs_getUint16_442_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getUint16':PyJs_getUint16_442_}, var)
|
|
var.registers(['byteOffset', 'bytes'])
|
|
var.put('bytes', var.get('get')(var.get(u"this"), Js(2.0), var.get('byteOffset'), var.get('arguments').get('1')))
|
|
return ((var.get('bytes').get('1')<<Js(8.0))|var.get('bytes').get('0'))
|
|
PyJs_getUint16_442_._set_name('getUint16')
|
|
@Js
|
|
def PyJs_getInt32_443_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getInt32':PyJs_getInt32_443_}, var)
|
|
var.registers(['byteOffset'])
|
|
return var.get('unpackI32')(var.get('get')(var.get(u"this"), Js(4.0), var.get('byteOffset'), var.get('arguments').get('1')))
|
|
PyJs_getInt32_443_._set_name('getInt32')
|
|
@Js
|
|
def PyJs_getUint32_444_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getUint32':PyJs_getUint32_444_}, var)
|
|
var.registers(['byteOffset'])
|
|
return PyJsBshift(var.get('unpackI32')(var.get('get')(var.get(u"this"), Js(4.0), var.get('byteOffset'), var.get('arguments').get('1'))),Js(0.0))
|
|
PyJs_getUint32_444_._set_name('getUint32')
|
|
@Js
|
|
def PyJs_getFloat32_445_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getFloat32':PyJs_getFloat32_445_}, var)
|
|
var.registers(['byteOffset'])
|
|
return var.get('unpackIEEE754')(var.get('get')(var.get(u"this"), Js(4.0), var.get('byteOffset'), var.get('arguments').get('1')), Js(23.0), Js(4.0))
|
|
PyJs_getFloat32_445_._set_name('getFloat32')
|
|
@Js
|
|
def PyJs_getFloat64_446_(byteOffset, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'this':this, 'arguments':arguments, 'getFloat64':PyJs_getFloat64_446_}, var)
|
|
var.registers(['byteOffset'])
|
|
return var.get('unpackIEEE754')(var.get('get')(var.get(u"this"), Js(8.0), var.get('byteOffset'), var.get('arguments').get('1')), Js(52.0), Js(8.0))
|
|
PyJs_getFloat64_446_._set_name('getFloat64')
|
|
@Js
|
|
def PyJs_setInt8_447_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setInt8':PyJs_setInt8_447_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(1.0), var.get('byteOffset'), var.get('packI8'), var.get('value'))
|
|
PyJs_setInt8_447_._set_name('setInt8')
|
|
@Js
|
|
def PyJs_setUint8_448_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setUint8':PyJs_setUint8_448_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(1.0), var.get('byteOffset'), var.get('packI8'), var.get('value'))
|
|
PyJs_setUint8_448_._set_name('setUint8')
|
|
@Js
|
|
def PyJs_setInt16_449_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setInt16':PyJs_setInt16_449_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(2.0), var.get('byteOffset'), var.get('packI16'), var.get('value'), var.get('arguments').get('2'))
|
|
PyJs_setInt16_449_._set_name('setInt16')
|
|
@Js
|
|
def PyJs_setUint16_450_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setUint16':PyJs_setUint16_450_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(2.0), var.get('byteOffset'), var.get('packI16'), var.get('value'), var.get('arguments').get('2'))
|
|
PyJs_setUint16_450_._set_name('setUint16')
|
|
@Js
|
|
def PyJs_setInt32_451_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setInt32':PyJs_setInt32_451_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(4.0), var.get('byteOffset'), var.get('packI32'), var.get('value'), var.get('arguments').get('2'))
|
|
PyJs_setInt32_451_._set_name('setInt32')
|
|
@Js
|
|
def PyJs_setUint32_452_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setUint32':PyJs_setUint32_452_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(4.0), var.get('byteOffset'), var.get('packI32'), var.get('value'), var.get('arguments').get('2'))
|
|
PyJs_setUint32_452_._set_name('setUint32')
|
|
@Js
|
|
def PyJs_setFloat32_453_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setFloat32':PyJs_setFloat32_453_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(4.0), var.get('byteOffset'), var.get('packF32'), var.get('value'), var.get('arguments').get('2'))
|
|
PyJs_setFloat32_453_._set_name('setFloat32')
|
|
@Js
|
|
def PyJs_setFloat64_454_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setFloat64':PyJs_setFloat64_454_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('set')(var.get(u"this"), Js(8.0), var.get('byteOffset'), var.get('packF64'), var.get('value'), var.get('arguments').get('2'))
|
|
PyJs_setFloat64_454_._set_name('setFloat64')
|
|
return var.get('redefineAll')(var.get('$DataView').get(var.get('PROTOTYPE')), Js({'getInt8':PyJs_getInt8_439_,'getUint8':PyJs_getUint8_440_,'getInt16':PyJs_getInt16_441_,'getUint16':PyJs_getUint16_442_,'getInt32':PyJs_getInt32_443_,'getUint32':PyJs_getUint32_444_,'getFloat32':PyJs_getFloat32_445_,'getFloat64':PyJs_getFloat64_446_,'setInt8':PyJs_setInt8_447_,'setUint8':PyJs_setUint8_448_,'setInt16':PyJs_setInt16_449_,'setUint16':PyJs_setUint16_450_,'setInt32':PyJs_setInt32_451_,'setUint32':PyJs_setUint32_452_,'setFloat32':PyJs_setFloat32_453_,'setFloat64':PyJs_setFloat64_454_}))
|
|
PyJs_LONG_455_()
|
|
else:
|
|
@Js
|
|
def PyJs_anonymous_456_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('$ArrayBuffer')(Js(1.0))
|
|
PyJs_anonymous_456_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_457_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('$ArrayBuffer').create((-Js(1.0)))
|
|
PyJs_anonymous_457_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_458_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('$ArrayBuffer').create()
|
|
var.get('$ArrayBuffer').create(Js(1.5))
|
|
var.get('$ArrayBuffer').create(var.get('NaN'))
|
|
return (var.get('$ArrayBuffer').get('name')!=var.get('ARRAY_BUFFER'))
|
|
PyJs_anonymous_458_._set_name('anonymous')
|
|
if ((var.get('fails')(PyJs_anonymous_456_).neg() or var.get('fails')(PyJs_anonymous_457_).neg()) or var.get('fails')(PyJs_anonymous_458_)):
|
|
@Js
|
|
def PyJs_ArrayBuffer_459_(length, this, arguments, var=var):
|
|
var = Scope({'length':length, 'this':this, 'arguments':arguments, 'ArrayBuffer':PyJs_ArrayBuffer_459_}, var)
|
|
var.registers(['length'])
|
|
var.get('anInstance')(var.get(u"this"), var.get('$ArrayBuffer'))
|
|
return var.get('BaseBuffer').create(var.get('toIndex')(var.get('length')))
|
|
PyJs_ArrayBuffer_459_._set_name('ArrayBuffer')
|
|
var.put('$ArrayBuffer', PyJs_ArrayBuffer_459_)
|
|
var.put('ArrayBufferProto', var.get('$ArrayBuffer').put(var.get('PROTOTYPE'), var.get('BaseBuffer').get(var.get('PROTOTYPE'))))
|
|
#for JS loop
|
|
var.put('keys', var.get('gOPN')(var.get('BaseBuffer')))
|
|
var.put('j', Js(0.0))
|
|
while (var.get('keys').get('length')>var.get('j')):
|
|
if var.get('$ArrayBuffer').contains(var.put('key', var.get('keys').get((var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))))).neg():
|
|
var.get('hide')(var.get('$ArrayBuffer'), var.get('key'), var.get('BaseBuffer').get(var.get('key')))
|
|
|
|
if var.get('LIBRARY').neg():
|
|
var.get('ArrayBufferProto').put('constructor', var.get('$ArrayBuffer'))
|
|
var.put('view', var.get('$DataView').create(var.get('$ArrayBuffer').create(Js(2.0))))
|
|
var.put('$setInt8', var.get('$DataView').get(var.get('PROTOTYPE')).get('setInt8'))
|
|
var.get('view').callprop('setInt8', Js(0.0), Js(2147483648.0))
|
|
var.get('view').callprop('setInt8', Js(1.0), Js(2147483649.0))
|
|
if (var.get('view').callprop('getInt8', Js(0.0)) or var.get('view').callprop('getInt8', Js(1.0)).neg()):
|
|
@Js
|
|
def PyJs_setInt8_460_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setInt8':PyJs_setInt8_460_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('$setInt8').callprop('call', var.get(u"this"), var.get('byteOffset'), ((var.get('value')<<Js(24.0))>>Js(24.0)))
|
|
PyJs_setInt8_460_._set_name('setInt8')
|
|
@Js
|
|
def PyJs_setUint8_461_(byteOffset, value, this, arguments, var=var):
|
|
var = Scope({'byteOffset':byteOffset, 'value':value, 'this':this, 'arguments':arguments, 'setUint8':PyJs_setUint8_461_}, var)
|
|
var.registers(['byteOffset', 'value'])
|
|
var.get('$setInt8').callprop('call', var.get(u"this"), var.get('byteOffset'), ((var.get('value')<<Js(24.0))>>Js(24.0)))
|
|
PyJs_setUint8_461_._set_name('setUint8')
|
|
var.get('redefineAll')(var.get('$DataView').get(var.get('PROTOTYPE')), Js({'setInt8':PyJs_setInt8_460_,'setUint8':PyJs_setUint8_461_}), Js(True))
|
|
var.get('setToStringTag')(var.get('$ArrayBuffer'), var.get('ARRAY_BUFFER'))
|
|
var.get('setToStringTag')(var.get('$DataView'), var.get('DATA_VIEW'))
|
|
var.get('hide')(var.get('$DataView').get(var.get('PROTOTYPE')), var.get('$typed').get('VIEW'), Js(True))
|
|
var.get('exports').put(var.get('ARRAY_BUFFER'), var.get('$ArrayBuffer'))
|
|
var.get('exports').put(var.get('DATA_VIEW'), var.get('$DataView'))
|
|
PyJs_anonymous_435_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_462_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'ABV', 'hide', 'TypedArrayConstructors', 'i', 'VIEW', 'Typed', 'CONSTR', 'uid', 'TYPED', 'module', 'exports', 'global', 'l'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('uid', var.get('require')(Js('./_uid')))
|
|
var.put('TYPED', var.get('uid')(Js('typed_array')))
|
|
var.put('VIEW', var.get('uid')(Js('view')))
|
|
var.put('ABV', (var.get('global').get('ArrayBuffer') and var.get('global').get('DataView')).neg().neg())
|
|
var.put('CONSTR', var.get('ABV'))
|
|
var.put('i', Js(0.0))
|
|
var.put('l', Js(9.0))
|
|
pass
|
|
var.put('TypedArrayConstructors', Js('Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array').callprop('split', Js(',')))
|
|
while (var.get('i')<var.get('l')):
|
|
if var.put('Typed', var.get('global').get(var.get('TypedArrayConstructors').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))):
|
|
var.get('hide')(var.get('Typed').get('prototype'), var.get('TYPED'), Js(True))
|
|
var.get('hide')(var.get('Typed').get('prototype'), var.get('VIEW'), Js(True))
|
|
else:
|
|
var.put('CONSTR', Js(False))
|
|
var.get('module').put('exports', Js({'ABV':var.get('ABV'),'CONSTR':var.get('CONSTR'),'TYPED':var.get('TYPED'),'VIEW':var.get('VIEW')}))
|
|
PyJs_anonymous_462_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_463_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'id', 'px'])
|
|
var.put('id', Js(0.0))
|
|
var.put('px', var.get('Math').callprop('random'))
|
|
@Js
|
|
def PyJs_anonymous_464_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['key'])
|
|
return Js('Symbol(').callprop('concat', (Js('') if PyJsStrictEq(var.get('key'),var.get('undefined')) else var.get('key')), Js(')_'), (var.put('id',Js(var.get('id').to_number())+Js(1))+var.get('px')).callprop('toString', Js(36.0)))
|
|
PyJs_anonymous_464_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_464_)
|
|
PyJs_anonymous_463_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_465_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'global', 'navigator'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('navigator', var.get('global').get('navigator'))
|
|
var.get('module').put('exports', ((var.get('navigator') and var.get('navigator').get('userAgent')) or Js('')))
|
|
PyJs_anonymous_465_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_466_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'isObject', 'module', 'exports'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
@Js
|
|
def PyJs_anonymous_467_(it, TYPE, this, arguments, var=var):
|
|
var = Scope({'it':it, 'TYPE':TYPE, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it', 'TYPE'])
|
|
if (var.get('isObject')(var.get('it')).neg() or PyJsStrictNeq(var.get('it').get('_t'),var.get('TYPE'))):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(((Js('Incompatible receiver, ')+var.get('TYPE'))+Js(' required!'))))
|
|
raise PyJsTempException
|
|
return var.get('it')
|
|
PyJs_anonymous_467_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_467_)
|
|
PyJs_anonymous_466_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_468_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['core', 'require', 'LIBRARY', 'exports', 'module', 'wksExt', 'defineProperty', 'global'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('core', var.get('require')(Js('./_core')))
|
|
var.put('LIBRARY', var.get('require')(Js('./_library')))
|
|
var.put('wksExt', var.get('require')(Js('./_wks-ext')))
|
|
var.put('defineProperty', var.get('require')(Js('./_object-dp')).get('f'))
|
|
@Js
|
|
def PyJs_anonymous_469_(name, this, arguments, var=var):
|
|
var = Scope({'name':name, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['name', '$Symbol'])
|
|
var.put('$Symbol', (var.get('core').get('Symbol') or var.get('core').put('Symbol', (Js({}) if var.get('LIBRARY') else (var.get('global').get('Symbol') or Js({}))))))
|
|
if ((var.get('name').callprop('charAt', Js(0.0))!=Js('_')) and var.get('$Symbol').contains(var.get('name')).neg()):
|
|
var.get('defineProperty')(var.get('$Symbol'), var.get('name'), Js({'value':var.get('wksExt').callprop('f', var.get('name'))}))
|
|
PyJs_anonymous_469_._set_name('anonymous')
|
|
var.get('module').put('exports', PyJs_anonymous_469_)
|
|
PyJs_anonymous_468_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_470_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('exports').put('f', var.get('require')(Js('./_wks')))
|
|
PyJs_anonymous_470_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_471_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'USE_SYMBOL', 'exports', 'store', 'uid', 'module', '$exports', '_Symbol'])
|
|
var.put('store', var.get('require')(Js('./_shared'))(Js('wks')))
|
|
var.put('uid', var.get('require')(Js('./_uid')))
|
|
var.put('_Symbol', var.get('require')(Js('./_global')).get('Symbol'))
|
|
var.put('USE_SYMBOL', (var.get('_Symbol',throw=False).typeof()==Js('function')))
|
|
@Js
|
|
def PyJs_anonymous_472_(name, this, arguments, var=var):
|
|
var = Scope({'name':name, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['name'])
|
|
return (var.get('store').get(var.get('name')) or var.get('store').put(var.get('name'), ((var.get('USE_SYMBOL') and var.get('_Symbol').get(var.get('name'))) or (var.get('_Symbol') if var.get('USE_SYMBOL') else var.get('uid'))((Js('Symbol.')+var.get('name'))))))
|
|
PyJs_anonymous_472_._set_name('anonymous')
|
|
var.put('$exports', var.get('module').put('exports', PyJs_anonymous_472_))
|
|
var.get('$exports').put('store', var.get('store'))
|
|
PyJs_anonymous_471_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_473_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'classof', 'ITERATOR', 'exports', 'module', 'Iterators'])
|
|
var.put('classof', var.get('require')(Js('./_classof')))
|
|
var.put('ITERATOR', var.get('require')(Js('./_wks'))(Js('iterator')))
|
|
var.put('Iterators', var.get('require')(Js('./_iterators')))
|
|
@Js
|
|
def PyJs_anonymous_474_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
if (var.get('it')!=var.get('undefined')):
|
|
return ((var.get('it').get(var.get('ITERATOR')) or var.get('it').get('@@iterator')) or var.get('Iterators').get(var.get('classof')(var.get('it'))))
|
|
PyJs_anonymous_474_._set_name('anonymous')
|
|
var.get('module').put('exports', var.get('require')(Js('./_core')).put('getIteratorMethod', PyJs_anonymous_474_))
|
|
PyJs_anonymous_473_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_475_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$re'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$re', var.get('require')(Js('./_replacer'))(JsRegExp('/[\\\\^$*+?.()|[\\]{}]/g'), Js('\\$&')))
|
|
@Js
|
|
def PyJs_escape_476_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'escape':PyJs_escape_476_}, var)
|
|
var.registers(['it'])
|
|
return var.get('$re')(var.get('it'))
|
|
PyJs_escape_476_._set_name('escape')
|
|
var.get('$export')(var.get('$export').get('S'), Js('RegExp'), Js({'escape':PyJs_escape_476_}))
|
|
PyJs_anonymous_475_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_477_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'copyWithin':var.get('require')(Js('./_array-copy-within'))}))
|
|
var.get('require')(Js('./_add-to-unscopables'))(Js('copyWithin'))
|
|
PyJs_anonymous_477_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_478_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$every'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$every', var.get('require')(Js('./_array-methods'))(Js(4.0)))
|
|
@Js
|
|
def PyJs_every_479_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'every':PyJs_every_479_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$every')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('1'))
|
|
PyJs_every_479_._set_name('every')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('every'), Js(True)).neg())), Js('Array'), Js({'every':PyJs_every_479_}))
|
|
PyJs_anonymous_478_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_480_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'fill':var.get('require')(Js('./_array-fill'))}))
|
|
var.get('require')(Js('./_add-to-unscopables'))(Js('fill'))
|
|
PyJs_anonymous_480_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_481_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$filter'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$filter', var.get('require')(Js('./_array-methods'))(Js(2.0)))
|
|
@Js
|
|
def PyJs_filter_482_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'filter':PyJs_filter_482_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$filter')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('1'))
|
|
PyJs_filter_482_._set_name('filter')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('filter'), Js(True)).neg())), Js('Array'), Js({'filter':PyJs_filter_482_}))
|
|
PyJs_anonymous_481_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_483_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'KEY', '$export', 'forced', 'exports', 'module', '$find'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$find', var.get('require')(Js('./_array-methods'))(Js(6.0)))
|
|
var.put('KEY', Js('findIndex'))
|
|
var.put('forced', Js(True))
|
|
if Js([]).contains(var.get('KEY')):
|
|
@Js
|
|
def PyJs_anonymous_484_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.put('forced', Js(False))
|
|
PyJs_anonymous_484_._set_name('anonymous')
|
|
var.get('Array')(Js(1.0)).callprop(var.get('KEY'), PyJs_anonymous_484_)
|
|
@Js
|
|
def PyJs_findIndex_485_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'findIndex':PyJs_findIndex_485_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$find')(var.get(u"this"), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_findIndex_485_._set_name('findIndex')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('forced'))), Js('Array'), Js({'findIndex':PyJs_findIndex_485_}))
|
|
var.get('require')(Js('./_add-to-unscopables'))(var.get('KEY'))
|
|
PyJs_anonymous_483_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_486_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'KEY', '$export', 'forced', 'exports', 'module', '$find'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$find', var.get('require')(Js('./_array-methods'))(Js(5.0)))
|
|
var.put('KEY', Js('find'))
|
|
var.put('forced', Js(True))
|
|
if Js([]).contains(var.get('KEY')):
|
|
@Js
|
|
def PyJs_anonymous_487_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.put('forced', Js(False))
|
|
PyJs_anonymous_487_._set_name('anonymous')
|
|
var.get('Array')(Js(1.0)).callprop(var.get('KEY'), PyJs_anonymous_487_)
|
|
@Js
|
|
def PyJs_find_488_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'find':PyJs_find_488_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$find')(var.get(u"this"), var.get('callbackfn'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_find_488_._set_name('find')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('forced'))), Js('Array'), Js({'find':PyJs_find_488_}))
|
|
var.get('require')(Js('./_add-to-unscopables'))(var.get('KEY'))
|
|
PyJs_anonymous_486_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_489_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$forEach', 'STRICT', '$export', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$forEach', var.get('require')(Js('./_array-methods'))(Js(0.0)))
|
|
var.put('STRICT', var.get('require')(Js('./_strict-method'))(Js([]).get('forEach'), Js(True)))
|
|
@Js
|
|
def PyJs_forEach_490_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'forEach':PyJs_forEach_490_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$forEach')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('1'))
|
|
PyJs_forEach_490_._set_name('forEach')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('STRICT').neg())), Js('Array'), Js({'forEach':PyJs_forEach_490_}))
|
|
PyJs_anonymous_489_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_491_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'getIterFn', 'toLength', 'isArrayIter', 'toObject', '$export', 'call', 'exports', 'module', 'ctx', 'createProperty'])
|
|
Js('use strict')
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('call', var.get('require')(Js('./_iter-call')))
|
|
var.put('isArrayIter', var.get('require')(Js('./_is-array-iter')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('createProperty', var.get('require')(Js('./_create-property')))
|
|
var.put('getIterFn', var.get('require')(Js('./core.get-iterator-method')))
|
|
@Js
|
|
def PyJs_anonymous_492_(iter, this, arguments, var=var):
|
|
var = Scope({'iter':iter, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iter'])
|
|
var.get('Array').callprop('from', var.get('iter'))
|
|
PyJs_anonymous_492_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_InlineNonPyName_493_(arrayLike, this, arguments, var=var):
|
|
var = Scope({'arrayLike':arrayLike, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_493_}, var)
|
|
var.registers(['C', 'iterator', 'index', 'length', 'mapfn', 'O', 'result', 'arrayLike', 'step', 'mapping', 'aLen', 'iterFn'])
|
|
var.put('O', var.get('toObject')(var.get('arrayLike')))
|
|
var.put('C', (var.get(u"this") if (var.get(u"this",throw=False).typeof()==Js('function')) else var.get('Array')))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('mapfn', (var.get('arguments').get('1') if (var.get('aLen')>Js(1.0)) else var.get('undefined')))
|
|
var.put('mapping', PyJsStrictNeq(var.get('mapfn'),var.get('undefined')))
|
|
var.put('index', Js(0.0))
|
|
var.put('iterFn', var.get('getIterFn')(var.get('O')))
|
|
pass
|
|
if var.get('mapping'):
|
|
var.put('mapfn', var.get('ctx')(var.get('mapfn'), (var.get('arguments').get('2') if (var.get('aLen')>Js(2.0)) else var.get('undefined')), Js(2.0)))
|
|
if ((var.get('iterFn')!=var.get('undefined')) and ((var.get('C')==var.get('Array')) and var.get('isArrayIter')(var.get('iterFn'))).neg()):
|
|
#for JS loop
|
|
PyJsComma(var.put('iterator', var.get('iterFn').callprop('call', var.get('O'))),var.put('result', var.get('C').create()))
|
|
while var.put('step', var.get('iterator').callprop('next')).get('done').neg():
|
|
try:
|
|
var.get('createProperty')(var.get('result'), var.get('index'), (var.get('call')(var.get('iterator'), var.get('mapfn'), Js([var.get('step').get('value'), var.get('index')]), Js(True)) if var.get('mapping') else var.get('step').get('value')))
|
|
finally:
|
|
(var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))
|
|
else:
|
|
var.put('length', var.get('toLength')(var.get('O').get('length')))
|
|
#for JS loop
|
|
var.put('result', var.get('C').create(var.get('length')))
|
|
while (var.get('length')>var.get('index')):
|
|
try:
|
|
var.get('createProperty')(var.get('result'), var.get('index'), (var.get('mapfn')(var.get('O').get(var.get('index')), var.get('index')) if var.get('mapping') else var.get('O').get(var.get('index'))))
|
|
finally:
|
|
(var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))
|
|
var.get('result').put('length', var.get('index'))
|
|
return var.get('result')
|
|
PyJs_InlineNonPyName_493_._set_name('from')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_iter-detect'))(PyJs_anonymous_492_).neg())), Js('Array'), Js({'from':PyJs_InlineNonPyName_493_}))
|
|
PyJs_anonymous_491_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_494_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$indexOf', 'require', '$export', 'exports', 'module', 'NEGATIVE_ZERO', '$native'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$indexOf', var.get('require')(Js('./_array-includes'))(Js(False)))
|
|
var.put('$native', Js([]).get('indexOf'))
|
|
var.put('NEGATIVE_ZERO', (var.get('$native').neg().neg() and ((Js(1.0)/Js([Js(1.0)]).callprop('indexOf', Js(1.0), (-Js(0.0))))<Js(0.0))))
|
|
@Js
|
|
def PyJs_indexOf_495_(searchElement, this, arguments, var=var):
|
|
var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'indexOf':PyJs_indexOf_495_}, var)
|
|
var.registers(['searchElement'])
|
|
return ((var.get('$native').callprop('apply', var.get(u"this"), var.get('arguments')) or Js(0.0)) if var.get('NEGATIVE_ZERO') else var.get('$indexOf')(var.get(u"this"), var.get('searchElement'), var.get('arguments').get('1')))
|
|
PyJs_indexOf_495_._set_name('indexOf')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('NEGATIVE_ZERO') or var.get('require')(Js('./_strict-method'))(var.get('$native')).neg()))), Js('Array'), Js({'indexOf':PyJs_indexOf_495_}))
|
|
PyJs_anonymous_494_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_496_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Array'), Js({'isArray':var.get('require')(Js('./_is-array'))}))
|
|
PyJs_anonymous_496_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_497_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toIObject', 'exports', 'module', 'step', 'Iterators', 'addToUnscopables'])
|
|
Js('use strict')
|
|
var.put('addToUnscopables', var.get('require')(Js('./_add-to-unscopables')))
|
|
var.put('step', var.get('require')(Js('./_iter-step')))
|
|
var.put('Iterators', var.get('require')(Js('./_iterators')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
@Js
|
|
def PyJs_anonymous_498_(iterated, kind, this, arguments, var=var):
|
|
var = Scope({'iterated':iterated, 'kind':kind, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iterated', 'kind'])
|
|
var.get(u"this").put('_t', var.get('toIObject')(var.get('iterated')))
|
|
var.get(u"this").put('_i', Js(0.0))
|
|
var.get(u"this").put('_k', var.get('kind'))
|
|
PyJs_anonymous_498_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_499_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'O', 'kind'])
|
|
var.put('O', var.get(u"this").get('_t'))
|
|
var.put('kind', var.get(u"this").get('_k'))
|
|
var.put('index', (var.get(u"this").put('_i',Js(var.get(u"this").get('_i').to_number())+Js(1))-Js(1)))
|
|
if (var.get('O').neg() or (var.get('index')>=var.get('O').get('length'))):
|
|
var.get(u"this").put('_t', var.get('undefined'))
|
|
return var.get('step')(Js(1.0))
|
|
if (var.get('kind')==Js('keys')):
|
|
return var.get('step')(Js(0.0), var.get('index'))
|
|
if (var.get('kind')==Js('values')):
|
|
return var.get('step')(Js(0.0), var.get('O').get(var.get('index')))
|
|
return var.get('step')(Js(0.0), Js([var.get('index'), var.get('O').get(var.get('index'))]))
|
|
PyJs_anonymous_499_._set_name('anonymous')
|
|
var.get('module').put('exports', var.get('require')(Js('./_iter-define'))(var.get('Array'), Js('Array'), PyJs_anonymous_498_, PyJs_anonymous_499_, Js('values')))
|
|
var.get('Iterators').put('Arguments', var.get('Iterators').get('Array'))
|
|
var.get('addToUnscopables')(Js('keys'))
|
|
var.get('addToUnscopables')(Js('values'))
|
|
var.get('addToUnscopables')(Js('entries'))
|
|
PyJs_anonymous_497_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_500_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toIObject', '$export', 'exports', 'module', 'arrayJoin'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('arrayJoin', Js([]).get('join'))
|
|
@Js
|
|
def PyJs_join_501_(separator, this, arguments, var=var):
|
|
var = Scope({'separator':separator, 'this':this, 'arguments':arguments, 'join':PyJs_join_501_}, var)
|
|
var.registers(['separator'])
|
|
return var.get('arrayJoin').callprop('call', var.get('toIObject')(var.get(u"this")), (Js(',') if PyJsStrictEq(var.get('separator'),var.get('undefined')) else var.get('separator')))
|
|
PyJs_join_501_._set_name('join')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*((var.get('require')(Js('./_iobject'))!=var.get('Object')) or var.get('require')(Js('./_strict-method'))(var.get('arrayJoin')).neg()))), Js('Array'), Js({'join':PyJs_join_501_}))
|
|
PyJs_anonymous_500_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_502_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'toIObject', '$export', 'exports', 'module', 'NEGATIVE_ZERO', 'toInteger', '$native'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('$native', Js([]).get('lastIndexOf'))
|
|
var.put('NEGATIVE_ZERO', (var.get('$native').neg().neg() and ((Js(1.0)/Js([Js(1.0)]).callprop('lastIndexOf', Js(1.0), (-Js(0.0))))<Js(0.0))))
|
|
@Js
|
|
def PyJs_lastIndexOf_503_(searchElement, this, arguments, var=var):
|
|
var = Scope({'searchElement':searchElement, 'this':this, 'arguments':arguments, 'lastIndexOf':PyJs_lastIndexOf_503_}, var)
|
|
var.registers(['length', 'O', 'searchElement', 'index'])
|
|
if var.get('NEGATIVE_ZERO'):
|
|
return (var.get('$native').callprop('apply', var.get(u"this"), var.get('arguments')) or Js(0.0))
|
|
var.put('O', var.get('toIObject')(var.get(u"this")))
|
|
var.put('length', var.get('toLength')(var.get('O').get('length')))
|
|
var.put('index', (var.get('length')-Js(1.0)))
|
|
if (var.get('arguments').get('length')>Js(1.0)):
|
|
var.put('index', var.get('Math').callprop('min', var.get('index'), var.get('toInteger')(var.get('arguments').get('1'))))
|
|
if (var.get('index')<Js(0.0)):
|
|
var.put('index', (var.get('length')+var.get('index')))
|
|
#for JS loop
|
|
|
|
while (var.get('index')>=Js(0.0)):
|
|
try:
|
|
if var.get('O').contains(var.get('index')):
|
|
if PyJsStrictEq(var.get('O').get(var.get('index')),var.get('searchElement')):
|
|
return (var.get('index') or Js(0.0))
|
|
finally:
|
|
(var.put('index',Js(var.get('index').to_number())-Js(1))+Js(1))
|
|
return (-Js(1.0))
|
|
PyJs_lastIndexOf_503_._set_name('lastIndexOf')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('NEGATIVE_ZERO') or var.get('require')(Js('./_strict-method'))(var.get('$native')).neg()))), Js('Array'), Js({'lastIndexOf':PyJs_lastIndexOf_503_}))
|
|
PyJs_anonymous_502_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_504_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$map', '$export', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$map', var.get('require')(Js('./_array-methods'))(Js(1.0)))
|
|
@Js
|
|
def PyJs_map_505_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'map':PyJs_map_505_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$map')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('1'))
|
|
PyJs_map_505_._set_name('map')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('map'), Js(True)).neg())), Js('Array'), Js({'map':PyJs_map_505_}))
|
|
PyJs_anonymous_504_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_506_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'createProperty'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('createProperty', var.get('require')(Js('./_create-property')))
|
|
@Js
|
|
def PyJs_anonymous_507_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['F'])
|
|
@Js
|
|
def PyJsHoisted_F_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJsHoisted_F_.func_name = 'F'
|
|
var.put('F', PyJsHoisted_F_)
|
|
pass
|
|
return var.get('Array').get('of').callprop('call', var.get('F')).instanceof(var.get('F')).neg()
|
|
PyJs_anonymous_507_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_of_508_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_508_}, var)
|
|
var.registers(['index', 'result', 'aLen'])
|
|
var.put('index', Js(0.0))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('result', (var.get(u"this") if (var.get(u"this",throw=False).typeof()==Js('function')) else var.get('Array')).create(var.get('aLen')))
|
|
while (var.get('aLen')>var.get('index')):
|
|
var.get('createProperty')(var.get('result'), var.get('index'), var.get('arguments').get((var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1))))
|
|
var.get('result').put('length', var.get('aLen'))
|
|
return var.get('result')
|
|
PyJs_of_508_._set_name('of')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_507_))), Js('Array'), Js({'of':PyJs_of_508_}))
|
|
PyJs_anonymous_506_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_509_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$reduce'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$reduce', var.get('require')(Js('./_array-reduce')))
|
|
@Js
|
|
def PyJs_reduceRight_510_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduceRight':PyJs_reduceRight_510_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$reduce')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('length'), var.get('arguments').get('1'), Js(True))
|
|
PyJs_reduceRight_510_._set_name('reduceRight')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('reduceRight'), Js(True)).neg())), Js('Array'), Js({'reduceRight':PyJs_reduceRight_510_}))
|
|
PyJs_anonymous_509_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_511_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$reduce'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$reduce', var.get('require')(Js('./_array-reduce')))
|
|
@Js
|
|
def PyJs_reduce_512_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'reduce':PyJs_reduce_512_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$reduce')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('length'), var.get('arguments').get('1'), Js(False))
|
|
PyJs_reduce_512_._set_name('reduce')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('reduce'), Js(True)).neg())), Js('Array'), Js({'reduce':PyJs_reduce_512_}))
|
|
PyJs_anonymous_511_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_513_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'arraySlice', 'toLength', 'html', 'toAbsoluteIndex', '$export', 'exports', 'cof', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('html', var.get('require')(Js('./_html')))
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('arraySlice', Js([]).get('slice'))
|
|
@Js
|
|
def PyJs_anonymous_514_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
if var.get('html'):
|
|
var.get('arraySlice').callprop('call', var.get('html'))
|
|
PyJs_anonymous_514_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_slice_515_(begin, end, this, arguments, var=var):
|
|
var = Scope({'begin':begin, 'end':end, 'this':this, 'arguments':arguments, 'slice':PyJs_slice_515_}, var)
|
|
var.registers(['upTo', 'begin', 'cloned', 'i', 'end', 'start', 'size', 'len', 'klass'])
|
|
var.put('len', var.get('toLength')(var.get(u"this").get('length')))
|
|
var.put('klass', var.get('cof')(var.get(u"this")))
|
|
var.put('end', (var.get('len') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('end')))
|
|
if (var.get('klass')==Js('Array')):
|
|
return var.get('arraySlice').callprop('call', var.get(u"this"), var.get('begin'), var.get('end'))
|
|
var.put('start', var.get('toAbsoluteIndex')(var.get('begin'), var.get('len')))
|
|
var.put('upTo', var.get('toAbsoluteIndex')(var.get('end'), var.get('len')))
|
|
var.put('size', var.get('toLength')((var.get('upTo')-var.get('start'))))
|
|
var.put('cloned', var.get('Array').create(var.get('size')))
|
|
var.put('i', Js(0.0))
|
|
#for JS loop
|
|
|
|
while (var.get('i')<var.get('size')):
|
|
try:
|
|
var.get('cloned').put(var.get('i'), (var.get(u"this").callprop('charAt', (var.get('start')+var.get('i'))) if (var.get('klass')==Js('String')) else var.get(u"this").get((var.get('start')+var.get('i')))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('cloned')
|
|
PyJs_slice_515_._set_name('slice')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_514_))), Js('Array'), Js({'slice':PyJs_slice_515_}))
|
|
PyJs_anonymous_513_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_516_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$some', '$export', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$some', var.get('require')(Js('./_array-methods'))(Js(3.0)))
|
|
@Js
|
|
def PyJs_some_517_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'some':PyJs_some_517_}, var)
|
|
var.registers(['callbackfn'])
|
|
return var.get('$some')(var.get(u"this"), var.get('callbackfn'), var.get('arguments').get('1'))
|
|
PyJs_some_517_._set_name('some')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_strict-method'))(Js([]).get('some'), Js(True)).neg())), Js('Array'), Js({'some':PyJs_some_517_}))
|
|
PyJs_anonymous_516_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_518_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'test', 'toObject', '$sort', '$export', 'exports', 'module', 'fails'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('$sort', Js([]).get('sort'))
|
|
var.put('test', Js([Js(1.0), Js(2.0), Js(3.0)]))
|
|
@Js
|
|
def PyJs_anonymous_519_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('test').callprop('sort', var.get('undefined'))
|
|
PyJs_anonymous_519_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_520_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('test').callprop('sort', var.get(u"null"))
|
|
PyJs_anonymous_520_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_sort_521_(comparefn, this, arguments, var=var):
|
|
var = Scope({'comparefn':comparefn, 'this':this, 'arguments':arguments, 'sort':PyJs_sort_521_}, var)
|
|
var.registers(['comparefn'])
|
|
return (var.get('$sort').callprop('call', var.get('toObject')(var.get(u"this"))) if PyJsStrictEq(var.get('comparefn'),var.get('undefined')) else var.get('$sort').callprop('call', var.get('toObject')(var.get(u"this")), var.get('aFunction')(var.get('comparefn'))))
|
|
PyJs_sort_521_._set_name('sort')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*((var.get('fails')(PyJs_anonymous_519_) or var.get('fails')(PyJs_anonymous_520_).neg()) or var.get('require')(Js('./_strict-method'))(var.get('$sort')).neg()))), Js('Array'), Js({'sort':PyJs_sort_521_}))
|
|
PyJs_anonymous_518_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_522_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-species'))(Js('Array'))
|
|
PyJs_anonymous_522_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_523_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_now_524_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'now':PyJs_now_524_}, var)
|
|
var.registers([])
|
|
return var.get('Date').create().callprop('getTime')
|
|
PyJs_now_524_._set_name('now')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Date'), Js({'now':PyJs_now_524_}))
|
|
PyJs_anonymous_523_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_525_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'toISOString', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toISOString', var.get('require')(Js('./_date-to-iso-string')))
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*PyJsStrictNeq(var.get('Date').get('prototype').get('toISOString'),var.get('toISOString')))), Js('Date'), Js({'toISOString':var.get('toISOString')}))
|
|
PyJs_anonymous_525_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_526_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toPrimitive', 'toObject', '$export', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
@Js
|
|
def PyJs_anonymous_527_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_toISOString_528_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toISOString':PyJs_toISOString_528_}, var)
|
|
var.registers([])
|
|
return Js(1.0)
|
|
PyJs_toISOString_528_._set_name('toISOString')
|
|
return (PyJsStrictNeq(var.get('Date').create(var.get('NaN')).callprop('toJSON'),var.get(u"null")) or PyJsStrictNeq(var.get('Date').get('prototype').get('toJSON').callprop('call', Js({'toISOString':PyJs_toISOString_528_})),Js(1.0)))
|
|
PyJs_anonymous_527_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_toJSON_529_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'toJSON':PyJs_toJSON_529_}, var)
|
|
var.registers(['O', 'pv', 'key'])
|
|
var.put('O', var.get('toObject')(var.get(u"this")))
|
|
var.put('pv', var.get('toPrimitive')(var.get('O')))
|
|
return (var.get(u"null") if ((var.get('pv',throw=False).typeof()==Js('number')) and var.get('isFinite')(var.get('pv')).neg()) else var.get('O').callprop('toISOString'))
|
|
PyJs_toJSON_529_._set_name('toJSON')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_527_))), Js('Date'), Js({'toJSON':PyJs_toJSON_529_}))
|
|
PyJs_anonymous_526_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_530_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'proto', 'exports', 'module', 'TO_PRIMITIVE'])
|
|
var.put('TO_PRIMITIVE', var.get('require')(Js('./_wks'))(Js('toPrimitive')))
|
|
var.put('proto', var.get('Date').get('prototype'))
|
|
if var.get('proto').contains(var.get('TO_PRIMITIVE')).neg():
|
|
var.get('require')(Js('./_hide'))(var.get('proto'), var.get('TO_PRIMITIVE'), var.get('require')(Js('./_date-to-primitive')))
|
|
PyJs_anonymous_530_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_531_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'TO_STRING', 'getTime', 'INVALID_DATE', '$toString', 'DateProto'])
|
|
var.put('DateProto', var.get('Date').get('prototype'))
|
|
var.put('INVALID_DATE', Js('Invalid Date'))
|
|
var.put('TO_STRING', Js('toString'))
|
|
var.put('$toString', var.get('DateProto').get(var.get('TO_STRING')))
|
|
var.put('getTime', var.get('DateProto').get('getTime'))
|
|
if ((var.get('Date').create(var.get('NaN'))+Js(''))!=var.get('INVALID_DATE')):
|
|
@Js
|
|
def PyJs_toString_532_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_532_}, var)
|
|
var.registers(['value'])
|
|
var.put('value', var.get('getTime').callprop('call', var.get(u"this")))
|
|
return (var.get('$toString').callprop('call', var.get(u"this")) if PyJsStrictEq(var.get('value'),var.get('value')) else var.get('INVALID_DATE'))
|
|
PyJs_toString_532_._set_name('toString')
|
|
var.get('require')(Js('./_redefine'))(var.get('DateProto'), var.get('TO_STRING'), PyJs_toString_532_)
|
|
PyJs_anonymous_531_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_533_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('P'), Js('Function'), Js({'bind':var.get('require')(Js('./_bind'))}))
|
|
PyJs_anonymous_533_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_534_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'FunctionProto', 'HAS_INSTANCE', 'exports', 'module', 'getPrototypeOf', 'isObject'])
|
|
Js('use strict')
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('HAS_INSTANCE', var.get('require')(Js('./_wks'))(Js('hasInstance')))
|
|
var.put('FunctionProto', var.get('Function').get('prototype'))
|
|
if var.get('FunctionProto').contains(var.get('HAS_INSTANCE')).neg():
|
|
@Js
|
|
def PyJs_value_535_(O, this, arguments, var=var):
|
|
var = Scope({'O':O, 'this':this, 'arguments':arguments, 'value':PyJs_value_535_}, var)
|
|
var.registers(['O'])
|
|
if ((var.get(u"this",throw=False).typeof()!=Js('function')) or var.get('isObject')(var.get('O')).neg()):
|
|
return Js(False)
|
|
if var.get('isObject')(var.get(u"this").get('prototype')).neg():
|
|
return var.get('O').instanceof(var.get(u"this"))
|
|
while var.put('O', var.get('getPrototypeOf')(var.get('O'))):
|
|
if PyJsStrictEq(var.get(u"this").get('prototype'),var.get('O')):
|
|
return Js(True)
|
|
return Js(False)
|
|
PyJs_value_535_._set_name('value')
|
|
var.get('require')(Js('./_object-dp')).callprop('f', var.get('FunctionProto'), var.get('HAS_INSTANCE'), Js({'value':PyJs_value_535_}))
|
|
PyJs_anonymous_534_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_536_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['nameRE', 'require', 'FProto', 'exports', 'module', 'NAME', 'dP'])
|
|
var.put('dP', var.get('require')(Js('./_object-dp')).get('f'))
|
|
var.put('FProto', var.get('Function').get('prototype'))
|
|
var.put('nameRE', JsRegExp('/^\\s*function ([^ (]*)/'))
|
|
var.put('NAME', Js('name'))
|
|
@Js
|
|
def PyJs_get_537_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_537_}, var)
|
|
var.registers([])
|
|
try:
|
|
return (Js('')+var.get(u"this")).callprop('match', var.get('nameRE')).get('1')
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_53854256 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return Js('')
|
|
finally:
|
|
if PyJsHolder_65_53854256 is not None:
|
|
var.own['e'] = PyJsHolder_65_53854256
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_53854256
|
|
PyJs_get_537_._set_name('get')
|
|
(var.get('FProto').contains(var.get('NAME')) or (var.get('require')(Js('./_descriptors')) and var.get('dP')(var.get('FProto'), var.get('NAME'), Js({'configurable':Js(True),'get':PyJs_get_537_}))))
|
|
PyJs_anonymous_536_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_538_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'strong', 'exports', 'MAP', 'module', 'validate'])
|
|
Js('use strict')
|
|
var.put('strong', var.get('require')(Js('./_collection-strong')))
|
|
var.put('validate', var.get('require')(Js('./_validate-collection')))
|
|
var.put('MAP', Js('Map'))
|
|
@Js
|
|
def PyJs_anonymous_539_(get, this, arguments, var=var):
|
|
var = Scope({'get':get, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['get'])
|
|
@Js
|
|
def PyJs_Map_540_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'Map':PyJs_Map_540_}, var)
|
|
var.registers([])
|
|
return var.get('get')(var.get(u"this"), (var.get('arguments').get('0') if (var.get('arguments').get('length')>Js(0.0)) else var.get('undefined')))
|
|
PyJs_Map_540_._set_name('Map')
|
|
return PyJs_Map_540_
|
|
PyJs_anonymous_539_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_get_541_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'get':PyJs_get_541_}, var)
|
|
var.registers(['entry', 'key'])
|
|
var.put('entry', var.get('strong').callprop('getEntry', var.get('validate')(var.get(u"this"), var.get('MAP')), var.get('key')))
|
|
return (var.get('entry') and var.get('entry').get('v'))
|
|
PyJs_get_541_._set_name('get')
|
|
@Js
|
|
def PyJs_set_542_(key, value, this, arguments, var=var):
|
|
var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_542_}, var)
|
|
var.registers(['value', 'key'])
|
|
return var.get('strong').callprop('def', var.get('validate')(var.get(u"this"), var.get('MAP')), (Js(0.0) if PyJsStrictEq(var.get('key'),Js(0.0)) else var.get('key')), var.get('value'))
|
|
PyJs_set_542_._set_name('set')
|
|
var.get('module').put('exports', var.get('require')(Js('./_collection'))(var.get('MAP'), PyJs_anonymous_539_, Js({'get':PyJs_get_541_,'set':PyJs_set_542_}), var.get('strong'), Js(True)))
|
|
PyJs_anonymous_538_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_543_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'log1p', 'sqrt', '$export', 'exports', 'module', '$acosh'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('log1p', var.get('require')(Js('./_math-log1p')))
|
|
var.put('sqrt', var.get('Math').get('sqrt'))
|
|
var.put('$acosh', var.get('Math').get('acosh'))
|
|
@Js
|
|
def PyJs_acosh_544_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'acosh':PyJs_acosh_544_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('NaN') if (var.put('x', (+var.get('x')))<Js(1.0)) else ((var.get('Math').callprop('log', var.get('x'))+var.get('Math').get('LN2')) if (var.get('x')>Js(94906265.62425156)) else var.get('log1p')(((var.get('x')-Js(1.0))+(var.get('sqrt')((var.get('x')-Js(1.0)))*var.get('sqrt')((var.get('x')+Js(1.0))))))))
|
|
PyJs_acosh_544_._set_name('acosh')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*((var.get('$acosh') and (var.get('Math').callprop('floor', var.get('$acosh')(var.get('Number').get('MAX_VALUE')))==Js(710.0))) and (var.get('$acosh')(var.get('Infinity'))==var.get('Infinity'))).neg())), Js('Math'), Js({'acosh':PyJs_acosh_544_}))
|
|
PyJs_anonymous_543_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_545_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'asinh', '$asinh', '$export', 'exports', 'module'])
|
|
@Js
|
|
def PyJsHoisted_asinh_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['x'])
|
|
return (var.get('x') if (var.get('isFinite')(var.put('x', (+var.get('x')))).neg() or (var.get('x')==Js(0.0))) else ((-var.get('asinh')((-var.get('x')))) if (var.get('x')<Js(0.0)) else var.get('Math').callprop('log', (var.get('x')+var.get('Math').callprop('sqrt', ((var.get('x')*var.get('x'))+Js(1.0)))))))
|
|
PyJsHoisted_asinh_.func_name = 'asinh'
|
|
var.put('asinh', PyJsHoisted_asinh_)
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$asinh', var.get('Math').get('asinh'))
|
|
pass
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('$asinh') and ((Js(1.0)/var.get('$asinh')(Js(0.0)))>Js(0.0))).neg())), Js('Math'), Js({'asinh':var.get('asinh')}))
|
|
PyJs_anonymous_545_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_546_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$atanh'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$atanh', var.get('Math').get('atanh'))
|
|
@Js
|
|
def PyJs_atanh_547_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'atanh':PyJs_atanh_547_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('x') if (var.put('x', (+var.get('x')))==Js(0.0)) else (var.get('Math').callprop('log', ((Js(1.0)+var.get('x'))/(Js(1.0)-var.get('x'))))/Js(2.0)))
|
|
PyJs_atanh_547_._set_name('atanh')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('$atanh') and ((Js(1.0)/var.get('$atanh')((-Js(0.0))))<Js(0.0))).neg())), Js('Math'), Js({'atanh':PyJs_atanh_547_}))
|
|
PyJs_anonymous_546_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_548_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'sign'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('sign', var.get('require')(Js('./_math-sign')))
|
|
@Js
|
|
def PyJs_cbrt_549_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'cbrt':PyJs_cbrt_549_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('sign')(var.put('x', (+var.get('x'))))*var.get('Math').callprop('pow', var.get('Math').callprop('abs', var.get('x')), (Js(1.0)/Js(3.0))))
|
|
PyJs_cbrt_549_._set_name('cbrt')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'cbrt':PyJs_cbrt_549_}))
|
|
PyJs_anonymous_548_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_550_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_clz32_551_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'clz32':PyJs_clz32_551_}, var)
|
|
var.registers(['x'])
|
|
return ((Js(31.0)-var.get('Math').callprop('floor', (var.get('Math').callprop('log', (var.get('x')+Js(0.5)))*var.get('Math').get('LOG2E')))) if var.put('x', Js(0.0), '>>>') else Js(32.0))
|
|
PyJs_clz32_551_._set_name('clz32')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'clz32':PyJs_clz32_551_}))
|
|
PyJs_anonymous_550_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_552_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'exp'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('exp', var.get('Math').get('exp'))
|
|
@Js
|
|
def PyJs_cosh_553_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'cosh':PyJs_cosh_553_}, var)
|
|
var.registers(['x'])
|
|
return ((var.get('exp')(var.put('x', (+var.get('x'))))+var.get('exp')((-var.get('x'))))/Js(2.0))
|
|
PyJs_cosh_553_._set_name('cosh')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'cosh':PyJs_cosh_553_}))
|
|
PyJs_anonymous_552_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_554_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$expm1'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$expm1', var.get('require')(Js('./_math-expm1')))
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('$expm1')!=var.get('Math').get('expm1')))), Js('Math'), Js({'expm1':var.get('$expm1')}))
|
|
PyJs_anonymous_554_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_555_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'fround':var.get('require')(Js('./_math-fround'))}))
|
|
PyJs_anonymous_555_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_556_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'abs', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('abs', var.get('Math').get('abs'))
|
|
@Js
|
|
def PyJs_hypot_557_(value1, value2, this, arguments, var=var):
|
|
var = Scope({'value1':value1, 'value2':value2, 'this':this, 'arguments':arguments, 'hypot':PyJs_hypot_557_}, var)
|
|
var.registers(['i', 'value2', 'div', 'arg', 'larg', 'value1', 'aLen', 'sum'])
|
|
var.put('sum', Js(0.0))
|
|
var.put('i', Js(0.0))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('larg', Js(0.0))
|
|
pass
|
|
while (var.get('i')<var.get('aLen')):
|
|
var.put('arg', var.get('abs')(var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))))
|
|
if (var.get('larg')<var.get('arg')):
|
|
var.put('div', (var.get('larg')/var.get('arg')))
|
|
var.put('sum', (((var.get('sum')*var.get('div'))*var.get('div'))+Js(1.0)))
|
|
var.put('larg', var.get('arg'))
|
|
else:
|
|
if (var.get('arg')>Js(0.0)):
|
|
var.put('div', (var.get('arg')/var.get('larg')))
|
|
var.put('sum', (var.get('div')*var.get('div')), '+')
|
|
else:
|
|
var.put('sum', var.get('arg'), '+')
|
|
return (var.get('Infinity') if PyJsStrictEq(var.get('larg'),var.get('Infinity')) else (var.get('larg')*var.get('Math').callprop('sqrt', var.get('sum'))))
|
|
PyJs_hypot_557_._set_name('hypot')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'hypot':PyJs_hypot_557_}))
|
|
PyJs_anonymous_556_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_558_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$imul', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$imul', var.get('Math').get('imul'))
|
|
@Js
|
|
def PyJs_anonymous_559_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return ((var.get('$imul')(Js(4294967295), Js(5.0))!=(-Js(5.0))) or (var.get('$imul').get('length')!=Js(2.0)))
|
|
PyJs_anonymous_559_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_imul_560_(x, y, this, arguments, var=var):
|
|
var = Scope({'x':x, 'y':y, 'this':this, 'arguments':arguments, 'imul':PyJs_imul_560_}, var)
|
|
var.registers(['y', 'x', 'UINT16', 'xn', 'xl', 'yl', 'yn'])
|
|
var.put('UINT16', Js(65535))
|
|
var.put('xn', (+var.get('x')))
|
|
var.put('yn', (+var.get('y')))
|
|
var.put('xl', (var.get('UINT16')&var.get('xn')))
|
|
var.put('yl', (var.get('UINT16')&var.get('yn')))
|
|
return (Js(0.0)|((var.get('xl')*var.get('yl'))+PyJsBshift(((((var.get('UINT16')&PyJsBshift(var.get('xn'),Js(16.0)))*var.get('yl'))+(var.get('xl')*(var.get('UINT16')&PyJsBshift(var.get('yn'),Js(16.0)))))<<Js(16.0)),Js(0.0))))
|
|
PyJs_imul_560_._set_name('imul')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_559_))), Js('Math'), Js({'imul':PyJs_imul_560_}))
|
|
PyJs_anonymous_558_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_561_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_log10_562_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'log10':PyJs_log10_562_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('Math').callprop('log', var.get('x'))*var.get('Math').get('LOG10E'))
|
|
PyJs_log10_562_._set_name('log10')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'log10':PyJs_log10_562_}))
|
|
PyJs_anonymous_561_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_563_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'log1p':var.get('require')(Js('./_math-log1p'))}))
|
|
PyJs_anonymous_563_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_564_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_log2_565_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'log2':PyJs_log2_565_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('Math').callprop('log', var.get('x'))/var.get('Math').get('LN2'))
|
|
PyJs_log2_565_._set_name('log2')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'log2':PyJs_log2_565_}))
|
|
PyJs_anonymous_564_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_566_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'sign':var.get('require')(Js('./_math-sign'))}))
|
|
PyJs_anonymous_566_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_567_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'expm1', '$export', 'exports', 'module', 'exp'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('expm1', var.get('require')(Js('./_math-expm1')))
|
|
var.put('exp', var.get('Math').get('exp'))
|
|
@Js
|
|
def PyJs_anonymous_568_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return (var.get('Math').callprop('sinh', (-Js(2e-17))).neg()!=(-Js(2e-17)))
|
|
PyJs_anonymous_568_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_sinh_569_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'sinh':PyJs_sinh_569_}, var)
|
|
var.registers(['x'])
|
|
return (((var.get('expm1')(var.get('x'))-var.get('expm1')((-var.get('x'))))/Js(2.0)) if (var.get('Math').callprop('abs', var.put('x', (+var.get('x'))))<Js(1.0)) else ((var.get('exp')((var.get('x')-Js(1.0)))-var.get('exp')(((-var.get('x'))-Js(1.0))))*(var.get('Math').get('E')/Js(2.0))))
|
|
PyJs_sinh_569_._set_name('sinh')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_568_))), Js('Math'), Js({'sinh':PyJs_sinh_569_}))
|
|
PyJs_anonymous_567_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_570_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'expm1', '$export', 'exports', 'module', 'exp'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('expm1', var.get('require')(Js('./_math-expm1')))
|
|
var.put('exp', var.get('Math').get('exp'))
|
|
@Js
|
|
def PyJs_tanh_571_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'tanh':PyJs_tanh_571_}, var)
|
|
var.registers(['x', 'a', 'b'])
|
|
var.put('a', var.get('expm1')(var.put('x', (+var.get('x')))))
|
|
var.put('b', var.get('expm1')((-var.get('x'))))
|
|
return (Js(1.0) if (var.get('a')==var.get('Infinity')) else ((-Js(1.0)) if (var.get('b')==var.get('Infinity')) else ((var.get('a')-var.get('b'))/(var.get('exp')(var.get('x'))+var.get('exp')((-var.get('x')))))))
|
|
PyJs_tanh_571_._set_name('tanh')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'tanh':PyJs_tanh_571_}))
|
|
PyJs_anonymous_570_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_572_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_trunc_573_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'trunc':PyJs_trunc_573_}, var)
|
|
var.registers(['it'])
|
|
return (var.get('Math').get('floor') if (var.get('it')>Js(0.0)) else var.get('Math').get('ceil'))(var.get('it'))
|
|
PyJs_trunc_573_._set_name('trunc')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'trunc':PyJs_trunc_573_}))
|
|
PyJs_anonymous_572_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_574_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['proto', 'cof', 'Base', '$trim', 'dP', 'key', 'TRIM', 'gOPN', 'inheritIfRequired', 'BROKEN_COF', 'require', 'toPrimitive', 'NUMBER', 'module', 'fails', 'global', 'keys', '$Number', 'toNumber', 'gOPD', 'exports', 'j', 'has'])
|
|
Js('use strict')
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
var.put('inheritIfRequired', var.get('require')(Js('./_inherit-if-required')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f'))
|
|
var.put('gOPD', var.get('require')(Js('./_object-gopd')).get('f'))
|
|
var.put('dP', var.get('require')(Js('./_object-dp')).get('f'))
|
|
var.put('$trim', var.get('require')(Js('./_string-trim')).get('trim'))
|
|
var.put('NUMBER', Js('Number'))
|
|
var.put('$Number', var.get('global').get(var.get('NUMBER')))
|
|
var.put('Base', var.get('$Number'))
|
|
var.put('proto', var.get('$Number').get('prototype'))
|
|
var.put('BROKEN_COF', (var.get('cof')(var.get('require')(Js('./_object-create'))(var.get('proto')))==var.get('NUMBER')))
|
|
var.put('TRIM', var.get('String').get('prototype').contains(Js('trim')))
|
|
@Js
|
|
def PyJs_toNumber_575_(argument, this, arguments, var=var):
|
|
var = Scope({'argument':argument, 'this':this, 'arguments':arguments, 'toNumber':PyJs_toNumber_575_}, var)
|
|
var.registers(['it', 'code', 'radix', 'i', 'third', 'maxCode', 'argument', 'digits', 'first', 'l'])
|
|
var.put('it', var.get('toPrimitive')(var.get('argument'), Js(False)))
|
|
if ((var.get('it',throw=False).typeof()==Js('string')) and (var.get('it').get('length')>Js(2.0))):
|
|
var.put('it', (var.get('it').callprop('trim') if var.get('TRIM') else var.get('$trim')(var.get('it'), Js(3.0))))
|
|
var.put('first', var.get('it').callprop('charCodeAt', Js(0.0)))
|
|
pass
|
|
if (PyJsStrictEq(var.get('first'),Js(43.0)) or PyJsStrictEq(var.get('first'),Js(45.0))):
|
|
var.put('third', var.get('it').callprop('charCodeAt', Js(2.0)))
|
|
if (PyJsStrictEq(var.get('third'),Js(88.0)) or PyJsStrictEq(var.get('third'),Js(120.0))):
|
|
return var.get('NaN')
|
|
else:
|
|
if PyJsStrictEq(var.get('first'),Js(48.0)):
|
|
while 1:
|
|
SWITCHED = False
|
|
CONDITION = (var.get('it').callprop('charCodeAt', Js(1.0)))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(66.0)):
|
|
SWITCHED = True
|
|
pass
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(98.0)):
|
|
SWITCHED = True
|
|
var.put('radix', Js(2.0))
|
|
var.put('maxCode', Js(49.0))
|
|
break
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(79.0)):
|
|
SWITCHED = True
|
|
pass
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(111.0)):
|
|
SWITCHED = True
|
|
var.put('radix', Js(8.0))
|
|
var.put('maxCode', Js(55.0))
|
|
break
|
|
if True:
|
|
SWITCHED = True
|
|
return (+var.get('it'))
|
|
SWITCHED = True
|
|
break
|
|
#for JS loop
|
|
var.put('digits', var.get('it').callprop('slice', Js(2.0)))
|
|
var.put('i', Js(0.0))
|
|
var.put('l', var.get('digits').get('length'))
|
|
while (var.get('i')<var.get('l')):
|
|
try:
|
|
var.put('code', var.get('digits').callprop('charCodeAt', var.get('i')))
|
|
if ((var.get('code')<Js(48.0)) or (var.get('code')>var.get('maxCode'))):
|
|
return var.get('NaN')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('parseInt')(var.get('digits'), var.get('radix'))
|
|
return (+var.get('it'))
|
|
PyJs_toNumber_575_._set_name('toNumber')
|
|
var.put('toNumber', PyJs_toNumber_575_)
|
|
if ((var.get('$Number')(Js(' 0o1')).neg() or var.get('$Number')(Js('0b1')).neg()) or var.get('$Number')(Js('+0x1'))):
|
|
@Js
|
|
def PyJs_Number_576_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'Number':PyJs_Number_576_}, var)
|
|
var.registers(['it', 'value', 'that'])
|
|
var.put('it', (Js(0.0) if (var.get('arguments').get('length')<Js(1.0)) else var.get('value')))
|
|
var.put('that', var.get(u"this"))
|
|
@Js
|
|
def PyJs_anonymous_577_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('proto').get('valueOf').callprop('call', var.get('that'))
|
|
PyJs_anonymous_577_._set_name('anonymous')
|
|
return (var.get('inheritIfRequired')(var.get('Base').create(var.get('toNumber')(var.get('it'))), var.get('that'), var.get('$Number')) if (var.get('that').instanceof(var.get('$Number')) and (var.get('fails')(PyJs_anonymous_577_) if var.get('BROKEN_COF') else (var.get('cof')(var.get('that'))!=var.get('NUMBER')))) else var.get('toNumber')(var.get('it')))
|
|
PyJs_Number_576_._set_name('Number')
|
|
var.put('$Number', PyJs_Number_576_)
|
|
#for JS loop
|
|
var.put('keys', (var.get('gOPN')(var.get('Base')) if var.get('require')(Js('./_descriptors')) else ((Js('MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,')+Js('EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,'))+Js('MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger')).callprop('split', Js(','))))
|
|
var.put('j', Js(0.0))
|
|
while (var.get('keys').get('length')>var.get('j')):
|
|
try:
|
|
if (var.get('has')(var.get('Base'), var.put('key', var.get('keys').get(var.get('j')))) and var.get('has')(var.get('$Number'), var.get('key')).neg()):
|
|
var.get('dP')(var.get('$Number'), var.get('key'), var.get('gOPD')(var.get('Base'), var.get('key')))
|
|
finally:
|
|
(var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))
|
|
var.get('$Number').put('prototype', var.get('proto'))
|
|
var.get('proto').put('constructor', var.get('$Number'))
|
|
var.get('require')(Js('./_redefine'))(var.get('global'), var.get('NUMBER'), var.get('$Number'))
|
|
PyJs_anonymous_574_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_578_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'EPSILON':var.get('Math').callprop('pow', Js(2.0), (-Js(52.0)))}))
|
|
PyJs_anonymous_578_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_579_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '_isFinite'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('_isFinite', var.get('require')(Js('./_global')).get('isFinite'))
|
|
@Js
|
|
def PyJs_isFinite_580_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isFinite':PyJs_isFinite_580_}, var)
|
|
var.registers(['it'])
|
|
return ((var.get('it',throw=False).typeof()==Js('number')) and var.get('_isFinite')(var.get('it')))
|
|
PyJs_isFinite_580_._set_name('isFinite')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isFinite':PyJs_isFinite_580_}))
|
|
PyJs_anonymous_579_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_581_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isInteger':var.get('require')(Js('./_is-integer'))}))
|
|
PyJs_anonymous_581_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_582_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_isNaN_583_(number, this, arguments, var=var):
|
|
var = Scope({'number':number, 'this':this, 'arguments':arguments, 'isNaN':PyJs_isNaN_583_}, var)
|
|
var.registers(['number'])
|
|
return (var.get('number')!=var.get('number'))
|
|
PyJs_isNaN_583_._set_name('isNaN')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isNaN':PyJs_isNaN_583_}))
|
|
PyJs_anonymous_582_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_584_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'isInteger', 'abs', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('isInteger', var.get('require')(Js('./_is-integer')))
|
|
var.put('abs', var.get('Math').get('abs'))
|
|
@Js
|
|
def PyJs_isSafeInteger_585_(number, this, arguments, var=var):
|
|
var = Scope({'number':number, 'this':this, 'arguments':arguments, 'isSafeInteger':PyJs_isSafeInteger_585_}, var)
|
|
var.registers(['number'])
|
|
return (var.get('isInteger')(var.get('number')) and (var.get('abs')(var.get('number'))<=Js(9007199254740991)))
|
|
PyJs_isSafeInteger_585_._set_name('isSafeInteger')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'isSafeInteger':PyJs_isSafeInteger_585_}))
|
|
PyJs_anonymous_584_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_586_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'MAX_SAFE_INTEGER':Js(9007199254740991)}))
|
|
PyJs_anonymous_586_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_587_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Number'), Js({'MIN_SAFE_INTEGER':(-Js(9007199254740991))}))
|
|
PyJs_anonymous_587_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_588_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$parseFloat', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$parseFloat', var.get('require')(Js('./_parse-float')))
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('Number').get('parseFloat')!=var.get('$parseFloat')))), Js('Number'), Js({'parseFloat':var.get('$parseFloat')}))
|
|
PyJs_anonymous_588_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_589_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$parseInt', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$parseInt', var.get('require')(Js('./_parse-int')))
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('Number').get('parseInt')!=var.get('$parseInt')))), Js('Number'), Js({'parseInt':var.get('$parseInt')}))
|
|
PyJs_anonymous_589_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_590_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'floor', 'aNumberValue', '$export', 'ZERO', 'exports', 'divide', 'module', 'repeat', 'data', 'ERROR', '$toFixed', 'numToString', 'pow', 'multiply', 'toInteger', 'log'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('aNumberValue', var.get('require')(Js('./_a-number-value')))
|
|
var.put('repeat', var.get('require')(Js('./_string-repeat')))
|
|
var.put('$toFixed', Js(1.0).get('toFixed'))
|
|
var.put('floor', var.get('Math').get('floor'))
|
|
var.put('data', Js([Js(0.0), Js(0.0), Js(0.0), Js(0.0), Js(0.0), Js(0.0)]))
|
|
var.put('ERROR', Js('Number.toFixed: incorrect invocation!'))
|
|
var.put('ZERO', Js('0'))
|
|
@Js
|
|
def PyJs_multiply_591_(n, c, this, arguments, var=var):
|
|
var = Scope({'n':n, 'c':c, 'this':this, 'arguments':arguments, 'multiply':PyJs_multiply_591_}, var)
|
|
var.registers(['c', 'c2', 'i', 'n'])
|
|
var.put('i', (-Js(1.0)))
|
|
var.put('c2', var.get('c'))
|
|
while (var.put('i',Js(var.get('i').to_number())+Js(1))<Js(6.0)):
|
|
var.put('c2', (var.get('n')*var.get('data').get(var.get('i'))), '+')
|
|
var.get('data').put(var.get('i'), (var.get('c2')%Js(10000000.0)))
|
|
var.put('c2', var.get('floor')((var.get('c2')/Js(10000000.0))))
|
|
PyJs_multiply_591_._set_name('multiply')
|
|
var.put('multiply', PyJs_multiply_591_)
|
|
@Js
|
|
def PyJs_divide_592_(n, this, arguments, var=var):
|
|
var = Scope({'n':n, 'this':this, 'arguments':arguments, 'divide':PyJs_divide_592_}, var)
|
|
var.registers(['c', 'i', 'n'])
|
|
var.put('i', Js(6.0))
|
|
var.put('c', Js(0.0))
|
|
while (var.put('i',Js(var.get('i').to_number())-Js(1))>=Js(0.0)):
|
|
var.put('c', var.get('data').get(var.get('i')), '+')
|
|
var.get('data').put(var.get('i'), var.get('floor')((var.get('c')/var.get('n'))))
|
|
var.put('c', ((var.get('c')%var.get('n'))*Js(10000000.0)))
|
|
PyJs_divide_592_._set_name('divide')
|
|
var.put('divide', PyJs_divide_592_)
|
|
@Js
|
|
def PyJs_numToString_593_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'numToString':PyJs_numToString_593_}, var)
|
|
var.registers(['s', 'i', 't'])
|
|
var.put('i', Js(6.0))
|
|
var.put('s', Js(''))
|
|
while (var.put('i',Js(var.get('i').to_number())-Js(1))>=Js(0.0)):
|
|
if ((PyJsStrictNeq(var.get('s'),Js('')) or PyJsStrictEq(var.get('i'),Js(0.0))) or PyJsStrictNeq(var.get('data').get(var.get('i')),Js(0.0))):
|
|
var.put('t', var.get('String')(var.get('data').get(var.get('i'))))
|
|
var.put('s', (var.get('t') if PyJsStrictEq(var.get('s'),Js('')) else ((var.get('s')+var.get('repeat').callprop('call', var.get('ZERO'), (Js(7.0)-var.get('t').get('length'))))+var.get('t'))))
|
|
return var.get('s')
|
|
PyJs_numToString_593_._set_name('numToString')
|
|
var.put('numToString', PyJs_numToString_593_)
|
|
@Js
|
|
def PyJs_pow_594_(x, n, acc, this, arguments, var=var):
|
|
var = Scope({'x':x, 'n':n, 'acc':acc, 'this':this, 'arguments':arguments, 'pow':PyJs_pow_594_}, var)
|
|
var.registers(['acc', 'x', 'n'])
|
|
return (var.get('acc') if PyJsStrictEq(var.get('n'),Js(0.0)) else (var.get('pow')(var.get('x'), (var.get('n')-Js(1.0)), (var.get('acc')*var.get('x'))) if PyJsStrictEq((var.get('n')%Js(2.0)),Js(1.0)) else var.get('pow')((var.get('x')*var.get('x')), (var.get('n')/Js(2.0)), var.get('acc'))))
|
|
PyJs_pow_594_._set_name('pow')
|
|
var.put('pow', PyJs_pow_594_)
|
|
@Js
|
|
def PyJs_log_595_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'log':PyJs_log_595_}, var)
|
|
var.registers(['x2', 'x', 'n'])
|
|
var.put('n', Js(0.0))
|
|
var.put('x2', var.get('x'))
|
|
while (var.get('x2')>=Js(4096.0)):
|
|
var.put('n', Js(12.0), '+')
|
|
var.put('x2', Js(4096.0), '/')
|
|
while (var.get('x2')>=Js(2.0)):
|
|
var.put('n', Js(1.0), '+')
|
|
var.put('x2', Js(2.0), '/')
|
|
return var.get('n')
|
|
PyJs_log_595_._set_name('log')
|
|
var.put('log', PyJs_log_595_)
|
|
def PyJs_LONG_597_(var=var):
|
|
@Js
|
|
def PyJs_anonymous_596_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('$toFixed').callprop('call', Js({}))
|
|
PyJs_anonymous_596_._set_name('anonymous')
|
|
return ((var.get('$toFixed').neg().neg() and (((PyJsStrictNeq(Js(8e-05).callprop('toFixed', Js(3.0)),Js('0.000')) or PyJsStrictNeq(Js(0.9).callprop('toFixed', Js(0.0)),Js('1'))) or PyJsStrictNeq(Js(1.255).callprop('toFixed', Js(2.0)),Js('1.25'))) or PyJsStrictNeq(Js(1.0000000000000001e+18).callprop('toFixed', Js(0.0)),Js('1000000000000000128')))) or var.get('require')(Js('./_fails'))(PyJs_anonymous_596_).neg())
|
|
@Js
|
|
def PyJs_toFixed_598_(fractionDigits, this, arguments, var=var):
|
|
var = Scope({'fractionDigits':fractionDigits, 'this':this, 'arguments':arguments, 'toFixed':PyJs_toFixed_598_}, var)
|
|
var.registers(['fractionDigits', 'z', 'f', 'x', 'j', 'm', 'k', 'e', 's'])
|
|
var.put('x', var.get('aNumberValue')(var.get(u"this"), var.get('ERROR')))
|
|
var.put('f', var.get('toInteger')(var.get('fractionDigits')))
|
|
var.put('s', Js(''))
|
|
var.put('m', var.get('ZERO'))
|
|
pass
|
|
if ((var.get('f')<Js(0.0)) or (var.get('f')>Js(20.0))):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')(var.get('ERROR')))
|
|
raise PyJsTempException
|
|
if (var.get('x')!=var.get('x')):
|
|
return Js('NaN')
|
|
if ((var.get('x')<=(-Js(1e+21))) or (var.get('x')>=Js(1e+21))):
|
|
return var.get('String')(var.get('x'))
|
|
if (var.get('x')<Js(0.0)):
|
|
var.put('s', Js('-'))
|
|
var.put('x', (-var.get('x')))
|
|
if (var.get('x')>Js(1e-21)):
|
|
var.put('e', (var.get('log')((var.get('x')*var.get('pow')(Js(2.0), Js(69.0), Js(1.0))))-Js(69.0)))
|
|
var.put('z', ((var.get('x')*var.get('pow')(Js(2.0), (-var.get('e')), Js(1.0))) if (var.get('e')<Js(0.0)) else (var.get('x')/var.get('pow')(Js(2.0), var.get('e'), Js(1.0)))))
|
|
var.put('z', Js(4503599627370496), '*')
|
|
var.put('e', (Js(52.0)-var.get('e')))
|
|
if (var.get('e')>Js(0.0)):
|
|
var.get('multiply')(Js(0.0), var.get('z'))
|
|
var.put('j', var.get('f'))
|
|
while (var.get('j')>=Js(7.0)):
|
|
var.get('multiply')(Js(10000000.0), Js(0.0))
|
|
var.put('j', Js(7.0), '-')
|
|
var.get('multiply')(var.get('pow')(Js(10.0), var.get('j'), Js(1.0)), Js(0.0))
|
|
var.put('j', (var.get('e')-Js(1.0)))
|
|
while (var.get('j')>=Js(23.0)):
|
|
var.get('divide')((Js(1.0)<<Js(23.0)))
|
|
var.put('j', Js(23.0), '-')
|
|
var.get('divide')((Js(1.0)<<var.get('j')))
|
|
var.get('multiply')(Js(1.0), Js(1.0))
|
|
var.get('divide')(Js(2.0))
|
|
var.put('m', var.get('numToString')())
|
|
else:
|
|
var.get('multiply')(Js(0.0), var.get('z'))
|
|
var.get('multiply')((Js(1.0)<<(-var.get('e'))), Js(0.0))
|
|
var.put('m', (var.get('numToString')()+var.get('repeat').callprop('call', var.get('ZERO'), var.get('f'))))
|
|
if (var.get('f')>Js(0.0)):
|
|
var.put('k', var.get('m').get('length'))
|
|
var.put('m', (var.get('s')+(((Js('0.')+var.get('repeat').callprop('call', var.get('ZERO'), (var.get('f')-var.get('k'))))+var.get('m')) if (var.get('k')<=var.get('f')) else ((var.get('m').callprop('slice', Js(0.0), (var.get('k')-var.get('f')))+Js('.'))+var.get('m').callprop('slice', (var.get('k')-var.get('f')))))))
|
|
else:
|
|
var.put('m', (var.get('s')+var.get('m')))
|
|
return var.get('m')
|
|
PyJs_toFixed_598_._set_name('toFixed')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*PyJs_LONG_597_())), Js('Number'), Js({'toFixed':PyJs_toFixed_598_}))
|
|
PyJs_anonymous_590_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_599_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$fails', 'require', 'aNumberValue', '$export', 'exports', 'module', '$toPrecision'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$fails', var.get('require')(Js('./_fails')))
|
|
var.put('aNumberValue', var.get('require')(Js('./_a-number-value')))
|
|
var.put('$toPrecision', Js(1.0).get('toPrecision'))
|
|
@Js
|
|
def PyJs_anonymous_600_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return PyJsStrictNeq(var.get('$toPrecision').callprop('call', Js(1.0), var.get('undefined')),Js('1'))
|
|
PyJs_anonymous_600_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_601_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('$toPrecision').callprop('call', Js({}))
|
|
PyJs_anonymous_601_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_toPrecision_602_(precision, this, arguments, var=var):
|
|
var = Scope({'precision':precision, 'this':this, 'arguments':arguments, 'toPrecision':PyJs_toPrecision_602_}, var)
|
|
var.registers(['precision', 'that'])
|
|
var.put('that', var.get('aNumberValue')(var.get(u"this"), Js('Number#toPrecision: incorrect invocation!')))
|
|
return (var.get('$toPrecision').callprop('call', var.get('that')) if PyJsStrictEq(var.get('precision'),var.get('undefined')) else var.get('$toPrecision').callprop('call', var.get('that'), var.get('precision')))
|
|
PyJs_toPrecision_602_._set_name('toPrecision')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*(var.get('$fails')(PyJs_anonymous_600_) or var.get('$fails')(PyJs_anonymous_601_).neg()))), Js('Number'), Js({'toPrecision':PyJs_toPrecision_602_}))
|
|
PyJs_anonymous_599_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_603_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')((var.get('$export').get('S')+var.get('$export').get('F')), Js('Object'), Js({'assign':var.get('require')(Js('./_object-assign'))}))
|
|
PyJs_anonymous_603_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_604_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'create':var.get('require')(Js('./_object-create'))}))
|
|
PyJs_anonymous_604_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_605_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_descriptors')).neg())), Js('Object'), Js({'defineProperties':var.get('require')(Js('./_object-dps'))}))
|
|
PyJs_anonymous_605_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_606_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_descriptors')).neg())), Js('Object'), Js({'defineProperty':var.get('require')(Js('./_object-dp')).get('f')}))
|
|
PyJs_anonymous_606_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_607_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'meta', 'exports', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('meta', var.get('require')(Js('./_meta')).get('onFreeze'))
|
|
@Js
|
|
def PyJs_anonymous_608_(PyJsArg_24667265657a65_, this, arguments, var=var):
|
|
var = Scope({'$freeze':PyJsArg_24667265657a65_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$freeze'])
|
|
@Js
|
|
def PyJs_freeze_609_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'freeze':PyJs_freeze_609_}, var)
|
|
var.registers(['it'])
|
|
return (var.get('$freeze')(var.get('meta')(var.get('it'))) if (var.get('$freeze') and var.get('isObject')(var.get('it'))) else var.get('it'))
|
|
PyJs_freeze_609_._set_name('freeze')
|
|
return PyJs_freeze_609_
|
|
PyJs_anonymous_608_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('freeze'), PyJs_anonymous_608_)
|
|
PyJs_anonymous_607_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_610_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$getOwnPropertyDescriptor', 'toIObject', 'exports', 'module'])
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('$getOwnPropertyDescriptor', var.get('require')(Js('./_object-gopd')).get('f'))
|
|
@Js
|
|
def PyJs_anonymous_611_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_getOwnPropertyDescriptor_612_(it, key, this, arguments, var=var):
|
|
var = Scope({'it':it, 'key':key, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_612_}, var)
|
|
var.registers(['it', 'key'])
|
|
return var.get('$getOwnPropertyDescriptor')(var.get('toIObject')(var.get('it')), var.get('key'))
|
|
PyJs_getOwnPropertyDescriptor_612_._set_name('getOwnPropertyDescriptor')
|
|
return PyJs_getOwnPropertyDescriptor_612_
|
|
PyJs_anonymous_611_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('getOwnPropertyDescriptor'), PyJs_anonymous_611_)
|
|
PyJs_anonymous_610_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_613_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_614_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('require')(Js('./_object-gopn-ext')).get('f')
|
|
PyJs_anonymous_614_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('getOwnPropertyNames'), PyJs_anonymous_614_)
|
|
PyJs_anonymous_613_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_615_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$getPrototypeOf', 'toObject', 'exports', 'module'])
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('$getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
@Js
|
|
def PyJs_anonymous_616_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_getPrototypeOf_617_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getPrototypeOf':PyJs_getPrototypeOf_617_}, var)
|
|
var.registers(['it'])
|
|
return var.get('$getPrototypeOf')(var.get('toObject')(var.get('it')))
|
|
PyJs_getPrototypeOf_617_._set_name('getPrototypeOf')
|
|
return PyJs_getPrototypeOf_617_
|
|
PyJs_anonymous_616_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('getPrototypeOf'), PyJs_anonymous_616_)
|
|
PyJs_anonymous_615_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_618_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'isObject', 'module', 'exports'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
@Js
|
|
def PyJs_anonymous_619_(PyJsArg_246973457874656e7369626c65_, this, arguments, var=var):
|
|
var = Scope({'$isExtensible':PyJsArg_246973457874656e7369626c65_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$isExtensible'])
|
|
@Js
|
|
def PyJs_isExtensible_620_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isExtensible':PyJs_isExtensible_620_}, var)
|
|
var.registers(['it'])
|
|
return ((var.get('$isExtensible')(var.get('it')) if var.get('$isExtensible') else Js(True)) if var.get('isObject')(var.get('it')) else Js(False))
|
|
PyJs_isExtensible_620_._set_name('isExtensible')
|
|
return PyJs_isExtensible_620_
|
|
PyJs_anonymous_619_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('isExtensible'), PyJs_anonymous_619_)
|
|
PyJs_anonymous_618_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_621_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'isObject', 'module', 'exports'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
@Js
|
|
def PyJs_anonymous_622_(PyJsArg_24697346726f7a656e_, this, arguments, var=var):
|
|
var = Scope({'$isFrozen':PyJsArg_24697346726f7a656e_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$isFrozen'])
|
|
@Js
|
|
def PyJs_isFrozen_623_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isFrozen':PyJs_isFrozen_623_}, var)
|
|
var.registers(['it'])
|
|
return ((var.get('$isFrozen')(var.get('it')) if var.get('$isFrozen') else Js(False)) if var.get('isObject')(var.get('it')) else Js(True))
|
|
PyJs_isFrozen_623_._set_name('isFrozen')
|
|
return PyJs_isFrozen_623_
|
|
PyJs_anonymous_622_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('isFrozen'), PyJs_anonymous_622_)
|
|
PyJs_anonymous_621_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_624_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'isObject', 'module', 'exports'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
@Js
|
|
def PyJs_anonymous_625_(PyJsArg_2469735365616c6564_, this, arguments, var=var):
|
|
var = Scope({'$isSealed':PyJsArg_2469735365616c6564_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$isSealed'])
|
|
@Js
|
|
def PyJs_isSealed_626_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isSealed':PyJs_isSealed_626_}, var)
|
|
var.registers(['it'])
|
|
return ((var.get('$isSealed')(var.get('it')) if var.get('$isSealed') else Js(False)) if var.get('isObject')(var.get('it')) else Js(True))
|
|
PyJs_isSealed_626_._set_name('isSealed')
|
|
return PyJs_isSealed_626_
|
|
PyJs_anonymous_625_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('isSealed'), PyJs_anonymous_625_)
|
|
PyJs_anonymous_624_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_627_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'is':var.get('require')(Js('./_same-value'))}))
|
|
PyJs_anonymous_627_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_628_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$keys', 'toObject', 'exports', 'module'])
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('$keys', var.get('require')(Js('./_object-keys')))
|
|
@Js
|
|
def PyJs_anonymous_629_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_keys_630_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'keys':PyJs_keys_630_}, var)
|
|
var.registers(['it'])
|
|
return var.get('$keys')(var.get('toObject')(var.get('it')))
|
|
PyJs_keys_630_._set_name('keys')
|
|
return PyJs_keys_630_
|
|
PyJs_anonymous_629_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('keys'), PyJs_anonymous_629_)
|
|
PyJs_anonymous_628_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_631_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'meta', 'exports', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('meta', var.get('require')(Js('./_meta')).get('onFreeze'))
|
|
@Js
|
|
def PyJs_anonymous_632_(PyJsArg_2470726576656e74457874656e73696f6e73_, this, arguments, var=var):
|
|
var = Scope({'$preventExtensions':PyJsArg_2470726576656e74457874656e73696f6e73_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$preventExtensions'])
|
|
@Js
|
|
def PyJs_preventExtensions_633_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'preventExtensions':PyJs_preventExtensions_633_}, var)
|
|
var.registers(['it'])
|
|
return (var.get('$preventExtensions')(var.get('meta')(var.get('it'))) if (var.get('$preventExtensions') and var.get('isObject')(var.get('it'))) else var.get('it'))
|
|
PyJs_preventExtensions_633_._set_name('preventExtensions')
|
|
return PyJs_preventExtensions_633_
|
|
PyJs_anonymous_632_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('preventExtensions'), PyJs_anonymous_632_)
|
|
PyJs_anonymous_631_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_634_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'meta', 'exports', 'module', 'isObject'])
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('meta', var.get('require')(Js('./_meta')).get('onFreeze'))
|
|
@Js
|
|
def PyJs_anonymous_635_(PyJsArg_247365616c_, this, arguments, var=var):
|
|
var = Scope({'$seal':PyJsArg_247365616c_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$seal'])
|
|
@Js
|
|
def PyJs_seal_636_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'seal':PyJs_seal_636_}, var)
|
|
var.registers(['it'])
|
|
return (var.get('$seal')(var.get('meta')(var.get('it'))) if (var.get('$seal') and var.get('isObject')(var.get('it'))) else var.get('it'))
|
|
PyJs_seal_636_._set_name('seal')
|
|
return PyJs_seal_636_
|
|
PyJs_anonymous_635_._set_name('anonymous')
|
|
var.get('require')(Js('./_object-sap'))(Js('seal'), PyJs_anonymous_635_)
|
|
PyJs_anonymous_634_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_637_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'setPrototypeOf':var.get('require')(Js('./_set-proto')).get('set')}))
|
|
PyJs_anonymous_637_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_638_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'test', 'classof', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('classof', var.get('require')(Js('./_classof')))
|
|
var.put('test', Js({}))
|
|
var.get('test').put(var.get('require')(Js('./_wks'))(Js('toStringTag')), Js('z'))
|
|
if ((var.get('test')+Js(''))!=Js('[object z]')):
|
|
@Js
|
|
def PyJs_toString_639_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_639_}, var)
|
|
var.registers([])
|
|
return ((Js('[object ')+var.get('classof')(var.get(u"this")))+Js(']'))
|
|
PyJs_toString_639_._set_name('toString')
|
|
var.get('require')(Js('./_redefine'))(var.get('Object').get('prototype'), Js('toString'), PyJs_toString_639_, Js(True))
|
|
PyJs_anonymous_638_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_640_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$parseFloat', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$parseFloat', var.get('require')(Js('./_parse-float')))
|
|
var.get('$export')((var.get('$export').get('G')+(var.get('$export').get('F')*(var.get('parseFloat')!=var.get('$parseFloat')))), Js({'parseFloat':var.get('$parseFloat')}))
|
|
PyJs_anonymous_640_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_641_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$parseInt', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$parseInt', var.get('require')(Js('./_parse-int')))
|
|
var.get('$export')((var.get('$export').get('G')+(var.get('$export').get('F')*(var.get('parseInt')!=var.get('$parseInt')))), Js({'parseInt':var.get('$parseInt')}))
|
|
PyJs_anonymous_641_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_642_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['isNode', 'Wrapper', 'task', 'onUnhandled', 'promiseResolve', 'userAgent', 'process', 'isThenable', '$resolve', 'v8', 'LIBRARY', 'versions', 'speciesConstructor', 'USE_NATIVE', 'newGenericPromiseCapability', 'require', 'classof', 'isUnhandled', 'empty', '$Promise', 'OwnPromiseCapability', 'module', 'notify', 'microtask', 'global', '$reject', 'aFunction', 'anInstance', 'Internal', 'perform', 'onHandleUnhandled', '$export', 'exports', 'PROMISE', 'TypeError', 'newPromiseCapability', 'newPromiseCapabilityModule', 'forOf', 'ctx', 'isObject'])
|
|
Js('use strict')
|
|
var.put('LIBRARY', var.get('require')(Js('./_library')))
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('ctx', var.get('require')(Js('./_ctx')))
|
|
var.put('classof', var.get('require')(Js('./_classof')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('anInstance', var.get('require')(Js('./_an-instance')))
|
|
var.put('forOf', var.get('require')(Js('./_for-of')))
|
|
var.put('speciesConstructor', var.get('require')(Js('./_species-constructor')))
|
|
var.put('task', var.get('require')(Js('./_task')).get('set'))
|
|
var.put('microtask', var.get('require')(Js('./_microtask'))())
|
|
var.put('newPromiseCapabilityModule', var.get('require')(Js('./_new-promise-capability')))
|
|
var.put('perform', var.get('require')(Js('./_perform')))
|
|
var.put('userAgent', var.get('require')(Js('./_user-agent')))
|
|
var.put('promiseResolve', var.get('require')(Js('./_promise-resolve')))
|
|
var.put('PROMISE', Js('Promise'))
|
|
var.put('TypeError', var.get('global').get('TypeError'))
|
|
var.put('process', var.get('global').get('process'))
|
|
var.put('versions', (var.get('process') and var.get('process').get('versions')))
|
|
var.put('v8', ((var.get('versions') and var.get('versions').get('v8')) or Js('')))
|
|
var.put('$Promise', var.get('global').get(var.get('PROMISE')))
|
|
var.put('isNode', (var.get('classof')(var.get('process'))==Js('process')))
|
|
@Js
|
|
def PyJs_empty_643_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'empty':PyJs_empty_643_}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_empty_643_._set_name('empty')
|
|
var.put('empty', PyJs_empty_643_)
|
|
pass
|
|
var.put('newPromiseCapability', var.put('newGenericPromiseCapability', var.get('newPromiseCapabilityModule').get('f')))
|
|
@Js
|
|
def PyJs_anonymous_644_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['FakePromise', 'promise'])
|
|
try:
|
|
var.put('promise', var.get('$Promise').callprop('resolve', Js(1.0)))
|
|
@Js
|
|
def PyJs_anonymous_645_(exec, this, arguments, var=var):
|
|
var = Scope({'exec':exec, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['exec'])
|
|
var.get('exec')(var.get('empty'), var.get('empty'))
|
|
PyJs_anonymous_645_._set_name('anonymous')
|
|
var.put('FakePromise', var.get('promise').put('constructor', Js({})).put(var.get('require')(Js('./_wks'))(Js('species')), PyJs_anonymous_645_))
|
|
return ((((var.get('isNode') or (var.get('PromiseRejectionEvent',throw=False).typeof()==Js('function'))) and var.get('promise').callprop('then', var.get('empty')).instanceof(var.get('FakePromise'))) and PyJsStrictNeq(var.get('v8').callprop('indexOf', Js('6.6')),Js(0.0))) and PyJsStrictEq(var.get('userAgent').callprop('indexOf', Js('Chrome/66')),(-Js(1.0))))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_31084895 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
pass
|
|
finally:
|
|
if PyJsHolder_65_31084895 is not None:
|
|
var.own['e'] = PyJsHolder_65_31084895
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_31084895
|
|
PyJs_anonymous_644_._set_name('anonymous')
|
|
var.put('USE_NATIVE', PyJs_anonymous_644_().neg().neg())
|
|
@Js
|
|
def PyJs_isThenable_646_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isThenable':PyJs_isThenable_646_}, var)
|
|
var.registers(['then', 'it'])
|
|
pass
|
|
return (var.get('then') if (var.get('isObject')(var.get('it')) and (var.put('then', var.get('it').get('then')).typeof()==Js('function'))) else Js(False))
|
|
PyJs_isThenable_646_._set_name('isThenable')
|
|
var.put('isThenable', PyJs_isThenable_646_)
|
|
@Js
|
|
def PyJs_notify_647_(promise, isReject, this, arguments, var=var):
|
|
var = Scope({'promise':promise, 'isReject':isReject, 'this':this, 'arguments':arguments, 'notify':PyJs_notify_647_}, var)
|
|
var.registers(['chain', 'promise', 'isReject'])
|
|
if var.get('promise').get('_n'):
|
|
return var.get('undefined')
|
|
var.get('promise').put('_n', Js(True))
|
|
var.put('chain', var.get('promise').get('_c'))
|
|
@Js
|
|
def PyJs_anonymous_648_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['i', 'value', 'run', 'ok'])
|
|
var.put('value', var.get('promise').get('_v'))
|
|
var.put('ok', (var.get('promise').get('_s')==Js(1.0)))
|
|
var.put('i', Js(0.0))
|
|
@Js
|
|
def PyJs_run_649_(reaction, this, arguments, var=var):
|
|
var = Scope({'reaction':reaction, 'this':this, 'arguments':arguments, 'run':PyJs_run_649_}, var)
|
|
var.registers(['reaction', 'domain', 'resolve', 'result', 'exited', 'reject', 'then', 'handler'])
|
|
var.put('handler', (var.get('reaction').get('ok') if var.get('ok') else var.get('reaction').get('fail')))
|
|
var.put('resolve', var.get('reaction').get('resolve'))
|
|
var.put('reject', var.get('reaction').get('reject'))
|
|
var.put('domain', var.get('reaction').get('domain'))
|
|
pass
|
|
try:
|
|
if var.get('handler'):
|
|
if var.get('ok').neg():
|
|
if (var.get('promise').get('_h')==Js(2.0)):
|
|
var.get('onHandleUnhandled')(var.get('promise'))
|
|
var.get('promise').put('_h', Js(1.0))
|
|
if PyJsStrictEq(var.get('handler'),Js(True)):
|
|
var.put('result', var.get('value'))
|
|
else:
|
|
if var.get('domain'):
|
|
var.get('domain').callprop('enter')
|
|
var.put('result', var.get('handler')(var.get('value')))
|
|
if var.get('domain'):
|
|
var.get('domain').callprop('exit')
|
|
var.put('exited', Js(True))
|
|
if PyJsStrictEq(var.get('result'),var.get('reaction').get('promise')):
|
|
var.get('reject')(var.get('TypeError')(Js('Promise-chain cycle')))
|
|
else:
|
|
if var.put('then', var.get('isThenable')(var.get('result'))):
|
|
var.get('then').callprop('call', var.get('result'), var.get('resolve'), var.get('reject'))
|
|
else:
|
|
var.get('resolve')(var.get('result'))
|
|
else:
|
|
var.get('reject')(var.get('value'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_20846881 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
if (var.get('domain') and var.get('exited').neg()):
|
|
var.get('domain').callprop('exit')
|
|
var.get('reject')(var.get('e'))
|
|
finally:
|
|
if PyJsHolder_65_20846881 is not None:
|
|
var.own['e'] = PyJsHolder_65_20846881
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_20846881
|
|
PyJs_run_649_._set_name('run')
|
|
var.put('run', PyJs_run_649_)
|
|
while (var.get('chain').get('length')>var.get('i')):
|
|
var.get('run')(var.get('chain').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))
|
|
var.get('promise').put('_c', Js([]))
|
|
var.get('promise').put('_n', Js(False))
|
|
if (var.get('isReject') and var.get('promise').get('_h').neg()):
|
|
var.get('onUnhandled')(var.get('promise'))
|
|
PyJs_anonymous_648_._set_name('anonymous')
|
|
var.get('microtask')(PyJs_anonymous_648_)
|
|
PyJs_notify_647_._set_name('notify')
|
|
var.put('notify', PyJs_notify_647_)
|
|
@Js
|
|
def PyJs_onUnhandled_650_(promise, this, arguments, var=var):
|
|
var = Scope({'promise':promise, 'this':this, 'arguments':arguments, 'onUnhandled':PyJs_onUnhandled_650_}, var)
|
|
var.registers(['promise'])
|
|
@Js
|
|
def PyJs_anonymous_651_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['console', 'result', 'unhandled', 'value', 'handler'])
|
|
var.put('value', var.get('promise').get('_v'))
|
|
var.put('unhandled', var.get('isUnhandled')(var.get('promise')))
|
|
pass
|
|
if var.get('unhandled'):
|
|
@Js
|
|
def PyJs_anonymous_652_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
if var.get('isNode'):
|
|
var.get('process').callprop('emit', Js('unhandledRejection'), var.get('value'), var.get('promise'))
|
|
else:
|
|
if var.put('handler', var.get('global').get('onunhandledrejection')):
|
|
var.get('handler')(Js({'promise':var.get('promise'),'reason':var.get('value')}))
|
|
else:
|
|
if (var.put('console', var.get('global').get('console')) and var.get('console').get('error')):
|
|
var.get('console').callprop('error', Js('Unhandled promise rejection'), var.get('value'))
|
|
PyJs_anonymous_652_._set_name('anonymous')
|
|
var.put('result', var.get('perform')(PyJs_anonymous_652_))
|
|
var.get('promise').put('_h', (Js(2.0) if (var.get('isNode') or var.get('isUnhandled')(var.get('promise'))) else Js(1.0)))
|
|
var.get('promise').put('_a', var.get('undefined'))
|
|
if (var.get('unhandled') and var.get('result').get('e')):
|
|
PyJsTempException = JsToPyException(var.get('result').get('v'))
|
|
raise PyJsTempException
|
|
PyJs_anonymous_651_._set_name('anonymous')
|
|
var.get('task').callprop('call', var.get('global'), PyJs_anonymous_651_)
|
|
PyJs_onUnhandled_650_._set_name('onUnhandled')
|
|
var.put('onUnhandled', PyJs_onUnhandled_650_)
|
|
@Js
|
|
def PyJs_isUnhandled_653_(promise, this, arguments, var=var):
|
|
var = Scope({'promise':promise, 'this':this, 'arguments':arguments, 'isUnhandled':PyJs_isUnhandled_653_}, var)
|
|
var.registers(['promise'])
|
|
return (PyJsStrictNeq(var.get('promise').get('_h'),Js(1.0)) and PyJsStrictEq((var.get('promise').get('_a') or var.get('promise').get('_c')).get('length'),Js(0.0)))
|
|
PyJs_isUnhandled_653_._set_name('isUnhandled')
|
|
var.put('isUnhandled', PyJs_isUnhandled_653_)
|
|
@Js
|
|
def PyJs_onHandleUnhandled_654_(promise, this, arguments, var=var):
|
|
var = Scope({'promise':promise, 'this':this, 'arguments':arguments, 'onHandleUnhandled':PyJs_onHandleUnhandled_654_}, var)
|
|
var.registers(['promise'])
|
|
@Js
|
|
def PyJs_anonymous_655_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['handler'])
|
|
pass
|
|
if var.get('isNode'):
|
|
var.get('process').callprop('emit', Js('rejectionHandled'), var.get('promise'))
|
|
else:
|
|
if var.put('handler', var.get('global').get('onrejectionhandled')):
|
|
var.get('handler')(Js({'promise':var.get('promise'),'reason':var.get('promise').get('_v')}))
|
|
PyJs_anonymous_655_._set_name('anonymous')
|
|
var.get('task').callprop('call', var.get('global'), PyJs_anonymous_655_)
|
|
PyJs_onHandleUnhandled_654_._set_name('onHandleUnhandled')
|
|
var.put('onHandleUnhandled', PyJs_onHandleUnhandled_654_)
|
|
@Js
|
|
def PyJs_InlineNonPyName_656_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, '$reject':PyJs_InlineNonPyName_656_}, var)
|
|
var.registers(['value', 'promise'])
|
|
var.put('promise', var.get(u"this"))
|
|
if var.get('promise').get('_d'):
|
|
return var.get('undefined')
|
|
var.get('promise').put('_d', Js(True))
|
|
var.put('promise', (var.get('promise').get('_w') or var.get('promise')))
|
|
var.get('promise').put('_v', var.get('value'))
|
|
var.get('promise').put('_s', Js(2.0))
|
|
if var.get('promise').get('_a').neg():
|
|
var.get('promise').put('_a', var.get('promise').get('_c').callprop('slice'))
|
|
var.get('notify')(var.get('promise'), Js(True))
|
|
PyJs_InlineNonPyName_656_._set_name('$reject')
|
|
var.put('$reject', PyJs_InlineNonPyName_656_)
|
|
@Js
|
|
def PyJs_InlineNonPyName_657_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, '$resolve':PyJs_InlineNonPyName_657_}, var)
|
|
var.registers(['then', 'value', 'promise'])
|
|
var.put('promise', var.get(u"this"))
|
|
pass
|
|
if var.get('promise').get('_d'):
|
|
return var.get('undefined')
|
|
var.get('promise').put('_d', Js(True))
|
|
var.put('promise', (var.get('promise').get('_w') or var.get('promise')))
|
|
try:
|
|
if PyJsStrictEq(var.get('promise'),var.get('value')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js("Promise can't be resolved itself")))
|
|
raise PyJsTempException
|
|
if var.put('then', var.get('isThenable')(var.get('value'))):
|
|
@Js
|
|
def PyJs_anonymous_658_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['wrapper'])
|
|
var.put('wrapper', Js({'_w':var.get('promise'),'_d':Js(False)}))
|
|
try:
|
|
var.get('then').callprop('call', var.get('value'), var.get('ctx')(var.get('$resolve'), var.get('wrapper'), Js(1.0)), var.get('ctx')(var.get('$reject'), var.get('wrapper'), Js(1.0)))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_2396165 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
var.get('$reject').callprop('call', var.get('wrapper'), var.get('e'))
|
|
finally:
|
|
if PyJsHolder_65_2396165 is not None:
|
|
var.own['e'] = PyJsHolder_65_2396165
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_2396165
|
|
PyJs_anonymous_658_._set_name('anonymous')
|
|
var.get('microtask')(PyJs_anonymous_658_)
|
|
else:
|
|
var.get('promise').put('_v', var.get('value'))
|
|
var.get('promise').put('_s', Js(1.0))
|
|
var.get('notify')(var.get('promise'), Js(False))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_80809074 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
var.get('$reject').callprop('call', Js({'_w':var.get('promise'),'_d':Js(False)}), var.get('e'))
|
|
finally:
|
|
if PyJsHolder_65_80809074 is not None:
|
|
var.own['e'] = PyJsHolder_65_80809074
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_80809074
|
|
PyJs_InlineNonPyName_657_._set_name('$resolve')
|
|
var.put('$resolve', PyJs_InlineNonPyName_657_)
|
|
if var.get('USE_NATIVE').neg():
|
|
@Js
|
|
def PyJs_Promise_659_(executor, this, arguments, var=var):
|
|
var = Scope({'executor':executor, 'this':this, 'arguments':arguments, 'Promise':PyJs_Promise_659_}, var)
|
|
var.registers(['executor'])
|
|
var.get('anInstance')(var.get(u"this"), var.get('$Promise'), var.get('PROMISE'), Js('_h'))
|
|
var.get('aFunction')(var.get('executor'))
|
|
var.get('Internal').callprop('call', var.get(u"this"))
|
|
try:
|
|
var.get('executor')(var.get('ctx')(var.get('$resolve'), var.get(u"this"), Js(1.0)), var.get('ctx')(var.get('$reject'), var.get(u"this"), Js(1.0)))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_657272_79336953 = var.own.get('err')
|
|
var.force_own_put('err', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
var.get('$reject').callprop('call', var.get(u"this"), var.get('err'))
|
|
finally:
|
|
if PyJsHolder_657272_79336953 is not None:
|
|
var.own['err'] = PyJsHolder_657272_79336953
|
|
else:
|
|
del var.own['err']
|
|
del PyJsHolder_657272_79336953
|
|
PyJs_Promise_659_._set_name('Promise')
|
|
var.put('$Promise', PyJs_Promise_659_)
|
|
@Js
|
|
def PyJs_Promise_660_(executor, this, arguments, var=var):
|
|
var = Scope({'executor':executor, 'this':this, 'arguments':arguments, 'Promise':PyJs_Promise_660_}, var)
|
|
var.registers(['executor'])
|
|
var.get(u"this").put('_c', Js([]))
|
|
var.get(u"this").put('_a', var.get('undefined'))
|
|
var.get(u"this").put('_s', Js(0.0))
|
|
var.get(u"this").put('_d', Js(False))
|
|
var.get(u"this").put('_v', var.get('undefined'))
|
|
var.get(u"this").put('_h', Js(0.0))
|
|
var.get(u"this").put('_n', Js(False))
|
|
PyJs_Promise_660_._set_name('Promise')
|
|
var.put('Internal', PyJs_Promise_660_)
|
|
@Js
|
|
def PyJs_then_661_(onFulfilled, onRejected, this, arguments, var=var):
|
|
var = Scope({'onFulfilled':onFulfilled, 'onRejected':onRejected, 'this':this, 'arguments':arguments, 'then':PyJs_then_661_}, var)
|
|
var.registers(['onFulfilled', 'reaction', 'onRejected'])
|
|
var.put('reaction', var.get('newPromiseCapability')(var.get('speciesConstructor')(var.get(u"this"), var.get('$Promise'))))
|
|
var.get('reaction').put('ok', (var.get('onFulfilled') if (var.get('onFulfilled',throw=False).typeof()==Js('function')) else Js(True)))
|
|
var.get('reaction').put('fail', ((var.get('onRejected',throw=False).typeof()==Js('function')) and var.get('onRejected')))
|
|
var.get('reaction').put('domain', (var.get('process').get('domain') if var.get('isNode') else var.get('undefined')))
|
|
var.get(u"this").get('_c').callprop('push', var.get('reaction'))
|
|
if var.get(u"this").get('_a'):
|
|
var.get(u"this").get('_a').callprop('push', var.get('reaction'))
|
|
if var.get(u"this").get('_s'):
|
|
var.get('notify')(var.get(u"this"), Js(False))
|
|
return var.get('reaction').get('promise')
|
|
PyJs_then_661_._set_name('then')
|
|
@Js
|
|
def PyJs__catch_662_(onRejected, this, arguments, var=var):
|
|
var = Scope({'onRejected':onRejected, 'this':this, 'arguments':arguments, '_catch':PyJs__catch_662_}, var)
|
|
var.registers(['onRejected'])
|
|
return var.get(u"this").callprop('then', var.get('undefined'), var.get('onRejected'))
|
|
PyJs__catch_662_._set_name('_catch')
|
|
var.get('Internal').put('prototype', var.get('require')(Js('./_redefine-all'))(var.get('$Promise').get('prototype'), Js({'then':PyJs_then_661_,'catch':PyJs__catch_662_})))
|
|
@Js
|
|
def PyJs_OwnPromiseCapability_663_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'OwnPromiseCapability':PyJs_OwnPromiseCapability_663_}, var)
|
|
var.registers(['promise'])
|
|
var.put('promise', var.get('Internal').create())
|
|
var.get(u"this").put('promise', var.get('promise'))
|
|
var.get(u"this").put('resolve', var.get('ctx')(var.get('$resolve'), var.get('promise'), Js(1.0)))
|
|
var.get(u"this").put('reject', var.get('ctx')(var.get('$reject'), var.get('promise'), Js(1.0)))
|
|
PyJs_OwnPromiseCapability_663_._set_name('OwnPromiseCapability')
|
|
var.put('OwnPromiseCapability', PyJs_OwnPromiseCapability_663_)
|
|
@Js
|
|
def PyJs_newPromiseCapability_664_(C, this, arguments, var=var):
|
|
var = Scope({'C':C, 'this':this, 'arguments':arguments, 'newPromiseCapability':PyJs_newPromiseCapability_664_}, var)
|
|
var.registers(['C'])
|
|
return (var.get('OwnPromiseCapability').create(var.get('C')) if (PyJsStrictEq(var.get('C'),var.get('$Promise')) or PyJsStrictEq(var.get('C'),var.get('Wrapper'))) else var.get('newGenericPromiseCapability')(var.get('C')))
|
|
PyJs_newPromiseCapability_664_._set_name('newPromiseCapability')
|
|
var.get('newPromiseCapabilityModule').put('f', var.put('newPromiseCapability', PyJs_newPromiseCapability_664_))
|
|
var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js({'Promise':var.get('$Promise')}))
|
|
var.get('require')(Js('./_set-to-string-tag'))(var.get('$Promise'), var.get('PROMISE'))
|
|
var.get('require')(Js('./_set-species'))(var.get('PROMISE'))
|
|
var.put('Wrapper', var.get('require')(Js('./_core')).get(var.get('PROMISE')))
|
|
@Js
|
|
def PyJs_reject_665_(r, this, arguments, var=var):
|
|
var = Scope({'r':r, 'this':this, 'arguments':arguments, 'reject':PyJs_reject_665_}, var)
|
|
var.registers(['capability', '$$reject', 'r'])
|
|
var.put('capability', var.get('newPromiseCapability')(var.get(u"this")))
|
|
var.put('$$reject', var.get('capability').get('reject'))
|
|
var.get('$$reject')(var.get('r'))
|
|
return var.get('capability').get('promise')
|
|
PyJs_reject_665_._set_name('reject')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), var.get('PROMISE'), Js({'reject':PyJs_reject_665_}))
|
|
@Js
|
|
def PyJs_resolve_666_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'resolve':PyJs_resolve_666_}, var)
|
|
var.registers(['x'])
|
|
return var.get('promiseResolve')((var.get('$Promise') if (var.get('LIBRARY') and PyJsStrictEq(var.get(u"this"),var.get('Wrapper'))) else var.get(u"this")), var.get('x'))
|
|
PyJs_resolve_666_._set_name('resolve')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('LIBRARY') or var.get('USE_NATIVE').neg()))), var.get('PROMISE'), Js({'resolve':PyJs_resolve_666_}))
|
|
@Js
|
|
def PyJs_anonymous_667_(iter, this, arguments, var=var):
|
|
var = Scope({'iter':iter, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iter'])
|
|
var.get('$Promise').callprop('all', var.get('iter')).callprop('catch', var.get('empty'))
|
|
PyJs_anonymous_667_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_all_668_(iterable, this, arguments, var=var):
|
|
var = Scope({'iterable':iterable, 'this':this, 'arguments':arguments, 'all':PyJs_all_668_}, var)
|
|
var.registers(['capability', 'C', 'resolve', 'result', 'reject', 'iterable'])
|
|
var.put('C', var.get(u"this"))
|
|
var.put('capability', var.get('newPromiseCapability')(var.get('C')))
|
|
var.put('resolve', var.get('capability').get('resolve'))
|
|
var.put('reject', var.get('capability').get('reject'))
|
|
@Js
|
|
def PyJs_anonymous_669_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'values', 'remaining'])
|
|
var.put('values', Js([]))
|
|
var.put('index', Js(0.0))
|
|
var.put('remaining', Js(1.0))
|
|
@Js
|
|
def PyJs_anonymous_670_(promise, this, arguments, var=var):
|
|
var = Scope({'promise':promise, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['promise', '$index', 'alreadyCalled'])
|
|
var.put('$index', (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)))
|
|
var.put('alreadyCalled', Js(False))
|
|
var.get('values').callprop('push', var.get('undefined'))
|
|
(var.put('remaining',Js(var.get('remaining').to_number())+Js(1))-Js(1))
|
|
@Js
|
|
def PyJs_anonymous_671_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['value'])
|
|
if var.get('alreadyCalled'):
|
|
return var.get('undefined')
|
|
var.put('alreadyCalled', Js(True))
|
|
var.get('values').put(var.get('$index'), var.get('value'))
|
|
(var.put('remaining',Js(var.get('remaining').to_number())-Js(1)) or var.get('resolve')(var.get('values')))
|
|
PyJs_anonymous_671_._set_name('anonymous')
|
|
var.get('C').callprop('resolve', var.get('promise')).callprop('then', PyJs_anonymous_671_, var.get('reject'))
|
|
PyJs_anonymous_670_._set_name('anonymous')
|
|
var.get('forOf')(var.get('iterable'), Js(False), PyJs_anonymous_670_)
|
|
(var.put('remaining',Js(var.get('remaining').to_number())-Js(1)) or var.get('resolve')(var.get('values')))
|
|
PyJs_anonymous_669_._set_name('anonymous')
|
|
var.put('result', var.get('perform')(PyJs_anonymous_669_))
|
|
if var.get('result').get('e'):
|
|
var.get('reject')(var.get('result').get('v'))
|
|
return var.get('capability').get('promise')
|
|
PyJs_all_668_._set_name('all')
|
|
@Js
|
|
def PyJs_race_672_(iterable, this, arguments, var=var):
|
|
var = Scope({'iterable':iterable, 'this':this, 'arguments':arguments, 'race':PyJs_race_672_}, var)
|
|
var.registers(['capability', 'C', 'result', 'reject', 'iterable'])
|
|
var.put('C', var.get(u"this"))
|
|
var.put('capability', var.get('newPromiseCapability')(var.get('C')))
|
|
var.put('reject', var.get('capability').get('reject'))
|
|
@Js
|
|
def PyJs_anonymous_673_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_anonymous_674_(promise, this, arguments, var=var):
|
|
var = Scope({'promise':promise, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['promise'])
|
|
var.get('C').callprop('resolve', var.get('promise')).callprop('then', var.get('capability').get('resolve'), var.get('reject'))
|
|
PyJs_anonymous_674_._set_name('anonymous')
|
|
var.get('forOf')(var.get('iterable'), Js(False), PyJs_anonymous_674_)
|
|
PyJs_anonymous_673_._set_name('anonymous')
|
|
var.put('result', var.get('perform')(PyJs_anonymous_673_))
|
|
if var.get('result').get('e'):
|
|
var.get('reject')(var.get('result').get('v'))
|
|
return var.get('capability').get('promise')
|
|
PyJs_race_672_._set_name('race')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('USE_NATIVE') and var.get('require')(Js('./_iter-detect'))(PyJs_anonymous_667_)).neg())), var.get('PROMISE'), Js({'all':PyJs_all_668_,'race':PyJs_race_672_}))
|
|
PyJs_anonymous_642_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_675_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'rApply', '$export', 'exports', 'module', 'fApply', 'anObject'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('rApply', (var.get('require')(Js('./_global')).get('Reflect') or Js({})).get('apply'))
|
|
var.put('fApply', var.get('Function').get('apply'))
|
|
@Js
|
|
def PyJs_anonymous_676_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_anonymous_677_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_anonymous_677_._set_name('anonymous')
|
|
var.get('rApply')(PyJs_anonymous_677_)
|
|
PyJs_anonymous_676_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_apply_678_(target, thisArgument, argumentsList, this, arguments, var=var):
|
|
var = Scope({'target':target, 'thisArgument':thisArgument, 'argumentsList':argumentsList, 'this':this, 'arguments':arguments, 'apply':PyJs_apply_678_}, var)
|
|
var.registers(['target', 'argumentsList', 'thisArgument', 'L', 'T'])
|
|
var.put('T', var.get('aFunction')(var.get('target')))
|
|
var.put('L', var.get('anObject')(var.get('argumentsList')))
|
|
return (var.get('rApply')(var.get('T'), var.get('thisArgument'), var.get('L')) if var.get('rApply') else var.get('fApply').callprop('call', var.get('T'), var.get('thisArgument'), var.get('L')))
|
|
PyJs_apply_678_._set_name('apply')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_676_).neg())), Js('Reflect'), Js({'apply':PyJs_apply_678_}))
|
|
PyJs_anonymous_675_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_679_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'rConstruct', '$export', 'exports', 'bind', 'NEW_TARGET_BUG', 'ARGS_BUG', 'module', 'create', 'fails', 'isObject', 'anObject'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('create', var.get('require')(Js('./_object-create')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('bind', var.get('require')(Js('./_bind')))
|
|
var.put('rConstruct', (var.get('require')(Js('./_global')).get('Reflect') or Js({})).get('construct'))
|
|
@Js
|
|
def PyJs_anonymous_680_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['F'])
|
|
@Js
|
|
def PyJsHoisted_F_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJsHoisted_F_.func_name = 'F'
|
|
var.put('F', PyJsHoisted_F_)
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_681_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_anonymous_681_._set_name('anonymous')
|
|
return var.get('rConstruct')(PyJs_anonymous_681_, Js([]), var.get('F')).instanceof(var.get('F')).neg()
|
|
PyJs_anonymous_680_._set_name('anonymous')
|
|
var.put('NEW_TARGET_BUG', var.get('fails')(PyJs_anonymous_680_))
|
|
@Js
|
|
def PyJs_anonymous_682_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_anonymous_683_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_anonymous_683_._set_name('anonymous')
|
|
var.get('rConstruct')(PyJs_anonymous_683_)
|
|
PyJs_anonymous_682_._set_name('anonymous')
|
|
var.put('ARGS_BUG', var.get('fails')(PyJs_anonymous_682_).neg())
|
|
@Js
|
|
def PyJs_construct_684_(Target, args, this, arguments, var=var):
|
|
var = Scope({'Target':Target, 'args':args, 'this':this, 'arguments':arguments, 'construct':PyJs_construct_684_}, var)
|
|
var.registers(['proto', 'newTarget', 'args', 'result', 'Target', '$args', 'instance'])
|
|
var.get('aFunction')(var.get('Target'))
|
|
var.get('anObject')(var.get('args'))
|
|
var.put('newTarget', (var.get('Target') if (var.get('arguments').get('length')<Js(3.0)) else var.get('aFunction')(var.get('arguments').get('2'))))
|
|
if (var.get('ARGS_BUG') and var.get('NEW_TARGET_BUG').neg()):
|
|
return var.get('rConstruct')(var.get('Target'), var.get('args'), var.get('newTarget'))
|
|
if (var.get('Target')==var.get('newTarget')):
|
|
while 1:
|
|
SWITCHED = False
|
|
CONDITION = (var.get('args').get('length'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(0.0)):
|
|
SWITCHED = True
|
|
return var.get('Target').create()
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(1.0)):
|
|
SWITCHED = True
|
|
return var.get('Target').create(var.get('args').get('0'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(2.0)):
|
|
SWITCHED = True
|
|
return var.get('Target').create(var.get('args').get('0'), var.get('args').get('1'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(3.0)):
|
|
SWITCHED = True
|
|
return var.get('Target').create(var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js(4.0)):
|
|
SWITCHED = True
|
|
return var.get('Target').create(var.get('args').get('0'), var.get('args').get('1'), var.get('args').get('2'), var.get('args').get('3'))
|
|
SWITCHED = True
|
|
break
|
|
var.put('$args', Js([var.get(u"null")]))
|
|
var.get('$args').get('push').callprop('apply', var.get('$args'), var.get('args'))
|
|
return var.get('bind').callprop('apply', var.get('Target'), var.get('$args')).create()
|
|
var.put('proto', var.get('newTarget').get('prototype'))
|
|
var.put('instance', var.get('create')((var.get('proto') if var.get('isObject')(var.get('proto')) else var.get('Object').get('prototype'))))
|
|
var.put('result', var.get('Function').get('apply').callprop('call', var.get('Target'), var.get('instance'), var.get('args')))
|
|
return (var.get('result') if var.get('isObject')(var.get('result')) else var.get('instance'))
|
|
PyJs_construct_684_._set_name('construct')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('NEW_TARGET_BUG') or var.get('ARGS_BUG')))), Js('Reflect'), Js({'construct':PyJs_construct_684_}))
|
|
PyJs_anonymous_679_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_685_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toPrimitive', '$export', 'exports', 'module', 'dP', 'anObject'])
|
|
var.put('dP', var.get('require')(Js('./_object-dp')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
@Js
|
|
def PyJs_anonymous_686_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('Reflect').callprop('defineProperty', var.get('dP').callprop('f', Js({}), Js(1.0), Js({'value':Js(1.0)})), Js(1.0), Js({'value':Js(2.0)}))
|
|
PyJs_anonymous_686_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_defineProperty_687_(target, propertyKey, attributes, this, arguments, var=var):
|
|
var = Scope({'target':target, 'propertyKey':propertyKey, 'attributes':attributes, 'this':this, 'arguments':arguments, 'defineProperty':PyJs_defineProperty_687_}, var)
|
|
var.registers(['target', 'propertyKey', 'attributes'])
|
|
var.get('anObject')(var.get('target'))
|
|
var.put('propertyKey', var.get('toPrimitive')(var.get('propertyKey'), Js(True)))
|
|
var.get('anObject')(var.get('attributes'))
|
|
try:
|
|
var.get('dP').callprop('f', var.get('target'), var.get('propertyKey'), var.get('attributes'))
|
|
return Js(True)
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_20858089 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return Js(False)
|
|
finally:
|
|
if PyJsHolder_65_20858089 is not None:
|
|
var.own['e'] = PyJsHolder_65_20858089
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_20858089
|
|
PyJs_defineProperty_687_._set_name('defineProperty')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_686_))), Js('Reflect'), Js({'defineProperty':PyJs_defineProperty_687_}))
|
|
PyJs_anonymous_685_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_688_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'gOPD', '$export', 'exports', 'module', 'anObject'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('gOPD', var.get('require')(Js('./_object-gopd')).get('f'))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
@Js
|
|
def PyJs_deleteProperty_689_(target, propertyKey, this, arguments, var=var):
|
|
var = Scope({'target':target, 'propertyKey':propertyKey, 'this':this, 'arguments':arguments, 'deleteProperty':PyJs_deleteProperty_689_}, var)
|
|
var.registers(['target', 'desc', 'propertyKey'])
|
|
var.put('desc', var.get('gOPD')(var.get('anObject')(var.get('target')), var.get('propertyKey')))
|
|
return (Js(False) if (var.get('desc') and var.get('desc').get('configurable').neg()) else var.get('target').delete(var.get('propertyKey')))
|
|
PyJs_deleteProperty_689_._set_name('deleteProperty')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'deleteProperty':PyJs_deleteProperty_689_}))
|
|
PyJs_anonymous_688_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_690_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'Enumerate', 'anObject'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
@Js
|
|
def PyJs_Enumerate_691_(iterated, this, arguments, var=var):
|
|
var = Scope({'iterated':iterated, 'this':this, 'arguments':arguments, 'Enumerate':PyJs_Enumerate_691_}, var)
|
|
var.registers(['iterated', 'key', 'keys'])
|
|
var.get(u"this").put('_t', var.get('anObject')(var.get('iterated')))
|
|
var.get(u"this").put('_i', Js(0.0))
|
|
var.put('keys', var.get(u"this").put('_k', Js([])))
|
|
pass
|
|
for PyJsTemp in var.get('iterated'):
|
|
var.put('key', PyJsTemp)
|
|
var.get('keys').callprop('push', var.get('key'))
|
|
PyJs_Enumerate_691_._set_name('Enumerate')
|
|
var.put('Enumerate', PyJs_Enumerate_691_)
|
|
@Js
|
|
def PyJs_anonymous_692_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['that', 'key', 'keys'])
|
|
var.put('that', var.get(u"this"))
|
|
var.put('keys', var.get('that').get('_k'))
|
|
pass
|
|
while 1:
|
|
if (var.get('that').get('_i')>=var.get('keys').get('length')):
|
|
return Js({'value':var.get('undefined'),'done':Js(True)})
|
|
if not var.get('that').get('_t').contains(var.put('key', var.get('keys').get((var.get('that').put('_i',Js(var.get('that').get('_i').to_number())+Js(1))-Js(1))))).neg():
|
|
break
|
|
return Js({'value':var.get('key'),'done':Js(False)})
|
|
PyJs_anonymous_692_._set_name('anonymous')
|
|
var.get('require')(Js('./_iter-create'))(var.get('Enumerate'), Js('Object'), PyJs_anonymous_692_)
|
|
@Js
|
|
def PyJs_enumerate_693_(target, this, arguments, var=var):
|
|
var = Scope({'target':target, 'this':this, 'arguments':arguments, 'enumerate':PyJs_enumerate_693_}, var)
|
|
var.registers(['target'])
|
|
return var.get('Enumerate').create(var.get('target'))
|
|
PyJs_enumerate_693_._set_name('enumerate')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'enumerate':PyJs_enumerate_693_}))
|
|
PyJs_anonymous_690_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_694_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'gOPD', '$export', 'exports', 'module', 'anObject'])
|
|
var.put('gOPD', var.get('require')(Js('./_object-gopd')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
@Js
|
|
def PyJs_getOwnPropertyDescriptor_695_(target, propertyKey, this, arguments, var=var):
|
|
var = Scope({'target':target, 'propertyKey':propertyKey, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_695_}, var)
|
|
var.registers(['target', 'propertyKey'])
|
|
return var.get('gOPD').callprop('f', var.get('anObject')(var.get('target')), var.get('propertyKey'))
|
|
PyJs_getOwnPropertyDescriptor_695_._set_name('getOwnPropertyDescriptor')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_695_}))
|
|
PyJs_anonymous_694_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_696_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'getProto', 'anObject'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('getProto', var.get('require')(Js('./_object-gpo')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
@Js
|
|
def PyJs_getPrototypeOf_697_(target, this, arguments, var=var):
|
|
var = Scope({'target':target, 'this':this, 'arguments':arguments, 'getPrototypeOf':PyJs_getPrototypeOf_697_}, var)
|
|
var.registers(['target'])
|
|
return var.get('getProto')(var.get('anObject')(var.get('target')))
|
|
PyJs_getPrototypeOf_697_._set_name('getPrototypeOf')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'getPrototypeOf':PyJs_getPrototypeOf_697_}))
|
|
PyJs_anonymous_696_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_698_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'get', 'gOPD', '$export', 'exports', 'module', 'getPrototypeOf', 'anObject', 'isObject', 'has'])
|
|
@Js
|
|
def PyJsHoisted_get_(target, propertyKey, this, arguments, var=var):
|
|
var = Scope({'target':target, 'propertyKey':propertyKey, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['target', 'proto', 'desc', 'propertyKey', 'receiver'])
|
|
var.put('receiver', (var.get('target') if (var.get('arguments').get('length')<Js(3.0)) else var.get('arguments').get('2')))
|
|
pass
|
|
if PyJsStrictEq(var.get('anObject')(var.get('target')),var.get('receiver')):
|
|
return var.get('target').get(var.get('propertyKey'))
|
|
if var.put('desc', var.get('gOPD').callprop('f', var.get('target'), var.get('propertyKey'))):
|
|
return (var.get('desc').get('value') if var.get('has')(var.get('desc'), Js('value')) else (var.get('desc').get('get').callprop('call', var.get('receiver')) if PyJsStrictNeq(var.get('desc').get('get'),var.get('undefined')) else var.get('undefined')))
|
|
if var.get('isObject')(var.put('proto', var.get('getPrototypeOf')(var.get('target')))):
|
|
return var.get('get')(var.get('proto'), var.get('propertyKey'), var.get('receiver'))
|
|
PyJsHoisted_get_.func_name = 'get'
|
|
var.put('get', PyJsHoisted_get_)
|
|
var.put('gOPD', var.get('require')(Js('./_object-gopd')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
pass
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'get':var.get('get')}))
|
|
PyJs_anonymous_698_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_699_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_has_700_(target, propertyKey, this, arguments, var=var):
|
|
var = Scope({'target':target, 'propertyKey':propertyKey, 'this':this, 'arguments':arguments, 'has':PyJs_has_700_}, var)
|
|
var.registers(['target', 'propertyKey'])
|
|
return var.get('target').contains(var.get('propertyKey'))
|
|
PyJs_has_700_._set_name('has')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'has':PyJs_has_700_}))
|
|
PyJs_anonymous_699_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_701_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$isExtensible', '$export', 'exports', 'module', 'anObject'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('$isExtensible', var.get('Object').get('isExtensible'))
|
|
@Js
|
|
def PyJs_isExtensible_702_(target, this, arguments, var=var):
|
|
var = Scope({'target':target, 'this':this, 'arguments':arguments, 'isExtensible':PyJs_isExtensible_702_}, var)
|
|
var.registers(['target'])
|
|
var.get('anObject')(var.get('target'))
|
|
return (var.get('$isExtensible')(var.get('target')) if var.get('$isExtensible') else Js(True))
|
|
PyJs_isExtensible_702_._set_name('isExtensible')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'isExtensible':PyJs_isExtensible_702_}))
|
|
PyJs_anonymous_701_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_703_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'ownKeys':var.get('require')(Js('./_own-keys'))}))
|
|
PyJs_anonymous_703_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_704_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$preventExtensions', 'require', '$export', 'exports', 'module', 'anObject'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('$preventExtensions', var.get('Object').get('preventExtensions'))
|
|
@Js
|
|
def PyJs_preventExtensions_705_(target, this, arguments, var=var):
|
|
var = Scope({'target':target, 'this':this, 'arguments':arguments, 'preventExtensions':PyJs_preventExtensions_705_}, var)
|
|
var.registers(['target'])
|
|
var.get('anObject')(var.get('target'))
|
|
try:
|
|
if var.get('$preventExtensions'):
|
|
var.get('$preventExtensions')(var.get('target'))
|
|
return Js(True)
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_73755560 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return Js(False)
|
|
finally:
|
|
if PyJsHolder_65_73755560 is not None:
|
|
var.own['e'] = PyJsHolder_65_73755560
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_73755560
|
|
PyJs_preventExtensions_705_._set_name('preventExtensions')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'preventExtensions':PyJs_preventExtensions_705_}))
|
|
PyJs_anonymous_704_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_706_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'setProto'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('setProto', var.get('require')(Js('./_set-proto')))
|
|
if var.get('setProto'):
|
|
@Js
|
|
def PyJs_setPrototypeOf_707_(target, proto, this, arguments, var=var):
|
|
var = Scope({'target':target, 'proto':proto, 'this':this, 'arguments':arguments, 'setPrototypeOf':PyJs_setPrototypeOf_707_}, var)
|
|
var.registers(['target', 'proto'])
|
|
var.get('setProto').callprop('check', var.get('target'), var.get('proto'))
|
|
try:
|
|
var.get('setProto').callprop('set', var.get('target'), var.get('proto'))
|
|
return Js(True)
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_93928065 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return Js(False)
|
|
finally:
|
|
if PyJsHolder_65_93928065 is not None:
|
|
var.own['e'] = PyJsHolder_65_93928065
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_93928065
|
|
PyJs_setPrototypeOf_707_._set_name('setPrototypeOf')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'setPrototypeOf':PyJs_setPrototypeOf_707_}))
|
|
PyJs_anonymous_706_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_708_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'gOPD', '$export', 'exports', 'module', 'isObject', 'getPrototypeOf', 'anObject', 'set', 'createDesc', 'dP', 'has'])
|
|
@Js
|
|
def PyJsHoisted_set_(target, propertyKey, V, this, arguments, var=var):
|
|
var = Scope({'target':target, 'propertyKey':propertyKey, 'V':V, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['target', 'proto', 'propertyKey', 'V', 'receiver', 'existingDescriptor', 'ownDesc'])
|
|
var.put('receiver', (var.get('target') if (var.get('arguments').get('length')<Js(4.0)) else var.get('arguments').get('3')))
|
|
var.put('ownDesc', var.get('gOPD').callprop('f', var.get('anObject')(var.get('target')), var.get('propertyKey')))
|
|
pass
|
|
if var.get('ownDesc').neg():
|
|
if var.get('isObject')(var.put('proto', var.get('getPrototypeOf')(var.get('target')))):
|
|
return var.get('set')(var.get('proto'), var.get('propertyKey'), var.get('V'), var.get('receiver'))
|
|
var.put('ownDesc', var.get('createDesc')(Js(0.0)))
|
|
if var.get('has')(var.get('ownDesc'), Js('value')):
|
|
if (PyJsStrictEq(var.get('ownDesc').get('writable'),Js(False)) or var.get('isObject')(var.get('receiver')).neg()):
|
|
return Js(False)
|
|
if var.put('existingDescriptor', var.get('gOPD').callprop('f', var.get('receiver'), var.get('propertyKey'))):
|
|
if ((var.get('existingDescriptor').get('get') or var.get('existingDescriptor').get('set')) or PyJsStrictEq(var.get('existingDescriptor').get('writable'),Js(False))):
|
|
return Js(False)
|
|
var.get('existingDescriptor').put('value', var.get('V'))
|
|
var.get('dP').callprop('f', var.get('receiver'), var.get('propertyKey'), var.get('existingDescriptor'))
|
|
else:
|
|
var.get('dP').callprop('f', var.get('receiver'), var.get('propertyKey'), var.get('createDesc')(Js(0.0), var.get('V')))
|
|
return Js(True)
|
|
return (Js(False) if PyJsStrictEq(var.get('ownDesc').get('set'),var.get('undefined')) else PyJsComma(var.get('ownDesc').get('set').callprop('call', var.get('receiver'), var.get('V')),Js(True)))
|
|
PyJsHoisted_set_.func_name = 'set'
|
|
var.put('set', PyJsHoisted_set_)
|
|
var.put('dP', var.get('require')(Js('./_object-dp')))
|
|
var.put('gOPD', var.get('require')(Js('./_object-gopd')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('createDesc', var.get('require')(Js('./_property-desc')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
pass
|
|
var.get('$export')(var.get('$export').get('S'), Js('Reflect'), Js({'set':var.get('set')}))
|
|
PyJs_anonymous_708_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_709_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'CORRECT_NEW', 'isRegExp', '$RegExp', 'proto', 're1', 'proxy', 'gOPN', 'i', 'exports', 'module', 'Base', 'inheritIfRequired', 're2', 'global', 'dP', '$flags', 'keys'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('inheritIfRequired', var.get('require')(Js('./_inherit-if-required')))
|
|
var.put('dP', var.get('require')(Js('./_object-dp')).get('f'))
|
|
var.put('gOPN', var.get('require')(Js('./_object-gopn')).get('f'))
|
|
var.put('isRegExp', var.get('require')(Js('./_is-regexp')))
|
|
var.put('$flags', var.get('require')(Js('./_flags')))
|
|
var.put('$RegExp', var.get('global').get('RegExp'))
|
|
var.put('Base', var.get('$RegExp'))
|
|
var.put('proto', var.get('$RegExp').get('prototype'))
|
|
var.put('re1', JsRegExp('/a/g'))
|
|
var.put('re2', JsRegExp('/a/g'))
|
|
var.put('CORRECT_NEW', PyJsStrictNeq(var.get('$RegExp').create(var.get('re1')),var.get('re1')))
|
|
@Js
|
|
def PyJs_anonymous_710_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('re2').put(var.get('require')(Js('./_wks'))(Js('match')), Js(False))
|
|
return (((var.get('$RegExp')(var.get('re1'))!=var.get('re1')) or (var.get('$RegExp')(var.get('re2'))==var.get('re2'))) or (var.get('$RegExp')(var.get('re1'), Js('i'))!=Js('/a/i')))
|
|
PyJs_anonymous_710_._set_name('anonymous')
|
|
if (var.get('require')(Js('./_descriptors')) and (var.get('CORRECT_NEW').neg() or var.get('require')(Js('./_fails'))(PyJs_anonymous_710_))):
|
|
@Js
|
|
def PyJs_RegExp_711_(p, f, this, arguments, var=var):
|
|
var = Scope({'p':p, 'f':f, 'this':this, 'arguments':arguments, 'RegExp':PyJs_RegExp_711_}, var)
|
|
var.registers(['f', 'tiRE', 'piRE', 'fiU', 'p'])
|
|
var.put('tiRE', var.get(u"this").instanceof(var.get('$RegExp')))
|
|
var.put('piRE', var.get('isRegExp')(var.get('p')))
|
|
var.put('fiU', PyJsStrictEq(var.get('f'),var.get('undefined')))
|
|
def PyJs_LONG_712_(var=var):
|
|
return (var.get('Base').create((var.get('p').get('source') if (var.get('piRE') and var.get('fiU').neg()) else var.get('p')), var.get('f')) if var.get('CORRECT_NEW') else var.get('Base')((var.get('p').get('source') if var.put('piRE', var.get('p').instanceof(var.get('$RegExp'))) else var.get('p')), (var.get('$flags').callprop('call', var.get('p')) if (var.get('piRE') and var.get('fiU')) else var.get('f'))))
|
|
return (var.get('p') if (((var.get('tiRE').neg() and var.get('piRE')) and PyJsStrictEq(var.get('p').get('constructor'),var.get('$RegExp'))) and var.get('fiU')) else var.get('inheritIfRequired')(PyJs_LONG_712_(), (var.get(u"this") if var.get('tiRE') else var.get('proto')), var.get('$RegExp')))
|
|
PyJs_RegExp_711_._set_name('RegExp')
|
|
var.put('$RegExp', PyJs_RegExp_711_)
|
|
@Js
|
|
def PyJs_proxy_713_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'proxy':PyJs_proxy_713_}, var)
|
|
var.registers(['key'])
|
|
@Js
|
|
def PyJs_get_714_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_714_}, var)
|
|
var.registers([])
|
|
return var.get('Base').get(var.get('key'))
|
|
PyJs_get_714_._set_name('get')
|
|
@Js
|
|
def PyJs_set_715_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'set':PyJs_set_715_}, var)
|
|
var.registers(['it'])
|
|
var.get('Base').put(var.get('key'), var.get('it'))
|
|
PyJs_set_715_._set_name('set')
|
|
(var.get('$RegExp').contains(var.get('key')) or var.get('dP')(var.get('$RegExp'), var.get('key'), Js({'configurable':Js(True),'get':PyJs_get_714_,'set':PyJs_set_715_})))
|
|
PyJs_proxy_713_._set_name('proxy')
|
|
var.put('proxy', PyJs_proxy_713_)
|
|
#for JS loop
|
|
var.put('keys', var.get('gOPN')(var.get('Base')))
|
|
var.put('i', Js(0.0))
|
|
while (var.get('keys').get('length')>var.get('i')):
|
|
var.get('proxy')(var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))
|
|
|
|
var.get('proto').put('constructor', var.get('$RegExp'))
|
|
var.get('$RegExp').put('prototype', var.get('proto'))
|
|
var.get('require')(Js('./_redefine'))(var.get('global'), Js('RegExp'), var.get('$RegExp'))
|
|
var.get('require')(Js('./_set-species'))(Js('RegExp'))
|
|
PyJs_anonymous_709_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_716_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'regexpExec', 'module', 'exports'])
|
|
Js('use strict')
|
|
var.put('regexpExec', var.get('require')(Js('./_regexp-exec')))
|
|
var.get('require')(Js('./_export'))(Js({'target':Js('RegExp'),'proto':Js(True),'forced':PyJsStrictNeq(var.get('regexpExec'),JsRegExp('/./').get('exec'))}), Js({'exec':var.get('regexpExec')}))
|
|
PyJs_anonymous_716_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_717_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
if (var.get('require')(Js('./_descriptors')) and (JsRegExp('/./g').get('flags')!=Js('g'))):
|
|
var.get('require')(Js('./_object-dp')).callprop('f', var.get('RegExp').get('prototype'), Js('flags'), Js({'configurable':Js(True),'get':var.get('require')(Js('./_flags'))}))
|
|
PyJs_anonymous_717_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_718_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'exports', 'advanceStringIndex', 'module', 'regExpExec', 'anObject'])
|
|
Js('use strict')
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('advanceStringIndex', var.get('require')(Js('./_advance-string-index')))
|
|
var.put('regExpExec', var.get('require')(Js('./_regexp-exec-abstract')))
|
|
@Js
|
|
def PyJs_anonymous_719_(defined, MATCH, PyJsArg_246d61746368_, maybeCallNative, this, arguments, var=var):
|
|
var = Scope({'defined':defined, 'MATCH':MATCH, '$match':PyJsArg_246d61746368_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['defined', 'MATCH', '$match', 'maybeCallNative'])
|
|
@Js
|
|
def PyJs_match_720_(regexp, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments, 'match':PyJs_match_720_}, var)
|
|
var.registers(['O', 'fn', 'regexp'])
|
|
var.put('O', var.get('defined')(var.get(u"this")))
|
|
var.put('fn', (var.get('undefined') if (var.get('regexp')==var.get('undefined')) else var.get('regexp').get(var.get('MATCH'))))
|
|
return (var.get('fn').callprop('call', var.get('regexp'), var.get('O')) if PyJsStrictNeq(var.get('fn'),var.get('undefined')) else var.get('RegExp').create(var.get('regexp')).callprop(var.get('MATCH'), var.get('String')(var.get('O'))))
|
|
PyJs_match_720_._set_name('match')
|
|
@Js
|
|
def PyJs_anonymous_721_(regexp, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['matchStr', 'n', 'regexp', 'A', 'fullUnicode', 'res', 'result', 'S', 'rx'])
|
|
var.put('res', var.get('maybeCallNative')(var.get('$match'), var.get('regexp'), var.get(u"this")))
|
|
if var.get('res').get('done'):
|
|
return var.get('res').get('value')
|
|
var.put('rx', var.get('anObject')(var.get('regexp')))
|
|
var.put('S', var.get('String')(var.get(u"this")))
|
|
if var.get('rx').get('global').neg():
|
|
return var.get('regExpExec')(var.get('rx'), var.get('S'))
|
|
var.put('fullUnicode', var.get('rx').get('unicode'))
|
|
var.get('rx').put('lastIndex', Js(0.0))
|
|
var.put('A', Js([]))
|
|
var.put('n', Js(0.0))
|
|
pass
|
|
while PyJsStrictNeq(var.put('result', var.get('regExpExec')(var.get('rx'), var.get('S'))),var.get(u"null")):
|
|
var.put('matchStr', var.get('String')(var.get('result').get('0')))
|
|
var.get('A').put(var.get('n'), var.get('matchStr'))
|
|
if PyJsStrictEq(var.get('matchStr'),Js('')):
|
|
var.get('rx').put('lastIndex', var.get('advanceStringIndex')(var.get('S'), var.get('toLength')(var.get('rx').get('lastIndex')), var.get('fullUnicode')))
|
|
(var.put('n',Js(var.get('n').to_number())+Js(1))-Js(1))
|
|
return (var.get(u"null") if PyJsStrictEq(var.get('n'),Js(0.0)) else var.get('A'))
|
|
PyJs_anonymous_721_._set_name('anonymous')
|
|
return Js([PyJs_match_720_, PyJs_anonymous_721_])
|
|
PyJs_anonymous_719_._set_name('anonymous')
|
|
var.get('require')(Js('./_fix-re-wks'))(Js('match'), Js(1.0), PyJs_anonymous_719_)
|
|
PyJs_anonymous_718_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_722_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'floor', 'max', 'min', 'toObject', 'exports', 'advanceStringIndex', 'module', 'SUBSTITUTION_SYMBOLS_NO_NAMED', 'SUBSTITUTION_SYMBOLS', 'regExpExec', 'toInteger', 'anObject', 'maybeToString'])
|
|
Js('use strict')
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('advanceStringIndex', var.get('require')(Js('./_advance-string-index')))
|
|
var.put('regExpExec', var.get('require')(Js('./_regexp-exec-abstract')))
|
|
var.put('max', var.get('Math').get('max'))
|
|
var.put('min', var.get('Math').get('min'))
|
|
var.put('floor', var.get('Math').get('floor'))
|
|
var.put('SUBSTITUTION_SYMBOLS', JsRegExp("/\\$([$&`']|\\d\\d?|<[^>]*>)/g"))
|
|
var.put('SUBSTITUTION_SYMBOLS_NO_NAMED', JsRegExp("/\\$([$&`']|\\d\\d?)/g"))
|
|
@Js
|
|
def PyJs_maybeToString_723_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'maybeToString':PyJs_maybeToString_723_}, var)
|
|
var.registers(['it'])
|
|
return (var.get('it') if PyJsStrictEq(var.get('it'),var.get('undefined')) else var.get('String')(var.get('it')))
|
|
PyJs_maybeToString_723_._set_name('maybeToString')
|
|
var.put('maybeToString', PyJs_maybeToString_723_)
|
|
@Js
|
|
def PyJs_anonymous_724_(defined, REPLACE, PyJsArg_247265706c616365_, maybeCallNative, this, arguments, var=var):
|
|
var = Scope({'defined':defined, 'REPLACE':REPLACE, '$replace':PyJsArg_247265706c616365_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['defined', '$replace', 'maybeCallNative', 'getSubstitution', 'REPLACE'])
|
|
@Js
|
|
def PyJsHoisted_getSubstitution_(matched, str, position, captures, namedCaptures, replacement, this, arguments, var=var):
|
|
var = Scope({'matched':matched, 'str':str, 'position':position, 'captures':captures, 'namedCaptures':namedCaptures, 'replacement':replacement, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['symbols', 'tailPos', 'str', 'position', 'captures', 'namedCaptures', 'matched', 'm', 'replacement'])
|
|
var.put('tailPos', (var.get('position')+var.get('matched').get('length')))
|
|
var.put('m', var.get('captures').get('length'))
|
|
var.put('symbols', var.get('SUBSTITUTION_SYMBOLS_NO_NAMED'))
|
|
if PyJsStrictNeq(var.get('namedCaptures'),var.get('undefined')):
|
|
var.put('namedCaptures', var.get('toObject')(var.get('namedCaptures')))
|
|
var.put('symbols', var.get('SUBSTITUTION_SYMBOLS'))
|
|
@Js
|
|
def PyJs_anonymous_727_(match, ch, this, arguments, var=var):
|
|
var = Scope({'match':match, 'ch':ch, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['ch', 'f', 'n', 'match', 'capture'])
|
|
pass
|
|
while 1:
|
|
SWITCHED = False
|
|
CONDITION = (var.get('ch').callprop('charAt', Js(0.0)))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js('$')):
|
|
SWITCHED = True
|
|
return Js('$')
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js('&')):
|
|
SWITCHED = True
|
|
return var.get('matched')
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js('`')):
|
|
SWITCHED = True
|
|
return var.get('str').callprop('slice', Js(0.0), var.get('position'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js("'")):
|
|
SWITCHED = True
|
|
return var.get('str').callprop('slice', var.get('tailPos'))
|
|
if SWITCHED or PyJsStrictEq(CONDITION, Js('<')):
|
|
SWITCHED = True
|
|
var.put('capture', var.get('namedCaptures').get(var.get('ch').callprop('slice', Js(1.0), (-Js(1.0)))))
|
|
break
|
|
if True:
|
|
SWITCHED = True
|
|
var.put('n', (+var.get('ch')))
|
|
if PyJsStrictEq(var.get('n'),Js(0.0)):
|
|
return var.get('match')
|
|
if (var.get('n')>var.get('m')):
|
|
var.put('f', var.get('floor')((var.get('n')/Js(10.0))))
|
|
if PyJsStrictEq(var.get('f'),Js(0.0)):
|
|
return var.get('match')
|
|
if (var.get('f')<=var.get('m')):
|
|
return (var.get('ch').callprop('charAt', Js(1.0)) if PyJsStrictEq(var.get('captures').get((var.get('f')-Js(1.0))),var.get('undefined')) else (var.get('captures').get((var.get('f')-Js(1.0)))+var.get('ch').callprop('charAt', Js(1.0))))
|
|
return var.get('match')
|
|
var.put('capture', var.get('captures').get((var.get('n')-Js(1.0))))
|
|
SWITCHED = True
|
|
break
|
|
return (Js('') if PyJsStrictEq(var.get('capture'),var.get('undefined')) else var.get('capture'))
|
|
PyJs_anonymous_727_._set_name('anonymous')
|
|
return var.get('$replace').callprop('call', var.get('replacement'), var.get('symbols'), PyJs_anonymous_727_)
|
|
PyJsHoisted_getSubstitution_.func_name = 'getSubstitution'
|
|
var.put('getSubstitution', PyJsHoisted_getSubstitution_)
|
|
@Js
|
|
def PyJs_replace_725_(searchValue, replaceValue, this, arguments, var=var):
|
|
var = Scope({'searchValue':searchValue, 'replaceValue':replaceValue, 'this':this, 'arguments':arguments, 'replace':PyJs_replace_725_}, var)
|
|
var.registers(['replaceValue', 'O', 'searchValue', 'fn'])
|
|
var.put('O', var.get('defined')(var.get(u"this")))
|
|
var.put('fn', (var.get('undefined') if (var.get('searchValue')==var.get('undefined')) else var.get('searchValue').get(var.get('REPLACE'))))
|
|
return (var.get('fn').callprop('call', var.get('searchValue'), var.get('O'), var.get('replaceValue')) if PyJsStrictNeq(var.get('fn'),var.get('undefined')) else var.get('$replace').callprop('call', var.get('String')(var.get('O')), var.get('searchValue'), var.get('replaceValue')))
|
|
PyJs_replace_725_._set_name('replace')
|
|
@Js
|
|
def PyJs_anonymous_726_(regexp, replaceValue, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'replaceValue':replaceValue, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['matchStr', 'regexp', 'i', 'matched', 'functionalReplace', 'result', 'replaceValue', 'S', 'nextSourcePosition', 'results', 'replacerArgs', 'position', 'namedCaptures', 'global', 'accumulatedResult', 'res', 'rx', 'fullUnicode', 'captures', 'j', 'replacement'])
|
|
var.put('res', var.get('maybeCallNative')(var.get('$replace'), var.get('regexp'), var.get(u"this"), var.get('replaceValue')))
|
|
if var.get('res').get('done'):
|
|
return var.get('res').get('value')
|
|
var.put('rx', var.get('anObject')(var.get('regexp')))
|
|
var.put('S', var.get('String')(var.get(u"this")))
|
|
var.put('functionalReplace', PyJsStrictEq(var.get('replaceValue',throw=False).typeof(),Js('function')))
|
|
if var.get('functionalReplace').neg():
|
|
var.put('replaceValue', var.get('String')(var.get('replaceValue')))
|
|
var.put('global', var.get('rx').get('global'))
|
|
if var.get('global'):
|
|
var.put('fullUnicode', var.get('rx').get('unicode'))
|
|
var.get('rx').put('lastIndex', Js(0.0))
|
|
var.put('results', Js([]))
|
|
while Js(True):
|
|
var.put('result', var.get('regExpExec')(var.get('rx'), var.get('S')))
|
|
if PyJsStrictEq(var.get('result'),var.get(u"null")):
|
|
break
|
|
var.get('results').callprop('push', var.get('result'))
|
|
if var.get('global').neg():
|
|
break
|
|
var.put('matchStr', var.get('String')(var.get('result').get('0')))
|
|
if PyJsStrictEq(var.get('matchStr'),Js('')):
|
|
var.get('rx').put('lastIndex', var.get('advanceStringIndex')(var.get('S'), var.get('toLength')(var.get('rx').get('lastIndex')), var.get('fullUnicode')))
|
|
var.put('accumulatedResult', Js(''))
|
|
var.put('nextSourcePosition', Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('results').get('length')):
|
|
try:
|
|
var.put('result', var.get('results').get(var.get('i')))
|
|
var.put('matched', var.get('String')(var.get('result').get('0')))
|
|
var.put('position', var.get('max')(var.get('min')(var.get('toInteger')(var.get('result').get('index')), var.get('S').get('length')), Js(0.0)))
|
|
var.put('captures', Js([]))
|
|
#for JS loop
|
|
var.put('j', Js(1.0))
|
|
while (var.get('j')<var.get('result').get('length')):
|
|
try:
|
|
var.get('captures').callprop('push', var.get('maybeToString')(var.get('result').get(var.get('j'))))
|
|
finally:
|
|
(var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))
|
|
var.put('namedCaptures', var.get('result').get('groups'))
|
|
if var.get('functionalReplace'):
|
|
var.put('replacerArgs', Js([var.get('matched')]).callprop('concat', var.get('captures'), var.get('position'), var.get('S')))
|
|
if PyJsStrictNeq(var.get('namedCaptures'),var.get('undefined')):
|
|
var.get('replacerArgs').callprop('push', var.get('namedCaptures'))
|
|
var.put('replacement', var.get('String')(var.get('replaceValue').callprop('apply', var.get('undefined'), var.get('replacerArgs'))))
|
|
else:
|
|
var.put('replacement', var.get('getSubstitution')(var.get('matched'), var.get('S'), var.get('position'), var.get('captures'), var.get('namedCaptures'), var.get('replaceValue')))
|
|
if (var.get('position')>=var.get('nextSourcePosition')):
|
|
var.put('accumulatedResult', (var.get('S').callprop('slice', var.get('nextSourcePosition'), var.get('position'))+var.get('replacement')), '+')
|
|
var.put('nextSourcePosition', (var.get('position')+var.get('matched').get('length')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return (var.get('accumulatedResult')+var.get('S').callprop('slice', var.get('nextSourcePosition')))
|
|
PyJs_anonymous_726_._set_name('anonymous')
|
|
return Js([PyJs_replace_725_, PyJs_anonymous_726_])
|
|
pass
|
|
PyJs_anonymous_724_._set_name('anonymous')
|
|
var.get('require')(Js('./_fix-re-wks'))(Js('replace'), Js(2.0), PyJs_anonymous_724_)
|
|
PyJs_anonymous_722_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_728_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'exports', 'module', 'sameValue', 'regExpExec', 'anObject'])
|
|
Js('use strict')
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('sameValue', var.get('require')(Js('./_same-value')))
|
|
var.put('regExpExec', var.get('require')(Js('./_regexp-exec-abstract')))
|
|
@Js
|
|
def PyJs_anonymous_729_(defined, SEARCH, PyJsArg_24736561726368_, maybeCallNative, this, arguments, var=var):
|
|
var = Scope({'defined':defined, 'SEARCH':SEARCH, '$search':PyJsArg_24736561726368_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['defined', 'SEARCH', 'maybeCallNative', '$search'])
|
|
@Js
|
|
def PyJs_search_730_(regexp, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments, 'search':PyJs_search_730_}, var)
|
|
var.registers(['O', 'fn', 'regexp'])
|
|
var.put('O', var.get('defined')(var.get(u"this")))
|
|
var.put('fn', (var.get('undefined') if (var.get('regexp')==var.get('undefined')) else var.get('regexp').get(var.get('SEARCH'))))
|
|
return (var.get('fn').callprop('call', var.get('regexp'), var.get('O')) if PyJsStrictNeq(var.get('fn'),var.get('undefined')) else var.get('RegExp').create(var.get('regexp')).callprop(var.get('SEARCH'), var.get('String')(var.get('O'))))
|
|
PyJs_search_730_._set_name('search')
|
|
@Js
|
|
def PyJs_anonymous_731_(regexp, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['regexp', 'previousLastIndex', 'result', 'res', 'S', 'rx'])
|
|
var.put('res', var.get('maybeCallNative')(var.get('$search'), var.get('regexp'), var.get(u"this")))
|
|
if var.get('res').get('done'):
|
|
return var.get('res').get('value')
|
|
var.put('rx', var.get('anObject')(var.get('regexp')))
|
|
var.put('S', var.get('String')(var.get(u"this")))
|
|
var.put('previousLastIndex', var.get('rx').get('lastIndex'))
|
|
if var.get('sameValue')(var.get('previousLastIndex'), Js(0.0)).neg():
|
|
var.get('rx').put('lastIndex', Js(0.0))
|
|
var.put('result', var.get('regExpExec')(var.get('rx'), var.get('S')))
|
|
if var.get('sameValue')(var.get('rx').get('lastIndex'), var.get('previousLastIndex')).neg():
|
|
var.get('rx').put('lastIndex', var.get('previousLastIndex'))
|
|
return ((-Js(1.0)) if PyJsStrictEq(var.get('result'),var.get(u"null")) else var.get('result').get('index'))
|
|
PyJs_anonymous_731_._set_name('anonymous')
|
|
return Js([PyJs_search_730_, PyJs_anonymous_731_])
|
|
PyJs_anonymous_729_._set_name('anonymous')
|
|
var.get('require')(Js('./_fix-re-wks'))(Js('search'), Js(1.0), PyJs_anonymous_729_)
|
|
PyJs_anonymous_728_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_732_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'SUPPORTS_Y', 'toLength', 'isRegExp', 'callRegExpExec', '$min', 'LENGTH', 'MAX_UINT32', '$push', 'exports', 'advanceStringIndex', 'LAST_INDEX', 'speciesConstructor', 'module', '$SPLIT', 'fails', 'regexpExec', 'anObject'])
|
|
Js('use strict')
|
|
var.put('isRegExp', var.get('require')(Js('./_is-regexp')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('speciesConstructor', var.get('require')(Js('./_species-constructor')))
|
|
var.put('advanceStringIndex', var.get('require')(Js('./_advance-string-index')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('callRegExpExec', var.get('require')(Js('./_regexp-exec-abstract')))
|
|
var.put('regexpExec', var.get('require')(Js('./_regexp-exec')))
|
|
var.put('fails', var.get('require')(Js('./_fails')))
|
|
var.put('$min', var.get('Math').get('min'))
|
|
var.put('$push', Js([]).get('push'))
|
|
var.put('$SPLIT', Js('split'))
|
|
var.put('LENGTH', Js('length'))
|
|
var.put('LAST_INDEX', Js('lastIndex'))
|
|
var.put('MAX_UINT32', Js(4294967295))
|
|
@Js
|
|
def PyJs_anonymous_733_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('RegExp')(var.get('MAX_UINT32'), Js('y'))
|
|
PyJs_anonymous_733_._set_name('anonymous')
|
|
var.put('SUPPORTS_Y', var.get('fails')(PyJs_anonymous_733_).neg())
|
|
@Js
|
|
def PyJs_anonymous_734_(defined, SPLIT, PyJsArg_2473706c6974_, maybeCallNative, this, arguments, var=var):
|
|
var = Scope({'defined':defined, 'SPLIT':SPLIT, '$split':PyJsArg_2473706c6974_, 'maybeCallNative':maybeCallNative, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['defined', 'internalSplit', 'SPLIT', 'maybeCallNative', '$split'])
|
|
pass
|
|
def PyJs_LONG_735_(var=var):
|
|
return (((((Js('abbc').callprop(var.get('$SPLIT'), JsRegExp('/(b)*/')).get('1')==Js('c')) or (Js('test').callprop(var.get('$SPLIT'), JsRegExp('/(?:)/'), (-Js(1.0))).get(var.get('LENGTH'))!=Js(4.0))) or (Js('ab').callprop(var.get('$SPLIT'), JsRegExp('/(?:ab)*/')).get(var.get('LENGTH'))!=Js(2.0))) or (Js('.').callprop(var.get('$SPLIT'), JsRegExp('/(.?)(.?)/')).get(var.get('LENGTH'))!=Js(4.0))) or (Js('.').callprop(var.get('$SPLIT'), JsRegExp('/()()/')).get(var.get('LENGTH'))>Js(1.0)))
|
|
if (PyJs_LONG_735_() or Js('').callprop(var.get('$SPLIT'), JsRegExp('/.?/')).get(var.get('LENGTH'))):
|
|
@Js
|
|
def PyJs_internalSplit_736_(separator, limit, this, arguments, var=var):
|
|
var = Scope({'separator':separator, 'limit':limit, 'this':this, 'arguments':arguments, 'internalSplit':PyJs_internalSplit_736_}, var)
|
|
var.registers(['string', 'lastLastIndex', 'output', 'splitLimit', 'lastLength', 'separator', 'flags', 'separatorCopy', 'match', 'limit', 'lastIndex'])
|
|
var.put('string', var.get('String')(var.get(u"this")))
|
|
if (PyJsStrictEq(var.get('separator'),var.get('undefined')) and PyJsStrictEq(var.get('limit'),Js(0.0))):
|
|
return Js([])
|
|
if var.get('isRegExp')(var.get('separator')).neg():
|
|
return var.get('$split').callprop('call', var.get('string'), var.get('separator'), var.get('limit'))
|
|
var.put('output', Js([]))
|
|
var.put('flags', ((((Js('i') if var.get('separator').get('ignoreCase') else Js(''))+(Js('m') if var.get('separator').get('multiline') else Js('')))+(Js('u') if var.get('separator').get('unicode') else Js('')))+(Js('y') if var.get('separator').get('sticky') else Js(''))))
|
|
var.put('lastLastIndex', Js(0.0))
|
|
var.put('splitLimit', (var.get('MAX_UINT32') if PyJsStrictEq(var.get('limit'),var.get('undefined')) else PyJsBshift(var.get('limit'),Js(0.0))))
|
|
var.put('separatorCopy', var.get('RegExp').create(var.get('separator').get('source'), (var.get('flags')+Js('g'))))
|
|
pass
|
|
while var.put('match', var.get('regexpExec').callprop('call', var.get('separatorCopy'), var.get('string'))):
|
|
var.put('lastIndex', var.get('separatorCopy').get(var.get('LAST_INDEX')))
|
|
if (var.get('lastIndex')>var.get('lastLastIndex')):
|
|
var.get('output').callprop('push', var.get('string').callprop('slice', var.get('lastLastIndex'), var.get('match').get('index')))
|
|
if ((var.get('match').get(var.get('LENGTH'))>Js(1.0)) and (var.get('match').get('index')<var.get('string').get(var.get('LENGTH')))):
|
|
var.get('$push').callprop('apply', var.get('output'), var.get('match').callprop('slice', Js(1.0)))
|
|
var.put('lastLength', var.get('match').get('0').get(var.get('LENGTH')))
|
|
var.put('lastLastIndex', var.get('lastIndex'))
|
|
if (var.get('output').get(var.get('LENGTH'))>=var.get('splitLimit')):
|
|
break
|
|
if PyJsStrictEq(var.get('separatorCopy').get(var.get('LAST_INDEX')),var.get('match').get('index')):
|
|
(var.get('separatorCopy').put(var.get('LAST_INDEX'),Js(var.get('separatorCopy').get(var.get('LAST_INDEX')).to_number())+Js(1))-Js(1))
|
|
if PyJsStrictEq(var.get('lastLastIndex'),var.get('string').get(var.get('LENGTH'))):
|
|
if (var.get('lastLength') or var.get('separatorCopy').callprop('test', Js('')).neg()):
|
|
var.get('output').callprop('push', Js(''))
|
|
else:
|
|
var.get('output').callprop('push', var.get('string').callprop('slice', var.get('lastLastIndex')))
|
|
return (var.get('output').callprop('slice', Js(0.0), var.get('splitLimit')) if (var.get('output').get(var.get('LENGTH'))>var.get('splitLimit')) else var.get('output'))
|
|
PyJs_internalSplit_736_._set_name('internalSplit')
|
|
var.put('internalSplit', PyJs_internalSplit_736_)
|
|
else:
|
|
if Js('0').callprop(var.get('$SPLIT'), var.get('undefined'), Js(0.0)).get(var.get('LENGTH')):
|
|
@Js
|
|
def PyJs_internalSplit_737_(separator, limit, this, arguments, var=var):
|
|
var = Scope({'separator':separator, 'limit':limit, 'this':this, 'arguments':arguments, 'internalSplit':PyJs_internalSplit_737_}, var)
|
|
var.registers(['separator', 'limit'])
|
|
return (Js([]) if (PyJsStrictEq(var.get('separator'),var.get('undefined')) and PyJsStrictEq(var.get('limit'),Js(0.0))) else var.get('$split').callprop('call', var.get(u"this"), var.get('separator'), var.get('limit')))
|
|
PyJs_internalSplit_737_._set_name('internalSplit')
|
|
var.put('internalSplit', PyJs_internalSplit_737_)
|
|
else:
|
|
var.put('internalSplit', var.get('$split'))
|
|
@Js
|
|
def PyJs_split_738_(separator, limit, this, arguments, var=var):
|
|
var = Scope({'separator':separator, 'limit':limit, 'this':this, 'arguments':arguments, 'split':PyJs_split_738_}, var)
|
|
var.registers(['O', 'separator', 'limit', 'splitter'])
|
|
var.put('O', var.get('defined')(var.get(u"this")))
|
|
var.put('splitter', (var.get('undefined') if (var.get('separator')==var.get('undefined')) else var.get('separator').get(var.get('SPLIT'))))
|
|
return (var.get('splitter').callprop('call', var.get('separator'), var.get('O'), var.get('limit')) if PyJsStrictNeq(var.get('splitter'),var.get('undefined')) else var.get('internalSplit').callprop('call', var.get('String')(var.get('O')), var.get('separator'), var.get('limit')))
|
|
PyJs_split_738_._set_name('split')
|
|
@Js
|
|
def PyJs_anonymous_739_(regexp, limit, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'limit':limit, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'z', 'regexp', 'lim', 'A', 'i', 'splitter', 'flags', 'res', 'e', 'p', 'unicodeMatching', 'q', 'S', 'limit', 'rx'])
|
|
var.put('res', var.get('maybeCallNative')(var.get('internalSplit'), var.get('regexp'), var.get(u"this"), var.get('limit'), PyJsStrictNeq(var.get('internalSplit'),var.get('$split'))))
|
|
if var.get('res').get('done'):
|
|
return var.get('res').get('value')
|
|
var.put('rx', var.get('anObject')(var.get('regexp')))
|
|
var.put('S', var.get('String')(var.get(u"this")))
|
|
var.put('C', var.get('speciesConstructor')(var.get('rx'), var.get('RegExp')))
|
|
var.put('unicodeMatching', var.get('rx').get('unicode'))
|
|
var.put('flags', ((((Js('i') if var.get('rx').get('ignoreCase') else Js(''))+(Js('m') if var.get('rx').get('multiline') else Js('')))+(Js('u') if var.get('rx').get('unicode') else Js('')))+(Js('y') if var.get('SUPPORTS_Y') else Js('g'))))
|
|
var.put('splitter', var.get('C').create((var.get('rx') if var.get('SUPPORTS_Y') else ((Js('^(?:')+var.get('rx').get('source'))+Js(')'))), var.get('flags')))
|
|
var.put('lim', (var.get('MAX_UINT32') if PyJsStrictEq(var.get('limit'),var.get('undefined')) else PyJsBshift(var.get('limit'),Js(0.0))))
|
|
if PyJsStrictEq(var.get('lim'),Js(0.0)):
|
|
return Js([])
|
|
if PyJsStrictEq(var.get('S').get('length'),Js(0.0)):
|
|
return (Js([var.get('S')]) if PyJsStrictEq(var.get('callRegExpExec')(var.get('splitter'), var.get('S')),var.get(u"null")) else Js([]))
|
|
var.put('p', Js(0.0))
|
|
var.put('q', Js(0.0))
|
|
var.put('A', Js([]))
|
|
while (var.get('q')<var.get('S').get('length')):
|
|
var.get('splitter').put('lastIndex', (var.get('q') if var.get('SUPPORTS_Y') else Js(0.0)))
|
|
var.put('z', var.get('callRegExpExec')(var.get('splitter'), (var.get('S') if var.get('SUPPORTS_Y') else var.get('S').callprop('slice', var.get('q')))))
|
|
pass
|
|
if (PyJsStrictEq(var.get('z'),var.get(u"null")) or PyJsStrictEq(var.put('e', var.get('$min')(var.get('toLength')((var.get('splitter').get('lastIndex')+(Js(0.0) if var.get('SUPPORTS_Y') else var.get('q')))), var.get('S').get('length'))),var.get('p'))):
|
|
var.put('q', var.get('advanceStringIndex')(var.get('S'), var.get('q'), var.get('unicodeMatching')))
|
|
else:
|
|
var.get('A').callprop('push', var.get('S').callprop('slice', var.get('p'), var.get('q')))
|
|
if PyJsStrictEq(var.get('A').get('length'),var.get('lim')):
|
|
return var.get('A')
|
|
#for JS loop
|
|
var.put('i', Js(1.0))
|
|
while (var.get('i')<=(var.get('z').get('length')-Js(1.0))):
|
|
try:
|
|
var.get('A').callprop('push', var.get('z').get(var.get('i')))
|
|
if PyJsStrictEq(var.get('A').get('length'),var.get('lim')):
|
|
return var.get('A')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.put('q', var.put('p', var.get('e')))
|
|
var.get('A').callprop('push', var.get('S').callprop('slice', var.get('p')))
|
|
return var.get('A')
|
|
PyJs_anonymous_739_._set_name('anonymous')
|
|
return Js([PyJs_split_738_, PyJs_anonymous_739_])
|
|
PyJs_anonymous_734_._set_name('anonymous')
|
|
var.get('require')(Js('./_fix-re-wks'))(Js('split'), Js(2.0), PyJs_anonymous_734_)
|
|
PyJs_anonymous_732_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_740_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'DESCRIPTORS', 'define', 'exports', 'module', 'TO_STRING', 'anObject', '$toString', '$flags'])
|
|
Js('use strict')
|
|
var.get('require')(Js('./es6.regexp.flags'))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('$flags', var.get('require')(Js('./_flags')))
|
|
var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors')))
|
|
var.put('TO_STRING', Js('toString'))
|
|
var.put('$toString', JsRegExp('/./').get(var.get('TO_STRING')))
|
|
@Js
|
|
def PyJs_define_741_(fn, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'define':PyJs_define_741_}, var)
|
|
var.registers(['fn'])
|
|
var.get('require')(Js('./_redefine'))(var.get('RegExp').get('prototype'), var.get('TO_STRING'), var.get('fn'), Js(True))
|
|
PyJs_define_741_._set_name('define')
|
|
var.put('define', PyJs_define_741_)
|
|
@Js
|
|
def PyJs_anonymous_742_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return (var.get('$toString').callprop('call', Js({'source':Js('a'),'flags':Js('b')}))!=Js('/a/b'))
|
|
PyJs_anonymous_742_._set_name('anonymous')
|
|
if var.get('require')(Js('./_fails'))(PyJs_anonymous_742_):
|
|
@Js
|
|
def PyJs_toString_743_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_743_}, var)
|
|
var.registers(['R'])
|
|
var.put('R', var.get('anObject')(var.get(u"this")))
|
|
return Js('/').callprop('concat', var.get('R').get('source'), Js('/'), (var.get('R').get('flags') if var.get('R').contains(Js('flags')) else (var.get('$flags').callprop('call', var.get('R')) if (var.get('DESCRIPTORS').neg() and var.get('R').instanceof(var.get('RegExp'))) else var.get('undefined'))))
|
|
PyJs_toString_743_._set_name('toString')
|
|
var.get('define')(PyJs_toString_743_)
|
|
else:
|
|
if (var.get('$toString').get('name')!=var.get('TO_STRING')):
|
|
@Js
|
|
def PyJs_toString_744_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_744_}, var)
|
|
var.registers([])
|
|
return var.get('$toString').callprop('call', var.get(u"this"))
|
|
PyJs_toString_744_._set_name('toString')
|
|
var.get('define')(PyJs_toString_744_)
|
|
PyJs_anonymous_740_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_745_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'SET', 'strong', 'exports', 'module', 'validate'])
|
|
Js('use strict')
|
|
var.put('strong', var.get('require')(Js('./_collection-strong')))
|
|
var.put('validate', var.get('require')(Js('./_validate-collection')))
|
|
var.put('SET', Js('Set'))
|
|
@Js
|
|
def PyJs_anonymous_746_(get, this, arguments, var=var):
|
|
var = Scope({'get':get, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['get'])
|
|
@Js
|
|
def PyJs_Set_747_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'Set':PyJs_Set_747_}, var)
|
|
var.registers([])
|
|
return var.get('get')(var.get(u"this"), (var.get('arguments').get('0') if (var.get('arguments').get('length')>Js(0.0)) else var.get('undefined')))
|
|
PyJs_Set_747_._set_name('Set')
|
|
return PyJs_Set_747_
|
|
PyJs_anonymous_746_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_add_748_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'add':PyJs_add_748_}, var)
|
|
var.registers(['value'])
|
|
return var.get('strong').callprop('def', var.get('validate')(var.get(u"this"), var.get('SET')), var.put('value', (Js(0.0) if PyJsStrictEq(var.get('value'),Js(0.0)) else var.get('value'))), var.get('value'))
|
|
PyJs_add_748_._set_name('add')
|
|
var.get('module').put('exports', var.get('require')(Js('./_collection'))(var.get('SET'), PyJs_anonymous_746_, Js({'add':PyJs_add_748_}), var.get('strong')))
|
|
PyJs_anonymous_745_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_749_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_750_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_anchor_751_(name, this, arguments, var=var):
|
|
var = Scope({'name':name, 'this':this, 'arguments':arguments, 'anchor':PyJs_anchor_751_}, var)
|
|
var.registers(['name'])
|
|
return var.get('createHTML')(var.get(u"this"), Js('a'), Js('name'), var.get('name'))
|
|
PyJs_anchor_751_._set_name('anchor')
|
|
return PyJs_anchor_751_
|
|
PyJs_anonymous_750_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('anchor'), PyJs_anonymous_750_)
|
|
PyJs_anonymous_749_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_752_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_753_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_big_754_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'big':PyJs_big_754_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('big'), Js(''), Js(''))
|
|
PyJs_big_754_._set_name('big')
|
|
return PyJs_big_754_
|
|
PyJs_anonymous_753_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('big'), PyJs_anonymous_753_)
|
|
PyJs_anonymous_752_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_755_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_756_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_blink_757_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'blink':PyJs_blink_757_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('blink'), Js(''), Js(''))
|
|
PyJs_blink_757_._set_name('blink')
|
|
return PyJs_blink_757_
|
|
PyJs_anonymous_756_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('blink'), PyJs_anonymous_756_)
|
|
PyJs_anonymous_755_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_758_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_759_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_bold_760_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'bold':PyJs_bold_760_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('b'), Js(''), Js(''))
|
|
PyJs_bold_760_._set_name('bold')
|
|
return PyJs_bold_760_
|
|
PyJs_anonymous_759_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('bold'), PyJs_anonymous_759_)
|
|
PyJs_anonymous_758_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_761_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$at'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$at', var.get('require')(Js('./_string-at'))(Js(False)))
|
|
@Js
|
|
def PyJs_codePointAt_762_(pos, this, arguments, var=var):
|
|
var = Scope({'pos':pos, 'this':this, 'arguments':arguments, 'codePointAt':PyJs_codePointAt_762_}, var)
|
|
var.registers(['pos'])
|
|
return var.get('$at')(var.get(u"this"), var.get('pos'))
|
|
PyJs_codePointAt_762_._set_name('codePointAt')
|
|
var.get('$export')(var.get('$export').get('P'), Js('String'), Js({'codePointAt':PyJs_codePointAt_762_}))
|
|
PyJs_anonymous_761_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_763_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', '$endsWith', '$export', 'exports', 'module', 'ENDS_WITH', 'context'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('context', var.get('require')(Js('./_string-context')))
|
|
var.put('ENDS_WITH', Js('endsWith'))
|
|
var.put('$endsWith', Js('').get(var.get('ENDS_WITH')))
|
|
@Js
|
|
def PyJs_endsWith_764_(searchString, this, arguments, var=var):
|
|
var = Scope({'searchString':searchString, 'this':this, 'arguments':arguments, 'endsWith':PyJs_endsWith_764_}, var)
|
|
var.registers(['search', 'end', 'that', 'searchString', 'endPosition', 'len'])
|
|
var.put('that', var.get('context')(var.get(u"this"), var.get('searchString'), var.get('ENDS_WITH')))
|
|
var.put('endPosition', (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
var.put('len', var.get('toLength')(var.get('that').get('length')))
|
|
var.put('end', (var.get('len') if PyJsStrictEq(var.get('endPosition'),var.get('undefined')) else var.get('Math').callprop('min', var.get('toLength')(var.get('endPosition')), var.get('len'))))
|
|
var.put('search', var.get('String')(var.get('searchString')))
|
|
return (var.get('$endsWith').callprop('call', var.get('that'), var.get('search'), var.get('end')) if var.get('$endsWith') else PyJsStrictEq(var.get('that').callprop('slice', (var.get('end')-var.get('search').get('length')), var.get('end')),var.get('search')))
|
|
PyJs_endsWith_764_._set_name('endsWith')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails-is-regexp'))(var.get('ENDS_WITH')))), Js('String'), Js({'endsWith':PyJs_endsWith_764_}))
|
|
PyJs_anonymous_763_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_765_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_766_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_fixed_767_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'fixed':PyJs_fixed_767_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('tt'), Js(''), Js(''))
|
|
PyJs_fixed_767_._set_name('fixed')
|
|
return PyJs_fixed_767_
|
|
PyJs_anonymous_766_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('fixed'), PyJs_anonymous_766_)
|
|
PyJs_anonymous_765_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_768_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_769_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_fontcolor_770_(color, this, arguments, var=var):
|
|
var = Scope({'color':color, 'this':this, 'arguments':arguments, 'fontcolor':PyJs_fontcolor_770_}, var)
|
|
var.registers(['color'])
|
|
return var.get('createHTML')(var.get(u"this"), Js('font'), Js('color'), var.get('color'))
|
|
PyJs_fontcolor_770_._set_name('fontcolor')
|
|
return PyJs_fontcolor_770_
|
|
PyJs_anonymous_769_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('fontcolor'), PyJs_anonymous_769_)
|
|
PyJs_anonymous_768_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_771_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_772_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_fontsize_773_(size, this, arguments, var=var):
|
|
var = Scope({'size':size, 'this':this, 'arguments':arguments, 'fontsize':PyJs_fontsize_773_}, var)
|
|
var.registers(['size'])
|
|
return var.get('createHTML')(var.get(u"this"), Js('font'), Js('size'), var.get('size'))
|
|
PyJs_fontsize_773_._set_name('fontsize')
|
|
return PyJs_fontsize_773_
|
|
PyJs_anonymous_772_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('fontsize'), PyJs_anonymous_772_)
|
|
PyJs_anonymous_771_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_774_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$fromCodePoint', 'toAbsoluteIndex', '$export', 'exports', 'module', 'fromCharCode'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index')))
|
|
var.put('fromCharCode', var.get('String').get('fromCharCode'))
|
|
var.put('$fromCodePoint', var.get('String').get('fromCodePoint'))
|
|
@Js
|
|
def PyJs_fromCodePoint_775_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'fromCodePoint':PyJs_fromCodePoint_775_}, var)
|
|
var.registers(['code', 'x', 'i', 'aLen', 'res'])
|
|
var.put('res', Js([]))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('i', Js(0.0))
|
|
pass
|
|
while (var.get('aLen')>var.get('i')):
|
|
var.put('code', (+var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))))
|
|
if PyJsStrictNeq(var.get('toAbsoluteIndex')(var.get('code'), Js(1114111)),var.get('code')):
|
|
PyJsTempException = JsToPyException(var.get('RangeError')((var.get('code')+Js(' is not a valid code point'))))
|
|
raise PyJsTempException
|
|
var.get('res').callprop('push', (var.get('fromCharCode')(var.get('code')) if (var.get('code')<Js(65536)) else var.get('fromCharCode')(((var.put('code', Js(65536), '-')>>Js(10.0))+Js(55296)), ((var.get('code')%Js(1024))+Js(56320)))))
|
|
return var.get('res').callprop('join', Js(''))
|
|
PyJs_fromCodePoint_775_._set_name('fromCodePoint')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('$fromCodePoint').neg().neg() and (var.get('$fromCodePoint').get('length')!=Js(1.0))))), Js('String'), Js({'fromCodePoint':PyJs_fromCodePoint_775_}))
|
|
PyJs_anonymous_774_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_776_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'INCLUDES', 'context'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('context', var.get('require')(Js('./_string-context')))
|
|
var.put('INCLUDES', Js('includes'))
|
|
@Js
|
|
def PyJs_includes_777_(searchString, this, arguments, var=var):
|
|
var = Scope({'searchString':searchString, 'this':this, 'arguments':arguments, 'includes':PyJs_includes_777_}, var)
|
|
var.registers(['searchString'])
|
|
return (~var.get('context')(var.get(u"this"), var.get('searchString'), var.get('INCLUDES')).callprop('indexOf', var.get('searchString'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))).neg().neg()
|
|
PyJs_includes_777_._set_name('includes')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails-is-regexp'))(var.get('INCLUDES')))), Js('String'), Js({'includes':PyJs_includes_777_}))
|
|
PyJs_anonymous_776_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_778_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_779_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_italics_780_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'italics':PyJs_italics_780_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('i'), Js(''), Js(''))
|
|
PyJs_italics_780_._set_name('italics')
|
|
return PyJs_italics_780_
|
|
PyJs_anonymous_779_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('italics'), PyJs_anonymous_779_)
|
|
PyJs_anonymous_778_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_781_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$at', 'require', 'module', 'exports'])
|
|
Js('use strict')
|
|
var.put('$at', var.get('require')(Js('./_string-at'))(Js(True)))
|
|
@Js
|
|
def PyJs_anonymous_782_(iterated, this, arguments, var=var):
|
|
var = Scope({'iterated':iterated, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iterated'])
|
|
var.get(u"this").put('_t', var.get('String')(var.get('iterated')))
|
|
var.get(u"this").put('_i', Js(0.0))
|
|
PyJs_anonymous_782_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_783_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['index', 'O', 'point'])
|
|
var.put('O', var.get(u"this").get('_t'))
|
|
var.put('index', var.get(u"this").get('_i'))
|
|
pass
|
|
if (var.get('index')>=var.get('O').get('length')):
|
|
return Js({'value':var.get('undefined'),'done':Js(True)})
|
|
var.put('point', var.get('$at')(var.get('O'), var.get('index')))
|
|
var.get(u"this").put('_i', var.get('point').get('length'), '+')
|
|
return Js({'value':var.get('point'),'done':Js(False)})
|
|
PyJs_anonymous_783_._set_name('anonymous')
|
|
var.get('require')(Js('./_iter-define'))(var.get('String'), Js('String'), PyJs_anonymous_782_, PyJs_anonymous_783_)
|
|
PyJs_anonymous_781_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_784_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_785_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_link_786_(url, this, arguments, var=var):
|
|
var = Scope({'url':url, 'this':this, 'arguments':arguments, 'link':PyJs_link_786_}, var)
|
|
var.registers(['url'])
|
|
return var.get('createHTML')(var.get(u"this"), Js('a'), Js('href'), var.get('url'))
|
|
PyJs_link_786_._set_name('link')
|
|
return PyJs_link_786_
|
|
PyJs_anonymous_785_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('link'), PyJs_anonymous_785_)
|
|
PyJs_anonymous_784_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_787_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'toIObject', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
@Js
|
|
def PyJs_raw_788_(callSite, this, arguments, var=var):
|
|
var = Scope({'callSite':callSite, 'this':this, 'arguments':arguments, 'raw':PyJs_raw_788_}, var)
|
|
var.registers(['i', 'callSite', 'aLen', 'tpl', 'len', 'res'])
|
|
var.put('tpl', var.get('toIObject')(var.get('callSite').get('raw')))
|
|
var.put('len', var.get('toLength')(var.get('tpl').get('length')))
|
|
var.put('aLen', var.get('arguments').get('length'))
|
|
var.put('res', Js([]))
|
|
var.put('i', Js(0.0))
|
|
while (var.get('len')>var.get('i')):
|
|
var.get('res').callprop('push', var.get('String')(var.get('tpl').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))))
|
|
if (var.get('i')<var.get('aLen')):
|
|
var.get('res').callprop('push', var.get('String')(var.get('arguments').get(var.get('i'))))
|
|
return var.get('res').callprop('join', Js(''))
|
|
PyJs_raw_788_._set_name('raw')
|
|
var.get('$export')(var.get('$export').get('S'), Js('String'), Js({'raw':PyJs_raw_788_}))
|
|
PyJs_anonymous_787_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_789_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('P'), Js('String'), Js({'repeat':var.get('require')(Js('./_string-repeat'))}))
|
|
PyJs_anonymous_789_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_790_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_791_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_small_792_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'small':PyJs_small_792_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('small'), Js(''), Js(''))
|
|
PyJs_small_792_._set_name('small')
|
|
return PyJs_small_792_
|
|
PyJs_anonymous_791_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('small'), PyJs_anonymous_791_)
|
|
PyJs_anonymous_790_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_793_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'STARTS_WITH', '$export', 'exports', 'module', '$startsWith', 'context'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('context', var.get('require')(Js('./_string-context')))
|
|
var.put('STARTS_WITH', Js('startsWith'))
|
|
var.put('$startsWith', Js('').get(var.get('STARTS_WITH')))
|
|
@Js
|
|
def PyJs_startsWith_794_(searchString, this, arguments, var=var):
|
|
var = Scope({'searchString':searchString, 'this':this, 'arguments':arguments, 'startsWith':PyJs_startsWith_794_}, var)
|
|
var.registers(['index', 'searchString', 'search', 'that'])
|
|
var.put('that', var.get('context')(var.get(u"this"), var.get('searchString'), var.get('STARTS_WITH')))
|
|
var.put('index', var.get('toLength')(var.get('Math').callprop('min', (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')), var.get('that').get('length'))))
|
|
var.put('search', var.get('String')(var.get('searchString')))
|
|
return (var.get('$startsWith').callprop('call', var.get('that'), var.get('search'), var.get('index')) if var.get('$startsWith') else PyJsStrictEq(var.get('that').callprop('slice', var.get('index'), (var.get('index')+var.get('search').get('length'))),var.get('search')))
|
|
PyJs_startsWith_794_._set_name('startsWith')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('require')(Js('./_fails-is-regexp'))(var.get('STARTS_WITH')))), Js('String'), Js({'startsWith':PyJs_startsWith_794_}))
|
|
PyJs_anonymous_793_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_795_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_796_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_strike_797_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'strike':PyJs_strike_797_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('strike'), Js(''), Js(''))
|
|
PyJs_strike_797_._set_name('strike')
|
|
return PyJs_strike_797_
|
|
PyJs_anonymous_796_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('strike'), PyJs_anonymous_796_)
|
|
PyJs_anonymous_795_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_798_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_799_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_sub_800_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'sub':PyJs_sub_800_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('sub'), Js(''), Js(''))
|
|
PyJs_sub_800_._set_name('sub')
|
|
return PyJs_sub_800_
|
|
PyJs_anonymous_799_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('sub'), PyJs_anonymous_799_)
|
|
PyJs_anonymous_798_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_801_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_802_(createHTML, this, arguments, var=var):
|
|
var = Scope({'createHTML':createHTML, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['createHTML'])
|
|
@Js
|
|
def PyJs_sup_803_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'sup':PyJs_sup_803_}, var)
|
|
var.registers([])
|
|
return var.get('createHTML')(var.get(u"this"), Js('sup'), Js(''), Js(''))
|
|
PyJs_sup_803_._set_name('sup')
|
|
return PyJs_sup_803_
|
|
PyJs_anonymous_802_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-html'))(Js('sup'), PyJs_anonymous_802_)
|
|
PyJs_anonymous_801_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_804_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_805_(PyJsArg_247472696d_, this, arguments, var=var):
|
|
var = Scope({'$trim':PyJsArg_247472696d_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$trim'])
|
|
@Js
|
|
def PyJs_trim_806_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'trim':PyJs_trim_806_}, var)
|
|
var.registers([])
|
|
return var.get('$trim')(var.get(u"this"), Js(3.0))
|
|
PyJs_trim_806_._set_name('trim')
|
|
return PyJs_trim_806_
|
|
PyJs_anonymous_805_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-trim'))(Js('trim'), PyJs_anonymous_805_)
|
|
PyJs_anonymous_804_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_807_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['_stringify', '$defineProperties', '$Symbol', 'es6Symbols', 'META', 'DESCRIPTORS', '$defineProperty', '$getOwnPropertyDescriptor', 'SymbolRegistry', 'wrap', '$create', 'FAILS_ON_PRIMITIVES', 'wksExt', 'isEnum', 'isSymbol', 'dP', '$getOwnPropertyNames', '$fails', 'setToStringTag', 'wks', 'wellKnownSymbols', '$JSON', 'gOPN', '$GOPS', 'OPSymbols', 'uid', 'k', 'QObject', '_create', 'wksDefine', 'USE_NATIVE', 'require', 'HIDDEN', 'toPrimitive', 'toIObject', 'redefine', 'toObject', 'module', 'ObjectProto', 'setter', 'global', 'createDesc', 'gOPNExt', '$DP', 'PROTOTYPE', 'has', '$propertyIsEnumerable', 'AllSymbols', '$keys', 'setSymbolDesc', '$getOwnPropertySymbols', 'gOPD', '$export', 'enumKeys', 'shared', 'isArray', 'TO_PRIMITIVE', 'j', 'exports', 'isObject', '$GOPD', 'anObject'])
|
|
Js('use strict')
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('has', var.get('require')(Js('./_has')))
|
|
var.put('DESCRIPTORS', var.get('require')(Js('./_descriptors')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
var.put('META', var.get('require')(Js('./_meta')).get('KEY'))
|
|
var.put('$fails', var.get('require')(Js('./_fails')))
|
|
var.put('shared', var.get('require')(Js('./_shared')))
|
|
var.put('setToStringTag', var.get('require')(Js('./_set-to-string-tag')))
|
|
var.put('uid', var.get('require')(Js('./_uid')))
|
|
var.put('wks', var.get('require')(Js('./_wks')))
|
|
var.put('wksExt', var.get('require')(Js('./_wks-ext')))
|
|
var.put('wksDefine', var.get('require')(Js('./_wks-define')))
|
|
var.put('enumKeys', var.get('require')(Js('./_enum-keys')))
|
|
var.put('isArray', var.get('require')(Js('./_is-array')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('createDesc', var.get('require')(Js('./_property-desc')))
|
|
var.put('_create', var.get('require')(Js('./_object-create')))
|
|
var.put('gOPNExt', var.get('require')(Js('./_object-gopn-ext')))
|
|
var.put('$GOPD', var.get('require')(Js('./_object-gopd')))
|
|
var.put('$GOPS', var.get('require')(Js('./_object-gops')))
|
|
var.put('$DP', var.get('require')(Js('./_object-dp')))
|
|
var.put('$keys', var.get('require')(Js('./_object-keys')))
|
|
var.put('gOPD', var.get('$GOPD').get('f'))
|
|
var.put('dP', var.get('$DP').get('f'))
|
|
var.put('gOPN', var.get('gOPNExt').get('f'))
|
|
var.put('$Symbol', var.get('global').get('Symbol'))
|
|
var.put('$JSON', var.get('global').get('JSON'))
|
|
var.put('_stringify', (var.get('$JSON') and var.get('$JSON').get('stringify')))
|
|
var.put('PROTOTYPE', Js('prototype'))
|
|
var.put('HIDDEN', var.get('wks')(Js('_hidden')))
|
|
var.put('TO_PRIMITIVE', var.get('wks')(Js('toPrimitive')))
|
|
var.put('isEnum', Js({}).get('propertyIsEnumerable'))
|
|
var.put('SymbolRegistry', var.get('shared')(Js('symbol-registry')))
|
|
var.put('AllSymbols', var.get('shared')(Js('symbols')))
|
|
var.put('OPSymbols', var.get('shared')(Js('op-symbols')))
|
|
var.put('ObjectProto', var.get('Object').get(var.get('PROTOTYPE')))
|
|
var.put('USE_NATIVE', ((var.get('$Symbol',throw=False).typeof()==Js('function')) and var.get('$GOPS').get('f').neg().neg()))
|
|
var.put('QObject', var.get('global').get('QObject'))
|
|
var.put('setter', ((var.get('QObject').neg() or var.get('QObject').get(var.get('PROTOTYPE')).neg()) or var.get('QObject').get(var.get('PROTOTYPE')).get('findChild').neg()))
|
|
@Js
|
|
def PyJs_anonymous_808_(it, key, D, this, arguments, var=var):
|
|
var = Scope({'it':it, 'key':key, 'D':D, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['protoDesc', 'D', 'it', 'key'])
|
|
var.put('protoDesc', var.get('gOPD')(var.get('ObjectProto'), var.get('key')))
|
|
if var.get('protoDesc'):
|
|
var.get('ObjectProto').delete(var.get('key'))
|
|
var.get('dP')(var.get('it'), var.get('key'), var.get('D'))
|
|
if (var.get('protoDesc') and PyJsStrictNeq(var.get('it'),var.get('ObjectProto'))):
|
|
var.get('dP')(var.get('ObjectProto'), var.get('key'), var.get('protoDesc'))
|
|
PyJs_anonymous_808_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_809_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_get_810_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'get':PyJs_get_810_}, var)
|
|
var.registers([])
|
|
return var.get('dP')(var.get(u"this"), Js('a'), Js({'value':Js(7.0)})).get('a')
|
|
PyJs_get_810_._set_name('get')
|
|
return (var.get('_create')(var.get('dP')(Js({}), Js('a'), Js({'get':PyJs_get_810_}))).get('a')!=Js(7.0))
|
|
PyJs_anonymous_809_._set_name('anonymous')
|
|
var.put('setSymbolDesc', (PyJs_anonymous_808_ if (var.get('DESCRIPTORS') and var.get('$fails')(PyJs_anonymous_809_)) else var.get('dP')))
|
|
@Js
|
|
def PyJs_wrap_811_(tag, this, arguments, var=var):
|
|
var = Scope({'tag':tag, 'this':this, 'arguments':arguments, 'wrap':PyJs_wrap_811_}, var)
|
|
var.registers(['tag', 'sym'])
|
|
var.put('sym', var.get('AllSymbols').put(var.get('tag'), var.get('_create')(var.get('$Symbol').get(var.get('PROTOTYPE')))))
|
|
var.get('sym').put('_k', var.get('tag'))
|
|
return var.get('sym')
|
|
PyJs_wrap_811_._set_name('wrap')
|
|
var.put('wrap', PyJs_wrap_811_)
|
|
@Js
|
|
def PyJs_anonymous_812_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return ((Js('undefined') if PyJsStrictEq(var.get('it',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('it')))==Js('symbol'))
|
|
PyJs_anonymous_812_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_813_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
return var.get('it').instanceof(var.get('$Symbol'))
|
|
PyJs_anonymous_813_._set_name('anonymous')
|
|
var.put('isSymbol', (PyJs_anonymous_812_ if (var.get('USE_NATIVE') and (var.get('_typeof')(var.get('$Symbol').get('iterator'))==Js('symbol'))) else PyJs_anonymous_813_))
|
|
@Js
|
|
def PyJs_defineProperty_814_(it, key, D, this, arguments, var=var):
|
|
var = Scope({'it':it, 'key':key, 'D':D, 'this':this, 'arguments':arguments, 'defineProperty':PyJs_defineProperty_814_}, var)
|
|
var.registers(['it', 'D', 'key'])
|
|
if PyJsStrictEq(var.get('it'),var.get('ObjectProto')):
|
|
var.get('$defineProperty')(var.get('OPSymbols'), var.get('key'), var.get('D'))
|
|
var.get('anObject')(var.get('it'))
|
|
var.put('key', var.get('toPrimitive')(var.get('key'), Js(True)))
|
|
var.get('anObject')(var.get('D'))
|
|
if var.get('has')(var.get('AllSymbols'), var.get('key')):
|
|
if var.get('D').get('enumerable').neg():
|
|
if var.get('has')(var.get('it'), var.get('HIDDEN')).neg():
|
|
var.get('dP')(var.get('it'), var.get('HIDDEN'), var.get('createDesc')(Js(1.0), Js({})))
|
|
var.get('it').get(var.get('HIDDEN')).put(var.get('key'), Js(True))
|
|
else:
|
|
if (var.get('has')(var.get('it'), var.get('HIDDEN')) and var.get('it').get(var.get('HIDDEN')).get(var.get('key'))):
|
|
var.get('it').get(var.get('HIDDEN')).put(var.get('key'), Js(False))
|
|
var.put('D', var.get('_create')(var.get('D'), Js({'enumerable':var.get('createDesc')(Js(0.0), Js(False))})))
|
|
return var.get('setSymbolDesc')(var.get('it'), var.get('key'), var.get('D'))
|
|
return var.get('dP')(var.get('it'), var.get('key'), var.get('D'))
|
|
PyJs_defineProperty_814_._set_name('defineProperty')
|
|
var.put('$defineProperty', PyJs_defineProperty_814_)
|
|
@Js
|
|
def PyJs_defineProperties_815_(it, P, this, arguments, var=var):
|
|
var = Scope({'it':it, 'P':P, 'this':this, 'arguments':arguments, 'defineProperties':PyJs_defineProperties_815_}, var)
|
|
var.registers(['it', 'i', 'l', 'P', 'key', 'keys'])
|
|
var.get('anObject')(var.get('it'))
|
|
var.put('keys', var.get('enumKeys')(var.put('P', var.get('toIObject')(var.get('P')))))
|
|
var.put('i', Js(0.0))
|
|
var.put('l', var.get('keys').get('length'))
|
|
pass
|
|
while (var.get('l')>var.get('i')):
|
|
var.get('$defineProperty')(var.get('it'), var.put('key', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1)))), var.get('P').get(var.get('key')))
|
|
return var.get('it')
|
|
PyJs_defineProperties_815_._set_name('defineProperties')
|
|
var.put('$defineProperties', PyJs_defineProperties_815_)
|
|
@Js
|
|
def PyJs_create_816_(it, P, this, arguments, var=var):
|
|
var = Scope({'it':it, 'P':P, 'this':this, 'arguments':arguments, 'create':PyJs_create_816_}, var)
|
|
var.registers(['it', 'P'])
|
|
return (var.get('_create')(var.get('it')) if PyJsStrictEq(var.get('P'),var.get('undefined')) else var.get('$defineProperties')(var.get('_create')(var.get('it')), var.get('P')))
|
|
PyJs_create_816_._set_name('create')
|
|
var.put('$create', PyJs_create_816_)
|
|
@Js
|
|
def PyJs_propertyIsEnumerable_817_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'propertyIsEnumerable':PyJs_propertyIsEnumerable_817_}, var)
|
|
var.registers(['key', 'E'])
|
|
var.put('E', var.get('isEnum').callprop('call', var.get(u"this"), var.put('key', var.get('toPrimitive')(var.get('key'), Js(True)))))
|
|
if ((PyJsStrictEq(var.get(u"this"),var.get('ObjectProto')) and var.get('has')(var.get('AllSymbols'), var.get('key'))) and var.get('has')(var.get('OPSymbols'), var.get('key')).neg()):
|
|
return Js(False)
|
|
return (var.get('E') if (((var.get('E') or var.get('has')(var.get(u"this"), var.get('key')).neg()) or var.get('has')(var.get('AllSymbols'), var.get('key')).neg()) or (var.get('has')(var.get(u"this"), var.get('HIDDEN')) and var.get(u"this").get(var.get('HIDDEN')).get(var.get('key')))) else Js(True))
|
|
PyJs_propertyIsEnumerable_817_._set_name('propertyIsEnumerable')
|
|
var.put('$propertyIsEnumerable', PyJs_propertyIsEnumerable_817_)
|
|
@Js
|
|
def PyJs_getOwnPropertyDescriptor_818_(it, key, this, arguments, var=var):
|
|
var = Scope({'it':it, 'key':key, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptor':PyJs_getOwnPropertyDescriptor_818_}, var)
|
|
var.registers(['it', 'D', 'key'])
|
|
var.put('it', var.get('toIObject')(var.get('it')))
|
|
var.put('key', var.get('toPrimitive')(var.get('key'), Js(True)))
|
|
if ((PyJsStrictEq(var.get('it'),var.get('ObjectProto')) and var.get('has')(var.get('AllSymbols'), var.get('key'))) and var.get('has')(var.get('OPSymbols'), var.get('key')).neg()):
|
|
return var.get('undefined')
|
|
var.put('D', var.get('gOPD')(var.get('it'), var.get('key')))
|
|
if ((var.get('D') and var.get('has')(var.get('AllSymbols'), var.get('key'))) and (var.get('has')(var.get('it'), var.get('HIDDEN')) and var.get('it').get(var.get('HIDDEN')).get(var.get('key'))).neg()):
|
|
var.get('D').put('enumerable', Js(True))
|
|
return var.get('D')
|
|
PyJs_getOwnPropertyDescriptor_818_._set_name('getOwnPropertyDescriptor')
|
|
var.put('$getOwnPropertyDescriptor', PyJs_getOwnPropertyDescriptor_818_)
|
|
@Js
|
|
def PyJs_getOwnPropertyNames_819_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertyNames':PyJs_getOwnPropertyNames_819_}, var)
|
|
var.registers(['it', 'i', 'result', 'key', 'names'])
|
|
var.put('names', var.get('gOPN')(var.get('toIObject')(var.get('it'))))
|
|
var.put('result', Js([]))
|
|
var.put('i', Js(0.0))
|
|
pass
|
|
while (var.get('names').get('length')>var.get('i')):
|
|
if ((var.get('has')(var.get('AllSymbols'), var.put('key', var.get('names').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))).neg() and (var.get('key')!=var.get('HIDDEN'))) and (var.get('key')!=var.get('META'))):
|
|
var.get('result').callprop('push', var.get('key'))
|
|
return var.get('result')
|
|
PyJs_getOwnPropertyNames_819_._set_name('getOwnPropertyNames')
|
|
var.put('$getOwnPropertyNames', PyJs_getOwnPropertyNames_819_)
|
|
@Js
|
|
def PyJs_getOwnPropertySymbols_820_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertySymbols':PyJs_getOwnPropertySymbols_820_}, var)
|
|
var.registers(['it', 'i', 'IS_OP', 'result', 'key', 'names'])
|
|
var.put('IS_OP', PyJsStrictEq(var.get('it'),var.get('ObjectProto')))
|
|
var.put('names', var.get('gOPN')((var.get('OPSymbols') if var.get('IS_OP') else var.get('toIObject')(var.get('it')))))
|
|
var.put('result', Js([]))
|
|
var.put('i', Js(0.0))
|
|
pass
|
|
while (var.get('names').get('length')>var.get('i')):
|
|
if (var.get('has')(var.get('AllSymbols'), var.put('key', var.get('names').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))) and (var.get('has')(var.get('ObjectProto'), var.get('key')) if var.get('IS_OP') else Js(True))):
|
|
var.get('result').callprop('push', var.get('AllSymbols').get(var.get('key')))
|
|
return var.get('result')
|
|
PyJs_getOwnPropertySymbols_820_._set_name('getOwnPropertySymbols')
|
|
var.put('$getOwnPropertySymbols', PyJs_getOwnPropertySymbols_820_)
|
|
if var.get('USE_NATIVE').neg():
|
|
@Js
|
|
def PyJs__Symbol2_821_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_Symbol2':PyJs__Symbol2_821_}, var)
|
|
var.registers(['tag', '$set'])
|
|
if var.get(u"this").instanceof(var.get('$Symbol')):
|
|
PyJsTempException = JsToPyException(var.get('TypeError')(Js('Symbol is not a constructor!')))
|
|
raise PyJsTempException
|
|
var.put('tag', var.get('uid')((var.get('arguments').get('0') if (var.get('arguments').get('length')>Js(0.0)) else var.get('undefined'))))
|
|
@Js
|
|
def PyJs_InlineNonPyName_822_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, '$set':PyJs_InlineNonPyName_822_}, var)
|
|
var.registers(['value'])
|
|
if PyJsStrictEq(var.get(u"this"),var.get('ObjectProto')):
|
|
var.get('$set').callprop('call', var.get('OPSymbols'), var.get('value'))
|
|
if (var.get('has')(var.get(u"this"), var.get('HIDDEN')) and var.get('has')(var.get(u"this").get(var.get('HIDDEN')), var.get('tag'))):
|
|
var.get(u"this").get(var.get('HIDDEN')).put(var.get('tag'), Js(False))
|
|
var.get('setSymbolDesc')(var.get(u"this"), var.get('tag'), var.get('createDesc')(Js(1.0), var.get('value')))
|
|
PyJs_InlineNonPyName_822_._set_name('$set')
|
|
var.put('$set', PyJs_InlineNonPyName_822_)
|
|
if (var.get('DESCRIPTORS') and var.get('setter')):
|
|
var.get('setSymbolDesc')(var.get('ObjectProto'), var.get('tag'), Js({'configurable':Js(True),'set':var.get('$set')}))
|
|
return var.get('wrap')(var.get('tag'))
|
|
PyJs__Symbol2_821_._set_name('_Symbol2')
|
|
var.put('$Symbol', PyJs__Symbol2_821_)
|
|
@Js
|
|
def PyJs_toString_823_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toString':PyJs_toString_823_}, var)
|
|
var.registers([])
|
|
return var.get(u"this").get('_k')
|
|
PyJs_toString_823_._set_name('toString')
|
|
var.get('redefine')(var.get('$Symbol').get(var.get('PROTOTYPE')), Js('toString'), PyJs_toString_823_)
|
|
var.get('$GOPD').put('f', var.get('$getOwnPropertyDescriptor'))
|
|
var.get('$DP').put('f', var.get('$defineProperty'))
|
|
var.get('require')(Js('./_object-gopn')).put('f', var.get('gOPNExt').put('f', var.get('$getOwnPropertyNames')))
|
|
var.get('require')(Js('./_object-pie')).put('f', var.get('$propertyIsEnumerable'))
|
|
var.get('$GOPS').put('f', var.get('$getOwnPropertySymbols'))
|
|
if (var.get('DESCRIPTORS') and var.get('require')(Js('./_library')).neg()):
|
|
var.get('redefine')(var.get('ObjectProto'), Js('propertyIsEnumerable'), var.get('$propertyIsEnumerable'), Js(True))
|
|
@Js
|
|
def PyJs_anonymous_824_(name, this, arguments, var=var):
|
|
var = Scope({'name':name, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['name'])
|
|
return var.get('wrap')(var.get('wks')(var.get('name')))
|
|
PyJs_anonymous_824_._set_name('anonymous')
|
|
var.get('wksExt').put('f', PyJs_anonymous_824_)
|
|
var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js({'Symbol':var.get('$Symbol')}))
|
|
#for JS loop
|
|
var.put('es6Symbols', Js('hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables').callprop('split', Js(',')))
|
|
var.put('j', Js(0.0))
|
|
while (var.get('es6Symbols').get('length')>var.get('j')):
|
|
var.get('wks')(var.get('es6Symbols').get((var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))))
|
|
|
|
#for JS loop
|
|
var.put('wellKnownSymbols', var.get('$keys')(var.get('wks').get('store')))
|
|
var.put('k', Js(0.0))
|
|
while (var.get('wellKnownSymbols').get('length')>var.get('k')):
|
|
var.get('wksDefine')(var.get('wellKnownSymbols').get((var.put('k',Js(var.get('k').to_number())+Js(1))-Js(1))))
|
|
|
|
@Js
|
|
def PyJs__for_825_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, '_for':PyJs__for_825_}, var)
|
|
var.registers(['key'])
|
|
return (var.get('SymbolRegistry').get(var.get('key')) if var.get('has')(var.get('SymbolRegistry'), var.put('key', Js(''), '+')) else var.get('SymbolRegistry').put(var.get('key'), var.get('$Symbol')(var.get('key'))))
|
|
PyJs__for_825_._set_name('_for')
|
|
@Js
|
|
def PyJs_keyFor_826_(sym, this, arguments, var=var):
|
|
var = Scope({'sym':sym, 'this':this, 'arguments':arguments, 'keyFor':PyJs_keyFor_826_}, var)
|
|
var.registers(['sym', 'key'])
|
|
if var.get('isSymbol')(var.get('sym')).neg():
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('sym')+Js(' is not a symbol!'))))
|
|
raise PyJsTempException
|
|
for PyJsTemp in var.get('SymbolRegistry'):
|
|
var.put('key', PyJsTemp)
|
|
if PyJsStrictEq(var.get('SymbolRegistry').get(var.get('key')),var.get('sym')):
|
|
return var.get('key')
|
|
PyJs_keyFor_826_._set_name('keyFor')
|
|
@Js
|
|
def PyJs_useSetter_827_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'useSetter':PyJs_useSetter_827_}, var)
|
|
var.registers([])
|
|
var.put('setter', Js(True))
|
|
PyJs_useSetter_827_._set_name('useSetter')
|
|
@Js
|
|
def PyJs_useSimple_828_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'useSimple':PyJs_useSimple_828_}, var)
|
|
var.registers([])
|
|
var.put('setter', Js(False))
|
|
PyJs_useSimple_828_._set_name('useSimple')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js('Symbol'), Js({'for':PyJs__for_825_,'keyFor':PyJs_keyFor_826_,'useSetter':PyJs_useSetter_827_,'useSimple':PyJs_useSimple_828_}))
|
|
def PyJs_LONG_829_(var=var):
|
|
return var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('USE_NATIVE').neg())), Js('Object'), Js({'create':var.get('$create'),'defineProperty':var.get('$defineProperty'),'defineProperties':var.get('$defineProperties'),'getOwnPropertyDescriptor':var.get('$getOwnPropertyDescriptor'),'getOwnPropertyNames':var.get('$getOwnPropertyNames'),'getOwnPropertySymbols':var.get('$getOwnPropertySymbols')}))
|
|
PyJs_LONG_829_()
|
|
@Js
|
|
def PyJs_anonymous_830_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('$GOPS').callprop('f', Js(1.0))
|
|
PyJs_anonymous_830_._set_name('anonymous')
|
|
var.put('FAILS_ON_PRIMITIVES', var.get('$fails')(PyJs_anonymous_830_))
|
|
@Js
|
|
def PyJs_getOwnPropertySymbols_831_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'getOwnPropertySymbols':PyJs_getOwnPropertySymbols_831_}, var)
|
|
var.registers(['it'])
|
|
return var.get('$GOPS').callprop('f', var.get('toObject')(var.get('it')))
|
|
PyJs_getOwnPropertySymbols_831_._set_name('getOwnPropertySymbols')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('FAILS_ON_PRIMITIVES'))), Js('Object'), Js({'getOwnPropertySymbols':PyJs_getOwnPropertySymbols_831_}))
|
|
@Js
|
|
def PyJs_anonymous_832_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['S'])
|
|
var.put('S', var.get('$Symbol')())
|
|
return (((var.get('_stringify')(Js([var.get('S')]))!=Js('[null]')) or (var.get('_stringify')(Js({'a':var.get('S')}))!=Js('{}'))) or (var.get('_stringify')(var.get('Object')(var.get('S')))!=Js('{}')))
|
|
PyJs_anonymous_832_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_stringify_833_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_833_}, var)
|
|
var.registers(['it', 'replacer', '$replacer', 'i', 'args'])
|
|
var.put('args', Js([var.get('it')]))
|
|
var.put('i', Js(1.0))
|
|
pass
|
|
while (var.get('arguments').get('length')>var.get('i')):
|
|
var.get('args').callprop('push', var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))
|
|
var.put('$replacer', var.put('replacer', var.get('args').get('1')))
|
|
if ((var.get('isObject')(var.get('replacer')).neg() and PyJsStrictEq(var.get('it'),var.get('undefined'))) or var.get('isSymbol')(var.get('it'))):
|
|
return var.get('undefined')
|
|
if var.get('isArray')(var.get('replacer')).neg():
|
|
@Js
|
|
def PyJs_replacer_834_(key, value, this, arguments, var=var):
|
|
var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'replacer':PyJs_replacer_834_}, var)
|
|
var.registers(['value', 'key'])
|
|
if (var.get('$replacer',throw=False).typeof()==Js('function')):
|
|
var.put('value', var.get('$replacer').callprop('call', var.get(u"this"), var.get('key'), var.get('value')))
|
|
if var.get('isSymbol')(var.get('value')).neg():
|
|
return var.get('value')
|
|
PyJs_replacer_834_._set_name('replacer')
|
|
var.put('replacer', PyJs_replacer_834_)
|
|
var.get('args').put('1', var.get('replacer'))
|
|
return var.get('_stringify').callprop('apply', var.get('$JSON'), var.get('args'))
|
|
PyJs_stringify_833_._set_name('stringify')
|
|
(var.get('$JSON') and var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*(var.get('USE_NATIVE').neg() or var.get('$fails')(PyJs_anonymous_832_)))), Js('JSON'), Js({'stringify':PyJs_stringify_833_})))
|
|
(var.get('$Symbol').get(var.get('PROTOTYPE')).get(var.get('TO_PRIMITIVE')) or var.get('require')(Js('./_hide'))(var.get('$Symbol').get(var.get('PROTOTYPE')), var.get('TO_PRIMITIVE'), var.get('$Symbol').get(var.get('PROTOTYPE')).get('valueOf')))
|
|
var.get('setToStringTag')(var.get('$Symbol'), Js('Symbol'))
|
|
var.get('setToStringTag')(var.get('Math'), Js('Math'), Js(True))
|
|
var.get('setToStringTag')(var.get('global').get('JSON'), Js('JSON'), Js(True))
|
|
PyJs_anonymous_807_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_835_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'buffer', '$ArrayBuffer', 'toAbsoluteIndex', '$typed', '$export', 'VIEW', 'module', 'speciesConstructor', '$isView', '$DataView', 'ARRAY_BUFFER', 'exports', '$slice', 'ArrayBuffer', 'isObject', 'anObject'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$typed', var.get('require')(Js('./_typed')))
|
|
var.put('buffer', var.get('require')(Js('./_typed-buffer')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toAbsoluteIndex', var.get('require')(Js('./_to-absolute-index')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('ArrayBuffer', var.get('require')(Js('./_global')).get('ArrayBuffer'))
|
|
var.put('speciesConstructor', var.get('require')(Js('./_species-constructor')))
|
|
var.put('$ArrayBuffer', var.get('buffer').get('ArrayBuffer'))
|
|
var.put('$DataView', var.get('buffer').get('DataView'))
|
|
var.put('$isView', (var.get('$typed').get('ABV') and var.get('ArrayBuffer').get('isView')))
|
|
var.put('$slice', var.get('$ArrayBuffer').get('prototype').get('slice'))
|
|
var.put('VIEW', var.get('$typed').get('VIEW'))
|
|
var.put('ARRAY_BUFFER', Js('ArrayBuffer'))
|
|
var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*PyJsStrictNeq(var.get('ArrayBuffer'),var.get('$ArrayBuffer')))), Js({'ArrayBuffer':var.get('$ArrayBuffer')}))
|
|
@Js
|
|
def PyJs_isView_836_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isView':PyJs_isView_836_}, var)
|
|
var.registers(['it'])
|
|
return ((var.get('$isView') and var.get('$isView')(var.get('it'))) or (var.get('isObject')(var.get('it')) and var.get('it').contains(var.get('VIEW'))))
|
|
PyJs_isView_836_._set_name('isView')
|
|
var.get('$export')((var.get('$export').get('S')+(var.get('$export').get('F')*var.get('$typed').get('CONSTR').neg())), var.get('ARRAY_BUFFER'), Js({'isView':PyJs_isView_836_}))
|
|
@Js
|
|
def PyJs_anonymous_837_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('$ArrayBuffer').create(Js(2.0)).callprop('slice', Js(1.0), var.get('undefined')).get('byteLength').neg()
|
|
PyJs_anonymous_837_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_slice_838_(start, end, this, arguments, var=var):
|
|
var = Scope({'start':start, 'end':end, 'this':this, 'arguments':arguments, 'slice':PyJs_slice_838_}, var)
|
|
var.registers(['index', 'end', 'viewS', 'start', 'viewT', 'result', 'fin', 'first', 'len'])
|
|
if (PyJsStrictNeq(var.get('$slice'),var.get('undefined')) and PyJsStrictEq(var.get('end'),var.get('undefined'))):
|
|
return var.get('$slice').callprop('call', var.get('anObject')(var.get(u"this")), var.get('start'))
|
|
var.put('len', var.get('anObject')(var.get(u"this")).get('byteLength'))
|
|
var.put('first', var.get('toAbsoluteIndex')(var.get('start'), var.get('len')))
|
|
var.put('fin', var.get('toAbsoluteIndex')((var.get('len') if PyJsStrictEq(var.get('end'),var.get('undefined')) else var.get('end')), var.get('len')))
|
|
var.put('result', var.get('speciesConstructor')(var.get(u"this"), var.get('$ArrayBuffer')).create(var.get('toLength')((var.get('fin')-var.get('first')))))
|
|
var.put('viewS', var.get('$DataView').create(var.get(u"this")))
|
|
var.put('viewT', var.get('$DataView').create(var.get('result')))
|
|
var.put('index', Js(0.0))
|
|
while (var.get('first')<var.get('fin')):
|
|
var.get('viewT').callprop('setUint8', (var.put('index',Js(var.get('index').to_number())+Js(1))-Js(1)), var.get('viewS').callprop('getUint8', (var.put('first',Js(var.get('first').to_number())+Js(1))-Js(1))))
|
|
return var.get('result')
|
|
PyJs_slice_838_._set_name('slice')
|
|
var.get('$export')(((var.get('$export').get('P')+var.get('$export').get('U'))+(var.get('$export').get('F')*var.get('require')(Js('./_fails'))(PyJs_anonymous_837_))), var.get('ARRAY_BUFFER'), Js({'slice':PyJs_slice_838_}))
|
|
var.get('require')(Js('./_set-species'))(var.get('ARRAY_BUFFER'))
|
|
PyJs_anonymous_835_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_839_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('W'))+(var.get('$export').get('F')*var.get('require')(Js('./_typed')).get('ABV').neg())), Js({'DataView':var.get('require')(Js('./_typed-buffer')).get('DataView')}))
|
|
PyJs_anonymous_839_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_840_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_841_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Float32Array_842_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Float32Array':PyJs_Float32Array_842_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Float32Array_842_._set_name('Float32Array')
|
|
return PyJs_Float32Array_842_
|
|
PyJs_anonymous_841_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Float32'), Js(4.0), PyJs_anonymous_841_)
|
|
PyJs_anonymous_840_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_843_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_844_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Float64Array_845_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Float64Array':PyJs_Float64Array_845_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Float64Array_845_._set_name('Float64Array')
|
|
return PyJs_Float64Array_845_
|
|
PyJs_anonymous_844_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Float64'), Js(8.0), PyJs_anonymous_844_)
|
|
PyJs_anonymous_843_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_846_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_847_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Int16Array_848_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Int16Array':PyJs_Int16Array_848_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Int16Array_848_._set_name('Int16Array')
|
|
return PyJs_Int16Array_848_
|
|
PyJs_anonymous_847_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Int16'), Js(2.0), PyJs_anonymous_847_)
|
|
PyJs_anonymous_846_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_849_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_850_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Int32Array_851_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Int32Array':PyJs_Int32Array_851_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Int32Array_851_._set_name('Int32Array')
|
|
return PyJs_Int32Array_851_
|
|
PyJs_anonymous_850_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Int32'), Js(4.0), PyJs_anonymous_850_)
|
|
PyJs_anonymous_849_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_852_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_853_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Int8Array_854_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Int8Array':PyJs_Int8Array_854_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Int8Array_854_._set_name('Int8Array')
|
|
return PyJs_Int8Array_854_
|
|
PyJs_anonymous_853_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Int8'), Js(1.0), PyJs_anonymous_853_)
|
|
PyJs_anonymous_852_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_855_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_856_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Uint16Array_857_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Uint16Array':PyJs_Uint16Array_857_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Uint16Array_857_._set_name('Uint16Array')
|
|
return PyJs_Uint16Array_857_
|
|
PyJs_anonymous_856_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Uint16'), Js(2.0), PyJs_anonymous_856_)
|
|
PyJs_anonymous_855_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_858_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_859_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Uint32Array_860_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Uint32Array':PyJs_Uint32Array_860_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Uint32Array_860_._set_name('Uint32Array')
|
|
return PyJs_Uint32Array_860_
|
|
PyJs_anonymous_859_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Uint32'), Js(4.0), PyJs_anonymous_859_)
|
|
PyJs_anonymous_858_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_861_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_862_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Uint8Array_863_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Uint8Array':PyJs_Uint8Array_863_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Uint8Array_863_._set_name('Uint8Array')
|
|
return PyJs_Uint8Array_863_
|
|
PyJs_anonymous_862_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Uint8'), Js(1.0), PyJs_anonymous_862_)
|
|
PyJs_anonymous_861_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_864_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_865_(init, this, arguments, var=var):
|
|
var = Scope({'init':init, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['init'])
|
|
@Js
|
|
def PyJs_Uint8ClampedArray_866_(data, byteOffset, length, this, arguments, var=var):
|
|
var = Scope({'data':data, 'byteOffset':byteOffset, 'length':length, 'this':this, 'arguments':arguments, 'Uint8ClampedArray':PyJs_Uint8ClampedArray_866_}, var)
|
|
var.registers(['byteOffset', 'length', 'data'])
|
|
return var.get('init')(var.get(u"this"), var.get('data'), var.get('byteOffset'), var.get('length'))
|
|
PyJs_Uint8ClampedArray_866_._set_name('Uint8ClampedArray')
|
|
return PyJs_Uint8ClampedArray_866_
|
|
PyJs_anonymous_865_._set_name('anonymous')
|
|
var.get('require')(Js('./_typed-array'))(Js('Uint8'), Js(1.0), PyJs_anonymous_865_, Js(True))
|
|
PyJs_anonymous_864_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_867_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['getWeak', 'methods', 'InternalMap', 'NATIVE_WEAK_MAP', 'assign', 'each', 'validate', 'wrapper', 'weak', 'require', '$WeakMap', 'redefine', 'meta', 'isExtensible', 'IS_IE11', 'module', 'global', 'WEAK_MAP', 'uncaughtFrozenStore', 'exports', 'isObject'])
|
|
Js('use strict')
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('each', var.get('require')(Js('./_array-methods'))(Js(0.0)))
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
var.put('meta', var.get('require')(Js('./_meta')))
|
|
var.put('assign', var.get('require')(Js('./_object-assign')))
|
|
var.put('weak', var.get('require')(Js('./_collection-weak')))
|
|
var.put('isObject', var.get('require')(Js('./_is-object')))
|
|
var.put('validate', var.get('require')(Js('./_validate-collection')))
|
|
var.put('NATIVE_WEAK_MAP', var.get('require')(Js('./_validate-collection')))
|
|
var.put('IS_IE11', (var.get('global').get('ActiveXObject').neg() and var.get('global').contains(Js('ActiveXObject'))))
|
|
var.put('WEAK_MAP', Js('WeakMap'))
|
|
var.put('getWeak', var.get('meta').get('getWeak'))
|
|
var.put('isExtensible', var.get('Object').get('isExtensible'))
|
|
var.put('uncaughtFrozenStore', var.get('weak').get('ufstore'))
|
|
pass
|
|
@Js
|
|
def PyJs_wrapper_868_(get, this, arguments, var=var):
|
|
var = Scope({'get':get, 'this':this, 'arguments':arguments, 'wrapper':PyJs_wrapper_868_}, var)
|
|
var.registers(['get'])
|
|
@Js
|
|
def PyJs_WeakMap_869_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'WeakMap':PyJs_WeakMap_869_}, var)
|
|
var.registers([])
|
|
return var.get('get')(var.get(u"this"), (var.get('arguments').get('0') if (var.get('arguments').get('length')>Js(0.0)) else var.get('undefined')))
|
|
PyJs_WeakMap_869_._set_name('WeakMap')
|
|
return PyJs_WeakMap_869_
|
|
PyJs_wrapper_868_._set_name('wrapper')
|
|
var.put('wrapper', PyJs_wrapper_868_)
|
|
@Js
|
|
def PyJs_get_870_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments, 'get':PyJs_get_870_}, var)
|
|
var.registers(['data', 'key'])
|
|
if var.get('isObject')(var.get('key')):
|
|
var.put('data', var.get('getWeak')(var.get('key')))
|
|
if PyJsStrictEq(var.get('data'),Js(True)):
|
|
return var.get('uncaughtFrozenStore')(var.get('validate')(var.get(u"this"), var.get('WEAK_MAP'))).callprop('get', var.get('key'))
|
|
return (var.get('data').get(var.get(u"this").get('_i')) if var.get('data') else var.get('undefined'))
|
|
PyJs_get_870_._set_name('get')
|
|
@Js
|
|
def PyJs_set_871_(key, value, this, arguments, var=var):
|
|
var = Scope({'key':key, 'value':value, 'this':this, 'arguments':arguments, 'set':PyJs_set_871_}, var)
|
|
var.registers(['value', 'key'])
|
|
return var.get('weak').callprop('def', var.get('validate')(var.get(u"this"), var.get('WEAK_MAP')), var.get('key'), var.get('value'))
|
|
PyJs_set_871_._set_name('set')
|
|
var.put('methods', Js({'get':PyJs_get_870_,'set':PyJs_set_871_}))
|
|
var.put('$WeakMap', var.get('module').put('exports', var.get('require')(Js('./_collection'))(var.get('WEAK_MAP'), var.get('wrapper'), var.get('methods'), var.get('weak'), Js(True), Js(True))))
|
|
if (var.get('NATIVE_WEAK_MAP') and var.get('IS_IE11')):
|
|
var.put('InternalMap', var.get('weak').callprop('getConstructor', var.get('wrapper'), var.get('WEAK_MAP')))
|
|
var.get('assign')(var.get('InternalMap').get('prototype'), var.get('methods'))
|
|
var.get('meta').put('NEED', Js(True))
|
|
@Js
|
|
def PyJs_anonymous_872_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['method', 'proto', 'key'])
|
|
var.put('proto', var.get('$WeakMap').get('prototype'))
|
|
var.put('method', var.get('proto').get(var.get('key')))
|
|
@Js
|
|
def PyJs_anonymous_873_(a, b, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['result', 'a', 'b'])
|
|
if (var.get('isObject')(var.get('a')) and var.get('isExtensible')(var.get('a')).neg()):
|
|
if var.get(u"this").get('_f').neg():
|
|
var.get(u"this").put('_f', var.get('InternalMap').create())
|
|
var.put('result', var.get(u"this").get('_f').callprop(var.get('key'), var.get('a'), var.get('b')))
|
|
return (var.get(u"this") if (var.get('key')==Js('set')) else var.get('result'))
|
|
return var.get('method').callprop('call', var.get(u"this"), var.get('a'), var.get('b'))
|
|
PyJs_anonymous_873_._set_name('anonymous')
|
|
var.get('redefine')(var.get('proto'), var.get('key'), PyJs_anonymous_873_)
|
|
PyJs_anonymous_872_._set_name('anonymous')
|
|
var.get('each')(Js([Js('delete'), Js('has'), Js('get'), Js('set')]), PyJs_anonymous_872_)
|
|
PyJs_anonymous_867_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_874_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WEAK_SET', 'require', 'exports', 'module', 'validate', 'weak'])
|
|
Js('use strict')
|
|
var.put('weak', var.get('require')(Js('./_collection-weak')))
|
|
var.put('validate', var.get('require')(Js('./_validate-collection')))
|
|
var.put('WEAK_SET', Js('WeakSet'))
|
|
@Js
|
|
def PyJs_anonymous_875_(get, this, arguments, var=var):
|
|
var = Scope({'get':get, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['get'])
|
|
@Js
|
|
def PyJs_WeakSet_876_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'WeakSet':PyJs_WeakSet_876_}, var)
|
|
var.registers([])
|
|
return var.get('get')(var.get(u"this"), (var.get('arguments').get('0') if (var.get('arguments').get('length')>Js(0.0)) else var.get('undefined')))
|
|
PyJs_WeakSet_876_._set_name('WeakSet')
|
|
return PyJs_WeakSet_876_
|
|
PyJs_anonymous_875_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_add_877_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'add':PyJs_add_877_}, var)
|
|
var.registers(['value'])
|
|
return var.get('weak').callprop('def', var.get('validate')(var.get(u"this"), var.get('WEAK_SET')), var.get('value'), Js(True))
|
|
PyJs_add_877_._set_name('add')
|
|
var.get('require')(Js('./_collection'))(var.get('WEAK_SET'), PyJs_anonymous_875_, Js({'add':PyJs_add_877_}), var.get('weak'), Js(False), Js(True))
|
|
PyJs_anonymous_874_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_878_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'toLength', 'toObject', '$export', 'flattenIntoArray', 'exports', 'module', 'arraySpeciesCreate'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('flattenIntoArray', var.get('require')(Js('./_flatten-into-array')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('arraySpeciesCreate', var.get('require')(Js('./_array-species-create')))
|
|
@Js
|
|
def PyJs_flatMap_879_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, 'flatMap':PyJs_flatMap_879_}, var)
|
|
var.registers(['O', 'callbackfn', 'sourceLen', 'A'])
|
|
var.put('O', var.get('toObject')(var.get(u"this")))
|
|
pass
|
|
var.get('aFunction')(var.get('callbackfn'))
|
|
var.put('sourceLen', var.get('toLength')(var.get('O').get('length')))
|
|
var.put('A', var.get('arraySpeciesCreate')(var.get('O'), Js(0.0)))
|
|
var.get('flattenIntoArray')(var.get('A'), var.get('O'), var.get('O'), var.get('sourceLen'), Js(0.0), Js(1.0), var.get('callbackfn'), var.get('arguments').get('1'))
|
|
return var.get('A')
|
|
PyJs_flatMap_879_._set_name('flatMap')
|
|
var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'flatMap':PyJs_flatMap_879_}))
|
|
var.get('require')(Js('./_add-to-unscopables'))(Js('flatMap'))
|
|
PyJs_anonymous_878_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_880_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toLength', 'toObject', '$export', 'flattenIntoArray', 'exports', 'module', 'arraySpeciesCreate', 'toInteger'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('flattenIntoArray', var.get('require')(Js('./_flatten-into-array')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('toInteger', var.get('require')(Js('./_to-integer')))
|
|
var.put('arraySpeciesCreate', var.get('require')(Js('./_array-species-create')))
|
|
@Js
|
|
def PyJs_flatten_881_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'flatten':PyJs_flatten_881_}, var)
|
|
var.registers(['O', 'sourceLen', 'depthArg', 'A'])
|
|
var.put('depthArg', var.get('arguments').get('0'))
|
|
var.put('O', var.get('toObject')(var.get(u"this")))
|
|
var.put('sourceLen', var.get('toLength')(var.get('O').get('length')))
|
|
var.put('A', var.get('arraySpeciesCreate')(var.get('O'), Js(0.0)))
|
|
var.get('flattenIntoArray')(var.get('A'), var.get('O'), var.get('O'), var.get('sourceLen'), Js(0.0), (Js(1.0) if PyJsStrictEq(var.get('depthArg'),var.get('undefined')) else var.get('toInteger')(var.get('depthArg'))))
|
|
return var.get('A')
|
|
PyJs_flatten_881_._set_name('flatten')
|
|
var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'flatten':PyJs_flatten_881_}))
|
|
var.get('require')(Js('./_add-to-unscopables'))(Js('flatten'))
|
|
PyJs_anonymous_880_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_882_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', '$includes', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$includes', var.get('require')(Js('./_array-includes'))(Js(True)))
|
|
@Js
|
|
def PyJs_includes_883_(el, this, arguments, var=var):
|
|
var = Scope({'el':el, 'this':this, 'arguments':arguments, 'includes':PyJs_includes_883_}, var)
|
|
var.registers(['el'])
|
|
return var.get('$includes')(var.get(u"this"), var.get('el'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')))
|
|
PyJs_includes_883_._set_name('includes')
|
|
var.get('$export')(var.get('$export').get('P'), Js('Array'), Js({'includes':PyJs_includes_883_}))
|
|
var.get('require')(Js('./_add-to-unscopables'))(Js('includes'))
|
|
PyJs_anonymous_882_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_884_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['isNode', 'require', '$export', 'exports', 'module', 'microtask', 'process'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('microtask', var.get('require')(Js('./_microtask'))())
|
|
var.put('process', var.get('require')(Js('./_global')).get('process'))
|
|
var.put('isNode', (var.get('require')(Js('./_cof'))(var.get('process'))==Js('process')))
|
|
@Js
|
|
def PyJs_asap_885_(fn, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'asap':PyJs_asap_885_}, var)
|
|
var.registers(['fn', 'domain'])
|
|
var.put('domain', (var.get('isNode') and var.get('process').get('domain')))
|
|
var.get('microtask')((var.get('domain').callprop('bind', var.get('fn')) if var.get('domain') else var.get('fn')))
|
|
PyJs_asap_885_._set_name('asap')
|
|
var.get('$export')(var.get('$export').get('G'), Js({'asap':PyJs_asap_885_}))
|
|
PyJs_anonymous_884_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_886_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'cof', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('cof', var.get('require')(Js('./_cof')))
|
|
@Js
|
|
def PyJs_isError_887_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'isError':PyJs_isError_887_}, var)
|
|
var.registers(['it'])
|
|
return PyJsStrictEq(var.get('cof')(var.get('it')),Js('Error'))
|
|
PyJs_isError_887_._set_name('isError')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Error'), Js({'isError':PyJs_isError_887_}))
|
|
PyJs_anonymous_886_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_888_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('G'), Js({'global':var.get('require')(Js('./_global'))}))
|
|
PyJs_anonymous_888_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_889_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-from'))(Js('Map'))
|
|
PyJs_anonymous_889_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_890_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-of'))(Js('Map'))
|
|
PyJs_anonymous_890_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_891_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')((var.get('$export').get('P')+var.get('$export').get('R')), Js('Map'), Js({'toJSON':var.get('require')(Js('./_collection-to-json'))(Js('Map'))}))
|
|
PyJs_anonymous_891_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_892_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_clamp_893_(x, lower, upper, this, arguments, var=var):
|
|
var = Scope({'x':x, 'lower':lower, 'upper':upper, 'this':this, 'arguments':arguments, 'clamp':PyJs_clamp_893_}, var)
|
|
var.registers(['upper', 'x', 'lower'])
|
|
return var.get('Math').callprop('min', var.get('upper'), var.get('Math').callprop('max', var.get('lower'), var.get('x')))
|
|
PyJs_clamp_893_._set_name('clamp')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'clamp':PyJs_clamp_893_}))
|
|
PyJs_anonymous_892_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_894_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'DEG_PER_RAD':(var.get('Math').get('PI')/Js(180.0))}))
|
|
PyJs_anonymous_894_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_895_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'RAD_PER_DEG'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('RAD_PER_DEG', (Js(180.0)/var.get('Math').get('PI')))
|
|
@Js
|
|
def PyJs_degrees_896_(radians, this, arguments, var=var):
|
|
var = Scope({'radians':radians, 'this':this, 'arguments':arguments, 'degrees':PyJs_degrees_896_}, var)
|
|
var.registers(['radians'])
|
|
return (var.get('radians')*var.get('RAD_PER_DEG'))
|
|
PyJs_degrees_896_._set_name('degrees')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'degrees':PyJs_degrees_896_}))
|
|
PyJs_anonymous_895_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_897_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'fround', '$export', 'exports', 'module', 'scale'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('scale', var.get('require')(Js('./_math-scale')))
|
|
var.put('fround', var.get('require')(Js('./_math-fround')))
|
|
@Js
|
|
def PyJs_fscale_898_(x, inLow, inHigh, outLow, outHigh, this, arguments, var=var):
|
|
var = Scope({'x':x, 'inLow':inLow, 'inHigh':inHigh, 'outLow':outLow, 'outHigh':outHigh, 'this':this, 'arguments':arguments, 'fscale':PyJs_fscale_898_}, var)
|
|
var.registers(['outLow', 'x', 'inLow', 'inHigh', 'outHigh'])
|
|
return var.get('fround')(var.get('scale')(var.get('x'), var.get('inLow'), var.get('inHigh'), var.get('outLow'), var.get('outHigh')))
|
|
PyJs_fscale_898_._set_name('fscale')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'fscale':PyJs_fscale_898_}))
|
|
PyJs_anonymous_897_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_899_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_iaddh_900_(x0, x1, y0, y1, this, arguments, var=var):
|
|
var = Scope({'x0':x0, 'x1':x1, 'y0':y0, 'y1':y1, 'this':this, 'arguments':arguments, 'iaddh':PyJs_iaddh_900_}, var)
|
|
var.registers(['x0', 'x1', 'y1', '$x0', '$y0', '$x1', 'y0'])
|
|
var.put('$x0', PyJsBshift(var.get('x0'),Js(0.0)))
|
|
var.put('$x1', PyJsBshift(var.get('x1'),Js(0.0)))
|
|
var.put('$y0', PyJsBshift(var.get('y0'),Js(0.0)))
|
|
return (((var.get('$x1')+PyJsBshift(var.get('y1'),Js(0.0)))+PyJsBshift(((var.get('$x0')&var.get('$y0'))|((var.get('$x0')|var.get('$y0'))&(~PyJsBshift((var.get('$x0')+var.get('$y0')),Js(0.0))))),Js(31.0)))|Js(0.0))
|
|
PyJs_iaddh_900_._set_name('iaddh')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'iaddh':PyJs_iaddh_900_}))
|
|
PyJs_anonymous_899_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_901_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_imulh_902_(u, v, this, arguments, var=var):
|
|
var = Scope({'u':u, 'v':v, 'this':this, 'arguments':arguments, 'imulh':PyJs_imulh_902_}, var)
|
|
var.registers(['$v', 'v0', 'u', 't', 'u0', 'UINT16', 'u1', '$u', 'v1', 'v'])
|
|
var.put('UINT16', Js(65535))
|
|
var.put('$u', (+var.get('u')))
|
|
var.put('$v', (+var.get('v')))
|
|
var.put('u0', (var.get('$u')&var.get('UINT16')))
|
|
var.put('v0', (var.get('$v')&var.get('UINT16')))
|
|
var.put('u1', (var.get('$u')>>Js(16.0)))
|
|
var.put('v1', (var.get('$v')>>Js(16.0)))
|
|
var.put('t', (PyJsBshift((var.get('u1')*var.get('v0')),Js(0.0))+PyJsBshift((var.get('u0')*var.get('v0')),Js(16.0))))
|
|
return (((var.get('u1')*var.get('v1'))+(var.get('t')>>Js(16.0)))+((PyJsBshift((var.get('u0')*var.get('v1')),Js(0.0))+(var.get('t')&var.get('UINT16')))>>Js(16.0)))
|
|
PyJs_imulh_902_._set_name('imulh')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'imulh':PyJs_imulh_902_}))
|
|
PyJs_anonymous_901_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_903_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_isubh_904_(x0, x1, y0, y1, this, arguments, var=var):
|
|
var = Scope({'x0':x0, 'x1':x1, 'y0':y0, 'y1':y1, 'this':this, 'arguments':arguments, 'isubh':PyJs_isubh_904_}, var)
|
|
var.registers(['x0', 'x1', 'y1', '$x0', '$y0', '$x1', 'y0'])
|
|
var.put('$x0', PyJsBshift(var.get('x0'),Js(0.0)))
|
|
var.put('$x1', PyJsBshift(var.get('x1'),Js(0.0)))
|
|
var.put('$y0', PyJsBshift(var.get('y0'),Js(0.0)))
|
|
return (((var.get('$x1')-PyJsBshift(var.get('y1'),Js(0.0)))-PyJsBshift((((~var.get('$x0'))&var.get('$y0'))|((~(var.get('$x0')^var.get('$y0')))&PyJsBshift((var.get('$x0')-var.get('$y0')),Js(0.0)))),Js(31.0)))|Js(0.0))
|
|
PyJs_isubh_904_._set_name('isubh')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'isubh':PyJs_isubh_904_}))
|
|
PyJs_anonymous_903_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_905_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'RAD_PER_DEG':(Js(180.0)/var.get('Math').get('PI'))}))
|
|
PyJs_anonymous_905_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_906_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'DEG_PER_RAD'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('DEG_PER_RAD', (var.get('Math').get('PI')/Js(180.0)))
|
|
@Js
|
|
def PyJs_radians_907_(degrees, this, arguments, var=var):
|
|
var = Scope({'degrees':degrees, 'this':this, 'arguments':arguments, 'radians':PyJs_radians_907_}, var)
|
|
var.registers(['degrees'])
|
|
return (var.get('degrees')*var.get('DEG_PER_RAD'))
|
|
PyJs_radians_907_._set_name('radians')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'radians':PyJs_radians_907_}))
|
|
PyJs_anonymous_906_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_908_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'scale':var.get('require')(Js('./_math-scale'))}))
|
|
PyJs_anonymous_908_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_909_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_signbit_910_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'signbit':PyJs_signbit_910_}, var)
|
|
var.registers(['x'])
|
|
return (var.get('x') if (var.put('x', (+var.get('x')))!=var.get('x')) else (((Js(1.0)/var.get('x'))==var.get('Infinity')) if (var.get('x')==Js(0.0)) else (var.get('x')>Js(0.0))))
|
|
PyJs_signbit_910_._set_name('signbit')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'signbit':PyJs_signbit_910_}))
|
|
PyJs_anonymous_909_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_911_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
@Js
|
|
def PyJs_umulh_912_(u, v, this, arguments, var=var):
|
|
var = Scope({'u':u, 'v':v, 'this':this, 'arguments':arguments, 'umulh':PyJs_umulh_912_}, var)
|
|
var.registers(['$v', 'v0', 'u', 't', 'u0', 'UINT16', 'u1', '$u', 'v1', 'v'])
|
|
var.put('UINT16', Js(65535))
|
|
var.put('$u', (+var.get('u')))
|
|
var.put('$v', (+var.get('v')))
|
|
var.put('u0', (var.get('$u')&var.get('UINT16')))
|
|
var.put('v0', (var.get('$v')&var.get('UINT16')))
|
|
var.put('u1', PyJsBshift(var.get('$u'),Js(16.0)))
|
|
var.put('v1', PyJsBshift(var.get('$v'),Js(16.0)))
|
|
var.put('t', (PyJsBshift((var.get('u1')*var.get('v0')),Js(0.0))+PyJsBshift((var.get('u0')*var.get('v0')),Js(16.0))))
|
|
return (((var.get('u1')*var.get('v1'))+PyJsBshift(var.get('t'),Js(16.0)))+PyJsBshift((PyJsBshift((var.get('u0')*var.get('v1')),Js(0.0))+(var.get('t')&var.get('UINT16'))),Js(16.0)))
|
|
PyJs_umulh_912_._set_name('umulh')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Math'), Js({'umulh':PyJs_umulh_912_}))
|
|
PyJs_anonymous_911_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_913_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', '$defineProperty', 'toObject', '$export', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('$defineProperty', var.get('require')(Js('./_object-dp')))
|
|
@Js
|
|
def PyJs___defineGetter___914_(P, getter, this, arguments, var=var):
|
|
var = Scope({'P':P, 'getter':getter, 'this':this, 'arguments':arguments, '__defineGetter__':PyJs___defineGetter___914_}, var)
|
|
var.registers(['getter', 'P'])
|
|
var.get('$defineProperty').callprop('f', var.get('toObject')(var.get(u"this")), var.get('P'), Js({'get':var.get('aFunction')(var.get('getter')),'enumerable':Js(True),'configurable':Js(True)}))
|
|
PyJs___defineGetter___914_._set_name('__defineGetter__')
|
|
(var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__defineGetter__':PyJs___defineGetter___914_})))
|
|
PyJs_anonymous_913_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_915_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', '$defineProperty', 'toObject', '$export', 'exports', 'module'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('$defineProperty', var.get('require')(Js('./_object-dp')))
|
|
@Js
|
|
def PyJs___defineSetter___916_(P, setter, this, arguments, var=var):
|
|
var = Scope({'P':P, 'setter':setter, 'this':this, 'arguments':arguments, '__defineSetter__':PyJs___defineSetter___916_}, var)
|
|
var.registers(['setter', 'P'])
|
|
var.get('$defineProperty').callprop('f', var.get('toObject')(var.get(u"this")), var.get('P'), Js({'set':var.get('aFunction')(var.get('setter')),'enumerable':Js(True),'configurable':Js(True)}))
|
|
PyJs___defineSetter___916_._set_name('__defineSetter__')
|
|
(var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__defineSetter__':PyJs___defineSetter___916_})))
|
|
PyJs_anonymous_915_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_917_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$entries', 'require', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$entries', var.get('require')(Js('./_object-to-array'))(Js(True)))
|
|
@Js
|
|
def PyJs_entries_918_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'entries':PyJs_entries_918_}, var)
|
|
var.registers(['it'])
|
|
return var.get('$entries')(var.get('it'))
|
|
PyJs_entries_918_._set_name('entries')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'entries':PyJs_entries_918_}))
|
|
PyJs_anonymous_917_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_919_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toIObject', 'gOPD', 'ownKeys', '$export', 'exports', 'module', 'createProperty'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('ownKeys', var.get('require')(Js('./_own-keys')))
|
|
var.put('toIObject', var.get('require')(Js('./_to-iobject')))
|
|
var.put('gOPD', var.get('require')(Js('./_object-gopd')))
|
|
var.put('createProperty', var.get('require')(Js('./_create-property')))
|
|
@Js
|
|
def PyJs_getOwnPropertyDescriptors_920_(object, this, arguments, var=var):
|
|
var = Scope({'object':object, 'this':this, 'arguments':arguments, 'getOwnPropertyDescriptors':PyJs_getOwnPropertyDescriptors_920_}, var)
|
|
var.registers(['getDesc', 'object', 'i', 'desc', 'O', 'result', 'key', 'keys'])
|
|
var.put('O', var.get('toIObject')(var.get('object')))
|
|
var.put('getDesc', var.get('gOPD').get('f'))
|
|
var.put('keys', var.get('ownKeys')(var.get('O')))
|
|
var.put('result', Js({}))
|
|
var.put('i', Js(0.0))
|
|
pass
|
|
while (var.get('keys').get('length')>var.get('i')):
|
|
var.put('desc', var.get('getDesc')(var.get('O'), var.put('key', var.get('keys').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))))
|
|
if PyJsStrictNeq(var.get('desc'),var.get('undefined')):
|
|
var.get('createProperty')(var.get('result'), var.get('key'), var.get('desc'))
|
|
return var.get('result')
|
|
PyJs_getOwnPropertyDescriptors_920_._set_name('getOwnPropertyDescriptors')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'getOwnPropertyDescriptors':PyJs_getOwnPropertyDescriptors_920_}))
|
|
PyJs_anonymous_919_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_921_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toPrimitive', 'toObject', '$export', 'exports', 'module', 'getPrototypeOf', 'getOwnPropertyDescriptor'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('getOwnPropertyDescriptor', var.get('require')(Js('./_object-gopd')).get('f'))
|
|
@Js
|
|
def PyJs___lookupGetter___922_(P, this, arguments, var=var):
|
|
var = Scope({'P':P, 'this':this, 'arguments':arguments, '__lookupGetter__':PyJs___lookupGetter___922_}, var)
|
|
var.registers(['O', 'K', 'D', 'P'])
|
|
var.put('O', var.get('toObject')(var.get(u"this")))
|
|
var.put('K', var.get('toPrimitive')(var.get('P'), Js(True)))
|
|
pass
|
|
while 1:
|
|
if var.put('D', var.get('getOwnPropertyDescriptor')(var.get('O'), var.get('K'))):
|
|
return var.get('D').get('get')
|
|
if not var.put('O', var.get('getPrototypeOf')(var.get('O'))):
|
|
break
|
|
PyJs___lookupGetter___922_._set_name('__lookupGetter__')
|
|
(var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__lookupGetter__':PyJs___lookupGetter___922_})))
|
|
PyJs_anonymous_921_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_923_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'toPrimitive', 'toObject', '$export', 'exports', 'module', 'getPrototypeOf', 'getOwnPropertyDescriptor'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('toObject', var.get('require')(Js('./_to-object')))
|
|
var.put('toPrimitive', var.get('require')(Js('./_to-primitive')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('getOwnPropertyDescriptor', var.get('require')(Js('./_object-gopd')).get('f'))
|
|
@Js
|
|
def PyJs___lookupSetter___924_(P, this, arguments, var=var):
|
|
var = Scope({'P':P, 'this':this, 'arguments':arguments, '__lookupSetter__':PyJs___lookupSetter___924_}, var)
|
|
var.registers(['O', 'K', 'D', 'P'])
|
|
var.put('O', var.get('toObject')(var.get(u"this")))
|
|
var.put('K', var.get('toPrimitive')(var.get('P'), Js(True)))
|
|
pass
|
|
while 1:
|
|
if var.put('D', var.get('getOwnPropertyDescriptor')(var.get('O'), var.get('K'))):
|
|
return var.get('D').get('set')
|
|
if not var.put('O', var.get('getPrototypeOf')(var.get('O'))):
|
|
break
|
|
PyJs___lookupSetter___924_._set_name('__lookupSetter__')
|
|
(var.get('require')(Js('./_descriptors')) and var.get('$export')((var.get('$export').get('P')+var.get('require')(Js('./_object-forced-pam'))), Js('Object'), Js({'__lookupSetter__':PyJs___lookupSetter___924_})))
|
|
PyJs_anonymous_923_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_925_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', '$values'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$values', var.get('require')(Js('./_object-to-array'))(Js(False)))
|
|
@Js
|
|
def PyJs_values_926_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments, 'values':PyJs_values_926_}, var)
|
|
var.registers(['it'])
|
|
return var.get('$values')(var.get('it'))
|
|
PyJs_values_926_._set_name('values')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Object'), Js({'values':PyJs_values_926_}))
|
|
PyJs_anonymous_925_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_927_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['hide', 'closeSubscription', '$Observable', 'Subscription', 'subscriptionClosed', 'OBSERVABLE', 'RETURN', 'getMethod', 'require', 'module', 'microtask', 'cleanupSubscription', 'global', 'aFunction', 'core', 'redefineAll', 'anInstance', 'SubscriptionObserver', '$export', 'exports', 'forOf', 'anObject'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('core', var.get('require')(Js('./_core')))
|
|
var.put('microtask', var.get('require')(Js('./_microtask'))())
|
|
var.put('OBSERVABLE', var.get('require')(Js('./_wks'))(Js('observable')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('anInstance', var.get('require')(Js('./_an-instance')))
|
|
var.put('redefineAll', var.get('require')(Js('./_redefine-all')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('forOf', var.get('require')(Js('./_for-of')))
|
|
var.put('RETURN', var.get('forOf').get('RETURN'))
|
|
@Js
|
|
def PyJs_getMethod_928_(fn, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'getMethod':PyJs_getMethod_928_}, var)
|
|
var.registers(['fn'])
|
|
return (var.get('undefined') if (var.get('fn')==var.get(u"null")) else var.get('aFunction')(var.get('fn')))
|
|
PyJs_getMethod_928_._set_name('getMethod')
|
|
var.put('getMethod', PyJs_getMethod_928_)
|
|
@Js
|
|
def PyJs_cleanupSubscription_929_(subscription, this, arguments, var=var):
|
|
var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'cleanupSubscription':PyJs_cleanupSubscription_929_}, var)
|
|
var.registers(['cleanup', 'subscription'])
|
|
var.put('cleanup', var.get('subscription').get('_c'))
|
|
if var.get('cleanup'):
|
|
var.get('subscription').put('_c', var.get('undefined'))
|
|
var.get('cleanup')()
|
|
PyJs_cleanupSubscription_929_._set_name('cleanupSubscription')
|
|
var.put('cleanupSubscription', PyJs_cleanupSubscription_929_)
|
|
@Js
|
|
def PyJs_subscriptionClosed_930_(subscription, this, arguments, var=var):
|
|
var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'subscriptionClosed':PyJs_subscriptionClosed_930_}, var)
|
|
var.registers(['subscription'])
|
|
return PyJsStrictEq(var.get('subscription').get('_o'),var.get('undefined'))
|
|
PyJs_subscriptionClosed_930_._set_name('subscriptionClosed')
|
|
var.put('subscriptionClosed', PyJs_subscriptionClosed_930_)
|
|
@Js
|
|
def PyJs_closeSubscription_931_(subscription, this, arguments, var=var):
|
|
var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'closeSubscription':PyJs_closeSubscription_931_}, var)
|
|
var.registers(['subscription'])
|
|
if var.get('subscriptionClosed')(var.get('subscription')).neg():
|
|
var.get('subscription').put('_o', var.get('undefined'))
|
|
var.get('cleanupSubscription')(var.get('subscription'))
|
|
PyJs_closeSubscription_931_._set_name('closeSubscription')
|
|
var.put('closeSubscription', PyJs_closeSubscription_931_)
|
|
@Js
|
|
def PyJs_Subscription_932_(observer, subscriber, this, arguments, var=var):
|
|
var = Scope({'observer':observer, 'subscriber':subscriber, 'this':this, 'arguments':arguments, 'Subscription':PyJs_Subscription_932_}, var)
|
|
var.registers(['subscriber', 'cleanup', 'subscription', 'observer'])
|
|
var.get('anObject')(var.get('observer'))
|
|
var.get(u"this").put('_c', var.get('undefined'))
|
|
var.get(u"this").put('_o', var.get('observer'))
|
|
var.put('observer', var.get('SubscriptionObserver').create(var.get(u"this")))
|
|
try:
|
|
var.put('cleanup', var.get('subscriber')(var.get('observer')))
|
|
var.put('subscription', var.get('cleanup'))
|
|
if (var.get('cleanup')!=var.get(u"null")):
|
|
if PyJsStrictEq(var.get('cleanup').get('unsubscribe').typeof(),Js('function')):
|
|
@Js
|
|
def PyJs_cleanup_933_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'cleanup':PyJs_cleanup_933_}, var)
|
|
var.registers([])
|
|
var.get('subscription').callprop('unsubscribe')
|
|
PyJs_cleanup_933_._set_name('cleanup')
|
|
var.put('cleanup', PyJs_cleanup_933_)
|
|
else:
|
|
var.get('aFunction')(var.get('cleanup'))
|
|
var.get(u"this").put('_c', var.get('cleanup'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_48647747 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
var.get('observer').callprop('error', var.get('e'))
|
|
return var.get('undefined')
|
|
finally:
|
|
if PyJsHolder_65_48647747 is not None:
|
|
var.own['e'] = PyJsHolder_65_48647747
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_48647747
|
|
if var.get('subscriptionClosed')(var.get(u"this")):
|
|
var.get('cleanupSubscription')(var.get(u"this"))
|
|
PyJs_Subscription_932_._set_name('Subscription')
|
|
var.put('Subscription', PyJs_Subscription_932_)
|
|
@Js
|
|
def PyJs_unsubscribe_934_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'unsubscribe':PyJs_unsubscribe_934_}, var)
|
|
var.registers([])
|
|
var.get('closeSubscription')(var.get(u"this"))
|
|
PyJs_unsubscribe_934_._set_name('unsubscribe')
|
|
var.get('Subscription').put('prototype', var.get('redefineAll')(Js({}), Js({'unsubscribe':PyJs_unsubscribe_934_})))
|
|
@Js
|
|
def PyJs_SubscriptionObserver_935_(subscription, this, arguments, var=var):
|
|
var = Scope({'subscription':subscription, 'this':this, 'arguments':arguments, 'SubscriptionObserver':PyJs_SubscriptionObserver_935_}, var)
|
|
var.registers(['subscription'])
|
|
var.get(u"this").put('_s', var.get('subscription'))
|
|
PyJs_SubscriptionObserver_935_._set_name('SubscriptionObserver')
|
|
var.put('SubscriptionObserver', PyJs_SubscriptionObserver_935_)
|
|
@Js
|
|
def PyJs_next_936_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'next':PyJs_next_936_}, var)
|
|
var.registers(['value', 'm', 'subscription', 'observer'])
|
|
var.put('subscription', var.get(u"this").get('_s'))
|
|
if var.get('subscriptionClosed')(var.get('subscription')).neg():
|
|
var.put('observer', var.get('subscription').get('_o'))
|
|
try:
|
|
var.put('m', var.get('getMethod')(var.get('observer').get('next')))
|
|
if var.get('m'):
|
|
return var.get('m').callprop('call', var.get('observer'), var.get('value'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_68534601 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
try:
|
|
var.get('closeSubscription')(var.get('subscription'))
|
|
finally:
|
|
PyJsTempException = JsToPyException(var.get('e'))
|
|
raise PyJsTempException
|
|
finally:
|
|
if PyJsHolder_65_68534601 is not None:
|
|
var.own['e'] = PyJsHolder_65_68534601
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_68534601
|
|
PyJs_next_936_._set_name('next')
|
|
@Js
|
|
def PyJs_error_937_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'error':PyJs_error_937_}, var)
|
|
var.registers(['value', 'm', 'subscription', 'observer'])
|
|
var.put('subscription', var.get(u"this").get('_s'))
|
|
if var.get('subscriptionClosed')(var.get('subscription')):
|
|
PyJsTempException = JsToPyException(var.get('value'))
|
|
raise PyJsTempException
|
|
var.put('observer', var.get('subscription').get('_o'))
|
|
var.get('subscription').put('_o', var.get('undefined'))
|
|
try:
|
|
var.put('m', var.get('getMethod')(var.get('observer').get('error')))
|
|
if var.get('m').neg():
|
|
PyJsTempException = JsToPyException(var.get('value'))
|
|
raise PyJsTempException
|
|
var.put('value', var.get('m').callprop('call', var.get('observer'), var.get('value')))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_70234663 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
try:
|
|
var.get('cleanupSubscription')(var.get('subscription'))
|
|
finally:
|
|
PyJsTempException = JsToPyException(var.get('e'))
|
|
raise PyJsTempException
|
|
finally:
|
|
if PyJsHolder_65_70234663 is not None:
|
|
var.own['e'] = PyJsHolder_65_70234663
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_70234663
|
|
var.get('cleanupSubscription')(var.get('subscription'))
|
|
return var.get('value')
|
|
PyJs_error_937_._set_name('error')
|
|
@Js
|
|
def PyJs_complete_938_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'complete':PyJs_complete_938_}, var)
|
|
var.registers(['value', 'm', 'subscription', 'observer'])
|
|
var.put('subscription', var.get(u"this").get('_s'))
|
|
if var.get('subscriptionClosed')(var.get('subscription')).neg():
|
|
var.put('observer', var.get('subscription').get('_o'))
|
|
var.get('subscription').put('_o', var.get('undefined'))
|
|
try:
|
|
var.put('m', var.get('getMethod')(var.get('observer').get('complete')))
|
|
var.put('value', (var.get('m').callprop('call', var.get('observer'), var.get('value')) if var.get('m') else var.get('undefined')))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_44133141 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
try:
|
|
var.get('cleanupSubscription')(var.get('subscription'))
|
|
finally:
|
|
PyJsTempException = JsToPyException(var.get('e'))
|
|
raise PyJsTempException
|
|
finally:
|
|
if PyJsHolder_65_44133141 is not None:
|
|
var.own['e'] = PyJsHolder_65_44133141
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_44133141
|
|
var.get('cleanupSubscription')(var.get('subscription'))
|
|
return var.get('value')
|
|
PyJs_complete_938_._set_name('complete')
|
|
var.get('SubscriptionObserver').put('prototype', var.get('redefineAll')(Js({}), Js({'next':PyJs_next_936_,'error':PyJs_error_937_,'complete':PyJs_complete_938_})))
|
|
@Js
|
|
def PyJs_Observable_939_(subscriber, this, arguments, var=var):
|
|
var = Scope({'subscriber':subscriber, 'this':this, 'arguments':arguments, 'Observable':PyJs_Observable_939_}, var)
|
|
var.registers(['subscriber'])
|
|
var.get('anInstance')(var.get(u"this"), var.get('$Observable'), Js('Observable'), Js('_f')).put('_f', var.get('aFunction')(var.get('subscriber')))
|
|
PyJs_Observable_939_._set_name('Observable')
|
|
var.put('$Observable', PyJs_Observable_939_)
|
|
@Js
|
|
def PyJs_subscribe_940_(observer, this, arguments, var=var):
|
|
var = Scope({'observer':observer, 'this':this, 'arguments':arguments, 'subscribe':PyJs_subscribe_940_}, var)
|
|
var.registers(['observer'])
|
|
return var.get('Subscription').create(var.get('observer'), var.get(u"this").get('_f'))
|
|
PyJs_subscribe_940_._set_name('subscribe')
|
|
@Js
|
|
def PyJs_forEach_941_(fn, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'this':this, 'arguments':arguments, 'forEach':PyJs_forEach_941_}, var)
|
|
var.registers(['fn', 'that'])
|
|
var.put('that', var.get(u"this"))
|
|
@Js
|
|
def PyJs_anonymous_942_(resolve, reject, this, arguments, var=var):
|
|
var = Scope({'resolve':resolve, 'reject':reject, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['subscription', 'resolve', 'reject'])
|
|
var.get('aFunction')(var.get('fn'))
|
|
@Js
|
|
def PyJs_next_943_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments, 'next':PyJs_next_943_}, var)
|
|
var.registers(['value'])
|
|
try:
|
|
return var.get('fn')(var.get('value'))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_57797942 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
var.get('reject')(var.get('e'))
|
|
var.get('subscription').callprop('unsubscribe')
|
|
finally:
|
|
if PyJsHolder_65_57797942 is not None:
|
|
var.own['e'] = PyJsHolder_65_57797942
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_57797942
|
|
PyJs_next_943_._set_name('next')
|
|
var.put('subscription', var.get('that').callprop('subscribe', Js({'next':PyJs_next_943_,'error':var.get('reject'),'complete':var.get('resolve')})))
|
|
PyJs_anonymous_942_._set_name('anonymous')
|
|
return (var.get('core').get('Promise') or var.get('global').get('Promise')).create(PyJs_anonymous_942_)
|
|
PyJs_forEach_941_._set_name('forEach')
|
|
var.get('redefineAll')(var.get('$Observable').get('prototype'), Js({'subscribe':PyJs_subscribe_940_,'forEach':PyJs_forEach_941_}))
|
|
@Js
|
|
def PyJs_InlineNonPyName_944_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments, 'from':PyJs_InlineNonPyName_944_}, var)
|
|
var.registers(['observable', 'C', 'x', 'method'])
|
|
var.put('C', (var.get(u"this") if PyJsStrictEq(var.get(u"this",throw=False).typeof(),Js('function')) else var.get('$Observable')))
|
|
var.put('method', var.get('getMethod')(var.get('anObject')(var.get('x')).get(var.get('OBSERVABLE'))))
|
|
if var.get('method'):
|
|
var.put('observable', var.get('anObject')(var.get('method').callprop('call', var.get('x'))))
|
|
@Js
|
|
def PyJs_anonymous_945_(observer, this, arguments, var=var):
|
|
var = Scope({'observer':observer, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['observer'])
|
|
return var.get('observable').callprop('subscribe', var.get('observer'))
|
|
PyJs_anonymous_945_._set_name('anonymous')
|
|
return (var.get('observable') if PyJsStrictEq(var.get('observable').get('constructor'),var.get('C')) else var.get('C').create(PyJs_anonymous_945_))
|
|
@Js
|
|
def PyJs_anonymous_946_(observer, this, arguments, var=var):
|
|
var = Scope({'observer':observer, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['done', 'observer'])
|
|
var.put('done', Js(False))
|
|
@Js
|
|
def PyJs_anonymous_947_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
if var.get('done').neg():
|
|
try:
|
|
@Js
|
|
def PyJs_anonymous_948_(it, this, arguments, var=var):
|
|
var = Scope({'it':it, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['it'])
|
|
var.get('observer').callprop('next', var.get('it'))
|
|
if var.get('done'):
|
|
return var.get('RETURN')
|
|
PyJs_anonymous_948_._set_name('anonymous')
|
|
if PyJsStrictEq(var.get('forOf')(var.get('x'), Js(False), PyJs_anonymous_948_),var.get('RETURN')):
|
|
return var.get('undefined')
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_75168871 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
if var.get('done'):
|
|
PyJsTempException = JsToPyException(var.get('e'))
|
|
raise PyJsTempException
|
|
var.get('observer').callprop('error', var.get('e'))
|
|
return var.get('undefined')
|
|
finally:
|
|
if PyJsHolder_65_75168871 is not None:
|
|
var.own['e'] = PyJsHolder_65_75168871
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_75168871
|
|
var.get('observer').callprop('complete')
|
|
PyJs_anonymous_947_._set_name('anonymous')
|
|
var.get('microtask')(PyJs_anonymous_947_)
|
|
@Js
|
|
def PyJs_anonymous_949_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.put('done', Js(True))
|
|
PyJs_anonymous_949_._set_name('anonymous')
|
|
return PyJs_anonymous_949_
|
|
PyJs_anonymous_946_._set_name('anonymous')
|
|
return var.get('C').create(PyJs_anonymous_946_)
|
|
PyJs_InlineNonPyName_944_._set_name('from')
|
|
@Js
|
|
def PyJs_of_950_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'of':PyJs_of_950_}, var)
|
|
var.registers(['i', 'items', 'l'])
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
var.put('l', var.get('arguments').get('length'))
|
|
var.put('items', var.get('Array').create(var.get('l')))
|
|
while (var.get('i')<var.get('l')):
|
|
var.get('items').put(var.get('i'), var.get('arguments').get((var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))))
|
|
|
|
@Js
|
|
def PyJs_anonymous_951_(observer, this, arguments, var=var):
|
|
var = Scope({'observer':observer, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['done', 'observer'])
|
|
var.put('done', Js(False))
|
|
@Js
|
|
def PyJs_anonymous_952_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['j'])
|
|
if var.get('done').neg():
|
|
#for JS loop
|
|
var.put('j', Js(0.0))
|
|
while (var.get('j')<var.get('items').get('length')):
|
|
try:
|
|
var.get('observer').callprop('next', var.get('items').get(var.get('j')))
|
|
if var.get('done'):
|
|
return var.get('undefined')
|
|
finally:
|
|
var.put('j',Js(var.get('j').to_number())+Js(1))
|
|
var.get('observer').callprop('complete')
|
|
PyJs_anonymous_952_._set_name('anonymous')
|
|
var.get('microtask')(PyJs_anonymous_952_)
|
|
@Js
|
|
def PyJs_anonymous_953_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.put('done', Js(True))
|
|
PyJs_anonymous_953_._set_name('anonymous')
|
|
return PyJs_anonymous_953_
|
|
PyJs_anonymous_951_._set_name('anonymous')
|
|
return (var.get(u"this") if PyJsStrictEq(var.get(u"this",throw=False).typeof(),Js('function')) else var.get('$Observable')).create(PyJs_anonymous_951_)
|
|
PyJs_of_950_._set_name('of')
|
|
var.get('redefineAll')(var.get('$Observable'), Js({'from':PyJs_InlineNonPyName_944_,'of':PyJs_of_950_}))
|
|
@Js
|
|
def PyJs_anonymous_954_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get(u"this")
|
|
PyJs_anonymous_954_._set_name('anonymous')
|
|
var.get('hide')(var.get('$Observable').get('prototype'), var.get('OBSERVABLE'), PyJs_anonymous_954_)
|
|
var.get('$export')(var.get('$export').get('G'), Js({'Observable':var.get('$Observable')}))
|
|
var.get('require')(Js('./_set-species'))(Js('Observable'))
|
|
PyJs_anonymous_927_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_955_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['core', 'require', '$export', 'exports', 'promiseResolve', 'module', 'speciesConstructor', 'global'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('core', var.get('require')(Js('./_core')))
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('speciesConstructor', var.get('require')(Js('./_species-constructor')))
|
|
var.put('promiseResolve', var.get('require')(Js('./_promise-resolve')))
|
|
@Js
|
|
def PyJs__finally_956_(onFinally, this, arguments, var=var):
|
|
var = Scope({'onFinally':onFinally, 'this':this, 'arguments':arguments, '_finally':PyJs__finally_956_}, var)
|
|
var.registers(['onFinally', 'C', 'isFunction'])
|
|
var.put('C', var.get('speciesConstructor')(var.get(u"this"), (var.get('core').get('Promise') or var.get('global').get('Promise'))))
|
|
var.put('isFunction', (var.get('onFinally',throw=False).typeof()==Js('function')))
|
|
@Js
|
|
def PyJs_anonymous_957_(x, this, arguments, var=var):
|
|
var = Scope({'x':x, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['x'])
|
|
@Js
|
|
def PyJs_anonymous_958_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('x')
|
|
PyJs_anonymous_958_._set_name('anonymous')
|
|
return var.get('promiseResolve')(var.get('C'), var.get('onFinally')()).callprop('then', PyJs_anonymous_958_)
|
|
PyJs_anonymous_957_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_959_(e, this, arguments, var=var):
|
|
var = Scope({'e':e, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['e'])
|
|
@Js
|
|
def PyJs_anonymous_960_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
PyJsTempException = JsToPyException(var.get('e'))
|
|
raise PyJsTempException
|
|
PyJs_anonymous_960_._set_name('anonymous')
|
|
return var.get('promiseResolve')(var.get('C'), var.get('onFinally')()).callprop('then', PyJs_anonymous_960_)
|
|
PyJs_anonymous_959_._set_name('anonymous')
|
|
return var.get(u"this").callprop('then', (PyJs_anonymous_957_ if var.get('isFunction') else var.get('onFinally')), (PyJs_anonymous_959_ if var.get('isFunction') else var.get('onFinally')))
|
|
PyJs__finally_956_._set_name('_finally')
|
|
var.get('$export')((var.get('$export').get('P')+var.get('$export').get('R')), Js('Promise'), Js({'finally':PyJs__finally_956_}))
|
|
PyJs_anonymous_955_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_961_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'perform', '$export', 'exports', 'module', 'newPromiseCapability'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('newPromiseCapability', var.get('require')(Js('./_new-promise-capability')))
|
|
var.put('perform', var.get('require')(Js('./_perform')))
|
|
@Js
|
|
def PyJs__try_962_(callbackfn, this, arguments, var=var):
|
|
var = Scope({'callbackfn':callbackfn, 'this':this, 'arguments':arguments, '_try':PyJs__try_962_}, var)
|
|
var.registers(['result', 'promiseCapability', 'callbackfn'])
|
|
var.put('promiseCapability', var.get('newPromiseCapability').callprop('f', var.get(u"this")))
|
|
var.put('result', var.get('perform')(var.get('callbackfn')))
|
|
(var.get('promiseCapability').get('reject') if var.get('result').get('e') else var.get('promiseCapability').get('resolve'))(var.get('result').get('v'))
|
|
return var.get('promiseCapability').get('promise')
|
|
PyJs__try_962_._set_name('_try')
|
|
var.get('$export')(var.get('$export').get('S'), Js('Promise'), Js({'try':PyJs__try_962_}))
|
|
PyJs_anonymous_961_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_963_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'ordinaryDefineOwnMetadata', 'metadata', 'exports', 'module', 'toMetaKey', 'anObject'])
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
var.put('ordinaryDefineOwnMetadata', var.get('metadata').get('set'))
|
|
@Js
|
|
def PyJs_defineMetadata_964_(metadataKey, metadataValue, target, targetKey, this, arguments, var=var):
|
|
var = Scope({'metadataKey':metadataKey, 'metadataValue':metadataValue, 'target':target, 'targetKey':targetKey, 'this':this, 'arguments':arguments, 'defineMetadata':PyJs_defineMetadata_964_}, var)
|
|
var.registers(['metadataKey', 'target', 'metadataValue', 'targetKey'])
|
|
var.get('ordinaryDefineOwnMetadata')(var.get('metadataKey'), var.get('metadataValue'), var.get('anObject')(var.get('target')), var.get('toMetaKey')(var.get('targetKey')))
|
|
PyJs_defineMetadata_964_._set_name('defineMetadata')
|
|
var.get('metadata').callprop('exp', Js({'defineMetadata':PyJs_defineMetadata_964_}))
|
|
PyJs_anonymous_963_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_965_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'metadata', 'exports', 'getOrCreateMetadataMap', 'store', 'module', 'toMetaKey', 'anObject'])
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
var.put('getOrCreateMetadataMap', var.get('metadata').get('map'))
|
|
var.put('store', var.get('metadata').get('store'))
|
|
@Js
|
|
def PyJs_deleteMetadata_966_(metadataKey, target, this, arguments, var=var):
|
|
var = Scope({'metadataKey':metadataKey, 'target':target, 'this':this, 'arguments':arguments, 'deleteMetadata':PyJs_deleteMetadata_966_}, var)
|
|
var.registers(['metadataKey', 'target', 'targetMetadata', 'targetKey', 'metadataMap'])
|
|
var.put('targetKey', (var.get('undefined') if (var.get('arguments').get('length')<Js(3.0)) else var.get('toMetaKey')(var.get('arguments').get('2'))))
|
|
var.put('metadataMap', var.get('getOrCreateMetadataMap')(var.get('anObject')(var.get('target')), var.get('targetKey'), Js(False)))
|
|
if (PyJsStrictEq(var.get('metadataMap'),var.get('undefined')) or var.get('metadataMap').callprop('delete', var.get('metadataKey')).neg()):
|
|
return Js(False)
|
|
if var.get('metadataMap').get('size'):
|
|
return Js(True)
|
|
var.put('targetMetadata', var.get('store').callprop('get', var.get('target')))
|
|
var.get('targetMetadata').callprop('delete', var.get('targetKey'))
|
|
return (var.get('targetMetadata').get('size').neg().neg() or var.get('store').callprop('delete', var.get('target')))
|
|
PyJs_deleteMetadata_966_._set_name('deleteMetadata')
|
|
var.get('metadata').callprop('exp', Js({'deleteMetadata':PyJs_deleteMetadata_966_}))
|
|
PyJs_anonymous_965_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_967_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'Set', 'metadata', 'exports', 'module', 'from', 'getPrototypeOf', 'ordinaryMetadataKeys', 'ordinaryOwnMetadataKeys', 'toMetaKey', 'anObject'])
|
|
var.put('Set', var.get('require')(Js('./es6.set')))
|
|
var.put('from', var.get('require')(Js('./_array-from-iterable')))
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('ordinaryOwnMetadataKeys', var.get('metadata').get('keys'))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
@Js
|
|
def PyJs_ordinaryMetadataKeys_968_(O, P, this, arguments, var=var):
|
|
var = Scope({'O':O, 'P':P, 'this':this, 'arguments':arguments, 'ordinaryMetadataKeys':PyJs_ordinaryMetadataKeys_968_}, var)
|
|
var.registers(['pKeys', 'oKeys', 'O', 'parent', 'P'])
|
|
var.put('oKeys', var.get('ordinaryOwnMetadataKeys')(var.get('O'), var.get('P')))
|
|
var.put('parent', var.get('getPrototypeOf')(var.get('O')))
|
|
if PyJsStrictEq(var.get('parent'),var.get(u"null")):
|
|
return var.get('oKeys')
|
|
var.put('pKeys', var.get('ordinaryMetadataKeys')(var.get('parent'), var.get('P')))
|
|
return ((var.get('from')(var.get('Set').create(var.get('oKeys').callprop('concat', var.get('pKeys')))) if var.get('oKeys').get('length') else var.get('pKeys')) if var.get('pKeys').get('length') else var.get('oKeys'))
|
|
PyJs_ordinaryMetadataKeys_968_._set_name('ordinaryMetadataKeys')
|
|
var.put('ordinaryMetadataKeys', PyJs_ordinaryMetadataKeys_968_)
|
|
@Js
|
|
def PyJs_getMetadataKeys_969_(target, this, arguments, var=var):
|
|
var = Scope({'target':target, 'this':this, 'arguments':arguments, 'getMetadataKeys':PyJs_getMetadataKeys_969_}, var)
|
|
var.registers(['target'])
|
|
return var.get('ordinaryMetadataKeys')(var.get('anObject')(var.get('target')), (var.get('undefined') if (var.get('arguments').get('length')<Js(2.0)) else var.get('toMetaKey')(var.get('arguments').get('1'))))
|
|
PyJs_getMetadataKeys_969_._set_name('getMetadataKeys')
|
|
var.get('metadata').callprop('exp', Js({'getMetadataKeys':PyJs_getMetadataKeys_969_}))
|
|
PyJs_anonymous_967_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_970_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'ordinaryGetOwnMetadata', 'metadata', 'exports', 'ordinaryGetMetadata', 'module', 'getPrototypeOf', 'toMetaKey', 'anObject', 'ordinaryHasOwnMetadata'])
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('ordinaryHasOwnMetadata', var.get('metadata').get('has'))
|
|
var.put('ordinaryGetOwnMetadata', var.get('metadata').get('get'))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
@Js
|
|
def PyJs_ordinaryGetMetadata_971_(MetadataKey, O, P, this, arguments, var=var):
|
|
var = Scope({'MetadataKey':MetadataKey, 'O':O, 'P':P, 'this':this, 'arguments':arguments, 'ordinaryGetMetadata':PyJs_ordinaryGetMetadata_971_}, var)
|
|
var.registers(['hasOwn', 'parent', 'O', 'MetadataKey', 'P'])
|
|
var.put('hasOwn', var.get('ordinaryHasOwnMetadata')(var.get('MetadataKey'), var.get('O'), var.get('P')))
|
|
if var.get('hasOwn'):
|
|
return var.get('ordinaryGetOwnMetadata')(var.get('MetadataKey'), var.get('O'), var.get('P'))
|
|
var.put('parent', var.get('getPrototypeOf')(var.get('O')))
|
|
return (var.get('ordinaryGetMetadata')(var.get('MetadataKey'), var.get('parent'), var.get('P')) if PyJsStrictNeq(var.get('parent'),var.get(u"null")) else var.get('undefined'))
|
|
PyJs_ordinaryGetMetadata_971_._set_name('ordinaryGetMetadata')
|
|
var.put('ordinaryGetMetadata', PyJs_ordinaryGetMetadata_971_)
|
|
@Js
|
|
def PyJs_getMetadata_972_(metadataKey, target, this, arguments, var=var):
|
|
var = Scope({'metadataKey':metadataKey, 'target':target, 'this':this, 'arguments':arguments, 'getMetadata':PyJs_getMetadata_972_}, var)
|
|
var.registers(['metadataKey', 'target'])
|
|
return var.get('ordinaryGetMetadata')(var.get('metadataKey'), var.get('anObject')(var.get('target')), (var.get('undefined') if (var.get('arguments').get('length')<Js(3.0)) else var.get('toMetaKey')(var.get('arguments').get('2'))))
|
|
PyJs_getMetadata_972_._set_name('getMetadata')
|
|
var.get('metadata').callprop('exp', Js({'getMetadata':PyJs_getMetadata_972_}))
|
|
PyJs_anonymous_970_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_973_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'metadata', 'exports', 'module', 'ordinaryOwnMetadataKeys', 'toMetaKey', 'anObject'])
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('ordinaryOwnMetadataKeys', var.get('metadata').get('keys'))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
@Js
|
|
def PyJs_getOwnMetadataKeys_974_(target, this, arguments, var=var):
|
|
var = Scope({'target':target, 'this':this, 'arguments':arguments, 'getOwnMetadataKeys':PyJs_getOwnMetadataKeys_974_}, var)
|
|
var.registers(['target'])
|
|
return var.get('ordinaryOwnMetadataKeys')(var.get('anObject')(var.get('target')), (var.get('undefined') if (var.get('arguments').get('length')<Js(2.0)) else var.get('toMetaKey')(var.get('arguments').get('1'))))
|
|
PyJs_getOwnMetadataKeys_974_._set_name('getOwnMetadataKeys')
|
|
var.get('metadata').callprop('exp', Js({'getOwnMetadataKeys':PyJs_getOwnMetadataKeys_974_}))
|
|
PyJs_anonymous_973_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_975_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'ordinaryGetOwnMetadata', 'metadata', 'exports', 'module', 'toMetaKey', 'anObject'])
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('ordinaryGetOwnMetadata', var.get('metadata').get('get'))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
@Js
|
|
def PyJs_getOwnMetadata_976_(metadataKey, target, this, arguments, var=var):
|
|
var = Scope({'metadataKey':metadataKey, 'target':target, 'this':this, 'arguments':arguments, 'getOwnMetadata':PyJs_getOwnMetadata_976_}, var)
|
|
var.registers(['metadataKey', 'target'])
|
|
return var.get('ordinaryGetOwnMetadata')(var.get('metadataKey'), var.get('anObject')(var.get('target')), (var.get('undefined') if (var.get('arguments').get('length')<Js(3.0)) else var.get('toMetaKey')(var.get('arguments').get('2'))))
|
|
PyJs_getOwnMetadata_976_._set_name('getOwnMetadata')
|
|
var.get('metadata').callprop('exp', Js({'getOwnMetadata':PyJs_getOwnMetadata_976_}))
|
|
PyJs_anonymous_975_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_977_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['ordinaryHasMetadata', 'require', 'metadata', 'exports', 'module', 'getPrototypeOf', 'toMetaKey', 'anObject', 'ordinaryHasOwnMetadata'])
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('getPrototypeOf', var.get('require')(Js('./_object-gpo')))
|
|
var.put('ordinaryHasOwnMetadata', var.get('metadata').get('has'))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
@Js
|
|
def PyJs_ordinaryHasMetadata_978_(MetadataKey, O, P, this, arguments, var=var):
|
|
var = Scope({'MetadataKey':MetadataKey, 'O':O, 'P':P, 'this':this, 'arguments':arguments, 'ordinaryHasMetadata':PyJs_ordinaryHasMetadata_978_}, var)
|
|
var.registers(['hasOwn', 'parent', 'O', 'MetadataKey', 'P'])
|
|
var.put('hasOwn', var.get('ordinaryHasOwnMetadata')(var.get('MetadataKey'), var.get('O'), var.get('P')))
|
|
if var.get('hasOwn'):
|
|
return Js(True)
|
|
var.put('parent', var.get('getPrototypeOf')(var.get('O')))
|
|
return (var.get('ordinaryHasMetadata')(var.get('MetadataKey'), var.get('parent'), var.get('P')) if PyJsStrictNeq(var.get('parent'),var.get(u"null")) else Js(False))
|
|
PyJs_ordinaryHasMetadata_978_._set_name('ordinaryHasMetadata')
|
|
var.put('ordinaryHasMetadata', PyJs_ordinaryHasMetadata_978_)
|
|
@Js
|
|
def PyJs_hasMetadata_979_(metadataKey, target, this, arguments, var=var):
|
|
var = Scope({'metadataKey':metadataKey, 'target':target, 'this':this, 'arguments':arguments, 'hasMetadata':PyJs_hasMetadata_979_}, var)
|
|
var.registers(['metadataKey', 'target'])
|
|
return var.get('ordinaryHasMetadata')(var.get('metadataKey'), var.get('anObject')(var.get('target')), (var.get('undefined') if (var.get('arguments').get('length')<Js(3.0)) else var.get('toMetaKey')(var.get('arguments').get('2'))))
|
|
PyJs_hasMetadata_979_._set_name('hasMetadata')
|
|
var.get('metadata').callprop('exp', Js({'hasMetadata':PyJs_hasMetadata_979_}))
|
|
PyJs_anonymous_977_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_980_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'metadata', 'exports', 'module', 'toMetaKey', 'anObject', 'ordinaryHasOwnMetadata'])
|
|
var.put('metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('ordinaryHasOwnMetadata', var.get('metadata').get('has'))
|
|
var.put('toMetaKey', var.get('metadata').get('key'))
|
|
@Js
|
|
def PyJs_hasOwnMetadata_981_(metadataKey, target, this, arguments, var=var):
|
|
var = Scope({'metadataKey':metadataKey, 'target':target, 'this':this, 'arguments':arguments, 'hasOwnMetadata':PyJs_hasOwnMetadata_981_}, var)
|
|
var.registers(['metadataKey', 'target'])
|
|
return var.get('ordinaryHasOwnMetadata')(var.get('metadataKey'), var.get('anObject')(var.get('target')), (var.get('undefined') if (var.get('arguments').get('length')<Js(3.0)) else var.get('toMetaKey')(var.get('arguments').get('2'))))
|
|
PyJs_hasOwnMetadata_981_._set_name('hasOwnMetadata')
|
|
var.get('metadata').callprop('exp', Js({'hasOwnMetadata':PyJs_hasOwnMetadata_981_}))
|
|
PyJs_anonymous_980_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_982_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['aFunction', 'require', 'ordinaryDefineOwnMetadata', '$metadata', 'exports', 'module', 'toMetaKey', 'anObject'])
|
|
var.put('$metadata', var.get('require')(Js('./_metadata')))
|
|
var.put('anObject', var.get('require')(Js('./_an-object')))
|
|
var.put('aFunction', var.get('require')(Js('./_a-function')))
|
|
var.put('toMetaKey', var.get('$metadata').get('key'))
|
|
var.put('ordinaryDefineOwnMetadata', var.get('$metadata').get('set'))
|
|
@Js
|
|
def PyJs_metadata_983_(metadataKey, metadataValue, this, arguments, var=var):
|
|
var = Scope({'metadataKey':metadataKey, 'metadataValue':metadataValue, 'this':this, 'arguments':arguments, 'metadata':PyJs_metadata_983_}, var)
|
|
var.registers(['metadataKey', 'metadataValue'])
|
|
@Js
|
|
def PyJs_decorator_984_(target, targetKey, this, arguments, var=var):
|
|
var = Scope({'target':target, 'targetKey':targetKey, 'this':this, 'arguments':arguments, 'decorator':PyJs_decorator_984_}, var)
|
|
var.registers(['target', 'targetKey'])
|
|
var.get('ordinaryDefineOwnMetadata')(var.get('metadataKey'), var.get('metadataValue'), (var.get('anObject') if PyJsStrictNeq(var.get('targetKey'),var.get('undefined')) else var.get('aFunction'))(var.get('target')), var.get('toMetaKey')(var.get('targetKey')))
|
|
PyJs_decorator_984_._set_name('decorator')
|
|
return PyJs_decorator_984_
|
|
PyJs_metadata_983_._set_name('metadata')
|
|
var.get('$metadata').callprop('exp', Js({'metadata':PyJs_metadata_983_}))
|
|
PyJs_anonymous_982_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_985_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-from'))(Js('Set'))
|
|
PyJs_anonymous_985_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_986_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-of'))(Js('Set'))
|
|
PyJs_anonymous_986_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_987_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')((var.get('$export').get('P')+var.get('$export').get('R')), Js('Set'), Js({'toJSON':var.get('require')(Js('./_collection-to-json'))(Js('Set'))}))
|
|
PyJs_anonymous_987_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_988_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$fails', 'require', '$export', 'exports', 'module', '$at', 'FORCED'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$at', var.get('require')(Js('./_string-at'))(Js(True)))
|
|
var.put('$fails', var.get('require')(Js('./_fails')))
|
|
@Js
|
|
def PyJs_anonymous_989_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return PyJsStrictNeq(Js('𠮷').callprop('at', Js(0.0)),Js('𠮷'))
|
|
PyJs_anonymous_989_._set_name('anonymous')
|
|
var.put('FORCED', var.get('$fails')(PyJs_anonymous_989_))
|
|
@Js
|
|
def PyJs_at_990_(pos, this, arguments, var=var):
|
|
var = Scope({'pos':pos, 'this':this, 'arguments':arguments, 'at':PyJs_at_990_}, var)
|
|
var.registers(['pos'])
|
|
return var.get('$at')(var.get(u"this"), var.get('pos'))
|
|
PyJs_at_990_._set_name('at')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('FORCED'))), Js('String'), Js({'at':PyJs_at_990_}))
|
|
PyJs_anonymous_988_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_991_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'defined', 'isRegExp', 'toLength', 'RegExpProto', '$export', 'exports', 'module', 'getFlags', '$RegExpStringIterator'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('defined', var.get('require')(Js('./_defined')))
|
|
var.put('toLength', var.get('require')(Js('./_to-length')))
|
|
var.put('isRegExp', var.get('require')(Js('./_is-regexp')))
|
|
var.put('getFlags', var.get('require')(Js('./_flags')))
|
|
var.put('RegExpProto', var.get('RegExp').get('prototype'))
|
|
@Js
|
|
def PyJs_InlineNonPyName_992_(regexp, string, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'string':string, 'this':this, 'arguments':arguments, '$RegExpStringIterator':PyJs_InlineNonPyName_992_}, var)
|
|
var.registers(['string', 'regexp'])
|
|
var.get(u"this").put('_r', var.get('regexp'))
|
|
var.get(u"this").put('_s', var.get('string'))
|
|
PyJs_InlineNonPyName_992_._set_name('$RegExpStringIterator')
|
|
var.put('$RegExpStringIterator', PyJs_InlineNonPyName_992_)
|
|
@Js
|
|
def PyJs_next_993_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'next':PyJs_next_993_}, var)
|
|
var.registers(['match'])
|
|
var.put('match', var.get(u"this").get('_r').callprop('exec', var.get(u"this").get('_s')))
|
|
return Js({'value':var.get('match'),'done':PyJsStrictEq(var.get('match'),var.get(u"null"))})
|
|
PyJs_next_993_._set_name('next')
|
|
var.get('require')(Js('./_iter-create'))(var.get('$RegExpStringIterator'), Js('RegExp String'), PyJs_next_993_)
|
|
@Js
|
|
def PyJs_matchAll_994_(regexp, this, arguments, var=var):
|
|
var = Scope({'regexp':regexp, 'this':this, 'arguments':arguments, 'matchAll':PyJs_matchAll_994_}, var)
|
|
var.registers(['flags', 'regexp', 'S', 'rx'])
|
|
var.get('defined')(var.get(u"this"))
|
|
if var.get('isRegExp')(var.get('regexp')).neg():
|
|
PyJsTempException = JsToPyException(var.get('TypeError')((var.get('regexp')+Js(' is not a regexp!'))))
|
|
raise PyJsTempException
|
|
var.put('S', var.get('String')(var.get(u"this")))
|
|
var.put('flags', (var.get('String')(var.get('regexp').get('flags')) if var.get('RegExpProto').contains(Js('flags')) else var.get('getFlags').callprop('call', var.get('regexp'))))
|
|
var.put('rx', var.get('RegExp').create(var.get('regexp').get('source'), (var.get('flags') if (~var.get('flags').callprop('indexOf', Js('g'))) else (Js('g')+var.get('flags')))))
|
|
var.get('rx').put('lastIndex', var.get('toLength')(var.get('regexp').get('lastIndex')))
|
|
return var.get('$RegExpStringIterator').create(var.get('rx'), var.get('S'))
|
|
PyJs_matchAll_994_._set_name('matchAll')
|
|
var.get('$export')(var.get('$export').get('P'), Js('String'), Js({'matchAll':PyJs_matchAll_994_}))
|
|
PyJs_anonymous_991_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_995_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'WEBKIT_BUG', '$pad', 'userAgent'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$pad', var.get('require')(Js('./_string-pad')))
|
|
var.put('userAgent', var.get('require')(Js('./_user-agent')))
|
|
var.put('WEBKIT_BUG', JsRegExp('/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//').callprop('test', var.get('userAgent')))
|
|
@Js
|
|
def PyJs_padEnd_996_(maxLength, this, arguments, var=var):
|
|
var = Scope({'maxLength':maxLength, 'this':this, 'arguments':arguments, 'padEnd':PyJs_padEnd_996_}, var)
|
|
var.registers(['maxLength'])
|
|
return var.get('$pad')(var.get(u"this"), var.get('maxLength'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')), Js(False))
|
|
PyJs_padEnd_996_._set_name('padEnd')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('WEBKIT_BUG'))), Js('String'), Js({'padEnd':PyJs_padEnd_996_}))
|
|
PyJs_anonymous_995_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_997_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$export', 'exports', 'module', 'WEBKIT_BUG', '$pad', 'userAgent'])
|
|
Js('use strict')
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$pad', var.get('require')(Js('./_string-pad')))
|
|
var.put('userAgent', var.get('require')(Js('./_user-agent')))
|
|
var.put('WEBKIT_BUG', JsRegExp('/Version\\/10\\.\\d+(\\.\\d+)?( Mobile\\/\\w+)? Safari\\//').callprop('test', var.get('userAgent')))
|
|
@Js
|
|
def PyJs_padStart_998_(maxLength, this, arguments, var=var):
|
|
var = Scope({'maxLength':maxLength, 'this':this, 'arguments':arguments, 'padStart':PyJs_padStart_998_}, var)
|
|
var.registers(['maxLength'])
|
|
return var.get('$pad')(var.get(u"this"), var.get('maxLength'), (var.get('arguments').get('1') if (var.get('arguments').get('length')>Js(1.0)) else var.get('undefined')), Js(True))
|
|
PyJs_padStart_998_._set_name('padStart')
|
|
var.get('$export')((var.get('$export').get('P')+(var.get('$export').get('F')*var.get('WEBKIT_BUG'))), Js('String'), Js({'padStart':PyJs_padStart_998_}))
|
|
PyJs_anonymous_997_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_999_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_1000_(PyJsArg_247472696d_, this, arguments, var=var):
|
|
var = Scope({'$trim':PyJsArg_247472696d_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$trim'])
|
|
@Js
|
|
def PyJs_trimLeft_1001_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'trimLeft':PyJs_trimLeft_1001_}, var)
|
|
var.registers([])
|
|
return var.get('$trim')(var.get(u"this"), Js(1.0))
|
|
PyJs_trimLeft_1001_._set_name('trimLeft')
|
|
return PyJs_trimLeft_1001_
|
|
PyJs_anonymous_1000_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-trim'))(Js('trimLeft'), PyJs_anonymous_1000_, Js('trimStart'))
|
|
PyJs_anonymous_999_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1002_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
Js('use strict')
|
|
@Js
|
|
def PyJs_anonymous_1003_(PyJsArg_247472696d_, this, arguments, var=var):
|
|
var = Scope({'$trim':PyJsArg_247472696d_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['$trim'])
|
|
@Js
|
|
def PyJs_trimRight_1004_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'trimRight':PyJs_trimRight_1004_}, var)
|
|
var.registers([])
|
|
return var.get('$trim')(var.get(u"this"), Js(2.0))
|
|
PyJs_trimRight_1004_._set_name('trimRight')
|
|
return PyJs_trimRight_1004_
|
|
PyJs_anonymous_1003_._set_name('anonymous')
|
|
var.get('require')(Js('./_string-trim'))(Js('trimRight'), PyJs_anonymous_1003_, Js('trimEnd'))
|
|
PyJs_anonymous_1002_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1005_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_wks-define'))(Js('asyncIterator'))
|
|
PyJs_anonymous_1005_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1006_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_wks-define'))(Js('observable'))
|
|
PyJs_anonymous_1006_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1007_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', '$export', 'exports'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.get('$export')(var.get('$export').get('S'), Js('System'), Js({'global':var.get('require')(Js('./_global'))}))
|
|
PyJs_anonymous_1007_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1008_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-from'))(Js('WeakMap'))
|
|
PyJs_anonymous_1008_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1009_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-of'))(Js('WeakMap'))
|
|
PyJs_anonymous_1009_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1010_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-from'))(Js('WeakSet'))
|
|
PyJs_anonymous_1010_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1011_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./_set-collection-of'))(Js('WeakSet'))
|
|
PyJs_anonymous_1011_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1012_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['hide', 'proto', 'collections', 'ITERATOR', 'i', 'Collection', 'key', 'wks', 'ArrayValues', 'TO_STRING_TAG', 'require', 'redefine', 'module', 'DOMIterables', 'explicit', 'NAME', 'global', 'getKeys', 'exports', 'Iterators', '$iterators'])
|
|
var.put('$iterators', var.get('require')(Js('./es6.array.iterator')))
|
|
var.put('getKeys', var.get('require')(Js('./_object-keys')))
|
|
var.put('redefine', var.get('require')(Js('./_redefine')))
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('hide', var.get('require')(Js('./_hide')))
|
|
var.put('Iterators', var.get('require')(Js('./_iterators')))
|
|
var.put('wks', var.get('require')(Js('./_wks')))
|
|
var.put('ITERATOR', var.get('wks')(Js('iterator')))
|
|
var.put('TO_STRING_TAG', var.get('wks')(Js('toStringTag')))
|
|
var.put('ArrayValues', var.get('Iterators').get('Array'))
|
|
var.put('DOMIterables', Js({'CSSRuleList':Js(True),'CSSStyleDeclaration':Js(False),'CSSValueList':Js(False),'ClientRectList':Js(False),'DOMRectList':Js(False),'DOMStringList':Js(False),'DOMTokenList':Js(True),'DataTransferItemList':Js(False),'FileList':Js(False),'HTMLAllCollection':Js(False),'HTMLCollection':Js(False),'HTMLFormElement':Js(False),'HTMLSelectElement':Js(False),'MediaList':Js(True),'MimeTypeArray':Js(False),'NamedNodeMap':Js(False),'NodeList':Js(True),'PaintRequestList':Js(False),'Plugin':Js(False),'PluginArray':Js(False),'SVGLengthList':Js(False),'SVGNumberList':Js(False),'SVGPathSegList':Js(False),'SVGPointList':Js(False),'SVGStringList':Js(False),'SVGTransformList':Js(False),'SourceBufferList':Js(False),'StyleSheetList':Js(True),'TextTrackCueList':Js(False),'TextTrackList':Js(False),'TouchList':Js(False)}))
|
|
#for JS loop
|
|
var.put('collections', var.get('getKeys')(var.get('DOMIterables')))
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('collections').get('length')):
|
|
try:
|
|
var.put('NAME', var.get('collections').get(var.get('i')))
|
|
var.put('explicit', var.get('DOMIterables').get(var.get('NAME')))
|
|
var.put('Collection', var.get('global').get(var.get('NAME')))
|
|
var.put('proto', (var.get('Collection') and var.get('Collection').get('prototype')))
|
|
pass
|
|
if var.get('proto'):
|
|
if var.get('proto').get(var.get('ITERATOR')).neg():
|
|
var.get('hide')(var.get('proto'), var.get('ITERATOR'), var.get('ArrayValues'))
|
|
if var.get('proto').get(var.get('TO_STRING_TAG')).neg():
|
|
var.get('hide')(var.get('proto'), var.get('TO_STRING_TAG'), var.get('NAME'))
|
|
var.get('Iterators').put(var.get('NAME'), var.get('ArrayValues'))
|
|
if var.get('explicit'):
|
|
for PyJsTemp in var.get('$iterators'):
|
|
var.put('key', PyJsTemp)
|
|
if var.get('proto').get(var.get('key')).neg():
|
|
var.get('redefine')(var.get('proto'), var.get('key'), var.get('$iterators').get(var.get('key')), Js(True))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_1012_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1013_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', '$task', '$export', 'exports', 'module'])
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('$task', var.get('require')(Js('./_task')))
|
|
var.get('$export')((var.get('$export').get('G')+var.get('$export').get('B')), Js({'setImmediate':var.get('$task').get('set'),'clearImmediate':var.get('$task').get('clear')}))
|
|
PyJs_anonymous_1013_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1014_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'wrap', '$export', 'exports', 'module', 'slice', 'global', 'MSIE', 'userAgent'])
|
|
var.put('global', var.get('require')(Js('./_global')))
|
|
var.put('$export', var.get('require')(Js('./_export')))
|
|
var.put('userAgent', var.get('require')(Js('./_user-agent')))
|
|
var.put('slice', Js([]).get('slice'))
|
|
var.put('MSIE', JsRegExp('/MSIE .\\./').callprop('test', var.get('userAgent')))
|
|
@Js
|
|
def PyJs_wrap_1015_(set, this, arguments, var=var):
|
|
var = Scope({'set':set, 'this':this, 'arguments':arguments, 'wrap':PyJs_wrap_1015_}, var)
|
|
var.registers(['set'])
|
|
@Js
|
|
def PyJs_anonymous_1016_(fn, time, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'time':time, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['fn', 'args', 'time', 'boundArgs'])
|
|
var.put('boundArgs', (var.get('arguments').get('length')>Js(2.0)))
|
|
var.put('args', (var.get('slice').callprop('call', var.get('arguments'), Js(2.0)) if var.get('boundArgs') else Js(False)))
|
|
@Js
|
|
def PyJs_anonymous_1017_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
(var.get('fn') if (var.get('fn',throw=False).typeof()==Js('function')) else var.get('Function')(var.get('fn'))).callprop('apply', var.get(u"this"), var.get('args'))
|
|
PyJs_anonymous_1017_._set_name('anonymous')
|
|
return var.get('set')((PyJs_anonymous_1017_ if var.get('boundArgs') else var.get('fn')), var.get('time'))
|
|
PyJs_anonymous_1016_._set_name('anonymous')
|
|
return PyJs_anonymous_1016_
|
|
PyJs_wrap_1015_._set_name('wrap')
|
|
var.put('wrap', PyJs_wrap_1015_)
|
|
var.get('$export')(((var.get('$export').get('G')+var.get('$export').get('B'))+(var.get('$export').get('F')*var.get('MSIE'))), Js({'setTimeout':var.get('wrap')(var.get('global').get('setTimeout')),'setInterval':var.get('wrap')(var.get('global').get('setInterval'))}))
|
|
PyJs_anonymous_1014_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1018_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
var.get('require')(Js('./modules/es6.symbol'))
|
|
var.get('require')(Js('./modules/es6.object.create'))
|
|
var.get('require')(Js('./modules/es6.object.define-property'))
|
|
var.get('require')(Js('./modules/es6.object.define-properties'))
|
|
var.get('require')(Js('./modules/es6.object.get-own-property-descriptor'))
|
|
var.get('require')(Js('./modules/es6.object.get-prototype-of'))
|
|
var.get('require')(Js('./modules/es6.object.keys'))
|
|
var.get('require')(Js('./modules/es6.object.get-own-property-names'))
|
|
var.get('require')(Js('./modules/es6.object.freeze'))
|
|
var.get('require')(Js('./modules/es6.object.seal'))
|
|
var.get('require')(Js('./modules/es6.object.prevent-extensions'))
|
|
var.get('require')(Js('./modules/es6.object.is-frozen'))
|
|
var.get('require')(Js('./modules/es6.object.is-sealed'))
|
|
var.get('require')(Js('./modules/es6.object.is-extensible'))
|
|
var.get('require')(Js('./modules/es6.object.assign'))
|
|
var.get('require')(Js('./modules/es6.object.is'))
|
|
var.get('require')(Js('./modules/es6.object.set-prototype-of'))
|
|
var.get('require')(Js('./modules/es6.object.to-string'))
|
|
var.get('require')(Js('./modules/es6.function.bind'))
|
|
var.get('require')(Js('./modules/es6.function.name'))
|
|
var.get('require')(Js('./modules/es6.function.has-instance'))
|
|
var.get('require')(Js('./modules/es6.parse-int'))
|
|
var.get('require')(Js('./modules/es6.parse-float'))
|
|
var.get('require')(Js('./modules/es6.number.constructor'))
|
|
var.get('require')(Js('./modules/es6.number.to-fixed'))
|
|
var.get('require')(Js('./modules/es6.number.to-precision'))
|
|
var.get('require')(Js('./modules/es6.number.epsilon'))
|
|
var.get('require')(Js('./modules/es6.number.is-finite'))
|
|
var.get('require')(Js('./modules/es6.number.is-integer'))
|
|
var.get('require')(Js('./modules/es6.number.is-nan'))
|
|
var.get('require')(Js('./modules/es6.number.is-safe-integer'))
|
|
var.get('require')(Js('./modules/es6.number.max-safe-integer'))
|
|
var.get('require')(Js('./modules/es6.number.min-safe-integer'))
|
|
var.get('require')(Js('./modules/es6.number.parse-float'))
|
|
var.get('require')(Js('./modules/es6.number.parse-int'))
|
|
var.get('require')(Js('./modules/es6.math.acosh'))
|
|
var.get('require')(Js('./modules/es6.math.asinh'))
|
|
var.get('require')(Js('./modules/es6.math.atanh'))
|
|
var.get('require')(Js('./modules/es6.math.cbrt'))
|
|
var.get('require')(Js('./modules/es6.math.clz32'))
|
|
var.get('require')(Js('./modules/es6.math.cosh'))
|
|
var.get('require')(Js('./modules/es6.math.expm1'))
|
|
var.get('require')(Js('./modules/es6.math.fround'))
|
|
var.get('require')(Js('./modules/es6.math.hypot'))
|
|
var.get('require')(Js('./modules/es6.math.imul'))
|
|
var.get('require')(Js('./modules/es6.math.log10'))
|
|
var.get('require')(Js('./modules/es6.math.log1p'))
|
|
var.get('require')(Js('./modules/es6.math.log2'))
|
|
var.get('require')(Js('./modules/es6.math.sign'))
|
|
var.get('require')(Js('./modules/es6.math.sinh'))
|
|
var.get('require')(Js('./modules/es6.math.tanh'))
|
|
var.get('require')(Js('./modules/es6.math.trunc'))
|
|
var.get('require')(Js('./modules/es6.string.from-code-point'))
|
|
var.get('require')(Js('./modules/es6.string.raw'))
|
|
var.get('require')(Js('./modules/es6.string.trim'))
|
|
var.get('require')(Js('./modules/es6.string.iterator'))
|
|
var.get('require')(Js('./modules/es6.string.code-point-at'))
|
|
var.get('require')(Js('./modules/es6.string.ends-with'))
|
|
var.get('require')(Js('./modules/es6.string.includes'))
|
|
var.get('require')(Js('./modules/es6.string.repeat'))
|
|
var.get('require')(Js('./modules/es6.string.starts-with'))
|
|
var.get('require')(Js('./modules/es6.string.anchor'))
|
|
var.get('require')(Js('./modules/es6.string.big'))
|
|
var.get('require')(Js('./modules/es6.string.blink'))
|
|
var.get('require')(Js('./modules/es6.string.bold'))
|
|
var.get('require')(Js('./modules/es6.string.fixed'))
|
|
var.get('require')(Js('./modules/es6.string.fontcolor'))
|
|
var.get('require')(Js('./modules/es6.string.fontsize'))
|
|
var.get('require')(Js('./modules/es6.string.italics'))
|
|
var.get('require')(Js('./modules/es6.string.link'))
|
|
var.get('require')(Js('./modules/es6.string.small'))
|
|
var.get('require')(Js('./modules/es6.string.strike'))
|
|
var.get('require')(Js('./modules/es6.string.sub'))
|
|
var.get('require')(Js('./modules/es6.string.sup'))
|
|
var.get('require')(Js('./modules/es6.date.now'))
|
|
var.get('require')(Js('./modules/es6.date.to-json'))
|
|
var.get('require')(Js('./modules/es6.date.to-iso-string'))
|
|
var.get('require')(Js('./modules/es6.date.to-string'))
|
|
var.get('require')(Js('./modules/es6.date.to-primitive'))
|
|
var.get('require')(Js('./modules/es6.array.is-array'))
|
|
var.get('require')(Js('./modules/es6.array.from'))
|
|
var.get('require')(Js('./modules/es6.array.of'))
|
|
var.get('require')(Js('./modules/es6.array.join'))
|
|
var.get('require')(Js('./modules/es6.array.slice'))
|
|
var.get('require')(Js('./modules/es6.array.sort'))
|
|
var.get('require')(Js('./modules/es6.array.for-each'))
|
|
var.get('require')(Js('./modules/es6.array.map'))
|
|
var.get('require')(Js('./modules/es6.array.filter'))
|
|
var.get('require')(Js('./modules/es6.array.some'))
|
|
var.get('require')(Js('./modules/es6.array.every'))
|
|
var.get('require')(Js('./modules/es6.array.reduce'))
|
|
var.get('require')(Js('./modules/es6.array.reduce-right'))
|
|
var.get('require')(Js('./modules/es6.array.index-of'))
|
|
var.get('require')(Js('./modules/es6.array.last-index-of'))
|
|
var.get('require')(Js('./modules/es6.array.copy-within'))
|
|
var.get('require')(Js('./modules/es6.array.fill'))
|
|
var.get('require')(Js('./modules/es6.array.find'))
|
|
var.get('require')(Js('./modules/es6.array.find-index'))
|
|
var.get('require')(Js('./modules/es6.array.species'))
|
|
var.get('require')(Js('./modules/es6.array.iterator'))
|
|
var.get('require')(Js('./modules/es6.regexp.constructor'))
|
|
var.get('require')(Js('./modules/es6.regexp.exec'))
|
|
var.get('require')(Js('./modules/es6.regexp.to-string'))
|
|
var.get('require')(Js('./modules/es6.regexp.flags'))
|
|
var.get('require')(Js('./modules/es6.regexp.match'))
|
|
var.get('require')(Js('./modules/es6.regexp.replace'))
|
|
var.get('require')(Js('./modules/es6.regexp.search'))
|
|
var.get('require')(Js('./modules/es6.regexp.split'))
|
|
var.get('require')(Js('./modules/es6.promise'))
|
|
var.get('require')(Js('./modules/es6.map'))
|
|
var.get('require')(Js('./modules/es6.set'))
|
|
var.get('require')(Js('./modules/es6.weak-map'))
|
|
var.get('require')(Js('./modules/es6.weak-set'))
|
|
var.get('require')(Js('./modules/es6.typed.array-buffer'))
|
|
var.get('require')(Js('./modules/es6.typed.data-view'))
|
|
var.get('require')(Js('./modules/es6.typed.int8-array'))
|
|
var.get('require')(Js('./modules/es6.typed.uint8-array'))
|
|
var.get('require')(Js('./modules/es6.typed.uint8-clamped-array'))
|
|
var.get('require')(Js('./modules/es6.typed.int16-array'))
|
|
var.get('require')(Js('./modules/es6.typed.uint16-array'))
|
|
var.get('require')(Js('./modules/es6.typed.int32-array'))
|
|
var.get('require')(Js('./modules/es6.typed.uint32-array'))
|
|
var.get('require')(Js('./modules/es6.typed.float32-array'))
|
|
var.get('require')(Js('./modules/es6.typed.float64-array'))
|
|
var.get('require')(Js('./modules/es6.reflect.apply'))
|
|
var.get('require')(Js('./modules/es6.reflect.construct'))
|
|
var.get('require')(Js('./modules/es6.reflect.define-property'))
|
|
var.get('require')(Js('./modules/es6.reflect.delete-property'))
|
|
var.get('require')(Js('./modules/es6.reflect.enumerate'))
|
|
var.get('require')(Js('./modules/es6.reflect.get'))
|
|
var.get('require')(Js('./modules/es6.reflect.get-own-property-descriptor'))
|
|
var.get('require')(Js('./modules/es6.reflect.get-prototype-of'))
|
|
var.get('require')(Js('./modules/es6.reflect.has'))
|
|
var.get('require')(Js('./modules/es6.reflect.is-extensible'))
|
|
var.get('require')(Js('./modules/es6.reflect.own-keys'))
|
|
var.get('require')(Js('./modules/es6.reflect.prevent-extensions'))
|
|
var.get('require')(Js('./modules/es6.reflect.set'))
|
|
var.get('require')(Js('./modules/es6.reflect.set-prototype-of'))
|
|
var.get('require')(Js('./modules/es7.array.includes'))
|
|
var.get('require')(Js('./modules/es7.array.flat-map'))
|
|
var.get('require')(Js('./modules/es7.array.flatten'))
|
|
var.get('require')(Js('./modules/es7.string.at'))
|
|
var.get('require')(Js('./modules/es7.string.pad-start'))
|
|
var.get('require')(Js('./modules/es7.string.pad-end'))
|
|
var.get('require')(Js('./modules/es7.string.trim-left'))
|
|
var.get('require')(Js('./modules/es7.string.trim-right'))
|
|
var.get('require')(Js('./modules/es7.string.match-all'))
|
|
var.get('require')(Js('./modules/es7.symbol.async-iterator'))
|
|
var.get('require')(Js('./modules/es7.symbol.observable'))
|
|
var.get('require')(Js('./modules/es7.object.get-own-property-descriptors'))
|
|
var.get('require')(Js('./modules/es7.object.values'))
|
|
var.get('require')(Js('./modules/es7.object.entries'))
|
|
var.get('require')(Js('./modules/es7.object.define-getter'))
|
|
var.get('require')(Js('./modules/es7.object.define-setter'))
|
|
var.get('require')(Js('./modules/es7.object.lookup-getter'))
|
|
var.get('require')(Js('./modules/es7.object.lookup-setter'))
|
|
var.get('require')(Js('./modules/es7.map.to-json'))
|
|
var.get('require')(Js('./modules/es7.set.to-json'))
|
|
var.get('require')(Js('./modules/es7.map.of'))
|
|
var.get('require')(Js('./modules/es7.set.of'))
|
|
var.get('require')(Js('./modules/es7.weak-map.of'))
|
|
var.get('require')(Js('./modules/es7.weak-set.of'))
|
|
var.get('require')(Js('./modules/es7.map.from'))
|
|
var.get('require')(Js('./modules/es7.set.from'))
|
|
var.get('require')(Js('./modules/es7.weak-map.from'))
|
|
var.get('require')(Js('./modules/es7.weak-set.from'))
|
|
var.get('require')(Js('./modules/es7.global'))
|
|
var.get('require')(Js('./modules/es7.system.global'))
|
|
var.get('require')(Js('./modules/es7.error.is-error'))
|
|
var.get('require')(Js('./modules/es7.math.clamp'))
|
|
var.get('require')(Js('./modules/es7.math.deg-per-rad'))
|
|
var.get('require')(Js('./modules/es7.math.degrees'))
|
|
var.get('require')(Js('./modules/es7.math.fscale'))
|
|
var.get('require')(Js('./modules/es7.math.iaddh'))
|
|
var.get('require')(Js('./modules/es7.math.isubh'))
|
|
var.get('require')(Js('./modules/es7.math.imulh'))
|
|
var.get('require')(Js('./modules/es7.math.rad-per-deg'))
|
|
var.get('require')(Js('./modules/es7.math.radians'))
|
|
var.get('require')(Js('./modules/es7.math.scale'))
|
|
var.get('require')(Js('./modules/es7.math.umulh'))
|
|
var.get('require')(Js('./modules/es7.math.signbit'))
|
|
var.get('require')(Js('./modules/es7.promise.finally'))
|
|
var.get('require')(Js('./modules/es7.promise.try'))
|
|
var.get('require')(Js('./modules/es7.reflect.define-metadata'))
|
|
var.get('require')(Js('./modules/es7.reflect.delete-metadata'))
|
|
var.get('require')(Js('./modules/es7.reflect.get-metadata'))
|
|
var.get('require')(Js('./modules/es7.reflect.get-metadata-keys'))
|
|
var.get('require')(Js('./modules/es7.reflect.get-own-metadata'))
|
|
var.get('require')(Js('./modules/es7.reflect.get-own-metadata-keys'))
|
|
var.get('require')(Js('./modules/es7.reflect.has-metadata'))
|
|
var.get('require')(Js('./modules/es7.reflect.has-own-metadata'))
|
|
var.get('require')(Js('./modules/es7.reflect.metadata'))
|
|
var.get('require')(Js('./modules/es7.asap'))
|
|
var.get('require')(Js('./modules/es7.observable'))
|
|
var.get('require')(Js('./modules/web.timers'))
|
|
var.get('require')(Js('./modules/web.immediate'))
|
|
var.get('require')(Js('./modules/web.dom.iterable'))
|
|
var.get('module').put('exports', var.get('require')(Js('./modules/_core')))
|
|
PyJs_anonymous_1018_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1019_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1020_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1021_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C_lib', 'C', 'RCON', 'C_algo', 'AES', 'SUB_MIX_2', 'BlockCipher', 'SUB_MIX_3', 'INV_SUB_MIX_1', 'INV_SBOX', 'INV_SUB_MIX_2', 'INV_SUB_MIX_3', 'INV_SUB_MIX_0', 'SBOX', 'SUB_MIX_1', 'SUB_MIX_0'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('BlockCipher', var.get('C_lib').get('BlockCipher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('SBOX', Js([]))
|
|
var.put('INV_SBOX', Js([]))
|
|
var.put('SUB_MIX_0', Js([]))
|
|
var.put('SUB_MIX_1', Js([]))
|
|
var.put('SUB_MIX_2', Js([]))
|
|
var.put('SUB_MIX_3', Js([]))
|
|
var.put('INV_SUB_MIX_0', Js([]))
|
|
var.put('INV_SUB_MIX_1', Js([]))
|
|
var.put('INV_SUB_MIX_2', Js([]))
|
|
var.put('INV_SUB_MIX_3', Js([]))
|
|
@Js
|
|
def PyJs_anonymous_1022_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['xi', 'd', 'x', 'i', 't', 'sx', 'x2', 'x8', 'x4'])
|
|
var.put('d', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(256.0)):
|
|
try:
|
|
if (var.get('i')<Js(128.0)):
|
|
var.get('d').put(var.get('i'), (var.get('i')<<Js(1.0)))
|
|
else:
|
|
var.get('d').put(var.get('i'), ((var.get('i')<<Js(1.0))^Js(283)))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.put('x', Js(0.0))
|
|
var.put('xi', Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(256.0)):
|
|
try:
|
|
var.put('sx', ((((var.get('xi')^(var.get('xi')<<Js(1.0)))^(var.get('xi')<<Js(2.0)))^(var.get('xi')<<Js(3.0)))^(var.get('xi')<<Js(4.0))))
|
|
var.put('sx', ((PyJsBshift(var.get('sx'),Js(8.0))^(var.get('sx')&Js(255)))^Js(99)))
|
|
var.get('SBOX').put(var.get('x'), var.get('sx'))
|
|
var.get('INV_SBOX').put(var.get('sx'), var.get('x'))
|
|
var.put('x2', var.get('d').get(var.get('x')))
|
|
var.put('x4', var.get('d').get(var.get('x2')))
|
|
var.put('x8', var.get('d').get(var.get('x4')))
|
|
var.put('t', ((var.get('d').get(var.get('sx'))*Js(257))^(var.get('sx')*Js(16843008))))
|
|
var.get('SUB_MIX_0').put(var.get('x'), ((var.get('t')<<Js(24.0))|PyJsBshift(var.get('t'),Js(8.0))))
|
|
var.get('SUB_MIX_1').put(var.get('x'), ((var.get('t')<<Js(16.0))|PyJsBshift(var.get('t'),Js(16.0))))
|
|
var.get('SUB_MIX_2').put(var.get('x'), ((var.get('t')<<Js(8.0))|PyJsBshift(var.get('t'),Js(24.0))))
|
|
var.get('SUB_MIX_3').put(var.get('x'), var.get('t'))
|
|
var.put('t', ((((var.get('x8')*Js(16843009))^(var.get('x4')*Js(65537)))^(var.get('x2')*Js(257)))^(var.get('x')*Js(16843008))))
|
|
var.get('INV_SUB_MIX_0').put(var.get('sx'), ((var.get('t')<<Js(24.0))|PyJsBshift(var.get('t'),Js(8.0))))
|
|
var.get('INV_SUB_MIX_1').put(var.get('sx'), ((var.get('t')<<Js(16.0))|PyJsBshift(var.get('t'),Js(16.0))))
|
|
var.get('INV_SUB_MIX_2').put(var.get('sx'), ((var.get('t')<<Js(8.0))|PyJsBshift(var.get('t'),Js(24.0))))
|
|
var.get('INV_SUB_MIX_3').put(var.get('sx'), var.get('t'))
|
|
if var.get('x').neg():
|
|
var.put('x', var.put('xi', Js(1.0)))
|
|
else:
|
|
var.put('x', (var.get('x2')^var.get('d').get(var.get('d').get(var.get('d').get((var.get('x8')^var.get('x2')))))))
|
|
var.put('xi', var.get('d').get(var.get('d').get(var.get('xi'))), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_1022_._set_name('anonymous')
|
|
PyJs_anonymous_1022_()
|
|
var.put('RCON', Js([Js(0), Js(1), Js(2), Js(4), Js(8), Js(16), Js(32), Js(64), Js(128), Js(27), Js(54)]))
|
|
@Js
|
|
def PyJs__doReset_1023_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1023_}, var)
|
|
var.registers(['ksRow', 'invKeySchedule', 'keyWords', 't', 'invKsRow', 'nRounds', 'ksRows', 'keySize', 'keySchedule', 'key'])
|
|
if (var.get(u"this").get('_nRounds') and PyJsStrictEq(var.get(u"this").get('_keyPriorReset'),var.get(u"this").get('_key'))):
|
|
return var.get('undefined')
|
|
var.put('key', var.get(u"this").put('_keyPriorReset', var.get(u"this").get('_key')))
|
|
var.put('keyWords', var.get('key').get('words'))
|
|
var.put('keySize', (var.get('key').get('sigBytes')/Js(4.0)))
|
|
var.put('nRounds', var.get(u"this").put('_nRounds', (var.get('keySize')+Js(6.0))))
|
|
var.put('ksRows', ((var.get('nRounds')+Js(1.0))*Js(4.0)))
|
|
var.put('keySchedule', var.get(u"this").put('_keySchedule', Js([])))
|
|
#for JS loop
|
|
var.put('ksRow', Js(0.0))
|
|
while (var.get('ksRow')<var.get('ksRows')):
|
|
try:
|
|
if (var.get('ksRow')<var.get('keySize')):
|
|
var.get('keySchedule').put(var.get('ksRow'), var.get('keyWords').get(var.get('ksRow')))
|
|
else:
|
|
var.put('t', var.get('keySchedule').get((var.get('ksRow')-Js(1.0))))
|
|
if (var.get('ksRow')%var.get('keySize')).neg():
|
|
var.put('t', ((var.get('t')<<Js(8.0))|PyJsBshift(var.get('t'),Js(24.0))))
|
|
var.put('t', ((((var.get('SBOX').get(PyJsBshift(var.get('t'),Js(24.0)))<<Js(24.0))|(var.get('SBOX').get((PyJsBshift(var.get('t'),Js(16.0))&Js(255)))<<Js(16.0)))|(var.get('SBOX').get((PyJsBshift(var.get('t'),Js(8.0))&Js(255)))<<Js(8.0)))|var.get('SBOX').get((var.get('t')&Js(255)))))
|
|
var.put('t', (var.get('RCON').get(((var.get('ksRow')/var.get('keySize'))|Js(0.0)))<<Js(24.0)), '^')
|
|
else:
|
|
if ((var.get('keySize')>Js(6.0)) and ((var.get('ksRow')%var.get('keySize'))==Js(4.0))):
|
|
var.put('t', ((((var.get('SBOX').get(PyJsBshift(var.get('t'),Js(24.0)))<<Js(24.0))|(var.get('SBOX').get((PyJsBshift(var.get('t'),Js(16.0))&Js(255)))<<Js(16.0)))|(var.get('SBOX').get((PyJsBshift(var.get('t'),Js(8.0))&Js(255)))<<Js(8.0)))|var.get('SBOX').get((var.get('t')&Js(255)))))
|
|
var.get('keySchedule').put(var.get('ksRow'), (var.get('keySchedule').get((var.get('ksRow')-var.get('keySize')))^var.get('t')))
|
|
finally:
|
|
(var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1))
|
|
var.put('invKeySchedule', var.get(u"this").put('_invKeySchedule', Js([])))
|
|
#for JS loop
|
|
var.put('invKsRow', Js(0.0))
|
|
while (var.get('invKsRow')<var.get('ksRows')):
|
|
try:
|
|
var.put('ksRow', (var.get('ksRows')-var.get('invKsRow')))
|
|
if (var.get('invKsRow')%Js(4.0)):
|
|
var.put('t', var.get('keySchedule').get(var.get('ksRow')))
|
|
else:
|
|
var.put('t', var.get('keySchedule').get((var.get('ksRow')-Js(4.0))))
|
|
if ((var.get('invKsRow')<Js(4.0)) or (var.get('ksRow')<=Js(4.0))):
|
|
var.get('invKeySchedule').put(var.get('invKsRow'), var.get('t'))
|
|
else:
|
|
def PyJs_LONG_1024_(var=var):
|
|
return var.get('invKeySchedule').put(var.get('invKsRow'), (((var.get('INV_SUB_MIX_0').get(var.get('SBOX').get(PyJsBshift(var.get('t'),Js(24.0))))^var.get('INV_SUB_MIX_1').get(var.get('SBOX').get((PyJsBshift(var.get('t'),Js(16.0))&Js(255)))))^var.get('INV_SUB_MIX_2').get(var.get('SBOX').get((PyJsBshift(var.get('t'),Js(8.0))&Js(255)))))^var.get('INV_SUB_MIX_3').get(var.get('SBOX').get((var.get('t')&Js(255))))))
|
|
PyJs_LONG_1024_()
|
|
finally:
|
|
(var.put('invKsRow',Js(var.get('invKsRow').to_number())+Js(1))-Js(1))
|
|
PyJs__doReset_1023_._set_name('_doReset')
|
|
@Js
|
|
def PyJs_encryptBlock_1025_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, 'encryptBlock':PyJs_encryptBlock_1025_}, var)
|
|
var.registers(['offset', 'M'])
|
|
var.get(u"this").callprop('_doCryptBlock', var.get('M'), var.get('offset'), var.get(u"this").get('_keySchedule'), var.get('SUB_MIX_0'), var.get('SUB_MIX_1'), var.get('SUB_MIX_2'), var.get('SUB_MIX_3'), var.get('SBOX'))
|
|
PyJs_encryptBlock_1025_._set_name('encryptBlock')
|
|
@Js
|
|
def PyJs_decryptBlock_1026_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, 'decryptBlock':PyJs_decryptBlock_1026_}, var)
|
|
var.registers(['offset', 'M', 't'])
|
|
var.put('t', var.get('M').get((var.get('offset')+Js(1.0))))
|
|
var.get('M').put((var.get('offset')+Js(1.0)), var.get('M').get((var.get('offset')+Js(3.0))))
|
|
var.get('M').put((var.get('offset')+Js(3.0)), var.get('t'))
|
|
var.get(u"this").callprop('_doCryptBlock', var.get('M'), var.get('offset'), var.get(u"this").get('_invKeySchedule'), var.get('INV_SUB_MIX_0'), var.get('INV_SUB_MIX_1'), var.get('INV_SUB_MIX_2'), var.get('INV_SUB_MIX_3'), var.get('INV_SBOX'))
|
|
var.put('t', var.get('M').get((var.get('offset')+Js(1.0))))
|
|
var.get('M').put((var.get('offset')+Js(1.0)), var.get('M').get((var.get('offset')+Js(3.0))))
|
|
var.get('M').put((var.get('offset')+Js(3.0)), var.get('t'))
|
|
PyJs_decryptBlock_1026_._set_name('decryptBlock')
|
|
@Js
|
|
def PyJs__doCryptBlock_1027_(M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'keySchedule':keySchedule, 'SUB_MIX_0':SUB_MIX_0, 'SUB_MIX_1':SUB_MIX_1, 'SUB_MIX_2':SUB_MIX_2, 'SUB_MIX_3':SUB_MIX_3, 'SBOX':SBOX, 'this':this, 'arguments':arguments, '_doCryptBlock':PyJs__doCryptBlock_1027_}, var)
|
|
var.registers(['s3', 'SUB_MIX_2', 'SUB_MIX_3', 's1', 't1', 'nRounds', 'offset', 'SBOX', 'SUB_MIX_1', 't3', 's2', 'SUB_MIX_0', 'keySchedule', 't2', 's0', 'ksRow', 'round', 'M', 't0'])
|
|
var.put('nRounds', var.get(u"this").get('_nRounds'))
|
|
var.put('s0', (var.get('M').get(var.get('offset'))^var.get('keySchedule').get('0')))
|
|
var.put('s1', (var.get('M').get((var.get('offset')+Js(1.0)))^var.get('keySchedule').get('1')))
|
|
var.put('s2', (var.get('M').get((var.get('offset')+Js(2.0)))^var.get('keySchedule').get('2')))
|
|
var.put('s3', (var.get('M').get((var.get('offset')+Js(3.0)))^var.get('keySchedule').get('3')))
|
|
var.put('ksRow', Js(4.0))
|
|
#for JS loop
|
|
var.put('round', Js(1.0))
|
|
while (var.get('round')<var.get('nRounds')):
|
|
try:
|
|
var.put('t0', ((((var.get('SUB_MIX_0').get(PyJsBshift(var.get('s0'),Js(24.0)))^var.get('SUB_MIX_1').get((PyJsBshift(var.get('s1'),Js(16.0))&Js(255))))^var.get('SUB_MIX_2').get((PyJsBshift(var.get('s2'),Js(8.0))&Js(255))))^var.get('SUB_MIX_3').get((var.get('s3')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.put('t1', ((((var.get('SUB_MIX_0').get(PyJsBshift(var.get('s1'),Js(24.0)))^var.get('SUB_MIX_1').get((PyJsBshift(var.get('s2'),Js(16.0))&Js(255))))^var.get('SUB_MIX_2').get((PyJsBshift(var.get('s3'),Js(8.0))&Js(255))))^var.get('SUB_MIX_3').get((var.get('s0')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.put('t2', ((((var.get('SUB_MIX_0').get(PyJsBshift(var.get('s2'),Js(24.0)))^var.get('SUB_MIX_1').get((PyJsBshift(var.get('s3'),Js(16.0))&Js(255))))^var.get('SUB_MIX_2').get((PyJsBshift(var.get('s0'),Js(8.0))&Js(255))))^var.get('SUB_MIX_3').get((var.get('s1')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.put('t3', ((((var.get('SUB_MIX_0').get(PyJsBshift(var.get('s3'),Js(24.0)))^var.get('SUB_MIX_1').get((PyJsBshift(var.get('s0'),Js(16.0))&Js(255))))^var.get('SUB_MIX_2').get((PyJsBshift(var.get('s1'),Js(8.0))&Js(255))))^var.get('SUB_MIX_3').get((var.get('s2')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.put('s0', var.get('t0'))
|
|
var.put('s1', var.get('t1'))
|
|
var.put('s2', var.get('t2'))
|
|
var.put('s3', var.get('t3'))
|
|
finally:
|
|
(var.put('round',Js(var.get('round').to_number())+Js(1))-Js(1))
|
|
var.put('t0', (((((var.get('SBOX').get(PyJsBshift(var.get('s0'),Js(24.0)))<<Js(24.0))|(var.get('SBOX').get((PyJsBshift(var.get('s1'),Js(16.0))&Js(255)))<<Js(16.0)))|(var.get('SBOX').get((PyJsBshift(var.get('s2'),Js(8.0))&Js(255)))<<Js(8.0)))|var.get('SBOX').get((var.get('s3')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.put('t1', (((((var.get('SBOX').get(PyJsBshift(var.get('s1'),Js(24.0)))<<Js(24.0))|(var.get('SBOX').get((PyJsBshift(var.get('s2'),Js(16.0))&Js(255)))<<Js(16.0)))|(var.get('SBOX').get((PyJsBshift(var.get('s3'),Js(8.0))&Js(255)))<<Js(8.0)))|var.get('SBOX').get((var.get('s0')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.put('t2', (((((var.get('SBOX').get(PyJsBshift(var.get('s2'),Js(24.0)))<<Js(24.0))|(var.get('SBOX').get((PyJsBshift(var.get('s3'),Js(16.0))&Js(255)))<<Js(16.0)))|(var.get('SBOX').get((PyJsBshift(var.get('s0'),Js(8.0))&Js(255)))<<Js(8.0)))|var.get('SBOX').get((var.get('s1')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.put('t3', (((((var.get('SBOX').get(PyJsBshift(var.get('s3'),Js(24.0)))<<Js(24.0))|(var.get('SBOX').get((PyJsBshift(var.get('s0'),Js(16.0))&Js(255)))<<Js(16.0)))|(var.get('SBOX').get((PyJsBshift(var.get('s1'),Js(8.0))&Js(255)))<<Js(8.0)))|var.get('SBOX').get((var.get('s2')&Js(255))))^var.get('keySchedule').get((var.put('ksRow',Js(var.get('ksRow').to_number())+Js(1))-Js(1)))))
|
|
var.get('M').put(var.get('offset'), var.get('t0'))
|
|
var.get('M').put((var.get('offset')+Js(1.0)), var.get('t1'))
|
|
var.get('M').put((var.get('offset')+Js(2.0)), var.get('t2'))
|
|
var.get('M').put((var.get('offset')+Js(3.0)), var.get('t3'))
|
|
PyJs__doCryptBlock_1027_._set_name('_doCryptBlock')
|
|
var.put('AES', var.get('C_algo').put('AES', var.get('BlockCipher').callprop('extend', Js({'_doReset':PyJs__doReset_1023_,'encryptBlock':PyJs_encryptBlock_1025_,'decryptBlock':PyJs_decryptBlock_1026_,'_doCryptBlock':PyJs__doCryptBlock_1027_,'keySize':(Js(256.0)/Js(32.0))}))))
|
|
var.get('C').put('AES', var.get('BlockCipher').callprop('_createHelper', var.get('AES')))
|
|
PyJs_anonymous_1021_._set_name('anonymous')
|
|
PyJs_anonymous_1021_()
|
|
return var.get('CryptoJS').get('AES')
|
|
PyJs_anonymous_1020_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1028_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./enc-base64')), var.get('require')(Js('./md5')), var.get('require')(Js('./evpkdf')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./enc-base64'), Js('./md5'), Js('./evpkdf'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1028_._set_name('anonymous')
|
|
PyJs_anonymous_1028_(var.get(u"this"), PyJs_anonymous_1020_)
|
|
PyJs_anonymous_1019_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1029_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1030_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1031_(undefined, this, arguments, var=var):
|
|
var = Scope({'undefined':undefined, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'BufferedBlockAlgorithm', 'C_algo', 'EvpKDF', 'CipherParams', 'C_enc', 'Base', 'SerializableCipher', 'C_format', 'WordArray', 'CBC', 'undefined', 'OpenSSLKdf', 'Cipher', 'Base64', 'C_lib', 'Utf8', 'StreamCipher', 'BlockCipherMode', 'C_mode', 'Pkcs7', 'PasswordBasedCipher', 'C_pad', 'BlockCipher', 'OpenSSLFormatter', 'C_kdf'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('Base', var.get('C_lib').get('Base'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('BufferedBlockAlgorithm', var.get('C_lib').get('BufferedBlockAlgorithm'))
|
|
var.put('C_enc', var.get('C').get('enc'))
|
|
var.put('Utf8', var.get('C_enc').get('Utf8'))
|
|
var.put('Base64', var.get('C_enc').get('Base64'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('EvpKDF', var.get('C_algo').get('EvpKDF'))
|
|
def PyJs_LONG_1042_(var=var):
|
|
@Js
|
|
def PyJs_createEncryptor_1032_(key, cfg, this, arguments, var=var):
|
|
var = Scope({'key':key, 'cfg':cfg, 'this':this, 'arguments':arguments, 'createEncryptor':PyJs_createEncryptor_1032_}, var)
|
|
var.registers(['cfg', 'key'])
|
|
return var.get(u"this").callprop('create', var.get(u"this").get('_ENC_XFORM_MODE'), var.get('key'), var.get('cfg'))
|
|
PyJs_createEncryptor_1032_._set_name('createEncryptor')
|
|
@Js
|
|
def PyJs_createDecryptor_1033_(key, cfg, this, arguments, var=var):
|
|
var = Scope({'key':key, 'cfg':cfg, 'this':this, 'arguments':arguments, 'createDecryptor':PyJs_createDecryptor_1033_}, var)
|
|
var.registers(['cfg', 'key'])
|
|
return var.get(u"this").callprop('create', var.get(u"this").get('_DEC_XFORM_MODE'), var.get('key'), var.get('cfg'))
|
|
PyJs_createDecryptor_1033_._set_name('createDecryptor')
|
|
@Js
|
|
def PyJs_init_1034_(xformMode, key, cfg, this, arguments, var=var):
|
|
var = Scope({'xformMode':xformMode, 'key':key, 'cfg':cfg, 'this':this, 'arguments':arguments, 'init':PyJs_init_1034_}, var)
|
|
var.registers(['cfg', 'xformMode', 'key'])
|
|
var.get(u"this").put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
var.get(u"this").put('_xformMode', var.get('xformMode'))
|
|
var.get(u"this").put('_key', var.get('key'))
|
|
var.get(u"this").callprop('reset')
|
|
PyJs_init_1034_._set_name('init')
|
|
@Js
|
|
def PyJs_reset_1035_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'reset':PyJs_reset_1035_}, var)
|
|
var.registers([])
|
|
var.get('BufferedBlockAlgorithm').get('reset').callprop('call', var.get(u"this"))
|
|
var.get(u"this").callprop('_doReset')
|
|
PyJs_reset_1035_._set_name('reset')
|
|
@Js
|
|
def PyJs_process_1036_(dataUpdate, this, arguments, var=var):
|
|
var = Scope({'dataUpdate':dataUpdate, 'this':this, 'arguments':arguments, 'process':PyJs_process_1036_}, var)
|
|
var.registers(['dataUpdate'])
|
|
var.get(u"this").callprop('_append', var.get('dataUpdate'))
|
|
return var.get(u"this").callprop('_process')
|
|
PyJs_process_1036_._set_name('process')
|
|
@Js
|
|
def PyJs_finalize_1037_(dataUpdate, this, arguments, var=var):
|
|
var = Scope({'dataUpdate':dataUpdate, 'this':this, 'arguments':arguments, 'finalize':PyJs_finalize_1037_}, var)
|
|
var.registers(['dataUpdate', 'finalProcessedData'])
|
|
if var.get('dataUpdate'):
|
|
var.get(u"this").callprop('_append', var.get('dataUpdate'))
|
|
var.put('finalProcessedData', var.get(u"this").callprop('_doFinalize'))
|
|
return var.get('finalProcessedData')
|
|
PyJs_finalize_1037_._set_name('finalize')
|
|
@Js
|
|
def PyJs_anonymous_1038_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['selectCipherStrategy'])
|
|
@Js
|
|
def PyJsHoisted_selectCipherStrategy_(key, this, arguments, var=var):
|
|
var = Scope({'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['key'])
|
|
if (var.get('key',throw=False).typeof()==Js('string')):
|
|
return var.get('PasswordBasedCipher')
|
|
else:
|
|
return var.get('SerializableCipher')
|
|
PyJsHoisted_selectCipherStrategy_.func_name = 'selectCipherStrategy'
|
|
var.put('selectCipherStrategy', PyJsHoisted_selectCipherStrategy_)
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1039_(cipher, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['cipher'])
|
|
@Js
|
|
def PyJs_encrypt_1040_(message, key, cfg, this, arguments, var=var):
|
|
var = Scope({'message':message, 'key':key, 'cfg':cfg, 'this':this, 'arguments':arguments, 'encrypt':PyJs_encrypt_1040_}, var)
|
|
var.registers(['cfg', 'message', 'key'])
|
|
return var.get('selectCipherStrategy')(var.get('key')).callprop('encrypt', var.get('cipher'), var.get('message'), var.get('key'), var.get('cfg'))
|
|
PyJs_encrypt_1040_._set_name('encrypt')
|
|
@Js
|
|
def PyJs_decrypt_1041_(ciphertext, key, cfg, this, arguments, var=var):
|
|
var = Scope({'ciphertext':ciphertext, 'key':key, 'cfg':cfg, 'this':this, 'arguments':arguments, 'decrypt':PyJs_decrypt_1041_}, var)
|
|
var.registers(['cfg', 'ciphertext', 'key'])
|
|
return var.get('selectCipherStrategy')(var.get('key')).callprop('decrypt', var.get('cipher'), var.get('ciphertext'), var.get('key'), var.get('cfg'))
|
|
PyJs_decrypt_1041_._set_name('decrypt')
|
|
return Js({'encrypt':PyJs_encrypt_1040_,'decrypt':PyJs_decrypt_1041_})
|
|
PyJs_anonymous_1039_._set_name('anonymous')
|
|
return PyJs_anonymous_1039_
|
|
PyJs_anonymous_1038_._set_name('anonymous')
|
|
return var.get('BufferedBlockAlgorithm').callprop('extend', Js({'cfg':var.get('Base').callprop('extend'),'createEncryptor':PyJs_createEncryptor_1032_,'createDecryptor':PyJs_createDecryptor_1033_,'init':PyJs_init_1034_,'reset':PyJs_reset_1035_,'process':PyJs_process_1036_,'finalize':PyJs_finalize_1037_,'keySize':(Js(128.0)/Js(32.0)),'ivSize':(Js(128.0)/Js(32.0)),'_ENC_XFORM_MODE':Js(1.0),'_DEC_XFORM_MODE':Js(2.0),'_createHelper':PyJs_anonymous_1038_()}))
|
|
var.put('Cipher', var.get('C_lib').put('Cipher', PyJs_LONG_1042_()))
|
|
@Js
|
|
def PyJs__doFinalize_1043_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1043_}, var)
|
|
var.registers(['finalProcessedBlocks'])
|
|
var.put('finalProcessedBlocks', var.get(u"this").callprop('_process', Js('flush').neg().neg()))
|
|
return var.get('finalProcessedBlocks')
|
|
PyJs__doFinalize_1043_._set_name('_doFinalize')
|
|
var.put('StreamCipher', var.get('C_lib').put('StreamCipher', var.get('Cipher').callprop('extend', Js({'_doFinalize':PyJs__doFinalize_1043_,'blockSize':Js(1.0)}))))
|
|
var.put('C_mode', var.get('C').put('mode', Js({})))
|
|
@Js
|
|
def PyJs_createEncryptor_1044_(cipher, iv, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'iv':iv, 'this':this, 'arguments':arguments, 'createEncryptor':PyJs_createEncryptor_1044_}, var)
|
|
var.registers(['iv', 'cipher'])
|
|
return var.get(u"this").get('Encryptor').callprop('create', var.get('cipher'), var.get('iv'))
|
|
PyJs_createEncryptor_1044_._set_name('createEncryptor')
|
|
@Js
|
|
def PyJs_createDecryptor_1045_(cipher, iv, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'iv':iv, 'this':this, 'arguments':arguments, 'createDecryptor':PyJs_createDecryptor_1045_}, var)
|
|
var.registers(['iv', 'cipher'])
|
|
return var.get(u"this").get('Decryptor').callprop('create', var.get('cipher'), var.get('iv'))
|
|
PyJs_createDecryptor_1045_._set_name('createDecryptor')
|
|
@Js
|
|
def PyJs_init_1046_(cipher, iv, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'iv':iv, 'this':this, 'arguments':arguments, 'init':PyJs_init_1046_}, var)
|
|
var.registers(['iv', 'cipher'])
|
|
var.get(u"this").put('_cipher', var.get('cipher'))
|
|
var.get(u"this").put('_iv', var.get('iv'))
|
|
PyJs_init_1046_._set_name('init')
|
|
var.put('BlockCipherMode', var.get('C_lib').put('BlockCipherMode', var.get('Base').callprop('extend', Js({'createEncryptor':PyJs_createEncryptor_1044_,'createDecryptor':PyJs_createDecryptor_1045_,'init':PyJs_init_1046_}))))
|
|
@Js
|
|
def PyJs_anonymous_1047_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['xorBlock', 'CBC'])
|
|
@Js
|
|
def PyJsHoisted_xorBlock_(words, offset, blockSize, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'blockSize':blockSize, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['blockSize', 'iv', 'i', 'words', 'block', 'offset'])
|
|
var.put('iv', var.get(u"this").get('_iv'))
|
|
if var.get('iv'):
|
|
var.put('block', var.get('iv'))
|
|
var.get(u"this").put('_iv', var.get('undefined'))
|
|
else:
|
|
var.put('block', var.get(u"this").get('_prevBlock'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('blockSize')):
|
|
try:
|
|
var.get('words').put((var.get('offset')+var.get('i')), var.get('block').get(var.get('i')), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJsHoisted_xorBlock_.func_name = 'xorBlock'
|
|
var.put('xorBlock', PyJsHoisted_xorBlock_)
|
|
var.put('CBC', var.get('BlockCipherMode').callprop('extend'))
|
|
@Js
|
|
def PyJs_processBlock_1048_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1048_}, var)
|
|
var.registers(['offset', 'cipher', 'words', 'blockSize'])
|
|
var.put('cipher', var.get(u"this").get('_cipher'))
|
|
var.put('blockSize', var.get('cipher').get('blockSize'))
|
|
var.get('xorBlock').callprop('call', var.get(u"this"), var.get('words'), var.get('offset'), var.get('blockSize'))
|
|
var.get('cipher').callprop('encryptBlock', var.get('words'), var.get('offset'))
|
|
var.get(u"this").put('_prevBlock', var.get('words').callprop('slice', var.get('offset'), (var.get('offset')+var.get('blockSize'))))
|
|
PyJs_processBlock_1048_._set_name('processBlock')
|
|
var.get('CBC').put('Encryptor', var.get('CBC').callprop('extend', Js({'processBlock':PyJs_processBlock_1048_})))
|
|
@Js
|
|
def PyJs_processBlock_1049_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1049_}, var)
|
|
var.registers(['blockSize', 'thisBlock', 'words', 'cipher', 'offset'])
|
|
var.put('cipher', var.get(u"this").get('_cipher'))
|
|
var.put('blockSize', var.get('cipher').get('blockSize'))
|
|
var.put('thisBlock', var.get('words').callprop('slice', var.get('offset'), (var.get('offset')+var.get('blockSize'))))
|
|
var.get('cipher').callprop('decryptBlock', var.get('words'), var.get('offset'))
|
|
var.get('xorBlock').callprop('call', var.get(u"this"), var.get('words'), var.get('offset'), var.get('blockSize'))
|
|
var.get(u"this").put('_prevBlock', var.get('thisBlock'))
|
|
PyJs_processBlock_1049_._set_name('processBlock')
|
|
var.get('CBC').put('Decryptor', var.get('CBC').callprop('extend', Js({'processBlock':PyJs_processBlock_1049_})))
|
|
pass
|
|
return var.get('CBC')
|
|
PyJs_anonymous_1047_._set_name('anonymous')
|
|
var.put('CBC', var.get('C_mode').put('CBC', PyJs_anonymous_1047_()))
|
|
var.put('C_pad', var.get('C').put('pad', Js({})))
|
|
@Js
|
|
def PyJs_pad_1050_(data, blockSize, this, arguments, var=var):
|
|
var = Scope({'data':data, 'blockSize':blockSize, 'this':this, 'arguments':arguments, 'pad':PyJs_pad_1050_}, var)
|
|
var.registers(['nPaddingBytes', 'paddingWord', 'blockSize', 'paddingWords', 'i', 'blockSizeBytes', 'data', 'padding'])
|
|
var.put('blockSizeBytes', (var.get('blockSize')*Js(4.0)))
|
|
var.put('nPaddingBytes', (var.get('blockSizeBytes')-(var.get('data').get('sigBytes')%var.get('blockSizeBytes'))))
|
|
var.put('paddingWord', ((((var.get('nPaddingBytes')<<Js(24.0))|(var.get('nPaddingBytes')<<Js(16.0)))|(var.get('nPaddingBytes')<<Js(8.0)))|var.get('nPaddingBytes')))
|
|
var.put('paddingWords', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('nPaddingBytes')):
|
|
try:
|
|
var.get('paddingWords').callprop('push', var.get('paddingWord'))
|
|
finally:
|
|
var.put('i', Js(4.0), '+')
|
|
var.put('padding', var.get('WordArray').callprop('create', var.get('paddingWords'), var.get('nPaddingBytes')))
|
|
var.get('data').callprop('concat', var.get('padding'))
|
|
PyJs_pad_1050_._set_name('pad')
|
|
@Js
|
|
def PyJs_unpad_1051_(data, this, arguments, var=var):
|
|
var = Scope({'data':data, 'this':this, 'arguments':arguments, 'unpad':PyJs_unpad_1051_}, var)
|
|
var.registers(['nPaddingBytes', 'data'])
|
|
var.put('nPaddingBytes', (var.get('data').get('words').get(PyJsBshift((var.get('data').get('sigBytes')-Js(1.0)),Js(2.0)))&Js(255)))
|
|
var.get('data').put('sigBytes', var.get('nPaddingBytes'), '-')
|
|
PyJs_unpad_1051_._set_name('unpad')
|
|
var.put('Pkcs7', var.get('C_pad').put('Pkcs7', Js({'pad':PyJs_pad_1050_,'unpad':PyJs_unpad_1051_})))
|
|
@Js
|
|
def PyJs_reset_1052_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'reset':PyJs_reset_1052_}, var)
|
|
var.registers(['cfg', 'modeCreator', 'mode', 'iv'])
|
|
var.get('Cipher').get('reset').callprop('call', var.get(u"this"))
|
|
var.put('cfg', var.get(u"this").get('cfg'))
|
|
var.put('iv', var.get('cfg').get('iv'))
|
|
var.put('mode', var.get('cfg').get('mode'))
|
|
if (var.get(u"this").get('_xformMode')==var.get(u"this").get('_ENC_XFORM_MODE')):
|
|
var.put('modeCreator', var.get('mode').get('createEncryptor'))
|
|
else:
|
|
var.put('modeCreator', var.get('mode').get('createDecryptor'))
|
|
var.get(u"this").put('_minBufferSize', Js(1.0))
|
|
var.get(u"this").put('_mode', var.get('modeCreator').callprop('call', var.get('mode'), var.get(u"this"), (var.get('iv') and var.get('iv').get('words'))))
|
|
PyJs_reset_1052_._set_name('reset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1053_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1053_}, var)
|
|
var.registers(['offset', 'words'])
|
|
var.get(u"this").get('_mode').callprop('processBlock', var.get('words'), var.get('offset'))
|
|
PyJs__doProcessBlock_1053_._set_name('_doProcessBlock')
|
|
@Js
|
|
def PyJs__doFinalize_1054_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1054_}, var)
|
|
var.registers(['finalProcessedBlocks', 'padding'])
|
|
var.put('padding', var.get(u"this").get('cfg').get('padding'))
|
|
if (var.get(u"this").get('_xformMode')==var.get(u"this").get('_ENC_XFORM_MODE')):
|
|
var.get('padding').callprop('pad', var.get(u"this").get('_data'), var.get(u"this").get('blockSize'))
|
|
var.put('finalProcessedBlocks', var.get(u"this").callprop('_process', Js('flush').neg().neg()))
|
|
else:
|
|
var.put('finalProcessedBlocks', var.get(u"this").callprop('_process', Js('flush').neg().neg()))
|
|
var.get('padding').callprop('unpad', var.get('finalProcessedBlocks'))
|
|
return var.get('finalProcessedBlocks')
|
|
PyJs__doFinalize_1054_._set_name('_doFinalize')
|
|
var.put('BlockCipher', var.get('C_lib').put('BlockCipher', var.get('Cipher').callprop('extend', Js({'cfg':var.get('Cipher').get('cfg').callprop('extend', Js({'mode':var.get('CBC'),'padding':var.get('Pkcs7')})),'reset':PyJs_reset_1052_,'_doProcessBlock':PyJs__doProcessBlock_1053_,'_doFinalize':PyJs__doFinalize_1054_,'blockSize':(Js(128.0)/Js(32.0))}))))
|
|
@Js
|
|
def PyJs_init_1055_(cipherParams, this, arguments, var=var):
|
|
var = Scope({'cipherParams':cipherParams, 'this':this, 'arguments':arguments, 'init':PyJs_init_1055_}, var)
|
|
var.registers(['cipherParams'])
|
|
var.get(u"this").callprop('mixIn', var.get('cipherParams'))
|
|
PyJs_init_1055_._set_name('init')
|
|
@Js
|
|
def PyJs_toString_1056_(formatter, this, arguments, var=var):
|
|
var = Scope({'formatter':formatter, 'this':this, 'arguments':arguments, 'toString':PyJs_toString_1056_}, var)
|
|
var.registers(['formatter'])
|
|
return (var.get('formatter') or var.get(u"this").get('formatter')).callprop('stringify', var.get(u"this"))
|
|
PyJs_toString_1056_._set_name('toString')
|
|
var.put('CipherParams', var.get('C_lib').put('CipherParams', var.get('Base').callprop('extend', Js({'init':PyJs_init_1055_,'toString':PyJs_toString_1056_}))))
|
|
var.put('C_format', var.get('C').put('format', Js({})))
|
|
@Js
|
|
def PyJs_stringify_1057_(cipherParams, this, arguments, var=var):
|
|
var = Scope({'cipherParams':cipherParams, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1057_}, var)
|
|
var.registers(['cipherParams', 'wordArray', 'ciphertext', 'salt'])
|
|
var.put('ciphertext', var.get('cipherParams').get('ciphertext'))
|
|
var.put('salt', var.get('cipherParams').get('salt'))
|
|
if var.get('salt'):
|
|
var.put('wordArray', var.get('WordArray').callprop('create', Js([Js(1398893684), Js(1701076831)])).callprop('concat', var.get('salt')).callprop('concat', var.get('ciphertext')))
|
|
else:
|
|
var.put('wordArray', var.get('ciphertext'))
|
|
return var.get('wordArray').callprop('toString', var.get('Base64'))
|
|
PyJs_stringify_1057_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1058_(openSSLStr, this, arguments, var=var):
|
|
var = Scope({'openSSLStr':openSSLStr, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1058_}, var)
|
|
var.registers(['openSSLStr', 'salt', 'ciphertext', 'ciphertextWords'])
|
|
var.put('ciphertext', var.get('Base64').callprop('parse', var.get('openSSLStr')))
|
|
var.put('ciphertextWords', var.get('ciphertext').get('words'))
|
|
if ((var.get('ciphertextWords').get('0')==Js(1398893684)) and (var.get('ciphertextWords').get('1')==Js(1701076831))):
|
|
var.put('salt', var.get('WordArray').callprop('create', var.get('ciphertextWords').callprop('slice', Js(2.0), Js(4.0))))
|
|
var.get('ciphertextWords').callprop('splice', Js(0.0), Js(4.0))
|
|
var.get('ciphertext').put('sigBytes', Js(16.0), '-')
|
|
return var.get('CipherParams').callprop('create', Js({'ciphertext':var.get('ciphertext'),'salt':var.get('salt')}))
|
|
PyJs_parse_1058_._set_name('parse')
|
|
var.put('OpenSSLFormatter', var.get('C_format').put('OpenSSL', Js({'stringify':PyJs_stringify_1057_,'parse':PyJs_parse_1058_})))
|
|
@Js
|
|
def PyJs_encrypt_1059_(cipher, message, key, cfg, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'message':message, 'key':key, 'cfg':cfg, 'this':this, 'arguments':arguments, 'encrypt':PyJs_encrypt_1059_}, var)
|
|
var.registers(['cipherCfg', 'message', 'encryptor', 'cipher', 'ciphertext', 'cfg', 'key'])
|
|
var.put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
var.put('encryptor', var.get('cipher').callprop('createEncryptor', var.get('key'), var.get('cfg')))
|
|
var.put('ciphertext', var.get('encryptor').callprop('finalize', var.get('message')))
|
|
var.put('cipherCfg', var.get('encryptor').get('cfg'))
|
|
return var.get('CipherParams').callprop('create', Js({'ciphertext':var.get('ciphertext'),'key':var.get('key'),'iv':var.get('cipherCfg').get('iv'),'algorithm':var.get('cipher'),'mode':var.get('cipherCfg').get('mode'),'padding':var.get('cipherCfg').get('padding'),'blockSize':var.get('cipher').get('blockSize'),'formatter':var.get('cfg').get('format')}))
|
|
PyJs_encrypt_1059_._set_name('encrypt')
|
|
@Js
|
|
def PyJs_decrypt_1060_(cipher, ciphertext, key, cfg, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'ciphertext':ciphertext, 'key':key, 'cfg':cfg, 'this':this, 'arguments':arguments, 'decrypt':PyJs_decrypt_1060_}, var)
|
|
var.registers(['plaintext', 'cipher', 'ciphertext', 'cfg', 'key'])
|
|
var.put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
var.put('ciphertext', var.get(u"this").callprop('_parse', var.get('ciphertext'), var.get('cfg').get('format')))
|
|
var.put('plaintext', var.get('cipher').callprop('createDecryptor', var.get('key'), var.get('cfg')).callprop('finalize', var.get('ciphertext').get('ciphertext')))
|
|
return var.get('plaintext')
|
|
PyJs_decrypt_1060_._set_name('decrypt')
|
|
@Js
|
|
def PyJs__parse_1061_(ciphertext, format, this, arguments, var=var):
|
|
var = Scope({'ciphertext':ciphertext, 'format':format, 'this':this, 'arguments':arguments, '_parse':PyJs__parse_1061_}, var)
|
|
var.registers(['ciphertext', 'format'])
|
|
if (var.get('ciphertext',throw=False).typeof()==Js('string')):
|
|
return var.get('format').callprop('parse', var.get('ciphertext'), var.get(u"this"))
|
|
else:
|
|
return var.get('ciphertext')
|
|
PyJs__parse_1061_._set_name('_parse')
|
|
var.put('SerializableCipher', var.get('C_lib').put('SerializableCipher', var.get('Base').callprop('extend', Js({'cfg':var.get('Base').callprop('extend', Js({'format':var.get('OpenSSLFormatter')})),'encrypt':PyJs_encrypt_1059_,'decrypt':PyJs_decrypt_1060_,'_parse':PyJs__parse_1061_}))))
|
|
var.put('C_kdf', var.get('C').put('kdf', Js({})))
|
|
@Js
|
|
def PyJs_execute_1062_(password, keySize, ivSize, salt, this, arguments, var=var):
|
|
var = Scope({'password':password, 'keySize':keySize, 'ivSize':ivSize, 'salt':salt, 'this':this, 'arguments':arguments, 'execute':PyJs_execute_1062_}, var)
|
|
var.registers(['ivSize', 'iv', 'salt', 'key', 'keySize', 'password'])
|
|
if var.get('salt').neg():
|
|
var.put('salt', var.get('WordArray').callprop('random', (Js(64.0)/Js(8.0))))
|
|
var.put('key', var.get('EvpKDF').callprop('create', Js({'keySize':(var.get('keySize')+var.get('ivSize'))})).callprop('compute', var.get('password'), var.get('salt')))
|
|
var.put('iv', var.get('WordArray').callprop('create', var.get('key').get('words').callprop('slice', var.get('keySize')), (var.get('ivSize')*Js(4.0))))
|
|
var.get('key').put('sigBytes', (var.get('keySize')*Js(4.0)))
|
|
return var.get('CipherParams').callprop('create', Js({'key':var.get('key'),'iv':var.get('iv'),'salt':var.get('salt')}))
|
|
PyJs_execute_1062_._set_name('execute')
|
|
var.put('OpenSSLKdf', var.get('C_kdf').put('OpenSSL', Js({'execute':PyJs_execute_1062_})))
|
|
@Js
|
|
def PyJs_encrypt_1063_(cipher, message, password, cfg, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'message':message, 'password':password, 'cfg':cfg, 'this':this, 'arguments':arguments, 'encrypt':PyJs_encrypt_1063_}, var)
|
|
var.registers(['message', 'cipher', 'ciphertext', 'derivedParams', 'cfg', 'password'])
|
|
var.put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
var.put('derivedParams', var.get('cfg').get('kdf').callprop('execute', var.get('password'), var.get('cipher').get('keySize'), var.get('cipher').get('ivSize')))
|
|
var.get('cfg').put('iv', var.get('derivedParams').get('iv'))
|
|
var.put('ciphertext', var.get('SerializableCipher').get('encrypt').callprop('call', var.get(u"this"), var.get('cipher'), var.get('message'), var.get('derivedParams').get('key'), var.get('cfg')))
|
|
var.get('ciphertext').callprop('mixIn', var.get('derivedParams'))
|
|
return var.get('ciphertext')
|
|
PyJs_encrypt_1063_._set_name('encrypt')
|
|
@Js
|
|
def PyJs_decrypt_1064_(cipher, ciphertext, password, cfg, this, arguments, var=var):
|
|
var = Scope({'cipher':cipher, 'ciphertext':ciphertext, 'password':password, 'cfg':cfg, 'this':this, 'arguments':arguments, 'decrypt':PyJs_decrypt_1064_}, var)
|
|
var.registers(['plaintext', 'cipher', 'ciphertext', 'derivedParams', 'cfg', 'password'])
|
|
var.put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
var.put('ciphertext', var.get(u"this").callprop('_parse', var.get('ciphertext'), var.get('cfg').get('format')))
|
|
var.put('derivedParams', var.get('cfg').get('kdf').callprop('execute', var.get('password'), var.get('cipher').get('keySize'), var.get('cipher').get('ivSize'), var.get('ciphertext').get('salt')))
|
|
var.get('cfg').put('iv', var.get('derivedParams').get('iv'))
|
|
var.put('plaintext', var.get('SerializableCipher').get('decrypt').callprop('call', var.get(u"this"), var.get('cipher'), var.get('ciphertext'), var.get('derivedParams').get('key'), var.get('cfg')))
|
|
return var.get('plaintext')
|
|
PyJs_decrypt_1064_._set_name('decrypt')
|
|
var.put('PasswordBasedCipher', var.get('C_lib').put('PasswordBasedCipher', var.get('SerializableCipher').callprop('extend', Js({'cfg':var.get('SerializableCipher').get('cfg').callprop('extend', Js({'kdf':var.get('OpenSSLKdf')})),'encrypt':PyJs_encrypt_1063_,'decrypt':PyJs_decrypt_1064_}))))
|
|
PyJs_anonymous_1031_._set_name('anonymous')
|
|
(var.get('CryptoJS').get('lib').get('Cipher') or PyJs_anonymous_1031_())
|
|
PyJs_anonymous_1030_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1065_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1065_._set_name('anonymous')
|
|
PyJs_anonymous_1065_(var.get(u"this"), PyJs_anonymous_1030_)
|
|
PyJs_anonymous_1029_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1066_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1067_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1068_(Math, undefined, this, arguments, var=var):
|
|
var = Scope({'Math':Math, 'undefined':undefined, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'Hex', 'undefined', 'Math', 'Utf8', 'BufferedBlockAlgorithm', 'C_algo', 'C_enc', 'Latin1', 'Base', 'create', 'Hasher'])
|
|
@Js
|
|
def PyJs_anonymous_1069_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['F'])
|
|
@Js
|
|
def PyJsHoisted_F_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJsHoisted_F_.func_name = 'F'
|
|
var.put('F', PyJsHoisted_F_)
|
|
pass
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1070_(obj, this, arguments, var=var):
|
|
var = Scope({'obj':obj, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['subtype', 'obj'])
|
|
pass
|
|
var.get('F').put('prototype', var.get('obj'))
|
|
var.put('subtype', var.get('F').create())
|
|
var.get('F').put('prototype', var.get(u"null"))
|
|
return var.get('subtype')
|
|
PyJs_anonymous_1070_._set_name('anonymous')
|
|
return PyJs_anonymous_1070_
|
|
PyJs_anonymous_1069_._set_name('anonymous')
|
|
var.put('create', (var.get('Object').get('create') or PyJs_anonymous_1069_()))
|
|
var.put('C', Js({}))
|
|
var.put('C_lib', var.get('C').put('lib', Js({})))
|
|
@Js
|
|
def PyJs_anonymous_1071_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_extend_1072_(overrides, this, arguments, var=var):
|
|
var = Scope({'overrides':overrides, 'this':this, 'arguments':arguments, 'extend':PyJs_extend_1072_}, var)
|
|
var.registers(['subtype', 'overrides'])
|
|
var.put('subtype', var.get('create')(var.get(u"this")))
|
|
if var.get('overrides'):
|
|
var.get('subtype').callprop('mixIn', var.get('overrides'))
|
|
if (var.get('subtype').callprop('hasOwnProperty', Js('init')).neg() or PyJsStrictEq(var.get(u"this").get('init'),var.get('subtype').get('init'))):
|
|
@Js
|
|
def PyJs_anonymous_1073_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
var.get('subtype').get('$super').get('init').callprop('apply', var.get(u"this"), var.get('arguments'))
|
|
PyJs_anonymous_1073_._set_name('anonymous')
|
|
var.get('subtype').put('init', PyJs_anonymous_1073_)
|
|
var.get('subtype').get('init').put('prototype', var.get('subtype'))
|
|
var.get('subtype').put('$super', var.get(u"this"))
|
|
return var.get('subtype')
|
|
PyJs_extend_1072_._set_name('extend')
|
|
@Js
|
|
def PyJs_create_1074_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'create':PyJs_create_1074_}, var)
|
|
var.registers(['instance'])
|
|
var.put('instance', var.get(u"this").callprop('extend'))
|
|
var.get('instance').get('init').callprop('apply', var.get('instance'), var.get('arguments'))
|
|
return var.get('instance')
|
|
PyJs_create_1074_._set_name('create')
|
|
@Js
|
|
def PyJs_init_1075_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'init':PyJs_init_1075_}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_init_1075_._set_name('init')
|
|
@Js
|
|
def PyJs_mixIn_1076_(properties, this, arguments, var=var):
|
|
var = Scope({'properties':properties, 'this':this, 'arguments':arguments, 'mixIn':PyJs_mixIn_1076_}, var)
|
|
var.registers(['properties', 'propertyName'])
|
|
for PyJsTemp in var.get('properties'):
|
|
var.put('propertyName', PyJsTemp)
|
|
if var.get('properties').callprop('hasOwnProperty', var.get('propertyName')):
|
|
var.get(u"this").put(var.get('propertyName'), var.get('properties').get(var.get('propertyName')))
|
|
if var.get('properties').callprop('hasOwnProperty', Js('toString')):
|
|
var.get(u"this").put('toString', var.get('properties').get('toString'))
|
|
PyJs_mixIn_1076_._set_name('mixIn')
|
|
@Js
|
|
def PyJs_clone_1077_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1077_}, var)
|
|
var.registers([])
|
|
return var.get(u"this").get('init').get('prototype').callprop('extend', var.get(u"this"))
|
|
PyJs_clone_1077_._set_name('clone')
|
|
return Js({'extend':PyJs_extend_1072_,'create':PyJs_create_1074_,'init':PyJs_init_1075_,'mixIn':PyJs_mixIn_1076_,'clone':PyJs_clone_1077_})
|
|
PyJs_anonymous_1071_._set_name('anonymous')
|
|
var.put('Base', var.get('C_lib').put('Base', PyJs_anonymous_1071_()))
|
|
@Js
|
|
def PyJs_init_1078_(words, sigBytes, this, arguments, var=var):
|
|
var = Scope({'words':words, 'sigBytes':sigBytes, 'this':this, 'arguments':arguments, 'init':PyJs_init_1078_}, var)
|
|
var.registers(['sigBytes', 'words'])
|
|
var.put('words', var.get(u"this").put('words', (var.get('words') or Js([]))))
|
|
if (var.get('sigBytes')!=var.get('undefined')):
|
|
var.get(u"this").put('sigBytes', var.get('sigBytes'))
|
|
else:
|
|
var.get(u"this").put('sigBytes', (var.get('words').get('length')*Js(4.0)))
|
|
PyJs_init_1078_._set_name('init')
|
|
@Js
|
|
def PyJs_toString_1079_(encoder, this, arguments, var=var):
|
|
var = Scope({'encoder':encoder, 'this':this, 'arguments':arguments, 'toString':PyJs_toString_1079_}, var)
|
|
var.registers(['encoder'])
|
|
return (var.get('encoder') or var.get('Hex')).callprop('stringify', var.get(u"this"))
|
|
PyJs_toString_1079_._set_name('toString')
|
|
@Js
|
|
def PyJs_concat_1080_(wordArray, this, arguments, var=var):
|
|
var = Scope({'wordArray':wordArray, 'this':this, 'arguments':arguments, 'concat':PyJs_concat_1080_}, var)
|
|
var.registers(['thatByte', 'wordArray', 'i', 'thatWords', 'thisWords', 'thatSigBytes', 'thisSigBytes'])
|
|
var.put('thisWords', var.get(u"this").get('words'))
|
|
var.put('thatWords', var.get('wordArray').get('words'))
|
|
var.put('thisSigBytes', var.get(u"this").get('sigBytes'))
|
|
var.put('thatSigBytes', var.get('wordArray').get('sigBytes'))
|
|
var.get(u"this").callprop('clamp')
|
|
if (var.get('thisSigBytes')%Js(4.0)):
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('thatSigBytes')):
|
|
try:
|
|
var.put('thatByte', (PyJsBshift(var.get('thatWords').get(PyJsBshift(var.get('i'),Js(2.0))),(Js(24.0)-((var.get('i')%Js(4.0))*Js(8.0))))&Js(255)))
|
|
var.get('thisWords').put(PyJsBshift((var.get('thisSigBytes')+var.get('i')),Js(2.0)), (var.get('thatByte')<<(Js(24.0)-(((var.get('thisSigBytes')+var.get('i'))%Js(4.0))*Js(8.0)))), '|')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
else:
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('thatSigBytes')):
|
|
try:
|
|
var.get('thisWords').put(PyJsBshift((var.get('thisSigBytes')+var.get('i')),Js(2.0)), var.get('thatWords').get(PyJsBshift(var.get('i'),Js(2.0))))
|
|
finally:
|
|
var.put('i', Js(4.0), '+')
|
|
var.get(u"this").put('sigBytes', var.get('thatSigBytes'), '+')
|
|
return var.get(u"this")
|
|
PyJs_concat_1080_._set_name('concat')
|
|
@Js
|
|
def PyJs_clamp_1081_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clamp':PyJs_clamp_1081_}, var)
|
|
var.registers(['sigBytes', 'words'])
|
|
var.put('words', var.get(u"this").get('words'))
|
|
var.put('sigBytes', var.get(u"this").get('sigBytes'))
|
|
var.get('words').put(PyJsBshift(var.get('sigBytes'),Js(2.0)), (Js(4294967295)<<(Js(32.0)-((var.get('sigBytes')%Js(4.0))*Js(8.0)))), '&')
|
|
var.get('words').put('length', var.get('Math').callprop('ceil', (var.get('sigBytes')/Js(4.0))))
|
|
PyJs_clamp_1081_._set_name('clamp')
|
|
@Js
|
|
def PyJs_clone_1082_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1082_}, var)
|
|
var.registers(['clone'])
|
|
var.put('clone', var.get('Base').get('clone').callprop('call', var.get(u"this")))
|
|
var.get('clone').put('words', var.get(u"this").get('words').callprop('slice', Js(0.0)))
|
|
return var.get('clone')
|
|
PyJs_clone_1082_._set_name('clone')
|
|
@Js
|
|
def PyJs_random_1083_(nBytes, this, arguments, var=var):
|
|
var = Scope({'nBytes':nBytes, 'this':this, 'arguments':arguments, 'random':PyJs_random_1083_}, var)
|
|
var.registers(['i', 'rcache', 'words', 'r', '_r', 'nBytes'])
|
|
var.put('words', Js([]))
|
|
@Js
|
|
def PyJs_r_1084_(m_w, this, arguments, var=var):
|
|
var = Scope({'m_w':m_w, 'this':this, 'arguments':arguments, 'r':PyJs_r_1084_}, var)
|
|
var.registers(['mask', 'm_w', 'm_z'])
|
|
var.put('m_w', var.get('m_w'))
|
|
var.put('m_z', Js(987654321))
|
|
var.put('mask', Js(4294967295))
|
|
@Js
|
|
def PyJs_anonymous_1085_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['result'])
|
|
var.put('m_z', (((Js(36969)*(var.get('m_z')&Js(65535)))+(var.get('m_z')>>Js(16)))&var.get('mask')))
|
|
var.put('m_w', (((Js(18000)*(var.get('m_w')&Js(65535)))+(var.get('m_w')>>Js(16)))&var.get('mask')))
|
|
var.put('result', (((var.get('m_z')<<Js(16))+var.get('m_w'))&var.get('mask')))
|
|
var.put('result', Js(4294967296), '/')
|
|
var.put('result', Js(0.5), '+')
|
|
return (var.get('result')*(Js(1.0) if (var.get('Math').callprop('random')>Js(0.5)) else (-Js(1.0))))
|
|
PyJs_anonymous_1085_._set_name('anonymous')
|
|
return PyJs_anonymous_1085_
|
|
PyJs_r_1084_._set_name('r')
|
|
var.put('r', PyJs_r_1084_)
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('nBytes')):
|
|
try:
|
|
var.put('_r', var.get('r')(((var.get('rcache') or var.get('Math').callprop('random'))*Js(4294967296))))
|
|
var.put('rcache', (var.get('_r')()*Js(987654071)))
|
|
var.get('words').callprop('push', ((var.get('_r')()*Js(4294967296))|Js(0.0)))
|
|
finally:
|
|
var.put('i', Js(4.0), '+')
|
|
return var.get('WordArray').get('init').create(var.get('words'), var.get('nBytes'))
|
|
PyJs_random_1083_._set_name('random')
|
|
var.put('WordArray', var.get('C_lib').put('WordArray', var.get('Base').callprop('extend', Js({'init':PyJs_init_1078_,'toString':PyJs_toString_1079_,'concat':PyJs_concat_1080_,'clamp':PyJs_clamp_1081_,'clone':PyJs_clone_1082_,'random':PyJs_random_1083_}))))
|
|
var.put('C_enc', var.get('C').put('enc', Js({})))
|
|
@Js
|
|
def PyJs_stringify_1086_(wordArray, this, arguments, var=var):
|
|
var = Scope({'wordArray':wordArray, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1086_}, var)
|
|
var.registers(['wordArray', 'sigBytes', 'i', 'words', 'hexChars', 'bite'])
|
|
var.put('words', var.get('wordArray').get('words'))
|
|
var.put('sigBytes', var.get('wordArray').get('sigBytes'))
|
|
var.put('hexChars', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('sigBytes')):
|
|
try:
|
|
var.put('bite', (PyJsBshift(var.get('words').get(PyJsBshift(var.get('i'),Js(2.0))),(Js(24.0)-((var.get('i')%Js(4.0))*Js(8.0))))&Js(255)))
|
|
var.get('hexChars').callprop('push', PyJsBshift(var.get('bite'),Js(4.0)).callprop('toString', Js(16.0)))
|
|
var.get('hexChars').callprop('push', (var.get('bite')&Js(15)).callprop('toString', Js(16.0)))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('hexChars').callprop('join', Js(''))
|
|
PyJs_stringify_1086_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1087_(hexStr, this, arguments, var=var):
|
|
var = Scope({'hexStr':hexStr, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1087_}, var)
|
|
var.registers(['i', 'hexStr', 'hexStrLength', 'words'])
|
|
var.put('hexStrLength', var.get('hexStr').get('length'))
|
|
var.put('words', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('hexStrLength')):
|
|
try:
|
|
var.get('words').put(PyJsBshift(var.get('i'),Js(3.0)), (var.get('parseInt')(var.get('hexStr').callprop('substr', var.get('i'), Js(2.0)), Js(16.0))<<(Js(24.0)-((var.get('i')%Js(8.0))*Js(4.0)))), '|')
|
|
finally:
|
|
var.put('i', Js(2.0), '+')
|
|
return var.get('WordArray').get('init').create(var.get('words'), (var.get('hexStrLength')/Js(2.0)))
|
|
PyJs_parse_1087_._set_name('parse')
|
|
var.put('Hex', var.get('C_enc').put('Hex', Js({'stringify':PyJs_stringify_1086_,'parse':PyJs_parse_1087_})))
|
|
@Js
|
|
def PyJs_stringify_1088_(wordArray, this, arguments, var=var):
|
|
var = Scope({'wordArray':wordArray, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1088_}, var)
|
|
var.registers(['wordArray', 'latin1Chars', 'sigBytes', 'i', 'words', 'bite'])
|
|
var.put('words', var.get('wordArray').get('words'))
|
|
var.put('sigBytes', var.get('wordArray').get('sigBytes'))
|
|
var.put('latin1Chars', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('sigBytes')):
|
|
try:
|
|
var.put('bite', (PyJsBshift(var.get('words').get(PyJsBshift(var.get('i'),Js(2.0))),(Js(24.0)-((var.get('i')%Js(4.0))*Js(8.0))))&Js(255)))
|
|
var.get('latin1Chars').callprop('push', var.get('String').callprop('fromCharCode', var.get('bite')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('latin1Chars').callprop('join', Js(''))
|
|
PyJs_stringify_1088_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1089_(latin1Str, this, arguments, var=var):
|
|
var = Scope({'latin1Str':latin1Str, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1089_}, var)
|
|
var.registers(['latin1StrLength', 'latin1Str', 'i', 'words'])
|
|
var.put('latin1StrLength', var.get('latin1Str').get('length'))
|
|
var.put('words', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('latin1StrLength')):
|
|
try:
|
|
var.get('words').put(PyJsBshift(var.get('i'),Js(2.0)), ((var.get('latin1Str').callprop('charCodeAt', var.get('i'))&Js(255))<<(Js(24.0)-((var.get('i')%Js(4.0))*Js(8.0)))), '|')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('WordArray').get('init').create(var.get('words'), var.get('latin1StrLength'))
|
|
PyJs_parse_1089_._set_name('parse')
|
|
var.put('Latin1', var.get('C_enc').put('Latin1', Js({'stringify':PyJs_stringify_1088_,'parse':PyJs_parse_1089_})))
|
|
@Js
|
|
def PyJs_stringify_1090_(wordArray, this, arguments, var=var):
|
|
var = Scope({'wordArray':wordArray, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1090_}, var)
|
|
var.registers(['wordArray'])
|
|
try:
|
|
return var.get('decodeURIComponent')(var.get('escape')(var.get('Latin1').callprop('stringify', var.get('wordArray'))))
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_65_74451377 = var.own.get('e')
|
|
var.force_own_put('e', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
PyJsTempException = JsToPyException(var.get('Error').create(Js('Malformed UTF-8 data')))
|
|
raise PyJsTempException
|
|
finally:
|
|
if PyJsHolder_65_74451377 is not None:
|
|
var.own['e'] = PyJsHolder_65_74451377
|
|
else:
|
|
del var.own['e']
|
|
del PyJsHolder_65_74451377
|
|
PyJs_stringify_1090_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1091_(utf8Str, this, arguments, var=var):
|
|
var = Scope({'utf8Str':utf8Str, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1091_}, var)
|
|
var.registers(['utf8Str'])
|
|
return var.get('Latin1').callprop('parse', var.get('unescape')(var.get('encodeURIComponent')(var.get('utf8Str'))))
|
|
PyJs_parse_1091_._set_name('parse')
|
|
var.put('Utf8', var.get('C_enc').put('Utf8', Js({'stringify':PyJs_stringify_1090_,'parse':PyJs_parse_1091_})))
|
|
@Js
|
|
def PyJs_reset_1092_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'reset':PyJs_reset_1092_}, var)
|
|
var.registers([])
|
|
var.get(u"this").put('_data', var.get('WordArray').get('init').create())
|
|
var.get(u"this").put('_nDataBytes', Js(0.0))
|
|
PyJs_reset_1092_._set_name('reset')
|
|
@Js
|
|
def PyJs__append_1093_(data, this, arguments, var=var):
|
|
var = Scope({'data':data, 'this':this, 'arguments':arguments, '_append':PyJs__append_1093_}, var)
|
|
var.registers(['data'])
|
|
if (var.get('data',throw=False).typeof()==Js('string')):
|
|
var.put('data', var.get('Utf8').callprop('parse', var.get('data')))
|
|
var.get(u"this").get('_data').callprop('concat', var.get('data'))
|
|
var.get(u"this").put('_nDataBytes', var.get('data').get('sigBytes'), '+')
|
|
PyJs__append_1093_._set_name('_append')
|
|
@Js
|
|
def PyJs__process_1094_(doFlush, this, arguments, var=var):
|
|
var = Scope({'doFlush':doFlush, 'this':this, 'arguments':arguments, '_process':PyJs__process_1094_}, var)
|
|
var.registers(['blockSize', 'nBlocksReady', 'processedWords', 'dataSigBytes', 'nWordsReady', 'blockSizeBytes', 'data', 'offset', 'doFlush', 'nBytesReady', 'dataWords'])
|
|
var.put('data', var.get(u"this").get('_data'))
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('dataSigBytes', var.get('data').get('sigBytes'))
|
|
var.put('blockSize', var.get(u"this").get('blockSize'))
|
|
var.put('blockSizeBytes', (var.get('blockSize')*Js(4.0)))
|
|
var.put('nBlocksReady', (var.get('dataSigBytes')/var.get('blockSizeBytes')))
|
|
if var.get('doFlush'):
|
|
var.put('nBlocksReady', var.get('Math').callprop('ceil', var.get('nBlocksReady')))
|
|
else:
|
|
var.put('nBlocksReady', var.get('Math').callprop('max', ((var.get('nBlocksReady')|Js(0.0))-var.get(u"this").get('_minBufferSize')), Js(0.0)))
|
|
var.put('nWordsReady', (var.get('nBlocksReady')*var.get('blockSize')))
|
|
var.put('nBytesReady', var.get('Math').callprop('min', (var.get('nWordsReady')*Js(4.0)), var.get('dataSigBytes')))
|
|
if var.get('nWordsReady'):
|
|
#for JS loop
|
|
var.put('offset', Js(0.0))
|
|
while (var.get('offset')<var.get('nWordsReady')):
|
|
try:
|
|
var.get(u"this").callprop('_doProcessBlock', var.get('dataWords'), var.get('offset'))
|
|
finally:
|
|
var.put('offset', var.get('blockSize'), '+')
|
|
var.put('processedWords', var.get('dataWords').callprop('splice', Js(0.0), var.get('nWordsReady')))
|
|
var.get('data').put('sigBytes', var.get('nBytesReady'), '-')
|
|
return var.get('WordArray').get('init').create(var.get('processedWords'), var.get('nBytesReady'))
|
|
PyJs__process_1094_._set_name('_process')
|
|
@Js
|
|
def PyJs_clone_1095_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1095_}, var)
|
|
var.registers(['clone'])
|
|
var.put('clone', var.get('Base').get('clone').callprop('call', var.get(u"this")))
|
|
var.get('clone').put('_data', var.get(u"this").get('_data').callprop('clone'))
|
|
return var.get('clone')
|
|
PyJs_clone_1095_._set_name('clone')
|
|
var.put('BufferedBlockAlgorithm', var.get('C_lib').put('BufferedBlockAlgorithm', var.get('Base').callprop('extend', Js({'reset':PyJs_reset_1092_,'_append':PyJs__append_1093_,'_process':PyJs__process_1094_,'clone':PyJs_clone_1095_,'_minBufferSize':Js(0.0)}))))
|
|
@Js
|
|
def PyJs_init_1096_(cfg, this, arguments, var=var):
|
|
var = Scope({'cfg':cfg, 'this':this, 'arguments':arguments, 'init':PyJs_init_1096_}, var)
|
|
var.registers(['cfg'])
|
|
var.get(u"this").put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
var.get(u"this").callprop('reset')
|
|
PyJs_init_1096_._set_name('init')
|
|
@Js
|
|
def PyJs_reset_1097_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'reset':PyJs_reset_1097_}, var)
|
|
var.registers([])
|
|
var.get('BufferedBlockAlgorithm').get('reset').callprop('call', var.get(u"this"))
|
|
var.get(u"this").callprop('_doReset')
|
|
PyJs_reset_1097_._set_name('reset')
|
|
@Js
|
|
def PyJs_update_1098_(messageUpdate, this, arguments, var=var):
|
|
var = Scope({'messageUpdate':messageUpdate, 'this':this, 'arguments':arguments, 'update':PyJs_update_1098_}, var)
|
|
var.registers(['messageUpdate'])
|
|
var.get(u"this").callprop('_append', var.get('messageUpdate'))
|
|
var.get(u"this").callprop('_process')
|
|
return var.get(u"this")
|
|
PyJs_update_1098_._set_name('update')
|
|
@Js
|
|
def PyJs_finalize_1099_(messageUpdate, this, arguments, var=var):
|
|
var = Scope({'messageUpdate':messageUpdate, 'this':this, 'arguments':arguments, 'finalize':PyJs_finalize_1099_}, var)
|
|
var.registers(['hash', 'messageUpdate'])
|
|
if var.get('messageUpdate'):
|
|
var.get(u"this").callprop('_append', var.get('messageUpdate'))
|
|
var.put('hash', var.get(u"this").callprop('_doFinalize'))
|
|
return var.get('hash')
|
|
PyJs_finalize_1099_._set_name('finalize')
|
|
@Js
|
|
def PyJs__createHelper_1100_(hasher, this, arguments, var=var):
|
|
var = Scope({'hasher':hasher, 'this':this, 'arguments':arguments, '_createHelper':PyJs__createHelper_1100_}, var)
|
|
var.registers(['hasher'])
|
|
@Js
|
|
def PyJs_anonymous_1101_(message, cfg, this, arguments, var=var):
|
|
var = Scope({'message':message, 'cfg':cfg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['cfg', 'message'])
|
|
return var.get('hasher').get('init').create(var.get('cfg')).callprop('finalize', var.get('message'))
|
|
PyJs_anonymous_1101_._set_name('anonymous')
|
|
return PyJs_anonymous_1101_
|
|
PyJs__createHelper_1100_._set_name('_createHelper')
|
|
@Js
|
|
def PyJs__createHmacHelper_1102_(hasher, this, arguments, var=var):
|
|
var = Scope({'hasher':hasher, 'this':this, 'arguments':arguments, '_createHmacHelper':PyJs__createHmacHelper_1102_}, var)
|
|
var.registers(['hasher'])
|
|
@Js
|
|
def PyJs_anonymous_1103_(message, key, this, arguments, var=var):
|
|
var = Scope({'message':message, 'key':key, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['message', 'key'])
|
|
return var.get('C_algo').get('HMAC').get('init').create(var.get('hasher'), var.get('key')).callprop('finalize', var.get('message'))
|
|
PyJs_anonymous_1103_._set_name('anonymous')
|
|
return PyJs_anonymous_1103_
|
|
PyJs__createHmacHelper_1102_._set_name('_createHmacHelper')
|
|
var.put('Hasher', var.get('C_lib').put('Hasher', var.get('BufferedBlockAlgorithm').callprop('extend', Js({'cfg':var.get('Base').callprop('extend'),'init':PyJs_init_1096_,'reset':PyJs_reset_1097_,'update':PyJs_update_1098_,'finalize':PyJs_finalize_1099_,'blockSize':(Js(512.0)/Js(32.0)),'_createHelper':PyJs__createHelper_1100_,'_createHmacHelper':PyJs__createHmacHelper_1102_}))))
|
|
var.put('C_algo', var.get('C').put('algo', Js({})))
|
|
return var.get('C')
|
|
PyJs_anonymous_1068_._set_name('anonymous')
|
|
var.put('CryptoJS', (var.get('CryptoJS') or PyJs_anonymous_1068_(var.get('Math'))))
|
|
return var.get('CryptoJS')
|
|
PyJs_anonymous_1067_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1104_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')()))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([]), var.get('factory'))
|
|
else:
|
|
var.get('root').put('CryptoJS', var.get('factory')())
|
|
PyJs_anonymous_1104_._set_name('anonymous')
|
|
PyJs_anonymous_1104_(var.get(u"this"), PyJs_anonymous_1067_)
|
|
PyJs_anonymous_1066_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1105_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1106_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1107_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'C_enc', 'parseLoop', 'Base64'])
|
|
@Js
|
|
def PyJsHoisted_parseLoop_(base64Str, base64StrLength, reverseMap, this, arguments, var=var):
|
|
var = Scope({'base64Str':base64Str, 'base64StrLength':base64StrLength, 'reverseMap':reverseMap, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['bits2', 'bits1', 'base64Str', 'i', 'words', 'reverseMap', 'nBytes', 'base64StrLength'])
|
|
var.put('words', Js([]))
|
|
var.put('nBytes', Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('base64StrLength')):
|
|
try:
|
|
if (var.get('i')%Js(4.0)):
|
|
var.put('bits1', (var.get('reverseMap').get(var.get('base64Str').callprop('charCodeAt', (var.get('i')-Js(1.0))))<<((var.get('i')%Js(4.0))*Js(2.0))))
|
|
var.put('bits2', PyJsBshift(var.get('reverseMap').get(var.get('base64Str').callprop('charCodeAt', var.get('i'))),(Js(6.0)-((var.get('i')%Js(4.0))*Js(2.0)))))
|
|
var.get('words').put(PyJsBshift(var.get('nBytes'),Js(2.0)), ((var.get('bits1')|var.get('bits2'))<<(Js(24.0)-((var.get('nBytes')%Js(4.0))*Js(8.0)))), '|')
|
|
(var.put('nBytes',Js(var.get('nBytes').to_number())+Js(1))-Js(1))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('WordArray').callprop('create', var.get('words'), var.get('nBytes'))
|
|
PyJsHoisted_parseLoop_.func_name = 'parseLoop'
|
|
var.put('parseLoop', PyJsHoisted_parseLoop_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('C_enc', var.get('C').get('enc'))
|
|
@Js
|
|
def PyJs_stringify_1108_(wordArray, this, arguments, var=var):
|
|
var = Scope({'wordArray':wordArray, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1108_}, var)
|
|
var.registers(['byte2', 'triplet', 'paddingChar', 'map', 'wordArray', 'sigBytes', 'i', 'words', 'byte3', 'base64Chars', 'j', 'byte1'])
|
|
var.put('words', var.get('wordArray').get('words'))
|
|
var.put('sigBytes', var.get('wordArray').get('sigBytes'))
|
|
var.put('map', var.get(u"this").get('_map'))
|
|
var.get('wordArray').callprop('clamp')
|
|
var.put('base64Chars', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('sigBytes')):
|
|
try:
|
|
var.put('byte1', (PyJsBshift(var.get('words').get(PyJsBshift(var.get('i'),Js(2.0))),(Js(24.0)-((var.get('i')%Js(4.0))*Js(8.0))))&Js(255)))
|
|
var.put('byte2', (PyJsBshift(var.get('words').get(PyJsBshift((var.get('i')+Js(1.0)),Js(2.0))),(Js(24.0)-(((var.get('i')+Js(1.0))%Js(4.0))*Js(8.0))))&Js(255)))
|
|
var.put('byte3', (PyJsBshift(var.get('words').get(PyJsBshift((var.get('i')+Js(2.0)),Js(2.0))),(Js(24.0)-(((var.get('i')+Js(2.0))%Js(4.0))*Js(8.0))))&Js(255)))
|
|
var.put('triplet', (((var.get('byte1')<<Js(16.0))|(var.get('byte2')<<Js(8.0)))|var.get('byte3')))
|
|
#for JS loop
|
|
var.put('j', Js(0.0))
|
|
while ((var.get('j')<Js(4.0)) and ((var.get('i')+(var.get('j')*Js(0.75)))<var.get('sigBytes'))):
|
|
try:
|
|
var.get('base64Chars').callprop('push', var.get('map').callprop('charAt', (PyJsBshift(var.get('triplet'),(Js(6.0)*(Js(3.0)-var.get('j'))))&Js(63))))
|
|
finally:
|
|
(var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))
|
|
finally:
|
|
var.put('i', Js(3.0), '+')
|
|
var.put('paddingChar', var.get('map').callprop('charAt', Js(64.0)))
|
|
if var.get('paddingChar'):
|
|
while (var.get('base64Chars').get('length')%Js(4.0)):
|
|
var.get('base64Chars').callprop('push', var.get('paddingChar'))
|
|
return var.get('base64Chars').callprop('join', Js(''))
|
|
PyJs_stringify_1108_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1109_(base64Str, this, arguments, var=var):
|
|
var = Scope({'base64Str':base64Str, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1109_}, var)
|
|
var.registers(['paddingChar', 'map', 'base64Str', 'paddingIndex', 'j', 'reverseMap', 'base64StrLength'])
|
|
var.put('base64StrLength', var.get('base64Str').get('length'))
|
|
var.put('map', var.get(u"this").get('_map'))
|
|
var.put('reverseMap', var.get(u"this").get('_reverseMap'))
|
|
if var.get('reverseMap').neg():
|
|
var.put('reverseMap', var.get(u"this").put('_reverseMap', Js([])))
|
|
#for JS loop
|
|
var.put('j', Js(0.0))
|
|
while (var.get('j')<var.get('map').get('length')):
|
|
try:
|
|
var.get('reverseMap').put(var.get('map').callprop('charCodeAt', var.get('j')), var.get('j'))
|
|
finally:
|
|
(var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))
|
|
var.put('paddingChar', var.get('map').callprop('charAt', Js(64.0)))
|
|
if var.get('paddingChar'):
|
|
var.put('paddingIndex', var.get('base64Str').callprop('indexOf', var.get('paddingChar')))
|
|
if PyJsStrictNeq(var.get('paddingIndex'),(-Js(1.0))):
|
|
var.put('base64StrLength', var.get('paddingIndex'))
|
|
return var.get('parseLoop')(var.get('base64Str'), var.get('base64StrLength'), var.get('reverseMap'))
|
|
PyJs_parse_1109_._set_name('parse')
|
|
var.put('Base64', var.get('C_enc').put('Base64', Js({'stringify':PyJs_stringify_1108_,'parse':PyJs_parse_1109_,'_map':Js('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=')})))
|
|
pass
|
|
PyJs_anonymous_1107_._set_name('anonymous')
|
|
PyJs_anonymous_1107_()
|
|
return var.get('CryptoJS').get('enc').get('Base64')
|
|
PyJs_anonymous_1106_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1110_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1110_._set_name('anonymous')
|
|
PyJs_anonymous_1110_(var.get(u"this"), PyJs_anonymous_1106_)
|
|
PyJs_anonymous_1105_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1111_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1112_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1113_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'Utf16BE', 'swapEndian', 'C_enc'])
|
|
@Js
|
|
def PyJsHoisted_swapEndian_(word, this, arguments, var=var):
|
|
var = Scope({'word':word, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['word'])
|
|
return (((var.get('word')<<Js(8.0))&Js(4278255360))|(PyJsBshift(var.get('word'),Js(8.0))&Js(16711935)))
|
|
PyJsHoisted_swapEndian_.func_name = 'swapEndian'
|
|
var.put('swapEndian', PyJsHoisted_swapEndian_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('C_enc', var.get('C').get('enc'))
|
|
@Js
|
|
def PyJs_stringify_1114_(wordArray, this, arguments, var=var):
|
|
var = Scope({'wordArray':wordArray, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1114_}, var)
|
|
var.registers(['utf16Chars', 'wordArray', 'sigBytes', 'i', 'words', 'codePoint'])
|
|
var.put('words', var.get('wordArray').get('words'))
|
|
var.put('sigBytes', var.get('wordArray').get('sigBytes'))
|
|
var.put('utf16Chars', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('sigBytes')):
|
|
try:
|
|
var.put('codePoint', (PyJsBshift(var.get('words').get(PyJsBshift(var.get('i'),Js(2.0))),(Js(16.0)-((var.get('i')%Js(4.0))*Js(8.0))))&Js(65535)))
|
|
var.get('utf16Chars').callprop('push', var.get('String').callprop('fromCharCode', var.get('codePoint')))
|
|
finally:
|
|
var.put('i', Js(2.0), '+')
|
|
return var.get('utf16Chars').callprop('join', Js(''))
|
|
PyJs_stringify_1114_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1115_(utf16Str, this, arguments, var=var):
|
|
var = Scope({'utf16Str':utf16Str, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1115_}, var)
|
|
var.registers(['utf16StrLength', 'utf16Str', 'i', 'words'])
|
|
var.put('utf16StrLength', var.get('utf16Str').get('length'))
|
|
var.put('words', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('utf16StrLength')):
|
|
try:
|
|
var.get('words').put(PyJsBshift(var.get('i'),Js(1.0)), (var.get('utf16Str').callprop('charCodeAt', var.get('i'))<<(Js(16.0)-((var.get('i')%Js(2.0))*Js(16.0)))), '|')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('WordArray').callprop('create', var.get('words'), (var.get('utf16StrLength')*Js(2.0)))
|
|
PyJs_parse_1115_._set_name('parse')
|
|
var.put('Utf16BE', var.get('C_enc').put('Utf16', var.get('C_enc').put('Utf16BE', Js({'stringify':PyJs_stringify_1114_,'parse':PyJs_parse_1115_}))))
|
|
@Js
|
|
def PyJs_stringify_1116_(wordArray, this, arguments, var=var):
|
|
var = Scope({'wordArray':wordArray, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1116_}, var)
|
|
var.registers(['utf16Chars', 'wordArray', 'sigBytes', 'i', 'words', 'codePoint'])
|
|
var.put('words', var.get('wordArray').get('words'))
|
|
var.put('sigBytes', var.get('wordArray').get('sigBytes'))
|
|
var.put('utf16Chars', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('sigBytes')):
|
|
try:
|
|
var.put('codePoint', var.get('swapEndian')((PyJsBshift(var.get('words').get(PyJsBshift(var.get('i'),Js(2.0))),(Js(16.0)-((var.get('i')%Js(4.0))*Js(8.0))))&Js(65535))))
|
|
var.get('utf16Chars').callprop('push', var.get('String').callprop('fromCharCode', var.get('codePoint')))
|
|
finally:
|
|
var.put('i', Js(2.0), '+')
|
|
return var.get('utf16Chars').callprop('join', Js(''))
|
|
PyJs_stringify_1116_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1117_(utf16Str, this, arguments, var=var):
|
|
var = Scope({'utf16Str':utf16Str, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1117_}, var)
|
|
var.registers(['utf16StrLength', 'utf16Str', 'i', 'words'])
|
|
var.put('utf16StrLength', var.get('utf16Str').get('length'))
|
|
var.put('words', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('utf16StrLength')):
|
|
try:
|
|
var.get('words').put(PyJsBshift(var.get('i'),Js(1.0)), var.get('swapEndian')((var.get('utf16Str').callprop('charCodeAt', var.get('i'))<<(Js(16.0)-((var.get('i')%Js(2.0))*Js(16.0))))), '|')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('WordArray').callprop('create', var.get('words'), (var.get('utf16StrLength')*Js(2.0)))
|
|
PyJs_parse_1117_._set_name('parse')
|
|
var.get('C_enc').put('Utf16LE', Js({'stringify':PyJs_stringify_1116_,'parse':PyJs_parse_1117_}))
|
|
pass
|
|
PyJs_anonymous_1113_._set_name('anonymous')
|
|
PyJs_anonymous_1113_()
|
|
return var.get('CryptoJS').get('enc').get('Utf16')
|
|
PyJs_anonymous_1112_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1118_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1118_._set_name('anonymous')
|
|
PyJs_anonymous_1118_(var.get(u"this"), PyJs_anonymous_1112_)
|
|
PyJs_anonymous_1111_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1119_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1120_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1121_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'MD5', 'C_algo', 'EvpKDF', 'Base'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('Base', var.get('C_lib').get('Base'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('MD5', var.get('C_algo').get('MD5'))
|
|
@Js
|
|
def PyJs_init_1122_(cfg, this, arguments, var=var):
|
|
var = Scope({'cfg':cfg, 'this':this, 'arguments':arguments, 'init':PyJs_init_1122_}, var)
|
|
var.registers(['cfg'])
|
|
var.get(u"this").put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
PyJs_init_1122_._set_name('init')
|
|
@Js
|
|
def PyJs_compute_1123_(password, salt, this, arguments, var=var):
|
|
var = Scope({'password':password, 'salt':salt, 'this':this, 'arguments':arguments, 'compute':PyJs_compute_1123_}, var)
|
|
var.registers(['i', 'iterations', 'salt', 'hasher', 'block', 'cfg', 'derivedKeyWords', 'keySize', 'derivedKey', 'password'])
|
|
var.put('cfg', var.get(u"this").get('cfg'))
|
|
var.put('hasher', var.get('cfg').get('hasher').callprop('create'))
|
|
var.put('derivedKey', var.get('WordArray').callprop('create'))
|
|
var.put('derivedKeyWords', var.get('derivedKey').get('words'))
|
|
var.put('keySize', var.get('cfg').get('keySize'))
|
|
var.put('iterations', var.get('cfg').get('iterations'))
|
|
while (var.get('derivedKeyWords').get('length')<var.get('keySize')):
|
|
if var.get('block'):
|
|
var.get('hasher').callprop('update', var.get('block'))
|
|
var.put('block', var.get('hasher').callprop('update', var.get('password')).callprop('finalize', var.get('salt')))
|
|
var.get('hasher').callprop('reset')
|
|
#for JS loop
|
|
var.put('i', Js(1.0))
|
|
while (var.get('i')<var.get('iterations')):
|
|
try:
|
|
var.put('block', var.get('hasher').callprop('finalize', var.get('block')))
|
|
var.get('hasher').callprop('reset')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('derivedKey').callprop('concat', var.get('block'))
|
|
var.get('derivedKey').put('sigBytes', (var.get('keySize')*Js(4.0)))
|
|
return var.get('derivedKey')
|
|
PyJs_compute_1123_._set_name('compute')
|
|
var.put('EvpKDF', var.get('C_algo').put('EvpKDF', var.get('Base').callprop('extend', Js({'cfg':var.get('Base').callprop('extend', Js({'keySize':(Js(128.0)/Js(32.0)),'hasher':var.get('MD5'),'iterations':Js(1.0)})),'init':PyJs_init_1122_,'compute':PyJs_compute_1123_}))))
|
|
@Js
|
|
def PyJs_anonymous_1124_(password, salt, cfg, this, arguments, var=var):
|
|
var = Scope({'password':password, 'salt':salt, 'cfg':cfg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['cfg', 'salt', 'password'])
|
|
return var.get('EvpKDF').callprop('create', var.get('cfg')).callprop('compute', var.get('password'), var.get('salt'))
|
|
PyJs_anonymous_1124_._set_name('anonymous')
|
|
var.get('C').put('EvpKDF', PyJs_anonymous_1124_)
|
|
PyJs_anonymous_1121_._set_name('anonymous')
|
|
PyJs_anonymous_1121_()
|
|
return var.get('CryptoJS').get('EvpKDF')
|
|
PyJs_anonymous_1120_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1125_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./sha1')), var.get('require')(Js('./hmac')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./sha1'), Js('./hmac')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1125_._set_name('anonymous')
|
|
PyJs_anonymous_1125_(var.get(u"this"), PyJs_anonymous_1120_)
|
|
PyJs_anonymous_1119_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1126_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1127_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1128_(undefined, this, arguments, var=var):
|
|
var = Scope({'undefined':undefined, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['Hex', 'C_lib', 'C', 'undefined', 'CipherParams', 'C_enc', 'HexFormatter', 'C_format'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('CipherParams', var.get('C_lib').get('CipherParams'))
|
|
var.put('C_enc', var.get('C').get('enc'))
|
|
var.put('Hex', var.get('C_enc').get('Hex'))
|
|
var.put('C_format', var.get('C').get('format'))
|
|
@Js
|
|
def PyJs_stringify_1129_(cipherParams, this, arguments, var=var):
|
|
var = Scope({'cipherParams':cipherParams, 'this':this, 'arguments':arguments, 'stringify':PyJs_stringify_1129_}, var)
|
|
var.registers(['cipherParams'])
|
|
return var.get('cipherParams').get('ciphertext').callprop('toString', var.get('Hex'))
|
|
PyJs_stringify_1129_._set_name('stringify')
|
|
@Js
|
|
def PyJs_parse_1130_(input, this, arguments, var=var):
|
|
var = Scope({'input':input, 'this':this, 'arguments':arguments, 'parse':PyJs_parse_1130_}, var)
|
|
var.registers(['ciphertext', 'input'])
|
|
var.put('ciphertext', var.get('Hex').callprop('parse', var.get('input')))
|
|
return var.get('CipherParams').callprop('create', Js({'ciphertext':var.get('ciphertext')}))
|
|
PyJs_parse_1130_._set_name('parse')
|
|
var.put('HexFormatter', var.get('C_format').put('Hex', Js({'stringify':PyJs_stringify_1129_,'parse':PyJs_parse_1130_})))
|
|
PyJs_anonymous_1128_._set_name('anonymous')
|
|
PyJs_anonymous_1128_()
|
|
return var.get('CryptoJS').get('format').get('Hex')
|
|
PyJs_anonymous_1127_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1131_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1131_._set_name('anonymous')
|
|
PyJs_anonymous_1131_(var.get(u"this"), PyJs_anonymous_1127_)
|
|
PyJs_anonymous_1126_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1132_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1133_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1134_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C_lib', 'C', 'Utf8', 'C_algo', 'C_enc', 'HMAC', 'Base'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('Base', var.get('C_lib').get('Base'))
|
|
var.put('C_enc', var.get('C').get('enc'))
|
|
var.put('Utf8', var.get('C_enc').get('Utf8'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
@Js
|
|
def PyJs_init_1135_(hasher, key, this, arguments, var=var):
|
|
var = Scope({'hasher':hasher, 'key':key, 'this':this, 'arguments':arguments, 'init':PyJs_init_1135_}, var)
|
|
var.registers(['iKey', 'oKey', 'i', 'hasher', 'oKeyWords', 'hasherBlockSizeBytes', 'hasherBlockSize', 'key', 'iKeyWords'])
|
|
var.put('hasher', var.get(u"this").put('_hasher', var.get('hasher').get('init').create()))
|
|
if (var.get('key',throw=False).typeof()==Js('string')):
|
|
var.put('key', var.get('Utf8').callprop('parse', var.get('key')))
|
|
var.put('hasherBlockSize', var.get('hasher').get('blockSize'))
|
|
var.put('hasherBlockSizeBytes', (var.get('hasherBlockSize')*Js(4.0)))
|
|
if (var.get('key').get('sigBytes')>var.get('hasherBlockSizeBytes')):
|
|
var.put('key', var.get('hasher').callprop('finalize', var.get('key')))
|
|
var.get('key').callprop('clamp')
|
|
var.put('oKey', var.get(u"this").put('_oKey', var.get('key').callprop('clone')))
|
|
var.put('iKey', var.get(u"this").put('_iKey', var.get('key').callprop('clone')))
|
|
var.put('oKeyWords', var.get('oKey').get('words'))
|
|
var.put('iKeyWords', var.get('iKey').get('words'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('hasherBlockSize')):
|
|
try:
|
|
var.get('oKeyWords').put(var.get('i'), Js(1549556828), '^')
|
|
var.get('iKeyWords').put(var.get('i'), Js(909522486), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('oKey').put('sigBytes', var.get('iKey').put('sigBytes', var.get('hasherBlockSizeBytes')))
|
|
var.get(u"this").callprop('reset')
|
|
PyJs_init_1135_._set_name('init')
|
|
@Js
|
|
def PyJs_reset_1136_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'reset':PyJs_reset_1136_}, var)
|
|
var.registers(['hasher'])
|
|
var.put('hasher', var.get(u"this").get('_hasher'))
|
|
var.get('hasher').callprop('reset')
|
|
var.get('hasher').callprop('update', var.get(u"this").get('_iKey'))
|
|
PyJs_reset_1136_._set_name('reset')
|
|
@Js
|
|
def PyJs_update_1137_(messageUpdate, this, arguments, var=var):
|
|
var = Scope({'messageUpdate':messageUpdate, 'this':this, 'arguments':arguments, 'update':PyJs_update_1137_}, var)
|
|
var.registers(['messageUpdate'])
|
|
var.get(u"this").get('_hasher').callprop('update', var.get('messageUpdate'))
|
|
return var.get(u"this")
|
|
PyJs_update_1137_._set_name('update')
|
|
@Js
|
|
def PyJs_finalize_1138_(messageUpdate, this, arguments, var=var):
|
|
var = Scope({'messageUpdate':messageUpdate, 'this':this, 'arguments':arguments, 'finalize':PyJs_finalize_1138_}, var)
|
|
var.registers(['innerHash', 'hmac', 'messageUpdate', 'hasher'])
|
|
var.put('hasher', var.get(u"this").get('_hasher'))
|
|
var.put('innerHash', var.get('hasher').callprop('finalize', var.get('messageUpdate')))
|
|
var.get('hasher').callprop('reset')
|
|
var.put('hmac', var.get('hasher').callprop('finalize', var.get(u"this").get('_oKey').callprop('clone').callprop('concat', var.get('innerHash'))))
|
|
return var.get('hmac')
|
|
PyJs_finalize_1138_._set_name('finalize')
|
|
var.put('HMAC', var.get('C_algo').put('HMAC', var.get('Base').callprop('extend', Js({'init':PyJs_init_1135_,'reset':PyJs_reset_1136_,'update':PyJs_update_1137_,'finalize':PyJs_finalize_1138_}))))
|
|
PyJs_anonymous_1134_._set_name('anonymous')
|
|
PyJs_anonymous_1134_()
|
|
PyJs_anonymous_1133_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1139_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1139_._set_name('anonymous')
|
|
PyJs_anonymous_1139_(var.get(u"this"), PyJs_anonymous_1133_)
|
|
PyJs_anonymous_1132_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1140_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1141_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
return var.get('CryptoJS')
|
|
PyJs_anonymous_1141_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1142_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
def PyJs_LONG_1143_(var=var):
|
|
return var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./x64-core')), var.get('require')(Js('./lib-typedarrays')), var.get('require')(Js('./enc-utf16')), var.get('require')(Js('./enc-base64')), var.get('require')(Js('./md5')), var.get('require')(Js('./sha1')), var.get('require')(Js('./sha256')), var.get('require')(Js('./sha224')), var.get('require')(Js('./sha512')), var.get('require')(Js('./sha384')), var.get('require')(Js('./sha3')), var.get('require')(Js('./ripemd160')), var.get('require')(Js('./hmac')), var.get('require')(Js('./pbkdf2')), var.get('require')(Js('./evpkdf')), var.get('require')(Js('./cipher-core')), var.get('require')(Js('./mode-cfb')), var.get('require')(Js('./mode-ctr')), var.get('require')(Js('./mode-ctr-gladman')), var.get('require')(Js('./mode-ofb')), var.get('require')(Js('./mode-ecb')), var.get('require')(Js('./pad-ansix923')), var.get('require')(Js('./pad-iso10126')), var.get('require')(Js('./pad-iso97971')), var.get('require')(Js('./pad-zeropadding')), var.get('require')(Js('./pad-nopadding')), var.get('require')(Js('./format-hex')), var.get('require')(Js('./aes')), var.get('require')(Js('./tripledes')), var.get('require')(Js('./rc4')), var.get('require')(Js('./rabbit')), var.get('require')(Js('./rabbit-legacy')))
|
|
var.get('module').put('exports', var.put('exports', PyJs_LONG_1143_()))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
def PyJs_LONG_1144_(var=var):
|
|
return var.get('define')(Js([Js('./core'), Js('./x64-core'), Js('./lib-typedarrays'), Js('./enc-utf16'), Js('./enc-base64'), Js('./md5'), Js('./sha1'), Js('./sha256'), Js('./sha224'), Js('./sha512'), Js('./sha384'), Js('./sha3'), Js('./ripemd160'), Js('./hmac'), Js('./pbkdf2'), Js('./evpkdf'), Js('./cipher-core'), Js('./mode-cfb'), Js('./mode-ctr'), Js('./mode-ctr-gladman'), Js('./mode-ofb'), Js('./mode-ecb'), Js('./pad-ansix923'), Js('./pad-iso10126'), Js('./pad-iso97971'), Js('./pad-zeropadding'), Js('./pad-nopadding'), Js('./format-hex'), Js('./aes'), Js('./tripledes'), Js('./rc4'), Js('./rabbit'), Js('./rabbit-legacy')]), var.get('factory'))
|
|
PyJs_LONG_1144_()
|
|
else:
|
|
var.get('root').put('CryptoJS', var.get('factory')(var.get('root').get('CryptoJS')))
|
|
PyJs_anonymous_1142_._set_name('anonymous')
|
|
PyJs_anonymous_1142_(var.get(u"this"), PyJs_anonymous_1141_)
|
|
PyJs_anonymous_1140_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1145_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1146_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1147_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'subInit', 'superInit'])
|
|
if (var.get('ArrayBuffer',throw=False).typeof()!=Js('function')):
|
|
return var.get('undefined')
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('superInit', var.get('WordArray').get('init'))
|
|
@Js
|
|
def PyJs_anonymous_1148_(typedArray, this, arguments, var=var):
|
|
var = Scope({'typedArray':typedArray, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['typedArrayByteLength', 'i', 'words', 'typedArray'])
|
|
if var.get('typedArray').instanceof(var.get('ArrayBuffer')):
|
|
var.put('typedArray', var.get('Uint8Array').create(var.get('typedArray')))
|
|
def PyJs_LONG_1149_(var=var):
|
|
return (((((var.get('typedArray').instanceof(var.get('Int8Array')) or (PyJsStrictNeq(var.get('Uint8ClampedArray',throw=False).typeof(),Js('undefined')) and var.get('typedArray').instanceof(var.get('Uint8ClampedArray')))) or var.get('typedArray').instanceof(var.get('Int16Array'))) or var.get('typedArray').instanceof(var.get('Uint16Array'))) or var.get('typedArray').instanceof(var.get('Int32Array'))) or var.get('typedArray').instanceof(var.get('Uint32Array')))
|
|
if ((PyJs_LONG_1149_() or var.get('typedArray').instanceof(var.get('Float32Array'))) or var.get('typedArray').instanceof(var.get('Float64Array'))):
|
|
var.put('typedArray', var.get('Uint8Array').create(var.get('typedArray').get('buffer'), var.get('typedArray').get('byteOffset'), var.get('typedArray').get('byteLength')))
|
|
if var.get('typedArray').instanceof(var.get('Uint8Array')):
|
|
var.put('typedArrayByteLength', var.get('typedArray').get('byteLength'))
|
|
var.put('words', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('typedArrayByteLength')):
|
|
try:
|
|
var.get('words').put(PyJsBshift(var.get('i'),Js(2.0)), (var.get('typedArray').get(var.get('i'))<<(Js(24.0)-((var.get('i')%Js(4.0))*Js(8.0)))), '|')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('superInit').callprop('call', var.get(u"this"), var.get('words'), var.get('typedArrayByteLength'))
|
|
else:
|
|
var.get('superInit').callprop('apply', var.get(u"this"), var.get('arguments'))
|
|
PyJs_anonymous_1148_._set_name('anonymous')
|
|
var.put('subInit', var.get('WordArray').put('init', PyJs_anonymous_1148_))
|
|
var.get('subInit').put('prototype', var.get('WordArray'))
|
|
PyJs_anonymous_1147_._set_name('anonymous')
|
|
PyJs_anonymous_1147_()
|
|
return var.get('CryptoJS').get('lib').get('WordArray')
|
|
PyJs_anonymous_1146_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1150_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1150_._set_name('anonymous')
|
|
PyJs_anonymous_1150_(var.get(u"this"), PyJs_anonymous_1146_)
|
|
PyJs_anonymous_1145_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1151_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1152_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1153_(Math, this, arguments, var=var):
|
|
var = Scope({'Math':Math, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'MD5', 'HH', 'GG', 'Math', 'C_algo', 'FF', 'II', 'Hasher', 'T'])
|
|
@Js
|
|
def PyJsHoisted_FF_(a, b, c, d, x, s, t, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'c':c, 'd':d, 'x':x, 's':s, 't':t, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['d', 'n', 'x', 't', 'a', 'b', 'c', 's'])
|
|
var.put('n', (((var.get('a')+((var.get('b')&var.get('c'))|((~var.get('b'))&var.get('d'))))+var.get('x'))+var.get('t')))
|
|
return (((var.get('n')<<var.get('s'))|PyJsBshift(var.get('n'),(Js(32.0)-var.get('s'))))+var.get('b'))
|
|
PyJsHoisted_FF_.func_name = 'FF'
|
|
var.put('FF', PyJsHoisted_FF_)
|
|
@Js
|
|
def PyJsHoisted_GG_(a, b, c, d, x, s, t, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'c':c, 'd':d, 'x':x, 's':s, 't':t, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['d', 'n', 'x', 't', 'a', 'b', 'c', 's'])
|
|
var.put('n', (((var.get('a')+((var.get('b')&var.get('d'))|(var.get('c')&(~var.get('d')))))+var.get('x'))+var.get('t')))
|
|
return (((var.get('n')<<var.get('s'))|PyJsBshift(var.get('n'),(Js(32.0)-var.get('s'))))+var.get('b'))
|
|
PyJsHoisted_GG_.func_name = 'GG'
|
|
var.put('GG', PyJsHoisted_GG_)
|
|
@Js
|
|
def PyJsHoisted_HH_(a, b, c, d, x, s, t, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'c':c, 'd':d, 'x':x, 's':s, 't':t, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['d', 'n', 'x', 't', 'a', 'b', 'c', 's'])
|
|
var.put('n', (((var.get('a')+((var.get('b')^var.get('c'))^var.get('d')))+var.get('x'))+var.get('t')))
|
|
return (((var.get('n')<<var.get('s'))|PyJsBshift(var.get('n'),(Js(32.0)-var.get('s'))))+var.get('b'))
|
|
PyJsHoisted_HH_.func_name = 'HH'
|
|
var.put('HH', PyJsHoisted_HH_)
|
|
@Js
|
|
def PyJsHoisted_II_(a, b, c, d, x, s, t, this, arguments, var=var):
|
|
var = Scope({'a':a, 'b':b, 'c':c, 'd':d, 'x':x, 's':s, 't':t, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['d', 'n', 'x', 't', 'a', 'b', 'c', 's'])
|
|
var.put('n', (((var.get('a')+(var.get('c')^(var.get('b')|(~var.get('d')))))+var.get('x'))+var.get('t')))
|
|
return (((var.get('n')<<var.get('s'))|PyJsBshift(var.get('n'),(Js(32.0)-var.get('s'))))+var.get('b'))
|
|
PyJsHoisted_II_.func_name = 'II'
|
|
var.put('II', PyJsHoisted_II_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('Hasher', var.get('C_lib').get('Hasher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('T', Js([]))
|
|
@Js
|
|
def PyJs_anonymous_1154_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['i'])
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(64.0)):
|
|
try:
|
|
var.get('T').put(var.get('i'), ((var.get('Math').callprop('abs', var.get('Math').callprop('sin', (var.get('i')+Js(1.0))))*Js(4294967296))|Js(0.0)))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_1154_._set_name('anonymous')
|
|
PyJs_anonymous_1154_()
|
|
@Js
|
|
def PyJs__doReset_1155_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1155_}, var)
|
|
var.registers([])
|
|
var.get(u"this").put('_hash', var.get('WordArray').get('init').create(Js([Js(1732584193), Js(4023233417), Js(2562383102), Js(271733878)])))
|
|
PyJs__doReset_1155_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1156_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1156_}, var)
|
|
var.registers(['i', 'M_offset_14', 'M_offset_i', 'M_offset_10', 'M_offset_6', 'd', 'M_offset_1', 'b', 'c', 'offset', 'M_offset_7', 'H', 'M_offset_0', 'M_offset_15', 'M_offset_13', 'M_offset_5', 'M_offset_12', 'M', 'M_offset_8', 'M_offset_11', 'M_offset_3', 'M_offset_2', 'a', 'M_offset_4', 'M_offset_9', 'offset_i'])
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(16.0)):
|
|
try:
|
|
var.put('offset_i', (var.get('offset')+var.get('i')))
|
|
var.put('M_offset_i', var.get('M').get(var.get('offset_i')))
|
|
var.get('M').put(var.get('offset_i'), ((((var.get('M_offset_i')<<Js(8.0))|PyJsBshift(var.get('M_offset_i'),Js(24.0)))&Js(16711935))|(((var.get('M_offset_i')<<Js(24.0))|PyJsBshift(var.get('M_offset_i'),Js(8.0)))&Js(4278255360))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.put('H', var.get(u"this").get('_hash').get('words'))
|
|
var.put('M_offset_0', var.get('M').get((var.get('offset')+Js(0.0))))
|
|
var.put('M_offset_1', var.get('M').get((var.get('offset')+Js(1.0))))
|
|
var.put('M_offset_2', var.get('M').get((var.get('offset')+Js(2.0))))
|
|
var.put('M_offset_3', var.get('M').get((var.get('offset')+Js(3.0))))
|
|
var.put('M_offset_4', var.get('M').get((var.get('offset')+Js(4.0))))
|
|
var.put('M_offset_5', var.get('M').get((var.get('offset')+Js(5.0))))
|
|
var.put('M_offset_6', var.get('M').get((var.get('offset')+Js(6.0))))
|
|
var.put('M_offset_7', var.get('M').get((var.get('offset')+Js(7.0))))
|
|
var.put('M_offset_8', var.get('M').get((var.get('offset')+Js(8.0))))
|
|
var.put('M_offset_9', var.get('M').get((var.get('offset')+Js(9.0))))
|
|
var.put('M_offset_10', var.get('M').get((var.get('offset')+Js(10.0))))
|
|
var.put('M_offset_11', var.get('M').get((var.get('offset')+Js(11.0))))
|
|
var.put('M_offset_12', var.get('M').get((var.get('offset')+Js(12.0))))
|
|
var.put('M_offset_13', var.get('M').get((var.get('offset')+Js(13.0))))
|
|
var.put('M_offset_14', var.get('M').get((var.get('offset')+Js(14.0))))
|
|
var.put('M_offset_15', var.get('M').get((var.get('offset')+Js(15.0))))
|
|
var.put('a', var.get('H').get('0'))
|
|
var.put('b', var.get('H').get('1'))
|
|
var.put('c', var.get('H').get('2'))
|
|
var.put('d', var.get('H').get('3'))
|
|
var.put('a', var.get('FF')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_0'), Js(7.0), var.get('T').get('0')))
|
|
var.put('d', var.get('FF')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_1'), Js(12.0), var.get('T').get('1')))
|
|
var.put('c', var.get('FF')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_2'), Js(17.0), var.get('T').get('2')))
|
|
var.put('b', var.get('FF')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_3'), Js(22.0), var.get('T').get('3')))
|
|
var.put('a', var.get('FF')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_4'), Js(7.0), var.get('T').get('4')))
|
|
var.put('d', var.get('FF')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_5'), Js(12.0), var.get('T').get('5')))
|
|
var.put('c', var.get('FF')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_6'), Js(17.0), var.get('T').get('6')))
|
|
var.put('b', var.get('FF')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_7'), Js(22.0), var.get('T').get('7')))
|
|
var.put('a', var.get('FF')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_8'), Js(7.0), var.get('T').get('8')))
|
|
var.put('d', var.get('FF')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_9'), Js(12.0), var.get('T').get('9')))
|
|
var.put('c', var.get('FF')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_10'), Js(17.0), var.get('T').get('10')))
|
|
var.put('b', var.get('FF')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_11'), Js(22.0), var.get('T').get('11')))
|
|
var.put('a', var.get('FF')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_12'), Js(7.0), var.get('T').get('12')))
|
|
var.put('d', var.get('FF')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_13'), Js(12.0), var.get('T').get('13')))
|
|
var.put('c', var.get('FF')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_14'), Js(17.0), var.get('T').get('14')))
|
|
var.put('b', var.get('FF')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_15'), Js(22.0), var.get('T').get('15')))
|
|
var.put('a', var.get('GG')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_1'), Js(5.0), var.get('T').get('16')))
|
|
var.put('d', var.get('GG')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_6'), Js(9.0), var.get('T').get('17')))
|
|
var.put('c', var.get('GG')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_11'), Js(14.0), var.get('T').get('18')))
|
|
var.put('b', var.get('GG')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_0'), Js(20.0), var.get('T').get('19')))
|
|
var.put('a', var.get('GG')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_5'), Js(5.0), var.get('T').get('20')))
|
|
var.put('d', var.get('GG')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_10'), Js(9.0), var.get('T').get('21')))
|
|
var.put('c', var.get('GG')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_15'), Js(14.0), var.get('T').get('22')))
|
|
var.put('b', var.get('GG')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_4'), Js(20.0), var.get('T').get('23')))
|
|
var.put('a', var.get('GG')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_9'), Js(5.0), var.get('T').get('24')))
|
|
var.put('d', var.get('GG')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_14'), Js(9.0), var.get('T').get('25')))
|
|
var.put('c', var.get('GG')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_3'), Js(14.0), var.get('T').get('26')))
|
|
var.put('b', var.get('GG')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_8'), Js(20.0), var.get('T').get('27')))
|
|
var.put('a', var.get('GG')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_13'), Js(5.0), var.get('T').get('28')))
|
|
var.put('d', var.get('GG')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_2'), Js(9.0), var.get('T').get('29')))
|
|
var.put('c', var.get('GG')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_7'), Js(14.0), var.get('T').get('30')))
|
|
var.put('b', var.get('GG')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_12'), Js(20.0), var.get('T').get('31')))
|
|
var.put('a', var.get('HH')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_5'), Js(4.0), var.get('T').get('32')))
|
|
var.put('d', var.get('HH')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_8'), Js(11.0), var.get('T').get('33')))
|
|
var.put('c', var.get('HH')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_11'), Js(16.0), var.get('T').get('34')))
|
|
var.put('b', var.get('HH')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_14'), Js(23.0), var.get('T').get('35')))
|
|
var.put('a', var.get('HH')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_1'), Js(4.0), var.get('T').get('36')))
|
|
var.put('d', var.get('HH')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_4'), Js(11.0), var.get('T').get('37')))
|
|
var.put('c', var.get('HH')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_7'), Js(16.0), var.get('T').get('38')))
|
|
var.put('b', var.get('HH')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_10'), Js(23.0), var.get('T').get('39')))
|
|
var.put('a', var.get('HH')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_13'), Js(4.0), var.get('T').get('40')))
|
|
var.put('d', var.get('HH')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_0'), Js(11.0), var.get('T').get('41')))
|
|
var.put('c', var.get('HH')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_3'), Js(16.0), var.get('T').get('42')))
|
|
var.put('b', var.get('HH')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_6'), Js(23.0), var.get('T').get('43')))
|
|
var.put('a', var.get('HH')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_9'), Js(4.0), var.get('T').get('44')))
|
|
var.put('d', var.get('HH')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_12'), Js(11.0), var.get('T').get('45')))
|
|
var.put('c', var.get('HH')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_15'), Js(16.0), var.get('T').get('46')))
|
|
var.put('b', var.get('HH')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_2'), Js(23.0), var.get('T').get('47')))
|
|
var.put('a', var.get('II')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_0'), Js(6.0), var.get('T').get('48')))
|
|
var.put('d', var.get('II')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_7'), Js(10.0), var.get('T').get('49')))
|
|
var.put('c', var.get('II')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_14'), Js(15.0), var.get('T').get('50')))
|
|
var.put('b', var.get('II')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_5'), Js(21.0), var.get('T').get('51')))
|
|
var.put('a', var.get('II')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_12'), Js(6.0), var.get('T').get('52')))
|
|
var.put('d', var.get('II')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_3'), Js(10.0), var.get('T').get('53')))
|
|
var.put('c', var.get('II')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_10'), Js(15.0), var.get('T').get('54')))
|
|
var.put('b', var.get('II')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_1'), Js(21.0), var.get('T').get('55')))
|
|
var.put('a', var.get('II')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_8'), Js(6.0), var.get('T').get('56')))
|
|
var.put('d', var.get('II')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_15'), Js(10.0), var.get('T').get('57')))
|
|
var.put('c', var.get('II')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_6'), Js(15.0), var.get('T').get('58')))
|
|
var.put('b', var.get('II')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_13'), Js(21.0), var.get('T').get('59')))
|
|
var.put('a', var.get('II')(var.get('a'), var.get('b'), var.get('c'), var.get('d'), var.get('M_offset_4'), Js(6.0), var.get('T').get('60')))
|
|
var.put('d', var.get('II')(var.get('d'), var.get('a'), var.get('b'), var.get('c'), var.get('M_offset_11'), Js(10.0), var.get('T').get('61')))
|
|
var.put('c', var.get('II')(var.get('c'), var.get('d'), var.get('a'), var.get('b'), var.get('M_offset_2'), Js(15.0), var.get('T').get('62')))
|
|
var.put('b', var.get('II')(var.get('b'), var.get('c'), var.get('d'), var.get('a'), var.get('M_offset_9'), Js(21.0), var.get('T').get('63')))
|
|
var.get('H').put('0', ((var.get('H').get('0')+var.get('a'))|Js(0.0)))
|
|
var.get('H').put('1', ((var.get('H').get('1')+var.get('b'))|Js(0.0)))
|
|
var.get('H').put('2', ((var.get('H').get('2')+var.get('c'))|Js(0.0)))
|
|
var.get('H').put('3', ((var.get('H').get('3')+var.get('d'))|Js(0.0)))
|
|
PyJs__doProcessBlock_1156_._set_name('_doProcessBlock')
|
|
@Js
|
|
def PyJs__doFinalize_1157_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1157_}, var)
|
|
var.registers(['nBitsLeft', 'nBitsTotalH', 'nBitsTotalL', 'H', 'nBitsTotal', 'i', 'data', 'H_i', 'hash', 'dataWords'])
|
|
var.put('data', var.get(u"this").get('_data'))
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('nBitsTotal', (var.get(u"this").get('_nDataBytes')*Js(8.0)))
|
|
var.put('nBitsLeft', (var.get('data').get('sigBytes')*Js(8.0)))
|
|
var.get('dataWords').put(PyJsBshift(var.get('nBitsLeft'),Js(5.0)), (Js(128)<<(Js(24.0)-(var.get('nBitsLeft')%Js(32.0)))), '|')
|
|
var.put('nBitsTotalH', var.get('Math').callprop('floor', (var.get('nBitsTotal')/Js(4294967296))))
|
|
var.put('nBitsTotalL', var.get('nBitsTotal'))
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(64.0)),Js(9.0))<<Js(4.0))+Js(15.0)), ((((var.get('nBitsTotalH')<<Js(8.0))|PyJsBshift(var.get('nBitsTotalH'),Js(24.0)))&Js(16711935))|(((var.get('nBitsTotalH')<<Js(24.0))|PyJsBshift(var.get('nBitsTotalH'),Js(8.0)))&Js(4278255360))))
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(64.0)),Js(9.0))<<Js(4.0))+Js(14.0)), ((((var.get('nBitsTotalL')<<Js(8.0))|PyJsBshift(var.get('nBitsTotalL'),Js(24.0)))&Js(16711935))|(((var.get('nBitsTotalL')<<Js(24.0))|PyJsBshift(var.get('nBitsTotalL'),Js(8.0)))&Js(4278255360))))
|
|
var.get('data').put('sigBytes', ((var.get('dataWords').get('length')+Js(1.0))*Js(4.0)))
|
|
var.get(u"this").callprop('_process')
|
|
var.put('hash', var.get(u"this").get('_hash'))
|
|
var.put('H', var.get('hash').get('words'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.put('H_i', var.get('H').get(var.get('i')))
|
|
var.get('H').put(var.get('i'), ((((var.get('H_i')<<Js(8.0))|PyJsBshift(var.get('H_i'),Js(24.0)))&Js(16711935))|(((var.get('H_i')<<Js(24.0))|PyJsBshift(var.get('H_i'),Js(8.0)))&Js(4278255360))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('hash')
|
|
PyJs__doFinalize_1157_._set_name('_doFinalize')
|
|
@Js
|
|
def PyJs_clone_1158_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1158_}, var)
|
|
var.registers(['clone'])
|
|
var.put('clone', var.get('Hasher').get('clone').callprop('call', var.get(u"this")))
|
|
var.get('clone').put('_hash', var.get(u"this").get('_hash').callprop('clone'))
|
|
return var.get('clone')
|
|
PyJs_clone_1158_._set_name('clone')
|
|
var.put('MD5', var.get('C_algo').put('MD5', var.get('Hasher').callprop('extend', Js({'_doReset':PyJs__doReset_1155_,'_doProcessBlock':PyJs__doProcessBlock_1156_,'_doFinalize':PyJs__doFinalize_1157_,'clone':PyJs_clone_1158_}))))
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
var.get('C').put('MD5', var.get('Hasher').callprop('_createHelper', var.get('MD5')))
|
|
var.get('C').put('HmacMD5', var.get('Hasher').callprop('_createHmacHelper', var.get('MD5')))
|
|
PyJs_anonymous_1153_._set_name('anonymous')
|
|
PyJs_anonymous_1153_(var.get('Math'))
|
|
return var.get('CryptoJS').get('MD5')
|
|
PyJs_anonymous_1152_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1159_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1159_._set_name('anonymous')
|
|
PyJs_anonymous_1159_(var.get(u"this"), PyJs_anonymous_1152_)
|
|
PyJs_anonymous_1151_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1160_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1161_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1162_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['generateKeystreamAndEncrypt', 'CFB'])
|
|
@Js
|
|
def PyJsHoisted_generateKeystreamAndEncrypt_(words, offset, blockSize, cipher, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'blockSize':blockSize, 'cipher':cipher, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['blockSize', 'iv', 'i', 'words', 'keystream', 'cipher', 'offset'])
|
|
var.put('iv', var.get(u"this").get('_iv'))
|
|
if var.get('iv'):
|
|
var.put('keystream', var.get('iv').callprop('slice', Js(0.0)))
|
|
var.get(u"this").put('_iv', var.get('undefined'))
|
|
else:
|
|
var.put('keystream', var.get(u"this").get('_prevBlock'))
|
|
var.get('cipher').callprop('encryptBlock', var.get('keystream'), Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('blockSize')):
|
|
try:
|
|
var.get('words').put((var.get('offset')+var.get('i')), var.get('keystream').get(var.get('i')), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJsHoisted_generateKeystreamAndEncrypt_.func_name = 'generateKeystreamAndEncrypt'
|
|
var.put('generateKeystreamAndEncrypt', PyJsHoisted_generateKeystreamAndEncrypt_)
|
|
var.put('CFB', var.get('CryptoJS').get('lib').get('BlockCipherMode').callprop('extend'))
|
|
@Js
|
|
def PyJs_processBlock_1163_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1163_}, var)
|
|
var.registers(['offset', 'cipher', 'words', 'blockSize'])
|
|
var.put('cipher', var.get(u"this").get('_cipher'))
|
|
var.put('blockSize', var.get('cipher').get('blockSize'))
|
|
var.get('generateKeystreamAndEncrypt').callprop('call', var.get(u"this"), var.get('words'), var.get('offset'), var.get('blockSize'), var.get('cipher'))
|
|
var.get(u"this").put('_prevBlock', var.get('words').callprop('slice', var.get('offset'), (var.get('offset')+var.get('blockSize'))))
|
|
PyJs_processBlock_1163_._set_name('processBlock')
|
|
var.get('CFB').put('Encryptor', var.get('CFB').callprop('extend', Js({'processBlock':PyJs_processBlock_1163_})))
|
|
@Js
|
|
def PyJs_processBlock_1164_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1164_}, var)
|
|
var.registers(['blockSize', 'thisBlock', 'words', 'cipher', 'offset'])
|
|
var.put('cipher', var.get(u"this").get('_cipher'))
|
|
var.put('blockSize', var.get('cipher').get('blockSize'))
|
|
var.put('thisBlock', var.get('words').callprop('slice', var.get('offset'), (var.get('offset')+var.get('blockSize'))))
|
|
var.get('generateKeystreamAndEncrypt').callprop('call', var.get(u"this"), var.get('words'), var.get('offset'), var.get('blockSize'), var.get('cipher'))
|
|
var.get(u"this").put('_prevBlock', var.get('thisBlock'))
|
|
PyJs_processBlock_1164_._set_name('processBlock')
|
|
var.get('CFB').put('Decryptor', var.get('CFB').callprop('extend', Js({'processBlock':PyJs_processBlock_1164_})))
|
|
pass
|
|
return var.get('CFB')
|
|
PyJs_anonymous_1162_._set_name('anonymous')
|
|
var.get('CryptoJS').get('mode').put('CFB', PyJs_anonymous_1162_())
|
|
return var.get('CryptoJS').get('mode').get('CFB')
|
|
PyJs_anonymous_1161_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1165_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1165_._set_name('anonymous')
|
|
PyJs_anonymous_1165_(var.get(u"this"), PyJs_anonymous_1161_)
|
|
PyJs_anonymous_1160_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1166_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1167_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1168_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['Encryptor', 'incCounter', 'CTRGladman', 'incWord'])
|
|
@Js
|
|
def PyJsHoisted_incWord_(word, this, arguments, var=var):
|
|
var = Scope({'word':word, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['b1', 'word', 'b3', 'b2'])
|
|
if PyJsStrictEq(((var.get('word')>>Js(24.0))&Js(255)),Js(255)):
|
|
var.put('b1', ((var.get('word')>>Js(16.0))&Js(255)))
|
|
var.put('b2', ((var.get('word')>>Js(8.0))&Js(255)))
|
|
var.put('b3', (var.get('word')&Js(255)))
|
|
if PyJsStrictEq(var.get('b1'),Js(255)):
|
|
var.put('b1', Js(0.0))
|
|
if PyJsStrictEq(var.get('b2'),Js(255)):
|
|
var.put('b2', Js(0.0))
|
|
if PyJsStrictEq(var.get('b3'),Js(255)):
|
|
var.put('b3', Js(0.0))
|
|
else:
|
|
var.put('b3',Js(var.get('b3').to_number())+Js(1))
|
|
else:
|
|
var.put('b2',Js(var.get('b2').to_number())+Js(1))
|
|
else:
|
|
var.put('b1',Js(var.get('b1').to_number())+Js(1))
|
|
var.put('word', Js(0.0))
|
|
var.put('word', (var.get('b1')<<Js(16.0)), '+')
|
|
var.put('word', (var.get('b2')<<Js(8.0)), '+')
|
|
var.put('word', var.get('b3'), '+')
|
|
else:
|
|
var.put('word', (Js(1)<<Js(24.0)), '+')
|
|
return var.get('word')
|
|
PyJsHoisted_incWord_.func_name = 'incWord'
|
|
var.put('incWord', PyJsHoisted_incWord_)
|
|
@Js
|
|
def PyJsHoisted_incCounter_(counter, this, arguments, var=var):
|
|
var = Scope({'counter':counter, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['counter'])
|
|
if PyJsStrictEq(var.get('counter').put('0', var.get('incWord')(var.get('counter').get('0'))),Js(0.0)):
|
|
var.get('counter').put('1', var.get('incWord')(var.get('counter').get('1')))
|
|
return var.get('counter')
|
|
PyJsHoisted_incCounter_.func_name = 'incCounter'
|
|
var.put('incCounter', PyJsHoisted_incCounter_)
|
|
var.put('CTRGladman', var.get('CryptoJS').get('lib').get('BlockCipherMode').callprop('extend'))
|
|
pass
|
|
pass
|
|
@Js
|
|
def PyJs_processBlock_1169_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1169_}, var)
|
|
var.registers(['blockSize', 'iv', 'counter', 'i', 'words', 'keystream', 'cipher', 'offset'])
|
|
var.put('cipher', var.get(u"this").get('_cipher'))
|
|
var.put('blockSize', var.get('cipher').get('blockSize'))
|
|
var.put('iv', var.get(u"this").get('_iv'))
|
|
var.put('counter', var.get(u"this").get('_counter'))
|
|
if var.get('iv'):
|
|
var.put('counter', var.get(u"this").put('_counter', var.get('iv').callprop('slice', Js(0.0))))
|
|
var.get(u"this").put('_iv', var.get('undefined'))
|
|
var.get('incCounter')(var.get('counter'))
|
|
var.put('keystream', var.get('counter').callprop('slice', Js(0.0)))
|
|
var.get('cipher').callprop('encryptBlock', var.get('keystream'), Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('blockSize')):
|
|
try:
|
|
var.get('words').put((var.get('offset')+var.get('i')), var.get('keystream').get(var.get('i')), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_processBlock_1169_._set_name('processBlock')
|
|
var.put('Encryptor', var.get('CTRGladman').put('Encryptor', var.get('CTRGladman').callprop('extend', Js({'processBlock':PyJs_processBlock_1169_}))))
|
|
var.get('CTRGladman').put('Decryptor', var.get('Encryptor'))
|
|
return var.get('CTRGladman')
|
|
PyJs_anonymous_1168_._set_name('anonymous')
|
|
var.get('CryptoJS').get('mode').put('CTRGladman', PyJs_anonymous_1168_())
|
|
return var.get('CryptoJS').get('mode').get('CTRGladman')
|
|
PyJs_anonymous_1167_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1170_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1170_._set_name('anonymous')
|
|
PyJs_anonymous_1170_(var.get(u"this"), PyJs_anonymous_1167_)
|
|
PyJs_anonymous_1166_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1171_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1172_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1173_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['Encryptor', 'CTR'])
|
|
var.put('CTR', var.get('CryptoJS').get('lib').get('BlockCipherMode').callprop('extend'))
|
|
@Js
|
|
def PyJs_processBlock_1174_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1174_}, var)
|
|
var.registers(['blockSize', 'iv', 'counter', 'i', 'words', 'keystream', 'cipher', 'offset'])
|
|
var.put('cipher', var.get(u"this").get('_cipher'))
|
|
var.put('blockSize', var.get('cipher').get('blockSize'))
|
|
var.put('iv', var.get(u"this").get('_iv'))
|
|
var.put('counter', var.get(u"this").get('_counter'))
|
|
if var.get('iv'):
|
|
var.put('counter', var.get(u"this").put('_counter', var.get('iv').callprop('slice', Js(0.0))))
|
|
var.get(u"this").put('_iv', var.get('undefined'))
|
|
var.put('keystream', var.get('counter').callprop('slice', Js(0.0)))
|
|
var.get('cipher').callprop('encryptBlock', var.get('keystream'), Js(0.0))
|
|
var.get('counter').put((var.get('blockSize')-Js(1.0)), ((var.get('counter').get((var.get('blockSize')-Js(1.0)))+Js(1.0))|Js(0.0)))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('blockSize')):
|
|
try:
|
|
var.get('words').put((var.get('offset')+var.get('i')), var.get('keystream').get(var.get('i')), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_processBlock_1174_._set_name('processBlock')
|
|
var.put('Encryptor', var.get('CTR').put('Encryptor', var.get('CTR').callprop('extend', Js({'processBlock':PyJs_processBlock_1174_}))))
|
|
var.get('CTR').put('Decryptor', var.get('Encryptor'))
|
|
return var.get('CTR')
|
|
PyJs_anonymous_1173_._set_name('anonymous')
|
|
var.get('CryptoJS').get('mode').put('CTR', PyJs_anonymous_1173_())
|
|
return var.get('CryptoJS').get('mode').get('CTR')
|
|
PyJs_anonymous_1172_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1175_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1175_._set_name('anonymous')
|
|
PyJs_anonymous_1175_(var.get(u"this"), PyJs_anonymous_1172_)
|
|
PyJs_anonymous_1171_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1176_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1177_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1178_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['ECB'])
|
|
var.put('ECB', var.get('CryptoJS').get('lib').get('BlockCipherMode').callprop('extend'))
|
|
@Js
|
|
def PyJs_processBlock_1179_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1179_}, var)
|
|
var.registers(['offset', 'words'])
|
|
var.get(u"this").get('_cipher').callprop('encryptBlock', var.get('words'), var.get('offset'))
|
|
PyJs_processBlock_1179_._set_name('processBlock')
|
|
var.get('ECB').put('Encryptor', var.get('ECB').callprop('extend', Js({'processBlock':PyJs_processBlock_1179_})))
|
|
@Js
|
|
def PyJs_processBlock_1180_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1180_}, var)
|
|
var.registers(['offset', 'words'])
|
|
var.get(u"this").get('_cipher').callprop('decryptBlock', var.get('words'), var.get('offset'))
|
|
PyJs_processBlock_1180_._set_name('processBlock')
|
|
var.get('ECB').put('Decryptor', var.get('ECB').callprop('extend', Js({'processBlock':PyJs_processBlock_1180_})))
|
|
return var.get('ECB')
|
|
PyJs_anonymous_1178_._set_name('anonymous')
|
|
var.get('CryptoJS').get('mode').put('ECB', PyJs_anonymous_1178_())
|
|
return var.get('CryptoJS').get('mode').get('ECB')
|
|
PyJs_anonymous_1177_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1181_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1181_._set_name('anonymous')
|
|
PyJs_anonymous_1181_(var.get(u"this"), PyJs_anonymous_1177_)
|
|
PyJs_anonymous_1176_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1182_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1183_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1184_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['Encryptor', 'OFB'])
|
|
var.put('OFB', var.get('CryptoJS').get('lib').get('BlockCipherMode').callprop('extend'))
|
|
@Js
|
|
def PyJs_processBlock_1185_(words, offset, this, arguments, var=var):
|
|
var = Scope({'words':words, 'offset':offset, 'this':this, 'arguments':arguments, 'processBlock':PyJs_processBlock_1185_}, var)
|
|
var.registers(['blockSize', 'iv', 'i', 'words', 'keystream', 'cipher', 'offset'])
|
|
var.put('cipher', var.get(u"this").get('_cipher'))
|
|
var.put('blockSize', var.get('cipher').get('blockSize'))
|
|
var.put('iv', var.get(u"this").get('_iv'))
|
|
var.put('keystream', var.get(u"this").get('_keystream'))
|
|
if var.get('iv'):
|
|
var.put('keystream', var.get(u"this").put('_keystream', var.get('iv').callprop('slice', Js(0.0))))
|
|
var.get(u"this").put('_iv', var.get('undefined'))
|
|
var.get('cipher').callprop('encryptBlock', var.get('keystream'), Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('blockSize')):
|
|
try:
|
|
var.get('words').put((var.get('offset')+var.get('i')), var.get('keystream').get(var.get('i')), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_processBlock_1185_._set_name('processBlock')
|
|
var.put('Encryptor', var.get('OFB').put('Encryptor', var.get('OFB').callprop('extend', Js({'processBlock':PyJs_processBlock_1185_}))))
|
|
var.get('OFB').put('Decryptor', var.get('Encryptor'))
|
|
return var.get('OFB')
|
|
PyJs_anonymous_1184_._set_name('anonymous')
|
|
var.get('CryptoJS').get('mode').put('OFB', PyJs_anonymous_1184_())
|
|
return var.get('CryptoJS').get('mode').get('OFB')
|
|
PyJs_anonymous_1183_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1186_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1186_._set_name('anonymous')
|
|
PyJs_anonymous_1186_(var.get(u"this"), PyJs_anonymous_1183_)
|
|
PyJs_anonymous_1182_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1187_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1188_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_pad_1189_(data, blockSize, this, arguments, var=var):
|
|
var = Scope({'data':data, 'blockSize':blockSize, 'this':this, 'arguments':arguments, 'pad':PyJs_pad_1189_}, var)
|
|
var.registers(['nPaddingBytes', 'blockSize', 'dataSigBytes', 'lastBytePos', 'blockSizeBytes', 'data'])
|
|
var.put('dataSigBytes', var.get('data').get('sigBytes'))
|
|
var.put('blockSizeBytes', (var.get('blockSize')*Js(4.0)))
|
|
var.put('nPaddingBytes', (var.get('blockSizeBytes')-(var.get('dataSigBytes')%var.get('blockSizeBytes'))))
|
|
var.put('lastBytePos', ((var.get('dataSigBytes')+var.get('nPaddingBytes'))-Js(1.0)))
|
|
var.get('data').callprop('clamp')
|
|
var.get('data').get('words').put(PyJsBshift(var.get('lastBytePos'),Js(2.0)), (var.get('nPaddingBytes')<<(Js(24.0)-((var.get('lastBytePos')%Js(4.0))*Js(8.0)))), '|')
|
|
var.get('data').put('sigBytes', var.get('nPaddingBytes'), '+')
|
|
PyJs_pad_1189_._set_name('pad')
|
|
@Js
|
|
def PyJs_unpad_1190_(data, this, arguments, var=var):
|
|
var = Scope({'data':data, 'this':this, 'arguments':arguments, 'unpad':PyJs_unpad_1190_}, var)
|
|
var.registers(['nPaddingBytes', 'data'])
|
|
var.put('nPaddingBytes', (var.get('data').get('words').get(PyJsBshift((var.get('data').get('sigBytes')-Js(1.0)),Js(2.0)))&Js(255)))
|
|
var.get('data').put('sigBytes', var.get('nPaddingBytes'), '-')
|
|
PyJs_unpad_1190_._set_name('unpad')
|
|
var.get('CryptoJS').get('pad').put('AnsiX923', Js({'pad':PyJs_pad_1189_,'unpad':PyJs_unpad_1190_}))
|
|
return var.get('CryptoJS').get('pad').get('Ansix923')
|
|
PyJs_anonymous_1188_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1191_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1191_._set_name('anonymous')
|
|
PyJs_anonymous_1191_(var.get(u"this"), PyJs_anonymous_1188_)
|
|
PyJs_anonymous_1187_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1192_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1193_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_pad_1194_(data, blockSize, this, arguments, var=var):
|
|
var = Scope({'data':data, 'blockSize':blockSize, 'this':this, 'arguments':arguments, 'pad':PyJs_pad_1194_}, var)
|
|
var.registers(['blockSizeBytes', 'blockSize', 'nPaddingBytes', 'data'])
|
|
var.put('blockSizeBytes', (var.get('blockSize')*Js(4.0)))
|
|
var.put('nPaddingBytes', (var.get('blockSizeBytes')-(var.get('data').get('sigBytes')%var.get('blockSizeBytes'))))
|
|
var.get('data').callprop('concat', var.get('CryptoJS').get('lib').get('WordArray').callprop('random', (var.get('nPaddingBytes')-Js(1.0)))).callprop('concat', var.get('CryptoJS').get('lib').get('WordArray').callprop('create', Js([(var.get('nPaddingBytes')<<Js(24.0))]), Js(1.0)))
|
|
PyJs_pad_1194_._set_name('pad')
|
|
@Js
|
|
def PyJs_unpad_1195_(data, this, arguments, var=var):
|
|
var = Scope({'data':data, 'this':this, 'arguments':arguments, 'unpad':PyJs_unpad_1195_}, var)
|
|
var.registers(['nPaddingBytes', 'data'])
|
|
var.put('nPaddingBytes', (var.get('data').get('words').get(PyJsBshift((var.get('data').get('sigBytes')-Js(1.0)),Js(2.0)))&Js(255)))
|
|
var.get('data').put('sigBytes', var.get('nPaddingBytes'), '-')
|
|
PyJs_unpad_1195_._set_name('unpad')
|
|
var.get('CryptoJS').get('pad').put('Iso10126', Js({'pad':PyJs_pad_1194_,'unpad':PyJs_unpad_1195_}))
|
|
return var.get('CryptoJS').get('pad').get('Iso10126')
|
|
PyJs_anonymous_1193_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1196_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1196_._set_name('anonymous')
|
|
PyJs_anonymous_1196_(var.get(u"this"), PyJs_anonymous_1193_)
|
|
PyJs_anonymous_1192_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1197_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1198_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_pad_1199_(data, blockSize, this, arguments, var=var):
|
|
var = Scope({'data':data, 'blockSize':blockSize, 'this':this, 'arguments':arguments, 'pad':PyJs_pad_1199_}, var)
|
|
var.registers(['blockSize', 'data'])
|
|
var.get('data').callprop('concat', var.get('CryptoJS').get('lib').get('WordArray').callprop('create', Js([Js(2147483648)]), Js(1.0)))
|
|
var.get('CryptoJS').get('pad').get('ZeroPadding').callprop('pad', var.get('data'), var.get('blockSize'))
|
|
PyJs_pad_1199_._set_name('pad')
|
|
@Js
|
|
def PyJs_unpad_1200_(data, this, arguments, var=var):
|
|
var = Scope({'data':data, 'this':this, 'arguments':arguments, 'unpad':PyJs_unpad_1200_}, var)
|
|
var.registers(['data'])
|
|
var.get('CryptoJS').get('pad').get('ZeroPadding').callprop('unpad', var.get('data'))
|
|
(var.get('data').put('sigBytes',Js(var.get('data').get('sigBytes').to_number())-Js(1))+Js(1))
|
|
PyJs_unpad_1200_._set_name('unpad')
|
|
var.get('CryptoJS').get('pad').put('Iso97971', Js({'pad':PyJs_pad_1199_,'unpad':PyJs_unpad_1200_}))
|
|
return var.get('CryptoJS').get('pad').get('Iso97971')
|
|
PyJs_anonymous_1198_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1201_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1201_._set_name('anonymous')
|
|
PyJs_anonymous_1201_(var.get(u"this"), PyJs_anonymous_1198_)
|
|
PyJs_anonymous_1197_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1202_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1203_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_pad_1204_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'pad':PyJs_pad_1204_}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_pad_1204_._set_name('pad')
|
|
@Js
|
|
def PyJs_unpad_1205_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'unpad':PyJs_unpad_1205_}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJs_unpad_1205_._set_name('unpad')
|
|
var.get('CryptoJS').get('pad').put('NoPadding', Js({'pad':PyJs_pad_1204_,'unpad':PyJs_unpad_1205_}))
|
|
return var.get('CryptoJS').get('pad').get('NoPadding')
|
|
PyJs_anonymous_1203_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1206_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1206_._set_name('anonymous')
|
|
PyJs_anonymous_1206_(var.get(u"this"), PyJs_anonymous_1203_)
|
|
PyJs_anonymous_1202_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1207_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1208_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_pad_1209_(data, blockSize, this, arguments, var=var):
|
|
var = Scope({'data':data, 'blockSize':blockSize, 'this':this, 'arguments':arguments, 'pad':PyJs_pad_1209_}, var)
|
|
var.registers(['blockSizeBytes', 'blockSize', 'data'])
|
|
var.put('blockSizeBytes', (var.get('blockSize')*Js(4.0)))
|
|
var.get('data').callprop('clamp')
|
|
var.get('data').put('sigBytes', (var.get('blockSizeBytes')-((var.get('data').get('sigBytes')%var.get('blockSizeBytes')) or var.get('blockSizeBytes'))), '+')
|
|
PyJs_pad_1209_._set_name('pad')
|
|
@Js
|
|
def PyJs_unpad_1210_(data, this, arguments, var=var):
|
|
var = Scope({'data':data, 'this':this, 'arguments':arguments, 'unpad':PyJs_unpad_1210_}, var)
|
|
var.registers(['i', 'data', 'dataWords'])
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('i', (var.get('data').get('sigBytes')-Js(1.0)))
|
|
while (PyJsBshift(var.get('dataWords').get(PyJsBshift(var.get('i'),Js(2.0))),(Js(24.0)-((var.get('i')%Js(4.0))*Js(8.0))))&Js(255)).neg():
|
|
(var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1))
|
|
var.get('data').put('sigBytes', (var.get('i')+Js(1.0)))
|
|
PyJs_unpad_1210_._set_name('unpad')
|
|
var.get('CryptoJS').get('pad').put('ZeroPadding', Js({'pad':PyJs_pad_1209_,'unpad':PyJs_unpad_1210_}))
|
|
return var.get('CryptoJS').get('pad').get('ZeroPadding')
|
|
PyJs_anonymous_1208_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1211_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1211_._set_name('anonymous')
|
|
PyJs_anonymous_1211_(var.get(u"this"), PyJs_anonymous_1208_)
|
|
PyJs_anonymous_1207_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1212_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1213_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1214_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'PBKDF2', 'C_algo', 'HMAC', 'Base', 'SHA1'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('Base', var.get('C_lib').get('Base'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('SHA1', var.get('C_algo').get('SHA1'))
|
|
var.put('HMAC', var.get('C_algo').get('HMAC'))
|
|
@Js
|
|
def PyJs_init_1215_(cfg, this, arguments, var=var):
|
|
var = Scope({'cfg':cfg, 'this':this, 'arguments':arguments, 'init':PyJs_init_1215_}, var)
|
|
var.registers(['cfg'])
|
|
var.get(u"this").put('cfg', var.get(u"this").get('cfg').callprop('extend', var.get('cfg')))
|
|
PyJs_init_1215_._set_name('init')
|
|
@Js
|
|
def PyJs_compute_1216_(password, salt, this, arguments, var=var):
|
|
var = Scope({'password':password, 'salt':salt, 'this':this, 'arguments':arguments, 'compute':PyJs_compute_1216_}, var)
|
|
var.registers(['blockIndexWords', 'i', 'iterations', 'intermediate', 'blockWordsLength', 'salt', 'block', 'j', 'hmac', 'blockIndex', 'blockWords', 'cfg', 'derivedKeyWords', 'keySize', 'intermediateWords', 'derivedKey', 'password'])
|
|
var.put('cfg', var.get(u"this").get('cfg'))
|
|
var.put('hmac', var.get('HMAC').callprop('create', var.get('cfg').get('hasher'), var.get('password')))
|
|
var.put('derivedKey', var.get('WordArray').callprop('create'))
|
|
var.put('blockIndex', var.get('WordArray').callprop('create', Js([Js(1)])))
|
|
var.put('derivedKeyWords', var.get('derivedKey').get('words'))
|
|
var.put('blockIndexWords', var.get('blockIndex').get('words'))
|
|
var.put('keySize', var.get('cfg').get('keySize'))
|
|
var.put('iterations', var.get('cfg').get('iterations'))
|
|
while (var.get('derivedKeyWords').get('length')<var.get('keySize')):
|
|
var.put('block', var.get('hmac').callprop('update', var.get('salt')).callprop('finalize', var.get('blockIndex')))
|
|
var.get('hmac').callprop('reset')
|
|
var.put('blockWords', var.get('block').get('words'))
|
|
var.put('blockWordsLength', var.get('blockWords').get('length'))
|
|
var.put('intermediate', var.get('block'))
|
|
#for JS loop
|
|
var.put('i', Js(1.0))
|
|
while (var.get('i')<var.get('iterations')):
|
|
try:
|
|
var.put('intermediate', var.get('hmac').callprop('finalize', var.get('intermediate')))
|
|
var.get('hmac').callprop('reset')
|
|
var.put('intermediateWords', var.get('intermediate').get('words'))
|
|
#for JS loop
|
|
var.put('j', Js(0.0))
|
|
while (var.get('j')<var.get('blockWordsLength')):
|
|
try:
|
|
var.get('blockWords').put(var.get('j'), var.get('intermediateWords').get(var.get('j')), '^')
|
|
finally:
|
|
(var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('derivedKey').callprop('concat', var.get('block'))
|
|
(var.get('blockIndexWords').put('0',Js(var.get('blockIndexWords').get('0').to_number())+Js(1))-Js(1))
|
|
var.get('derivedKey').put('sigBytes', (var.get('keySize')*Js(4.0)))
|
|
return var.get('derivedKey')
|
|
PyJs_compute_1216_._set_name('compute')
|
|
var.put('PBKDF2', var.get('C_algo').put('PBKDF2', var.get('Base').callprop('extend', Js({'cfg':var.get('Base').callprop('extend', Js({'keySize':(Js(128.0)/Js(32.0)),'hasher':var.get('SHA1'),'iterations':Js(1.0)})),'init':PyJs_init_1215_,'compute':PyJs_compute_1216_}))))
|
|
@Js
|
|
def PyJs_anonymous_1217_(password, salt, cfg, this, arguments, var=var):
|
|
var = Scope({'password':password, 'salt':salt, 'cfg':cfg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['cfg', 'salt', 'password'])
|
|
return var.get('PBKDF2').callprop('create', var.get('cfg')).callprop('compute', var.get('password'), var.get('salt'))
|
|
PyJs_anonymous_1217_._set_name('anonymous')
|
|
var.get('C').put('PBKDF2', PyJs_anonymous_1217_)
|
|
PyJs_anonymous_1214_._set_name('anonymous')
|
|
PyJs_anonymous_1214_()
|
|
return var.get('CryptoJS').get('PBKDF2')
|
|
PyJs_anonymous_1213_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1218_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./sha1')), var.get('require')(Js('./hmac')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./sha1'), Js('./hmac')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1218_._set_name('anonymous')
|
|
PyJs_anonymous_1218_(var.get(u"this"), PyJs_anonymous_1213_)
|
|
PyJs_anonymous_1212_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1219_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1220_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1221_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C_lib', 'C', 'RabbitLegacy', 'StreamCipher', 'C_algo', 'nextState', 'G', 'C_', 'S'])
|
|
@Js
|
|
def PyJsHoisted_nextState_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'gh', 'gb', 'i', 'X', 'ga', 'gl', 'gx'])
|
|
var.put('X', var.get(u"this").get('_X'))
|
|
var.put('C', var.get(u"this").get('_C'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(8.0)):
|
|
try:
|
|
var.get('C_').put(var.get('i'), var.get('C').get(var.get('i')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('C').put('0', (((var.get('C').get('0')+Js(1295307597))+var.get(u"this").get('_b'))|Js(0.0)))
|
|
var.get('C').put('1', (((var.get('C').get('1')+Js(3545052371))+(Js(1.0) if (PyJsBshift(var.get('C').get('0'),Js(0.0))<PyJsBshift(var.get('C_').get('0'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('2', (((var.get('C').get('2')+Js(886263092))+(Js(1.0) if (PyJsBshift(var.get('C').get('1'),Js(0.0))<PyJsBshift(var.get('C_').get('1'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('3', (((var.get('C').get('3')+Js(1295307597))+(Js(1.0) if (PyJsBshift(var.get('C').get('2'),Js(0.0))<PyJsBshift(var.get('C_').get('2'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('4', (((var.get('C').get('4')+Js(3545052371))+(Js(1.0) if (PyJsBshift(var.get('C').get('3'),Js(0.0))<PyJsBshift(var.get('C_').get('3'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('5', (((var.get('C').get('5')+Js(886263092))+(Js(1.0) if (PyJsBshift(var.get('C').get('4'),Js(0.0))<PyJsBshift(var.get('C_').get('4'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('6', (((var.get('C').get('6')+Js(1295307597))+(Js(1.0) if (PyJsBshift(var.get('C').get('5'),Js(0.0))<PyJsBshift(var.get('C_').get('5'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('7', (((var.get('C').get('7')+Js(3545052371))+(Js(1.0) if (PyJsBshift(var.get('C').get('6'),Js(0.0))<PyJsBshift(var.get('C_').get('6'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get(u"this").put('_b', (Js(1.0) if (PyJsBshift(var.get('C').get('7'),Js(0.0))<PyJsBshift(var.get('C_').get('7'),Js(0.0))) else Js(0.0)))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(8.0)):
|
|
try:
|
|
var.put('gx', (var.get('X').get(var.get('i'))+var.get('C').get(var.get('i'))))
|
|
var.put('ga', (var.get('gx')&Js(65535)))
|
|
var.put('gb', PyJsBshift(var.get('gx'),Js(16.0)))
|
|
var.put('gh', (PyJsBshift((PyJsBshift((var.get('ga')*var.get('ga')),Js(17.0))+(var.get('ga')*var.get('gb'))),Js(15.0))+(var.get('gb')*var.get('gb'))))
|
|
var.put('gl', ((((var.get('gx')&Js(4294901760))*var.get('gx'))|Js(0.0))+(((var.get('gx')&Js(65535))*var.get('gx'))|Js(0.0))))
|
|
var.get('G').put(var.get('i'), (var.get('gh')^var.get('gl')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('X').put('0', (((var.get('G').get('0')+((var.get('G').get('7')<<Js(16.0))|PyJsBshift(var.get('G').get('7'),Js(16.0))))+((var.get('G').get('6')<<Js(16.0))|PyJsBshift(var.get('G').get('6'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('1', (((var.get('G').get('1')+((var.get('G').get('0')<<Js(8.0))|PyJsBshift(var.get('G').get('0'),Js(24.0))))+var.get('G').get('7'))|Js(0.0)))
|
|
var.get('X').put('2', (((var.get('G').get('2')+((var.get('G').get('1')<<Js(16.0))|PyJsBshift(var.get('G').get('1'),Js(16.0))))+((var.get('G').get('0')<<Js(16.0))|PyJsBshift(var.get('G').get('0'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('3', (((var.get('G').get('3')+((var.get('G').get('2')<<Js(8.0))|PyJsBshift(var.get('G').get('2'),Js(24.0))))+var.get('G').get('1'))|Js(0.0)))
|
|
var.get('X').put('4', (((var.get('G').get('4')+((var.get('G').get('3')<<Js(16.0))|PyJsBshift(var.get('G').get('3'),Js(16.0))))+((var.get('G').get('2')<<Js(16.0))|PyJsBshift(var.get('G').get('2'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('5', (((var.get('G').get('5')+((var.get('G').get('4')<<Js(8.0))|PyJsBshift(var.get('G').get('4'),Js(24.0))))+var.get('G').get('3'))|Js(0.0)))
|
|
var.get('X').put('6', (((var.get('G').get('6')+((var.get('G').get('5')<<Js(16.0))|PyJsBshift(var.get('G').get('5'),Js(16.0))))+((var.get('G').get('4')<<Js(16.0))|PyJsBshift(var.get('G').get('4'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('7', (((var.get('G').get('7')+((var.get('G').get('6')<<Js(8.0))|PyJsBshift(var.get('G').get('6'),Js(24.0))))+var.get('G').get('5'))|Js(0.0)))
|
|
PyJsHoisted_nextState_.func_name = 'nextState'
|
|
var.put('nextState', PyJsHoisted_nextState_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('StreamCipher', var.get('C_lib').get('StreamCipher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('S', Js([]))
|
|
var.put('C_', Js([]))
|
|
var.put('G', Js([]))
|
|
@Js
|
|
def PyJs__doReset_1222_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1222_}, var)
|
|
var.registers(['C', 'i1', 'i0', 'IV_1', 'iv', 'i', 'i3', 'IV', 'X', 'IV_0', 'i2', 'K'])
|
|
var.put('K', var.get(u"this").get('_key').get('words'))
|
|
var.put('iv', var.get(u"this").get('cfg').get('iv'))
|
|
def PyJs_LONG_1223_(var=var):
|
|
return var.get(u"this").put('_X', Js([var.get('K').get('0'), ((var.get('K').get('3')<<Js(16.0))|PyJsBshift(var.get('K').get('2'),Js(16.0))), var.get('K').get('1'), ((var.get('K').get('0')<<Js(16.0))|PyJsBshift(var.get('K').get('3'),Js(16.0))), var.get('K').get('2'), ((var.get('K').get('1')<<Js(16.0))|PyJsBshift(var.get('K').get('0'),Js(16.0))), var.get('K').get('3'), ((var.get('K').get('2')<<Js(16.0))|PyJsBshift(var.get('K').get('1'),Js(16.0)))]))
|
|
var.put('X', PyJs_LONG_1223_())
|
|
def PyJs_LONG_1224_(var=var):
|
|
return var.get(u"this").put('_C', Js([((var.get('K').get('2')<<Js(16.0))|PyJsBshift(var.get('K').get('2'),Js(16.0))), ((var.get('K').get('0')&Js(4294901760))|(var.get('K').get('1')&Js(65535))), ((var.get('K').get('3')<<Js(16.0))|PyJsBshift(var.get('K').get('3'),Js(16.0))), ((var.get('K').get('1')&Js(4294901760))|(var.get('K').get('2')&Js(65535))), ((var.get('K').get('0')<<Js(16.0))|PyJsBshift(var.get('K').get('0'),Js(16.0))), ((var.get('K').get('2')&Js(4294901760))|(var.get('K').get('3')&Js(65535))), ((var.get('K').get('1')<<Js(16.0))|PyJsBshift(var.get('K').get('1'),Js(16.0))), ((var.get('K').get('3')&Js(4294901760))|(var.get('K').get('0')&Js(65535)))]))
|
|
var.put('C', PyJs_LONG_1224_())
|
|
var.get(u"this").put('_b', Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.get('nextState').callprop('call', var.get(u"this"))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(8.0)):
|
|
try:
|
|
var.get('C').put(var.get('i'), var.get('X').get(((var.get('i')+Js(4.0))&Js(7.0))), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
if var.get('iv'):
|
|
var.put('IV', var.get('iv').get('words'))
|
|
var.put('IV_0', var.get('IV').get('0'))
|
|
var.put('IV_1', var.get('IV').get('1'))
|
|
var.put('i0', ((((var.get('IV_0')<<Js(8.0))|PyJsBshift(var.get('IV_0'),Js(24.0)))&Js(16711935))|(((var.get('IV_0')<<Js(24.0))|PyJsBshift(var.get('IV_0'),Js(8.0)))&Js(4278255360))))
|
|
var.put('i2', ((((var.get('IV_1')<<Js(8.0))|PyJsBshift(var.get('IV_1'),Js(24.0)))&Js(16711935))|(((var.get('IV_1')<<Js(24.0))|PyJsBshift(var.get('IV_1'),Js(8.0)))&Js(4278255360))))
|
|
var.put('i1', (PyJsBshift(var.get('i0'),Js(16.0))|(var.get('i2')&Js(4294901760))))
|
|
var.put('i3', ((var.get('i2')<<Js(16.0))|(var.get('i0')&Js(65535))))
|
|
var.get('C').put('0', var.get('i0'), '^')
|
|
var.get('C').put('1', var.get('i1'), '^')
|
|
var.get('C').put('2', var.get('i2'), '^')
|
|
var.get('C').put('3', var.get('i3'), '^')
|
|
var.get('C').put('4', var.get('i0'), '^')
|
|
var.get('C').put('5', var.get('i1'), '^')
|
|
var.get('C').put('6', var.get('i2'), '^')
|
|
var.get('C').put('7', var.get('i3'), '^')
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.get('nextState').callprop('call', var.get(u"this"))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs__doReset_1222_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1225_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1225_}, var)
|
|
var.registers(['offset', 'M', 'i', 'X'])
|
|
var.put('X', var.get(u"this").get('_X'))
|
|
var.get('nextState').callprop('call', var.get(u"this"))
|
|
var.get('S').put('0', ((var.get('X').get('0')^PyJsBshift(var.get('X').get('5'),Js(16.0)))^(var.get('X').get('3')<<Js(16.0))))
|
|
var.get('S').put('1', ((var.get('X').get('2')^PyJsBshift(var.get('X').get('7'),Js(16.0)))^(var.get('X').get('5')<<Js(16.0))))
|
|
var.get('S').put('2', ((var.get('X').get('4')^PyJsBshift(var.get('X').get('1'),Js(16.0)))^(var.get('X').get('7')<<Js(16.0))))
|
|
var.get('S').put('3', ((var.get('X').get('6')^PyJsBshift(var.get('X').get('3'),Js(16.0)))^(var.get('X').get('1')<<Js(16.0))))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.get('S').put(var.get('i'), ((((var.get('S').get(var.get('i'))<<Js(8.0))|PyJsBshift(var.get('S').get(var.get('i')),Js(24.0)))&Js(16711935))|(((var.get('S').get(var.get('i'))<<Js(24.0))|PyJsBshift(var.get('S').get(var.get('i')),Js(8.0)))&Js(4278255360))))
|
|
var.get('M').put((var.get('offset')+var.get('i')), var.get('S').get(var.get('i')), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs__doProcessBlock_1225_._set_name('_doProcessBlock')
|
|
var.put('RabbitLegacy', var.get('C_algo').put('RabbitLegacy', var.get('StreamCipher').callprop('extend', Js({'_doReset':PyJs__doReset_1222_,'_doProcessBlock':PyJs__doProcessBlock_1225_,'blockSize':(Js(128.0)/Js(32.0)),'ivSize':(Js(64.0)/Js(32.0))}))))
|
|
pass
|
|
var.get('C').put('RabbitLegacy', var.get('StreamCipher').callprop('_createHelper', var.get('RabbitLegacy')))
|
|
PyJs_anonymous_1221_._set_name('anonymous')
|
|
PyJs_anonymous_1221_()
|
|
return var.get('CryptoJS').get('RabbitLegacy')
|
|
PyJs_anonymous_1220_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1226_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./enc-base64')), var.get('require')(Js('./md5')), var.get('require')(Js('./evpkdf')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./enc-base64'), Js('./md5'), Js('./evpkdf'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1226_._set_name('anonymous')
|
|
PyJs_anonymous_1226_(var.get(u"this"), PyJs_anonymous_1220_)
|
|
PyJs_anonymous_1219_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1227_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1228_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1229_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C_lib', 'C', 'StreamCipher', 'C_algo', 'Rabbit', 'nextState', 'G', 'C_', 'S'])
|
|
@Js
|
|
def PyJsHoisted_nextState_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'gh', 'gb', 'i', 'X', 'ga', 'gl', 'gx'])
|
|
var.put('X', var.get(u"this").get('_X'))
|
|
var.put('C', var.get(u"this").get('_C'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(8.0)):
|
|
try:
|
|
var.get('C_').put(var.get('i'), var.get('C').get(var.get('i')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('C').put('0', (((var.get('C').get('0')+Js(1295307597))+var.get(u"this").get('_b'))|Js(0.0)))
|
|
var.get('C').put('1', (((var.get('C').get('1')+Js(3545052371))+(Js(1.0) if (PyJsBshift(var.get('C').get('0'),Js(0.0))<PyJsBshift(var.get('C_').get('0'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('2', (((var.get('C').get('2')+Js(886263092))+(Js(1.0) if (PyJsBshift(var.get('C').get('1'),Js(0.0))<PyJsBshift(var.get('C_').get('1'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('3', (((var.get('C').get('3')+Js(1295307597))+(Js(1.0) if (PyJsBshift(var.get('C').get('2'),Js(0.0))<PyJsBshift(var.get('C_').get('2'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('4', (((var.get('C').get('4')+Js(3545052371))+(Js(1.0) if (PyJsBshift(var.get('C').get('3'),Js(0.0))<PyJsBshift(var.get('C_').get('3'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('5', (((var.get('C').get('5')+Js(886263092))+(Js(1.0) if (PyJsBshift(var.get('C').get('4'),Js(0.0))<PyJsBshift(var.get('C_').get('4'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('6', (((var.get('C').get('6')+Js(1295307597))+(Js(1.0) if (PyJsBshift(var.get('C').get('5'),Js(0.0))<PyJsBshift(var.get('C_').get('5'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get('C').put('7', (((var.get('C').get('7')+Js(3545052371))+(Js(1.0) if (PyJsBshift(var.get('C').get('6'),Js(0.0))<PyJsBshift(var.get('C_').get('6'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.get(u"this").put('_b', (Js(1.0) if (PyJsBshift(var.get('C').get('7'),Js(0.0))<PyJsBshift(var.get('C_').get('7'),Js(0.0))) else Js(0.0)))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(8.0)):
|
|
try:
|
|
var.put('gx', (var.get('X').get(var.get('i'))+var.get('C').get(var.get('i'))))
|
|
var.put('ga', (var.get('gx')&Js(65535)))
|
|
var.put('gb', PyJsBshift(var.get('gx'),Js(16.0)))
|
|
var.put('gh', (PyJsBshift((PyJsBshift((var.get('ga')*var.get('ga')),Js(17.0))+(var.get('ga')*var.get('gb'))),Js(15.0))+(var.get('gb')*var.get('gb'))))
|
|
var.put('gl', ((((var.get('gx')&Js(4294901760))*var.get('gx'))|Js(0.0))+(((var.get('gx')&Js(65535))*var.get('gx'))|Js(0.0))))
|
|
var.get('G').put(var.get('i'), (var.get('gh')^var.get('gl')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('X').put('0', (((var.get('G').get('0')+((var.get('G').get('7')<<Js(16.0))|PyJsBshift(var.get('G').get('7'),Js(16.0))))+((var.get('G').get('6')<<Js(16.0))|PyJsBshift(var.get('G').get('6'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('1', (((var.get('G').get('1')+((var.get('G').get('0')<<Js(8.0))|PyJsBshift(var.get('G').get('0'),Js(24.0))))+var.get('G').get('7'))|Js(0.0)))
|
|
var.get('X').put('2', (((var.get('G').get('2')+((var.get('G').get('1')<<Js(16.0))|PyJsBshift(var.get('G').get('1'),Js(16.0))))+((var.get('G').get('0')<<Js(16.0))|PyJsBshift(var.get('G').get('0'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('3', (((var.get('G').get('3')+((var.get('G').get('2')<<Js(8.0))|PyJsBshift(var.get('G').get('2'),Js(24.0))))+var.get('G').get('1'))|Js(0.0)))
|
|
var.get('X').put('4', (((var.get('G').get('4')+((var.get('G').get('3')<<Js(16.0))|PyJsBshift(var.get('G').get('3'),Js(16.0))))+((var.get('G').get('2')<<Js(16.0))|PyJsBshift(var.get('G').get('2'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('5', (((var.get('G').get('5')+((var.get('G').get('4')<<Js(8.0))|PyJsBshift(var.get('G').get('4'),Js(24.0))))+var.get('G').get('3'))|Js(0.0)))
|
|
var.get('X').put('6', (((var.get('G').get('6')+((var.get('G').get('5')<<Js(16.0))|PyJsBshift(var.get('G').get('5'),Js(16.0))))+((var.get('G').get('4')<<Js(16.0))|PyJsBshift(var.get('G').get('4'),Js(16.0))))|Js(0.0)))
|
|
var.get('X').put('7', (((var.get('G').get('7')+((var.get('G').get('6')<<Js(8.0))|PyJsBshift(var.get('G').get('6'),Js(24.0))))+var.get('G').get('5'))|Js(0.0)))
|
|
PyJsHoisted_nextState_.func_name = 'nextState'
|
|
var.put('nextState', PyJsHoisted_nextState_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('StreamCipher', var.get('C_lib').get('StreamCipher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('S', Js([]))
|
|
var.put('C_', Js([]))
|
|
var.put('G', Js([]))
|
|
@Js
|
|
def PyJs__doReset_1230_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1230_}, var)
|
|
var.registers(['C', 'i1', 'i0', 'IV_1', 'iv', 'i', 'i3', 'IV', 'X', 'IV_0', 'i2', 'K'])
|
|
var.put('K', var.get(u"this").get('_key').get('words'))
|
|
var.put('iv', var.get(u"this").get('cfg').get('iv'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.get('K').put(var.get('i'), ((((var.get('K').get(var.get('i'))<<Js(8.0))|PyJsBshift(var.get('K').get(var.get('i')),Js(24.0)))&Js(16711935))|(((var.get('K').get(var.get('i'))<<Js(24.0))|PyJsBshift(var.get('K').get(var.get('i')),Js(8.0)))&Js(4278255360))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
def PyJs_LONG_1231_(var=var):
|
|
return var.get(u"this").put('_X', Js([var.get('K').get('0'), ((var.get('K').get('3')<<Js(16.0))|PyJsBshift(var.get('K').get('2'),Js(16.0))), var.get('K').get('1'), ((var.get('K').get('0')<<Js(16.0))|PyJsBshift(var.get('K').get('3'),Js(16.0))), var.get('K').get('2'), ((var.get('K').get('1')<<Js(16.0))|PyJsBshift(var.get('K').get('0'),Js(16.0))), var.get('K').get('3'), ((var.get('K').get('2')<<Js(16.0))|PyJsBshift(var.get('K').get('1'),Js(16.0)))]))
|
|
var.put('X', PyJs_LONG_1231_())
|
|
def PyJs_LONG_1232_(var=var):
|
|
return var.get(u"this").put('_C', Js([((var.get('K').get('2')<<Js(16.0))|PyJsBshift(var.get('K').get('2'),Js(16.0))), ((var.get('K').get('0')&Js(4294901760))|(var.get('K').get('1')&Js(65535))), ((var.get('K').get('3')<<Js(16.0))|PyJsBshift(var.get('K').get('3'),Js(16.0))), ((var.get('K').get('1')&Js(4294901760))|(var.get('K').get('2')&Js(65535))), ((var.get('K').get('0')<<Js(16.0))|PyJsBshift(var.get('K').get('0'),Js(16.0))), ((var.get('K').get('2')&Js(4294901760))|(var.get('K').get('3')&Js(65535))), ((var.get('K').get('1')<<Js(16.0))|PyJsBshift(var.get('K').get('1'),Js(16.0))), ((var.get('K').get('3')&Js(4294901760))|(var.get('K').get('0')&Js(65535)))]))
|
|
var.put('C', PyJs_LONG_1232_())
|
|
var.get(u"this").put('_b', Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.get('nextState').callprop('call', var.get(u"this"))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(8.0)):
|
|
try:
|
|
var.get('C').put(var.get('i'), var.get('X').get(((var.get('i')+Js(4.0))&Js(7.0))), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
if var.get('iv'):
|
|
var.put('IV', var.get('iv').get('words'))
|
|
var.put('IV_0', var.get('IV').get('0'))
|
|
var.put('IV_1', var.get('IV').get('1'))
|
|
var.put('i0', ((((var.get('IV_0')<<Js(8.0))|PyJsBshift(var.get('IV_0'),Js(24.0)))&Js(16711935))|(((var.get('IV_0')<<Js(24.0))|PyJsBshift(var.get('IV_0'),Js(8.0)))&Js(4278255360))))
|
|
var.put('i2', ((((var.get('IV_1')<<Js(8.0))|PyJsBshift(var.get('IV_1'),Js(24.0)))&Js(16711935))|(((var.get('IV_1')<<Js(24.0))|PyJsBshift(var.get('IV_1'),Js(8.0)))&Js(4278255360))))
|
|
var.put('i1', (PyJsBshift(var.get('i0'),Js(16.0))|(var.get('i2')&Js(4294901760))))
|
|
var.put('i3', ((var.get('i2')<<Js(16.0))|(var.get('i0')&Js(65535))))
|
|
var.get('C').put('0', var.get('i0'), '^')
|
|
var.get('C').put('1', var.get('i1'), '^')
|
|
var.get('C').put('2', var.get('i2'), '^')
|
|
var.get('C').put('3', var.get('i3'), '^')
|
|
var.get('C').put('4', var.get('i0'), '^')
|
|
var.get('C').put('5', var.get('i1'), '^')
|
|
var.get('C').put('6', var.get('i2'), '^')
|
|
var.get('C').put('7', var.get('i3'), '^')
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.get('nextState').callprop('call', var.get(u"this"))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs__doReset_1230_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1233_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1233_}, var)
|
|
var.registers(['offset', 'M', 'i', 'X'])
|
|
var.put('X', var.get(u"this").get('_X'))
|
|
var.get('nextState').callprop('call', var.get(u"this"))
|
|
var.get('S').put('0', ((var.get('X').get('0')^PyJsBshift(var.get('X').get('5'),Js(16.0)))^(var.get('X').get('3')<<Js(16.0))))
|
|
var.get('S').put('1', ((var.get('X').get('2')^PyJsBshift(var.get('X').get('7'),Js(16.0)))^(var.get('X').get('5')<<Js(16.0))))
|
|
var.get('S').put('2', ((var.get('X').get('4')^PyJsBshift(var.get('X').get('1'),Js(16.0)))^(var.get('X').get('7')<<Js(16.0))))
|
|
var.get('S').put('3', ((var.get('X').get('6')^PyJsBshift(var.get('X').get('3'),Js(16.0)))^(var.get('X').get('1')<<Js(16.0))))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(4.0)):
|
|
try:
|
|
var.get('S').put(var.get('i'), ((((var.get('S').get(var.get('i'))<<Js(8.0))|PyJsBshift(var.get('S').get(var.get('i')),Js(24.0)))&Js(16711935))|(((var.get('S').get(var.get('i'))<<Js(24.0))|PyJsBshift(var.get('S').get(var.get('i')),Js(8.0)))&Js(4278255360))))
|
|
var.get('M').put((var.get('offset')+var.get('i')), var.get('S').get(var.get('i')), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs__doProcessBlock_1233_._set_name('_doProcessBlock')
|
|
var.put('Rabbit', var.get('C_algo').put('Rabbit', var.get('StreamCipher').callprop('extend', Js({'_doReset':PyJs__doReset_1230_,'_doProcessBlock':PyJs__doProcessBlock_1233_,'blockSize':(Js(128.0)/Js(32.0)),'ivSize':(Js(64.0)/Js(32.0))}))))
|
|
pass
|
|
var.get('C').put('Rabbit', var.get('StreamCipher').callprop('_createHelper', var.get('Rabbit')))
|
|
PyJs_anonymous_1229_._set_name('anonymous')
|
|
PyJs_anonymous_1229_()
|
|
return var.get('CryptoJS').get('Rabbit')
|
|
PyJs_anonymous_1228_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1234_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./enc-base64')), var.get('require')(Js('./md5')), var.get('require')(Js('./evpkdf')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./enc-base64'), Js('./md5'), Js('./evpkdf'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1234_._set_name('anonymous')
|
|
PyJs_anonymous_1234_(var.get(u"this"), PyJs_anonymous_1228_)
|
|
PyJs_anonymous_1227_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1235_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1236_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1237_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C_lib', 'C', 'RC4', 'StreamCipher', 'C_algo', 'RC4Drop', 'generateKeystreamWord'])
|
|
@Js
|
|
def PyJsHoisted_generateKeystreamWord_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['n', 'i', 't', 'keystreamWord', 'j', 'S'])
|
|
var.put('S', var.get(u"this").get('_S'))
|
|
var.put('i', var.get(u"this").get('_i'))
|
|
var.put('j', var.get(u"this").get('_j'))
|
|
var.put('keystreamWord', Js(0.0))
|
|
#for JS loop
|
|
var.put('n', Js(0.0))
|
|
while (var.get('n')<Js(4.0)):
|
|
try:
|
|
var.put('i', ((var.get('i')+Js(1.0))%Js(256.0)))
|
|
var.put('j', ((var.get('j')+var.get('S').get(var.get('i')))%Js(256.0)))
|
|
var.put('t', var.get('S').get(var.get('i')))
|
|
var.get('S').put(var.get('i'), var.get('S').get(var.get('j')))
|
|
var.get('S').put(var.get('j'), var.get('t'))
|
|
var.put('keystreamWord', (var.get('S').get(((var.get('S').get(var.get('i'))+var.get('S').get(var.get('j')))%Js(256.0)))<<(Js(24.0)-(var.get('n')*Js(8.0)))), '|')
|
|
finally:
|
|
(var.put('n',Js(var.get('n').to_number())+Js(1))-Js(1))
|
|
var.get(u"this").put('_i', var.get('i'))
|
|
var.get(u"this").put('_j', var.get('j'))
|
|
return var.get('keystreamWord')
|
|
PyJsHoisted_generateKeystreamWord_.func_name = 'generateKeystreamWord'
|
|
var.put('generateKeystreamWord', PyJsHoisted_generateKeystreamWord_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('StreamCipher', var.get('C_lib').get('StreamCipher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
@Js
|
|
def PyJs__doReset_1238_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1238_}, var)
|
|
var.registers(['keyWords', 'i', 't', 'keySigBytes', 'j', 'keyByteIndex', 'S', 'key', 'keyByte'])
|
|
var.put('key', var.get(u"this").get('_key'))
|
|
var.put('keyWords', var.get('key').get('words'))
|
|
var.put('keySigBytes', var.get('key').get('sigBytes'))
|
|
var.put('S', var.get(u"this").put('_S', Js([])))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(256.0)):
|
|
try:
|
|
var.get('S').put(var.get('i'), var.get('i'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
var.put('j', Js(0.0))
|
|
while (var.get('i')<Js(256.0)):
|
|
try:
|
|
var.put('keyByteIndex', (var.get('i')%var.get('keySigBytes')))
|
|
var.put('keyByte', (PyJsBshift(var.get('keyWords').get(PyJsBshift(var.get('keyByteIndex'),Js(2.0))),(Js(24.0)-((var.get('keyByteIndex')%Js(4.0))*Js(8.0))))&Js(255)))
|
|
var.put('j', (((var.get('j')+var.get('S').get(var.get('i')))+var.get('keyByte'))%Js(256.0)))
|
|
var.put('t', var.get('S').get(var.get('i')))
|
|
var.get('S').put(var.get('i'), var.get('S').get(var.get('j')))
|
|
var.get('S').put(var.get('j'), var.get('t'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get(u"this").put('_i', var.get(u"this").put('_j', Js(0.0)))
|
|
PyJs__doReset_1238_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1239_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1239_}, var)
|
|
var.registers(['offset', 'M'])
|
|
var.get('M').put(var.get('offset'), var.get('generateKeystreamWord').callprop('call', var.get(u"this")), '^')
|
|
PyJs__doProcessBlock_1239_._set_name('_doProcessBlock')
|
|
var.put('RC4', var.get('C_algo').put('RC4', var.get('StreamCipher').callprop('extend', Js({'_doReset':PyJs__doReset_1238_,'_doProcessBlock':PyJs__doProcessBlock_1239_,'keySize':(Js(256.0)/Js(32.0)),'ivSize':Js(0.0)}))))
|
|
pass
|
|
var.get('C').put('RC4', var.get('StreamCipher').callprop('_createHelper', var.get('RC4')))
|
|
@Js
|
|
def PyJs__doReset_1240_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1240_}, var)
|
|
var.registers(['i'])
|
|
var.get('RC4').get('_doReset').callprop('call', var.get(u"this"))
|
|
#for JS loop
|
|
var.put('i', var.get(u"this").get('cfg').get('drop'))
|
|
while (var.get('i')>Js(0.0)):
|
|
try:
|
|
var.get('generateKeystreamWord').callprop('call', var.get(u"this"))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())-Js(1))+Js(1))
|
|
PyJs__doReset_1240_._set_name('_doReset')
|
|
var.put('RC4Drop', var.get('C_algo').put('RC4Drop', var.get('RC4').callprop('extend', Js({'cfg':var.get('RC4').get('cfg').callprop('extend', Js({'drop':Js(192.0)})),'_doReset':PyJs__doReset_1240_}))))
|
|
var.get('C').put('RC4Drop', var.get('StreamCipher').callprop('_createHelper', var.get('RC4Drop')))
|
|
PyJs_anonymous_1237_._set_name('anonymous')
|
|
PyJs_anonymous_1237_()
|
|
return var.get('CryptoJS').get('RC4')
|
|
PyJs_anonymous_1236_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1241_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./enc-base64')), var.get('require')(Js('./md5')), var.get('require')(Js('./evpkdf')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./enc-base64'), Js('./md5'), Js('./evpkdf'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1241_._set_name('anonymous')
|
|
PyJs_anonymous_1241_(var.get(u"this"), PyJs_anonymous_1236_)
|
|
PyJs_anonymous_1235_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1242_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1243_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1244_(Math, this, arguments, var=var):
|
|
var = Scope({'Math':Math, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['f3', 'C', 'C_algo', '_sl', 'f1', 'f4', 'RIPEMD160', 'f2', 'WordArray', 'f5', '_sr', 'C_lib', '_zl', '_zr', 'Math', '_hl', 'Hasher', 'rotl', '_hr'])
|
|
@Js
|
|
def PyJsHoisted_f1_(x, y, z, this, arguments, var=var):
|
|
var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['z', 'x', 'y'])
|
|
return ((var.get('x')^var.get('y'))^var.get('z'))
|
|
PyJsHoisted_f1_.func_name = 'f1'
|
|
var.put('f1', PyJsHoisted_f1_)
|
|
@Js
|
|
def PyJsHoisted_f2_(x, y, z, this, arguments, var=var):
|
|
var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['z', 'x', 'y'])
|
|
return ((var.get('x')&var.get('y'))|((~var.get('x'))&var.get('z')))
|
|
PyJsHoisted_f2_.func_name = 'f2'
|
|
var.put('f2', PyJsHoisted_f2_)
|
|
@Js
|
|
def PyJsHoisted_f3_(x, y, z, this, arguments, var=var):
|
|
var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['z', 'x', 'y'])
|
|
return ((var.get('x')|(~var.get('y')))^var.get('z'))
|
|
PyJsHoisted_f3_.func_name = 'f3'
|
|
var.put('f3', PyJsHoisted_f3_)
|
|
@Js
|
|
def PyJsHoisted_f4_(x, y, z, this, arguments, var=var):
|
|
var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['z', 'x', 'y'])
|
|
return ((var.get('x')&var.get('z'))|(var.get('y')&(~var.get('z'))))
|
|
PyJsHoisted_f4_.func_name = 'f4'
|
|
var.put('f4', PyJsHoisted_f4_)
|
|
@Js
|
|
def PyJsHoisted_f5_(x, y, z, this, arguments, var=var):
|
|
var = Scope({'x':x, 'y':y, 'z':z, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['z', 'x', 'y'])
|
|
return (var.get('x')^(var.get('y')|(~var.get('z'))))
|
|
PyJsHoisted_f5_.func_name = 'f5'
|
|
var.put('f5', PyJsHoisted_f5_)
|
|
@Js
|
|
def PyJsHoisted_rotl_(x, n, this, arguments, var=var):
|
|
var = Scope({'x':x, 'n':n, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['x', 'n'])
|
|
return ((var.get('x')<<var.get('n'))|PyJsBshift(var.get('x'),(Js(32.0)-var.get('n'))))
|
|
PyJsHoisted_rotl_.func_name = 'rotl'
|
|
var.put('rotl', PyJsHoisted_rotl_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('Hasher', var.get('C_lib').get('Hasher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
def PyJs_LONG_1245_(var=var):
|
|
return var.get('WordArray').callprop('create', Js([Js(0.0), Js(1.0), Js(2.0), Js(3.0), Js(4.0), Js(5.0), Js(6.0), Js(7.0), Js(8.0), Js(9.0), Js(10.0), Js(11.0), Js(12.0), Js(13.0), Js(14.0), Js(15.0), Js(7.0), Js(4.0), Js(13.0), Js(1.0), Js(10.0), Js(6.0), Js(15.0), Js(3.0), Js(12.0), Js(0.0), Js(9.0), Js(5.0), Js(2.0), Js(14.0), Js(11.0), Js(8.0), Js(3.0), Js(10.0), Js(14.0), Js(4.0), Js(9.0), Js(15.0), Js(8.0), Js(1.0), Js(2.0), Js(7.0), Js(0.0), Js(6.0), Js(13.0), Js(11.0), Js(5.0), Js(12.0), Js(1.0), Js(9.0), Js(11.0), Js(10.0), Js(0.0), Js(8.0), Js(12.0), Js(4.0), Js(13.0), Js(3.0), Js(7.0), Js(15.0), Js(14.0), Js(5.0), Js(6.0), Js(2.0), Js(4.0), Js(0.0), Js(5.0), Js(9.0), Js(7.0), Js(12.0), Js(2.0), Js(10.0), Js(14.0), Js(1.0), Js(3.0), Js(8.0), Js(11.0), Js(6.0), Js(15.0), Js(13.0)]))
|
|
var.put('_zl', PyJs_LONG_1245_())
|
|
def PyJs_LONG_1246_(var=var):
|
|
return var.get('WordArray').callprop('create', Js([Js(5.0), Js(14.0), Js(7.0), Js(0.0), Js(9.0), Js(2.0), Js(11.0), Js(4.0), Js(13.0), Js(6.0), Js(15.0), Js(8.0), Js(1.0), Js(10.0), Js(3.0), Js(12.0), Js(6.0), Js(11.0), Js(3.0), Js(7.0), Js(0.0), Js(13.0), Js(5.0), Js(10.0), Js(14.0), Js(15.0), Js(8.0), Js(12.0), Js(4.0), Js(9.0), Js(1.0), Js(2.0), Js(15.0), Js(5.0), Js(1.0), Js(3.0), Js(7.0), Js(14.0), Js(6.0), Js(9.0), Js(11.0), Js(8.0), Js(12.0), Js(2.0), Js(10.0), Js(0.0), Js(4.0), Js(13.0), Js(8.0), Js(6.0), Js(4.0), Js(1.0), Js(3.0), Js(11.0), Js(15.0), Js(0.0), Js(5.0), Js(12.0), Js(2.0), Js(13.0), Js(9.0), Js(7.0), Js(10.0), Js(14.0), Js(12.0), Js(15.0), Js(10.0), Js(4.0), Js(1.0), Js(5.0), Js(8.0), Js(7.0), Js(6.0), Js(2.0), Js(13.0), Js(14.0), Js(0.0), Js(3.0), Js(9.0), Js(11.0)]))
|
|
var.put('_zr', PyJs_LONG_1246_())
|
|
def PyJs_LONG_1247_(var=var):
|
|
return var.get('WordArray').callprop('create', Js([Js(11.0), Js(14.0), Js(15.0), Js(12.0), Js(5.0), Js(8.0), Js(7.0), Js(9.0), Js(11.0), Js(13.0), Js(14.0), Js(15.0), Js(6.0), Js(7.0), Js(9.0), Js(8.0), Js(7.0), Js(6.0), Js(8.0), Js(13.0), Js(11.0), Js(9.0), Js(7.0), Js(15.0), Js(7.0), Js(12.0), Js(15.0), Js(9.0), Js(11.0), Js(7.0), Js(13.0), Js(12.0), Js(11.0), Js(13.0), Js(6.0), Js(7.0), Js(14.0), Js(9.0), Js(13.0), Js(15.0), Js(14.0), Js(8.0), Js(13.0), Js(6.0), Js(5.0), Js(12.0), Js(7.0), Js(5.0), Js(11.0), Js(12.0), Js(14.0), Js(15.0), Js(14.0), Js(15.0), Js(9.0), Js(8.0), Js(9.0), Js(14.0), Js(5.0), Js(6.0), Js(8.0), Js(6.0), Js(5.0), Js(12.0), Js(9.0), Js(15.0), Js(5.0), Js(11.0), Js(6.0), Js(8.0), Js(13.0), Js(12.0), Js(5.0), Js(12.0), Js(13.0), Js(14.0), Js(11.0), Js(8.0), Js(5.0), Js(6.0)]))
|
|
var.put('_sl', PyJs_LONG_1247_())
|
|
def PyJs_LONG_1248_(var=var):
|
|
return var.get('WordArray').callprop('create', Js([Js(8.0), Js(9.0), Js(9.0), Js(11.0), Js(13.0), Js(15.0), Js(15.0), Js(5.0), Js(7.0), Js(7.0), Js(8.0), Js(11.0), Js(14.0), Js(14.0), Js(12.0), Js(6.0), Js(9.0), Js(13.0), Js(15.0), Js(7.0), Js(12.0), Js(8.0), Js(9.0), Js(11.0), Js(7.0), Js(7.0), Js(12.0), Js(7.0), Js(6.0), Js(15.0), Js(13.0), Js(11.0), Js(9.0), Js(7.0), Js(15.0), Js(11.0), Js(8.0), Js(6.0), Js(6.0), Js(14.0), Js(12.0), Js(13.0), Js(5.0), Js(14.0), Js(13.0), Js(13.0), Js(7.0), Js(5.0), Js(15.0), Js(5.0), Js(8.0), Js(11.0), Js(14.0), Js(14.0), Js(6.0), Js(14.0), Js(6.0), Js(9.0), Js(12.0), Js(9.0), Js(12.0), Js(5.0), Js(15.0), Js(8.0), Js(8.0), Js(5.0), Js(12.0), Js(9.0), Js(12.0), Js(5.0), Js(14.0), Js(6.0), Js(8.0), Js(13.0), Js(6.0), Js(5.0), Js(15.0), Js(13.0), Js(11.0), Js(11.0)]))
|
|
var.put('_sr', PyJs_LONG_1248_())
|
|
var.put('_hl', var.get('WordArray').callprop('create', Js([Js(0), Js(1518500249), Js(1859775393), Js(2400959708), Js(2840853838)])))
|
|
var.put('_hr', var.get('WordArray').callprop('create', Js([Js(1352829926), Js(1548603684), Js(1836072691), Js(2053994217), Js(0)])))
|
|
@Js
|
|
def PyJs__doReset_1249_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1249_}, var)
|
|
var.registers([])
|
|
var.get(u"this").put('_hash', var.get('WordArray').callprop('create', Js([Js(1732584193), Js(4023233417), Js(2562383102), Js(271733878), Js(3285377520)])))
|
|
PyJs__doReset_1249_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1250_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1250_}, var)
|
|
var.registers(['ar', 'al', 'br', 'i', 'cr', 'offset_i', 'hl', 'M_offset_i', 'dr', 'sr', 'el', 'cl', 'offset', 'H', 'er', 'zl', 'M', 't', 'bl', 'sl', 'zr', 'hr', 'dl'])
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(16.0)):
|
|
try:
|
|
var.put('offset_i', (var.get('offset')+var.get('i')))
|
|
var.put('M_offset_i', var.get('M').get(var.get('offset_i')))
|
|
var.get('M').put(var.get('offset_i'), ((((var.get('M_offset_i')<<Js(8.0))|PyJsBshift(var.get('M_offset_i'),Js(24.0)))&Js(16711935))|(((var.get('M_offset_i')<<Js(24.0))|PyJsBshift(var.get('M_offset_i'),Js(8.0)))&Js(4278255360))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.put('H', var.get(u"this").get('_hash').get('words'))
|
|
var.put('hl', var.get('_hl').get('words'))
|
|
var.put('hr', var.get('_hr').get('words'))
|
|
var.put('zl', var.get('_zl').get('words'))
|
|
var.put('zr', var.get('_zr').get('words'))
|
|
var.put('sl', var.get('_sl').get('words'))
|
|
var.put('sr', var.get('_sr').get('words'))
|
|
pass
|
|
pass
|
|
var.put('ar', var.put('al', var.get('H').get('0')))
|
|
var.put('br', var.put('bl', var.get('H').get('1')))
|
|
var.put('cr', var.put('cl', var.get('H').get('2')))
|
|
var.put('dr', var.put('dl', var.get('H').get('3')))
|
|
var.put('er', var.put('el', var.get('H').get('4')))
|
|
pass
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(80.0)):
|
|
try:
|
|
var.put('t', ((var.get('al')+var.get('M').get((var.get('offset')+var.get('zl').get(var.get('i')))))|Js(0.0)))
|
|
if (var.get('i')<Js(16.0)):
|
|
var.put('t', (var.get('f1')(var.get('bl'), var.get('cl'), var.get('dl'))+var.get('hl').get('0')), '+')
|
|
else:
|
|
if (var.get('i')<Js(32.0)):
|
|
var.put('t', (var.get('f2')(var.get('bl'), var.get('cl'), var.get('dl'))+var.get('hl').get('1')), '+')
|
|
else:
|
|
if (var.get('i')<Js(48.0)):
|
|
var.put('t', (var.get('f3')(var.get('bl'), var.get('cl'), var.get('dl'))+var.get('hl').get('2')), '+')
|
|
else:
|
|
if (var.get('i')<Js(64.0)):
|
|
var.put('t', (var.get('f4')(var.get('bl'), var.get('cl'), var.get('dl'))+var.get('hl').get('3')), '+')
|
|
else:
|
|
var.put('t', (var.get('f5')(var.get('bl'), var.get('cl'), var.get('dl'))+var.get('hl').get('4')), '+')
|
|
var.put('t', (var.get('t')|Js(0.0)))
|
|
var.put('t', var.get('rotl')(var.get('t'), var.get('sl').get(var.get('i'))))
|
|
var.put('t', ((var.get('t')+var.get('el'))|Js(0.0)))
|
|
var.put('al', var.get('el'))
|
|
var.put('el', var.get('dl'))
|
|
var.put('dl', var.get('rotl')(var.get('cl'), Js(10.0)))
|
|
var.put('cl', var.get('bl'))
|
|
var.put('bl', var.get('t'))
|
|
var.put('t', ((var.get('ar')+var.get('M').get((var.get('offset')+var.get('zr').get(var.get('i')))))|Js(0.0)))
|
|
if (var.get('i')<Js(16.0)):
|
|
var.put('t', (var.get('f5')(var.get('br'), var.get('cr'), var.get('dr'))+var.get('hr').get('0')), '+')
|
|
else:
|
|
if (var.get('i')<Js(32.0)):
|
|
var.put('t', (var.get('f4')(var.get('br'), var.get('cr'), var.get('dr'))+var.get('hr').get('1')), '+')
|
|
else:
|
|
if (var.get('i')<Js(48.0)):
|
|
var.put('t', (var.get('f3')(var.get('br'), var.get('cr'), var.get('dr'))+var.get('hr').get('2')), '+')
|
|
else:
|
|
if (var.get('i')<Js(64.0)):
|
|
var.put('t', (var.get('f2')(var.get('br'), var.get('cr'), var.get('dr'))+var.get('hr').get('3')), '+')
|
|
else:
|
|
var.put('t', (var.get('f1')(var.get('br'), var.get('cr'), var.get('dr'))+var.get('hr').get('4')), '+')
|
|
var.put('t', (var.get('t')|Js(0.0)))
|
|
var.put('t', var.get('rotl')(var.get('t'), var.get('sr').get(var.get('i'))))
|
|
var.put('t', ((var.get('t')+var.get('er'))|Js(0.0)))
|
|
var.put('ar', var.get('er'))
|
|
var.put('er', var.get('dr'))
|
|
var.put('dr', var.get('rotl')(var.get('cr'), Js(10.0)))
|
|
var.put('cr', var.get('br'))
|
|
var.put('br', var.get('t'))
|
|
finally:
|
|
var.put('i', Js(1.0), '+')
|
|
var.put('t', (((var.get('H').get('1')+var.get('cl'))+var.get('dr'))|Js(0.0)))
|
|
var.get('H').put('1', (((var.get('H').get('2')+var.get('dl'))+var.get('er'))|Js(0.0)))
|
|
var.get('H').put('2', (((var.get('H').get('3')+var.get('el'))+var.get('ar'))|Js(0.0)))
|
|
var.get('H').put('3', (((var.get('H').get('4')+var.get('al'))+var.get('br'))|Js(0.0)))
|
|
var.get('H').put('4', (((var.get('H').get('0')+var.get('bl'))+var.get('cr'))|Js(0.0)))
|
|
var.get('H').put('0', var.get('t'))
|
|
PyJs__doProcessBlock_1250_._set_name('_doProcessBlock')
|
|
@Js
|
|
def PyJs__doFinalize_1251_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1251_}, var)
|
|
var.registers(['nBitsLeft', 'H', 'nBitsTotal', 'i', 'data', 'H_i', 'hash', 'dataWords'])
|
|
var.put('data', var.get(u"this").get('_data'))
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('nBitsTotal', (var.get(u"this").get('_nDataBytes')*Js(8.0)))
|
|
var.put('nBitsLeft', (var.get('data').get('sigBytes')*Js(8.0)))
|
|
var.get('dataWords').put(PyJsBshift(var.get('nBitsLeft'),Js(5.0)), (Js(128)<<(Js(24.0)-(var.get('nBitsLeft')%Js(32.0)))), '|')
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(64.0)),Js(9.0))<<Js(4.0))+Js(14.0)), ((((var.get('nBitsTotal')<<Js(8.0))|PyJsBshift(var.get('nBitsTotal'),Js(24.0)))&Js(16711935))|(((var.get('nBitsTotal')<<Js(24.0))|PyJsBshift(var.get('nBitsTotal'),Js(8.0)))&Js(4278255360))))
|
|
var.get('data').put('sigBytes', ((var.get('dataWords').get('length')+Js(1.0))*Js(4.0)))
|
|
var.get(u"this").callprop('_process')
|
|
var.put('hash', var.get(u"this").get('_hash'))
|
|
var.put('H', var.get('hash').get('words'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(5.0)):
|
|
try:
|
|
var.put('H_i', var.get('H').get(var.get('i')))
|
|
var.get('H').put(var.get('i'), ((((var.get('H_i')<<Js(8.0))|PyJsBshift(var.get('H_i'),Js(24.0)))&Js(16711935))|(((var.get('H_i')<<Js(24.0))|PyJsBshift(var.get('H_i'),Js(8.0)))&Js(4278255360))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('hash')
|
|
PyJs__doFinalize_1251_._set_name('_doFinalize')
|
|
@Js
|
|
def PyJs_clone_1252_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1252_}, var)
|
|
var.registers(['clone'])
|
|
var.put('clone', var.get('Hasher').get('clone').callprop('call', var.get(u"this")))
|
|
var.get('clone').put('_hash', var.get(u"this").get('_hash').callprop('clone'))
|
|
return var.get('clone')
|
|
PyJs_clone_1252_._set_name('clone')
|
|
var.put('RIPEMD160', var.get('C_algo').put('RIPEMD160', var.get('Hasher').callprop('extend', Js({'_doReset':PyJs__doReset_1249_,'_doProcessBlock':PyJs__doProcessBlock_1250_,'_doFinalize':PyJs__doFinalize_1251_,'clone':PyJs_clone_1252_}))))
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
var.get('C').put('RIPEMD160', var.get('Hasher').callprop('_createHelper', var.get('RIPEMD160')))
|
|
var.get('C').put('HmacRIPEMD160', var.get('Hasher').callprop('_createHmacHelper', var.get('RIPEMD160')))
|
|
PyJs_anonymous_1244_._set_name('anonymous')
|
|
PyJs_anonymous_1244_(var.get('Math'))
|
|
return var.get('CryptoJS').get('RIPEMD160')
|
|
PyJs_anonymous_1243_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1253_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1253_._set_name('anonymous')
|
|
PyJs_anonymous_1253_(var.get(u"this"), PyJs_anonymous_1243_)
|
|
PyJs_anonymous_1242_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1254_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1255_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1256_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'C_algo', 'W', 'Hasher', 'SHA1'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('Hasher', var.get('C_lib').get('Hasher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('W', Js([]))
|
|
@Js
|
|
def PyJs__doReset_1257_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1257_}, var)
|
|
var.registers([])
|
|
var.get(u"this").put('_hash', var.get('WordArray').get('init').create(Js([Js(1732584193), Js(4023233417), Js(2562383102), Js(271733878), Js(3285377520)])))
|
|
PyJs__doReset_1257_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1258_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1258_}, var)
|
|
var.registers(['d', 'H', 'n', 'M', 'i', 't', 'a', 'b', 'c', 'e', 'offset'])
|
|
var.put('H', var.get(u"this").get('_hash').get('words'))
|
|
var.put('a', var.get('H').get('0'))
|
|
var.put('b', var.get('H').get('1'))
|
|
var.put('c', var.get('H').get('2'))
|
|
var.put('d', var.get('H').get('3'))
|
|
var.put('e', var.get('H').get('4'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(80.0)):
|
|
try:
|
|
if (var.get('i')<Js(16.0)):
|
|
var.get('W').put(var.get('i'), (var.get('M').get((var.get('offset')+var.get('i')))|Js(0.0)))
|
|
else:
|
|
var.put('n', (((var.get('W').get((var.get('i')-Js(3.0)))^var.get('W').get((var.get('i')-Js(8.0))))^var.get('W').get((var.get('i')-Js(14.0))))^var.get('W').get((var.get('i')-Js(16.0)))))
|
|
var.get('W').put(var.get('i'), ((var.get('n')<<Js(1.0))|PyJsBshift(var.get('n'),Js(31.0))))
|
|
var.put('t', ((((var.get('a')<<Js(5.0))|PyJsBshift(var.get('a'),Js(27.0)))+var.get('e'))+var.get('W').get(var.get('i'))))
|
|
if (var.get('i')<Js(20.0)):
|
|
var.put('t', (((var.get('b')&var.get('c'))|((~var.get('b'))&var.get('d')))+Js(1518500249)), '+')
|
|
else:
|
|
if (var.get('i')<Js(40.0)):
|
|
var.put('t', (((var.get('b')^var.get('c'))^var.get('d'))+Js(1859775393)), '+')
|
|
else:
|
|
if (var.get('i')<Js(60.0)):
|
|
var.put('t', ((((var.get('b')&var.get('c'))|(var.get('b')&var.get('d')))|(var.get('c')&var.get('d')))-Js(1894007588)), '+')
|
|
else:
|
|
var.put('t', (((var.get('b')^var.get('c'))^var.get('d'))-Js(899497514)), '+')
|
|
var.put('e', var.get('d'))
|
|
var.put('d', var.get('c'))
|
|
var.put('c', ((var.get('b')<<Js(30.0))|PyJsBshift(var.get('b'),Js(2.0))))
|
|
var.put('b', var.get('a'))
|
|
var.put('a', var.get('t'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('H').put('0', ((var.get('H').get('0')+var.get('a'))|Js(0.0)))
|
|
var.get('H').put('1', ((var.get('H').get('1')+var.get('b'))|Js(0.0)))
|
|
var.get('H').put('2', ((var.get('H').get('2')+var.get('c'))|Js(0.0)))
|
|
var.get('H').put('3', ((var.get('H').get('3')+var.get('d'))|Js(0.0)))
|
|
var.get('H').put('4', ((var.get('H').get('4')+var.get('e'))|Js(0.0)))
|
|
PyJs__doProcessBlock_1258_._set_name('_doProcessBlock')
|
|
@Js
|
|
def PyJs__doFinalize_1259_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1259_}, var)
|
|
var.registers(['nBitsTotal', 'nBitsLeft', 'data', 'dataWords'])
|
|
var.put('data', var.get(u"this").get('_data'))
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('nBitsTotal', (var.get(u"this").get('_nDataBytes')*Js(8.0)))
|
|
var.put('nBitsLeft', (var.get('data').get('sigBytes')*Js(8.0)))
|
|
var.get('dataWords').put(PyJsBshift(var.get('nBitsLeft'),Js(5.0)), (Js(128)<<(Js(24.0)-(var.get('nBitsLeft')%Js(32.0)))), '|')
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(64.0)),Js(9.0))<<Js(4.0))+Js(14.0)), var.get('Math').callprop('floor', (var.get('nBitsTotal')/Js(4294967296))))
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(64.0)),Js(9.0))<<Js(4.0))+Js(15.0)), var.get('nBitsTotal'))
|
|
var.get('data').put('sigBytes', (var.get('dataWords').get('length')*Js(4.0)))
|
|
var.get(u"this").callprop('_process')
|
|
return var.get(u"this").get('_hash')
|
|
PyJs__doFinalize_1259_._set_name('_doFinalize')
|
|
@Js
|
|
def PyJs_clone_1260_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1260_}, var)
|
|
var.registers(['clone'])
|
|
var.put('clone', var.get('Hasher').get('clone').callprop('call', var.get(u"this")))
|
|
var.get('clone').put('_hash', var.get(u"this").get('_hash').callprop('clone'))
|
|
return var.get('clone')
|
|
PyJs_clone_1260_._set_name('clone')
|
|
var.put('SHA1', var.get('C_algo').put('SHA1', var.get('Hasher').callprop('extend', Js({'_doReset':PyJs__doReset_1257_,'_doProcessBlock':PyJs__doProcessBlock_1258_,'_doFinalize':PyJs__doFinalize_1259_,'clone':PyJs_clone_1260_}))))
|
|
var.get('C').put('SHA1', var.get('Hasher').callprop('_createHelper', var.get('SHA1')))
|
|
var.get('C').put('HmacSHA1', var.get('Hasher').callprop('_createHmacHelper', var.get('SHA1')))
|
|
PyJs_anonymous_1256_._set_name('anonymous')
|
|
PyJs_anonymous_1256_()
|
|
return var.get('CryptoJS').get('SHA1')
|
|
PyJs_anonymous_1255_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1261_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1261_._set_name('anonymous')
|
|
PyJs_anonymous_1261_(var.get(u"this"), PyJs_anonymous_1255_)
|
|
PyJs_anonymous_1254_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1262_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1263_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1264_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'C_algo', 'SHA256', 'SHA224'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('SHA256', var.get('C_algo').get('SHA256'))
|
|
@Js
|
|
def PyJs__doReset_1265_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1265_}, var)
|
|
var.registers([])
|
|
var.get(u"this").put('_hash', var.get('WordArray').get('init').create(Js([Js(3238371032), Js(914150663), Js(812702999), Js(4144912697), Js(4290775857), Js(1750603025), Js(1694076839), Js(3204075428)])))
|
|
PyJs__doReset_1265_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doFinalize_1266_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1266_}, var)
|
|
var.registers(['hash'])
|
|
var.put('hash', var.get('SHA256').get('_doFinalize').callprop('call', var.get(u"this")))
|
|
var.get('hash').put('sigBytes', Js(4.0), '-')
|
|
return var.get('hash')
|
|
PyJs__doFinalize_1266_._set_name('_doFinalize')
|
|
var.put('SHA224', var.get('C_algo').put('SHA224', var.get('SHA256').callprop('extend', Js({'_doReset':PyJs__doReset_1265_,'_doFinalize':PyJs__doFinalize_1266_}))))
|
|
var.get('C').put('SHA224', var.get('SHA256').callprop('_createHelper', var.get('SHA224')))
|
|
var.get('C').put('HmacSHA224', var.get('SHA256').callprop('_createHmacHelper', var.get('SHA224')))
|
|
PyJs_anonymous_1264_._set_name('anonymous')
|
|
PyJs_anonymous_1264_()
|
|
return var.get('CryptoJS').get('SHA224')
|
|
PyJs_anonymous_1263_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1267_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./sha256')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./sha256')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1267_._set_name('anonymous')
|
|
PyJs_anonymous_1267_(var.get(u"this"), PyJs_anonymous_1263_)
|
|
PyJs_anonymous_1262_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1268_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1269_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1270_(Math, this, arguments, var=var):
|
|
var = Scope({'Math':Math, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'H', 'Math', 'C_algo', 'W', 'SHA256', 'Hasher', 'K'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('Hasher', var.get('C_lib').get('Hasher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('H', Js([]))
|
|
var.put('K', Js([]))
|
|
@Js
|
|
def PyJs_anonymous_1271_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['getFractionalBits', 'nPrime', 'n', 'isPrime'])
|
|
@Js
|
|
def PyJsHoisted_isPrime_(n, this, arguments, var=var):
|
|
var = Scope({'n':n, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['factor', 'n', 'sqrtN'])
|
|
var.put('sqrtN', var.get('Math').callprop('sqrt', var.get('n')))
|
|
#for JS loop
|
|
var.put('factor', Js(2.0))
|
|
while (var.get('factor')<=var.get('sqrtN')):
|
|
try:
|
|
if (var.get('n')%var.get('factor')).neg():
|
|
return Js(False)
|
|
finally:
|
|
(var.put('factor',Js(var.get('factor').to_number())+Js(1))-Js(1))
|
|
return Js(True)
|
|
PyJsHoisted_isPrime_.func_name = 'isPrime'
|
|
var.put('isPrime', PyJsHoisted_isPrime_)
|
|
@Js
|
|
def PyJsHoisted_getFractionalBits_(n, this, arguments, var=var):
|
|
var = Scope({'n':n, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['n'])
|
|
return (((var.get('n')-(var.get('n')|Js(0.0)))*Js(4294967296))|Js(0.0))
|
|
PyJsHoisted_getFractionalBits_.func_name = 'getFractionalBits'
|
|
var.put('getFractionalBits', PyJsHoisted_getFractionalBits_)
|
|
pass
|
|
pass
|
|
var.put('n', Js(2.0))
|
|
var.put('nPrime', Js(0.0))
|
|
while (var.get('nPrime')<Js(64.0)):
|
|
if var.get('isPrime')(var.get('n')):
|
|
if (var.get('nPrime')<Js(8.0)):
|
|
var.get('H').put(var.get('nPrime'), var.get('getFractionalBits')(var.get('Math').callprop('pow', var.get('n'), (Js(1.0)/Js(2.0)))))
|
|
var.get('K').put(var.get('nPrime'), var.get('getFractionalBits')(var.get('Math').callprop('pow', var.get('n'), (Js(1.0)/Js(3.0)))))
|
|
(var.put('nPrime',Js(var.get('nPrime').to_number())+Js(1))-Js(1))
|
|
(var.put('n',Js(var.get('n').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_1271_._set_name('anonymous')
|
|
PyJs_anonymous_1271_()
|
|
var.put('W', Js([]))
|
|
@Js
|
|
def PyJs__doReset_1272_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1272_}, var)
|
|
var.registers([])
|
|
var.get(u"this").put('_hash', var.get('WordArray').get('init').create(var.get('H').callprop('slice', Js(0.0))))
|
|
PyJs__doReset_1272_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1273_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1273_}, var)
|
|
var.registers(['maj', 'gamma1x', 'i', 'gamma0x', 'g', 'f', 'd', 'sigma0', 't1', 'b', 'c', 'offset', 'h', 'H', 'gamma0', 'e', 'sigma1', 'ch', 'M', 'gamma1', 'a', 't2'])
|
|
var.put('H', var.get(u"this").get('_hash').get('words'))
|
|
var.put('a', var.get('H').get('0'))
|
|
var.put('b', var.get('H').get('1'))
|
|
var.put('c', var.get('H').get('2'))
|
|
var.put('d', var.get('H').get('3'))
|
|
var.put('e', var.get('H').get('4'))
|
|
var.put('f', var.get('H').get('5'))
|
|
var.put('g', var.get('H').get('6'))
|
|
var.put('h', var.get('H').get('7'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(64.0)):
|
|
try:
|
|
if (var.get('i')<Js(16.0)):
|
|
var.get('W').put(var.get('i'), (var.get('M').get((var.get('offset')+var.get('i')))|Js(0.0)))
|
|
else:
|
|
var.put('gamma0x', var.get('W').get((var.get('i')-Js(15.0))))
|
|
var.put('gamma0', ((((var.get('gamma0x')<<Js(25.0))|PyJsBshift(var.get('gamma0x'),Js(7.0)))^((var.get('gamma0x')<<Js(14.0))|PyJsBshift(var.get('gamma0x'),Js(18.0))))^PyJsBshift(var.get('gamma0x'),Js(3.0))))
|
|
var.put('gamma1x', var.get('W').get((var.get('i')-Js(2.0))))
|
|
var.put('gamma1', ((((var.get('gamma1x')<<Js(15.0))|PyJsBshift(var.get('gamma1x'),Js(17.0)))^((var.get('gamma1x')<<Js(13.0))|PyJsBshift(var.get('gamma1x'),Js(19.0))))^PyJsBshift(var.get('gamma1x'),Js(10.0))))
|
|
var.get('W').put(var.get('i'), (((var.get('gamma0')+var.get('W').get((var.get('i')-Js(7.0))))+var.get('gamma1'))+var.get('W').get((var.get('i')-Js(16.0)))))
|
|
var.put('ch', ((var.get('e')&var.get('f'))^((~var.get('e'))&var.get('g'))))
|
|
var.put('maj', (((var.get('a')&var.get('b'))^(var.get('a')&var.get('c')))^(var.get('b')&var.get('c'))))
|
|
var.put('sigma0', ((((var.get('a')<<Js(30.0))|PyJsBshift(var.get('a'),Js(2.0)))^((var.get('a')<<Js(19.0))|PyJsBshift(var.get('a'),Js(13.0))))^((var.get('a')<<Js(10.0))|PyJsBshift(var.get('a'),Js(22.0)))))
|
|
var.put('sigma1', ((((var.get('e')<<Js(26.0))|PyJsBshift(var.get('e'),Js(6.0)))^((var.get('e')<<Js(21.0))|PyJsBshift(var.get('e'),Js(11.0))))^((var.get('e')<<Js(7.0))|PyJsBshift(var.get('e'),Js(25.0)))))
|
|
var.put('t1', ((((var.get('h')+var.get('sigma1'))+var.get('ch'))+var.get('K').get(var.get('i')))+var.get('W').get(var.get('i'))))
|
|
var.put('t2', (var.get('sigma0')+var.get('maj')))
|
|
var.put('h', var.get('g'))
|
|
var.put('g', var.get('f'))
|
|
var.put('f', var.get('e'))
|
|
var.put('e', ((var.get('d')+var.get('t1'))|Js(0.0)))
|
|
var.put('d', var.get('c'))
|
|
var.put('c', var.get('b'))
|
|
var.put('b', var.get('a'))
|
|
var.put('a', ((var.get('t1')+var.get('t2'))|Js(0.0)))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('H').put('0', ((var.get('H').get('0')+var.get('a'))|Js(0.0)))
|
|
var.get('H').put('1', ((var.get('H').get('1')+var.get('b'))|Js(0.0)))
|
|
var.get('H').put('2', ((var.get('H').get('2')+var.get('c'))|Js(0.0)))
|
|
var.get('H').put('3', ((var.get('H').get('3')+var.get('d'))|Js(0.0)))
|
|
var.get('H').put('4', ((var.get('H').get('4')+var.get('e'))|Js(0.0)))
|
|
var.get('H').put('5', ((var.get('H').get('5')+var.get('f'))|Js(0.0)))
|
|
var.get('H').put('6', ((var.get('H').get('6')+var.get('g'))|Js(0.0)))
|
|
var.get('H').put('7', ((var.get('H').get('7')+var.get('h'))|Js(0.0)))
|
|
PyJs__doProcessBlock_1273_._set_name('_doProcessBlock')
|
|
@Js
|
|
def PyJs__doFinalize_1274_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1274_}, var)
|
|
var.registers(['nBitsTotal', 'nBitsLeft', 'data', 'dataWords'])
|
|
var.put('data', var.get(u"this").get('_data'))
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('nBitsTotal', (var.get(u"this").get('_nDataBytes')*Js(8.0)))
|
|
var.put('nBitsLeft', (var.get('data').get('sigBytes')*Js(8.0)))
|
|
var.get('dataWords').put(PyJsBshift(var.get('nBitsLeft'),Js(5.0)), (Js(128)<<(Js(24.0)-(var.get('nBitsLeft')%Js(32.0)))), '|')
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(64.0)),Js(9.0))<<Js(4.0))+Js(14.0)), var.get('Math').callprop('floor', (var.get('nBitsTotal')/Js(4294967296))))
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(64.0)),Js(9.0))<<Js(4.0))+Js(15.0)), var.get('nBitsTotal'))
|
|
var.get('data').put('sigBytes', (var.get('dataWords').get('length')*Js(4.0)))
|
|
var.get(u"this").callprop('_process')
|
|
return var.get(u"this").get('_hash')
|
|
PyJs__doFinalize_1274_._set_name('_doFinalize')
|
|
@Js
|
|
def PyJs_clone_1275_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1275_}, var)
|
|
var.registers(['clone'])
|
|
var.put('clone', var.get('Hasher').get('clone').callprop('call', var.get(u"this")))
|
|
var.get('clone').put('_hash', var.get(u"this").get('_hash').callprop('clone'))
|
|
return var.get('clone')
|
|
PyJs_clone_1275_._set_name('clone')
|
|
var.put('SHA256', var.get('C_algo').put('SHA256', var.get('Hasher').callprop('extend', Js({'_doReset':PyJs__doReset_1272_,'_doProcessBlock':PyJs__doProcessBlock_1273_,'_doFinalize':PyJs__doFinalize_1274_,'clone':PyJs_clone_1275_}))))
|
|
var.get('C').put('SHA256', var.get('Hasher').callprop('_createHelper', var.get('SHA256')))
|
|
var.get('C').put('HmacSHA256', var.get('Hasher').callprop('_createHmacHelper', var.get('SHA256')))
|
|
PyJs_anonymous_1270_._set_name('anonymous')
|
|
PyJs_anonymous_1270_(var.get('Math'))
|
|
return var.get('CryptoJS').get('SHA256')
|
|
PyJs_anonymous_1269_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1276_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1276_._set_name('anonymous')
|
|
PyJs_anonymous_1276_(var.get(u"this"), PyJs_anonymous_1269_)
|
|
PyJs_anonymous_1268_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1277_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1278_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1279_(Math, this, arguments, var=var):
|
|
var = Scope({'Math':Math, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'RHO_OFFSETS', 'Math', 'C_x64', 'C_algo', 'X64Word', 'PI_INDEXES', 'SHA3', 'ROUND_CONSTANTS', 'Hasher', 'T'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('Hasher', var.get('C_lib').get('Hasher'))
|
|
var.put('C_x64', var.get('C').get('x64'))
|
|
var.put('X64Word', var.get('C_x64').get('Word'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('RHO_OFFSETS', Js([]))
|
|
var.put('PI_INDEXES', Js([]))
|
|
var.put('ROUND_CONSTANTS', Js([]))
|
|
@Js
|
|
def PyJs_anonymous_1280_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['roundConstantMsw', 'roundConstantLsw', 'y', 'newY', 'x', 'i', 't', 'j', 'newX', 'LFSR', 'bitPosition'])
|
|
var.put('x', Js(1.0))
|
|
var.put('y', Js(0.0))
|
|
#for JS loop
|
|
var.put('t', Js(0.0))
|
|
while (var.get('t')<Js(24.0)):
|
|
try:
|
|
var.get('RHO_OFFSETS').put((var.get('x')+(Js(5.0)*var.get('y'))), ((((var.get('t')+Js(1.0))*(var.get('t')+Js(2.0)))/Js(2.0))%Js(64.0)))
|
|
var.put('newX', (var.get('y')%Js(5.0)))
|
|
var.put('newY', (((Js(2.0)*var.get('x'))+(Js(3.0)*var.get('y')))%Js(5.0)))
|
|
var.put('x', var.get('newX'))
|
|
var.put('y', var.get('newY'))
|
|
finally:
|
|
(var.put('t',Js(var.get('t').to_number())+Js(1))-Js(1))
|
|
#for JS loop
|
|
var.put('x', Js(0.0))
|
|
while (var.get('x')<Js(5.0)):
|
|
try:
|
|
#for JS loop
|
|
var.put('y', Js(0.0))
|
|
while (var.get('y')<Js(5.0)):
|
|
try:
|
|
var.get('PI_INDEXES').put((var.get('x')+(Js(5.0)*var.get('y'))), (var.get('y')+((((Js(2.0)*var.get('x'))+(Js(3.0)*var.get('y')))%Js(5.0))*Js(5.0))))
|
|
finally:
|
|
(var.put('y',Js(var.get('y').to_number())+Js(1))-Js(1))
|
|
finally:
|
|
(var.put('x',Js(var.get('x').to_number())+Js(1))-Js(1))
|
|
var.put('LFSR', Js(1))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(24.0)):
|
|
try:
|
|
var.put('roundConstantMsw', Js(0.0))
|
|
var.put('roundConstantLsw', Js(0.0))
|
|
#for JS loop
|
|
var.put('j', Js(0.0))
|
|
while (var.get('j')<Js(7.0)):
|
|
try:
|
|
if (var.get('LFSR')&Js(1)):
|
|
var.put('bitPosition', ((Js(1.0)<<var.get('j'))-Js(1.0)))
|
|
if (var.get('bitPosition')<Js(32.0)):
|
|
var.put('roundConstantLsw', (Js(1.0)<<var.get('bitPosition')), '^')
|
|
else:
|
|
var.put('roundConstantMsw', (Js(1.0)<<(var.get('bitPosition')-Js(32.0))), '^')
|
|
if (var.get('LFSR')&Js(128)):
|
|
var.put('LFSR', ((var.get('LFSR')<<Js(1.0))^Js(113)))
|
|
else:
|
|
var.put('LFSR', Js(1.0), '<<')
|
|
finally:
|
|
(var.put('j',Js(var.get('j').to_number())+Js(1))-Js(1))
|
|
var.get('ROUND_CONSTANTS').put(var.get('i'), var.get('X64Word').callprop('create', var.get('roundConstantMsw'), var.get('roundConstantLsw')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_1280_._set_name('anonymous')
|
|
PyJs_anonymous_1280_()
|
|
var.put('T', Js([]))
|
|
@Js
|
|
def PyJs_anonymous_1281_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['i'])
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(25.0)):
|
|
try:
|
|
var.get('T').put(var.get('i'), var.get('X64Word').callprop('create'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_1281_._set_name('anonymous')
|
|
PyJs_anonymous_1281_()
|
|
@Js
|
|
def PyJs__doReset_1282_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1282_}, var)
|
|
var.registers(['state', 'i'])
|
|
var.put('state', var.get(u"this").put('_state', Js([])))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(25.0)):
|
|
try:
|
|
var.get('state').put(var.get('i'), var.get('X64Word').get('init').create())
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get(u"this").put('blockSize', ((Js(1600.0)-(Js(2.0)*var.get(u"this").get('cfg').get('outputLength')))/Js(32.0)))
|
|
PyJs__doReset_1282_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1283_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1283_}, var)
|
|
var.registers(['roundConstant', 'i', 'x', 'Tx1', 'nBlockSizeLanes', 'T0', 'offset', 'tMsw', 'Tx2Lane', 'Tx1Lsw', 'TPiLane', 'M2i1', 'laneMsw', 'Tx1Msw', 'laneLsw', 'state0', 'TLane', 'tLsw', 'laneIndex', 'rhoOffset', 'M2i', 'round', 'y', 'Tx', 'Tx1Lane', 'M', 'Tx4', 'state', 'lane'])
|
|
var.put('state', var.get(u"this").get('_state'))
|
|
var.put('nBlockSizeLanes', (var.get(u"this").get('blockSize')/Js(2.0)))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('nBlockSizeLanes')):
|
|
try:
|
|
var.put('M2i', var.get('M').get((var.get('offset')+(Js(2.0)*var.get('i')))))
|
|
var.put('M2i1', var.get('M').get(((var.get('offset')+(Js(2.0)*var.get('i')))+Js(1.0))))
|
|
var.put('M2i', ((((var.get('M2i')<<Js(8.0))|PyJsBshift(var.get('M2i'),Js(24.0)))&Js(16711935))|(((var.get('M2i')<<Js(24.0))|PyJsBshift(var.get('M2i'),Js(8.0)))&Js(4278255360))))
|
|
var.put('M2i1', ((((var.get('M2i1')<<Js(8.0))|PyJsBshift(var.get('M2i1'),Js(24.0)))&Js(16711935))|(((var.get('M2i1')<<Js(24.0))|PyJsBshift(var.get('M2i1'),Js(8.0)))&Js(4278255360))))
|
|
var.put('lane', var.get('state').get(var.get('i')))
|
|
var.get('lane').put('high', var.get('M2i1'), '^')
|
|
var.get('lane').put('low', var.get('M2i'), '^')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
#for JS loop
|
|
var.put('round', Js(0.0))
|
|
while (var.get('round')<Js(24.0)):
|
|
try:
|
|
#for JS loop
|
|
var.put('x', Js(0.0))
|
|
while (var.get('x')<Js(5.0)):
|
|
try:
|
|
var.put('tMsw', Js(0.0))
|
|
var.put('tLsw', Js(0.0))
|
|
#for JS loop
|
|
var.put('y', Js(0.0))
|
|
while (var.get('y')<Js(5.0)):
|
|
try:
|
|
var.put('lane', var.get('state').get((var.get('x')+(Js(5.0)*var.get('y')))))
|
|
var.put('tMsw', var.get('lane').get('high'), '^')
|
|
var.put('tLsw', var.get('lane').get('low'), '^')
|
|
finally:
|
|
(var.put('y',Js(var.get('y').to_number())+Js(1))-Js(1))
|
|
var.put('Tx', var.get('T').get(var.get('x')))
|
|
var.get('Tx').put('high', var.get('tMsw'))
|
|
var.get('Tx').put('low', var.get('tLsw'))
|
|
finally:
|
|
(var.put('x',Js(var.get('x').to_number())+Js(1))-Js(1))
|
|
#for JS loop
|
|
var.put('x', Js(0.0))
|
|
while (var.get('x')<Js(5.0)):
|
|
try:
|
|
var.put('Tx4', var.get('T').get(((var.get('x')+Js(4.0))%Js(5.0))))
|
|
var.put('Tx1', var.get('T').get(((var.get('x')+Js(1.0))%Js(5.0))))
|
|
var.put('Tx1Msw', var.get('Tx1').get('high'))
|
|
var.put('Tx1Lsw', var.get('Tx1').get('low'))
|
|
var.put('tMsw', (var.get('Tx4').get('high')^((var.get('Tx1Msw')<<Js(1.0))|PyJsBshift(var.get('Tx1Lsw'),Js(31.0)))))
|
|
var.put('tLsw', (var.get('Tx4').get('low')^((var.get('Tx1Lsw')<<Js(1.0))|PyJsBshift(var.get('Tx1Msw'),Js(31.0)))))
|
|
#for JS loop
|
|
var.put('y', Js(0.0))
|
|
while (var.get('y')<Js(5.0)):
|
|
try:
|
|
var.put('lane', var.get('state').get((var.get('x')+(Js(5.0)*var.get('y')))))
|
|
var.get('lane').put('high', var.get('tMsw'), '^')
|
|
var.get('lane').put('low', var.get('tLsw'), '^')
|
|
finally:
|
|
(var.put('y',Js(var.get('y').to_number())+Js(1))-Js(1))
|
|
finally:
|
|
(var.put('x',Js(var.get('x').to_number())+Js(1))-Js(1))
|
|
#for JS loop
|
|
var.put('laneIndex', Js(1.0))
|
|
while (var.get('laneIndex')<Js(25.0)):
|
|
try:
|
|
var.put('lane', var.get('state').get(var.get('laneIndex')))
|
|
var.put('laneMsw', var.get('lane').get('high'))
|
|
var.put('laneLsw', var.get('lane').get('low'))
|
|
var.put('rhoOffset', var.get('RHO_OFFSETS').get(var.get('laneIndex')))
|
|
if (var.get('rhoOffset')<Js(32.0)):
|
|
var.put('tMsw', ((var.get('laneMsw')<<var.get('rhoOffset'))|PyJsBshift(var.get('laneLsw'),(Js(32.0)-var.get('rhoOffset')))))
|
|
var.put('tLsw', ((var.get('laneLsw')<<var.get('rhoOffset'))|PyJsBshift(var.get('laneMsw'),(Js(32.0)-var.get('rhoOffset')))))
|
|
else:
|
|
var.put('tMsw', ((var.get('laneLsw')<<(var.get('rhoOffset')-Js(32.0)))|PyJsBshift(var.get('laneMsw'),(Js(64.0)-var.get('rhoOffset')))))
|
|
var.put('tLsw', ((var.get('laneMsw')<<(var.get('rhoOffset')-Js(32.0)))|PyJsBshift(var.get('laneLsw'),(Js(64.0)-var.get('rhoOffset')))))
|
|
var.put('TPiLane', var.get('T').get(var.get('PI_INDEXES').get(var.get('laneIndex'))))
|
|
var.get('TPiLane').put('high', var.get('tMsw'))
|
|
var.get('TPiLane').put('low', var.get('tLsw'))
|
|
finally:
|
|
(var.put('laneIndex',Js(var.get('laneIndex').to_number())+Js(1))-Js(1))
|
|
var.put('T0', var.get('T').get('0'))
|
|
var.put('state0', var.get('state').get('0'))
|
|
var.get('T0').put('high', var.get('state0').get('high'))
|
|
var.get('T0').put('low', var.get('state0').get('low'))
|
|
#for JS loop
|
|
var.put('x', Js(0.0))
|
|
while (var.get('x')<Js(5.0)):
|
|
try:
|
|
#for JS loop
|
|
var.put('y', Js(0.0))
|
|
while (var.get('y')<Js(5.0)):
|
|
try:
|
|
var.put('laneIndex', (var.get('x')+(Js(5.0)*var.get('y'))))
|
|
var.put('lane', var.get('state').get(var.get('laneIndex')))
|
|
var.put('TLane', var.get('T').get(var.get('laneIndex')))
|
|
var.put('Tx1Lane', var.get('T').get((((var.get('x')+Js(1.0))%Js(5.0))+(Js(5.0)*var.get('y')))))
|
|
var.put('Tx2Lane', var.get('T').get((((var.get('x')+Js(2.0))%Js(5.0))+(Js(5.0)*var.get('y')))))
|
|
var.get('lane').put('high', (var.get('TLane').get('high')^((~var.get('Tx1Lane').get('high'))&var.get('Tx2Lane').get('high'))))
|
|
var.get('lane').put('low', (var.get('TLane').get('low')^((~var.get('Tx1Lane').get('low'))&var.get('Tx2Lane').get('low'))))
|
|
finally:
|
|
(var.put('y',Js(var.get('y').to_number())+Js(1))-Js(1))
|
|
finally:
|
|
(var.put('x',Js(var.get('x').to_number())+Js(1))-Js(1))
|
|
var.put('lane', var.get('state').get('0'))
|
|
var.put('roundConstant', var.get('ROUND_CONSTANTS').get(var.get('round')))
|
|
var.get('lane').put('high', var.get('roundConstant').get('high'), '^')
|
|
var.get('lane').put('low', var.get('roundConstant').get('low'), '^')
|
|
pass
|
|
finally:
|
|
(var.put('round',Js(var.get('round').to_number())+Js(1))-Js(1))
|
|
PyJs__doProcessBlock_1283_._set_name('_doProcessBlock')
|
|
@Js
|
|
def PyJs__doFinalize_1284_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1284_}, var)
|
|
var.registers(['nBitsLeft', 'outputLengthBytes', 'nBitsTotal', 'hashWords', 'i', 'outputLengthLanes', 'laneMsw', 'laneLsw', 'data', 'lane', 'state', 'blockSizeBits', 'dataWords'])
|
|
var.put('data', var.get(u"this").get('_data'))
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('nBitsTotal', (var.get(u"this").get('_nDataBytes')*Js(8.0)))
|
|
var.put('nBitsLeft', (var.get('data').get('sigBytes')*Js(8.0)))
|
|
var.put('blockSizeBits', (var.get(u"this").get('blockSize')*Js(32.0)))
|
|
var.get('dataWords').put(PyJsBshift(var.get('nBitsLeft'),Js(5.0)), (Js(1)<<(Js(24.0)-(var.get('nBitsLeft')%Js(32.0)))), '|')
|
|
var.get('dataWords').put((PyJsBshift((var.get('Math').callprop('ceil', ((var.get('nBitsLeft')+Js(1.0))/var.get('blockSizeBits')))*var.get('blockSizeBits')),Js(5.0))-Js(1.0)), Js(128), '|')
|
|
var.get('data').put('sigBytes', (var.get('dataWords').get('length')*Js(4.0)))
|
|
var.get(u"this").callprop('_process')
|
|
var.put('state', var.get(u"this").get('_state'))
|
|
var.put('outputLengthBytes', (var.get(u"this").get('cfg').get('outputLength')/Js(8.0)))
|
|
var.put('outputLengthLanes', (var.get('outputLengthBytes')/Js(8.0)))
|
|
var.put('hashWords', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('outputLengthLanes')):
|
|
try:
|
|
var.put('lane', var.get('state').get(var.get('i')))
|
|
var.put('laneMsw', var.get('lane').get('high'))
|
|
var.put('laneLsw', var.get('lane').get('low'))
|
|
var.put('laneMsw', ((((var.get('laneMsw')<<Js(8.0))|PyJsBshift(var.get('laneMsw'),Js(24.0)))&Js(16711935))|(((var.get('laneMsw')<<Js(24.0))|PyJsBshift(var.get('laneMsw'),Js(8.0)))&Js(4278255360))))
|
|
var.put('laneLsw', ((((var.get('laneLsw')<<Js(8.0))|PyJsBshift(var.get('laneLsw'),Js(24.0)))&Js(16711935))|(((var.get('laneLsw')<<Js(24.0))|PyJsBshift(var.get('laneLsw'),Js(8.0)))&Js(4278255360))))
|
|
var.get('hashWords').callprop('push', var.get('laneLsw'))
|
|
var.get('hashWords').callprop('push', var.get('laneMsw'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('WordArray').get('init').create(var.get('hashWords'), var.get('outputLengthBytes'))
|
|
PyJs__doFinalize_1284_._set_name('_doFinalize')
|
|
@Js
|
|
def PyJs_clone_1285_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1285_}, var)
|
|
var.registers(['state', 'i', 'clone'])
|
|
var.put('clone', var.get('Hasher').get('clone').callprop('call', var.get(u"this")))
|
|
var.put('state', var.get('clone').put('_state', var.get(u"this").get('_state').callprop('slice', Js(0.0))))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(25.0)):
|
|
try:
|
|
var.get('state').put(var.get('i'), var.get('state').get(var.get('i')).callprop('clone'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('clone')
|
|
PyJs_clone_1285_._set_name('clone')
|
|
var.put('SHA3', var.get('C_algo').put('SHA3', var.get('Hasher').callprop('extend', Js({'cfg':var.get('Hasher').get('cfg').callprop('extend', Js({'outputLength':Js(512.0)})),'_doReset':PyJs__doReset_1282_,'_doProcessBlock':PyJs__doProcessBlock_1283_,'_doFinalize':PyJs__doFinalize_1284_,'clone':PyJs_clone_1285_}))))
|
|
var.get('C').put('SHA3', var.get('Hasher').callprop('_createHelper', var.get('SHA3')))
|
|
var.get('C').put('HmacSHA3', var.get('Hasher').callprop('_createHmacHelper', var.get('SHA3')))
|
|
PyJs_anonymous_1279_._set_name('anonymous')
|
|
PyJs_anonymous_1279_(var.get('Math'))
|
|
return var.get('CryptoJS').get('SHA3')
|
|
PyJs_anonymous_1278_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1286_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./x64-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./x64-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1286_._set_name('anonymous')
|
|
PyJs_anonymous_1286_(var.get(u"this"), PyJs_anonymous_1278_)
|
|
PyJs_anonymous_1277_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1287_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1288_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1289_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C', 'C_x64', 'C_algo', 'X64Word', 'SHA512', 'SHA384', 'X64WordArray'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_x64', var.get('C').get('x64'))
|
|
var.put('X64Word', var.get('C_x64').get('Word'))
|
|
var.put('X64WordArray', var.get('C_x64').get('WordArray'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('SHA512', var.get('C_algo').get('SHA512'))
|
|
@Js
|
|
def PyJs__doReset_1290_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1290_}, var)
|
|
var.registers([])
|
|
def PyJs_LONG_1291_(var=var):
|
|
return var.get('X64WordArray').get('init').create(Js([var.get('X64Word').get('init').create(Js(3418070365), Js(3238371032)), var.get('X64Word').get('init').create(Js(1654270250), Js(914150663)), var.get('X64Word').get('init').create(Js(2438529370), Js(812702999)), var.get('X64Word').get('init').create(Js(355462360), Js(4144912697)), var.get('X64Word').get('init').create(Js(1731405415), Js(4290775857)), var.get('X64Word').get('init').create(Js(2394180231), Js(1750603025)), var.get('X64Word').get('init').create(Js(3675008525), Js(1694076839)), var.get('X64Word').get('init').create(Js(1203062813), Js(3204075428))]))
|
|
var.get(u"this").put('_hash', PyJs_LONG_1291_())
|
|
PyJs__doReset_1290_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doFinalize_1292_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1292_}, var)
|
|
var.registers(['hash'])
|
|
var.put('hash', var.get('SHA512').get('_doFinalize').callprop('call', var.get(u"this")))
|
|
var.get('hash').put('sigBytes', Js(16.0), '-')
|
|
return var.get('hash')
|
|
PyJs__doFinalize_1292_._set_name('_doFinalize')
|
|
var.put('SHA384', var.get('C_algo').put('SHA384', var.get('SHA512').callprop('extend', Js({'_doReset':PyJs__doReset_1290_,'_doFinalize':PyJs__doFinalize_1292_}))))
|
|
var.get('C').put('SHA384', var.get('SHA512').callprop('_createHelper', var.get('SHA384')))
|
|
var.get('C').put('HmacSHA384', var.get('SHA512').callprop('_createHmacHelper', var.get('SHA384')))
|
|
PyJs_anonymous_1289_._set_name('anonymous')
|
|
PyJs_anonymous_1289_()
|
|
return var.get('CryptoJS').get('SHA384')
|
|
PyJs_anonymous_1288_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1293_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./x64-core')), var.get('require')(Js('./sha512')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./x64-core'), Js('./sha512')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1293_._set_name('anonymous')
|
|
PyJs_anonymous_1293_(var.get(u"this"), PyJs_anonymous_1288_)
|
|
PyJs_anonymous_1287_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1294_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1295_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1296_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C_lib', 'C', 'C_x64', 'C_algo', 'X64Word', 'W', 'SHA512', 'Hasher', 'K', 'X64Word_create', 'X64WordArray'])
|
|
@Js
|
|
def PyJsHoisted_X64Word_create_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get('X64Word').get('create').callprop('apply', var.get('X64Word'), var.get('arguments'))
|
|
PyJsHoisted_X64Word_create_.func_name = 'X64Word_create'
|
|
var.put('X64Word_create', PyJsHoisted_X64Word_create_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('Hasher', var.get('C_lib').get('Hasher'))
|
|
var.put('C_x64', var.get('C').get('x64'))
|
|
var.put('X64Word', var.get('C_x64').get('Word'))
|
|
var.put('X64WordArray', var.get('C_x64').get('WordArray'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
pass
|
|
var.put('K', Js([var.get('X64Word_create')(Js(1116352408), Js(3609767458)), var.get('X64Word_create')(Js(1899447441), Js(602891725)), var.get('X64Word_create')(Js(3049323471), Js(3964484399)), var.get('X64Word_create')(Js(3921009573), Js(2173295548)), var.get('X64Word_create')(Js(961987163), Js(4081628472)), var.get('X64Word_create')(Js(1508970993), Js(3053834265)), var.get('X64Word_create')(Js(2453635748), Js(2937671579)), var.get('X64Word_create')(Js(2870763221), Js(3664609560)), var.get('X64Word_create')(Js(3624381080), Js(2734883394)), var.get('X64Word_create')(Js(310598401), Js(1164996542)), var.get('X64Word_create')(Js(607225278), Js(1323610764)), var.get('X64Word_create')(Js(1426881987), Js(3590304994)), var.get('X64Word_create')(Js(1925078388), Js(4068182383)), var.get('X64Word_create')(Js(2162078206), Js(991336113)), var.get('X64Word_create')(Js(2614888103), Js(633803317)), var.get('X64Word_create')(Js(3248222580), Js(3479774868)), var.get('X64Word_create')(Js(3835390401), Js(2666613458)), var.get('X64Word_create')(Js(4022224774), Js(944711139)), var.get('X64Word_create')(Js(264347078), Js(2341262773)), var.get('X64Word_create')(Js(604807628), Js(2007800933)), var.get('X64Word_create')(Js(770255983), Js(1495990901)), var.get('X64Word_create')(Js(1249150122), Js(1856431235)), var.get('X64Word_create')(Js(1555081692), Js(3175218132)), var.get('X64Word_create')(Js(1996064986), Js(2198950837)), var.get('X64Word_create')(Js(2554220882), Js(3999719339)), var.get('X64Word_create')(Js(2821834349), Js(766784016)), var.get('X64Word_create')(Js(2952996808), Js(2566594879)), var.get('X64Word_create')(Js(3210313671), Js(3203337956)), var.get('X64Word_create')(Js(3336571891), Js(1034457026)), var.get('X64Word_create')(Js(3584528711), Js(2466948901)), var.get('X64Word_create')(Js(113926993), Js(3758326383)), var.get('X64Word_create')(Js(338241895), Js(168717936)), var.get('X64Word_create')(Js(666307205), Js(1188179964)), var.get('X64Word_create')(Js(773529912), Js(1546045734)), var.get('X64Word_create')(Js(1294757372), Js(1522805485)), var.get('X64Word_create')(Js(1396182291), Js(2643833823)), var.get('X64Word_create')(Js(1695183700), Js(2343527390)), var.get('X64Word_create')(Js(1986661051), Js(1014477480)), var.get('X64Word_create')(Js(2177026350), Js(1206759142)), var.get('X64Word_create')(Js(2456956037), Js(344077627)), var.get('X64Word_create')(Js(2730485921), Js(1290863460)), var.get('X64Word_create')(Js(2820302411), Js(3158454273)), var.get('X64Word_create')(Js(3259730800), Js(3505952657)), var.get('X64Word_create')(Js(3345764771), Js(106217008)), var.get('X64Word_create')(Js(3516065817), Js(3606008344)), var.get('X64Word_create')(Js(3600352804), Js(1432725776)), var.get('X64Word_create')(Js(4094571909), Js(1467031594)), var.get('X64Word_create')(Js(275423344), Js(851169720)), var.get('X64Word_create')(Js(430227734), Js(3100823752)), var.get('X64Word_create')(Js(506948616), Js(1363258195)), var.get('X64Word_create')(Js(659060556), Js(3750685593)), var.get('X64Word_create')(Js(883997877), Js(3785050280)), var.get('X64Word_create')(Js(958139571), Js(3318307427)), var.get('X64Word_create')(Js(1322822218), Js(3812723403)), var.get('X64Word_create')(Js(1537002063), Js(2003034995)), var.get('X64Word_create')(Js(1747873779), Js(3602036899)), var.get('X64Word_create')(Js(1955562222), Js(1575990012)), var.get('X64Word_create')(Js(2024104815), Js(1125592928)), var.get('X64Word_create')(Js(2227730452), Js(2716904306)), var.get('X64Word_create')(Js(2361852424), Js(442776044)), var.get('X64Word_create')(Js(2428436474), Js(593698344)), var.get('X64Word_create')(Js(2756734187), Js(3733110249)), var.get('X64Word_create')(Js(3204031479), Js(2999351573)), var.get('X64Word_create')(Js(3329325298), Js(3815920427)), var.get('X64Word_create')(Js(3391569614), Js(3928383900)), var.get('X64Word_create')(Js(3515267271), Js(566280711)), var.get('X64Word_create')(Js(3940187606), Js(3454069534)), var.get('X64Word_create')(Js(4118630271), Js(4000239992)), var.get('X64Word_create')(Js(116418474), Js(1914138554)), var.get('X64Word_create')(Js(174292421), Js(2731055270)), var.get('X64Word_create')(Js(289380356), Js(3203993006)), var.get('X64Word_create')(Js(460393269), Js(320620315)), var.get('X64Word_create')(Js(685471733), Js(587496836)), var.get('X64Word_create')(Js(852142971), Js(1086792851)), var.get('X64Word_create')(Js(1017036298), Js(365543100)), var.get('X64Word_create')(Js(1126000580), Js(2618297676)), var.get('X64Word_create')(Js(1288033470), Js(3409855158)), var.get('X64Word_create')(Js(1501505948), Js(4234509866)), var.get('X64Word_create')(Js(1607167915), Js(987167468)), var.get('X64Word_create')(Js(1816402316), Js(1246189591))]))
|
|
var.put('W', Js([]))
|
|
@Js
|
|
def PyJs_anonymous_1297_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['i'])
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(80.0)):
|
|
try:
|
|
var.get('W').put(var.get('i'), var.get('X64Word_create')())
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs_anonymous_1297_._set_name('anonymous')
|
|
PyJs_anonymous_1297_()
|
|
@Js
|
|
def PyJs__doReset_1298_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1298_}, var)
|
|
var.registers([])
|
|
def PyJs_LONG_1299_(var=var):
|
|
return var.get('X64WordArray').get('init').create(Js([var.get('X64Word').get('init').create(Js(1779033703), Js(4089235720)), var.get('X64Word').get('init').create(Js(3144134277), Js(2227873595)), var.get('X64Word').get('init').create(Js(1013904242), Js(4271175723)), var.get('X64Word').get('init').create(Js(2773480762), Js(1595750129)), var.get('X64Word').get('init').create(Js(1359893119), Js(2917565137)), var.get('X64Word').get('init').create(Js(2600822924), Js(725511199)), var.get('X64Word').get('init').create(Js(528734635), Js(4215389547)), var.get('X64Word').get('init').create(Js(1541459225), Js(327033209))]))
|
|
var.get(u"this").put('_hash', PyJs_LONG_1299_())
|
|
PyJs__doReset_1298_._set_name('_doReset')
|
|
@Js
|
|
def PyJs__doProcessBlock_1300_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, '_doProcessBlock':PyJs__doProcessBlock_1300_}, var)
|
|
var.registers(['dh', 'H6h', 'i', 'Ki', 'sigma0l', 'sigma1h', 'sigma1l', 'Wil', 'cl', 'Wi7', 'H3', 'gamma0h', 'ch', 'H7', 'fh', 'H1', 'Wi16h', 'al', 'gamma1xh', 'gamma0xl', 'chh', 'Kih', 'gamma0x', 'H5', 'majl', 'el', 'offset', 'Wi7l', 'Kil', 'Wi16l', 'Wih', 'H5l', 'gamma1xl', 'gamma1h', 'H7l', 't2h', 'H3h', 'M', 'eh', 'dl', 'hl', 'H6', 'gamma1l', 'H2l', 'H7h', 'sigma0h', 'bh', 'gh', 'H2', 'H6l', 'gl', 't2l', 'gamma0xh', 'Wi', 'majh', 'H0l', 'fl', 'H4h', 'H4', 'bl', 'Wi7h', 'gamma1x', 'H0h', 'hh', 't1h', 'H4l', 'H3l', 'H2h', 'H', 'H0', 'chl', 'Wi16', 't1l', 'H1h', 'gamma0l', 'ah', 'H1l', 'H5h'])
|
|
var.put('H', var.get(u"this").get('_hash').get('words'))
|
|
var.put('H0', var.get('H').get('0'))
|
|
var.put('H1', var.get('H').get('1'))
|
|
var.put('H2', var.get('H').get('2'))
|
|
var.put('H3', var.get('H').get('3'))
|
|
var.put('H4', var.get('H').get('4'))
|
|
var.put('H5', var.get('H').get('5'))
|
|
var.put('H6', var.get('H').get('6'))
|
|
var.put('H7', var.get('H').get('7'))
|
|
var.put('H0h', var.get('H0').get('high'))
|
|
var.put('H0l', var.get('H0').get('low'))
|
|
var.put('H1h', var.get('H1').get('high'))
|
|
var.put('H1l', var.get('H1').get('low'))
|
|
var.put('H2h', var.get('H2').get('high'))
|
|
var.put('H2l', var.get('H2').get('low'))
|
|
var.put('H3h', var.get('H3').get('high'))
|
|
var.put('H3l', var.get('H3').get('low'))
|
|
var.put('H4h', var.get('H4').get('high'))
|
|
var.put('H4l', var.get('H4').get('low'))
|
|
var.put('H5h', var.get('H5').get('high'))
|
|
var.put('H5l', var.get('H5').get('low'))
|
|
var.put('H6h', var.get('H6').get('high'))
|
|
var.put('H6l', var.get('H6').get('low'))
|
|
var.put('H7h', var.get('H7').get('high'))
|
|
var.put('H7l', var.get('H7').get('low'))
|
|
var.put('ah', var.get('H0h'))
|
|
var.put('al', var.get('H0l'))
|
|
var.put('bh', var.get('H1h'))
|
|
var.put('bl', var.get('H1l'))
|
|
var.put('ch', var.get('H2h'))
|
|
var.put('cl', var.get('H2l'))
|
|
var.put('dh', var.get('H3h'))
|
|
var.put('dl', var.get('H3l'))
|
|
var.put('eh', var.get('H4h'))
|
|
var.put('el', var.get('H4l'))
|
|
var.put('fh', var.get('H5h'))
|
|
var.put('fl', var.get('H5l'))
|
|
var.put('gh', var.get('H6h'))
|
|
var.put('gl', var.get('H6l'))
|
|
var.put('hh', var.get('H7h'))
|
|
var.put('hl', var.get('H7l'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(80.0)):
|
|
try:
|
|
var.put('Wi', var.get('W').get(var.get('i')))
|
|
if (var.get('i')<Js(16.0)):
|
|
var.put('Wih', var.get('Wi').put('high', (var.get('M').get((var.get('offset')+(var.get('i')*Js(2.0))))|Js(0.0))))
|
|
var.put('Wil', var.get('Wi').put('low', (var.get('M').get(((var.get('offset')+(var.get('i')*Js(2.0)))+Js(1.0)))|Js(0.0))))
|
|
else:
|
|
var.put('gamma0x', var.get('W').get((var.get('i')-Js(15.0))))
|
|
var.put('gamma0xh', var.get('gamma0x').get('high'))
|
|
var.put('gamma0xl', var.get('gamma0x').get('low'))
|
|
var.put('gamma0h', (((PyJsBshift(var.get('gamma0xh'),Js(1.0))|(var.get('gamma0xl')<<Js(31.0)))^(PyJsBshift(var.get('gamma0xh'),Js(8.0))|(var.get('gamma0xl')<<Js(24.0))))^PyJsBshift(var.get('gamma0xh'),Js(7.0))))
|
|
var.put('gamma0l', (((PyJsBshift(var.get('gamma0xl'),Js(1.0))|(var.get('gamma0xh')<<Js(31.0)))^(PyJsBshift(var.get('gamma0xl'),Js(8.0))|(var.get('gamma0xh')<<Js(24.0))))^(PyJsBshift(var.get('gamma0xl'),Js(7.0))|(var.get('gamma0xh')<<Js(25.0)))))
|
|
var.put('gamma1x', var.get('W').get((var.get('i')-Js(2.0))))
|
|
var.put('gamma1xh', var.get('gamma1x').get('high'))
|
|
var.put('gamma1xl', var.get('gamma1x').get('low'))
|
|
var.put('gamma1h', (((PyJsBshift(var.get('gamma1xh'),Js(19.0))|(var.get('gamma1xl')<<Js(13.0)))^((var.get('gamma1xh')<<Js(3.0))|PyJsBshift(var.get('gamma1xl'),Js(29.0))))^PyJsBshift(var.get('gamma1xh'),Js(6.0))))
|
|
var.put('gamma1l', (((PyJsBshift(var.get('gamma1xl'),Js(19.0))|(var.get('gamma1xh')<<Js(13.0)))^((var.get('gamma1xl')<<Js(3.0))|PyJsBshift(var.get('gamma1xh'),Js(29.0))))^(PyJsBshift(var.get('gamma1xl'),Js(6.0))|(var.get('gamma1xh')<<Js(26.0)))))
|
|
var.put('Wi7', var.get('W').get((var.get('i')-Js(7.0))))
|
|
var.put('Wi7h', var.get('Wi7').get('high'))
|
|
var.put('Wi7l', var.get('Wi7').get('low'))
|
|
var.put('Wi16', var.get('W').get((var.get('i')-Js(16.0))))
|
|
var.put('Wi16h', var.get('Wi16').get('high'))
|
|
var.put('Wi16l', var.get('Wi16').get('low'))
|
|
var.put('Wil', (var.get('gamma0l')+var.get('Wi7l')))
|
|
var.put('Wih', ((var.get('gamma0h')+var.get('Wi7h'))+(Js(1.0) if (PyJsBshift(var.get('Wil'),Js(0.0))<PyJsBshift(var.get('gamma0l'),Js(0.0))) else Js(0.0))))
|
|
var.put('Wil', (var.get('Wil')+var.get('gamma1l')))
|
|
var.put('Wih', ((var.get('Wih')+var.get('gamma1h'))+(Js(1.0) if (PyJsBshift(var.get('Wil'),Js(0.0))<PyJsBshift(var.get('gamma1l'),Js(0.0))) else Js(0.0))))
|
|
var.put('Wil', (var.get('Wil')+var.get('Wi16l')))
|
|
var.put('Wih', ((var.get('Wih')+var.get('Wi16h'))+(Js(1.0) if (PyJsBshift(var.get('Wil'),Js(0.0))<PyJsBshift(var.get('Wi16l'),Js(0.0))) else Js(0.0))))
|
|
var.get('Wi').put('high', var.get('Wih'))
|
|
var.get('Wi').put('low', var.get('Wil'))
|
|
var.put('chh', ((var.get('eh')&var.get('fh'))^((~var.get('eh'))&var.get('gh'))))
|
|
var.put('chl', ((var.get('el')&var.get('fl'))^((~var.get('el'))&var.get('gl'))))
|
|
var.put('majh', (((var.get('ah')&var.get('bh'))^(var.get('ah')&var.get('ch')))^(var.get('bh')&var.get('ch'))))
|
|
var.put('majl', (((var.get('al')&var.get('bl'))^(var.get('al')&var.get('cl')))^(var.get('bl')&var.get('cl'))))
|
|
var.put('sigma0h', (((PyJsBshift(var.get('ah'),Js(28.0))|(var.get('al')<<Js(4.0)))^((var.get('ah')<<Js(30.0))|PyJsBshift(var.get('al'),Js(2.0))))^((var.get('ah')<<Js(25.0))|PyJsBshift(var.get('al'),Js(7.0)))))
|
|
var.put('sigma0l', (((PyJsBshift(var.get('al'),Js(28.0))|(var.get('ah')<<Js(4.0)))^((var.get('al')<<Js(30.0))|PyJsBshift(var.get('ah'),Js(2.0))))^((var.get('al')<<Js(25.0))|PyJsBshift(var.get('ah'),Js(7.0)))))
|
|
var.put('sigma1h', (((PyJsBshift(var.get('eh'),Js(14.0))|(var.get('el')<<Js(18.0)))^(PyJsBshift(var.get('eh'),Js(18.0))|(var.get('el')<<Js(14.0))))^((var.get('eh')<<Js(23.0))|PyJsBshift(var.get('el'),Js(9.0)))))
|
|
var.put('sigma1l', (((PyJsBshift(var.get('el'),Js(14.0))|(var.get('eh')<<Js(18.0)))^(PyJsBshift(var.get('el'),Js(18.0))|(var.get('eh')<<Js(14.0))))^((var.get('el')<<Js(23.0))|PyJsBshift(var.get('eh'),Js(9.0)))))
|
|
var.put('Ki', var.get('K').get(var.get('i')))
|
|
var.put('Kih', var.get('Ki').get('high'))
|
|
var.put('Kil', var.get('Ki').get('low'))
|
|
var.put('t1l', (var.get('hl')+var.get('sigma1l')))
|
|
var.put('t1h', ((var.get('hh')+var.get('sigma1h'))+(Js(1.0) if (PyJsBshift(var.get('t1l'),Js(0.0))<PyJsBshift(var.get('hl'),Js(0.0))) else Js(0.0))))
|
|
var.put('t1l', (var.get('t1l')+var.get('chl')))
|
|
var.put('t1h', ((var.get('t1h')+var.get('chh'))+(Js(1.0) if (PyJsBshift(var.get('t1l'),Js(0.0))<PyJsBshift(var.get('chl'),Js(0.0))) else Js(0.0))))
|
|
var.put('t1l', (var.get('t1l')+var.get('Kil')))
|
|
var.put('t1h', ((var.get('t1h')+var.get('Kih'))+(Js(1.0) if (PyJsBshift(var.get('t1l'),Js(0.0))<PyJsBshift(var.get('Kil'),Js(0.0))) else Js(0.0))))
|
|
var.put('t1l', (var.get('t1l')+var.get('Wil')))
|
|
var.put('t1h', ((var.get('t1h')+var.get('Wih'))+(Js(1.0) if (PyJsBshift(var.get('t1l'),Js(0.0))<PyJsBshift(var.get('Wil'),Js(0.0))) else Js(0.0))))
|
|
var.put('t2l', (var.get('sigma0l')+var.get('majl')))
|
|
var.put('t2h', ((var.get('sigma0h')+var.get('majh'))+(Js(1.0) if (PyJsBshift(var.get('t2l'),Js(0.0))<PyJsBshift(var.get('sigma0l'),Js(0.0))) else Js(0.0))))
|
|
var.put('hh', var.get('gh'))
|
|
var.put('hl', var.get('gl'))
|
|
var.put('gh', var.get('fh'))
|
|
var.put('gl', var.get('fl'))
|
|
var.put('fh', var.get('eh'))
|
|
var.put('fl', var.get('el'))
|
|
var.put('el', ((var.get('dl')+var.get('t1l'))|Js(0.0)))
|
|
var.put('eh', (((var.get('dh')+var.get('t1h'))+(Js(1.0) if (PyJsBshift(var.get('el'),Js(0.0))<PyJsBshift(var.get('dl'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
var.put('dh', var.get('ch'))
|
|
var.put('dl', var.get('cl'))
|
|
var.put('ch', var.get('bh'))
|
|
var.put('cl', var.get('bl'))
|
|
var.put('bh', var.get('ah'))
|
|
var.put('bl', var.get('al'))
|
|
var.put('al', ((var.get('t1l')+var.get('t2l'))|Js(0.0)))
|
|
var.put('ah', (((var.get('t1h')+var.get('t2h'))+(Js(1.0) if (PyJsBshift(var.get('al'),Js(0.0))<PyJsBshift(var.get('t1l'),Js(0.0))) else Js(0.0)))|Js(0.0)))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.put('H0l', var.get('H0').put('low', (var.get('H0l')+var.get('al'))))
|
|
var.get('H0').put('high', ((var.get('H0h')+var.get('ah'))+(Js(1.0) if (PyJsBshift(var.get('H0l'),Js(0.0))<PyJsBshift(var.get('al'),Js(0.0))) else Js(0.0))))
|
|
var.put('H1l', var.get('H1').put('low', (var.get('H1l')+var.get('bl'))))
|
|
var.get('H1').put('high', ((var.get('H1h')+var.get('bh'))+(Js(1.0) if (PyJsBshift(var.get('H1l'),Js(0.0))<PyJsBshift(var.get('bl'),Js(0.0))) else Js(0.0))))
|
|
var.put('H2l', var.get('H2').put('low', (var.get('H2l')+var.get('cl'))))
|
|
var.get('H2').put('high', ((var.get('H2h')+var.get('ch'))+(Js(1.0) if (PyJsBshift(var.get('H2l'),Js(0.0))<PyJsBshift(var.get('cl'),Js(0.0))) else Js(0.0))))
|
|
var.put('H3l', var.get('H3').put('low', (var.get('H3l')+var.get('dl'))))
|
|
var.get('H3').put('high', ((var.get('H3h')+var.get('dh'))+(Js(1.0) if (PyJsBshift(var.get('H3l'),Js(0.0))<PyJsBshift(var.get('dl'),Js(0.0))) else Js(0.0))))
|
|
var.put('H4l', var.get('H4').put('low', (var.get('H4l')+var.get('el'))))
|
|
var.get('H4').put('high', ((var.get('H4h')+var.get('eh'))+(Js(1.0) if (PyJsBshift(var.get('H4l'),Js(0.0))<PyJsBshift(var.get('el'),Js(0.0))) else Js(0.0))))
|
|
var.put('H5l', var.get('H5').put('low', (var.get('H5l')+var.get('fl'))))
|
|
var.get('H5').put('high', ((var.get('H5h')+var.get('fh'))+(Js(1.0) if (PyJsBshift(var.get('H5l'),Js(0.0))<PyJsBshift(var.get('fl'),Js(0.0))) else Js(0.0))))
|
|
var.put('H6l', var.get('H6').put('low', (var.get('H6l')+var.get('gl'))))
|
|
var.get('H6').put('high', ((var.get('H6h')+var.get('gh'))+(Js(1.0) if (PyJsBshift(var.get('H6l'),Js(0.0))<PyJsBshift(var.get('gl'),Js(0.0))) else Js(0.0))))
|
|
var.put('H7l', var.get('H7').put('low', (var.get('H7l')+var.get('hl'))))
|
|
var.get('H7').put('high', ((var.get('H7h')+var.get('hh'))+(Js(1.0) if (PyJsBshift(var.get('H7l'),Js(0.0))<PyJsBshift(var.get('hl'),Js(0.0))) else Js(0.0))))
|
|
PyJs__doProcessBlock_1300_._set_name('_doProcessBlock')
|
|
@Js
|
|
def PyJs__doFinalize_1301_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doFinalize':PyJs__doFinalize_1301_}, var)
|
|
var.registers(['nBitsLeft', 'nBitsTotal', 'data', 'hash', 'dataWords'])
|
|
var.put('data', var.get(u"this").get('_data'))
|
|
var.put('dataWords', var.get('data').get('words'))
|
|
var.put('nBitsTotal', (var.get(u"this").get('_nDataBytes')*Js(8.0)))
|
|
var.put('nBitsLeft', (var.get('data').get('sigBytes')*Js(8.0)))
|
|
var.get('dataWords').put(PyJsBshift(var.get('nBitsLeft'),Js(5.0)), (Js(128)<<(Js(24.0)-(var.get('nBitsLeft')%Js(32.0)))), '|')
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(128.0)),Js(10.0))<<Js(5.0))+Js(30.0)), var.get('Math').callprop('floor', (var.get('nBitsTotal')/Js(4294967296))))
|
|
var.get('dataWords').put(((PyJsBshift((var.get('nBitsLeft')+Js(128.0)),Js(10.0))<<Js(5.0))+Js(31.0)), var.get('nBitsTotal'))
|
|
var.get('data').put('sigBytes', (var.get('dataWords').get('length')*Js(4.0)))
|
|
var.get(u"this").callprop('_process')
|
|
var.put('hash', var.get(u"this").get('_hash').callprop('toX32'))
|
|
return var.get('hash')
|
|
PyJs__doFinalize_1301_._set_name('_doFinalize')
|
|
@Js
|
|
def PyJs_clone_1302_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1302_}, var)
|
|
var.registers(['clone'])
|
|
var.put('clone', var.get('Hasher').get('clone').callprop('call', var.get(u"this")))
|
|
var.get('clone').put('_hash', var.get(u"this").get('_hash').callprop('clone'))
|
|
return var.get('clone')
|
|
PyJs_clone_1302_._set_name('clone')
|
|
var.put('SHA512', var.get('C_algo').put('SHA512', var.get('Hasher').callprop('extend', Js({'_doReset':PyJs__doReset_1298_,'_doProcessBlock':PyJs__doProcessBlock_1300_,'_doFinalize':PyJs__doFinalize_1301_,'clone':PyJs_clone_1302_,'blockSize':(Js(1024.0)/Js(32.0))}))))
|
|
var.get('C').put('SHA512', var.get('Hasher').callprop('_createHelper', var.get('SHA512')))
|
|
var.get('C').put('HmacSHA512', var.get('Hasher').callprop('_createHmacHelper', var.get('SHA512')))
|
|
PyJs_anonymous_1296_._set_name('anonymous')
|
|
PyJs_anonymous_1296_()
|
|
return var.get('CryptoJS').get('SHA512')
|
|
PyJs_anonymous_1295_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1303_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./x64-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./x64-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1303_._set_name('anonymous')
|
|
PyJs_anonymous_1303_(var.get(u"this"), PyJs_anonymous_1295_)
|
|
PyJs_anonymous_1294_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1304_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1305_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1306_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['WordArray', 'C_lib', 'C', 'PC1', 'exchangeLR', 'DES', 'C_algo', 'BlockCipher', 'BIT_SHIFTS', 'SBOX_MASK', 'TripleDES', 'exchangeRL', 'SBOX_P', 'PC2'])
|
|
@Js
|
|
def PyJsHoisted_exchangeLR_(offset, mask, this, arguments, var=var):
|
|
var = Scope({'offset':offset, 'mask':mask, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['offset', 't', 'mask'])
|
|
var.put('t', ((PyJsBshift(var.get(u"this").get('_lBlock'),var.get('offset'))^var.get(u"this").get('_rBlock'))&var.get('mask')))
|
|
var.get(u"this").put('_rBlock', var.get('t'), '^')
|
|
var.get(u"this").put('_lBlock', (var.get('t')<<var.get('offset')), '^')
|
|
PyJsHoisted_exchangeLR_.func_name = 'exchangeLR'
|
|
var.put('exchangeLR', PyJsHoisted_exchangeLR_)
|
|
@Js
|
|
def PyJsHoisted_exchangeRL_(offset, mask, this, arguments, var=var):
|
|
var = Scope({'offset':offset, 'mask':mask, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['offset', 't', 'mask'])
|
|
var.put('t', ((PyJsBshift(var.get(u"this").get('_rBlock'),var.get('offset'))^var.get(u"this").get('_lBlock'))&var.get('mask')))
|
|
var.get(u"this").put('_lBlock', var.get('t'), '^')
|
|
var.get(u"this").put('_rBlock', (var.get('t')<<var.get('offset')), '^')
|
|
PyJsHoisted_exchangeRL_.func_name = 'exchangeRL'
|
|
var.put('exchangeRL', PyJsHoisted_exchangeRL_)
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('BlockCipher', var.get('C_lib').get('BlockCipher'))
|
|
var.put('C_algo', var.get('C').get('algo'))
|
|
var.put('PC1', Js([Js(57.0), Js(49.0), Js(41.0), Js(33.0), Js(25.0), Js(17.0), Js(9.0), Js(1.0), Js(58.0), Js(50.0), Js(42.0), Js(34.0), Js(26.0), Js(18.0), Js(10.0), Js(2.0), Js(59.0), Js(51.0), Js(43.0), Js(35.0), Js(27.0), Js(19.0), Js(11.0), Js(3.0), Js(60.0), Js(52.0), Js(44.0), Js(36.0), Js(63.0), Js(55.0), Js(47.0), Js(39.0), Js(31.0), Js(23.0), Js(15.0), Js(7.0), Js(62.0), Js(54.0), Js(46.0), Js(38.0), Js(30.0), Js(22.0), Js(14.0), Js(6.0), Js(61.0), Js(53.0), Js(45.0), Js(37.0), Js(29.0), Js(21.0), Js(13.0), Js(5.0), Js(28.0), Js(20.0), Js(12.0), Js(4.0)]))
|
|
var.put('PC2', Js([Js(14.0), Js(17.0), Js(11.0), Js(24.0), Js(1.0), Js(5.0), Js(3.0), Js(28.0), Js(15.0), Js(6.0), Js(21.0), Js(10.0), Js(23.0), Js(19.0), Js(12.0), Js(4.0), Js(26.0), Js(8.0), Js(16.0), Js(7.0), Js(27.0), Js(20.0), Js(13.0), Js(2.0), Js(41.0), Js(52.0), Js(31.0), Js(37.0), Js(47.0), Js(55.0), Js(30.0), Js(40.0), Js(51.0), Js(45.0), Js(33.0), Js(48.0), Js(44.0), Js(49.0), Js(39.0), Js(56.0), Js(34.0), Js(53.0), Js(46.0), Js(42.0), Js(50.0), Js(36.0), Js(29.0), Js(32.0)]))
|
|
var.put('BIT_SHIFTS', Js([Js(1.0), Js(2.0), Js(4.0), Js(6.0), Js(8.0), Js(10.0), Js(12.0), Js(14.0), Js(15.0), Js(17.0), Js(19.0), Js(21.0), Js(23.0), Js(25.0), Js(27.0), Js(28.0)]))
|
|
var.put('SBOX_P', Js([Js({'0':Js(8421888),'268435456':Js(32768),'536870912':Js(8421378),'805306368':Js(2),'1073741824':Js(512),'1342177280':Js(8421890),'1610612736':Js(8389122),'1879048192':Js(8388608),'2147483648':Js(514),'2415919104':Js(8389120),'2684354560':Js(33280),'2952790016':Js(8421376),'3221225472':Js(32770),'3489660928':Js(8388610),'3758096384':Js(0),'4026531840':Js(33282),'134217728':Js(0),'402653184':Js(8421890),'671088640':Js(33282),'939524096':Js(32768),'1207959552':Js(8421888),'1476395008':Js(512),'1744830464':Js(8421378),'2013265920':Js(2),'2281701376':Js(8389120),'2550136832':Js(33280),'2818572288':Js(8421376),'3087007744':Js(8389122),'3355443200':Js(8388610),'3623878656':Js(32770),'3892314112':Js(514),'4160749568':Js(8388608),'1':Js(32768),'268435457':Js(2),'536870913':Js(8421888),'805306369':Js(8388608),'1073741825':Js(8421378),'1342177281':Js(33280),'1610612737':Js(512),'1879048193':Js(8389122),'2147483649':Js(8421890),'2415919105':Js(8421376),'2684354561':Js(8388610),'2952790017':Js(33282),'3221225473':Js(514),'3489660929':Js(8389120),'3758096385':Js(32770),'4026531841':Js(0),'134217729':Js(8421890),'402653185':Js(8421376),'671088641':Js(8388608),'939524097':Js(512),'1207959553':Js(32768),'1476395009':Js(8388610),'1744830465':Js(2),'2013265921':Js(33282),'2281701377':Js(32770),'2550136833':Js(8389122),'2818572289':Js(514),'3087007745':Js(8421888),'3355443201':Js(8389120),'3623878657':Js(0),'3892314113':Js(33280),'4160749569':Js(8421378)}), Js({'0':Js(1074282512),'16777216':Js(16384),'33554432':Js(524288),'50331648':Js(1074266128),'67108864':Js(1073741840),'83886080':Js(1074282496),'100663296':Js(1073758208),'117440512':Js(16),'134217728':Js(540672),'150994944':Js(1073758224),'167772160':Js(1073741824),'184549376':Js(540688),'201326592':Js(524304),'218103808':Js(0),'234881024':Js(16400),'251658240':Js(1074266112),'8388608':Js(1073758208),'25165824':Js(540688),'41943040':Js(16),'58720256':Js(1073758224),'75497472':Js(1074282512),'92274688':Js(1073741824),'109051904':Js(524288),'125829120':Js(1074266128),'142606336':Js(524304),'159383552':Js(0),'176160768':Js(16384),'192937984':Js(1074266112),'209715200':Js(1073741840),'226492416':Js(540672),'243269632':Js(1074282496),'260046848':Js(16400),'268435456':Js(0),'285212672':Js(1074266128),'301989888':Js(1073758224),'318767104':Js(1074282496),'335544320':Js(1074266112),'352321536':Js(16),'369098752':Js(540688),'385875968':Js(16384),'402653184':Js(16400),'419430400':Js(524288),'436207616':Js(524304),'452984832':Js(1073741840),'469762048':Js(540672),'486539264':Js(1073758208),'503316480':Js(1073741824),'520093696':Js(1074282512),'276824064':Js(540688),'293601280':Js(524288),'310378496':Js(1074266112),'327155712':Js(16384),'343932928':Js(1073758208),'360710144':Js(1074282512),'377487360':Js(16),'394264576':Js(1073741824),'411041792':Js(1074282496),'427819008':Js(1073741840),'444596224':Js(1073758224),'461373440':Js(524304),'478150656':Js(0),'494927872':Js(16400),'511705088':Js(1074266128),'528482304':Js(540672)}), Js({'0':Js(260),'1048576':Js(0),'2097152':Js(67109120),'3145728':Js(65796),'4194304':Js(65540),'5242880':Js(67108868),'6291456':Js(67174660),'7340032':Js(67174400),'8388608':Js(67108864),'9437184':Js(67174656),'10485760':Js(65792),'11534336':Js(67174404),'12582912':Js(67109124),'13631488':Js(65536),'14680064':Js(4),'15728640':Js(256),'524288':Js(67174656),'1572864':Js(67174404),'2621440':Js(0),'3670016':Js(67109120),'4718592':Js(67108868),'5767168':Js(65536),'6815744':Js(65540),'7864320':Js(260),'8912896':Js(4),'9961472':Js(256),'11010048':Js(67174400),'12058624':Js(65796),'13107200':Js(65792),'14155776':Js(67109124),'15204352':Js(67174660),'16252928':Js(67108864),'16777216':Js(67174656),'17825792':Js(65540),'18874368':Js(65536),'19922944':Js(67109120),'20971520':Js(256),'22020096':Js(67174660),'23068672':Js(67108868),'24117248':Js(0),'25165824':Js(67109124),'26214400':Js(67108864),'27262976':Js(4),'28311552':Js(65792),'29360128':Js(67174400),'30408704':Js(260),'31457280':Js(65796),'32505856':Js(67174404),'17301504':Js(67108864),'18350080':Js(260),'19398656':Js(67174656),'20447232':Js(0),'21495808':Js(65540),'22544384':Js(67109120),'23592960':Js(256),'24641536':Js(67174404),'25690112':Js(65536),'26738688':Js(67174660),'27787264':Js(65796),'28835840':Js(67108868),'29884416':Js(67109124),'30932992':Js(67174400),'31981568':Js(4),'33030144':Js(65792)}), Js({'0':Js(2151682048),'65536':Js(2147487808),'131072':Js(4198464),'196608':Js(2151677952),'262144':Js(0),'327680':Js(4198400),'393216':Js(2147483712),'458752':Js(4194368),'524288':Js(2147483648),'589824':Js(4194304),'655360':Js(64),'720896':Js(2147487744),'786432':Js(2151678016),'851968':Js(4160),'917504':Js(4096),'983040':Js(2151682112),'32768':Js(2147487808),'98304':Js(64),'163840':Js(2151678016),'229376':Js(2147487744),'294912':Js(4198400),'360448':Js(2151682112),'425984':Js(0),'491520':Js(2151677952),'557056':Js(4096),'622592':Js(2151682048),'688128':Js(4194304),'753664':Js(4160),'819200':Js(2147483648),'884736':Js(4194368),'950272':Js(4198464),'1015808':Js(2147483712),'1048576':Js(4194368),'1114112':Js(4198400),'1179648':Js(2147483712),'1245184':Js(0),'1310720':Js(4160),'1376256':Js(2151678016),'1441792':Js(2151682048),'1507328':Js(2147487808),'1572864':Js(2151682112),'1638400':Js(2147483648),'1703936':Js(2151677952),'1769472':Js(4198464),'1835008':Js(2147487744),'1900544':Js(4194304),'1966080':Js(64),'2031616':Js(4096),'1081344':Js(2151677952),'1146880':Js(2151682112),'1212416':Js(0),'1277952':Js(4198400),'1343488':Js(4194368),'1409024':Js(2147483648),'1474560':Js(2147487808),'1540096':Js(64),'1605632':Js(2147483712),'1671168':Js(4096),'1736704':Js(2147487744),'1802240':Js(2151678016),'1867776':Js(4160),'1933312':Js(2151682048),'1998848':Js(4194304),'2064384':Js(4198464)}), Js({'0':Js(128),'4096':Js(17039360),'8192':Js(262144),'12288':Js(536870912),'16384':Js(537133184),'20480':Js(16777344),'24576':Js(553648256),'28672':Js(262272),'32768':Js(16777216),'36864':Js(537133056),'40960':Js(536871040),'45056':Js(553910400),'49152':Js(553910272),'53248':Js(0),'57344':Js(17039488),'61440':Js(553648128),'2048':Js(17039488),'6144':Js(553648256),'10240':Js(128),'14336':Js(17039360),'18432':Js(262144),'22528':Js(537133184),'26624':Js(553910272),'30720':Js(536870912),'34816':Js(537133056),'38912':Js(0),'43008':Js(553910400),'47104':Js(16777344),'51200':Js(536871040),'55296':Js(553648128),'59392':Js(16777216),'63488':Js(262272),'65536':Js(262144),'69632':Js(128),'73728':Js(536870912),'77824':Js(553648256),'81920':Js(16777344),'86016':Js(553910272),'90112':Js(537133184),'94208':Js(16777216),'98304':Js(553910400),'102400':Js(553648128),'106496':Js(17039360),'110592':Js(537133056),'114688':Js(262272),'118784':Js(536871040),'122880':Js(0),'126976':Js(17039488),'67584':Js(553648256),'71680':Js(16777216),'75776':Js(17039360),'79872':Js(537133184),'83968':Js(536870912),'88064':Js(17039488),'92160':Js(128),'96256':Js(553910272),'100352':Js(262272),'104448':Js(553910400),'108544':Js(0),'112640':Js(553648128),'116736':Js(16777344),'120832':Js(262144),'124928':Js(537133056),'129024':Js(536871040)}), Js({'0':Js(268435464),'256':Js(8192),'512':Js(270532608),'768':Js(270540808),'1024':Js(268443648),'1280':Js(2097152),'1536':Js(2097160),'1792':Js(268435456),'2048':Js(0),'2304':Js(268443656),'2560':Js(2105344),'2816':Js(8),'3072':Js(270532616),'3328':Js(2105352),'3584':Js(8200),'3840':Js(270540800),'128':Js(270532608),'384':Js(270540808),'640':Js(8),'896':Js(2097152),'1152':Js(2105352),'1408':Js(268435464),'1664':Js(268443648),'1920':Js(8200),'2176':Js(2097160),'2432':Js(8192),'2688':Js(268443656),'2944':Js(270532616),'3200':Js(0),'3456':Js(270540800),'3712':Js(2105344),'3968':Js(268435456),'4096':Js(268443648),'4352':Js(270532616),'4608':Js(270540808),'4864':Js(8200),'5120':Js(2097152),'5376':Js(268435456),'5632':Js(268435464),'5888':Js(2105344),'6144':Js(2105352),'6400':Js(0),'6656':Js(8),'6912':Js(270532608),'7168':Js(8192),'7424':Js(268443656),'7680':Js(270540800),'7936':Js(2097160),'4224':Js(8),'4480':Js(2105344),'4736':Js(2097152),'4992':Js(268435464),'5248':Js(268443648),'5504':Js(8200),'5760':Js(270540808),'6016':Js(270532608),'6272':Js(270540800),'6528':Js(270532616),'6784':Js(8192),'7040':Js(2105352),'7296':Js(2097160),'7552':Js(0),'7808':Js(268435456),'8064':Js(268443656)}), Js({'0':Js(1048576),'16':Js(33555457),'32':Js(1024),'48':Js(1049601),'64':Js(34604033),'80':Js(0),'96':Js(1),'112':Js(34603009),'128':Js(33555456),'144':Js(1048577),'160':Js(33554433),'176':Js(34604032),'192':Js(34603008),'208':Js(1025),'224':Js(1049600),'240':Js(33554432),'8':Js(34603009),'24':Js(0),'40':Js(33555457),'56':Js(34604032),'72':Js(1048576),'88':Js(33554433),'104':Js(33554432),'120':Js(1025),'136':Js(1049601),'152':Js(33555456),'168':Js(34603008),'184':Js(1048577),'200':Js(1024),'216':Js(34604033),'232':Js(1),'248':Js(1049600),'256':Js(33554432),'272':Js(1048576),'288':Js(33555457),'304':Js(34603009),'320':Js(1048577),'336':Js(33555456),'352':Js(34604032),'368':Js(1049601),'384':Js(1025),'400':Js(34604033),'416':Js(1049600),'432':Js(1),'448':Js(0),'464':Js(34603008),'480':Js(33554433),'496':Js(1024),'264':Js(1049600),'280':Js(33555457),'296':Js(34603009),'312':Js(1),'328':Js(33554432),'344':Js(1048576),'360':Js(1025),'376':Js(34604032),'392':Js(33554433),'408':Js(34603008),'424':Js(0),'440':Js(34604033),'456':Js(1049601),'472':Js(1024),'488':Js(33555456),'504':Js(1048577)}), Js({'0':Js(134219808),'1':Js(131072),'2':Js(134217728),'3':Js(32),'4':Js(131104),'5':Js(134350880),'6':Js(134350848),'7':Js(2048),'8':Js(134348800),'9':Js(134219776),'10':Js(133120),'11':Js(134348832),'12':Js(2080),'13':Js(0),'14':Js(134217760),'15':Js(133152),'2147483648':Js(2048),'2147483649':Js(134350880),'2147483650':Js(134219808),'2147483651':Js(134217728),'2147483652':Js(134348800),'2147483653':Js(133120),'2147483654':Js(133152),'2147483655':Js(32),'2147483656':Js(134217760),'2147483657':Js(2080),'2147483658':Js(131104),'2147483659':Js(134350848),'2147483660':Js(0),'2147483661':Js(134348832),'2147483662':Js(134219776),'2147483663':Js(131072),'16':Js(133152),'17':Js(134350848),'18':Js(32),'19':Js(2048),'20':Js(134219776),'21':Js(134217760),'22':Js(134348832),'23':Js(131072),'24':Js(0),'25':Js(131104),'26':Js(134348800),'27':Js(134219808),'28':Js(134350880),'29':Js(133120),'30':Js(2080),'31':Js(134217728),'2147483664':Js(131072),'2147483665':Js(2048),'2147483666':Js(134348832),'2147483667':Js(133152),'2147483668':Js(32),'2147483669':Js(134348800),'2147483670':Js(134217728),'2147483671':Js(134219808),'2147483672':Js(134350880),'2147483673':Js(134217760),'2147483674':Js(134219776),'2147483675':Js(0),'2147483676':Js(133120),'2147483677':Js(2080),'2147483678':Js(131104),'2147483679':Js(134350848)})]))
|
|
var.put('SBOX_MASK', Js([Js(4160749569), Js(528482304), Js(33030144), Js(2064384), Js(129024), Js(8064), Js(504), Js(2147483679)]))
|
|
@Js
|
|
def PyJs__doReset_1307_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1307_}, var)
|
|
var.registers(['bitShift', 'subKey', 'invSubKeys', 'keyWords', 'i', 'subKeys', 'nSubKey', 'key', 'keyBits', 'keyBitPos'])
|
|
var.put('key', var.get(u"this").get('_key'))
|
|
var.put('keyWords', var.get('key').get('words'))
|
|
var.put('keyBits', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(56.0)):
|
|
try:
|
|
var.put('keyBitPos', (var.get('PC1').get(var.get('i'))-Js(1.0)))
|
|
var.get('keyBits').put(var.get('i'), (PyJsBshift(var.get('keyWords').get(PyJsBshift(var.get('keyBitPos'),Js(5.0))),(Js(31.0)-(var.get('keyBitPos')%Js(32.0))))&Js(1.0)))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.put('subKeys', var.get(u"this").put('_subKeys', Js([])))
|
|
#for JS loop
|
|
var.put('nSubKey', Js(0.0))
|
|
while (var.get('nSubKey')<Js(16.0)):
|
|
try:
|
|
var.put('subKey', var.get('subKeys').put(var.get('nSubKey'), Js([])))
|
|
var.put('bitShift', var.get('BIT_SHIFTS').get(var.get('nSubKey')))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(24.0)):
|
|
try:
|
|
var.get('subKey').put(((var.get('i')/Js(6.0))|Js(0.0)), (var.get('keyBits').get((((var.get('PC2').get(var.get('i'))-Js(1.0))+var.get('bitShift'))%Js(28.0)))<<(Js(31.0)-(var.get('i')%Js(6.0)))), '|')
|
|
var.get('subKey').put((Js(4.0)+((var.get('i')/Js(6.0))|Js(0.0))), (var.get('keyBits').get((Js(28.0)+(((var.get('PC2').get((var.get('i')+Js(24.0)))-Js(1.0))+var.get('bitShift'))%Js(28.0))))<<(Js(31.0)-(var.get('i')%Js(6.0)))), '|')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('subKey').put('0', ((var.get('subKey').get('0')<<Js(1.0))|PyJsBshift(var.get('subKey').get('0'),Js(31.0))))
|
|
#for JS loop
|
|
var.put('i', Js(1.0))
|
|
while (var.get('i')<Js(7.0)):
|
|
try:
|
|
var.get('subKey').put(var.get('i'), PyJsBshift(var.get('subKey').get(var.get('i')),(((var.get('i')-Js(1.0))*Js(4.0))+Js(3.0))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get('subKey').put('7', ((var.get('subKey').get('7')<<Js(5.0))|PyJsBshift(var.get('subKey').get('7'),Js(27.0))))
|
|
finally:
|
|
(var.put('nSubKey',Js(var.get('nSubKey').to_number())+Js(1))-Js(1))
|
|
var.put('invSubKeys', var.get(u"this").put('_invSubKeys', Js([])))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(16.0)):
|
|
try:
|
|
var.get('invSubKeys').put(var.get('i'), var.get('subKeys').get((Js(15.0)-var.get('i'))))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
PyJs__doReset_1307_._set_name('_doReset')
|
|
@Js
|
|
def PyJs_encryptBlock_1308_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, 'encryptBlock':PyJs_encryptBlock_1308_}, var)
|
|
var.registers(['offset', 'M'])
|
|
var.get(u"this").callprop('_doCryptBlock', var.get('M'), var.get('offset'), var.get(u"this").get('_subKeys'))
|
|
PyJs_encryptBlock_1308_._set_name('encryptBlock')
|
|
@Js
|
|
def PyJs_decryptBlock_1309_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, 'decryptBlock':PyJs_decryptBlock_1309_}, var)
|
|
var.registers(['offset', 'M'])
|
|
var.get(u"this").callprop('_doCryptBlock', var.get('M'), var.get('offset'), var.get(u"this").get('_invSubKeys'))
|
|
PyJs_decryptBlock_1309_._set_name('decryptBlock')
|
|
@Js
|
|
def PyJs__doCryptBlock_1310_(M, offset, subKeys, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'subKeys':subKeys, 'this':this, 'arguments':arguments, '_doCryptBlock':PyJs__doCryptBlock_1310_}, var)
|
|
var.registers(['subKey', 'f', 'round', 'rBlock', 'M', 'i', 't', 'subKeys', 'offset', 'lBlock'])
|
|
var.get(u"this").put('_lBlock', var.get('M').get(var.get('offset')))
|
|
var.get(u"this").put('_rBlock', var.get('M').get((var.get('offset')+Js(1.0))))
|
|
var.get('exchangeLR').callprop('call', var.get(u"this"), Js(4.0), Js(252645135))
|
|
var.get('exchangeLR').callprop('call', var.get(u"this"), Js(16.0), Js(65535))
|
|
var.get('exchangeRL').callprop('call', var.get(u"this"), Js(2.0), Js(858993459))
|
|
var.get('exchangeRL').callprop('call', var.get(u"this"), Js(8.0), Js(16711935))
|
|
var.get('exchangeLR').callprop('call', var.get(u"this"), Js(1.0), Js(1431655765))
|
|
#for JS loop
|
|
var.put('round', Js(0.0))
|
|
while (var.get('round')<Js(16.0)):
|
|
try:
|
|
var.put('subKey', var.get('subKeys').get(var.get('round')))
|
|
var.put('lBlock', var.get(u"this").get('_lBlock'))
|
|
var.put('rBlock', var.get(u"this").get('_rBlock'))
|
|
var.put('f', Js(0.0))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<Js(8.0)):
|
|
try:
|
|
var.put('f', var.get('SBOX_P').get(var.get('i')).get(PyJsBshift(((var.get('rBlock')^var.get('subKey').get(var.get('i')))&var.get('SBOX_MASK').get(var.get('i'))),Js(0.0))), '|')
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
var.get(u"this").put('_lBlock', var.get('rBlock'))
|
|
var.get(u"this").put('_rBlock', (var.get('lBlock')^var.get('f')))
|
|
finally:
|
|
(var.put('round',Js(var.get('round').to_number())+Js(1))-Js(1))
|
|
var.put('t', var.get(u"this").get('_lBlock'))
|
|
var.get(u"this").put('_lBlock', var.get(u"this").get('_rBlock'))
|
|
var.get(u"this").put('_rBlock', var.get('t'))
|
|
var.get('exchangeLR').callprop('call', var.get(u"this"), Js(1.0), Js(1431655765))
|
|
var.get('exchangeRL').callprop('call', var.get(u"this"), Js(8.0), Js(16711935))
|
|
var.get('exchangeRL').callprop('call', var.get(u"this"), Js(2.0), Js(858993459))
|
|
var.get('exchangeLR').callprop('call', var.get(u"this"), Js(16.0), Js(65535))
|
|
var.get('exchangeLR').callprop('call', var.get(u"this"), Js(4.0), Js(252645135))
|
|
var.get('M').put(var.get('offset'), var.get(u"this").get('_lBlock'))
|
|
var.get('M').put((var.get('offset')+Js(1.0)), var.get(u"this").get('_rBlock'))
|
|
PyJs__doCryptBlock_1310_._set_name('_doCryptBlock')
|
|
var.put('DES', var.get('C_algo').put('DES', var.get('BlockCipher').callprop('extend', Js({'_doReset':PyJs__doReset_1307_,'encryptBlock':PyJs_encryptBlock_1308_,'decryptBlock':PyJs_decryptBlock_1309_,'_doCryptBlock':PyJs__doCryptBlock_1310_,'keySize':(Js(64.0)/Js(32.0)),'ivSize':(Js(64.0)/Js(32.0)),'blockSize':(Js(64.0)/Js(32.0))}))))
|
|
pass
|
|
pass
|
|
var.get('C').put('DES', var.get('BlockCipher').callprop('_createHelper', var.get('DES')))
|
|
@Js
|
|
def PyJs__doReset_1311_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, '_doReset':PyJs__doReset_1311_}, var)
|
|
var.registers(['keyWords', 'key'])
|
|
var.put('key', var.get(u"this").get('_key'))
|
|
var.put('keyWords', var.get('key').get('words'))
|
|
var.get(u"this").put('_des1', var.get('DES').callprop('createEncryptor', var.get('WordArray').callprop('create', var.get('keyWords').callprop('slice', Js(0.0), Js(2.0)))))
|
|
var.get(u"this").put('_des2', var.get('DES').callprop('createEncryptor', var.get('WordArray').callprop('create', var.get('keyWords').callprop('slice', Js(2.0), Js(4.0)))))
|
|
var.get(u"this").put('_des3', var.get('DES').callprop('createEncryptor', var.get('WordArray').callprop('create', var.get('keyWords').callprop('slice', Js(4.0), Js(6.0)))))
|
|
PyJs__doReset_1311_._set_name('_doReset')
|
|
@Js
|
|
def PyJs_encryptBlock_1312_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, 'encryptBlock':PyJs_encryptBlock_1312_}, var)
|
|
var.registers(['offset', 'M'])
|
|
var.get(u"this").get('_des1').callprop('encryptBlock', var.get('M'), var.get('offset'))
|
|
var.get(u"this").get('_des2').callprop('decryptBlock', var.get('M'), var.get('offset'))
|
|
var.get(u"this").get('_des3').callprop('encryptBlock', var.get('M'), var.get('offset'))
|
|
PyJs_encryptBlock_1312_._set_name('encryptBlock')
|
|
@Js
|
|
def PyJs_decryptBlock_1313_(M, offset, this, arguments, var=var):
|
|
var = Scope({'M':M, 'offset':offset, 'this':this, 'arguments':arguments, 'decryptBlock':PyJs_decryptBlock_1313_}, var)
|
|
var.registers(['offset', 'M'])
|
|
var.get(u"this").get('_des3').callprop('decryptBlock', var.get('M'), var.get('offset'))
|
|
var.get(u"this").get('_des2').callprop('encryptBlock', var.get('M'), var.get('offset'))
|
|
var.get(u"this").get('_des1').callprop('decryptBlock', var.get('M'), var.get('offset'))
|
|
PyJs_decryptBlock_1313_._set_name('decryptBlock')
|
|
var.put('TripleDES', var.get('C_algo').put('TripleDES', var.get('BlockCipher').callprop('extend', Js({'_doReset':PyJs__doReset_1311_,'encryptBlock':PyJs_encryptBlock_1312_,'decryptBlock':PyJs_decryptBlock_1313_,'keySize':(Js(192.0)/Js(32.0)),'ivSize':(Js(64.0)/Js(32.0)),'blockSize':(Js(64.0)/Js(32.0))}))))
|
|
var.get('C').put('TripleDES', var.get('BlockCipher').callprop('_createHelper', var.get('TripleDES')))
|
|
PyJs_anonymous_1306_._set_name('anonymous')
|
|
PyJs_anonymous_1306_()
|
|
return var.get('CryptoJS').get('TripleDES')
|
|
PyJs_anonymous_1305_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1314_(root, factory, undef, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'undef':undef, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['undef', 'root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')), var.get('require')(Js('./enc-base64')), var.get('require')(Js('./md5')), var.get('require')(Js('./evpkdf')), var.get('require')(Js('./cipher-core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core'), Js('./enc-base64'), Js('./md5'), Js('./evpkdf'), Js('./cipher-core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1314_._set_name('anonymous')
|
|
PyJs_anonymous_1314_(var.get(u"this"), PyJs_anonymous_1305_)
|
|
PyJs_anonymous_1304_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1315_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1316_(CryptoJS, this, arguments, var=var):
|
|
var = Scope({'CryptoJS':CryptoJS, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['CryptoJS'])
|
|
@Js
|
|
def PyJs_anonymous_1317_(undefined, this, arguments, var=var):
|
|
var = Scope({'undefined':undefined, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['C_lib', 'C', 'undefined', 'C_x64', 'X32WordArray', 'X64Word', 'Base', 'X64WordArray'])
|
|
var.put('C', var.get('CryptoJS'))
|
|
var.put('C_lib', var.get('C').get('lib'))
|
|
var.put('Base', var.get('C_lib').get('Base'))
|
|
var.put('X32WordArray', var.get('C_lib').get('WordArray'))
|
|
var.put('C_x64', var.get('C').put('x64', Js({})))
|
|
@Js
|
|
def PyJs_init_1318_(high, low, this, arguments, var=var):
|
|
var = Scope({'high':high, 'low':low, 'this':this, 'arguments':arguments, 'init':PyJs_init_1318_}, var)
|
|
var.registers(['low', 'high'])
|
|
var.get(u"this").put('high', var.get('high'))
|
|
var.get(u"this").put('low', var.get('low'))
|
|
PyJs_init_1318_._set_name('init')
|
|
var.put('X64Word', var.get('C_x64').put('Word', var.get('Base').callprop('extend', Js({'init':PyJs_init_1318_}))))
|
|
@Js
|
|
def PyJs_init_1319_(words, sigBytes, this, arguments, var=var):
|
|
var = Scope({'words':words, 'sigBytes':sigBytes, 'this':this, 'arguments':arguments, 'init':PyJs_init_1319_}, var)
|
|
var.registers(['sigBytes', 'words'])
|
|
var.put('words', var.get(u"this").put('words', (var.get('words') or Js([]))))
|
|
if (var.get('sigBytes')!=var.get('undefined')):
|
|
var.get(u"this").put('sigBytes', var.get('sigBytes'))
|
|
else:
|
|
var.get(u"this").put('sigBytes', (var.get('words').get('length')*Js(8.0)))
|
|
PyJs_init_1319_._set_name('init')
|
|
@Js
|
|
def PyJs_toX32_1320_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'toX32':PyJs_toX32_1320_}, var)
|
|
var.registers(['i', 'x64Words', 'x64Word', 'x64WordsLength', 'x32Words'])
|
|
var.put('x64Words', var.get(u"this").get('words'))
|
|
var.put('x64WordsLength', var.get('x64Words').get('length'))
|
|
var.put('x32Words', Js([]))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('x64WordsLength')):
|
|
try:
|
|
var.put('x64Word', var.get('x64Words').get(var.get('i')))
|
|
var.get('x32Words').callprop('push', var.get('x64Word').get('high'))
|
|
var.get('x32Words').callprop('push', var.get('x64Word').get('low'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('X32WordArray').callprop('create', var.get('x32Words'), var.get(u"this").get('sigBytes'))
|
|
PyJs_toX32_1320_._set_name('toX32')
|
|
@Js
|
|
def PyJs_clone_1321_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'clone':PyJs_clone_1321_}, var)
|
|
var.registers(['words', 'i', 'clone', 'wordsLength'])
|
|
var.put('clone', var.get('Base').get('clone').callprop('call', var.get(u"this")))
|
|
var.put('words', var.get('clone').put('words', var.get(u"this").get('words').callprop('slice', Js(0.0))))
|
|
var.put('wordsLength', var.get('words').get('length'))
|
|
#for JS loop
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('wordsLength')):
|
|
try:
|
|
var.get('words').put(var.get('i'), var.get('words').get(var.get('i')).callprop('clone'))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('clone')
|
|
PyJs_clone_1321_._set_name('clone')
|
|
var.put('X64WordArray', var.get('C_x64').put('WordArray', var.get('Base').callprop('extend', Js({'init':PyJs_init_1319_,'toX32':PyJs_toX32_1320_,'clone':PyJs_clone_1321_}))))
|
|
PyJs_anonymous_1317_._set_name('anonymous')
|
|
PyJs_anonymous_1317_()
|
|
return var.get('CryptoJS')
|
|
PyJs_anonymous_1316_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1322_(root, factory, this, arguments, var=var):
|
|
var = Scope({'root':root, 'factory':factory, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['root', 'factory'])
|
|
if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('exports',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('exports'))),Js('object')):
|
|
var.get('module').put('exports', var.put('exports', var.get('factory')(var.get('require')(Js('./core')))))
|
|
else:
|
|
if (PyJsStrictEq(var.get('define',throw=False).typeof(),Js('function')) and var.get('define').get('amd')):
|
|
var.get('define')(Js([Js('./core')]), var.get('factory'))
|
|
else:
|
|
var.get('factory')(var.get('root').get('CryptoJS'))
|
|
PyJs_anonymous_1322_._set_name('anonymous')
|
|
PyJs_anonymous_1322_(var.get(u"this"), PyJs_anonymous_1316_)
|
|
PyJs_anonymous_1315_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1323_(require, module, exports, this, arguments, var=var):
|
|
var = Scope({'require':require, 'module':module, 'exports':exports, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['require', 'module', 'exports'])
|
|
@Js
|
|
def PyJs_anonymous_1324_(PyJsArg_676c6f62616c_, this, arguments, var=var):
|
|
var = Scope({'global':PyJsArg_676c6f62616c_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['global'])
|
|
@Js
|
|
def PyJs_anonymous_1325_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
def PyJs_LONG_1326_(var=var):
|
|
return (var.get('global') if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('global',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('global'))),Js('object')) else (var.get('window') if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('window',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('window'))),Js('object')) else (var.get('self') if PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('self',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('self'))),Js('object')) else var.get(u"this"))))
|
|
@Js
|
|
def PyJs_anonymous_1327_(PyJsArg_676c6f62616c_, this, arguments, var=var):
|
|
var = Scope({'global':PyJsArg_676c6f62616c_, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['GenStateSuspendedYield', '$Symbol', 'GeneratorFunction', 'inModule', 'wrap', 'doneResult', 'NativeIteratorPrototype', 'pushTryEntry', 'GenStateCompleted', 'asyncIteratorSymbol', 'maybeInvokeDelegate', 'values', 'AsyncIterator', 'makeInvokeMethod', 'undefined', 'runtime', 'resetTryEntry', 'defineIteratorMethods', 'iteratorSymbol', 'ContinueSentinel', 'toStringTagSymbol', 'tryCatch', 'IteratorPrototype', 'hasOwn', 'Context', 'global', 'Op', 'Generator', 'GenStateSuspendedStart', 'GeneratorFunctionPrototype', 'GenStateExecuting', 'Gp', 'getProto'])
|
|
@Js
|
|
def PyJsHoisted_wrap_(innerFn, outerFn, self, tryLocsList, this, arguments, var=var):
|
|
var = Scope({'innerFn':innerFn, 'outerFn':outerFn, 'self':self, 'tryLocsList':tryLocsList, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['tryLocsList', 'innerFn', 'generator', 'outerFn', 'self', 'context', 'protoGenerator'])
|
|
var.put('protoGenerator', (var.get('outerFn') if (var.get('outerFn') and var.get('outerFn').get('prototype').instanceof(var.get('Generator'))) else var.get('Generator')))
|
|
var.put('generator', var.get('Object').callprop('create', var.get('protoGenerator').get('prototype')))
|
|
var.put('context', var.get('Context').create((var.get('tryLocsList') or Js([]))))
|
|
var.get('generator').put('_invoke', var.get('makeInvokeMethod')(var.get('innerFn'), var.get('self'), var.get('context')))
|
|
return var.get('generator')
|
|
PyJsHoisted_wrap_.func_name = 'wrap'
|
|
var.put('wrap', PyJsHoisted_wrap_)
|
|
@Js
|
|
def PyJsHoisted_tryCatch_(fn, obj, arg, this, arguments, var=var):
|
|
var = Scope({'fn':fn, 'obj':obj, 'arg':arg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['fn', 'arg', 'obj'])
|
|
try:
|
|
return Js({'type':Js('normal'),'arg':var.get('fn').callprop('call', var.get('obj'), var.get('arg'))})
|
|
except PyJsException as PyJsTempException:
|
|
PyJsHolder_657272_67386478 = var.own.get('err')
|
|
var.force_own_put('err', PyExceptionToJs(PyJsTempException))
|
|
try:
|
|
return Js({'type':Js('throw'),'arg':var.get('err')})
|
|
finally:
|
|
if PyJsHolder_657272_67386478 is not None:
|
|
var.own['err'] = PyJsHolder_657272_67386478
|
|
else:
|
|
del var.own['err']
|
|
del PyJsHolder_657272_67386478
|
|
PyJsHoisted_tryCatch_.func_name = 'tryCatch'
|
|
var.put('tryCatch', PyJsHoisted_tryCatch_)
|
|
@Js
|
|
def PyJsHoisted_Generator_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJsHoisted_Generator_.func_name = 'Generator'
|
|
var.put('Generator', PyJsHoisted_Generator_)
|
|
@Js
|
|
def PyJsHoisted_GeneratorFunction_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJsHoisted_GeneratorFunction_.func_name = 'GeneratorFunction'
|
|
var.put('GeneratorFunction', PyJsHoisted_GeneratorFunction_)
|
|
@Js
|
|
def PyJsHoisted_GeneratorFunctionPrototype_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
pass
|
|
PyJsHoisted_GeneratorFunctionPrototype_.func_name = 'GeneratorFunctionPrototype'
|
|
var.put('GeneratorFunctionPrototype', PyJsHoisted_GeneratorFunctionPrototype_)
|
|
@Js
|
|
def PyJsHoisted_defineIteratorMethods_(prototype, this, arguments, var=var):
|
|
var = Scope({'prototype':prototype, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['prototype'])
|
|
@Js
|
|
def PyJs_anonymous_1329_(method, this, arguments, var=var):
|
|
var = Scope({'method':method, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['method'])
|
|
@Js
|
|
def PyJs_anonymous_1330_(arg, this, arguments, var=var):
|
|
var = Scope({'arg':arg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['arg'])
|
|
return var.get(u"this").callprop('_invoke', var.get('method'), var.get('arg'))
|
|
PyJs_anonymous_1330_._set_name('anonymous')
|
|
var.get('prototype').put(var.get('method'), PyJs_anonymous_1330_)
|
|
PyJs_anonymous_1329_._set_name('anonymous')
|
|
Js([Js('next'), Js('throw'), Js('return')]).callprop('forEach', PyJs_anonymous_1329_)
|
|
PyJsHoisted_defineIteratorMethods_.func_name = 'defineIteratorMethods'
|
|
var.put('defineIteratorMethods', PyJsHoisted_defineIteratorMethods_)
|
|
@Js
|
|
def PyJsHoisted_AsyncIterator_(generator, this, arguments, var=var):
|
|
var = Scope({'generator':generator, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['enqueue', 'generator', 'invoke', 'previousPromise'])
|
|
@Js
|
|
def PyJsHoisted_invoke_(method, arg, resolve, reject, this, arguments, var=var):
|
|
var = Scope({'method':method, 'arg':arg, 'resolve':resolve, 'reject':reject, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['resolve', 'result', 'arg', 'reject', 'record', 'value', 'method'])
|
|
var.put('record', var.get('tryCatch')(var.get('generator').get(var.get('method')), var.get('generator'), var.get('arg')))
|
|
if PyJsStrictEq(var.get('record').get('type'),Js('throw')):
|
|
var.get('reject')(var.get('record').get('arg'))
|
|
else:
|
|
var.put('result', var.get('record').get('arg'))
|
|
var.put('value', var.get('result').get('value'))
|
|
if ((var.get('value') and PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('value',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('value'))),Js('object'))) and var.get('hasOwn').callprop('call', var.get('value'), Js('__await'))):
|
|
@Js
|
|
def PyJs_anonymous_1334_(value, this, arguments, var=var):
|
|
var = Scope({'value':value, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['value'])
|
|
var.get('invoke')(Js('next'), var.get('value'), var.get('resolve'), var.get('reject'))
|
|
PyJs_anonymous_1334_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1335_(err, this, arguments, var=var):
|
|
var = Scope({'err':err, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['err'])
|
|
var.get('invoke')(Js('throw'), var.get('err'), var.get('resolve'), var.get('reject'))
|
|
PyJs_anonymous_1335_._set_name('anonymous')
|
|
return var.get('Promise').callprop('resolve', var.get('value').get('__await')).callprop('then', PyJs_anonymous_1334_, PyJs_anonymous_1335_)
|
|
@Js
|
|
def PyJs_anonymous_1336_(unwrapped, this, arguments, var=var):
|
|
var = Scope({'unwrapped':unwrapped, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['unwrapped'])
|
|
var.get('result').put('value', var.get('unwrapped'))
|
|
var.get('resolve')(var.get('result'))
|
|
PyJs_anonymous_1336_._set_name('anonymous')
|
|
return var.get('Promise').callprop('resolve', var.get('value')).callprop('then', PyJs_anonymous_1336_, var.get('reject'))
|
|
PyJsHoisted_invoke_.func_name = 'invoke'
|
|
var.put('invoke', PyJsHoisted_invoke_)
|
|
@Js
|
|
def PyJsHoisted_enqueue_(method, arg, this, arguments, var=var):
|
|
var = Scope({'method':method, 'arg':arg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['arg', 'method', 'callInvokeWithMethodAndArg'])
|
|
@Js
|
|
def PyJsHoisted_callInvokeWithMethodAndArg_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
@Js
|
|
def PyJs_anonymous_1337_(resolve, reject, this, arguments, var=var):
|
|
var = Scope({'resolve':resolve, 'reject':reject, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['resolve', 'reject'])
|
|
var.get('invoke')(var.get('method'), var.get('arg'), var.get('resolve'), var.get('reject'))
|
|
PyJs_anonymous_1337_._set_name('anonymous')
|
|
return var.get('Promise').create(PyJs_anonymous_1337_)
|
|
PyJsHoisted_callInvokeWithMethodAndArg_.func_name = 'callInvokeWithMethodAndArg'
|
|
var.put('callInvokeWithMethodAndArg', PyJsHoisted_callInvokeWithMethodAndArg_)
|
|
pass
|
|
return var.put('previousPromise', (var.get('previousPromise').callprop('then', var.get('callInvokeWithMethodAndArg'), var.get('callInvokeWithMethodAndArg')) if var.get('previousPromise') else var.get('callInvokeWithMethodAndArg')()))
|
|
PyJsHoisted_enqueue_.func_name = 'enqueue'
|
|
var.put('enqueue', PyJsHoisted_enqueue_)
|
|
pass
|
|
if (PyJsStrictEq(var.get('_typeof')(var.get('global').get('process')),Js('object')) and var.get('global').get('process').get('domain')):
|
|
var.put('invoke', var.get('global').get('process').get('domain').callprop('bind', var.get('invoke')))
|
|
pass
|
|
pass
|
|
var.get(u"this").put('_invoke', var.get('enqueue'))
|
|
PyJsHoisted_AsyncIterator_.func_name = 'AsyncIterator'
|
|
var.put('AsyncIterator', PyJsHoisted_AsyncIterator_)
|
|
@Js
|
|
def PyJsHoisted_makeInvokeMethod_(innerFn, self, context, this, arguments, var=var):
|
|
var = Scope({'innerFn':innerFn, 'self':self, 'context':context, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['state', 'self', 'innerFn', 'context'])
|
|
var.put('state', var.get('GenStateSuspendedStart'))
|
|
@Js
|
|
def PyJs_invoke_1341_(method, arg, this, arguments, var=var):
|
|
var = Scope({'method':method, 'arg':arg, 'this':this, 'arguments':arguments, 'invoke':PyJs_invoke_1341_}, var)
|
|
var.registers(['record', 'delegateResult', 'arg', 'delegate', 'method'])
|
|
if PyJsStrictEq(var.get('state'),var.get('GenStateExecuting')):
|
|
PyJsTempException = JsToPyException(var.get('Error').create(Js('Generator is already running')))
|
|
raise PyJsTempException
|
|
if PyJsStrictEq(var.get('state'),var.get('GenStateCompleted')):
|
|
if PyJsStrictEq(var.get('method'),Js('throw')):
|
|
PyJsTempException = JsToPyException(var.get('arg'))
|
|
raise PyJsTempException
|
|
return var.get('doneResult')()
|
|
var.get('context').put('method', var.get('method'))
|
|
var.get('context').put('arg', var.get('arg'))
|
|
while Js(True):
|
|
var.put('delegate', var.get('context').get('delegate'))
|
|
if var.get('delegate'):
|
|
var.put('delegateResult', var.get('maybeInvokeDelegate')(var.get('delegate'), var.get('context')))
|
|
if var.get('delegateResult'):
|
|
if PyJsStrictEq(var.get('delegateResult'),var.get('ContinueSentinel')):
|
|
continue
|
|
return var.get('delegateResult')
|
|
if PyJsStrictEq(var.get('context').get('method'),Js('next')):
|
|
var.get('context').put('sent', var.get('context').put('_sent', var.get('context').get('arg')))
|
|
else:
|
|
if PyJsStrictEq(var.get('context').get('method'),Js('throw')):
|
|
if PyJsStrictEq(var.get('state'),var.get('GenStateSuspendedStart')):
|
|
var.put('state', var.get('GenStateCompleted'))
|
|
PyJsTempException = JsToPyException(var.get('context').get('arg'))
|
|
raise PyJsTempException
|
|
var.get('context').callprop('dispatchException', var.get('context').get('arg'))
|
|
else:
|
|
if PyJsStrictEq(var.get('context').get('method'),Js('return')):
|
|
var.get('context').callprop('abrupt', Js('return'), var.get('context').get('arg'))
|
|
var.put('state', var.get('GenStateExecuting'))
|
|
var.put('record', var.get('tryCatch')(var.get('innerFn'), var.get('self'), var.get('context')))
|
|
if PyJsStrictEq(var.get('record').get('type'),Js('normal')):
|
|
var.put('state', (var.get('GenStateCompleted') if var.get('context').get('done') else var.get('GenStateSuspendedYield')))
|
|
if PyJsStrictEq(var.get('record').get('arg'),var.get('ContinueSentinel')):
|
|
continue
|
|
return Js({'value':var.get('record').get('arg'),'done':var.get('context').get('done')})
|
|
else:
|
|
if PyJsStrictEq(var.get('record').get('type'),Js('throw')):
|
|
var.put('state', var.get('GenStateCompleted'))
|
|
var.get('context').put('method', Js('throw'))
|
|
var.get('context').put('arg', var.get('record').get('arg'))
|
|
PyJs_invoke_1341_._set_name('invoke')
|
|
return PyJs_invoke_1341_
|
|
PyJsHoisted_makeInvokeMethod_.func_name = 'makeInvokeMethod'
|
|
var.put('makeInvokeMethod', PyJsHoisted_makeInvokeMethod_)
|
|
@Js
|
|
def PyJsHoisted_maybeInvokeDelegate_(delegate, context, this, arguments, var=var):
|
|
var = Scope({'delegate':delegate, 'context':context, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['info', 'delegate', 'context', 'record', 'method'])
|
|
var.put('method', var.get('delegate').get('iterator').get(var.get('context').get('method')))
|
|
if PyJsStrictEq(var.get('method'),var.get('undefined')):
|
|
var.get('context').put('delegate', var.get(u"null"))
|
|
if PyJsStrictEq(var.get('context').get('method'),Js('throw')):
|
|
if var.get('delegate').get('iterator').get('return'):
|
|
var.get('context').put('method', Js('return'))
|
|
var.get('context').put('arg', var.get('undefined'))
|
|
var.get('maybeInvokeDelegate')(var.get('delegate'), var.get('context'))
|
|
if PyJsStrictEq(var.get('context').get('method'),Js('throw')):
|
|
return var.get('ContinueSentinel')
|
|
var.get('context').put('method', Js('throw'))
|
|
var.get('context').put('arg', var.get('TypeError').create(Js("The iterator does not provide a 'throw' method")))
|
|
return var.get('ContinueSentinel')
|
|
var.put('record', var.get('tryCatch')(var.get('method'), var.get('delegate').get('iterator'), var.get('context').get('arg')))
|
|
if PyJsStrictEq(var.get('record').get('type'),Js('throw')):
|
|
var.get('context').put('method', Js('throw'))
|
|
var.get('context').put('arg', var.get('record').get('arg'))
|
|
var.get('context').put('delegate', var.get(u"null"))
|
|
return var.get('ContinueSentinel')
|
|
var.put('info', var.get('record').get('arg'))
|
|
if var.get('info').neg():
|
|
var.get('context').put('method', Js('throw'))
|
|
var.get('context').put('arg', var.get('TypeError').create(Js('iterator result is not an object')))
|
|
var.get('context').put('delegate', var.get(u"null"))
|
|
return var.get('ContinueSentinel')
|
|
if var.get('info').get('done'):
|
|
var.get('context').put(var.get('delegate').get('resultName'), var.get('info').get('value'))
|
|
var.get('context').put('next', var.get('delegate').get('nextLoc'))
|
|
if PyJsStrictNeq(var.get('context').get('method'),Js('return')):
|
|
var.get('context').put('method', Js('next'))
|
|
var.get('context').put('arg', var.get('undefined'))
|
|
else:
|
|
return var.get('info')
|
|
var.get('context').put('delegate', var.get(u"null"))
|
|
return var.get('ContinueSentinel')
|
|
PyJsHoisted_maybeInvokeDelegate_.func_name = 'maybeInvokeDelegate'
|
|
var.put('maybeInvokeDelegate', PyJsHoisted_maybeInvokeDelegate_)
|
|
@Js
|
|
def PyJsHoisted_pushTryEntry_(locs, this, arguments, var=var):
|
|
var = Scope({'locs':locs, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['entry', 'locs'])
|
|
var.put('entry', Js({'tryLoc':var.get('locs').get('0')}))
|
|
if var.get('locs').contains(Js(1.0)):
|
|
var.get('entry').put('catchLoc', var.get('locs').get('1'))
|
|
if var.get('locs').contains(Js(2.0)):
|
|
var.get('entry').put('finallyLoc', var.get('locs').get('2'))
|
|
var.get('entry').put('afterLoc', var.get('locs').get('3'))
|
|
var.get(u"this").get('tryEntries').callprop('push', var.get('entry'))
|
|
PyJsHoisted_pushTryEntry_.func_name = 'pushTryEntry'
|
|
var.put('pushTryEntry', PyJsHoisted_pushTryEntry_)
|
|
@Js
|
|
def PyJsHoisted_resetTryEntry_(entry, this, arguments, var=var):
|
|
var = Scope({'entry':entry, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['entry', 'record'])
|
|
var.put('record', (var.get('entry').get('completion') or Js({})))
|
|
var.get('record').put('type', Js('normal'))
|
|
var.get('record').delete('arg')
|
|
var.get('entry').put('completion', var.get('record'))
|
|
PyJsHoisted_resetTryEntry_.func_name = 'resetTryEntry'
|
|
var.put('resetTryEntry', PyJsHoisted_resetTryEntry_)
|
|
@Js
|
|
def PyJsHoisted_Context_(tryLocsList, this, arguments, var=var):
|
|
var = Scope({'tryLocsList':tryLocsList, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['tryLocsList'])
|
|
var.get(u"this").put('tryEntries', Js([Js({'tryLoc':Js('root')})]))
|
|
var.get('tryLocsList').callprop('forEach', var.get('pushTryEntry'), var.get(u"this"))
|
|
var.get(u"this").callprop('reset', Js(True))
|
|
PyJsHoisted_Context_.func_name = 'Context'
|
|
var.put('Context', PyJsHoisted_Context_)
|
|
@Js
|
|
def PyJsHoisted_values_(iterable, this, arguments, var=var):
|
|
var = Scope({'iterable':iterable, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['i', 'iterable', 'iteratorMethod', 'next'])
|
|
if var.get('iterable'):
|
|
var.put('iteratorMethod', var.get('iterable').get(var.get('iteratorSymbol')))
|
|
if var.get('iteratorMethod'):
|
|
return var.get('iteratorMethod').callprop('call', var.get('iterable'))
|
|
if PyJsStrictEq(var.get('iterable').get('next').typeof(),Js('function')):
|
|
return var.get('iterable')
|
|
if var.get('isNaN')(var.get('iterable').get('length')).neg():
|
|
var.put('i', (-Js(1.0)))
|
|
@Js
|
|
def PyJs_next_1346_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'next':PyJs_next_1346_}, var)
|
|
var.registers([])
|
|
while (var.put('i',Js(var.get('i').to_number())+Js(1))<var.get('iterable').get('length')):
|
|
if var.get('hasOwn').callprop('call', var.get('iterable'), var.get('i')):
|
|
var.get('next').put('value', var.get('iterable').get(var.get('i')))
|
|
var.get('next').put('done', Js(False))
|
|
return var.get('next')
|
|
var.get('next').put('value', var.get('undefined'))
|
|
var.get('next').put('done', Js(True))
|
|
return var.get('next')
|
|
PyJs_next_1346_._set_name('next')
|
|
var.put('next', PyJs_next_1346_)
|
|
return var.get('next').put('next', var.get('next'))
|
|
return Js({'next':var.get('doneResult')})
|
|
PyJsHoisted_values_.func_name = 'values'
|
|
var.put('values', PyJsHoisted_values_)
|
|
@Js
|
|
def PyJsHoisted_doneResult_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return Js({'value':var.get('undefined'),'done':Js(True)})
|
|
PyJsHoisted_doneResult_.func_name = 'doneResult'
|
|
var.put('doneResult', PyJsHoisted_doneResult_)
|
|
Js('use strict')
|
|
var.put('Op', var.get('Object').get('prototype'))
|
|
var.put('hasOwn', var.get('Op').get('hasOwnProperty'))
|
|
pass
|
|
var.put('$Symbol', (var.get('Symbol') if PyJsStrictEq(var.get('Symbol',throw=False).typeof(),Js('function')) else Js({})))
|
|
var.put('iteratorSymbol', (var.get('$Symbol').get('iterator') or Js('@@iterator')))
|
|
var.put('asyncIteratorSymbol', (var.get('$Symbol').get('asyncIterator') or Js('@@asyncIterator')))
|
|
var.put('toStringTagSymbol', (var.get('$Symbol').get('toStringTag') or Js('@@toStringTag')))
|
|
var.put('inModule', PyJsStrictEq((Js('undefined') if PyJsStrictEq(var.get('module',throw=False).typeof(),Js('undefined')) else var.get('_typeof')(var.get('module'))),Js('object')))
|
|
var.put('runtime', var.get('global').get('regeneratorRuntime'))
|
|
if var.get('runtime'):
|
|
if var.get('inModule'):
|
|
var.get('module').put('exports', var.get('runtime'))
|
|
return var.get('undefined')
|
|
var.put('runtime', var.get('global').put('regeneratorRuntime', (var.get('module').get('exports') if var.get('inModule') else Js({}))))
|
|
pass
|
|
var.get('runtime').put('wrap', var.get('wrap'))
|
|
pass
|
|
var.put('GenStateSuspendedStart', Js('suspendedStart'))
|
|
var.put('GenStateSuspendedYield', Js('suspendedYield'))
|
|
var.put('GenStateExecuting', Js('executing'))
|
|
var.put('GenStateCompleted', Js('completed'))
|
|
var.put('ContinueSentinel', Js({}))
|
|
pass
|
|
pass
|
|
pass
|
|
var.put('IteratorPrototype', Js({}))
|
|
@Js
|
|
def PyJs_anonymous_1328_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get(u"this")
|
|
PyJs_anonymous_1328_._set_name('anonymous')
|
|
var.get('IteratorPrototype').put(var.get('iteratorSymbol'), PyJs_anonymous_1328_)
|
|
var.put('getProto', var.get('Object').get('getPrototypeOf'))
|
|
var.put('NativeIteratorPrototype', (var.get('getProto') and var.get('getProto')(var.get('getProto')(var.get('values')(Js([]))))))
|
|
if ((var.get('NativeIteratorPrototype') and PyJsStrictNeq(var.get('NativeIteratorPrototype'),var.get('Op'))) and var.get('hasOwn').callprop('call', var.get('NativeIteratorPrototype'), var.get('iteratorSymbol'))):
|
|
var.put('IteratorPrototype', var.get('NativeIteratorPrototype'))
|
|
var.put('Gp', var.get('GeneratorFunctionPrototype').put('prototype', var.get('Generator').put('prototype', var.get('Object').callprop('create', var.get('IteratorPrototype')))))
|
|
var.get('GeneratorFunction').put('prototype', var.get('Gp').put('constructor', var.get('GeneratorFunctionPrototype')))
|
|
var.get('GeneratorFunctionPrototype').put('constructor', var.get('GeneratorFunction'))
|
|
var.get('GeneratorFunctionPrototype').put(var.get('toStringTagSymbol'), var.get('GeneratorFunction').put('displayName', Js('GeneratorFunction')))
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1331_(genFun, this, arguments, var=var):
|
|
var = Scope({'genFun':genFun, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['ctor', 'genFun'])
|
|
var.put('ctor', (PyJsStrictEq(var.get('genFun',throw=False).typeof(),Js('function')) and var.get('genFun').get('constructor')))
|
|
return ((PyJsStrictEq(var.get('ctor'),var.get('GeneratorFunction')) or PyJsStrictEq((var.get('ctor').get('displayName') or var.get('ctor').get('name')),Js('GeneratorFunction'))) if var.get('ctor') else Js(False))
|
|
PyJs_anonymous_1331_._set_name('anonymous')
|
|
var.get('runtime').put('isGeneratorFunction', PyJs_anonymous_1331_)
|
|
@Js
|
|
def PyJs_anonymous_1332_(genFun, this, arguments, var=var):
|
|
var = Scope({'genFun':genFun, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['genFun'])
|
|
if var.get('Object').get('setPrototypeOf'):
|
|
var.get('Object').callprop('setPrototypeOf', var.get('genFun'), var.get('GeneratorFunctionPrototype'))
|
|
else:
|
|
var.get('genFun').put('__proto__', var.get('GeneratorFunctionPrototype'))
|
|
if var.get('genFun').contains(var.get('toStringTagSymbol')).neg():
|
|
var.get('genFun').put(var.get('toStringTagSymbol'), Js('GeneratorFunction'))
|
|
var.get('genFun').put('prototype', var.get('Object').callprop('create', var.get('Gp')))
|
|
return var.get('genFun')
|
|
PyJs_anonymous_1332_._set_name('anonymous')
|
|
var.get('runtime').put('mark', PyJs_anonymous_1332_)
|
|
@Js
|
|
def PyJs_anonymous_1333_(arg, this, arguments, var=var):
|
|
var = Scope({'arg':arg, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['arg'])
|
|
return Js({'__await':var.get('arg')})
|
|
PyJs_anonymous_1333_._set_name('anonymous')
|
|
var.get('runtime').put('awrap', PyJs_anonymous_1333_)
|
|
pass
|
|
var.get('defineIteratorMethods')(var.get('AsyncIterator').get('prototype'))
|
|
@Js
|
|
def PyJs_anonymous_1338_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get(u"this")
|
|
PyJs_anonymous_1338_._set_name('anonymous')
|
|
var.get('AsyncIterator').get('prototype').put(var.get('asyncIteratorSymbol'), PyJs_anonymous_1338_)
|
|
var.get('runtime').put('AsyncIterator', var.get('AsyncIterator'))
|
|
@Js
|
|
def PyJs_anonymous_1339_(innerFn, outerFn, self, tryLocsList, this, arguments, var=var):
|
|
var = Scope({'innerFn':innerFn, 'outerFn':outerFn, 'self':self, 'tryLocsList':tryLocsList, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['iter', 'tryLocsList', 'innerFn', 'self', 'outerFn'])
|
|
var.put('iter', var.get('AsyncIterator').create(var.get('wrap')(var.get('innerFn'), var.get('outerFn'), var.get('self'), var.get('tryLocsList'))))
|
|
@Js
|
|
def PyJs_anonymous_1340_(result, this, arguments, var=var):
|
|
var = Scope({'result':result, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['result'])
|
|
return (var.get('result').get('value') if var.get('result').get('done') else var.get('iter').callprop('next'))
|
|
PyJs_anonymous_1340_._set_name('anonymous')
|
|
return (var.get('iter') if var.get('runtime').callprop('isGeneratorFunction', var.get('outerFn')) else var.get('iter').callprop('next').callprop('then', PyJs_anonymous_1340_))
|
|
PyJs_anonymous_1339_._set_name('anonymous')
|
|
var.get('runtime').put('async', PyJs_anonymous_1339_)
|
|
pass
|
|
pass
|
|
var.get('defineIteratorMethods')(var.get('Gp'))
|
|
var.get('Gp').put(var.get('toStringTagSymbol'), Js('Generator'))
|
|
@Js
|
|
def PyJs_anonymous_1342_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return var.get(u"this")
|
|
PyJs_anonymous_1342_._set_name('anonymous')
|
|
var.get('Gp').put(var.get('iteratorSymbol'), PyJs_anonymous_1342_)
|
|
@Js
|
|
def PyJs_anonymous_1343_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers([])
|
|
return Js('[object Generator]')
|
|
PyJs_anonymous_1343_._set_name('anonymous')
|
|
var.get('Gp').put('toString', PyJs_anonymous_1343_)
|
|
pass
|
|
pass
|
|
pass
|
|
@Js
|
|
def PyJs_anonymous_1344_(object, this, arguments, var=var):
|
|
var = Scope({'object':object, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['object', 'key', 'keys'])
|
|
var.put('keys', Js([]))
|
|
for PyJsTemp in var.get('object'):
|
|
var.put('key', PyJsTemp)
|
|
var.get('keys').callprop('push', var.get('key'))
|
|
var.get('keys').callprop('reverse')
|
|
@Js
|
|
def PyJs_next_1345_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'next':PyJs_next_1345_}, var)
|
|
var.registers(['key'])
|
|
while var.get('keys').get('length'):
|
|
var.put('key', var.get('keys').callprop('pop'))
|
|
if var.get('object').contains(var.get('key')):
|
|
var.get('next').put('value', var.get('key'))
|
|
var.get('next').put('done', Js(False))
|
|
return var.get('next')
|
|
var.get('next').put('done', Js(True))
|
|
return var.get('next')
|
|
PyJs_next_1345_._set_name('next')
|
|
return PyJs_next_1345_
|
|
PyJs_anonymous_1344_._set_name('anonymous')
|
|
var.get('runtime').put('keys', PyJs_anonymous_1344_)
|
|
pass
|
|
var.get('runtime').put('values', var.get('values'))
|
|
pass
|
|
@Js
|
|
def PyJs_reset_1347_(skipTempReset, this, arguments, var=var):
|
|
var = Scope({'skipTempReset':skipTempReset, 'this':this, 'arguments':arguments, 'reset':PyJs_reset_1347_}, var)
|
|
var.registers(['name', 'skipTempReset'])
|
|
var.get(u"this").put('prev', Js(0.0))
|
|
var.get(u"this").put('next', Js(0.0))
|
|
var.get(u"this").put('sent', var.get(u"this").put('_sent', var.get('undefined')))
|
|
var.get(u"this").put('done', Js(False))
|
|
var.get(u"this").put('delegate', var.get(u"null"))
|
|
var.get(u"this").put('method', Js('next'))
|
|
var.get(u"this").put('arg', var.get('undefined'))
|
|
var.get(u"this").get('tryEntries').callprop('forEach', var.get('resetTryEntry'))
|
|
if var.get('skipTempReset').neg():
|
|
for PyJsTemp in var.get(u"this"):
|
|
var.put('name', PyJsTemp)
|
|
if ((PyJsStrictEq(var.get('name').callprop('charAt', Js(0.0)),Js('t')) and var.get('hasOwn').callprop('call', var.get(u"this"), var.get('name'))) and var.get('isNaN')((+var.get('name').callprop('slice', Js(1.0)))).neg()):
|
|
var.get(u"this").put(var.get('name'), var.get('undefined'))
|
|
PyJs_reset_1347_._set_name('reset')
|
|
@Js
|
|
def PyJs_stop_1348_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments, 'stop':PyJs_stop_1348_}, var)
|
|
var.registers(['rootEntry', 'rootRecord'])
|
|
var.get(u"this").put('done', Js(True))
|
|
var.put('rootEntry', var.get(u"this").get('tryEntries').get('0'))
|
|
var.put('rootRecord', var.get('rootEntry').get('completion'))
|
|
if PyJsStrictEq(var.get('rootRecord').get('type'),Js('throw')):
|
|
PyJsTempException = JsToPyException(var.get('rootRecord').get('arg'))
|
|
raise PyJsTempException
|
|
return var.get(u"this").get('rval')
|
|
PyJs_stop_1348_._set_name('stop')
|
|
@Js
|
|
def PyJs_dispatchException_1349_(exception, this, arguments, var=var):
|
|
var = Scope({'exception':exception, 'this':this, 'arguments':arguments, 'dispatchException':PyJs_dispatchException_1349_}, var)
|
|
var.registers(['record', 'i', 'exception', 'hasCatch', 'hasFinally', 'context', 'entry', 'handle'])
|
|
@Js
|
|
def PyJsHoisted_handle_(loc, caught, this, arguments, var=var):
|
|
var = Scope({'loc':loc, 'caught':caught, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['loc', 'caught'])
|
|
var.get('record').put('type', Js('throw'))
|
|
var.get('record').put('arg', var.get('exception'))
|
|
var.get('context').put('next', var.get('loc'))
|
|
if var.get('caught'):
|
|
var.get('context').put('method', Js('next'))
|
|
var.get('context').put('arg', var.get('undefined'))
|
|
return var.get('caught').neg().neg()
|
|
PyJsHoisted_handle_.func_name = 'handle'
|
|
var.put('handle', PyJsHoisted_handle_)
|
|
if var.get(u"this").get('done'):
|
|
PyJsTempException = JsToPyException(var.get('exception'))
|
|
raise PyJsTempException
|
|
var.put('context', var.get(u"this"))
|
|
pass
|
|
#for JS loop
|
|
var.put('i', (var.get(u"this").get('tryEntries').get('length')-Js(1.0)))
|
|
while (var.get('i')>=Js(0.0)):
|
|
try:
|
|
var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i')))
|
|
var.put('record', var.get('entry').get('completion'))
|
|
if PyJsStrictEq(var.get('entry').get('tryLoc'),Js('root')):
|
|
return var.get('handle')(Js('end'))
|
|
if (var.get('entry').get('tryLoc')<=var.get(u"this").get('prev')):
|
|
var.put('hasCatch', var.get('hasOwn').callprop('call', var.get('entry'), Js('catchLoc')))
|
|
var.put('hasFinally', var.get('hasOwn').callprop('call', var.get('entry'), Js('finallyLoc')))
|
|
if (var.get('hasCatch') and var.get('hasFinally')):
|
|
if (var.get(u"this").get('prev')<var.get('entry').get('catchLoc')):
|
|
return var.get('handle')(var.get('entry').get('catchLoc'), Js(True))
|
|
else:
|
|
if (var.get(u"this").get('prev')<var.get('entry').get('finallyLoc')):
|
|
return var.get('handle')(var.get('entry').get('finallyLoc'))
|
|
else:
|
|
if var.get('hasCatch'):
|
|
if (var.get(u"this").get('prev')<var.get('entry').get('catchLoc')):
|
|
return var.get('handle')(var.get('entry').get('catchLoc'), Js(True))
|
|
else:
|
|
if var.get('hasFinally'):
|
|
if (var.get(u"this").get('prev')<var.get('entry').get('finallyLoc')):
|
|
return var.get('handle')(var.get('entry').get('finallyLoc'))
|
|
else:
|
|
PyJsTempException = JsToPyException(var.get('Error').create(Js('try statement without catch or finally')))
|
|
raise PyJsTempException
|
|
finally:
|
|
var.put('i',Js(var.get('i').to_number())-Js(1))
|
|
PyJs_dispatchException_1349_._set_name('dispatchException')
|
|
@Js
|
|
def PyJs_abrupt_1350_(type, arg, this, arguments, var=var):
|
|
var = Scope({'type':type, 'arg':arg, 'this':this, 'arguments':arguments, 'abrupt':PyJs_abrupt_1350_}, var)
|
|
var.registers(['record', 'finallyEntry', 'i', 'type', 'arg', 'entry'])
|
|
#for JS loop
|
|
var.put('i', (var.get(u"this").get('tryEntries').get('length')-Js(1.0)))
|
|
while (var.get('i')>=Js(0.0)):
|
|
try:
|
|
var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i')))
|
|
if (((var.get('entry').get('tryLoc')<=var.get(u"this").get('prev')) and var.get('hasOwn').callprop('call', var.get('entry'), Js('finallyLoc'))) and (var.get(u"this").get('prev')<var.get('entry').get('finallyLoc'))):
|
|
var.put('finallyEntry', var.get('entry'))
|
|
break
|
|
finally:
|
|
var.put('i',Js(var.get('i').to_number())-Js(1))
|
|
if (((var.get('finallyEntry') and (PyJsStrictEq(var.get('type'),Js('break')) or PyJsStrictEq(var.get('type'),Js('continue')))) and (var.get('finallyEntry').get('tryLoc')<=var.get('arg'))) and (var.get('arg')<=var.get('finallyEntry').get('finallyLoc'))):
|
|
var.put('finallyEntry', var.get(u"null"))
|
|
var.put('record', (var.get('finallyEntry').get('completion') if var.get('finallyEntry') else Js({})))
|
|
var.get('record').put('type', var.get('type'))
|
|
var.get('record').put('arg', var.get('arg'))
|
|
if var.get('finallyEntry'):
|
|
var.get(u"this").put('method', Js('next'))
|
|
var.get(u"this").put('next', var.get('finallyEntry').get('finallyLoc'))
|
|
return var.get('ContinueSentinel')
|
|
return var.get(u"this").callprop('complete', var.get('record'))
|
|
PyJs_abrupt_1350_._set_name('abrupt')
|
|
@Js
|
|
def PyJs_complete_1351_(record, afterLoc, this, arguments, var=var):
|
|
var = Scope({'record':record, 'afterLoc':afterLoc, 'this':this, 'arguments':arguments, 'complete':PyJs_complete_1351_}, var)
|
|
var.registers(['record', 'afterLoc'])
|
|
if PyJsStrictEq(var.get('record').get('type'),Js('throw')):
|
|
PyJsTempException = JsToPyException(var.get('record').get('arg'))
|
|
raise PyJsTempException
|
|
if (PyJsStrictEq(var.get('record').get('type'),Js('break')) or PyJsStrictEq(var.get('record').get('type'),Js('continue'))):
|
|
var.get(u"this").put('next', var.get('record').get('arg'))
|
|
else:
|
|
if PyJsStrictEq(var.get('record').get('type'),Js('return')):
|
|
var.get(u"this").put('rval', var.get(u"this").put('arg', var.get('record').get('arg')))
|
|
var.get(u"this").put('method', Js('return'))
|
|
var.get(u"this").put('next', Js('end'))
|
|
else:
|
|
if (PyJsStrictEq(var.get('record').get('type'),Js('normal')) and var.get('afterLoc')):
|
|
var.get(u"this").put('next', var.get('afterLoc'))
|
|
return var.get('ContinueSentinel')
|
|
PyJs_complete_1351_._set_name('complete')
|
|
@Js
|
|
def PyJs_finish_1352_(finallyLoc, this, arguments, var=var):
|
|
var = Scope({'finallyLoc':finallyLoc, 'this':this, 'arguments':arguments, 'finish':PyJs_finish_1352_}, var)
|
|
var.registers(['entry', 'i', 'finallyLoc'])
|
|
#for JS loop
|
|
var.put('i', (var.get(u"this").get('tryEntries').get('length')-Js(1.0)))
|
|
while (var.get('i')>=Js(0.0)):
|
|
try:
|
|
var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i')))
|
|
if PyJsStrictEq(var.get('entry').get('finallyLoc'),var.get('finallyLoc')):
|
|
var.get(u"this").callprop('complete', var.get('entry').get('completion'), var.get('entry').get('afterLoc'))
|
|
var.get('resetTryEntry')(var.get('entry'))
|
|
return var.get('ContinueSentinel')
|
|
finally:
|
|
var.put('i',Js(var.get('i').to_number())-Js(1))
|
|
PyJs_finish_1352_._set_name('finish')
|
|
@Js
|
|
def PyJs__catch_1353_(tryLoc, this, arguments, var=var):
|
|
var = Scope({'tryLoc':tryLoc, 'this':this, 'arguments':arguments, '_catch':PyJs__catch_1353_}, var)
|
|
var.registers(['record', 'tryLoc', 'i', 'thrown', 'entry'])
|
|
#for JS loop
|
|
var.put('i', (var.get(u"this").get('tryEntries').get('length')-Js(1.0)))
|
|
while (var.get('i')>=Js(0.0)):
|
|
try:
|
|
var.put('entry', var.get(u"this").get('tryEntries').get(var.get('i')))
|
|
if PyJsStrictEq(var.get('entry').get('tryLoc'),var.get('tryLoc')):
|
|
var.put('record', var.get('entry').get('completion'))
|
|
if PyJsStrictEq(var.get('record').get('type'),Js('throw')):
|
|
var.put('thrown', var.get('record').get('arg'))
|
|
var.get('resetTryEntry')(var.get('entry'))
|
|
return var.get('thrown')
|
|
finally:
|
|
var.put('i',Js(var.get('i').to_number())-Js(1))
|
|
PyJsTempException = JsToPyException(var.get('Error').create(Js('illegal catch attempt')))
|
|
raise PyJsTempException
|
|
PyJs__catch_1353_._set_name('_catch')
|
|
@Js
|
|
def PyJs_delegateYield_1354_(iterable, resultName, nextLoc, this, arguments, var=var):
|
|
var = Scope({'iterable':iterable, 'resultName':resultName, 'nextLoc':nextLoc, 'this':this, 'arguments':arguments, 'delegateYield':PyJs_delegateYield_1354_}, var)
|
|
var.registers(['resultName', 'iterable', 'nextLoc'])
|
|
var.get(u"this").put('delegate', Js({'iterator':var.get('values')(var.get('iterable')),'resultName':var.get('resultName'),'nextLoc':var.get('nextLoc')}))
|
|
if PyJsStrictEq(var.get(u"this").get('method'),Js('next')):
|
|
var.get(u"this").put('arg', var.get('undefined'))
|
|
return var.get('ContinueSentinel')
|
|
PyJs_delegateYield_1354_._set_name('delegateYield')
|
|
var.get('Context').put('prototype', Js({'constructor':var.get('Context'),'reset':PyJs_reset_1347_,'stop':PyJs_stop_1348_,'dispatchException':PyJs_dispatchException_1349_,'abrupt':PyJs_abrupt_1350_,'complete':PyJs_complete_1351_,'finish':PyJs_finish_1352_,'catch':PyJs__catch_1353_,'delegateYield':PyJs_delegateYield_1354_}))
|
|
PyJs_anonymous_1327_._set_name('anonymous')
|
|
PyJs_anonymous_1327_(PyJs_LONG_1326_()).neg()
|
|
PyJs_anonymous_1325_._set_name('anonymous')
|
|
PyJs_anonymous_1325_.callprop('call', var.get(u"this"))
|
|
PyJs_anonymous_1324_._set_name('anonymous')
|
|
PyJs_anonymous_1324_.callprop('call', var.get(u"this"), (var.get('global') if PyJsStrictNeq(var.get('global',throw=False).typeof(),Js('undefined')) else (var.get('self') if PyJsStrictNeq(var.get('self',throw=False).typeof(),Js('undefined')) else (var.get('window') if PyJsStrictNeq(var.get('window',throw=False).typeof(),Js('undefined')) else Js({})))))
|
|
PyJs_anonymous_1323_._set_name('anonymous')
|
|
@Js
|
|
def PyJs_anonymous_1355_(this, arguments, var=var):
|
|
var = Scope({'this':this, 'arguments':arguments}, var)
|
|
var.registers(['r'])
|
|
@Js
|
|
def PyJsHoisted_r_(e, n, t, this, arguments, var=var):
|
|
var = Scope({'e':e, 'n':n, 't':t, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['n', 'u', 'i', 't', 'o', 'e'])
|
|
@Js
|
|
def PyJsHoisted_o_(i, f, this, arguments, var=var):
|
|
var = Scope({'i':i, 'f':f, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['f', 'i', 'a', 'p', 'c'])
|
|
if var.get('n').get(var.get('i')).neg():
|
|
if var.get('e').get(var.get('i')).neg():
|
|
var.put('c', ((Js('function')==var.get('require',throw=False).typeof()) and var.get('require')))
|
|
if (var.get('f').neg() and var.get('c')):
|
|
return var.get('c')(var.get('i'), Js(0.0).neg())
|
|
if var.get('u'):
|
|
return var.get('u')(var.get('i'), Js(0.0).neg())
|
|
var.put('a', var.get('Error').create(((Js("Cannot find module '")+var.get('i'))+Js("'"))))
|
|
PyJsTempException = JsToPyException(PyJsComma(var.get('a').put('code', Js('MODULE_NOT_FOUND')),var.get('a')))
|
|
raise PyJsTempException
|
|
var.put('p', var.get('n').put(var.get('i'), Js({'exports':Js({})})))
|
|
@Js
|
|
def PyJs_anonymous_1356_(r, this, arguments, var=var):
|
|
var = Scope({'r':r, 'this':this, 'arguments':arguments}, var)
|
|
var.registers(['n', 'r'])
|
|
var.put('n', var.get('e').get(var.get('i')).get('1').get(var.get('r')))
|
|
return var.get('o')((var.get('n') or var.get('r')))
|
|
PyJs_anonymous_1356_._set_name('anonymous')
|
|
var.get('e').get(var.get('i')).get('0').callprop('call', var.get('p').get('exports'), PyJs_anonymous_1356_, var.get('p'), var.get('p').get('exports'), var.get('r'), var.get('e'), var.get('n'), var.get('t'))
|
|
return var.get('n').get(var.get('i')).get('exports')
|
|
PyJsHoisted_o_.func_name = 'o'
|
|
var.put('o', PyJsHoisted_o_)
|
|
pass
|
|
#for JS loop
|
|
var.put('u', ((Js('function')==var.get('require',throw=False).typeof()) and var.get('require')))
|
|
var.put('i', Js(0.0))
|
|
while (var.get('i')<var.get('t').get('length')):
|
|
try:
|
|
var.get('o')(var.get('t').get(var.get('i')))
|
|
finally:
|
|
(var.put('i',Js(var.get('i').to_number())+Js(1))-Js(1))
|
|
return var.get('o')
|
|
PyJsHoisted_r_.func_name = 'r'
|
|
var.put('r', PyJsHoisted_r_)
|
|
pass
|
|
return var.get('r')
|
|
PyJs_anonymous_1355_._set_name('anonymous')
|
|
return PyJs_anonymous_1355_()(Js({'1':Js([PyJs_anonymous_2_, Js({'babel-polyfill':Js(2.0),'crypto-js':Js(340.0)})]),'2':Js([PyJs_anonymous_3_, Js({'core-js/fn/regexp/escape':Js(3.0),'core-js/shim':Js(331.0),'regenerator-runtime/runtime':Js(366.0)})]),'3':Js([PyJs_anonymous_7_, Js({'../../modules/_core':Js(25.0),'../../modules/core.regexp.escape':Js(133.0)})]),'4':Js([PyJs_anonymous_8_, Js({})]),'5':Js([PyJs_anonymous_10_, Js({'./_cof':Js(20.0)})]),'6':Js([PyJs_anonymous_12_, Js({'./_hide':Js(45.0),'./_wks':Js(131.0)})]),'7':Js([PyJs_anonymous_14_, Js({'./_string-at':Js(108.0)})]),'8':Js([PyJs_anonymous_16_, Js({})]),'9':Js([PyJs_anonymous_18_, Js({'./_is-object':Js(54.0)})]),'10':Js([PyJs_anonymous_20_, Js({'./_to-absolute-index':Js(116.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0)})]),'11':Js([PyJs_anonymous_22_, Js({'./_to-absolute-index':Js(116.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0)})]),'12':Js([PyJs_anonymous_24_, Js({'./_for-of':Js(41.0)})]),'13':Js([PyJs_anonymous_26_, Js({'./_to-absolute-index':Js(116.0),'./_to-iobject':Js(119.0),'./_to-length':Js(120.0)})]),'14':Js([PyJs_anonymous_29_, Js({'./_array-species-create':Js(17.0),'./_ctx':Js(27.0),'./_iobject':Js(50.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0)})]),'15':Js([PyJs_anonymous_32_, Js({'./_a-function':Js(4.0),'./_iobject':Js(50.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0)})]),'16':Js([PyJs_anonymous_34_, Js({'./_is-array':Js(52.0),'./_is-object':Js(54.0),'./_wks':Js(131.0)})]),'17':Js([PyJs_anonymous_36_, Js({'./_array-species-constructor':Js(16.0)})]),'18':Js([PyJs_anonymous_38_, Js({'./_a-function':Js(4.0),'./_invoke':Js(49.0),'./_is-object':Js(54.0)})]),'19':Js([PyJs_anonymous_42_, Js({'./_cof':Js(20.0),'./_wks':Js(131.0)})]),'20':Js([PyJs_anonymous_47_, Js({})]),'21':Js([PyJs_anonymous_49_, Js({'./_an-instance':Js(8.0),'./_ctx':Js(27.0),'./_descriptors':Js(31.0),'./_for-of':Js(41.0),'./_iter-define':Js(58.0),'./_iter-step':Js(60.0),'./_meta':Js(68.0),'./_object-create':Js(73.0),'./_object-dp':Js(74.0),'./_redefine-all':Js(93.0),'./_set-species':Js(102.0),'./_validate-collection':Js(128.0)})]),'22':Js([PyJs_anonymous_62_, Js({'./_array-from-iterable':Js(12.0),'./_classof':Js(19.0)})]),'23':Js([PyJs_anonymous_65_, Js({'./_an-instance':Js(8.0),'./_an-object':Js(9.0),'./_array-methods':Js(14.0),'./_for-of':Js(41.0),'./_has':Js(44.0),'./_is-object':Js(54.0),'./_meta':Js(68.0),'./_redefine-all':Js(93.0),'./_validate-collection':Js(128.0)})]),'24':Js([PyJs_anonymous_80_, Js({'./_an-instance':Js(8.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_for-of':Js(41.0),'./_global':Js(43.0),'./_inherit-if-required':Js(48.0),'./_is-object':Js(54.0),'./_iter-detect':Js(59.0),'./_meta':Js(68.0),'./_redefine':Js(94.0),'./_redefine-all':Js(93.0),'./_set-to-string-tag':Js(103.0)})]),'25':Js([PyJs_anonymous_93_, Js({})]),'26':Js([PyJs_anonymous_94_, Js({'./_object-dp':Js(74.0),'./_property-desc':Js(92.0)})]),'27':Js([PyJs_anonymous_96_, Js({'./_a-function':Js(4.0)})]),'28':Js([PyJs_anonymous_102_, Js({'./_fails':Js(37.0)})]),'29':Js([PyJs_anonymous_108_, Js({'./_an-object':Js(9.0),'./_to-primitive':Js(122.0)})]),'30':Js([PyJs_anonymous_110_, Js({})]),'31':Js([PyJs_anonymous_112_, Js({'./_fails':Js(37.0)})]),'32':Js([PyJs_anonymous_115_, Js({'./_global':Js(43.0),'./_is-object':Js(54.0)})]),'33':Js([PyJs_anonymous_117_, Js({})]),'34':Js([PyJs_anonymous_118_, Js({'./_object-gops':Js(80.0),'./_object-keys':Js(83.0),'./_object-pie':Js(84.0)})]),'35':Js([PyJs_anonymous_120_, Js({'./_core':Js(25.0),'./_ctx':Js(27.0),'./_global':Js(43.0),'./_hide':Js(45.0),'./_redefine':Js(94.0)})]),'36':Js([PyJs_anonymous_122_, Js({'./_wks':Js(131.0)})]),'37':Js([PyJs_anonymous_124_, Js({})]),'38':Js([PyJs_anonymous_126_, Js({'./_defined':Js(30.0),'./_fails':Js(37.0),'./_hide':Js(45.0),'./_redefine':Js(94.0),'./_regexp-exec':Js(96.0),'./_wks':Js(131.0),'./es6.regexp.exec':Js(228.0)})]),'39':Js([PyJs_anonymous_140_, Js({'./_an-object':Js(9.0)})]),'40':Js([PyJs_anonymous_142_, Js({'./_ctx':Js(27.0),'./_is-array':Js(52.0),'./_is-object':Js(54.0),'./_to-length':Js(120.0),'./_wks':Js(131.0)})]),'41':Js([PyJs_anonymous_143_, Js({'./_an-object':Js(9.0),'./_ctx':Js(27.0),'./_is-array-iter':Js(51.0),'./_iter-call':Js(56.0),'./_to-length':Js(120.0),'./core.get-iterator-method':Js(132.0)})]),'42':Js([PyJs_anonymous_146_, Js({'./_shared':Js(105.0)})]),'43':Js([PyJs_anonymous_147_, Js({})]),'44':Js([PyJs_anonymous_148_, Js({})]),'45':Js([PyJs_anonymous_150_, Js({'./_descriptors':Js(31.0),'./_object-dp':Js(74.0),'./_property-desc':Js(92.0)})]),'46':Js([PyJs_anonymous_153_, Js({'./_global':Js(43.0)})]),'47':Js([PyJs_anonymous_154_, Js({'./_descriptors':Js(31.0),'./_dom-create':Js(32.0),'./_fails':Js(37.0)})]),'48':Js([PyJs_anonymous_157_, Js({'./_is-object':Js(54.0),'./_set-proto':Js(101.0)})]),'49':Js([PyJs_anonymous_159_, Js({})]),'50':Js([PyJs_anonymous_161_, Js({'./_cof':Js(20.0)})]),'51':Js([PyJs_anonymous_163_, Js({'./_iterators':Js(61.0),'./_wks':Js(131.0)})]),'52':Js([PyJs_anonymous_165_, Js({'./_cof':Js(20.0)})]),'53':Js([PyJs_anonymous_167_, Js({'./_is-object':Js(54.0)})]),'54':Js([PyJs_anonymous_169_, Js({})]),'55':Js([PyJs_anonymous_171_, Js({'./_cof':Js(20.0),'./_is-object':Js(54.0),'./_wks':Js(131.0)})]),'56':Js([PyJs_anonymous_173_, Js({'./_an-object':Js(9.0)})]),'57':Js([PyJs_anonymous_175_, Js({'./_hide':Js(45.0),'./_object-create':Js(73.0),'./_property-desc':Js(92.0),'./_set-to-string-tag':Js(103.0),'./_wks':Js(131.0)})]),'58':Js([PyJs_anonymous_178_, Js({'./_export':Js(35.0),'./_hide':Js(45.0),'./_iter-create':Js(57.0),'./_iterators':Js(61.0),'./_library':Js(62.0),'./_object-gpo':Js(81.0),'./_redefine':Js(94.0),'./_set-to-string-tag':Js(103.0),'./_wks':Js(131.0)})]),'59':Js([PyJs_anonymous_186_, Js({'./_wks':Js(131.0)})]),'60':Js([PyJs_anonymous_192_, Js({})]),'61':Js([PyJs_anonymous_194_, Js({})]),'62':Js([PyJs_anonymous_195_, Js({})]),'63':Js([PyJs_anonymous_196_, Js({})]),'64':Js([PyJs_anonymous_198_, Js({'./_math-sign':Js(67.0)})]),'65':Js([PyJs_anonymous_201_, Js({})]),'66':Js([PyJs_anonymous_203_, Js({})]),'67':Js([PyJs_anonymous_205_, Js({})]),'68':Js([PyJs_anonymous_207_, Js({'./_fails':Js(37.0),'./_has':Js(44.0),'./_is-object':Js(54.0),'./_object-dp':Js(74.0),'./_uid':Js(126.0)})]),'69':Js([PyJs_anonymous_214_, Js({'./_export':Js(35.0),'./_shared':Js(105.0),'./es6.map':Js(163.0),'./es6.weak-map':Js(270.0)})]),'70':Js([PyJs_anonymous_223_, Js({'./_cof':Js(20.0),'./_global':Js(43.0),'./_task':Js(115.0)})]),'71':Js([PyJs_anonymous_231_, Js({'./_a-function':Js(4.0)})]),'72':Js([PyJs_anonymous_234_, Js({'./_descriptors':Js(31.0),'./_fails':Js(37.0),'./_iobject':Js(50.0),'./_object-gops':Js(80.0),'./_object-keys':Js(83.0),'./_object-pie':Js(84.0),'./_to-object':Js(121.0)})]),'73':Js([PyJs_anonymous_238_, Js({'./_an-object':Js(9.0),'./_dom-create':Js(32.0),'./_enum-bug-keys':Js(33.0),'./_html':Js(46.0),'./_object-dps':Js(75.0),'./_shared-key':Js(104.0)})]),'74':Js([PyJs_anonymous_242_, Js({'./_an-object':Js(9.0),'./_descriptors':Js(31.0),'./_ie8-dom-define':Js(47.0),'./_to-primitive':Js(122.0)})]),'75':Js([PyJs_anonymous_244_, Js({'./_an-object':Js(9.0),'./_descriptors':Js(31.0),'./_object-dp':Js(74.0),'./_object-keys':Js(83.0)})]),'76':Js([PyJs_anonymous_246_, Js({'./_fails':Js(37.0),'./_global':Js(43.0),'./_library':Js(62.0)})]),'77':Js([PyJs_anonymous_249_, Js({'./_descriptors':Js(31.0),'./_has':Js(44.0),'./_ie8-dom-define':Js(47.0),'./_object-pie':Js(84.0),'./_property-desc':Js(92.0),'./_to-iobject':Js(119.0),'./_to-primitive':Js(122.0)})]),'78':Js([PyJs_anonymous_251_, Js({'./_object-gopn':Js(79.0),'./_to-iobject':Js(119.0)})]),'79':Js([PyJs_anonymous_254_, Js({'./_enum-bug-keys':Js(33.0),'./_object-keys-internal':Js(82.0)})]),'80':Js([PyJs_anonymous_256_, Js({})]),'81':Js([PyJs_anonymous_257_, Js({'./_has':Js(44.0),'./_shared-key':Js(104.0),'./_to-object':Js(121.0)})]),'82':Js([PyJs_anonymous_259_, Js({'./_array-includes':Js(13.0),'./_has':Js(44.0),'./_shared-key':Js(104.0),'./_to-iobject':Js(119.0)})]),'83':Js([PyJs_anonymous_261_, Js({'./_enum-bug-keys':Js(33.0),'./_object-keys-internal':Js(82.0)})]),'84':Js([PyJs_anonymous_263_, Js({})]),'85':Js([PyJs_anonymous_264_, Js({'./_core':Js(25.0),'./_export':Js(35.0),'./_fails':Js(37.0)})]),'86':Js([PyJs_anonymous_267_, Js({'./_descriptors':Js(31.0),'./_object-keys':Js(83.0),'./_object-pie':Js(84.0),'./_to-iobject':Js(119.0)})]),'87':Js([PyJs_anonymous_270_, Js({'./_an-object':Js(9.0),'./_global':Js(43.0),'./_object-gopn':Js(79.0),'./_object-gops':Js(80.0)})]),'88':Js([PyJs_anonymous_272_, Js({'./_global':Js(43.0),'./_string-trim':Js(113.0),'./_string-ws':Js(114.0)})]),'89':Js([PyJs_anonymous_274_, Js({'./_global':Js(43.0),'./_string-trim':Js(113.0),'./_string-ws':Js(114.0)})]),'90':Js([PyJs_anonymous_276_, Js({})]),'91':Js([PyJs_anonymous_278_, Js({'./_an-object':Js(9.0),'./_is-object':Js(54.0),'./_new-promise-capability':Js(71.0)})]),'92':Js([PyJs_anonymous_280_, Js({})]),'93':Js([PyJs_anonymous_282_, Js({'./_redefine':Js(94.0)})]),'94':Js([PyJs_anonymous_284_, Js({'./_core':Js(25.0),'./_function-to-string':Js(42.0),'./_global':Js(43.0),'./_has':Js(44.0),'./_hide':Js(45.0),'./_uid':Js(126.0)})]),'95':Js([PyJs_anonymous_288_, Js({'./_classof':Js(19.0)})]),'96':Js([PyJs_anonymous_290_, Js({'./_flags':Js(39.0)})]),'97':Js([PyJs_anonymous_294_, Js({})]),'98':Js([PyJs_anonymous_298_, Js({})]),'99':Js([PyJs_anonymous_300_, Js({'./_a-function':Js(4.0),'./_ctx':Js(27.0),'./_export':Js(35.0),'./_for-of':Js(41.0)})]),'100':Js([PyJs_anonymous_304_, Js({'./_export':Js(35.0)})]),'101':Js([PyJs_anonymous_307_, Js({'./_an-object':Js(9.0),'./_ctx':Js(27.0),'./_is-object':Js(54.0),'./_object-gopd':Js(77.0)})]),'102':Js([PyJs_anonymous_311_, Js({'./_descriptors':Js(31.0),'./_global':Js(43.0),'./_object-dp':Js(74.0),'./_wks':Js(131.0)})]),'103':Js([PyJs_anonymous_314_, Js({'./_has':Js(44.0),'./_object-dp':Js(74.0),'./_wks':Js(131.0)})]),'104':Js([PyJs_anonymous_316_, Js({'./_shared':Js(105.0),'./_uid':Js(126.0)})]),'105':Js([PyJs_anonymous_318_, Js({'./_core':Js(25.0),'./_global':Js(43.0),'./_library':Js(62.0)})]),'106':Js([PyJs_anonymous_320_, Js({'./_a-function':Js(4.0),'./_an-object':Js(9.0),'./_wks':Js(131.0)})]),'107':Js([PyJs_anonymous_322_, Js({'./_fails':Js(37.0)})]),'108':Js([PyJs_anonymous_326_, Js({'./_defined':Js(30.0),'./_to-integer':Js(118.0)})]),'109':Js([PyJs_anonymous_330_, Js({'./_defined':Js(30.0),'./_is-regexp':Js(55.0)})]),'110':Js([PyJs_anonymous_332_, Js({'./_defined':Js(30.0),'./_export':Js(35.0),'./_fails':Js(37.0)})]),'111':Js([PyJs_anonymous_336_, Js({'./_defined':Js(30.0),'./_string-repeat':Js(112.0),'./_to-length':Js(120.0)})]),'112':Js([PyJs_anonymous_338_, Js({'./_defined':Js(30.0),'./_to-integer':Js(118.0)})]),'113':Js([PyJs_anonymous_340_, Js({'./_defined':Js(30.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_string-ws':Js(114.0)})]),'114':Js([PyJs_anonymous_344_, Js({})]),'115':Js([PyJs_anonymous_345_, Js({'./_cof':Js(20.0),'./_ctx':Js(27.0),'./_dom-create':Js(32.0),'./_global':Js(43.0),'./_html':Js(46.0),'./_invoke':Js(49.0)})]),'116':Js([PyJs_anonymous_357_, Js({'./_to-integer':Js(118.0)})]),'117':Js([PyJs_anonymous_359_, Js({'./_to-integer':Js(118.0),'./_to-length':Js(120.0)})]),'118':Js([PyJs_anonymous_361_, Js({})]),'119':Js([PyJs_anonymous_363_, Js({'./_defined':Js(30.0),'./_iobject':Js(50.0)})]),'120':Js([PyJs_anonymous_365_, Js({'./_to-integer':Js(118.0)})]),'121':Js([PyJs_anonymous_367_, Js({'./_defined':Js(30.0)})]),'122':Js([PyJs_anonymous_369_, Js({'./_is-object':Js(54.0)})]),'123':Js([PyJs_anonymous_371_, Js({'./_an-instance':Js(8.0),'./_array-copy-within':Js(10.0),'./_array-fill':Js(11.0),'./_array-includes':Js(13.0),'./_array-methods':Js(14.0),'./_classof':Js(19.0),'./_ctx':Js(27.0),'./_descriptors':Js(31.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_global':Js(43.0),'./_has':Js(44.0),'./_hide':Js(45.0),'./_is-array-iter':Js(51.0),'./_is-object':Js(54.0),'./_iter-detect':Js(59.0),'./_iterators':Js(61.0),'./_library':Js(62.0),'./_object-create':Js(73.0),'./_object-dp':Js(74.0),'./_object-gopd':Js(77.0),'./_object-gopn':Js(79.0),'./_object-gpo':Js(81.0),'./_property-desc':Js(92.0),'./_redefine-all':Js(93.0),'./_set-species':Js(102.0),'./_species-constructor':Js(106.0),'./_to-absolute-index':Js(116.0),'./_to-index':Js(117.0),'./_to-integer':Js(118.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0),'./_to-primitive':Js(122.0),'./_typed':Js(125.0),'./_typed-buffer':Js(124.0),'./_uid':Js(126.0),'./_wks':Js(131.0),'./core.get-iterator-method':Js(132.0),'./es6.array.iterator':Js(144.0)})]),'124':Js([PyJs_anonymous_435_, Js({'./_an-instance':Js(8.0),'./_array-fill':Js(11.0),'./_descriptors':Js(31.0),'./_fails':Js(37.0),'./_global':Js(43.0),'./_hide':Js(45.0),'./_library':Js(62.0),'./_object-dp':Js(74.0),'./_object-gopn':Js(79.0),'./_redefine-all':Js(93.0),'./_set-to-string-tag':Js(103.0),'./_to-index':Js(117.0),'./_to-integer':Js(118.0),'./_to-length':Js(120.0),'./_typed':Js(125.0)})]),'125':Js([PyJs_anonymous_462_, Js({'./_global':Js(43.0),'./_hide':Js(45.0),'./_uid':Js(126.0)})]),'126':Js([PyJs_anonymous_463_, Js({})]),'127':Js([PyJs_anonymous_465_, Js({'./_global':Js(43.0)})]),'128':Js([PyJs_anonymous_466_, Js({'./_is-object':Js(54.0)})]),'129':Js([PyJs_anonymous_468_, Js({'./_core':Js(25.0),'./_global':Js(43.0),'./_library':Js(62.0),'./_object-dp':Js(74.0),'./_wks-ext':Js(130.0)})]),'130':Js([PyJs_anonymous_470_, Js({'./_wks':Js(131.0)})]),'131':Js([PyJs_anonymous_471_, Js({'./_global':Js(43.0),'./_shared':Js(105.0),'./_uid':Js(126.0)})]),'132':Js([PyJs_anonymous_473_, Js({'./_classof':Js(19.0),'./_core':Js(25.0),'./_iterators':Js(61.0),'./_wks':Js(131.0)})]),'133':Js([PyJs_anonymous_475_, Js({'./_export':Js(35.0),'./_replacer':Js(97.0)})]),'134':Js([PyJs_anonymous_477_, Js({'./_add-to-unscopables':Js(6.0),'./_array-copy-within':Js(10.0),'./_export':Js(35.0)})]),'135':Js([PyJs_anonymous_478_, Js({'./_array-methods':Js(14.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'136':Js([PyJs_anonymous_480_, Js({'./_add-to-unscopables':Js(6.0),'./_array-fill':Js(11.0),'./_export':Js(35.0)})]),'137':Js([PyJs_anonymous_481_, Js({'./_array-methods':Js(14.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'138':Js([PyJs_anonymous_483_, Js({'./_add-to-unscopables':Js(6.0),'./_array-methods':Js(14.0),'./_export':Js(35.0)})]),'139':Js([PyJs_anonymous_486_, Js({'./_add-to-unscopables':Js(6.0),'./_array-methods':Js(14.0),'./_export':Js(35.0)})]),'140':Js([PyJs_anonymous_489_, Js({'./_array-methods':Js(14.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'141':Js([PyJs_anonymous_491_, Js({'./_create-property':Js(26.0),'./_ctx':Js(27.0),'./_export':Js(35.0),'./_is-array-iter':Js(51.0),'./_iter-call':Js(56.0),'./_iter-detect':Js(59.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0),'./core.get-iterator-method':Js(132.0)})]),'142':Js([PyJs_anonymous_494_, Js({'./_array-includes':Js(13.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'143':Js([PyJs_anonymous_496_, Js({'./_export':Js(35.0),'./_is-array':Js(52.0)})]),'144':Js([PyJs_anonymous_497_, Js({'./_add-to-unscopables':Js(6.0),'./_iter-define':Js(58.0),'./_iter-step':Js(60.0),'./_iterators':Js(61.0),'./_to-iobject':Js(119.0)})]),'145':Js([PyJs_anonymous_500_, Js({'./_export':Js(35.0),'./_iobject':Js(50.0),'./_strict-method':Js(107.0),'./_to-iobject':Js(119.0)})]),'146':Js([PyJs_anonymous_502_, Js({'./_export':Js(35.0),'./_strict-method':Js(107.0),'./_to-integer':Js(118.0),'./_to-iobject':Js(119.0),'./_to-length':Js(120.0)})]),'147':Js([PyJs_anonymous_504_, Js({'./_array-methods':Js(14.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'148':Js([PyJs_anonymous_506_, Js({'./_create-property':Js(26.0),'./_export':Js(35.0),'./_fails':Js(37.0)})]),'149':Js([PyJs_anonymous_509_, Js({'./_array-reduce':Js(15.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'150':Js([PyJs_anonymous_511_, Js({'./_array-reduce':Js(15.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'151':Js([PyJs_anonymous_513_, Js({'./_cof':Js(20.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_html':Js(46.0),'./_to-absolute-index':Js(116.0),'./_to-length':Js(120.0)})]),'152':Js([PyJs_anonymous_516_, Js({'./_array-methods':Js(14.0),'./_export':Js(35.0),'./_strict-method':Js(107.0)})]),'153':Js([PyJs_anonymous_518_, Js({'./_a-function':Js(4.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_strict-method':Js(107.0),'./_to-object':Js(121.0)})]),'154':Js([PyJs_anonymous_522_, Js({'./_set-species':Js(102.0)})]),'155':Js([PyJs_anonymous_523_, Js({'./_export':Js(35.0)})]),'156':Js([PyJs_anonymous_525_, Js({'./_date-to-iso-string':Js(28.0),'./_export':Js(35.0)})]),'157':Js([PyJs_anonymous_526_, Js({'./_export':Js(35.0),'./_fails':Js(37.0),'./_to-object':Js(121.0),'./_to-primitive':Js(122.0)})]),'158':Js([PyJs_anonymous_530_, Js({'./_date-to-primitive':Js(29.0),'./_hide':Js(45.0),'./_wks':Js(131.0)})]),'159':Js([PyJs_anonymous_531_, Js({'./_redefine':Js(94.0)})]),'160':Js([PyJs_anonymous_533_, Js({'./_bind':Js(18.0),'./_export':Js(35.0)})]),'161':Js([PyJs_anonymous_534_, Js({'./_is-object':Js(54.0),'./_object-dp':Js(74.0),'./_object-gpo':Js(81.0),'./_wks':Js(131.0)})]),'162':Js([PyJs_anonymous_536_, Js({'./_descriptors':Js(31.0),'./_object-dp':Js(74.0)})]),'163':Js([PyJs_anonymous_538_, Js({'./_collection':Js(24.0),'./_collection-strong':Js(21.0),'./_validate-collection':Js(128.0)})]),'164':Js([PyJs_anonymous_543_, Js({'./_export':Js(35.0),'./_math-log1p':Js(65.0)})]),'165':Js([PyJs_anonymous_545_, Js({'./_export':Js(35.0)})]),'166':Js([PyJs_anonymous_546_, Js({'./_export':Js(35.0)})]),'167':Js([PyJs_anonymous_548_, Js({'./_export':Js(35.0),'./_math-sign':Js(67.0)})]),'168':Js([PyJs_anonymous_550_, Js({'./_export':Js(35.0)})]),'169':Js([PyJs_anonymous_552_, Js({'./_export':Js(35.0)})]),'170':Js([PyJs_anonymous_554_, Js({'./_export':Js(35.0),'./_math-expm1':Js(63.0)})]),'171':Js([PyJs_anonymous_555_, Js({'./_export':Js(35.0),'./_math-fround':Js(64.0)})]),'172':Js([PyJs_anonymous_556_, Js({'./_export':Js(35.0)})]),'173':Js([PyJs_anonymous_558_, Js({'./_export':Js(35.0),'./_fails':Js(37.0)})]),'174':Js([PyJs_anonymous_561_, Js({'./_export':Js(35.0)})]),'175':Js([PyJs_anonymous_563_, Js({'./_export':Js(35.0),'./_math-log1p':Js(65.0)})]),'176':Js([PyJs_anonymous_564_, Js({'./_export':Js(35.0)})]),'177':Js([PyJs_anonymous_566_, Js({'./_export':Js(35.0),'./_math-sign':Js(67.0)})]),'178':Js([PyJs_anonymous_567_, Js({'./_export':Js(35.0),'./_fails':Js(37.0),'./_math-expm1':Js(63.0)})]),'179':Js([PyJs_anonymous_570_, Js({'./_export':Js(35.0),'./_math-expm1':Js(63.0)})]),'180':Js([PyJs_anonymous_572_, Js({'./_export':Js(35.0)})]),'181':Js([PyJs_anonymous_574_, Js({'./_cof':Js(20.0),'./_descriptors':Js(31.0),'./_fails':Js(37.0),'./_global':Js(43.0),'./_has':Js(44.0),'./_inherit-if-required':Js(48.0),'./_object-create':Js(73.0),'./_object-dp':Js(74.0),'./_object-gopd':Js(77.0),'./_object-gopn':Js(79.0),'./_redefine':Js(94.0),'./_string-trim':Js(113.0),'./_to-primitive':Js(122.0)})]),'182':Js([PyJs_anonymous_578_, Js({'./_export':Js(35.0)})]),'183':Js([PyJs_anonymous_579_, Js({'./_export':Js(35.0),'./_global':Js(43.0)})]),'184':Js([PyJs_anonymous_581_, Js({'./_export':Js(35.0),'./_is-integer':Js(53.0)})]),'185':Js([PyJs_anonymous_582_, Js({'./_export':Js(35.0)})]),'186':Js([PyJs_anonymous_584_, Js({'./_export':Js(35.0),'./_is-integer':Js(53.0)})]),'187':Js([PyJs_anonymous_586_, Js({'./_export':Js(35.0)})]),'188':Js([PyJs_anonymous_587_, Js({'./_export':Js(35.0)})]),'189':Js([PyJs_anonymous_588_, Js({'./_export':Js(35.0),'./_parse-float':Js(88.0)})]),'190':Js([PyJs_anonymous_589_, Js({'./_export':Js(35.0),'./_parse-int':Js(89.0)})]),'191':Js([PyJs_anonymous_590_, Js({'./_a-number-value':Js(5.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_string-repeat':Js(112.0),'./_to-integer':Js(118.0)})]),'192':Js([PyJs_anonymous_599_, Js({'./_a-number-value':Js(5.0),'./_export':Js(35.0),'./_fails':Js(37.0)})]),'193':Js([PyJs_anonymous_603_, Js({'./_export':Js(35.0),'./_object-assign':Js(72.0)})]),'194':Js([PyJs_anonymous_604_, Js({'./_export':Js(35.0),'./_object-create':Js(73.0)})]),'195':Js([PyJs_anonymous_605_, Js({'./_descriptors':Js(31.0),'./_export':Js(35.0),'./_object-dps':Js(75.0)})]),'196':Js([PyJs_anonymous_606_, Js({'./_descriptors':Js(31.0),'./_export':Js(35.0),'./_object-dp':Js(74.0)})]),'197':Js([PyJs_anonymous_607_, Js({'./_is-object':Js(54.0),'./_meta':Js(68.0),'./_object-sap':Js(85.0)})]),'198':Js([PyJs_anonymous_610_, Js({'./_object-gopd':Js(77.0),'./_object-sap':Js(85.0),'./_to-iobject':Js(119.0)})]),'199':Js([PyJs_anonymous_613_, Js({'./_object-gopn-ext':Js(78.0),'./_object-sap':Js(85.0)})]),'200':Js([PyJs_anonymous_615_, Js({'./_object-gpo':Js(81.0),'./_object-sap':Js(85.0),'./_to-object':Js(121.0)})]),'201':Js([PyJs_anonymous_618_, Js({'./_is-object':Js(54.0),'./_object-sap':Js(85.0)})]),'202':Js([PyJs_anonymous_621_, Js({'./_is-object':Js(54.0),'./_object-sap':Js(85.0)})]),'203':Js([PyJs_anonymous_624_, Js({'./_is-object':Js(54.0),'./_object-sap':Js(85.0)})]),'204':Js([PyJs_anonymous_627_, Js({'./_export':Js(35.0),'./_same-value':Js(98.0)})]),'205':Js([PyJs_anonymous_628_, Js({'./_object-keys':Js(83.0),'./_object-sap':Js(85.0),'./_to-object':Js(121.0)})]),'206':Js([PyJs_anonymous_631_, Js({'./_is-object':Js(54.0),'./_meta':Js(68.0),'./_object-sap':Js(85.0)})]),'207':Js([PyJs_anonymous_634_, Js({'./_is-object':Js(54.0),'./_meta':Js(68.0),'./_object-sap':Js(85.0)})]),'208':Js([PyJs_anonymous_637_, Js({'./_export':Js(35.0),'./_set-proto':Js(101.0)})]),'209':Js([PyJs_anonymous_638_, Js({'./_classof':Js(19.0),'./_redefine':Js(94.0),'./_wks':Js(131.0)})]),'210':Js([PyJs_anonymous_640_, Js({'./_export':Js(35.0),'./_parse-float':Js(88.0)})]),'211':Js([PyJs_anonymous_641_, Js({'./_export':Js(35.0),'./_parse-int':Js(89.0)})]),'212':Js([PyJs_anonymous_642_, Js({'./_a-function':Js(4.0),'./_an-instance':Js(8.0),'./_classof':Js(19.0),'./_core':Js(25.0),'./_ctx':Js(27.0),'./_export':Js(35.0),'./_for-of':Js(41.0),'./_global':Js(43.0),'./_is-object':Js(54.0),'./_iter-detect':Js(59.0),'./_library':Js(62.0),'./_microtask':Js(70.0),'./_new-promise-capability':Js(71.0),'./_perform':Js(90.0),'./_promise-resolve':Js(91.0),'./_redefine-all':Js(93.0),'./_set-species':Js(102.0),'./_set-to-string-tag':Js(103.0),'./_species-constructor':Js(106.0),'./_task':Js(115.0),'./_user-agent':Js(127.0),'./_wks':Js(131.0)})]),'213':Js([PyJs_anonymous_675_, Js({'./_a-function':Js(4.0),'./_an-object':Js(9.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_global':Js(43.0)})]),'214':Js([PyJs_anonymous_679_, Js({'./_a-function':Js(4.0),'./_an-object':Js(9.0),'./_bind':Js(18.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_global':Js(43.0),'./_is-object':Js(54.0),'./_object-create':Js(73.0)})]),'215':Js([PyJs_anonymous_685_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_object-dp':Js(74.0),'./_to-primitive':Js(122.0)})]),'216':Js([PyJs_anonymous_688_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_object-gopd':Js(77.0)})]),'217':Js([PyJs_anonymous_690_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_iter-create':Js(57.0)})]),'218':Js([PyJs_anonymous_694_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_object-gopd':Js(77.0)})]),'219':Js([PyJs_anonymous_696_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_object-gpo':Js(81.0)})]),'220':Js([PyJs_anonymous_698_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_has':Js(44.0),'./_is-object':Js(54.0),'./_object-gopd':Js(77.0),'./_object-gpo':Js(81.0)})]),'221':Js([PyJs_anonymous_699_, Js({'./_export':Js(35.0)})]),'222':Js([PyJs_anonymous_701_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0)})]),'223':Js([PyJs_anonymous_703_, Js({'./_export':Js(35.0),'./_own-keys':Js(87.0)})]),'224':Js([PyJs_anonymous_704_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0)})]),'225':Js([PyJs_anonymous_706_, Js({'./_export':Js(35.0),'./_set-proto':Js(101.0)})]),'226':Js([PyJs_anonymous_708_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_has':Js(44.0),'./_is-object':Js(54.0),'./_object-dp':Js(74.0),'./_object-gopd':Js(77.0),'./_object-gpo':Js(81.0),'./_property-desc':Js(92.0)})]),'227':Js([PyJs_anonymous_709_, Js({'./_descriptors':Js(31.0),'./_fails':Js(37.0),'./_flags':Js(39.0),'./_global':Js(43.0),'./_inherit-if-required':Js(48.0),'./_is-regexp':Js(55.0),'./_object-dp':Js(74.0),'./_object-gopn':Js(79.0),'./_redefine':Js(94.0),'./_set-species':Js(102.0),'./_wks':Js(131.0)})]),'228':Js([PyJs_anonymous_716_, Js({'./_export':Js(35.0),'./_regexp-exec':Js(96.0)})]),'229':Js([PyJs_anonymous_717_, Js({'./_descriptors':Js(31.0),'./_flags':Js(39.0),'./_object-dp':Js(74.0)})]),'230':Js([PyJs_anonymous_718_, Js({'./_advance-string-index':Js(7.0),'./_an-object':Js(9.0),'./_fix-re-wks':Js(38.0),'./_regexp-exec-abstract':Js(95.0),'./_to-length':Js(120.0)})]),'231':Js([PyJs_anonymous_722_, Js({'./_advance-string-index':Js(7.0),'./_an-object':Js(9.0),'./_fix-re-wks':Js(38.0),'./_regexp-exec-abstract':Js(95.0),'./_to-integer':Js(118.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0)})]),'232':Js([PyJs_anonymous_728_, Js({'./_an-object':Js(9.0),'./_fix-re-wks':Js(38.0),'./_regexp-exec-abstract':Js(95.0),'./_same-value':Js(98.0)})]),'233':Js([PyJs_anonymous_732_, Js({'./_advance-string-index':Js(7.0),'./_an-object':Js(9.0),'./_fails':Js(37.0),'./_fix-re-wks':Js(38.0),'./_is-regexp':Js(55.0),'./_regexp-exec':Js(96.0),'./_regexp-exec-abstract':Js(95.0),'./_species-constructor':Js(106.0),'./_to-length':Js(120.0)})]),'234':Js([PyJs_anonymous_740_, Js({'./_an-object':Js(9.0),'./_descriptors':Js(31.0),'./_fails':Js(37.0),'./_flags':Js(39.0),'./_redefine':Js(94.0),'./es6.regexp.flags':Js(229.0)})]),'235':Js([PyJs_anonymous_745_, Js({'./_collection':Js(24.0),'./_collection-strong':Js(21.0),'./_validate-collection':Js(128.0)})]),'236':Js([PyJs_anonymous_749_, Js({'./_string-html':Js(110.0)})]),'237':Js([PyJs_anonymous_752_, Js({'./_string-html':Js(110.0)})]),'238':Js([PyJs_anonymous_755_, Js({'./_string-html':Js(110.0)})]),'239':Js([PyJs_anonymous_758_, Js({'./_string-html':Js(110.0)})]),'240':Js([PyJs_anonymous_761_, Js({'./_export':Js(35.0),'./_string-at':Js(108.0)})]),'241':Js([PyJs_anonymous_763_, Js({'./_export':Js(35.0),'./_fails-is-regexp':Js(36.0),'./_string-context':Js(109.0),'./_to-length':Js(120.0)})]),'242':Js([PyJs_anonymous_765_, Js({'./_string-html':Js(110.0)})]),'243':Js([PyJs_anonymous_768_, Js({'./_string-html':Js(110.0)})]),'244':Js([PyJs_anonymous_771_, Js({'./_string-html':Js(110.0)})]),'245':Js([PyJs_anonymous_774_, Js({'./_export':Js(35.0),'./_to-absolute-index':Js(116.0)})]),'246':Js([PyJs_anonymous_776_, Js({'./_export':Js(35.0),'./_fails-is-regexp':Js(36.0),'./_string-context':Js(109.0)})]),'247':Js([PyJs_anonymous_778_, Js({'./_string-html':Js(110.0)})]),'248':Js([PyJs_anonymous_781_, Js({'./_iter-define':Js(58.0),'./_string-at':Js(108.0)})]),'249':Js([PyJs_anonymous_784_, Js({'./_string-html':Js(110.0)})]),'250':Js([PyJs_anonymous_787_, Js({'./_export':Js(35.0),'./_to-iobject':Js(119.0),'./_to-length':Js(120.0)})]),'251':Js([PyJs_anonymous_789_, Js({'./_export':Js(35.0),'./_string-repeat':Js(112.0)})]),'252':Js([PyJs_anonymous_790_, Js({'./_string-html':Js(110.0)})]),'253':Js([PyJs_anonymous_793_, Js({'./_export':Js(35.0),'./_fails-is-regexp':Js(36.0),'./_string-context':Js(109.0),'./_to-length':Js(120.0)})]),'254':Js([PyJs_anonymous_795_, Js({'./_string-html':Js(110.0)})]),'255':Js([PyJs_anonymous_798_, Js({'./_string-html':Js(110.0)})]),'256':Js([PyJs_anonymous_801_, Js({'./_string-html':Js(110.0)})]),'257':Js([PyJs_anonymous_804_, Js({'./_string-trim':Js(113.0)})]),'258':Js([PyJs_anonymous_807_, Js({'./_an-object':Js(9.0),'./_descriptors':Js(31.0),'./_enum-keys':Js(34.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_global':Js(43.0),'./_has':Js(44.0),'./_hide':Js(45.0),'./_is-array':Js(52.0),'./_is-object':Js(54.0),'./_library':Js(62.0),'./_meta':Js(68.0),'./_object-create':Js(73.0),'./_object-dp':Js(74.0),'./_object-gopd':Js(77.0),'./_object-gopn':Js(79.0),'./_object-gopn-ext':Js(78.0),'./_object-gops':Js(80.0),'./_object-keys':Js(83.0),'./_object-pie':Js(84.0),'./_property-desc':Js(92.0),'./_redefine':Js(94.0),'./_set-to-string-tag':Js(103.0),'./_shared':Js(105.0),'./_to-iobject':Js(119.0),'./_to-object':Js(121.0),'./_to-primitive':Js(122.0),'./_uid':Js(126.0),'./_wks':Js(131.0),'./_wks-define':Js(129.0),'./_wks-ext':Js(130.0)})]),'259':Js([PyJs_anonymous_835_, Js({'./_an-object':Js(9.0),'./_export':Js(35.0),'./_fails':Js(37.0),'./_global':Js(43.0),'./_is-object':Js(54.0),'./_set-species':Js(102.0),'./_species-constructor':Js(106.0),'./_to-absolute-index':Js(116.0),'./_to-length':Js(120.0),'./_typed':Js(125.0),'./_typed-buffer':Js(124.0)})]),'260':Js([PyJs_anonymous_839_, Js({'./_export':Js(35.0),'./_typed':Js(125.0),'./_typed-buffer':Js(124.0)})]),'261':Js([PyJs_anonymous_840_, Js({'./_typed-array':Js(123.0)})]),'262':Js([PyJs_anonymous_843_, Js({'./_typed-array':Js(123.0)})]),'263':Js([PyJs_anonymous_846_, Js({'./_typed-array':Js(123.0)})]),'264':Js([PyJs_anonymous_849_, Js({'./_typed-array':Js(123.0)})]),'265':Js([PyJs_anonymous_852_, Js({'./_typed-array':Js(123.0)})]),'266':Js([PyJs_anonymous_855_, Js({'./_typed-array':Js(123.0)})]),'267':Js([PyJs_anonymous_858_, Js({'./_typed-array':Js(123.0)})]),'268':Js([PyJs_anonymous_861_, Js({'./_typed-array':Js(123.0)})]),'269':Js([PyJs_anonymous_864_, Js({'./_typed-array':Js(123.0)})]),'270':Js([PyJs_anonymous_867_, Js({'./_array-methods':Js(14.0),'./_collection':Js(24.0),'./_collection-weak':Js(23.0),'./_global':Js(43.0),'./_is-object':Js(54.0),'./_meta':Js(68.0),'./_object-assign':Js(72.0),'./_redefine':Js(94.0),'./_validate-collection':Js(128.0)})]),'271':Js([PyJs_anonymous_874_, Js({'./_collection':Js(24.0),'./_collection-weak':Js(23.0),'./_validate-collection':Js(128.0)})]),'272':Js([PyJs_anonymous_878_, Js({'./_a-function':Js(4.0),'./_add-to-unscopables':Js(6.0),'./_array-species-create':Js(17.0),'./_export':Js(35.0),'./_flatten-into-array':Js(40.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0)})]),'273':Js([PyJs_anonymous_880_, Js({'./_add-to-unscopables':Js(6.0),'./_array-species-create':Js(17.0),'./_export':Js(35.0),'./_flatten-into-array':Js(40.0),'./_to-integer':Js(118.0),'./_to-length':Js(120.0),'./_to-object':Js(121.0)})]),'274':Js([PyJs_anonymous_882_, Js({'./_add-to-unscopables':Js(6.0),'./_array-includes':Js(13.0),'./_export':Js(35.0)})]),'275':Js([PyJs_anonymous_884_, Js({'./_cof':Js(20.0),'./_export':Js(35.0),'./_global':Js(43.0),'./_microtask':Js(70.0)})]),'276':Js([PyJs_anonymous_886_, Js({'./_cof':Js(20.0),'./_export':Js(35.0)})]),'277':Js([PyJs_anonymous_888_, Js({'./_export':Js(35.0),'./_global':Js(43.0)})]),'278':Js([PyJs_anonymous_889_, Js({'./_set-collection-from':Js(99.0)})]),'279':Js([PyJs_anonymous_890_, Js({'./_set-collection-of':Js(100.0)})]),'280':Js([PyJs_anonymous_891_, Js({'./_collection-to-json':Js(22.0),'./_export':Js(35.0)})]),'281':Js([PyJs_anonymous_892_, Js({'./_export':Js(35.0)})]),'282':Js([PyJs_anonymous_894_, Js({'./_export':Js(35.0)})]),'283':Js([PyJs_anonymous_895_, Js({'./_export':Js(35.0)})]),'284':Js([PyJs_anonymous_897_, Js({'./_export':Js(35.0),'./_math-fround':Js(64.0),'./_math-scale':Js(66.0)})]),'285':Js([PyJs_anonymous_899_, Js({'./_export':Js(35.0)})]),'286':Js([PyJs_anonymous_901_, Js({'./_export':Js(35.0)})]),'287':Js([PyJs_anonymous_903_, Js({'./_export':Js(35.0)})]),'288':Js([PyJs_anonymous_905_, Js({'./_export':Js(35.0)})]),'289':Js([PyJs_anonymous_906_, Js({'./_export':Js(35.0)})]),'290':Js([PyJs_anonymous_908_, Js({'./_export':Js(35.0),'./_math-scale':Js(66.0)})]),'291':Js([PyJs_anonymous_909_, Js({'./_export':Js(35.0)})]),'292':Js([PyJs_anonymous_911_, Js({'./_export':Js(35.0)})]),'293':Js([PyJs_anonymous_913_, Js({'./_a-function':Js(4.0),'./_descriptors':Js(31.0),'./_export':Js(35.0),'./_object-dp':Js(74.0),'./_object-forced-pam':Js(76.0),'./_to-object':Js(121.0)})]),'294':Js([PyJs_anonymous_915_, Js({'./_a-function':Js(4.0),'./_descriptors':Js(31.0),'./_export':Js(35.0),'./_object-dp':Js(74.0),'./_object-forced-pam':Js(76.0),'./_to-object':Js(121.0)})]),'295':Js([PyJs_anonymous_917_, Js({'./_export':Js(35.0),'./_object-to-array':Js(86.0)})]),'296':Js([PyJs_anonymous_919_, Js({'./_create-property':Js(26.0),'./_export':Js(35.0),'./_object-gopd':Js(77.0),'./_own-keys':Js(87.0),'./_to-iobject':Js(119.0)})]),'297':Js([PyJs_anonymous_921_, Js({'./_descriptors':Js(31.0),'./_export':Js(35.0),'./_object-forced-pam':Js(76.0),'./_object-gopd':Js(77.0),'./_object-gpo':Js(81.0),'./_to-object':Js(121.0),'./_to-primitive':Js(122.0)})]),'298':Js([PyJs_anonymous_923_, Js({'./_descriptors':Js(31.0),'./_export':Js(35.0),'./_object-forced-pam':Js(76.0),'./_object-gopd':Js(77.0),'./_object-gpo':Js(81.0),'./_to-object':Js(121.0),'./_to-primitive':Js(122.0)})]),'299':Js([PyJs_anonymous_925_, Js({'./_export':Js(35.0),'./_object-to-array':Js(86.0)})]),'300':Js([PyJs_anonymous_927_, Js({'./_a-function':Js(4.0),'./_an-instance':Js(8.0),'./_an-object':Js(9.0),'./_core':Js(25.0),'./_export':Js(35.0),'./_for-of':Js(41.0),'./_global':Js(43.0),'./_hide':Js(45.0),'./_microtask':Js(70.0),'./_redefine-all':Js(93.0),'./_set-species':Js(102.0),'./_wks':Js(131.0)})]),'301':Js([PyJs_anonymous_955_, Js({'./_core':Js(25.0),'./_export':Js(35.0),'./_global':Js(43.0),'./_promise-resolve':Js(91.0),'./_species-constructor':Js(106.0)})]),'302':Js([PyJs_anonymous_961_, Js({'./_export':Js(35.0),'./_new-promise-capability':Js(71.0),'./_perform':Js(90.0)})]),'303':Js([PyJs_anonymous_963_, Js({'./_an-object':Js(9.0),'./_metadata':Js(69.0)})]),'304':Js([PyJs_anonymous_965_, Js({'./_an-object':Js(9.0),'./_metadata':Js(69.0)})]),'305':Js([PyJs_anonymous_967_, Js({'./_an-object':Js(9.0),'./_array-from-iterable':Js(12.0),'./_metadata':Js(69.0),'./_object-gpo':Js(81.0),'./es6.set':Js(235.0)})]),'306':Js([PyJs_anonymous_970_, Js({'./_an-object':Js(9.0),'./_metadata':Js(69.0),'./_object-gpo':Js(81.0)})]),'307':Js([PyJs_anonymous_973_, Js({'./_an-object':Js(9.0),'./_metadata':Js(69.0)})]),'308':Js([PyJs_anonymous_975_, Js({'./_an-object':Js(9.0),'./_metadata':Js(69.0)})]),'309':Js([PyJs_anonymous_977_, Js({'./_an-object':Js(9.0),'./_metadata':Js(69.0),'./_object-gpo':Js(81.0)})]),'310':Js([PyJs_anonymous_980_, Js({'./_an-object':Js(9.0),'./_metadata':Js(69.0)})]),'311':Js([PyJs_anonymous_982_, Js({'./_a-function':Js(4.0),'./_an-object':Js(9.0),'./_metadata':Js(69.0)})]),'312':Js([PyJs_anonymous_985_, Js({'./_set-collection-from':Js(99.0)})]),'313':Js([PyJs_anonymous_986_, Js({'./_set-collection-of':Js(100.0)})]),'314':Js([PyJs_anonymous_987_, Js({'./_collection-to-json':Js(22.0),'./_export':Js(35.0)})]),'315':Js([PyJs_anonymous_988_, Js({'./_export':Js(35.0),'./_fails':Js(37.0),'./_string-at':Js(108.0)})]),'316':Js([PyJs_anonymous_991_, Js({'./_defined':Js(30.0),'./_export':Js(35.0),'./_flags':Js(39.0),'./_is-regexp':Js(55.0),'./_iter-create':Js(57.0),'./_to-length':Js(120.0)})]),'317':Js([PyJs_anonymous_995_, Js({'./_export':Js(35.0),'./_string-pad':Js(111.0),'./_user-agent':Js(127.0)})]),'318':Js([PyJs_anonymous_997_, Js({'./_export':Js(35.0),'./_string-pad':Js(111.0),'./_user-agent':Js(127.0)})]),'319':Js([PyJs_anonymous_999_, Js({'./_string-trim':Js(113.0)})]),'320':Js([PyJs_anonymous_1002_, Js({'./_string-trim':Js(113.0)})]),'321':Js([PyJs_anonymous_1005_, Js({'./_wks-define':Js(129.0)})]),'322':Js([PyJs_anonymous_1006_, Js({'./_wks-define':Js(129.0)})]),'323':Js([PyJs_anonymous_1007_, Js({'./_export':Js(35.0),'./_global':Js(43.0)})]),'324':Js([PyJs_anonymous_1008_, Js({'./_set-collection-from':Js(99.0)})]),'325':Js([PyJs_anonymous_1009_, Js({'./_set-collection-of':Js(100.0)})]),'326':Js([PyJs_anonymous_1010_, Js({'./_set-collection-from':Js(99.0)})]),'327':Js([PyJs_anonymous_1011_, Js({'./_set-collection-of':Js(100.0)})]),'328':Js([PyJs_anonymous_1012_, Js({'./_global':Js(43.0),'./_hide':Js(45.0),'./_iterators':Js(61.0),'./_object-keys':Js(83.0),'./_redefine':Js(94.0),'./_wks':Js(131.0),'./es6.array.iterator':Js(144.0)})]),'329':Js([PyJs_anonymous_1013_, Js({'./_export':Js(35.0),'./_task':Js(115.0)})]),'330':Js([PyJs_anonymous_1014_, Js({'./_export':Js(35.0),'./_global':Js(43.0),'./_user-agent':Js(127.0)})]),'331':Js([PyJs_anonymous_1018_, Js({'./modules/_core':Js(25.0),'./modules/es6.array.copy-within':Js(134.0),'./modules/es6.array.every':Js(135.0),'./modules/es6.array.fill':Js(136.0),'./modules/es6.array.filter':Js(137.0),'./modules/es6.array.find':Js(139.0),'./modules/es6.array.find-index':Js(138.0),'./modules/es6.array.for-each':Js(140.0),'./modules/es6.array.from':Js(141.0),'./modules/es6.array.index-of':Js(142.0),'./modules/es6.array.is-array':Js(143.0),'./modules/es6.array.iterator':Js(144.0),'./modules/es6.array.join':Js(145.0),'./modules/es6.array.last-index-of':Js(146.0),'./modules/es6.array.map':Js(147.0),'./modules/es6.array.of':Js(148.0),'./modules/es6.array.reduce':Js(150.0),'./modules/es6.array.reduce-right':Js(149.0),'./modules/es6.array.slice':Js(151.0),'./modules/es6.array.some':Js(152.0),'./modules/es6.array.sort':Js(153.0),'./modules/es6.array.species':Js(154.0),'./modules/es6.date.now':Js(155.0),'./modules/es6.date.to-iso-string':Js(156.0),'./modules/es6.date.to-json':Js(157.0),'./modules/es6.date.to-primitive':Js(158.0),'./modules/es6.date.to-string':Js(159.0),'./modules/es6.function.bind':Js(160.0),'./modules/es6.function.has-instance':Js(161.0),'./modules/es6.function.name':Js(162.0),'./modules/es6.map':Js(163.0),'./modules/es6.math.acosh':Js(164.0),'./modules/es6.math.asinh':Js(165.0),'./modules/es6.math.atanh':Js(166.0),'./modules/es6.math.cbrt':Js(167.0),'./modules/es6.math.clz32':Js(168.0),'./modules/es6.math.cosh':Js(169.0),'./modules/es6.math.expm1':Js(170.0),'./modules/es6.math.fround':Js(171.0),'./modules/es6.math.hypot':Js(172.0),'./modules/es6.math.imul':Js(173.0),'./modules/es6.math.log10':Js(174.0),'./modules/es6.math.log1p':Js(175.0),'./modules/es6.math.log2':Js(176.0),'./modules/es6.math.sign':Js(177.0),'./modules/es6.math.sinh':Js(178.0),'./modules/es6.math.tanh':Js(179.0),'./modules/es6.math.trunc':Js(180.0),'./modules/es6.number.constructor':Js(181.0),'./modules/es6.number.epsilon':Js(182.0),'./modules/es6.number.is-finite':Js(183.0),'./modules/es6.number.is-integer':Js(184.0),'./modules/es6.number.is-nan':Js(185.0),'./modules/es6.number.is-safe-integer':Js(186.0),'./modules/es6.number.max-safe-integer':Js(187.0),'./modules/es6.number.min-safe-integer':Js(188.0),'./modules/es6.number.parse-float':Js(189.0),'./modules/es6.number.parse-int':Js(190.0),'./modules/es6.number.to-fixed':Js(191.0),'./modules/es6.number.to-precision':Js(192.0),'./modules/es6.object.assign':Js(193.0),'./modules/es6.object.create':Js(194.0),'./modules/es6.object.define-properties':Js(195.0),'./modules/es6.object.define-property':Js(196.0),'./modules/es6.object.freeze':Js(197.0),'./modules/es6.object.get-own-property-descriptor':Js(198.0),'./modules/es6.object.get-own-property-names':Js(199.0),'./modules/es6.object.get-prototype-of':Js(200.0),'./modules/es6.object.is':Js(204.0),'./modules/es6.object.is-extensible':Js(201.0),'./modules/es6.object.is-frozen':Js(202.0),'./modules/es6.object.is-sealed':Js(203.0),'./modules/es6.object.keys':Js(205.0),'./modules/es6.object.prevent-extensions':Js(206.0),'./modules/es6.object.seal':Js(207.0),'./modules/es6.object.set-prototype-of':Js(208.0),'./modules/es6.object.to-string':Js(209.0),'./modules/es6.parse-float':Js(210.0),'./modules/es6.parse-int':Js(211.0),'./modules/es6.promise':Js(212.0),'./modules/es6.reflect.apply':Js(213.0),'./modules/es6.reflect.construct':Js(214.0),'./modules/es6.reflect.define-property':Js(215.0),'./modules/es6.reflect.delete-property':Js(216.0),'./modules/es6.reflect.enumerate':Js(217.0),'./modules/es6.reflect.get':Js(220.0),'./modules/es6.reflect.get-own-property-descriptor':Js(218.0),'./modules/es6.reflect.get-prototype-of':Js(219.0),'./modules/es6.reflect.has':Js(221.0),'./modules/es6.reflect.is-extensible':Js(222.0),'./modules/es6.reflect.own-keys':Js(223.0),'./modules/es6.reflect.prevent-extensions':Js(224.0),'./modules/es6.reflect.set':Js(226.0),'./modules/es6.reflect.set-prototype-of':Js(225.0),'./modules/es6.regexp.constructor':Js(227.0),'./modules/es6.regexp.exec':Js(228.0),'./modules/es6.regexp.flags':Js(229.0),'./modules/es6.regexp.match':Js(230.0),'./modules/es6.regexp.replace':Js(231.0),'./modules/es6.regexp.search':Js(232.0),'./modules/es6.regexp.split':Js(233.0),'./modules/es6.regexp.to-string':Js(234.0),'./modules/es6.set':Js(235.0),'./modules/es6.string.anchor':Js(236.0),'./modules/es6.string.big':Js(237.0),'./modules/es6.string.blink':Js(238.0),'./modules/es6.string.bold':Js(239.0),'./modules/es6.string.code-point-at':Js(240.0),'./modules/es6.string.ends-with':Js(241.0),'./modules/es6.string.fixed':Js(242.0),'./modules/es6.string.fontcolor':Js(243.0),'./modules/es6.string.fontsize':Js(244.0),'./modules/es6.string.from-code-point':Js(245.0),'./modules/es6.string.includes':Js(246.0),'./modules/es6.string.italics':Js(247.0),'./modules/es6.string.iterator':Js(248.0),'./modules/es6.string.link':Js(249.0),'./modules/es6.string.raw':Js(250.0),'./modules/es6.string.repeat':Js(251.0),'./modules/es6.string.small':Js(252.0),'./modules/es6.string.starts-with':Js(253.0),'./modules/es6.string.strike':Js(254.0),'./modules/es6.string.sub':Js(255.0),'./modules/es6.string.sup':Js(256.0),'./modules/es6.string.trim':Js(257.0),'./modules/es6.symbol':Js(258.0),'./modules/es6.typed.array-buffer':Js(259.0),'./modules/es6.typed.data-view':Js(260.0),'./modules/es6.typed.float32-array':Js(261.0),'./modules/es6.typed.float64-array':Js(262.0),'./modules/es6.typed.int16-array':Js(263.0),'./modules/es6.typed.int32-array':Js(264.0),'./modules/es6.typed.int8-array':Js(265.0),'./modules/es6.typed.uint16-array':Js(266.0),'./modules/es6.typed.uint32-array':Js(267.0),'./modules/es6.typed.uint8-array':Js(268.0),'./modules/es6.typed.uint8-clamped-array':Js(269.0),'./modules/es6.weak-map':Js(270.0),'./modules/es6.weak-set':Js(271.0),'./modules/es7.array.flat-map':Js(272.0),'./modules/es7.array.flatten':Js(273.0),'./modules/es7.array.includes':Js(274.0),'./modules/es7.asap':Js(275.0),'./modules/es7.error.is-error':Js(276.0),'./modules/es7.global':Js(277.0),'./modules/es7.map.from':Js(278.0),'./modules/es7.map.of':Js(279.0),'./modules/es7.map.to-json':Js(280.0),'./modules/es7.math.clamp':Js(281.0),'./modules/es7.math.deg-per-rad':Js(282.0),'./modules/es7.math.degrees':Js(283.0),'./modules/es7.math.fscale':Js(284.0),'./modules/es7.math.iaddh':Js(285.0),'./modules/es7.math.imulh':Js(286.0),'./modules/es7.math.isubh':Js(287.0),'./modules/es7.math.rad-per-deg':Js(288.0),'./modules/es7.math.radians':Js(289.0),'./modules/es7.math.scale':Js(290.0),'./modules/es7.math.signbit':Js(291.0),'./modules/es7.math.umulh':Js(292.0),'./modules/es7.object.define-getter':Js(293.0),'./modules/es7.object.define-setter':Js(294.0),'./modules/es7.object.entries':Js(295.0),'./modules/es7.object.get-own-property-descriptors':Js(296.0),'./modules/es7.object.lookup-getter':Js(297.0),'./modules/es7.object.lookup-setter':Js(298.0),'./modules/es7.object.values':Js(299.0),'./modules/es7.observable':Js(300.0),'./modules/es7.promise.finally':Js(301.0),'./modules/es7.promise.try':Js(302.0),'./modules/es7.reflect.define-metadata':Js(303.0),'./modules/es7.reflect.delete-metadata':Js(304.0),'./modules/es7.reflect.get-metadata':Js(306.0),'./modules/es7.reflect.get-metadata-keys':Js(305.0),'./modules/es7.reflect.get-own-metadata':Js(308.0),'./modules/es7.reflect.get-own-metadata-keys':Js(307.0),'./modules/es7.reflect.has-metadata':Js(309.0),'./modules/es7.reflect.has-own-metadata':Js(310.0),'./modules/es7.reflect.metadata':Js(311.0),'./modules/es7.set.from':Js(312.0),'./modules/es7.set.of':Js(313.0),'./modules/es7.set.to-json':Js(314.0),'./modules/es7.string.at':Js(315.0),'./modules/es7.string.match-all':Js(316.0),'./modules/es7.string.pad-end':Js(317.0),'./modules/es7.string.pad-start':Js(318.0),'./modules/es7.string.trim-left':Js(319.0),'./modules/es7.string.trim-right':Js(320.0),'./modules/es7.symbol.async-iterator':Js(321.0),'./modules/es7.symbol.observable':Js(322.0),'./modules/es7.system.global':Js(323.0),'./modules/es7.weak-map.from':Js(324.0),'./modules/es7.weak-map.of':Js(325.0),'./modules/es7.weak-set.from':Js(326.0),'./modules/es7.weak-set.of':Js(327.0),'./modules/web.dom.iterable':Js(328.0),'./modules/web.immediate':Js(329.0),'./modules/web.timers':Js(330.0)})]),'332':Js([PyJs_anonymous_1019_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0),'./enc-base64':Js(335.0),'./evpkdf':Js(337.0),'./md5':Js(342.0)})]),'333':Js([PyJs_anonymous_1029_, Js({'./core':Js(334.0)})]),'334':Js([PyJs_anonymous_1066_, Js({})]),'335':Js([PyJs_anonymous_1105_, Js({'./core':Js(334.0)})]),'336':Js([PyJs_anonymous_1111_, Js({'./core':Js(334.0)})]),'337':Js([PyJs_anonymous_1119_, Js({'./core':Js(334.0),'./hmac':Js(339.0),'./sha1':Js(358.0)})]),'338':Js([PyJs_anonymous_1126_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'339':Js([PyJs_anonymous_1132_, Js({'./core':Js(334.0)})]),'340':Js([PyJs_anonymous_1140_, Js({'./aes':Js(332.0),'./cipher-core':Js(333.0),'./core':Js(334.0),'./enc-base64':Js(335.0),'./enc-utf16':Js(336.0),'./evpkdf':Js(337.0),'./format-hex':Js(338.0),'./hmac':Js(339.0),'./lib-typedarrays':Js(341.0),'./md5':Js(342.0),'./mode-cfb':Js(343.0),'./mode-ctr':Js(345.0),'./mode-ctr-gladman':Js(344.0),'./mode-ecb':Js(346.0),'./mode-ofb':Js(347.0),'./pad-ansix923':Js(348.0),'./pad-iso10126':Js(349.0),'./pad-iso97971':Js(350.0),'./pad-nopadding':Js(351.0),'./pad-zeropadding':Js(352.0),'./pbkdf2':Js(353.0),'./rabbit':Js(355.0),'./rabbit-legacy':Js(354.0),'./rc4':Js(356.0),'./ripemd160':Js(357.0),'./sha1':Js(358.0),'./sha224':Js(359.0),'./sha256':Js(360.0),'./sha3':Js(361.0),'./sha384':Js(362.0),'./sha512':Js(363.0),'./tripledes':Js(364.0),'./x64-core':Js(365.0)})]),'341':Js([PyJs_anonymous_1145_, Js({'./core':Js(334.0)})]),'342':Js([PyJs_anonymous_1151_, Js({'./core':Js(334.0)})]),'343':Js([PyJs_anonymous_1160_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'344':Js([PyJs_anonymous_1166_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'345':Js([PyJs_anonymous_1171_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'346':Js([PyJs_anonymous_1176_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'347':Js([PyJs_anonymous_1182_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'348':Js([PyJs_anonymous_1187_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'349':Js([PyJs_anonymous_1192_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'350':Js([PyJs_anonymous_1197_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'351':Js([PyJs_anonymous_1202_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'352':Js([PyJs_anonymous_1207_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0)})]),'353':Js([PyJs_anonymous_1212_, Js({'./core':Js(334.0),'./hmac':Js(339.0),'./sha1':Js(358.0)})]),'354':Js([PyJs_anonymous_1219_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0),'./enc-base64':Js(335.0),'./evpkdf':Js(337.0),'./md5':Js(342.0)})]),'355':Js([PyJs_anonymous_1227_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0),'./enc-base64':Js(335.0),'./evpkdf':Js(337.0),'./md5':Js(342.0)})]),'356':Js([PyJs_anonymous_1235_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0),'./enc-base64':Js(335.0),'./evpkdf':Js(337.0),'./md5':Js(342.0)})]),'357':Js([PyJs_anonymous_1242_, Js({'./core':Js(334.0)})]),'358':Js([PyJs_anonymous_1254_, Js({'./core':Js(334.0)})]),'359':Js([PyJs_anonymous_1262_, Js({'./core':Js(334.0),'./sha256':Js(360.0)})]),'360':Js([PyJs_anonymous_1268_, Js({'./core':Js(334.0)})]),'361':Js([PyJs_anonymous_1277_, Js({'./core':Js(334.0),'./x64-core':Js(365.0)})]),'362':Js([PyJs_anonymous_1287_, Js({'./core':Js(334.0),'./sha512':Js(363.0),'./x64-core':Js(365.0)})]),'363':Js([PyJs_anonymous_1294_, Js({'./core':Js(334.0),'./x64-core':Js(365.0)})]),'364':Js([PyJs_anonymous_1304_, Js({'./cipher-core':Js(333.0),'./core':Js(334.0),'./enc-base64':Js(335.0),'./evpkdf':Js(337.0),'./md5':Js(342.0)})]),'365':Js([PyJs_anonymous_1315_, Js({'./core':Js(334.0)})]),'366':Js([PyJs_anonymous_1323_, Js({})])}), Js({}), Js([Js(1.0)]))
|
|
PyJs_LONG_1357_()
|
|
pass
|
|
pass
|
|
pass
|
|
pass
|
|
var.put('crypto_js', var.get('getFromGlobals')(Js('crypto-js')))
|
|
var.get('crypto_js')
|