-
Notifications
You must be signed in to change notification settings - Fork 2
/
server.R
748 lines (645 loc) · 23.2 KB
/
server.R
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
server <- function(input, output, session) {
# Close session after closing app --------------------------
session$onSessionEnded(stopApp) # commenting out to test using lighthouse
# Cookies ====================================================
output$cookies_status <- cookies_banner_server(
input_cookies = shiny::reactive(input$cookies),
parent_session = session,
google_analytics_key = google_analytics_key
)
cookies_panel_server(
input_cookies = shiny::reactive(input$cookies),
google_analytics_key = google_analytics_key # # nolint: [object_usage_linter]
)
# Links to tabs --------------------------------------------
observeEvent(input$link_to_industryFlow_tab, {
# updateTabsetPanel(session, "navbar", selected = "industryFlow")
# Cathie changed navbar to navlistPanel for the four links
updateTabsetPanel(session, "navlistPanel", selected = "industryFlow")
})
observeEvent(input$link_to_regional_tab, {
# updateTabsetPanel(session, "navbar", selected = "regional")
updateTabsetPanel(session, "navlistPanel", selected = "regional")
})
observeEvent(input$link_to_subjectByIndustry_tab, {
# updateTabsetPanel(session, "navbar", selected = "subjectByIndustry")
updateTabsetPanel(session, "navlistPanel", selected = "subjectByIndustry")
})
observeEvent(input$link_to_industryBySubject_tab, {
# updateTabsetPanel(session, "navbar", selected = "industryBySubject")
updateTabsetPanel(session, "navlistPanel", selected = "industryBySubject")
})
# Added by Cathie - makes the drop down in industry flow page have a reactive title
# observe({
# if(input$navlistPanel == "industryFlow") {
# change_window_title(
# session,
# paste0(
# site_title, " - ",
# input$qualinput, ", ",
# input$indflow.subjectinput, ", ",
# input$sexinput))
# }
# else{
# change_window_title(
# session,
# paste0(
# site_title, " - ",
# input$navlistPanel
# )
# )
# }})
# p2: Industry flow page -----------------------------
### Label for filters selected --------------------------------
# First, create an object for male and female, as the values of input$sexinput are M,F,F&M
sexselection <- reactive(ifelse(input$sexinput == "F", "Females",
ifelse(input$sexinput == "M", "Males",
"Females and Males"
)
))
# sexselection <- reactive(list(
# "Female & male" = "F+M",
# "Female" = "F",
# "Male" = "M"))
output$dropdown_label <- renderText({
paste0(
"Current selections: Qualification is ", input$qualinput,
", Subject area is ", input$indflow.subjectinput,
", Graduates incuded are ", sexselection()
)
})
### Sankey functions --------------------------------------------------------
# Update the select input box in the Industry Flow analysis based on the
# selected qualification.
observe({
if (input$qualinput != "All") {
data_filtered <- qual_subjects %>%
filter(qualification_TR == input$qualinput) %>%
distinct()
} else {
data_filtered <- qual_subjects
}
updateSelectizeInput(session, "indflow.subjectinput",
choices = unique(c("All", data_filtered$subject_name))
)
})
# Here's the sankey network plot. It's calculated using reactive, which only
# updates if any of the three input variables have changed since the last time
# it was called.
reactiveSankey <- reactive(
sankey_chart(
input$indflow.subjectinput,
input$sexinput,
input$qualinput
)
)
output$sankey <- renderSankeyNetwork({
reactiveSankey()
})
output$sankey_flag <- renderUI({
if (!type_sum(reactiveSankey()) == "snkyNtwr") {
tagList(br(), h3("No data found for the selected filters."))
} else {
NULL
}
})
output$sankey_title <- renderText({
sankey_title(input$indflow.subjectinput, input$sexinput, input$qualinput)
})
# Here's the sankey table render.
reactiveSankeyTable <- reactive({
sankey_table(input$indflow.subjectinput, input$sexinput, input$qualinput)
})
output$sankey_table <- renderReactable({
reactiveSankeyTable()
})
# Putting both the text outputs in a reactive container as they've got some
# calculations embedded in them.
reactiveSankeyText1 <- reactive({
sankeytext1(input$indflow.subjectinput, input$sexinput, input$qualinput)
})
output$sankeytext1 <- renderText({
reactiveSankeyText1()
})
reactiveSankeyText2 <- reactive({
sankeytext2(input$indflow.subjectinput, input$sexinput, input$qualinput)
})
output$sankeytext2 <- renderText({
reactiveSankeyText2()
})
# output$earningstext <- renderText({
# earnings_text(input$indflow.subjectinput, input$sexinput)
# })
# output$earnings_sankey <- renderSankeyNetwork({
# earnings_sankey(input$indflow.subjectinput, input$sexinput, input$Earningsinput)
# })
#
# output$earnings_table <- renderReactable({
# earnings_table(input$indflow.subjectinput, input$sexinput, input$Earningsinput)
# })
# p3: Regional page =================================
### Dropdown filters ===============================
output$regional_dropdown_label <- renderText({
paste0(
"Current selections: Qualification is ", input$regional_input_qual,
", Years after graduation: ", input$regional_input_YAG,
", Industry is ", input$regional_input_industry,
", Subject area studied is ", input$regional_input_subject
)
})
# p4: Subject by industry page (Industry by subject on the updated dashboard) =======================
### Cathie, August/Sept 2024.
### The names of subject by industry and industry by subject are potentially very confusing.
### The original code presented page 4 as Subject by industry, and page 5 as Industry by subject.
### All the code is written this way.
### However, the breakdowns in the dashboard are actually the other way around and so
### on the dashboard, the names of these pages have been switched. The code remains as it was.
### Dropdown filters ------------------------
output$subject_by_industry_dropdown_label <- renderText({
paste0(
"Current selections: Output is ", input$earningsbutton,
", Qualification is ", input$qualinput3,
", Years after graduation is ", input$YAGinput2,
", Subject area studied is ", input$crosstabs.subjectinput,
", Breakdown is by ",
ifelse(input$countinput2 == "current_region", "region of residence 2021-22 tax year",
ifelse(input$countinput2 == "FSM", "free school meals status",
ifelse(input$countinput2 == "prior_attainment", "prior attainment",
ifelse(input$countinput2 == "subject_name", "subject area studied",
ifelse(input$countinput2 == "qualification_TR", "qualification level", input$countinput2)
)
)
)
)
)
})
# p5: Industry by subject page =======================
### Dropdown filters ------------------------
output$industry_by_subject_dropdown_label <- renderText({
paste0(
"Current selections: Output is ", input$earningsbutton2,
", Qualification is ", input$qualinput4,
", Years after graduation is ", input$YAGinput3,
", Industry is ", input$sectionnameinput2, ", ", input$groupinput,
", Breakdown is by ",
ifelse(input$countinput3 == "current_region", "region of residence 2021-22 tax year",
ifelse(input$countinput3 == "FSM", "free school meals status",
ifelse(input$countinput3 == "prior_attainment", "prior attainment",
ifelse(input$countinput3 == "qualification_TR", "qualification level", input$countinput3)
)
)
)
)
})
# Map functions -----------------------------------------------------------
observe({
data_filtered <- regional_movement_data %>%
filter(
qualification_TR == input$regional_input_qual,
SECTIONNAME == input$regional_input_industry,
count >= 3,
YAG == input$regional_input_YAG
) %>%
distinct()
updateSelectizeInput(
session, "regions.subjectinput",
choices = unique(c("All", data_filtered$subject_name))
)
})
reactiveRegionTable <- reactive({
create_maptabledata(
data, regional_movement_data,
input$regional_input_industry, input$regional_input_subject, input$regional_input_YAG,
input$regional_input_qual
)
})
reactiveMapInput <- reactive({
map_chart(reactiveRegionTable(), input$countinput)
})
output$map <- renderLeaflet({
reactiveMapInput()
})
output$map_title <- renderText({
map_title(
input$regional_input_industry, input$regional_input_subject,
input$countinput, input$regional_input_YAG, input$regional_input_qual
)
})
output$maptext <- renderText({
map_text(
reactiveRegionTable(), input$regional_input_industry,
input$regional_input_subject, input$regional_input_YAG, input$regional_input_qual
)
})
output$maptext2 <- renderText({
map_text2(
reactiveRegionTable(), input$regional_input_industry,
input$regional_input_subject, input$regional_input_YAG, input$regional_input_qual
)
})
output$maptable <- renderReactable(
create_regions_table(reactiveRegionTable(), input$regioninput)
)
# Putting the regional sankey in a reactive as well as it's a bit intensive.
reactiveRegionalSankey <- reactive({
data <- create_regionalsankeyframe(input$regional_input_industry, input$regional_input_subject, input$regional_input_YAG, input$regional_input_qual)
validate(
need(nrow(data$nodes) >= 1, "
There is no data available.")
)
regional_sankey(as.data.frame(data$links), as.data.frame(data$nodes))
})
output$regional_sankey <- renderSankeyNetwork({
reactiveRegionalSankey()
})
output$regional_sankey_title <- renderText({
regional_sankey_title(input$regional_input_industry, input$regional_input_subject, input$regional_input_YAG, input$regional_input_qual)
})
# Tables functions --------------------------------------------------------
reactiveSubjbyIndGroupedSummary <- reactive({
subjbyind_grouped_summary(input$crosstabs.subjectinput, input$YAGinput2, input$countinput2, input$qualinput3)
})
reactiveSubjbyIndGroupedData <- reactive({
subjbyind_grouped_data(input$crosstabs.subjectinput, input$YAGinput2, input$countinput2, input$qualinput3)
})
reactiveSubjbyIndText <- reactive({
crosstab_text(reactiveSubjbyIndGroupedSummary(), input$crosstabs.subjectinput, input$YAGinput2, input$countinput2, input$qualinput3)
})
output$crosstab_text <- renderText({
x <- reactiveSubjbyIndText()
return(x)
})
reactiveSubjIndTable <- reactive({
crosstabs(
reactiveSubjbyIndGroupedData,
input$crosstabs.subjectinput,
input$YAGinput2,
input$countinput2,
input$qualinput3,
input$earningsbutton
)
})
output$crosstab <- renderReactable({
table_data <- reactiveSubjIndTable()
crosstabs_reactable(
table_data$crosstabs_data,
table_data$nested_crosstabs,
table_data$numeric_cols_def,
table_data$nested_numeric_cols_def,
table_data$script
)
})
# Downloads of data from p4 and p5 ----------------------------
# Cathie work on this bit
# Download p4 data with current selections from the dropdown menu
output$downloadData_p4 <- downloadHandler(
filename = function() {
prefix <- "DfE_LEO-SIC"
suffix <- "IndustryBySubject.csv"
if (input$countinput2 == "subject_name") {
paste(prefix,
gsub(" ", "-", input$earningsbutton),
input$countinput2,
paste0(input$YAGinput2, "YAG"),
gsub(" ", "-", input$qualinput3),
suffix,
sep = "_"
)
} else if (input$countinput2 == "sex") {
paste(prefix,
gsub(" ", "-", input$earningsbutton),
input$countinput2,
paste0(input$YAGinput2, "YAG"),
gsub(" ", "-", input$qualinput3),
input$crosstabs.subjectinput,
suffix,
sep = "_"
)
} else {
paste(prefix,
gsub(" ", "-", input$earningsbutton),
input$countinput2,
paste0(input$YAGinput2, "YAG"),
input$crosstabs.subjectinput,
suffix,
sep = "_"
)
}
},
content = function(file) {
table_data <- reactiveSubjIndTable()
out_columns <- colnames(table_data$crosstabs_data)
footsum <- table_data$footer_crosstabs %>%
select(-SECTIONNAME, -group_name) %>%
summarise_all(sum) %>%
mutate(SECTIONNAME = "TOTAL (N)", group_name = "TOTAL (N)") %>%
select(out_columns)
dfDownload <- rbind(
table_data$crosstabs_data,
table_data$nested_crosstabs %>%
select(out_columns)
)
if (input$earningsbutton == "Proportions") {
dfDownload <- dfDownload %>%
# Cathie changes mutate_if() to mutate(across()) as mutate_if isn't supported by more recent version of dplyr
# mutate_if(is.numeric, list(~ (100.0 * .)))
mutate(across(where(is.numeric), ~ if_else(. == 0, 0, . / sum(., na.rm = TRUE))))
}
dfDownload <- dfDownload %>%
# Cathie changes mutate_if() and mutate_all() to mutate(across()) as mutate_if isn't supported by more recent version of dplyr
# mutate_if(is.numeric, list(~ gsub(" ", "", format(., scientific = FALSE)))) %>%
mutate(across(where(is.numeric), list(~ gsub(" ", "", format(., scientific = FALSE))))) %>%
# mutate_all(list(~ gsub("-10000", "c", .))) %>%
# mutate_all(list(~ ifelse(. %in% c("NA", "NaN"), "x", .))) %>%
mutate(across(everything(~ ifelse(. %in% c("-10000"), "c", .)))) %>%
mutate(across(everything(~ ifelse(. %in% c("NA", "NaN"), "x", .)))) %>%
arrange(SECTIONNAME, group_name) %>%
# added by Cathie
select(out_columns) %>%
# end of addition by Cathie
rbind(footsum)
write.csv(dfDownload, file, row.names = FALSE)
}
)
# p5: IndSubj panel server code ============================
### Create the reactive Industry by Subject data in a data frame ===================
reactiveIndSubjTable <- reactive({
backwards_crosstabs(input$sectionnameinput2, input$YAGinput3, input$countinput3, input$qualinput4, input$earningsbutton2, input$groupinput)
})
# Render the reactive industry by subject data frame into a ReacTable element.
# Cathie adding this clause that gives warning message if low numbers instead of table
output$crosstab_backwards <- renderReactable({
table_data <- reactiveIndSubjTable()
indsubj_reactable(
table_data$data,
table_data$coldefs
)
})
### Download the reactive industry by subject data.=========================
# output$IndSubjDownload <- downloadHandler(
output$downloadData_p5 <- downloadHandler(
filename = function() {
prefix <- "DfE_LEO-SIC"
suffix <- "SubjectByIndustry.csv"
if (input$countinput3 == "SECTIONNAME") {
paste(prefix,
gsub(" ", "-", input$earningsbutton2),
"industry",
paste0(input$YAGinput3, "YAG"),
suffix,
sep = "_"
)
} else if (input$countinput3 == "sex") {
paste(prefix,
gsub(" ", "-", input$earningsbutton2),
input$countinput3,
paste0(input$YAGinput3, "YAG"),
gsub(" ", "-", input$qualinput4),
input$sectionnameinput2,
input$groupinput,
suffix,
sep = "_"
)
} else {
paste(prefix,
gsub(" ", "-", input$earningsbutton2),
input$countinput3,
paste0(input$YAGinput3, "YAG"),
input$sectionnameinput2,
input$groupinput,
suffix,
sep = "_"
)
}
},
content = function(file) {
table_data <- reactiveIndSubjTable()
out_columns <- colnames(table_data$data)
footsum <- table_data$footer %>%
select(-subject_name) %>%
summarise_all(sum) %>%
mutate(subject_name = "TOTAL (N)") %>%
select(out_columns)
dfDownload <- table_data$data
if (as.character(input$earningsbutton2) == "Proportions") { ## Cathie added as.character()
dfDownload <- dfDownload %>%
mutate_if(is.numeric, list(~ (100.0 * .)))
# mutate(across(where(is.numeric), ~ list(~ (100.0 * .))))
} else {
dfDownload <- dfDownload %>%
mutate_if(is.numeric, list(~ gsub(" ", "", format(., scientific = FALSE)))) %>%
# mutate_all(list(~ gsub("-10000", "c", .))) %>%
# mutate_all(list(~ ifelse(. %in% c("NA", "NaN"), "x", .))) %>%
# mutate(across(where(is.numeric), ~ list(~ gsub(" ", "", format(., scientific = FALSE))))) %>%
mutate(across(everything(~ ifelse(. %in% c("-10000"), "c", .)))) %>%
mutate(across(everything(~ ifelse(. %in% c("NA", "NaN"), "x", .)))) %>%
arrange(subject_name) %>%
rbind(footsum)
}
write.csv(dfDownload, file, row.names = FALSE)
}
)
# output$crosstab_title <- renderText({
# crosstab_title(input$crosstabs.subjectinput, input$YAGinput2, input$countinput2, input$qualinput3)
# })
# output$crosstab_title <- renderText(
# paste("<h2>Industries that graduates work in by the subject area they studied, ",
# tax_year_slash, " tax year.</h2>")
# )
output$backwards_crosstab_title <- renderText({
backwards_crosstab_title(input$sectionnameinput2, input$YAGinput3, input$countinput3, input$qualinput4, input$groupinput)
})
output$sankeyhelp <- renderText({
paste(a(h4("How to read this sankey?")))
})
# Conditional panel replacements ####
# Qualification input condition (sub by ind) ----
observeEvent(input$countinput2, {
x <- input$countinput2
if (!x %in% c("sex", "subject_name")) {
updateSelectInput(
session,
"qualinput3",
label = "Select qualification level",
choices = list(
"First degree"
),
selected = "First degree"
)
}
if (x %in% c("sex", "subject_name")) {
updateSelectInput(
session,
"qualinput3",
label = "Select qualification level",
choices = list(
"First degree",
"Level 7 (taught)",
"Level 7 (research)",
"Level 8"
)
)
}
})
# Subject input condition (sub by ind) ----
observeEvent(input$qualinput3, {
if (input$qualinput3 != "All") {
data_filtered <- qual_subjects %>%
filter(qualification_TR == input$qualinput3) %>%
distinct()
} else {
data_filtered <- qual_subjects
}
updateSelectInput(
session, "crosstabs.subjectinput",
choices = na.exclude(unique(c("All", data_filtered$subject_name)))
)
})
observeEvent(input$countinput2, {
x <- input$countinput2
if (x == "subject_name") {
updateSelectInput(
session,
"crosstabs.subjectinput",
label = "Select a subject area",
choices = list(
"All"
),
selected = "All"
)
} else {
if (input$qualinput3 != "All") {
data_filtered <- qual_subjects %>%
filter(qualification_TR == input$qualinput3) %>%
distinct()
} else {
data_filtered <- qual_subjects
}
updateSelectInput(
session, "crosstabs.subjectinput",
choices = na.exclude(unique(c("All", data_filtered$subject_name)))
)
}
})
# Qualification input condition (ind by sub) ----
observeEvent(input$countinput3, {
x <- input$countinput3
if (!x %in% c("sex", "subject_name")) {
updateSelectInput(
session,
"qualinput4",
label = "Select qualification level",
choices = list(
"First degree"
),
selected = "First degree"
)
}
if (x %in% c("sex", "subject_name")) {
updateSelectInput(
session,
"qualinput4",
label = "Select qualification level",
choices = list(
"First degree",
"Level 7 (taught)",
"Level 7 (research)",
"Level 8"
)
)
}
})
# Industry input condition (ind by sub) ----
observeEvent(input$countinput3, {
x <- input$countinput3
if (x == "SECTIONNAME") {
updateSelectInput(
session,
"sectionnameinput2",
label = "Select industry section",
choices = list(
"Education"
),
selected = "Education"
)
} else {
updateSelectInput(
session,
"sectionnameinput2",
label = "Select industry section",
choices = list(
"Accommodation and food service activities",
"Activities of extraterritorial organisations and bodies",
"Activities of households as employers - undifferentiated goods-and services-producing activities of households for own use",
"Administrative and support service activities",
"Agriculture, forestry and fishing",
"Arts, entertainment and recreation",
"Construction",
"Education",
"Electricity, gas, steam and air conditioning supply",
"Financial and insurance activities",
"Human health and social work activities",
"Information and communication",
"Manufacturing",
"Mining and quarrying",
"Other service activities",
"Professional, scientific and technical activities",
"Public administration and defence - compulsory social security",
"Real estate activities",
"Transportation and storage",
"Water supply - sewerage, waste management and remediation activities",
"Wholesale and retail trade - repair of motor vehicles and motorcycles"
),
selected = "Education"
)
}
})
# Group input condition (ind by sub) ----
observeEvent(input$sectionnameinput2, {
if (input$sectionnameinput2 != "All") {
data_filtered <- industry_groups %>%
filter(SECTIONNAME == input$sectionnameinput2) %>%
distinct()
} else {
data_filtered <- industry_groups
}
updateSelectizeInput(
session, "groupinput",
choices = na.exclude(unique(c("All", data_filtered$group_name)))
)
})
observeEvent(input$countinput3, {
x <- input$countinput3
if (x == "SECTIONNAME") {
updateSelectInput(
session,
"groupinput",
label = "Select group within industry",
choices = list(
"All"
),
selected = "All"
)
} else {
if (input$sectionnameinput2 != "All") {
data_filtered <- industry_groups %>%
filter(SECTIONNAME == input$sectionnameinput2) %>%
distinct()
} else {
data_filtered <- industry_groups
}
updateSelectizeInput(
session, "groupinput",
label = "Select group within industry",
choices = na.exclude(unique(c("All", data_filtered$group_name)))
)
}
})
# output$subjecttable <- renderReactable({
# subjecttable(input$sectionnameinput2, input$YAGinput3, input$countinput3)
# })
#
# output$subjecttable_title <- renderText({
# subjecttable_title(input$sectionnameinput2, input$YAGinput3, input$countinput3)
# })
}