material-sass 4.0.0.beta → 4.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/Rakefile +12 -12
- data/{app/assets → assets}/javascripts/material-sprockets.js +0 -0
- data/{app/assets → assets}/javascripts/material.js +54 -4
- data/{app/assets → assets}/javascripts/material.min.js +1 -1
- data/{app/assets → assets}/javascripts/material/addons/picker.date.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/waves.js +0 -0
- data/assets/javascripts/material/components/expansion-panel.js +50 -0
- data/{app/assets → assets}/javascripts/material/components/floating-label.js +1 -1
- data/{app/assets → assets}/javascripts/material/components/navdrawer.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/selection-control-focus.js +2 -3
- data/{app/assets → assets}/javascripts/material/components/tab-switch.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/util.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/waves.js +0 -0
- data/{app/assets → assets}/stylesheets/material.min.css +0 -0
- data/{app/assets → assets}/stylesheets/material.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/_colours.scss +7 -11
- data/{app/assets → assets}/stylesheets/material/_functions.scss +8 -14
- data/{app/assets → assets}/stylesheets/material/_mixins.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/_print.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/_utilities.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/_variables.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/base/_base.scss +24 -49
- data/{app/assets → assets}/stylesheets/material/base/_grid.scss +1 -5
- data/{app/assets → assets}/stylesheets/material/base/_typography.scss +1 -11
- data/{app/assets → assets}/stylesheets/material/bootstrap/_alert.scss +14 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_badge.scss +19 -7
- data/{app/assets → assets}/stylesheets/material/bootstrap/_breadcrumb.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_carousel.scss +0 -6
- data/{app/assets → assets}/stylesheets/material/bootstrap/_close.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/bootstrap/_code.scss +0 -9
- data/{app/assets → assets}/stylesheets/material/bootstrap/_custom-form.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_form.scss +4 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_image.scss +10 -14
- data/{app/assets → assets}/stylesheets/material/bootstrap/_jumbotron.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_media.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_nav.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_pagination.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/bootstrap/_popover.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_responsive-embed.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_transition.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/material.scss +1 -10
- data/{app/assets → assets}/stylesheets/material/material/_button-flat.scss +3 -2
- data/{app/assets → assets}/stylesheets/material/material/_button-float.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/material/_button-group.scss +40 -95
- data/{app/assets → assets}/stylesheets/material/material/_button.scss +8 -24
- data/{app/assets → assets}/stylesheets/material/material/_card.scss +28 -48
- data/{app/assets → assets}/stylesheets/material/material/_chip.scss +3 -7
- data/{app/assets → assets}/stylesheets/material/material/_data-table.scss +40 -37
- data/{app/assets → assets}/stylesheets/material/material/_dialog.scss +79 -53
- data/assets/stylesheets/material/material/_expansion-panel.scss +247 -0
- data/{app/assets → assets}/stylesheets/material/material/_menu.scss +99 -96
- data/{app/assets → assets}/stylesheets/material/material/_navdrawer.scss +26 -54
- data/{app/assets → assets}/stylesheets/material/material/_picker.scss +8 -13
- data/{app/assets → assets}/stylesheets/material/material/_progress-circular.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/material/_progress.scss +41 -53
- data/{app/assets → assets}/stylesheets/material/material/_selection-control.scss +4 -25
- data/{app/assets → assets}/stylesheets/material/material/_stepper.scss +1 -9
- data/{app/assets → assets}/stylesheets/material/material/_tab.scss +16 -16
- data/assets/stylesheets/material/material/_text-field-box.scss +59 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field-floating-label.scss +28 -13
- data/{app/assets → assets}/stylesheets/material/material/_text-field-input-group.scss +40 -49
- data/assets/stylesheets/material/material/_text-field-textarea.scss +15 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field.scss +23 -42
- data/{app/assets → assets}/stylesheets/material/material/_toolbar.scss +50 -37
- data/{app/assets → assets}/stylesheets/material/material/_tooltip.scss +6 -12
- data/{app/assets → assets}/stylesheets/material/mixins/_background-variant.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_border-radius.scss +2 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_breakpoint.scss +7 -6
- data/{app/assets → assets}/stylesheets/material/mixins/_clearfix.scss +0 -0
- data/assets/stylesheets/material/mixins/_float.scss +13 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_form.scss +37 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_grid-framework.scss +30 -24
- data/{app/assets → assets}/stylesheets/material/mixins/_grid.scss +8 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_hex-to-rgba.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_hover.scss +19 -19
- data/{app/assets → assets}/stylesheets/material/mixins/_image.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_list.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_material-icons.scss +4 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_nav-divider.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_reset-text.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_screenreader.scss +1 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_strip-unit.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-alignment.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-emphasis.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_text-hide.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-truncate.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_transition.scss +0 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_typography.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_align.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_background.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/utilities/_border.scss +2 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_clearfix.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_display.scss +6 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_flex.scss +10 -6
- data/{app/assets → assets}/stylesheets/material/utilities/_float.scss +3 -3
- data/{app/assets → assets}/stylesheets/material/utilities/_material-icons.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_position.scss +14 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_screenreader.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_sizing.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_spacing.scss +32 -31
- data/{app/assets → assets}/stylesheets/material/utilities/_text.scss +2 -13
- data/{app/assets → assets}/stylesheets/material/utilities/_visibility.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_waves.scss +3 -3
- data/assets/stylesheets/material/variables/_elevation-shadow.scss +69 -0
- data/{app/assets → assets}/stylesheets/material/variables/_grid.scss +0 -4
- data/assets/stylesheets/material/variables/_palette.scss +66 -0
- data/{app/assets → assets}/stylesheets/material/variables/_spacer.scss +6 -11
- data/assets/stylesheets/material/variables/_transition.scss +27 -0
- data/{app/assets → assets}/stylesheets/material/variables/_typography.scss +21 -27
- data/{app/assets → assets}/stylesheets/material/variables/_variable-bootstrap.scss +22 -50
- data/{app/assets → assets}/stylesheets/material/variables/_variable-material.scss +108 -141
- data/lib/material-sass.rb +52 -4
- data/lib/material-sass/engine.rb +8 -8
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -0
- metadata +145 -149
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ijmap +0 -1
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.svg +0 -2373
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/fonts/material-icons/README.md +0 -9
- data/app/assets/fonts/material-icons/codepoints +0 -932
- data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/images/bg/amber.jpg +0 -0
- data/app/assets/images/bg/brand.jpg +0 -0
- data/app/assets/images/bg/green.jpg +0 -0
- data/app/assets/images/bg/purple.jpg +0 -0
- data/app/assets/images/bg/red.jpg +0 -0
- data/app/assets/images/bg/teal.jpg +0 -0
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +0 -118
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +0 -18
- data/app/assets/stylesheets/material/mixins/_pull.scss +0 -7
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +0 -91
- data/app/assets/stylesheets/material/variables/_palette.scss +0 -45
- data/app/assets/stylesheets/material/variables/_transition.scss +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ee2be286f1d82ee964a5e7e094dc905a5157af69592b92604b537dd21d38c39f
|
4
|
+
data.tar.gz: 1895a839a7ad14d4eeb86f1d4ce0ffdbce719cfd9031bd8e63c8aa15b0190f7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9e66ee86662d9bd6079deaf5750ecf6c3a7089c099405949edc96d8fdf4c79624d4266a07788840c6c4841e43e5851237bec858886c30870d564b16271a37fd
|
7
|
+
data.tar.gz: 6b39821ada127e4d3caf5d81acc7ae7cb1f531e5368d03cc19983c6157742b5cc0f08d09631aabafef651606f807c31de541c4c00f819d4b4e70e1fe71796e38
|
data/README.md
CHANGED
@@ -22,8 +22,8 @@ Since bootstrap relies on it, install it with ```bin/yarn add jquery``` or via `
|
|
22
22
|
Add this line to your application's Gemfile:
|
23
23
|
|
24
24
|
```ruby
|
25
|
-
gem 'bootstrap'
|
26
|
-
gem 'material-sass'
|
25
|
+
gem 'bootstrap', '~> 4.0.0.beta'
|
26
|
+
gem 'material-sass', '~> 4.0.0.beta'
|
27
27
|
```
|
28
28
|
And then run the bundler and restart your server to make the files available through the pipeline:
|
29
29
|
|
data/Rakefile
CHANGED
@@ -6,26 +6,26 @@ namespace :javascripts do
|
|
6
6
|
|
7
7
|
desc "Cleaning javascripts directory"
|
8
8
|
task :clean do
|
9
|
-
rm_rf "
|
9
|
+
rm_rf "assets/javascripts/material"
|
10
10
|
end
|
11
11
|
|
12
12
|
desc "Copy #{source_dir}/assets/js/src"
|
13
13
|
task :copy do
|
14
14
|
src_dir = "#{source_dir}/dist/assets/js/src/."
|
15
|
-
tgt_dir = "
|
15
|
+
tgt_dir = "assets/javascripts/material/components"
|
16
16
|
mkdir_p tgt_dir
|
17
17
|
cp_r src_dir, tgt_dir
|
18
|
-
cp "#{source_dir}/js/material.js", "
|
19
|
-
cp "#{source_dir}/js/material.min.js", "
|
18
|
+
cp "#{source_dir}/js/material.js", "assets/javascripts/material.js"
|
19
|
+
cp "#{source_dir}/js/material.min.js", "assets/javascripts/material.min.js"
|
20
20
|
|
21
21
|
|
22
22
|
src_dir = "#{source_dir}/dist/assets/js/addons"
|
23
|
-
tgt_dir = "
|
23
|
+
tgt_dir = "assets/javascripts/material/"
|
24
24
|
mkdir_p tgt_dir
|
25
25
|
cp_r src_dir, tgt_dir
|
26
26
|
|
27
27
|
src_dir = "#{source_dir}/dist/assets/js/addons-materialise/."
|
28
|
-
tgt_dir = "
|
28
|
+
tgt_dir = "assets/javascripts/material/initializers"
|
29
29
|
mkdir_p tgt_dir
|
30
30
|
cp_r src_dir, tgt_dir
|
31
31
|
|
@@ -39,20 +39,20 @@ end
|
|
39
39
|
namespace :stylesheets do
|
40
40
|
desc "Cleaning stylesheets directory"
|
41
41
|
task :clean do
|
42
|
-
rm_rf "
|
42
|
+
rm_rf "assets/stylesheets/material"
|
43
43
|
end
|
44
44
|
|
45
|
-
desc "Copy #{source_dir}/assets/
|
45
|
+
desc "Copy #{source_dir}/assets/scss/"
|
46
46
|
task :copy do
|
47
|
-
src_dir = "#{source_dir}/assets/
|
48
|
-
tgt_dir = "
|
47
|
+
src_dir = "#{source_dir}/assets/scss/."
|
48
|
+
tgt_dir = "assets/stylesheets/material/"
|
49
49
|
mkdir_p tgt_dir
|
50
50
|
cp_r src_dir, tgt_dir
|
51
51
|
end
|
52
52
|
|
53
53
|
desc "Fix font url in stylesheets"
|
54
54
|
task :fix_urls do
|
55
|
-
Dir.glob('
|
55
|
+
Dir.glob('assets/stylesheet/**/*.scss').each do |tgt_file|
|
56
56
|
content = File.read(tgt_file)
|
57
57
|
fixed_content = content.gsub(/url\(\"\.\.\/Roboto\/([A-Za-z_]*.woff2)\"\)/, 'font-url("\1")')
|
58
58
|
File.open(tgt_file, "w") { |f| f.puts fixed_content}
|
@@ -65,7 +65,7 @@ end
|
|
65
65
|
|
66
66
|
desc "Remove minified file .min"
|
67
67
|
task :cleanup do
|
68
|
-
Dir.glob('
|
68
|
+
Dir.glob('assets/**/*.min.*').each do |file|
|
69
69
|
rm file
|
70
70
|
end
|
71
71
|
end
|
File without changes
|
@@ -219,7 +219,58 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
219
219
|
|
220
220
|
+function () {
|
221
221
|
/*
|
222
|
-
*
|
222
|
+
* expansion panel
|
223
|
+
* upon selecting the collapsed panel,
|
224
|
+
* it expands to display in full
|
225
|
+
*/
|
226
|
+
|
227
|
+
var ExpansionPanel = function ($) {
|
228
|
+
|
229
|
+
// constants >>>
|
230
|
+
var DATA_KEY = 'bs.collapse';
|
231
|
+
var EVENT_KEY = '.' + DATA_KEY;
|
232
|
+
|
233
|
+
var ClassName = {
|
234
|
+
SHOW: 'show',
|
235
|
+
SHOW_PREDECESSOR: 'show-predecessor'
|
236
|
+
};
|
237
|
+
|
238
|
+
var Event = {
|
239
|
+
HIDE: 'hide' + EVENT_KEY,
|
240
|
+
SHOW: 'show' + EVENT_KEY
|
241
|
+
};
|
242
|
+
|
243
|
+
var Selector = {
|
244
|
+
PANEL: '.expansion-panel',
|
245
|
+
PANEL_BODY: '.expansion-panel .collapse'
|
246
|
+
};
|
247
|
+
// <<< constants
|
248
|
+
|
249
|
+
$(document).on('' + Event.HIDE, Selector.PANEL_BODY, function (event) {
|
250
|
+
var target = $(event.target).closest(Selector.PANEL);
|
251
|
+
|
252
|
+
target.removeClass(ClassName.SHOW);
|
253
|
+
|
254
|
+
var predecessor = target.prev(Selector.PANEL);
|
255
|
+
|
256
|
+
if (predecessor.length) {
|
257
|
+
predecessor.removeClass(ClassName.SHOW_PREDECESSOR);
|
258
|
+
}
|
259
|
+
}).on('' + Event.SHOW, Selector.PANEL_BODY, function (event) {
|
260
|
+
var target = $(event.target).closest(Selector.PANEL);
|
261
|
+
|
262
|
+
target.addClass(ClassName.SHOW);
|
263
|
+
|
264
|
+
var predecessor = target.prev(Selector.PANEL);
|
265
|
+
|
266
|
+
if (predecessor.length) {
|
267
|
+
predecessor.addClass(ClassName.SHOW_PREDECESSOR);
|
268
|
+
}
|
269
|
+
});
|
270
|
+
}(jQuery);
|
271
|
+
|
272
|
+
/*
|
273
|
+
* floating label
|
223
274
|
* when a user engages with the text input field,
|
224
275
|
* the floating inline labels move to float above the field
|
225
276
|
*/
|
@@ -658,9 +709,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
658
709
|
}(jQuery);
|
659
710
|
|
660
711
|
/*
|
661
|
-
* selection control focus
|
662
|
-
* chrome persists the focus style on checkboxes/radio buttons
|
663
|
-
* after clicking with the mouse
|
712
|
+
* selection control focus
|
713
|
+
* chrome persists the focus style on checkboxes/radio buttons after clicking
|
664
714
|
*/
|
665
715
|
|
666
716
|
var ControlFocus = function ($) {
|
@@ -1 +1 @@
|
|
1
|
-
function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if("undefined"==typeof jQuery)throw new Error("Material's JavaScript requires jQuery");+function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<3||t[0]>=4)throw new Error("Material's JavaScript requires at least jQuery v3.0.0 but less than v4.0.0")}(),function(e){this.Picker=e(jQuery)}(function(e){function t(r,s,u,f){function p(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",D.component.nodes(w.open),O.box),O.wrap),O.frame),O.holder,'tabindex="-1"')}function h(){C.data(s,D).addClass(O.input).val(C.data("value")?D.get("select",S.format):r.value),S.editable||C.on("focus."+w.id+" click."+w.id,function(e){e.preventDefault(),D.open()}).on("keydown."+w.id,_),i(r,{haspopup:!0,expanded:!1,readonly:!1,owns:r.id+"_root"})}function m(){i(D.$root[0],"hidden",!0)}function v(){D.$holder.on({keydown:_,"focus.toOpen":b,blur:function(){C.removeClass(O.target)},focusin:function(e){D.$root.removeClass(O.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=D.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),D.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),o=t.hasClass(O.navDisabled)||t.hasClass(O.disabled),i=a();i=i&&(i.type||i.href),(o||i&&!e.contains(D.$root[0],i))&&D.$holder[0].focus(),!o&&n.nav?D.set("highlight",D.component.item.highlight,{nav:n.nav}):!o&&"pick"in n?(D.set("select",n.pick),S.closeOnSelect&&D.close(!0)):n.clear?(D.clear(),S.closeOnClear&&D.close(!0)):n.close&&D.close(!0)})}function y(){var t;!0===S.hiddenName?(t=r.name,r.name=""):(t=["string"==typeof S.hiddenPrefix?S.hiddenPrefix:"","string"==typeof S.hiddenSuffix?S.hiddenSuffix:"_submit"],t=t[0]+r.name+t[1]),D._hidden=e('<input type=hidden name="'+t+'"'+(C.data("value")||r.value?' value="'+D.get("select",S.formatSubmit)+'"':"")+">")[0],C.on("change."+w.id,function(){D._hidden.value=r.value?D.get("select",S.formatSubmit):""})}function g(){k&&d?D.$holder.find("."+O.frame).one("transitionend",function(){D.$holder[0].focus()}):D.$holder[0].focus()}function b(e){e.stopPropagation(),C.addClass(O.target),D.$root.addClass(O.focused),D.open()}function _(e){var t=e.keyCode,n=/^(8|46)$/.test(t);return 27==t?(D.close(!0),!1):void((32==t||n||!w.open&&D.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?D.clear().close():D.open()))}if(!r)return t;var k=!1,w={id:r.id||"P"+Math.abs(~~(Math.random()*new Date))},S=u?e.extend(!0,{},u.defaults,f):f||{},O=e.extend({},t.klasses(),S.klass),C=e(r),E=function(){return this.start()},D=E.prototype={constructor:E,$node:C,start:function(){return w&&w.start?D:(w.methods={},w.start=!0,w.open=!1,w.type=r.type,r.autofocus=r==a(),r.readOnly=!S.editable,r.id=r.id||w.id,"text"!=r.type&&(r.type="text"),D.component=new u(D,S),D.$root=e('<div class="'+O.picker+'" id="'+r.id+'_root" />'),m(),D.$holder=e(p()).appendTo(D.$root),v(),S.formatSubmit&&y(),h(),S.containerHidden?e(S.containerHidden).append(D._hidden):C.after(D._hidden),S.container?e(S.container).append(D.$root):C.after(D.$root),D.on({start:D.component.onStart,render:D.component.onRender,stop:D.component.onStop,open:D.component.onOpen,close:D.component.onClose,set:D.component.onSet}).on({start:S.onStart,render:S.onRender,stop:S.onStop,open:S.onOpen,close:S.onClose,set:S.onSet}),k=n(D.$holder[0]),r.autofocus&&D.open(),D.trigger("start").trigger("render"))},render:function(t){return t?(D.$holder=e(p()),v(),D.$root.html(D.$holder)):D.$root.find("."+O.box).html(D.component.nodes(w.open)),D.trigger("render")},stop:function(){return w.start?(D.close(),D._hidden&&D._hidden.parentNode.removeChild(D._hidden),D.$root.remove(),C.removeClass(O.input).removeData(s),setTimeout(function(){C.off("."+w.id)},0),r.type=w.type,r.readOnly=!1,D.trigger("stop"),w.methods={},w.start=!1,D):D},open:function(n){return w.open?D:(C.addClass(O.active),i(r,"expanded",!0),setTimeout(function(){D.$root.addClass(O.opened),i(D.$root[0],"hidden",!1)},0),!1!==n&&(w.open=!0,k&&l.css("overflow","hidden").css("padding-right","+="+o()),g(),c.on("click."+w.id+" focusin."+w.id,function(e){var t=e.target;t!=r&&t!=document&&3!=e.which&&D.close(t===D.$holder[0])}).on("keydown."+w.id,function(n){var o=n.keyCode,i=D.component.key[o],r=n.target;27==o?D.close(!0):r!=D.$holder[0]||!i&&13!=o?e.contains(D.$root[0],r)&&13==o&&(n.preventDefault(),r.click()):(n.preventDefault(),i?t._.trigger(D.component.key.go,D,[t._.trigger(i)]):D.$root.find("."+O.highlighted).hasClass(O.disabled)||(D.set("select",D.component.item.highlight),S.closeOnSelect&&D.close(!0)))})),D.trigger("open"))},close:function(e){return e&&(S.editable?r.focus():(D.$holder.off("focus.toOpen").focus(),setTimeout(function(){D.$holder.on("focus.toOpen",b)},0))),C.removeClass(O.active),i(r,"expanded",!1),setTimeout(function(){D.$root.removeClass(O.opened+" "+O.focused),i(D.$root[0],"hidden",!0)},0),w.open?(w.open=!1,k&&l.css("overflow","").css("padding-right","-="+o()),c.off("."+w.id),D.trigger("close")):D},clear:function(e){return D.set("clear",null,e)},set:function(t,n,o){var i,r,a=e.isPlainObject(t),s=a?t:{};if(o=a&&e.isPlainObject(n)?n:o||{},t){a||(s[t]=n);for(i in s)r=s[i],i in D.component.item&&(void 0===r&&(r=null),D.component.set(i,r,o)),("select"==i||"clear"==i)&&C.val("clear"==i?"":D.get(i,S.format)).trigger("change");D.render()}return o.muted?D:D.trigger("set",s)},get:function(e,n){if(e=e||"value",null!=w[e])return w[e];if("valueSubmit"==e){if(D._hidden)return D._hidden.value;e="value"}if("value"==e)return r.value;if(e in D.component.item){if("string"==typeof n){var o=D.component.get(e);return o?t._.trigger(D.component.formats.toString,D.component,[n,o]):""}return D.component.get(e)}},on:function(t,n,o){var i,r,a=e.isPlainObject(t),s=a?t:{};if(t){a||(s[t]=n);for(i in s)r=s[i],o&&(i="_"+i),w.methods[i]=w.methods[i]||[],w.methods[i].push(r)}return D},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in w.methods&&delete w.methods[t];return D},trigger:function(e,n){var o=function(e){var o=w.methods[e];o&&o.map(function(e){t._.trigger(e,D,[n])})};return o("_"+e),o(e),D}};return new E}function n(e){var t,n="position";return e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]),"fixed"==t}function o(){if(l.height()<=s.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),n=t[0].offsetWidth;t.css("overflow","scroll");var o=e('<div style="width:100%" />').appendTo(t)[0].offsetWidth;return t.remove(),n-o}function i(t,n,o){if(e.isPlainObject(n))for(var i in n)r(t,i,n[i]);else r(t,n,o)}function r(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function a(){try{return document.activeElement}catch(e){}}var s=e(window),c=e(document),l=e(document.documentElement),d=null!=document.documentElement.style.transition;return t.klasses=function(e){return e=e||"picker",{picker:e,opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},t._={group:function(e){for(var n,o="",i=t._.trigger(e.min,e);i<=t._.trigger(e.max,e,[i]);i+=e.i)n=t._.trigger(e.item,e,[i]),o+=t._.node(e.node,n[0],n[1],n[2]);return o},node:function(t,n,o,i){return n?(n=e.isArray(n)?n.join(""):n,o=o?' class="'+o+'"':"",i=i?" "+i:"","<"+t+o+i+">"+n+"</"+t+">"):""},lead:function(e){return(10>e?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,n){e.isPlainObject(t)||(t={attribute:n}),n="";for(var o in t){var i=("role"==o?"":"aria-")+o;n+=null==t[o]?"":i+'="'+t[o]+'"'}return n}},t.extend=function(n,o){e.fn[n]=function(i,r){var a=this.data(n);return"picker"==i?a:a&&"string"==typeof i?t._.trigger(a[i],a,[r]):this.each(function(){e(this).data(n)||new t(this,n,o,i)})},e.fn[n].defaults=o.defaults},t}),function(e){e(Picker,jQuery)}(function(e,t){function n(e,t){var n=this,o=e.$node[0],i=o.value,r=e.$node.data("value"),a=r||i,s=r?t.formatSubmit:t.format,c=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};n.settings=t,n.$node=e.$node,n.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},n.item={},n.item.clear=null,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return!0===e[0]?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),a?n.set("select",a,{format:s,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return c()?-1:1},37:function(){return c()?1:-1},go:function(e){var t=n.item.highlight,o=new Date(t.year,t.month,t.date+e);n.set("highlight",o,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var o="";n.disabled(n.get("now"))&&(o=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+o+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var o=e._;n.prototype.set=function(e,t,n){var o=this,i=o.item;return null===t?("clear"==e&&(e="select"),i[e]=t,o):(i["enable"==e?"disable":"flip"==e?"enable":e]=o.queue[e].split(" ").map(function(i){return t=o[i](e,t,n)}).pop(),"select"==e?o.set("highlight",i.select,n):"highlight"==e?o.set("view",i.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(i.select&&o.disabled(i.select)&&o.set("select",i.select,n),i.highlight&&o.disabled(i.highlight)&&o.set("highlight",i.highlight,n)),o)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,i){var r,a=this;return(n=void 0===n?e:n)==-1/0||n==1/0?r=n:t.isPlainObject(n)&&o.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=o.isDate(n)?n:a.create().obj):n=o.isInteger(n)||o.isDate(n)?a.normalize(new Date(n),i):a.now(e,n,i),{year:r||n.getFullYear(),month:r||n.getMonth(),date:r||n.getDate(),day:r||n.getDay(),obj:r||n,pick:r||n.getTime()}},n.prototype.createRange=function(e,n){var i=this,r=function(e){return!0===e||t.isArray(e)||o.isDate(e)?i.create(e):e};return o.isInteger(e)||(e=r(e)),o.isInteger(n)||(n=r(n)),o.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:o.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:r(e),to:r(n)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,n,o){var i,r,a,s,c=t.isArray(n),l=t.isPlainObject(n),d=this.item.view;if(c||l){for(l?(r=n.year,a=n.month,s=n.date):(r=+n[0],a=+n[1],s=+n[2]),o&&o.nav&&d&&d.month!==a&&(r=d.year,a=d.month),r=(i=new Date(r,a+(o&&o.nav?o.nav:0),1)).getFullYear(),a=i.getMonth();new Date(r,a,s).getMonth()!==a;)s-=1;n=[r,a,s]}return n},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){var n=this;return t?"string"==typeof t?t=n.parse(e,t):o.isInteger(t)&&(t=n.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,i){var r,a,s,c,l=this,d=n,u=i&&i.interval?i.interval:1,f=-1===l.item.enable,p=l.item.min,h=l.item.max,m=f&&l.item.disable.filter(function(e){if(t.isArray(e)){var i=l.create(e).pick;i<n.pick?r=!0:i>n.pick&&(a=!0)}return o.isInteger(e)}).length;if((!i||!i.nav&&!i.defaultValue)&&(!f&&l.disabled(n)||f&&l.disabled(n)&&(m||r||a)||!f&&(n.pick<=p.pick||n.pick>=h.pick)))for(f&&!m&&(!a&&u>0||!r&&0>u)&&(u*=-1);l.disabled(n)&&(Math.abs(u)>1&&(n.month<d.month||n.month>d.month)&&(n=d,u=u>0?1:-1),n.pick<=p.pick?(s=!0,u=1,n=l.create([p.year,p.month,p.date+(n.pick===p.pick?0:-1)])):n.pick>=h.pick&&(c=!0,u=-1,n=l.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},n.prototype.disabled=function(e){var n=this,i=n.item.disable.filter(function(i){return o.isInteger(i)?e.day===(n.settings.firstDay?i:i-1)%7:t.isArray(i)||o.isDate(i)?e.pick===n.create(i).pick:t.isPlainObject(i)?n.withinRange(i,e):void 0});return i=i.length&&!i.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!i:i||e.pick<n.item.min.pick||e.pick>n.item.max.pick},n.prototype.parse=function(e,t,n){var i=this,r={};return t&&"string"==typeof t?(n&&n.format||(n=n||{},n.format=i.settings.format),i.formats.toArray(n.format).map(function(e){var n=i.formats[e],a=n?o.trigger(n,i,[t,r]):e.replace(/^!/,"").length;n&&(r[e]=t.substr(0,a)),t=t.substr(a)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):t},n.prototype.formats=function(){function e(e,t,n){var o=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(o)+1),o.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?o.digits(e):t.date},dd:function(e,t){return e?2:o.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?o.digits(e):t.month+1},mm:function(e,t){return e?2:o.lead(t.month+1)},mmm:function(t,n){var o=this.settings.monthsShort;return t?e(t,o,n):o[n.month]},mmmm:function(t,n){var o=this.settings.monthsFull;return t?e(t,o,n):o[n.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return o.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,n){var i=this;return o.isInteger(e)&&o.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(o.isDate(e)||t.isArray(e))&&(o.isDate(n)||t.isArray(n))?i.create(e).pick===i.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(i.isDateExact(e.from,n.from)&&i.isDateExact(e.to,n.to))},n.prototype.isDateOverlap=function(e,n){var i=this,r=i.settings.firstDay?1:0;return o.isInteger(e)&&(o.isDate(n)||t.isArray(n))?(e=e%7+r)===i.create(n).day+1:o.isInteger(n)&&(o.isDate(e)||t.isArray(e))?(n=n%7+r)===i.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&i.overlapRanges(e,n)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,n){var i=this,r=i.item.disable.slice(0);return"flip"==n?i.flipEnable():!1===n?(i.flipEnable(1),r=[]):!0===n?(i.flipEnable(-1),r=[]):n.map(function(e){for(var n,a=0;a<r.length;a+=1)if(i.isDateExact(e,r[a])){n=!0;break}n||(o.isInteger(e)||o.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&r.push(e)}),r},n.prototype.activate=function(e,n){var i=this,r=i.item.disable,a=r.length;return"flip"==n?i.flipEnable():!0===n?(i.flipEnable(1),r=[]):!1===n?(i.flipEnable(-1),r=[]):n.map(function(e){var n,s,c,l;for(c=0;a>c;c+=1){if(s=r[c],i.isDateExact(s,e)){n=r[c]=null,l=!0;break}if(i.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):o.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(c=0;a>c;c+=1)if(i.isDateExact(r[c],e)){r[c]=null;break}if(l)for(c=0;a>c;c+=1)if(i.isDateOverlap(r[c],e)){r[c]=null;break}n&&r.push(n)}),r.filter(function(e){return null!=e})},n.prototype.nodes=function(e){var t=this,n=t.settings,i=t.item,r=i.now,a=i.select,s=i.highlight,c=i.view,l=i.disable,d=i.min,u=i.max,f=function(e,t){return n.firstDay&&(e.push(e.shift()),t.push(t.shift())),o.node("thead",o.node("tr",o.group({min:0,max:6,i:1,node:"th",item:function(o){return[e[o],n.klass.weekdays,'scope=col title="'+t[o]+'"']}})))}((n.showWeekdaysFull?n.weekdaysFull:n.weekdaysShort).slice(0),n.weekdaysFull.slice(0)),p=function(e){return o.node("div"," ",n.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=u.year&&c.month>=u.month||!e&&c.year<=d.year&&c.month<=d.month?" "+n.klass.navDisabled:""),"data-nav="+(e||-1)+" "+o.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?n.labelMonthNext:n.labelMonthPrev)+'"')},h=function(){var i=n.showMonthsShort?n.monthsShort:n.monthsFull;return n.selectMonths?o.node("select",o.group({min:0,max:11,i:1,node:"option",item:function(e){return[i[e],0,"value="+e+(c.month==e?" selected":"")+(c.year==d.year&&e<d.month||c.year==u.year&&e>u.month?" disabled":"")]}}),n.klass.selectMonth,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelMonthSelect+'"'):o.node("div",i[c.month],n.klass.month)},m=function(){var i=c.year,r=!0===n.selectYears?5:~~(n.selectYears/2);if(r){var a=d.year,s=u.year,l=i-r,f=i+r;if(a>l&&(f+=a-l,l=a),f>s){var p=l-a,h=f-s;l-=p>h?h:p,f=s}return o.node("select",o.group({min:l,max:f,i:1,node:"option",item:function(e){return[e,0,"value="+e+(i==e?" selected":"")]}}),n.klass.selectYear,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelYearSelect+'"')}return o.node("div",i,n.klass.year)};return o.node("div",(n.selectYears?m()+h():h()+m())+p()+p(1),n.klass.header)+o.node("table",f+o.node("tbody",o.group({min:0,max:5,i:1,node:"tr",item:function(e){var i=n.firstDay&&0===t.create([c.year,c.month,1]).day?-7:0;return[o.group({min:7*e-c.day+i+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=t.create([c.year,c.month,e+(n.firstDay?1:0)]);var i=a&&a.pick==e.pick,f=s&&s.pick==e.pick,p=l&&t.disabled(e)||e.pick<d.pick||e.pick>u.pick,h=o.trigger(t.formats.toString,t,[n.format,e]);return[o.node("div",e.date,function(t){return t.push(c.month==e.month?n.klass.infocus:n.klass.outfocus),r.pick==e.pick&&t.push(n.klass.now),i&&t.push(n.klass.selected),f&&t.push(n.klass.highlighted),p&&t.push(n.klass.disabled),t.join(" ")}([n.klass.day]),"data-pick="+e.pick+" "+o.ariaAttr({role:"gridcell",label:h,selected:!(!i||t.$node.val()!==h)||null,activedescendant:!!f||null,disabled:!!p||null})),"",o.ariaAttr({role:"presentation"})]}})]}})),n.klass.table,'id="'+t.$node[0].id+'_table" '+o.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+o.node("div",o.node("button",n.today,n.klass.buttonToday,"type=button data-pick="+r.pick+(e&&!t.disabled(r)?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.close,n.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id})),n.klass.footer)},n.defaults=function(e){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",n)}),function(e,t,n,o){function i(t,n){this.element=t,this.$element=e(t),this.init()}var r="textareaAutoSize",a="plugin_"+r,s=function(e){return e.replace(/\s/g,"").length>0};i.prototype={init:function(){var n=parseInt(this.$element.css("paddingBottom"))+parseInt(this.$element.css("paddingTop"))+parseInt(this.$element.css("borderTopWidth"))+parseInt(this.$element.css("borderBottomWidth"))||0;s(this.element.value)&&this.$element.height(this.element.scrollHeight-n),this.$element.on("input keyup",function(o){var i=e(t),r=i.scrollTop();e(this).height(0).height(this.scrollHeight-n),i.scrollTop(r)})}},e.fn[r]=function(t){return this.each(function(){e.data(this,a)||e.data(this,a,new i(this,t))}),this}}(jQuery,window,document),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.apply(e)}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,function(){"use strict";function e(e){return null!==e&&e===e.window}function t(t){return e(t)?t:9===t.nodeType&&t.defaultView}function n(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function o(e){return n(e)&&e.nodeType>0}function i(e){var t=f.call(e);return"[object String]"===t?u(e):n(e)&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(t)&&e.hasOwnProperty("length")?e:o(e)?[e]:[]}function r(e){var n,o,i={top:0,left:0},r=e&&e.ownerDocument;return n=r.documentElement,void 0!==e.getBoundingClientRect&&(i=e.getBoundingClientRect()),o=t(r),{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}}function a(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}function s(e,t,n,o){if(n){o.classList.remove("waves-wrapping"),n.classList.remove("waves-rippling");var i=n.getAttribute("data-x"),r=n.getAttribute("data-y"),s=n.getAttribute("data-scale"),c=n.getAttribute("data-translate"),l=350-(Date.now()-Number(n.getAttribute("data-hold")));0>l&&(l=0),"mousemove"===e.type&&(l=150);var d="mousemove"===e.type?2500:h.duration;setTimeout(function(){var e={top:r+"px",left:i+"px",opacity:"0","-webkit-transition-duration":d+"ms","-moz-transition-duration":d+"ms","-o-transition-duration":d+"ms","transition-duration":d+"ms","-webkit-transform":s+" "+c,"-moz-transform":s+" "+c,"-ms-transform":s+" "+c,"-o-transform":s+" "+c,transform:s+" "+c};n.setAttribute("style",a(e)),setTimeout(function(){try{o.removeChild(n),t.removeChild(o)}catch(e){return!1}},d)},l)}}function c(e){if(!1===v.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentElement;){if(n.classList.contains("waves-effect")&&!(n instanceof SVGElement)){t=n;break}n=n.parentElement}return t}function l(e){var t=c(e);if(null!==t){if(t.disabled||t.getAttribute("disabled")||t.classList.contains("disabled"))return;if(v.registerEvent(e),"touchstart"===e.type&&h.delay){var n=!1,o=setTimeout(function(){o=null,h.show(e,t)},h.delay),i=function(i){o&&(clearTimeout(o),o=null,h.show(e,t)),n||(n=!0,h.hide(i,t))};t.addEventListener("touchmove",function(e){o&&(clearTimeout(o),o=null),i(e)},!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1)}else h.show(e,t),p&&(t.addEventListener("touchend",h.hide,!1),t.addEventListener("touchcancel",h.hide,!1)),t.addEventListener("mouseup",h.hide,!1),t.addEventListener("mouseleave",h.hide,!1)}}var d=d||{},u=document.querySelectorAll.bind(document),f=Object.prototype.toString,p="ontouchstart"in window,h={duration:750,delay:200,show:function(e,t,n){if(2===e.button)return!1;t=t||this;var o=document.createElement("div");o.className="waves-wrap waves-wrapping",t.appendChild(o);var i=document.createElement("div");i.className="waves-ripple waves-rippling",o.appendChild(i);var s=r(t),c=0,l=0;"touches"in e&&e.touches.length?(c=e.touches[0].pageY-s.top,l=e.touches[0].pageX-s.left):(c=e.pageY-s.top,l=e.pageX-s.left),l=l>=0?l:0,c=c>=0?c:0;var d="scale("+t.clientWidth/100*3+")",u="translate(0,0)";n&&(u="translate("+n.x+"px, "+n.y+"px)"),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-x",l),i.setAttribute("data-y",c),i.setAttribute("data-scale",d),i.setAttribute("data-translate",u);var f={top:c+"px",left:l+"px"};i.classList.add("waves-notransition"),i.setAttribute("style",a(f)),i.classList.remove("waves-notransition"),f["-webkit-transform"]=d+" "+u,f["-moz-transform"]=d+" "+u,f["-ms-transform"]=d+" "+u,f["-o-transform"]=d+" "+u,f.transform=d+" "+u,f.opacity="1";var p="mousemove"===e.type?2500:h.duration;f["-webkit-transition-duration"]=p+"ms",f["-moz-transition-duration"]=p+"ms",f["-o-transition-duration"]=p+"ms",f["transition-duration"]=p+"ms",i.setAttribute("style",a(f))},hide:function(e,t){for(var n=(t=t||this).getElementsByClassName("waves-wrapping"),o=t.getElementsByClassName("waves-rippling"),i=0,r=o.length;r>i;i++)s(e,t,o[i],n[i])}},m={input:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");n.className=e.className+" waves-input-wrapper",e.className="waves-button-input",t.replaceChild(n,e),n.appendChild(e);var o=window.getComputedStyle(e,null),i=o.color,r=o.backgroundColor;n.setAttribute("style","color:"+i+";background:"+r),e.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");t.replaceChild(n,e),n.appendChild(e)}}},v={touches:0,allowEvent:function(e){var t=!0;return/^(mousedown|mousemove)$/.test(e.type)&&v.touches&&(t=!1),t},registerEvent:function(e){var t=e.type;"touchstart"===t?v.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){v.touches&&(v.touches-=1)},500)}};return d.init=function(e){var t=document.body;"duration"in(e=e||{})&&(h.duration=e.duration),"delay"in e&&(h.delay=e.delay),p&&(t.addEventListener("touchstart",l,!1),t.addEventListener("touchcancel",v.registerEvent,!1),t.addEventListener("touchend",v.registerEvent,!1)),t.addEventListener("mousedown",l,!1)},d.attach=function(e,t){e=i(e),"[object Array]"===f.call(t)&&(t=t.join(" ")),t=t?" "+t:"";for(var n,o,r=0,a=e.length;a>r;r++)n=e[r],o=n.tagName.toLowerCase(),-1!==["input","img"].indexOf(o)&&(m[o](n),n=n.parentElement),-1===n.className.indexOf("waves-effect")&&(n.className+=" waves-effect"+t)},d.ripple=function(e,t){var n=(e=i(e)).length;if(t=t||{},t.wait=t.wait||0,t.position=t.position||null,n)for(var o,a,s,c={},l=0,d={type:"mousedown",button:1};n>l;l++)if(o=e[l],a=t.position||{x:o.clientWidth/2,y:o.clientHeight/2},s=r(o),c.x=s.left+a.x,c.y=s.top+a.y,d.pageX=c.x,d.pageY=c.y,h.show(d,o),t.wait>=0&&null!==t.wait){var u={type:"mouseup",button:1};setTimeout(function(e,t){return function(){h.hide(e,t)}}(u,o),t.wait)}},d.calm=function(e){for(var t={type:"mouseup",button:1},n=0,o=(e=i(e)).length;o>n;n++)h.hide(t,e[n])},d.displayEffect=function(e){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),d.init(e)},d}),function(e){"use strict";var t=function(e,t){this._element=e,this._options=t};if(void 0===e.fn.pickadate)throw new Error("Material's JavaScript requires pickadate.js");t.DEFAULTS={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"body",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:!1,onOpen:!1,onRender:!1,onSet:!1,onStart:!1,onStop:!1,selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},t.prototype.display=function(t,n,o){e(".picker-date-display",n).remove(),e(".picker-wrap",n).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+t.get(o,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+t.get(o,"dddd")+'</span><span class="picker-day-display">'+t.get(o,"d")+'</span><span class="picker-month-display">'+t.get(o,"mmm")+"</span></div></div>")},t.prototype.show=function(){var t=this;e(this._element).pickadate({clear:t._options.cancel,close:t._options.ok,closeOnClear:t._options.closeOnCancel,closeOnSelect:t._options.closeOnSelect,container:t._options.container,disable:t._options.disable,firstDay:t._options.firstDay,format:t._options.format,formatSubmit:t._options.formatSubmit,klass:t._options.klass,max:t._options.max,min:t._options.min,monthsFull:t._options.monthsFull,monthsShort:t._options.monthsShort,onClose:t._options.onClose,onOpen:t._options.onOpen,onRender:t._options.onRender,onSet:t._options.onSet,onStart:t._options.onStart,onStop:t._options.onStop,selectMonths:t._options.selectMonths,selectYears:t._options.selectYears,today:t._options.today,weekdaysFull:t._options.weekdaysFull,weekdaysShort:t._options.weekdaysShort});var n=e(this._element).pickadate("picker"),o=(n.$node,n.$root);n.on({close:function(){e(document.activeElement).blur()},open:function(){e(".picker__date-display",o).length||t.display(n,o,"highlight")},set:function(){null!==n.get("select")&&t.display(n,o,"select")}})};var n=e.fn.pickdate;e.fn.pickdate=function(n){return this.each(function(){var o=e(this).data("bs.pickdate"),i=e.extend({},t.DEFAULTS,e(this).data(),"object"==typeof n&&n);o||e(this).data("bs.pickdate",o=new t(this,i)),o.show()})},e.fn.pickdate.Constructor=t,e.fn.pickdate.noConflict=function(){return e.fn.pickdate=n,this}}(jQuery),$(function(){$(".textarea-autosize").length&&void 0!==$.fn.textareaAutoSize&&$(".textarea-autosize").textareaAutoSize()}),$(function(){$(".waves-attach").length&&"undefined"!=typeof Waves&&(Waves.attach(".waves-attach"),Waves.init({duration:300}))});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();+function(){(function(e){var t="md.floatinglabel",n="floatinglabel",o=e.fn[n],i={IS_FOCUSED:"is-focused",HAS_VALUE:"has-value"},r={CHANGE:"change.md.floatinglabel",FOCUSIN:"focusin.md.floatinglabel",FOCUSOUT:"focusout.md.floatinglabel"},a={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},s=function(){function n(e){_classCallCheck(this,n),this._element=e}return n.prototype.change=function(t){e(this._element).val()||e(this._element).is("select")&&""!==e("option:first-child",e(this._element)).html().replace(" ","")?e(t).addClass(i.HAS_VALUE):e(t).removeClass(i.HAS_VALUE)},n.prototype.focusin=function(t){e(t).addClass(i.IS_FOCUSED)},n.prototype.focusout=function(t){e(t).removeClass(i.IS_FOCUSED)},n._jQueryInterface=function(o){return this.each(function(){var i=o||"change",r=e(this).data(t);if(r||(r=new n(this),e(this).data(t,r)),"string"==typeof i){if(void 0===r[i])throw new Error('No method named "'+i+'"');r[i](e(this).closest(a.DATA_PARENT))}})},n}();e(document).on(r.CHANGE+" "+r.FOCUSIN+" "+r.FOCUSOUT,a.DATA_TOGGLE,function(t){s._jQueryInterface.call(e(this),t.type)}),e.fn[n]=s._jQueryInterface,e.fn[n].Constructor=s,e.fn[n].noConflict=function(){return e.fn[n]=o,s._jQueryInterface}})(jQuery),function(t){var n=".md.navdrawer",o="navdrawer",i=t.fn[o],r={BACKDROP:"navdrawer-backdrop",OPEN:"navdrawer-open",SHOW:"show"},a={breakpoint:1280,keyboard:!0,show:!0,type:"default"},s={keyboard:"boolean",show:"boolean",type:"string"},c={CLICK_DATA_API:"click.md.navdrawer.data-api",CLICK_DISMISS:"click.dismiss"+n,FOCUSIN:"focusin"+n,HIDDEN:"hidden"+n,HIDE:"hide"+n,KEYDOWN_DISMISS:"keydown.dismiss"+n,MOUSEDOWN_DISMISS:"mousedown.dismiss"+n,MOUSEUP_DISMISS:"mouseup.dismiss"+n,SHOW:"show"+n,SHOWN:"shown"+n},l={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},d=function(){function n(e,o){_classCallCheck(this,n),this._backdrop=null,this._config=this._getConfig(o),this._content=t(e).find(l.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1}return n.prototype.hide=function(e){e&&e.preventDefault();var n=r.OPEN+"-"+this._config.type,o=t.Event(c.HIDE);t(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),t(document).off(c.FOCUSIN),t(this._content).off(c.MOUSEDOWN_DISMISS),t(this._element).off(c.CLICK_DISMISS).removeClass(r.SHOW),this._hideNavdrawer(n))},n.prototype.show=function(e){var n=this,i=t.Event(c.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,t(document.body).addClass(r.OPEN+"-"+this._config.type),this._setEscapeEvent(),t(this._element).addClass(o+"-"+this._config.type),t(this._element).on(c.CLICK_DISMISS,l.DATA_DISMISS,t.proxy(this.hide,this)),t(this._content).on(c.MOUSEDOWN_DISMISS,function(){t(n._element).one(c.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))},n.prototype.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.prototype._enforceFocus=function(){var e=this;t(document).off(c.FOCUSIN).on(c.FOCUSIN,function(n){("default"===e._config.type||t(window).width()<=e._config.breakpoint)&&(e._element===n.target||t(e._element).has(n.target).length||e._element.focus())})},n.prototype._getConfig=function(n){return n=t.extend({},a,n),e.typeCheckConfig(o,n,s),n},n.prototype._hideNavdrawer=function(e){var n=this;this._showBackdrop(function(){t(document.body).removeClass(e),n._element.setAttribute("aria-hidden","true"),n._element.style.display="none",t(n._element).trigger(c.HIDDEN)})},n.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(c.KEYDOWN_DISMISS)},n.prototype._showBackdrop=function(n){var o=this,i=e.supportsTransitionEnd();if(this._isShown){if(this._backdrop=document.createElement("div"),t(this._backdrop).addClass(r.BACKDROP).addClass(r.BACKDROP+"-"+this._config.type).appendTo(document.body),t(this._element).on(c.CLICK_DISMISS,function(e){o._ignoreBackdropClick?o._ignoreBackdropClick=!1:e.target===e.currentTarget&&o.hide()}),i&&e.reflow(this._backdrop),t(this._backdrop).addClass(r.SHOW),!n)return;if(!i)return void n();t(this._backdrop).one(e.TRANSITION_END,n).emulateTransitionEnd(487.5)}else if(this._backdrop&&!this._isShown){t(this._backdrop).removeClass(r.SHOW);var a=function(){o._removeBackdrop(),n&&n()};i?t(this._backdrop).one(e.TRANSITION_END,a).emulateTransitionEnd(487.5):a()}else n&&n()},n.prototype._showElement=function(n){var o=this,i=e.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.removeAttribute("aria-hidden"),this._element.style.display="block",i&&e.reflow(this._element),t(this._element).addClass(r.SHOW),this._enforceFocus();var a=t.Event(c.SHOWN,{relatedTarget:n}),s=function(){o._element.focus(),t(o._element).trigger(a)};i?t(this._content).one(e.TRANSITION_END,s).emulateTransitionEnd(292.5):s()},n._jQueryInterface=function(e,o){return this.each(function(){var i=t.extend({},n.Default,t(this).data(),"object"===(void 0===e?"undefined":_typeof(e))&&e),r=t(this).data("md.navdrawer");if(r||(r=new n(this,i),t(this).data("md.navdrawer",r)),"string"==typeof e){if(void 0===r[e])throw new Error('No method named "'+e+'"');r[e](o)}else i.show&&r.show(o)})},_createClass(n,null,[{key:"Default",get:function(){return a}}]),n}();t(document).on(c.CLICK_DATA_API,l.DATA_TOGGLE,function(n){var o=this,i=e.getSelectorFromElement(this),r=void 0;i&&(r=t(i)[0]);var a=t(r).data("md.navdrawer")?"toggle":t.extend({},t(r).data(),t(this).data());"A"===this.tagName&&n.preventDefault();var s=t(r).one(c.SHOW,function(e){e.isDefaultPrevented()||s.one(c.HIDDEN,function(){t(o).is(":visible")&&o.focus()})});d._jQueryInterface.call(t(r),a,this)}),t.fn[o]=d._jQueryInterface,t.fn[o].Constructor=d,t.fn[o].noConflict=function(){return t.fn[o]=i,d._jQueryInterface}}(jQuery),function(e){var t=".md.controlfocus",n={FOCUS:"focus"},o={IS_MOUSEDOWN:!1},i={BLUR:"blur"+t,FOCUS:"focus"+t,MOUSEDOWN:"mousedown"+t,MOUSEUP:"mouseup"+t},r={CONTROL:".custom-control",INPUT:".custom-control-input"};e(document).on(""+i.BLUR,r.INPUT,function(t){e(t.target).removeClass(n.FOCUS)}).on(""+i.FOCUS,r.INPUT,function(t){!1===o.IS_MOUSEDOWN&&e(t.target).addClass(n.FOCUS)}).on(""+i.MOUSEDOWN,r.CONTROL,function(){o.IS_MOUSEDOWN=!0}).on(""+i.MOUSEUP,r.CONTROL,function(){setTimeout(function(){o.IS_MOUSEDOWN=!1},1)})}(jQuery),function(t){var n="tabswitch",o=t.fn[n],i={ANIMATE:"animate",DROPDOWN_ITEM:"dropdown-item",INDICATOR:"nav-tabs-indicator",MATERIAL:"nav-tabs-material",SCROLLABLE:"nav-tabs-scrollable",SHOW:"show"},r={SHOW_BS_TAB:"show.bs.tab"},a={DATA_TOGGLE:'.nav-tabs [data-toggle="tab"]',DROPDOWN:".dropdown",NAV:".nav-tabs"},s=function(){function n(e){if(_classCallCheck(this,n),void 0===t.fn.tab)throw new Error("Material's JavaScript requires Bootstrap's tab.js");this._nav=e,this._navindicator=null}return n.prototype.switch=function(n,o){var r=this,s=t(this._nav).offset().left,c=t(this._nav).scrollLeft(),l=t(this._nav).outerWidth(),d=e.supportsTransitionEnd();this._navindicator||this._createIndicator(s,c,l,o),t(n).hasClass(i.DROPDOWN_ITEM)&&(n=t(n).closest(a.DROPDOWN));var u=t(n).offset().left,f=t(n).outerWidth();t(this._navindicator).addClass(i.SHOW),e.reflow(this._navindicator),d&&t(this._nav).addClass(i.ANIMATE),t(this._navindicator).css({left:u+c-s,right:l-(u+c-s+f)});var p=function(){t(r._nav).removeClass(i.ANIMATE),t(r._navindicator).removeClass(i.SHOW)};d?t(this._navindicator).one(e.TRANSITION_END,p).emulateTransitionEnd(390):p()},n.prototype._createIndicator=function(e,n,o,r){if(this._navindicator=document.createElement("div"),t(this._navindicator).addClass(i.INDICATOR).appendTo(this._nav),void 0!==r){t(r).hasClass(i.DROPDOWN_ITEM)&&(r=t(r).closest(a.DROPDOWN));var s=t(r).offset().left,c=t(r).outerWidth();t(this._navindicator).css({left:s+n-e,right:o-(s+n-e+c)})}t(this._nav).addClass(i.MATERIAL)},n._jQueryInterface=function(e){return this.each(function(){var o=t(this).closest(a.NAV)[0];if(o){var i=t(o).data("md.tabswitch");i||(i=new n(o),t(o).data("md.tabswitch",i)),i.switch(this,e)}})},n}();t(document).on(r.SHOW_BS_TAB,a.DATA_TOGGLE,function(e){s._jQueryInterface.call(t(e.target),e.relatedTarget)}),t.fn[n]=s._jQueryInterface,t.fn[n].Constructor=s,t.fn[n].noConflict=function(){return t.fn[n]=o,s._jQueryInterface}}(jQuery);var e=function(e){function t(){return{bindType:a.end,delegateType:a.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function n(e){return(e[0]||e).nodeType}function o(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(t){var n=this,o=!1;return e(this).one(c.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||c.triggerTransitionEnd(n)},t),this}function r(){if(window.QUnit)return!1;var e=document.createElement("material");for(var t in s)if(void 0!==e.style[t])return{end:s[t]};return!1}var a=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},reflow:function(e){new Function("md","return md")(e.offsetHeight)},supportsTransitionEnd:function(){return Boolean(a)},triggerTransitionEnd:function(t){e(t).trigger(a.end)},typeCheckConfig:function(e,t,i){for(var r in i)if(i.hasOwnProperty(r)){var a=i[r],s=t[r],c=s&&n(s)?"element":o(s);if(!new RegExp(a).test(c))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+c+'" but expected type "'+a+'".')}}};return a=r(),e.fn.emulateTransitionEnd=i,c.supportsTransitionEnd()&&(e.event.special[c.TRANSITION_END]=t()),c}(jQuery)}();
|
1
|
+
function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if("undefined"==typeof jQuery)throw new Error("Material's JavaScript requires jQuery");+function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<3||t[0]>=4)throw new Error("Material's JavaScript requires at least jQuery v3.0.0 but less than v4.0.0")}(),function(e){this.Picker=e(jQuery)}(function(e){function t(a,s,u,f){function p(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",D.component.nodes(w.open),O.box),O.wrap),O.frame),O.holder,'tabindex="-1"')}function h(){E.data(s,D).addClass(O.input).val(E.data("value")?D.get("select",S.format):a.value),S.editable||E.on("focus."+w.id+" click."+w.id,function(e){e.preventDefault(),D.open()}).on("keydown."+w.id,_),i(a,{haspopup:!0,expanded:!1,readonly:!1,owns:a.id+"_root"})}function m(){i(D.$root[0],"hidden",!0)}function v(){D.$holder.on({keydown:_,"focus.toOpen":b,blur:function(){E.removeClass(O.target)},focusin:function(e){D.$root.removeClass(O.focused),e.stopPropagation()},"mousedown click":function(t){var n=t.target;n!=D.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||e(n).is("input, select, textarea, button, option")||(t.preventDefault(),D.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=e(this),n=t.data(),o=t.hasClass(O.navDisabled)||t.hasClass(O.disabled),i=r();i=i&&(i.type||i.href),(o||i&&!e.contains(D.$root[0],i))&&D.$holder[0].focus(),!o&&n.nav?D.set("highlight",D.component.item.highlight,{nav:n.nav}):!o&&"pick"in n?(D.set("select",n.pick),S.closeOnSelect&&D.close(!0)):n.clear?(D.clear(),S.closeOnClear&&D.close(!0)):n.close&&D.close(!0)})}function y(){var t;!0===S.hiddenName?(t=a.name,a.name=""):(t=["string"==typeof S.hiddenPrefix?S.hiddenPrefix:"","string"==typeof S.hiddenSuffix?S.hiddenSuffix:"_submit"],t=t[0]+a.name+t[1]),D._hidden=e('<input type=hidden name="'+t+'"'+(E.data("value")||a.value?' value="'+D.get("select",S.formatSubmit)+'"':"")+">")[0],E.on("change."+w.id,function(){D._hidden.value=a.value?D.get("select",S.formatSubmit):""})}function g(){k&&d?D.$holder.find("."+O.frame).one("transitionend",function(){D.$holder[0].focus()}):D.$holder[0].focus()}function b(e){e.stopPropagation(),E.addClass(O.target),D.$root.addClass(O.focused),D.open()}function _(e){var t=e.keyCode,n=/^(8|46)$/.test(t);return 27==t?(D.close(!0),!1):void((32==t||n||!w.open&&D.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?D.clear().close():D.open()))}if(!a)return t;var k=!1,w={id:a.id||"P"+Math.abs(~~(Math.random()*new Date))},S=u?e.extend(!0,{},u.defaults,f):f||{},O=e.extend({},t.klasses(),S.klass),E=e(a),C=function(){return this.start()},D=C.prototype={constructor:C,$node:E,start:function(){return w&&w.start?D:(w.methods={},w.start=!0,w.open=!1,w.type=a.type,a.autofocus=a==r(),a.readOnly=!S.editable,a.id=a.id||w.id,"text"!=a.type&&(a.type="text"),D.component=new u(D,S),D.$root=e('<div class="'+O.picker+'" id="'+a.id+'_root" />'),m(),D.$holder=e(p()).appendTo(D.$root),v(),S.formatSubmit&&y(),h(),S.containerHidden?e(S.containerHidden).append(D._hidden):E.after(D._hidden),S.container?e(S.container).append(D.$root):E.after(D.$root),D.on({start:D.component.onStart,render:D.component.onRender,stop:D.component.onStop,open:D.component.onOpen,close:D.component.onClose,set:D.component.onSet}).on({start:S.onStart,render:S.onRender,stop:S.onStop,open:S.onOpen,close:S.onClose,set:S.onSet}),k=n(D.$holder[0]),a.autofocus&&D.open(),D.trigger("start").trigger("render"))},render:function(t){return t?(D.$holder=e(p()),v(),D.$root.html(D.$holder)):D.$root.find("."+O.box).html(D.component.nodes(w.open)),D.trigger("render")},stop:function(){return w.start?(D.close(),D._hidden&&D._hidden.parentNode.removeChild(D._hidden),D.$root.remove(),E.removeClass(O.input).removeData(s),setTimeout(function(){E.off("."+w.id)},0),a.type=w.type,a.readOnly=!1,D.trigger("stop"),w.methods={},w.start=!1,D):D},open:function(n){return w.open?D:(E.addClass(O.active),i(a,"expanded",!0),setTimeout(function(){D.$root.addClass(O.opened),i(D.$root[0],"hidden",!1)},0),!1!==n&&(w.open=!0,k&&l.css("overflow","hidden").css("padding-right","+="+o()),g(),c.on("click."+w.id+" focusin."+w.id,function(e){var t=e.target;t!=a&&t!=document&&3!=e.which&&D.close(t===D.$holder[0])}).on("keydown."+w.id,function(n){var o=n.keyCode,i=D.component.key[o],a=n.target;27==o?D.close(!0):a!=D.$holder[0]||!i&&13!=o?e.contains(D.$root[0],a)&&13==o&&(n.preventDefault(),a.click()):(n.preventDefault(),i?t._.trigger(D.component.key.go,D,[t._.trigger(i)]):D.$root.find("."+O.highlighted).hasClass(O.disabled)||(D.set("select",D.component.item.highlight),S.closeOnSelect&&D.close(!0)))})),D.trigger("open"))},close:function(e){return e&&(S.editable?a.focus():(D.$holder.off("focus.toOpen").focus(),setTimeout(function(){D.$holder.on("focus.toOpen",b)},0))),E.removeClass(O.active),i(a,"expanded",!1),setTimeout(function(){D.$root.removeClass(O.opened+" "+O.focused),i(D.$root[0],"hidden",!0)},0),w.open?(w.open=!1,k&&l.css("overflow","").css("padding-right","-="+o()),c.off("."+w.id),D.trigger("close")):D},clear:function(e){return D.set("clear",null,e)},set:function(t,n,o){var i,a,r=e.isPlainObject(t),s=r?t:{};if(o=r&&e.isPlainObject(n)?n:o||{},t){r||(s[t]=n);for(i in s)a=s[i],i in D.component.item&&(void 0===a&&(a=null),D.component.set(i,a,o)),("select"==i||"clear"==i)&&E.val("clear"==i?"":D.get(i,S.format)).trigger("change");D.render()}return o.muted?D:D.trigger("set",s)},get:function(e,n){if(e=e||"value",null!=w[e])return w[e];if("valueSubmit"==e){if(D._hidden)return D._hidden.value;e="value"}if("value"==e)return a.value;if(e in D.component.item){if("string"==typeof n){var o=D.component.get(e);return o?t._.trigger(D.component.formats.toString,D.component,[n,o]):""}return D.component.get(e)}},on:function(t,n,o){var i,a,r=e.isPlainObject(t),s=r?t:{};if(t){r||(s[t]=n);for(i in s)a=s[i],o&&(i="_"+i),w.methods[i]=w.methods[i]||[],w.methods[i].push(a)}return D},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in w.methods&&delete w.methods[t];return D},trigger:function(e,n){var o=function(e){var o=w.methods[e];o&&o.map(function(e){t._.trigger(e,D,[n])})};return o("_"+e),o(e),D}};return new C}function n(e){var t,n="position";return e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]),"fixed"==t}function o(){if(l.height()<=s.height())return 0;var t=e('<div style="visibility:hidden;width:100px" />').appendTo("body"),n=t[0].offsetWidth;t.css("overflow","scroll");var o=e('<div style="width:100%" />').appendTo(t)[0].offsetWidth;return t.remove(),n-o}function i(t,n,o){if(e.isPlainObject(n))for(var i in n)a(t,i,n[i]);else a(t,n,o)}function a(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function r(){try{return document.activeElement}catch(e){}}var s=e(window),c=e(document),l=e(document.documentElement),d=null!=document.documentElement.style.transition;return t.klasses=function(e){return e=e||"picker",{picker:e,opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},t._={group:function(e){for(var n,o="",i=t._.trigger(e.min,e);i<=t._.trigger(e.max,e,[i]);i+=e.i)n=t._.trigger(e.item,e,[i]),o+=t._.node(e.node,n[0],n[1],n[2]);return o},node:function(t,n,o,i){return n?(n=e.isArray(n)?n.join(""):n,o=o?' class="'+o+'"':"",i=i?" "+i:"","<"+t+o+i+">"+n+"</"+t+">"):""},lead:function(e){return(10>e?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return{}.toString.call(e).indexOf("Date")>-1&&this.isInteger(e.getDate())},isInteger:function(e){return{}.toString.call(e).indexOf("Number")>-1&&e%1==0},ariaAttr:function(t,n){e.isPlainObject(t)||(t={attribute:n}),n="";for(var o in t){var i=("role"==o?"":"aria-")+o;n+=null==t[o]?"":i+'="'+t[o]+'"'}return n}},t.extend=function(n,o){e.fn[n]=function(i,a){var r=this.data(n);return"picker"==i?r:r&&"string"==typeof i?t._.trigger(r[i],r,[a]):this.each(function(){e(this).data(n)||new t(this,n,o,i)})},e.fn[n].defaults=o.defaults},t}),function(e){e(Picker,jQuery)}(function(e,t){function n(e,t){var n=this,o=e.$node[0],i=o.value,a=e.$node.data("value"),r=a||i,s=a?t.formatSubmit:t.format,c=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction};n.settings=t,n.$node=e.$node,n.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},n.item={},n.item.clear=null,n.item.disable=(t.disable||[]).slice(0),n.item.enable=-function(e){return!0===e[0]?e.shift():-1}(n.item.disable),n.set("min",t.min).set("max",t.max).set("now"),r?n.set("select",r,{format:s,defaultValue:!0}):n.set("select",null).set("highlight",n.item.now),n.key={40:7,38:-7,39:function(){return c()?-1:1},37:function(){return c()?1:-1},go:function(e){var t=n.item.highlight,o=new Date(t.year,t.month,t.date+e);n.set("highlight",o,{interval:e}),this.render()}},e.on("render",function(){e.$root.find("."+t.klass.selectMonth).on("change",function(){var n=this.value;n&&(e.set("highlight",[e.get("view").year,n,e.get("highlight").date]),e.$root.find("."+t.klass.selectMonth).trigger("focus"))}),e.$root.find("."+t.klass.selectYear).on("change",function(){var n=this.value;n&&(e.set("highlight",[n,e.get("view").month,e.get("highlight").date]),e.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var o="";n.disabled(n.get("now"))&&(o=":not(."+t.klass.buttonToday+")"),e.$root.find("button"+o+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}var o=e._;n.prototype.set=function(e,t,n){var o=this,i=o.item;return null===t?("clear"==e&&(e="select"),i[e]=t,o):(i["enable"==e?"disable":"flip"==e?"enable":e]=o.queue[e].split(" ").map(function(i){return t=o[i](e,t,n)}).pop(),"select"==e?o.set("highlight",i.select,n):"highlight"==e?o.set("view",i.highlight,n):e.match(/^(flip|min|max|disable|enable)$/)&&(i.select&&o.disabled(i.select)&&o.set("select",i.select,n),i.highlight&&o.disabled(i.highlight)&&o.set("highlight",i.highlight,n)),o)},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,n,i){var a,r=this;return(n=void 0===n?e:n)==-1/0||n==1/0?a=n:t.isPlainObject(n)&&o.isInteger(n.pick)?n=n.obj:t.isArray(n)?(n=new Date(n[0],n[1],n[2]),n=o.isDate(n)?n:r.create().obj):n=o.isInteger(n)||o.isDate(n)?r.normalize(new Date(n),i):r.now(e,n,i),{year:a||n.getFullYear(),month:a||n.getMonth(),date:a||n.getDate(),day:a||n.getDay(),obj:a||n,pick:a||n.getTime()}},n.prototype.createRange=function(e,n){var i=this,a=function(e){return!0===e||t.isArray(e)||o.isDate(e)?i.create(e):e};return o.isInteger(e)||(e=a(e)),o.isInteger(n)||(n=a(n)),o.isInteger(e)&&t.isPlainObject(n)?e=[n.year,n.month,n.date+e]:o.isInteger(n)&&t.isPlainObject(e)&&(n=[e.year,e.month,e.date+n]),{from:a(e),to:a(n)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,n,o){var i,a,r,s,c=t.isArray(n),l=t.isPlainObject(n),d=this.item.view;if(c||l){for(l?(a=n.year,r=n.month,s=n.date):(a=+n[0],r=+n[1],s=+n[2]),o&&o.nav&&d&&d.month!==r&&(a=d.year,r=d.month),a=(i=new Date(a,r+(o&&o.nav?o.nav:0),1)).getFullYear(),r=i.getMonth();new Date(a,r,s).getMonth()!==r;)s-=1;n=[a,r,s]}return n},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){var n=this;return t?"string"==typeof t?t=n.parse(e,t):o.isInteger(t)&&(t=n.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,i){var a,r,s,c,l=this,d=n,u=i&&i.interval?i.interval:1,f=-1===l.item.enable,p=l.item.min,h=l.item.max,m=f&&l.item.disable.filter(function(e){if(t.isArray(e)){var i=l.create(e).pick;i<n.pick?a=!0:i>n.pick&&(r=!0)}return o.isInteger(e)}).length;if((!i||!i.nav&&!i.defaultValue)&&(!f&&l.disabled(n)||f&&l.disabled(n)&&(m||a||r)||!f&&(n.pick<=p.pick||n.pick>=h.pick)))for(f&&!m&&(!r&&u>0||!a&&0>u)&&(u*=-1);l.disabled(n)&&(Math.abs(u)>1&&(n.month<d.month||n.month>d.month)&&(n=d,u=u>0?1:-1),n.pick<=p.pick?(s=!0,u=1,n=l.create([p.year,p.month,p.date+(n.pick===p.pick?0:-1)])):n.pick>=h.pick&&(c=!0,u=-1,n=l.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!s||!c);)n=l.create([n.year,n.month,n.date+u]);return n},n.prototype.disabled=function(e){var n=this,i=n.item.disable.filter(function(i){return o.isInteger(i)?e.day===(n.settings.firstDay?i:i-1)%7:t.isArray(i)||o.isDate(i)?e.pick===n.create(i).pick:t.isPlainObject(i)?n.withinRange(i,e):void 0});return i=i.length&&!i.filter(function(e){return t.isArray(e)&&"inverted"==e[3]||t.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!i:i||e.pick<n.item.min.pick||e.pick>n.item.max.pick},n.prototype.parse=function(e,t,n){var i=this,a={};return t&&"string"==typeof t?(n&&n.format||(n=n||{},n.format=i.settings.format),i.formats.toArray(n.format).map(function(e){var n=i.formats[e],r=n?o.trigger(n,i,[t,a]):e.replace(/^!/,"").length;n&&(a[e]=t.substr(0,r)),t=t.substr(r)}),[a.yyyy||a.yy,+(a.mm||a.m)-1,a.dd||a.d]):t},n.prototype.formats=function(){function e(e,t,n){var o=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(o)+1),o.length}function t(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?o.digits(e):t.date},dd:function(e,t){return e?2:o.lead(t.date)},ddd:function(e,n){return e?t(e):this.settings.weekdaysShort[n.day]},dddd:function(e,n){return e?t(e):this.settings.weekdaysFull[n.day]},m:function(e,t){return e?o.digits(e):t.month+1},mm:function(e,t){return e?2:o.lead(t.month+1)},mmm:function(t,n){var o=this.settings.monthsShort;return t?e(t,o,n):o[n.month]},mmmm:function(t,n){var o=this.settings.monthsFull;return t?e(t,o,n):o[n.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return o.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,n){var i=this;return o.isInteger(e)&&o.isInteger(n)||"boolean"==typeof e&&"boolean"==typeof n?e===n:(o.isDate(e)||t.isArray(e))&&(o.isDate(n)||t.isArray(n))?i.create(e).pick===i.create(n).pick:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&(i.isDateExact(e.from,n.from)&&i.isDateExact(e.to,n.to))},n.prototype.isDateOverlap=function(e,n){var i=this,a=i.settings.firstDay?1:0;return o.isInteger(e)&&(o.isDate(n)||t.isArray(n))?(e=e%7+a)===i.create(n).day+1:o.isInteger(n)&&(o.isDate(e)||t.isArray(e))?(n=n%7+a)===i.create(e).day+1:!(!t.isPlainObject(e)||!t.isPlainObject(n))&&i.overlapRanges(e,n)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,n){var i=this,a=i.item.disable.slice(0);return"flip"==n?i.flipEnable():!1===n?(i.flipEnable(1),a=[]):!0===n?(i.flipEnable(-1),a=[]):n.map(function(e){for(var n,r=0;r<a.length;r+=1)if(i.isDateExact(e,a[r])){n=!0;break}n||(o.isInteger(e)||o.isDate(e)||t.isArray(e)||t.isPlainObject(e)&&e.from&&e.to)&&a.push(e)}),a},n.prototype.activate=function(e,n){var i=this,a=i.item.disable,r=a.length;return"flip"==n?i.flipEnable():!0===n?(i.flipEnable(1),a=[]):!1===n?(i.flipEnable(-1),a=[]):n.map(function(e){var n,s,c,l;for(c=0;r>c;c+=1){if(s=a[c],i.isDateExact(s,e)){n=a[c]=null,l=!0;break}if(i.isDateOverlap(s,e)){t.isPlainObject(e)?(e.inverted=!0,n=e):t.isArray(e)?(n=e)[3]||n.push("inverted"):o.isDate(e)&&(n=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(n)for(c=0;r>c;c+=1)if(i.isDateExact(a[c],e)){a[c]=null;break}if(l)for(c=0;r>c;c+=1)if(i.isDateOverlap(a[c],e)){a[c]=null;break}n&&a.push(n)}),a.filter(function(e){return null!=e})},n.prototype.nodes=function(e){var t=this,n=t.settings,i=t.item,a=i.now,r=i.select,s=i.highlight,c=i.view,l=i.disable,d=i.min,u=i.max,f=function(e,t){return n.firstDay&&(e.push(e.shift()),t.push(t.shift())),o.node("thead",o.node("tr",o.group({min:0,max:6,i:1,node:"th",item:function(o){return[e[o],n.klass.weekdays,'scope=col title="'+t[o]+'"']}})))}((n.showWeekdaysFull?n.weekdaysFull:n.weekdaysShort).slice(0),n.weekdaysFull.slice(0)),p=function(e){return o.node("div"," ",n.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=u.year&&c.month>=u.month||!e&&c.year<=d.year&&c.month<=d.month?" "+n.klass.navDisabled:""),"data-nav="+(e||-1)+" "+o.ariaAttr({role:"button",controls:t.$node[0].id+"_table"})+' title="'+(e?n.labelMonthNext:n.labelMonthPrev)+'"')},h=function(){var i=n.showMonthsShort?n.monthsShort:n.monthsFull;return n.selectMonths?o.node("select",o.group({min:0,max:11,i:1,node:"option",item:function(e){return[i[e],0,"value="+e+(c.month==e?" selected":"")+(c.year==d.year&&e<d.month||c.year==u.year&&e>u.month?" disabled":"")]}}),n.klass.selectMonth,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelMonthSelect+'"'):o.node("div",i[c.month],n.klass.month)},m=function(){var i=c.year,a=!0===n.selectYears?5:~~(n.selectYears/2);if(a){var r=d.year,s=u.year,l=i-a,f=i+a;if(r>l&&(f+=r-l,l=r),f>s){var p=l-r,h=f-s;l-=p>h?h:p,f=s}return o.node("select",o.group({min:l,max:f,i:1,node:"option",item:function(e){return[e,0,"value="+e+(i==e?" selected":"")]}}),n.klass.selectYear,(e?"":"disabled")+" "+o.ariaAttr({controls:t.$node[0].id+"_table"})+' title="'+n.labelYearSelect+'"')}return o.node("div",i,n.klass.year)};return o.node("div",(n.selectYears?m()+h():h()+m())+p()+p(1),n.klass.header)+o.node("table",f+o.node("tbody",o.group({min:0,max:5,i:1,node:"tr",item:function(e){var i=n.firstDay&&0===t.create([c.year,c.month,1]).day?-7:0;return[o.group({min:7*e-c.day+i+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=t.create([c.year,c.month,e+(n.firstDay?1:0)]);var i=r&&r.pick==e.pick,f=s&&s.pick==e.pick,p=l&&t.disabled(e)||e.pick<d.pick||e.pick>u.pick,h=o.trigger(t.formats.toString,t,[n.format,e]);return[o.node("div",e.date,function(t){return t.push(c.month==e.month?n.klass.infocus:n.klass.outfocus),a.pick==e.pick&&t.push(n.klass.now),i&&t.push(n.klass.selected),f&&t.push(n.klass.highlighted),p&&t.push(n.klass.disabled),t.join(" ")}([n.klass.day]),"data-pick="+e.pick+" "+o.ariaAttr({role:"gridcell",label:h,selected:!(!i||t.$node.val()!==h)||null,activedescendant:!!f||null,disabled:!!p||null})),"",o.ariaAttr({role:"presentation"})]}})]}})),n.klass.table,'id="'+t.$node[0].id+'_table" '+o.ariaAttr({role:"grid",controls:t.$node[0].id,readonly:!0}))+o.node("div",o.node("button",n.today,n.klass.buttonToday,"type=button data-pick="+a.pick+(e&&!t.disabled(a)?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.clear,n.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id}))+o.node("button",n.close,n.klass.buttonClose,"type=button data-close=true "+(e?"":" disabled")+" "+o.ariaAttr({controls:t.$node[0].id})),n.klass.footer)},n.defaults=function(e){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:e+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}}}(e.klasses().picker+"__"),e.extend("pickadate",n)}),function(e,t,n,o){function i(t,n){this.element=t,this.$element=e(t),this.init()}var a="textareaAutoSize",r="plugin_"+a,s=function(e){return e.replace(/\s/g,"").length>0};i.prototype={init:function(){var n=parseInt(this.$element.css("paddingBottom"))+parseInt(this.$element.css("paddingTop"))+parseInt(this.$element.css("borderTopWidth"))+parseInt(this.$element.css("borderBottomWidth"))||0;s(this.element.value)&&this.$element.height(this.element.scrollHeight-n),this.$element.on("input keyup",function(o){var i=e(t),a=i.scrollTop();e(this).height(0).height(this.scrollHeight-n),i.scrollTop(a)})}},e.fn[a]=function(t){return this.each(function(){e.data(this,r)||e.data(this,r,new i(this,t))}),this}}(jQuery,window,document),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.apply(e)}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,function(){"use strict";function e(e){return null!==e&&e===e.window}function t(t){return e(t)?t:9===t.nodeType&&t.defaultView}function n(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function o(e){return n(e)&&e.nodeType>0}function i(e){var t=f.call(e);return"[object String]"===t?u(e):n(e)&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(t)&&e.hasOwnProperty("length")?e:o(e)?[e]:[]}function a(e){var n,o,i={top:0,left:0},a=e&&e.ownerDocument;return n=a.documentElement,void 0!==e.getBoundingClientRect&&(i=e.getBoundingClientRect()),o=t(a),{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}}function r(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}function s(e,t,n,o){if(n){o.classList.remove("waves-wrapping"),n.classList.remove("waves-rippling");var i=n.getAttribute("data-x"),a=n.getAttribute("data-y"),s=n.getAttribute("data-scale"),c=n.getAttribute("data-translate"),l=350-(Date.now()-Number(n.getAttribute("data-hold")));0>l&&(l=0),"mousemove"===e.type&&(l=150);var d="mousemove"===e.type?2500:h.duration;setTimeout(function(){var e={top:a+"px",left:i+"px",opacity:"0","-webkit-transition-duration":d+"ms","-moz-transition-duration":d+"ms","-o-transition-duration":d+"ms","transition-duration":d+"ms","-webkit-transform":s+" "+c,"-moz-transform":s+" "+c,"-ms-transform":s+" "+c,"-o-transform":s+" "+c,transform:s+" "+c};n.setAttribute("style",r(e)),setTimeout(function(){try{o.removeChild(n),t.removeChild(o)}catch(e){return!1}},d)},l)}}function c(e){if(!1===v.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentElement;){if(n.classList.contains("waves-effect")&&!(n instanceof SVGElement)){t=n;break}n=n.parentElement}return t}function l(e){var t=c(e);if(null!==t){if(t.disabled||t.getAttribute("disabled")||t.classList.contains("disabled"))return;if(v.registerEvent(e),"touchstart"===e.type&&h.delay){var n=!1,o=setTimeout(function(){o=null,h.show(e,t)},h.delay),i=function(i){o&&(clearTimeout(o),o=null,h.show(e,t)),n||(n=!0,h.hide(i,t))};t.addEventListener("touchmove",function(e){o&&(clearTimeout(o),o=null),i(e)},!1),t.addEventListener("touchend",i,!1),t.addEventListener("touchcancel",i,!1)}else h.show(e,t),p&&(t.addEventListener("touchend",h.hide,!1),t.addEventListener("touchcancel",h.hide,!1)),t.addEventListener("mouseup",h.hide,!1),t.addEventListener("mouseleave",h.hide,!1)}}var d=d||{},u=document.querySelectorAll.bind(document),f=Object.prototype.toString,p="ontouchstart"in window,h={duration:750,delay:200,show:function(e,t,n){if(2===e.button)return!1;t=t||this;var o=document.createElement("div");o.className="waves-wrap waves-wrapping",t.appendChild(o);var i=document.createElement("div");i.className="waves-ripple waves-rippling",o.appendChild(i);var s=a(t),c=0,l=0;"touches"in e&&e.touches.length?(c=e.touches[0].pageY-s.top,l=e.touches[0].pageX-s.left):(c=e.pageY-s.top,l=e.pageX-s.left),l=l>=0?l:0,c=c>=0?c:0;var d="scale("+t.clientWidth/100*3+")",u="translate(0,0)";n&&(u="translate("+n.x+"px, "+n.y+"px)"),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-x",l),i.setAttribute("data-y",c),i.setAttribute("data-scale",d),i.setAttribute("data-translate",u);var f={top:c+"px",left:l+"px"};i.classList.add("waves-notransition"),i.setAttribute("style",r(f)),i.classList.remove("waves-notransition"),f["-webkit-transform"]=d+" "+u,f["-moz-transform"]=d+" "+u,f["-ms-transform"]=d+" "+u,f["-o-transform"]=d+" "+u,f.transform=d+" "+u,f.opacity="1";var p="mousemove"===e.type?2500:h.duration;f["-webkit-transition-duration"]=p+"ms",f["-moz-transition-duration"]=p+"ms",f["-o-transition-duration"]=p+"ms",f["transition-duration"]=p+"ms",i.setAttribute("style",r(f))},hide:function(e,t){for(var n=(t=t||this).getElementsByClassName("waves-wrapping"),o=t.getElementsByClassName("waves-rippling"),i=0,a=o.length;a>i;i++)s(e,t,o[i],n[i])}},m={input:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");n.className=e.className+" waves-input-wrapper",e.className="waves-button-input",t.replaceChild(n,e),n.appendChild(e);var o=window.getComputedStyle(e,null),i=o.color,a=o.backgroundColor;n.setAttribute("style","color:"+i+";background:"+a),e.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");t.replaceChild(n,e),n.appendChild(e)}}},v={touches:0,allowEvent:function(e){var t=!0;return/^(mousedown|mousemove)$/.test(e.type)&&v.touches&&(t=!1),t},registerEvent:function(e){var t=e.type;"touchstart"===t?v.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){v.touches&&(v.touches-=1)},500)}};return d.init=function(e){var t=document.body;"duration"in(e=e||{})&&(h.duration=e.duration),"delay"in e&&(h.delay=e.delay),p&&(t.addEventListener("touchstart",l,!1),t.addEventListener("touchcancel",v.registerEvent,!1),t.addEventListener("touchend",v.registerEvent,!1)),t.addEventListener("mousedown",l,!1)},d.attach=function(e,t){e=i(e),"[object Array]"===f.call(t)&&(t=t.join(" ")),t=t?" "+t:"";for(var n,o,a=0,r=e.length;r>a;a++)n=e[a],o=n.tagName.toLowerCase(),-1!==["input","img"].indexOf(o)&&(m[o](n),n=n.parentElement),-1===n.className.indexOf("waves-effect")&&(n.className+=" waves-effect"+t)},d.ripple=function(e,t){var n=(e=i(e)).length;if(t=t||{},t.wait=t.wait||0,t.position=t.position||null,n)for(var o,r,s,c={},l=0,d={type:"mousedown",button:1};n>l;l++)if(o=e[l],r=t.position||{x:o.clientWidth/2,y:o.clientHeight/2},s=a(o),c.x=s.left+r.x,c.y=s.top+r.y,d.pageX=c.x,d.pageY=c.y,h.show(d,o),t.wait>=0&&null!==t.wait){var u={type:"mouseup",button:1};setTimeout(function(e,t){return function(){h.hide(e,t)}}(u,o),t.wait)}},d.calm=function(e){for(var t={type:"mouseup",button:1},n=0,o=(e=i(e)).length;o>n;n++)h.hide(t,e[n])},d.displayEffect=function(e){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),d.init(e)},d}),function(e){"use strict";var t=function(e,t){this._element=e,this._options=t};if(void 0===e.fn.pickadate)throw new Error("Material's JavaScript requires pickadate.js");t.DEFAULTS={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"body",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:!1,onOpen:!1,onRender:!1,onSet:!1,onStart:!1,onStop:!1,selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},t.prototype.display=function(t,n,o){e(".picker-date-display",n).remove(),e(".picker-wrap",n).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+t.get(o,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+t.get(o,"dddd")+'</span><span class="picker-day-display">'+t.get(o,"d")+'</span><span class="picker-month-display">'+t.get(o,"mmm")+"</span></div></div>")},t.prototype.show=function(){var t=this;e(this._element).pickadate({clear:t._options.cancel,close:t._options.ok,closeOnClear:t._options.closeOnCancel,closeOnSelect:t._options.closeOnSelect,container:t._options.container,disable:t._options.disable,firstDay:t._options.firstDay,format:t._options.format,formatSubmit:t._options.formatSubmit,klass:t._options.klass,max:t._options.max,min:t._options.min,monthsFull:t._options.monthsFull,monthsShort:t._options.monthsShort,onClose:t._options.onClose,onOpen:t._options.onOpen,onRender:t._options.onRender,onSet:t._options.onSet,onStart:t._options.onStart,onStop:t._options.onStop,selectMonths:t._options.selectMonths,selectYears:t._options.selectYears,today:t._options.today,weekdaysFull:t._options.weekdaysFull,weekdaysShort:t._options.weekdaysShort});var n=e(this._element).pickadate("picker"),o=(n.$node,n.$root);n.on({close:function(){e(document.activeElement).blur()},open:function(){e(".picker__date-display",o).length||t.display(n,o,"highlight")},set:function(){null!==n.get("select")&&t.display(n,o,"select")}})};var n=e.fn.pickdate;e.fn.pickdate=function(n){return this.each(function(){var o=e(this).data("bs.pickdate"),i=e.extend({},t.DEFAULTS,e(this).data(),"object"==typeof n&&n);o||e(this).data("bs.pickdate",o=new t(this,i)),o.show()})},e.fn.pickdate.Constructor=t,e.fn.pickdate.noConflict=function(){return e.fn.pickdate=n,this}}(jQuery),$(function(){$(".textarea-autosize").length&&void 0!==$.fn.textareaAutoSize&&$(".textarea-autosize").textareaAutoSize()}),$(function(){$(".waves-attach").length&&"undefined"!=typeof Waves&&(Waves.attach(".waves-attach"),Waves.init({duration:300}))});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();+function(){(function(e){var t={SHOW:"show",SHOW_PREDECESSOR:"show-predecessor"},n={HIDE:"hide.bs.collapse",SHOW:"show.bs.collapse"},o={PANEL:".expansion-panel",PANEL_BODY:".expansion-panel .collapse"};e(document).on(""+n.HIDE,o.PANEL_BODY,function(n){var i=e(n.target).closest(o.PANEL);i.removeClass(t.SHOW);var a=i.prev(o.PANEL);a.length&&a.removeClass(t.SHOW_PREDECESSOR)}).on(""+n.SHOW,o.PANEL_BODY,function(n){var i=e(n.target).closest(o.PANEL);i.addClass(t.SHOW);var a=i.prev(o.PANEL);a.length&&a.addClass(t.SHOW_PREDECESSOR)})})(jQuery),function(e){var t="md.floatinglabel",n="floatinglabel",o=e.fn[n],i={IS_FOCUSED:"is-focused",HAS_VALUE:"has-value"},a={CHANGE:"change.md.floatinglabel",FOCUSIN:"focusin.md.floatinglabel",FOCUSOUT:"focusout.md.floatinglabel"},r={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},s=function(){function n(e){_classCallCheck(this,n),this._element=e}return n.prototype.change=function(t){e(this._element).val()||e(this._element).is("select")&&""!==e("option:first-child",e(this._element)).html().replace(" ","")?e(t).addClass(i.HAS_VALUE):e(t).removeClass(i.HAS_VALUE)},n.prototype.focusin=function(t){e(t).addClass(i.IS_FOCUSED)},n.prototype.focusout=function(t){e(t).removeClass(i.IS_FOCUSED)},n._jQueryInterface=function(o){return this.each(function(){var i=o||"change",a=e(this).data(t);if(a||(a=new n(this),e(this).data(t,a)),"string"==typeof i){if(void 0===a[i])throw new Error('No method named "'+i+'"');a[i](e(this).closest(r.DATA_PARENT))}})},n}();e(document).on(a.CHANGE+" "+a.FOCUSIN+" "+a.FOCUSOUT,r.DATA_TOGGLE,function(t){s._jQueryInterface.call(e(this),t.type)}),e.fn[n]=s._jQueryInterface,e.fn[n].Constructor=s,e.fn[n].noConflict=function(){return e.fn[n]=o,s._jQueryInterface}}(jQuery),function(t){var n=".md.navdrawer",o="navdrawer",i=t.fn[o],a={BACKDROP:"navdrawer-backdrop",OPEN:"navdrawer-open",SHOW:"show"},r={breakpoint:1280,keyboard:!0,show:!0,type:"default"},s={keyboard:"boolean",show:"boolean",type:"string"},c={CLICK_DATA_API:"click.md.navdrawer.data-api",CLICK_DISMISS:"click.dismiss"+n,FOCUSIN:"focusin"+n,HIDDEN:"hidden"+n,HIDE:"hide"+n,KEYDOWN_DISMISS:"keydown.dismiss"+n,MOUSEDOWN_DISMISS:"mousedown.dismiss"+n,MOUSEUP_DISMISS:"mouseup.dismiss"+n,SHOW:"show"+n,SHOWN:"shown"+n},l={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},d=function(){function n(e,o){_classCallCheck(this,n),this._backdrop=null,this._config=this._getConfig(o),this._content=t(e).find(l.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1}return n.prototype.hide=function(e){e&&e.preventDefault();var n=a.OPEN+"-"+this._config.type,o=t.Event(c.HIDE);t(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),t(document).off(c.FOCUSIN),t(this._content).off(c.MOUSEDOWN_DISMISS),t(this._element).off(c.CLICK_DISMISS).removeClass(a.SHOW),this._hideNavdrawer(n))},n.prototype.show=function(e){var n=this,i=t.Event(c.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,t(document.body).addClass(a.OPEN+"-"+this._config.type),this._setEscapeEvent(),t(this._element).addClass(o+"-"+this._config.type),t(this._element).on(c.CLICK_DISMISS,l.DATA_DISMISS,t.proxy(this.hide,this)),t(this._content).on(c.MOUSEDOWN_DISMISS,function(){t(n._element).one(c.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))},n.prototype.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.prototype._enforceFocus=function(){var e=this;t(document).off(c.FOCUSIN).on(c.FOCUSIN,function(n){("default"===e._config.type||t(window).width()<=e._config.breakpoint)&&(e._element===n.target||t(e._element).has(n.target).length||e._element.focus())})},n.prototype._getConfig=function(n){return n=t.extend({},r,n),e.typeCheckConfig(o,n,s),n},n.prototype._hideNavdrawer=function(e){var n=this;this._showBackdrop(function(){t(document.body).removeClass(e),n._element.setAttribute("aria-hidden","true"),n._element.style.display="none",t(n._element).trigger(c.HIDDEN)})},n.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(c.KEYDOWN_DISMISS)},n.prototype._showBackdrop=function(n){var o=this,i=e.supportsTransitionEnd();if(this._isShown){if(this._backdrop=document.createElement("div"),t(this._backdrop).addClass(a.BACKDROP).addClass(a.BACKDROP+"-"+this._config.type).appendTo(document.body),t(this._element).on(c.CLICK_DISMISS,function(e){o._ignoreBackdropClick?o._ignoreBackdropClick=!1:e.target===e.currentTarget&&o.hide()}),i&&e.reflow(this._backdrop),t(this._backdrop).addClass(a.SHOW),!n)return;if(!i)return void n();t(this._backdrop).one(e.TRANSITION_END,n).emulateTransitionEnd(487.5)}else if(this._backdrop&&!this._isShown){t(this._backdrop).removeClass(a.SHOW);var r=function(){o._removeBackdrop(),n&&n()};i?t(this._backdrop).one(e.TRANSITION_END,r).emulateTransitionEnd(487.5):r()}else n&&n()},n.prototype._showElement=function(n){var o=this,i=e.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.removeAttribute("aria-hidden"),this._element.style.display="block",i&&e.reflow(this._element),t(this._element).addClass(a.SHOW),this._enforceFocus();var r=t.Event(c.SHOWN,{relatedTarget:n}),s=function(){o._element.focus(),t(o._element).trigger(r)};i?t(this._content).one(e.TRANSITION_END,s).emulateTransitionEnd(292.5):s()},n._jQueryInterface=function(e,o){return this.each(function(){var i=t.extend({},n.Default,t(this).data(),"object"===(void 0===e?"undefined":_typeof(e))&&e),a=t(this).data("md.navdrawer");if(a||(a=new n(this,i),t(this).data("md.navdrawer",a)),"string"==typeof e){if(void 0===a[e])throw new Error('No method named "'+e+'"');a[e](o)}else i.show&&a.show(o)})},_createClass(n,null,[{key:"Default",get:function(){return r}}]),n}();t(document).on(c.CLICK_DATA_API,l.DATA_TOGGLE,function(n){var o=this,i=e.getSelectorFromElement(this),a=void 0;i&&(a=t(i)[0]);var r=t(a).data("md.navdrawer")?"toggle":t.extend({},t(a).data(),t(this).data());"A"===this.tagName&&n.preventDefault();var s=t(a).one(c.SHOW,function(e){e.isDefaultPrevented()||s.one(c.HIDDEN,function(){t(o).is(":visible")&&o.focus()})});d._jQueryInterface.call(t(a),r,this)}),t.fn[o]=d._jQueryInterface,t.fn[o].Constructor=d,t.fn[o].noConflict=function(){return t.fn[o]=i,d._jQueryInterface}}(jQuery),function(e){var t=".md.controlfocus",n={FOCUS:"focus"},o={IS_MOUSEDOWN:!1},i={BLUR:"blur"+t,FOCUS:"focus"+t,MOUSEDOWN:"mousedown"+t,MOUSEUP:"mouseup"+t},a={CONTROL:".custom-control",INPUT:".custom-control-input"};e(document).on(""+i.BLUR,a.INPUT,function(t){e(t.target).removeClass(n.FOCUS)}).on(""+i.FOCUS,a.INPUT,function(t){!1===o.IS_MOUSEDOWN&&e(t.target).addClass(n.FOCUS)}).on(""+i.MOUSEDOWN,a.CONTROL,function(){o.IS_MOUSEDOWN=!0}).on(""+i.MOUSEUP,a.CONTROL,function(){setTimeout(function(){o.IS_MOUSEDOWN=!1},1)})}(jQuery),function(t){var n="tabswitch",o=t.fn[n],i={ANIMATE:"animate",DROPDOWN_ITEM:"dropdown-item",INDICATOR:"nav-tabs-indicator",MATERIAL:"nav-tabs-material",SCROLLABLE:"nav-tabs-scrollable",SHOW:"show"},a={SHOW_BS_TAB:"show.bs.tab"},r={DATA_TOGGLE:'.nav-tabs [data-toggle="tab"]',DROPDOWN:".dropdown",NAV:".nav-tabs"},s=function(){function n(e){if(_classCallCheck(this,n),void 0===t.fn.tab)throw new Error("Material's JavaScript requires Bootstrap's tab.js");this._nav=e,this._navindicator=null}return n.prototype.switch=function(n,o){var a=this,s=t(this._nav).offset().left,c=t(this._nav).scrollLeft(),l=t(this._nav).outerWidth(),d=e.supportsTransitionEnd();this._navindicator||this._createIndicator(s,c,l,o),t(n).hasClass(i.DROPDOWN_ITEM)&&(n=t(n).closest(r.DROPDOWN));var u=t(n).offset().left,f=t(n).outerWidth();t(this._navindicator).addClass(i.SHOW),e.reflow(this._navindicator),d&&t(this._nav).addClass(i.ANIMATE),t(this._navindicator).css({left:u+c-s,right:l-(u+c-s+f)});var p=function(){t(a._nav).removeClass(i.ANIMATE),t(a._navindicator).removeClass(i.SHOW)};d?t(this._navindicator).one(e.TRANSITION_END,p).emulateTransitionEnd(390):p()},n.prototype._createIndicator=function(e,n,o,a){if(this._navindicator=document.createElement("div"),t(this._navindicator).addClass(i.INDICATOR).appendTo(this._nav),void 0!==a){t(a).hasClass(i.DROPDOWN_ITEM)&&(a=t(a).closest(r.DROPDOWN));var s=t(a).offset().left,c=t(a).outerWidth();t(this._navindicator).css({left:s+n-e,right:o-(s+n-e+c)})}t(this._nav).addClass(i.MATERIAL)},n._jQueryInterface=function(e){return this.each(function(){var o=t(this).closest(r.NAV)[0];if(o){var i=t(o).data("md.tabswitch");i||(i=new n(o),t(o).data("md.tabswitch",i)),i.switch(this,e)}})},n}();t(document).on(a.SHOW_BS_TAB,r.DATA_TOGGLE,function(e){s._jQueryInterface.call(t(e.target),e.relatedTarget)}),t.fn[n]=s._jQueryInterface,t.fn[n].Constructor=s,t.fn[n].noConflict=function(){return t.fn[n]=o,s._jQueryInterface}}(jQuery);var e=function(e){function t(){return{bindType:r.end,delegateType:r.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function n(e){return(e[0]||e).nodeType}function o(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(t){var n=this,o=!1;return e(this).one(c.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||c.triggerTransitionEnd(n)},t),this}function a(){if(window.QUnit)return!1;var e=document.createElement("material");for(var t in s)if(void 0!==e.style[t])return{end:s[t]};return!1}var r=!1,s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},reflow:function(e){new Function("md","return md")(e.offsetHeight)},supportsTransitionEnd:function(){return Boolean(r)},triggerTransitionEnd:function(t){e(t).trigger(r.end)},typeCheckConfig:function(e,t,i){for(var a in i)if(i.hasOwnProperty(a)){var r=i[a],s=t[a],c=s&&n(s)?"element":o(s);if(!new RegExp(r).test(c))throw new Error(e.toUpperCase()+': Option "'+a+'" provided type "'+c+'" but expected type "'+r+'".')}}};return r=a(),e.fn.emulateTransitionEnd=i,c.supportsTransitionEnd()&&(e.event.special[c.TRANSITION_END]=t()),c}(jQuery)}();
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/*
|
2
|
+
* expansion panel
|
3
|
+
* upon selecting the collapsed panel,
|
4
|
+
* it expands to display in full
|
5
|
+
*/
|
6
|
+
|
7
|
+
var ExpansionPanel = function ($) {
|
8
|
+
|
9
|
+
// constants >>>
|
10
|
+
var DATA_KEY = 'bs.collapse';
|
11
|
+
var EVENT_KEY = '.' + DATA_KEY;
|
12
|
+
|
13
|
+
var ClassName = {
|
14
|
+
SHOW: 'show',
|
15
|
+
SHOW_PREDECESSOR: 'show-predecessor'
|
16
|
+
};
|
17
|
+
|
18
|
+
var Event = {
|
19
|
+
HIDE: 'hide' + EVENT_KEY,
|
20
|
+
SHOW: 'show' + EVENT_KEY
|
21
|
+
};
|
22
|
+
|
23
|
+
var Selector = {
|
24
|
+
PANEL: '.expansion-panel',
|
25
|
+
PANEL_BODY: '.expansion-panel .collapse'
|
26
|
+
};
|
27
|
+
// <<< constants
|
28
|
+
|
29
|
+
$(document).on('' + Event.HIDE, Selector.PANEL_BODY, function (event) {
|
30
|
+
var target = $(event.target).closest(Selector.PANEL);
|
31
|
+
|
32
|
+
target.removeClass(ClassName.SHOW);
|
33
|
+
|
34
|
+
var predecessor = target.prev(Selector.PANEL);
|
35
|
+
|
36
|
+
if (predecessor.length) {
|
37
|
+
predecessor.removeClass(ClassName.SHOW_PREDECESSOR);
|
38
|
+
}
|
39
|
+
}).on('' + Event.SHOW, Selector.PANEL_BODY, function (event) {
|
40
|
+
var target = $(event.target).closest(Selector.PANEL);
|
41
|
+
|
42
|
+
target.addClass(ClassName.SHOW);
|
43
|
+
|
44
|
+
var predecessor = target.prev(Selector.PANEL);
|
45
|
+
|
46
|
+
if (predecessor.length) {
|
47
|
+
predecessor.addClass(ClassName.SHOW_PREDECESSOR);
|
48
|
+
}
|
49
|
+
});
|
50
|
+
}(jQuery);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2
2
|
|
3
3
|
/*
|
4
|
-
* floating label
|
4
|
+
* floating label
|
5
5
|
* when a user engages with the text input field,
|
6
6
|
* the floating inline labels move to float above the field
|
7
7
|
*/
|
File without changes
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/*
|
2
|
-
* selection control focus
|
3
|
-
* chrome persists the focus style on checkboxes/radio buttons
|
4
|
-
* after clicking with the mouse
|
2
|
+
* selection control focus
|
3
|
+
* chrome persists the focus style on checkboxes/radio buttons after clicking
|
5
4
|
*/
|
6
5
|
|
7
6
|
var ControlFocus = function ($) {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -274,17 +274,15 @@ $material-color-yellow-a200: #ffff00 !default;
|
|
274
274
|
$material-color-yellow-a400: #ffea00 !default;
|
275
275
|
$material-color-yellow-a700: #ffd600 !default;
|
276
276
|
|
277
|
-
|
278
|
-
|
279
277
|
// Black and white
|
280
278
|
// Based on https://material.google.com/style/color.html#color-text-background-colors
|
281
279
|
|
282
280
|
$black: #000000 !default;
|
283
281
|
|
284
|
-
$black-primary-opacity: .87 !default;
|
285
|
-
$black-secondary-opacity: .54 !default;
|
286
|
-
$black-hint-opacity: .38 !default;
|
287
|
-
$black-divider-opacity: .12 !default;
|
282
|
+
$black-primary-opacity: 0.87 !default;
|
283
|
+
$black-secondary-opacity: 0.54 !default;
|
284
|
+
$black-hint-opacity: 0.38 !default;
|
285
|
+
$black-divider-opacity: 0.12 !default;
|
288
286
|
|
289
287
|
$black-primary-solid: #212121 !default;
|
290
288
|
$black-secondary-solid: #757575 !default;
|
@@ -299,17 +297,15 @@ $black-divider: rgba(red($black), green($black), blue($black), $black-
|
|
299
297
|
$white: #ffffff !default;
|
300
298
|
|
301
299
|
$white-primary-opacity: 1 !default;
|
302
|
-
$white-secondary-opacity: .7 !default;
|
303
|
-
$white-hint-opacity: .5 !default;
|
304
|
-
$white-divider-opacity: .12 !default;
|
300
|
+
$white-secondary-opacity: 0.7 !default;
|
301
|
+
$white-hint-opacity: 0.5 !default;
|
302
|
+
$white-divider-opacity: 0.12 !default;
|
305
303
|
|
306
304
|
$white-primary: rgba(red($white), green($white), blue($white), $white-primary-opacity) !default;
|
307
305
|
$white-secondary: rgba(red($white), green($white), blue($white), $white-secondary-opacity) !default;
|
308
306
|
$white-hint: rgba(red($white), green($white), blue($white), $white-hint-opacity) !default;
|
309
307
|
$white-divider: rgba(red($white), green($white), blue($white), $white-divider-opacity) !default;
|
310
308
|
|
311
|
-
|
312
|
-
|
313
309
|
// Theme
|
314
310
|
// Based on https://material.google.com/style/color.html#color-themes
|
315
311
|
|
@@ -6,9 +6,9 @@
|
|
6
6
|
@if $prev-num == null {
|
7
7
|
// Do nothing
|
8
8
|
} @else if not comparable($num, $prev-num) {
|
9
|
-
@warn 'Potentially invalid value for #{$map-name}: This map must be in ascending order, but key "#{$key}"
|
9
|
+
@warn 'Potentially invalid value for #{$map-name}: This map must be in ascending order, but key "#{$key}" has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key "#{$prev-key}"!';
|
10
10
|
} @else if $num <= $prev-num {
|
11
|
-
@warn 'Invalid value for #{$map-name}: This map must be in ascending order, but key "#{$key}" has value #{$num} which
|
11
|
+
@warn 'Invalid value for #{$map-name}: This map must be in ascending order, but key "#{$key}" has value #{$num} which is not greater than #{$prev-num}, the value of the previous key "#{$prev-key}"!';
|
12
12
|
}
|
13
13
|
|
14
14
|
$prev-key: $key;
|
@@ -24,11 +24,9 @@
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
|
27
|
-
|
28
|
-
|
29
27
|
// Colour contrast
|
30
28
|
|
31
|
-
@
|
29
|
+
@function color-yiq($color) {
|
32
30
|
$r: red($color);
|
33
31
|
$g: green($color);
|
34
32
|
$b: blue($color);
|
@@ -36,14 +34,12 @@
|
|
36
34
|
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
37
35
|
|
38
36
|
@if ($yiq >= 150) {
|
39
|
-
|
37
|
+
@return $black-primary;
|
40
38
|
} @else {
|
41
|
-
|
39
|
+
@return $white-primary;
|
42
40
|
}
|
43
41
|
}
|
44
42
|
|
45
|
-
|
46
|
-
|
47
43
|
// Replace `$key` with `$replace` in `$content`
|
48
44
|
|
49
45
|
@function str-replace($content, $key, $replace: '') {
|
@@ -51,15 +47,13 @@
|
|
51
47
|
|
52
48
|
@if $index {
|
53
49
|
@return str-slice($content, 1, $index - 1) + $replace + str-replace(str-slice($content, $index + str-length($key)), $key, $replace);
|
50
|
+
} @else {
|
51
|
+
@return $content;
|
54
52
|
}
|
55
|
-
|
56
|
-
@return $content;
|
57
53
|
}
|
58
54
|
|
59
|
-
|
60
|
-
|
61
55
|
// Return a theme colour palette
|
62
56
|
|
63
57
|
@function theme-color($key: 'primary') {
|
64
|
-
@return map-get($theme-colors
|
58
|
+
@return map-get($theme-colors, $key);
|
65
59
|
}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
@import 'mixins/border-radius';
|
3
3
|
@import 'mixins/breakpoint';
|
4
4
|
@import 'mixins/clearfix';
|
5
|
+
@import 'mixins/float';
|
5
6
|
@import 'mixins/form';
|
6
7
|
@import 'mixins/grid';
|
7
8
|
@import 'mixins/grid-framework';
|
@@ -11,7 +12,6 @@
|
|
11
12
|
@import 'mixins/list';
|
12
13
|
@import 'mixins/material-icons';
|
13
14
|
@import 'mixins/nav-divider';
|
14
|
-
@import 'mixins/pull';
|
15
15
|
@import 'mixins/reset-text';
|
16
16
|
@import 'mixins/screenreader';
|
17
17
|
@import 'mixins/strip-unit';
|
@@ -1,3 +1,5 @@
|
|
1
|
+
// stylelint-disable declaration-no-important, selector-no-qualifying-type
|
2
|
+
|
1
3
|
@if $enable-print-styles {
|
2
4
|
@media print {
|
3
5
|
*,
|
@@ -12,10 +14,8 @@
|
|
12
14
|
text-decoration: underline;
|
13
15
|
}
|
14
16
|
|
15
|
-
abbr {
|
16
|
-
|
17
|
-
content: ' (" attr(title) ") ';
|
18
|
-
}
|
17
|
+
abbr[title]::after {
|
18
|
+
content: ' (" attr(title) ") ';
|
19
19
|
}
|
20
20
|
|
21
21
|
blockquote {
|
@@ -1,6 +1,4 @@
|
|
1
|
-
//
|
2
|
-
|
3
|
-
|
1
|
+
// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
|
4
2
|
|
5
3
|
// Box sizing
|
6
4
|
|
@@ -16,8 +14,6 @@
|
|
16
14
|
}
|
17
15
|
}
|
18
16
|
|
19
|
-
|
20
|
-
|
21
17
|
// Document
|
22
18
|
|
23
19
|
article,
|
@@ -59,8 +55,6 @@ html {
|
|
59
55
|
outline: 0 !important;
|
60
56
|
}
|
61
57
|
|
62
|
-
|
63
|
-
|
64
58
|
// Clickable element
|
65
59
|
|
66
60
|
a,
|
@@ -71,30 +65,27 @@ label,
|
|
71
65
|
select,
|
72
66
|
summary,
|
73
67
|
textarea,
|
74
|
-
[role=
|
68
|
+
[role='button'] {
|
75
69
|
touch-action: manipulation;
|
76
70
|
}
|
77
71
|
|
78
|
-
|
79
|
-
|
80
72
|
// Code
|
81
73
|
|
82
74
|
code,
|
83
75
|
kbd,
|
84
76
|
pre,
|
85
77
|
samp {
|
86
|
-
font-family: monospace
|
78
|
+
font-family: $font-family-monospace;
|
87
79
|
font-size: 1em;
|
88
80
|
}
|
89
81
|
|
90
82
|
pre {
|
91
83
|
margin-top: 0;
|
92
|
-
margin-bottom: $
|
84
|
+
margin-bottom: $pre-margin-y;
|
93
85
|
overflow: auto;
|
86
|
+
-ms-overflow-style: scrollbar;
|
94
87
|
}
|
95
88
|
|
96
|
-
|
97
|
-
|
98
89
|
// Content grouping
|
99
90
|
|
100
91
|
figure {
|
@@ -107,8 +98,6 @@ hr {
|
|
107
98
|
overflow: visible;
|
108
99
|
}
|
109
100
|
|
110
|
-
|
111
|
-
|
112
101
|
// Form
|
113
102
|
|
114
103
|
button,
|
@@ -123,16 +112,16 @@ textarea {
|
|
123
112
|
}
|
124
113
|
|
125
114
|
button,
|
126
|
-
html [type=
|
127
|
-
[type=
|
128
|
-
[type=
|
115
|
+
html [type='button'],
|
116
|
+
[type='reset'],
|
117
|
+
[type='submit'] {
|
129
118
|
-webkit-appearance: button;
|
130
119
|
}
|
131
120
|
|
132
121
|
button::-moz-focus-inner,
|
133
|
-
[type=
|
134
|
-
[type=
|
135
|
-
[type=
|
122
|
+
[type='button']::-moz-focus-inner,
|
123
|
+
[type='reset']::-moz-focus-inner,
|
124
|
+
[type='submit']::-moz-focus-inner {
|
136
125
|
border-style: none;
|
137
126
|
padding: 0;
|
138
127
|
}
|
@@ -162,16 +151,16 @@ fieldset {
|
|
162
151
|
}
|
163
152
|
|
164
153
|
input {
|
165
|
-
&[type=
|
166
|
-
&[type=
|
154
|
+
&[type='checkbox'],
|
155
|
+
&[type='radio'] {
|
167
156
|
box-sizing: border-box;
|
168
157
|
padding: 0;
|
169
158
|
}
|
170
159
|
|
171
|
-
&[type=
|
172
|
-
&[type=
|
173
|
-
&[type=
|
174
|
-
&[type=
|
160
|
+
&[type='date'],
|
161
|
+
&[type='datetime-local'],
|
162
|
+
&[type='month'],
|
163
|
+
&[type='time'] {
|
175
164
|
-webkit-appearance: listbox;
|
176
165
|
}
|
177
166
|
}
|
@@ -215,18 +204,18 @@ textarea {
|
|
215
204
|
resize: vertical;
|
216
205
|
}
|
217
206
|
|
218
|
-
[type=
|
219
|
-
[type=
|
207
|
+
[type='number']::-webkit-inner-spin-button,
|
208
|
+
[type='number']::-webkit-outer-spin-button {
|
220
209
|
height: auto;
|
221
210
|
}
|
222
211
|
|
223
|
-
[type=
|
212
|
+
[type='search'] {
|
224
213
|
-webkit-appearance: none;
|
225
214
|
outline-offset: -2px;
|
226
215
|
}
|
227
216
|
|
228
|
-
[type=
|
229
|
-
[type=
|
217
|
+
[type='search']::-webkit-search-cancel-button,
|
218
|
+
[type='search']::-webkit-search-decoration {
|
230
219
|
-webkit-appearance: none;
|
231
220
|
}
|
232
221
|
|
@@ -235,16 +224,12 @@ textarea {
|
|
235
224
|
font: inherit;
|
236
225
|
}
|
237
226
|
|
238
|
-
|
239
|
-
|
240
227
|
// Hidden
|
241
228
|
|
242
229
|
[hidden] {
|
243
230
|
display: none !important;
|
244
231
|
}
|
245
232
|
|
246
|
-
|
247
|
-
|
248
233
|
// Images
|
249
234
|
|
250
235
|
img {
|
@@ -256,16 +241,12 @@ svg:not(:root) {
|
|
256
241
|
overflow: hidden;
|
257
242
|
}
|
258
243
|
|
259
|
-
|
260
|
-
|
261
244
|
// Interactive
|
262
245
|
|
263
246
|
summary {
|
264
247
|
display: list-item;
|
265
248
|
}
|
266
249
|
|
267
|
-
|
268
|
-
|
269
250
|
// Link
|
270
251
|
|
271
252
|
a {
|
@@ -294,16 +275,12 @@ a:not([href]):not([tabindex]) {
|
|
294
275
|
}
|
295
276
|
}
|
296
277
|
|
297
|
-
|
298
|
-
|
299
278
|
// Scripting
|
300
279
|
|
301
280
|
template {
|
302
281
|
display: none;
|
303
282
|
}
|
304
283
|
|
305
|
-
|
306
|
-
|
307
284
|
// Table
|
308
285
|
|
309
286
|
caption {
|
@@ -324,8 +301,6 @@ th {
|
|
324
301
|
text-align: inherit;
|
325
302
|
}
|
326
303
|
|
327
|
-
|
328
|
-
|
329
304
|
// Typography
|
330
305
|
|
331
306
|
abbr {
|
@@ -412,9 +387,9 @@ sup {
|
|
412
387
|
}
|
413
388
|
|
414
389
|
sub {
|
415
|
-
bottom:
|
390
|
+
bottom: -0.25em;
|
416
391
|
}
|
417
392
|
|
418
393
|
sup {
|
419
|
-
top:
|
394
|
+
top: -0.5em;
|
420
395
|
}
|