forked from roSievers/elm-sweeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.min.js
260 lines (260 loc) · 133 KB
/
main.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
(function(){function fc(a){return{a:"LevelLoaded",b:a}}function Wc(a){return d(Re,{a:"::",b:d(Ja,"placeholder","Paste a Hexcells level file!"),c:{a:"::",b:d(gc,"input",d(Xc,function(a){return wb({a:"PasteBoxEdit",b:a})},Se)),c:{a:"::",b:d(Ja,"value",a),c:{a:"::",b:Z("paste-box"),c:{a:"[]"}}}}},{a:"[]"})}function Te(a){return Xa(hc({T:a,ib:function(a){return d(Yc,Xa(ic),wb({a:"PasteBoxFullscreenReturn",b:a}))}}))}function Ue(a){a=3*(Ba(a)+1);return ib({a:"::",b:{a:"_Tuple2",b:"height",c:d(p["++"],
C(a),"em")},c:{a:"[]"}})}function Zc(a){return{level:{title:"",rb:"",tb:{a:"[]"},content:a},ka:0}}function Ve(a){var b=ea(a),c=1>l.j(b,6)?b:6,f=0<l.j(b,0)?100/Ba(c):100;return d(E,{a:"::",b:ib({a:"::",b:{a:"_Tuple2",b:"width",c:"100%"},c:{a:"::",b:{a:"_Tuple2",b:"flex-direction",c:"row"},c:{a:"[]"}}}),c:{a:"[]"}},d(I,function(a){return d(E,{a:"::",b:ib({a:"::",b:{a:"_Tuple2",b:"width",c:d(p["++"],C(f),"%")},c:{a:"::",b:{a:"_Tuple2",b:"display",c:"inline-flex"},c:{a:"[]"}}}),c:{a:"[]"}},{a:"::",b:a,
c:{a:"[]"}})},a))}function jc(a){var b=l.o(a.ka,0)?"Flawless":l.o(a.ka,1)?"1 mistake":d(p["++"],C(a.ka)," mistakes");a=d(We,Xe,a.level.content);return{a:"_Tuple2",b:l.o(a,0)?"No mines left":l.o(a,1)?"1 mine left":d(p["++"],C(a)," mines left"),c:b}}function $c(a){return d(p["++"],C(1.5*Ba(a.left)-1),d(p["++"]," ",d(p["++"],C(.866*Ba(a.top)-2),d(p["++"]," ",d(p["++"],C(1.5*Ba(a.right-a.left)+2),d(p["++"]," ",C(.866*Ba(a.bottom-a.top)+4)))))))}function xb(a){return{aa:"cell",da:a,va:u(d(ad,bd,a)),za:u(d(ad,
Ye,a)),content:{a:"::",b:Ca("hex hidden-cell"),c:{a:"::",b:Ca("highlight"),c:{a:"[]"}}},I:w}}function jb(a){return d(cd," ",d(I,function(a){return a.b},d(Ya,function(a){return a.c},a)))}function Ze(a){return k(dd,"contextmenu",{stopPropagation:!1,preventDefault:!0},kc(a))}function Ca(a){return d(ed,{a:"::",b:ta(a),c:{a:"::",b:fd("1,0 0.5,-0.866 -0.5,-0.866 -1,0 -0.5,0.866 0.5,0.866"),c:{a:"::",b:Da("scale(0.9)"),c:{a:"[]"}}}},{a:"[]"})}function gd(a){return d(hd,{a:"::",b:id("text-anchor:middle;font-size:0.8;pointer-events:none;"),
c:{a:"::",b:$e("central"),c:{a:"[]"}}},{a:"::",b:G(a),c:{a:"[]"}})}function af(a){return d(hd,{a:"::",b:id("text-anchor:middle;font-size:0.4;"),c:{a:"::",b:bf("0.75"),c:{a:"[]"}}},{a:"::",b:G(a),c:{a:"[]"}})}function lc(a){var b=1.5*Ba(a.x);a=.866*Ba(a.y);return Da(d(cd,"",{a:"::",b:"translate(",c:{a:"::",b:C(b),c:{a:"::",b:",",c:{a:"::",b:C(a),c:{a:"::",b:")",c:{a:"[]"}}}}}}))}function jd(a){switch(a.a){case "DownLeft":return Da("rotate(60)");case "Down":return Da("rotate(0)");default:return Da("rotate(-60)")}}
function kd(a){return ld(d(md,d(q["<*"],d(q["*>"],mc(kb),nd),od),a))}function ld(a){return d(pd,function(a){return a.h},d(qd,function(a){return a.h},a))}function rd(a){return ea(d(Ya,fa,k(lb,e(function(a,c){return!l.o(a,c)}),a,d(Ka,1,a))))}function cf(a){return{a:"FullscreenMsg",b:a}}function yb(a){return{a:"MixedPuzzleMsg",b:a}}function Xa(a){return{a:"SetRoute",b:a}}function wb(a){return{a:"PasteBoxMsg",b:a}}function hc(a){return{a:"FullscreenView",b:a}}function df(a){return d(B,function(a){return k(ma,
a.b,{a:"[]"},a.c)},nc(a))}function ua(a){return{a:"StaticMarkdown",b:a}}function Za(a){return d(E,{a:"::",b:mb("flat-label"),c:{a:"[]"}},{a:"::",b:G(a),c:{a:"[]"}})}function oc(a){return d(E,{a:"::",b:mb("flex-container"),c:{a:"[]"}},d(I,function(a){return d(E,{a:"::",b:mb("flex-block"),c:{a:"[]"}},{a:"::",b:a,c:{a:"[]"}})},a))}function zb(a){return{a:"Count",b:a}}function Ab(a){return{a:"Flower",b:a}}function nb(a){return Bb({Ka:!0,direction:a,I:!1,enabled:!0})}function Cb(a){return Bb({Ka:!1,direction:a,
I:!1,enabled:!0})}function Bb(a){return{a:"RowCount",b:a}}function Xe(a){return La(a)&&ef(a)}function La(a){switch(a.a){case "Mine":return!0;case "Flower":return!0;default:return!1}}function ef(a){switch(a.a){case "Empty":return!a.b.F;case "Count":return!a.b.F;case "Mine":return!a.b.F;case "Flower":return!a.b.F;default:return!1}}function Db(a){var b=ob(a);a=d(I,function(a){return a.b},b);b=d(I,function(a){return a.c},b);return y(ff,H(function(a,b,d,e){return{top:a,right:b,bottom:d,left:e}}),sd(b),
td(a),td(b),sd(a))}function pc(a){return{a:"_Tuple2",b:a,c:w}}function gf(a){return d(p["++"],a.b,a.c)}function Eb(a){return d(gc,"click",kc(a))}function Z(a){return d(Ja,"id",a)}function mb(a){return d(Ja,"className",a)}function ud(a){return d(ha.Lb,void 0,a)}function nc(a){return"[]"===a.a?w:u({a:"_Tuple2",b:a.b,c:a.c})}function vd(a){if("[]"===a.a)return{a:"[]"};var b=a.b,c=e(function(a,c){return{a:"::",b:a,c:{a:"::",b:{a:"::",b:b,c:a},c:c}}});return{a:"::",b:{a:"::",b:b,c:{a:"[]"}},c:k(N,c,{a:"[]"},
vd(a.c))}}function wd(a){return"[]"===a.a?{a:"::",b:{a:"[]"},c:{a:"[]"}}:d(na,function(a){return d(I,e(function(a,b){return{a:"::",b:a,c:b}})(a.b),wd(a.c))},xd(a))}function xd(a){if("[]"===a.a)return{a:"[]"};var b=a.c,c=a.b;return{a:"::",b:{a:"_Tuple2",b:c,c:b},c:d(I,function(a){return{a:"_Tuple2",b:a.b,c:{a:"::",b:c,c:a.c}}},xd(b))}}function yd(a){return function(b){return d(hf,fa,k(lb,e(function(a,b){return l.o(a,b)}),a,b))}}function va(a){return{a:"Set_elm_builtin",b:a}}function Fb(a){return{s:Gb(a),
set:wa(a)}}function qc(a){return d($a,function(b){return u(a.get(b))},a.set)}function jf(a){a:do{b:do{c:do{d:do{e:do{f:do{g:do if("RBNode_elm_builtin"===a.a)if("RBNode_elm_builtin"===a.g.a)if("RBNode_elm_builtin"===a.f.a)switch(a.g.b.a){case "Red":switch(a.f.b.a){case "Red":if("RBNode_elm_builtin"===a.g.g.a&&"Red"===a.g.g.b.a)break g;else if("RBNode_elm_builtin"===a.g.f.a&&"Red"===a.g.f.b.a)break f;else if("RBNode_elm_builtin"===a.f.g.a&&"Red"===a.f.g.b.a)break e;else if("RBNode_elm_builtin"===a.f.f.a&&
"Red"===a.f.f.b.a)break d;else break a;case "NBlack":if("RBNode_elm_builtin"===a.g.g.a&&"Red"===a.g.g.b.a)break g;else if("RBNode_elm_builtin"===a.g.f.a&&"Red"===a.g.f.b.a)break f;else if("BBlack"===a.b.a&&"RBNode_elm_builtin"===a.f.g.a&&"Black"===a.f.g.b.a&&"RBNode_elm_builtin"===a.f.f.a&&"Black"===a.f.f.b.a)break c;else break a;default:if("RBNode_elm_builtin"===a.g.g.a&&"Red"===a.g.g.b.a)break g;else if("RBNode_elm_builtin"===a.g.f.a&&"Red"===a.g.f.b.a)break f;else break a}case "NBlack":switch(a.f.b.a){case "Red":if("RBNode_elm_builtin"===
a.f.g.a&&"Red"===a.f.g.b.a)break e;else if("RBNode_elm_builtin"===a.f.f.a&&"Red"===a.f.f.b.a)break d;else if("BBlack"===a.b.a&&"RBNode_elm_builtin"===a.g.g.a&&"Black"===a.g.g.b.a&&"RBNode_elm_builtin"===a.g.f.a&&"Black"===a.g.f.b.a)break b;else break a;case "NBlack":if("BBlack"===a.b.a)if("RBNode_elm_builtin"===a.f.g.a&&"Black"===a.f.g.b.a&&"RBNode_elm_builtin"===a.f.f.a&&"Black"===a.f.f.b.a)break c;else if("RBNode_elm_builtin"===a.g.g.a&&"Black"===a.g.g.b.a&&"RBNode_elm_builtin"===a.g.f.a&&"Black"===
a.g.f.b.a)break b;else break a;else break a;default:if("BBlack"===a.b.a&&"RBNode_elm_builtin"===a.g.g.a&&"Black"===a.g.g.b.a&&"RBNode_elm_builtin"===a.g.f.a&&"Black"===a.g.f.b.a)break b;else break a}default:switch(a.f.b.a){case "Red":if("RBNode_elm_builtin"===a.f.g.a&&"Red"===a.f.g.b.a)break e;else if("RBNode_elm_builtin"===a.f.f.a&&"Red"===a.f.f.b.a)break d;else break a;case "NBlack":if("BBlack"===a.b.a&&"RBNode_elm_builtin"===a.f.g.a&&"Black"===a.f.g.b.a&&"RBNode_elm_builtin"===a.f.f.a&&"Black"===
a.f.f.b.a)break c;else break a;default:break a}}else switch(a.g.b.a){case "Red":if("RBNode_elm_builtin"===a.g.g.a&&"Red"===a.g.g.b.a)break g;else if("RBNode_elm_builtin"===a.g.f.a&&"Red"===a.g.f.b.a)break f;else break a;case "NBlack":if("BBlack"===a.b.a&&"RBNode_elm_builtin"===a.g.g.a&&"Black"===a.g.g.b.a&&"RBNode_elm_builtin"===a.g.f.a&&"Black"===a.g.f.b.a)break b;else break a;default:break a}else if("RBNode_elm_builtin"===a.f.a)switch(a.f.b.a){case "Red":if("RBNode_elm_builtin"===a.f.g.a&&"Red"===
a.f.g.b.a)break e;else if("RBNode_elm_builtin"===a.f.f.a&&"Red"===a.f.f.b.a)break d;else break a;case "NBlack":if("BBlack"===a.b.a&&"RBNode_elm_builtin"===a.f.g.a&&"Black"===a.f.g.b.a&&"RBNode_elm_builtin"===a.f.f.a&&"Black"===a.f.f.b.a)break c;else break a;default:break a}else break a;else break a;while(0);return Hb(a.b)(a.g.g.c)(a.g.g.h)(a.g.c)(a.g.h)(a.c)(a.h)(a.g.g.g)(a.g.g.f)(a.g.f)(a.f)}while(0);return Hb(a.b)(a.g.c)(a.g.h)(a.g.f.c)(a.g.f.h)(a.c)(a.h)(a.g.g)(a.g.f.g)(a.g.f.f)(a.f)}while(0);
return Hb(a.b)(a.c)(a.h)(a.f.g.c)(a.f.g.h)(a.f.c)(a.f.h)(a.g)(a.f.g.g)(a.f.g.f)(a.f.f)}while(0);return Hb(a.b)(a.c)(a.h)(a.f.c)(a.f.h)(a.f.f.c)(a.f.f.h)(a.g)(a.f.g)(a.f.f.g)(a.f.f.f)}while(0);return y(M,X,a.f.g.c,a.f.g.h,y(M,X,a.c,a.h,a.g,a.f.g.g),y(pb,X,a.f.c,a.f.h,a.f.g.f,zd(a.f.f)))}while(0);return y(M,X,a.g.f.c,a.g.f.h,y(pb,X,a.g.c,a.g.h,zd(a.g.g),a.g.f.g),y(M,X,a.c,a.h,a.g.f.f,a.f))}while(0);return a}function zd(a){return"RBEmpty_elm_builtin"===a.a?ab.qa("can't make a Leaf red"):y(M,Ib,a.c,a.h,
a.g,a.f)}function Hb(a){return function(b){return function(c){return function(f){return function(d){return function(h){return function(e){return function(r){return function(kf){return function(J){return function(S){return y(M,Bd(a),f,d,y(M,X,b,c,r,kf),y(M,X,h,e,J,S))}}}}}}}}}}}function Cd(a){return"RBNode_elm_builtin"===a.a?y(M,Bd(a.b),a.c,a.h,a.g,a.f):bb(qb)}function lf(a){return"RBNode_elm_builtin"===a.a&&"Red"===a.b.a?y(M,X,a.c,a.h,a.g,a.f):a}function bb(a){return{a:"RBEmpty_elm_builtin",b:a}}
function Bd(a){switch(a.a){case "BBlack":return X;case "Black":return Ib;case "Red":return mf;default:return ab.qa("Can't make a negative black node less black!")}}function nf(a){switch(a.a){case "Black":return Dd;case "Red":return X;case "NBlack":return Ib;default:return ab.qa("Can't make a double black node more black!")}}function Ed(a){a:do{if("RBNode_elm_builtin"===a.a){if("BBlack"===a.b.a)return!0}else if("LBBlack"===a.b.a)return!0;break a}while(0);return!1}function Jb(a){return k(Kb,m(function(a,
c,f){return{a:"::",b:{a:"_Tuple2",b:a,c:c},c:f}}),{a:"[]"},a)}function ob(a){return k(Kb,m(function(a,c,f){return{a:"::",b:a,c:f}}),{a:"[]"},a)}function xa(a){return ca(e(function(b,c){var f=Fd(c.input);if("Just"===f.a){var d=f.b.b;return a(d)?{a:"_Tuple3",b:b,c:l.update(c,{input:f.b.c,position:c.position+1}),h:K(d)}:{a:"_Tuple3",b:b,c:c,h:x({a:"::",b:"could not satisfy predicate",c:{a:"[]"}})}}return{a:"_Tuple3",b:b,c:c,h:x({a:"::",b:"could not satisfy predicate",c:{a:"[]"}})}}))}function mc(a){var b=
m(function(b,f,d){for(;;){var c=k(oa,a,f,d);if("_Tuple3"===c.a&&"Ok"===c.h.a){f=c.c;var h=c.b;if(l.o(d,f))return{a:"_Tuple3",b:h,c:f,h:pa(b)};d=h;h=f;b={a:"::",b:c.h.b,c:b};f=d;d=h}else return{a:"_Tuple3",b:f,c:d,h:pa(b)}}});return ca(e(function(a,f){var c=k(b,{a:"[]"},a,f);return{a:"_Tuple3",b:c.b,c:c.c,h:K(c.h)}}))}function of(a){return ca(e(function(b,c){var f=k(oa,a,b,c);return"_Tuple3"===f.a&&"Ok"===f.h.a?{a:"_Tuple3",b:f.b,c:f.c,h:K(u(f.h.b))}:{a:"_Tuple3",b:b,c:c,h:K(w)}}))}function Gd(a){var b=
d(Hd,"^",a)?a:d(p["++"],"^",a);return ca(e(function(a,f){var c=k(pf,{a:"AtMost",b:1},qf(b),f.input);if("::"===c.a&&"[]"===c.c.a){var c=c.b,e=Id(c.match),g=d(Jd,e,f.input);return{a:"_Tuple3",b:a,c:l.update(f,{input:g,position:f.position+e}),h:K(c.match)}}return{a:"_Tuple3",b:a,c:f,h:x({a:"::",b:d(p["++"],"expected input matching Regexp /",d(p["++"],b,"/")),c:{a:"[]"}})}}))}function D(a){return ca(e(function(b,c){if(d(Hd,a,c.input)){var f=Id(a),h=d(Jd,f,c.input);return{a:"_Tuple3",b:b,c:l.update(c,
{input:h,position:c.position+f}),h:K(a)}}return{a:"_Tuple3",b:b,c:c,h:x({a:"::",b:d(p["++"],"expected ",C(a)),c:{a:"[]"}})}}))}function Ma(a){return ca(e(function(b,c){return{a:"_Tuple3",b:b,c:c,h:K(a)}}))}function ca(a){return{a:"Parser",b:a}}function md(a){return d(rf,a,{a:"_Tuple0"})}function oa(a){return"Parser"===a.a?a.b:O(a.b)}function Na(a){return{a:"Lazy",b:sf.vc(a)}}function O(a){return a.b({a:"_Tuple0"})}function tf(a){return a.b}function K(a){return{a:"Ok",b:a}}function x(a){return{a:"Err",
b:a}}function pa(a){return k(aa,e(function(a,c){return{a:"::",b:a,c:c}}),{a:"[]"},a)}function Kd(a){return"::"===a.a?u(a.c):w}function sd(a){return"::"===a.a?u(k(aa,uf,a.b,a.c)):w}function td(a){return"::"===a.a?u(k(aa,vf,a.b,a.c)):w}function ea(a){return k(aa,e(function(a,c){return c+1}),0,a)}function u(a){return{a:"Just",b:a}}function fa(a){return a}function Lb(){for(;;);}function e(a){function b(b){return function(c){return a(b,c)}}b.arity=2;b.B=a;return b}function m(a){function b(b){return function(c){return function(f){return a(b,
c,f)}}}b.arity=3;b.B=a;return b}function H(a){function b(b){return function(c){return function(f){return function(d){return a(b,c,f,d)}}}}b.arity=4;b.B=a;return b}function da(a){function b(b){return function(c){return function(f){return function(d){return function(h){return a(b,c,f,d,h)}}}}}b.arity=5;b.B=a;return b}function Ea(a){function b(b){return function(c){return function(f){return function(d){return function(h){return function(e){return a(b,c,f,d,h,e)}}}}}}b.arity=6;b.B=a;return b}function wf(a){function b(b){return function(c){return function(f){return function(d){return function(h){return function(e){return function(r){return a(b,
c,f,d,h,e,r)}}}}}}}b.arity=7;b.B=a;return b}function xf(a){function b(b){return function(c){return function(f){return function(d){return function(h){return function(e){return function(r){return function(J){return a(b,c,f,d,h,e,r,J)}}}}}}}}b.arity=8;b.B=a;return b}function yf(a){function b(b){return function(c){return function(f){return function(d){return function(h){return function(e){return function(r){return function(J){return function(S){return a(b,c,f,d,h,e,r,J,S)}}}}}}}}}b.arity=9;b.B=a;return b}
function d(a,b,c){return 2===a.arity?a.B(b,c):a(b)(c)}function k(a,b,c,f){return 3===a.arity?a.B(b,c,f):a(b)(c)(f)}function Q(a,b,c,f,d){return 4===a.arity?a.B(b,c,f,d):a(b)(c)(f)(d)}function y(a,b,c,f,d,e){return 5===a.arity?a.B(b,c,f,d,e):a(b)(c)(f)(d)(e)}var sf=function(){return{vc:function(a){var b,c=!1;return function(f){c||(b=a(f),c=!0);return b}}}}(),L=function(){function a(b,f){if(0===f)throw Error("Cannot perform mod 0. Division by zero error.");var c=b%f,c=0===b?0:0<f?0<=b?c:c+f:-a(-b,-f);
return c===f?0:c}var b=["LT","EQ","GT"];return{ec:e(function(a,b){return a/b|0}),me:e(function(a,b){return a%b}),wc:e(a),le:Math.PI,e:Math.E,cos:Math.cos,sin:Math.sin,tan:Math.tan,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:e(Math.atan2),pd:function(a){return a*Math.PI/180},ze:function(a){return 2*Math.PI*a},zd:function(a){var b=a.b;a=a.c;return l.oa(b*Math.cos(a),b*Math.sin(a))},ye:function(a){var b=a.b;a=a.c;return l.oa(Math.sqrt(b*b+a*a),Math.atan2(a,b))},sqrt:Math.sqrt,Ud:e(function(a,
b){return Math.log(b)/Math.log(a)}),ae:function(a){return-a},abs:function(a){return 0>a?-a:a},min:e(function(a,b){return 0>l.j(a,b)?a:b}),max:e(function(a,b){return 0<l.j(a,b)?a:b}),hd:m(function(a,b,d){return 0>l.j(d,a)?a:0<l.j(d,b)?b:d}),compare:e(function(a,d){return{a:b[l.j(a,d)+1]}}),Yc:e(function(a,b){return a!==b}),zc:function(a){return!a},truncate:function(a){return a|0},gd:Math.ceil,floor:Math.floor,round:Math.round,Rb:function(a){return a},isNaN:isNaN,Kd:function(a){return Infinity===a||
-Infinity===a}}}(),l=function(){function a(b,c,d,f){if(100<d)return f.push({x:b,y:c}),!0;if(b===c)return!0;if("object"!==typeof b){if("function"===typeof b)throw Error('Trying to use `(==)` on functions. There is no way to know if functions are "the same" in the Elm sense. Read more about this at http://package.elm-lang.org/packages/elm-lang/core/latest/Basics#== which describes why it is this way and what the better version will look like.');return!1}if(null===b||null===c)return!1;if(b instanceof
Date)return b.getTime()===c.getTime();if(!("ctor"in b)){for(var h in b)if(!a(b[h],c[h],d+1,f))return!1;return!0}if("RBNode_elm_builtin"===b.a||"RBEmpty_elm_builtin"===b.a)b=Jb(b),c=Jb(c);"Set_elm_builtin"===b.a&&(b=ob(b.b),c=ob(c.b));if("::"===b.a){for(;"::"===b.a&&"::"===c.a;){if(!a(b.b,c.b,d+1,f))return!1;b=b.c;c=c.c}return b.a===c.a}if("_Array"===b.a){b=ia.lb(b);c=ia.lb(c);if(b.length!==c.length)return!1;for(h=0;h<b.length;h++)if(!a(b[h],c[h],d+1,f))return!1;return!0}if(!a(b.a,c.a,d+1,f))return!1;
for(h in b)if(!a(b[h],c[h],d+1,f))return!1;return!0}function b(a,c){if("object"!==typeof a)return a===c?0:a<c?-1:1;if(a instanceof String){var d=a.valueOf(),f=c.valueOf();return d===f?0:d<f?-1:1}if("::"===a.a||"[]"===a.a){for(;"::"===a.a&&"::"===c.a;){d=b(a.b,c.b);if(0!==d)return d;a=a.c;c=c.c}return a.a===c.a?0:"[]"===a.a?-1:1}if("_Tuple"===a.a.slice(0,6)){f=a.a.slice(6)-0;if(0===f)return 0;if(1<=f){d=b(a.b,c.b);if(0!==d)return d;if(2<=f){d=b(a.c,c.c);if(0!==d)return d;if(3<=f){d=b(a.h,c.h);if(0!==
d)return d;if(4<=f){d=b(a.g,c.g);if(0!==d)return d;if(5<=f){d=b(a.f,c.f);if(0!==d)return d;if(6<=f){d=b(a.Tb,c.Tb);if(0!==d)return d;if(7<=f)throw Error("Comparison error: cannot compare tuples with more than 6 elements.");}}}}}}return 0}throw Error("Comparison error: comparison is only defined on ints, floats, times, chars, strings, lists of comparable values, and tuples of comparable values.");}function c(a){return a.start.Ga==a.end.Ga?"on line "+a.start.Ga:"between lines "+a.start.Ga+" and "+a.end.Ga}
function d(a){var b=typeof a;if("function"===b)return a=a.B?a.B.name:a.name,"<function"+(""===a?"":":")+a+">";if("boolean"===b)return a?"True":"False";if("number"===b)return a+"";if(a instanceof String)return"'"+h(a,!0)+"'";if("string"===b)return'"'+h(a,!1)+'"';if(null===a)return"null";if("object"===b&&"ctor"in a){b=a.a.substring(0,5);if("_Tupl"===b){var b=[],c;for(c in a)"ctor"!==c&&b.push(d(a[c]));return"("+b.join(",")+")"}if("_Task"===b)return"<task>";if("_Array"===a.a)return a=zf(a),"Array.fromList "+
d(a);if("<decoder>"===a.a)return"<decoder>";if("_Process"===a.a)return"<process:"+a.id+">";if("::"===a.a){b="["+d(a.b);for(a=a.c;"::"===a.a;)b+=","+d(a.b),a=a.c;return b+"]"}if("[]"===a.a)return"[]";if("Set_elm_builtin"===a.a)return"Set.fromList "+d(ob(a.b));if("RBNode_elm_builtin"===a.a||"RBEmpty_elm_builtin"===a.a)return"Dict.fromList "+d(Jb(a));var b="",f;for(f in a)if("ctor"!==f){c=d(a[f]);var e=c[0],b=b+(" "+("{"===e||"("===e||"<"===e||'"'===e||0>c.indexOf(" ")?c:"("+c+")"))}return a.a+b}if("object"===
b){if(a instanceof Date)return"<"+a.toString()+">";if(a.sd)return"<websocket>";b=[];for(c in a)b.push(c+" = "+d(a[c]));return 0===b.length?"{}":"{ "+b.join(", ")+" }"}return"<internal structure>"}function h(a,b){var c=a.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return b?c.replace(/\'/g,"\\'"):c.replace(/\"/g,'\\"')}var r=0,g={a:"[]"};return{o:function(b,c){for(var d=[],f=a(b,c,0,d),h;f&&(h=d.pop());)f=a(h.x,h.y,0,
d);return f},j:b,ba:{a:"_Tuple0"},oa:function(a,b){return{a:"_Tuple2",b:a,c:b}},m:function(a){return new String(a)},update:function(a,b){var c={},d;for(d in a)c[d]=a[d];for(d in b)c[d]=b[d];return c},nc:function(){return r++},append:e(function(a,b){if("string"===typeof a)return a+b;if("[]"===a.a)return b;var c={a:"::",b:a.b,c:g},d=c;for(a=a.c;"[]"!==a.a;)d.c={a:"::",b:a.b,c:g},a=a.c,d=d.c;d.c=b;return c}),qa:function(a,b){return function(d){throw Error("Ran into a `Debug.crash` in module `"+a+"` "+
c(b)+"\nThe message provided by the code author is:\n\n "+d);}},kd:function(a,b,f){return function(h){throw Error("Ran into a `Debug.crash` in module `"+a+"`\n\nThis was caused by the `case` expression "+c(b)+".\nOne of the branches ended with a crash and the following value got through:\n\n "+d(f)+"\n\nThe message provided by the code author is:\n\n "+h);}},toString:d}}();e(function(a,b){return d(a,b.b,b.c)});var Ld=m(function(a,b,c){return a({a:"_Tuple2",b:b,c:c})}),qa=m(function(a,b,c){return d(a,
c,b)}),ja=e(function(a){return a}),p=p||{};p["<|"]=e(function(a,b){return a(b)});p=p||{};p["|>"]=e(function(a,b){return b(a)});p=p||{};p[">>"]=m(function(a,b,c){return b(a(c))});p=p||{};p["<<"]=m(function(a,b,c){return a(b(c))});p=p||{};p["++"]=l.append;var C=l.toString,Ba=L.Rb,Md=L.zc,Af=L.Yc,p=p||{};p["||"]=L.fe;p=p||{};p["&&"]=L.dd;var vf=L.max,uf=L.min,rc=L.compare,p=p||{};p[">="]=L.Bd;p=p||{};p["<="]=L.Pd;p=p||{};p[">"]=L.Cd;p=p||{};p["<"]=L.Vd;p=p||{};p["/="]=L.be;p=p||{};p["=="]=L.o;p=p||{};
p["^"]=L.exp;p=p||{};p["%"]=L.wc;p=p||{};p["//"]=L.ec;p=p||{};p["/"]=L.xd;p=p||{};p["*"]=L.$d;p=p||{};p["-"]=L.sub;p=p||{};p["+"]=L.add;var ab=function(){return{qa:function(a){throw Error(a);},log:e(function(a,b){var c=a+": "+l.toString(b),d=d||{};d.Oc?d.Oc.write(c):console.log(c);return b})}}(),Bf=ab.log,ba=e(function(a,b){return"Just"===b.a?b.b:a}),w={a:"Nothing"},Nd=e(function(a,b){return"Just"===b.a?a(b.b):w}),B=e(function(a,b){return"Just"===b.a?u(a(b.b)):w}),Cf=m(function(a,b,c){return"Just"===
b.a&&"Just"===c.a?u(d(a,b.b,c.b)):w});H(function(a,b,c,d){return"Just"===b.a&&"Just"===c.a&&"Just"===d.a?u(k(a,b.b,c.b,d.b)):w});var ff=da(function(a,b,c,d,h){return"Just"===b.a&&"Just"===c.a&&"Just"===d.a&&"Just"===h.a?u(Q(a,b.b,c.b,d.b,h.b)):w});Ea(function(a,b,c,d,h,e){return"Just"===b.a&&"Just"===c.a&&"Just"===d.a&&"Just"===h.a&&"Just"===e.a?u(y(a,b.b,c.b,d.b,h.b,e.b)):w});var A=function(){function a(a,b){return{a:"::",b:a,c:b}}function b(b){for(var c=f,d=b.length;d--;)c=a(b[d],c);return c}function c(a){for(var b=
[];"[]"!==a.a;)b.push(a.b),a=a.c;return b}var f={a:"[]"};return{O:f,Aa:a,bb:e(a),Za:c,P:b,gb:m(function(a,b,f){f=c(f);for(var h=f.length;h--;)b=d(a,f[h],b);return b}),Cb:m(function(a,c,f){for(var h=[];"[]"!==c.a&&"[]"!==f.a;)h.push(d(a,c.b,f.b)),c=c.c,f=f.c;return b(h)}),Db:H(function(a,c,d,f){for(var h=[];"[]"!==c.a&&"[]"!==d.a&&"[]"!==f.a;)h.push(k(a,c.b,d.b,f.b)),c=c.c,d=d.c,f=f.c;return b(h)}),Eb:da(function(a,c,d,f,e){for(var h=[];"[]"!==c.a&&"[]"!==d.a&&"[]"!==f.a&&"[]"!==e.a;)h.push(Q(a,c.b,
d.b,f.b,e.b)),c=c.c,d=d.c,f=f.c,e=e.c;return b(h)}),Fb:Ea(function(a,c,d,f,e,g){for(var h=[];"[]"!==c.a&&"[]"!==d.a&&"[]"!==f.a&&"[]"!==e.a&&"[]"!==g.a;)h.push(y(a,c.b,d.b,f.b,e.b,g.b)),c=c.c,d=d.c,f=f.c,e=e.c,g=g.c;return b(h)}),se:e(function(a,d){return b(c(d).sort(function(b,c){return l.j(a(b),a(c))}))}),Nc:e(function(a,d){return b(c(d).sort(function(b,c){var d=a(b)(c).a;return"EQ"===d?0:"LT"===d?-1:1}))})}}(),Df=A.Nc,Ka=e(function(a,b){for(;;){if(1>l.j(a,0))return b;var c=b;if("[]"===c.a)return b;
c=c.c;--a;b=c}}),Ef=A.Fb,Ff=A.Eb,Gf=A.Db,lb=A.Cb,sc=e(function(a,b){for(;;){var c=b;if("[]"===c.a)return!1;if(a(c.b))return!0;b=c.c}}),hf=e(function(a,b){return!d(sc,function(b){return!a(b)},b)}),N=A.gb,aa=m(function(a,b,c){for(;;){var f=c;if("[]"===f.a)return b;c=a;b=d(a,f.b,b);f=f.c;a=c;c=f}}),Od=e(function(a,b){return d(sc,function(b){return l.o(b,a)},b)}),Pd=Pd||{};Pd["::"]=A.bb;var I=e(function(a,b){return k(N,e(function(b,d){return{a:"::",b:a(b),c:d}}),{a:"[]"},b)}),Ya=e(function(a,b){var c=
e(function(b,c){return a(b)?{a:"::",b:b,c:c}:c});return k(N,c,{a:"[]"},b)}),Hf=m(function(a,b,c){a=a(b);return"Just"===a.a?{a:"::",b:a.b,c:c}:c}),Mb=e(function(a,b){return k(N,Hf(a),{a:"[]"},b)}),If=m(function(a,b,c){var f=e(function(b,c){return"::"===c.a?{a:"::",b:d(a,b,c.b),c:c}:{a:"[]"}});return pa(k(aa,f,{a:"::",b:b,c:{a:"[]"}},c))}),Nb=e(function(a,b){return"[]"===b.a?a:k(N,e(function(a,b){return{a:"::",b:a,c:b}}),b,a)}),na=e(function(a,b){return k(N,Nb,{a:"[]"},d(I,a,b))});e(function(a,b){var c=
e(function(b,c){var d=c.b,f=c.c;return a(b)?{a:"_Tuple2",b:{a:"::",b:b,c:d},c:f}:{a:"_Tuple2",b:d,c:{a:"::",b:b,c:f}}});return k(N,c,{a:"_Tuple2",b:{a:"[]"},c:{a:"[]"}},b)});var Jf=e(function(a,b){if("[]"===b.a)return{a:"[]"};var c=e(function(b,c){return{a:"::",b:a,c:{a:"::",b:b,c:c}}}),c=k(N,c,{a:"[]"},b.c);return{a:"::",b:b.b,c:c}}),Kf=m(function(a,b,c){for(;;){if(1>l.j(a,0))return c;var d=b;if("[]"===d.a)return c;b=d.c;c={a:"::",b:d.b,c:c};--a}}),Lf=e(function(a,b){return pa(k(Kf,a,b,{a:"[]"}))}),
Qd=m(function(a,b,c){if(1>l.j(b,0))return{a:"[]"};a:do{b:do{if("[]"===c.a)return c;if("::"===c.c.a)switch(b){case 1:break b;case 2:return{a:"::",b:c.b,c:{a:"::",b:c.c.b,c:{a:"[]"}}};case 3:if("::"===c.c.c.a)return{a:"::",b:c.b,c:{a:"::",b:c.c.b,c:{a:"::",b:c.c.c.b,c:{a:"[]"}}}};break a;default:if("::"===c.c.c.a&&"::"===c.c.c.c.a){var f=c.c.c.b,h=c.c.b,e=c.b,g=c.c.c.c.b;c=c.c.c.c.c;return 0<l.j(a,1E3)?{a:"::",b:e,c:{a:"::",b:h,c:{a:"::",b:f,c:{a:"::",b:g,c:d(Lf,b-4,c)}}}}:{a:"::",b:e,c:{a:"::",b:h,
c:{a:"::",b:f,c:{a:"::",b:g,c:k(Qd,a+1,b-4,c)}}}}}break a}else if(1===b)break b;else break a}while(0);return{a:"::",b:c.b,c:{a:"[]"}}}while(0);return c}),rb=e(function(a,b){return k(Qd,0,a,b)}),Mf=m(function(a,b,c){for(;;){if(1>l.j(b,0))return a;--b;var d=c;a={a:"::",b:c,c:a};c=d}});e(function(a,b){return k(Mf,{a:"[]"},a,b)});var Nf=m(function(a,b,c){for(;;)if(1>l.j(a,b))c={a:"::",b:b,c:c},--b;else return c}),Of=e(function(a,b){return k(Nf,a,b,{a:"[]"})}),Ob=e(function(a,b){return k(lb,a,d(Of,0,ea(b)-
1),b)});e(function(a,b){return"Ok"===b.a?b.b:a});e(function(a,b){return"Ok"===b.a?a(b.b):x(b.b)});var pd=e(function(a,b){return"Ok"===b.a?K(a(b.b)):x(b.b)});m(function(a,b,c){return"Ok"===b.a?"Ok"===c.a?K(d(a,b.b,c.b)):x(c.b):x(b.b)});H(function(a,b,c,d){return"Ok"===b.a?"Ok"===c.a?"Ok"===d.a?K(k(a,b.b,c.b,d.b)):x(d.b):x(c.b):x(b.b)});da(function(a,b,c,d,h){return"Ok"===b.a?"Ok"===c.a?"Ok"===d.a?"Ok"===h.a?K(Q(a,b.b,c.b,d.b,h.b)):x(h.b):x(d.b):x(c.b):x(b.b)});Ea(function(a,b,c,d,h,e){return"Ok"===
b.a?"Ok"===c.a?"Ok"===d.a?"Ok"===h.a?"Ok"===e.a?K(y(a,b.b,c.b,d.b,h.b,e.b)):x(e.b):x(h.b):x(d.b):x(c.b):x(b.b)});var qd=e(function(a,b){return"Ok"===b.a?K(b.b):x(a(b.b))});e(function(a,b){return"Just"===b.a?K(b.b):x(a)});var Oa=function(){function a(a,c){for(var b="";0<a;)a&1&&(b+=c),a>>=1,c+=c;return b}return{Jd:function(a){return 0===a.length},bb:e(function(a,c){return a+c}),Vc:function(a){var b=a[0];return b?u(l.oa(l.m(b),a.slice(1))):w},append:e(function(a,c){return a+c}),concat:function(a){return A.Za(a).join("")},
length:function(a){return a.length},map:e(function(a,c){for(var b=c.split(""),d=b.length;d--;)b[d]=a(l.m(b[d]));return b.join("")}),filter:e(function(a,c){return c.split("").map(l.m).filter(a).join("")}),reverse:function(a){return a.split("").reverse().join("")},vb:m(function(a,c,f){for(var b=f.length,e=0;e<b;++e)c=d(a,l.m(f[e]),c);return c}),gb:m(function(a,c,f){for(var b=f.length;b--;)c=d(a,l.m(f[b]),c);return c}),split:e(function(a,c){return A.P(c.split(a))}),join:e(function(a,c){return A.Za(c).join(a)}),
repeat:e(a),slice:m(function(a,c,d){return d.slice(a,c)}),left:e(function(a,c){return 1>a?"":c.slice(0,a)}),right:e(function(a,c){return 1>a?"":c.slice(-a)}),fc:e(function(a,c){return 1>a?c:c.slice(a)}),qd:e(function(a,c){return 1>a?c:c.slice(0,-a)}),he:m(function(b,c,d){b=(b-d.length)/2;return a(Math.ceil(b),c)+d+a(b|0,c)}),ie:m(function(b,c,d){return a(b-d.length,c)+d}),je:m(function(b,c,d){return d+a(b-d.length,c)}),trim:function(a){return a.trim()},trimLeft:function(a){return a.replace(/^\s+/,
"")},trimRight:function(a){return a.replace(/\s+$/,"")},Ae:function(a){return A.P(a.trim().split(/\s+/g))},Sd:function(a){return A.P(a.split(/\r\n|\r|\n/g))},Tc:function(a){return a.toUpperCase()},Sc:function(a){return a.toLowerCase()},ed:e(function(a,c){for(var b=c.length;b--;)if(a(l.m(c[b])))return!0;return!1}),all:e(function(a,c){for(var b=c.length;b--;)if(!a(l.m(c[b])))return!1;return!0}),contains:e(function(a,c){return-1<c.indexOf(a)}),startsWith:e(function(a,c){return 0===c.indexOf(a)}),endsWith:e(function(a,
c){return c.length>=a.length&&c.lastIndexOf(a)===c.length-a.length}),Gd:e(function(a,c){var b=a.length;if(1>b)return A.O;for(var d=0,e=[];-1<(d=c.indexOf(a,d));)e.push(d),d+=b;return A.P(e)}),ve:function(a){var b=a.length;if(0===b)return x("could not convert string '"+a+"' to an Int");var d=0;if("-"===a[0]){if(1===b)return x("could not convert string '"+a+"' to an Int");d=1}for(;d<b;++d){var h=a[d];if("0">h||"9"<h)return x("could not convert string '"+a+"' to an Int")}return K(parseInt(a,10))},Rb:function(a){var b=
a.length;if(0===b)return x("could not convert string '"+a+"' to a Float");var d=0;if("-"===a[0]){if(1===b)return x("could not convert string '"+a+"' to a Float");d=1}for(var h=0;d<b;++d){var e=a[d];if(!("0"<=e&&"9">=e)){if("."===e&&(h+=1,1>=h))continue;return x("could not convert string '"+a+"' to a Float")}}return K(parseFloat(a))},Sb:function(a){return A.P(a.split("").map(l.m))},mc:function(a){return A.Za(a).join("")}}}(),tc=function(){return{yd:function(a){return l.m(String.fromCharCode(a))},Qc:function(a){return a.charCodeAt(0)},
Tc:function(a){return l.m(a.toUpperCase())},Sc:function(a){return l.m(a.toLowerCase())},xe:function(a){return l.m(a.toLocaleUpperCase())},we:function(a){return l.m(a.toLocaleLowerCase())}}}().Qc,cb=m(function(a,b,c){c=tc(c);return-1<l.j(c,tc(a))&&1>l.j(c,tc(b))}),Pf=d(cb,l.m("A"),l.m("Z")),Qf=d(cb,l.m("a"),l.m("z")),Rd=d(cb,l.m("0"),l.m("9")),Rf=d(cb,l.m("0"),l.m("7")),Hd=Oa.startsWith,Jd=Oa.fc,cd=Oa.join,Id=Oa.length,Sf=Oa.concat,Fd=Oa.Vc,Tf=Oa.bb;e(function(a,b){return{a:"_Tuple2",b:b.b,c:a(b.c)}});
e(function(a,b){return{a:"_Tuple2",b:a(b.b),c:b.c}});var Qa=function(){function a(){return function(){}}function b(a,b,f,e){function g(a){W.Mb(J,a)}var t={},r,S=W.Ta(function(b){var c=a.b;r=e(g,c);var d=a.c,h=f(c);n(t,d,h);b(W.$(c))}),J=h(S,function(a,c){return W.Ta(function(h){var e=d(b,a,c);c=e.b;r(c);var e=e.c,g=f(c);n(t,e,g);h(W.$(c))})});return(S=c(t,g))?{ports:S}:{}}function c(a,b){var c,d;for(d in U){var h=U[d];h.yb&&(c=c||{},c[d]="cmd"===h.tag?q(d):vc(d,b));a[d]=f(h,b)}return c}function f(a,
b){var c={tc:b,self:void 0},d=a.tag,f=a.Ib,e=a.de,g=h(a.N,function(a,b){if("self"===a.a)return k(e,c,a.b,b);var h=a.b;switch(d){case "cmd":return k(f,c,h.Ca,b);case "sub":return k(f,c,h.Ia,b);case "fx":return Q(f,c,h.Ca,h.Ia,b)}});return c.self=g}function h(a,b){function c(a){var h=W.Ic(function(c){return b(c,a)});return d(f,c,h)}var f=W.pb,h=d(f,c,a);return W.Hc(h)}function g(a){return function(b){return{type:"leaf",home:a,value:b}}}function Ad(a){return{type:"node",Zb:a}}function n(a,b,c){var d=
{};p(!0,b,d,null);p(!1,c,d,null);for(var f in a)W.Mb(a[f],{a:"fx",b:f in d?d[f]:{Ca:A.O,Ia:A.O}})}function p(a,b,c,d){switch(b.type){case "leaf":var f=b.home;d=J(a,f,d,b.value);b=(b=c[f])||{Ca:A.O,Ia:A.O};a?b.Ca=A.Aa(d,b.Ca):b.Ia=A.Aa(d,b.Ia);c[f]=b;break;case "node":for(f=b.Zb;"[]"!==f.a;)p(a,f.b,c,d),f=f.c;break;case "map":p(a,b.Uc,c,{u:b.u,J:d})}}function J(a,b,c,f){return d(a?U[b].$b:U[b].Pc,function(a){for(var b=c;b;)a=b.u(a),b=b.J;return a},f)}function S(a){if(a in U)throw Error("There can only be one port named `"+
a+"`, but your program has multiple.");}function q(a){var b=[],c=U[a].cb,d=W.$(null);U[a].N=d;U[a].Ib=m(function(a,f){for(;"[]"!==f.a;){for(var h=b,e=c(f.b),g=0;g<h.length;g++)h[g](e);f=f.c}return d});return{subscribe:function(a){b.push(a)},unsubscribe:function(a){b=b.slice();a=b.indexOf(a);0<=a&&b.splice(a,1)}}}function vc(a,b){function c(a){g.push(a)}function f(a,b){for(var d=h(0,b),r=0;r<g.length;r++)e(g[r]);g=null;c=e;f=h;return d}function h(a,b){r=b;return J}function e(c){c=d(Vf,S,c);if("Err"===
c.a)throw Error("Trying to send an unexpected type of value through port `"+a+"`:\n"+c.b);c=c.b;for(var f=r;"[]"!==f.a;)b(f.b(c)),f=f.c}var g=[],r=A.O,S=U[a].cb,J=W.$(null);U[a].N=J;U[a].Ib=m(function(a,b,c){return f(a,b,c)});return{send:function(a){c(a)}}}var U={},v=e(function(a,b){return b}),u=e(function(a,b){return function(c){return a(b(c))}});return{oe:e(function(a,b){return W.Ta(function(c){a.tc(b);c(W.$(l.ba))})}),pe:e(function(a,b){return d(W.send,a.self,{a:"self",b:b})}),rd:U,ge:function(a,
b){S(a);U[a]={tag:"cmd",$b:v,cb:b,yb:!0};return g(a)},Ed:function(a,b){S(a);U[a]={tag:"sub",Pc:u,cb:b,yb:!0};return g(a)},Dd:function(){var a=Ad(A.O),b=l.oa(l.ba,a);return ud({N:b,view:function(){return main},update:e(function(){return b}),Z:function(){return a}})},Lb:function(c){return function(){return function(d,f){d.worker=function(d){if("undefined"!==typeof d)throw Error("The `"+f+"` module does not need flags.\nCall "+f+".worker() with no arguments and you should be all set!");return b(c.N,
c.update,c.Z,a)}}}},Fc:function(c){return function(f){return function(h,e){h.worker=function(h){if("undefined"===typeof f)throw Error("Are you trying to sneak a Never value into Elm? Trickster!\nIt looks like "+e+".main is defined with `programWithFlags` but has type `Program Never`.\nUse `program` instead if you do not want flags.");h=d(Y.Wa,f,h);if("Err"===h.a)throw Error(e+".worker(...) was called with an unexpected argument.\nI tried to convert it to an Elm value, but ran into this problem:\n\n"+
h.b);return b(c.N(h.b),c.update,c.Z,a)}}}},ta:b,Qd:g,sb:Ad,map:e(function(a,b){return{type:"map",u:a,Uc:b}})}}(),W=function(){function a(a){return{a:"_Task_succeed",value:a}}function b(a){return{a:"_Task_nativeBinding",G:a,cancel:null}}function c(a){a={a:"_Process",id:l.nc(),root:a,stack:null,Bb:[]};g(a);return a}function d(a,b){a.Bb.push(b);g(a)}function h(a,b){for(;1E4>a;){var c=b.root.a;if("_Task_succeed"===c){for(;b.stack&&"_Task_onError"===b.stack.a;)b.stack=b.stack.J;if(null===b.stack)break;
b.root=b.stack.G(b.root.value);b.stack=b.stack.J;++a}else if("_Task_fail"===c){for(;b.stack&&"_Task_andThen"===b.stack.a;)b.stack=b.stack.J;if(null===b.stack)break;b.root=b.stack.G(b.root.value);b.stack=b.stack.J;++a}else if("_Task_andThen"===c)b.stack={a:"_Task_andThen",G:b.root.G,J:b.stack},b.root=b.root.kb,++a;else if("_Task_onError"===c)b.stack={a:"_Task_onError",G:b.root.G,J:b.stack},b.root=b.root.kb,++a;else{if("_Task_nativeBinding"===c){b.root.cancel=b.root.G(function(a){b.root=a;g(b)});break}if("_Task_receive"===
c){c=b.Bb;if(0===c.length)break;b.root=b.root.G(c.shift());++a}else throw Error(c);}}if(1E4>a)return a+1;g(b);return a}function g(a){n.push(a);m||(setTimeout(k,0),m=!0)}function k(){for(var a=0,b;1E4>a&&(b=n.shift());)b.root&&(a=h(a,b));b?setTimeout(k,0):m=!1}var m=!1,n=[];return{$:a,kc:function(a){return{a:"_Task_fail",value:a}},Ta:b,pb:e(function(a,b){return{a:"_Task_andThen",G:a,kb:b}}),ce:e(function(a,b){return{a:"_Task_onError",G:a,kb:b}}),Ic:function(a){return{a:"_Task_receive",G:a}},te:function(d){return b(function(b){var f=
c(d);b(a(f))})},Ld:function(c){return b(function(b){var d=c.root;"_Task_nativeBinding"===d.a&&d.cancel&&d.cancel();c.root=null;b(a(l.ba))})},re:function(c){return b(function(b){var d=setTimeout(function(){b(a(l.ba))},c);return function(){clearTimeout(d)}})},send:e(function(c,f){return b(function(b){d(c,f);b(a(l.ba))})}),Hc:c,Mb:d}}(),Qb=Qa.sb,Rb=Qb({a:"[]"}),ka=ka||{};ka["!"]=e(function(a,b){return{a:"_Tuple2",b:a,c:Qb(b)}});var Td=Qa.map,Wf=Qa.sb,Ud=Wf({a:"[]"});e(function(a,b){return Na(function(){return a(O(b))})});
m(function(a,b,c){return Na(function(){return d(a,O(b),O(c))})});H(function(a,b,c,d){return Na(function(){return k(a,O(b),O(c),O(d))})});da(function(a,b,c,d,h){return Na(function(){return Q(a,O(b),O(c),O(d),O(h))})});Ea(function(a,b,c,d,h,e){return Na(function(){return y(a,O(b),O(c),O(d),O(h),O(e))})});e(function(a,b){return Na(function(){return d(O,a,O(b))})});e(function(a,b){return Na(function(){return O(a(O(b)))})});var Vd=function(){return{Jc:function(a){return new RegExp(a,"g")},fd:function(a){return new RegExp(a.source,
"gi")},escape:function(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},contains:e(function(a,b){return null!==b.match(a)}),find:m(function(a,b,c){a="All"===a.a?Infinity:a.b;for(var d=[],h=0,e=b.lastIndex,g=-1,k;h++<a&&(k=b.exec(c))&&g!==b.lastIndex;){for(var g=k.length-1,l=Array(g);0<g;){var J=k[g];l[--g]=void 0===J?w:u(J)}d.push({match:k[0],Nb:A.P(l),index:k.index,Hb:h});g=b.lastIndex}b.lastIndex=e;return A.P(d)}),replace:H(function(a,b,c,d){a="All"===a.a?Infinity:a.b;var f=0;return d.replace(b,
function(b){if(f++>=a)return b;for(var d=arguments.length-3,h=Array(d);0<d;){var e=arguments[d];h[--d]=void 0===e?w:u(e)}return c({match:b,Nb:A.P(h),index:arguments[arguments.length-2],Hb:f})})}),split:m(function(a,b,c){a="All"===a.a?Infinity:a.b;if(Infinity===a)return A.P(c.split(b));for(var d,h=[],e=b.lastIndex,g=b.lastIndex;a--&&(d=b.exec(c));)h.push(c.slice(e,d.index)),e=b.lastIndex;h.push(c.slice(e));b.lastIndex=g;return A.P(h)})}}(),pf=Vd.find,qf=Vd.Jc;H(function(a,b,c,d){return{match:a,Nb:b,
index:c,Hb:d}});var Xf=m(function(a,b,c){return{data:a,input:b,position:c}}),rf=m(function(a,b,c){a=k(oa,a,b,k(Xf,c,c,0));return"Ok"===a.h.a?K({a:"_Tuple3",b:a.b,c:a.c,h:a.h.b}):x({a:"_Tuple3",b:a.b,c:a.c,h:a.h.b})});m(function(a,b,c){return{source:a,Ga:b,jd:c}});var Wd=m(function(a,b,c){return ca(e(function(d,h){var f=k(oa,c,d,h);return"Ok"===f.h.a?{a:"_Tuple3",b:f.b,c:f.c,h:K(a(f.h.b))}:{a:"_Tuple3",b:f.b,c:f.c,h:x(b(f.h.b))}}))}),Ra=e(function(a,b){return k(Wd,a,fa,b)}),q=q||{};q["<$>"]=Ra;q=q||
{};q["<$"]=function(a){return Ra(ja(a))};q=q||{};q["$>"]=qa(e(function(a,b){return d(q["<$"],a,b)}));var Yf=Wd(fa),q=q||{};q["<?>"]=e(function(a,b){return d(Yf,ja({a:"::",b:b,c:{a:"[]"}}),a)});var ya=e(function(a,b){return ca(e(function(c,d){var f=k(oa,b,c,d);return"Ok"===f.h.a?k(oa,a(f.h.b),f.b,f.c):{a:"_Tuple3",b:f.b,c:f.c,h:x(f.h.b)}}))}),q=q||{};q[">>="]=qa(ya);var wc=e(function(a,b){return d(q[">>="],b,d(qa,Ra,a))}),q=q||{};q["<*>"]=qa(wc);q=q||{};q["<*"]=e(function(a,b){return d(wc,b,d(Ra,ja,
a))});q=q||{};q["*>"]=e(function(a,b){return d(wc,b,d(Ra,qa(ja),a))});var xc=m(function(a,b,c){return d(q["<*"],d(q["*>"],a,c),b)}),Zf=ca(e(function(a,b){return{a:"_Tuple3",b:a,c:b,h:x({a:"[]"})}})),$f=e(function(a,b){var c=e(function(a,h){return 1>l.j(a,0)?Ma(pa(h)):d(ya,function(b){return d(c,a-1,{a:"::",b:b,c:h})},b)});return d(c,a,{a:"[]"})});d(xc,D("("),D(")"));d(xc,D("{"),D("}"));d(xc,D("["),D("]"));d(q["<?>"],Gd("[ \t\r\n]*"),"whitespace");var od=ca(e(function(a,b){return l.o(b.input,"")?{a:"_Tuple3",
b:a,c:b,h:K({a:"_Tuple0"})}:{a:"_Tuple3",b:a,c:b,h:x({a:"::",b:"expected end of input",c:{a:"[]"}})}})),Fa=e(function(a,b){return ca(e(function(c,f){var h=k(oa,a,c,f);if("Ok"===h.h.a)return h;var e=k(oa,b,c,f);return"Ok"===e.h.a?e:{a:"_Tuple3",b:c,c:f,h:x(d(p["++"],h.h.b,e.h.b))}}))}),q=q||{};q["<|>"]=Fa;e(function(a,b){return d(q["<|>"],b,Ma(a))});e(function(a,b){function c(f){return d(q["<|>"],d(ya,function(a){return d(ya,function(b){return c(d(a,f,b))},b)},a),Ma(f))}return d(ya,c,b)});e(function(a,
b){function c(f){return d(q["<|>"],d(ya,function(a){return d(ya,function(b){return Ma(d(a,f,b))},d(ya,c,b))},a),Ma(f))}return d(ya,c,b)});var Xd=e(function(a,b){return d(q["<*>"],d(q["<$>"],e(function(a,b){return{a:"::",b:a,c:b}}),b),mc(d(q["*>"],a,b)))});e(function(a,b){return d(q["<|>"],d(Xd,a,b),Ma({a:"[]"}))});var ag=e(function(a,b){return d(q["<*"],d(Xd,a,b),of(a))}),bg=e(function(a,b){return d(q["<|>"],d(ag,a,b),Ma({a:"[]"}))});e(function(a,b){var c=m(function(c,d,e){for(;;){var f=k(oa,b,d,
e);if("Ok"===f.h.a)return{a:"_Tuple3",b:f.b,c:f.c,h:K(pa(c))};d=k(oa,a,d,e);if("_Tuple3"===d.a&&"Ok"===d.h.a)e=d.b,f=d.c,c={a:"::",b:d.h.b,c:c},d=e,e=f;else return{a:"_Tuple3",b:f.b,c:f.c,h:x(f.h.b)}}});return ca(c({a:"[]"}))});var cg=d(q["<$"],l.m("\n"),d(q["<?>"],Gd("\r\n"),"expected crlf"));d(q["<?>"],xa(ja(!0)),"expected any character");d(q["<?>"],xa(e(function(a,b){return l.o(a,b)})(l.m(" "))),"expected space");d(q["<?>"],xa(e(function(a,b){return l.o(a,b)})(l.m("\t"))),"expected tab");var kb=
d(q["<?>"],xa(e(function(a,b){return l.o(a,b)})(l.m("\n"))),"expected newline");d(q["<|>"],kb,cg);d(q["<?>"],xa(Qf),"expected a lowercase character");d(q["<?>"],xa(Pf),"expected an uppercase character");d(q["<?>"],xa(Rd),"expected a digit");d(q["<?>"],xa(Rf),"expected an octal digit");d(q["<?>"],xa(function(a){return Rd(a)||k(cb,l.m("a"),l.m("f"),a)||k(cb,l.m("A"),l.m("F"),a)}),"expected a hexadecimal digit");e(function(a,b){return function(c){return b(a(c))}});ja(Rb);e(function(a,b){return Qb(d(I,
function(a){return a(b)},a))});m(function(a,b,c){return Qb({a:"::",b:a(c),c:{a:"::",b:b(c),c:{a:"[]"}}})});(function(){var a=e(function(a,c){return d(ka["!"],{a:"::",b:a.b,c:c.b},{a:"::",b:a.c,c:{a:"::",b:c.c,c:{a:"[]"}}})});return d(N,a,{a:"_Tuple2",b:{a:"[]"},c:Rb})})();e(function(a,b){return{a:"_Tuple2",b:b.b,c:d(Td,a,b.c)}});e(function(a,b){var c=b.b;return d(ka["!"],c,{a:"::",b:b.c,c:{a:"::",b:a(c),c:{a:"[]"}}})});e(function(a,b){return d(ka["!"],b.b,{a:"::",b:a,c:{a:"::",b:b.c,c:{a:"[]"}}})});
Ld(fa);var yc=e(function(a,b){var c=a(b.b);return d(ka["!"],c.b,{a:"::",b:b.c,c:{a:"::",b:c.c,c:{a:"[]"}}})}),db=db||{};db["<<<"]=m(function(a,b,c){return d(yc,a,b(c))});db=db||{};db[">>>"]=qa(e(function(a,b){return d(db["<<<"],a,b)}));yc(fa);var Sa=d(qa,e(function(a,b){return{a:"_Tuple2",b:a,c:b}}),Rb);Ea(function(a,b,c,f,e,g){return d(ka["!"],y(a,b.b,c.b,f.b,e.b,g.b),{a:"::",b:b.c,c:{a:"::",b:c.c,c:{a:"::",b:f.c,c:{a:"::",b:e.c,c:{a:"::",b:g.c,c:{a:"[]"}}}}}})});da(function(a,b,c,f,e){return d(ka["!"],
Q(a,b.b,c.b,f.b,e.b),{a:"::",b:b.c,c:{a:"::",b:c.c,c:{a:"::",b:f.c,c:{a:"::",b:e.c,c:{a:"[]"}}}}})});H(function(a,b,c,f){return d(ka["!"],k(a,b.b,c.b,f.b),{a:"::",b:b.c,c:{a:"::",b:c.c,c:{a:"::",b:f.c,c:{a:"[]"}}}})});m(function(a,b,c){return d(ka["!"],d(a,b.b,c.b),{a:"::",b:b.c,c:{a:"::",b:c.c,c:{a:"[]"}}})});m(function(a,b,c){return{a:"_Tuple2",b:b(c.b),c:d(Td,a,c.c)}});var dg=e(function(a,b){return d(ka["!"],b.b(a.b),{a:"::",b:b.c,c:{a:"::",b:a.c,c:{a:"[]"}}})});Ld(qa(dg));e(function(a,b){return{a:"_Tuple2",
b:a(b.b),c:b.c}});d(aa,e(function(a,b){return function(c){return b(a(c))}}),fa);d(N,e(function(a,b){return function(c){return a(b(c))}}),fa);var ia=function(){function a(b,c,d){d=V(d);if(0===d.height)d.table[b]=c;else{var f=Pa(b,d);0<f&&(b-=d.i[f-1]);d.table[f]=a(b,c,d.table[f])}return d}function b(a,c,d,f){if(0===c){for(var e=Array((f-d)%33),h=0;h<e.length;h++)e[h]=a(d+h);return{a:"_Array",height:0,table:e}}for(var g=Math.pow(32,c),e=Array(Math.ceil((f-d)/g)),zc=Array(e.length),h=0;h<e.length;h++)e[h]=
b(a,c-1,d+h*g,Math.min(d+(h+1)*g,f)),zc[h]=z(e[h])+(0<h?zc[h-1]:0);return{a:"_Array",height:c,table:e,i:zc}}function c(a,b){var d=a.height;b.length===d&&b.push({a:"_Array",height:d+1,table:[],i:[]});b[d].table.push(a);var f=z(a);0<b[d].i.length&&(f+=b[d].i[b[d].i.length-1]);b[d].i.push(f);32===b[d].table.length&&(c(b[d],b),b[d]={a:"_Array",height:d+1,table:[],i:[]})}function f(a,b){if(0===b.height){if(32>b.table.length){var c={a:"_Array",height:0,table:b.table.slice()};c.table.push(a);return c}return null}var d=
f(a,b.table[b.table.length-1]);return null!==d?(c=V(b),c.table[c.table.length-1]=d,c.i[c.i.length-1]++,c):32>b.table.length?(d=R(a,b.height-1),c=V(b),c.table.push(d),c.i.push(c.i[c.i.length-1]+z(d)),c):null}function h(a,b){for(var c=b.table.length-1;0<=c;c--)a=0===b.height?A.Aa(b.table[c],a):h(a,b.table[c]);return a}function g(a,b){var c={a:"_Array",height:b.height,table:Array(b.table.length)};0<b.height&&(c.i=b.i);for(var d=0;d<b.table.length;d++)c.table[d]=0===b.height?a(b.table[d]):g(a,b.table[d]);
return c}function k(a,b,c){var f={a:"_Array",height:b.height,table:Array(b.table.length)};0<b.height&&(f.i=b.i);for(var e=0;e<b.table.length;e++)f.table[e]=0===b.height?d(a,c+e,b.table[e]):k(a,b.table[e],0==e?c:c+b.i[e-1]);return f}function l(a,b,c){if(0===c.height)for(var f=0;f<c.table.length;f++)b=d(a,c.table[f],b);else for(f=0;f<c.table.length;f++)b=l(a,b,c.table[f]);return b}function n(a,b,c){if(0===c.height)for(var f=c.table.length;f--;)b=d(a,c.table[f],b);else for(f=c.table.length;f--;)b=n(a,
b,c.table[f]);return b}function J(a,b){if(a===z(b))return b;if(0===b.height){var c={a:"_Array",height:0};c.table=b.table.slice(0,a);return c}var d=Pa(a,b),f=J(a-(0<d?b.i[d-1]:0),b.table[d]);if(0===d)return f;c={a:"_Array",height:b.height,table:b.table.slice(0,d),i:b.i.slice(0,d)};0<f.table.length&&(c.table[d]=f,c.i[d]=z(f)+(0<d?c.i[d-1]:0));return c}function S(a,b){if(0===a)return b;if(0===b.height){var c={a:"_Array",height:0};c.table=b.table.slice(a,b.table.length+1);return c}var c=Pa(a,b),d=S(a-
(0<c?b.i[c-1]:0),b.table[c]);if(c===b.table.length-1)return d;c={a:"_Array",height:b.height,table:b.table.slice(c,b.table.length+1),i:Array(b.table.length-c)};c.table[0]=d;for(var f=d=0;f<c.table.length;f++)d+=z(c.table[f]),c.i[f]=d;return c}function p(a,b){if(0===a.height&&0===b.height)return[a,b];if(1!==a.height||1!==b.height)if(a.height===b.height){a=V(a);b=V(b);var c=p(a.table[a.table.length-1],b.table[0]);q(a,c[1]);U(b,c[0])}else if(a.height>b.height)a=V(a),c=p(a.table[a.table.length-1],b),q(a,
c[0]),b=x(c[1],c[1].height+1);else{b=V(b);var c=p(a,b.table[0]),d=0===c[0].table.length?0:1,f=0===d?1:0;U(b,c[d]);a=x(c[f],c[f].height+1)}if(0===a.table.length||0===b.table.length)return[a,b];c=v(a,b);return 2>=c?[a,b]:ga(a,b,c)}function q(a,b){var c=a.table.length-1;a.table[c]=b;a.i[c]=z(b);a.i[c]+=0<c?a.i[c-1]:0}function U(a,b){if(0<b.table.length){a.table[0]=b;a.i[0]=z(b);for(var c=z(a.table[0]),d=1;d<a.i.length;d++)c+=z(a.table[d]),a.i[d]=c}else{a.table.shift();for(d=1;d<a.i.length;d++)a.i[d]-=
a.i[0];a.i.shift()}}function v(a,b){for(var c=0,d=0;d<a.table.length;d++)c+=a.table[d].table.length;for(d=0;d<b.table.length;d++)c+=b.table[d].table.length;return a.table.length+b.table.length-(Math.floor((c-1)/32)+1)}function u(a,b,c){return c<a.length?a[c]:b[c-a.length]}function w(a,b,c,d){c<a.length?a[c]=d:b[c-a.length]=d}function y(a,b,c,d){w(a.table,b.table,c,d);w(a.i,b.i,c,(0===c||c===a.i.length?0:u(a.i,a.i,c-1))+z(d))}function t(a,b){0>b&&(b=0);var c={a:"_Array",height:a,table:Array(b)};0<
a&&(c.i=Array(b));return c}function ga(a,b,c){for(var d=t(a.height,Math.min(32,a.table.length+b.table.length-c)),f=t(a.height,d.table.length-(a.table.length+b.table.length-c)),e=0;0===u(a.table,b.table,e).table.length%32;)w(d.table,f.table,e,u(a.table,b.table,e)),w(d.i,f.i,e,u(a.i,b.i,e)),e++;for(var h=e,g=new t(a.height-1,0),F=0;e-h-(0<g.table.length?1:0)<c;){var Ta=u(a.table,b.table,e),r=Math.min(32-g.table.length,Ta.table.length);g.table=g.table.concat(Ta.table.slice(F,r));if(0<g.height)for(var eb=
g.i.length,Ga=eb;Ga<eb+r-F;Ga++)g.i[Ga]=z(g.table[Ga]),g.i[Ga]+=0<Ga?g.i[Ga-1]:0;F+=r;Ta.table.length<=r&&(e++,F=0);32===g.table.length&&(y(d,f,h,g),g=t(a.height-1,0),h++)}0<g.table.length&&(y(d,f,h,g),h++);for(;e<a.table.length+b.table.length;)y(d,f,h,u(a.table,b.table,e)),e++,h++;return[d,f]}function V(a){var b={a:"_Array",height:a.height,table:a.table.slice()};0<a.height&&(b.i=a.i.slice());return b}function z(a){return 0===a.height?a.table.length:a.i[a.i.length-1]}function Pa(a,b){for(var c=a>>
5*b.height;b.i[c]<=a;)c++;return c}function R(a,b){return 0===b?{a:"_Array",height:0,table:[a]}:{a:"_Array",height:b,table:[R(a,b-1)],i:[1]}}function x(a,b){return b===a.height?a:{a:"_Array",height:b,table:[x(a,b-1)],i:[z(a)]}}function Pb(a,b){return{a:"_Array",height:a.height+1,table:[a,b],i:[z(a),z(a)+z(b)]}}function T(a,b,c){for(var d=0;d<c.table.length;d++)0===c.height?a[b+d]=c.table[d]:T(a,b+(0===d?0:c.i[d-1]),c.table[d])}function D(a,b,c,d){if(0===b)return{a:"_Array",height:0,table:a.slice(c,
d)};for(var f=Math.pow(32,b),e=Array(Math.ceil((d-c)/f)),h=Array(e.length),g=0;g<e.length;g++)e[g]=D(a,b-1,c+g*f,Math.min(c+(g+1)*f,d)),h[g]=z(e[g])+(0<g?h[g-1]:0);return{a:"_Array",height:b,table:e,i:h}}var C={a:"_Array",height:0,table:[]};return{empty:C,mc:function(a){if("[]"===a.a)return C;for(var b=Array(32),d=[],f=0;"[]"!==a.a;)b[f]=a.b,a=a.c,f++,32===f&&(b={a:"_Array",height:0,table:b},c(b,d),b=Array(32),f=0);0<f&&(b={a:"_Array",height:0,table:b.splice(0,f)},c(b,d));for(a=0;a<d.length-1;a++)0<
d[a].table.length&&c(d[a],d);d=d[d.length-1];return 0<d.height&&1===d.table.length?d.table[0]:d},Sb:function(a){return h(A.O,a)},ta:e(function(a,c){return 0>=a?C:b(c,Math.floor(Math.log(a)/Math.log(32)),0,a)}),append:e(function(a,b){if(0===a.table.length)return b;if(0===b.table.length)return a;var c=p(a,b);if(32>=c[0].table.length+c[1].table.length){if(0===c[0].table.length)return c[1];if(0===c[1].table.length)return c[0];c[0].table=c[0].table.concat(c[1].table);if(0<c[0].height){for(var d=z(c[0]),
f=0;f<c[1].i.length;f++)c[1].i[f]+=d;c[0].i=c[0].i.concat(c[1].i)}return c[0]}0<c[0].height&&(d=v(a,b),2<d&&(c=ga(c[0],c[1],d)));return Pb(c[0],c[1])}),push:e(function(a,b){var c=f(a,b);return null!==c?c:Pb(b,R(a,b.height))}),slice:m(function(a,b,c){0>a&&(a+=z(c));0>b&&(b+=z(c));return S(a,J(b,c))}),get:e(function(a,b){if(0>a||a>=z(b))throw Error("Index "+a+" is out of range. Check the length of your array first or use getMaybe or getWithDefault.");for(var c=a,d=b,f=d.height;0<f;f--){for(var e=c>>
5*f;d.i[e]<=c;)e++;0<e&&(c-=d.i[e-1]);d=d.table[e]}return d.table[c]}),set:m(function(b,c,d){return 0>b||z(d)<=b?d:a(b,c,d)}),map:e(g),Fd:e(function(a,b){return k(a,b,0)}),vb:m(l),gb:m(n),length:z,lb:function(a){var b=Array(z(a));T(b,0,a);return b},lc:function(a){return 0===a.length?C:D(a,Math.floor(Math.log(a.length)/Math.log(32)),0,a.length)}}}();e(function(a,b){return 1>l.j(0,a)&&0>l.j(a,ia.length(b))?u(d(ia.get,a,b)):w});e(function(a,b){var c=e(function(b,c){return a(b)?d(ia.push,b,c):c});return k(ia.vb,
c,ia.empty,b)});var zf=ia.Sb,eg=ia.ta;e(function(a,b){return d(eg,a,ja(b))});var Kb=m(function(a,b,c){for(;;){var d=c;if("RBEmpty_elm_builtin"===d.a)return b;c=a;b=k(a,d.c,d.h,k(Kb,a,b,d.f));d=d.g;a=c;c=d}}),za=m(function(a,b,c){for(;;){var d=c;if("RBEmpty_elm_builtin"===d.a)return b;c=a;b=k(a,d.c,d.h,k(za,a,b,d.g));d=d.f;a=c;c=d}});Ea(function(a,b,c,d,h,g){var f=m(function(d,f,e){for(;;){var h=e;e=h.c;var g=h.b,r=g;if("[]"===r.a)return{a:"_Tuple2",b:g,c:k(c,d,f,e)};var h=r.c,J=r.b.c,r=r.b.b;if(0>
l.j(r,d))e={a:"_Tuple2",b:h,c:k(a,r,J,e)};else return 0<l.j(r,d)?{a:"_Tuple2",b:g,c:k(c,d,f,e)}:{a:"_Tuple2",b:h,c:Q(b,r,J,f,e)}}});h=k(za,f,{a:"_Tuple2",b:Jb(d),c:g},h);d=h.b;h=h.c;return k(aa,e(function(b,c){return k(a,b.b,b.c,c)}),h,d)});var Yd=H(function(a,b,c,d){return ab.qa(Sf({a:"::",b:"Internal red-black tree invariant violated, expected ",c:{a:"::",b:a,c:{a:"::",b:" and got ",c:{a:"::",b:C(b),c:{a:"::",b:"/",c:{a:"::",b:c,c:{a:"::",b:"/",c:{a:"::",b:d,c:{a:"::",b:"\nPlease report this bug to <https://github.com/elm-lang/core/issues>",
c:{a:"[]"}}}}}}}}}}))}),fg=e(function(a,b){for(;;){var c=b;if("RBEmpty_elm_builtin"===c.a)return a;var f=d(fg,a+1,c.f),c=c.g;a=f;b=c}}),Gb=e(function(a,b){a:for(;;){var c=b;if("RBEmpty_elm_builtin"===c.a)return w;switch(d(rc,a,c.c).a){case "LT":b=c.g;continue a;case "EQ":return u(c.h);default:b=c.f}}}),Zd=e(function(a,b){return"Just"===d(Gb,a,b).a?!0:!1}),gg=m(function(a,b,c){for(;;){if("RBEmpty_elm_builtin"===c.a)return{a:"_Tuple2",b:a,c:b};b=c.h;var d=c.f;a=c.c;c=d}}),mf={a:"NBlack"},Dd={a:"BBlack"},
X={a:"Black"},Ib={a:"Red"},hg={a:"LBBlack"},qb={a:"LBlack"},ra=bb(qb),M=da(function(a,b,c,d,e){return{a:"RBNode_elm_builtin",b:a,c:b,h:c,g:d,f:e}}),pb=da(function(a,b,c,d,e){a=y(M,a,b,c,d,e);"RBNode_elm_builtin"===a.a?(b=a.b,b=l.o(b,X)||l.o(b,Dd)):b=!0;return b?jf(a):a}),Tb=da(function(a,b,c,d,e){return Ed(d)||Ed(e)?y(pb,nf(a),b,c,Cd(d),Cd(e)):y(M,a,b,c,d,e)}),ae=da(function(a,b,c,d,e){return"RBEmpty_elm_builtin"===e.a?k($d,a,d,e):y(Tb,a,b,c,d,y(ae,e.b,e.c,e.h,e.g,e.f))}),$d=m(function(a,b,c){if("RBEmpty_elm_builtin"===
b.a)if("RBEmpty_elm_builtin"===c.a)switch(a.a){case "Red":return bb(qb);case "Black":return bb(hg);default:return ab.qa("cannot have bblack or nblack nodes at this point")}else{var d=c.b;b=b.b;return"Black"===a.a&&"LBlack"===b.a&&"Red"===d.a?y(M,X,c.c,c.h,c.g,c.f):Q(Yd,"Black/LBlack/Red",a,C(b),C(d))}else{if("RBEmpty_elm_builtin"===c.a)return c=c.b,d=b.b,"Black"===a.a&&"Red"===d.a&&"LBlack"===c.a?y(M,X,b.c,b.h,b.g,b.f):Q(Yd,"Black/Red/LBlack",a,C(d),C(c));var d=b.h,e=b.f,g=b.c;b=y(ae,b.b,g,d,b.g,
e);d=k(gg,g,d,e);return y(Tb,a,d.b,d.c,b,c)}}),be=e(function(a,b){if("RBEmpty_elm_builtin"===b.a)return bb(qb);var c=b.c;return y(M,b.b,c,d(a,c,b.h),d(be,a,b.g),d(be,a,b.f))}),Ub={a:"Same"},Ac={a:"Remove"},Bc={a:"Insert"},ce=m(function(a,b,c){function f(c){if("RBEmpty_elm_builtin"===c.a){var e=b(w);return"Nothing"===e.a?{a:"_Tuple2",b:Ub,c:ra}:{a:"_Tuple2",b:Bc,c:y(M,Ib,a,e.b,ra,ra)}}var h=c.h,g=c.f,r=c.g,e=c.c;c=c.b;switch(d(rc,a,e).a){case "EQ":return h=b(u(h)),"Nothing"===h.a?{a:"_Tuple2",b:Ac,
c:k($d,c,r,g)}:{a:"_Tuple2",b:Ub,c:y(M,c,e,h.b,r,g)};case "LT":var r=f(r),S=r.b,r=r.c;switch(S.a){case "Same":return{a:"_Tuple2",b:Ub,c:y(M,c,e,h,r,g)};case "Insert":return{a:"_Tuple2",b:Bc,c:y(pb,c,e,h,r,g)};default:return{a:"_Tuple2",b:Ac,c:y(Tb,c,e,h,r,g)}}default:switch(g=f(g),S=g.b,g=g.c,S.a){case "Same":return{a:"_Tuple2",b:Ub,c:y(M,c,e,h,r,g)};case "Insert":return{a:"_Tuple2",b:Bc,c:y(pb,c,e,h,r,g)};default:return{a:"_Tuple2",b:Ac,c:y(Tb,c,e,h,r,g)}}}}c=f(c);var e=c.c;switch(c.b.a){case "Same":return e;
case "Insert":return lf(e);default:return"RBEmpty_elm_builtin"===e.a?bb(qb):y(M,X,e.c,e.h,e.g,e.f)}}),wa=m(function(a,b,c){return k(ce,a,ja(u(b)),c)});e(function(a,b){return k(wa,a,b,ra)});var ig=e(function(a,b){return k(za,wa,b,a)}),de=e(function(a,b){var c=m(function(b,c,e){return d(a,b,c)?k(wa,b,c,e):e});return k(za,c,ra,b)}),jg=e(function(a,b){return d(de,e(function(a){return d(Zd,a,b)}),a)}),kg=e(function(a,b){var c=m(function(b,c,e){var f=e.c;e=e.b;return d(a,b,c)?{a:"_Tuple2",b:k(wa,b,c,e),
c:f}:{a:"_Tuple2",b:e,c:k(wa,b,c,f)}});return k(za,c,{a:"_Tuple2",b:ra,c:ra},b)}),ee=e(function(a,b){return k(ce,a,ja(w),b)}),lg=e(function(a,b){return k(za,m(function(a,b,e){return d(ee,a,e)}),a,b)});e(function(a,b){return function(c){return a.M(b(a.get(c)))}});var mg=e(function(a,b){return{get:a,M:b}});e(function(a,b){return d(mg,function(c){return b.get(a.get(c))},function(c){return a.M(b.M(c))})});m(function(a,b,c){return function(f){var e=f.b,g=b(a.get(e));return{a:"_Tuple2",b:d(a.set,g.b,e),
c:d(c,f.c,g.c)}}});H(function(a,b,c,f){return function(e){var h=e.h,g=e.c;e=e.b;var k=f({a:"_Tuple3",b:a.get(e),c:b.get(g),h:c.get(h)});return{a:"_Tuple3",b:d(a.set,k.b,e),c:d(b.set,k.c,g),h:d(c.set,k.h,h)}}});m(function(a,b,c){return function(f){var e=f.c;f=f.b;var g=c({a:"_Tuple2",b:a.get(f),c:b.get(e)});return{a:"_Tuple2",b:d(a.set,g.b,f),c:d(b.set,g.c,e)}}});var Cc=e(function(a,b){return function(c){return d(a.set,b(a.get(c)),c)}}),Aa=e(function(a,b){return{get:a,set:b}}),fe=e(function(a,b){var c=
e(function(c,e){return d(a.set,d(b.set,c,a.get(e)),e)});return d(Aa,function(c){return b.get(a.get(c))},c)});e(function(a,b){var c=e(function(c,e){return{a:"_Tuple2",b:d(a.set,c.b,e.b),c:d(b.set,c.c,e.c)}});return d(Aa,function(c){return{a:"_Tuple2",b:a.get(c.b),c:b.get(c.c)}},c)});e(function(a,b){var c=e(function(c,e){return d(b.set,c.c,d(a.set,c.b,e))});return d(Aa,function(c){return{a:"_Tuple2",b:a.get(c),c:b.get(c)}},c)});m(function(a,b,c){var f=e(function(f,e){return d(c.set,f.h,d(b.set,f.c,
d(a.set,f.b,e)))});return d(Aa,function(d){return{a:"_Tuple3",b:a.get(d),c:b.get(d),h:c.get(d)}},f)});var ng=e(function(a,b){return function(c){return d(B,function(c){return a.M(b(c))},a.s(c))}});e(function(a,b){return function(c){return d(ba,c,k(ng,a,b,c))}});e(function(a,b){return"Just"===a.s(b).a?!0:!1});var ge=e(function(a,b){return{s:a,M:b}});e(function(a,b){return d(ge,function(c){c=a.s(c);return"Just"===c.a?b.s(c.b):w},function(c){return a.M(b.M(c))})});e(function(a,b){return d(ge,function(c){c=
a.s(c);return"Just"===c.a?u(b.get(c.b)):w},function(c){return a.M(b.M(c))})});H(function(a,b,c,f){return function(e){var h=e.h,g=e.c;e=e.b;var k=a.s(e),l=b.s(g),J=c.s(h);"Just"===k.a&&"Just"===l.a&&"Just"===J.a?(k=f({a:"_Tuple3",b:k.b,c:l.b,h:J.b}),h={a:"_Tuple3",b:d(a.set,k.b,e),c:d(b.set,k.c,g),h:d(c.set,k.h,h)}):h={a:"_Tuple3",b:e,c:g,h:h};return h}});m(function(a,b,c){return function(f){var e=f.c;f=f.b;var g=a.s(f),k=b.s(e);"Just"===g.a&&"Just"===k.a?(g=c({a:"_Tuple2",b:g.b,c:k.b}),e={a:"_Tuple2",
b:d(a.set,g.b,f),c:d(b.set,g.c,e)}):e={a:"_Tuple2",b:f,c:e};return e}});var og=e(function(a,b){return function(c){return d(B,function(b){return d(a.set,b,c)},d(B,b,a.s(c)))}}),Vb=e(function(a,b){return function(c){return d(ba,c,k(og,a,b,c))}}),$a=e(function(a,b){return{s:a,set:b}}),pg=e(function(a,b){var c=e(function(c,e){return d(ba,e,d(B,function(b){return d(a.set,b,e)},d(B,function(a){return d(b.set,c,a)},a.s(e))))});return d($a,function(c){c=a.s(c);return"Just"===c.a?b.s(c.b):w},c)});e(function(a,
b){var c=e(function(c,e){return d(ba,e,d(B,function(b){return d(a.set,b,e)},d(B,function(a){return d(b.set,c,a)},a.s(e))))});return d($a,function(c){c=a.s(c);return"Just"===c.a?u(b.get(c.b)):w},c)});e(function(a,b){var c=e(function(c,e){return{a:"_Tuple2",b:d(a.set,c.b,e.b),c:d(b.set,c.c,e.c)}});return d($a,function(c){return d(Nd,function(a){return d(B,function(b){return{a:"_Tuple2",b:a,c:b}},b.s(c.c))},a.s(c.b))},c)});e(function(a,b){var c=e(function(c,e){return d(b.set,c.c,d(a.set,c.b,e))});return d($a,
function(c){var d=a.s(c);c=b.s(c);return"Just"===d.a&&"Just"===c.a?u({a:"_Tuple2",b:d.b,c:c.b}):w},c)});m(function(a,b,c){var f=e(function(f,e){return d(c.set,f.h,d(b.set,f.c,d(a.set,f.b,e)))});return d($a,function(d){var f=a.s(d),e=b.s(d);d=c.s(d);return"Just"===f.a&&"Just"===e.a&&"Just"===d.a?u({a:"_Tuple3",b:f.b,c:e.b,h:d.b}):w},f)});e(function(a,b){return{a:"_Tuple2",b:b.b,c:a}});e(function(a,b){return{a:"_Tuple2",b:a,c:b.c}});e(function(a,b){return l.update(b,{id:a})});var sb=sb||{};sb["=>"]=
pg;m(function(a,b,c){return k(Kb,m(function(b,c,e){return d(a,b,e)}),b,c.b)});m(function(a,b,c){return k(za,m(function(b,c,e){return d(a,b,e)}),b,c.b)});var qg=e(function(a,b){return d(Zd,a,b.b)}),he=va(ra),ie=e(function(a,b){return va(k(wa,a,{a:"_Tuple0"},b.b))});e(function(a,b){return k(aa,ie,he,d(I,a,ob(b.b)))});e(function(a,b){return va(d(ee,a,b.b))});e(function(a,b){return va(d(ig,a.b,b.b))});e(function(a,b){return va(d(jg,a.b,b.b))});e(function(a,b){return va(d(lg,a.b,b.b))});e(function(a,b){return va(d(de,
e(function(b){return a(b)}),b.b))});e(function(a,b){var c=d(kg,e(function(b){return a(b)}),b.b);return{a:"_Tuple2",b:va(c.b),c:va(c.c)}});var je=m(function(a,b,c){var e=0<l.j(ea(c),0),g=0<l.j(a,0)&&0<l.j(b,0),r=d(Ka,b,c);c=d(rb,a,c);return g&&e?{a:"::",b:c,c:k(je,a,b,r)}:{a:"[]"}});e(function(a,b){return k(je,a,a,b)});var ke=m(function(a,b,c){var e=0<l.j(a,0)&&0<l.j(b,0),g=d(Ka,b,c);c=d(rb,a,c);var r=l.o(a,ea(c));return e&&r?{a:"::",b:c,c:k(ke,a,b,g)}:{a:"[]"}});e(function(a,b){return k(ke,a,a,b)});
Ef(da(function(a,b,c,d,e){return{a:"_Tuple5",b:a,c:b,h:c,g:d,f:e}}));Ff(H(function(a,b,c,d){return{a:"_Tuple4",b:a,c:b,h:c,g:d}}));Gf(m(function(a,b,c){return{a:"_Tuple3",b:a,c:b,h:c}}));lb(e(function(a,b){return{a:"_Tuple2",b:a,c:b}}));e(function(a,b){return d(yd,pa(a),pa(b))});var rg=e(function(a,b){if("::"===b.a){var c=b.b;return{a:"::",b:{a:"::",b:a,c:c},c:{a:"::",b:c,c:b.c}}}return{a:"[]"}}),sg=d(N,rg,{a:"::",b:{a:"[]"},c:{a:"[]"}});e(function(a,b){return d(sc,yd(a),sg(b))});d(N,e(function(a,
b){return{a:"::",b:{a:"[]"},c:d(I,e(function(a,b){return{a:"::",b:a,c:b}})(a),b)}}),{a:"::",b:{a:"[]"},c:{a:"[]"}});var tg=e(function(a,b){if("[]"===b.a)return{a:"[]"};if("[]"===b.c.a)return{a:"::",b:{a:"::",b:b.b,c:{a:"[]"}},c:{a:"[]"}};var c=b.b,e=d(tg,a,b.c);return"::"===e.a?d(a,c,b.c.b)?{a:"::",b:{a:"::",b:c,c:e.b},c:e.c}:{a:"::",b:{a:"::",b:c,c:{a:"[]"}},c:e}:{a:"[]"}});e(function(a,b){var c=e(function(a,b){return"Nothing"===b.a?w:"[]"===b.b.a?w:l.o(a,b.b.b)?u(b.b.c):w});return k(aa,c,u(b),a)});
var Dc=e(function(a,b){return{a:"_Tuple2",b:d(rb,a,b),c:d(Ka,a,b)}}),ug=m(function(a,b,c){for(;;){var e=b;if("::"===a.a&&"::"===e.a)e=d(Dc,a.b,b),b=e.c,c={a:"::",b:e.b,c:c},a=a.c;else return pa(c)}});e(function(a,b){return k(ug,a,b,{a:"[]"})});var vg=e(function(a,b){var c=a(b);return"Nothing"===c.a?{a:"[]"}:{a:"::",b:c.b.b,c:d(vg,a,c.b.c)}}),wg=e(function(a,b){if("[]"===b.a)return{a:"[]"};if("[]"===b.c.a)return{a:"::",b:b.b,c:{a:"[]"}};var c=d(wg,a,b.c);return"::"===c.a?{a:"::",b:d(a,b.b,c.b),c:c}:
{a:"[]"}}),xg=m(function(a,b,c){if("[]"===c.a)return{a:"::",b:b,c:{a:"[]"}};b=k(xg,a,b,c.c);return"::"===b.a?{a:"::",b:d(a,c.b,b.b),c:b}:{a:"[]"}});e(function(a,b){return"[]"===b.a?{a:"[]"}:k(If,a,b.b,b.c)});m(function(a,b,c){var d=e(function(b,c){var d=c.b;return{a:"_Tuple2",b:d-1,c:k(a,d,b,c.c)}});return k(N,d,{a:"_Tuple2",b:ea(c)-1,c:b},c).c});var le=m(function(a,b,c){var d=e(function(b,c){var d=c.b;return{a:"_Tuple2",b:d+1,c:k(a,d,b,c.c)}});return k(aa,d,{a:"_Tuple2",b:0,c:b},c).c});e(function(a,
b){var c=e(function(b,c){return u("Nothing"===c.a?b:d(a,b,c.b))});return k(N,c,w,b)});var yg=e(function(a,b){var c=e(function(b,c){return u("Nothing"===c.a?b:d(a,c.b,b))});return k(aa,c,w,b)}),zg=m(function(a,b,c){a:for(;;){var e=b;b:do if("::"===a.a)if("::"===e.a){var g=a.c;b=e.c;c=d(p["++"],c,{a:"::",b:a.b,c:{a:"::",b:e.b,c:{a:"[]"}}});a=g;continue a}else break b;else if("[]"===e.a)break b;else return d(p["++"],c,e);while(0);return d(p["++"],c,a)}});e(function(a,b){return k(zg,a,b,{a:"[]"})});e(function(a,
b){return d(Od,a,wd(b))});e(function(a,b){return d(Od,a,{a:"::",b:{a:"[]"},c:vd(b)})});e(function(a,b){return d(Ya,function(b){return!a(b)},b)});e(function(a,b){if(0>l.j(a,0))return b;var c=Kd(d(Ka,a,b)),e=d(rb,a,b);return"Nothing"===c.a?b:d(Nb,e,c.b)});e(function(a,b){var c=e(function(b,c){var e=d(a,b.b,c.b);return"EQ"===e.a?d(rc,b.c,c.c):e}),f=d(Ob,e(function(a,b){return{a:"_Tuple2",b:b,c:a}}),b);return d(I,tf,d(Df,c,f))});m(function(a,b,c){if(0>l.j(a,0))return w;var e=Kd(d(Ka,a,c));a=d(rb,a,c);
return"Nothing"===e.a?w:u(d(Nb,a,{a:"::",b:b,c:e.b}))});var Ag=e(function(a,b){if("[]"===b.a)return{a:"[]"};var c=b.c,e=b.b;return l.o(a,e)?c:{a:"::",b:e,c:d(Ag,a,c)}}),Bg=m(function(a,b,c){return d(Ob,e(function(c,d){return a(c)?b(d):d}),c)}),Cg=m(function(a,b,c){return 0>l.j(a,0)||-1<l.j(a,ea(c))?w:u(k(Bg,e(function(a,b){return l.o(a,b)})(a),b,c))}),Dg=m(function(a,b,c){return d(I,function(c){return a(c)?b(c):c},c)});m(function(a,b,c){return k(Dg,a,ja(b),c)});e(function(a,b){for(;;){var c=b;if("[]"===
c.a)return w;var d=c.b;if(a(d))return u(d);b=c.c}});m(function(a,b,c){return d(na,function(b){return d(na,function(c){return{a:"::",b:d(a,b,c),c:{a:"[]"}}},c)},b)});H(function(a,b,c,e){return d(na,function(b){return d(na,function(c){return d(na,function(d){return{a:"::",b:k(a,b,c,d),c:{a:"[]"}}},e)},c)},b)});da(function(a,b,c,e,g){return d(na,function(b){return d(na,function(c){return d(na,function(e){return d(na,function(d){return{a:"::",b:Q(a,b,c,e,d),c:{a:"[]"}}},g)},e)},c)},b)});e(function(a,
b){return k(lb,e(function(a,b){return a(b)}),a,b)});var me=m(function(a,b,c){for(;;){var e=c;if("[]"===e.a)return{a:"[]"};c=e.c;var e=e.b,g=a(e);if(!d(qg,g,b))return{a:"::",b:e,c:k(me,a,d(ie,g,b),c)}}}),Eg=e(function(a,b){return k(me,a,he,b)});e(function(a,b){return l.o(ea(b),ea(d(Eg,a,b)))});var Fg=e(function(a,b){for(;;){var c=b;if("[]"===c.a)return{a:"[]"};if(a(c.b))b=c.c;else return b}}),ne=e(function(a,b){if("[]"===b.a)return{a:"[]"};var c=b.b;return a(c)?{a:"::",b:c,c:d(ne,a,b.c)}:{a:"[]"}}),
Gg=e(function(a,b){return{a:"_Tuple2",b:d(ne,a,b),c:d(Fg,a,b)}}),oe=e(function(a,b){if("[]"===b.a)return{a:"[]"};var c=b.b,e=d(Gg,a(c),b.c);return{a:"::",b:{a:"::",b:c,c:e.b},c:d(oe,a,e.c)}});oe(e(function(a,b){return l.o(a,b)}));e(function(a,b){var c=e(function(b,c){var d=c.c,e=a(b);return 0>l.j(e,d)?{a:"_Tuple2",b:b,c:e}:{a:"_Tuple2",b:c.b,c:d}});if("::"===b.a){if("[]"===b.c.a)return u(b.b);var d=b.b;return u(k(aa,c,{a:"_Tuple2",b:d,c:a(d)},b.c).b)}return w});e(function(a,b){var c=e(function(b,
c){var d=c.c,e=a(b);return 0<l.j(e,d)?{a:"_Tuple2",b:b,c:e}:{a:"_Tuple2",b:c.b,c:d}});if("::"===b.a){if("[]"===b.c.a)return u(b.b);var d=b.b;return u(k(aa,c,{a:"_Tuple2",b:d,c:a(d)},b.c).b)}return w});m(function(a,b,c){for(;;){if(l.o(a,b))return u(c);if(0<l.j(a,b)){var f=a;a=b;b=f}else{if(0>l.j(a,0))return w;var f=d(Dc,a,c),g=f.b;b=d(Dc,b-a,f.c);a=b.b;b=b.c;return k(Cf,e(function(a,b){return k(N,Nb,{a:"[]"},{a:"::",b:g,c:{a:"::",b:{a:"::",b:b.b,c:a.c},c:{a:"::",b:{a:"::",b:a.b,c:b.c},c:{a:"[]"}}}})}),
nc(a),nc(b))}}});var Hg=e(function(a,b){var c=a(b);return"Just"===c.a?{a:"::",b:b,c:d(Hg,a,c.b)}:{a:"::",b:b,c:{a:"[]"}}}),Ig=e(function(a,b){var c;0>l.j(a,0)?c=w:(c=d(Ka,a,b),c="::"===c.a?u(c.b):w);return c}),pe=pe||{};pe["!!"]=qa(Ig);(function(){var a=e(function(a,c){return function(b){return d(ba,a,d(B,c,b))}});return d(N,function(b){return function(c){return u(k(a,{a:"[]"},e(function(a,b){return{a:"::",b:a,c:b}})(b),c))}},w)})();yg(qa(ja));var Y=function(){function a(a,b){return{a:"<decoder>",
tag:"map-many",B:a,ea:b}}function b(a){return{tag:"ok",value:a}}function c(a,b){return{tag:"primitive",type:a,value:b}}function d(a,b){return{tag:"index",index:a,J:b}}function d(a,b){return{tag:"index",index:a,J:b}}function g(a){for(var b="_";a;)switch(a.tag){case "primitive":return b="Expecting "+a.type+("_"===b?"":" at "+b)+" but instead got: ",a=a.value,a=void 0===a?"undefined":JSON.stringify(a),b+a;case "index":b+="["+a.index+"]";a=a.J;break;case "field":b+="."+a.ra;a=a.J;break;case "index":b+=
"["+a.index+"]";a=a.J;break;case "oneOf":a=a.Ec;for(var c=0;c<a.length;c++)a[c]=g(a[c]);return"I ran into the following problems"+("_"===b?"":" at "+b)+":\n\n"+a.join("\n");case "fail":return"I ran into a `fail` decoder"+("_"===b?"":" at "+b)+": "+a.ma}}function k(a,b){var c=n(a,b);return"ok"===c.tag?K(c.value):x(g(c))}function n(a,e){switch(a.tag){case "bool":return"boolean"===typeof e?b(e):c("a Bool",e);case "int":return"number"!==typeof e?c("an Int",e):-2147483647<e&&2147483647>e&&(e|0)===e||isFinite(e)&&
!(e%1)?b(e):c("an Int",e);case "float":return"number"===typeof e?b(e):c("a Float",e);case "string":return"string"===typeof e?b(e):e instanceof String?b(e+""):c("a String",e);case "null":return null===e?b(a.value):c("null",e);case "value":return b(e);case "list":if(!(e instanceof Array))return c("a List",e);for(var f=A.O,g=e.length;g--;){var h=n(a.A,e[g]);if("ok"!==h.tag)return d(g,h);f=A.Aa(h.value,f)}return b(f);case "array":if(!(e instanceof Array))return c("an Array",e);h=e.length;f=Array(h);for(g=
h;g--;){h=n(a.A,e[g]);if("ok"!==h.tag)return d(g,h);f[g]=h.value}return b(ia.lc(f));case "maybe":return h=n(a.A,e),"ok"===h.tag?b(u(h.value)):b(w);case "field":g=a.ra;if("object"!==typeof e||null===e||!(g in e))return c("an object with a field named `"+g+"`",e);h=n(a.A,e[g]);return"ok"===h.tag?h:{tag:"field",ra:g,J:h};case "index":g=a.index;if(!(e instanceof Array))return c("an array",e);if(g>=e.length)return c("a longer array. Need index "+g+" but there are only "+e.length+" entries",e);h=n(a.A,
e[g]);return"ok"===h.tag?h:d(g,h);case "key-value":if("object"!==typeof e||null===e||e instanceof Array)return c("an object",e);g=A.O;for(f in e){h=n(a.A,e[f]);if("ok"!==h.tag)return{tag:"field",ra:f,J:h};h=l.oa(f,h.value);g=A.Aa(h,g)}return b(g);case "map-many":for(var f=a.B,k=a.ea,g=0;g<k.length;g++){h=n(k[g],e);if("ok"!==h.tag)return h;f=f(h.value)}return b(f);case "andThen":return h=n(a.A,e),"ok"!==h.tag?h:n(a.G(h.value),e);case "oneOf":g=[];for(f=a.ea;"[]"!==f.a;){h=n(f.b,e);if("ok"===h.tag)return h;
g.push(h);f=f.c}return{tag:"oneOf",Ec:g};case "fail":return{tag:"fail",ma:a.ma};case "succeed":return b(a.ma)}}function p(a,b){if(a===b)return!0;if(a.tag!==b.tag)return!1;switch(a.tag){case "succeed":case "fail":return a.ma===b.ma;case "bool":case "int":case "float":case "string":case "value":return!0;case "null":return a.value===b.value;case "list":case "array":case "maybe":case "key-value":return p(a.A,b.A);case "field":return a.ra===b.ra&&p(a.A,b.A);case "index":return a.index===b.index&&p(a.A,
b.A);case "map-many":return a.B!==b.B?!1:q(a.ea,b.ea);case "andThen":return a.G===b.G&&p(a.A,b.A);case "oneOf":return q(a.ea,b.ea)}}function q(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(!p(a[d],b[d]))return!1;return!0}return{encode:e(function(a,b){return JSON.stringify(b,null,a)}),ne:e(function(a,b){var c;try{c=JSON.parse(b)}catch(vc){return x("Given an invalid JSON: "+vc.message)}return k(a,c)}),Wa:e(k),od:function(a){return{a:"<decoder>",tag:"null",value:a}},Da:function(a){return{a:"<decoder>",
tag:a}},ld:e(function(a,b){return{a:"<decoder>",tag:a,A:b}}),cc:e(function(a,b){return{a:"<decoder>",tag:"field",ra:a,A:b}}),md:e(function(a,b){return{a:"<decoder>",tag:"index",index:a,A:b}}),uc:e(function(b,c){return a(b,[c])}),Cb:m(function(b,c,d){return a(b,[c,d])}),Db:H(function(b,c,d,e){return a(b,[c,d,e])}),Eb:da(function(b,c,d,e,f){return a(b,[c,d,e,f])}),Fb:Ea(function(b,c,d,e,f,g){return a(b,[c,d,e,f,g])}),Wd:wf(function(b,c,d,e,f,g,h){return a(b,[c,d,e,f,g,h])}),Xd:xf(function(b,c,d,e,f,
g,h,k){return a(b,[c,d,e,f,g,h,k])}),Yd:yf(function(b,c,d,e,f,g,h,k,l){return a(b,[c,d,e,f,g,h,k,l])}),nd:function(a){return{a:"<decoder>",tag:"key-value",A:a}},pb:e(function(a,b){return{a:"<decoder>",tag:"andThen",A:b,G:a}}),kc:function(a){return{a:"<decoder>",tag:"fail",ma:a}},$:function(a){return{a:"<decoder>",tag:"succeed",ma:a}},ee:function(a){return{a:"<decoder>",tag:"oneOf",ea:a}},xb:function(a){return a},vd:null,td:ia.lb,ud:A.Za,wd:function(a){for(var b={};"[]"!==a.a;){var c=a.b;b[c.b]=c.c;
a=a.c}return b},ic:p}}(),Jg=Y.xb,Ec=Y.xb;Y.Da("value");var kc=Y.$,Vf=Y.Wa,Xc=Y.uc,qe=Y.cc,re=e(function(a,b){return k(N,qe,b,a)});Y.Da("float");var Kg=Y.Da("int"),Lg=Y.Da("bool"),Mg=Y.Da("string"),ha=function(){function a(a,b,c){return{type:"thunk",B:a,qb:b,Qb:c,node:void 0}}function b(a){for(var b,c={};"[]"!==a.a;){var d=a.b,e=d.key;if("ATTR"===e||"ATTR_NS"===e||"EVENT"===e){var f=c[e]||{};f[d.Va]=d.value;c[e]=f}else if("STYLE"===e){f=c[e]||{};for(d=d.value;"[]"!==d.a;){var g=d.b;f[g.b]=g.c;d=d.c}c[e]=
f}else"namespace"===e?b=d.value:"className"===e?(f=c[e],c[e]="undefined"===typeof f?d.value:f+" "+d.value):c[e]=d.value;a=a.c}return{H:c,D:b}}function c(a,b,c){return{key:"EVENT",Va:a,value:{options:b,A:c}}}function f(a,b){switch(a.type){case "thunk":return a.node||(a.node=a.Qb()),f(a.node,b);case "tagger":for(var c=a.node,d=a.u;"tagger"===c.type;)"object"!==typeof d?d=[d,c.u]:d.push(c.u),c=c.node;d={u:d,parent:b};c=f(c,d);c.ha=d;return c;case "text":return B.createTextNode(a.text);case "node":c=
a.D?B.createElementNS(a.D,a.tag):B.createElement(a.tag);g(c,b,a.H);for(var d=a.children,e=0;e<d.length;e++)c.appendChild(f(d[e],b));return c;case "keyed-node":c=a.D?B.createElementNS(a.D,a.tag):B.createElement(a.tag);g(c,b,a.H);d=a.children;for(e=0;e<d.length;e++)c.appendChild(f(d[e].c,b));return c;case "custom":return c=a.Ra.Kc(a.la),g(c,b,a.H),c}}function g(a,b,c){for(var d in c){var e=c[d];switch(d){case "STYLE":var f=e,g=a.style,e=void 0;for(e in f)g[e]=f[e];break;case "EVENT":var f=a,g=b,h=f.gc||
{},t=void 0;for(t in e){var F=h[t],k=e[t];"undefined"===typeof k?(f.removeEventListener(t,F),h[t]=void 0):"undefined"===typeof F?(F=n(g,k),f.addEventListener(t,F),h[t]=F):F.info=k}f.gc=h;break;case "ATTR":f=a;g=e;e=void 0;for(e in g)h=g[e],"undefined"===typeof h?f.removeAttribute(e):f.setAttribute(e,h);break;case "ATTR_NS":f=a;g=e;e=void 0;for(e in g)t=g[e],h=t.D,t=t.value,"undefined"===typeof t?f.removeAttributeNS(h,e):f.setAttributeNS(h,e,t);break;case "value":a[d]!==e&&(a[d]=e);break;default:a[d]=
e}}}function n(a,b){function c(b){var e=c.info,f=d(Y.Wa,e.A,b);if("Ok"===f.a)for(e=e.options,e.stopPropagation&&b.stopPropagation(),e.preventDefault&&b.preventDefault(),b=f.b,f=a;f;){e=f.u;if("function"===typeof e)b=e(b);else for(var g=e.length;g--;)b=e[g](b);f=f.parent}}c.info=b;return c}function p(a,b){var c=[];u(a,b,c,0);return c}function q(a,b,c){return{index:b,type:a,data:c,Oa:void 0,S:void 0}}function u(a,b,c,d){if(a!==b){var e=b.type;if(a.type!==e)c.push(q("p-redraw",d,b));else switch(e){case "thunk":for(var f=
a.qb,g=b.qb,h=f.length,t=a.B===b.B&&h===g.length;t&&h--;)t=f[h]===g[h];if(t){b.node=a.node;break}b.node=b.Qb();f=[];u(a.node,b.node,f,0);0<f.length&&c.push(q("p-thunk",d,f));break;case "tagger":for(var g=a.u,f=b.u,k=!1,h=a.node;"tagger"===h.type;)k=!0,"object"!==typeof g?g=[g,h.u]:g.push(h.u),h=h.node;for(t=b.node;"tagger"===t.type;)k=!0,"object"!==typeof f?f=[f,t.u]:f.push(t.u),t=t.node;if(k&&g.length!==f.length){c.push(q("p-redraw",d,b));break}if(k)a:{for(k=0;k<g.length;k++)if(g[k]!==f[k]){g=!1;
break a}g=!0}else g=g===f;g||c.push(q("p-tagger",d,f));u(h,t,c,d+1);break;case "text":a.text!==b.text&&c.push(q("p-text",d,b.text));break;case "node":if(a.tag!==b.tag||a.D!==b.D){c.push(q("p-redraw",d,b));break}e=v(a.H,b.H);"undefined"!==typeof e&&c.push(q("p-facts",d,e));f=a.children;g=b.children;h=f.length;t=g.length;h>t?c.push(q("p-remove-last",d,h-t)):h<t&&c.push(q("p-append",d,g.slice(h)));h=h<t?h:t;for(t=0;t<h;t++)d++,k=f[t],u(k,g[t],c,d),d+=k.C||0;break;case "keyed-node":if(a.tag!==b.tag||
a.D!==b.D){c.push(q("p-redraw",d,b));break}e=v(a.H,b.H);"undefined"!==typeof e&&c.push(q("p-facts",d,e));var e=[],F={},l=[];a=a.children;b=b.children;for(var Ta=a.length,eb=b.length,m=0,n=0,r=d;m<Ta&&n<eb;){var z=a[m],p=b[n],ga=z.b,Sb=p.b,R=z.c,z=p.c;if(ga===Sb)r++,u(R,z,e,r),r+=R.C||0,m++,n++;else{var p=m+1<Ta,V=n+1<eb;p&&(t=a[m+1],f=t.b,t=t.c,k=Sb===f);if(V)var T=b[n+1],g=T.b,T=T.c,x=ga===g;if(p&&V&&x&&k)r++,u(R,T,e,r),w(F,e,ga,z,n,l),r+=R.C||0,r++,y(F,e,ga,t,r),r+=t.C||0,m+=2,n+=2;else if(V&&x)r++,
w(F,e,Sb,z,n,l),u(R,T,e,r),r+=R.C||0,m+=1,n+=2;else if(p&&k)r++,y(F,e,ga,R,r),r+=R.C||0,r++,u(t,z,e,r),r+=t.C||0,m+=2,n+=1;else if(p&&V&&f===g)r++,y(F,e,ga,R,r),w(F,e,Sb,z,n,l),r+=R.C||0,r++,u(t,T,e,r),r+=t.C||0,m+=2,n+=2;else break}}for(;m<Ta;)r++,z=a[m],R=z.c,y(F,e,z.b,R,r),r+=R.C||0,m++;for(;n<eb;)h=h||[],p=b[n],w(F,e,p.b,p.c,void 0,h),n++;(0<e.length||0<l.length||"undefined"!==typeof h)&&c.push(q("p-reorder",d,{xa:e,qc:l,hc:h}));break;case "custom":a.Ra!==b.Ra?c.push(q("p-redraw",d,b)):(e=v(a.H,
b.H),"undefined"!==typeof e&&c.push(q("p-facts",d,e)),(f=b.Ra.dc(a,b))&&c.push(q("p-custom",d,f)))}}}function v(a,b,c){var d,e;for(e in a)if("STYLE"===e||"EVENT"===e||"ATTR"===e||"ATTR_NS"===e){var f=v(a[e],b[e]||{},e);f&&(d=d||{},d[e]=f)}else if(e in b){var f=a[e],g=b[e];f===g&&"value"!==e||"EVENT"===c&&(!f.options!==g.options||f.stopPropagation===g.stopPropagation&&f.preventDefault===g.preventDefault)&&Y.ic(f.A,g.A)||(d=d||{},d[e]=g)}else d=d||{},d[e]="undefined"===typeof c?"string"===typeof a[e]?
"":null:"STYLE"===c?"":"EVENT"===c||"ATTR"===c?void 0:{D:a[e].D,value:void 0};for(var h in b)h in a||(d=d||{},d[h]=b[h]);return d}function w(a,b,c,d,e,f){var g=a[c];"undefined"===typeof g?(g={tag:"insert",La:d,index:e,data:void 0},f.push({index:e,ia:g}),a[c]=g):"remove"===g.tag?(f.push({index:e,ia:g}),g.tag="move",a=[],u(g.La,d,a,g.index),g.index=e,g.data.data={xa:a,ia:g}):w(a,b,c+L,d,e,f)}function y(a,b,c,d,e){var f=a[c];"undefined"===typeof f?(f=q("p-remove",e,void 0),b.push(f),a[c]={tag:"remove",
La:d,index:e,data:f}):"insert"===f.tag?(f.tag="move",a=[],u(d,f.La,a,e),f=q("p-remove",e,{xa:a,ia:f}),b.push(f)):y(a,b,c+L,d,e)}function x(a,b,c,d,e,f,g){for(var h=c[d],t=h.index;t===e;){var k=h.type;"p-thunk"===k?(k=b.node,x(a,k,h.data,0,0,k.C,g)):"p-reorder"===k?(h.Oa=a,h.S=g,k=h.data.xa,0<k.length&&x(a,b,k,0,e,f,g)):"p-remove"===k?(h.Oa=a,h.S=g,k=h.data,"undefined"!==typeof k&&(k.ia.data=a,k=k.xa,0<k.length&&x(a,b,k,0,e,f,g))):(h.Oa=a,h.S=g);d++;if(!(h=c[d])||(t=h.index)>f)return d}switch(b.type){case "tagger":for(g=
b.node;"tagger"===g.type;)g=g.node;return x(a,g,c,d,e+1,f,a.ha);case "node":b=b.children;a=a.childNodes;for(k=0;k<b.length;k++){e++;var l=b[k],F=e+(l.C||0);if(e<=t&&t<=F&&(d=x(a[k],l,c,d,e,F,g),!(h=c[d])||(t=h.index)>f))break;e=F}return d;case "keyed-node":b=b.children;a=a.childNodes;for(k=0;k<b.length;k++){e++;l=b[k].c;F=e+(l.C||0);if(e<=t&&t<=F&&(d=x(a[k],l,c,d,e,F,g),!(h=c[d])||(t=h.index)>f))break;e=F}return d;case "text":case "thunk":throw Error("should never traverse `text` or `thunk` nodes like this");
}}function A(a,b,c,d){if(0===c.length)return a;x(a,b,c,0,0,b.C,d);return C(a,c)}function C(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d.Oa,d=D(e,d);e===a&&(a=d)}return a}function D(a,b){switch(b.type){case "p-redraw":var c=a.parentNode,d=f(b.data,b.S);"undefined"===typeof d.ha&&(d.ha=a.ha);c&&d!==a&&c.replaceChild(d,a);return d;case "p-facts":return g(a,b.S,b.data),a;case "p-text":return a.replaceData(0,a.length,b.data),a;case "p-thunk":return C(a,b.data);case "p-tagger":return"undefined"!==typeof a.ha?
a.ha.u=b.data:a.ha={u:b.data,parent:b.S},a;case "p-remove-last":for(c=b.data;c--;)a.removeChild(a.lastChild);return a;case "p-append":d=b.data;for(c=0;c<d.length;c++)a.appendChild(f(d[c],b.S));return a;case "p-remove":c=b.data;if("undefined"===typeof c)return a.parentNode.removeChild(a),a;d=c.ia;"undefined"!==typeof d.index&&a.parentNode.removeChild(a);d.data=C(a,c.xa);return a;case "p-reorder":var c=a,e=b.data;d=e.hc;if("undefined"!==typeof d){for(var h=B.createDocumentFragment(),t=0;t<d.length;t++){var k=
d[t].ia;h.appendChild("move"===k.tag?k.data:f(k.La,b.S))}d=h}else d=void 0;c=C(c,e.xa);e=e.qc;for(h=0;h<e.length;h++)t=e[h],k=t.ia,k="move"===k.tag?k.data:f(k.La,b.S),c.insertBefore(k,c.childNodes[t.index]);"undefined"!==typeof d&&c.appendChild(d);return c;case "p-custom":return c=b.data,c.Vb(a,c.data);default:throw Error("Ran into an unknown patch!");}}function Sd(a){return e(function(b,c){return function(e){return function(f,g,h){var k=a(e,g);"undefined"===typeof h?t(c,f,k):z(d(b,h,c),f,g,k)}}})}
function uc(a,b){b&&(b.innerHTML='<div style="padding-left:1em;"><h2 style="font-weight:normal;"><b>Oops!</b> Something went wrong when starting your Elm program.</h2><pre style="padding-left:1em;">'+a+"</pre></div>");throw Error(a);}function t(a,b,c){b.embed=function(b,d){for(;b.lastChild;)b.removeChild(b.lastChild);return Qa.ta(c(a.N,d,b),a.update,a.Z,ga(b,a.view))};b.fullscreen=function(b){return Qa.ta(c(a.N,b,document.body),a.update,a.Z,ga(document.body,a.view))}}function ga(a,b){return function(c,
d){var e={u:c,parent:void 0},g=b(d),h=f(g,e);a.appendChild(h);return V(h,b,g,e)}}function V(a,b,c,d){function e(){switch(f){case "NO_REQUEST":throw Error("Unexpected draw callback.\nPlease report this to <https://github.com/elm-lang/virtual-dom/issues>.");case "PENDING_REQUEST":N(e);f="EXTRA_REQUEST";var c=b(h),t=p(g,c);a=A(a,g,t,d);g=c;break;case "EXTRA_REQUEST":f="NO_REQUEST"}}var f="NO_REQUEST",g=c,h;return function(a){"NO_REQUEST"===f&&N(e);f="PENDING_REQUEST";h=a}}function z(a,b,c,d){b.fullscreen=
function(b){var e={ga:void 0};return Qa.ta(d(a.N,b,document.body),a.update(Pa(e)),a.Z,R(c,document.body,e,a.view,a.Wc,a.Xc))};b.embed=function(b,e){var f={ga:void 0};return Qa.ta(d(a.N,e,b),a.update(Pa(f)),a.Z,R(c,b,f,a.view,a.Wc,a.Xc))}}function Pa(a){return W.Ta(function(b){var c=a.ga;c&&(c=c.getElementsByClassName("debugger-sidebar-messages")[0])&&(c.scrollTop=c.scrollHeight);b(W.$(l.ba))})}function R(a,b,c,d,e,g){return function(h,t){var k={u:h,parent:void 0},l={u:h,parent:void 0},r=d(t),n=f(r,
k);b.appendChild(n);var m=V(n,d,r,k),r=e(t).c,n=f(r,l);b.appendChild(n);var z=V(n,T(k,n,e),r,l),p=E(g,l,a,c);return function(a){m(a);z(a);p(a)}}}function E(a,b,c,d){var e,f;return function(g){if(g.Id)if(d.ga){B=d.ga;g=a(g);var h=p(e,g);f=A(f,e,h,b);e=g;B=document}else e=a(g),f=Pb(c,d,e,b)}}function Pb(a,b,c,d){function e(){b.ga=void 0;g.close()}var g=window.open("","","width=900,height=360,left="+(screen.width-900)+",top="+(screen.height-360));B=g.document;b.ga=B;B.title="Debugger - "+a;B.body.style.margin=
"0";B.body.style.padding="0";a=f(c,d);B.body.appendChild(a);B.addEventListener("keydown",function(a){a.metaKey&&82===a.which&&window.location.reload();38===a.which&&(d.u({a:"Up"}),a.preventDefault());40===a.which&&(d.u({a:"Down"}),a.preventDefault())});window.addEventListener("unload",e);g.addEventListener("unload",function(){b.ga=void 0;window.removeEventListener("unload",e);d.u({a:"Close"})});B=document;return a}function T(a,b,c){function d(){}var e=K(b),f="Normal",g,h=a.u;return function(b){b=
c(b);var t=b.b.a;a.u="Normal"===t?h:d;f!==t&&(G("removeEventListener",e,f),G("addEventListener",e,t),"Normal"===f&&(g=document.body.style.overflow,document.body.style.overflow="hidden"),"Normal"===t&&(document.body.style.overflow=g),f=t);return b.c}}function G(a,b,c){switch(c){case "Pause":I(a,b,P);break;case "Message":I(a,b,Q)}}function I(a,b,c){for(var d=0;d<c.length;d++)document.body[a](c[d],b,!0)}function K(a){return function(b){if("keydown"!==b.type||!b.metaKey||82!==b.which){for(var c="scroll"===
b.type||"wheel"===b.type,d=b.target;null!==d;){if("elm-overlay-message-details"===d.className&&c||d===a&&!c)return;d=d.parentNode}b.stopPropagation();b.preventDefault()}}}var B="undefined"!==typeof document?document:{},L="_elmW6BL",M=Sd(function(a,b){return function(a,c,d){if("undefined"===typeof c)return a;uc("The `"+b+"` module does not need flags.\nInitialize it with no arguments and you should be all set!",d)}}),O=Sd(function(a,b){return function(c,e,f){if("undefined"===typeof a){var g="Are you trying to sneak a Never value into Elm? Trickster!\nIt looks like "+
b+".main is defined with `programWithFlags` but has type `Program Never`.\nUse `program` instead if you do not want flags.";uc(g,f)}e=d(Y.Wa,a,e);if("Ok"===e.a)return c(e.b);g="Trying to initialize the `"+b+"` module with an unexpected flag.\nI tried to convert it to an Elm value, but ran into this problem:\n\n"+e.b;uc(g,f)}}),N="undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(a){a()},P="click dblclick mousemove mouseup mousedown mouseenter mouseleave touchstart touchend touchcancel touchmove pointerdown pointerup pointerover pointerout pointerenter pointerleave pointermove pointercancel dragstart drag dragend dragenter dragover dragleave drop keyup keydown keypress input change focus blur".split(" "),
Q=P.concat("wheel","scroll");return{node:function(a){return e(function(c,d){for(var e=d,f=b(c),g=f.D,f=f.H,h=[],t=0;"[]"!==e.a;){var k=e.b,t=t+(k.C||0);h.push(k);e=e.c}t+=h.length;return{type:"node",tag:a,H:f,children:h,D:g,C:t}})},text:function(a){return{type:"text",text:a}},bc:function(a,c,d){return{type:"custom",H:b(a).H,la:c,Ra:d}},map:e(function(a,b){return{type:"tagger",u:a,node:b,C:1+(b.C||0)}}),Ac:m(c),style:function(a){return{key:"STYLE",value:a}},Gc:e(function(a,b){return{key:a,value:b}}),
Wb:e(function(a,b){return{key:"ATTR",Va:a,value:b}}),Xb:m(function(a,b,c){return{key:"ATTR_NS",Va:b,value:{value:c,D:a}}}),Zd:e(function(a,b){return"EVENT"!==b.key?b:c(b.Va,b.value.options,d(Xc,a,b.value.A))}),Md:e(function(b,c){return a(b,[c],function(){return b(c)})}),Nd:m(function(b,c,e){return a(b,[c,e],function(){return d(b,c,e)})}),Od:H(function(b,c,d,e){return a(b,[c,d,e],function(){return k(b,c,d,e)})}),rc:m(function(a,c,d){var e=b(c);c=e.D;for(var e=e.H,f=[],g=0;"[]"!==d.a;){var h=d.b,g=
g+(h.c.C||0);f.push(h);d=d.c}g+=f.length;return{type:"keyed-node",tag:a,H:e,children:f,D:c,C:g}}),Lb:M,Fc:O,ue:function(a){var b=l.oa(l.ba,Rb);return d(M,void 0,{N:b,view:function(){return a},update:e(function(){return b}),Z:function(){return Ud}})()}}}(),Ng=ha.rc,se={stopPropagation:!1,preventDefault:!1},dd=ha.Ac,gc=e(function(a,b){return k(dd,a,se,b)}),ib=ha.style,sa=ha.Xb,g=ha.Wb,Wb=ha.Gc,la=ha.map,G=ha.text,n=ha.node;e(function(a,b){return{stopPropagation:a,preventDefault:b}});var Og=ud;n("body");
n("section");n("nav");n("article");n("aside");var Pg=n("h1");n("h2");n("h3");n("h4");n("h5");n("h6");n("header");n("footer");n("address");n("main");var tb=n("p");n("hr");n("pre");n("blockquote");n("ol");n("ul");n("li");n("dl");n("dt");n("dd");n("figure");n("figcaption");var E=n("div"),Fc=n("a");n("em");n("strong");n("small");n("s");n("cite");n("q");n("dfn");n("abbr");n("time");n("code");n("var");n("samp");n("kbd");n("sub");n("sup");n("i");n("b");n("u");n("mark");n("ruby");n("rt");n("rp");n("bdi");
n("bdo");n("span");var Gc=n("br");n("wbr");n("ins");n("del");n("img");n("iframe");n("embed");n("object");n("param");n("video");n("audio");n("source");n("track");n("canvas");n("math");n("table");n("caption");n("colgroup");n("col");n("tbody");n("thead");n("tfoot");n("tr");n("td");n("th");n("form");n("fieldset");n("legend");n("label");n("input");var Qg=n("button");n("select");n("datalist");n("optgroup");n("option");var Re=n("textarea");n("keygen");n("output");n("progress");n("meter");n("details");n("summary");
n("menuitem");n("menu");var Ja=e(function(a,b){return d(Wb,a,Ec(b))});e(function(a,b){return d(Wb,a,Jg(b))});d(qe,"keyCode",Kg);d(re,{a:"::",b:"target",c:{a:"::",b:"checked",c:{a:"[]"}}},Lg);var Se=d(re,{a:"::",b:"target",c:{a:"::",b:"value",c:{a:"[]"}}},Mg);l.update(se,{preventDefault:!0});e(function(a,b){return{stopPropagation:a,preventDefault:b}});var Rg=d(Wb,"namespace",Ec("http://www.w3.org/2000/svg")),v=m(function(a,b,c){return k(n,a,{a:"::",b:Rg,c:b},c)}),Hc=v("svg");v("foreignObject");v("animate");
v("animateColor");v("animateMotion");v("animateTransform");v("mpath");v("set");v("a");v("defs");var Ha=v("g");v("marker");v("mask");v("pattern");v("switch");v("symbol");v("desc");v("metadata");v("title");v("feBlend");v("feColorMatrix");v("feComponentTransfer");v("feComposite");v("feConvolveMatrix");v("feDiffuseLighting");v("feDisplacementMap");v("feFlood");v("feFuncA");v("feFuncB");v("feFuncG");v("feFuncR");v("feGaussianBlur");v("feImage");v("feMerge");v("feMergeNode");v("feMorphology");v("feOffset");
v("feSpecularLighting");v("feTile");v("feTurbulence");v("font");v("linearGradient");v("radialGradient");v("stop");v("circle");v("ellipse");v("image");var Sg=v("line");v("path");var ed=v("polygon");v("polyline");v("rect");v("use");v("feDistantLight");v("fePointLight");v("feSpotLight");v("altGlyph");v("altGlyphDef");v("altGlyphItem");v("glyph");v("glyphRef");v("textPath");var hd=v("text");v("tref");v("tspan");v("clipPath");v("colorProfile");v("cursor");v("filter");v("script");v("style");v("view");g("writing-mode");
g("word-spacing");g("visibility");g("unicode-bidi");g("text-rendering");g("text-decoration");g("text-anchor");g("stroke");g("stroke-width");g("stroke-opacity");g("stroke-miterlimit");g("stroke-linejoin");g("stroke-linecap");g("stroke-dashoffset");g("stroke-dasharray");g("stop-opacity");g("stop-color");g("shape-rendering");g("pointer-events");g("overflow");g("opacity");g("mask");g("marker-start");g("marker-mid");g("marker-end");g("lighting-color");g("letter-spacing");g("kerning");g("image-rendering");
g("glyph-orientation-vertical");g("glyph-orientation-horizontal");g("font-weight");g("font-variant");g("font-style");g("font-stretch");g("font-size");g("font-size-adjust");g("font-family");g("flood-opacity");g("flood-color");g("filter");g("fill");g("fill-rule");g("fill-opacity");g("enable-background");var $e=g("dominant-baseline");g("display");g("direction");g("cursor");g("color");g("color-rendering");g("color-profile");g("color-interpolation");g("color-interpolation-filters");g("clip");g("clip-rule");
g("clip-path");g("baseline-shift");g("alignment-baseline");g("zoomAndPan");g("z");g("yChannelSelector");var Tg=g("y2"),Ug=g("y1"),bf=g("y");d(sa,"http://www.w3.org/XML/1998/namespace","xml:space");d(sa,"http://www.w3.org/XML/1998/namespace","xml:lang");d(sa,"http://www.w3.org/XML/1998/namespace","xml:base");d(sa,"http://www.w3.org/1999/xlink","xlink:type");d(sa,"http://www.w3.org/1999/xlink","xlink:title");d(sa,"http://www.w3.org/1999/xlink","xlink:show");d(sa,"http://www.w3.org/1999/xlink","xlink:role");
d(sa,"http://www.w3.org/1999/xlink","xlink:href");d(sa,"http://www.w3.org/1999/xlink","xlink:arcrole");d(sa,"http://www.w3.org/1999/xlink","xlink:actuate");g("xChannelSelector");var Vg=g("x2"),Wg=g("x1");g("x-height");g("x");g("widths");var te=g("width");g("viewTarget");var ub=g("viewBox");g("vert-origin-y");g("vert-origin-x");g("vert-adv-y");g("version");g("values");g("v-mathematical");g("v-ideographic");g("v-hanging");g("v-alphabetic");g("units-per-em");g("unicode-range");g("unicode");g("underline-thickness");
g("underline-position");g("u2");g("u1");g("type");var Da=g("transform");g("to");g("title");g("textLength");g("targetY");g("targetX");g("target");g("tableValues");g("systemLanguage");g("surfaceScale");var id=g("style");g("string");g("strikethrough-thickness");g("strikethrough-position");g("stitchTiles");g("stemv");g("stemh");g("stdDeviation");g("startOffset");g("spreadMethod");g("speed");g("specularExponent");g("specularConstant");g("spacing");g("slope");g("seed");g("scale");g("ry");g("rx");g("rotate");
g("result");g("restart");g("requiredFeatures");g("requiredExtensions");g("repeatDur");g("repeatCount");g("rendering-intent");g("refY");g("refX");g("radius");g("r");g("primitiveUnits");var Ic=g("preserveAspectRatio");g("preserveAlpha");g("pointsAtZ");g("pointsAtY");g("pointsAtX");var fd=g("points");g("point-order");g("patternUnits");g("patternTransform");g("patternContentUnits");g("pathLength");g("path");g("panose-1");g("overline-thickness");g("overline-position");g("origin");g("orientation");g("orient");
g("order");g("operator");g("offset");g("numOctaves");g("name");g("mode");g("min");g("method");g("media");g("max");g("mathematical");g("maskUnits");g("maskContentUnits");g("markerWidth");g("markerUnits");g("markerHeight");g("local");g("limitingConeAngle");g("lengthAdjust");g("lang");g("keyTimes");g("keySplines");g("keyPoints");g("kernelUnitLength");g("kernelMatrix");g("k4");g("k3");g("k2");g("k1");g("k");g("intercept");g("in2");g("in");g("ideographic");g("id");g("horiz-origin-y");g("horiz-origin-x");
g("horiz-adv-x");var ue=g("height");g("hanging");g("gradientUnits");g("gradientTransform");g("glyphRef");g("glyph-name");g("g2");g("g1");g("fy");g("fx");g("from");g("format");g("filterUnits");g("filterRes");g("externalResourcesRequired");g("exponent");g("end");g("elevation");g("edgeMode");g("dy");g("dx");g("dur");g("divisor");g("diffuseConstant");g("descent");g("decelerate");g("d");g("cy");g("cx");g("contentStyleType");g("contentScriptType");g("clipPathUnits");var ta=g("class");g("cap-height");g("calcMode");
g("by");g("bias");g("begin");g("bbox");g("baseProfile");g("baseFrequency");g("azimuth");g("autoReverse");g("attributeType");g("attributeName");g("ascent");g("arabic-form");g("amplitude");g("allowReorder");g("alphabetic");g("additive");g("accumulate");g("accelerate");g("accent-height");var P=e(function(a,b){return d(gc,a,kc(b))});P("begin");P("end");P("repeat");P("abort");P("error");P("resize");P("scroll");P("load");P("unload");P("zoom");P("activate");var ve=P("click");P("focusin");P("focusout");P("mousedown");
P("mousemove");P("mouseout");P("mouseover");P("mouseup");var Xg=d(Wb,"namespace",Ec("http://www.w3.org/2000/svg")),Yg=m(function(a,b,c){return k(Ng,a,{a:"::",b:Xg,c:b},c)}),Zg=function(){function a(a,b){a.innerHTML=b;return a}function b(a){function b(b,c){c||"Just"!==a.eb.a||(c=a.eb.b);return"undefined"!==typeof hljs&&c&&0<=hljs.Td().indexOf(c)?hljs.U(c,b,!0).value:b}var c=a.wb;return"Just"===c.a?{U:b,K:!0,na:c.b.na,ca:c.b.ca,W:a.W,X:a.X}:{U:b,K:!1,na:!1,ca:!1,W:a.W,X:a.X}}var c={Kc:function(a){a=
d(a.Sa,b(a.options));var c=document.createElement("div");c.innerHTML=a;return c},dc:function(c,e){return c.la.Sa===e.la.Sa&&c.la.options===e.la.options?null:{Vb:a,data:d(e.la.Sa,b(e.la.options))}}},d=function(){var a={},b=a.ub={};(function(){function c(a){this.w=[];this.w.links={};this.options=a||r.fa;this.rules=m.wa;this.options.K&&(this.rules=this.options.na?m.na:m.K)}function d(a,b){this.options=b||r.fa;this.links=a;this.rules=p.wa;this.l=this.options.l||new e;this.l.options=this.options;if(!this.links)throw Error("Tokens array requires a `links` property.");
this.options.K?this.rules=this.options.ca?p.ca:p.K:this.options.ya&&(this.rules=p.ya)}function e(a){this.options=a||{}}function f(a){this.w=[];this.v=null;this.options=a||r.fa;this.options.l=this.options.l||new e;this.l=this.options.l;this.l.options=this.options}function g(a,b){return a.replace(b?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function h(a){return a.replace(/&([#\w]+);/g,function(a,b){b=b.toLowerCase();return"colon"===
b?":":"#"===b.charAt(0)?"x"===b.charAt(1)?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}function k(a,b){a=a.source;b=b||"";return function z(c,d){if(!c)return new RegExp(a,b);d=d.source||d;d=d.replace(/(^|[^\[])\^/g,"$1");a=a.replace(c,d);return z}}function l(){}function n(a){for(var b=1,c,d;b<arguments.length;b++)for(d in c=arguments[b],c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a}function r(a,b,d){if(d||"function"===typeof b){d||
(d=b,b=null);b=n({},r.fa,b||{});var e=b.U,h,k,t=0;try{h=c.Fa(a,b)}catch(T){return d(T)}k=h.length;var l=function(a){if(a)return b.U=e,d(a);var c;try{c=f.parse(h,b)}catch(Uf){a=Uf}b.U=e;return a?d(a):d(null,c)};if(!e||3>e.length)return l();delete b.U;if(!k)return l();for(;t<h.length;t++)(function(a){return"code"!==a.type?--k||l():e(a.text,a.lang,function(b,c){if(b)return l(b);if(null==c||c===a.text)return--k||l();a.text=c;a.jc=!0;--k||l()})})(h[t])}else try{return b&&(b=n({},r.fa,b)),f.parse(c.Fa(a,
b),b)}catch(T){T.message+="\nPlease report this to https://github.com/chjj/marked.";if((b||r.fa).Lc)return"<p>An error occured:</p><pre>"+g(T.message+"",!0)+"</pre>";throw T;}}var m={xc:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fb:l,Qa:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,Gb:l,zb:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,pa:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,Ea:/^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,
Ma:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:l,V:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/,ab:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};m.item=k(m.item,"gm")(/bull/g,m.ab)();m.list=k(m.list)(/bull/g,m.ab)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+m.Ma.source+")")();m.pa=k(m.pa)("def",m.Ma)();m.ob="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";
m.Ea=k(m.Ea)("comment",/\x3c!--[\s\S]*?--\x3e/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,m.ob)();m.V=k(m.V)("hr",m.Qa)("heading",m.heading)("lheading",m.zb)("blockquote",m.pa)("tag","<"+m.ob)("def",m.Ma)();m.wa=n({},m);m.K=n({},m.wa,{fb:/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,V:/^/});m.K.V=k(m.V)("(?!","(?!"+m.K.fb.source.replace("\\1","\\2")+"|"+m.list.source.replace("\\1","\\3")+"|")();m.na=n({},m.K,{Gb:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,
table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});c.rules=m;c.Fa=function(a,b){return(new c(b)).Fa(a)};c.prototype.Fa=function(a){a=a.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.v(a,!0)};c.prototype.v=function(a,b,c){a=a.replace(/^ +$/gm,"");for(var d,e,f,g,h,k,t;a;){if(f=this.rules.xc.exec(a))a=a.substring(f[0].length),1<f[0].length&&this.w.push({type:"space"});if(f=this.rules.code.exec(a))a=a.substring(f[0].length),
f=f[0].replace(/^ {4}/gm,""),this.w.push({type:"code",text:this.options.ya?f:f.replace(/\n+$/,"")});else if(f=this.rules.fb.exec(a))a=a.substring(f[0].length),this.w.push({type:"code",lang:f[2],text:f[3]});else if(f=this.rules.heading.exec(a))a=a.substring(f[0].length),this.w.push({type:"heading",depth:f[1].length,text:f[2]});else if(b&&(f=this.rules.Gb.exec(a))){a=a.substring(f[0].length);h={type:"table",sa:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),
cells:f[3].replace(/\n$/,"").split("\n")};for(k=0;k<h.align.length;k++)h.align[k]=/^ *-+: *$/.test(h.align[k])?"right":/^ *:-+: *$/.test(h.align[k])?"center":/^ *:-+ *$/.test(h.align[k])?"left":null;for(k=0;k<h.cells.length;k++)h.cells[k]=h.cells[k].split(/ *\| */);this.w.push(h)}else if(f=this.rules.zb.exec(a))a=a.substring(f[0].length),this.w.push({type:"heading",depth:"="===f[2]?1:2,text:f[1]});else if(f=this.rules.Qa.exec(a))a=a.substring(f[0].length),this.w.push({type:"hr"});else if(f=this.rules.pa.exec(a))a=
a.substring(f[0].length),this.w.push({type:"blockquote_start"}),f=f[0].replace(/^ *> ?/gm,""),this.v(f,b,!0),this.w.push({type:"blockquote_end"});else if(f=this.rules.list.exec(a)){a=a.substring(f[0].length);g=f[2];this.w.push({type:"list_start",Bc:1<g.length});f=f[0].match(this.rules.item);d=!1;t=f.length;for(k=0;k<t;k++)h=f[k],e=h.length,h=h.replace(/^ *([*+-]|\d+\.) +/,""),~h.indexOf("\n ")&&(e-=h.length,h=this.options.ya?h.replace(/^ {1,4}/gm,""):h.replace(new RegExp("^ {1,"+e+"}","gm"),"")),
this.options.Mc&&k!==t-1&&(e=m.ab.exec(f[k+1])[0],g===e||1<g.length&&1<e.length||(a=f.slice(k+1).join("\n")+a,k=t-1)),e=d||/\n\n(?!\s*$)/.test(h),k!==t-1&&(d="\n"===h.charAt(h.length-1),e||(e=d)),this.w.push({type:e?"loose_item_start":"list_item_start"}),this.v(h,!1,c),this.w.push({type:"list_item_end"});this.w.push({type:"list_end"})}else if(f=this.rules.Ea.exec(a))a=a.substring(f[0].length),this.w.push({type:this.options.W?"paragraph":"html",Dc:"pre"===f[1]||"script"===f[1]||"style"===f[1],text:f[0]});
else if(!c&&b&&(f=this.rules.Ma.exec(a)))a=a.substring(f[0].length),this.w.links[f[1].toLowerCase()]={href:f[2],title:f[3]};else if(b&&(f=this.rules.table.exec(a))){a=a.substring(f[0].length);h={type:"table",sa:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:f[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(k=0;k<h.align.length;k++)h.align[k]=/^ *-+: *$/.test(h.align[k])?"right":/^ *:-+: *$/.test(h.align[k])?"center":/^ *:-+ *$/.test(h.align[k])?
"left":null;for(k=0;k<h.cells.length;k++)h.cells[k]=h.cells[k].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.w.push(h)}else if(b&&(f=this.rules.V.exec(a)))a=a.substring(f[0].length),this.w.push({type:"paragraph",text:"\n"===f[1].charAt(f[1].length-1)?f[1].slice(0,-1):f[1]});else if(f=this.rules.text.exec(a))a=a.substring(f[0].length),this.w.push({type:"text",text:f[0]});else if(a)throw Error("Infinite loop on byte: "+a.charCodeAt(0));}return this.w};var p={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,
Yb:/^<([^ >]+(@|:\/)[^ >]+)>/,url:l,tag:/^\x3c!--[\s\S]*?--\x3e|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,jb:/^!?\[(inside)\]\s*\[([^\]]*)\]/,yc:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,Xa:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,Pa:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Ba:/^ {2,}\n(?!\s*$)/,Na:l,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/,nb:/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,Ub:/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/};
p.link=k(p.link)("inside",p.nb)("href",p.Ub)();p.jb=k(p.jb)("inside",p.nb)();p.wa=n({},p);p.ya=n({},p.wa,{Xa:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,Pa:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});p.K=n({},p.wa,{escape:k(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Na:/^~~(?=\S)([\s\S]*?\S)~~/,text:k(p.text)("]|","~]|")("|","|https?://|")()});p.ca=n({},p.K,{Ba:k(p.Ba)("{2,}","*")(),text:k(p.K.text)("{2,}","*")()});d.rules=p;d.L=function(a,
b,c){return(new d(b,c)).L(a)};d.prototype.L=function(a){for(var b="",c,d;a;)if(d=this.rules.escape.exec(a))a=a.substring(d[0].length),b+=d[1];else if(d=this.rules.Yb.exec(a))a=a.substring(d[0].length),"@"===d[2]?(c=":"===d[1].charAt(6)?this.hb(d[1].substring(7)):this.hb(d[1]),d=this.hb("mailto:")+c):d=c=g(d[1]),b+=this.l.link(d,null,c);else if(!this.Y&&(d=this.rules.url.exec(a)))a=a.substring(d[0].length),d=c=g(d[1]),b+=this.l.link(d,null,c);else if(d=this.rules.tag.exec(a))!this.Y&&/^<a /i.test(d[0])?
this.Y=!0:this.Y&&/^<\/a>/i.test(d[0])&&(this.Y=!1),a=a.substring(d[0].length),b+=this.options.W?g(d[0]):d[0];else if(d=this.rules.link.exec(a))a=a.substring(d[0].length),this.Y=!0,b+=this.Jb(d,{href:d[2],title:d[3]}),this.Y=!1;else if((d=this.rules.jb.exec(a))||(d=this.rules.yc.exec(a)))a=a.substring(d[0].length),c=(d[2]||d[1]).replace(/\s+/g," "),(c=this.links[c.toLowerCase()])&&c.href?(this.Y=!0,b+=this.Jb(d,c),this.Y=!1):(b+=d[0].charAt(0),a=d[0].substring(1)+a);else if(d=this.rules.Xa.exec(a))a=
a.substring(d[0].length),b+=this.l.Xa(this.L(d[2]||d[1]));else if(d=this.rules.Pa.exec(a))a=a.substring(d[0].length),b+=this.l.Pa(this.L(d[2]||d[1]));else if(d=this.rules.code.exec(a))a=a.substring(d[0].length),b+=this.l.ac(g(d[2],!0));else if(d=this.rules.Ba.exec(a))a=a.substring(d[0].length),b+=this.l.Ba();else if(d=this.rules.Na.exec(a))a=a.substring(d[0].length),b+=this.l.Na(this.L(d[1]));else if(d=this.rules.text.exec(a))a=a.substring(d[0].length),b+=g(this.X(d[0]));else if(a)throw Error("Infinite loop on byte: "+
a.charCodeAt(0));return b};d.prototype.Jb=function(a,b){var c=g(b.href),d=b.title?g(b.title):null;return"!"!==a[0].charAt(0)?this.l.link(c,d,this.L(a[1])):this.l.pc(c,d,g(a[1]))};d.prototype.X=function(a){return this.options.X?a.replace(/--/g,"\u2014").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):a};d.prototype.hb=function(a){for(var b="",c=a.length,d=0,e;d<c;d++)e=a.charCodeAt(d),
.5<Math.random()&&(e="x"+e.toString(16)),b+="&#"+e+";";return b};e.prototype.code=function(a,b,c){if(this.options.U){var d=this.options.U(a,b);null!=d&&d!==a&&(c=!0,a=d)}return b?'<pre><code class="'+this.options.sc+g(b,!0)+'">'+(c?a:g(a,!0))+"\n</code></pre>\n":"<pre><code>"+(c?a:g(a,!0))+"\n</code></pre>"};e.prototype.pa=function(a){return"<blockquote>\n"+a+"</blockquote>\n"};e.prototype.Ea=function(a){return a};e.prototype.heading=function(a,b,c){return"<h"+b+' id="'+this.options.oc+c.toLowerCase().replace(/[^\w]+/g,
"-")+'">'+a+"</h"+b+">\n"};e.prototype.Qa=function(){return this.options.mb?"<hr/>\n":"<hr>\n"};e.prototype.list=function(a,b){var c=b?"ol":"ul";return"<"+c+">\n"+a+"</"+c+">\n"};e.prototype.Ab=function(a){return"<li>"+a+"</li>\n"};e.prototype.V=function(a){return"<p>"+a+"</p>\n"};e.prototype.table=function(a,b){return"<table>\n<thead>\n"+a+"</thead>\n<tbody>\n"+b+"</tbody>\n</table>\n"};e.prototype.Pb=function(a){return"<tr>\n"+a+"</tr>\n"};e.prototype.Ob=function(a,b){var c=b.sa?"th":"td";return(b.align?
"<"+c+' style="text-align:'+b.align+'">':"<"+c+">")+a+"</"+c+">\n"};e.prototype.Xa=function(a){return"<strong>"+a+"</strong>"};e.prototype.Pa=function(a){return"<em>"+a+"</em>"};e.prototype.ac=function(a){return"<code>"+a+"</code>"};e.prototype.Ba=function(){return this.options.mb?"<br/>":"<br>"};e.prototype.Na=function(a){return"<del>"+a+"</del>"};e.prototype.link=function(a,b,c){if(this.options.W){try{var d=decodeURIComponent(h(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(Pa){return""}if(0===d.indexOf("javascript:"))return""}a=
'<a href="'+a+'"';b&&(a+=' title="'+b+'"');return a+(">"+c+"</a>")};e.prototype.pc=function(a,b,c){a='<img src="'+a+'" alt="'+c+'"';b&&(a+=' title="'+b+'"');return a+=this.options.mb?"/>":">"};f.parse=function(a,b){return(new f(b)).parse(a)};f.prototype.parse=function(a){this.ua=new d(a.links,this.options);this.w=a.reverse();for(a="";this.next();)a+=this.Ja();return a};f.prototype.next=function(){return this.v=this.w.pop()};f.prototype.Cc=function(){return this.w[this.w.length-1]||0};f.prototype.Kb=
function(){for(var a=this.v.text;"text"===this.Cc().type;)a+="\n"+this.next().text;return this.ua.L(a)};f.prototype.Ja=function(){switch(this.v.type){case "space":return"";case "hr":return this.l.Qa();case "heading":return this.l.heading(this.ua.L(this.v.text),this.v.depth,this.v.text);case "code":return this.l.code(this.v.text,this.v.lang,this.v.jc);case "table":var a="",b="",c,d,e,f;e="";for(c=0;c<this.v.sa.length;c++)e+=this.l.Ob(this.ua.L(this.v.sa[c]),{sa:!0,align:this.v.align[c]});a+=this.l.Pb(e);
for(c=0;c<this.v.cells.length;c++){d=this.v.cells[c];e="";for(f=0;f<d.length;f++)e+=this.l.Ob(this.ua.L(d[f]),{sa:!1,align:this.v.align[f]});b+=this.l.Pb(e)}return this.l.table(a,b);case "blockquote_start":for(b="";"blockquote_end"!==this.next().type;)b+=this.Ja();return this.l.pa(b);case "list_start":b="";for(a=this.v.Bc;"list_end"!==this.next().type;)b+=this.Ja();return this.l.list(b,a);case "list_item_start":for(b="";"list_item_end"!==this.next().type;)b+="text"===this.v.type?this.Kb():this.Ja();
return this.l.Ab(b);case "loose_item_start":for(b="";"list_item_end"!==this.next().type;)b+=this.Ja();return this.l.Ab(b);case "html":return b=this.v.Dc||this.options.ya?this.v.text:this.ua.L(this.v.text),this.l.Ea(b);case "paragraph":return this.l.V(this.ua.L(this.v.text));case "text":return this.l.V(this.Kb())}};l.exec=l;r.options=r.qe=function(a){n(r.fa,a);return r};r.fa={K:!0,na:!0,ca:!1,ya:!1,W:!1,Mc:!1,Lc:!1,U:null,sc:"lang-",X:!1,oc:"",l:new e,mb:!1};r.ad=f;r.ke=f.parse;r.bd=e;r.$c=c;r.Rd=
c.Fa;r.Zc=d;r.Hd=d.L;r.parse=r;"undefined"!==typeof a&&"object"===typeof b?a.ub=r:"function"===typeof define&&define.cd&&define(function(){return r})}).call(function(){return this||("undefined"!==typeof window?window:global)}());return a.ub}();return{Rc:m(function(a,b,d){return ha.bc(b,{options:a,Sa:d},c)})}}(),$g={wb:u({na:!1,ca:!1}),eb:w,W:!1,X:!1},we=e(function(a,b){return k(Zg.Rc,$g,a,b)});H(function(a,b,c,d){return{wb:a,eb:b,W:c,X:d}});var xe=m(function(a,b,c){return d(Gb,{a:"_Tuple2",b:a.x+
b.x,c:a.y+b.y},c)}),ye=e(function(a,b){return d(I,function(c){return k(xe,a,c,b)},{a:"::",b:{x:-1,y:-1},c:{a:"::",b:{x:0,y:-2},c:{a:"::",b:{x:1,y:-1},c:{a:"::",b:{x:1,y:1},c:{a:"::",b:{x:0,y:2},c:{a:"::",b:{x:-1,y:1},c:{a:"[]"}}}}}}})}),ah=e(function(a,b){return d(Mb,fa,d(I,function(c){return k(xe,a,c,b)},{a:"::",b:{x:-1,y:-1},c:{a:"::",b:{x:0,y:-2},c:{a:"::",b:{x:1,y:-1},c:{a:"::",b:{x:1,y:1},c:{a:"::",b:{x:0,y:2},c:{a:"::",b:{x:-1,y:1},c:{a:"::",b:{x:0,y:4},c:{a:"::",b:{x:1,y:3},c:{a:"::",b:{x:2,
y:2},c:{a:"::",b:{x:2,y:0},c:{a:"::",b:{x:2,y:-2},c:{a:"::",b:{x:1,y:-3},c:{a:"::",b:{x:0,y:-4},c:{a:"::",b:{x:-1,y:-3},c:{a:"::",b:{x:-2,y:-2},c:{a:"::",b:{x:-2,y:0},c:{a:"::",b:{x:-2,y:2},c:{a:"::",b:{x:-1,y:3},c:{a:"[]"}}}}}}}}}}}}}}}}}}}))}),We=e(function(a,b){return k(za,m(function(b,d,e){return a(d)?e+1:e}),0,b)}),bh=m(function(a,b,c){var e=c.c;c={a:"::",b:{a:"_Tuple2",b:C(a),c:b.b},c:c.b};b=b.c;a="Nothing"===b.a?e:{a:"::",b:{a:"_Tuple2",b:d(p["++"],"overlay-",C(a)),c:b.b},c:e};return{a:"_Tuple2",
b:c,c:a}}),ch=e(function(a,b){return{a:"_Tuple2",b:b.b,c:u(a)}}),ze=e(function(a,b){return 1>l.j(a.top,b.y)&&-1<l.j(a.right,b.x)&&-1<l.j(a.bottom,b.y)&&1>l.j(a.left,b.x)}),dh=e(function(a,b){switch(a.a){case "Down":return l.update(b,{y:b.y+1});case "DownRight":return{x:b.x+1,y:b.y+1};default:return{x:b.x-1,y:b.y+1}}}),Ua={get:function(a){return{a:"_Tuple2",b:a.x,c:a.y}},M:function(a){return{x:a.b,y:a.c}}},Ae=e(function(a,b){var c=e(function(c,e){return d(bh,Ua.M(c),k(a,b,Ua.M(c),e))});return k(Yg,
"g",{a:"[]"},gf(k(za,c,{a:"_Tuple2",b:{a:"[]"},c:{a:"[]"}},b)))}),Jc=da(function(a,b,c,e,g){var f=k(a,g,d(Gb,Ua.get(g),e),b);return"Nothing"===f.a?b:y(Jc,a,f.b,c,e,d(dh,c,g))});e(function(a,b){return{x:a,y:b}});H(function(a,b,c,d){return{top:a,right:b,bottom:c,left:d}});var Kc={a:"DownRight"},Be={a:"DownLeft"},Xb={a:"Down"},Yb=Ab({F:!1,I:!1,enabled:!0}),Ce=e(function(a,b){switch(b.a){case "Flower":return Ab(l.update(b.b,{I:a}));case "RowCount":return Bb(l.update(b.b,{I:a}));default:return b}}),Va=
{a:"Mine",b:{F:!1}},fb=zb({Ka:!1,F:!1,enabled:!0}),Zb=zb({Ka:!0,F:!1,enabled:!0}),Wa={a:"Empty",b:{F:!1,enabled:!0}},gb=e(function(a,b){switch(b.a){case "Empty":return{a:"Empty",b:l.update(b.b,{F:a})};case "Count":return zb(l.update(b.b,{F:a}));case "Mine":return{a:"Mine",b:l.update(b.b,{F:a})};case "Flower":return Ab(l.update(b.b,{F:a}));default:return b}})(!0),De=e(function(a,b){switch(b.a){case "Empty":return{a:"Empty",b:l.update(b.b,{enabled:a})};case "Count":return zb(l.update(b.b,{enabled:a}));
case "Flower":return Ab(l.update(b.b,{enabled:a}));case "RowCount":return Bb(l.update(b.b,{enabled:a}));default:return b}}),hb=e(function(a,b){return d(E,{a:"::",b:mb("flat-button"),c:{a:"::",b:Eb(a),c:{a:"[]"}}},{a:"::",b:G(b),c:{a:"[]"}})}),eh=H(function(a,b,c,e){switch(e.a){case "Static":return e.b;case "Dynamic":return e.b(b);default:return d(a,c,e.b)}}),fh=m(function(a,b,c){return d(E,{a:"::",b:Z("outer-text-container"),c:{a:"[]"}},{a:"::",b:d(E,{a:"::",b:Z("inner-text-container"),c:{a:"[]"}},
d(Ob,d(eh,a,b),c)),c:{a:"[]"}})});e(function(a,b){return{a:"ReplaceExample",b:a,c:b}});var gh=e(function(a,b){return{a:"UpdateExample",b:a,c:b}}),Lc=e(function(a,b){return d(gh,a,b)}),Ee=m(function(a,b,c){return d(ba,c,k(Cg,a,function(a){return"Interactive"===a.a?{a:"Interactive",b:b(a.b)}:a},c))}),hh=m(function(a,b,c){return"UpdateExample"===a.a?k(Ee,a.b,b(a.c),c):k(Ee,a.b,function(){return a.c},c)}),ih=I(function(a){switch(a.a){case "StaticMarkdown":return{a:"Static",b:d(we,{a:"[]"},a.b)};case "StaticHtml":return{a:"Static",
b:a.b};case "DynamicMarkdown":return{a:"Dynamic",b:function(b){return d(we,{a:"[]"},a.b(b))}};case "DynamicHtml":return{a:"Dynamic",b:a.b};default:return{a:"Interactive",b:a.b}}}),ma=m(function(a,b,c){return{a:"Pivot",b:a,c:b,h:c}}),Mc={get:function(a){return a.b},set:e(function(a,b){return k(ma,a,b.c,b.h)})},jh=Mc.get,kh=e(function(a,b){for(;;){var c=b,d=c.h,e=c.c,c=c.b;if(l.o(a,0))return u(k(ma,c,e,d));var g=d;if("::"===g.a)d=a-1,e=k(ma,g.b,{a:"::",b:c,c:e},g.c),a=d,b=e;else return w}}),lh=e(function(a,
b){for(;;){var c=b,d=c.h,e=c.c,c=c.b;if(l.o(a,0))return k(ma,c,e,d);var g=e;if("::"===g.a)e=a-1,d=k(ma,g.b,g.c,{a:"::",b:c,c:d}),a=e,b=d;else return k(ma,c,e,d)}}),mh=e(function(a,b){var c=b.h,e=b.c,g=b.b,m=ea(e);return 0>l.j(m,a)?d(kh,a-m,k(ma,g,e,c)):l.o(m,a)?u(k(ma,g,e,c)):-1<l.j(a,0)?u(d(lh,m-a,k(ma,g,e,c))):w}),nh=H(function(a,b,c,d){return{title:a,rb:b,tb:c,content:d}});e(function(a,b){return{level:a,ka:b}});e(function(a,b){return{T:a,ib:b}});e(function(a,b){return{ja:a,Ya:b}});var Ye={a:"RightButton"},
bd={a:"LeftButton"},Fe={a:"Tutorial"},ic={a:"MainMenu"},Yc=e(function(a,b){return{a:"MultiMessage",b:a,c:b}}),oh={a:"FlipTabletMode"},Ge={a:"FlipControlls"},Nc=e(function(a,b){return{a:"ToggleEnabled",b:a,c:b}}),He=e(function(a,b){return{a:"ToggleOverlay",b:a,c:b}}),ad=e(function(a,b){return{a:"Reveal",b:a,c:b}}),$b=e(function(a,b){return{a:"Tabbed",b:a,c:b}}),Oc=e(function(a,b){return{a:"Plain",b:a,c:b}}),ph=H(function(a,b,c,e){return y(Jc,m(function(b,c,e){return d(ze,a,b)?"Nothing"===c.a?u(e):
La(c.b)?u(e+1):u(e):w}),0,e,b,c)}),qh=e(function(a,b){return ea(d(Ya,function(a){return La(a)},d(ah,b,a)))}),rh=e(function(a,b){return ea(d(Ya,function(a){return La(a)},d(Mb,fa,d(ye,b,a))))}),Ie={a:"DisjointNbhd"},Pc={a:"ConnectedNbhd"},sh=e(function(a,b){return function(a){return 1>l.j(a,2)?Pc:Ie}(rd(d(I,function(a){return d(ba,!1,d(B,La,a))},d(ye,b,a))))}),th=H(function(a,b,c,f){return function(a){return 1>l.j(a,2)?Pc:Ie}(rd(d(e(function(a,b){return{a:"::",b:a,c:b}}),!1,y(Jc,m(function(b,c,e){if(d(ze,
a,b)){if("Nothing"===c.a)return u(e);b=c.b;return"RowCount"!==b.a?La(b)?u({a:"::",b:!0,c:e}):u({a:"::",b:!1,c:e}):u(e)}return w}),{a:"[]"},f,b,c))))}),uh=d(q["<$"],w,D("..")),vh=d(q["<|>"],d(q["<$"],nb(Be),d(q["<|>"],D("/c"),D("/n"))),d(q["<|>"],d(q["<$"],nb(Xb),d(q["<|>"],D("|c"),D("|n"))),d(q["<$"],nb(Kc),d(q["<|>"],D("\\c"),D("\\n"))))),wh=d(q["<|>"],d(q["<$"],Cb(Be),D("/+")),d(q["<|>"],d(q["<$"],Cb(Xb),D("|+")),d(q["<$"],Cb(Kc),D("\\+")))),xh=d(Fa,d(q["<$"],Yb,D("x+")),d(q["<$"],gb(Yb),D("X+"))),
yh=d(Fa,d(q["<$"],Va,D("x.")),d(q["<$"],gb(Va),D("X."))),zh=d(Fa,d(q["<$"],Zb,d(q["<|>"],D("oc"),D("on"))),d(q["<$"],gb(Zb),d(q["<|>"],D("Oc"),D("On")))),Ah=d(Fa,d(q["<$"],fb,D("o+")),d(q["<$"],gb(fb),D("O+"))),Bh=d(Fa,d(q["<$"],Wa,D("o.")),d(q["<$"],gb(Wa),D("O."))),Ch=function(a){return d(q["<*>"],d(q["<$>"],e(function(a,c){return{a:"::",b:a,c:c}}),a),mc(a))}(d(Fa,uh,d(Ra,u,k(N,Fa,Zf,{a:"::",b:Bh,c:{a:"::",b:Ah,c:{a:"::",b:zh,c:{a:"::",b:yh,c:{a:"::",b:xh,c:{a:"::",b:wh,c:{a:"::",b:vh,c:{a:"[]"}}}}}}}})))),
nd=d(q["<$>"],function(a){return k(le,m(function(a,c,d){return k(le,m(function(b,c,d){return"Nothing"===c.a?d:k(wa,{a:"_Tuple2",b:b,c:a},c.b,d)}),d,c)}),ra,a)},d(bg,kb,Ch)),Qc=d(q["<*"],function(a){var b=m(function(b,e,g){for(;;){var c=Fd(g.input);if("Just"===c.a){var f=c.b.b;if(a(f)){var h=g.position+1,f=d(Tf,f,"");b=d(p["++"],b,f);g=l.update(g,{input:c.b.c,position:h})}else return{a:"_Tuple3",b:e,c:g,h:b}}else return{a:"_Tuple3",b:e,c:g,h:b}}});return ca(e(function(a,d){var c=k(b,"",a,d);return{a:"_Tuple3",
b:c.b,c:c.c,h:K(c.h)}}))}(function(a){return!l.o(a,l.m("\n"))}),kb),Dh=d(Ra,Ya(function(a){return!l.o(a,"")}),d($f,2,Qc)),Eh=d(q["<*"],D("Hexcells level v1"),kb),Fh=d(q["*>"],Eh,d(q["<*"],d(q["<*>"],d(q["<*>"],d(q["<*>"],d(q["<$>"],nh,Qc),Qc),Dh),nd),od));(function(a){return k(aa,e(function(a,c){return k(wa,a.b,a.c,c)}),ra,a)})({a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:1,c:4},c:Wa},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:2,c:3},c:Va},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:3,c:4},c:Wa},c:{a:"::",
b:{a:"_Tuple2",b:{a:"_Tuple2",b:3,c:2},c:Va},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:4,c:3},c:Wa},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:5,c:4},c:Zb},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:1,c:6},c:fb},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:2,c:5},c:Zb},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:3,c:6},c:Yb},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:4,c:5},c:Va},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:5,c:6},c:Va},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:6,c:5},c:Yb},c:{a:"::",b:{a:"_Tuple2",
b:{a:"_Tuple2",b:1,c:8},c:fb},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:2,c:7},c:fb},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:3,c:8},c:Wa},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:4,c:7},c:fb},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:5,c:8},c:Wa},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:4,c:9},c:Va},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:4,c:1},c:nb(Xb)},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:2,c:1},c:nb(Kc)},c:{a:"::",b:{a:"_Tuple2",b:{a:"_Tuple2",b:1,c:2},c:Cb(Xb)},c:{a:"[]"}}}}}}}}}}}}}}}}}}}}}});
var Gh=e(function(a,b){return d(Ha,{a:"::",b:a,c:{a:"[]"}},{a:"::",b:d(Sg,{a:"::",b:Wg("0"),c:{a:"::",b:Ug("0.866"),c:{a:"::",b:Vg("0"),c:{a:"::",b:Tg("100"),c:{a:"::",b:ta(jb({a:"::",b:{a:"_Tuple2",b:"row-counter-overlay",c:!0},c:{a:"::",b:{a:"_Tuple2",b:"row-counter-active",c:b},c:{a:"[]"}}})),c:{a:"[]"}}}}}},{a:"[]"}),c:{a:"[]"}})}),Je=H(function(a,b,c,e){return{aa:jb({a:"::",b:{a:"_Tuple2",b:"cell",c:!0},c:{a:"::",b:{a:"_Tuple2",b:"disabled",c:!c},c:{a:"[]"}}}),da:a,va:w,za:u(d(Nc,a,!c)),content:{a:"::",
b:Ca(b),c:{a:"::",b:gd(e),c:{a:"[]"}}},I:w}}),Hh=m(function(a,b,c){function e(){return d(ba,Pc,d(B,function(d){return Q(th,d,a,b,c.direction)},Db(a)))}var g=d(ba,0,d(B,function(d){return Q(ph,d,a,b,c.direction)},Db(a))),g=c.Ka?"ConnectedNbhd"===e().a?d(p["++"],"{",d(p["++"],C(g),"}")):d(p["++"],"-",d(p["++"],C(g),"-")):C(g);lc(b);return{aa:jb({a:"::",b:{a:"_Tuple2",b:"row-count",c:!0},c:{a:"::",b:{a:"_Tuple2",b:"disabled",c:!c.enabled},c:{a:"[]"}}}),da:b,va:u(d(He,b,!c.I)),za:u(d(Nc,b,!c.enabled)),
content:{a:"::",b:d(Ha,{a:"::",b:jd(c.direction),c:{a:"[]"}},{a:"::",b:af(g),c:{a:"[]"}}),c:{a:"[]"}},I:u({a:"::",b:d(Gh,jd(c.direction),c.I),c:{a:"[]"}})}}),Ih=m(function(a,b,c){return c.F?{aa:jb({a:"::",b:{a:"_Tuple2",b:"cell flower",c:!0},c:{a:"::",b:{a:"_Tuple2",b:"disabled",c:!c.enabled},c:{a:"[]"}}}),da:b,va:u(d(He,b,!c.I)),za:u(d(Nc,b,!c.enabled)),content:{a:"::",b:Ca("hex mine"),c:{a:"::",b:gd(C(d(qh,a,b))),c:{a:"::",b:Ca("highlight"),c:{a:"[]"}}}},I:u({a:"::",b:d(ed,{a:"::",b:ta(jb({a:"::",
b:{a:"_Tuple2",b:"flower-overlay",c:!0},c:{a:"::",b:{a:"_Tuple2",b:"flower-active",c:c.I},c:{a:"[]"}}})),c:{a:"::",b:fd("0.5,4.33 1,3.464 2,3.464 2.5,2.598 3.5,2.598 4,1.732 3.5,0.866 4,0 3.5,-0.866 4,-1.732 3.5,-2.598 2.5,-2.598 2,-3.464 1,-3.464 0.5,-4.33 -0.5,-4.33 -1,-3.464 -2,-3.464 -2.5,-2.598 -3.5,-2.598 -4,-1.732 -3.5,-0.866 -4,0 -3.5,0.866 -4,1.732 -3.5,2.598 -2.5,2.598 -2,3.464 -1,3.464 -0.5,4.33"),c:{a:"::",b:Da("scale(0.9)"),c:{a:"[]"}}}},{a:"[]"}),c:{a:"[]"}})}:xb(b)}),Jh=e(function(a,
b){return b.F?{aa:"cell",da:a,va:w,za:w,content:{a:"::",b:Ca("hex mine"),c:{a:"[]"}},I:w}:xb(a)}),Kh=m(function(a,b,c){if(c.F){var e=d(rh,a,b);a=c.Ka?"ConnectedNbhd"===d(sh,a,b).a?d(p["++"],"{",d(p["++"],C(e),"}")):d(p["++"],"-",d(p["++"],C(e),"-")):C(e);return Q(Je,b,"hex lightgray",c.enabled,a)}return xb(b)}),Lh=e(function(a,b){return b.F?Q(Je,a,"hex lightgray",b.enabled,"?"):xb(a)}),Ke=m(function(a,b,c){switch(c.a){case "Empty":return d(Lh,b,c.b);case "Count":return k(Kh,a,b,c.b);case "Mine":return d(Jh,
b,c.b);case "Flower":return k(Ih,a,b,c.b);default:return k(Hh,a,b,c.b)}}),Mh=m(function(a,b,c){var e=k(Ke,a,b,c);a=d(I,la(Lb),e.content);b=lc(e.da);c=d(Mb,fa,{a:"::",b:u(ta(e.aa)),c:{a:"::",b:u(b),c:{a:"::",b:d(B,ve,e.va),c:{a:"::",b:d(B,Ze,e.za),c:{a:"[]"}}}}});e=e.I;return"Nothing"===e.a?pc(d(Ha,c,a)):d(ch,d(Ha,{a:"::",b:b,c:{a:"[]"}},d(I,la(Lb),e.b)),pc(d(Ha,c,a)))}),Nh=m(function(a,b,c){a=k(Ke,a,b,c);b=lc(a.da);b={a:"::",b:ta(d(p["++"],a.aa," preview")),c:{a:"::",b:b,c:{a:"[]"}}};return pc(d(la,
Lb,d(Ha,b,a.content)))}),Oh=e(function(a,b){var c=d(ba,ub("0 0 20 16"),d(B,function(a){return ub($c(a))},Db(b)));return d(Hc,{a:"::",b:Z(a),c:{a:"::",b:te("100"),c:{a:"::",b:ue("80"),c:{a:"::",b:c,c:{a:"::",b:Ic("xMidYMid meet"),c:{a:"[]"}}}}}},{a:"::",b:d(Ae,Nh,b),c:{a:"[]"}})}),Rc=m(function(a,b,c){var e=d(ba,ub("0 0 20 16"),d(B,function(a){return ub($c(a))},Db(c)));return d(Hc,{a:"::",b:Z(a),c:{a:"::",b:ta(b),c:{a:"::",b:te("100"),c:{a:"::",b:ue("80"),c:{a:"::",b:e,c:{a:"::",b:Ic("xMidYMid meet"),
c:{a:"[]"}}}}}}},{a:"::",b:d(Ae,Mh,c),c:{a:"[]"}})});Ea(function(a,b,c,d,e,g){return{aa:a,da:b,va:c,za:d,content:e,I:g}});var Sc=d(Aa,function(a){return a.content},e(function(a,b){return l.update(b,{content:a})})),Tc=d(Aa,function(a){return a.level},e(function(a,b){return l.update(b,{level:a})})),vb=vb||{};vb[">>>"]=fe;var Ph=H(function(a,b,c,e){return d(ba,e,d(B,function(f){var g=d(Af,l.o(b,bd),a);return!0===l.o(La(f),g)?k(Vb,d(sb["=>"],qc(d(vb[">>>"],Tc,Sc)),Fb(Ua.get(c))),gb,e):l.update(e,{ka:e.ka+
1})},Fb(Ua.get(c)).s(e.level.content)))}),ac=m(function(a,b,c){switch(b.a){case "Reveal":return Q(Ph,a.ja,b.b,b.c,c);case "ToggleOverlay":return k(Vb,d(sb["=>"],qc(d(vb[">>>"],Tc,Sc)),Fb(Ua.get(b.b))),Ce(b.c),c);default:var e=b.c;return k(Vb,d(sb["=>"],qc(d(vb[">>>"],Tc,Sc)),Fb(Ua.get(b.b))),e?De(e):function(a){return d(Ce,!1,d(De,e,a))},c)}}),Qh=e(function(a,b){var c=jc(b.T),e=c.c,c=u(Za(c.b)),e=u(Za(e)),g=u(d(hb,b.ib(b.T),"Close Fullscreen")),k;a.Ya?(k=a.ja,k=d(Hc,{a:"::",b:Z("intent"),c:{a:"::",
b:ta(k?"flipped":""),c:{a:"::",b:ve(Ge),c:{a:"::",b:ub("-1.2 -1.2 2.4 2.4"),c:{a:"::",b:Ic("xMidYMid meet"),c:{a:"[]"}}}}}},{a:"::",b:d(Ha,{a:"::",b:ta("right-click-intent"),c:{a:"::",b:Da("translate(0.2, -0.1)"),c:{a:"[]"}}},{a:"::",b:Ca("hex"),c:{a:"[]"}}),c:{a:"::",b:d(Ha,{a:"::",b:ta("left-click-intent"),c:{a:"::",b:Da("translate(-0.2, 0.1)"),c:{a:"[]"}}},{a:"::",b:Ca("hex"),c:{a:"[]"}}),c:{a:"[]"}}}),k=u(k)):k=w;return d(E,{a:"[]"},d(Mb,fa,{a:"::",b:c,c:{a:"::",b:e,c:{a:"::",b:g,c:{a:"::",b:k,
c:{a:"[]"}}}}}))}),Rh=m(function(a,b,c){return d(E,{a:"::",b:Z("flexbox-wrapper"),c:{a:"[]"}},{a:"::",b:d(E,{a:"::",b:Z("flexbox-sidebar"),c:{a:"[]"}},{a:"::",b:c,c:{a:"[]"}}),c:{a:"::",b:d(E,{a:"::",b:Z("flexbox-main"),c:{a:"[]"}},{a:"::",b:d(E,{a:"::",b:Z("flexbox-grid"),c:{a:"[]"}},{a:"::",b:a,c:{a:"[]"}}),c:{a:"::",b:b,c:{a:"[]"}}}),c:{a:"[]"}}})}),Sh=e(function(a,b){var c=d(la,cf,k(Rc,"levelView","",b.T.level.content)),e;e=b.T.level.tb;e=d(E,{a:"::",b:Z("flexbox-footer"),c:{a:"::",b:mb("level-comments"),
c:{a:"[]"}}},d(Jf,d(Gc,{a:"[]"},{a:"[]"}),d(I,G,e)));c=k(Rh,c,e,d(Qh,a,b));e=b.T.level;e=d(E,{a:"::",b:Z("levelMeta"),c:{a:"[]"}},{a:"::",b:G(e.title),c:{a:"::",b:d(Gc,{a:"[]"},{a:"[]"}),c:{a:"::",b:G(d(p["++"],"by ",e.rb)),c:{a:"[]"}}}});return d(E,{a:"[]"},{a:"::",b:c,c:{a:"::",b:e,c:{a:"[]"}}})}),Th=m(function(a,b,c){return l.update(c,{T:k(ac,a,b,c.T)})}),Uh=function(){var a=e(function(a,c){return"Nothing"===a.a?w:d(B,e(function(a,b){return{a:"::",b:a,c:b}})(a.b),c)});return d(N,a,u({a:"[]"}))}(),
bc=e(function(a,b){return{a:"InlineExample",b:d(qd,function(a){return{a:"LoadError",b:C(a)}},d(pd,function(b){return d(Oc,a,Zc(b))},kd(b))).b}}),cc=e(function(a,b){return{a:"InlineExample",b:d(ba,{a:"LoadError",b:"At least one level isn't valid."},d(B,$b(a),d(Nd,df,Uh(d(I,function(a){a=kd(a);return d(B,Zc,"Ok"===a.a?u(a.b):w)},b)))))}});e(function(a){return a.level.content});e(function(a,b){return l.update(b,{Ad:a})});var Vh=e(function(a,b){if("Tabbed"===b.a){var c=b.c;return d($b,b.b,d(ba,c,d(mh,
a,c)))}return b}),Wh=e(function(a,b){switch(b.a){case "Plain":return d(Oc,b.b,a);case "Tabbed":return d($b,b.b,k(function(a){return a.set},Mc,a,b.c));default:return b}}),Xh=m(function(a,b,c){switch(c.a){case "Plain":return d(Oc,c.b,k(ac,a,b,c.c));case "Tabbed":return d($b,c.b,k(Cc,Mc,d(ac,a,b),c.c));default:return c}}),Yh=m(function(a,b,c){switch(b.a){case "PuzzleMsg":return k(Xh,a,b.b,c);case "TabChange":return d(Vh,b.b,c);default:return d(Wh,b.b,c)}}),Zh=m(function(a,b,c){return k(hh,b,Yh(a),c)}),
$h=e(function(a,b){return d(Oh,"",b.level.content)}),ai=m(function(a,b,c){return d(E,{a:"::",b:ib({a:"::",b:{a:"_Tuple2",b:"width",c:"100%"},c:{a:"::",b:{a:"_Tuple2",b:"border",c:"1px solid lightgray"},c:{a:"::",b:{a:"_Tuple2",b:"text-align",c:"center"},c:{a:"[]"}}}}),c:{a:"::",b:Eb({a:"TabChange",b:b}),c:{a:"[]"}}},{a:"::",b:d(la,Lb,d($h,a,c)),c:{a:"[]"}})}),bi=m(function(a,b,c){b=la(Lc(b));a=ai(a);c=d(p["++"],pa(c.c),{a:"::",b:c.b,c:c.h});return d(la,yb,Ve(d(I,b,d(Ob,a,c))))}),ci=e(function(a,b){return Xa(hc({T:b,
ib:function(b){return d(Yc,Xa(Fe),yb(d(Lc,a,{a:"MixedPuzzleFullscreenReturn",b:b})))}}))}),Le=H(function(a,b,c,e){return d(la,function(a){return d(Lc,b,{a:"PuzzleMsg",b:a})},d(E,{a:"::",b:Ue(c),c:{a:"[]"}},{a:"::",b:k(Rc,"","inline-grid",e.level.content),c:{a:"[]"}}))}),Me=H(function(a,b,c,e){var f=jc(e),g=f.c;return d(E,{a:"[]"},{a:"::",b:oc({a:"::",b:Za(f.b),c:{a:"::",b:Za(g),c:{a:"::",b:d(hb,d(ci,b,e),"Fullscreen"),c:{a:"[]"}}}}),c:{a:"::",b:d(la,yb,Q(Le,a,b,c,e)),c:{a:"[]"}}})}),di=m(function(a,
b,c){switch(c.a){case "Plain":return d(la,yb,Q(Le,a,b,c.b,c.c));case "Tabbed":var e=c.c;return d(E,{a:"[]"},{a:"::",b:k(bi,a,b,e),c:{a:"::",b:Q(Me,a,b,c.b,jh(e)),c:{a:"[]"}}});default:return d(tb,{a:"[]"},{a:"::",b:G("An error occured: "),c:{a:"::",b:G(c.b),c:{a:"[]"}}})}}),ei=e(function(a,b){return k(fh,di(a),a,b)});m(function(a,b,c){return k(Me,a,b,c)});var fi=ih({a:"::",b:{a:"StaticHtml",b:d(hb,Xa(ic),"Main Menu")},c:{a:"::",b:ua("\n# How to play Elm Sweeper\n\nThis tutorial intends to quickly introduce you to all game mechanics. After\nthis you should be able to play all user made levels. If you prefer learning about\nmechanics one by one as they are gradually introduced, go play the original\nHexcells first.\n\nIn Elm Sweeper you are confronted with a hexagonal grid. Below some of the orange hexes hide mines.\nHexes without mines hold clues to help you figure out where the mines are hidden:\nThe number tells you how many of the adjacent hexes contain mines.\n"),
c:{a:"::",b:{a:"DynamicMarkdown",b:function(a){return d(p["++"],"If you have figured out that a hex is empty you can **reveal it using your ",d(p["++"],a.ja?"left":"right",d(p["++"]," mouse button**. If you know the position of a mine, **mark it with your ",d(p["++"],a.ja?"right":"left","** mouse button."))))}},c:{a:"::",b:{a:"StaticHtml",b:d(tb,{a:"[]"},{a:"::",b:G("You can also "),c:{a:"::",b:d(Fc,{a:"::",b:Eb(Ge),c:{a:"::",b:d(Ja,"href","#"),c:{a:"[]"}}},{a:"::",b:G("exchange the buttons"),c:{a:"[]"}}),
c:{a:"::",b:G(" if you prefer it the other way round."),c:{a:"[]"}}}})},c:{a:"::",b:ua("\n**Todo:** Implement a tablet mode, explain it here and put a *swich on tablet mode* button.\n"),c:{a:"::",b:d(bc,3,"\n..o+..x.........O+\nO+..o+..O+....x...x.\n......x...o+....x.\n"),c:{a:"::",b:ua("\nNot all patterns are quite as easy to uncover. Can you figure out how to solve these two puzzles?\nTry not to guess! I promise that it is possible."),c:{a:"::",b:d(bc,4,"\n..o+............O+....\nO+..O+........x...x...\n..x...o+........o+..O+\nx...o+........O+..o+..\n"),
c:{a:"::",b:ua("\nIf this is your first time playing a puzzle like this here are a few easy levels\nto get you started. If you get stuck, maybe the \u201cMines left\u201d counter can help you.\nFeel free to skip ahead if you feel comfortable already."),c:{a:"::",b:d(cc,7,{a:"::",b:"\n....x...x.........\n..o+..o+..x.......\nO+................\n......O+..O+......\n................x.\n......o+..o+..o+..\n........x...O+....\n",c:{a:"::",b:"\n....X.\n..o+..o+\nO+..O+..O+\n..x...x.\nx...o+..x.\n",c:{a:"::",
b:"\n......x...\n....x.....\n..O+..O+..\nx...x...o+\n..x...o+..\n....O+....\n......x...",c:{a:"::",b:"\nO+..O+..\n..x...o+\no+..x...\n..O+....\n....x...\n..x.....",c:{a:"::",b:"\n....o+....\n..O+..O+..\nx...o+..o+\n..x...x...\n....o+....\n..O+..O+..",c:{a:"::",b:"\n..........O+..\n........x...o+\n......o+......\n....O+..o+..o+\n..o+......o+..\nx...x...O+..o+\n......x.......\nO+..o+..o+..O+\n..o+......x...\n....x...o+....\n..O+..O+......",c:{a:"[]"}}}}}}}),c:{a:"::",b:ua("\n# Connected and Disconnected Neighborhoods\n\nSome hints reveal additional information. When they are surrounded by curly\nbraces, like `{3}`, it means the adjacent cells are all connected.\nDashes as in `-3-` indicate that the adjacent cells form two or more groups.\nHere are some examples:\n\n"),
c:{a:"::",b:d(bc,3,"\n..Oc......On....X.....\nX...X...X...X.....On..\n..X.......O+....X...X.\n"),c:{a:"::",b:ua("\nTo get some practice with these \u201ctyped hints\u201d here are some more levels:"),c:{a:"::",b:d(cc,6,{a:"::",b:"\n....o+....\n..o+..oc..\nx...o+..x.\n..oc..x...\nx.......x.\n..o+..oc..\nOn..on..x.\n..x...x...\n....o+....",c:{a:"::",b:"\n....x.....\n..o+..o+..\no+..on..o+\n..o+..x...\nx.......x.\n..o+..on..\nOn..oc..o+\n..x...x...\n....x.....",c:{a:"::",b:"\n....x.....\n..o+..x...\no+..Oc..O+\n..o+..o+..\n....o+....",
c:{a:"::",b:"\n....o+..........x.....\n......o+......o+......\n....o+..o+..o+..x.....\n..x...x...o+..on..o...\nx.......X...X.......o.\n..o+..x...o+..o+..o+..\n....O+..Oc..O+..Oc....\n......x.......x.......\n....o...........x.....",c:{a:"::",b:"\n............o+....\n..........O+..On..\n....o+..x...x...x.\n..o+..on..o+..o+..\nx...Oc..O+..o...O+\n..o+..x...........\n....x.......o+..o+\n..............o+..",c:{a:"[]"}}}}}}),c:{a:"::",b:ua("\n# Mines on lines\n\nThe next hint to learn about are vertical and diagonal sums. These are located\nat the borders of the levels and indicate how many mines are on a certain line.\n\nThese are sometimes typed as well, but connectedness works subtly different.\nWhile the center `-2-` cell in the example below is disconnected by an empty space,\nthe `{3}` line on the right is connected.\nEmpty space does not break connectedness **on lines**.\n\nWhen you click on a line hint it will display an overlay to help you figure out\nwhich cells are on the line. This is particularly useful for large levels.\n"),
c:{a:"::",b:d(bc,6,"\n\\+......\\n......\\c..........\n..O...|+..O+../+..O+........\n....X.......Oc......X.......\n......O+..X...X.............\n........X.......O.......X...\n......O...X.......X.......X."),c:{a:"::",b:ua("\nPratice makes perfect, take these levels for a spin.\n"),c:{a:"::",b:d(cc,10,{a:"::",b:"\n..|n......|c\n............\n..x...o...o+\n....x...o+..\n..o...x...x.\n\\+..o...o+..\n..x...on..x.\n\\+..o+..x...\n..x...o...x.\n....o+..x...",c:{a:"::",b:"\n......|+......\n....|+........\n..|n..x...|c..\n\\+..o...o.....\n..x...x...o+..\n\\+..on..o.../n\n..o+..o...x...\n....o+..x.....\n..x...o...x...\n....x...x.....\n......x.......",
c:{a:"::",b:"\n........|+..|c..|+..\n..|+..\\+............\n........o...o...x...\n..x...x...x...x.....\n\\+..o+..On..o+..x...\n..o...O+..x...o.....\n....o...o...x...|+..\n..|+..o.........../+\n\\+..............o...\n..o...\\+............\n........x...x...x...\n..x.................\n........x...o+......",c:{a:"[]"}}}}),c:{a:"::",b:ua("\n# Flowers (Hints on Mines)\n\nThe last game element is the \u201cflower\u201d. These are mines which contain a hint.\nHowever, the number doesn't just count directly adjacent mines, but also an\nextra layer. Sounds complicated? Click on a flower to see where it counts mines.\n(Note that the flower itself does not count towards the total.)\n\n"),
c:{a:"::",b:d(cc,10,{a:"::",b:"\n..........o+..........\n....X...x...o+..x.....\n..o+......on......o+..\nX+..X...O+..X+..x...O+\n..o+......x.......oc..\n....X...o...o+..x+....\n..........o+..........",c:{a:"::",b:"\n....|n......\n..|c........\n\\+..x...o+..\n..o+..o+..x.\n....o+..o+..\n..x+......x.\n....x...x+..\n..x...o+..o+\n....o+..o+..",c:{a:"::",b:"\n..........x...o+..........\n........x+..o+..o.........\n..........on..x+..........\n....x.......x.......x+....\n..x...x...oc..o+..x+..o...\nO+..Oc..O+..x+..o+......o+\n..o+..x+..o+..o...o+..o...\n....o+......o+......o+....\n..........oc..o...........\n........o+..x+..x+........\n..........x...x...........",
c:{a:"::",b:"\n......x...x.......\n........X+........\n......|+..|c......\n....|n......|c....\n......o+..o+......\n\\c..x...o+..oc../+\n..o+..x...x...o+..\n....o+......x.....\n..x+..o+..x...o+..\n....o+..x...x.....\n......x...x.......\n........x...|+....\n..o+../+..\\+..x...\n....o+......x.....\n..x...........o+..\n....x.......o+....",c:{a:"::",b:"\n............|c............\n..........................\n........\\n..o+............\n..........x...x...........\n............x.............\n..\\+......\\+......\\+../+..\n\\c..x+..\\+..x.......o+../+\n..o+..x...o+..o+..x...x...\n....o+..o+..x...x...o+../+\n..o+..x...x...o+..x...x...\n....x.......x.......o+....\n..........................\n............x.............\n..........o+..o+..........\n............x.............",
c:{a:"::",b:"\n..........|+................\n................/c..........\n..........o+..x.../+........\n....|c..o+..x...x...........\n..........x...o...|n..|c....\n\\+..o+......oc......x+......\n..o+..oc../+......x+..o+../+\nx...o...x+......o+..x...o...\n..o...x...........o+..x.....\no...x+..x.......x...o+..x...\n..o+..o+..........x...x+....\n....x+......o.../+..x.......\n..........o...o+............\n........x+..o+..x...........\n..........x...o.............",c:{a:"::",b:"\n..........|+............\n........................\n..|c......x+..x+........\n............|+..........\n..o...................o+\n....x...|+..x.......o...\n..on..o+..o...oc..x...o.\n\\+..o+..x...x...on..x...\n..x+..|+..o...x.......x+\n....x...x+..x...o...x+..\n..|+..on..o...o...o.....\n........o+..o...x.......\n..x.......x...oc......x+\n........o...x...x+......\n..\\+..o+..x+..x+..o+....\n....x...o+..o+..o+..oc..\n..x+......x+..x.......x+\n....x...o+..x...x...x...\n..x...x...o...x...x...on\n....x.......o+......o+..\n..o+..................x.",
c:{a:"::",b:"\n........|c....................\n..|+..........................\n\\+......o+....................\n..x...\\n..o...................\n........x+..x+..|n............\n..........x.......|+..........\no.......x+..o+..x+............\n..O+......o+......o.../+......\nx+..x+......x+..o...x.........\n..o...\\+../+......x+..........\nO+..On..o...|+..x...o...o.....\n..x.......x.......x.......o...\n....o...o...o+......o+..o+..o+\n..........x+..\\+......\\+..x...\nx+......oc..x+..o.......x...on\n..x.......x.......x.......o+..\noc..o.......o...x+..o+......x.\n..o+..............o+..........\no+..............on..x+..o+....\n..................x.......o+..\n....................o...x.....",
c:{a:"::",b:"\n..............|c..........\n............|+............\n......|n..o...o+..|+......\n........x...x...o+..|+....\n......x...o...o+..on......\n....x+..x.......x+..x.....\n......o...x+..o...o+..|+..\n....o...oc......o...o.....\n..o.......o+..x.......x...\n....oc..............o.....\n..x...o...........x...x...\n....x+..x+..X+..x+..o+....\n..o...on..........o...o+..\n\\c..x...............x.../+\n..x.......x...x.......o...\n....x...o.......o...x+....\n......x...x...o...x.......\n....x...x+......x...x+....\n......o...oc..o...x.......\n........o...o...x.........\n..........o+..o...........",
c:{a:"::",b:"\n..........|+..|c..........\n........|+................\n..........o...x.../+......\n....|n..o+..x...x+........\n......o...o...x...o.......\n....x+..o.......o...o.....\n......o...o...x+..o.......\n....x+..x.......o...x+../c\n..o+......x...o...|n..o...\n....x...............x.....\n..x...o...........x...o...\n\\+..x+..o...X+..x...x+....\n..o+..o...........oc..x...\n....o...............oc....\n..o.......x+..o+......x+..\n....x...x.......oc..o.....\n......o...o...o...x.../+..\n....on..o.......x...x.....\n......x+..x...o...x.......\n........x...x...o.........\n..........x+..o+..........",
c:{a:"[]"}}}}}}}}}}}),c:{a:"[]"}}}}}}}}}}}}}}}}}}}}}),gi=e(function(a,b){var c=jc(b),e=c.c;return d(E,{a:"[]"},{a:"::",b:oc({a:"::",b:Za(c.b),c:{a:"::",b:Za(e),c:{a:"::",b:d(hb,Te(b),"Fullscreen"),c:{a:"[]"}}}}),c:{a:"::",b:d(la,function(a){return wb({a:"UserLevelMsg",b:a})},d(E,{a:"::",b:ib({a:"::",b:{a:"_Tuple2",b:"height",c:"27em"},c:{a:"[]"}}),c:{a:"[]"}},{a:"::",b:k(Rc,"","inline-grid",b.level.content),c:{a:"[]"}})),c:{a:"[]"}}})}),hi=d(Qg,{a:"::",b:Eb(wb({a:"PasteBoxEdit",b:""})),c:{a:"[]"}},
{a:"::",b:G("Clear Level"),c:{a:"[]"}}),Ne=d(tb,{a:"[]"},{a:"::",b:G("Community made levels are collected on "),c:{a:"::",b:d(Fc,{a:"::",b:d(Ja,"href","https://www.reddit.com/r/hexcellslevels/"),c:{a:"[]"}},{a:"::",b:G("/r/hexcellslevels"),c:{a:"[]"}}),c:{a:"::",b:G("."),c:{a:"[]"}}}}),ii=e(function(a,b){switch(b.a){case "Empty":return d(E,{a:"[]"},{a:"::",b:Ne,c:{a:"::",b:G(""),c:{a:"::",b:Wc(""),c:{a:"[]"}}}});case "TextEntry":var c;c=b.c;c=d(tb,{a:"[]"},{a:"::",b:G("This doesn't look like a valid Hexcells level. Maybe the error message helps?"),
c:{a:"::",b:d(Gc,{a:"[]"},{a:"[]"}),c:{a:"::",b:G(C(c)),c:{a:"[]"}}}});return d(E,{a:"[]"},{a:"::",b:Ne,c:{a:"::",b:c,c:{a:"::",b:Wc(b.b),c:{a:"[]"}}}});default:return d(E,{a:"[]"},{a:"::",b:d(gi,a,b.b),c:{a:"::",b:hi,c:{a:"[]"}}})}}),ji=e(function(a,b){return{a:"TextEntry",b:a,c:b}}),Oe={a:"Empty"},ki=m(function(a,b,c){switch(b.a){case "PasteBoxEdit":return a=b.b,l.o(a,"")?a=Oe:(b=ld(d(md,Fh,a)),a="Err"===b.a?d(ji,a,b.b):fc({level:b.b,ka:0})),a;case "UserLevelMsg":return"LevelLoaded"===c.a?fc(k(ac,
a,b.b,c.b)):c;default:return fc(b.b)}}),li=Sa({Ha:ic,$a:fi,Ua:Oe,R:{ja:!0,Ya:!1}}),mi={s:function(a){a=a.Ha;return"FullscreenView"===a.a?u(a.b):w},set:e(function(a,b){return l.update(b,{Ha:hc(a)})})},ni=d(Aa,function(a){return a.Ya},e(function(a,b){return l.update(b,{Ya:a})})),oi=d(Aa,function(a){return a.ja},e(function(a,b){return l.update(b,{ja:a})})),Pe=d(Aa,function(a){return a.R},e(function(a,b){return l.update(b,{R:a})})),dc=dc||{};dc[">>>"]=fe;var Uc=e(function(a,b){switch(a.a){case "FullscreenMsg":return Sa(k(Vb,
mi,d(Th,b.R,a.b),b));case "MixedPuzzleMsg":return Sa(l.update(b,{$a:k(Zh,b.R,d(Bf,"msg",a.b),b.$a)}));case "FlipControlls":return Sa(k(Cc,d(dc[">>>"],Pe,oi),Md,b));case "FlipTabletMode":return Sa(k(Cc,d(dc[">>>"],Pe,ni),Md,b));case "SetRoute":return Sa(l.update(b,{Ha:a.b}));case "PasteBoxMsg":return Sa(l.update(b,{Ua:k(ki,b.R,a.b,b.Ua)}));default:return d(yc,Uc(a.c),d(Uc,a.b,b))}}),Qe=Og({N:li,view:function(a){var b=a.Ha;switch(b.a){case "FullscreenView":return d(Sh,a.R,b.b);case "MainMenu":return a=
{a:"::",b:d(Pg,{a:"[]"},{a:"::",b:G("Elm Sweeper"),c:{a:"[]"}}),c:{a:"::",b:d(tb,{a:"[]"},{a:"::",b:G("Elm Sweeper aims to reimplement the puzzle mechanicsof "),c:{a:"::",b:d(Fc,{a:"::",b:d(Ja,"href","http://store.steampowered.com/app/265890/"),c:{a:"[]"}},{a:"::",b:G("Hexcells"),c:{a:"[]"}}),c:{a:"::",b:G(" as a web application. Hexcells is a supercharged Minesweeper with hand crafted levels."),c:{a:"[]"}}}}),c:{a:"::",b:oc({a:"::",b:d(hb,Xa(Fe),"Tutorial"),c:{a:"::",b:d(hb,oh,"Swich Tablet Mode"),
c:{a:"[]"}}}),c:{a:"::",b:d(ii,a.R,a.Ua),c:{a:"[]"}}}}},d(E,{a:"::",b:Z("outer-text-container"),c:{a:"[]"}},{a:"::",b:d(E,{a:"::",b:Z("inner-text-container"),c:{a:"[]"}},a),c:{a:"[]"}});default:return d(ei,a.R,a.$a)}},update:Uc,Z:function(){return Ud}})();H(function(a,b,c,d){return{Ha:a,$a:b,Ua:c,R:d}});var Ia={};Ia.Main=Ia.Main||{};"undefined"!==typeof Qe&&Qe(Ia.Main,"Main",void 0);if("function"===typeof define&&define.amd)define([],function(){return Ia});else if("object"===typeof module)module.exports=
Ia;else{var Vc=this.Elm;if("undefined"===typeof Vc)this.Elm=Ia;else for(var ec in Ia){if(ec in Vc)throw Error("There are two Elm modules called `"+ec+"` on this page! Rename one of them.");Vc[ec]=Ia[ec]}}}).call(this);