diff --git a/releases/v1.0.1/index.html b/releases/v1.0.1/index.html
new file mode 100644
index 00000000..b8023d1c
--- /dev/null
+++ b/releases/v1.0.1/index.html
@@ -0,0 +1,14 @@
+
+
+
+
+ Scatan
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/releases/v1.0.1/res/img/Catan-Game.png b/releases/v1.0.1/res/img/Catan-Game.png
new file mode 100644
index 00000000..01ebf87f
Binary files /dev/null and b/releases/v1.0.1/res/img/Catan-Game.png differ
diff --git a/releases/v1.0.1/res/img/background.png b/releases/v1.0.1/res/img/background.png
new file mode 100644
index 00000000..f02a5638
Binary files /dev/null and b/releases/v1.0.1/res/img/background.png differ
diff --git a/releases/v1.0.1/res/img/backgroundBlurred.jpg b/releases/v1.0.1/res/img/backgroundBlurred.jpg
new file mode 100644
index 00000000..90864520
Binary files /dev/null and b/releases/v1.0.1/res/img/backgroundBlurred.jpg differ
diff --git a/releases/v1.0.1/res/img/cards/LargestArmy.jpg b/releases/v1.0.1/res/img/cards/LargestArmy.jpg
new file mode 100644
index 00000000..0abeb19c
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/LargestArmy.jpg differ
diff --git a/releases/v1.0.1/res/img/cards/RoadBuilder.jpg b/releases/v1.0.1/res/img/cards/RoadBuilder.jpg
new file mode 100644
index 00000000..7e5b82cd
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/RoadBuilder.jpg differ
diff --git a/releases/v1.0.1/res/img/cards/development/knight.png b/releases/v1.0.1/res/img/cards/development/knight.png
new file mode 100644
index 00000000..9682d5ce
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/development/knight.png differ
diff --git a/releases/v1.0.1/res/img/cards/development/monopoly.png b/releases/v1.0.1/res/img/cards/development/monopoly.png
new file mode 100644
index 00000000..6e6745f6
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/development/monopoly.png differ
diff --git a/releases/v1.0.1/res/img/cards/development/road-building.png b/releases/v1.0.1/res/img/cards/development/road-building.png
new file mode 100644
index 00000000..356564be
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/development/road-building.png differ
diff --git a/releases/v1.0.1/res/img/cards/development/victory-point.png b/releases/v1.0.1/res/img/cards/development/victory-point.png
new file mode 100644
index 00000000..e57e88aa
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/development/victory-point.png differ
diff --git a/releases/v1.0.1/res/img/cards/development/year-of-plenty.png b/releases/v1.0.1/res/img/cards/development/year-of-plenty.png
new file mode 100644
index 00000000..bd99a4ee
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/development/year-of-plenty.png differ
diff --git a/releases/v1.0.1/res/img/cards/resource/clay.jpg b/releases/v1.0.1/res/img/cards/resource/clay.jpg
new file mode 100644
index 00000000..059ea252
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/resource/clay.jpg differ
diff --git a/releases/v1.0.1/res/img/cards/resource/ore.jpg b/releases/v1.0.1/res/img/cards/resource/ore.jpg
new file mode 100644
index 00000000..1c740e73
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/resource/ore.jpg differ
diff --git a/releases/v1.0.1/res/img/cards/resource/sheep.jpg b/releases/v1.0.1/res/img/cards/resource/sheep.jpg
new file mode 100644
index 00000000..8d024c21
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/resource/sheep.jpg differ
diff --git a/releases/v1.0.1/res/img/cards/resource/wheat.jpg b/releases/v1.0.1/res/img/cards/resource/wheat.jpg
new file mode 100644
index 00000000..86c81bd4
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/resource/wheat.jpg differ
diff --git a/releases/v1.0.1/res/img/cards/resource/wood.jpg b/releases/v1.0.1/res/img/cards/resource/wood.jpg
new file mode 100644
index 00000000..f1107ba1
Binary files /dev/null and b/releases/v1.0.1/res/img/cards/resource/wood.jpg differ
diff --git a/releases/v1.0.1/res/img/dice/1.png b/releases/v1.0.1/res/img/dice/1.png
new file mode 100644
index 00000000..9bbb6446
Binary files /dev/null and b/releases/v1.0.1/res/img/dice/1.png differ
diff --git a/releases/v1.0.1/res/img/dice/2.png b/releases/v1.0.1/res/img/dice/2.png
new file mode 100644
index 00000000..d3d974cd
Binary files /dev/null and b/releases/v1.0.1/res/img/dice/2.png differ
diff --git a/releases/v1.0.1/res/img/dice/3.png b/releases/v1.0.1/res/img/dice/3.png
new file mode 100644
index 00000000..13abd551
Binary files /dev/null and b/releases/v1.0.1/res/img/dice/3.png differ
diff --git a/releases/v1.0.1/res/img/dice/4.png b/releases/v1.0.1/res/img/dice/4.png
new file mode 100644
index 00000000..de5a63de
Binary files /dev/null and b/releases/v1.0.1/res/img/dice/4.png differ
diff --git a/releases/v1.0.1/res/img/dice/5.png b/releases/v1.0.1/res/img/dice/5.png
new file mode 100644
index 00000000..9fcf80cf
Binary files /dev/null and b/releases/v1.0.1/res/img/dice/5.png differ
diff --git a/releases/v1.0.1/res/img/dice/6.png b/releases/v1.0.1/res/img/dice/6.png
new file mode 100644
index 00000000..6ba963af
Binary files /dev/null and b/releases/v1.0.1/res/img/dice/6.png differ
diff --git a/releases/v1.0.1/res/img/hexagonal/clay.jpg b/releases/v1.0.1/res/img/hexagonal/clay.jpg
new file mode 100644
index 00000000..b34b9ca8
Binary files /dev/null and b/releases/v1.0.1/res/img/hexagonal/clay.jpg differ
diff --git a/releases/v1.0.1/res/img/hexagonal/desert.jpg b/releases/v1.0.1/res/img/hexagonal/desert.jpg
new file mode 100644
index 00000000..3d19860f
Binary files /dev/null and b/releases/v1.0.1/res/img/hexagonal/desert.jpg differ
diff --git a/releases/v1.0.1/res/img/hexagonal/ore.jpg b/releases/v1.0.1/res/img/hexagonal/ore.jpg
new file mode 100644
index 00000000..15af080c
Binary files /dev/null and b/releases/v1.0.1/res/img/hexagonal/ore.jpg differ
diff --git a/releases/v1.0.1/res/img/hexagonal/sheep.jpg b/releases/v1.0.1/res/img/hexagonal/sheep.jpg
new file mode 100644
index 00000000..c6d5c842
Binary files /dev/null and b/releases/v1.0.1/res/img/hexagonal/sheep.jpg differ
diff --git a/releases/v1.0.1/res/img/hexagonal/water.jpg b/releases/v1.0.1/res/img/hexagonal/water.jpg
new file mode 100644
index 00000000..0c8b81eb
Binary files /dev/null and b/releases/v1.0.1/res/img/hexagonal/water.jpg differ
diff --git a/releases/v1.0.1/res/img/hexagonal/wheat.jpg b/releases/v1.0.1/res/img/hexagonal/wheat.jpg
new file mode 100644
index 00000000..3cb1a639
Binary files /dev/null and b/releases/v1.0.1/res/img/hexagonal/wheat.jpg differ
diff --git a/releases/v1.0.1/res/img/hexagonal/wood.jpg b/releases/v1.0.1/res/img/hexagonal/wood.jpg
new file mode 100644
index 00000000..2a779bb4
Binary files /dev/null and b/releases/v1.0.1/res/img/hexagonal/wood.jpg differ
diff --git a/releases/v1.0.1/res/img/logo.png b/releases/v1.0.1/res/img/logo.png
new file mode 100644
index 00000000..d49cf258
Binary files /dev/null and b/releases/v1.0.1/res/img/logo.png differ
diff --git a/releases/v1.0.1/res/img/node/cityblue.png b/releases/v1.0.1/res/img/node/cityblue.png
new file mode 100644
index 00000000..25f88502
Binary files /dev/null and b/releases/v1.0.1/res/img/node/cityblue.png differ
diff --git a/releases/v1.0.1/res/img/node/citygreen.png b/releases/v1.0.1/res/img/node/citygreen.png
new file mode 100644
index 00000000..072e2122
Binary files /dev/null and b/releases/v1.0.1/res/img/node/citygreen.png differ
diff --git a/releases/v1.0.1/res/img/node/cityred.png b/releases/v1.0.1/res/img/node/cityred.png
new file mode 100644
index 00000000..9dc9a8d9
Binary files /dev/null and b/releases/v1.0.1/res/img/node/cityred.png differ
diff --git a/releases/v1.0.1/res/img/node/cityyellow.png b/releases/v1.0.1/res/img/node/cityyellow.png
new file mode 100644
index 00000000..2e883594
Binary files /dev/null and b/releases/v1.0.1/res/img/node/cityyellow.png differ
diff --git a/releases/v1.0.1/res/img/node/houseblue.png b/releases/v1.0.1/res/img/node/houseblue.png
new file mode 100644
index 00000000..acd8cf94
Binary files /dev/null and b/releases/v1.0.1/res/img/node/houseblue.png differ
diff --git a/releases/v1.0.1/res/img/node/housegreen.png b/releases/v1.0.1/res/img/node/housegreen.png
new file mode 100644
index 00000000..e2bebe6f
Binary files /dev/null and b/releases/v1.0.1/res/img/node/housegreen.png differ
diff --git a/releases/v1.0.1/res/img/node/housered.png b/releases/v1.0.1/res/img/node/housered.png
new file mode 100644
index 00000000..78f0cb31
Binary files /dev/null and b/releases/v1.0.1/res/img/node/housered.png differ
diff --git a/releases/v1.0.1/res/img/node/houseyellow.png b/releases/v1.0.1/res/img/node/houseyellow.png
new file mode 100644
index 00000000..f58f9517
Binary files /dev/null and b/releases/v1.0.1/res/img/node/houseyellow.png differ
diff --git a/releases/v1.0.1/res/img/road/ninetyblue.png b/releases/v1.0.1/res/img/road/ninetyblue.png
new file mode 100644
index 00000000..33394410
Binary files /dev/null and b/releases/v1.0.1/res/img/road/ninetyblue.png differ
diff --git a/releases/v1.0.1/res/img/road/ninetygreen.png b/releases/v1.0.1/res/img/road/ninetygreen.png
new file mode 100644
index 00000000..9cd0582b
Binary files /dev/null and b/releases/v1.0.1/res/img/road/ninetygreen.png differ
diff --git a/releases/v1.0.1/res/img/road/ninetyred.png b/releases/v1.0.1/res/img/road/ninetyred.png
new file mode 100644
index 00000000..29306957
Binary files /dev/null and b/releases/v1.0.1/res/img/road/ninetyred.png differ
diff --git a/releases/v1.0.1/res/img/road/ninetyyellow.png b/releases/v1.0.1/res/img/road/ninetyyellow.png
new file mode 100644
index 00000000..212bae06
Binary files /dev/null and b/releases/v1.0.1/res/img/road/ninetyyellow.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtyNegblue.png b/releases/v1.0.1/res/img/road/thirtyNegblue.png
new file mode 100644
index 00000000..0582dd37
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtyNegblue.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtyNeggreen.png b/releases/v1.0.1/res/img/road/thirtyNeggreen.png
new file mode 100644
index 00000000..7c7191ff
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtyNeggreen.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtyNegred.png b/releases/v1.0.1/res/img/road/thirtyNegred.png
new file mode 100644
index 00000000..c74e333a
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtyNegred.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtyNegyellow.png b/releases/v1.0.1/res/img/road/thirtyNegyellow.png
new file mode 100644
index 00000000..85394fd2
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtyNegyellow.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtyblue.png b/releases/v1.0.1/res/img/road/thirtyblue.png
new file mode 100644
index 00000000..02dadd19
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtyblue.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtygreen.png b/releases/v1.0.1/res/img/road/thirtygreen.png
new file mode 100644
index 00000000..e1cf3971
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtygreen.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtyred.png b/releases/v1.0.1/res/img/road/thirtyred.png
new file mode 100644
index 00000000..c4d6d11c
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtyred.png differ
diff --git a/releases/v1.0.1/res/img/road/thirtyyellow.png b/releases/v1.0.1/res/img/road/thirtyyellow.png
new file mode 100644
index 00000000..a72deab8
Binary files /dev/null and b/releases/v1.0.1/res/img/road/thirtyyellow.png differ
diff --git a/releases/v1.0.1/res/img/robber.png b/releases/v1.0.1/res/img/robber.png
new file mode 100644
index 00000000..9498b0c9
Binary files /dev/null and b/releases/v1.0.1/res/img/robber.png differ
diff --git a/releases/v1.0.1/style.css b/releases/v1.0.1/style.css
new file mode 100644
index 00000000..8d9db771
--- /dev/null
+++ b/releases/v1.0.1/style.css
@@ -0,0 +1,274 @@
+body {
+ /* Set the background image URL */
+ background-image: url('res/img/backgroundBlurred.jpg');
+
+ /* Set the background size to cover the entire body */
+ background-size: cover;
+
+ --hover: #f2f2f2;
+ --road: #363636;
+ --button-color: #f2f2f2;
+
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+}
+
+/* Game */
+.spot {
+ /* fill: var(--spot); */
+ opacity: 0;
+}
+
+.spot:hover,
+.road-center:hover {
+ fill: var(--hover);
+ transition: all 0.2s ease-out;
+ opacity: 0.4;
+}
+
+.road {
+ stroke: var(--road);
+ stroke-width: 10px;
+ stroke-linecap: round;
+}
+
+.road-center {
+ fill: white;
+ opacity: 0;
+}
+
+.player-1 {
+ fill: #ff0000;
+ stroke: #ff0000;
+ opacity: 1;
+}
+
+.player-2 {
+ fill: #0000ff;
+ stroke: #0000ff;
+ opacity: 1;
+}
+
+.player-3 {
+ fill: #00ff00;
+ stroke: #00ff00;
+ opacity: 1;
+}
+
+.player-4 {
+ fill: #ffff00;
+ stroke: #ffff00;
+ opacity: 1;
+}
+
+.robber {
+ stroke: rgb(255, 70, 70);
+ opacity: 0.7;
+ stroke-width: 10px;
+}
+
+.hexagon-center-circle {
+ fill: white;
+}
+
+.hexagon-center-number,
+.spot-text {
+ fill: black;
+ text-anchor: middle;
+ dominant-baseline: central;
+ font-family: sans-serif;
+ font-weight: bold;
+}
+
+/* end Game */
+
+.home-view {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ margin-left: auto;
+ margin-right: auto;
+ width: 80%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+}
+
+.home-title {
+ background-position-x: center;
+ background-image: url("res/img/logo.png");
+ background-size: contain;
+ background-repeat: no-repeat;
+ width: 100%;
+ height: 20em;
+}
+
+/* Home
+ display all menu item vertically
+*/
+.home-menu {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ display: flex;
+ width: 70%;
+ height: auto;
+ flex-direction: column;
+ gap: 1em;
+}
+
+.home-menu-button {
+ flex-grow: 1;
+ font-size: large;
+ font-weight: bold;
+ height: 3em;
+ border-radius: 1em;
+ background-color: var(--button-color);
+}
+
+/* SetUp */
+.setup-view {
+ display: flex;
+ flex-direction: column;
+}
+
+.setup-view>* {
+ display: inline-block;
+ width: fit-content;
+ margin: auto;
+}
+
+.setup-title {
+ font-size: 5em;
+ font-weight: bold;
+ margin-top: 1em;
+ background-color: rgba(159, 109, 23, 0.5);
+ padding: 0.3em 0.6em;
+ border-radius: 1em;
+ box-shadow: 0 0 0.5em 0.2em rgba(159, 109, 23, 0.65);
+}
+
+.setup-menu-combobox {
+ margin-top: 2em;
+ width: 50%;
+ font-size: 1.2em;
+ width: fit-content;
+}
+
+.setup-menu-textbox {
+ margin-top: 1em;
+ font-size: 1.2em;
+}
+
+.setup-menu-button {
+ margin-top: 1em;
+ width: 50%;
+ height: 3em;
+ font-size: large;
+ font-weight: bold;
+ border-radius: 1em;
+ background-color: var(--button-color);
+}
+
+.setup-menu-button:first-of-type {
+ margin-top: 2.5em;
+}
+
+/* Game */
+.game-view-left-tab {
+ display: inline-flex;
+ flex-direction: column;
+ width: 25%;
+ margin-top: 5em;
+ background-color: white;
+ border-radius: 2em;
+ vertical-align: top;
+ padding: 2em;
+}
+
+.game-view-game-tab {
+ text-align: center;
+ display: inline-block;
+ width: 50%;
+ margin-right: auto;
+}
+
+.game-view-player {
+ font-size: 1.5em;
+}
+.game-view-phase {
+ font-size: 1em;
+}
+.game-view-step {
+ font-size: 1em;
+}
+.game-view-buttons {
+ margin-top: 1em;
+ display: flex;
+ justify-content: center;
+ gap: 1em;
+}
+
+.game-view-button {
+ width: 25%;
+ height: 3em;
+ font-size: 1em;
+ font-weight: bold;
+ border-radius: 1em;
+}
+
+.roll-dice-button {
+ background-color: #b5ffa0;
+}
+
+.end-turn-button {
+ background-color: #fb9b9b;
+}
+
+.game-view-moves {
+ margin-top: 1em;
+ font-size: 1em;
+}
+
+.game-view-move {
+ width: fit-content;
+ margin-top: 0.8em;
+ padding: 0.3em 0.6em;
+ font-size: 1em;
+ text-align: center;
+ background-color: #ffc977;
+ border-radius: 1em;
+ box-shadow: 0 0 0.5em 0.2em rgba(0, 0, 0, 0.65);
+}
+
+/* Card */
+.game-view-card-container {
+ display: flex;
+ justify-content: space-between;
+}
+
+.game-view-child-container {
+ display: flex;
+ gap: 1em;
+}
+
+.game-view-card-item {
+ width: 8vw;
+ background-color: #ffc977;
+ border-radius: 1em;
+ box-shadow: 0 0 0.5em 0.2em rgba(0, 0, 0, 0.65);
+
+}
+
+.game-view-card {
+ width: 90%;
+ border-radius: 1.5em;
+ padding: 0.5em 5%;
+}
+
+
+.game-view-card-count {
+ font-size: 2em;
+ font-weight: bold;
+ text-align: center;
+ padding-top: 0.5em;
+}
\ No newline at end of file
diff --git a/releases/v1.0.1/target/.history3 b/releases/v1.0.1/target/.history3
new file mode 100644
index 00000000..217468e2
--- /dev/null
+++ b/releases/v1.0.1/target/.history3
@@ -0,0 +1,62 @@
+1695751620774:~test
+1695756600244:exit
+1696005235875:~test
+1696006981176:~testOnly *StateWithScoresTest
+1696008325308:~test
+1696010394595:~fastLinkJS
+1696091715687:test
+1696091786244:~fastLinkJS
+1696092333978:~test
+1696149970419:~fastLinkJS
+1696260327002:~test
+1696260405667:exit
+1696516964182:~test
+1696518510494:[B
+1696518513835:~test
+1696518576144:fastLinkJS
+1696689368191:~fastLinkJS
+1696700262859:sbt test
+1696700266140:test
+1696700286666:fastLinkJS
+1696700324081:~fastLinkJS
+1696760452456:reload
+1696760458236:sbt compile
+1696760468276:compile
+1696760533895:reload
+1696760537789:compile
+1696760542667:fastLinkJS
+1696760619599:reload
+1696760624508:fastLinkJS
+1696760758348:~fastLinkJS
+1696761520912:reload
+1696761525017:fastLinkJS
+1696761568463:reload
+1696761571643:fastLinkJS
+1696761684225:reload
+1696761688061:fastLinkJS
+1696761947385:reload
+1696761952087:fastLinkJS
+1696761998559:reload
+1696762003522:fastLinkJS
+1696762052244:reload
+1696762054891:fastLinkJS
+1696762157899:reload
+1696762161457:fastLinkJS
+1696762178819:reload
+1696762182392:fastLinkJS
+1696762345929:reload
+1696762347368:fastLinkJS
+1696762375321:exit
+1696770568886:fastLinkJS
+1696770906971:compile
+1696770912626:refresh
+1696770914478:reload
+1696771977041:fastLinkJS
+1696773209154:test
+1696783963569:fastLinkJS
+1696783975331:compile
+1696783977428:reload
+1696783983255:compile
+1696784837801:fastLinkJS
+1696785341339:compile
+1696785933648:fastLinkJS
diff --git a/releases/v1.0.1/target/scala-3.3.0/scatan-fastopt/main.js b/releases/v1.0.1/target/scala-3.3.0/scatan-fastopt/main.js
new file mode 100644
index 00000000..beabae1e
--- /dev/null
+++ b/releases/v1.0.1/target/scala-3.3.0/scatan-fastopt/main.js
@@ -0,0 +1,50462 @@
+(function(){
+'use strict';
+var $linkingInfo = Object.freeze({
+ "esVersion": 6,
+ "assumingES6": true,
+ "productionMode": false,
+ "linkerVersion": "1.13.2",
+ "fileLevelThis": this
+});
+var $getOwnPropertyDescriptors = (Object.getOwnPropertyDescriptors || (() => {
+ var ownKeysFun;
+ if ((((typeof Reflect) !== "undefined") && Reflect.ownKeys)) {
+ ownKeysFun = Reflect.ownKeys
+ } else {
+ var getOwnPropertySymbols = (Object.getOwnPropertySymbols || ((o) => []));
+ ownKeysFun = ((o) => Object.getOwnPropertyNames(o).concat(getOwnPropertySymbols(o)))
+ };
+ return ((o) => {
+ var ownKeys = ownKeysFun(o);
+ var descriptors = {};
+ var len = (ownKeys.length | 0);
+ var i = 0;
+ while ((i !== len)) {
+ var key = ownKeys[i];
+ Object.defineProperty(descriptors, key, {
+ "configurable": true,
+ "enumerable": true,
+ "writable": true,
+ "value": Object.getOwnPropertyDescriptor(o, key)
+ });
+ i = ((i + 1) | 0)
+ };
+ return descriptors
+ })
+})());
+var $L0;
+function $propertyName(arg0) {
+ for (var prop in arg0) {
+ return prop
+ }
+}
+function $Char(c) {
+ this.c = c
+}
+$Char.prototype.toString = (function() {
+ return String.fromCharCode(this.c)
+});
+function $valueDescription(arg0) {
+ return (((typeof arg0) === "number") ? (((arg0 === 0) && ((1 / arg0) < 0)) ? "number(-0)" : (("number(" + arg0) + ")")) : ((arg0 instanceof $c_RTLong) ? "long" : ((arg0 instanceof $Char) ? "char" : ((!(!(arg0 && arg0.$classData))) ? arg0.$classData.name : (typeof arg0)))))
+}
+function $throwClassCastException(arg0, arg1) {
+ throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError(new $c_jl_ClassCastException((($valueDescription(arg0) + " cannot be cast to ") + arg1)))
+}
+function $throwArrayCastException(arg0, arg1, arg2) {
+ while ((--arg2)) {
+ arg1 = ("[" + arg1)
+ };
+ $throwClassCastException(arg0, arg1)
+}
+function $throwArrayIndexOutOfBoundsException(arg0) {
+ throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError($ct_jl_ArrayIndexOutOfBoundsException__T__(new $c_jl_ArrayIndexOutOfBoundsException(), ((arg0 === null) ? null : ("" + arg0))))
+}
+function $throwArrayStoreException(arg0) {
+ throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError(new $c_jl_ArrayStoreException(((arg0 === null) ? null : $valueDescription(arg0))))
+}
+function $throwNegativeArraySizeException() {
+ throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError(new $c_jl_NegativeArraySizeException())
+}
+function $throwNullPointerException() {
+ throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError(new $c_jl_NullPointerException())
+}
+function $n(arg0) {
+ if ((arg0 === null)) {
+ $throwNullPointerException()
+ };
+ return arg0
+}
+function $noIsInstance(arg0) {
+ throw new TypeError("Cannot call isInstance() on a Class representing a JS trait/object")
+}
+function $newArrayObject(arg0, arg1) {
+ return $newArrayObjectInternal(arg0, arg1, 0)
+}
+function $newArrayObjectInternal(arg0, arg1, arg2) {
+ var result = new arg0.constr(arg1[arg2]);
+ if ((arg2 < (arg1.length - 1))) {
+ var subArrayClassData = arg0.componentData;
+ var subLengthIndex = (arg2 + 1);
+ var underlying = result.u;
+ for (var i = 0; (i < underlying.length); (i++)) {
+ underlying[i] = $newArrayObjectInternal(subArrayClassData, arg1, subLengthIndex)
+ }
+ };
+ return result
+}
+function $objectClone(arg0) {
+ return Object.create(Object.getPrototypeOf(arg0), $getOwnPropertyDescriptors(arg0))
+}
+function $objectOrArrayClone(arg0) {
+ return (arg0.$classData.isArrayClass ? arg0.clone__O() : $objectClone(arg0))
+}
+function $objectGetClass(arg0) {
+ switch ((typeof arg0)) {
+ case "string": {
+ return $d_T.getClassOf()
+ }
+ case "number": {
+ if ($isInt(arg0)) {
+ if ((((arg0 << 24) >> 24) === arg0)) {
+ return $d_jl_Byte.getClassOf()
+ } else if ((((arg0 << 16) >> 16) === arg0)) {
+ return $d_jl_Short.getClassOf()
+ } else {
+ return $d_jl_Integer.getClassOf()
+ }
+ } else if ($isFloat(arg0)) {
+ return $d_jl_Float.getClassOf()
+ } else {
+ return $d_jl_Double.getClassOf()
+ }
+ }
+ case "boolean": {
+ return $d_jl_Boolean.getClassOf()
+ }
+ case "undefined": {
+ return $d_jl_Void.getClassOf()
+ }
+ default: {
+ if ((arg0 === null)) {
+ $throwNullPointerException()
+ } else if ((arg0 instanceof $c_RTLong)) {
+ return $d_jl_Long.getClassOf()
+ } else if ((arg0 instanceof $Char)) {
+ return $d_jl_Character.getClassOf()
+ } else if ((!(!(arg0 && arg0.$classData)))) {
+ return arg0.$classData.getClassOf()
+ } else {
+ return null
+ }
+ }
+ }
+}
+function $objectClassName(arg0) {
+ switch ((typeof arg0)) {
+ case "string": {
+ return "java.lang.String"
+ }
+ case "number": {
+ if ($isInt(arg0)) {
+ if ((((arg0 << 24) >> 24) === arg0)) {
+ return "java.lang.Byte"
+ } else if ((((arg0 << 16) >> 16) === arg0)) {
+ return "java.lang.Short"
+ } else {
+ return "java.lang.Integer"
+ }
+ } else if ($isFloat(arg0)) {
+ return "java.lang.Float"
+ } else {
+ return "java.lang.Double"
+ }
+ }
+ case "boolean": {
+ return "java.lang.Boolean"
+ }
+ case "undefined": {
+ return "java.lang.Void"
+ }
+ default: {
+ if ((arg0 === null)) {
+ $throwNullPointerException()
+ } else if ((arg0 instanceof $c_RTLong)) {
+ return "java.lang.Long"
+ } else if ((arg0 instanceof $Char)) {
+ return "java.lang.Character"
+ } else if ((!(!(arg0 && arg0.$classData)))) {
+ return arg0.$classData.name
+ } else {
+ return $throwNullPointerException()
+ }
+ }
+ }
+}
+function $dp_codePointAt__I__I(instance, x0) {
+ if (((typeof instance) === "string")) {
+ return $f_T__codePointAt__I__I(instance, x0)
+ } else {
+ return instance.codePointAt__I__I(x0)
+ }
+}
+function $dp_equals__O__Z(instance, x0) {
+ switch ((typeof instance)) {
+ case "string": {
+ return $f_T__equals__O__Z(instance, x0)
+ }
+ case "number": {
+ return $f_jl_Double__equals__O__Z(instance, x0)
+ }
+ case "boolean": {
+ return $f_jl_Boolean__equals__O__Z(instance, x0)
+ }
+ case "undefined": {
+ return $f_jl_Void__equals__O__Z(instance, x0)
+ }
+ default: {
+ if (((!(!(instance && instance.$classData))) || (instance === null))) {
+ return instance.equals__O__Z(x0)
+ } else if ((instance instanceof $c_RTLong)) {
+ return $f_jl_Long__equals__O__Z(instance, x0)
+ } else if ((instance instanceof $Char)) {
+ return $f_jl_Character__equals__O__Z($uC(instance), x0)
+ } else {
+ return $c_O.prototype.equals__O__Z.call(instance, x0)
+ }
+ }
+ }
+}
+function $dp_getChars__I__I__AC__I__V(instance, x0, x1, x2, x3) {
+ if (((typeof instance) === "string")) {
+ return $f_T__getChars__I__I__AC__I__V(instance, x0, x1, x2, x3)
+ } else {
+ return instance.getChars__I__I__AC__I__V(x0, x1, x2, x3)
+ }
+}
+function $dp_hashCode__I(instance) {
+ switch ((typeof instance)) {
+ case "string": {
+ return $f_T__hashCode__I(instance)
+ }
+ case "number": {
+ return $f_jl_Double__hashCode__I(instance)
+ }
+ case "boolean": {
+ return $f_jl_Boolean__hashCode__I(instance)
+ }
+ case "undefined": {
+ return $f_jl_Void__hashCode__I(instance)
+ }
+ default: {
+ if (((!(!(instance && instance.$classData))) || (instance === null))) {
+ return instance.hashCode__I()
+ } else if ((instance instanceof $c_RTLong)) {
+ return $f_jl_Long__hashCode__I(instance)
+ } else if ((instance instanceof $Char)) {
+ return $f_jl_Character__hashCode__I($uC(instance))
+ } else {
+ return $c_O.prototype.hashCode__I.call(instance)
+ }
+ }
+ }
+}
+function $dp_indexOf__I__I(instance, x0) {
+ if (((typeof instance) === "string")) {
+ return $f_T__indexOf__I__I(instance, x0)
+ } else {
+ return instance.indexOf__I__I(x0)
+ }
+}
+function $dp_repeat__I__T(instance, x0) {
+ if (((typeof instance) === "string")) {
+ return $f_T__repeat__I__T(instance, x0)
+ } else {
+ return instance.repeat__I__T(x0)
+ }
+}
+function $dp_toString__T(instance) {
+ return ((instance === (void 0)) ? "undefined" : instance.toString())
+}
+function $intDiv(arg0, arg1) {
+ if ((arg1 === 0)) {
+ throw new $c_jl_ArithmeticException("/ by zero")
+ } else {
+ return ((arg0 / arg1) | 0)
+ }
+}
+function $intMod(arg0, arg1) {
+ if ((arg1 === 0)) {
+ throw new $c_jl_ArithmeticException("/ by zero")
+ } else {
+ return ((arg0 % arg1) | 0)
+ }
+}
+function $doubleToInt(arg0) {
+ return ((arg0 > 2147483647) ? 2147483647 : ((arg0 < (-2147483648)) ? (-2147483648) : (arg0 | 0)))
+}
+function $charAt(arg0, arg1) {
+ var r = arg0.charCodeAt(arg1);
+ if ((r !== r)) {
+ throw new $c_Lorg_scalajs_linker_runtime_UndefinedBehaviorError($ct_jl_StringIndexOutOfBoundsException__I__(new $c_jl_StringIndexOutOfBoundsException(), arg1))
+ } else {
+ return r
+ }
+}
+function $resolveSuperRef(arg0, arg1) {
+ var getPrototypeOf = Object.getPrototyeOf;
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ var superProto = arg0.prototype;
+ while ((superProto !== null)) {
+ var desc = getOwnPropertyDescriptor(superProto, arg1);
+ if ((desc !== (void 0))) {
+ return desc
+ };
+ superProto = getPrototypeOf(superProto)
+ }
+}
+function $superGet(arg0, arg1, arg2) {
+ var desc = $resolveSuperRef(arg0, arg2);
+ if ((desc !== (void 0))) {
+ var getter = desc.get;
+ return ((getter !== (void 0)) ? getter.call(arg1) : getter.value)
+ }
+}
+function $superSet(arg0, arg1, arg2, arg3) {
+ var desc = $resolveSuperRef(arg0, arg2);
+ if ((desc !== (void 0))) {
+ var setter = desc.set;
+ if ((setter !== (void 0))) {
+ setter.call(arg1, arg3);
+ return (void 0)
+ }
+ };
+ throw new TypeError((("super has no setter '" + arg2) + "'."))
+}
+function $arraycopyCheckBounds(arg0, arg1, arg2, arg3, arg4) {
+ if ((((((arg1 < 0) || (arg3 < 0)) || (arg4 < 0)) || (arg1 > ((arg0 - arg4) | 0))) || (arg3 > ((arg2 - arg4) | 0)))) {
+ $throwArrayIndexOutOfBoundsException(null)
+ }
+}
+function $arraycopyGeneric(arg0, arg1, arg2, arg3, arg4) {
+ $arraycopyCheckBounds(arg0.length, arg1, arg2.length, arg3, arg4);
+ if ((((arg0 !== arg2) || (arg3 < arg1)) || (((arg1 + arg4) | 0) < arg3))) {
+ for (var i = 0; (i < arg4); i = ((i + 1) | 0)) {
+ arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)]
+ }
+ } else {
+ for (var i = ((arg4 - 1) | 0); (i >= 0); i = ((i - 1) | 0)) {
+ arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)]
+ }
+ }
+}
+function $systemArraycopy(arg0, arg1, arg2, arg3, arg4) {
+ arg0.copyTo(arg1, arg2, arg3, arg4)
+}
+function $systemArraycopyRefs(arg0, arg1, arg2, arg3, arg4) {
+ if (arg2.$classData.isAssignableFrom(arg0.$classData)) {
+ $arraycopyGeneric(arg0.u, arg1, arg2.u, arg3, arg4)
+ } else {
+ var srcArray = arg0.u;
+ $arraycopyCheckBounds(srcArray.length, arg1, arg2.u.length, arg3, arg4);
+ for (var i = 0; (i < arg4); i = ((i + 1) | 0)) {
+ arg2.set(((arg3 + i) | 0), srcArray[((arg1 + i) | 0)])
+ }
+ }
+}
+function $systemArraycopyFull(arg0, arg1, arg2, arg3, arg4) {
+ var srcData = (arg0 && arg0.$classData);
+ if ((srcData === (arg2 && arg2.$classData))) {
+ if ((srcData && srcData.isArrayClass)) {
+ $systemArraycopy(arg0, arg1, arg2, arg3, arg4)
+ } else {
+ $throwArrayStoreException(null)
+ }
+ } else if (((arg0 instanceof $ac_O) && (arg2 instanceof $ac_O))) {
+ $systemArraycopyRefs(arg0, arg1, arg2, arg3, arg4)
+ } else {
+ $throwArrayStoreException(null)
+ }
+}
+var $lastIDHash = 0;
+var $idHashCodeMap = new WeakMap();
+function $systemIdentityHashCode(obj) {
+ switch ((typeof obj)) {
+ case "string": {
+ return $f_T__hashCode__I(obj)
+ }
+ case "number": {
+ return $f_jl_Double__hashCode__I(obj)
+ }
+ case "bigint": {
+ var biHash = 0;
+ if ((obj < BigInt(0))) {
+ obj = (~obj)
+ };
+ while ((obj !== BigInt(0))) {
+ biHash = (biHash ^ Number(BigInt.asIntN(32, obj)));
+ obj = (obj >> BigInt(32))
+ };
+ return biHash
+ }
+ case "boolean": {
+ return (obj ? 1231 : 1237)
+ }
+ case "undefined": {
+ return 0
+ }
+ case "symbol": {
+ var description = obj.description;
+ return ((description === (void 0)) ? 0 : $f_T__hashCode__I(description))
+ }
+ default: {
+ if ((obj === null)) {
+ return 0
+ } else {
+ var hash = $idHashCodeMap.get(obj);
+ if ((hash === (void 0))) {
+ hash = (($lastIDHash + 1) | 0);
+ $lastIDHash = hash;
+ $idHashCodeMap.set(obj, hash)
+ };
+ return hash
+ }
+ }
+ }
+}
+function $isByte(arg0) {
+ return ((((typeof arg0) === "number") && (((arg0 << 24) >> 24) === arg0)) && ((1 / arg0) !== (1 / (-0))))
+}
+function $isShort(arg0) {
+ return ((((typeof arg0) === "number") && (((arg0 << 16) >> 16) === arg0)) && ((1 / arg0) !== (1 / (-0))))
+}
+function $isInt(arg0) {
+ return ((((typeof arg0) === "number") && ((arg0 | 0) === arg0)) && ((1 / arg0) !== (1 / (-0))))
+}
+function $isFloat(arg0) {
+ return (((typeof arg0) === "number") && ((arg0 !== arg0) || (Math.fround(arg0) === arg0)))
+}
+function $bC(arg0) {
+ return new $Char(arg0)
+}
+var $bC0 = $bC(0);
+function $uV(arg0) {
+ return (((arg0 === (void 0)) || (arg0 === null)) ? (void 0) : $throwClassCastException(arg0, "java.lang.Void"))
+}
+function $uZ(arg0) {
+ return ((((typeof arg0) === "boolean") || (arg0 === null)) ? (!(!arg0)) : $throwClassCastException(arg0, "java.lang.Boolean"))
+}
+function $uC(arg0) {
+ return (((arg0 instanceof $Char) || (arg0 === null)) ? ((arg0 === null) ? 0 : arg0.c) : $throwClassCastException(arg0, "java.lang.Character"))
+}
+function $uB(arg0) {
+ return (($isByte(arg0) || (arg0 === null)) ? (arg0 | 0) : $throwClassCastException(arg0, "java.lang.Byte"))
+}
+function $uS(arg0) {
+ return (($isShort(arg0) || (arg0 === null)) ? (arg0 | 0) : $throwClassCastException(arg0, "java.lang.Short"))
+}
+function $uI(arg0) {
+ return (($isInt(arg0) || (arg0 === null)) ? (arg0 | 0) : $throwClassCastException(arg0, "java.lang.Integer"))
+}
+function $uJ(arg0) {
+ return (((arg0 instanceof $c_RTLong) || (arg0 === null)) ? ((arg0 === null) ? $L0 : arg0) : $throwClassCastException(arg0, "java.lang.Long"))
+}
+function $uF(arg0) {
+ return (($isFloat(arg0) || (arg0 === null)) ? (+arg0) : $throwClassCastException(arg0, "java.lang.Float"))
+}
+function $uD(arg0) {
+ return ((((typeof arg0) === "number") || (arg0 === null)) ? (+arg0) : $throwClassCastException(arg0, "java.lang.Double"))
+}
+function $uT(arg0) {
+ return ((((typeof arg0) === "string") || (arg0 === null)) ? ((arg0 === null) ? "" : arg0) : $throwClassCastException(arg0, "java.lang.String"))
+}
+function $ct_O__($thiz) {
+ return $thiz
+}
+/** @constructor */
+function $c_O() {
+ /**/
+}
+$c_O.prototype.constructor = $c_O;
+/** @constructor */
+function $h_O() {
+ /**/
+}
+$h_O.prototype = $c_O.prototype;
+$c_O.prototype.hashCode__I = (function() {
+ return $systemIdentityHashCode(this)
+});
+$c_O.prototype.equals__O__Z = (function(that) {
+ return (this === that)
+});
+$c_O.prototype.toString__T = (function() {
+ var i = this.hashCode__I();
+ return (($objectClassName(this) + "@") + $as_T($uD((i >>> 0.0)).toString(16)))
+});
+$c_O.prototype.toString = (function() {
+ return this.toString__T()
+});
+function $ac_O(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Array(arg);
+ for (var i = 0; (i < arg); (i++)) {
+ this.u[i] = null
+ }
+ } else {
+ this.u = arg
+ }
+}
+$ac_O.prototype = new $h_O();
+$ac_O.prototype.constructor = $ac_O;
+$ac_O.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_O.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_O.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
+});
+$ac_O.prototype.clone__O = (function() {
+ return new $ac_O(this.u.slice())
+});
+function $ah_O() {
+ /**/
+}
+$ah_O.prototype = $ac_O.prototype;
+function $ac_Z(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Array(arg);
+ for (var i = 0; (i < arg); (i++)) {
+ this.u[i] = false
+ }
+ } else {
+ this.u = arg
+ }
+}
+$ac_Z.prototype = new $h_O();
+$ac_Z.prototype.constructor = $ac_Z;
+$ac_Z.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_Z.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_Z.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
+});
+$ac_Z.prototype.clone__O = (function() {
+ return new $ac_Z(this.u.slice())
+});
+function $ac_C(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Uint16Array(arg)
+ } else {
+ this.u = arg
+ }
+}
+$ac_C.prototype = new $h_O();
+$ac_C.prototype.constructor = $ac_C;
+$ac_C.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_C.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_C.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length);
+ dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
+});
+$ac_C.prototype.clone__O = (function() {
+ return new $ac_C(this.u.slice())
+});
+function $ac_B(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Int8Array(arg)
+ } else {
+ this.u = arg
+ }
+}
+$ac_B.prototype = new $h_O();
+$ac_B.prototype.constructor = $ac_B;
+$ac_B.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_B.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_B.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length);
+ dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
+});
+$ac_B.prototype.clone__O = (function() {
+ return new $ac_B(this.u.slice())
+});
+function $ac_S(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Int16Array(arg)
+ } else {
+ this.u = arg
+ }
+}
+$ac_S.prototype = new $h_O();
+$ac_S.prototype.constructor = $ac_S;
+$ac_S.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_S.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_S.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length);
+ dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
+});
+$ac_S.prototype.clone__O = (function() {
+ return new $ac_S(this.u.slice())
+});
+function $ac_I(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Int32Array(arg)
+ } else {
+ this.u = arg
+ }
+}
+$ac_I.prototype = new $h_O();
+$ac_I.prototype.constructor = $ac_I;
+$ac_I.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_I.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_I.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length);
+ dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
+});
+$ac_I.prototype.clone__O = (function() {
+ return new $ac_I(this.u.slice())
+});
+function $ac_J(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Array(arg);
+ for (var i = 0; (i < arg); (i++)) {
+ this.u[i] = $L0
+ }
+ } else {
+ this.u = arg
+ }
+}
+$ac_J.prototype = new $h_O();
+$ac_J.prototype.constructor = $ac_J;
+$ac_J.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_J.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_J.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
+});
+$ac_J.prototype.clone__O = (function() {
+ return new $ac_J(this.u.slice())
+});
+function $ac_F(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Float32Array(arg)
+ } else {
+ this.u = arg
+ }
+}
+$ac_F.prototype = new $h_O();
+$ac_F.prototype.constructor = $ac_F;
+$ac_F.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_F.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_F.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length);
+ dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
+});
+$ac_F.prototype.clone__O = (function() {
+ return new $ac_F(this.u.slice())
+});
+function $ac_D(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Float64Array(arg)
+ } else {
+ this.u = arg
+ }
+}
+$ac_D.prototype = new $h_O();
+$ac_D.prototype.constructor = $ac_D;
+$ac_D.prototype.get = (function(i) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ return this.u[i]
+});
+$ac_D.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ this.u[i] = v
+});
+$ac_D.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyCheckBounds(this.u.length, srcPos, dest.u.length, destPos, length);
+ dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
+});
+$ac_D.prototype.clone__O = (function() {
+ return new $ac_D(this.u.slice())
+});
+function $TypeData() {
+ this.constr = (void 0);
+ this.ancestors = null;
+ this.componentData = null;
+ this.arrayBase = null;
+ this.arrayDepth = 0;
+ this.zero = null;
+ this.arrayEncodedName = "";
+ this._classOf = (void 0);
+ this._arrayOf = (void 0);
+ this.isAssignableFromFun = (void 0);
+ this.wrapArray = (void 0);
+ this.isJSType = false;
+ this.name = "";
+ this.isPrimitive = false;
+ this.isInterface = false;
+ this.isArrayClass = false;
+ this.isInstance = (void 0)
+}
+$TypeData.prototype.initPrim = (function(zero, arrayEncodedName, displayName, arrayClass, typedArrayClass) {
+ this.ancestors = {};
+ this.zero = zero;
+ this.arrayEncodedName = arrayEncodedName;
+ var self = this;
+ this.isAssignableFromFun = ((that) => (that === self));
+ this.name = displayName;
+ this.isPrimitive = true;
+ this.isInstance = ((obj) => false);
+ if ((arrayClass !== (void 0))) {
+ this._arrayOf = new $TypeData().initSpecializedArray(this, arrayClass, typedArrayClass)
+ };
+ return this
+});
+$TypeData.prototype.initClass = (function(internalNameObj, isInterface, fullName, ancestors, isJSType, parentData, isInstance) {
+ var internalName = $propertyName(internalNameObj);
+ this.ancestors = ancestors;
+ this.arrayEncodedName = (("L" + fullName) + ";");
+ this.isAssignableFromFun = ((that) => (!(!that.ancestors[internalName])));
+ this.isJSType = (!(!isJSType));
+ this.name = fullName;
+ this.isInterface = isInterface;
+ this.isInstance = (isInstance || ((obj) => (!(!((obj && obj.$classData) && obj.$classData.ancestors[internalName])))));
+ return this
+});
+$TypeData.prototype.initSpecializedArray = (function(componentData, arrayClass, typedArrayClass, isAssignableFromFun) {
+ arrayClass.prototype.$classData = this;
+ var name = ("[" + componentData.arrayEncodedName);
+ this.constr = arrayClass;
+ this.ancestors = {
+ O: 1,
+ jl_Cloneable: 1,
+ Ljava_io_Serializable: 1
+ };
+ this.componentData = componentData;
+ this.arrayBase = componentData;
+ this.arrayDepth = 1;
+ this.arrayEncodedName = name;
+ this.name = name;
+ this.isArrayClass = true;
+ var self = this;
+ this.isAssignableFromFun = (isAssignableFromFun || ((that) => (self === that)));
+ this.wrapArray = (typedArrayClass ? ((array) => new arrayClass(new typedArrayClass(array))) : ((array) => new arrayClass(array)));
+ this.isInstance = ((obj) => (obj instanceof arrayClass));
+ return this
+});
+$TypeData.prototype.initArray = (function(componentData) {
+ function ArrayClass(arg) {
+ if (((typeof arg) === "number")) {
+ if ((arg < 0)) {
+ $throwNegativeArraySizeException()
+ };
+ this.u = new Array(arg);
+ for (var i = 0; (i < arg); (i++)) {
+ this.u[i] = null
+ }
+ } else {
+ this.u = arg
+ }
+ }
+ ArrayClass.prototype = new $ah_O();
+ ArrayClass.prototype.constructor = ArrayClass;
+ ArrayClass.prototype.set = (function(i, v) {
+ if (((i < 0) || (i >= this.u.length))) {
+ $throwArrayIndexOutOfBoundsException(i)
+ };
+ if ((((v !== null) && (!componentData.isJSType)) && (!componentData.isInstance(v)))) {
+ $throwArrayStoreException(v)
+ };
+ this.u[i] = v
+ });
+ ArrayClass.prototype.copyTo = (function(srcPos, dest, destPos, length) {
+ $arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
+ });
+ ArrayClass.prototype.clone__O = (function() {
+ return new ArrayClass(this.u.slice())
+ });
+ var arrayBase = (componentData.arrayBase || componentData);
+ var arrayDepth = (componentData.arrayDepth + 1);
+ ArrayClass.prototype.$classData = this;
+ var name = ("[" + componentData.arrayEncodedName);
+ this.constr = ArrayClass;
+ this.ancestors = {
+ O: 1,
+ jl_Cloneable: 1,
+ Ljava_io_Serializable: 1
+ };
+ this.componentData = componentData;
+ this.arrayBase = arrayBase;
+ this.arrayDepth = arrayDepth;
+ this.arrayEncodedName = name;
+ this.name = name;
+ this.isArrayClass = true;
+ var isAssignableFromFun = ((that) => {
+ var thatDepth = that.arrayDepth;
+ return ((thatDepth === arrayDepth) ? arrayBase.isAssignableFromFun(that.arrayBase) : ((thatDepth > arrayDepth) && (arrayBase === $d_O)))
+ });
+ this.isAssignableFromFun = isAssignableFromFun;
+ this.wrapArray = ((array) => new ArrayClass(array));
+ var self = this;
+ this.isInstance = ((obj) => {
+ var data = (obj && obj.$classData);
+ return ((!(!data)) && ((data === self) || isAssignableFromFun(data)))
+ });
+ return this
+});
+$TypeData.prototype.getArrayOf = (function() {
+ if ((!this._arrayOf)) {
+ this._arrayOf = new $TypeData().initArray(this)
+ };
+ return this._arrayOf
+});
+$TypeData.prototype.getClassOf = (function() {
+ if ((!this._classOf)) {
+ this._classOf = new $c_jl_Class(this)
+ };
+ return this._classOf
+});
+$TypeData.prototype.isAssignableFrom = (function(that) {
+ return ((this === that) || this.isAssignableFromFun(that))
+});
+$TypeData.prototype.checkCast = (function(obj) {
+ if ((((obj !== null) && (!this.isJSType)) && (!this.isInstance(obj)))) {
+ $throwClassCastException(obj, this.name)
+ }
+});
+$TypeData.prototype.getSuperclass = (function() {
+ return (this.parentData ? this.parentData.getClassOf() : null)
+});
+$TypeData.prototype.getComponentType = (function() {
+ return (this.componentData ? this.componentData.getClassOf() : null)
+});
+$TypeData.prototype.newArrayOfThisClass = (function(lengths) {
+ var arrayClassData = this;
+ for (var i = 0; (i < lengths.length); (i++)) {
+ arrayClassData = arrayClassData.getArrayOf()
+ };
+ return $newArrayObject(arrayClassData, lengths)
+});
+function $isArrayOf_O(obj, depth) {
+ var data = (obj && obj.$classData);
+ if ((!data)) {
+ return false
+ } else {
+ var arrayDepth = data.arrayDepth;
+ return ((arrayDepth === depth) ? (!data.arrayBase.isPrimitive) : (arrayDepth > depth))
+ }
+}
+function $isArrayOf_Z(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_Z))))
+}
+function $isArrayOf_C(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_C))))
+}
+function $isArrayOf_B(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_B))))
+}
+function $isArrayOf_S(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_S))))
+}
+function $isArrayOf_I(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_I))))
+}
+function $isArrayOf_J(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_J))))
+}
+function $isArrayOf_F(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_F))))
+}
+function $isArrayOf_D(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_D))))
+}
+function $asArrayOf_O(obj, depth) {
+ if (($isArrayOf_O(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "Ljava.lang.Object;", depth)
+ }
+}
+function $asArrayOf_Z(obj, depth) {
+ if (($isArrayOf_Z(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "Z", depth)
+ }
+}
+function $asArrayOf_C(obj, depth) {
+ if (($isArrayOf_C(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "C", depth)
+ }
+}
+function $asArrayOf_B(obj, depth) {
+ if (($isArrayOf_B(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "B", depth)
+ }
+}
+function $asArrayOf_S(obj, depth) {
+ if (($isArrayOf_S(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "S", depth)
+ }
+}
+function $asArrayOf_I(obj, depth) {
+ if (($isArrayOf_I(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "I", depth)
+ }
+}
+function $asArrayOf_J(obj, depth) {
+ if (($isArrayOf_J(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "J", depth)
+ }
+}
+function $asArrayOf_F(obj, depth) {
+ if (($isArrayOf_F(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "F", depth)
+ }
+}
+function $asArrayOf_D(obj, depth) {
+ if (($isArrayOf_D(obj, depth) || (obj === null))) {
+ return obj
+ } else {
+ $throwArrayCastException(obj, "D", depth)
+ }
+}
+var $d_O = new $TypeData();
+$d_O.ancestors = {
+ O: 1
+};
+$d_O.arrayEncodedName = "Ljava.lang.Object;";
+$d_O.isAssignableFromFun = ((that) => (!that.isPrimitive));
+$d_O.name = "java.lang.Object";
+$d_O.isInstance = ((obj) => (obj !== null));
+$d_O._arrayOf = new $TypeData().initSpecializedArray($d_O, $ac_O, (void 0), ((that) => {
+ var thatDepth = that.arrayDepth;
+ return ((thatDepth === 1) ? (!that.arrayBase.isPrimitive) : (thatDepth > 1))
+}));
+$c_O.prototype.$classData = $d_O;
+var $d_V = new $TypeData().initPrim((void 0), "V", "void", (void 0), (void 0));
+var $d_Z = new $TypeData().initPrim(false, "Z", "boolean", $ac_Z, (void 0));
+var $d_C = new $TypeData().initPrim(0, "C", "char", $ac_C, Uint16Array);
+var $d_B = new $TypeData().initPrim(0, "B", "byte", $ac_B, Int8Array);
+var $d_S = new $TypeData().initPrim(0, "S", "short", $ac_S, Int16Array);
+var $d_I = new $TypeData().initPrim(0, "I", "int", $ac_I, Int32Array);
+var $d_J = new $TypeData().initPrim(null, "J", "long", $ac_J, (void 0));
+var $d_F = new $TypeData().initPrim(0.0, "F", "float", $ac_F, Float32Array);
+var $d_D = new $TypeData().initPrim(0.0, "D", "double", $ac_D, Float64Array);
+/** @constructor */
+function $c_Lcats_kernel_SemigroupFunctions() {
+ /**/
+}
+$c_Lcats_kernel_SemigroupFunctions.prototype = new $h_O();
+$c_Lcats_kernel_SemigroupFunctions.prototype.constructor = $c_Lcats_kernel_SemigroupFunctions;
+/** @constructor */
+function $h_Lcats_kernel_SemigroupFunctions() {
+ /**/
+}
+$h_Lcats_kernel_SemigroupFunctions.prototype = $c_Lcats_kernel_SemigroupFunctions.prototype;
+/** @constructor */
+function $c_Lcats_package$() {
+ this.Lcats_package$__f_catsInstancesForId = null;
+ this.Lcats_package$__f_Semigroup = null;
+ $n_Lcats_package$ = this;
+ this.Lcats_package$__f_catsInstancesForId = new $c_Lcats_package$$anon$1();
+ new $c_Lcats_package$$anon$2();
+ new $c_Lcats_package$$anon$3();
+ $m_Lcats_Invariant$();
+ var evidence$31 = $m_Lcats_package$().Lcats_package$__f_catsInstancesForId;
+ new $c_Lcats_Parallel$$anon$2(evidence$31);
+ $m_Lcats_kernel_Comparison$();
+ this.Lcats_package$__f_Semigroup = $m_Lcats_kernel_Semigroup$()
+}
+$c_Lcats_package$.prototype = new $h_O();
+$c_Lcats_package$.prototype.constructor = $c_Lcats_package$;
+/** @constructor */
+function $h_Lcats_package$() {
+ /**/
+}
+$h_Lcats_package$.prototype = $c_Lcats_package$.prototype;
+var $d_Lcats_package$ = new $TypeData().initClass({
+ Lcats_package$: 0
+}, false, "cats.package$", {
+ Lcats_package$: 1,
+ O: 1
+});
+$c_Lcats_package$.prototype.$classData = $d_Lcats_package$;
+var $n_Lcats_package$;
+function $m_Lcats_package$() {
+ if ((!$n_Lcats_package$)) {
+ $n_Lcats_package$ = new $c_Lcats_package$()
+ };
+ return $n_Lcats_package$
+}
+/** @constructor */
+function $c_Lcats_syntax_SemigroupOps(lhs, evidence$1) {
+ this.Lcats_syntax_SemigroupOps__f_lhs = null;
+ this.Lcats_syntax_SemigroupOps__f_evidence$1 = null;
+ this.Lcats_syntax_SemigroupOps__f_lhs = lhs;
+ this.Lcats_syntax_SemigroupOps__f_evidence$1 = evidence$1
+}
+$c_Lcats_syntax_SemigroupOps.prototype = new $h_O();
+$c_Lcats_syntax_SemigroupOps.prototype.constructor = $c_Lcats_syntax_SemigroupOps;
+/** @constructor */
+function $h_Lcats_syntax_SemigroupOps() {
+ /**/
+}
+$h_Lcats_syntax_SemigroupOps.prototype = $c_Lcats_syntax_SemigroupOps.prototype;
+$c_Lcats_syntax_SemigroupOps.prototype.$bar$plus$bar__O__O = (function(rhs) {
+ $n($m_Lcats_package$().Lcats_package$__f_Semigroup);
+ var ev = this.Lcats_syntax_SemigroupOps__f_evidence$1;
+ return $n(ev).combine__O__O__O(this.Lcats_syntax_SemigroupOps__f_lhs, rhs)
+});
+var $d_Lcats_syntax_SemigroupOps = new $TypeData().initClass({
+ Lcats_syntax_SemigroupOps: 0
+}, false, "cats.syntax.SemigroupOps", {
+ Lcats_syntax_SemigroupOps: 1,
+ O: 1
+});
+$c_Lcats_syntax_SemigroupOps.prototype.$classData = $d_Lcats_syntax_SemigroupOps;
+function $is_Lcom_raquo_airstream_core_InternalObserver(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lcom_raquo_airstream_core_InternalObserver)))
+}
+function $as_Lcom_raquo_airstream_core_InternalObserver(obj) {
+ return (($is_Lcom_raquo_airstream_core_InternalObserver(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.airstream.core.InternalObserver"))
+}
+function $isArrayOf_Lcom_raquo_airstream_core_InternalObserver(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_airstream_core_InternalObserver)))
+}
+function $asArrayOf_Lcom_raquo_airstream_core_InternalObserver(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_airstream_core_InternalObserver(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.airstream.core.InternalObserver;", depth))
+}
+var $d_Lcom_raquo_airstream_core_InternalObserver = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_InternalObserver: 0
+}, true, "com.raquo.airstream.core.InternalObserver", {
+ Lcom_raquo_airstream_core_InternalObserver: 1,
+ O: 1
+});
+function $f_Lcom_raquo_airstream_core_Named__displayName__T($thiz) {
+ var x = $thiz.maybeDisplayName__O();
+ return $as_T(((x === (void 0)) ? $c_O.prototype.toString__T.call($thiz) : x))
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Observer$() {
+ $n_Lcom_raquo_airstream_core_Observer$ = this;
+ var this$2 = $m_Lcom_raquo_airstream_core_Observer$();
+ var onNext = new $c_sjsr_AnonFunction1(((_$1) => (void 0)));
+ this$2.withRecover__F1__s_PartialFunction__Z__Lcom_raquo_airstream_core_Observer(onNext, $m_s_PartialFunction$().s_PartialFunction$__f_empty_pf, true)
+}
+$c_Lcom_raquo_airstream_core_Observer$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Observer$.prototype.constructor = $c_Lcom_raquo_airstream_core_Observer$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Observer$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Observer$.prototype = $c_Lcom_raquo_airstream_core_Observer$.prototype;
+$c_Lcom_raquo_airstream_core_Observer$.prototype.withRecover__F1__s_PartialFunction__Z__Lcom_raquo_airstream_core_Observer = (function(onNext, onError, handleObserverErrors) {
+ return new $c_Lcom_raquo_airstream_core_Observer$$anon$8(handleObserverErrors, onNext, onError)
+});
+$c_Lcom_raquo_airstream_core_Observer$.prototype.fromTry__s_PartialFunction__Z__Lcom_raquo_airstream_core_Observer = (function(onTry, handleObserverErrors) {
+ return new $c_Lcom_raquo_airstream_core_Observer$$anon$9(handleObserverErrors, onTry)
+});
+var $d_Lcom_raquo_airstream_core_Observer$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Observer$: 0
+}, false, "com.raquo.airstream.core.Observer$", {
+ Lcom_raquo_airstream_core_Observer$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Observer$.prototype.$classData = $d_Lcom_raquo_airstream_core_Observer$;
+var $n_Lcom_raquo_airstream_core_Observer$;
+function $m_Lcom_raquo_airstream_core_Observer$() {
+ if ((!$n_Lcom_raquo_airstream_core_Observer$)) {
+ $n_Lcom_raquo_airstream_core_Observer$ = new $c_Lcom_raquo_airstream_core_Observer$()
+ };
+ return $n_Lcom_raquo_airstream_core_Observer$
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_ObserverList$() {
+ /**/
+}
+$c_Lcom_raquo_airstream_core_ObserverList$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_ObserverList$.prototype.constructor = $c_Lcom_raquo_airstream_core_ObserverList$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_ObserverList$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_ObserverList$.prototype = $c_Lcom_raquo_airstream_core_ObserverList$.prototype;
+$c_Lcom_raquo_airstream_core_ObserverList$.prototype.removeObserverNow$extension__Lcom_raquo_ew_JsArray__O__Z = (function(this$, observer) {
+ var index = $uI(this$.indexOf(observer));
+ var shouldRemove = (index !== (-1));
+ if (shouldRemove) {
+ this$.splice(index, 1)
+ };
+ return shouldRemove
+});
+var $d_Lcom_raquo_airstream_core_ObserverList$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_ObserverList$: 0
+}, false, "com.raquo.airstream.core.ObserverList$", {
+ Lcom_raquo_airstream_core_ObserverList$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_ObserverList$.prototype.$classData = $d_Lcom_raquo_airstream_core_ObserverList$;
+var $n_Lcom_raquo_airstream_core_ObserverList$;
+function $m_Lcom_raquo_airstream_core_ObserverList$() {
+ if ((!$n_Lcom_raquo_airstream_core_ObserverList$)) {
+ $n_Lcom_raquo_airstream_core_ObserverList$ = new $c_Lcom_raquo_airstream_core_ObserverList$()
+ };
+ return $n_Lcom_raquo_airstream_core_ObserverList$
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Protected() {
+ /**/
+}
+$c_Lcom_raquo_airstream_core_Protected.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Protected.prototype.constructor = $c_Lcom_raquo_airstream_core_Protected;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Protected() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Protected.prototype = $c_Lcom_raquo_airstream_core_Protected.prototype;
+var $d_Lcom_raquo_airstream_core_Protected = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Protected: 0
+}, false, "com.raquo.airstream.core.Protected", {
+ Lcom_raquo_airstream_core_Protected: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Protected.prototype.$classData = $d_Lcom_raquo_airstream_core_Protected;
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Protected$() {
+ this.Lcom_raquo_airstream_core_Protected$__f_protectedAccessEvidence = null;
+ $n_Lcom_raquo_airstream_core_Protected$ = this;
+ this.Lcom_raquo_airstream_core_Protected$__f_protectedAccessEvidence = new $c_Lcom_raquo_airstream_core_Protected()
+}
+$c_Lcom_raquo_airstream_core_Protected$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Protected$.prototype.constructor = $c_Lcom_raquo_airstream_core_Protected$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Protected$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Protected$.prototype = $c_Lcom_raquo_airstream_core_Protected$.prototype;
+var $d_Lcom_raquo_airstream_core_Protected$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Protected$: 0
+}, false, "com.raquo.airstream.core.Protected$", {
+ Lcom_raquo_airstream_core_Protected$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Protected$.prototype.$classData = $d_Lcom_raquo_airstream_core_Protected$;
+var $n_Lcom_raquo_airstream_core_Protected$;
+function $m_Lcom_raquo_airstream_core_Protected$() {
+ if ((!$n_Lcom_raquo_airstream_core_Protected$)) {
+ $n_Lcom_raquo_airstream_core_Protected$ = new $c_Lcom_raquo_airstream_core_Protected$()
+ };
+ return $n_Lcom_raquo_airstream_core_Protected$
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Signal$() {
+ this.Lcom_raquo_airstream_core_Signal$__f_lastUpdateId = 0;
+ this.Lcom_raquo_airstream_core_Signal$__f_lastUpdateId = 0
+}
+$c_Lcom_raquo_airstream_core_Signal$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Signal$.prototype.constructor = $c_Lcom_raquo_airstream_core_Signal$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Signal$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Signal$.prototype = $c_Lcom_raquo_airstream_core_Signal$.prototype;
+$c_Lcom_raquo_airstream_core_Signal$.prototype.nextUpdateId__I = (function() {
+ if ((this.Lcom_raquo_airstream_core_Signal$__f_lastUpdateId === 2147483647)) {
+ this.Lcom_raquo_airstream_core_Signal$__f_lastUpdateId = 1
+ } else {
+ this.Lcom_raquo_airstream_core_Signal$__f_lastUpdateId = ((1 + this.Lcom_raquo_airstream_core_Signal$__f_lastUpdateId) | 0)
+ };
+ return this.Lcom_raquo_airstream_core_Signal$__f_lastUpdateId
+});
+var $d_Lcom_raquo_airstream_core_Signal$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Signal$: 0
+}, false, "com.raquo.airstream.core.Signal$", {
+ Lcom_raquo_airstream_core_Signal$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Signal$.prototype.$classData = $d_Lcom_raquo_airstream_core_Signal$;
+var $n_Lcom_raquo_airstream_core_Signal$;
+function $m_Lcom_raquo_airstream_core_Signal$() {
+ if ((!$n_Lcom_raquo_airstream_core_Signal$)) {
+ $n_Lcom_raquo_airstream_core_Signal$ = new $c_Lcom_raquo_airstream_core_Signal$()
+ };
+ return $n_Lcom_raquo_airstream_core_Signal$
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Transaction(code) {
+ this.Lcom_raquo_airstream_core_Transaction__f_code = null;
+ this.Lcom_raquo_airstream_core_Transaction__f_maybePendingObservables = null;
+ this.Lcom_raquo_airstream_core_Transaction__f_code = code;
+ this.Lcom_raquo_airstream_core_Transaction__f_maybePendingObservables = (void 0);
+ $m_Lcom_raquo_airstream_core_Transaction$pendingTransactions$().add__Lcom_raquo_airstream_core_Transaction__V(this)
+}
+$c_Lcom_raquo_airstream_core_Transaction.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Transaction.prototype.constructor = $c_Lcom_raquo_airstream_core_Transaction;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Transaction() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Transaction.prototype = $c_Lcom_raquo_airstream_core_Transaction.prototype;
+function $as_Lcom_raquo_airstream_core_Transaction(obj) {
+ return (((obj instanceof $c_Lcom_raquo_airstream_core_Transaction) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.airstream.core.Transaction"))
+}
+function $isArrayOf_Lcom_raquo_airstream_core_Transaction(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_airstream_core_Transaction)))
+}
+function $asArrayOf_Lcom_raquo_airstream_core_Transaction(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_airstream_core_Transaction(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.airstream.core.Transaction;", depth))
+}
+var $d_Lcom_raquo_airstream_core_Transaction = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Transaction: 0
+}, false, "com.raquo.airstream.core.Transaction", {
+ Lcom_raquo_airstream_core_Transaction: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Transaction.prototype.$classData = $d_Lcom_raquo_airstream_core_Transaction;
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Transaction$() {
+ this.Lcom_raquo_airstream_core_Transaction$__f_com$raquo$airstream$core$Transaction$$$throwDeadTrxError = null;
+ $n_Lcom_raquo_airstream_core_Transaction$ = this;
+ this.Lcom_raquo_airstream_core_Transaction$__f_com$raquo$airstream$core$Transaction$$$throwDeadTrxError = new $c_sjsr_AnonFunction1(((trx) => {
+ var trx$1 = $as_Lcom_raquo_airstream_core_Transaction(trx);
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), (("Attempted to run Transaction " + trx$1) + " after it was already executed."))
+ }))
+}
+$c_Lcom_raquo_airstream_core_Transaction$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Transaction$.prototype.constructor = $c_Lcom_raquo_airstream_core_Transaction$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Transaction$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Transaction$.prototype = $c_Lcom_raquo_airstream_core_Transaction$.prototype;
+$c_Lcom_raquo_airstream_core_Transaction$.prototype.com$raquo$airstream$core$Transaction$$$run__Lcom_raquo_airstream_core_Transaction__V = (function(transaction) {
+ try {
+ $n($n(transaction).Lcom_raquo_airstream_core_Transaction__f_code).apply__O__O(transaction);
+ var this$1 = $n(transaction);
+ var x = this$1.Lcom_raquo_airstream_core_Transaction__f_maybePendingObservables;
+ if ((x !== (void 0))) {
+ var pendingObservables = $as_Lcom_raquo_airstream_util_JsPriorityQueue(x);
+ while ($n(pendingObservables).nonEmpty__Z()) {
+ $n($as_Lcom_raquo_airstream_core_SyncObservable($n(pendingObservables).dequeue__O())).syncFire__Lcom_raquo_airstream_core_Transaction__V(this$1)
+ }
+ }
+ } catch (e) {
+ var e$2 = ((e instanceof $c_jl_Throwable) ? e : new $c_sjs_js_JavaScriptException(e));
+ $m_Lcom_raquo_airstream_core_AirstreamError$().sendUnhandledError__jl_Throwable__V(e$2)
+ } finally {
+ $m_Lcom_raquo_airstream_core_Transaction$pendingTransactions$().done__Lcom_raquo_airstream_core_Transaction__V(transaction)
+ }
+});
+var $d_Lcom_raquo_airstream_core_Transaction$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Transaction$: 0
+}, false, "com.raquo.airstream.core.Transaction$", {
+ Lcom_raquo_airstream_core_Transaction$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Transaction$.prototype.$classData = $d_Lcom_raquo_airstream_core_Transaction$;
+var $n_Lcom_raquo_airstream_core_Transaction$;
+function $m_Lcom_raquo_airstream_core_Transaction$() {
+ if ((!$n_Lcom_raquo_airstream_core_Transaction$)) {
+ $n_Lcom_raquo_airstream_core_Transaction$ = new $c_Lcom_raquo_airstream_core_Transaction$()
+ };
+ return $n_Lcom_raquo_airstream_core_Transaction$
+}
+function $p_Lcom_raquo_airstream_core_Transaction$onStart$__resolve__V($thiz) {
+ if (($uI($thiz.Lcom_raquo_airstream_core_Transaction$onStart$__f_pendingCallbacks.length) > 0)) {
+ new $c_Lcom_raquo_airstream_core_Transaction(new $c_sjsr_AnonFunction1(((trx) => {
+ var trx$1 = $as_Lcom_raquo_airstream_core_Transaction(trx);
+ while (($uI($thiz.Lcom_raquo_airstream_core_Transaction$onStart$__f_pendingCallbacks.length) > 0)) {
+ var callback = $as_F1($thiz.Lcom_raquo_airstream_core_Transaction$onStart$__f_pendingCallbacks.pop());
+ try {
+ $n(callback).apply__O__O(trx$1)
+ } catch (e) {
+ var e$2 = ((e instanceof $c_jl_Throwable) ? e : new $c_sjs_js_JavaScriptException(e));
+ $m_Lcom_raquo_airstream_core_AirstreamError$().sendUnhandledError__jl_Throwable__V(e$2)
+ }
+ }
+ })))
+ }
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Transaction$onStart$() {
+ this.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = 0;
+ this.Lcom_raquo_airstream_core_Transaction$onStart$__f_pendingCallbacks = null;
+ $n_Lcom_raquo_airstream_core_Transaction$onStart$ = this;
+ this.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = 0;
+ this.Lcom_raquo_airstream_core_Transaction$onStart$__f_pendingCallbacks = $m_Lcom_raquo_ew_JsArray$().apply__sci_Seq__Lcom_raquo_ew_JsArray($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_F1.getArrayOf().constr)([])))
+}
+$c_Lcom_raquo_airstream_core_Transaction$onStart$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Transaction$onStart$.prototype.constructor = $c_Lcom_raquo_airstream_core_Transaction$onStart$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Transaction$onStart$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Transaction$onStart$.prototype = $c_Lcom_raquo_airstream_core_Transaction$onStart$.prototype;
+var $d_Lcom_raquo_airstream_core_Transaction$onStart$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Transaction$onStart$: 0
+}, false, "com.raquo.airstream.core.Transaction$onStart$", {
+ Lcom_raquo_airstream_core_Transaction$onStart$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Transaction$onStart$.prototype.$classData = $d_Lcom_raquo_airstream_core_Transaction$onStart$;
+var $n_Lcom_raquo_airstream_core_Transaction$onStart$;
+function $m_Lcom_raquo_airstream_core_Transaction$onStart$() {
+ if ((!$n_Lcom_raquo_airstream_core_Transaction$onStart$)) {
+ $n_Lcom_raquo_airstream_core_Transaction$onStart$ = new $c_Lcom_raquo_airstream_core_Transaction$onStart$()
+ };
+ return $n_Lcom_raquo_airstream_core_Transaction$onStart$
+}
+function $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__maybeChildrenFor__Lcom_raquo_airstream_core_Transaction__O($thiz, transaction) {
+ return $thiz.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children.get(transaction)
+}
+function $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__pushToStack__Lcom_raquo_airstream_core_Transaction__V($thiz, transaction) {
+ $thiz.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_stack.unshift(transaction)
+}
+function $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__popStack__O($thiz) {
+ return $thiz.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_stack.shift()
+}
+function $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__enqueueChild__Lcom_raquo_airstream_core_Transaction__Lcom_raquo_airstream_core_Transaction__V($thiz, parent, newChild) {
+ var maybeChildren = $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__maybeChildrenFor__Lcom_raquo_airstream_core_Transaction__O($thiz, parent);
+ var noChildrenFound = (maybeChildren === (void 0));
+ var newChildren = ((maybeChildren === (void 0)) ? $m_Lcom_raquo_ew_JsArray$().apply__sci_Seq__Lcom_raquo_ew_JsArray($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_airstream_core_Transaction.getArrayOf().constr)([]))) : maybeChildren);
+ newChildren.push(newChild);
+ if (noChildrenFound) {
+ $thiz.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children.set(parent, newChildren)
+ }
+}
+function $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__dequeueChild__Lcom_raquo_airstream_core_Transaction__O($thiz, parent) {
+ var maybeParentChildren = $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__maybeChildrenFor__Lcom_raquo_airstream_core_Transaction__O($thiz, parent);
+ var x = (((maybeParentChildren === (void 0)) || ($uI(maybeParentChildren.length) > 0)) ? maybeParentChildren : (void 0));
+ if ((x === (void 0))) {
+ return (void 0)
+ } else {
+ var nextChild = $as_Lcom_raquo_airstream_core_Transaction(x.shift());
+ if (($uI(x.length) === 0)) {
+ $uZ($thiz.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children.delete(parent))
+ };
+ return nextChild
+ }
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$() {
+ this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_stack = null;
+ this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children = null;
+ $n_Lcom_raquo_airstream_core_Transaction$pendingTransactions$ = this;
+ this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_stack = $m_Lcom_raquo_ew_JsArray$().apply__sci_Seq__Lcom_raquo_ew_JsArray($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_airstream_core_Transaction.getArrayOf().constr)([])));
+ this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children = new Map()
+}
+$c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype.constructor = $c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_core_Transaction$pendingTransactions$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype = $c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype;
+$c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype.add__Lcom_raquo_airstream_core_Transaction__V = (function(newTransaction) {
+ var x = this.peekStack__O();
+ if ((x === (void 0))) {
+ $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__pushToStack__Lcom_raquo_airstream_core_Transaction__V(this, newTransaction);
+ $m_Lcom_raquo_airstream_core_Transaction$().com$raquo$airstream$core$Transaction$$$run__Lcom_raquo_airstream_core_Transaction__V(newTransaction)
+ } else {
+ var currentTransaction = $as_Lcom_raquo_airstream_core_Transaction(x);
+ $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__enqueueChild__Lcom_raquo_airstream_core_Transaction__Lcom_raquo_airstream_core_Transaction__V(this, currentTransaction, newTransaction)
+ }
+});
+$c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype.done__Lcom_raquo_airstream_core_Transaction__V = (function(transaction) {
+ var x = this.peekStack__O();
+ if ((!((x !== (void 0)) && $m_sr_BoxesRunTime$().equals__O__O__Z(transaction, x)))) {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), "Transaction queue error: Completed transaction is not the first in stack. This is a bug in Airstream.")
+ };
+ this.putNextTransactionOnStack__Lcom_raquo_airstream_core_Transaction__V(transaction);
+ $n(transaction).Lcom_raquo_airstream_core_Transaction__f_code = $m_Lcom_raquo_airstream_core_Transaction$().Lcom_raquo_airstream_core_Transaction$__f_com$raquo$airstream$core$Transaction$$$throwDeadTrxError;
+ var x$1 = this.peekStack__O();
+ if ((x$1 === (void 0))) {
+ if (($uI(this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children.size) > 0)) {
+ var numChildren = new $c_sr_IntRef(0);
+ this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children.forEach(((transactions, _$2) => {
+ $as_Lcom_raquo_airstream_core_Transaction(_$2);
+ var ev$14 = ((numChildren.sr_IntRef__f_elem + $uI(transactions.length)) | 0);
+ numChildren.sr_IntRef__f_elem = ev$14
+ }));
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), (((("Transaction queue error: Stack cleared, but a total of " + numChildren.sr_IntRef__f_elem) + " children for ") + $uI(this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_children.size)) + " transactions remain. This is a bug in Airstream."))
+ }
+ } else {
+ var nextTransaction = $as_Lcom_raquo_airstream_core_Transaction(x$1);
+ $m_Lcom_raquo_airstream_core_Transaction$().com$raquo$airstream$core$Transaction$$$run__Lcom_raquo_airstream_core_Transaction__V(nextTransaction)
+ }
+});
+$c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype.putNextTransactionOnStack__Lcom_raquo_airstream_core_Transaction__V = (function(doneTransaction) {
+ var x = $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__dequeueChild__Lcom_raquo_airstream_core_Transaction__O(this, doneTransaction);
+ if ((x === (void 0))) {
+ $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__popStack__O(this);
+ var x$1 = this.peekStack__O();
+ if ((x$1 !== (void 0))) {
+ var parentTransaction = $as_Lcom_raquo_airstream_core_Transaction(x$1);
+ this.putNextTransactionOnStack__Lcom_raquo_airstream_core_Transaction__V(parentTransaction)
+ }
+ } else {
+ var nextChild = $as_Lcom_raquo_airstream_core_Transaction(x);
+ $p_Lcom_raquo_airstream_core_Transaction$pendingTransactions$__pushToStack__Lcom_raquo_airstream_core_Transaction__V(this, nextChild)
+ }
+});
+$c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype.peekStack__O = (function() {
+ return this.Lcom_raquo_airstream_core_Transaction$pendingTransactions$__f_stack[0]
+});
+var $d_Lcom_raquo_airstream_core_Transaction$pendingTransactions$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_core_Transaction$pendingTransactions$: 0
+}, false, "com.raquo.airstream.core.Transaction$pendingTransactions$", {
+ Lcom_raquo_airstream_core_Transaction$pendingTransactions$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$.prototype.$classData = $d_Lcom_raquo_airstream_core_Transaction$pendingTransactions$;
+var $n_Lcom_raquo_airstream_core_Transaction$pendingTransactions$;
+function $m_Lcom_raquo_airstream_core_Transaction$pendingTransactions$() {
+ if ((!$n_Lcom_raquo_airstream_core_Transaction$pendingTransactions$)) {
+ $n_Lcom_raquo_airstream_core_Transaction$pendingTransactions$ = new $c_Lcom_raquo_airstream_core_Transaction$pendingTransactions$()
+ };
+ return $n_Lcom_raquo_airstream_core_Transaction$pendingTransactions$
+}
+function $p_Lcom_raquo_airstream_ownership_DynamicOwner__removeSubscriptionNow__Lcom_raquo_airstream_ownership_DynamicSubscription__V($thiz, subscription) {
+ var index = $uI($thiz.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions.indexOf(subscription));
+ if ((index !== (-1))) {
+ $thiz.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions.splice(index, 1);
+ var this$1 = $n($thiz.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner);
+ if ((!this$1.isEmpty__Z())) {
+ $n(subscription).onDeactivate__V()
+ }
+ } else {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), "Can not remove DynamicSubscription from DynamicOwner: subscription not found. Did you already kill it?")
+ }
+}
+function $p_Lcom_raquo_airstream_ownership_DynamicOwner__removePendingSubscriptionsNow__V($thiz) {
+ while (($uI($thiz.Lcom_raquo_airstream_ownership_DynamicOwner__f_pendingSubscriptionRemovals.length) > 0)) {
+ var subscriptionToRemove = $as_Lcom_raquo_airstream_ownership_DynamicSubscription($thiz.Lcom_raquo_airstream_ownership_DynamicOwner__f_pendingSubscriptionRemovals.shift());
+ $p_Lcom_raquo_airstream_ownership_DynamicOwner__removeSubscriptionNow__Lcom_raquo_airstream_ownership_DynamicSubscription__V($thiz, subscriptionToRemove)
+ }
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_ownership_DynamicOwner(onAccessAfterKilled) {
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_onAccessAfterKilled = null;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions = null;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_isSafeToRemoveSubscription = false;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_pendingSubscriptionRemovals = null;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner = null;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_numPrependedSubs = 0;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_onAccessAfterKilled = onAccessAfterKilled;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions = $m_Lcom_raquo_ew_JsArray$().apply__sci_Seq__Lcom_raquo_ew_JsArray($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_airstream_ownership_DynamicSubscription.getArrayOf().constr)([])));
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_isSafeToRemoveSubscription = true;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_pendingSubscriptionRemovals = $m_Lcom_raquo_ew_JsArray$().apply__sci_Seq__Lcom_raquo_ew_JsArray($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_airstream_ownership_DynamicSubscription.getArrayOf().constr)([])));
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner = $m_s_None$();
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_numPrependedSubs = 0
+}
+$c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype = new $h_O();
+$c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype.constructor = $c_Lcom_raquo_airstream_ownership_DynamicOwner;
+/** @constructor */
+function $h_Lcom_raquo_airstream_ownership_DynamicOwner() {
+ /**/
+}
+$h_Lcom_raquo_airstream_ownership_DynamicOwner.prototype = $c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype;
+$c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype.activate__V = (function() {
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner);
+ if ((!(!this$1.isEmpty__Z()))) {
+ var this$2 = $m_Lcom_raquo_airstream_core_Transaction$onStart$();
+ this$2.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = ((1 + this$2.Lcom_raquo_airstream_core_Transaction$onStart$__f_level) | 0);
+ try {
+ var newOwner = new $c_Lcom_raquo_airstream_ownership_OneTimeOwner(this.Lcom_raquo_airstream_ownership_DynamicOwner__f_onAccessAfterKilled);
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner = new $c_s_Some(newOwner);
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_isSafeToRemoveSubscription = false;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_numPrependedSubs = 0;
+ var i = 0;
+ var originalNumSubs = $uI(this.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions.length);
+ while ((i < originalNumSubs)) {
+ var ix = ((i + this.Lcom_raquo_airstream_ownership_DynamicOwner__f_numPrependedSubs) | 0);
+ var sub = $as_Lcom_raquo_airstream_ownership_DynamicSubscription(this.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions[ix]);
+ $n(sub).onActivate__Lcom_raquo_airstream_ownership_Owner__V(newOwner);
+ i = ((1 + i) | 0)
+ };
+ $p_Lcom_raquo_airstream_ownership_DynamicOwner__removePendingSubscriptionsNow__V(this);
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_isSafeToRemoveSubscription = true;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_numPrependedSubs = 0
+ } finally {
+ this$2.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = (((-1) + this$2.Lcom_raquo_airstream_core_Transaction$onStart$__f_level) | 0);
+ if ((this$2.Lcom_raquo_airstream_core_Transaction$onStart$__f_level === 0)) {
+ $p_Lcom_raquo_airstream_core_Transaction$onStart$__resolve__V(this$2)
+ }
+ }
+ } else {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), (("Can not activate " + this) + ": it is already active"))
+ }
+});
+$c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype.deactivate__V = (function() {
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner);
+ if ((!this$1.isEmpty__Z())) {
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_isSafeToRemoveSubscription = false;
+ var arr = this.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions;
+ var i = 0;
+ var len = $uI(arr.length);
+ while ((i < len)) {
+ var _$1 = arr[i];
+ var _$1$1 = $as_Lcom_raquo_airstream_ownership_DynamicSubscription(_$1);
+ $n(_$1$1).onDeactivate__V();
+ i = ((1 + i) | 0)
+ };
+ $p_Lcom_raquo_airstream_ownership_DynamicOwner__removePendingSubscriptionsNow__V(this);
+ var this$4 = $n(this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner);
+ if ((!this$4.isEmpty__Z())) {
+ var arg1 = this$4.get__O();
+ var _$2 = $as_Lcom_raquo_airstream_ownership_Owner(arg1);
+ var this$5 = $n(_$2);
+ this$5.killSubscriptions__V()
+ };
+ $p_Lcom_raquo_airstream_ownership_DynamicOwner__removePendingSubscriptionsNow__V(this);
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_isSafeToRemoveSubscription = true;
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner = $m_s_None$()
+ } else {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), "Can not deactivate DynamicOwner: it is not active")
+ }
+});
+$c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype.addSubscription__Lcom_raquo_airstream_ownership_DynamicSubscription__Z__V = (function(subscription, prepend) {
+ if (prepend) {
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_numPrependedSubs = ((1 + this.Lcom_raquo_airstream_ownership_DynamicOwner__f_numPrependedSubs) | 0);
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions.unshift(subscription)
+ } else {
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_subscriptions.push(subscription)
+ };
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner);
+ if ((!this$1.isEmpty__Z())) {
+ var arg1 = this$1.get__O();
+ var o = $as_Lcom_raquo_airstream_ownership_Owner(arg1);
+ $n(subscription).onActivate__Lcom_raquo_airstream_ownership_Owner__V(o)
+ }
+});
+$c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype.removeSubscription__Lcom_raquo_airstream_ownership_DynamicSubscription__V = (function(subscription) {
+ if (this.Lcom_raquo_airstream_ownership_DynamicOwner__f_isSafeToRemoveSubscription) {
+ $p_Lcom_raquo_airstream_ownership_DynamicOwner__removeSubscriptionNow__Lcom_raquo_airstream_ownership_DynamicSubscription__V(this, subscription)
+ } else {
+ this.Lcom_raquo_airstream_ownership_DynamicOwner__f_pendingSubscriptionRemovals.push(subscription)
+ }
+});
+function $as_Lcom_raquo_airstream_ownership_DynamicOwner(obj) {
+ return (((obj instanceof $c_Lcom_raquo_airstream_ownership_DynamicOwner) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.airstream.ownership.DynamicOwner"))
+}
+function $isArrayOf_Lcom_raquo_airstream_ownership_DynamicOwner(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_airstream_ownership_DynamicOwner)))
+}
+function $asArrayOf_Lcom_raquo_airstream_ownership_DynamicOwner(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_airstream_ownership_DynamicOwner(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.airstream.ownership.DynamicOwner;", depth))
+}
+var $d_Lcom_raquo_airstream_ownership_DynamicOwner = new $TypeData().initClass({
+ Lcom_raquo_airstream_ownership_DynamicOwner: 0
+}, false, "com.raquo.airstream.ownership.DynamicOwner", {
+ Lcom_raquo_airstream_ownership_DynamicOwner: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_ownership_DynamicOwner.prototype.$classData = $d_Lcom_raquo_airstream_ownership_DynamicOwner;
+/** @constructor */
+function $c_Lcom_raquo_airstream_ownership_DynamicSubscription(dynamicOwner, activate, prepend) {
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_dynamicOwner = null;
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_activate = null;
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_maybeCurrentSubscription = null;
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_dynamicOwner = dynamicOwner;
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_activate = activate;
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_maybeCurrentSubscription = $m_s_None$();
+ $n(dynamicOwner).addSubscription__Lcom_raquo_airstream_ownership_DynamicSubscription__Z__V(this, prepend)
+}
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype = new $h_O();
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype.constructor = $c_Lcom_raquo_airstream_ownership_DynamicSubscription;
+/** @constructor */
+function $h_Lcom_raquo_airstream_ownership_DynamicSubscription() {
+ /**/
+}
+$h_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype = $c_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype;
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype.kill__V = (function() {
+ $n(this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_dynamicOwner).removeSubscription__Lcom_raquo_airstream_ownership_DynamicSubscription__V(this)
+});
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype.onActivate__Lcom_raquo_airstream_ownership_Owner__V = (function(owner) {
+ var this$1 = $m_Lcom_raquo_airstream_core_Transaction$onStart$();
+ this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = ((1 + this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level) | 0);
+ try {
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_maybeCurrentSubscription = $as_s_Option($n(this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_activate).apply__O__O(owner))
+ } finally {
+ this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = (((-1) + this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level) | 0);
+ if ((this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level === 0)) {
+ $p_Lcom_raquo_airstream_core_Transaction$onStart$__resolve__V(this$1)
+ }
+ }
+});
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype.onDeactivate__V = (function() {
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_maybeCurrentSubscription);
+ if ((!this$1.isEmpty__Z())) {
+ var arg1 = this$1.get__O();
+ var currentSubscription = $as_Lcom_raquo_airstream_ownership_Subscription(arg1);
+ $n(currentSubscription).kill__V();
+ this.Lcom_raquo_airstream_ownership_DynamicSubscription__f_maybeCurrentSubscription = $m_s_None$()
+ }
+});
+function $as_Lcom_raquo_airstream_ownership_DynamicSubscription(obj) {
+ return (((obj instanceof $c_Lcom_raquo_airstream_ownership_DynamicSubscription) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.airstream.ownership.DynamicSubscription"))
+}
+function $isArrayOf_Lcom_raquo_airstream_ownership_DynamicSubscription(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_airstream_ownership_DynamicSubscription)))
+}
+function $asArrayOf_Lcom_raquo_airstream_ownership_DynamicSubscription(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_airstream_ownership_DynamicSubscription(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.airstream.ownership.DynamicSubscription;", depth))
+}
+var $d_Lcom_raquo_airstream_ownership_DynamicSubscription = new $TypeData().initClass({
+ Lcom_raquo_airstream_ownership_DynamicSubscription: 0
+}, false, "com.raquo.airstream.ownership.DynamicSubscription", {
+ Lcom_raquo_airstream_ownership_DynamicSubscription: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription.prototype.$classData = $d_Lcom_raquo_airstream_ownership_DynamicSubscription;
+/** @constructor */
+function $c_Lcom_raquo_airstream_ownership_DynamicSubscription$() {
+ /**/
+}
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype.constructor = $c_Lcom_raquo_airstream_ownership_DynamicSubscription$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_ownership_DynamicSubscription$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype = $c_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype;
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype.unsafe__Lcom_raquo_airstream_ownership_DynamicOwner__F1__Z__Lcom_raquo_airstream_ownership_DynamicSubscription = (function(dynamicOwner, activate, prepend) {
+ return new $c_Lcom_raquo_airstream_ownership_DynamicSubscription(dynamicOwner, new $c_sjsr_AnonFunction1(((owner) => {
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ var value = $n(activate).apply__O__O(owner$1);
+ return new $c_s_Some(value)
+ })), prepend)
+});
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype.subscribeCallback__Lcom_raquo_airstream_ownership_DynamicOwner__F1__Z__Lcom_raquo_airstream_ownership_DynamicSubscription = (function(dynamicOwner, activate, prepend) {
+ return new $c_Lcom_raquo_airstream_ownership_DynamicSubscription(dynamicOwner, new $c_sjsr_AnonFunction1(((owner) => {
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ $n(activate).apply__O__O(owner$1);
+ return $m_s_None$()
+ })), prepend)
+});
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype.subscribeFn__Lcom_raquo_airstream_ownership_DynamicOwner__Lcom_raquo_airstream_core_Observable__F1__Lcom_raquo_airstream_ownership_DynamicSubscription = (function(dynamicOwner, observable, onNext) {
+ return $m_Lcom_raquo_airstream_ownership_DynamicSubscription$().unsafe__Lcom_raquo_airstream_ownership_DynamicOwner__F1__Z__Lcom_raquo_airstream_ownership_DynamicSubscription(dynamicOwner, new $c_sjsr_AnonFunction1(((owner) => {
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ var this$2 = $n(observable);
+ return $f_Lcom_raquo_airstream_core_BaseObservable__foreach__F1__Lcom_raquo_airstream_ownership_Owner__Lcom_raquo_airstream_ownership_Subscription(this$2, onNext, owner$1)
+ })), false)
+});
+var $d_Lcom_raquo_airstream_ownership_DynamicSubscription$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_ownership_DynamicSubscription$: 0
+}, false, "com.raquo.airstream.ownership.DynamicSubscription$", {
+ Lcom_raquo_airstream_ownership_DynamicSubscription$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_ownership_DynamicSubscription$.prototype.$classData = $d_Lcom_raquo_airstream_ownership_DynamicSubscription$;
+var $n_Lcom_raquo_airstream_ownership_DynamicSubscription$;
+function $m_Lcom_raquo_airstream_ownership_DynamicSubscription$() {
+ if ((!$n_Lcom_raquo_airstream_ownership_DynamicSubscription$)) {
+ $n_Lcom_raquo_airstream_ownership_DynamicSubscription$ = new $c_Lcom_raquo_airstream_ownership_DynamicSubscription$()
+ };
+ return $n_Lcom_raquo_airstream_ownership_DynamicSubscription$
+}
+function $f_Lcom_raquo_airstream_ownership_Owner__$init$__V($thiz) {
+ $thiz.Lcom_raquo_airstream_ownership_OneTimeOwner__f_subscriptions = $m_Lcom_raquo_ew_JsArray$().apply__sci_Seq__Lcom_raquo_ew_JsArray($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_airstream_ownership_Subscription.getArrayOf().constr)([])))
+}
+function $f_Lcom_raquo_airstream_ownership_Owner__killSubscriptions__V($thiz) {
+ var arr = $thiz.Lcom_raquo_airstream_ownership_OneTimeOwner__f_subscriptions;
+ var i = 0;
+ var len = $uI(arr.length);
+ while ((i < len)) {
+ var _$1 = arr[i];
+ var _$1$1 = $as_Lcom_raquo_airstream_ownership_Subscription(_$1);
+ var this$3 = $n(_$1$1);
+ $p_Lcom_raquo_airstream_ownership_Subscription__safeCleanup__V(this$3);
+ i = ((1 + i) | 0)
+ };
+ $thiz.Lcom_raquo_airstream_ownership_OneTimeOwner__f_subscriptions.length = 0
+}
+function $f_Lcom_raquo_airstream_ownership_Owner__onKilledExternally__Lcom_raquo_airstream_ownership_Subscription__V($thiz, subscription) {
+ var index = $uI($thiz.Lcom_raquo_airstream_ownership_OneTimeOwner__f_subscriptions.indexOf(subscription));
+ if ((index !== (-1))) {
+ $thiz.Lcom_raquo_airstream_ownership_OneTimeOwner__f_subscriptions.splice(index, 1)
+ } else {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), "Can not remove Subscription from Owner: subscription not found.")
+ }
+}
+function $f_Lcom_raquo_airstream_ownership_Owner__own__Lcom_raquo_airstream_ownership_Subscription__V($thiz, subscription) {
+ $thiz.Lcom_raquo_airstream_ownership_OneTimeOwner__f_subscriptions.push(subscription)
+}
+function $is_Lcom_raquo_airstream_ownership_Owner(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lcom_raquo_airstream_ownership_Owner)))
+}
+function $as_Lcom_raquo_airstream_ownership_Owner(obj) {
+ return (($is_Lcom_raquo_airstream_ownership_Owner(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.airstream.ownership.Owner"))
+}
+function $isArrayOf_Lcom_raquo_airstream_ownership_Owner(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_airstream_ownership_Owner)))
+}
+function $asArrayOf_Lcom_raquo_airstream_ownership_Owner(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_airstream_ownership_Owner(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.airstream.ownership.Owner;", depth))
+}
+function $p_Lcom_raquo_airstream_ownership_Subscription__safeCleanup__V($thiz) {
+ if ((!$thiz.Lcom_raquo_airstream_ownership_Subscription__f__isKilled)) {
+ $n($thiz.Lcom_raquo_airstream_ownership_Subscription__f_cleanup).apply__O();
+ $thiz.Lcom_raquo_airstream_ownership_Subscription__f__isKilled = true
+ } else {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), "Can not kill Subscription: it was already killed.")
+ }
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_ownership_Subscription(owner, cleanup) {
+ this.Lcom_raquo_airstream_ownership_Subscription__f_owner = null;
+ this.Lcom_raquo_airstream_ownership_Subscription__f_cleanup = null;
+ this.Lcom_raquo_airstream_ownership_Subscription__f__isKilled = false;
+ this.Lcom_raquo_airstream_ownership_Subscription__f_owner = owner;
+ this.Lcom_raquo_airstream_ownership_Subscription__f_cleanup = cleanup;
+ this.Lcom_raquo_airstream_ownership_Subscription__f__isKilled = false;
+ $n(owner).own__Lcom_raquo_airstream_ownership_Subscription__V(this)
+}
+$c_Lcom_raquo_airstream_ownership_Subscription.prototype = new $h_O();
+$c_Lcom_raquo_airstream_ownership_Subscription.prototype.constructor = $c_Lcom_raquo_airstream_ownership_Subscription;
+/** @constructor */
+function $h_Lcom_raquo_airstream_ownership_Subscription() {
+ /**/
+}
+$h_Lcom_raquo_airstream_ownership_Subscription.prototype = $c_Lcom_raquo_airstream_ownership_Subscription.prototype;
+$c_Lcom_raquo_airstream_ownership_Subscription.prototype.kill__V = (function() {
+ $p_Lcom_raquo_airstream_ownership_Subscription__safeCleanup__V(this);
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_Subscription__f_owner);
+ $f_Lcom_raquo_airstream_ownership_Owner__onKilledExternally__Lcom_raquo_airstream_ownership_Subscription__V(this$1, this)
+});
+function $as_Lcom_raquo_airstream_ownership_Subscription(obj) {
+ return (((obj instanceof $c_Lcom_raquo_airstream_ownership_Subscription) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.airstream.ownership.Subscription"))
+}
+function $isArrayOf_Lcom_raquo_airstream_ownership_Subscription(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_airstream_ownership_Subscription)))
+}
+function $asArrayOf_Lcom_raquo_airstream_ownership_Subscription(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_airstream_ownership_Subscription(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.airstream.ownership.Subscription;", depth))
+}
+var $d_Lcom_raquo_airstream_ownership_Subscription = new $TypeData().initClass({
+ Lcom_raquo_airstream_ownership_Subscription: 0
+}, false, "com.raquo.airstream.ownership.Subscription", {
+ Lcom_raquo_airstream_ownership_Subscription: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_ownership_Subscription.prototype.$classData = $d_Lcom_raquo_airstream_ownership_Subscription;
+/** @constructor */
+function $c_Lcom_raquo_airstream_ownership_TransferableSubscription(activate, deactivate) {
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_activate = null;
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_deactivate = null;
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription = null;
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress = false;
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_activate = activate;
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_deactivate = deactivate;
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription = $m_s_None$();
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress = false
+}
+$c_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype = new $h_O();
+$c_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype.constructor = $c_Lcom_raquo_airstream_ownership_TransferableSubscription;
+/** @constructor */
+function $h_Lcom_raquo_airstream_ownership_TransferableSubscription() {
+ /**/
+}
+$h_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype = $c_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype;
+$c_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype.isCurrentOwnerActive__Z = (function() {
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription);
+ if ((!this$1.isEmpty__Z())) {
+ var arg1 = this$1.get__O();
+ var _$1 = $as_Lcom_raquo_airstream_ownership_DynamicSubscription(arg1);
+ var this$2 = $n(_$1);
+ var this$3 = $n(this$2.Lcom_raquo_airstream_ownership_DynamicSubscription__f_dynamicOwner);
+ var this$4 = $n(this$3.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner);
+ return (!this$4.isEmpty__Z())
+ } else {
+ return false
+ }
+});
+$c_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype.setOwner__Lcom_raquo_airstream_ownership_DynamicOwner__V = (function(nextOwner) {
+ if (this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress) {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), "Unable to set owner on DynamicTransferableSubscription while a transfer on this subscription is already in progress.")
+ };
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription);
+ if ((!this$1.isEmpty__Z())) {
+ var arg1 = this$1.get__O();
+ var _$2 = $as_Lcom_raquo_airstream_ownership_DynamicSubscription(arg1);
+ var this$2 = $n(_$2);
+ var x$2 = this$2.Lcom_raquo_airstream_ownership_DynamicSubscription__f_dynamicOwner;
+ if ((nextOwner === null)) {
+ var $$x1 = (x$2 === null)
+ } else {
+ var this$3 = $n(nextOwner);
+ var $$x1 = (this$3 === x$2)
+ }
+ } else {
+ var $$x1 = false
+ };
+ if ((!$$x1)) {
+ if (this.isCurrentOwnerActive__Z()) {
+ var this$4 = $n(nextOwner);
+ var this$5 = $n(this$4.Lcom_raquo_airstream_ownership_DynamicOwner__f__maybeCurrentOwner);
+ var $$x2 = (!this$5.isEmpty__Z())
+ } else {
+ var $$x2 = false
+ };
+ if ($$x2) {
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress = true
+ };
+ var this$6 = $n(this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription);
+ if ((!this$6.isEmpty__Z())) {
+ var arg1$1 = this$6.get__O();
+ var subscription = $as_Lcom_raquo_airstream_ownership_DynamicSubscription(arg1$1);
+ $n(subscription).kill__V();
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription = $m_s_None$()
+ };
+ var newPilotSubscription = $m_Lcom_raquo_airstream_ownership_DynamicSubscription$().unsafe__Lcom_raquo_airstream_ownership_DynamicOwner__F1__Z__Lcom_raquo_airstream_ownership_DynamicSubscription(nextOwner, new $c_sjsr_AnonFunction1(((parentOwner) => {
+ var parentOwner$1 = $as_Lcom_raquo_airstream_ownership_Owner(parentOwner);
+ if ((!this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress)) {
+ $n(this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_activate).apply__O()
+ };
+ return new $c_Lcom_raquo_airstream_ownership_Subscription(parentOwner$1, new $c_sjsr_AnonFunction0((() => {
+ if ((!this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress)) {
+ $n(this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_deactivate).apply__O()
+ }
+ })))
+ })), false);
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription = new $c_s_Some(newPilotSubscription);
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress = false
+ }
+});
+$c_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype.clearOwner__V = (function() {
+ if (this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_isLiveTransferInProgress) {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), "Unable to clear owner on DynamicTransferableSubscription while a transfer on this subscription is already in progress.")
+ };
+ var this$1 = $n(this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription);
+ if ((!this$1.isEmpty__Z())) {
+ var arg1 = this$1.get__O();
+ var subscription = $as_Lcom_raquo_airstream_ownership_DynamicSubscription(arg1);
+ $n(subscription).kill__V()
+ };
+ this.Lcom_raquo_airstream_ownership_TransferableSubscription__f_maybeSubscription = $m_s_None$()
+});
+var $d_Lcom_raquo_airstream_ownership_TransferableSubscription = new $TypeData().initClass({
+ Lcom_raquo_airstream_ownership_TransferableSubscription: 0
+}, false, "com.raquo.airstream.ownership.TransferableSubscription", {
+ Lcom_raquo_airstream_ownership_TransferableSubscription: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_ownership_TransferableSubscription.prototype.$classData = $d_Lcom_raquo_airstream_ownership_TransferableSubscription;
+/** @constructor */
+function $c_Lcom_raquo_airstream_state_Var$() {
+ /**/
+}
+$c_Lcom_raquo_airstream_state_Var$.prototype = new $h_O();
+$c_Lcom_raquo_airstream_state_Var$.prototype.constructor = $c_Lcom_raquo_airstream_state_Var$;
+/** @constructor */
+function $h_Lcom_raquo_airstream_state_Var$() {
+ /**/
+}
+$h_Lcom_raquo_airstream_state_Var$.prototype = $c_Lcom_raquo_airstream_state_Var$.prototype;
+$c_Lcom_raquo_airstream_state_Var$.prototype.apply__O__Lcom_raquo_airstream_state_Var = (function(initial) {
+ var initial$1 = new $c_s_util_Success(initial);
+ return new $c_Lcom_raquo_airstream_state_SourceVar(initial$1)
+});
+var $d_Lcom_raquo_airstream_state_Var$ = new $TypeData().initClass({
+ Lcom_raquo_airstream_state_Var$: 0
+}, false, "com.raquo.airstream.state.Var$", {
+ Lcom_raquo_airstream_state_Var$: 1,
+ O: 1
+});
+$c_Lcom_raquo_airstream_state_Var$.prototype.$classData = $d_Lcom_raquo_airstream_state_Var$;
+var $n_Lcom_raquo_airstream_state_Var$;
+function $m_Lcom_raquo_airstream_state_Var$() {
+ if ((!$n_Lcom_raquo_airstream_state_Var$)) {
+ $n_Lcom_raquo_airstream_state_Var$ = new $c_Lcom_raquo_airstream_state_Var$()
+ };
+ return $n_Lcom_raquo_airstream_state_Var$
+}
+function $as_Lcom_raquo_airstream_util_JsPriorityQueue(obj) {
+ return ((false || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.airstream.util.JsPriorityQueue"))
+}
+function $isArrayOf_Lcom_raquo_airstream_util_JsPriorityQueue(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_airstream_util_JsPriorityQueue)))
+}
+function $asArrayOf_Lcom_raquo_airstream_util_JsPriorityQueue(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_airstream_util_JsPriorityQueue(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.airstream.util.JsPriorityQueue;", depth))
+}
+/** @constructor */
+function $c_Lcom_raquo_ew_JsArray$() {
+ /**/
+}
+$c_Lcom_raquo_ew_JsArray$.prototype = new $h_O();
+$c_Lcom_raquo_ew_JsArray$.prototype.constructor = $c_Lcom_raquo_ew_JsArray$;
+/** @constructor */
+function $h_Lcom_raquo_ew_JsArray$() {
+ /**/
+}
+$h_Lcom_raquo_ew_JsArray$.prototype = $c_Lcom_raquo_ew_JsArray$.prototype;
+$c_Lcom_raquo_ew_JsArray$.prototype.apply__sci_Seq__Lcom_raquo_ew_JsArray = (function(items) {
+ return [...$m_sjsr_Compat$().toJSVarArgsImpl__sci_Seq__sjs_js_Array(items)]
+});
+var $d_Lcom_raquo_ew_JsArray$ = new $TypeData().initClass({
+ Lcom_raquo_ew_JsArray$: 0
+}, false, "com.raquo.ew.JsArray$", {
+ Lcom_raquo_ew_JsArray$: 1,
+ O: 1
+});
+$c_Lcom_raquo_ew_JsArray$.prototype.$classData = $d_Lcom_raquo_ew_JsArray$;
+var $n_Lcom_raquo_ew_JsArray$;
+function $m_Lcom_raquo_ew_JsArray$() {
+ if ((!$n_Lcom_raquo_ew_JsArray$)) {
+ $n_Lcom_raquo_ew_JsArray$ = new $c_Lcom_raquo_ew_JsArray$()
+ };
+ return $n_Lcom_raquo_ew_JsArray$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_DomApi$() {
+ this.Lcom_raquo_laminar_DomApi$__f_classNamesSeparatorRegex = null;
+ $n_Lcom_raquo_laminar_DomApi$ = this;
+ document.createElement("template");
+ this.createSvgElement__Lcom_raquo_laminar_tags_SvgTag__Lorg_scalajs_dom_SVGElement($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).svg__Lcom_raquo_laminar_tags_SvgTag());
+ this.Lcom_raquo_laminar_DomApi$__f_classNamesSeparatorRegex = new RegExp(" ", "g")
+}
+$c_Lcom_raquo_laminar_DomApi$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_DomApi$.prototype.constructor = $c_Lcom_raquo_laminar_DomApi$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_DomApi$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_DomApi$.prototype = $c_Lcom_raquo_laminar_DomApi$.prototype;
+$c_Lcom_raquo_laminar_DomApi$.prototype.appendChild__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z = (function(parent, child) {
+ try {
+ parent.appendChild(child);
+ return true
+ } catch (e) {
+ var e$2 = ((e instanceof $c_jl_Throwable) ? e : new $c_sjs_js_JavaScriptException(e));
+ if (((e$2 instanceof $c_sjs_js_JavaScriptException) && $uZ(($n($as_sjs_js_JavaScriptException(e$2)).sjs_js_JavaScriptException__f_exception instanceof DOMException)))) {
+ return false
+ };
+ throw ((e$2 instanceof $c_sjs_js_JavaScriptException) ? e$2.sjs_js_JavaScriptException__f_exception : $n(e$2))
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.removeChild__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z = (function(parent, child) {
+ try {
+ parent.removeChild(child);
+ return true
+ } catch (e) {
+ var e$2 = ((e instanceof $c_jl_Throwable) ? e : new $c_sjs_js_JavaScriptException(e));
+ if (((e$2 instanceof $c_sjs_js_JavaScriptException) && $uZ(($n($as_sjs_js_JavaScriptException(e$2)).sjs_js_JavaScriptException__f_exception instanceof DOMException)))) {
+ return false
+ };
+ throw ((e$2 instanceof $c_sjs_js_JavaScriptException) ? e$2.sjs_js_JavaScriptException__f_exception : $n(e$2))
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.insertBefore__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z = (function(parent, newChild, referenceChild) {
+ try {
+ parent.insertBefore(newChild, referenceChild);
+ return true
+ } catch (e) {
+ var e$2 = ((e instanceof $c_jl_Throwable) ? e : new $c_sjs_js_JavaScriptException(e));
+ if (((e$2 instanceof $c_sjs_js_JavaScriptException) && $uZ(($n($as_sjs_js_JavaScriptException(e$2)).sjs_js_JavaScriptException__f_exception instanceof DOMException)))) {
+ return false
+ };
+ throw ((e$2 instanceof $c_sjs_js_JavaScriptException) ? e$2.sjs_js_JavaScriptException__f_exception : $n(e$2))
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.insertAfter__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z = (function(parent, newChild, referenceChild) {
+ try {
+ parent.insertBefore(newChild, referenceChild.nextSibling);
+ return true
+ } catch (e) {
+ var e$2 = ((e instanceof $c_jl_Throwable) ? e : new $c_sjs_js_JavaScriptException(e));
+ if (((e$2 instanceof $c_sjs_js_JavaScriptException) && $uZ(($n($as_sjs_js_JavaScriptException(e$2)).sjs_js_JavaScriptException__f_exception instanceof DOMException)))) {
+ return false
+ };
+ throw ((e$2 instanceof $c_sjs_js_JavaScriptException) ? e$2.sjs_js_JavaScriptException__f_exception : $n(e$2))
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.replaceChild__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z = (function(parent, newChild, oldChild) {
+ try {
+ parent.replaceChild(newChild, oldChild);
+ return true
+ } catch (e) {
+ var e$2 = ((e instanceof $c_jl_Throwable) ? e : new $c_sjs_js_JavaScriptException(e));
+ if (((e$2 instanceof $c_sjs_js_JavaScriptException) && $uZ(($n($as_sjs_js_JavaScriptException(e$2)).sjs_js_JavaScriptException__f_exception instanceof DOMException)))) {
+ return false
+ };
+ throw ((e$2 instanceof $c_sjs_js_JavaScriptException) ? e$2.sjs_js_JavaScriptException__f_exception : $n(e$2))
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.isDescendantOf__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z = (function(node, ancestor) {
+ var node$tailLocal1 = node;
+ while (true) {
+ if ((node$tailLocal1.parentNode !== null)) {
+ var effectiveParentNode = node$tailLocal1.parentNode
+ } else {
+ var maybeShadowHost = node$tailLocal1.host;
+ var this$2 = $m_s_$less$colon$less$();
+ var ev = this$2.s_$less$colon$less$__f_singleton;
+ var effectiveParentNode = ((maybeShadowHost === (void 0)) ? ($n(ev), null) : maybeShadowHost)
+ };
+ if ((effectiveParentNode !== null)) {
+ if ($m_sr_BoxesRunTime$().equals__O__O__Z(ancestor, effectiveParentNode)) {
+ return true
+ } else {
+ node$tailLocal1 = effectiveParentNode
+ }
+ } else {
+ return false
+ }
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.addEventListener__Lorg_scalajs_dom_Element__Lcom_raquo_laminar_modifiers_EventListener__V = (function(element, listener) {
+ var prop = $n(listener).Lcom_raquo_laminar_modifiers_EventListener__f_eventProcessor;
+ element.addEventListener($n($n(prop).Lcom_raquo_laminar_keys_EventProcessor__f_eventProp).Lcom_raquo_laminar_keys_EventProp__f_name, $n(listener).Lcom_raquo_laminar_modifiers_EventListener__f_domCallback, $n(listener).Lcom_raquo_laminar_modifiers_EventListener__f_options)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.removeEventListener__Lorg_scalajs_dom_Element__Lcom_raquo_laminar_modifiers_EventListener__V = (function(element, listener) {
+ var prop = $n(listener).Lcom_raquo_laminar_modifiers_EventListener__f_eventProcessor;
+ element.removeEventListener($n($n(prop).Lcom_raquo_laminar_keys_EventProcessor__f_eventProp).Lcom_raquo_laminar_keys_EventProp__f_name, $n(listener).Lcom_raquo_laminar_modifiers_EventListener__f_domCallback, $n(listener).Lcom_raquo_laminar_modifiers_EventListener__f_options)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.createHtmlElement__Lcom_raquo_laminar_tags_HtmlTag__Lorg_scalajs_dom_HTMLElement = (function(tag) {
+ return document.createElement($n(tag).Lcom_raquo_laminar_tags_HtmlTag__f_name)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.getHtmlAttribute__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__O = (function(element, attr) {
+ var x = this.getHtmlAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__O(element, attr);
+ if ((x === (void 0))) {
+ return (void 0)
+ } else {
+ var domValue = $as_T(x);
+ var a = $n($n(attr).Lcom_raquo_laminar_keys_HtmlAttr__f_codec).decode__O__O(domValue);
+ return a
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.getHtmlAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__O = (function(element, attr) {
+ var domValue = $as_T($n(element).Lcom_raquo_laminar_nodes_ReactiveHtmlElement__f_ref.getAttributeNS(null, $n(attr).Lcom_raquo_laminar_keys_HtmlAttr__f_name));
+ return ((domValue !== null) ? domValue : (void 0))
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.setHtmlAttribute__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__O__V = (function(element, attr, value) {
+ var domValue = $as_T($n($n(attr).Lcom_raquo_laminar_keys_HtmlAttr__f_codec).encode__O__O(value));
+ this.setHtmlAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__T__V(element, attr, domValue)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.setHtmlAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__T__V = (function(element, attr, domValue) {
+ if ((domValue === null)) {
+ this.removeHtmlAttribute__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__V(element, attr)
+ } else {
+ $n(element).Lcom_raquo_laminar_nodes_ReactiveHtmlElement__f_ref.setAttribute($n(attr).Lcom_raquo_laminar_keys_HtmlAttr__f_name, domValue)
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.removeHtmlAttribute__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__V = (function(element, attr) {
+ $n(element).Lcom_raquo_laminar_nodes_ReactiveHtmlElement__f_ref.removeAttribute($n(attr).Lcom_raquo_laminar_keys_HtmlAttr__f_name)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.getHtmlPropertyRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O = (function(element, prop) {
+ return $n(element).Lcom_raquo_laminar_nodes_ReactiveHtmlElement__f_ref[$n(prop).Lcom_raquo_laminar_keys_HtmlProp__f_name]
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.setHtmlProperty__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O__V = (function(element, prop, value) {
+ var domValue = $n($n(prop).Lcom_raquo_laminar_keys_HtmlProp__f_codec).encode__O__O(value);
+ this.setHtmlPropertyRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O__V(element, prop, domValue)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.setHtmlPropertyRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O__V = (function(element, prop, value) {
+ $n(element).Lcom_raquo_laminar_nodes_ReactiveHtmlElement__f_ref[$n(prop).Lcom_raquo_laminar_keys_HtmlProp__f_name] = value
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.createSvgElement__Lcom_raquo_laminar_tags_SvgTag__Lorg_scalajs_dom_SVGElement = (function(tag) {
+ return document.createElementNS("http://www.w3.org/2000/svg", $n(tag).Lcom_raquo_laminar_tags_SvgTag__f_name)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.getSvgAttribute__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__O = (function(element, attr) {
+ var x = this.getSvgAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__O(element, attr);
+ if ((x === (void 0))) {
+ return (void 0)
+ } else {
+ var domValue = $as_T(x);
+ var a = $n($n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_codec).decode__O__O(domValue);
+ return a
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.getSvgAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__O = (function(element, attr) {
+ var $$x2 = $n(element).Lcom_raquo_laminar_nodes_ReactiveSvgElement__f_ref;
+ var this$2 = $n($n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_namespaceUri);
+ var this$1 = $m_s_$less$colon$less$();
+ var ev = this$1.s_$less$colon$less$__f_singleton;
+ var $$x1 = $$x2.getAttributeNS($as_T((this$2.isEmpty__Z() ? ($n(ev), null) : this$2.get__O())), $n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_localName);
+ var domValue = $as_T($$x1);
+ return ((domValue !== null) ? domValue : (void 0))
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.setSvgAttribute__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__O__V = (function(element, attr, value) {
+ var domValue = $as_T($n($n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_codec).encode__O__O(value));
+ this.setSvgAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__T__V(element, attr, domValue)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.setSvgAttributeRaw__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__T__V = (function(element, attr, domValue) {
+ if ((domValue === null)) {
+ this.removeSvgAttribute__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__V(element, attr)
+ } else {
+ var this$1 = $n($n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_namespaceUri);
+ if (this$1.isEmpty__Z()) {
+ $n(element).Lcom_raquo_laminar_nodes_ReactiveSvgElement__f_ref.setAttribute($n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_name, domValue)
+ } else {
+ var arg1 = this$1.get__O();
+ var namespaceUri = $as_T(arg1);
+ $n(element).Lcom_raquo_laminar_nodes_ReactiveSvgElement__f_ref.setAttributeNS(namespaceUri, $n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_name, domValue)
+ }
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.removeSvgAttribute__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__V = (function(element, attr) {
+ var $$x1 = $n(element).Lcom_raquo_laminar_nodes_ReactiveSvgElement__f_ref;
+ var this$2 = $n($n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_namespaceUri);
+ var this$1 = $m_s_$less$colon$less$();
+ var ev = this$1.s_$less$colon$less$__f_singleton;
+ $$x1.removeAttributeNS($as_T((this$2.isEmpty__Z() ? ($n(ev), null) : this$2.get__O())), $n(attr).Lcom_raquo_laminar_keys_SvgAttr__f_localName)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.createCommentNode__T__Lorg_scalajs_dom_Comment = (function(text) {
+ return document.createComment(text)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.createTextNode__T__Lorg_scalajs_dom_Text = (function(text) {
+ return document.createTextNode(text)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.isCustomElement__Lorg_scalajs_dom_Element__Z = (function(element) {
+ var $$x1 = $m_sc_StringOps$();
+ var x = $as_T(element.tagName);
+ return $n($$x1).contains$extension__T__C__Z(x, 45)
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.getValue__Lorg_scalajs_dom_Element__O = (function(element) {
+ if ($uZ((element instanceof HTMLInputElement))) {
+ return $as_T(element.value)
+ } else if ($uZ((element instanceof HTMLTextAreaElement))) {
+ return $as_T(element.value)
+ } else if ($uZ((element instanceof HTMLSelectElement))) {
+ return $as_T(element.value)
+ } else if ($uZ((element instanceof HTMLButtonElement))) {
+ return $as_T(element.value)
+ } else if ($uZ((element instanceof HTMLOptionElement))) {
+ return $as_T(element.value)
+ } else if (this.isCustomElement__Lorg_scalajs_dom_Element__Z(element)) {
+ var x = element.value;
+ new $c_Lcom_raquo_laminar_DomApi$$anon$2();
+ if ((x === (void 0))) {
+ return (void 0)
+ } else if (((typeof x) === "string")) {
+ var s = $as_T(x);
+ return s
+ } else {
+ return (void 0)
+ }
+ } else {
+ return (void 0)
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.debugPath__Lorg_scalajs_dom_Node__sci_List__sci_List = (function(element, initial) {
+ var initial$tailLocal1 = initial;
+ var element$tailLocal1 = element;
+ while (true) {
+ var x54 = element$tailLocal1;
+ if ((x54 === null)) {
+ return initial$tailLocal1
+ };
+ var element$tailLocal1$tmp1 = element$tailLocal1.parentNode;
+ var elem$2 = this.debugNodeDescription__Lorg_scalajs_dom_Node__T(element$tailLocal1);
+ var this$1 = $n(initial$tailLocal1);
+ var initial$tailLocal1$tmp1 = new $c_sci_$colon$colon(elem$2, this$1);
+ element$tailLocal1 = element$tailLocal1$tmp1;
+ initial$tailLocal1 = initial$tailLocal1$tmp1
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.debugNodeDescription__Lorg_scalajs_dom_Node__T = (function(node) {
+ if ($uZ((node instanceof HTMLElement))) {
+ var id = $as_T(node.id);
+ $m_sc_StringOps$();
+ var this$3 = $n(id);
+ if ((!(this$3 === ""))) {
+ var suffixStr = ("#" + id)
+ } else {
+ var classes = $as_T(node.className);
+ $m_sc_StringOps$();
+ var this$6 = $n(classes);
+ if ((!(this$6 === ""))) {
+ var self = classes.replace(this.Lcom_raquo_laminar_DomApi$__f_classNamesSeparatorRegex, ".");
+ var suffixStr = ("." + $as_T(self))
+ } else {
+ var suffixStr = ""
+ }
+ };
+ var str = $as_T(node.tagName);
+ var self$1 = str.toLowerCase();
+ return ($as_T(self$1) + suffixStr)
+ } else {
+ return $as_T(node.nodeName)
+ }
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.debugNodeOuterHtml__Lorg_scalajs_dom_Node__T = (function(node) {
+ return ($uZ((node instanceof Element)) ? $as_T(node.outerHTML) : ($uZ((node instanceof Text)) ? (("Text(" + $as_T(node.textContent)) + ")") : ($uZ((node instanceof Comment)) ? (("Comment(" + $as_T(node.textContent)) + ")") : ((node === null) ? "" : (("OtherNode(" + $dp_toString__T($n(node))) + ")")))))
+});
+var $d_Lcom_raquo_laminar_DomApi$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_DomApi$: 0
+}, false, "com.raquo.laminar.DomApi$", {
+ Lcom_raquo_laminar_DomApi$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_DomApi$.prototype.$classData = $d_Lcom_raquo_laminar_DomApi$;
+var $n_Lcom_raquo_laminar_DomApi$;
+function $m_Lcom_raquo_laminar_DomApi$() {
+ if ((!$n_Lcom_raquo_laminar_DomApi$)) {
+ $n_Lcom_raquo_laminar_DomApi$ = new $c_Lcom_raquo_laminar_DomApi$()
+ };
+ return $n_Lcom_raquo_laminar_DomApi$
+}
+function $f_Lcom_raquo_laminar_api_Airstream__$init$__V($thiz) {
+ $m_Lcom_raquo_airstream_core_Observer$();
+ $m_Lcom_raquo_airstream_core_AirstreamError$();
+ $thiz.Lcom_raquo_laminar_api_package$$anon$1__f_Var = $m_Lcom_raquo_airstream_state_Var$()
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_codecs_package$() {
+ this.Lcom_raquo_laminar_codecs_package$__f_StringAsIsCodec = null;
+ this.Lcom_raquo_laminar_codecs_package$__f_BooleanAsIsCodec = null;
+ $n_Lcom_raquo_laminar_codecs_package$ = this;
+ this.Lcom_raquo_laminar_codecs_package$__f_StringAsIsCodec = ($m_Lcom_raquo_laminar_codecs_package$(), new $c_Lcom_raquo_laminar_codecs_package$$anon$2());
+ $m_Lcom_raquo_laminar_codecs_package$();
+ new $c_Lcom_raquo_laminar_codecs_package$$anon$2();
+ this.Lcom_raquo_laminar_codecs_package$__f_BooleanAsIsCodec = ($m_Lcom_raquo_laminar_codecs_package$(), new $c_Lcom_raquo_laminar_codecs_package$$anon$2());
+ new $c_Lcom_raquo_laminar_codecs_package$$anon$1()
+}
+$c_Lcom_raquo_laminar_codecs_package$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_codecs_package$.prototype.constructor = $c_Lcom_raquo_laminar_codecs_package$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_codecs_package$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_codecs_package$.prototype = $c_Lcom_raquo_laminar_codecs_package$.prototype;
+var $d_Lcom_raquo_laminar_codecs_package$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_codecs_package$: 0
+}, false, "com.raquo.laminar.codecs.package$", {
+ Lcom_raquo_laminar_codecs_package$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_codecs_package$.prototype.$classData = $d_Lcom_raquo_laminar_codecs_package$;
+var $n_Lcom_raquo_laminar_codecs_package$;
+function $m_Lcom_raquo_laminar_codecs_package$() {
+ if ((!$n_Lcom_raquo_laminar_codecs_package$)) {
+ $n_Lcom_raquo_laminar_codecs_package$ = new $c_Lcom_raquo_laminar_codecs_package$()
+ };
+ return $n_Lcom_raquo_laminar_codecs_package$
+}
+function $f_Lcom_raquo_laminar_defs_complex_ComplexHtmlKeys__$init$__V($thiz) {
+ $thiz.Lcom_raquo_laminar_api_package$$anon$1__f_className = $f_Lcom_raquo_laminar_defs_complex_ComplexHtmlKeys__stringCompositeHtmlAttr__T__T__Lcom_raquo_laminar_keys_CompositeKey($thiz, "class", " ");
+ $thiz.Lcom_raquo_laminar_api_package$$anon$1__f_cls = $thiz.Lcom_raquo_laminar_api_package$$anon$1__f_className
+}
+function $f_Lcom_raquo_laminar_defs_complex_ComplexHtmlKeys__stringCompositeHtmlAttr__T__T__Lcom_raquo_laminar_keys_CompositeKey($thiz, name, separator) {
+ var attr = new $c_Lcom_raquo_laminar_keys_HtmlAttr(name, $m_Lcom_raquo_laminar_codecs_package$().Lcom_raquo_laminar_codecs_package$__f_StringAsIsCodec);
+ return new $c_Lcom_raquo_laminar_keys_CompositeKey(attr.Lcom_raquo_laminar_keys_HtmlAttr__f_name, new $c_sjsr_AnonFunction1(((el) => {
+ var el$1 = $as_Lcom_raquo_laminar_nodes_ReactiveHtmlElement(el);
+ var x = $m_Lcom_raquo_laminar_DomApi$().getHtmlAttribute__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__O(el$1, attr);
+ return $as_T(((x === (void 0)) ? "" : x))
+ })), new $c_sjsr_AnonFunction2(((el$2, value) => {
+ var el$3 = $as_Lcom_raquo_laminar_nodes_ReactiveHtmlElement(el$2);
+ var value$1 = $as_T(value);
+ $m_Lcom_raquo_laminar_DomApi$().setHtmlAttribute__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__O__V(el$3, attr, value$1)
+ })), separator)
+}
+function $f_Lcom_raquo_laminar_defs_complex_ComplexSvgKeys__$init$__V($thiz) {
+ $thiz.Lcom_raquo_laminar_api_Laminar$svg$__f_className = $f_Lcom_raquo_laminar_defs_complex_ComplexSvgKeys__stringCompositeSvgAttr__T__T__Lcom_raquo_laminar_keys_CompositeKey($thiz, "class", " ");
+ $thiz.Lcom_raquo_laminar_api_Laminar$svg$__f_cls = $thiz.Lcom_raquo_laminar_api_Laminar$svg$__f_className
+}
+function $f_Lcom_raquo_laminar_defs_complex_ComplexSvgKeys__stringCompositeSvgAttr__T__T__Lcom_raquo_laminar_keys_CompositeKey($thiz, name, separator) {
+ var attr = new $c_Lcom_raquo_laminar_keys_SvgAttr(name, $m_Lcom_raquo_laminar_codecs_package$().Lcom_raquo_laminar_codecs_package$__f_StringAsIsCodec, $m_s_None$());
+ return new $c_Lcom_raquo_laminar_keys_CompositeKey(attr.Lcom_raquo_laminar_keys_SvgAttr__f_name, new $c_sjsr_AnonFunction1(((el) => {
+ var el$1 = $as_Lcom_raquo_laminar_nodes_ReactiveSvgElement(el);
+ var x = $m_Lcom_raquo_laminar_DomApi$().getSvgAttribute__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__O(el$1, attr);
+ return $as_T(((x === (void 0)) ? "" : x))
+ })), new $c_sjsr_AnonFunction2(((el$2, value) => {
+ var el$3 = $as_Lcom_raquo_laminar_nodes_ReactiveSvgElement(el$2);
+ var value$1 = $as_T(value);
+ $m_Lcom_raquo_laminar_DomApi$().setSvgAttribute__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__O__V(el$3, attr, value$1)
+ })), separator)
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_CompositeKey$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_keys_CompositeKey$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_keys_CompositeKey$.prototype.constructor = $c_Lcom_raquo_laminar_keys_CompositeKey$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_CompositeKey$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_CompositeKey$.prototype = $c_Lcom_raquo_laminar_keys_CompositeKey$.prototype;
+$c_Lcom_raquo_laminar_keys_CompositeKey$.prototype.normalize__T__T__sci_List = (function(items, separator) {
+ var this$1 = $n(items);
+ if ((this$1 === "")) {
+ return $m_s_package$().s_package$__f_Nil
+ } else {
+ var arr = items.split(separator);
+ var arr$1 = arr.filter(((_$1) => {
+ var _$1$1 = $as_T(_$1);
+ $m_sc_StringOps$();
+ var this$9 = $n(_$1$1);
+ return (!(this$9 === ""))
+ }));
+ var this$13 = $ct_sjs_js_WrappedArray__sjs_js_Array__(new $c_sjs_js_WrappedArray(), arr$1);
+ $m_sci_List$();
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$13)
+ }
+});
+var $d_Lcom_raquo_laminar_keys_CompositeKey$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_CompositeKey$: 0
+}, false, "com.raquo.laminar.keys.CompositeKey$", {
+ Lcom_raquo_laminar_keys_CompositeKey$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_CompositeKey$.prototype.$classData = $d_Lcom_raquo_laminar_keys_CompositeKey$;
+var $n_Lcom_raquo_laminar_keys_CompositeKey$;
+function $m_Lcom_raquo_laminar_keys_CompositeKey$() {
+ if ((!$n_Lcom_raquo_laminar_keys_CompositeKey$)) {
+ $n_Lcom_raquo_laminar_keys_CompositeKey$ = new $c_Lcom_raquo_laminar_keys_CompositeKey$()
+ };
+ return $n_Lcom_raquo_laminar_keys_CompositeKey$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_EventProcessor(eventProp, shouldUseCapture, shouldBePassive, processor) {
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_eventProp = null;
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldUseCapture = false;
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldBePassive = false;
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_processor = null;
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_eventProp = eventProp;
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldUseCapture = shouldUseCapture;
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldBePassive = shouldBePassive;
+ this.Lcom_raquo_laminar_keys_EventProcessor__f_processor = processor
+}
+$c_Lcom_raquo_laminar_keys_EventProcessor.prototype = new $h_O();
+$c_Lcom_raquo_laminar_keys_EventProcessor.prototype.constructor = $c_Lcom_raquo_laminar_keys_EventProcessor;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_EventProcessor() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_EventProcessor.prototype = $c_Lcom_raquo_laminar_keys_EventProcessor.prototype;
+$c_Lcom_raquo_laminar_keys_EventProcessor.prototype.map__F1__Lcom_raquo_laminar_keys_EventProcessor = (function(project) {
+ var newProcessor = new $c_sjsr_AnonFunction1(((ev) => {
+ var this$2 = $n($as_s_Option($n(this.Lcom_raquo_laminar_keys_EventProcessor__f_processor).apply__O__O(ev)));
+ return (this$2.isEmpty__Z() ? $m_s_None$() : new $c_s_Some($n(project).apply__O__O(this$2.get__O())))
+ }));
+ return new $c_Lcom_raquo_laminar_keys_EventProcessor(this.Lcom_raquo_laminar_keys_EventProcessor__f_eventProp, this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldUseCapture, this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldBePassive, newProcessor)
+});
+$c_Lcom_raquo_laminar_keys_EventProcessor.prototype.mapToValue__Lcom_raquo_laminar_keys_EventProcessor = (function() {
+ var newProcessor = new $c_sjsr_AnonFunction1(((ev) => {
+ var this$2 = $n($as_s_Option($n(this.Lcom_raquo_laminar_keys_EventProcessor__f_processor).apply__O__O(ev)));
+ if (this$2.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ this$2.get__O();
+ var x = $m_Lcom_raquo_laminar_DomApi$().getValue__Lorg_scalajs_dom_Element__O(ev.target);
+ return new $c_s_Some($as_T(((x === (void 0)) ? "" : x)))
+ }
+ }));
+ return new $c_Lcom_raquo_laminar_keys_EventProcessor(this.Lcom_raquo_laminar_keys_EventProcessor__f_eventProp, this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldUseCapture, this.Lcom_raquo_laminar_keys_EventProcessor__f_shouldBePassive, newProcessor)
+});
+var $d_Lcom_raquo_laminar_keys_EventProcessor = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_EventProcessor: 0
+}, false, "com.raquo.laminar.keys.EventProcessor", {
+ Lcom_raquo_laminar_keys_EventProcessor: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_EventProcessor.prototype.$classData = $d_Lcom_raquo_laminar_keys_EventProcessor;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_EventProcessor$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_keys_EventProcessor$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_keys_EventProcessor$.prototype.constructor = $c_Lcom_raquo_laminar_keys_EventProcessor$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_EventProcessor$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_EventProcessor$.prototype = $c_Lcom_raquo_laminar_keys_EventProcessor$.prototype;
+$c_Lcom_raquo_laminar_keys_EventProcessor$.prototype.empty__Lcom_raquo_laminar_keys_EventProp__Z__Z__Lcom_raquo_laminar_keys_EventProcessor = (function(eventProp, shouldUseCapture, shouldBePassive) {
+ return new $c_Lcom_raquo_laminar_keys_EventProcessor(eventProp, shouldUseCapture, shouldBePassive, new $c_sjsr_AnonFunction1(((_$11) => new $c_s_Some(_$11))))
+});
+var $d_Lcom_raquo_laminar_keys_EventProcessor$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_EventProcessor$: 0
+}, false, "com.raquo.laminar.keys.EventProcessor$", {
+ Lcom_raquo_laminar_keys_EventProcessor$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_EventProcessor$.prototype.$classData = $d_Lcom_raquo_laminar_keys_EventProcessor$;
+var $n_Lcom_raquo_laminar_keys_EventProcessor$;
+function $m_Lcom_raquo_laminar_keys_EventProcessor$() {
+ if ((!$n_Lcom_raquo_laminar_keys_EventProcessor$)) {
+ $n_Lcom_raquo_laminar_keys_EventProcessor$ = new $c_Lcom_raquo_laminar_keys_EventProcessor$()
+ };
+ return $n_Lcom_raquo_laminar_keys_EventProcessor$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_Key() {
+ /**/
+}
+$c_Lcom_raquo_laminar_keys_Key.prototype = new $h_O();
+$c_Lcom_raquo_laminar_keys_Key.prototype.constructor = $c_Lcom_raquo_laminar_keys_Key;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_Key() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_Key.prototype = $c_Lcom_raquo_laminar_keys_Key.prototype;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_SvgAttr$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_keys_SvgAttr$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_keys_SvgAttr$.prototype.constructor = $c_Lcom_raquo_laminar_keys_SvgAttr$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_SvgAttr$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_SvgAttr$.prototype = $c_Lcom_raquo_laminar_keys_SvgAttr$.prototype;
+$c_Lcom_raquo_laminar_keys_SvgAttr$.prototype.namespaceUri__T__T = (function(namespace) {
+ switch (namespace) {
+ case "svg": {
+ return "http://www.w3.org/2000/svg";
+ break
+ }
+ case "xlink": {
+ return "http://www.w3.org/1999/xlink";
+ break
+ }
+ case "xml": {
+ return "http://www.w3.org/XML/1998/namespace";
+ break
+ }
+ case "xmlns": {
+ return "http://www.w3.org/2000/xmlns/";
+ break
+ }
+ default: {
+ throw new $c_s_MatchError(namespace)
+ }
+ }
+});
+var $d_Lcom_raquo_laminar_keys_SvgAttr$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_SvgAttr$: 0
+}, false, "com.raquo.laminar.keys.SvgAttr$", {
+ Lcom_raquo_laminar_keys_SvgAttr$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_SvgAttr$.prototype.$classData = $d_Lcom_raquo_laminar_keys_SvgAttr$;
+var $n_Lcom_raquo_laminar_keys_SvgAttr$;
+function $m_Lcom_raquo_laminar_keys_SvgAttr$() {
+ if ((!$n_Lcom_raquo_laminar_keys_SvgAttr$)) {
+ $n_Lcom_raquo_laminar_keys_SvgAttr$ = new $c_Lcom_raquo_laminar_keys_SvgAttr$()
+ };
+ return $n_Lcom_raquo_laminar_keys_SvgAttr$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_lifecycle_InsertContext(parentNode, sentinelNode, strictMode, extraNodeCount, extraNodes, extraNodesMap) {
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode = null;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode = null;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode = false;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount = 0;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodes = null;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap = null;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode = parentNode;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode = sentinelNode;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode = strictMode;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount = extraNodeCount;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodes = extraNodes;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap = extraNodesMap
+}
+$c_Lcom_raquo_laminar_lifecycle_InsertContext.prototype = new $h_O();
+$c_Lcom_raquo_laminar_lifecycle_InsertContext.prototype.constructor = $c_Lcom_raquo_laminar_lifecycle_InsertContext;
+/** @constructor */
+function $h_Lcom_raquo_laminar_lifecycle_InsertContext() {
+ /**/
+}
+$h_Lcom_raquo_laminar_lifecycle_InsertContext.prototype = $c_Lcom_raquo_laminar_lifecycle_InsertContext.prototype;
+$c_Lcom_raquo_laminar_lifecycle_InsertContext.prototype.forceSetStrictMode__V = (function() {
+ if ((this.Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode || (this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount !== 0))) {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), ("forceSetStrictMode invoked when not allowed, inside parent = " + $m_Lcom_raquo_laminar_DomApi$().debugNodeOuterHtml__Lorg_scalajs_dom_Node__T($n(this.Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode).ref__Lorg_scalajs_dom_Node())))
+ };
+ if ((this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap === null)) {
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap = new Map()
+ };
+ if ((!$uZ(($n(this.Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode).ref__Lorg_scalajs_dom_Node() instanceof Comment)))) {
+ var contentNode = this.Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode;
+ var newSentinelNode = new $c_Lcom_raquo_laminar_nodes_CommentNode("");
+ $m_Lcom_raquo_laminar_DomApi$().insertBefore__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z($n(this.Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode).ref__Lorg_scalajs_dom_Node(), newSentinelNode.Lcom_raquo_laminar_nodes_CommentNode__f_ref, $n(contentNode).ref__Lorg_scalajs_dom_Node());
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode = newSentinelNode;
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount = 1;
+ var this$1 = $n($m_s_package$().s_package$__f_Nil);
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodes = new $c_sci_$colon$colon(contentNode, this$1);
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap.set($n(contentNode).ref__Lorg_scalajs_dom_Node(), contentNode)
+ };
+ this.Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode = true
+});
+$c_Lcom_raquo_laminar_lifecycle_InsertContext.prototype.removeOldChildNodesFromDOM__Lcom_raquo_laminar_nodes_ChildNode__V = (function(after) {
+ var elem = this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount;
+ var elem$1 = 0;
+ elem$1 = elem;
+ while ((elem$1 > 0)) {
+ var prevChildRef = $n(after).ref__Lorg_scalajs_dom_Node().nextSibling;
+ if ((prevChildRef === null)) {
+ var ev$3 = 0;
+ elem$1 = ev$3
+ } else {
+ var maybePrevChild = this.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap.get(prevChildRef);
+ if ((maybePrevChild === (void 0))) {
+ var ev$4 = 0;
+ elem$1 = ev$4
+ } else if ((maybePrevChild !== (void 0))) {
+ var prevChild = $as_Lcom_raquo_laminar_nodes_ChildNode(maybePrevChild);
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().removeChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Z(this.Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode, prevChild);
+ var ev$5 = (((-1) + elem$1) | 0);
+ elem$1 = ev$5
+ }
+ }
+ }
+});
+function $as_Lcom_raquo_laminar_lifecycle_InsertContext(obj) {
+ return (((obj instanceof $c_Lcom_raquo_laminar_lifecycle_InsertContext) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.laminar.lifecycle.InsertContext"))
+}
+function $isArrayOf_Lcom_raquo_laminar_lifecycle_InsertContext(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_laminar_lifecycle_InsertContext)))
+}
+function $asArrayOf_Lcom_raquo_laminar_lifecycle_InsertContext(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_laminar_lifecycle_InsertContext(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.laminar.lifecycle.InsertContext;", depth))
+}
+var $d_Lcom_raquo_laminar_lifecycle_InsertContext = new $TypeData().initClass({
+ Lcom_raquo_laminar_lifecycle_InsertContext: 0
+}, false, "com.raquo.laminar.lifecycle.InsertContext", {
+ Lcom_raquo_laminar_lifecycle_InsertContext: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_lifecycle_InsertContext.prototype.$classData = $d_Lcom_raquo_laminar_lifecycle_InsertContext;
+/** @constructor */
+function $c_Lcom_raquo_laminar_lifecycle_InsertContext$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype.constructor = $c_Lcom_raquo_laminar_lifecycle_InsertContext$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_lifecycle_InsertContext$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype = $c_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype;
+$c_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype.reserveSpotContext__Lcom_raquo_laminar_nodes_ReactiveElement__Z__Lcom_raquo_laminar_lifecycle_InsertContext = (function(parentNode, strictMode) {
+ var sentinelNode = new $c_Lcom_raquo_laminar_nodes_CommentNode("");
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().appendChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Z(parentNode, sentinelNode);
+ return this.unsafeMakeReservedSpotContext__Lcom_raquo_laminar_nodes_ReactiveElement__Lcom_raquo_laminar_nodes_ChildNode__Z__Lcom_raquo_laminar_lifecycle_InsertContext(parentNode, sentinelNode, strictMode)
+});
+$c_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype.unsafeMakeReservedSpotContext__Lcom_raquo_laminar_nodes_ReactiveElement__Lcom_raquo_laminar_nodes_ChildNode__Z__Lcom_raquo_laminar_lifecycle_InsertContext = (function(parentNode, sentinelNode, strictMode) {
+ return new $c_Lcom_raquo_laminar_lifecycle_InsertContext(parentNode, sentinelNode, strictMode, 0, $m_s_package$().s_package$__f_Nil, (strictMode ? new Map() : null))
+});
+$c_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype.nodesToMap__sci_Seq__Lcom_raquo_ew_JsMap = (function(nodes) {
+ var acc = new Map();
+ $n(nodes).foreach__F1__V(new $c_sjsr_AnonFunction1(((node) => {
+ var node$1 = $as_Lcom_raquo_laminar_nodes_ChildNode(node);
+ return acc.set($n(node$1).ref__Lorg_scalajs_dom_Node(), node$1)
+ })));
+ return acc
+});
+var $d_Lcom_raquo_laminar_lifecycle_InsertContext$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_lifecycle_InsertContext$: 0
+}, false, "com.raquo.laminar.lifecycle.InsertContext$", {
+ Lcom_raquo_laminar_lifecycle_InsertContext$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_lifecycle_InsertContext$.prototype.$classData = $d_Lcom_raquo_laminar_lifecycle_InsertContext$;
+var $n_Lcom_raquo_laminar_lifecycle_InsertContext$;
+function $m_Lcom_raquo_laminar_lifecycle_InsertContext$() {
+ if ((!$n_Lcom_raquo_laminar_lifecycle_InsertContext$)) {
+ $n_Lcom_raquo_laminar_lifecycle_InsertContext$ = new $c_Lcom_raquo_laminar_lifecycle_InsertContext$()
+ };
+ return $n_Lcom_raquo_laminar_lifecycle_InsertContext$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_lifecycle_MountContext(thisNode, owner) {
+ this.Lcom_raquo_laminar_lifecycle_MountContext__f_thisNode = null;
+ this.Lcom_raquo_laminar_lifecycle_MountContext__f_owner = null;
+ this.Lcom_raquo_laminar_lifecycle_MountContext__f_thisNode = thisNode;
+ this.Lcom_raquo_laminar_lifecycle_MountContext__f_owner = owner
+}
+$c_Lcom_raquo_laminar_lifecycle_MountContext.prototype = new $h_O();
+$c_Lcom_raquo_laminar_lifecycle_MountContext.prototype.constructor = $c_Lcom_raquo_laminar_lifecycle_MountContext;
+/** @constructor */
+function $h_Lcom_raquo_laminar_lifecycle_MountContext() {
+ /**/
+}
+$h_Lcom_raquo_laminar_lifecycle_MountContext.prototype = $c_Lcom_raquo_laminar_lifecycle_MountContext.prototype;
+function $as_Lcom_raquo_laminar_lifecycle_MountContext(obj) {
+ return (((obj instanceof $c_Lcom_raquo_laminar_lifecycle_MountContext) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.laminar.lifecycle.MountContext"))
+}
+function $isArrayOf_Lcom_raquo_laminar_lifecycle_MountContext(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_laminar_lifecycle_MountContext)))
+}
+function $asArrayOf_Lcom_raquo_laminar_lifecycle_MountContext(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_laminar_lifecycle_MountContext(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.laminar.lifecycle.MountContext;", depth))
+}
+var $d_Lcom_raquo_laminar_lifecycle_MountContext = new $TypeData().initClass({
+ Lcom_raquo_laminar_lifecycle_MountContext: 0
+}, false, "com.raquo.laminar.lifecycle.MountContext", {
+ Lcom_raquo_laminar_lifecycle_MountContext: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_lifecycle_MountContext.prototype.$classData = $d_Lcom_raquo_laminar_lifecycle_MountContext;
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_ChildInserter$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_modifiers_ChildInserter$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_ChildInserter$.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_ChildInserter$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_ChildInserter$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_ChildInserter$.prototype = $c_Lcom_raquo_laminar_modifiers_ChildInserter$.prototype;
+$c_Lcom_raquo_laminar_modifiers_ChildInserter$.prototype.apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableNode__Lcom_raquo_laminar_modifiers_Inserter = (function(childSource, renderable) {
+ return new $c_Lcom_raquo_laminar_modifiers_Inserter($m_s_None$(), true, new $c_sjsr_AnonFunction2(((ctx, owner) => {
+ var ctx$1 = $as_Lcom_raquo_laminar_lifecycle_InsertContext(ctx);
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ if ((!$n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode)) {
+ $n(ctx$1).forceSetStrictMode__V()
+ };
+ var maybeLastSeenChild = new $c_sr_ObjectRef((void 0));
+ var this$16 = $n(childSource);
+ var onNext = new $c_sjsr_AnonFunction1(((newComponent) => {
+ var newChildNode = $n(renderable).asNode__O__Lcom_raquo_laminar_nodes_ChildNode(newComponent);
+ var elem = $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount;
+ var elem$1 = 0;
+ elem$1 = elem;
+ var x = maybeLastSeenChild.sr_ObjectRef__f_elem;
+ if ((x === (void 0))) {
+ var $$x1 = true
+ } else {
+ var _$1 = $as_Lcom_raquo_laminar_nodes_ChildNode(x);
+ var x$1 = $n(_$1).ref__Lorg_scalajs_dom_Node();
+ var y = $n($n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode).ref__Lorg_scalajs_dom_Node().nextSibling;
+ var $$x1 = $m_sr_BoxesRunTime$().equals__O__O__Z(x$1, y)
+ };
+ if ($$x1) {
+ var x$2 = x
+ } else {
+ var x$2 = (void 0)
+ };
+ if ((x$2 === (void 0))) {
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().insertChildAfter__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z($n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode, newChildNode, $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode)
+ } else {
+ var lastSeenChild = $as_Lcom_raquo_laminar_nodes_ChildNode(x$2);
+ var replaced = $m_Lcom_raquo_laminar_nodes_ParentNode$().replaceChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z($n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode, lastSeenChild, newChildNode);
+ if ((replaced || (lastSeenChild === newChildNode))) {
+ var ev$3 = (((-1) + elem$1) | 0);
+ elem$1 = ev$3
+ }
+ };
+ $n(ctx$1).removeOldChildNodesFromDOM__Lcom_raquo_laminar_nodes_ChildNode__V(newChildNode);
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap.clear();
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap.set($n(newChildNode).ref__Lorg_scalajs_dom_Node(), newChildNode);
+ var $$x2 = $n(ctx$1);
+ var this$15 = $n($m_s_package$().s_package$__f_Nil);
+ $$x2.Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodes = new $c_sci_$colon$colon(newChildNode, this$15);
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount = 1;
+ var ev$4 = newChildNode;
+ maybeLastSeenChild.sr_ObjectRef__f_elem = ev$4;
+ ev$4 = null
+ }));
+ return $f_Lcom_raquo_airstream_core_BaseObservable__foreach__F1__Lcom_raquo_airstream_ownership_Owner__Lcom_raquo_airstream_ownership_Subscription(this$16, onNext, owner$1)
+ })))
+});
+var $d_Lcom_raquo_laminar_modifiers_ChildInserter$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_ChildInserter$: 0
+}, false, "com.raquo.laminar.modifiers.ChildInserter$", {
+ Lcom_raquo_laminar_modifiers_ChildInserter$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_modifiers_ChildInserter$.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_ChildInserter$;
+var $n_Lcom_raquo_laminar_modifiers_ChildInserter$;
+function $m_Lcom_raquo_laminar_modifiers_ChildInserter$() {
+ if ((!$n_Lcom_raquo_laminar_modifiers_ChildInserter$)) {
+ $n_Lcom_raquo_laminar_modifiers_ChildInserter$ = new $c_Lcom_raquo_laminar_modifiers_ChildInserter$()
+ };
+ return $n_Lcom_raquo_laminar_modifiers_ChildInserter$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_ChildTextInserter$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_modifiers_ChildTextInserter$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_ChildTextInserter$.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_ChildTextInserter$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_ChildTextInserter$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_ChildTextInserter$.prototype = $c_Lcom_raquo_laminar_modifiers_ChildTextInserter$.prototype;
+$c_Lcom_raquo_laminar_modifiers_ChildTextInserter$.prototype.apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_modifiers_Inserter = (function(textSource, renderable) {
+ return new $c_Lcom_raquo_laminar_modifiers_Inserter($m_s_None$(), false, new $c_sjsr_AnonFunction2(((ctx, owner) => {
+ var ctx$1 = $as_Lcom_raquo_laminar_lifecycle_InsertContext(ctx);
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ var maybeTextNode = new $c_sr_ObjectRef((void 0));
+ var this$9 = $n(textSource);
+ var onNext = new $c_sjsr_AnonFunction1(((newValue) => {
+ var x = maybeTextNode.sr_ObjectRef__f_elem;
+ if ((x === (void 0))) {
+ var newTextNode = new $c_Lcom_raquo_laminar_nodes_TextNode($n(renderable).asString__O__T(newValue));
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().replaceChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z($n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode, $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode, newTextNode);
+ var ev$2 = newTextNode;
+ maybeTextNode.sr_ObjectRef__f_elem = ev$2;
+ ev$2 = null;
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode = newTextNode;
+ if ($n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode) {
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode = false;
+ $n(ctx$1).removeOldChildNodesFromDOM__Lcom_raquo_laminar_nodes_ChildNode__V(newTextNode);
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap.clear();
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodes = $m_s_package$().s_package$__f_Nil;
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount = 0
+ }
+ } else {
+ var textNode = $as_Lcom_raquo_laminar_nodes_TextNode(x);
+ $n(textNode).Lcom_raquo_laminar_nodes_TextNode__f_ref.textContent = $n(renderable).asString__O__T(newValue)
+ }
+ }));
+ return $f_Lcom_raquo_airstream_core_BaseObservable__foreach__F1__Lcom_raquo_airstream_ownership_Owner__Lcom_raquo_airstream_ownership_Subscription(this$9, onNext, owner$1)
+ })))
+});
+var $d_Lcom_raquo_laminar_modifiers_ChildTextInserter$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_ChildTextInserter$: 0
+}, false, "com.raquo.laminar.modifiers.ChildTextInserter$", {
+ Lcom_raquo_laminar_modifiers_ChildTextInserter$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_modifiers_ChildTextInserter$.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_ChildTextInserter$;
+var $n_Lcom_raquo_laminar_modifiers_ChildTextInserter$;
+function $m_Lcom_raquo_laminar_modifiers_ChildTextInserter$() {
+ if ((!$n_Lcom_raquo_laminar_modifiers_ChildTextInserter$)) {
+ $n_Lcom_raquo_laminar_modifiers_ChildTextInserter$ = new $c_Lcom_raquo_laminar_modifiers_ChildTextInserter$()
+ };
+ return $n_Lcom_raquo_laminar_modifiers_ChildTextInserter$
+}
+function $p_Lcom_raquo_laminar_modifiers_ChildrenInserter$__updateChildren__Lcom_raquo_ew_JsMap__sci_Seq__Lcom_raquo_ew_JsMap__Lcom_raquo_laminar_nodes_ReactiveElement__Lcom_raquo_laminar_nodes_ChildNode__I__I($thiz, prevChildren, nextChildren, nextChildrenMap, parentNode, sentinelNode, prevChildrenCount) {
+ var index = new $c_sr_IntRef(0);
+ var currentChildrenCount = new $c_sr_IntRef(prevChildrenCount);
+ var elem = $n(sentinelNode).ref__Lorg_scalajs_dom_Node().nextSibling;
+ var prevChildRef = new $c_sr_ObjectRef(elem);
+ var lastIndexChild = new $c_sr_ObjectRef(sentinelNode);
+ $n(nextChildren).foreach__F1__V(new $c_sjsr_AnonFunction1(((nextChild) => {
+ var nextChild$1 = $as_Lcom_raquo_laminar_nodes_ChildNode(nextChild);
+ if ((currentChildrenCount.sr_IntRef__f_elem <= index.sr_IntRef__f_elem)) {
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().insertChildAfter__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z(parentNode, nextChild$1, $as_Lcom_raquo_laminar_nodes_ChildNode(lastIndexChild.sr_ObjectRef__f_elem));
+ var ev$3 = $n(nextChild$1).ref__Lorg_scalajs_dom_Node();
+ prevChildRef.sr_ObjectRef__f_elem = ev$3;
+ ev$3 = null;
+ var ev$4 = ((1 + currentChildrenCount.sr_IntRef__f_elem) | 0);
+ currentChildrenCount.sr_IntRef__f_elem = ev$4
+ } else {
+ var x = $n(nextChild$1).ref__Lorg_scalajs_dom_Node();
+ var y = prevChildRef.sr_ObjectRef__f_elem;
+ if ((!$m_sr_BoxesRunTime$().equals__O__O__Z(x, y))) {
+ if ((!$uZ(prevChildren.has($n(nextChild$1).ref__Lorg_scalajs_dom_Node())))) {
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().insertChildAfter__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z(parentNode, nextChild$1, $as_Lcom_raquo_laminar_nodes_ChildNode(lastIndexChild.sr_ObjectRef__f_elem));
+ var ev$5 = $n(nextChild$1).ref__Lorg_scalajs_dom_Node();
+ prevChildRef.sr_ObjectRef__f_elem = ev$5;
+ ev$5 = null;
+ var ev$6 = ((1 + currentChildrenCount.sr_IntRef__f_elem) | 0);
+ currentChildrenCount.sr_IntRef__f_elem = ev$6
+ } else {
+ while (true) {
+ var x$1 = $n(nextChild$1).ref__Lorg_scalajs_dom_Node();
+ var y$1 = prevChildRef.sr_ObjectRef__f_elem;
+ if (((!$m_sr_BoxesRunTime$().equals__O__O__Z(x$1, y$1)) && (!$p_Lcom_raquo_laminar_modifiers_ChildrenInserter$__containsRef__Lcom_raquo_ew_JsMap__Lorg_scalajs_dom_Node__Z($thiz, nextChildrenMap, prevChildRef.sr_ObjectRef__f_elem)))) {
+ var nextPrevChildRef = prevChildRef.sr_ObjectRef__f_elem.nextSibling;
+ var prevChild = $p_Lcom_raquo_laminar_modifiers_ChildrenInserter$__prevChildFromRef__Lcom_raquo_ew_JsMap__Lorg_scalajs_dom_Node__Lcom_raquo_laminar_nodes_ChildNode($thiz, prevChildren, prevChildRef.sr_ObjectRef__f_elem);
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().removeChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Z(parentNode, prevChild);
+ var ev$7 = nextPrevChildRef;
+ prevChildRef.sr_ObjectRef__f_elem = ev$7;
+ ev$7 = null;
+ var ev$8 = (((-1) + currentChildrenCount.sr_IntRef__f_elem) | 0);
+ currentChildrenCount.sr_IntRef__f_elem = ev$8
+ } else {
+ break
+ }
+ };
+ var x$2 = $n(nextChild$1).ref__Lorg_scalajs_dom_Node();
+ var y$2 = prevChildRef.sr_ObjectRef__f_elem;
+ if ((!$m_sr_BoxesRunTime$().equals__O__O__Z(x$2, y$2))) {
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().insertChildAfter__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z(parentNode, nextChild$1, $as_Lcom_raquo_laminar_nodes_ChildNode(lastIndexChild.sr_ObjectRef__f_elem));
+ var ev$9 = $n(nextChild$1).ref__Lorg_scalajs_dom_Node();
+ prevChildRef.sr_ObjectRef__f_elem = ev$9;
+ ev$9 = null
+ }
+ }
+ }
+ };
+ if ((prevChildRef.sr_ObjectRef__f_elem.nextSibling === null)) {
+ var ev$10 = ((1 + index.sr_IntRef__f_elem) | 0);
+ currentChildrenCount.sr_IntRef__f_elem = ev$10
+ } else {
+ var ev$11 = prevChildRef.sr_ObjectRef__f_elem.nextSibling;
+ prevChildRef.sr_ObjectRef__f_elem = ev$11;
+ ev$11 = null
+ };
+ var ev$12 = nextChild$1;
+ lastIndexChild.sr_ObjectRef__f_elem = ev$12;
+ ev$12 = null;
+ var ev$13 = ((1 + index.sr_IntRef__f_elem) | 0);
+ index.sr_IntRef__f_elem = ev$13
+ })));
+ while ((index.sr_IntRef__f_elem < currentChildrenCount.sr_IntRef__f_elem)) {
+ var nextPrevChildRef$1 = prevChildRef.sr_ObjectRef__f_elem.nextSibling;
+ var prevChild$1 = $p_Lcom_raquo_laminar_modifiers_ChildrenInserter$__prevChildFromRef__Lcom_raquo_ew_JsMap__Lorg_scalajs_dom_Node__Lcom_raquo_laminar_nodes_ChildNode($thiz, prevChildren, prevChildRef.sr_ObjectRef__f_elem);
+ $m_Lcom_raquo_laminar_nodes_ParentNode$().removeChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Z(parentNode, prevChild$1);
+ var ev$14 = nextPrevChildRef$1;
+ prevChildRef.sr_ObjectRef__f_elem = ev$14;
+ ev$14 = null;
+ var ev$15 = (((-1) + currentChildrenCount.sr_IntRef__f_elem) | 0);
+ currentChildrenCount.sr_IntRef__f_elem = ev$15
+ };
+ return currentChildrenCount.sr_IntRef__f_elem
+}
+function $p_Lcom_raquo_laminar_modifiers_ChildrenInserter$__containsRef__Lcom_raquo_ew_JsMap__Lorg_scalajs_dom_Node__Z($thiz, nextChildrenMap, ref) {
+ return $uZ(nextChildrenMap.has(ref))
+}
+function $p_Lcom_raquo_laminar_modifiers_ChildrenInserter$__prevChildFromRef__Lcom_raquo_ew_JsMap__Lorg_scalajs_dom_Node__Lcom_raquo_laminar_nodes_ChildNode($thiz, prevChildren, ref) {
+ var x = prevChildren.get(ref);
+ if ((x === (void 0))) {
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), ("prevChildFromRef[children]: not found for " + ref))
+ };
+ return $as_Lcom_raquo_laminar_nodes_ChildNode(x)
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_ChildrenInserter$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_modifiers_ChildrenInserter$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_ChildrenInserter$.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_ChildrenInserter$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_ChildrenInserter$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_ChildrenInserter$.prototype = $c_Lcom_raquo_laminar_modifiers_ChildrenInserter$.prototype;
+$c_Lcom_raquo_laminar_modifiers_ChildrenInserter$.prototype.apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableNode__Lcom_raquo_laminar_modifiers_Inserter = (function(childrenSource, renderableNode) {
+ return new $c_Lcom_raquo_laminar_modifiers_Inserter($m_s_None$(), true, new $c_sjsr_AnonFunction2(((ctx, owner) => {
+ var ctx$1 = $as_Lcom_raquo_laminar_lifecycle_InsertContext(ctx);
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ if ((!$n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_strictMode)) {
+ $n(ctx$1).forceSetStrictMode__V()
+ };
+ var elem = $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodes;
+ var maybeLastSeenChildren = new $c_sr_ObjectRef(elem);
+ var this$4 = $n(childrenSource);
+ var onNext = new $c_sjsr_AnonFunction1(((components) => {
+ var components$1 = $as_sci_Seq(components);
+ var newChildren = $n(renderableNode).asNodeSeq__sci_Seq__sci_Seq(components$1);
+ var ev$2 = newChildren;
+ maybeLastSeenChildren.sr_ObjectRef__f_elem = ev$2;
+ ev$2 = null;
+ var newChildrenMap = $m_Lcom_raquo_laminar_lifecycle_InsertContext$().nodesToMap__sci_Seq__Lcom_raquo_ew_JsMap(newChildren);
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount = $p_Lcom_raquo_laminar_modifiers_ChildrenInserter$__updateChildren__Lcom_raquo_ew_JsMap__sci_Seq__Lcom_raquo_ew_JsMap__Lcom_raquo_laminar_nodes_ReactiveElement__Lcom_raquo_laminar_nodes_ChildNode__I__I(this, $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap, newChildren, newChildrenMap, $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_parentNode, $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_sentinelNode, $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodeCount);
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodes = newChildren;
+ $n(ctx$1).Lcom_raquo_laminar_lifecycle_InsertContext__f_extraNodesMap = newChildrenMap
+ }));
+ return $f_Lcom_raquo_airstream_core_BaseObservable__foreach__F1__Lcom_raquo_airstream_ownership_Owner__Lcom_raquo_airstream_ownership_Subscription(this$4, onNext, owner$1)
+ })))
+});
+var $d_Lcom_raquo_laminar_modifiers_ChildrenInserter$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_ChildrenInserter$: 0
+}, false, "com.raquo.laminar.modifiers.ChildrenInserter$", {
+ Lcom_raquo_laminar_modifiers_ChildrenInserter$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_modifiers_ChildrenInserter$.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_ChildrenInserter$;
+var $n_Lcom_raquo_laminar_modifiers_ChildrenInserter$;
+function $m_Lcom_raquo_laminar_modifiers_ChildrenInserter$() {
+ if ((!$n_Lcom_raquo_laminar_modifiers_ChildrenInserter$)) {
+ $n_Lcom_raquo_laminar_modifiers_ChildrenInserter$ = new $c_Lcom_raquo_laminar_modifiers_ChildrenInserter$()
+ };
+ return $n_Lcom_raquo_laminar_modifiers_ChildrenInserter$
+}
+function $is_Lcom_raquo_laminar_modifiers_Modifier(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lcom_raquo_laminar_modifiers_Modifier)))
+}
+function $as_Lcom_raquo_laminar_modifiers_Modifier(obj) {
+ return (($is_Lcom_raquo_laminar_modifiers_Modifier(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.laminar.modifiers.Modifier"))
+}
+function $isArrayOf_Lcom_raquo_laminar_modifiers_Modifier(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_laminar_modifiers_Modifier)))
+}
+function $asArrayOf_Lcom_raquo_laminar_modifiers_Modifier(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_laminar_modifiers_Modifier(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.laminar.modifiers.Modifier;", depth))
+}
+var $d_Lcom_raquo_laminar_modifiers_Modifier = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_Modifier: 0
+}, true, "com.raquo.laminar.modifiers.Modifier", {
+ Lcom_raquo_laminar_modifiers_Modifier: 1,
+ O: 1
+});
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_Modifier$() {
+ this.Lcom_raquo_laminar_modifiers_Modifier$__f_empty = null;
+ $n_Lcom_raquo_laminar_modifiers_Modifier$ = this;
+ this.Lcom_raquo_laminar_modifiers_Modifier$__f_empty = new $c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1()
+}
+$c_Lcom_raquo_laminar_modifiers_Modifier$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_Modifier$.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_Modifier$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_Modifier$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_Modifier$.prototype = $c_Lcom_raquo_laminar_modifiers_Modifier$.prototype;
+var $d_Lcom_raquo_laminar_modifiers_Modifier$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_Modifier$: 0
+}, false, "com.raquo.laminar.modifiers.Modifier$", {
+ Lcom_raquo_laminar_modifiers_Modifier$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_modifiers_Modifier$.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_Modifier$;
+var $n_Lcom_raquo_laminar_modifiers_Modifier$;
+function $m_Lcom_raquo_laminar_modifiers_Modifier$() {
+ if ((!$n_Lcom_raquo_laminar_modifiers_Modifier$)) {
+ $n_Lcom_raquo_laminar_modifiers_Modifier$ = new $c_Lcom_raquo_laminar_modifiers_Modifier$()
+ };
+ return $n_Lcom_raquo_laminar_modifiers_Modifier$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_RenderableNode$() {
+ this.Lcom_raquo_laminar_modifiers_RenderableNode$__f_nodeRenderable = null;
+ $n_Lcom_raquo_laminar_modifiers_RenderableNode$ = this;
+ $m_Lcom_raquo_laminar_modifiers_RenderableNode$();
+ var renderNode = new $c_sjsr_AnonFunction1(((x) => {
+ var x$1 = $as_Lcom_raquo_laminar_nodes_ChildNode(x);
+ return x$1
+ }));
+ var renderNodeSeq = new $c_sjsr_AnonFunction1(((x$2) => {
+ var x$3 = $as_sci_Seq(x$2);
+ return x$3
+ }));
+ var renderNodeIterable = new $c_sjsr_AnonFunction1(((x$3$1) => {
+ var x$4 = $as_sc_Iterable(x$3$1);
+ return x$4
+ }));
+ var renderNodeOption = new $c_sjsr_AnonFunction1(((x$4$1) => {
+ var x$5 = $as_s_Option(x$4$1);
+ return x$5
+ }));
+ this.Lcom_raquo_laminar_modifiers_RenderableNode$__f_nodeRenderable = new $c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1(renderNode, renderNodeSeq, renderNodeIterable, renderNodeOption)
+}
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_RenderableNode$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_RenderableNode$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_RenderableNode$.prototype = $c_Lcom_raquo_laminar_modifiers_RenderableNode$.prototype;
+var $d_Lcom_raquo_laminar_modifiers_RenderableNode$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_RenderableNode$: 0
+}, false, "com.raquo.laminar.modifiers.RenderableNode$", {
+ Lcom_raquo_laminar_modifiers_RenderableNode$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_RenderableNode$;
+var $n_Lcom_raquo_laminar_modifiers_RenderableNode$;
+function $m_Lcom_raquo_laminar_modifiers_RenderableNode$() {
+ if ((!$n_Lcom_raquo_laminar_modifiers_RenderableNode$)) {
+ $n_Lcom_raquo_laminar_modifiers_RenderableNode$ = new $c_Lcom_raquo_laminar_modifiers_RenderableNode$()
+ };
+ return $n_Lcom_raquo_laminar_modifiers_RenderableNode$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_RenderableText$() {
+ this.Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable = null;
+ this.Lcom_raquo_laminar_modifiers_RenderableText$__f_intRenderable = null;
+ this.Lcom_raquo_laminar_modifiers_RenderableText$__f_textNodeRenderable = null;
+ $n_Lcom_raquo_laminar_modifiers_RenderableText$ = this;
+ $m_Lcom_raquo_laminar_modifiers_RenderableText$();
+ var render = new $c_sjsr_AnonFunction1(((x) => {
+ var x$1 = $as_T(x);
+ return x$1
+ }));
+ this.Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable = new $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1(render);
+ $m_Lcom_raquo_laminar_modifiers_RenderableText$();
+ var render$1 = new $c_sjsr_AnonFunction1(((_$1) => {
+ var _$1$1 = $uI(_$1);
+ return ("" + _$1$1)
+ }));
+ this.Lcom_raquo_laminar_modifiers_RenderableText$__f_intRenderable = new $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1(render$1);
+ $m_Lcom_raquo_laminar_modifiers_RenderableText$();
+ var render$2 = new $c_sjsr_AnonFunction1(((_$2) => {
+ var _$2$1 = $uD(_$2);
+ return ("" + _$2$1)
+ }));
+ new $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1(render$2);
+ $m_Lcom_raquo_laminar_modifiers_RenderableText$();
+ var render$3 = new $c_sjsr_AnonFunction1(((_$3) => {
+ var _$3$1 = $uZ(_$3);
+ return ("" + _$3$1)
+ }));
+ new $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1(render$3);
+ $m_Lcom_raquo_laminar_modifiers_RenderableText$();
+ var render$4 = new $c_sjsr_AnonFunction1(((_$4) => {
+ var _$4$1 = $as_Lcom_raquo_laminar_nodes_TextNode(_$4);
+ return $n(_$4$1).text__T()
+ }));
+ this.Lcom_raquo_laminar_modifiers_RenderableText$__f_textNodeRenderable = new $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1(render$4)
+}
+$c_Lcom_raquo_laminar_modifiers_RenderableText$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_RenderableText$.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_RenderableText$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_RenderableText$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_RenderableText$.prototype = $c_Lcom_raquo_laminar_modifiers_RenderableText$.prototype;
+var $d_Lcom_raquo_laminar_modifiers_RenderableText$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_RenderableText$: 0
+}, false, "com.raquo.laminar.modifiers.RenderableText$", {
+ Lcom_raquo_laminar_modifiers_RenderableText$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_modifiers_RenderableText$.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_RenderableText$;
+var $n_Lcom_raquo_laminar_modifiers_RenderableText$;
+function $m_Lcom_raquo_laminar_modifiers_RenderableText$() {
+ if ((!$n_Lcom_raquo_laminar_modifiers_RenderableText$)) {
+ $n_Lcom_raquo_laminar_modifiers_RenderableText$ = new $c_Lcom_raquo_laminar_modifiers_RenderableText$()
+ };
+ return $n_Lcom_raquo_laminar_modifiers_RenderableText$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_Setter$() {
+ $n_Lcom_raquo_laminar_modifiers_Setter$ = this;
+ new $c_Lcom_raquo_laminar_modifiers_Setter$$anon$1()
+}
+$c_Lcom_raquo_laminar_modifiers_Setter$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_Setter$.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_Setter$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_Setter$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_Setter$.prototype = $c_Lcom_raquo_laminar_modifiers_Setter$.prototype;
+var $d_Lcom_raquo_laminar_modifiers_Setter$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_Setter$: 0
+}, false, "com.raquo.laminar.modifiers.Setter$", {
+ Lcom_raquo_laminar_modifiers_Setter$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_modifiers_Setter$.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_Setter$;
+var $n_Lcom_raquo_laminar_modifiers_Setter$;
+function $m_Lcom_raquo_laminar_modifiers_Setter$() {
+ if ((!$n_Lcom_raquo_laminar_modifiers_Setter$)) {
+ $n_Lcom_raquo_laminar_modifiers_Setter$ = new $c_Lcom_raquo_laminar_modifiers_Setter$()
+ };
+ return $n_Lcom_raquo_laminar_modifiers_Setter$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_nodes_ParentNode$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_nodes_ParentNode$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_nodes_ParentNode$.prototype.constructor = $c_Lcom_raquo_laminar_nodes_ParentNode$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_nodes_ParentNode$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_nodes_ParentNode$.prototype = $c_Lcom_raquo_laminar_nodes_ParentNode$.prototype;
+$c_Lcom_raquo_laminar_nodes_ParentNode$.prototype.appendChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Z = (function(parent, child) {
+ var nextParent = new $c_s_Some(parent);
+ $n(child).willSetParent__s_Option__V(nextParent);
+ var appended = $m_Lcom_raquo_laminar_DomApi$().appendChild__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z($n(parent).ref__Lorg_scalajs_dom_Node(), $n(child).ref__Lorg_scalajs_dom_Node());
+ if (appended) {
+ $n(child).setParent__s_Option__V(nextParent)
+ };
+ return appended
+});
+$c_Lcom_raquo_laminar_nodes_ParentNode$.prototype.removeChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Z = (function(parent, child) {
+ var removed = false;
+ var x = $n(child).ref__Lorg_scalajs_dom_Node().parentNode;
+ var y = $n(parent).ref__Lorg_scalajs_dom_Node();
+ if ($m_sr_BoxesRunTime$().equals__O__O__Z(x, y)) {
+ $n(child).willSetParent__s_Option__V($m_s_None$());
+ removed = $m_Lcom_raquo_laminar_DomApi$().removeChild__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z($n(parent).ref__Lorg_scalajs_dom_Node(), $n(child).ref__Lorg_scalajs_dom_Node());
+ $n(child).setParent__s_Option__V($m_s_None$())
+ };
+ return removed
+});
+$c_Lcom_raquo_laminar_nodes_ParentNode$.prototype.insertChildAfter__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z = (function(parent, newChild, referenceChild) {
+ var nextParent = new $c_s_Some(parent);
+ $n(newChild).willSetParent__s_Option__V(nextParent);
+ var inserted = $m_Lcom_raquo_laminar_DomApi$().insertAfter__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z($n(parent).ref__Lorg_scalajs_dom_Node(), $n(newChild).ref__Lorg_scalajs_dom_Node(), $n(referenceChild).ref__Lorg_scalajs_dom_Node());
+ $n(newChild).setParent__s_Option__V(nextParent);
+ return inserted
+});
+$c_Lcom_raquo_laminar_nodes_ParentNode$.prototype.replaceChild__Lcom_raquo_laminar_nodes_ParentNode__Lcom_raquo_laminar_nodes_ChildNode__Lcom_raquo_laminar_nodes_ChildNode__Z = (function(parent, oldChild, newChild) {
+ var replaced = false;
+ if ((oldChild !== newChild)) {
+ var this$1 = $n(oldChild);
+ if ($n(this$1.com$raquo$laminar$nodes$ChildNode$$_maybeParent__s_Option()).contains__O__Z(parent)) {
+ var newChildNextParent = new $c_s_Some(parent);
+ $n(oldChild).willSetParent__s_Option__V($m_s_None$());
+ $n(newChild).willSetParent__s_Option__V(newChildNextParent);
+ replaced = $m_Lcom_raquo_laminar_DomApi$().replaceChild__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Lorg_scalajs_dom_Node__Z($n(parent).ref__Lorg_scalajs_dom_Node(), $n(newChild).ref__Lorg_scalajs_dom_Node(), $n(oldChild).ref__Lorg_scalajs_dom_Node());
+ if (replaced) {
+ $n(oldChild).setParent__s_Option__V($m_s_None$());
+ $n(newChild).setParent__s_Option__V(newChildNextParent)
+ }
+ }
+ };
+ return replaced
+});
+var $d_Lcom_raquo_laminar_nodes_ParentNode$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_nodes_ParentNode$: 0
+}, false, "com.raquo.laminar.nodes.ParentNode$", {
+ Lcom_raquo_laminar_nodes_ParentNode$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_nodes_ParentNode$.prototype.$classData = $d_Lcom_raquo_laminar_nodes_ParentNode$;
+var $n_Lcom_raquo_laminar_nodes_ParentNode$;
+function $m_Lcom_raquo_laminar_nodes_ParentNode$() {
+ if ((!$n_Lcom_raquo_laminar_nodes_ParentNode$)) {
+ $n_Lcom_raquo_laminar_nodes_ParentNode$ = new $c_Lcom_raquo_laminar_nodes_ParentNode$()
+ };
+ return $n_Lcom_raquo_laminar_nodes_ParentNode$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_nodes_ReactiveElement$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_nodes_ReactiveElement$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_nodes_ReactiveElement$.prototype.constructor = $c_Lcom_raquo_laminar_nodes_ReactiveElement$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_nodes_ReactiveElement$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_nodes_ReactiveElement$.prototype = $c_Lcom_raquo_laminar_nodes_ReactiveElement$.prototype;
+$c_Lcom_raquo_laminar_nodes_ReactiveElement$.prototype.unsafeBindPrependSubscription__Lcom_raquo_laminar_nodes_ReactiveElement__F1__Lcom_raquo_airstream_ownership_DynamicSubscription = (function(element, subscribe) {
+ return $m_Lcom_raquo_airstream_ownership_DynamicSubscription$().unsafe__Lcom_raquo_airstream_ownership_DynamicOwner__F1__Z__Lcom_raquo_airstream_ownership_DynamicSubscription($n(element).dynamicOwner__Lcom_raquo_airstream_ownership_DynamicOwner(), new $c_sjsr_AnonFunction1(((owner) => {
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ return $as_Lcom_raquo_airstream_ownership_Subscription($n(subscribe).apply__O__O(new $c_Lcom_raquo_laminar_lifecycle_MountContext(element, owner$1)))
+ })), true)
+});
+var $d_Lcom_raquo_laminar_nodes_ReactiveElement$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_nodes_ReactiveElement$: 0
+}, false, "com.raquo.laminar.nodes.ReactiveElement$", {
+ Lcom_raquo_laminar_nodes_ReactiveElement$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_nodes_ReactiveElement$.prototype.$classData = $d_Lcom_raquo_laminar_nodes_ReactiveElement$;
+var $n_Lcom_raquo_laminar_nodes_ReactiveElement$;
+function $m_Lcom_raquo_laminar_nodes_ReactiveElement$() {
+ if ((!$n_Lcom_raquo_laminar_nodes_ReactiveElement$)) {
+ $n_Lcom_raquo_laminar_nodes_ReactiveElement$ = new $c_Lcom_raquo_laminar_nodes_ReactiveElement$()
+ };
+ return $n_Lcom_raquo_laminar_nodes_ReactiveElement$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_receivers_ChildReceiver$() {
+ this.Lcom_raquo_laminar_receivers_ChildReceiver$__f_text = null;
+ $n_Lcom_raquo_laminar_receivers_ChildReceiver$ = this;
+ this.Lcom_raquo_laminar_receivers_ChildReceiver$__f_text = $m_Lcom_raquo_laminar_receivers_ChildTextReceiver$()
+}
+$c_Lcom_raquo_laminar_receivers_ChildReceiver$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_receivers_ChildReceiver$.prototype.constructor = $c_Lcom_raquo_laminar_receivers_ChildReceiver$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_receivers_ChildReceiver$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_receivers_ChildReceiver$.prototype = $c_Lcom_raquo_laminar_receivers_ChildReceiver$.prototype;
+var $d_Lcom_raquo_laminar_receivers_ChildReceiver$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_receivers_ChildReceiver$: 0
+}, false, "com.raquo.laminar.receivers.ChildReceiver$", {
+ Lcom_raquo_laminar_receivers_ChildReceiver$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_receivers_ChildReceiver$.prototype.$classData = $d_Lcom_raquo_laminar_receivers_ChildReceiver$;
+var $n_Lcom_raquo_laminar_receivers_ChildReceiver$;
+function $m_Lcom_raquo_laminar_receivers_ChildReceiver$() {
+ if ((!$n_Lcom_raquo_laminar_receivers_ChildReceiver$)) {
+ $n_Lcom_raquo_laminar_receivers_ChildReceiver$ = new $c_Lcom_raquo_laminar_receivers_ChildReceiver$()
+ };
+ return $n_Lcom_raquo_laminar_receivers_ChildReceiver$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_receivers_ChildTextReceiver$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_receivers_ChildTextReceiver$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_receivers_ChildTextReceiver$.prototype.constructor = $c_Lcom_raquo_laminar_receivers_ChildTextReceiver$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_receivers_ChildTextReceiver$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_receivers_ChildTextReceiver$.prototype = $c_Lcom_raquo_laminar_receivers_ChildTextReceiver$.prototype;
+$c_Lcom_raquo_laminar_receivers_ChildTextReceiver$.prototype.$less$minus$minus__Lcom_raquo_airstream_core_Source__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_modifiers_Inserter = (function(textSource, renderable) {
+ var x$2 = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_textNodeRenderable;
+ if ((renderable === null)) {
+ var $$x1 = (x$2 === null)
+ } else {
+ var this$1 = $n(renderable);
+ var $$x1 = (this$1 === x$2)
+ };
+ if ($$x1) {
+ var this$2 = $n(textSource);
+ var nodes = this$2.toObservable__Lcom_raquo_airstream_core_Signal();
+ return $m_Lcom_raquo_laminar_modifiers_ChildInserter$().apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableNode__Lcom_raquo_laminar_modifiers_Inserter(nodes, $m_Lcom_raquo_laminar_modifiers_RenderableNode$().Lcom_raquo_laminar_modifiers_RenderableNode$__f_nodeRenderable)
+ } else {
+ var $$x2 = $m_Lcom_raquo_laminar_modifiers_ChildTextInserter$();
+ var this$3 = $n(textSource);
+ return $n($$x2).apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_modifiers_Inserter(this$3.toObservable__Lcom_raquo_airstream_core_Signal(), renderable)
+ }
+});
+var $d_Lcom_raquo_laminar_receivers_ChildTextReceiver$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_receivers_ChildTextReceiver$: 0
+}, false, "com.raquo.laminar.receivers.ChildTextReceiver$", {
+ Lcom_raquo_laminar_receivers_ChildTextReceiver$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_receivers_ChildTextReceiver$.prototype.$classData = $d_Lcom_raquo_laminar_receivers_ChildTextReceiver$;
+var $n_Lcom_raquo_laminar_receivers_ChildTextReceiver$;
+function $m_Lcom_raquo_laminar_receivers_ChildTextReceiver$() {
+ if ((!$n_Lcom_raquo_laminar_receivers_ChildTextReceiver$)) {
+ $n_Lcom_raquo_laminar_receivers_ChildTextReceiver$ = new $c_Lcom_raquo_laminar_receivers_ChildTextReceiver$()
+ };
+ return $n_Lcom_raquo_laminar_receivers_ChildTextReceiver$
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_receivers_ChildrenReceiver$() {
+ /**/
+}
+$c_Lcom_raquo_laminar_receivers_ChildrenReceiver$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_receivers_ChildrenReceiver$.prototype.constructor = $c_Lcom_raquo_laminar_receivers_ChildrenReceiver$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_receivers_ChildrenReceiver$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_receivers_ChildrenReceiver$.prototype = $c_Lcom_raquo_laminar_receivers_ChildrenReceiver$.prototype;
+var $d_Lcom_raquo_laminar_receivers_ChildrenReceiver$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_receivers_ChildrenReceiver$: 0
+}, false, "com.raquo.laminar.receivers.ChildrenReceiver$", {
+ Lcom_raquo_laminar_receivers_ChildrenReceiver$: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_receivers_ChildrenReceiver$.prototype.$classData = $d_Lcom_raquo_laminar_receivers_ChildrenReceiver$;
+var $n_Lcom_raquo_laminar_receivers_ChildrenReceiver$;
+function $m_Lcom_raquo_laminar_receivers_ChildrenReceiver$() {
+ if ((!$n_Lcom_raquo_laminar_receivers_ChildrenReceiver$)) {
+ $n_Lcom_raquo_laminar_receivers_ChildrenReceiver$ = new $c_Lcom_raquo_laminar_receivers_ChildrenReceiver$()
+ };
+ return $n_Lcom_raquo_laminar_receivers_ChildrenReceiver$
+}
+function $is_Ljava_io_Serializable(obj) {
+ return ((((((!(!((obj && obj.$classData) && obj.$classData.ancestors.Ljava_io_Serializable))) || ((typeof obj) === "string")) || ((typeof obj) === "number")) || ((typeof obj) === "boolean")) || (obj instanceof $c_RTLong)) || (obj instanceof $Char))
+}
+function $as_Ljava_io_Serializable(obj) {
+ return (($is_Ljava_io_Serializable(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.io.Serializable"))
+}
+function $isArrayOf_Ljava_io_Serializable(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Ljava_io_Serializable)))
+}
+function $asArrayOf_Ljava_io_Serializable(obj, depth) {
+ return (($isArrayOf_Ljava_io_Serializable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.io.Serializable;", depth))
+}
+/** @constructor */
+function $c_jl_FloatingPointBits$() {
+ this.jl_FloatingPointBits$__f_java$lang$FloatingPointBits$$_areTypedArraysSupported = false;
+ this.jl_FloatingPointBits$__f_arrayBuffer = null;
+ this.jl_FloatingPointBits$__f_int32Array = null;
+ this.jl_FloatingPointBits$__f_float64Array = null;
+ this.jl_FloatingPointBits$__f_areTypedArraysBigEndian = false;
+ this.jl_FloatingPointBits$__f_java$lang$FloatingPointBits$$doublePowsOf2 = null;
+ $n_jl_FloatingPointBits$ = this;
+ this.jl_FloatingPointBits$__f_java$lang$FloatingPointBits$$_areTypedArraysSupported = true;
+ this.jl_FloatingPointBits$__f_arrayBuffer = new ArrayBuffer(8);
+ this.jl_FloatingPointBits$__f_int32Array = new Int32Array(this.jl_FloatingPointBits$__f_arrayBuffer, 0, 2);
+ new Float32Array(this.jl_FloatingPointBits$__f_arrayBuffer, 0, 2);
+ this.jl_FloatingPointBits$__f_float64Array = new Float64Array(this.jl_FloatingPointBits$__f_arrayBuffer, 0, 1);
+ this.jl_FloatingPointBits$__f_int32Array[0] = 16909060;
+ this.jl_FloatingPointBits$__f_areTypedArraysBigEndian = ($uB(new Int8Array(this.jl_FloatingPointBits$__f_arrayBuffer, 0, 8)[0]) === 1);
+ this.jl_FloatingPointBits$__f_java$lang$FloatingPointBits$$doublePowsOf2 = null
+}
+$c_jl_FloatingPointBits$.prototype = new $h_O();
+$c_jl_FloatingPointBits$.prototype.constructor = $c_jl_FloatingPointBits$;
+/** @constructor */
+function $h_jl_FloatingPointBits$() {
+ /**/
+}
+$h_jl_FloatingPointBits$.prototype = $c_jl_FloatingPointBits$.prototype;
+$c_jl_FloatingPointBits$.prototype.numberHashCode__D__I = (function(value) {
+ var iv = $uI((value | 0.0));
+ if (((iv === value) && ((1.0 / value) !== (-Infinity)))) {
+ return iv
+ } else {
+ this.jl_FloatingPointBits$__f_float64Array[0] = value;
+ return ($uI(this.jl_FloatingPointBits$__f_int32Array[0]) ^ $uI(this.jl_FloatingPointBits$__f_int32Array[1]))
+ }
+});
+var $d_jl_FloatingPointBits$ = new $TypeData().initClass({
+ jl_FloatingPointBits$: 0
+}, false, "java.lang.FloatingPointBits$", {
+ jl_FloatingPointBits$: 1,
+ O: 1
+});
+$c_jl_FloatingPointBits$.prototype.$classData = $d_jl_FloatingPointBits$;
+var $n_jl_FloatingPointBits$;
+function $m_jl_FloatingPointBits$() {
+ if ((!$n_jl_FloatingPointBits$)) {
+ $n_jl_FloatingPointBits$ = new $c_jl_FloatingPointBits$()
+ };
+ return $n_jl_FloatingPointBits$
+}
+function $p_jl_StackTrace$__normalizedLinesToStackTrace__O__Ajl_StackTraceElement($thiz, lines) {
+ var NormalizedFrameLine = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^([^@]*)@(.*?):([0-9]+)(?::([0-9]+))?$");
+ var trace = [];
+ var i = 0;
+ while ((i < $uI(lines.length))) {
+ var line = $as_T(lines[i]);
+ var this$1 = $n(line);
+ if ((!(this$1 === ""))) {
+ var mtch = NormalizedFrameLine.exec(line);
+ if ((mtch !== null)) {
+ var x = mtch[1];
+ var classAndMethodName = $p_jl_StackTrace$__extractClassMethod__T__O($thiz, $as_T(x));
+ var $$x6 = $as_T(classAndMethodName[0]);
+ var $$x5 = $as_T(classAndMethodName[1]);
+ var x$1 = mtch[2];
+ var $$x4 = $as_T(x$1);
+ var x$2 = mtch[3];
+ var s = $as_T(x$2);
+ var $$x3 = $uI(parseInt(s));
+ var x$3 = mtch[4];
+ if ((x$3 !== (void 0))) {
+ var x$1$1 = $as_T(x$3);
+ var $$x2 = $uI(parseInt(x$1$1))
+ } else {
+ var $$x2 = (-1)
+ };
+ var $$x1 = trace.push(new $c_jl_StackTraceElement($$x6, $$x5, $$x4, $$x3, $$x2));
+ $uI($$x1)
+ } else {
+ $uI(trace.push(new $c_jl_StackTraceElement("", line, null, (-1), (-1))))
+ }
+ };
+ i = ((1 + i) | 0)
+ };
+ var len = $uI(trace.length);
+ var result = new ($d_jl_StackTraceElement.getArrayOf().constr)(len);
+ i = 0;
+ while ((i < len)) {
+ $n(result).set(i, $as_jl_StackTraceElement(trace[i]));
+ i = ((1 + i) | 0)
+ };
+ return result
+}
+function $p_jl_StackTrace$__extractClassMethod__T__O($thiz, functionName) {
+ var PatBC = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$[bc]_([^\\.]+)(?:\\.prototype)?\\.([^\\.]+)$");
+ var PatS = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$(?:ps?|s|f)_((?:_[^_]|[^_])+)__([^\\.]+)$");
+ var PatCT = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$ct_((?:_[^_]|[^_])+)__([^\\.]*)$");
+ var PatN = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^new (?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$c_([^\\.]+)$");
+ var PatM = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$m_([^\\.]+)$");
+ var matchBC = PatBC.exec(functionName);
+ var matchBCOrS = ((matchBC !== null) ? matchBC : PatS.exec(functionName));
+ if ((matchBCOrS !== null)) {
+ var x = matchBCOrS[1];
+ var $$x1 = $p_jl_StackTrace$__decodeClassName__T__T($thiz, $as_T(x));
+ var x$1 = matchBCOrS[2];
+ return [$$x1, $p_jl_StackTrace$__decodeMethodName__T__T($thiz, $as_T(x$1))]
+ } else {
+ var matchCT = PatCT.exec(functionName);
+ var matchCTOrN = ((matchCT !== null) ? matchCT : PatN.exec(functionName));
+ if ((matchCTOrN !== null)) {
+ var x$2 = matchCTOrN[1];
+ return [$p_jl_StackTrace$__decodeClassName__T__T($thiz, $as_T(x$2)), ""]
+ } else {
+ var matchM = PatM.exec(functionName);
+ if ((matchM !== null)) {
+ var x$3 = matchM[1];
+ return [$p_jl_StackTrace$__decodeClassName__T__T($thiz, $as_T(x$3)), ""]
+ } else {
+ return ["", functionName]
+ }
+ }
+ }
+}
+function $p_jl_StackTrace$__decodeClassName__T__T($thiz, encodedName) {
+ var dict = $p_jl_StackTrace$__decompressedClasses__O($thiz);
+ if ($uZ($m_jl_Utils$Cache$().jl_Utils$Cache$__f_safeHasOwnProperty.call(dict, encodedName))) {
+ var dict$1 = $p_jl_StackTrace$__decompressedClasses__O($thiz);
+ var base = $as_T(dict$1[encodedName])
+ } else {
+ var base = $p_jl_StackTrace$__loop$1__I__T__T($thiz, 0, encodedName)
+ };
+ var this$3 = $n(base);
+ var this$4 = $n($as_T(this$3.split("_").join(".")));
+ return $as_T(this$4.split("\uff3f").join("_"))
+}
+function $p_jl_StackTrace$__decompressedClasses$lzycompute__O($thiz) {
+ if (((((1 & $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24) === 0)) {
+ var dict = {};
+ dict.O = "java_lang_Object";
+ dict.T = "java_lang_String";
+ var index = 0;
+ while ((index <= 22)) {
+ if ((index >= 2)) {
+ var key = ("T" + index);
+ var value = ("scala_Tuple" + index);
+ dict[key] = value
+ };
+ var key$1 = ("F" + index);
+ var value$1 = ("scala_Function" + index);
+ dict[key$1] = value$1;
+ index = ((1 + index) | 0)
+ };
+ $thiz.jl_StackTrace$__f_decompressedClasses = dict;
+ $thiz.jl_StackTrace$__f_bitmap$0 = (((1 | $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24)
+ };
+ return $thiz.jl_StackTrace$__f_decompressedClasses
+}
+function $p_jl_StackTrace$__decompressedClasses__O($thiz) {
+ return (((((1 & $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24) === 0) ? $p_jl_StackTrace$__decompressedClasses$lzycompute__O($thiz) : $thiz.jl_StackTrace$__f_decompressedClasses)
+}
+function $p_jl_StackTrace$__decompressedPrefixes$lzycompute__O($thiz) {
+ if (((((2 & $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24) === 0)) {
+ var dict = {};
+ dict.sjsr_ = "scala_scalajs_runtime_";
+ dict.sjs_ = "scala_scalajs_";
+ dict.sci_ = "scala_collection_immutable_";
+ dict.scm_ = "scala_collection_mutable_";
+ dict.scg_ = "scala_collection_generic_";
+ dict.sc_ = "scala_collection_";
+ dict.sr_ = "scala_runtime_";
+ dict.s_ = "scala_";
+ dict.jl_ = "java_lang_";
+ dict.ju_ = "java_util_";
+ $thiz.jl_StackTrace$__f_decompressedPrefixes = dict;
+ $thiz.jl_StackTrace$__f_bitmap$0 = (((2 | $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24)
+ };
+ return $thiz.jl_StackTrace$__f_decompressedPrefixes
+}
+function $p_jl_StackTrace$__decompressedPrefixes__O($thiz) {
+ return (((((2 & $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24) === 0) ? $p_jl_StackTrace$__decompressedPrefixes$lzycompute__O($thiz) : $thiz.jl_StackTrace$__f_decompressedPrefixes)
+}
+function $p_jl_StackTrace$__compressedPrefixes$lzycompute__O($thiz) {
+ if (((((4 & $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24) === 0)) {
+ $thiz.jl_StackTrace$__f_compressedPrefixes = Object.keys($p_jl_StackTrace$__decompressedPrefixes__O($thiz));
+ $thiz.jl_StackTrace$__f_bitmap$0 = (((4 | $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24)
+ };
+ return $thiz.jl_StackTrace$__f_compressedPrefixes
+}
+function $p_jl_StackTrace$__compressedPrefixes__O($thiz) {
+ return (((((4 & $thiz.jl_StackTrace$__f_bitmap$0) << 24) >> 24) === 0) ? $p_jl_StackTrace$__compressedPrefixes$lzycompute__O($thiz) : $thiz.jl_StackTrace$__f_compressedPrefixes)
+}
+function $p_jl_StackTrace$__decodeMethodName__T__T($thiz, encodedName) {
+ var this$1 = $n(encodedName);
+ if (((this$1.length >= 0) && ($as_T(this$1.substring(0, 7)) === "init___"))) {
+ return ""
+ } else {
+ var this$2 = $n(encodedName);
+ var methodNameLen = $uI(this$2.indexOf("__"));
+ return ((methodNameLen < 0) ? encodedName : $as_T(encodedName.substring(0, methodNameLen)))
+ }
+}
+function $p_jl_StackTrace$__normalizeStackTraceLines__O__O($thiz, e) {
+ return ($uZ((!(!(!e)))) ? [] : ($uZ((!(!(e.arguments && e.stack)))) ? $p_jl_StackTrace$__extractChrome__O__O($thiz, e) : ($uZ((!(!(e.stack && e.sourceURL)))) ? $p_jl_StackTrace$__extractSafari__O__O($thiz, e) : ($uZ((!(!(e.stack && e.number)))) ? $p_jl_StackTrace$__extractIE__O__O($thiz, e) : ($uZ((!(!(e.stack && e.fileName)))) ? $p_jl_StackTrace$__extractFirefox__O__O($thiz, e) : ($uZ((!(!(e.message && e["opera#sourceloc"])))) ? ($uZ((!(!(!e.stacktrace)))) ? $p_jl_StackTrace$__extractOpera9__O__O($thiz, e) : ($uZ((!(!((e.message.indexOf("\n") > (-1.0)) && (e.message.split("\n").length > e.stacktrace.split("\n").length))))) ? $p_jl_StackTrace$__extractOpera9__O__O($thiz, e) : $p_jl_StackTrace$__extractOpera10a__O__O($thiz, e))) : ($uZ((!(!((e.message && e.stack) && e.stacktrace)))) ? ($uZ((!(!(e.stacktrace.indexOf("called from line") < 0.0)))) ? $p_jl_StackTrace$__extractOpera10b__O__O($thiz, e) : $p_jl_StackTrace$__extractOpera11__O__O($thiz, e)) : ($uZ((!(!(e.stack && (!e.fileName))))) ? $p_jl_StackTrace$__extractChrome__O__O($thiz, e) : $p_jl_StackTrace$__extractOther__O__O($thiz, e)))))))))
+}
+function $p_jl_StackTrace$__extractChrome__O__O($thiz, e) {
+ return $as_T($as_T($as_T($as_T($as_T(($as_T(e.stack) + "\n").replace($m_jl_StackTrace$StringRE$().re$extension0__T__O("^[\\s\\S]+?\\s+at\\s+"), " at ")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^\\s+(at eval )?at\\s+", "gm"), "")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^([^\\(]+?)([\\n])", "gm"), "{anonymous}() ($1)$2")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^Object.\\s*\\(([^\\)]+)\\)", "gm"), "{anonymous}() ($1)")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^([^\\(]+|\\{anonymous\\}\\(\\)) \\((.+)\\)$", "gm"), "$1@$2")).split("\n").slice(0, (-1))
+}
+function $p_jl_StackTrace$__extractFirefox__O__O($thiz, e) {
+ return $as_T($as_T($as_T(e.stack).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("(?:\\n@:0)?\\s+$", "m"), "")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^(?:\\((\\S*)\\))?@", "gm"), "{anonymous}($1)@")).split("\n")
+}
+function $p_jl_StackTrace$__extractIE__O__O($thiz, e) {
+ var qual$1 = $as_T($as_T($as_T($as_T(e.stack).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^\\s*at\\s+(.*)$", "gm"), "$1")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^Anonymous function\\s+", "gm"), "{anonymous}() ")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^([^\\(]+|\\{anonymous\\}\\(\\))\\s+\\((.+)\\)$", "gm"), "$1@$2")).split("\n");
+ return qual$1.slice(1)
+}
+function $p_jl_StackTrace$__extractSafari__O__O($thiz, e) {
+ return $as_T($as_T($as_T($as_T(e.stack).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("\\[native code\\]\\n", "m"), "")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^(?=\\w+Error\\:).*$\\n", "m"), "")).replace($m_jl_StackTrace$StringRE$().re$extension1__T__T__O("^@", "gm"), "{anonymous}()@")).split("\n")
+}
+function $p_jl_StackTrace$__extractOpera9__O__O($thiz, e) {
+ var lineRE = $m_jl_StackTrace$StringRE$().re$extension1__T__T__O("Line (\\d+).*script (?:in )?(\\S+)", "i");
+ var lines = $as_T(e.message).split("\n");
+ var result = [];
+ var i = 2;
+ var len = $uI(lines.length);
+ while ((i < len)) {
+ var mtch = lineRE.exec($as_T(lines[i]));
+ if ((mtch !== null)) {
+ var x = mtch[2];
+ var x$1 = mtch[1];
+ var $$x1 = result.push(((("{anonymous}()@" + x) + ":") + x$1));
+ $uI($$x1)
+ };
+ i = ((2 + i) | 0)
+ };
+ return result
+}
+function $p_jl_StackTrace$__extractOpera10a__O__O($thiz, e) {
+ var lineRE = $m_jl_StackTrace$StringRE$().re$extension1__T__T__O("Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$", "i");
+ var lines = $as_T(e.stacktrace).split("\n");
+ var result = [];
+ var i = 0;
+ var len = $uI(lines.length);
+ while ((i < len)) {
+ var mtch = lineRE.exec($as_T(lines[i]));
+ if ((mtch !== null)) {
+ var x = mtch[3];
+ var fnName = $as_T(((x !== (void 0)) ? x : "{anonymous}"));
+ var x$1 = mtch[2];
+ var x$2 = mtch[1];
+ var $$x1 = result.push(((((fnName + "()@") + x$1) + ":") + x$2));
+ $uI($$x1)
+ };
+ i = ((2 + i) | 0)
+ };
+ return result
+}
+function $p_jl_StackTrace$__extractOpera10b__O__O($thiz, e) {
+ var lineRE = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^(.*)@(.+):(\\d+)$");
+ var lines = $as_T(e.stacktrace).split("\n");
+ var result = [];
+ var i = 0;
+ var len = $uI(lines.length);
+ while ((i < len)) {
+ var mtch = lineRE.exec($as_T(lines[i]));
+ if ((mtch !== null)) {
+ var x = mtch[1];
+ if ((x !== (void 0))) {
+ var x$2 = $as_T(x);
+ var fnName = (x$2 + "()")
+ } else {
+ var fnName = "global code"
+ };
+ var x$1 = mtch[2];
+ var x$3 = mtch[3];
+ var $$x1 = result.push(((((fnName + "@") + x$1) + ":") + x$3));
+ $uI($$x1)
+ };
+ i = ((1 + i) | 0)
+ };
+ return result
+}
+function $p_jl_StackTrace$__extractOpera11__O__O($thiz, e) {
+ var lineRE = $m_jl_StackTrace$StringRE$().re$extension0__T__O("^.*line (\\d+), column (\\d+)(?: in (.+))? in (\\S+):$");
+ var lines = $as_T(e.stacktrace).split("\n");
+ var result = [];
+ var i = 0;
+ var len = $uI(lines.length);
+ while ((i < len)) {
+ var mtch = lineRE.exec($as_T(lines[i]));
+ if ((mtch !== null)) {
+ var x = mtch[4];
+ var $$x1 = $as_T(x);
+ var x$1 = mtch[1];
+ var x$2 = mtch[2];
+ var location = (((($$x1 + ":") + x$1) + ":") + x$2);
+ var x$3 = mtch[2];
+ var fnName0 = $as_T(((x$3 !== (void 0)) ? x$3 : "global code"));
+ var fnName = $as_T($as_T(fnName0.replace($m_jl_StackTrace$StringRE$().re$extension0__T__O(""), "$1")).replace($m_jl_StackTrace$StringRE$().re$extension0__T__O(""), "{anonymous}"));
+ $uI(result.push(((fnName + "@") + location)))
+ };
+ i = ((2 + i) | 0)
+ };
+ return result
+}
+function $p_jl_StackTrace$__extractOther__O__O($thiz, e) {
+ return []
+}
+function $p_jl_StackTrace$__loop$1__I__T__T($thiz, i, encodedName$1) {
+ while (true) {
+ if ((i < $uI($p_jl_StackTrace$__compressedPrefixes__O($thiz).length))) {
+ var prefix = $as_T($p_jl_StackTrace$__compressedPrefixes__O($thiz)[i]);
+ var this$1 = $n(encodedName$1);
+ if ((this$1.length >= 0)) {
+ var this$2 = $n(prefix);
+ var $$x2 = this$1.substring(0, this$2.length);
+ var $$x1 = ($as_T($$x2) === prefix)
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ var dict = $p_jl_StackTrace$__decompressedPrefixes__O($thiz);
+ var $$x4 = $as_T(dict[prefix]);
+ var this$4 = $n(prefix);
+ var $$x3 = encodedName$1.substring(this$4.length);
+ return (("" + $$x4) + $as_T($$x3))
+ } else {
+ i = ((1 + i) | 0)
+ }
+ } else {
+ var this$5 = $n(encodedName$1);
+ if (((this$5.length >= 0) && ($as_T(this$5.substring(0, 1)) === "L"))) {
+ return $as_T(encodedName$1.substring(1))
+ } else {
+ return encodedName$1
+ }
+ }
+ }
+}
+/** @constructor */
+function $c_jl_StackTrace$() {
+ this.jl_StackTrace$__f_decompressedClasses = null;
+ this.jl_StackTrace$__f_decompressedPrefixes = null;
+ this.jl_StackTrace$__f_compressedPrefixes = null;
+ this.jl_StackTrace$__f_bitmap$0 = 0
+}
+$c_jl_StackTrace$.prototype = new $h_O();
+$c_jl_StackTrace$.prototype.constructor = $c_jl_StackTrace$;
+/** @constructor */
+function $h_jl_StackTrace$() {
+ /**/
+}
+$h_jl_StackTrace$.prototype = $c_jl_StackTrace$.prototype;
+$c_jl_StackTrace$.prototype.extract__O__Ajl_StackTraceElement = (function(jsError) {
+ var lines = $p_jl_StackTrace$__normalizeStackTraceLines__O__O(this, jsError);
+ return $p_jl_StackTrace$__normalizedLinesToStackTrace__O__Ajl_StackTraceElement(this, lines)
+});
+var $d_jl_StackTrace$ = new $TypeData().initClass({
+ jl_StackTrace$: 0
+}, false, "java.lang.StackTrace$", {
+ jl_StackTrace$: 1,
+ O: 1
+});
+$c_jl_StackTrace$.prototype.$classData = $d_jl_StackTrace$;
+var $n_jl_StackTrace$;
+function $m_jl_StackTrace$() {
+ if ((!$n_jl_StackTrace$)) {
+ $n_jl_StackTrace$ = new $c_jl_StackTrace$()
+ };
+ return $n_jl_StackTrace$
+}
+/** @constructor */
+function $c_jl_StackTrace$StringRE$() {
+ /**/
+}
+$c_jl_StackTrace$StringRE$.prototype = new $h_O();
+$c_jl_StackTrace$StringRE$.prototype.constructor = $c_jl_StackTrace$StringRE$;
+/** @constructor */
+function $h_jl_StackTrace$StringRE$() {
+ /**/
+}
+$h_jl_StackTrace$StringRE$.prototype = $c_jl_StackTrace$StringRE$.prototype;
+$c_jl_StackTrace$StringRE$.prototype.re$extension0__T__O = (function(this$) {
+ return new RegExp(this$)
+});
+$c_jl_StackTrace$StringRE$.prototype.re$extension1__T__T__O = (function(this$, mods) {
+ return new RegExp(this$, mods)
+});
+var $d_jl_StackTrace$StringRE$ = new $TypeData().initClass({
+ jl_StackTrace$StringRE$: 0
+}, false, "java.lang.StackTrace$StringRE$", {
+ jl_StackTrace$StringRE$: 1,
+ O: 1
+});
+$c_jl_StackTrace$StringRE$.prototype.$classData = $d_jl_StackTrace$StringRE$;
+var $n_jl_StackTrace$StringRE$;
+function $m_jl_StackTrace$StringRE$() {
+ if ((!$n_jl_StackTrace$StringRE$)) {
+ $n_jl_StackTrace$StringRE$ = new $c_jl_StackTrace$StringRE$()
+ };
+ return $n_jl_StackTrace$StringRE$
+}
+/** @constructor */
+function $c_jl_System$Streams$() {
+ this.jl_System$Streams$__f_out = null;
+ this.jl_System$Streams$__f_err = null;
+ $n_jl_System$Streams$ = this;
+ this.jl_System$Streams$__f_out = new $c_jl_JSConsoleBasedPrintStream(false);
+ this.jl_System$Streams$__f_err = new $c_jl_JSConsoleBasedPrintStream(true)
+}
+$c_jl_System$Streams$.prototype = new $h_O();
+$c_jl_System$Streams$.prototype.constructor = $c_jl_System$Streams$;
+/** @constructor */
+function $h_jl_System$Streams$() {
+ /**/
+}
+$h_jl_System$Streams$.prototype = $c_jl_System$Streams$.prototype;
+var $d_jl_System$Streams$ = new $TypeData().initClass({
+ jl_System$Streams$: 0
+}, false, "java.lang.System$Streams$", {
+ jl_System$Streams$: 1,
+ O: 1
+});
+$c_jl_System$Streams$.prototype.$classData = $d_jl_System$Streams$;
+var $n_jl_System$Streams$;
+function $m_jl_System$Streams$() {
+ if ((!$n_jl_System$Streams$)) {
+ $n_jl_System$Streams$ = new $c_jl_System$Streams$()
+ };
+ return $n_jl_System$Streams$
+}
+function $p_jl_System$SystemProperties$__loadSystemProperties__O($thiz) {
+ var result = {};
+ result["java.version"] = "1.8";
+ result["java.vm.specification.version"] = "1.8";
+ result["java.vm.specification.vendor"] = "Oracle Corporation";
+ result["java.vm.specification.name"] = "Java Virtual Machine Specification";
+ result["java.vm.name"] = "Scala.js";
+ var value = $as_T($linkingInfo.linkerVersion);
+ result["java.vm.version"] = value;
+ result["java.specification.version"] = "1.8";
+ result["java.specification.vendor"] = "Oracle Corporation";
+ result["java.specification.name"] = "Java Platform API Specification";
+ result["file.separator"] = "/";
+ result["path.separator"] = ":";
+ result["line.separator"] = "\n";
+ return result
+}
+/** @constructor */
+function $c_jl_System$SystemProperties$() {
+ this.jl_System$SystemProperties$__f_dict = null;
+ this.jl_System$SystemProperties$__f_properties = null;
+ $n_jl_System$SystemProperties$ = this;
+ this.jl_System$SystemProperties$__f_dict = $p_jl_System$SystemProperties$__loadSystemProperties__O(this);
+ this.jl_System$SystemProperties$__f_properties = null
+}
+$c_jl_System$SystemProperties$.prototype = new $h_O();
+$c_jl_System$SystemProperties$.prototype.constructor = $c_jl_System$SystemProperties$;
+/** @constructor */
+function $h_jl_System$SystemProperties$() {
+ /**/
+}
+$h_jl_System$SystemProperties$.prototype = $c_jl_System$SystemProperties$.prototype;
+$c_jl_System$SystemProperties$.prototype.getProperty__T__T__T = (function(key, default$1) {
+ if ((this.jl_System$SystemProperties$__f_dict !== null)) {
+ var dict = this.jl_System$SystemProperties$__f_dict;
+ return $as_T(($uZ($m_jl_Utils$Cache$().jl_Utils$Cache$__f_safeHasOwnProperty.call(dict, key)) ? dict[key] : default$1))
+ } else {
+ return $n(this.jl_System$SystemProperties$__f_properties).getProperty__T__T__T(key, default$1)
+ }
+});
+var $d_jl_System$SystemProperties$ = new $TypeData().initClass({
+ jl_System$SystemProperties$: 0
+}, false, "java.lang.System$SystemProperties$", {
+ jl_System$SystemProperties$: 1,
+ O: 1
+});
+$c_jl_System$SystemProperties$.prototype.$classData = $d_jl_System$SystemProperties$;
+var $n_jl_System$SystemProperties$;
+function $m_jl_System$SystemProperties$() {
+ if ((!$n_jl_System$SystemProperties$)) {
+ $n_jl_System$SystemProperties$ = new $c_jl_System$SystemProperties$()
+ };
+ return $n_jl_System$SystemProperties$
+}
+/** @constructor */
+function $c_jl_Utils$Cache$() {
+ this.jl_Utils$Cache$__f_safeHasOwnProperty = null;
+ $n_jl_Utils$Cache$ = this;
+ this.jl_Utils$Cache$__f_safeHasOwnProperty = Object.prototype.hasOwnProperty
+}
+$c_jl_Utils$Cache$.prototype = new $h_O();
+$c_jl_Utils$Cache$.prototype.constructor = $c_jl_Utils$Cache$;
+/** @constructor */
+function $h_jl_Utils$Cache$() {
+ /**/
+}
+$h_jl_Utils$Cache$.prototype = $c_jl_Utils$Cache$.prototype;
+var $d_jl_Utils$Cache$ = new $TypeData().initClass({
+ jl_Utils$Cache$: 0
+}, false, "java.lang.Utils$Cache$", {
+ jl_Utils$Cache$: 1,
+ O: 1
+});
+$c_jl_Utils$Cache$.prototype.$classData = $d_jl_Utils$Cache$;
+var $n_jl_Utils$Cache$;
+function $m_jl_Utils$Cache$() {
+ if ((!$n_jl_Utils$Cache$)) {
+ $n_jl_Utils$Cache$ = new $c_jl_Utils$Cache$()
+ };
+ return $n_jl_Utils$Cache$
+}
+function $f_jl_Void__equals__O__Z($thiz, that) {
+ return ($thiz === that)
+}
+function $f_jl_Void__hashCode__I($thiz) {
+ return 0
+}
+function $f_jl_Void__toString__T($thiz) {
+ return "undefined"
+}
+function $as_jl_Void(obj) {
+ return (((obj === (void 0)) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.Void"))
+}
+function $isArrayOf_jl_Void(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Void)))
+}
+function $asArrayOf_jl_Void(obj, depth) {
+ return (($isArrayOf_jl_Void(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Void;", depth))
+}
+var $d_jl_Void = new $TypeData().initClass({
+ jl_Void: 0
+}, false, "java.lang.Void", {
+ jl_Void: 1,
+ O: 1
+}, (void 0), (void 0), ((x) => (x === (void 0))));
+function $p_jl_reflect_Array$__mismatch__O__E($thiz, array) {
+ var this$1 = $n(array);
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), "argument type mismatch")
+}
+/** @constructor */
+function $c_jl_reflect_Array$() {
+ /**/
+}
+$c_jl_reflect_Array$.prototype = new $h_O();
+$c_jl_reflect_Array$.prototype.constructor = $c_jl_reflect_Array$;
+/** @constructor */
+function $h_jl_reflect_Array$() {
+ /**/
+}
+$h_jl_reflect_Array$.prototype = $c_jl_reflect_Array$.prototype;
+$c_jl_reflect_Array$.prototype.newInstance__jl_Class__I__O = (function(componentType, length) {
+ return $n(componentType).newArrayOfThisClass__O__O([length])
+});
+$c_jl_reflect_Array$.prototype.getLength__O__I = (function(array) {
+ if ((array instanceof $ac_O)) {
+ var x2 = $asArrayOf_O(array, 1);
+ return $n(x2).u.length
+ } else if ((array instanceof $ac_Z)) {
+ var x3 = $asArrayOf_Z(array, 1);
+ return $n(x3).u.length
+ } else if ((array instanceof $ac_C)) {
+ var x4 = $asArrayOf_C(array, 1);
+ return $n(x4).u.length
+ } else if ((array instanceof $ac_B)) {
+ var x5 = $asArrayOf_B(array, 1);
+ return $n(x5).u.length
+ } else if ((array instanceof $ac_S)) {
+ var x6 = $asArrayOf_S(array, 1);
+ return $n(x6).u.length
+ } else if ((array instanceof $ac_I)) {
+ var x7 = $asArrayOf_I(array, 1);
+ return $n(x7).u.length
+ } else if ((array instanceof $ac_J)) {
+ var x8 = $asArrayOf_J(array, 1);
+ return $n(x8).u.length
+ } else if ((array instanceof $ac_F)) {
+ var x9 = $asArrayOf_F(array, 1);
+ return $n(x9).u.length
+ } else if ((array instanceof $ac_D)) {
+ var x10 = $asArrayOf_D(array, 1);
+ return $n(x10).u.length
+ } else {
+ $p_jl_reflect_Array$__mismatch__O__E(this, array)
+ }
+});
+var $d_jl_reflect_Array$ = new $TypeData().initClass({
+ jl_reflect_Array$: 0
+}, false, "java.lang.reflect.Array$", {
+ jl_reflect_Array$: 1,
+ O: 1
+});
+$c_jl_reflect_Array$.prototype.$classData = $d_jl_reflect_Array$;
+var $n_jl_reflect_Array$;
+function $m_jl_reflect_Array$() {
+ if ((!$n_jl_reflect_Array$)) {
+ $n_jl_reflect_Array$ = new $c_jl_reflect_Array$()
+ };
+ return $n_jl_reflect_Array$
+}
+/** @constructor */
+function $c_ju_Arrays$() {
+ /**/
+}
+$c_ju_Arrays$.prototype = new $h_O();
+$c_ju_Arrays$.prototype.constructor = $c_ju_Arrays$;
+/** @constructor */
+function $h_ju_Arrays$() {
+ /**/
+}
+$h_ju_Arrays$.prototype = $c_ju_Arrays$.prototype;
+$c_ju_Arrays$.prototype.binarySearch__AI__I__I = (function(a, key) {
+ var startIndex = 0;
+ var endIndex = $n(a).u.length;
+ while (true) {
+ if ((startIndex === endIndex)) {
+ return (((-1) - startIndex) | 0)
+ } else {
+ var mid = ((((startIndex + endIndex) | 0) >>> 1) | 0);
+ var elem = $n(a).get(mid);
+ var cmp = ((key === elem) ? 0 : ((key < elem) ? (-1) : 1));
+ if ((cmp < 0)) {
+ endIndex = mid
+ } else if ((cmp === 0)) {
+ return mid
+ } else {
+ startIndex = ((1 + mid) | 0)
+ }
+ }
+ }
+});
+$c_ju_Arrays$.prototype.equals__AJ__AJ__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var t = $n(a).get(i$1);
+ var lo = t.RTLong__f_lo;
+ var hi = t.RTLong__f_hi;
+ var i$2 = i;
+ var t$1 = $n(b).get(i$2);
+ var lo$1 = t$1.RTLong__f_lo;
+ var hi$1 = t$1.RTLong__f_hi;
+ if ((!((lo === lo$1) && (hi === hi$1)))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.equals__AI__AI__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var a$1 = $n(a).get(i$1);
+ var i$2 = i;
+ var b$1 = $n(b).get(i$2);
+ if ((!(a$1 === b$1))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.equals__AS__AS__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var a$1 = $n(a).get(i$1);
+ var i$2 = i;
+ var b$1 = $n(b).get(i$2);
+ if ((!(a$1 === b$1))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.equals__AC__AC__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var a$1 = $n(a).get(i$1);
+ var i$2 = i;
+ var b$1 = $n(b).get(i$2);
+ if ((!(a$1 === b$1))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.equals__AB__AB__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var a$1 = $n(a).get(i$1);
+ var i$2 = i;
+ var b$1 = $n(b).get(i$2);
+ if ((!(a$1 === b$1))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.equals__AZ__AZ__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var a$1 = $n(a).get(i$1);
+ var i$2 = i;
+ var b$1 = $n(b).get(i$2);
+ if ((!(a$1 === b$1))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.equals__AD__AD__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var a$1 = $n(a).get(i$1);
+ var i$2 = i;
+ var b$1 = $n(b).get(i$2);
+ if ((!Object.is(a$1, b$1))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.equals__AF__AF__Z = (function(a, b) {
+ if ((a === b)) {
+ return true
+ };
+ if (((a === null) || (b === null))) {
+ return false
+ };
+ var len = $n(a).u.length;
+ if (($n(b).u.length !== len)) {
+ return false
+ };
+ var i = 0;
+ while ((i !== len)) {
+ var i$1 = i;
+ var a$1 = $n(a).get(i$1);
+ var i$2 = i;
+ var b$1 = $n(b).get(i$2);
+ if ((!Object.is(a$1, b$1))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+$c_ju_Arrays$.prototype.fill__AO__O__V = (function(a, value) {
+ var toIndex = $n(a).u.length;
+ var i = 0;
+ while ((i !== toIndex)) {
+ var i$1 = i;
+ $n(a).set(i$1, value);
+ i = ((1 + i) | 0)
+ }
+});
+$c_ju_Arrays$.prototype.copyOf__AO__I__AO = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var this$3 = $n(original);
+ var clazz = $objectGetClass(this$3);
+ var ret = $asArrayOf_O($m_jl_reflect_Array$().newInstance__jl_Class__I__O(clazz.getComponentType__jl_Class(), newLength), 1);
+ $systemArraycopyRefs($n(original), 0, $n(ret), 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AO__I__jl_Class__AO = (function(original, newLength, newType) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = $asArrayOf_O($m_jl_reflect_Array$().newInstance__jl_Class__I__O($n(newType).getComponentType__jl_Class(), newLength), 1);
+ $systemArraycopyRefs($n(original), 0, $n(ret), 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AB__I__AB = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_B(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AS__I__AS = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_S(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AI__I__AI = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_I(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AJ__I__AJ = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_J(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AC__I__AC = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_C(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AF__I__AF = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_F(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AD__I__AD = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_D(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOf__AZ__I__AZ = (function(original, newLength) {
+ if ((newLength < 0)) {
+ throw new $c_jl_NegativeArraySizeException()
+ };
+ var b = $n(original).u.length;
+ var copyLength = ((newLength < b) ? newLength : b);
+ var ret = new $ac_Z(newLength);
+ $systemArraycopy($n(original), 0, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AO__I__I__AO = (function(original, from, to) {
+ if ((from > to)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((from + " > ") + to))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((to - from) | 0);
+ var b = ((len - from) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var this$3 = $n(original);
+ var clazz = $objectGetClass(this$3);
+ var ret = $asArrayOf_O($m_jl_reflect_Array$().newInstance__jl_Class__I__O(clazz.getComponentType__jl_Class(), retLength), 1);
+ $systemArraycopyRefs($n(original), from, $n(ret), 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AB__I__I__AB = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_B(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AS__I__I__AS = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_S(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AI__I__I__AI = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_I(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AJ__I__I__AJ = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_J(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AC__I__I__AC = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_C(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AF__I__I__AF = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_F(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AD__I__I__AD = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_D(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+$c_ju_Arrays$.prototype.copyOfRange__AZ__I__I__AZ = (function(original, start, end) {
+ if ((start > end)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), ((start + " > ") + end))
+ };
+ var len = $n(original).u.length;
+ var retLength = ((end - start) | 0);
+ var b = ((len - start) | 0);
+ var copyLength = ((retLength < b) ? retLength : b);
+ var ret = new $ac_Z(retLength);
+ $systemArraycopy($n(original), start, ret, 0, copyLength);
+ return ret
+});
+var $d_ju_Arrays$ = new $TypeData().initClass({
+ ju_Arrays$: 0
+}, false, "java.util.Arrays$", {
+ ju_Arrays$: 1,
+ O: 1
+});
+$c_ju_Arrays$.prototype.$classData = $d_ju_Arrays$;
+var $n_ju_Arrays$;
+function $m_ju_Arrays$() {
+ if ((!$n_ju_Arrays$)) {
+ $n_ju_Arrays$ = new $c_ju_Arrays$()
+ };
+ return $n_ju_Arrays$
+}
+function $p_ju_regex_PatternCompiler__parseError__T__E($thiz, desc) {
+ throw new $c_ju_regex_PatternSyntaxException(desc, $thiz.ju_regex_PatternCompiler__f_pattern, $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex)
+}
+function $p_ju_regex_PatternCompiler__processLeadingEmbeddedFlags__V($thiz) {
+ var m = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$leadingEmbeddedFlagSpecifierRegExp.exec($thiz.ju_regex_PatternCompiler__f_pattern);
+ if ((m !== null)) {
+ var x = m[1];
+ if ((x !== (void 0))) {
+ var chars = $as_T(x);
+ var this$3 = $n(chars);
+ var end = this$3.length;
+ var i = 0;
+ while ((i < end)) {
+ var i$2 = i;
+ var $$x2 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags;
+ var $$x1 = $m_ju_regex_PatternCompiler$();
+ var this$5 = $n(chars);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags = ($$x2 | $n($$x1).java$util$regex$PatternCompiler$$charToFlag__C__I($charAt(this$5, i$2)));
+ i = ((1 + i) | 0)
+ }
+ };
+ if (((256 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags = (64 | $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags)
+ };
+ var x$1 = m[2];
+ if ((x$1 !== (void 0))) {
+ var chars$3 = $as_T(x$1);
+ var this$8 = $n(chars$3);
+ var end$1 = this$8.length;
+ var i$1 = 0;
+ while ((i$1 < end$1)) {
+ var i$2$1 = i$1;
+ var $$x4 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags;
+ var $$x3 = $m_ju_regex_PatternCompiler$();
+ var this$10 = $n(chars$3);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags = ($$x4 & (~$n($$x3).java$util$regex$PatternCompiler$$charToFlag__C__I($charAt(this$10, i$2$1))));
+ i$1 = ((1 + i$1) | 0)
+ }
+ };
+ var $$x5 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var x$2 = m[0];
+ var this$12 = $n($as_T(x$2));
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = (($$x5 + this$12.length) | 0)
+ }
+}
+function $p_ju_regex_PatternCompiler__literal__T__T($thiz, s) {
+ var result = "";
+ var this$1 = $n(s);
+ var len = this$1.length;
+ var i = 0;
+ while ((i !== len)) {
+ var cp = $f_T__codePointAt__I__I($n(s), i);
+ result = (("" + result) + $p_ju_regex_PatternCompiler__literal__I__T($thiz, cp));
+ i = ((i + ((cp >= 65536) ? 2 : 1)) | 0)
+ };
+ return result
+}
+function $p_ju_regex_PatternCompiler__literal__I__T($thiz, cp) {
+ var s = $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointToString__I__T(cp);
+ if ((cp < 128)) {
+ switch (cp) {
+ case 94:
+ case 36:
+ case 92:
+ case 46:
+ case 42:
+ case 43:
+ case 63:
+ case 40:
+ case 41:
+ case 91:
+ case 93:
+ case 123:
+ case 125:
+ case 124: {
+ return ("\\" + s);
+ break
+ }
+ default: {
+ return (((66 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 2) ? s : (((cp >= 65) && (cp <= 90)) ? ((("[" + s) + $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointToString__I__T(((32 + cp) | 0))) + "]") : (((cp >= 97) && (cp <= 122)) ? ((("[" + $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointToString__I__T((((-32) + cp) | 0))) + s) + "]") : s)))
+ }
+ }
+ } else {
+ return ((((-1024) & cp) === 56320) ? (("(?:" + s) + ")") : s)
+ }
+}
+function $p_ju_regex_PatternCompiler__skipComments__V($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ while (true) {
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$2 = $n(pattern);
+ var index = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var x1 = $charAt(this$2, index);
+ switch (x1) {
+ case 32:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ continue;
+ break
+ }
+ case 35: {
+ $thiz.java$util$regex$PatternCompiler$$skipSharpComment__V();
+ continue;
+ break
+ }
+ }
+ };
+ break
+ }
+}
+function $p_ju_regex_PatternCompiler__compileRepeater__I__T__T($thiz, compiledGroupCountBeforeThisToken, compiledToken) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ var startOfRepeater = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ if ((startOfRepeater === len)) {
+ var repeaterDispatchChar = 46
+ } else {
+ var this$2 = $n(pattern);
+ var repeaterDispatchChar = $charAt(this$2, startOfRepeater)
+ };
+ if (((((repeaterDispatchChar === 63) || (repeaterDispatchChar === 42)) || (repeaterDispatchChar === 43)) || (repeaterDispatchChar === 123))) {
+ var this$3 = $n(compiledToken);
+ var x1 = $charAt(this$3, 0);
+ switch (x1) {
+ case 94:
+ case 36: {
+ var isTokenAnAssertion = true;
+ break
+ }
+ case 40: {
+ var this$4 = $n(compiledToken);
+ if (($charAt(this$4, 1) === 63)) {
+ var this$5 = $n(compiledToken);
+ var isTokenAnAssertion = ($charAt(this$5, 2) !== 58)
+ } else {
+ var isTokenAnAssertion = false
+ };
+ break
+ }
+ case 92: {
+ var this$6 = $n(compiledToken);
+ var c = $charAt(this$6, 1);
+ var isTokenAnAssertion = ((c === 98) || (c === 66));
+ break
+ }
+ default: {
+ var isTokenAnAssertion = false
+ }
+ };
+ var wrappedToken = (isTokenAnAssertion ? (("(?:" + compiledToken) + ")") : compiledToken);
+ var baseRepeater = $p_ju_regex_PatternCompiler__parseBaseRepeater__C__T($thiz, repeaterDispatchChar);
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$7 = $n(pattern);
+ var index = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var x1$2 = $charAt(this$7, index);
+ switch (x1$2) {
+ case 43: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return $p_ju_regex_PatternCompiler__buildPossessiveQuantifier__I__T__T__T($thiz, compiledGroupCountBeforeThisToken, wrappedToken, baseRepeater);
+ break
+ }
+ case 63: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return ((("" + wrappedToken) + baseRepeater) + "?");
+ break
+ }
+ default: {
+ return (("" + wrappedToken) + baseRepeater)
+ }
+ }
+ } else {
+ return (("" + wrappedToken) + baseRepeater)
+ }
+ } else {
+ return compiledToken
+ }
+}
+function $p_ju_regex_PatternCompiler__parseBaseRepeater__C__T($thiz, repeaterDispatchChar) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var startOfRepeater = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ if ((repeaterDispatchChar === 123)) {
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex === len)) {
+ var $$x1 = true
+ } else {
+ var this$2 = $n(pattern);
+ var index = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var c = $charAt(this$2, index);
+ var $$x1 = (!((c >= 48) && (c <= 57)))
+ };
+ if ($$x1) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal repetition")
+ };
+ while (true) {
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$4 = $n(pattern);
+ var index$1 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var c$1 = $charAt(this$4, index$1);
+ var $$x2 = ((c$1 >= 48) && (c$1 <= 57))
+ } else {
+ var $$x2 = false
+ };
+ if ($$x2) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ } else {
+ break
+ }
+ };
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex === len)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal repetition")
+ };
+ var this$6 = $n(pattern);
+ var index$2 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ if (($charAt(this$6, index$2) === 44)) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ while (true) {
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$7 = $n(pattern);
+ var index$3 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var c$2 = $charAt(this$7, index$3);
+ var $$x3 = ((c$2 >= 48) && (c$2 <= 57))
+ } else {
+ var $$x3 = false
+ };
+ if ($$x3) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ } else {
+ break
+ }
+ }
+ };
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex === len)) {
+ var $$x4 = true
+ } else {
+ var this$9 = $n(pattern);
+ var index$4 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var $$x4 = ($charAt(this$9, index$4) !== 125)
+ };
+ if ($$x4) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal repetition")
+ };
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ };
+ return $as_T(pattern.substring(startOfRepeater, $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex))
+}
+function $p_ju_regex_PatternCompiler__buildPossessiveQuantifier__I__T__T__T($thiz, compiledGroupCountBeforeThisToken, compiledToken, baseRepeater) {
+ var end = $uI($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap.length);
+ var i = 0;
+ while ((i < end)) {
+ var i$2 = i;
+ var mapped = $uI($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap[i$2]);
+ if ((mapped > compiledGroupCountBeforeThisToken)) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap[i$2] = ((1 + mapped) | 0)
+ };
+ i = ((1 + i) | 0)
+ };
+ var amendedToken = $as_T(compiledToken.replace($m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$renumberingRegExp, ((arg1$2, arg2$2, arg3$2) => {
+ var arg1 = $as_T(arg1$2);
+ var arg2 = $as_T(arg2$2);
+ var arg3 = $as_T(arg3$2);
+ return $thiz.java$util$regex$PatternCompiler$$$anonfun$buildPossessiveQuantifier$2__T__T__T__I__T(arg1, arg2, arg3, compiledGroupCountBeforeThisToken)
+ })));
+ $thiz.ju_regex_PatternCompiler__f_compiledGroupCount = ((1 + $thiz.ju_regex_PatternCompiler__f_compiledGroupCount) | 0);
+ var myGroupNumber = ((1 + compiledGroupCountBeforeThisToken) | 0);
+ return ((((("(?:(?=(" + amendedToken) + baseRepeater) + "))\\") + myGroupNumber) + ")")
+}
+function $p_ju_regex_PatternCompiler__compileEscape__T($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ if ((((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0) === len)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "\\ at end of pattern")
+ };
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var this$2 = $n(pattern);
+ var index = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var dispatchChar = $charAt(this$2, index);
+ switch (dispatchChar) {
+ case 100:
+ case 68:
+ case 104:
+ case 72:
+ case 115:
+ case 83:
+ case 118:
+ case 86:
+ case 119:
+ case 87:
+ case 112:
+ case 80: {
+ var cls = $p_ju_regex_PatternCompiler__parsePredefinedCharacterClass__C__ju_regex_PatternCompiler$CompiledCharClass($thiz, dispatchChar);
+ var x1$2 = $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_kind;
+ switch (x1$2) {
+ case 0: {
+ return (("\\p{" + $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data) + "}");
+ break
+ }
+ case 1: {
+ return (("\\P{" + $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data) + "}");
+ break
+ }
+ case 2: {
+ return (("[" + $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data) + "]");
+ break
+ }
+ case 3: {
+ return $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointNotAmong__T__T($n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data);
+ break
+ }
+ default: {
+ throw new $c_jl_AssertionError(x1$2)
+ }
+ };
+ break
+ }
+ case 98: {
+ if (($as_T(pattern.substring($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex, ((4 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0))) === "b{g}")) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "\\b{g} is not supported")
+ } else if (((320 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $thiz.java$util$regex$PatternCompiler$$parseErrorRequireESVersion__T__T__E("\\b with UNICODE_CASE", "2018")
+ } else {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return "\\b"
+ };
+ break
+ }
+ case 66: {
+ if (((320 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $thiz.java$util$regex$PatternCompiler$$parseErrorRequireESVersion__T__T__E("\\B with UNICODE_CASE", "2018")
+ } else {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return "\\B"
+ };
+ break
+ }
+ case 65: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return "^";
+ break
+ }
+ case 71: {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "\\G in the middle of a pattern is not supported");
+ break
+ }
+ case 90: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var lineTerminator = (((1 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0) ? "\n" : "(?:\r\n?|[\n\u0085\u2028\u2029])");
+ return (("(?=" + lineTerminator) + "?$)");
+ break
+ }
+ case 122: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return "$";
+ break
+ }
+ case 82: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return "(?:\r\n|[\n-\r\u0085\u2028\u2029])";
+ break
+ }
+ case 88: {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "\\X is not supported");
+ break
+ }
+ case 49:
+ case 50:
+ case 51:
+ case 52:
+ case 53:
+ case 54:
+ case 55:
+ case 56:
+ case 57: {
+ var start = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var end = ((1 + start) | 0);
+ while (true) {
+ if ((end !== len)) {
+ var this$7 = $n(pattern);
+ var index$1 = end;
+ var c = $charAt(this$7, index$1);
+ var $$x2 = ((c >= 48) && (c <= 57))
+ } else {
+ var $$x2 = false
+ };
+ if ($$x2) {
+ var s = $as_T(pattern.substring(start, ((1 + end) | 0)));
+ var $$x1 = ($uI(parseInt(s, 10)) <= (((-1) + $uI($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap.length)) | 0))
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ end = ((1 + end) | 0)
+ } else {
+ break
+ }
+ };
+ var groupString = $as_T(pattern.substring(start, end));
+ var groupNumber = $uI(parseInt(groupString, 10));
+ if ((groupNumber > (((-1) + $uI($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap.length)) | 0))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, (("numbered capturing group <" + groupNumber) + "> does not exist"))
+ };
+ var compiledGroupNumber = $uI($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap[groupNumber]);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = end;
+ return (("(?:\\" + compiledGroupNumber) + ")");
+ break
+ }
+ case 107: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex === len)) {
+ var $$x3 = true
+ } else {
+ var this$11 = $n(pattern);
+ var index$2 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var $$x3 = ($charAt(this$11, index$2) !== 60)
+ };
+ if ($$x3) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "\\k is not followed by '<' for named capturing group")
+ };
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var groupName = $p_ju_regex_PatternCompiler__parseGroupName__T($thiz);
+ var dict = $thiz.ju_regex_PatternCompiler__f_namedGroups;
+ if ((!$uZ($m_jl_Utils$Cache$().jl_Utils$Cache$__f_safeHasOwnProperty.call(dict, groupName)))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, (("named capturing group <" + groupName) + "> does not exit"))
+ };
+ var groupNumber$2 = $uI(dict[groupName]);
+ var compiledGroupNumber$2 = $uI($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap[groupNumber$2]);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return (("(?:\\" + compiledGroupNumber$2) + ")");
+ break
+ }
+ case 81: {
+ var start$2 = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var this$13 = $n(pattern);
+ var end$2 = $uI(this$13.indexOf("\\E", start$2));
+ if ((end$2 < 0)) {
+ var this$14 = $n(pattern);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = this$14.length;
+ return $p_ju_regex_PatternCompiler__literal__T__T($thiz, $as_T(pattern.substring(start$2)))
+ } else {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((2 + end$2) | 0);
+ return $p_ju_regex_PatternCompiler__literal__T__T($thiz, $as_T(pattern.substring(start$2, end$2)))
+ };
+ break
+ }
+ default: {
+ return $p_ju_regex_PatternCompiler__literal__I__T($thiz, $p_ju_regex_PatternCompiler__parseSingleCodePointEscape__I($thiz))
+ }
+ }
+}
+function $p_ju_regex_PatternCompiler__parseSingleCodePointEscape__I($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var x1 = $f_T__codePointAt__I__I($n(pattern), $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex);
+ switch (x1) {
+ case 48: {
+ return $p_ju_regex_PatternCompiler__parseOctalEscape__I($thiz);
+ break
+ }
+ case 120: {
+ return $p_ju_regex_PatternCompiler__parseHexEscape__I($thiz);
+ break
+ }
+ case 117: {
+ return $p_ju_regex_PatternCompiler__parseUnicodeHexEscape__I($thiz);
+ break
+ }
+ case 78: {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "\\N is not supported");
+ break
+ }
+ case 97: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return 7;
+ break
+ }
+ case 116: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return 9;
+ break
+ }
+ case 110: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return 10;
+ break
+ }
+ case 102: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return 12;
+ break
+ }
+ case 114: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return 13;
+ break
+ }
+ case 101: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return 27;
+ break
+ }
+ case 99: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var $$x1 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var this$1 = $n(pattern);
+ if (($$x1 === this$1.length)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal control escape sequence")
+ };
+ var cp = $f_T__codePointAt__I__I($n(pattern), $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex + ((cp >= 65536) ? 2 : 1)) | 0);
+ return (64 ^ cp);
+ break
+ }
+ default: {
+ if ((((x1 >= 65) && (x1 <= 90)) || ((x1 >= 97) && (x1 <= 122)))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal/unsupported escape sequence")
+ };
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex + ((x1 >= 65536) ? 2 : 1)) | 0);
+ return x1
+ }
+ }
+}
+function $p_ju_regex_PatternCompiler__parseOctalEscape__I($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ var start = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ if ((((1 + start) | 0) < len)) {
+ var this$2 = $n(pattern);
+ var index = ((1 + start) | 0);
+ var d1 = (((-48) + $charAt(this$2, index)) | 0)
+ } else {
+ var d1 = (-1)
+ };
+ if (((d1 < 0) || (d1 > 7))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal octal escape sequence")
+ };
+ if ((((2 + start) | 0) < len)) {
+ var this$3 = $n(pattern);
+ var index$1 = ((2 + start) | 0);
+ var d2 = (((-48) + $charAt(this$3, index$1)) | 0)
+ } else {
+ var d2 = (-1)
+ };
+ if (((d2 < 0) || (d2 > 7))) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((2 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return d1
+ } else if ((d1 > 3)) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((3 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return (((d1 << 3) + d2) | 0)
+ } else {
+ if ((((3 + start) | 0) < len)) {
+ var this$4 = $n(pattern);
+ var index$2 = ((3 + start) | 0);
+ var d3 = (((-48) + $charAt(this$4, index$2)) | 0)
+ } else {
+ var d3 = (-1)
+ };
+ if (((d3 < 0) || (d3 > 7))) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((3 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return (((d1 << 3) + d2) | 0)
+ } else {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((4 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return (((((d1 << 6) + (d2 << 3)) | 0) + d3) | 0)
+ }
+ }
+}
+function $p_ju_regex_PatternCompiler__parseHexEscape__I($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ var start = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ if ((start !== len)) {
+ var this$2 = $n(pattern);
+ var $$x1 = ($charAt(this$2, start) === 123)
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ var innerStart = ((1 + start) | 0);
+ var this$3 = $n(pattern);
+ var innerEnd = $uI(this$3.indexOf("}", innerStart));
+ if ((innerEnd < 0)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unclosed hexadecimal escape sequence")
+ };
+ var cp = $p_ju_regex_PatternCompiler__parseHexCodePoint__I__I__T__I($thiz, innerStart, innerEnd, "hexadecimal");
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + innerEnd) | 0);
+ return cp
+ } else {
+ var cp$2 = $p_ju_regex_PatternCompiler__parseHexCodePoint__I__I__T__I($thiz, start, ((2 + start) | 0), "hexadecimal");
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((2 + start) | 0);
+ return cp$2
+ }
+}
+function $p_ju_regex_PatternCompiler__parseUnicodeHexEscape__I($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var start = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var end = ((4 + start) | 0);
+ var codeUnit = $p_ju_regex_PatternCompiler__parseHexCodePoint__I__I__T__I($thiz, start, end, "Unicode");
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = end;
+ var lowStart = ((2 + end) | 0);
+ var lowEnd = ((4 + lowStart) | 0);
+ if (((((-1024) & codeUnit) === 55296) && ($as_T(pattern.substring(end, lowStart)) === "\\u"))) {
+ var low = $p_ju_regex_PatternCompiler__parseHexCodePoint__I__I__T__I($thiz, lowStart, lowEnd, "Unicode");
+ if ((((-1024) & low) === 56320)) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = lowEnd;
+ return ((((64 + (1023 & codeUnit)) | 0) << 10) | (1023 & low))
+ } else {
+ return codeUnit
+ }
+ } else {
+ return codeUnit
+ }
+}
+function $p_ju_regex_PatternCompiler__parseHexCodePoint__I__I__T__I($thiz, start, end, nameForError) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ if (((start === end) || (end > len))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, (("Illegal " + nameForError) + " escape sequence"))
+ };
+ var i = start;
+ while ((i < end)) {
+ var i$2 = i;
+ var this$4 = $n(pattern);
+ var c = $charAt(this$4, i$2);
+ if ((!((((c >= 48) && (c <= 57)) || ((c >= 65) && (c <= 70))) || ((c >= 97) && (c <= 102))))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, (("Illegal " + nameForError) + " escape sequence"))
+ };
+ i = ((1 + i) | 0)
+ };
+ if ((((end - start) | 0) > 6)) {
+ var cp = 1114112
+ } else {
+ var s = $as_T(pattern.substring(start, end));
+ var cp = $uI(parseInt(s, 16))
+ };
+ if ((cp > 1114111)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Hexadecimal codepoint is too big")
+ };
+ return cp
+}
+function $p_ju_regex_PatternCompiler__parsePredefinedCharacterClass__C__ju_regex_PatternCompiler$CompiledCharClass($thiz, dispatchChar) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ switch (dispatchChar) {
+ case 100:
+ case 68: {
+ var positive = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIDigit;
+ break
+ }
+ case 104:
+ case 72: {
+ var positive = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UniversalHorizontalWhiteSpace;
+ break
+ }
+ case 115:
+ case 83: {
+ var positive = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIWhiteSpace;
+ break
+ }
+ case 118:
+ case 86: {
+ var positive = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UniversalVerticalWhiteSpace;
+ break
+ }
+ case 119:
+ case 87: {
+ var positive = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIWordChar;
+ break
+ }
+ case 112:
+ case 80: {
+ var positive = $p_ju_regex_PatternCompiler__parsePCharacterClass__ju_regex_PatternCompiler$CompiledCharClass($thiz);
+ break
+ }
+ default: {
+ var positive;
+ throw new $c_jl_AssertionError($bC(dispatchChar))
+ }
+ };
+ return ((dispatchChar >= 97) ? positive : $n(positive).negated__ju_regex_PatternCompiler$CompiledCharClass())
+}
+function $p_ju_regex_PatternCompiler__parsePCharacterClass__ju_regex_PatternCompiler$CompiledCharClass($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ var start = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ if ((start === len)) {
+ var property = "?"
+ } else {
+ var this$2 = $n(pattern);
+ if (($charAt(this$2, start) === 123)) {
+ var innerStart = ((1 + start) | 0);
+ var this$3 = $n(pattern);
+ var innerEnd = $uI(this$3.indexOf("}", innerStart));
+ if ((innerEnd < 0)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unclosed character family")
+ };
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = innerEnd;
+ var property = $as_T(pattern.substring(innerStart, innerEnd))
+ } else {
+ var property = $as_T(pattern.substring(start, ((1 + start) | 0)))
+ }
+ };
+ var dict = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$asciiPOSIXCharacterClasses;
+ if ((!$uZ($m_jl_Utils$Cache$().jl_Utils$Cache$__f_safeHasOwnProperty.call(dict, property)))) {
+ $thiz.java$util$regex$PatternCompiler$$parseErrorRequireESVersion__T__T__E("Unicode character family", "2018")
+ };
+ var property2 = ((((66 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) === 2) && ((property === "Lower") || (property === "Upper"))) ? "Alpha" : property);
+ var dict$1 = $m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$asciiPOSIXCharacterClasses;
+ var result = $as_ju_regex_PatternCompiler$CompiledCharClass(dict$1[property2]);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return result
+}
+function $p_ju_regex_PatternCompiler__compileCharacterClass__T($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$2 = $n(pattern);
+ var index = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var isNegated = ($charAt(this$2, index) === 94)
+ } else {
+ var isNegated = false
+ };
+ if (isNegated) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ };
+ var builder = new $c_ju_regex_PatternCompiler$CharacterClassBuilder(((66 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) === 2), isNegated);
+ while (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var x1 = $f_T__codePointAt__I__I($n(pattern), $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex);
+ matchResult: {
+ switch (x1) {
+ case 93: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return builder.finish__T();
+ break
+ }
+ case 38: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$3 = $n(pattern);
+ var index$1 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var $$x1 = ($charAt(this$3, index$1) === 38)
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ builder.startNewConjunct__V()
+ } else {
+ $p_ju_regex_PatternCompiler__processRangeOrSingleCodePoint$1__I__I__T__ju_regex_PatternCompiler$CharacterClassBuilder__V($thiz, 38, len, pattern, builder)
+ };
+ break matchResult;
+ break
+ }
+ case 91: {
+ var cls = $p_ju_regex_PatternCompiler__compileCharacterClass__T($thiz);
+ $p_ju_regex_PatternCompiler$CharacterClassBuilder__addAlternative__T__V(builder, cls);
+ break matchResult;
+ break
+ }
+ case 92: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex === len)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal escape sequence")
+ };
+ var this$4 = $n(pattern);
+ var index$2 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var c2 = $charAt(this$4, index$2);
+ switch (c2) {
+ case 100:
+ case 68:
+ case 104:
+ case 72:
+ case 115:
+ case 83:
+ case 118:
+ case 86:
+ case 119:
+ case 87:
+ case 112:
+ case 80: {
+ builder.addCharacterClass__ju_regex_PatternCompiler$CompiledCharClass__V($p_ju_regex_PatternCompiler__parsePredefinedCharacterClass__C__ju_regex_PatternCompiler$CompiledCharClass($thiz, c2));
+ break
+ }
+ case 81: {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var this$5 = $n(pattern);
+ var fromIndex = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var end = $uI(this$5.indexOf("\\E", fromIndex));
+ if ((end < 0)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unclosed character class")
+ };
+ builder.addCodePointsInString__T__I__I__V(pattern, $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex, end);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((2 + end) | 0);
+ break
+ }
+ default: {
+ $p_ju_regex_PatternCompiler__processRangeOrSingleCodePoint$1__I__I__T__ju_regex_PatternCompiler$CharacterClassBuilder__V($thiz, $p_ju_regex_PatternCompiler__parseSingleCodePointEscape__I($thiz), len, pattern, builder)
+ }
+ };
+ break matchResult;
+ break
+ }
+ case 32:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13: {
+ if (((4 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ } else {
+ break
+ };
+ break matchResult;
+ break
+ }
+ case 35: {
+ if (((4 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $thiz.java$util$regex$PatternCompiler$$skipSharpComment__V()
+ } else {
+ break
+ };
+ break matchResult;
+ break
+ }
+ };
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex + ((x1 >= 65536) ? 2 : 1)) | 0);
+ $p_ju_regex_PatternCompiler__processRangeOrSingleCodePoint$1__I__I__T__ju_regex_PatternCompiler$CharacterClassBuilder__V($thiz, x1, len, pattern, builder)
+ }
+ };
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unclosed character class")
+}
+function $p_ju_regex_PatternCompiler__compileGroup__T($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ var start = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ if ((((1 + start) | 0) === len)) {
+ var $$x1 = true
+ } else {
+ var this$2 = $n(pattern);
+ var index = ((1 + start) | 0);
+ var $$x1 = ($charAt(this$2, index) !== 63)
+ };
+ if ($$x1) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + start) | 0);
+ $thiz.ju_regex_PatternCompiler__f_compiledGroupCount = ((1 + $thiz.ju_regex_PatternCompiler__f_compiledGroupCount) | 0);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap.push($thiz.ju_regex_PatternCompiler__f_compiledGroupCount);
+ return (("(" + $thiz.java$util$regex$PatternCompiler$$compileTopLevelOrInsideGroup__Z__T(true)) + ")")
+ } else {
+ if ((((2 + start) | 0) === len)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unclosed group")
+ };
+ var this$3 = $n(pattern);
+ var index$1 = ((2 + start) | 0);
+ var c1 = $charAt(this$3, index$1);
+ if ((((c1 === 58) || (c1 === 61)) || (c1 === 33))) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((3 + start) | 0);
+ return ((("" + $as_T(pattern.substring(start, ((3 + start) | 0)))) + $thiz.java$util$regex$PatternCompiler$$compileTopLevelOrInsideGroup__Z__T(true)) + ")")
+ } else if ((c1 === 60)) {
+ if ((((3 + start) | 0) === len)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unclosed group")
+ };
+ var this$4 = $n(pattern);
+ var index$2 = ((3 + start) | 0);
+ var c2 = $charAt(this$4, index$2);
+ if ((((c2 >= 65) && (c2 <= 90)) || ((c2 >= 97) && (c2 <= 122)))) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((3 + start) | 0);
+ var name = $p_ju_regex_PatternCompiler__parseGroupName__T($thiz);
+ var dict = $thiz.ju_regex_PatternCompiler__f_namedGroups;
+ if ($uZ($m_jl_Utils$Cache$().jl_Utils$Cache$__f_safeHasOwnProperty.call(dict, name))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, (("named capturing group <" + name) + "> is already defined"))
+ };
+ $thiz.ju_regex_PatternCompiler__f_compiledGroupCount = ((1 + $thiz.ju_regex_PatternCompiler__f_compiledGroupCount) | 0);
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap.push($thiz.ju_regex_PatternCompiler__f_compiledGroupCount);
+ var dict$1 = $thiz.ju_regex_PatternCompiler__f_namedGroups;
+ var value = (((-1) + $uI($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap.length)) | 0);
+ dict$1[name] = value;
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return (("(" + $thiz.java$util$regex$PatternCompiler$$compileTopLevelOrInsideGroup__Z__T(true)) + ")")
+ } else {
+ if (((c2 !== 61) && (c2 !== 33))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unknown look-behind group")
+ };
+ $thiz.java$util$regex$PatternCompiler$$parseErrorRequireESVersion__T__T__E("Look-behind group", "2018")
+ }
+ } else if ((c1 === 62)) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((3 + start) | 0);
+ $thiz.ju_regex_PatternCompiler__f_compiledGroupCount = ((1 + $thiz.ju_regex_PatternCompiler__f_compiledGroupCount) | 0);
+ var groupNumber = $thiz.ju_regex_PatternCompiler__f_compiledGroupCount;
+ return (((("(?:(?=(" + $thiz.java$util$regex$PatternCompiler$$compileTopLevelOrInsideGroup__Z__T(true)) + "))\\") + groupNumber) + ")")
+ } else {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Embedded flag expression in the middle of a pattern is not supported")
+ }
+ }
+}
+function $p_ju_regex_PatternCompiler__parseGroupName__T($thiz) {
+ var pattern = $thiz.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ var start = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ while (true) {
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$2 = $n(pattern);
+ var index = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var c = $charAt(this$2, index);
+ var $$x1 = ((((c >= 65) && (c <= 90)) || ((c >= 97) && (c <= 122))) || ((c >= 48) && (c <= 57)))
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ } else {
+ break
+ }
+ };
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex === len)) {
+ var $$x2 = true
+ } else {
+ var this$4 = $n(pattern);
+ var index$1 = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var $$x2 = ($charAt(this$4, index$1) !== 62)
+ };
+ if ($$x2) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "named capturing group is missing trailing '>'")
+ };
+ return $as_T(pattern.substring(start, $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex))
+}
+function $p_ju_regex_PatternCompiler__processRangeOrSingleCodePoint$1__I__I__T__ju_regex_PatternCompiler$CharacterClassBuilder__V($thiz, startCodePoint, len$2, pattern$3, builder$1) {
+ if (((4 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $p_ju_regex_PatternCompiler__skipComments__V($thiz)
+ };
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len$2)) {
+ var this$1 = $n(pattern$3);
+ var index = $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var $$x1 = ($charAt(this$1, index) === 45)
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ if (((4 & $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $p_ju_regex_PatternCompiler__skipComments__V($thiz)
+ };
+ if (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex === len$2)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Unclosed character class")
+ };
+ var cpEnd = $f_T__codePointAt__I__I($n(pattern$3), $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex);
+ if (((cpEnd === 91) || (cpEnd === 93))) {
+ $n(builder$1).addSingleCodePoint__I__V(startCodePoint);
+ $n(builder$1).addSingleCodePoint__I__V(45)
+ } else {
+ $thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = (($thiz.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex + ((cpEnd >= 65536) ? 2 : 1)) | 0);
+ var endCodePoint = ((cpEnd === 92) ? $p_ju_regex_PatternCompiler__parseSingleCodePointEscape__I($thiz) : cpEnd);
+ if ((endCodePoint < startCodePoint)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E($thiz, "Illegal character range")
+ };
+ $n(builder$1).addCodePointRange__I__I__V(startCodePoint, endCodePoint)
+ }
+ } else {
+ $n(builder$1).addSingleCodePoint__I__V(startCodePoint)
+ }
+}
+/** @constructor */
+function $c_ju_regex_PatternCompiler(pattern, flags) {
+ this.ju_regex_PatternCompiler__f_pattern = null;
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags = 0;
+ this.ju_regex_PatternCompiler__f_sticky = false;
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = 0;
+ this.ju_regex_PatternCompiler__f_compiledGroupCount = 0;
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap = null;
+ this.ju_regex_PatternCompiler__f_namedGroups = null;
+ this.ju_regex_PatternCompiler__f_pattern = pattern;
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags = flags;
+ this.ju_regex_PatternCompiler__f_sticky = false;
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = 0;
+ this.ju_regex_PatternCompiler__f_compiledGroupCount = 0;
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap = [0];
+ this.ju_regex_PatternCompiler__f_namedGroups = {}
+}
+$c_ju_regex_PatternCompiler.prototype = new $h_O();
+$c_ju_regex_PatternCompiler.prototype.constructor = $c_ju_regex_PatternCompiler;
+/** @constructor */
+function $h_ju_regex_PatternCompiler() {
+ /**/
+}
+$h_ju_regex_PatternCompiler.prototype = $c_ju_regex_PatternCompiler.prototype;
+$c_ju_regex_PatternCompiler.prototype.compile__ju_regex_Pattern = (function() {
+ if (((256 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags = (64 | this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags)
+ };
+ var isLiteral = ((16 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0);
+ if ((!isLiteral)) {
+ $p_ju_regex_PatternCompiler__processLeadingEmbeddedFlags__V(this)
+ };
+ if (((128 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E(this, "CANON_EQ is not supported")
+ };
+ if (((8 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ this.java$util$regex$PatternCompiler$$parseErrorRequireESVersion__T__T__E("MULTILINE", "2018")
+ };
+ if (((256 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ this.java$util$regex$PatternCompiler$$parseErrorRequireESVersion__T__T__E("UNICODE_CHARACTER_CLASS", "2018")
+ };
+ if (isLiteral) {
+ var jsPattern = $p_ju_regex_PatternCompiler__literal__T__T(this, this.ju_regex_PatternCompiler__f_pattern)
+ } else {
+ if (($as_T(this.ju_regex_PatternCompiler__f_pattern.substring(this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex, ((2 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0))) === "\\G")) {
+ this.ju_regex_PatternCompiler__f_sticky = true;
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((2 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ };
+ var jsPattern = this.java$util$regex$PatternCompiler$$compileTopLevelOrInsideGroup__Z__T(false)
+ };
+ var baseJSFlags = ($m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsDotAll ? "us" : "u");
+ var jsFlags = (((66 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) === 66) ? (baseJSFlags + "i") : baseJSFlags);
+ return new $c_ju_regex_Pattern(this.ju_regex_PatternCompiler__f_pattern, this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags, jsPattern, jsFlags, this.ju_regex_PatternCompiler__f_sticky, (((-1) + $uI(this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap.length)) | 0), this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$groupNumberMap, this.ju_regex_PatternCompiler__f_namedGroups)
+});
+$c_ju_regex_PatternCompiler.prototype.java$util$regex$PatternCompiler$$parseErrorRequireESVersion__T__T__E = (function(purpose, es) {
+ $p_ju_regex_PatternCompiler__parseError__T__E(this, (((((((purpose + " is not supported because it requires RegExp features of ECMAScript ") + es) + ".\n") + ((("If you only target environments with ES" + es) + "+, you can enable ES") + es)) + " features with\n") + (" scalaJSLinkerConfig ~= { _.withESFeatures(_.withESVersion(ESVersion.ES" + es)) + ")) }\nor an equivalent configuration depending on your build tool."))
+});
+$c_ju_regex_PatternCompiler.prototype.java$util$regex$PatternCompiler$$compileTopLevelOrInsideGroup__Z__T = (function(insideGroup) {
+ var pattern = this.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ var result = "";
+ while ((this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var dispatchCP = $f_T__codePointAt__I__I($n(pattern), this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex);
+ matchResult: {
+ switch (dispatchCP) {
+ case 41: {
+ if ((!insideGroup)) {
+ $p_ju_regex_PatternCompiler__parseError__T__E(this, "Unmatched closing ')'")
+ };
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ return result;
+ break
+ }
+ case 124: {
+ if ((this.ju_regex_PatternCompiler__f_sticky && (!insideGroup))) {
+ $p_ju_regex_PatternCompiler__parseError__T__E(this, "\\G is not supported when there is an alternative at the top level")
+ };
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ result = (result + "|");
+ break matchResult;
+ break
+ }
+ case 32:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13: {
+ if (((4 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ } else {
+ break
+ };
+ break matchResult;
+ break
+ }
+ case 35: {
+ if (((4 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0)) {
+ this.java$util$regex$PatternCompiler$$skipSharpComment__V()
+ } else {
+ break
+ };
+ break matchResult;
+ break
+ }
+ case 63:
+ case 42:
+ case 43:
+ case 123: {
+ $p_ju_regex_PatternCompiler__parseError__T__E(this, (("Dangling meta character '" + $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointToString__I__T(dispatchCP)) + "'"));
+ break
+ }
+ };
+ var compiledGroupCountBeforeThisToken = this.ju_regex_PatternCompiler__f_compiledGroupCount;
+ switch (dispatchCP) {
+ case 92: {
+ var compiledToken = $p_ju_regex_PatternCompiler__compileEscape__T(this);
+ break
+ }
+ case 91: {
+ var compiledToken = $p_ju_regex_PatternCompiler__compileCharacterClass__T(this);
+ break
+ }
+ case 40: {
+ var compiledToken = $p_ju_regex_PatternCompiler__compileGroup__T(this);
+ break
+ }
+ case 94: {
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var compiledToken = "^";
+ break
+ }
+ case 36: {
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var compiledToken = "$";
+ break
+ }
+ case 46: {
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0);
+ var rejected = (((32 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0) ? "" : (((1 & this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$flags) !== 0) ? "\n" : "\n\r\u0085\u2028\u2029"));
+ var compiledToken = $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointNotAmong__T__T(rejected);
+ break
+ }
+ default: {
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex + ((dispatchCP >= 65536) ? 2 : 1)) | 0);
+ var compiledToken = $p_ju_regex_PatternCompiler__literal__I__T(this, dispatchCP)
+ }
+ };
+ result = (("" + result) + $p_ju_regex_PatternCompiler__compileRepeater__I__T__T(this, compiledGroupCountBeforeThisToken, compiledToken))
+ }
+ };
+ if (insideGroup) {
+ $p_ju_regex_PatternCompiler__parseError__T__E(this, "Unclosed group")
+ };
+ return result
+});
+$c_ju_regex_PatternCompiler.prototype.java$util$regex$PatternCompiler$$skipSharpComment__V = (function() {
+ var pattern = this.ju_regex_PatternCompiler__f_pattern;
+ var this$1 = $n(pattern);
+ var len = this$1.length;
+ while (true) {
+ if ((this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex !== len)) {
+ var this$2 = $n(pattern);
+ var index = this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex;
+ var c = $charAt(this$2, index);
+ var $$x1 = (!(((((c === 10) || (c === 13)) || (c === 133)) || (c === 8232)) || (c === 8233)))
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex = ((1 + this.ju_regex_PatternCompiler__f_java$util$regex$PatternCompiler$$pIndex) | 0)
+ } else {
+ break
+ }
+ }
+});
+$c_ju_regex_PatternCompiler.prototype.java$util$regex$PatternCompiler$$$anonfun$buildPossessiveQuantifier$2__T__T__T__I__T = (function(str, backslashes, groupString, compiledGroupCountBeforeThisToken$1) {
+ var this$1 = $n(backslashes);
+ if ((((this$1.length % 2) | 0) === 0)) {
+ return str
+ } else {
+ var groupNumber = $uI(parseInt(groupString, 10));
+ return ((groupNumber > compiledGroupCountBeforeThisToken$1) ? (("" + backslashes) + ((1 + groupNumber) | 0)) : str)
+ }
+});
+var $d_ju_regex_PatternCompiler = new $TypeData().initClass({
+ ju_regex_PatternCompiler: 0
+}, false, "java.util.regex.PatternCompiler", {
+ ju_regex_PatternCompiler: 1,
+ O: 1
+});
+$c_ju_regex_PatternCompiler.prototype.$classData = $d_ju_regex_PatternCompiler;
+function $p_ju_regex_PatternCompiler$__featureTest__T__Z($thiz, flags) {
+ try {
+ new RegExp("", flags);
+ return true
+ } catch (e) {
+ return false
+ }
+}
+/** @constructor */
+function $c_ju_regex_PatternCompiler$() {
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$leadingEmbeddedFlagSpecifierRegExp = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$renumberingRegExp = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsUnicode = false;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsSticky = false;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsDotAll = false;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIDigit = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UnicodeDigit = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UniversalHorizontalWhiteSpace = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIWhiteSpace = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UnicodeWhitespace = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UniversalVerticalWhiteSpace = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIWordChar = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UnicodeWordChar = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$asciiPOSIXCharacterClasses = null;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$scriptCanonicalizeRegExp = null;
+ $n_ju_regex_PatternCompiler$ = this;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$leadingEmbeddedFlagSpecifierRegExp = new RegExp("^\\(\\?([idmsuxU]*)(?:-([idmsuxU]*))?\\)");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$renumberingRegExp = new RegExp("(\\\\+)(\\d+)", "g");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsUnicode = true;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsSticky = true;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsDotAll = $p_ju_regex_PatternCompiler$__featureTest__T__Z(this, "us");
+ $p_ju_regex_PatternCompiler$__featureTest__T__Z(this, "d");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIDigit = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "0-9");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UnicodeDigit = new $c_ju_regex_PatternCompiler$CompiledCharClass(0, "Nd");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UniversalHorizontalWhiteSpace = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\t \u00a0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIWhiteSpace = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\t-\r ");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UnicodeWhitespace = new $c_ju_regex_PatternCompiler$CompiledCharClass(0, "White_Space");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UniversalVerticalWhiteSpace = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\n-\r\u0085\u2028\u2029");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$ASCIIWordChar = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "a-zA-Z_0-9");
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$UnicodeWordChar = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\\p{Alphabetic}\\p{Mn}\\p{Me}\\p{Mc}\\p{Nd}\\p{Pc}\\p{Join_Control}");
+ var r = {};
+ var value = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "a-z");
+ r.Lower = value;
+ var value$1 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "A-Z");
+ r.Upper = value$1;
+ var value$2 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\u0000-\u007f");
+ r.ASCII = value$2;
+ var value$3 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "A-Za-z");
+ r.Alpha = value$3;
+ var value$4 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "0-9");
+ r.Digit = value$4;
+ var value$5 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "0-9A-Za-z");
+ r.Alnum = value$5;
+ var value$6 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "!-/:-@[-`{-~");
+ r.Punct = value$6;
+ var value$7 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "!-~");
+ r.Graph = value$7;
+ var value$8 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, " -~");
+ r.Print = value$8;
+ var value$9 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\t ");
+ r.Blank = value$9;
+ var value$10 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\u0000-\u001f\u007f");
+ r.Cntrl = value$10;
+ var value$11 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "0-9A-Fa-f");
+ r.XDigit = value$11;
+ var value$12 = new $c_ju_regex_PatternCompiler$CompiledCharClass(2, "\t-\r ");
+ r.Space = value$12;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$asciiPOSIXCharacterClasses = r;
+ this.ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$scriptCanonicalizeRegExp = new RegExp("(?:^|_)[a-z]", "g")
+}
+$c_ju_regex_PatternCompiler$.prototype = new $h_O();
+$c_ju_regex_PatternCompiler$.prototype.constructor = $c_ju_regex_PatternCompiler$;
+/** @constructor */
+function $h_ju_regex_PatternCompiler$() {
+ /**/
+}
+$h_ju_regex_PatternCompiler$.prototype = $c_ju_regex_PatternCompiler$.prototype;
+$c_ju_regex_PatternCompiler$.prototype.compile__T__I__ju_regex_Pattern = (function(regex, flags) {
+ return new $c_ju_regex_PatternCompiler(regex, flags).compile__ju_regex_Pattern()
+});
+$c_ju_regex_PatternCompiler$.prototype.java$util$regex$PatternCompiler$$charToFlag__C__I = (function(c) {
+ switch (c) {
+ case 105: {
+ return 2;
+ break
+ }
+ case 100: {
+ return 1;
+ break
+ }
+ case 109: {
+ return 8;
+ break
+ }
+ case 115: {
+ return 32;
+ break
+ }
+ case 117: {
+ return 64;
+ break
+ }
+ case 120: {
+ return 4;
+ break
+ }
+ case 85: {
+ return 256;
+ break
+ }
+ default: {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), "bad in-pattern flag")
+ }
+ }
+});
+$c_ju_regex_PatternCompiler$.prototype.java$util$regex$PatternCompiler$$codePointNotAmong__T__T = (function(characters) {
+ return ((characters !== "") ? (("[^" + characters) + "]") : ($m_ju_regex_PatternCompiler$().ju_regex_PatternCompiler$__f_java$util$regex$PatternCompiler$$_supportsDotAll ? "." : "[\\d\\D]"))
+});
+$c_ju_regex_PatternCompiler$.prototype.java$util$regex$PatternCompiler$$codePointToString__I__T = (function(codePoint) {
+ return $as_T(String.fromCodePoint(codePoint))
+});
+var $d_ju_regex_PatternCompiler$ = new $TypeData().initClass({
+ ju_regex_PatternCompiler$: 0
+}, false, "java.util.regex.PatternCompiler$", {
+ ju_regex_PatternCompiler$: 1,
+ O: 1
+});
+$c_ju_regex_PatternCompiler$.prototype.$classData = $d_ju_regex_PatternCompiler$;
+var $n_ju_regex_PatternCompiler$;
+function $m_ju_regex_PatternCompiler$() {
+ if ((!$n_ju_regex_PatternCompiler$)) {
+ $n_ju_regex_PatternCompiler$ = new $c_ju_regex_PatternCompiler$()
+ };
+ return $n_ju_regex_PatternCompiler$
+}
+function $p_ju_regex_PatternCompiler$CharacterClassBuilder__addAlternative__T__V($thiz, alt) {
+ if (($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct === "")) {
+ $thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct = alt
+ } else {
+ $thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct = (($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct + "|") + alt)
+ }
+}
+function $p_ju_regex_PatternCompiler$CharacterClassBuilder__conjunctResult__T($thiz) {
+ if ($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_isNegated) {
+ var negThisSegment = $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointNotAmong__T__T($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment);
+ return (($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct === "") ? negThisSegment : (((("(?:(?!" + $thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct) + ")") + negThisSegment) + ")"))
+ } else {
+ return (($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment === "") ? (($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct === "") ? "[^\\d\\D]" : (("(?:" + $thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct) + ")")) : (($thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct === "") ? (("[" + $thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment) + "]") : (((("(?:" + $thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct) + "|[") + $thiz.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment) + "])")))
+ }
+}
+function $p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T($thiz, codePoint) {
+ var s = $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointToString__I__T(codePoint);
+ return (((((codePoint === 93) || (codePoint === 92)) || (codePoint === 45)) || (codePoint === 94)) ? ("\\" + s) : s)
+}
+/** @constructor */
+function $c_ju_regex_PatternCompiler$CharacterClassBuilder(asciiCaseInsensitive, isNegated) {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_asciiCaseInsensitive = false;
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_isNegated = false;
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_conjunction = null;
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct = null;
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = null;
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_asciiCaseInsensitive = asciiCaseInsensitive;
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_isNegated = isNegated;
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_conjunction = "";
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct = "";
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = ""
+}
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype = new $h_O();
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.constructor = $c_ju_regex_PatternCompiler$CharacterClassBuilder;
+/** @constructor */
+function $h_ju_regex_PatternCompiler$CharacterClassBuilder() {
+ /**/
+}
+$h_ju_regex_PatternCompiler$CharacterClassBuilder.prototype = $c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype;
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.finish__T = (function() {
+ var conjunct = $p_ju_regex_PatternCompiler$CharacterClassBuilder__conjunctResult__T(this);
+ return ((this.ju_regex_PatternCompiler$CharacterClassBuilder__f_conjunction === "") ? conjunct : ((("(?:" + this.ju_regex_PatternCompiler$CharacterClassBuilder__f_conjunction) + conjunct) + ")"))
+});
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.startNewConjunct__V = (function() {
+ var conjunct = $p_ju_regex_PatternCompiler$CharacterClassBuilder__conjunctResult__T(this);
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_conjunction = (this.ju_regex_PatternCompiler$CharacterClassBuilder__f_conjunction + (this.ju_regex_PatternCompiler$CharacterClassBuilder__f_isNegated ? (conjunct + "|") : (("(?=" + conjunct) + ")")));
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisConjunct = "";
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = ""
+});
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.addCharacterClass__ju_regex_PatternCompiler$CompiledCharClass__V = (function(cls) {
+ var x1 = $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_kind;
+ switch (x1) {
+ case 0: {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = ((this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment + ("\\p{" + $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data)) + "}");
+ break
+ }
+ case 1: {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = ((this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment + ("\\P{" + $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data)) + "}");
+ break
+ }
+ case 2: {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = (("" + this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment) + $n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data);
+ break
+ }
+ case 3: {
+ $p_ju_regex_PatternCompiler$CharacterClassBuilder__addAlternative__T__V(this, $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointNotAmong__T__T($n(cls).ju_regex_PatternCompiler$CompiledCharClass__f_data));
+ break
+ }
+ default: {
+ throw new $c_jl_AssertionError(x1)
+ }
+ }
+});
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.addCodePointsInString__T__I__I__V = (function(str, start, end) {
+ var i = start;
+ while ((i !== end)) {
+ var codePoint = $f_T__codePointAt__I__I($n(str), i);
+ this.addSingleCodePoint__I__V(codePoint);
+ i = ((i + ((codePoint >= 65536) ? 2 : 1)) | 0)
+ }
+});
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.addSingleCodePoint__I__V = (function(codePoint) {
+ var s = $p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T(this, codePoint);
+ if ((((-1024) & codePoint) === 56320)) {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = (("" + s) + this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment)
+ } else {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = (("" + this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment) + s)
+ };
+ if (this.ju_regex_PatternCompiler$CharacterClassBuilder__f_asciiCaseInsensitive) {
+ if (((codePoint >= 65) && (codePoint <= 90))) {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = (("" + this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment) + $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointToString__I__T(((32 + codePoint) | 0)))
+ } else if (((codePoint >= 97) && (codePoint <= 122))) {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = (("" + this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment) + $m_ju_regex_PatternCompiler$().java$util$regex$PatternCompiler$$codePointToString__I__T((((-32) + codePoint) | 0)))
+ }
+ }
+});
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.addCodePointRange__I__I__V = (function(startCodePoint, endCodePoint) {
+ var s = (($p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T(this, startCodePoint) + "-") + $p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T(this, endCodePoint));
+ if ((((-1024) & startCodePoint) === 56320)) {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = (s + this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment)
+ } else {
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = (this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment + s)
+ };
+ if (this.ju_regex_PatternCompiler$CharacterClassBuilder__f_asciiCaseInsensitive) {
+ var start = ((startCodePoint > 65) ? startCodePoint : 65);
+ var end = ((endCodePoint < 90) ? endCodePoint : 90);
+ if ((start <= end)) {
+ var $$x1 = this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment;
+ var start$1 = ((32 + start) | 0);
+ var end$1 = ((32 + end) | 0);
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = ($$x1 + (($p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T(this, start$1) + "-") + $p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T(this, end$1)))
+ };
+ var start$2 = ((startCodePoint > 97) ? startCodePoint : 97);
+ var end$2 = ((endCodePoint < 122) ? endCodePoint : 122);
+ if ((start$2 <= end$2)) {
+ var $$x2 = this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment;
+ var start$3 = (((-32) + start$2) | 0);
+ var end$3 = (((-32) + end$2) | 0);
+ this.ju_regex_PatternCompiler$CharacterClassBuilder__f_thisSegment = ($$x2 + (($p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T(this, start$3) + "-") + $p_ju_regex_PatternCompiler$CharacterClassBuilder__literalCodePoint__I__T(this, end$3)))
+ }
+ }
+});
+var $d_ju_regex_PatternCompiler$CharacterClassBuilder = new $TypeData().initClass({
+ ju_regex_PatternCompiler$CharacterClassBuilder: 0
+}, false, "java.util.regex.PatternCompiler$CharacterClassBuilder", {
+ ju_regex_PatternCompiler$CharacterClassBuilder: 1,
+ O: 1
+});
+$c_ju_regex_PatternCompiler$CharacterClassBuilder.prototype.$classData = $d_ju_regex_PatternCompiler$CharacterClassBuilder;
+function $p_ju_regex_PatternCompiler$CompiledCharClass__negated$lzycompute__ju_regex_PatternCompiler$CompiledCharClass($thiz) {
+ if ((!$thiz.ju_regex_PatternCompiler$CompiledCharClass__f_bitmap$0)) {
+ $thiz.ju_regex_PatternCompiler$CompiledCharClass__f_negated = new $c_ju_regex_PatternCompiler$CompiledCharClass((1 ^ $thiz.ju_regex_PatternCompiler$CompiledCharClass__f_kind), $thiz.ju_regex_PatternCompiler$CompiledCharClass__f_data);
+ $thiz.ju_regex_PatternCompiler$CompiledCharClass__f_bitmap$0 = true
+ };
+ return $thiz.ju_regex_PatternCompiler$CompiledCharClass__f_negated
+}
+/** @constructor */
+function $c_ju_regex_PatternCompiler$CompiledCharClass(kind, data) {
+ this.ju_regex_PatternCompiler$CompiledCharClass__f_negated = null;
+ this.ju_regex_PatternCompiler$CompiledCharClass__f_kind = 0;
+ this.ju_regex_PatternCompiler$CompiledCharClass__f_data = null;
+ this.ju_regex_PatternCompiler$CompiledCharClass__f_bitmap$0 = false;
+ this.ju_regex_PatternCompiler$CompiledCharClass__f_kind = kind;
+ this.ju_regex_PatternCompiler$CompiledCharClass__f_data = data
+}
+$c_ju_regex_PatternCompiler$CompiledCharClass.prototype = new $h_O();
+$c_ju_regex_PatternCompiler$CompiledCharClass.prototype.constructor = $c_ju_regex_PatternCompiler$CompiledCharClass;
+/** @constructor */
+function $h_ju_regex_PatternCompiler$CompiledCharClass() {
+ /**/
+}
+$h_ju_regex_PatternCompiler$CompiledCharClass.prototype = $c_ju_regex_PatternCompiler$CompiledCharClass.prototype;
+$c_ju_regex_PatternCompiler$CompiledCharClass.prototype.negated__ju_regex_PatternCompiler$CompiledCharClass = (function() {
+ return ((!this.ju_regex_PatternCompiler$CompiledCharClass__f_bitmap$0) ? $p_ju_regex_PatternCompiler$CompiledCharClass__negated$lzycompute__ju_regex_PatternCompiler$CompiledCharClass(this) : this.ju_regex_PatternCompiler$CompiledCharClass__f_negated)
+});
+function $as_ju_regex_PatternCompiler$CompiledCharClass(obj) {
+ return (((obj instanceof $c_ju_regex_PatternCompiler$CompiledCharClass) || (obj === null)) ? obj : $throwClassCastException(obj, "java.util.regex.PatternCompiler$CompiledCharClass"))
+}
+function $isArrayOf_ju_regex_PatternCompiler$CompiledCharClass(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.ju_regex_PatternCompiler$CompiledCharClass)))
+}
+function $asArrayOf_ju_regex_PatternCompiler$CompiledCharClass(obj, depth) {
+ return (($isArrayOf_ju_regex_PatternCompiler$CompiledCharClass(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.util.regex.PatternCompiler$CompiledCharClass;", depth))
+}
+var $d_ju_regex_PatternCompiler$CompiledCharClass = new $TypeData().initClass({
+ ju_regex_PatternCompiler$CompiledCharClass: 0
+}, false, "java.util.regex.PatternCompiler$CompiledCharClass", {
+ ju_regex_PatternCompiler$CompiledCharClass: 1,
+ O: 1
+});
+$c_ju_regex_PatternCompiler$CompiledCharClass.prototype.$classData = $d_ju_regex_PatternCompiler$CompiledCharClass;
+/** @constructor */
+function $c_RTLong(lo, hi) {
+ this.RTLong__f_lo = 0;
+ this.RTLong__f_hi = 0;
+ this.RTLong__f_lo = lo;
+ this.RTLong__f_hi = hi
+}
+$c_RTLong.prototype = new $h_O();
+$c_RTLong.prototype.constructor = $c_RTLong;
+/** @constructor */
+function $h_RTLong() {
+ /**/
+}
+$h_RTLong.prototype = $c_RTLong.prototype;
+$c_RTLong.prototype.equals__O__Z = (function(that) {
+ if ((that instanceof $c_RTLong)) {
+ var x2 = $as_RTLong(that);
+ return ((this.RTLong__f_lo === $n(x2).RTLong__f_lo) && (this.RTLong__f_hi === $n(x2).RTLong__f_hi))
+ } else {
+ return false
+ }
+});
+$c_RTLong.prototype.hashCode__I = (function() {
+ return (this.RTLong__f_lo ^ this.RTLong__f_hi)
+});
+$c_RTLong.prototype.toString__T = (function() {
+ return $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toString__I__I__T(this.RTLong__f_lo, this.RTLong__f_hi)
+});
+$c_RTLong.prototype.toInt__I = (function() {
+ return this.RTLong__f_lo
+});
+$c_RTLong.prototype.toFloat__F = (function() {
+ return $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toFloat__I__I__F(this.RTLong__f_lo, this.RTLong__f_hi)
+});
+$c_RTLong.prototype.toDouble__D = (function() {
+ return $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toDouble__I__I__D(this.RTLong__f_lo, this.RTLong__f_hi)
+});
+$c_RTLong.prototype.byteValue__B = (function() {
+ return ((this.RTLong__f_lo << 24) >> 24)
+});
+$c_RTLong.prototype.shortValue__S = (function() {
+ return ((this.RTLong__f_lo << 16) >> 16)
+});
+$c_RTLong.prototype.intValue__I = (function() {
+ return this.RTLong__f_lo
+});
+$c_RTLong.prototype.longValue__J = (function() {
+ return $uJ(this)
+});
+$c_RTLong.prototype.floatValue__F = (function() {
+ return $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toFloat__I__I__F(this.RTLong__f_lo, this.RTLong__f_hi)
+});
+$c_RTLong.prototype.doubleValue__D = (function() {
+ return $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toDouble__I__I__D(this.RTLong__f_lo, this.RTLong__f_hi)
+});
+$c_RTLong.prototype.compareTo__O__I = (function(that) {
+ var b = $as_RTLong(that);
+ return $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$compare__I__I__I__I__I(this.RTLong__f_lo, this.RTLong__f_hi, $n(b).RTLong__f_lo, $n(b).RTLong__f_hi)
+});
+$c_RTLong.prototype.compareTo__jl_Long__I = (function(that) {
+ return $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$compare__I__I__I__I__I(this.RTLong__f_lo, this.RTLong__f_hi, $n(that).RTLong__f_lo, $n(that).RTLong__f_hi)
+});
+$c_RTLong.prototype.equals__RTLong__Z = (function(b) {
+ return ((this.RTLong__f_lo === $n(b).RTLong__f_lo) && (this.RTLong__f_hi === $n(b).RTLong__f_hi))
+});
+$c_RTLong.prototype.notEquals__RTLong__Z = (function(b) {
+ return (!((this.RTLong__f_lo === $n(b).RTLong__f_lo) && (this.RTLong__f_hi === $n(b).RTLong__f_hi)))
+});
+$c_RTLong.prototype.$less__RTLong__Z = (function(b) {
+ var ahi = this.RTLong__f_hi;
+ var bhi = $n(b).RTLong__f_hi;
+ return ((ahi === bhi) ? (((-2147483648) ^ this.RTLong__f_lo) < ((-2147483648) ^ $n(b).RTLong__f_lo)) : (ahi < bhi))
+});
+$c_RTLong.prototype.$less$eq__RTLong__Z = (function(b) {
+ var ahi = this.RTLong__f_hi;
+ var bhi = $n(b).RTLong__f_hi;
+ return ((ahi === bhi) ? (((-2147483648) ^ this.RTLong__f_lo) <= ((-2147483648) ^ $n(b).RTLong__f_lo)) : (ahi < bhi))
+});
+$c_RTLong.prototype.$greater__RTLong__Z = (function(b) {
+ var ahi = this.RTLong__f_hi;
+ var bhi = $n(b).RTLong__f_hi;
+ return ((ahi === bhi) ? (((-2147483648) ^ this.RTLong__f_lo) > ((-2147483648) ^ $n(b).RTLong__f_lo)) : (ahi > bhi))
+});
+$c_RTLong.prototype.$greater$eq__RTLong__Z = (function(b) {
+ var ahi = this.RTLong__f_hi;
+ var bhi = $n(b).RTLong__f_hi;
+ return ((ahi === bhi) ? (((-2147483648) ^ this.RTLong__f_lo) >= ((-2147483648) ^ $n(b).RTLong__f_lo)) : (ahi > bhi))
+});
+$c_RTLong.prototype.unary_$tilde__RTLong = (function() {
+ return new $c_RTLong((~this.RTLong__f_lo), (~this.RTLong__f_hi))
+});
+$c_RTLong.prototype.$bar__RTLong__RTLong = (function(b) {
+ return new $c_RTLong((this.RTLong__f_lo | $n(b).RTLong__f_lo), (this.RTLong__f_hi | $n(b).RTLong__f_hi))
+});
+$c_RTLong.prototype.$amp__RTLong__RTLong = (function(b) {
+ return new $c_RTLong((this.RTLong__f_lo & $n(b).RTLong__f_lo), (this.RTLong__f_hi & $n(b).RTLong__f_hi))
+});
+$c_RTLong.prototype.$up__RTLong__RTLong = (function(b) {
+ return new $c_RTLong((this.RTLong__f_lo ^ $n(b).RTLong__f_lo), (this.RTLong__f_hi ^ $n(b).RTLong__f_hi))
+});
+$c_RTLong.prototype.$less$less__I__RTLong = (function(n) {
+ var lo = this.RTLong__f_lo;
+ return new $c_RTLong((((32 & n) === 0) ? (lo << n) : 0), (((32 & n) === 0) ? (((((lo >>> 1) | 0) >>> ((31 - n) | 0)) | 0) | (this.RTLong__f_hi << n)) : (lo << n)))
+});
+$c_RTLong.prototype.$greater$greater$greater__I__RTLong = (function(n) {
+ var hi = this.RTLong__f_hi;
+ return new $c_RTLong((((32 & n) === 0) ? (((this.RTLong__f_lo >>> n) | 0) | ((hi << 1) << ((31 - n) | 0))) : ((hi >>> n) | 0)), (((32 & n) === 0) ? ((hi >>> n) | 0) : 0))
+});
+$c_RTLong.prototype.$greater$greater__I__RTLong = (function(n) {
+ var hi = this.RTLong__f_hi;
+ return new $c_RTLong((((32 & n) === 0) ? (((this.RTLong__f_lo >>> n) | 0) | ((hi << 1) << ((31 - n) | 0))) : (hi >> n)), (((32 & n) === 0) ? (hi >> n) : (hi >> 31)))
+});
+$c_RTLong.prototype.unary_$minus__RTLong = (function() {
+ var lo = this.RTLong__f_lo;
+ var hi = this.RTLong__f_hi;
+ return new $c_RTLong(((-lo) | 0), ((lo !== 0) ? (~hi) : ((-hi) | 0)))
+});
+$c_RTLong.prototype.$plus__RTLong__RTLong = (function(b) {
+ var alo = this.RTLong__f_lo;
+ var ahi = this.RTLong__f_hi;
+ var bhi = $n(b).RTLong__f_hi;
+ var lo = ((alo + $n(b).RTLong__f_lo) | 0);
+ return new $c_RTLong(lo, ((((-2147483648) ^ lo) < ((-2147483648) ^ alo)) ? ((1 + ((ahi + bhi) | 0)) | 0) : ((ahi + bhi) | 0)))
+});
+$c_RTLong.prototype.$minus__RTLong__RTLong = (function(b) {
+ var alo = this.RTLong__f_lo;
+ var ahi = this.RTLong__f_hi;
+ var bhi = $n(b).RTLong__f_hi;
+ var lo = ((alo - $n(b).RTLong__f_lo) | 0);
+ return new $c_RTLong(lo, ((((-2147483648) ^ lo) > ((-2147483648) ^ alo)) ? (((-1) + ((ahi - bhi) | 0)) | 0) : ((ahi - bhi) | 0)))
+});
+$c_RTLong.prototype.$times__RTLong__RTLong = (function(b) {
+ var alo = this.RTLong__f_lo;
+ var blo = $n(b).RTLong__f_lo;
+ var a0 = (65535 & alo);
+ var a1 = ((alo >>> 16) | 0);
+ var b0 = (65535 & blo);
+ var b1 = ((blo >>> 16) | 0);
+ var a0b0 = Math.imul(a0, b0);
+ var a1b0 = Math.imul(a1, b0);
+ var a0b1 = Math.imul(a0, b1);
+ var lo = ((a0b0 + (((a1b0 + a0b1) | 0) << 16)) | 0);
+ var c1part = ((((a0b0 >>> 16) | 0) + a0b1) | 0);
+ var hi = ((((((((Math.imul(alo, $n(b).RTLong__f_hi) + Math.imul(this.RTLong__f_hi, blo)) | 0) + Math.imul(a1, b1)) | 0) + ((c1part >>> 16) | 0)) | 0) + (((((65535 & c1part) + a1b0) | 0) >>> 16) | 0)) | 0);
+ return new $c_RTLong(lo, hi)
+});
+$c_RTLong.prototype.$div__RTLong__RTLong = (function(b) {
+ var this$1 = $m_RTLong$();
+ var lo = this$1.divideImpl__I__I__I__I__I(this.RTLong__f_lo, this.RTLong__f_hi, $n(b).RTLong__f_lo, $n(b).RTLong__f_hi);
+ return new $c_RTLong(lo, this$1.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn)
+});
+$c_RTLong.prototype.$percent__RTLong__RTLong = (function(b) {
+ var this$1 = $m_RTLong$();
+ var lo = this$1.remainderImpl__I__I__I__I__I(this.RTLong__f_lo, this.RTLong__f_hi, $n(b).RTLong__f_lo, $n(b).RTLong__f_hi);
+ return new $c_RTLong(lo, this$1.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn)
+});
+function $as_RTLong(obj) {
+ return (((obj instanceof $c_RTLong) || (obj === null)) ? obj : $throwClassCastException(obj, "org.scalajs.linker.runtime.RuntimeLong"))
+}
+function $isArrayOf_RTLong(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.RTLong)))
+}
+function $asArrayOf_RTLong(obj, depth) {
+ return (($isArrayOf_RTLong(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lorg.scalajs.linker.runtime.RuntimeLong;", depth))
+}
+var $d_RTLong = new $TypeData().initClass({
+ RTLong: 0
+}, false, "org.scalajs.linker.runtime.RuntimeLong", {
+ RTLong: 1,
+ O: 1
+});
+$c_RTLong.prototype.$classData = $d_RTLong;
+function $p_RTLong$__toUnsignedString__I__I__T($thiz, lo, hi) {
+ if ((((-2097152) & hi) === 0)) {
+ var this$1 = ((4.294967296E9 * hi) + $uD((lo >>> 0.0)));
+ return ("" + this$1)
+ } else {
+ return $as_T($p_RTLong$__unsignedDivModHelper__I__I__I__I__I__O($thiz, lo, hi, 1000000000, 0, 2))
+ }
+}
+function $p_RTLong$__unsigned_$div__I__I__I__I__I($thiz, alo, ahi, blo, bhi) {
+ if ((((-2097152) & ahi) === 0)) {
+ if ((((-2097152) & bhi) === 0)) {
+ var aDouble = ((4.294967296E9 * ahi) + $uD((alo >>> 0.0)));
+ var bDouble = ((4.294967296E9 * bhi) + $uD((blo >>> 0.0)));
+ var rDouble = (aDouble / bDouble);
+ var x = (rDouble / 4.294967296E9);
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = $uI((x | 0.0));
+ return $uI((rDouble | 0.0))
+ } else {
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0;
+ return 0
+ }
+ } else if (((bhi === 0) && ((blo & (((-1) + blo) | 0)) === 0))) {
+ var pow = ((31 - $uI(Math.clz32(blo))) | 0);
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = ((ahi >>> pow) | 0);
+ return (((alo >>> pow) | 0) | ((ahi << 1) << ((31 - pow) | 0)))
+ } else if (((blo === 0) && ((bhi & (((-1) + bhi) | 0)) === 0))) {
+ var pow$2 = ((31 - $uI(Math.clz32(bhi))) | 0);
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0;
+ return ((ahi >>> pow$2) | 0)
+ } else {
+ return $uI($p_RTLong$__unsignedDivModHelper__I__I__I__I__I__O($thiz, alo, ahi, blo, bhi, 0))
+ }
+}
+function $p_RTLong$__unsigned_$percent__I__I__I__I__I($thiz, alo, ahi, blo, bhi) {
+ if ((((-2097152) & ahi) === 0)) {
+ if ((((-2097152) & bhi) === 0)) {
+ var aDouble = ((4.294967296E9 * ahi) + $uD((alo >>> 0.0)));
+ var bDouble = ((4.294967296E9 * bhi) + $uD((blo >>> 0.0)));
+ var rDouble = (aDouble % bDouble);
+ var x = (rDouble / 4.294967296E9);
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = $uI((x | 0.0));
+ return $uI((rDouble | 0.0))
+ } else {
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = ahi;
+ return alo
+ }
+ } else if (((bhi === 0) && ((blo & (((-1) + blo) | 0)) === 0))) {
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0;
+ return (alo & (((-1) + blo) | 0))
+ } else if (((blo === 0) && ((bhi & (((-1) + bhi) | 0)) === 0))) {
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = (ahi & (((-1) + bhi) | 0));
+ return alo
+ } else {
+ return $uI($p_RTLong$__unsignedDivModHelper__I__I__I__I__I__O($thiz, alo, ahi, blo, bhi, 1))
+ }
+}
+function $p_RTLong$__unsignedDivModHelper__I__I__I__I__I__O($thiz, alo, ahi, blo, bhi, ask) {
+ var shift = ((((bhi !== 0) ? $uI(Math.clz32(bhi)) : ((32 + $uI(Math.clz32(blo))) | 0)) - ((ahi !== 0) ? $uI(Math.clz32(ahi)) : ((32 + $uI(Math.clz32(alo))) | 0))) | 0);
+ var n = shift;
+ var lo = (((32 & n) === 0) ? (blo << n) : 0);
+ var hi = (((32 & n) === 0) ? (((((blo >>> 1) | 0) >>> ((31 - n) | 0)) | 0) | (bhi << n)) : (blo << n));
+ var bShiftLo = lo;
+ var bShiftHi = hi;
+ var remLo = alo;
+ var remHi = ahi;
+ var quotLo = 0;
+ var quotHi = 0;
+ while (((shift >= 0) && (((-2097152) & remHi) !== 0))) {
+ var alo$1 = remLo;
+ var ahi$1 = remHi;
+ var blo$1 = bShiftLo;
+ var bhi$1 = bShiftHi;
+ if (((ahi$1 === bhi$1) ? (((-2147483648) ^ alo$1) >= ((-2147483648) ^ blo$1)) : (((-2147483648) ^ ahi$1) >= ((-2147483648) ^ bhi$1)))) {
+ var lo$1 = remLo;
+ var hi$1 = remHi;
+ var lo$2 = bShiftLo;
+ var hi$2 = bShiftHi;
+ var lo$3 = ((lo$1 - lo$2) | 0);
+ var hi$3 = ((((-2147483648) ^ lo$3) > ((-2147483648) ^ lo$1)) ? (((-1) + ((hi$1 - hi$2) | 0)) | 0) : ((hi$1 - hi$2) | 0));
+ remLo = lo$3;
+ remHi = hi$3;
+ if ((shift < 32)) {
+ quotLo = (quotLo | (1 << shift))
+ } else {
+ quotHi = (quotHi | (1 << shift))
+ }
+ };
+ shift = (((-1) + shift) | 0);
+ var lo$4 = bShiftLo;
+ var hi$4 = bShiftHi;
+ var lo$5 = (((lo$4 >>> 1) | 0) | (hi$4 << 31));
+ var hi$5 = ((hi$4 >>> 1) | 0);
+ bShiftLo = lo$5;
+ bShiftHi = hi$5
+ };
+ var alo$2 = remLo;
+ var ahi$2 = remHi;
+ if (((ahi$2 === bhi) ? (((-2147483648) ^ alo$2) >= ((-2147483648) ^ blo)) : (((-2147483648) ^ ahi$2) >= ((-2147483648) ^ bhi)))) {
+ var lo$6 = remLo;
+ var hi$6 = remHi;
+ var remDouble = ((4.294967296E9 * hi$6) + $uD((lo$6 >>> 0.0)));
+ var bDouble = ((4.294967296E9 * bhi) + $uD((blo >>> 0.0)));
+ if ((ask !== 1)) {
+ var x = (remDouble / bDouble);
+ var lo$7 = $uI((x | 0.0));
+ var x$1 = (x / 4.294967296E9);
+ var hi$7 = $uI((x$1 | 0.0));
+ var lo$8 = quotLo;
+ var hi$8 = quotHi;
+ var lo$9 = ((lo$8 + lo$7) | 0);
+ var hi$9 = ((((-2147483648) ^ lo$9) < ((-2147483648) ^ lo$8)) ? ((1 + ((hi$8 + hi$7) | 0)) | 0) : ((hi$8 + hi$7) | 0));
+ quotLo = lo$9;
+ quotHi = hi$9
+ };
+ if ((ask !== 0)) {
+ var rem_mod_bDouble = (remDouble % bDouble);
+ remLo = $uI((rem_mod_bDouble | 0.0));
+ var x$2 = (rem_mod_bDouble / 4.294967296E9);
+ remHi = $uI((x$2 | 0.0))
+ }
+ };
+ if ((ask === 0)) {
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = quotHi;
+ return quotLo
+ } else if ((ask === 1)) {
+ $thiz.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = remHi;
+ return remLo
+ } else {
+ var lo$10 = quotLo;
+ var hi$10 = quotHi;
+ var quot = ((4.294967296E9 * hi$10) + $uD((lo$10 >>> 0.0)));
+ var this$7 = remLo;
+ var remStr = ("" + this$7);
+ var start = remStr.length;
+ return ((("" + quot) + $as_T("000000000".substring(start))) + remStr)
+ }
+}
+/** @constructor */
+function $c_RTLong$() {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0
+}
+$c_RTLong$.prototype = new $h_O();
+$c_RTLong$.prototype.constructor = $c_RTLong$;
+/** @constructor */
+function $h_RTLong$() {
+ /**/
+}
+$h_RTLong$.prototype = $c_RTLong$.prototype;
+$c_RTLong$.prototype.org$scalajs$linker$runtime$RuntimeLong$$toString__I__I__T = (function(lo, hi) {
+ return ((hi === (lo >> 31)) ? ("" + lo) : ((hi < 0) ? ("-" + $p_RTLong$__toUnsignedString__I__I__T(this, ((-lo) | 0), ((lo !== 0) ? (~hi) : ((-hi) | 0)))) : $p_RTLong$__toUnsignedString__I__I__T(this, lo, hi)))
+});
+$c_RTLong$.prototype.org$scalajs$linker$runtime$RuntimeLong$$toDouble__I__I__D = (function(lo, hi) {
+ if ((hi < 0)) {
+ var x = ((lo !== 0) ? (~hi) : ((-hi) | 0));
+ var $$x1 = $uD((x >>> 0.0));
+ var x$1 = ((-lo) | 0);
+ return (-((4.294967296E9 * $$x1) + $uD((x$1 >>> 0.0))))
+ } else {
+ return ((4.294967296E9 * hi) + $uD((lo >>> 0.0)))
+ }
+});
+$c_RTLong$.prototype.org$scalajs$linker$runtime$RuntimeLong$$toFloat__I__I__F = (function(lo, hi) {
+ if ((hi < 0)) {
+ var lo$1 = ((-lo) | 0);
+ var hi$1 = ((lo !== 0) ? (~hi) : ((-hi) | 0));
+ var abs__lo = lo$1;
+ var abs__hi = hi$1
+ } else {
+ var abs__lo = lo;
+ var abs__hi = hi
+ };
+ var hi$2 = abs__hi;
+ if (((((-2097152) & hi$2) === 0) || ((65535 & abs__lo) === 0))) {
+ var compressedAbsLo = abs__lo
+ } else {
+ var compressedAbsLo = (32768 | ((-65536) & abs__lo))
+ };
+ var x = abs__hi;
+ var absRes = ((4.294967296E9 * $uD((x >>> 0.0))) + $uD((compressedAbsLo >>> 0.0)));
+ return Math.fround(((hi < 0) ? (-absRes) : absRes))
+});
+$c_RTLong$.prototype.fromInt__I__RTLong = (function(value) {
+ return new $c_RTLong(value, (value >> 31))
+});
+$c_RTLong$.prototype.fromDouble__D__RTLong = (function(value) {
+ var lo = this.org$scalajs$linker$runtime$RuntimeLong$$fromDoubleImpl__D__I(value);
+ return new $c_RTLong(lo, this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn)
+});
+$c_RTLong$.prototype.org$scalajs$linker$runtime$RuntimeLong$$fromDoubleImpl__D__I = (function(value) {
+ if ((value < (-9.223372036854776E18))) {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = (-2147483648);
+ return 0
+ } else if ((value >= 9.223372036854776E18)) {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 2147483647;
+ return (-1)
+ } else {
+ var rawLo = $uI((value | 0.0));
+ var x = (value / 4.294967296E9);
+ var rawHi = $uI((x | 0.0));
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = (((value < 0.0) && (rawLo !== 0)) ? (((-1) + rawHi) | 0) : rawHi);
+ return rawLo
+ }
+});
+$c_RTLong$.prototype.org$scalajs$linker$runtime$RuntimeLong$$compare__I__I__I__I__I = (function(alo, ahi, blo, bhi) {
+ return ((ahi === bhi) ? ((alo === blo) ? 0 : ((((-2147483648) ^ alo) < ((-2147483648) ^ blo)) ? (-1) : 1)) : ((ahi < bhi) ? (-1) : 1))
+});
+$c_RTLong$.prototype.divideImpl__I__I__I__I__I = (function(alo, ahi, blo, bhi) {
+ if (((blo | bhi) === 0)) {
+ throw new $c_jl_ArithmeticException("/ by zero")
+ };
+ if ((ahi === (alo >> 31))) {
+ if ((bhi === (blo >> 31))) {
+ if (((alo === (-2147483648)) && (blo === (-1)))) {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0;
+ return (-2147483648)
+ } else {
+ var lo = $intDiv(alo, blo);
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = (lo >> 31);
+ return lo
+ }
+ } else if (((alo === (-2147483648)) && ((blo === (-2147483648)) && (bhi === 0)))) {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = (-1);
+ return (-1)
+ } else {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0;
+ return 0
+ }
+ } else {
+ if ((ahi < 0)) {
+ var lo$1 = ((-alo) | 0);
+ var hi = ((alo !== 0) ? (~ahi) : ((-ahi) | 0));
+ var aAbs__lo = lo$1;
+ var aAbs__hi = hi
+ } else {
+ var aAbs__lo = alo;
+ var aAbs__hi = ahi
+ };
+ if ((bhi < 0)) {
+ var lo$2 = ((-blo) | 0);
+ var hi$1 = ((blo !== 0) ? (~bhi) : ((-bhi) | 0));
+ var bAbs__lo = lo$2;
+ var bAbs__hi = hi$1
+ } else {
+ var bAbs__lo = blo;
+ var bAbs__hi = bhi
+ };
+ var absRLo = $p_RTLong$__unsigned_$div__I__I__I__I__I(this, aAbs__lo, aAbs__hi, bAbs__lo, bAbs__hi);
+ if (((ahi ^ bhi) >= 0)) {
+ return absRLo
+ } else {
+ var hi$2 = this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn;
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = ((absRLo !== 0) ? (~hi$2) : ((-hi$2) | 0));
+ return ((-absRLo) | 0)
+ }
+ }
+});
+$c_RTLong$.prototype.remainderImpl__I__I__I__I__I = (function(alo, ahi, blo, bhi) {
+ if (((blo | bhi) === 0)) {
+ throw new $c_jl_ArithmeticException("/ by zero")
+ };
+ if ((ahi === (alo >> 31))) {
+ if ((bhi === (blo >> 31))) {
+ if ((blo !== (-1))) {
+ var lo = $intMod(alo, blo);
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = (lo >> 31);
+ return lo
+ } else {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0;
+ return 0
+ }
+ } else if (((alo === (-2147483648)) && ((blo === (-2147483648)) && (bhi === 0)))) {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = 0;
+ return 0
+ } else {
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = ahi;
+ return alo
+ }
+ } else {
+ if ((ahi < 0)) {
+ var lo$1 = ((-alo) | 0);
+ var hi = ((alo !== 0) ? (~ahi) : ((-ahi) | 0));
+ var aAbs__lo = lo$1;
+ var aAbs__hi = hi
+ } else {
+ var aAbs__lo = alo;
+ var aAbs__hi = ahi
+ };
+ if ((bhi < 0)) {
+ var lo$2 = ((-blo) | 0);
+ var hi$1 = ((blo !== 0) ? (~bhi) : ((-bhi) | 0));
+ var bAbs__lo = lo$2;
+ var bAbs__hi = hi$1
+ } else {
+ var bAbs__lo = blo;
+ var bAbs__hi = bhi
+ };
+ var absRLo = $p_RTLong$__unsigned_$percent__I__I__I__I__I(this, aAbs__lo, aAbs__hi, bAbs__lo, bAbs__hi);
+ if ((ahi < 0)) {
+ var hi$2 = this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn;
+ this.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn = ((absRLo !== 0) ? (~hi$2) : ((-hi$2) | 0));
+ return ((-absRLo) | 0)
+ } else {
+ return absRLo
+ }
+ }
+});
+var $d_RTLong$ = new $TypeData().initClass({
+ RTLong$: 0
+}, false, "org.scalajs.linker.runtime.RuntimeLong$", {
+ RTLong$: 1,
+ O: 1
+});
+$c_RTLong$.prototype.$classData = $d_RTLong$;
+var $n_RTLong$;
+function $m_RTLong$() {
+ if ((!$n_RTLong$)) {
+ $n_RTLong$ = new $c_RTLong$()
+ };
+ return $n_RTLong$
+}
+/** @constructor */
+function $c_s_Array$EmptyArrays$() {
+ this.s_Array$EmptyArrays$__f_emptyIntArray = null;
+ this.s_Array$EmptyArrays$__f_emptyObjectArray = null;
+ $n_s_Array$EmptyArrays$ = this;
+ this.s_Array$EmptyArrays$__f_emptyIntArray = new $ac_I(0);
+ this.s_Array$EmptyArrays$__f_emptyObjectArray = new $ac_O(0)
+}
+$c_s_Array$EmptyArrays$.prototype = new $h_O();
+$c_s_Array$EmptyArrays$.prototype.constructor = $c_s_Array$EmptyArrays$;
+/** @constructor */
+function $h_s_Array$EmptyArrays$() {
+ /**/
+}
+$h_s_Array$EmptyArrays$.prototype = $c_s_Array$EmptyArrays$.prototype;
+var $d_s_Array$EmptyArrays$ = new $TypeData().initClass({
+ s_Array$EmptyArrays$: 0
+}, false, "scala.Array$EmptyArrays$", {
+ s_Array$EmptyArrays$: 1,
+ O: 1
+});
+$c_s_Array$EmptyArrays$.prototype.$classData = $d_s_Array$EmptyArrays$;
+var $n_s_Array$EmptyArrays$;
+function $m_s_Array$EmptyArrays$() {
+ if ((!$n_s_Array$EmptyArrays$)) {
+ $n_s_Array$EmptyArrays$ = new $c_s_Array$EmptyArrays$()
+ };
+ return $n_s_Array$EmptyArrays$
+}
+function $is_F0(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.F0)))
+}
+function $as_F0(obj) {
+ return (($is_F0(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.Function0"))
+}
+function $isArrayOf_F0(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.F0)))
+}
+function $asArrayOf_F0(obj, depth) {
+ return (($isArrayOf_F0(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.Function0;", depth))
+}
+var $d_F0 = new $TypeData().initClass({
+ F0: 0
+}, true, "scala.Function0", {
+ F0: 1,
+ O: 1
+});
+function $is_F1(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.F1)))
+}
+function $as_F1(obj) {
+ return (($is_F1(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.Function1"))
+}
+function $isArrayOf_F1(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.F1)))
+}
+function $asArrayOf_F1(obj, depth) {
+ return (($isArrayOf_F1(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.Function1;", depth))
+}
+var $d_F1 = new $TypeData().initClass({
+ F1: 0
+}, true, "scala.Function1", {
+ F1: 1,
+ O: 1
+});
+/** @constructor */
+function $c_s_LowPriorityImplicits2() {
+ /**/
+}
+$c_s_LowPriorityImplicits2.prototype = new $h_O();
+$c_s_LowPriorityImplicits2.prototype.constructor = $c_s_LowPriorityImplicits2;
+/** @constructor */
+function $h_s_LowPriorityImplicits2() {
+ /**/
+}
+$h_s_LowPriorityImplicits2.prototype = $c_s_LowPriorityImplicits2.prototype;
+/** @constructor */
+function $c_s_PartialFunction$() {
+ this.s_PartialFunction$__f_fallback_fn = null;
+ this.s_PartialFunction$__f_empty_pf = null;
+ $n_s_PartialFunction$ = this;
+ this.s_PartialFunction$__f_fallback_fn = new $c_sjsr_AnonFunction1(((x$2$2) => $m_s_PartialFunction$().s_PartialFunction$__f_fallback_fn));
+ new $c_sjsr_AnonFunction1(((x$3$2) => false));
+ this.s_PartialFunction$__f_empty_pf = new $c_s_PartialFunction$$anon$1()
+}
+$c_s_PartialFunction$.prototype = new $h_O();
+$c_s_PartialFunction$.prototype.constructor = $c_s_PartialFunction$;
+/** @constructor */
+function $h_s_PartialFunction$() {
+ /**/
+}
+$h_s_PartialFunction$.prototype = $c_s_PartialFunction$.prototype;
+var $d_s_PartialFunction$ = new $TypeData().initClass({
+ s_PartialFunction$: 0
+}, false, "scala.PartialFunction$", {
+ s_PartialFunction$: 1,
+ O: 1
+});
+$c_s_PartialFunction$.prototype.$classData = $d_s_PartialFunction$;
+var $n_s_PartialFunction$;
+function $m_s_PartialFunction$() {
+ if ((!$n_s_PartialFunction$)) {
+ $n_s_PartialFunction$ = new $c_s_PartialFunction$()
+ };
+ return $n_s_PartialFunction$
+}
+/** @constructor */
+function $c_sc_ArrayOps$() {
+ this.sc_ArrayOps$__f_fallback = null;
+ $n_sc_ArrayOps$ = this;
+ this.sc_ArrayOps$__f_fallback = new $c_sjsr_AnonFunction1(((x$1$2) => $m_sc_ArrayOps$().sc_ArrayOps$__f_fallback))
+}
+$c_sc_ArrayOps$.prototype = new $h_O();
+$c_sc_ArrayOps$.prototype.constructor = $c_sc_ArrayOps$;
+/** @constructor */
+function $h_sc_ArrayOps$() {
+ /**/
+}
+$h_sc_ArrayOps$.prototype = $c_sc_ArrayOps$.prototype;
+$c_sc_ArrayOps$.prototype.slice$extension__O__I__I__O = (function(this$, from, until) {
+ var lo = ((from > 0) ? from : 0);
+ var b = $m_jl_reflect_Array$().getLength__O__I(this$);
+ var hi = ((until < b) ? until : b);
+ if ((hi > lo)) {
+ if ((this$ instanceof $ac_O)) {
+ var x2 = $asArrayOf_O(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AO__I__I__AO(x2, lo, hi)
+ } else if ((this$ instanceof $ac_I)) {
+ var x3 = $asArrayOf_I(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AI__I__I__AI(x3, lo, hi)
+ } else if ((this$ instanceof $ac_D)) {
+ var x4 = $asArrayOf_D(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AD__I__I__AD(x4, lo, hi)
+ } else if ((this$ instanceof $ac_J)) {
+ var x5 = $asArrayOf_J(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AJ__I__I__AJ(x5, lo, hi)
+ } else if ((this$ instanceof $ac_F)) {
+ var x6 = $asArrayOf_F(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AF__I__I__AF(x6, lo, hi)
+ } else if ((this$ instanceof $ac_C)) {
+ var x7 = $asArrayOf_C(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AC__I__I__AC(x7, lo, hi)
+ } else if ((this$ instanceof $ac_B)) {
+ var x8 = $asArrayOf_B(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AB__I__I__AB(x8, lo, hi)
+ } else if ((this$ instanceof $ac_S)) {
+ var x9 = $asArrayOf_S(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AS__I__I__AS(x9, lo, hi)
+ } else if ((this$ instanceof $ac_Z)) {
+ var x10 = $asArrayOf_Z(this$, 1);
+ return $m_ju_Arrays$().copyOfRange__AZ__I__I__AZ(x10, lo, hi)
+ } else {
+ throw new $c_s_MatchError(this$)
+ }
+ } else {
+ $m_sc_ArrayOps$();
+ var $$x1 = $m_s_reflect_ClassTag$();
+ var this$5 = $n(this$);
+ return $n($n($$x1).apply__jl_Class__s_reflect_ClassTag($n($objectGetClass(this$5)).getComponentType__jl_Class())).newArray__I__O(0)
+ }
+});
+$c_sc_ArrayOps$.prototype.drop$extension__O__I__O = (function(this$, n) {
+ return $m_sc_ArrayOps$().slice$extension__O__I__I__O(this$, n, $m_jl_reflect_Array$().getLength__O__I(this$))
+});
+$c_sc_ArrayOps$.prototype.dropRight$extension__O__I__O = (function(this$, n) {
+ $m_sc_ArrayOps$();
+ var n$1 = (($m_jl_reflect_Array$().getLength__O__I(this$) - ((n > 0) ? n : 0)) | 0);
+ return $m_sc_ArrayOps$().slice$extension__O__I__I__O(this$, 0, n$1)
+});
+var $d_sc_ArrayOps$ = new $TypeData().initClass({
+ sc_ArrayOps$: 0
+}, false, "scala.collection.ArrayOps$", {
+ sc_ArrayOps$: 1,
+ O: 1
+});
+$c_sc_ArrayOps$.prototype.$classData = $d_sc_ArrayOps$;
+var $n_sc_ArrayOps$;
+function $m_sc_ArrayOps$() {
+ if ((!$n_sc_ArrayOps$)) {
+ $n_sc_ArrayOps$ = new $c_sc_ArrayOps$()
+ };
+ return $n_sc_ArrayOps$
+}
+/** @constructor */
+function $c_sc_Hashing$() {
+ /**/
+}
+$c_sc_Hashing$.prototype = new $h_O();
+$c_sc_Hashing$.prototype.constructor = $c_sc_Hashing$;
+/** @constructor */
+function $h_sc_Hashing$() {
+ /**/
+}
+$h_sc_Hashing$.prototype = $c_sc_Hashing$.prototype;
+$c_sc_Hashing$.prototype.improve__I__I = (function(hcode) {
+ var h = ((hcode + (~(hcode << 9))) | 0);
+ h = (h ^ ((h >>> 14) | 0));
+ h = ((h + (h << 4)) | 0);
+ return (h ^ ((h >>> 10) | 0))
+});
+var $d_sc_Hashing$ = new $TypeData().initClass({
+ sc_Hashing$: 0
+}, false, "scala.collection.Hashing$", {
+ sc_Hashing$: 1,
+ O: 1
+});
+$c_sc_Hashing$.prototype.$classData = $d_sc_Hashing$;
+var $n_sc_Hashing$;
+function $m_sc_Hashing$() {
+ if ((!$n_sc_Hashing$)) {
+ $n_sc_Hashing$ = new $c_sc_Hashing$()
+ };
+ return $n_sc_Hashing$
+}
+function $is_sc_IterableOnce(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sc_IterableOnce)))
+}
+function $as_sc_IterableOnce(obj) {
+ return (($is_sc_IterableOnce(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.IterableOnce"))
+}
+function $isArrayOf_sc_IterableOnce(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.sc_IterableOnce)))
+}
+function $asArrayOf_sc_IterableOnce(obj, depth) {
+ return (($isArrayOf_sc_IterableOnce(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.IterableOnce;", depth))
+}
+function $f_sc_IterableOnceOps__foreach__F1__V($thiz, f) {
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ $n(f).apply__O__O($n(it).next__O())
+ }
+}
+function $f_sc_IterableOnceOps__forall__F1__Z($thiz, p) {
+ var res = true;
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ while ((res && $n(it).hasNext__Z())) {
+ res = $uZ($n(p).apply__O__O($n(it).next__O()))
+ };
+ return res
+}
+function $f_sc_IterableOnceOps__exists__F1__Z($thiz, p) {
+ var res = false;
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ while (((!res) && $n(it).hasNext__Z())) {
+ res = $uZ($n(p).apply__O__O($n(it).next__O()))
+ };
+ return res
+}
+function $f_sc_IterableOnceOps__find__F1__s_Option($thiz, p) {
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var a = $n(it).next__O();
+ if ($uZ($n(p).apply__O__O(a))) {
+ return new $c_s_Some(a)
+ }
+ };
+ return $m_s_None$()
+}
+function $f_sc_IterableOnceOps__foldLeft__O__F2__O($thiz, z, op) {
+ if ($is_sc_IndexedSeq($thiz)) {
+ var x2 = $as_sc_IndexedSeq($thiz);
+ return $p_sc_IterableOnceOps__loop$1__I__I__O__F2__sc_IndexedSeq__O($thiz, 0, $n(x2).length__I(), z, op, x2)
+ } else {
+ var result = z;
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ result = $n(op).apply__O__O__O(result, $n(it).next__O())
+ };
+ return result
+ }
+}
+function $f_sc_IterableOnceOps__isEmpty__Z($thiz) {
+ var x1 = $n($as_sc_IterableOnce($thiz)).knownSize__I();
+ switch (x1) {
+ case (-1): {
+ return (!$n($n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator()).hasNext__Z());
+ break
+ }
+ case 0: {
+ return true;
+ break
+ }
+ default: {
+ return false
+ }
+ }
+}
+function $f_sc_IterableOnceOps__size__I($thiz) {
+ if (($n($as_sc_IterableOnce($thiz)).knownSize__I() >= 0)) {
+ return $n($as_sc_IterableOnce($thiz)).knownSize__I()
+ } else {
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ var len = 0;
+ while ($n(it).hasNext__Z()) {
+ len = ((1 + len) | 0);
+ $n(it).next__O()
+ };
+ return len
+ }
+}
+function $f_sc_IterableOnceOps__copyToArray__O__I__I__I($thiz, xs, start, len) {
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ var i = start;
+ var y = (($m_jl_reflect_Array$().getLength__O__I(xs) - start) | 0);
+ var end = ((start + ((len < y) ? len : y)) | 0);
+ while (((i < end) && $n(it).hasNext__Z())) {
+ $m_sr_ScalaRunTime$().array_update__O__I__O__V(xs, i, $n(it).next__O());
+ i = ((1 + i) | 0)
+ };
+ return ((i - start) | 0)
+}
+function $f_sc_IterableOnceOps__maxBy__F1__s_math_Ordering__O($thiz, f, ord) {
+ var x1 = $n($as_sc_IterableOnce($thiz)).knownSize__I();
+ if ((x1 === 0)) {
+ throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), "empty.maxBy")
+ } else {
+ return $n($as_sc_IterableOnceOps$Maximized($thiz.foldLeft__O__F2__O(new $c_sc_IterableOnceOps$Maximized($thiz, "maxBy", f, new $c_sjsr_AnonFunction2(((x$2, y$2) => $n(ord).gt__O__O__Z(x$2, y$2)))), new $c_sjsr_AnonFunction2(((m$2, a$2) => {
+ var m = $as_sc_IterableOnceOps$Maximized(m$2);
+ return $n(m).apply__sc_IterableOnceOps$Maximized__O__sc_IterableOnceOps$Maximized(m, a$2)
+ }))))).result__O()
+ }
+}
+function $f_sc_IterableOnceOps__mkString__T__T__T__T($thiz, start, sep, end) {
+ if (($n($as_sc_IterableOnce($thiz)).knownSize__I() === 0)) {
+ return (("" + start) + end)
+ } else {
+ var this$1 = $n($thiz.addString__scm_StringBuilder__T__T__T__scm_StringBuilder($ct_scm_StringBuilder__(new $c_scm_StringBuilder()), start, sep, end));
+ return $n(this$1.scm_StringBuilder__f_underlying).jl_StringBuilder__f_java$lang$StringBuilder$$content
+ }
+}
+function $f_sc_IterableOnceOps__addString__scm_StringBuilder__T__T__T__scm_StringBuilder($thiz, b, start, sep, end) {
+ var jsb = $n(b).scm_StringBuilder__f_underlying;
+ var this$1 = $n(start);
+ if ((this$1.length !== 0)) {
+ var this$2 = $n(jsb);
+ this$2.jl_StringBuilder__f_java$lang$StringBuilder$$content = (("" + this$2.jl_StringBuilder__f_java$lang$StringBuilder$$content) + start)
+ };
+ var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
+ if ($n(it).hasNext__Z()) {
+ var this$3 = $n(jsb);
+ var obj = $n(it).next__O();
+ this$3.jl_StringBuilder__f_java$lang$StringBuilder$$content = (("" + this$3.jl_StringBuilder__f_java$lang$StringBuilder$$content) + obj);
+ while ($n(it).hasNext__Z()) {
+ var this$4 = $n(jsb);
+ this$4.jl_StringBuilder__f_java$lang$StringBuilder$$content = (("" + this$4.jl_StringBuilder__f_java$lang$StringBuilder$$content) + sep);
+ var this$5 = $n(jsb);
+ var obj$1 = $n(it).next__O();
+ this$5.jl_StringBuilder__f_java$lang$StringBuilder$$content = (("" + this$5.jl_StringBuilder__f_java$lang$StringBuilder$$content) + obj$1)
+ }
+ };
+ var this$6 = $n(end);
+ if ((this$6.length !== 0)) {
+ var this$7 = $n(jsb);
+ this$7.jl_StringBuilder__f_java$lang$StringBuilder$$content = (("" + this$7.jl_StringBuilder__f_java$lang$StringBuilder$$content) + end)
+ };
+ return b
+}
+function $f_sc_IterableOnceOps__toArray__s_reflect_ClassTag__O($thiz, evidence$2) {
+ if (($n($as_sc_IterableOnce($thiz)).knownSize__I() >= 0)) {
+ var destination = $n(evidence$2).newArray__I__O($n($as_sc_IterableOnce($thiz)).knownSize__I());
+ $thiz.copyToArray__O__I__I__I(destination, 0, 2147483647);
+ return destination
+ } else {
+ var capacity = 0;
+ var jsElems = null;
+ var elementClass = $n(evidence$2).runtimeClass__jl_Class();
+ capacity = 0;
+ var isCharArrayBuilder = (elementClass === $d_C.getClassOf());
+ jsElems = [];
+ var xs = $as_sc_IterableOnce($thiz);
+ var it = $n(xs).iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var elem = $n(it).next__O();
+ var unboxedElem = (isCharArrayBuilder ? $uC(elem) : ((elem === null) ? $n(elementClass).jl_Class__f_data.zero : elem));
+ jsElems.push(unboxedElem)
+ };
+ var elemRuntimeClass = ((elementClass === $d_V.getClassOf()) ? $d_jl_Void.getClassOf() : (((elementClass === $d_sr_Null$.getClassOf()) || (elementClass === $d_sr_Nothing$.getClassOf())) ? $d_O.getClassOf() : elementClass));
+ return $n(elemRuntimeClass).jl_Class__f_data.getArrayOf().wrapArray(jsElems)
+ }
+}
+function $p_sc_IterableOnceOps__loop$1__I__I__O__F2__sc_IndexedSeq__O($thiz, at, end, acc, op$1, seq$1) {
+ while (true) {
+ if ((at === end)) {
+ return acc
+ } else {
+ var temp$at = ((1 + at) | 0);
+ var temp$acc = $n(op$1).apply__O__O__O(acc, $n(seq$1).apply__I__O(at));
+ at = temp$at;
+ acc = temp$acc
+ }
+ }
+}
+function $is_sc_IterableOnceOps(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sc_IterableOnceOps)))
+}
+function $as_sc_IterableOnceOps(obj) {
+ return (($is_sc_IterableOnceOps(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.IterableOnceOps"))
+}
+function $isArrayOf_sc_IterableOnceOps(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.sc_IterableOnceOps)))
+}
+function $asArrayOf_sc_IterableOnceOps(obj, depth) {
+ return (($isArrayOf_sc_IterableOnceOps(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.IterableOnceOps;", depth))
+}
+/** @constructor */
+function $c_sc_Iterator$ConcatIteratorCell(head, tail) {
+ this.sc_Iterator$ConcatIteratorCell__f_head = null;
+ this.sc_Iterator$ConcatIteratorCell__f_tail = null;
+ this.sc_Iterator$ConcatIteratorCell__f_head = head;
+ this.sc_Iterator$ConcatIteratorCell__f_tail = tail
+}
+$c_sc_Iterator$ConcatIteratorCell.prototype = new $h_O();
+$c_sc_Iterator$ConcatIteratorCell.prototype.constructor = $c_sc_Iterator$ConcatIteratorCell;
+/** @constructor */
+function $h_sc_Iterator$ConcatIteratorCell() {
+ /**/
+}
+$h_sc_Iterator$ConcatIteratorCell.prototype = $c_sc_Iterator$ConcatIteratorCell.prototype;
+$c_sc_Iterator$ConcatIteratorCell.prototype.headIterator__sc_Iterator = (function() {
+ return $n($as_sc_IterableOnce($n(this.sc_Iterator$ConcatIteratorCell__f_head).apply__O())).iterator__sc_Iterator()
+});
+var $d_sc_Iterator$ConcatIteratorCell = new $TypeData().initClass({
+ sc_Iterator$ConcatIteratorCell: 0
+}, false, "scala.collection.Iterator$ConcatIteratorCell", {
+ sc_Iterator$ConcatIteratorCell: 1,
+ O: 1
+});
+$c_sc_Iterator$ConcatIteratorCell.prototype.$classData = $d_sc_Iterator$ConcatIteratorCell;
+/** @constructor */
+function $c_sc_StringOps$() {
+ this.sc_StringOps$__f_fallback = null;
+ $n_sc_StringOps$ = this;
+ this.sc_StringOps$__f_fallback = new $c_sjsr_AnonFunction1(((x$1$2) => $m_sc_StringOps$().sc_StringOps$__f_fallback))
+}
+$c_sc_StringOps$.prototype = new $h_O();
+$c_sc_StringOps$.prototype.constructor = $c_sc_StringOps$;
+/** @constructor */
+function $h_sc_StringOps$() {
+ /**/
+}
+$h_sc_StringOps$.prototype = $c_sc_StringOps$.prototype;
+$c_sc_StringOps$.prototype.contains$extension__T__C__Z = (function(this$, elem) {
+ return ($f_T__indexOf__I__I($n(this$), elem) >= 0)
+});
+var $d_sc_StringOps$ = new $TypeData().initClass({
+ sc_StringOps$: 0
+}, false, "scala.collection.StringOps$", {
+ sc_StringOps$: 1,
+ O: 1
+});
+$c_sc_StringOps$.prototype.$classData = $d_sc_StringOps$;
+var $n_sc_StringOps$;
+function $m_sc_StringOps$() {
+ if ((!$n_sc_StringOps$)) {
+ $n_sc_StringOps$ = new $c_sc_StringOps$()
+ };
+ return $n_sc_StringOps$
+}
+function $p_sci_ChampBaseIterator__initNodes__V($thiz) {
+ if (($thiz.sci_ChampBaseIterator__f_nodeCursorsAndLengths === null)) {
+ $thiz.sci_ChampBaseIterator__f_nodeCursorsAndLengths = new $ac_I(($m_sci_Node$().sci_Node$__f_MaxDepth << 1));
+ $thiz.sci_ChampBaseIterator__f_nodes = new ($d_sci_Node.getArrayOf().constr)($m_sci_Node$().sci_Node$__f_MaxDepth)
+ }
+}
+function $p_sci_ChampBaseIterator__setupPayloadNode__sci_Node__V($thiz, node) {
+ $thiz.sci_ChampBaseIterator__f_currentValueNode = node;
+ $thiz.sci_ChampBaseIterator__f_currentValueCursor = 0;
+ $thiz.sci_ChampBaseIterator__f_currentValueLength = $n(node).payloadArity__I()
+}
+function $p_sci_ChampBaseIterator__pushNode__sci_Node__V($thiz, node) {
+ $p_sci_ChampBaseIterator__initNodes__V($thiz);
+ $thiz.sci_ChampBaseIterator__f_currentStackLevel = ((1 + $thiz.sci_ChampBaseIterator__f_currentStackLevel) | 0);
+ var cursorIndex = ($thiz.sci_ChampBaseIterator__f_currentStackLevel << 1);
+ var lengthIndex = ((1 + ($thiz.sci_ChampBaseIterator__f_currentStackLevel << 1)) | 0);
+ $n($thiz.sci_ChampBaseIterator__f_nodes).set($thiz.sci_ChampBaseIterator__f_currentStackLevel, node);
+ $n($thiz.sci_ChampBaseIterator__f_nodeCursorsAndLengths).set(cursorIndex, 0);
+ $n($thiz.sci_ChampBaseIterator__f_nodeCursorsAndLengths).set(lengthIndex, $n(node).nodeArity__I())
+}
+function $p_sci_ChampBaseIterator__popNode__V($thiz) {
+ $thiz.sci_ChampBaseIterator__f_currentStackLevel = (((-1) + $thiz.sci_ChampBaseIterator__f_currentStackLevel) | 0)
+}
+function $p_sci_ChampBaseIterator__searchNextValueNode__Z($thiz) {
+ while (($thiz.sci_ChampBaseIterator__f_currentStackLevel >= 0)) {
+ var cursorIndex = ($thiz.sci_ChampBaseIterator__f_currentStackLevel << 1);
+ var lengthIndex = ((1 + ($thiz.sci_ChampBaseIterator__f_currentStackLevel << 1)) | 0);
+ var nodeCursor = $n($thiz.sci_ChampBaseIterator__f_nodeCursorsAndLengths).get(cursorIndex);
+ var nodeLength = $n($thiz.sci_ChampBaseIterator__f_nodeCursorsAndLengths).get(lengthIndex);
+ if ((nodeCursor < nodeLength)) {
+ var ev$1 = $thiz.sci_ChampBaseIterator__f_nodeCursorsAndLengths;
+ $n(ev$1).set(cursorIndex, ((1 + $n(ev$1).get(cursorIndex)) | 0));
+ var nextNode = $n($n($thiz.sci_ChampBaseIterator__f_nodes).get($thiz.sci_ChampBaseIterator__f_currentStackLevel)).getNode__I__sci_Node(nodeCursor);
+ if ($n(nextNode).hasNodes__Z()) {
+ $p_sci_ChampBaseIterator__pushNode__sci_Node__V($thiz, nextNode)
+ };
+ if ($n(nextNode).hasPayload__Z()) {
+ $p_sci_ChampBaseIterator__setupPayloadNode__sci_Node__V($thiz, nextNode);
+ return true
+ }
+ } else {
+ $p_sci_ChampBaseIterator__popNode__V($thiz)
+ }
+ };
+ return false
+}
+function $ct_sci_ChampBaseIterator__($thiz) {
+ $thiz.sci_ChampBaseIterator__f_currentValueCursor = 0;
+ $thiz.sci_ChampBaseIterator__f_currentValueLength = 0;
+ $thiz.sci_ChampBaseIterator__f_currentStackLevel = (-1);
+ return $thiz
+}
+function $ct_sci_ChampBaseIterator__sci_Node__($thiz, rootNode) {
+ $ct_sci_ChampBaseIterator__($thiz);
+ if ($n(rootNode).hasNodes__Z()) {
+ $p_sci_ChampBaseIterator__pushNode__sci_Node__V($thiz, rootNode)
+ };
+ if ($n(rootNode).hasPayload__Z()) {
+ $p_sci_ChampBaseIterator__setupPayloadNode__sci_Node__V($thiz, rootNode)
+ };
+ return $thiz
+}
+/** @constructor */
+function $c_sci_ChampBaseIterator() {
+ this.sci_ChampBaseIterator__f_currentValueCursor = 0;
+ this.sci_ChampBaseIterator__f_currentValueLength = 0;
+ this.sci_ChampBaseIterator__f_currentValueNode = null;
+ this.sci_ChampBaseIterator__f_currentStackLevel = 0;
+ this.sci_ChampBaseIterator__f_nodeCursorsAndLengths = null;
+ this.sci_ChampBaseIterator__f_nodes = null
+}
+$c_sci_ChampBaseIterator.prototype = new $h_O();
+$c_sci_ChampBaseIterator.prototype.constructor = $c_sci_ChampBaseIterator;
+/** @constructor */
+function $h_sci_ChampBaseIterator() {
+ /**/
+}
+$h_sci_ChampBaseIterator.prototype = $c_sci_ChampBaseIterator.prototype;
+$c_sci_ChampBaseIterator.prototype.hasNext__Z = (function() {
+ return ((this.sci_ChampBaseIterator__f_currentValueCursor < this.sci_ChampBaseIterator__f_currentValueLength) || $p_sci_ChampBaseIterator__searchNextValueNode__Z(this))
+});
+function $p_sci_ChampBaseReverseIterator__setupPayloadNode__sci_Node__V($thiz, node) {
+ $thiz.sci_ChampBaseReverseIterator__f_currentValueNode = node;
+ $thiz.sci_ChampBaseReverseIterator__f_currentValueCursor = (((-1) + $n(node).payloadArity__I()) | 0)
+}
+function $p_sci_ChampBaseReverseIterator__pushNode__sci_Node__V($thiz, node) {
+ $thiz.sci_ChampBaseReverseIterator__f_currentStackLevel = ((1 + $thiz.sci_ChampBaseReverseIterator__f_currentStackLevel) | 0);
+ $n($thiz.sci_ChampBaseReverseIterator__f_nodeStack).set($thiz.sci_ChampBaseReverseIterator__f_currentStackLevel, node);
+ $n($thiz.sci_ChampBaseReverseIterator__f_nodeIndex).set($thiz.sci_ChampBaseReverseIterator__f_currentStackLevel, (((-1) + $n(node).nodeArity__I()) | 0))
+}
+function $p_sci_ChampBaseReverseIterator__popNode__V($thiz) {
+ $thiz.sci_ChampBaseReverseIterator__f_currentStackLevel = (((-1) + $thiz.sci_ChampBaseReverseIterator__f_currentStackLevel) | 0)
+}
+function $p_sci_ChampBaseReverseIterator__searchNextValueNode__Z($thiz) {
+ while (($thiz.sci_ChampBaseReverseIterator__f_currentStackLevel >= 0)) {
+ var nodeCursor = $n($thiz.sci_ChampBaseReverseIterator__f_nodeIndex).get($thiz.sci_ChampBaseReverseIterator__f_currentStackLevel);
+ $n($thiz.sci_ChampBaseReverseIterator__f_nodeIndex).set($thiz.sci_ChampBaseReverseIterator__f_currentStackLevel, (((-1) + nodeCursor) | 0));
+ if ((nodeCursor >= 0)) {
+ var nextNode = $n($n($thiz.sci_ChampBaseReverseIterator__f_nodeStack).get($thiz.sci_ChampBaseReverseIterator__f_currentStackLevel)).getNode__I__sci_Node(nodeCursor);
+ $p_sci_ChampBaseReverseIterator__pushNode__sci_Node__V($thiz, nextNode)
+ } else {
+ var currNode = $n($thiz.sci_ChampBaseReverseIterator__f_nodeStack).get($thiz.sci_ChampBaseReverseIterator__f_currentStackLevel);
+ $p_sci_ChampBaseReverseIterator__popNode__V($thiz);
+ if ($n(currNode).hasPayload__Z()) {
+ $p_sci_ChampBaseReverseIterator__setupPayloadNode__sci_Node__V($thiz, currNode);
+ return true
+ }
+ }
+ };
+ return false
+}
+function $ct_sci_ChampBaseReverseIterator__($thiz) {
+ $thiz.sci_ChampBaseReverseIterator__f_currentValueCursor = (-1);
+ $thiz.sci_ChampBaseReverseIterator__f_currentStackLevel = (-1);
+ $thiz.sci_ChampBaseReverseIterator__f_nodeIndex = new $ac_I(((1 + $m_sci_Node$().sci_Node$__f_MaxDepth) | 0));
+ $thiz.sci_ChampBaseReverseIterator__f_nodeStack = new ($d_sci_Node.getArrayOf().constr)(((1 + $m_sci_Node$().sci_Node$__f_MaxDepth) | 0));
+ return $thiz
+}
+function $ct_sci_ChampBaseReverseIterator__sci_Node__($thiz, rootNode) {
+ $ct_sci_ChampBaseReverseIterator__($thiz);
+ $p_sci_ChampBaseReverseIterator__pushNode__sci_Node__V($thiz, rootNode);
+ $p_sci_ChampBaseReverseIterator__searchNextValueNode__Z($thiz);
+ return $thiz
+}
+/** @constructor */
+function $c_sci_ChampBaseReverseIterator() {
+ this.sci_ChampBaseReverseIterator__f_currentValueCursor = 0;
+ this.sci_ChampBaseReverseIterator__f_currentValueNode = null;
+ this.sci_ChampBaseReverseIterator__f_currentStackLevel = 0;
+ this.sci_ChampBaseReverseIterator__f_nodeIndex = null;
+ this.sci_ChampBaseReverseIterator__f_nodeStack = null
+}
+$c_sci_ChampBaseReverseIterator.prototype = new $h_O();
+$c_sci_ChampBaseReverseIterator.prototype.constructor = $c_sci_ChampBaseReverseIterator;
+/** @constructor */
+function $h_sci_ChampBaseReverseIterator() {
+ /**/
+}
+$h_sci_ChampBaseReverseIterator.prototype = $c_sci_ChampBaseReverseIterator.prototype;
+$c_sci_ChampBaseReverseIterator.prototype.hasNext__Z = (function() {
+ return ((this.sci_ChampBaseReverseIterator__f_currentValueCursor >= 0) || $p_sci_ChampBaseReverseIterator__searchNextValueNode__Z(this))
+});
+function $p_sci_IndexedSeqDefaults$__liftedTree1$1__I($thiz) {
+ try {
+ $m_sc_StringOps$();
+ var x = $m_jl_System$SystemProperties$().getProperty__T__T__T("scala.collection.immutable.IndexedSeq.defaultApplyPreferredMaxLength", "64");
+ var this$4 = $m_jl_Integer$();
+ return this$4.parseInt__T__I__I(x, 10)
+ } catch (e) {
+ if (false) {
+ return 64
+ } else {
+ throw e
+ }
+ }
+}
+/** @constructor */
+function $c_sci_IndexedSeqDefaults$() {
+ this.sci_IndexedSeqDefaults$__f_defaultApplyPreferredMaxLength = 0;
+ $n_sci_IndexedSeqDefaults$ = this;
+ this.sci_IndexedSeqDefaults$__f_defaultApplyPreferredMaxLength = $p_sci_IndexedSeqDefaults$__liftedTree1$1__I(this)
+}
+$c_sci_IndexedSeqDefaults$.prototype = new $h_O();
+$c_sci_IndexedSeqDefaults$.prototype.constructor = $c_sci_IndexedSeqDefaults$;
+/** @constructor */
+function $h_sci_IndexedSeqDefaults$() {
+ /**/
+}
+$h_sci_IndexedSeqDefaults$.prototype = $c_sci_IndexedSeqDefaults$.prototype;
+var $d_sci_IndexedSeqDefaults$ = new $TypeData().initClass({
+ sci_IndexedSeqDefaults$: 0
+}, false, "scala.collection.immutable.IndexedSeqDefaults$", {
+ sci_IndexedSeqDefaults$: 1,
+ O: 1
+});
+$c_sci_IndexedSeqDefaults$.prototype.$classData = $d_sci_IndexedSeqDefaults$;
+var $n_sci_IndexedSeqDefaults$;
+function $m_sci_IndexedSeqDefaults$() {
+ if ((!$n_sci_IndexedSeqDefaults$)) {
+ $n_sci_IndexedSeqDefaults$ = new $c_sci_IndexedSeqDefaults$()
+ };
+ return $n_sci_IndexedSeqDefaults$
+}
+/** @constructor */
+function $c_sci_LazyList$LazyBuilder$DeferredState() {
+ this.sci_LazyList$LazyBuilder$DeferredState__f__state = null
+}
+$c_sci_LazyList$LazyBuilder$DeferredState.prototype = new $h_O();
+$c_sci_LazyList$LazyBuilder$DeferredState.prototype.constructor = $c_sci_LazyList$LazyBuilder$DeferredState;
+/** @constructor */
+function $h_sci_LazyList$LazyBuilder$DeferredState() {
+ /**/
+}
+$h_sci_LazyList$LazyBuilder$DeferredState.prototype = $c_sci_LazyList$LazyBuilder$DeferredState.prototype;
+$c_sci_LazyList$LazyBuilder$DeferredState.prototype.eval__sci_LazyList$State = (function() {
+ var state = this.sci_LazyList$LazyBuilder$DeferredState__f__state;
+ if ((state === null)) {
+ throw new $c_jl_IllegalStateException("uninitialized")
+ };
+ return $as_sci_LazyList$State($n(state).apply__O())
+});
+$c_sci_LazyList$LazyBuilder$DeferredState.prototype.init__F0__V = (function(state) {
+ if ((this.sci_LazyList$LazyBuilder$DeferredState__f__state !== null)) {
+ throw new $c_jl_IllegalStateException("already initialized")
+ };
+ this.sci_LazyList$LazyBuilder$DeferredState__f__state = state
+});
+var $d_sci_LazyList$LazyBuilder$DeferredState = new $TypeData().initClass({
+ sci_LazyList$LazyBuilder$DeferredState: 0
+}, false, "scala.collection.immutable.LazyList$LazyBuilder$DeferredState", {
+ sci_LazyList$LazyBuilder$DeferredState: 1,
+ O: 1
+});
+$c_sci_LazyList$LazyBuilder$DeferredState.prototype.$classData = $d_sci_LazyList$LazyBuilder$DeferredState;
+/** @constructor */
+function $c_sci_MapNode$() {
+ this.sci_MapNode$__f_EmptyMapNode = null;
+ $n_sci_MapNode$ = this;
+ this.sci_MapNode$__f_EmptyMapNode = new $c_sci_BitmapIndexedMapNode(0, 0, ($m_s_reflect_ManifestFactory$AnyManifest$(), new $ac_O(0)), ($m_s_reflect_ManifestFactory$IntManifest$(), new $ac_I(0)), 0, 0)
+}
+$c_sci_MapNode$.prototype = new $h_O();
+$c_sci_MapNode$.prototype.constructor = $c_sci_MapNode$;
+/** @constructor */
+function $h_sci_MapNode$() {
+ /**/
+}
+$h_sci_MapNode$.prototype = $c_sci_MapNode$.prototype;
+var $d_sci_MapNode$ = new $TypeData().initClass({
+ sci_MapNode$: 0
+}, false, "scala.collection.immutable.MapNode$", {
+ sci_MapNode$: 1,
+ O: 1
+});
+$c_sci_MapNode$.prototype.$classData = $d_sci_MapNode$;
+var $n_sci_MapNode$;
+function $m_sci_MapNode$() {
+ if ((!$n_sci_MapNode$)) {
+ $n_sci_MapNode$ = new $c_sci_MapNode$()
+ };
+ return $n_sci_MapNode$
+}
+function $p_sci_Node__arrayIndexOutOfBounds__O__I__jl_ArrayIndexOutOfBoundsException($thiz, as, ix) {
+ return $ct_jl_ArrayIndexOutOfBoundsException__T__(new $c_jl_ArrayIndexOutOfBoundsException(), ((ix + " is out of bounds (min 0, max ") + (((-1) + $m_jl_reflect_Array$().getLength__O__I(as)) | 0)))
+}
+/** @constructor */
+function $c_sci_Node() {
+ /**/
+}
+$c_sci_Node.prototype = new $h_O();
+$c_sci_Node.prototype.constructor = $c_sci_Node;
+/** @constructor */
+function $h_sci_Node() {
+ /**/
+}
+$h_sci_Node.prototype = $c_sci_Node.prototype;
+$c_sci_Node.prototype.removeElement__AI__I__AI = (function(as, ix) {
+ if ((ix < 0)) {
+ throw $n($p_sci_Node__arrayIndexOutOfBounds__O__I__jl_ArrayIndexOutOfBoundsException(this, as, ix))
+ };
+ if ((ix > (((-1) + $n(as).u.length) | 0))) {
+ throw $n($p_sci_Node__arrayIndexOutOfBounds__O__I__jl_ArrayIndexOutOfBoundsException(this, as, ix))
+ };
+ var result = new $ac_I((((-1) + $n(as).u.length) | 0));
+ $systemArraycopy($n(as), 0, result, 0, ix);
+ var srcPos = ((1 + ix) | 0);
+ var length = (((-1) + (($n(as).u.length - ix) | 0)) | 0);
+ $systemArraycopy($n(as), srcPos, result, ix, length);
+ return result
+});
+$c_sci_Node.prototype.insertElement__AI__I__I__AI = (function(as, ix, elem) {
+ if ((ix < 0)) {
+ throw $n($p_sci_Node__arrayIndexOutOfBounds__O__I__jl_ArrayIndexOutOfBoundsException(this, as, ix))
+ };
+ if ((ix > $n(as).u.length)) {
+ throw $n($p_sci_Node__arrayIndexOutOfBounds__O__I__jl_ArrayIndexOutOfBoundsException(this, as, ix))
+ };
+ var result = new $ac_I(((1 + $n(as).u.length) | 0));
+ $systemArraycopy($n(as), 0, result, 0, ix);
+ $n(result).set(ix, elem);
+ var destPos = ((1 + ix) | 0);
+ var length = (($n(as).u.length - ix) | 0);
+ $systemArraycopy($n(as), ix, result, destPos, length);
+ return result
+});
+var $d_sci_Node = new $TypeData().initClass({
+ sci_Node: 0
+}, false, "scala.collection.immutable.Node", {
+ sci_Node: 1,
+ O: 1
+});
+$c_sci_Node.prototype.$classData = $d_sci_Node;
+/** @constructor */
+function $c_sci_Node$() {
+ this.sci_Node$__f_MaxDepth = 0;
+ $n_sci_Node$ = this;
+ this.sci_Node$__f_MaxDepth = $doubleToInt($uD(Math.ceil(6.4)))
+}
+$c_sci_Node$.prototype = new $h_O();
+$c_sci_Node$.prototype.constructor = $c_sci_Node$;
+/** @constructor */
+function $h_sci_Node$() {
+ /**/
+}
+$h_sci_Node$.prototype = $c_sci_Node$.prototype;
+$c_sci_Node$.prototype.maskFrom__I__I__I = (function(hash, shift) {
+ return (31 & ((hash >>> shift) | 0))
+});
+$c_sci_Node$.prototype.bitposFrom__I__I = (function(mask) {
+ return (1 << mask)
+});
+$c_sci_Node$.prototype.indexFrom__I__I__I = (function(bitmap, bitpos) {
+ var i = (bitmap & (((-1) + bitpos) | 0));
+ return $m_jl_Integer$().bitCount__I__I(i)
+});
+$c_sci_Node$.prototype.indexFrom__I__I__I__I = (function(bitmap, mask, bitpos) {
+ return ((bitmap === (-1)) ? mask : this.indexFrom__I__I__I(bitmap, bitpos))
+});
+var $d_sci_Node$ = new $TypeData().initClass({
+ sci_Node$: 0
+}, false, "scala.collection.immutable.Node$", {
+ sci_Node$: 1,
+ O: 1
+});
+$c_sci_Node$.prototype.$classData = $d_sci_Node$;
+var $n_sci_Node$;
+function $m_sci_Node$() {
+ if ((!$n_sci_Node$)) {
+ $n_sci_Node$ = new $c_sci_Node$()
+ };
+ return $n_sci_Node$
+}
+/** @constructor */
+function $c_sci_SetNode$() {
+ this.sci_SetNode$__f_EmptySetNode = null;
+ $n_sci_SetNode$ = this;
+ this.sci_SetNode$__f_EmptySetNode = new $c_sci_BitmapIndexedSetNode(0, 0, ($m_s_reflect_ManifestFactory$AnyManifest$(), new $ac_O(0)), ($m_s_reflect_ManifestFactory$IntManifest$(), new $ac_I(0)), 0, 0)
+}
+$c_sci_SetNode$.prototype = new $h_O();
+$c_sci_SetNode$.prototype.constructor = $c_sci_SetNode$;
+/** @constructor */
+function $h_sci_SetNode$() {
+ /**/
+}
+$h_sci_SetNode$.prototype = $c_sci_SetNode$.prototype;
+var $d_sci_SetNode$ = new $TypeData().initClass({
+ sci_SetNode$: 0
+}, false, "scala.collection.immutable.SetNode$", {
+ sci_SetNode$: 1,
+ O: 1
+});
+$c_sci_SetNode$.prototype.$classData = $d_sci_SetNode$;
+var $n_sci_SetNode$;
+function $m_sci_SetNode$() {
+ if ((!$n_sci_SetNode$)) {
+ $n_sci_SetNode$ = new $c_sci_SetNode$()
+ };
+ return $n_sci_SetNode$
+}
+function $p_sci_VectorSliceBuilder__addSlice__I__AO__I__I__V($thiz, n, a, lo, hi) {
+ while (true) {
+ if ((n === 1)) {
+ var a$1 = a;
+ var start = lo;
+ var end = hi;
+ $p_sci_VectorSliceBuilder__add__I__AO__V($thiz, 1, (((start === 0) && (end === $n(a$1).u.length)) ? a$1 : $m_ju_Arrays$().copyOfRange__AO__I__I__AO(a$1, start, end)))
+ } else {
+ var bitsN = Math.imul(5, (((-1) + n) | 0));
+ var widthN = (1 << bitsN);
+ var loN = ((lo >>> bitsN) | 0);
+ var hiN = ((hi >>> bitsN) | 0);
+ var loRest = (lo & (((-1) + widthN) | 0));
+ var hiRest = (hi & (((-1) + widthN) | 0));
+ if ((loRest === 0)) {
+ if ((hiRest === 0)) {
+ var $$x1 = n;
+ var a$2 = a;
+ $p_sci_VectorSliceBuilder__add__I__AO__V($thiz, $$x1, (((loN === 0) && (hiN === $n(a$2).u.length)) ? a$2 : $m_ju_Arrays$().copyOfRange__AO__I__I__AO(a$2, loN, hiN)))
+ } else {
+ if ((hiN > loN)) {
+ var $$x2 = n;
+ var a$3 = a;
+ $p_sci_VectorSliceBuilder__add__I__AO__V($thiz, $$x2, (((loN === 0) && (hiN === $n(a$3).u.length)) ? a$3 : $m_ju_Arrays$().copyOfRange__AO__I__I__AO(a$3, loN, hiN)))
+ };
+ var temp$n = (((-1) + n) | 0);
+ var temp$a = $asArrayOf_O($n(a).get(hiN), 1);
+ n = temp$n;
+ a = temp$a;
+ lo = 0;
+ hi = hiRest;
+ continue
+ }
+ } else if ((hiN === loN)) {
+ var temp$n$2 = (((-1) + n) | 0);
+ var temp$a$2 = $asArrayOf_O($n(a).get(loN), 1);
+ n = temp$n$2;
+ a = temp$a$2;
+ lo = loRest;
+ hi = hiRest;
+ continue
+ } else {
+ $p_sci_VectorSliceBuilder__addSlice__I__AO__I__I__V($thiz, (((-1) + n) | 0), $asArrayOf_O($n(a).get(loN), 1), loRest, widthN);
+ if ((hiRest === 0)) {
+ if ((hiN > ((1 + loN) | 0))) {
+ var $$x3 = n;
+ var a$4 = a;
+ var start$1 = ((1 + loN) | 0);
+ $p_sci_VectorSliceBuilder__add__I__AO__V($thiz, $$x3, (((start$1 === 0) && (hiN === $n(a$4).u.length)) ? a$4 : $m_ju_Arrays$().copyOfRange__AO__I__I__AO(a$4, start$1, hiN)))
+ }
+ } else {
+ if ((hiN > ((1 + loN) | 0))) {
+ var $$x4 = n;
+ var a$5 = a;
+ var start$2 = ((1 + loN) | 0);
+ $p_sci_VectorSliceBuilder__add__I__AO__V($thiz, $$x4, (((start$2 === 0) && (hiN === $n(a$5).u.length)) ? a$5 : $m_ju_Arrays$().copyOfRange__AO__I__I__AO(a$5, start$2, hiN)))
+ };
+ var temp$n$3 = (((-1) + n) | 0);
+ var temp$a$3 = $asArrayOf_O($n(a).get(hiN), 1);
+ n = temp$n$3;
+ a = temp$a$3;
+ lo = 0;
+ hi = hiRest;
+ continue
+ }
+ }
+ };
+ return (void 0)
+ }
+}
+function $p_sci_VectorSliceBuilder__add__I__AO__V($thiz, n, a) {
+ if ((n <= $thiz.sci_VectorSliceBuilder__f_maxDim)) {
+ var idx = ((11 - n) | 0)
+ } else {
+ $thiz.sci_VectorSliceBuilder__f_maxDim = n;
+ var idx = (((-1) + n) | 0)
+ };
+ $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).set(idx, a)
+}
+function $p_sci_VectorSliceBuilder__balancePrefix__I__V($thiz, n) {
+ if (($n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get((((-1) + n) | 0)) === null)) {
+ if ((n === $thiz.sci_VectorSliceBuilder__f_maxDim)) {
+ $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).set((((-1) + n) | 0), $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(((11 - n) | 0)));
+ $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).set(((11 - n) | 0), null)
+ } else {
+ $p_sci_VectorSliceBuilder__balancePrefix__I__V($thiz, ((1 + n) | 0));
+ var $$x1 = $thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices;
+ var n$1 = ((1 + n) | 0);
+ var preN1 = $asArrayOf_O($n($$x1).get((((-1) + n$1) | 0)), 2);
+ $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).set((((-1) + n) | 0), $n(preN1).get(0));
+ if (($n(preN1).u.length === 1)) {
+ var $$x2 = $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n$2 = ((1 + n) | 0);
+ $$x2.set((((-1) + n$2) | 0), null);
+ if (($thiz.sci_VectorSliceBuilder__f_maxDim === ((1 + n) | 0))) {
+ var $$x4 = $thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices;
+ var n$3 = ((1 + n) | 0);
+ var $$x3 = ($n($$x4).get(((11 - n$3) | 0)) === null)
+ } else {
+ var $$x3 = false
+ };
+ if ($$x3) {
+ $thiz.sci_VectorSliceBuilder__f_maxDim = n
+ }
+ } else {
+ var $$x5 = $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n$4 = ((1 + n) | 0);
+ var to = $n(preN1).u.length;
+ $$x5.set((((-1) + n$4) | 0), $m_ju_Arrays$().copyOfRange__AO__I__I__AO(preN1, 1, to))
+ }
+ }
+ }
+}
+function $p_sci_VectorSliceBuilder__balanceSuffix__I__V($thiz, n) {
+ if (($n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(((11 - n) | 0)) === null)) {
+ if ((n === $thiz.sci_VectorSliceBuilder__f_maxDim)) {
+ $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).set(((11 - n) | 0), $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get((((-1) + n) | 0)));
+ $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).set((((-1) + n) | 0), null)
+ } else {
+ $p_sci_VectorSliceBuilder__balanceSuffix__I__V($thiz, ((1 + n) | 0));
+ var $$x1 = $thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices;
+ var n$1 = ((1 + n) | 0);
+ var sufN1 = $asArrayOf_O($n($$x1).get(((11 - n$1) | 0)), 2);
+ $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).set(((11 - n) | 0), $n(sufN1).get((((-1) + $n(sufN1).u.length) | 0)));
+ if (($n(sufN1).u.length === 1)) {
+ var $$x2 = $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n$2 = ((1 + n) | 0);
+ $$x2.set(((11 - n$2) | 0), null);
+ if (($thiz.sci_VectorSliceBuilder__f_maxDim === ((1 + n) | 0))) {
+ var $$x4 = $thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices;
+ var n$3 = ((1 + n) | 0);
+ var $$x3 = ($n($$x4).get((((-1) + n$3) | 0)) === null)
+ } else {
+ var $$x3 = false
+ };
+ if ($$x3) {
+ $thiz.sci_VectorSliceBuilder__f_maxDim = n
+ }
+ } else {
+ var $$x5 = $n($thiz.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n$4 = ((1 + n) | 0);
+ var to = (((-1) + $n(sufN1).u.length) | 0);
+ $$x5.set(((11 - n$4) | 0), $m_ju_Arrays$().copyOfRange__AO__I__I__AO(sufN1, 0, to))
+ }
+ }
+ }
+}
+/** @constructor */
+function $c_sci_VectorSliceBuilder(lo, hi) {
+ this.sci_VectorSliceBuilder__f_lo = 0;
+ this.sci_VectorSliceBuilder__f_hi = 0;
+ this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices = null;
+ this.sci_VectorSliceBuilder__f_len = 0;
+ this.sci_VectorSliceBuilder__f_pos = 0;
+ this.sci_VectorSliceBuilder__f_maxDim = 0;
+ this.sci_VectorSliceBuilder__f_lo = lo;
+ this.sci_VectorSliceBuilder__f_hi = hi;
+ this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices = new ($d_O.getArrayOf().getArrayOf().constr)(11);
+ this.sci_VectorSliceBuilder__f_len = 0;
+ this.sci_VectorSliceBuilder__f_pos = 0;
+ this.sci_VectorSliceBuilder__f_maxDim = 0
+}
+$c_sci_VectorSliceBuilder.prototype = new $h_O();
+$c_sci_VectorSliceBuilder.prototype.constructor = $c_sci_VectorSliceBuilder;
+/** @constructor */
+function $h_sci_VectorSliceBuilder() {
+ /**/
+}
+$h_sci_VectorSliceBuilder.prototype = $c_sci_VectorSliceBuilder.prototype;
+$c_sci_VectorSliceBuilder.prototype.consider__I__AO__V = (function(n, a) {
+ var count = Math.imul($n(a).u.length, (1 << Math.imul(5, (((-1) + n) | 0))));
+ var a$1 = ((this.sci_VectorSliceBuilder__f_lo - this.sci_VectorSliceBuilder__f_pos) | 0);
+ var lo0 = ((a$1 > 0) ? a$1 : 0);
+ var a$2 = ((this.sci_VectorSliceBuilder__f_hi - this.sci_VectorSliceBuilder__f_pos) | 0);
+ var hi0 = ((a$2 < count) ? a$2 : count);
+ if ((hi0 > lo0)) {
+ $p_sci_VectorSliceBuilder__addSlice__I__AO__I__I__V(this, n, a, lo0, hi0);
+ this.sci_VectorSliceBuilder__f_len = ((this.sci_VectorSliceBuilder__f_len + ((hi0 - lo0) | 0)) | 0)
+ };
+ this.sci_VectorSliceBuilder__f_pos = ((this.sci_VectorSliceBuilder__f_pos + count) | 0)
+});
+$c_sci_VectorSliceBuilder.prototype.result__sci_Vector = (function() {
+ if ((this.sci_VectorSliceBuilder__f_len <= 32)) {
+ if ((this.sci_VectorSliceBuilder__f_len === 0)) {
+ return $m_sci_Vector0$()
+ } else {
+ var prefix1 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(0);
+ var suffix1 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(10);
+ if ((prefix1 !== null)) {
+ if ((suffix1 !== null)) {
+ var newLength = (($n(prefix1).u.length + $n(suffix1).u.length) | 0);
+ var dest = $m_ju_Arrays$().copyOf__AO__I__AO(prefix1, newLength);
+ var destPos = $n(prefix1).u.length;
+ var length = $n(suffix1).u.length;
+ $systemArraycopyRefs($n(suffix1), 0, $n(dest), destPos, length);
+ var a = dest
+ } else {
+ var a = prefix1
+ }
+ } else if ((suffix1 !== null)) {
+ var a = suffix1
+ } else {
+ var prefix2 = $asArrayOf_O($n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(1), 2);
+ if ((prefix2 !== null)) {
+ var a = $n(prefix2).get(0)
+ } else {
+ var suffix2 = $asArrayOf_O($n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(9), 2);
+ var a = $n(suffix2).get(0)
+ }
+ };
+ return new $c_sci_Vector1(a)
+ }
+ } else {
+ $p_sci_VectorSliceBuilder__balancePrefix__I__V(this, 1);
+ $p_sci_VectorSliceBuilder__balanceSuffix__I__V(this, 1);
+ var resultDim = this.sci_VectorSliceBuilder__f_maxDim;
+ if ((resultDim < 6)) {
+ var $$x1 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n = this.sci_VectorSliceBuilder__f_maxDim;
+ var pre = $n($$x1).get((((-1) + n) | 0));
+ var $$x2 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n$1 = this.sci_VectorSliceBuilder__f_maxDim;
+ var suf = $n($$x2).get(((11 - n$1) | 0));
+ if (((pre !== null) && (suf !== null))) {
+ if (((($n(pre).u.length + $n(suf).u.length) | 0) <= 30)) {
+ var $$x3 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n$2 = this.sci_VectorSliceBuilder__f_maxDim;
+ var newLength$1 = (($n(pre).u.length + $n(suf).u.length) | 0);
+ var dest$1 = $m_ju_Arrays$().copyOf__AO__I__AO(pre, newLength$1);
+ var destPos$1 = $n(pre).u.length;
+ var length$1 = $n(suf).u.length;
+ $systemArraycopyRefs($n(suf), 0, $n(dest$1), destPos$1, length$1);
+ $$x3.set((((-1) + n$2) | 0), dest$1);
+ var $$x4 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices);
+ var n$3 = this.sci_VectorSliceBuilder__f_maxDim;
+ $$x4.set(((11 - n$3) | 0), null)
+ } else {
+ resultDim = ((1 + resultDim) | 0)
+ }
+ } else {
+ var one = ((pre !== null) ? pre : suf);
+ if (($n(one).u.length > 30)) {
+ resultDim = ((1 + resultDim) | 0)
+ }
+ }
+ };
+ var prefix1$2 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(0);
+ var suffix1$2 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(10);
+ var len1 = $n(prefix1$2).u.length;
+ var x1 = resultDim;
+ switch (x1) {
+ case 2: {
+ var a$1 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var p = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(1);
+ if ((p !== null)) {
+ var $$x5 = p
+ } else {
+ var s = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(9);
+ var $$x5 = ((s !== null) ? s : a$1)
+ };
+ var data2 = $asArrayOf_O($$x5, 2);
+ var res = new $c_sci_Vector2(prefix1$2, len1, data2, suffix1$2, this.sci_VectorSliceBuilder__f_len);
+ break
+ }
+ case 3: {
+ var a$2 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var p$1 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(1);
+ var prefix2$2 = $asArrayOf_O(((p$1 !== null) ? p$1 : a$2), 2);
+ var a$3 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty3;
+ var p$2 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(2);
+ if ((p$2 !== null)) {
+ var $$x6 = p$2
+ } else {
+ var s$1 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(8);
+ var $$x6 = ((s$1 !== null) ? s$1 : a$3)
+ };
+ var data3 = $asArrayOf_O($$x6, 3);
+ var a$4 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var s$2 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(9);
+ var suffix2$2 = $asArrayOf_O(((s$2 !== null) ? s$2 : a$4), 2);
+ var len12 = ((len1 + ($n(prefix2$2).u.length << 5)) | 0);
+ var res = new $c_sci_Vector3(prefix1$2, len1, prefix2$2, len12, data3, suffix2$2, suffix1$2, this.sci_VectorSliceBuilder__f_len);
+ break
+ }
+ case 4: {
+ var a$5 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var p$3 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(1);
+ var prefix2$3 = $asArrayOf_O(((p$3 !== null) ? p$3 : a$5), 2);
+ var a$6 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty3;
+ var p$4 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(2);
+ var prefix3 = $asArrayOf_O(((p$4 !== null) ? p$4 : a$6), 3);
+ var a$7 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty4;
+ var p$5 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(3);
+ if ((p$5 !== null)) {
+ var $$x7 = p$5
+ } else {
+ var s$3 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(7);
+ var $$x7 = ((s$3 !== null) ? s$3 : a$7)
+ };
+ var data4 = $asArrayOf_O($$x7, 4);
+ var a$8 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty3;
+ var s$4 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(8);
+ var suffix3 = $asArrayOf_O(((s$4 !== null) ? s$4 : a$8), 3);
+ var a$9 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var s$5 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(9);
+ var suffix2$3 = $asArrayOf_O(((s$5 !== null) ? s$5 : a$9), 2);
+ var len12$2 = ((len1 + ($n(prefix2$3).u.length << 5)) | 0);
+ var len123 = ((len12$2 + ($n(prefix3).u.length << 10)) | 0);
+ var res = new $c_sci_Vector4(prefix1$2, len1, prefix2$3, len12$2, prefix3, len123, data4, suffix3, suffix2$3, suffix1$2, this.sci_VectorSliceBuilder__f_len);
+ break
+ }
+ case 5: {
+ var a$10 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var p$6 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(1);
+ var prefix2$4 = $asArrayOf_O(((p$6 !== null) ? p$6 : a$10), 2);
+ var a$11 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty3;
+ var p$7 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(2);
+ var prefix3$2 = $asArrayOf_O(((p$7 !== null) ? p$7 : a$11), 3);
+ var a$12 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty4;
+ var p$8 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(3);
+ var prefix4 = $asArrayOf_O(((p$8 !== null) ? p$8 : a$12), 4);
+ var a$13 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty5;
+ var p$9 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(4);
+ if ((p$9 !== null)) {
+ var $$x8 = p$9
+ } else {
+ var s$6 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(6);
+ var $$x8 = ((s$6 !== null) ? s$6 : a$13)
+ };
+ var data5 = $asArrayOf_O($$x8, 5);
+ var a$14 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty4;
+ var s$7 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(7);
+ var suffix4 = $asArrayOf_O(((s$7 !== null) ? s$7 : a$14), 4);
+ var a$15 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty3;
+ var s$8 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(8);
+ var suffix3$2 = $asArrayOf_O(((s$8 !== null) ? s$8 : a$15), 3);
+ var a$16 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var s$9 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(9);
+ var suffix2$4 = $asArrayOf_O(((s$9 !== null) ? s$9 : a$16), 2);
+ var len12$3 = ((len1 + ($n(prefix2$4).u.length << 5)) | 0);
+ var len123$2 = ((len12$3 + ($n(prefix3$2).u.length << 10)) | 0);
+ var len1234 = ((len123$2 + ($n(prefix4).u.length << 15)) | 0);
+ var res = new $c_sci_Vector5(prefix1$2, len1, prefix2$4, len12$3, prefix3$2, len123$2, prefix4, len1234, data5, suffix4, suffix3$2, suffix2$4, suffix1$2, this.sci_VectorSliceBuilder__f_len);
+ break
+ }
+ case 6: {
+ var a$17 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var p$10 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(1);
+ var prefix2$5 = $asArrayOf_O(((p$10 !== null) ? p$10 : a$17), 2);
+ var a$18 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty3;
+ var p$11 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(2);
+ var prefix3$3 = $asArrayOf_O(((p$11 !== null) ? p$11 : a$18), 3);
+ var a$19 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty4;
+ var p$12 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(3);
+ var prefix4$2 = $asArrayOf_O(((p$12 !== null) ? p$12 : a$19), 4);
+ var a$20 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty5;
+ var p$13 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(4);
+ var prefix5 = $asArrayOf_O(((p$13 !== null) ? p$13 : a$20), 5);
+ var a$21 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty6;
+ var p$14 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(5);
+ if ((p$14 !== null)) {
+ var $$x9 = p$14
+ } else {
+ var s$10 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(5);
+ var $$x9 = ((s$10 !== null) ? s$10 : a$21)
+ };
+ var data6 = $asArrayOf_O($$x9, 6);
+ var a$22 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty5;
+ var s$11 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(6);
+ var suffix5 = $asArrayOf_O(((s$11 !== null) ? s$11 : a$22), 5);
+ var a$23 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty4;
+ var s$12 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(7);
+ var suffix4$2 = $asArrayOf_O(((s$12 !== null) ? s$12 : a$23), 4);
+ var a$24 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty3;
+ var s$13 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(8);
+ var suffix3$3 = $asArrayOf_O(((s$13 !== null) ? s$13 : a$24), 3);
+ var a$25 = $m_sci_VectorStatics$().sci_VectorStatics$__f_empty2;
+ var s$14 = $n(this.sci_VectorSliceBuilder__f_scala$collection$immutable$VectorSliceBuilder$$slices).get(9);
+ var suffix2$5 = $asArrayOf_O(((s$14 !== null) ? s$14 : a$25), 2);
+ var len12$4 = ((len1 + ($n(prefix2$5).u.length << 5)) | 0);
+ var len123$3 = ((len12$4 + ($n(prefix3$3).u.length << 10)) | 0);
+ var len1234$2 = ((len123$3 + ($n(prefix4$2).u.length << 15)) | 0);
+ var len12345 = ((len1234$2 + ($n(prefix5).u.length << 20)) | 0);
+ var res = new $c_sci_Vector6(prefix1$2, len1, prefix2$5, len12$4, prefix3$3, len123$3, prefix4$2, len1234$2, prefix5, len12345, data6, suffix5, suffix4$2, suffix3$3, suffix2$5, suffix1$2, this.sci_VectorSliceBuilder__f_len);
+ break
+ }
+ default: {
+ var res;
+ throw new $c_s_MatchError(x1)
+ }
+ };
+ return res
+ }
+});
+$c_sci_VectorSliceBuilder.prototype.toString__T = (function() {
+ return (((((((((("VectorSliceBuilder(lo=" + this.sci_VectorSliceBuilder__f_lo) + ", hi=") + this.sci_VectorSliceBuilder__f_hi) + ", len=") + this.sci_VectorSliceBuilder__f_len) + ", pos=") + this.sci_VectorSliceBuilder__f_pos) + ", maxDim=") + this.sci_VectorSliceBuilder__f_maxDim) + ")")
+});
+var $d_sci_VectorSliceBuilder = new $TypeData().initClass({
+ sci_VectorSliceBuilder: 0
+}, false, "scala.collection.immutable.VectorSliceBuilder", {
+ sci_VectorSliceBuilder: 1,
+ O: 1
+});
+$c_sci_VectorSliceBuilder.prototype.$classData = $d_sci_VectorSliceBuilder;
+/** @constructor */
+function $c_sci_VectorStatics$() {
+ this.sci_VectorStatics$__f_empty1 = null;
+ this.sci_VectorStatics$__f_empty2 = null;
+ this.sci_VectorStatics$__f_empty3 = null;
+ this.sci_VectorStatics$__f_empty4 = null;
+ this.sci_VectorStatics$__f_empty5 = null;
+ this.sci_VectorStatics$__f_empty6 = null;
+ $n_sci_VectorStatics$ = this;
+ this.sci_VectorStatics$__f_empty1 = new $ac_O(0);
+ this.sci_VectorStatics$__f_empty2 = new ($d_O.getArrayOf().getArrayOf().constr)(0);
+ this.sci_VectorStatics$__f_empty3 = new ($d_O.getArrayOf().getArrayOf().getArrayOf().constr)(0);
+ this.sci_VectorStatics$__f_empty4 = new ($d_O.getArrayOf().getArrayOf().getArrayOf().getArrayOf().constr)(0);
+ this.sci_VectorStatics$__f_empty5 = new ($d_O.getArrayOf().getArrayOf().getArrayOf().getArrayOf().getArrayOf().constr)(0);
+ this.sci_VectorStatics$__f_empty6 = new ($d_O.getArrayOf().getArrayOf().getArrayOf().getArrayOf().getArrayOf().getArrayOf().constr)(0)
+}
+$c_sci_VectorStatics$.prototype = new $h_O();
+$c_sci_VectorStatics$.prototype.constructor = $c_sci_VectorStatics$;
+/** @constructor */
+function $h_sci_VectorStatics$() {
+ /**/
+}
+$h_sci_VectorStatics$.prototype = $c_sci_VectorStatics$.prototype;
+$c_sci_VectorStatics$.prototype.copyAppend1__AO__O__AO = (function(a, elem) {
+ var alen = $n(a).u.length;
+ var ac = new $ac_O(((1 + alen) | 0));
+ $systemArraycopyRefs($n(a), 0, ac, 0, alen);
+ $n(ac).set(alen, elem);
+ return ac
+});
+$c_sci_VectorStatics$.prototype.copyAppend__AO__O__AO = (function(a, elem) {
+ var newLength = ((1 + $n(a).u.length) | 0);
+ var ac = $m_ju_Arrays$().copyOf__AO__I__AO(a, newLength);
+ $n(ac).set((((-1) + $n(ac).u.length) | 0), elem);
+ return ac
+});
+$c_sci_VectorStatics$.prototype.copyPrepend1__O__AO__AO = (function(elem, a) {
+ var ac = new $ac_O(((1 + $n(a).u.length) | 0));
+ var length = $n(a).u.length;
+ $systemArraycopyRefs($n(a), 0, ac, 1, length);
+ $n(ac).set(0, elem);
+ return ac
+});
+$c_sci_VectorStatics$.prototype.copyPrepend__O__AO__AO = (function(elem, a) {
+ var this$1 = $n(a);
+ var componentType = $objectGetClass(this$1).getComponentType__jl_Class();
+ var length = ((1 + $n(a).u.length) | 0);
+ var ac = $asArrayOf_O($m_jl_reflect_Array$().newInstance__jl_Class__I__O(componentType, length), 1);
+ var length$1 = $n(a).u.length;
+ $systemArraycopyRefs($n(a), 0, $n(ac), 1, length$1);
+ $n(ac).set(0, elem);
+ return ac
+});
+$c_sci_VectorStatics$.prototype.foreachRec__I__AO__F1__V = (function(level, a, f) {
+ var i = 0;
+ var len = $n(a).u.length;
+ if ((level === 0)) {
+ while ((i < len)) {
+ $n(f).apply__O__O($n(a).get(i));
+ i = ((1 + i) | 0)
+ }
+ } else {
+ var l = (((-1) + level) | 0);
+ while ((i < len)) {
+ this.foreachRec__I__AO__F1__V(l, $asArrayOf_O($n(a).get(i), 1), f);
+ i = ((1 + i) | 0)
+ }
+ }
+});
+$c_sci_VectorStatics$.prototype.mapElems1__AO__F1__AO = (function(a, f) {
+ var i = 0;
+ while ((i < $n(a).u.length)) {
+ var v1 = $n(a).get(i);
+ var v2 = $n(f).apply__O__O(v1);
+ if ((!Object.is(v1, v2))) {
+ return this.mapElems1Rest__AO__F1__I__O__AO(a, f, i, v2)
+ };
+ i = ((1 + i) | 0)
+ };
+ return a
+});
+$c_sci_VectorStatics$.prototype.mapElems1Rest__AO__F1__I__O__AO = (function(a, f, at, v2) {
+ var ac = new $ac_O($n(a).u.length);
+ if ((at > 0)) {
+ $systemArraycopyRefs($n(a), 0, ac, 0, at)
+ };
+ $n(ac).set(at, v2);
+ var i = ((1 + at) | 0);
+ while ((i < $n(a).u.length)) {
+ $n(ac).set(i, $n(f).apply__O__O($n(a).get(i)));
+ i = ((1 + i) | 0)
+ };
+ return ac
+});
+$c_sci_VectorStatics$.prototype.mapElems__I__AO__F1__AO = (function(n, a, f) {
+ if ((n === 1)) {
+ return this.mapElems1__AO__F1__AO(a, f)
+ } else {
+ var i = 0;
+ while ((i < $n(a).u.length)) {
+ var v1 = $n(a).get(i);
+ var v2 = this.mapElems__I__AO__F1__AO((((-1) + n) | 0), $asArrayOf_O(v1, 1), f);
+ if ((v1 !== v2)) {
+ return this.mapElemsRest__I__AO__F1__I__O__AO(n, a, f, i, v2)
+ };
+ i = ((1 + i) | 0)
+ };
+ return a
+ }
+});
+$c_sci_VectorStatics$.prototype.mapElemsRest__I__AO__F1__I__O__AO = (function(n, a, f, at, v2) {
+ var this$1 = $n(a);
+ var componentType = $objectGetClass(this$1).getComponentType__jl_Class();
+ var length = $n(a).u.length;
+ var ac = $asArrayOf_O($m_jl_reflect_Array$().newInstance__jl_Class__I__O(componentType, length), 1);
+ if ((at > 0)) {
+ $systemArraycopyRefs($n(a), 0, $n(ac), 0, at)
+ };
+ $n(ac).set(at, v2);
+ var i = ((1 + at) | 0);
+ while ((i < $n(a).u.length)) {
+ $n(ac).set(i, this.mapElems__I__AO__F1__AO((((-1) + n) | 0), $asArrayOf_O($n(a).get(i), 1), f));
+ i = ((1 + i) | 0)
+ };
+ return ac
+});
+$c_sci_VectorStatics$.prototype.append1IfSpace__AO__sc_IterableOnce__AO = (function(suffix1, xs) {
+ if ($is_sci_Iterable(xs)) {
+ var x2 = $as_sci_Iterable(xs);
+ if (($n(x2).sizeCompare__I__I(((32 - $n(suffix1).u.length) | 0)) <= 0)) {
+ var x1$2 = $n(x2).size__I();
+ switch (x1$2) {
+ case 0: {
+ return null;
+ break
+ }
+ case 1: {
+ return this.copyAppend__AO__O__AO(suffix1, $n(x2).head__O());
+ break
+ }
+ default: {
+ var newLength = (($n(suffix1).u.length + x1$2) | 0);
+ var suffix1b = $m_ju_Arrays$().copyOf__AO__I__AO(suffix1, newLength);
+ var this$1 = $n(x2);
+ var start = $n(suffix1).u.length;
+ this$1.copyToArray__O__I__I__I(suffix1b, start, 2147483647);
+ return suffix1b
+ }
+ }
+ } else {
+ return null
+ }
+ } else {
+ var s = $n(xs).knownSize__I();
+ if (((s > 0) && (s <= ((32 - $n(suffix1).u.length) | 0)))) {
+ var newLength$1 = (($n(suffix1).u.length + s) | 0);
+ var suffix1b$2 = $m_ju_Arrays$().copyOf__AO__I__AO(suffix1, newLength$1);
+ var this$2 = $n($n(xs).iterator__sc_Iterator());
+ var start$1 = $n(suffix1).u.length;
+ this$2.copyToArray__O__I__I__I(suffix1b$2, start$1, 2147483647);
+ return suffix1b$2
+ } else {
+ return null
+ }
+ }
+});
+var $d_sci_VectorStatics$ = new $TypeData().initClass({
+ sci_VectorStatics$: 0
+}, false, "scala.collection.immutable.VectorStatics$", {
+ sci_VectorStatics$: 1,
+ O: 1
+});
+$c_sci_VectorStatics$.prototype.$classData = $d_sci_VectorStatics$;
+var $n_sci_VectorStatics$;
+function $m_sci_VectorStatics$() {
+ if ((!$n_sci_VectorStatics$)) {
+ $n_sci_VectorStatics$ = new $c_sci_VectorStatics$()
+ };
+ return $n_sci_VectorStatics$
+}
+function $as_scm_HashMap$Node(obj) {
+ return ((false || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.mutable.HashMap$Node"))
+}
+function $isArrayOf_scm_HashMap$Node(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scm_HashMap$Node)))
+}
+function $asArrayOf_scm_HashMap$Node(obj, depth) {
+ return (($isArrayOf_scm_HashMap$Node(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.mutable.HashMap$Node;", depth))
+}
+/** @constructor */
+function $c_scm_HashSet$Node(_key, _hash, _next) {
+ this.scm_HashSet$Node__f__key = null;
+ this.scm_HashSet$Node__f__hash = 0;
+ this.scm_HashSet$Node__f__next = null;
+ this.scm_HashSet$Node__f__key = _key;
+ this.scm_HashSet$Node__f__hash = _hash;
+ this.scm_HashSet$Node__f__next = _next
+}
+$c_scm_HashSet$Node.prototype = new $h_O();
+$c_scm_HashSet$Node.prototype.constructor = $c_scm_HashSet$Node;
+/** @constructor */
+function $h_scm_HashSet$Node() {
+ /**/
+}
+$h_scm_HashSet$Node.prototype = $c_scm_HashSet$Node.prototype;
+$c_scm_HashSet$Node.prototype.findNode__O__I__scm_HashSet$Node = (function(k, h) {
+ var _$this = this;
+ while (true) {
+ if (((h === $n(_$this).scm_HashSet$Node__f__hash) && $m_sr_BoxesRunTime$().equals__O__O__Z(k, $n(_$this).scm_HashSet$Node__f__key))) {
+ return _$this
+ } else if ((($n(_$this).scm_HashSet$Node__f__next === null) || ($n(_$this).scm_HashSet$Node__f__hash > h))) {
+ return null
+ } else {
+ _$this = $n(_$this).scm_HashSet$Node__f__next
+ }
+ }
+});
+$c_scm_HashSet$Node.prototype.toString__T = (function() {
+ return ((((("Node(" + this.scm_HashSet$Node__f__key) + ", ") + this.scm_HashSet$Node__f__hash) + ") -> ") + this.scm_HashSet$Node__f__next)
+});
+function $as_scm_HashSet$Node(obj) {
+ return (((obj instanceof $c_scm_HashSet$Node) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.mutable.HashSet$Node"))
+}
+function $isArrayOf_scm_HashSet$Node(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scm_HashSet$Node)))
+}
+function $asArrayOf_scm_HashSet$Node(obj, depth) {
+ return (($isArrayOf_scm_HashSet$Node(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.mutable.HashSet$Node;", depth))
+}
+var $d_scm_HashSet$Node = new $TypeData().initClass({
+ scm_HashSet$Node: 0
+}, false, "scala.collection.mutable.HashSet$Node", {
+ scm_HashSet$Node: 1,
+ O: 1
+});
+$c_scm_HashSet$Node.prototype.$classData = $d_scm_HashSet$Node;
+function $as_scm_LinkedHashMap$LinkedEntry(obj) {
+ return ((false || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.mutable.LinkedHashMap$LinkedEntry"))
+}
+function $isArrayOf_scm_LinkedHashMap$LinkedEntry(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scm_LinkedHashMap$LinkedEntry)))
+}
+function $asArrayOf_scm_LinkedHashMap$LinkedEntry(obj, depth) {
+ return (($isArrayOf_scm_LinkedHashMap$LinkedEntry(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.mutable.LinkedHashMap$LinkedEntry;", depth))
+}
+function $as_scm_LinkedHashSet$Entry(obj) {
+ return ((false || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.mutable.LinkedHashSet$Entry"))
+}
+function $isArrayOf_scm_LinkedHashSet$Entry(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scm_LinkedHashSet$Entry)))
+}
+function $asArrayOf_scm_LinkedHashSet$Entry(obj, depth) {
+ return (($isArrayOf_scm_LinkedHashSet$Entry(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.mutable.LinkedHashSet$Entry;", depth))
+}
+/** @constructor */
+function $c_scm_MutationTracker$() {
+ /**/
+}
+$c_scm_MutationTracker$.prototype = new $h_O();
+$c_scm_MutationTracker$.prototype.constructor = $c_scm_MutationTracker$;
+/** @constructor */
+function $h_scm_MutationTracker$() {
+ /**/
+}
+$h_scm_MutationTracker$.prototype = $c_scm_MutationTracker$.prototype;
+$c_scm_MutationTracker$.prototype.checkMutations__I__I__T__V = (function(expectedCount, actualCount, message) {
+ if ((actualCount !== expectedCount)) {
+ throw new $c_ju_ConcurrentModificationException(message)
+ }
+});
+var $d_scm_MutationTracker$ = new $TypeData().initClass({
+ scm_MutationTracker$: 0
+}, false, "scala.collection.mutable.MutationTracker$", {
+ scm_MutationTracker$: 1,
+ O: 1
+});
+$c_scm_MutationTracker$.prototype.$classData = $d_scm_MutationTracker$;
+var $n_scm_MutationTracker$;
+function $m_scm_MutationTracker$() {
+ if ((!$n_scm_MutationTracker$)) {
+ $n_scm_MutationTracker$ = new $c_scm_MutationTracker$()
+ };
+ return $n_scm_MutationTracker$
+}
+/** @constructor */
+function $c_s_package$() {
+ this.s_package$__f_Seq = null;
+ this.s_package$__f_Iterator = null;
+ this.s_package$__f_List = null;
+ this.s_package$__f_Nil = null;
+ $n_s_package$ = this;
+ new $c_s_package$$anon$1();
+ $m_sc_Iterable$();
+ $m_sc_Iterable$();
+ this.s_package$__f_Seq = $m_sci_Seq$();
+ $m_sci_IndexedSeq$();
+ this.s_package$__f_Iterator = $m_sc_Iterator$();
+ this.s_package$__f_List = $m_sci_List$();
+ this.s_package$__f_Nil = $m_sci_Nil$();
+ $m_sci_LazyList$();
+ $m_sci_Vector$()
+}
+$c_s_package$.prototype = new $h_O();
+$c_s_package$.prototype.constructor = $c_s_package$;
+/** @constructor */
+function $h_s_package$() {
+ /**/
+}
+$h_s_package$.prototype = $c_s_package$.prototype;
+var $d_s_package$ = new $TypeData().initClass({
+ s_package$: 0
+}, false, "scala.package$", {
+ s_package$: 1,
+ O: 1
+});
+$c_s_package$.prototype.$classData = $d_s_package$;
+var $n_s_package$;
+function $m_s_package$() {
+ if ((!$n_s_package$)) {
+ $n_s_package$ = new $c_s_package$()
+ };
+ return $n_s_package$
+}
+/** @constructor */
+function $c_sr_BoxesRunTime$() {
+ /**/
+}
+$c_sr_BoxesRunTime$.prototype = new $h_O();
+$c_sr_BoxesRunTime$.prototype.constructor = $c_sr_BoxesRunTime$;
+/** @constructor */
+function $h_sr_BoxesRunTime$() {
+ /**/
+}
+$h_sr_BoxesRunTime$.prototype = $c_sr_BoxesRunTime$.prototype;
+$c_sr_BoxesRunTime$.prototype.equals__O__O__Z = (function(x, y) {
+ if ((x === y)) {
+ return true
+ } else if ($is_jl_Number(x)) {
+ var x2 = $as_jl_Number(x);
+ return this.equalsNumObject__jl_Number__O__Z(x2, y)
+ } else if ((x instanceof $Char)) {
+ var x3 = $as_jl_Character(x);
+ return this.equalsCharObject__jl_Character__O__Z(x3, y)
+ } else {
+ return ((x === null) ? (y === null) : $dp_equals__O__Z($n(x), y))
+ }
+});
+$c_sr_BoxesRunTime$.prototype.equalsNumObject__jl_Number__O__Z = (function(xn, y) {
+ if ($is_jl_Number(y)) {
+ var x2 = $as_jl_Number(y);
+ return this.equalsNumNum__jl_Number__jl_Number__Z(xn, x2)
+ } else if ((y instanceof $Char)) {
+ var x3 = $as_jl_Character(y);
+ if (((typeof xn) === "number")) {
+ var x2$1 = $uD(xn);
+ var this$1 = $uC($n(x3));
+ return (x2$1 === this$1)
+ } else if ((xn instanceof $c_RTLong)) {
+ var t = $uJ(xn);
+ var lo = t.RTLong__f_lo;
+ var hi = t.RTLong__f_hi;
+ var this$2 = $uC($n(x3));
+ var value = this$2;
+ var hi$1 = (value >> 31);
+ return ((lo === value) && (hi === hi$1))
+ } else {
+ return ((xn === null) ? (x3 === null) : $dp_equals__O__Z($n(xn), x3))
+ }
+ } else {
+ return ((xn === null) ? (y === null) : $dp_equals__O__Z($n(xn), y))
+ }
+});
+$c_sr_BoxesRunTime$.prototype.equalsNumNum__jl_Number__jl_Number__Z = (function(xn, yn) {
+ if (((typeof xn) === "number")) {
+ var x2 = $uD(xn);
+ if (((typeof yn) === "number")) {
+ var x2$2 = $uD(yn);
+ return (x2 === x2$2)
+ } else if ((yn instanceof $c_RTLong)) {
+ var t = $uJ(yn);
+ var lo = t.RTLong__f_lo;
+ var hi = t.RTLong__f_hi;
+ return (x2 === $m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toDouble__I__I__D(lo, hi))
+ } else if (false) {
+ var x4 = $as_s_math_ScalaNumber(yn);
+ return $n(x4).equals__O__Z(x2)
+ } else {
+ return false
+ }
+ } else if ((xn instanceof $c_RTLong)) {
+ var t$1 = $uJ(xn);
+ var lo$1 = t$1.RTLong__f_lo;
+ var hi$1 = t$1.RTLong__f_hi;
+ if ((yn instanceof $c_RTLong)) {
+ var t$2 = $uJ(yn);
+ var lo$2 = t$2.RTLong__f_lo;
+ var hi$2 = t$2.RTLong__f_hi;
+ return ((lo$1 === lo$2) && (hi$1 === hi$2))
+ } else if (((typeof yn) === "number")) {
+ var x3$3 = $uD(yn);
+ return ($m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toDouble__I__I__D(lo$1, hi$1) === x3$3)
+ } else if (false) {
+ var x4$2 = $as_s_math_ScalaNumber(yn);
+ return $n(x4$2).equals__O__Z(new $c_RTLong(lo$1, hi$1))
+ } else {
+ return false
+ }
+ } else {
+ return ((xn === null) ? (yn === null) : $dp_equals__O__Z($n(xn), yn))
+ }
+});
+$c_sr_BoxesRunTime$.prototype.equalsCharObject__jl_Character__O__Z = (function(xc, y) {
+ if ((y instanceof $Char)) {
+ var x2 = $as_jl_Character(y);
+ var this$1 = $uC($n(xc));
+ var this$2 = $uC($n(x2));
+ return (this$1 === this$2)
+ } else if ($is_jl_Number(y)) {
+ var x3 = $as_jl_Number(y);
+ if (((typeof x3) === "number")) {
+ var x2$1 = $uD(x3);
+ var this$3 = $uC($n(xc));
+ return (x2$1 === this$3)
+ } else if ((x3 instanceof $c_RTLong)) {
+ var t = $uJ(x3);
+ var lo = t.RTLong__f_lo;
+ var hi = t.RTLong__f_hi;
+ var this$4 = $uC($n(xc));
+ var value = this$4;
+ var hi$1 = (value >> 31);
+ return ((lo === value) && (hi === hi$1))
+ } else {
+ return ((x3 === null) ? (xc === null) : $dp_equals__O__Z($n(x3), xc))
+ }
+ } else {
+ return ((xc === null) && (y === null))
+ }
+});
+var $d_sr_BoxesRunTime$ = new $TypeData().initClass({
+ sr_BoxesRunTime$: 0
+}, false, "scala.runtime.BoxesRunTime$", {
+ sr_BoxesRunTime$: 1,
+ O: 1
+});
+$c_sr_BoxesRunTime$.prototype.$classData = $d_sr_BoxesRunTime$;
+var $n_sr_BoxesRunTime$;
+function $m_sr_BoxesRunTime$() {
+ if ((!$n_sr_BoxesRunTime$)) {
+ $n_sr_BoxesRunTime$ = new $c_sr_BoxesRunTime$()
+ };
+ return $n_sr_BoxesRunTime$
+}
+var $d_sr_Null$ = new $TypeData().initClass({
+ sr_Null$: 0
+}, false, "scala.runtime.Null$", {
+ sr_Null$: 1,
+ O: 1
+});
+/** @constructor */
+function $c_sr_ScalaRunTime$() {
+ /**/
+}
+$c_sr_ScalaRunTime$.prototype = new $h_O();
+$c_sr_ScalaRunTime$.prototype.constructor = $c_sr_ScalaRunTime$;
+/** @constructor */
+function $h_sr_ScalaRunTime$() {
+ /**/
+}
+$h_sr_ScalaRunTime$.prototype = $c_sr_ScalaRunTime$.prototype;
+$c_sr_ScalaRunTime$.prototype.array_apply__O__I__O = (function(xs, idx) {
+ if ((xs instanceof $ac_O)) {
+ var x2 = $asArrayOf_O(xs, 1);
+ return $n(x2).get(idx)
+ } else if ((xs instanceof $ac_I)) {
+ var x3 = $asArrayOf_I(xs, 1);
+ return $n(x3).get(idx)
+ } else if ((xs instanceof $ac_D)) {
+ var x4 = $asArrayOf_D(xs, 1);
+ return $n(x4).get(idx)
+ } else if ((xs instanceof $ac_J)) {
+ var x5 = $asArrayOf_J(xs, 1);
+ return $n(x5).get(idx)
+ } else if ((xs instanceof $ac_F)) {
+ var x6 = $asArrayOf_F(xs, 1);
+ return $n(x6).get(idx)
+ } else if ((xs instanceof $ac_C)) {
+ var x7 = $asArrayOf_C(xs, 1);
+ return $bC($n(x7).get(idx))
+ } else if ((xs instanceof $ac_B)) {
+ var x8 = $asArrayOf_B(xs, 1);
+ return $n(x8).get(idx)
+ } else if ((xs instanceof $ac_S)) {
+ var x9 = $asArrayOf_S(xs, 1);
+ return $n(x9).get(idx)
+ } else if ((xs instanceof $ac_Z)) {
+ var x10 = $asArrayOf_Z(xs, 1);
+ return $n(x10).get(idx)
+ } else if ((xs === null)) {
+ throw new $c_jl_NullPointerException()
+ } else {
+ throw new $c_s_MatchError(xs)
+ }
+});
+$c_sr_ScalaRunTime$.prototype.array_update__O__I__O__V = (function(xs, idx, value) {
+ if ((xs instanceof $ac_O)) {
+ var x2 = $asArrayOf_O(xs, 1);
+ $n(x2).set(idx, value)
+ } else if ((xs instanceof $ac_I)) {
+ var x3 = $asArrayOf_I(xs, 1);
+ $n(x3).set(idx, $uI(value))
+ } else if ((xs instanceof $ac_D)) {
+ var x4 = $asArrayOf_D(xs, 1);
+ $n(x4).set(idx, $uD(value))
+ } else if ((xs instanceof $ac_J)) {
+ var x5 = $asArrayOf_J(xs, 1);
+ $n(x5).set(idx, $uJ(value))
+ } else if ((xs instanceof $ac_F)) {
+ var x6 = $asArrayOf_F(xs, 1);
+ $n(x6).set(idx, $uF(value))
+ } else if ((xs instanceof $ac_C)) {
+ var x7 = $asArrayOf_C(xs, 1);
+ $n(x7).set(idx, $uC(value))
+ } else if ((xs instanceof $ac_B)) {
+ var x8 = $asArrayOf_B(xs, 1);
+ $n(x8).set(idx, $uB(value))
+ } else if ((xs instanceof $ac_S)) {
+ var x9 = $asArrayOf_S(xs, 1);
+ $n(x9).set(idx, $uS(value))
+ } else if ((xs instanceof $ac_Z)) {
+ var x10 = $asArrayOf_Z(xs, 1);
+ $n(x10).set(idx, $uZ(value))
+ } else if ((xs === null)) {
+ throw new $c_jl_NullPointerException()
+ } else {
+ throw new $c_s_MatchError(xs)
+ }
+});
+$c_sr_ScalaRunTime$.prototype._toString__s_Product__T = (function(x) {
+ var this$1 = $n($n(x).productIterator__sc_Iterator());
+ var start = ($n(x).productPrefix__T() + "(");
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, start, ",", ")")
+});
+$c_sr_ScalaRunTime$.prototype.genericWrapArray__O__sci_ArraySeq = (function(xs) {
+ return ((xs === null) ? null : $m_sci_ArraySeq$().unsafeWrapArray__O__sci_ArraySeq(xs))
+});
+$c_sr_ScalaRunTime$.prototype.wrapRefArray__AO__sci_ArraySeq = (function(xs) {
+ if ((xs === null)) {
+ return null
+ } else if (($n(xs).u.length === 0)) {
+ var this$3 = $m_sci_ArraySeq$();
+ $m_s_reflect_ManifestFactory$ObjectManifest$();
+ return $p_sci_ArraySeq$__emptyImpl__sci_ArraySeq$ofRef(this$3)
+ } else {
+ return new $c_sci_ArraySeq$ofRef(xs)
+ }
+});
+$c_sr_ScalaRunTime$.prototype.wrapIntArray__AI__sci_ArraySeq = (function(xs) {
+ return ((xs !== null) ? new $c_sci_ArraySeq$ofInt(xs) : null)
+});
+var $d_sr_ScalaRunTime$ = new $TypeData().initClass({
+ sr_ScalaRunTime$: 0
+}, false, "scala.runtime.ScalaRunTime$", {
+ sr_ScalaRunTime$: 1,
+ O: 1
+});
+$c_sr_ScalaRunTime$.prototype.$classData = $d_sr_ScalaRunTime$;
+var $n_sr_ScalaRunTime$;
+function $m_sr_ScalaRunTime$() {
+ if ((!$n_sr_ScalaRunTime$)) {
+ $n_sr_ScalaRunTime$ = new $c_sr_ScalaRunTime$()
+ };
+ return $n_sr_ScalaRunTime$
+}
+/** @constructor */
+function $c_sr_Statics$() {
+ /**/
+}
+$c_sr_Statics$.prototype = new $h_O();
+$c_sr_Statics$.prototype.constructor = $c_sr_Statics$;
+/** @constructor */
+function $h_sr_Statics$() {
+ /**/
+}
+$h_sr_Statics$.prototype = $c_sr_Statics$.prototype;
+$c_sr_Statics$.prototype.mix__I__I__I = (function(hash, data) {
+ var h = this.mixLast__I__I__I(hash, data);
+ var i = h;
+ h = ((i << 13) | ((i >>> 19) | 0));
+ return (((-430675100) + Math.imul(5, h)) | 0)
+});
+$c_sr_Statics$.prototype.mixLast__I__I__I = (function(hash, data) {
+ var k = data;
+ k = Math.imul((-862048943), k);
+ var i = k;
+ k = ((i << 15) | ((i >>> 17) | 0));
+ k = Math.imul(461845907, k);
+ return (hash ^ k)
+});
+$c_sr_Statics$.prototype.finalizeHash__I__I__I = (function(hash, length) {
+ return this.avalanche__I__I((hash ^ length))
+});
+$c_sr_Statics$.prototype.avalanche__I__I = (function(h0) {
+ var h = h0;
+ h = (h ^ ((h >>> 16) | 0));
+ h = Math.imul((-2048144789), h);
+ h = (h ^ ((h >>> 13) | 0));
+ h = Math.imul((-1028477387), h);
+ h = (h ^ ((h >>> 16) | 0));
+ return h
+});
+$c_sr_Statics$.prototype.longHash__J__I = (function(lv) {
+ var lo = lv.RTLong__f_lo;
+ var hi = lv.RTLong__f_hi;
+ return ((hi === (lo >> 31)) ? lo : (lo ^ hi))
+});
+$c_sr_Statics$.prototype.doubleHash__D__I = (function(dv) {
+ var iv = $doubleToInt(dv);
+ if ((iv === dv)) {
+ return iv
+ } else {
+ var this$1 = $m_RTLong$();
+ var lo = this$1.org$scalajs$linker$runtime$RuntimeLong$$fromDoubleImpl__D__I(dv);
+ var hi = this$1.RTLong$__f_org$scalajs$linker$runtime$RuntimeLong$$hiReturn;
+ return (($m_RTLong$().org$scalajs$linker$runtime$RuntimeLong$$toDouble__I__I__D(lo, hi) === dv) ? (lo ^ hi) : $m_jl_FloatingPointBits$().numberHashCode__D__I(dv))
+ }
+});
+$c_sr_Statics$.prototype.anyHash__O__I = (function(x) {
+ if ((x === null)) {
+ return 0
+ } else if (((typeof x) === "number")) {
+ var x3 = $uD(x);
+ return this.doubleHash__D__I(x3)
+ } else if ((x instanceof $c_RTLong)) {
+ var t = $uJ(x);
+ var lo = t.RTLong__f_lo;
+ var hi = t.RTLong__f_hi;
+ return this.longHash__J__I(new $c_RTLong(lo, hi))
+ } else {
+ return $dp_hashCode__I($n(x))
+ }
+});
+$c_sr_Statics$.prototype.ioobe__I__O = (function(n) {
+ throw $ct_jl_IndexOutOfBoundsException__T__(new $c_jl_IndexOutOfBoundsException(), ("" + n))
+});
+var $d_sr_Statics$ = new $TypeData().initClass({
+ sr_Statics$: 0
+}, false, "scala.runtime.Statics$", {
+ sr_Statics$: 1,
+ O: 1
+});
+$c_sr_Statics$.prototype.$classData = $d_sr_Statics$;
+var $n_sr_Statics$;
+function $m_sr_Statics$() {
+ if ((!$n_sr_Statics$)) {
+ $n_sr_Statics$ = new $c_sr_Statics$()
+ };
+ return $n_sr_Statics$
+}
+/** @constructor */
+function $c_sr_Statics$PFMarker$() {
+ /**/
+}
+$c_sr_Statics$PFMarker$.prototype = new $h_O();
+$c_sr_Statics$PFMarker$.prototype.constructor = $c_sr_Statics$PFMarker$;
+/** @constructor */
+function $h_sr_Statics$PFMarker$() {
+ /**/
+}
+$h_sr_Statics$PFMarker$.prototype = $c_sr_Statics$PFMarker$.prototype;
+var $d_sr_Statics$PFMarker$ = new $TypeData().initClass({
+ sr_Statics$PFMarker$: 0
+}, false, "scala.runtime.Statics$PFMarker$", {
+ sr_Statics$PFMarker$: 1,
+ O: 1
+});
+$c_sr_Statics$PFMarker$.prototype.$classData = $d_sr_Statics$PFMarker$;
+var $n_sr_Statics$PFMarker$;
+function $m_sr_Statics$PFMarker$() {
+ if ((!$n_sr_Statics$PFMarker$)) {
+ $n_sr_Statics$PFMarker$ = new $c_sr_Statics$PFMarker$()
+ };
+ return $n_sr_Statics$PFMarker$
+}
+/** @constructor */
+function $c_sjs_js_timers_package$() {
+ /**/
+}
+$c_sjs_js_timers_package$.prototype = new $h_O();
+$c_sjs_js_timers_package$.prototype.constructor = $c_sjs_js_timers_package$;
+/** @constructor */
+function $h_sjs_js_timers_package$() {
+ /**/
+}
+$h_sjs_js_timers_package$.prototype = $c_sjs_js_timers_package$.prototype;
+$c_sjs_js_timers_package$.prototype.setTimeout__D__F0__sjs_js_timers_SetTimeoutHandle = (function(interval, body) {
+ return setTimeout((() => {
+ var this$2 = $n(body);
+ this$2.apply__O()
+ }), interval)
+});
+var $d_sjs_js_timers_package$ = new $TypeData().initClass({
+ sjs_js_timers_package$: 0
+}, false, "scala.scalajs.js.timers.package$", {
+ sjs_js_timers_package$: 1,
+ O: 1
+});
+$c_sjs_js_timers_package$.prototype.$classData = $d_sjs_js_timers_package$;
+var $n_sjs_js_timers_package$;
+function $m_sjs_js_timers_package$() {
+ if ((!$n_sjs_js_timers_package$)) {
+ $n_sjs_js_timers_package$ = new $c_sjs_js_timers_package$()
+ };
+ return $n_sjs_js_timers_package$
+}
+/** @constructor */
+function $c_sjsr_Compat$() {
+ /**/
+}
+$c_sjsr_Compat$.prototype = new $h_O();
+$c_sjsr_Compat$.prototype.constructor = $c_sjsr_Compat$;
+/** @constructor */
+function $h_sjsr_Compat$() {
+ /**/
+}
+$h_sjsr_Compat$.prototype = $c_sjsr_Compat$.prototype;
+$c_sjsr_Compat$.prototype.toJSVarArgsImpl__sci_Seq__sjs_js_Array = (function(seq) {
+ if ((seq instanceof $c_sjsr_WrappedVarArgs)) {
+ var x2 = $as_sjsr_WrappedVarArgs(seq);
+ return $n(x2).sjsr_WrappedVarArgs__f_scala$scalajs$runtime$WrappedVarArgs$$array
+ } else {
+ var result = [];
+ $n(seq).foreach__F1__V(new $c_sjsr_AnonFunction1(((x$2) => $uI(result.push(x$2)))));
+ return result
+ }
+});
+var $d_sjsr_Compat$ = new $TypeData().initClass({
+ sjsr_Compat$: 0
+}, false, "scala.scalajs.runtime.Compat$", {
+ sjsr_Compat$: 1,
+ O: 1
+});
+$c_sjsr_Compat$.prototype.$classData = $d_sjsr_Compat$;
+var $n_sjsr_Compat$;
+function $m_sjsr_Compat$() {
+ if ((!$n_sjsr_Compat$)) {
+ $n_sjsr_Compat$ = new $c_sjsr_Compat$()
+ };
+ return $n_sjsr_Compat$
+}
+/** @constructor */
+function $c_s_util_CommandLineParser$() {
+ /**/
+}
+$c_s_util_CommandLineParser$.prototype = new $h_O();
+$c_s_util_CommandLineParser$.prototype.constructor = $c_s_util_CommandLineParser$;
+/** @constructor */
+function $h_s_util_CommandLineParser$() {
+ /**/
+}
+$h_s_util_CommandLineParser$.prototype = $c_s_util_CommandLineParser$.prototype;
+$c_s_util_CommandLineParser$.prototype.showError__s_util_CommandLineParser$ParseError__V = (function(err) {
+ var where = (($n(err).idx__I() === 0) ? "" : (($n(err).idx__I() === 1) ? " after first argument" : ((" after " + $n(err).idx__I()) + " arguments")));
+ var x = ((("Illegal command line" + where) + ": ") + $n(err).msg__T());
+ var this$2 = $m_s_Console$();
+ var this$3 = $n(this$2.out__Ljava_io_PrintStream());
+ this$3.java$lang$JSConsoleBasedPrintStream$$printString__T__V((x + "\n"))
+});
+var $d_s_util_CommandLineParser$ = new $TypeData().initClass({
+ s_util_CommandLineParser$: 0
+}, false, "scala.util.CommandLineParser$", {
+ s_util_CommandLineParser$: 1,
+ O: 1
+});
+$c_s_util_CommandLineParser$.prototype.$classData = $d_s_util_CommandLineParser$;
+var $n_s_util_CommandLineParser$;
+function $m_s_util_CommandLineParser$() {
+ if ((!$n_s_util_CommandLineParser$)) {
+ $n_s_util_CommandLineParser$ = new $c_s_util_CommandLineParser$()
+ };
+ return $n_s_util_CommandLineParser$
+}
+/** @constructor */
+function $c_s_util_DynamicVariable(init) {
+ this.s_util_DynamicVariable__f_v = null;
+ this.s_util_DynamicVariable__f_v = init
+}
+$c_s_util_DynamicVariable.prototype = new $h_O();
+$c_s_util_DynamicVariable.prototype.constructor = $c_s_util_DynamicVariable;
+/** @constructor */
+function $h_s_util_DynamicVariable() {
+ /**/
+}
+$h_s_util_DynamicVariable.prototype = $c_s_util_DynamicVariable.prototype;
+$c_s_util_DynamicVariable.prototype.toString__T = (function() {
+ return (("DynamicVariable(" + this.s_util_DynamicVariable__f_v) + ")")
+});
+var $d_s_util_DynamicVariable = new $TypeData().initClass({
+ s_util_DynamicVariable: 0
+}, false, "scala.util.DynamicVariable", {
+ s_util_DynamicVariable: 1,
+ O: 1
+});
+$c_s_util_DynamicVariable.prototype.$classData = $d_s_util_DynamicVariable;
+/** @constructor */
+function $c_s_util_control_NonFatal$() {
+ /**/
+}
+$c_s_util_control_NonFatal$.prototype = new $h_O();
+$c_s_util_control_NonFatal$.prototype.constructor = $c_s_util_control_NonFatal$;
+/** @constructor */
+function $h_s_util_control_NonFatal$() {
+ /**/
+}
+$h_s_util_control_NonFatal$.prototype = $c_s_util_control_NonFatal$.prototype;
+$c_s_util_control_NonFatal$.prototype.apply__jl_Throwable__Z = (function(t) {
+ return (!((t instanceof $c_jl_VirtualMachineError) || (false || (false || (false || false)))))
+});
+$c_s_util_control_NonFatal$.prototype.unapply__jl_Throwable__s_Option = (function(t) {
+ return (this.apply__jl_Throwable__Z(t) ? new $c_s_Some(t) : $m_s_None$())
+});
+var $d_s_util_control_NonFatal$ = new $TypeData().initClass({
+ s_util_control_NonFatal$: 0
+}, false, "scala.util.control.NonFatal$", {
+ s_util_control_NonFatal$: 1,
+ O: 1
+});
+$c_s_util_control_NonFatal$.prototype.$classData = $d_s_util_control_NonFatal$;
+var $n_s_util_control_NonFatal$;
+function $m_s_util_control_NonFatal$() {
+ if ((!$n_s_util_control_NonFatal$)) {
+ $n_s_util_control_NonFatal$ = new $c_s_util_control_NonFatal$()
+ };
+ return $n_s_util_control_NonFatal$
+}
+/** @constructor */
+function $c_s_util_hashing_MurmurHash3() {
+ /**/
+}
+$c_s_util_hashing_MurmurHash3.prototype = new $h_O();
+$c_s_util_hashing_MurmurHash3.prototype.constructor = $c_s_util_hashing_MurmurHash3;
+/** @constructor */
+function $h_s_util_hashing_MurmurHash3() {
+ /**/
+}
+$h_s_util_hashing_MurmurHash3.prototype = $c_s_util_hashing_MurmurHash3.prototype;
+$c_s_util_hashing_MurmurHash3.prototype.mix__I__I__I = (function(hash, data) {
+ var h = this.mixLast__I__I__I(hash, data);
+ var i = h;
+ h = ((i << 13) | ((i >>> 19) | 0));
+ return (((-430675100) + Math.imul(5, h)) | 0)
+});
+$c_s_util_hashing_MurmurHash3.prototype.mixLast__I__I__I = (function(hash, data) {
+ var k = data;
+ k = Math.imul((-862048943), k);
+ var i = k;
+ k = ((i << 15) | ((i >>> 17) | 0));
+ k = Math.imul(461845907, k);
+ return (hash ^ k)
+});
+$c_s_util_hashing_MurmurHash3.prototype.finalizeHash__I__I__I = (function(hash, length) {
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I((hash ^ length))
+});
+$c_s_util_hashing_MurmurHash3.prototype.scala$util$hashing$MurmurHash3$$avalanche__I__I = (function(hash) {
+ var h = hash;
+ h = (h ^ ((h >>> 16) | 0));
+ h = Math.imul((-2048144789), h);
+ h = (h ^ ((h >>> 13) | 0));
+ h = Math.imul((-1028477387), h);
+ h = (h ^ ((h >>> 16) | 0));
+ return h
+});
+$c_s_util_hashing_MurmurHash3.prototype.tuple2Hash__I__I__I__I = (function(x, y, seed) {
+ var h = seed;
+ h = this.mix__I__I__I(h, $f_T__hashCode__I("Tuple2"));
+ h = this.mix__I__I__I(h, x);
+ h = this.mix__I__I__I(h, y);
+ return this.finalizeHash__I__I__I(h, 2)
+});
+$c_s_util_hashing_MurmurHash3.prototype.productHash__s_Product__I__Z__I = (function(x, seed, ignorePrefix) {
+ var arr = $n(x).productArity__I();
+ if ((arr === 0)) {
+ return $f_T__hashCode__I($n($n(x).productPrefix__T()))
+ } else {
+ var h = seed;
+ if ((!ignorePrefix)) {
+ h = this.mix__I__I__I(h, $f_T__hashCode__I($n($n(x).productPrefix__T())))
+ };
+ var i = 0;
+ while ((i < arr)) {
+ var $$x1 = h;
+ var x$1 = $n(x).productElement__I__O(i);
+ h = this.mix__I__I__I($$x1, $m_sr_Statics$().anyHash__O__I(x$1));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, arr)
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.unorderedHash__sc_IterableOnce__I__I = (function(xs, seed) {
+ var a = 0;
+ var b = 0;
+ var n = 0;
+ var c = 1;
+ var iterator = $n(xs).iterator__sc_Iterator();
+ while ($n(iterator).hasNext__Z()) {
+ var x = $n(iterator).next__O();
+ var h = $m_sr_Statics$().anyHash__O__I(x);
+ a = ((a + h) | 0);
+ b = (b ^ h);
+ c = Math.imul(c, (1 | h));
+ n = ((1 + n) | 0)
+ };
+ var h$2 = seed;
+ h$2 = this.mix__I__I__I(h$2, a);
+ h$2 = this.mix__I__I__I(h$2, b);
+ h$2 = this.mixLast__I__I__I(h$2, c);
+ return this.finalizeHash__I__I__I(h$2, n)
+});
+$c_s_util_hashing_MurmurHash3.prototype.orderedHash__sc_IterableOnce__I__I = (function(xs, seed) {
+ var it = $n(xs).iterator__sc_Iterator();
+ var h = seed;
+ if ((!$n(it).hasNext__Z())) {
+ return this.finalizeHash__I__I__I(h, 0)
+ };
+ var x0 = $n(it).next__O();
+ if ((!$n(it).hasNext__Z())) {
+ return this.finalizeHash__I__I__I(this.mix__I__I__I(h, $m_sr_Statics$().anyHash__O__I(x0)), 1)
+ };
+ var x1 = $n(it).next__O();
+ var initial = $m_sr_Statics$().anyHash__O__I(x0);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var prev = $m_sr_Statics$().anyHash__O__I(x1);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ($n(it).hasNext__Z()) {
+ h = this.mix__I__I__I(h, prev);
+ var x = $n(it).next__O();
+ var hash = $m_sr_Statics$().anyHash__O__I(x);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ($n(it).hasNext__Z()) {
+ var $$x1 = h;
+ var x$1 = $n(it).next__O();
+ h = this.mix__I__I__I($$x1, $m_sr_Statics$().anyHash__O__I(x$1));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, i)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash__O__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $m_jl_reflect_Array$().getLength__O__I(a);
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ var $$x1 = h;
+ var x = $m_sr_ScalaRunTime$().array_apply__O__I__O(a, 0);
+ return this.finalizeHash__I__I__I(this.mix__I__I__I($$x1, $m_sr_Statics$().anyHash__O__I(x)), 1);
+ break
+ }
+ default: {
+ var x$1 = $m_sr_ScalaRunTime$().array_apply__O__I__O(a, 0);
+ var initial = $m_sr_Statics$().anyHash__O__I(x$1);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var x$2 = $m_sr_ScalaRunTime$().array_apply__O__I__O(a, 1);
+ var prev = $m_sr_Statics$().anyHash__O__I(x$2);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var x$3 = $m_sr_ScalaRunTime$().array_apply__O__I__O(a, i);
+ var hash = $m_sr_Statics$().anyHash__O__I(x$3);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ var $$x2 = h;
+ var x$4 = $m_sr_ScalaRunTime$().array_apply__O__I__O(a, i);
+ h = this.mix__I__I__I($$x2, $m_sr_Statics$().anyHash__O__I(x$4));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.rangeHash__I__I__I__I__I = (function(start, step, last, seed) {
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(this.mix__I__I__I(seed, start), step), last))
+});
+$c_s_util_hashing_MurmurHash3.prototype.indexedSeqHash__sc_IndexedSeq__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).length__I();
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ var $$x1 = h;
+ var x = $n(a).apply__I__O(0);
+ return this.finalizeHash__I__I__I(this.mix__I__I__I($$x1, $m_sr_Statics$().anyHash__O__I(x)), 1);
+ break
+ }
+ default: {
+ var x$1 = $n(a).apply__I__O(0);
+ var initial = $m_sr_Statics$().anyHash__O__I(x$1);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var x$2 = $n(a).apply__I__O(1);
+ var prev = $m_sr_Statics$().anyHash__O__I(x$2);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var x$3 = $n(a).apply__I__O(i);
+ var hash = $m_sr_Statics$().anyHash__O__I(x$3);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ var $$x2 = h;
+ var x$4 = $n(a).apply__I__O(i);
+ h = this.mix__I__I__I($$x2, $m_sr_Statics$().anyHash__O__I(x$4));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.listHash__sci_List__I__I = (function(xs, seed) {
+ var n = 0;
+ var h = seed;
+ var rangeState = 0;
+ var rangeDiff = 0;
+ var prev = 0;
+ var initial = 0;
+ var elems = xs;
+ while ((!$n(elems).isEmpty__Z())) {
+ var head = $n(elems).head__O();
+ var tail = $as_sci_List($n(elems).tail__O());
+ var hash = $m_sr_Statics$().anyHash__O__I(head);
+ h = this.mix__I__I__I(h, hash);
+ var x1 = rangeState;
+ switch (x1) {
+ case 0: {
+ initial = hash;
+ rangeState = 1;
+ break
+ }
+ case 1: {
+ rangeDiff = ((hash - prev) | 0);
+ rangeState = 2;
+ break
+ }
+ case 2: {
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ rangeState = 3
+ };
+ break
+ }
+ };
+ prev = hash;
+ n = ((1 + n) | 0);
+ elems = tail
+ };
+ return ((rangeState === 2) ? this.rangeHash__I__I__I__I__I(initial, rangeDiff, prev, seed) : this.finalizeHash__I__I__I(h, n))
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mZc$sp__AZ__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ return this.finalizeHash__I__I__I(this.mix__I__I__I(h, ($n(a).get(0) ? 1231 : 1237)), 1);
+ break
+ }
+ default: {
+ var initial = ($n(a).get(0) ? 1231 : 1237);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var prev = ($n(a).get(1) ? 1231 : 1237);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var hash = ($n(a).get(i) ? 1231 : 1237);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, ($n(a).get(i) ? 1231 : 1237));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mBc$sp__AB__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ return this.finalizeHash__I__I__I(this.mix__I__I__I(h, $n(a).get(0)), 1);
+ break
+ }
+ default: {
+ var initial = $n(a).get(0);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var prev = $n(a).get(1);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var hash = $n(a).get(i);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, $n(a).get(i));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mCc$sp__AC__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ return this.finalizeHash__I__I__I(this.mix__I__I__I(h, $n(a).get(0)), 1);
+ break
+ }
+ default: {
+ var initial = $n(a).get(0);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var prev = $n(a).get(1);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var hash = $n(a).get(i);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, $n(a).get(i));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mDc$sp__AD__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ var $$x1 = h;
+ var dv = $n(a).get(0);
+ return this.finalizeHash__I__I__I(this.mix__I__I__I($$x1, $m_sr_Statics$().doubleHash__D__I(dv)), 1);
+ break
+ }
+ default: {
+ var dv$1 = $n(a).get(0);
+ var initial = $m_sr_Statics$().doubleHash__D__I(dv$1);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var dv$2 = $n(a).get(1);
+ var prev = $m_sr_Statics$().doubleHash__D__I(dv$2);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var dv$3 = $n(a).get(i);
+ var hash = $m_sr_Statics$().doubleHash__D__I(dv$3);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ var $$x2 = h;
+ var dv$4 = $n(a).get(i);
+ h = this.mix__I__I__I($$x2, $m_sr_Statics$().doubleHash__D__I(dv$4));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mFc$sp__AF__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ var $$x1 = h;
+ var fv = $n(a).get(0);
+ var this$1 = $m_sr_Statics$();
+ return this.finalizeHash__I__I__I(this.mix__I__I__I($$x1, this$1.doubleHash__D__I(fv)), 1);
+ break
+ }
+ default: {
+ var fv$1 = $n(a).get(0);
+ var this$2 = $m_sr_Statics$();
+ var initial = this$2.doubleHash__D__I(fv$1);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var fv$2 = $n(a).get(1);
+ var this$3 = $m_sr_Statics$();
+ var prev = this$3.doubleHash__D__I(fv$2);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var fv$3 = $n(a).get(i);
+ var this$4 = $m_sr_Statics$();
+ var hash = this$4.doubleHash__D__I(fv$3);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ var $$x2 = h;
+ var fv$4 = $n(a).get(i);
+ var this$5 = $m_sr_Statics$();
+ h = this.mix__I__I__I($$x2, this$5.doubleHash__D__I(fv$4));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mIc$sp__AI__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ return this.finalizeHash__I__I__I(this.mix__I__I__I(h, $n(a).get(0)), 1);
+ break
+ }
+ default: {
+ var initial = $n(a).get(0);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var prev = $n(a).get(1);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var hash = $n(a).get(i);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, $n(a).get(i));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mJc$sp__AJ__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ var $$x1 = h;
+ var t = $n(a).get(0);
+ var lo = t.RTLong__f_lo;
+ var hi = t.RTLong__f_hi;
+ return this.finalizeHash__I__I__I(this.mix__I__I__I($$x1, $m_sr_Statics$().longHash__J__I(new $c_RTLong(lo, hi))), 1);
+ break
+ }
+ default: {
+ var t$1 = $n(a).get(0);
+ var lo$1 = t$1.RTLong__f_lo;
+ var hi$1 = t$1.RTLong__f_hi;
+ var initial = $m_sr_Statics$().longHash__J__I(new $c_RTLong(lo$1, hi$1));
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var t$2 = $n(a).get(1);
+ var lo$2 = t$2.RTLong__f_lo;
+ var hi$2 = t$2.RTLong__f_hi;
+ var prev = $m_sr_Statics$().longHash__J__I(new $c_RTLong(lo$2, hi$2));
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var t$3 = $n(a).get(i);
+ var lo$3 = t$3.RTLong__f_lo;
+ var hi$3 = t$3.RTLong__f_hi;
+ var hash = $m_sr_Statics$().longHash__J__I(new $c_RTLong(lo$3, hi$3));
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ var $$x2 = h;
+ var t$4 = $n(a).get(i);
+ var lo$4 = t$4.RTLong__f_lo;
+ var hi$4 = t$4.RTLong__f_hi;
+ h = this.mix__I__I__I($$x2, $m_sr_Statics$().longHash__J__I(new $c_RTLong(lo$4, hi$4)));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mSc$sp__AS__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ return this.finalizeHash__I__I__I(this.mix__I__I__I(h, $n(a).get(0)), 1);
+ break
+ }
+ default: {
+ var initial = $n(a).get(0);
+ h = this.mix__I__I__I(h, initial);
+ var h0 = h;
+ var prev = $n(a).get(1);
+ var rangeDiff = ((prev - initial) | 0);
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ var hash = $n(a).get(i);
+ if ((rangeDiff !== ((hash - prev) | 0))) {
+ h = this.mix__I__I__I(h, hash);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, $n(a).get(i));
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = hash;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+$c_s_util_hashing_MurmurHash3.prototype.arrayHash$mVc$sp__Ajl_Void__I__I = (function(a, seed) {
+ var h = seed;
+ var l = $n(a).u.length;
+ switch (l) {
+ case 0: {
+ return this.finalizeHash__I__I__I(h, 0);
+ break
+ }
+ case 1: {
+ return this.finalizeHash__I__I__I(this.mix__I__I__I(h, 0), 1);
+ break
+ }
+ default: {
+ h = this.mix__I__I__I(h, 0);
+ var h0 = h;
+ var prev = 0;
+ var rangeDiff = prev;
+ var i = 2;
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, prev);
+ if ((rangeDiff !== ((-prev) | 0))) {
+ h = this.mix__I__I__I(h, 0);
+ i = ((1 + i) | 0);
+ while ((i < l)) {
+ h = this.mix__I__I__I(h, 0);
+ i = ((1 + i) | 0)
+ };
+ return this.finalizeHash__I__I__I(h, l)
+ };
+ prev = 0;
+ i = ((1 + i) | 0)
+ };
+ return this.scala$util$hashing$MurmurHash3$$avalanche__I__I(this.mix__I__I__I(this.mix__I__I__I(h0, rangeDiff), prev))
+ }
+ }
+});
+/** @constructor */
+function $c_Lscatan_Main$package$() {
+ this.Lscatan_Main$package$__f_Application = null;
+ $n_Lscatan_Main$package$ = this;
+ var game = $m_s_None$();
+ var initialState = new $c_Lscatan_model_ApplicationState(game);
+ var $$x10 = $m_s_Predef$();
+ var xs = $m_Lscatan_Pages$().values__ALscatan_Pages();
+ $m_sc_ArrayOps$();
+ var f = ((p) => {
+ var p$1 = $as_Lscatan_Pages(p);
+ var y = $n(p$1).Lscatan_Pages__f_pageFactory;
+ return new $c_T2(p$1, y)
+ });
+ var len = $n(xs).u.length;
+ var ys = new ($d_T2.getArrayOf().constr)(len);
+ if ((len > 0)) {
+ var i = 0;
+ if ((xs !== null)) {
+ while ((i < len)) {
+ var $$x1 = i;
+ var arg1 = $n(xs).get(i);
+ ys.set($$x1, f(arg1));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_I)) {
+ var x3 = $asArrayOf_I(xs, 1);
+ while ((i < len)) {
+ var $$x2 = i;
+ var arg1$1 = $n(x3).get(i);
+ ys.set($$x2, f(arg1$1));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_D)) {
+ var x4 = $asArrayOf_D(xs, 1);
+ while ((i < len)) {
+ var $$x3 = i;
+ var arg1$2 = $n(x4).get(i);
+ ys.set($$x3, f(arg1$2));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_J)) {
+ var x5 = $asArrayOf_J(xs, 1);
+ while ((i < len)) {
+ var $$x4 = i;
+ var t = $n(x5).get(i);
+ var lo = t.RTLong__f_lo;
+ var hi = t.RTLong__f_hi;
+ ys.set($$x4, f(new $c_RTLong(lo, hi)));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_F)) {
+ var x6 = $asArrayOf_F(xs, 1);
+ while ((i < len)) {
+ var $$x5 = i;
+ var arg1$3 = $n(x6).get(i);
+ ys.set($$x5, f(arg1$3));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_C)) {
+ var x7 = $asArrayOf_C(xs, 1);
+ while ((i < len)) {
+ var $$x6 = i;
+ var arg1$4 = $n(x7).get(i);
+ ys.set($$x6, f($bC(arg1$4)));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_B)) {
+ var x8 = $asArrayOf_B(xs, 1);
+ while ((i < len)) {
+ var $$x7 = i;
+ var arg1$5 = $n(x8).get(i);
+ ys.set($$x7, f(arg1$5));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_S)) {
+ var x9 = $asArrayOf_S(xs, 1);
+ while ((i < len)) {
+ var $$x8 = i;
+ var arg1$6 = $n(x9).get(i);
+ ys.set($$x8, f(arg1$6));
+ i = ((1 + i) | 0)
+ }
+ } else if ((xs instanceof $ac_Z)) {
+ var x10 = $asArrayOf_Z(xs, 1);
+ while ((i < len)) {
+ var $$x9 = i;
+ var arg1$7 = $n(x10).get(i);
+ ys.set($$x9, f(arg1$7));
+ i = ((1 + i) | 0)
+ }
+ } else {
+ throw new $c_s_MatchError(xs)
+ }
+ };
+ var this$11 = $n($n($$x10).wrapRefArray__AO__scm_ArraySeq$ofRef(ys));
+ var this$10 = $m_s_$less$colon$less$();
+ var pagesFactories = $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$11);
+ this.Lscatan_Main$package$__f_Application = new $c_Lscatan_lib_mvc_application_NavigableApplication$$anon$1(initialState, pagesFactories)
+}
+$c_Lscatan_Main$package$.prototype = new $h_O();
+$c_Lscatan_Main$package$.prototype.constructor = $c_Lscatan_Main$package$;
+/** @constructor */
+function $h_Lscatan_Main$package$() {
+ /**/
+}
+$h_Lscatan_Main$package$.prototype = $c_Lscatan_Main$package$.prototype;
+var $d_Lscatan_Main$package$ = new $TypeData().initClass({
+ Lscatan_Main$package$: 0
+}, false, "scatan.Main$package$", {
+ Lscatan_Main$package$: 1,
+ O: 1
+});
+$c_Lscatan_Main$package$.prototype.$classData = $d_Lscatan_Main$package$;
+var $n_Lscatan_Main$package$;
+function $m_Lscatan_Main$package$() {
+ if ((!$n_Lscatan_Main$package$)) {
+ $n_Lscatan_Main$package$ = new $c_Lscatan_Main$package$()
+ };
+ return $n_Lscatan_Main$package$
+}
+/** @constructor */
+function $c_Lscatan_Pages$package$() {
+ this.Lscatan_Pages$package$__f_root$lzy1 = null;
+ this.Lscatan_Pages$package$__f_rootbitmap$1 = false
+}
+$c_Lscatan_Pages$package$.prototype = new $h_O();
+$c_Lscatan_Pages$package$.prototype.constructor = $c_Lscatan_Pages$package$;
+/** @constructor */
+function $h_Lscatan_Pages$package$() {
+ /**/
+}
+$h_Lscatan_Pages$package$.prototype = $c_Lscatan_Pages$package$.prototype;
+$c_Lscatan_Pages$package$.prototype.root__T = (function() {
+ if ((!this.Lscatan_Pages$package$__f_rootbitmap$1)) {
+ this.Lscatan_Pages$package$__f_root$lzy1 = "root";
+ this.Lscatan_Pages$package$__f_rootbitmap$1 = true
+ };
+ return this.Lscatan_Pages$package$__f_root$lzy1
+});
+var $d_Lscatan_Pages$package$ = new $TypeData().initClass({
+ Lscatan_Pages$package$: 0
+}, false, "scatan.Pages$package$", {
+ Lscatan_Pages$package$: 1,
+ O: 1
+});
+$c_Lscatan_Pages$package$.prototype.$classData = $d_Lscatan_Pages$package$;
+var $n_Lscatan_Pages$package$;
+function $m_Lscatan_Pages$package$() {
+ if ((!$n_Lscatan_Pages$package$)) {
+ $n_Lscatan_Pages$package$ = new $c_Lscatan_Pages$package$()
+ };
+ return $n_Lscatan_Pages$package$
+}
+function $is_Lscatan_lib_game_Turn(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_lib_game_Turn)))
+}
+function $as_Lscatan_lib_game_Turn(obj) {
+ return (($is_Lscatan_lib_game_Turn(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.lib.game.Turn"))
+}
+function $isArrayOf_Lscatan_lib_game_Turn(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_lib_game_Turn)))
+}
+function $asArrayOf_Lscatan_lib_game_Turn(obj, depth) {
+ return (($isArrayOf_Lscatan_lib_game_Turn(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.lib.game.Turn;", depth))
+}
+function $p_Lscatan_lib_game_dsl_PhaseDSLOps$__given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzyINIT1$1__Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext__sr_LazyRef__Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext($thiz, phaseDSLContext$1, given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1) {
+ if ((given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1 === null)) {
+ throw new $c_jl_NullPointerException()
+ };
+ if ($n(given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).sr_LazyRef__f__initialized) {
+ var $$x1 = $n(given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).sr_LazyRef__f__value
+ } else {
+ var $$x2 = $n(given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1);
+ var phase = $n(phaseDSLContext$1).Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext__f_phase;
+ var dsl = $n(phaseDSLContext$1).Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext__f_dsl;
+ var $$x1 = $n($$x2).initialize__O__O(new $c_Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext(phase, dsl))
+ };
+ return $as_Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext($$x1)
+}
+function $p_Lscatan_lib_game_dsl_PhaseDSLOps$__given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$1__Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext__sr_LazyRef__Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext($thiz, phaseDSLContext$2, given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2) {
+ return $as_Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext(($n(given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2).sr_LazyRef__f__initialized ? $n(given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2).sr_LazyRef__f__value : $p_Lscatan_lib_game_dsl_PhaseDSLOps$__given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzyINIT1$1__Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext__sr_LazyRef__Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext($thiz, phaseDSLContext$2, given_TurnDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2)))
+}
+/** @constructor */
+function $c_Lscatan_lib_game_dsl_PhaseDSLOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_dsl_PhaseDSLOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_dsl_PhaseDSLOps$.prototype.constructor = $c_Lscatan_lib_game_dsl_PhaseDSLOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_dsl_PhaseDSLOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_dsl_PhaseDSLOps$.prototype = $c_Lscatan_lib_game_dsl_PhaseDSLOps$.prototype;
+$c_Lscatan_lib_game_dsl_PhaseDSLOps$.prototype.When__O__sci_Seq__Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext__V = (function(step, init, phaseDSLContext) {
+ var $$x2 = $n(phaseDSLContext);
+ var $$x1 = $n(phaseDSLContext).Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext__f_phase;
+ var this$2 = $n(init);
+ var this$1 = $m_s_$less$colon$less$();
+ $n($$x2).addStepToPhase__O__O__sci_Map__V($$x1, step, $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$2))
+});
+var $d_Lscatan_lib_game_dsl_PhaseDSLOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_dsl_PhaseDSLOps$: 0
+}, false, "scatan.lib.game.dsl.PhaseDSLOps$", {
+ Lscatan_lib_game_dsl_PhaseDSLOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_dsl_PhaseDSLOps$.prototype.$classData = $d_Lscatan_lib_game_dsl_PhaseDSLOps$;
+var $n_Lscatan_lib_game_dsl_PhaseDSLOps$;
+function $m_Lscatan_lib_game_dsl_PhaseDSLOps$() {
+ if ((!$n_Lscatan_lib_game_dsl_PhaseDSLOps$)) {
+ $n_Lscatan_lib_game_dsl_PhaseDSLOps$ = new $c_Lscatan_lib_game_dsl_PhaseDSLOps$()
+ };
+ return $n_Lscatan_lib_game_dsl_PhaseDSLOps$
+}
+function $p_Lscatan_lib_game_dsl_PhasesDSLOps$__context$lzyINIT1$1__Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext__O__sr_LazyRef__Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext($thiz, phasesDSLContext$1, phase$1, context$lzy1$1) {
+ if ((context$lzy1$1 === null)) {
+ throw new $c_jl_NullPointerException()
+ };
+ if ($n(context$lzy1$1).sr_LazyRef__f__initialized) {
+ var $$x1 = $n(context$lzy1$1).sr_LazyRef__f__value
+ } else {
+ var $$x2 = $n(context$lzy1$1);
+ var dsl = $n(phasesDSLContext$1).Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext__f_dsl;
+ var $$x1 = $n($$x2).initialize__O__O(new $c_Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext(phase$1, dsl))
+ };
+ return $as_Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext($$x1)
+}
+function $p_Lscatan_lib_game_dsl_PhasesDSLOps$__context$1__Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext__O__sr_LazyRef__Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext($thiz, phasesDSLContext$2, phase$2, context$lzy1$2) {
+ return $as_Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext(($n(context$lzy1$2).sr_LazyRef__f__initialized ? $n(context$lzy1$2).sr_LazyRef__f__value : $p_Lscatan_lib_game_dsl_PhasesDSLOps$__context$lzyINIT1$1__Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext__O__sr_LazyRef__Lscatan_lib_game_dsl_PhaseDSLOps$PhaseDSLContext($thiz, phasesDSLContext$2, phase$2, context$lzy1$2)))
+}
+/** @constructor */
+function $c_Lscatan_lib_game_dsl_PhasesDSLOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_dsl_PhasesDSLOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_dsl_PhasesDSLOps$.prototype.constructor = $c_Lscatan_lib_game_dsl_PhasesDSLOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_dsl_PhasesDSLOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_dsl_PhasesDSLOps$.prototype = $c_Lscatan_lib_game_dsl_PhasesDSLOps$.prototype;
+var $d_Lscatan_lib_game_dsl_PhasesDSLOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_dsl_PhasesDSLOps$: 0
+}, false, "scatan.lib.game.dsl.PhasesDSLOps$", {
+ Lscatan_lib_game_dsl_PhasesDSLOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_dsl_PhasesDSLOps$.prototype.$classData = $d_Lscatan_lib_game_dsl_PhasesDSLOps$;
+var $n_Lscatan_lib_game_dsl_PhasesDSLOps$;
+function $m_Lscatan_lib_game_dsl_PhasesDSLOps$() {
+ if ((!$n_Lscatan_lib_game_dsl_PhasesDSLOps$)) {
+ $n_Lscatan_lib_game_dsl_PhasesDSLOps$ = new $c_Lscatan_lib_game_dsl_PhasesDSLOps$()
+ };
+ return $n_Lscatan_lib_game_dsl_PhasesDSLOps$
+}
+/** @constructor */
+function $c_Lscatan_lib_game_dsl_PlayersDSLOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_dsl_PlayersDSLOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_dsl_PlayersDSLOps$.prototype.constructor = $c_Lscatan_lib_game_dsl_PlayersDSLOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_dsl_PlayersDSLOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_dsl_PlayersDSLOps$.prototype = $c_Lscatan_lib_game_dsl_PlayersDSLOps$.prototype;
+$c_Lscatan_lib_game_dsl_PlayersDSLOps$.prototype.canBe__sci_Set__Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext__V = (function(sizes, playersDSLContext) {
+ var $$x1 = $n($n(playersDSLContext).Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext__f_dsl);
+ var rules = $n($n(playersDSLContext).Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules;
+ $n(rules);
+ var this$2 = $n(rules);
+ var startingStateFactory = this$2.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$3 = $n(rules);
+ var startingPhase = this$3.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$4 = $n(rules);
+ var startingSteps = this$4.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$5 = $n(rules);
+ var actions = this$5.Lscatan_lib_game_Rules__f_actions;
+ var this$6 = $n(rules);
+ var phaseTurnIteratorFactories = this$6.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$7 = $n(rules);
+ var nextPhase = this$7.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$8 = $n(rules);
+ var endingSteps = this$8.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$9 = $n(rules);
+ var winnerFunction = this$9.Lscatan_lib_game_Rules__f_winnerFunction;
+ var this$10 = $n(rules);
+ var initialAction = this$10.Lscatan_lib_game_Rules__f_initialAction;
+ $$x1.Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = new $c_Lscatan_lib_game_Rules(startingStateFactory, startingPhase, startingSteps, actions, sizes, phaseTurnIteratorFactories, nextPhase, endingSteps, winnerFunction, initialAction)
+});
+var $d_Lscatan_lib_game_dsl_PlayersDSLOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_dsl_PlayersDSLOps$: 0
+}, false, "scatan.lib.game.dsl.PlayersDSLOps$", {
+ Lscatan_lib_game_dsl_PlayersDSLOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_dsl_PlayersDSLOps$.prototype.$classData = $d_Lscatan_lib_game_dsl_PlayersDSLOps$;
+var $n_Lscatan_lib_game_dsl_PlayersDSLOps$;
+function $m_Lscatan_lib_game_dsl_PlayersDSLOps$() {
+ if ((!$n_Lscatan_lib_game_dsl_PlayersDSLOps$)) {
+ $n_Lscatan_lib_game_dsl_PlayersDSLOps$ = new $c_Lscatan_lib_game_dsl_PlayersDSLOps$()
+ };
+ return $n_Lscatan_lib_game_dsl_PlayersDSLOps$
+}
+/** @constructor */
+function $c_Lscatan_lib_game_dsl_TurnDSLOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.constructor = $c_Lscatan_lib_game_dsl_TurnDSLOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_dsl_TurnDSLOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_dsl_TurnDSLOps$.prototype = $c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype;
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.StartIn__O__Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__V = (function(step, turnDSLContext) {
+ $n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = $m_Lscatan_lib_game_ops_RulesOps$().withStartingStep__Lscatan_lib_game_Rules__O__O__Lscatan_lib_game_Rules($n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules, $n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_phase, step)
+});
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.CanEndIn__O__Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__V = (function(step, turnDSLContext) {
+ $n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = $m_Lscatan_lib_game_ops_RulesOps$().withEndingStep__Lscatan_lib_game_Rules__O__O__Lscatan_lib_game_Rules($n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules, $n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_phase, step)
+});
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.Iterate__F1__Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__V = (function(factory, turnDSLContext) {
+ $n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = $m_Lscatan_lib_game_ops_RulesOps$().withPhaseTurnIteratorFactory__Lscatan_lib_game_Rules__O__F1__Lscatan_lib_game_Rules($n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules, $n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_phase, factory)
+});
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.NextPhase__O__Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__V = (function(phase, turnDSLContext) {
+ $n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = $m_Lscatan_lib_game_ops_RulesOps$().withNextPhase__Lscatan_lib_game_Rules__O__O__Lscatan_lib_game_Rules($n($n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_dsl).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules, $n(turnDSLContext).Lscatan_lib_game_dsl_TurnDSLOps$TurnDSLContext__f_phase, phase)
+});
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.normal__F1 = (function() {
+ return new $c_sjsr_AnonFunction1(((players) => {
+ var players$1 = $as_sci_Seq(players);
+ $n($m_s_package$().s_package$__f_Iterator);
+ var elem = new $c_sjsr_AnonFunction0((() => players$1));
+ var this$5 = new $c_sc_Iterator$$anon$27(elem);
+ var this$4 = $m_s_$less$colon$less$();
+ var ev = this$4.s_$less$colon$less$__f_singleton;
+ return new $c_sc_Iterator$$anon$10(this$5, ev)
+ }))
+});
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.circularWithBack__F1 = (function() {
+ return new $c_sjsr_AnonFunction1(((players) => {
+ var players$1 = $as_sci_Seq(players);
+ var this$2 = $n(players$1);
+ var suffix = $as_sc_IterableOnce($n(players$1).reverse__O());
+ return $n($as_sc_IterableOnce(this$2.appendedAll__sc_IterableOnce__O(suffix))).iterator__sc_Iterator()
+ }))
+});
+var $d_Lscatan_lib_game_dsl_TurnDSLOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_dsl_TurnDSLOps$: 0
+}, false, "scatan.lib.game.dsl.TurnDSLOps$", {
+ Lscatan_lib_game_dsl_TurnDSLOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_dsl_TurnDSLOps$.prototype.$classData = $d_Lscatan_lib_game_dsl_TurnDSLOps$;
+var $n_Lscatan_lib_game_dsl_TurnDSLOps$;
+function $m_Lscatan_lib_game_dsl_TurnDSLOps$() {
+ if ((!$n_Lscatan_lib_game_dsl_TurnDSLOps$)) {
+ $n_Lscatan_lib_game_dsl_TurnDSLOps$ = new $c_Lscatan_lib_game_dsl_TurnDSLOps$()
+ };
+ return $n_Lscatan_lib_game_dsl_TurnDSLOps$
+}
+function $f_Lscatan_lib_game_dsl_TypedGameDSL__Winner__F1__V($thiz, winner) {
+ var rules = $thiz.Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules;
+ $n(rules);
+ var this$2 = $n(rules);
+ var startingStateFactory = this$2.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$3 = $n(rules);
+ var startingPhase = this$3.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$4 = $n(rules);
+ var startingSteps = this$4.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$5 = $n(rules);
+ var actions = this$5.Lscatan_lib_game_Rules__f_actions;
+ var this$6 = $n(rules);
+ var allowedPlayersSizes = this$6.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$7 = $n(rules);
+ var phaseTurnIteratorFactories = this$7.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$8 = $n(rules);
+ var nextPhase = this$8.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$9 = $n(rules);
+ var endingSteps = this$9.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$10 = $n(rules);
+ var initialAction = this$10.Lscatan_lib_game_Rules__f_initialAction;
+ $thiz.Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = new $c_Lscatan_lib_game_Rules(startingStateFactory, startingPhase, startingSteps, actions, allowedPlayersSizes, phaseTurnIteratorFactories, nextPhase, endingSteps, winner, initialAction)
+}
+function $f_Lscatan_lib_game_dsl_TypedGameDSL__StartWithPhase__O__V($thiz, phase) {
+ var rules = $thiz.Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules;
+ $n(rules);
+ var this$2 = $n(rules);
+ var startingStateFactory = this$2.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$3 = $n(rules);
+ var startingSteps = this$3.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$4 = $n(rules);
+ var actions = this$4.Lscatan_lib_game_Rules__f_actions;
+ var this$5 = $n(rules);
+ var allowedPlayersSizes = this$5.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$6 = $n(rules);
+ var phaseTurnIteratorFactories = this$6.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$7 = $n(rules);
+ var nextPhase = this$7.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$8 = $n(rules);
+ var endingSteps = this$8.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$9 = $n(rules);
+ var winnerFunction = this$9.Lscatan_lib_game_Rules__f_winnerFunction;
+ var this$10 = $n(rules);
+ var initialAction = this$10.Lscatan_lib_game_Rules__f_initialAction;
+ $thiz.Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = new $c_Lscatan_lib_game_Rules(startingStateFactory, phase, startingSteps, actions, allowedPlayersSizes, phaseTurnIteratorFactories, nextPhase, endingSteps, winnerFunction, initialAction)
+}
+function $f_Lscatan_lib_game_dsl_TypedGameDSL__StartWithStateFactory__F1__V($thiz, stateFactory) {
+ var rules = $thiz.Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules;
+ $n(rules);
+ var this$2 = $n(rules);
+ var startingPhase = this$2.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$3 = $n(rules);
+ var startingSteps = this$3.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$4 = $n(rules);
+ var actions = this$4.Lscatan_lib_game_Rules__f_actions;
+ var this$5 = $n(rules);
+ var allowedPlayersSizes = this$5.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$6 = $n(rules);
+ var phaseTurnIteratorFactories = this$6.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$7 = $n(rules);
+ var nextPhase = this$7.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$8 = $n(rules);
+ var endingSteps = this$8.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$9 = $n(rules);
+ var winnerFunction = this$9.Lscatan_lib_game_Rules__f_winnerFunction;
+ var this$10 = $n(rules);
+ var initialAction = this$10.Lscatan_lib_game_Rules__f_initialAction;
+ $thiz.Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules = new $c_Lscatan_lib_game_Rules(stateFactory, startingPhase, startingSteps, actions, allowedPlayersSizes, phaseTurnIteratorFactories, nextPhase, endingSteps, winnerFunction, initialAction)
+}
+function $p_Lscatan_lib_game_dsl_TypedGameDSL__given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzyINIT1$1__sr_LazyRef__Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext($thiz, given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1) {
+ if ((given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1 === null)) {
+ throw new $c_jl_NullPointerException()
+ };
+ return $as_Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext(($n(given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).sr_LazyRef__f__initialized ? $n(given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).sr_LazyRef__f__value : $n(given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).initialize__O__O(new $c_Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext($thiz))))
+}
+function $p_Lscatan_lib_game_dsl_TypedGameDSL__given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$1__sr_LazyRef__Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext($thiz, given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2) {
+ return $as_Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext(($n(given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2).sr_LazyRef__f__initialized ? $n(given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2).sr_LazyRef__f__value : $p_Lscatan_lib_game_dsl_TypedGameDSL__given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzyINIT1$1__sr_LazyRef__Lscatan_lib_game_dsl_PlayersDSLOps$PlayersDSLContext($thiz, given_PlayersDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2)))
+}
+function $p_Lscatan_lib_game_dsl_TypedGameDSL__given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzyINIT1$1__sr_LazyRef__Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext($thiz, given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1) {
+ if ((given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1 === null)) {
+ throw new $c_jl_NullPointerException()
+ };
+ return $as_Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext(($n(given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).sr_LazyRef__f__initialized ? $n(given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).sr_LazyRef__f__value : $n(given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$1).initialize__O__O(new $c_Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext($thiz))))
+}
+function $p_Lscatan_lib_game_dsl_TypedGameDSL__given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$1__sr_LazyRef__Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext($thiz, given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2) {
+ return $as_Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext(($n(given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2).sr_LazyRef__f__initialized ? $n(given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2).sr_LazyRef__f__value : $p_Lscatan_lib_game_dsl_TypedGameDSL__given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzyINIT1$1__sr_LazyRef__Lscatan_lib_game_dsl_PhasesDSLOps$PhasesDSLContext($thiz, given_PhasesDSLContext_State_PhaseType_StepType_ActionType_Player$lzy1$2)))
+}
+/** @constructor */
+function $c_Lscatan_lib_game_ops_GamePlayOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_ops_GamePlayOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_ops_GamePlayOps$.prototype.constructor = $c_Lscatan_lib_game_ops_GamePlayOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_ops_GamePlayOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_ops_GamePlayOps$.prototype = $c_Lscatan_lib_game_ops_GamePlayOps$.prototype;
+$c_Lscatan_lib_game_ops_GamePlayOps$.prototype.allowedActions__Lscatan_lib_game_Game__sci_Set = (function(game) {
+ return $as_sci_Set($n($n($n(game).Lscatan_lib_game_Game__f_rules).allowedActions__sci_Map()).apply__O__O($n(game).Lscatan_lib_game_Game__f_gameStatus))
+});
+$c_Lscatan_lib_game_ops_GamePlayOps$.prototype.canPlay__Lscatan_lib_game_Game__O__Z = (function(game, actionType) {
+ return $n(this.allowedActions__Lscatan_lib_game_Game__sci_Set(game)).contains__O__Z(actionType)
+});
+$c_Lscatan_lib_game_ops_GamePlayOps$.prototype.play__Lscatan_lib_game_Game__O__Lscatan_lib_game_ops_Effect__s_Option = (function(game, action, effect) {
+ var this$1 = $n(this.option__Z__s_Option(this.canPlay__Lscatan_lib_game_Game__O__Z(game, action)));
+ if (this$1.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ var arg1 = this$1.get__O();
+ $as_jl_Void(arg1);
+ var this$2 = $n(effect);
+ var state = $n(game).Lscatan_lib_game_Game__f_state;
+ var this$3 = $n(this$2.apply__Lscatan_model_game_ScatanState__s_Option($as_Lscatan_model_game_ScatanState(state)));
+ if (this$3.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1$1 = this$3.get__O();
+ var $$x2 = $n($n($n(game).Lscatan_lib_game_Game__f_rules).nextSteps__sci_Map());
+ var _1 = $n(game).Lscatan_lib_game_Game__f_gameStatus;
+ var newStep = $n($$x2).apply__O__O(new $c_T2(_1, action));
+ $n($n(game).Lscatan_lib_game_Game__f_gameStatus);
+ var this$5 = $n($n(game).Lscatan_lib_game_Game__f_gameStatus);
+ var phase = this$5.Lscatan_lib_game_GameStatus__f_phase;
+ var newStatus = new $c_Lscatan_lib_game_GameStatus(phase, newStep);
+ $n(game);
+ var this$7 = $n(game);
+ var players = this$7.Lscatan_lib_game_Game__f_players;
+ var this$8 = $n(game);
+ var turn = this$8.Lscatan_lib_game_Game__f_turn;
+ var this$9 = $n(game);
+ var playersIterator = this$9.Lscatan_lib_game_Game__f_playersIterator;
+ var this$10 = $n(game);
+ var rules = this$10.Lscatan_lib_game_Game__f_rules;
+ var newGame = new $c_Lscatan_lib_game_Game(players, arg1$1, turn, newStatus, playersIterator, rules);
+ var $$x1 = new $c_s_Some(new $c_T4(arg1$1, newStep, newStatus, newGame))
+ };
+ var this$13 = $n($$x1);
+ if (this$13.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ var arg1$2 = this$13.get__O();
+ var x$1$1 = $as_T4(arg1$2);
+ matchResult1: {
+ var $$x3;
+ if ((x$1$1 !== null)) {
+ $n(x$1$1);
+ $n(x$1$1);
+ $as_Lscatan_lib_game_GameStatus($n(x$1$1).T4__f__3);
+ var newGame$1 = $as_Lscatan_lib_game_Game($n(x$1$1).T4__f__4);
+ var x = $n($n($n(newGame$1).Lscatan_lib_game_Game__f_rules).Lscatan_lib_game_Rules__f_endingSteps).apply__O__O($n($n(newGame$1).Lscatan_lib_game_Game__f_gameStatus).Lscatan_lib_game_GameStatus__f_phase);
+ var y = $n($n(newGame$1).Lscatan_lib_game_Game__f_gameStatus).Lscatan_lib_game_GameStatus__f_step;
+ if ($m_sr_BoxesRunTime$().equals__O__O__Z(x, y)) {
+ var $$x3 = $as_Lscatan_lib_game_Game($n($m_Lscatan_lib_game_ops_GameTurnOps$().nextTurn__Lscatan_lib_game_Game__s_Option(newGame$1)).get__O());
+ break matchResult1
+ } else {
+ var $$x3 = newGame$1;
+ break matchResult1
+ }
+ };
+ throw new $c_s_MatchError(x$1$1)
+ };
+ return new $c_s_Some($$x3)
+ }
+ }
+});
+$c_Lscatan_lib_game_ops_GamePlayOps$.prototype.option__Z__s_Option = (function(bool) {
+ return (bool ? new $c_s_Some((void 0)) : $m_s_None$())
+});
+var $d_Lscatan_lib_game_ops_GamePlayOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_ops_GamePlayOps$: 0
+}, false, "scatan.lib.game.ops.GamePlayOps$", {
+ Lscatan_lib_game_ops_GamePlayOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_ops_GamePlayOps$.prototype.$classData = $d_Lscatan_lib_game_ops_GamePlayOps$;
+var $n_Lscatan_lib_game_ops_GamePlayOps$;
+function $m_Lscatan_lib_game_ops_GamePlayOps$() {
+ if ((!$n_Lscatan_lib_game_ops_GamePlayOps$)) {
+ $n_Lscatan_lib_game_ops_GamePlayOps$ = new $c_Lscatan_lib_game_ops_GamePlayOps$()
+ };
+ return $n_Lscatan_lib_game_ops_GamePlayOps$
+}
+function $p_Lscatan_lib_game_ops_GameTurnOps$__nextTurnInSamePhase__Lscatan_lib_game_Game__s_Option($thiz, game) {
+ var this$1 = $n($n($n($n(game).Lscatan_lib_game_Game__f_rules).Lscatan_lib_game_Rules__f_startingSteps).get__O__s_Option($n($n(game).Lscatan_lib_game_Game__f_gameStatus).Lscatan_lib_game_GameStatus__f_phase));
+ if (this$1.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1 = this$1.get__O();
+ $n($n(game).Lscatan_lib_game_Game__f_gameStatus);
+ var this$2 = $n($n(game).Lscatan_lib_game_Game__f_gameStatus);
+ var phase = this$2.Lscatan_lib_game_GameStatus__f_phase;
+ var nextStatus = new $c_Lscatan_lib_game_GameStatus(phase, arg1);
+ var nextPlayer = $n($n(game).Lscatan_lib_game_Game__f_playersIterator).next__O();
+ var nextTurn = $m_Lscatan_lib_game_ops_TurnOps$().next__Lscatan_lib_game_Turn__O__Lscatan_lib_game_Turn($n(game).Lscatan_lib_game_Game__f_turn, nextPlayer);
+ var $$x1 = new $c_s_Some(new $c_T4(arg1, nextStatus, nextPlayer, nextTurn))
+ };
+ var this$5 = $n($$x1);
+ if (this$5.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ var arg1$1 = this$5.get__O();
+ var x$1 = $as_T4(arg1$1);
+ matchResult1: {
+ var $$x2;
+ if ((x$1 !== null)) {
+ $n(x$1);
+ var nextStatus$1 = $as_Lscatan_lib_game_GameStatus($n(x$1).T4__f__2);
+ $n(x$1);
+ var nextTurn$1 = $as_Lscatan_lib_game_Turn($n(x$1).T4__f__4);
+ $n(game);
+ var this$6 = $n(game);
+ var players = this$6.Lscatan_lib_game_Game__f_players;
+ var this$7 = $n(game);
+ var state = this$7.Lscatan_lib_game_Game__f_state;
+ var this$8 = $n(game);
+ var playersIterator = this$8.Lscatan_lib_game_Game__f_playersIterator;
+ var this$9 = $n(game);
+ var rules = this$9.Lscatan_lib_game_Game__f_rules;
+ var $$x2 = new $c_Lscatan_lib_game_Game(players, state, nextTurn$1, nextStatus$1, playersIterator, rules);
+ break matchResult1
+ };
+ throw new $c_s_MatchError(x$1)
+ };
+ return new $c_s_Some($$x2)
+ }
+}
+function $p_Lscatan_lib_game_ops_GameTurnOps$__nextTurnInNextPhase__Lscatan_lib_game_Game__s_Option($thiz, game) {
+ var this$1 = $n($n($n($n(game).Lscatan_lib_game_Game__f_rules).Lscatan_lib_game_Rules__f_nextPhase).get__O__s_Option($n($n(game).Lscatan_lib_game_Game__f_gameStatus).Lscatan_lib_game_GameStatus__f_phase));
+ if (this$1.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ var arg1 = this$1.get__O();
+ var this$2 = $n($n($n($n(game).Lscatan_lib_game_Game__f_rules).Lscatan_lib_game_Rules__f_startingSteps).get__O__s_Option(arg1));
+ if (this$2.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ var arg1$1 = this$2.get__O();
+ var this$3 = $n($n($n($n(game).Lscatan_lib_game_Game__f_rules).Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories).get__O__s_Option(arg1));
+ if (this$3.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1$2 = this$3.get__O();
+ var _$1 = $as_F1(arg1$2);
+ var $$x1 = new $c_s_Some($as_sc_Iterator($n(_$1).apply__O__O($n(game).Lscatan_lib_game_Game__f_players)))
+ };
+ var this$4 = $n($$x1);
+ if (this$4.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ var arg1$3 = this$4.get__O();
+ var nextPlayersIterator = $as_sc_Iterator(arg1$3);
+ var this$5 = $n(nextPlayersIterator);
+ var this$6 = $n($f_sc_Iterator__nextOption__s_Option(this$5));
+ if (this$6.isEmpty__Z()) {
+ var $$x2 = $m_s_None$()
+ } else {
+ var arg1$4 = this$6.get__O();
+ var nextTurn = $m_Lscatan_lib_game_ops_TurnOps$().next__Lscatan_lib_game_Turn__O__Lscatan_lib_game_Turn($n(game).Lscatan_lib_game_Game__f_turn, arg1$4);
+ var this$7 = $n($n($n($n(game).Lscatan_lib_game_Game__f_rules).Lscatan_lib_game_Rules__f_initialAction).get__O__s_Option(arg1));
+ if (this$7.isEmpty__Z()) {
+ var $$x3 = $m_s_None$()
+ } else {
+ var arg1$5 = this$7.get__O();
+ var _$2 = $as_F1(arg1$5);
+ var $$x3 = new $c_s_Some($n(_$2).apply__O__O($n(game).Lscatan_lib_game_Game__f_state))
+ };
+ var this$8 = $n($$x3);
+ var nextState = (this$8.isEmpty__Z() ? $n(game).Lscatan_lib_game_Game__f_state : this$8.get__O());
+ var $$x2 = new $c_s_Some(new $c_T3(arg1$4, nextTurn, nextState))
+ };
+ var this$10 = $n($$x2);
+ if (this$10.isEmpty__Z()) {
+ return $m_s_None$()
+ } else {
+ var arg1$6 = this$10.get__O();
+ var x$1 = $as_T3(arg1$6);
+ matchResult2: {
+ var $$x4;
+ if ((x$1 !== null)) {
+ $n(x$1);
+ var nextTurn$1 = $as_Lscatan_lib_game_Turn($n(x$1).T3__f__2);
+ var nextState$1 = $n(x$1).T3__f__3;
+ $n($n(game).Lscatan_lib_game_Game__f_gameStatus);
+ var gameStatus$1 = new $c_Lscatan_lib_game_GameStatus(arg1, arg1$1);
+ var this$12 = $n(game);
+ var players$1 = this$12.Lscatan_lib_game_Game__f_players;
+ var this$13 = $n(game);
+ var rules$1 = this$13.Lscatan_lib_game_Game__f_rules;
+ $n(game);
+ var $$x4 = new $c_Lscatan_lib_game_Game(players$1, nextState$1, nextTurn$1, gameStatus$1, nextPlayersIterator, rules$1);
+ break matchResult2
+ };
+ throw new $c_s_MatchError(x$1)
+ };
+ return new $c_s_Some($$x4)
+ }
+ }
+ }
+ }
+}
+/** @constructor */
+function $c_Lscatan_lib_game_ops_GameTurnOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_ops_GameTurnOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_ops_GameTurnOps$.prototype.constructor = $c_Lscatan_lib_game_ops_GameTurnOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_ops_GameTurnOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_ops_GameTurnOps$.prototype = $c_Lscatan_lib_game_ops_GameTurnOps$.prototype;
+$c_Lscatan_lib_game_ops_GameTurnOps$.prototype.nextTurn__Lscatan_lib_game_Game__s_Option = (function(game) {
+ return ($n($n(game).Lscatan_lib_game_Game__f_playersIterator).hasNext__Z() ? $p_Lscatan_lib_game_ops_GameTurnOps$__nextTurnInSamePhase__Lscatan_lib_game_Game__s_Option(this, game) : $p_Lscatan_lib_game_ops_GameTurnOps$__nextTurnInNextPhase__Lscatan_lib_game_Game__s_Option(this, game))
+});
+var $d_Lscatan_lib_game_ops_GameTurnOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_ops_GameTurnOps$: 0
+}, false, "scatan.lib.game.ops.GameTurnOps$", {
+ Lscatan_lib_game_ops_GameTurnOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_ops_GameTurnOps$.prototype.$classData = $d_Lscatan_lib_game_ops_GameTurnOps$;
+var $n_Lscatan_lib_game_ops_GameTurnOps$;
+function $m_Lscatan_lib_game_ops_GameTurnOps$() {
+ if ((!$n_Lscatan_lib_game_ops_GameTurnOps$)) {
+ $n_Lscatan_lib_game_ops_GameTurnOps$ = new $c_Lscatan_lib_game_ops_GameTurnOps$()
+ };
+ return $n_Lscatan_lib_game_ops_GameTurnOps$
+}
+/** @constructor */
+function $c_Lscatan_lib_game_ops_RulesOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_ops_RulesOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_ops_RulesOps$.prototype.constructor = $c_Lscatan_lib_game_ops_RulesOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_ops_RulesOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_ops_RulesOps$.prototype = $c_Lscatan_lib_game_ops_RulesOps$.prototype;
+$c_Lscatan_lib_game_ops_RulesOps$.prototype.withStartingStep__Lscatan_lib_game_Rules__O__O__Lscatan_lib_game_Rules = (function(rules, phase, step) {
+ var this$3 = $n($n(rules).Lscatan_lib_game_Rules__f_startingSteps);
+ var startingSteps$1 = $as_sci_Map(this$3.updated__O__O__sci_MapOps(phase, step));
+ var this$4 = $n(rules);
+ var startingStateFactory$1 = this$4.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$5 = $n(rules);
+ var startingPhase$1 = this$5.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$6 = $n(rules);
+ var actions$1 = this$6.Lscatan_lib_game_Rules__f_actions;
+ var this$7 = $n(rules);
+ var allowedPlayersSizes$1 = this$7.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$8 = $n(rules);
+ var phaseTurnIteratorFactories$1 = this$8.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$9 = $n(rules);
+ var nextPhase$1 = this$9.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$10 = $n(rules);
+ var endingSteps$1 = this$10.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$11 = $n(rules);
+ var winnerFunction$1 = this$11.Lscatan_lib_game_Rules__f_winnerFunction;
+ var this$12 = $n(rules);
+ var initialAction$1 = this$12.Lscatan_lib_game_Rules__f_initialAction;
+ $n(rules);
+ return new $c_Lscatan_lib_game_Rules(startingStateFactory$1, startingPhase$1, startingSteps$1, actions$1, allowedPlayersSizes$1, phaseTurnIteratorFactories$1, nextPhase$1, endingSteps$1, winnerFunction$1, initialAction$1)
+});
+$c_Lscatan_lib_game_ops_RulesOps$.prototype.withEndingStep__Lscatan_lib_game_Rules__O__O__Lscatan_lib_game_Rules = (function(rules, phase, step) {
+ var this$3 = $n($n(rules).Lscatan_lib_game_Rules__f_endingSteps);
+ var endingSteps$2 = $as_sci_Map(this$3.updated__O__O__sci_MapOps(phase, step));
+ var this$4 = $n(rules);
+ var startingStateFactory$2 = this$4.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$5 = $n(rules);
+ var startingPhase$2 = this$5.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$6 = $n(rules);
+ var startingSteps$2 = this$6.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$7 = $n(rules);
+ var actions$2 = this$7.Lscatan_lib_game_Rules__f_actions;
+ var this$8 = $n(rules);
+ var allowedPlayersSizes$2 = this$8.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$9 = $n(rules);
+ var phaseTurnIteratorFactories$2 = this$9.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$10 = $n(rules);
+ var nextPhase$2 = this$10.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$11 = $n(rules);
+ var winnerFunction$2 = this$11.Lscatan_lib_game_Rules__f_winnerFunction;
+ var this$12 = $n(rules);
+ var initialAction$2 = this$12.Lscatan_lib_game_Rules__f_initialAction;
+ $n(rules);
+ return new $c_Lscatan_lib_game_Rules(startingStateFactory$2, startingPhase$2, startingSteps$2, actions$2, allowedPlayersSizes$2, phaseTurnIteratorFactories$2, nextPhase$2, endingSteps$2, winnerFunction$2, initialAction$2)
+});
+$c_Lscatan_lib_game_ops_RulesOps$.prototype.withPhaseTurnIteratorFactory__Lscatan_lib_game_Rules__O__F1__Lscatan_lib_game_Rules = (function(rules, phase, factory) {
+ var this$3 = $n($n(rules).Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories);
+ var phaseTurnIteratorFactories$3 = $as_sci_Map(this$3.updated__O__O__sci_MapOps(phase, factory));
+ var this$4 = $n(rules);
+ var startingStateFactory$3 = this$4.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$5 = $n(rules);
+ var startingPhase$3 = this$5.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$6 = $n(rules);
+ var startingSteps$3 = this$6.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$7 = $n(rules);
+ var actions$3 = this$7.Lscatan_lib_game_Rules__f_actions;
+ var this$8 = $n(rules);
+ var allowedPlayersSizes$3 = this$8.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$9 = $n(rules);
+ var nextPhase$3 = this$9.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$10 = $n(rules);
+ var endingSteps$3 = this$10.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$11 = $n(rules);
+ var winnerFunction$3 = this$11.Lscatan_lib_game_Rules__f_winnerFunction;
+ var this$12 = $n(rules);
+ var initialAction$3 = this$12.Lscatan_lib_game_Rules__f_initialAction;
+ $n(rules);
+ return new $c_Lscatan_lib_game_Rules(startingStateFactory$3, startingPhase$3, startingSteps$3, actions$3, allowedPlayersSizes$3, phaseTurnIteratorFactories$3, nextPhase$3, endingSteps$3, winnerFunction$3, initialAction$3)
+});
+$c_Lscatan_lib_game_ops_RulesOps$.prototype.withNextPhase__Lscatan_lib_game_Rules__O__O__Lscatan_lib_game_Rules = (function(rules, phase, next) {
+ var this$3 = $n($n(rules).Lscatan_lib_game_Rules__f_nextPhase);
+ var nextPhase$4 = $as_sci_Map(this$3.updated__O__O__sci_MapOps(phase, next));
+ var this$4 = $n(rules);
+ var startingStateFactory$4 = this$4.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$5 = $n(rules);
+ var startingPhase$4 = this$5.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$6 = $n(rules);
+ var startingSteps$4 = this$6.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$7 = $n(rules);
+ var actions$4 = this$7.Lscatan_lib_game_Rules__f_actions;
+ var this$8 = $n(rules);
+ var allowedPlayersSizes$4 = this$8.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$9 = $n(rules);
+ var phaseTurnIteratorFactories$4 = this$9.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$10 = $n(rules);
+ var endingSteps$4 = this$10.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$11 = $n(rules);
+ var winnerFunction$4 = this$11.Lscatan_lib_game_Rules__f_winnerFunction;
+ var this$12 = $n(rules);
+ var initialAction$4 = this$12.Lscatan_lib_game_Rules__f_initialAction;
+ $n(rules);
+ return new $c_Lscatan_lib_game_Rules(startingStateFactory$4, startingPhase$4, startingSteps$4, actions$4, allowedPlayersSizes$4, phaseTurnIteratorFactories$4, nextPhase$4, endingSteps$4, winnerFunction$4, initialAction$4)
+});
+$c_Lscatan_lib_game_ops_RulesOps$.prototype.withOnEnter__Lscatan_lib_game_Rules__O__F1__Lscatan_lib_game_Rules = (function(rules, phase, onEnter) {
+ var this$3 = $n($n(rules).Lscatan_lib_game_Rules__f_initialAction);
+ var initialAction$6 = $as_sci_Map(this$3.updated__O__O__sci_MapOps(phase, onEnter));
+ var this$4 = $n(rules);
+ var startingStateFactory$6 = this$4.Lscatan_lib_game_Rules__f_startingStateFactory;
+ var this$5 = $n(rules);
+ var startingPhase$6 = this$5.Lscatan_lib_game_Rules__f_startingPhase;
+ var this$6 = $n(rules);
+ var startingSteps$6 = this$6.Lscatan_lib_game_Rules__f_startingSteps;
+ var this$7 = $n(rules);
+ var actions$6 = this$7.Lscatan_lib_game_Rules__f_actions;
+ var this$8 = $n(rules);
+ var allowedPlayersSizes$6 = this$8.Lscatan_lib_game_Rules__f_allowedPlayersSizes;
+ var this$9 = $n(rules);
+ var phaseTurnIteratorFactories$6 = this$9.Lscatan_lib_game_Rules__f_phaseTurnIteratorFactories;
+ var this$10 = $n(rules);
+ var nextPhase$6 = this$10.Lscatan_lib_game_Rules__f_nextPhase;
+ var this$11 = $n(rules);
+ var endingSteps$6 = this$11.Lscatan_lib_game_Rules__f_endingSteps;
+ var this$12 = $n(rules);
+ var winnerFunction$6 = this$12.Lscatan_lib_game_Rules__f_winnerFunction;
+ $n(rules);
+ return new $c_Lscatan_lib_game_Rules(startingStateFactory$6, startingPhase$6, startingSteps$6, actions$6, allowedPlayersSizes$6, phaseTurnIteratorFactories$6, nextPhase$6, endingSteps$6, winnerFunction$6, initialAction$6)
+});
+var $d_Lscatan_lib_game_ops_RulesOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_ops_RulesOps$: 0
+}, false, "scatan.lib.game.ops.RulesOps$", {
+ Lscatan_lib_game_ops_RulesOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_ops_RulesOps$.prototype.$classData = $d_Lscatan_lib_game_ops_RulesOps$;
+var $n_Lscatan_lib_game_ops_RulesOps$;
+function $m_Lscatan_lib_game_ops_RulesOps$() {
+ if ((!$n_Lscatan_lib_game_ops_RulesOps$)) {
+ $n_Lscatan_lib_game_ops_RulesOps$ = new $c_Lscatan_lib_game_ops_RulesOps$()
+ };
+ return $n_Lscatan_lib_game_ops_RulesOps$
+}
+/** @constructor */
+function $c_Lscatan_lib_game_ops_TurnOps$() {
+ /**/
+}
+$c_Lscatan_lib_game_ops_TurnOps$.prototype = new $h_O();
+$c_Lscatan_lib_game_ops_TurnOps$.prototype.constructor = $c_Lscatan_lib_game_ops_TurnOps$;
+/** @constructor */
+function $h_Lscatan_lib_game_ops_TurnOps$() {
+ /**/
+}
+$h_Lscatan_lib_game_ops_TurnOps$.prototype = $c_Lscatan_lib_game_ops_TurnOps$.prototype;
+$c_Lscatan_lib_game_ops_TurnOps$.prototype.next__Lscatan_lib_game_Turn__O__Lscatan_lib_game_Turn = (function(turn, player) {
+ var number = ((1 + $n(turn).Lscatan_lib_game_TurnImpl__f_number) | 0);
+ return new $c_Lscatan_lib_game_TurnImpl(number, player)
+});
+var $d_Lscatan_lib_game_ops_TurnOps$ = new $TypeData().initClass({
+ Lscatan_lib_game_ops_TurnOps$: 0
+}, false, "scatan.lib.game.ops.TurnOps$", {
+ Lscatan_lib_game_ops_TurnOps$: 1,
+ O: 1
+});
+$c_Lscatan_lib_game_ops_TurnOps$.prototype.$classData = $d_Lscatan_lib_game_ops_TurnOps$;
+var $n_Lscatan_lib_game_ops_TurnOps$;
+function $m_Lscatan_lib_game_ops_TurnOps$() {
+ if ((!$n_Lscatan_lib_game_ops_TurnOps$)) {
+ $n_Lscatan_lib_game_ops_TurnOps$ = new $c_Lscatan_lib_game_ops_TurnOps$()
+ };
+ return $n_Lscatan_lib_game_ops_TurnOps$
+}
+function $is_Lscatan_lib_mvc_Controller(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_lib_mvc_Controller)))
+}
+function $as_Lscatan_lib_mvc_Controller(obj) {
+ return (($is_Lscatan_lib_mvc_Controller(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.lib.mvc.Controller"))
+}
+function $isArrayOf_Lscatan_lib_mvc_Controller(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_lib_mvc_Controller)))
+}
+function $asArrayOf_Lscatan_lib_mvc_Controller(obj, depth) {
+ return (($isArrayOf_Lscatan_lib_mvc_Controller(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.lib.mvc.Controller;", depth))
+}
+function $is_Lscatan_lib_mvc_Model$State(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_lib_mvc_Model$State)))
+}
+function $as_Lscatan_lib_mvc_Model$State(obj) {
+ return (($is_Lscatan_lib_mvc_Model$State(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.lib.mvc.Model$State"))
+}
+function $isArrayOf_Lscatan_lib_mvc_Model$State(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_lib_mvc_Model$State)))
+}
+function $asArrayOf_Lscatan_lib_mvc_Model$State(obj, depth) {
+ return (($isArrayOf_Lscatan_lib_mvc_Model$State(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.lib.mvc.Model$State;", depth))
+}
+/** @constructor */
+function $c_Lscatan_lib_mvc_NavigableApplicationManager$() {
+ this.Lscatan_lib_mvc_NavigableApplicationManager$__f__application = null;
+ $n_Lscatan_lib_mvc_NavigableApplicationManager$ = this;
+ this.Lscatan_lib_mvc_NavigableApplicationManager$__f__application = $m_s_None$()
+}
+$c_Lscatan_lib_mvc_NavigableApplicationManager$.prototype = new $h_O();
+$c_Lscatan_lib_mvc_NavigableApplicationManager$.prototype.constructor = $c_Lscatan_lib_mvc_NavigableApplicationManager$;
+/** @constructor */
+function $h_Lscatan_lib_mvc_NavigableApplicationManager$() {
+ /**/
+}
+$h_Lscatan_lib_mvc_NavigableApplicationManager$.prototype = $c_Lscatan_lib_mvc_NavigableApplicationManager$.prototype;
+$c_Lscatan_lib_mvc_NavigableApplicationManager$.prototype.startApplication__Lscatan_lib_mvc_application_NavigableApplication__O__V = (function(application, initialRoute) {
+ this.Lscatan_lib_mvc_NavigableApplicationManager$__f__application = new $c_s_Some(application);
+ var this$2 = $n(application);
+ $f_Lscatan_lib_mvc_application_Navigable__show__O__V(this$2, initialRoute)
+});
+$c_Lscatan_lib_mvc_NavigableApplicationManager$.prototype.navigateTo__O__V = (function(route) {
+ var this$1 = $n(this.Lscatan_lib_mvc_NavigableApplicationManager$__f__application);
+ if ((!this$1.isEmpty__Z())) {
+ var arg1 = this$1.get__O();
+ var _$1 = $as_Lscatan_lib_mvc_application_NavigableApplication(arg1);
+ var this$2 = $n(_$1);
+ $f_Lscatan_lib_mvc_application_Navigable__show__O__V(this$2, route)
+ }
+});
+$c_Lscatan_lib_mvc_NavigableApplicationManager$.prototype.navigateBack__V = (function() {
+ var this$1 = $n(this.Lscatan_lib_mvc_NavigableApplicationManager$__f__application);
+ if ((!this$1.isEmpty__Z())) {
+ var arg1 = this$1.get__O();
+ var _$2 = $as_Lscatan_lib_mvc_application_NavigableApplication(arg1);
+ var this$2 = $n(_$2);
+ $f_Lscatan_lib_mvc_application_Navigable__back__V(this$2)
+ }
+});
+var $d_Lscatan_lib_mvc_NavigableApplicationManager$ = new $TypeData().initClass({
+ Lscatan_lib_mvc_NavigableApplicationManager$: 0
+}, false, "scatan.lib.mvc.NavigableApplicationManager$", {
+ Lscatan_lib_mvc_NavigableApplicationManager$: 1,
+ O: 1
+});
+$c_Lscatan_lib_mvc_NavigableApplicationManager$.prototype.$classData = $d_Lscatan_lib_mvc_NavigableApplicationManager$;
+var $n_Lscatan_lib_mvc_NavigableApplicationManager$;
+function $m_Lscatan_lib_mvc_NavigableApplicationManager$() {
+ if ((!$n_Lscatan_lib_mvc_NavigableApplicationManager$)) {
+ $n_Lscatan_lib_mvc_NavigableApplicationManager$ = new $c_Lscatan_lib_mvc_NavigableApplicationManager$()
+ };
+ return $n_Lscatan_lib_mvc_NavigableApplicationManager$
+}
+function $is_Lscatan_lib_mvc_View(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_lib_mvc_View)))
+}
+function $as_Lscatan_lib_mvc_View(obj) {
+ return (($is_Lscatan_lib_mvc_View(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.lib.mvc.View"))
+}
+function $isArrayOf_Lscatan_lib_mvc_View(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_lib_mvc_View)))
+}
+function $asArrayOf_Lscatan_lib_mvc_View(obj, depth) {
+ return (($isArrayOf_Lscatan_lib_mvc_View(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.lib.mvc.View;", depth))
+}
+function $is_Lscatan_lib_mvc_page_PageFactory(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_lib_mvc_page_PageFactory)))
+}
+function $as_Lscatan_lib_mvc_page_PageFactory(obj) {
+ return (($is_Lscatan_lib_mvc_page_PageFactory(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.lib.mvc.page.PageFactory"))
+}
+function $isArrayOf_Lscatan_lib_mvc_page_PageFactory(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_lib_mvc_page_PageFactory)))
+}
+function $asArrayOf_Lscatan_lib_mvc_page_PageFactory(obj, depth) {
+ return (($isArrayOf_Lscatan_lib_mvc_page_PageFactory(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.lib.mvc.page.PageFactory;", depth))
+}
+function $s_Lscatan_main__main__AT__V(args) {
+ try {
+ $m_Lscatan_Main$package$();
+ $m_Lscatan_lib_mvc_NavigableApplicationManager$().startApplication__Lscatan_lib_mvc_application_NavigableApplication__O__V($m_Lscatan_Main$package$().Lscatan_Main$package$__f_Application, $s_Lscatan_Pages$__Home__Lscatan_Pages())
+ } catch (e) {
+ if (false) {
+ var error = $as_s_util_CommandLineParser$ParseError(e);
+ $m_s_util_CommandLineParser$().showError__s_util_CommandLineParser$ParseError__V(error)
+ } else {
+ throw e
+ }
+ }
+}
+/** @constructor */
+function $c_Lscatan_model_components_AssignedBuildingsAdapter$() {
+ /**/
+}
+$c_Lscatan_model_components_AssignedBuildingsAdapter$.prototype = new $h_O();
+$c_Lscatan_model_components_AssignedBuildingsAdapter$.prototype.constructor = $c_Lscatan_model_components_AssignedBuildingsAdapter$;
+/** @constructor */
+function $h_Lscatan_model_components_AssignedBuildingsAdapter$() {
+ /**/
+}
+$h_Lscatan_model_components_AssignedBuildingsAdapter$.prototype = $c_Lscatan_model_components_AssignedBuildingsAdapter$.prototype;
+$c_Lscatan_model_components_AssignedBuildingsAdapter$.prototype.asPlayerMap__sci_ListMap__sci_Map = (function(assignedBuildings) {
+ var this$4 = $n(assignedBuildings);
+ $n($m_s_Predef$().s_Predef$__f_Map);
+ var z = $m_sci_Map$EmptyMap$();
+ var f = ((playerMap, assignment) => {
+ var playerMap$1 = $as_sci_Map(playerMap);
+ var assignment$1 = $as_T2(assignment);
+ var $$x1 = $n($as_Lscatan_model_components_AssignmentInfo($n(assignment$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player;
+ var this$3 = $n($as_sc_SeqOps($n(playerMap$1).getOrElse__O__F0__O($n($as_Lscatan_model_components_AssignmentInfo($n(assignment$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player, new $c_sjsr_AnonFunction0((() => $as_sci_Seq($n($m_s_package$().s_package$__f_Seq).empty__sc_SeqOps()))))));
+ var elem = $n($as_Lscatan_model_components_AssignmentInfo($n(assignment$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_buildingType;
+ return $as_sci_Map($n(playerMap$1).updated__O__O__sci_MapOps($$x1, this$3.appended__O__O(elem)))
+ });
+ if ($is_sc_IndexedSeq(this$4)) {
+ var x2 = $as_sc_IndexedSeq(this$4);
+ var at = 0;
+ var end = $n(x2).length__I();
+ var acc = z;
+ var $$x2;
+ while (true) {
+ if ((at !== end)) {
+ var temp$at = ((1 + at) | 0);
+ var arg1 = acc;
+ var arg2 = $n(x2).apply__I__O(at);
+ var temp$acc = f(arg1, arg2);
+ at = temp$at;
+ acc = temp$acc;
+ continue
+ };
+ var $$x2 = acc;
+ break
+ }
+ } else {
+ var result = z;
+ var it = this$4.iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1$1 = result;
+ var arg2$1 = $n(it).next__O();
+ result = f(arg1$1, arg2$1)
+ };
+ var $$x2 = result
+ };
+ return $as_sci_Map($$x2)
+});
+var $d_Lscatan_model_components_AssignedBuildingsAdapter$ = new $TypeData().initClass({
+ Lscatan_model_components_AssignedBuildingsAdapter$: 0
+}, false, "scatan.model.components.AssignedBuildingsAdapter$", {
+ Lscatan_model_components_AssignedBuildingsAdapter$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_AssignedBuildingsAdapter$.prototype.$classData = $d_Lscatan_model_components_AssignedBuildingsAdapter$;
+var $n_Lscatan_model_components_AssignedBuildingsAdapter$;
+function $m_Lscatan_model_components_AssignedBuildingsAdapter$() {
+ if ((!$n_Lscatan_model_components_AssignedBuildingsAdapter$)) {
+ $n_Lscatan_model_components_AssignedBuildingsAdapter$ = new $c_Lscatan_model_components_AssignedBuildingsAdapter$()
+ };
+ return $n_Lscatan_model_components_AssignedBuildingsAdapter$
+}
+function $is_Lscatan_model_components_AssignmentInfo(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_model_components_AssignmentInfo)))
+}
+function $as_Lscatan_model_components_AssignmentInfo(obj) {
+ return (($is_Lscatan_model_components_AssignmentInfo(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.model.components.AssignmentInfo"))
+}
+function $isArrayOf_Lscatan_model_components_AssignmentInfo(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_model_components_AssignmentInfo)))
+}
+function $asArrayOf_Lscatan_model_components_AssignmentInfo(obj, depth) {
+ return (($isArrayOf_Lscatan_model_components_AssignmentInfo(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.model.components.AssignmentInfo;", depth))
+}
+/** @constructor */
+function $c_Lscatan_model_components_AssignmentInfo$() {
+ /**/
+}
+$c_Lscatan_model_components_AssignmentInfo$.prototype = new $h_O();
+$c_Lscatan_model_components_AssignmentInfo$.prototype.constructor = $c_Lscatan_model_components_AssignmentInfo$;
+/** @constructor */
+function $h_Lscatan_model_components_AssignmentInfo$() {
+ /**/
+}
+$h_Lscatan_model_components_AssignmentInfo$.prototype = $c_Lscatan_model_components_AssignmentInfo$.prototype;
+$c_Lscatan_model_components_AssignmentInfo$.prototype.unapply__Lscatan_model_components_AssignmentInfo__s_Option = (function(assignmentInfo) {
+ var _1 = $n(assignmentInfo).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player;
+ var _2 = $n(assignmentInfo).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_buildingType;
+ var value = new $c_T2(_1, _2);
+ return new $c_s_Some(value)
+});
+var $d_Lscatan_model_components_AssignmentInfo$ = new $TypeData().initClass({
+ Lscatan_model_components_AssignmentInfo$: 0
+}, false, "scatan.model.components.AssignmentInfo$", {
+ Lscatan_model_components_AssignmentInfo$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_AssignmentInfo$.prototype.$classData = $d_Lscatan_model_components_AssignmentInfo$;
+var $n_Lscatan_model_components_AssignmentInfo$;
+function $m_Lscatan_model_components_AssignmentInfo$() {
+ if ((!$n_Lscatan_model_components_AssignmentInfo$)) {
+ $n_Lscatan_model_components_AssignmentInfo$ = new $c_Lscatan_model_components_AssignmentInfo$()
+ };
+ return $n_Lscatan_model_components_AssignmentInfo$
+}
+/** @constructor */
+function $c_Lscatan_model_components_Award$package$Awards$() {
+ /**/
+}
+$c_Lscatan_model_components_Award$package$Awards$.prototype = new $h_O();
+$c_Lscatan_model_components_Award$package$Awards$.prototype.constructor = $c_Lscatan_model_components_Award$package$Awards$;
+/** @constructor */
+function $h_Lscatan_model_components_Award$package$Awards$() {
+ /**/
+}
+$h_Lscatan_model_components_Award$package$Awards$.prototype = $c_Lscatan_model_components_Award$package$Awards$.prototype;
+$c_Lscatan_model_components_Award$package$Awards$.prototype.empty__sci_Map = (function() {
+ var this$9 = $n($m_s_Predef$().s_Predef$__f_Map);
+ var $$x2 = $m_sr_ScalaRunTime$();
+ var awardType = $s_Lscatan_model_components_AwardType$__LargestArmy__Lscatan_model_components_AwardType();
+ var self = new $c_Lscatan_model_components_Award(awardType);
+ var y = $m_s_None$();
+ var $$x1 = new $c_T2(self, y);
+ var awardType$1 = $s_Lscatan_model_components_AwardType$__LongestRoad__Lscatan_model_components_AwardType();
+ var self$1 = new $c_Lscatan_model_components_Award(awardType$1);
+ var y$1 = $m_s_None$();
+ var elems = $n($$x2).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x1, new $c_T2(self$1, y$1)]));
+ return this$9.from__sc_IterableOnce__sci_Map(elems)
+});
+var $d_Lscatan_model_components_Award$package$Awards$ = new $TypeData().initClass({
+ Lscatan_model_components_Award$package$Awards$: 0
+}, false, "scatan.model.components.Award$package$Awards$", {
+ Lscatan_model_components_Award$package$Awards$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_Award$package$Awards$.prototype.$classData = $d_Lscatan_model_components_Award$package$Awards$;
+var $n_Lscatan_model_components_Award$package$Awards$;
+function $m_Lscatan_model_components_Award$package$Awards$() {
+ if ((!$n_Lscatan_model_components_Award$package$Awards$)) {
+ $n_Lscatan_model_components_Award$package$Awards$ = new $c_Lscatan_model_components_Award$package$Awards$()
+ };
+ return $n_Lscatan_model_components_Award$package$Awards$
+}
+/** @constructor */
+function $c_Lscatan_model_components_Building$package$AssignedBuildings$() {
+ /**/
+}
+$c_Lscatan_model_components_Building$package$AssignedBuildings$.prototype = new $h_O();
+$c_Lscatan_model_components_Building$package$AssignedBuildings$.prototype.constructor = $c_Lscatan_model_components_Building$package$AssignedBuildings$;
+/** @constructor */
+function $h_Lscatan_model_components_Building$package$AssignedBuildings$() {
+ /**/
+}
+$h_Lscatan_model_components_Building$package$AssignedBuildings$.prototype = $c_Lscatan_model_components_Building$package$AssignedBuildings$.prototype;
+$c_Lscatan_model_components_Building$package$AssignedBuildings$.prototype.empty__sci_ListMap = (function() {
+ $n($m_s_Predef$().s_Predef$__f_Map);
+ var this$3 = $m_sci_Map$EmptyMap$();
+ var factory = $m_sci_ListMap$();
+ var factory$1 = new $c_sc_MapFactory$ToFactory(factory);
+ return $as_sci_ListMap(factory$1.fromSpecific__sc_IterableOnce__O(this$3))
+});
+var $d_Lscatan_model_components_Building$package$AssignedBuildings$ = new $TypeData().initClass({
+ Lscatan_model_components_Building$package$AssignedBuildings$: 0
+}, false, "scatan.model.components.Building$package$AssignedBuildings$", {
+ Lscatan_model_components_Building$package$AssignedBuildings$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_Building$package$AssignedBuildings$.prototype.$classData = $d_Lscatan_model_components_Building$package$AssignedBuildings$;
+var $n_Lscatan_model_components_Building$package$AssignedBuildings$;
+function $m_Lscatan_model_components_Building$package$AssignedBuildings$() {
+ if ((!$n_Lscatan_model_components_Building$package$AssignedBuildings$)) {
+ $n_Lscatan_model_components_Building$package$AssignedBuildings$ = new $c_Lscatan_model_components_Building$package$AssignedBuildings$()
+ };
+ return $n_Lscatan_model_components_Building$package$AssignedBuildings$
+}
+/** @constructor */
+function $c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$() {
+ /**/
+}
+$c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$.prototype = new $h_O();
+$c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$.prototype.constructor = $c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$;
+/** @constructor */
+function $h_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$() {
+ /**/
+}
+$h_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$.prototype = $c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$.prototype;
+$c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$.prototype.empty__sci_Seq__sci_Map = (function(players) {
+ var $$x1 = $n($as_sc_IterableOnceOps($n(players).map__F1__O(new $c_sjsr_AnonFunction1(((player) => {
+ var player$1 = $as_Lscatan_model_game_config_ScatanPlayer(player);
+ var _2 = $n($m_s_package$().s_package$__f_Seq).empty__sc_SeqOps();
+ return new $c_T2(player$1, _2)
+ })))));
+ var this$3 = $m_s_$less$colon$less$();
+ return $n($$x1).toMap__s_$less$colon$less__sci_Map(this$3.s_$less$colon$less$__f_singleton)
+});
+var $d_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$ = new $TypeData().initClass({
+ Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$: 0
+}, false, "scatan.model.components.DevelopmentCard$package$DevelopmentCards$", {
+ Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$.prototype.$classData = $d_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$;
+var $n_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$;
+function $m_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$() {
+ if ((!$n_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$)) {
+ $n_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$ = new $c_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$()
+ };
+ return $n_Lscatan_model_components_DevelopmentCard$package$DevelopmentCards$
+}
+/** @constructor */
+function $c_Lscatan_model_components_Listable$() {
+ /**/
+}
+$c_Lscatan_model_components_Listable$.prototype = new $h_O();
+$c_Lscatan_model_components_Listable$.prototype.constructor = $c_Lscatan_model_components_Listable$;
+/** @constructor */
+function $h_Lscatan_model_components_Listable$() {
+ /**/
+}
+$h_Lscatan_model_components_Listable$.prototype = $c_Lscatan_model_components_Listable$.prototype;
+$c_Lscatan_model_components_Listable$.prototype.listOf__I__O__sci_Seq = (function(count, elem) {
+ $n($m_s_package$().s_package$__f_List);
+ var b = new $c_scm_ListBuffer();
+ var i = 0;
+ while ((i < count)) {
+ b.addOne__O__scm_ListBuffer(elem);
+ i = ((1 + i) | 0)
+ };
+ return b.toList__sci_List()
+});
+var $d_Lscatan_model_components_Listable$ = new $TypeData().initClass({
+ Lscatan_model_components_Listable$: 0
+}, false, "scatan.model.components.Listable$", {
+ Lscatan_model_components_Listable$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_Listable$.prototype.$classData = $d_Lscatan_model_components_Listable$;
+var $n_Lscatan_model_components_Listable$;
+function $m_Lscatan_model_components_Listable$() {
+ if ((!$n_Lscatan_model_components_Listable$)) {
+ $n_Lscatan_model_components_Listable$ = new $c_Lscatan_model_components_Listable$()
+ };
+ return $n_Lscatan_model_components_Listable$
+}
+/** @constructor */
+function $c_Lscatan_model_components_ResourceCard$package$ResourceCards$() {
+ /**/
+}
+$c_Lscatan_model_components_ResourceCard$package$ResourceCards$.prototype = new $h_O();
+$c_Lscatan_model_components_ResourceCard$package$ResourceCards$.prototype.constructor = $c_Lscatan_model_components_ResourceCard$package$ResourceCards$;
+/** @constructor */
+function $h_Lscatan_model_components_ResourceCard$package$ResourceCards$() {
+ /**/
+}
+$h_Lscatan_model_components_ResourceCard$package$ResourceCards$.prototype = $c_Lscatan_model_components_ResourceCard$package$ResourceCards$.prototype;
+$c_Lscatan_model_components_ResourceCard$package$ResourceCards$.prototype.empty__sci_Seq__sci_Map = (function(players) {
+ var $$x1 = $n($as_sc_IterableOnceOps($n(players).map__F1__O(new $c_sjsr_AnonFunction1(((player) => {
+ var player$1 = $as_Lscatan_model_game_config_ScatanPlayer(player);
+ var _2 = $n($m_s_package$().s_package$__f_Seq).empty__sc_SeqOps();
+ return new $c_T2(player$1, _2)
+ })))));
+ var this$3 = $m_s_$less$colon$less$();
+ return $n($$x1).toMap__s_$less$colon$less__sci_Map(this$3.s_$less$colon$less$__f_singleton)
+});
+var $d_Lscatan_model_components_ResourceCard$package$ResourceCards$ = new $TypeData().initClass({
+ Lscatan_model_components_ResourceCard$package$ResourceCards$: 0
+}, false, "scatan.model.components.ResourceCard$package$ResourceCards$", {
+ Lscatan_model_components_ResourceCard$package$ResourceCards$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_ResourceCard$package$ResourceCards$.prototype.$classData = $d_Lscatan_model_components_ResourceCard$package$ResourceCards$;
+var $n_Lscatan_model_components_ResourceCard$package$ResourceCards$;
+function $m_Lscatan_model_components_ResourceCard$package$ResourceCards$() {
+ if ((!$n_Lscatan_model_components_ResourceCard$package$ResourceCards$)) {
+ $n_Lscatan_model_components_ResourceCard$package$ResourceCards$ = new $c_Lscatan_model_components_ResourceCard$package$ResourceCards$()
+ };
+ return $n_Lscatan_model_components_ResourceCard$package$ResourceCards$
+}
+/** @constructor */
+function $c_Lscatan_model_components_Score$package$Scores$() {
+ /**/
+}
+$c_Lscatan_model_components_Score$package$Scores$.prototype = new $h_O();
+$c_Lscatan_model_components_Score$package$Scores$.prototype.constructor = $c_Lscatan_model_components_Score$package$Scores$;
+/** @constructor */
+function $h_Lscatan_model_components_Score$package$Scores$() {
+ /**/
+}
+$h_Lscatan_model_components_Score$package$Scores$.prototype = $c_Lscatan_model_components_Score$package$Scores$.prototype;
+$c_Lscatan_model_components_Score$package$Scores$.prototype.empty__sci_Seq__sci_Map = (function(players) {
+ var $$x1 = $n($as_sc_IterableOnceOps($n(players).map__F1__O(new $c_sjsr_AnonFunction1(((_$1) => {
+ var _$1$1 = $as_Lscatan_model_game_config_ScatanPlayer(_$1);
+ return new $c_T2(_$1$1, 0)
+ })))));
+ var this$4 = $m_s_$less$colon$less$();
+ return $n($$x1).toMap__s_$less$colon$less__sci_Map(this$4.s_$less$colon$less$__f_singleton)
+});
+var $d_Lscatan_model_components_Score$package$Scores$ = new $TypeData().initClass({
+ Lscatan_model_components_Score$package$Scores$: 0
+}, false, "scatan.model.components.Score$package$Scores$", {
+ Lscatan_model_components_Score$package$Scores$: 1,
+ O: 1
+});
+$c_Lscatan_model_components_Score$package$Scores$.prototype.$classData = $d_Lscatan_model_components_Score$package$Scores$;
+var $n_Lscatan_model_components_Score$package$Scores$;
+function $m_Lscatan_model_components_Score$package$Scores$() {
+ if ((!$n_Lscatan_model_components_Score$package$Scores$)) {
+ $n_Lscatan_model_components_Score$package$Scores$ = new $c_Lscatan_model_components_Score$package$Scores$()
+ };
+ return $n_Lscatan_model_components_Score$package$Scores$
+}
+/** @constructor */
+function $c_Lscatan_model_game_DevelopmentCardsDeck$package$() {
+ /**/
+}
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$.prototype = new $h_O();
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$.prototype.constructor = $c_Lscatan_model_game_DevelopmentCardsDeck$package$;
+/** @constructor */
+function $h_Lscatan_model_game_DevelopmentCardsDeck$package$() {
+ /**/
+}
+$h_Lscatan_model_game_DevelopmentCardsDeck$package$.prototype = $c_Lscatan_model_game_DevelopmentCardsDeck$package$.prototype;
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$.prototype.$times__I__Lscatan_model_components_DevelopmentType__sci_Seq = (function(int, developmentType) {
+ var this$4 = $n($m_s_package$().s_package$__f_Seq);
+ var elem = new $c_sjsr_AnonFunction0((() => {
+ var drewAt = $m_s_None$();
+ return new $c_Lscatan_model_components_DevelopmentCard(developmentType, drewAt)
+ }));
+ return $as_sci_Seq($f_sc_IterableFactory__fill__I__F0__O(this$4, int, elem))
+});
+var $d_Lscatan_model_game_DevelopmentCardsDeck$package$ = new $TypeData().initClass({
+ Lscatan_model_game_DevelopmentCardsDeck$package$: 0
+}, false, "scatan.model.game.DevelopmentCardsDeck$package$", {
+ Lscatan_model_game_DevelopmentCardsDeck$package$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$.prototype.$classData = $d_Lscatan_model_game_DevelopmentCardsDeck$package$;
+var $n_Lscatan_model_game_DevelopmentCardsDeck$package$;
+function $m_Lscatan_model_game_DevelopmentCardsDeck$package$() {
+ if ((!$n_Lscatan_model_game_DevelopmentCardsDeck$package$)) {
+ $n_Lscatan_model_game_DevelopmentCardsDeck$package$ = new $c_Lscatan_model_game_DevelopmentCardsDeck$package$()
+ };
+ return $n_Lscatan_model_game_DevelopmentCardsDeck$package$
+}
+/** @constructor */
+function $c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$() {
+ /**/
+}
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$.prototype = new $h_O();
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$.prototype.constructor = $c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$;
+/** @constructor */
+function $h_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$() {
+ /**/
+}
+$h_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$.prototype = $c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$.prototype;
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$.prototype.defaultOrdered__sci_Seq = (function() {
+ var this$1 = $n($m_Lscatan_model_game_DevelopmentCardsDeck$package$().$times__I__Lscatan_model_components_DevelopmentType__sci_Seq(14, $s_Lscatan_model_components_DevelopmentType$__Knight__Lscatan_model_components_DevelopmentType()));
+ var suffix = $m_Lscatan_model_game_DevelopmentCardsDeck$package$().$times__I__Lscatan_model_components_DevelopmentType__sci_Seq(5, $s_Lscatan_model_components_DevelopmentType$__VictoryPoint__Lscatan_model_components_DevelopmentType());
+ var this$2 = $n($as_sc_IterableOps(this$1.appendedAll__sc_IterableOnce__O(suffix)));
+ var suffix$1 = $m_Lscatan_model_game_DevelopmentCardsDeck$package$().$times__I__Lscatan_model_components_DevelopmentType__sci_Seq(2, $s_Lscatan_model_components_DevelopmentType$__RoadBuilding__Lscatan_model_components_DevelopmentType());
+ var this$3 = $n($as_sc_IterableOps(this$2.concat__sc_IterableOnce__O(suffix$1)));
+ var suffix$2 = $m_Lscatan_model_game_DevelopmentCardsDeck$package$().$times__I__Lscatan_model_components_DevelopmentType__sci_Seq(2, $s_Lscatan_model_components_DevelopmentType$__YearOfPlenty__Lscatan_model_components_DevelopmentType());
+ var this$4 = $n($as_sc_IterableOps(this$3.concat__sc_IterableOnce__O(suffix$2)));
+ var suffix$3 = $m_Lscatan_model_game_DevelopmentCardsDeck$package$().$times__I__Lscatan_model_components_DevelopmentType__sci_Seq(2, $s_Lscatan_model_components_DevelopmentType$__Monopoly__Lscatan_model_components_DevelopmentType());
+ return $as_sci_Seq(this$4.concat__sc_IterableOnce__O(suffix$3))
+});
+var $d_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$ = new $TypeData().initClass({
+ Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$: 0
+}, false, "scatan.model.game.DevelopmentCardsDeck$package$DevelopmentCardsDeck$", {
+ Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$.prototype.$classData = $d_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$;
+var $n_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$;
+function $m_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$() {
+ if ((!$n_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$)) {
+ $n_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$ = new $c_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$()
+ };
+ return $n_Lscatan_model_game_DevelopmentCardsDeck$package$DevelopmentCardsDeck$
+}
+/** @constructor */
+function $c_Lscatan_model_game_ScatanGame$() {
+ /**/
+}
+$c_Lscatan_model_game_ScatanGame$.prototype = new $h_O();
+$c_Lscatan_model_game_ScatanGame$.prototype.constructor = $c_Lscatan_model_game_ScatanGame$;
+/** @constructor */
+function $h_Lscatan_model_game_ScatanGame$() {
+ /**/
+}
+$h_Lscatan_model_game_ScatanGame$.prototype = $c_Lscatan_model_game_ScatanGame$.prototype;
+$c_Lscatan_model_game_ScatanGame$.prototype.apply__sci_Seq__Lscatan_model_game_ScatanGame = (function(players) {
+ var $$x1 = $m_Lscatan_lib_game_Game$();
+ var this$1 = $m_Lscatan_model_game_ScatanDSL$();
+ return new $c_Lscatan_model_game_ScatanGame($n($$x1).apply__sci_Seq__Lscatan_lib_game_Rules__Lscatan_lib_game_Game(players, $n(this$1.Lscatan_model_game_ScatanDSL$__f_scatan$lib$game$dsl$GameDSL$$typedDSL).Lscatan_lib_game_dsl_GameDSL$$anon$1__f_rules))
+});
+var $d_Lscatan_model_game_ScatanGame$ = new $TypeData().initClass({
+ Lscatan_model_game_ScatanGame$: 0
+}, false, "scatan.model.game.ScatanGame$", {
+ Lscatan_model_game_ScatanGame$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_ScatanGame$.prototype.$classData = $d_Lscatan_model_game_ScatanGame$;
+var $n_Lscatan_model_game_ScatanGame$;
+function $m_Lscatan_model_game_ScatanGame$() {
+ if ((!$n_Lscatan_model_game_ScatanGame$)) {
+ $n_Lscatan_model_game_ScatanGame$ = new $c_Lscatan_model_game_ScatanGame$()
+ };
+ return $n_Lscatan_model_game_ScatanGame$
+}
+function $f_Lscatan_model_game_ScatanGameStatus__allowedActions__sci_Set($thiz) {
+ return $as_sci_Set($n($m_Lscatan_lib_game_ops_GamePlayOps$().allowedActions__Lscatan_lib_game_Game__sci_Set($thiz.Lscatan_model_game_ScatanGame__f_game)).filter__F1__O(new $c_sjsr_AnonFunction1(((_$1) => {
+ var _$1$1 = $as_Lscatan_model_game_config_ScatanActions(_$1);
+ var x$2 = $s_Lscatan_model_game_config_ScatanActions$__RollSeven__Lscatan_model_game_config_ScatanActions();
+ if ((_$1$1 === null)) {
+ var $$x1 = (x$2 === null)
+ } else {
+ var this$1 = $n(_$1$1);
+ var $$x1 = (this$1 === x$2)
+ };
+ return (!$$x1)
+ }))))
+}
+function $is_Lscatan_model_game_config_ScatanPlayer(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_model_game_config_ScatanPlayer)))
+}
+function $as_Lscatan_model_game_config_ScatanPlayer(obj) {
+ return (($is_Lscatan_model_game_config_ScatanPlayer(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.model.game.config.ScatanPlayer"))
+}
+function $isArrayOf_Lscatan_model_game_config_ScatanPlayer(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_model_game_config_ScatanPlayer)))
+}
+function $asArrayOf_Lscatan_model_game_config_ScatanPlayer(obj, depth) {
+ return (($isArrayOf_Lscatan_model_game_config_ScatanPlayer(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.model.game.config.ScatanPlayer;", depth))
+}
+/** @constructor */
+function $c_Lscatan_model_game_ops_AwardOps$() {
+ /**/
+}
+$c_Lscatan_model_game_ops_AwardOps$.prototype = new $h_O();
+$c_Lscatan_model_game_ops_AwardOps$.prototype.constructor = $c_Lscatan_model_game_ops_AwardOps$;
+/** @constructor */
+function $h_Lscatan_model_game_ops_AwardOps$() {
+ /**/
+}
+$h_Lscatan_model_game_ops_AwardOps$.prototype = $c_Lscatan_model_game_ops_AwardOps$.prototype;
+$c_Lscatan_model_game_ops_AwardOps$.prototype.awards__Lscatan_model_game_ScatanState__sci_Map = (function(state) {
+ var $$x1 = $n(state).Lscatan_model_game_ScatanState__f_assignedAwards;
+ var awardType = $s_Lscatan_model_components_AwardType$__LongestRoad__Lscatan_model_components_AwardType();
+ var precedentLongestRoad = $as_s_Option($n($$x1).apply__O__O(new $c_Lscatan_model_components_Award(awardType)));
+ var this$11 = $n($m_Lscatan_model_components_AssignedBuildingsAdapter$().asPlayerMap__sci_ListMap__sci_Map($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings));
+ var this$2 = $n(precedentLongestRoad);
+ if (this$2.isEmpty__Z()) {
+ var _1 = new $c_Lscatan_model_game_config_ScatanPlayerImpl("");
+ var z = new $c_T2(_1, 0)
+ } else {
+ var z = this$2.get__O()
+ };
+ var f = ((playerWithLongestRoad, buildingsOfPlayer) => {
+ var playerWithLongestRoad$1 = $as_T2(playerWithLongestRoad);
+ var buildingsOfPlayer$1 = $as_T2(buildingsOfPlayer);
+ var roads = $as_sci_Seq($n($as_sc_IterableOps($n(buildingsOfPlayer$1)._2__O())).filter__F1__O(new $c_sjsr_AnonFunction1(((_$1) => {
+ var _$1$1 = $as_Lscatan_model_components_BuildingType(_$1);
+ var x$2 = $s_Lscatan_model_components_BuildingType$__Road__Lscatan_model_components_BuildingType();
+ if ((_$1$1 === null)) {
+ return (x$2 === null)
+ } else {
+ var this$6 = $n(_$1$1);
+ return (this$6 === x$2)
+ }
+ }))));
+ var this$7 = $n(roads);
+ var size = $uI($n(playerWithLongestRoad$1)._2__O());
+ if ((this$7.lengthCompare__I__I(size) > 0)) {
+ var _1$1 = $n(buildingsOfPlayer$1)._1__O();
+ var this$9 = $n(roads);
+ var _2 = this$9.length__I();
+ return new $c_T2(_1$1, _2)
+ } else {
+ return playerWithLongestRoad$1
+ }
+ });
+ if ($is_sc_IndexedSeq(this$11)) {
+ var x2 = $as_sc_IndexedSeq(this$11);
+ var at = 0;
+ var end = $n(x2).length__I();
+ var acc = z;
+ var $$x2;
+ while (true) {
+ if ((at !== end)) {
+ var temp$at = ((1 + at) | 0);
+ var arg1 = acc;
+ var arg2 = $n(x2).apply__I__O(at);
+ var temp$acc = f(arg1, arg2);
+ at = temp$at;
+ acc = temp$acc;
+ continue
+ };
+ var $$x2 = acc;
+ break
+ }
+ } else {
+ var result = z;
+ var it = this$11.iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1$1 = result;
+ var arg2$1 = $n(it).next__O();
+ result = f(arg1$1, arg2$1)
+ };
+ var $$x2 = result
+ };
+ var longestRoad = $as_T2($$x2);
+ var $$x3 = $n(state).Lscatan_model_game_ScatanState__f_assignedAwards;
+ var awardType$1 = $s_Lscatan_model_components_AwardType$__LargestArmy__Lscatan_model_components_AwardType();
+ var precedentLargestArmy = $as_s_Option($n($$x3).apply__O__O(new $c_Lscatan_model_components_Award(awardType$1)));
+ var this$22 = $n($n(state).Lscatan_model_game_ScatanState__f_developmentCards);
+ var this$13 = $n(precedentLargestArmy);
+ if (this$13.isEmpty__Z()) {
+ var _1$2 = new $c_Lscatan_model_game_config_ScatanPlayerImpl("");
+ var z$1 = new $c_T2(_1$2, 0)
+ } else {
+ var z$1 = this$13.get__O()
+ };
+ var f$1 = ((playerWithLargestArmy, cardsOfPlayer) => {
+ var playerWithLargestArmy$1 = $as_T2(playerWithLargestArmy);
+ var cardsOfPlayer$1 = $as_T2(cardsOfPlayer);
+ var knights = $as_sci_Seq($n($as_sc_IterableOps($n(cardsOfPlayer$1)._2__O())).filter__F1__O(new $c_sjsr_AnonFunction1(((_$2) => {
+ var _$2$1 = $as_Lscatan_model_components_DevelopmentCard(_$2);
+ var x = $n(_$2$1).Lscatan_model_components_DevelopmentCard__f_developmentType;
+ var x$2$1 = $s_Lscatan_model_components_DevelopmentType$__Knight__Lscatan_model_components_DevelopmentType();
+ if ((x === null)) {
+ return (x$2$1 === null)
+ } else {
+ var this$17 = $n(x);
+ return (this$17 === x$2$1)
+ }
+ }))));
+ var this$18 = $n(knights);
+ var size$1 = $uI($n(playerWithLargestArmy$1)._2__O());
+ if ((this$18.lengthCompare__I__I(size$1) > 0)) {
+ var _1$3 = $n(cardsOfPlayer$1)._1__O();
+ var this$20 = $n(knights);
+ var _2$1 = this$20.length__I();
+ return new $c_T2(_1$3, _2$1)
+ } else {
+ return playerWithLargestArmy$1
+ }
+ });
+ if ($is_sc_IndexedSeq(this$22)) {
+ var x2$1 = $as_sc_IndexedSeq(this$22);
+ var at$1 = 0;
+ var end$1 = $n(x2$1).length__I();
+ var acc$1 = z$1;
+ var $$x4;
+ while (true) {
+ if ((at$1 !== end$1)) {
+ var temp$at$1 = ((1 + at$1) | 0);
+ var arg1$2 = acc$1;
+ var arg2$2 = $n(x2$1).apply__I__O(at$1);
+ var temp$acc$1 = f$1(arg1$2, arg2$2);
+ at$1 = temp$at$1;
+ acc$1 = temp$acc$1;
+ continue
+ };
+ var $$x4 = acc$1;
+ break
+ }
+ } else {
+ var result$1 = z$1;
+ var it$1 = this$22.iterator__sc_Iterator();
+ while ($n(it$1).hasNext__Z()) {
+ var arg1$3 = result$1;
+ var arg2$3 = $n(it$1).next__O();
+ result$1 = f$1(arg1$3, arg2$3)
+ };
+ var $$x4 = result$1
+ };
+ var largestArmy = $as_T2($$x4);
+ var this$33 = $n($m_s_Predef$().s_Predef$__f_Map);
+ var $$x6 = $m_sr_ScalaRunTime$();
+ var awardType$2 = $s_Lscatan_model_components_AwardType$__LongestRoad__Lscatan_model_components_AwardType();
+ var self = new $c_Lscatan_model_components_Award(awardType$2);
+ if (($uI($n(longestRoad)._2__O()) >= 5)) {
+ var _1$4 = $n(longestRoad)._1__O();
+ var _2$2 = $n(longestRoad)._2__O();
+ var value = new $c_T2(_1$4, _2$2);
+ var y = new $c_s_Some(value)
+ } else {
+ var y = precedentLongestRoad
+ };
+ var $$x5 = new $c_T2(self, y);
+ var awardType$3 = $s_Lscatan_model_components_AwardType$__LargestArmy__Lscatan_model_components_AwardType();
+ var self$1 = new $c_Lscatan_model_components_Award(awardType$3);
+ if (($uI($n(largestArmy)._2__O()) >= 3)) {
+ var _1$5 = $n(largestArmy)._1__O();
+ var _2$3 = $n(largestArmy)._2__O();
+ var value$1 = new $c_T2(_1$5, _2$3);
+ var y$1 = new $c_s_Some(value$1)
+ } else {
+ var y$1 = precedentLargestArmy
+ };
+ var elems = $n($$x6).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x5, new $c_T2(self$1, y$1)]));
+ return this$33.from__sc_IterableOnce__sci_Map(elems)
+});
+var $d_Lscatan_model_game_ops_AwardOps$ = new $TypeData().initClass({
+ Lscatan_model_game_ops_AwardOps$: 0
+}, false, "scatan.model.game.ops.AwardOps$", {
+ Lscatan_model_game_ops_AwardOps$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_ops_AwardOps$.prototype.$classData = $d_Lscatan_model_game_ops_AwardOps$;
+var $n_Lscatan_model_game_ops_AwardOps$;
+function $m_Lscatan_model_game_ops_AwardOps$() {
+ if ((!$n_Lscatan_model_game_ops_AwardOps$)) {
+ $n_Lscatan_model_game_ops_AwardOps$ = new $c_Lscatan_model_game_ops_AwardOps$()
+ };
+ return $n_Lscatan_model_game_ops_AwardOps$
+}
+function $p_Lscatan_model_game_ops_BuildingOps$__verifyResourceCost__Lscatan_model_game_ScatanState__Lscatan_model_game_config_ScatanPlayer__sci_Map__Z($thiz, state, player, cost) {
+ var this$4 = $n(cost);
+ var f = ((result, resourceCost) => {
+ var result$1 = $uZ(result);
+ var resourceCost$1 = $as_T2(resourceCost);
+ if (result$1) {
+ var this$2 = $n($as_sc_IterableOnceOps($n($n(state).Lscatan_model_game_ScatanState__f_resourceCards).apply__O__O(player)));
+ var res = 0;
+ var it = $n($as_sc_IterableOnce(this$2)).iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1 = $n(it).next__O();
+ var _$1 = $as_Lscatan_model_components_ResourceCard(arg1);
+ var x = $n(_$1).Lscatan_model_components_ResourceCard__f_resourceType;
+ var x$2 = $n(resourceCost$1)._1__O();
+ if ((x === null)) {
+ var $$x1 = (x$2 === null)
+ } else {
+ var this$3 = $n(x);
+ var $$x1 = (this$3 === x$2)
+ };
+ if ($$x1) {
+ res = ((1 + res) | 0)
+ }
+ };
+ return (res >= $uI($n(resourceCost$1)._2__O()))
+ } else {
+ return false
+ }
+ });
+ if ($is_sc_IndexedSeq(this$4)) {
+ var x2 = $as_sc_IndexedSeq(this$4);
+ var at = 0;
+ var end = $n(x2).length__I();
+ var acc = true;
+ var $$x2;
+ while (true) {
+ if ((at !== end)) {
+ var temp$at = ((1 + at) | 0);
+ var arg1$1 = acc;
+ var arg2 = $n(x2).apply__I__O(at);
+ var temp$acc = f(arg1$1, arg2);
+ at = temp$at;
+ acc = temp$acc;
+ continue
+ };
+ var $$x2 = acc;
+ break
+ }
+ } else {
+ var result$2 = true;
+ var it$1 = this$4.iterator__sc_Iterator();
+ while ($n(it$1).hasNext__Z()) {
+ var arg1$2 = result$2;
+ var arg2$1 = $n(it$1).next__O();
+ result$2 = f(arg1$2, arg2$1)
+ };
+ var $$x2 = result$2
+ };
+ return $uZ($$x2)
+}
+/** @constructor */
+function $c_Lscatan_model_game_ops_BuildingOps$() {
+ /**/
+}
+$c_Lscatan_model_game_ops_BuildingOps$.prototype = new $h_O();
+$c_Lscatan_model_game_ops_BuildingOps$.prototype.constructor = $c_Lscatan_model_game_ops_BuildingOps$;
+/** @constructor */
+function $h_Lscatan_model_game_ops_BuildingOps$() {
+ /**/
+}
+$h_Lscatan_model_game_ops_BuildingOps$.prototype = $c_Lscatan_model_game_ops_BuildingOps$.prototype;
+$c_Lscatan_model_game_ops_BuildingOps$.prototype.build__Lscatan_model_game_ScatanState__Ljava_io_Serializable__Lscatan_model_components_BuildingType__Lscatan_model_game_config_ScatanPlayer__s_Option = (function(state, position, buildingType, player) {
+ if ($p_Lscatan_model_game_ops_BuildingOps$__verifyResourceCost__Lscatan_model_game_ScatanState__Lscatan_model_game_config_ScatanPlayer__sci_Map__Z(this, state, player, $n(buildingType).Lscatan_model_components_BuildingType__f_cost)) {
+ var this$3 = $n($n(buildingType).Lscatan_model_components_BuildingType__f_cost);
+ var z = $n($n(state).Lscatan_model_game_ScatanState__f_resourceCards).apply__O__O(player);
+ var f = ((cards, resourceCost) => {
+ var cards$1 = $as_sci_Seq(cards);
+ var resourceCost$1 = $as_T2(resourceCost);
+ return $as_sci_Seq($n($as_sc_IterableOps($n(cards$1).filter__F1__O(new $c_sjsr_AnonFunction1(((_$2) => {
+ var _$2$1 = $as_Lscatan_model_components_ResourceCard(_$2);
+ var x = $n(_$2$1).Lscatan_model_components_ResourceCard__f_resourceType;
+ var x$2 = $n(resourceCost$1)._1__O();
+ if ((x === null)) {
+ var $$x1 = (x$2 === null)
+ } else {
+ var this$2 = $n(x);
+ var $$x1 = (this$2 === x$2)
+ };
+ return (!$$x1)
+ }))))).drop__I__O($uI($n(resourceCost$1)._2__O())))
+ });
+ if ($is_sc_IndexedSeq(this$3)) {
+ var x2 = $as_sc_IndexedSeq(this$3);
+ var at = 0;
+ var end = $n(x2).length__I();
+ var acc = z;
+ var $$x2;
+ while (true) {
+ if ((at !== end)) {
+ var temp$at = ((1 + at) | 0);
+ var arg1 = acc;
+ var arg2 = $n(x2).apply__I__O(at);
+ var temp$acc = f(arg1, arg2);
+ at = temp$at;
+ acc = temp$acc;
+ continue
+ };
+ var $$x2 = acc;
+ break
+ }
+ } else {
+ var result = z;
+ var it = this$3.iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1$1 = result;
+ var arg2$1 = $n(it).next__O();
+ result = f(arg1$1, arg2$1)
+ };
+ var $$x2 = result
+ };
+ var remainingResourceCards = $as_sci_Seq($$x2);
+ var gameWithBuildingAssigned = this.assignBuilding__Lscatan_model_game_ScatanState__Ljava_io_Serializable__Lscatan_model_components_BuildingType__Lscatan_model_game_config_ScatanPlayer__s_Option(state, position, buildingType, player);
+ if ((gameWithBuildingAssigned instanceof $c_s_Some)) {
+ var game = $as_Lscatan_model_game_ScatanState($n($as_s_Some(gameWithBuildingAssigned)).s_Some__f_value);
+ var resourceCards$1 = $as_sci_Map($n($n(game).Lscatan_model_game_ScatanState__f_resourceCards).updated__O__O__sci_MapOps(player, remainingResourceCards));
+ var assignedAwards$1 = $m_Lscatan_model_game_ops_AwardOps$().awards__Lscatan_model_game_ScatanState__sci_Map(game);
+ var this$4 = $n(game);
+ var players$1 = this$4.Lscatan_model_game_ScatanState__f_players;
+ var this$5 = $n(game);
+ var gameMap$1 = this$5.Lscatan_model_game_ScatanState__f_gameMap;
+ var this$6 = $n(game);
+ var assignedBuildings$1 = this$6.Lscatan_model_game_ScatanState__f_assignedBuildings;
+ var this$7 = $n(game);
+ var developmentCards$1 = this$7.Lscatan_model_game_ScatanState__f_developmentCards;
+ var this$8 = $n(game);
+ var developmentCardsDeck$1 = this$8.Lscatan_model_game_ScatanState__f_developmentCardsDeck;
+ var this$9 = $n(game);
+ var robberPlacement$1 = this$9.Lscatan_model_game_ScatanState__f_robberPlacement;
+ $n(game);
+ var value = new $c_Lscatan_model_game_ScatanState(players$1, gameMap$1, assignedBuildings$1, assignedAwards$1, resourceCards$1, developmentCards$1, developmentCardsDeck$1, robberPlacement$1);
+ return new $c_s_Some(value)
+ };
+ var x$1 = $m_s_None$();
+ if ((x$1 === gameWithBuildingAssigned)) {
+ return $m_s_None$()
+ };
+ throw new $c_s_MatchError(gameWithBuildingAssigned)
+ } else {
+ return $m_s_None$()
+ }
+});
+$c_Lscatan_model_game_ops_BuildingOps$.prototype.assignBuilding__Lscatan_model_game_ScatanState__Ljava_io_Serializable__Lscatan_model_components_BuildingType__Lscatan_model_game_config_ScatanPlayer__s_Option = (function(state, spot, buildingType, player) {
+ var x = $s_Lscatan_model_components_BuildingType$__City__Lscatan_model_components_BuildingType();
+ if ((x === null)) {
+ var $$x1 = (buildingType === null)
+ } else {
+ var this$1 = $n(x);
+ var $$x1 = (this$1 === buildingType)
+ };
+ if ($$x1) {
+ var x4 = $as_Lscatan_model_components_AssignmentInfo($n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings).apply__O__O(spot));
+ if ((x4 !== null)) {
+ var x5 = $m_Lscatan_model_components_AssignmentInfo$().unapply__Lscatan_model_components_AssignmentInfo__s_Option(x4);
+ if ((!$n(x5).isEmpty__Z())) {
+ var x6 = $as_T2($n(x5).get__O());
+ var x$4 = $n(x6)._1__O();
+ if (((player === null) ? (x$4 === null) : $n(player).equals__O__Z(x$4))) {
+ var x$5 = $s_Lscatan_model_components_BuildingType$__Settlement__Lscatan_model_components_BuildingType();
+ var x$6 = $n(x6)._2__O();
+ if ((x$5 === null)) {
+ var $$x2 = (x$6 === null)
+ } else {
+ var this$2 = $n(x$5);
+ var $$x2 = (this$2 === x$6)
+ }
+ } else {
+ var $$x2 = false
+ };
+ if ($$x2) {
+ var assignedBuildings$2 = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings).updated__O__O__sci_ListMap(spot, new $c_Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl(player, buildingType));
+ var assignedAwards$2 = $m_Lscatan_model_game_ops_AwardOps$().awards__Lscatan_model_game_ScatanState__sci_Map(state);
+ var this$5 = $n(state);
+ var players$2 = this$5.Lscatan_model_game_ScatanState__f_players;
+ var this$6 = $n(state);
+ var gameMap$2 = this$6.Lscatan_model_game_ScatanState__f_gameMap;
+ var this$7 = $n(state);
+ var resourceCards$2 = this$7.Lscatan_model_game_ScatanState__f_resourceCards;
+ var this$8 = $n(state);
+ var developmentCards$2 = this$8.Lscatan_model_game_ScatanState__f_developmentCards;
+ var this$9 = $n(state);
+ var developmentCardsDeck$2 = this$9.Lscatan_model_game_ScatanState__f_developmentCardsDeck;
+ var this$10 = $n(state);
+ var robberPlacement$2 = this$10.Lscatan_model_game_ScatanState__f_robberPlacement;
+ $n(state);
+ var value = new $c_Lscatan_model_game_ScatanState(players$2, gameMap$2, assignedBuildings$2, assignedAwards$2, resourceCards$2, developmentCards$2, developmentCardsDeck$2, robberPlacement$2);
+ return new $c_s_Some(value)
+ }
+ }
+ };
+ return $m_s_None$()
+ };
+ var x$7 = $s_Lscatan_model_components_BuildingType$__Settlement__Lscatan_model_components_BuildingType();
+ if ((x$7 === null)) {
+ var $$x3 = (buildingType === null)
+ } else {
+ var this$13 = $n(x$7);
+ var $$x3 = (this$13 === buildingType)
+ };
+ if ($$x3) {
+ if ($n($m_Lscatan_model_game_ops_EmptySpotsOps$().emptyStructureSpot__Lscatan_model_game_ScatanState__sci_Seq(state)).contains__O__Z(spot)) {
+ var assignedBuildings$3 = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings).updated__O__O__sci_ListMap(spot, new $c_Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl(player, buildingType));
+ var assignedAwards$3 = $m_Lscatan_model_game_ops_AwardOps$().awards__Lscatan_model_game_ScatanState__sci_Map(state);
+ var this$16 = $n(state);
+ var players$3 = this$16.Lscatan_model_game_ScatanState__f_players;
+ var this$17 = $n(state);
+ var gameMap$3 = this$17.Lscatan_model_game_ScatanState__f_gameMap;
+ var this$18 = $n(state);
+ var resourceCards$3 = this$18.Lscatan_model_game_ScatanState__f_resourceCards;
+ var this$19 = $n(state);
+ var developmentCards$3 = this$19.Lscatan_model_game_ScatanState__f_developmentCards;
+ var this$20 = $n(state);
+ var developmentCardsDeck$3 = this$20.Lscatan_model_game_ScatanState__f_developmentCardsDeck;
+ var this$21 = $n(state);
+ var robberPlacement$3 = this$21.Lscatan_model_game_ScatanState__f_robberPlacement;
+ $n(state);
+ var value$1 = new $c_Lscatan_model_game_ScatanState(players$3, gameMap$3, assignedBuildings$3, assignedAwards$3, resourceCards$3, developmentCards$3, developmentCardsDeck$3, robberPlacement$3);
+ return new $c_s_Some(value$1)
+ } else {
+ return $m_s_None$()
+ }
+ };
+ var x$9 = $s_Lscatan_model_components_BuildingType$__Road__Lscatan_model_components_BuildingType();
+ if ((x$9 === null)) {
+ var $$x4 = (buildingType === null)
+ } else {
+ var this$24 = $n(x$9);
+ var $$x4 = (this$24 === buildingType)
+ };
+ if ($$x4) {
+ if ($n($m_Lscatan_model_game_ops_EmptySpotsOps$().emptyRoadSpot__Lscatan_model_game_ScatanState__sci_Seq(state)).contains__O__Z(spot)) {
+ var assignedBuildings$4 = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings).updated__O__O__sci_ListMap(spot, new $c_Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl(player, buildingType));
+ var assignedAwards$4 = $m_Lscatan_model_game_ops_AwardOps$().awards__Lscatan_model_game_ScatanState__sci_Map(state);
+ var this$27 = $n(state);
+ var players$4 = this$27.Lscatan_model_game_ScatanState__f_players;
+ var this$28 = $n(state);
+ var gameMap$4 = this$28.Lscatan_model_game_ScatanState__f_gameMap;
+ var this$29 = $n(state);
+ var resourceCards$4 = this$29.Lscatan_model_game_ScatanState__f_resourceCards;
+ var this$30 = $n(state);
+ var developmentCards$4 = this$30.Lscatan_model_game_ScatanState__f_developmentCards;
+ var this$31 = $n(state);
+ var developmentCardsDeck$4 = this$31.Lscatan_model_game_ScatanState__f_developmentCardsDeck;
+ var this$32 = $n(state);
+ var robberPlacement$4 = this$32.Lscatan_model_game_ScatanState__f_robberPlacement;
+ $n(state);
+ var value$2 = new $c_Lscatan_model_game_ScatanState(players$4, gameMap$4, assignedBuildings$4, assignedAwards$4, resourceCards$4, developmentCards$4, developmentCardsDeck$4, robberPlacement$4);
+ return new $c_s_Some(value$2)
+ } else {
+ return $m_s_None$()
+ }
+ };
+ throw new $c_s_MatchError(buildingType)
+});
+var $d_Lscatan_model_game_ops_BuildingOps$ = new $TypeData().initClass({
+ Lscatan_model_game_ops_BuildingOps$: 0
+}, false, "scatan.model.game.ops.BuildingOps$", {
+ Lscatan_model_game_ops_BuildingOps$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_ops_BuildingOps$.prototype.$classData = $d_Lscatan_model_game_ops_BuildingOps$;
+var $n_Lscatan_model_game_ops_BuildingOps$;
+function $m_Lscatan_model_game_ops_BuildingOps$() {
+ if ((!$n_Lscatan_model_game_ops_BuildingOps$)) {
+ $n_Lscatan_model_game_ops_BuildingOps$ = new $c_Lscatan_model_game_ops_BuildingOps$()
+ };
+ return $n_Lscatan_model_game_ops_BuildingOps$
+}
+function $p_Lscatan_model_game_ops_CardOps$__assignResourceFromHexagonsAndBuildings__Lscatan_model_game_ScatanState__sci_Map__sci_ListMap__s_Option($thiz, state, hexagonsWithTileContent, buildings) {
+ var this$1 = $n(buildings);
+ var b = new $c_sci_ListMapBuilder();
+ var it = this$1.iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var elem = $n(it).next__O();
+ var x$1 = $as_T2(elem);
+ var s = $as_Ljava_io_Serializable($n(x$1)._1__O());
+ $as_Lscatan_model_components_AssignmentInfo($n(x$1)._2__O());
+ matchResult1: {
+ var $$x1;
+ if ((s instanceof $c_Lscatan_utils_UnorderedTriple)) {
+ var structure = $as_Lscatan_utils_UnorderedTriple(s);
+ var $$x2 = $n(structure).Lscatan_utils_UnorderedTriple__f__set;
+ var this$4 = $n($n(hexagonsWithTileContent).keys__sc_Iterable());
+ var this$5 = $n($n($$x2).intersect__sc_Set__sc_SetOps($m_sci_Set$().from__sc_IterableOnce__sci_Set(this$4)));
+ var $$x1 = (!this$5.isEmpty__Z());
+ break matchResult1
+ };
+ if ((s instanceof $c_Lscatan_utils_UnorderedPair)) {
+ var $$x1 = false;
+ break matchResult1
+ };
+ throw new $c_s_MatchError(s)
+ };
+ if (($$x1 !== false)) {
+ var elem$1 = $as_T2(elem);
+ b.addOne__O__O__sci_ListMapBuilder($n(elem$1)._1__O(), $n(elem$1)._2__O())
+ }
+ };
+ var buildingsInHexagonsSpots = b.result__sci_ListMap();
+ var this$20 = $n(buildingsInHexagonsSpots);
+ var z = $n(state).Lscatan_model_game_ScatanState__f_resourceCards;
+ var f$1 = ((resourceOfPlayer, buildingInAssignedSpot) => {
+ var resourceOfPlayer$1 = $as_sci_Map(resourceOfPlayer);
+ var buildingInAssignedSpot$1 = $as_T2(buildingInAssignedSpot);
+ var x10 = $as_Ljava_io_Serializable($n(buildingInAssignedSpot$1)._1__O());
+ if ((x10 instanceof $c_Lscatan_utils_UnorderedTriple)) {
+ var structure$1 = $as_Lscatan_utils_UnorderedTriple(x10);
+ var resourceToAdd = $as_sci_Set($n($n(structure$1).Lscatan_utils_UnorderedTriple__f__set).collect__s_PartialFunction__O(hexagonsWithTileContent));
+ var this$19 = $n(resourceToAdd);
+ var f = ((resourceOfPlayer$2, resource) => {
+ var resourceOfPlayer$3 = $as_sci_Map(resourceOfPlayer$2);
+ var resource$1 = $as_Lscatan_model_map_TileContent(resource);
+ if ((resource$1 !== null)) {
+ var this$8 = $n(resource$1);
+ var x7 = this$8.Lscatan_model_map_TileContent__f_terrain;
+ var this$9 = $n(resource$1);
+ if ((x7 instanceof $c_Lscatan_model_components_ResourceType)) {
+ var terrain = $as_Lscatan_model_components_ResourceType(x7);
+ var x4 = $n($as_Lscatan_model_components_AssignmentInfo($n(buildingInAssignedSpot$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_buildingType;
+ var x = $s_Lscatan_model_components_BuildingType$__Settlement__Lscatan_model_components_BuildingType();
+ if ((x === null)) {
+ var $$x3 = (x4 === null)
+ } else {
+ var this$10 = $n(x);
+ var $$x3 = (this$10 === x4)
+ };
+ if ($$x3) {
+ var $$x4 = $n($as_Lscatan_model_components_AssignmentInfo($n(buildingInAssignedSpot$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player;
+ var this$12 = $n($as_sc_SeqOps($n(resourceOfPlayer$3).apply__O__O($n($as_Lscatan_model_components_AssignmentInfo($n(buildingInAssignedSpot$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player)));
+ var elem$2 = new $c_Lscatan_model_components_ResourceCard(terrain);
+ return $as_sci_Map($n(resourceOfPlayer$3).updated__O__O__sci_MapOps($$x4, this$12.appended__O__O(elem$2)))
+ };
+ var x$3 = $s_Lscatan_model_components_BuildingType$__City__Lscatan_model_components_BuildingType();
+ if ((x$3 === null)) {
+ var $$x5 = (x4 === null)
+ } else {
+ var this$13 = $n(x$3);
+ var $$x5 = (this$13 === x4)
+ };
+ if ($$x5) {
+ var $$x6 = $n($as_Lscatan_model_components_AssignmentInfo($n(buildingInAssignedSpot$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player;
+ var this$15 = $n($as_sc_SeqOps($n(resourceOfPlayer$3).apply__O__O($n($as_Lscatan_model_components_AssignmentInfo($n(buildingInAssignedSpot$1)._2__O())).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player)));
+ var elem$3 = new $c_Lscatan_model_components_ResourceCard(terrain);
+ var this$17 = $n($as_sc_SeqOps(this$15.appended__O__O(elem$3)));
+ var elem$4 = new $c_Lscatan_model_components_ResourceCard(terrain);
+ return $as_sci_Map($n(resourceOfPlayer$3).updated__O__O__sci_MapOps($$x6, this$17.appended__O__O(elem$4)))
+ };
+ var x$5 = $s_Lscatan_model_components_BuildingType$__Road__Lscatan_model_components_BuildingType();
+ if ((x$5 === null)) {
+ var $$x7 = (x4 === null)
+ } else {
+ var this$18 = $n(x$5);
+ var $$x7 = (this$18 === x4)
+ };
+ if ($$x7) {
+ return resourceOfPlayer$3
+ };
+ throw new $c_s_MatchError(x4)
+ }
+ };
+ return resourceOfPlayer$3
+ });
+ if ($is_sc_IndexedSeq(this$19)) {
+ var x2 = $as_sc_IndexedSeq(this$19);
+ var at = 0;
+ var end = $n(x2).length__I();
+ var acc = resourceOfPlayer$1;
+ var $$x8;
+ while (true) {
+ if ((at !== end)) {
+ var temp$at = ((1 + at) | 0);
+ var arg1 = acc;
+ var arg2 = $n(x2).apply__I__O(at);
+ var temp$acc = f(arg1, arg2);
+ at = temp$at;
+ acc = temp$acc;
+ continue
+ };
+ var $$x8 = acc;
+ break
+ }
+ } else {
+ var result = resourceOfPlayer$1;
+ var it$1 = this$19.iterator__sc_Iterator();
+ while ($n(it$1).hasNext__Z()) {
+ var arg1$1 = result;
+ var arg2$1 = $n(it$1).next__O();
+ result = f(arg1$1, arg2$1)
+ };
+ var $$x8 = result
+ };
+ return $as_sci_Map($$x8)
+ };
+ return resourceOfPlayer$1
+ });
+ if ($is_sc_IndexedSeq(this$20)) {
+ var x2$1 = $as_sc_IndexedSeq(this$20);
+ var at$1 = 0;
+ var end$1 = $n(x2$1).length__I();
+ var acc$1 = z;
+ var $$x9;
+ while (true) {
+ if ((at$1 !== end$1)) {
+ var temp$at$1 = ((1 + at$1) | 0);
+ var arg1$2 = acc$1;
+ var arg2$2 = $n(x2$1).apply__I__O(at$1);
+ var temp$acc$1 = f$1(arg1$2, arg2$2);
+ at$1 = temp$at$1;
+ acc$1 = temp$acc$1;
+ continue
+ };
+ var $$x9 = acc$1;
+ break
+ }
+ } else {
+ var result$1 = z;
+ var it$2 = this$20.iterator__sc_Iterator();
+ while ($n(it$2).hasNext__Z()) {
+ var arg1$3 = result$1;
+ var arg2$3 = $n(it$2).next__O();
+ result$1 = f$1(arg1$3, arg2$3)
+ };
+ var $$x9 = result$1
+ };
+ var resourceCardsUpdated = $as_sci_Map($$x9);
+ $n(state);
+ var this$21 = $n(state);
+ var players = this$21.Lscatan_model_game_ScatanState__f_players;
+ var this$22 = $n(state);
+ var gameMap = this$22.Lscatan_model_game_ScatanState__f_gameMap;
+ var this$23 = $n(state);
+ var assignedBuildings = this$23.Lscatan_model_game_ScatanState__f_assignedBuildings;
+ var this$24 = $n(state);
+ var assignedAwards = this$24.Lscatan_model_game_ScatanState__f_assignedAwards;
+ var this$25 = $n(state);
+ var developmentCards = this$25.Lscatan_model_game_ScatanState__f_developmentCards;
+ var this$26 = $n(state);
+ var developmentCardsDeck = this$26.Lscatan_model_game_ScatanState__f_developmentCardsDeck;
+ var this$27 = $n(state);
+ var robberPlacement = this$27.Lscatan_model_game_ScatanState__f_robberPlacement;
+ var value = new $c_Lscatan_model_game_ScatanState(players, gameMap, assignedBuildings, assignedAwards, resourceCardsUpdated, developmentCards, developmentCardsDeck, robberPlacement);
+ return new $c_s_Some(value)
+}
+/** @constructor */
+function $c_Lscatan_model_game_ops_CardOps$() {
+ /**/
+}
+$c_Lscatan_model_game_ops_CardOps$.prototype = new $h_O();
+$c_Lscatan_model_game_ops_CardOps$.prototype.constructor = $c_Lscatan_model_game_ops_CardOps$;
+/** @constructor */
+function $h_Lscatan_model_game_ops_CardOps$() {
+ /**/
+}
+$h_Lscatan_model_game_ops_CardOps$.prototype = $c_Lscatan_model_game_ops_CardOps$.prototype;
+$c_Lscatan_model_game_ops_CardOps$.prototype.assignResourcesFromNumber__Lscatan_model_game_ScatanState__I__s_Option = (function(state, number) {
+ var hexagonsFilteredByNumber = $as_sci_Map($n($n($n(state).Lscatan_model_game_ScatanState__f_gameMap).Lscatan_model_GameMap__f_toContent).filter__F1__O(new $c_sjsr_AnonFunction1(((x$1) => {
+ var x$1$1 = $as_T2(x$1);
+ var hexagon = $as_Lscatan_model_map_Hexagon($n(x$1$1)._1__O());
+ var tileContent = $as_Lscatan_model_map_TileContent($n(x$1$1)._2__O());
+ var this$2 = $n($n(tileContent).Lscatan_model_map_TileContent__f_number);
+ if ((!this$2.isEmpty__Z())) {
+ var arg1 = this$2.get__O();
+ var _$3 = $uI(arg1);
+ var $$x1 = (_$3 === number)
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ var x$2 = $n(state).Lscatan_model_game_ScatanState__f_robberPlacement;
+ return (!((hexagon === null) ? (x$2 === null) : $n(hexagon).equals__O__Z(x$2)))
+ } else {
+ return false
+ }
+ }))));
+ return $p_Lscatan_model_game_ops_CardOps$__assignResourceFromHexagonsAndBuildings__Lscatan_model_game_ScatanState__sci_Map__sci_ListMap__s_Option(this, state, hexagonsFilteredByNumber, $n(state).Lscatan_model_game_ScatanState__f_assignedBuildings)
+});
+$c_Lscatan_model_game_ops_CardOps$.prototype.assignResourcesAfterInitialPlacement__Lscatan_model_game_ScatanState__s_Option = (function(state) {
+ var this$1 = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings);
+ var res = 0;
+ var it = this$1.iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1 = $n(it).next__O();
+ var x$1 = $as_T2(arg1);
+ $as_Ljava_io_Serializable($n(x$1)._1__O());
+ var building = $as_Lscatan_model_components_AssignmentInfo($n(x$1)._2__O());
+ var x = $n(building).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_buildingType;
+ var x$2 = $s_Lscatan_model_components_BuildingType$__Settlement__Lscatan_model_components_BuildingType();
+ if ((x === null)) {
+ var $$x1 = (x$2 === null)
+ } else {
+ var this$2 = $n(x);
+ var $$x1 = (this$2 === x$2)
+ };
+ if ($$x1) {
+ res = ((1 + res) | 0)
+ }
+ };
+ var structureBuildingCount = res;
+ var this$3 = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings);
+ var b = new $c_sci_ListMapBuilder();
+ var it$1 = this$3.iterator__sc_Iterator();
+ while ($n(it$1).hasNext__Z()) {
+ var elem = $n(it$1).next__O();
+ var x$1$1 = $as_T2(elem);
+ $as_Ljava_io_Serializable($n(x$1$1)._1__O());
+ var building$1 = $as_Lscatan_model_components_AssignmentInfo($n(x$1$1)._2__O());
+ var x$3 = $n(building$1).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_buildingType;
+ var x$2$1 = $s_Lscatan_model_components_BuildingType$__Settlement__Lscatan_model_components_BuildingType();
+ if ((x$3 === null)) {
+ var $$x2 = (x$2$1 === null)
+ } else {
+ var this$5 = $n(x$3);
+ var $$x2 = (this$5 === x$2$1)
+ };
+ if (($$x2 !== false)) {
+ var elem$1 = $as_T2(elem);
+ b.addOne__O__O__sci_ListMapBuilder($n(elem$1)._1__O(), $n(elem$1)._2__O())
+ }
+ };
+ var this$6 = $n(b.result__sci_ListMap());
+ var n = ((structureBuildingCount / 2) | 0);
+ var buildings = $as_sci_ListMap($f_sc_StrictOptimizedIterableOps__takeRight__I__O(this$6, n));
+ return $p_Lscatan_model_game_ops_CardOps$__assignResourceFromHexagonsAndBuildings__Lscatan_model_game_ScatanState__sci_Map__sci_ListMap__s_Option(this, state, $n($n(state).Lscatan_model_game_ScatanState__f_gameMap).Lscatan_model_GameMap__f_toContent, buildings)
+});
+var $d_Lscatan_model_game_ops_CardOps$ = new $TypeData().initClass({
+ Lscatan_model_game_ops_CardOps$: 0
+}, false, "scatan.model.game.ops.CardOps$", {
+ Lscatan_model_game_ops_CardOps$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_ops_CardOps$.prototype.$classData = $d_Lscatan_model_game_ops_CardOps$;
+var $n_Lscatan_model_game_ops_CardOps$;
+function $m_Lscatan_model_game_ops_CardOps$() {
+ if ((!$n_Lscatan_model_game_ops_CardOps$)) {
+ $n_Lscatan_model_game_ops_CardOps$ = new $c_Lscatan_model_game_ops_CardOps$()
+ };
+ return $n_Lscatan_model_game_ops_CardOps$
+}
+/** @constructor */
+function $c_Lscatan_model_game_ops_EmptySpotsOps$() {
+ /**/
+}
+$c_Lscatan_model_game_ops_EmptySpotsOps$.prototype = new $h_O();
+$c_Lscatan_model_game_ops_EmptySpotsOps$.prototype.constructor = $c_Lscatan_model_game_ops_EmptySpotsOps$;
+/** @constructor */
+function $h_Lscatan_model_game_ops_EmptySpotsOps$() {
+ /**/
+}
+$h_Lscatan_model_game_ops_EmptySpotsOps$.prototype = $c_Lscatan_model_game_ops_EmptySpotsOps$.prototype;
+$c_Lscatan_model_game_ops_EmptySpotsOps$.prototype.emptyStructureSpot__Lscatan_model_game_ScatanState__sci_Seq = (function(state) {
+ return $n($as_sc_IterableOnceOps($n($as_sc_IterableOps($n($n($n(state).Lscatan_model_game_ScatanState__f_gameMap).Lscatan_model_map_HexagonalTiledMap__f_nodes).filter__F1__O(new $c_sjsr_AnonFunction1(((_$2) => {
+ var _$2$1 = $as_Lscatan_utils_UnorderedTriple(_$2);
+ var this$2 = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings);
+ return (!this$2.contains__O__Z(_$2$1))
+ }))))).filter__F1__O(new $c_sjsr_AnonFunction1(((_$3) => {
+ var _$3$1 = $as_Lscatan_utils_UnorderedTriple(_$3);
+ return $n($n(_$3$1).Lscatan_utils_UnorderedTriple__f__set).exists__F1__Z(new $c_sjsr_AnonFunction1(((_$4) => {
+ var _$4$1 = $as_Lscatan_model_map_Hexagon(_$4);
+ return ($m_Lscatan_model_map_HexagonInMap$().layer__Lscatan_model_map_Hexagon__I(_$4$1) <= $n($n(state).Lscatan_model_game_ScatanState__f_gameMap).Lscatan_model_GameMap__f_withTerrainLayers)
+ })))
+ }))))).toSeq__sci_Seq()
+});
+$c_Lscatan_model_game_ops_EmptySpotsOps$.prototype.emptyRoadSpot__Lscatan_model_game_ScatanState__sci_Seq = (function(state) {
+ return $n($as_sc_IterableOnceOps($n($as_sc_IterableOps($n($n($n(state).Lscatan_model_game_ScatanState__f_gameMap).Lscatan_model_map_HexagonalTiledMap__f_edges).filter__F1__O(new $c_sjsr_AnonFunction1(((_$5) => {
+ var _$5$1 = $as_Lscatan_utils_UnorderedPair(_$5);
+ var this$2 = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings);
+ return (!this$2.contains__O__Z(_$5$1))
+ }))))).filter__F1__O(new $c_sjsr_AnonFunction1(((_$6) => {
+ var _$6$1 = $as_Lscatan_utils_UnorderedPair(_$6);
+ return $n($n(_$6$1).Lscatan_utils_UnorderedPair__f__set).exists__F1__Z(new $c_sjsr_AnonFunction1(((_$7) => {
+ var _$7$1 = $as_Lscatan_utils_UnorderedTriple(_$7);
+ return $n($n(_$7$1).Lscatan_utils_UnorderedTriple__f__set).exists__F1__Z(new $c_sjsr_AnonFunction1(((_$8) => {
+ var _$8$1 = $as_Lscatan_model_map_Hexagon(_$8);
+ return ($m_Lscatan_model_map_HexagonInMap$().layer__Lscatan_model_map_Hexagon__I(_$8$1) <= $n($n(state).Lscatan_model_game_ScatanState__f_gameMap).Lscatan_model_GameMap__f_withTerrainLayers)
+ })))
+ })))
+ }))))).toSeq__sci_Seq()
+});
+var $d_Lscatan_model_game_ops_EmptySpotsOps$ = new $TypeData().initClass({
+ Lscatan_model_game_ops_EmptySpotsOps$: 0
+}, false, "scatan.model.game.ops.EmptySpotsOps$", {
+ Lscatan_model_game_ops_EmptySpotsOps$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_ops_EmptySpotsOps$.prototype.$classData = $d_Lscatan_model_game_ops_EmptySpotsOps$;
+var $n_Lscatan_model_game_ops_EmptySpotsOps$;
+function $m_Lscatan_model_game_ops_EmptySpotsOps$() {
+ if ((!$n_Lscatan_model_game_ops_EmptySpotsOps$)) {
+ $n_Lscatan_model_game_ops_EmptySpotsOps$ = new $c_Lscatan_model_game_ops_EmptySpotsOps$()
+ };
+ return $n_Lscatan_model_game_ops_EmptySpotsOps$
+}
+/** @constructor */
+function $c_Lscatan_model_game_ops_RobberOps$() {
+ /**/
+}
+$c_Lscatan_model_game_ops_RobberOps$.prototype = new $h_O();
+$c_Lscatan_model_game_ops_RobberOps$.prototype.constructor = $c_Lscatan_model_game_ops_RobberOps$;
+/** @constructor */
+function $h_Lscatan_model_game_ops_RobberOps$() {
+ /**/
+}
+$h_Lscatan_model_game_ops_RobberOps$.prototype = $c_Lscatan_model_game_ops_RobberOps$.prototype;
+$c_Lscatan_model_game_ops_RobberOps$.prototype.moveRobber__Lscatan_model_game_ScatanState__Lscatan_model_map_Hexagon__s_Option = (function(state, hexagon) {
+ var x = $n(state).Lscatan_model_game_ScatanState__f_robberPlacement;
+ if ((((x === null) ? (hexagon === null) : $n(x).equals__O__Z(hexagon)) || ($m_Lscatan_model_map_HexagonInMap$().layer__Lscatan_model_map_Hexagon__I(hexagon) > $n($n(state).Lscatan_model_game_ScatanState__f_gameMap).Lscatan_model_GameMap__f_withTerrainLayers))) {
+ return $m_s_None$()
+ } else {
+ $n(state);
+ var this$1 = $n(state);
+ var players = this$1.Lscatan_model_game_ScatanState__f_players;
+ var this$2 = $n(state);
+ var gameMap = this$2.Lscatan_model_game_ScatanState__f_gameMap;
+ var this$3 = $n(state);
+ var assignedBuildings = this$3.Lscatan_model_game_ScatanState__f_assignedBuildings;
+ var this$4 = $n(state);
+ var assignedAwards = this$4.Lscatan_model_game_ScatanState__f_assignedAwards;
+ var this$5 = $n(state);
+ var resourceCards = this$5.Lscatan_model_game_ScatanState__f_resourceCards;
+ var this$6 = $n(state);
+ var developmentCards = this$6.Lscatan_model_game_ScatanState__f_developmentCards;
+ var this$7 = $n(state);
+ var developmentCardsDeck = this$7.Lscatan_model_game_ScatanState__f_developmentCardsDeck;
+ var value = new $c_Lscatan_model_game_ScatanState(players, gameMap, assignedBuildings, assignedAwards, resourceCards, developmentCards, developmentCardsDeck, hexagon);
+ return new $c_s_Some(value)
+ }
+});
+var $d_Lscatan_model_game_ops_RobberOps$ = new $TypeData().initClass({
+ Lscatan_model_game_ops_RobberOps$: 0
+}, false, "scatan.model.game.ops.RobberOps$", {
+ Lscatan_model_game_ops_RobberOps$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_ops_RobberOps$.prototype.$classData = $d_Lscatan_model_game_ops_RobberOps$;
+var $n_Lscatan_model_game_ops_RobberOps$;
+function $m_Lscatan_model_game_ops_RobberOps$() {
+ if ((!$n_Lscatan_model_game_ops_RobberOps$)) {
+ $n_Lscatan_model_game_ops_RobberOps$ = new $c_Lscatan_model_game_ops_RobberOps$()
+ };
+ return $n_Lscatan_model_game_ops_RobberOps$
+}
+function $p_Lscatan_model_game_ops_ScoreOps$__partialScoresWithAwards__Lscatan_model_game_ScatanState__sci_Map($thiz, state) {
+ var playersWithAwards = $as_sci_Map($n($as_sc_MapOps($n($m_Lscatan_model_game_ops_AwardOps$().awards__Lscatan_model_game_ScatanState__sci_Map(state)).filter__F1__O(new $c_sjsr_AnonFunction1(((_$1) => {
+ var _$1$1 = $as_T2(_$1);
+ var this$2 = $n($as_s_Option($n(_$1$1)._2__O()));
+ return (!this$2.isEmpty__Z())
+ }))))).map__F1__sc_IterableOps(new $c_sjsr_AnonFunction1(((_$2) => {
+ var _$2$1 = $as_T2(_$2);
+ return $as_T2($n($as_s_Option($n(_$2$1)._2__O())).get__O())
+ }))));
+ var this$4 = $n(playersWithAwards);
+ var z = $m_Lscatan_model_components_Score$package$Scores$().empty__sci_Seq__sci_Map($n(state).Lscatan_model_game_ScatanState__f_players);
+ var f = ((scores, playerWithCount) => {
+ var scores$1 = $as_sci_Map(scores);
+ var playerWithCount$1 = $as_T2(playerWithCount);
+ return $as_sci_Map($n(scores$1).updated__O__O__sci_MapOps($n(playerWithCount$1)._1__O(), ((1 + $uI($n(scores$1).apply__O__O($n(playerWithCount$1)._1__O()))) | 0)))
+ });
+ if ($is_sc_IndexedSeq(this$4)) {
+ var x2 = $as_sc_IndexedSeq(this$4);
+ var at = 0;
+ var end = $n(x2).length__I();
+ var acc = z;
+ var $$x1;
+ while (true) {
+ if ((at !== end)) {
+ var temp$at = ((1 + at) | 0);
+ var arg1 = acc;
+ var arg2 = $n(x2).apply__I__O(at);
+ var temp$acc = f(arg1, arg2);
+ at = temp$at;
+ acc = temp$acc;
+ continue
+ };
+ var $$x1 = acc;
+ break
+ }
+ } else {
+ var result = z;
+ var it = this$4.iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1$1 = result;
+ var arg2$1 = $n(it).next__O();
+ result = f(arg1$1, arg2$1)
+ };
+ var $$x1 = result
+ };
+ return $as_sci_Map($$x1)
+}
+function $p_Lscatan_model_game_ops_ScoreOps$__partialScoresWithBuildings__Lscatan_model_game_ScatanState__sci_Map($thiz, state) {
+ var this$2 = $n($m_Lscatan_model_components_AssignedBuildingsAdapter$().asPlayerMap__sci_ListMap__sci_Map($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings));
+ var z = $m_Lscatan_model_components_Score$package$Scores$().empty__sci_Seq__sci_Map($n(state).Lscatan_model_game_ScatanState__f_players);
+ var f = ((scores, buildingsOfPlayer) => {
+ var scores$1 = $as_sci_Map(scores);
+ var buildingsOfPlayer$1 = $as_T2(buildingsOfPlayer);
+ return $as_sci_Map($n(scores$1).updated__O__O__sci_MapOps($n(buildingsOfPlayer$1)._1__O(), $n($as_sc_IterableOnceOps($n(buildingsOfPlayer$1)._2__O())).foldLeft__O__F2__O(0, new $c_sjsr_AnonFunction2(((score, buildingType) => {
+ var score$1 = $uI(score);
+ var buildingType$1 = $as_Lscatan_model_components_BuildingType(buildingType);
+ return ((score$1 + $p_Lscatan_model_game_ops_ScoreOps$__buildingScore$1__Lscatan_model_components_BuildingType__I($thiz, buildingType$1)) | 0)
+ })))))
+ });
+ if ($is_sc_IndexedSeq(this$2)) {
+ var x2 = $as_sc_IndexedSeq(this$2);
+ var at = 0;
+ var end = $n(x2).length__I();
+ var acc = z;
+ var $$x1;
+ while (true) {
+ if ((at !== end)) {
+ var temp$at = ((1 + at) | 0);
+ var arg1 = acc;
+ var arg2 = $n(x2).apply__I__O(at);
+ var temp$acc = f(arg1, arg2);
+ at = temp$at;
+ acc = temp$acc;
+ continue
+ };
+ var $$x1 = acc;
+ break
+ }
+ } else {
+ var result = z;
+ var it = this$2.iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1$1 = result;
+ var arg2$1 = $n(it).next__O();
+ result = f(arg1$1, arg2$1)
+ };
+ var $$x1 = result
+ };
+ return $as_sci_Map($$x1)
+}
+function $p_Lscatan_model_game_ops_ScoreOps$__buildingScore$1__Lscatan_model_components_BuildingType__I($thiz, buildingType) {
+ var x = $s_Lscatan_model_components_BuildingType$__Settlement__Lscatan_model_components_BuildingType();
+ if ((x === null)) {
+ var $$x1 = (buildingType === null)
+ } else {
+ var this$1 = $n(x);
+ var $$x1 = (this$1 === buildingType)
+ };
+ if ($$x1) {
+ return 1
+ };
+ var x$3 = $s_Lscatan_model_components_BuildingType$__City__Lscatan_model_components_BuildingType();
+ if ((x$3 === null)) {
+ var $$x2 = (buildingType === null)
+ } else {
+ var this$2 = $n(x$3);
+ var $$x2 = (this$2 === buildingType)
+ };
+ if ($$x2) {
+ return 2
+ };
+ var x$5 = $s_Lscatan_model_components_BuildingType$__Road__Lscatan_model_components_BuildingType();
+ if ((x$5 === null)) {
+ var $$x3 = (buildingType === null)
+ } else {
+ var this$3 = $n(x$5);
+ var $$x3 = (this$3 === buildingType)
+ };
+ if ($$x3) {
+ return 0
+ };
+ throw new $c_s_MatchError(buildingType)
+}
+/** @constructor */
+function $c_Lscatan_model_game_ops_ScoreOps$() {
+ /**/
+}
+$c_Lscatan_model_game_ops_ScoreOps$.prototype = new $h_O();
+$c_Lscatan_model_game_ops_ScoreOps$.prototype.constructor = $c_Lscatan_model_game_ops_ScoreOps$;
+/** @constructor */
+function $h_Lscatan_model_game_ops_ScoreOps$() {
+ /**/
+}
+$h_Lscatan_model_game_ops_ScoreOps$.prototype = $c_Lscatan_model_game_ops_ScoreOps$.prototype;
+$c_Lscatan_model_game_ops_ScoreOps$.prototype.scores__Lscatan_model_game_ScatanState__sci_Map = (function(state) {
+ var partialScores = $as_sci_Seq($n($m_s_package$().s_package$__f_Seq).apply__sci_Seq__sc_SeqOps($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_sci_Map.getArrayOf().constr)([$p_Lscatan_model_game_ops_ScoreOps$__partialScoresWithAwards__Lscatan_model_game_ScatanState__sci_Map(this, state), $p_Lscatan_model_game_ops_ScoreOps$__partialScoresWithBuildings__Lscatan_model_game_ScatanState__sci_Map(this, state)]))));
+ return $as_sci_Map($n(partialScores).foldLeft__O__F2__O($m_Lscatan_model_components_Score$package$Scores$().empty__sci_Seq__sci_Map($n(state).Lscatan_model_game_ScatanState__f_players), new $c_sjsr_AnonFunction2(((_$3, _$4) => {
+ var _$3$1 = $as_sci_Map(_$3);
+ var _$4$1 = $as_sci_Map(_$4);
+ var evidence$2 = $m_Lscatan_model_components_Score$package$Scores$given\uff3fSemigroup\uff3fScores$();
+ return $as_sci_Map(new $c_Lcats_syntax_SemigroupOps(_$3$1, evidence$2).$bar$plus$bar__O__O(_$4$1))
+ }))))
+});
+$c_Lscatan_model_game_ops_ScoreOps$.prototype.isOver__Lscatan_model_game_ScatanState__Z = (function(state) {
+ return $n(this.scores__Lscatan_model_game_ScatanState__sci_Map(state)).exists__F1__Z(new $c_sjsr_AnonFunction1(((_$5) => {
+ var _$5$1 = $as_T2(_$5);
+ return ($uI($n(_$5$1)._2__O()) >= 10)
+ })))
+});
+$c_Lscatan_model_game_ops_ScoreOps$.prototype.winner__Lscatan_model_game_ScatanState__s_Option = (function(state) {
+ if (this.isOver__Lscatan_model_game_ScatanState__Z(state)) {
+ var this$2 = $n(this.scores__Lscatan_model_game_ScatanState__sci_Map(state));
+ var f = new $c_sjsr_AnonFunction1(((_$6) => {
+ var _$6$1 = $as_T2(_$6);
+ return $uI($n(_$6$1)._2__O())
+ }));
+ var ord = $m_s_math_Ordering$Int$();
+ var value = $n($as_T2($f_sc_IterableOnceOps__maxBy__F1__s_math_Ordering__O(this$2, f, ord)))._1__O();
+ return new $c_s_Some(value)
+ } else {
+ return $m_s_None$()
+ }
+});
+var $d_Lscatan_model_game_ops_ScoreOps$ = new $TypeData().initClass({
+ Lscatan_model_game_ops_ScoreOps$: 0
+}, false, "scatan.model.game.ops.ScoreOps$", {
+ Lscatan_model_game_ops_ScoreOps$: 1,
+ O: 1
+});
+$c_Lscatan_model_game_ops_ScoreOps$.prototype.$classData = $d_Lscatan_model_game_ops_ScoreOps$;
+var $n_Lscatan_model_game_ops_ScoreOps$;
+function $m_Lscatan_model_game_ops_ScoreOps$() {
+ if ((!$n_Lscatan_model_game_ops_ScoreOps$)) {
+ $n_Lscatan_model_game_ops_ScoreOps$ = new $c_Lscatan_model_game_ops_ScoreOps$()
+ };
+ return $n_Lscatan_model_game_ops_ScoreOps$
+}
+function $is_Lscatan_model_map_Hexagon(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_model_map_Hexagon)))
+}
+function $as_Lscatan_model_map_Hexagon(obj) {
+ return (($is_Lscatan_model_map_Hexagon(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.model.map.Hexagon"))
+}
+function $isArrayOf_Lscatan_model_map_Hexagon(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_model_map_Hexagon)))
+}
+function $asArrayOf_Lscatan_model_map_Hexagon(obj, depth) {
+ return (($isArrayOf_Lscatan_model_map_Hexagon(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.model.map.Hexagon;", depth))
+}
+var $d_Lscatan_model_map_Hexagon = new $TypeData().initClass({
+ Lscatan_model_map_Hexagon: 0
+}, true, "scatan.model.map.Hexagon", {
+ Lscatan_model_map_Hexagon: 1,
+ O: 1
+});
+function $p_Lscatan_model_map_HexagonInMap$__allowedDirections__sci_Set($thiz) {
+ var this$13 = $n($m_s_Predef$().s_Predef$__f_Set);
+ var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lscatan_model_map_Hexagon.getArrayOf().constr)([new $c_Lscatan_model_map_Hexagon$HexagonImpl(1, 0, (-1)), new $c_Lscatan_model_map_Hexagon$HexagonImpl(1, (-1), 0), new $c_Lscatan_model_map_Hexagon$HexagonImpl(0, (-1), 1), new $c_Lscatan_model_map_Hexagon$HexagonImpl((-1), 0, 1), new $c_Lscatan_model_map_Hexagon$HexagonImpl((-1), 1, 0), new $c_Lscatan_model_map_Hexagon$HexagonImpl(0, 1, (-1))]));
+ return this$13.from__sc_IterableOnce__sci_Set(elems)
+}
+/** @constructor */
+function $c_Lscatan_model_map_HexagonInMap$() {
+ /**/
+}
+$c_Lscatan_model_map_HexagonInMap$.prototype = new $h_O();
+$c_Lscatan_model_map_HexagonInMap$.prototype.constructor = $c_Lscatan_model_map_HexagonInMap$;
+/** @constructor */
+function $h_Lscatan_model_map_HexagonInMap$() {
+ /**/
+}
+$h_Lscatan_model_map_HexagonInMap$.prototype = $c_Lscatan_model_map_HexagonInMap$.prototype;
+$c_Lscatan_model_map_HexagonInMap$.prototype.neighbours__Lscatan_model_map_Hexagon__sci_Set = (function(hex) {
+ return $as_sci_Set($n($p_Lscatan_model_map_HexagonInMap$__allowedDirections__sci_Set(this)).map__F1__O(new $c_sjsr_AnonFunction1(((_$1) => {
+ var _$1$1 = $as_Lscatan_model_map_Hexagon(_$1);
+ var evidence$2 = $m_Lscatan_model_map_Hexagon$given\uff3fMonoid\uff3fHexagon$();
+ return $as_Lscatan_model_map_Hexagon(new $c_Lcats_syntax_SemigroupOps(hex, evidence$2).$bar$plus$bar__O__O(_$1$1))
+ }))))
+});
+$c_Lscatan_model_map_HexagonInMap$.prototype.isNeighbour__Lscatan_model_map_Hexagon__Lscatan_model_map_Hexagon__Z = (function(hex, another) {
+ return $n(this.neighbours__Lscatan_model_map_Hexagon__sci_Set(hex)).contains__O__Z(another)
+});
+$c_Lscatan_model_map_HexagonInMap$.prototype.layer__Lscatan_model_map_Hexagon__I = (function(hex) {
+ var x = $n(hex).Lscatan_model_map_Hexagon$HexagonImpl__f_row;
+ var x$1 = $n(hex).Lscatan_model_map_Hexagon$HexagonImpl__f_col;
+ var x$2 = $n(hex).Lscatan_model_map_Hexagon$HexagonImpl__f_slice;
+ return ((((((((x < 0) ? ((-x) | 0) : x) + ((x$1 < 0) ? ((-x$1) | 0) : x$1)) | 0) + ((x$2 < 0) ? ((-x$2) | 0) : x$2)) | 0) / 2) | 0)
+});
+var $d_Lscatan_model_map_HexagonInMap$ = new $TypeData().initClass({
+ Lscatan_model_map_HexagonInMap$: 0
+}, false, "scatan.model.map.HexagonInMap$", {
+ Lscatan_model_map_HexagonInMap$: 1,
+ O: 1
+});
+$c_Lscatan_model_map_HexagonInMap$.prototype.$classData = $d_Lscatan_model_map_HexagonInMap$;
+var $n_Lscatan_model_map_HexagonInMap$;
+function $m_Lscatan_model_map_HexagonInMap$() {
+ if ((!$n_Lscatan_model_map_HexagonInMap$)) {
+ $n_Lscatan_model_map_HexagonInMap$ = new $c_Lscatan_model_map_HexagonInMap$()
+ };
+ return $n_Lscatan_model_map_HexagonInMap$
+}
+/** @constructor */
+function $c_Lscatan_model_map_TileContentFactory$() {
+ /**/
+}
+$c_Lscatan_model_map_TileContentFactory$.prototype = new $h_O();
+$c_Lscatan_model_map_TileContentFactory$.prototype.constructor = $c_Lscatan_model_map_TileContentFactory$;
+/** @constructor */
+function $h_Lscatan_model_map_TileContentFactory$() {
+ /**/
+}
+$h_Lscatan_model_map_TileContentFactory$.prototype = $c_Lscatan_model_map_TileContentFactory$.prototype;
+$c_Lscatan_model_map_TileContentFactory$.prototype.fixedForLayer2__sci_Seq__sci_Map = (function(tiles) {
+ $n($m_s_package$().s_package$__f_List);
+ var elems = $m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_sci_Seq.getArrayOf().constr)([$m_Lscatan_model_components_Listable$().listOf__I__O__sci_Seq(4, $s_Lscatan_model_components_ResourceType$__Wood__Lscatan_model_components_ResourceType()), $m_Lscatan_model_components_Listable$().listOf__I__O__sci_Seq(4, $s_Lscatan_model_components_ResourceType$__Sheep__Lscatan_model_components_ResourceType()), $m_Lscatan_model_components_Listable$().listOf__I__O__sci_Seq(4, $s_Lscatan_model_components_ResourceType$__Wheat__Lscatan_model_components_ResourceType()), $m_Lscatan_model_components_Listable$().listOf__I__O__sci_Seq(3, $s_Lscatan_model_components_ResourceType$__Rock__Lscatan_model_components_ResourceType()), $m_Lscatan_model_components_Listable$().listOf__I__O__sci_Seq(3, $s_Lscatan_model_components_ResourceType$__Brick__Lscatan_model_components_ResourceType())]));
+ var this$4 = $n($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems));
+ var this$3 = $m_s_$less$colon$less$();
+ var toIterableOnce = this$3.s_$less$colon$less$__f_singleton;
+ var terrains = $as_sci_List($f_sc_StrictOptimizedIterableOps__flatten__F1__O(this$4, toIterableOnce));
+ $m_sci_List$();
+ var this$9 = $m_sci_Nil$();
+ var $$x1;
+ var iter = new $c_sci_RangeIterator(3, 1, 11, false);
+ if (iter.sci_RangeIterator__f__hasNext) {
+ var result = new $c_sci_$colon$colon(iter.next__I(), this$9);
+ var curr = result;
+ while (iter.sci_RangeIterator__f__hasNext) {
+ var temp = new $c_sci_$colon$colon(iter.next__I(), this$9);
+ $n(curr).sci_$colon$colon__f_next = temp;
+ curr = temp
+ };
+ var $$x1 = result
+ } else {
+ var $$x1 = this$9
+ };
+ var this$11 = $n($$x1);
+ var p = new $c_sjsr_AnonFunction1(((i) => {
+ var i$1 = $uI(i);
+ return (i$1 !== 7)
+ }));
+ var this$15 = $n($as_sc_StrictOptimizedIterableOps(new $c_sc_IterableOps$WithFilter(this$11, p).map__F1__O(new $c_sjsr_AnonFunction1(((i$2) => {
+ var i$3 = $uI(i$2);
+ $n($m_s_package$().s_package$__f_List);
+ var elems$1 = $m_sr_ScalaRunTime$().wrapIntArray__AI__sci_ArraySeq(new $ac_I(new Int32Array([i$3, i$3])));
+ return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1)
+ })))));
+ var this$14 = $m_s_$less$colon$less$();
+ var toIterableOnce$1 = this$14.s_$less$colon$less$__f_singleton;
+ var this$16 = $n($as_sci_List($f_sc_StrictOptimizedIterableOps__flatten__F1__O(this$15, toIterableOnce$1)));
+ var this$17 = new $c_sci_$colon$colon(12, this$16);
+ var numbers = new $c_sci_$colon$colon(2, this$17);
+ var this$18 = $n(terrains);
+ var this$21 = $n($as_sci_List($f_sc_StrictOptimizedIterableOps__zip__sc_IterableOnce__O(this$18, numbers)));
+ var f = ((p$1) => {
+ var p$2 = $as_T2(p$1);
+ var terrain = $as_s_reflect_Enum($n(p$2)._1__O());
+ var value = $n(p$2)._2__O();
+ var number = new $c_s_Some(value);
+ return new $c_Lscatan_model_map_TileContent(terrain, number)
+ });
+ if ((this$21 === $m_sci_Nil$())) {
+ var tileContents = $m_sci_Nil$()
+ } else {
+ var arg1 = this$21.head__O();
+ var h = new $c_sci_$colon$colon(f(arg1), $m_sci_Nil$());
+ var t = h;
+ var rest = $as_sci_List(this$21.tail__O());
+ while ((rest !== $m_sci_Nil$())) {
+ var arg1$1 = $n(rest).head__O();
+ var nx = new $c_sci_$colon$colon(f(arg1$1), $m_sci_Nil$());
+ $n(t).sci_$colon$colon__f_next = nx;
+ t = nx;
+ rest = $as_sci_List($n(rest).tail__O())
+ };
+ var tileContents = h
+ };
+ var $$x2 = $m_s_Predef$().s_Predef$__f_Map;
+ var terrain$1 = $s_Lscatan_model_components_UnproductiveTerrain$__Desert__Lscatan_model_components_UnproductiveTerrain();
+ var number$1 = $m_s_None$();
+ var elem$1 = new $c_Lscatan_model_map_TileContent(terrain$1, number$1);
+ var this$23 = $n(tileContents);
+ var this$25 = $n($n($$x2).from__sc_IterableOnce__sci_Map($as_sc_IterableOnce($n(tiles).zip__sc_IterableOnce__O(new $c_sci_$colon$colon(elem$1, this$23)))));
+ var terrain$2 = $s_Lscatan_model_components_UnproductiveTerrain$__Sea__Lscatan_model_components_UnproductiveTerrain();
+ var number$2 = $m_s_None$();
+ var d = new $c_Lscatan_model_map_TileContent(terrain$2, number$2);
+ return $f_sci_Map__withDefaultValue__O__sci_Map(this$25, d)
+});
+var $d_Lscatan_model_map_TileContentFactory$ = new $TypeData().initClass({
+ Lscatan_model_map_TileContentFactory$: 0
+}, false, "scatan.model.map.TileContentFactory$", {
+ Lscatan_model_map_TileContentFactory$: 1,
+ O: 1
+});
+$c_Lscatan_model_map_TileContentFactory$.prototype.$classData = $d_Lscatan_model_map_TileContentFactory$;
+var $n_Lscatan_model_map_TileContentFactory$;
+function $m_Lscatan_model_map_TileContentFactory$() {
+ if ((!$n_Lscatan_model_map_TileContentFactory$)) {
+ $n_Lscatan_model_map_TileContentFactory$ = new $c_Lscatan_model_map_TileContentFactory$()
+ };
+ return $n_Lscatan_model_map_TileContentFactory$
+}
+function $is_Lscatan_views_Coordinates(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lscatan_views_Coordinates)))
+}
+function $as_Lscatan_views_Coordinates(obj) {
+ return (($is_Lscatan_views_Coordinates(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scatan.views.Coordinates"))
+}
+function $isArrayOf_Lscatan_views_Coordinates(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lscatan_views_Coordinates)))
+}
+function $asArrayOf_Lscatan_views_Coordinates(obj, depth) {
+ return (($isArrayOf_Lscatan_views_Coordinates(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscatan.views.Coordinates;", depth))
+}
+/** @constructor */
+function $c_Lscatan_views_Coordinates$() {
+ /**/
+}
+$c_Lscatan_views_Coordinates$.prototype = new $h_O();
+$c_Lscatan_views_Coordinates$.prototype.constructor = $c_Lscatan_views_Coordinates$;
+/** @constructor */
+function $h_Lscatan_views_Coordinates$() {
+ /**/
+}
+$h_Lscatan_views_Coordinates$.prototype = $c_Lscatan_views_Coordinates$.prototype;
+$c_Lscatan_views_Coordinates$.prototype.unapply__Lscatan_views_Coordinates__T2 = (function(coordinates) {
+ var _1 = $n($n(coordinates).Lscatan_views_Coordinates$CoordinatesImpl__f_x).Lscatan_views_DoubleWithPrecision__f_value;
+ var _2 = $n($n(coordinates).Lscatan_views_Coordinates$CoordinatesImpl__f_y).Lscatan_views_DoubleWithPrecision__f_value;
+ return new $c_T2(_1, _2)
+});
+$c_Lscatan_views_Coordinates$.prototype.center__Lscatan_model_map_Hexagon__I__Lscatan_views_Coordinates = (function(hex, hexSize) {
+ var x = (hexSize * (($uD(Math.sqrt(3.0)) * $n(hex).Lscatan_model_map_Hexagon$HexagonImpl__f_col) + (($uD(Math.sqrt(3.0)) / 2.0) * $n(hex).Lscatan_model_map_Hexagon$HexagonImpl__f_row)));
+ var y = (hexSize * (1.5 * $n(hex).Lscatan_model_map_Hexagon$HexagonImpl__f_row));
+ var x$1 = new $c_Lscatan_views_DoubleWithPrecision(x);
+ var y$1 = new $c_Lscatan_views_DoubleWithPrecision(y);
+ return new $c_Lscatan_views_Coordinates$CoordinatesImpl(x$1, y$1)
+});
+$c_Lscatan_views_Coordinates$.prototype.vertices__Lscatan_model_map_Hexagon__I__sci_Set = (function(hex, hexSize) {
+ matchResult7: {
+ var \u03b41$___1;
+ var \u03b41$___2;
+ var x9 = this.center__Lscatan_model_map_Hexagon__I__Lscatan_views_Coordinates(hex, hexSize);
+ if ((x9 !== null)) {
+ var x10 = $m_Lscatan_views_Coordinates$().unapply__Lscatan_views_Coordinates__T2(x9);
+ var x = $uD($n(x10)._1__O());
+ var y = $uD($n(x10)._2__O());
+ var \u03b41$___1 = x;
+ var \u03b41$___2 = y;
+ break matchResult7
+ };
+ throw new $c_s_MatchError(x9)
+ };
+ var x$2 = $uD(\u03b41$___1);
+ var y$2 = $uD(\u03b41$___2);
+ var this$5 = new $c_sci_Range$Inclusive(0, 5, 1);
+ return $as_sci_Set($n($as_sc_IterableOps($n($m_sci_Set$().from__sc_IterableOnce__sci_Set(this$5)).map__F1__O(new $c_sjsr_AnonFunction1(((i) => {
+ var i$1 = $uI(i);
+ var angle_deg = (((-30) + Math.imul(60, i$1)) | 0);
+ var angle_rad = (0.017453292519943295 * angle_deg);
+ return new $c_T3(i$1, angle_deg, angle_rad)
+ }))))).map__F1__O(new $c_sjsr_AnonFunction1(((x$1) => {
+ var x$1$2 = $as_T3(x$1);
+ if ((x$1$2 !== null)) {
+ $uI($n(x$1$2).T3__f__1);
+ $uI($n(x$1$2).T3__f__2);
+ var angle_rad$1 = $uD($n(x$1$2).T3__f__3);
+ var _1 = (x$2 + (hexSize * $uD(Math.cos(angle_rad$1))));
+ var _2 = (y$2 + (hexSize * $uD(Math.sin(angle_rad$1))));
+ var x$3 = new $c_Lscatan_views_DoubleWithPrecision(_1);
+ var y$1 = new $c_Lscatan_views_DoubleWithPrecision(_2);
+ return new $c_Lscatan_views_Coordinates$CoordinatesImpl(x$3, y$1)
+ };
+ throw new $c_s_MatchError(x$1$2)
+ }))))
+});
+$c_Lscatan_views_Coordinates$.prototype.coordinates__Lscatan_utils_UnorderedTriple__I__s_Option = (function(spot, hexSize) {
+ var this$1 = $n(this.vertices__Lscatan_model_map_Hexagon__I__sci_Set($as_Lscatan_model_map_Hexagon($n(spot).Lscatan_utils_UnorderedTriple__f__1), hexSize));
+ var that = this.vertices__Lscatan_model_map_Hexagon__I__sci_Set($as_Lscatan_model_map_Hexagon($n(spot).Lscatan_utils_UnorderedTriple__f__2), hexSize);
+ var this$2 = $n(this$1.intersect__sc_Set__sc_SetOps(that));
+ var that$1 = this.vertices__Lscatan_model_map_Hexagon__I__sci_Set($as_Lscatan_model_map_Hexagon($n(spot).Lscatan_utils_UnorderedTriple__f__3), hexSize);
+ var this$3 = $n(this$2.intersect__sc_Set__sc_SetOps(that$1));
+ return $f_sc_IterableOps__headOption__s_Option(this$3)
+});
+var $d_Lscatan_views_Coordinates$ = new $TypeData().initClass({
+ Lscatan_views_Coordinates$: 0
+}, false, "scatan.views.Coordinates$", {
+ Lscatan_views_Coordinates$: 1,
+ O: 1
+});
+$c_Lscatan_views_Coordinates$.prototype.$classData = $d_Lscatan_views_Coordinates$;
+var $n_Lscatan_views_Coordinates$;
+function $m_Lscatan_views_Coordinates$() {
+ if ((!$n_Lscatan_views_Coordinates$)) {
+ $n_Lscatan_views_Coordinates$ = new $c_Lscatan_views_Coordinates$()
+ };
+ return $n_Lscatan_views_Coordinates$
+}
+/** @constructor */
+function $c_Lscatan_views_game_components_CardContextMap$() {
+ this.Lscatan_views_game_components_CardContextMap$__f_cardImages = null;
+ $n_Lscatan_views_game_components_CardContextMap$ = this;
+ var this$21 = $n($m_s_Predef$().s_Predef$__f_Map);
+ var $$x10 = $m_sr_ScalaRunTime$();
+ var self = $s_Lscatan_model_components_ResourceType$__Wood__Lscatan_model_components_ResourceType();
+ var $$x9 = new $c_T2(self, "res/img/cards/resource/wood.jpg");
+ var self$1 = $s_Lscatan_model_components_ResourceType$__Brick__Lscatan_model_components_ResourceType();
+ var $$x8 = new $c_T2(self$1, "res/img/cards/resource/clay.jpg");
+ var self$2 = $s_Lscatan_model_components_ResourceType$__Sheep__Lscatan_model_components_ResourceType();
+ var $$x7 = new $c_T2(self$2, "res/img/cards/resource/sheep.jpg");
+ var self$3 = $s_Lscatan_model_components_ResourceType$__Wheat__Lscatan_model_components_ResourceType();
+ var $$x6 = new $c_T2(self$3, "res/img/cards/resource/wheat.jpg");
+ var self$4 = $s_Lscatan_model_components_ResourceType$__Rock__Lscatan_model_components_ResourceType();
+ var $$x5 = new $c_T2(self$4, "res/img/cards/resource/ore.jpg");
+ var self$5 = $s_Lscatan_model_components_DevelopmentType$__Knight__Lscatan_model_components_DevelopmentType();
+ var $$x4 = new $c_T2(self$5, "res/img/cards/development/knight.png");
+ var self$6 = $s_Lscatan_model_components_DevelopmentType$__RoadBuilding__Lscatan_model_components_DevelopmentType();
+ var $$x3 = new $c_T2(self$6, "res/img/cards/development/road-building.png");
+ var self$7 = $s_Lscatan_model_components_DevelopmentType$__YearOfPlenty__Lscatan_model_components_DevelopmentType();
+ var $$x2 = new $c_T2(self$7, "res/img/cards/development/year-of-plenty.png");
+ var self$8 = $s_Lscatan_model_components_DevelopmentType$__Monopoly__Lscatan_model_components_DevelopmentType();
+ var $$x1 = new $c_T2(self$8, "res/img/cards/development/monopoly.png");
+ var self$9 = $s_Lscatan_model_components_DevelopmentType$__VictoryPoint__Lscatan_model_components_DevelopmentType();
+ var elems = $n($$x10).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x9, $$x8, $$x7, $$x6, $$x5, $$x4, $$x3, $$x2, $$x1, new $c_T2(self$9, "res/img/cards/development/victory-point.png")]));
+ this.Lscatan_views_game_components_CardContextMap$__f_cardImages = this$21.from__sc_IterableOnce__sci_Map(elems)
+}
+$c_Lscatan_views_game_components_CardContextMap$.prototype = new $h_O();
+$c_Lscatan_views_game_components_CardContextMap$.prototype.constructor = $c_Lscatan_views_game_components_CardContextMap$;
+/** @constructor */
+function $h_Lscatan_views_game_components_CardContextMap$() {
+ /**/
+}
+$h_Lscatan_views_game_components_CardContextMap$.prototype = $c_Lscatan_views_game_components_CardContextMap$.prototype;
+$c_Lscatan_views_game_components_CardContextMap$.prototype.countCardOf__Lscatan_model_game_ScatanState__Lscatan_model_game_config_ScatanPlayer__s_reflect_Enum__I = (function(state, player, cardType) {
+ if ((cardType instanceof $c_Lscatan_model_components_ResourceType)) {
+ var resourceType = $as_Lscatan_model_components_ResourceType(cardType);
+ var this$1 = $n($as_sc_IterableOnceOps($n($n(state).Lscatan_model_game_ScatanState__f_resourceCards).apply__O__O(player)));
+ var res = 0;
+ var it = $n($as_sc_IterableOnce(this$1)).iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var arg1 = $n(it).next__O();
+ var _$1 = $as_Lscatan_model_components_ResourceCard(arg1);
+ var x = $n(_$1).Lscatan_model_components_ResourceCard__f_resourceType;
+ if ((x === null)) {
+ var $$x1 = (resourceType === null)
+ } else {
+ var this$2 = $n(x);
+ var $$x1 = (this$2 === resourceType)
+ };
+ if ($$x1) {
+ res = ((1 + res) | 0)
+ }
+ };
+ return res
+ };
+ if ((cardType instanceof $c_Lscatan_model_components_DevelopmentType)) {
+ var developmentType = $as_Lscatan_model_components_DevelopmentType(cardType);
+ var this$3 = $n($as_sc_IterableOnceOps($n($n(state).Lscatan_model_game_ScatanState__f_developmentCards).apply__O__O(player)));
+ var res$1 = 0;
+ var it$1 = $n($as_sc_IterableOnce(this$3)).iterator__sc_Iterator();
+ while ($n(it$1).hasNext__Z()) {
+ var arg1$1 = $n(it$1).next__O();
+ var _$2 = $as_Lscatan_model_components_DevelopmentCard(arg1$1);
+ var x$1 = $n(_$2).Lscatan_model_components_DevelopmentCard__f_developmentType;
+ if ((x$1 === null)) {
+ var $$x2 = (developmentType === null)
+ } else {
+ var this$4 = $n(x$1);
+ var $$x2 = (this$4 === developmentType)
+ };
+ if ($$x2) {
+ res$1 = ((1 + res$1) | 0)
+ }
+ };
+ return res$1
+ };
+ throw new $c_s_MatchError(cardType)
+});
+var $d_Lscatan_views_game_components_CardContextMap$ = new $TypeData().initClass({
+ Lscatan_views_game_components_CardContextMap$: 0
+}, false, "scatan.views.game.components.CardContextMap$", {
+ Lscatan_views_game_components_CardContextMap$: 1,
+ O: 1
+});
+$c_Lscatan_views_game_components_CardContextMap$.prototype.$classData = $d_Lscatan_views_game_components_CardContextMap$;
+var $n_Lscatan_views_game_components_CardContextMap$;
+function $m_Lscatan_views_game_components_CardContextMap$() {
+ if ((!$n_Lscatan_views_game_components_CardContextMap$)) {
+ $n_Lscatan_views_game_components_CardContextMap$ = new $c_Lscatan_views_game_components_CardContextMap$()
+ };
+ return $n_Lscatan_views_game_components_CardContextMap$
+}
+function $p_Lscatan_views_game_components_CardsComponent$__cardCountComponent__Lcom_raquo_airstream_core_Signal__Lscatan_controllers_game_GameController__sci_Map__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, reactiveState, gameController, cards) {
+ var $$x15 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x14 = $m_sr_ScalaRunTime$();
+ var $$x13 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_cls).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-child-container");
+ var this$15 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var this$1 = $n(cards);
+ $m_sci_List$();
+ var this$4 = $n($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$1));
+ var p = new $c_sjsr_AnonFunction1(((x$1) => {
+ var x$1$1 = $as_T2(x$1);
+ return ((x$1$1 !== null) && ($as_s_reflect_Enum($n(x$1$1)._1__O()), $as_T($n(x$1$1)._2__O()), true))
+ }));
+ var nodes = $as_sc_Seq(new $c_sc_IterableOps$WithFilter(this$4, p).map__F1__O(new $c_sjsr_AnonFunction1(((x$1$2) => {
+ var x$1$3 = $as_T2(x$1$2);
+ if ((x$1$3 !== null)) {
+ var cardType$1 = $as_s_reflect_Enum($n(x$1$3)._1__O());
+ var path$1 = $as_T($n(x$1$3)._2__O());
+ var $$x12 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x11 = $m_sr_ScalaRunTime$();
+ var $$x10 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_cls).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-card-item");
+ $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var eventProp = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).onClick__Lcom_raquo_laminar_keys_EventProp();
+ var this$7 = $n($m_Lcom_raquo_laminar_keys_EventProcessor$().empty__Lcom_raquo_laminar_keys_EventProp__Z__Z__Lcom_raquo_laminar_keys_EventProcessor(eventProp, false, false));
+ var onNext = new $c_sjsr_AnonFunction1(((_$3) => {
+ $n(gameController);
+ $m_s_Predef$().$qmark$qmark$qmark__E()
+ }));
+ var $$x9 = new $c_Lcom_raquo_laminar_modifiers_EventListener(this$7, onNext);
+ var $$x8 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag();
+ var $$x7 = $m_sr_ScalaRunTime$();
+ var $$x6 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_cls).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-card-count");
+ var $$x5 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_child).Lcom_raquo_laminar_receivers_ChildReceiver$__f_text;
+ var this$14 = $n(reactiveState);
+ var project = new $c_sjsr_AnonFunction1(((state) => {
+ var state$1 = $as_Lscatan_model_ApplicationState(state);
+ var this$8 = $n($n(state$1).Lscatan_model_ApplicationState__f_game);
+ if (this$8.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1 = this$8.get__O();
+ var game = $as_Lscatan_model_game_ScatanGame(arg1);
+ var this$9 = $n(game);
+ var currentPlayer = $as_Lscatan_model_game_config_ScatanPlayer($n($n(this$9.Lscatan_model_game_ScatanGame__f_game).Lscatan_lib_game_Game__f_turn).Lscatan_lib_game_TurnImpl__f_player);
+ var $$x2 = $m_Lscatan_views_game_components_CardContextMap$();
+ var this$10 = $n(game);
+ var resourceCount = $n($$x2).countCardOf__Lscatan_model_game_ScatanState__Lscatan_model_game_config_ScatanPlayer__s_reflect_Enum__I($as_Lscatan_model_game_ScatanState($n(this$10.Lscatan_model_game_ScatanGame__f_game).Lscatan_lib_game_Game__f_state), currentPlayer, cardType$1);
+ var $$x1 = new $c_s_Some(new $c_T3(game, currentPlayer, resourceCount))
+ };
+ var this$12 = $n($$x1);
+ if (this$12.isEmpty__Z()) {
+ var $$x3 = $m_s_None$()
+ } else {
+ var arg1$1 = this$12.get__O();
+ var x$1$4 = $as_T3(arg1$1);
+ matchResult7: {
+ var $$x4;
+ if ((x$1$4 !== null)) {
+ $as_Lscatan_model_game_ScatanGame($n(x$1$4).T3__f__1);
+ $as_Lscatan_model_game_config_ScatanPlayer($n(x$1$4).T3__f__2);
+ var resourceCount$1 = $uI($n(x$1$4).T3__f__3);
+ var $$x4 = resourceCount$1;
+ break matchResult7
+ };
+ throw new $c_s_MatchError(x$1$4)
+ };
+ var $$x3 = new $c_s_Some($$x4)
+ };
+ var this$13 = $n($$x3);
+ return $uI((this$13.isEmpty__Z() ? 0 : this$13.get__O()))
+ }));
+ return $n($$x12).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x11).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x10, $$x9, $n($$x8).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x7).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x6, $n($$x5).$less$minus$minus__Lcom_raquo_airstream_core_Source__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_modifiers_Inserter(new $c_Lcom_raquo_airstream_misc_MapSignal(this$14, project, $m_s_None$()), $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_intRenderable)]))), $p_Lscatan_views_game_components_CardsComponent$__cardImageBy__T__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, path$1)])))
+ };
+ throw new $c_s_MatchError(x$1$3)
+ }))));
+ return $n($$x15).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x14).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x13, $f_Lcom_raquo_laminar_Implicits__nodeSeqToModifier__sc_Seq__Lcom_raquo_laminar_modifiers_Modifier(this$15, nodes)])))
+}
+function $p_Lscatan_views_game_components_CardsComponent$__cardImageBy__T__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, path) {
+ return $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).img__Lcom_raquo_laminar_tags_HtmlTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_cls).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-card"), $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).src__Lcom_raquo_laminar_keys_HtmlAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(path)])))
+}
+/** @constructor */
+function $c_Lscatan_views_game_components_CardsComponent$() {
+ /**/
+}
+$c_Lscatan_views_game_components_CardsComponent$.prototype = new $h_O();
+$c_Lscatan_views_game_components_CardsComponent$.prototype.constructor = $c_Lscatan_views_game_components_CardsComponent$;
+/** @constructor */
+function $h_Lscatan_views_game_components_CardsComponent$() {
+ /**/
+}
+$h_Lscatan_views_game_components_CardsComponent$.prototype = $c_Lscatan_views_game_components_CardsComponent$.prototype;
+$c_Lscatan_views_game_components_CardsComponent$.prototype.cardsComponent__Lcom_raquo_airstream_core_Signal__Lscatan_controllers_game_GameController__Lcom_raquo_laminar_nodes_ReactiveElement = (function(reactiveState, gameController) {
+ return $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_cls).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-card-container"), $p_Lscatan_views_game_components_CardsComponent$__cardCountComponent__Lcom_raquo_airstream_core_Signal__Lscatan_controllers_game_GameController__sci_Map__Lcom_raquo_laminar_nodes_ReactiveElement(this, reactiveState, gameController, $as_sci_Map($n($m_Lscatan_views_game_components_CardContextMap$().Lscatan_views_game_components_CardContextMap$__f_cardImages).collect__s_PartialFunction__sc_IterableOps(new $c_Lscatan_views_game_components_CardsComponent$$anon$1()))), $p_Lscatan_views_game_components_CardsComponent$__cardCountComponent__Lcom_raquo_airstream_core_Signal__Lscatan_controllers_game_GameController__sci_Map__Lcom_raquo_laminar_nodes_ReactiveElement(this, reactiveState, gameController, $as_sci_Map($n($m_Lscatan_views_game_components_CardContextMap$().Lscatan_views_game_components_CardContextMap$__f_cardImages).collect__s_PartialFunction__sc_IterableOps(new $c_Lscatan_views_game_components_CardsComponent$$anon$2())))])))
+});
+var $d_Lscatan_views_game_components_CardsComponent$ = new $TypeData().initClass({
+ Lscatan_views_game_components_CardsComponent$: 0
+}, false, "scatan.views.game.components.CardsComponent$", {
+ Lscatan_views_game_components_CardsComponent$: 1,
+ O: 1
+});
+$c_Lscatan_views_game_components_CardsComponent$.prototype.$classData = $d_Lscatan_views_game_components_CardsComponent$;
+var $n_Lscatan_views_game_components_CardsComponent$;
+function $m_Lscatan_views_game_components_CardsComponent$() {
+ if ((!$n_Lscatan_views_game_components_CardsComponent$)) {
+ $n_Lscatan_views_game_components_CardsComponent$ = new $c_Lscatan_views_game_components_CardsComponent$()
+ };
+ return $n_Lscatan_views_game_components_CardsComponent$
+}
+function $p_Lscatan_views_game_components_ContextMap$__updateAndGetPlayer__Lscatan_model_game_config_ScatanPlayer__T($thiz, player) {
+ var x1 = $n($thiz.Lscatan_views_game_components_ContextMap$__f_viewPlayers).get__O__s_Option(player);
+ if ((x1 instanceof $c_s_Some)) {
+ var viewPlayer = $as_T($n($as_s_Some(x1)).s_Some__f_value);
+ return viewPlayer
+ };
+ var x = $m_s_None$();
+ if ((x === x1)) {
+ var viewPlayer$2 = ("player-" + ((1 + $n($thiz.Lscatan_views_game_components_ContextMap$__f_viewPlayers).size__I()) | 0));
+ var this$3 = $n($thiz.Lscatan_views_game_components_ContextMap$__f_viewPlayers);
+ $thiz.Lscatan_views_game_components_ContextMap$__f_viewPlayers = $as_sci_Map(this$3.updated__O__O__sci_MapOps(player, viewPlayer$2));
+ return viewPlayer$2
+ };
+ throw new $c_s_MatchError(x1)
+}
+/** @constructor */
+function $c_Lscatan_views_game_components_ContextMap$() {
+ this.Lscatan_views_game_components_ContextMap$__f_viewPlayers = null;
+ this.Lscatan_views_game_components_ContextMap$__f_buildings = null;
+ this.Lscatan_views_game_components_ContextMap$__f_resources = null;
+ $n_Lscatan_views_game_components_ContextMap$ = this;
+ this.Lscatan_views_game_components_ContextMap$__f_viewPlayers = ($n($m_s_Predef$().s_Predef$__f_Map), $m_sci_Map$EmptyMap$());
+ var this$6 = $n($m_s_Predef$().s_Predef$__f_Map);
+ var $$x2 = $m_sr_ScalaRunTime$();
+ var self = $s_Lscatan_model_components_BuildingType$__Settlement__Lscatan_model_components_BuildingType();
+ var $$x1 = new $c_T2(self, "S");
+ var self$1 = $s_Lscatan_model_components_BuildingType$__City__Lscatan_model_components_BuildingType();
+ var elems = $n($$x2).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x1, new $c_T2(self$1, "C")]));
+ this.Lscatan_views_game_components_ContextMap$__f_buildings = this$6.from__sc_IterableOnce__sci_Map(elems);
+ var this$21 = $n($m_s_Predef$().s_Predef$__f_Map);
+ var $$x9 = $m_sr_ScalaRunTime$();
+ var self$2 = $s_Lscatan_model_components_ResourceType$__Wood__Lscatan_model_components_ResourceType();
+ var $$x8 = new $c_T2(self$2, "res/img/hexagonal/wood.jpg");
+ var self$3 = $s_Lscatan_model_components_ResourceType$__Sheep__Lscatan_model_components_ResourceType();
+ var $$x7 = new $c_T2(self$3, "res/img/hexagonal/sheep.jpg");
+ var self$4 = $s_Lscatan_model_components_ResourceType$__Wheat__Lscatan_model_components_ResourceType();
+ var $$x6 = new $c_T2(self$4, "res/img/hexagonal/wheat.jpg");
+ var self$5 = $s_Lscatan_model_components_ResourceType$__Rock__Lscatan_model_components_ResourceType();
+ var $$x5 = new $c_T2(self$5, "res/img/hexagonal/ore.jpg");
+ var self$6 = $s_Lscatan_model_components_ResourceType$__Brick__Lscatan_model_components_ResourceType();
+ var $$x4 = new $c_T2(self$6, "res/img/hexagonal/clay.jpg");
+ var self$7 = $s_Lscatan_model_components_UnproductiveTerrain$__Desert__Lscatan_model_components_UnproductiveTerrain();
+ var $$x3 = new $c_T2(self$7, "res/img/hexagonal/desert.jpg");
+ var self$8 = $s_Lscatan_model_components_UnproductiveTerrain$__Sea__Lscatan_model_components_UnproductiveTerrain();
+ var elems$1 = $n($$x9).wrapRefArray__AO__sci_ArraySeq(new ($d_T2.getArrayOf().constr)([$$x8, $$x7, $$x6, $$x5, $$x4, $$x3, new $c_T2(self$8, "res/img/hexagonal/water.jpg")]));
+ this.Lscatan_views_game_components_ContextMap$__f_resources = this$21.from__sc_IterableOnce__sci_Map(elems$1)
+}
+$c_Lscatan_views_game_components_ContextMap$.prototype = new $h_O();
+$c_Lscatan_views_game_components_ContextMap$.prototype.constructor = $c_Lscatan_views_game_components_ContextMap$;
+/** @constructor */
+function $h_Lscatan_views_game_components_ContextMap$() {
+ /**/
+}
+$h_Lscatan_views_game_components_ContextMap$.prototype = $c_Lscatan_views_game_components_ContextMap$.prototype;
+$c_Lscatan_views_game_components_ContextMap$.prototype.viewBuildingType__Lscatan_model_components_AssignmentInfo__T = (function(info) {
+ return $as_T($n(this.Lscatan_views_game_components_ContextMap$__f_buildings).apply__O__O($n(info).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_buildingType))
+});
+$c_Lscatan_views_game_components_ContextMap$.prototype.toImgId__s_reflect_Enum__T = (function(terrain) {
+ var this$1 = $n($n(terrain).toString__T());
+ return ("img-" + $as_T(this$1.toLowerCase()))
+});
+var $d_Lscatan_views_game_components_ContextMap$ = new $TypeData().initClass({
+ Lscatan_views_game_components_ContextMap$: 0
+}, false, "scatan.views.game.components.ContextMap$", {
+ Lscatan_views_game_components_ContextMap$: 1,
+ O: 1
+});
+$c_Lscatan_views_game_components_ContextMap$.prototype.$classData = $d_Lscatan_views_game_components_ContextMap$;
+var $n_Lscatan_views_game_components_ContextMap$;
+function $m_Lscatan_views_game_components_ContextMap$() {
+ if ((!$n_Lscatan_views_game_components_ContextMap$)) {
+ $n_Lscatan_views_game_components_ContextMap$ = new $c_Lscatan_views_game_components_ContextMap$()
+ };
+ return $n_Lscatan_views_game_components_ContextMap$
+}
+function $p_Lscatan_views_game_components_GameMapComponent$__hexSize__I($thiz) {
+ if ((!$thiz.Lscatan_views_game_components_GameMapComponent$__f_hexSizebitmap$1)) {
+ $thiz.Lscatan_views_game_components_GameMapComponent$__f_hexSize$lzy1 = 100;
+ $thiz.Lscatan_views_game_components_GameMapComponent$__f_hexSizebitmap$1 = true
+ };
+ return $thiz.Lscatan_views_game_components_GameMapComponent$__f_hexSize$lzy1
+}
+function $p_Lscatan_views_game_components_GameMapComponent$__getHexagonalMap__Lscatan_model_game_ScatanState__Lscatan_controllers_game_GameController__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, state, gameController) {
+ var gameMap = $n(state).Lscatan_model_game_ScatanState__f_gameMap;
+ var canvasSize = $uI($n($thiz.Lscatan_views_game_components_GameMapComponent$__f_layersToCanvasSize).apply__O__O($n(gameMap).Lscatan_model_GameMap__f_totalLayers));
+ var $$x13 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).svg__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x12 = $m_sr_ScalaRunTime$();
+ var $$x11 = $thiz.Lscatan_views_game_components_GameMapComponent$__f_svgImages;
+ var $$x10 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).viewBox__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(((((((("-" + canvasSize) + " -") + canvasSize) + " ") + (canvasSize << 1)) + " ") + (canvasSize << 1)));
+ var this$7 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var this$1 = $n($n(gameMap).Lscatan_model_map_HexagonalTiledMap__f_tiles);
+ $m_sci_List$();
+ var this$5 = $n($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$1));
+ var f = ((hex) => {
+ var hex$1 = $as_Lscatan_model_map_Hexagon(hex);
+ var content = $as_Lscatan_model_map_TileContent($n($n(gameMap).Lscatan_model_GameMap__f_toContent).apply__O__O(hex$1));
+ var x = $n(state).Lscatan_model_game_ScatanState__f_robberPlacement;
+ var hasRobber = ((x === null) ? (hex$1 === null) : $n(x).equals__O__Z(hex$1));
+ return new $c_T3(hex$1, content, hasRobber)
+ });
+ if ((this$5 === $m_sci_Nil$())) {
+ var $$x8 = $m_sci_Nil$()
+ } else {
+ var arg1 = this$5.head__O();
+ var h = new $c_sci_$colon$colon(f(arg1), $m_sci_Nil$());
+ var t = h;
+ var rest = $as_sci_List(this$5.tail__O());
+ while ((rest !== $m_sci_Nil$())) {
+ var arg1$1 = $n(rest).head__O();
+ var nx = new $c_sci_$colon$colon(f(arg1$1), $m_sci_Nil$());
+ $n(t).sci_$colon$colon__f_next = nx;
+ t = nx;
+ rest = $as_sci_List($n(rest).tail__O())
+ };
+ var $$x8 = h
+ };
+ var this$6 = $n($$x8);
+ var f$1 = ((x$1) => {
+ var x$1$1 = $as_T3(x$1);
+ if ((x$1$1 !== null)) {
+ var hex$2 = $as_Lscatan_model_map_Hexagon($n(x$1$1).T3__f__1);
+ var content$1 = $as_Lscatan_model_map_TileContent($n(x$1$1).T3__f__2);
+ var hasRobber$1 = $uZ($n(x$1$1).T3__f__3);
+ return $p_Lscatan_views_game_components_GameMapComponent$__svgHexagonWithNumber__Lscatan_model_map_Hexagon__Lscatan_model_map_TileContent__Z__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, hex$2, content$1, hasRobber$1, new $c_sjsr_AnonFunction0((() => {
+ $n(gameController).placeRobber__Lscatan_model_map_Hexagon__V(hex$2)
+ })))
+ };
+ throw new $c_s_MatchError(x$1$1)
+ });
+ if ((this$6 === $m_sci_Nil$())) {
+ var nodes = $m_sci_Nil$()
+ } else {
+ var arg1$2 = this$6.head__O();
+ var h$1 = new $c_sci_$colon$colon(f$1(arg1$2), $m_sci_Nil$());
+ var t$1 = h$1;
+ var rest$1 = $as_sci_List(this$6.tail__O());
+ while ((rest$1 !== $m_sci_Nil$())) {
+ var arg1$3 = $n(rest$1).head__O();
+ var nx$1 = new $c_sci_$colon$colon(f$1(arg1$3), $m_sci_Nil$());
+ $n(t$1).sci_$colon$colon__f_next = nx$1;
+ t$1 = nx$1;
+ rest$1 = $as_sci_List($n(rest$1).tail__O())
+ };
+ var nodes = h$1
+ };
+ var $$x9 = $f_Lcom_raquo_laminar_Implicits__nodeSeqToModifier__sc_Seq__Lcom_raquo_laminar_modifiers_Modifier(this$7, nodes);
+ var this$18 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var this$8 = $n($n(gameMap).Lscatan_model_map_HexagonalTiledMap__f_edges);
+ $m_sci_List$();
+ var this$10 = $n($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$8));
+ var rest$2 = this$10;
+ var h$2 = null;
+ var t$2 = null;
+ while ((rest$2 !== $m_sci_Nil$())) {
+ var arg1$4 = $n(rest$2).head__O();
+ var road = $as_Lscatan_utils_UnorderedPair(arg1$4);
+ var this$11 = $n($m_Lscatan_views_Coordinates$().coordinates__Lscatan_utils_UnorderedTriple__I__s_Option($as_Lscatan_utils_UnorderedTriple($n(road).Lscatan_utils_UnorderedPair__f__1), $p_Lscatan_views_game_components_GameMapComponent$__hexSize__I($thiz)));
+ if (this$11.isEmpty__Z()) {
+ var $$x4 = $m_s_None$()
+ } else {
+ var arg1$5 = this$11.get__O();
+ var spot1Coordinates = $as_Lscatan_views_Coordinates(arg1$5);
+ var this$12 = $n($m_Lscatan_views_Coordinates$().coordinates__Lscatan_utils_UnorderedTriple__I__s_Option($as_Lscatan_utils_UnorderedTriple($n(road).Lscatan_utils_UnorderedPair__f__2), $p_Lscatan_views_game_components_GameMapComponent$__hexSize__I($thiz)));
+ if (this$12.isEmpty__Z()) {
+ var $$x5 = $m_s_None$()
+ } else {
+ var arg1$6 = this$12.get__O();
+ var spot2Coordinates = $as_Lscatan_views_Coordinates(arg1$6);
+ var this$13 = $n($n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings).get__O__s_Option(road));
+ if (this$13.isEmpty__Z()) {
+ var player = $m_s_None$()
+ } else {
+ var arg1$7 = this$13.get__O();
+ var _$1 = $as_Lscatan_model_components_AssignmentInfo(arg1$7);
+ var this$14 = $m_Lscatan_views_game_components_ContextMap$();
+ var player = new $c_s_Some($p_Lscatan_views_game_components_ContextMap$__updateAndGetPlayer__Lscatan_model_game_config_ScatanPlayer__T(this$14, $n(_$1).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player))
+ };
+ var $$x5 = new $c_s_Some(new $c_T2(spot2Coordinates, player))
+ };
+ var this$16 = $n($$x5);
+ if (this$16.isEmpty__Z()) {
+ var $$x4 = $m_s_None$()
+ } else {
+ var arg1$8 = this$16.get__O();
+ var x$1$2 = $as_T2(arg1$8);
+ matchResult5: {
+ var $$x6;
+ if ((x$1$2 !== null)) {
+ var spot2Coordinates$1 = $as_Lscatan_views_Coordinates($n(x$1$2)._1__O());
+ var player$1 = $as_s_Option($n(x$1$2)._2__O());
+ var $$x6 = $p_Lscatan_views_game_components_GameMapComponent$__svgRoad__Lscatan_views_Coordinates__Lscatan_views_Coordinates__s_Option__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, spot1Coordinates, spot2Coordinates$1, player$1, new $c_sjsr_AnonFunction0(((gameController, road) => (() => {
+ $n(gameController).onRoadSpot__Lscatan_utils_UnorderedPair__V(road)
+ }))(gameController, road)));
+ break matchResult5
+ };
+ throw new $c_s_MatchError(x$1$2)
+ };
+ var $$x4 = new $c_s_Some($$x6)
+ }
+ };
+ var it = $n($$x4).iterator__sc_Iterator();
+ while ($n(it).hasNext__Z()) {
+ var nx$2 = new $c_sci_$colon$colon($n(it).next__O(), $m_sci_Nil$());
+ if ((t$2 === null)) {
+ h$2 = nx$2
+ } else {
+ $n(t$2).sci_$colon$colon__f_next = nx$2
+ };
+ t$2 = nx$2
+ };
+ rest$2 = $as_sci_List($n(rest$2).tail__O())
+ };
+ var nodes$1 = ((h$2 === null) ? $m_sci_Nil$() : h$2);
+ var $$x7 = $f_Lcom_raquo_laminar_Implicits__nodeSeqToModifier__sc_Seq__Lcom_raquo_laminar_modifiers_Modifier(this$18, nodes$1);
+ var this$29 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var this$19 = $n($n(gameMap).Lscatan_model_map_HexagonalTiledMap__f_nodes);
+ $m_sci_List$();
+ var this$21 = $n($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$19));
+ var rest$3 = this$21;
+ var h$3 = null;
+ var t$3 = null;
+ while ((rest$3 !== $m_sci_Nil$())) {
+ var arg1$9 = $n(rest$3).head__O();
+ var spot = $as_Lscatan_utils_UnorderedTriple(arg1$9);
+ var this$22 = $n($m_Lscatan_views_Coordinates$().coordinates__Lscatan_utils_UnorderedTriple__I__s_Option(spot, $p_Lscatan_views_game_components_GameMapComponent$__hexSize__I($thiz)));
+ if (this$22.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1$10 = this$22.get__O();
+ var coordinates = $as_Lscatan_views_Coordinates(arg1$10);
+ var assignmentInfo = $n($n(state).Lscatan_model_game_ScatanState__f_assignedBuildings).get__O__s_Option(spot);
+ var this$23 = $n(assignmentInfo);
+ if (this$23.isEmpty__Z()) {
+ var player$2 = $m_s_None$()
+ } else {
+ var arg1$11 = this$23.get__O();
+ var _$2 = $as_Lscatan_model_components_AssignmentInfo(arg1$11);
+ var this$24 = $m_Lscatan_views_game_components_ContextMap$();
+ var player$2 = new $c_s_Some($p_Lscatan_views_game_components_ContextMap$__updateAndGetPlayer__Lscatan_model_game_config_ScatanPlayer__T(this$24, $n(_$2).Lscatan_model_components_AssignmentInfo$AssignmentInfoImpl__f_player))
+ };
+ var this$25 = $n(assignmentInfo);
+ if (this$25.isEmpty__Z()) {
+ var buildingType = $m_s_None$()
+ } else {
+ var arg1$12 = this$25.get__O();
+ var _$3 = $as_Lscatan_model_components_AssignmentInfo(arg1$12);
+ var buildingType = new $c_s_Some($m_Lscatan_views_game_components_ContextMap$().viewBuildingType__Lscatan_model_components_AssignmentInfo__T(_$3))
+ };
+ var $$x1 = new $c_s_Some(new $c_T4(coordinates, assignmentInfo, player$2, buildingType))
+ };
+ var this$27 = $n($$x1);
+ if (this$27.isEmpty__Z()) {
+ var $$x2 = $m_s_None$()
+ } else {
+ var arg1$13 = this$27.get__O();
+ var x$1$3 = $as_T4(arg1$13);
+ matchResult6: {
+ var $$x3;
+ if ((x$1$3 !== null)) {
+ var coordinates$1 = $as_Lscatan_views_Coordinates($n(x$1$3).T4__f__1);
+ $as_s_Option($n(x$1$3).T4__f__2);
+ var player$3 = $as_s_Option($n(x$1$3).T4__f__3);
+ var buildingType$1 = $as_s_Option($n(x$1$3).T4__f__4);
+ var $$x3 = $p_Lscatan_views_game_components_GameMapComponent$__svgSpot__Lscatan_views_Coordinates__s_Option__s_Option__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, coordinates$1, player$3, buildingType$1, new $c_sjsr_AnonFunction0(((gameController, spot) => (() => {
+ $n(gameController).onStructureSpot__Lscatan_utils_UnorderedTriple__V(spot)
+ }))(gameController, spot)));
+ break matchResult6
+ };
+ throw new $c_s_MatchError(x$1$3)
+ };
+ var $$x2 = new $c_s_Some($$x3)
+ };
+ var it$1 = $n($$x2).iterator__sc_Iterator();
+ while ($n(it$1).hasNext__Z()) {
+ var nx$3 = new $c_sci_$colon$colon($n(it$1).next__O(), $m_sci_Nil$());
+ if ((t$3 === null)) {
+ h$3 = nx$3
+ } else {
+ $n(t$3).sci_$colon$colon__f_next = nx$3
+ };
+ t$3 = nx$3
+ };
+ rest$3 = $as_sci_List($n(rest$3).tail__O())
+ };
+ var nodes$2 = ((h$3 === null) ? $m_sci_Nil$() : h$3);
+ return $n($$x13).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x12).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x11, $$x10, $$x9, $$x7, $f_Lcom_raquo_laminar_Implicits__nodeSeqToModifier__sc_Seq__Lcom_raquo_laminar_modifiers_Modifier(this$29, nodes$2)])))
+}
+function $p_Lscatan_views_game_components_GameMapComponent$__svgHexagonWithNumber__Lscatan_model_map_Hexagon__Lscatan_model_map_TileContent__Z__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, hex, tileContent, hasRobber, onPlaceRobber) {
+ matchResult7: {
+ var \u03b41$___1;
+ var \u03b41$___2;
+ var x25 = $m_Lscatan_views_Coordinates$().center__Lscatan_model_map_Hexagon__I__Lscatan_views_Coordinates(hex, $p_Lscatan_views_game_components_GameMapComponent$__hexSize__I($thiz));
+ if ((x25 !== null)) {
+ var x26 = $m_Lscatan_views_Coordinates$().unapply__Lscatan_views_Coordinates__T2(x25);
+ var x = $uD($n(x26)._1__O());
+ var y = $uD($n(x26)._2__O());
+ var \u03b41$___1 = x;
+ var \u03b41$___2 = y;
+ break matchResult7
+ };
+ throw new $c_s_MatchError(x25)
+ };
+ var x$2 = $uD(\u03b41$___1);
+ var y$2 = $uD(\u03b41$___2);
+ var $$x6 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).g__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x5 = $m_sr_ScalaRunTime$();
+ var $$x4 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).transform__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter((((("translate(" + x$2) + ", ") + y$2) + ")"));
+ var $$x3 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).polygon__Lcom_raquo_laminar_tags_SvgTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).points__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter($thiz.Lscatan_views_game_components_GameMapComponent$__f_svgCornersPoints), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_cls).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("hexagon"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).fill__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter((("url(#" + $m_Lscatan_views_game_components_ContextMap$().toImgId__s_reflect_Enum__T($n(tileContent).Lscatan_model_map_TileContent__f_terrain)) + ")"))])));
+ matchResult8: {
+ var $$x1;
+ var x29 = $n(tileContent).Lscatan_model_map_TileContent__f_terrain;
+ var x$3 = $s_Lscatan_model_components_UnproductiveTerrain$__Sea__Lscatan_model_components_UnproductiveTerrain();
+ if ((x$3 === null)) {
+ var $$x2 = (x29 === null)
+ } else {
+ var this$2 = $n(x$3);
+ var $$x2 = (this$2 === x29)
+ };
+ if ($$x2) {
+ var this$3 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var renderable = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x1 = $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$3, "", renderable);
+ break matchResult8
+ };
+ var $$x1 = $p_Lscatan_views_game_components_GameMapComponent$__circularNumberWithRobber__s_Option__Z__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, $n(tileContent).Lscatan_model_map_TileContent__f_number, hasRobber, onPlaceRobber)
+ };
+ return $n($$x6).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x5).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x4, $$x3, $$x1])))
+}
+function $p_Lscatan_views_game_components_GameMapComponent$__circularNumberWithRobber__s_Option__Z__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, number, hasRobber, onPlaceRobber) {
+ var $$x13 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).g__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x12 = $m_sr_ScalaRunTime$();
+ var $$x11 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).circle__Lcom_raquo_laminar_tags_SvgTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).cx__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("0"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).cy__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("0"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).r__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("hexagon-center-circle")])));
+ var $$x10 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).text__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x9 = $m_sr_ScalaRunTime$();
+ var $$x8 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("0");
+ var $$x7 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("0");
+ var $$x6 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).fontSize__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius));
+ var $$x5 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("hexagon-center-number");
+ var this$4 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var this$1 = $n(number);
+ if (this$1.isEmpty__Z()) {
+ var $$x4 = $m_s_None$()
+ } else {
+ var arg1 = this$1.get__O();
+ var _$4 = $uI(arg1);
+ var $$x4 = new $c_s_Some(("" + _$4))
+ };
+ var this$3 = $n($$x4);
+ var value = (this$3.isEmpty__Z() ? "" : this$3.get__O());
+ var renderable = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x3 = $n($$x10).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x9).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x8, $$x7, $$x6, $$x5, $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$4, value, renderable)])));
+ $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var eventProp = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).onClick__Lcom_raquo_laminar_keys_EventProp();
+ var this$6 = $n($m_Lcom_raquo_laminar_keys_EventProcessor$().empty__Lcom_raquo_laminar_keys_EventProp__Z__Z__Lcom_raquo_laminar_keys_EventProcessor(eventProp, false, false));
+ var onNext = new $c_sjsr_AnonFunction1(((_$5) => {
+ $n(onPlaceRobber).apply__O()
+ }));
+ var $$x2 = new $c_Lcom_raquo_laminar_modifiers_EventListener(this$6, onNext);
+ if (hasRobber) {
+ var $$x1 = $p_Lscatan_views_game_components_GameMapComponent$__robberCross__Lcom_raquo_laminar_nodes_ReactiveElement($thiz)
+ } else {
+ var this$7 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var renderable$1 = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x1 = $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$7, "", renderable$1)
+ };
+ return $n($$x13).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x12).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x11, $$x3, $$x2, $$x1])))
+}
+function $p_Lscatan_views_game_components_GameMapComponent$__robberCross__Lcom_raquo_laminar_nodes_ReactiveElement($thiz) {
+ return $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).g__Lcom_raquo_laminar_tags_SvgTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("robber"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).line__Lcom_raquo_laminar_tags_SvgTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x1__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("-" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y1__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("-" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x2__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y2__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius))]))), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).line__Lcom_raquo_laminar_tags_SvgTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x1__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("-" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y1__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x2__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y2__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("-" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius))])))])))
+}
+function $p_Lscatan_views_game_components_GameMapComponent$__svgRoad__Lscatan_views_Coordinates__Lscatan_views_Coordinates__s_Option__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, spot1, spot2, withPlayer, onRoadClick) {
+ matchResult9: {
+ var \u03b42$___1;
+ var \u03b42$___2;
+ if ((spot1 !== null)) {
+ var x31 = $m_Lscatan_views_Coordinates$().unapply__Lscatan_views_Coordinates__T2(spot1);
+ var x1 = $uD($n(x31)._1__O());
+ var y1 = $uD($n(x31)._2__O());
+ var \u03b42$___1 = x1;
+ var \u03b42$___2 = y1;
+ break matchResult9
+ };
+ throw new $c_s_MatchError(spot1)
+ };
+ var x1$2 = $uD(\u03b42$___1);
+ var y1$2 = $uD(\u03b42$___2);
+ matchResult10: {
+ var \u03b43$___1;
+ var \u03b43$___2;
+ if ((spot2 !== null)) {
+ var x35 = $m_Lscatan_views_Coordinates$().unapply__Lscatan_views_Coordinates__T2(spot2);
+ var x2 = $uD($n(x35)._1__O());
+ var y2 = $uD($n(x35)._2__O());
+ var \u03b43$___1 = x2;
+ var \u03b43$___2 = y2;
+ break matchResult10
+ };
+ throw new $c_s_MatchError(spot2)
+ };
+ var x2$2 = $uD(\u03b43$___1);
+ var y2$2 = $uD(\u03b43$___2);
+ var $$x17 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).g__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x16 = $m_sr_ScalaRunTime$();
+ var $$x15 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).line__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x14 = $m_sr_ScalaRunTime$();
+ var $$x13 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x1__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + x1$2));
+ var $$x12 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y1__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + y1$2));
+ var $$x11 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x2__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + x2$2));
+ var $$x10 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y2__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + y2$2));
+ var $$x9 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_className;
+ var this$3 = $n(withPlayer);
+ var $$x8 = $n($$x15).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x14).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x13, $$x12, $$x11, $$x10, $n($$x9).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter(("road " + (this$3.isEmpty__Z() ? "" : this$3.get__O())))])));
+ if ((withPlayer instanceof $c_s_Some)) {
+ var this$4 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var renderable = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x1 = $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$4, "", renderable)
+ } else {
+ var $$x7 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).circle__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x6 = $m_sr_ScalaRunTime$();
+ var $$x5 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).cx__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + (x1$2 + ((x2$2 - x1$2) / 2.0))));
+ var $$x4 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).cy__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + (y1$2 + ((y2$2 - y1$2) / 2.0))));
+ var $$x3 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("road-center");
+ var $$x2 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).r__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius));
+ $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var eventProp = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).onClick__Lcom_raquo_laminar_keys_EventProp();
+ var this$6 = $n($m_Lcom_raquo_laminar_keys_EventProcessor$().empty__Lcom_raquo_laminar_keys_EventProp__Z__Z__Lcom_raquo_laminar_keys_EventProcessor(eventProp, false, false));
+ var onNext = new $c_sjsr_AnonFunction1(((_$6) => {
+ $n(onRoadClick).apply__O()
+ }));
+ var $$x1 = $n($$x7).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x6).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x5, $$x4, $$x3, $$x2, new $c_Lcom_raquo_laminar_modifiers_EventListener(this$6, onNext)])))
+ };
+ return $n($$x17).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x16).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x8, $$x1])))
+}
+function $p_Lscatan_views_game_components_GameMapComponent$__svgSpot__Lscatan_views_Coordinates__s_Option__s_Option__F0__Lcom_raquo_laminar_nodes_ReactiveElement($thiz, coordinate, withPlayer, withType, onSpotClick) {
+ matchResult12: {
+ var \u03b44$___1;
+ var \u03b44$___2;
+ if ((coordinate !== null)) {
+ var x42 = $m_Lscatan_views_Coordinates$().unapply__Lscatan_views_Coordinates__T2(coordinate);
+ var x = $uD($n(x42)._1__O());
+ var y = $uD($n(x42)._2__O());
+ var \u03b44$___1 = x;
+ var \u03b44$___2 = y;
+ break matchResult12
+ };
+ throw new $c_s_MatchError(coordinate)
+ };
+ var x$2 = $uD(\u03b44$___1);
+ var y$2 = $uD(\u03b44$___2);
+ var $$x16 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).g__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x15 = $m_sr_ScalaRunTime$();
+ var $$x14 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).circle__Lcom_raquo_laminar_tags_SvgTag());
+ var $$x13 = $m_sr_ScalaRunTime$();
+ var $$x12 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).cx__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + x$2));
+ var $$x11 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).cy__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + y$2));
+ var $$x10 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).r__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius));
+ var $$x9 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_className);
+ var this$2 = $n(withPlayer);
+ var $$x8 = $n($$x9).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter(("" + (this$2.isEmpty__Z() ? "spot" : this$2.get__O())));
+ $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var eventProp = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).onClick__Lcom_raquo_laminar_keys_EventProp();
+ var this$4 = $n($m_Lcom_raquo_laminar_keys_EventProcessor$().empty__Lcom_raquo_laminar_keys_EventProp__Z__Z__Lcom_raquo_laminar_keys_EventProcessor(eventProp, false, false));
+ var onNext = new $c_sjsr_AnonFunction1(((_$7) => {
+ $n(onSpotClick).apply__O()
+ }));
+ var $$x7 = $n($$x14).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x13).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x12, $$x11, $$x10, $$x8, new $c_Lcom_raquo_laminar_modifiers_EventListener(this$4, onNext)])));
+ var $$x6 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).text__Lcom_raquo_laminar_tags_SvgTag();
+ var $$x5 = $m_sr_ScalaRunTime$();
+ var $$x4 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).x__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + x$2));
+ var $$x3 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).y__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + y$2));
+ var $$x2 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).Lcom_raquo_laminar_api_Laminar$svg$__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("spot-text");
+ var $$x1 = $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).fontSize__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(("" + $thiz.Lscatan_views_game_components_GameMapComponent$__f_radius));
+ var this$6 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var this$5 = $n(withType);
+ var value = ("" + (this$5.isEmpty__Z() ? "" : this$5.get__O()));
+ var renderable = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ return $n($$x16).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x15).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x7, $n($$x6).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x5).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x4, $$x3, $$x2, $$x1, $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$6, value, renderable)])))])))
+}
+/** @constructor */
+function $c_Lscatan_views_game_components_GameMapComponent$() {
+ this.Lscatan_views_game_components_GameMapComponent$__f_hexSize$lzy1 = 0;
+ this.Lscatan_views_game_components_GameMapComponent$__f_hexSizebitmap$1 = false;
+ this.Lscatan_views_game_components_GameMapComponent$__f_radius = 0;
+ this.Lscatan_views_game_components_GameMapComponent$__f_svgCornersPoints = null;
+ this.Lscatan_views_game_components_GameMapComponent$__f_layersToCanvasSize = null;
+ this.Lscatan_views_game_components_GameMapComponent$__f_svgImages = null;
+ $n_Lscatan_views_game_components_GameMapComponent$ = this;
+ this.Lscatan_views_game_components_GameMapComponent$__f_radius = (($p_Lscatan_views_game_components_GameMapComponent$__hexSize__I(this) / 4) | 0);
+ var b = $m_sci_IndexedSeq$().newBuilder__scm_Builder();
+ var it = new $c_sci_RangeIterator(0, 1, 5, false);
+ while (it.sci_RangeIterator__f__hasNext) {
+ var this$9 = $n(b);
+ var arg1 = it.next__I();
+ var angleDeg = ((30 + Math.imul(60, arg1)) | 0);
+ var angleRad = (0.017453292519943295 * angleDeg);
+ var x = ($p_Lscatan_views_game_components_GameMapComponent$__hexSize__I(this) * $uD(Math.cos(angleRad)));
+ var y = ($p_Lscatan_views_game_components_GameMapComponent$__hexSize__I(this) * $uD(Math.sin(angleRad)));
+ var elem = new $c_T5(arg1, angleDeg, angleRad, x, y);
+ this$9.addOne__O__scm_Growable(elem)
+ };
+ var this$10 = $n($as_sc_IterableOnceOps($n($as_sci_IndexedSeq($n(b).result__O())).map__F1__O(new $c_sjsr_AnonFunction1(((x$1) => {
+ var x$1$1 = $as_T5(x$1);
+ if ((x$1$1 !== null)) {
+ $uI($n(x$1$1).T5__f__1);
+ $uI($n(x$1$1).T5__f__2);
+ $uD($n(x$1$1).T5__f__3);
+ var x$2 = $uD($n(x$1$1).T5__f__4);
+ var y$1 = $uD($n(x$1$1).T5__f__5);
+ return ((x$2 + ",") + y$1)
+ };
+ throw new $c_s_MatchError(x$1$1)
+ })))));
+ this.Lscatan_views_game_components_GameMapComponent$__f_svgCornersPoints = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$10, "", " ", "");
+ this.Lscatan_views_game_components_GameMapComponent$__f_layersToCanvasSize = new $c_sjsr_AnonFunction1(((x$3) => {
+ var x$4 = $uI(x$3);
+ return ((50 + Math.imul((x$4 << 1), $p_Lscatan_views_game_components_GameMapComponent$__hexSize__I(this))) | 0)
+ }));
+ var $$x4 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).svg__Lcom_raquo_laminar_tags_SvgTag();
+ var $$x3 = $m_sr_ScalaRunTime$();
+ var $$x2 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).defs__Lcom_raquo_laminar_tags_SvgTag();
+ var $$x1 = $m_sr_ScalaRunTime$();
+ var this$14 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var this$11 = $n($m_Lscatan_views_game_components_ContextMap$().Lscatan_views_game_components_ContextMap$__f_resources);
+ $m_sci_List$();
+ var this$13 = $n($m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$11));
+ var p = new $c_sjsr_AnonFunction1(((x$1$2) => {
+ var x$1$3 = $as_T2(x$1$2);
+ return ((x$1$3 !== null) && ($as_s_reflect_Enum($n(x$1$3)._1__O()), $as_T($n(x$1$3)._2__O()), true))
+ }));
+ var nodes = $as_sc_Seq(new $c_sc_IterableOps$WithFilter(this$13, p).map__F1__O(new $c_sjsr_AnonFunction1(((x$1$3$1) => {
+ var x$1$4 = $as_T2(x$1$3$1);
+ if ((x$1$4 !== null)) {
+ var terrain$1 = $as_s_reflect_Enum($n(x$1$4)._1__O());
+ var path$1 = $as_T($n(x$1$4)._2__O());
+ return $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).pattern__Lcom_raquo_laminar_tags_SvgTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).idAttr__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter($m_Lscatan_views_game_components_ContextMap$().toImgId__s_reflect_Enum__T(terrain$1)), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).width__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("100%"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).height__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("100%"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).patternContentUnits__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("objectBoundingBox"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).image__Lcom_raquo_laminar_tags_SvgTag()).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($m_sr_ScalaRunTime$().wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).href__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter(path$1), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).width__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("1"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).height__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("1"), $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).svg__Lcom_raquo_laminar_api_Laminar$svg$()).preserveAspectRatio__Lcom_raquo_laminar_keys_SvgAttr()).$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter("none")])))])))
+ };
+ throw new $c_s_MatchError(x$1$4)
+ }))));
+ this.Lscatan_views_game_components_GameMapComponent$__f_svgImages = $n($$x4).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x3).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$n($$x2).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement($n($$x1).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$f_Lcom_raquo_laminar_Implicits__nodeSeqToModifier__sc_Seq__Lcom_raquo_laminar_modifiers_Modifier(this$14, nodes)])))])))
+}
+$c_Lscatan_views_game_components_GameMapComponent$.prototype = new $h_O();
+$c_Lscatan_views_game_components_GameMapComponent$.prototype.constructor = $c_Lscatan_views_game_components_GameMapComponent$;
+/** @constructor */
+function $h_Lscatan_views_game_components_GameMapComponent$() {
+ /**/
+}
+$h_Lscatan_views_game_components_GameMapComponent$.prototype = $c_Lscatan_views_game_components_GameMapComponent$.prototype;
+$c_Lscatan_views_game_components_GameMapComponent$.prototype.mapComponent__Lcom_raquo_airstream_core_Signal__Lscatan_controllers_game_GameController__Lcom_raquo_laminar_nodes_ReactiveElement = (function(reactiveState, gameController) {
+ var $$x9 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x8 = $m_sr_ScalaRunTime$();
+ var $$x7 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-game-tab");
+ $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_child);
+ var this$8 = $n(reactiveState);
+ var project = new $c_sjsr_AnonFunction1(((state) => {
+ var state$1 = $as_Lscatan_model_ApplicationState(state);
+ var this$2 = $n($n(state$1).Lscatan_model_ApplicationState__f_game);
+ if (this$2.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1 = this$2.get__O();
+ var game = $as_Lscatan_model_game_ScatanGame(arg1);
+ var this$3 = $n(game);
+ var state$2 = $as_Lscatan_model_game_ScatanState($n(this$3.Lscatan_model_game_ScatanGame__f_game).Lscatan_lib_game_Game__f_state);
+ var $$x1 = new $c_s_Some(new $c_T2(game, state$2))
+ };
+ var this$5 = $n($$x1);
+ if (this$5.isEmpty__Z()) {
+ var $$x2 = $m_s_None$()
+ } else {
+ var arg1$1 = this$5.get__O();
+ var x$1 = $as_T2(arg1$1);
+ matchResult3: {
+ var $$x3;
+ if ((x$1 !== null)) {
+ $as_Lscatan_model_game_ScatanGame($n(x$1)._1__O());
+ var state$3 = $as_Lscatan_model_game_ScatanState($n(x$1)._2__O());
+ var $$x3 = $p_Lscatan_views_game_components_GameMapComponent$__getHexagonalMap__Lscatan_model_game_ScatanState__Lscatan_controllers_game_GameController__Lcom_raquo_laminar_nodes_ReactiveElement(this, state$3, gameController);
+ break matchResult3
+ };
+ throw new $c_s_MatchError(x$1)
+ };
+ var $$x2 = new $c_s_Some($$x3)
+ };
+ var this$6 = $n($$x2);
+ if (this$6.isEmpty__Z()) {
+ var $$x6 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x5 = $m_sr_ScalaRunTime$();
+ var this$7 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var renderable = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x4 = $n($$x6).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x5).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$7, "No game", renderable)])))
+ } else {
+ var $$x4 = this$6.get__O()
+ };
+ return $as_Lcom_raquo_laminar_nodes_ReactiveElement($$x4)
+ }));
+ var childSource = new $c_Lcom_raquo_airstream_misc_MapSignal(this$8, project, $m_s_None$());
+ return $n($$x9).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x8).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x7, $m_Lcom_raquo_laminar_modifiers_ChildInserter$().apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableNode__Lcom_raquo_laminar_modifiers_Inserter(childSource, $m_Lcom_raquo_laminar_modifiers_RenderableNode$().Lcom_raquo_laminar_modifiers_RenderableNode$__f_nodeRenderable)])))
+});
+var $d_Lscatan_views_game_components_GameMapComponent$ = new $TypeData().initClass({
+ Lscatan_views_game_components_GameMapComponent$: 0
+}, false, "scatan.views.game.components.GameMapComponent$", {
+ Lscatan_views_game_components_GameMapComponent$: 1,
+ O: 1
+});
+$c_Lscatan_views_game_components_GameMapComponent$.prototype.$classData = $d_Lscatan_views_game_components_GameMapComponent$;
+var $n_Lscatan_views_game_components_GameMapComponent$;
+function $m_Lscatan_views_game_components_GameMapComponent$() {
+ if ((!$n_Lscatan_views_game_components_GameMapComponent$)) {
+ $n_Lscatan_views_game_components_GameMapComponent$ = new $c_Lscatan_views_game_components_GameMapComponent$()
+ };
+ return $n_Lscatan_views_game_components_GameMapComponent$
+}
+/** @constructor */
+function $c_Lscatan_views_game_components_LeftTabComponent$() {
+ /**/
+}
+$c_Lscatan_views_game_components_LeftTabComponent$.prototype = new $h_O();
+$c_Lscatan_views_game_components_LeftTabComponent$.prototype.constructor = $c_Lscatan_views_game_components_LeftTabComponent$;
+/** @constructor */
+function $h_Lscatan_views_game_components_LeftTabComponent$() {
+ /**/
+}
+$h_Lscatan_views_game_components_LeftTabComponent$.prototype = $c_Lscatan_views_game_components_LeftTabComponent$.prototype;
+$c_Lscatan_views_game_components_LeftTabComponent$.prototype.currentPlayerComponent__Lcom_raquo_airstream_core_Signal__Lcom_raquo_laminar_nodes_ReactiveElement = (function(view) {
+ var $$x16 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x15 = $m_sr_ScalaRunTime$();
+ var $$x14 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).h2__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x13 = $m_sr_ScalaRunTime$();
+ var $$x12 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-player");
+ $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_child).Lcom_raquo_laminar_receivers_ChildReceiver$__f_text);
+ var this$5 = $n(view);
+ var project = new $c_sjsr_AnonFunction1(((_$1) => {
+ var _$1$1 = $as_Lscatan_model_ApplicationState(_$1);
+ var this$2 = $n($n(_$1$1).Lscatan_model_ApplicationState__f_game);
+ if (this$2.isEmpty__Z()) {
+ var $$x11 = $m_s_None$()
+ } else {
+ var arg1 = this$2.get__O();
+ var _$2 = $as_Lscatan_model_game_ScatanGame(arg1);
+ var this$3 = $n(_$2);
+ var $$x11 = new $c_s_Some($n($as_Lscatan_model_game_config_ScatanPlayer($n($n(this$3.Lscatan_model_game_ScatanGame__f_game).Lscatan_lib_game_Game__f_turn).Lscatan_lib_game_TurnImpl__f_player)).Lscatan_model_game_config_ScatanPlayerImpl__f_name)
+ };
+ var this$4 = $n($$x11);
+ return ("Current Player: " + (this$4.isEmpty__Z() ? "No player" : this$4.get__O()))
+ }));
+ var textSource = new $c_Lcom_raquo_airstream_misc_MapSignal(this$5, project, $m_s_None$());
+ var $$x10 = $n($$x14).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x13).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x12, $m_Lcom_raquo_laminar_modifiers_ChildTextInserter$().apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_modifiers_Inserter(textSource, $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable)])));
+ var $$x9 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).h2__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x8 = $m_sr_ScalaRunTime$();
+ var $$x7 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-phase");
+ $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_child).Lcom_raquo_laminar_receivers_ChildReceiver$__f_text);
+ var this$10 = $n(view);
+ var project$1 = new $c_sjsr_AnonFunction1(((_$3) => {
+ var _$3$1 = $as_Lscatan_model_ApplicationState(_$3);
+ var this$7 = $n($n(_$3$1).Lscatan_model_ApplicationState__f_game);
+ if (this$7.isEmpty__Z()) {
+ var $$x6 = $m_s_None$()
+ } else {
+ var arg1$1 = this$7.get__O();
+ var _$4 = $as_Lscatan_model_game_ScatanGame(arg1$1);
+ var this$8 = $n(_$4);
+ var $$x6 = new $c_s_Some($dp_toString__T($n($n($n(this$8.Lscatan_model_game_ScatanGame__f_game).Lscatan_lib_game_Game__f_gameStatus).Lscatan_lib_game_GameStatus__f_phase)))
+ };
+ var this$9 = $n($$x6);
+ return ("Phase: " + (this$9.isEmpty__Z() ? "No phase" : this$9.get__O()))
+ }));
+ var textSource$1 = new $c_Lcom_raquo_airstream_misc_MapSignal(this$10, project$1, $m_s_None$());
+ var $$x5 = $n($$x9).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x8).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x7, $m_Lcom_raquo_laminar_modifiers_ChildTextInserter$().apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_modifiers_Inserter(textSource$1, $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable)])));
+ var $$x4 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).h2__Lcom_raquo_laminar_tags_HtmlTag();
+ var $$x3 = $m_sr_ScalaRunTime$();
+ var $$x2 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-step");
+ $n($n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_child).Lcom_raquo_laminar_receivers_ChildReceiver$__f_text);
+ var this$15 = $n(view);
+ var project$2 = new $c_sjsr_AnonFunction1(((_$5) => {
+ var _$5$1 = $as_Lscatan_model_ApplicationState(_$5);
+ var this$12 = $n($n(_$5$1).Lscatan_model_ApplicationState__f_game);
+ if (this$12.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1$2 = this$12.get__O();
+ var _$6 = $as_Lscatan_model_game_ScatanGame(arg1$2);
+ var this$13 = $n(_$6);
+ var $$x1 = new $c_s_Some($dp_toString__T($n($n($n(this$13.Lscatan_model_game_ScatanGame__f_game).Lscatan_lib_game_Game__f_gameStatus).Lscatan_lib_game_GameStatus__f_step)))
+ };
+ var this$14 = $n($$x1);
+ return ("Step: " + (this$14.isEmpty__Z() ? "No step" : this$14.get__O()))
+ }));
+ var textSource$2 = new $c_Lcom_raquo_airstream_misc_MapSignal(this$15, project$2, $m_s_None$());
+ return $n($$x16).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x15).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x10, $$x5, $n($$x4).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x3).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x2, $m_Lcom_raquo_laminar_modifiers_ChildTextInserter$().apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_modifiers_Inserter(textSource$2, $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable)])))])))
+});
+$c_Lscatan_views_game_components_LeftTabComponent$.prototype.possibleMovesComponent__Lcom_raquo_airstream_core_Signal__Lcom_raquo_laminar_nodes_ReactiveElement = (function(view) {
+ var $$x10 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x9 = $m_sr_ScalaRunTime$();
+ var $$x8 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-moves");
+ var this$1 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var renderable = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x7 = $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$1, "Possible moves:", renderable);
+ var $$x6 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).ul__Lcom_raquo_laminar_tags_HtmlTag();
+ var $$x5 = $m_sr_ScalaRunTime$();
+ $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_children);
+ var this$8 = $n(view);
+ var project = new $c_sjsr_AnonFunction1(((state) => {
+ var state$1 = $as_Lscatan_model_ApplicationState(state);
+ var this$3 = $n($n(state$1).Lscatan_model_ApplicationState__f_game);
+ if (this$3.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1 = this$3.get__O();
+ var _$7 = $as_Lscatan_model_game_ScatanGame(arg1);
+ var this$4 = $n(_$7);
+ var this$5 = $n($f_Lscatan_model_game_ScatanGameStatus__allowedActions__sci_Set(this$4));
+ var $$x1 = new $c_s_Some($m_sci_Seq$().from__sc_IterableOnce__sci_Seq(this$5))
+ };
+ var this$6 = $n($$x1);
+ return $as_sci_Seq($n($as_sc_IterableOps((this$6.isEmpty__Z() ? $as_sci_Seq($n($m_s_package$().s_package$__f_Seq).empty__sc_SeqOps()) : this$6.get__O()))).map__F1__O(new $c_sjsr_AnonFunction1(((move) => {
+ var move$1 = $as_Lscatan_model_game_config_ScatanActions(move);
+ var $$x4 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).li__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x3 = $m_sr_ScalaRunTime$();
+ var $$x2 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_cls).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-move");
+ var this$7 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var value = $n(move$1).toString__T();
+ var renderable$1 = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ return $n($$x4).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x3).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x2, $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$7, value, renderable$1)])))
+ }))))
+ }));
+ var childrenSource = new $c_Lcom_raquo_airstream_misc_MapSignal(this$8, project, $m_s_None$());
+ return $n($$x10).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x9).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x8, $$x7, $n($$x6).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x5).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$m_Lcom_raquo_laminar_modifiers_ChildrenInserter$().apply__Lcom_raquo_airstream_core_Observable__Lcom_raquo_laminar_modifiers_RenderableNode__Lcom_raquo_laminar_modifiers_Inserter(childrenSource, $m_Lcom_raquo_laminar_modifiers_RenderableNode$().Lcom_raquo_laminar_modifiers_RenderableNode$__f_nodeRenderable)])))])))
+});
+$c_Lscatan_views_game_components_LeftTabComponent$.prototype.isActionDisabled__Lcom_raquo_airstream_core_Signal__Lscatan_model_game_config_ScatanActions__Lcom_raquo_airstream_core_Signal = (function(view, action) {
+ var this$4 = $n(view);
+ var project = new $c_sjsr_AnonFunction1(((_$8) => {
+ var _$8$1 = $as_Lscatan_model_ApplicationState(_$8);
+ var this$2 = $n($n(_$8$1).Lscatan_model_ApplicationState__f_game);
+ if ((!this$2.isEmpty__Z())) {
+ var arg1 = this$2.get__O();
+ var _$9 = $as_Lscatan_model_game_ScatanGame(arg1);
+ var this$3 = $n(_$9);
+ return (!$n($f_Lscatan_model_game_ScatanGameStatus__allowedActions__sci_Set(this$3)).contains__O__Z(action))
+ } else {
+ return false
+ }
+ }));
+ return new $c_Lcom_raquo_airstream_misc_MapSignal(this$4, project, $m_s_None$())
+});
+$c_Lscatan_views_game_components_LeftTabComponent$.prototype.buttonsComponent__Lcom_raquo_airstream_core_Signal__Lscatan_controllers_game_GameController__Lcom_raquo_laminar_nodes_ReactiveElement = (function(view, controller) {
+ var $$x12 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).div__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x11 = $m_sr_ScalaRunTime$();
+ var $$x10 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-buttons");
+ var $$x9 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).button__Lcom_raquo_laminar_tags_HtmlTag());
+ var $$x8 = $m_sr_ScalaRunTime$();
+ var $$x7 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-button roll-dice-button");
+ var this$1 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var renderable = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x6 = $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$1, "Roll dice", renderable);
+ $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var eventProp = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).onClick__Lcom_raquo_laminar_keys_EventProp();
+ var this$4 = $n($m_Lcom_raquo_laminar_keys_EventProcessor$().empty__Lcom_raquo_laminar_keys_EventProp__Z__Z__Lcom_raquo_laminar_keys_EventProcessor(eventProp, false, false));
+ var onNext = new $c_sjsr_AnonFunction1(((_$10) => {
+ $n(controller).rollDice__V()
+ }));
+ var $$x5 = $n($$x9).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x8).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x7, $$x6, new $c_Lcom_raquo_laminar_modifiers_EventListener(this$4, onNext), $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).disabled__Lcom_raquo_laminar_keys_HtmlProp()).$less$minus$minus__Lcom_raquo_airstream_core_Source__Lcom_raquo_laminar_modifiers_KeyUpdater(this.isActionDisabled__Lcom_raquo_airstream_core_Signal__Lscatan_model_game_config_ScatanActions__Lcom_raquo_airstream_core_Signal(view, $s_Lscatan_model_game_config_ScatanActions$__RollDice__Lscatan_model_game_config_ScatanActions()))])));
+ var $$x4 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).button__Lcom_raquo_laminar_tags_HtmlTag();
+ var $$x3 = $m_sr_ScalaRunTime$();
+ var $$x2 = $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).Lcom_raquo_laminar_api_package$$anon$1__f_className).$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter("game-view-button end-turn-button");
+ var this$5 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var renderable$1 = $m_Lcom_raquo_laminar_modifiers_RenderableText$().Lcom_raquo_laminar_modifiers_RenderableText$__f_stringRenderable;
+ var $$x1 = $f_Lcom_raquo_laminar_Implicits__textToTextNode__O__Lcom_raquo_laminar_modifiers_RenderableText__Lcom_raquo_laminar_nodes_TextNode(this$5, "End Turn", renderable$1);
+ $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L);
+ var eventProp$1 = $n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).onClick__Lcom_raquo_laminar_keys_EventProp();
+ var this$7 = $n($m_Lcom_raquo_laminar_keys_EventProcessor$().empty__Lcom_raquo_laminar_keys_EventProp__Z__Z__Lcom_raquo_laminar_keys_EventProcessor(eventProp$1, false, false));
+ var onNext$1 = new $c_sjsr_AnonFunction1(((_$11) => {
+ $n(controller).nextTurn__V()
+ }));
+ return $n($$x12).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x11).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x10, $$x5, $n($$x4).apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement($n($$x3).wrapRefArray__AO__sci_ArraySeq(new ($d_Lcom_raquo_laminar_modifiers_Modifier.getArrayOf().constr)([$$x2, $$x1, new $c_Lcom_raquo_laminar_modifiers_EventListener(this$7, onNext$1), $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).disabled__Lcom_raquo_laminar_keys_HtmlProp()).$less$minus$minus__Lcom_raquo_airstream_core_Source__Lcom_raquo_laminar_modifiers_KeyUpdater(this.isActionDisabled__Lcom_raquo_airstream_core_Signal__Lscatan_model_game_config_ScatanActions__Lcom_raquo_airstream_core_Signal(view, $s_Lscatan_model_game_config_ScatanActions$__NextTurn__Lscatan_model_game_config_ScatanActions()))])))])))
+});
+var $d_Lscatan_views_game_components_LeftTabComponent$ = new $TypeData().initClass({
+ Lscatan_views_game_components_LeftTabComponent$: 0
+}, false, "scatan.views.game.components.LeftTabComponent$", {
+ Lscatan_views_game_components_LeftTabComponent$: 1,
+ O: 1
+});
+$c_Lscatan_views_game_components_LeftTabComponent$.prototype.$classData = $d_Lscatan_views_game_components_LeftTabComponent$;
+var $n_Lscatan_views_game_components_LeftTabComponent$;
+function $m_Lscatan_views_game_components_LeftTabComponent$() {
+ if ((!$n_Lscatan_views_game_components_LeftTabComponent$)) {
+ $n_Lscatan_views_game_components_LeftTabComponent$ = new $c_Lscatan_views_game_components_LeftTabComponent$()
+ };
+ return $n_Lscatan_views_game_components_LeftTabComponent$
+}
+/** @constructor */
+function $c_Lcom_raquo_airstream_ownership_OneTimeOwner(onAccessAfterKilled) {
+ this.Lcom_raquo_airstream_ownership_OneTimeOwner__f_subscriptions = null;
+ this.Lcom_raquo_airstream_ownership_OneTimeOwner__f_onAccessAfterKilled = null;
+ this.Lcom_raquo_airstream_ownership_OneTimeOwner__f__isKilledForever = false;
+ this.Lcom_raquo_airstream_ownership_OneTimeOwner__f_onAccessAfterKilled = onAccessAfterKilled;
+ $f_Lcom_raquo_airstream_ownership_Owner__$init$__V(this);
+ this.Lcom_raquo_airstream_ownership_OneTimeOwner__f__isKilledForever = false
+}
+$c_Lcom_raquo_airstream_ownership_OneTimeOwner.prototype = new $h_O();
+$c_Lcom_raquo_airstream_ownership_OneTimeOwner.prototype.constructor = $c_Lcom_raquo_airstream_ownership_OneTimeOwner;
+/** @constructor */
+function $h_Lcom_raquo_airstream_ownership_OneTimeOwner() {
+ /**/
+}
+$h_Lcom_raquo_airstream_ownership_OneTimeOwner.prototype = $c_Lcom_raquo_airstream_ownership_OneTimeOwner.prototype;
+$c_Lcom_raquo_airstream_ownership_OneTimeOwner.prototype.own__Lcom_raquo_airstream_ownership_Subscription__V = (function(subscription) {
+ if (this.Lcom_raquo_airstream_ownership_OneTimeOwner__f__isKilledForever) {
+ var this$1 = $n(subscription);
+ $p_Lcom_raquo_airstream_ownership_Subscription__safeCleanup__V(this$1);
+ $n(this.Lcom_raquo_airstream_ownership_OneTimeOwner__f_onAccessAfterKilled).apply__O()
+ } else {
+ $f_Lcom_raquo_airstream_ownership_Owner__own__Lcom_raquo_airstream_ownership_Subscription__V(this, subscription)
+ }
+});
+$c_Lcom_raquo_airstream_ownership_OneTimeOwner.prototype.killSubscriptions__V = (function() {
+ $f_Lcom_raquo_airstream_ownership_Owner__killSubscriptions__V(this);
+ this.Lcom_raquo_airstream_ownership_OneTimeOwner__f__isKilledForever = true
+});
+var $d_Lcom_raquo_airstream_ownership_OneTimeOwner = new $TypeData().initClass({
+ Lcom_raquo_airstream_ownership_OneTimeOwner: 0
+}, false, "com.raquo.airstream.ownership.OneTimeOwner", {
+ Lcom_raquo_airstream_ownership_OneTimeOwner: 1,
+ O: 1,
+ Lcom_raquo_airstream_ownership_Owner: 1
+});
+$c_Lcom_raquo_airstream_ownership_OneTimeOwner.prototype.$classData = $d_Lcom_raquo_airstream_ownership_OneTimeOwner;
+/** @constructor */
+function $c_Lcom_raquo_laminar_codecs_package$$anon$1() {
+ /**/
+}
+$c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype = new $h_O();
+$c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype.constructor = $c_Lcom_raquo_laminar_codecs_package$$anon$1;
+/** @constructor */
+function $h_Lcom_raquo_laminar_codecs_package$$anon$1() {
+ /**/
+}
+$h_Lcom_raquo_laminar_codecs_package$$anon$1.prototype = $c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype;
+$c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype.decode__T__Z = (function(domValue) {
+ return (domValue !== null)
+});
+$c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype.encode__Z__T = (function(scalaValue) {
+ return (scalaValue ? "" : null)
+});
+$c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype.decode__O__O = (function(domValue) {
+ return this.decode__T__Z($as_T(domValue))
+});
+$c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype.encode__O__O = (function(scalaValue) {
+ return this.encode__Z__T($uZ(scalaValue))
+});
+var $d_Lcom_raquo_laminar_codecs_package$$anon$1 = new $TypeData().initClass({
+ Lcom_raquo_laminar_codecs_package$$anon$1: 0
+}, false, "com.raquo.laminar.codecs.package$$anon$1", {
+ Lcom_raquo_laminar_codecs_package$$anon$1: 1,
+ O: 1,
+ Lcom_raquo_laminar_codecs_Codec: 1
+});
+$c_Lcom_raquo_laminar_codecs_package$$anon$1.prototype.$classData = $d_Lcom_raquo_laminar_codecs_package$$anon$1;
+/** @constructor */
+function $c_Lcom_raquo_laminar_codecs_package$$anon$2() {
+ /**/
+}
+$c_Lcom_raquo_laminar_codecs_package$$anon$2.prototype = new $h_O();
+$c_Lcom_raquo_laminar_codecs_package$$anon$2.prototype.constructor = $c_Lcom_raquo_laminar_codecs_package$$anon$2;
+/** @constructor */
+function $h_Lcom_raquo_laminar_codecs_package$$anon$2() {
+ /**/
+}
+$h_Lcom_raquo_laminar_codecs_package$$anon$2.prototype = $c_Lcom_raquo_laminar_codecs_package$$anon$2.prototype;
+$c_Lcom_raquo_laminar_codecs_package$$anon$2.prototype.encode__O__O = (function(scalaValue) {
+ return scalaValue
+});
+$c_Lcom_raquo_laminar_codecs_package$$anon$2.prototype.decode__O__O = (function(domValue) {
+ return domValue
+});
+var $d_Lcom_raquo_laminar_codecs_package$$anon$2 = new $TypeData().initClass({
+ Lcom_raquo_laminar_codecs_package$$anon$2: 0
+}, false, "com.raquo.laminar.codecs.package$$anon$2", {
+ Lcom_raquo_laminar_codecs_package$$anon$2: 1,
+ O: 1,
+ Lcom_raquo_laminar_codecs_Codec: 1
+});
+$c_Lcom_raquo_laminar_codecs_package$$anon$2.prototype.$classData = $d_Lcom_raquo_laminar_codecs_package$$anon$2;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_CompositeKey(name, getRawDomValue, setRawDomValue, separator) {
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_getRawDomValue = null;
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_setRawDomValue = null;
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_separator = null;
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_codec = null;
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_getRawDomValue = getRawDomValue;
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_setRawDomValue = setRawDomValue;
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_separator = separator;
+ this.Lcom_raquo_laminar_keys_CompositeKey__f_codec = new $c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec(separator)
+}
+$c_Lcom_raquo_laminar_keys_CompositeKey.prototype = new $h_Lcom_raquo_laminar_keys_Key();
+$c_Lcom_raquo_laminar_keys_CompositeKey.prototype.constructor = $c_Lcom_raquo_laminar_keys_CompositeKey;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_CompositeKey() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_CompositeKey.prototype = $c_Lcom_raquo_laminar_keys_CompositeKey.prototype;
+$c_Lcom_raquo_laminar_keys_CompositeKey.prototype.$colon$eq__T__Lcom_raquo_laminar_modifiers_CompositeKeySetter = (function(items) {
+ $n($n($m_Lcom_raquo_laminar_api_package$().Lcom_raquo_laminar_api_package$__f_L).StringValueMapper__Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$());
+ var separator = this.Lcom_raquo_laminar_keys_CompositeKey__f_separator;
+ var normalizedItems = $m_Lcom_raquo_laminar_keys_CompositeKey$().normalize__T__T__sci_List(items, separator);
+ return new $c_Lcom_raquo_laminar_modifiers_CompositeKeySetter(this, normalizedItems, $m_s_package$().s_package$__f_Nil)
+});
+var $d_Lcom_raquo_laminar_keys_CompositeKey = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_CompositeKey: 0
+}, false, "com.raquo.laminar.keys.CompositeKey", {
+ Lcom_raquo_laminar_keys_CompositeKey: 1,
+ Lcom_raquo_laminar_keys_Key: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_CompositeKey.prototype.$classData = $d_Lcom_raquo_laminar_keys_CompositeKey;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec(separator) {
+ this.Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec__f_separator = null;
+ this.Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec__f_separator = separator
+}
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype = new $h_O();
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype.constructor = $c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype = $c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype;
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype.decode__T__sci_List = (function(domValue) {
+ return $m_Lcom_raquo_laminar_keys_CompositeKey$().normalize__T__T__sci_List(domValue, this.Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec__f_separator)
+});
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype.encode__sc_Iterable__T = (function(scalaValue) {
+ var this$1 = $n(scalaValue);
+ var sep = this.Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec__f_separator;
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, "", sep, "")
+});
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype.decode__O__O = (function(domValue) {
+ return this.decode__T__sci_List($as_T(domValue))
+});
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype.encode__O__O = (function(scalaValue) {
+ return this.encode__sc_Iterable__T($as_sc_Iterable(scalaValue))
+});
+var $d_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec: 0
+}, false, "com.raquo.laminar.keys.CompositeKey$CompositeCodec", {
+ Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec: 1,
+ O: 1,
+ Lcom_raquo_laminar_codecs_Codec: 1
+});
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec.prototype.$classData = $d_Lcom_raquo_laminar_keys_CompositeKey$CompositeCodec;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$(outer) {
+ if ((outer === null)) {
+ throw new $c_jl_NullPointerException()
+ }
+}
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$.prototype = new $h_O();
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$.prototype.constructor = $c_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$.prototype = $c_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$.prototype;
+var $d_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$ = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$: 0
+}, false, "com.raquo.laminar.keys.CompositeKey$CompositeValueMappers$StringValueMapper$", {
+ Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$: 1,
+ O: 1,
+ Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMapper: 1
+});
+$c_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$.prototype.$classData = $d_Lcom_raquo_laminar_keys_CompositeKey$CompositeValueMappers$StringValueMapper$;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_EventProp(name) {
+ this.Lcom_raquo_laminar_keys_EventProp__f_name = null;
+ this.Lcom_raquo_laminar_keys_EventProp__f_name = name
+}
+$c_Lcom_raquo_laminar_keys_EventProp.prototype = new $h_Lcom_raquo_laminar_keys_Key();
+$c_Lcom_raquo_laminar_keys_EventProp.prototype.constructor = $c_Lcom_raquo_laminar_keys_EventProp;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_EventProp() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_EventProp.prototype = $c_Lcom_raquo_laminar_keys_EventProp.prototype;
+var $d_Lcom_raquo_laminar_keys_EventProp = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_EventProp: 0
+}, false, "com.raquo.laminar.keys.EventProp", {
+ Lcom_raquo_laminar_keys_EventProp: 1,
+ Lcom_raquo_laminar_keys_Key: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_EventProp.prototype.$classData = $d_Lcom_raquo_laminar_keys_EventProp;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_HtmlAttr(name, codec) {
+ this.Lcom_raquo_laminar_keys_HtmlAttr__f_name = null;
+ this.Lcom_raquo_laminar_keys_HtmlAttr__f_codec = null;
+ this.Lcom_raquo_laminar_keys_HtmlAttr__f_name = name;
+ this.Lcom_raquo_laminar_keys_HtmlAttr__f_codec = codec
+}
+$c_Lcom_raquo_laminar_keys_HtmlAttr.prototype = new $h_Lcom_raquo_laminar_keys_Key();
+$c_Lcom_raquo_laminar_keys_HtmlAttr.prototype.constructor = $c_Lcom_raquo_laminar_keys_HtmlAttr;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_HtmlAttr() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_HtmlAttr.prototype = $c_Lcom_raquo_laminar_keys_HtmlAttr.prototype;
+$c_Lcom_raquo_laminar_keys_HtmlAttr.prototype.$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter = (function(value) {
+ return new $c_Lcom_raquo_laminar_modifiers_KeySetter(this, value, new $c_sjsr_AnonFunction3(((element, attr, value$2) => {
+ var element$1 = $as_Lcom_raquo_laminar_nodes_ReactiveHtmlElement(element);
+ var attr$1 = $as_Lcom_raquo_laminar_keys_HtmlAttr(attr);
+ $m_Lcom_raquo_laminar_DomApi$().setHtmlAttribute__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlAttr__O__V(element$1, attr$1, value$2)
+ })))
+});
+function $as_Lcom_raquo_laminar_keys_HtmlAttr(obj) {
+ return (((obj instanceof $c_Lcom_raquo_laminar_keys_HtmlAttr) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.laminar.keys.HtmlAttr"))
+}
+function $isArrayOf_Lcom_raquo_laminar_keys_HtmlAttr(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_laminar_keys_HtmlAttr)))
+}
+function $asArrayOf_Lcom_raquo_laminar_keys_HtmlAttr(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_laminar_keys_HtmlAttr(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.laminar.keys.HtmlAttr;", depth))
+}
+var $d_Lcom_raquo_laminar_keys_HtmlAttr = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_HtmlAttr: 0
+}, false, "com.raquo.laminar.keys.HtmlAttr", {
+ Lcom_raquo_laminar_keys_HtmlAttr: 1,
+ Lcom_raquo_laminar_keys_Key: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_HtmlAttr.prototype.$classData = $d_Lcom_raquo_laminar_keys_HtmlAttr;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_HtmlProp(name, codec) {
+ this.Lcom_raquo_laminar_keys_HtmlProp__f_name = null;
+ this.Lcom_raquo_laminar_keys_HtmlProp__f_codec = null;
+ this.Lcom_raquo_laminar_keys_HtmlProp__f_name = name;
+ this.Lcom_raquo_laminar_keys_HtmlProp__f_codec = codec
+}
+$c_Lcom_raquo_laminar_keys_HtmlProp.prototype = new $h_Lcom_raquo_laminar_keys_Key();
+$c_Lcom_raquo_laminar_keys_HtmlProp.prototype.constructor = $c_Lcom_raquo_laminar_keys_HtmlProp;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_HtmlProp() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_HtmlProp.prototype = $c_Lcom_raquo_laminar_keys_HtmlProp.prototype;
+$c_Lcom_raquo_laminar_keys_HtmlProp.prototype.$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter = (function(value) {
+ return new $c_Lcom_raquo_laminar_modifiers_KeySetter(this, value, new $c_sjsr_AnonFunction3(((element, prop, value$2) => {
+ var element$1 = $as_Lcom_raquo_laminar_nodes_ReactiveHtmlElement(element);
+ var prop$1 = $as_Lcom_raquo_laminar_keys_HtmlProp(prop);
+ $m_Lcom_raquo_laminar_DomApi$().setHtmlProperty__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O__V(element$1, prop$1, value$2)
+ })))
+});
+$c_Lcom_raquo_laminar_keys_HtmlProp.prototype.$less$minus$minus__Lcom_raquo_airstream_core_Source__Lcom_raquo_laminar_modifiers_KeyUpdater = (function(values) {
+ var update = ((this.Lcom_raquo_laminar_keys_HtmlProp__f_name === "value") ? new $c_sjsr_AnonFunction3(((element, nextValue, reason) => {
+ var element$1 = $as_Lcom_raquo_laminar_nodes_ReactiveHtmlElement(element);
+ $as_Lcom_raquo_laminar_modifiers_Modifier(reason);
+ var nextDomValue = $n(this.Lcom_raquo_laminar_keys_HtmlProp__f_codec).encode__O__O(nextValue);
+ var x = $m_Lcom_raquo_laminar_DomApi$().getHtmlPropertyRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O(element$1, this);
+ if ((!((x !== (void 0)) && $m_sr_BoxesRunTime$().equals__O__O__Z(nextDomValue, x)))) {
+ $m_Lcom_raquo_laminar_DomApi$().setHtmlPropertyRaw__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O__V(element$1, this, nextDomValue)
+ }
+ })) : new $c_sjsr_AnonFunction3(((element$2, nextValue$2, reason$2) => {
+ var element$3 = $as_Lcom_raquo_laminar_nodes_ReactiveHtmlElement(element$2);
+ $as_Lcom_raquo_laminar_modifiers_Modifier(reason$2);
+ $m_Lcom_raquo_laminar_DomApi$().setHtmlProperty__Lcom_raquo_laminar_nodes_ReactiveHtmlElement__Lcom_raquo_laminar_keys_HtmlProp__O__V(element$3, this, nextValue$2)
+ })));
+ var this$7 = $n(values);
+ return new $c_Lcom_raquo_laminar_modifiers_KeyUpdater(this, this$7.toObservable__Lcom_raquo_airstream_core_Signal(), update)
+});
+function $as_Lcom_raquo_laminar_keys_HtmlProp(obj) {
+ return (((obj instanceof $c_Lcom_raquo_laminar_keys_HtmlProp) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.laminar.keys.HtmlProp"))
+}
+function $isArrayOf_Lcom_raquo_laminar_keys_HtmlProp(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_laminar_keys_HtmlProp)))
+}
+function $asArrayOf_Lcom_raquo_laminar_keys_HtmlProp(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_laminar_keys_HtmlProp(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.laminar.keys.HtmlProp;", depth))
+}
+var $d_Lcom_raquo_laminar_keys_HtmlProp = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_HtmlProp: 0
+}, false, "com.raquo.laminar.keys.HtmlProp", {
+ Lcom_raquo_laminar_keys_HtmlProp: 1,
+ Lcom_raquo_laminar_keys_Key: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_HtmlProp.prototype.$classData = $d_Lcom_raquo_laminar_keys_HtmlProp;
+/** @constructor */
+function $c_Lcom_raquo_laminar_keys_SvgAttr(localName, codec, namespacePrefix) {
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_localName = null;
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_codec = null;
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_name = null;
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_namespaceUri = null;
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_localName = localName;
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_codec = codec;
+ var this$1 = $n(namespacePrefix);
+ if (this$1.isEmpty__Z()) {
+ var $$x1 = $m_s_None$()
+ } else {
+ var arg1 = this$1.get__O();
+ var _$1 = $as_T(arg1);
+ var $$x1 = new $c_s_Some(((_$1 + ":") + localName))
+ };
+ var this$2 = $n($$x1);
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_name = $as_T((this$2.isEmpty__Z() ? localName : this$2.get__O()));
+ var this$3 = $n(namespacePrefix);
+ if (this$3.isEmpty__Z()) {
+ var $$x2 = $m_s_None$()
+ } else {
+ var arg1$1 = this$3.get__O();
+ var namespace = $as_T(arg1$1);
+ var $$x2 = new $c_s_Some($m_Lcom_raquo_laminar_keys_SvgAttr$().namespaceUri__T__T(namespace))
+ };
+ this.Lcom_raquo_laminar_keys_SvgAttr__f_namespaceUri = $$x2
+}
+$c_Lcom_raquo_laminar_keys_SvgAttr.prototype = new $h_Lcom_raquo_laminar_keys_Key();
+$c_Lcom_raquo_laminar_keys_SvgAttr.prototype.constructor = $c_Lcom_raquo_laminar_keys_SvgAttr;
+/** @constructor */
+function $h_Lcom_raquo_laminar_keys_SvgAttr() {
+ /**/
+}
+$h_Lcom_raquo_laminar_keys_SvgAttr.prototype = $c_Lcom_raquo_laminar_keys_SvgAttr.prototype;
+$c_Lcom_raquo_laminar_keys_SvgAttr.prototype.$colon$eq__O__Lcom_raquo_laminar_modifiers_KeySetter = (function(value) {
+ return new $c_Lcom_raquo_laminar_modifiers_KeySetter(this, value, new $c_sjsr_AnonFunction3(((element, attr, value$2) => {
+ var element$1 = $as_Lcom_raquo_laminar_nodes_ReactiveSvgElement(element);
+ var attr$1 = $as_Lcom_raquo_laminar_keys_SvgAttr(attr);
+ $m_Lcom_raquo_laminar_DomApi$().setSvgAttribute__Lcom_raquo_laminar_nodes_ReactiveSvgElement__Lcom_raquo_laminar_keys_SvgAttr__O__V(element$1, attr$1, value$2)
+ })))
+});
+function $as_Lcom_raquo_laminar_keys_SvgAttr(obj) {
+ return (((obj instanceof $c_Lcom_raquo_laminar_keys_SvgAttr) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.laminar.keys.SvgAttr"))
+}
+function $isArrayOf_Lcom_raquo_laminar_keys_SvgAttr(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_laminar_keys_SvgAttr)))
+}
+function $asArrayOf_Lcom_raquo_laminar_keys_SvgAttr(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_laminar_keys_SvgAttr(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.laminar.keys.SvgAttr;", depth))
+}
+var $d_Lcom_raquo_laminar_keys_SvgAttr = new $TypeData().initClass({
+ Lcom_raquo_laminar_keys_SvgAttr: 0
+}, false, "com.raquo.laminar.keys.SvgAttr", {
+ Lcom_raquo_laminar_keys_SvgAttr: 1,
+ Lcom_raquo_laminar_keys_Key: 1,
+ O: 1
+});
+$c_Lcom_raquo_laminar_keys_SvgAttr.prototype.$classData = $d_Lcom_raquo_laminar_keys_SvgAttr;
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_Inserter(initialContext, preferStrictMode, insertFn) {
+ this.Lcom_raquo_laminar_modifiers_Inserter__f_initialContext = null;
+ this.Lcom_raquo_laminar_modifiers_Inserter__f_preferStrictMode = false;
+ this.Lcom_raquo_laminar_modifiers_Inserter__f_insertFn = null;
+ this.Lcom_raquo_laminar_modifiers_Inserter__f_initialContext = initialContext;
+ this.Lcom_raquo_laminar_modifiers_Inserter__f_preferStrictMode = preferStrictMode;
+ this.Lcom_raquo_laminar_modifiers_Inserter__f_insertFn = insertFn
+}
+$c_Lcom_raquo_laminar_modifiers_Inserter.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_Inserter.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_Inserter;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_Inserter() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_Inserter.prototype = $c_Lcom_raquo_laminar_modifiers_Inserter.prototype;
+$c_Lcom_raquo_laminar_modifiers_Inserter.prototype.bind__Lcom_raquo_laminar_nodes_ReactiveElement__Lcom_raquo_airstream_ownership_DynamicSubscription = (function(element) {
+ var this$1 = $n(this.Lcom_raquo_laminar_modifiers_Inserter__f_initialContext);
+ var insertContext = $as_Lcom_raquo_laminar_lifecycle_InsertContext((this$1.isEmpty__Z() ? $m_Lcom_raquo_laminar_lifecycle_InsertContext$().reserveSpotContext__Lcom_raquo_laminar_nodes_ReactiveElement__Z__Lcom_raquo_laminar_lifecycle_InsertContext(element, this.Lcom_raquo_laminar_modifiers_Inserter__f_preferStrictMode) : this$1.get__O()));
+ var subscribe = new $c_sjsr_AnonFunction1(((mountContext) => {
+ var mountContext$1 = $as_Lcom_raquo_laminar_lifecycle_MountContext(mountContext);
+ return $as_Lcom_raquo_airstream_ownership_Subscription($n(this.Lcom_raquo_laminar_modifiers_Inserter__f_insertFn).apply__O__O__O(insertContext, $n(mountContext$1).Lcom_raquo_laminar_lifecycle_MountContext__f_owner))
+ }));
+ return $m_Lcom_raquo_airstream_ownership_DynamicSubscription$().unsafe__Lcom_raquo_airstream_ownership_DynamicOwner__F1__Z__Lcom_raquo_airstream_ownership_DynamicSubscription($n(element).dynamicOwner__Lcom_raquo_airstream_ownership_DynamicOwner(), new $c_sjsr_AnonFunction1(((owner) => {
+ var owner$1 = $as_Lcom_raquo_airstream_ownership_Owner(owner);
+ return $as_Lcom_raquo_airstream_ownership_Subscription(subscribe.apply__O__O(new $c_Lcom_raquo_laminar_lifecycle_MountContext(element, owner$1)))
+ })), false)
+});
+$c_Lcom_raquo_laminar_modifiers_Inserter.prototype.apply__Lcom_raquo_laminar_nodes_ReactiveElement__V = (function(element) {
+ this.bind__Lcom_raquo_laminar_nodes_ReactiveElement__Lcom_raquo_airstream_ownership_DynamicSubscription(element)
+});
+var $d_Lcom_raquo_laminar_modifiers_Inserter = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_Inserter: 0
+}, false, "com.raquo.laminar.modifiers.Inserter", {
+ Lcom_raquo_laminar_modifiers_Inserter: 1,
+ O: 1,
+ Lcom_raquo_laminar_modifiers_Modifier: 1
+});
+$c_Lcom_raquo_laminar_modifiers_Inserter.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_Inserter;
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1() {
+ /**/
+}
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_Modifier$$anon$1() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_Modifier$$anon$1.prototype = $c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1.prototype;
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1.prototype.apply__Lcom_raquo_laminar_nodes_ReactiveElement__V = (function(element) {
+ /**/
+});
+var $d_Lcom_raquo_laminar_modifiers_Modifier$$anon$1 = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_Modifier$$anon$1: 0
+}, false, "com.raquo.laminar.modifiers.Modifier$$anon$1", {
+ Lcom_raquo_laminar_modifiers_Modifier$$anon$1: 1,
+ O: 1,
+ Lcom_raquo_laminar_modifiers_Modifier: 1
+});
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$1.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_Modifier$$anon$1;
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_Modifier$$anon$2(f$2) {
+ this.Lcom_raquo_laminar_modifiers_Modifier$$anon$2__f_f$1 = null;
+ this.Lcom_raquo_laminar_modifiers_Modifier$$anon$2__f_f$1 = f$2
+}
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$2.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$2.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_Modifier$$anon$2;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_Modifier$$anon$2() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_Modifier$$anon$2.prototype = $c_Lcom_raquo_laminar_modifiers_Modifier$$anon$2.prototype;
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$2.prototype.apply__Lcom_raquo_laminar_nodes_ReactiveElement__V = (function(element) {
+ var this$1 = $m_Lcom_raquo_airstream_core_Transaction$onStart$();
+ this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = ((1 + this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level) | 0);
+ try {
+ $n(this.Lcom_raquo_laminar_modifiers_Modifier$$anon$2__f_f$1).apply__O__O(element)
+ } finally {
+ this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level = (((-1) + this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level) | 0);
+ if ((this$1.Lcom_raquo_airstream_core_Transaction$onStart$__f_level === 0)) {
+ $p_Lcom_raquo_airstream_core_Transaction$onStart$__resolve__V(this$1)
+ }
+ }
+});
+var $d_Lcom_raquo_laminar_modifiers_Modifier$$anon$2 = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_Modifier$$anon$2: 0
+}, false, "com.raquo.laminar.modifiers.Modifier$$anon$2", {
+ Lcom_raquo_laminar_modifiers_Modifier$$anon$2: 1,
+ O: 1,
+ Lcom_raquo_laminar_modifiers_Modifier: 1
+});
+$c_Lcom_raquo_laminar_modifiers_Modifier$$anon$2.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_Modifier$$anon$2;
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1(renderNode$2, renderNodeSeq$2, renderNodeIterable$2, renderNodeOption$2) {
+ this.Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1__f_renderNode$1 = null;
+ this.Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1__f_renderNodeSeq$1 = null;
+ this.Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1__f_renderNode$1 = renderNode$2;
+ this.Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1__f_renderNodeSeq$1 = renderNodeSeq$2
+}
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1.prototype = $c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1.prototype;
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1.prototype.asNode__O__Lcom_raquo_laminar_nodes_ChildNode = (function(value) {
+ return $as_Lcom_raquo_laminar_nodes_ChildNode($n(this.Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1__f_renderNode$1).apply__O__O(value))
+});
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1.prototype.asNodeSeq__sci_Seq__sci_Seq = (function(values) {
+ return $as_sci_Seq($n(this.Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1__f_renderNodeSeq$1).apply__O__O(values))
+});
+var $d_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1 = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1: 0
+}, false, "com.raquo.laminar.modifiers.RenderableNode$$anon$1", {
+ Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1: 1,
+ O: 1,
+ Lcom_raquo_laminar_modifiers_RenderableNode: 1
+});
+$c_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_RenderableNode$$anon$1;
+/** @constructor */
+function $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1(render$2) {
+ this.Lcom_raquo_laminar_modifiers_RenderableText$$anon$1__f_render$1 = null;
+ this.Lcom_raquo_laminar_modifiers_RenderableText$$anon$1__f_render$1 = render$2
+}
+$c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1.prototype = new $h_O();
+$c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1.prototype.constructor = $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1;
+/** @constructor */
+function $h_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1() {
+ /**/
+}
+$h_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1.prototype = $c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1.prototype;
+$c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1.prototype.asString__O__T = (function(value) {
+ return $as_T($n(this.Lcom_raquo_laminar_modifiers_RenderableText$$anon$1__f_render$1).apply__O__O(value))
+});
+var $d_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1 = new $TypeData().initClass({
+ Lcom_raquo_laminar_modifiers_RenderableText$$anon$1: 0
+}, false, "com.raquo.laminar.modifiers.RenderableText$$anon$1", {
+ Lcom_raquo_laminar_modifiers_RenderableText$$anon$1: 1,
+ O: 1,
+ Lcom_raquo_laminar_modifiers_RenderableText: 1
+});
+$c_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1.prototype.$classData = $d_Lcom_raquo_laminar_modifiers_RenderableText$$anon$1;
+function $f_Lcom_raquo_laminar_nodes_ParentNode__$init$__V($thiz) {
+ $thiz.com$raquo$laminar$nodes$ParentNode$_setter_$dynamicOwner_$eq__Lcom_raquo_airstream_ownership_DynamicOwner__V(new $c_Lcom_raquo_airstream_ownership_DynamicOwner(new $c_sjsr_AnonFunction0((() => {
+ var this$3 = $n($m_Lcom_raquo_laminar_DomApi$().debugPath__Lorg_scalajs_dom_Node__sci_List__sci_List($thiz.ref__Lorg_scalajs_dom_Node(), ($m_Lcom_raquo_laminar_DomApi$(), $m_s_package$().s_package$__f_Nil)));
+ var path = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$3, "", " > ", "");
+ throw $ct_jl_Exception__T__(new $c_jl_Exception(), ("Attempting to use owner of unmounted element: " + path))
+ }))))
+}
+function $is_Lcom_raquo_laminar_nodes_ParentNode(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lcom_raquo_laminar_nodes_ParentNode)))
+}
+function $as_Lcom_raquo_laminar_nodes_ParentNode(obj) {
+ return (($is_Lcom_raquo_laminar_nodes_ParentNode(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "com.raquo.laminar.nodes.ParentNode"))
+}
+function $isArrayOf_Lcom_raquo_laminar_nodes_ParentNode(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lcom_raquo_laminar_nodes_ParentNode)))
+}
+function $asArrayOf_Lcom_raquo_laminar_nodes_ParentNode(obj, depth) {
+ return (($isArrayOf_Lcom_raquo_laminar_nodes_ParentNode(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lcom.raquo.laminar.nodes.ParentNode;", depth))
+}
+/** @constructor */
+function $c_Lcom_raquo_laminar_tags_HtmlTag(name, void$1) {
+ this.Lcom_raquo_laminar_tags_HtmlTag__f_name = null;
+ this.Lcom_raquo_laminar_tags_HtmlTag__f_name = name
+}
+$c_Lcom_raquo_laminar_tags_HtmlTag.prototype = new $h_O();
+$c_Lcom_raquo_laminar_tags_HtmlTag.prototype.constructor = $c_Lcom_raquo_laminar_tags_HtmlTag;
+/** @constructor */
+function $h_Lcom_raquo_laminar_tags_HtmlTag() {
+ /**/
+}
+$h_Lcom_raquo_laminar_tags_HtmlTag.prototype = $c_Lcom_raquo_laminar_tags_HtmlTag.prototype;
+$c_Lcom_raquo_laminar_tags_HtmlTag.prototype.apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveHtmlElement = (function(modifiers) {
+ var element = this.build__Lcom_raquo_laminar_nodes_ReactiveHtmlElement();
+ $n(modifiers).foreach__F1__V(new $c_sjsr_AnonFunction1(((modifier) => {
+ var modifier$1 = $as_Lcom_raquo_laminar_modifiers_Modifier(modifier);
+ $n(modifier$1).apply__Lcom_raquo_laminar_nodes_ReactiveElement__V(element)
+ })));
+ return element
+});
+$c_Lcom_raquo_laminar_tags_HtmlTag.prototype.build__Lcom_raquo_laminar_nodes_ReactiveHtmlElement = (function() {
+ return new $c_Lcom_raquo_laminar_nodes_ReactiveHtmlElement(this, $m_Lcom_raquo_laminar_DomApi$().createHtmlElement__Lcom_raquo_laminar_tags_HtmlTag__Lorg_scalajs_dom_HTMLElement(this))
+});
+var $d_Lcom_raquo_laminar_tags_HtmlTag = new $TypeData().initClass({
+ Lcom_raquo_laminar_tags_HtmlTag: 0
+}, false, "com.raquo.laminar.tags.HtmlTag", {
+ Lcom_raquo_laminar_tags_HtmlTag: 1,
+ O: 1,
+ Lcom_raquo_laminar_tags_Tag: 1
+});
+$c_Lcom_raquo_laminar_tags_HtmlTag.prototype.$classData = $d_Lcom_raquo_laminar_tags_HtmlTag;
+/** @constructor */
+function $c_Lcom_raquo_laminar_tags_SvgTag(name, void$1) {
+ this.Lcom_raquo_laminar_tags_SvgTag__f_name = null;
+ this.Lcom_raquo_laminar_tags_SvgTag__f_name = name
+}
+$c_Lcom_raquo_laminar_tags_SvgTag.prototype = new $h_O();
+$c_Lcom_raquo_laminar_tags_SvgTag.prototype.constructor = $c_Lcom_raquo_laminar_tags_SvgTag;
+/** @constructor */
+function $h_Lcom_raquo_laminar_tags_SvgTag() {
+ /**/
+}
+$h_Lcom_raquo_laminar_tags_SvgTag.prototype = $c_Lcom_raquo_laminar_tags_SvgTag.prototype;
+$c_Lcom_raquo_laminar_tags_SvgTag.prototype.apply__sci_Seq__Lcom_raquo_laminar_nodes_ReactiveSvgElement = (function(modifiers) {
+ var element = this.build__Lcom_raquo_laminar_nodes_ReactiveSvgElement();
+ $n(modifiers).foreach__F1__V(new $c_sjsr_AnonFunction1(((modifier) => {
+ var modifier$1 = $as_Lcom_raquo_laminar_modifiers_Modifier(modifier);
+ $n(modifier$1).apply__Lcom_raquo_laminar_nodes_ReactiveElement__V(element)
+ })));
+ return element
+});
+$c_Lcom_raquo_laminar_tags_SvgTag.prototype.build__Lcom_raquo_laminar_nodes_ReactiveSvgElement = (function() {
+ return new $c_Lcom_raquo_laminar_nodes_ReactiveSvgElement(this, $m_Lcom_raquo_laminar_DomApi$().createSvgElement__Lcom_raquo_laminar_tags_SvgTag__Lorg_scalajs_dom_SVGElement(this))
+});
+var $d_Lcom_raquo_laminar_tags_SvgTag = new $TypeData().initClass({
+ Lcom_raquo_laminar_tags_SvgTag: 0
+}, false, "com.raquo.laminar.tags.SvgTag", {
+ Lcom_raquo_laminar_tags_SvgTag: 1,
+ O: 1,
+ Lcom_raquo_laminar_tags_Tag: 1
+});
+$c_Lcom_raquo_laminar_tags_SvgTag.prototype.$classData = $d_Lcom_raquo_laminar_tags_SvgTag;
+function $p_jl_Character$__nonASCIIZeroDigitCodePoints$lzycompute__AI($thiz) {
+ if (((((32 & $thiz.jl_Character$__f_bitmap$0) << 24) >> 24) === 0)) {
+ $thiz.jl_Character$__f_nonASCIIZeroDigitCodePoints = new $ac_I(new Int32Array([1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43600, 44016, 65296, 66720, 69734, 69872, 69942, 70096, 71360, 120782, 120792, 120802, 120812, 120822]));
+ $thiz.jl_Character$__f_bitmap$0 = (((32 | $thiz.jl_Character$__f_bitmap$0) << 24) >> 24)
+ };
+ return $thiz.jl_Character$__f_nonASCIIZeroDigitCodePoints
+}
+function $p_jl_Character$__nonASCIIZeroDigitCodePoints__AI($thiz) {
+ return (((((32 & $thiz.jl_Character$__f_bitmap$0) << 24) >> 24) === 0) ? $p_jl_Character$__nonASCIIZeroDigitCodePoints$lzycompute__AI($thiz) : $thiz.jl_Character$__f_nonASCIIZeroDigitCodePoints)
+}
+/** @constructor */
+function $c_jl_Character$() {
+ this.jl_Character$__f_nonASCIIZeroDigitCodePoints = null;
+ this.jl_Character$__f_bitmap$0 = 0
+}
+$c_jl_Character$.prototype = new $h_O();
+$c_jl_Character$.prototype.constructor = $c_jl_Character$;
+/** @constructor */
+function $h_jl_Character$() {
+ /**/
+}
+$h_jl_Character$.prototype = $c_jl_Character$.prototype;
+$c_jl_Character$.prototype.toString__I__T = (function(codePoint) {
+ if (((codePoint >= 0) && (codePoint < 65536))) {
+ return $as_T(String.fromCharCode(codePoint))
+ } else if (((codePoint >= 0) && (codePoint <= 1114111))) {
+ return $as_T(String.fromCharCode((65535 & (55296 | (((-64) + (codePoint >> 10)) | 0))), (65535 & (56320 | (1023 & codePoint)))))
+ } else {
+ throw $ct_jl_IllegalArgumentException__(new $c_jl_IllegalArgumentException())
+ }
+});
+$c_jl_Character$.prototype.digitWithValidRadix__I__I__I = (function(codePoint, radix) {
+ if ((codePoint < 256)) {
+ var value = (((codePoint >= 48) && (codePoint <= 57)) ? (((-48) + codePoint) | 0) : (((codePoint >= 65) && (codePoint <= 90)) ? (((-55) + codePoint) | 0) : (((codePoint >= 97) && (codePoint <= 122)) ? (((-87) + codePoint) | 0) : (-1))))
+ } else if (((codePoint >= 65313) && (codePoint <= 65338))) {
+ var value = (((-65303) + codePoint) | 0)
+ } else if (((codePoint >= 65345) && (codePoint <= 65370))) {
+ var value = (((-65335) + codePoint) | 0)
+ } else {
+ var p = $m_ju_Arrays$().binarySearch__AI__I__I($p_jl_Character$__nonASCIIZeroDigitCodePoints__AI(this), codePoint);
+ var zeroCodePointIndex = ((p < 0) ? (((-2) - p) | 0) : p);
+ if ((zeroCodePointIndex < 0)) {
+ var value = (-1)
+ } else {
+ var v = ((codePoint - $n($p_jl_Character$__nonASCIIZeroDigitCodePoints__AI(this)).get(zeroCodePointIndex)) | 0);
+ var value = ((v > 9) ? (-1) : v)
+ }
+ };
+ return ((value < radix) ? value : (-1))
+});
+var $d_jl_Character$ = new $TypeData().initClass({
+ jl_Character$: 0
+}, false, "java.lang.Character$", {
+ jl_Character$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_jl_Character$.prototype.$classData = $d_jl_Character$;
+var $n_jl_Character$;
+function $m_jl_Character$() {
+ if ((!$n_jl_Character$)) {
+ $n_jl_Character$ = new $c_jl_Character$()
+ };
+ return $n_jl_Character$
+}
+function $p_jl_Integer$__fail$1__T__E($thiz, s$1) {
+ throw new $c_jl_NumberFormatException((("For input string: \"" + s$1) + "\""))
+}
+/** @constructor */
+function $c_jl_Integer$() {
+ /**/
+}
+$c_jl_Integer$.prototype = new $h_O();
+$c_jl_Integer$.prototype.constructor = $c_jl_Integer$;
+/** @constructor */
+function $h_jl_Integer$() {
+ /**/
+}
+$h_jl_Integer$.prototype = $c_jl_Integer$.prototype;
+$c_jl_Integer$.prototype.parseInt__T__I__I = (function(s, radix) {
+ if ((s === null)) {
+ var len = 0
+ } else {
+ var this$1 = $n(s);
+ var len = this$1.length
+ };
+ if ((((len === 0) || (radix < 2)) || (radix > 36))) {
+ $p_jl_Integer$__fail$1__T__E(this, s)
+ };
+ var this$2 = $n(s);
+ var firstChar = $charAt(this$2, 0);
+ var negative = (firstChar === 45);
+ var maxAbsValue = (negative ? 2.147483648E9 : 2.147483647E9);
+ var i = ((negative || (firstChar === 43)) ? 1 : 0);
+ var $$x1 = i;
+ var this$3 = $n(s);
+ if (($$x1 >= this$3.length)) {
+ $p_jl_Integer$__fail$1__T__E(this, s)
+ };
+ var result = 0.0;
+ while ((i !== len)) {
+ var $$x2 = $m_jl_Character$();
+ var this$4 = $n(s);
+ var index = i;
+ var digit = $n($$x2).digitWithValidRadix__I__I__I($charAt(this$4, index), radix);
+ result = ((result * radix) + digit);
+ if (((digit === (-1)) || (result > maxAbsValue))) {
+ $p_jl_Integer$__fail$1__T__E(this, s)
+ };
+ i = ((1 + i) | 0)
+ };
+ if (negative) {
+ var n = (-result);
+ return $uI((n | 0.0))
+ } else {
+ var n$1 = result;
+ return $uI((n$1 | 0.0))
+ }
+});
+$c_jl_Integer$.prototype.bitCount__I__I = (function(i) {
+ var t1 = ((i - (1431655765 & (i >> 1))) | 0);
+ var t2 = (((858993459 & t1) + (858993459 & (t1 >> 2))) | 0);
+ return (Math.imul(16843009, (252645135 & ((t2 + (t2 >> 4)) | 0))) >> 24)
+});
+var $d_jl_Integer$ = new $TypeData().initClass({
+ jl_Integer$: 0
+}, false, "java.lang.Integer$", {
+ jl_Integer$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_jl_Integer$.prototype.$classData = $d_jl_Integer$;
+var $n_jl_Integer$;
+function $m_jl_Integer$() {
+ if ((!$n_jl_Integer$)) {
+ $n_jl_Integer$ = new $c_jl_Integer$()
+ };
+ return $n_jl_Integer$
+}
+/** @constructor */
+function $c_jl_Number() {
+ /**/
+}
+$c_jl_Number.prototype = new $h_O();
+$c_jl_Number.prototype.constructor = $c_jl_Number;
+/** @constructor */
+function $h_jl_Number() {
+ /**/
+}
+$h_jl_Number.prototype = $c_jl_Number.prototype;
+function $is_jl_Number(obj) {
+ return (((obj instanceof $c_jl_Number) || ((typeof obj) === "number")) || (obj instanceof $c_RTLong))
+}
+function $as_jl_Number(obj) {
+ return (($is_jl_Number(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.Number"))
+}
+function $isArrayOf_jl_Number(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Number)))
+}
+function $asArrayOf_jl_Number(obj, depth) {
+ return (($isArrayOf_jl_Number(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Number;", depth))
+}
+/** @constructor */
+function $c_jl_StackTraceElement(declaringClass, methodName, fileName, lineNumber, columnNumber) {
+ this.jl_StackTraceElement__f_declaringClass = null;
+ this.jl_StackTraceElement__f_methodName = null;
+ this.jl_StackTraceElement__f_fileName = null;
+ this.jl_StackTraceElement__f_lineNumber = 0;
+ this.jl_StackTraceElement__f_columnNumber = 0;
+ this.jl_StackTraceElement__f_declaringClass = declaringClass;
+ this.jl_StackTraceElement__f_methodName = methodName;
+ this.jl_StackTraceElement__f_fileName = fileName;
+ this.jl_StackTraceElement__f_lineNumber = lineNumber;
+ this.jl_StackTraceElement__f_columnNumber = columnNumber
+}
+$c_jl_StackTraceElement.prototype = new $h_O();
+$c_jl_StackTraceElement.prototype.constructor = $c_jl_StackTraceElement;
+/** @constructor */
+function $h_jl_StackTraceElement() {
+ /**/
+}
+$h_jl_StackTraceElement.prototype = $c_jl_StackTraceElement.prototype;
+$c_jl_StackTraceElement.prototype.equals__O__Z = (function(that) {
+ if ((that instanceof $c_jl_StackTraceElement)) {
+ var x2 = $as_jl_StackTraceElement(that);
+ return (((((this.jl_StackTraceElement__f_fileName === $n(x2).jl_StackTraceElement__f_fileName) && (this.jl_StackTraceElement__f_lineNumber === $n(x2).jl_StackTraceElement__f_lineNumber)) && (this.jl_StackTraceElement__f_columnNumber === $n(x2).jl_StackTraceElement__f_columnNumber)) && (this.jl_StackTraceElement__f_declaringClass === $n(x2).jl_StackTraceElement__f_declaringClass)) && (this.jl_StackTraceElement__f_methodName === $n(x2).jl_StackTraceElement__f_methodName))
+ } else {
+ return false
+ }
+});
+$c_jl_StackTraceElement.prototype.toString__T = (function() {
+ var result = "";
+ if ((this.jl_StackTraceElement__f_declaringClass !== "")) {
+ result = ((("" + result) + this.jl_StackTraceElement__f_declaringClass) + ".")
+ };
+ result = (("" + result) + this.jl_StackTraceElement__f_methodName);
+ if ((this.jl_StackTraceElement__f_fileName === null)) {
+ result = (result + "(Unknown Source)")
+ } else {
+ result = ((result + "(") + this.jl_StackTraceElement__f_fileName);
+ if ((this.jl_StackTraceElement__f_lineNumber >= 0)) {
+ result = ((result + ":") + this.jl_StackTraceElement__f_lineNumber);
+ if ((this.jl_StackTraceElement__f_columnNumber >= 0)) {
+ result = ((result + ":") + this.jl_StackTraceElement__f_columnNumber)
+ }
+ };
+ result = (result + ")")
+ };
+ return result
+});
+$c_jl_StackTraceElement.prototype.hashCode__I = (function() {
+ return (((($f_T__hashCode__I($n(this.jl_StackTraceElement__f_declaringClass)) ^ $f_T__hashCode__I($n(this.jl_StackTraceElement__f_methodName))) ^ $f_T__hashCode__I($n(this.jl_StackTraceElement__f_fileName))) ^ this.jl_StackTraceElement__f_lineNumber) ^ this.jl_StackTraceElement__f_columnNumber)
+});
+function $as_jl_StackTraceElement(obj) {
+ return (((obj instanceof $c_jl_StackTraceElement) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.StackTraceElement"))
+}
+function $isArrayOf_jl_StackTraceElement(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_StackTraceElement)))
+}
+function $asArrayOf_jl_StackTraceElement(obj, depth) {
+ return (($isArrayOf_jl_StackTraceElement(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.StackTraceElement;", depth))
+}
+var $d_jl_StackTraceElement = new $TypeData().initClass({
+ jl_StackTraceElement: 0
+}, false, "java.lang.StackTraceElement", {
+ jl_StackTraceElement: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_jl_StackTraceElement.prototype.$classData = $d_jl_StackTraceElement;
+/** @constructor */
+function $c_jl_String$() {
+ /**/
+}
+$c_jl_String$.prototype = new $h_O();
+$c_jl_String$.prototype.constructor = $c_jl_String$;
+/** @constructor */
+function $h_jl_String$() {
+ /**/
+}
+$h_jl_String$.prototype = $c_jl_String$.prototype;
+$c_jl_String$.prototype.new__AC__I__I__T = (function(value, offset, count) {
+ var end = ((offset + count) | 0);
+ if ((((offset < 0) || (end < offset)) || (end > $n(value).u.length))) {
+ throw $ct_jl_StringIndexOutOfBoundsException__(new $c_jl_StringIndexOutOfBoundsException())
+ };
+ var result = "";
+ var i = offset;
+ while ((i !== end)) {
+ var $$x1 = result;
+ var this$1 = $n(value).get(i);
+ result = (("" + $$x1) + $as_T(String.fromCharCode(this$1)));
+ i = ((1 + i) | 0)
+ };
+ return result
+});
+var $d_jl_String$ = new $TypeData().initClass({
+ jl_String$: 0
+}, false, "java.lang.String$", {
+ jl_String$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_jl_String$.prototype.$classData = $d_jl_String$;
+var $n_jl_String$;
+function $m_jl_String$() {
+ if ((!$n_jl_String$)) {
+ $n_jl_String$ = new $c_jl_String$()
+ };
+ return $n_jl_String$
+}
+function $ct_jl_Throwable__T__jl_Throwable__Z__Z__($thiz, s, e, enableSuppression, writableStackTrace) {
+ $thiz.jl_Throwable__f_s = s;
+ $thiz.jl_Throwable__f_writableStackTrace = writableStackTrace;
+ if (writableStackTrace) {
+ $thiz.fillInStackTrace__jl_Throwable()
+ };
+ return $thiz
+}
+class $c_jl_Throwable extends Error {
+ constructor() {
+ super();
+ this.jl_Throwable__f_s = null;
+ this.jl_Throwable__f_writableStackTrace = false;
+ this.jl_Throwable__f_jsErrorForStackTrace = null;
+ this.jl_Throwable__f_stackTrace = null
+ };
+ initCause__jl_Throwable__jl_Throwable(cause) {
+ return this
+ };
+ getMessage__T() {
+ return this.jl_Throwable__f_s
+ };
+ fillInStackTrace__jl_Throwable() {
+ var $$x1 = this;
+ var reference = (($$x1 instanceof $c_sjs_js_JavaScriptException) ? $$x1.sjs_js_JavaScriptException__f_exception : $n($$x1));
+ var identifyingString = Object.prototype.toString.call(reference);
+ this.jl_Throwable__f_jsErrorForStackTrace = ((identifyingString === "[object Error]") ? reference : ((Error.captureStackTrace === (void 0)) ? new Error() : (Error.captureStackTrace(this), this)));
+ return this
+ };
+ getStackTrace__Ajl_StackTraceElement() {
+ if ((this.jl_Throwable__f_stackTrace === null)) {
+ if (this.jl_Throwable__f_writableStackTrace) {
+ this.jl_Throwable__f_stackTrace = $m_jl_StackTrace$().extract__O__Ajl_StackTraceElement(this.jl_Throwable__f_jsErrorForStackTrace)
+ } else {
+ this.jl_Throwable__f_stackTrace = new ($d_jl_StackTraceElement.getArrayOf().constr)(0)
+ }
+ };
+ return this.jl_Throwable__f_stackTrace
+ };
+ toString__T() {
+ var className = $objectClassName(this);
+ var message = this.getMessage__T();
+ return ((message === null) ? className : ((className + ": ") + message))
+ };
+ hashCode__I() {
+ return $c_O.prototype.hashCode__I.call(this)
+ };
+ equals__O__Z(that) {
+ return $c_O.prototype.equals__O__Z.call(this, that)
+ };
+ get "message"() {
+ var m = this.getMessage__T();
+ return ((m === null) ? "" : m)
+ };
+ get "name"() {
+ return $objectClassName(this)
+ };
+ "toString"() {
+ return this.toString__T()
+ };
+}
+function $as_jl_Throwable(obj) {
+ return (((obj instanceof $c_jl_Throwable) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.Throwable"))
+}
+function $isArrayOf_jl_Throwable(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Throwable)))
+}
+function $asArrayOf_jl_Throwable(obj, depth) {
+ return (($isArrayOf_jl_Throwable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Throwable;", depth))
+}
+function $p_ju_Random__loop$1__I__I($thiz, n$1) {
+ while (true) {
+ var bits = $thiz.next__I__I(31);
+ var value = $intMod(bits, n$1);
+ if ((((((bits - value) | 0) + (((-1) + n$1) | 0)) | 0) < 0)) {
+ /**/
+ } else {
+ return value
+ }
+ }
+}
+function $ct_ju_Random__J__($thiz, seed_in) {
+ $thiz.setSeed__J__V(seed_in);
+ return $thiz
+}
+function $ct_ju_Random__($thiz) {
+ $ct_ju_Random__J__($thiz, $m_ju_Random$().java$util$Random$$randomSeed__J());
+ return $thiz
+}
+/** @constructor */
+function $c_ju_Random() {
+ this.ju_Random__f_seedHi = 0;
+ this.ju_Random__f_seedLo = 0
+}
+$c_ju_Random.prototype = new $h_O();
+$c_ju_Random.prototype.constructor = $c_ju_Random;
+/** @constructor */
+function $h_ju_Random() {
+ /**/
+}
+$h_ju_Random.prototype = $c_ju_Random.prototype;
+$c_ju_Random.prototype.setSeed__J__V = (function(seed_in) {
+ var lo = ((-554899859) ^ seed_in.RTLong__f_lo);
+ var hi = (5 ^ seed_in.RTLong__f_hi);
+ var hi$1 = (65535 & hi);
+ var lo$1 = (((lo >>> 24) | 0) | (hi$1 << 8));
+ this.ju_Random__f_seedHi = lo$1;
+ this.ju_Random__f_seedLo = (16777215 & lo)
+});
+$c_ju_Random.prototype.next__I__I = (function(bits) {
+ var oldSeedHi = this.ju_Random__f_seedHi;
+ var oldSeedLo = this.ju_Random__f_seedLo;
+ var loProd = ((1.5525485E7 * oldSeedLo) + 11.0);
+ var hiProd = ((1502.0 * oldSeedLo) + (1.5525485E7 * oldSeedHi));
+ var x = (loProd / 1.6777216E7);
+ var newSeedHi = (16777215 & (($uI((x | 0)) + (16777215 & $uI((hiProd | 0)))) | 0));
+ var newSeedLo = (16777215 & $uI((loProd | 0)));
+ this.ju_Random__f_seedHi = newSeedHi;
+ this.ju_Random__f_seedLo = newSeedLo;
+ var result32 = ((newSeedHi << 8) | (newSeedLo >> 16));
+ return ((result32 >>> ((32 - bits) | 0)) | 0)
+});
+$c_ju_Random.prototype.nextInt__I__I = (function(n) {
+ if ((n <= 0)) {
+ throw $ct_jl_IllegalArgumentException__T__(new $c_jl_IllegalArgumentException(), "n must be positive")
+ } else {
+ return (((n & ((-n) | 0)) === n) ? (this.next__I__I(31) >> $uI(Math.clz32(n))) : $p_ju_Random__loop$1__I__I(this, n))
+ }
+});
+var $d_ju_Random = new $TypeData().initClass({
+ ju_Random: 0
+}, false, "java.util.Random", {
+ ju_Random: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_ju_Random.prototype.$classData = $d_ju_Random;
+function $p_ju_Random$__randomInt__I($thiz) {
+ var a = (4.294967296E9 * $uD(Math.random()));
+ return $doubleToInt(($uD(Math.floor(a)) - 2.147483648E9))
+}
+/** @constructor */
+function $c_ju_Random$() {
+ /**/
+}
+$c_ju_Random$.prototype = new $h_O();
+$c_ju_Random$.prototype.constructor = $c_ju_Random$;
+/** @constructor */
+function $h_ju_Random$() {
+ /**/
+}
+$h_ju_Random$.prototype = $c_ju_Random$.prototype;
+$c_ju_Random$.prototype.java$util$Random$$randomSeed__J = (function() {
+ var value = $p_ju_Random$__randomInt__I(this);
+ var value$1 = $p_ju_Random$__randomInt__I(this);
+ return new $c_RTLong(value$1, value)
+});
+var $d_ju_Random$ = new $TypeData().initClass({
+ ju_Random$: 0
+}, false, "java.util.Random$", {
+ ju_Random$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_ju_Random$.prototype.$classData = $d_ju_Random$;
+var $n_ju_Random$;
+function $m_ju_Random$() {
+ if ((!$n_ju_Random$)) {
+ $n_ju_Random$ = new $c_ju_Random$()
+ };
+ return $n_ju_Random$
+}
+function $p_ju_regex_Matcher__resetMatch__ju_regex_Matcher($thiz) {
+ $thiz.ju_regex_Matcher__f_lastMatch = null;
+ return $thiz
+}
+/** @constructor */
+function $c_ju_regex_Matcher(pattern0, input0) {
+ this.ju_regex_Matcher__f_pattern0 = null;
+ this.ju_regex_Matcher__f_java$util$regex$Matcher$$input0 = null;
+ this.ju_regex_Matcher__f_inputstr = null;
+ this.ju_regex_Matcher__f_lastMatch = null;
+ this.ju_regex_Matcher__f_pattern0 = pattern0;
+ this.ju_regex_Matcher__f_java$util$regex$Matcher$$input0 = input0;
+ $n(this.ju_regex_Matcher__f_java$util$regex$Matcher$$input0);
+ this.ju_regex_Matcher__f_inputstr = this.ju_regex_Matcher__f_java$util$regex$Matcher$$input0;
+ this.ju_regex_Matcher__f_lastMatch = null
+}
+$c_ju_regex_Matcher.prototype = new $h_O();
+$c_ju_regex_Matcher.prototype.constructor = $c_ju_regex_Matcher;
+/** @constructor */
+function $h_ju_regex_Matcher() {
+ /**/
+}
+$h_ju_regex_Matcher.prototype = $c_ju_regex_Matcher.prototype;
+$c_ju_regex_Matcher.prototype.matches__Z = (function() {
+ $p_ju_regex_Matcher__resetMatch__ju_regex_Matcher(this);
+ this.ju_regex_Matcher__f_lastMatch = $n(this.ju_regex_Matcher__f_pattern0).execMatches__T__O(this.ju_regex_Matcher__f_inputstr);
+ return (this.ju_regex_Matcher__f_lastMatch !== null)
+});
+var $d_ju_regex_Matcher = new $TypeData().initClass({
+ ju_regex_Matcher: 0
+}, false, "java.util.regex.Matcher", {
+ ju_regex_Matcher: 1,
+ O: 1,
+ ju_regex_MatchResult: 1
+});
+$c_ju_regex_Matcher.prototype.$classData = $d_ju_regex_Matcher;
+/** @constructor */
+function $c_ju_regex_Pattern(_pattern, _flags, jsPattern, jsFlags, sticky, groupCount, groupNumberMap, namedGroups) {
+ this.ju_regex_Pattern__f__pattern = null;
+ this.ju_regex_Pattern__f_java$util$regex$Pattern$$jsFlags = null;
+ this.ju_regex_Pattern__f_java$util$regex$Pattern$$sticky = false;
+ this.ju_regex_Pattern__f_jsRegExpForMatches = null;
+ this.ju_regex_Pattern__f__pattern = _pattern;
+ this.ju_regex_Pattern__f_java$util$regex$Pattern$$jsFlags = jsFlags;
+ this.ju_regex_Pattern__f_java$util$regex$Pattern$$sticky = sticky;
+ new RegExp(jsPattern, (this.ju_regex_Pattern__f_java$util$regex$Pattern$$jsFlags + (this.ju_regex_Pattern__f_java$util$regex$Pattern$$sticky ? "gy" : "g")));
+ this.ju_regex_Pattern__f_jsRegExpForMatches = new RegExp((("^(?:" + jsPattern) + ")$"), jsFlags)
+}
+$c_ju_regex_Pattern.prototype = new $h_O();
+$c_ju_regex_Pattern.prototype.constructor = $c_ju_regex_Pattern;
+/** @constructor */
+function $h_ju_regex_Pattern() {
+ /**/
+}
+$h_ju_regex_Pattern.prototype = $c_ju_regex_Pattern.prototype;
+$c_ju_regex_Pattern.prototype.execMatches__T__O = (function(input) {
+ return this.ju_regex_Pattern__f_jsRegExpForMatches.exec(input)
+});
+$c_ju_regex_Pattern.prototype.toString__T = (function() {
+ return this.ju_regex_Pattern__f__pattern
+});
+var $d_ju_regex_Pattern = new $TypeData().initClass({
+ ju_regex_Pattern: 0
+}, false, "java.util.regex.Pattern", {
+ ju_regex_Pattern: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_ju_regex_Pattern.prototype.$classData = $d_ju_regex_Pattern;
+/** @constructor */
+function $c_ju_regex_Pattern$() {
+ /**/
+}
+$c_ju_regex_Pattern$.prototype = new $h_O();
+$c_ju_regex_Pattern$.prototype.constructor = $c_ju_regex_Pattern$;
+/** @constructor */
+function $h_ju_regex_Pattern$() {
+ /**/
+}
+$h_ju_regex_Pattern$.prototype = $c_ju_regex_Pattern$.prototype;
+$c_ju_regex_Pattern$.prototype.java$util$regex$Pattern$$matches__T__T__Z = (function(regex, input) {
+ var this$1 = $n($m_ju_regex_PatternCompiler$().compile__T__I__ju_regex_Pattern(regex, 0));
+ var this$2 = $n(input);
+ return new $c_ju_regex_Matcher(this$1, this$2).matches__Z()
+});
+var $d_ju_regex_Pattern$ = new $TypeData().initClass({
+ ju_regex_Pattern$: 0
+}, false, "java.util.regex.Pattern$", {
+ ju_regex_Pattern$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_ju_regex_Pattern$.prototype.$classData = $d_ju_regex_Pattern$;
+var $n_ju_regex_Pattern$;
+function $m_ju_regex_Pattern$() {
+ if ((!$n_ju_regex_Pattern$)) {
+ $n_ju_regex_Pattern$ = new $c_ju_regex_Pattern$()
+ };
+ return $n_ju_regex_Pattern$
+}
+/** @constructor */
+function $c_s_$less$colon$less$() {
+ this.s_$less$colon$less$__f_singleton = null;
+ $n_s_$less$colon$less$ = this;
+ this.s_$less$colon$less$__f_singleton = new $c_s_$less$colon$less$$anon$1()
+}
+$c_s_$less$colon$less$.prototype = new $h_O();
+$c_s_$less$colon$less$.prototype.constructor = $c_s_$less$colon$less$;
+/** @constructor */
+function $h_s_$less$colon$less$() {
+ /**/
+}
+$h_s_$less$colon$less$.prototype = $c_s_$less$colon$less$.prototype;
+var $d_s_$less$colon$less$ = new $TypeData().initClass({
+ s_$less$colon$less$: 0
+}, false, "scala.$less$colon$less$", {
+ s_$less$colon$less$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_s_$less$colon$less$.prototype.$classData = $d_s_$less$colon$less$;
+var $n_s_$less$colon$less$;
+function $m_s_$less$colon$less$() {
+ if ((!$n_s_$less$colon$less$)) {
+ $n_s_$less$colon$less$ = new $c_s_$less$colon$less$()
+ };
+ return $n_s_$less$colon$less$
+}
+function $p_s_Array$__slowcopy__O__I__O__I__I__V($thiz, src, srcPos, dest, destPos, length) {
+ var i = srcPos;
+ var j = destPos;
+ var srcUntil = ((srcPos + length) | 0);
+ while ((i < srcUntil)) {
+ $m_sr_ScalaRunTime$().array_update__O__I__O__V(dest, j, $m_sr_ScalaRunTime$().array_apply__O__I__O(src, i));
+ i = ((1 + i) | 0);
+ j = ((1 + j) | 0)
+ }
+}
+function $p_s_Array$__newUnitArray__I__Ajl_Void($thiz, len) {
+ var result = new ($d_jl_Void.getArrayOf().constr)(len);
+ $m_ju_Arrays$().fill__AO__O__V(result, (void 0));
+ return result
+}
+/** @constructor */
+function $c_s_Array$() {
+ /**/
+}
+$c_s_Array$.prototype = new $h_O();
+$c_s_Array$.prototype.constructor = $c_s_Array$;
+/** @constructor */
+function $h_s_Array$() {
+ /**/
+}
+$h_s_Array$.prototype = $c_s_Array$.prototype;
+$c_s_Array$.prototype.from__sc_IterableOnce__s_reflect_ClassTag__O = (function(it, evidence$3) {
+ var n = $n(it).knownSize__I();
+ if ((n > (-1))) {
+ var elements = $n(evidence$3).newArray__I__O(n);
+ var iterator = $n(it).iterator__sc_Iterator();
+ var i = 0;
+ while ((i < n)) {
+ $m_sr_ScalaRunTime$().array_update__O__I__O__V(elements, i, $n(iterator).next__O());
+ i = ((1 + i) | 0)
+ };
+ return elements
+ } else {
+ var capacity = 0;
+ var jsElems = null;
+ var elementClass = $n(evidence$3).runtimeClass__jl_Class();
+ capacity = 0;
+ var isCharArrayBuilder = (elementClass === $d_C.getClassOf());
+ jsElems = [];
+ var iterator$2 = $n(it).iterator__sc_Iterator();
+ while ($n(iterator$2).hasNext__Z()) {
+ var elem = $n(iterator$2).next__O();
+ var unboxedElem = (isCharArrayBuilder ? $uC(elem) : ((elem === null) ? $n(elementClass).jl_Class__f_data.zero : elem));
+ jsElems.push(unboxedElem)
+ };
+ var elemRuntimeClass = ((elementClass === $d_V.getClassOf()) ? $d_jl_Void.getClassOf() : (((elementClass === $d_sr_Null$.getClassOf()) || (elementClass === $d_sr_Nothing$.getClassOf())) ? $d_O.getClassOf() : elementClass));
+ return $n(elemRuntimeClass).jl_Class__f_data.getArrayOf().wrapArray(jsElems)
+ }
+});
+$c_s_Array$.prototype.copy__O__I__O__I__I__V = (function(src, srcPos, dest, destPos, length) {
+ var this$1 = $n(src);
+ var srcClass = $objectGetClass(this$1);
+ if ($n(srcClass).isArray__Z()) {
+ var this$2 = $n(dest);
+ var $$x1 = $n($objectGetClass(this$2)).isAssignableFrom__jl_Class__Z(srcClass)
+ } else {
+ var $$x1 = false
+ };
+ if ($$x1) {
+ $systemArraycopyFull($n(src), srcPos, $n(dest), destPos, length)
+ } else {
+ $p_s_Array$__slowcopy__O__I__O__I__I__V(this, src, srcPos, dest, destPos, length)
+ }
+});
+$c_s_Array$.prototype.copyOf__O__I__O = (function(original, newLength) {
+ if ($isArrayOf_jl_Void(original, 1)) {
+ return $p_s_Array$__newUnitArray__I__Ajl_Void(this, newLength)
+ } else if ((original instanceof $ac_O)) {
+ var x3 = $asArrayOf_O(original, 1);
+ return $m_ju_Arrays$().copyOf__AO__I__AO(x3, newLength)
+ } else if ((original instanceof $ac_I)) {
+ var x4 = $asArrayOf_I(original, 1);
+ return $m_ju_Arrays$().copyOf__AI__I__AI(x4, newLength)
+ } else if ((original instanceof $ac_D)) {
+ var x5 = $asArrayOf_D(original, 1);
+ return $m_ju_Arrays$().copyOf__AD__I__AD(x5, newLength)
+ } else if ((original instanceof $ac_J)) {
+ var x6 = $asArrayOf_J(original, 1);
+ return $m_ju_Arrays$().copyOf__AJ__I__AJ(x6, newLength)
+ } else if ((original instanceof $ac_F)) {
+ var x7 = $asArrayOf_F(original, 1);
+ return $m_ju_Arrays$().copyOf__AF__I__AF(x7, newLength)
+ } else if ((original instanceof $ac_C)) {
+ var x8 = $asArrayOf_C(original, 1);
+ return $m_ju_Arrays$().copyOf__AC__I__AC(x8, newLength)
+ } else if ((original instanceof $ac_B)) {
+ var x9 = $asArrayOf_B(original, 1);
+ return $m_ju_Arrays$().copyOf__AB__I__AB(x9, newLength)
+ } else if ((original instanceof $ac_S)) {
+ var x10 = $asArrayOf_S(original, 1);
+ return $m_ju_Arrays$().copyOf__AS__I__AS(x10, newLength)
+ } else if ((original instanceof $ac_Z)) {
+ var x11 = $asArrayOf_Z(original, 1);
+ return $m_ju_Arrays$().copyOf__AZ__I__AZ(x11, newLength)
+ } else {
+ throw new $c_s_MatchError(original)
+ }
+});
+$c_s_Array$.prototype.equals__AO__AO__Z = (function(xs, ys) {
+ if ((xs === ys)) {
+ return true
+ };
+ if (($n(xs).u.length !== $n(ys).u.length)) {
+ return false
+ };
+ var len = $n(xs).u.length;
+ var i = 0;
+ while ((i < len)) {
+ if ((!$m_sr_BoxesRunTime$().equals__O__O__Z($n(xs).get(i), $n(ys).get(i)))) {
+ return false
+ };
+ i = ((1 + i) | 0)
+ };
+ return true
+});
+var $d_s_Array$ = new $TypeData().initClass({
+ s_Array$: 0
+}, false, "scala.Array$", {
+ s_Array$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_s_Array$.prototype.$classData = $d_s_Array$;
+var $n_s_Array$;
+function $m_s_Array$() {
+ if ((!$n_s_Array$)) {
+ $n_s_Array$ = new $c_s_Array$()
+ };
+ return $n_s_Array$
+}
+/** @constructor */
+function $c_s_Console$() {
+ this.s_Console$__f_outVar = null;
+ $n_s_Console$ = this;
+ this.s_Console$__f_outVar = new $c_s_util_DynamicVariable($m_jl_System$Streams$().jl_System$Streams$__f_out);
+ new $c_s_util_DynamicVariable($m_jl_System$Streams$().jl_System$Streams$__f_err);
+ new $c_s_util_DynamicVariable(null)
+}
+$c_s_Console$.prototype = new $h_O();
+$c_s_Console$.prototype.constructor = $c_s_Console$;
+/** @constructor */
+function $h_s_Console$() {
+ /**/
+}
+$h_s_Console$.prototype = $c_s_Console$.prototype;
+$c_s_Console$.prototype.out__Ljava_io_PrintStream = (function() {
+ return $as_Ljava_io_PrintStream($n(this.s_Console$__f_outVar).s_util_DynamicVariable__f_v)
+});
+var $d_s_Console$ = new $TypeData().initClass({
+ s_Console$: 0
+}, false, "scala.Console$", {
+ s_Console$: 1,
+ O: 1,
+ s_io_AnsiColor: 1
+});
+$c_s_Console$.prototype.$classData = $d_s_Console$;
+var $n_s_Console$;
+function $m_s_Console$() {
+ if ((!$n_s_Console$)) {
+ $n_s_Console$ = new $c_s_Console$()
+ };
+ return $n_s_Console$
+}
+/** @constructor */
+function $c_s_LowPriorityImplicits() {
+ /**/
+}
+$c_s_LowPriorityImplicits.prototype = new $h_s_LowPriorityImplicits2();
+$c_s_LowPriorityImplicits.prototype.constructor = $c_s_LowPriorityImplicits;
+/** @constructor */
+function $h_s_LowPriorityImplicits() {
+ /**/
+}
+$h_s_LowPriorityImplicits.prototype = $c_s_LowPriorityImplicits.prototype;
+$c_s_LowPriorityImplicits.prototype.wrapRefArray__AO__scm_ArraySeq$ofRef = (function(xs) {
+ if ((xs === null)) {
+ return null
+ } else if (($n(xs).u.length === 0)) {
+ var this$3 = $m_scm_ArraySeq$();
+ $m_s_reflect_ManifestFactory$ObjectManifest$();
+ return this$3.scm_ArraySeq$__f_EmptyArraySeq
+ } else {
+ return new $c_scm_ArraySeq$ofRef(xs)
+ }
+});
+/** @constructor */
+function $c_s_Option$() {
+ /**/
+}
+$c_s_Option$.prototype = new $h_O();
+$c_s_Option$.prototype.constructor = $c_s_Option$;
+/** @constructor */
+function $h_s_Option$() {
+ /**/
+}
+$h_s_Option$.prototype = $c_s_Option$.prototype;
+$c_s_Option$.prototype.apply__O__s_Option = (function(x) {
+ return ((x === null) ? $m_s_None$() : new $c_s_Some(x))
+});
+var $d_s_Option$ = new $TypeData().initClass({
+ s_Option$: 0
+}, false, "scala.Option$", {
+ s_Option$: 1,
+ O: 1,
+ Ljava_io_Serializable: 1
+});
+$c_s_Option$.prototype.$classData = $d_s_Option$;
+var $n_s_Option$;
+function $m_s_Option$() {
+ if ((!$n_s_Option$)) {
+ $n_s_Option$ = new $c_s_Option$()
+ };
+ return $n_s_Option$
+}
+function $f_s_PartialFunction__applyOrElse__O__F1__O($thiz, x, default$1) {
+ return ($thiz.isDefinedAt__O__Z(x) ? $thiz.apply__O__O(x) : $n(default$1).apply__O__O(x))
+}
+function $is_s_PartialFunction(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.s_PartialFunction)))
+}
+function $as_s_PartialFunction(obj) {
+ return (($is_s_PartialFunction(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.PartialFunction"))
+}
+function $isArrayOf_s_PartialFunction(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.s_PartialFunction)))
+}
+function $asArrayOf_s_PartialFunction(obj, depth) {
+ return (($isArrayOf_s_PartialFunction(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.PartialFunction;", depth))
+}
+function $f_sc_IterableFactory__fill__I__F0__O($thiz, n, elem) {
+ return $thiz.from__sc_IterableOnce__O(new $c_sc_View$Fill(n, elem))
+}
+/** @constructor */
+function $c_sc_WithFilter() {
+ /**/
+}
+$c_sc_WithFilter.prototype = new $h_O();
+$c_sc_WithFilter.prototype.constructor = $c_sc_WithFilter;
+/** @constructor */
+function $h_sc_WithFilter() {
+ /**/
+}
+$h_sc_WithFilter.prototype = $c_sc_WithFilter.prototype;
+/** @constructor */
+function $c_sci_HashMapBuilder$$anon$1(outer, x2$1) {
+ this.sci_ChampBaseIterator__f_currentValueCursor = 0;
+ this.sci_ChampBaseIterator__f_currentValueLength = 0;
+ this.sci_ChampBaseIterator__f_currentValueNode = null;
+ this.sci_ChampBaseIterator__f_currentStackLevel = 0;
+ this.sci_ChampBaseIterator__f_nodeCursorsAndLengths = null;
+ this.sci_ChampBaseIterator__f_nodes = null;
+ $ct_sci_ChampBaseIterator__sci_Node__(this, $n(x2$1).sci_HashMap__f_rootNode);
+ while (this.hasNext__Z()) {
+ var originalHash = $n(this.sci_ChampBaseIterator__f_currentValueNode).getHash__I__I(this.sci_ChampBaseIterator__f_currentValueCursor);
+ $n(outer).update__sci_MapNode__O__O__I__I__I__V($n(outer).sci_HashMapBuilder__f_scala$collection$immutable$HashMapBuilder$$rootNode, $n($as_sci_MapNode(this.sci_ChampBaseIterator__f_currentValueNode)).getKey__I__O(this.sci_ChampBaseIterator__f_currentValueCursor), $n($as_sci_MapNode(this.sci_ChampBaseIterator__f_currentValueNode)).getValue__I__O(this.sci_ChampBaseIterator__f_currentValueCursor), originalHash, $m_sc_Hashing$().improve__I__I(originalHash), 0);
+ this.sci_ChampBaseIterator__f_currentValueCursor = ((1 + this.sci_ChampBaseIterator__f_currentValueCursor) | 0)
+ }
+}
+$c_sci_HashMapBuilder$$anon$1.prototype = new $h_sci_ChampBaseIterator();
+$c_sci_HashMapBuilder$$anon$1.prototype.constructor = $c_sci_HashMapBuilder$$anon$1;
+/** @constructor */
+function $h_sci_HashMapBuilder$$anon$1() {
+ /**/
+}
+$h_sci_HashMapBuilder$$anon$1.prototype = $c_sci_HashMapBuilder$$anon$1.prototype;
+var $d_sci_HashMapBuilder$$anon$1 = new $TypeData().initClass({
+ sci_HashMapBuilder$$anon$1: 0
+}, false, "scala.collection.immutable.HashMapBuilder$$anon$1", {
+ sci_HashMapBuilder$$anon$1: 1,
+ sci_ChampBaseIterator: 1,
+ O: 1
+});
+$c_sci_HashMapBuilder$$anon$1.prototype.$classData = $d_sci_HashMapBuilder$$anon$1;
+/** @constructor */
+function $c_sci_HashSetBuilder$$anon$1(outer, x2$1) {
+ this.sci_ChampBaseIterator__f_currentValueCursor = 0;
+ this.sci_ChampBaseIterator__f_currentValueLength = 0;
+ this.sci_ChampBaseIterator__f_currentValueNode = null;
+ this.sci_ChampBaseIterator__f_currentStackLevel = 0;
+ this.sci_ChampBaseIterator__f_nodeCursorsAndLengths = null;
+ this.sci_ChampBaseIterator__f_nodes = null;
+ $ct_sci_ChampBaseIterator__sci_Node__(this, $n(x2$1).sci_HashSet__f_rootNode);
+ while (this.hasNext__Z()) {
+ var originalHash = $n(this.sci_ChampBaseIterator__f_currentValueNode).getHash__I__I(this.sci_ChampBaseIterator__f_currentValueCursor);
+ $n(outer).update__sci_SetNode__O__I__I__I__V($n(outer).sci_HashSetBuilder__f_scala$collection$immutable$HashSetBuilder$$rootNode, $n($as_sci_SetNode(this.sci_ChampBaseIterator__f_currentValueNode)).getPayload__I__O(this.sci_ChampBaseIterator__f_currentValueCursor), originalHash, $m_sc_Hashing$().improve__I__I(originalHash), 0);
+ this.sci_ChampBaseIterator__f_currentValueCursor = ((1 + this.sci_ChampBaseIterator__f_currentValueCursor) | 0)
+ }
+}
+$c_sci_HashSetBuilder$$anon$1.prototype = new $h_sci_ChampBaseIterator();
+$c_sci_HashSetBuilder$$anon$1.prototype.constructor = $c_sci_HashSetBuilder$$anon$1;
+/** @constructor */
+function $h_sci_HashSetBuilder$$anon$1() {
+ /**/
+}
+$h_sci_HashSetBuilder$$anon$1.prototype = $c_sci_HashSetBuilder$$anon$1.prototype;
+var $d_sci_HashSetBuilder$$anon$1 = new $TypeData().initClass({
+ sci_HashSetBuilder$$anon$1: 0
+}, false, "scala.collection.immutable.HashSetBuilder$$anon$1", {
+ sci_HashSetBuilder$$anon$1: 1,
+ sci_ChampBaseIterator: 1,
+ O: 1
+});
+$c_sci_HashSetBuilder$$anon$1.prototype.$classData = $d_sci_HashSetBuilder$$anon$1;
+function $is_sci_LazyList$State(obj) {
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sci_LazyList$State)))
+}
+function $as_sci_LazyList$State(obj) {
+ return (($is_sci_LazyList$State(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.immutable.LazyList$State"))
+}
+function $isArrayOf_sci_LazyList$State(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.sci_LazyList$State)))
+}
+function $asArrayOf_sci_LazyList$State(obj, depth) {
+ return (($isArrayOf_sci_LazyList$State(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.immutable.LazyList$State;", depth))
+}
+/** @constructor */
+function $c_sci_List$$anon$1() {
+ /**/
+}
+$c_sci_List$$anon$1.prototype = new $h_O();
+$c_sci_List$$anon$1.prototype.constructor = $c_sci_List$$anon$1;
+/** @constructor */
+function $h_sci_List$$anon$1() {
+ /**/
+}
+$h_sci_List$$anon$1.prototype = $c_sci_List$$anon$1.prototype;
+$c_sci_List$$anon$1.prototype.toString__T = (function() {
+ return ""
+});
+$c_sci_List$$anon$1.prototype.apply__O__O = (function(x) {
+ return this
+});
+var $d_sci_List$$anon$1 = new $TypeData().initClass({
+ sci_List$$anon$1: 0
+}, false, "scala.collection.immutable.List$$anon$1", {
+ sci_List$$anon$1: 1,
+ O: 1,
+ F1: 1
+});
+$c_sci_List$$anon$1.prototype.$classData = $d_sci_List$$anon$1;
+/** @constructor */
+function $c_sci_MapNode() {
+ /**/
+}
+$c_sci_MapNode.prototype = new $h_sci_Node();
+$c_sci_MapNode.prototype.constructor = $c_sci_MapNode;
+/** @constructor */
+function $h_sci_MapNode() {
+ /**/
+}
+$h_sci_MapNode.prototype = $c_sci_MapNode.prototype;
+function $as_sci_MapNode(obj) {
+ return (((obj instanceof $c_sci_MapNode) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.immutable.MapNode"))
+}
+function $isArrayOf_sci_MapNode(obj, depth) {
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.sci_MapNode)))
+}
+function $asArrayOf_sci_MapNode(obj, depth) {
+ return (($isArrayOf_sci_MapNode(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.immutable.MapNode;", depth))
+}
+function $p_sci_Range$__description__I__I__I__Z__T($thiz, start, end, step, isInclusive) {
+ return ((((start + (isInclusive ? " to " : " until ")) + end) + " by ") + step)
+}
+/** @constructor */
+function $c_sci_Range$() {
+ /**/
+}
+$c_sci_Range$.prototype = new $h_O();
+$c_sci_Range$.prototype.constructor = $c_sci_Range$;
+/** @constructor */
+function $h_sci_Range$() {
+ /*