-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.client.dart.js_72.part.js
More file actions
88 lines (88 loc) · 2.66 KB
/
Copy pathmain.client.dart.js_72.part.js
File metadata and controls
88 lines (88 loc) · 2.66 KB
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
((a,b)=>{a[b]=a[b]||{}})(self,"$__dart_deferred_initializers__")
$__dart_deferred_initializers__.current=function(a,b,c,$){var B,E,F,G,D,H,I,K,L,M,A={
v0(){return new A.cA(null)},
cA:function cA(d){this.a=d},
bP:function bP(d,e,f,g,h){var _=this
_.c=d
_.d=e
_.e=f
_.a=g
_.b=h},
ie:function ie(d){this.d=d
this.c=this.a=null},
mL:function mL(d,e){this.a=d
this.b=e},
id:function id(d,e,f,g){var _=this
_.c=d
_.d=e
_.e=f
_.a=g},
mK:function mK(d){this.a=d}},C,N,O
B=c[0]
E=c[2]
F=c[46]
G=c[54]
D=c[55]
H=c[51]
I=c[50]
K=c[36]
L=c[32]
M=c[39]
A=a.updateHolder(c[16],A)
C=c[70]
N=c[45]
O=c[56]
A.cA.prototype={
W(){return new A.ie(C.v)}}
A.bP.prototype={
a7(){return"_Theme."+this.b}}
A.ie.prototype={
a_(){var x=this,w=b.G.document.body.classList
if(w.contains("auto-mode"))x.d=C.D
else if(w.contains("dark-mode"))x.d=C.a6
else if(w.contains("light-mode"))x.d=C.v
else{x.d=C.v
w.add("light-mode")}x.a2()},
hq(d){var x,w,v,u,t,s
if(d===this.d)return
x=b.G
w=x.document.body.classList
for(v=0;v<3;++v)w.remove(C.W[v].b+"-mode")
u=d.b+"-mode"
w.add(u)
if(d===C.D){t=x.window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-mode":"light-mode"
w.add(t)}try{x.window.localStorage.setItem("theme",u)}catch(s){}this.M(new A.mL(this,d))},
q(d){var x,w,v,u,t,s=null,r=y.g
r=B.G(["role","listbox"],r,r)
x=y.p
w=B.b([],x)
for(v=this.ghp(),u=0;u<3;++u){t=C.W[u]
w.push(new A.id(t,this.d===t,v,s))}return new K.c7("theme-switcher",C.ac,new I.F(s,"dropdown-menu",s,s,B.b([L.ou(w,r,s)],x),s),s)}}
A.id.prototype={
q(d){var x=null,w=y.g,v=B.G(["click",new A.mK(this)],w,y.a),u=this.c,t=u.d
w=B.G(["title",t,"aria-label",t,"aria-selected",String(this.d)],w,w)
t=y.p
return M.iu(B.b([H.dq(B.b([F.oP(u.e),new G.J(x,x,x,x,B.b([new B.r(u.c,x)],t),x)],t),w,x,v,x,x,x)],t),x,x,x)}}
var z=a.updateTypes(["~(bP)"])
A.mL.prototype={
$0(){this.a.d=this.b},
$S:0}
A.mK.prototype={
$1(d){var x=this.a
x.e.$1(x.c)},
$S:1};(function installTearOffs(){var x=a._instance_1u
x(A.ie.prototype,"ghp","hq",0)})();(function inheritance(){var x=a.inherit
x(A.cA,D.a1)
x(A.bP,B.b6)
x(A.ie,D.Y)
x(A.mL,B.a9)
x(A.id,B.m)
x(A.mK,B.P)})()
B.w(b.typeUniverse,JSON.parse('{"cA":{"e":[]},"id":{"m":[],"e":[]}}'))
var y={p:B.d("j<e>"),g:B.d("a"),a:B.d("~(p)")};(function constants(){var x=a.makeConstList
C.ac=new N.bY(null,"Select a theme.",O.f,"routine",null,E.h,!1,null,null,null)
C.v=new A.bP("\u6d45\u8272","Switch to the light theme.","light_mode",0,"light")
C.a6=new A.bP("\u6df1\u8272","Switch to the dark theme.","dark_mode",1,"dark")
C.D=new A.bP("\u8ddf\u968f\u7cfb\u7edf","Match theme to device theme.","night_sight_auto",2,"auto")
C.W=x([C.v,C.a6,C.D],B.d("j<bP>"))})()};
(a=>{a["wIjuujYzfVrB5nxtBc6xg6U4iDc="]=a.current})($__dart_deferred_initializers__);