Last active
April 6, 2016 16:13
-
-
Save JoshCheek/ba849f49553dae4ae66a to your computer and use it in GitHub Desktop.
Typing game 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated by Opal 0.9.0 */ | |
(function(Opal) { | |
Opal.dynamic_require_severity = "error"; | |
var OPAL_CONFIG = { method_missing: false, arity_check: false, freezing: true, tainting: true }; | |
function $rb_plus(lhs, rhs) { | |
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs); | |
} | |
function $rb_divide(lhs, rhs) { | |
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs / rhs : lhs['$/'](rhs); | |
} | |
function $rb_times(lhs, rhs) { | |
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs * rhs : lhs['$*'](rhs); | |
} | |
function $rb_minus(lhs, rhs) { | |
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs); | |
} | |
function $rb_lt(lhs, rhs) { | |
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs < rhs : lhs['$<'](rhs); | |
} | |
function $rb_le(lhs, rhs) { | |
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs <= rhs : lhs['$<='](rhs); | |
} | |
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass; | |
return (function($base, $super) { | |
function $Game(){}; | |
var self = $Game = $klass($base, $super, 'Game', $Game); | |
var def = self.$$proto, $scope = self.$$scope; | |
def.finished = def.last_errored = def.row_indexes = nil; | |
Opal.defn(self, '$initialize', function() { | |
var self = this; | |
return self.$reset(0); | |
}); | |
Opal.defn(self, '$start', function(milliseconds) { | |
var self = this; | |
return self.$reset(milliseconds); | |
}); | |
Opal.defn(self, '$time_passes', function(milliseconds) { | |
var $a, $b, self = this; | |
if ((($a = self['$finished?']()) !== nil && (!$a.$$is_boolean || $a == true))) { | |
return nil}; | |
return (($a = [milliseconds]), $b = self, $b['$last_milliseconds='].apply($b, $a), $a[$a.length-1]); | |
}); | |
Opal.defn(self, '$finished?', function() { | |
var self = this; | |
return self.finished; | |
}); | |
Opal.defn(self, '$last_errored?', function() { | |
var self = this; | |
return self.last_errored; | |
}); | |
Opal.defn(self, '$key_down', function(key, milliseconds) { | |
var $a, $b, self = this; | |
if ((($a = self['$finished?']()) !== nil && (!$a.$$is_boolean || $a == true))) { | |
return nil}; | |
(($a = [milliseconds]), $b = self, $b['$last_milliseconds='].apply($b, $a), $a[$a.length-1]); | |
self.$keys_pressed()['$<<'](key); | |
if (self.$raw_text()['$[]'](self.$current_index())['$=='](key)) { | |
($a = self, $a['$current_index=']($rb_plus($a.$current_index(), 1))); | |
($a = self, $a['$num_correct=']($rb_plus($a.$num_correct(), 1))); | |
(($a = [false]), $b = self, $b['$last_errored='].apply($b, $a), $a[$a.length-1]); | |
} else { | |
($a = self, $a['$num_incorrect=']($rb_plus($a.$num_incorrect(), 1))); | |
(($a = [true]), $b = self, $b['$last_errored='].apply($b, $a), $a[$a.length-1]); | |
}; | |
if (self.$current_index()['$=='](self.$raw_text().$length())) { | |
return (($a = [true]), $b = self, $b['$finished='].apply($b, $a), $a[$a.length-1]) | |
} else { | |
return nil | |
}; | |
}); | |
Opal.defn(self, '$wpm', function() { | |
var $a, self = this, seconds_in_minute = nil, chars_in_word = nil; | |
if ((($a = self.$seconds_duration()['$zero?']()) !== nil && (!$a.$$is_boolean || $a == true))) { | |
return 0}; | |
seconds_in_minute = 60; | |
chars_in_word = 5; | |
return ($rb_divide($rb_divide($rb_times(self.$num_correct(), seconds_in_minute), self.$seconds_duration()), chars_in_word)).$to_i(); | |
}); | |
Opal.defn(self, '$seconds_duration', function() { | |
var self = this; | |
return $rb_divide(($rb_minus(self.$last_milliseconds(), self.$start_milliseconds())), 1000.0); | |
}); | |
Opal.defn(self, '$formatted_time', function() { | |
var $a, self = this, d = nil, remainder = nil, seconds = nil, minutes = nil, hours = nil, time = nil; | |
d = self.$seconds_duration(); | |
remainder = ($rb_times(d, 10)).$to_i()['$%'](10); | |
d = d.$to_i(); | |
seconds = (d['$%'](60)).$to_s(); | |
while ($rb_lt(seconds.$length(), 2)) { | |
seconds = $rb_plus("0", seconds)}; | |
d = ($rb_divide(d, 60)).$to_i(); | |
minutes = (d['$%'](60)).$to_s(); | |
while ($rb_lt(minutes.$length(), 2)) { | |
minutes = $rb_plus("0", minutes)}; | |
d = ($rb_divide(d, 60)).$to_i(); | |
hours = (d['$%'](60)).$to_s(); | |
while ($rb_lt(hours.$length(), 2)) { | |
hours = $rb_plus("0", hours)}; | |
time = ""; | |
if (hours['$==']("00")) { | |
} else { | |
time = $rb_plus(time, "" + (hours) + ":") | |
}; | |
if (minutes['$==']("00")) { | |
} else { | |
time = $rb_plus(time, "" + (minutes) + ":") | |
}; | |
time = $rb_plus(time, "" + (seconds) + "." + (remainder)); | |
return time; | |
}); | |
Opal.defn(self, '$index_to_row', function(index) { | |
var $a, $b, $c, TMP_1, TMP_2, self = this, indexes = nil, row = nil; | |
((($a = self.row_indexes) !== false && $a !== nil) ? $a : self.row_indexes = (function() {indexes = []; | |
($b = ($c = self.$raw_text().$chars().$map()).$with_index, $b.$$p = (TMP_1 = function(char$, i){var self = TMP_1.$$s || this, $a, $b; | |
if (char$ == null) char$ = nil;if (i == null) i = nil; | |
if ((($a = ((($b = char$['$==']("\r")) !== false && $b !== nil) ? $b : char$['$==']("\n"))) !== nil && (!$a.$$is_boolean || $a == true))) { | |
return indexes['$<<'](i) | |
} else { | |
return nil | |
}}, TMP_1.$$s = self, TMP_1), $b).call($c); | |
return indexes;})()); | |
row = 0; | |
($a = ($b = self.row_indexes).$each, $a.$$p = (TMP_2 = function(crnt_row_index){var self = TMP_2.$$s || this; | |
if (crnt_row_index == null) crnt_row_index = nil; | |
if ($rb_le(index, crnt_row_index)) { | |
return ($breaker.$v = nil, $breaker)}; | |
return row = $rb_plus(row, 1);}, TMP_2.$$s = self, TMP_2), $a).call($b); | |
if ((($a = self['$finished?']()) !== nil && (!$a.$$is_boolean || $a == true))) { | |
row = $rb_plus(row, 1)}; | |
return row; | |
}); | |
Opal.defn(self, '$index_to_col', function(index) { | |
var $a, $b, $c, $d, self = this, i = nil; | |
i = $rb_minus(index, 1); | |
while ((($b = ($c = (($d = $rb_le(0, i)) ? self.$raw_text()['$[]'](i)['$!=']("\r") : $rb_le(0, i)), $c !== false && $c !== nil ?self.$raw_text()['$[]'](i)['$!=']("\n") : $c)) !== nil && (!$b.$$is_boolean || $b == true))) { | |
i = $rb_minus(i, 1)}; | |
return $rb_minus($rb_minus(index, i), 1); | |
}); | |
Opal.defn(self, '$each_char', function(fn) { | |
var $a, $b, TMP_3, self = this, row = nil, i = nil, col = nil; | |
row = 0; | |
i = col = -1; | |
return ($a = ($b = self.$raw_text()).$each_char, $a.$$p = (TMP_3 = function(char$){var self = TMP_3.$$s || this, $a, $b; | |
if (char$ == null) char$ = nil; | |
i = $rb_plus(i, 1); | |
col = $rb_plus(col, 1); | |
fn.$call(char$, i, row, col); | |
if ((($a = ((($b = self.$raw_text()['$[]'](i)['$==']("\r")) !== false && $b !== nil) ? $b : self.$raw_text()['$[]'](i)['$==']("\n"))) !== nil && (!$a.$$is_boolean || $a == true))) { | |
row = $rb_plus(row, 1); | |
return col = -1; | |
} else { | |
return nil | |
};}, TMP_3.$$s = self, TMP_3), $a).call($b); | |
}); | |
self.$private(); | |
self.$attr_accessor("last_milliseconds", "start_milliseconds"); | |
self.$attr_accessor("raw_text", "current_index", "num_correct", "num_incorrect", "keys_pressed", "finished", "last_errored"); | |
return (Opal.defn(self, '$reset', function(milliseconds) { | |
var $a, $b, self = this; | |
(($a = [false]), $b = self, $b['$last_errored='].apply($b, $a), $a[$a.length-1]); | |
(($a = [false]), $b = self, $b['$finished='].apply($b, $a), $a[$a.length-1]); | |
(($a = [milliseconds]), $b = self, $b['$start_milliseconds='].apply($b, $a), $a[$a.length-1]); | |
(($a = [milliseconds]), $b = self, $b['$last_milliseconds='].apply($b, $a), $a[$a.length-1]); | |
(($a = [0]), $b = self, $b['$current_index='].apply($b, $a), $a[$a.length-1]); | |
(($a = [0]), $b = self, $b['$num_correct='].apply($b, $a), $a[$a.length-1]); | |
(($a = [0]), $b = self, $b['$num_incorrect='].apply($b, $a), $a[$a.length-1]); | |
(($a = [[]]), $b = self, $b['$keys_pressed='].apply($b, $a), $a[$a.length-1]); | |
(($a = [" abc\n def\n ghi\n".$gsub(/^ */, "")]), $b = self, $b['$raw_text='].apply($b, $a), $a[$a.length-1]); | |
if ((($a = true) !== nil && (!$a.$$is_boolean || $a == true))) { | |
return (($a = [" So, that's probably everything there is to be found,\n we looked through the code, we looked all around.\n And sure some features are just for the laughs,\n provided on the compiling comedian's behalf.\n\n But you, dear reader, with your attention that spans\n approximately infinite volumes, since this blog first began,\n think what you could achieve if this was what ran\n on production servers in the cloud or on land. [disclaimer]\n\n With your instruction pointer, pointing at places anew.\n And your locations all labeled and ready to ensue.\n No need for a break, a retry, a redo\n Will you be control flowed? No! That won't happen to you!\n Just think of it! Oh! The places you'll goto!\n".$gsub(/^ */, "")]), $b = self, $b['$raw_text='].apply($b, $a), $a[$a.length-1]) | |
} else { | |
return nil | |
}; | |
}), nil) && 'reset'; | |
})($scope.base, null) | |
})(Opal); | |
/* Generated by Opal 0.9.0 */ | |
(function(Opal) { | |
Opal.dynamic_require_severity = "error"; | |
var OPAL_CONFIG = { method_missing: false, arity_check: false, freezing: true, tainting: true }; | |
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice; | |
return $scope.get('Kernel').$exit() | |
})(Opal); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Game | |
def initialize | |
reset(0) | |
end | |
def start(milliseconds) | |
reset(milliseconds) | |
end | |
def time_passes(milliseconds) | |
return if finished? | |
self.last_milliseconds = milliseconds | |
end | |
def finished? | |
@finished | |
end | |
def last_errored? | |
@last_errored | |
end | |
def key_down(key, milliseconds) | |
return if finished? | |
self.last_milliseconds = milliseconds | |
self.keys_pressed << key | |
if raw_text[current_index] == key | |
self.current_index += 1 | |
self.num_correct += 1 | |
self.last_errored = false | |
else | |
self.num_incorrect += 1 | |
self.last_errored = true | |
end | |
self.finished = true if self.current_index == raw_text.length | |
end | |
# better algo at http://www.speedtypingonline.com/typing-equations | |
def wpm | |
return 0 if seconds_duration.zero? | |
seconds_in_minute = 60 | |
chars_in_word = 5 | |
(num_correct * seconds_in_minute / seconds_duration / chars_in_word).to_i | |
end | |
def seconds_duration | |
(last_milliseconds - start_milliseconds) / 1000.0 | |
end | |
def formatted_time | |
d = seconds_duration | |
remainder = (d*10).to_i % 10 | |
d = d.to_i | |
seconds = (d%60).to_s | |
seconds = "0" + seconds while seconds.length < 2 | |
d = (d/60).to_i | |
minutes = (d%60).to_s | |
minutes = "0" + minutes while minutes.length < 2 | |
d = (d/60).to_i | |
hours = (d%60).to_s | |
hours = "0" + hours while hours.length < 2 | |
time = "" | |
time += "#{hours}:" unless hours == "00" | |
time += "#{minutes}:" unless minutes == "00" | |
time += "#{seconds}.#{remainder}" | |
time | |
end | |
def index_to_row(index) | |
@row_indexes ||= begin | |
indexes = [] | |
raw_text.chars.map.with_index { |char, i| | |
indexes << i if char == "\r" || char == "\n" | |
} | |
indexes | |
end | |
row = 0 | |
@row_indexes.each do |crnt_row_index| | |
break if index <= crnt_row_index | |
row += 1 | |
end | |
row += 1 if finished? | |
row | |
end | |
def index_to_col(index) | |
i = index-1 | |
i -= 1 while 0 <= i && raw_text[i] != "\r" && raw_text[i] != "\n" | |
index - i - 1 | |
end | |
def each_char(fn) | |
row = 0 | |
i = col = -1 | |
raw_text.each_char do |char| | |
i += 1 | |
col += 1 | |
fn.call(char, i, row, col) | |
if raw_text[i] == "\r" || raw_text[i] == "\n" | |
row += 1 | |
col = -1 | |
end | |
end | |
end | |
private | |
attr_accessor :last_milliseconds, :start_milliseconds | |
attr_accessor :raw_text, :current_index, :num_correct, :num_incorrect, :keys_pressed, :finished, :last_errored | |
def reset(milliseconds) | |
self.last_errored = false | |
self.finished = false | |
self.start_milliseconds = milliseconds | |
self.last_milliseconds = milliseconds | |
self.current_index = 0 | |
self.num_correct = 0 | |
self.num_incorrect = 0 | |
self.keys_pressed = [] | |
self.raw_text = <<-TEXT.gsub(/^ */, '') | |
abc | |
def | |
ghi | |
TEXT | |
if true | |
self.raw_text = <<-TEXT.gsub(/^ */, '') | |
So, that's probably everything there is to be found, | |
we looked through the code, we looked all around. | |
And sure some features are just for the laughs, | |
provided on the compiling comedian's behalf. | |
But you, dear reader, with your attention that spans | |
approximately infinite volumes, since this blog first began, | |
think what you could achieve if this was what ran | |
on production servers in the cloud or on land. [disclaimer] | |
With your instruction pointer, pointing at places anew. | |
And your locations all labeled and ready to ensue. | |
No need for a break, a retry, a redo | |
Will you be control flowed? No! That won't happen to you! | |
Just think of it! Oh! The places you'll goto! | |
TEXT | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<style> | |
/* Colours taken from "hybrid" vim theme https://github.com/w0ng/vim-hybrid */ | |
.game { | |
padding: 1em; | |
background: #1d1f21; | |
font-size: 3em; | |
font-family: sans-serif; | |
} | |
/* ----- Stats ----- */ | |
.game .stats { | |
display: block; | |
border: none; | |
} | |
.game .stats .stat { | |
display: inline-block; | |
margin-right: 1em; | |
} | |
.game .stats .label { | |
display: inline-block; | |
color: #81a2be; | |
} | |
.game .stats .value { | |
display: inline-block; | |
color: #b294bb; | |
} | |
/* ----- Text ----- */ | |
.game .text { | |
margin: 0; | |
margin-top: 1em; | |
padding: 0em; | |
} | |
.game .text .char { | |
color: #c5c8c6; | |
} | |
.game .text .char.current { | |
color: #303030; | |
background: #f0c674; | |
padding: 0.1em; | |
} | |
.game .text .char.completed { | |
color: #707880; | |
} | |
.game .text .char.current.error { | |
background: #cc6666; | |
} | |
.game .text .row { | |
height: 1em; | |
} | |
.game .text .row.completed { | |
display: none; | |
} | |
</style> | |
<body class="game" onkeydown="keyDown(event)"> | |
<div class="stats"> | |
<div class="stat wpm"> | |
<div class="label">WPM</div> | |
<div class="value"></div> | |
</div> | |
<div class="stat correct"> | |
<div class="label">Correct</div> | |
<div class="value"></div> | |
</div> | |
<div class="stat incorrect"> | |
<div class="label">Incorrect</div> | |
<div class="value"></div> | |
</div> | |
<div class="stat time"> | |
<div class="label">Time</div> | |
<div class="value"></div> | |
</div> | |
</div> | |
<p class="text"> | |
</p> | |
</body> | |
<script type="text/javascript" src="opal.min.js"></script> | |
<script type="text/javascript" src="game.js"></script> | |
<script type="text/javascript"> | |
'use strict'; | |
function ready(fn) { | |
if (document.readyState != 'loading') { fn(); } | |
else { document.addEventListener('DOMContentLoaded', fn); } | |
} | |
ready(function() { | |
function BrowserGame(rootElement, game) { | |
var nullChar = document.createElement('span'); | |
var forEach = Array.prototype.forEach; | |
var find = Array.prototype.find; | |
var that = this; | |
that.game = game | |
that.rootElement = rootElement; | |
that.domWpm = rootElement.querySelector('.wpm .value'); | |
that.domCorrect = rootElement.querySelector('.correct .value'); | |
that.domIncorrect = rootElement.querySelector('.incorrect .value'); | |
that.domTime = rootElement.querySelector('.time .value'); | |
that.domText = rootElement.querySelector('.text'); | |
that.currentChar = nullChar;; | |
that.start = function() { | |
that.domText.innerHTML = ""; | |
that.game.$each_char(function(char, index, rowNumber, colNumber) { | |
var domRow = that.ensureRow(rowNumber); | |
var domChar = document.createElement('span'); | |
domChar.classList.add('char'); | |
domChar.innerHTML = char; | |
domChar.colNumber = colNumber; | |
domRow.appendChild(domChar); | |
}); | |
var result = that.game.$start(Date.now()); | |
that.update(result); | |
that.domText.focus(); | |
} | |
that.timePasses = function() { | |
that.game.$time_passes(Date.now()); | |
that.update(); | |
} | |
that.keyDown = function(key) { | |
game.$key_down(key, Date.now()); | |
that.update(); | |
} | |
that.update = function() { | |
that.updateCursor(); | |
that.setFirstRow(game.$index_to_row(game.$current_index())); | |
that.updateStats(); | |
} | |
that.updateCursor = function() { | |
var oldCursor = that.currentChar; | |
var newCursor = that.findChar(game.$current_index()); | |
if(game['$last_errored?']()) { | |
oldCursor.classList.add('error'); | |
} else if(oldCursor !== newCursor) { | |
newCursor.classList.add('current'); | |
oldCursor.classList.remove('current'); | |
oldCursor.classList.add('completed'); | |
that.currentChar = newCursor; | |
} | |
} | |
that.findChar = function(currentIndex) { | |
var rowNumber = game.$index_to_row(currentIndex); | |
var colNumber = game.$index_to_col(currentIndex); | |
var found = that.findCol(that.findRow(rowNumber), colNumber); | |
return found; | |
} | |
that.findRow = function(rowNumber) { | |
var rows = that.domText.children; | |
for(var i=0; i<rows.length; ++i) | |
if(rows[i].rowNumber === rowNumber) | |
return rows[i]; | |
} | |
that.findCol = function(row, colNumber) { | |
if(!row) return nullChar; | |
var children = row.children; | |
for(var i=0; i<children.length; ++i) | |
if(children[i].colNumber === colNumber) | |
return children[i]; | |
} | |
that.ensureRow = function(rowNumber) { | |
var row = that.findRow(rowNumber); | |
if(row) return row; | |
row = document.createElement('div'); | |
row.classList.add('row'); | |
row.rowNumber = rowNumber; | |
that.domText.appendChild(row); | |
return row; | |
} | |
that.setFirstRow = function(rowNumber) { | |
var rows = that.domText.children; | |
for(var i=0; i<rows.length; ++i) { | |
var row = rows[i]; | |
if(row.rowNumber < rowNumber) { | |
row.classList.remove("current"); | |
row.classList.add("completed"); | |
} else { | |
if(row.rowNumber === rowNumber) | |
row.classList.add("current"); | |
return; | |
} | |
} | |
} | |
that.updateStats = function() { | |
that.domWpm.innerHTML = game.$wpm(); | |
that.domCorrect.innerHTML = game.$num_correct(); | |
that.domIncorrect.innerHTML = game.$num_incorrect(); | |
that.domTime.innerHTML = game.$formatted_time(); | |
} | |
} | |
window.keyDown = function() { | |
console.log("This should have been overridden!"); | |
}; | |
// get in the queue so that we run after the ruby has been compiled | |
setTimeout(function() { | |
window.game = Opal.Game.$new(); | |
window.browserGame = new BrowserGame(document, game); | |
window.keyDown = function(event) { | |
if(event.ctrlKey || event.metaKey || event.altKey) return; | |
var code = event.charCode || event.keyCode || event.which; | |
if(code === 16) return; // shift key... apparently | |
var keyChar = String.fromCharCode(code); | |
var origkeychar = keyChar; | |
event.preventDefault(); | |
if(event.shiftKey) keyChar = keyChar.toUpperCase(); | |
else keyChar = keyChar.toLowerCase(); | |
// uhm, browser key events are apparently fucked | |
// code | lowercase | uppercase | what the browser comes up with... | |
[ [192, "`", "~", "À"], | |
[189, "-", "_", "½"], | |
[187, "=", "+", "»"], | |
[219, "[", "{", "Û"], | |
[221, "]", "}", "Ý"], | |
[220, "\\", "|", "Ü"], | |
[186, ";", ":", "º"], | |
[222, "'", '"', "Þ"], | |
[188, ",", "<", "¼"], | |
[190, ".", ">", "¾"], | |
[191, "/", "?", "¿"], | |
[13, "\n", "\n", "\r"], | |
// sigh, it doesn't give correct char codes for special codes over the numbers, either | |
[48, "0", ")", "0"], | |
[49, "1", "!", "1"], | |
[50, "2", "@", "2"], | |
[51, "3", "#", "3"], | |
[52, "4", "$", "4"], | |
[53, "5", "%", "5"], | |
[54, "6", "^", "6"], | |
[55, "7", "&", "7"], | |
[56, "8", "*", "8"], | |
[57, "9", "(", "9"], | |
].forEach(function(correction) { | |
if(code === correction[0]) | |
if(event.shiftKey) keyChar = correction[2]; | |
else keyChar = correction[1]; | |
}); | |
window.browserGame.keyDown(keyChar); | |
} | |
window.browserGame.start(); | |
var clockTicks = 0; | |
function clockTick() { | |
if(clockTicks % 3 == 0) window.browserGame.timePasses(); | |
++clockTicks; | |
window.requestAnimationFrame(clockTick); | |
} | |
clockTick(); | |
}, 0); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Opal.modules["set"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_le(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<=rhs:lhs["$<="](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$module=Opal.module;Opal.add_stubs(["$include","$new","$nil?","$===","$raise","$each","$add","$call","$merge","$class","$respond_to?","$subtract","$dup","$join","$to_a","$equal?","$instance_of?","$==","$instance_variable_get","$is_a?","$size","$all?","$include?","$[]=","$enum_for","$[]","$<<","$replace","$delete","$select","$each_key","$to_proc","$empty?","$eql?","$instance_eval","$clear","$<","$<=","$keys"]);(function($base,$super){function $Set(){}var self=$Set=$klass($base,$super,"Set",$Set);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_4,TMP_7,TMP_9,TMP_12;def.hash=nil;self.$include($scope.get("Enumerable"));Opal.defs(self,"$[]",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var ary=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){ary[arg_index]=arguments[arg_index+0]}return self.$new(ary)});Opal.defn(self,"$initialize",TMP_1=function(enum$){var $a,$b,TMP_2,self=this,$iter=TMP_1.$$p,block=$iter||nil;if(enum$==null){enum$=nil}TMP_1.$$p=null;self.hash=$scope.get("Hash").$new();if(($a=enum$["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}if(($a=$scope.get("Enumerable")["$==="](enum$))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"value must be enumerable")}if(block!==false&&block!==nil){return($a=($b=enum$).$each,$a.$$p=(TMP_2=function(item){var self=TMP_2.$$s||this;if(item==null)item=nil;return self.$add(block.$call(item))},TMP_2.$$s=self,TMP_2),$a).call($b)}else{return self.$merge(enum$)}});Opal.defn(self,"$dup",function(){var self=this,result=nil;result=self.$class().$new();return result.$merge(self)});Opal.defn(self,"$-",function(enum$){var $a,self=this;if(($a=enum$["$respond_to?"]("each"))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"value must be enumerable")}return self.$dup().$subtract(enum$)});Opal.alias(self,"difference","-");Opal.defn(self,"$inspect",function(){var self=this;return"#<Set: {"+self.$to_a().$join(",")+"}>"});Opal.defn(self,"$==",function(other){var $a,$b,TMP_3,self=this;if(($a=self["$equal?"](other))!==nil&&(!$a.$$is_boolean||$a==true)){return true}else if(($a=other["$instance_of?"](self.$class()))!==nil&&(!$a.$$is_boolean||$a==true)){return self.hash["$=="](other.$instance_variable_get("@hash"))}else if(($a=($b=other["$is_a?"]($scope.get("Set")),$b!==false&&$b!==nil?self.$size()["$=="](other.$size()):$b))!==nil&&(!$a.$$is_boolean||$a==true)){return($a=($b=other)["$all?"],$a.$$p=(TMP_3=function(o){var self=TMP_3.$$s||this;if(self.hash==null)self.hash=nil;if(o==null)o=nil;return self.hash["$include?"](o)},TMP_3.$$s=self,TMP_3),$a).call($b)}else{return false}});Opal.defn(self,"$add",function(o){var self=this;self.hash["$[]="](o,true);return self});Opal.alias(self,"<<","add");Opal.defn(self,"$classify",TMP_4=function(){var $a,$b,TMP_5,$c,TMP_6,self=this,$iter=TMP_4.$$p,block=$iter||nil,result=nil;TMP_4.$$p=null;if(block!==nil){}else{return self.$enum_for("classify")}result=($a=($b=$scope.get("Hash")).$new,$a.$$p=(TMP_5=function(h,k){var self=TMP_5.$$s||this;if(h==null)h=nil;if(k==null)k=nil;return h["$[]="](k,self.$class().$new())},TMP_5.$$s=self,TMP_5),$a).call($b);($a=($c=self).$each,$a.$$p=(TMP_6=function(item){var self=TMP_6.$$s||this,$a;if(item==null)item=nil;return result["$[]"](($a=Opal.yield1(block,item))===$breaker?$breaker.$v:$a).$add(item)},TMP_6.$$s=self,TMP_6),$a).call($c);return result});Opal.defn(self,"$collect!",TMP_7=function(){var $a,$b,TMP_8,self=this,$iter=TMP_7.$$p,block=$iter||nil,result=nil;TMP_7.$$p=null;if(block!==nil){}else{return self.$enum_for("collect!")}result=self.$class().$new();($a=($b=self).$each,$a.$$p=(TMP_8=function(item){var self=TMP_8.$$s||this,$a;if(item==null)item=nil;return result["$<<"](($a=Opal.yield1(block,item))===$breaker?$breaker.$v:$a)},TMP_8.$$s=self,TMP_8),$a).call($b);return self.$replace(result)});Opal.alias(self,"map!","collect!");Opal.defn(self,"$delete",function(o){var self=this;self.hash.$delete(o);return self});Opal.defn(self,"$delete?",function(o){var $a,self=this;if(($a=self["$include?"](o))!==nil&&(!$a.$$is_boolean||$a==true)){self.$delete(o);return self}else{return nil}});Opal.defn(self,"$delete_if",TMP_9=function(){try{var $a,$b,TMP_10,$c,$d,TMP_11,self=this,$iter=TMP_9.$$p,$yield=$iter||nil;TMP_9.$$p=null;($a=$yield!==nil)!==false&&$a!==nil?$a:Opal.ret(self.$enum_for("delete_if"));($a=($b=($c=($d=self).$select,$c.$$p=(TMP_11=function(o){var self=TMP_11.$$s||this,$a;if(o==null)o=nil;return $a=Opal.yield1($yield,o),$a===$breaker?$a:$a},TMP_11.$$s=self,TMP_11),$c).call($d)).$each,$a.$$p=(TMP_10=function(o){var self=TMP_10.$$s||this;if(self.hash==null)self.hash=nil;if(o==null)o=nil;return self.hash.$delete(o)},TMP_10.$$s=self,TMP_10),$a).call($b);return self}catch($returner){if($returner===Opal.returner){return $returner.$v}throw $returner}});Opal.defn(self,"$add?",function(o){var $a,self=this;if(($a=self["$include?"](o))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self.$add(o)}});Opal.defn(self,"$each",TMP_12=function(){var $a,$b,self=this,$iter=TMP_12.$$p,block=$iter||nil;TMP_12.$$p=null;if(block!==nil){}else{return self.$enum_for("each")}($a=($b=self.hash).$each_key,$a.$$p=block.$to_proc(),$a).call($b);return self});Opal.defn(self,"$empty?",function(){var self=this;return self.hash["$empty?"]()});Opal.defn(self,"$eql?",function(other){var $a,$b,TMP_13,self=this;return self.hash["$eql?"](($a=($b=other).$instance_eval,$a.$$p=(TMP_13=function(){var self=TMP_13.$$s||this;if(self.hash==null)self.hash=nil;return self.hash},TMP_13.$$s=self,TMP_13),$a).call($b))});Opal.defn(self,"$clear",function(){var self=this;self.hash.$clear();return self});Opal.defn(self,"$include?",function(o){var self=this;return self.hash["$include?"](o)});Opal.alias(self,"member?","include?");Opal.defn(self,"$merge",function(enum$){var $a,$b,TMP_14,self=this;($a=($b=enum$).$each,$a.$$p=(TMP_14=function(item){var self=TMP_14.$$s||this;if(item==null)item=nil;return self.$add(item)},TMP_14.$$s=self,TMP_14),$a).call($b);return self});Opal.defn(self,"$replace",function(enum$){var self=this;self.$clear();self.$merge(enum$);return self});Opal.defn(self,"$size",function(){var self=this;return self.hash.$size()});Opal.alias(self,"length","size");Opal.defn(self,"$subtract",function(enum$){var $a,$b,TMP_15,self=this;($a=($b=enum$).$each,$a.$$p=(TMP_15=function(item){var self=TMP_15.$$s||this;if(item==null)item=nil;return self.$delete(item)},TMP_15.$$s=self,TMP_15),$a).call($b);return self});Opal.defn(self,"$|",function(enum$){var $a,self=this;if(($a=enum$["$respond_to?"]("each"))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"value must be enumerable")}return self.$dup().$merge(enum$)});Opal.defn(self,"$superset?",function(set){var $a,$b,TMP_16,self=this;($a=set["$is_a?"]($scope.get("Set")))!==false&&$a!==nil?$a:self.$raise($scope.get("ArgumentError"),"value must be a set");if($rb_lt(self.$size(),set.$size())){return false}return($a=($b=set)["$all?"],$a.$$p=(TMP_16=function(o){var self=TMP_16.$$s||this;if(o==null)o=nil;return self["$include?"](o)},TMP_16.$$s=self,TMP_16),$a).call($b)});Opal.alias(self,">=","superset?");Opal.defn(self,"$proper_superset?",function(set){var $a,$b,TMP_17,self=this;($a=set["$is_a?"]($scope.get("Set")))!==false&&$a!==nil?$a:self.$raise($scope.get("ArgumentError"),"value must be a set");if($rb_le(self.$size(),set.$size())){return false}return($a=($b=set)["$all?"],$a.$$p=(TMP_17=function(o){var self=TMP_17.$$s||this;if(o==null)o=nil;return self["$include?"](o)},TMP_17.$$s=self,TMP_17),$a).call($b)});Opal.alias(self,">","proper_superset?");Opal.defn(self,"$subset?",function(set){var $a,$b,TMP_18,self=this;($a=set["$is_a?"]($scope.get("Set")))!==false&&$a!==nil?$a:self.$raise($scope.get("ArgumentError"),"value must be a set");if($rb_lt(set.$size(),self.$size())){return false}return($a=($b=self)["$all?"],$a.$$p=(TMP_18=function(o){var self=TMP_18.$$s||this;if(o==null)o=nil;return set["$include?"](o)},TMP_18.$$s=self,TMP_18),$a).call($b)});Opal.alias(self,"<=","subset?");Opal.defn(self,"$proper_subset?",function(set){var $a,$b,TMP_19,self=this;($a=set["$is_a?"]($scope.get("Set")))!==false&&$a!==nil?$a:self.$raise($scope.get("ArgumentError"),"value must be a set");if($rb_le(set.$size(),self.$size())){return false}return($a=($b=self)["$all?"],$a.$$p=(TMP_19=function(o){var self=TMP_19.$$s||this;if(o==null)o=nil;return set["$include?"](o)},TMP_19.$$s=self,TMP_19),$a).call($b)});Opal.alias(self,"<","proper_subset?");Opal.alias(self,"+","|");Opal.alias(self,"union","|");return(Opal.defn(self,"$to_a",function(){var self=this;return self.hash.$keys()}),nil)&&"to_a"})($scope.base,null);return function($base){var self=$module($base,"Enumerable");var def=self.$$proto,$scope=self.$$scope,TMP_20;Opal.defn(self,"$to_set",TMP_20=function(klass){var $a,$b,self=this,$iter=TMP_20.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}if(klass==null){klass=$scope.get("Set")}TMP_20.$$p=null;return($a=($b=klass).$new,$a.$$p=block.$to_proc(),$a).apply($b,[self].concat(Opal.to_a(args)))})}($scope.base)};Opal.modules["opal/parser/sexp"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$attr_reader","$attr_accessor","$[]","$[]=","$send","$to_proc","$<<","$push","$new","$dup","$is_a?","$==","$array","$join","$map","$inspect","$line"]);return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $Sexp(){}var self=$Sexp=$klass($base,$super,"Sexp",$Sexp);var def=self.$$proto,$scope=self.$$scope,TMP_1;def.array=def.source=nil;self.$attr_reader("array");self.$attr_accessor("source");Opal.defn(self,"$initialize",function(args){var self=this;return self.array=args});Opal.defn(self,"$type",function(){var self=this;return self.array["$[]"](0)});Opal.defn(self,"$type=",function(type){var self=this;return self.array["$[]="](0,type)});Opal.defn(self,"$children",function(){var self=this;return self.array["$[]"]($range(1,-1,false))});Opal.defn(self,"$method_missing",TMP_1=function(sym){var $a,$b,self=this,$iter=TMP_1.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}TMP_1.$$p=null;return($a=($b=self.array).$send,$a.$$p=block.$to_proc(),$a).apply($b,[sym].concat(Opal.to_a(args)))});Opal.defn(self,"$<<",function(other){var self=this;self.array["$<<"](other);return self});Opal.defn(self,"$push",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var parts=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){parts[arg_index]=arguments[arg_index+0]}($a=self.array).$push.apply($a,Opal.to_a(parts));return self});Opal.defn(self,"$to_ary",function(){var self=this;return self.array});Opal.defn(self,"$dup",function(){var self=this;return $scope.get("Sexp").$new(self.array.$dup())});Opal.defn(self,"$==",function(other){var $a,self=this;if(($a=other["$is_a?"]($scope.get("Sexp")))!==nil&&(!$a.$$is_boolean||$a==true)){return self.array["$=="](other.$array())}else{return self.array["$=="](other)}});Opal.alias(self,"eql?","==");Opal.defn(self,"$line",function(){var $a,self=this;return $a=self.source,$a!==false&&$a!==nil?self.source["$[]"](0):$a});Opal.defn(self,"$column",function(){var $a,self=this;return $a=self.source,$a!==false&&$a!==nil?self.source["$[]"](1):$a});Opal.defn(self,"$inspect",function(){var $a,$b,TMP_2,self=this;return"("+($a=($b=self.array).$map,$a.$$p=(TMP_2=function(e){var self=TMP_2.$$s||this;if(e==null)e=nil;return e.$inspect()},TMP_2.$$s=self,TMP_2),$a).call($b).$join(", ")+")"});Opal.defn(self,"$pretty_inspect",function(){var $a,$b,TMP_3,self=this;return"("+function(){if(($a=self.$line())!==nil&&(!$a.$$is_boolean||$a==true)){return""+self.$line()+" "}else{return""}return nil}()+($a=($b=self.array).$map,$a.$$p=(TMP_3=function(e){var self=TMP_3.$$s||this;if(e==null)e=nil;return e.$inspect()},TMP_3.$$s=self,TMP_3),$a).call($b).$join(", ")+")"});return Opal.alias(self,"to_s","inspect")})($scope.base,null)}($scope.base)};Opal.modules["opal/regexp_anchors"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module;Opal.add_stubs(["$=="]);return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;Opal.cdecl($scope,"REGEXP_START",function(){if($scope.get("RUBY_ENGINE")["$=="]("opal")){return"^"}return nil}());Opal.cdecl($scope,"REGEXP_END",function(){if($scope.get("RUBY_ENGINE")["$=="]("opal")){return"$"}return nil}())}($scope.base)};Opal.modules["strscan"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$attr_reader","$anchor","$scan_until","$length","$size","$rest","$pos=","$private"]);return function($base,$super){function $StringScanner(){}var self=$StringScanner=$klass($base,$super,"StringScanner",$StringScanner);var def=self.$$proto,$scope=self.$$scope;def.pos=def.string=def.working=def.matched=def.prev_pos=def.match=nil;self.$attr_reader("pos");self.$attr_reader("matched");Opal.defn(self,"$initialize",function(string){var self=this;self.string=string;self.pos=0;self.matched=nil;self.working=string;return self.match=[]});self.$attr_reader("string");Opal.defn(self,"$beginning_of_line?",function(){var self=this;return self.pos===0||self.string.charAt(self.pos-1)==="\n"});Opal.alias(self,"bol?","beginning_of_line?");Opal.defn(self,"$scan",function(pattern){var self=this;pattern=self.$anchor(pattern);var result=pattern.exec(self.working);if(result==null){return self.matched=nil}else if(typeof result==="object"){self.prev_pos=self.pos;self.pos+=result[0].length;self.working=self.working.substring(result[0].length);self.matched=result[0];self.match=result;return result[0]}else if(typeof result==="string"){self.pos+=result.length;self.working=self.working.substring(result.length);return result}else{return nil}});Opal.defn(self,"$scan_until",function(pattern){var self=this;pattern=self.$anchor(pattern);var pos=self.pos,working=self.working,result;while(true){result=pattern.exec(working);pos+=1;working=working.substr(1);if(result==null){if(working.length===0){return self.matched=nil}continue}self.matched=self.string.substr(self.pos,pos-self.pos-1+result[0].length);self.prev_pos=pos-1;self.pos=pos;self.working=working.substr(result[0].length);return self.matched}});Opal.defn(self,"$[]",function(idx){var self=this;var match=self.match;if(idx<0){idx+=match.length}if(idx<0||idx>=match.length){return nil}if(match[idx]==null){return nil}return match[idx]});Opal.defn(self,"$check",function(pattern){var self=this;pattern=self.$anchor(pattern);var result=pattern.exec(self.working);if(result==null){return self.matched=nil}return self.matched=result[0]});Opal.defn(self,"$check_until",function(pattern){var self=this;var prev_pos=self.prev_pos,pos=self.pos;var result=self.$scan_until(pattern);if(result!==nil){self.matched=result.substr(-1);self.working=self.string.substr(pos)}self.prev_pos=prev_pos;self.pos=pos;return result});Opal.defn(self,"$peek",function(length){var self=this;return self.working.substring(0,length)});Opal.defn(self,"$eos?",function(){var self=this;return self.working.length===0});Opal.defn(self,"$exist?",function(pattern){var self=this;var result=pattern.exec(self.working);if(result==null){return nil}else if(result.index==0){return 0}else{return result.index+1}});Opal.defn(self,"$skip",function(pattern){var self=this;pattern=self.$anchor(pattern);var result=pattern.exec(self.working);if(result==null){return self.matched=nil}else{var match_str=result[0];var match_len=match_str.length;self.matched=match_str;self.prev_pos=self.pos;self.pos+=match_len;self.working=self.working.substring(match_len);return match_len}});Opal.defn(self,"$skip_until",function(pattern){var self=this;var result=self.$scan_until(pattern);if(result===nil){return nil}else{self.matched=result.substr(-1);return result.length}});Opal.defn(self,"$get_byte",function(){var self=this;var result=nil;if(self.pos<self.string.length){self.prev_pos=self.pos;self.pos+=1;result=self.matched=self.working.substring(0,1);self.working=self.working.substring(1)}else{self.matched=nil}return result});Opal.alias(self,"getch","get_byte");Opal.defn(self,"$match?",function(pattern){var self=this;pattern=self.$anchor(pattern);var result=pattern.exec(self.working);if(result==null){return nil}else{self.prev_pos=self.pos;return result[0].length}});Opal.defn(self,"$pos=",function(pos){var self=this;if(pos<0){pos+=self.string.$length()}self.pos=pos;return self.working=self.string.slice(pos)});Opal.defn(self,"$post_match",function(){var self=this;if(self.matched===nil){return nil}return self.string.substr(self.pos)});Opal.defn(self,"$pre_match",function(){var self=this;if(self.matched===nil){return nil}return self.string.substr(0,self.prev_pos)});Opal.defn(self,"$reset",function(){var self=this;self.working=self.string;self.matched=nil;return self.pos=0});Opal.defn(self,"$rest",function(){var self=this;return self.working});Opal.defn(self,"$rest?",function(){var self=this;return self.working.length!==0});Opal.defn(self,"$rest_size",function(){var self=this;return self.$rest().$size()});Opal.defn(self,"$terminate",function(){var $a,$b,self=this;self.match=nil;return $a=[self.string.$length()],$b=self,$b["$pos="].apply($b,$a),$a[$a.length-1]});Opal.defn(self,"$unscan",function(){var self=this;self.pos=self.prev_pos;self.prev_pos=nil;self.match=nil;return self});self.$private();return(Opal.defn(self,"$anchor",function(pattern){var self=this;return new RegExp("^"+pattern.toString().substr(1,pattern.toString().length-2))}),nil)&&"anchor"}($scope.base,null)};Opal.modules["opal/parser/keywords"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2;Opal.add_stubs(["$attr_accessor","$map","$new","$each","$[]=","$name","$[]"]);return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Keywords");var def=self.$$proto,$scope=self.$$scope,$a,$b,TMP_1;(function($base,$super){function $KeywordTable(){}var self=$KeywordTable=$klass($base,$super,"KeywordTable",$KeywordTable);var def=self.$$proto,$scope=self.$$scope;self.$attr_accessor("name","id","state");return(Opal.defn(self,"$initialize",function(name,id,state){var self=this;self.name=name;self.id=id;return self.state=state}),nil)&&"initialize"})($scope.base,null);Opal.cdecl($scope,"KEYWORDS",($a=($b=[["__LINE__",["k__LINE__","k__LINE__"],"expr_end"],["__FILE__",["k__FILE__","k__FILE__"],"expr_end"],["alias",["kALIAS","kALIAS"],"expr_fname"],["and",["kAND","kAND"],"expr_beg"],["begin",["kBEGIN","kBEGIN"],"expr_beg"],["break",["kBREAK","kBREAK"],"expr_mid"],["case",["kCASE","kCASE"],"expr_beg"],["class",["kCLASS","kCLASS"],"expr_class"],["def",["kDEF","kDEF"],"expr_fname"],["defined?",["kDEFINED","kDEFINED"],"expr_arg"],["do",["kDO","kDO"],"expr_beg"],["else",["kELSE","kELSE"],"expr_beg"],["elsif",["kELSIF","kELSIF"],"expr_beg"],["end",["kEND","kEND"],"expr_end"],["ensure",["kENSURE","kENSURE"],"expr_beg"],["false",["kFALSE","kFALSE"],"expr_end"],["for",["kFOR","kFOR"],"expr_beg"],["if",["kIF","kIF_MOD"],"expr_beg"],["in",["kIN","kIN"],"expr_beg"],["module",["kMODULE","kMODULE"],"expr_beg"],["nil",["kNIL","kNIL"],"expr_end"],["next",["kNEXT","kNEXT"],"expr_mid"],["not",["kNOT","kNOT"],"expr_beg"],["or",["kOR","kOR"],"expr_beg"],["redo",["kREDO","kREDO"],"expr_end"],["rescue",["kRESCUE","kRESCUE_MOD"],"expr_mid"],["return",["kRETURN","kRETURN"],"expr_mid"],["self",["kSELF","kSELF"],"expr_end"],["super",["kSUPER","kSUPER"],"expr_arg"],["then",["kTHEN","kTHEN"],"expr_beg"],["true",["kTRUE","kTRUE"],"expr_end"],["undef",["kUNDEF","kUNDEF"],"expr_fname"],["unless",["kUNLESS","kUNLESS_MOD"],"expr_beg"],["until",["kUNTIL","kUNTIL_MOD"],"expr_beg"],["when",["kWHEN","kWHEN"],"expr_beg"],["while",["kWHILE","kWHILE_MOD"],"expr_beg"],["yield",["kYIELD","kYIELD"],"expr_arg"]]).$map,$a.$$p=(TMP_1=function(decl){var self=TMP_1.$$s||this,$a;if(decl==null)decl=nil;return($a=$scope.get("KeywordTable")).$new.apply($a,Opal.to_a(decl))},TMP_1.$$s=self,TMP_1),$a).call($b));Opal.defs(self,"$map",function(){var $a,$b,TMP_2,self=this;if(self.map==null)self.map=nil;if(($a=self.map)!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.map=$hash2([],{});($a=($b=$scope.get("KEYWORDS")).$each,$a.$$p=(TMP_2=function(k){var self=TMP_2.$$s||this;if(self.map==null)self.map=nil;if(k==null)k=nil;return self.map["$[]="](k.$name(),k)},TMP_2.$$s=self,TMP_2),$a).call($b)}return self.map});Opal.defs(self,"$keyword",function(kw){var self=this;return self.$map()["$[]"](kw)})})($scope.base)}($scope.base)};Opal.modules["opal/parser/lexer"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2;Opal.add_stubs(["$require","$|","$attr_reader","$attr_accessor","$new","$yylex","$yylval","$has_local?","$scope","$parser","$to_sym","$<<","$&","$>>","$!=","$include?","$arg?","$!","$space?","$check","$after_operator?","$scan","$+","$length","$matched","$pos=","$-","$pos","$new_strterm","$merge","$yylval=","$to_f","$gsub","$scanner","$to_i","$raise","$peek","$chr","$%","$[]","$escape","$peek_variable_name","$bol?","$eos?","$read_escape","$join","$count","$strterm","$[]=","$pushback","$==","$strterm=","$add_string_content","$line=","$line","$label_state?","$end_with?","$=~","$keyword","$state","$name","$id","$cond?","$cmdarg?","$here_document","$parse_string","$skip","$empty?","$new_op_asgn","$set_arg_state","$spcarg?","$beg?","$===","$new_strterm2","$cond_push","$cmdarg_push","$cond_lexpop","$cmdarg_lexpop","$end?","$heredoc_identifier","$sub","$inspect","$process_numeric","$process_identifier","$size","$pop","$last"]);self.$require("opal/regexp_anchors");self.$require("strscan");self.$require("opal/parser/keywords");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $Lexer(){}var self=$Lexer=$klass($base,$super,"Lexer",$Lexer);var def=self.$$proto,$scope=self.$$scope;def.scanner=def.tok_line=def.tok_column=def.column=def.line=def.cond=def.cmdarg=def.lex_state=def.space_seen=def.yylval=def.scanner_stack=def.start_of_lambda=def.file=nil;Opal.cdecl($scope,"STR_FUNC_ESCAPE",1);Opal.cdecl($scope,"STR_FUNC_EXPAND",2);Opal.cdecl($scope,"STR_FUNC_REGEXP",4);Opal.cdecl($scope,"STR_FUNC_QWORDS",8);Opal.cdecl($scope,"STR_FUNC_SYMBOL",16);Opal.cdecl($scope,"STR_FUNC_INDENT",32);Opal.cdecl($scope,"STR_FUNC_XQUOTE",64);Opal.cdecl($scope,"STR_SQUOTE",0);Opal.cdecl($scope,"STR_DQUOTE",$scope.get("STR_FUNC_EXPAND"));Opal.cdecl($scope,"STR_XQUOTE",$scope.get("STR_FUNC_EXPAND")["$|"]($scope.get("STR_FUNC_XQUOTE")));Opal.cdecl($scope,"STR_REGEXP",$scope.get("STR_FUNC_REGEXP")["$|"]($scope.get("STR_FUNC_ESCAPE"))["$|"]($scope.get("STR_FUNC_EXPAND")));Opal.cdecl($scope,"STR_SWORD",$scope.get("STR_FUNC_QWORDS"));Opal.cdecl($scope,"STR_DWORD",$scope.get("STR_FUNC_QWORDS")["$|"]($scope.get("STR_FUNC_EXPAND")));Opal.cdecl($scope,"STR_SSYM",$scope.get("STR_FUNC_SYMBOL"));Opal.cdecl($scope,"STR_DSYM",$scope.get("STR_FUNC_SYMBOL")["$|"]($scope.get("STR_FUNC_EXPAND")));self.$attr_reader("line","column");self.$attr_reader("scope");self.$attr_reader("eof_content");self.$attr_accessor("lex_state");self.$attr_accessor("strterm");self.$attr_accessor("scanner");self.$attr_accessor("yylval");self.$attr_accessor("parser");Opal.defn(self,"$initialize",function(source,file){var self=this;self.lex_state="expr_beg";self.cond=0;self.cmdarg=0;self.line=1;self.tok_line=1;self.column=0;self.tok_column=0;self.file=file;self.scanner=$scope.get("StringScanner").$new(source);self.scanner_stack=[self.scanner];self.case_stmt=nil;return self.start_of_lambda=nil});Opal.defn(self,"$next_token",function(){var self=this,token=nil,value=nil,location=nil;token=self.$yylex();value=self.$yylval();location=[self.tok_line,self.tok_column];self.tok_column=self.column;self.tok_line=self.line;return[token,[value,location]]});Opal.defn(self,"$has_local?",function(local){var self=this;return self.$parser().$scope()["$has_local?"](local.$to_sym())});Opal.defn(self,"$cond_push",function(n){var self=this;return self.cond=self.cond["$<<"](1)["$|"](n["$&"](1))});Opal.defn(self,"$cond_pop",function(){var self=this;return self.cond=self.cond["$>>"](1)});Opal.defn(self,"$cond_lexpop",function(){var self=this;return self.cond=self.cond["$>>"](1)["$|"](self.cond["$&"](1))});Opal.defn(self,"$cond?",function(){var self=this;return self.cond["$&"](1)["$!="](0)});Opal.defn(self,"$cmdarg_push",function(n){var self=this;return self.cmdarg=self.cmdarg["$<<"](1)["$|"](n["$&"](1))});Opal.defn(self,"$cmdarg_pop",function(){var self=this;return self.cmdarg=self.cmdarg["$>>"](1)});Opal.defn(self,"$cmdarg_lexpop",function(){var self=this;return self.cmdarg=self.cmdarg["$>>"](1)["$|"](self.cmdarg["$&"](1))});Opal.defn(self,"$cmdarg?",function(){var self=this;return self.cmdarg["$&"](1)["$!="](0)});Opal.defn(self,"$arg?",function(){var self=this;return["expr_arg","expr_cmdarg"]["$include?"](self.lex_state)});Opal.defn(self,"$end?",function(){var self=this;return["expr_end","expr_endarg","expr_endfn"]["$include?"](self.lex_state)});Opal.defn(self,"$beg?",function(){var self=this;return["expr_beg","expr_value","expr_mid","expr_class"]["$include?"](self.lex_state)});Opal.defn(self,"$after_operator?",function(){var self=this;return["expr_fname","expr_dot"]["$include?"](self.lex_state)});Opal.defn(self,"$label_state?",function(){var $a,self=this;return($a=["expr_beg","expr_endfn"]["$include?"](self.lex_state))!==false&&$a!==nil?$a:self["$arg?"]()});Opal.defn(self,"$spcarg?",function(){var $a,$b,self=this;return $a=($b=self["$arg?"](),$b!==false&&$b!==nil?self.space_seen:$b),$a!==false&&$a!==nil?self["$space?"]()["$!"]():$a});Opal.defn(self,"$space?",function(){var self=this;return self.scanner.$check(/\s/)});Opal.defn(self,"$set_arg_state",function(){var $a,self=this;return self.lex_state=function(){if(($a=self["$after_operator?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return"expr_arg"}else{return"expr_beg"}return nil}()});Opal.defn(self,"$scan",function(regexp){var $a,self=this,result=nil;if(($a=result=self.scanner.$scan(regexp))!==nil&&(!$a.$$is_boolean||$a==true)){self.column=$rb_plus(self.column,result.$length());self.yylval=$rb_plus(self.yylval,self.scanner.$matched())}return result});Opal.defn(self,"$skip",function(regexp){var $a,self=this,result=nil;if(($a=result=self.scanner.$scan(regexp))!==nil&&(!$a.$$is_boolean||$a==true)){self.column=$rb_plus(self.column,result.$length());self.tok_column=self.column}return result});Opal.defn(self,"$check",function(regexp){var self=this;return self.scanner.$check(regexp)});Opal.defn(self,"$pushback",function(n){var $a,self=this;return $a=self.scanner,$a["$pos="]($rb_minus($a.$pos(),n))});Opal.defn(self,"$matched",function(){var self=this;return self.scanner.$matched()});Opal.defn(self,"$line=",function(line){var self=this;self.column=self.tok_column=0;return self.line=self.tok_line=line});Opal.defn(self,"$new_strterm",function(func,term,paren){var self=this;return $hash2(["type","func","term","paren"],{type:"string",func:func,term:term,paren:paren})});Opal.defn(self,"$new_strterm2",function(func,term,paren){var self=this;term=self.$new_strterm(func,term,paren);return term.$merge($hash2(["balance","nesting"],{balance:true,nesting:0}))});Opal.defn(self,"$new_op_asgn",function(value){var $a,$b,self=this;$a=[value],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tOP_ASGN"});Opal.defn(self,"$process_numeric",function(){var $a,$b,self=this;self.lex_state="expr_end";if(($a=self.$scan(/[\d_]+\.[\d_]+\b|[\d_]+(\.[\d_]+)?[eE][-+]?[\d_]+\b/))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[self.$scanner().$matched().$gsub(/_/,"").$to_f()],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tFLOAT"}else if(($a=self.$scan(/([^0][\d_]*|0)\b/))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[self.$scanner().$matched().$gsub(/_/,"").$to_i()],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tINTEGER"}else if(($a=self.$scan(/0[bB](0|1|_)+/))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[self.$scanner().$matched().$to_i(2)],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tINTEGER"}else if(($a=self.$scan(/0[xX](\d|[a-f]|[A-F]|_)+/))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[self.$scanner().$matched().$to_i(16)],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tINTEGER"}else if(($a=self.$scan(/0[oO]?([0-7]|_)+/))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[self.$scanner().$matched().$to_i(8)],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tINTEGER"}else if(($a=self.$scan(/0[dD]([0-9]|_)+/))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[self.$scanner().$matched().$gsub(/_/,"").$to_i()],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tINTEGER"}else{return self.$raise("Lexing error on numeric type: `"+self.$scanner().$peek(5)+"`")}});Opal.defn(self,"$read_escape",function(){var $a,self=this;if(($a=self.$scan(/\\/))!==nil&&(!$a.$$is_boolean||$a==true)){return"\\"}else if(($a=self.$scan(/n/))!==nil&&(!$a.$$is_boolean||$a==true)){return"\n"}else if(($a=self.$scan(/t/))!==nil&&(!$a.$$is_boolean||$a==true)){return" "}else if(($a=self.$scan(/r/))!==nil&&(!$a.$$is_boolean||$a==true)){return"\r"}else if(($a=self.$scan(/f/))!==nil&&(!$a.$$is_boolean||$a==true)){return"\f"}else if(($a=self.$scan(/v/))!==nil&&(!$a.$$is_boolean||$a==true)){return"\x0B"}else if(($a=self.$scan(/a/))!==nil&&(!$a.$$is_boolean||$a==true)){return""}else if(($a=self.$scan(/b/))!==nil&&(!$a.$$is_boolean||$a==true)){return"\b"}else if(($a=self.$scan(/e/))!==nil&&(!$a.$$is_boolean||$a==true)){return""}else if(($a=self.$scan(/s/))!==nil&&(!$a.$$is_boolean||$a==true)){return" "}else if(($a=self.$scan(/[0-7]{1,3}/))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$matched().$to_i(8)["$%"](256).$chr()}else if(($a=self.$scan(/x([0-9a-fA-F]{1,2})/))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$scanner()["$[]"](1).$to_i(16).$chr()}else if(($a=self.$scan(/u([0-9a-zA-Z]{1,4})/))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$scanner()["$[]"](1).$to_i(16).$chr($scope.get("Encoding").$$scope.get("UTF_8")); | |
}else{return self.$scan(/./)}});Opal.defn(self,"$peek_variable_name",function(){var $a,self=this;if(($a=self.$check(/[@$]/))!==nil&&(!$a.$$is_boolean||$a==true)){return"tSTRING_DVAR"}else if(($a=self.$scan(/\{/))!==nil&&(!$a.$$is_boolean||$a==true)){return"tSTRING_DBEG"}else{return nil}});Opal.defn(self,"$here_document",function(str_parse){var $a,$b,$c,self=this,eos_regx=nil,expand=nil,escape=nil,str_buffer=nil,tok=nil,reg=nil,complete_str=nil;eos_regx=new RegExp("[ \\t]*"+$scope.get("Regexp").$escape(str_parse["$[]"]("term"))+"(\\r*\\n|$)");expand=true;escape=str_parse["$[]"]("func")["$!="]($scope.get("STR_SQUOTE"));if(($a=self.$check(eos_regx))!==nil&&(!$a.$$is_boolean||$a==true)){self.$scan(new RegExp("[ \\t]*"+$scope.get("Regexp").$escape(str_parse["$[]"]("term"))));if(($a=str_parse["$[]"]("scanner"))!==nil&&(!$a.$$is_boolean||$a==true)){self.scanner_stack["$<<"](str_parse["$[]"]("scanner"));self.scanner=str_parse["$[]"]("scanner")}return"tSTRING_END"}str_buffer=[];if(($a=self.$scan(/#/))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=tok=self.$peek_variable_name())!==nil&&(!$a.$$is_boolean||$a==true)){return tok}str_buffer["$<<"]("#")}while(!(($b=($c=self.$check(eos_regx),$c!==false&&$c!==nil?self.$scanner()["$bol?"]():$c))!==nil&&(!$b.$$is_boolean||$b==true))){if(($b=self.$scanner()["$eos?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.$raise("reached EOF while in heredoc")}if(($b=self.$scan(/\n/))!==nil&&(!$b.$$is_boolean||$b==true)){str_buffer["$<<"](self.$scanner().$matched())}else if(($b=($c=expand!==false&&expand!==nil)?self.$check(/#(?=[\$\@\{])/):expand)!==nil&&(!$b.$$is_boolean||$b==true)){break}else if(($b=self.$scan(/\\/))!==nil&&(!$b.$$is_boolean||$b==true)){str_buffer["$<<"](function(){if(escape!==false&&escape!==nil){return self.$read_escape()}else{return self.$scanner().$matched()}return nil}())}else{reg=$scope.get("Regexp").$new("[^#\x00\\\\\n]+|.");self.$scan(reg);str_buffer["$<<"](self.$scanner().$matched())}}complete_str=str_buffer.$join("");self.line=$rb_plus(self.line,complete_str.$count("\n"));$a=[complete_str],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tSTRING_CONTENT"});Opal.defn(self,"$parse_string",function(){var $a,$b,self=this,str_parse=nil,func=nil,space=nil,qwords=nil,expand=nil,regexp=nil,str_buffer=nil,complete_str=nil;str_parse=self.$strterm();func=str_parse["$[]"]("func");space=false;qwords=func["$&"]($scope.get("STR_FUNC_QWORDS"))["$!="](0);expand=func["$&"]($scope.get("STR_FUNC_EXPAND"))["$!="](0);regexp=func["$&"]($scope.get("STR_FUNC_REGEXP"))["$!="](0);if(($a=($b=qwords!==false&&qwords!==nil)?self.$scan(/\s+/):qwords)!==nil&&(!$a.$$is_boolean||$a==true)){space=true}str_buffer=[];if(($a=self.$scan($scope.get("Regexp").$new($scope.get("Regexp").$escape(str_parse["$[]"]("term")))))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=($b=qwords!==false&&qwords!==nil)?str_parse["$[]"]("done_last_space")["$!"]():qwords)!==nil&&(!$a.$$is_boolean||$a==true)){str_parse["$[]="]("done_last_space",true);self.$pushback(1);$a=[" "],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tSPACE"}if(($a=str_parse["$[]"]("balance"))!==nil&&(!$a.$$is_boolean||$a==true)){if(str_parse["$[]"]("nesting")["$=="](0)){if(regexp!==false&®exp!==nil){$a=[self.$scan(/\w+/)],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tREGEXP_END"}return"tSTRING_END"}else{str_buffer["$<<"](self.$scanner().$matched());$a="nesting",$b=str_parse,$b["$[]="]($a,$rb_minus($b["$[]"]($a),1));$a=[str_parse],$b=self,$b["$strterm="].apply($b,$a),$a[$a.length-1]}}else if(regexp!==false&®exp!==nil){self.lex_state="expr_end";$a=[self.$scan(/\w+/)],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tREGEXP_END"}else{if(($a=str_parse["$[]"]("scanner"))!==nil&&(!$a.$$is_boolean||$a==true)){self.scanner_stack["$<<"](str_parse["$[]"]("scanner"));self.scanner=str_parse["$[]"]("scanner")}return"tSTRING_END"}}if(space!==false&&space!==nil){$a=[" "],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tSPACE"}if(($a=($b=str_parse["$[]"]("balance"),$b!==false&&$b!==nil?self.$scan($scope.get("Regexp").$new($scope.get("Regexp").$escape(str_parse["$[]"]("paren")))):$b))!==nil&&(!$a.$$is_boolean||$a==true)){str_buffer["$<<"](self.$scanner().$matched());$a="nesting",$b=str_parse,$b["$[]="]($a,$rb_plus($b["$[]"]($a),1))}else if(($a=self.$check(/#[@$]/))!==nil&&(!$a.$$is_boolean||$a==true)){self.$scan(/#/);if(expand!==false&&expand!==nil){return"tSTRING_DVAR"}else{str_buffer["$<<"](self.$scanner().$matched())}}else if(($a=self.$scan(/#\{/))!==nil&&(!$a.$$is_boolean||$a==true)){if(expand!==false&&expand!==nil){return"tSTRING_DBEG"}else{str_buffer["$<<"](self.$scanner().$matched())}}else if(($a=self.$scan(/\#/))!==nil&&(!$a.$$is_boolean||$a==true)){str_buffer["$<<"]("#")}self.$add_string_content(str_buffer,str_parse);complete_str=str_buffer.$join("");self.line=$rb_plus(self.line,complete_str.$count("\n"));$a=[complete_str],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tSTRING_CONTENT"});Opal.defn(self,"$add_string_content",function(str_buffer,str_parse){var $a,$b,$c,self=this,func=nil,end_str_re=nil,qwords=nil,expand=nil,regexp=nil,escape=nil,xquote=nil,c=nil,handled=nil,reg=nil;func=str_parse["$[]"]("func");end_str_re=$scope.get("Regexp").$new($scope.get("Regexp").$escape(str_parse["$[]"]("term")));qwords=func["$&"]($scope.get("STR_FUNC_QWORDS"))["$!="](0);expand=func["$&"]($scope.get("STR_FUNC_EXPAND"))["$!="](0);regexp=func["$&"]($scope.get("STR_FUNC_REGEXP"))["$!="](0);escape=func["$&"]($scope.get("STR_FUNC_ESCAPE"))["$!="](0);xquote=func["$=="]($scope.get("STR_XQUOTE"));while(!(($b=self.$scanner()["$eos?"]())!==nil&&(!$b.$$is_boolean||$b==true))){c=nil;handled=true;if(($b=self.$check(end_str_re))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=($c=str_parse["$[]"]("balance"),$c!==false&&$c!==nil?str_parse["$[]"]("nesting")["$!="](0):$c))!==nil&&(!$b.$$is_boolean||$b==true)){self.$scan(end_str_re);c=self.$scanner().$matched();$b="nesting",$c=str_parse,$c["$[]="]($b,$rb_minus($c["$[]"]($b),1))}else{break}}else if(($b=($c=str_parse["$[]"]("balance"),$c!==false&&$c!==nil?self.$scan($scope.get("Regexp").$new($scope.get("Regexp").$escape(str_parse["$[]"]("paren")))):$c))!==nil&&(!$b.$$is_boolean||$b==true)){$b="nesting",$c=str_parse,$c["$[]="]($b,$rb_plus($c["$[]"]($b),1));c=self.$scanner().$matched()}else if(($b=($c=qwords!==false&&qwords!==nil)?self.$scan(/\s/):qwords)!==nil&&(!$b.$$is_boolean||$b==true)){self.$pushback(1);break}else if(($b=($c=expand!==false&&expand!==nil)?self.$check(/#(?=[\$\@\{])/):expand)!==nil&&(!$b.$$is_boolean||$b==true)){break}else if(($b=($c=qwords!==false&&qwords!==nil)?self.$scan(/\s/):qwords)!==nil&&(!$b.$$is_boolean||$b==true)){self.$pushback(1);break}else if(($b=self.$scan(/\\/))!==nil&&(!$b.$$is_boolean||$b==true)){if(xquote!==false&&xquote!==nil){c=$rb_plus("\\",self.$scan(/./))}else if(($b=($c=qwords!==false&&qwords!==nil)?self.$scan(/\n/):qwords)!==nil&&(!$b.$$is_boolean||$b==true)){str_buffer["$<<"]("\n");continue}else if(($b=($c=expand!==false&&expand!==nil)?self.$scan(/\n/):expand)!==nil&&(!$b.$$is_boolean||$b==true)){continue}else if(($b=($c=qwords!==false&&qwords!==nil)?self.$scan(/\s/):qwords)!==nil&&(!$b.$$is_boolean||$b==true)){c=" "}else if(regexp!==false&®exp!==nil){if(($b=self.$scan(/(.)/))!==nil&&(!$b.$$is_boolean||$b==true)){c=$rb_plus("\\",self.$scanner().$matched())}}else if(expand!==false&&expand!==nil){c=self.$read_escape()}else if(($b=self.$scan(/\n/))!==nil&&(!$b.$$is_boolean||$b==true)){}else if(($b=self.$scan(/\\/))!==nil&&(!$b.$$is_boolean||$b==true)){if(escape!==false&&escape!==nil){c="\\\\"}else{c=self.$scanner().$matched()}}else if(($b=self.$scan(end_str_re))!==nil&&(!$b.$$is_boolean||$b==true)){}else{str_buffer["$<<"]("\\")}}else{handled=false}if(handled!==false&&handled!==nil){}else{reg=function(){if(qwords!==false&&qwords!==nil){return $scope.get("Regexp").$new("[^"+$scope.get("Regexp").$escape(str_parse["$[]"]("term"))+"#\x00\n \\\\]+|.")}else if(($b=str_parse["$[]"]("balance"))!==nil&&(!$b.$$is_boolean||$b==true)){return $scope.get("Regexp").$new("[^"+$scope.get("Regexp").$escape(str_parse["$[]"]("term"))+$scope.get("Regexp").$escape(str_parse["$[]"]("paren"))+"#\x00\\\\]+|.")}else{return $scope.get("Regexp").$new("[^"+$scope.get("Regexp").$escape(str_parse["$[]"]("term"))+"#\x00\\\\]+|.")}return nil}();self.$scan(reg);c=self.$scanner().$matched()}($b=c)!==false&&$b!==nil?$b:c=self.$scanner().$matched();str_buffer["$<<"](c)}if(($a=self.$scanner()["$eos?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$raise("reached EOF while in string")}else{return nil}});Opal.defn(self,"$heredoc_identifier",function(){var $a,$b,self=this,escape_method=nil,heredoc=nil,end_of_line=nil;if(($a=self.$scan(/(-?)(['"])?(\w+)\2?/))!==nil&&(!$a.$$is_boolean||$a==true)){escape_method=function(){if(($a=self.scanner["$[]"](2)["$=="]("'"))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("STR_SQUOTE")}else{return $scope.get("STR_DQUOTE")}return nil}();heredoc=self.scanner["$[]"](3);$a=[self.$new_strterm(escape_method,heredoc,heredoc)],$b=self,$b["$strterm="].apply($b,$a),$a[$a.length-1];self.$strterm()["$[]="]("type","heredoc");end_of_line=self.$scan(/.*\n/);if(($a=end_of_line["$!="]("\n"))!==nil&&(!$a.$$is_boolean||$a==true)){self.$strterm()["$[]="]("scanner",$scope.get("StringScanner").$new(end_of_line))}$a=self,$a["$line="]($rb_plus($a.$line(),1));$a=[heredoc],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tSTRING_BEG"}else{return nil}});Opal.defn(self,"$process_identifier",function(matched,cmd_start){var $a,$b,$c,self=this,last_state=nil,result=nil,kw=nil,old_state=nil;last_state=self.lex_state;if(($a=($b=($c=self["$label_state?"](),$c!==false&&$c!==nil?self.$check(/::/)["$!"]():$c),$b!==false&&$b!==nil?self.$scan(/:/):$b))!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state="expr_beg";$a=[matched],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return"tLABEL"}if(matched["$=="]("defined?")){if(($a=self["$after_operator?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state="expr_end";return"tIDENTIFIER"}self.lex_state="expr_arg";return"kDEFINED"}if(($a=matched["$end_with?"]("?","!"))!==nil&&(!$a.$$is_boolean||$a==true)){result="tIDENTIFIER"}else if(self.lex_state["$=="]("expr_fname")){if(($a=($b=self.$check(/\=\>/)["$!"](),$b!==false&&$b!==nil?self.$scan(/\=/):$b))!==nil&&(!$a.$$is_boolean||$a==true)){result="tIDENTIFIER";matched=$rb_plus(matched,self.$scanner().$matched())}}else if(($a=matched["$=~"](new RegExp(""+$scope.get("REGEXP_START")+"[A-Z]")))!==nil&&(!$a.$$is_boolean||$a==true)){result="tCONSTANT"}else{result="tIDENTIFIER"}if(($a=($b=self.lex_state["$!="]("expr_dot"),$b!==false&&$b!==nil?kw=$scope.get("Keywords").$keyword(matched):$b))!==nil&&(!$a.$$is_boolean||$a==true)){old_state=self.lex_state;self.lex_state=kw.$state();if(old_state["$=="]("expr_fname")){$a=[kw.$name()],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return kw.$id()["$[]"](0)}if(self.lex_state["$=="]("expr_beg")){cmd_start=true}if(matched["$=="]("do")){if(($a=self["$after_operator?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state="expr_end";return"tIDENTIFIER"}if(($a=self.start_of_lambda)!==nil&&(!$a.$$is_boolean||$a==true)){self.start_of_lambda=false;self.lex_state="expr_beg";return"kDO_LAMBDA"}else if(($a=self["$cond?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state="expr_beg";return"kDO_COND"}else if(($a=($b=self["$cmdarg?"](),$b!==false&&$b!==nil?self.lex_state["$!="]("expr_cmdarg"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state="expr_beg";return"kDO_BLOCK"}else if(self.lex_state["$=="]("expr_endarg")){return"kDO_BLOCK"}else{self.lex_state="expr_beg";return"kDO"}}else if(($a=($b=old_state["$=="]("expr_beg"))!==false&&$b!==nil?$b:old_state["$=="]("expr_value"))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[matched],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return kw.$id()["$[]"](0)}else{if(($a=kw.$id()["$[]"](0)["$!="](kw.$id()["$[]"](1)))!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state="expr_beg"}$a=[matched],$b=self,$b["$yylval="].apply($b,$a),$a[$a.length-1];return kw.$id()["$[]"](1)}}if(($a=["expr_beg","expr_dot","expr_mid","expr_arg","expr_cmdarg"]["$include?"](self.lex_state))!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state=function(){if(cmd_start!==false&&cmd_start!==nil){return"expr_cmdarg"}else{return"expr_arg"}return nil}()}else if(self.lex_state["$=="]("expr_fname")){self.lex_state="expr_endfn"}else{self.lex_state="expr_end"}if(($a=($b=["expr_dot","expr_fname"]["$include?"](last_state)["$!"](),$b!==false&&$b!==nil?self["$has_local?"](matched):$b))!==nil&&(!$a.$$is_boolean||$a==true)){self.lex_state="expr_end"}return function(){if(($a=matched["$=~"](new RegExp(""+$scope.get("REGEXP_START")+"[A-Z]")))!==nil&&(!$a.$$is_boolean||$a==true)){return"tCONSTANT"}else{return"tIDENTIFIER"}return nil}()});return(Opal.defn(self,"$yylex",function(){try{var $a,$b,$c,$d,$e,self=this,cmd_start=nil,c=nil,token=nil,line_count=nil,result=nil,str_type=nil,paren=nil,term=nil,$case=nil,func=nil,start_word=nil,end_word=nil,matched=nil,sign=nil,utype=nil;self.yylval="";self.space_seen=false;cmd_start=false;c="";if(($a=self.$strterm())!==nil&&(!$a.$$is_boolean||$a==true)){if(self.$strterm()["$[]"]("type")["$=="]("heredoc")){token=self.$here_document(self.$strterm())}else{token=self.$parse_string()}if(($a=($b=token["$=="]("tSTRING_END"))!==false&&$b!==nil?$b:token["$=="]("tREGEXP_END"))!==nil&&(!$a.$$is_boolean||$a==true)){$a=[nil],$b=self,$b["$strterm="].apply($b,$a),$a[$a.length-1];self.lex_state="expr_end"}return token}while(($b=true)!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$skip(/\ |\t|\r/))!==nil&&(!$b.$$is_boolean||$b==true)){self.space_seen=true;continue}else if(($b=self.$skip(/(\n|#)/))!==nil&&(!$b.$$is_boolean||$b==true)){c=self.$scanner().$matched();if(c["$=="]("#")){self.$skip(/(.*)/)}else{$b=self,$b["$line="]($rb_plus($b.$line(),1))}self.$skip(/(\n+)/);if(($b=self.$scanner().$matched())!==nil&&(!$b.$$is_boolean||$b==true)){$b=self,$b["$line="]($rb_plus($b.$line(),self.$scanner().$matched().$length()))}if(($b=["expr_beg","expr_dot"]["$include?"](self.lex_state))!==nil&&(!$b.$$is_boolean||$b==true)){continue}if(($b=self.$skip(/([\ \t\r\f\v]*)\./))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scanner()["$[]"](1)["$empty?"]())!==nil&&(!$b.$$is_boolean||$b==true)){}else{self.space_seen=true}self.$pushback(1);if(($b=self.$check(/\.\./))!==nil&&(!$b.$$is_boolean||$b==true)){}else{continue}}cmd_start=true;self.lex_state="expr_beg";$b=["\\n"],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return"tNL"}else if(($b=self.$scan(/\;/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tSEMI"}else if(($b=self.$check(/\*/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\*\*\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn("**")}else if(($b=self.$scan(/\*\*/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tPOW"}else if(($b=self.$scan(/\*\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn("*")}else{self.$scan(/\*/);if(($b=self["$after_operator?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_arg";return"tSTAR2"}else if(($b=($c=self.space_seen,$c!==false&&$c!==nil?self.$check(/\S/):$c))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tSTAR"}else if(($b=["expr_beg","expr_mid"]["$include?"](self.lex_state))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tSTAR"}else{self.lex_state="expr_beg";return"tSTAR2"}}}else if(($b=self.$scan(/\!/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self["$after_operator?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_arg";if(($b=self.$scan(/@/))!==nil&&(!$b.$$is_boolean||$b==true)){return["tBANG","!"]}}else{self.lex_state="expr_beg"}if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){return"tNEQ"}else if(($b=self.$scan(/\~/))!==nil&&(!$b.$$is_boolean||$b==true)){return"tNMATCH"}return"tBANG"}else if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=($c=self.lex_state["$=="]("expr_beg"))?self.space_seen["$!"]():self.lex_state["$=="]("expr_beg"))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=($c=self.$scan(/begin/),$c!==false&&$c!==nil?self["$space?"]():$c))!==nil&&(!$b.$$is_boolean||$b==true)){self.$scan(/(.*)/);line_count=0;while(($c=true)!==nil&&(!$c.$$is_boolean||$c==true)){if(($c=self.$scanner()["$eos?"]())!==nil&&(!$c.$$is_boolean||$c==true)){self.$raise("embedded document meets end of file")}if(($c=($d=self.$scan(/\=end/),$d!==false&&$d!==nil?self["$space?"]():$d))!==nil&&(!$c.$$is_boolean||$c==true)){self.line=$rb_plus(self.line,line_count);return self.$yylex()}if(($c=self.$scan(/\n/))!==nil&&(!$c.$$is_boolean||$c==true)){line_count=$rb_plus(line_count,1);continue}self.$scan(/(.*)/)}}}self.$set_arg_state();if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){return"tEQQ"}return"tEQ"}if(($b=self.$scan(/\~/))!==nil&&(!$b.$$is_boolean||$b==true)){return"tMATCH"}else if(($b=self.$scan(/\>/))!==nil&&(!$b.$$is_boolean||$b==true)){return"tASSOC"}return"tEQL"}else if(($b=self.$scan(/\"/))!==nil&&(!$b.$$is_boolean||$b==true)){$b=[self.$new_strterm($scope.get("STR_DQUOTE"),'"',"\x00")],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1];return"tSTRING_BEG"}else if(($b=self.$scan(/\'/))!==nil&&(!$b.$$is_boolean||$b==true)){$b=[self.$new_strterm($scope.get("STR_SQUOTE"),"'","\x00")],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1];return"tSTRING_BEG"}else if(($b=self.$scan(/\`/))!==nil&&(!$b.$$is_boolean||$b==true)){$b=[self.$new_strterm($scope.get("STR_XQUOTE"),"`","\x00")],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1];return"tXSTRING_BEG"}else if(($b=self.$scan(/\&/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\&/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){return self.$new_op_asgn("&&")}return"tANDOP"}else if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn("&")}if(($b=self["$spcarg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){result="tAMPER"}else if(($b=self["$beg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){result="tAMPER"}else{result="tAMPER2"}self.$set_arg_state();return result}else if(($b=self.$scan(/\|/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\|/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){return self.$new_op_asgn("||")}return"tOROP"}else if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){return self.$new_op_asgn("|")}self.$set_arg_state();return"tPIPE"}else if(($b=self.$scan(/\%[QqWwixrs]/))!==nil&&(!$b.$$is_boolean||$b==true)){str_type=self.$scanner().$matched()["$[]"](1,1);paren=term=self.$scan(/./);$case=term;if("("["$==="]($case)){term=")"}else if("["["$==="]($case)){term="]"}else if("{"["$==="]($case)){term="}"}else if("<"["$==="]($case)){term=">"}else{paren="\x00"}$b=Opal.to_ary(function(){$case=str_type;if("Q"["$==="]($case)){return["tSTRING_BEG",$scope.get("STR_DQUOTE")]}else if("q"["$==="]($case)){return["tSTRING_BEG",$scope.get("STR_SQUOTE")]}else if("W"["$==="]($case)){self.$skip(/\s*/);return["tWORDS_BEG",$scope.get("STR_DWORD")]}else if("w"["$==="]($case)||"i"["$==="]($case)){self.$skip(/\s*/);return["tAWORDS_BEG",$scope.get("STR_SWORD")]}else if("x"["$==="]($case)){return["tXSTRING_BEG",$scope.get("STR_XQUOTE")]}else if("r"["$==="]($case)){return["tREGEXP_BEG",$scope.get("STR_REGEXP")]}else if("s"["$==="]($case)){return["tSTRING_BEG",$scope.get("STR_SQUOTE")]}else{return nil}}()),token=$b[0]==null?nil:$b[0],func=$b[1]==null?nil:$b[1];$b=[self.$new_strterm2(func,term,paren)],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1];return token}else if(($b=self.$scan(/\//))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self["$beg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){$b=[self.$new_strterm($scope.get("STR_REGEXP"),"/","/")],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1];return"tREGEXP_BEG"}else if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn("/")}if(($b=self["$arg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=($c=self.$check(/\s/)["$!"](),$c!==false&&$c!==nil?self.space_seen:$c))!==nil&&(!$b.$$is_boolean||$b==true)){$b=[self.$new_strterm($scope.get("STR_REGEXP"),"/","/")],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1];return"tREGEXP_BEG"}}if(($b=self["$after_operator?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_arg"}else{self.lex_state="expr_beg"}return"tDIVIDE"}else if(($b=self.$scan(/\%/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn("%")}else if(($b=self.$check(/[^\s]/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=($c=self.lex_state["$=="]("expr_beg"))!==false&&$c!==nil?$c:($d=self.lex_state["$=="]("expr_arg"))?self.space_seen:self.lex_state["$=="]("expr_arg"))!==nil&&(!$b.$$is_boolean||$b==true)){start_word=self.$scan(/./);end_word=($b=$hash2(["(","[","{"],{"(":")","[":"]","{":"}"})["$[]"](start_word))!==false&&$b!==nil?$b:start_word;$b=[self.$new_strterm2($scope.get("STR_DQUOTE"),end_word,start_word)],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1];return"tSTRING_BEG"}}self.$set_arg_state();return"tPERCENT"}else if(($b=self.$scan(/\\/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\r?\n/))!==nil&&(!$b.$$is_boolean||$b==true)){self.space_seen=true;continue}self.$raise($scope.get("SyntaxError"),"backslash must appear before newline :"+self.file+":"+self.line)}else if(($b=self.$scan(/\(/))!==nil&&(!$b.$$is_boolean||$b==true)){result=self.$scanner().$matched();if(($b=self["$beg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){result="tLPAREN"}else if(($b=($c=self.space_seen,$c!==false&&$c!==nil?self["$arg?"]():$c))!==nil&&(!$b.$$is_boolean||$b==true)){result="tLPAREN_ARG"}else{result="tLPAREN2"}self.lex_state="expr_beg";self.$cond_push(0);self.$cmdarg_push(0);return result}else if(($b=self.$scan(/\)/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$cond_lexpop();self.$cmdarg_lexpop();self.lex_state="expr_end";return"tRPAREN"}else if(($b=self.$scan(/\[/))!==nil&&(!$b.$$is_boolean||$b==true)){result=self.$scanner().$matched();if(($b=self["$after_operator?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_arg";if(($b=self.$scan(/\]=/))!==nil&&(!$b.$$is_boolean||$b==true)){return"tASET"}else if(($b=self.$scan(/\]/))!==nil&&(!$b.$$is_boolean||$b==true)){return"tAREF"}else{self.$raise("Unexpected '[' token")}}else if(($b=self["$beg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){result="tLBRACK"}else if(($b=($c=self["$arg?"](),$c!==false&&$c!==nil?self.space_seen:$c))!==nil&&(!$b.$$is_boolean||$b==true)){result="tLBRACK"}else{result="tLBRACK2"}self.lex_state="expr_beg";self.$cond_push(0);self.$cmdarg_push(0);return result}else if(($b=self.$scan(/\]/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$cond_lexpop();self.$cmdarg_lexpop();self.lex_state="expr_end";return"tRBRACK"}else if(($b=self.$scan(/\}/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$cond_lexpop();self.$cmdarg_lexpop();self.lex_state="expr_end";return"tRCURLY"}else if(($b=self.$scan(/\.\.\./))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tDOT3"}else if(($b=self.$scan(/\.\./))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tDOT2"}else if(($b=($c=self.lex_state["$!="]("expr_fname"),$c!==false&&$c!==nil?self.$scan(/\.JS\[/):$c))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";self.$cond_push(0);self.$cmdarg_push(0);return"tJSLBRACK"}else if(($b=($c=self.lex_state["$!="]("expr_fname"),$c!==false&&$c!==nil?self.$scan(/\.JS\./):$c))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_dot";return"tJSDOT"}else if(($b=self.$scan(/\./))!==nil&&(!$b.$$is_boolean||$b==true)){if(self.lex_state["$=="]("expr_fname")){}else{self.lex_state="expr_dot"}return"tDOT"}else if(($b=self.$scan(/\:\:/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self["$beg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tCOLON3"}else if(($b=self["$spcarg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tCOLON3"}self.lex_state="expr_dot";return"tCOLON2"}else if(($b=self.$scan(/\:/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=($c=self["$end?"]())!==false&&$c!==nil?$c:self.$check(/\s/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$check(/\w/))!==nil&&(!$b.$$is_boolean||$b==true)){}else{self.lex_state="expr_beg";return"tCOLON"}self.lex_state="expr_fname";return"tSYMBEG"}if(($b=self.$scan(/\'/))!==nil&&(!$b.$$is_boolean||$b==true)){$b=[self.$new_strterm($scope.get("STR_SSYM"),"'","\x00")],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1]}else if(($b=self.$scan(/\"/))!==nil&&(!$b.$$is_boolean||$b==true)){$b=[self.$new_strterm($scope.get("STR_DSYM"),'"',"\x00")],$c=self,$c["$strterm="].apply($c,$b),$b[$b.length-1]}self.lex_state="expr_fname";return"tSYMBEG"}else if(($b=self.$scan(/\^\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn("^")}else if(($b=self.$scan(/\^/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tCARET"}else if(($b=self.$check(/</))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/<<\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn("<<")}else if(($b=self.$scan(/<</))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self["$after_operator?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_arg";return"tLSHFT"}else if(($b=($c=($d=($e=self["$after_operator?"]()["$!"](),$e!==false&&$e!==nil?self["$end?"]()["$!"]():$e),$d!==false&&$d!==nil?($e=self["$arg?"]()["$!"]())!==false&&$e!==nil?$e:self.space_seen:$d),$c!==false&&$c!==nil?self.lex_state["$!="]("expr_class"):$c))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=token=self.$heredoc_identifier())!==nil&&(!$b.$$is_boolean||$b==true)){return token}self.lex_state="expr_beg";return"tLSHFT"}self.lex_state="expr_beg";return"tLSHFT"}else if(($b=self.$scan(/<\=\>/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self["$after_operator?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_arg"}else{if(self.lex_state["$=="]("expr_class")){cmd_start=true}self.lex_state="expr_beg"}return"tCMP"}else if(($b=self.$scan(/<\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tLEQ"}else if(($b=self.$scan(/</))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tLT"}}else if(($b=self.$check(/\>/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\>\>\=/))!==nil&&(!$b.$$is_boolean||$b==true)){return self.$new_op_asgn(">>")}else if(($b=self.$scan(/\>\>/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tRSHFT"}else if(($b=self.$scan(/\>\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tGEQ"}else if(($b=self.$scan(/\>/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tGT"}}else if(($b=self.$scan(/->/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";self.start_of_lambda=true;return"tLAMBDA"}else if(($b=self.$scan(/[+-]/))!==nil&&(!$b.$$is_boolean||$b==true)){matched=self.$scanner().$matched();$b=Opal.to_ary(function(){if(matched["$=="]("+")){return["tPLUS","tUPLUS"]}else{return["tMINUS","tUMINUS"]}return nil}()),sign=$b[0]==null?nil:$b[0],utype=$b[1]==null?nil:$b[1];if(($b=self["$beg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_mid";$b=[matched],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];if(($b=($c=self.$scanner().$peek(1)["$=~"](/\d/),$c!==false&&$c!==nil?Opal.ret(function(){if(utype["$=="]("tUMINUS")){return"-@NUM"}else{return"+@NUM"}return nil}()):$c))!==nil&&(!$b.$$is_boolean||$b==true)){}else{return utype}}else if(($b=self["$after_operator?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_arg";if(($b=self.$scan(/@/))!==nil&&(!$b.$$is_boolean||$b==true)){$b=[$rb_plus(matched,"@")],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return"tIDENTIFIER"}$b=[matched],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return sign}if(($b=self.$scan(/\=/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return self.$new_op_asgn(matched)}if(($b=self["$spcarg?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_mid";$b=[matched],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return utype}self.lex_state="expr_beg";$b=[matched],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return sign}else if(($b=self.$scan(/\?/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self["$end?"]())!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tEH"}if(($b=self.$check(/\ |\t|\r|\s/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tEH"}else if(($b=self.$scan(/\\/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";$b=[self.$read_escape()],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return"tSTRING"}self.lex_state="expr_end";$b=[self.$scan(/./)],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return"tSTRING"}else if(($b=self.$scan(/\~/))!==nil&&(!$b.$$is_boolean||$b==true)){self.$set_arg_state();return"tTILDE"}else if(($b=self.$check(/\$/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.$scan(/\$([1-9]\d*)/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";$b=[self.$scanner().$matched().$sub("$","")],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return"tNTH_REF"}else if(($b=self.$scan(/(\$_)(\w+)/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";return"tGVAR"}else if(($b=self.$scan(/\$[\+\'\`\&!@\"~*$?\/\\:;=.,<>_]/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";return"tGVAR"}else if(($b=self.$scan(/\$\w+/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";return"tGVAR"}else{self.$raise("Bad gvar name: "+self.$scanner().$peek(5).$inspect())}}else if(($b=self.$scan(/\$\w+/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";return"tGVAR"}else if(($b=self.$scan(/\@\@\w*/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";return"tCVAR"}else if(($b=self.$scan(/\@\w*/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_end";return"tIVAR"}else if(($b=self.$scan(/\,/))!==nil&&(!$b.$$is_boolean||$b==true)){self.lex_state="expr_beg";return"tCOMMA"}else if(($b=self.$scan(/\{/))!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=self.start_of_lambda)!==nil&&(!$b.$$is_boolean||$b==true)){self.start_of_lambda=false;self.lex_state="expr_beg";return"tLAMBEG"}else if(($b=($c=self["$arg?"]())!==false&&$c!==nil?$c:self.lex_state["$=="]("expr_end"))!==nil&&(!$b.$$is_boolean||$b==true)){result="tLCURLY"}else if(self.lex_state["$=="]("expr_endarg")){result="LBRACE_ARG"}else{result="tLBRACE"}self.lex_state="expr_beg";self.$cond_push(0);self.$cmdarg_push(0);return result}else if(($b=($c=self.$scanner()["$bol?"](),$c!==false&&$c!==nil?self.$skip(/\__END__(\n|$)/):$c))!==nil&&(!$b.$$is_boolean||$b==true)){while(($c=true)!==nil&&(!$c.$$is_boolean||$c==true)){if(($c=self.$scanner()["$eos?"]())!==nil&&(!$c.$$is_boolean||$c==true)){self.eof_content=self.$yylval();return false}self.$scan(/(.*)/);self.$scan(/\n/)}}else if(($b=self.$check(/[0-9]/))!==nil&&(!$b.$$is_boolean||$b==true)){return self.$process_numeric()}else if(($b=self.$scan(/(\w)+(\?|(\!(?!=)))?/))!==nil&&(!$b.$$is_boolean||$b==true)){return self.$process_identifier(self.$scanner().$matched(),cmd_start)}if(($b=self.$scanner()["$eos?"]())!==nil&&(!$b.$$is_boolean||$b==true)){if(self.scanner_stack.$size()["$=="](1)){$b=[false],$c=self,$c["$yylval="].apply($c,$b),$b[$b.length-1];return false}else{self.scanner_stack.$pop();self.scanner=self.scanner_stack.$last();return self.$yylex()}}self.$raise("Unexpected content in parsing stream `"+self.$scanner().$peek(5)+"` :"+self.file+":"+self.line); | |
}}catch($returner){if($returner===Opal.returner){return $returner.$v}throw $returner}}),nil)&&"yylex"})($scope.base,null)}($scope.base)};Opal.modules["racc/parser"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_ge(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>=rhs:lhs["$>="](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$class","$_racc_do_parse_rb","$_racc_setup","$[]","$!=","$next_token","$==","$racc_read_token","$+","$<","$nil?","$puts","$>","$-","$push","$<<","$racc_shift","$-@","$*","$last","$pop","$__send__","$raise","$racc_reduce","$>=","$inspect","$racc_next_state","$racc_token2str","$racc_print_stacks","$empty?","$map","$racc_print_states","$each_index","$each"]);return function($base){var self=$module($base,"Racc");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $Parser(){}var self=$Parser=$klass($base,$super,"Parser",$Parser);var def=self.$$proto,$scope=self.$$scope;def.yydebug=nil;Opal.defn(self,"$_racc_setup",function(){var self=this;return self.$class().$$scope.get("Racc_arg")});Opal.defn(self,"$do_parse",function(){var self=this;return self.$_racc_do_parse_rb(self.$_racc_setup(),false)});Opal.defn(self,"$_racc_do_parse_rb",function(arg,in_debug){var $a,$b,$c,$d,self=this,action_table=nil,action_check=nil,action_default=nil,action_pointer=nil,goto_table=nil,goto_check=nil,goto_default=nil,goto_pointer=nil,nt_base=nil,reduce_table=nil,token_table=nil,shift_n=nil,reduce_n=nil,use_result=nil,racc_state=nil,racc_tstack=nil,racc_vstack=nil,racc_t=nil,racc_tok=nil,racc_val=nil,racc_read_next=nil,racc_user_yyerror=nil,racc_error_status=nil,token=nil,act=nil,i=nil,nerr=nil,custate=nil,curstate=nil,reduce_i=nil,reduce_len=nil,reduce_to=nil,method_id=nil,tmp_t=nil,tmp_v=nil,reduce_call_result=nil,k1=nil;action_table=arg["$[]"](0);action_check=arg["$[]"](1);action_default=arg["$[]"](2);action_pointer=arg["$[]"](3);goto_table=arg["$[]"](4);goto_check=arg["$[]"](5);goto_default=arg["$[]"](6);goto_pointer=arg["$[]"](7);nt_base=arg["$[]"](8);reduce_table=arg["$[]"](9);token_table=arg["$[]"](10);shift_n=arg["$[]"](11);reduce_n=arg["$[]"](12);use_result=arg["$[]"](13);racc_state=[0];racc_tstack=[];racc_vstack=[];racc_t=nil;racc_tok=nil;racc_val=nil;racc_read_next=true;racc_user_yyerror=false;racc_error_status=0;token=nil;act=nil;i=nil;nerr=nil;custate=nil;while(($b=true)!==nil&&(!$b.$$is_boolean||$b==true)){i=action_pointer["$[]"](racc_state["$[]"](-1));if(i!==false&&i!==nil){if(racc_read_next!==false&&racc_read_next!==nil){if(($b=racc_t["$!="](0))!==nil&&(!$b.$$is_boolean||$b==true)){token=self.$next_token();racc_tok=token["$[]"](0);racc_val=token["$[]"](1);if(racc_tok["$=="](false)){racc_t=0}else{racc_t=token_table["$[]"](racc_tok);if(racc_t!==false&&racc_t!==nil){}else{racc_t=1}}if(($b=self.yydebug)!==nil&&(!$b.$$is_boolean||$b==true)){self.$racc_read_token(racc_t,racc_tok,racc_val)}racc_read_next=false}}i=$rb_plus(i,racc_t);if(($b=($c=($d=$rb_lt(i,0))!==false&&$d!==nil?$d:(act=action_table["$[]"](i))["$nil?"]())!==false&&$c!==nil?$c:action_check["$[]"](i)["$!="](racc_state["$[]"](-1)))!==nil&&(!$b.$$is_boolean||$b==true)){act=action_default["$[]"](racc_state["$[]"](-1))}}else{act=action_default["$[]"](racc_state["$[]"](-1))}if(($b=self.yydebug)!==nil&&(!$b.$$is_boolean||$b==true)){self.$puts("(act: "+act+", shift_n: "+shift_n+", reduce_n: "+reduce_n+")")}if(($b=($c=$rb_gt(act,0))?$rb_lt(act,shift_n):$rb_gt(act,0))!==nil&&(!$b.$$is_boolean||$b==true)){if($rb_gt(racc_error_status,0)){if(($b=racc_t["$!="](1))!==nil&&(!$b.$$is_boolean||$b==true)){racc_error_status=$rb_minus(racc_error_status,1)}}racc_vstack.$push(racc_val);curstate=act;racc_state["$<<"](act);racc_read_next=true;if(($b=self.yydebug)!==nil&&(!$b.$$is_boolean||$b==true)){racc_tstack.$push(racc_t);self.$racc_shift(racc_t,racc_tstack,racc_vstack)}}else if(($b=($c=$rb_lt(act,0))?$rb_gt(act,reduce_n["$-@"]()):$rb_lt(act,0))!==nil&&(!$b.$$is_boolean||$b==true)){reduce_i=$rb_times(act,-3);reduce_len=reduce_table["$[]"](reduce_i);reduce_to=reduce_table["$[]"]($rb_plus(reduce_i,1));method_id=reduce_table["$[]"]($rb_plus(reduce_i,2));tmp_t=racc_tstack.$last(reduce_len);tmp_v=racc_vstack.$last(reduce_len);racc_state.$pop(reduce_len);racc_vstack.$pop(reduce_len);racc_tstack.$pop(reduce_len);if(use_result!==false&&use_result!==nil){reduce_call_result=self.$__send__(method_id,tmp_v,nil,tmp_v["$[]"](0));racc_vstack.$push(reduce_call_result)}else{self.$raise("not using result??")}racc_tstack.$push(reduce_to);if(($b=self.yydebug)!==nil&&(!$b.$$is_boolean||$b==true)){self.$racc_reduce(tmp_t,reduce_to,racc_tstack,racc_vstack)}k1=$rb_minus(reduce_to,nt_base);if(($b=(reduce_i=goto_pointer["$[]"](k1))["$!="](nil))!==nil&&(!$b.$$is_boolean||$b==true)){reduce_i=$rb_plus(reduce_i,racc_state["$[]"](-1));if(($b=($c=($d=$rb_ge(reduce_i,0),$d!==false&&$d!==nil?(curstate=goto_table["$[]"](reduce_i))["$!="](nil):$d),$c!==false&&$c!==nil?goto_check["$[]"](reduce_i)["$=="](k1):$c))!==nil&&(!$b.$$is_boolean||$b==true)){racc_state.$push(curstate)}else{racc_state.$push(goto_default["$[]"](k1))}}else{racc_state.$push(goto_default["$[]"](k1))}}else if(act["$=="](shift_n)){return racc_vstack["$[]"](0)}else if(act["$=="](reduce_n["$-@"]())){self.$raise($scope.get("SyntaxError"),"unexpected '"+racc_tok.$inspect()+"'")}else{self.$raise("Rac: unknown action: "+act)}if(($b=self.yydebug)!==nil&&(!$b.$$is_boolean||$b==true)){self.$racc_next_state(racc_state["$[]"](-1),racc_state)}}});Opal.defn(self,"$racc_read_token",function(t,tok,val){var self=this;self.$puts("read "+tok+"("+self.$racc_token2str(t)+") "+val.$inspect());return self.$puts("\n")});Opal.defn(self,"$racc_shift",function(tok,tstack,vstack){var self=this;self.$puts("shift "+self.$racc_token2str(tok));self.$racc_print_stacks(tstack,vstack);return self.$puts("\n")});Opal.defn(self,"$racc_reduce",function(toks,sim,tstack,vstack){var $a,$b,TMP_1,self=this;self.$puts("reduce "+function(){if(($a=toks["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return"<none>"}else{return($a=($b=toks).$map,$a.$$p=(TMP_1=function(t){var self=TMP_1.$$s||this;if(t==null)t=nil;return self.$racc_token2str(t)},TMP_1.$$s=self,TMP_1),$a).call($b)}return nil}());self.$puts(" --> "+self.$racc_token2str(sim));return self.$racc_print_stacks(tstack,vstack)});Opal.defn(self,"$racc_next_state",function(curstate,state){var self=this;self.$puts("goto "+curstate);self.$racc_print_states(state);return self.$puts("\n")});Opal.defn(self,"$racc_token2str",function(tok){var self=this;return self.$class().$$scope.get("Racc_token_to_s_table")["$[]"](tok)});Opal.defn(self,"$racc_print_stacks",function(t,v){var $a,$b,TMP_2,self=this;self.$puts(" [");($a=($b=t).$each_index,$a.$$p=(TMP_2=function(i){var self=TMP_2.$$s||this;if(i==null)i=nil;return self.$puts(" ("+self.$racc_token2str(t["$[]"](i))+" "+v["$[]"](i).$inspect()+")")},TMP_2.$$s=self,TMP_2),$a).call($b);return self.$puts(" ]")});return(Opal.defn(self,"$racc_print_states",function(s){var $a,$b,TMP_3,self=this;self.$puts(" [");($a=($b=s).$each,$a.$$p=(TMP_3=function(st){var self=TMP_3.$$s||this;if(st==null)st=nil;return self.$puts(" "+st)},TMP_3.$$s=self,TMP_3),$a).call($b);return self.$puts(" ]")}),nil)&&"racc_print_states"})($scope.base,null)}($scope.base)};Opal.modules["opal/parser/grammar"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash=Opal.hash;Opal.add_stubs(["$require","$new","$each","$empty?","$[]=","$to_i","$+","$split","$new_compstmt","$[]","$new_block","$<<","$new_body","$lex_state=","$lexer","$new_alias","$s","$to_sym","$value","$new_if","$new_while","$new_until","$new_rescue_mod","$new_assign","$new_op_asgn","$op_to_setter","$new_unary_call","$new_return","$new_break","$new_next","$new_call","$new_js_call","$new_super","$new_yield","$new_assignable","$new_js_attrasgn","$new_attrasgn","$new_colon2","$new_colon3","$new_const","$new_sym","$new_op_asgn1","$raise","$new_irange","$new_erange","$new_binary_call","$new_int","$new_float","$include?","$type","$==","$-@","$to_f","$new_and","$new_or","$new_hash","$add_block_pass","$cmdarg_push","$cmdarg_pop","$new_block_pass","$new_splat","$line","$new_paren","$new_array","$new_nil","$cond_push","$cond_pop","$new_class","$new_sclass","$new_module","$push_scope","$new_def","$pop_scope","$new_iter","$new_ident","$new_block_args","$push","$intern","$first","$nil?","$new_str","$str_append","$new_xstr","$new_regexp","$concat","$new_str_content","$strterm","$strterm=","$new_evstr","$cond_lexpop","$cmdarg_lexpop","$new_gvar","$new_ivar","$new_cvar","$new_dsym","$negate_num","$new_self","$new_true","$new_false","$new___FILE__","$new___LINE__","$new_var_ref","$new_kwrestarg","$new_kwoptarg","$new_kwarg","$new_args_tail","$new_args","$add_local","$scope"]);self.$require("racc/parser.rb");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $Parser(){}var self=$Parser=$klass($base,$super,"Parser",$Parser);var def=self.$$proto,$scope=self.$$scope,$a,$b,TMP_1,$c,TMP_3,$d,TMP_5,$e,TMP_7,clist=nil,racc_action_table=nil,arr=nil,idx=nil,racc_action_check=nil,racc_action_pointer=nil,racc_action_default=nil,racc_goto_table=nil,racc_goto_check=nil,racc_goto_pointer=nil,racc_goto_default=nil,racc_reduce_table=nil,racc_reduce_n=nil,racc_shift_n=nil,racc_token_table=nil,racc_nt_base=nil,racc_use_result_var=nil;clist=["63,64,65,8,51,575,552,-92,57,58,619,205,206,61,73,59,60,62,23,24,66","67,74,544,754,607,543,22,28,27,90,89,91,92,97,751,17,607,273,-458,612","653,7,41,6,9,94,93,575,84,50,86,85,87,273,88,95,96,653,81,82,-100,38","39,-99,-68,597,-446,344,343,-95,205,206,618,-446,652,-97,581,575,582","-94,205,206,-96,575,36,609,608,30,-92,575,52,652,108,54,770,32,-84,609","608,40,101,-79,-92,268,752,100,195,18,-100,-99,551,-84,79,73,75,76,77","78,101,-95,574,74,80,100,272,-98,63,64,65,56,51,-97,53,653,57,58,196","37,83,61,272,59,60,62,23,24,66,67,454,-534,205,206,197,22,28,27,90,89","91,92,308,101,17,574,-84,-91,100,652,-90,41,308,596,94,93,-86,84,50","86,85,87,-88,88,95,96,-85,81,82,-87,38,39,101,101,-535,574,900,100,100","101,-100,574,-449,-84,100,101,198,574,649,-449,100,-96,-84,210,246,-98","214,215,-92,52,-92,-91,54,-92,-100,-99,-100,-99,40,-100,-99,-94,-89","273,607,-95,18,-95,299,726,-95,79,73,75,76,77,78,-97,-90,-97,74,80,-97","-86,726,63,64,65,56,51,-88,53,544,57,58,546,37,83,61,531,59,60,62,23","24,66,67,205,206,653,205,206,22,28,27,90,89,91,92,-91,-534,219,777,300","-535,609,608,605,41,268,227,94,93,308,84,50,86,85,87,388,88,95,96,652","81,82,-90,38,39,-99,272,-86,726,301,302,-96,-91,-96,-88,-98,-96,-98","224,810,-98,-91,226,225,-87,101,210,725,-93,214,100,-94,52,-94,-85,54","-94,391,-89,-90,101,40,725,788,-86,100,402,101,-90,218,415,-88,100,-86","79,73,75,76,77,78,-88,453,101,74,80,455,204,100,63,64,65,56,51,607,53","544,57,58,546,37,83,61,789,59,60,62,258,259,66,67,876,-534,-87,-95,877","257,28,27,90,89,91,92,-85,456,219,-535,-89,-91,101,607,725,41,607,100","94,93,-100,84,50,86,85,87,261,88,95,96,-456,81,82,-87,38,39,-97,-456","609,608,610,101,-87,-85,-93,215,100,-89,-94,487,264,265,-85,754,-455","-454,-89,210,266,489,214,-455,-454,52,751,813,54,582,256,491,254,497","40,-67,609,608,614,609,608,620,218,400,401,203,201,79,73,75,76,77,78","202,514,544,74,80,546,344,343,63,64,65,56,51,101,53,-451,57,58,100,37","83,61,-451,59,60,62,258,259,66,67,515,-532,527,528,516,257,28,27,90","89,91,92,101,752,219,-331,-331,100,199,625,200,41,525,-331,94,93,277","84,50,86,85,87,261,88,95,96,308,81,82,268,38,39,532,227,231,236,237","238,233,235,243,244,239,240,-449,-449,220,221,-452,101,241,242,-449","210,100,-452,214,-532,533,52,227,-331,54,-331,256,224,254,230,40,226","225,222,223,234,232,228,218,229,-532,203,449,79,73,75,76,77,78,450,308","-458,74,80,547,245,548,63,64,65,56,51,-449,53,-449,57,58,491,37,83,61","555,59,60,62,258,259,66,67,103,104,105,106,107,257,28,27,90,89,91,92","-453,-84,219,524,521,531,452,-453,451,41,-92,522,94,93,558,84,50,86","85,87,261,88,95,96,559,81,82,561,38,39,570,227,231,236,237,238,233,235","243,244,239,240,524,534,220,221,-90,412,241,242,535,210,414,413,214","-99,571,52,404,520,54,523,256,224,254,230,40,226,225,222,223,234,232","228,218,229,587,524,584,79,73,75,76,77,78,585,588,630,74,80,589,245","650,-255,-255,-255,56,-255,452,53,451,-255,-255,613,37,83,-255,617,-255","-255,-255,-255,-255,-255,-255,103,104,105,106,107,-255,-255,-255,-255","-255,-255,-255,621,-86,-255,524,593,624,583,625,586,-255,-95,591,-255","-255,627,-255,-255,-255,-255,-255,-255,-255,-255,-255,-263,-255,-255","628,-255,-255,629,227,231,236,237,238,233,235,243,244,239,240,-284,-284","220,221,205,206,241,242,-284,-255,268,631,-255,268,227,-255,227,592","-255,523,-255,224,-255,230,-255,226,225,222,223,234,232,228,-255,229","344,343,602,-255,-255,-255,-255,-255,-255,603,832,813,-255,-255,776","245,227,-233,-88,227,-255,915,-284,-255,-284,308,754,-97,-255,-255,63","64,65,8,51,344,343,751,57,58,832,813,670,61,671,59,60,62,23,24,66,67","679,681,-79,-85,682,22,28,27,90,89,91,92,-94,684,17,537,341,340,344","343,7,41,227,9,94,93,694,84,50,86,85,87,700,88,95,96,701,81,82,702,38","39,706,227,231,236,237,238,233,235,243,244,239,240,224,752,220,221,226","225,241,242,716,36,718,721,281,582,729,52,772,-264,54,497,32,224,497","230,40,226,225,222,223,234,232,228,18,229,497,524,593,79,73,75,76,77","78,822,791,792,74,80,489,245,491,63,64,65,56,51,800,53,802,57,58,803","37,83,61,694,59,60,62,258,259,66,67,708,807,268,268,808,257,291,295","90,89,91,92,268,227,219,-286,-286,227,592,813,523,292,819,-286,94,93","820,84,50,86,85,87,558,88,95,96,561,81,82,823,327,824,336,334,333,561","335,341,340,344,343,827,866,867,-283,-283,868,95,96,813,836,837,-283","289,839,840,286,-535,-534,52,842,-286,54,-286,285,850,852,855,856,338","858,915,860,862,864,-265,754,341,340,344,343,79,73,75,76,77,78,751,794","878,74,80,879,880,881,63,64,65,56,51,-283,53,-283,57,58,883,296,83,61","884,59,60,62,258,259,66,67,708,341,340,344,343,257,291,295,90,89,91","92,524,946,219,103,104,105,106,107,947,292,227,694,94,93,886,84,50,86","85,87,-263,88,95,96,890,81,82,764,752,336,334,333,754,335,895,341,340","344,343,897,903,905,224,751,906,308,226,225,222,223,919,289,-266,921","214,-535,945,52,586,563,54,336,334,333,561,335,338,749,931,932,937,855","939,860,341,340,344,343,860,79,73,75,76,77,78,862,948,954,74,80,700","964,860,298,966,967,56,,,53,,,,,296,83,63,64,65,227,51,,,752,57,58,",",,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,224,219,",",226,225,222,223,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39",",227,231,236,237,238,233,235,243,244,239,240,,,220,221,,,241,242,,210",",,214,,,52,,,54,,,224,,230,40,226,225,222,223,234,232,228,218,229,,",",79,73,75,76,77,78,,,,74,80,,245,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,563,219,336,334","333,,335,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,231","236,237,238,233,235,243,244,239,240,,,220,221,,,241,242,,210,,,214,",",52,,,54,,,224,,230,40,226,225,222,223,234,232,228,218,229,,,,79,73","75,76,77,78,,,,74,80,,245,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,231,236,237,238,233,235","243,244,239,240,,,220,221,,,241,242,,210,,,214,,,52,,,54,,,224,,230","40,226,225,222,223,234,232,228,218,229,,,,79,73,75,76,77,78,,,,74,80",",245,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,",",22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96",",81,82,,38,39,,227,231,236,237,238,233,235,243,244,239,240,,,220,221",",,241,242,,210,,,214,,,52,,,54,,,224,,230,40,226,225,222,223,234,232","228,18,229,,,,79,73,75,76,77,78,,,,74,80,,245,,63,64,65,56,51,,53,,57","58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,28,27,90,89,91,92,,,219",",,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,227,231","236,237,238,233,235,243,244,239,240,,,220,221,,,241,242,,210,,,214,",",52,,,54,,256,224,,230,40,226,225,222,223,234,232,228,218,229,,,,79","73,75,76,77,78,,,,74,80,,245,,63,64,65,56,51,,53,,57,58,,37,83,61,,59","60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94","93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,227,231,236,237,238,233","235,243,244,239,240,,,220,221,,,241,242,,210,,,214,,,52,,,54,,,224,","230,40,226,225,222,223,234,232,228,218,229,,,,79,73,75,76,77,78,,,,74","80,,245,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,",",,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95","96,,81,82,,38,39,,227,231,236,237,238,233,235,243,244,239,240,,,220","221,,,241,242,,210,,,214,,,52,,,54,,,224,,230,40,226,225,222,223,234","232,228,18,229,,,,79,73,75,76,77,78,,,,74,80,,245,,63,64,65,56,51,,53",",57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17",",,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,231,236","237,238,233,235,243,244,239,240,,,220,221,,,241,242,,210,,,214,,,52",",,54,,,224,,230,40,226,225,222,223,234,232,228,18,229,,,,79,73,75,76","77,78,,,,74,80,,245,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23","24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85","87,,88,95,96,,81,82,,38,39,,227,231,236,237,238,233,235,243,244,239","240,,,220,221,,,241,242,,210,,,214,,,52,,,54,,,224,,230,40,226,225,222","223,234,232,228,18,229,,,,79,73,75,76,77,78,,,,74,80,101,245,,-233,","100,56,,,53,,,,,37,83,63,64,65,,51,,,,57,58,,,,61,,59,60,62,258,259","66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,292,,,94,93,,84,50,86","85,87,,88,95,96,,81,82,227,231,236,237,238,233,235,243,244,239,240,227",",220,221,,,241,242,,,,,,356,,,30,241,242,52,,224,54,230,32,226,225,222","223,234,232,228,224,229,230,,226,225,222,223,,79,73,75,76,77,78,,,245","74,80,,,,63,64,65,56,51,,53,,57,58,,296,83,61,,59,60,62,258,259,66,67",",,,,,257,291,295,90,89,91,92,,,219,,,,,,,292,,,94,93,,84,50,86,85,361",",88,95,96,,81,82,227,231,236,237,238,233,235,243,244,239,240,227,,220","221,,,241,242,,,367,,,362,,,214,241,242,52,,224,54,230,,226,225,222","223,234,232,228,224,229,230,,226,225,222,223,,79,73,75,76,77,78,,,245","74,80,,,,-531,-531,-531,56,-531,,53,,-531,-531,,296,83,-531,,-531,-531","-531,-531,-531,-531,-531,,-531,,,,-531,-531,-531,-531,-531,-531,-531",",,-531,,,,,,,-531,,,-531,-531,,-531,-531,-531,-531,-531,-531,-531,-531","-531,,-531,-531,,-531,-531,,227,231,236,237,238,233,235,243,244,239","240,,,220,221,,,241,242,,-531,,,-531,-531,,-531,,,-531,,-531,224,-531","230,-531,226,225,222,223,234,232,228,-531,229,-531,,,-531,-531,-531","-531,-531,-531,,,,-531,-531,,245,,-532,-532,-532,-531,-532,,-531,,-532","-532,,-531,-531,-532,,-532,-532,-532,-532,-532,-532,-532,,-532,,,,-532","-532,-532,-532,-532,-532,-532,,,-532,,,,,,,-532,,,-532,-532,,-532,-532","-532,-532,-532,-532,-532,-532,-532,,-532,-532,,-532,-532,,227,231,236","237,238,233,235,243,244,239,240,,,220,221,,,241,242,,-532,,,-532,-532",",-532,,,-532,,-532,224,-532,230,-532,226,225,222,223,234,232,228,-532","229,-532,,,-532,-532,-532,-532,-532,-532,,,,-532,-532,,245,,,,,-532",",,-532,,,,,-532,-532,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66","67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,6,9,94,93,,84,50,86,85,87",",88,95,96,,81,82,,38,39,,227,231,236,237,238,233,235,243,244,239,240",",,220,221,,,241,242,,36,,,30,,,52,,,54,,32,224,,230,40,226,225,222,223","234,232,228,18,229,,,,79,73,75,76,77,78,,,,74,80,,245,,,,404,56,,,53",",,,,37,83,63,64,65,,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22","28,27,90,89,91,92,,563,17,336,334,333,,335,,41,,,94,93,,84,50,86,85","87,,88,95,96,,81,82,,38,39,563,,336,334,333,,335,,,563,566,336,334,333",",335,,,569,,,210,,,214,,,52,,,54,,,,,,40,,,566,,,,,18,,,569,566,79,73","75,76,77,78,,829,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,227,231,236,237,238,233,235,243,244","239,240,,,-555,-555,,,241,242,,210,,,214,,,52,,,54,,,224,,230,40,226","225,222,223,234,232,228,18,229,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90","89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,227,231,236,237,238,233,235,243,244,239,240,,,-555,-555,,,241,242",",210,,,214,,,52,,,54,,,224,,230,40,226,225,222,223,234,232,228,18,229",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,-555,-555,-555,-555,233","235,,,-555,-555,,,,,,,241,242,,210,,,214,,,52,,,54,,,224,,230,40,226","225,222,223,234,232,228,18,229,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56",",,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,",",,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,227,,,,,,,,,,,,,,,,,241,242,,36,,,30,,,52,,,54",",32,224,,230,40,226,225,222,223,,,228,18,229,,,,79,73,75,76,77,78,,",",74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62","23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,6,9,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,227,,,,,,,,,,,,,,,,,241,242,,36,,","30,,,52,,,54,,32,224,,230,40,226,225,222,223,,,228,18,229,,,,79,73,75","76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,","61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9","94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,,,,,,,,,,,,,,,,,241","242,,36,,,30,,,52,,,54,,32,224,,230,40,226,225,222,223,,,228,18,229",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,219,,,,,,,41,,,94","93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,,,,,,,,,,,,,,,,,241","242,,210,,,214,,,52,,,54,,421,224,,230,40,226,225,222,223,,,228,218","229,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83","61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,219,,,,,,,41,,","94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,-555,-555,-555,-555","233,235,,,-555,-555,,,,,,,241,242,,210,,,214,,,52,,,54,,421,224,,230","40,226,225,222,223,234,232,228,218,229,,,,79,73,75,76,77,78,,,,74,80",",,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22","28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,","81,82,,38,39,,227,-555,-555,-555,-555,233,235,,,-555,-555,,,,,,,241","242,,210,,,214,,,52,,,54,,,224,,230,40,226,225,222,223,234,232,228,218","229,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83","61,,59,60,62,258,259,66,67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41",",,94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,227,-555,-555,-555","-555,233,235,,,-555,-555,,,,,,,241,242,,210,,,214,,,52,,,54,,256,224",",230,40,226,225,222,223,234,232,228,218,229,,,,79,73,75,76,77,78,,,","74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67",",,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261","88,95,96,,81,82,,38,39,,227,-555,-555,-555,-555,233,235,,,-555,-555",",,,,,,241,242,,210,,,214,,,52,,,54,,256,224,,230,40,226,225,222,223","234,232,228,218,229,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51",",53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92",",,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,227","-555,-555,-555,-555,233,235,,,-555,-555,,,,,,,241,242,,210,,,214,,,52",",,54,,,224,,230,40,226,225,222,223,234,232,228,218,229,,,,79,73,75,76","77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24","66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87",",88,95,96,,81,82,,38,39,,227,231,236,237,238,233,235,,,239,240,,,,,",",241,242,,210,,,214,,,52,,,54,,,224,,230,40,226,225,222,223,234,232","228,18,229,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,",",41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,227,231,236,237","238,233,235,243,,239,240,,,,,,,241,242,,210,,,214,,,52,,,54,,,224,,230","40,226,225,222,223,234,232,228,18,229,,,,79,73,75,76,77,78,,,,74,80",",,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24","66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85","87,,88,95,96,,81,82,,38,39,,227,,,,,,,,,,,,,,,,,241,242,,36,,,30,,,52",",,54,,32,224,,,40,226,225,222,223,,,,18,,,,,79,73,75,76,77,78,,,,74","80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,",",22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96",",81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,458,52,,,54,,,,,,40,,",",,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219",",,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,",",,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77","78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259","66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86","85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,","54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214",",,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295","90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41",",,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,",",210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,",",,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40",",,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57","58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,","219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,",",,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76","77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214",",,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295","90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41",",,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,",",210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,",",,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40",",,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57","58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,","219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,",",,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76","77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214",",,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295","90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41",",,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,",",210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,",",,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40",",,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57","58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,","219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,",",,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76","77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214",",,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295","90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41",",,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,",",210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,",",,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40",",,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57","58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,","219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,",",,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76","77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,28,27,90,89","91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,256,,254,,40,,,,,,,,218",",,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,","94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,",",,210,,,214,,,506,,,54,,256,,254,,40,,,,,,,,218,,,,,79,73,75,76,77,78",",,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66","67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87","261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,510,52,,","54,,256,,254,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56",",,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,",",,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,281,,,52,,,54,,32,,,,40",",,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219",",,,,,,292,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,764,,336,334,333","754,335,,,,,,,,,,751,,,,,,,,289,,,214,,,52,,,54,,,,,,338,,,,,,,,341","340,344,343,,79,73,75,76,77,78,,,,74,80,,,,518,,,56,,,53,,,,,296,83","63,64,65,8,51,,,752,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27","90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,36,,,281,,,52,,,54,,32,,,,40,,,,,,,,18,",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,292",",,94,93,,84,50,86,85,87,,88,95,96,,81,82,327,,336,334,333,,335,,,,,",",,,,,,,,,,,,289,,,286,,,52,,,54,,,,,,338,322,,,,,,,341,340,344,343,","79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,296,83,61,","59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,",",94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,","210,,,214,537,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23","24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86","85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54",",32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51",",53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92",",,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,",",,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,18,,,,,79,73,75,76","77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24","66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87",",88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,",",,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53",",57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92",",,219,,,,,,,292,,,94,93,,84,50,86,85,361,,88,95,96,,81,82,327,,336,334","333,,335,,,,,,,,,,,,,,,,,,362,,,214,,,52,,,54,,,,,,338,,554,,,,,,341","340,344,343,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",296,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,",",,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,",",,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,",",74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67",",,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87",",88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,",",,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,-255,-255,-255,56","-255,,53,,-255,-255,,37,83,-255,,-255,-255,-255,-255,-255,-255,-255",",,,,,-255,-255,-255,-255,-255,-255,-255,,,-255,,,,,,,-255,,,-255,-255",",-255,-255,-255,-255,-255,-255,-255,-255,-255,,-255,-255,,-255,-255",",,,,,,,,,,,,,,,,,,,,,-255,,,-255,268,,-255,,,-255,,-255,,-255,,-255",",,,,,,,-255,,,,,-255,-255,-255,-255,-255,-255,,,,-255,-255,,,,-536,-536","-536,-255,-536,,-255,,-536,-536,,-255,-255,-536,,-536,-536,-536,-536","-536,-536,-536,,,,,,-536,-536,-536,-536,-536,-536,-536,,,-536,,,,,,","-536,,,-536,-536,,-536,-536,-536,-536,-536,-536,-536,-536,-536,,-536","-536,,-536,-536,,,,,,,,,,,,,,,,,,,,,,-536,,,-536,-536,,-536,,,-536,","-536,,-536,,-536,,,,,,,,-536,,,,,-536,-536,-536,-536,-536,-536,,,,-536","-536,,,,-537,-537,-537,-536,-537,,-536,,-537,-537,,-536,-536,-537,,-537","-537,-537,-537,-537,-537,-537,,,,,,-537,-537,-537,-537,-537,-537,-537",",,-537,,,,,,,-537,,,-537,-537,,-537,-537,-537,-537,-537,-537,-537,-537","-537,,-537,-537,,-537,-537,,,,,,,,,,,,,,,,,,,,,,-537,,,-537,-537,,-537",",,-537,,-537,,-537,,-537,,,,,,,,-537,,,,,-537,-537,-537,-537,-537,-537",",,,-537,-537,,,,-255,-255,-255,-537,-255,,-537,,-255,-255,,-537,-537","-255,,-255,-255,-255,-255,-255,-255,-255,,,,,,-255,-255,-255,-255,-255","-255,-255,,,-255,,,,,,,-255,,,-255,-255,,-255,-255,-255,-255,-255,-255","-255,-255,-255,,-255,-255,,-255,-255,,,,,,,,,,,,,,,,,,,,,,-255,,,-255","268,,-255,,,-255,,-255,,-255,,-255,,,,,,,,-255,,,,,-255,-255,-255,-255","-255,-255,,,,-255,-255,,,,63,64,65,-255,51,,-255,,57,58,,-255,-255,61",",59,60,62,258,259,66,67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,","94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,",",,210,,,214,,,52,,,54,,256,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,",",74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67",",,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261","88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,256",",,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53",",57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92",",,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,",",,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75","76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210",",,214,,,52,,,54,,658,,254,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,",",,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261","88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,254",",40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53",",57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92",",,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,",",,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75","76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23","24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85","87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,675,52,,","54,,,,254,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53",",,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22","28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96",",81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,",",,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,404,56,,,53,,,,,37,83,63,64","65,,51,,,,57,58,,,,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89","91,92,,,219,,,,,,,292,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,327,","336,334,333,,335,,,,,,,,,,,,,,,,,,289,,,286,,,52,,,54,,,,,,338,,,,,",",,341,340,344,343,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53",",57,58,,296,83,61,,59,60,62,258,259,66,67,,,,,,257,28,27,90,89,91,92",",,219,,,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,",",,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,256,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,","84,50,86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,",",214,,,52,,,54,,256,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80",",,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,","257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95","96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,",",,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219",",,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,",",,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77","78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259","66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86","85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,","54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91","92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,",",,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,18,,,,,79,73,75","76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,",",52,,,54,,658,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63","64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291","295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96",",81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,",",,218,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65","8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92",",,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,",",,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75","76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,","61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9","94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36",",,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,",",63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257","291,295,90,89,91,92,,,219,,,,,,,292,,,94,93,,84,50,86,85,87,,88,95,96",",81,82,764,,336,334,333,754,335,,,,,,,,,,751,,,,,,,,712,,,214,,,52,",",54,,,,,,338,,,,,,,,341,340,344,343,,79,73,75,76,77,78,,,,74,80,,,,",",,56,,,53,,,,,296,83,63,64,65,8,51,,,752,57,58,,,,61,,59,60,62,23,24","66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85","87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32",",,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37","83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27","90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,",",,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,",",,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,",",,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,",",,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77","78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259","66,67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85","87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,","54,,256,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65","56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,28,27,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,256,,,,40,,,,,,,,218",",,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,","94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,",",,210,,,214,,,52,,,54,,256,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,",",74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67",",,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40",",,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,",",41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,",",,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,","74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67",",,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87",",88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,",",,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53",",57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92",",,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,",",,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,775,,,,40,,,,,,,,218,,,,,79,73","75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62","23,24,66,67,,,,,,22,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91","92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,",",,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73","75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62","23,24,66,67,,,,,,22,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214",",,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56",",,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,",",,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40",",,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219",",,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,",",,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77","78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59","60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30",",,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295","90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96,,81","82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,658,,254,,40,,,",",,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219",",,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,",",,,,,,,,,,,,,210,,,214,,,52,,,54,,,,254,,40,,,,,,,,218,,,,,79,73,75","76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,","61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9","94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36",",,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,",",,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66","67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87",",88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,",",,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53",",57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92",",,219,,,,,,,292,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,,,,,,,,,,",",,,,,,,,,,,,,289,,,286,,,52,,,54,,,,,,,,,,,,,,,,,,,79,73,75,76,77,78",",,,74,80,,,,63,64,65,56,51,,53,,57,58,,296,83,61,,59,60,62,258,259,66","67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,292,,,94,93,,84,50,86,85","87,,88,95,96,,81,82,,,,,,,,,,,,,,,,,,,,,,,,,289,,,286,,,52,,,54,,,,",",,,,,,,,,,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58",",296,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219",",,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,",",,,,,,,,,,210,,,214,,,52,,,54,,421,,,,40,,,,,,,,218,,,,,79,73,75,76","77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,256,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65","56,51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89","91,92,,,17,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39",",,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,18,,,,,79,73","75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58",",,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41",",9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,",",,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74","80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23","24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86","85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54",",32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,",",37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28","27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81","82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18",",,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41",",,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,",",210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23","24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86","85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54",",32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51",",53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89","91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39",",,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73","75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62","23,24,66,67,,,,,,22,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91","92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,",",,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73","75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62","258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84","50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,",",52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295","90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82",",38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,",",,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61",",59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41",",,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,",",210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74","80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,",",,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,256,,",",40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83","63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90","89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53",",,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22","28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96",",81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,",",,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65","8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92",",,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,",",,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75","76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52",",,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56","51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90","89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38","39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,,,40,,,,,,,,218,,,,,79","73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60","62,258,259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,41,,,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214",",,52,,,54,,,,,,40,,,,,,,,218,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64","65,56,51,,53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295","90,89,91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,261,88,95,96,,81","82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,,,254,,40,,,,,,",",218,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65","8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92",",,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,",",,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75","76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62,258","259,66,67,,,,,,257,291,295,90,89,91,92,,,219,,,,,,,292,,,94,93,,84,50","86,85,87,,88,95,96,,81,82,,,,,,,,,,,,,,,,,,,,,,,,,926,,,214,,,52,,,54",",,,,,,,,,,,,,,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,","57,58,,296,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89,91,92",",,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,",",,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,658,,,,40,,,,,,,,218,,,,,79,73","75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58",",,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41",",9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,",",,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74","80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23","24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86","85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54",",32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,63,64,65,56,51",",53,,57,58,,37,83,61,,59,60,62,258,259,66,67,,,,,,257,291,295,90,89","91,92,,,219,,,,,,,41,,,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39",",,,,,,,,,,,,,,,,,,,,,210,,,214,,,52,,,54,,658,,254,,40,,,,,,,,218,,",",,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,",",,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,",",,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,",",,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77","78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59","60,62,23,24,66,67,,,,,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93",",84,50,86,85,87,,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30",",,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56",",,53,,,,,37,83,63,64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,",",,,22,28,27,90,89,91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88","95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40",",,,,,,,18,,,,,79,73,75,76,77,78,,,,74,80,,,,,,,56,,,53,,,,,37,83,63","64,65,8,51,,,,57,58,,,,61,,59,60,62,23,24,66,67,,,,,,22,28,27,90,89","91,92,,,17,,,,,,7,41,,9,94,93,,84,50,86,85,87,,88,95,96,,81,82,,38,39",",,,,,,,,,,,,,,,,,,,,,36,,,30,,,52,,,54,,32,,,,40,,,,,,,,18,,,,,79,73","75,76,77,78,,,,74,80,,,,63,64,65,56,51,,53,,57,58,,37,83,61,,59,60,62","258,259,66,67,,,,,,257,28,27,90,89,91,92,,,219,,,,,,,41,,,94,93,,84","50,86,85,87,261,88,95,96,,81,82,,38,39,,,,,,,,,,,,,,,,,,,,,,210,,,214",",,52,,,54,,256,,,,40,,,,,,,,218,,,,-538,79,73,75,76,77,78,-538,-538","-538,74,80,,-538,-538,,-538,,56,,,53,,,,-538,37,83,,,,,,,,,-538,-538",",-538,-538,-538,-538,-538,,,,,,,,,,,,,,,,,,,,,,,,-538,-538,-538,-538","-538,-538,-538,-538,-538,-538,-538,-538,-538,-538,-538,-283,,-538,-538","-538,,636,-283,-283,-283,-538,,,-283,-283,,-283,-538,,-538,,-538,-538","-538,-538,-538,-538,-538,,-538,-538,-538,,,,,-283,-283,,-283,-283,-283","-283,-283,-538,-538,,-87,,-538,,,-538,,-538,,-96,,,,,,,,,,,-283,-283","-283,-283,-283,-283,-283,-283,-283,-283,-283,-283,-283,-283,-283,,,-283","-283,-283,,639,,,,-283,,,,,,,-283,,-283,,-283,-283,-283,-283,-283,-283","-283,,-283,,-283,,,,,,,,,,,,,-283,-283,,-89,,-283,-538,,-283,,-283,","-98,-538,-538,-538,,,-538,-538,-538,,-538,,,,,,,,,-538,-538,-538,,,",",,,,,-538,-538,,-538,-538,-538,-538,-538,,,,,,,,,,,,,,,,,,,,,,,,-538","-538,-538,-538,-538,-538,-538,-538,-538,-538,-538,-538,-538,-538,-538",",,-538,-538,-538,,790,-538,,,-538,,,-538,,-538,,-538,,-538,,-538,-538","-538,-538,-538,-538,-538,,-538,-538,-538,,,,,,,,,,,,,-538,-538,-538","-538,,-538,-283,,-538,,-538,,-96,-283,-283,-283,,,-283,-283,-283,,-283",",,,,,,,,,-283,-283,,,,,,,,,-283,-283,,-283,-283,-283,-283,-283,,,,,",",,,,,,,,,,,,,,,,,,-283,-283,-283,-283,-283,-283,-283,-283,-283,-283","-283,-283,-283,-283,-283,,,-283,-283,-283,,639,-283,,,-283,,,-283,,-283",",-283,,-283,,-283,-283,-283,-283,-283,-283,-283,,-283,,-283,,,,,,,,",",,,,-283,-283,-283,-283,,-283,-292,,-283,,-283,,-98,-292,-292,-292,",",-292,-292,-292,,-292,,,,,,,,,,-292,-292,,,,,,,,,-292,-292,,-292,-292","-292,-292,-292,,,,,,,,,,,,,,,,,,,,,,,,-292,-292,-292,-292,-292,-292","-292,-292,-292,-292,-292,-292,-292,-292,-292,,,-292,-292,-292,,,-292",",277,-292,,,-292,,-292,,-292,,-292,,-292,-292,-292,-292,-292,-292,-292",",-292,,-292,,,,,,,,,,,,,-292,-292,-292,-292,-278,-292,,,-292,,-292,-278","-278,-278,,,-278,-278,-278,,-278,,,,,,,,,,-278,-278,-278,,,,,,,,-278","-278,,-278,-278,-278,-278,-278,,,,,,,,,,,,,,,,,,,,,,,,-278,-278,-278","-278,-278,-278,-278,-278,-278,-278,-278,-278,-278,-278,-278,,,-278,-278","-278,,,-278,,,-278,,,-278,,-278,,-278,,-278,,-278,-278,-278,-278,-278","-278,-278,,-278,,-278,,,,,,,,,,,,,-278,-278,-278,-278,-554,-278,,-278","-278,,-278,-554,-554,-554,,,-554,-554,-554,,-554,,,,,,,,,,-554,,,,,",",,,,-554,-554,,-554,-554,-554,-554,-554,,,,,,,,,,,,,,-554,,,,,,,-554","-554,-554,,,-554,-554,-554,,-554,,,,,-554,-554,,,,-554,,,-554,,,,,268","-554,-554,-554,,-554,-554,-554,-554,-554,,,,,764,,336,334,333,754,335",",-554,,,,,,,,751,,,,-554,-554,,-554,,,-554,-554,-554,-554,-554,-554","-554,-554,-554,,-554,,-554,338,749,,,268,-554,,-554,341,340,344,343",",,,,,-554,-554,,-554,-554,-554,-554,-554,,-554,,,,,,436,440,,,438,,","-554,,-554,,,-554,142,143,752,139,121,122,123,130,127,129,,,124,125","-554,-554,,,144,145,131,132,-554,,,,,268,-554,,,,,,136,135,,120,141","138,137,133,134,128,126,118,140,119,,-554,146,,,,,,,,,,,,-554,,-554",",,-554,156,167,157,180,153,173,163,162,188,191,178,161,160,155,181,189","190,165,154,168,172,174,166,159,,,,175,182,177,176,169,179,164,152,171","170,183,184,185,186,187,151,158,149,150,147,148,,111,113,110,,112,,",",,,,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144,145,131","132,,,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119",",,146,192,,,,,,,,,,80,156,167,157,180,153,173,163,162,188,191,178,161","160,155,181,189,190,165,154,168,172,174,166,159,,,,175,182,177,176,169","179,164,152,171,170,183,184,185,186,187,151,158,149,150,147,148,,111","113,,,112,,,,,,,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,",",144,145,131,132,,,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126","118,140,119,,,146,192,,,,,,,,,,80,156,167,157,180,153,173,163,162,188","191,178,161,160,155,181,189,190,165,154,168,172,174,166,159,,,,175,182","177,176,169,179,164,152,171,170,183,184,185,186,187,151,158,149,150","147,148,,111,113,,,112,,,,,,,,,142,143,,139,121,122,123,130,127,129",",,124,125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141,138,137,133","134,128,126,118,140,119,,,146,192,,,,,,,,,,80,156,167,157,180,153,173","163,162,188,191,178,161,160,155,181,189,190,165,154,168,172,174,166","159,,,,175,182,177,176,169,179,164,152,171,170,183,184,185,186,187,151","158,149,150,147,148,,111,113,,,112,,,,,,,,,142,143,,139,121,122,123","130,127,129,,,124,125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141","138,137,133,134,128,126,118,140,119,,,146,192,,,,,,,,,,80,156,167,157","180,153,173,163,162,188,191,178,161,160,155,181,189,190,165,154,168","172,174,166,159,,,,175,182,177,376,375,377,374,152,171,170,183,184,185","186,187,151,158,149,150,372,373,,370,113,86,85,371,,88,,,,,,,142,143",",139,121,122,123,130,127,129,,,124,125,,,,,144,145,131,132,,,,,,381",",,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119,,,146,156","167,157,180,153,173,163,162,188,191,178,161,160,155,181,189,190,165","154,168,172,174,166,159,,,,175,182,177,176,169,179,164,152,171,170,183","184,185,186,187,151,158,149,150,147,148,,111,113,398,397,112,,399,,",",,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144,145,131,132",",,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119,,,146","156,167,157,180,153,173,163,162,188,191,178,161,160,155,181,189,190","165,154,168,172,174,166,159,,,,175,182,177,176,169,179,164,152,171,170","183,184,185,186,187,151,158,149,150,147,148,,111,113,398,397,112,,399",",,,,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144,145,131","132,,,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119",",,146,156,167,157,180,153,173,163,162,188,191,178,161,160,155,181,189","190,165,154,168,172,174,166,159,,,,175,182,177,176,169,179,164,152,171","170,183,184,185,186,187,151,158,149,150,147,148,,111,113,,,112,,,,,",",,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144,145,131,132",",,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119,430","434,146,,431,,,,,,,,,142,143,,139,121,122,123,130,127,129,,,124,125",",,,,144,145,131,132,,,,,,268,,,,,,,136,135,,120,141,138,137,133,134","128,126,118,140,119,443,434,146,,444,,,,,,,,,142,143,,139,121,122,123","130,127,129,,,124,125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141","138,137,133,134,128,126,118,140,119,443,434,146,,444,,,,,,,,,142,143",",139,121,122,123,130,127,129,,,124,125,,,,,144,145,131,132,,,,,,,,,",",,,136,135,,120,141,138,137,133,134,128,126,118,140,119,443,434,146",",444,,,,,,,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144","145,131,132,,,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126,118","140,119,443,434,146,,444,,,,,,,,,142,143,,139,121,122,123,130,127,129",",,124,125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141,138,137,133","134,128,126,118,140,119,642,434,146,,643,,,,,,,,,142,143,,139,121,122","123,130,127,129,,,124,125,,,,,144,145,131,132,,,,,,268,,,,,,,136,135",",120,141,138,137,133,134,128,126,118,140,119,644,440,146,,645,,,,,,",",,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144,145,131,132",",,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119,686","434,146,,687,,,,,,,,,142,143,,139,121,122,123,130,127,129,,,124,125",",,,,144,145,131,132,,,,,,268,,,,,,,136,135,,120,141,138,137,133,134","128,126,118,140,119,689,440,146,,690,,,,,,,,,142,143,,139,121,122,123","130,127,129,,,124,125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141","138,137,133,134,128,126,118,140,119,443,434,146,,444,,,,,,,,,142,143",",139,121,122,123,130,127,129,,,124,125,,,,,144,145,131,132,,,,,,,,,",",,,136,135,,120,141,138,137,133,134,128,126,118,140,119,642,434,146",",643,,,,,,,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144","145,131,132,,,,,,268,,,,,,,136,135,,120,141,138,137,133,134,128,126","118,140,119,644,440,146,,645,,,,,,,,,142,143,,139,121,122,123,130,127","129,,,124,125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141,138,137","133,134,128,126,118,140,119,733,434,146,,734,,,,,,,,,142,143,,139,121","122,123,130,127,129,,,124,125,,,,,144,145,131,132,,,,,,268,,,,,,,136","135,,120,141,138,137,133,134,128,126,118,140,119,735,440,146,,736,,",",,,,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,,144,145,131","132,,,,,,,,,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119","741,440,146,,739,,,,,,,,,142,143,,139,121,122,123,130,127,129,,,124","125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141,138,137,133,134","128,126,118,140,119,443,434,146,,444,,,,,,,,,142,143,,139,121,122,123","130,127,129,,,124,125,,,,,144,145,131,132,,,,,,268,,,,,,,136,135,,120","141,138,137,133,134,128,126,118,140,119,741,440,146,,892,,,,,,,,,142","143,,139,121,122,123,130,127,129,,,124,125,,,,,144,145,131,132,,,,,",",,,,,,,136,135,,120,141,138,137,133,134,128,126,118,140,119,959,434","146,,960,,,,,,,,,142,143,,139,121,122,123,130,127,129,,,124,125,,,,","144,145,131,132,,,,,,268,,,,,,,136,135,,120,141,138,137,133,134,128","126,118,140,119,961,440,146,,962,,,,,,,,,142,143,,139,121,122,123,130","127,129,,,124,125,,,,,144,145,131,132,,,,,,,,,,,,,136,135,,120,141,138","137,133,134,128,126,118,140,119,,,146"]; | |
racc_action_table=arr=Opal.get("Array").$new(25031,nil);idx=0;($a=($b=clist).$each,$a.$$p=(TMP_1=function(str){var self=TMP_1.$$s||this,$a,$b,TMP_2;if(str==null)str=nil;return($a=($b=str.$split(",",-1)).$each,$a.$$p=(TMP_2=function(i){var self=TMP_2.$$s||this,$a;if(i==null)i=nil;if(($a=i["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{arr["$[]="](idx,i.$to_i())}return idx=$rb_plus(idx,1)},TMP_2.$$s=self,TMP_2),$a).call($b)},TMP_1.$$s=self,TMP_1),$a).call($b);clist=["0,0,0,0,0,347,321,354,0,0,392,746,746,0,71,0,0,0,0,0,0,0,71,313,852","615,313,0,0,0,0,0,0,0,1,852,0,387,26,209,387,485,0,0,0,0,0,0,348,0,0","0,0,0,55,0,0,0,497,0,0,357,0,0,587,681,366,370,852,852,733,310,310,392","370,485,734,352,838,352,839,604,604,735,889,0,615,615,0,209,896,0,497","6,0,615,0,287,387,387,0,746,681,924,26,852,746,9,0,927,948,321,354,0","0,0,0,0,0,347,959,347,0,0,347,26,736,17,17,17,0,17,960,0,507,17,17,10","0,0,17,55,17,17,17,17,17,17,17,211,735,457,457,11,17,17,17,17,17,17","17,310,348,17,348,287,357,348,507,587,17,604,366,17,17,733,17,17,17","17,17,734,17,17,17,839,17,17,735,17,17,366,838,736,838,838,366,838,889","211,889,371,287,889,896,12,896,457,371,896,961,287,17,20,962,17,17,924","17,924,290,17,924,927,948,927,948,17,927,948,967,736,293,383,959,17","959,34,577,959,17,17,17,17,17,17,960,525,960,17,17,960,686,578,18,18","18,17,18,687,17,314,18,18,314,17,17,18,453,18,18,18,18,18,18,18,698","698,508,15,15,18,18,18,18,18,18,18,290,961,18,629,36,962,383,383,383","18,293,461,18,18,41,18,18,18,18,18,77,18,18,18,508,18,18,525,18,18,453","293,686,841,37,37,961,290,961,687,962,961,962,461,698,962,290,461,461","689,577,18,577,629,18,577,967,18,967,807,18,967,78,690,525,578,18,578","642,686,578,97,3,525,18,193,687,3,686,18,18,18,18,18,18,687,210,278","18,18,212,14,278,22,22,22,18,22,385,18,317,22,22,317,18,18,22,643,22","22,22,22,22,22,22,791,689,689,642,792,22,22,22,22,22,22,22,807,213,22","690,690,14,841,389,841,22,394,841,22,22,14,22,22,22,22,22,22,22,22,22","372,22,22,689,22,22,643,372,385,385,385,351,689,807,791,219,351,690","792,251,25,25,807,860,373,374,690,22,25,252,22,373,374,22,860,934,22","934,22,255,22,267,22,280,389,389,389,394,394,394,22,83,83,13,13,22,22","22,22,22,22,13,282,703,22,22,703,860,860,23,23,23,22,23,597,22,375,23","23,597,22,22,23,375,23,23,23,23,23,23,23,283,361,296,296,284,23,23,23","23,23,23,23,744,860,23,42,42,744,13,648,13,23,289,42,23,23,291,23,23","23,23,23,23,23,23,23,292,23,23,295,23,23,301,648,648,648,648,648,648","648,648,648,648,648,361,361,648,648,376,750,648,648,361,23,750,376,23","361,302,23,305,42,23,42,23,648,23,648,23,648,648,648,648,648,648,648","23,648,361,208,208,23,23,23,23,23,23,208,312,35,23,23,315,648,316,24","24,24,23,24,361,23,361,24,24,318,23,23,24,326,24,24,24,24,24,24,24,5","5,5,5,5,24,24,24,24,24,24,24,377,35,24,288,288,300,208,377,208,24,35","288,24,24,327,24,24,24,24,24,24,24,24,24,329,24,24,330,24,24,342,484","484,484,484,484,484,484,484,484,484,484,303,303,484,484,300,110,484","484,303,24,110,110,24,300,345,24,353,288,24,288,24,484,24,484,24,484","484,484,484,484,484,484,24,484,356,355,355,24,24,24,24,24,24,355,358","430,24,24,362,484,484,27,27,27,24,27,303,24,303,27,27,388,24,24,27,391","27,27,27,27,27,27,27,279,279,279,279,279,27,27,27,27,27,27,27,410,430","27,364,364,416,355,419,355,27,430,364,27,27,422,27,27,27,27,27,27,27","27,27,424,27,27,428,27,27,429,419,419,419,419,419,419,419,419,419,419","419,589,589,419,419,346,346,419,419,589,27,437,431,27,27,463,27,464","364,27,364,27,419,27,419,27,419,419,419,419,419,419,419,27,419,561,561","379,27,27,27,27,27,27,379,720,720,27,27,628,419,465,419,431,466,27,858","589,27,589,499,858,431,27,27,30,30,30,30,30,855,855,858,30,30,949,949","502,30,503,30,30,30,30,30,30,30,509,513,514,628,517,30,30,30,30,30,30","30,628,519,30,526,858,858,858,858,30,30,462,30,30,30,529,30,30,30,30","30,538,30,30,30,539,30,30,540,30,30,553,19,19,19,19,19,19,19,19,19,19","19,462,858,19,19,462,462,19,19,564,30,568,573,30,579,580,30,619,626","30,632,30,19,637,19,30,19,19,19,19,19,19,19,30,19,640,711,711,30,30","30,30,30,30,711,646,647,30,30,655,19,657,31,31,31,30,31,669,30,673,31","31,676,30,30,31,683,31,31,31,31,31,31,31,555,685,688,691,692,31,31,31","31,31,31,31,693,696,31,840,840,697,711,699,711,31,704,840,31,31,705","31,31,31,31,31,708,31,31,31,710,31,31,712,652,713,652,652,652,714,652","555,555,555,555,717,768,768,739,739,768,768,768,722,728,730,739,31,732","737,31,739,741,31,742,840,31,840,31,753,757,758,760,652,761,939,762","764,767,774,939,652,652,652,652,31,31,31,31,31,31,939,652,795,31,31","796,799,801,32,32,32,31,32,739,31,739,32,32,804,31,31,32,805,32,32,32","32,32,32,32,824,939,939,939,939,32,32,32,32,32,32,32,925,925,32,680","680,680,680,680,925,32,480,806,32,32,811,32,32,32,32,32,814,32,32,32","815,32,32,600,939,600,600,600,600,600,830,824,824,824,824,833,843,846","480,600,847,848,480,480,480,480,870,32,871,882,32,892,925,32,925,569","32,569,569,569,893,569,600,600,898,899,907,909,912,913,600,600,600,600","914,32,32,32,32,32,32,915,926,936,32,32,944,953,955,32,956,958,32,,","32,,,,,32,32,38,38,38,481,38,,,600,38,38,,,,38,,38,38,38,38,38,38,38",",,,,,38,38,38,38,38,38,38,,481,38,,,481,481,481,481,38,,,38,38,,38,38","38,38,38,,38,38,38,,38,38,,38,38,,249,249,249,249,249,249,249,249,249","249,249,,,249,249,,,249,249,,38,,,38,,,38,,,38,,,249,,249,38,249,249","249,249,249,249,249,38,249,,,,38,38,38,38,38,38,,,,38,38,,249,,39,39","39,38,39,,38,,39,39,,38,38,39,,39,39,39,39,39,39,39,,,,,,39,39,39,39","39,39,39,,829,39,829,829,829,,829,,39,,,39,39,,39,39,39,39,39,,39,39","39,,39,39,,39,39,,427,427,427,427,427,427,427,427,427,427,427,,,427","427,,,427,427,,39,,,39,,,39,,,39,,,427,,427,39,427,427,427,427,427,427","427,39,427,,,,39,39,39,39,39,39,,,,39,39,,427,,40,40,40,39,40,,39,,40","40,,39,39,40,,40,40,40,40,40,40,40,,,,,,40,40,40,40,40,40,40,,,40,,",",,,,40,,,40,40,,40,40,40,40,40,,40,40,40,,40,40,,40,40,,446,446,446","446,446,446,446,446,446,446,446,,,446,446,,,446,446,,40,,,40,,,40,,","40,,,446,,446,40,446,446,446,446,446,446,446,40,446,,,,40,40,40,40,40","40,,,,40,40,,446,,52,52,52,40,52,,40,,52,52,,40,40,52,,52,52,52,52,52","52,52,,,,,,52,52,52,52,52,52,52,,,52,,,,,,,52,,,52,52,,52,52,52,52,52",",52,52,52,,52,52,,52,52,,536,536,536,536,536,536,536,536,536,536,536",",,536,536,,,536,536,,52,,,52,,,52,,,52,,,536,,536,52,536,536,536,536","536,536,536,52,536,,,,52,52,52,52,52,52,,,,52,52,,536,,53,53,53,52,53",",52,,53,53,,52,52,53,,53,53,53,53,53,53,53,,,,,,53,53,53,53,53,53,53",",,53,,,,,,,53,,,53,53,,53,53,53,53,53,53,53,53,53,,53,53,,53,53,,695","695,695,695,695,695,695,695,695,695,695,,,695,695,,,695,695,,53,,,53",",,53,,,53,,53,695,,695,53,695,695,695,695,695,695,695,53,695,,,,53,53","53,53,53,53,,,,53,53,,695,,54,54,54,53,54,,53,,54,54,,53,53,54,,54,54","54,54,54,54,54,,,,,,54,54,54,54,54,54,54,,,54,,,,,,,54,,,54,54,,54,54","54,54,54,54,54,54,54,,54,54,,54,54,,773,773,773,773,773,773,773,773","773,773,773,,,773,773,,,773,773,,54,,,54,,,54,,,54,,,773,,773,54,773","773,773,773,773,773,773,54,773,,,,54,54,54,54,54,54,,,,54,54,,773,,57","57,57,54,57,,54,,57,57,,54,54,57,,57,57,57,57,57,57,57,,,,,,57,57,57","57,57,57,57,,,57,,,,,,,57,,,57,57,,57,57,57,57,57,,57,57,57,,57,57,","57,57,,779,779,779,779,779,779,779,779,779,779,779,,,779,779,,,779,779",",57,,,57,,,57,,,57,,,779,,779,57,779,779,779,779,779,779,779,57,779",",,,57,57,57,57,57,57,,,,57,57,,779,,58,58,58,57,58,,57,,58,58,,57,57","58,,58,58,58,58,58,58,58,,,,,,58,58,58,58,58,58,58,,,58,,,,,,,58,,,58","58,,58,58,58,58,58,,58,58,58,,58,58,,58,58,,781,781,781,781,781,781","781,781,781,781,781,,,781,781,,,781,781,,58,,,58,,,58,,,58,,,781,,781","58,781,781,781,781,781,781,781,58,781,,,,58,58,58,58,58,58,,,,58,58",",781,,61,61,61,58,61,,58,,61,61,,58,58,61,,61,61,61,61,61,61,61,,,,",",61,61,61,61,61,61,61,,,61,,,,,,,61,,,61,61,,61,61,61,61,61,,61,61,61",",61,61,,61,61,,672,672,672,672,672,672,672,672,672,672,672,,,672,672",",,672,672,,61,,,61,,,61,,,61,,,672,,672,61,672,672,672,672,672,672,672","61,672,,,,61,61,61,61,61,61,,,,61,61,61,672,,672,,61,61,,,61,,,,,61","61,62,62,62,,62,,,,62,62,,,,62,,62,62,62,62,62,62,62,,,,,,62,62,62,62","62,62,62,,,62,,,,,,,62,,,62,62,,62,62,62,62,62,,62,62,62,,62,62,784","784,784,784,784,784,784,784,784,784,784,467,,784,784,,,784,784,,,,,","62,,,62,467,467,62,,784,62,784,62,784,784,784,784,784,784,784,467,784","467,,467,467,467,467,,62,62,62,62,62,62,,,784,62,62,,,,63,63,63,62,63",",62,,63,63,,62,62,63,,63,63,63,63,63,63,63,,,,,,63,63,63,63,63,63,63",",,63,,,,,,,63,,,63,63,,63,63,63,63,63,,63,63,63,,63,63,786,786,786,786","786,786,786,786,786,786,786,468,,786,786,,,786,786,,,63,,,63,,,63,468","468,63,,786,63,786,,786,786,786,786,786,786,786,468,786,468,,468,468","468,468,,63,63,63,63,63,63,,,786,63,63,,,,84,84,84,63,84,,63,,84,84",",63,63,84,,84,84,84,84,84,84,84,,84,,,,84,84,84,84,84,84,84,,,84,,,",",,,84,,,84,84,,84,84,84,84,84,84,84,84,84,,84,84,,84,84,,793,793,793","793,793,793,793,793,793,793,793,,,793,793,,,793,793,,84,,,84,84,,84",",,84,,84,793,84,793,84,793,793,793,793,793,793,793,84,793,84,,,84,84","84,84,84,84,,,,84,84,,793,,87,87,87,84,87,,84,,87,87,,84,84,87,,87,87","87,87,87,87,87,,87,,,,87,87,87,87,87,87,87,,,87,,,,,,,87,,,87,87,,87","87,87,87,87,87,87,87,87,,87,87,,87,87,,873,873,873,873,873,873,873,873","873,873,873,,,873,873,,,873,873,,87,,,87,87,,87,,,87,,87,873,87,873","87,873,873,873,873,873,873,873,87,873,87,,,87,87,87,87,87,87,,,,87,87",",873,,,,,87,,,87,,,,,87,87,99,99,99,99,99,,,,99,99,,,,99,,99,99,99,99","99,99,99,,,,,,99,99,99,99,99,99,99,,,99,,,,,,99,99,99,99,99,99,,99,99","99,99,99,,99,99,99,,99,99,,99,99,,875,875,875,875,875,875,875,875,875","875,875,,,875,875,,,875,875,,99,,,99,,,99,,,99,,99,875,,875,99,875,875","875,875,875,875,875,99,875,,,,99,99,99,99,99,99,,,,99,99,,875,,,,99","99,,,99,,,,,99,99,103,103,103,,103,,,,103,103,,,,103,,103,103,103,103","103,103,103,,,,,,103,103,103,103,103,103,103,,338,103,338,338,338,,338",",103,,,103,103,,103,103,103,103,103,,103,103,103,,103,103,,103,103,566",",566,566,566,,566,,,718,338,718,718,718,,718,,,338,,,103,,,103,,,103",",,103,,,,,,103,,,566,,,,,103,,,566,718,103,103,103,103,103,103,,718",",103,103,,,,104,104,104,103,104,,103,,104,104,,103,103,104,,104,104","104,104,104,104,104,,,,,,104,104,104,104,104,104,104,,,104,,,,,,,104",",,104,104,,104,104,104,104,104,,104,104,104,,104,104,,104,104,,459,459","459,459,459,459,459,459,459,459,459,,,459,459,,,459,459,,104,,,104,",",104,,,104,,,459,,459,104,459,459,459,459,459,459,459,104,459,,,,104","104,104,104,104,104,,,,104,104,,,,105,105,105,104,105,,104,,105,105",",104,104,105,,105,105,105,105,105,105,105,,,,,,105,105,105,105,105,105","105,,,105,,,,,,,105,,,105,105,,105,105,105,105,105,,105,105,105,,105","105,,105,105,,460,460,460,460,460,460,460,460,460,460,460,,,460,460",",,460,460,,105,,,105,,,105,,,105,,,460,,460,105,460,460,460,460,460","460,460,105,460,,,,105,105,105,105,105,105,,,,105,105,,,,106,106,106","105,106,,105,,106,106,,105,105,106,,106,106,106,106,106,106,106,,,,",",106,106,106,106,106,106,106,,,106,,,,,,,106,,,106,106,,106,106,106","106,106,,106,106,106,,106,106,,106,106,,470,470,470,470,470,470,470",",,470,470,,,,,,,470,470,,106,,,106,,,106,,,106,,,470,,470,106,470,470","470,470,470,470,470,106,470,,,,106,106,106,106,106,106,,,,106,106,,",",,,,106,,,106,,,,,106,106,107,107,107,107,107,,,,107,107,,,,107,,107","107,107,107,107,107,107,,,,,,107,107,107,107,107,107,107,,,107,,,,,","107,107,,107,107,107,,107,107,107,107,107,,107,107,107,,107,107,,107","107,,471,,,,,,,,,,,,,,,,,471,471,,107,,,107,,,107,,,107,,107,471,,471","107,471,471,471,471,,,471,107,471,,,,107,107,107,107,107,107,,,,107","107,,,,,,,107,,,107,,,,,107,107,108,108,108,108,108,,,,108,108,,,,108",",108,108,108,108,108,108,108,,,,,,108,108,108,108,108,108,108,,,108",",,,,,108,108,108,108,108,108,,108,108,108,108,108,,108,108,108,,108","108,,108,108,,472,,,,,,,,,,,,,,,,,472,472,,108,,,108,,,108,,,108,,108","472,,472,108,472,472,472,472,,,472,108,472,,,,108,108,108,108,108,108",",,,108,108,,,,,,,108,,,108,,,,,108,108,195,195,195,195,195,,,,195,195",",,,195,,195,195,195,195,195,195,195,,,,,,195,195,195,195,195,195,195",",,195,,,,,,195,195,,195,195,195,,195,195,195,195,195,,195,195,195,,195","195,,195,195,,473,,,,,,,,,,,,,,,,,473,473,,195,,,195,,,195,,,195,,195","473,,473,195,473,473,473,473,,,473,195,473,,,,195,195,195,195,195,195",",,,195,195,,,,196,196,196,195,196,,195,,196,196,,195,195,196,,196,196","196,196,196,196,196,,,,,,196,196,196,196,196,196,196,,,196,,,,,,,196",",,196,196,,196,196,196,196,196,,196,196,196,,196,196,,196,196,,474,",",,,,,,,,,,,,,,,474,474,,196,,,196,,,196,,,196,,196,474,,474,196,474","474,474,474,,,474,196,474,,,,196,196,196,196,196,196,,,,196,196,,,,197","197,197,196,197,,196,,197,197,,196,196,197,,197,197,197,197,197,197","197,,,,,,197,197,197,197,197,197,197,,,197,,,,,,,197,,,197,197,,197","197,197,197,197,,197,197,197,,197,197,,197,197,,475,475,475,475,475","475,475,,,475,475,,,,,,,475,475,,197,,,197,,,197,,,197,,197,475,,475","197,475,475,475,475,475,475,475,197,475,,,,197,197,197,197,197,197,",",,197,197,,,,198,198,198,197,198,,197,,198,198,,197,197,198,,198,198","198,198,198,198,198,,,,,,198,198,198,198,198,198,198,,,198,,,,,,,198",",,198,198,,198,198,198,198,198,,198,198,198,,198,198,,198,198,,476,476","476,476,476,476,476,,,476,476,,,,,,,476,476,,198,,,198,,,198,,,198,",",476,,476,198,476,476,476,476,476,476,476,198,476,,,,198,198,198,198","198,198,,,,198,198,,,,199,199,199,198,199,,198,,199,199,,198,198,199",",199,199,199,199,199,199,199,,,,,,199,199,199,199,199,199,199,,,199",",,,,,,199,,,199,199,,199,199,199,199,199,199,199,199,199,,199,199,,199","199,,477,477,477,477,477,477,477,,,477,477,,,,,,,477,477,,199,,,199",",,199,,,199,,199,477,,477,199,477,477,477,477,477,477,477,199,477,,",",199,199,199,199,199,199,,,,199,199,,,,200,200,200,199,200,,199,,200","200,,199,199,200,,200,200,200,200,200,200,200,,,,,,200,200,200,200,200","200,200,,,200,,,,,,,200,,,200,200,,200,200,200,200,200,200,200,200,200",",200,200,,200,200,,478,478,478,478,478,478,478,,,478,478,,,,,,,478,478",",200,,,200,,,200,,,200,,200,478,,478,200,478,478,478,478,478,478,478","200,478,,,,200,200,200,200,200,200,,,,200,200,,,,204,204,204,200,204",",200,,204,204,,200,200,204,,204,204,204,204,204,204,204,,,,,,204,204","204,204,204,204,204,,,204,,,,,,,204,,,204,204,,204,204,204,204,204,","204,204,204,,204,204,,204,204,,479,479,479,479,479,479,479,,,479,479",",,,,,,479,479,,204,,,204,,,204,,,204,,,479,,479,204,479,479,479,479","479,479,479,204,479,,,,204,204,204,204,204,204,,,,204,204,,,,205,205","205,204,205,,204,,205,205,,204,204,205,,205,205,205,205,205,205,205",",,,,,205,205,205,205,205,205,205,,,205,,,,,,,205,,,205,205,,205,205","205,205,205,,205,205,205,,205,205,,205,205,,482,482,482,482,482,482","482,,,482,482,,,,,,,482,482,,205,,,205,,,205,,,205,,,482,,482,205,482","482,482,482,482,482,482,205,482,,,,205,205,205,205,205,205,,,,205,205",",,,206,206,206,205,206,,205,,206,206,,205,205,206,,206,206,206,206,206","206,206,,,,,,206,206,206,206,206,206,206,,,206,,,,,,,206,,,206,206,","206,206,206,206,206,,206,206,206,,206,206,,206,206,,483,483,483,483","483,483,483,483,,483,483,,,,,,,483,483,,206,,,206,,,206,,,206,,,483",",483,206,483,483,483,483,483,483,483,206,483,,,,206,206,206,206,206","206,,,,206,206,,,,,,,206,,,206,,,,,206,206,214,214,214,214,214,,,,214","214,,,,214,,214,214,214,214,214,214,214,,,,,,214,214,214,214,214,214","214,,,214,,,,,,214,214,,214,214,214,,214,214,214,214,214,,214,214,214",",214,214,,214,214,,469,,,,,,,,,,,,,,,,,469,469,,214,,,214,,,214,,,214",",214,469,,,214,469,469,469,469,,,,214,,,,,214,214,214,214,214,214,,",",214,214,,,,215,215,215,214,215,,214,,215,215,,214,214,215,,215,215","215,215,215,215,215,,,,,,215,215,215,215,215,215,215,,,215,,,,,,,215",",,215,215,,215,215,215,215,215,,215,215,215,,215,215,,215,215,,,,,,",",,,,,,,,,,,,,,,215,,,215,,215,215,,,215,,,,,,215,,,,,,,,215,,,,,215","215,215,215,215,215,,,,215,215,,,,218,218,218,215,218,,215,,218,218",",215,215,218,,218,218,218,218,218,218,218,,,,,,218,218,218,218,218,218","218,,,218,,,,,,,218,,,218,218,,218,218,218,218,218,,218,218,218,,218","218,,218,218,,,,,,,,,,,,,,,,,,,,,,218,,,218,,,218,,,218,,,,,,218,,,",",,,,218,,,,,218,218,218,218,218,218,,,,218,218,,,,220,220,220,218,220",",218,,220,220,,218,218,220,,220,220,220,220,220,220,220,,,,,,220,220","220,220,220,220,220,,,220,,,,,,,220,,,220,220,,220,220,220,220,220,","220,220,220,,220,220,,220,220,,,,,,,,,,,,,,,,,,,,,,220,,,220,,,220,",",220,,,,,,220,,,,,,,,220,,,,,220,220,220,220,220,220,,,,220,220,,,,221","221,221,220,221,,220,,221,221,,220,220,221,,221,221,221,221,221,221","221,,,,,,221,221,221,221,221,221,221,,,221,,,,,,,221,,,221,221,,221","221,221,221,221,,221,221,221,,221,221,,221,221,,,,,,,,,,,,,,,,,,,,,","221,,,221,,,221,,,221,,,,,,221,,,,,,,,221,,,,,221,221,221,221,221,221",",,,221,221,,,,222,222,222,221,222,,221,,222,222,,221,221,222,,222,222","222,222,222,222,222,,,,,,222,222,222,222,222,222,222,,,222,,,,,,,222",",,222,222,,222,222,222,222,222,,222,222,222,,222,222,,222,222,,,,,,",",,,,,,,,,,,,,,,222,,,222,,,222,,,222,,,,,,222,,,,,,,,222,,,,,222,222","222,222,222,222,,,,222,222,,,,223,223,223,222,223,,222,,223,223,,222","222,223,,223,223,223,223,223,223,223,,,,,,223,223,223,223,223,223,223",",,223,,,,,,,223,,,223,223,,223,223,223,223,223,,223,223,223,,223,223",",223,223,,,,,,,,,,,,,,,,,,,,,,223,,,223,,,223,,,223,,,,,,223,,,,,,,","223,,,,,223,223,223,223,223,223,,,,223,223,,,,224,224,224,223,224,,223",",224,224,,223,223,224,,224,224,224,224,224,224,224,,,,,,224,224,224","224,224,224,224,,,224,,,,,,,224,,,224,224,,224,224,224,224,224,,224","224,224,,224,224,,224,224,,,,,,,,,,,,,,,,,,,,,,224,,,224,,,224,,,224",",,,,,224,,,,,,,,224,,,,,224,224,224,224,224,224,,,,224,224,,,,225,225","225,224,225,,224,,225,225,,224,224,225,,225,225,225,225,225,225,225",",,,,,225,225,225,225,225,225,225,,,225,,,,,,,225,,,225,225,,225,225","225,225,225,,225,225,225,,225,225,,225,225,,,,,,,,,,,,,,,,,,,,,,225",",,225,,,225,,,225,,,,,,225,,,,,,,,225,,,,,225,225,225,225,225,225,,",",225,225,,,,226,226,226,225,226,,225,,226,226,,225,225,226,,226,226","226,226,226,226,226,,,,,,226,226,226,226,226,226,226,,,226,,,,,,,226",",,226,226,,226,226,226,226,226,,226,226,226,,226,226,,226,226,,,,,,",",,,,,,,,,,,,,,,226,,,226,,,226,,,226,,,,,,226,,,,,,,,226,,,,,226,226","226,226,226,226,,,,226,226,,,,227,227,227,226,227,,226,,227,227,,226","226,227,,227,227,227,227,227,227,227,,,,,,227,227,227,227,227,227,227",",,227,,,,,,,227,,,227,227,,227,227,227,227,227,,227,227,227,,227,227",",227,227,,,,,,,,,,,,,,,,,,,,,,227,,,227,,,227,,,227,,,,,,227,,,,,,,","227,,,,,227,227,227,227,227,227,,,,227,227,,,,228,228,228,227,228,,227",",228,228,,227,227,228,,228,228,228,228,228,228,228,,,,,,228,228,228","228,228,228,228,,,228,,,,,,,228,,,228,228,,228,228,228,228,228,,228","228,228,,228,228,,228,228,,,,,,,,,,,,,,,,,,,,,,228,,,228,,,228,,,228",",,,,,228,,,,,,,,228,,,,,228,228,228,228,228,228,,,,228,228,,,,229,229","229,228,229,,228,,229,229,,228,228,229,,229,229,229,229,229,229,229",",,,,,229,229,229,229,229,229,229,,,229,,,,,,,229,,,229,229,,229,229","229,229,229,,229,229,229,,229,229,,229,229,,,,,,,,,,,,,,,,,,,,,,229",",,229,,,229,,,229,,,,,,229,,,,,,,,229,,,,,229,229,229,229,229,229,,",",229,229,,,,230,230,230,229,230,,229,,230,230,,229,229,230,,230,230","230,230,230,230,230,,,,,,230,230,230,230,230,230,230,,,230,,,,,,,230",",,230,230,,230,230,230,230,230,,230,230,230,,230,230,,230,230,,,,,,",",,,,,,,,,,,,,,,230,,,230,,,230,,,230,,,,,,230,,,,,,,,230,,,,,230,230","230,230,230,230,,,,230,230,,,,231,231,231,230,231,,230,,231,231,,230","230,231,,231,231,231,231,231,231,231,,,,,,231,231,231,231,231,231,231",",,231,,,,,,,231,,,231,231,,231,231,231,231,231,,231,231,231,,231,231",",231,231,,,,,,,,,,,,,,,,,,,,,,231,,,231,,,231,,,231,,,,,,231,,,,,,,","231,,,,,231,231,231,231,231,231,,,,231,231,,,,232,232,232,231,232,,231",",232,232,,231,231,232,,232,232,232,232,232,232,232,,,,,,232,232,232","232,232,232,232,,,232,,,,,,,232,,,232,232,,232,232,232,232,232,,232","232,232,,232,232,,232,232,,,,,,,,,,,,,,,,,,,,,,232,,,232,,,232,,,232",",,,,,232,,,,,,,,232,,,,,232,232,232,232,232,232,,,,232,232,,,,233,233","233,232,233,,232,,233,233,,232,232,233,,233,233,233,233,233,233,233",",,,,,233,233,233,233,233,233,233,,,233,,,,,,,233,,,233,233,,233,233","233,233,233,,233,233,233,,233,233,,233,233,,,,,,,,,,,,,,,,,,,,,,233",",,233,,,233,,,233,,,,,,233,,,,,,,,233,,,,,233,233,233,233,233,233,,",",233,233,,,,234,234,234,233,234,,233,,234,234,,233,233,234,,234,234","234,234,234,234,234,,,,,,234,234,234,234,234,234,234,,,234,,,,,,,234",",,234,234,,234,234,234,234,234,,234,234,234,,234,234,,234,234,,,,,,",",,,,,,,,,,,,,,,234,,,234,,,234,,,234,,,,,,234,,,,,,,,234,,,,,234,234","234,234,234,234,,,,234,234,,,,235,235,235,234,235,,234,,235,235,,234","234,235,,235,235,235,235,235,235,235,,,,,,235,235,235,235,235,235,235",",,235,,,,,,,235,,,235,235,,235,235,235,235,235,,235,235,235,,235,235",",235,235,,,,,,,,,,,,,,,,,,,,,,235,,,235,,,235,,,235,,,,,,235,,,,,,,","235,,,,,235,235,235,235,235,235,,,,235,235,,,,236,236,236,235,236,,235",",236,236,,235,235,236,,236,236,236,236,236,236,236,,,,,,236,236,236","236,236,236,236,,,236,,,,,,,236,,,236,236,,236,236,236,236,236,,236","236,236,,236,236,,236,236,,,,,,,,,,,,,,,,,,,,,,236,,,236,,,236,,,236",",,,,,236,,,,,,,,236,,,,,236,236,236,236,236,236,,,,236,236,,,,237,237","237,236,237,,236,,237,237,,236,236,237,,237,237,237,237,237,237,237",",,,,,237,237,237,237,237,237,237,,,237,,,,,,,237,,,237,237,,237,237","237,237,237,,237,237,237,,237,237,,237,237,,,,,,,,,,,,,,,,,,,,,,237",",,237,,,237,,,237,,,,,,237,,,,,,,,237,,,,,237,237,237,237,237,237,,",",237,237,,,,238,238,238,237,238,,237,,238,238,,237,237,238,,238,238","238,238,238,238,238,,,,,,238,238,238,238,238,238,238,,,238,,,,,,,238",",,238,238,,238,238,238,238,238,,238,238,238,,238,238,,238,238,,,,,,",",,,,,,,,,,,,,,,238,,,238,,,238,,,238,,,,,,238,,,,,,,,238,,,,,238,238","238,238,238,238,,,,238,238,,,,239,239,239,238,239,,238,,239,239,,238","238,239,,239,239,239,239,239,239,239,,,,,,239,239,239,239,239,239,239",",,239,,,,,,,239,,,239,239,,239,239,239,239,239,,239,239,239,,239,239",",239,239,,,,,,,,,,,,,,,,,,,,,,239,,,239,,,239,,,239,,,,,,239,,,,,,,","239,,,,,239,239,239,239,239,239,,,,239,239,,,,240,240,240,239,240,,239",",240,240,,239,239,240,,240,240,240,240,240,240,240,,,,,,240,240,240","240,240,240,240,,,240,,,,,,,240,,,240,240,,240,240,240,240,240,,240","240,240,,240,240,,240,240,,,,,,,,,,,,,,,,,,,,,,240,,,240,,,240,,,240",",,,,,240,,,,,,,,240,,,,,240,240,240,240,240,240,,,,240,240,,,,241,241","241,240,241,,240,,241,241,,240,240,241,,241,241,241,241,241,241,241",",,,,,241,241,241,241,241,241,241,,,241,,,,,,,241,,,241,241,,241,241","241,241,241,,241,241,241,,241,241,,241,241,,,,,,,,,,,,,,,,,,,,,,241",",,241,,,241,,,241,,,,,,241,,,,,,,,241,,,,,241,241,241,241,241,241,,",",241,241,,,,242,242,242,241,242,,241,,242,242,,241,241,242,,242,242","242,242,242,242,242,,,,,,242,242,242,242,242,242,242,,,242,,,,,,,242",",,242,242,,242,242,242,242,242,,242,242,242,,242,242,,242,242,,,,,,",",,,,,,,,,,,,,,,242,,,242,,,242,,,242,,,,,,242,,,,,,,,242,,,,,242,242","242,242,242,242,,,,242,242,,,,243,243,243,242,243,,242,,243,243,,242","242,243,,243,243,243,243,243,243,243,,,,,,243,243,243,243,243,243,243",",,243,,,,,,,243,,,243,243,,243,243,243,243,243,,243,243,243,,243,243",",243,243,,,,,,,,,,,,,,,,,,,,,,243,,,243,,,243,,,243,,,,,,243,,,,,,,","243,,,,,243,243,243,243,243,243,,,,243,243,,,,244,244,244,243,244,,243",",244,244,,243,243,244,,244,244,244,244,244,244,244,,,,,,244,244,244","244,244,244,244,,,244,,,,,,,244,,,244,244,,244,244,244,244,244,,244","244,244,,244,244,,244,244,,,,,,,,,,,,,,,,,,,,,,244,,,244,,,244,,,244",",,,,,244,,,,,,,,244,,,,,244,244,244,244,244,244,,,,244,244,,,,245,245","245,244,245,,244,,245,245,,244,244,245,,245,245,245,245,245,245,245",",,,,,245,245,245,245,245,245,245,,,245,,,,,,,245,,,245,245,,245,245","245,245,245,,245,245,245,,245,245,,245,245,,,,,,,,,,,,,,,,,,,,,,245",",,245,,,245,,,245,,,,,,245,,,,,,,,245,,,,,245,245,245,245,245,245,,",",245,245,,,,254,254,254,245,254,,245,,254,254,,245,245,254,,254,254","254,254,254,254,254,,,,,,254,254,254,254,254,254,254,,,254,,,,,,,254",",,254,254,,254,254,254,254,254,,254,254,254,,254,254,,254,254,,,,,,",",,,,,,,,,,,,,,,254,,,254,,,254,,,254,,,,,,254,,,,,,,,254,,,,,254,254","254,254,254,254,,,,254,254,,,,256,256,256,254,256,,254,,256,256,,254","254,256,,256,256,256,256,256,256,256,,,,,,256,256,256,256,256,256,256",",,256,,,,,,,256,,,256,256,,256,256,256,256,256,,256,256,256,,256,256",",256,256,,,,,,,,,,,,,,,,,,,,,,256,,,256,,,256,,,256,,,,,,256,,,,,,,","256,,,,,256,256,256,256,256,256,,,,256,256,,,,261,261,261,256,261,,256",",261,261,,256,256,261,,261,261,261,261,261,261,261,,,,,,261,261,261","261,261,261,261,,,261,,,,,,,261,,,261,261,,261,261,261,261,261,,261","261,261,,261,261,,261,261,,,,,,,,,,,,,,,,,,,,,,261,,,261,,,261,,,261",",,,,,261,,,,,,,,261,,,,,261,261,261,261,261,261,,,,261,261,,,,268,268","268,261,268,,261,,268,268,,261,261,268,,268,268,268,268,268,268,268",",,,,,268,268,268,268,268,268,268,,,268,,,,,,,268,,,268,268,,268,268","268,268,268,268,268,268,268,,268,268,,268,268,,,,,,,,,,,,,,,,,,,,,,268",",,268,,,268,,,268,,268,,268,,268,,,,,,,,268,,,,,268,268,268,268,268","268,,,,268,268,,,,269,269,269,268,269,,268,,269,269,,268,268,269,,269","269,269,269,269,269,269,,,,,,269,269,269,269,269,269,269,,,269,,,,,",",269,,,269,269,,269,269,269,269,269,269,269,269,269,,269,269,,269,269",",,,,,,,,,,,,,,,,,,,,,269,,,269,,,269,,,269,,269,,269,,269,,,,,,,,269",",,,,269,269,269,269,269,269,,,,269,269,,,,277,277,277,269,277,,269,","277,277,,269,269,277,,277,277,277,277,277,277,277,,,,,,277,277,277,277","277,277,277,,,277,,,,,,,277,,,277,277,,277,277,277,277,277,277,277,277","277,,277,277,,277,277,,,,,,,,,,,,,,,,,,,,,,277,,,277,,277,277,,,277",",277,,277,,277,,,,,,,,277,,,,,277,277,277,277,277,277,,,,277,277,,,",",,,277,,,277,,,,,277,277,281,281,281,281,281,,,,281,281,,,,281,,281","281,281,281,281,281,281,,,,,,281,281,281,281,281,281,281,,,281,,,,,","281,281,,281,281,281,,281,281,281,281,281,,281,281,281,,281,281,,281","281,,,,,,,,,,,,,,,,,,,,,,281,,,281,,,281,,,281,,281,,,,281,,,,,,,,281",",,,,281,281,281,281,281,281,,,,281,281,,,,285,285,285,281,285,,281,","285,285,,281,281,285,,285,285,285,285,285,285,285,,,,,,285,285,285,285","285,285,285,,,285,,,,,,,285,,,285,285,,285,285,285,285,285,,285,285","285,,285,285,749,,749,749,749,749,749,,,,,,,,,,749,,,,,,,,285,,,285",",,285,,,285,,,,,,749,,,,,,,,749,749,749,749,,285,285,285,285,285,285",",,,285,285,,,,285,,,285,,,285,,,,,285,285,286,286,286,286,286,,,749","286,286,,,,286,,286,286,286,286,286,286,286,,,,,,286,286,286,286,286","286,286,,,286,,,,,,286,286,,286,286,286,,286,286,286,286,286,,286,286","286,,286,286,,286,286,,,,,,,,,,,,,,,,,,,,,,286,,,286,,,286,,,286,,286",",,,286,,,,,,,,286,,,,,286,286,286,286,286,286,,,,286,286,,,,298,298","298,286,298,,286,,298,298,,286,286,298,,298,298,298,298,298,298,298",",,,,,298,298,298,298,298,298,298,,,298,,,,,,,298,,,298,298,,298,298","298,298,298,,298,298,298,,298,298,56,,56,56,56,,56,,,,,,,,,,,,,,,,,","298,,,298,,,298,,,298,,,,,,56,56,,,,,,,56,56,56,56,,298,298,298,298","298,298,,,,298,298,,,,307,307,307,298,307,,298,,307,307,,298,298,307",",307,307,307,307,307,307,307,,,,,,307,307,307,307,307,307,307,,,307",",,,,,,307,,,307,307,,307,307,307,307,307,,307,307,307,,307,307,,307","307,,,,,,,,,,,,,,,,,,,,,,307,,,307,307,,307,,,307,,,,,,307,,,,,,,,307",",,,,307,307,307,307,307,307,,,,307,307,,,,,,,307,,,307,,,,,307,307,309","309,309,309,309,,,,309,309,,,,309,,309,309,309,309,309,309,309,,,,,","309,309,309,309,309,309,309,,,309,,,,,,309,309,,309,309,309,,309,309","309,309,309,,309,309,309,,309,309,,309,309,,,,,,,,,,,,,,,,,,,,,,309",",,309,,,309,,,309,,309,,,,309,,,,,,,,309,,,,,309,309,309,309,309,309",",,,309,309,,,,349,349,349,309,349,,309,,349,349,,309,309,349,,349,349","349,349,349,349,349,,,,,,349,349,349,349,349,349,349,,,349,,,,,,,349",",,349,349,,349,349,349,349,349,,349,349,349,,349,349,,349,349,,,,,,",",,,,,,,,,,,,,,,349,,,349,,,349,,,349,,,,,,349,,,,,,,,349,,,,,349,349","349,349,349,349,,,,349,349,,,,350,350,350,349,350,,349,,350,350,,349","349,350,,350,350,350,350,350,350,350,,,,,,350,350,350,350,350,350,350",",,350,,,,,,,350,,,350,350,,350,350,350,350,350,,350,350,350,,350,350",",350,350,,,,,,,,,,,,,,,,,,,,,,350,,,350,,,350,,,350,,,,,,350,,,,,,,","350,,,,,350,350,350,350,350,350,,,,350,350,,,,369,369,369,350,369,,350",",369,369,,350,350,369,,369,369,369,369,369,369,369,,,,,,369,369,369","369,369,369,369,,,369,,,,,,,369,,,369,369,,369,369,369,369,369,,369","369,369,,369,369,322,,322,322,322,,322,,,,,,,,,,,,,,,,,,369,,,369,,","369,,,369,,,,,,322,,322,,,,,,322,322,322,322,,369,369,369,369,369,369",",,,369,369,,,,381,381,381,369,381,,369,,381,381,,369,369,381,,381,381","381,381,381,381,381,,,,,,381,381,381,381,381,381,381,,,381,,,,,,,381",",,381,381,,381,381,381,381,381,,381,381,381,,381,381,,381,381,,,,,,",",,,,,,,,,,,,,,,381,,,381,,,381,,,381,,,,,,381,,,,,,,,381,,,,,381,381","381,381,381,381,,,,381,381,,,,421,421,421,381,421,,381,,421,421,,381","381,421,,421,421,421,421,421,421,421,,,,,,421,421,421,421,421,421,421",",,421,,,,,,,421,,,421,421,,421,421,421,421,421,,421,421,421,,421,421",",421,421,,,,,,,,,,,,,,,,,,,,,,421,,,421,,,421,,,421,,,,,,421,,,,,,,","421,,,,,421,421,421,421,421,421,,,,421,421,,,,432,432,432,421,432,,421",",432,432,,421,421,432,,432,432,432,432,432,432,432,,,,,,432,432,432","432,432,432,432,,,432,,,,,,,432,,,432,432,,432,432,432,432,432,432,432","432,432,,432,432,,432,432,,,,,,,,,,,,,,,,,,,,,,432,,,432,432,,432,,","432,,432,,432,,432,,,,,,,,432,,,,,432,432,432,432,432,432,,,,432,432",",,,440,440,440,432,440,,432,,440,440,,432,432,440,,440,440,440,440,440","440,440,,,,,,440,440,440,440,440,440,440,,,440,,,,,,,440,,,440,440,","440,440,440,440,440,440,440,440,440,,440,440,,440,440,,,,,,,,,,,,,,",",,,,,,,440,,,440,440,,440,,,440,,440,,440,,440,,,,,,,,440,,,,,440,440","440,440,440,440,,,,440,440,,,,441,441,441,440,441,,440,,441,441,,440","440,441,,441,441,441,441,441,441,441,,,,,,441,441,441,441,441,441,441",",,441,,,,,,,441,,,441,441,,441,441,441,441,441,441,441,441,441,,441","441,,441,441,,,,,,,,,,,,,,,,,,,,,,441,,,441,441,,441,,,441,,441,,441",",441,,,,,,,,441,,,,,441,441,441,441,441,441,,,,441,441,,,,442,442,442","441,442,,441,,442,442,,441,441,442,,442,442,442,442,442,442,442,,,,",",442,442,442,442,442,442,442,,,442,,,,,,,442,,,442,442,,442,442,442","442,442,442,442,442,442,,442,442,,442,442,,,,,,,,,,,,,,,,,,,,,,442,",",442,442,,442,,,442,,442,,442,,442,,,,,,,,442,,,,,442,442,442,442,442","442,,,,442,442,,,,451,451,451,442,451,,442,,451,451,,442,442,451,,451","451,451,451,451,451,451,,,,,,451,451,451,451,451,451,451,,,451,,,,,",",451,,,451,451,,451,451,451,451,451,451,451,451,451,,451,451,,451,451",",,,,,,,,,,,,,,,,,,,,,451,,,451,,,451,,,451,,451,,,,451,,,,,,,,451,,",",,451,451,451,451,451,451,,,,451,451,,,,452,452,452,451,452,,451,,452","452,,451,451,452,,452,452,452,452,452,452,452,,,,,,452,452,452,452,452","452,452,,,452,,,,,,,452,,,452,452,,452,452,452,452,452,452,452,452,452",",452,452,,452,452,,,,,,,,,,,,,,,,,,,,,,452,,,452,,,452,,,452,,452,,",",452,,,,,,,,452,,,,,452,452,452,452,452,452,,,,452,452,,,,454,454,454","452,454,,452,,454,454,,452,452,454,,454,454,454,454,454,454,454,,,,",",454,454,454,454,454,454,454,,,454,,,,,,,454,,,454,454,,454,454,454","454,454,,454,454,454,,454,454,,454,454,,,,,,,,,,,,,,,,,,,,,,454,,,454",",,454,,,454,,,,,,454,,,,,,,,454,,,,,454,454,454,454,454,454,,,,454,454",",,,455,455,455,454,455,,454,,455,455,,454,454,455,,455,455,455,455,455","455,455,,,,,,455,455,455,455,455,455,455,,,455,,,,,,,455,,,455,455,","455,455,455,455,455,,455,455,455,,455,455,,455,455,,,,,,,,,,,,,,,,,",",,,,455,,,455,,,455,,,455,,,,,,455,,,,,,,,455,,,,,455,455,455,455,455","455,,,,455,455,,,,456,456,456,455,456,,455,,456,456,,455,455,456,,456","456,456,456,456,456,456,,,,,,456,456,456,456,456,456,456,,,456,,,,,",",456,,,456,456,,456,456,456,456,456,,456,456,456,,456,456,,456,456,",",,,,,,,,,,,,,,,,,,,,456,,,456,,,456,,,456,,,,,,456,,,,,,,,456,,,,,456","456,456,456,456,456,,,,456,456,,,,487,487,487,456,487,,456,,487,487",",456,456,487,,487,487,487,487,487,487,487,,,,,,487,487,487,487,487,487","487,,,487,,,,,,,487,,,487,487,,487,487,487,487,487,487,487,487,487,","487,487,,487,487,,,,,,,,,,,,,,,,,,,,,,487,,,487,,,487,,,487,,487,,487",",487,,,,,,,,487,,,,,487,487,487,487,487,487,,,,487,487,,,,489,489,489","487,489,,487,,489,489,,487,487,489,,489,489,489,489,489,489,489,,,,",",489,489,489,489,489,489,489,,,489,,,,,,,489,,,489,489,,489,489,489","489,489,489,489,489,489,,489,489,,489,489,,,,,,,,,,,,,,,,,,,,,,489,",",489,,,489,,,489,,,,489,,489,,,,,,,,489,,,,,489,489,489,489,489,489",",,,489,489,,,,491,491,491,489,491,,489,,491,491,,489,489,491,,491,491","491,491,491,491,491,,,,,,491,491,491,491,491,491,491,,,491,,,,,,,491",",,491,491,,491,491,491,491,491,,491,491,491,,491,491,,491,491,,,,,,",",,,,,,,,,,,,,,,491,,,491,,,491,,,491,,,,,,491,,,,,,,,491,,,,,491,491","491,491,491,491,,,,491,491,,,,506,506,506,491,506,,491,,506,506,,491","491,506,,506,506,506,506,506,506,506,,,,,,506,506,506,506,506,506,506",",,506,,,,,,,506,,,506,506,,506,506,506,506,506,,506,506,506,,506,506",",506,506,,,,,,,,,,,,,,,,,,,,,,506,,,506,,506,506,,,506,,,,506,,506,",",,,,,,506,,,,,506,506,506,506,506,506,,,,506,506,,,,,,,506,,,506,,,",",506,506,512,512,512,512,512,,,,512,512,,,,512,,512,512,512,512,512","512,512,,,,,,512,512,512,512,512,512,512,,,512,,,,,,512,512,,512,512","512,,512,512,512,512,512,,512,512,512,,512,512,,512,512,,,,,,,,,,,,",",,,,,,,,,512,,,512,,,512,,,512,,512,,,,512,,,,,,,,512,,,,,512,512,512","512,512,512,,,,512,512,,,,,,512,512,,,512,,,,,512,512,518,518,518,,518",",,,518,518,,,,518,,518,518,518,518,518,518,518,,,,,,518,518,518,518","518,518,518,,,518,,,,,,,518,,,518,518,,518,518,518,518,518,,518,518","518,,518,518,559,,559,559,559,,559,,,,,,,,,,,,,,,,,,518,,,518,,,518",",,518,,,,,,559,,,,,,,,559,559,559,559,,518,518,518,518,518,518,,,,518","518,,,,520,520,520,518,520,,518,,520,520,,518,518,520,,520,520,520,520","520,520,520,,,,,,520,520,520,520,520,520,520,,,520,,,,,,,520,,,520,520",",520,520,520,520,520,520,520,520,520,,520,520,,520,520,,,,,,,,,,,,,",",,,,,,,,520,,,520,,,520,,,520,,520,,,,520,,,,,,,,520,,,,,520,520,520","520,520,520,,,,520,520,,,,523,523,523,520,523,,520,,523,523,,520,520","523,,523,523,523,523,523,523,523,,,,,,523,523,523,523,523,523,523,,","523,,,,,,,523,,,523,523,,523,523,523,523,523,523,523,523,523,,523,523",",523,523,,,,,,,,,,,,,,,,,,,,,,523,,,523,,,523,,,523,,523,,,,523,,,,",",,,523,,,,,523,523,523,523,523,523,,,,523,523,,,,531,531,531,523,531",",523,,531,531,,523,523,531,,531,531,531,531,531,531,531,,,,,,531,531","531,531,531,531,531,,,531,,,,,,,531,,,531,531,,531,531,531,531,531,","531,531,531,,531,531,,531,531,,,,,,,,,,,,,,,,,,,,,,531,,,531,,,531,",",531,,,,,,531,,,,,,,,531,,,,,531,531,531,531,531,531,,,,531,531,,,,532","532,532,531,532,,531,,532,532,,531,531,532,,532,532,532,532,532,532","532,,,,,,532,532,532,532,532,532,532,,,532,,,,,,,532,,,532,532,,532","532,532,532,532,,532,532,532,,532,532,,532,532,,,,,,,,,,,,,,,,,,,,,","532,,,532,,,532,,,532,,,,,,532,,,,,,,,532,,,,,532,532,532,532,532,532",",,,532,532,,,,533,533,533,532,533,,532,,533,533,,532,532,533,,533,533","533,533,533,533,533,,,,,,533,533,533,533,533,533,533,,,533,,,,,,,533",",,533,533,,533,533,533,533,533,,533,533,533,,533,533,,533,533,,,,,,",",,,,,,,,,,,,,,,533,,,533,,,533,,,533,,,,,,533,,,,,,,,533,,,,,533,533","533,533,533,533,,,,533,533,,,,537,537,537,533,537,,533,,537,537,,533","533,537,,537,537,537,537,537,537,537,,,,,,537,537,537,537,537,537,537",",,537,,,,,,,537,,,537,537,,537,537,537,537,537,,537,537,537,,537,537",",537,537,,,,,,,,,,,,,,,,,,,,,,537,,,537,,,537,,,537,,,,,,537,,,,,,,","537,,,,,537,537,537,537,537,537,,,,537,537,,,,543,543,543,537,543,,537",",543,543,,537,537,543,,543,543,543,543,543,543,543,,,,,,543,543,543","543,543,543,543,,,543,,,,,,,543,,,543,543,,543,543,543,543,543,543,543","543,543,,543,543,,543,543,,,,,,,,,,,,,,,,,,,,,,543,,,543,,,543,,,543",",543,,,,543,,,,,,,,543,,,,,543,543,543,543,543,543,,,,543,543,,,,546","546,546,543,546,,543,,546,546,,543,543,546,,546,546,546,546,546,546","546,,,,,,546,546,546,546,546,546,546,,,546,,,,,,,546,,,546,546,,546","546,546,546,546,546,546,546,546,,546,546,,546,546,,,,,,,,,,,,,,,,,,",",,,546,,,546,,,546,,,546,,,,,,546,,,,,,,,546,,,,,546,546,546,546,546","546,,,,546,546,,,,,,,546,,,546,,,,,546,546,551,551,551,551,551,,,,551","551,,,,551,,551,551,551,551,551,551,551,,,,,,551,551,551,551,551,551","551,,,551,,,,,,551,551,,551,551,551,,551,551,551,551,551,,551,551,551",",551,551,,551,551,,,,,,,,,,,,,,,,,,,,,,551,,,551,,,551,,,551,,551,,",",551,,,,,,,,551,,,,,551,551,551,551,551,551,,,,551,551,,,,,,,551,,,551",",,,,551,551,552,552,552,552,552,,,,552,552,,,,552,,552,552,552,552,552","552,552,,,,,,552,552,552,552,552,552,552,,,552,,,,,,552,552,,552,552","552,,552,552,552,552,552,,552,552,552,,552,552,,552,552,,,,,,,,,,,,",",,,,,,,,,552,,,552,,,552,,,552,,552,,,,552,,,,,,,,552,,,,,552,552,552","552,552,552,,,,552,552,,,,558,558,558,552,558,,552,,558,558,,552,552","558,,558,558,558,558,558,558,558,,,,,,558,558,558,558,558,558,558,,","558,,,,,,,558,,,558,558,,558,558,558,558,558,,558,558,558,,558,558,856",",856,856,856,856,856,,,,,,,,,,856,,,,,,,,558,,,558,,,558,,,558,,,,,","856,,,,,,,,856,856,856,856,,558,558,558,558,558,558,,,,558,558,,,,,",",558,,,558,,,,,558,558,572,572,572,572,572,,,856,572,572,,,,572,,572","572,572,572,572,572,572,,,,,,572,572,572,572,572,572,572,,,572,,,,,","572,572,,572,572,572,,572,572,572,572,572,,572,572,572,,572,572,,572","572,,,,,,,,,,,,,,,,,,,,,,572,,,572,,,572,,,572,,572,,,,572,,,,,,,,572",",,,,572,572,572,572,572,572,,,,572,572,,,,,,,572,,,572,,,,,572,572,576","576,576,576,576,,,,576,576,,,,576,,576,576,576,576,576,576,576,,,,,","576,576,576,576,576,576,576,,,576,,,,,,576,576,,576,576,576,,576,576","576,576,576,,576,576,576,,576,576,,576,576,,,,,,,,,,,,,,,,,,,,,,576",",,576,,,576,,,576,,576,,,,576,,,,,,,,576,,,,,576,576,576,576,576,576",",,,576,576,,,,,,,576,,,576,,,,,576,576,581,581,581,581,581,,,,581,581",",,,581,,581,581,581,581,581,581,581,,,,,,581,581,581,581,581,581,581",",,581,,,,,,581,581,,581,581,581,,581,581,581,581,581,,581,581,581,,581","581,,581,581,,,,,,,,,,,,,,,,,,,,,,581,,,581,,,581,,,581,,581,,,,581",",,,,,,,581,,,,,581,581,581,581,581,581,,,,581,581,,,,583,583,583,581","583,,581,,583,583,,581,581,583,,583,583,583,583,583,583,583,,,,,,583","583,583,583,583,583,583,,,583,,,,,,,583,,,583,583,,583,583,583,583,583","583,583,583,583,,583,583,,583,583,,,,,,,,,,,,,,,,,,,,,,583,,,583,,,583",",,583,,583,,,,583,,,,,,,,583,,,,,583,583,583,583,583,583,,,,583,583",",,,586,586,586,583,586,,583,,586,586,,583,583,586,,586,586,586,586,586","586,586,,,,,,586,586,586,586,586,586,586,,,586,,,,,,,586,,,586,586,","586,586,586,586,586,586,586,586,586,,586,586,,586,586,,,,,,,,,,,,,,",",,,,,,,586,,,586,,,586,,,586,,586,,,,586,,,,,,,,586,,,,,586,586,586","586,586,586,,,,586,586,,,,592,592,592,586,592,,586,,592,592,,586,586","592,,592,592,592,592,592,592,592,,,,,,592,592,592,592,592,592,592,,","592,,,,,,,592,,,592,592,,592,592,592,592,592,592,592,592,592,,592,592",",592,592,,,,,,,,,,,,,,,,,,,,,,592,,,592,,,592,,,592,,592,,,,592,,,,",",,,592,,,,,592,592,592,592,592,592,,,,592,592,,,,596,596,596,592,596",",592,,596,596,,592,592,596,,596,596,596,596,596,596,596,,,,,,596,596","596,596,596,596,596,,,596,,,,,,,596,,,596,596,,596,596,596,596,596,","596,596,596,,596,596,,596,596,,,,,,,,,,,,,,,,,,,,,,596,,,596,,,596,",",596,,,,,,596,,,,,,,,596,,,,,596,596,596,596,596,596,,,,596,596,,,,598","598,598,596,598,,596,,598,598,,596,596,598,,598,598,598,598,598,598","598,,,,,,598,598,598,598,598,598,598,,,598,,,,,,,598,,,598,598,,598","598,598,598,598,,598,598,598,,598,598,,598,598,,,,,,,,,,,,,,,,,,,,,","598,,,598,,,598,,,598,,,,,,598,,,,,,,,598,,,,,598,598,598,598,598,598",",,,598,598,,,,625,625,625,598,625,,598,,625,625,,598,598,625,,625,625","625,625,625,625,625,,,,,,625,625,625,625,625,625,625,,,625,,,,,,,625",",,625,625,,625,625,625,625,625,,625,625,625,,625,625,,625,625,,,,,,",",,,,,,,,,,,,,,,625,,,625,,,625,,,625,,,,,,625,,,,,,,,625,,,,,625,625","625,625,625,625,,,,625,625,,,,627,627,627,625,627,,625,,627,627,,625","625,627,,627,627,627,627,627,627,627,,,,,,627,627,627,627,627,627,627",",,627,,,,,,,627,,,627,627,,627,627,627,627,627,,627,627,627,,627,627",",627,627,,,,,,,,,,,,,,,,,,,,,,627,,,627,,,627,,,627,,627,,,,627,,,,",",,,627,,,,,627,627,627,627,627,627,,,,627,627,,,,630,630,630,627,630",",627,,630,630,,627,627,630,,630,630,630,630,630,630,630,,,,,,630,630","630,630,630,630,630,,,630,,,,,,,630,,,630,630,,630,630,630,630,630,","630,630,630,,630,630,,630,630,,,,,,,,,,,,,,,,,,,,,,630,,,630,,,630,",",630,,,,,,630,,,,,,,,630,,,,,630,630,630,630,630,630,,,,630,630,,,,631","631,631,630,631,,630,,631,631,,630,630,631,,631,631,631,631,631,631","631,,,,,,631,631,631,631,631,631,631,,,631,,,,,,,631,,,631,631,,631","631,631,631,631,,631,631,631,,631,631,,631,631,,,,,,,,,,,,,,,,,,,,,","631,,,631,,,631,,,631,,,,,,631,,,,,,,,631,,,,,631,631,631,631,631,631",",,,631,631,,,,636,636,636,631,636,,631,,636,636,,631,631,636,,636,636","636,636,636,636,636,,,,,,636,636,636,636,636,636,636,,,636,,,,,,,636",",,636,636,,636,636,636,636,636,,636,636,636,,636,636,,636,636,,,,,,",",,,,,,,,,,,,,,,636,,,636,,,636,,,636,,,,,,636,,,,,,,,636,,,,,636,636","636,636,636,636,,,,636,636,,,,639,639,639,636,639,,636,,639,639,,636","636,639,,639,639,639,639,639,639,639,,,,,,639,639,639,639,639,639,639",",,639,,,,,,,639,,,639,639,,639,639,639,639,639,,639,639,639,,639,639",",639,639,,,,,,,,,,,,,,,,,,,,,,639,,,639,,,639,,,639,,,,,,639,,,,,,,","639,,,,,639,639,639,639,639,639,,,,639,639,,,,650,650,650,639,650,,639",",650,650,,639,639,650,,650,650,650,650,650,650,650,,,,,,650,650,650","650,650,650,650,,,650,,,,,,,650,,,650,650,,650,650,650,650,650,,650","650,650,,650,650,,650,650,,,,,,,,,,,,,,,,,,,,,,650,,,650,,,650,,,650",",,,,,650,,,,,,,,650,,,,,650,650,650,650,650,650,,,,650,650,,,,,,,650",",,650,,,,,650,650,654,654,654,654,654,,,,654,654,,,,654,,654,654,654","654,654,654,654,,,,,,654,654,654,654,654,654,654,,,654,,,,,,654,654",",654,654,654,,654,654,654,654,654,,654,654,654,,654,654,,654,654,,,",",,,,,,,,,,,,,,,,,,654,,,654,,,654,,,654,,654,,,,654,,,,,,,,654,,,,,654","654,654,654,654,654,,,,654,654,,,,658,658,658,654,658,,654,,658,658",",654,654,658,,658,658,658,658,658,658,658,,,,,,658,658,658,658,658,658","658,,,658,,,,,,,658,,,658,658,,658,658,658,658,658,,658,658,658,,658","658,,658,658,,,,,,,,,,,,,,,,,,,,,,658,,,658,,,658,,,658,,,,,,658,,,",",,,,658,,,,,658,658,658,658,658,658,,,,658,658,,,,,,,658,,,658,,,,,658","658,667,667,667,667,667,,,,667,667,,,,667,,667,667,667,667,667,667,667",",,,,,667,667,667,667,667,667,667,,,667,,,,,,667,667,,667,667,667,,667","667,667,667,667,,667,667,667,,667,667,,667,667,,,,,,,,,,,,,,,,,,,,,","667,,,667,,,667,,,667,,667,,,,667,,,,,,,,667,,,,,667,667,667,667,667","667,,,,667,667,,,,670,670,670,667,670,,667,,670,670,,667,667,670,,670","670,670,670,670,670,670,,,,,,670,670,670,670,670,670,670,,,670,,,,,",",670,,,670,670,,670,670,670,670,670,670,670,670,670,,670,670,,670,670",",,,,,,,,,,,,,,,,,,,,,670,,,670,,,670,,,670,,670,,670,,670,,,,,,,,670",",,,,670,670,670,670,670,670,,,,670,670,,,,671,671,671,670,671,,670,","671,671,,670,670,671,,671,671,671,671,671,671,671,,,,,,671,671,671,671","671,671,671,,,671,,,,,,,671,,,671,671,,671,671,671,671,671,671,671,671","671,,671,671,,671,671,,,,,,,,,,,,,,,,,,,,,,671,,,671,,,671,,,671,,,","671,,671,,,,,,,,671,,,,,671,671,671,671,671,671,,,,671,671,,,,,,,671",",,671,,,,,671,671,677,677,677,677,677,,,,677,677,,,,677,,677,677,677","677,677,677,677,,,,,,677,677,677,677,677,677,677,,,677,,,,,,677,677",",677,677,677,,677,677,677,677,677,,677,677,677,,677,677,,677,677,,,",",,,,,,,,,,,,,,,,,,677,,,677,,,677,,,677,,677,,,,677,,,,,,,,677,,,,,677","677,677,677,677,677,,,,677,677,,,,,,,677,,,677,,,,,677,677,678,678,678","678,678,,,,678,678,,,,678,,678,678,678,678,678,678,678,,,,,,678,678","678,678,678,678,678,,,678,,,,,,678,678,,678,678,678,,678,678,678,678","678,,678,678,678,,678,678,,678,678,,,,,,,,,,,,,,,,,,,,,,678,,,678,,","678,,,678,,678,,,,678,,,,,,,,678,,,,,678,678,678,678,678,678,,,,678","678,,,,682,682,682,678,682,,678,,682,682,,678,678,682,,682,682,682,682","682,682,682,,,,,,682,682,682,682,682,682,682,,,682,,,,,,,682,,,682,682",",682,682,682,682,682,,682,682,682,,682,682,,,,,,,,,,,,,,,,,,,,,,,,,682",",,682,,,682,,,682,,,,,,,,,,,,,,,,,,,682,682,682,682,682,682,,,,682,682",",,,694,694,694,682,694,,682,,694,694,,682,682,694,,694,694,694,694,694","694,694,,,,,,694,694,694,694,694,694,694,,,694,,,,,,,694,,,694,694,","694,694,694,694,694,,694,694,694,,694,694,,,,,,,,,,,,,,,,,,,,,,,,,694",",,694,,,694,,,694,,,,,,,,,,,,,,,,,,,694,694,694,694,694,694,,,,694,694",",,,700,700,700,694,700,,694,,700,700,,694,694,700,,700,700,700,700,700","700,700,,,,,,700,700,700,700,700,700,700,,,700,,,,,,,700,,,700,700,","700,700,700,700,700,,700,700,700,,700,700,,700,700,,,,,,,,,,,,,,,,,",",,,,700,,,700,,,700,,,700,,700,,,,700,,,,,,,,700,,,,,700,700,700,700","700,700,,,,700,700,,,,731,731,731,700,731,,700,,731,731,,700,700,731",",731,731,731,731,731,731,731,,,,,,731,731,731,731,731,731,731,,,731",",,,,,,731,,,731,731,,731,731,731,731,731,,731,731,731,,731,731,,731","731,,,,,,,,,,,,,,,,,,,,,,731,,,731,,,731,,,731,,731,,,,731,,,,,,,,731",",,,,731,731,731,731,731,731,,,,731,731,,,,738,738,738,731,738,,731,","738,738,,731,731,738,,738,738,738,738,738,738,738,,,,,,738,738,738,738","738,738,738,,,738,,,,,,,738,,,738,738,,738,738,738,738,738,,738,738","738,,738,738,,738,738,,,,,,,,,,,,,,,,,,,,,,738,,,738,,,738,,,738,,,",",,738,,,,,,,,738,,,,,738,738,738,738,738,738,,,,738,738,,,,,,,738,,","738,,,,,738,738,743,743,743,743,743,,,,743,743,,,,743,,743,743,743,743","743,743,743,,,,,,743,743,743,743,743,743,743,,,743,,,,,,743,743,,743","743,743,,743,743,743,743,743,,743,743,743,,743,743,,743,743,,,,,,,,",",,,,,,,,,,,,,743,,,743,,,743,,,743,,743,,,,743,,,,,,,,743,,,,,743,743","743,743,743,743,,,,743,743,,,,,,,743,,,743,,,,,743,743,747,747,747,747","747,,,,747,747,,,,747,,747,747,747,747,747,747,747,,,,,,747,747,747","747,747,747,747,,,747,,,,,,747,747,,747,747,747,,747,747,747,747,747",",747,747,747,,747,747,,747,747,,,,,,,,,,,,,,,,,,,,,,747,,,747,,,747",",,747,,747,,,,747,,,,,,,,747,,,,,747,747,747,747,747,747,,,,747,747",",,,,,,747,,,747,,,,,747,747,748,748,748,748,748,,,,748,748,,,,748,,748","748,748,748,748,748,748,,,,,,748,748,748,748,748,748,748,,,748,,,,,","748,748,,748,748,748,,748,748,748,748,748,,748,748,748,,748,748,,748","748,,,,,,,,,,,,,,,,,,,,,,748,,,748,,,748,,,748,,748,,,,748,,,,,,,,748",",,,,748,748,748,748,748,748,,,,748,748,,,,755,755,755,748,755,,748,","755,755,,748,748,755,,755,755,755,755,755,755,755,,,,,,755,755,755,755","755,755,755,,,755,,,,,,,755,,,755,755,,755,755,755,755,755,,755,755","755,,755,755,,755,755,,,,,,,,,,,,,,,,,,,,,,755,,,755,,,755,,,755,,,",",,755,,,,,,,,755,,,,,755,755,755,755,755,755,,,,755,755,,,,,,,755,,","755,,,,,755,755,769,769,769,769,769,,,,769,769,,,,769,,769,769,769,769","769,769,769,,,,,,769,769,769,769,769,769,769,,,769,,,,,,769,769,,769","769,769,,769,769,769,769,769,,769,769,769,,769,769,,769,769,,,,,,,,",",,,,,,,,,,,,,769,,,769,,,769,,,769,,769,,,,769,,,,,,,,769,,,,,769,769","769,769,769,769,,,,769,769,,,,775,775,775,769,775,,769,,775,775,,769","769,775,,775,775,775,775,775,775,775,,,,,,775,775,775,775,775,775,775",",,775,,,,,,,775,,,775,775,,775,775,775,775,775,,775,775,775,,775,775",",775,775,,,,,,,,,,,,,,,,,,,,,,775,,,775,,,775,,,775,,,,,,775,,,,,,,","775,,,,,775,775,775,775,775,775,,,,775,775,,,,776,776,776,775,776,,775",",776,776,,775,775,776,,776,776,776,776,776,776,776,,,,,,776,776,776","776,776,776,776,,,776,,,,,,,776,,,776,776,,776,776,776,776,776,,776","776,776,,776,776,,776,776,,,,,,,,,,,,,,,,,,,,,,776,,,776,,,776,,,776",",,,,,776,,,,,,,,776,,,,,776,776,776,776,776,776,,,,776,776,,,,777,777","777,776,777,,776,,777,777,,776,776,777,,777,777,777,777,777,777,777",",,,,,777,777,777,777,777,777,777,,,777,,,,,,,777,,,777,777,,777,777","777,777,777,,777,777,777,,777,777,,777,777,,,,,,,,,,,,,,,,,,,,,,777",",,777,,,777,,,777,,,,,,777,,,,,,,,777,,,,,777,777,777,777,777,777,,",",777,777,,,,788,788,788,777,788,,777,,788,788,,777,777,788,,788,788","788,788,788,788,788,,,,,,788,788,788,788,788,788,788,,,788,,,,,,,788",",,788,788,,788,788,788,788,788,,788,788,788,,788,788,,788,788,,,,,,",",,,,,,,,,,,,,,,788,,,788,,,788,,,788,,,,,,788,,,,,,,,788,,,,,788,788","788,788,788,788,,,,788,788,,,,789,789,789,788,789,,788,,789,789,,788","788,789,,789,789,789,789,789,789,789,,,,,,789,789,789,789,789,789,789",",,789,,,,,,,789,,,789,789,,789,789,789,789,789,,789,789,789,,789,789",",789,789,,,,,,,,,,,,,,,,,,,,,,789,,,789,,,789,,,789,,,,,,789,,,,,,,","789,,,,,789,789,789,789,789,789,,,,789,789,,,,790,790,790,789,790,,789",",790,790,,789,789,790,,790,790,790,790,790,790,790,,,,,,790,790,790","790,790,790,790,,,790,,,,,,,790,,,790,790,,790,790,790,790,790,,790","790,790,,790,790,,790,790,,,,,,,,,,,,,,,,,,,,,,790,,,790,,,790,,,790",",,,,,790,,,,,,,,790,,,,,790,790,790,790,790,790,,,,790,790,,,,802,802","802,790,802,,790,,802,802,,790,790,802,,802,802,802,802,802,802,802",",,,,,802,802,802,802,802,802,802,,,802,,,,,,,802,,,802,802,,802,802","802,802,802,,802,802,802,,802,802,,802,802,,,,,,,,,,,,,,,,,,,,,,802",",,802,,,802,,,802,,802,,,,802,,,,,,,,802,,,,,802,802,802,802,802,802",",,,802,802,,,,,,,802,,,802,,,,,802,802,813,813,813,813,813,,,,813,813",",,,813,,813,813,813,813,813,813,813,,,,,,813,813,813,813,813,813,813",",,813,,,,,,813,813,,813,813,813,,813,813,813,813,813,,813,813,813,,813","813,,813,813,,,,,,,,,,,,,,,,,,,,,,813,,,813,,,813,,,813,,813,,,,813",",,,,,,,813,,,,,813,813,813,813,813,813,,,,813,813,,,,832,832,832,813","832,,813,,832,832,,813,813,832,,832,832,832,832,832,832,832,,,,,,832","832,832,832,832,832,832,,,832,,,,,,,832,,,832,832,,832,832,832,832,832",",832,832,832,,832,832,,832,832,,,,,,,,,,,,,,,,,,,,,,832,,,832,,,832",",,832,,,,,,832,,,,,,,,832,,,,,832,832,832,832,832,832,,,,832,832,,,",",,,832,,,832,,,,,832,832,834,834,834,834,834,,,,834,834,,,,834,,834","834,834,834,834,834,834,,,,,,834,834,834,834,834,834,834,,,834,,,,,","834,834,,834,834,834,,834,834,834,834,834,,834,834,834,,834,834,,834","834,,,,,,,,,,,,,,,,,,,,,,834,,,834,,,834,,,834,,834,,,,834,,,,,,,,834",",,,,834,834,834,834,834,834,,,,834,834,,,,,,,834,,,834,,,,,834,834,835","835,835,835,835,,,,835,835,,,,835,,835,835,835,835,835,835,835,,,,,","835,835,835,835,835,835,835,,,835,,,,,,835,835,,835,835,835,,835,835","835,835,835,,835,835,835,,835,835,,835,835,,,,,,,,,,,,,,,,,,,,,,835",",,835,,,835,,,835,,835,,,,835,,,,,,,,835,,,,,835,835,835,835,835,835",",,,835,835,,,,862,862,862,835,862,,835,,862,862,,835,835,862,,862,862","862,862,862,862,862,,,,,,862,862,862,862,862,862,862,,,862,,,,,,,862",",,862,862,,862,862,862,862,862,,862,862,862,,862,862,,862,862,,,,,,",",,,,,,,,,,,,,,,862,,,862,,,862,,,862,,,,,,862,,,,,,,,862,,,,,862,862","862,862,862,862,,,,862,862,,,,876,876,876,862,876,,862,,876,876,,862","862,876,,876,876,876,876,876,876,876,,,,,,876,876,876,876,876,876,876",",,876,,,,,,,876,,,876,876,,876,876,876,876,876,,876,876,876,,876,876",",876,876,,,,,,,,,,,,,,,,,,,,,,876,,,876,,,876,,,876,,,,,,876,,,,,,,","876,,,,,876,876,876,876,876,876,,,,876,876,,,,877,877,877,876,877,,876",",877,877,,876,876,877,,877,877,877,877,877,877,877,,,,,,877,877,877","877,877,877,877,,,877,,,,,,,877,,,877,877,,877,877,877,877,877,,877","877,877,,877,877,,877,877,,,,,,,,,,,,,,,,,,,,,,877,,,877,,,877,,,877",",,,,,877,,,,,,,,877,,,,,877,877,877,877,877,877,,,,877,877,,,,881,881","881,877,881,,877,,881,881,,877,877,881,,881,881,881,881,881,881,881",",,,,,881,881,881,881,881,881,881,,,881,,,,,,,881,,,881,881,,881,881","881,881,881,881,881,881,881,,881,881,,881,881,,,,,,,,,,,,,,,,,,,,,,881",",,881,,,881,,,881,,,,881,,881,,,,,,,,881,,,,,881,881,881,881,881,881",",,,881,881,,,,,,,881,,,881,,,,,881,881,886,886,886,886,886,,,,886,886",",,,886,,886,886,886,886,886,886,886,,,,,,886,886,886,886,886,886,886",",,886,,,,,,886,886,,886,886,886,,886,886,886,886,886,,886,886,886,,886","886,,886,886,,,,,,,,,,,,,,,,,,,,,,886,,,886,,,886,,,886,,886,,,,886",",,,,,,,886,,,,,886,886,886,886,886,886,,,,886,886,,,,890,890,890,886","890,,886,,890,890,,886,886,890,,890,890,890,890,890,890,890,,,,,,890","890,890,890,890,890,890,,,890,,,,,,,890,,,890,890,,890,890,890,890,890",",890,890,890,,890,890,,,,,,,,,,,,,,,,,,,,,,,,,890,,,890,,,890,,,890",",,,,,,,,,,,,,,,,,,890,890,890,890,890,890,,,,890,890,,,,900,900,900","890,900,,890,,900,900,,890,890,900,,900,900,900,900,900,900,900,,,,",",900,900,900,900,900,900,900,,,900,,,,,,,900,,,900,900,,900,900,900","900,900,,900,900,900,,900,900,,900,900,,,,,,,,,,,,,,,,,,,,,,900,,,900",",,900,,,900,,900,,,,900,,,,,,,,900,,,,,900,900,900,900,900,900,,,,900","900,,,,,,,900,,,900,,,,,900,900,901,901,901,901,901,,,,901,901,,,,901",",901,901,901,901,901,901,901,,,,,,901,901,901,901,901,901,901,,,901",",,,,,901,901,,901,901,901,,901,901,901,901,901,,901,901,901,,901,901",",901,901,,,,,,,,,,,,,,,,,,,,,,901,,,901,,,901,,,901,,901,,,,901,,,,",",,,901,,,,,901,901,901,901,901,901,,,,901,901,,,,,,,901,,,901,,,,,901","901,904,904,904,904,904,,,,904,904,,,,904,,904,904,904,904,904,904,904",",,,,,904,904,904,904,904,904,904,,,904,,,,,,904,904,,904,904,904,,904","904,904,904,904,,904,904,904,,904,904,,904,904,,,,,,,,,,,,,,,,,,,,,","904,,,904,,,904,,,904,,904,,,,904,,,,,,,,904,,,,,904,904,904,904,904","904,,,,904,904,,,,921,921,921,904,921,,904,,921,921,,904,904,921,,921","921,921,921,921,921,921,,,,,,921,921,921,921,921,921,921,,,921,,,,,",",921,,,921,921,,921,921,921,921,921,,921,921,921,,921,921,,921,921,",",,,,,,,,,,,,,,,,,,,,921,,,921,,,921,,,921,,921,,921,,921,,,,,,,,921",",,,,921,921,921,921,921,921,,,,921,921,,,,,,,921,,,921,,,,,921,921,923","923,923,923,923,,,,923,923,,,,923,,923,923,923,923,923,923,923,,,,,","923,923,923,923,923,923,923,,,923,,,,,,923,923,,923,923,923,,923,923","923,923,923,,923,923,923,,923,923,,923,923,,,,,,,,,,,,,,,,,,,,,,923",",,923,,,923,,,923,,923,,,,923,,,,,,,,923,,,,,923,923,923,923,923,923",",,,923,923,,,,,,,923,,,923,,,,,923,923,930,930,930,930,930,,,,930,930",",,,930,,930,930,930,930,930,930,930,,,,,,930,930,930,930,930,930,930",",,930,,,,,,930,930,,930,930,930,,930,930,930,930,930,,930,930,930,,930","930,,930,930,,,,,,,,,,,,,,,,,,,,,,930,,,930,,,930,,,930,,930,,,,930",",,,,,,,930,,,,,930,930,930,930,930,930,,,,930,930,,,,,,,930,,,930,,",",,930,930,935,935,935,935,935,,,,935,935,,,,935,,935,935,935,935,935","935,935,,,,,,935,935,935,935,935,935,935,,,935,,,,,,935,935,,935,935","935,,935,935,935,935,935,,935,935,935,,935,935,,935,935,,,,,,,,,,,,",",,,,,,,,,935,,,935,,,935,,,935,,935,,,,935,,,,,,,,935,,,,,935,935,935","935,935,935,,,,935,935,,,,,,,935,,,935,,,,,935,935,943,943,943,943,943",",,,943,943,,,,943,,943,943,943,943,943,943,943,,,,,,943,943,943,943","943,943,943,,,943,,,,,,943,943,,943,943,943,,943,943,943,943,943,,943","943,943,,943,943,,943,943,,,,,,,,,,,,,,,,,,,,,,943,,,943,,,943,,,943",",943,,,,943,,,,,,,,943,,,,,943,943,943,943,943,943,,,,943,943,,,,945","945,945,943,945,,943,,945,945,,943,943,945,,945,945,945,945,945,945","945,,,,,,945,945,945,945,945,945,945,,,945,,,,,,,945,,,945,945,,945","945,945,945,945,945,945,945,945,,945,945,,945,945,,,,,,,,,,,,,,,,,,",",,,945,,,945,,,945,,,945,,945,,,,945,,,,,,,,945,,,,436,945,945,945,945","945,945,436,436,436,945,945,,436,436,,436,,945,,,945,,,,436,945,945",",,,,,,,,436,436,,436,436,436,436,436,,,,,,,,,,,,,,,,,,,,,,,,436,436","436,436,436,436,436,436,436,436,436,436,436,436,436,438,,436,436,436",",436,438,438,438,436,,,438,438,,438,436,,436,,436,436,436,436,436,436","436,,436,436,436,,,,,438,438,,438,438,438,438,438,436,436,,436,,436",",,436,,436,,436,,,,,,,,,,,438,438,438,438,438,438,438,438,438,438,438","438,438,438,438,,,438,438,438,,438,,,,438,,,,,,,438,,438,,438,438,438","438,438,438,438,,438,,438,,,,,,,,,,,,,438,438,,438,,438,644,,438,,438",",438,644,644,644,,,644,644,644,,644,,,,,,,,,644,644,644,,,,,,,,,644","644,,644,644,644,644,644,,,,,,,,,,,,,,,,,,,,,,,,644,644,644,644,644","644,644,644,644,644,644,644,644,644,644,,,644,644,644,,644,644,,,644",",,644,,644,,644,,644,,644,644,644,644,644,644,644,,644,644,644,,,,,",",,,,,,,644,644,644,644,,644,645,,644,,644,,644,645,645,645,,,645,645","645,,645,,,,,,,,,,645,645,,,,,,,,,645,645,,645,645,645,645,645,,,,,",",,,,,,,,,,,,,,,,,,645,645,645,645,645,645,645,645,645,645,645,645,645","645,645,,,645,645,645,,645,645,,,645,,,645,,645,,645,,645,,645,645,645","645,645,645,645,,645,,645,,,,,,,,,,,,,645,645,645,645,,645,28,,645,","645,,645,28,28,28,,,28,28,28,,28,,,,,,,,,,28,28,,,,,,,,,28,28,,28,28","28,28,28,,,,,,,,,,,,,,,,,,,,,,,,28,28,28,28,28,28,28,28,28,28,28,28","28,28,28,,,28,28,28,,,28,,28,28,,,28,,28,,28,,28,,28,28,28,28,28,28","28,,28,,28,,,,,,,,,,,,,28,28,28,28,50,28,,,28,,28,50,50,50,,,50,50,50",",50,,,,,,,,,,50,50,50,,,,,,,,50,50,,50,50,50,50,50,,,,,,,,,,,,,,,,,",",,,,,,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,,,50,50,50,,,50,",",50,,,50,,50,,50,,50,,50,50,50,50,50,50,50,,50,,50,,,,,,,,,,,,,50,50","50,50,494,50,,50,50,,50,494,494,494,,,494,494,494,,494,,,,,,,,,,494",",,,,,,,,,494,494,,494,494,494,494,494,,,,,,,,,,,,,,495,,,,,,,495,495","495,,,495,495,495,,495,,,,,494,494,,,,495,,,494,,,,,494,494,495,495",",495,495,495,495,495,,,,,918,,918,918,918,918,918,,494,,,,,,,,918,,",",496,494,,494,,,494,496,496,496,495,495,496,496,496,,496,,495,918,918",",,495,495,,496,918,918,918,918,,,,,,496,496,,496,496,496,496,496,,495",",,,,,202,202,,,202,,,495,,495,,,495,202,202,918,202,202,202,202,202","202,202,,,202,202,496,496,,,202,202,202,202,496,,,,,496,496,,,,,,202","202,,202,202,202,202,202,202,202,202,202,202,202,,496,202,,,,,,,,,,",",496,,496,,,496,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,,,,7","7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,,7,7,7,,7,,,,,,,,,7,7,,7,7,7","7,7,7,7,,,7,7,,,,,7,7,7,7,,,,,,,,,,,,,7,7,,7,7,7,7,7,7,7,7,7,7,7,,,7","7,,,,,,,,,,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,,,,8,8","8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,,8,8,,,8,,,,,,,,,8,8,,8,8,8,8","8,8,8,,,8,8,,,,,8,8,8,8,,,,,,,,,,,,,8,8,,8,8,8,8,8,8,8,8,8,8,8,,,8,8",",,,,,,,,,8,411,411,411,411,411,411,411,411,411,411,411,411,411,411,411","411,411,411,411,411,411,411,411,411,,,,411,411,411,411,411,411,411,411","411,411,411,411,411,411,411,411,411,411,411,411,411,,411,411,,,411,",",,,,,,,411,411,,411,411,411,411,411,411,411,,,411,411,,,,,411,411,411","411,,,,,,,,,,,,,411,411,,411,411,411,411,411,411,411,411,411,411,411",",,411,411,,,,,,,,,,411,415,415,415,415,415,415,415,415,415,415,415,415","415,415,415,415,415,415,415,415,415,415,415,415,,,,415,415,415,415,415","415,415,415,415,415,415,415,415,415,415,415,415,415,415,415,415,,415","415,,,415,,,,,,,,,415,415,,415,415,415,415,415,415,415,,,415,415,,,",",415,415,415,415,,,,,,,,,,,,,415,415,,415,415,415,415,415,415,415,415","415,415,415,,,415,415,,,,,,,,,,415,65,65,65,65,65,65,65,65,65,65,65","65,65,65,65,65,65,65,65,65,65,65,65,65,,,,65,65,65,65,65,65,65,65,65","65,65,65,65,65,65,65,65,65,65,65,65,,65,65,65,65,65,,65,,,,,,,65,65",",65,65,65,65,65,65,65,,,65,65,,,,,65,65,65,65,,,,,,65,,,,,,,65,65,,65","65,65,65,65,65,65,65,65,65,65,,,65,79,79,79,79,79,79,79,79,79,79,79","79,79,79,79,79,79,79,79,79,79,79,79,79,,,,79,79,79,79,79,79,79,79,79","79,79,79,79,79,79,79,79,79,79,79,79,,79,79,79,79,79,,79,,,,,,,79,79",",79,79,79,79,79,79,79,,,79,79,,,,,79,79,79,79,,,,,,,,,,,,,79,79,,79","79,79,79,79,79,79,79,79,79,79,,,79,192,192,192,192,192,192,192,192,192","192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,,,,192,192","192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192","192,192,,192,192,192,192,192,,192,,,,,,,192,192,,192,192,192,192,192","192,192,,,192,192,,,,,192,192,192,192,,,,,,,,,,,,,192,192,,192,192,192","192,192,192,192,192,192,192,192,,,192,766,766,766,766,766,766,766,766","766,766,766,766,766,766,766,766,766,766,766,766,766,766,766,766,,,,766","766,766,766,766,766,766,766,766,766,766,766,766,766,766,766,766,766","766,766,766,,766,766,,,766,,,,,,,,,766,766,,766,766,766,766,766,766","766,,,766,766,,,,,766,766,766,766,,,,,,,,,,,,,766,766,,766,766,766,766","766,766,766,766,766,766,766,201,201,766,,201,,,,,,,,,201,201,,201,201","201,201,201,201,201,,,201,201,,,,,201,201,201,201,,,,,,201,,,,,,,201","201,,201,201,201,201,201,201,201,201,201,201,201,203,203,201,,203,,",",,,,,,203,203,,203,203,203,203,203,203,203,,,203,203,,,,,203,203,203","203,,,,,,,,,,,,,203,203,,203,203,203,203,203,203,203,203,203,203,203","264,264,203,,264,,,,,,,,,264,264,,264,264,264,264,264,264,264,,,264","264,,,,,264,264,264,264,,,,,,,,,,,,,264,264,,264,264,264,264,264,264","264,264,264,264,264,265,265,264,,265,,,,,,,,,265,265,,265,265,265,265","265,265,265,,,265,265,,,,,265,265,265,265,,,,,,,,,,,,,265,265,,265,265","265,265,265,265,265,265,265,265,265,266,266,265,,266,,,,,,,,,266,266",",266,266,266,266,266,266,266,,,266,266,,,,,266,266,266,266,,,,,,,,,",",,,266,266,,266,266,266,266,266,266,266,266,266,266,266,449,449,266",",449,,,,,,,,,449,449,,449,449,449,449,449,449,449,,,449,449,,,,,449","449,449,449,,,,,,449,,,,,,,449,449,,449,449,449,449,449,449,449,449","449,449,449,450,450,449,,450,,,,,,,,,450,450,,450,450,450,450,450,450","450,,,450,450,,,,,450,450,450,450,,,,,,,,,,,,,450,450,,450,450,450,450","450,450,450,450,450,450,450,521,521,450,,521,,,,,,,,,521,521,,521,521","521,521,521,521,521,,,521,521,,,,,521,521,521,521,,,,,,521,,,,,,,521","521,,521,521,521,521,521,521,521,521,521,521,521,522,522,521,,522,,",",,,,,,522,522,,522,522,522,522,522,522,522,,,522,522,,,,,522,522,522","522,,,,,,,,,,,,,522,522,,522,522,522,522,522,522,522,522,522,522,522","524,524,522,,524,,,,,,,,,524,524,,524,524,524,524,524,524,524,,,524","524,,,,,524,524,524,524,,,,,,,,,,,,,524,524,,524,524,524,524,524,524","524,524,524,524,524,534,534,524,,534,,,,,,,,,534,534,,534,534,534,534","534,534,534,,,534,534,,,,,534,534,534,534,,,,,,534,,,,,,,534,534,,534","534,534,534,534,534,534,534,534,534,534,535,535,534,,535,,,,,,,,,535","535,,535,535,535,535,535,535,535,,,535,535,,,,,535,535,535,535,,,,,",",,,,,,,535,535,,535,535,535,535,535,535,535,535,535,535,535,584,584","535,,584,,,,,,,,,584,584,,584,584,584,584,584,584,584,,,584,584,,,,","584,584,584,584,,,,,,584,,,,,,,584,584,,584,584,584,584,584,584,584","584,584,584,584,585,585,584,,585,,,,,,,,,585,585,,585,585,585,585,585","585,585,,,585,585,,,,,585,585,585,585,,,,,,,,,,,,,585,585,,585,585,585","585,585,585,585,585,585,585,585,591,591,585,,591,,,,,,,,,591,591,,591","591,591,591,591,591,591,,,591,591,,,,,591,591,591,591,,,,,,,,,,,,,591","591,,591,591,591,591,591,591,591,591,591,591,591,593,593,591,,593,,",",,,,,,593,593,,593,593,593,593,593,593,593,,,593,593,,,,,593,593,593","593,,,,,,593,,,,,,,593,593,,593,593,593,593,593,593,593,593,593,593","593,822,822,593,,822,,,,,,,,,822,822,,822,822,822,822,822,822,822,,","822,822,,,,,822,822,822,822,,,,,,,,,,,,,822,822,,822,822,822,822,822","822,822,822,822,822,822,946,946,822,,946,,,,,,,,,946,946,,946,946,946","946,946,946,946,,,946,946,,,,,946,946,946,946,,,,,,946,,,,,,,946,946",",946,946,946,946,946,946,946,946,946,946,946,947,947,946,,947,,,,,,",",,947,947,,947,947,947,947,947,947,947,,,947,947,,,,,947,947,947,947",",,,,,,,,,,,,947,947,,947,947,947,947,947,947,947,947,947,947,947,,,947"]; | |
racc_action_check=arr=Opal.get("Array").$new(25031,nil);idx=0;($a=($c=clist).$each,$a.$$p=(TMP_3=function(str){var self=TMP_3.$$s||this,$a,$b,TMP_4;if(str==null)str=nil;return($a=($b=str.$split(",",-1)).$each,$a.$$p=(TMP_4=function(i){var self=TMP_4.$$s||this,$a;if(i==null)i=nil;if(($a=i["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{arr["$[]="](idx,i.$to_i())}return idx=$rb_plus(idx,1)},TMP_4.$$s=self,TMP_4),$a).call($b)},TMP_3.$$s=self,TMP_3),$a).call($c);racc_action_pointer=[-2,34,nil,234,nil,618,-19,22922,23046,-5,-1,15,117,414,291,243,nil,125,252,900,186,nil,379,506,633,381,13,760,22407,nil,900,1027,1154,nil,108,541,237,261,1294,1421,1548,176,467,nil,nil,nil,nil,nil,nil,nil,22537,nil,1675,1802,1929,29,9932,2056,2183,nil,nil,2310,2450,2577,nil,23418,nil,nil,nil,nil,nil,-102,nil,nil,nil,nil,nil,178,220,23531,nil,nil,nil,429,2704,nil,nil,2831,nil,nil,nil,nil,nil,nil,nil,nil,nil,359,nil,2971,nil,nil,nil,3111,3238,3365,3492,3632,3772,nil,663,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,23644,234,nil,3912,4039,4166,4293,4420,4547,23818,22792,23879,4674,4801,4928,nil,541,-49,319,61,240,328,5068,5195,nil,nil,5322,363,5449,5576,5703,5830,5957,6084,6211,6338,6465,6592,6719,6846,6973,7100,7227,7354,7481,7608,7735,7862,7989,8116,8243,8370,8497,8624,nil,nil,nil,1294,nil,329,339,nil,8751,389,8878,nil,nil,nil,nil,9005,nil,nil,23940,24001,24062,383,9132,9259,nil,nil,nil,nil,nil,nil,nil,9386,249,745,390,9526,409,438,405,9653,9793,73,594,497,196,465,440,207,nil,478,471,nil,9920,nil,586,505,531,633,nil,533,nil,10047,nil,10187,35,nil,502,-103,135,537,521,262,556,nil,nil,-22,10580,nil,nil,nil,520,545,nil,564,567,nil,nil,nil,nil,nil,nil,nil,3097,nil,nil,nil,648,nil,nil,674,806,-7,36,10314,10441,324,63,596,-17,668,690,37,731,nil,nil,506,704,nil,721,nil,65,nil,nil,10568,-12,122,360,384,385,436,509,590,nil,795,nil,10695,nil,173,nil,326,nil,-23,649,362,nil,653,-50,nil,365,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,683,23170,nil,nil,nil,23294,688,nil,nil,760,nil,10822,681,nil,691,nil,nil,1421,728,731,668,761,10949,nil,nil,nil,21929,757,22011,nil,11076,11203,11330,nil,nil,nil,1548,nil,nil,24123,24184,11457,11584,180,11711,11838,11965,115,nil,3238,3365,232,879,785,787,821,824,2457,2584,5068,3492,3632,3772,3912,4039,4166,4293,4420,4547,4674,1133,1232,4801,4928,633,-34,nil,12092,nil,12219,nil,12346,nil,nil,22667,22724,22792,-17,nil,771,nil,nil,785,787,nil,nil,12473,59,203,832,nil,nil,12613,833,797,nil,nil,799,12753,845,12880,24245,24306,13007,24367,223,848,nil,nil,821,nil,13134,13261,13388,24428,24489,1675,13515,949,951,871,nil,nil,13642,nil,nil,13769,nil,nil,nil,nil,13909,14049,874,nil,1e3,nil,nil,14176,12765,nil,772,nil,nil,894,nil,3126,nil,859,1198,nil,nil,14316,977,nil,nil,14456,212,227,975,983,14596,nil,14723,24550,24611,14850,40,nil,760,nil,24672,14977,24733,nil,nil,15104,387,15231,nil,1166,nil,nil,nil,45,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,-35,nil,nil,nil,864,nil,nil,nil,nil,nil,15358,866,15485,798,203,15612,15739,900,nil,nil,nil,15866,903,nil,15993,915,nil,268,307,22143,22275,927,928,506,nil,16120,nil,1040,nil,16260,897,nil,939,16387,nil,nil,nil,nil,nil,nil,nil,nil,16527,nil,942,16654,16781,2310,907,nil,nil,947,16921,17061,nil,1154,-27,17188,914,nil,957,228,235,962,313,327,963,960,972,17315,1802,997,1001,240,1056,17442,nil,nil,376,960,1068,nil,nil,945,nil,958,935,1035,963,967,nil,nil,1010,3135,nil,869,nil,1096,nil,nil,nil,nil,nil,1102,nil,1103,17569,1020,46,52,59,102,1021,17696,1027,nil,1028,1026,17836,416,nil,-25,17976,18116,9665,463,nil,nil,1075,nil,18243,nil,998,999,nil,1e3,1002,1004,nil,996,nil,23757,1043,1050,18383,nil,nil,nil,1929,1007,18510,18637,18764,nil,2056,nil,2183,nil,nil,2446,nil,2573,nil,18891,19018,19145,315,319,2704,nil,1041,1144,nil,nil,1041,nil,1026,19272,nil,1053,1161,1072,323,nil,nil,nil,1196,nil,19412,1081,1125,nil,nil,nil,nil,nil,nil,24794,nil,1127,nil,nil,nil,nil,1407,1215,nil,19539,1220,19679,19819,nil,nil,66,56,988,295,nil,1221,nil,nil,1222,1225,1109,nil,nil,nil,-32,nil,nil,807,14188,nil,842,nil,406,nil,19946,nil,nil,nil,nil,nil,nil,nil,1127,1113,nil,2831,nil,2971,20073,20200,nil,nil,nil,20327,1114,nil,nil,nil,20467,nil,nil,72,20594,nil,1154,1125,nil,nil,78,nil,1249,1250,20721,20861,nil,nil,21001,nil,nil,1168,nil,1132,nil,nil,1133,1134,1139,1137,nil,nil,22721,nil,nil,21128,nil,21268,91,1112,1221,97,nil,nil,21408,nil,nil,nil,460,21548,1268,nil,nil,1081,nil,nil,nil,21688,1273,21815,24855,24916,98,899,nil,nil,nil,1272,nil,1153,1275,nil,1190,108,120,198,202,nil,nil,nil,nil,218];racc_action_default=[-3,-555,-1,-543,-4,-6,-555,-555,-555,-555,-555,-555,-555,-555,-277,-37,-38,-555,-555,-43,-45,-46,-289,-327,-328,-50,-255,-382,-255,-65,-10,-69,-76,-78,-555,-457,-555,-555,-555,-555,-555,-545,-232,-270,-271,-272,-273,-274,-275,-276,-533,-279,-555,-554,-525,-297,-554,-555,-555,-302,-305,-543,-555,-555,-319,-555,-329,-330,-400,-401,-402,-403,-404,-554,-407,-554,-554,-554,-554,-554,-434,-440,-441,-555,-446,-447,-448,-449,-450,-451,-452,-453,-454,-455,-456,-459,-460,-555,-2,-544,-550,-551,-552,-555,-555,-555,-555,-555,-3,-13,-555,-105,-106,-107,-108,-109,-110,-111,-114,-115,-116,-117,-118,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-134,-135,-136,-137,-138,-139,-140,-141,-142,-143,-144,-145,-146,-147,-148,-149,-150,-151,-152,-153,-154,-155,-156,-157,-158,-159,-160,-161,-162,-163,-164,-165,-166,-167,-168,-169,-170,-171,-172,-173,-174,-175,-176,-177,-178,-179,-180,-181,-182,-183,-184,-185,-186,-187,-555,-18,-112,-10,-555,-555,-555,-554,-554,-555,-555,-555,-555,-555,-555,-41,-555,-457,-555,-277,-555,-555,-10,-555,-42,-224,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-555,-369,-371,-47,-233,-248,-262,-262,-252,-555,-263,-555,-289,-327,-328,-527,-555,-48,-49,-555,-555,-555,-55,-554,-555,-296,-375,-383,-385,-63,-381,-64,-555,-543,-11,-65,-10,-555,-555,-70,-73,-10,-457,-555,-555,-277,-292,-545,-555,-331,-382,-555,-75,-555,-80,-284,-442,-443,-555,-209,-210,-225,-555,-546,-10,-545,-234,-545,-547,-547,-555,-555,-547,-555,-298,-299,-555,-555,-342,-343,-350,-554,-491,-357,-554,-554,-368,-490,-492,-493,-494,-495,-496,-555,-509,-514,-515,-517,-518,-519,-555,-44,-555,-555,-555,-555,-543,-555,-544,-457,-555,-555,-277,-555,-498,-499,-101,-555,-103,-555,-277,-555,-316,-457,-555,-105,-106,-143,-144,-160,-165,-172,-175,-322,-555,-523,-555,-405,-555,-420,-555,-422,-555,-555,-555,-412,-555,-555,-418,-555,-433,-435,-436,-437,-438,-444,-445,968,-5,-553,-19,-20,-21,-22,-23,-555,-555,-15,-16,-17,-555,-555,-25,-34,-188,-263,-555,-555,-26,-35,-36,-27,-190,-555,-555,-534,-535,-554,-378,-536,-537,-534,-255,-535,-380,-539,-540,-554,-534,-535,-33,-198,-39,-40,-555,-555,-554,-554,-284,-555,-555,-555,-555,-295,-199,-200,-201,-202,-203,-204,-205,-206,-211,-212,-213,-214,-215,-216,-217,-218,-219,-220,-221,-222,-223,-226,-227,-228,-229,-555,-554,-249,-555,-250,-555,-260,-555,-264,-530,-255,-255,-255,-554,-56,-545,-243,-244,-262,-262,-256,-257,-555,-554,-554,-555,-291,-9,-544,-555,-66,-282,-81,-71,-555,-555,-554,-555,-555,-554,-555,-284,-555,-442,-443,-77,-82,-555,-555,-555,-555,-555,-230,-555,-392,-555,-555,-235,-236,-549,-548,-238,-549,-287,-288,-526,-339,-10,-10,-555,-341,-555,-359,-366,-555,-363,-364,-555,-367,-491,-555,-500,-555,-502,-504,-508,-516,-520,-10,-332,-333,-334,-10,-555,-555,-555,-555,-10,-387,-554,-555,-555,-554,-284,-311,-101,-102,-555,-554,-555,-314,-461,-555,-555,-555,-320,-489,-324,-541,-542,-545,-406,-421,-424,-425,-427,-408,-423,-409,-410,-411,-555,-414,-416,-417,-555,-439,-7,-14,-113,-24,-555,-269,-555,-285,-286,-555,-555,-59,-241,-242,-376,-555,-61,-379,-555,-57,-377,-534,-535,-534,-535,-555,-555,-188,-294,-555,-353,-555,-355,-10,-262,-261,-265,-555,-528,-529,-51,-372,-52,-373,-53,-374,-10,-239,-555,-245,-247,-43,-555,-254,-258,-555,-10,-10,-290,-12,-66,-555,-74,-79,-555,-534,-535,-554,-538,-283,-555,-555,-554,-555,-197,-207,-208,-555,-554,-554,-280,-281,-547,-555,-555,-340,-351,-555,-358,-554,-352,-555,-554,-554,-510,-497,-555,-555,-507,-554,-335,-554,-303,-336,-337,-338,-306,-555,-309,-555,-555,-555,-534,-535,-538,-283,-555,-555,-101,-104,-538,-555,-10,-555,-463,-555,-10,-10,-489,-555,-466,-467,-469,-470,-472,-473,-522,-522,-478,-480,-480,-480,-488,-491,-512,-555,-555,-555,-10,-413,-415,-419,-189,-267,-555,-555,-555,-30,-193,-31,-194,-60,-32,-195,-62,-196,-58,-555,-555,-555,-286,-285,-231,-354,-555,-555,-251,-266,-555,-240,-262,-555,-259,-555,-555,-72,-285,-286,-83,-293,-554,-348,-10,-393,-554,-394,-395,-237,-344,-345,-365,-555,-284,-555,-361,-362,-501,-503,-506,-555,-346,-555,-555,-10,-10,-308,-310,-555,-285,-93,-555,-285,-555,-462,-317,-555,-555,-545,-465,-468,-471,-555,-476,-477,-555,-555,-484,-555,-486,-555,-487,-555,-325,-524,-426,-429,-430,-431,-432,-555,-268,-28,-191,-29,-192,-555,-555,-356,-370,-54,-246,-262,-384,-386,-8,-10,-399,-349,-555,-555,-397,-283,-554,-505,-300,-555,-301,-555,-555,-555,-10,-312,-315,-10,-321,-323,-555,-474,-522,-521,-479,-480,-480,-480,-555,-513,-511,-489,-428,-253,-555,-398,-10,-457,-555,-555,-277,-396,-360,-10,-304,-307,-265,-554,-10,-555,-464,-475,-555,-482,-483,-485,-10,-392,-554,-555,-555,-284,-554,-388,-389,-390,-555,-318,-480,-555,-391,-555,-534,-535,-538,-283,-347,-313,-481,-326,-285];clist=["13,315,307,699,323,378,498,114,114,539,250,250,250,432,437,442,5,208","208,396,284,488,208,208,208,659,331,102,294,294,13,288,288,572,576,529","10,98,12,557,748,312,560,562,251,251,251,366,565,109,194,580,208,208","117,117,216,208,208,294,294,208,355,364,99,114,10,715,12,418,425,760","707,267,274,276,494,495,496,114,542,545,659,2,549,102,280,297,252,252","252,606,763,723,727,352,759,616,359,13,1,916,590,208,208,208,208,13","13,347,348,403,282,351,641,5,564,710,385,387,317,714,394,409,5,885,830","248,262,263,193,360,396,411,499,10,668,12,676,504,207,654,811,10,10","12,12,428,429,853,854,380,316,667,319,405,406,407,408,320,358,594,762","677,678,833,662,664,666,379,601,309,349,834,350,310,835,738,935,743","346,346,916,598,346,904,369,312,312,747,600,410,114,766,918,13,208,208","208,208,208,321,441,550,208,208,208,659,713,247,485,656,507,656,13,208","508,950,422,422,760,731,815,889,382,383,346,346,346,346,674,10,389,12","417,423,426,615,392,865,768,763,445,769,848,759,909,908,912,828,10,","12,526,,683,250,250,,,,432,437,,,250,,,208,208,553,540,488,541,,,565","208,728,719,,13,294,,,288,13,530,,,502,251,331,,,294,,,288,251,,938","102,,,,,,,13,,762,511,,,,,10,,12,,,10,771,12,,271,275,447,448,14,740",",688,503,252,693,280,457,512,517,707,280,252,717,10,688,12,910,208,208","910,759,599,759,963,759,902,943,,14,290,290,513,715,641,294,,519,364",",782,,501,505,102,785,951,,787,,208,509,,,579,893,,,760,595,,357,365","656,656,688,,,646,647,577,578,,,688,,,,957,763,114,,,759,114,,659,913","806,914,,,821,797,,825,826,565,14,,,,,,759,,14,14,312,312,,,843,,,,846","847,,441,208,208,622,,,,623,117,,669,,117,,,,,,685,,818,692,346,346",",,,,,632,762,,,,637,,,,,640,,,,,,,,,,,,955,,,604,,208,530,312,,,312","13,,,294,,,288,,208,,441,208,901,14,,,680,,,732,,,737,441,,208,,894","742,661,663,665,14,,,,10,,12,13,13,655,,294,,,711,,,,,,,767,,,,,797","312,13,816,312,923,13,857,859,861,312,13,930,208,,441,208,10,10,12,12","441,208,271,35,275,208,,208,,795,724,724,,936,656,929,,10,703,12,14","10,,12,290,14,10,,12,,745,331,,35,287,287,,290,310,208,208,,952,,,208",",,14,,,,956,,656,,,744,,,920,,,13,,354,368,,368,698,,283,,,,,13,778","780,,530,,,783,,,13,13,294,,,288,809,,,,,,,10,294,12,35,288,,,,,365",",35,35,10,,12,863,,,,,,,10,10,12,12,,,346,,746,422,,,,,,,940,941,942","634,,,,801,638,208,,,,634,13,,,,13,13,,,,,838,,,,,688,,,,,,,,114,,844","13,845,,965,,849,,208,208,,10,,12,,10,10,12,12,,,35,841,,,,634,634,634",",,,,,,,,10,,12,35,907,,,,13,872,874,,,,,,,441,,882,,,416,,,,,208,318","13,13,,,,,,,14,,,,283,,290,10,,12,,,,,,,,,,346,,,,724,,,,,10,10,12,12",",35,,,,287,35,14,14,,896,,13,294,365,,925,,287,958,,,,,,,,13,14,35,13",",14,,,,,14,,283,,,,,283,,,,10,13,12,,928,,,,13,,,312,,13,,10,,12,10",",12,13,,208,,441,,,,,,,,346,,,,10,,12,,368,,,10,,12,,,10,,12,,420,424",",,10,,12,,,14,,,,634,,,638,,634,,,,14,,,,,,,,,,14,14,,,,290,,,,,,,,",",,,290,,,,,,,,,490,,492,,,,,493,,,,,,,,,,,,,,,,,,,,,,324,,,,,,,,,,,14",",,,14,14,384,,386,386,390,393,386,,,,,,,,,,,,,869,14,,,,,,,35,,,,,,287",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,14,,35,35,,,,,,368,,,,,,,,,,,,14,14,35","217,,,35,249,249,249,,35,,,,,,,,704,705,,,304,305,306,,,,,,,,,,,626",",249,249,720,,,,722,,,,,730,,,14,,,,927,,,,,,,,,,,14,,,14,,,,,,,,,,",",,,35,,,,,14,,,,,,,14,35,,,,14,657,,318,,660,35,35,14,500,,287,,,,,",",,,673,796,,287,,,,,,,,,,,799,,,,,,,,,,804,805,,,,,,,,,,,,657,,,318",",,,,,,556,,,556,556,35,,,,35,35,,,419,249,427,249,249,,,,446,,,,,,,",",,35,,,,217,,459,460,461,462,463,464,465,466,467,468,469,470,471,472","473,474,475,476,477,478,479,480,481,482,483,484,,,,,,,870,,249,,249","774,35,,,249,,,,,,,249,249,,,,,,,,249,,35,35,,,,,,,,798,633,,,,,,,888",",,633,657,318,,,,,,536,,,,,,,,,,898,899,,,,,,,,,,,,814,35,,,,924,,,",",,,651,,,,35,,,35,,633,633,633,651,,,,,,,420,,,651,651,,,35,922,,,,",",35,,,,,35,,,,934,851,,,35,,,,,,,,,,,,,,,,,871,944,,,,,,,949,,,,,953",",,249,,,,,,,,,,,420,,,,,,,,,,,,,,,,,,,249,249,,446,648,427,,,,,,,,,",",,,,,,,,,,,,,,,,,,,,,249,,249,,249,917,,,,,,,,,,,,,,672,,,,,318,,,,",",,,,249,,,249,,,,,,,933,695,696,697,,,,,,,,,,249,,633,249,,,,633,933",",,,,812,817,,,,,,,,,,556,,,556,556,,,,,,812,,812,,,,249,,,249,,,,,,249",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,773,,249,,,779,781,,,293,293,784,,,786",",293,293,293,,,,,,,793,,,,,,,293,249,,,,,,,293,293,,887,,249,249,891",",,,,,,,,,,,,,,,,,,,,,,,,,,,249,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,249,,,",",,,,,,,,,,,,,,,556,,,,,249,,,,,,,,,,,,,,,,,,,,249,873,875,,,,,,,,,,","779,781,784,812,,,,,,,,,,,249,,,,812,,,,,,,,,,,,,,,293,,293,293,293","293,293,293,293,293,293,293,293,293,293,293,293,293,293,293,293,293","293,293,293,293,293,293,,,,,,,,,293,,293,,,249,,293,,,,,,,,,,,,875,873",",,,249,,,,,,,293,,,,,,,,,,,,249,293,,,,,,,,,293,,,,,,,,,,,249,,,,,,",",,,,,,,,,,,,,,,,,249,,,,,,,,,,,,,,,,,,,,,,,,,,,293,,,,,,,,,,,,,,,,,",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,293,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,",",,293,293,293,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,293,,293,,293,,,,,,,,,,",",,,,,,,,,,,,,,,,293,,,,,,,,,,,,,293,293,293,,,,,,,,,,293,,,293,,,,,",",,,,,,293,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,",",,,,,,,,293,,293,,,,,,,,,,,,293,,,,,,,,,,,293,,,,,,,,293,,,,,,,,,,,","293,293,,,,,,,,,,,293,,,,,,,,,,,,293,,,,,,293,,,,,,,,,,,,,,,,,,,,,,",",,,,,,,,293,,,,,,,,,,,,,,,,,,,,,,,,293,,,,,,,,,,,,,,,,,,,,293,,,,,,",",,,,,,293,293,293,,,,,,,,,,,,293,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,",",,,,,,,,,,,,,,,,,,,,,,,,293,,,,,,,,,,,,,,293,293,,,,293,,,,,,,,,293",",,,,,,,,,293,,,,,,,,,,,,,,,,,,,,,293"];racc_goto_table=arr=Opal.get("Array").$new(2674,nil);idx=0;($a=($d=clist).$each,$a.$$p=(TMP_5=function(str){var self=TMP_5.$$s||this,$a,$b,TMP_6;if(str==null)str=nil;return($a=($b=str.$split(",",-1)).$each,$a.$$p=(TMP_6=function(i){var self=TMP_6.$$s||this,$a;if(i==null)i=nil;if(($a=i["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{arr["$[]="](idx,i.$to_i())}return idx=$rb_plus(idx,1)},TMP_6.$$s=self,TMP_6),$a).call($b)},TMP_5.$$s=self,TMP_5),$a).call($d);clist=["21,22,51,10,104,47,35,48,48,8,29,29,29,33,33,33,7,21,21,47,41,61,21","21,21,154,107,83,52,52,21,21,21,77,77,43,17,4,20,109,84,29,109,109,54","54,54,46,145,14,14,80,21,21,50,50,18,21,21,52,52,21,21,21,6,48,17,147","20,24,24,110,106,34,34,34,33,33,33,48,55,55,154,2,55,83,38,42,56,56","56,129,141,79,79,4,108,129,17,21,1,151,45,21,21,21,21,21,21,16,16,5","39,16,60,7,148,111,126,126,56,111,126,7,7,12,78,31,31,31,15,19,47,27","58,17,59,20,63,64,26,36,11,17,17,20,20,22,22,142,142,72,73,36,74,16","16,16,16,76,81,82,111,36,36,11,60,60,60,85,86,87,88,89,90,26,91,92,93","94,26,26,151,95,26,96,97,29,29,98,99,2,48,100,101,21,21,21,21,21,21","102,48,103,21,21,21,154,105,112,113,62,115,62,21,21,116,117,54,54,110","118,119,120,124,125,26,26,26,26,62,17,127,20,18,18,18,128,130,131,132","141,18,133,135,108,137,139,144,149,17,,20,51,,43,29,29,,,,33,33,,,29",",,21,21,104,51,61,51,,,145,21,80,145,,21,52,,,21,21,41,,,54,54,107,",",52,,,21,54,,142,83,,,,,,,21,,111,4,,,,,17,,20,,,17,129,20,,57,57,26","26,23,45,,33,56,56,33,38,26,6,42,106,38,56,148,17,33,20,108,21,21,108","108,46,108,78,108,79,84,,23,23,23,39,147,60,52,,39,21,,35,,31,31,83","35,11,,35,,21,31,,,4,111,,,110,83,,23,23,62,62,33,,,22,22,16,16,,,33",",,,10,141,48,,,108,48,,154,111,43,111,,,109,61,,109,109,145,23,,,,,","108,,23,23,29,29,,,8,,,,8,8,,48,21,21,14,,,,14,50,,51,,50,,,,,,22,,55","22,26,26,,,,,,34,111,,,,34,,,,,34,,,,,,,,,,,,111,,,26,,21,41,29,,,29","21,,,52,,,21,,21,,48,21,77,23,,,7,,,22,,,22,48,,21,,145,22,34,34,34","23,,,,17,,20,21,21,56,,52,,,21,,,,,,,51,,,,,61,29,21,24,29,77,21,143","143,143,29,21,77,21,,48,21,17,17,20,20,48,21,57,44,57,21,,21,,104,83","83,,8,62,109,,17,56,20,23,17,,20,23,23,17,,20,,83,107,,44,44,44,,23","26,21,21,,80,,,21,,,23,,,,8,,62,,,16,,,61,,,21,,44,44,,44,26,,9,,,,","21,18,18,,41,,,18,,,21,21,52,,,21,41,,,,,,,17,52,20,44,21,,,,,23,,44","44,17,,20,47,,,,,,,17,17,20,20,,,26,,26,54,,,,,,,143,143,143,57,,,,56","57,21,,,,57,21,,,,21,21,,,,,54,,,,,33,,,,,,,,48,,83,21,83,,143,,83,","21,21,,17,,20,,17,17,20,20,,,44,16,,,,57,57,57,,,,,,,,,17,,20,44,51",",,,21,18,18,,,,,,,48,,54,,,9,,,,,21,25,21,21,,,,,,,23,,,,9,,23,17,,20",",,,,,,,,,26,,,,83,,,,,17,17,20,20,,44,,,,44,44,23,23,,16,,21,52,23,","21,,44,22,,,,,,,,21,23,44,21,,23,,,,,23,,9,,,,,9,,,,17,21,20,,17,,,","21,,,29,,21,,17,,20,17,,20,21,,21,,48,,,,,,,,26,,,,17,,20,,44,,,17,","20,,,17,,20,,25,25,,,17,,20,,,23,,,,57,,,57,,57,,,,23,,,,,,,,,,23,23",",,,23,,,,,,,,,,,,23,,,,,,,,,25,,25,,,,,25,,,,,,,,,,,,,,,,,,,,,,53,,",",,,,,,,,23,,,,23,23,53,,53,53,53,53,53,,,,,,,,,,,,,23,23,,,,,,,44,,",",,,44,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,23,,44,44,,,,,,44,,,,,,,,,,,,23","23,44,28,,,44,28,28,28,,44,,,,,,,,9,9,,,28,28,28,,,,,,,,,,,25,,28,28","9,,,,9,,,,,9,,,23,,,,23,,,,,,,,,,,23,,,23,,,,,,,,,,,,,,44,,,,,23,,,",",,,23,44,,,,23,25,,25,,25,44,44,23,53,,44,,,,,,,,,25,9,,44,,,,,,,,,",",9,,,,,,,,,,9,9,,,,,,,,,,,,25,,,25,,,,,,,53,,,53,53,44,,,,44,44,,,28","28,28,28,28,,,,28,,,,,,,,,,44,,,,28,,28,28,28,28,28,28,28,28,28,28,28","28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,,,,,,,9,,28,,28,25,44,",",28,,,,,,,28,28,,,,,,,,28,,44,44,,,,,,,,25,53,,,,,,,9,,,53,25,25,,,",",,28,,,,,,,,,,9,9,,,,,,,,,,,,25,44,,,,44,,,,,,,53,,,,44,,,44,,53,53","53,53,,,,,,,25,,,53,53,,,44,9,,,,,,44,,,,,44,,,,9,25,,,44,,,,,,,,,,",",,,,,,25,9,,,,,,,9,,,,,9,,,28,,,,,,,,,,,25,,,,,,,,,,,,,,,,,,,28,28,","28,28,28,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,28,,28,,28,25,,,,,,,,,,,,,,28",",,,,25,,,,,,,,,28,,,28,,,,,,,25,28,28,28,,,,,,,,,,28,,53,28,,,,53,25",",,,,53,53,,,,,,,,,,53,,,53,53,,,,,,53,,53,,,,28,,,28,,,,,,28,,,,,,,",",,,,,,,,,,,,,,,,,,,,,,,,,28,,28,,,28,28,,,37,37,28,,,28,,37,37,37,,",",,,,28,,,,,,,37,28,,,,,,,37,37,,53,,28,28,53,,,,,,,,,,,,,,,,,,,,,,,",",,,,28,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,28,,,,,,,,,,,,,,,,,,,53,,,,,28",",,,,,,,,,,,,,,,,,,,28,28,28,,,,,,,,,,,28,28,28,53,,,,,,,,,,,28,,,,53",",,,,,,,,,,,,,,37,,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37","37,37,37,37,37,37,37,37,37,,,,,,,,,37,,37,,,28,,37,,,,,,,,,,,,28,28",",,,28,,,,,,,37,,,,,,,,,,,,28,37,,,,,,,,,37,,,,,,,,,,,28,,,,,,,,,,,,",",,,,,,,,,,,28,,,,,,,,,,,,,,,,,,,,,,,,,,,37,,,,,,,,,,,,,,,,,,,,,,,,,",",,,,,,,,,,,,,,,,,,,,,,,,,,37,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,37,37,37",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,37,,37,,37,,,,,,,,,,,,,,,,,,,,,,,,,,,37",",,,,,,,,,,,,37,37,37,,,,,,,,,,37,,,37,,,,,,,,,,,,37,,,,,,,,,,,,,,,,",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,37,,37,,,,,,,,,,,","37,,,,,,,,,,,37,,,,,,,,37,,,,,,,,,,,,37,37,,,,,,,,,,,37,,,,,,,,,,,,37",",,,,,37,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,37,,,,,,,,,,,,,,,,,,,,,,,,37,",",,,,,,,,,,,,,,,,,,37,,,,,,,,,,,,,37,37,37,,,,,,,,,,,,37,,,,,,,,,,,,",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,37,,,,,,,,,,,,,,37,37",",,,37,,,,,,,,,37,,,,,,,,,,37,,,,,,,,,,,,,,,,,,,,,37"];racc_goto_check=arr=Opal.get("Array").$new(2674,nil);idx=0;($a=($e=clist).$each,$a.$$p=(TMP_7=function(str){var self=TMP_7.$$s||this,$a,$b,TMP_8;if(str==null)str=nil;return($a=($b=str.$split(",",-1)).$each,$a.$$p=(TMP_8=function(i){var self=TMP_8.$$s||this,$a;if(i==null)i=nil;if(($a=i["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{arr["$[]="](idx,i.$to_i())}return idx=$rb_plus(idx,1)},TMP_8.$$s=self,TMP_8),$a).call($b)},TMP_7.$$s=self,TMP_7),$a).call($e);racc_goto_pointer=[nil,100,83,nil,34,12,61,16,-300,632,-535,-557,-686,nil,42,122,52,36,38,69,38,0,-52,330,-127,779,123,24,1149,-12,nil,105,nil,-188,47,-261,-344,1752,56,82,nil,-11,55,-263,594,-260,-16,-60,0,nil,47,-39,-3,1006,22,-233,66,300,-134,-363,-328,-231,-276,-368,-130,nil,nil,nil,nil,nil,nil,nil,86,98,99,nil,103,-314,-594,-484,-301,98,-205,24,-560,104,-209,120,113,-550,114,-551,-411,-724,-415,-184,-660,122,-410,-188,-408,-669,145,-118,-52,-351,-483,-30,-504,-287,-529,-438,189,-36,nil,-60,-57,-717,-361,-478,-592,nil,nil,nil,153,152,43,155,-152,-292,160,-529,-368,-366,nil,-505,nil,-606,nil,-605,nil,-508,-608,-183,-608,-290,nil,-492,-222,-469,nil,-757,nil,nil,-464];racc_goto_default=[nil,nil,nil,3,nil,4,353,279,nil,538,nil,831,nil,278,nil,nil,nil,212,16,11,213,303,nil,211,nil,255,15,nil,19,20,21,nil,25,691,nil,nil,nil,26,29,nil,31,34,33,nil,209,363,nil,116,435,115,69,nil,42,311,313,nil,314,433,nil,nil,635,486,253,nil,nil,269,43,44,45,46,47,48,49,nil,270,55,nil,nil,nil,nil,nil,nil,nil,573,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,326,325,709,328,nil,329,330,nil,nil,439,nil,nil,nil,nil,nil,nil,68,70,71,72,nil,nil,nil,nil,611,nil,nil,nil,nil,395,750,753,758,755,756,757,911,nil,nil,761,337,332,339,nil,567,568,765,342,345,260];racc_reduce_table=[0,0,"racc_error",1,143,"_reduce_none",2,144,"_reduce_2",0,145,"_reduce_3",1,145,"_reduce_4",3,145,"_reduce_5",1,147,"_reduce_none",4,147,"_reduce_7",4,150,"_reduce_8",2,151,"_reduce_9",0,155,"_reduce_10",1,155,"_reduce_11",3,155,"_reduce_12",0,169,"_reduce_13",4,149,"_reduce_14",3,149,"_reduce_15",3,149,"_reduce_none",3,149,"_reduce_17",2,149,"_reduce_18",3,149,"_reduce_19",3,149,"_reduce_20",3,149,"_reduce_21",3,149,"_reduce_22",3,149,"_reduce_23",4,149,"_reduce_none",3,149,"_reduce_25",3,149,"_reduce_26",3,149,"_reduce_27",6,149,"_reduce_none",6,149,"_reduce_none",5,149,"_reduce_30",5,149,"_reduce_none",5,149,"_reduce_none",3,149,"_reduce_none",3,149,"_reduce_34",3,149,"_reduce_35",3,149,"_reduce_36",1,149,"_reduce_none",1,168,"_reduce_none",3,168,"_reduce_39",3,168,"_reduce_40",2,168,"_reduce_41",2,168,"_reduce_42",1,168,"_reduce_none",1,158,"_reduce_none",1,160,"_reduce_none",1,160,"_reduce_none",2,160,"_reduce_47",2,160,"_reduce_48",2,160,"_reduce_49",1,172,"_reduce_none",4,172,"_reduce_none",4,172,"_reduce_none",4,172,"_reduce_none",4,177,"_reduce_none",2,171,"_reduce_55",3,171,"_reduce_none",4,171,"_reduce_57",5,171,"_reduce_none",4,171,"_reduce_59",5,171,"_reduce_none",4,171,"_reduce_61",5,171,"_reduce_none",2,171,"_reduce_63",2,171,"_reduce_64",1,161,"_reduce_65",3,161,"_reduce_66",1,181,"_reduce_67",3,181,"_reduce_68",1,180,"_reduce_69",2,180,"_reduce_70",3,180,"_reduce_71",5,180,"_reduce_none",2,180,"_reduce_73",4,180,"_reduce_none",2,180,"_reduce_75",1,180,"_reduce_76",3,180,"_reduce_none",1,183,"_reduce_78",3,183,"_reduce_79",2,182,"_reduce_80",3,182,"_reduce_81",1,185,"_reduce_none",3,185,"_reduce_none",1,184,"_reduce_84",4,184,"_reduce_85",3,184,"_reduce_86",3,184,"_reduce_none",3,184,"_reduce_none",3,184,"_reduce_none",2,184,"_reduce_none",1,184,"_reduce_none",1,159,"_reduce_92",4,159,"_reduce_93",4,159,"_reduce_94",3,159,"_reduce_95",3,159,"_reduce_96",3,159,"_reduce_97",3,159,"_reduce_98",2,159,"_reduce_99",1,159,"_reduce_none",1,187,"_reduce_none",2,188,"_reduce_102",1,188,"_reduce_103",3,188,"_reduce_104",1,189,"_reduce_none",1,189,"_reduce_none",1,189,"_reduce_none",1,189,"_reduce_108",1,189,"_reduce_109",1,156,"_reduce_110",1,156,"_reduce_none",1,157,"_reduce_112",3,157,"_reduce_113",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,190,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",1,191,"_reduce_none",3,170,"_reduce_188",5,170,"_reduce_189",3,170,"_reduce_190",6,170,"_reduce_191",6,170,"_reduce_192",5,170,"_reduce_193",5,170,"_reduce_none",5,170,"_reduce_none",5,170,"_reduce_none",4,170,"_reduce_none",3,170,"_reduce_none",3,170,"_reduce_199",3,170,"_reduce_200",3,170,"_reduce_201",3,170,"_reduce_202",3,170,"_reduce_203",3,170,"_reduce_204",3,170,"_reduce_205",3,170,"_reduce_206",4,170,"_reduce_207",4,170,"_reduce_208",2,170,"_reduce_209",2,170,"_reduce_210",3,170,"_reduce_211",3,170,"_reduce_212",3,170,"_reduce_213",3,170,"_reduce_214",3,170,"_reduce_215",3,170,"_reduce_216",3,170,"_reduce_217",3,170,"_reduce_218",3,170,"_reduce_219",3,170,"_reduce_220",3,170,"_reduce_221",3,170,"_reduce_222",3,170,"_reduce_223",2,170,"_reduce_224",2,170,"_reduce_225",3,170,"_reduce_226",3,170,"_reduce_227",3,170,"_reduce_228",3,170,"_reduce_229",3,170,"_reduce_230",5,170,"_reduce_231",1,170,"_reduce_none",1,167,"_reduce_none",1,164,"_reduce_234",2,164,"_reduce_235",2,164,"_reduce_236",4,164,"_reduce_237",2,164,"_reduce_238",3,199,"_reduce_239",2,201,"_reduce_none",1,202,"_reduce_241",1,202,"_reduce_none",1,200,"_reduce_243",1,200,"_reduce_none",2,200,"_reduce_245",4,200,"_reduce_246",2,200,"_reduce_247",1,173,"_reduce_248",2,173,"_reduce_249",2,173,"_reduce_250",4,173,"_reduce_251",1,173,"_reduce_252",4,205,"_reduce_none",1,205,"_reduce_none",0,207,"_reduce_255",2,176,"_reduce_256",1,206,"_reduce_none",2,206,"_reduce_258",3,206,"_reduce_259",2,204,"_reduce_260",2,203,"_reduce_261",0,203,"_reduce_262",1,196,"_reduce_263",2,196,"_reduce_264",3,196,"_reduce_265",4,196,"_reduce_266",3,166,"_reduce_267",4,166,"_reduce_268",2,166,"_reduce_269",1,194,"_reduce_none",1,194,"_reduce_none",1,194,"_reduce_none",1,194,"_reduce_none",1,194,"_reduce_none",1,194,"_reduce_none",1,194,"_reduce_none",1,194,"_reduce_none",1,194,"_reduce_none",0,229,"_reduce_279",4,194,"_reduce_280",4,194,"_reduce_281",3,194,"_reduce_282",3,194,"_reduce_283",2,194,"_reduce_284",4,194,"_reduce_285",4,194,"_reduce_286",3,194,"_reduce_287",3,194,"_reduce_288",1,194,"_reduce_289",4,194,"_reduce_290",3,194,"_reduce_291",1,194,"_reduce_292",5,194,"_reduce_293",4,194,"_reduce_294",3,194,"_reduce_295",2,194,"_reduce_296",1,194,"_reduce_none",2,194,"_reduce_298",2,194,"_reduce_299",6,194,"_reduce_300",6,194,"_reduce_301",0,230,"_reduce_302",0,231,"_reduce_303",7,194,"_reduce_304",0,232,"_reduce_305",0,233,"_reduce_306",7,194,"_reduce_307",5,194,"_reduce_308",4,194,"_reduce_309",5,194,"_reduce_310",0,234,"_reduce_311",0,235,"_reduce_312",9,194,"_reduce_313",0,236,"_reduce_314",6,194,"_reduce_315",0,237,"_reduce_316",0,238,"_reduce_317",8,194,"_reduce_318",0,239,"_reduce_319",0,240,"_reduce_320",6,194,"_reduce_321",0,241,"_reduce_322",6,194,"_reduce_323",0,242,"_reduce_324",0,243,"_reduce_325",9,194,"_reduce_326",1,194,"_reduce_327",1,194,"_reduce_328",1,194,"_reduce_329",1,194,"_reduce_none",1,163,"_reduce_none",1,219,"_reduce_none",1,219,"_reduce_none",1,219,"_reduce_none",2,219,"_reduce_none",1,221,"_reduce_none",1,221,"_reduce_none",1,221,"_reduce_none",2,218,"_reduce_339",3,244,"_reduce_340",2,244,"_reduce_341",1,244,"_reduce_none",1,244,"_reduce_none",3,245,"_reduce_344",3,245,"_reduce_345",1,220,"_reduce_346",5,220,"_reduce_347",1,153,"_reduce_none",2,153,"_reduce_349",1,247,"_reduce_350",3,247,"_reduce_351",3,248,"_reduce_352",1,178,"_reduce_none",2,178,"_reduce_354",1,178,"_reduce_355",3,178,"_reduce_356",1,249,"_reduce_357",2,251,"_reduce_358",1,251,"_reduce_359",6,246,"_reduce_360",4,246,"_reduce_361",4,246,"_reduce_362",2,246,"_reduce_363",2,246,"_reduce_364",4,246,"_reduce_365",2,246,"_reduce_366",2,246,"_reduce_367",1,246,"_reduce_368",0,255,"_reduce_369",5,254,"_reduce_370",2,174,"_reduce_371",4,174,"_reduce_none",4,174,"_reduce_none",4,174,"_reduce_none",2,217,"_reduce_375",4,217,"_reduce_376",4,217,"_reduce_377",3,217,"_reduce_378",4,217,"_reduce_379",3,217,"_reduce_380",2,217,"_reduce_381",1,217,"_reduce_382",0,257,"_reduce_383",5,216,"_reduce_384",0,258,"_reduce_385",5,216,"_reduce_386",0,260,"_reduce_387",6,222,"_reduce_388",1,259,"_reduce_389",1,259,"_reduce_none",6,152,"_reduce_391",0,152,"_reduce_392",1,261,"_reduce_393",1,261,"_reduce_none",1,261,"_reduce_none",2,262,"_reduce_396",1,262,"_reduce_397",2,154,"_reduce_398",1,154,"_reduce_none",1,208,"_reduce_none",1,208,"_reduce_none",1,208,"_reduce_none",1,209,"_reduce_403",1,265,"_reduce_none",2,265,"_reduce_405",3,266,"_reduce_406",1,266,"_reduce_407",3,210,"_reduce_408",3,211,"_reduce_409",3,212,"_reduce_410",3,212,"_reduce_411",1,269,"_reduce_412",3,269,"_reduce_413",1,270,"_reduce_414",2,270,"_reduce_415",3,213,"_reduce_416",3,213,"_reduce_417",1,272,"_reduce_418",3,272,"_reduce_419",1,267,"_reduce_420",2,267,"_reduce_421",1,268,"_reduce_422",2,268,"_reduce_423",1,271,"_reduce_424",0,274,"_reduce_425",3,271,"_reduce_426",0,275,"_reduce_427",4,271,"_reduce_428",1,273,"_reduce_429",1,273,"_reduce_430",1,273,"_reduce_431",1,273,"_reduce_none",2,192,"_reduce_433",1,192,"_reduce_434",1,276,"_reduce_none",1,276,"_reduce_none",1,276,"_reduce_none",1,276,"_reduce_none",3,264,"_reduce_439",1,263,"_reduce_440",1,263,"_reduce_441",2,263,"_reduce_442",2,263,"_reduce_443",2,263,"_reduce_444",2,263,"_reduce_445",1,186,"_reduce_446",1,186,"_reduce_447",1,186,"_reduce_448",1,186,"_reduce_449",1,186,"_reduce_450",1,186,"_reduce_451",1,186,"_reduce_452",1,186,"_reduce_453",1,186,"_reduce_454",1,186,"_reduce_455",1,186,"_reduce_456",1,214,"_reduce_457",1,162,"_reduce_458",1,165,"_reduce_459",1,165,"_reduce_none",1,224,"_reduce_461",3,224,"_reduce_462",2,224,"_reduce_463",4,226,"_reduce_464",2,226,"_reduce_465",1,278,"_reduce_none",1,278,"_reduce_none",2,279,"_reduce_468",1,279,"_reduce_469",1,280,"_reduce_470",2,281,"_reduce_471",1,281,"_reduce_472",1,282,"_reduce_473",3,282,"_reduce_474",4,283,"_reduce_475",2,283,"_reduce_476",2,283,"_reduce_477",1,283,"_reduce_478",2,285,"_reduce_479",0,285,"_reduce_480",6,277,"_reduce_481",4,277,"_reduce_482",4,277,"_reduce_483",2,277,"_reduce_484",4,277,"_reduce_485",2,277,"_reduce_486",2,277,"_reduce_487",1,277,"_reduce_488",0,277,"_reduce_489",1,287,"_reduce_none",1,287,"_reduce_491",1,288,"_reduce_492",1,288,"_reduce_493",1,288,"_reduce_494",1,288,"_reduce_495",1,289,"_reduce_496",3,289,"_reduce_497",1,223,"_reduce_none",1,223,"_reduce_none",1,291,"_reduce_500",3,291,"_reduce_none",1,292,"_reduce_502",3,292,"_reduce_503",1,290,"_reduce_none",4,290,"_reduce_none",3,290,"_reduce_none",2,290,"_reduce_none",1,290,"_reduce_none",1,252,"_reduce_509",3,252,"_reduce_510",3,293,"_reduce_511",1,286,"_reduce_512",3,286,"_reduce_513",1,294,"_reduce_none",1,294,"_reduce_none",2,253,"_reduce_516",1,253,"_reduce_517",1,295,"_reduce_none",1,295,"_reduce_none",2,250,"_reduce_520",2,284,"_reduce_521",0,284,"_reduce_522",1,227,"_reduce_523",4,227,"_reduce_524",0,215,"_reduce_525",2,215,"_reduce_526",1,198,"_reduce_527",3,198,"_reduce_528",3,296,"_reduce_529",2,296,"_reduce_530",1,179,"_reduce_none",1,179,"_reduce_none",1,179,"_reduce_none",1,175,"_reduce_none",1,175,"_reduce_none",1,175,"_reduce_none",1,175,"_reduce_none",1,256,"_reduce_none",1,256,"_reduce_none",1,256,"_reduce_none",1,228,"_reduce_none",1,228,"_reduce_none",0,146,"_reduce_none",1,146,"_reduce_none",0,193,"_reduce_none",1,193,"_reduce_none",0,197,"_reduce_none",1,197,"_reduce_none",1,197,"_reduce_none",1,225,"_reduce_none",1,225,"_reduce_none",1,148,"_reduce_none",2,148,"_reduce_none",0,195,"_reduce_554"]; | |
racc_reduce_n=555;racc_shift_n=968;racc_token_table=$hash(false,0,"error",1,"kCLASS",2,"kMODULE",3,"kDEF",4,"kUNDEF",5,"kBEGIN",6,"kRESCUE",7,"kENSURE",8,"kEND",9,"kIF",10,"kUNLESS",11,"kTHEN",12,"kELSIF",13,"kELSE",14,"kCASE",15,"kWHEN",16,"kWHILE",17,"kUNTIL",18,"kFOR",19,"kBREAK",20,"kNEXT",21,"kREDO",22,"kRETRY",23,"kIN",24,"kDO",25,"kDO_COND",26,"kDO_BLOCK",27,"kDO_LAMBDA",28,"kRETURN",29,"kYIELD",30,"kSUPER",31,"kSELF",32,"kNIL",33,"kTRUE",34,"kFALSE",35,"kAND",36,"kOR",37,"kNOT",38,"kIF_MOD",39,"kUNLESS_MOD",40,"kWHILE_MOD",41,"kUNTIL_MOD",42,"kRESCUE_MOD",43,"kALIAS",44,"kDEFINED",45,"klBEGIN",46,"klEND",47,"k__LINE__",48,"k__FILE__",49,"k__ENCODING__",50,"tIDENTIFIER",51,"tFID",52,"tGVAR",53,"tIVAR",54,"tCONSTANT",55,"tLABEL",56,"tCVAR",57,"tNTH_REF",58,"tBACK_REF",59,"tSTRING_CONTENT",60,"tINTEGER",61,"tFLOAT",62,"tREGEXP_END",63,"tUPLUS",64,"tUMINUS",65,"tUMINUS_NUM",66,"tPOW",67,"tCMP",68,"tEQ",69,"tEQQ",70,"tNEQ",71,"tGEQ",72,"tLEQ",73,"tANDOP",74,"tOROP",75,"tMATCH",76,"tNMATCH",77,"tJSDOT",78,"tDOT",79,"tDOT2",80,"tDOT3",81,"tAREF",82,"tASET",83,"tLSHFT",84,"tRSHFT",85,"tCOLON2",86,"tCOLON3",87,"tOP_ASGN",88,"tASSOC",89,"tLPAREN",90,"tLPAREN2",91,"tRPAREN",92,"tLPAREN_ARG",93,"ARRAY_BEG",94,"tRBRACK",95,"tLBRACE",96,"tLBRACE_ARG",97,"tSTAR",98,"tSTAR2",99,"tAMPER",100,"tAMPER2",101,"tTILDE",102,"tPERCENT",103,"tDIVIDE",104,"tPLUS",105,"tMINUS",106,"tLT",107,"tGT",108,"tPIPE",109,"tBANG",110,"tCARET",111,"tLCURLY",112,"tRCURLY",113,"tBACK_REF2",114,"tSYMBEG",115,"tSTRING_BEG",116,"tXSTRING_BEG",117,"tREGEXP_BEG",118,"tWORDS_BEG",119,"tAWORDS_BEG",120,"tSTRING_DBEG",121,"tSTRING_DVAR",122,"tSTRING_END",123,"tSTRING",124,"tSYMBOL",125,"tNL",126,"tEH",127,"tCOLON",128,"tCOMMA",129,"tSPACE",130,"tSEMI",131,"tLAMBDA",132,"tLAMBEG",133,"tLBRACK2",134,"tLBRACK",135,"tJSLBRACK",136,"tDSTAR",137,"tEQL",138,"tLOWEST",139,"-@NUM",140,"+@NUM",141);racc_nt_base=142;racc_use_result_var=true;Opal.cdecl($scope,"Racc_arg",[racc_action_table,racc_action_check,racc_action_default,racc_action_pointer,racc_goto_table,racc_goto_check,racc_goto_default,racc_goto_pointer,racc_nt_base,racc_reduce_table,racc_token_table,racc_shift_n,racc_reduce_n,racc_use_result_var]);Opal.cdecl($scope,"Racc_token_to_s_table",["$end","error","kCLASS","kMODULE","kDEF","kUNDEF","kBEGIN","kRESCUE","kENSURE","kEND","kIF","kUNLESS","kTHEN","kELSIF","kELSE","kCASE","kWHEN","kWHILE","kUNTIL","kFOR","kBREAK","kNEXT","kREDO","kRETRY","kIN","kDO","kDO_COND","kDO_BLOCK","kDO_LAMBDA","kRETURN","kYIELD","kSUPER","kSELF","kNIL","kTRUE","kFALSE","kAND","kOR","kNOT","kIF_MOD","kUNLESS_MOD","kWHILE_MOD","kUNTIL_MOD","kRESCUE_MOD","kALIAS","kDEFINED","klBEGIN","klEND","k__LINE__","k__FILE__","k__ENCODING__","tIDENTIFIER","tFID","tGVAR","tIVAR","tCONSTANT","tLABEL","tCVAR","tNTH_REF","tBACK_REF","tSTRING_CONTENT","tINTEGER","tFLOAT","tREGEXP_END","tUPLUS","tUMINUS","tUMINUS_NUM","tPOW","tCMP","tEQ","tEQQ","tNEQ","tGEQ","tLEQ","tANDOP","tOROP","tMATCH","tNMATCH","tJSDOT","tDOT","tDOT2","tDOT3","tAREF","tASET","tLSHFT","tRSHFT","tCOLON2","tCOLON3","tOP_ASGN","tASSOC","tLPAREN","tLPAREN2","tRPAREN","tLPAREN_ARG","ARRAY_BEG","tRBRACK","tLBRACE","tLBRACE_ARG","tSTAR","tSTAR2","tAMPER","tAMPER2","tTILDE","tPERCENT","tDIVIDE","tPLUS","tMINUS","tLT","tGT","tPIPE","tBANG","tCARET","tLCURLY","tRCURLY","tBACK_REF2","tSYMBEG","tSTRING_BEG","tXSTRING_BEG","tREGEXP_BEG","tWORDS_BEG","tAWORDS_BEG","tSTRING_DBEG","tSTRING_DVAR","tSTRING_END","tSTRING","tSYMBOL","tNL","tEH","tCOLON","tCOMMA","tSPACE","tSEMI","tLAMBDA","tLAMBEG","tLBRACK2","tLBRACK","tJSLBRACK","tDSTAR","tEQL","tLOWEST",'"-@NUM"','"+@NUM"',"$start","program","top_compstmt","top_stmts","opt_terms","top_stmt","terms","stmt","bodystmt","compstmt","opt_rescue","opt_else","opt_ensure","stmts","fitem","undef_list","expr_value","lhs","command_call","mlhs","var_lhs","primary_value","aref_args","backref","mrhs","arg_value","expr","@1","arg","command","block_command","call_args","block_call","operation2","command_args","cmd_brace_block","opt_block_var","operation","mlhs_basic","mlhs_entry","mlhs_head","mlhs_item","mlhs_node","mlhs_post","variable","cname","cpath","fname","op","reswords","symbol","opt_nl","primary","none","args","trailer","assocs","paren_args","opt_call_args","rparen","opt_paren_args","opt_block_arg","block_arg","call_args2","open_args","@2","literal","strings","xstring","regexp","words","awords","var_ref","assoc_list","brace_block","method_call","lambda","then","if_tail","do","case_body","for_var","superclass","term","f_arglist","singleton","dot_or_colon","@3","@4","@5","@6","@7","@8","@9","@10","@11","@12","@13","@14","@15","@16","@17","f_larglist","lambda_body","block_param","f_block_optarg","f_block_opt","block_args_tail","f_block_arg","opt_block_args_tail","f_arg","f_rest_arg","do_block","@18","operation3","@19","@20","cases","@21","exc_list","exc_var","numeric","dsym","string","string1","string_contents","xstring_contents","word_list","word","string_content","qword_list","string_dvar","@22","@23","sym","f_args","kwrest_mark","f_kwrest","f_label","f_kw","f_kwarg","args_tail","opt_f_block_arg","opt_args_tail","f_optarg","f_norm_arg","f_bad_arg","f_arg_item","f_margs","f_marg","f_marg_list","f_opt","restarg_mark","blkarg_mark","assoc"]);Opal.cdecl($scope,"Racc_debug_parser",false);Opal.defn(self,"$_reduce_2",function(val,_values,result){var self=this;result=self.$new_compstmt(val["$[]"](0));return result});Opal.defn(self,"$_reduce_3",function(val,_values,result){var self=this;result=self.$new_block();return result});Opal.defn(self,"$_reduce_4",function(val,_values,result){var self=this;result=self.$new_block(val["$[]"](0));return result});Opal.defn(self,"$_reduce_5",function(val,_values,result){var self=this;val["$[]"](0)["$<<"](val["$[]"](2));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_7",function(val,_values,result){var self=this;result=val["$[]"](2);return result});Opal.defn(self,"$_reduce_8",function(val,_values,result){var self=this;result=self.$new_body(val["$[]"](0),val["$[]"](1),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_9",function(val,_values,result){var self=this;result=self.$new_compstmt(val["$[]"](0));return result});Opal.defn(self,"$_reduce_10",function(val,_values,result){var self=this;result=self.$new_block();return result});Opal.defn(self,"$_reduce_11",function(val,_values,result){var self=this;result=self.$new_block(val["$[]"](0));return result});Opal.defn(self,"$_reduce_12",function(val,_values,result){var self=this;val["$[]"](0)["$<<"](val["$[]"](2));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_13",function(val,_values,result){var $a,$b,self=this;$a=["expr_fname"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_14",function(val,_values,result){var self=this;result=self.$new_alias(val["$[]"](0),val["$[]"](1),val["$[]"](3));return result});Opal.defn(self,"$_reduce_15",function(val,_values,result){var self=this;result=self.$s("valias",self.$value(val["$[]"](1)).$to_sym(),self.$value(val["$[]"](2)).$to_sym());return result});Opal.defn(self,"$_reduce_17",function(val,_values,result){var self=this;result=self.$s("valias",self.$value(val["$[]"](1)).$to_sym(),self.$value(val["$[]"](2)).$to_sym());return result});Opal.defn(self,"$_reduce_18",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_19",function(val,_values,result){var self=this;result=self.$new_if(val["$[]"](1),val["$[]"](2),val["$[]"](0),nil);return result});Opal.defn(self,"$_reduce_20",function(val,_values,result){var self=this;result=self.$new_if(val["$[]"](1),val["$[]"](2),nil,val["$[]"](0));return result});Opal.defn(self,"$_reduce_21",function(val,_values,result){var self=this;result=self.$new_while(val["$[]"](1),val["$[]"](2),val["$[]"](0));return result});Opal.defn(self,"$_reduce_22",function(val,_values,result){var self=this;result=self.$new_until(val["$[]"](1),val["$[]"](2),val["$[]"](0));return result});Opal.defn(self,"$_reduce_23",function(val,_values,result){var self=this;result=self.$new_rescue_mod(val["$[]"](1),val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_25",function(val,_values,result){var self=this;result=self.$new_assign(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_26",function(val,_values,result){var self=this;result=self.$s("masgn",val["$[]"](0),self.$s("to_ary",val["$[]"](2)));return result});Opal.defn(self,"$_reduce_27",function(val,_values,result){var self=this;result=self.$new_op_asgn(val["$[]"](1),val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_30",function(val,_values,result){var self=this;result=self.$s("op_asgn2",val["$[]"](0),self.$op_to_setter(val["$[]"](2)),self.$value(val["$[]"](3)).$to_sym(),val["$[]"](4));return result});Opal.defn(self,"$_reduce_34",function(val,_values,result){var self=this;result=self.$new_assign(val["$[]"](0),val["$[]"](1),self.$s("svalue",val["$[]"](2)));return result});Opal.defn(self,"$_reduce_35",function(val,_values,result){var self=this;result=self.$s("masgn",val["$[]"](0),self.$s("to_ary",val["$[]"](2)));return result});Opal.defn(self,"$_reduce_36",function(val,_values,result){var self=this;result=self.$s("masgn",val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_39",function(val,_values,result){var self=this;result=self.$s("and",val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_40",function(val,_values,result){var self=this;result=self.$s("or",val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_41",function(val,_values,result){var self=this;result=self.$new_unary_call(["!",[]],val["$[]"](1));return result});Opal.defn(self,"$_reduce_42",function(val,_values,result){var self=this;result=self.$new_unary_call(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_47",function(val,_values,result){var self=this;result=self.$new_return(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_48",function(val,_values,result){var self=this;result=self.$new_break(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_49",function(val,_values,result){var self=this;result=self.$new_next(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_55",function(val,_values,result){var self=this;result=self.$new_call(nil,val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_57",function(val,_values,result){var self=this;result=self.$new_js_call(val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_59",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_61",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_63",function(val,_values,result){var self=this;result=self.$new_super(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_64",function(val,_values,result){var self=this;result=self.$new_yield(val["$[]"](1));return result});Opal.defn(self,"$_reduce_65",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_66",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_67",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_68",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_69",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_70",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](val["$[]"](1));return result});Opal.defn(self,"$_reduce_71",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](self.$s("splat",val["$[]"](2)));return result});Opal.defn(self,"$_reduce_73",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](self.$s("splat"));return result});Opal.defn(self,"$_reduce_75",function(val,_values,result){var self=this;result=self.$s("array",self.$s("splat",val["$[]"](1)));return result});Opal.defn(self,"$_reduce_76",function(val,_values,result){var self=this;result=self.$s("array",self.$s("splat"));return result});Opal.defn(self,"$_reduce_78",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_79",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_80",function(val,_values,result){var self=this;result=self.$s("array",val["$[]"](0));return result});Opal.defn(self,"$_reduce_81",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](val["$[]"](1));return result});Opal.defn(self,"$_reduce_84",function(val,_values,result){var self=this;result=self.$new_assignable(val["$[]"](0));return result});Opal.defn(self,"$_reduce_85",function(val,_values,result){var $a,self=this,args=nil;args=function(){if(($a=val["$[]"](2))!==nil&&(!$a.$$is_boolean||$a==true)){return val["$[]"](2)}else{return[]}return nil}();result=self.$s("attrasgn",val["$[]"](0),"[]=",($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(args))));return result});Opal.defn(self,"$_reduce_86",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),val["$[]"](2),[]);return result});Opal.defn(self,"$_reduce_92",function(val,_values,result){var self=this;result=self.$new_assignable(val["$[]"](0));return result});Opal.defn(self,"$_reduce_93",function(val,_values,result){var self=this;result=self.$new_js_attrasgn(val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_94",function(val,_values,result){var self=this;result=self.$new_attrasgn(val["$[]"](0),"[]=",val["$[]"](2));return result});Opal.defn(self,"$_reduce_95",function(val,_values,result){var self=this;result=self.$new_attrasgn(val["$[]"](0),self.$op_to_setter(val["$[]"](2)));return result});Opal.defn(self,"$_reduce_96",function(val,_values,result){var self=this;result=self.$new_attrasgn(val["$[]"](0),self.$op_to_setter(val["$[]"](2)));return result});Opal.defn(self,"$_reduce_97",function(val,_values,result){var self=this;result=self.$new_attrasgn(val["$[]"](0),self.$op_to_setter(val["$[]"](2)));return result});Opal.defn(self,"$_reduce_98",function(val,_values,result){var self=this;result=self.$new_colon2(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_99",function(val,_values,result){var self=this;result=self.$new_colon3(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_102",function(val,_values,result){var self=this;result=self.$new_colon3(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_103",function(val,_values,result){var self=this;result=self.$new_const(val["$[]"](0));return result});Opal.defn(self,"$_reduce_104",function(val,_values,result){var self=this;result=self.$new_colon2(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_108",function(val,_values,result){var $a,$b,self=this;$a=["expr_end"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_109",function(val,_values,result){var $a,$b,self=this;$a=["expr_end"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_110",function(val,_values,result){var self=this;result=self.$new_sym(val["$[]"](0));return result});Opal.defn(self,"$_reduce_112",function(val,_values,result){var self=this;result=self.$s("undef",val["$[]"](0));return result});Opal.defn(self,"$_reduce_113",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](val["$[]"](2));return result});Opal.defn(self,"$_reduce_188",function(val,_values,result){var self=this;result=self.$new_assign(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_189",function(val,_values,result){var self=this;result=self.$new_assign(val["$[]"](0),val["$[]"](1),self.$s("rescue_mod",val["$[]"](2),val["$[]"](4)));return result});Opal.defn(self,"$_reduce_190",function(val,_values,result){var self=this;result=self.$new_op_asgn(val["$[]"](1),val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_191",function(val,_values,result){var self=this;result=self.$new_op_asgn1(val["$[]"](0),val["$[]"](2),val["$[]"](4),val["$[]"](5));return result});Opal.defn(self,"$_reduce_192",function(val,_values,result){var self=this;self.$raise(".JS[...] "+val["$[]"](4)+" is not supported");return result});Opal.defn(self,"$_reduce_193",function(val,_values,result){var self=this;result=self.$s("op_asgn2",val["$[]"](0),self.$op_to_setter(val["$[]"](2)),self.$value(val["$[]"](3)).$to_sym(),val["$[]"](4));return result});Opal.defn(self,"$_reduce_199",function(val,_values,result){var self=this;result=self.$new_irange(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_200",function(val,_values,result){var self=this;result=self.$new_erange(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_201",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_202",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_203",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_204",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_205",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_206",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_207",function(val,_values,result){var self=this;result=self.$new_call(self.$new_binary_call(self.$new_int(val["$[]"](1)),val["$[]"](2),val["$[]"](3)),["-@",[]],[]);return result});Opal.defn(self,"$_reduce_208",function(val,_values,result){var self=this;result=self.$new_call(self.$new_binary_call(self.$new_float(val["$[]"](1)),val["$[]"](2),val["$[]"](3)),["-@",[]],[]);return result});Opal.defn(self,"$_reduce_209",function(val,_values,result){var $a,self=this;result=self.$new_call(val["$[]"](1),["+@",[]],[]);if(($a=["int","float"]["$include?"](val["$[]"](1).$type()))!==nil&&(!$a.$$is_boolean||$a==true)){result=val["$[]"](1)}return result});Opal.defn(self,"$_reduce_210",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](1),["-@",[]],[]);if(val["$[]"](1).$type()["$=="]("int")){val["$[]"](1)["$[]="](1,val["$[]"](1)["$[]"](1)["$-@"]());result=val["$[]"](1)}else if(val["$[]"](1).$type()["$=="]("float")){val["$[]"](1)["$[]="](1,val["$[]"](1)["$[]"](1).$to_f()["$-@"]());result=val["$[]"](1)}return result});Opal.defn(self,"$_reduce_211",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_212",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_213",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_214",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_215",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_216",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_217",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_218",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_219",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_220",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_221",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_222",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_223",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_224",function(val,_values,result){var self=this;result=self.$new_unary_call(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_225",function(val,_values,result){var self=this;result=self.$new_unary_call(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_226",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_227",function(val,_values,result){var self=this;result=self.$new_binary_call(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_228",function(val,_values,result){var self=this;result=self.$new_and(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_229",function(val,_values,result){var self=this;result=self.$new_or(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_230",function(val,_values,result){var self=this;result=self.$s("defined",val["$[]"](2));return result});Opal.defn(self,"$_reduce_231",function(val,_values,result){var self=this;result=self.$new_if(val["$[]"](1),val["$[]"](0),val["$[]"](2),val["$[]"](4));return result});Opal.defn(self,"$_reduce_234",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_235",function(val,_values,result){var self=this;result=[val["$[]"](0)];return result});Opal.defn(self,"$_reduce_236",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_237",function(val,_values,result){var $a,self=this;val["$[]"](0)["$<<"](($a=self).$s.apply($a,["hash"].concat(Opal.to_a(val["$[]"](2)))));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_238",function(val,_values,result){var $a,self=this;result=[($a=self).$s.apply($a,["hash"].concat(Opal.to_a(val["$[]"](0))))];return result});Opal.defn(self,"$_reduce_239",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_241",function(val,_values,result){var self=this;result=[];return result});Opal.defn(self,"$_reduce_243",function(val,_values,result){var self=this;result=[];return result});Opal.defn(self,"$_reduce_245",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_246",function(val,_values,result){var self=this;result=val["$[]"](0);result["$<<"](self.$new_hash(nil,val["$[]"](2),nil));return result});Opal.defn(self,"$_reduce_247",function(val,_values,result){var self=this;result=[self.$new_hash(nil,val["$[]"](0),nil)];return result});Opal.defn(self,"$_reduce_248",function(val,_values,result){var self=this;result=[val["$[]"](0)];return result});Opal.defn(self,"$_reduce_249",function(val,_values,result){var self=this;result=val["$[]"](0);self.$add_block_pass(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_250",function(val,_values,result){var self=this;result=[self.$new_hash(nil,val["$[]"](0),nil)];self.$add_block_pass(result,val["$[]"](1));return result});Opal.defn(self,"$_reduce_251",function(val,_values,result){var $a,self=this;result=val["$[]"](0);result["$<<"](self.$new_hash(nil,val["$[]"](2),nil));if(($a=val["$[]"](3))!==nil&&(!$a.$$is_boolean||$a==true)){result["$<<"](val["$[]"](3))}return result});Opal.defn(self,"$_reduce_252",function(val,_values,result){var self=this;result=[];self.$add_block_pass(result,val["$[]"](0));return result});Opal.defn(self,"$_reduce_255",function(val,_values,result){var self=this;self.$lexer().$cmdarg_push(1);return result});Opal.defn(self,"$_reduce_256",function(val,_values,result){var self=this;self.$lexer().$cmdarg_pop();result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_258",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_259",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_260",function(val,_values,result){var self=this;result=self.$new_block_pass(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_261",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_262",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_263",function(val,_values,result){var self=this;result=[val["$[]"](0)];return result});Opal.defn(self,"$_reduce_264",function(val,_values,result){var self=this;result=[self.$new_splat(val["$[]"](0),val["$[]"](1))];return result});Opal.defn(self,"$_reduce_265",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](val["$[]"](2));return result});Opal.defn(self,"$_reduce_266",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](self.$new_splat(val["$[]"](2),val["$[]"](3)));return result});Opal.defn(self,"$_reduce_267",function(val,_values,result){var $a,self=this;val["$[]"](0)["$<<"](val["$[]"](2));result=($a=self).$s.apply($a,["array"].concat(Opal.to_a(val["$[]"](0))));return result});Opal.defn(self,"$_reduce_268",function(val,_values,result){var $a,self=this;val["$[]"](0)["$<<"](self.$s("splat",val["$[]"](3)));result=($a=self).$s.apply($a,["array"].concat(Opal.to_a(val["$[]"](0))));return result});Opal.defn(self,"$_reduce_269",function(val,_values,result){var self=this;result=self.$s("splat",val["$[]"](1));return result});Opal.defn(self,"$_reduce_279",function(val,_values,result){var self=this;result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_280",function(val,_values,result){var self=this;result=self.$s("begin",val["$[]"](2));return result});Opal.defn(self,"$_reduce_281",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_282",function(val,_values,result){var self=this;result=self.$new_paren(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_283",function(val,_values,result){var self=this;result=self.$new_colon2(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_284",function(val,_values,result){var self=this;result=self.$new_colon3(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_285",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),["[]",[]],val["$[]"](2));return result});Opal.defn(self,"$_reduce_286",function(val,_values,result){var self=this;result=self.$new_js_call(val["$[]"](0),["[]",[]],val["$[]"](2));return result});Opal.defn(self,"$_reduce_287",function(val,_values,result){var self=this;result=self.$new_array(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_288",function(val,_values,result){var self=this;result=self.$new_hash(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_289",function(val,_values,result){var self=this;result=self.$new_return(val["$[]"](0));return result});Opal.defn(self,"$_reduce_290",function(val,_values,result){var self=this;result=self.$new_yield(val["$[]"](2));return result});Opal.defn(self,"$_reduce_291",function(val,_values,result){var self=this;result=self.$s("yield");return result});Opal.defn(self,"$_reduce_292",function(val,_values,result){var self=this;result=self.$s("yield");return result});Opal.defn(self,"$_reduce_293",function(val,_values,result){var self=this;result=self.$s("defined",val["$[]"](3));return result});Opal.defn(self,"$_reduce_294",function(val,_values,result){var self=this;result=self.$new_unary_call(["!",[]],val["$[]"](2));return result});Opal.defn(self,"$_reduce_295",function(val,_values,result){var self=this;result=self.$new_unary_call(["!",[]],self.$new_nil(val["$[]"](0)));return result});Opal.defn(self,"$_reduce_296",function(val,_values,result){var self=this;result=self.$new_call(nil,val["$[]"](0),[]);result["$<<"](val["$[]"](1));return result});Opal.defn(self,"$_reduce_298",function(val,_values,result){var self=this;val["$[]"](0)["$<<"](val["$[]"](1));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_299",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_300",function(val,_values,result){var self=this;result=self.$new_if(val["$[]"](0),val["$[]"](1),val["$[]"](3),val["$[]"](4));return result});Opal.defn(self,"$_reduce_301",function(val,_values,result){var self=this;result=self.$new_if(val["$[]"](0),val["$[]"](1),val["$[]"](4),val["$[]"](3));return result});Opal.defn(self,"$_reduce_302",function(val,_values,result){var self=this;self.$lexer().$cond_push(1);result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_303",function(val,_values,result){var self=this;self.$lexer().$cond_pop();return result});Opal.defn(self,"$_reduce_304",function(val,_values,result){var self=this;result=self.$s("while",val["$[]"](2),val["$[]"](5));return result});Opal.defn(self,"$_reduce_305",function(val,_values,result){var self=this;self.$lexer().$cond_push(1);result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_306",function(val,_values,result){var self=this;self.$lexer().$cond_pop();return result});Opal.defn(self,"$_reduce_307",function(val,_values,result){var self=this;result=self.$s("until",val["$[]"](2),val["$[]"](5));return result});Opal.defn(self,"$_reduce_308",function(val,_values,result){var $a,self=this;result=($a=self).$s.apply($a,["case",val["$[]"](1)].concat(Opal.to_a(val["$[]"](3))));return result});Opal.defn(self,"$_reduce_309",function(val,_values,result){var $a,self=this;result=($a=self).$s.apply($a,["case",nil].concat(Opal.to_a(val["$[]"](2))));return result});Opal.defn(self,"$_reduce_310",function(val,_values,result){var self=this;result=self.$s("case",nil,val["$[]"](3));return result});Opal.defn(self,"$_reduce_311",function(val,_values,result){var self=this;self.$lexer().$cond_push(1);result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_312",function(val,_values,result){var self=this;self.$lexer().$cond_pop();return result});Opal.defn(self,"$_reduce_313",function(val,_values,result){var self=this;result=self.$s("for",val["$[]"](4),val["$[]"](1),val["$[]"](7));return result});Opal.defn(self,"$_reduce_314",function(val,_values,result){var self=this;return result});Opal.defn(self,"$_reduce_315",function(val,_values,result){var self=this;result=self.$new_class(val["$[]"](0),val["$[]"](1),val["$[]"](2),val["$[]"](4),val["$[]"](5));return result});Opal.defn(self,"$_reduce_316",function(val,_values,result){var self=this;result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_317",function(val,_values,result){var self=this;return result; | |
});Opal.defn(self,"$_reduce_318",function(val,_values,result){var self=this;result=self.$new_sclass(val["$[]"](0),val["$[]"](3),val["$[]"](6),val["$[]"](7));return result});Opal.defn(self,"$_reduce_319",function(val,_values,result){var self=this;result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_320",function(val,_values,result){var self=this;return result});Opal.defn(self,"$_reduce_321",function(val,_values,result){var self=this;result=self.$new_module(val["$[]"](0),val["$[]"](2),val["$[]"](4),val["$[]"](5));return result});Opal.defn(self,"$_reduce_322",function(val,_values,result){var $a,$b,self=this;self.$push_scope();$a=["expr_endfn"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_323",function(val,_values,result){var self=this;result=self.$new_def(val["$[]"](0),nil,val["$[]"](1),val["$[]"](3),val["$[]"](4),val["$[]"](5));self.$pop_scope();return result});Opal.defn(self,"$_reduce_324",function(val,_values,result){var $a,$b,self=this;$a=["expr_fname"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_325",function(val,_values,result){var $a,$b,self=this;self.$push_scope();$a=["expr_endfn"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_326",function(val,_values,result){var self=this;result=self.$new_def(val["$[]"](0),val["$[]"](1),val["$[]"](4),val["$[]"](6),val["$[]"](7),val["$[]"](8));self.$pop_scope();return result});Opal.defn(self,"$_reduce_327",function(val,_values,result){var self=this;result=self.$new_break(val["$[]"](0));return result});Opal.defn(self,"$_reduce_328",function(val,_values,result){var self=this;result=self.$s("next");return result});Opal.defn(self,"$_reduce_329",function(val,_values,result){var self=this;result=self.$s("redo");return result});Opal.defn(self,"$_reduce_339",function(val,_values,result){var self=this;result=self.$new_call(nil,["lambda",[]],[]);result["$<<"](self.$new_iter(val["$[]"](0),val["$[]"](1)));return result});Opal.defn(self,"$_reduce_340",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_341",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_344",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_345",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_346",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_347",function(val,_values,result){var self=this;result=self.$new_if(val["$[]"](0),val["$[]"](1),val["$[]"](3),val["$[]"](4));return result});Opal.defn(self,"$_reduce_349",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_350",function(val,_values,result){var self=this;result=self.$s("block",val["$[]"](0));return result});Opal.defn(self,"$_reduce_351",function(val,_values,result){var self=this;val["$[]"](0)["$<<"](val["$[]"](2));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_352",function(val,_values,result){var self=this;result=self.$new_assign(self.$new_assignable(self.$new_ident(val["$[]"](0))),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_354",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_355",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_356",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_357",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_358",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_359",function(val,_values,result){var self=this;nil;return result});Opal.defn(self,"$_reduce_360",function(val,_values,result){var self=this;result=self.$new_block_args(val["$[]"](0),val["$[]"](2),val["$[]"](4),val["$[]"](5));return result});Opal.defn(self,"$_reduce_361",function(val,_values,result){var self=this;result=self.$new_block_args(val["$[]"](0),val["$[]"](2),nil,val["$[]"](3));return result});Opal.defn(self,"$_reduce_362",function(val,_values,result){var self=this;result=self.$new_block_args(val["$[]"](0),nil,val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_363",function(val,_values,result){var self=this;result=self.$new_block_args(val["$[]"](0),nil,nil,nil);return result});Opal.defn(self,"$_reduce_364",function(val,_values,result){var self=this;result=self.$new_block_args(val["$[]"](0),nil,nil,val["$[]"](1));return result});Opal.defn(self,"$_reduce_365",function(val,_values,result){var self=this;result=self.$new_block_args(nil,val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_366",function(val,_values,result){var self=this;result=self.$new_block_args(nil,val["$[]"](0),nil,val["$[]"](1));return result});Opal.defn(self,"$_reduce_367",function(val,_values,result){var self=this;result=self.$new_block_args(nil,nil,val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_368",function(val,_values,result){var self=this;result=self.$new_block_args(nil,nil,nil,val["$[]"](0));return result});Opal.defn(self,"$_reduce_369",function(val,_values,result){var self=this;self.$push_scope("block");result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_370",function(val,_values,result){var self=this;result=self.$new_iter(val["$[]"](2),val["$[]"](3));self.$pop_scope();return result});Opal.defn(self,"$_reduce_371",function(val,_values,result){var self=this;val["$[]"](0)["$<<"](val["$[]"](1));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_375",function(val,_values,result){var self=this;result=self.$new_call(nil,val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_376",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_377",function(val,_values,result){var self=this;result=self.$new_js_call(val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_378",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),["call",[]],val["$[]"](2));return result});Opal.defn(self,"$_reduce_379",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_380",function(val,_values,result){var self=this;result=self.$new_call(val["$[]"](0),val["$[]"](2));return result});Opal.defn(self,"$_reduce_381",function(val,_values,result){var self=this;result=self.$new_super(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_382",function(val,_values,result){var self=this;result=self.$new_super(val["$[]"](0),nil);return result});Opal.defn(self,"$_reduce_383",function(val,_values,result){var self=this;self.$push_scope("block");result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_384",function(val,_values,result){var self=this;result=self.$new_iter(val["$[]"](2),val["$[]"](3));self.$pop_scope();return result});Opal.defn(self,"$_reduce_385",function(val,_values,result){var self=this;self.$push_scope("block");result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_386",function(val,_values,result){var self=this;result=self.$new_iter(val["$[]"](2),val["$[]"](3));self.$pop_scope();return result});Opal.defn(self,"$_reduce_387",function(val,_values,result){var self=this;result=self.$lexer().$line();return result});Opal.defn(self,"$_reduce_388",function(val,_values,result){var $a,$b,self=this,part=nil;part=self.$s("when",($a=self).$s.apply($a,["array"].concat(Opal.to_a(val["$[]"](2)))),val["$[]"](4));result=[part];if(($b=val["$[]"](5))!==nil&&(!$b.$$is_boolean||$b==true)){($b=result).$push.apply($b,Opal.to_a(val["$[]"](5)))}return result});Opal.defn(self,"$_reduce_389",function(val,_values,result){var self=this;result=[val["$[]"](0)];return result});Opal.defn(self,"$_reduce_391",function(val,_values,result){var $a,self=this,exc=nil;exc=($a=val["$[]"](1))!==false&&$a!==nil?$a:self.$s("array");if(($a=val["$[]"](2))!==nil&&(!$a.$$is_boolean||$a==true)){exc["$<<"](self.$new_assign(val["$[]"](2),val["$[]"](2),self.$s("gvar","$!".$intern())))}result=[self.$s("resbody",exc,val["$[]"](4))];if(($a=val["$[]"](5))!==nil&&(!$a.$$is_boolean||$a==true)){result.$push(val["$[]"](5).$first())}return result});Opal.defn(self,"$_reduce_392",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_393",function(val,_values,result){var self=this;result=self.$s("array",val["$[]"](0));return result});Opal.defn(self,"$_reduce_396",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_397",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_398",function(val,_values,result){var $a,self=this;result=function(){if(($a=val["$[]"](1)["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$s("nil")}else{return val["$[]"](1)}return nil}();return result});Opal.defn(self,"$_reduce_403",function(val,_values,result){var self=this;result=self.$new_str(val["$[]"](0));return result});Opal.defn(self,"$_reduce_405",function(val,_values,result){var self=this;result=self.$str_append(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_406",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_407",function(val,_values,result){var self=this;result=self.$s("str",self.$value(val["$[]"](0)));return result});Opal.defn(self,"$_reduce_408",function(val,_values,result){var self=this;result=self.$new_xstr(val["$[]"](0),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_409",function(val,_values,result){var self=this;result=self.$new_regexp(val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_410",function(val,_values,result){var self=this;result=self.$s("array");return result});Opal.defn(self,"$_reduce_411",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_412",function(val,_values,result){var self=this;result=self.$s("array");return result});Opal.defn(self,"$_reduce_413",function(val,_values,result){var self=this,part=nil;part=val["$[]"](1);if(part.$type()["$=="]("evstr")){part=self.$s("dstr","",val["$[]"](1))}result=val["$[]"](0)["$<<"](part);return result});Opal.defn(self,"$_reduce_414",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_415",function(val,_values,result){var self=this;result=val["$[]"](0).$concat([val["$[]"](1)]);return result});Opal.defn(self,"$_reduce_416",function(val,_values,result){var self=this;result=self.$s("array");return result});Opal.defn(self,"$_reduce_417",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_418",function(val,_values,result){var self=this;result=self.$s("array");return result});Opal.defn(self,"$_reduce_419",function(val,_values,result){var self=this;result=val["$[]"](0)["$<<"](self.$s("str",self.$value(val["$[]"](1))));return result});Opal.defn(self,"$_reduce_420",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_421",function(val,_values,result){var self=this;result=self.$str_append(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_422",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_423",function(val,_values,result){var self=this;result=self.$str_append(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_424",function(val,_values,result){var self=this;result=self.$new_str_content(val["$[]"](0));return result});Opal.defn(self,"$_reduce_425",function(val,_values,result){var $a,$b,self=this;result=self.$lexer().$strterm();$a=[nil],$b=self.$lexer(),$b["$strterm="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_426",function(val,_values,result){var $a,$b,self=this;$a=[val["$[]"](1)],$b=self.$lexer(),$b["$strterm="].apply($b,$a),$a[$a.length-1];result=self.$new_evstr(val["$[]"](2));return result});Opal.defn(self,"$_reduce_427",function(val,_values,result){var $a,$b,self=this;self.$lexer().$cond_push(0);self.$lexer().$cmdarg_push(0);result=self.$lexer().$strterm();$a=[nil],$b=self.$lexer(),$b["$strterm="].apply($b,$a),$a[$a.length-1];$a=["expr_beg"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_428",function(val,_values,result){var $a,$b,self=this;$a=[val["$[]"](1)],$b=self.$lexer(),$b["$strterm="].apply($b,$a),$a[$a.length-1];self.$lexer().$cond_lexpop();self.$lexer().$cmdarg_lexpop();result=self.$new_evstr(val["$[]"](2));return result});Opal.defn(self,"$_reduce_429",function(val,_values,result){var self=this;result=self.$new_gvar(val["$[]"](0));return result});Opal.defn(self,"$_reduce_430",function(val,_values,result){var self=this;result=self.$new_ivar(val["$[]"](0));return result});Opal.defn(self,"$_reduce_431",function(val,_values,result){var self=this;result=self.$new_cvar(val["$[]"](0));return result});Opal.defn(self,"$_reduce_433",function(val,_values,result){var $a,$b,self=this;result=self.$new_sym(val["$[]"](1));$a=["expr_end"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_434",function(val,_values,result){var self=this;result=self.$new_sym(val["$[]"](0));return result});Opal.defn(self,"$_reduce_439",function(val,_values,result){var self=this;result=self.$new_dsym(val["$[]"](1));return result});Opal.defn(self,"$_reduce_440",function(val,_values,result){var self=this;result=self.$new_int(val["$[]"](0));return result});Opal.defn(self,"$_reduce_441",function(val,_values,result){var self=this;result=self.$new_float(val["$[]"](0));return result});Opal.defn(self,"$_reduce_442",function(val,_values,result){var self=this;result=self.$negate_num(self.$new_int(val["$[]"](1)));return result});Opal.defn(self,"$_reduce_443",function(val,_values,result){var self=this;result=self.$negate_num(self.$new_float(val["$[]"](1)));return result});Opal.defn(self,"$_reduce_444",function(val,_values,result){var self=this;result=self.$new_int(val["$[]"](1));return result});Opal.defn(self,"$_reduce_445",function(val,_values,result){var self=this;result=self.$new_float(val["$[]"](1));return result});Opal.defn(self,"$_reduce_446",function(val,_values,result){var self=this;result=self.$new_ident(val["$[]"](0));return result});Opal.defn(self,"$_reduce_447",function(val,_values,result){var self=this;result=self.$new_ivar(val["$[]"](0));return result});Opal.defn(self,"$_reduce_448",function(val,_values,result){var self=this;result=self.$new_gvar(val["$[]"](0));return result});Opal.defn(self,"$_reduce_449",function(val,_values,result){var self=this;result=self.$new_const(val["$[]"](0));return result});Opal.defn(self,"$_reduce_450",function(val,_values,result){var self=this;result=self.$new_cvar(val["$[]"](0));return result});Opal.defn(self,"$_reduce_451",function(val,_values,result){var self=this;result=self.$new_nil(val["$[]"](0));return result});Opal.defn(self,"$_reduce_452",function(val,_values,result){var self=this;result=self.$new_self(val["$[]"](0));return result});Opal.defn(self,"$_reduce_453",function(val,_values,result){var self=this;result=self.$new_true(val["$[]"](0));return result});Opal.defn(self,"$_reduce_454",function(val,_values,result){var self=this;result=self.$new_false(val["$[]"](0));return result});Opal.defn(self,"$_reduce_455",function(val,_values,result){var self=this;result=self.$new___FILE__(val["$[]"](0));return result});Opal.defn(self,"$_reduce_456",function(val,_values,result){var self=this;result=self.$new___LINE__(val["$[]"](0));return result});Opal.defn(self,"$_reduce_457",function(val,_values,result){var self=this;result=self.$new_var_ref(val["$[]"](0));return result});Opal.defn(self,"$_reduce_458",function(val,_values,result){var self=this;result=self.$new_assignable(val["$[]"](0));return result});Opal.defn(self,"$_reduce_459",function(val,_values,result){var self=this;result=self.$s("nth_ref",self.$value(val["$[]"](0)));return result});Opal.defn(self,"$_reduce_461",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_462",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_463",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_464",function(val,_values,result){var $a,$b,self=this;result=val["$[]"](1);$a=["expr_beg"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_465",function(val,_values,result){var $a,$b,self=this;result=val["$[]"](0);$a=["expr_beg"],$b=self.$lexer(),$b["$lex_state="].apply($b,$a),$a[$a.length-1];return result});Opal.defn(self,"$_reduce_468",function(val,_values,result){var self=this;result=self.$new_kwrestarg(val["$[]"](1));return result});Opal.defn(self,"$_reduce_469",function(val,_values,result){var self=this;result=self.$new_kwrestarg();return result});Opal.defn(self,"$_reduce_470",function(val,_values,result){var self=this;result=self.$new_sym(val["$[]"](0));return result});Opal.defn(self,"$_reduce_471",function(val,_values,result){var self=this;result=self.$new_kwoptarg(val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_472",function(val,_values,result){var self=this;result=self.$new_kwarg(val["$[]"](0));return result});Opal.defn(self,"$_reduce_473",function(val,_values,result){var self=this;result=[val["$[]"](0)];return result});Opal.defn(self,"$_reduce_474",function(val,_values,result){var self=this;result=val["$[]"](0);result["$<<"](val["$[]"](2));return result});Opal.defn(self,"$_reduce_475",function(val,_values,result){var self=this;result=self.$new_args_tail(val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_476",function(val,_values,result){var self=this;result=self.$new_args_tail(val["$[]"](0),nil,val["$[]"](1));return result});Opal.defn(self,"$_reduce_477",function(val,_values,result){var self=this;result=self.$new_args_tail(nil,val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_478",function(val,_values,result){var self=this;result=self.$new_args_tail(nil,nil,val["$[]"](0));return result});Opal.defn(self,"$_reduce_479",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_480",function(val,_values,result){var self=this;result=self.$new_args_tail(nil,nil,nil);return result});Opal.defn(self,"$_reduce_481",function(val,_values,result){var self=this;result=self.$new_args(val["$[]"](0),val["$[]"](2),val["$[]"](4),val["$[]"](5));return result});Opal.defn(self,"$_reduce_482",function(val,_values,result){var self=this;result=self.$new_args(val["$[]"](0),val["$[]"](2),nil,val["$[]"](3));return result});Opal.defn(self,"$_reduce_483",function(val,_values,result){var self=this;result=self.$new_args(val["$[]"](0),nil,val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_484",function(val,_values,result){var self=this;result=self.$new_args(val["$[]"](0),nil,nil,val["$[]"](1));return result});Opal.defn(self,"$_reduce_485",function(val,_values,result){var self=this;result=self.$new_args(nil,val["$[]"](0),val["$[]"](2),val["$[]"](3));return result});Opal.defn(self,"$_reduce_486",function(val,_values,result){var self=this;result=self.$new_args(nil,val["$[]"](0),nil,val["$[]"](1));return result});Opal.defn(self,"$_reduce_487",function(val,_values,result){var self=this;result=self.$new_args(nil,nil,val["$[]"](0),val["$[]"](1));return result});Opal.defn(self,"$_reduce_488",function(val,_values,result){var self=this;result=self.$new_args(nil,nil,nil,val["$[]"](0));return result});Opal.defn(self,"$_reduce_489",function(val,_values,result){var self=this;result=self.$new_args(nil,nil,nil,nil);return result});Opal.defn(self,"$_reduce_491",function(val,_values,result){var self=this;result=self.$value(val["$[]"](0)).$to_sym();self.$scope().$add_local(result);return result});Opal.defn(self,"$_reduce_492",function(val,_values,result){var self=this;self.$raise("formal argument cannot be a constant");return result});Opal.defn(self,"$_reduce_493",function(val,_values,result){var self=this;self.$raise("formal argument cannot be an instance variable");return result});Opal.defn(self,"$_reduce_494",function(val,_values,result){var self=this;self.$raise("formal argument cannot be a class variable");return result});Opal.defn(self,"$_reduce_495",function(val,_values,result){var self=this;self.$raise("formal argument cannot be a global variable");return result});Opal.defn(self,"$_reduce_496",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_497",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_500",function(val,_values,result){var self=this;result=self.$s("lasgn",val["$[]"](0));return result});Opal.defn(self,"$_reduce_502",function(val,_values,result){var self=this;result=self.$s("array",val["$[]"](0));return result});Opal.defn(self,"$_reduce_503",function(val,_values,result){var self=this;val["$[]"](0)["$<<"](val["$[]"](2));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_509",function(val,_values,result){var self=this;result=[val["$[]"](0)];return result});Opal.defn(self,"$_reduce_510",function(val,_values,result){var self=this;val["$[]"](0)["$<<"](val["$[]"](2));result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_511",function(val,_values,result){var self=this;result=self.$new_assign(self.$new_assignable(self.$new_ident(val["$[]"](0))),val["$[]"](1),val["$[]"](2));return result});Opal.defn(self,"$_reduce_512",function(val,_values,result){var self=this;result=self.$s("block",val["$[]"](0));return result});Opal.defn(self,"$_reduce_513",function(val,_values,result){var self=this;result=val["$[]"](0);val["$[]"](0)["$<<"](val["$[]"](2));return result});Opal.defn(self,"$_reduce_516",function(val,_values,result){var self=this;result=("*"+self.$value(val["$[]"](1))).$to_sym();return result});Opal.defn(self,"$_reduce_517",function(val,_values,result){var self=this;result="*";return result});Opal.defn(self,"$_reduce_520",function(val,_values,result){var self=this;result=("&"+self.$value(val["$[]"](1))).$to_sym();return result});Opal.defn(self,"$_reduce_521",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_522",function(val,_values,result){var self=this;result=nil;return result});Opal.defn(self,"$_reduce_523",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_524",function(val,_values,result){var self=this;result=val["$[]"](1);return result});Opal.defn(self,"$_reduce_525",function(val,_values,result){var self=this;result=[];return result});Opal.defn(self,"$_reduce_526",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_527",function(val,_values,result){var self=this;result=val["$[]"](0);return result});Opal.defn(self,"$_reduce_528",function(val,_values,result){var $a,self=this;result=($a=val["$[]"](0)).$push.apply($a,Opal.to_a(val["$[]"](2)));return result});Opal.defn(self,"$_reduce_529",function(val,_values,result){var self=this;result=[val["$[]"](0),val["$[]"](2)];return result});Opal.defn(self,"$_reduce_530",function(val,_values,result){var self=this;result=[self.$new_sym(val["$[]"](0)),val["$[]"](1)];return result});Opal.defn(self,"$_reduce_554",function(val,_values,result){var self=this;result=nil;return result});return(Opal.defn(self,"$_reduce_none",function(val,_values,result){var self=this;return val["$[]"](0)}),nil)&&"_reduce_none"})($scope.base,$scope.get("Racc").$$scope.get("Parser"))}($scope.base)};Opal.modules["opal/parser/parser_scope"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$attr_reader","$attr_accessor","$==","$<<","$include?","$has_local?"]);return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ParserScope(){}var self=$ParserScope=$klass($base,$super,"ParserScope",$ParserScope);var def=self.$$proto,$scope=self.$$scope;def.locals=def.parent=def.block=nil;self.$attr_reader("locals");self.$attr_accessor("parent");Opal.defn(self,"$initialize",function(type){var self=this;self.block=type["$=="]("block");self.locals=[];return self.parent=nil});Opal.defn(self,"$add_local",function(local){var self=this;return self.locals["$<<"](local)});return(Opal.defn(self,"$has_local?",function(local){var $a,$b,self=this;if(($a=self.locals["$include?"](local))!==nil&&(!$a.$$is_boolean||$a==true)){return true}if(($a=($b=self.parent,$b!==false&&$b!==nil?self.block:$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.parent["$has_local?"](local)}return false}),nil)&&"has_local?"})($scope.base,null)}($scope.base)};Opal.modules["opal/parser"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$attr_reader","$new","$parser=","$parse_to_sexp","$join","$message","$line","$lexer","$column","$[]","$split","$-","$+","$*","$>","$raise","$class","$backtrace","$push_scope","$do_parse","$pop_scope","$next_token","$last","$parent=","$<<","$pop","$inspect","$value","$token_to_str","$s","$source=","$s0","$source","$s1","$file","$to_sym","$nil?","$==","$length","$size","$type","$each","$!=","$add_local","$scope","$to_s","$empty?","$is_a?","$new_splat","$new_call","$[]=","$array","$-@","$===","$new_gettable","$type=","$has_local?"]);self.$require("opal/parser/sexp");self.$require("opal/parser/lexer");self.$require("opal/parser/grammar");self.$require("opal/parser/parser_scope");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $Parser(){}var self=$Parser=$klass($base,$super,"Parser",$Parser);var def=self.$$proto,$scope=self.$$scope;def.lexer=def.file=def.scopes=nil;self.$attr_reader("lexer","file","scope");Opal.defn(self,"$parse",function(source,file){var $a,$b,self=this,error=nil,message=nil;if(file==null){file="(string)"}try{self.file=file;self.scopes=[];self.lexer=$scope.get("Lexer").$new(source,file);$a=[self],$b=self.lexer,$b["$parser="].apply($b,$a),$a[$a.length-1];return self.$parse_to_sexp()}catch($err){if(true){error=$err;try{message=[nil,error.$message(),"Source: "+self.file+":"+self.$lexer().$line()+":"+self.$lexer().$column(),source.$split("\n")["$[]"]($rb_minus(self.$lexer().$line(),1)),$rb_plus($rb_times("~",function(){if($rb_gt($rb_minus(self.$lexer().$column(),1),0)){return $rb_minus(self.$lexer().$column(),1)}else{return 0}return nil}()),"^")].$join("\n");return self.$raise(error.$class(),message,error.$backtrace())}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}});Opal.defn(self,"$parse_to_sexp",function(){var self=this,result=nil;self.$push_scope();result=self.$do_parse();self.$pop_scope();return result});Opal.defn(self,"$next_token",function(){var self=this;return self.lexer.$next_token()});Opal.defn(self,"$s",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var parts=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){parts[arg_index]=arguments[arg_index+0]}return $scope.get("Sexp").$new(parts)});Opal.defn(self,"$push_scope",function(type){var $a,$b,self=this,top=nil,scope=nil;if(type==null){type=nil}top=self.scopes.$last();scope=$scope.get("ParserScope").$new(type);$a=[top],$b=scope,$b["$parent="].apply($b,$a),$a[$a.length-1];self.scopes["$<<"](scope);return self.scope=scope});Opal.defn(self,"$pop_scope",function(){var self=this;self.scopes.$pop();return self.scope=self.scopes.$last()});Opal.defn(self,"$on_error",function(t,val,vstack){var $a,self=this;return self.$raise("parse error on value "+self.$value(val).$inspect()+" ("+(($a=self.$token_to_str(t))!==false&&$a!==nil?$a:"?")+") :"+self.file+":"+self.$lexer().$line())});Opal.defn(self,"$value",function(tok){var self=this;return tok["$[]"](0)});Opal.defn(self,"$source",function(tok){var self=this;if(tok!==false&&tok!==nil){return tok["$[]"](1)}else{return nil}});Opal.defn(self,"$s0",function(type,source){var $a,$b,self=this,sexp=nil;sexp=self.$s(type);$a=[source],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$s1",function(type,first,source){var $a,$b,self=this,sexp=nil;sexp=self.$s(type,first);$a=[source],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_nil",function(tok){var self=this;return self.$s0("nil",self.$source(tok))});Opal.defn(self,"$new_self",function(tok){var self=this;return self.$s0("self",self.$source(tok))});Opal.defn(self,"$new_true",function(tok){var self=this;return self.$s0("true",self.$source(tok))});Opal.defn(self,"$new_false",function(tok){var self=this;return self.$s0("false",self.$source(tok))});Opal.defn(self,"$new___FILE__",function(tok){var self=this;return self.$s1("str",self.$file(),self.$source(tok))});Opal.defn(self,"$new___LINE__",function(tok){var self=this;return self.$s1("int",self.$lexer().$line(),self.$source(tok))});Opal.defn(self,"$new_ident",function(tok){var self=this;return self.$s1("identifier",self.$value(tok).$to_sym(),self.$source(tok))});Opal.defn(self,"$new_int",function(tok){var self=this;return self.$s1("int",self.$value(tok),self.$source(tok))});Opal.defn(self,"$new_float",function(tok){var self=this;return self.$s1("float",self.$value(tok),self.$source(tok))});Opal.defn(self,"$new_ivar",function(tok){var self=this;return self.$s1("ivar",self.$value(tok).$to_sym(),self.$source(tok))});Opal.defn(self,"$new_gvar",function(tok){var self=this;return self.$s1("gvar",self.$value(tok).$to_sym(),self.$source(tok))});Opal.defn(self,"$new_cvar",function(tok){var self=this;return self.$s1("cvar",self.$value(tok).$to_sym(),self.$source(tok))});Opal.defn(self,"$new_const",function(tok){var self=this;return self.$s1("const",self.$value(tok).$to_sym(),self.$source(tok))});Opal.defn(self,"$new_colon2",function(lhs,tok,name){var $a,$b,self=this,sexp=nil;sexp=self.$s("colon2",lhs,self.$value(name).$to_sym());$a=[self.$source(tok)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_colon3",function(tok,name){var self=this;return self.$s1("colon3",self.$value(name).$to_sym(),self.$source(name))});Opal.defn(self,"$new_sym",function(tok){var self=this;return self.$s1("sym",self.$value(tok).$to_sym(),self.$source(tok))});Opal.defn(self,"$new_alias",function(kw,new$,old){var $a,$b,self=this,sexp=nil;sexp=self.$s("alias",new$,old);$a=[self.$source(kw)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_break",function(kw,args){ | |
var $a,self=this,sexp=nil;if(args==null){args=nil}if(($a=args["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){sexp=self.$s("break")}else if(args.$length()["$=="](1)){sexp=self.$s("break",args["$[]"](0))}else{sexp=self.$s("break",($a=self).$s.apply($a,["array"].concat(Opal.to_a(args))))}return sexp});Opal.defn(self,"$new_return",function(kw,args){var $a,self=this,sexp=nil;if(args==null){args=nil}if(($a=args["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){sexp=self.$s("return")}else if(args.$length()["$=="](1)){sexp=self.$s("return",args["$[]"](0))}else{sexp=self.$s("return",($a=self).$s.apply($a,["array"].concat(Opal.to_a(args))))}return sexp});Opal.defn(self,"$new_next",function(kw,args){var $a,self=this,sexp=nil;if(args==null){args=[]}if(args.$length()["$=="](1)){sexp=self.$s("next",args["$[]"](0))}else{sexp=self.$s("next",($a=self).$s.apply($a,["array"].concat(Opal.to_a(args))))}return sexp});Opal.defn(self,"$new_block",function(stmt){var self=this,sexp=nil;if(stmt==null){stmt=nil}sexp=self.$s("block");if(stmt!==false&&stmt!==nil){sexp["$<<"](stmt)}return sexp});Opal.defn(self,"$new_compstmt",function(block){var $a,$b,$c,self=this,comp=nil,result=nil;comp=function(){if(block.$size()["$=="](1)){return nil}else if(block.$size()["$=="](2)){return block["$[]"](1)}else{return block}return nil}();if(($a=($b=($c=comp!==false&&comp!==nil)?comp.$type()["$=="]("begin"):comp,$b!==false&&$b!==nil?comp.$size()["$=="](2):$b))!==nil&&(!$a.$$is_boolean||$a==true)){result=comp["$[]"](1)}else{result=comp}return result});Opal.defn(self,"$new_body",function(compstmt,res,els,ens){var $a,$b,TMP_1,self=this,s=nil;s=($a=compstmt)!==false&&$a!==nil?$a:self.$s("block");if(res!==false&&res!==nil){s=self.$s("rescue",s);($a=($b=res).$each,$a.$$p=(TMP_1=function(r){var self=TMP_1.$$s||this;if(r==null)r=nil;return s["$<<"](r)},TMP_1.$$s=self,TMP_1),$a).call($b);if(els!==false&&els!==nil){s["$<<"](els)}}if(ens!==false&&ens!==nil){return self.$s("ensure",s,ens)}else{return s}});Opal.defn(self,"$new_def",function(kw,recv,name,args,body,end_tok){var $a,$b,self=this,sexp=nil;if(($a=body.$type()["$!="]("block"))!==nil&&(!$a.$$is_boolean||$a==true)){body=self.$s("block",body)}if(body.$size()["$=="](1)){body["$<<"](self.$s("nil"))}sexp=self.$s("def",recv,self.$value(name).$to_sym(),args,body);$a=[self.$source(kw)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_class",function(start,path,sup,body,endt){var $a,$b,self=this,sexp=nil;sexp=self.$s("class",path,sup,body);$a=[self.$source(start)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_sclass",function(kw,expr,body,end_tok){var $a,$b,self=this,sexp=nil;sexp=self.$s("sclass",expr,body);$a=[self.$source(kw)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_module",function(kw,path,body,end_tok){var $a,$b,self=this,sexp=nil;sexp=self.$s("module",path,body);$a=[self.$source(kw)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_iter",function(args,body){var $a,self=this,s=nil;($a=args)!==false&&$a!==nil?$a:args=nil;s=self.$s("iter",args);if(body!==false&&body!==nil){s["$<<"](body)}return s});Opal.defn(self,"$new_if",function(if_tok,expr,stmt,tail){var $a,$b,self=this,sexp=nil;sexp=self.$s("if",expr,stmt,tail);$a=[self.$source(if_tok)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_while",function(kw,test,body){var $a,$b,self=this,sexp=nil;sexp=self.$s("while",test,body);$a=[self.$source(kw)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_until",function(kw,test,body){var $a,$b,self=this,sexp=nil;sexp=self.$s("until",test,body);$a=[self.$source(kw)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_rescue_mod",function(kw,expr,resc){var $a,$b,self=this,sexp=nil;sexp=self.$s("rescue_mod",expr,resc);$a=[self.$source(kw)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_array",function(start,args,finish){var $a,$b,$c,self=this,sexp=nil;($a=args)!==false&&$a!==nil?$a:args=[];sexp=($a=self).$s.apply($a,["array"].concat(Opal.to_a(args)));$b=[self.$source(start)],$c=sexp,$c["$source="].apply($c,$b),$b[$b.length-1];return sexp});Opal.defn(self,"$new_hash",function(open,assocs,close){var $a,$b,$c,self=this,sexp=nil;sexp=($a=self).$s.apply($a,["hash"].concat(Opal.to_a(assocs)));$b=[self.$source(open)],$c=sexp,$c["$source="].apply($c,$b),$b[$b.length-1];return sexp});Opal.defn(self,"$new_not",function(kw,expr){var self=this;return self.$s1("not",expr,self.$source(kw))});Opal.defn(self,"$new_paren",function(open,expr,close){var $a,$b,self=this;if(($a=($b=expr["$nil?"]())!==false&&$b!==nil?$b:expr["$=="](["block"]))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$s1("paren",self.$s0("nil",self.$source(open)),self.$source(open))}else{return self.$s1("paren",expr,self.$source(open))}});Opal.defn(self,"$new_args_tail",function(kwarg,kwrest,block){var self=this;return[kwarg,kwrest,block]});Opal.defn(self,"$new_args",function(norm,opt,rest,tail){var $a,$b,TMP_2,$c,TMP_3,$d,TMP_4,$e,self=this,res=nil,restname=nil,blockname=nil;res=self.$s("args");if(norm!==false&&norm!==nil){($a=($b=norm).$each,$a.$$p=(TMP_2=function(arg){var self=TMP_2.$$s||this;if(arg==null)arg=nil;self.$scope().$add_local(arg);return res["$<<"](self.$s("arg",arg))},TMP_2.$$s=self,TMP_2),$a).call($b)}if(opt!==false&&opt!==nil){($a=($c=opt["$[]"]($range(1,-1,false))).$each,$a.$$p=(TMP_3=function(_opt){var self=TMP_3.$$s||this;if(_opt==null)_opt=nil;return res["$<<"](self.$s("optarg",_opt["$[]"](1),_opt["$[]"](2)))},TMP_3.$$s=self,TMP_3),$a).call($c)}if(rest!==false&&rest!==nil){restname=rest.$to_s()["$[]"]($range(1,-1,false));if(($a=restname["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){res["$<<"](self.$s("restarg"))}else{res["$<<"](self.$s("restarg",restname.$to_sym()));self.$scope().$add_local(restname.$to_sym())}}if(($a=($d=tail!==false&&tail!==nil)?tail["$[]"](0):tail)!==nil&&(!$a.$$is_boolean||$a==true)){($a=($d=tail["$[]"](0)).$each,$a.$$p=(TMP_4=function(kwarg){var self=TMP_4.$$s||this;if(kwarg==null)kwarg=nil;return res["$<<"](kwarg)},TMP_4.$$s=self,TMP_4),$a).call($d)}if(($a=($e=tail!==false&&tail!==nil)?tail["$[]"](1):tail)!==nil&&(!$a.$$is_boolean||$a==true)){res["$<<"](tail["$[]"](1))}if(($a=($e=tail!==false&&tail!==nil)?tail["$[]"](2):tail)!==nil&&(!$a.$$is_boolean||$a==true)){blockname=tail["$[]"](2).$to_s()["$[]"]($range(1,-1,false)).$to_sym();self.$scope().$add_local(blockname);res["$<<"](self.$s("blockarg",blockname))}return res});Opal.defn(self,"$new_kwarg",function(name){var self=this;self.$scope().$add_local(name["$[]"](1));return self.$s("kwarg",name["$[]"](1))});Opal.defn(self,"$new_kwoptarg",function(name,val){var self=this;self.$scope().$add_local(name["$[]"](1));return self.$s("kwoptarg",name["$[]"](1),val)});Opal.defn(self,"$new_kwrestarg",function(name){var self=this,result=nil;if(name==null){name=nil}result=self.$s("kwrestarg");if(name!==false&&name!==nil){self.$scope().$add_local(name["$[]"](0).$to_sym());result["$<<"](name["$[]"](0).$to_sym())}return result});Opal.defn(self,"$new_block_args",function(norm,opt,rest,block){var $a,$b,TMP_5,$c,TMP_6,$d,self=this,res=nil,r=nil,b=nil,args=nil;res=self.$s("array");if(norm!==false&&norm!==nil){($a=($b=norm).$each,$a.$$p=(TMP_5=function(arg){var self=TMP_5.$$s||this,$a;if(arg==null)arg=nil;if(($a=arg["$is_a?"]($scope.get("Symbol")))!==nil&&(!$a.$$is_boolean||$a==true)){self.$scope().$add_local(arg);return res["$<<"](self.$s("lasgn",arg))}else{return res["$<<"](arg)}},TMP_5.$$s=self,TMP_5),$a).call($b)}if(opt!==false&&opt!==nil){($a=($c=opt["$[]"]($range(1,-1,false))).$each,$a.$$p=(TMP_6=function(_opt){var self=TMP_6.$$s||this;if(_opt==null)_opt=nil;return res["$<<"](self.$s("lasgn",_opt["$[]"](1)))},TMP_6.$$s=self,TMP_6),$a).call($c)}if(rest!==false&&rest!==nil){r=rest.$to_s()["$[]"]($range(1,-1,false)).$to_sym();res["$<<"](self.$new_splat(nil,self.$s("lasgn",r)));self.$scope().$add_local(r)}if(block!==false&&block!==nil){b=block.$to_s()["$[]"]($range(1,-1,false)).$to_sym();res["$<<"](self.$s("block_pass",self.$s("lasgn",b)));self.$scope().$add_local(b)}if(opt!==false&&opt!==nil){res["$<<"](opt)}args=function(){if(($a=($d=res.$size()["$=="](2))?norm:res.$size()["$=="](2))!==nil&&(!$a.$$is_boolean||$a==true)){return res["$[]"](1)}else{return self.$s("masgn",res)}return nil}();if(args.$type()["$=="]("array")){return self.$s("masgn",args)}else{return args}});Opal.defn(self,"$new_call",function(recv,meth,args){var $a,$b,$c,self=this,sexp=nil;if(args==null){args=nil}($a=args)!==false&&$a!==nil?$a:args=[];sexp=self.$s("call",recv,self.$value(meth).$to_sym(),($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(args))));$b=[self.$source(meth)],$c=sexp,$c["$source="].apply($c,$b),$b[$b.length-1];return sexp});Opal.defn(self,"$new_js_call",function(recv,meth,args){var $a,$b,$c,self=this,sexp=nil;if(args==null){args=nil}if(args!==false&&args!==nil){sexp=self.$s("jscall",recv,self.$value(meth).$to_sym(),($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(args))));$b=[self.$source(meth)],$c=sexp,$c["$source="].apply($c,$b),$b[$b.length-1]}else{sexp=self.$s("jscall",recv,self.$value(meth).$to_sym(),nil);$b=[self.$source(meth)],$c=sexp,$c["$source="].apply($c,$b),$b[$b.length-1]}return sexp});Opal.defn(self,"$new_binary_call",function(recv,meth,arg){var self=this;return self.$new_call(recv,meth,[arg])});Opal.defn(self,"$new_unary_call",function(op,recv){var self=this;return self.$new_call(recv,op,[])});Opal.defn(self,"$new_and",function(lhs,tok,rhs){var $a,$b,self=this,sexp=nil;sexp=self.$s("and",lhs,rhs);$a=[self.$source(tok)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_or",function(lhs,tok,rhs){var $a,$b,self=this,sexp=nil;sexp=self.$s("or",lhs,rhs);$a=[self.$source(tok)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_irange",function(beg,op,finish){var $a,$b,self=this,sexp=nil;sexp=self.$s("irange",beg,finish);$a=[self.$source(op)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$new_erange",function(beg,op,finish){var $a,$b,self=this,sexp=nil;sexp=self.$s("erange",beg,finish);$a=[self.$source(op)],$b=sexp,$b["$source="].apply($b,$a),$a[$a.length-1];return sexp});Opal.defn(self,"$negate_num",function(sexp){var self=this;sexp.$array()["$[]="](1,sexp.$array()["$[]"](1)["$-@"]());return sexp});Opal.defn(self,"$add_block_pass",function(arglist,block){var self=this;if(block!==false&&block!==nil){arglist["$<<"](block)}return arglist});Opal.defn(self,"$new_block_pass",function(amper_tok,val){var self=this;return self.$s1("block_pass",val,self.$source(amper_tok))});Opal.defn(self,"$new_splat",function(tok,value){var self=this;return self.$s1("splat",value,self.$source(tok))});Opal.defn(self,"$new_op_asgn",function(op,lhs,rhs){var self=this,$case=nil,result=nil;$case=self.$value(op).$to_sym();if("||"["$==="]($case)){result=self.$s("op_asgn_or",self.$new_gettable(lhs));result["$<<"](lhs["$<<"](rhs))}else if("&&"["$==="]($case)){result=self.$s("op_asgn_and",self.$new_gettable(lhs));result["$<<"](lhs["$<<"](rhs))}else{result=lhs;result["$<<"](self.$new_call(self.$new_gettable(lhs),op,[rhs]))}return result});Opal.defn(self,"$new_op_asgn1",function(lhs,args,op,rhs){var $a,$b,$c,self=this,arglist=nil,sexp=nil;arglist=($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(args)));sexp=self.$s("op_asgn1",lhs,arglist,self.$value(op),rhs);$b=[self.$source(op)],$c=sexp,$c["$source="].apply($c,$b),$b[$b.length-1];return sexp});Opal.defn(self,"$op_to_setter",function(op){var self=this;return(""+self.$value(op)+"=").$to_sym()});Opal.defn(self,"$new_attrasgn",function(recv,op,args){var $a,self=this,arglist=nil,sexp=nil;if(args==null){args=[]}arglist=($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(args)));sexp=self.$s("attrasgn",recv,op,arglist);return sexp});Opal.defn(self,"$new_js_attrasgn",function(recv,args){var $a,self=this,arglist=nil,sexp=nil;arglist=($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(args)));sexp=self.$s("jsattrasgn",recv,nil,arglist);return sexp});Opal.defn(self,"$new_assign",function(lhs,tok,rhs){var $a,$b,self=this,$case=nil;return function(){$case=lhs.$type();if("iasgn"["$==="]($case)||"cdecl"["$==="]($case)||"lasgn"["$==="]($case)||"gasgn"["$==="]($case)||"cvdecl"["$==="]($case)||"nth_ref"["$==="]($case)){lhs["$<<"](rhs);return lhs}else if("call"["$==="]($case)||"attrasgn"["$==="]($case)||"jsattrasgn"["$==="]($case)){lhs.$last()["$<<"](rhs);return lhs}else if("colon2"["$==="]($case)){lhs["$<<"](rhs);$a=["casgn"],$b=lhs,$b["$type="].apply($b,$a),$a[$a.length-1];return lhs}else if("colon3"["$==="]($case)){lhs["$<<"](rhs);$a=["casgn3"],$b=lhs,$b["$type="].apply($b,$a),$a[$a.length-1];return lhs}else{return self.$raise("Bad lhs for new_assign: "+lhs.$type())}}()});Opal.defn(self,"$new_assignable",function(ref){var $a,$b,self=this,$case=nil;$case=ref.$type();if("ivar"["$==="]($case)){$a=["iasgn"],$b=ref,$b["$type="].apply($b,$a),$a[$a.length-1]}else if("const"["$==="]($case)){$a=["cdecl"],$b=ref,$b["$type="].apply($b,$a),$a[$a.length-1]}else if("identifier"["$==="]($case)){if(($a=self.$scope()["$has_local?"](ref["$[]"](1)))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$scope().$add_local(ref["$[]"](1))}$a=["lasgn"],$b=ref,$b["$type="].apply($b,$a),$a[$a.length-1]}else if("gvar"["$==="]($case)){$a=["gasgn"],$b=ref,$b["$type="].apply($b,$a),$a[$a.length-1]}else if("cvar"["$==="]($case)){$a=["cvdecl"],$b=ref,$b["$type="].apply($b,$a),$a[$a.length-1]}else{self.$raise($scope.get("SyntaxError"),"Bad new_assignable type: "+ref.$type())}return ref});Opal.defn(self,"$new_gettable",function(ref){var $a,$b,self=this,res=nil,$case=nil;res=function(){$case=ref.$type();if("lasgn"["$==="]($case)){return self.$s("lvar",ref["$[]"](1))}else if("iasgn"["$==="]($case)){return self.$s("ivar",ref["$[]"](1))}else if("gasgn"["$==="]($case)){return self.$s("gvar",ref["$[]"](1))}else if("cvdecl"["$==="]($case)){return self.$s("cvar",ref["$[]"](1))}else if("cdecl"["$==="]($case)){return self.$s("const",ref["$[]"](1))}else{return self.$raise("Bad new_gettable ref: "+ref.$type())}}();$a=[ref.$source()],$b=res,$b["$source="].apply($b,$a),$a[$a.length-1];return res});Opal.defn(self,"$new_var_ref",function(ref){var $a,$b,self=this,$case=nil,result=nil;return function(){$case=ref.$type();if("self"["$==="]($case)||"nil"["$==="]($case)||"true"["$==="]($case)||"false"["$==="]($case)||"line"["$==="]($case)||"file"["$==="]($case)){return ref}else if("const"["$==="]($case)){return ref}else if("ivar"["$==="]($case)||"gvar"["$==="]($case)||"cvar"["$==="]($case)){return ref}else if("int"["$==="]($case)){return ref}else if("str"["$==="]($case)){return ref}else if("identifier"["$==="]($case)){result=function(){if(($a=self.$scope()["$has_local?"](ref["$[]"](1)))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$s("lvar",ref["$[]"](1))}else{return self.$s("call",nil,ref["$[]"](1),self.$s("arglist"))}return nil}();$a=[ref.$source()],$b=result,$b["$source="].apply($b,$a),$a[$a.length-1];return result}else{return self.$raise("Bad var_ref type: "+ref.$type())}}()});Opal.defn(self,"$new_super",function(kw,args){var $a,$b,$c,self=this,sexp=nil;if(($a=args["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){sexp=self.$s("super",nil)}else{sexp=self.$s("super",($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(args))))}$b=[self.$source(kw)],$c=sexp,$c["$source="].apply($c,$b),$b[$b.length-1];return sexp});Opal.defn(self,"$new_yield",function(args){var $a,self=this;($a=args)!==false&&$a!==nil?$a:args=[];return($a=self).$s.apply($a,["yield"].concat(Opal.to_a(args)))});Opal.defn(self,"$new_xstr",function(start_t,str,end_t){var $a,$b,self=this,$case=nil;if(str!==false&&str!==nil){}else{return self.$s("xstr","")}$case=str.$type();if("str"["$==="]($case)){$a=["xstr"],$b=str,$b["$type="].apply($b,$a),$a[$a.length-1]}else if("dstr"["$==="]($case)){$a=["dxstr"],$b=str,$b["$type="].apply($b,$a),$a[$a.length-1]}else if("evstr"["$==="]($case)){str=self.$s("dxstr","",str)}$a=[self.$source(start_t)],$b=str,$b["$source="].apply($b,$a),$a[$a.length-1];return str});Opal.defn(self,"$new_dsym",function(str){var $a,$b,self=this,$case=nil;if(str!==false&&str!==nil){}else{return self.$s("sym","")}$case=str.$type();if("str"["$==="]($case)){$a=["sym"],$b=str,$b["$type="].apply($b,$a),$a[$a.length-1];str["$[]="](1,str["$[]"](1).$to_sym())}else if("dstr"["$==="]($case)){$a=["dsym"],$b=str,$b["$type="].apply($b,$a),$a[$a.length-1]}else if("evstr"["$==="]($case)){str=self.$s("dsym",str)}return str});Opal.defn(self,"$new_evstr",function(str){var self=this;return self.$s("evstr",str)});Opal.defn(self,"$new_str",function(str){var $a,$b,$c,self=this;if(str!==false&&str!==nil){}else{return self.$s("str","")}if(($a=($b=($c=str.$size()["$=="](3))?str["$[]"](1)["$=="](""):str.$size()["$=="](3),$b!==false&&$b!==nil?str.$type()["$=="]("str"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){return str["$[]"](2)}else if(($a=($b=str.$type()["$=="]("str"))?$rb_gt(str.$size(),3):str.$type()["$=="]("str"))!==nil&&(!$a.$$is_boolean||$a==true)){$a=["dstr"],$b=str,$b["$type="].apply($b,$a),$a[$a.length-1];return str}else if(str.$type()["$=="]("evstr")){return self.$s("dstr","",str)}else{return str}});Opal.defn(self,"$new_regexp",function(reg,ending){var $a,$b,self=this,$case=nil;if(reg!==false&®!==nil){}else{return self.$s("regexp","")}return function(){$case=reg.$type();if("str"["$==="]($case)){return self.$s("regexp",reg["$[]"](1),self.$value(ending))}else if("evstr"["$==="]($case)){return self.$s("dregx","",reg)}else if("dstr"["$==="]($case)){$a=["dregx"],$b=reg,$b["$type="].apply($b,$a),$a[$a.length-1];return reg}else{return nil}}()});Opal.defn(self,"$str_append",function(str,str2){var self=this;if(str!==false&&str!==nil){}else{return str2}if(str2!==false&&str2!==nil){}else{return str}if(str.$type()["$=="]("evstr")){str=self.$s("dstr","",str)}else if(str.$type()["$=="]("str")){str=self.$s("dstr",str["$[]"](1))}str["$<<"](str2);return str});return(Opal.defn(self,"$new_str_content",function(tok){var self=this;return self.$s1("str",self.$value(tok),self.$source(tok))}),nil)&&"new_str_content"})($scope.base,$scope.get("Racc").$$scope.get("Parser"))}($scope.base)};Opal.modules["opal/fragment"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$attr_reader","$to_s","$line","$column","$inspect"]);return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $Fragment(){}var self=$Fragment=$klass($base,$super,"Fragment",$Fragment);var def=self.$$proto,$scope=self.$$scope;def.sexp=def.code=nil;self.$attr_reader("code");Opal.defn(self,"$initialize",function(code,sexp){var self=this;if(sexp==null){sexp=nil}self.code=code.$to_s();return self.sexp=sexp});Opal.defn(self,"$to_code",function(){var $a,self=this;if(($a=self.sexp)!==nil&&(!$a.$$is_boolean||$a==true)){return"/*:"+self.sexp.$line()+":"+self.sexp.$column()+"*/"+self.code}else{return self.code}});Opal.defn(self,"$inspect",function(){var self=this;return"f("+self.code.$inspect()+")"});Opal.defn(self,"$line",function(){var $a,self=this;if(($a=self.sexp)!==nil&&(!$a.$$is_boolean||$a==true)){return self.sexp.$line()}else{return nil}});return(Opal.defn(self,"$column",function(){var $a,self=this;if(($a=self.sexp)!==nil&&(!$a.$$is_boolean||$a==true)){return self.sexp.$column()}else{return nil}}),nil)&&"column"})($scope.base,null)}($scope.base)};Opal.modules["opal/nodes/helpers"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module;Opal.add_stubs(["$require","$valid_name?","$inspect","$=~","$!","$to_s","$valid_ivar_name?","$to_sym","$+","$indent","$to_proc","$compiler","$parser_indent","$push","$current_indent","$js_truthy_optimize","$with_temp","$fragment","$expr","$==","$type","$[]","$uses_block!","$scope","$block_name","$include?","$dup"]);self.$require("opal/regexp_anchors");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Helpers");var def=self.$$proto,$scope=self.$$scope,TMP_1;Opal.cdecl($scope,"ES51_RESERVED_WORD",new RegExp(""+$scope.get("REGEXP_START")+"(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)"+$scope.get("REGEXP_END")));Opal.cdecl($scope,"ES3_RESERVED_WORD_EXCLUSIVE",new RegExp(""+$scope.get("REGEXP_START")+"(?:int|byte|char|goto|long|final|float|short|double|native|throws|boolean|abstract|volatile|transient|synchronized)"+$scope.get("REGEXP_END")));Opal.cdecl($scope,"PROTO_SPECIAL_PROPS",new RegExp(""+$scope.get("REGEXP_START")+"(?:constructor|__proto__|__parent__|__noSuchMethod__|__count__)"+$scope.get("REGEXP_END")));Opal.cdecl($scope,"PROTO_SPECIAL_METHODS",new RegExp(""+$scope.get("REGEXP_START")+"(?:hasOwnProperty|valueOf)"+$scope.get("REGEXP_END")));Opal.cdecl($scope,"IMMUTABLE_PROPS",new RegExp(""+$scope.get("REGEXP_START")+"(?:NaN|Infinity|undefined)"+$scope.get("REGEXP_END")));Opal.cdecl($scope,"BASIC_IDENTIFIER_RULES",new RegExp(""+$scope.get("REGEXP_START")+"[$_a-z][$_a-z\\d]*"+$scope.get("REGEXP_END")));Opal.defn(self,"$property",function(name){var $a,self=this;if(($a=self["$valid_name?"](name))!==nil&&(!$a.$$is_boolean||$a==true)){return"."+name}else{return"["+name.$inspect()+"]"}});Opal.defn(self,"$valid_name?",function(name){var $a,$b,$c,self=this;return $a=$scope.get("BASIC_IDENTIFIER_RULES")["$=~"](name),$a!==false&&$a!==nil?(($b=($c=$scope.get("ES51_RESERVED_WORD")["$=~"](name))!==false&&$c!==nil?$c:$scope.get("ES3_RESERVED_WORD_EXCLUSIVE")["$=~"](name))!==false&&$b!==nil?$b:$scope.get("IMMUTABLE_PROPS")["$=~"](name))["$!"]():$a});Opal.defn(self,"$variable",function(name){var $a,self=this;if(($a=self["$valid_name?"](name.$to_s()))!==nil&&(!$a.$$is_boolean||$a==true)){return name}else{return""+name+"$"}});Opal.defn(self,"$valid_ivar_name?",function(name){var $a,self=this;return(($a=$scope.get("PROTO_SPECIAL_PROPS")["$=~"](name))!==false&&$a!==nil?$a:$scope.get("PROTO_SPECIAL_METHODS")["$=~"](name))["$!"]()});Opal.defn(self,"$ivar",function(name){var $a,self=this;if(($a=self["$valid_ivar_name?"](name.$to_s()))!==nil&&(!$a.$$is_boolean||$a==true)){return name}else{return""+name+"$"}});Opal.defn(self,"$lvar_to_js",function(var$){var $a,self=this;if(($a=self["$valid_name?"](var$.$to_s()))!==nil&&(!$a.$$is_boolean||$a==true)){}else{var$=""+var$+"$"}return var$.$to_sym()});Opal.defn(self,"$mid_to_jsid",function(mid){var $a,self=this;if(($a=/\=|\+|\-|\*|\/|\!|\?|<|\>|\&|\||\^|\%|\~|\[/["$=~"](mid.$to_s()))!==nil&&(!$a.$$is_boolean||$a==true)){return"['$"+mid+"']"}else{return $rb_plus(".$",mid)}});Opal.defn(self,"$indent",TMP_1=function(){var $a,$b,self=this,$iter=TMP_1.$$p,block=$iter||nil;TMP_1.$$p=null;return($a=($b=self.$compiler()).$indent,$a.$$p=block.$to_proc(),$a).call($b)});Opal.defn(self,"$current_indent",function(){var self=this;return self.$compiler().$parser_indent()});Opal.defn(self,"$line",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var strs=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){strs[arg_index]=arguments[arg_index+0]}self.$push("\n"+self.$current_indent());return($a=self).$push.apply($a,Opal.to_a(strs))});Opal.defn(self,"$empty_line",function(){var self=this;return self.$push("\n")});Opal.defn(self,"$js_truthy",function(sexp){var $a,$b,TMP_2,self=this,optimize=nil;if(($a=optimize=self.$js_truthy_optimize(sexp))!==nil&&(!$a.$$is_boolean||$a==true)){return optimize}return($a=($b=self).$with_temp,$a.$$p=(TMP_2=function(tmp){var self=TMP_2.$$s||this;if(tmp==null)tmp=nil;return[self.$fragment("(("+tmp+" = "),self.$expr(sexp),self.$fragment(") !== nil && (!"+tmp+".$$is_boolean || "+tmp+" == true))")]},TMP_2.$$s=self,TMP_2),$a).call($b)});Opal.defn(self,"$js_falsy",function(sexp){var $a,$b,TMP_3,self=this,mid=nil;if(sexp.$type()["$=="]("call")){mid=sexp["$[]"](2);if(mid["$=="]("block_given?")){self.$scope()["$uses_block!"]();return""+self.$scope().$block_name()+" === nil"}}return($a=($b=self).$with_temp,$a.$$p=(TMP_3=function(tmp){var self=TMP_3.$$s||this;if(tmp==null)tmp=nil;return[self.$fragment("(("+tmp+" = "),self.$expr(sexp),self.$fragment(") === nil || ("+tmp+".$$is_boolean && "+tmp+" == false))")]},TMP_3.$$s=self,TMP_3),$a).call($b)});Opal.defn(self,"$js_truthy_optimize",function(sexp){var $a,self=this,mid=nil;if(sexp.$type()["$=="]("call")){mid=sexp["$[]"](2);if(mid["$=="]("block_given?")){return self.$expr(sexp)}else if(($a=$scope.get("Compiler").$$scope.get("COMPARE")["$include?"](mid.$to_s()))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$expr(sexp)}else if(mid["$=="]("==")){return self.$expr(sexp)}else{return nil}}else if(($a=["lvar","self"]["$include?"](sexp.$type()))!==nil&&(!$a.$$is_boolean||$a==true)){return[self.$expr(sexp.$dup()),self.$fragment(" !== false && "),self.$expr(sexp.$dup()),self.$fragment(" !== nil")]}else{return nil}})})($scope.base)})($scope.base)}($scope.base)};Opal.modules["opal/nodes/base"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2,$range=Opal.range;Opal.add_stubs(["$require","$include","$each","$[]=","$handlers","$each_with_index","$define_method","$[]","$+","$attr_reader","$type","$compile","$raise","$is_a?","$fragment","$<<","$unshift","$reverse","$push","$new","$error","$scope","$s","$==","$process","$expr","$add_scope_local","$to_sym","$add_scope_ivar","$add_scope_gvar","$add_scope_temp","$helper","$with_temp","$to_proc","$in_while?","$instance_variable_get"]);self.$require("opal/nodes/helpers");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $Base(){}var self=$Base=$klass($base,$super,"Base",$Base);var def=self.$$proto,$scope=self.$$scope,TMP_6;def.sexp=def.fragments=def.compiler=def.level=nil;self.$include($scope.get("Helpers"));Opal.defs(self,"$handlers",function(){var $a,self=this;if(self.handlers==null)self.handlers=nil;return($a=self.handlers)!==false&&$a!==nil?$a:self.handlers=$hash2([],{})});Opal.defs(self,"$handle",function(){var $a,$b,TMP_1,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var types=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){types[arg_index]=arguments[arg_index+0]}return($a=($b=types).$each,$a.$$p=(TMP_1=function(type){var self=TMP_1.$$s||this;if(type==null)type=nil;return $scope.get("Base").$handlers()["$[]="](type,self)},TMP_1.$$s=self,TMP_1),$a).call($b)});Opal.defs(self,"$children",function(){var $a,$b,TMP_2,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var names=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){names[arg_index]=arguments[arg_index+0]}return($a=($b=names).$each_with_index,$a.$$p=(TMP_2=function(name,idx){var self=TMP_2.$$s||this,$a,$b,TMP_3;if(name==null)name=nil;if(idx==null)idx=nil;return($a=($b=self).$define_method,$a.$$p=(TMP_3=function(){var self=TMP_3.$$s||this;if(self.sexp==null)self.sexp=nil;return self.sexp["$[]"]($rb_plus(idx,1))},TMP_3.$$s=self,TMP_3),$a).call($b,name)},TMP_2.$$s=self,TMP_2),$a).call($b)});self.$attr_reader("compiler","type");Opal.defn(self,"$initialize",function(sexp,level,compiler){var self=this;self.sexp=sexp;self.type=sexp.$type();self.level=level;return self.compiler=compiler});Opal.defn(self,"$children",function(){var self=this;return self.sexp["$[]"]($range(1,-1,false))});Opal.defn(self,"$compile_to_fragments",function(){var $a,$b,self=this;if(($a=($b=self["fragments"],$b!=null&&$b!==nil)?"instance-variable":nil)!==nil&&(!$a.$$is_boolean||$a==true)){return self.fragments}self.fragments=[];self.$compile();return self.fragments});Opal.defn(self,"$compile",function(){var self=this;return self.$raise("Not Implemented")});Opal.defn(self,"$push",function(){var $a,$b,TMP_4,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var strs=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){strs[arg_index]=arguments[arg_index+0]}return($a=($b=strs).$each,$a.$$p=(TMP_4=function(str){var self=TMP_4.$$s||this,$a;if(self.fragments==null)self.fragments=nil;if(str==null)str=nil;if(($a=str["$is_a?"]($scope.get("String")))!==nil&&(!$a.$$is_boolean||$a==true)){str=self.$fragment(str)}return self.fragments["$<<"](str)},TMP_4.$$s=self,TMP_4),$a).call($b)});Opal.defn(self,"$unshift",function(){var $a,$b,TMP_5,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var strs=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){strs[arg_index]=arguments[arg_index+0]}return($a=($b=strs.$reverse()).$each,$a.$$p=(TMP_5=function(str){var self=TMP_5.$$s||this,$a;if(self.fragments==null)self.fragments=nil;if(str==null)str=nil;if(($a=str["$is_a?"]($scope.get("String")))!==nil&&(!$a.$$is_boolean||$a==true)){str=self.$fragment(str)}return self.fragments.$unshift(str)},TMP_5.$$s=self,TMP_5),$a).call($b)});Opal.defn(self,"$wrap",function(pre,post){var self=this;self.$unshift(pre);return self.$push(post)});Opal.defn(self,"$fragment",function(str){var self=this;return $scope.get("Opal").$$scope.get("Fragment").$new(str,self.sexp)});Opal.defn(self,"$error",function(msg){var self=this;return self.compiler.$error(msg)});Opal.defn(self,"$scope",function(){var self=this;return self.compiler.$scope()});Opal.defn(self,"$s",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}return($a=self.compiler).$s.apply($a,Opal.to_a(args))});Opal.defn(self,"$expr?",function(){var self=this;return self.level["$=="]("expr")});Opal.defn(self,"$recv?",function(){var self=this;return self.level["$=="]("recv")});Opal.defn(self,"$stmt?",function(){var self=this;return self.level["$=="]("stmt")});Opal.defn(self,"$process",function(sexp,level){var self=this;if(level==null){level="expr"}return self.compiler.$process(sexp,level)});Opal.defn(self,"$expr",function(sexp){var self=this;return self.compiler.$process(sexp,"expr")});Opal.defn(self,"$recv",function(sexp){var self=this;return self.compiler.$process(sexp,"recv")});Opal.defn(self,"$stmt",function(sexp){var self=this;return self.compiler.$process(sexp,"stmt")});Opal.defn(self,"$expr_or_nil",function(sexp){var self=this;if(sexp!==false&&sexp!==nil){return self.$expr(sexp)}else{return"nil"}});Opal.defn(self,"$add_local",function(name){var self=this;return self.$scope().$add_scope_local(name.$to_sym())});Opal.defn(self,"$add_ivar",function(name){var self=this;return self.$scope().$add_scope_ivar(name)});Opal.defn(self,"$add_gvar",function(name){ | |
var self=this;return self.$scope().$add_scope_gvar(name)});Opal.defn(self,"$add_temp",function(temp){var self=this;return self.$scope().$add_scope_temp(temp)});Opal.defn(self,"$helper",function(name){var self=this;return self.compiler.$helper(name)});Opal.defn(self,"$with_temp",TMP_6=function(){var $a,$b,self=this,$iter=TMP_6.$$p,block=$iter||nil;TMP_6.$$p=null;return($a=($b=self.compiler).$with_temp,$a.$$p=block.$to_proc(),$a).call($b)});Opal.defn(self,"$in_while?",function(){var self=this;return self.compiler["$in_while?"]()});return(Opal.defn(self,"$while_loop",function(){var self=this;return self.compiler.$instance_variable_get("@while_loop")}),nil)&&"while_loop"})($scope.base,null)})($scope.base)}($scope.base)};Opal.modules["opal/nodes/literal"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2,$gvars=Opal.gvars;Opal.add_stubs(["$require","$handle","$push","$to_s","$type","$children","$value","$recv?","$wrap","$join","$keys","$gsub","$even?","$length","$+","$chop","$[]","$translate_escape_chars","$inspect","$===","$new","$flags","$each_line","$==","$s","$source=","$line","$include","$stmt?","$!","$include?","$compile_split_lines","$needs_semicolon?","$each_with_index","$expr","$raise","$last","$each","$requires_semicolon","$helper","$start","$finish"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ValueNode(){}var self=$ValueNode=$klass($base,$super,"ValueNode",$ValueNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("true","false","self","nil");return(Opal.defn(self,"$compile",function(){var self=this;return self.$push(self.$type().$to_s())}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $NumericNode(){}var self=$NumericNode=$klass($base,$super,"NumericNode",$NumericNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("int","float");self.$children("value");return(Opal.defn(self,"$compile",function(){var $a,self=this;self.$push(self.$value().$to_s());if(($a=self["$recv?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(",")")}else{return nil}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $StringNode(){}var self=$StringNode=$klass($base,$super,"StringNode",$StringNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("str");self.$children("value");Opal.cdecl($scope,"ESCAPE_CHARS",$hash2(["a","e"],{a:"\\u0007",e:"\\u001b"}));Opal.cdecl($scope,"ESCAPE_REGEX",new RegExp("(\\\\+)(["+$scope.get("ESCAPE_CHARS").$keys().$join("")+"])"));Opal.defn(self,"$translate_escape_chars",function(inspect_string){var $a,$b,TMP_1,self=this;return($a=($b=inspect_string).$gsub,$a.$$p=(TMP_1=function(original){var self=TMP_1.$$s||this,$a,$b;if(original==null)original=nil;if(($a=(($b=$gvars["~"])===nil?nil:$b["$[]"](1)).$length()["$even?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return original}else{return $rb_plus((($a=$gvars["~"])===nil?nil:$a["$[]"](1)).$chop(),$scope.get("ESCAPE_CHARS")["$[]"](($a=$gvars["~"])===nil?nil:$a["$[]"](2)))}},TMP_1.$$s=self,TMP_1),$a).call($b,$scope.get("ESCAPE_REGEX"))});return(Opal.defn(self,"$compile",function(){var self=this;return self.$push(self.$translate_escape_chars(self.$value().$inspect()))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $SymbolNode(){}var self=$SymbolNode=$klass($base,$super,"SymbolNode",$SymbolNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("sym");self.$children("value");return(Opal.defn(self,"$compile",function(){var self=this;return self.$push(self.$value().$to_s().$inspect())}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $RegexpNode(){}var self=$RegexpNode=$klass($base,$super,"RegexpNode",$RegexpNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("regexp");self.$children("value","flags");return(Opal.defn(self,"$compile",function(){var self=this,$case=nil,message=nil;return function(){$case=self.$value();if(""["$==="]($case)){return self.$push("/(?:)/")}else if(/\?<\w+\>/["$==="]($case)){message="named captures are not supported in javascript: "+self.$value().$inspect();return self.$push("self.$raise(new SyntaxError('"+message+"'))")}else{return self.$push(""+$scope.get("Regexp").$new(self.$value()).$inspect()+self.$flags())}}()}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base){var self=$module($base,"XStringLineSplitter");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$compile_split_lines",function(value,sexp){var $a,$b,TMP_2,self=this,idx=nil;idx=0;return($a=($b=value).$each_line,$a.$$p=(TMP_2=function(line){var self=TMP_2.$$s||this,$a,$b,line_sexp=nil,frag=nil;if(line==null)line=nil;if(idx["$=="](0)){self.$push(line)}else{line_sexp=self.$s();$a=[[$rb_plus(sexp.$line(),idx),0]],$b=line_sexp,$b["$source="].apply($b,$a),$a[$a.length-1];frag=$scope.get("Fragment").$new(line,line_sexp);self.$push(frag)}return idx=$rb_plus(idx,1)},TMP_2.$$s=self,TMP_2),$a).call($b)})})($scope.base);(function($base,$super){function $XStringNode(){}var self=$XStringNode=$klass($base,$super,"XStringNode",$XStringNode);var def=self.$$proto,$scope=self.$$scope;def.sexp=nil;self.$include($scope.get("XStringLineSplitter"));self.$handle("xstr");self.$children("value");Opal.defn(self,"$needs_semicolon?",function(){var $a,self=this;return $a=self["$stmt?"](),$a!==false&&$a!==nil?self.$value().$to_s()["$include?"](";")["$!"]():$a});Opal.defn(self,"$compile",function(){var $a,self=this;self.$compile_split_lines(self.$value().$to_s(),self.sexp);if(($a=self["$needs_semicolon?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$push(";")}if(($a=self["$recv?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(",")")}else{return nil}});return(Opal.defn(self,"$start_line",function(){var self=this;return self.sexp.$line()}),nil)&&"start_line"})($scope.base,$scope.get("Base"));(function($base,$super){function $DynamicStringNode(){}var self=$DynamicStringNode=$klass($base,$super,"DynamicStringNode",$DynamicStringNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("dstr");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_3,self=this;return($a=($b=self.$children()).$each_with_index,$a.$$p=(TMP_3=function(part,idx){var self=TMP_3.$$s||this,$a;if(part==null)part=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(" + ")}if(($a=$scope.get("String")["$==="](part))!==nil&&(!$a.$$is_boolean||$a==true)){self.$push(part.$inspect())}else if(part.$type()["$=="]("evstr")){self.$push("(");self.$push(self.$expr(part["$[]"](1)));self.$push(")")}else if(part.$type()["$=="]("str")){self.$push(part["$[]"](1).$inspect())}else if(part.$type()["$=="]("dstr")){self.$push("(");self.$push(self.$expr(part));self.$push(")")}else{self.$raise("Bad dstr part "+part.$inspect())}if(($a=self["$recv?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(",")")}else{return nil}},TMP_3.$$s=self,TMP_3),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $DynamicSymbolNode(){}var self=$DynamicSymbolNode=$klass($base,$super,"DynamicSymbolNode",$DynamicSymbolNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("dsym");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_4,self=this;($a=($b=self.$children()).$each_with_index,$a.$$p=(TMP_4=function(part,idx){var self=TMP_4.$$s||this,$a;if(part==null)part=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(" + ")}if(($a=$scope.get("String")["$==="](part))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push(part.$inspect())}else if(part.$type()["$=="]("evstr")){return self.$push(self.$expr(self.$s("call",part.$last(),"to_s",self.$s("arglist"))))}else if(part.$type()["$=="]("str")){return self.$push(part.$last().$inspect())}else{return self.$raise("Bad dsym part")}},TMP_4.$$s=self,TMP_4),$a).call($b);return self.$wrap("(",")")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $DynamicXStringNode(){}var self=$DynamicXStringNode=$klass($base,$super,"DynamicXStringNode",$DynamicXStringNode);var def=self.$$proto,$scope=self.$$scope;self.$include($scope.get("XStringLineSplitter"));self.$handle("dxstr");Opal.defn(self,"$requires_semicolon",function(code){var $a,self=this;return $a=self["$stmt?"](),$a!==false&&$a!==nil?code["$include?"](";")["$!"]():$a});return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_5,self=this,needs_semicolon=nil;needs_semicolon=false;($a=($b=self.$children()).$each,$a.$$p=(TMP_5=function(part){var self=TMP_5.$$s||this,$a;if(self.sexp==null)self.sexp=nil;if(part==null)part=nil;if(($a=$scope.get("String")["$==="](part))!==nil&&(!$a.$$is_boolean||$a==true)){self.$compile_split_lines(part.$to_s(),self.sexp);if(($a=self.$requires_semicolon(part.$to_s()))!==nil&&(!$a.$$is_boolean||$a==true)){return needs_semicolon=true}else{return nil}}else if(part.$type()["$=="]("evstr")){return self.$push(self.$expr(part["$[]"](1)))}else if(part.$type()["$=="]("str")){self.$compile_split_lines(part.$last().$to_s(),part);if(($a=self.$requires_semicolon(part.$last().$to_s()))!==nil&&(!$a.$$is_boolean||$a==true)){return needs_semicolon=true}else{return nil}}else{return self.$raise("Bad dxstr part")}},TMP_5.$$s=self,TMP_5),$a).call($b);if(needs_semicolon!==false&&needs_semicolon!==nil){self.$push(";")}if(($a=self["$recv?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(",")")}else{return nil}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $DynamicRegexpNode(){}var self=$DynamicRegexpNode=$klass($base,$super,"DynamicRegexpNode",$DynamicRegexpNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("dregx");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_6,self=this;($a=($b=self.$children()).$each_with_index,$a.$$p=(TMP_6=function(part,idx){var self=TMP_6.$$s||this,$a;if(part==null)part=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(" + ")}if(($a=$scope.get("String")["$==="](part))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push(part.$inspect())}else if(part.$type()["$=="]("str")){return self.$push(part["$[]"](1).$inspect())}else{return self.$push(self.$expr(part["$[]"](1)))}},TMP_6.$$s=self,TMP_6),$a).call($b);return self.$wrap("(new RegExp(","))")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $InclusiveRangeNode(){}var self=$InclusiveRangeNode=$klass($base,$super,"InclusiveRangeNode",$InclusiveRangeNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("irange");self.$children("start","finish");return(Opal.defn(self,"$compile",function(){var self=this;self.$helper("range");return self.$push("$range(",self.$expr(self.$start()),", ",self.$expr(self.$finish()),", false)")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ExclusiveRangeNode(){}var self=$ExclusiveRangeNode=$klass($base,$super,"ExclusiveRangeNode",$ExclusiveRangeNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("erange");self.$children("start","finish");return(Opal.defn(self,"$compile",function(){var self=this;self.$helper("range");return self.$push("$range(",self.$expr(self.$start()),", ",self.$expr(self.$finish()),", true)")}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/variables"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$irb?","$compiler","$top?","$scope","$using_irb?","$push","$variable","$to_s","$var_name","$with_temp","$property","$wrap","$add_local","$expr","$value","$recv?","$[]","$name","$ivar","$add_ivar","$helper","$==","$handle_global_match","$handle_post_match","$handle_pre_match","$add_gvar","$index"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $LocalVariableNode(){}var self=$LocalVariableNode=$klass($base,$super,"LocalVariableNode",$LocalVariableNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("lvar");self.$children("var_name");Opal.defn(self,"$using_irb?",function(){var $a,self=this;return $a=self.$compiler()["$irb?"](),$a!==false&&$a!==nil?self.$scope()["$top?"]():$a});return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this;if(($a=self["$using_irb?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{return self.$push(self.$variable(self.$var_name().$to_s()))}return($a=($b=self).$with_temp,$a.$$p=(TMP_1=function(tmp){var self=TMP_1.$$s||this;if(tmp==null)tmp=nil;self.$push(self.$property(self.$var_name().$to_s()));return self.$wrap("(("+tmp+" = Opal.irb_vars",") == null ? nil : "+tmp+")")},TMP_1.$$s=self,TMP_1),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $LocalAssignNode(){}var self=$LocalAssignNode=$klass($base,$super,"LocalAssignNode",$LocalAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("lasgn");self.$children("var_name","value");Opal.defn(self,"$using_irb?",function(){var $a,self=this;return $a=self.$compiler()["$irb?"](),$a!==false&&$a!==nil?self.$scope()["$top?"]():$a});return(Opal.defn(self,"$compile",function(){var $a,self=this;if(($a=self["$using_irb?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$push("Opal.irb_vars"+self.$property(self.$var_name().$to_s())+" = ")}else{self.$add_local(self.$variable(self.$var_name().$to_s()));self.$push(""+self.$variable(self.$var_name().$to_s())+" = ")}self.$push(self.$expr(self.$value()));if(($a=self["$recv?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(",")")}else{return nil}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $InstanceVariableNode(){}var self=$InstanceVariableNode=$klass($base,$super,"InstanceVariableNode",$InstanceVariableNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("ivar");self.$children("name");Opal.defn(self,"$var_name",function(){var self=this;return self.$name().$to_s()["$[]"]($range(1,-1,false))});return(Opal.defn(self,"$compile",function(){var self=this,name=nil;name=self.$property(self.$ivar(self.$var_name()));self.$add_ivar(name);return self.$push("self"+name)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $InstanceAssignNode(){}var self=$InstanceAssignNode=$klass($base,$super,"InstanceAssignNode",$InstanceAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("iasgn");self.$children("name","value");Opal.defn(self,"$var_name",function(){var self=this;return self.$name().$to_s()["$[]"]($range(1,-1,false))});return(Opal.defn(self,"$compile",function(){var self=this,name=nil;name=self.$property(self.$ivar(self.$var_name()));self.$push("self"+name+" = ");return self.$push(self.$expr(self.$value()))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $GlobalVariableNode(){}var self=$GlobalVariableNode=$klass($base,$super,"GlobalVariableNode",$GlobalVariableNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("gvar");self.$children("name");Opal.defn(self,"$var_name",function(){var self=this;return self.$name().$to_s()["$[]"]($range(1,-1,false))});Opal.defn(self,"$compile",function(){var self=this,name=nil;self.$helper("gvars");if(self.$var_name()["$=="]("&")){return self.$handle_global_match()}else if(self.$var_name()["$=="]("'")){return self.$handle_post_match()}else if(self.$var_name()["$=="]("`")){return self.$handle_pre_match()}name=self.$property(self.$var_name());self.$add_gvar(name);return self.$push("$gvars"+name)});Opal.defn(self,"$handle_global_match",function(){var $a,$b,TMP_2,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_2=function(tmp){var self=TMP_2.$$s||this;if(tmp==null)tmp=nil;return self.$push("(("+tmp+" = $gvars['~']) === nil ? nil : "+tmp+"['$[]'](0))")},TMP_2.$$s=self,TMP_2),$a).call($b)});Opal.defn(self,"$handle_pre_match",function(){var $a,$b,TMP_3,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_3=function(tmp){var self=TMP_3.$$s||this;if(tmp==null)tmp=nil;return self.$push("(("+tmp+" = $gvars['~']) === nil ? nil : "+tmp+".$pre_match())")},TMP_3.$$s=self,TMP_3),$a).call($b)});return(Opal.defn(self,"$handle_post_match",function(){var $a,$b,TMP_4,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_4=function(tmp){var self=TMP_4.$$s||this;if(tmp==null)tmp=nil;return self.$push("(("+tmp+" = $gvars['~']) === nil ? nil : "+tmp+".$post_match())")},TMP_4.$$s=self,TMP_4),$a).call($b)}),nil)&&"handle_post_match"})($scope.base,$scope.get("Base"));(function($base,$super){function $GlobalAssignNode(){}var self=$GlobalAssignNode=$klass($base,$super,"GlobalAssignNode",$GlobalAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("gasgn");self.$children("name","value");Opal.defn(self,"$var_name",function(){var self=this;return self.$name().$to_s()["$[]"]($range(1,-1,false))});return(Opal.defn(self,"$compile",function(){var self=this,name=nil;self.$helper("gvars");name=self.$property(self.$var_name());self.$push("$gvars"+name+" = ");return self.$push(self.$expr(self.$value()))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $BackrefNode(){}var self=$BackrefNode=$klass($base,$super,"BackrefNode",$BackrefNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("nth_ref");self.$children("index");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_5,self=this;self.$helper("gvars");return($a=($b=self).$with_temp,$a.$$p=(TMP_5=function(tmp){var self=TMP_5.$$s||this;if(tmp==null)tmp=nil;return self.$push("(("+tmp+" = $gvars['~']) === nil ? nil : "+tmp+"['$[]']("+self.$index()+"))")},TMP_5.$$s=self,TMP_5),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ClassVariableNode(){}var self=$ClassVariableNode=$klass($base,$super,"ClassVariableNode",$ClassVariableNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("cvar");self.$children("name");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_6,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_6=function(tmp){var self=TMP_6.$$s||this;if(tmp==null)tmp=nil;return self.$push("(("+tmp+" = Opal.cvars['"+self.$name()+"']) == null ? nil : "+tmp+")")},TMP_6.$$s=self,TMP_6),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ClassVarAssignNode(){}var self=$ClassVarAssignNode=$klass($base,$super,"ClassVarAssignNode",$ClassVarAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("casgn");self.$children("name","value");return(Opal.defn(self,"$compile",function(){var self=this;self.$push("(Opal.cvars['"+self.$name()+"'] = ");self.$push(self.$expr(self.$value()));return self.$push(")")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ClassVarDeclNode(){}var self=$ClassVarDeclNode=$klass($base,$super,"ClassVarDeclNode",$ClassVarDeclNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("cvdecl");self.$children("name","value");return(Opal.defn(self,"$compile",function(){var self=this;self.$push("(Opal.cvars['"+self.$name()+"'] = ");self.$push(self.$expr(self.$value()));return self.$push(")")}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/constants"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$==","$name","$eof_content","$compiler","$push","$expr","$base","$wrap","$value"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ConstNode(){}var self=$ConstNode=$klass($base,$super,"ConstNode",$ConstNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("const");self.$children("name");return(Opal.defn(self,"$compile",function(){var $a,$b,self=this;if(($a=($b=self.$name()["$=="]("DATA"))?self.$compiler().$eof_content():self.$name()["$=="]("DATA"))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("$__END__")}else{return self.$push("$scope.get('"+self.$name()+"')")}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ConstDeclarationNode(){}var self=$ConstDeclarationNode=$klass($base,$super,"ConstDeclarationNode",$ConstDeclarationNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("cdecl");self.$children("name","base");return(Opal.defn(self,"$compile",function(){var self=this;self.$push(self.$expr(self.$base()));return self.$wrap("Opal.cdecl($scope, '"+self.$name()+"', ",")")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ConstAssignNode(){}var self=$ConstAssignNode=$klass($base,$super,"ConstAssignNode",$ConstAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("casgn");self.$children("base","name","value");return(Opal.defn(self,"$compile",function(){var self=this;self.$push("Opal.casgn(");self.$push(self.$expr(self.$base()));self.$push(", '"+self.$name()+"', ");self.$push(self.$expr(self.$value()));return self.$push(")")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ConstGetNode(){}var self=$ConstGetNode=$klass($base,$super,"ConstGetNode",$ConstGetNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("colon2");self.$children("base","name");return(Opal.defn(self,"$compile",function(){var self=this;self.$push("((");self.$push(self.$expr(self.$base()));return self.$push(").$$scope.get('"+self.$name()+"'))")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $TopConstNode(){}var self=$TopConstNode=$klass($base,$super,"TopConstNode",$TopConstNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("colon3");self.$children("name");return(Opal.defn(self,"$compile",function(){var self=this;return self.$push("Opal.get('"+self.$name()+"')")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $TopConstAssignNode(){}var self=$TopConstAssignNode=$klass($base,$super,"TopConstAssignNode",$TopConstAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("casgn3");self.$children("name","value");return(Opal.defn(self,"$compile",function(){var self=this;self.$push("Opal.casgn(Opal.Object, '"+self.$name()+"', ");self.$push(self.$expr(self.$value()));return self.$push(")")}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["pathname"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$module=Opal.module;Opal.add_stubs(["$==","$raise","$attr_reader","$path","$start_with?","$!","$absolute?","$sub","$new"]);(function($base,$super){function $Pathname(){}var self=$Pathname=$klass($base,$super,"Pathname",$Pathname);var def=self.$$proto,$scope=self.$$scope;def.path=nil;Opal.defn(self,"$initialize",function(path){var self=this;if(path["$=="]("\x00")){self.$raise($scope.get("ArgumentError"))}return self.path=path});self.$attr_reader("path");Opal.defn(self,"$==",function(other){var self=this;return other.$path()["$=="](self.path)});Opal.defn(self,"$absolute?",function(){var self=this;return self.path["$start_with?"]("/")});Opal.defn(self,"$relative?",function(){var self=this;return self["$absolute?"]()["$!"]()});Opal.defn(self,"$root?",function(){var self=this;return self.path["$=="]("/")});Opal.defn(self,"$parent",function(){var $a,self=this,new_path=nil;new_path=self.path.$sub(/\/([^\/]+\/?$)/,"");if(new_path["$=="]("")){new_path=function(){if(($a=self["$absolute?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return"/"}else{return"."}return nil}()}return $scope.get("Pathname").$new(new_path)});Opal.defn(self,"$sub",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}return $scope.get("Pathname").$new(($a=self.path).$sub.apply($a,Opal.to_a(args)))});Opal.defn(self,"$cleanpath",function(){var self=this;return Opal.normalize_loadable_path(self.path)});Opal.defn(self,"$to_path",function(){var self=this;return self.path});Opal.defn(self,"$hash",function(){var self=this;return self.path});Opal.alias(self,"to_str","to_path");return Opal.alias(self,"to_s","to_path")})($scope.base,null);return function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$Pathname",function(path){var self=this;return $scope.get("Pathname").$new(path)})}($scope.base)};Opal.modules["opal/nodes/runtime_helpers"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$new","$children","$==","$include?","$to_sym","$<<","$define_method","$to_proc","$meth","$__send__","$raise","$helper","$[]","$arglist","$js_truthy","$js_falsy"]);self.$require("set");self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $RuntimeHelpers(){}var self=$RuntimeHelpers=$klass($base,$super,"RuntimeHelpers",$RuntimeHelpers);var def=self.$$proto,$scope=self.$$scope,TMP_1,$a,$b,TMP_2,$c,TMP_3;Opal.cdecl($scope,"HELPERS",$scope.get("Set").$new());self.$children("recvr","meth","arglist");Opal.defs(self,"$compatible?",function(recvr,meth,arglist){var $a,self=this;return($a=recvr["$=="](["const","Opal"]))?$scope.get("HELPERS")["$include?"](meth.$to_sym()):recvr["$=="](["const","Opal"])});Opal.defs(self,"$helper",TMP_1=function(name){var $a,$b,self=this,$iter=TMP_1.$$p,block=$iter||nil;TMP_1.$$p=null;$scope.get("HELPERS")["$<<"](name);return($a=($b=self).$define_method,$a.$$p=block.$to_proc(),$a).call($b,"compile_"+name)});Opal.defn(self,"$compile",function(){var $a,self=this;if(($a=$scope.get("HELPERS")["$include?"](self.$meth().$to_sym()))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$__send__("compile_"+self.$meth())}else{return self.$raise("Helper not supported: "+self.$meth())}});($a=($b=self).$helper,$a.$$p=(TMP_2=function(){var self=TMP_2.$$s||this,$a,sexp=nil;if(($a=sexp=self.$arglist()["$[]"](1))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise("truthy? requires an object")}return self.$js_truthy(sexp)},TMP_2.$$s=self,TMP_2),$a).call($b,"truthy?");return($a=($c=self).$helper,$a.$$p=(TMP_3=function(){var self=TMP_3.$$s||this,$a,sexp=nil;if(($a=sexp=self.$arglist()["$[]"](1))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise("falsy? requires an object")}return self.$js_falsy(sexp)},TMP_3.$$s=self,TMP_3),$a).call($c,"falsy?")})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/call"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$[]=","$define_method","$to_proc","$handle_special","$compile_default?","$record_method?","$<<","$method_calls","$compiler","$to_sym","$meth","$using_irb?","$compile_irb_var","$default_compile","$mid_to_jsid","$to_s","$any?","$==","$first","$[]","$arglist","$===","$last","$type","$pop","$iter","$new_temp","$scope","$expr","$recv","$recv_sexp","$s","$!","$insert","$push","$unshift","$queue_temp","$recvr","$=~","$with_temp","$variable","$intern","$+","$irb?","$top?","$nil?","$include?","$__send__","$compatible?","$compile","$new","$each","$add_special","$inline_operators?","$operator_helpers","$fragment","$compile_default!","$resolve","$requires","$file","$dirname","$cleanpath","$join","$Pathname","$inspect","$process","$class_scope?","$required_trees","$handle_block_given_call","$def?","$mid","$handle_part","$map","$expand_path","$split","$dynamic_require_severity","$error","$line","$warning","$inject"]);self.$require("set");self.$require("pathname");self.$require("opal/nodes/base");self.$require("opal/nodes/runtime_helpers");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $CallNode(){}var self=$CallNode=$klass($base,$super,"CallNode",$CallNode);var def=self.$$proto,$scope=self.$$scope,TMP_1,$a,$b,TMP_6,$c,TMP_8,$d,TMP_9,$e,TMP_10,$f,TMP_11,$g,TMP_12,$h,TMP_13,$i,TMP_14,$j,TMP_15;def.assignment=def.compiler=def.sexp=def.level=def.compile_default=nil;self.$handle("call");self.$children("recvr","meth","arglist","iter");Opal.cdecl($scope,"SPECIALS",$hash2([],{}));Opal.cdecl($scope,"OPERATORS",$hash2(["+","-","*","/","<","<=",">",">="],{"+":"plus","-":"minus","*":"times","/":"divide","<":"lt","<=":"le",">":"gt",">=":"ge"}));Opal.defs(self,"$add_special",TMP_1=function(name,options){var $a,$b,self=this,$iter=TMP_1.$$p,handler=$iter||nil;if(options==null){options=$hash2([],{})}TMP_1.$$p=null;$scope.get("SPECIALS")["$[]="](name,options);return($a=($b=self).$define_method,$a.$$p=handler.$to_proc(),$a).call($b,"handle_"+name)});Opal.defn(self,"$compile",function(){var $a,self=this;self.$handle_special();if(($a=self["$compile_default?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{return nil}if(($a=self["$record_method?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$compiler().$method_calls()["$<<"](self.$meth().$to_sym())}if(($a=self["$using_irb?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compile_irb_var()}return self.$default_compile()});Opal.defn(self,"$record_method?",function(){var self=this;return true});Opal.defn(self,"$default_compile",function(){var $a,$b,TMP_2,$c,self=this,mid=nil,splat=nil,block=nil,blktmp=nil,tmprecv=nil,recv_code=nil,call_recv=nil,args=nil;mid=self.$mid_to_jsid(self.$meth().$to_s());splat=($a=($b=self.$arglist()["$[]"]($range(1,-1,false)))["$any?"],$a.$$p=(TMP_2=function(a){var self=TMP_2.$$s||this;if(a==null)a=nil;return a.$first()["$=="]("splat")},TMP_2.$$s=self,TMP_2),$a).call($b);if(($a=($c=$scope.get("Sexp")["$==="](self.$arglist().$last()),$c!==false&&$c!==nil?self.$arglist().$last().$type()["$=="]("block_pass"):$c))!==nil&&(!$a.$$is_boolean||$a==true)){block=self.$arglist().$pop()}else if(($a=self.$iter())!==nil&&(!$a.$$is_boolean||$a==true)){block=self.$iter()}if(block!==false&&block!==nil){blktmp=self.$scope().$new_temp()}if(($a=($c=splat)!==false&&$c!==nil?$c:blktmp)!==nil&&(!$a.$$is_boolean||$a==true)){ | |
tmprecv=self.$scope().$new_temp()}if(block!==false&&block!==nil){block=self.$expr(block)}recv_code=self.$recv(self.$recv_sexp());call_recv=self.$s("js_tmp",($a=tmprecv)!==false&&$a!==nil?$a:recv_code);if(($a=($c=blktmp!==false&&blktmp!==nil)?splat["$!"]():blktmp)!==nil&&(!$a.$$is_boolean||$a==true)){self.$arglist().$insert(1,call_recv)}args=self.$expr(self.$arglist());if(tmprecv!==false&&tmprecv!==nil){self.$push("("+tmprecv+" = ",recv_code,")"+mid)}else{self.$push(recv_code,mid)}if(blktmp!==false&&blktmp!==nil){self.$unshift("("+blktmp+" = ");self.$push(", "+blktmp+".$$p = ",block,", "+blktmp+")")}if(splat!==false&&splat!==nil){self.$push(".apply(",($a=tmprecv)!==false&&$a!==nil?$a:recv_code,", ",args,")")}else if(blktmp!==false&&blktmp!==nil){self.$push(".call(",args,")")}else{self.$push("(",args,")")}if(blktmp!==false&&blktmp!==nil){return self.$scope().$queue_temp(blktmp)}else{return nil}});Opal.defn(self,"$recv_sexp",function(){var $a,self=this;return($a=self.$recvr())!==false&&$a!==nil?$a:self.$s("self")});Opal.defn(self,"$attr_assignment?",function(){var $a,self=this;return($a=self.assignment)!==false&&$a!==nil?$a:self.assignment=self.$meth().$to_s()["$=~"](new RegExp(""+$scope.get("REGEXP_START")+"[\\da-z]+\\="+$scope.get("REGEXP_END")))});Opal.defn(self,"$compile_irb_var",function(){var $a,$b,TMP_3,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_3=function(tmp){var self=TMP_3.$$s||this,lvar=nil,call=nil;if(tmp==null)tmp=nil;lvar=self.$variable(self.$meth());call=self.$s("call",self.$s("self"),self.$meth().$intern(),self.$s("arglist"));return self.$push("(("+tmp+" = Opal.irb_vars."+lvar+") == null ? ",self.$expr(call)," : "+tmp+")")},TMP_3.$$s=self,TMP_3),$a).call($b)});Opal.defn(self,"$compile_assignment",function(){var $a,$b,TMP_4,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_4=function(args_tmp){var self=TMP_4.$$s||this,$a,$b,TMP_5;if(args_tmp==null)args_tmp=nil;return($a=($b=self).$with_temp,$a.$$p=(TMP_5=function(recv_tmp){var self=TMP_5.$$s||this,args=nil,mid=nil;if(recv_tmp==null)recv_tmp=nil;args=self.$expr(self.$arglist());mid=self.$mid_to_jsid(self.$meth().$to_s());return self.$push("(("+args_tmp+" = [",args,$rb_plus("]), ",""+recv_tmp+" = "),self.$recv(self.$recv_sexp()),", ",recv_tmp,mid,$rb_plus(".apply("+recv_tmp+", "+args_tmp+"), ",""+args_tmp+"["+args_tmp+".length-1])"))},TMP_5.$$s=self,TMP_5),$a).call($b)},TMP_4.$$s=self,TMP_4),$a).call($b)});Opal.defn(self,"$using_irb?",function(){var $a,$b,$c,$d,self=this;return $a=($b=($c=($d=self.compiler["$irb?"](),$d!==false&&$d!==nil?self.$scope()["$top?"]():$d),$c!==false&&$c!==nil?self.$arglist()["$=="](self.$s("arglist")):$c),$b!==false&&$b!==nil?self.$recvr()["$nil?"]():$b),$a!==false&&$a!==nil?self.$iter()["$nil?"]():$a});Opal.defn(self,"$handle_special",function(){var $a,self=this;self.compile_default=true;if(($a=$scope.get("SPECIALS")["$include?"](self.$meth()))!==nil&&(!$a.$$is_boolean||$a==true)){self.compile_default=false;return self.$__send__("handle_"+self.$meth())}else if(($a=$scope.get("RuntimeHelpers")["$compatible?"](self.$recvr(),self.$meth(),self.$arglist()))!==nil&&(!$a.$$is_boolean||$a==true)){self.compile_default=false;return self.$push($scope.get("RuntimeHelpers").$new(self.sexp,self.level,self.compiler).$compile())}else{return nil}});Opal.defn(self,"$compile_default!",function(){var self=this;return self.compile_default=true});Opal.defn(self,"$compile_default?",function(){var self=this;return self.compile_default});($a=($b=$scope.get("OPERATORS")).$each,$a.$$p=(TMP_6=function(operator,name){var self=TMP_6.$$s||this,$a,$b,TMP_7;if(operator==null)operator=nil;if(name==null)name=nil;return($a=($b=self).$add_special,$a.$$p=(TMP_7=function(){var self=TMP_7.$$s||this,$a,lhs=nil,rhs=nil;if(($a=self.$compiler()["$inline_operators?"]())!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=self["$record_method?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$compiler().$method_calls()["$<<"](operator.$to_sym())}self.$compiler().$operator_helpers()["$<<"](operator.$to_sym());$a=[self.$expr(self.$recvr()),self.$expr(self.$arglist()["$[]"](1))],lhs=$a[0],rhs=$a[1];self.$push(self.$fragment("$rb_"+name+"("));self.$push(lhs);self.$push(self.$fragment(", "));self.$push(rhs);return self.$push(self.$fragment(")"))}else{return self["$compile_default!"]()}},TMP_7.$$s=self,TMP_7),$a).call($b,operator.$to_sym())},TMP_6.$$s=self,TMP_6),$a).call($b);($a=($c=self).$add_special,$a.$$p=(TMP_8=function(){var self=TMP_8.$$s||this,$a,str=nil;self["$compile_default!"]();str=$scope.get("DependencyResolver").$new(self.$compiler(),self.$arglist()["$[]"](1)).$resolve();if(($a=str["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$compiler().$requires()["$<<"](str)}return self.$push(self.$fragment(""))},TMP_8.$$s=self,TMP_8),$a).call($c,"require");($a=($d=self).$add_special,$a.$$p=(TMP_9=function(){var self=TMP_9.$$s||this,arg=nil,file=nil,dir=nil;arg=self.$arglist()["$[]"](1);file=self.$compiler().$file();if(arg["$[]"](0)["$=="]("str")){dir=$scope.get("File").$dirname(file);self.$compiler().$requires()["$<<"](self.$Pathname(dir).$join(arg["$[]"](1)).$cleanpath().$to_s())}self.$push(self.$fragment("self.$require("+file.$inspect()+"+ '/../' + "));self.$push(self.$process(self.$arglist()));return self.$push(self.$fragment(")"))},TMP_9.$$s=self,TMP_9),$a).call($d,"require_relative");($a=($e=self).$add_special,$a.$$p=(TMP_10=function(){var self=TMP_10.$$s||this,$a,str=nil;if(($a=self.$scope()["$class_scope?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self["$compile_default!"]();str=$scope.get("DependencyResolver").$new(self.$compiler(),self.$arglist()["$[]"](2)).$resolve();if(($a=str["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$compiler().$requires()["$<<"](str)}return self.$push(self.$fragment(""))}else{return nil}},TMP_10.$$s=self,TMP_10),$a).call($e,"autoload");($a=($f=self).$add_special,$a.$$p=(TMP_11=function(){var self=TMP_11.$$s||this,arg=nil,relative_path=nil,dir=nil,full_path=nil;arg=self.$arglist()["$[]"](1);if(arg["$[]"](0)["$=="]("str")){relative_path=arg["$[]"](1);self.$compiler().$required_trees()["$<<"](relative_path);dir=$scope.get("File").$dirname(self.$compiler().$file());full_path=self.$Pathname(dir).$join(relative_path).$cleanpath().$to_s();arg["$[]="](1,full_path)}self["$compile_default!"]();return self.$push(self.$fragment(""))},TMP_11.$$s=self,TMP_11),$a).call($f,"require_tree");($a=($g=self).$add_special,$a.$$p=(TMP_12=function(){var self=TMP_12.$$s||this;if(self.sexp==null)self.sexp=nil;return self.$push(self.$compiler().$handle_block_given_call(self.sexp))},TMP_12.$$s=self,TMP_12),$a).call($g,"block_given?");($a=($h=self).$add_special,$a.$$p=(TMP_13=function(){var self=TMP_13.$$s||this,$a;if(($a=self.$scope()["$def?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push(self.$fragment(self.$scope().$mid().$to_s().$inspect()))}else{return self.$push(self.$fragment("nil"))}},TMP_13.$$s=self,TMP_13),$a).call($h,"__callee__");($a=($i=self).$add_special,$a.$$p=(TMP_14=function(){var self=TMP_14.$$s||this,$a;if(($a=self.$scope()["$def?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push(self.$fragment(self.$scope().$mid().$to_s().$inspect()))}else{return self.$push(self.$fragment("nil"))}},TMP_14.$$s=self,TMP_14),$a).call($i,"__method__");($a=($j=self).$add_special,$a.$$p=(TMP_15=function(){var self=TMP_15.$$s||this;return self.$push(self.$fragment("debugger"))},TMP_15.$$s=self,TMP_15),$a).call($j,"debugger");return function($base,$super){function $DependencyResolver(){}var self=$DependencyResolver=$klass($base,$super,"DependencyResolver",$DependencyResolver);var def=self.$$proto,$scope=self.$$scope;def.sexp=def.compiler=nil;Opal.defn(self,"$initialize",function(compiler,sexp){var self=this;self.compiler=compiler;return self.sexp=sexp});Opal.defn(self,"$resolve",function(){var self=this;return self.$handle_part(self.sexp)});Opal.defn(self,"$handle_part",function(sexp){var $a,$b,TMP_16,self=this,type=nil,_=nil,recv=nil,meth=nil,args=nil,parts=nil,msg=nil,$case=nil;type=sexp.$type();if(type["$=="]("str")){return sexp["$[]"](1)}else if(type["$=="]("call")){$a=Opal.to_ary(sexp),_=$a[0]==null?nil:$a[0],recv=$a[1]==null?nil:$a[1],meth=$a[2]==null?nil:$a[2],args=$a[3]==null?nil:$a[3];parts=($a=($b=args["$[]"]($range(1,-1,false))).$map,$a.$$p=(TMP_16=function(s){var self=TMP_16.$$s||this;if(s==null)s=nil;return self.$handle_part(s)},TMP_16.$$s=self,TMP_16),$a).call($b);if(recv["$=="](["const","File"])){if(meth["$=="]("expand_path")){return($a=self).$expand_path.apply($a,Opal.to_a(parts))}else if(meth["$=="]("join")){return self.$expand_path(parts.$join("/"))}else if(meth["$=="]("dirname")){return self.$expand_path(parts["$[]"](0).$split("/")["$[]"]($range(0,-1,true)).$join("/"))}}}msg="Cannot handle dynamic require";return function(){$case=self.compiler.$dynamic_require_severity();if("error"["$==="]($case)){return self.compiler.$error(msg,self.sexp.$line())}else if("warning"["$==="]($case)){return self.compiler.$warning(msg,self.sexp.$line())}else{return nil}}()});return(Opal.defn(self,"$expand_path",function(path,base){var $a,$b,TMP_17,self=this;if(base==null){base=""}return($a=($b=(""+base+"/"+path).$split("/")).$inject,$a.$$p=(TMP_17=function(p,part){var self=TMP_17.$$s||this;if(p==null)p=nil;if(part==null)part=nil;if(part["$=="]("")){}else if(part["$=="]("..")){p.$pop()}else{p["$<<"](part)}return p},TMP_17.$$s=self,TMP_17),$a).call($b,[]).$join("/")}),nil)&&"expand_path"}($scope.base,null)})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/call_special"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$!~","$to_s","$meth","$with_temp","$expr","$arglist","$mid_to_jsid","$push","$+","$recv","$recv_sexp","$[]","$==","$any?","$first","$===","$last","$type","$pop","$iter","$new_temp","$scope","$s","$unshift","$queue_temp","$lhs","$rhs","$process","$recvr","$args","$op","$compile_or","$compile_and","$compile_operator","$to_sym","$first_arg","$mid"]);self.$require("opal/nodes/base");self.$require("opal/nodes/call");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $AttrAssignNode(){}var self=$AttrAssignNode=$klass($base,$super,"AttrAssignNode",$AttrAssignNode);var def=self.$$proto,$scope=self.$$scope,TMP_1;self.$handle("attrasgn");self.$children("recvr","meth","arglist");return(Opal.defn(self,"$default_compile",TMP_1=function(){var $zuper=$slice.call(arguments,0);var $a,$b,TMP_2,self=this,$iter=TMP_1.$$p,$yield=$iter||nil;TMP_1.$$p=null;if(($a=self.$meth().$to_s()["$!~"](new RegExp(""+$scope.get("REGEXP_START")+"\\w+="+$scope.get("REGEXP_END"))))!==nil&&(!$a.$$is_boolean||$a==true)){return Opal.find_super_dispatcher(self,"default_compile",TMP_1,$iter).apply(self,$zuper)}return($a=($b=self).$with_temp,$a.$$p=(TMP_2=function(args_tmp){var self=TMP_2.$$s||this,$a,$b,TMP_3;if(args_tmp==null)args_tmp=nil;return($a=($b=self).$with_temp,$a.$$p=(TMP_3=function(recv_tmp){var self=TMP_3.$$s||this,args=nil,mid=nil;if(recv_tmp==null)recv_tmp=nil;args=self.$expr(self.$arglist());mid=self.$mid_to_jsid(self.$meth().$to_s());return self.$push("(("+args_tmp+" = [",args,$rb_plus("]), ",""+recv_tmp+" = "),self.$recv(self.$recv_sexp()),", ",recv_tmp,mid,$rb_plus(".apply("+recv_tmp+", "+args_tmp+"), ",""+args_tmp+"["+args_tmp+".length-1])"))},TMP_3.$$s=self,TMP_3),$a).call($b)},TMP_2.$$s=self,TMP_2),$a).call($b)}),nil)&&"default_compile"})($scope.base,$scope.get("CallNode"));(function($base,$super){function $JsAttrAssignNode(){}var self=$JsAttrAssignNode=$klass($base,$super,"JsAttrAssignNode",$JsAttrAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("jsattrasgn");Opal.defn(self,"$record_method?",function(){var self=this;return false});return(Opal.defn(self,"$default_compile",function(){var self=this;return self.$push(self.$recv(self.$recv_sexp()),"[",self.$expr(self.$arglist()["$[]"](1)),"]","=",self.$expr(self.$arglist()["$[]"](2)))}),nil)&&"default_compile"})($scope.base,$scope.get("CallNode"));(function($base,$super){function $JsCallNode(){}var self=$JsCallNode=$klass($base,$super,"JsCallNode",$JsCallNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("jscall");Opal.defn(self,"$record_method?",function(){var self=this;return false});return(Opal.defn(self,"$default_compile",function(){var $a,$b,TMP_4,$c,self=this,mid=nil,splat=nil,block=nil,blktmp=nil,tmprecv=nil,recv_code=nil,call_recv=nil,args=nil;if(self.$meth()["$=="]("[]")){return self.$push(self.$recv(self.$recv_sexp()),"[",self.$expr(self.$arglist()),"]")}else{mid="."+self.$meth();splat=($a=($b=self.$arglist()["$[]"]($range(1,-1,false)))["$any?"],$a.$$p=(TMP_4=function(a){var self=TMP_4.$$s||this;if(a==null)a=nil;return a.$first()["$=="]("splat")},TMP_4.$$s=self,TMP_4),$a).call($b);if(($a=($c=$scope.get("Sexp")["$==="](self.$arglist().$last()),$c!==false&&$c!==nil?self.$arglist().$last().$type()["$=="]("block_pass"):$c))!==nil&&(!$a.$$is_boolean||$a==true)){block=self.$arglist().$pop()}else if(($a=self.$iter())!==nil&&(!$a.$$is_boolean||$a==true)){block=self.$iter()}if(block!==false&&block!==nil){blktmp=self.$scope().$new_temp()}if(splat!==false&&splat!==nil){tmprecv=self.$scope().$new_temp()}if(block!==false&&block!==nil){block=self.$expr(block)}recv_code=self.$recv(self.$recv_sexp());call_recv=self.$s("js_tmp",($a=blktmp)!==false&&$a!==nil?$a:recv_code);if(blktmp!==false&&blktmp!==nil){self.$arglist().$push(call_recv)}args=self.$expr(self.$arglist());if(tmprecv!==false&&tmprecv!==nil){self.$push("("+tmprecv+" = ",recv_code,")"+mid)}else{self.$push(recv_code,mid)}if(blktmp!==false&&blktmp!==nil){self.$unshift("("+blktmp+" = ",block,", ");self.$push(")")}if(splat!==false&&splat!==nil){self.$push(".apply(",tmprecv,", ",args,")")}else{self.$push("(",args,")")}if(blktmp!==false&&blktmp!==nil){return self.$scope().$queue_temp(blktmp)}else{return nil}}}),nil)&&"default_compile"})($scope.base,$scope.get("CallNode"));(function($base,$super){function $Match3Node(){}var self=$Match3Node=$klass($base,$super,"Match3Node",$Match3Node);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("match3");self.$children("lhs","rhs");return(Opal.defn(self,"$compile",function(){var self=this,sexp=nil;sexp=self.$s("call",self.$lhs(),"=~",self.$s("arglist",self.$rhs()));return self.$push(self.$process(sexp,self.level))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $OpAsgnOrNode(){}var self=$OpAsgnOrNode=$klass($base,$super,"OpAsgnOrNode",$OpAsgnOrNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("op_asgn_or");self.$children("recvr","rhs");return(Opal.defn(self,"$compile",function(){var self=this,sexp=nil;sexp=self.$s("or",self.$recvr(),self.$rhs());return self.$push(self.$expr(sexp))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $OpAsgnAndNode(){}var self=$OpAsgnAndNode=$klass($base,$super,"OpAsgnAndNode",$OpAsgnAndNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("op_asgn_and");self.$children("recvr","rhs");return(Opal.defn(self,"$compile",function(){var self=this,sexp=nil;sexp=self.$s("and",self.$recvr(),self.$rhs());return self.$push(self.$expr(sexp))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $OpAsgn1Node(){}var self=$OpAsgn1Node=$klass($base,$super,"OpAsgn1Node",$OpAsgn1Node);var def=self.$$proto,$scope=self.$$scope;self.$handle("op_asgn1");self.$children("lhs","args","op","rhs");Opal.defn(self,"$first_arg",function(){var self=this;return self.$args()["$[]"](1)});Opal.defn(self,"$compile",function(){var self=this,$case=nil;return function(){$case=self.$op().$to_s();if("||"["$==="]($case)){return self.$compile_or()}else if("&&"["$==="]($case)){return self.$compile_and()}else{return self.$compile_operator()}}()});Opal.defn(self,"$compile_operator",function(){var $a,$b,TMP_5,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_5=function(a){var self=TMP_5.$$s||this,$a,$b,TMP_6;if(a==null)a=nil;return($a=($b=self).$with_temp,$a.$$p=(TMP_6=function(r){var self=TMP_6.$$s||this,cur=nil,rhs=nil,call=nil;if(r==null)r=nil;cur=self.$s("call",self.$s("js_tmp",r),"[]",self.$s("arglist",self.$s("js_tmp",a)));rhs=self.$s("call",cur,self.$op().$to_sym(),self.$s("arglist",self.$rhs()));call=self.$s("call",self.$s("js_tmp",r),"[]=",self.$s("arglist",self.$s("js_tmp",a),rhs));self.$push("("+a+" = ",self.$expr(self.$first_arg()),", "+r+" = ",self.$expr(self.$lhs()));return self.$push(", ",self.$expr(call),")")},TMP_6.$$s=self,TMP_6),$a).call($b)},TMP_5.$$s=self,TMP_5),$a).call($b)});Opal.defn(self,"$compile_or",function(){var $a,$b,TMP_7,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_7=function(a){var self=TMP_7.$$s||this,$a,$b,TMP_8;if(a==null)a=nil;return($a=($b=self).$with_temp,$a.$$p=(TMP_8=function(r){var self=TMP_8.$$s||this,aref=nil,aset=nil,orop=nil;if(r==null)r=nil;aref=self.$s("call",self.$s("js_tmp",r),"[]",self.$s("arglist",self.$s("js_tmp",a)));aset=self.$s("call",self.$s("js_tmp",r),"[]=",self.$s("arglist",self.$s("js_tmp",a),self.$rhs()));orop=self.$s("or",aref,aset);self.$push("("+a+" = ",self.$expr(self.$first_arg()),", "+r+" = ",self.$expr(self.$lhs()));return self.$push(", ",self.$expr(orop),")")},TMP_8.$$s=self,TMP_8),$a).call($b)},TMP_7.$$s=self,TMP_7),$a).call($b)});return(Opal.defn(self,"$compile_and",function(){var $a,$b,TMP_9,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_9=function(a){var self=TMP_9.$$s||this,$a,$b,TMP_10;if(a==null)a=nil;return($a=($b=self).$with_temp,$a.$$p=(TMP_10=function(r){var self=TMP_10.$$s||this,aref=nil,aset=nil,andop=nil;if(r==null)r=nil;aref=self.$s("call",self.$s("js_tmp",r),"[]",self.$s("arglist",self.$s("js_tmp",a)));aset=self.$s("call",self.$s("js_tmp",r),"[]=",self.$s("arglist",self.$s("js_tmp",a),self.$rhs()));andop=self.$s("and",aref,aset);self.$push("("+a+" = ",self.$expr(self.$first_arg()),", "+r+" = ",self.$expr(self.$lhs()));return self.$push(", ",self.$expr(andop),")")},TMP_10.$$s=self,TMP_10),$a).call($b)},TMP_9.$$s=self,TMP_9),$a).call($b)}),nil)&&"compile_and"})($scope.base,$scope.get("Base"));(function($base,$super){function $OpAsgn2Node(){}var self=$OpAsgn2Node=$klass($base,$super,"OpAsgn2Node",$OpAsgn2Node);var def=self.$$proto,$scope=self.$$scope;self.$handle("op_asgn2");self.$children("lhs","mid","op","rhs");Opal.defn(self,"$meth",function(){var self=this;return self.$mid().$to_s()["$[]"]($range(0,-2,false))});Opal.defn(self,"$compile",function(){var self=this,$case=nil;return function(){$case=self.$op().$to_s();if("||"["$==="]($case)){return self.$compile_or()}else if("&&"["$==="]($case)){return self.$compile_and()}else{return self.$compile_operator()}}()});Opal.defn(self,"$compile_or",function(){var $a,$b,TMP_11,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_11=function(tmp){var self=TMP_11.$$s||this,getr=nil,asgn=nil,orop=nil;if(tmp==null)tmp=nil;getr=self.$s("call",self.$s("js_tmp",tmp),self.$meth(),self.$s("arglist"));asgn=self.$s("call",self.$s("js_tmp",tmp),self.$mid(),self.$s("arglist",self.$rhs()));orop=self.$s("or",getr,asgn);return self.$push("("+tmp+" = ",self.$expr(self.$lhs()),", ",self.$expr(orop),")")},TMP_11.$$s=self,TMP_11),$a).call($b)});Opal.defn(self,"$compile_and",function(){var $a,$b,TMP_12,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_12=function(tmp){var self=TMP_12.$$s||this,getr=nil,asgn=nil,andop=nil;if(tmp==null)tmp=nil;getr=self.$s("call",self.$s("js_tmp",tmp),self.$meth(),self.$s("arglist"));asgn=self.$s("call",self.$s("js_tmp",tmp),self.$mid(),self.$s("arglist",self.$rhs()));andop=self.$s("and",getr,asgn);return self.$push("("+tmp+" = ",self.$expr(self.$lhs()),", ",self.$expr(andop),")")},TMP_12.$$s=self,TMP_12),$a).call($b)});return(Opal.defn(self,"$compile_operator",function(){var $a,$b,TMP_13,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_13=function(tmp){var self=TMP_13.$$s||this,getr=nil,oper=nil,asgn=nil;if(tmp==null)tmp=nil;getr=self.$s("call",self.$s("js_tmp",tmp),self.$meth(),self.$s("arglist"));oper=self.$s("call",getr,self.$op(),self.$s("arglist",self.$rhs()));asgn=self.$s("call",self.$s("js_tmp",tmp),self.$mid(),self.$s("arglist",oper));return self.$push("("+tmp+" = ",self.$expr(self.$lhs()),", ",self.$expr(asgn),")")},TMP_13.$$s=self,TMP_13),$a).call($b)}),nil)&&"compile_operator"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/scope"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2;Opal.add_stubs(["$require","$attr_accessor","$attr_reader","$indent","$scope","$compiler","$scope=","$call","$==","$!","$class?","$dup","$push","$map","$ivars","$gvars","$parser_indent","$empty?","$join","$+","$proto","$%","$fragment","$def_in_class?","$add_proto_ivar","$include?","$<<","$has_local?","$pop","$next_temp","$succ","$uses_block!","$identify!","$unique_temp","$add_scope_temp","$parent","$def?","$type","$mid"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ScopeNode(){}var self=$ScopeNode=$klass($base,$super,"ScopeNode",$ScopeNode);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2;def.type=def.defs=def.parent=def.temps=def.locals=def.compiler=def.proto_ivars=def.ivars=def.gvars=def.args=def.queue=def.unique=def.while_stack=def.identity=def.uses_block=nil;self.$attr_accessor("parent");self.$attr_accessor("name");self.$attr_accessor("block_name");self.$attr_reader("scope_name");self.$attr_reader("locals");self.$attr_reader("ivars");self.$attr_reader("gvars");self.$attr_accessor("mid");self.$attr_accessor("defs");self.$attr_reader("methods");self.$attr_accessor("uses_super");self.$attr_accessor("uses_zuper");self.$attr_accessor("catch_return");Opal.defn(self,"$initialize",TMP_1=function(){var $zuper=$slice.call(arguments,0);var self=this,$iter=TMP_1.$$p,$yield=$iter||nil;TMP_1.$$p=null;Opal.find_super_dispatcher(self,"initialize",TMP_1,$iter).apply(self,$zuper);self.locals=[];self.temps=[];self.args=[];self.ivars=[];self.gvars=[];self.parent=nil;self.queue=[];self.unique="a";self.while_stack=[];self.identity=nil;self.defs=nil;self.methods=[];self.uses_block=false;return self.proto_ivars=[]});Opal.defn(self,"$in_scope",TMP_2=function(){var $a,$b,TMP_3,self=this,$iter=TMP_2.$$p,block=$iter||nil;TMP_2.$$p=null;return($a=($b=self).$indent,$a.$$p=(TMP_3=function(){var self=TMP_3.$$s||this,$a,$b;if(self.parent==null)self.parent=nil;self.parent=self.$compiler().$scope();$a=[self],$b=self.$compiler(),$b["$scope="].apply($b,$a),$a[$a.length-1];block.$call(self);return $a=[self.parent],$b=self.$compiler(),$b["$scope="].apply($b,$a),$a[$a.length-1]},TMP_3.$$s=self,TMP_3),$a).call($b)});Opal.defn(self,"$class_scope?",function(){var $a,self=this;return($a=self.type["$=="]("class"))!==false&&$a!==nil?$a:self.type["$=="]("module")});Opal.defn(self,"$class?",function(){var self=this;return self.type["$=="]("class")});Opal.defn(self,"$module?",function(){var self=this;return self.type["$=="]("module")});Opal.defn(self,"$sclass?",function(){var self=this;return self.type["$=="]("sclass")});Opal.defn(self,"$top?",function(){var self=this;return self.type["$=="]("top")});Opal.defn(self,"$iter?",function(){var self=this;return self.type["$=="]("iter")});Opal.defn(self,"$def?",function(){var self=this;return self.type["$=="]("def")});Opal.defn(self,"$def_in_class?",function(){var $a,$b,$c,self=this;return $a=($b=($c=self.defs["$!"](),$c!==false&&$c!==nil?self.type["$=="]("def"):$c),$b!==false&&$b!==nil?self.parent:$b),$a!==false&&$a!==nil?self.parent["$class?"]():$a});Opal.defn(self,"$proto",function(){var self=this;return"def"});Opal.defn(self,"$to_vars",function(){var $a,$b,$c,TMP_4,$d,TMP_5,$e,TMP_6,$f,TMP_7,self=this,vars=nil,iv=nil,gv=nil,indent=nil,str=nil,pvars=nil,result=nil;vars=self.temps.$dup();($a=vars).$push.apply($a,Opal.to_a(($b=($c=self.locals).$map,$b.$$p=(TMP_4=function(l){var self=TMP_4.$$s||this;if(l==null)l=nil;return""+l+" = nil"},TMP_4.$$s=self,TMP_4),$b).call($c)));iv=($b=($d=self.$ivars()).$map,$b.$$p=(TMP_5=function(ivar){var self=TMP_5.$$s||this;if(ivar==null)ivar=nil;return"if (self"+ivar+" == null) self"+ivar+" = nil;\n"},TMP_5.$$s=self,TMP_5),$b).call($d);gv=($b=($e=self.$gvars()).$map,$b.$$p=(TMP_6=function(gvar){var self=TMP_6.$$s||this;if(gvar==null)gvar=nil;return"if ($gvars"+gvar+" == null) $gvars"+gvar+" = nil;\n"},TMP_6.$$s=self,TMP_6),$b).call($e);indent=self.compiler.$parser_indent();str=function(){if(($b=vars["$empty?"]())!==nil&&(!$b.$$is_boolean||$b==true)){return""}else{return"var "+vars.$join(", ")+";\n"}return nil}();if(($b=self.$ivars()["$empty?"]())!==nil&&(!$b.$$is_boolean||$b==true)){}else{str=$rb_plus(str,""+indent+iv.$join(indent))}if(($b=self.$gvars()["$empty?"]())!==nil&&(!$b.$$is_boolean||$b==true)){}else{str=$rb_plus(str,""+indent+gv.$join(indent))}if(($b=($f=self["$class?"](),$f!==false&&$f!==nil?self.proto_ivars["$empty?"]()["$!"]():$f))!==nil&&(!$b.$$is_boolean||$b==true)){pvars=($b=($f=self.proto_ivars).$map,$b.$$p=(TMP_7=function(i){var self=TMP_7.$$s||this;if(i==null)i=nil;return""+self.$proto()+i},TMP_7.$$s=self,TMP_7),$b).call($f).$join(" = ");result="%s\n%s%s = nil;"["$%"]([str,indent,pvars])}else{result=str}return self.$fragment(result)});Opal.defn(self,"$add_scope_ivar",function(ivar){var $a,self=this;if(($a=self["$def_in_class?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.parent.$add_proto_ivar(ivar)}else if(($a=self.ivars["$include?"](ivar))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self.ivars["$<<"](ivar)}});Opal.defn(self,"$add_scope_gvar",function(gvar){var $a,self=this;if(($a=self.gvars["$include?"](gvar))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self.gvars["$<<"](gvar)}});Opal.defn(self,"$add_proto_ivar",function(ivar){var $a,self=this;if(($a=self.proto_ivars["$include?"](ivar))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self.proto_ivars["$<<"](ivar)}});Opal.defn(self,"$add_arg",function(arg){var $a,self=this;if(($a=self.args["$include?"](arg))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.args["$<<"](arg)}return arg});Opal.defn(self,"$add_scope_local",function(local){var $a,self=this;if(($a=self["$has_local?"](local))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}return self.locals["$<<"](local)});Opal.defn(self,"$has_local?",function(local){var $a,$b,self=this;if(($a=($b=self.locals["$include?"](local))!==false&&$b!==nil?$b:self.args["$include?"](local))!==nil&&(!$a.$$is_boolean||$a==true)){return true}if(($a=($b=self.parent,$b!==false&&$b!==nil?self.type["$=="]("iter"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.parent["$has_local?"](local)}return false});Opal.defn(self,"$add_scope_temp",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var tmps=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){tmps[arg_index]=arguments[arg_index+0]}return($a=self.temps).$push.apply($a,Opal.to_a(tmps))});Opal.defn(self,"$has_temp?",function(tmp){var self=this;return self.temps["$include?"](tmp)});Opal.defn(self,"$new_temp",function(){var $a,self=this,tmp=nil;if(($a=self.queue["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{return self.queue.$pop()}tmp=self.$next_temp();self.temps["$<<"](tmp);return tmp});Opal.defn(self,"$next_temp",function(){var $a,$b,self=this,tmp=nil;while(($b=true)!==nil&&(!$b.$$is_boolean||$b==true)){tmp="$"+self.unique;self.unique=self.unique.$succ();if(($b=self["$has_local?"](tmp))!==nil&&(!$b.$$is_boolean||$b==true)){}else{break}}return tmp});Opal.defn(self,"$queue_temp",function(name){var self=this;return self.queue["$<<"](name)});Opal.defn(self,"$push_while",function(){var self=this,info=nil;info=$hash2([],{});self.while_stack.$push(info);return info});Opal.defn(self,"$pop_while",function(){var self=this;return self.while_stack.$pop()});Opal.defn(self,"$in_while?",function(){var self=this;return self.while_stack["$empty?"]()["$!"]()});Opal.defn(self,"$uses_block!",function(){var $a,$b,self=this;if(($a=($b=self.type["$=="]("iter"))?self.parent:self.type["$=="]("iter"))!==nil&&(!$a.$$is_boolean||$a==true)){return self.parent["$uses_block!"]()}else{self.uses_block=true;return self["$identify!"]()}});Opal.defn(self,"$identify!",function(){var $a,self=this;if(($a=self.identity)!==nil&&(!$a.$$is_boolean||$a==true)){return self.identity}self.identity=self.compiler.$unique_temp();if(($a=self.parent)!==nil&&(!$a.$$is_boolean||$a==true)){self.parent.$add_scope_temp(self.identity)}return self.identity});Opal.defn(self,"$identity",function(){var self=this;return self.identity});Opal.defn(self,"$find_parent_def",function(){var $a,$b,self=this,scope=nil;scope=self;while(($b=scope=scope.$parent())!==nil&&(!$b.$$is_boolean||$b==true)){if(($b=scope["$def?"]())!==nil&&(!$b.$$is_boolean||$b==true)){return scope}}return nil});Opal.defn(self,"$get_super_chain",function(){var $a,$b,self=this,chain=nil,scope=nil,defn=nil,mid=nil;$a=[[],self,"null","null"],chain=$a[0],scope=$a[1],defn=$a[2],mid=$a[3];while(scope!==false&&scope!==nil){if(scope.$type()["$=="]("iter")){chain["$<<"](scope["$identify!"]());if(($b=scope.$parent())!==nil&&(!$b.$$is_boolean||$b==true)){scope=scope.$parent()}}else if(scope.$type()["$=="]("def")){defn=scope["$identify!"]();mid="'"+scope.$mid()+"'";break}else{break}}return[chain,defn,mid]});return(Opal.defn(self,"$uses_block?",function(){var self=this;return self.uses_block}),nil)&&"uses_block?"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/module"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$name_and_base","$helper","$push","$line","$in_scope","$name=","$scope","$add_temp","$proto","$stmt","$body","$s","$empty_line","$to_vars","$==","$type","$cid","$to_s","$[]","$expr","$raise"]);self.$require("opal/nodes/scope");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ModuleNode(){}var self=$ModuleNode=$klass($base,$super,"ModuleNode",$ModuleNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("module");self.$children("cid","body");Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this,name=nil,base=nil;$a=Opal.to_ary(self.$name_and_base()),name=$a[0]==null?nil:$a[0],base=$a[1]==null?nil:$a[1];self.$helper("module");self.$push("(function($base) {");self.$line(" var self = $module($base, '"+name+"');");($a=($b=self).$in_scope,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,$a,$b,body_code=nil;$a=[name],$b=self.$scope(),$b["$name="].apply($b,$a),$a[$a.length-1];self.$add_temp(""+self.$scope().$proto()+" = self.$$proto");self.$add_temp("$scope = self.$$scope");body_code=self.$stmt(($a=self.$body())!==false&&$a!==nil?$a:self.$s("nil"));self.$empty_line(); | |
self.$line(self.$scope().$to_vars());return self.$line(body_code)},TMP_1.$$s=self,TMP_1),$a).call($b);return self.$line("})(",base,")")});return(Opal.defn(self,"$name_and_base",function(){var self=this;if(self.$cid().$type()["$=="]("const")){return[self.$cid()["$[]"](1).$to_s(),"$scope.base"]}else if(self.$cid().$type()["$=="]("colon2")){return[self.$cid()["$[]"](2).$to_s(),self.$expr(self.$cid()["$[]"](1))]}else if(self.$cid().$type()["$=="]("colon3")){return[self.$cid()["$[]"](1).$to_s(),"Opal.Object"]}else{return self.$raise("Bad receiver in module")}}),nil)&&"name_and_base"})($scope.base,$scope.get("ScopeNode"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/class"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$name_and_base","$helper","$push","$line","$in_scope","$name=","$scope","$add_temp","$proto","$body_code","$empty_line","$to_vars","$super_code","$sup","$expr","$stmt","$returns","$compiler","$body","$s"]);self.$require("opal/nodes/module");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ClassNode(){}var self=$ClassNode=$klass($base,$super,"ClassNode",$ClassNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("class");self.$children("cid","sup","body");Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this,name=nil,base=nil;$a=Opal.to_ary(self.$name_and_base()),name=$a[0]==null?nil:$a[0],base=$a[1]==null?nil:$a[1];self.$helper("klass");self.$push("(function($base, $super) {");self.$line(" function $"+name+"(){};");self.$line(" var self = $"+name+" = $klass($base, $super, '"+name+"', $"+name+");");($a=($b=self).$in_scope,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,$a,$b,body_code=nil;$a=[name],$b=self.$scope(),$b["$name="].apply($b,$a),$a[$a.length-1];self.$add_temp(""+self.$scope().$proto()+" = self.$$proto");self.$add_temp("$scope = self.$$scope");body_code=self.$body_code();self.$empty_line();self.$line(self.$scope().$to_vars());return self.$line(body_code)},TMP_1.$$s=self,TMP_1),$a).call($b);return self.$line("})(",base,", ",self.$super_code(),")")});Opal.defn(self,"$super_code",function(){var $a,self=this;if(($a=self.$sup())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$expr(self.$sup())}else{return"null"}});return(Opal.defn(self,"$body_code",function(){var $a,self=this;return self.$stmt(self.$compiler().$returns(($a=self.$body())!==false&&$a!==nil?$a:self.$s("nil")))}),nil)&&"body_code"})($scope.base,$scope.get("ModuleNode"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/singleton_class"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$push","$in_scope","$add_temp","$stmt","$returns","$compiler","$body","$line","$to_vars","$scope","$recv","$object"]);self.$require("opal/nodes/scope");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $SingletonClassNode(){}var self=$SingletonClassNode=$klass($base,$super,"SingletonClassNode",$SingletonClassNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("sclass");self.$children("object","body");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this;self.$push("(function(self) {");($a=($b=self).$in_scope,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,body_stmt=nil;self.$add_temp("$scope = self.$$scope");self.$add_temp("def = self.$$proto");body_stmt=self.$stmt(self.$compiler().$returns(self.$body()));self.$line(self.$scope().$to_vars());return self.$line(body_stmt)},TMP_1.$$s=self,TMP_1),$a).call($b);return self.$line("})(Opal.get_singleton_class(",self.$recv(self.$object()),"))")}),nil)&&"compile"})($scope.base,$scope.get("ScopeNode"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/iter"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range,$hash2=Opal.hash2;Opal.add_stubs(["$require","$handle","$children","$extract_opt_args","$extract_block_arg","$is_a?","$last","$args","$==","$type","$[]","$pop","$length","$args_to_params","$<<","$in_scope","$identify!","$scope","$add_temp","$compile_args","$add_arg","$push","$-","$block_name=","$line","$stmt","$body","$to_vars","$unshift","$join","$each_with_index","$variable","$find","$to_sym","$expr","$has_key?","$include?","$[]=","$map","$raise","$shift","$===","$args_sexp","$nil?","$s","$returns","$compiler","$body_sexp","$each","$next_temp"]);self.$require("opal/nodes/scope");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $IterNode(){}var self=$IterNode=$klass($base,$super,"IterNode",$IterNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("iter");self.$children("args_sexp","body_sexp");Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this,opt_args=nil,block_arg=nil,splat=nil,len=nil,params=nil,to_vars=nil,identity=nil,body_code=nil;opt_args=self.$extract_opt_args();block_arg=self.$extract_block_arg();if(($a=($b=self.$args().$last()["$is_a?"]($scope.get("Sexp")),$b!==false&&$b!==nil?self.$args().$last().$type()["$=="]("splat"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){splat=self.$args().$last()["$[]"](1)["$[]"](1);self.$args().$pop();len=self.$args().$length()}params=self.$args_to_params(self.$args()["$[]"]($range(1,-1,false)));if(splat!==false&&splat!==nil){params["$<<"](splat)}to_vars=identity=body_code=nil;($a=($b=self).$in_scope,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,$a,$b,scope_name=nil;identity=self.$scope()["$identify!"]();self.$add_temp("self = "+identity+".$$s || this");self.$compile_args(self.$args()["$[]"]($range(1,-1,false)),opt_args,params);if(splat!==false&&splat!==nil){self.$scope().$add_arg(splat);self.$push(""+splat+" = $slice.call(arguments, "+$rb_minus(len,1)+");")}if(block_arg!==false&&block_arg!==nil){$a=[block_arg],$b=self.$scope(),$b["$block_name="].apply($b,$a),$a[$a.length-1];self.$scope().$add_temp(block_arg);scope_name=self.$scope()["$identify!"]();self.$line(""+block_arg+" = "+scope_name+".$$p || nil, "+scope_name+".$$p = null;")}body_code=self.$stmt(self.$body());return to_vars=self.$scope().$to_vars()},TMP_1.$$s=self,TMP_1),$a).call($b);self.$line(body_code);self.$unshift(to_vars);self.$unshift("("+identity+" = function("+params.$join(", ")+"){");return self.$push("}, "+identity+".$$s = self, "+identity+")")});Opal.defn(self,"$compile_args",function(args,opt_args,params){var $a,$b,TMP_2,self=this;return($a=($b=args).$each_with_index,$a.$$p=(TMP_2=function(arg,idx){var self=TMP_2.$$s||this,$a,$b,$c,$d,TMP_3,TMP_4,TMP_5,current_opt=nil,vars=nil;if(arg==null)arg=nil;if(idx==null)idx=nil;if(arg.$type()["$=="]("lasgn")){arg=self.$variable(arg["$[]"](1));if(($a=($b=opt_args!==false&&opt_args!==nil)?current_opt=($c=($d=opt_args).$find,$c.$$p=(TMP_3=function(s){var self=TMP_3.$$s||this;if(s==null)s=nil;return s["$[]"](1)["$=="](arg.$to_sym())},TMP_3.$$s=self,TMP_3),$c).call($d):opt_args)!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("if ("+arg+" == null) "+arg+" = ",self.$expr(current_opt["$[]"](2)),";")}else{return self.$push("if ("+arg+" == null) "+arg+" = nil;")}}else if(arg.$type()["$=="]("array")){vars=$hash2([],{});($a=($b=arg["$[]"]($range(1,-1,false))).$each_with_index,$a.$$p=(TMP_4=function(_arg,_idx){var self=TMP_4.$$s||this,$a,$b;if(_arg==null)_arg=nil;if(_idx==null)_idx=nil;_arg=self.$variable(_arg["$[]"](1));if(($a=($b=vars["$has_key?"](_arg))!==false&&$b!==nil?$b:params["$include?"](_arg))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return vars["$[]="](_arg,""+params["$[]"](idx)+"["+_idx+"]")}},TMP_4.$$s=self,TMP_4),$a).call($b);return self.$push("var "+($a=($c=vars).$map,$a.$$p=(TMP_5=function(k,v){var self=TMP_5.$$s||this;if(k==null)k=nil;if(v==null)v=nil;return""+k+" = "+v},TMP_5.$$s=self,TMP_5),$a).call($c).$join(", ")+";")}else{return self.$raise("Bad block arg type")}},TMP_2.$$s=self,TMP_2),$a).call($b)});Opal.defn(self,"$extract_opt_args",function(){var $a,$b,self=this,opt_args=nil;if(($a=($b=self.$args().$last()["$is_a?"]($scope.get("Sexp")),$b!==false&&$b!==nil?self.$args().$last().$type()["$=="]("block"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){opt_args=self.$args().$pop();opt_args.$shift();return opt_args}else{return nil}});Opal.defn(self,"$extract_block_arg",function(){var $a,$b,self=this,block_arg=nil;if(($a=($b=self.$args().$last()["$is_a?"]($scope.get("Sexp")),$b!==false&&$b!==nil?self.$args().$last().$type()["$=="]("block_pass"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){block_arg=self.$args().$pop();return block_arg=block_arg["$[]"](1)["$[]"](1).$to_sym()}else{return nil}});Opal.defn(self,"$args",function(){var $a,$b,self=this;if(($a=($b=$scope.get("Fixnum")["$==="](self.$args_sexp()))!==false&&$b!==nil?$b:self.$args_sexp()["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$s("array")}else if(self.$args_sexp().$type()["$=="]("lasgn")){return self.$s("array",self.$args_sexp())}else{return self.$args_sexp()["$[]"](1)}});Opal.defn(self,"$body",function(){var $a,self=this;return self.$compiler().$returns(($a=self.$body_sexp())!==false&&$a!==nil?$a:self.$s("nil"))});return(Opal.defn(self,"$args_to_params",function(sexp){var $a,$b,TMP_6,self=this,result=nil;result=[];($a=($b=sexp).$each,$a.$$p=(TMP_6=function(arg){var self=TMP_6.$$s||this,$a,$b,ref=nil;if(arg==null)arg=nil;if(arg["$[]"](0)["$=="]("lasgn")){ref=self.$variable(arg["$[]"](1));if(($a=($b=ref["$=="]("_"))?result["$include?"](ref):ref["$=="]("_"))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}self.$add_arg(ref);return result["$<<"](ref)}else if(arg["$[]"](0)["$=="]("array")){return result["$<<"](self.$scope().$next_temp())}else{return self.$raise("Bad js_block_arg: "+arg["$[]"](0))}},TMP_6.$$s=self,TMP_6),$a).call($b);return result}),nil)&&"args_to_params"})($scope.base,$scope.get("ScopeNode"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/def"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$select","$==","$first","$[]","$args","$find","$include?","$-","$length","$block_arg","$rest_arg","$size","$keyword_args","$to_sym","$variable","$arity_check?","$compiler","$arity_check","$opt_args","$mid","$in_scope","$mid=","$scope","$recvr","$defs=","$uses_block!","$add_arg","$block_name=","$process","$stmt","$returns","$stmts","$add_temp","$compile_rest_arg","$compile_opt_args","$compile_keyword_args","$identity","$compile_block_arg","$delete","$locals","$unshift","$current_indent","$to_vars","$line","$uses_zuper","$catch_return","$push","$recv","$iter?","$wrap","$module?","$class?","$sclass?","$defs","$top?","$raise","$expr?","$uses_block?","$block_name","$argc","$each","$expr","$empty?","$helper","$with_temp","$last","$===","$to_s","$add_local","$map","$inspect","$join","$!","$-@","$<","$+","$>","$<<","$each_with_index"]);self.$require("opal/nodes/scope");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $DefNode(){}var self=$DefNode=$klass($base,$super,"DefNode",$DefNode);var def=self.$$proto,$scope=self.$$scope;def.opt_args=def.rest_arg=def.keyword_args=def.block_arg=def.argc=nil;self.$handle("def");self.$children("recvr","mid","args","stmts");Opal.defn(self,"$opt_args",function(){var $a,$b,$c,TMP_1,self=this;return($a=self.opt_args)!==false&&$a!==nil?$a:self.opt_args=($b=($c=self.$args()["$[]"]($range(1,-1,false))).$select,$b.$$p=(TMP_1=function(arg){var self=TMP_1.$$s||this;if(arg==null)arg=nil;return arg.$first()["$=="]("optarg")},TMP_1.$$s=self,TMP_1),$b).call($c)});Opal.defn(self,"$rest_arg",function(){var $a,$b,$c,TMP_2,self=this;return($a=self.rest_arg)!==false&&$a!==nil?$a:self.rest_arg=($b=($c=self.$args()["$[]"]($range(1,-1,false))).$find,$b.$$p=(TMP_2=function(arg){var self=TMP_2.$$s||this;if(arg==null)arg=nil;return arg.$first()["$=="]("restarg")},TMP_2.$$s=self,TMP_2),$b).call($c)});Opal.defn(self,"$keyword_args",function(){var $a,$b,$c,TMP_3,self=this;return($a=self.keyword_args)!==false&&$a!==nil?$a:self.keyword_args=($b=($c=self.$args()["$[]"]($range(1,-1,false))).$select,$b.$$p=(TMP_3=function(arg){var self=TMP_3.$$s||this;if(arg==null)arg=nil;return["kwarg","kwoptarg","kwrestarg"]["$include?"](arg.$first())},TMP_3.$$s=self,TMP_3),$b).call($c)});Opal.defn(self,"$block_arg",function(){var $a,$b,$c,TMP_4,self=this;return($a=self.block_arg)!==false&&$a!==nil?$a:self.block_arg=($b=($c=self.$args()["$[]"]($range(1,-1,false))).$find,$b.$$p=(TMP_4=function(arg){var self=TMP_4.$$s||this;if(arg==null)arg=nil;return arg.$first()["$=="]("blockarg")},TMP_4.$$s=self,TMP_4),$b).call($c)});Opal.defn(self,"$argc",function(){var $a,self=this;if(($a=self.argc)!==nil&&(!$a.$$is_boolean||$a==true)){return self.argc}self.argc=$rb_minus(self.$args().$length(),1);if(($a=self.$block_arg())!==nil&&(!$a.$$is_boolean||$a==true)){self.argc=$rb_minus(self.argc,1)}if(($a=self.$rest_arg())!==nil&&(!$a.$$is_boolean||$a==true)){self.argc=$rb_minus(self.argc,1)}self.argc=$rb_minus(self.argc,self.$keyword_args().$size());return self.argc});Opal.defn(self,"$compile",function(){var $a,$b,TMP_5,$c,self=this,params=nil,scope_name=nil,block_name=nil,arity_code=nil;params=nil;scope_name=nil;if(($a=self.$block_arg())!==nil&&(!$a.$$is_boolean||$a==true)){block_name=self.$variable(self.$block_arg()["$[]"](1)).$to_sym()}if(($a=self.$compiler()["$arity_check?"]())!==nil&&(!$a.$$is_boolean||$a==true)){arity_code=self.$arity_check(self.$args(),self.$opt_args(),self.$rest_arg(),self.$keyword_args(),block_name,self.$mid())}($a=($b=self).$in_scope,$a.$$p=(TMP_5=function(){var self=TMP_5.$$s||this,$a,$b,$c,stmt_code=nil;$a=[self.$mid()],$b=self.$scope(),$b["$mid="].apply($b,$a),$a[$a.length-1];if(($a=self.$recvr())!==nil&&(!$a.$$is_boolean||$a==true)){$a=[true],$b=self.$scope(),$b["$defs="].apply($b,$a),$a[$a.length-1]}if(block_name!==false&&block_name!==nil){self.$scope()["$uses_block!"]();self.$scope().$add_arg(block_name)}$a=[($c=block_name)!==false&&$c!==nil?$c:"$yield"],$b=self.$scope(),$b["$block_name="].apply($b,$a),$a[$a.length-1];params=self.$process(self.$args());stmt_code=self.$stmt(self.$compiler().$returns(self.$stmts()));self.$add_temp("self = this");self.$compile_rest_arg();self.$compile_opt_args();self.$compile_keyword_args();scope_name=self.$scope().$identity();self.$compile_block_arg();if(($a=self.$rest_arg())!==nil&&(!$a.$$is_boolean||$a==true)){self.$scope().$locals().$delete(self.$rest_arg()["$[]"](1))}self.$unshift("\n"+self.$current_indent(),self.$scope().$to_vars());if(arity_code!==false&&arity_code!==nil){self.$line(arity_code)}self.$line(stmt_code);if(($a=self.$scope().$uses_zuper())!==nil&&(!$a.$$is_boolean||$a==true)){self.$unshift("var $zuper = $slice.call(arguments, 0);")}if(($a=self.$scope().$catch_return())!==nil&&(!$a.$$is_boolean||$a==true)){self.$unshift("try {\n");self.$line("} catch ($returner) { if ($returner === Opal.returner) { return $returner.$v }");return self.$push(" throw $returner; }")}else{return nil}},TMP_5.$$s=self,TMP_5),$a).call($b);self.$unshift(") {");self.$unshift(params);self.$unshift("function(");if(scope_name!==false&&scope_name!==nil){self.$unshift(""+scope_name+" = ")}self.$line("}");if(($a=self.$recvr())!==nil&&(!$a.$$is_boolean||$a==true)){self.$unshift("Opal.defs(",self.$recv(self.$recvr()),", '$"+self.$mid()+"', ");self.$push(")")}else if(($a=self.$scope()["$iter?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$wrap("Opal.def(self, '$"+self.$mid()+"', ",")")}else if(($a=($c=self.$scope()["$module?"]())!==false&&$c!==nil?$c:self.$scope()["$class?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$wrap("Opal.defn(self, '$"+self.$mid()+"', ",")")}else if(($a=self.$scope()["$sclass?"]())!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=self.$scope().$defs())!==nil&&(!$a.$$is_boolean||$a==true)){self.$unshift("Opal.defs(self, '$"+self.$mid()+"', ")}else{self.$unshift("Opal.defn(self, '$"+self.$mid()+"', ")}self.$push(")")}else if(($a=self.$scope()["$top?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$unshift("Opal.defn(Opal.Object, '$"+self.$mid()+"', ");self.$push(")")}else{self.$raise("Unsupported use of `def`; please file a bug at https://github.com/opal/opal reporting this message.")}if(($a=self["$expr?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(",", nil) && '"+self.$mid()+"'")}else{return nil}});Opal.defn(self,"$compile_block_arg",function(){var $a,self=this,scope_name=nil,yielder=nil;if(($a=self.$scope()["$uses_block?"]())!==nil&&(!$a.$$is_boolean||$a==true)){scope_name=self.$scope().$identity();yielder=self.$scope().$block_name();self.$add_temp("$iter = "+scope_name+".$$p");self.$add_temp(""+yielder+" = $iter || nil");return self.$line(""+scope_name+".$$p = null;")}else{return nil}});Opal.defn(self,"$compile_rest_arg",function(){var $a,$b,self=this,splat=nil;if(($a=($b=self.$rest_arg(),$b!==false&&$b!==nil?self.$rest_arg()["$[]"](1):$b))!==nil&&(!$a.$$is_boolean||$a==true)){splat=self.$variable(self.$rest_arg()["$[]"](1).$to_sym());self.$line("var array_size = arguments.length - "+self.$argc()+";");self.$line("if(array_size < 0) array_size = 0;");self.$line("var "+splat+" = new Array(array_size);");self.$line("for(var arg_index = 0; arg_index < array_size; arg_index++) {");self.$line(" "+splat+"[arg_index] = arguments[arg_index + "+self.$argc()+"];");return self.$line("}")}else{return nil}});Opal.defn(self,"$compile_opt_args",function(){var $a,$b,TMP_6,self=this;return($a=($b=self.$opt_args()).$each,$a.$$p=(TMP_6=function(arg){var self=TMP_6.$$s||this;if(arg==null)arg=nil;if(arg["$[]"](2)["$[]"](2)["$=="]("undefined")){return nil}self.$line("if ("+self.$variable(arg["$[]"](1))+" == null) {");self.$line(" "+self.$variable(arg["$[]"](1))+" = ",self.$expr(arg["$[]"](2)));return self.$line("}")},TMP_6.$$s=self,TMP_6),$a).call($b)});Opal.defn(self,"$compile_keyword_args",function(){var $a,$b,TMP_7,$c,TMP_8,self=this,last_opt_arg=nil,opt_arg_name=nil;if(($a=self.$keyword_args()["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}self.$helper("hash2");if(($a=self.$rest_arg())!==nil&&(!$a.$$is_boolean||$a==true)){($a=($b=self).$with_temp,$a.$$p=(TMP_7=function(tmp){var self=TMP_7.$$s||this,rest_arg_name=nil;if(tmp==null)tmp=nil;rest_arg_name=self.$variable(self.$rest_arg()["$[]"](1).$to_sym());self.$line(""+tmp+" = "+rest_arg_name+"["+rest_arg_name+".length - 1];");self.$line("if ("+tmp+" == null || !"+tmp+".$$is_hash) {");self.$line(" $kwargs = $hash2([], {});");self.$line("} else {");self.$line(" $kwargs = "+rest_arg_name+".pop();");return self.$line("}")},TMP_7.$$s=self,TMP_7),$a).call($b)}else if(($a=last_opt_arg=self.$opt_args().$last())!==nil&&(!$a.$$is_boolean||$a==true)){opt_arg_name=self.$variable(last_opt_arg["$[]"](1));self.$line("if ("+opt_arg_name+" == null) {");self.$line(" $kwargs = $hash2([], {});");self.$line("}");self.$line("else if ("+opt_arg_name+".$$is_hash) {");self.$line(" $kwargs = "+opt_arg_name+";");self.$line(" "+opt_arg_name+" = ",self.$expr(last_opt_arg["$[]"](2)),";");self.$line("}");self.$line("else if ($kwargs == null) {");self.$line(" $kwargs = $hash2([], {});");self.$line("}")}else{self.$line("if ($kwargs == null) {");self.$line(" $kwargs = $hash2([], {});");self.$line("}")}self.$line("if (!$kwargs.$$is_hash) {");self.$line(" throw Opal.ArgumentError.$new('expecting keyword args');");self.$line("}");return($a=($c=self.$keyword_args()).$each,$a.$$p=(TMP_8=function(kwarg){var self=TMP_8.$$s||this,$a,$b,TMP_9,$c,$d,TMP_10,$case=nil,arg_name=nil,var_name=nil,kwarg_names=nil,used_args=nil;if(kwarg==null)kwarg=nil;return function(){$case=kwarg.$first();if("kwoptarg"["$==="]($case)){arg_name=kwarg["$[]"](1);var_name=self.$variable(arg_name.$to_s());self.$add_local(var_name);self.$line("if (("+var_name+" = $kwargs.smap['"+arg_name+"']) == null) {");self.$line(" "+var_name+" = ",self.$expr(kwarg["$[]"](2)));return self.$line("}")}else if("kwarg"["$==="]($case)){arg_name=kwarg["$[]"](1);var_name=self.$variable(arg_name.$to_s());self.$add_local(var_name);self.$line("if (("+var_name+" = $kwargs.smap['"+arg_name+"']) == null) {");self.$line(" throw new Error('expecting keyword arg: "+arg_name+"')");return self.$line("}")}else if("kwrestarg"["$==="]($case)){arg_name=kwarg["$[]"](1);var_name=self.$variable(arg_name.$to_s());self.$add_local(var_name);kwarg_names=($a=($b=($c=($d=self.$keyword_args()).$select,$c.$$p=(TMP_10=function(kw){var self=TMP_10.$$s||this;if(kw==null)kw=nil;return["kwoptarg","kwarg"]["$include?"](kw.$first())},TMP_10.$$s=self,TMP_10),$c).call($d)).$map,$a.$$p=(TMP_9=function(kw){var self=TMP_9.$$s||this;if(kw==null)kw=nil;return""+kw["$[]"](1).$to_s().$inspect()+": true"},TMP_9.$$s=self,TMP_9),$a).call($b);used_args="{"+kwarg_names.$join(",")+"}";return self.$line(""+var_name+" = Opal.kwrestargs($kwargs, "+used_args+");")}else{return self.$raise("unknown kwarg type "+kwarg.$first())}}()},TMP_8.$$s=self,TMP_8),$a).call($c)});return(Opal.defn(self,"$arity_check",function(args,opt,splat,kwargs,block_name,mid){var $a,$b,$c,self=this,meth=nil,arity=nil,aritycode=nil,min_arity=nil,max_arity=nil,checks=nil;meth=mid.$to_s().$inspect();arity=$rb_minus(args.$size(),1);arity=$rb_minus(arity,opt.$size());if(splat!==false&&splat!==nil){arity=$rb_minus(arity,1)}arity=$rb_minus(arity,kwargs.$size());if(block_name!==false&&block_name!==nil){arity=$rb_minus(arity,1)}if(($a=($b=($c=opt["$empty?"]()["$!"]())!==false&&$c!==nil?$c:kwargs["$empty?"]()["$!"]())!==false&&$b!==nil?$b:splat)!==nil&&(!$a.$$is_boolean||$a==true)){arity=$rb_minus(arity["$-@"](),1)}aritycode="var $arity = arguments.length;";if($rb_lt(arity,0)){min_arity=$rb_plus(arity,1)["$-@"]();max_arity=$rb_minus(args.$size(),1);if(block_name!==false&&block_name!==nil){max_arity=$rb_minus(max_arity,1)}checks=[];if($rb_gt(min_arity,0)){checks["$<<"]("$arity < "+min_arity)}if(($a=($b=max_arity!==false&&max_arity!==nil)?splat["$!"]():max_arity)!==nil&&(!$a.$$is_boolean||$a==true)){checks["$<<"]("$arity > "+max_arity)}if($rb_gt(checks.$size(),0)){return $rb_plus(aritycode,"if ("+checks.$join(" || ")+") { Opal.ac($arity, "+arity+", this, "+meth+"); }")}else{return nil}}else{return $rb_plus(aritycode,"if ($arity !== "+arity+") { Opal.ac($arity, "+arity+", this, "+meth+"); }")}}),nil)&&"arity_check"})($scope.base,$scope.get("ScopeNode"));(function($base,$super){function $ArgsNode(){}var self=$ArgsNode=$klass($base,$super,"ArgsNode",$ArgsNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("args");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_11,self=this,done_kwargs=nil,have_rest=nil;done_kwargs=false;have_rest=false;return($a=($b=self.$children()).$each_with_index,$a.$$p=(TMP_11=function(child,idx){var self=TMP_11.$$s||this,$a,$b,$case=nil;if(child==null)child=nil;if(idx==null)idx=nil;return function(){$case=child.$first();if("kwarg"["$==="]($case)||"kwoptarg"["$==="]($case)||"kwrestarg"["$==="]($case)){if(done_kwargs!==false&&done_kwargs!==nil){return nil}else{done_kwargs=true;if(($a=($b=idx["$=="](0))!==false&&$b!==nil?$b:have_rest)!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$push(", ")}self.$scope().$add_arg("$kwargs");return self.$push("$kwargs")}}else if("blockarg"["$==="]($case)){return nil}else if("restarg"["$==="]($case)){return have_rest=true}else{child=child["$[]"](1).$to_sym();if(idx["$=="](0)){}else{self.$push(", ")}child=self.$variable(child);self.$scope().$add_arg(child.$to_sym());return self.$push(child.$to_s())}}()},TMP_11.$$s=self,TMP_11),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/if"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$truthy","$falsy","$skip_check_present?","$skip_check_present_not?","$push","$js_truthy","$test","$indent","$line","$stmt","$==","$type","$needs_wrapper?","$wrap","$returns","$compiler","$true_body","$s","$false_body","$expr?","$recv?"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $IfNode(){}var self=$IfNode=$klass($base,$super,"IfNode",$IfNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("if");self.$children("test","true_body","false_body");Opal.cdecl($scope,"RUBY_ENGINE_CHECK",["call",["const","RUBY_ENGINE"],"==",["arglist",["str","opal"]]]);Opal.cdecl($scope,"RUBY_ENGINE_CHECK_NOT",["call",["const","RUBY_ENGINE"],"!=",["arglist",["str","opal"]]]);Opal.cdecl($scope,"RUBY_PLATFORM_CHECK",["call",["const","RUBY_PLATFORM"],"==",["arglist",["str","opal"]]]);Opal.cdecl($scope,"RUBY_PLATFORM_CHECK_NOT",["call",["const","RUBY_PLATFORM"],"!=",["arglist",["str","opal"]]]);Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,$c,TMP_2,self=this,truthy=nil,falsy=nil;$a=[self.$truthy(),self.$falsy()],truthy=$a[0],falsy=$a[1];if(($a=self["$skip_check_present?"]())!==nil&&(!$a.$$is_boolean||$a==true)){falsy=nil}if(($a=self["$skip_check_present_not?"]())!==nil&&(!$a.$$is_boolean||$a==true)){truthy=nil}self.$push("if (",self.$js_truthy(self.$test()),") {");if(truthy!==false&&truthy!==nil){($a=($b=self).$indent,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this;return self.$line(self.$stmt(truthy))},TMP_1.$$s=self,TMP_1),$a).call($b)}if(falsy!==false&&falsy!==nil){if(falsy.$type()["$=="]("if")){self.$line("} else ",self.$stmt(falsy))}else{($a=($c=self).$indent,$a.$$p=(TMP_2=function(){var self=TMP_2.$$s||this;self.$line("} else {");return self.$line(self.$stmt(falsy))},TMP_2.$$s=self,TMP_2),$a).call($c);self.$line("}")}}else{self.$push("}")}if(($a=self["$needs_wrapper?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(function() {","; return nil; })()")}else{return nil}});Opal.defn(self,"$skip_check_present?",function(){var $a,self=this;return($a=self.$test()["$=="]($scope.get("RUBY_ENGINE_CHECK")))!==false&&$a!==nil?$a:self.$test()["$=="]($scope.get("RUBY_PLATFORM_CHECK"))});Opal.defn(self,"$skip_check_present_not?",function(){var $a,self=this;return($a=self.$test()["$=="]($scope.get("RUBY_ENGINE_CHECK_NOT")))!==false&&$a!==nil?$a:self.$test()["$=="]($scope.get("RUBY_PLATFORM_CHECK_NOT"))});Opal.defn(self,"$truthy",function(){var $a,self=this;if(($a=self["$needs_wrapper?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compiler().$returns(($a=self.$true_body())!==false&&$a!==nil?$a:self.$s("nil"))}else{return self.$true_body()}});Opal.defn(self,"$falsy",function(){var $a,self=this;if(($a=self["$needs_wrapper?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compiler().$returns(($a=self.$false_body())!==false&&$a!==nil?$a:self.$s("nil"))}else{return self.$false_body()}});return(Opal.defn(self,"$needs_wrapper?",function(){var $a,self=this;return($a=self["$expr?"]())!==false&&$a!==nil?$a:self["$recv?"]()}),nil)&&"needs_wrapper?"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/logic"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$in_while?","$push","$expr_or_nil","$value","$wrap","$compile_while","$iter?","$scope","$compile_iter","$error","$[]","$while_loop","$stmt?","$[]=","$identity","$with_temp","$expr","$==","$empty_splat?","$type","$recv","$lhs","$rhs","$js_truthy_optimize","$nil?","$s","$>","$size","$find_parent_def","$expr?","$def?","$return_in_iter?","$return_expr_in_def?","$scope_to_catch_return","$catch_return=","$return_val","$raise","$to_s"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $NextNode(){}var self=$NextNode=$klass($base,$super,"NextNode",$NextNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("next");self.$children("value");return(Opal.defn(self,"$compile",function(){var $a,self=this;if(($a=self["$in_while?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("continue;")}self.$push(self.$expr_or_nil(self.$value()));return self.$wrap("return ",";")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $BreakNode(){}var self=$BreakNode=$klass($base,$super,"BreakNode",$BreakNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("break");self.$children("value");Opal.defn(self,"$compile",function(){var $a,self=this;if(($a=self["$in_while?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compile_while()}else if(($a=self.$scope()["$iter?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compile_iter()}else{return self.$error("void value expression: cannot use break outside of iter/while")}});Opal.defn(self,"$compile_while",function(){var $a,self=this;if(($a=self.$while_loop()["$[]"]("closure"))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("return ",self.$expr_or_nil(self.$value()))}else{return self.$push("break;")}});return(Opal.defn(self,"$compile_iter",function(){var $a,self=this;if(($a=self["$stmt?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$error("break must be used as a statement")}self.$push(self.$expr_or_nil(self.$value()));return self.$wrap("return ($breaker.$v = ",", $breaker)")}),nil)&&"compile_iter"})($scope.base,$scope.get("Base"));(function($base,$super){function $RedoNode(){}var self=$RedoNode=$klass($base,$super,"RedoNode",$RedoNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("redo");Opal.defn(self,"$compile",function(){var $a,self=this;if(($a=self["$in_while?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compile_while()}else if(($a=self.$scope()["$iter?"]())!==nil&&(!$a.$$is_boolean||$a==true)){ | |
return self.$compile_iter()}else{return self.$push("REDO()")}});Opal.defn(self,"$compile_while",function(){var self=this;self.$while_loop()["$[]="]("use_redo",true);return self.$push(""+self.$while_loop()["$[]"]("redo_var")+" = true")});return(Opal.defn(self,"$compile_iter",function(){var self=this;return self.$push("return "+self.$scope().$identity()+".apply(null, $slice.call(arguments))")}),nil)&&"compile_iter"})($scope.base,$scope.get("Base"));(function($base,$super){function $NotNode(){}var self=$NotNode=$klass($base,$super,"NotNode",$NotNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("not");self.$children("value");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_1=function(tmp){var self=TMP_1.$$s||this;if(tmp==null)tmp=nil;self.$push(self.$expr(self.$value()));return self.$wrap("("+tmp+" = ",", ("+tmp+" === nil || "+tmp+" === false))")},TMP_1.$$s=self,TMP_1),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $SplatNode(){}var self=$SplatNode=$klass($base,$super,"SplatNode",$SplatNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("splat");self.$children("value");Opal.defn(self,"$empty_splat?",function(){var $a,self=this;return($a=self.$value()["$=="](["nil"]))!==false&&$a!==nil?$a:self.$value()["$=="](["paren",["nil"]])});return(Opal.defn(self,"$compile",function(){var $a,self=this;if(($a=self["$empty_splat?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("[]")}else if(self.$value().$type()["$=="]("sym")){return self.$push("[",self.$expr(self.$value()),"]")}else{return self.$push("Opal.to_a(",self.$recv(self.$value()),")")}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $OrNode(){}var self=$OrNode=$klass($base,$super,"OrNode",$OrNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("or");self.$children("lhs","rhs");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_2,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_2=function(tmp){var self=TMP_2.$$s||this;if(tmp==null)tmp=nil;self.$push("((("+tmp+" = ");self.$push(self.$expr(self.$lhs()));self.$push(") !== false && "+tmp+" !== nil) ? "+tmp+" : ");self.$push(self.$expr(self.$rhs()));return self.$push(")")},TMP_2.$$s=self,TMP_2),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $AndNode(){}var self=$AndNode=$klass($base,$super,"AndNode",$AndNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("and");self.$children("lhs","rhs");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_3,self=this,truthy_opt=nil;truthy_opt=nil;return($a=($b=self).$with_temp,$a.$$p=(TMP_3=function(tmp){var self=TMP_3.$$s||this,$a;if(tmp==null)tmp=nil;if(($a=truthy_opt=self.$js_truthy_optimize(self.$lhs()))!==nil&&(!$a.$$is_boolean||$a==true)){self.$push("(("+tmp+" = ",truthy_opt);self.$push(") ? ");self.$push(self.$expr(self.$rhs()));return self.$push(" : ",self.$expr(self.$lhs()),")")}else{self.$push("("+tmp+" = ");self.$push(self.$expr(self.$lhs()));self.$push(", "+tmp+" !== false && "+tmp+" !== nil ?");self.$push(self.$expr(self.$rhs()));return self.$push(" : "+tmp+")")}},TMP_3.$$s=self,TMP_3),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ReturnNode(){}var self=$ReturnNode=$klass($base,$super,"ReturnNode",$ReturnNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("return");self.$children("value");Opal.defn(self,"$return_val",function(){var $a,self=this;if(($a=self.$value()["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$expr(self.$s("nil"))}else if($rb_gt(self.$children().$size(),1)){return self.$expr(($a=self).$s.apply($a,["array"].concat(Opal.to_a(self.$children()))))}else{return self.$expr(self.$value())}});Opal.defn(self,"$return_in_iter?",function(){var $a,$b,self=this,parent_def=nil;if(($a=($b=self.$scope()["$iter?"](),$b!==false&&$b!==nil?parent_def=self.$scope().$find_parent_def():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return parent_def}else{return nil}});Opal.defn(self,"$return_expr_in_def?",function(){var $a,$b,self=this;if(($a=($b=self["$expr?"](),$b!==false&&$b!==nil?self.$scope()["$def?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$scope()}else{return nil}});Opal.defn(self,"$scope_to_catch_return",function(){var $a,self=this;return($a=self["$return_in_iter?"]())!==false&&$a!==nil?$a:self["$return_expr_in_def?"]()});return(Opal.defn(self,"$compile",function(){var $a,$b,self=this,def_scope=nil;if(($a=def_scope=self.$scope_to_catch_return())!==nil&&(!$a.$$is_boolean||$a==true)){$a=[true],$b=def_scope,$b["$catch_return="].apply($b,$a),$a[$a.length-1];return self.$push("Opal.ret(",self.$return_val(),")")}else if(($a=self["$stmt?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("return ",self.$return_val())}else{return self.$raise($scope.get("SyntaxError"),"void value expression: cannot return as an expression")}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $JSReturnNode(){}var self=$JSReturnNode=$klass($base,$super,"JSReturnNode",$JSReturnNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("js_return");self.$children("value");return(Opal.defn(self,"$compile",function(){var self=this;self.$push("return ");return self.$push(self.$expr(self.$value()))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $JSTempNode(){}var self=$JSTempNode=$klass($base,$super,"JSTempNode",$JSTempNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("js_tmp");self.$children("value");return(Opal.defn(self,"$compile",function(){var self=this;return self.$push(self.$value().$to_s())}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $BlockPassNode(){}var self=$BlockPassNode=$klass($base,$super,"BlockPassNode",$BlockPassNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("block_pass");self.$children("value");return(Opal.defn(self,"$compile",function(){var self=this;return self.$push(self.$expr(self.$s("call",self.$value(),"to_proc",self.$s("arglist"))))}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/definitions"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$push","$process","$value","$each","$[]","$==","$<<","$expr","$s","$to_s","$>","$length","$!=","$first","$line","$mid_to_jsid","$new_name","$old_name","$class?","$scope","$module?","$methods","$!","$stmt?","$type","$body","$stmt","$returns","$compiler","$wrap","$each_with_index","$empty?","$stmt_join","$find_inline_yield","$child_is_expr?","$class_scope?","$current_indent","$raw_expression?","$include?","$===","$[]=","$+","$has_temp?","$add_temp"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $SvalueNode(){}var self=$SvalueNode=$klass($base,$super,"SvalueNode",$SvalueNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("svalue");self.$children("value");return(Opal.defn(self,"$compile",function(){var self=this;return self.$push(self.$process(self.$value(),self.level))}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $UndefNode(){}var self=$UndefNode=$klass($base,$super,"UndefNode",$UndefNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("undef");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this;return($a=($b=self.$children()).$each,$a.$$p=(TMP_1=function(child){var self=TMP_1.$$s||this,$a,$b,value=nil,statements=nil;if(child==null)child=nil;value=child["$[]"](1);statements=[];if(child["$[]"](0)["$=="]("js_return")){value=value["$[]"](1);statements["$<<"](self.$expr(self.$s("js_return")))}statements["$<<"]("Opal.udef(self, '$"+value.$to_s()+"');");if(($a=($b=$rb_gt(self.$children().$length(),1))?child["$!="](self.$children().$first()):$rb_gt(self.$children().$length(),1))!==nil&&(!$a.$$is_boolean||$a==true)){return($a=self).$line.apply($a,Opal.to_a(statements))}else{return($b=self).$push.apply($b,Opal.to_a(statements))}},TMP_1.$$s=self,TMP_1),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $AliasNode(){}var self=$AliasNode=$klass($base,$super,"AliasNode",$AliasNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("alias");self.$children("new_name","old_name");Opal.defn(self,"$new_mid",function(){var self=this;return self.$mid_to_jsid(self.$new_name()["$[]"](1).$to_s())});Opal.defn(self,"$old_mid",function(){var self=this;return self.$mid_to_jsid(self.$old_name()["$[]"](1).$to_s())});return(Opal.defn(self,"$compile",function(){var $a,$b,self=this;if(($a=($b=self.$scope()["$class?"]())!==false&&$b!==nil?$b:self.$scope()["$module?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$scope().$methods()["$<<"]("$"+self.$new_name()["$[]"](1))}return self.$push("Opal.alias(self, '"+self.$new_name()["$[]"](1)+"', '"+self.$old_name()["$[]"](1)+"')")}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $BeginNode(){}var self=$BeginNode=$klass($base,$super,"BeginNode",$BeginNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("begin");self.$children("body");return(Opal.defn(self,"$compile",function(){var $a,$b,self=this;if(($a=($b=self["$stmt?"]()["$!"](),$b!==false&&$b!==nil?self.$body().$type()["$=="]("block"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){self.$push(self.$stmt(self.$compiler().$returns(self.$body())));return self.$wrap("(function() {","})()")}else{return self.$push(self.$process(self.$body(),self.level))}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $ParenNode(){}var self=$ParenNode=$klass($base,$super,"ParenNode",$ParenNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("paren");self.$children("body");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_2,self=this;if(self.$body().$type()["$=="]("block")){($a=($b=self.$body().$children()).$each_with_index,$a.$$p=(TMP_2=function(child,idx){var self=TMP_2.$$s||this;if(child==null)child=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(", ")}return self.$push(self.$expr(child))},TMP_2.$$s=self,TMP_2),$a).call($b);return self.$wrap("(",")")}else{self.$push(self.$process(self.$body(),self.level));if(($a=self["$stmt?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self.$wrap("(",")")}}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $BlockNode(){}var self=$BlockNode=$klass($base,$super,"BlockNode",$BlockNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("block");Opal.defn(self,"$compile",function(){var $a,$b,TMP_3,self=this;if(($a=self.$children()["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("nil")}return($a=($b=self.$children()).$each_with_index,$a.$$p=(TMP_3=function(child,idx){var self=TMP_3.$$s||this,$a,yasgn=nil;if(self.level==null)self.level=nil;if(child==null)child=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(self.$stmt_join())}if(($a=yasgn=self.$find_inline_yield(child))!==nil&&(!$a.$$is_boolean||$a==true)){self.$push(self.$compiler().$process(yasgn,self.level));self.$push(";")}self.$push(self.$compiler().$process(child,self.level));if(($a=self["$child_is_expr?"](child))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push(";")}else{return nil}},TMP_3.$$s=self,TMP_3),$a).call($b)});Opal.defn(self,"$stmt_join",function(){var $a,self=this;if(($a=self.$scope()["$class_scope?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return"\n\n"+self.$current_indent()}else{return"\n"+self.$current_indent()}});Opal.defn(self,"$child_is_expr?",function(child){var $a,self=this;return $a=self["$raw_expression?"](child),$a!==false&&$a!==nil?["stmt","stmt_closure"]["$include?"](self.level):$a});Opal.defn(self,"$raw_expression?",function(child){var self=this;return["xstr","dxstr"]["$include?"](child.$type())["$!"]()});return(Opal.defn(self,"$find_inline_yield",function(stmt){var $a,$b,TMP_4,$c,TMP_5,self=this,found=nil,$case=nil,arglist=nil;found=nil;$case=stmt.$first();if("js_return"["$==="]($case)){if(($a=found=self.$find_inline_yield(stmt["$[]"](1)))!==nil&&(!$a.$$is_boolean||$a==true)){found=found["$[]"](2)}}else if("array"["$==="]($case)){($a=($b=stmt["$[]"]($range(1,-1,false))).$each_with_index,$a.$$p=(TMP_4=function(el,idx){var self=TMP_4.$$s||this;if(el==null)el=nil;if(idx==null)idx=nil;if(el.$first()["$=="]("yield")){found=el;return stmt["$[]="]($rb_plus(idx,1),self.$s("js_tmp","$yielded"))}else{return nil}},TMP_4.$$s=self,TMP_4),$a).call($b)}else if("call"["$==="]($case)){arglist=stmt["$[]"](3);($a=($c=arglist["$[]"]($range(1,-1,false))).$each_with_index,$a.$$p=(TMP_5=function(el,idx){var self=TMP_5.$$s||this;if(el==null)el=nil;if(idx==null)idx=nil;if(el.$first()["$=="]("yield")){found=el;return arglist["$[]="]($rb_plus(idx,1),self.$s("js_tmp","$yielded"))}else{return nil}},TMP_5.$$s=self,TMP_5),$a).call($c)}if(found!==false&&found!==nil){if(($a=self.$scope()["$has_temp?"]("$yielded"))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$scope().$add_temp("$yielded")}return self.$s("yasgn","$yielded",found)}else{return nil}}),nil)&&"find_inline_yield"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/yield"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$find_yielding_scope","$uses_block!","$block_name","$yields_single_arg?","$push","$expr","$first","$wrap","$s","$uses_splat?","$scope","$def?","$parent","$!","$==","$size","$any?","$type","$handle","$compile_call","$children","$stmt?","$with_temp","$[]","$yield_args","$var_name"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $BaseYieldNode(){}var self=$BaseYieldNode=$klass($base,$super,"BaseYieldNode",$BaseYieldNode);var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$compile_call",function(children,level){var $a,$b,self=this,yielding_scope=nil,block_name=nil;yielding_scope=self.$find_yielding_scope();yielding_scope["$uses_block!"]();block_name=($a=yielding_scope.$block_name())!==false&&$a!==nil?$a:"$yield";if(($a=self["$yields_single_arg?"](children))!==nil&&(!$a.$$is_boolean||$a==true)){self.$push(self.$expr(children.$first()));return self.$wrap("Opal.yield1("+block_name+", ",")")}else{self.$push(self.$expr(($a=self).$s.apply($a,["arglist"].concat(Opal.to_a(children)))));if(($b=self["$uses_splat?"](children))!==nil&&(!$b.$$is_boolean||$b==true)){return self.$wrap("Opal.yieldX("+block_name+", ",")")}else{return self.$wrap("Opal.yieldX("+block_name+", [","])")}}});Opal.defn(self,"$find_yielding_scope",function(){var $a,$b,$c,self=this,working=nil;working=self.$scope();while(working!==false&&working!==nil){if(($b=($c=working.$block_name())!==false&&$c!==nil?$c:working["$def?"]())!==nil&&(!$b.$$is_boolean||$b==true)){break}working=working.$parent()}return working});Opal.defn(self,"$yields_single_arg?",function(children){var $a,self=this;return $a=self["$uses_splat?"](children)["$!"](),$a!==false&&$a!==nil?children.$size()["$=="](1):$a});return(Opal.defn(self,"$uses_splat?",function(children){var $a,$b,TMP_1,self=this;return($a=($b=children)["$any?"],$a.$$p=(TMP_1=function(child){var self=TMP_1.$$s||this;if(child==null)child=nil;return child.$type()["$=="]("splat")},TMP_1.$$s=self,TMP_1),$a).call($b)}),nil)&&"uses_splat?"})($scope.base,$scope.get("Base"));(function($base,$super){function $YieldNode(){}var self=$YieldNode=$klass($base,$super,"YieldNode",$YieldNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("yield");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_2,self=this;self.$compile_call(self.$children(),self.level);if(($a=self["$stmt?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("if ("," === $breaker) return $breaker.$v")}else{return($a=($b=self).$with_temp,$a.$$p=(TMP_2=function(tmp){var self=TMP_2.$$s||this;if(tmp==null)tmp=nil;return self.$wrap("((("+tmp+" = ",") === $breaker) ? $breaker.$v : "+tmp+")")},TMP_2.$$s=self,TMP_2),$a).call($b)}}),nil)&&"compile"})($scope.base,$scope.get("BaseYieldNode"));(function($base,$super){function $YasgnNode(){}var self=$YasgnNode=$klass($base,$super,"YasgnNode",$YasgnNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("yasgn");self.$children("var_name","yield_args");return(Opal.defn(self,"$compile",function(){var $a,self=this;self.$compile_call(($a=self).$s.apply($a,Opal.to_a(self.$yield_args()["$[]"]($range(1,-1,false)))),"stmt");return self.$wrap("if (("+self.$var_name()+" = ",") === $breaker) return $breaker.$v")}),nil)&&"compile"})($scope.base,$scope.get("BaseYieldNode"));(function($base,$super){function $ReturnableYieldNode(){}var self=$ReturnableYieldNode=$klass($base,$super,"ReturnableYieldNode",$ReturnableYieldNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("returnable_yield");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_3,self=this;self.$compile_call(self.$children(),self.level);return($a=($b=self).$with_temp,$a.$$p=(TMP_3=function(tmp){var self=TMP_3.$$s||this;if(tmp==null)tmp=nil;return self.$wrap("return "+tmp+" = ",", "+tmp+" === $breaker ? "+tmp+" : "+tmp)},TMP_3.$$s=self,TMP_3),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("BaseYieldNode"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/rescue"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$stmt?","$lhs","$returns","$compiler","$rhs","$push","$expr","$body","$rescue_val","$wrap","$line","$process","$body_sexp","$ensr_sexp","$wrap_in_closure?","$begn","$ensr","$s","$recv?","$expr?","$indent","$body_code","$each_with_index","$==","$type","$[]","$!","$empty?","$rescue_exprs","$rescue_variable","$[]=","$rescue_body","$===","$include?","$rescue_variable?","$last","$args","$dup","$pop"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $RescueModNode(){}var self=$RescueModNode=$klass($base,$super,"RescueModNode",$RescueModNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("rescue_mod");self.$children("lhs","rhs");Opal.defn(self,"$body",function(){var $a,self=this;if(($a=self["$stmt?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$lhs()}else{return self.$compiler().$returns(self.$lhs())}});Opal.defn(self,"$rescue_val",function(){var $a,self=this;if(($a=self["$stmt?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$rhs()}else{return self.$compiler().$returns(self.$rhs())}});return(Opal.defn(self,"$compile",function(){var $a,self=this;self.$push("try {",self.$expr(self.$body())," } catch ($err) { ",self.$expr(self.$rescue_val())," }");if(($a=self["$stmt?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self.$wrap("(function() {","})()")}}),nil)&&"compile"})($scope.base,$scope.get("Base"));(function($base,$super){function $EnsureNode(){}var self=$EnsureNode=$klass($base,$super,"EnsureNode",$EnsureNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("ensure");self.$children("begn","ensr");Opal.defn(self,"$compile",function(){var $a,self=this;self.$push("try {");self.$line(self.$compiler().$process(self.$body_sexp(),self.level));self.$line("} finally {");self.$line(self.$compiler().$process(self.$ensr_sexp(),self.level));self.$line("}");if(($a=self["$wrap_in_closure?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(function() {","; })()")}else{return nil}});Opal.defn(self,"$body_sexp",function(){var $a,self=this;if(($a=self["$wrap_in_closure?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compiler().$returns(self.$begn())}else{return self.$begn()}});Opal.defn(self,"$ensr_sexp",function(){var $a,self=this;return($a=self.$ensr())!==false&&$a!==nil?$a:self.$s("nil")});return(Opal.defn(self,"$wrap_in_closure?",function(){var $a,self=this;return($a=self["$recv?"]())!==false&&$a!==nil?$a:self["$expr?"]()}),nil)&&"wrap_in_closure?"})($scope.base,$scope.get("Base"));(function($base,$super){function $RescueNode(){}var self=$RescueNode=$klass($base,$super,"RescueNode",$RescueNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("rescue");self.$children("body");Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,$c,TMP_2,self=this,handled_else=nil;handled_else=false;self.$push("try {");self.$line(($a=($b=self).$indent,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this;if(self.level==null)self.level=nil;return self.$process(self.$body_code(),self.level)},TMP_1.$$s=self,TMP_1),$a).call($b));self.$line("} catch ($err) {");($a=($c=self.$children()["$[]"]($range(1,-1,false))).$each_with_index,$a.$$p=(TMP_2=function(child,idx){var self=TMP_2.$$s||this,$a,$b,TMP_3;if(child==null)child=nil;if(idx==null)idx=nil;if(child.$type()["$=="]("resbody")){}else{handled_else=true}if(idx["$=="](0)){}else{self.$push("else ")}return self.$push(($a=($b=self).$indent,$a.$$p=(TMP_3=function(){var self=TMP_3.$$s||this;if(self.level==null)self.level=nil;return self.$process(child,self.level)},TMP_3.$$s=self,TMP_3),$a).call($b))},TMP_2.$$s=self,TMP_2),$a).call($c);if(handled_else!==false&&handled_else!==nil){}else{self.$push("else { throw $err; }")}self.$line("}");if(($a=self["$expr?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(function() { ","})()")}else{return nil}});return(Opal.defn(self,"$body_code",function(){var $a,self=this,body_code=nil;body_code=function(){if(self.$body().$type()["$=="]("resbody")){return self.$s("nil")}else{return self.$body()}return nil}();if(($a=self["$stmt?"]()["$!"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compiler().$returns(body_code)}else{return body_code}}),nil)&&"body_code"})($scope.base,$scope.get("Base"));(function($base,$super){function $ResBodyNode(){}var self=$ResBodyNode=$klass($base,$super,"ResBodyNode",$ResBodyNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("resbody");self.$children("args","body");Opal.defn(self,"$compile",function(){var $a,$b,TMP_4,$c,TMP_5,$d,TMP_6,self=this,variable=nil;self.$push("if (");if(($a=self.$rescue_exprs()["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$push("true")}else{self.$push("Opal.rescue($err, [");($a=($b=self.$rescue_exprs()).$each_with_index,$a.$$p=(TMP_4=function(rexpr,idx){var self=TMP_4.$$s||this;if(rexpr==null)rexpr=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(", ")}return self.$push(self.$expr(rexpr))},TMP_4.$$s=self,TMP_4),$a).call($b);self.$push("])")}self.$push(") {");if(($a=variable=self.$rescue_variable())!==nil&&(!$a.$$is_boolean||$a==true)){variable["$[]="](2,self.$s("js_tmp","$err"));self.$push(self.$expr(variable),";")}self.$line("try {");($a=($c=self).$indent,$a.$$p=(TMP_5=function(){var self=TMP_5.$$s||this;if(self.level==null)self.level=nil;return self.$line(self.$process(self.$rescue_body(),self.level))},TMP_5.$$s=self,TMP_5),$a).call($c);self.$line("} finally {");($a=($d=self).$indent,$a.$$p=(TMP_6=function(){var self=TMP_6.$$s||this;return self.$line('Opal.gvars["!"] = Opal.exceptions.pop() || Opal.nil;')},TMP_6.$$s=self,TMP_6),$a).call($d);self.$line("}");return self.$line("}")});Opal.defn(self,"$rescue_variable?",function(variable){var $a,self=this;return $a=$scope.get("Sexp")["$==="](variable),$a!==false&&$a!==nil?["lasgn","iasgn"]["$include?"](variable.$type()):$a});Opal.defn(self,"$rescue_variable",function(){var $a,self=this;if(($a=self["$rescue_variable?"](self.$args().$last()))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$args().$last().$dup()}else{return nil}});Opal.defn(self,"$rescue_exprs",function(){var $a,self=this,exprs=nil;exprs=self.$args().$dup();if(($a=self["$rescue_variable?"](exprs.$last()))!==nil&&(!$a.$$is_boolean||$a==true)){exprs.$pop()}return exprs.$children()});return(Opal.defn(self,"$rescue_body",function(){var $a,self=this,body_code=nil;body_code=($a=self.$body())!==false&&$a!==nil?$a:self.$s("nil");if(($a=self["$stmt?"]()["$!"]())!==nil&&(!$a.$$is_boolean||$a==true)){body_code=self.$compiler().$returns(body_code)}return body_code}),nil)&&"rescue_body"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/case"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$in_case","$condition","$[]=","$case_stmt","$add_local","$push","$expr","$each_with_index","$==","$type","$needs_closure?","$returns","$compiler","$stmt","$case_parts","$!","$wrap","$stmt?","$[]","$s","$js_truthy","$when_checks","$process","$body_code","$whens","$body"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $CaseNode(){}var self=$CaseNode=$klass($base,$super,"CaseNode",$CaseNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("case");self.$children("condition");Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this,handled_else=nil;handled_else=false;return($a=($b=self.$compiler()).$in_case,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,$a,$b,TMP_2,$c;if(($a=self.$condition())!==nil&&(!$a.$$is_boolean||$a==true)){self.$case_stmt()["$[]="]("cond",true);self.$add_local("$case");self.$push("$case = ",self.$expr(self.$condition()),";")}($a=($b=self.$case_parts()).$each_with_index,$a.$$p=(TMP_2=function(wen,idx){var self=TMP_2.$$s||this,$a,$b;if(wen==null)wen=nil;if(idx==null)idx=nil;if(($a=($b=wen!==false&&wen!==nil)?wen.$type()["$=="]("when"):wen)!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=self["$needs_closure?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$compiler().$returns(wen)}if(idx["$=="](0)){}else{self.$push("else ")}return self.$push(self.$stmt(wen))}else if(wen!==false&&wen!==nil){handled_else=true;if(($a=self["$needs_closure?"]())!==nil&&(!$a.$$is_boolean||$a==true)){wen=self.$compiler().$returns(wen)}return self.$push("else {",self.$stmt(wen),"}")}else{return nil}},TMP_2.$$s=self,TMP_2),$a).call($b);if(($a=($c=self["$needs_closure?"](),$c!==false&&$c!==nil?handled_else["$!"]():$c))!==nil&&(!$a.$$is_boolean||$a==true)){self.$push("else { return nil }")}if(($a=self["$needs_closure?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(function() {","})()")}else{return nil}},TMP_1.$$s=self,TMP_1),$a).call($b)});Opal.defn(self,"$needs_closure?",function(){var self=this;return self["$stmt?"]()["$!"]()});Opal.defn(self,"$case_parts",function(){var self=this;return self.$children()["$[]"]($range(1,-1,false))});return(Opal.defn(self,"$case_stmt",function(){var self=this;return self.$compiler().$case_stmt()}),nil)&&"case_stmt"})($scope.base,$scope.get("Base"));(function($base,$super){function $WhenNode(){}var self=$WhenNode=$klass($base,$super,"WhenNode",$WhenNode);var def=self.$$proto,$scope=self.$$scope;def.level=nil;self.$handle("when");self.$children("whens","body");Opal.defn(self,"$compile",function(){var $a,$b,TMP_3,self=this;self.$push("if (");($a=($b=self.$when_checks()).$each_with_index,$a.$$p=(TMP_3=function(check,idx){var self=TMP_3.$$s||this,$a,call=nil;if(check==null)check=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(" || ")}if(check.$type()["$=="]("splat")){self.$push("(function($splt) { for (var i = 0; i < $splt.length; i++) {");self.$push("if ($splt[i]['$===']($case)) { return true; }");return self.$push("} return false; })(",self.$expr(check["$[]"](1)),")")}else if(($a=self.$case_stmt()["$[]"]("cond"))!==nil&&(!$a.$$is_boolean||$a==true)){call=self.$s("call",check,"===",self.$s("arglist",self.$s("js_tmp","$case")));return self.$push(self.$expr(call))}else{return self.$push(self.$js_truthy(check))}},TMP_3.$$s=self,TMP_3),$a).call($b);return self.$push(") {",self.$process(self.$body_code(),self.level),"}")});Opal.defn(self,"$when_checks",function(){var self=this;return self.$whens().$children()});Opal.defn(self,"$case_stmt",function(){var self=this;return self.$compiler().$case_stmt()});return(Opal.defn(self,"$body_code",function(){var $a,self=this;return($a=self.$body())!==false&&$a!==nil?$a:self.$s("nil")}),nil)&&"body_code"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/super"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$children","$arglist","$iter","$expr","$iter_sexp","$uses_block!","$scope","$def?","$identify!","$name","$parent","$defs","$push","$to_s","$mid","$iter?","$get_super_chain","$join","$map","$raise","$s","$handle","$compile_dispatcher","$wrap","$has_splat?","$args","$fragment","$uses_zuper=","$any?","$==","$type"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $BaseSuperNode(){}var self=$BaseSuperNode=$klass($base,$super,"BaseSuperNode",$BaseSuperNode);var def=self.$$proto,$scope=self.$$scope;self.$children("arglist","iter");Opal.defn(self,"$compile_dispatcher",function(){var $a,$b,TMP_1,self=this,iter=nil,scope_name=nil,class_name=nil,chain=nil,cur_defn=nil,mid=nil,trys=nil;if(($a=($b=self.$arglist())!==false&&$b!==nil?$b:self.$iter())!==nil&&(!$a.$$is_boolean||$a==true)){iter=self.$expr(self.$iter_sexp())}else{self.$scope()["$uses_block!"]();iter="$iter"}if(($a=self.$scope()["$def?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$scope()["$uses_block!"]();scope_name=self.$scope()["$identify!"]();class_name=function(){if(($a=self.$scope().$parent().$name())!==nil&&(!$a.$$is_boolean||$a==true)){return"$"+self.$scope().$parent().$name()}else{return"self.$$class.$$proto"}return nil}();if(($a=self.$scope().$defs())!==nil&&(!$a.$$is_boolean||$a==true)){self.$push("Opal.find_super_dispatcher(self, '"+self.$scope().$mid().$to_s()+"', "+scope_name+", ");self.$push(iter);return self.$push(", "+class_name+")")}else{self.$push("Opal.find_super_dispatcher(self, '"+self.$scope().$mid().$to_s()+"', "+scope_name+", ");self.$push(iter);return self.$push(")")}}else if(($a=self.$scope()["$iter?"]())!==nil&&(!$a.$$is_boolean||$a==true)){ | |
$a=Opal.to_ary(self.$scope().$get_super_chain()),chain=$a[0]==null?nil:$a[0],cur_defn=$a[1]==null?nil:$a[1],mid=$a[2]==null?nil:$a[2];trys=($a=($b=chain).$map,$a.$$p=(TMP_1=function(c){var self=TMP_1.$$s||this;if(c==null)c=nil;return""+c+".$$def"},TMP_1.$$s=self,TMP_1),$a).call($b).$join(" || ");return self.$push("Opal.find_iter_super_dispatcher(self, "+mid+", ("+trys+" || "+cur_defn+"), null)")}else{return self.$raise("Cannot call super() from outside a method block")}});Opal.defn(self,"$args",function(){var $a,self=this;return($a=self.$arglist())!==false&&$a!==nil?$a:self.$s("arglist")});return(Opal.defn(self,"$iter_sexp",function(){var $a,self=this;return($a=self.$iter())!==false&&$a!==nil?$a:self.$s("js_tmp","null")}),nil)&&"iter_sexp"})($scope.base,$scope.get("Base"));(function($base,$super){function $DefinedSuperNode(){}var self=$DefinedSuperNode=$klass($base,$super,"DefinedSuperNode",$DefinedSuperNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("defined_super");return(Opal.defn(self,"$compile",function(){var self=this;self.$compile_dispatcher();return self.$wrap("((",') != null ? "super" : nil)')}),nil)&&"compile"})($scope.base,$scope.get("BaseSuperNode"));(function($base,$super){function $SuperNode(){}var self=$SuperNode=$klass($base,$super,"SuperNode",$SuperNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("super");self.$children("arglist","iter");Opal.defn(self,"$compile",function(){var $a,$b,self=this,splat=nil,args=nil;if(($a=($b=self.$arglist())!==false&&$b!==nil?$b:self.$iter())!==nil&&(!$a.$$is_boolean||$a==true)){splat=self["$has_splat?"]();args=self.$expr(self.$args());if(splat!==false&&splat!==nil){}else{args=[self.$fragment("["),args,self.$fragment("]")]}}else if(($a=self.$scope()["$def?"]())!==nil&&(!$a.$$is_boolean||$a==true)){$a=[true],$b=self.$scope(),$b["$uses_zuper="].apply($b,$a),$a[$a.length-1];args=self.$fragment("$zuper")}else{args=self.$fragment("$slice.call(arguments)")}self.$compile_dispatcher();self.$push(".apply(self, ");($a=self).$push.apply($a,Opal.to_a(args));return self.$push(")")});return(Opal.defn(self,"$has_splat?",function(){var $a,$b,TMP_2,self=this;return($a=($b=self.$args().$children())["$any?"],$a.$$p=(TMP_2=function(child){var self=TMP_2.$$s||this;if(child==null)child=nil;return child.$type()["$=="]("splat")},TMP_2.$$s=self,TMP_2),$a).call($b)}),nil)&&"has_splat?"})($scope.base,$scope.get("BaseSuperNode"))})($scope.base)}($scope.base)};Opal.modules["opal/version"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module;return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;Opal.cdecl($scope,"VERSION","0.9.0.beta2")}($scope.base)};Opal.modules["opal/nodes/top"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$push","$version_comment","$opening","$in_scope","$line","$inspect","$to_s","$dynamic_require_severity","$compiler","$compile_config","$stmt","$stmts","$is_a?","$add_temp","$add_used_helpers","$add_used_operators","$to_vars","$scope","$compile_method_stubs","$compile_irb_vars","$compile_end_construct","$closing","$requirable?","$cleanpath","$Pathname","$file","$returns","$body","$irb?","$to_a","$helpers","$each","$operator_helpers","$[]","$method_missing?","$method_calls","$join","$map","$empty?","$eof_content","$arity_check?","$freezing?","$tainting?"]);self.$require("pathname");self.$require("opal/version");self.$require("opal/nodes/scope");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $TopNode(){}var self=$TopNode=$klass($base,$super,"TopNode",$TopNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("top");self.$children("body");Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this;self.$push(self.$version_comment());self.$opening();($a=($b=self).$in_scope,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,$a,body_code=nil;self.$line("Opal.dynamic_require_severity = "+self.$compiler().$dynamic_require_severity().$to_s().$inspect()+";");self.$compile_config();body_code=self.$stmt(self.$stmts());if(($a=body_code["$is_a?"]($scope.get("Array")))!==nil&&(!$a.$$is_boolean||$a==true)){}else{body_code=[body_code]}self.$add_temp("self = Opal.top");self.$add_temp("$scope = Opal");self.$add_temp("nil = Opal.nil");self.$add_used_helpers();self.$add_used_operators();self.$line(self.$scope().$to_vars());self.$compile_method_stubs();self.$compile_irb_vars();self.$compile_end_construct();return self.$line(body_code)},TMP_1.$$s=self,TMP_1),$a).call($b);return self.$closing()});Opal.defn(self,"$opening",function(){var $a,self=this,path=nil;if(($a=self.$compiler()["$requirable?"]())!==nil&&(!$a.$$is_boolean||$a==true)){path=self.$Pathname(self.$compiler().$file()).$cleanpath().$to_s();return self.$line("Opal.modules["+path.$inspect()+"] = function(Opal) {")}else{return self.$line("(function(Opal) {")}});Opal.defn(self,"$closing",function(){var $a,self=this;if(($a=self.$compiler()["$requirable?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$line("};\n")}else{return self.$line("})(Opal);\n")}});Opal.defn(self,"$stmts",function(){var self=this;return self.$compiler().$returns(self.$body())});Opal.defn(self,"$compile_irb_vars",function(){var $a,self=this;if(($a=self.$compiler()["$irb?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$line("if (!Opal.irb_vars) { Opal.irb_vars = {}; }")}else{return nil}});Opal.defn(self,"$add_used_helpers",function(){var $a,$b,TMP_2,self=this,helpers=nil;helpers=self.$compiler().$helpers().$to_a();return($a=($b=helpers.$to_a()).$each,$a.$$p=(TMP_2=function(h){var self=TMP_2.$$s||this;if(h==null)h=nil;return self.$add_temp("$"+h+" = Opal."+h)},TMP_2.$$s=self,TMP_2),$a).call($b)});Opal.defn(self,"$add_used_operators",function(){var $a,$b,TMP_3,self=this,operators=nil;operators=self.$compiler().$operator_helpers().$to_a();return($a=($b=operators).$each,$a.$$p=(TMP_3=function(op){var self=TMP_3.$$s||this,name=nil;if(op==null)op=nil;name=$scope.get("Nodes").$$scope.get("CallNode").$$scope.get("OPERATORS")["$[]"](op);self.$line("function $rb_"+name+"(lhs, rhs) {");self.$line(" return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs "+op+" rhs : lhs['$"+op+"'](rhs);");return self.$line("}")},TMP_3.$$s=self,TMP_3),$a).call($b)});Opal.defn(self,"$compile_method_stubs",function(){var $a,$b,TMP_4,self=this,calls=nil,stubs=nil;if(($a=self.$compiler()["$method_missing?"]())!==nil&&(!$a.$$is_boolean||$a==true)){calls=self.$compiler().$method_calls();stubs=($a=($b=calls.$to_a()).$map,$a.$$p=(TMP_4=function(k){var self=TMP_4.$$s||this;if(k==null)k=nil;return"'$"+k+"'"},TMP_4.$$s=self,TMP_4),$a).call($b).$join(", ");if(($a=stubs["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self.$line("Opal.add_stubs(["+stubs+"]);")}}else{return nil}});Opal.defn(self,"$compile_end_construct",function(){var $a,self=this,content=nil;if(($a=content=self.$compiler().$eof_content())!==nil&&(!$a.$$is_boolean||$a==true)){self.$line("var $__END__ = Opal.Object.$new();");return self.$line("$__END__.$read = function() { return "+content.$inspect()+"; };")}else{return nil}});Opal.defn(self,"$compile_config",function(){var self=this;self.$line("var OPAL_CONFIG = { ");self.$push("method_missing: "+self.$compiler()["$method_missing?"]()+", ");self.$push("arity_check: "+self.$compiler()["$arity_check?"]()+", ");self.$push("freezing: "+self.$compiler()["$freezing?"]()+", ");self.$push("tainting: "+self.$compiler()["$tainting?"]()+" ");return self.$push("};")});return(Opal.defn(self,"$version_comment",function(){var self=this;return"/* Generated by Opal "+$scope.get("Opal").$$scope.get("VERSION")+" */"}),nil)&&"version_comment"})($scope.base,$scope.get("ScopeNode"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/while"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$with_temp","$js_truthy","$test","$in_while","$wrap_in_closure?","$[]=","$while_loop","$stmt","$body","$uses_redo?","$push","$while_open","$while_close","$line","$compiler","$wrap","$[]","$expr?","$recv?"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $WhileNode(){}var self=$WhileNode=$klass($base,$super,"WhileNode",$WhileNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("while");self.$children("test","body");Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this;($a=($b=self).$with_temp,$a.$$p=(TMP_1=function(redo_var){var self=TMP_1.$$s||this,$a,$b,TMP_2,test_code=nil;if(redo_var==null)redo_var=nil;test_code=self.$js_truthy(self.$test());return($a=($b=self.$compiler()).$in_while,$a.$$p=(TMP_2=function(){var self=TMP_2.$$s||this,$a,body_code=nil;if(($a=self["$wrap_in_closure?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$while_loop()["$[]="]("closure",true)}self.$while_loop()["$[]="]("redo_var",redo_var);body_code=self.$stmt(self.$body());if(($a=self["$uses_redo?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$push(""+redo_var+" = false; "+self.$while_open()+redo_var+" || ");self.$push(test_code);self.$push(self.$while_close())}else{self.$push(self.$while_open(),test_code,self.$while_close())}if(($a=self["$uses_redo?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$push(""+redo_var+" = false;")}return self.$line(body_code,"}")},TMP_2.$$s=self,TMP_2),$a).call($b)},TMP_1.$$s=self,TMP_1),$a).call($b);if(($a=self["$wrap_in_closure?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$wrap("(function() {","; return nil; })()")}else{return nil}});Opal.defn(self,"$while_open",function(){var self=this;return"while ("});Opal.defn(self,"$while_close",function(){var self=this;return") {"});Opal.defn(self,"$uses_redo?",function(){var self=this;return self.$while_loop()["$[]"]("use_redo")});return(Opal.defn(self,"$wrap_in_closure?",function(){var $a,self=this;return($a=self["$expr?"]())!==false&&$a!==nil?$a:self["$recv?"]()}),nil)&&"wrap_in_closure?"})($scope.base,$scope.get("Base"));(function($base,$super){function $UntilNode(){}var self=$UntilNode=$klass($base,$super,"UntilNode",$UntilNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("until");Opal.defn(self,"$while_open",function(){var self=this;return"while (!("});return(Opal.defn(self,"$while_close",function(){var self=this;return")) {"}),nil)&&"while_close"})($scope.base,$scope.get("WhileNode"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/for"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$with_temp","$==","$type","$args_sexp","$s","$<<","$body_sexp","$first","$insert","$each","$[]","$===","$add_local","$value","$push","$expr"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ForNode(){}var self=$ForNode=$klass($base,$super,"ForNode",$ForNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("for");self.$children("value","args_sexp","body_sexp");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_1=function(loop_var){var self=TMP_1.$$s||this,$a,$b,TMP_2,assign=nil,iter=nil,sexp=nil;if(loop_var==null)loop_var=nil;if(self.$args_sexp().$type()["$=="]("array")){assign=self.$s("masgn",self.$args_sexp());assign["$<<"](self.$s("to_ary",self.$s("js_tmp",loop_var)))}else{assign=self.$args_sexp()["$<<"](self.$s("js_tmp",loop_var))}if(($a=self.$body_sexp())!==nil&&(!$a.$$is_boolean||$a==true)){if(self.$body_sexp().$first()["$=="]("block")){self.$body_sexp().$insert(1,assign);assign=self.$body_sexp()}else{assign=self.$s("block",assign,self.$body_sexp())}}($a=($b=assign.$children()).$each,$a.$$p=(TMP_2=function(sexp){var self=TMP_2.$$s||this,$a,$b,TMP_3,$case=nil;if(sexp==null)sexp=nil;return function(){$case=sexp["$[]"](0);if("lasgn"["$==="]($case)){return self.$add_local(sexp["$[]"](1))}else if("masgn"["$==="]($case)){if(sexp["$[]"](1)["$[]"](0)["$=="]("array")){return($a=($b=sexp["$[]"](1)["$[]"](1)).$each,$a.$$p=(TMP_3=function(sexp){var self=TMP_3.$$s||this;if(sexp==null)sexp=nil;if(sexp["$[]"](0)["$=="]("lasgn")){return self.$add_local(sexp["$[]"](1))}else{return nil}},TMP_3.$$s=self,TMP_3),$a).call($b)}else{return nil}}else{return nil}}()},TMP_2.$$s=self,TMP_2),$a).call($b);iter=self.$s("iter",self.$s("lasgn",loop_var),assign);sexp=self.$s("call",self.$value(),"each",self.$s("arglist"),iter);return self.$push(self.$expr(sexp))},TMP_1.$$s=self,TMP_1),$a).call($b)}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/hash"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2;Opal.add_stubs(["$require","$handle","$each_with_index","$even?","$<<","$children","$all?","$include?","$type","$keys_and_values","$simple_keys?","$compile_hash2","$compile_hash","$helper","$==","$push","$expr","$wrap","$times","$inspect","$to_s","$[]","$[]=","$size","$join"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $HashNode(){}var self=$HashNode=$klass($base,$super,"HashNode",$HashNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("hash");Opal.defn(self,"$keys_and_values",function(){var $a,$b,TMP_1,self=this,keys=nil,values=nil;$a=[[],[]],keys=$a[0],values=$a[1];($a=($b=self.$children()).$each_with_index,$a.$$p=(TMP_1=function(obj,idx){var self=TMP_1.$$s||this,$a;if(obj==null)obj=nil;if(idx==null)idx=nil;if(($a=idx["$even?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return keys["$<<"](obj)}else{return values["$<<"](obj)}},TMP_1.$$s=self,TMP_1),$a).call($b);return[keys,values]});Opal.defn(self,"$simple_keys?",function(keys){var $a,$b,TMP_2,self=this;return($a=($b=keys)["$all?"],$a.$$p=(TMP_2=function(key){var self=TMP_2.$$s||this;if(key==null)key=nil;return["sym","str"]["$include?"](key.$type())},TMP_2.$$s=self,TMP_2),$a).call($b)});Opal.defn(self,"$compile",function(){var $a,self=this,keys=nil,values=nil;$a=Opal.to_ary(self.$keys_and_values()),keys=$a[0]==null?nil:$a[0],values=$a[1]==null?nil:$a[1];if(($a=self["$simple_keys?"](keys))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$compile_hash2(keys,values)}else{return self.$compile_hash()}});Opal.defn(self,"$compile_hash",function(){var $a,$b,TMP_3,self=this;self.$helper("hash");($a=($b=self.$children()).$each_with_index,$a.$$p=(TMP_3=function(child,idx){var self=TMP_3.$$s||this;if(child==null)child=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(", ")}return self.$push(self.$expr(child))},TMP_3.$$s=self,TMP_3),$a).call($b);return self.$wrap("$hash(",")")});return(Opal.defn(self,"$compile_hash2",function(keys,values){var $a,$b,TMP_4,$c,TMP_5,self=this,hash_obj=nil,hash_keys=nil;$a=[$hash2([],{}),[]],hash_obj=$a[0],hash_keys=$a[1];self.$helper("hash2");($a=($b=keys.$size()).$times,$a.$$p=(TMP_4=function(idx){var self=TMP_4.$$s||this,$a,key=nil;if(idx==null)idx=nil;key=keys["$[]"](idx)["$[]"](1).$to_s().$inspect();if(($a=hash_obj["$include?"](key))!==nil&&(!$a.$$is_boolean||$a==true)){}else{hash_keys["$<<"](key)}return hash_obj["$[]="](key,self.$expr(values["$[]"](idx)))},TMP_4.$$s=self,TMP_4),$a).call($b);($a=($c=hash_keys).$each_with_index,$a.$$p=(TMP_5=function(key,idx){var self=TMP_5.$$s||this;if(key==null)key=nil;if(idx==null)idx=nil;if(idx["$=="](0)){}else{self.$push(", ")}self.$push(""+key+": ");return self.$push(hash_obj["$[]"](key))},TMP_5.$$s=self,TMP_5),$a).call($c);return self.$wrap("$hash2(["+hash_keys.$join(", ")+"], {","})")}),nil)&&"compile_hash2"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/array"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$empty?","$children","$push","$each","$==","$type","$expr","$<<","$fragment"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ArrayNode(){}var self=$ArrayNode=$klass($base,$super,"ArrayNode",$ArrayNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("array");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this,code=nil,work=nil,join=nil;if(($a=self.$children()["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("[]")}$a=[[],[]],code=$a[0],work=$a[1];($a=($b=self.$children()).$each,$a.$$p=(TMP_1=function(child){var self=TMP_1.$$s||this,$a,splat=nil,part=nil;if(child==null)child=nil;splat=child.$type()["$=="]("splat");part=self.$expr(child);if(splat!==false&&splat!==nil){if(($a=work["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=code["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){code["$<<"](self.$fragment("[].concat("))["$<<"](part)["$<<"](self.$fragment(")"))}else{code["$<<"](self.$fragment(".concat("))["$<<"](part)["$<<"](self.$fragment(")"))}}else{if(($a=code["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){code["$<<"](self.$fragment("["))["$<<"](work)["$<<"](self.$fragment("]"))}else{code["$<<"](self.$fragment(".concat(["))["$<<"](work)["$<<"](self.$fragment("])"))}code["$<<"](self.$fragment(".concat("))["$<<"](part)["$<<"](self.$fragment(")"))}return work=[]}else{if(($a=work["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{work["$<<"](self.$fragment(", "))}return work["$<<"](part)}},TMP_1.$$s=self,TMP_1),$a).call($b);if(($a=work["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{join=[self.$fragment("["),work,self.$fragment("]")];if(($a=code["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){code=join}else{code.$push([self.$fragment(".concat("),join,self.$fragment(")")])}}return self.$push(code)}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/defined"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$handle","$children","$type","$value","$===","$push","$inspect","$to_s","$expr","$s","$[]","$respond_to?","$__send__","$mid_to_jsid","$with_temp","$handle_block_given_call","$compiler","$wrap","$include?"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $DefinedNode(){}var self=$DefinedNode=$klass($base,$super,"DefinedNode",$DefinedNode);var def=self.$$proto,$scope=self.$$scope;def.sexp=nil;self.$handle("defined");self.$children("value");Opal.defn(self,"$compile",function(){var $a,self=this,type=nil,$case=nil;type=self.$value().$type();return function(){$case=type;if("self"["$==="]($case)||"nil"["$==="]($case)||"false"["$==="]($case)||"true"["$==="]($case)){return self.$push(type.$to_s().$inspect())}else if("lasgn"["$==="]($case)||"iasgn"["$==="]($case)||"gasgn"["$==="]($case)||"cvdecl"["$==="]($case)||"masgn"["$==="]($case)||"op_asgn_or"["$==="]($case)||"op_asgn_and"["$==="]($case)){return self.$push("'assignment'")}else if("paren"["$==="]($case)||"not"["$==="]($case)){return self.$push(self.$expr(self.$s("defined",self.$value()["$[]"](1))))}else if("lvar"["$==="]($case)){return self.$push("'local-variable'")}else{if(($a=self["$respond_to?"]("compile_"+type))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$__send__("compile_"+type)}else{return self.$push("'expression'")}}}()});Opal.defn(self,"$compile_call",function(){var $a,$b,TMP_1,self=this,mid=nil,recv=nil;mid=self.$mid_to_jsid(self.$value()["$[]"](2).$to_s());recv=function(){if(($a=self.$value()["$[]"](1))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$expr(self.$value()["$[]"](1))}else{return"self"}return nil}();return($a=($b=self).$with_temp,$a.$$p=(TMP_1=function(tmp){var self=TMP_1.$$s||this;if(tmp==null)tmp=nil;self.$push("((("+tmp+" = ",recv,""+mid+") && !"+tmp+".$$stub) || ",recv);return self.$push("['$respond_to_missing?']('"+self.$value()["$[]"](2).$to_s()+"') ? 'method' : nil)")},TMP_1.$$s=self,TMP_1),$a).call($b)});Opal.defn(self,"$compile_ivar",function(){var $a,$b,TMP_2,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_2=function(tmp){var self=TMP_2.$$s||this,name=nil;if(tmp==null)tmp=nil;name=self.$value()["$[]"](1).$to_s()["$[]"]($range(1,-1,false));self.$push("(("+tmp+" = self['"+name+"'], "+tmp+" != null && "+tmp+" !== nil) ? ");return self.$push("'instance-variable' : nil)")},TMP_2.$$s=self,TMP_2),$a).call($b)});Opal.defn(self,"$compile_super",function(){var self=this;return self.$push(self.$expr(self.$s("defined_super",self.$value())))});Opal.defn(self,"$compile_yield",function(){var self=this;self.$push(self.$compiler().$handle_block_given_call(self.sexp));return self.$wrap("((",') != null ? "yield" : nil)')});Opal.defn(self,"$compile_xstr",function(){var self=this;self.$push(self.$expr(self.$value()));return self.$wrap("(typeof(",') !== "undefined")')});Opal.alias(self,"compile_dxstr","compile_xstr");Opal.defn(self,"$compile_const",function(){var self=this;return self.$push("($scope."+self.$value()["$[]"](1)+" != null)")});Opal.defn(self,"$compile_colon2",function(){var self=this;self.$push("(function(){ try { return ((");self.$push(self.$expr(self.$value()));self.$push(") != null ? 'constant' : nil); } catch (err) { if (err.$$class");return self.$push(" === Opal.NameError) { return nil; } else { throw(err); }}; })()")});Opal.defn(self,"$compile_colon3",function(){var self=this;return self.$push("(Opal.Object.$$scope."+self.$value()["$[]"](1)+" == null ? nil : 'constant')")});Opal.defn(self,"$compile_cvar",function(){var self=this;return self.$push("(Opal.cvars['"+self.$value()["$[]"](1)+"'] != null ? 'class variable' : nil)")});Opal.defn(self,"$compile_gvar",function(){var $a,$b,TMP_3,self=this,name=nil;name=self.$value()["$[]"](1).$to_s()["$[]"]($range(1,-1,false));if(($a=["~","!"]["$include?"](name))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$push("'global-variable'")}else if(($a=["`","'","+","&"]["$include?"](name))!==nil&&(!$a.$$is_boolean||$a==true)){return($a=($b=self).$with_temp,$a.$$p=(TMP_3=function(tmp){var self=TMP_3.$$s||this;if(tmp==null)tmp=nil;self.$push("(("+tmp+" = $gvars['~'], "+tmp+" != null && "+tmp+" !== nil) ? ");return self.$push("'global-variable' : nil)")},TMP_3.$$s=self,TMP_3),$a).call($b)}else{return self.$push("($gvars["+name.$inspect()+"] != null ? 'global-variable' : nil)")}});return(Opal.defn(self,"$compile_nth_ref",function(){var $a,$b,TMP_4,self=this;return($a=($b=self).$with_temp,$a.$$p=(TMP_4=function(tmp){var self=TMP_4.$$s||this;if(tmp==null)tmp=nil;self.$push("(("+tmp+" = $gvars['~'], "+tmp+" != null && "+tmp+" != nil) ? ");return self.$push("'global-variable' : nil)")},TMP_4.$$s=self,TMP_4),$a).call($b)}),nil)&&"compile_nth_ref"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/masgn"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_ge(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>=rhs:lhs["$>="](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$children","$new_temp","$scope","$==","$type","$rhs","$-","$size","$push","$expr","$[]","$raise","$each_with_index","$dup","$<<","$s","$>=","$[]=","$to_sym","$last","$lhs","$queue_temp"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $MassAssignNode(){}var self=$MassAssignNode=$klass($base,$super,"MassAssignNode",$MassAssignNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("masgn");self.$children("lhs","rhs");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this,tmp=nil,len=nil;tmp=self.$scope().$new_temp();len=0;if(self.$rhs().$type()["$=="]("array")){len=$rb_minus(self.$rhs().$size(),1);self.$push(""+tmp+" = ",self.$expr(self.$rhs()))}else if(self.$rhs().$type()["$=="]("to_ary")){self.$push(""+tmp+" = Opal.to_ary(",self.$expr(self.$rhs()["$[]"](1)),")")}else if(self.$rhs().$type()["$=="]("splat")){self.$push(""+tmp+" = Opal.to_a(",self.$expr(self.$rhs()["$[]"](1)),")")}else{self.$raise("unsupported mlhs type")}($a=($b=self.$lhs().$children()).$each_with_index,$a.$$p=(TMP_1=function(child,idx){var self=TMP_1.$$s||this,$a,$b,$c,$d,part=nil,assign=nil;if(child==null)child=nil;if(idx==null)idx=nil;self.$push(", ");if(child.$type()["$=="]("splat")){if(($a=part=child["$[]"](1))!==nil&&(!$a.$$is_boolean||$a==true)){part=part.$dup();part["$<<"](self.$s("js_tmp","$slice.call("+tmp+", "+idx+")"));return self.$push(self.$expr(part))}else{return nil}}else{if($rb_ge(idx,len)){assign=self.$s("js_tmp","("+tmp+"["+idx+"] == null ? nil : "+tmp+"["+idx+"])")}else{assign=self.$s("js_tmp",""+tmp+"["+idx+"]")}part=child.$dup();if(($a=($b=($c=($d=child.$type()["$=="]("lasgn"))!==false&&$d!==nil?$d:child.$type()["$=="]("iasgn"))!==false&&$c!==nil?$c:child.$type()["$=="]("lvar"))!==false&&$b!==nil?$b:child.$type()["$=="]("gasgn"))!==nil&&(!$a.$$is_boolean||$a==true)){part["$<<"](assign)}else if(child.$type()["$=="]("call")){part["$[]="](2,(""+part["$[]"](2)+"=").$to_sym());part.$last()["$<<"](assign)}else if(child.$type()["$=="]("attrasgn")){part.$last()["$<<"](assign)}else{self.$raise("Bad lhs for masgn")}return self.$push(self.$expr(part))}},TMP_1.$$s=self,TMP_1),$a).call($b);return self.$scope().$queue_temp(tmp)}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes/arglist"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass;Opal.add_stubs(["$require","$handle","$each","$==","$first","$expr","$empty?","$<<","$fragment","$children","$push"]);self.$require("opal/nodes/base");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"Nodes");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $ArglistNode(){}var self=$ArglistNode=$klass($base,$super,"ArglistNode",$ArglistNode);var def=self.$$proto,$scope=self.$$scope;self.$handle("arglist");return(Opal.defn(self,"$compile",function(){var $a,$b,TMP_1,self=this,code=nil,work=nil,join=nil;$a=[[],[]],code=$a[0],work=$a[1];($a=($b=self.$children()).$each,$a.$$p=(TMP_1=function(current){var self=TMP_1.$$s||this,$a,splat=nil,arg=nil;if(current==null)current=nil;splat=current.$first()["$=="]("splat");arg=self.$expr(current);if(splat!==false&&splat!==nil){if(($a=work["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=code["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){code["$<<"](arg)}else{code["$<<"](self.$fragment(".concat("))["$<<"](arg)["$<<"](self.$fragment(")"))}}else{if(($a=code["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){code["$<<"](self.$fragment("["))["$<<"](work)["$<<"](self.$fragment("]"))}else{code["$<<"](self.$fragment(".concat(["))["$<<"](work)["$<<"](self.$fragment("])"))}code["$<<"](self.$fragment(".concat("))["$<<"](arg)["$<<"](self.$fragment(")"))}return work=[]}else{if(($a=work["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{work["$<<"](self.$fragment(", "))}return work["$<<"](arg)}},TMP_1.$$s=self,TMP_1),$a).call($b);if(($a=work["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{join=work;if(($a=code["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){code=join}else{code["$<<"](self.$fragment(".concat("))["$<<"](join)["$<<"](self.$fragment(")"))}}return($a=self).$push.apply($a,Opal.to_a(code))}),nil)&&"compile"})($scope.base,$scope.get("Base"))})($scope.base)}($scope.base)};Opal.modules["opal/nodes"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice;Opal.add_stubs(["$require"]);self.$require("opal/nodes/base");self.$require("opal/nodes/literal");self.$require("opal/nodes/variables");self.$require("opal/nodes/constants");self.$require("opal/nodes/call");self.$require("opal/nodes/call_special");self.$require("opal/nodes/module");self.$require("opal/nodes/class");self.$require("opal/nodes/singleton_class");self.$require("opal/nodes/iter");self.$require("opal/nodes/def");self.$require("opal/nodes/if");self.$require("opal/nodes/logic");self.$require("opal/nodes/definitions");self.$require("opal/nodes/yield");self.$require("opal/nodes/rescue");self.$require("opal/nodes/case");self.$require("opal/nodes/super");self.$require("opal/nodes/top");self.$require("opal/nodes/while");self.$require("opal/nodes/for");self.$require("opal/nodes/hash");self.$require("opal/nodes/array");self.$require("opal/nodes/defined");self.$require("opal/nodes/masgn");return self.$require("opal/nodes/arglist")};Opal.modules["opal/compiler"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$hash2=Opal.hash2,$klass=Opal.klass;Opal.add_stubs(["$require","$compile","$new","$[]","$define_method","$fetch","$!","$include?","$raise","$+","$inspect","$compiler_option","$attr_reader","$attr_accessor","$s","$parse","$file","$eof_content","$lexer","$flatten","$process","$join","$map","$to_proc","$message","$class","$backtrace","$warn","$<<","$helpers","$new_temp","$queue_temp","$push_while","$pop_while","$in_while?","$==","$fragment","$handlers","$type","$compile_to_fragments","$returns","$===","$pop","$[]=","$>","$length","$=~","$tap","$source=","$source","$uses_block!","$block_name","$find_parent_def"]); | |
self.$require("set");self.$require("opal/parser");self.$require("opal/fragment");self.$require("opal/nodes");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;Opal.defs(self,"$compile",function(source,options){var self=this;if(options==null){options=$hash2([],{})}return $scope.get("Compiler").$new(source,options).$compile()});(function($base,$super){function $Compiler(){}var self=$Compiler=$klass($base,$super,"Compiler",$Compiler);var def=self.$$proto,$scope=self.$$scope,TMP_3,TMP_4,TMP_5,TMP_6;def.parser=def.source=def.sexp=def.fragments=def.helpers=def.operator_helpers=def.method_calls=def.indent=def.unique=def.scope=def.case_stmt=def.handlers=def.requires=def.required_trees=nil;Opal.cdecl($scope,"INDENT"," ");Opal.cdecl($scope,"COMPARE",["<",">","<=",">="]);Opal.defs(self,"$compiler_option",function(name,default_value,options){var $a,$b,TMP_1,$c,self=this,mid=nil,valid_values=nil;if(options==null){options=$hash2([],{})}mid=options["$[]"]("as");valid_values=options["$[]"]("valid_values");return($a=($b=self).$define_method,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,$a,$b,TMP_2,$c,value=nil;if(self.options==null)self.options=nil;value=($a=($b=self.options).$fetch,$a.$$p=(TMP_2=function(){var self=TMP_2.$$s||this;return default_value},TMP_2.$$s=self,TMP_2),$a).call($b,name);if(($a=($c=valid_values!==false&&valid_values!==nil)?valid_values["$include?"](value)["$!"]():valid_values)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),$rb_plus("invalid value "+value.$inspect()+" for option "+name.$inspect()+" ","(valid values: "+valid_values.$inspect()+")"))}return value},TMP_1.$$s=self,TMP_1),$a).call($b,($c=mid)!==false&&$c!==nil?$c:name)});self.$compiler_option("file","(file)");self.$compiler_option("method_missing",true,$hash2(["as"],{as:"method_missing?"}));self.$compiler_option("arity_check",false,$hash2(["as"],{as:"arity_check?"}));self.$compiler_option("freezing",true,$hash2(["as"],{as:"freezing?"}));self.$compiler_option("tainting",true,$hash2(["as"],{as:"tainting?"}));self.$compiler_option("irb",false,$hash2(["as"],{as:"irb?"}));self.$compiler_option("dynamic_require_severity","error",$hash2(["valid_values"],{valid_values:["error","warning","ignore"]}));self.$compiler_option("requirable",false,$hash2(["as"],{as:"requirable?"}));self.$compiler_option("inline_operators",true,$hash2(["as"],{as:"inline_operators?"}));self.$attr_reader("result");self.$attr_reader("fragments");self.$attr_accessor("scope");self.$attr_reader("case_stmt");self.$attr_reader("eof_content");Opal.defn(self,"$initialize",function(source,options){var self=this;if(options==null){options=$hash2([],{})}self.source=source;self.indent="";self.unique=0;return self.options=options});Opal.defn(self,"$compile",function(){var $a,$b,self=this,error=nil,message=nil;try{self.parser=$scope.get("Parser").$new();self.sexp=self.$s("top",($a=self.parser.$parse(self.source,self.$file()))!==false&&$a!==nil?$a:self.$s("nil"));self.eof_content=self.parser.$lexer().$eof_content();self.fragments=self.$process(self.sexp).$flatten();return self.result=($a=($b=self.fragments).$map,$a.$$p="code".$to_proc(),$a).call($b).$join("")}catch($err){if(true){error=$err;try{message="An error occurred while compiling: "+self.$file()+"\n"+error.$message();return self.$raise(error.$class(),message,error.$backtrace())}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}});Opal.defn(self,"$source_map",function(source_file){var $a,self=this;if(source_file==null){source_file=nil}return $scope.get("Opal").$$scope.get("SourceMap").$new(self.fragments,($a=source_file)!==false&&$a!==nil?$a:self.$file())});Opal.defn(self,"$helpers",function(){var $a,self=this;return($a=self.helpers)!==false&&$a!==nil?$a:self.helpers=$scope.get("Set").$new(["breaker","slice"])});Opal.defn(self,"$operator_helpers",function(){var $a,self=this;return($a=self.operator_helpers)!==false&&$a!==nil?$a:self.operator_helpers=$scope.get("Set").$new()});Opal.defn(self,"$method_calls",function(){var $a,self=this;return($a=self.method_calls)!==false&&$a!==nil?$a:self.method_calls=$scope.get("Set").$new()});Opal.defn(self,"$error",function(msg,line){var self=this;if(line==null){line=nil}return self.$raise($scope.get("SyntaxError"),""+msg+" :"+self.$file()+":"+line)});Opal.defn(self,"$warning",function(msg,line){var self=this;if(line==null){line=nil}return self.$warn("WARNING: "+msg+" -- "+self.$file()+":"+line)});Opal.defn(self,"$parser_indent",function(){var self=this;return self.indent});Opal.defn(self,"$s",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var parts=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){parts[arg_index]=arguments[arg_index+0]}return $scope.get("Sexp").$new(parts)});Opal.defn(self,"$fragment",function(str,sexp){var self=this;if(sexp==null){sexp=nil}return $scope.get("Fragment").$new(str,sexp)});Opal.defn(self,"$unique_temp",function(){var self=this;return"TMP_"+(self.unique=$rb_plus(self.unique,1))});Opal.defn(self,"$helper",function(name){var self=this;return self.$helpers()["$<<"](name)});Opal.defn(self,"$indent",TMP_3=function(){var $a,self=this,$iter=TMP_3.$$p,block=$iter||nil,indent=nil,res=nil;TMP_3.$$p=null;indent=self.indent;self.indent=$rb_plus(self.indent,$scope.get("INDENT"));self.space="\n"+self.indent;res=($a=Opal.yieldX(block,[]))===$breaker?$breaker.$v:$a;self.indent=indent;self.space="\n"+self.indent;return res});Opal.defn(self,"$with_temp",TMP_4=function(){var $a,self=this,$iter=TMP_4.$$p,block=$iter||nil,tmp=nil,res=nil;TMP_4.$$p=null;tmp=self.scope.$new_temp();res=($a=Opal.yield1(block,tmp))===$breaker?$breaker.$v:$a;self.scope.$queue_temp(tmp);return res});Opal.defn(self,"$in_while",TMP_5=function(){var $a,self=this,$iter=TMP_5.$$p,$yield=$iter||nil,result=nil;TMP_5.$$p=null;if($yield!==nil){}else{return nil}self.while_loop=self.scope.$push_while();result=($a=Opal.yieldX($yield,[]))===$breaker?$breaker.$v:$a;self.scope.$pop_while();return result});Opal.defn(self,"$in_case",TMP_6=function(){var self=this,$iter=TMP_6.$$p,$yield=$iter||nil,old=nil;TMP_6.$$p=null;if($yield!==nil){}else{return nil}old=self.case_stmt;self.case_stmt=$hash2([],{});if(Opal.yieldX($yield,[])===$breaker)return $breaker.$v;return self.case_stmt=old});Opal.defn(self,"$in_while?",function(){var self=this;return self.scope["$in_while?"]()});Opal.defn(self,"$process",function(sexp,level){var $a,self=this,handler=nil;if(level==null){level="expr"}if(sexp["$=="](nil)){return self.$fragment("")}if(($a=handler=self.$handlers()["$[]"](sexp.$type()))!==nil&&(!$a.$$is_boolean||$a==true)){return handler.$new(sexp,level,self).$compile_to_fragments()}else{return self.$raise("Unsupported sexp: "+sexp.$type())}});Opal.defn(self,"$handlers",function(){var $a,self=this;return($a=self.handlers)!==false&&$a!==nil?$a:self.handlers=$scope.get("Opal").$$scope.get("Nodes").$$scope.get("Base").$handlers()});Opal.defn(self,"$requires",function(){var $a,self=this;return($a=self.requires)!==false&&$a!==nil?$a:self.requires=[]});Opal.defn(self,"$required_trees",function(){var $a,self=this;return($a=self.required_trees)!==false&&$a!==nil?$a:self.required_trees=[]});Opal.defn(self,"$returns",function(sexp){var $a,$b,TMP_7,self=this,$case=nil,last=nil;if(sexp!==false&&sexp!==nil){}else{return self.$returns(self.$s("nil"))}return function(){$case=sexp.$type();if("undef"["$==="]($case)){last=sexp.$pop();return sexp["$<<"](self.$returns(last))}else if("break"["$==="]($case)||"next"["$==="]($case)||"redo"["$==="]($case)){return sexp}else if("yield"["$==="]($case)){sexp["$[]="](0,"returnable_yield");return sexp}else if("scope"["$==="]($case)){sexp["$[]="](1,self.$returns(sexp["$[]"](1)));return sexp}else if("block"["$==="]($case)){if($rb_gt(sexp.$length(),1)){sexp["$[]="](-1,self.$returns(sexp["$[]"](-1)))}else{sexp["$<<"](self.$returns(self.$s("nil")))}return sexp}else if("when"["$==="]($case)){sexp["$[]="](2,self.$returns(sexp["$[]"](2)));return sexp}else if("rescue"["$==="]($case)){sexp["$[]="](1,self.$returns(sexp["$[]"](1)));if(($a=($b=sexp["$[]"](2),$b!==false&&$b!==nil?sexp["$[]"](2)["$[]"](0)["$=="]("resbody"):$b))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=sexp["$[]"](2)["$[]"](2))!==nil&&(!$a.$$is_boolean||$a==true)){sexp["$[]"](2)["$[]="](2,self.$returns(sexp["$[]"](2)["$[]"](2)))}else{sexp["$[]"](2)["$[]="](2,self.$returns(self.$s("nil")))}}return sexp}else if("ensure"["$==="]($case)){sexp["$[]="](1,self.$returns(sexp["$[]"](1)));return sexp}else if("begin"["$==="]($case)){sexp["$[]="](1,self.$returns(sexp["$[]"](1)));return sexp}else if("rescue_mod"["$==="]($case)){sexp["$[]="](1,self.$returns(sexp["$[]"](1)));sexp["$[]="](2,self.$returns(sexp["$[]"](2)));return sexp}else if("while"["$==="]($case)){return sexp}else if("return"["$==="]($case)||"js_return"["$==="]($case)){return sexp}else if("xstr"["$==="]($case)){if(($a=/return|;/["$=~"](sexp["$[]"](1)))!==nil&&(!$a.$$is_boolean||$a==true)){}else{sexp["$[]="](1,"return "+sexp["$[]"](1)+";")}return sexp}else if("dxstr"["$==="]($case)){if(($a=/return|;|\n/["$=~"](sexp["$[]"](1)))!==nil&&(!$a.$$is_boolean||$a==true)){}else{sexp["$[]="](1,"return "+sexp["$[]"](1))}return sexp}else if("if"["$==="]($case)){sexp["$[]="](2,self.$returns(($a=sexp["$[]"](2))!==false&&$a!==nil?$a:self.$s("nil")));sexp["$[]="](3,self.$returns(($a=sexp["$[]"](3))!==false&&$a!==nil?$a:self.$s("nil")));return sexp}else{return($a=($b=self.$s("js_return",sexp)).$tap,$a.$$p=(TMP_7=function(s){var self=TMP_7.$$s||this,$a,$b;if(s==null)s=nil;return $a=[sexp.$source()],$b=s,$b["$source="].apply($b,$a),$a[$a.length-1]},TMP_7.$$s=self,TMP_7),$a).call($b)}}()});return(Opal.defn(self,"$handle_block_given_call",function(sexp){var $a,$b,self=this,scope=nil;self.scope["$uses_block!"]();if(($a=self.scope.$block_name())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$fragment("("+self.scope.$block_name()+" !== nil)",sexp)}else if(($a=($b=scope=self.scope.$find_parent_def(),$b!==false&&$b!==nil?scope.$block_name():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$fragment("("+scope.$block_name()+" !== nil)",sexp)}else{return self.$fragment("false",sexp)}}),nil)&&"handle_block_given_call"})($scope.base,null)}($scope.base)};Opal.modules["opal/erb"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$klass=Opal.klass,$gvars=Opal.gvars;Opal.add_stubs(["$require","$compile","$new","$fix_quotes","$find_contents","$find_code","$wrap_compiled","$require_erb","$prepared_source","$gsub","$+","$=~","$sub"]);self.$require("opal/compiler");return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;(function($base){var self=$module($base,"ERB");var def=self.$$proto,$scope=self.$$scope;Opal.defs(self,"$compile",function(source,file_name){var self=this;if(file_name==null){file_name="(erb)"}return $scope.get("Compiler").$new(source,file_name).$compile()});(function($base,$super){function $Compiler(){}var self=$Compiler=$klass($base,$super,"Compiler",$Compiler);var def=self.$$proto,$scope=self.$$scope;def.prepared_source=def.source=def.file_name=nil;Opal.cdecl($scope,"BLOCK_EXPR",/\s+(do|\{)(\s*\|[^|]*\|)?\s*\Z/);Opal.defn(self,"$initialize",function(source,file_name){var $a,self=this;if(file_name==null){file_name="(erb)"}return $a=[source,file_name,source],self.source=$a[0],self.file_name=$a[1],self.result=$a[2]});Opal.defn(self,"$prepared_source",function(){var $a,self=this,source=nil;return($a=self.prepared_source)!==false&&$a!==nil?$a:self.prepared_source=function(){source=self.source;source=self.$fix_quotes(source);source=self.$find_contents(source);source=self.$find_code(source);source=self.$wrap_compiled(source);source=self.$require_erb(source);return source}()});Opal.defn(self,"$compile",function(){var self=this;return $scope.get("Opal").$compile(self.$prepared_source())});Opal.defn(self,"$fix_quotes",function(result){var self=this;return result.$gsub('"','\\"')});Opal.defn(self,"$require_erb",function(result){var self=this;return $rb_plus('require "erb";',result)});Opal.defn(self,"$find_contents",function(result){var $a,$b,TMP_1,self=this;return($a=($b=result).$gsub,$a.$$p=(TMP_1=function(){var self=TMP_1.$$s||this,$a,inner=nil;inner=(($a=$gvars["~"])===nil?nil:$a["$[]"](1)).$gsub(/\\'/,"'").$gsub(/\\"/,'"');if(($a=inner["$=~"]($scope.get("BLOCK_EXPR")))!==nil&&(!$a.$$is_boolean||$a==true)){return'")\noutput_buffer.append= '+inner+'\noutput_buffer.append("'}else{return'")\noutput_buffer.append=('+inner+')\noutput_buffer.append("'}},TMP_1.$$s=self,TMP_1),$a).call($b,/<%=([\s\S]+?)%>/)});Opal.defn(self,"$find_code",function(result){var $a,$b,TMP_2,self=this;return($a=($b=result).$gsub,$a.$$p=(TMP_2=function(){var self=TMP_2.$$s||this,$a;return'")\n'+(($a=$gvars["~"])===nil?nil:$a["$[]"](1))+'\noutput_buffer.append("'},TMP_2.$$s=self,TMP_2),$a).call($b,/<%([\s\S]+?)%>/)});return(Opal.defn(self,"$wrap_compiled",function(result){var self=this,path=nil;path=self.file_name.$sub(new RegExp("\\.opalerb"+$scope.get("REGEXP_END")),"");return result="Template.new('"+path+"') do |output_buffer|\noutput_buffer.append(\""+result+'")\noutput_buffer.join\nend\n'}),nil)&&"wrap_compiled"})($scope.base,null)})($scope.base)}($scope.base)};Opal.modules["opal-parser"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$hash2=Opal.hash2;Opal.add_stubs(["$require","$compile","$eval"]);self.$require("opal/compiler");self.$require("opal/erb");self.$require("opal/version");(function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$eval",function(str){var self=this,code=nil;code=$scope.get("Opal").$compile(str,$hash2(["file"],{file:"(eval)"}));return eval(code)});Opal.defn(self,"$require_remote",function(url){var self=this;var r=new XMLHttpRequest;r.open("GET",url,false);r.send("");return self.$eval(r.responseText)})})($scope.base);Opal.compile=function(str,options){if(options){options=Opal.hash(options)}return Opal.Opal.$compile(str,options)};Opal["eval"]=function(str,options){return eval(Opal.compile(str,options))};function run_ruby_scripts(){var tag,tags=document.getElementsByTagName("script");for(var i=0,len=tags.length;i<len;i++){tag=tags[i];if(tag.type==="text/ruby"){if(tag.src)Opal.Kernel.$require_remote(tag.src);if(tag.innerHTML)Opal.Kernel.$eval(tag.innerHTML)}}}if(typeof document!=="undefined"){if(window.addEventListener){window.addEventListener("DOMContentLoaded",run_ruby_scripts,false)}else{window.attachEvent("onload",run_ruby_scripts)}}}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(undefined){if(typeof this.Opal!=="undefined"){console.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup.");return this.Opal}var Opal=this.Opal={};var bridges={};var TopScope=function(){};TopScope.prototype=Opal;Opal.constructor=TopScope;Opal.constants=[];Opal.global=this;var $hasOwn=Opal.hasOwnProperty;var $slice=Opal.slice=Array.prototype.slice;var nil_id=4;var unique_id=nil_id;Opal.uid=function(){unique_id+=2;return unique_id};Opal.cvars={};Opal.gvars={};Opal.exit=function(status){if(Opal.gvars.DEBUG)console.log("Exited with status "+status)};Opal.exceptions=[];Opal.get=function(name){var constant=this[name];if(constant==null){return this.base.$const_get(name)}return constant};function create_scope(base,klass,id){var const_alloc=function(){};var const_scope=const_alloc.prototype=new base.constructor;klass.$$scope=const_scope;klass.$$base_module=base.base;const_scope.base=klass;const_scope.constructor=const_alloc;const_scope.constants=[];if(id){Opal.cdecl(base,id,klass)}}Opal.create_scope=create_scope;Opal.klass=function(base,superklass,id,constructor){if(!base.$$is_class&&!base.$$is_module){base=base.$$class}var klass=base.$$scope[id],bridged=typeof superklass==="function";if(klass&&klass.$$orig_scope===base.$$scope){if(!klass.$$is_class){throw Opal.TypeError.$new(id+" is not a class")}if(superklass&&klass.$$super!==superklass){throw Opal.TypeError.$new("superclass mismatch for class "+id)}return klass}if(superklass===null){superklass=ObjectClass}klass=bridged?boot_class_object(ObjectClass,superklass):boot_class(superklass,constructor);klass.$$name=id;klass.$$is_class=true;create_scope(base.$$scope,klass,id);base[id]=base.$$scope[id]=klass;if(bridged){Opal.bridge(klass,superklass)}else{if(superklass!==ObjectClass&&superklass!==BasicObjectClass){donate_constants(superklass,klass)}if(superklass.$inherited){superklass.$inherited(klass)}}return klass};function boot_class(superklass,constructor){var alloc=boot_class_alloc(null,constructor,superklass);return boot_class_object(superklass,alloc)}Opal.boot=boot_class;function boot_class_object(superklass,alloc){var singleton_class=function(){};singleton_class.prototype=superklass.constructor.prototype;function OpalClass(){}OpalClass.prototype=new singleton_class;var klass=new OpalClass;setup_module_or_class_object(klass,OpalClass,superklass,alloc.prototype);klass.$$alloc=alloc;klass.$$proto.$$class=klass;return klass}function setup_module_or_class_object(module,constructor,superklass,prototype){module.$$id=Opal.uid();module.$$proto=prototype;module.constructor=constructor;if(superklass===ModuleClass){module.$$is_module=true;module.$$class=ModuleClass}else{module.$$is_class=true;module.$$class=ClassClass}module.$$super=superklass;module.$$parent=superklass;module.$$inc=[]}Opal.module=function(base,id){var module;if(!base.$$is_class&&!base.$$is_module){base=base.$$class}if($hasOwn.call(base.$$scope,id)){module=base.$$scope[id];if(!module.$$is_module&&module!==ObjectClass){throw Opal.TypeError.$new(id+" is not a module")}}else{module=boot_module_object();module.$$name=id;module.$$is_module=true;module.$$dep=[];create_scope(base.$$scope,module,id);base[id]=base.$$scope[id]=module}return module};function boot_module_object(){var mtor=function(){};mtor.prototype=ModuleClass.constructor.prototype;function module_constructor(){}module_constructor.prototype=new mtor;var module=new module_constructor;var module_prototype={};setup_module_or_class_object(module,module_constructor,ModuleClass,module_prototype);return module}Opal.get_singleton_class=function(object){if(object.$$meta){return object.$$meta}if(object.$$is_class||object.$$is_module){return build_class_singleton_class(object)}return build_object_singleton_class(object)};function build_class_singleton_class(klass){var meta=new Opal.Class.$$alloc;meta.$$class=Opal.Class;meta.$$proto=klass.constructor.prototype;meta.$$is_singleton=true;meta.$$singleton_of=klass;meta.$$inc=[];meta.$$scope=klass.$$scope;return klass.$$meta=meta}function build_object_singleton_class(object){var orig_class=object.$$class,class_id="#<Class:#<"+orig_class.$$name+":"+orig_class.$$id+">>";var Singleton=function(){};var meta=Opal.boot(orig_class,Singleton);meta.$$name=class_id;meta.$$proto=object;meta.$$class=orig_class.$$class;meta.$$scope=orig_class.$$scope;meta.$$parent=orig_class;meta.$$is_singleton=true;meta.$$singleton_of=object;return object.$$meta=meta}function bridge(){var target,donator,from,name,body,ancestors,id,methods,method,i,ancestor,bridged,length;if(arguments.length===4){target=arguments[0];from=arguments[1];name=arguments[2];body=arguments[3];ancestors=target.$$bridge.$ancestors();for(i=0,length=ancestors.length;i<length;i++){ancestor=ancestors[i];if($hasOwn.call(ancestor.$$proto,name)&&ancestor.$$proto[name]&&!ancestor.$$proto[name].$$donated&&!ancestor.$$proto[name].$$stub&&ancestor!==from){break}if(ancestor===from){target.prototype[name]=body;break}}}else{target=arguments[0];donator=arguments[1];if(typeof target==="function"){id=donator.$__id__();methods=donator.$instance_methods();for(i=methods.length-1;i>=0;i--){method="$"+methods[i];bridge(target,donator,method,donator.$$proto[method])}if(!bridges[id]){bridges[id]=[]}bridges[id].push(target)}else{bridged=bridges[target.$__id__()];if(bridged){for(i=bridged.length-1;i>=0;i--){bridge(bridged[i],donator)}bridges[donator.$__id__()]=bridged.slice()}}}}Opal.append_features=function(module,klass){var iclass,donator,prototype,methods,id,i;for(i=klass.$$inc.length-1;i>=0;i--){if(klass.$$inc[i]===module){return}}klass.$$inc.push(module);module.$$dep.push(klass);bridge(klass,module);iclass={$$name:module.$$name,$$proto:module.$$proto,$$parent:klass.$$parent,$$module:module,$$iclass:true};klass.$$parent=iclass;donator=module.$$proto;prototype=klass.$$proto;methods=module.$instance_methods();for(i=methods.length-1;i>=0;i--){id="$"+methods[i];if(prototype.hasOwnProperty(id)&&!prototype[id].$$donated&&!prototype[id].$$stub){continue}prototype[id]=donator[id];prototype[id].$$donated=module}donate_constants(module,klass)};function boot_class_alloc(id,constructor,superklass){if(superklass){var ctor=function(){};ctor.prototype=superklass.$$proto||superklass.prototype;if(id){ctor.displayName=id}constructor.prototype=new ctor}constructor.prototype.constructor=constructor;return constructor}function boot_core_class_object(id,alloc,superclass){var superclass_constructor=function(){};superclass_constructor.prototype=superclass.prototype;var singleton_class=function(){};singleton_class.prototype=new superclass_constructor;singleton_class.displayName="#<Class:"+id+">";var klass=new singleton_class;setup_module_or_class_object(klass,singleton_class,superclass,alloc.prototype);klass.$$alloc=alloc;klass.$$name=id;alloc.prototype.$$class=klass;Opal[id]=klass;Opal.constants.push(id);return klass}Opal.bridge=function(klass,constructor){if(constructor.$$bridge){throw Opal.ArgumentError.$new("already bridged")}Opal.stub_subscribers.push(constructor.prototype);constructor.prototype.$$class=klass;constructor.$$bridge=klass;var ancestors=klass.$ancestors();for(var i=ancestors.length-1;i>=0;i--){bridge(constructor,ancestors[i])}for(var name in BasicObject.prototype){var method=BasicObject.prototype[method];if(method&&method.$$stub&&!(name in constructor.prototype)){constructor.prototype[name]=method}}return klass};Opal.casgn=function(base_module,name,value){function update(klass,name){klass.$$name=name;for(name in klass.$$scope){var value=klass.$$scope[name];if(value.$$name===nil&&(value.$$is_class||value.$$is_module)){update(value,name)}}}var scope=base_module.$$scope;if(value.$$is_class||value.$$is_module){if(value.$$is_class||value.$$base_module===ObjectClass){value.$$base_module=base_module}if(value.$$name===nil&&value.$$base_module.$$name!==nil){update(value,name)}}scope.constants.push(name);return scope[name]=value};Opal.cdecl=function(base_scope,name,value){if((value.$$is_class||value.$$is_module)&&value.$$orig_scope==null){value.$$name=name;value.$$orig_scope=base_scope;base_scope.constructor[name]=value}base_scope.constants.push(name);return base_scope[name]=value};function donate_constants(source_mod,target_mod){var source_constants=source_mod.$$scope.constants,target_scope=target_mod.$$scope,target_constants=target_scope.constants;for(var i=0,length=source_constants.length;i<length;i++){target_constants.push(source_constants[i]);target_scope[source_constants[i]]=source_mod.$$scope[source_constants[i]]}}function donate(module,jsid){var included_in=module.$$dep,body=module.$$proto[jsid],i,length,includee,dest,current,klass_includees,j,jj,current_owner_index,module_index;if(!included_in){return}for(i=0,length=included_in.length;i<length;i++){includee=included_in[i];dest=includee.$$proto;current=dest[jsid];if(dest.hasOwnProperty(jsid)&&!current.$$donated&&!current.$$stub){}else if(dest.hasOwnProperty(jsid)&&!current.$$stub){klass_includees=includee.$$inc;for(j=0,jj=klass_includees.length;j<jj;j++){if(klass_includees[j]===current.$$donated){current_owner_index=j}if(klass_includees[j]===module){module_index=j}}if(current_owner_index<=module_index){dest[jsid]=body;dest[jsid].$$donated=module}}else{dest[jsid]=body;dest[jsid].$$donated=module}if(includee.$$dep){donate(includee,jsid)}}}Opal.add_stubs=function(stubs){var subscriber,subscribers=Opal.stub_subscribers,i,ilength=stubs.length,j,jlength=subscribers.length,method_name,stub;for(i=0;i<ilength;i++){method_name=stubs[i];stub=stub_for(method_name);for(j=0;j<jlength;j++){subscriber=subscribers[j];if(!(method_name in subscriber)){subscriber[method_name]=stub}}}};Opal.stub_subscribers=[BasicObject.prototype];function add_stub_for(prototype,stub){var method_missing_stub=stub_for(stub);prototype[stub]=method_missing_stub}function stub_for(method_name){function method_missing_stub(){this.$method_missing.$$p=method_missing_stub.$$p;method_missing_stub.$$p=null;return this.$method_missing.apply(this,[method_name.slice(1)].concat($slice.call(arguments)))}method_missing_stub.$$stub=true;return method_missing_stub}Opal.add_stub_for=add_stub_for;Opal.ac=function(actual,expected,object,meth){var inspect="";if(object.$$is_class||object.$$is_module){inspect+=object.$$name+"."}else{inspect+=object.$$class.$$name+"#"}inspect+=meth;throw Opal.ArgumentError.$new("["+inspect+"] wrong number of arguments("+actual+" for "+expected+")")};Opal.find_super_dispatcher=function(obj,jsid,current_func,iter,defs){var dispatcher;if(defs){if(obj.$$is_class||obj.$$is_module){dispatcher=defs.$$super}else{dispatcher=obj.$$class.$$proto}}else{if(obj.$$is_class||obj.$$is_module){dispatcher=obj.$$super}else{dispatcher=find_obj_super_dispatcher(obj,jsid,current_func)}}dispatcher=dispatcher["$"+jsid];dispatcher.$$p=iter;return dispatcher};Opal.find_iter_super_dispatcher=function(obj,jsid,current_func,iter,defs){if(current_func.$$def){return Opal.find_super_dispatcher(obj,current_func.$$jsid,current_func,iter,defs)}else{return Opal.find_super_dispatcher(obj,jsid,current_func,iter,defs)}};function find_obj_super_dispatcher(obj,jsid,current_func){var klass=obj.$$meta||obj.$$class;jsid="$"+jsid;while(klass){if(klass.$$proto[jsid]===current_func){break}klass=klass.$$parent}if(!klass){throw new Error("could not find current class for super()")}klass=klass.$$parent;while(klass){var working=klass.$$proto[jsid];if(working&&working!==current_func){break}klass=klass.$$parent}return klass.$$proto}Opal.ret=function(val){Opal.returner.$v=val;throw Opal.returner};Opal.yield1=function(block,arg){if(typeof block!=="function"){throw Opal.LocalJumpError.$new("no block given")}if(block.length>1&&arg.$$is_array){return block.apply(null,arg)}else{return block(arg)}};Opal.yieldX=function(block,args){if(typeof block!=="function"){throw Opal.LocalJumpError.$new("no block given")}if(block.length>1&&args.length===1){if(args[0].$$is_array){return block.apply(null,args[0])}}if(!args.$$is_array){args=$slice.call(args)}return block.apply(null,args)};Opal.rescue=function(exception,candidates){for(var i=0;i<candidates.length;i++){var candidate=candidates[i];if(candidate.$$is_array){var result=Opal.rescue(exception,candidate);if(result){return result}}else if(candidate["$==="](exception)){return candidate}}return null};Opal.is_a=function(object,klass){if(object.$$meta===klass){return true}var search=object.$$class;while(search){if(search===klass){return true}for(var i=0,length=search.$$inc.length;i<length;i++){if(search.$$inc[i]===klass){return true}}search=search.$$super}return false};Opal.to_ary=function(value){if(value.$$is_array){return value}else if(value.$to_ary&&!value.$to_ary.$$stub){return value.$to_ary()}else{return[value]}};Opal.to_a=function(value){if(value==null||value===nil){return[]}else if(value.$to_a&&!value.$to_a.$$stub){return value.$to_a()}else{return[value]}};Opal.kwrestargs=function(given_args,used_args){var keys=[],map={},key=null,given_map=given_args.smap;for(key in given_map){if(!used_args[key]){keys.push(key);map[key]=given_map[key]}}return Opal.hash2(keys,map)};Opal.send=function(recv,mid){var args=$slice.call(arguments,2),func=recv["$"+mid];if(func){return func.apply(recv,args)}return recv.$method_missing.apply(recv,[mid].concat(args))};Opal.block_send=function(recv,mid,block){var args=$slice.call(arguments,3),func=recv["$"+mid];if(func){func.$$p=block;return func.apply(recv,args)}return recv.$method_missing.apply(recv,[mid].concat(args))};Opal.defn=function(obj,jsid,body){obj.$$proto[jsid]=body;if(obj.$$is_module){donate(obj,jsid);if(obj.$$module_function){Opal.defs(obj,jsid,body)}}if(obj.$__id__&&!obj.$__id__.$$stub){var bridged=bridges[obj.$__id__()];if(bridged){for(var i=bridged.length-1;i>=0;i--){bridge(bridged[i],obj,jsid,body)}}}if(obj.$method_added&&!obj.$method_added.$$stub){obj.$method_added(jsid.substr(1))}var singleton_of=obj.$$singleton_of;if(singleton_of&&singleton_of.$singleton_method_added&&!singleton_of.$singleton_method_added.$$stub){singleton_of.$singleton_method_added(jsid.substr(1))}return nil};Opal.defs=function(obj,jsid,body){Opal.defn(Opal.get_singleton_class(obj),jsid,body)};Opal.def=function(obj,jsid,body){if(!obj.$$eval&&(obj.$$is_class||obj.$$is_module)){Opal.defn(obj,jsid,body)}else{Opal.defs(obj,jsid,body)}};Opal.rdef=function(obj,jsid){if(!$hasOwn.call(obj.$$proto,jsid)){throw Opal.NameError.$new("method '"+jsid.substr(1)+"' not defined in "+obj.$name())}delete obj.$$proto[jsid];if(obj.$$is_singleton){if(obj.$$proto.$singleton_method_removed&&!obj.$$proto.$singleton_method_removed.$$stub){obj.$$proto.$singleton_method_removed(jsid.substr(1))}}else{if(obj.$method_removed&&!obj.$method_removed.$$stub){obj.$method_removed(jsid.substr(1))}}};Opal.udef=function(obj,jsid){if(!obj.$$proto[jsid]||obj.$$proto[jsid].$$stub){throw Opal.NameError.$new("method '"+jsid.substr(1)+"' not defined in "+obj.$name())}Opal.add_stub_for(obj.$$proto,jsid);if(obj.$$is_singleton){if(obj.$$proto.$singleton_method_undefined&&!obj.$$proto.$singleton_method_undefined.$$stub){obj.$$proto.$singleton_method_undefined(jsid.substr(1))}}else{if(obj.$method_undefined&&!obj.$method_undefined.$$stub){obj.$method_undefined(jsid.substr(1))}}};function wrap(body){function alias(){body.$$p=alias.$$p;body.$$s=alias.$$s;try{return body.apply(this,$slice.call(arguments))}finally{alias.$$s=null;alias.$$p=null}}alias.$$target=body;alias.$$arity=body.length;return alias}Opal.alias=function(obj,name,old){var id="$"+name,old_id="$"+old,body=obj.$$proto["$"+old];if(obj.$$eval){return Opal.alias(Opal.get_singleton_class(obj),name,old)}if(typeof body!=="function"||body.$$stub){var ancestor=obj.$$super;while(typeof body!=="function"&&ancestor){body=ancestor[old_id];ancestor=ancestor.$$super}if(typeof body!=="function"||body.$$stub){throw Opal.NameError.$new("undefined method `"+old+"' for class `"+obj.$name()+"'")}}Opal.defn(obj,id,wrap(body));return obj};Opal.alias_native=function(obj,name,native_name){var id="$"+name,body=obj.$$proto[native_name];if(typeof body!=="function"||body.$$stub){throw Opal.NameError.$new("undefined native method `"+native_name+"' for class `"+obj.$name()+"'")}Opal.defn(obj,id,wrap(body));return obj};Opal.hash_init=function(hash){hash.map={};hash.smap={};hash.keys=[]};Opal.hash_clone=function(from_hash,to_hash){to_hash.none=from_hash.none;to_hash.proc=from_hash.proc;for(var i=0,keys=from_hash.keys,length=keys.length,key,value;i<length;i++){key=from_hash.keys[i];if(key.$$is_string){value=from_hash.smap[key]}else{value=key.value;key=key.key}Opal.hash_put(to_hash,key,value)}};Opal.hash_put=function(hash,key,value){if(key.$$is_string){if(!hash.smap.hasOwnProperty(key)){hash.keys.push(key)}hash.smap[key]=value;return}var key_hash=key.$hash(),bucket,last_bucket;if(!hash.map.hasOwnProperty(key_hash)){bucket={key:key,key_hash:key_hash,value:value};hash.keys.push(bucket);hash.map[key_hash]=bucket;return}bucket=hash.map[key_hash];while(bucket){if(key===bucket.key||key["$eql?"](bucket.key)){last_bucket=undefined;bucket.value=value;break}last_bucket=bucket;bucket=bucket.next}if(last_bucket){bucket={key:key,key_hash:key_hash,value:value};hash.keys.push(bucket);last_bucket.next=bucket}};Opal.hash_get=function(hash,key){if(key.$$is_string){if(hash.smap.hasOwnProperty(key)){return hash.smap[key]}return}var key_hash=key.$hash(),bucket;if(hash.map.hasOwnProperty(key_hash)){bucket=hash.map[key_hash];while(bucket){if(key===bucket.key||key["$eql?"](bucket.key)){return bucket.value}bucket=bucket.next}}};Opal.hash_delete=function(hash,key){var i,keys=hash.keys,length=keys.length,value;if(key.$$is_string){if(!hash.smap.hasOwnProperty(key)){return}for(i=0;i<length;i++){if(keys[i]===key){keys.splice(i,1);break}}value=hash.smap[key];delete hash.smap[key];return value}var key_hash=key.$hash();if(!hash.map.hasOwnProperty(key_hash)){return}var bucket=hash.map[key_hash],last_bucket;while(bucket){if(key===bucket.key||key["$eql?"](bucket.key)){value=bucket.value;for(i=0;i<length;i++){if(keys[i]===bucket){keys.splice(i,1);break}}if(last_bucket&&bucket.next){last_bucket.next=bucket.next}else if(last_bucket){delete last_bucket.next}else if(bucket.next){hash.map[key_hash]=bucket.next}else{delete hash.map[key_hash]}return value}last_bucket=bucket;bucket=bucket.next}};Opal.hash_rehash=function(hash){for(var i=0,length=hash.keys.length,key_hash,bucket,last_bucket;i<length;i++){if(hash.keys[i].$$is_string){continue}key_hash=hash.keys[i].key.$hash();if(key_hash===hash.keys[i].key_hash){continue}bucket=hash.map[hash.keys[i].key_hash];last_bucket=undefined;while(bucket){if(bucket===hash.keys[i]){if(last_bucket&&bucket.next){last_bucket.next=bucket.next}else if(last_bucket){delete last_bucket.next}else if(bucket.next){hash.map[hash.keys[i].key_hash]=bucket.next}else{delete hash.map[hash.keys[i].key_hash]}break}last_bucket=bucket;bucket=bucket.next}hash.keys[i].key_hash=key_hash;if(!hash.map.hasOwnProperty(key_hash)){hash.map[key_hash]=hash.keys[i];continue}bucket=hash.map[key_hash];last_bucket=undefined;while(bucket){if(bucket===hash.keys[i]){last_bucket=undefined;break}last_bucket=bucket;bucket=bucket.next}if(last_bucket){last_bucket.next=hash.keys[i]}}};Opal.hash=function(){var arguments_length=arguments.length,args,hash,i,length,key,value;if(arguments_length===1&&arguments[0].$$is_hash){return arguments[0]}hash=new Opal.Hash.$$alloc;Opal.hash_init(hash);if(arguments_length===1&&arguments[0].$$is_array){args=arguments[0];length=args.length;for(i=0;i<length;i++){if(args[i].length!==2){throw Opal.ArgumentError.$new("value not of length 2: "+args[i].$inspect())}key=args[i][0];value=args[i][1];Opal.hash_put(hash,key,value)}return hash}if(arguments_length===1){args=arguments[0];for(key in args){if(args.hasOwnProperty(key)){value=args[key];Opal.hash_put(hash,key,value)}}return hash}if(arguments_length%2!==0){throw Opal.ArgumentError.$new("odd number of arguments for Hash")}for(i=0;i<arguments_length;i+=2){key=arguments[i];value=arguments[i+1];Opal.hash_put(hash,key,value)}return hash};Opal.hash2=function(keys,smap){var hash=new Opal.Hash.$$alloc;hash.map={};hash.keys=keys;hash.smap=smap;return hash};Opal.range=function(first,last,exc){var range=new Opal.Range.$$alloc;range.begin=first;range.end=last;range.exclude=exc;return range};Opal.ivar=function(name){if(name==="constructor"||name==="__proto__"||name==="__parent__"||name==="__noSuchMethod__"||name==="__count__"){return name+"$"}if(name==="hasOwnProperty"||name==="valueOf"){return name+"$"}return name};(function(Opal){var loaded_features=["corelib/runtime"],require_table={"corelib/runtime":true},modules={};var current_dir=".";function normalize(path){var parts,part,new_parts=[],SEPARATOR="/";if(current_dir!=="."){path=current_dir.replace(/\/*$/,"/")+path}path=path.replace(/\.(rb|opal|js)$/,"");parts=path.split(SEPARATOR);for(var i=0,ii=parts.length;i<ii;i++){part=parts[i];if(part==="")continue;part===".."?new_parts.pop():new_parts.push(part)}return new_parts.join(SEPARATOR)}function loaded(paths){var i,l,path;for(i=0,l=paths.length;i<l;i++){path=normalize(paths[i]);if(require_table[path]){return}loaded_features.push(path);require_table[path]=true}}function load(path){path=normalize(path);loaded([path]);var module=modules[path];if(module){module(Opal)}else{var severity=Opal.dynamic_require_severity||"warning";var message="cannot load such file -- "+path;if(severity==="error"){Opal.LoadError?Opal.LoadError.$new(message):function(){throw message}()}else if(severity==="warning"){console.warn("WARNING: LoadError: "+message)}}return true}function require(path){path=normalize(path);if(require_table[path]){return false}return load(path)}Opal.modules=modules;Opal.loaded_features=loaded_features;Opal.loaded=loaded;Opal.load=load;Opal.require=require})(Opal);var BasicObjectClass;var ObjectClass;var ModuleClass;var ClassClass;function BasicObject(){}function Object(){}function Class(){}function Module(){}function NilClass(){}boot_class_alloc("BasicObject",BasicObject);boot_class_alloc("Object",Object,BasicObject);boot_class_alloc("Module",Module,Object);boot_class_alloc("Class",Class,Module);BasicObjectClass=boot_core_class_object("BasicObject",BasicObject,Class);ObjectClass=boot_core_class_object("Object",Object,BasicObjectClass.constructor);ModuleClass=boot_core_class_object("Module",Module,ObjectClass.constructor);ClassClass=boot_core_class_object("Class",Class,ModuleClass.constructor);BasicObjectClass.$$class=ClassClass;ObjectClass.$$class=ClassClass;ModuleClass.$$class=ClassClass;ClassClass.$$class=ClassClass;BasicObjectClass.$$super=null;ObjectClass.$$super=BasicObjectClass;ModuleClass.$$super=ObjectClass;ClassClass.$$super=ModuleClass;BasicObjectClass.$$parent=null;ObjectClass.$$parent=BasicObjectClass;ModuleClass.$$parent=ObjectClass;ClassClass.$$parent=ModuleClass;Opal.base=ObjectClass;BasicObjectClass.$$scope=ObjectClass.$$scope=Opal;BasicObjectClass.$$orig_scope=ObjectClass.$$orig_scope=Opal;ModuleClass.$$scope=ObjectClass.$$scope;ModuleClass.$$orig_scope=ObjectClass.$$orig_scope;ClassClass.$$scope=ObjectClass.$$scope;ClassClass.$$orig_scope=ObjectClass.$$orig_scope;ObjectClass.$$proto.toString=function(){return this.$to_s()};ObjectClass.$$proto.$require=Opal.require;Opal.top=new ObjectClass.$$alloc;Opal.klass(ObjectClass,ObjectClass,"NilClass",NilClass);var nil=Opal.nil=new NilClass;nil.$$id=nil_id;nil.call=nil.apply=function(){throw Opal.LocalJumpError.$new("no block given")};Opal.breaker=new Error("unexpected break");Opal.returner=new Error("unexpected return");TypeError.$$super=Error}).call(this);if(typeof global!=="undefined"){global.Opal=this.Opal;Opal.global=global}if(typeof window!=="undefined"){window.Opal=this.Opal;Opal.global=window}Opal.modules["corelib/helpers"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module;Opal.add_stubs(["$new","$class","$===","$respond_to?","$raise","$type_error","$__send__","$coerce_to","$nil?","$<=>","$inspect","$coerce_to!"]);return function($base){var self=$module($base,"Opal");var def=self.$$proto,$scope=self.$$scope;Opal.defs(self,"$bridge",function(klass,constructor){var self=this;return Opal.bridge(klass,constructor)});Opal.defs(self,"$type_error",function(object,type,method,coerced){var $a,$b,self=this;if(method==null){method=nil}if(coerced==null){coerced=nil}if(($a=($b=method!==false&&method!==nil)?coerced:method)!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("TypeError").$new("can't convert "+object.$class()+" into "+type+" ("+object.$class()+"#"+method+" gives "+coerced.$class())}else{return $scope.get("TypeError").$new("no implicit conversion of "+object.$class()+" into "+type)}});Opal.defs(self,"$coerce_to",function(object,type,method){var $a,self=this;if(($a=type["$==="](object))!==nil&&(!$a.$$is_boolean||$a==true)){return object}if(($a=object["$respond_to?"](method))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise(self.$type_error(object,type))}return object.$__send__(method)});Opal.defs(self,"$coerce_to!",function(object,type,method){var $a,self=this,coerced=nil;coerced=self.$coerce_to(object,type,method);if(($a=type["$==="](coerced))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise(self.$type_error(object,type,method,coerced))}return coerced});Opal.defs(self,"$coerce_to?",function(object,type,method){var $a,self=this,coerced=nil;if(($a=object["$respond_to?"](method))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return nil}coerced=self.$coerce_to(object,type,method);if(($a=coerced["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}if(($a=type["$==="](coerced))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise(self.$type_error(object,type,method,coerced))}return coerced});Opal.defs(self,"$try_convert",function(object,type,method){var $a,self=this;if(($a=type["$==="](object))!==nil&&(!$a.$$is_boolean||$a==true)){return object}if(($a=object["$respond_to?"](method))!==nil&&(!$a.$$is_boolean||$a==true)){return object.$__send__(method)}else{return nil}});Opal.defs(self,"$compare",function(a,b){var $a,self=this,compare=nil;compare=a["$<=>"](b);if(($a=compare===nil)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"comparison of "+a.$class()+" with "+b.$class()+" failed")}return compare});Opal.defs(self,"$destructure",function(args){var self=this;if(args.length==1){return args[0]}else if(args.$$is_array){return args}else{return $slice.call(args)}});Opal.defs(self,"$respond_to?",function(obj,method){var self=this;if(obj==null||!obj.$$class){return false}return obj["$respond_to?"](method)});Opal.defs(self,"$inspect",function(obj){var self=this;if(obj===undefined){return"undefined"}else if(obj===null){return"null"}else if(!obj.$$class){return obj.toString()}else{return obj.$inspect()}});Opal.defs(self,"$instance_variable_name!",function(name){var $a,self=this;name=$scope.get("Opal")["$coerce_to!"](name,$scope.get("String"),"to_str");if(($a=/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(name))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("NameError").$new("'"+name+"' is not allowed as an instance variable name",name))}return name})}($scope.base)};Opal.modules["corelib/module"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$equal?","$<","$attr_reader","$attr_writer","$coerce_to!","$raise","$new","$=~","$inject","$const_get","$split","$const_missing","$to_str","$===","$to_proc","$lambda","$bind","$call","$class","$append_features","$included","$name","$to_s","$__id__"]);return function($base,$super){function $Module(){}var self=$Module=$klass($base,$super,"Module",$Module);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_3,TMP_5,TMP_6;Opal.defs(self,"$new",TMP_1=function(){var self=this,$iter=TMP_1.$$p,block=$iter||nil;TMP_1.$$p=null;function AnonModule(){}var klass=Opal.boot(Opal.Module,AnonModule);klass.$$name=nil;klass.$$class=Opal.Module;klass.$$dep=[];klass.$$is_module=true;klass.$$proto={};Opal.create_scope(Opal.Module.$$scope,klass);if(block!==nil){var block_self=block.$$s;block.$$s=null;block.call(klass);block.$$s=block_self}return klass});Opal.defn(self,"$===",function(object){var $a,self=this;if(($a=object==null)!==nil&&(!$a.$$is_boolean||$a==true)){return false}return Opal.is_a(object,self)});Opal.defn(self,"$<",function(other){var self=this;var working=self;if(working===other){return false}while(working){if(working===other){return true}working=working.$$parent}return false});Opal.defn(self,"$<=",function(other){var $a,self=this;return($a=self["$equal?"](other))!==false&&$a!==nil?$a:$rb_lt(self,other)});Opal.defn(self,"$alias_method",function(newname,oldname){var self=this;Opal.alias(self,newname,oldname);return self});Opal.defn(self,"$alias_native",function(mid,jsid){var self=this;if(jsid==null){jsid=mid}Opal.alias_native(self,mid,jsid);return self});Opal.defn(self,"$ancestors",function(){var self=this;var parent=self,result=[];while(parent){result.push(parent);for(var i=0;i<parent.$$inc.length;i++){result=result.concat(parent.$$inc[i].$ancestors())}parent=parent.$$is_class?parent.$$super:null}return result});Opal.defn(self,"$append_features",function(klass){var self=this;Opal.append_features(self,klass);return self});Opal.defn(self,"$attr_accessor",function(){var $a,$b,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var names=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){names[arg_index]=arguments[arg_index+0]}($a=self).$attr_reader.apply($a,Opal.to_a(names));return($b=self).$attr_writer.apply($b,Opal.to_a(names))});Opal.alias(self,"attr","attr_accessor");Opal.defn(self,"$attr_reader",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var names=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){names[arg_index]=arguments[arg_index+0]}var proto=self.$$proto;for(var i=names.length-1;i>=0;i--){var name=names[i],id="$"+name,ivar=Opal.ivar(name);var body=function(ivar){return function(){if(this[ivar]==null){return nil}else{return this[ivar]}}}(ivar);proto[ivar]=nil;if(self.$$is_singleton){proto.constructor.prototype[id]=body}else{Opal.defn(self,id,body)}}return nil});Opal.defn(self,"$attr_writer",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var names=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){names[arg_index]=arguments[arg_index+0]}var proto=self.$$proto;for(var i=names.length-1;i>=0;i--){var name=names[i],id="$"+name+"=",ivar=Opal.ivar(name);var body=function(ivar){return function(value){return this[ivar]=value}}(ivar);proto[ivar]=nil;if(self.$$is_singleton){proto.constructor.prototype[id]=body}else{Opal.defn(self,id,body)}}return nil});Opal.defn(self,"$autoload",function(const$,path){var self=this;var autoloaders;if(!(autoloaders=self.$$autoload)){autoloaders=self.$$autoload={}}autoloaders[const$]=path;return nil});Opal.defn(self,"$class_variable_get",function(name){var $a,self=this;name=$scope.get("Opal")["$coerce_to!"](name,$scope.get("String"),"to_str");if(($a=name.length<3||name.slice(0,2)!=="@@")!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("NameError").$new("class vars should start with @@",name))}var value=Opal.cvars[name.slice(2)];(function(){if(($a=value==null)!==nil&&(!$a.$$is_boolean||$a==true)){return self.$raise($scope.get("NameError").$new("uninitialized class variable @@a in",name))}else{return nil}return nil})();return value});Opal.defn(self,"$class_variable_set",function(name,value){var $a,self=this;name=$scope.get("Opal")["$coerce_to!"](name,$scope.get("String"),"to_str");if(($a=name.length<3||name.slice(0,2)!=="@@")!==nil&&(!$a.$$is_boolean||$a==true)){ | |
self.$raise($scope.get("NameError"))}Opal.cvars[name.slice(2)]=value;return value});Opal.defn(self,"$constants",function(){var self=this;return self.$$scope.constants.slice(0)});Opal.defn(self,"$const_defined?",function(name,inherit){var $a,self=this;if(inherit==null){inherit=true}if(($a=name["$=~"](/^[A-Z]\w*$/))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("NameError").$new("wrong constant name "+name,name))}var scopes=[self.$$scope];if(inherit||self===Opal.Object){var parent=self.$$super;while(parent!==Opal.BasicObject){scopes.push(parent.$$scope);parent=parent.$$super}}for(var i=0,length=scopes.length;i<length;i++){if(scopes[i].hasOwnProperty(name)){return true}}return false});Opal.defn(self,"$const_get",function(name,inherit){var $a,$b,TMP_2,self=this;if(inherit==null){inherit=true}if(($a=name.indexOf("::")!=-1&&name!="::")!==nil&&(!$a.$$is_boolean||$a==true)){return($a=($b=name.$split("::")).$inject,$a.$$p=(TMP_2=function(o,c){var self=TMP_2.$$s||this;if(o==null)o=nil;if(c==null)c=nil;return o.$const_get(c)},TMP_2.$$s=self,TMP_2),$a).call($b,self)}if(($a=/^[A-Z]\w*$/.test(name))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("NameError").$new("wrong constant name "+name,name))}var scopes=[self.$$scope];if(inherit||self==Opal.Object){var parent=self.$$super;while(parent!==Opal.BasicObject){scopes.push(parent.$$scope);parent=parent.$$super}}for(var i=0,length=scopes.length;i<length;i++){if(scopes[i].hasOwnProperty(name)){return scopes[i][name]}}return self.$const_missing(name)});Opal.defn(self,"$const_missing",function(name){var self=this;if(self.$$autoload){var file=self.$$autoload[name];if(file){self.$require(file);return self.$const_get(name)}}return self.$raise($scope.get("NameError").$new("uninitialized constant "+self+"::"+name,name))});Opal.defn(self,"$const_set",function(name,value){var $a,self=this;if(($a=name["$=~"](/^[A-Z]\w*$/))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("NameError").$new("wrong constant name "+name,name))}try{name=name.$to_str()}catch($err){if(true){try{self.$raise($scope.get("TypeError"),"conversion with #to_str failed")}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}Opal.casgn(self,name,value);return value});Opal.defn(self,"$define_method",TMP_3=function(name,method){var $a,$b,$c,TMP_4,self=this,$iter=TMP_3.$$p,block=$iter||nil,$case=nil;TMP_3.$$p=null;if(($a=method===undefined&&block===nil)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"tried to create a Proc object without a block")}($a=block)!==false&&$a!==nil?$a:block=function(){$case=method;if($scope.get("Proc")["$==="]($case)){return method}else if($scope.get("Method")["$==="]($case)){return method.$to_proc().$$unbound}else if($scope.get("UnboundMethod")["$==="]($case)){return($b=($c=self).$lambda,$b.$$p=(TMP_4=function(args){var self=TMP_4.$$s||this,$a,bound=nil;args=$slice.call(arguments,0);bound=method.$bind(self);return($a=bound).$call.apply($a,Opal.to_a(args))},TMP_4.$$s=self,TMP_4),$b).call($c)}else{return self.$raise($scope.get("TypeError"),"wrong argument type "+block.$class()+" (expected Proc/Method)")}}();var id="$"+name;block.$$jsid=name;block.$$s=null;block.$$def=block;Opal.defn(self,id,block);return name});Opal.defn(self,"$remove_method",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var names=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){names[arg_index]=arguments[arg_index+0]}for(var i=0,length=names.length;i<length;i++){Opal.rdef(self,"$"+names[i])}return self});Opal.defn(self,"$singleton_class?",function(){var self=this;return!!self.$$is_singleton});Opal.defn(self,"$include",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var mods=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){mods[arg_index]=arguments[arg_index+0]}for(var i=mods.length-1;i>=0;i--){var mod=mods[i];if(mod===self){continue}mod.$append_features(self);mod.$included(self)}return self});Opal.defn(self,"$include?",function(mod){var self=this;for(var cls=self;cls;cls=cls.$$super){for(var i=0;i!=cls.$$inc.length;i++){var mod2=cls.$$inc[i];if(mod===mod2){return true}}}return false});Opal.defn(self,"$instance_method",function(name){var self=this;var meth=self.$$proto["$"+name];if(!meth||meth.$$stub){self.$raise($scope.get("NameError").$new("undefined method `"+name+"' for class `"+self.$name()+"'",name))}return $scope.get("UnboundMethod").$new(self,meth,name)});Opal.defn(self,"$instance_methods",function(include_super){var self=this;if(include_super==null){include_super=true}var methods=[],proto=self.$$proto;for(var prop in proto){if(prop.charAt(0)!=="$"){continue}if(typeof proto[prop]!=="function"){continue}if(proto[prop].$$stub){continue}if(!self.$$is_module){if(self!==Opal.BasicObject&&proto[prop]===Opal.BasicObject.$$proto[prop]){continue}if(!include_super&&!proto.hasOwnProperty(prop)){continue}if(!include_super&&proto[prop].$$donated){continue}}methods.push(prop.substr(1))}return methods});Opal.defn(self,"$included",function(mod){var self=this;return nil});Opal.defn(self,"$extended",function(mod){var self=this;return nil});Opal.defn(self,"$method_added",function(){var self=this;return nil});Opal.defn(self,"$method_removed",function(){var self=this;return nil});Opal.defn(self,"$method_undefined",function(){var self=this;return nil});Opal.defn(self,"$module_eval",TMP_5=function(){var self=this,$iter=TMP_5.$$p,block=$iter||nil;TMP_5.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"no block given")}var old=block.$$s,result;block.$$s=null;result=block.call(self);block.$$s=old;return result});Opal.alias(self,"class_eval","module_eval");Opal.defn(self,"$module_exec",TMP_6=function(){var self=this,$iter=TMP_6.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_6.$$p=null;if(block===nil){self.$raise($scope.get("LocalJumpError"),"no block given")}var block_self=block.$$s,result;block.$$s=null;result=block.apply(self,args);block.$$s=block_self;return result});Opal.alias(self,"class_exec","module_exec");Opal.defn(self,"$method_defined?",function(method){var self=this;var body=self.$$proto["$"+method];return!!body&&!body.$$stub});Opal.defn(self,"$module_function",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var methods=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){methods[arg_index]=arguments[arg_index+0]}if(methods.length===0){self.$$module_function=true}else{for(var i=0,length=methods.length;i<length;i++){var meth=methods[i],id="$"+meth,func=self.$$proto[id];Opal.defs(self,id,func)}}return self});Opal.defn(self,"$name",function(){var self=this;if(self.$$full_name){return self.$$full_name}var result=[],base=self;while(base){if(base.$$name===nil){return result.length===0?nil:result.join("::")}result.unshift(base.$$name);base=base.$$base_module;if(base===Opal.Object){break}}if(result.length===0){return nil}return self.$$full_name=result.join("::")});Opal.defn(self,"$remove_class_variable",function(){var self=this;return nil});Opal.defn(self,"$remove_const",function(name){var self=this;var old=self.$$scope[name];delete self.$$scope[name];return old});Opal.defn(self,"$to_s",function(){var $a,self=this;return($a=Opal.Module.$name.call(self))!==false&&$a!==nil?$a:"#<"+(self.$$is_module?"Module":"Class")+":0x"+self.$__id__().$to_s(16)+">"});return(Opal.defn(self,"$undef_method",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var names=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){names[arg_index]=arguments[arg_index+0]}for(var i=0,length=names.length;i<length;i++){Opal.udef(self,"$"+names[i])}return self}),nil)&&"undef_method"}($scope.base,null)};Opal.modules["corelib/class"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$require","$raise","$allocate"]);self.$require("corelib/module");return function($base,$super){function $Class(){}var self=$Class=$klass($base,$super,"Class",$Class);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2;Opal.defs(self,"$new",TMP_1=function(sup){var self=this,$iter=TMP_1.$$p,block=$iter||nil;if(sup==null){sup=$scope.get("Object")}TMP_1.$$p=null;if(!sup.$$is_class){self.$raise($scope.get("TypeError"),"superclass must be a Class")}function AnonClass(){}var klass=Opal.boot(sup,AnonClass);klass.$$name=nil;klass.$$parent=sup;klass.$$is_class=true;Opal.create_scope(sup.$$scope,klass);sup.$inherited(klass);if(block!==nil){var block_self=block.$$s;block.$$s=null;block.call(klass);block.$$s=block_self}return klass});Opal.defn(self,"$allocate",function(){var self=this;var obj=new self.$$alloc;obj.$$id=Opal.uid();return obj});Opal.defn(self,"$inherited",function(cls){var self=this;return nil});Opal.defn(self,"$new",TMP_2=function(){var self=this,$iter=TMP_2.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_2.$$p=null;var obj=self.$allocate();obj.$initialize.$$p=block;obj.$initialize.apply(obj,args);return obj});return(Opal.defn(self,"$superclass",function(){var self=this;return self.$$super||nil}),nil)&&"superclass"}($scope.base,null)};Opal.modules["corelib/basic_object"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$==","$!","$raise","$new","$inspect"]);return function($base,$super){function $BasicObject(){}var self=$BasicObject=$klass($base,$super,"BasicObject",$BasicObject);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_4;Opal.defn(self,"$initialize",function(){var self=this;return nil});Opal.defn(self,"$==",function(other){var self=this;return self===other});Opal.defn(self,"$eql?",function(other){var self=this;return self["$=="](other)});Opal.defn(self,"$__id__",function(){var self=this;return self.$$id||(self.$$id=Opal.uid())});Opal.defn(self,"$__send__",TMP_1=function(symbol){var self=this,$iter=TMP_1.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}TMP_1.$$p=null;var func=self["$"+symbol];if(func){if(block!==nil){func.$$p=block}return func.apply(self,args)}if(block!==nil){self.$method_missing.$$p=block}return self.$method_missing.apply(self,[symbol].concat(args))});Opal.defn(self,"$!",function(){var self=this;return false});Opal.defn(self,"$!=",function(other){var self=this;return self["$=="](other)["$!"]()});Opal.alias(self,"equal?","==");Opal.defn(self,"$instance_eval",TMP_2=function(){var self=this,$iter=TMP_2.$$p,block=$iter||nil;TMP_2.$$p=null;if(block!==false&&block!==nil){}else{$scope.get("Kernel").$raise($scope.get("ArgumentError"),"no block given")}var old=block.$$s,result;block.$$s=null;if(self.$$is_class||self.$$is_module){self.$$eval=true;try{result=block.call(self,self)}finally{self.$$eval=false}}else{result=block.call(self,self)}block.$$s=old;return result});Opal.defn(self,"$instance_exec",TMP_3=function(){var self=this,$iter=TMP_3.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_3.$$p=null;if(block!==false&&block!==nil){}else{$scope.get("Kernel").$raise($scope.get("ArgumentError"),"no block given")}var block_self=block.$$s,result;block.$$s=null;if(self.$$is_class||self.$$is_module){self.$$eval=true;try{result=block.apply(self,args)}finally{self.$$eval=false}}else{result=block.apply(self,args)}block.$$s=block_self;return result});Opal.defn(self,"$singleton_method_added",function(){var self=this;return nil});Opal.defn(self,"$singleton_method_removed",function(){var self=this;return nil});Opal.defn(self,"$singleton_method_undefined",function(){var self=this;return nil});return(Opal.defn(self,"$method_missing",TMP_4=function(symbol){var $a,self=this,$iter=TMP_4.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}TMP_4.$$p=null;return $scope.get("Kernel").$raise($scope.get("NoMethodError").$new(function(){if(($a=self.$inspect&&!self.$inspect.$$stub)!==nil&&(!$a.$$is_boolean||$a==true)){return"undefined method `"+symbol+"' for "+self.$inspect()+":"+self.$$class}else{return"undefined method `"+symbol+"' for "+self.$$class}return nil}(),symbol))}),nil)&&"method_missing"}($scope.base,null)};Opal.modules["corelib/kernel"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_le(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<=rhs:lhs["$<="](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module,$gvars=Opal.gvars,$hash2=Opal.hash2,$klass=Opal.klass;Opal.add_stubs(["$raise","$new","$inspect","$!","$=~","$==","$object_id","$class","$coerce_to?","$<<","$allocate","$copy_instance_variables","$copy_singleton_methods","$initialize_clone","$initialize_copy","$define_method","$to_proc","$singleton_class","$initialize_dup","$for","$each","$reverse","$append_features","$extended","$length","$respond_to?","$[]","$nil?","$to_a","$to_int","$fetch","$Integer","$Float","$to_ary","$to_str","$coerce_to","$to_s","$__id__","$instance_variable_name!","$coerce_to!","$===","$>","$print","$format","$puts","$<=","$empty?","$exception","$kind_of?","$respond_to_missing?","$try_convert!","$expand_path","$join","$start_with?","$sym","$arg","$include"]);(function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_4,TMP_5,TMP_6,TMP_7,TMP_9,TMP_10;Opal.defn(self,"$method_missing",TMP_1=function(symbol){var self=this,$iter=TMP_1.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}TMP_1.$$p=null;return self.$raise($scope.get("NoMethodError").$new("undefined method `"+symbol+"' for "+self.$inspect(),symbol,args))});Opal.defn(self,"$=~",function(obj){var self=this;return false});Opal.defn(self,"$!~",function(obj){var self=this;return self["$=~"](obj)["$!"]()});Opal.defn(self,"$===",function(other){var $a,self=this;return($a=self.$object_id()["$=="](other.$object_id()))!==false&&$a!==nil?$a:self["$=="](other)});Opal.defn(self,"$<=>",function(other){var self=this;self.$$comparable=true;var x=self["$=="](other);if(x&&x!==nil){return 0}return nil});Opal.defn(self,"$method",function(name){var self=this;var meth=self["$"+name];if(!meth||meth.$$stub){self.$raise($scope.get("NameError").$new("undefined method `"+name+"' for class `"+self.$class()+"'",name))}return $scope.get("Method").$new(self,meth,name)});Opal.defn(self,"$methods",function(all){var self=this;if(all==null){all=true}var methods=[];for(var key in self){if(key[0]=="$"&&typeof self[key]==="function"){if(all==false||all===nil){if(!Opal.hasOwnProperty.call(self,key)){continue}}if(self[key].$$stub===undefined){methods.push(key.substr(1))}}}return methods});Opal.alias(self,"public_methods","methods");Opal.defn(self,"$Array",function(object){var self=this;var coerced;if(object===nil){return[]}if(object.$$is_array){return object}coerced=$scope.get("Opal")["$coerce_to?"](object,$scope.get("Array"),"to_ary");if(coerced!==nil){return coerced}coerced=$scope.get("Opal")["$coerce_to?"](object,$scope.get("Array"),"to_a");if(coerced!==nil){return coerced}return[object]});Opal.defn(self,"$at_exit",TMP_2=function(){var $a,self=this,$iter=TMP_2.$$p,block=$iter||nil;if($gvars.__at_exit__==null)$gvars.__at_exit__=nil;TMP_2.$$p=null;($a=$gvars.__at_exit__)!==false&&$a!==nil?$a:$gvars.__at_exit__=[];return $gvars.__at_exit__["$<<"](block)});Opal.defn(self,"$caller",function(){var self=this;return[]});Opal.defn(self,"$class",function(){var self=this;return self.$$class});Opal.defn(self,"$copy_instance_variables",function(other){var self=this;for(var name in other){if(name.charAt(0)!=="$"){self[name]=other[name]}}});Opal.defn(self,"$copy_singleton_methods",function(other){var self=this;var name;if(other.hasOwnProperty("$$meta")){var other_singleton_class_proto=Opal.get_singleton_class(other).$$proto;var self_singleton_class_proto=Opal.get_singleton_class(self).$$proto;for(name in other_singleton_class_proto){if(name.charAt(0)==="$"&&other_singleton_class_proto.hasOwnProperty(name)){self_singleton_class_proto[name]=other_singleton_class_proto[name]}}}for(name in other){if(name.charAt(0)==="$"&&name.charAt(1)!=="$"&&other.hasOwnProperty(name)){self[name]=other[name]}}});Opal.defn(self,"$clone",function(){var self=this,copy=nil;copy=self.$class().$allocate();copy.$copy_instance_variables(self);copy.$copy_singleton_methods(self);copy.$initialize_clone(self);return copy});Opal.defn(self,"$initialize_clone",function(other){var self=this;return self.$initialize_copy(other)});Opal.defn(self,"$define_singleton_method",TMP_3=function(name,method){var $a,$b,self=this,$iter=TMP_3.$$p,block=$iter||nil;TMP_3.$$p=null;return($a=($b=self.$singleton_class()).$define_method,$a.$$p=block.$to_proc(),$a).call($b,name,method)});Opal.defn(self,"$dup",function(){var self=this,copy=nil;copy=self.$class().$allocate();copy.$copy_instance_variables(self);copy.$initialize_dup(self);return copy});Opal.defn(self,"$initialize_dup",function(other){var self=this;return self.$initialize_copy(other)});Opal.defn(self,"$enum_for",TMP_4=function(method){var $a,$b,self=this,$iter=TMP_4.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}if(method==null){method="each"}TMP_4.$$p=null;return($a=($b=$scope.get("Enumerator")).$for,$a.$$p=block.$to_proc(),$a).apply($b,[self,method].concat(Opal.to_a(args)))});Opal.alias(self,"to_enum","enum_for");Opal.defn(self,"$equal?",function(other){var self=this;return self===other});Opal.defn(self,"$exit",function(status){var $a,$b,self=this;if($gvars.__at_exit__==null)$gvars.__at_exit__=nil;if(status==null){status=true}if(($a=$gvars.__at_exit__)!==nil&&(!$a.$$is_boolean||$a==true)){($a=($b=$gvars.__at_exit__.$reverse()).$each,$a.$$p="call".$to_proc(),$a).call($b)}if(($a=status===true)!==nil&&(!$a.$$is_boolean||$a==true)){status=0}Opal.exit(status);return nil});Opal.defn(self,"$extend",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var mods=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){mods[arg_index]=arguments[arg_index+0]}var singleton=self.$singleton_class();for(var i=mods.length-1;i>=0;i--){var mod=mods[i];mod.$append_features(singleton);mod.$extended(self)}return self});Opal.defn(self,"$format",function(format_string){var $a,$b,self=this,ary=nil;if($gvars.DEBUG==null)$gvars.DEBUG=nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}if(($a=($b=args.$length()["$=="](1))?args["$[]"](0)["$respond_to?"]("to_ary"):args.$length()["$=="](1))!==nil&&(!$a.$$is_boolean||$a==true)){ary=$scope.get("Opal")["$coerce_to?"](args["$[]"](0),$scope.get("Array"),"to_ary");if(($a=ary["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{args=ary.$to_a()}}var result="",begin_slice=0,end_slice,i,len=format_string.length,arg,str,exponent,width,precision,tmp_num,hash_parameter_key,closing_brace_char,base_number,base_prefix,base_neg_zero_regex,base_neg_zero_digit,next_arg,seq_arg_num=1,pos_arg_num=0,flags,FNONE=0,FSHARP=1,FMINUS=2,FPLUS=4,FZERO=8,FSPACE=16,FWIDTH=32,FPREC=64,FPREC0=128;function CHECK_FOR_FLAGS(){if(flags&FWIDTH){self.$raise($scope.get("ArgumentError"),"flag after width")}if(flags&FPREC0){self.$raise($scope.get("ArgumentError"),"flag after precision")}}function CHECK_FOR_WIDTH(){if(flags&FWIDTH){self.$raise($scope.get("ArgumentError"),"width given twice")}if(flags&FPREC0){self.$raise($scope.get("ArgumentError"),"width after precision")}}function GET_NTH_ARG(num){if(num>=args.length){self.$raise($scope.get("ArgumentError"),"too few arguments")}return args[num]}function GET_NEXT_ARG(){switch(pos_arg_num){case-1:self.$raise($scope.get("ArgumentError"),"unnumbered("+seq_arg_num+") mixed with numbered");case-2:self.$raise($scope.get("ArgumentError"),"unnumbered("+seq_arg_num+") mixed with named")}pos_arg_num=seq_arg_num++;return GET_NTH_ARG(pos_arg_num-1)}function GET_POS_ARG(num){if(pos_arg_num>0){self.$raise($scope.get("ArgumentError"),"numbered("+num+") after unnumbered("+pos_arg_num+")")}if(pos_arg_num===-2){self.$raise($scope.get("ArgumentError"),"numbered("+num+") after named")}if(num<1){self.$raise($scope.get("ArgumentError"),"invalid index - "+num+"$")}pos_arg_num=-1;return GET_NTH_ARG(num-1)}function GET_ARG(){return next_arg===undefined?GET_NEXT_ARG():next_arg}function READ_NUM(label){var num,str="";for(;;i++){if(i===len){self.$raise($scope.get("ArgumentError"),"malformed format string - %*[0-9]")}if(format_string.charCodeAt(i)<48||format_string.charCodeAt(i)>57){i--;num=parseInt(str,10)||0;if(num>2147483647){self.$raise($scope.get("ArgumentError"),""+label+" too big")}return num}str+=format_string.charAt(i)}}function READ_NUM_AFTER_ASTER(label){var arg,num=READ_NUM(label);if(format_string.charAt(i+1)==="$"){i++;arg=GET_POS_ARG(num)}else{arg=GET_NEXT_ARG()}return arg.$to_int()}for(i=format_string.indexOf("%");i!==-1;i=format_string.indexOf("%",i)){str=undefined;flags=FNONE;width=-1;precision=-1;next_arg=undefined;end_slice=i;i++;switch(format_string.charAt(i)){case"%":begin_slice=i;case"":case"\n":case"\x00":i++;continue}format_sequence:for(;i<len;i++){switch(format_string.charAt(i)){case" ":CHECK_FOR_FLAGS();flags|=FSPACE;continue format_sequence;case"#":CHECK_FOR_FLAGS();flags|=FSHARP;continue format_sequence;case"+":CHECK_FOR_FLAGS();flags|=FPLUS;continue format_sequence;case"-":CHECK_FOR_FLAGS();flags|=FMINUS;continue format_sequence;case"0":CHECK_FOR_FLAGS();flags|=FZERO;continue format_sequence;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":tmp_num=READ_NUM("width");if(format_string.charAt(i+1)==="$"){if(i+2===len){str="%";i++;break format_sequence}if(next_arg!==undefined){self.$raise($scope.get("ArgumentError"),"value given twice - %"+tmp_num+"$")}next_arg=GET_POS_ARG(tmp_num);i++}else{CHECK_FOR_WIDTH();flags|=FWIDTH;width=tmp_num}continue format_sequence;case"<":case"{":closing_brace_char=format_string.charAt(i)==="<"?">":"}";hash_parameter_key="";i++;for(;;i++){if(i===len){self.$raise($scope.get("ArgumentError"),"malformed name - unmatched parenthesis")}if(format_string.charAt(i)===closing_brace_char){if(pos_arg_num>0){self.$raise($scope.get("ArgumentError"),"named "+hash_parameter_key+" after unnumbered("+pos_arg_num+")")}if(pos_arg_num===-1){self.$raise($scope.get("ArgumentError"),"named "+hash_parameter_key+" after numbered")}pos_arg_num=-2;if(args[0]===undefined||!args[0].$$is_hash){self.$raise($scope.get("ArgumentError"),"one hash required")}next_arg=args[0].$fetch(hash_parameter_key);if(closing_brace_char===">"){continue format_sequence}else{str=next_arg.toString();if(precision!==-1){str=str.slice(0,precision)}if(flags&FMINUS){while(str.length<width){str=str+" "}}else{while(str.length<width){str=" "+str}}break format_sequence}}hash_parameter_key+=format_string.charAt(i)}case"*":i++;CHECK_FOR_WIDTH();flags|=FWIDTH;width=READ_NUM_AFTER_ASTER("width");if(width<0){flags|=FMINUS;width=-width}continue format_sequence;case".":if(flags&FPREC0){self.$raise($scope.get("ArgumentError"),"precision given twice")}flags|=FPREC|FPREC0;precision=0;i++;if(format_string.charAt(i)==="*"){i++;precision=READ_NUM_AFTER_ASTER("precision");if(precision<0){flags&=~FPREC}continue format_sequence}precision=READ_NUM("precision");continue format_sequence;case"d":case"i":case"u":arg=self.$Integer(GET_ARG());if(arg>=0){str=arg.toString();while(str.length<precision){str="0"+str}if(flags&FMINUS){if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}while(str.length<width){str=str+" "}}else{if(flags&FZERO&&precision===-1){while(str.length<width-(flags&FPLUS||flags&FSPACE?1:0)){str="0"+str}if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}}else{if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}while(str.length<width){str=" "+str}}}}else{str=(-arg).toString();while(str.length<precision){str="0"+str}if(flags&FMINUS){str="-"+str;while(str.length<width){str=str+" "}}else{if(flags&FZERO&&precision===-1){while(str.length<width-1){str="0"+str}str="-"+str}else{str="-"+str;while(str.length<width){str=" "+str}}}}break format_sequence;case"b":case"B":case"o":case"x":case"X":switch(format_string.charAt(i)){case"b":case"B":base_number=2;base_prefix="0b";base_neg_zero_regex=/^1+/;base_neg_zero_digit="1";break;case"o":base_number=8;base_prefix="0";base_neg_zero_regex=/^3?7+/;base_neg_zero_digit="7";break;case"x":case"X":base_number=16;base_prefix="0x";base_neg_zero_regex=/^f+/;base_neg_zero_digit="f";break}arg=self.$Integer(GET_ARG());if(arg>=0){str=arg.toString(base_number);while(str.length<precision){str="0"+str}if(flags&FMINUS){if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}if(flags&FSHARP&&arg!==0){str=base_prefix+str}while(str.length<width){str=str+" "}}else{if(flags&FZERO&&precision===-1){while(str.length<width-(flags&FPLUS||flags&FSPACE?1:0)-(flags&FSHARP&&arg!==0?base_prefix.length:0)){str="0"+str}if(flags&FSHARP&&arg!==0){str=base_prefix+str}if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}}else{if(flags&FSHARP&&arg!==0){str=base_prefix+str}if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}while(str.length<width){str=" "+str}}}}else{if(flags&FPLUS||flags&FSPACE){str=(-arg).toString(base_number);while(str.length<precision){str="0"+str}if(flags&FMINUS){if(flags&FSHARP){str=base_prefix+str}str="-"+str;while(str.length<width){str=str+" "}}else{if(flags&FZERO&&precision===-1){while(str.length<width-1-(flags&FSHARP?2:0)){str="0"+str}if(flags&FSHARP){str=base_prefix+str}str="-"+str}else{if(flags&FSHARP){str=base_prefix+str}str="-"+str;while(str.length<width){str=" "+str}}}}else{str=(arg>>>0).toString(base_number).replace(base_neg_zero_regex,base_neg_zero_digit);while(str.length<precision-2){str=base_neg_zero_digit+str}if(flags&FMINUS){str=".."+str;if(flags&FSHARP){str=base_prefix+str}while(str.length<width){str=str+" "}}else{if(flags&FZERO&&precision===-1){while(str.length<width-2-(flags&FSHARP?base_prefix.length:0)){str=base_neg_zero_digit+str}str=".."+str;if(flags&FSHARP){str=base_prefix+str}}else{str=".."+str;if(flags&FSHARP){str=base_prefix+str}while(str.length<width){str=" "+str}}}}}if(format_string.charAt(i)===format_string.charAt(i).toUpperCase()){str=str.toUpperCase()}break format_sequence;case"f":case"e":case"E":case"g":case"G":arg=self.$Float(GET_ARG());if(arg>=0||isNaN(arg)){if(arg===Infinity){str="Inf"}else{switch(format_string.charAt(i)){case"f":str=arg.toFixed(precision===-1?6:precision);break;case"e":case"E":str=arg.toExponential(precision===-1?6:precision);break;case"g":case"G":str=arg.toExponential();exponent=parseInt(str.split("e")[1],10);if(!(exponent<-4||exponent>=(precision===-1?6:precision))){str=arg.toPrecision(precision===-1?flags&FSHARP?6:undefined:precision)}break}}if(flags&FMINUS){if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}while(str.length<width){str=str+" "}}else{if(flags&FZERO&&arg!==Infinity&&!isNaN(arg)){while(str.length<width-(flags&FPLUS||flags&FSPACE?1:0)){str="0"+str}if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}}else{if(flags&FPLUS||flags&FSPACE){str=(flags&FPLUS?"+":" ")+str}while(str.length<width){str=" "+str}}}}else{if(arg===-Infinity){str="Inf"}else{switch(format_string.charAt(i)){case"f":str=(-arg).toFixed(precision===-1?6:precision);break;case"e":case"E":str=(-arg).toExponential(precision===-1?6:precision);break;case"g":case"G":str=(-arg).toExponential();exponent=parseInt(str.split("e")[1],10);if(!(exponent<-4||exponent>=(precision===-1?6:precision))){str=(-arg).toPrecision(precision===-1?flags&FSHARP?6:undefined:precision)}break}}if(flags&FMINUS){str="-"+str;while(str.length<width){str=str+" "}}else{if(flags&FZERO&&arg!==-Infinity){while(str.length<width-1){str="0"+str}str="-"+str}else{str="-"+str;while(str.length<width){str=" "+str}}}}if(format_string.charAt(i)===format_string.charAt(i).toUpperCase()&&arg!==Infinity&&arg!==-Infinity&&!isNaN(arg)){str=str.toUpperCase()}str=str.replace(/([eE][-+]?)([0-9])$/,"$10$2");break format_sequence;case"a":case"A":self.$raise($scope.get("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":arg=GET_ARG();if(arg["$respond_to?"]("to_ary")){arg=arg.$to_ary()[0]}if(arg["$respond_to?"]("to_str")){str=arg.$to_str()}else{str=String.fromCharCode($scope.get("Opal").$coerce_to(arg,$scope.get("Integer"),"to_int"))}if(str.length!==1){self.$raise($scope.get("ArgumentError"),"%c requires a character")}if(flags&FMINUS){while(str.length<width){str=str+" "}}else{while(str.length<width){str=" "+str}}break format_sequence;case"p":str=GET_ARG().$inspect();if(precision!==-1){str=str.slice(0,precision)}if(flags&FMINUS){while(str.length<width){str=str+" "}}else{while(str.length<width){str=" "+str}}break format_sequence;case"s":str=GET_ARG().$to_s();if(precision!==-1){str=str.slice(0,precision)}if(flags&FMINUS){while(str.length<width){str=str+" "}}else{while(str.length<width){str=" "+str}}break format_sequence;default:self.$raise($scope.get("ArgumentError"),"malformed format string - %"+format_string.charAt(i))}}if(str===undefined){self.$raise($scope.get("ArgumentError"),"malformed format string - %")}result+=format_string.slice(begin_slice,end_slice)+str;begin_slice=i+1}if($gvars.DEBUG&&pos_arg_num>=0&&seq_arg_num<args.length){self.$raise($scope.get("ArgumentError"),"too many arguments for format string")}return result+format_string.slice(begin_slice)});Opal.defn(self,"$hash",function(){var self=this;return""+self.$class()+":"+self.$class().$__id__()+":"+self.$__id__()});Opal.defn(self,"$initialize_copy",function(other){var self=this;return nil});Opal.defn(self,"$inspect",function(){var self=this;return self.$to_s()});Opal.defn(self,"$instance_of?",function(klass){var self=this;if(!klass.$$is_class&&!klass.$$is_module){self.$raise($scope.get("TypeError"),"class or module required")}return self.$$class===klass});Opal.defn(self,"$instance_variable_defined?",function(name){var self=this;name=$scope.get("Opal")["$instance_variable_name!"](name);return Opal.hasOwnProperty.call(self,name.substr(1))});Opal.defn(self,"$instance_variable_get",function(name){var self=this;name=$scope.get("Opal")["$instance_variable_name!"](name);var ivar=self[name.substr(1)];return ivar==null?nil:ivar});Opal.defn(self,"$instance_variable_set",function(name,value){var self=this;name=$scope.get("Opal")["$instance_variable_name!"](name);return self[name.substr(1)]=value});Opal.defn(self,"$instance_variables",function(){ | |
var self=this;var result=[];for(var name in self){if(name.charAt(0)!=="$"){if(name!=="$$class"&&name!=="$$id"){result.push("@"+name)}}}return result});Opal.defn(self,"$Integer",function(value,base){var self=this;var i,str,base_digits;if(!value.$$is_string){if(base!==undefined){self.$raise($scope.get("ArgumentError"),"base specified for non string value")}if(value===nil){self.$raise($scope.get("TypeError"),"can't convert nil into Integer")}if(value.$$is_number){if(value===Infinity||value===-Infinity||isNaN(value)){self.$raise($scope.get("FloatDomainError"),value)}return Math.floor(value)}if(value["$respond_to?"]("to_int")){i=value.$to_int();if(i!==nil){return i}}return $scope.get("Opal")["$coerce_to!"](value,$scope.get("Integer"),"to_i")}if(base===undefined){base=0}else{base=$scope.get("Opal").$coerce_to(base,$scope.get("Integer"),"to_int");if(base===1||base<0||base>36){self.$raise($scope.get("ArgumentError"),"invalid radix "+base)}}str=value.toLowerCase();str=str.replace(/(\d)_(?=\d)/g,"$1");str=str.replace(/^(\s*[+-]?)(0[bodx]?)/,function(_,head,flag){switch(flag){case"0b":if(base===0||base===2){base=2;return head}case"0":case"0o":if(base===0||base===8){base=8;return head}case"0d":if(base===0||base===10){base=10;return head}case"0x":if(base===0||base===16){base=16;return head}}self.$raise($scope.get("ArgumentError"),'invalid value for Integer(): "'+value+'"')});base=base===0?10:base;base_digits="0-"+(base<=10?base-1:"9a-"+String.fromCharCode(97+(base-11)));if(!new RegExp("^\\s*[+-]?["+base_digits+"]+\\s*$").test(str)){self.$raise($scope.get("ArgumentError"),'invalid value for Integer(): "'+value+'"')}i=parseInt(str,base);if(isNaN(i)){self.$raise($scope.get("ArgumentError"),'invalid value for Integer(): "'+value+'"')}return i});Opal.defn(self,"$Float",function(value){var self=this;var str;if(value===nil){self.$raise($scope.get("TypeError"),"can't convert nil into Float")}if(value.$$is_string){str=value.toString();str=str.replace(/(\d)_(?=\d)/g,"$1");if(/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(str)){return self.$Integer(str)}if(!/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(str)){self.$raise($scope.get("ArgumentError"),'invalid value for Float(): "'+value+'"')}return parseFloat(str)}return $scope.get("Opal")["$coerce_to!"](value,$scope.get("Float"),"to_f")});Opal.defn(self,"$Hash",function(arg){var $a,$b,self=this;if(($a=($b=arg["$nil?"]())!==false&&$b!==nil?$b:arg["$=="]([]))!==nil&&(!$a.$$is_boolean||$a==true)){return $hash2([],{})}if(($a=$scope.get("Hash")["$==="](arg))!==nil&&(!$a.$$is_boolean||$a==true)){return arg}return $scope.get("Opal")["$coerce_to!"](arg,$scope.get("Hash"),"to_hash")});Opal.defn(self,"$is_a?",function(klass){var self=this;if(!klass.$$is_class&&!klass.$$is_module){self.$raise($scope.get("TypeError"),"class or module required")}return Opal.is_a(self,klass)});Opal.alias(self,"kind_of?","is_a?");Opal.defn(self,"$lambda",TMP_5=function(){var self=this,$iter=TMP_5.$$p,block=$iter||nil;TMP_5.$$p=null;block.$$is_lambda=true;return block});Opal.defn(self,"$load",function(file){var self=this;file=$scope.get("Opal")["$coerce_to!"](file,$scope.get("String"),"to_str");return Opal.load(file)});Opal.defn(self,"$loop",TMP_6=function(){var self=this,$iter=TMP_6.$$p,block=$iter||nil;TMP_6.$$p=null;while(true){if(block()===$breaker){return $breaker.$v}}return self});Opal.defn(self,"$nil?",function(){var self=this;return false});Opal.alias(self,"object_id","__id__");Opal.defn(self,"$printf",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}if($rb_gt(args.$length(),0)){self.$print(($a=self).$format.apply($a,Opal.to_a(args)))}return nil});Opal.defn(self,"$proc",TMP_7=function(){var self=this,$iter=TMP_7.$$p,block=$iter||nil;TMP_7.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to create Proc object without a block")}block.$$is_lambda=false;return block});Opal.defn(self,"$puts",function(){var $a,self=this;if($gvars.stdout==null)$gvars.stdout=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var strs=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){strs[arg_index]=arguments[arg_index+0]}return($a=$gvars.stdout).$puts.apply($a,Opal.to_a(strs))});Opal.defn(self,"$p",function(){var $a,$b,TMP_8,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}($a=($b=args).$each,$a.$$p=(TMP_8=function(obj){var self=TMP_8.$$s||this;if($gvars.stdout==null)$gvars.stdout=nil;if(obj==null)obj=nil;return $gvars.stdout.$puts(obj.$inspect())},TMP_8.$$s=self,TMP_8),$a).call($b);if($rb_le(args.$length(),1)){return args["$[]"](0)}else{return args}});Opal.defn(self,"$print",function(){var $a,self=this;if($gvars.stdout==null)$gvars.stdout=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var strs=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){strs[arg_index]=arguments[arg_index+0]}return($a=$gvars.stdout).$print.apply($a,Opal.to_a(strs))});Opal.defn(self,"$warn",function(){var $a,$b,self=this;if($gvars.VERBOSE==null)$gvars.VERBOSE=nil;if($gvars.stderr==null)$gvars.stderr=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var strs=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){strs[arg_index]=arguments[arg_index+0]}if(($a=($b=$gvars.VERBOSE["$nil?"]())!==false&&$b!==nil?$b:strs["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return($a=$gvars.stderr).$puts.apply($a,Opal.to_a(strs))}});Opal.defn(self,"$raise",function(exception,string,_backtrace){var self=this;if($gvars["!"]==null)$gvars["!"]=nil;if(string==null){string=nil}if(_backtrace==null){_backtrace=nil}if(exception==null&&$gvars["!"]!==nil){throw $gvars["!"]}if(exception==null){exception=$scope.get("RuntimeError").$new()}else if(exception.$$is_string){exception=$scope.get("RuntimeError").$new(exception)}else if(exception.$$is_class&&exception["$respond_to?"]("exception")){exception=exception.$exception(string)}else if(exception["$kind_of?"]($scope.get("Exception"))){}else{exception=$scope.get("TypeError").$new("exception class/object expected")}if($gvars["!"]!==nil){Opal.exceptions.push($gvars["!"])}$gvars["!"]=exception;throw exception});Opal.alias(self,"fail","raise");Opal.defn(self,"$rand",function(max){var self=this;if(max===undefined){return Math.random()}else if(max.$$is_range){var min=max.begin,range=max.end-min;if(!max.exclude)range++;return self.$rand(range)+min}else{return Math.floor(Math.random()*Math.abs($scope.get("Opal").$coerce_to(max,$scope.get("Integer"),"to_int")))}});Opal.defn(self,"$respond_to?",function(name,include_all){var $a,self=this;if(include_all==null){include_all=false}if(($a=self["$respond_to_missing?"](name,include_all))!==nil&&(!$a.$$is_boolean||$a==true)){return true}var body=self["$"+name];if(typeof body==="function"&&!body.$$stub){return true}return false});Opal.defn(self,"$respond_to_missing?",function(method_name,include_all){var self=this;if(include_all==null){include_all=false}return false});Opal.defn(self,"$require",function(file){var self=this;file=$scope.get("Opal")["$coerce_to!"](file,$scope.get("String"),"to_str");return Opal.require(file)});Opal.defn(self,"$require_relative",function(file){var self=this;$scope.get("Opal")["$try_convert!"](file,$scope.get("String"),"to_str");file=$scope.get("File").$expand_path($scope.get("File").$join(Opal.current_file,"..",file));return Opal.require(file)});Opal.defn(self,"$require_tree",function(path){var self=this;path=$scope.get("File").$expand_path(path);if(path["$=="](".")){path=""}for(var name in Opal.modules){if(name["$start_with?"](path)){Opal.require(name)}}return nil});Opal.alias(self,"send","__send__");Opal.alias(self,"public_send","__send__");Opal.defn(self,"$singleton_class",function(){var self=this;return Opal.get_singleton_class(self)});Opal.defn(self,"$sleep",function(seconds){var self=this;if(seconds==null){seconds=nil}if(seconds===nil){self.$raise($scope.get("TypeError"),"can't convert NilClass into time interval")}if(!seconds.$$is_number){self.$raise($scope.get("TypeError"),"can't convert "+seconds.$class()+" into time interval")}if(seconds<0){self.$raise($scope.get("ArgumentError"),"time interval must be positive")}var t=new Date;while(new Date-t<=seconds*1e3);return seconds});Opal.alias(self,"sprintf","format");Opal.alias(self,"srand","rand");Opal.defn(self,"$String",function(str){var $a,self=this;return($a=$scope.get("Opal")["$coerce_to?"](str,$scope.get("String"),"to_str"))!==false&&$a!==nil?$a:$scope.get("Opal")["$coerce_to!"](str,$scope.get("String"),"to_s")});Opal.defn(self,"$tap",TMP_9=function(){var self=this,$iter=TMP_9.$$p,block=$iter||nil;TMP_9.$$p=null;if(Opal.yield1(block,self)===$breaker)return $breaker.$v;return self});Opal.defn(self,"$to_proc",function(){var self=this;return self});Opal.defn(self,"$to_s",function(){var self=this;return"#<"+self.$class()+":0x"+self.$__id__().$to_s(16)+">"});Opal.defn(self,"$catch",TMP_10=function(sym){var $a,self=this,$iter=TMP_10.$$p,$yield=$iter||nil,e=nil;TMP_10.$$p=null;try{return $a=Opal.yieldX($yield,[]),$a===$breaker?$a:$a}catch($err){if(Opal.rescue($err,[$scope.get("UncaughtThrowError")])){e=$err;try{if(e.$sym()["$=="](sym)){return e.$arg()}return self.$raise()}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}});Opal.defn(self,"$throw",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}return self.$raise($scope.get("UncaughtThrowError").$new(args))})})($scope.base);return function($base,$super){function $Object(){}var self=$Object=$klass($base,$super,"Object",$Object);var def=self.$$proto,$scope=self.$$scope;return self.$include($scope.get("Kernel"))}($scope.base,null)};Opal.modules["corelib/error"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$module=Opal.module;Opal.add_stubs(["$new","$clone","$to_s","$empty?","$class","$attr_reader","$[]","$>","$length","$inspect"]);(function($base,$super){function $Exception(){}var self=$Exception=$klass($base,$super,"Exception",$Exception);var def=self.$$proto,$scope=self.$$scope;def.message=nil;Opal.defs(self,"$new",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}var message=args.length>0?args[0]:nil;var err=new self.$$alloc(message);if(Error.captureStackTrace){Error.captureStackTrace(err)}err.name=self.$$name;err.$initialize.apply(err,args);return err});Opal.defs(self,"$exception",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}return($a=self).$new.apply($a,Opal.to_a(args))});Opal.defn(self,"$initialize",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}return self.message=args.length>0?args[0]:nil});Opal.defn(self,"$backtrace",function(){var self=this;var backtrace=self.stack;if(typeof backtrace==="string"){return backtrace.split("\n").slice(0,15)}else if(backtrace){return backtrace.slice(0,15)}return[]});Opal.defn(self,"$exception",function(str){var self=this;if(str==null){str=nil}if(str===nil||self===str){return self}var cloned=self.$clone();cloned.message=str;return cloned});Opal.defn(self,"$message",function(){var self=this;return self.$to_s()});Opal.defn(self,"$inspect",function(){var $a,self=this,as_str=nil;as_str=self.$to_s();if(($a=as_str["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$class().$to_s()}else{return"#<"+self.$class().$to_s()+": "+self.$to_s()+">"}});return(Opal.defn(self,"$to_s",function(){var $a,$b,self=this;return($a=($b=self.message,$b!==false&&$b!==nil?self.message.$to_s():$b))!==false&&$a!==nil?$a:self.$class().$to_s()}),nil)&&"to_s"})($scope.base,Error);(function($base,$super){function $ScriptError(){}var self=$ScriptError=$klass($base,$super,"ScriptError",$ScriptError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));(function($base,$super){function $SyntaxError(){}var self=$SyntaxError=$klass($base,$super,"SyntaxError",$SyntaxError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("ScriptError"));(function($base,$super){function $LoadError(){}var self=$LoadError=$klass($base,$super,"LoadError",$LoadError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("ScriptError"));(function($base,$super){function $NotImplementedError(){}var self=$NotImplementedError=$klass($base,$super,"NotImplementedError",$NotImplementedError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("ScriptError"));(function($base,$super){function $SystemExit(){}var self=$SystemExit=$klass($base,$super,"SystemExit",$SystemExit);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));(function($base,$super){function $NoMemoryError(){}var self=$NoMemoryError=$klass($base,$super,"NoMemoryError",$NoMemoryError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));(function($base,$super){function $SignalException(){}var self=$SignalException=$klass($base,$super,"SignalException",$SignalException);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));(function($base,$super){function $Interrupt(){}var self=$Interrupt=$klass($base,$super,"Interrupt",$Interrupt);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));(function($base,$super){function $SecurityError(){}var self=$SecurityError=$klass($base,$super,"SecurityError",$SecurityError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));(function($base,$super){function $StandardError(){}var self=$StandardError=$klass($base,$super,"StandardError",$StandardError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));(function($base,$super){function $ZeroDivisionError(){}var self=$ZeroDivisionError=$klass($base,$super,"ZeroDivisionError",$ZeroDivisionError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $NameError(){}var self=$NameError=$klass($base,$super,"NameError",$NameError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $NoMethodError(){}var self=$NoMethodError=$klass($base,$super,"NoMethodError",$NoMethodError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("NameError"));(function($base,$super){function $RuntimeError(){}var self=$RuntimeError=$klass($base,$super,"RuntimeError",$RuntimeError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $LocalJumpError(){}var self=$LocalJumpError=$klass($base,$super,"LocalJumpError",$LocalJumpError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $TypeError(){}var self=$TypeError=$klass($base,$super,"TypeError",$TypeError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $ArgumentError(){}var self=$ArgumentError=$klass($base,$super,"ArgumentError",$ArgumentError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $IndexError(){}var self=$IndexError=$klass($base,$super,"IndexError",$IndexError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $StopIteration(){}var self=$StopIteration=$klass($base,$super,"StopIteration",$StopIteration);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("IndexError"));(function($base,$super){function $KeyError(){}var self=$KeyError=$klass($base,$super,"KeyError",$KeyError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("IndexError"));(function($base,$super){function $RangeError(){}var self=$RangeError=$klass($base,$super,"RangeError",$RangeError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $FloatDomainError(){}var self=$FloatDomainError=$klass($base,$super,"FloatDomainError",$FloatDomainError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("RangeError"));(function($base,$super){function $IOError(){}var self=$IOError=$klass($base,$super,"IOError",$IOError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $SystemCallError(){}var self=$SystemCallError=$klass($base,$super,"SystemCallError",$SystemCallError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base){var self=$module($base,"Errno");var def=self.$$proto,$scope=self.$$scope;(function($base,$super){function $EINVAL(){}var self=$EINVAL=$klass($base,$super,"EINVAL",$EINVAL);var def=self.$$proto,$scope=self.$$scope,TMP_1;return(Opal.defs(self,"$new",TMP_1=function(){var self=this,$iter=TMP_1.$$p,$yield=$iter||nil;TMP_1.$$p=null;return Opal.find_super_dispatcher(self,"new",TMP_1,null,$EINVAL).apply(self,["Invalid argument"])}),nil)&&"new"})($scope.base,$scope.get("SystemCallError"))})($scope.base);(function($base,$super){function $UncaughtThrowError(){}var self=$UncaughtThrowError=$klass($base,$super,"UncaughtThrowError",$UncaughtThrowError);var def=self.$$proto,$scope=self.$$scope,TMP_2;def.sym=nil;self.$attr_reader("sym","arg");return(Opal.defn(self,"$initialize",TMP_2=function(args){var self=this,$iter=TMP_2.$$p,$yield=$iter||nil;TMP_2.$$p=null;self.sym=args["$[]"](0);if($rb_gt(args.$length(),1)){self.arg=args["$[]"](1)}return Opal.find_super_dispatcher(self,"initialize",TMP_2,null).apply(self,["uncaught throw "+self.sym.$inspect()])}),nil)&&"initialize"})($scope.base,$scope.get("ArgumentError"));(function($base,$super){function $NameError(){}var self=$NameError=$klass($base,$super,"NameError",$NameError);var def=self.$$proto,$scope=self.$$scope,TMP_3;self.$attr_reader("name");return(Opal.defn(self,"$initialize",TMP_3=function(message,name){var self=this,$iter=TMP_3.$$p,$yield=$iter||nil;if(name==null){name=nil}TMP_3.$$p=null;Opal.find_super_dispatcher(self,"initialize",TMP_3,null).apply(self,[message]);return self.name=name}),nil)&&"initialize"})($scope.base,null);return function($base,$super){function $NoMethodError(){}var self=$NoMethodError=$klass($base,$super,"NoMethodError",$NoMethodError);var def=self.$$proto,$scope=self.$$scope,TMP_4;self.$attr_reader("args");return(Opal.defn(self,"$initialize",TMP_4=function(message,name,args){var self=this,$iter=TMP_4.$$p,$yield=$iter||nil;if(args==null){args=[]}TMP_4.$$p=null;Opal.find_super_dispatcher(self,"initialize",TMP_4,null).apply(self,[message,name]);return self.args=args}),nil)&&"initialize"}($scope.base,null)};Opal.modules["corelib/constants"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice;Opal.cdecl($scope,"RUBY_PLATFORM","opal");Opal.cdecl($scope,"RUBY_ENGINE","opal");Opal.cdecl($scope,"RUBY_VERSION","2.1.5");Opal.cdecl($scope,"RUBY_ENGINE_VERSION","0.9.0.beta2");Opal.cdecl($scope,"RUBY_RELEASE_DATE","2015-11-06");Opal.cdecl($scope,"RUBY_PATCHLEVEL",0);Opal.cdecl($scope,"RUBY_REVISION",0);Opal.cdecl($scope,"RUBY_COPYRIGHT","opal - Copyright (C) 2013-2015 Adam Beynon");return Opal.cdecl($scope,"RUBY_DESCRIPTION","opal "+$scope.get("RUBY_ENGINE_VERSION")+" ("+$scope.get("RUBY_RELEASE_DATE")+" revision "+$scope.get("RUBY_REVISION")+")")};Opal.modules["opal/base"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice;Opal.add_stubs(["$require"]);self.$require("corelib/runtime");self.$require("corelib/helpers");self.$require("corelib/module");self.$require("corelib/class");self.$require("corelib/basic_object");self.$require("corelib/kernel");self.$require("corelib/error");return self.$require("corelib/constants")};Opal.modules["corelib/nil"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$raise","$class","$new","$>","$length","$Rational"]);(function($base,$super){function $NilClass(){}var self=$NilClass=$klass($base,$super,"NilClass",$NilClass);var def=self.$$proto,$scope=self.$$scope;def.$$meta=self;Opal.defn(self,"$!",function(){var self=this;return true});Opal.defn(self,"$&",function(other){var self=this;return false});Opal.defn(self,"$|",function(other){var self=this;return other!==false&&other!==nil});Opal.defn(self,"$^",function(other){var self=this;return other!==false&&other!==nil});Opal.defn(self,"$==",function(other){var self=this;return other===nil});Opal.defn(self,"$dup",function(){var self=this;return self.$raise($scope.get("TypeError"),"can't dup "+self.$class())});Opal.defn(self,"$clone",function(){var self=this;return self.$raise($scope.get("TypeError"),"can't clone "+self.$class())});Opal.defn(self,"$inspect",function(){var self=this;return"nil"});Opal.defn(self,"$nil?",function(){var self=this;return true});Opal.defn(self,"$singleton_class",function(){var self=this;return $scope.get("NilClass")});Opal.defn(self,"$to_a",function(){var self=this;return[]});Opal.defn(self,"$to_h",function(){var self=this;return Opal.hash()});Opal.defn(self,"$to_i",function(){var self=this;return 0});Opal.alias(self,"to_f","to_i");Opal.defn(self,"$to_s",function(){var self=this;return""});Opal.defn(self,"$to_c",function(){var self=this;return $scope.get("Complex").$new(0,0)});Opal.defn(self,"$rationalize",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}if($rb_gt(args.$length(),1)){self.$raise($scope.get("ArgumentError"))}return self.$Rational(0,1)});return(Opal.defn(self,"$to_r",function(){var self=this;return self.$Rational(0,1)}),nil)&&"to_r"})($scope.base,null);return Opal.cdecl($scope,"NIL",nil)};Opal.modules["corelib/boolean"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$raise","$class"]);(function($base,$super){function $Boolean(){}var self=$Boolean=$klass($base,$super,"Boolean",$Boolean);var def=self.$$proto,$scope=self.$$scope;def.$$is_boolean=true;def.$$meta=self;Opal.defn(self,"$__id__",function(){var self=this;return self.valueOf()?2:0});Opal.alias(self,"object_id","__id__");Opal.defn(self,"$!",function(){var self=this;return self!=true});Opal.defn(self,"$&",function(other){var self=this;return self==true?other!==false&&other!==nil:false});Opal.defn(self,"$|",function(other){var self=this;return self==true?true:other!==false&&other!==nil});Opal.defn(self,"$^",function(other){var self=this;return self==true?other===false||other===nil:other!==false&&other!==nil});Opal.defn(self,"$==",function(other){var self=this;return self==true===other.valueOf()});Opal.alias(self,"equal?","==");Opal.alias(self,"eql?","==");Opal.defn(self,"$singleton_class",function(){var self=this;return $scope.get("Boolean")});Opal.defn(self,"$to_s",function(){var self=this;return self==true?"true":"false"});Opal.defn(self,"$dup",function(){var self=this;return self.$raise($scope.get("TypeError"),"can't dup "+self.$class())});return(Opal.defn(self,"$clone",function(){var self=this;return self.$raise($scope.get("TypeError"),"can't clone "+self.$class())}),nil)&&"clone"})($scope.base,Boolean);Opal.cdecl($scope,"TrueClass",$scope.get("Boolean"));Opal.cdecl($scope,"FalseClass",$scope.get("Boolean"));Opal.cdecl($scope,"TRUE",true);return Opal.cdecl($scope,"FALSE",false)};Opal.modules["corelib/comparable"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module;Opal.add_stubs(["$===","$>","$<","$equal?","$<=>","$normalize","$raise","$class"]);return function($base){var self=$module($base,"Comparable");var def=self.$$proto,$scope=self.$$scope;Opal.defs(self,"$normalize",function(what){var $a,self=this;if(($a=$scope.get("Integer")["$==="](what))!==nil&&(!$a.$$is_boolean||$a==true)){return what}if($rb_gt(what,0)){return 1}if($rb_lt(what,0)){return-1}return 0});Opal.defn(self,"$==",function(other){var $a,self=this,cmp=nil;try{if(($a=self["$equal?"](other))!==nil&&(!$a.$$is_boolean||$a==true)){return true}if(self["$<=>"]==Opal.Kernel["$<=>"]){return false}if(self.$$comparable){delete self.$$comparable;return false}if(($a=cmp=self["$<=>"](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return false}return $scope.get("Comparable").$normalize(cmp)==0}catch($err){if(Opal.rescue($err,[$scope.get("StandardError")])){try{return false}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}});Opal.defn(self,"$>",function(other){var $a,self=this,cmp=nil;if(($a=cmp=self["$<=>"](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+other.$class()+" failed")}return $scope.get("Comparable").$normalize(cmp)>0});Opal.defn(self,"$>=",function(other){var $a,self=this,cmp=nil;if(($a=cmp=self["$<=>"](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+other.$class()+" failed")}return $scope.get("Comparable").$normalize(cmp)>=0});Opal.defn(self,"$<",function(other){var $a,self=this,cmp=nil;if(($a=cmp=self["$<=>"](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+other.$class()+" failed")}return $scope.get("Comparable").$normalize(cmp)<0});Opal.defn(self,"$<=",function(other){var $a,self=this,cmp=nil;if(($a=cmp=self["$<=>"](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+other.$class()+" failed")}return $scope.get("Comparable").$normalize(cmp)<=0});Opal.defn(self,"$between?",function(min,max){var self=this;if($rb_lt(self,min)){return false}if($rb_gt(self,max)){return false}return true})}($scope.base)};Opal.modules["corelib/regexp"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$gvars=Opal.gvars;Opal.add_stubs(["$nil?","$[]","$raise","$escape","$options","$to_str","$new","$join","$coerce_to!","$!","$match","$coerce_to?","$begin","$coerce_to","$call","$=~","$attr_reader","$===","$inspect","$to_a"]);(function($base,$super){function $RegexpError(){}var self=$RegexpError=$klass($base,$super,"RegexpError",$RegexpError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));(function($base,$super){function $Regexp(){}var self=$Regexp=$klass($base,$super,"Regexp",$Regexp);var def=self.$$proto,$scope=self.$$scope,TMP_2;Opal.cdecl($scope,"IGNORECASE",1);Opal.cdecl($scope,"MULTILINE",4);def.$$is_regexp=true;(function(self){var $scope=self.$$scope,def=self.$$proto,TMP_1;Opal.defn(self,"$allocate",TMP_1=function(){var $zuper=$slice.call(arguments,0);var self=this,$iter=TMP_1.$$p,$yield=$iter||nil,allocated=nil;TMP_1.$$p=null;allocated=Opal.find_super_dispatcher(self,"allocate",TMP_1,$iter).apply(self,$zuper);allocated.uninitialized=true;return allocated});Opal.defn(self,"$escape",function(string){var self=this;return string.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")});Opal.defn(self,"$last_match",function(n){var $a,self=this;if($gvars["~"]==null)$gvars["~"]=nil;if(n==null){n=nil}if(($a=n["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return $gvars["~"]}else{return $gvars["~"]["$[]"](n)}});Opal.alias(self,"quote","escape");Opal.defn(self,"$union",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var parts=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){parts[arg_index]=arguments[arg_index+0]}var is_first_part_array,quoted_validated,part,options,each_part_options;if(parts.length==0){return/(?!)/}is_first_part_array=parts[0].$$is_array;if(parts.length>1&&is_first_part_array){self.$raise($scope.get("TypeError"),"no implicit conversion of Array into String")}if(is_first_part_array){parts=parts[0]}options=undefined;quoted_validated=[];for(var i=0;i<parts.length;i++){part=parts[i];if(part.$$is_string){quoted_validated.push(self.$escape(part))}else if(part.$$is_regexp){each_part_options=part.$options();if(options!=undefined&&options!=each_part_options){self.$raise($scope.get("TypeError"),"All expressions must use the same options")}options=each_part_options;quoted_validated.push("("+part.source+")")}else{quoted_validated.push(self.$escape(part.$to_str()))}}return self.$new(quoted_validated.$join("|"),options)});return(Opal.defn(self,"$new",function(regexp,options){var self=this;if(regexp.$$is_regexp){return new RegExp(regexp)}regexp=$scope.get("Opal")["$coerce_to!"](regexp,$scope.get("String"),"to_str");if(regexp.charAt(regexp.length-1)==="\\"){self.$raise($scope.get("RegexpError"),"too short escape sequence: /"+regexp+"/")}if(options===undefined||options["$!"]()){return new RegExp(regexp)}if(options.$$is_number){var temp="";if($scope.get("IGNORECASE")&options){temp+="i"}if($scope.get("MULTILINE")&options){temp+="m"}options=temp}else{options="i"}return new RegExp(regexp,options)}),nil)&&"new"})(Opal.get_singleton_class(self));Opal.defn(self,"$==",function(other){var self=this;return other.constructor==RegExp&&self.toString()===other.toString()});Opal.defn(self,"$===",function(string){var self=this;return self.$match($scope.get("Opal")["$coerce_to?"](string,$scope.get("String"),"to_str"))!==nil});Opal.defn(self,"$=~",function(string){ | |
var $a,self=this;if($gvars["~"]==null)$gvars["~"]=nil;return $a=self.$match(string),$a!==false&&$a!==nil?$gvars["~"].$begin(0):$a});Opal.alias(self,"eql?","==");Opal.defn(self,"$inspect",function(){var self=this;return self.toString()});Opal.defn(self,"$match",TMP_2=function(string,pos){var self=this,$iter=TMP_2.$$p,block=$iter||nil;if($gvars["~"]==null)$gvars["~"]=nil;TMP_2.$$p=null;if(self.uninitialized){self.$raise($scope.get("TypeError"),"uninitialized Regexp")}if(pos===undefined){pos=0}else{pos=$scope.get("Opal").$coerce_to(pos,$scope.get("Integer"),"to_int")}if(string===nil){return $gvars["~"]=nil}string=$scope.get("Opal").$coerce_to(string,$scope.get("String"),"to_str");if(pos<0){pos+=string.length;if(pos<0){return $gvars["~"]=nil}}var source=self.source;var flags="g";if(self.multiline){source=source.replace(".","[\\s\\S]");flags+="m"}var md,re=new RegExp(source,flags+(self.ignoreCase?"i":""));while(true){md=re.exec(string);if(md===null){return $gvars["~"]=nil}if(md.index>=pos){$gvars["~"]=$scope.get("MatchData").$new(re,md);return block===nil?$gvars["~"]:block.$call($gvars["~"])}re.lastIndex=md.index+1}});Opal.defn(self,"$~",function(){var self=this;if($gvars._==null)$gvars._=nil;return self["$=~"]($gvars._)});Opal.defn(self,"$source",function(){var self=this;return self.source});Opal.defn(self,"$options",function(){var self=this;if(self.uninitialized){self.$raise($scope.get("TypeError"),"uninitialized Regexp")}var result=0;if(self.multiline){result|=$scope.get("MULTILINE")}if(self.ignoreCase){result|=$scope.get("IGNORECASE")}return result});Opal.defn(self,"$casefold?",function(){var self=this;return self.ignoreCase});return Opal.alias(self,"to_s","source")})($scope.base,RegExp);return function($base,$super){function $MatchData(){}var self=$MatchData=$klass($base,$super,"MatchData",$MatchData);var def=self.$$proto,$scope=self.$$scope;def.matches=nil;self.$attr_reader("post_match","pre_match","regexp","string");Opal.defn(self,"$initialize",function(regexp,match_groups){var self=this;$gvars["~"]=self;self.regexp=regexp;self.begin=match_groups.index;self.string=match_groups.input;self.pre_match=match_groups.input.slice(0,match_groups.index);self.post_match=match_groups.input.slice(match_groups.index+match_groups[0].length);self.matches=[];for(var i=0,length=match_groups.length;i<length;i++){var group=match_groups[i];if(group==null){self.matches.push(nil)}else{self.matches.push(group)}}});Opal.defn(self,"$[]",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}return($a=self.matches)["$[]"].apply($a,Opal.to_a(args))});Opal.defn(self,"$offset",function(n){var self=this;if(n!==0){self.$raise($scope.get("ArgumentError"),"MatchData#offset only supports 0th element")}return[self.begin,self.begin+self.matches[n].length]});Opal.defn(self,"$==",function(other){var $a,$b,$c,$d,self=this;if(($a=$scope.get("MatchData")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return false}return $a=($b=($c=($d=self.string==other.string,$d!==false&&$d!==nil?self.regexp.toString()==other.regexp.toString():$d),$c!==false&&$c!==nil?self.pre_match==other.pre_match:$c),$b!==false&&$b!==nil?self.post_match==other.post_match:$b),$a!==false&&$a!==nil?self.begin==other.begin:$a});Opal.alias(self,"eql?","==");Opal.defn(self,"$begin",function(n){var self=this;if(n!==0){self.$raise($scope.get("ArgumentError"),"MatchData#begin only supports 0th element")}return self.begin});Opal.defn(self,"$end",function(n){var self=this;if(n!==0){self.$raise($scope.get("ArgumentError"),"MatchData#end only supports 0th element")}return self.begin+self.matches[n].length});Opal.defn(self,"$captures",function(){var self=this;return self.matches.slice(1)});Opal.defn(self,"$inspect",function(){var self=this;var str="#<MatchData "+self.matches[0].$inspect();for(var i=1,length=self.matches.length;i<length;i++){str+=" "+i+":"+self.matches[i].$inspect()}return str+">"});Opal.defn(self,"$length",function(){var self=this;return self.matches.length});Opal.alias(self,"size","length");Opal.defn(self,"$to_a",function(){var self=this;return self.matches});Opal.defn(self,"$to_s",function(){var self=this;return self.matches[0]});return(Opal.defn(self,"$values_at",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}var i,a,index,values=[];for(i=0;i<args.length;i++){if(args[i].$$is_range){a=args[i].$to_a();a.unshift(i,1);Array.prototype.splice.apply(args,a)}index=$scope.get("Opal")["$coerce_to!"](args[i],$scope.get("Integer"),"to_int");if(index<0){index+=self.matches.length;if(index<0){values.push(nil);continue}}values.push(self.matches[index])}return values}),nil)&&"values_at"}($scope.base,null)};Opal.modules["corelib/string"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$gvars=Opal.gvars;Opal.add_stubs(["$require","$include","$coerce_to?","$coerce_to","$raise","$===","$format","$to_s","$respond_to?","$to_str","$<=>","$==","$=~","$new","$empty?","$ljust","$ceil","$/","$+","$rjust","$floor","$to_a","$each_char","$to_proc","$coerce_to!","$copy_singleton_methods","$initialize_clone","$initialize_dup","$enum_for","$size","$chomp","$[]","$to_i","$class","$each_line","$match","$captures","$proc","$shift","$__send__","$succ","$escape"]);self.$require("corelib/comparable");self.$require("corelib/regexp");(function($base,$super){function $String(){}var self=$String=$klass($base,$super,"String",$String);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_4,TMP_5,TMP_6,TMP_7,TMP_8,TMP_9,TMP_11;def.length=nil;self.$include($scope.get("Comparable"));def.$$is_string=true;Opal.defn(self,"$__id__",function(){var self=this;return self.toString()});Opal.alias(self,"object_id","__id__");Opal.defs(self,"$try_convert",function(what){var self=this;return $scope.get("Opal")["$coerce_to?"](what,$scope.get("String"),"to_str")});Opal.defs(self,"$new",function(str){var self=this;if(str==null){str=""}str=$scope.get("Opal").$coerce_to(str,$scope.get("String"),"to_str");return new String(str)});Opal.defn(self,"$initialize",function(str){var self=this;if(str===undefined){return self}return self.$raise($scope.get("NotImplementedError"),"Mutable strings are not supported in Opal.")});Opal.defn(self,"$%",function(data){var $a,self=this;if(($a=$scope.get("Array")["$==="](data))!==nil&&(!$a.$$is_boolean||$a==true)){return($a=self).$format.apply($a,[self].concat(Opal.to_a(data)))}else{return self.$format(self,data)}});Opal.defn(self,"$*",function(count){var self=this;count=$scope.get("Opal").$coerce_to(count,$scope.get("Integer"),"to_int");if(count<0){self.$raise($scope.get("ArgumentError"),"negative argument")}if(count===0){return""}var result="",string=self.toString();if(string.length*count>=1<<28){self.$raise($scope.get("RangeError"),"multiply count must not overflow maximum string size")}for(;;){if((count&1)===1){result+=string}count>>>=1;if(count===0){break}string+=string}return result});Opal.defn(self,"$+",function(other){var self=this;other=$scope.get("Opal").$coerce_to(other,$scope.get("String"),"to_str");return self+other.$to_s()});Opal.defn(self,"$<=>",function(other){var $a,self=this;if(($a=other["$respond_to?"]("to_str"))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_str().$to_s();return self>other?1:self<other?-1:0}else{var cmp=other["$<=>"](self);if(cmp===nil){return nil}else{return cmp>0?-1:cmp<0?1:0}}});Opal.defn(self,"$==",function(other){var self=this;if(other.$$is_string){return self.toString()===other.toString()}if($scope.get("Opal")["$respond_to?"](other,"to_str")){return other["$=="](self)}return false});Opal.alias(self,"eql?","==");Opal.alias(self,"===","==");Opal.defn(self,"$=~",function(other){var self=this;if(other.$$is_string){self.$raise($scope.get("TypeError"),"type mismatch: String given")}return other["$=~"](self)});Opal.defn(self,"$[]",function(index,length){var self=this;var size=self.length,exclude;if(index.$$is_range){exclude=index.exclude;length=$scope.get("Opal").$coerce_to(index.end,$scope.get("Integer"),"to_int");index=$scope.get("Opal").$coerce_to(index.begin,$scope.get("Integer"),"to_int");if(Math.abs(index)>size){return nil}if(index<0){index+=size}if(length<0){length+=size}if(!exclude){length+=1}length=length-index;if(length<0){length=0}return self.substr(index,length)}if(index.$$is_string){if(length!=null){self.$raise($scope.get("TypeError"))}return self.indexOf(index)!==-1?index:nil}if(index.$$is_regexp){var match=self.match(index);if(match===null){$gvars["~"]=nil;return nil}$gvars["~"]=$scope.get("MatchData").$new(index,match);if(length==null){return match[0]}length=$scope.get("Opal").$coerce_to(length,$scope.get("Integer"),"to_int");if(length<0&&-length<match.length){return match[length+=match.length]}if(length>=0&&length<match.length){return match[length]}return nil}index=$scope.get("Opal").$coerce_to(index,$scope.get("Integer"),"to_int");if(index<0){index+=size}if(length==null){if(index>=size||index<0){return nil}return self.substr(index,1)}length=$scope.get("Opal").$coerce_to(length,$scope.get("Integer"),"to_int");if(length<0){return nil}if(index>size||index<0){return nil}return self.substr(index,length)});Opal.alias(self,"byteslice","[]");Opal.defn(self,"$capitalize",function(){var self=this;return self.charAt(0).toUpperCase()+self.substr(1).toLowerCase()});Opal.defn(self,"$casecmp",function(other){var self=this;other=$scope.get("Opal").$coerce_to(other,$scope.get("String"),"to_str").$to_s();var ascii_only=/^[\x00-\x7F]*$/;if(ascii_only.test(self)&&ascii_only.test(other)){self=self.toLowerCase();other=other.toLowerCase()}return self["$<=>"](other)});Opal.defn(self,"$center",function(width,padstr){var $a,self=this;if(padstr==null){padstr=" "}width=$scope.get("Opal").$coerce_to(width,$scope.get("Integer"),"to_int");padstr=$scope.get("Opal").$coerce_to(padstr,$scope.get("String"),"to_str").$to_s();if(($a=padstr["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"zero width padding")}if(($a=width<=self.length)!==nil&&(!$a.$$is_boolean||$a==true)){return self}var ljustified=self.$ljust($rb_divide($rb_plus(width,self.length),2).$ceil(),padstr),rjustified=self.$rjust($rb_divide($rb_plus(width,self.length),2).$floor(),padstr);return rjustified+ljustified.slice(self.length)});Opal.defn(self,"$chars",TMP_1=function(){var $a,$b,self=this,$iter=TMP_1.$$p,block=$iter||nil;TMP_1.$$p=null;if(block!==false&&block!==nil){}else{return self.$each_char().$to_a()}return($a=($b=self).$each_char,$a.$$p=block.$to_proc(),$a).call($b)});Opal.defn(self,"$chomp",function(separator){var $a,self=this;if($gvars["/"]==null)$gvars["/"]=nil;if(separator==null){separator=$gvars["/"]}if(($a=separator===nil||self.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return self}separator=$scope.get("Opal")["$coerce_to!"](separator,$scope.get("String"),"to_str").$to_s();if(separator==="\n"){return self.replace(/\r?\n?$/,"")}else if(separator===""){return self.replace(/(\r?\n)+$/,"")}else if(self.length>separator.length){var tail=self.substr(self.length-separator.length,separator.length);if(tail===separator){return self.substr(0,self.length-separator.length)}}return self});Opal.defn(self,"$chop",function(){var self=this;var length=self.length;if(length<=1){return""}if(self.charAt(length-1)==="\n"&&self.charAt(length-2)==="\r"){return self.substr(0,length-2)}else{return self.substr(0,length-1)}});Opal.defn(self,"$chr",function(){var self=this;return self.charAt(0)});Opal.defn(self,"$clone",function(){var self=this,copy=nil;copy=self.slice();copy.$copy_singleton_methods(self);copy.$initialize_clone(self);return copy});Opal.defn(self,"$dup",function(){var self=this,copy=nil;copy=self.slice();copy.$initialize_dup(self);return copy});Opal.defn(self,"$count",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var sets=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){sets[arg_index]=arguments[arg_index+0]}if(sets.length===0){self.$raise($scope.get("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)")}var char_class=char_class_from_char_sets(sets);if(char_class===null){return 0}return self.length-self.replace(new RegExp(char_class,"g"),"").length});Opal.defn(self,"$delete",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var sets=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){sets[arg_index]=arguments[arg_index+0]}if(sets.length===0){self.$raise($scope.get("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)")}var char_class=char_class_from_char_sets(sets);if(char_class===null){return self}return self.replace(new RegExp(char_class,"g"),"")});Opal.defn(self,"$downcase",function(){var self=this;return self.toLowerCase()});Opal.defn(self,"$each_char",TMP_2=function(){var $a,$b,TMP_3,self=this,$iter=TMP_2.$$p,block=$iter||nil;TMP_2.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_3=function(){var self=TMP_3.$$s||this;return self.$size()},TMP_3.$$s=self,TMP_3),$a).call($b,"each_char")}for(var i=0,length=self.length;i<length;i++){var value=Opal.yield1(block,self.charAt(i));if(value===$breaker){return $breaker.$v}}return self});Opal.defn(self,"$each_line",TMP_4=function(separator){var self=this,$iter=TMP_4.$$p,block=$iter||nil;if($gvars["/"]==null)$gvars["/"]=nil;if(separator==null){separator=$gvars["/"]}TMP_4.$$p=null;if(block!==nil){}else{return self.$enum_for("each_line",separator)}var value;if(separator===nil){value=Opal.yield1(block,self);if(value===$breaker){return value.$v}else{return self}}separator=$scope.get("Opal").$coerce_to(separator,$scope.get("String"),"to_str");var a,i,n,length,chomped,trailing,splitted;if(separator.length===0){for(a=self.split(/(\n{2,})/),i=0,n=a.length;i<n;i+=2){if(a[i]||a[i+1]){value=Opal.yield1(block,(a[i]||"")+(a[i+1]||""));if(value===$breaker){return value.$v}}}return self}chomped=self.$chomp(separator);trailing=self.length!=chomped.length;splitted=chomped.split(separator);for(i=0,length=splitted.length;i<length;i++){if(i<length-1||trailing){value=Opal.yield1(block,splitted[i]+separator);if(value===$breaker){return value.$v}}else{value=Opal.yield1(block,splitted[i]);if(value===$breaker){return value.$v}}}return self});Opal.defn(self,"$empty?",function(){var self=this;return self.length===0});Opal.defn(self,"$end_with?",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var suffixes=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){suffixes[arg_index]=arguments[arg_index+0]}for(var i=0,length=suffixes.length;i<length;i++){var suffix=$scope.get("Opal").$coerce_to(suffixes[i],$scope.get("String"),"to_str").$to_s();if(self.length>=suffix.length&&self.substr(self.length-suffix.length,suffix.length)==suffix){return true}}return false});Opal.alias(self,"eql?","==");Opal.alias(self,"equal?","===");Opal.defn(self,"$gsub",TMP_5=function(pattern,replacement){var self=this,$iter=TMP_5.$$p,block=$iter||nil;TMP_5.$$p=null;if(replacement===undefined&&block===nil){return self.$enum_for("gsub",pattern)}var result="",match_data=nil,index=0,match,_replacement;if(pattern.$$is_regexp){pattern=new RegExp(pattern.source,"gm"+(pattern.ignoreCase?"i":""))}else{pattern=$scope.get("Opal").$coerce_to(pattern,$scope.get("String"),"to_str");pattern=new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")}while(true){match=pattern.exec(self);if(match===null){$gvars["~"]=nil;result+=self.slice(index);break}match_data=$scope.get("MatchData").$new(pattern,match);if(replacement===undefined){_replacement=block(match[0])}else if(replacement.$$is_hash){_replacement=replacement["$[]"](match[0]).$to_s()}else{if(!replacement.$$is_string){replacement=$scope.get("Opal").$coerce_to(replacement,$scope.get("String"),"to_str")}_replacement=replacement.replace(/([\\]+)([0-9+&`'])/g,function(original,slashes,command){if(slashes.length%2===0){return original}switch(command){case"+":for(var i=match.length-1;i>0;i--){if(match[i]!==undefined){return slashes.slice(1)+match[i]}}return"";case"&":return slashes.slice(1)+match[0];case"`":return slashes.slice(1)+self.slice(0,match.index);case"'":return slashes.slice(1)+self.slice(match.index+match[0].length);default:return slashes.slice(1)+(match[command]||"")}}).replace(/\\\\/g,"\\")}if(pattern.lastIndex===match.index){result+=_replacement+self.slice(index,match.index+1);pattern.lastIndex+=1}else{result+=self.slice(index,match.index)+_replacement}index=pattern.lastIndex}$gvars["~"]=match_data;return result});Opal.defn(self,"$hash",function(){var self=this;return self.toString()});Opal.defn(self,"$hex",function(){var self=this;return self.$to_i(16)});Opal.defn(self,"$include?",function(other){var $a,self=this;if(other.$$is_string){return self.indexOf(other)!==-1}if(($a=other["$respond_to?"]("to_str"))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"no implicit conversion of "+other.$class()+" into String")}return self.indexOf(other.$to_str())!==-1});Opal.defn(self,"$index",function(search,offset){var self=this;var index,match,regex;if(offset===undefined){offset=0}else{offset=$scope.get("Opal").$coerce_to(offset,$scope.get("Integer"),"to_int");if(offset<0){offset+=self.length;if(offset<0){return nil}}}if(search.$$is_regexp){regex=new RegExp(search.source,"gm"+(search.ignoreCase?"i":""));while(true){match=regex.exec(self);if(match===null){$gvars["~"]=nil;index=-1;break}if(match.index>=offset){$gvars["~"]=$scope.get("MatchData").$new(regex,match);index=match.index;break}regex.lastIndex=match.index+1}}else{search=$scope.get("Opal").$coerce_to(search,$scope.get("String"),"to_str");if(search.length===0&&offset>self.length){index=-1}else{index=self.indexOf(search,offset)}}return index===-1?nil:index});Opal.defn(self,"$inspect",function(){var self=this;var escapable=/[\\\"\x00-\x1f\x7f-\x9f\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"":"\\a","":"\\e","\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\x0B":"\\v",'"':'\\"',"\\":"\\\\"},escaped=self.replace(escapable,function(chr){return meta[chr]||"\\u"+("0000"+chr.charCodeAt(0).toString(16).toUpperCase()).slice(-4)});return'"'+escaped.replace(/\#[\$\@\{]/g,"\\$&")+'"'});Opal.defn(self,"$intern",function(){var self=this;return self});Opal.defn(self,"$lines",TMP_6=function(separator){var $a,$b,self=this,$iter=TMP_6.$$p,block=$iter||nil,e=nil;if($gvars["/"]==null)$gvars["/"]=nil;if(separator==null){separator=$gvars["/"]}TMP_6.$$p=null;e=($a=($b=self).$each_line,$a.$$p=block.$to_proc(),$a).call($b,separator);if(block!==false&&block!==nil){return self}else{return e.$to_a()}});Opal.defn(self,"$length",function(){var self=this;return self.length});Opal.defn(self,"$ljust",function(width,padstr){var $a,self=this;if(padstr==null){padstr=" "}width=$scope.get("Opal").$coerce_to(width,$scope.get("Integer"),"to_int");padstr=$scope.get("Opal").$coerce_to(padstr,$scope.get("String"),"to_str").$to_s();if(($a=padstr["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"zero width padding")}if(($a=width<=self.length)!==nil&&(!$a.$$is_boolean||$a==true)){return self}var index=-1,result="";width-=self.length;while(++index<width){result+=padstr}return self+result.slice(0,width)});Opal.defn(self,"$lstrip",function(){var self=this;return self.replace(/^\s*/,"")});Opal.defn(self,"$match",TMP_7=function(pattern,pos){var $a,$b,self=this,$iter=TMP_7.$$p,block=$iter||nil;TMP_7.$$p=null;if(($a=($b=$scope.get("String")["$==="](pattern))!==false&&$b!==nil?$b:pattern["$respond_to?"]("to_str"))!==nil&&(!$a.$$is_boolean||$a==true)){pattern=$scope.get("Regexp").$new(pattern.$to_str())}if(($a=$scope.get("Regexp")["$==="](pattern))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"wrong argument type "+pattern.$class()+" (expected Regexp)")}return($a=($b=pattern).$match,$a.$$p=block.$to_proc(),$a).call($b,self,pos)});Opal.defn(self,"$next",function(){var self=this;var i=self.length;if(i===0){return""}var result=self;var first_alphanum_char_index=self.search(/[a-zA-Z0-9]/);var carry=false;var code;while(i--){code=self.charCodeAt(i);if(code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122){switch(code){case 57:carry=true;code=48;break;case 90:carry=true;code=65;break;case 122:carry=true;code=97;break;default:carry=false;code+=1}}else{if(first_alphanum_char_index===-1){if(code===255){carry=true;code=0}else{carry=false;code+=1}}else{carry=true}}result=result.slice(0,i)+String.fromCharCode(code)+result.slice(i+1);if(carry&&(i===0||i===first_alphanum_char_index)){switch(code){case 65:break;case 97:break;default:code+=1}if(i===0){result=String.fromCharCode(code)+result}else{result=result.slice(0,i)+String.fromCharCode(code)+result.slice(i)}carry=false}if(!carry){break}}return result});Opal.defn(self,"$oct",function(){var self=this;var result,string=self,radix=8;if(/^\s*_/.test(string)){return 0}string=string.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(original,head,flag,tail){switch(tail.charAt(0)){case"+":case"-":return original;case"0":if(tail.charAt(1)==="x"&&flag==="0x"){return original}}switch(flag){case"0b":radix=2;break;case"0":case"0o":radix=8;break;case"0d":radix=10;break;case"0x":radix=16;break}return head+tail});result=parseInt(string.replace(/_(?!_)/g,""),radix);return isNaN(result)?0:result});Opal.defn(self,"$ord",function(){var self=this;return self.charCodeAt(0)});Opal.defn(self,"$partition",function(sep){var self=this;var i,m;if(sep.$$is_regexp){m=sep.exec(self);if(m===null){i=-1}else{$scope.get("MatchData").$new(sep,m);sep=m[0];i=m.index}}else{sep=$scope.get("Opal").$coerce_to(sep,$scope.get("String"),"to_str");i=self.indexOf(sep)}if(i===-1){return[self,"",""]}return[self.slice(0,i),self.slice(i,i+sep.length),self.slice(i+sep.length)]});Opal.defn(self,"$reverse",function(){var self=this;return self.split("").reverse().join("")});Opal.defn(self,"$rindex",function(search,offset){var self=this;var i,m,r,_m;if(offset===undefined){offset=self.length}else{offset=$scope.get("Opal").$coerce_to(offset,$scope.get("Integer"),"to_int");if(offset<0){offset+=self.length;if(offset<0){return nil}}}if(search.$$is_regexp){m=null;r=new RegExp(search.source,"gm"+(search.ignoreCase?"i":""));while(true){_m=r.exec(self);if(_m===null||_m.index>offset){break}m=_m;r.lastIndex=m.index+1}if(m===null){$gvars["~"]=nil;i=-1}else{$scope.get("MatchData").$new(r,m);i=m.index}}else{search=$scope.get("Opal").$coerce_to(search,$scope.get("String"),"to_str");i=self.lastIndexOf(search,offset)}return i===-1?nil:i});Opal.defn(self,"$rjust",function(width,padstr){var $a,self=this;if(padstr==null){padstr=" "}width=$scope.get("Opal").$coerce_to(width,$scope.get("Integer"),"to_int");padstr=$scope.get("Opal").$coerce_to(padstr,$scope.get("String"),"to_str").$to_s();if(($a=padstr["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"zero width padding")}if(($a=width<=self.length)!==nil&&(!$a.$$is_boolean||$a==true)){return self}var chars=Math.floor(width-self.length),patterns=Math.floor(chars/padstr.length),result=Array(patterns+1).join(padstr),remaining=chars-result.length;return result+padstr.slice(0,remaining)+self});Opal.defn(self,"$rpartition",function(sep){var self=this;var i,m,r,_m;if(sep.$$is_regexp){m=null;r=new RegExp(sep.source,"gm"+(sep.ignoreCase?"i":""));while(true){_m=r.exec(self);if(_m===null){break}m=_m;r.lastIndex=m.index+1}if(m===null){i=-1}else{$scope.get("MatchData").$new(r,m);sep=m[0];i=m.index}}else{sep=$scope.get("Opal").$coerce_to(sep,$scope.get("String"),"to_str");i=self.lastIndexOf(sep)}if(i===-1){return["","",self]}return[self.slice(0,i),self.slice(i,i+sep.length),self.slice(i+sep.length)]});Opal.defn(self,"$rstrip",function(){var self=this;return self.replace(/[\s\u0000]*$/,"")});Opal.defn(self,"$scan",TMP_8=function(pattern){var self=this,$iter=TMP_8.$$p,block=$iter||nil;TMP_8.$$p=null;var result=[],match_data=nil,match;if(pattern.$$is_regexp){pattern=new RegExp(pattern.source,"gm"+(pattern.ignoreCase?"i":""))}else{pattern=$scope.get("Opal").$coerce_to(pattern,$scope.get("String"),"to_str");pattern=new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")}while((match=pattern.exec(self))!=null){match_data=$scope.get("MatchData").$new(pattern,match);if(block===nil){match.length==1?result.push(match[0]):result.push(match_data.$captures())}else{match.length==1?block(match[0]):block.call(self,match_data.$captures())}if(pattern.lastIndex===match.index){pattern.lastIndex+=1}}$gvars["~"]=match_data;return block!==nil?self:result});Opal.alias(self,"size","length");Opal.alias(self,"slice","[]");Opal.defn(self,"$split",function(pattern,limit){var $a,self=this;if($gvars[";"]==null)$gvars[";"]=nil;if(self.length===0){return[]}if(limit===undefined){limit=0}else{limit=$scope.get("Opal")["$coerce_to!"](limit,$scope.get("Integer"),"to_int");if(limit===1){return[self]}}if(pattern===undefined||pattern===nil){pattern=($a=$gvars[";"])!==false&&$a!==nil?$a:" "}var result=[],string=self.toString(),index=0,match,i;if(pattern.$$is_regexp){pattern=new RegExp(pattern.source,"gm"+(pattern.ignoreCase?"i":""))}else{pattern=$scope.get("Opal").$coerce_to(pattern,$scope.get("String"),"to_str").$to_s();if(pattern===" "){pattern=/\s+/gm;string=string.replace(/^\s+/,"")}else{pattern=new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")}}result=string.split(pattern);if(result.length===1&&result[0]===string){return result}while((i=result.indexOf(undefined))!==-1){result.splice(i,1)}if(limit===0){while(result[result.length-1]===""){result.length-=1}return result}match=pattern.exec(string);if(limit<0){if(match!==null&&match[0]===""&&pattern.source.indexOf("(?=")===-1){for(i=0;i<match.length;i++){result.push("")}}return result}if(match!==null&&match[0]===""){result.splice(limit-1,result.length-1,result.slice(limit-1).join(""));return result}i=0;while(match!==null){i++;index=pattern.lastIndex;if(i+1===limit){break}match=pattern.exec(string)}result.splice(limit-1,result.length-1,string.slice(index));return result});Opal.defn(self,"$squeeze",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var sets=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){sets[arg_index]=arguments[arg_index+0]}if(sets.length===0){return self.replace(/(.)\1+/g,"$1")}var char_class=char_class_from_char_sets(sets);if(char_class===null){return self}return self.replace(new RegExp("("+char_class+")\\1+","g"),"$1")});Opal.defn(self,"$start_with?",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var prefixes=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){prefixes[arg_index]=arguments[arg_index+0]}for(var i=0,length=prefixes.length;i<length;i++){var prefix=$scope.get("Opal").$coerce_to(prefixes[i],$scope.get("String"),"to_str").$to_s();if(self.indexOf(prefix)===0){return true}}return false});Opal.defn(self,"$strip",function(){var self=this;return self.replace(/^\s*/,"").replace(/[\s\u0000]*$/,"")});Opal.defn(self,"$sub",TMP_9=function(pattern,replacement){var self=this,$iter=TMP_9.$$p,block=$iter||nil;TMP_9.$$p=null;if(!pattern.$$is_regexp){pattern=$scope.get("Opal").$coerce_to(pattern,$scope.get("String"),"to_str");pattern=new RegExp(pattern.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}var result=pattern.exec(self);if(result===null){$gvars["~"]=nil;return self.toString()}$scope.get("MatchData").$new(pattern,result);if(replacement===undefined){if(block===nil){self.$raise($scope.get("ArgumentError"),"wrong number of arguments (1 for 2)")}return self.slice(0,result.index)+block(result[0])+self.slice(result.index+result[0].length)}if(replacement.$$is_hash){return self.slice(0,result.index)+replacement["$[]"](result[0]).$to_s()+self.slice(result.index+result[0].length)}replacement=$scope.get("Opal").$coerce_to(replacement,$scope.get("String"),"to_str");replacement=replacement.replace(/([\\]+)([0-9+&`'])/g,function(original,slashes,command){if(slashes.length%2===0){return original}switch(command){case"+":for(var i=result.length-1;i>0;i--){if(result[i]!==undefined){return slashes.slice(1)+result[i]}}return"";case"&":return slashes.slice(1)+result[0];case"`":return slashes.slice(1)+self.slice(0,result.index);case"'":return slashes.slice(1)+self.slice(result.index+result[0].length);default:return slashes.slice(1)+(result[command]||"")}}).replace(/\\\\/g,"\\");return self.slice(0,result.index)+replacement+self.slice(result.index+result[0].length)});Opal.alias(self,"succ","next");Opal.defn(self,"$sum",function(n){var self=this;if(n==null){n=16}n=$scope.get("Opal").$coerce_to(n,$scope.get("Integer"),"to_int");var result=0,length=self.length,i=0;for(;i<length;i++){result+=self.charCodeAt(i)}if(n<=0){return result}return result&Math.pow(2,n)-1});Opal.defn(self,"$swapcase",function(){var self=this;var str=self.replace(/([a-z]+)|([A-Z]+)/g,function($0,$1,$2){return $1?$0.toUpperCase():$0.toLowerCase()});if(self.constructor===String){return str}return self.$class().$new(str)});Opal.defn(self,"$to_f",function(){var self=this;if(self.charAt(0)==="_"){return 0}var result=parseFloat(self.replace(/_/g,""));if(isNaN(result)||result==Infinity||result==-Infinity){return 0}else{return result}});Opal.defn(self,"$to_i",function(base){var self=this;if(base==null){base=10}var result,string=self.toLowerCase(),radix=$scope.get("Opal").$coerce_to(base,$scope.get("Integer"),"to_int");if(radix===1||radix<0||radix>36){self.$raise($scope.get("ArgumentError"),"invalid radix "+radix)}if(/^\s*_/.test(string)){return 0}string=string.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(original,head,flag,tail){switch(tail.charAt(0)){case"+":case"-":return original;case"0":if(tail.charAt(1)==="x"&&flag==="0x"&&(radix===0||radix===16)){return original}}switch(flag){case"0b":if(radix===0||radix===2){radix=2;return head+tail}break;case"0":case"0o":if(radix===0||radix===8){radix=8;return head+tail}break;case"0d":if(radix===0||radix===10){radix=10;return head+tail}break;case"0x":if(radix===0||radix===16){radix=16;return head+tail}break}return original});result=parseInt(string.replace(/_(?!_)/g,""),radix);return isNaN(result)?0:result});Opal.defn(self,"$to_proc",function(){var $a,$b,TMP_10,self=this,sym=nil;sym=self;return($a=($b=self).$proc,$a.$$p=(TMP_10=function(args){var self=TMP_10.$$s||this,block,$a,$b,obj=nil;args=$slice.call(arguments,0);block=TMP_10.$$p||nil,TMP_10.$$p=null;if(($a=args["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"no receiver given")}obj=args.$shift();return($a=($b=obj).$__send__,$a.$$p=block.$to_proc(),$a).apply($b,[sym].concat(Opal.to_a(args)))},TMP_10.$$s=self,TMP_10),$a).call($b)});Opal.defn(self,"$to_s",function(){var self=this;return self.toString()});Opal.alias(self,"to_str","to_s");Opal.alias(self,"to_sym","intern");Opal.defn(self,"$tr",function(from,to){var self=this;from=$scope.get("Opal").$coerce_to(from,$scope.get("String"),"to_str").$to_s();to=$scope.get("Opal").$coerce_to(to,$scope.get("String"),"to_str").$to_s();if(from.length==0||from===to){return self}var i,in_range,c,ch,start,end,length;var subs={};var from_chars=from.split("");var from_length=from_chars.length;var to_chars=to.split("");var to_length=to_chars.length;var inverse=false;var global_sub=null; | |
if(from_chars[0]==="^"&&from_chars.length>1){inverse=true;from_chars.shift();global_sub=to_chars[to_length-1];from_length-=1}var from_chars_expanded=[];var last_from=null;in_range=false;for(i=0;i<from_length;i++){ch=from_chars[i];if(last_from==null){last_from=ch;from_chars_expanded.push(ch)}else if(ch==="-"){if(last_from==="-"){from_chars_expanded.push("-");from_chars_expanded.push("-")}else if(i==from_length-1){from_chars_expanded.push("-")}else{in_range=true}}else if(in_range){start=last_from.charCodeAt(0);end=ch.charCodeAt(0);if(start>end){self.$raise($scope.get("ArgumentError"),'invalid range "'+String.fromCharCode(start)+"-"+String.fromCharCode(end)+'" in string transliteration')}for(c=start+1;c<end;c++){from_chars_expanded.push(String.fromCharCode(c))}from_chars_expanded.push(ch);in_range=null;last_from=null}else{from_chars_expanded.push(ch)}}from_chars=from_chars_expanded;from_length=from_chars.length;if(inverse){for(i=0;i<from_length;i++){subs[from_chars[i]]=true}}else{if(to_length>0){var to_chars_expanded=[];var last_to=null;in_range=false;for(i=0;i<to_length;i++){ch=to_chars[i];if(last_from==null){last_from=ch;to_chars_expanded.push(ch)}else if(ch==="-"){if(last_to==="-"){to_chars_expanded.push("-");to_chars_expanded.push("-")}else if(i==to_length-1){to_chars_expanded.push("-")}else{in_range=true}}else if(in_range){start=last_from.charCodeAt(0);end=ch.charCodeAt(0);if(start>end){self.$raise($scope.get("ArgumentError"),'invalid range "'+String.fromCharCode(start)+"-"+String.fromCharCode(end)+'" in string transliteration')}for(c=start+1;c<end;c++){to_chars_expanded.push(String.fromCharCode(c))}to_chars_expanded.push(ch);in_range=null;last_from=null}else{to_chars_expanded.push(ch)}}to_chars=to_chars_expanded;to_length=to_chars.length}var length_diff=from_length-to_length;if(length_diff>0){var pad_char=to_length>0?to_chars[to_length-1]:"";for(i=0;i<length_diff;i++){to_chars.push(pad_char)}}for(i=0;i<from_length;i++){subs[from_chars[i]]=to_chars[i]}}var new_str="";for(i=0,length=self.length;i<length;i++){ch=self.charAt(i);var sub=subs[ch];if(inverse){new_str+=sub==null?global_sub:ch}else{new_str+=sub!=null?sub:ch}}return new_str});Opal.defn(self,"$tr_s",function(from,to){var self=this;from=$scope.get("Opal").$coerce_to(from,$scope.get("String"),"to_str").$to_s();to=$scope.get("Opal").$coerce_to(to,$scope.get("String"),"to_str").$to_s();if(from.length==0){return self}var i,in_range,c,ch,start,end,length;var subs={};var from_chars=from.split("");var from_length=from_chars.length;var to_chars=to.split("");var to_length=to_chars.length;var inverse=false;var global_sub=null;if(from_chars[0]==="^"&&from_chars.length>1){inverse=true;from_chars.shift();global_sub=to_chars[to_length-1];from_length-=1}var from_chars_expanded=[];var last_from=null;in_range=false;for(i=0;i<from_length;i++){ch=from_chars[i];if(last_from==null){last_from=ch;from_chars_expanded.push(ch)}else if(ch==="-"){if(last_from==="-"){from_chars_expanded.push("-");from_chars_expanded.push("-")}else if(i==from_length-1){from_chars_expanded.push("-")}else{in_range=true}}else if(in_range){start=last_from.charCodeAt(0);end=ch.charCodeAt(0);if(start>end){self.$raise($scope.get("ArgumentError"),'invalid range "'+String.fromCharCode(start)+"-"+String.fromCharCode(end)+'" in string transliteration')}for(c=start+1;c<end;c++){from_chars_expanded.push(String.fromCharCode(c))}from_chars_expanded.push(ch);in_range=null;last_from=null}else{from_chars_expanded.push(ch)}}from_chars=from_chars_expanded;from_length=from_chars.length;if(inverse){for(i=0;i<from_length;i++){subs[from_chars[i]]=true}}else{if(to_length>0){var to_chars_expanded=[];var last_to=null;in_range=false;for(i=0;i<to_length;i++){ch=to_chars[i];if(last_from==null){last_from=ch;to_chars_expanded.push(ch)}else if(ch==="-"){if(last_to==="-"){to_chars_expanded.push("-");to_chars_expanded.push("-")}else if(i==to_length-1){to_chars_expanded.push("-")}else{in_range=true}}else if(in_range){start=last_from.charCodeAt(0);end=ch.charCodeAt(0);if(start>end){self.$raise($scope.get("ArgumentError"),'invalid range "'+String.fromCharCode(start)+"-"+String.fromCharCode(end)+'" in string transliteration')}for(c=start+1;c<end;c++){to_chars_expanded.push(String.fromCharCode(c))}to_chars_expanded.push(ch);in_range=null;last_from=null}else{to_chars_expanded.push(ch)}}to_chars=to_chars_expanded;to_length=to_chars.length}var length_diff=from_length-to_length;if(length_diff>0){var pad_char=to_length>0?to_chars[to_length-1]:"";for(i=0;i<length_diff;i++){to_chars.push(pad_char)}}for(i=0;i<from_length;i++){subs[from_chars[i]]=to_chars[i]}}var new_str="";var last_substitute=null;for(i=0,length=self.length;i<length;i++){ch=self.charAt(i);var sub=subs[ch];if(inverse){if(sub==null){if(last_substitute==null){new_str+=global_sub;last_substitute=true}}else{new_str+=ch;last_substitute=null}}else{if(sub!=null){if(last_substitute==null||last_substitute!==sub){new_str+=sub;last_substitute=sub}}else{new_str+=ch;last_substitute=null}}}return new_str});Opal.defn(self,"$upcase",function(){var self=this;return self.toUpperCase()});Opal.defn(self,"$upto",TMP_11=function(stop,excl){var self=this,$iter=TMP_11.$$p,block=$iter||nil;if(excl==null){excl=false}TMP_11.$$p=null;if(block!==nil){}else{return self.$enum_for("upto",stop,excl)}stop=$scope.get("Opal").$coerce_to(stop,$scope.get("String"),"to_str");var a,b,s=self.toString();if(s.length===1&&stop.length===1){a=s.charCodeAt(0);b=stop.charCodeAt(0);while(a<=b){if(excl&&a===b){break}block(String.fromCharCode(a));a+=1}}else if(parseInt(s,10).toString()===s&&parseInt(stop,10).toString()===stop){a=parseInt(s,10);b=parseInt(stop,10);while(a<=b){if(excl&&a===b){break}block(a.toString());a+=1}}else{while(s.length<=stop.length&&s<=stop){if(excl&&s===stop){break}block(s);s=s.$succ()}}return self});function char_class_from_char_sets(sets){function explode_sequences_in_character_set(set){var result="",i,len=set.length,curr_char,skip_next_dash,char_code_from,char_code_upto,char_code;for(i=0;i<len;i++){curr_char=set.charAt(i);if(curr_char==="-"&&i>0&&i<len-1&&!skip_next_dash){char_code_from=set.charCodeAt(i-1);char_code_upto=set.charCodeAt(i+1);if(char_code_from>char_code_upto){self.$raise($scope.get("ArgumentError"),'invalid range "'+char_code_from+"-"+char_code_upto+'" in string transliteration')}for(char_code=char_code_from+1;char_code<char_code_upto+1;char_code++){result+=String.fromCharCode(char_code)}skip_next_dash=true;i++}else{skip_next_dash=curr_char==="\\";result+=curr_char}}return result}function intersection(setA,setB){if(setA.length===0){return setB}var result="",i,len=setA.length,chr;for(i=0;i<len;i++){chr=setA.charAt(i);if(setB.indexOf(chr)!==-1){result+=chr}}return result}var i,len,set,neg,chr,tmp,pos_intersection="",neg_intersection="";for(i=0,len=sets.length;i<len;i++){set=$scope.get("Opal").$coerce_to(sets[i],$scope.get("String"),"to_str");neg=set.charAt(0)==="^"&&set.length>1;set=explode_sequences_in_character_set(neg?set.slice(1):set);if(neg){neg_intersection=intersection(neg_intersection,set)}else{pos_intersection=intersection(pos_intersection,set)}}if(pos_intersection.length>0&&neg_intersection.length>0){tmp="";for(i=0,len=pos_intersection.length;i<len;i++){chr=pos_intersection.charAt(i);if(neg_intersection.indexOf(chr)===-1){tmp+=chr}}pos_intersection=tmp;neg_intersection=""}if(pos_intersection.length>0){return"["+$scope.get("Regexp").$escape(pos_intersection)+"]"}if(neg_intersection.length>0){return"[^"+$scope.get("Regexp").$escape(neg_intersection)+"]"}return null}})($scope.base,String);return Opal.cdecl($scope,"Symbol",$scope.get("String"))};Opal.modules["corelib/enumerable"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module;Opal.add_stubs(["$raise","$new","$yield","$dup","$enum_for","$enumerator_size","$flatten","$map","$==","$destructure","$respond_to?","$coerce_to!","$>","$*","$nil?","$coerce_to","$try_convert","$<","$+","$-","$ceil","$/","$size","$===","$<<","$[]","$[]=","$inspect","$__send__","$compare","$<=>","$proc","$call","$to_a","$lambda","$sort!","$map!","$first","$zip"]);return function($base){var self=$module($base,"Enumerable");var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_6,TMP_8,TMP_11,TMP_12,TMP_14,TMP_15,TMP_16,TMP_18,TMP_19,TMP_21,TMP_23,TMP_25,TMP_27,TMP_28,TMP_29,TMP_31,TMP_33,TMP_34,TMP_36,TMP_37,TMP_39,TMP_41,TMP_42,TMP_43,TMP_44,TMP_46,TMP_48,TMP_50,TMP_52,TMP_54,TMP_59,TMP_60;Opal.defn(self,"$all?",TMP_1=function(){var $a,self=this,$iter=TMP_1.$$p,block=$iter||nil;TMP_1.$$p=null;var result=true;if(block!==nil){self.$each.$$p=function(){var value=Opal.yieldX(block,arguments);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)===nil||$a.$$is_boolean&&$a==false){result=false;return $breaker}}}else{self.$each.$$p=function(obj){if(arguments.length==1&&(($a=obj)===nil||$a.$$is_boolean&&$a==false)){result=false;return $breaker}}}self.$each();return result});Opal.defn(self,"$any?",TMP_2=function(){var $a,self=this,$iter=TMP_2.$$p,block=$iter||nil;TMP_2.$$p=null;var result=false;if(block!==nil){self.$each.$$p=function(){var value=Opal.yieldX(block,arguments);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result=true;return $breaker}}}else{self.$each.$$p=function(obj){if(arguments.length!=1||($a=obj)!==nil&&(!$a.$$is_boolean||$a==true)){result=true;return $breaker}}}self.$each();return result});Opal.defn(self,"$chunk",TMP_3=function(state){var $a,$b,TMP_4,self=this,$iter=TMP_3.$$p,original_block=$iter||nil;TMP_3.$$p=null;if(original_block!==false&&original_block!==nil){}else{$scope.get("Kernel").$raise($scope.get("ArgumentError"),"no block given")}return($a=($b=Opal.get("Enumerator")).$new,$a.$$p=(TMP_4=function(yielder){var self=TMP_4.$$s||this,$a,$b,TMP_5;if(yielder==null)yielder=nil;var block,previous=nil,accumulate=[];if(state==undefined||state===nil){block=original_block}else{block=($a=($b=$scope.get("Proc")).$new,$a.$$p=(TMP_5=function(val){var self=TMP_5.$$s||this;if(val==null)val=nil;return original_block.$yield(val,state.$dup())},TMP_5.$$s=self,TMP_5),$a).call($b)}function releaseAccumulate(){if(accumulate.length>0){yielder.$yield(previous,accumulate)}}self.$each.$$p=function(value){var key=Opal.yield1(block,value);if(key===$breaker){return $breaker}if(key===nil){releaseAccumulate();accumulate=[];previous=nil}else{if(previous===nil||previous===key){accumulate.push(value)}else{releaseAccumulate();accumulate=[value]}previous=key}};self.$each();releaseAccumulate()},TMP_4.$$s=self,TMP_4),$a).call($b)});Opal.defn(self,"$collect",TMP_6=function(){var $a,$b,TMP_7,self=this,$iter=TMP_6.$$p,block=$iter||nil;TMP_6.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_7=function(){var self=TMP_7.$$s||this;return self.$enumerator_size()},TMP_7.$$s=self,TMP_7),$a).call($b,"collect")}var result=[];self.$each.$$p=function(){var value=Opal.yieldX(block,arguments);if(value===$breaker){result=$breaker.$v;return $breaker}result.push(value)};self.$each();return result});Opal.defn(self,"$collect_concat",TMP_8=function(){var $a,$b,TMP_9,$c,TMP_10,self=this,$iter=TMP_8.$$p,block=$iter||nil;TMP_8.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_9=function(){var self=TMP_9.$$s||this;return self.$enumerator_size()},TMP_9.$$s=self,TMP_9),$a).call($b,"collect_concat")}return($a=($c=self).$map,$a.$$p=(TMP_10=function(item){var self=TMP_10.$$s||this,$a;if(item==null)item=nil;return $a=Opal.yield1(block,item),$a===$breaker?$a:$a},TMP_10.$$s=self,TMP_10),$a).call($c).$flatten(1)});Opal.defn(self,"$count",TMP_11=function(object){var $a,self=this,$iter=TMP_11.$$p,block=$iter||nil;TMP_11.$$p=null;var result=0;if(object!=null){block=function(){return $scope.get("Opal").$destructure(arguments)["$=="](object)}}else if(block===nil){block=function(){return true}}self.$each.$$p=function(){var value=Opal.yieldX(block,arguments);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result++}};self.$each();return result});Opal.defn(self,"$cycle",TMP_12=function(n){var $a,$b,TMP_13,self=this,$iter=TMP_12.$$p,block=$iter||nil;if(n==null){n=nil}TMP_12.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_13=function(){var self=TMP_13.$$s||this,$a;if(n["$=="](nil)){if(($a=self["$respond_to?"]("size"))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Float").$$scope.get("INFINITY")}else{return nil}}else{n=$scope.get("Opal")["$coerce_to!"](n,$scope.get("Integer"),"to_int");if($rb_gt(n,0)){return $rb_times(self.$enumerator_size(),n)}else{return 0}}},TMP_13.$$s=self,TMP_13),$a).call($b,"cycle",n)}if(($a=n["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{n=$scope.get("Opal")["$coerce_to!"](n,$scope.get("Integer"),"to_int");if(($a=n<=0)!==nil&&(!$a.$$is_boolean||$a==true)){return nil}}var result,all=[],i,length,value;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}all.push(param)};self.$each();if(result!==undefined){return result}if(all.length===0){return nil}if(n===nil){while(true){for(i=0,length=all.length;i<length;i++){value=Opal.yield1(block,all[i]);if(value===$breaker){return $breaker.$v}}}}else{while(n>1){for(i=0,length=all.length;i<length;i++){value=Opal.yield1(block,all[i]);if(value===$breaker){return $breaker.$v}}n--}}});Opal.defn(self,"$detect",TMP_14=function(ifnone){var $a,self=this,$iter=TMP_14.$$p,block=$iter||nil;TMP_14.$$p=null;if(block!==nil){}else{return self.$enum_for("detect",ifnone)}var result;self.$each.$$p=function(){var params=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,params);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result=params;return $breaker}};self.$each();if(result===undefined&&ifnone!==undefined){if(typeof ifnone==="function"){result=ifnone()}else{result=ifnone}}return result===undefined?nil:result});Opal.defn(self,"$drop",function(number){var $a,self=this;number=$scope.get("Opal").$coerce_to(number,$scope.get("Integer"),"to_int");if(($a=number<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"attempt to drop negative size")}var result=[],current=0;self.$each.$$p=function(){if(number<=current){result.push($scope.get("Opal").$destructure(arguments))}current++};self.$each();return result});Opal.defn(self,"$drop_while",TMP_15=function(){var $a,self=this,$iter=TMP_15.$$p,block=$iter||nil;TMP_15.$$p=null;if(block!==nil){}else{return self.$enum_for("drop_while")}var result=[],dropping=true;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);if(dropping){var value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)===nil||$a.$$is_boolean&&$a==false){dropping=false;result.push(param)}}else{result.push(param)}};self.$each();return result});Opal.defn(self,"$each_cons",TMP_16=function(n){var $a,$b,TMP_17,self=this,$iter=TMP_16.$$p,block=$iter||nil;TMP_16.$$p=null;if(($a=arguments.length!=1)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)")}n=$scope.get("Opal").$try_convert(n,$scope.get("Integer"),"to_int");if(($a=n<=0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"invalid size")}if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_17=function(){var self=TMP_17.$$s||this,$a,$b,enum_size=nil;enum_size=self.$enumerator_size();if(($a=enum_size["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else if(($a=($b=enum_size["$=="](0))!==false&&$b!==nil?$b:$rb_lt(enum_size,n))!==nil&&(!$a.$$is_boolean||$a==true)){return 0}else{return $rb_plus($rb_minus(enum_size,n),1)}},TMP_17.$$s=self,TMP_17),$a).call($b,"each_cons",n)}var buffer=[],result=nil;self.$each.$$p=function(){var element=$scope.get("Opal").$destructure(arguments);buffer.push(element);if(buffer.length>n){buffer.shift()}if(buffer.length==n){var value=Opal.yield1(block,buffer.slice(0,n));if(value==$breaker){result=$breaker.$v;return $breaker}}};self.$each();return result});Opal.defn(self,"$each_entry",TMP_18=function(){var self=this,$iter=TMP_18.$$p,block=$iter||nil;TMP_18.$$p=null;return self.$raise($scope.get("NotImplementedError"))});Opal.defn(self,"$each_slice",TMP_19=function(n){var $a,$b,TMP_20,self=this,$iter=TMP_19.$$p,block=$iter||nil;TMP_19.$$p=null;n=$scope.get("Opal").$coerce_to(n,$scope.get("Integer"),"to_int");if(($a=n<=0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"invalid slice size")}if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_20=function(){var self=TMP_20.$$s||this,$a;if(($a=self["$respond_to?"]("size"))!==nil&&(!$a.$$is_boolean||$a==true)){return $rb_divide(self.$size(),n).$ceil()}else{return nil}},TMP_20.$$s=self,TMP_20),$a).call($b,"each_slice",n)}var result,slice=[];self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);slice.push(param);if(slice.length===n){if(Opal.yield1(block,slice)===$breaker){result=$breaker.$v;return $breaker}slice=[]}};self.$each();if(result!==undefined){return result}if(slice.length>0){if(Opal.yield1(block,slice)===$breaker){return $breaker.$v}}return nil});Opal.defn(self,"$each_with_index",TMP_21=function(){var $a,$b,TMP_22,self=this,$iter=TMP_21.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_21.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_22=function(){var self=TMP_22.$$s||this;return self.$enumerator_size()},TMP_22.$$s=self,TMP_22),$a).apply($b,["each_with_index"].concat(Opal.to_a(args)))}var result,index=0;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=block(param,index);if(value===$breaker){result=$breaker.$v;return $breaker}index++};self.$each.apply(self,args);if(result!==undefined){return result}return self});Opal.defn(self,"$each_with_object",TMP_23=function(object){var $a,$b,TMP_24,self=this,$iter=TMP_23.$$p,block=$iter||nil;TMP_23.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_24=function(){var self=TMP_24.$$s||this;return self.$enumerator_size()},TMP_24.$$s=self,TMP_24),$a).call($b,"each_with_object",object)}var result;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=block(param,object);if(value===$breaker){result=$breaker.$v;return $breaker}};self.$each();if(result!==undefined){return result}return object});Opal.defn(self,"$entries",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}var result=[];self.$each.$$p=function(){result.push($scope.get("Opal").$destructure(arguments))};self.$each.apply(self,args);return result});Opal.alias(self,"find","detect");Opal.defn(self,"$find_all",TMP_25=function(){var $a,$b,TMP_26,self=this,$iter=TMP_25.$$p,block=$iter||nil;TMP_25.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_26=function(){var self=TMP_26.$$s||this;return self.$enumerator_size()},TMP_26.$$s=self,TMP_26),$a).call($b,"find_all")}var result=[];self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result.push(param)}};self.$each();return result});Opal.defn(self,"$find_index",TMP_27=function(object){var $a,self=this,$iter=TMP_27.$$p,block=$iter||nil;TMP_27.$$p=null;if(($a=object===undefined&&block===nil)!==nil&&(!$a.$$is_boolean||$a==true)){return self.$enum_for("find_index")}var result=nil,index=0;if(object!=null){self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);if(param["$=="](object)){result=index;return $breaker}index+=1}}else if(block!==nil){self.$each.$$p=function(){var value=Opal.yieldX(block,arguments);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result=index;return $breaker}index+=1}}self.$each();return result});Opal.defn(self,"$first",function(number){var $a,self=this,result=nil;if(($a=number===undefined)!==nil&&(!$a.$$is_boolean||$a==true)){result=nil;self.$each.$$p=function(){result=$scope.get("Opal").$destructure(arguments);return $breaker};self.$each()}else{result=[];number=$scope.get("Opal").$coerce_to(number,$scope.get("Integer"),"to_int");if(($a=number<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"attempt to take negative size")}if(($a=number==0)!==nil&&(!$a.$$is_boolean||$a==true)){return[]}var current=0;number=$scope.get("Opal").$coerce_to(number,$scope.get("Integer"),"to_int");self.$each.$$p=function(){result.push($scope.get("Opal").$destructure(arguments));if(number<=++current){return $breaker}};self.$each()}return result});Opal.alias(self,"flat_map","collect_concat");Opal.defn(self,"$grep",TMP_28=function(pattern){var $a,self=this,$iter=TMP_28.$$p,block=$iter||nil;TMP_28.$$p=null;var result=[];if(block!==nil){self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=pattern["$==="](param);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}result.push(value)}}}else{self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=pattern["$==="](param);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result.push(param)}}}self.$each();return result});Opal.defn(self,"$group_by",TMP_29=function(){var $a,$b,TMP_30,$c,$d,self=this,$iter=TMP_29.$$p,block=$iter||nil,hash=nil;TMP_29.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_30=function(){var self=TMP_30.$$s||this;return self.$enumerator_size()},TMP_30.$$s=self,TMP_30),$a).call($b,"group_by")}hash=$scope.get("Hash").$new();var result;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}($a=value,$c=hash,($d=$c["$[]"]($a))!==false&&$d!==nil?$d:$c["$[]="]($a,[]))["$<<"](param)};self.$each();if(result!==undefined){return result}return hash});Opal.defn(self,"$include?",function(obj){var self=this;var result=false;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);if(param["$=="](obj)){result=true;return $breaker}};self.$each();return result});Opal.defn(self,"$inject",TMP_31=function(object,sym){var self=this,$iter=TMP_31.$$p,block=$iter||nil;TMP_31.$$p=null;var result=object;if(block!==nil&&sym===undefined){self.$each.$$p=function(){var value=$scope.get("Opal").$destructure(arguments);if(result===undefined){result=value;return}value=Opal.yieldX(block,[result,value]);if(value===$breaker){result=$breaker.$v;return $breaker}result=value}}else{if(sym===undefined){if(!$scope.get("Symbol")["$==="](object)){self.$raise($scope.get("TypeError"),""+object.$inspect()+" is not a Symbol")}sym=object;result=undefined}self.$each.$$p=function(){var value=$scope.get("Opal").$destructure(arguments);if(result===undefined){result=value;return}result=result.$__send__(sym,value)}}self.$each();return result==undefined?nil:result});Opal.defn(self,"$lazy",function(){var $a,$b,TMP_32,self=this;return($a=($b=$scope.get("Enumerator").$$scope.get("Lazy")).$new,$a.$$p=(TMP_32=function(enum$,args){var self=TMP_32.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);return($a=enum$).$yield.apply($a,Opal.to_a(args))},TMP_32.$$s=self,TMP_32),$a).call($b,self,self.$enumerator_size())});Opal.defn(self,"$enumerator_size",function(){var $a,self=this;if(($a=self["$respond_to?"]("size"))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$size()}else{return nil}});Opal.alias(self,"map","collect");Opal.defn(self,"$max",TMP_33=function(){var self=this,$iter=TMP_33.$$p,block=$iter||nil;TMP_33.$$p=null;var result;if(block!==nil){self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);if(result===undefined){result=param;return}var value=block(param,result);if(value===$breaker){result=$breaker.$v;return $breaker}if(value===nil){self.$raise($scope.get("ArgumentError"),"comparison failed")}if(value>0){result=param}}}else{self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);if(result===undefined){result=param;return}if($scope.get("Opal").$compare(param,result)>0){result=param}}}self.$each();return result===undefined?nil:result});Opal.defn(self,"$max_by",TMP_34=function(){var $a,$b,TMP_35,self=this,$iter=TMP_34.$$p,block=$iter||nil;TMP_34.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_35=function(){var self=TMP_35.$$s||this;return self.$enumerator_size()},TMP_35.$$s=self,TMP_35),$a).call($b,"max_by")}var result,by;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(result===undefined){result=param;by=value;return}if(value===$breaker){result=$breaker.$v;return $breaker}if(value["$<=>"](by)>0){result=param;by=value}};self.$each();return result===undefined?nil:result});Opal.alias(self,"member?","include?");Opal.defn(self,"$min",TMP_36=function(){var self=this,$iter=TMP_36.$$p,block=$iter||nil;TMP_36.$$p=null;var result;if(block!==nil){self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);if(result===undefined){result=param;return}var value=block(param,result);if(value===$breaker){result=$breaker.$v;return $breaker}if(value===nil){self.$raise($scope.get("ArgumentError"),"comparison failed")}if(value<0){result=param}}}else{self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments);if(result===undefined){result=param;return}if($scope.get("Opal").$compare(param,result)<0){result=param}}}self.$each();return result===undefined?nil:result});Opal.defn(self,"$min_by",TMP_37=function(){var $a,$b,TMP_38,self=this,$iter=TMP_37.$$p,block=$iter||nil;TMP_37.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_38=function(){var self=TMP_38.$$s||this;return self.$enumerator_size()},TMP_38.$$s=self,TMP_38),$a).call($b,"min_by")}var result,by;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(result===undefined){result=param;by=value;return}if(value===$breaker){result=$breaker.$v;return $breaker}if(value["$<=>"](by)<0){result=param;by=value}};self.$each();return result===undefined?nil:result});Opal.defn(self,"$minmax",TMP_39=function(){var $a,$b,$c,TMP_40,self=this,$iter=TMP_39.$$p,block=$iter||nil;TMP_39.$$p=null;($a=block)!==false&&$a!==nil?$a:block=($b=($c=self).$proc,$b.$$p=(TMP_40=function(a,b){var self=TMP_40.$$s||this;if(a==null)a=nil;if(b==null)b=nil;return a["$<=>"](b)},TMP_40.$$s=self,TMP_40),$b).call($c);var min=nil,max=nil,first_time=true;self.$each.$$p=function(){var element=$scope.get("Opal").$destructure(arguments);if(first_time){min=max=element;first_time=false}else{var min_cmp=block.$call(min,element);if(min_cmp===nil){self.$raise($scope.get("ArgumentError"),"comparison failed")}else if(min_cmp>0){min=element}var max_cmp=block.$call(max,element);if(max_cmp===nil){self.$raise($scope.get("ArgumentError"),"comparison failed")}else if(max_cmp<0){max=element}}};self.$each();return[min,max]});Opal.defn(self,"$minmax_by",TMP_41=function(){var self=this,$iter=TMP_41.$$p,block=$iter||nil;TMP_41.$$p=null;return self.$raise($scope.get("NotImplementedError"))});Opal.defn(self,"$none?",TMP_42=function(){var $a,self=this,$iter=TMP_42.$$p,block=$iter||nil;TMP_42.$$p=null;var result=true;if(block!==nil){self.$each.$$p=function(){var value=Opal.yieldX(block,arguments);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result=false;return $breaker}}}else{self.$each.$$p=function(){var value=$scope.get("Opal").$destructure(arguments);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){result=false;return $breaker}}}self.$each();return result});Opal.defn(self,"$one?",TMP_43=function(){var $a,self=this,$iter=TMP_43.$$p,block=$iter||nil;TMP_43.$$p=null;var result=false;if(block!==nil){self.$each.$$p=function(){var value=Opal.yieldX(block,arguments);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){if(result===true){result=false;return $breaker}result=true}}}else{self.$each.$$p=function(){var value=$scope.get("Opal").$destructure(arguments);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){if(result===true){result=false;return $breaker}result=true}}}self.$each();return result});Opal.defn(self,"$partition",TMP_44=function(){var $a,$b,TMP_45,self=this,$iter=TMP_44.$$p,block=$iter||nil;TMP_44.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_45=function(){var self=TMP_45.$$s||this;return self.$enumerator_size()},TMP_45.$$s=self,TMP_45),$a).call($b,"partition")}var truthy=[],falsy=[],result;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){truthy.push(param)}else{falsy.push(param)}};self.$each();return[truthy,falsy]});Opal.alias(self,"reduce","inject");Opal.defn(self,"$reject",TMP_46=function(){var $a,$b,TMP_47,self=this,$iter=TMP_46.$$p,block=$iter||nil;TMP_46.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_47=function(){var self=TMP_47.$$s||this;return self.$enumerator_size()},TMP_47.$$s=self,TMP_47),$a).call($b,"reject")}var result=[];self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)===nil||$a.$$is_boolean&&$a==false){result.push(param)}};self.$each();return result});Opal.defn(self,"$reverse_each",TMP_48=function(){var $a,$b,TMP_49,self=this,$iter=TMP_48.$$p,block=$iter||nil;TMP_48.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_49=function(){var self=TMP_49.$$s||this;return self.$enumerator_size()},TMP_49.$$s=self,TMP_49),$a).call($b,"reverse_each")}var result=[];self.$each.$$p=function(){result.push(arguments)};self.$each();for(var i=result.length-1;i>=0;i--){Opal.yieldX(block,result[i])}return result});Opal.alias(self,"select","find_all");Opal.defn(self,"$slice_before",TMP_50=function(pattern){var $a,$b,TMP_51,self=this,$iter=TMP_50.$$p,block=$iter||nil;TMP_50.$$p=null;if(($a=pattern===undefined&&block===nil||arguments.length>1)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)")}return($a=($b=$scope.get("Enumerator")).$new,$a.$$p=(TMP_51=function(e){var self=TMP_51.$$s||this,$a;if(e==null)e=nil;var slice=[];if(block!==nil){if(pattern===undefined){ | |
self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)&&slice.length>0){e["$<<"](slice);slice=[]}slice.push(param)}}else{self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=block(param,pattern.$dup());if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)&&slice.length>0){e["$<<"](slice);slice=[]}slice.push(param)}}}else{self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=pattern["$==="](param);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)&&slice.length>0){e["$<<"](slice);slice=[]}slice.push(param)}}self.$each();if(slice.length>0){e["$<<"](slice)}},TMP_51.$$s=self,TMP_51),$a).call($b)});Opal.defn(self,"$sort",TMP_52=function(){var $a,$b,TMP_53,self=this,$iter=TMP_52.$$p,block=$iter||nil,ary=nil;TMP_52.$$p=null;ary=self.$to_a();if(block!==nil){}else{block=($a=($b=self).$lambda,$a.$$p=(TMP_53=function(a,b){var self=TMP_53.$$s||this;if(a==null)a=nil;if(b==null)b=nil;return a["$<=>"](b)},TMP_53.$$s=self,TMP_53),$a).call($b)}return ary.sort(block)});Opal.defn(self,"$sort_by",TMP_54=function(){var $a,$b,TMP_55,$c,TMP_56,$d,TMP_57,$e,TMP_58,self=this,$iter=TMP_54.$$p,block=$iter||nil,dup=nil;TMP_54.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_55=function(){var self=TMP_55.$$s||this;return self.$enumerator_size()},TMP_55.$$s=self,TMP_55),$a).call($b,"sort_by")}dup=($a=($c=self).$map,$a.$$p=(TMP_56=function(){var self=TMP_56.$$s||this,arg=nil;arg=$scope.get("Opal").$destructure(arguments);return[block.$call(arg),arg]},TMP_56.$$s=self,TMP_56),$a).call($c);($a=($d=dup)["$sort!"],$a.$$p=(TMP_57=function(a,b){var self=TMP_57.$$s||this;if(a==null)a=nil;if(b==null)b=nil;return a[0]["$<=>"](b[0])},TMP_57.$$s=self,TMP_57),$a).call($d);return($a=($e=dup)["$map!"],$a.$$p=(TMP_58=function(i){var self=TMP_58.$$s||this;if(i==null)i=nil;return i[1]},TMP_58.$$s=self,TMP_58),$a).call($e)});Opal.defn(self,"$take",function(num){var self=this;return self.$first(num)});Opal.defn(self,"$take_while",TMP_59=function(){var $a,self=this,$iter=TMP_59.$$p,block=$iter||nil;TMP_59.$$p=null;if(block!==false&&block!==nil){}else{return self.$enum_for("take_while")}var result=[];self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=Opal.yield1(block,param);if(value===$breaker){result=$breaker.$v;return $breaker}if(($a=value)===nil||$a.$$is_boolean&&$a==false){return $breaker}result.push(param)};self.$each();return result});Opal.alias(self,"to_a","entries");Opal.defn(self,"$zip",TMP_60=function(){var $a,self=this,$iter=TMP_60.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var others=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){others[arg_index]=arguments[arg_index+0]}TMP_60.$$p=null;return($a=self.$to_a()).$zip.apply($a,Opal.to_a(others))})}($scope.base)};Opal.modules["corelib/enumerator"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$require","$include","$allocate","$new","$to_proc","$coerce_to","$nil?","$empty?","$+","$class","$__send__","$===","$call","$enum_for","$size","$destructure","$inspect","$[]","$raise","$yield","$each","$enumerator_size","$respond_to?","$try_convert","$<","$for"]);self.$require("corelib/enumerable");return function($base,$super){function $Enumerator(){}var self=$Enumerator=$klass($base,$super,"Enumerator",$Enumerator);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_4;def.size=def.args=def.object=def.method=nil;self.$include($scope.get("Enumerable"));Opal.defs(self,"$for",TMP_1=function(object,method){var self=this,$iter=TMP_1.$$p,block=$iter||nil;var array_size=arguments.length-2;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+2]}if(method==null){method="each"}TMP_1.$$p=null;var obj=self.$allocate();obj.object=object;obj.size=block;obj.method=method;obj.args=args;return obj});Opal.defn(self,"$initialize",TMP_2=function(){var $a,$b,self=this,$iter=TMP_2.$$p,block=$iter||nil;TMP_2.$$p=null;if(block!==false&&block!==nil){self.object=($a=($b=$scope.get("Generator")).$new,$a.$$p=block.$to_proc(),$a).call($b);self.method="each";self.args=[];self.size=arguments[0]||nil;if(($a=self.size)!==nil&&(!$a.$$is_boolean||$a==true)){return self.size=$scope.get("Opal").$coerce_to(self.size,$scope.get("Integer"),"to_int")}else{return nil}}else{self.object=arguments[0];self.method=arguments[1]||"each";self.args=$slice.call(arguments,2);return self.size=nil}});Opal.defn(self,"$each",TMP_3=function(){var $a,$b,$c,self=this,$iter=TMP_3.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_3.$$p=null;if(($a=($b=block["$nil?"](),$b!==false&&$b!==nil?args["$empty?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self}args=$rb_plus(self.args,args);if(($a=block["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return($a=self.$class()).$new.apply($a,[self.object,self.method].concat(Opal.to_a(args)))}return($b=($c=self.object).$__send__,$b.$$p=block.$to_proc(),$b).apply($c,[self.method].concat(Opal.to_a(args)))});Opal.defn(self,"$size",function(){var $a,self=this;if(($a=$scope.get("Proc")["$==="](self.size))!==nil&&(!$a.$$is_boolean||$a==true)){return($a=self.size).$call.apply($a,Opal.to_a(self.args))}else{return self.size}});Opal.defn(self,"$with_index",TMP_4=function(offset){var $a,$b,TMP_5,self=this,$iter=TMP_4.$$p,block=$iter||nil;if(offset==null){offset=0}TMP_4.$$p=null;if(offset!==false&&offset!==nil){offset=$scope.get("Opal").$coerce_to(offset,$scope.get("Integer"),"to_int")}else{offset=0}if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_5=function(){var self=TMP_5.$$s||this;return self.$size()},TMP_5.$$s=self,TMP_5),$a).call($b,"with_index",offset)}var result,index=offset;self.$each.$$p=function(){var param=$scope.get("Opal").$destructure(arguments),value=block(param,index);if(value===$breaker){result=$breaker.$v;return $breaker}index++;return value};self.$each();if(result!==undefined){return result}return self.object});Opal.alias(self,"with_object","each_with_object");Opal.defn(self,"$inspect",function(){var $a,self=this,result=nil;result="#<"+self.$class()+": "+self.object.$inspect()+":"+self.method;if(($a=self.args["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{result=$rb_plus(result,"("+self.args.$inspect()["$[]"]($scope.get("Range").$new(1,-2))+")")}return $rb_plus(result,">")});(function($base,$super){function $Generator(){}var self=$Generator=$klass($base,$super,"Generator",$Generator);var def=self.$$proto,$scope=self.$$scope,TMP_6,TMP_7;def.block=nil;self.$include($scope.get("Enumerable"));Opal.defn(self,"$initialize",TMP_6=function(){var self=this,$iter=TMP_6.$$p,block=$iter||nil;TMP_6.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("LocalJumpError"),"no block given")}return self.block=block});return(Opal.defn(self,"$each",TMP_7=function(){var $a,$b,self=this,$iter=TMP_7.$$p,block=$iter||nil,yielder=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_7.$$p=null;yielder=($a=($b=$scope.get("Yielder")).$new,$a.$$p=block.$to_proc(),$a).call($b);try{args.unshift(yielder);if(Opal.yieldX(self.block,args)===$breaker){return $breaker.$v}}catch(e){if(e===$breaker){return $breaker.$v}else{throw e}}return self}),nil)&&"each"})($scope.base,null);(function($base,$super){function $Yielder(){}var self=$Yielder=$klass($base,$super,"Yielder",$Yielder);var def=self.$$proto,$scope=self.$$scope,TMP_8;def.block=nil;Opal.defn(self,"$initialize",TMP_8=function(){var self=this,$iter=TMP_8.$$p,block=$iter||nil;TMP_8.$$p=null;return self.block=block});Opal.defn(self,"$yield",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var values=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){values[arg_index]=arguments[arg_index+0]}var value=Opal.yieldX(self.block,values);if(value===$breaker){throw $breaker}return value});return(Opal.defn(self,"$<<",function(){var $a,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var values=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){values[arg_index]=arguments[arg_index+0]}($a=self).$yield.apply($a,Opal.to_a(values));return self}),nil)&&"<<"})($scope.base,null);return function($base,$super){function $Lazy(){}var self=$Lazy=$klass($base,$super,"Lazy",$Lazy);var def=self.$$proto,$scope=self.$$scope,TMP_9,TMP_12,TMP_14,TMP_19,TMP_21,TMP_22,TMP_24,TMP_27,TMP_30;def.enumerator=nil;(function($base,$super){function $StopLazyError(){}var self=$StopLazyError=$klass($base,$super,"StopLazyError",$StopLazyError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("Exception"));Opal.defn(self,"$initialize",TMP_9=function(object,size){var TMP_10,self=this,$iter=TMP_9.$$p,block=$iter||nil;if(size==null){size=nil}TMP_9.$$p=null;if(block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to call lazy new without a block")}self.enumerator=object;return Opal.find_super_dispatcher(self,"initialize",TMP_9,(TMP_10=function(yielder,each_args){var self=TMP_10.$$s||this,$a,$b,TMP_11;if(yielder==null)yielder=nil;each_args=$slice.call(arguments,1);try{return($a=($b=object).$each,$a.$$p=(TMP_11=function(args){var self=TMP_11.$$s||this;args=$slice.call(arguments,0);args.unshift(yielder);if(Opal.yieldX(block,args)===$breaker){return $breaker}},TMP_11.$$s=self,TMP_11),$a).apply($b,Opal.to_a(each_args))}catch($err){if(Opal.rescue($err,[$scope.get("Exception")])){try{return nil}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}},TMP_10.$$s=self,TMP_10)).apply(self,[size])});Opal.alias(self,"force","to_a");Opal.defn(self,"$lazy",function(){var self=this;return self});Opal.defn(self,"$collect",TMP_12=function(){var $a,$b,TMP_13,self=this,$iter=TMP_12.$$p,block=$iter||nil;TMP_12.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to call lazy map without a block")}return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_13=function(enum$,args){var self=TMP_13.$$s||this;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);var value=Opal.yieldX(block,args);if(value===$breaker){return $breaker}enum$.$yield(value)},TMP_13.$$s=self,TMP_13),$a).call($b,self,self.$enumerator_size())});Opal.defn(self,"$collect_concat",TMP_14=function(){var $a,$b,TMP_15,self=this,$iter=TMP_14.$$p,block=$iter||nil;TMP_14.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to call lazy map without a block")}return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_15=function(enum$,args){var self=TMP_15.$$s||this,$a,$b,TMP_16,$c,TMP_17;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);var value=Opal.yieldX(block,args);if(value===$breaker){return $breaker}if(value["$respond_to?"]("force")&&value["$respond_to?"]("each")){($a=($b=value).$each,$a.$$p=(TMP_16=function(v){var self=TMP_16.$$s||this;if(v==null)v=nil;return enum$.$yield(v)},TMP_16.$$s=self,TMP_16),$a).call($b)}else{var array=$scope.get("Opal").$try_convert(value,$scope.get("Array"),"to_ary");if(array===nil){enum$.$yield(value)}else{($a=($c=value).$each,$a.$$p=(TMP_17=function(v){var self=TMP_17.$$s||this;if(v==null)v=nil;return enum$.$yield(v)},TMP_17.$$s=self,TMP_17),$a).call($c)}}},TMP_15.$$s=self,TMP_15),$a).call($b,self,nil)});Opal.defn(self,"$drop",function(n){var $a,$b,TMP_18,self=this,current_size=nil,set_size=nil,dropped=nil;n=$scope.get("Opal").$coerce_to(n,$scope.get("Integer"),"to_int");if($rb_lt(n,0)){self.$raise($scope.get("ArgumentError"),"attempt to drop negative size")}current_size=self.$enumerator_size();set_size=function(){if(($a=$scope.get("Integer")["$==="](current_size))!==nil&&(!$a.$$is_boolean||$a==true)){if($rb_lt(n,current_size)){return n}else{return current_size}}else{return current_size}return nil}();dropped=0;return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_18=function(enum$,args){var self=TMP_18.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);if($rb_lt(dropped,n)){return dropped=$rb_plus(dropped,1)}else{return($a=enum$).$yield.apply($a,Opal.to_a(args))}},TMP_18.$$s=self,TMP_18),$a).call($b,self,set_size)});Opal.defn(self,"$drop_while",TMP_19=function(){var $a,$b,TMP_20,self=this,$iter=TMP_19.$$p,block=$iter||nil,succeeding=nil;TMP_19.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to call lazy drop_while without a block")}succeeding=true;return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_20=function(enum$,args){var self=TMP_20.$$s||this,$a,$b;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);if(succeeding!==false&&succeeding!==nil){var value=Opal.yieldX(block,args);if(value===$breaker){return $breaker}if(($a=value)===nil||$a.$$is_boolean&&$a==false){succeeding=false;($a=enum$).$yield.apply($a,Opal.to_a(args))}}else{return($b=enum$).$yield.apply($b,Opal.to_a(args))}},TMP_20.$$s=self,TMP_20),$a).call($b,self,nil)});Opal.defn(self,"$enum_for",TMP_21=function(method){var $a,$b,self=this,$iter=TMP_21.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}if(method==null){method="each"}TMP_21.$$p=null;return($a=($b=self.$class()).$for,$a.$$p=block.$to_proc(),$a).apply($b,[self,method].concat(Opal.to_a(args)))});Opal.defn(self,"$find_all",TMP_22=function(){var $a,$b,TMP_23,self=this,$iter=TMP_22.$$p,block=$iter||nil;TMP_22.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to call lazy select without a block")}return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_23=function(enum$,args){var self=TMP_23.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);var value=Opal.yieldX(block,args);if(value===$breaker){return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){($a=enum$).$yield.apply($a,Opal.to_a(args))}},TMP_23.$$s=self,TMP_23),$a).call($b,self,nil)});Opal.alias(self,"flat_map","collect_concat");Opal.defn(self,"$grep",TMP_24=function(pattern){var $a,$b,TMP_25,$c,TMP_26,self=this,$iter=TMP_24.$$p,block=$iter||nil;TMP_24.$$p=null;if(block!==false&&block!==nil){return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_25=function(enum$,args){var self=TMP_25.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);var param=$scope.get("Opal").$destructure(args),value=pattern["$==="](param);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){value=Opal.yield1(block,param);if(value===$breaker){return $breaker}enum$.$yield(Opal.yield1(block,param))}},TMP_25.$$s=self,TMP_25),$a).call($b,self,nil)}else{return($a=($c=$scope.get("Lazy")).$new,$a.$$p=(TMP_26=function(enum$,args){var self=TMP_26.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);var param=$scope.get("Opal").$destructure(args),value=pattern["$==="](param);if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){enum$.$yield(param)}},TMP_26.$$s=self,TMP_26),$a).call($c,self,nil)}});Opal.alias(self,"map","collect");Opal.alias(self,"select","find_all");Opal.defn(self,"$reject",TMP_27=function(){var $a,$b,TMP_28,self=this,$iter=TMP_27.$$p,block=$iter||nil;TMP_27.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to call lazy reject without a block")}return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_28=function(enum$,args){var self=TMP_28.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);var value=Opal.yieldX(block,args);if(value===$breaker){return $breaker}if(($a=value)===nil||$a.$$is_boolean&&$a==false){($a=enum$).$yield.apply($a,Opal.to_a(args))}},TMP_28.$$s=self,TMP_28),$a).call($b,self,nil)});Opal.defn(self,"$take",function(n){var $a,$b,TMP_29,self=this,current_size=nil,set_size=nil,taken=nil;n=$scope.get("Opal").$coerce_to(n,$scope.get("Integer"),"to_int");if($rb_lt(n,0)){self.$raise($scope.get("ArgumentError"),"attempt to take negative size")}current_size=self.$enumerator_size();set_size=function(){if(($a=$scope.get("Integer")["$==="](current_size))!==nil&&(!$a.$$is_boolean||$a==true)){if($rb_lt(n,current_size)){return n}else{return current_size}}else{return current_size}return nil}();taken=0;return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_29=function(enum$,args){var self=TMP_29.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);if($rb_lt(taken,n)){($a=enum$).$yield.apply($a,Opal.to_a(args));return taken=$rb_plus(taken,1)}else{return self.$raise($scope.get("StopLazyError"))}},TMP_29.$$s=self,TMP_29),$a).call($b,self,set_size)});Opal.defn(self,"$take_while",TMP_30=function(){var $a,$b,TMP_31,self=this,$iter=TMP_30.$$p,block=$iter||nil;TMP_30.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to call lazy take_while without a block")}return($a=($b=$scope.get("Lazy")).$new,$a.$$p=(TMP_31=function(enum$,args){var self=TMP_31.$$s||this,$a;if(enum$==null)enum$=nil;args=$slice.call(arguments,1);var value=Opal.yieldX(block,args);if(value===$breaker){return $breaker}if(($a=value)!==nil&&(!$a.$$is_boolean||$a==true)){($a=enum$).$yield.apply($a,Opal.to_a(args))}else{self.$raise($scope.get("StopLazyError"))}},TMP_31.$$s=self,TMP_31),$a).call($b,self,nil)});Opal.alias(self,"to_enum","enum_for");return(Opal.defn(self,"$inspect",function(){var self=this;return"#<"+self.$class()+": "+self.enumerator.$inspect()+">"}),nil)&&"inspect"}($scope.base,self)}($scope.base,null)};Opal.modules["corelib/numeric"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$require","$include","$instance_of?","$class","$Float","$coerce","$===","$raise","$__send__","$equal?","$coerce_to!","$-@","$**","$-","$*","$div","$<","$ceil","$to_f","$denominator","$to_r","$==","$floor","$/","$%","$Complex","$zero?","$numerator","$abs","$arg","$round","$to_i","$truncate","$>"]);self.$require("corelib/comparable");return function($base,$super){function $Numeric(){}var self=$Numeric=$klass($base,$super,"Numeric",$Numeric);var def=self.$$proto,$scope=self.$$scope;self.$include($scope.get("Comparable"));Opal.defn(self,"$coerce",function(other){var $a,self=this;if(($a=other["$instance_of?"](self.$class()))!==nil&&(!$a.$$is_boolean||$a==true)){return[other,self]}return[self.$Float(other),self.$Float(self)]});Opal.defn(self,"$__coerced__",function(method,other){var $a,self=this,a=nil,b=nil,$case=nil;try{$a=Opal.to_ary(other.$coerce(self)),a=$a[0]==null?nil:$a[0],b=$a[1]==null?nil:$a[1]}catch($err){if(true){try{$case=method;if("+"["$==="]($case)||"-"["$==="]($case)||"*"["$==="]($case)||"/"["$==="]($case)||"%"["$==="]($case)||"&"["$==="]($case)||"|"["$==="]($case)||"^"["$==="]($case)||"**"["$==="]($case)){self.$raise($scope.get("TypeError"),""+other.$class()+" can't be coerce into Numeric")}else if(">"["$==="]($case)||">="["$==="]($case)||"<"["$==="]($case)||"<="["$==="]($case)||"<=>"["$==="]($case)){self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+other.$class()+" failed")}}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}return a.$__send__(method,b)});Opal.defn(self,"$<=>",function(other){var $a,self=this;if(($a=self["$equal?"](other))!==nil&&(!$a.$$is_boolean||$a==true)){return 0}return nil});Opal.defn(self,"$[]",function(bit){var self=this,min=nil,max=nil;bit=$scope.get("Opal")["$coerce_to!"](bit,$scope.get("Integer"),"to_int");min=2["$**"](30)["$-@"]();max=$rb_minus(2["$**"](30),1);return bit<min||bit>max?0:(self>>bit)%2});Opal.defn(self,"$+@",function(){var self=this;return self});Opal.defn(self,"$-@",function(){var self=this;return $rb_minus(0,self)});Opal.defn(self,"$%",function(other){var self=this;return $rb_minus(self,$rb_times(other,self.$div(other)))});Opal.defn(self,"$abs",function(){var self=this;if($rb_lt(self,0)){return self["$-@"]()}else{return self}});Opal.defn(self,"$abs2",function(){var self=this;return $rb_times(self,self)});Opal.defn(self,"$angle",function(){var self=this;if($rb_lt(self,0)){return $scope.get("Math").$$scope.get("PI")}else{return 0}});Opal.alias(self,"arg","angle");Opal.defn(self,"$ceil",function(){var self=this;return self.$to_f().$ceil()});Opal.defn(self,"$conj",function(){var self=this;return self});Opal.alias(self,"conjugate","conj");Opal.defn(self,"$denominator",function(){var self=this;return self.$to_r().$denominator()});Opal.defn(self,"$div",function(other){var self=this;if(other["$=="](0)){self.$raise($scope.get("ZeroDivisionError"),"divided by o")}return $rb_divide(self,other).$floor()});Opal.defn(self,"$divmod",function(other){var self=this;return[self.$div(other),self["$%"](other)]});Opal.defn(self,"$fdiv",function(other){var self=this;return $rb_divide(self.$to_f(),other)});Opal.defn(self,"$floor",function(){var self=this;return self.$to_f().$floor()});Opal.defn(self,"$i",function(){var self=this;return self.$Complex(0,self)});Opal.defn(self,"$imag",function(){var self=this;return 0});Opal.alias(self,"imaginary","imag");Opal.defn(self,"$integer?",function(){var self=this;return false});Opal.alias(self,"magnitude","abs");Opal.alias(self,"modulo","%");Opal.defn(self,"$nonzero?",function(){var $a,self=this;if(($a=self["$zero?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else{return self}});Opal.defn(self,"$numerator",function(){var self=this;return self.$to_r().$numerator()});Opal.alias(self,"phase","arg");Opal.defn(self,"$polar",function(){var self=this;return[self.$abs(),self.$arg()]});Opal.defn(self,"$quo",function(other){var self=this;return $rb_divide($scope.get("Opal")["$coerce_to!"](self,$scope.get("Rational"),"to_r"),other)});Opal.defn(self,"$real",function(){var self=this;return self});Opal.defn(self,"$real?",function(){var self=this;return true});Opal.defn(self,"$rect",function(){var self=this;return[self,0]});Opal.alias(self,"rectangular","rect");Opal.defn(self,"$round",function(digits){var self=this;return self.$to_f().$round(digits)});Opal.defn(self,"$to_c",function(){var self=this;return self.$Complex(self,0)});Opal.defn(self,"$to_int",function(){var self=this;return self.$to_i()});Opal.defn(self,"$truncate",function(){var self=this;return self.$to_f().$truncate()});Opal.defn(self,"$zero?",function(){var self=this;return self["$=="](0)});Opal.defn(self,"$positive?",function(){var self=this;return $rb_gt(self,0)});Opal.defn(self,"$negative?",function(){var self=this;return $rb_lt(self,0)});Opal.defn(self,"$dup",function(){var self=this;return self.$raise($scope.get("TypeError"),"can't dup "+self.$class())});return(Opal.defn(self,"$clone",function(){var self=this;return self.$raise($scope.get("TypeError"),"can't clone "+self.$class())}),nil)&&"clone"}($scope.base,null)};Opal.modules["corelib/array"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$hash2=Opal.hash2,$gvars=Opal.gvars;Opal.add_stubs(["$require","$include","$raise","$===","$to_a","$respond_to?","$to_ary","$coerce_to","$initialize","$to_proc","$coerce_to?","$join","$to_str","$class","$clone","$hash","$<=>","$==","$object_id","$inspect","$enum_for","$coerce_to!","$>","$*","$enumerator_size","$empty?","$copy_singleton_methods","$initialize_clone","$initialize_dup","$replace","$size","$eql?","$length","$begin","$end","$exclude_end?","$flatten","$__id__","$[]","$to_s","$new","$!","$delete_if","$each","$reverse","$rotate","$rand","$at","$keep_if","$shuffle!","$dup","$<","$sort","$!=","$times","$[]=","$<<","$kind_of?","$last","$first","$upto"]);self.$require("corelib/enumerable");self.$require("corelib/numeric");return function($base,$super){function $Array(){}var self=$Array=$klass($base,$super,"Array",$Array);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_4,TMP_6,TMP_8,TMP_10,TMP_12,TMP_13,TMP_15,TMP_17,TMP_19,TMP_20,TMP_21,TMP_22,TMP_24,TMP_26,TMP_27,TMP_29,TMP_31,TMP_33,TMP_34,TMP_36,TMP_38,TMP_39,TMP_40,TMP_43,TMP_44,TMP_47;def.length=nil;self.$include($scope.get("Enumerable"));def.$$is_array=true;Opal.defs(self,"$[]",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var objects=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){objects[arg_index]=arguments[arg_index+0]}return objects});Opal.defn(self,"$initialize",TMP_1=function(size,obj){var $a,self=this,$iter=TMP_1.$$p,block=$iter||nil;if(size==null){size=nil}if(obj==null){obj=nil}TMP_1.$$p=null;if(($a=arguments.length>2)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)")}if(arguments.length===0){self.splice(0,self.length);return self}if(($a=arguments.length===1)!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=$scope.get("Array")["$==="](size))!==nil&&(!$a.$$is_boolean||$a==true)){return size.$to_a()}else if(($a=size["$respond_to?"]("to_ary"))!==nil&&(!$a.$$is_boolean||$a==true)){return size.$to_ary()}}size=$scope.get("Opal").$coerce_to(size,$scope.get("Integer"),"to_int");if(($a=size<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"negative array size")}self.splice(0,self.length);var i,value;if(block===nil){for(i=0;i<size;i++){self.push(obj)}}else{for(i=0,value;i<size;i++){value=block(i);if(value===$breaker){return $breaker.$v}self[i]=value}}return self});Opal.defs(self,"$new",TMP_2=function(){var $a,$b,self=this,$iter=TMP_2.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_2.$$p=null;return($a=($b=[]).$initialize,$a.$$p=block.$to_proc(),$a).apply($b,Opal.to_a(args))});Opal.defs(self,"$try_convert",function(obj){var self=this;return $scope.get("Opal")["$coerce_to?"](obj,$scope.get("Array"),"to_ary")});Opal.defn(self,"$&",function(other){var $a,self=this;if(($a=$scope.get("Array")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_a()}else{other=$scope.get("Opal").$coerce_to(other,$scope.get("Array"),"to_ary").$to_a()}var result=[],hash=$hash2([],{}),i,length,item;for(i=0,length=other.length;i<length;i++){Opal.hash_put(hash,other[i],true)}for(i=0,length=self.length;i<length;i++){item=self[i];if(Opal.hash_delete(hash,item)!==undefined){result.push(item)}}return result});Opal.defn(self,"$|",function(other){var $a,self=this;if(($a=$scope.get("Array")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_a()}else{other=$scope.get("Opal").$coerce_to(other,$scope.get("Array"),"to_ary").$to_a()}var hash=$hash2([],{}),i,length,item;for(i=0,length=self.length;i<length;i++){Opal.hash_put(hash,self[i],true)}for(i=0,length=other.length;i<length;i++){Opal.hash_put(hash,other[i],true)}return hash.$keys()});Opal.defn(self,"$*",function(other){var $a,self=this;if(($a=other["$respond_to?"]("to_str"))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$join(other.$to_str())}if(($a=other["$respond_to?"]("to_int"))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"no implicit conversion of "+other.$class()+" into Integer")}other=$scope.get("Opal").$coerce_to(other,$scope.get("Integer"),"to_int");if(($a=other<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"negative argument")}var result=[];for(var i=0;i<other;i++){result=result.concat(self)}return result});Opal.defn(self,"$+",function(other){var $a,self=this;if(($a=$scope.get("Array")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_a()}else{other=$scope.get("Opal").$coerce_to(other,$scope.get("Array"),"to_ary").$to_a()}return self.concat(other)});Opal.defn(self,"$-",function(other){var $a,self=this;if(($a=$scope.get("Array")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_a()}else{other=$scope.get("Opal").$coerce_to(other,$scope.get("Array"),"to_ary").$to_a()}if(($a=self.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return[]}if(($a=other.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return self.$clone()}var result=[],hash=$hash2([],{}),i,length,item;for(i=0,length=other.length;i<length;i++){Opal.hash_put(hash,other[i],true)}for(i=0,length=self.length;i<length;i++){item=self[i];if(Opal.hash_get(hash,item)===undefined){result.push(item)}}return result});Opal.defn(self,"$<<",function(object){var self=this;self.push(object);return self});Opal.defn(self,"$<=>",function(other){var $a,self=this;if(($a=$scope.get("Array")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_a()}else if(($a=other["$respond_to?"]("to_ary"))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_ary().$to_a()}else{return nil}if(self.$hash()===other.$hash()){return 0}var count=Math.min(self.length,other.length);for(var i=0;i<count;i++){var tmp=self[i]["$<=>"](other[i]);if(tmp!==0){return tmp}}return self.length["$<=>"](other.length)});Opal.defn(self,"$==",function(other){var self=this;var recursed={};function _eqeq(array,other){var i,length,a,b;if(!other.$$is_array){if($scope.get("Opal")["$respond_to?"](other,"to_ary")){return other["$=="](array)}else{return false}}other=other.$to_a();if(array.length!==other.length){return false}recursed[array.$object_id()]=true;for(i=0,length=array.length;i<length;i++){a=array[i];b=other[i];if(a.$$is_array){if(b.$$is_array&&b.length!==a.length){return false}if(!recursed.hasOwnProperty(a.$object_id())){if(!_eqeq(a,b)){return false}}}else{if(!a["$=="](b)){return false}}}return true}return _eqeq(self,other)});Opal.defn(self,"$[]",function(index,length){var self=this;var size=self.length,exclude,from,to;if(index.$$is_range){exclude=index.exclude;from=$scope.get("Opal").$coerce_to(index.begin,$scope.get("Integer"),"to_int");to=$scope.get("Opal").$coerce_to(index.end,$scope.get("Integer"),"to_int");if(from<0){from+=size;if(from<0){return nil}}if(from>size){return nil}if(to<0){to+=size;if(to<0){return[]}}if(!exclude){to+=1}return self.slice(from,to)}else{index=$scope.get("Opal").$coerce_to(index,$scope.get("Integer"),"to_int");if(index<0){index+=size;if(index<0){return nil}}if(length===undefined){ | |
if(index>=size||index<0){return nil}return self[index]}else{length=$scope.get("Opal").$coerce_to(length,$scope.get("Integer"),"to_int");if(length<0||index>size||index<0){return nil}return self.slice(index,index+length)}}});Opal.defn(self,"$[]=",function(index,value,extra){var $a,self=this,data=nil,length=nil;var i,size=self.length;if(($a=$scope.get("Range")["$==="](index))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=$scope.get("Array")["$==="](value))!==nil&&(!$a.$$is_boolean||$a==true)){data=value.$to_a()}else if(($a=value["$respond_to?"]("to_ary"))!==nil&&(!$a.$$is_boolean||$a==true)){data=value.$to_ary().$to_a()}else{data=[value]}var exclude=index.exclude,from=$scope.get("Opal").$coerce_to(index.begin,$scope.get("Integer"),"to_int"),to=$scope.get("Opal").$coerce_to(index.end,$scope.get("Integer"),"to_int");if(from<0){from+=size;if(from<0){self.$raise($scope.get("RangeError"),""+index.$inspect()+" out of range")}}if(to<0){to+=size}if(!exclude){to+=1}if(from>size){for(i=size;i<from;i++){self[i]=nil}}if(to<0){self.splice.apply(self,[from,0].concat(data))}else{self.splice.apply(self,[from,to-from].concat(data))}return value}else{if(($a=extra===undefined)!==nil&&(!$a.$$is_boolean||$a==true)){length=1}else{length=value;value=extra;if(($a=$scope.get("Array")["$==="](value))!==nil&&(!$a.$$is_boolean||$a==true)){data=value.$to_a()}else if(($a=value["$respond_to?"]("to_ary"))!==nil&&(!$a.$$is_boolean||$a==true)){data=value.$to_ary().$to_a()}else{data=[value]}}var old;index=$scope.get("Opal").$coerce_to(index,$scope.get("Integer"),"to_int");length=$scope.get("Opal").$coerce_to(length,$scope.get("Integer"),"to_int");if(index<0){old=index;index+=size;if(index<0){self.$raise($scope.get("IndexError"),"index "+old+" too small for array; minimum "+-self.length)}}if(length<0){self.$raise($scope.get("IndexError"),"negative length ("+length+")")}if(index>size){for(i=size;i<index;i++){self[i]=nil}}if(extra===undefined){self[index]=value}else{self.splice.apply(self,[index,length].concat(data))}return value}});Opal.defn(self,"$assoc",function(object){var self=this;for(var i=0,length=self.length,item;i<length;i++){if(item=self[i],item.length&&item[0]["$=="](object)){return item}}return nil});Opal.defn(self,"$at",function(index){var self=this;index=$scope.get("Opal").$coerce_to(index,$scope.get("Integer"),"to_int");if(index<0){index+=self.length}if(index<0||index>=self.length){return nil}return self[index]});Opal.defn(self,"$bsearch",TMP_3=function(){var self=this,$iter=TMP_3.$$p,block=$iter||nil;TMP_3.$$p=null;if(block!==nil){}else{return self.$enum_for("bsearch")}var min=0,max=self.length,mid,val,ret,smaller=false,satisfied=nil;while(min<max){mid=min+Math.floor((max-min)/2);val=self[mid];ret=block(val);if(ret===$breaker){return $breaker.$v}else if(ret===true){satisfied=val;smaller=true}else if(ret===false||ret===nil){smaller=false}else if(ret.$$is_number){if(ret===0){return val}smaller=ret<0}else{self.$raise($scope.get("TypeError"),"wrong argument type "+ret.$class()+" (must be numeric, true, false or nil)")}if(smaller){max=mid}else{min=mid+1}}return satisfied});Opal.defn(self,"$cycle",TMP_4=function(n){var $a,$b,TMP_5,$c,self=this,$iter=TMP_4.$$p,block=$iter||nil;if(n==null){n=nil}TMP_4.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_5=function(){var self=TMP_5.$$s||this;if(n["$=="](nil)){return $scope.get("Float").$$scope.get("INFINITY")}else{n=$scope.get("Opal")["$coerce_to!"](n,$scope.get("Integer"),"to_int");if($rb_gt(n,0)){return $rb_times(self.$enumerator_size(),n)}else{return 0}}},TMP_5.$$s=self,TMP_5),$a).call($b,"cycle",n)}if(($a=($c=self["$empty?"]())!==false&&$c!==nil?$c:n["$=="](0))!==nil&&(!$a.$$is_boolean||$a==true)){return nil}var i,length,value;if(n===nil){while(true){for(i=0,length=self.length;i<length;i++){value=Opal.yield1(block,self[i]);if(value===$breaker){return $breaker.$v}}}}else{n=$scope.get("Opal")["$coerce_to!"](n,$scope.get("Integer"),"to_int");if(n<=0){return self}while(n>0){for(i=0,length=self.length;i<length;i++){value=Opal.yield1(block,self[i]);if(value===$breaker){return $breaker.$v}}n--}}return self});Opal.defn(self,"$clear",function(){var self=this;self.splice(0,self.length);return self});Opal.defn(self,"$clone",function(){var self=this,copy=nil;copy=[];copy.$copy_singleton_methods(self);copy.$initialize_clone(self);return copy});Opal.defn(self,"$dup",function(){var self=this,copy=nil;copy=[];copy.$initialize_dup(self);return copy});Opal.defn(self,"$initialize_copy",function(other){var self=this;return self.$replace(other)});Opal.defn(self,"$collect",TMP_6=function(){var $a,$b,TMP_7,self=this,$iter=TMP_6.$$p,block=$iter||nil;TMP_6.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_7=function(){var self=TMP_7.$$s||this;return self.$size()},TMP_7.$$s=self,TMP_7),$a).call($b,"collect")}var result=[];for(var i=0,length=self.length;i<length;i++){var value=Opal.yield1(block,self[i]);if(value===$breaker){return $breaker.$v}result.push(value)}return result});Opal.defn(self,"$collect!",TMP_8=function(){var $a,$b,TMP_9,self=this,$iter=TMP_8.$$p,block=$iter||nil;TMP_8.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_9=function(){var self=TMP_9.$$s||this;return self.$size()},TMP_9.$$s=self,TMP_9),$a).call($b,"collect!")}for(var i=0,length=self.length;i<length;i++){var value=Opal.yield1(block,self[i]);if(value===$breaker){return $breaker.$v}self[i]=value}return self});function binomial_coefficient(n,k){if(n===k||k===0){return 1}if(k>0&&n>k){return binomial_coefficient(n-1,k-1)+binomial_coefficient(n-1,k)}return 0}Opal.defn(self,"$combination",TMP_10=function(n){var $a,$b,TMP_11,self=this,$iter=TMP_10.$$p,$yield=$iter||nil,num=nil;TMP_10.$$p=null;num=$scope.get("Opal")["$coerce_to!"](n,$scope.get("Integer"),"to_int");if($yield!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_11=function(){var self=TMP_11.$$s||this;return binomial_coefficient(self.length,num)},TMP_11.$$s=self,TMP_11),$a).call($b,"combination",num)}var i,length,stack,chosen,lev,done,next;if(num===0){($a=Opal.yield1($yield,[]))===$breaker?$breaker.$v:$a}else if(num===1){for(i=0,length=self.length;i<length;i++){($a=Opal.yield1($yield,[self[i]]))===$breaker?$breaker.$v:$a}}else if(num===self.length){($a=Opal.yield1($yield,self.slice()))===$breaker?$breaker.$v:$a}else if(num>=0&&num<self.length){stack=[];for(i=0;i<=num+1;i++){stack.push(0)}chosen=[];lev=0;done=false;stack[0]=-1;while(!done){chosen[lev]=self[stack[lev+1]];while(lev<num-1){lev++;next=stack[lev+1]=stack[lev]+1;chosen[lev]=self[next]}($a=Opal.yield1($yield,chosen.slice()))===$breaker?$breaker.$v:$a;lev++;do{done=lev===0;stack[lev]++;lev--}while(stack[lev+1]+num===self.length+lev+1)}}return self});Opal.defn(self,"$compact",function(){var self=this;var result=[];for(var i=0,length=self.length,item;i<length;i++){if((item=self[i])!==nil){result.push(item)}}return result});Opal.defn(self,"$compact!",function(){var self=this;var original=self.length;for(var i=0,length=self.length;i<length;i++){if(self[i]===nil){self.splice(i,1);length--;i--}}return self.length===original?nil:self});Opal.defn(self,"$concat",function(other){var $a,self=this;if(($a=$scope.get("Array")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_a()}else{other=$scope.get("Opal").$coerce_to(other,$scope.get("Array"),"to_ary").$to_a()}for(var i=0,length=other.length;i<length;i++){self.push(other[i])}return self});Opal.defn(self,"$delete",TMP_12=function(object){var $a,self=this,$iter=TMP_12.$$p,$yield=$iter||nil;TMP_12.$$p=null;var original=self.length;for(var i=0,length=original;i<length;i++){if(self[i]["$=="](object)){self.splice(i,1);length--;i--}}if(self.length===original){if($yield!==nil){return($a=Opal.yieldX($yield,[]))===$breaker?$breaker.$v:$a}return nil}return object});Opal.defn(self,"$delete_at",function(index){var self=this;index=$scope.get("Opal").$coerce_to(index,$scope.get("Integer"),"to_int");if(index<0){index+=self.length}if(index<0||index>=self.length){return nil}var result=self[index];self.splice(index,1);return result});Opal.defn(self,"$delete_if",TMP_13=function(){var $a,$b,TMP_14,self=this,$iter=TMP_13.$$p,block=$iter||nil;TMP_13.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_14=function(){var self=TMP_14.$$s||this;return self.$size()},TMP_14.$$s=self,TMP_14),$a).call($b,"delete_if")}for(var i=0,length=self.length,value;i<length;i++){if((value=block(self[i]))===$breaker){return $breaker.$v}if(value!==false&&value!==nil){self.splice(i,1);length--;i--}}return self});Opal.defn(self,"$drop",function(number){var self=this;if(number<0){self.$raise($scope.get("ArgumentError"))}return self.slice(number)});Opal.defn(self,"$each",TMP_15=function(){var $a,$b,TMP_16,self=this,$iter=TMP_15.$$p,block=$iter||nil;TMP_15.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_16=function(){var self=TMP_16.$$s||this;return self.$size()},TMP_16.$$s=self,TMP_16),$a).call($b,"each")}for(var i=0,length=self.length;i<length;i++){var value=Opal.yield1(block,self[i]);if(value==$breaker){return $breaker.$v}}return self});Opal.defn(self,"$each_index",TMP_17=function(){var $a,$b,TMP_18,self=this,$iter=TMP_17.$$p,block=$iter||nil;TMP_17.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_18=function(){var self=TMP_18.$$s||this;return self.$size()},TMP_18.$$s=self,TMP_18),$a).call($b,"each_index")}for(var i=0,length=self.length;i<length;i++){var value=Opal.yield1(block,i);if(value===$breaker){return $breaker.$v}}return self});Opal.defn(self,"$empty?",function(){var self=this;return self.length===0});Opal.defn(self,"$eql?",function(other){var self=this;var recursed={};function _eql(array,other){var i,length,a,b;if(!other.$$is_array){return false}other=other.$to_a();if(array.length!==other.length){return false}recursed[array.$object_id()]=true;for(i=0,length=array.length;i<length;i++){a=array[i];b=other[i];if(a.$$is_array){if(b.$$is_array&&b.length!==a.length){return false}if(!recursed.hasOwnProperty(a.$object_id())){if(!_eql(a,b)){return false}}}else{if(!a["$eql?"](b)){return false}}}return true}return _eql(self,other)});Opal.defn(self,"$fetch",TMP_19=function(index,defaults){var self=this,$iter=TMP_19.$$p,block=$iter||nil;TMP_19.$$p=null;var original=index;index=$scope.get("Opal").$coerce_to(index,$scope.get("Integer"),"to_int");if(index<0){index+=self.length}if(index>=0&&index<self.length){return self[index]}if(block!==nil){return block(original)}if(defaults!=null){return defaults}if(self.length===0){self.$raise($scope.get("IndexError"),"index "+original+" outside of array bounds: 0...0")}else{self.$raise($scope.get("IndexError"),"index "+original+" outside of array bounds: -"+self.length+"..."+self.length)}});Opal.defn(self,"$fill",TMP_20=function(){var $a,self=this,$iter=TMP_20.$$p,block=$iter||nil,one=nil,two=nil,obj=nil,left=nil,right=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_20.$$p=null;var i,length,value;if(block!==false&&block!==nil){if(($a=args.length>2)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+args.$length()+" for 0..2)")}$a=Opal.to_ary(args),one=$a[0]==null?nil:$a[0],two=$a[1]==null?nil:$a[1]}else{if(($a=args.length==0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"wrong number of arguments (0 for 1..3)")}else if(($a=args.length>3)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+args.$length()+" for 1..3)")}$a=Opal.to_ary(args),obj=$a[0]==null?nil:$a[0],one=$a[1]==null?nil:$a[1],two=$a[2]==null?nil:$a[2]}if(($a=$scope.get("Range")["$==="](one))!==nil&&(!$a.$$is_boolean||$a==true)){if(two!==false&&two!==nil){self.$raise($scope.get("TypeError"),"length invalid with range")}left=$scope.get("Opal").$coerce_to(one.$begin(),$scope.get("Integer"),"to_int");if(($a=left<0)!==nil&&(!$a.$$is_boolean||$a==true)){left+=self.length}if(($a=left<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("RangeError"),""+one.$inspect()+" out of range")}right=$scope.get("Opal").$coerce_to(one.$end(),$scope.get("Integer"),"to_int");if(($a=right<0)!==nil&&(!$a.$$is_boolean||$a==true)){right+=self.length}if(($a=one["$exclude_end?"]())!==nil&&(!$a.$$is_boolean||$a==true)){}else{right+=1}if(($a=right<=left)!==nil&&(!$a.$$is_boolean||$a==true)){return self}}else if(one!==false&&one!==nil){left=$scope.get("Opal").$coerce_to(one,$scope.get("Integer"),"to_int");if(($a=left<0)!==nil&&(!$a.$$is_boolean||$a==true)){left+=self.length}if(($a=left<0)!==nil&&(!$a.$$is_boolean||$a==true)){left=0}if(two!==false&&two!==nil){right=$scope.get("Opal").$coerce_to(two,$scope.get("Integer"),"to_int");if(($a=right==0)!==nil&&(!$a.$$is_boolean||$a==true)){return self}right+=left}else{right=self.length}}else{left=0;right=self.length}if(($a=left>self.length)!==nil&&(!$a.$$is_boolean||$a==true)){for(i=self.length;i<right;i++){self[i]=nil}}if(($a=right>self.length)!==nil&&(!$a.$$is_boolean||$a==true)){self.length=right}if(block!==false&&block!==nil){for(length=self.length;left<right;left++){value=block(left);if(value===$breaker){return $breaker.$v}self[left]=value}}else{for(length=self.length;left<right;left++){self[left]=obj}}return self});Opal.defn(self,"$first",function(count){var self=this;if(count==null){return self.length===0?nil:self[0]}count=$scope.get("Opal").$coerce_to(count,$scope.get("Integer"),"to_int");if(count<0){self.$raise($scope.get("ArgumentError"),"negative array size")}return self.slice(0,count)});Opal.defn(self,"$flatten",function(level){var self=this;function _flatten(array,level){var result=[],i,length,item,ary;array=array.$to_a();for(i=0,length=array.length;i<length;i++){item=array[i];if(!$scope.get("Opal")["$respond_to?"](item,"to_ary")){result.push(item);continue}ary=item.$to_ary();if(ary===nil){result.push(item);continue}if(!ary.$$is_array){self.$raise($scope.get("TypeError"))}if(ary===self){self.$raise($scope.get("ArgumentError"))}switch(level){case undefined:result.push.apply(result,_flatten(ary));break;case 0:result.push(ary);break;default:result.push.apply(result,_flatten(ary,level-1))}}return result}if(level!==undefined){level=$scope.get("Opal").$coerce_to(level,$scope.get("Integer"),"to_int")}return _flatten(self,level)});Opal.defn(self,"$flatten!",function(level){var self=this;var flattened=self.$flatten(level);if(self.length==flattened.length){for(var i=0,length=self.length;i<length;i++){if(self[i]!==flattened[i]){break}}if(i==length){return nil}}self.$replace(flattened);return self});Opal.defn(self,"$hash",function(){var self=this;var top=Opal.hash_ids==undefined,result=["A"],hash_id=self.$object_id(),item,i,key;try{if(top){Opal.hash_ids={}}if(Opal.hash_ids.hasOwnProperty(hash_id)){return"self"}for(key in Opal.hash_ids){if(Opal.hash_ids.hasOwnProperty(key)){item=Opal.hash_ids[key];if(self["$eql?"](item)){return"self"}}}Opal.hash_ids[hash_id]=self;for(i=0;i<self.length;i++){item=self[i];result.push(item.$hash())}return result.join(",")}finally{if(top){delete Opal.hash_ids}}});Opal.defn(self,"$include?",function(member){var self=this;for(var i=0,length=self.length;i<length;i++){if(self[i]["$=="](member)){return true}}return false});Opal.defn(self,"$index",TMP_21=function(object){var self=this,$iter=TMP_21.$$p,block=$iter||nil;TMP_21.$$p=null;var i,length,value;if(object!=null){for(i=0,length=self.length;i<length;i++){if(self[i]["$=="](object)){return i}}}else if(block!==nil){for(i=0,length=self.length;i<length;i++){if((value=block(self[i]))===$breaker){return $breaker.$v}if(value!==false&&value!==nil){return i}}}else{return self.$enum_for("index")}return nil});Opal.defn(self,"$insert",function(index){var self=this;var array_size=arguments.length-1;if(array_size<0)array_size=0;var objects=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){objects[arg_index]=arguments[arg_index+1]}index=$scope.get("Opal").$coerce_to(index,$scope.get("Integer"),"to_int");if(objects.length>0){if(index<0){index+=self.length+1;if(index<0){self.$raise($scope.get("IndexError"),""+index+" is out of bounds")}}if(index>self.length){for(var i=self.length;i<index;i++){self.push(nil)}}self.splice.apply(self,[index,0].concat(objects))}return self});Opal.defn(self,"$inspect",function(){var self=this;var result=[],id=self.$__id__();for(var i=0,length=self.length;i<length;i++){var item=self["$[]"](i);if(item.$__id__()===id){result.push("[...]")}else{result.push(item.$inspect())}}return"["+result.join(", ")+"]"});Opal.defn(self,"$join",function(sep){var $a,self=this;if($gvars[","]==null)$gvars[","]=nil;if(sep==null){sep=nil}if(($a=self.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return""}if(($a=sep===nil)!==nil&&(!$a.$$is_boolean||$a==true)){sep=$gvars[","]}var result=[];var i,length,item,tmp;for(i=0,length=self.length;i<length;i++){item=self[i];if($scope.get("Opal")["$respond_to?"](item,"to_str")){tmp=item.$to_str();if(tmp!==nil){result.push(tmp.$to_s());continue}}if($scope.get("Opal")["$respond_to?"](item,"to_ary")){tmp=item.$to_ary();if(tmp===self){self.$raise($scope.get("ArgumentError"))}if(tmp!==nil){result.push(tmp.$join(sep));continue}}if($scope.get("Opal")["$respond_to?"](item,"to_s")){tmp=item.$to_s();if(tmp!==nil){result.push(tmp);continue}}self.$raise($scope.get("NoMethodError").$new(""+$scope.get("Opal").$inspect(item)+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}if(sep===nil){return result.join("")}else{return result.join($scope.get("Opal")["$coerce_to!"](sep,$scope.get("String"),"to_str").$to_s())}});Opal.defn(self,"$keep_if",TMP_22=function(){var $a,$b,TMP_23,self=this,$iter=TMP_22.$$p,block=$iter||nil;TMP_22.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_23=function(){var self=TMP_23.$$s||this;return self.$size()},TMP_23.$$s=self,TMP_23),$a).call($b,"keep_if")}for(var i=0,length=self.length,value;i<length;i++){if((value=block(self[i]))===$breaker){return $breaker.$v}if(value===false||value===nil){self.splice(i,1);length--;i--}}return self});Opal.defn(self,"$last",function(count){var self=this;if(count==null){return self.length===0?nil:self[self.length-1]}count=$scope.get("Opal").$coerce_to(count,$scope.get("Integer"),"to_int");if(count<0){self.$raise($scope.get("ArgumentError"),"negative array size")}if(count>self.length){count=self.length}return self.slice(self.length-count,self.length)});Opal.defn(self,"$length",function(){var self=this;return self.length});Opal.alias(self,"map","collect");Opal.alias(self,"map!","collect!");Opal.defn(self,"$permutation",TMP_24=function(num){var $a,$b,TMP_25,self=this,$iter=TMP_24.$$p,block=$iter||nil,perm=nil,used=nil;TMP_24.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_25=function(){var self=TMP_25.$$s||this;return self.$size()},TMP_25.$$s=self,TMP_25),$a).call($b,"permutation",num)}var permute,offensive,output;if(num===undefined){num=self.length}else{num=$scope.get("Opal").$coerce_to(num,$scope.get("Integer"),"to_int")}if(num<0||self.length<num){}else if(num===0){($a=Opal.yield1(block,[]))===$breaker?$breaker.$v:$a}else if(num===1){for(var i=0;i<self.length;i++){($a=Opal.yield1(block,[self[i]]))===$breaker?$breaker.$v:$a}}else{perm=$scope.get("Array").$new(num);used=$scope.get("Array").$new(self.length,false);permute=function(num,perm,index,used,blk){self=this;for(var i=0;i<self.length;i++){if(used["$[]"](i)["$!"]()){perm[index]=i;if(index<num-1){used[i]=true;permute.call(self,num,perm,index+1,used,blk);used[i]=false}else{output=[];for(var j=0;j<perm.length;j++){output.push(self[perm[j]])}Opal.yield1(blk,output)}}}};if(block!==nil){offensive=self.slice();permute.call(offensive,num,perm,0,used,block)}else{permute.call(self,num,perm,0,used,block)}}return self});Opal.defn(self,"$pop",function(count){var $a,self=this;if(($a=count===undefined)!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=self.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return nil}return self.pop()}count=$scope.get("Opal").$coerce_to(count,$scope.get("Integer"),"to_int");if(($a=count<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"negative array size")}if(($a=self.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return[]}if(($a=count>self.length)!==nil&&(!$a.$$is_boolean||$a==true)){return self.splice(0,self.length)}else{return self.splice(self.length-count,self.length)}});Opal.defn(self,"$product",TMP_26=function(){var $a,self=this,$iter=TMP_26.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_26.$$p=null;var result=block!==nil?null:[],n=args.length+1,counters=new Array(n),lengths=new Array(n),arrays=new Array(n),i,m,subarray,len,resultlen=1;arrays[0]=self;for(i=1;i<n;i++){arrays[i]=$scope.get("Opal").$coerce_to(args[i-1],$scope.get("Array"),"to_ary")}for(i=0;i<n;i++){len=arrays[i].length;if(len===0){return result||self}resultlen*=len;if(resultlen>2147483647){self.$raise($scope.get("RangeError"),"too big to product")}lengths[i]=len;counters[i]=0}outer_loop:for(;;){subarray=[];for(i=0;i<n;i++){subarray.push(arrays[i][counters[i]])}if(result){result.push(subarray)}else{($a=Opal.yield1(block,subarray))===$breaker?$breaker.$v:$a}m=n-1;counters[m]++;while(counters[m]===lengths[m]){counters[m]=0;if(--m<0)break outer_loop;counters[m]++}}return result||self});Opal.defn(self,"$push",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var objects=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){objects[arg_index]=arguments[arg_index+0]}for(var i=0,length=objects.length;i<length;i++){self.push(objects[i])}return self});Opal.defn(self,"$rassoc",function(object){var self=this;for(var i=0,length=self.length,item;i<length;i++){item=self[i];if(item.length&&item[1]!==undefined){if(item[1]["$=="](object)){return item}}}return nil});Opal.defn(self,"$reject",TMP_27=function(){var $a,$b,TMP_28,self=this,$iter=TMP_27.$$p,block=$iter||nil;TMP_27.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_28=function(){var self=TMP_28.$$s||this;return self.$size()},TMP_28.$$s=self,TMP_28),$a).call($b,"reject")}var result=[];for(var i=0,length=self.length,value;i<length;i++){if((value=block(self[i]))===$breaker){return $breaker.$v}if(value===false||value===nil){result.push(self[i])}}return result});Opal.defn(self,"$reject!",TMP_29=function(){var $a,$b,TMP_30,$c,self=this,$iter=TMP_29.$$p,block=$iter||nil,original=nil;TMP_29.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_30=function(){var self=TMP_30.$$s||this;return self.$size()},TMP_30.$$s=self,TMP_30),$a).call($b,"reject!")}original=self.$length();($a=($c=self).$delete_if,$a.$$p=block.$to_proc(),$a).call($c);if(self.$length()["$=="](original)){return nil}else{return self}});Opal.defn(self,"$replace",function(other){var $a,self=this;if(($a=$scope.get("Array")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){other=other.$to_a()}else{other=$scope.get("Opal").$coerce_to(other,$scope.get("Array"),"to_ary").$to_a()}self.splice(0,self.length);self.push.apply(self,other);return self});Opal.defn(self,"$reverse",function(){var self=this;return self.slice(0).reverse()});Opal.defn(self,"$reverse!",function(){var self=this;return self.reverse()});Opal.defn(self,"$reverse_each",TMP_31=function(){var $a,$b,TMP_32,$c,self=this,$iter=TMP_31.$$p,block=$iter||nil;TMP_31.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_32=function(){var self=TMP_32.$$s||this;return self.$size()},TMP_32.$$s=self,TMP_32),$a).call($b,"reverse_each")}($a=($c=self.$reverse()).$each,$a.$$p=block.$to_proc(),$a).call($c);return self});Opal.defn(self,"$rindex",TMP_33=function(object){var self=this,$iter=TMP_33.$$p,block=$iter||nil;TMP_33.$$p=null;var i,value;if(object!=null){for(i=self.length-1;i>=0;i--){if(i>=self.length){break}if(self[i]["$=="](object)){return i}}}else if(block!==nil){for(i=self.length-1;i>=0;i--){if(i>=self.length){break}if((value=block(self[i]))===$breaker){return $breaker.$v}if(value!==false&&value!==nil){return i}}}else if(object==null){return self.$enum_for("rindex")}return nil});Opal.defn(self,"$rotate",function(n){var self=this;if(n==null){n=1}n=$scope.get("Opal").$coerce_to(n,$scope.get("Integer"),"to_int");var ary,idx,firstPart,lastPart;if(self.length===1){return self.slice()}if(self.length===0){return[]}ary=self.slice();idx=n%ary.length;firstPart=ary.slice(idx);lastPart=ary.slice(0,idx);return firstPart.concat(lastPart)});Opal.defn(self,"$rotate!",function(cnt){var self=this,ary=nil;if(cnt==null){cnt=1}if(self.length===0||self.length===1){return self}cnt=$scope.get("Opal").$coerce_to(cnt,$scope.get("Integer"),"to_int");ary=self.$rotate(cnt);return self.$replace(ary)});(function($base,$super){function $SampleRandom(){}var self=$SampleRandom=$klass($base,$super,"SampleRandom",$SampleRandom);var def=self.$$proto,$scope=self.$$scope;def.rng=nil;Opal.defn(self,"$initialize",function(rng){var self=this;return self.rng=rng});return(Opal.defn(self,"$rand",function(size){var $a,self=this,random=nil;random=$scope.get("Opal").$coerce_to(self.rng.$rand(size),$scope.get("Integer"),"to_int");if(($a=random<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("RangeError"),"random value must be >= 0")}if(($a=random<size)!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("RangeError"),"random value must be less than Array size")}return random}),nil)&&"rand"})($scope.base,null);Opal.defn(self,"$sample",function(count,options){var $a,$b,self=this,o=nil,rng=nil;if(($a=count===undefined)!==nil&&(!$a.$$is_boolean||$a==true)){return self.$at($scope.get("Kernel").$rand(self.length))}if(($a=options===undefined)!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=o=$scope.get("Opal")["$coerce_to?"](count,$scope.get("Hash"),"to_hash"))!==nil&&(!$a.$$is_boolean||$a==true)){options=o;count=nil}else{options=nil;count=$scope.get("Opal").$coerce_to(count,$scope.get("Integer"),"to_int")}}else{count=$scope.get("Opal").$coerce_to(count,$scope.get("Integer"),"to_int");options=$scope.get("Opal").$coerce_to(options,$scope.get("Hash"),"to_hash")}if(($a=($b=count!==false&&count!==nil)?count<0:count)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"count must be greater than 0")}if(options!==false&&options!==nil){rng=options["$[]"]("random")}if(($a=($b=rng!==false&&rng!==nil)?rng["$respond_to?"]("rand"):rng)!==nil&&(!$a.$$is_boolean||$a==true)){rng=$scope.get("SampleRandom").$new(rng)}else{rng=$scope.get("Kernel")}if(count!==false&&count!==nil){}else{return self[rng.$rand(self.length)]}var abandon,spin,result,i,j,k,targetIndex,oldValue;if(count>self.length){count=self.length}switch(count){case 0:return[];break;case 1:return[self[rng.$rand(self.length)]];break;case 2:i=rng.$rand(self.length);j=rng.$rand(self.length);if(i===j){j=i===0?i+1:i-1}return[self[i],self[j]];break;default:if(self.length/count>3){abandon=false;spin=0;result=$scope.get("Array").$new(count);i=1;result[0]=rng.$rand(self.length);while(i<count){k=rng.$rand(self.length);j=0;while(j<i){while(k===result[j]){spin++;if(spin>100){abandon=true;break}k=rng.$rand(self.length)}if(abandon){break}j++}if(abandon){break}result[i]=k;i++}if(!abandon){i=0;while(i<count){result[i]=self[result[i]];i++}return result}}result=self.slice();for(var c=0;c<count;c++){targetIndex=rng.$rand(self.length);oldValue=result[c];result[c]=result[targetIndex];result[targetIndex]=oldValue}return count===self.length?result:result["$[]"](0,count)}});Opal.defn(self,"$select",TMP_34=function(){var $a,$b,TMP_35,self=this,$iter=TMP_34.$$p,block=$iter||nil;TMP_34.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_35=function(){var self=TMP_35.$$s||this;return self.$size()},TMP_35.$$s=self,TMP_35),$a).call($b,"select")}var result=[];for(var i=0,length=self.length,item,value;i<length;i++){item=self[i];if((value=Opal.yield1(block,item))===$breaker){return $breaker.$v}if(value!==false&&value!==nil){result.push(item)}}return result});Opal.defn(self,"$select!",TMP_36=function(){var $a,$b,TMP_37,$c,self=this,$iter=TMP_36.$$p,block=$iter||nil;TMP_36.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_37=function(){var self=TMP_37.$$s||this;return self.$size()},TMP_37.$$s=self,TMP_37),$a).call($b,"select!")}var original=self.length;($a=($c=self).$keep_if,$a.$$p=block.$to_proc(),$a).call($c);return self.length===original?nil:self});Opal.defn(self,"$shift",function(count){var $a,self=this;if(($a=count===undefined)!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=self.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return nil}return self.shift()}count=$scope.get("Opal").$coerce_to(count,$scope.get("Integer"),"to_int");if(($a=count<0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"negative array size")}if(($a=self.length===0)!==nil&&(!$a.$$is_boolean||$a==true)){return[]}return self.splice(0,count)});Opal.alias(self,"size","length");Opal.defn(self,"$shuffle",function(rng){var self=this;return self.$dup()["$shuffle!"](rng)});Opal.defn(self,"$shuffle!",function(rng){var self=this;var randgen,i=self.length,j,tmp;if(rng!==undefined){rng=$scope.get("Opal")["$coerce_to?"](rng,$scope.get("Hash"),"to_hash");if(rng!==nil){rng=rng["$[]"]("random");if(rng!==nil&&rng["$respond_to?"]("rand")){randgen=rng}}}while(i){if(randgen){j=randgen.$rand(i).$to_int();if(j<0){self.$raise($scope.get("RangeError"),"random number too small "+j)}if(j>=i){self.$raise($scope.get("RangeError"),"random number too big "+j)}}else{j=Math.floor(Math.random()*i)}tmp=self[--i];self[i]=self[j];self[j]=tmp}return self});Opal.alias(self,"slice","[]");Opal.defn(self,"$slice!",function(index,length){var self=this;if(index<0){index+=self.length}if(length!=null){return self.splice(index,length)}if(index<0||index>=self.length){return nil}return self.splice(index,1)[0]});Opal.defn(self,"$sort",TMP_38=function(){var $a,self=this,$iter=TMP_38.$$p,block=$iter||nil;TMP_38.$$p=null;if(($a=self.length>1)!==nil&&(!$a.$$is_boolean||$a==true)){}else{return self}if(block===nil){block=function(a,b){return a["$<=>"](b)}}try{return self.slice().sort(function(x,y){var ret=block(x,y);if(ret===$breaker){throw $breaker}else if(ret===nil){self.$raise($scope.get("ArgumentError"),"comparison of "+x.$inspect()+" with "+y.$inspect()+" failed")}return $rb_gt(ret,0)?1:$rb_lt(ret,0)?-1:0})}catch(e){if(e===$breaker){return $breaker.$v}else{throw e}}});Opal.defn(self,"$sort!",TMP_39=function(){var $a,$b,self=this,$iter=TMP_39.$$p,block=$iter||nil;TMP_39.$$p=null;var result;if(block!==nil){result=($a=($b=self.slice()).$sort,$a.$$p=block.$to_proc(),$a).call($b)}else{result=self.slice().$sort()}self.length=0;for(var i=0,length=result.length;i<length;i++){self.push(result[i])}return self});Opal.defn(self,"$take",function(count){var self=this;if(count<0){self.$raise($scope.get("ArgumentError"))}return self.slice(0,count)});Opal.defn(self,"$take_while",TMP_40=function(){var self=this,$iter=TMP_40.$$p,block=$iter||nil;TMP_40.$$p=null;var result=[];for(var i=0,length=self.length,item,value;i<length;i++){item=self[i];if((value=block(item))===$breaker){return $breaker.$v}if(value===false||value===nil){return result}result.push(item)}return result});Opal.defn(self,"$to_a",function(){var self=this;return self});Opal.alias(self,"to_ary","to_a");Opal.defn(self,"$to_h",function(){var self=this;var i,len=self.length,ary,key,val,hash=$hash2([],{});for(i=0;i<len;i++){ary=$scope.get("Opal")["$coerce_to?"](self[i],$scope.get("Array"),"to_ary");if(!ary.$$is_array){self.$raise($scope.get("TypeError"),"wrong element type "+ary.$class()+" at "+i+" (expected array)")}if(ary.length!==2){self.$raise($scope.get("ArgumentError"),"wrong array length at "+i+" (expected 2, was "+ary.$length()+")"); | |
}key=ary[0];val=ary[1];Opal.hash_put(hash,key,val)}return hash});Opal.alias(self,"to_s","inspect");Opal.defn(self,"$transpose",function(){var $a,$b,TMP_41,self=this,result=nil,max=nil;if(($a=self["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return[]}result=[];max=nil;($a=($b=self).$each,$a.$$p=(TMP_41=function(row){var self=TMP_41.$$s||this,$a,$b,TMP_42;if(row==null)row=nil;if(($a=$scope.get("Array")["$==="](row))!==nil&&(!$a.$$is_boolean||$a==true)){row=row.$to_a()}else{row=$scope.get("Opal").$coerce_to(row,$scope.get("Array"),"to_ary").$to_a()}($a=max)!==false&&$a!==nil?$a:max=row.length;if(($a=row.length["$!="](max))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("IndexError"),"element size differs ("+row.length+" should be "+max)}return($a=($b=row.length).$times,$a.$$p=(TMP_42=function(i){var self=TMP_42.$$s||this,$a,$b,$c,entry=nil;if(i==null)i=nil;entry=($a=i,$b=result,($c=$b["$[]"]($a))!==false&&$c!==nil?$c:$b["$[]="]($a,[]));return entry["$<<"](row.$at(i))},TMP_42.$$s=self,TMP_42),$a).call($b)},TMP_41.$$s=self,TMP_41),$a).call($b);return result});Opal.defn(self,"$uniq",TMP_43=function(){var self=this,$iter=TMP_43.$$p,block=$iter||nil;TMP_43.$$p=null;var hash=$hash2([],{}),i,length,item,key;if(block===nil){for(i=0,length=self.length;i<length;i++){item=self[i];if(Opal.hash_get(hash,item)===undefined){Opal.hash_put(hash,item,item)}}}else{for(i=0,length=self.length;i<length;i++){item=self[i];key=Opal.yield1(block,item);if(Opal.hash_get(hash,key)===undefined){Opal.hash_put(hash,key,item)}}}return hash.$values()});Opal.defn(self,"$uniq!",TMP_44=function(){var self=this,$iter=TMP_44.$$p,block=$iter||nil;TMP_44.$$p=null;var original_length=self.length,hash=$hash2([],{}),i,length,item,key;for(i=0,length=original_length;i<length;i++){item=self[i];key=block===nil?item:Opal.yield1(block,item);if(Opal.hash_get(hash,key)===undefined){Opal.hash_put(hash,key,item);continue}self.splice(i,1);length--;i--}return self.length===original_length?nil:self});Opal.defn(self,"$unshift",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var objects=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){objects[arg_index]=arguments[arg_index+0]}for(var i=objects.length-1;i>=0;i--){self.unshift(objects[i])}return self});Opal.defn(self,"$values_at",function(){var $a,$b,TMP_45,self=this,out=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}out=[];($a=($b=args).$each,$a.$$p=(TMP_45=function(elem){var self=TMP_45.$$s||this,$a,$b,TMP_46,finish=nil,start=nil,i=nil;if(elem==null)elem=nil;if(($a=elem["$kind_of?"]($scope.get("Range")))!==nil&&(!$a.$$is_boolean||$a==true)){finish=$scope.get("Opal").$coerce_to(elem.$last(),$scope.get("Integer"),"to_int");start=$scope.get("Opal").$coerce_to(elem.$first(),$scope.get("Integer"),"to_int");if(start<0){start=start+self.length;return nil}if(finish<0){finish=finish+self.length}if(elem["$exclude_end?"]()){finish--}if(finish<start){return nil}return($a=($b=start).$upto,$a.$$p=(TMP_46=function(i){var self=TMP_46.$$s||this;if(i==null)i=nil;return out["$<<"](self.$at(i))},TMP_46.$$s=self,TMP_46),$a).call($b,finish)}else{i=$scope.get("Opal").$coerce_to(elem,$scope.get("Integer"),"to_int");return out["$<<"](self.$at(i))}},TMP_45.$$s=self,TMP_45),$a).call($b);return out});return(Opal.defn(self,"$zip",TMP_47=function(){var $a,self=this,$iter=TMP_47.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var others=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){others[arg_index]=arguments[arg_index+0]}TMP_47.$$p=null;var result=[],size=self.length,part,o,i,j,jj;for(j=0,jj=others.length;j<jj;j++){o=others[j];if(!o.$$is_array){others[j]=(($a=$scope.get("Opal")["$coerce_to?"](o,$scope.get("Array"),"to_ary"))!==false&&$a!==nil?$a:$scope.get("Opal")["$coerce_to!"](o,$scope.get("Enumerator"),"each")).$to_a()}}for(i=0;i<size;i++){part=[self[i]];for(j=0,jj=others.length;j<jj;j++){o=others[j][i];if(o==null){o=nil}part[j+1]=o}result[i]=part}if(block!==nil){for(i=0;i<size;i++){block(result[i])}return nil}return result}),nil)&&"zip"}($scope.base,Array)};Opal.modules["corelib/hash"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$require","$include","$coerce_to?","$[]","$merge!","$allocate","$raise","$==","$coerce_to!","$lambda?","$abs","$arity","$call","$enum_for","$size","$inspect","$flatten","$eql?","$default","$to_proc","$dup","$===","$default_proc","$default_proc=","$default=","$alias_method"]);self.$require("corelib/enumerable");return function($base,$super){function $Hash(){}var self=$Hash=$klass($base,$super,"Hash",$Hash);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_5,TMP_7,TMP_9,TMP_11,TMP_12,TMP_14,TMP_15,TMP_16,TMP_18,TMP_20,TMP_22;def.proc=def.none=nil;self.$include($scope.get("Enumerable"));def.$$is_hash=true;Opal.defs(self,"$[]",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var argv=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){argv[arg_index]=arguments[arg_index+0]}var hash,argc=argv.length,i;if(argc===1){hash=$scope.get("Opal")["$coerce_to?"](argv["$[]"](0),$scope.get("Hash"),"to_hash");if(hash!==nil){return self.$allocate()["$merge!"](hash)}argv=$scope.get("Opal")["$coerce_to?"](argv["$[]"](0),$scope.get("Array"),"to_ary");if(argv===nil){self.$raise($scope.get("ArgumentError"),"odd number of arguments for Hash")}argc=argv.length;hash=self.$allocate();for(i=0;i<argc;i++){if(!argv[i].$$is_array)continue;switch(argv[i].length){case 1:hash.$store(argv[i][0],nil);break;case 2:hash.$store(argv[i][0],argv[i][1]);break;default:self.$raise($scope.get("ArgumentError"),"invalid number of elements ("+argv[i].length+" for 1..2)")}}return hash}if(argc%2!==0){self.$raise($scope.get("ArgumentError"),"odd number of arguments for Hash")}hash=self.$allocate();for(i=0;i<argc;i+=2){hash.$store(argv[i],argv[i+1])}return hash});Opal.defs(self,"$allocate",function(){var self=this;var hash=new self.$$alloc;Opal.hash_init(hash);hash.none=nil;hash.proc=nil;return hash});Opal.defs(self,"$try_convert",function(obj){var self=this;return $scope.get("Opal")["$coerce_to?"](obj,$scope.get("Hash"),"to_hash")});Opal.defn(self,"$initialize",TMP_1=function(defaults){var self=this,$iter=TMP_1.$$p,block=$iter||nil;TMP_1.$$p=null;if(defaults!==undefined&&block!==nil){self.$raise($scope.get("ArgumentError"),"wrong number of arguments (1 for 0)")}self.none=defaults===undefined?nil:defaults;self.proc=block;return self});Opal.defn(self,"$==",function(other){var self=this;if(self===other){return true}if(!other.$$is_hash){return false}if(self.keys.length!==other.keys.length){return false}for(var i=0,keys=self.keys,length=keys.length,key,value,other_value;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key];other_value=other.smap[key]}else{value=key.value;other_value=Opal.hash_get(other,key.key)}if(other_value===undefined||!value["$eql?"](other_value)){return false}}return true});Opal.defn(self,"$[]",function(key){var self=this;var value=Opal.hash_get(self,key);if(value!==undefined){return value}return self.$default(key)});Opal.defn(self,"$[]=",function(key,value){var self=this;Opal.hash_put(self,key,value);return value});Opal.defn(self,"$assoc",function(object){var self=this;for(var i=0,keys=self.keys,length=keys.length,key;i<length;i++){key=keys[i];if(key.$$is_string){if(key["$=="](object)){return[key,self.smap[key]]}}else{if(key.key["$=="](object)){return[key.key,key.value]}}}return nil});Opal.defn(self,"$clear",function(){var self=this;Opal.hash_init(self);return self});Opal.defn(self,"$clone",function(){var self=this;var hash=new self.$$class.$$alloc;Opal.hash_init(hash);Opal.hash_clone(self,hash);return hash});Opal.defn(self,"$default",function(key){var self=this;if(key!==undefined&&self.proc!==nil){return self.proc.$call(self,key)}return self.none});Opal.defn(self,"$default=",function(object){var self=this;self.proc=nil;self.none=object;return object});Opal.defn(self,"$default_proc",function(){var self=this;return self.proc});Opal.defn(self,"$default_proc=",function(proc){var self=this;if(proc!==nil){proc=$scope.get("Opal")["$coerce_to!"](proc,$scope.get("Proc"),"to_proc");if(proc["$lambda?"]()&&proc.$arity().$abs()!==2){self.$raise($scope.get("TypeError"),"default_proc takes two arguments")}}self.none=nil;self.proc=proc;return proc});Opal.defn(self,"$delete",TMP_2=function(key){var self=this,$iter=TMP_2.$$p,block=$iter||nil;TMP_2.$$p=null;var value=Opal.hash_delete(self,key);if(value!==undefined){return value}if(block!==nil){return block.$call(key)}return nil});Opal.defn(self,"$delete_if",TMP_3=function(){var $a,$b,TMP_4,self=this,$iter=TMP_3.$$p,block=$iter||nil;TMP_3.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_4=function(){var self=TMP_4.$$s||this;return self.$size()},TMP_4.$$s=self,TMP_4),$a).call($b,"delete_if")}for(var i=0,keys=self.keys,length=keys.length,key,value,obj;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}obj=block(key,value);if(obj===$breaker){return $breaker.$v}if(obj!==false&&obj!==nil){if(Opal.hash_delete(self,key)!==undefined){length--;i--}}}return self});Opal.alias(self,"dup","clone");Opal.defn(self,"$each",TMP_5=function(){var $a,$b,TMP_6,self=this,$iter=TMP_5.$$p,block=$iter||nil;TMP_5.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_6=function(){var self=TMP_6.$$s||this;return self.$size()},TMP_6.$$s=self,TMP_6),$a).call($b,"each")}for(var i=0,keys=self.keys,length=keys.length,key,value,obj;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}obj=Opal.yield1(block,[key,value]);if(obj===$breaker){return $breaker.$v}}return self});Opal.defn(self,"$each_key",TMP_7=function(){var $a,$b,TMP_8,self=this,$iter=TMP_7.$$p,block=$iter||nil;TMP_7.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_8=function(){var self=TMP_8.$$s||this;return self.$size()},TMP_8.$$s=self,TMP_8),$a).call($b,"each_key")}for(var i=0,keys=self.keys,length=keys.length,key;i<length;i++){key=keys[i];if(block(key.$$is_string?key:key.key)===$breaker){return $breaker.$v}}return self});Opal.alias(self,"each_pair","each");Opal.defn(self,"$each_value",TMP_9=function(){var $a,$b,TMP_10,self=this,$iter=TMP_9.$$p,block=$iter||nil;TMP_9.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_10=function(){var self=TMP_10.$$s||this;return self.$size()},TMP_10.$$s=self,TMP_10),$a).call($b,"each_value")}for(var i=0,keys=self.keys,length=keys.length,key;i<length;i++){key=keys[i];if(block(key.$$is_string?self.smap[key]:key.value)===$breaker){return $breaker.$v}}return self});Opal.defn(self,"$empty?",function(){var self=this;return self.keys.length===0});Opal.alias(self,"eql?","==");Opal.defn(self,"$fetch",TMP_11=function(key,defaults){var self=this,$iter=TMP_11.$$p,block=$iter||nil;TMP_11.$$p=null;var value=Opal.hash_get(self,key);if(value!==undefined){return value}if(block!==nil){value=block(key);if(value===$breaker){return $breaker.$v}return value}if(defaults!==undefined){return defaults}return self.$raise($scope.get("KeyError"),"key not found: "+key.$inspect())});Opal.defn(self,"$flatten",function(level){var self=this;if(level==null){level=1}level=$scope.get("Opal")["$coerce_to!"](level,$scope.get("Integer"),"to_int");var result=[];for(var i=0,keys=self.keys,length=keys.length,key,value;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}result.push(key);if(value.$$is_array){if(level===1){result.push(value);continue}result=result.concat(value.$flatten(level-2));continue}result.push(value)}return result});Opal.defn(self,"$has_key?",function(key){var self=this;return Opal.hash_get(self,key)!==undefined});Opal.defn(self,"$has_value?",function(value){var self=this;for(var i=0,keys=self.keys,length=keys.length,key;i<length;i++){key=keys[i];if((key.$$is_string?self.smap[key]:key.value)["$=="](value)){return true}}return false});Opal.defn(self,"$hash",function(){var self=this;var top=Opal.hash_ids===undefined,hash_id=self.$object_id(),result=["Hash"],key,item;try{if(top){Opal.hash_ids={}}if(Opal.hash_ids.hasOwnProperty(hash_id)){return"self"}for(key in Opal.hash_ids){if(Opal.hash_ids.hasOwnProperty(key)){item=Opal.hash_ids[key];if(self["$eql?"](item)){return"self"}}}Opal.hash_ids[hash_id]=self;for(var i=0,keys=self.keys,length=keys.length;i<length;i++){key=keys[i];if(key.$$is_string){result.push([key,self.smap[key].$hash()])}else{result.push([key.key_hash,key.value.$hash()])}}return result.sort().join()}finally{if(top){delete Opal.hash_ids}}});Opal.alias(self,"include?","has_key?");Opal.defn(self,"$index",function(object){var self=this;for(var i=0,keys=self.keys,length=keys.length,key,value;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}if(value["$=="](object)){return key}}return nil});Opal.defn(self,"$indexes",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}var result=[];for(var i=0,length=args.length,key,value;i<length;i++){key=args[i];value=Opal.hash_get(self,key);if(value===undefined){result.push(self.$default());continue}result.push(value)}return result});Opal.alias(self,"indices","indexes");var inspect_ids;Opal.defn(self,"$inspect",function(){var self=this;var top=inspect_ids===undefined,hash_id=self.$object_id(),result=[];try{if(top){inspect_ids={}}if(inspect_ids.hasOwnProperty(hash_id)){return"{...}"}inspect_ids[hash_id]=true;for(var i=0,keys=self.keys,length=keys.length,key,value;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}result.push(key.$inspect()+"=>"+value.$inspect())}return"{"+result.join(", ")+"}"}finally{if(top){inspect_ids=undefined}}});Opal.defn(self,"$invert",function(){var self=this;var hash=Opal.hash();for(var i=0,keys=self.keys,length=keys.length,key,value;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}Opal.hash_put(hash,value,key)}return hash});Opal.defn(self,"$keep_if",TMP_12=function(){var $a,$b,TMP_13,self=this,$iter=TMP_12.$$p,block=$iter||nil;TMP_12.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_13=function(){var self=TMP_13.$$s||this;return self.$size()},TMP_13.$$s=self,TMP_13),$a).call($b,"keep_if")}for(var i=0,keys=self.keys,length=keys.length,key,value,obj;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}obj=block(key,value);if(obj===$breaker){return $breaker.$v}if(obj===false||obj===nil){if(Opal.hash_delete(self,key)!==undefined){length--;i--}}}return self});Opal.alias(self,"key","index");Opal.alias(self,"key?","has_key?");Opal.defn(self,"$keys",function(){var self=this;var result=[];for(var i=0,keys=self.keys,length=keys.length,key;i<length;i++){key=keys[i];if(key.$$is_string){result.push(key)}else{result.push(key.key)}}return result});Opal.defn(self,"$length",function(){var self=this;return self.keys.length});Opal.alias(self,"member?","has_key?");Opal.defn(self,"$merge",TMP_14=function(other){var $a,$b,self=this,$iter=TMP_14.$$p,block=$iter||nil;TMP_14.$$p=null;return($a=($b=self.$dup())["$merge!"],$a.$$p=block.$to_proc(),$a).call($b,other)});Opal.defn(self,"$merge!",TMP_15=function(other){var self=this,$iter=TMP_15.$$p,block=$iter||nil;TMP_15.$$p=null;if(!$scope.get("Hash")["$==="](other)){other=$scope.get("Opal")["$coerce_to!"](other,$scope.get("Hash"),"to_hash")}var i,other_keys=other.keys,length=other_keys.length,key,value,other_value;if(block===nil){for(i=0;i<length;i++){key=other_keys[i];if(key.$$is_string){other_value=other.smap[key]}else{other_value=key.value;key=key.key}Opal.hash_put(self,key,other_value)}return self}for(i=0;i<length;i++){key=other_keys[i];if(key.$$is_string){other_value=other.smap[key]}else{other_value=key.value;key=key.key}value=Opal.hash_get(self,key);if(value===undefined){Opal.hash_put(self,key,other_value);continue}Opal.hash_put(self,key,block(key,value,other_value))}return self});Opal.defn(self,"$rassoc",function(object){var self=this;for(var i=0,keys=self.keys,length=keys.length,key,value;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}if(value["$=="](object)){return[key,value]}}return nil});Opal.defn(self,"$rehash",function(){var self=this;Opal.hash_rehash(self);return self});Opal.defn(self,"$reject",TMP_16=function(){var $a,$b,TMP_17,self=this,$iter=TMP_16.$$p,block=$iter||nil;TMP_16.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_17=function(){var self=TMP_17.$$s||this;return self.$size()},TMP_17.$$s=self,TMP_17),$a).call($b,"reject")}var hash=Opal.hash();for(var i=0,keys=self.keys,length=keys.length,key,value,obj;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}obj=block(key,value);if(obj===$breaker){return $breaker.$v}if(obj===false||obj===nil){Opal.hash_put(hash,key,value)}}return hash});Opal.defn(self,"$reject!",TMP_18=function(){var $a,$b,TMP_19,self=this,$iter=TMP_18.$$p,block=$iter||nil;TMP_18.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_19=function(){var self=TMP_19.$$s||this;return self.$size()},TMP_19.$$s=self,TMP_19),$a).call($b,"reject!")}var changes_were_made=false;for(var i=0,keys=self.keys,length=keys.length,key,value,obj;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}obj=block(key,value);if(obj===$breaker){return $breaker.$v}if(obj!==false&&obj!==nil){if(Opal.hash_delete(self,key)!==undefined){changes_were_made=true;length--;i--}}}return changes_were_made?self:nil});Opal.defn(self,"$replace",function(other){var $a,$b,self=this;other=$scope.get("Opal")["$coerce_to!"](other,$scope.get("Hash"),"to_hash");Opal.hash_init(self);for(var i=0,other_keys=other.keys,length=other_keys.length,key,value,other_value;i<length;i++){key=other_keys[i];if(key.$$is_string){other_value=other.smap[key]}else{other_value=key.value;key=key.key}Opal.hash_put(self,key,other_value)}if(($a=other.$default_proc())!==nil&&(!$a.$$is_boolean||$a==true)){$a=[other.$default_proc()],$b=self,$b["$default_proc="].apply($b,$a),$a[$a.length-1]}else{$a=[other.$default()],$b=self,$b["$default="].apply($b,$a),$a[$a.length-1]}return self});Opal.defn(self,"$select",TMP_20=function(){var $a,$b,TMP_21,self=this,$iter=TMP_20.$$p,block=$iter||nil;TMP_20.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_21=function(){var self=TMP_21.$$s||this;return self.$size()},TMP_21.$$s=self,TMP_21),$a).call($b,"select")}var hash=Opal.hash();for(var i=0,keys=self.keys,length=keys.length,key,value,obj;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}obj=block(key,value);if(obj===$breaker){return $breaker.$v}if(obj!==false&&obj!==nil){Opal.hash_put(hash,key,value)}}return hash});Opal.defn(self,"$select!",TMP_22=function(){var $a,$b,TMP_23,self=this,$iter=TMP_22.$$p,block=$iter||nil;TMP_22.$$p=null;if(block!==false&&block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_23=function(){var self=TMP_23.$$s||this;return self.$size()},TMP_23.$$s=self,TMP_23),$a).call($b,"select!")}var result=nil;for(var i=0,keys=self.keys,length=keys.length,key,value,obj;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}obj=block(key,value);if(obj===$breaker){return $breaker.$v}if(obj===false||obj===nil){if(Opal.hash_delete(self,key)!==undefined){length--;i--}result=self}}return result});Opal.defn(self,"$shift",function(){var self=this;var keys=self.keys,key;if(keys.length>0){key=keys[0];key=key.$$is_string?key:key.key;return[key,Opal.hash_delete(self,key)]}return self.$default(nil)});Opal.alias(self,"size","length");self.$alias_method("store","[]=");Opal.defn(self,"$to_a",function(){var self=this;var result=[];for(var i=0,keys=self.keys,length=keys.length,key,value;i<length;i++){key=keys[i];if(key.$$is_string){value=self.smap[key]}else{value=key.value;key=key.key}result.push([key,value])}return result});Opal.defn(self,"$to_h",function(){var self=this;if(self.$$class===Opal.Hash){return self}var hash=new Opal.Hash.$$alloc;Opal.hash_init(hash);Opal.hash_clone(self,hash);return hash});Opal.defn(self,"$to_hash",function(){var self=this;return self});Opal.alias(self,"to_s","inspect");Opal.alias(self,"update","merge!");Opal.alias(self,"value?","has_value?");Opal.alias(self,"values_at","indexes");return(Opal.defn(self,"$values",function(){var self=this;var result=[];for(var i=0,keys=self.keys,length=keys.length,key;i<length;i++){key=keys[i];if(key.$$is_string){result.push(self.smap[key])}else{result.push(key.value)}}return result}),nil)&&"values"}($scope.base,null)};Opal.modules["corelib/number"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_le(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<=rhs:lhs["$<="](rhs)}function $rb_ge(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>=rhs:lhs["$>="](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$require","$bridge","$raise","$class","$Float","$respond_to?","$coerce_to!","$__coerced__","$===","$!","$>","$**","$new","$<","$to_f","$==","$nan?","$infinite?","$enum_for","$+","$-","$gcd","$lcm","$/","$frexp","$to_i","$ldexp","$rationalize","$*","$<<","$to_r","$-@","$size","$<=","$>="]);self.$require("corelib/numeric");(function($base,$super){function $Number(){}var self=$Number=$klass($base,$super,"Number",$Number);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_4,TMP_5,TMP_6,TMP_7,TMP_8,TMP_9,TMP_10,TMP_11;$scope.get("Opal").$bridge(self,Number);Number.prototype.$$is_number=true;Opal.defn(self,"$coerce",function(other){var self=this;if(other===nil){self.$raise($scope.get("TypeError"),"can't convert "+other.$class()+" into Float")}else if(other.$$is_string){return[self.$Float(other),self]}else if(other["$respond_to?"]("to_f")){return[$scope.get("Opal")["$coerce_to!"](other,$scope.get("Float"),"to_f"),self]}else if(other.$$is_number){return[other,self]}else{self.$raise($scope.get("TypeError"),"can't convert "+other.$class()+" into Float")}});Opal.defn(self,"$__id__",function(){var self=this;return self*2+1});Opal.alias(self,"object_id","__id__");Opal.defn(self,"$+",function(other){var self=this;if(other.$$is_number){return self+other}else{return self.$__coerced__("+",other)}});Opal.defn(self,"$-",function(other){var self=this;if(other.$$is_number){return self-other}else{return self.$__coerced__("-",other)}});Opal.defn(self,"$*",function(other){var self=this;if(other.$$is_number){return self*other}else{return self.$__coerced__("*",other)}});Opal.defn(self,"$/",function(other){var self=this;if(other.$$is_number){return self/other}else{return self.$__coerced__("/",other)}});Opal.alias(self,"fdiv","/");Opal.defn(self,"$%",function(other){var self=this;if(other.$$is_number){if(other==-Infinity){return other}else if(other==0){self.$raise($scope.get("ZeroDivisionError"),"divided by 0")}else if(other<0||self<0){return(self%other+other)%other}else{return self%other}}else{return self.$__coerced__("%",other)}});Opal.defn(self,"$&",function(other){var self=this;if(other.$$is_number){return self&other}else{return self.$__coerced__("&",other)}});Opal.defn(self,"$|",function(other){var self=this;if(other.$$is_number){return self|other}else{return self.$__coerced__("|",other)}});Opal.defn(self,"$^",function(other){var self=this;if(other.$$is_number){return self^other}else{return self.$__coerced__("^",other)}});Opal.defn(self,"$<",function(other){var self=this;if(other.$$is_number){return self<other}else{return self.$__coerced__("<",other)}});Opal.defn(self,"$<=",function(other){var self=this;if(other.$$is_number){return self<=other}else{return self.$__coerced__("<=",other)}});Opal.defn(self,"$>",function(other){var self=this;if(other.$$is_number){return self>other}else{return self.$__coerced__(">",other)}});Opal.defn(self,"$>=",function(other){var self=this;if(other.$$is_number){return self>=other}else{return self.$__coerced__(">=",other)}});Opal.defn(self,"$<=>",function(other){var self=this;try{if(other.$$is_number){if(isNaN(self)||isNaN(other)){return nil}return self>other?1:self<other?-1:0}else{return self.$__coerced__("<=>",other)}}catch($err){if(Opal.rescue($err,[$scope.get("ArgumentError")])){try{return nil}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}});Opal.defn(self,"$<<",function(count){var self=this;count=$scope.get("Opal")["$coerce_to!"](count,$scope.get("Integer"),"to_int");return count>0?self<<count:self>>-count});Opal.defn(self,"$>>",function(count){var self=this;count=$scope.get("Opal")["$coerce_to!"](count,$scope.get("Integer"),"to_int");return count>0?self>>count:self<<-count});Opal.defn(self,"$[]",function(bit){var self=this;bit=$scope.get("Opal")["$coerce_to!"](bit,$scope.get("Integer"),"to_int");if(bit<$scope.get("Integer").$$scope.get("MIN")||bit>$scope.get("Integer").$$scope.get("MAX")){return 0}if(self<0){return(~self+1>>bit)%2}else{return(self>>bit)%2}});Opal.defn(self,"$+@",function(){var self=this;return+self});Opal.defn(self,"$-@",function(){var self=this;return-self});Opal.defn(self,"$~",function(){var self=this;return~self});Opal.defn(self,"$**",function(other){var $a,$b,$c,self=this;if(($a=$scope.get("Integer")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=($b=$scope.get("Integer")["$==="](self)["$!"]())!==false&&$b!==nil?$b:$rb_gt(other,0))!==nil&&(!$a.$$is_boolean||$a==true)){return Math.pow(self,other)}else{return $scope.get("Rational").$new(self,1)["$**"](other)}}else if(($a=($b=$rb_lt(self,0))?($c=$scope.get("Float")["$==="](other))!==false&&$c!==nil?$c:$scope.get("Rational")["$==="](other):$rb_lt(self,0))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Complex").$new(self,0)["$**"](other.$to_f())}else if(($a=other.$$is_number!=null)!==nil&&(!$a.$$is_boolean||$a==true)){return Math.pow(self,other)}else{return self.$__coerced__("**",other)}});Opal.defn(self,"$==",function(other){var self=this;if(other.$$is_number){return self==Number(other)}else if(other["$respond_to?"]("==")){return other["$=="](self)}else{return false}});Opal.defn(self,"$abs",function(){var self=this;return Math.abs(self)});Opal.defn(self,"$abs2",function(){var self=this;return Math.abs(self*self)});Opal.defn(self,"$angle",function(){var $a,self=this;if(($a=self["$nan?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self}if(self==0){if(1/self>0){return 0}else{return Math.PI}}else if(self<0){return Math.PI}else{return 0}});Opal.alias(self,"arg","angle");Opal.alias(self,"phase","angle");Opal.defn(self,"$bit_length",function(){var $a,self=this;if(($a=$scope.get("Integer")["$==="](self))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("NoMethodError").$new("undefined method `bit_length` for "+self+":Float","bit_length"))}if(self===0||self===-1){return 0}var result=0,value=self<0?~self:self;while(value!=0){result+=1;value>>>=1}return result});Opal.defn(self,"$ceil",function(){var self=this;return Math.ceil(self)});Opal.defn(self,"$chr",function(encoding){var self=this;return String.fromCharCode(self)});Opal.defn(self,"$denominator",TMP_1=function(){var $zuper=$slice.call(arguments,0);var $a,$b,self=this,$iter=TMP_1.$$p,$yield=$iter||nil;TMP_1.$$p=null;if(($a=($b=self["$nan?"]())!==false&&$b!==nil?$b:self["$infinite?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return 1}else{return Opal.find_super_dispatcher(self,"denominator",TMP_1,$iter).apply(self,$zuper)}});Opal.defn(self,"$downto",TMP_2=function(stop){var $a,$b,TMP_3,self=this,$iter=TMP_2.$$p,block=$iter||nil;TMP_2.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_3=function(){var self=TMP_3.$$s||this,$a;if(($a=$scope.get("Numeric")["$==="](stop))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+stop.$class()+" failed")}if($rb_gt(stop,self)){return 0}else{return $rb_plus($rb_minus(self,stop),1)}},TMP_3.$$s=self,TMP_3),$a).call($b,"downto",stop)}if(!stop.$$is_number){self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+stop.$class()+" failed")}for(var i=self;i>=stop;i--){if(block(i)===$breaker){return $breaker.$v}}return self});Opal.alias(self,"eql?","==");Opal.defn(self,"$equal?",function(other){var $a,self=this;return($a=self["$=="](other))!==false&&$a!==nil?$a:isNaN(self)&&isNaN(other)});Opal.defn(self,"$even?",function(){var self=this;return self%2===0});Opal.defn(self,"$floor",function(){var self=this;return Math.floor(self)});Opal.defn(self,"$gcd",function(other){var $a,self=this;if(($a=$scope.get("Integer")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"not an integer")}var min=Math.abs(self),max=Math.abs(other);while(min>0){var tmp=min;min=max%min;max=tmp}return max});Opal.defn(self,"$gcdlcm",function(other){var self=this;return[self.$gcd(),self.$lcm()]});Opal.defn(self,"$hash",function(){var self=this;return"Numeric:"+self.toString()});Opal.defn(self,"$integer?",function(){var self=this;return self%1===0});Opal.defn(self,"$is_a?",TMP_4=function(klass){var $zuper=$slice.call(arguments,0);var $a,$b,self=this,$iter=TMP_4.$$p,$yield=$iter||nil;TMP_4.$$p=null;if(($a=($b=klass["$=="]($scope.get("Fixnum")))?$scope.get("Integer")["$==="](self):klass["$=="]($scope.get("Fixnum")))!==nil&&(!$a.$$is_boolean||$a==true)){return true}if(($a=($b=klass["$=="]($scope.get("Integer")))?$scope.get("Integer")["$==="](self):klass["$=="]($scope.get("Integer")))!==nil&&(!$a.$$is_boolean||$a==true)){return true}if(($a=($b=klass["$=="]($scope.get("Float")))?$scope.get("Float")["$==="](self):klass["$=="]($scope.get("Float")))!==nil&&(!$a.$$is_boolean||$a==true)){return true}return Opal.find_super_dispatcher(self,"is_a?",TMP_4,$iter).apply(self,$zuper)});Opal.alias(self,"kind_of?","is_a?");Opal.defn(self,"$instance_of?",TMP_5=function(klass){var $zuper=$slice.call(arguments,0);var $a,$b,self=this,$iter=TMP_5.$$p,$yield=$iter||nil;TMP_5.$$p=null;if(($a=($b=klass["$=="]($scope.get("Fixnum")))?$scope.get("Integer")["$==="](self):klass["$=="]($scope.get("Fixnum")))!==nil&&(!$a.$$is_boolean||$a==true)){return true}if(($a=($b=klass["$=="]($scope.get("Integer")))?$scope.get("Integer")["$==="](self):klass["$=="]($scope.get("Integer")))!==nil&&(!$a.$$is_boolean||$a==true)){return true}if(($a=($b=klass["$=="]($scope.get("Float")))?$scope.get("Float")["$==="](self):klass["$=="]($scope.get("Float")))!==nil&&(!$a.$$is_boolean||$a==true)){ | |
return true}return Opal.find_super_dispatcher(self,"instance_of?",TMP_5,$iter).apply(self,$zuper)});Opal.defn(self,"$lcm",function(other){var $a,self=this;if(($a=$scope.get("Integer")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"not an integer")}if(self==0||other==0){return 0}else{return Math.abs(self*other/self.$gcd(other))}});Opal.alias(self,"magnitude","abs");Opal.alias(self,"modulo","%");Opal.defn(self,"$next",function(){var self=this;return self+1});Opal.defn(self,"$nonzero?",function(){var self=this;return self==0?nil:self});Opal.defn(self,"$numerator",TMP_6=function(){var $zuper=$slice.call(arguments,0);var $a,$b,self=this,$iter=TMP_6.$$p,$yield=$iter||nil;TMP_6.$$p=null;if(($a=($b=self["$nan?"]())!==false&&$b!==nil?$b:self["$infinite?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self}else{return Opal.find_super_dispatcher(self,"numerator",TMP_6,$iter).apply(self,$zuper)}});Opal.defn(self,"$odd?",function(){var self=this;return self%2!==0});Opal.defn(self,"$ord",function(){var self=this;return self});Opal.defn(self,"$pred",function(){var self=this;return self-1});Opal.defn(self,"$quo",TMP_7=function(other){var $zuper=$slice.call(arguments,0);var $a,self=this,$iter=TMP_7.$$p,$yield=$iter||nil;TMP_7.$$p=null;if(($a=$scope.get("Integer")["$==="](self))!==nil&&(!$a.$$is_boolean||$a==true)){return Opal.find_super_dispatcher(self,"quo",TMP_7,$iter).apply(self,$zuper)}else{return $rb_divide(self,other)}});Opal.defn(self,"$rationalize",function(eps){var $a,self=this,f=nil,n=nil;if(arguments.length>1){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)")}if(($a=$scope.get("Integer")["$==="](self))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Rational").$new(self,1)}else if(($a=self["$infinite?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$raise($scope.get("FloatDomainError"),"Infinity")}else if(($a=self["$nan?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$raise($scope.get("FloatDomainError"),"NaN")}else if(($a=eps==null)!==nil&&(!$a.$$is_boolean||$a==true)){$a=Opal.to_ary($scope.get("Math").$frexp(self)),f=$a[0]==null?nil:$a[0],n=$a[1]==null?nil:$a[1];f=$scope.get("Math").$ldexp(f,$scope.get("Float").$$scope.get("MANT_DIG")).$to_i();n=$rb_minus(n,$scope.get("Float").$$scope.get("MANT_DIG"));return $scope.get("Rational").$new($rb_times(2,f),1["$<<"]($rb_minus(1,n))).$rationalize($scope.get("Rational").$new(1,1["$<<"]($rb_minus(1,n))))}else{return self.$to_r().$rationalize(eps)}});Opal.defn(self,"$round",function(ndigits){var $a,$b,self=this,_=nil,exp=nil;if(($a=$scope.get("Integer")["$==="](self))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=ndigits==null)!==nil&&(!$a.$$is_boolean||$a==true)){return self}if(($a=($b=$scope.get("Float")["$==="](ndigits),$b!==false&&$b!==nil?ndigits["$infinite?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("RangeError"),"Infinity")}ndigits=$scope.get("Opal")["$coerce_to!"](ndigits,$scope.get("Integer"),"to_int");if($rb_lt(ndigits,$scope.get("Integer").$$scope.get("MIN"))){self.$raise($scope.get("RangeError"),"out of bounds")}if(($a=ndigits>=0)!==nil&&(!$a.$$is_boolean||$a==true)){return self}ndigits=ndigits["$-@"]();if(.415241*ndigits-.125>self.$size()){return 0}var f=Math.pow(10,ndigits),x=Math.floor((Math.abs(x)+f/2)/f)*f;return self<0?-x:x}else{if(($a=($b=self["$nan?"](),$b!==false&&$b!==nil?ndigits==null:$b))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("FloatDomainError"),"NaN")}ndigits=$scope.get("Opal")["$coerce_to!"](ndigits||0,$scope.get("Integer"),"to_int");if($rb_le(ndigits,0)){if(($a=self["$nan?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("RangeError"),"NaN")}else if(($a=self["$infinite?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("FloatDomainError"),"Infinity")}}else if(ndigits["$=="](0)){return Math.round(self)}else if(($a=($b=self["$nan?"]())!==false&&$b!==nil?$b:self["$infinite?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self}$a=Opal.to_ary($scope.get("Math").$frexp(self)),_=$a[0]==null?nil:$a[0],exp=$a[1]==null?nil:$a[1];if($rb_ge(ndigits,$rb_minus($rb_plus($scope.get("Float").$$scope.get("DIG"),2),function(){if($rb_gt(exp,0)){return $rb_divide(exp,4)}else{return $rb_minus($rb_divide(exp,3),1)}return nil}()))){return self}if($rb_lt(ndigits,function(){if($rb_gt(exp,0)){return $rb_plus($rb_divide(exp,3),1)}else{return $rb_divide(exp,4)}return nil}()["$-@"]())){return 0}return Math.round(self*Math.pow(10,ndigits))/Math.pow(10,ndigits)}});Opal.defn(self,"$step",TMP_8=function(limit,step){var $a,self=this,$iter=TMP_8.$$p,block=$iter||nil;if(step==null){step=1}TMP_8.$$p=null;if(block!==false&&block!==nil){}else{return self.$enum_for("step",limit,step)}if(($a=step==0)!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"step cannot be 0")}var value=self;if(limit===Infinity||limit===-Infinity){block(value);return self}if(step>0){while(value<=limit){block(value);value+=step}}else{while(value>=limit){block(value);value+=step}}return self});Opal.alias(self,"succ","next");Opal.defn(self,"$times",TMP_9=function(){var self=this,$iter=TMP_9.$$p,block=$iter||nil;TMP_9.$$p=null;if(block!==false&&block!==nil){}else{return self.$enum_for("times")}for(var i=0;i<self;i++){if(block(i)===$breaker){return $breaker.$v}}return self});Opal.defn(self,"$to_f",function(){var self=this;return self});Opal.defn(self,"$to_i",function(){var self=this;return parseInt(self,10)});Opal.alias(self,"to_int","to_i");Opal.defn(self,"$to_r",function(){var $a,self=this,f=nil,e=nil;if(($a=$scope.get("Integer")["$==="](self))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Rational").$new(self,1)}else{$a=Opal.to_ary($scope.get("Math").$frexp(self)),f=$a[0]==null?nil:$a[0],e=$a[1]==null?nil:$a[1];f=$scope.get("Math").$ldexp(f,$scope.get("Float").$$scope.get("MANT_DIG")).$to_i();e=$rb_minus(e,$scope.get("Float").$$scope.get("MANT_DIG"));return $rb_times(f,$scope.get("Float").$$scope.get("RADIX")["$**"](e)).$to_r()}});Opal.defn(self,"$to_s",function(base){var $a,$b,self=this;if(base==null){base=10}if(($a=($b=$rb_lt(base,2))!==false&&$b!==nil?$b:$rb_gt(base,36))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"base must be between 2 and 36")}return self.toString(base)});Opal.alias(self,"truncate","to_i");Opal.alias(self,"inspect","to_s");Opal.defn(self,"$divmod",TMP_10=function(other){var $zuper=$slice.call(arguments,0);var $a,$b,self=this,$iter=TMP_10.$$p,$yield=$iter||nil;TMP_10.$$p=null;if(($a=($b=self["$nan?"]())!==false&&$b!==nil?$b:other["$nan?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$raise($scope.get("FloatDomainError"),"NaN")}else if(($a=self["$infinite?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$raise($scope.get("FloatDomainError"),"Infinity")}else{return Opal.find_super_dispatcher(self,"divmod",TMP_10,$iter).apply(self,$zuper)}});Opal.defn(self,"$upto",TMP_11=function(stop){var $a,$b,TMP_12,self=this,$iter=TMP_11.$$p,block=$iter||nil;TMP_11.$$p=null;if(block!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_12=function(){var self=TMP_12.$$s||this,$a;if(($a=$scope.get("Numeric")["$==="](stop))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+stop.$class()+" failed")}if($rb_lt(stop,self)){return 0}else{return $rb_plus($rb_minus(stop,self),1)}},TMP_12.$$s=self,TMP_12),$a).call($b,"upto",stop)}if(!stop.$$is_number){self.$raise($scope.get("ArgumentError"),"comparison of "+self.$class()+" with "+stop.$class()+" failed")}for(var i=self;i<=stop;i++){if(block(i)===$breaker){return $breaker.$v}}return self});Opal.defn(self,"$zero?",function(){var self=this;return self==0});Opal.defn(self,"$size",function(){var self=this;return 4});Opal.defn(self,"$nan?",function(){var self=this;return isNaN(self)});Opal.defn(self,"$finite?",function(){var self=this;return self!=Infinity&&self!=-Infinity&&!isNaN(self)});Opal.defn(self,"$infinite?",function(){var self=this;if(self==Infinity){return+1}else if(self==-Infinity){return-1}else{return nil}});Opal.defn(self,"$positive?",function(){var self=this;return self==Infinity||1/self>0});return(Opal.defn(self,"$negative?",function(){var self=this;return self==-Infinity||1/self<0}),nil)&&"negative?"})($scope.base,$scope.get("Numeric"));Opal.cdecl($scope,"Fixnum",$scope.get("Number"));(function($base,$super){function $Integer(){}var self=$Integer=$klass($base,$super,"Integer",$Integer);var def=self.$$proto,$scope=self.$$scope;Opal.defs(self,"$===",function(other){var self=this;if(!other.$$is_number){return false}return other%1===0});Opal.cdecl($scope,"MAX",Math.pow(2,30)-1);return Opal.cdecl($scope,"MIN",-Math.pow(2,30))})($scope.base,$scope.get("Numeric"));return function($base,$super){function $Float(){}var self=$Float=$klass($base,$super,"Float",$Float);var def=self.$$proto,$scope=self.$$scope,$a;Opal.defs(self,"$===",function(other){var self=this;return!!other.$$is_number});Opal.cdecl($scope,"INFINITY",Infinity);Opal.cdecl($scope,"MAX",Number.MAX_VALUE);Opal.cdecl($scope,"MIN",Number.MIN_VALUE);Opal.cdecl($scope,"NAN",NaN);Opal.cdecl($scope,"DIG",15);Opal.cdecl($scope,"MANT_DIG",53);Opal.cdecl($scope,"RADIX",2);if(($a=typeof Number.EPSILON!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){return Opal.cdecl($scope,"EPSILON",Number.EPSILON)}else{return Opal.cdecl($scope,"EPSILON",2.220446049250313e-16)}}($scope.base,$scope.get("Numeric"))};Opal.modules["corelib/range"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_le(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<=rhs:lhs["$<="](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$require","$include","$attr_reader","$<=>","$raise","$include?","$<=","$<","$enum_for","$succ","$!","$==","$===","$exclude_end?","$eql?","$begin","$end","$-","$abs","$to_i","$inspect"]);self.$require("corelib/enumerable");return function($base,$super){function $Range(){}var self=$Range=$klass($base,$super,"Range",$Range);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3;def.begin=def.exclude=def.end=nil;self.$include($scope.get("Enumerable"));def.$$is_range=true;self.$attr_reader("begin","end");Opal.defn(self,"$initialize",function(first,last,exclude){var $a,self=this;if(exclude==null){exclude=false}if(($a=first["$<=>"](last))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("ArgumentError"))}self.begin=first;self.end=last;return self.exclude=exclude});Opal.defn(self,"$==",function(other){var self=this;if(!other.$$is_range){return false}return self.exclude===other.exclude&&self.begin==other.begin&&self.end==other.end});Opal.defn(self,"$===",function(value){var self=this;return self["$include?"](value)});Opal.defn(self,"$cover?",function(value){var $a,$b,self=this;return($a=$rb_le(self.begin,value))?function(){if(($b=self.exclude)!==nil&&(!$b.$$is_boolean||$b==true)){return $rb_lt(value,self.end)}else{return $rb_le(value,self.end)}return nil}():$rb_le(self.begin,value)});Opal.defn(self,"$each",TMP_1=function(){var $a,$b,self=this,$iter=TMP_1.$$p,block=$iter||nil,current=nil,last=nil;TMP_1.$$p=null;if(block!==nil){}else{return self.$enum_for("each")}current=self.begin;last=self.end;while($rb_lt(current,last)){if(Opal.yield1(block,current)===$breaker)return $breaker.$v;current=current.$succ()}if(($a=($b=self.exclude["$!"](),$b!==false&&$b!==nil?current["$=="](last):$b))!==nil&&(!$a.$$is_boolean||$a==true)){if(Opal.yield1(block,current)===$breaker)return $breaker.$v}return self});Opal.defn(self,"$eql?",function(other){var $a,$b,self=this;if(($a=$scope.get("Range")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return false}return $a=($b=self.exclude["$==="](other["$exclude_end?"]()),$b!==false&&$b!==nil?self.begin["$eql?"](other.$begin()):$b),$a!==false&&$a!==nil?self.end["$eql?"](other.$end()):$a});Opal.defn(self,"$exclude_end?",function(){var self=this;return self.exclude});Opal.alias(self,"first","begin");Opal.alias(self,"include?","cover?");Opal.alias(self,"last","end");Opal.defn(self,"$max",TMP_2=function(){var $zuper=$slice.call(arguments,0);var self=this,$iter=TMP_2.$$p,$yield=$iter||nil;TMP_2.$$p=null;if($yield!==nil){return Opal.find_super_dispatcher(self,"max",TMP_2,$iter).apply(self,$zuper)}else{return self.exclude?self.end-1:self.end}});Opal.alias(self,"member?","cover?");Opal.defn(self,"$min",TMP_3=function(){var $zuper=$slice.call(arguments,0);var self=this,$iter=TMP_3.$$p,$yield=$iter||nil;TMP_3.$$p=null;if($yield!==nil){return Opal.find_super_dispatcher(self,"min",TMP_3,$iter).apply(self,$zuper)}else{return self.begin}});Opal.alias(self,"member?","include?");Opal.defn(self,"$size",function(){var $a,$b,self=this,_begin=nil,_end=nil,infinity=nil;_begin=self.begin;_end=self.end;if(($a=self.exclude)!==nil&&(!$a.$$is_boolean||$a==true)){_end=$rb_minus(_end,1)}if(($a=($b=$scope.get("Numeric")["$==="](_begin),$b!==false&&$b!==nil?$scope.get("Numeric")["$==="](_end):$b))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return nil}if($rb_lt(_end,_begin)){return 0}infinity=$scope.get("Float").$$scope.get("INFINITY");if(($a=($b=infinity["$=="](_begin.$abs()))!==false&&$b!==nil?$b:_end.$abs()["$=="](infinity))!==nil&&(!$a.$$is_boolean||$a==true)){return infinity}return(Math.abs(_end-_begin)+1).$to_i()});Opal.defn(self,"$step",function(n){var self=this;if(n==null){n=1}return self.$raise($scope.get("NotImplementedError"))});Opal.defn(self,"$to_s",function(){var self=this;return self.begin.$inspect()+(self.exclude?"...":"..")+self.end.$inspect()});return Opal.alias(self,"inspect","to_s")}($scope.base,null)};Opal.modules["corelib/proc"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$raise","$coerce_to!"]);return function($base,$super){function $Proc(){}var self=$Proc=$klass($base,$super,"Proc",$Proc);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2;def.$$is_proc=true;def.$$is_lambda=false;Opal.defs(self,"$new",TMP_1=function(){var self=this,$iter=TMP_1.$$p,block=$iter||nil;TMP_1.$$p=null;if(block!==false&&block!==nil){}else{self.$raise($scope.get("ArgumentError"),"tried to create a Proc object without a block")}return block});Opal.defn(self,"$call",TMP_2=function(){var self=this,$iter=TMP_2.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_2.$$p=null;if(block!==nil){self.$$p=block}var result;if(self.$$is_lambda){result=self.apply(null,args)}else{result=Opal.yieldX(self,args)}if(result===$breaker){return $breaker.$v}return result});Opal.alias(self,"[]","call");Opal.alias(self,"===","call");Opal.alias(self,"yield","call");Opal.defn(self,"$to_proc",function(){var self=this;return self});Opal.defn(self,"$lambda?",function(){var self=this;return!!self.$$is_lambda});Opal.defn(self,"$arity",function(){var self=this;if(self.$$is_curried){return-1}if(self.$$arity){return self.$$arity}return self.length});Opal.defn(self,"$source_location",function(){var self=this;if(self.$$is_curried){return nil}return nil});Opal.defn(self,"$binding",function(){var self=this;if(self.$$is_curried){self.$raise($scope.get("ArgumentError"),"Can't create Binding")}return nil});Opal.defn(self,"$parameters",function(){var self=this;if(self.$$is_curried){return[["rest"]]}return nil});Opal.defn(self,"$curry",function(arity){var self=this;if(arity===undefined){arity=self.length}else{arity=$scope.get("Opal")["$coerce_to!"](arity,$scope.get("Integer"),"to_int");if(self.$$is_lambda&&arity!==self.length){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+arity+" for "+self.length+")")}}function curried(){var args=$slice.call(arguments),length=args.length,result;if(length>arity&&self.$$is_lambda&&!self.$$is_curried){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+length+" for "+arity+")")}if(length>=arity){return self.$call.apply(self,args)}result=function(){return curried.apply(null,args.concat($slice.call(arguments)))};result.$$is_lambda=self.$$is_lambda;result.$$is_curried=true;return result}curried.$$is_lambda=self.$$is_lambda;curried.$$is_curried=true;return curried});Opal.defn(self,"$dup",function(){var self=this;var original_proc=self.$$original_proc||self,proc=function(){return original_proc.apply(this,arguments)};for(var prop in self){if(self.hasOwnProperty(prop)){proc[prop]=self[prop]}}return proc});return Opal.alias(self,"clone","dup")}($scope.base,Function)};Opal.modules["corelib/method"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$attr_reader","$class","$arity","$new","$name"]);(function($base,$super){function $Method(){}var self=$Method=$klass($base,$super,"Method",$Method);var def=self.$$proto,$scope=self.$$scope,TMP_1;def.method=def.receiver=def.owner=def.name=nil;self.$attr_reader("owner","receiver","name");Opal.defn(self,"$initialize",function(receiver,method,name){var self=this;self.receiver=receiver;self.owner=receiver.$class();self.name=name;return self.method=method});Opal.defn(self,"$arity",function(){var self=this;return self.method.$arity()});Opal.defn(self,"$call",TMP_1=function(){var self=this,$iter=TMP_1.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_1.$$p=null;self.method.$$p=block;return self.method.apply(self.receiver,args)});Opal.alias(self,"[]","call");Opal.defn(self,"$unbind",function(){var self=this;return $scope.get("UnboundMethod").$new(self.owner,self.method,self.name)});Opal.defn(self,"$to_proc",function(){var self=this;var proc=function(){return self.$call.apply(self,$slice.call(arguments))};proc.$$unbound=self.method;proc.$$is_lambda=true;return proc});return(Opal.defn(self,"$inspect",function(){var self=this;return"#<Method: "+self.receiver.$class()+"#"+self.name+">"}),nil)&&"inspect"})($scope.base,null);return function($base,$super){function $UnboundMethod(){}var self=$UnboundMethod=$klass($base,$super,"UnboundMethod",$UnboundMethod);var def=self.$$proto,$scope=self.$$scope;def.method=def.name=def.owner=nil;self.$attr_reader("owner","name");Opal.defn(self,"$initialize",function(owner,method,name){var self=this;self.owner=owner;self.method=method;return self.name=name});Opal.defn(self,"$arity",function(){var self=this;return self.method.$arity()});Opal.defn(self,"$bind",function(object){var self=this;return $scope.get("Method").$new(object,self.method,self.name)});return(Opal.defn(self,"$inspect",function(){var self=this;return"#<UnboundMethod: "+self.owner.$name()+"#"+self.name+">"}),nil)&&"inspect"}($scope.base,null)};Opal.modules["corelib/variables"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$gvars=Opal.gvars,$hash2=Opal.hash2;Opal.add_stubs(["$new"]);$gvars["&"]=$gvars["~"]=$gvars["`"]=$gvars["'"]=nil;$gvars.LOADED_FEATURES=$gvars['"']=Opal.loaded_features;$gvars.LOAD_PATH=$gvars[":"]=[];$gvars["/"]="\n";$gvars[","]=nil;Opal.cdecl($scope,"ARGV",[]);Opal.cdecl($scope,"ARGF",$scope.get("Object").$new());Opal.cdecl($scope,"ENV",$hash2([],{}));$gvars.VERBOSE=false;$gvars.DEBUG=false;return $gvars.SAFE=0};Opal.modules["opal/mini"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice;Opal.add_stubs(["$require"]);self.$require("opal/base");self.$require("corelib/nil");self.$require("corelib/boolean");self.$require("corelib/string");self.$require("corelib/comparable");self.$require("corelib/enumerable");self.$require("corelib/enumerator");self.$require("corelib/array");self.$require("corelib/hash");self.$require("corelib/number");self.$require("corelib/range");self.$require("corelib/proc");self.$require("corelib/method");self.$require("corelib/regexp");return self.$require("corelib/variables")};Opal.modules["corelib/array/inheritance"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$new","$allocate","$initialize","$to_proc","$__send__","$clone","$respond_to?","$==","$eql?","$inspect","$hash","$*","$class","$slice","$uniq","$flatten","$-","$+"]);(function($base,$super){function $Array(){}var self=$Array=$klass($base,$super,"Array",$Array);var def=self.$$proto,$scope=self.$$scope;return(Opal.defs(self,"$inherited",function(klass){var self=this,replace=nil;replace=$scope.get("Class").$new($scope.get("Array").$$scope.get("Wrapper"));klass.$$proto=replace.$$proto;klass.$$proto.$$class=klass;klass.$$alloc=replace.$$alloc;klass.$$parent=$scope.get("Array").$$scope.get("Wrapper");klass.$allocate=replace.$allocate;klass.$new=replace.$new;klass["$[]"]=replace["$[]"]}),nil)&&"inherited"})($scope.base,null);return function($base,$super){function $Wrapper(){}var self=$Wrapper=$klass($base,$super,"Wrapper",$Wrapper);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_4,TMP_5;def.literal=nil;def.$$is_array=true;Opal.defs(self,"$allocate",TMP_1=function(array){var self=this,$iter=TMP_1.$$p,$yield=$iter||nil,obj=nil;if(array==null){array=[]}TMP_1.$$p=null;obj=Opal.find_super_dispatcher(self,"allocate",TMP_1,null,$Wrapper).apply(self,[]);obj.literal=array;return obj});Opal.defs(self,"$new",TMP_2=function(){var $a,$b,self=this,$iter=TMP_2.$$p,block=$iter||nil,obj=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_2.$$p=null;obj=self.$allocate();($a=($b=obj).$initialize,$a.$$p=block.$to_proc(),$a).apply($b,Opal.to_a(args));return obj});Opal.defs(self,"$[]",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var objects=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){objects[arg_index]=arguments[arg_index+0]}return self.$allocate(objects)});Opal.defn(self,"$initialize",TMP_3=function(){var $a,$b,self=this,$iter=TMP_3.$$p,block=$iter||nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_3.$$p=null;return self.literal=($a=($b=$scope.get("Array")).$new,$a.$$p=block.$to_proc(),$a).apply($b,Opal.to_a(args))});Opal.defn(self,"$method_missing",TMP_4=function(){var $a,$b,self=this,$iter=TMP_4.$$p,block=$iter||nil,result=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_4.$$p=null;result=($a=($b=self.literal).$__send__,$a.$$p=block.$to_proc(),$a).apply($b,Opal.to_a(args));if(($a=result===self.literal)!==nil&&(!$a.$$is_boolean||$a==true)){return self}else{return result}});Opal.defn(self,"$initialize_copy",function(other){var self=this;return self.literal=other.literal.$clone()});Opal.defn(self,"$respond_to?",TMP_5=function(name){var $zuper=$slice.call(arguments,0);var $a,self=this,$iter=TMP_5.$$p,$yield=$iter||nil;TMP_5.$$p=null;return($a=Opal.find_super_dispatcher(self,"respond_to?",TMP_5,$iter).apply(self,$zuper))!==false&&$a!==nil?$a:self.literal["$respond_to?"](name)});Opal.defn(self,"$==",function(other){var self=this;return self.literal["$=="](other)});Opal.defn(self,"$eql?",function(other){var self=this;return self.literal["$eql?"](other)});Opal.defn(self,"$to_a",function(){var self=this;return self.literal});Opal.defn(self,"$to_ary",function(){var self=this;return self});Opal.defn(self,"$inspect",function(){var self=this;return self.literal.$inspect()});Opal.defn(self,"$hash",function(){var self=this;return self.literal.$hash()});Opal.defn(self,"$*",function(other){var self=this;var result=$rb_times(self.literal,other);if(result.$$is_array){return self.$class().$allocate(result)}else{return result}});Opal.defn(self,"$[]",function(index,length){var self=this;var result=self.literal.$slice(index,length);if(result.$$is_array&&(index.$$is_range||length!==undefined)){return self.$class().$allocate(result)}else{return result}});Opal.alias(self,"slice","[]");Opal.defn(self,"$uniq",function(){var self=this;return self.$class().$allocate(self.literal.$uniq())});Opal.defn(self,"$flatten",function(level){var self=this;return self.$class().$allocate(self.literal.$flatten(level))});Opal.defn(self,"$-",function(other){var self=this;return $rb_minus(self.literal,other)});return(Opal.defn(self,"$+",function(other){var self=this;return $rb_plus(self.literal,other)}),nil)&&"+"}($scope.get("Array"),null)};Opal.modules["corelib/string/inheritance"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$gvars=Opal.gvars;Opal.add_stubs(["$require","$new","$allocate","$initialize","$to_proc","$__send__","$class","$clone","$respond_to?","$==","$inspect","$+","$*","$map","$split","$enum_for","$each_line","$to_a","$%"]);self.$require("corelib/string");(function($base,$super){function $String(){}var self=$String=$klass($base,$super,"String",$String);var def=self.$$proto,$scope=self.$$scope;return(Opal.defs(self,"$inherited",function(klass){var self=this,replace=nil;replace=$scope.get("Class").$new($scope.get("String").$$scope.get("Wrapper"));klass.$$proto=replace.$$proto;klass.$$proto.$$class=klass;klass.$$alloc=replace.$$alloc;klass.$$parent=$scope.get("String").$$scope.get("Wrapper");klass.$allocate=replace.$allocate;klass.$new=replace.$new}),nil)&&"inherited"})($scope.base,null);return function($base,$super){function $Wrapper(){}var self=$Wrapper=$klass($base,$super,"Wrapper",$Wrapper);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_2,TMP_3,TMP_4,TMP_6,TMP_8;def.literal=nil;def.$$is_string=true;Opal.defs(self,"$allocate",TMP_1=function(string){var self=this,$iter=TMP_1.$$p,$yield=$iter||nil,obj=nil;if(string==null){string=""}TMP_1.$$p=null;obj=Opal.find_super_dispatcher(self,"allocate",TMP_1,null,$Wrapper).apply(self,[]);obj.literal=string;return obj});Opal.defs(self,"$new",TMP_2=function(){var $a,$b,self=this,$iter=TMP_2.$$p,block=$iter||nil,obj=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_2.$$p=null;obj=self.$allocate();($a=($b=obj).$initialize,$a.$$p=block.$to_proc(),$a).apply($b,Opal.to_a(args));return obj});Opal.defs(self,"$[]",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var objects=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){objects[arg_index]=arguments[arg_index+0]}return self.$allocate(objects)});Opal.defn(self,"$initialize",function(string){var self=this;if(string==null){string=""}return self.literal=string});Opal.defn(self,"$method_missing",TMP_3=function(){var $a,$b,self=this,$iter=TMP_3.$$p,block=$iter||nil,result=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}TMP_3.$$p=null;result=($a=($b=self.literal).$__send__,$a.$$p=block.$to_proc(),$a).apply($b,Opal.to_a(args));if(($a=result.$$is_string!=null)!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=result==self.literal)!==nil&&(!$a.$$is_boolean||$a==true)){return self}else{return self.$class().$allocate(result)}}else{return result}});Opal.defn(self,"$initialize_copy",function(other){var self=this;return self.literal=other.literal.$clone()});Opal.defn(self,"$respond_to?",TMP_4=function(name){var $zuper=$slice.call(arguments,0);var $a,self=this,$iter=TMP_4.$$p,$yield=$iter||nil;TMP_4.$$p=null;return($a=Opal.find_super_dispatcher(self,"respond_to?",TMP_4,$iter).apply(self,$zuper))!==false&&$a!==nil?$a:self.literal["$respond_to?"](name)});Opal.defn(self,"$==",function(other){var self=this;return self.literal["$=="](other)});Opal.alias(self,"eql?","==");Opal.alias(self,"===","==");Opal.defn(self,"$to_s",function(){var self=this;return self.literal});Opal.alias(self,"to_str","to_s");Opal.defn(self,"$inspect",function(){var self=this;return self.literal.$inspect()});Opal.defn(self,"$+",function(other){var self=this;return $rb_plus(self.literal,other)});Opal.defn(self,"$*",function(other){var self=this;var result=$rb_times(self.literal,other);if(result.$$is_string){return self.$class().$allocate(result)}else{return result}});Opal.defn(self,"$split",function(pattern,limit){var $a,$b,TMP_5,self=this;return($a=($b=self.literal.$split(pattern,limit)).$map,$a.$$p=(TMP_5=function(str){var self=TMP_5.$$s||this;if(str==null)str=nil;return self.$class().$allocate(str)},TMP_5.$$s=self,TMP_5),$a).call($b)});Opal.defn(self,"$replace",function(string){var self=this;return self.literal=string});Opal.defn(self,"$each_line",TMP_6=function(separator){var $a,$b,TMP_7,self=this,$iter=TMP_6.$$p,$yield=$iter||nil;if($gvars["/"]==null)$gvars["/"]=nil;if(separator==null){separator=$gvars["/"]}TMP_6.$$p=null;if($yield!==nil){}else{return self.$enum_for("each_line",separator)}return($a=($b=self.literal).$each_line,$a.$$p=(TMP_7=function(str){var self=TMP_7.$$s||this,$a;if(str==null)str=nil;return $a=Opal.yield1($yield,self.$class().$allocate(str)),$a===$breaker?$a:$a},TMP_7.$$s=self,TMP_7),$a).call($b,separator)});Opal.defn(self,"$lines",TMP_8=function(separator){var $a,$b,self=this,$iter=TMP_8.$$p,block=$iter||nil,e=nil;if($gvars["/"]==null)$gvars["/"]=nil;if(separator==null){separator=$gvars["/"]}TMP_8.$$p=null;e=($a=($b=self).$each_line,$a.$$p=block.$to_proc(),$a).call($b,separator);if(block!==false&&block!==nil){return self}else{return e.$to_a()}});return(Opal.defn(self,"$%",function(data){var self=this;return self.literal["$%"](data)}),nil)&&"%"}($scope.get("String"),null)};Opal.modules["corelib/string/encoding"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var $a,$b,TMP_4,$c,TMP_6,$d,TMP_8,self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$hash2=Opal.hash2; | |
Opal.add_stubs(["$require","$+","$[]","$new","$to_proc","$each","$const_set","$sub","$upcase","$const_get","$===","$==","$name","$include?","$names","$constants","$raise","$attr_accessor","$attr_reader","$register","$length","$bytes","$to_a","$each_byte","$bytesize","$enum_for","$force_encoding","$dup","$coerce_to!","$find","$nil?","$getbyte"]);self.$require("corelib/string");(function($base,$super){function $Encoding(){}var self=$Encoding=$klass($base,$super,"Encoding",$Encoding);var def=self.$$proto,$scope=self.$$scope,TMP_1;def.ascii=def.dummy=def.name=nil;Opal.defs(self,"$register",TMP_1=function(name,options){var $a,$b,$c,TMP_2,self=this,$iter=TMP_1.$$p,block=$iter||nil,names=nil,encoding=nil;if(options==null){options=$hash2([],{})}TMP_1.$$p=null;names=$rb_plus([name],($a=options["$[]"]("aliases"))!==false&&$a!==nil?$a:[]);encoding=($a=($b=$scope.get("Class")).$new,$a.$$p=block.$to_proc(),$a).call($b,self).$new(name,names,($a=options["$[]"]("ascii"))!==false&&$a!==nil?$a:false,($a=options["$[]"]("dummy"))!==false&&$a!==nil?$a:false);return($a=($c=names).$each,$a.$$p=(TMP_2=function(name){var self=TMP_2.$$s||this;if(name==null)name=nil;return self.$const_set(name.$sub("-","_"),encoding)},TMP_2.$$s=self,TMP_2),$a).call($c)});Opal.defs(self,"$find",function(name){try{var $a,$b,TMP_3,self=this,upcase=nil;upcase=name.$upcase();($a=($b=self.$constants()).$each,$a.$$p=(TMP_3=function(const$){var self=TMP_3.$$s||this,$a,$b,encoding=nil;if(const$==null)const$=nil;encoding=self.$const_get(const$);if(($a=$scope.get("Encoding")["$==="](encoding))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return nil}if(($a=($b=encoding.$name()["$=="](upcase))!==false&&$b!==nil?$b:encoding.$names()["$include?"](upcase))!==nil&&(!$a.$$is_boolean||$a==true)){Opal.ret(encoding)}else{return nil}},TMP_3.$$s=self,TMP_3),$a).call($b);return self.$raise($scope.get("ArgumentError"),"unknown encoding name - "+name)}catch($returner){if($returner===Opal.returner){return $returner.$v}throw $returner}});(function(self){var $scope=self.$$scope,def=self.$$proto;return self.$attr_accessor("default_external")})(Opal.get_singleton_class(self));self.$attr_reader("name","names");Opal.defn(self,"$initialize",function(name,names,ascii,dummy){var self=this;self.name=name;self.names=names;self.ascii=ascii;return self.dummy=dummy});Opal.defn(self,"$ascii_compatible?",function(){var self=this;return self.ascii});Opal.defn(self,"$dummy?",function(){var self=this;return self.dummy});Opal.defn(self,"$to_s",function(){var self=this;return self.name});Opal.defn(self,"$inspect",function(){var $a,self=this;return"#<Encoding:"+self.name+function(){if(($a=self.dummy)!==nil&&(!$a.$$is_boolean||$a==true)){return" (dummy)"}else{return nil}return nil}()+">"});Opal.defn(self,"$each_byte",function(){var self=this;return self.$raise($scope.get("NotImplementedError"))});Opal.defn(self,"$getbyte",function(){var self=this;return self.$raise($scope.get("NotImplementedError"))});Opal.defn(self,"$bytesize",function(){var self=this;return self.$raise($scope.get("NotImplementedError"))});(function($base,$super){function $EncodingError(){}var self=$EncodingError=$klass($base,$super,"EncodingError",$EncodingError);var def=self.$$proto,$scope=self.$$scope;return nil})($scope.base,$scope.get("StandardError"));return function($base,$super){function $CompatibilityError(){}var self=$CompatibilityError=$klass($base,$super,"CompatibilityError",$CompatibilityError);var def=self.$$proto,$scope=self.$$scope;return nil}($scope.base,$scope.get("EncodingError"))})($scope.base,null);($a=($b=$scope.get("Encoding")).$register,$a.$$p=(TMP_4=function(){var self=TMP_4.$$s||this,TMP_5;Opal.def(self,"$each_byte",TMP_5=function(string){var $a,self=this,$iter=TMP_5.$$p,block=$iter||nil;TMP_5.$$p=null;for(var i=0,length=string.length;i<length;i++){var code=string.charCodeAt(i);if(code<=127){($a=Opal.yield1(block,code))===$breaker?$breaker.$v:$a}else{var encoded=encodeURIComponent(string.charAt(i)).substr(1).split("%");for(var j=0,encoded_length=encoded.length;j<encoded_length;j++){($a=Opal.yield1(block,parseInt(encoded[j],16)))===$breaker?$breaker.$v:$a}}}});return(Opal.def(self,"$bytesize",function(){var self=this;return self.$bytes().$length()}),nil)&&"bytesize"},TMP_4.$$s=self,TMP_4),$a).call($b,"UTF-8",$hash2(["aliases","ascii"],{aliases:["CP65001"],ascii:true}));($a=($c=$scope.get("Encoding")).$register,$a.$$p=(TMP_6=function(){var self=TMP_6.$$s||this,TMP_7;Opal.def(self,"$each_byte",TMP_7=function(string){var $a,self=this,$iter=TMP_7.$$p,block=$iter||nil;TMP_7.$$p=null;for(var i=0,length=string.length;i<length;i++){var code=string.charCodeAt(i);($a=Opal.yield1(block,code&255))===$breaker?$breaker.$v:$a;($a=Opal.yield1(block,code>>8))===$breaker?$breaker.$v:$a}});return(Opal.def(self,"$bytesize",function(){var self=this;return self.$bytes().$length()}),nil)&&"bytesize"},TMP_6.$$s=self,TMP_6),$a).call($c,"UTF-16LE");($a=($d=$scope.get("Encoding")).$register,$a.$$p=(TMP_8=function(){var self=TMP_8.$$s||this,TMP_9;Opal.def(self,"$each_byte",TMP_9=function(string){var $a,self=this,$iter=TMP_9.$$p,block=$iter||nil;TMP_9.$$p=null;for(var i=0,length=string.length;i<length;i++){($a=Opal.yield1(block,string.charCodeAt(i)&255))===$breaker?$breaker.$v:$a}});return(Opal.def(self,"$bytesize",function(){var self=this;return self.$bytes().$length()}),nil)&&"bytesize"},TMP_8.$$s=self,TMP_8),$a).call($d,"ASCII-8BIT",$hash2(["aliases","ascii"],{aliases:["BINARY"],ascii:true}));return function($base,$super){function $String(){}var self=$String=$klass($base,$super,"String",$String);var def=self.$$proto,$scope=self.$$scope,TMP_10;def.encoding=nil;String.prototype.encoding=$scope.get("Encoding").$$scope.get("UTF_16LE");Opal.defn(self,"$bytes",function(){var self=this;return self.$each_byte().$to_a()});Opal.defn(self,"$bytesize",function(){var self=this;return self.encoding.$bytesize(self)});Opal.defn(self,"$each_byte",TMP_10=function(){var $a,$b,self=this,$iter=TMP_10.$$p,block=$iter||nil;TMP_10.$$p=null;if(block!==nil){}else{return self.$enum_for("each_byte")}($a=($b=self.encoding).$each_byte,$a.$$p=block.$to_proc(),$a).call($b,self);return self});Opal.defn(self,"$encode",function(encoding){var self=this;return self.$dup().$force_encoding(encoding)});Opal.defn(self,"$encoding",function(){var self=this;return self.encoding});Opal.defn(self,"$force_encoding",function(encoding){var $a,self=this;encoding=$scope.get("Opal")["$coerce_to!"](encoding,$scope.get("String"),"to_str");encoding=$scope.get("Encoding").$find(encoding);if(encoding["$=="](self.encoding)){return self}if(($a=encoding["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("ArgumentError"),"unknown encoding name - "+encoding)}var result=new String(self);result.encoding=encoding;return result});return(Opal.defn(self,"$getbyte",function(idx){var self=this;return self.encoding.$getbyte(self,idx)}),nil)&&"getbyte"}($scope.base,null)};Opal.modules["corelib/math"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$module=Opal.module;Opal.add_stubs(["$new","$raise","$Float","$type_error","$Integer","$module_function","$checked","$float!","$===","$gamma","$-","$integer!","$/","$infinite?"]);return function($base){var self=$module($base,"Math");var def=self.$$proto,$scope=self.$$scope,$a;Opal.cdecl($scope,"E",Math.E);Opal.cdecl($scope,"PI",Math.PI);Opal.cdecl($scope,"DomainError",$scope.get("Class").$new($scope.get("StandardError")));Opal.defs(self,"$checked",function(method){var self=this;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}if(isNaN(args[0])||args.length==2&&isNaN(args[1])){return NaN}var result=Math[method].apply(null,args);if(isNaN(result)){self.$raise($scope.get("DomainError"),'Numerical argument is out of domain - "'+method+'"')}return result});Opal.defs(self,"$float!",function(value){var self=this;try{return self.$Float(value)}catch($err){if(Opal.rescue($err,[$scope.get("ArgumentError")])){try{return self.$raise($scope.get("Opal").$type_error(value,$scope.get("Float")))}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}});Opal.defs(self,"$integer!",function(value){var self=this;try{return self.$Integer(value)}catch($err){if(Opal.rescue($err,[$scope.get("ArgumentError")])){try{return self.$raise($scope.get("Opal").$type_error(value,$scope.get("Integer")))}finally{Opal.gvars["!"]=Opal.exceptions.pop()||Opal.nil}}else{throw $err}}});self.$module_function();Opal.defn(self,"$acos",function(x){var self=this;return $scope.get("Math").$checked("acos",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.acosh!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.acosh=function(x){return Math.log(x+Math.sqrt(x*x-1))}}Opal.defn(self,"$acosh",function(x){var self=this;return $scope.get("Math").$checked("acosh",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$asin",function(x){var self=this;return $scope.get("Math").$checked("asin",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.asinh!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.asinh=function(x){return Math.log(x+Math.sqrt(x*x+1))}}Opal.defn(self,"$asinh",function(x){var self=this;return $scope.get("Math").$checked("asinh",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$atan",function(x){var self=this;return $scope.get("Math").$checked("atan",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$atan2",function(y,x){var self=this;return $scope.get("Math").$checked("atan2",$scope.get("Math")["$float!"](y),$scope.get("Math")["$float!"](x))});if(($a=typeof Math.atanh!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.atanh=function(x){return.5*Math.log((1+x)/(1-x))}}Opal.defn(self,"$atanh",function(x){var self=this;return $scope.get("Math").$checked("atanh",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.cbrt!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.cbrt=function(x){if(x==0){return 0}if(x<0){return-Math.cbrt(-x)}var r=x,ex=0;while(r<.125){r*=8;ex--}while(r>1){r*=.125;ex++}r=(-.46946116*r+1.072302)*r+.3812513;while(ex<0){r*=.5;ex++}while(ex>0){r*=2;ex--}r=2/3*r+1/3*x/(r*r);r=2/3*r+1/3*x/(r*r);r=2/3*r+1/3*x/(r*r);r=2/3*r+1/3*x/(r*r);return r}}Opal.defn(self,"$cbrt",function(x){var self=this;return $scope.get("Math").$checked("cbrt",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$cos",function(x){var self=this;return $scope.get("Math").$checked("cos",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.cosh!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.cosh=function(x){return(Math.exp(x)+Math.exp(-x))/2}}Opal.defn(self,"$cosh",function(x){var self=this;return $scope.get("Math").$checked("cosh",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.erf!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.erf=function(x){var A1=.254829592,A2=-.284496736,A3=1.421413741,A4=-1.453152027,A5=1.061405429,P=.3275911;var sign=1;if(x<0){sign=-1}x=Math.abs(x);var t=1/(1+P*x);var y=1-((((A5*t+A4)*t+A3)*t+A2)*t+A1)*t*Math.exp(-x*x);return sign*y}}Opal.defn(self,"$erf",function(x){var self=this;return $scope.get("Math").$checked("erf",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.erfc!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.erfc=function(x){var z=Math.abs(x),t=1/(.5*z+1);var A1=t*.17087277+-.82215223,A2=t*A1+1.48851587,A3=t*A2+-1.13520398,A4=t*A3+.27886807,A5=t*A4+-.18628806,A6=t*A5+.09678418,A7=t*A6+.37409196,A8=t*A7+1.00002368,A9=t*A8,A10=-z*z-1.26551223+A9;var a=t*Math.exp(A10);if(x<0){return 2-a}else{return a}}}Opal.defn(self,"$erfc",function(x){var self=this;return $scope.get("Math").$checked("erfc",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$exp",function(x){var self=this;return $scope.get("Math").$checked("exp",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$frexp",function(x){var self=this;x=$scope.get("Math")["$float!"](x);if(isNaN(x)){return[NaN,0]}var ex=Math.floor(Math.log(Math.abs(x))/Math.log(2))+1,frac=x/Math.pow(2,ex);return[frac,ex]});Opal.defn(self,"$gamma",function(n){var self=this;n=$scope.get("Math")["$float!"](n);var i,t,x,value,result,twoN,threeN,fourN,fiveN;var G=4.7421875;var P=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];if(isNaN(n)){return NaN}if(n===0&&1/n<0){return-Infinity}if(n===-1||n===-Infinity){self.$raise($scope.get("DomainError"),'Numerical argument is out of domain - "gamma"')}if($scope.get("Integer")["$==="](n)){if(n<=0){return isFinite(n)?Infinity:NaN}if(n>171){return Infinity}value=n-2;result=n-1;while(value>1){result*=value;value--}if(result==0){result=1}return result}if(n<.5){return Math.PI/(Math.sin(Math.PI*n)*$scope.get("Math").$gamma($rb_minus(1,n)))}if(n>=171.35){return Infinity}if(n>85){twoN=n*n;threeN=twoN*n;fourN=threeN*n;fiveN=fourN*n;return Math.sqrt(2*Math.PI/n)*Math.pow(n/Math.E,n)*(1+1/(12*n)+1/(288*twoN)-139/(51840*threeN)-571/(2488320*fourN)+163879/(209018880*fiveN)+5246819/(75246796800*fiveN*n))}n-=1;x=P[0];for(i=1;i<P.length;++i){x+=P[i]/(n+i)}t=n+G+.5;return Math.sqrt(2*Math.PI)*Math.pow(t,n+.5)*Math.exp(-t)*x});if(($a=typeof Math.hypot!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.hypot=function(x,y){return Math.sqrt(x*x+y*y)}}Opal.defn(self,"$hypot",function(x,y){var self=this;return $scope.get("Math").$checked("hypot",$scope.get("Math")["$float!"](x),$scope.get("Math")["$float!"](y))});Opal.defn(self,"$ldexp",function(mantissa,exponent){var self=this;mantissa=$scope.get("Math")["$float!"](mantissa);exponent=$scope.get("Math")["$integer!"](exponent);if(isNaN(exponent)){self.$raise($scope.get("RangeError"),"float NaN out of range of integer")}return mantissa*Math.pow(2,exponent)});Opal.defn(self,"$lgamma",function(n){var self=this;if(n==-1){return[Infinity,1]}else{return[Math.log(Math.abs($scope.get("Math").$gamma(n))),$scope.get("Math").$gamma(n)<0?-1:1]}});Opal.defn(self,"$log",function(x,base){var $a,self=this;if(($a=$scope.get("String")["$==="](x))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("Opal").$type_error(x,$scope.get("Float")))}if(($a=base==null)!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Math").$checked("log",$scope.get("Math")["$float!"](x))}else{if(($a=$scope.get("String")["$==="](base))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("Opal").$type_error(base,$scope.get("Float")))}return $rb_divide($scope.get("Math").$checked("log",$scope.get("Math")["$float!"](x)),$scope.get("Math").$checked("log",$scope.get("Math")["$float!"](base)))}});if(($a=typeof Math.log10!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.log10=function(x){return Math.log(x)/Math.LN10}}Opal.defn(self,"$log10",function(x){var $a,self=this;if(($a=$scope.get("String")["$==="](x))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("Opal").$type_error(x,$scope.get("Float")))}return $scope.get("Math").$checked("log10",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.log2!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.log2=function(x){return Math.log(x)/Math.LN2}}Opal.defn(self,"$log2",function(x){var $a,self=this;if(($a=$scope.get("String")["$==="](x))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("Opal").$type_error(x,$scope.get("Float")))}return $scope.get("Math").$checked("log2",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$sin",function(x){var self=this;return $scope.get("Math").$checked("sin",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.sinh!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.sinh=function(x){return(Math.exp(x)-Math.exp(-x))/2}}Opal.defn(self,"$sinh",function(x){var self=this;return $scope.get("Math").$checked("sinh",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$sqrt",function(x){var self=this;return $scope.get("Math").$checked("sqrt",$scope.get("Math")["$float!"](x))});Opal.defn(self,"$tan",function(x){var $a,self=this;x=$scope.get("Math")["$float!"](x);if(($a=x["$infinite?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Float").$$scope.get("NAN")}return $scope.get("Math").$checked("tan",$scope.get("Math")["$float!"](x))});if(($a=typeof Math.tanh!=="undefined")!==nil&&(!$a.$$is_boolean||$a==true)){}else{Math.tanh=function(x){if(x==Infinity){return 1}else if(x==-Infinity){return-1}else{return(Math.exp(x)-Math.exp(-x))/(Math.exp(x)+Math.exp(-x))}}}Opal.defn(self,"$tanh",function(x){var self=this;return $scope.get("Math").$checked("tanh",$scope.get("Math")["$float!"](x))})}($scope.base)};Opal.modules["corelib/complex"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$module=Opal.module;Opal.add_stubs(["$require","$===","$real?","$raise","$new","$*","$cos","$sin","$attr_reader","$class","$==","$real","$imag","$Complex","$-@","$+","$__coerced__","$-","$nan?","$/","$conj","$abs2","$quo","$polar","$exp","$log","$>","$!=","$divmod","$**","$hypot","$atan2","$lcm","$denominator","$to_s","$numerator","$abs","$arg","$rationalize","$to_f","$to_i","$to_r","$inspect","$positive?","$infinite?"]);self.$require("corelib/numeric");(function($base,$super){function $Complex(){}var self=$Complex=$klass($base,$super,"Complex",$Complex);var def=self.$$proto,$scope=self.$$scope;def.real=def.imag=nil;Opal.defs(self,"$rect",function(real,imag){var $a,$b,$c,$d,self=this;if(imag==null){imag=0}if(($a=($b=($c=($d=$scope.get("Numeric")["$==="](real),$d!==false&&$d!==nil?real["$real?"]():$d),$c!==false&&$c!==nil?$scope.get("Numeric")["$==="](imag):$c),$b!==false&&$b!==nil?imag["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"not a real")}return self.$new(real,imag)});(function(self){var $scope=self.$$scope,def=self.$$proto;return Opal.alias(self,"rectangular","rect")})(Opal.get_singleton_class(self));Opal.defs(self,"$polar",function(r,theta){var $a,$b,$c,$d,self=this;if(theta==null){theta=0}if(($a=($b=($c=($d=$scope.get("Numeric")["$==="](r),$d!==false&&$d!==nil?r["$real?"]():$d),$c!==false&&$c!==nil?$scope.get("Numeric")["$==="](theta):$c),$b!==false&&$b!==nil?theta["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"not a real")}return self.$new($rb_times(r,$scope.get("Math").$cos(theta)),$rb_times(r,$scope.get("Math").$sin(theta)))});self.$attr_reader("real","imag");Opal.defn(self,"$initialize",function(real,imag){var self=this;if(imag==null){imag=0}self.real=real;return self.imag=imag});Opal.defn(self,"$coerce",function(other){var $a,$b,self=this;if(($a=$scope.get("Complex")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){return[other,self]}else if(($a=($b=$scope.get("Numeric")["$==="](other),$b!==false&&$b!==nil?other["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return[$scope.get("Complex").$new(other,0),self]}else{return self.$raise($scope.get("TypeError"),""+other.$class()+" can't be coerced into Complex")}});Opal.defn(self,"$==",function(other){var $a,$b,self=this;if(($a=$scope.get("Complex")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){return($a=self.real["$=="](other.$real()))?self.imag["$=="](other.$imag()):self.real["$=="](other.$real())}else if(($a=($b=$scope.get("Numeric")["$==="](other),$b!==false&&$b!==nil?other["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return($a=self.real["$=="](other))?self.imag["$=="](0):self.real["$=="](other)}else{return other["$=="](self)}});Opal.defn(self,"$-@",function(){var self=this;return self.$Complex(self.real["$-@"](),self.imag["$-@"]())});Opal.defn(self,"$+",function(other){var $a,$b,self=this;if(($a=$scope.get("Complex")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$Complex($rb_plus(self.real,other.$real()),$rb_plus(self.imag,other.$imag()))}else if(($a=($b=$scope.get("Numeric")["$==="](other),$b!==false&&$b!==nil?other["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$Complex($rb_plus(self.real,other),self.imag)}else{return self.$__coerced__("+",other)}});Opal.defn(self,"$-",function(other){var $a,$b,self=this;if(($a=$scope.get("Complex")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$Complex($rb_minus(self.real,other.$real()),$rb_minus(self.imag,other.$imag()))}else if(($a=($b=$scope.get("Numeric")["$==="](other),$b!==false&&$b!==nil?other["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$Complex($rb_minus(self.real,other),self.imag)}else{return self.$__coerced__("-",other)}});Opal.defn(self,"$*",function(other){var $a,$b,self=this;if(($a=$scope.get("Complex")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$Complex($rb_minus($rb_times(self.real,other.$real()),$rb_times(self.imag,other.$imag())),$rb_plus($rb_times(self.real,other.$imag()),$rb_times(self.imag,other.$real())))}else if(($a=($b=$scope.get("Numeric")["$==="](other),$b!==false&&$b!==nil?other["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$Complex($rb_times(self.real,other),$rb_times(self.imag,other))}else{return self.$__coerced__("*",other)}});Opal.defn(self,"$/",function(other){var $a,$b,$c,$d,$e,self=this;if(($a=$scope.get("Complex")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=($b=($c=($d=($e=$scope.get("Number")["$==="](self.real),$e!==false&&$e!==nil?self.real["$nan?"]():$e))!==false&&$d!==nil?$d:($e=$scope.get("Number")["$==="](self.imag),$e!==false&&$e!==nil?self.imag["$nan?"]():$e))!==false&&$c!==nil?$c:($d=$scope.get("Number")["$==="](other.$real()),$d!==false&&$d!==nil?other.$real()["$nan?"]():$d))!==false&&$b!==nil?$b:($c=$scope.get("Number")["$==="](other.$imag()),$c!==false&&$c!==nil?other.$imag()["$nan?"]():$c))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Complex").$new($scope.get("Float").$$scope.get("NAN"),$scope.get("Float").$$scope.get("NAN"))}else{return $rb_divide($rb_times(self,other.$conj()),other.$abs2())}}else if(($a=($b=$scope.get("Numeric")["$==="](other),$b!==false&&$b!==nil?other["$real?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$Complex(self.real.$quo(other),self.imag.$quo(other))}else{return self.$__coerced__("/",other)}});Opal.defn(self,"$**",function(other){var $a,$b,$c,$d,self=this,r=nil,theta=nil,ore=nil,oim=nil,nr=nil,ntheta=nil,x=nil,z=nil,n=nil,div=nil,mod=nil;if(other["$=="](0)){return $scope.get("Complex").$new(1,0)}if(($a=$scope.get("Complex")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){$a=Opal.to_ary(self.$polar()),r=$a[0]==null?nil:$a[0],theta=$a[1]==null?nil:$a[1];ore=other.$real();oim=other.$imag();nr=$scope.get("Math").$exp($rb_minus($rb_times(ore,$scope.get("Math").$log(r)),$rb_times(oim,theta)));ntheta=$rb_plus($rb_times(theta,ore),$rb_times(oim,$scope.get("Math").$log(r)));return $scope.get("Complex").$polar(nr,ntheta)}else if(($a=$scope.get("Integer")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){if($rb_gt(other,0)){x=self;z=x;n=$rb_minus(other,1);while(($b=n["$!="](0))!==nil&&(!$b.$$is_boolean||$b==true)){while(($c=($d=Opal.to_ary(n.$divmod(2)),div=$d[0]==null?nil:$d[0],mod=$d[1]==null?nil:$d[1],mod["$=="](0)))!==nil&&(!$c.$$is_boolean||$c==true)){x=self.$Complex($rb_minus($rb_times(x.$real(),x.$real()),$rb_times(x.$imag(),x.$imag())),$rb_times($rb_times(2,x.$real()),x.$imag()));n=div}z=$rb_times(z,x);n=$rb_minus(n,1)}return z}else{return $rb_divide($scope.get("Rational").$new(1,1),self)["$**"](other["$-@"]())}}else if(($a=($b=$scope.get("Float")["$==="](other))!==false&&$b!==nil?$b:$scope.get("Rational")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){$a=Opal.to_ary(self.$polar()),r=$a[0]==null?nil:$a[0],theta=$a[1]==null?nil:$a[1];return $scope.get("Complex").$polar(r["$**"](other),$rb_times(theta,other))}else{return self.$__coerced__("**",other)}});Opal.defn(self,"$abs",function(){var self=this;return $scope.get("Math").$hypot(self.real,self.imag)});Opal.defn(self,"$abs2",function(){var self=this;return $rb_plus($rb_times(self.real,self.real),$rb_times(self.imag,self.imag))});Opal.defn(self,"$angle",function(){var self=this;return $scope.get("Math").$atan2(self.imag,self.real)});Opal.alias(self,"arg","angle");Opal.defn(self,"$conj",function(){var self=this;return self.$Complex(self.real,self.imag["$-@"]())});Opal.alias(self,"conjugate","conj");Opal.defn(self,"$denominator",function(){var self=this;return self.real.$denominator().$lcm(self.imag.$denominator())});Opal.alias(self,"divide","/");Opal.defn(self,"$eql?",function(other){var $a,$b,self=this;return $a=($b=$scope.get("Complex")["$==="](other),$b!==false&&$b!==nil?self.real.$class()["$=="](self.imag.$class()):$b),$a!==false&&$a!==nil?self["$=="](other):$a});Opal.defn(self,"$fdiv",function(other){var $a,self=this;if(($a=$scope.get("Numeric")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),""+other.$class()+" can't be coerced into Complex")}return $rb_divide(self,other)});Opal.defn(self,"$hash",function(){var self=this;return"Complex:"+self.real+":"+self.imag});Opal.alias(self,"imaginary","imag");Opal.defn(self,"$inspect",function(){var self=this;return"("+self.$to_s()+")"});Opal.alias(self,"magnitude","abs");Opal.defn(self,"$numerator",function(){var self=this,d=nil;d=self.$denominator();return self.$Complex($rb_times(self.real.$numerator(),$rb_divide(d,self.real.$denominator())),$rb_times(self.imag.$numerator(),$rb_divide(d,self.imag.$denominator())))});Opal.alias(self,"phase","arg");Opal.defn(self,"$polar",function(){var self=this;return[self.$abs(),self.$arg()]});Opal.alias(self,"quo","/");Opal.defn(self,"$rationalize",function(eps){var $a,self=this;if(arguments.length>1){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)")}if(($a=self.imag["$!="](0))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("RangeError"),"can't' convert "+self+" into Rational")}return self.$real().$rationalize(eps)});Opal.defn(self,"$real?",function(){var self=this;return false});Opal.defn(self,"$rect",function(){var self=this;return[self.real,self.imag]});Opal.alias(self,"rectangular","rect");Opal.defn(self,"$to_f",function(){var self=this;if(self.imag["$=="](0)){}else{self.$raise($scope.get("RangeError"),"can't convert "+self+" into Float")}return self.real.$to_f()});Opal.defn(self,"$to_i",function(){var self=this;if(self.imag["$=="](0)){}else{self.$raise($scope.get("RangeError"),"can't convert "+self+" into Integer")}return self.real.$to_i()});Opal.defn(self,"$to_r",function(){var self=this;if(self.imag["$=="](0)){}else{self.$raise($scope.get("RangeError"),"can't convert "+self+" into Rational")}return self.real.$to_r()});Opal.defn(self,"$to_s",function(){var $a,$b,$c,self=this,result=nil;result=self.real.$inspect();if(($a=($b=($c=$scope.get("Number")["$==="](self.imag),$c!==false&&$c!==nil?self.imag["$nan?"]():$c))!==false&&$b!==nil?$b:self.imag["$positive?"]())!==nil&&(!$a.$$is_boolean||$a==true)){result=$rb_plus(result,"+")}else{result=$rb_plus(result,"-")}result=$rb_plus(result,self.imag.$abs().$inspect());if(($a=($b=$scope.get("Number")["$==="](self.imag),$b!==false&&$b!==nil?($c=self.imag["$nan?"]())!==false&&$c!==nil?$c:self.imag["$infinite?"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){result=$rb_plus(result,"*")}return $rb_plus(result,"i")});return Opal.cdecl($scope,"I",self.$new(0,1))})($scope.base,$scope.get("Numeric"));return function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$Complex",function(real,imag){var self=this;if(imag==null){imag=nil}if(imag!==false&&imag!==nil){return $scope.get("Complex").$new(real,imag)}else{return $scope.get("Complex").$new(real,0)}})}($scope.base)};Opal.modules["corelib/rational"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_times(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs*rhs:lhs["$*"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_le(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<=rhs:lhs["$<="](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$module=Opal.module;Opal.add_stubs(["$require","$to_i","$==","$raise","$<","$-@","$new","$gcd","$/","$nil?","$===","$reduce","$to_r","$equal?","$!","$coerce_to!","$attr_reader","$to_f","$numerator","$denominator","$<=>","$-","$*","$__coerced__","$+","$Rational","$>","$**","$abs","$ceil","$with_precision","$floor","$to_s","$<=","$truncate","$send","$convert"]);self.$require("corelib/numeric");(function($base,$super){function $Rational(){}var self=$Rational=$klass($base,$super,"Rational",$Rational);var def=self.$$proto,$scope=self.$$scope;def.num=def.den=nil;Opal.defs(self,"$reduce",function(num,den){var self=this,gcd=nil;num=num.$to_i();den=den.$to_i();if(den["$=="](0)){self.$raise($scope.get("ZeroDivisionError"),"divided by 0")}else if($rb_lt(den,0)){num=num["$-@"]();den=den["$-@"]()}else if(den["$=="](1)){return self.$new(num,den)}gcd=num.$gcd(den);return self.$new($rb_divide(num,gcd),$rb_divide(den,gcd))});Opal.defs(self,"$convert",function(num,den){var $a,$b,$c,self=this;if(($a=($b=num["$nil?"]())!==false&&$b!==nil?$b:den["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("TypeError"),"cannot convert nil into Rational")}if(($a=($b=$scope.get("Integer")["$==="](num),$b!==false&&$b!==nil?$scope.get("Integer")["$==="](den):$b))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$reduce(num,den)}if(($a=($b=($c=$scope.get("Float")["$==="](num))!==false&&$c!==nil?$c:$scope.get("String")["$==="](num))!==false&&$b!==nil?$b:$scope.get("Complex")["$==="](num))!==nil&&(!$a.$$is_boolean||$a==true)){num=num.$to_r()}if(($a=($b=($c=$scope.get("Float")["$==="](den))!==false&&$c!==nil?$c:$scope.get("String")["$==="](den))!==false&&$b!==nil?$b:$scope.get("Complex")["$==="](den))!==nil&&(!$a.$$is_boolean||$a==true)){den=den.$to_r()}if(($a=($b=den["$equal?"](1),$b!==false&&$b!==nil?$scope.get("Integer")["$==="](num)["$!"]():$b))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Opal")["$coerce_to!"](num,$scope.get("Rational"),"to_r")}else if(($a=($b=$scope.get("Numeric")["$==="](num),$b!==false&&$b!==nil?$scope.get("Numeric")["$==="](den):$b))!==nil&&(!$a.$$is_boolean||$a==true)){ | |
return $rb_divide(num,den)}else{return self.$reduce(num,den)}});self.$attr_reader("numerator","denominator");Opal.defn(self,"$initialize",function(num,den){var self=this;self.num=num;return self.den=den});Opal.defn(self,"$numerator",function(){var self=this;return self.num});Opal.defn(self,"$denominator",function(){var self=this;return self.den});Opal.defn(self,"$coerce",function(other){var self=this,$case=nil;return function(){$case=other;if($scope.get("Rational")["$==="]($case)){return[other,self]}else if($scope.get("Integer")["$==="]($case)){return[other.$to_r(),self]}else if($scope.get("Float")["$==="]($case)){return[other,self.$to_f()]}else{return nil}}()});Opal.defn(self,"$==",function(other){var $a,self=this,$case=nil;return function(){$case=other;if($scope.get("Rational")["$==="]($case)){return($a=self.num["$=="](other.$numerator()))?self.den["$=="](other.$denominator()):self.num["$=="](other.$numerator())}else if($scope.get("Integer")["$==="]($case)){return($a=self.num["$=="](other))?self.den["$=="](1):self.num["$=="](other)}else if($scope.get("Float")["$==="]($case)){return self.$to_f()["$=="](other)}else{return other["$=="](self)}}()});Opal.defn(self,"$<=>",function(other){var self=this,$case=nil;return function(){$case=other;if($scope.get("Rational")["$==="]($case)){return $rb_minus($rb_times(self.num,other.$denominator()),$rb_times(self.den,other.$numerator()))["$<=>"](0)}else if($scope.get("Integer")["$==="]($case)){return $rb_minus(self.num,$rb_times(self.den,other))["$<=>"](0)}else if($scope.get("Float")["$==="]($case)){return self.$to_f()["$<=>"](other)}else{return self.$__coerced__("<=>",other)}}()});Opal.defn(self,"$+",function(other){var self=this,$case=nil,num=nil,den=nil;return function(){$case=other;if($scope.get("Rational")["$==="]($case)){num=$rb_plus($rb_times(self.num,other.$denominator()),$rb_times(self.den,other.$numerator()));den=$rb_times(self.den,other.$denominator());return self.$Rational(num,den)}else if($scope.get("Integer")["$==="]($case)){return self.$Rational($rb_plus(self.num,$rb_times(other,self.den)),self.den)}else if($scope.get("Float")["$==="]($case)){return $rb_plus(self.$to_f(),other)}else{return self.$__coerced__("+",other)}}()});Opal.defn(self,"$-",function(other){var self=this,$case=nil,num=nil,den=nil;return function(){$case=other;if($scope.get("Rational")["$==="]($case)){num=$rb_minus($rb_times(self.num,other.$denominator()),$rb_times(self.den,other.$numerator()));den=$rb_times(self.den,other.$denominator());return self.$Rational(num,den)}else if($scope.get("Integer")["$==="]($case)){return self.$Rational($rb_minus(self.num,$rb_times(other,self.den)),self.den)}else if($scope.get("Float")["$==="]($case)){return $rb_minus(self.$to_f(),other)}else{return self.$__coerced__("-",other)}}()});Opal.defn(self,"$*",function(other){var self=this,$case=nil,num=nil,den=nil;return function(){$case=other;if($scope.get("Rational")["$==="]($case)){num=$rb_times(self.num,other.$numerator());den=$rb_times(self.den,other.$denominator());return self.$Rational(num,den)}else if($scope.get("Integer")["$==="]($case)){return self.$Rational($rb_times(self.num,other),self.den)}else if($scope.get("Float")["$==="]($case)){return $rb_times(self.$to_f(),other)}else{return self.$__coerced__("*",other)}}()});Opal.defn(self,"$/",function(other){var self=this,$case=nil,num=nil,den=nil;return function(){$case=other;if($scope.get("Rational")["$==="]($case)){num=$rb_times(self.num,other.$denominator());den=$rb_times(self.den,other.$numerator());return self.$Rational(num,den)}else if($scope.get("Integer")["$==="]($case)){if(other["$=="](0)){return $rb_divide(self.$to_f(),0)}else{return self.$Rational(self.num,$rb_times(self.den,other))}}else if($scope.get("Float")["$==="]($case)){return $rb_divide(self.$to_f(),other)}else{return self.$__coerced__("/",other)}}()});Opal.defn(self,"$**",function(other){var $a,$b,self=this,$case=nil;return function(){$case=other;if($scope.get("Integer")["$==="]($case)){if(($a=($b=self["$=="](0))?$rb_lt(other,0):self["$=="](0))!==nil&&(!$a.$$is_boolean||$a==true)){return $scope.get("Float").$$scope.get("INFINITY")}else if($rb_gt(other,0)){return self.$Rational(self.num["$**"](other),self.den["$**"](other))}else if($rb_lt(other,0)){return self.$Rational(self.den["$**"](other["$-@"]()),self.num["$**"](other["$-@"]()))}else{return self.$Rational(1,1)}}else if($scope.get("Float")["$==="]($case)){return self.$to_f()["$**"](other)}else if($scope.get("Rational")["$==="]($case)){if(other["$=="](0)){return self.$Rational(1,1)}else if(other.$denominator()["$=="](1)){if($rb_lt(other,0)){return self.$Rational(self.den["$**"](other.$numerator().$abs()),self.num["$**"](other.$numerator().$abs()))}else{return self.$Rational(self.num["$**"](other.$numerator()),self.den["$**"](other.$numerator()))}}else if(($a=($b=self["$=="](0))?$rb_lt(other,0):self["$=="](0))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$raise($scope.get("ZeroDivisionError"),"divided by 0")}else{return self.$to_f()["$**"](other)}}else{return self.$__coerced__("**",other)}}()});Opal.defn(self,"$abs",function(){var self=this;return self.$Rational(self.num.$abs(),self.den.$abs())});Opal.defn(self,"$ceil",function(precision){var self=this;if(precision==null){precision=0}if(precision["$=="](0)){return $rb_divide(self.num["$-@"](),self.den)["$-@"]().$ceil()}else{return self.$with_precision("ceil",precision)}});Opal.alias(self,"divide","/");Opal.defn(self,"$floor",function(precision){var self=this;if(precision==null){precision=0}if(precision["$=="](0)){return $rb_divide(self.num["$-@"](),self.den)["$-@"]().$floor()}else{return self.$with_precision("floor",precision)}});Opal.defn(self,"$hash",function(){var self=this;return"Rational:"+self.num+":"+self.den});Opal.defn(self,"$inspect",function(){var self=this;return"("+self.$to_s()+")"});Opal.alias(self,"quo","/");Opal.defn(self,"$rationalize",function(eps){var self=this;if(arguments.length>1){self.$raise($scope.get("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)")}if(eps==null){return self}var e=eps.$abs(),a=$rb_minus(self,e),b=$rb_plus(self,e);var p0=0,p1=1,q0=1,q1=0,p2,q2;var c,k,t;while(true){c=a.$ceil();if($rb_le(c,b)){break}k=c-1;p2=k*p1+p0;q2=k*q1+q0;t=$rb_divide(1,$rb_minus(b,k));b=$rb_divide(1,$rb_minus(a,k));a=t;p0=p1;q0=q1;p1=p2;q1=q2}return self.$Rational(c*p1+p0,c*q1+q0)});Opal.defn(self,"$round",function(precision){var self=this,num=nil,den=nil,approx=nil;if(precision==null){precision=0}if(precision["$=="](0)){}else{return self.$with_precision("round",precision)}if(self.num["$=="](0)){return 0}if(self.den["$=="](1)){return self.num}num=$rb_plus($rb_times(self.num.$abs(),2),self.den);den=$rb_times(self.den,2);approx=$rb_divide(num,den).$truncate();if($rb_lt(self.num,0)){return approx["$-@"]()}else{return approx}});Opal.defn(self,"$to_f",function(){var self=this;return $rb_divide(self.num,self.den)});Opal.defn(self,"$to_i",function(){var self=this;return self.$truncate()});Opal.defn(self,"$to_r",function(){var self=this;return self});Opal.defn(self,"$to_s",function(){var self=this;return""+self.num+"/"+self.den});Opal.defn(self,"$truncate",function(precision){var self=this;if(precision==null){precision=0}if(precision["$=="](0)){if($rb_lt(self.num,0)){return self.$ceil()}else{return self.$floor()}}else{return self.$with_precision("truncate",precision)}});return(Opal.defn(self,"$with_precision",function(method,precision){var $a,self=this,p=nil,s=nil;if(($a=$scope.get("Integer")["$==="](precision))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("TypeError"),"not an Integer")}p=10["$**"](precision);s=$rb_times(self,p);if($rb_lt(precision,1)){return $rb_divide(s.$send(method),p).$to_i()}else{return self.$Rational(s.$send(method),p)}}),nil)&&"with_precision"})($scope.base,$scope.get("Numeric"));return function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$Rational",function(numerator,denominator){var self=this;if(denominator==null){denominator=1}return $scope.get("Rational").$convert(numerator,denominator)})}($scope.base)};Opal.modules["corelib/time"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_gt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>rhs:lhs["$>"](rhs)}function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}function $rb_divide(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs/rhs:lhs["$/"](rhs)}function $rb_minus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs-rhs:lhs["$-"](rhs)}function $rb_le(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<=rhs:lhs["$<="](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$require","$include","$===","$raise","$coerce_to!","$respond_to?","$to_str","$to_i","$new","$<=>","$to_f","$nil?","$>","$<","$strftime","$year","$month","$day","$+","$round","$/","$-","$copy_instance_variables","$initialize_dup","$is_a?","$zero?","$wday","$utc?","$mon","$yday","$hour","$min","$sec","$rjust","$ljust","$zone","$to_s","$[]","$cweek_cyear","$isdst","$<=","$!=","$==","$ceil"]);self.$require("corelib/comparable");return function($base,$super){function $Time(){}var self=$Time=$klass($base,$super,"Time",$Time);var def=self.$$proto,$scope=self.$$scope;self.$include($scope.get("Comparable"));var days_of_week=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],short_days=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],short_months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long_months=["January","February","March","April","May","June","July","August","September","October","November","December"];Opal.defs(self,"$at",function(seconds,frac){var self=this;var result;if($scope.get("Time")["$==="](seconds)){if(frac!==undefined){self.$raise($scope.get("TypeError"),"can't convert Time into an exact number")}result=new Date(seconds.getTime());result.is_utc=seconds.is_utc;return result}if(!seconds.$$is_number){seconds=$scope.get("Opal")["$coerce_to!"](seconds,$scope.get("Integer"),"to_int")}if(frac===undefined){return new Date(seconds*1e3)}if(!frac.$$is_number){frac=$scope.get("Opal")["$coerce_to!"](frac,$scope.get("Integer"),"to_int")}return new Date(seconds*1e3+frac/1e3)});function time_params(year,month,day,hour,min,sec){if(year.$$is_string){year=parseInt(year,10)}else{year=$scope.get("Opal")["$coerce_to!"](year,$scope.get("Integer"),"to_int")}if(month===nil){month=1}else if(!month.$$is_number){if(month["$respond_to?"]("to_str")){month=month.$to_str();switch(month.toLowerCase()){case"jan":month=1;break;case"feb":month=2;break;case"mar":month=3;break;case"apr":month=4;break;case"may":month=5;break;case"jun":month=6;break;case"jul":month=7;break;case"aug":month=8;break;case"sep":month=9;break;case"oct":month=10;break;case"nov":month=11;break;case"dec":month=12;break;default:month=month.$to_i()}}else{month=$scope.get("Opal")["$coerce_to!"](month,$scope.get("Integer"),"to_int")}}if(month<1||month>12){self.$raise($scope.get("ArgumentError"),"month out of range: "+month)}month=month-1;if(day===nil){day=1}else if(day.$$is_string){day=parseInt(day,10)}else{day=$scope.get("Opal")["$coerce_to!"](day,$scope.get("Integer"),"to_int")}if(day<1||day>31){self.$raise($scope.get("ArgumentError"),"day out of range: "+day)}if(hour===nil){hour=0}else if(hour.$$is_string){hour=parseInt(hour,10)}else{hour=$scope.get("Opal")["$coerce_to!"](hour,$scope.get("Integer"),"to_int")}if(hour<0||hour>24){self.$raise($scope.get("ArgumentError"),"hour out of range: "+hour)}if(min===nil){min=0}else if(min.$$is_string){min=parseInt(min,10)}else{min=$scope.get("Opal")["$coerce_to!"](min,$scope.get("Integer"),"to_int")}if(min<0||min>59){self.$raise($scope.get("ArgumentError"),"min out of range: "+min)}if(sec===nil){sec=0}else if(!sec.$$is_number){if(sec.$$is_string){sec=parseInt(sec,10)}else{sec=$scope.get("Opal")["$coerce_to!"](sec,$scope.get("Integer"),"to_int")}}if(sec<0||sec>60){self.$raise($scope.get("ArgumentError"),"sec out of range: "+sec)}return[year,month,day,hour,min,sec]}Opal.defs(self,"$new",function(year,month,day,hour,min,sec,utc_offset){var self=this;if(month==null){month=nil}if(day==null){day=nil}if(hour==null){hour=nil}if(min==null){min=nil}if(sec==null){sec=nil}if(utc_offset==null){utc_offset=nil}var args,result;if(year===undefined){return new Date}if(utc_offset!==nil){self.$raise($scope.get("ArgumentError"),"Opal does not support explicitly specifying UTC offset for Time")}args=time_params(year,month,day,hour,min,sec);year=args[0];month=args[1];day=args[2];hour=args[3];min=args[4];sec=args[5];result=new Date(year,month,day,hour,min,0,sec*1e3);if(year<100){result.setFullYear(year)}return result});Opal.defs(self,"$local",function(year,month,day,hour,min,sec,millisecond,_dummy1,_dummy2,_dummy3){var self=this;if(month==null){month=nil}if(day==null){day=nil}if(hour==null){hour=nil}if(min==null){min=nil}if(sec==null){sec=nil}if(millisecond==null){millisecond=nil}if(_dummy1==null){_dummy1=nil}if(_dummy2==null){_dummy2=nil}if(_dummy3==null){_dummy3=nil}var args,result;if(arguments.length===10){args=$slice.call(arguments);year=args[5];month=args[4];day=args[3];hour=args[2];min=args[1];sec=args[0]}args=time_params(year,month,day,hour,min,sec);year=args[0];month=args[1];day=args[2];hour=args[3];min=args[4];sec=args[5];result=new Date(year,month,day,hour,min,0,sec*1e3);if(year<100){result.setFullYear(year)}return result});Opal.defs(self,"$gm",function(year,month,day,hour,min,sec,millisecond,_dummy1,_dummy2,_dummy3){var self=this;if(month==null){month=nil}if(day==null){day=nil}if(hour==null){hour=nil}if(min==null){min=nil}if(sec==null){sec=nil}if(millisecond==null){millisecond=nil}if(_dummy1==null){_dummy1=nil}if(_dummy2==null){_dummy2=nil}if(_dummy3==null){_dummy3=nil}var args,result;if(arguments.length===10){args=$slice.call(arguments);year=args[5];month=args[4];day=args[3];hour=args[2];min=args[1];sec=args[0]}args=time_params(year,month,day,hour,min,sec);year=args[0];month=args[1];day=args[2];hour=args[3];min=args[4];sec=args[5];result=new Date(Date.UTC(year,month,day,hour,min,0,sec*1e3));if(year<100){result.setUTCFullYear(year)}result.is_utc=true;return result});(function(self){var $scope=self.$$scope,def=self.$$proto;Opal.alias(self,"mktime","local");return Opal.alias(self,"utc","gm")})(Opal.get_singleton_class(self));Opal.defs(self,"$now",function(){var self=this;return self.$new()});Opal.defn(self,"$+",function(other){var $a,self=this;if(($a=$scope.get("Time")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){self.$raise($scope.get("TypeError"),"time + time?")}if(!other.$$is_number){other=$scope.get("Opal")["$coerce_to!"](other,$scope.get("Integer"),"to_int")}var result=new Date(self.getTime()+other*1e3);result.is_utc=self.is_utc;return result});Opal.defn(self,"$-",function(other){var $a,self=this;if(($a=$scope.get("Time")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){return(self.getTime()-other.getTime())/1e3}if(!other.$$is_number){other=$scope.get("Opal")["$coerce_to!"](other,$scope.get("Integer"),"to_int")}var result=new Date(self.getTime()-other*1e3);result.is_utc=self.is_utc;return result});Opal.defn(self,"$<=>",function(other){var $a,self=this,r=nil;if(($a=$scope.get("Time")["$==="](other))!==nil&&(!$a.$$is_boolean||$a==true)){return self.$to_f()["$<=>"](other.$to_f())}else{r=other["$<=>"](self);if(($a=r["$nil?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return nil}else if($rb_gt(r,0)){return-1}else if($rb_lt(r,0)){return 1}else{return 0}}});Opal.defn(self,"$==",function(other){var self=this;return self.$to_f()===other.$to_f()});Opal.defn(self,"$asctime",function(){var self=this;return self.$strftime("%a %b %e %H:%M:%S %Y")});Opal.alias(self,"ctime","asctime");Opal.defn(self,"$day",function(){var self=this;return self.is_utc?self.getUTCDate():self.getDate()});Opal.defn(self,"$yday",function(){var self=this,start_of_year=nil,start_of_day=nil,one_day=nil;start_of_year=$scope.get("Time").$new(self.$year()).$to_i();start_of_day=$scope.get("Time").$new(self.$year(),self.$month(),self.$day()).$to_i();one_day=86400;return $rb_plus($rb_divide($rb_minus(start_of_day,start_of_year),one_day).$round(),1)});Opal.defn(self,"$isdst",function(){var self=this;var jan=new Date(self.getFullYear(),0,1),jul=new Date(self.getFullYear(),6,1);return self.getTimezoneOffset()<Math.max(jan.getTimezoneOffset(),jul.getTimezoneOffset())});Opal.alias(self,"dst?","isdst");Opal.defn(self,"$dup",function(){var self=this,copy=nil;copy=new Date(self.getTime());copy.$copy_instance_variables(self);copy.$initialize_dup(self);return copy});Opal.defn(self,"$eql?",function(other){var $a,self=this;return $a=other["$is_a?"]($scope.get("Time")),$a!==false&&$a!==nil?self["$<=>"](other)["$zero?"]():$a});Opal.defn(self,"$friday?",function(){var self=this;return self.$wday()==5});Opal.defn(self,"$hash",function(){var self=this;return"Time:"+self.getTime()});Opal.defn(self,"$hour",function(){var self=this;return self.is_utc?self.getUTCHours():self.getHours()});Opal.defn(self,"$inspect",function(){var $a,self=this;if(($a=self["$utc?"]())!==nil&&(!$a.$$is_boolean||$a==true)){return self.$strftime("%Y-%m-%d %H:%M:%S UTC")}else{return self.$strftime("%Y-%m-%d %H:%M:%S %z")}});Opal.alias(self,"mday","day");Opal.defn(self,"$min",function(){var self=this;return self.is_utc?self.getUTCMinutes():self.getMinutes()});Opal.defn(self,"$mon",function(){var self=this;return(self.is_utc?self.getUTCMonth():self.getMonth())+1});Opal.defn(self,"$monday?",function(){var self=this;return self.$wday()==1});Opal.alias(self,"month","mon");Opal.defn(self,"$saturday?",function(){var self=this;return self.$wday()==6});Opal.defn(self,"$sec",function(){var self=this;return self.is_utc?self.getUTCSeconds():self.getSeconds()});Opal.defn(self,"$succ",function(){var self=this;var result=new Date(self.getTime()+1e3);result.is_utc=self.is_utc;return result});Opal.defn(self,"$usec",function(){var self=this;return self.getMilliseconds()*1e3});Opal.defn(self,"$zone",function(){var self=this;var string=self.toString(),result;if(string.indexOf("(")==-1){result=string.match(/[A-Z]{3,4}/)[0]}else{result=string.match(/\([^)]+\)/)[0].match(/[A-Z]/g).join("")}if(result=="GMT"&&/(GMT\W*\d{4})/.test(string)){return RegExp.$1}else{return result}});Opal.defn(self,"$getgm",function(){var self=this;var result=new Date(self.getTime());result.is_utc=true;return result});Opal.alias(self,"getutc","getgm");Opal.defn(self,"$gmtime",function(){var self=this;self.is_utc=true;return self});Opal.alias(self,"utc","gmtime");Opal.defn(self,"$gmt?",function(){var self=this;return self.is_utc===true});Opal.defn(self,"$gmt_offset",function(){var self=this;return-self.getTimezoneOffset()*60});Opal.defn(self,"$strftime",function(format){var self=this;return format.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(full,flags,width,_,conv){var result="",zero=flags.indexOf("0")!==-1,pad=flags.indexOf("-")===-1,blank=flags.indexOf("_")!==-1,upcase=flags.indexOf("^")!==-1,invert=flags.indexOf("#")!==-1,colons=(flags.match(":")||[]).length;width=parseInt(width,10);if(zero&&blank){if(flags.indexOf("0")<flags.indexOf("_")){zero=false}else{blank=false}}switch(conv){case"Y":result+=self.$year();break;case"C":zero=!blank;result+=Math.round(self.$year()/100);break;case"y":zero=!blank;result+=self.$year()%100;break;case"m":zero=!blank;result+=self.$mon();break;case"B":result+=long_months[self.$mon()-1];break;case"b":case"h":blank=!zero;result+=short_months[self.$mon()-1];break;case"d":zero=!blank;result+=self.$day();break;case"e":blank=!zero;result+=self.$day();break;case"j":result+=self.$yday();break;case"H":zero=!blank;result+=self.$hour();break;case"k":blank=!zero;result+=self.$hour();break;case"I":zero=!blank;result+=self.$hour()%12||12;break;case"l":blank=!zero;result+=self.$hour()%12||12;break;case"P":result+=self.$hour()>=12?"pm":"am";break;case"p":result+=self.$hour()>=12?"PM":"AM";break;case"M":zero=!blank;result+=self.$min();break;case"S":zero=!blank;result+=self.$sec();break;case"L":zero=!blank;width=isNaN(width)?3:width;result+=self.getMilliseconds();break;case"N":width=isNaN(width)?9:width;result+=self.getMilliseconds().toString().$rjust(3,"0");result=result.$ljust(width,"0");break;case"z":var offset=self.getTimezoneOffset(),hours=Math.floor(Math.abs(offset)/60),minutes=Math.abs(offset)%60;result+=offset<0?"+":"-";result+=hours<10?"0":"";result+=hours;if(colons>0){result+=":"}result+=minutes<10?"0":"";result+=minutes;if(colons>1){result+=":00"}break;case"Z":result+=self.$zone();break;case"A":result+=days_of_week[self.$wday()];break;case"a":result+=short_days[self.$wday()];break;case"u":result+=self.$wday()+1;break;case"w":result+=self.$wday();break;case"V":result+=self.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":result+=self.$cweek_cyear()["$[]"](1);break;case"g":result+=self.$cweek_cyear()["$[]"](1)["$[]"]($range(-2,-1,false));break;case"s":result+=self.$to_i();break;case"n":result+="\n";break;case"t":result+=" ";break;case"%":result+="%";break;case"c":result+=self.$strftime("%a %b %e %T %Y");break;case"D":case"x":result+=self.$strftime("%m/%d/%y");break;case"F":result+=self.$strftime("%Y-%m-%d");break;case"v":result+=self.$strftime("%e-%^b-%4Y");break;case"r":result+=self.$strftime("%I:%M:%S %p");break;case"R":result+=self.$strftime("%H:%M");break;case"T":case"X":result+=self.$strftime("%H:%M:%S");break;default:return full}if(upcase){result=result.toUpperCase()}if(invert){result=result.replace(/[A-Z]/,function(c){c.toLowerCase()}).replace(/[a-z]/,function(c){c.toUpperCase()})}if(pad&&(zero||blank)){result=result.$rjust(isNaN(width)?2:width,blank?" ":"0")}return result})});Opal.defn(self,"$sunday?",function(){var self=this;return self.$wday()==0});Opal.defn(self,"$thursday?",function(){var self=this;return self.$wday()==4});Opal.defn(self,"$to_a",function(){var self=this;return[self.$sec(),self.$min(),self.$hour(),self.$day(),self.$month(),self.$year(),self.$wday(),self.$yday(),self.$isdst(),self.$zone()]});Opal.defn(self,"$to_f",function(){var self=this;return self.getTime()/1e3});Opal.defn(self,"$to_i",function(){var self=this;return parseInt(self.getTime()/1e3,10)});Opal.alias(self,"to_s","inspect");Opal.defn(self,"$tuesday?",function(){var self=this;return self.$wday()==2});Opal.alias(self,"tv_sec","sec");Opal.alias(self,"tv_usec","usec");Opal.alias(self,"utc?","gmt?");Opal.alias(self,"gmtoff","gmt_offset");Opal.alias(self,"utc_offset","gmt_offset");Opal.defn(self,"$wday",function(){var self=this;return self.is_utc?self.getUTCDay():self.getDay()});Opal.defn(self,"$wednesday?",function(){var self=this;return self.$wday()==3});Opal.defn(self,"$year",function(){var self=this;return self.is_utc?self.getUTCFullYear():self.getFullYear()});return(Opal.defn(self,"$cweek_cyear",function(){var $a,$b,self=this,jan01=nil,jan01_wday=nil,first_monday=nil,year=nil,offset=nil,week=nil,dec31=nil,dec31_wday=nil;jan01=$scope.get("Time").$new(self.$year(),1,1);jan01_wday=jan01.$wday();first_monday=0;year=self.$year();if(($a=($b=$rb_le(jan01_wday,4))?jan01_wday["$!="](0):$rb_le(jan01_wday,4))!==nil&&(!$a.$$is_boolean||$a==true)){offset=$rb_minus(jan01_wday,1)}else{offset=$rb_minus($rb_minus(jan01_wday,7),1);if(offset["$=="](-8)){offset=-1}}week=$rb_divide($rb_plus(self.$yday(),offset),7).$ceil();if($rb_le(week,0)){return $scope.get("Time").$new($rb_minus(self.$year(),1),12,31).$cweek_cyear()}else if(week["$=="](53)){dec31=$scope.get("Time").$new(self.$year(),12,31);dec31_wday=dec31.$wday();if(($a=($b=$rb_le(dec31_wday,3))?dec31_wday["$!="](0):$rb_le(dec31_wday,3))!==nil&&(!$a.$$is_boolean||$a==true)){week=1;year=$rb_plus(year,1)}}return[week,year]}),nil)&&"cweek_cyear"}($scope.base,Date)};Opal.modules["corelib/struct"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};function $rb_lt(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs<rhs:lhs["$<"](rhs)}function $rb_ge(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs>=rhs:lhs["$>="](rhs)}function $rb_plus(lhs,rhs){return typeof lhs==="number"&&typeof rhs==="number"?lhs+rhs:lhs["$+"](rhs)}var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$hash2=Opal.hash2;Opal.add_stubs(["$require","$include","$==","$[]","$upcase","$const_set","$new","$unshift","$each","$define_struct_attribute","$class_eval","$to_proc","$allocate","$initialize","$raise","$<<","$members","$define_method","$[]=","$instance_eval","$each_with_index","$class","$hash","$===","$<","$-@","$size","$>=","$include?","$to_sym","$coerce_to!","$instance_of?","$__id__","$eql?","$enum_for","$length","$map","$+","$join","$inspect","$each_pair","$inject","$flatten","$to_a"]);self.$require("corelib/enumerable");return function($base,$super){function $Struct(){}var self=$Struct=$klass($base,$super,"Struct",$Struct);var def=self.$$proto,$scope=self.$$scope,TMP_1,TMP_8,TMP_11;self.$include($scope.get("Enumerable"));Opal.defs(self,"$new",TMP_1=function(name){var $zuper=$slice.call(arguments,0);var $a,$b,$c,TMP_2,self=this,$iter=TMP_1.$$p,block=$iter||nil;var array_size=arguments.length-1;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+1]}TMP_1.$$p=null;if(self["$=="]($scope.get("Struct"))){}else{return Opal.find_super_dispatcher(self,"new",TMP_1,$iter,$Struct).apply(self,$zuper)}if(name["$[]"](0)["$=="](name["$[]"](0).$upcase())){return $scope.get("Struct").$const_set(name,($a=self).$new.apply($a,Opal.to_a(args)))}else{args.$unshift(name);return($b=($c=$scope.get("Class")).$new,$b.$$p=(TMP_2=function(){var self=TMP_2.$$s||this,$a,$b,TMP_3,$c;($a=($b=args).$each,$a.$$p=(TMP_3=function(arg){var self=TMP_3.$$s||this;if(arg==null)arg=nil;return self.$define_struct_attribute(arg)},TMP_3.$$s=self,TMP_3),$a).call($b);if(block!==false&&block!==nil){($a=($c=self).$class_eval,$a.$$p=block.$to_proc(),$a).call($c)}return function(self){var $scope=self.$$scope,def=self.$$proto;Opal.defn(self,"$new",function(){var $a,self=this,instance=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}instance=self.$allocate();instance.$$data={};($a=instance).$initialize.apply($a,Opal.to_a(args));return instance});return Opal.alias(self,"[]","new")}(Opal.get_singleton_class(self))},TMP_2.$$s=self,TMP_2),$b).call($c,self)}});Opal.defs(self,"$define_struct_attribute",function(name){var $a,$b,TMP_4,$c,TMP_5,self=this;if(self["$=="]($scope.get("Struct"))){self.$raise($scope.get("ArgumentError"),"you cannot define attributes to the Struct class")}self.$members()["$<<"](name);($a=($b=self).$define_method,$a.$$p=(TMP_4=function(){var self=TMP_4.$$s||this;return self["$[]"](name)},TMP_4.$$s=self,TMP_4),$a).call($b,name);return($a=($c=self).$define_method,$a.$$p=(TMP_5=function(value){var self=TMP_5.$$s||this;if(value==null)value=nil;return self["$[]="](name,value)},TMP_5.$$s=self,TMP_5),$a).call($c,""+name+"=")});Opal.defs(self,"$members",function(){var $a,self=this;if(self.members==null)self.members=nil;if(self["$=="]($scope.get("Struct"))){self.$raise($scope.get("ArgumentError"),"the Struct class has no members")}return($a=self.members)!==false&&$a!==nil?$a:self.members=[]});Opal.defs(self,"$inherited",function(klass){var $a,$b,TMP_6,self=this,members=nil;if(self.members==null)self.members=nil;members=self.members;return($a=($b=klass).$instance_eval,$a.$$p=(TMP_6=function(){var self=TMP_6.$$s||this;return self.members=members},TMP_6.$$s=self,TMP_6),$a).call($b)});Opal.defn(self,"$initialize",function(){var $a,$b,TMP_7,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}return($a=($b=self.$members()).$each_with_index,$a.$$p=(TMP_7=function(name,index){var self=TMP_7.$$s||this;if(name==null)name=nil;if(index==null)index=nil;return self["$[]="](name,args["$[]"](index))},TMP_7.$$s=self,TMP_7),$a).call($b)});Opal.defn(self,"$members",function(){var self=this;return self.$class().$members()});Opal.defn(self,"$hash",function(){var self=this;return $scope.get("Hash").$new(self.$$data).$hash()});Opal.defn(self,"$[]",function(name){var $a,self=this;if(($a=$scope.get("Integer")["$==="](name))!==nil&&(!$a.$$is_boolean||$a==true)){if($rb_lt(name,self.$members().$size()["$-@"]())){self.$raise($scope.get("IndexError"),"offset "+name+" too small for struct(size:"+self.$members().$size()+")")}if($rb_ge(name,self.$members().$size())){self.$raise($scope.get("IndexError"),"offset "+name+" too large for struct(size:"+self.$members().$size()+")")}name=self.$members()["$[]"](name)}else if(($a=$scope.get("String")["$==="](name))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=self.$members()["$include?"](name.$to_sym()))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("NameError").$new("no member '"+name+"' in struct",name))}}else{self.$raise($scope.get("TypeError"),"no implicit conversion of "+name.$class()+" into Integer")}name=$scope.get("Opal")["$coerce_to!"](name,$scope.get("String"),"to_str");return self.$$data[name]});Opal.defn(self,"$[]=",function(name,value){var $a,self=this;if(($a=$scope.get("Integer")["$==="](name))!==nil&&(!$a.$$is_boolean||$a==true)){if($rb_lt(name,self.$members().$size()["$-@"]())){self.$raise($scope.get("IndexError"),"offset "+name+" too small for struct(size:"+self.$members().$size()+")")}if($rb_ge(name,self.$members().$size())){self.$raise($scope.get("IndexError"),"offset "+name+" too large for struct(size:"+self.$members().$size()+")")}name=self.$members()["$[]"](name)}else if(($a=$scope.get("String")["$==="](name))!==nil&&(!$a.$$is_boolean||$a==true)){if(($a=self.$members()["$include?"](name.$to_sym()))!==nil&&(!$a.$$is_boolean||$a==true)){}else{self.$raise($scope.get("NameError").$new("no member '"+name+"' in struct",name))}}else{self.$raise($scope.get("TypeError"),"no implicit conversion of "+name.$class()+" into Integer")}name=$scope.get("Opal")["$coerce_to!"](name,$scope.get("String"),"to_str");return self.$$data[name]=value});Opal.defn(self,"$==",function(other){var $a,self=this;if(($a=other["$instance_of?"](self.$class()))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return false}var recursed1={},recursed2={};function _eqeq(struct,other){var key,a,b;recursed1[struct.$__id__()]=true;recursed2[other.$__id__()]=true;for(key in struct.$$data){a=struct.$$data[key];b=other.$$data[key];if($scope.get("Struct")["$==="](a)){if(!recursed1.hasOwnProperty(a.$__id__())||!recursed2.hasOwnProperty(b.$__id__())){if(!_eqeq(a,b)){return false}}}else{if(!a["$=="](b)){return false}}}return true}return _eqeq(self,other)});Opal.defn(self,"$eql?",function(other){var $a,self=this;if(($a=other["$instance_of?"](self.$class()))!==nil&&(!$a.$$is_boolean||$a==true)){}else{return false}var recursed1={},recursed2={};function _eqeq(struct,other){var key,a,b;recursed1[struct.$__id__()]=true;recursed2[other.$__id__()]=true;for(key in struct.$$data){a=struct.$$data[key];b=other.$$data[key];if($scope.get("Struct")["$==="](a)){if(!recursed1.hasOwnProperty(a.$__id__())||!recursed2.hasOwnProperty(b.$__id__())){if(!_eqeq(a,b)){return false}}}else{if(!a["$eql?"](b)){return false}}}return true}return _eqeq(self,other)});Opal.defn(self,"$each",TMP_8=function(){var $a,$b,TMP_9,$c,TMP_10,self=this,$iter=TMP_8.$$p,$yield=$iter||nil;TMP_8.$$p=null;if($yield!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_9=function(){ | |
var self=TMP_9.$$s||this;return self.$size()},TMP_9.$$s=self,TMP_9),$a).call($b,"each")}($a=($c=self.$members()).$each,$a.$$p=(TMP_10=function(name){var self=TMP_10.$$s||this,$a;if(name==null)name=nil;return $a=Opal.yield1($yield,self["$[]"](name)),$a===$breaker?$a:$a},TMP_10.$$s=self,TMP_10),$a).call($c);return self});Opal.defn(self,"$each_pair",TMP_11=function(){var $a,$b,TMP_12,$c,TMP_13,self=this,$iter=TMP_11.$$p,$yield=$iter||nil;TMP_11.$$p=null;if($yield!==nil){}else{return($a=($b=self).$enum_for,$a.$$p=(TMP_12=function(){var self=TMP_12.$$s||this;return self.$size()},TMP_12.$$s=self,TMP_12),$a).call($b,"each_pair")}($a=($c=self.$members()).$each,$a.$$p=(TMP_13=function(name){var self=TMP_13.$$s||this,$a;if(name==null)name=nil;return $a=Opal.yield1($yield,[name,self["$[]"](name)]),$a===$breaker?$a:$a},TMP_13.$$s=self,TMP_13),$a).call($c);return self});Opal.defn(self,"$length",function(){var self=this;return self.$members().$length()});Opal.alias(self,"size","length");Opal.defn(self,"$to_a",function(){var $a,$b,TMP_14,self=this;return($a=($b=self.$members()).$map,$a.$$p=(TMP_14=function(name){var self=TMP_14.$$s||this;if(name==null)name=nil;return self["$[]"](name)},TMP_14.$$s=self,TMP_14),$a).call($b)});Opal.alias(self,"values","to_a");Opal.defn(self,"$inspect",function(){var $a,$b,TMP_15,self=this,result=nil;result="#<struct ";if(self.$class()["$=="]($scope.get("Struct"))){result=$rb_plus(result,""+self.$class()+" ")}result=$rb_plus(result,($a=($b=self.$each_pair()).$map,$a.$$p=(TMP_15=function(name,value){var self=TMP_15.$$s||this;if(name==null)name=nil;if(value==null)value=nil;return""+name+"="+value.$inspect()},TMP_15.$$s=self,TMP_15),$a).call($b).$join(", "));result=$rb_plus(result,">");return result});Opal.alias(self,"to_s","inspect");Opal.defn(self,"$to_h",function(){var $a,$b,TMP_16,self=this;return($a=($b=self.$members()).$inject,$a.$$p=(TMP_16=function(h,name){var self=TMP_16.$$s||this;if(h==null)h=nil;if(name==null)name=nil;h["$[]="](name,self["$[]"](name));return h},TMP_16.$$s=self,TMP_16),$a).call($b,$hash2([],{}))});return(Opal.defn(self,"$values_at",function(){var $a,$b,TMP_17,self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}args=($a=($b=args).$map,$a.$$p=(TMP_17=function(arg){var self=TMP_17.$$s||this;if(arg==null)arg=nil;return arg.$$is_range?arg.$to_a():arg},TMP_17.$$s=self,TMP_17),$a).call($b).$flatten();var result=[];for(var i=0,len=args.length;i<len;i++){if(!args[i].$$is_number){self.$raise($scope.get("TypeError"),"no implicit conversion of "+args[i].$class()+" into Integer")}result.push(self["$[]"](args[i]))}return result}),nil)&&"values_at"}($scope.base,null)};Opal.modules["corelib/io"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var $a,$b,self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$module=Opal.module,$gvars=Opal.gvars;if($gvars.stdout==null)$gvars.stdout=nil;if($gvars.stderr==null)$gvars.stderr=nil;Opal.add_stubs(["$attr_accessor","$size","$write","$join","$map","$String","$empty?","$concat","$chomp","$getbyte","$getc","$raise","$new","$write_proc=","$extend"]);(function($base,$super){function $IO(){}var self=$IO=$klass($base,$super,"IO",$IO);var def=self.$$proto,$scope=self.$$scope;def.tty=def.closed=nil;Opal.cdecl($scope,"SEEK_SET",0);Opal.cdecl($scope,"SEEK_CUR",1);Opal.cdecl($scope,"SEEK_END",2);Opal.defn(self,"$tty?",function(){var self=this;return self.tty});Opal.defn(self,"$closed?",function(){var self=this;return self.closed});self.$attr_accessor("write_proc");Opal.defn(self,"$write",function(string){var self=this;self.write_proc(string);return string.$size()});self.$attr_accessor("sync");(function($base){var self=$module($base,"Writable");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$<<",function(string){var self=this;self.$write(string);return self});Opal.defn(self,"$print",function(){var $a,$b,TMP_1,self=this;if($gvars[","]==null)$gvars[","]=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}self.$write(($a=($b=args).$map,$a.$$p=(TMP_1=function(arg){var self=TMP_1.$$s||this;if(arg==null)arg=nil;return self.$String(arg)},TMP_1.$$s=self,TMP_1),$a).call($b).$join($gvars[","]));return nil});Opal.defn(self,"$puts",function(){var $a,$b,TMP_2,self=this,newline=nil;if($gvars["/"]==null)$gvars["/"]=nil;var array_size=arguments.length-0;if(array_size<0)array_size=0;var args=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){args[arg_index]=arguments[arg_index+0]}newline=$gvars["/"];if(($a=args["$empty?"]())!==nil&&(!$a.$$is_boolean||$a==true)){self.$write($gvars["/"])}else{self.$write(($a=($b=args).$map,$a.$$p=(TMP_2=function(arg){var self=TMP_2.$$s||this;if(arg==null)arg=nil;return self.$String(arg).$chomp()},TMP_2.$$s=self,TMP_2),$a).call($b).$concat([nil]).$join(newline))}return nil})})($scope.base);return function($base){var self=$module($base,"Readable");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$readbyte",function(){var self=this;return self.$getbyte()});Opal.defn(self,"$readchar",function(){var self=this;return self.$getc()});Opal.defn(self,"$readline",function(sep){var self=this;if($gvars["/"]==null)$gvars["/"]=nil;if(sep==null){sep=$gvars["/"]}return self.$raise($scope.get("NotImplementedError"))});Opal.defn(self,"$readpartial",function(integer,outbuf){var self=this;if(outbuf==null){outbuf=nil}return self.$raise($scope.get("NotImplementedError"))})}($scope.base)})($scope.base,null);Opal.cdecl($scope,"STDERR",$gvars.stderr=$scope.get("IO").$new());Opal.cdecl($scope,"STDIN",$gvars.stdin=$scope.get("IO").$new());Opal.cdecl($scope,"STDOUT",$gvars.stdout=$scope.get("IO").$new());$a=[typeof process==="object"?function(s){process.stdout.write(s)}:function(s){console.log(s)}],$b=$gvars.stdout,$b["$write_proc="].apply($b,$a),$a[$a.length-1];$a=[typeof process==="object"?function(s){process.stderr.write(s)}:function(s){console.warn(s)}],$b=$gvars.stderr,$b["$write_proc="].apply($b,$a),$a[$a.length-1];$gvars.stdout.$extend($scope.get("IO").$$scope.get("Writable"));return $gvars.stderr.$extend($scope.get("IO").$$scope.get("Writable"))};Opal.modules["corelib/main"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice;Opal.add_stubs(["$include"]);Opal.defs(self,"$to_s",function(){var self=this;return"main"});return(Opal.defs(self,"$include",function(mod){var self=this;return $scope.get("Object").$include(mod)}),nil)&&"include"};Opal.modules["corelib/dir"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$[]"]);return function($base,$super){function $Dir(){}var self=$Dir=$klass($base,$super,"Dir",$Dir);var def=self.$$proto,$scope=self.$$scope;return function(self){var $scope=self.$$scope,def=self.$$proto,TMP_1;Opal.defn(self,"$chdir",TMP_1=function(dir){var $a,self=this,$iter=TMP_1.$$p,$yield=$iter||nil,prev_cwd=nil;TMP_1.$$p=null;try{prev_cwd=Opal.current_dir;Opal.current_dir=dir;return $a=Opal.yieldX($yield,[]),$a===$breaker?$a:$a}finally{Opal.current_dir=prev_cwd}});Opal.defn(self,"$pwd",function(){var self=this;return Opal.current_dir||"."});Opal.alias(self,"getwd","pwd");return(Opal.defn(self,"$home",function(){var $a,self=this;return($a=$scope.get("ENV")["$[]"]("HOME"))!==false&&$a!==nil?$a:"."}),nil)&&"home"}(Opal.get_singleton_class(self))}($scope.base,null)};Opal.modules["corelib/file"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$range=Opal.range;Opal.add_stubs(["$join","$compact","$split","$==","$first","$[]=","$home","$each","$pop","$<<","$[]","$gsub","$find","$=~"]);return function($base,$super){function $File(){}var self=$File=$klass($base,$super,"File",$File);var def=self.$$proto,$scope=self.$$scope;Opal.cdecl($scope,"Separator",Opal.cdecl($scope,"SEPARATOR","/"));Opal.cdecl($scope,"ALT_SEPARATOR",nil);Opal.cdecl($scope,"PATH_SEPARATOR",":");return function(self){var $scope=self.$$scope,def=self.$$proto;Opal.defn(self,"$expand_path",function(path,basedir){var $a,$b,TMP_1,self=this,parts=nil,new_parts=nil;if(basedir==null){basedir=nil}path=[basedir,path].$compact().$join($scope.get("SEPARATOR"));parts=path.$split($scope.get("SEPARATOR"));new_parts=[];if(parts.$first()["$=="]("~")){parts["$[]="](0,$scope.get("Dir").$home())}($a=($b=parts).$each,$a.$$p=(TMP_1=function(part){var self=TMP_1.$$s||this;if(part==null)part=nil;if(part["$=="]("..")){return new_parts.$pop()}else{return new_parts["$<<"](part)}},TMP_1.$$s=self,TMP_1),$a).call($b);return new_parts.$join($scope.get("SEPARATOR"))});Opal.alias(self,"realpath","expand_path");Opal.defn(self,"$dirname",function(path){var self=this;return self.$split(path)["$[]"]($range(0,-2,false))});Opal.defn(self,"$basename",function(path){var self=this;return self.$split(path)["$[]"](-1)});Opal.defn(self,"$exist?",function(path){var self=this;return Opal.modules[path]!=null});Opal.alias(self,"exists?","exist?");Opal.defn(self,"$directory?",function(path){var $a,$b,TMP_2,self=this,files=nil,file=nil;files=[];for(var key in Opal.modules){files.push(key)}path=path.$gsub(new RegExp("(^."+$scope.get("SEPARATOR")+"+|"+$scope.get("SEPARATOR")+"+$)"));file=($a=($b=files).$find,$a.$$p=(TMP_2=function(file){var self=TMP_2.$$s||this;if(file==null)file=nil;return file["$=~"](new RegExp("^"+path))},TMP_2.$$s=self,TMP_2),$a).call($b);return file});Opal.defn(self,"$join",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var paths=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){paths[arg_index]=arguments[arg_index+0]}return paths.$join($scope.get("SEPARATOR")).$gsub(new RegExp(""+$scope.get("SEPARATOR")+"+"),$scope.get("SEPARATOR"))});return(Opal.defn(self,"$split",function(path){var self=this;return path.$split($scope.get("SEPARATOR"))}),nil)&&"split"}(Opal.get_singleton_class(self))}($scope.base,$scope.get("IO"))};Opal.modules["corelib/process"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass;Opal.add_stubs(["$to_f","$now","$new"]);(function($base,$super){function $Process(){}var self=$Process=$klass($base,$super,"Process",$Process);var def=self.$$proto,$scope=self.$$scope;Opal.cdecl($scope,"CLOCK_REALTIME",0);Opal.cdecl($scope,"CLOCK_MONOTONIC",1);Opal.defs(self,"$pid",function(){var self=this;return 0});Opal.defs(self,"$times",function(){var self=this,t=nil;t=$scope.get("Time").$now().$to_f();return $scope.get("Benchmark").$$scope.get("Tms").$new(t,t,t,t,t)});return(Opal.defs(self,"$clock_gettime",function(clock_id,unit){var self=this;if(unit==null){unit=nil}return $scope.get("Time").$now().$to_f()}),nil)&&"clock_gettime"})($scope.base,null);(function($base,$super){function $Signal(){}var self=$Signal=$klass($base,$super,"Signal",$Signal);var def=self.$$proto,$scope=self.$$scope;return(Opal.defs(self,"$trap",function(){var self=this;return nil}),nil)&&"trap"})($scope.base,null);return function($base,$super){function $GC(){}var self=$GC=$klass($base,$super,"GC",$GC);var def=self.$$proto,$scope=self.$$scope;return(Opal.defs(self,"$start",function(){var self=this;return nil}),nil)&&"start"}($scope.base,null)};Opal.modules["corelib/unsupported"]=function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$module=Opal.module;Opal.add_stubs(["$warn","$raise","$%","$module_function"]);var warnings={};function warn(string){if(warnings[string]){return}warnings[string]=true;self.$warn(string)}(function($base,$super){function $String(){}var self=$String=$klass($base,$super,"String",$String);var def=self.$$proto,$scope=self.$$scope;var ERROR="String#%s not supported. Mutable String methods are not supported in Opal.";Opal.defn(self,"$<<",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("<<"))});Opal.defn(self,"$capitalize!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("capitalize!"))});Opal.defn(self,"$chomp!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("chomp!"))});Opal.defn(self,"$chop!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("chop!"))});Opal.defn(self,"$downcase!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("downcase!"))});Opal.defn(self,"$gsub!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("gsub!"))});Opal.defn(self,"$lstrip!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("lstrip!"))});Opal.defn(self,"$next!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("next!"))});Opal.defn(self,"$reverse!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("reverse!"))});Opal.defn(self,"$slice!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("slice!"))});Opal.defn(self,"$squeeze!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("squeeze!"))});Opal.defn(self,"$strip!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("strip!"))});Opal.defn(self,"$sub!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("sub!"))});Opal.defn(self,"$succ!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("succ!"))});Opal.defn(self,"$swapcase!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("swapcase!"))});Opal.defn(self,"$tr!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("tr!"))});Opal.defn(self,"$tr_s!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("tr_s!"))});return(Opal.defn(self,"$upcase!",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR["$%"]("upcase!"))}),nil)&&"upcase!"})($scope.base,null);(function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;var ERROR="Object freezing is not supported by Opal";Opal.defn(self,"$freeze",function(){var $a,self=this;if(($a=OPAL_CONFIG.freezing)!==nil&&(!$a.$$is_boolean||$a==true)){warn(ERROR)}else{self.$raise($scope.get("NotImplementedError"),ERROR)}return self});Opal.defn(self,"$frozen?",function(){var $a,self=this;if(($a=OPAL_CONFIG.freezing)!==nil&&(!$a.$$is_boolean||$a==true)){warn(ERROR)}else{self.$raise($scope.get("NotImplementedError"),ERROR)}return false})})($scope.base);(function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;var ERROR="Object tainting is not supported by Opal";Opal.defn(self,"$taint",function(){var $a,self=this;if(($a=OPAL_CONFIG.tainting)!==nil&&(!$a.$$is_boolean||$a==true)){warn(ERROR)}else{self.$raise($scope.get("NotImplementedError"),ERROR)}return self});Opal.defn(self,"$untaint",function(){var $a,self=this;if(($a=OPAL_CONFIG.tainting)!==nil&&(!$a.$$is_boolean||$a==true)){warn(ERROR)}else{self.$raise($scope.get("NotImplementedError"),ERROR)}return self});Opal.defn(self,"$tainted?",function(){var $a,self=this;if(($a=OPAL_CONFIG.tainting)!==nil&&(!$a.$$is_boolean||$a==true)){warn(ERROR)}else{self.$raise($scope.get("NotImplementedError"),ERROR)}return false})})($scope.base);(function($base){var self=$module($base,"Marshal");var def=self.$$proto,$scope=self.$$scope;var ERROR="Marshalling is not supported by Opal";self.$module_function();Opal.defn(self,"$dump",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR)});Opal.defn(self,"$load",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR)});Opal.defn(self,"$restore",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),ERROR)})})($scope.base);(function($base,$super){function $Module(){}var self=$Module=$klass($base,$super,"Module",$Module);var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$public",function(){var self=this;var array_size=arguments.length-0;if(array_size<0)array_size=0;var methods=new Array(array_size);for(var arg_index=0;arg_index<array_size;arg_index++){methods[arg_index]=arguments[arg_index+0]}if(methods.length===0){self.$$module_function=false}return nil});Opal.alias(self,"private","public");Opal.alias(self,"protected","public");Opal.alias(self,"nesting","public");Opal.defn(self,"$private_class_method",function(){var self=this;return self});Opal.alias(self,"public_class_method","private_class_method");Opal.defn(self,"$private_method_defined?",function(obj){var self=this;return false});Opal.defn(self,"$private_constant",function(){var self=this;return nil});Opal.alias(self,"protected_method_defined?","private_method_defined?");Opal.alias(self,"public_instance_methods","instance_methods");return Opal.alias(self,"public_method_defined?","method_defined?")})($scope.base,null);(function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$private_methods",function(){var self=this;return[]});Opal.alias(self,"private_instance_methods","private_methods")})($scope.base);return function($base){var self=$module($base,"Kernel");var def=self.$$proto,$scope=self.$$scope;Opal.defn(self,"$eval",function(){var self=this;return self.$raise($scope.get("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+$scope.get("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))})}($scope.base)};(function(Opal){Opal.dynamic_require_severity="warning";var OPAL_CONFIG={method_missing:true,arity_check:false,freezing:true,tainting:true};var self=Opal.top,$scope=Opal,nil=Opal.nil,$breaker=Opal.breaker,$slice=Opal.slice;Opal.add_stubs(["$require"]);self.$require("opal/base");self.$require("opal/mini");self.$require("corelib/array/inheritance");self.$require("corelib/string/inheritance");self.$require("corelib/string/encoding");self.$require("corelib/math");self.$require("corelib/complex");self.$require("corelib/rational");self.$require("corelib/time");self.$require("corelib/struct");self.$require("corelib/io");self.$require("corelib/main");self.$require("corelib/dir");self.$require("corelib/file");self.$require("corelib/process");return self.$require("corelib/unsupported")})(Opal); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
Dir.chdir __dir__ | |
def compile | |
puts "Compiling at #{Time.now}" | |
`opal --compile --no-opal --no-method-missing game.rb > game.js` | |
end | |
compile | |
previous = File.stat 'game.rb' | |
loop do | |
current = File.stat 'game.rb' | |
if previous.mtime < current.mtime | |
previous = current | |
compile | |
else | |
sleep 0.1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment