wai-website-theme 1.3.1 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/different.html +2 -1
  3. data/_includes/external.html +2 -1
  4. data/_includes/header.html +2 -1
  5. data/_includes/menuitem.html +6 -2
  6. data/_includes/peoplelist.html +21 -0
  7. data/_includes/prevnext-navigation.html +56 -0
  8. data/_includes/{prevnext.html → prevnext-order.html} +9 -0
  9. data/_includes/translation-note-msg.html +5 -3
  10. data/_includes/video-player.html +2 -2
  11. data/_layouts/default.html +8 -1
  12. data/_layouts/news.html +7 -1
  13. data/_layouts/policy.html +7 -1
  14. data/_layouts/sidenav.html +8 -1
  15. data/_layouts/sidenavsidebar.html +8 -1
  16. data/assets/ableplayer/Gruntfile.js +2 -1
  17. data/assets/ableplayer/README.md +158 -85
  18. data/assets/ableplayer/build/ableplayer.dist.js +15445 -13823
  19. data/assets/ableplayer/build/ableplayer.js +15445 -13823
  20. data/assets/ableplayer/build/ableplayer.min.css +1 -2
  21. data/assets/ableplayer/build/ableplayer.min.js +3 -10
  22. data/assets/ableplayer/package-lock.json +944 -346
  23. data/assets/ableplayer/package.json +8 -8
  24. data/assets/ableplayer/scripts/ableplayer-base.js +515 -524
  25. data/assets/ableplayer/scripts/browser.js +158 -158
  26. data/assets/ableplayer/scripts/buildplayer.js +1750 -1682
  27. data/assets/ableplayer/scripts/caption.js +424 -401
  28. data/assets/ableplayer/scripts/chapters.js +259 -259
  29. data/assets/ableplayer/scripts/control.js +1831 -1594
  30. data/assets/ableplayer/scripts/description.js +333 -256
  31. data/assets/ableplayer/scripts/dialog.js +145 -145
  32. data/assets/ableplayer/scripts/dragdrop.js +746 -749
  33. data/assets/ableplayer/scripts/event.js +875 -696
  34. data/assets/ableplayer/scripts/initialize.js +819 -912
  35. data/assets/ableplayer/scripts/langs.js +979 -743
  36. data/assets/ableplayer/scripts/metadata.js +124 -124
  37. data/assets/ableplayer/scripts/misc.js +170 -137
  38. data/assets/ableplayer/scripts/preference.js +904 -904
  39. data/assets/ableplayer/scripts/search.js +172 -172
  40. data/assets/ableplayer/scripts/sign.js +82 -78
  41. data/assets/ableplayer/scripts/slider.js +449 -448
  42. data/assets/ableplayer/scripts/track.js +409 -309
  43. data/assets/ableplayer/scripts/transcript.js +684 -595
  44. data/assets/ableplayer/scripts/translation.js +63 -67
  45. data/assets/ableplayer/scripts/ttml2webvtt.js +85 -85
  46. data/assets/ableplayer/scripts/vimeo.js +448 -0
  47. data/assets/ableplayer/scripts/volume.js +395 -380
  48. data/assets/ableplayer/scripts/vts.js +1077 -1077
  49. data/assets/ableplayer/scripts/webvtt.js +766 -763
  50. data/assets/ableplayer/scripts/youtube.js +695 -478
  51. data/assets/ableplayer/styles/ableplayer.css +54 -46
  52. data/assets/ableplayer/translations/nl.js +54 -54
  53. data/assets/ableplayer/translations/pt-br.js +311 -0
  54. data/assets/ableplayer/translations/tr.js +311 -0
  55. data/assets/ableplayer/translations/zh-tw.js +1 -1
  56. data/assets/css/style.css +1 -1
  57. data/assets/css/style.css.map +1 -1
  58. data/assets/images/icons.svg +5 -5
  59. data/assets/scripts/main.js +7 -0
  60. data/assets/search/tipuesearch.js +3 -3
  61. metadata +8 -3
@@ -1,2 +1 @@
1
- /*! ableplayer V3.2.0 */
2
- .able-wrapper{position:relative;margin:0;padding:0;width:100%;height:auto;box-sizing:content-box!important}.able{position:relative;margin:1em 0;width:100%;box-shadow:0 0 16px #262626;z-index:5000}.able-column-left{float:left}.able-column-right{float:left}.able .able-vidcap-container{background-color:#000;left:0;margin:0;position:relative;top:0}.able-player{font-family:Arial,Helvetica,sans-serif;background-color:#262626}.able-offscreen{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.able-media-container audio{display:none!important}.able-video{}.able-video .able-now-playing{display:none}.able-controller{position:relative;border-top:2px solid #4c4c4c;border-bottom:2px solid #4c4c4c;background-color:#464646;min-height:38px;padding:0}.able-poster{position:absolute;top:0;left:0}.able-big-play-button{position:absolute;font-size:8em;opacity:.5;filter:alpha(opacity=50);color:#fdfdfd;background-color:transparent;border:0;outline:0;left:0;top:0;padding:0;z-index:6500}.able-big-play-button:hover{opacity:100;filter:alpha(opacity=100)}.able-left-controls,.able-right-controls{overflow:visible}.able-left-controls button,.able-right-controls button{vertical-align:middle}.able-left-controls{float:left}.able-right-controls{float:right}.able-black-controls,.able-black-controls button,.able-black-controls label{color:#000!important}.able-black-controls .able-seekbar{border:2px solid #000}.able-white-controls,.able-white-controls button,.able-black-controls label{color:#FFF!important}.able-white-controls .able-seekbar{border:2px solid #FFF}.able-controller button{background:0 0;position:relative;display:inline-block;border-style:none;margin:3px;padding:0;font-size:20px;min-width:24px;outline:2px solid #464646;border:0;overflow:visible!important;z-index:6600}.able-controller button>span,.able-controller button>img{width:20px;margin:0 auto;padding:0;z-index:6700}.able-controller .buttonOff{opacity:.5;filter:alpha(opacity=50);z-index:6800}.able-controller .able-seekbar{margin:0 5px;z-index:6900}.able-controller button:hover,.able-controller button:focus{outline-style:solid;outline-width:medium}.able-controller button:hover{outline-color:#8AB839!important}.able-controller button:focus{outline-color:#ffbb37!important}.able-seekbar-wrapper{display:inline-block;vertical-align:middle}.able-seekbar{position:relative;height:.5em;border:1px solid;background-color:#000;margin:0 3px;border-style:solid;border-width:2px;border-color:#fff}.able-seekbar-loaded{display:inline-block;position:absolute;left:0;top:0;height:.5em;background-color:#464646;z-index:5100}.able-seekbar-played{display:inline-block;position:absolute;left:0;top:0;height:.5em;background-color:#DADADA;z-index:5200}.able-seekbar-head{display:inline-block;position:relative;left:0;top:-.45em;background-color:#FDFDFD;width:.8em;height:.8em;border:1px solid;border-radius:.8em;z-index:5500}.able-volume-slider{width:34px;height:50px;background-color:#464646;padding:10px 0;position:absolute;right:0;top:-74px;display:block;z-index:9100}.able-volume-track{display:block;position:relative;height:100%;width:5px;margin:0 auto;background-color:#999}.able-volume-track.able-volume-track-on{background-color:#dadada;position:absolute;height:20px;top:30px}.able-volume-head{display:inline-block;background-color:#fdfdfd;outline:1px solid #333;position:absolute;height:7px;width:15px;left:-5px;top:23px;z-index:9175}.able-volume-head:hover,.able-volume-head:focus{background-color:#ffbb37!important}.able-volume-help{display:none}.able-status-bar{height:1.5em;min-height:1.5em;color:#CCC;font-size:.9em;background-color:transparent;padding:.5em .5em .25em}.able-status-bar span.able-timer{text-align:left;float:left;width:32%}.able-status-bar span.able-speed{float:left;width:33%;text-align:center}.able-status{font-style:italic;float:right;width:32%;text-align:right}div.able-captions-wrapper{width:100%;margin:0;padding:0;text-align:center;line-height:1.35em;display:block;z-index:6000}div.able-captions{display:none;padding:.15em .25em;background-color:#000;font-size:1.1em;color:#fff;opacity:.75}div.able-captions-overlay{position:absolute;margin:0;bottom:0}div.able-captions-below{position:relative;min-height:2.8em}div.able-descriptions{position:relative;color:#FF6;background-color:#262626;min-height:2.8em;border-top:1px solid #666;margin:0;padding:3%;width:94%;text-align:center}div.able-now-playing{text-align:center;font-weight:700;font-size:1.1em;color:#FFF;background-color:transparent;padding:.5em .5em 1em}div.able-now-playing span{font-size:.9em}div.able-now-playing span span{display:block}div.able-modal-dialog{position:absolute;height:auto;max-width:90%;margin-left:auto;margin-right:auto;left:0;right:0;outline:0 none;display:none;color:#000;background-color:#FAFAFA;box-sizing:content-box!important;z-index:10000}div.able-modal-overlay{position:fixed;width:100%;height:100%;background-color:#000;opacity:.5;margin:0;padding:0;top:0;left:0;display:none;z-index:9500}button.modalCloseButton{position:absolute;top:5px;right:5px}button.modal-button{margin-right:5px}div.able-modal-dialog input:hover,div.able-modal-dialog input:focus,div.able-modal-dialog button:hover,div.able-modal-dialog button:focus{outline-style:solid;outline-width:2px}div.able-modal-dialog input:hover,div.able-modal-dialog button:hover{outline-color:#8AB839}div.able-modal-dialog input:focus,div.able-modal-dialog button:focus{outline-color:#ffbb37}div.able-modal-dialog h1{font-weight:700;font-size:1.8em;line-height:1.2em;margin:.75em 0;color:#000;text-align:center}.able-prefs-form,.able-help-div,.able-resize-form{background-color:#F5F5F5;border:medium solid #ccc;padding:.5em 1em;margin:0 0 0 1em;width:25em;display:none}.able-prefs-form fieldset{margin-left:0;padding-left:0;border:0}.able-prefs-form legend{color:#000;font-weight:700;font-size:1.1em}.able-prefs-form fieldset div{display:table;margin-left:1em}.able-prefs-form fieldset div input{display:table-cell;width:1em;vertical-align:middle}.able-prefs-form fieldset div label{display:table-cell;padding-left:.5em}fieldset.able-prefs-keys div{float:left;margin-right:1em}div.able-desc-pref-prompt{font-weight:700;font-style:italic;margin-left:1em!important}div.able-prefDescFormat>div{margin-left:1.5em}.able-prefs-captions label,.able-prefs-captions select{display:block;float:left;margin-bottom:.25em}fieldset.able-prefs-captions label{width:6em;text-align:right;padding-right:1em}fieldset.able-prefs-captions select{width:10em;font-size:.9em;border-radius:none}.able-prefs-form div.able-captions-sample{padding:.5em;text-align:center}.able-prefs-form h2{margin-top:0;margin-bottom:.5em;font-size:1.1em}.able-prefs-form ul{margin-top:0}able-prefs-form-keyboard ul{list-style-type:none}span.able-modkey-alt,span.able-modkey-ctrl,span.able-modkey-shift{color:#666;font-style:italic}span.able-modkey{font-weight:700;color:#000;font-size:1.1em}.able-resize-form h1{font-size:1.15em}.able-resize-form div div{margin:1em}.able-resize-form label{padding-right:.5em;font-weight:700}.able-resize-form input[type=text]{font-size:1em}.able-resize-form input[readonly]{color:#AAA}.able-window-toolbar{background-color:#464646;min-height:15px;padding:10px;border-style:solid;border-width:0 0 1px}.able-draggable:hover{cursor:move}.able-window-toolbar .able-button-handler-preferences{position:absolute;top:0;right:0;font-size:1.5em;background-color:transparent;border:0;outline:0;padding:0;z-index:9300}.able-window-toolbar .able-button-handler-preferences:hover,.able-window-toolbar .able-button-handler-preferences:focus{outline-style:solid;outline-width:medium}.able-window-toolbar .able-button-handler-preferences:hover{outline-color:#8AB839!important}.able-window-toolbar .able-button-handler-preferences:focus{outline-color:#ffbb37!important}.able-window-toolbar .able-popup{position:absolute;cursor:default;right:0;top:0;display:block}.able-drag{border:2px dashed #F90;cursor:move}.able-resizable{position:absolute;width:16px;height:16px;padding:5px 2px;bottom:0;right:0;cursor:nwse-resize;background:transparent url(../images/wingrip.png) no-repeat}.able-sign-window{position:relative;margin:1em;z-index:8000}.able-sign-window video{width:100%}.able-sign-window:focus{outline:0}div.able-chapters-div{padding:0}div.able-chapters-div .able-chapters-heading{margin:1em .75em;font-size:1.1em;font-weight:700}div.able-chapters-div ul{list-style-type:none;padding-left:0}div.able-chapters-div ul li{max-width:100%;padding:0;height:2em}div.able-chapters-div button{width:100%;height:100%;border:0;background-color:transparent;color:#000;font-size:1em;text-align:left;padding:.15em 1em}div.able-chapters-div li.able-current-chapter{background-color:#000!important}div.able-chapters-div li.able-current-chapter button{color:#FFF!important}div.able-chapters-div li.able-focus{background-color:#4C4C4C}div.able-chapters-div button:focus,div.able-chapters-div button:hover,div.able-chapters-div button::-moz-focus-inner{border:0;outline:0;color:#FFF!important}.able-tooltip,.able-alert{position:absolute;padding:5px 10px;border-color:#000;border-width:1px;color:#000!important;background-color:#CCC;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:block}.able-alert{background-color:#FFC;box-shadow:0 0 16px #262626;z-index:9400}.able-popup{z-index:9200}.able-tooltip{z-index:9000}.able-popup{position:absolute;margin:0;padding:0;border-color:#000;border-width:1px;background-color:#000;opacity:.85;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:block;cursor:default}ul.able-popup{list-style-type:none}.able-popup li{padding:.25em 1em .25em .25em;margin:1px;color:#FFF}.able-popup li.able-focus{background-color:#CCC;color:#000}.able-popup-captions li{padding-left:1em}.able-popup-captions li[aria-checked=true]{padding-left:0}.able-popup-captions li[aria-checked=true]::before{content:"\2713 "}.able-transcript-area{border-width:1px;border-style:solid;height:400px;z-index:7000;outline:0;padding-bottom:25px}.able-transcript{position:relative;overflow-y:scroll;padding-left:5%;padding-right:5%;background-color:#FFF;height:350px}.able-transcript div{margin:1em 0}.able-transcript-heading{font-size:1.4em;font-weight:700}.able-transcript-chapter-heading{font-size:1.2em;font-weight:700}.able-transcript div.able-transcript-desc{background-color:#FEE;border:thin solid #336;font-style:italic;padding:1em}.able-transcript .able-unspoken{font-weight:700}.able-transcript .able-hidden{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.able-highlight{background:#FF6}.able-previous{background:#000!important;font-style:italic}.able-transcript span:hover,.able-transcript span:focus,.able-transcript span:active{background:#CF6;cursor:pointer}.able-window-toolbar label{margin-right:10px;color:#FFF}.able-window-toolbar input:focus,.able-window-toolbar input:hover,.able-window-toolbar select:focus,.able-window-toolbar select:hover,.able-controller input:focus,.able-controller input:hover,.able-controller button:focus,.able-controller button:hover,.able-seekbar-head:focus,.able-seekbar-head:hover{outline-style:solid;outline-width:2px}.able-window-toolbar input:focus,.able-window-toolbar select:focus,.able-controller input:focus,.able-controller button:focus,.able-seekbar-head:focus{outline-color:#ffbb37}.able-window-toolbar input:hover,.able-window-toolbar select:hover,.able-controller input:hover,.able-controller button:hover,.able-seekbar-head:hover{outline-color:#8AB839}.able-window-toolbar .transcript-language-select-wrapper{float:right;padding-right:30px}.able-player .able-playlist{font-size:.9em;list-style-type:none;margin:0;background-color:#FFF;padding:5px 0}.able-player .able-playlist li{background-color:#DDD;margin:5px;padding:5px 10px;border-radius:15px;-moz-border-radius:15px}.able-player .able-playlist li:hover,.able-player .able-playlist li:focus,.able-player .able-playlist li:active{color:#FFF;background-color:#340449;text-decoration:none}.able-player .able-playlist li.able-current{color:#000;background-color:#FFEEB3;font-weight:700;outline:0;text-decoration:none}.able-player .able-playlist li.able-current:after{content:' *'}.able-playlist{}.able-playlist li{}.able-playlist li:hover,.able-playlist li:focus,.able-playlist li:active{text-decoration:none;color:#fff;background-color:#000}.able-playlist li.able-current{font-weight:700;text-decoration:underline}.able-playlist li.able-current:after{content:' *'}.able-search-results ul li{font-size:1.1em;margin-bottom:1em}.able-search-results-time{font-weight:700;text-decoration:underline;cursor:pointer}.able-search-results-time:hover,.able-search-results-time:focus,.able-search-results-time:active{color:#FFF;background-color:#000;text-decoration:none}.able-search-results-text{padding-left:1em}.able-search-term{background-color:#FFC;font-weight:700}#able-vts-instructions{margin-bottom:1.5em;padding:1em;border:1px solid #999;width:720px;max-width:90%}#able-vts fieldset{margin:1em;border:0}#able-vts fieldset legend{color:#000;font-weight:700}#able-vts fieldset div{float:left;padding-right:1em}#able-vts table{clear:left}#able-vts table,#able-vts table th,#able-vts table td{border:1px solid #000;border-collapse:collapse;padding:.5em .75em}#able-vts table th.actions{min-width:140px}#able-vts table td button{width:auto;padding:0;margin:2px}#able-vts table td button svg{width:16px;height:16px}#able-vts table button:hover,#able-vts table button:focus{}#able-vts table button:hover svg{fill:#C00}tr.kind-chapters,tr.kind-subtitles{background-color:#FFF}tr.kind-descriptions{background-color:#FEE}tr.kind-chapters{background-color:#e6ffe6}.able-vts-dragging{background-color:#FFC}div#able-vts-icon-credit{margin:1em}div#able-vts-alert{display:none;position:fixed;top:5px;left:5px;border:2px solid #666;background-color:#FFC;padding:1em;font-weight:700;z-index:9400}button#able-vts-save{font-size:1em;padding:.25em;border-radius:5px;margin-bottom:1em;font-weight:700}button#able-vts-save:hover,button#able-vts-save:focus{color:#fff;background-color:#060}.able-vts-output-instructions{width:720px;max-width:90%}#able-vts textarea{height:200px;width:720px;max-width:90%}.able-clipped,.able-screenreader-alert{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);width:1px!important;height:1px!important;overflow:hidden!important}.able-error{display:block;background:#ffc;border:2px solid #000;color:red;margin:.75em;padding:.5em}.able-fallback{display:block;text-align:center;border:2px solid #335;background-color:#EEE;color:#000;font-weight:700;font-size:1.1em;padding:1em;margin-bottom:1em;max-width:500px;width:95%}.able-fallback div,.able-fallback ul,.able-fallback p{text-align:left}.able-fallback li{font-weight:400}.able-fallback img{width:90%;margin:1em auto;opacity:.3}.able-fallback img.able-poster{position:relative}button svg{display:inline-block;width:1em;height:1em;fill:currentColor}@font-face{font-family:able;src:url(../button-icons/fonts/able.eot?dqripi);src:url(../button-icons/fonts/able.eot?dqripi#iefix) format('embedded-opentype'),url(../button-icons/fonts/able.ttf?dqripi) format('truetype'),url(../button-icons/fonts/able.woff?dqripi) format('woff'),url(../button-icons/fonts/able.svg?dqripi#able) format('svg');font-weight:400;font-style:normal}[class^=icon-],[class*=" icon-"]{font-family:able!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-play:before{content:"\f04b"}.icon-pause:before{content:"\f04c"}.icon-stop:before{content:"\f04d"}.icon-restart:before{content:"\e900"}.icon-rewind:before{content:"\e603"}.icon-forward:before{content:"\e604"}.icon-previous:before{content:"\e901"}.icon-next:before{content:"\e902"}.icon-slower:before{content:"\f0dd"}.icon-faster:before{content:"\f0de"}.icon-turtle:before{content:"\e904"}.icon-rabbit:before{content:"\e905"}.icon-ellipsis:before{content:"\e903"}.icon-pipe:before{content:"\e600"}.icon-captions:before{content:"\e601"}.icon-descriptions:before{content:"\e602"}.icon-sign:before{content:"\e60a"}.icon-volume-mute:before{content:"\e606"}.icon-volume-soft:before{content:"\e60c"}.icon-volume-medium:before{content:"\e605"}.icon-volume-loud:before{content:"\e60b"}.icon-volume-up:before{content:"\e607"}.icon-volume-down:before{content:"\e608"}.icon-chapters:before{content:"\e609"}.icon-transcript:before{content:"\f15c"}.icon-preferences:before{content:"\e60d"}.icon-close:before{content:"\f00d"}.icon-fullscreen-expand:before{content:"\f065"}.icon-fullscreen-collapse:before{content:"\f066"}.icon-help:before{content:"\f128"}
1
+ .able-wrapper{position:relative;margin:0;padding:0;width:100%;height:auto;box-sizing:content-box!important;text-align:left}.able{position:relative;margin:1em 0;width:100%;background-color:#000;box-shadow:0 0 16px #262626;z-index:5000}.able-column-left{float:left}.able-column-right{float:left}.able .able-vidcap-container{background-color:#000;left:0;margin:0;position:relative;top:0}.able-player{font-family:Arial,Helvetica,sans-serif;background-color:#262626}.able-offscreen{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.able-media-container audio{display:none!important}.able-video .able-now-playing{display:none}.able-controller{position:relative;border-top:2px solid #4c4c4c;border-bottom:2px solid #4c4c4c;background-color:#464646;min-height:38px;padding:0}.able-poster{position:absolute;top:0;left:0;width:100%!important;height:auto!important}.able .able-vidcap-container{overflow:hidden}.able-big-play-button{position:absolute;font-size:8em;opacity:.5;color:#fdfdfd;background-color:transparent;border:none;outline:0;left:0;top:0;padding:0;z-index:6500}.able-big-play-button:hover{opacity:100}.able-left-controls,.able-right-controls{overflow:visible}.able-left-controls button,.able-right-controls button{vertical-align:middle}.able-left-controls{float:left}.able-right-controls{float:right}.able-black-controls,.able-black-controls button,.able-black-controls label{color:#000!important}.able-black-controls .able-seekbar{border:2px solid #000}.able-black-controls label,.able-white-controls,.able-white-controls button{color:#fff!important}.able-white-controls .able-seekbar{border:2px solid #fff}.able-controller button{background:0 0;position:relative;display:inline-block;border-style:none;margin:3px;padding:0;font-size:20px;min-width:24px;outline:2px solid #464646;border:none;overflow:visible!important;z-index:6600}.able-controller button>img,.able-controller button>span{width:20px;margin:0 auto;padding:0;z-index:6700}.able-controller .buttonOff{opacity:.5;z-index:6800}.able-controller .able-seekbar{margin:0 5px;z-index:6900}.able-controller button:focus,.able-controller button:hover{outline-style:solid;outline-width:medium}.able-controller button:hover{outline-color:#8ab839!important}.able-controller button:focus{outline-color:#ffbb37!important}.able-seekbar-wrapper{display:inline-block;vertical-align:middle}.able-seekbar{position:relative;height:.5em;border:1px solid;background-color:#000;margin:0 3px;border-style:solid;border-width:2px;border-color:#fff}.able-seekbar-loaded{display:inline-block;position:absolute;left:0;top:0;height:.5em;background-color:#464646;z-index:5100}.able-seekbar-played{display:inline-block;position:absolute;left:0;top:0;height:.5em;background-color:#dadada;z-index:5200}.able-seekbar-head{display:inline-block;position:relative;left:0;top:-.45em;background-color:#fdfdfd;width:.8em;height:.8em;border:1px solid;border-radius:.8em;z-index:5500}.able-volume-slider{width:34px;height:50px;background-color:#464646;padding:10px 0;position:absolute;right:0;top:-74px;display:block;z-index:9100}.able-volume-track{display:block;position:relative;height:100%;width:5px;margin:0 auto;background-color:#999}.able-volume-track.able-volume-track-on{background-color:#dadada;position:absolute;height:20px;top:30px}.able-volume-head{display:inline-block;background-color:#fdfdfd;outline:1px solid #333;position:absolute;height:7px;width:15px;left:-5px;top:23px;z-index:9175}.able-volume-head:focus,.able-volume-head:hover{background-color:#ffbb37!important}.able-volume-help{display:none}.able-status-bar{height:1.5em;min-height:1.5em;color:#ccc;font-size:.9em;background-color:transparent;padding:.5em .5em .25em}.able-status-bar span.able-timer{text-align:left;float:left;width:32%}.able-status-bar span.able-speed{float:left;width:33%;text-align:center}.able-status{font-style:italic;float:right;width:32%;text-align:right}div.able-captions-wrapper{width:100%;margin:0;padding:0;text-align:center;line-height:1.35em;display:block;z-index:6000}div.able-captions{display:none;padding:.15em .25em;background-color:#000;font-size:1.1em;color:#fff;opacity:.75}div.able-captions-overlay{position:absolute;margin:0;bottom:0}div.able-captions-below{position:relative;min-height:2.8em}div.able-descriptions{position:relative;color:#ff6;background-color:#262626;min-height:2.8em;border-top:1px solid #666;margin:0;padding:3%;width:94%;text-align:center}div.able-now-playing{text-align:center;font-weight:700;font-size:1.1em;color:#fff;background-color:transparent;padding:.5em .5em 1em}div.able-now-playing span{font-size:.9em}div.able-now-playing span span{display:block}div.able-modal-dialog{position:absolute;height:auto;max-width:90%;margin-left:auto;margin-right:auto;left:0;right:0;outline:0 none;display:none;color:#000;background-color:#fafafa;box-sizing:content-box!important;z-index:10000}div.able-modal-overlay{position:fixed;width:100%;height:100%;background-color:#000;opacity:.5;margin:0;padding:0;top:0;left:0;display:none;z-index:9500}button.modalCloseButton{position:absolute;top:5px;right:5px}button.modal-button{margin-right:5px}div.able-modal-dialog button:focus,div.able-modal-dialog button:hover,div.able-modal-dialog input:focus,div.able-modal-dialog input:hover{outline-style:solid;outline-width:2px}div.able-modal-dialog button:hover,div.able-modal-dialog input:hover{outline-color:#8ab839}div.able-modal-dialog button:focus,div.able-modal-dialog input:focus{outline-color:#ffbb37}div.able-modal-dialog h1{font-weight:700;font-size:1.8em;line-height:1.2em;margin:.75em 0;color:#000;text-align:center}.able-help-div,.able-prefs-form,.able-resize-form{background-color:#f5f5f5;border:medium solid #ccc;padding:.5em 1em;margin:0 0 0 1em;width:25em;display:none}.able-prefs-form fieldset{margin-left:0;padding-left:0;border:none}.able-prefs-form legend{color:#000;font-weight:700;font-size:1.1em}.able-prefs-form fieldset div{display:table;margin-left:1em}.able-prefs-form fieldset div input{display:table-cell;width:1em;vertical-align:middle}.able-prefs-form fieldset div label{display:table-cell;padding-left:.5em}fieldset.able-prefs-keys div{float:left;margin-right:1em}div.able-desc-pref-prompt{font-weight:700;font-style:italic;margin-left:1em!important}div.able-prefDescFormat>div{margin-left:1.5em}.able-prefs-captions label,.able-prefs-captions select{display:block;float:left;margin-bottom:.25em}fieldset.able-prefs-captions label{width:6em;text-align:right;padding-right:1em}fieldset.able-prefs-captions select{width:10em;font-size:.9em;border-radius:none}.able-prefs-form div.able-captions-sample{padding:.5em;text-align:center}.able-prefs-form h2{margin-top:0;margin-bottom:.5em;font-size:1.1em}.able-prefs-form ul{margin-top:0}able-prefs-form-keyboard ul{list-style-type:none}span.able-modkey-alt,span.able-modkey-ctrl,span.able-modkey-shift{color:#666;font-style:italic}span.able-modkey{font-weight:700;color:#000;font-size:1.1em}.able-resize-form h1{font-size:1.15em}.able-resize-form div div{margin:1em}.able-resize-form label{padding-right:.5em;font-weight:700}.able-resize-form input[type=text]{font-size:1em}.able-resize-form input[readonly]{color:#aaa}.able-window-toolbar{background-color:#464646;min-height:15px;padding:10px;border-style:solid;border-width:0 0 1px 0}.able-draggable:hover{cursor:move}.able-window-toolbar .able-button-handler-preferences{position:absolute;top:0;right:0;font-size:1.5em;background-color:transparent;border:none;outline:0;padding:0;z-index:9300}.able-window-toolbar .able-button-handler-preferences:focus,.able-window-toolbar .able-button-handler-preferences:hover{outline-style:solid;outline-width:medium}.able-window-toolbar .able-button-handler-preferences:hover{outline-color:#8ab839!important}.able-window-toolbar .able-button-handler-preferences:focus{outline-color:#ffbb37!important}.able-window-toolbar .able-popup{position:absolute;cursor:default;right:0;top:0;display:block}.able-drag{border:2px dashed #f90;cursor:move}.able-resizable{position:absolute;width:16px;height:16px;padding:5px 2px;bottom:0;right:0;cursor:nwse-resize;background:transparent url(../images/wingrip.png) no-repeat}.able-sign-window{position:relative;margin:1em;z-index:8000}.able-sign-window video{width:100%}.able-sign-window:focus{outline:0}div.able-chapters-div{padding:0}div.able-chapters-div .able-chapters-heading{margin:1em .75em;font-size:1.1em;font-weight:700}div.able-chapters-div ul{list-style-type:none;padding-left:0}div.able-chapters-div ul li{max-width:100%;padding:0;height:2em}div.able-chapters-div button{width:100%;height:100%;border:none;background-color:transparent;color:#000;font-size:1em;text-align:left;padding:.15em 1em}div.able-chapters-div li.able-current-chapter{background-color:#000!important}div.able-chapters-div li.able-current-chapter button{color:#fff!important}div.able-chapters-div li.able-focus{background-color:#4c4c4c}div.able-chapters-div button::-moz-focus-inner,div.able-chapters-div button:focus,div.able-chapters-div button:hover{border:0;outline:0;color:#fff!important}.able-alert,.able-tooltip{position:absolute;padding:5px 10px;border-color:#000;border-width:1px;color:#000!important;background-color:#ccc;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:block}.able-alert{background-color:#ffc;box-shadow:0 0 16px #262626;z-index:9400;position:absolute;top:1em}.able-popup{z-index:9200}.able-tooltip{z-index:9000}.able-popup{position:absolute;margin:0;padding:0;border-color:#000;border-width:1px;background-color:#000;opacity:.85;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:block;cursor:default}ul.able-popup{list-style-type:none}.able-popup li{padding:.25em 1em .25em .25em;margin:1px;color:#fff}.able-popup li.able-focus{background-color:#ccc;color:#000}.able-popup-captions li{padding-left:1em}.able-popup-captions li[aria-checked=true]{padding-left:0}.able-popup-captions li[aria-checked=true]::before{content:"\2713 "}.able-transcript-area{border-width:1px;border-style:solid;height:400px;z-index:7000;outline:0;padding-bottom:25px;background-color:#fff}.able-transcript{position:relative;overflow-y:scroll;padding-left:5%;padding-right:5%;background-color:#fff;height:350px}.able-transcript div{margin:1em 0}.able-transcript-heading{font-size:1.4em;font-weight:700}.able-transcript-chapter-heading{font-size:1.2em;font-weight:700}.able-transcript div.able-transcript-desc{background-color:#fee;border:thin solid #336;font-style:italic;padding:1em}.able-transcript .able-unspoken{font-weight:700}.able-transcript .able-hidden{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.able-highlight{background:#ff6}.able-previous{background:#000!important;font-style:italic}.able-transcript span:active,.able-transcript span:focus,.able-transcript span:hover{background:#cf6;cursor:pointer}.able-window-toolbar label{margin-right:10px;color:#fff}.able-controller button:focus,.able-controller button:hover,.able-controller input:focus,.able-controller input:hover,.able-seekbar-head:focus,.able-seekbar-head:hover,.able-window-toolbar input:focus,.able-window-toolbar input:hover,.able-window-toolbar select:focus,.able-window-toolbar select:hover{outline-style:solid;outline-width:2px}.able-controller button:focus,.able-controller input:focus,.able-seekbar-head:focus,.able-window-toolbar input:focus,.able-window-toolbar select:focus{outline-color:#ffbb37}.able-controller button:hover,.able-controller input:hover,.able-seekbar-head:hover,.able-window-toolbar input:hover,.able-window-toolbar select:hover{outline-color:#8ab839}.able-window-toolbar .transcript-language-select-wrapper{float:right;padding-right:30px}.able-playlist{list-style-type:none;margin:0;background-color:#fff;padding:5px 0}.able-playlist li{background-color:#ddd;margin:5px;padding:0;border:2px solid #aaa;border-radius:5px;-moz-border-radius:5px}.able-playlist li button{border:none;color:#000;background-color:transparent;font-size:1em;width:100%;padding:5px 10px;text-align:left}.able-playlist li button:active,.able-playlist li button:focus,.able-playlist li button:hover{background-color:#ffeeb3;color:#000;text-decoration:none;outline:0}.able-playlist li button::-moz-focus-inner{border:0}.able-playlist li button img{width:100px;float:left;margin-right:10px}.able-playlist li.able-current{background-color:#340449;border-color:#230330}.able-playlist li.able-current button{color:#fff;font-weight:700;text-decoration:none;outline:0}.able-playlist li.able-current button:active,.able-playlist li.able-current button:focus,.able-playlist li.able-current button:hover{color:#000}.able-search-results ul li{font-size:1.1em;margin-bottom:1em}.able-search-results-time{font-weight:700;text-decoration:underline;cursor:pointer}.able-search-results-time:active,.able-search-results-time:focus,.able-search-results-time:hover{color:#fff;background-color:#000;text-decoration:none}.able-search-results-text{padding-left:1em}.able-search-term{background-color:#ffc;font-weight:700}#able-vts-instructions{margin-bottom:1.5em;padding:1em;border:1px solid #999;width:720px;max-width:90%}#able-vts fieldset{margin:1em;border:none}#able-vts fieldset legend{color:#000;font-weight:700}#able-vts fieldset div{float:left;padding-right:1em}#able-vts table{clear:left}#able-vts table,#able-vts table td,#able-vts table th{border:1px solid #000;border-collapse:collapse;padding:.5em .75em}#able-vts table th.actions{min-width:140px}#able-vts table td button{width:auto;padding:0;margin:2px}#able-vts table td button svg{width:16px;height:16px}#able-vts table button:hover svg{fill:#c00}tr.kind-chapters,tr.kind-subtitles{background-color:#fff}tr.kind-descriptions{background-color:#fee}tr.kind-chapters{background-color:#e6ffe6}.able-vts-dragging{background-color:#ffc}div#able-vts-icon-credit{margin:1em}div#able-vts-alert{display:none;position:fixed;top:5px;left:5px;border:2px solid #666;background-color:#ffc;padding:1em;font-weight:700;z-index:9400}button#able-vts-save{font-size:1em;padding:.25em;border-radius:5px;margin-bottom:1em;font-weight:700}button#able-vts-save:focus,button#able-vts-save:hover{color:#fff;background-color:#060}.able-vts-output-instructions{width:720px;max-width:90%}#able-vts textarea{height:200px;width:720px;max-width:90%}.able-clipped,.able-screenreader-alert{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);width:1px!important;height:1px!important;overflow:hidden!important}.able-error{display:block;background:#ffc;border:2px solid #000;color:red;margin:.75em;padding:.5em}.able-fallback{display:block;text-align:center;border:2px solid #335;background-color:#eee;color:#000;font-weight:700;font-size:1.1em;padding:1em;margin-bottom:1em;max-width:500px;width:95%}.able-fallback div,.able-fallback p,.able-fallback ul{text-align:left}.able-fallback li{font-weight:400}.able-fallback img{width:90%;margin:1em auto;opacity:.3}.able-fallback img.able-poster{position:relative}button svg{display:inline-block;width:1em;height:1em;fill:currentColor}@font-face{font-family:able;src:url(../button-icons/fonts/able.eot?dqripi);src:url(../button-icons/fonts/able.eot?dqripi#iefix) format('embedded-opentype'),url(../button-icons/fonts/able.ttf?dqripi) format('truetype'),url(../button-icons/fonts/able.woff?dqripi) format('woff'),url(../button-icons/fonts/able.svg?dqripi#able) format('svg');font-weight:400;font-style:normal}[class*=" icon-"],[class^=icon-]{font-family:able!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-play:before{content:"\f04b"}.icon-pause:before{content:"\f04c"}.icon-stop:before{content:"\f04d"}.icon-restart:before{content:"\e900"}.icon-rewind:before{content:"\e603"}.icon-forward:before{content:"\e604"}.icon-previous:before{content:"\e901"}.icon-next:before{content:"\e902"}.icon-slower:before{content:"\f0dd"}.icon-faster:before{content:"\f0de"}.icon-turtle:before{content:"\e904"}.icon-rabbit:before{content:"\e905"}.icon-ellipsis:before{content:"\e903"}.icon-pipe:before{content:"\e600"}.icon-captions:before{content:"\e601"}.icon-descriptions:before{content:"\e602"}.icon-sign:before{content:"\e60a"}.icon-volume-mute:before{content:"\e606"}.icon-volume-soft:before{content:"\e60c"}.icon-volume-medium:before{content:"\e605"}.icon-volume-loud:before{content:"\e60b"}.icon-volume-up:before{content:"\e607"}.icon-volume-down:before{content:"\e608"}.icon-chapters:before{content:"\e609"}.icon-transcript:before{content:"\f15c"}.icon-preferences:before{content:"\e60d"}.icon-close:before{content:"\f00d"}.icon-fullscreen-expand:before{content:"\f065"}.icon-fullscreen-collapse:before{content:"\f066"}.icon-help:before{content:"\f128"}
@@ -1,10 +1,3 @@
1
- /*! ableplayer V3.2.0 */
2
- "use strict";!function(a){a(document).ready(function(){a("video, audio").each(function(b,c){void 0!==a(c).data("able-player")&&new AblePlayer(a(this),a(c))})}),window.onYouTubeIframeAPIReady=function(){AblePlayer.youtubeIframeAPIReady=!0,a("body").trigger("youtubeIframeAPIReady",[])},a(window).keydown(function(a){1===AblePlayer.nextIndex&&AblePlayer.lastCreated.onPlayerKeyPress(a)}),window.AblePlayer=function(b){if(AblePlayer.lastCreated=this,this.media=b,0===a(b).length)return void this.provideFallback();if(void 0!==a(b).attr("autoplay")?this.autoplay=!0:this.autoplay=!1,void 0!==a(b).attr("loop")?this.loop=!0:this.loop=!1,void 0!==a(b).attr("playsinline")?this.playsInline="1":this.playsInline="0",void 0!==a(b).data("start-time")&&a.isNumeric(a(b).data("start-time"))?this.startTime=a(b).data("start-time"):this.startTime=0,void 0!==a(b).data("debug")&&a(b).data("debug")!==!1?this.debug=!0:this.debug=!1,void 0!==a(b).data("root-path")?this.rootPath=a(b).data("root-path").replace(/\/?$/,"/"):this.rootPath=this.getRootPath(),this.defaultVolume=7,void 0!==a(b).data("volume")&&""!==a(b).data("volume")){var c=a(b).data("volume");c>=0&&10>=c&&(this.defaultVolume=c)}if(this.volume=this.defaultVolume,void 0!==a(b).data("use-chapters-button")&&a(b).data("use-chapters-button")===!1?this.useChaptersButton=!1:this.useChaptersButton=!0,void 0!==a(b).data("use-descriptions-button")&&a(b).data("use-descriptions-button")===!1?this.useDescriptionsButton=!1:this.useDescriptionsButton=!0,void 0!==a(b).data("heading-level")&&""!==a(b).data("heading-level")){var d=a(b).data("heading-level");/^[0-6]*$/.test(d)&&(this.playerHeadingLevel=d)}if(this.transcriptType=null,void 0!==a(b).data("transcript-src")?(this.transcriptSrc=a(b).data("transcript-src"),this.transcriptSrcHasRequiredParts()?this.transcriptType="manual":this.transcriptType=null):a(b).find('track[kind="captions"], track[kind="subtitles"]').length>0&&(void 0!==a(b).data("transcript-div")&&""!==a(b).data("transcript-div")?(this.transcriptDivLocation=a(b).data("transcript-div"),this.transcriptType="external"):void 0!==a(b).data("include-transcript")?a(b).data("include-transcript")!==!1&&(this.transcriptType="popup"):this.transcriptType="popup"),void 0!==a(b).data("lyrics-mode")&&a(b).data("lyrics-mode")!==!1?this.lyricsMode=!0:this.lyricsMode=!1,void 0!==a(b).data("transcript-title")&&""!==a(b).data("transcript-title")&&(this.transcriptTitle=a(b).data("transcript-title")),"overlay"===a(b).data("captions-position")?this.defaultCaptionsPosition="overlay":this.defaultCaptionsPosition="below",void 0!==a(b).data("chapters-div")&&""!==a(b).data("chapters-div")&&(this.chaptersDivLocation=a(b).data("chapters-div")),void 0!==a(b).data("chapters-title")&&(this.chaptersTitle=a(b).data("chapters-title")),void 0!==a(b).data("chapters-default")&&""!==a(b).data("chapters-default")?this.defaultChapter=a(b).data("chapters-default"):this.defaultChapter=null,"chapter"===a(b).data("prevnext-unit")||"chapters"===a(b).data("prevnext-unit")?this.prevNextUnit="chapter":"playlist"===a(b).data("prevnext-unit")?this.prevNextUnit="playlist":this.prevNextUnit=!1,"arrows"===a(b).data("speed-icons")?this.speedIcons="arrows":this.speedIcons="animals","chapter"===a(b).data("seekbar-scope")||"chapters"===a(b).data("seekbar-scope")?this.seekbarScope="chapter":this.seekbarScope="video",void 0!==a(b).data("youtube-id")&&""!==a(b).data("youtube-id")&&(this.youTubeId=a(b).data("youtube-id")),void 0!==a(b).data("youtube-desc-id")&&""!==a(b).data("youtube-desc-id")&&(this.youTubeDescId=a(b).data("youtube-desc-id")),void 0!==a(b).data("youtube-nocookie")&&a(b).data("youtube-nocookie")?this.youTubeNoCookie=!0:this.youTubeNoCookie=!1,this.iconType="font",this.forceIconType=!1,void 0!==a(b).data("icon-type")&&""!==a(b).data("icon-type")){var e=a(b).data("icon-type");("font"===e||"image"==e||"svg"==e)&&(this.iconType=e,this.forceIconType=!0)}if(void 0!==a(b).data("allow-fullscreen")&&a(b).data("allow-fullscreen")===!1?this.allowFullScreen=!1:this.allowFullScreen=!0,this.defaultSeekInterval=10,this.useFixedSeekInterval=!1,void 0!==a(b).data("seek-interval")&&""!==a(b).data("seek-interval")){var f=a(b).data("seek-interval");/^[1-9][0-9]*$/.test(f)&&(this.seekInterval=f,this.useFixedSeekInterval=!0)}if(void 0!==a(b).data("show-now-playing")&&a(b).data("show-now-playing")===!1?this.showNowPlaying=!1:this.showNowPlaying=!0,void 0!==a(b).data("use-ttml")?(this.useTtml=!0,this.convert=require("xml-js")):this.useTtml=!1,this.fallback=null,this.fallbackPath=null,this.fallbackJwKey=null,this.testFallback=!1,void 0!==a(b).data("fallback")&&""!==a(b).data("fallback")){var g=a(b).data("fallback");"jw"===g&&(this.fallback=g)}if("jw"===this.fallback){if(void 0!==a(b).data("fallback-path")&&a(b).data("fallback-path")!==!1){this.fallbackPath=a(b).data("fallback-path");var h=a(b).data("fallback-path"),i="jwplayer.js";h.endsWith(i)&&(h=h.slice(0,h.length-i.length)),this.fallbackPath=h}else this.fallbackPath=this.rootPath+"thirdparty/";void 0!==a(b).data("fallback-jwkey")&&(this.fallbackJwKey=a(b).data("fallback-jwkey")),void 0!==a(b).data("test-fallback")&&a(b).data("test-fallback")!==!1&&(this.testFallback=!0)}if(this.lang="en",void 0!==a(b).data("lang")&&""!==a(b).data("lang")){var j=a(b).data("lang");2==j.length&&(this.lang=j)}void 0!==a(b).data("force-lang")&&a(b).data("force-lang")!==!1?this.forceLang=!0:this.forceLang=!1,void 0!==a(b).data("meta-type")&&""!==a(b).data("meta-type")&&(this.metaType=a(b).data("meta-type")),void 0!==a(b).data("meta-div")&&""!==a(b).data("meta-div")&&(this.metaDiv=a(b).data("meta-div")),void 0!==a(b).data("search")&&""!==a(b).data("search")&&(void 0!==a(b).data("search-div")&&""!==a(b).data("search-div")&&(this.searchString=a(b).data("search"),this.searchDiv=a(b).data("search-div")),void 0!==a(b).data("search-lang")&&""!==a(b).data("search-lang")?this.searchLang=a(b).data("search-lang"):this.searchLang=null,void 0!==a(b).data("search-div")&&""!==a(b).data("search-div")&&(this.searchString=a(b).data("search"),this.searchDiv=a(b).data("search-div"))),void 0!==a(b).data("hide-controls")&&a(b).data("hide-controls")!==!1?this.hideControls=!0:this.hideControls=!1,this.setDefaults(),this.ableIndex=AblePlayer.nextIndex,AblePlayer.nextIndex+=1,this.title=a(b).attr("title"),this.tt={};var k=this;a.when(this.getTranslationText()).then(function(){k.countProperties(k.tt)>50?k.setup():k.provideFallback()})},AblePlayer.nextIndex=0,AblePlayer.prototype.setup=function(){var a=this;this.reinitialize().then(function(){a.player?a.setupInstance().then(function(){a.recreatePlayer()}):a.provideFallback()})},AblePlayer.getActiveDOMElement=function(){for(var a=document.activeElement;a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a},AblePlayer.localGetElementById=function(b,c){return a(b.getRootNode?b.getRootNode().querySelector("#"+c):document.getElementById(c))},AblePlayer.youtubeIframeAPIReady=!1,AblePlayer.loadingYoutubeIframeAPI=!1}(jQuery),function(a){AblePlayer.prototype.setDefaults=function(){this.playing=!1,this.clickedPlay=!1,this.getUserAgent(),this.setIconColor(),this.setButtonImages()},AblePlayer.prototype.getRootPath=function(){var a,b,c,d,e,f,g,h;for(a=document.getElementsByTagName("script"),b=0;b<a.length;b++)if(c=a[b].src,d=c.substr(c.lastIndexOf("/")),-1!==d.indexOf("ableplayer")){e=c.split("?")[0];break}return f=e.split("/").slice(0,-1).join("/"),g=f.lastIndexOf("/"),h=f.substring(0,g)+"/"},AblePlayer.prototype.setIconColor=function(){var b,c,d,e,f,g,h,i,j,k;for(b=["controller","toolbar"],c=0;c<b.length;c++)"controller"==b[c]?d=a("<div>",{"class":"able-controller"}).hide():"toolbar"===b[c]&&(d=a("<div>",{"class":"able-window-toolbar"}).hide()),a("body").append(d),e=d.css("background-color"),f=e.replace(/[^\d,]/g,"").split(","),g=f[0],h=f[1],i=f[2],j=.2126*g+.7152*h+.0722*i,k=125>j?"white":"black","controller"===b[c]?this.iconColor=k:"toolbar"===b[c]&&(this.toolbarIconColor=k),d.remove()},AblePlayer.prototype.setButtonImages=function(){this.imgPath=this.rootPath+"button-icons/"+this.iconColor+"/",this.playButtonImg=this.imgPath+"play.png",this.pauseButtonImg=this.imgPath+"pause.png",this.restartButtonImg=this.imgPath+"restart.png",this.rewindButtonImg=this.imgPath+"rewind.png",this.forwardButtonImg=this.imgPath+"forward.png",this.previousButtonImg=this.imgPath+"previous.png",this.nextButtonImg=this.imgPath+"next.png","arrows"===this.speedIcons?(this.fasterButtonImg=this.imgPath+"slower.png",this.slowerButtonImg=this.imgPath+"faster.png"):"animals"===this.speedIcons&&(this.fasterButtonImg=this.imgPath+"rabbit.png",this.slowerButtonImg=this.imgPath+"turtle.png"),this.captionsButtonImg=this.imgPath+"captions.png",this.chaptersButtonImg=this.imgPath+"chapters.png",this.signButtonImg=this.imgPath+"sign.png",this.transcriptButtonImg=this.imgPath+"transcript.png",this.descriptionsButtonImg=this.imgPath+"descriptions.png",this.fullscreenExpandButtonImg=this.imgPath+"fullscreen-expand.png",this.fullscreenCollapseButtonImg=this.imgPath+"fullscreen-collapse.png",this.prefsButtonImg=this.imgPath+"preferences.png",this.helpButtonImg=this.imgPath+"help.png"},AblePlayer.prototype.getSvgData=function(a){var b=Array();switch(a){case"play":b[0]="0 0 16 20",b[1]="M0 18.393v-16.429q0-0.29 0.184-0.402t0.441 0.033l14.821 8.237q0.257 0.145 0.257 0.346t-0.257 0.346l-14.821 8.237q-0.257 0.145-0.441 0.033t-0.184-0.402z";break;case"pause":b[0]="0 0 20 20",b[1]="M0 18.036v-15.714q0-0.29 0.212-0.502t0.502-0.212h5.714q0.29 0 0.502 0.212t0.212 0.502v15.714q0 0.29-0.212 0.502t-0.502 0.212h-5.714q-0.29 0-0.502-0.212t-0.212-0.502zM10 18.036v-15.714q0-0.29 0.212-0.502t0.502-0.212h5.714q0.29 0 0.502 0.212t0.212 0.502v15.714q0 0.29-0.212 0.502t-0.502 0.212h-5.714q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"stop":b[0]="0 0 20 20",b[1]="M0 18.036v-15.714q0-0.29 0.212-0.502t0.502-0.212h15.714q0.29 0 0.502 0.212t0.212 0.502v15.714q0 0.29-0.212 0.502t-0.502 0.212h-15.714q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"restart":b[0]="0 0 20 20",b[1]="M18 8h-6l2.243-2.243c-1.133-1.133-2.64-1.757-4.243-1.757s-3.109 0.624-4.243 1.757c-1.133 1.133-1.757 2.64-1.757 4.243s0.624 3.109 1.757 4.243c1.133 1.133 2.64 1.757 4.243 1.757s3.109-0.624 4.243-1.757c0.095-0.095 0.185-0.192 0.273-0.292l1.505 1.317c-1.466 1.674-3.62 2.732-6.020 2.732-4.418 0-8-3.582-8-8s3.582-8 8-8c2.209 0 4.209 0.896 5.656 2.344l2.344-2.344v6z";break;case"rewind":b[0]="0 0 20 20",b[1]="M11.25 3.125v6.25l6.25-6.25v13.75l-6.25-6.25v6.25l-6.875-6.875z";break;case"forward":b[0]="0 0 20 20",b[1]="M10 16.875v-6.25l-6.25 6.25v-13.75l6.25 6.25v-6.25l6.875 6.875z";break;case"previous":b[0]="0 0 20 20",b[1]="M5 17.5v-15h2.5v6.875l6.25-6.25v13.75l-6.25-6.25v6.875z";break;case"next":b[0]="0 0 20 20",b[1]="M15 2.5v15h-2.5v-6.875l-6.25 6.25v-13.75l6.25 6.25v-6.875z";break;case"slower":b[0]="0 0 20 20",b[1]="M0 7.321q0-0.29 0.212-0.502t0.502-0.212h10q0.29 0 0.502 0.212t0.212 0.502-0.212 0.502l-5 5q-0.212 0.212-0.502 0.212t-0.502-0.212l-5-5q-0.212-0.212-0.212-0.502z";break;case"faster":b[0]="0 0 11 20",b[1]="M0 12.411q0-0.29 0.212-0.502l5-5q0.212-0.212 0.502-0.212t0.502 0.212l5 5q0.212 0.212 0.212 0.502t-0.212 0.502-0.502 0.212h-10q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"turtle":b[0]="0 0 20 20",b[1]="M17.212 3.846c-0.281-0.014-0.549 0.025-0.817 0.144-1.218 0.542-1.662 2.708-2.163 3.942-1.207 2.972-7.090 4.619-11.755 5.216-0.887 0.114-1.749 0.74-2.428 1.466 0.82-0.284 2.126-0.297 2.74 0.144 0.007 0.488-0.376 1.062-0.625 1.37-0.404 0.5-0.398 0.793 0.12 0.793 0.473 0 0.752 0.007 1.635 0 0.393-0.003 0.618-0.16 1.49-1.49 3.592 0.718 5.986-0.264 5.986-0.264s0.407 1.755 1.418 1.755h1.49c0.633 0 0.667-0.331 0.625-0.433-0.448-1.082-0.68-1.873-0.769-2.5-0.263-1.857 0.657-3.836 2.524-5.457 0.585 0.986 2.253 0.845 2.909-0.096s0.446-2.268-0.192-3.221c-0.49-0.732-1.345-1.327-2.188-1.37zM8.221 4.663c-0.722-0.016-1.536 0.111-2.5 0.409-4.211 1.302-4.177 4.951-3.51 5.745 0 0-0.955 0.479-0.409 1.274 0.448 0.652 3.139 0.191 5.409-0.529s4.226-1.793 5.312-2.692c0.948-0.785 0.551-2.106-0.505-1.947-0.494-0.98-1.632-2.212-3.798-2.26zM18.846 5.962c0.325 0 0.577 0.252 0.577 0.577s-0.252 0.577-0.577 0.577c-0.325 0-0.577-0.252-0.577-0.577s0.252-0.577 0.577-0.577z";break;case"rabbit":b[0]="0 0 20 20",b[1]="M10.817 0c-2.248 0-1.586 0.525-1.154 0.505 1.551-0.072 5.199 0.044 6.851 2.428 0 0-1.022-2.933-5.697-2.933zM10.529 0.769c-2.572 0-2.837 0.51-2.837 1.106 0 0.545 1.526 0.836 2.524 0.697 2.778-0.386 4.231-0.12 5.264 0.865-1.010 0.779-0.75 1.401-1.274 1.851-1.093 0.941-2.643-0.673-4.976-0.673-2.496 0-4.712 1.92-4.712 4.76-0.157-0.537-0.769-0.913-1.442-0.913-0.974 0-1.514 0.637-1.514 1.49 0 0.769 1.13 1.791 2.861 0.938 0.499 1.208 2.265 1.364 2.452 1.418 0.538 0.154 1.875 0.098 1.875 0.865 0 0.794-1.034 1.094-1.034 1.707 0 1.070 1.758 0.873 2.284 1.034 1.683 0.517 2.103 1.214 2.788 2.212 0.771 1.122 2.572 1.408 2.572 0.625 0-3.185-4.413-4.126-4.399-4.135 0.608-0.382 2.139-1.397 2.139-3.534 0-1.295-0.703-2.256-1.755-2.861 1.256 0.094 2.572 1.205 2.572 2.74 0 1.877-0.653 2.823-0.769 2.957 1.975-1.158 3.193-3.91 3.029-6.37 0.61 0.401 1.27 0.577 1.971 0.625 0.751 0.052 1.475-0.225 1.635-0.529 0.38-0.723 0.162-2.321-0.12-2.837-0.763-1.392-2.236-1.73-3.606-1.683-1.202-1.671-3.812-2.356-5.529-2.356zM1.37 3.077l-0.553 1.538h3.726c0.521-0.576 1.541-1.207 2.284-1.538h-5.457zM18.846 5.192c0.325 0 0.577 0.252 0.577 0.577s-0.252 0.577-0.577 0.577c-0.325 0-0.577-0.252-0.577-0.577s0.252-0.577 0.577-0.577zM0.553 5.385l-0.553 1.538h3.197c0.26-0.824 0.586-1.328 0.769-1.538h-3.413z";break;case"ellipsis":b[0]="0 0 20 20",b[1]="M10.001 7.8c-1.215 0-2.201 0.985-2.201 2.2s0.986 2.2 2.201 2.2c1.215 0 2.199-0.985 2.199-2.2s-0.984-2.2-2.199-2.2zM3.001 7.8c-1.215 0-2.201 0.985-2.201 2.2s0.986 2.2 2.201 2.2c1.215 0 2.199-0.986 2.199-2.2s-0.984-2.2-2.199-2.2zM17.001 7.8c-1.215 0-2.201 0.985-2.201 2.2s0.986 2.2 2.201 2.2c1.215 0 2.199-0.985 2.199-2.2s-0.984-2.2-2.199-2.2z";break;case"pipe":b[0]="0 0 20 20",b[1]="M10.15 0.179h0.623c0.069 0 0.127 0.114 0.127 0.253v19.494c0 0.139-0.057 0.253-0.127 0.253h-1.247c-0.069 0-0.126-0.114-0.126-0.253v-19.494c0-0.139 0.057-0.253 0.126-0.253h0.623z";break;case"captions":b[0]="0 0 20 20",b[1]="M0.033 3.624h19.933v12.956h-19.933v-12.956zM18.098 10.045c-0.025-2.264-0.124-3.251-0.743-3.948-0.112-0.151-0.322-0.236-0.496-0.344-0.606-0.386-3.465-0.526-6.782-0.526s-6.313 0.14-6.907 0.526c-0.185 0.108-0.396 0.193-0.519 0.344-0.607 0.697-0.693 1.684-0.731 3.948 0.037 2.265 0.124 3.252 0.731 3.949 0.124 0.161 0.335 0.236 0.519 0.344 0.594 0.396 3.59 0.526 6.907 0.547 3.317-0.022 6.176-0.151 6.782-0.547 0.174-0.108 0.384-0.183 0.496-0.344 0.619-0.697 0.717-1.684 0.743-3.949v0 0zM9.689 9.281c-0.168-1.77-1.253-2.813-3.196-2.813-1.773 0-3.168 1.387-3.168 3.617 0 2.239 1.271 3.636 3.372 3.636 1.676 0 2.851-1.071 3.035-2.852h-2.003c-0.079 0.661-0.397 1.168-1.068 1.168-1.059 0-1.253-0.91-1.253-1.876 0-1.33 0.442-2.010 1.174-2.010 0.653 0 1.068 0.412 1.13 1.129h1.977zM16.607 9.281c-0.167-1.77-1.252-2.813-3.194-2.813-1.773 0-3.168 1.387-3.168 3.617 0 2.239 1.271 3.636 3.372 3.636 1.676 0 2.851-1.071 3.035-2.852h-2.003c-0.079 0.661-0.397 1.168-1.068 1.168-1.059 0-1.253-0.91-1.253-1.876 0-1.33 0.441-2.010 1.174-2.010 0.653 0 1.068 0.412 1.13 1.129h1.976z";break;case"descriptions":b[0]="0 0 20 20",b[1]="M17.623 3.57h-1.555c1.754 1.736 2.763 4.106 2.763 6.572 0 2.191-0.788 4.286-2.189 5.943h1.484c1.247-1.704 1.945-3.792 1.945-5.943-0-2.418-0.886-4.754-2.447-6.572v0zM14.449 3.57h-1.55c1.749 1.736 2.757 4.106 2.757 6.572 0 2.191-0.788 4.286-2.187 5.943h1.476c1.258-1.704 1.951-3.792 1.951-5.943-0-2.418-0.884-4.754-2.447-6.572v0zM11.269 3.57h-1.542c1.752 1.736 2.752 4.106 2.752 6.572 0 2.191-0.791 4.286-2.181 5.943h1.473c1.258-1.704 1.945-3.792 1.945-5.943 0-2.418-0.876-4.754-2.447-6.572v0zM10.24 9.857c0 3.459-2.826 6.265-6.303 6.265v0.011h-3.867v-12.555h3.896c3.477 0 6.274 2.806 6.274 6.279v0zM6.944 9.857c0-1.842-1.492-3.338-3.349-3.338h-0.876v6.686h0.876c1.858 0 3.349-1.498 3.349-3.348v0z";break;case"sign":b[0]="0 0 20 20",b[1]="M10.954 10.307c0.378 0.302 0.569 1.202 0.564 1.193 0.697 0.221 1.136 0.682 1.136 0.682 1.070-0.596 1.094-0.326 1.558-0.682 0.383-0.263 0.366-0.344 0.567-1.048 0.187-0.572-0.476-0.518-1.021-1.558-0.95 0.358-1.463 0.196-1.784 0.167-0.145-0.020-0.12 0.562-1.021 1.247zM14.409 17.196c-0.133 0.182-0.196 0.218-0.363 0.454-0.28 0.361 0.076 0.906 0.253 0.82 0.206-0.076 0.341-0.488 0.567-0.623 0.115-0.061 0.422-0.513 0.709-0.82 0.211-0.238 0.363-0.344 0.564-0.594 0.341-0.422 0.412-0.744 0.709-1.193 0.184-0.236 0.312-0.307 0.481-0.594 0.886-1.679 0.628-2.432 1.475-3.629 0.26-0.353 0.552-0.442 0.964-0.653 0.383-2.793-0.888-4.356-0.879-4.361-1.067 0.623-1.644 0.879-2.751 0.82-0.417-0.005-0.636-0.182-1.048-0.145-0.385 0.015-0.582 0.159-0.964 0.29-0.589 0.182-0.91 0.344-1.529 0.535-0.393 0.11-0.643 0.115-1.050 0.255-0.348 0.147-0.182 0.029-0.427 0.312-0.317 0.348-0.238 0.623-0.535 1.222-0.371 0.785-0.326 0.891-0.115 0.987-0.14 0.402-0.174 0.672-0.14 1.107 0.039 0.331-0.101 0.562 0.255 0.825 0.483 0.361 1.499 1.205 1.757 1.217 0.39-0.012 1.521 0.029 2.096-0.368 0.13-0.081 0.167-0.162 0.056 0.145-0.022 0.037-1.433 1.136-1.585 1.131-1.794 0.056-1.193 0.157-1.303 0.115-0.091 0-0.955-1.055-1.477-0.682-0.196 0.12-0.287 0.236-0.363 0.452 0.066 0.137 0.383 0.358 0.675 0.54 0.422 0.27 0.461 0.552 0.881 0.653 0.513 0.115 1.060 0.039 1.387 0.081 0.125 0.034 1.256-0.297 1.961-0.675 0.65-0.336-0.898 0.648-1.276 1.131-1.141 0.358-0.82 0.373-1.362 0.483-0.503 0.115-0.479 0.086-0.822 0.196-0.356 0.086-0.648 0.572-0.312 0.825 0.201 0.167 0.827-0.066 1.445-0.086 0.275-0.005 1.391-0.518 1.644-0.653 0.633-0.339 1.099-0.81 1.472-1.077 0.518-0.361-0.584 0.991-1.050 1.558zM8.855 9.799c-0.378-0.312-0.569-1.212-0.564-1.217-0.697-0.206-1.136-0.667-1.136-0.653-1.070 0.582-1.099 0.312-1.558 0.653-0.388 0.277-0.366 0.363-0.567 1.045-0.187 0.594 0.471 0.535 1.021 1.561 0.95-0.344 1.463-0.182 1.784-0.142 0.145 0.010 0.12-0.572 1.021-1.247zM5.4 2.911c0.133-0.191 0.196-0.228 0.368-0.454 0.27-0.371-0.081-0.915-0.253-0.849-0.211 0.096-0.346 0.508-0.599 0.653-0.093 0.052-0.4 0.503-0.682 0.82-0.211 0.228-0.363 0.334-0.564 0.599-0.346 0.407-0.412 0.729-0.709 1.161-0.184 0.258-0.317 0.324-0.481 0.621-0.886 1.669-0.631 2.422-1.475 3.6-0.26 0.38-0.552 0.461-0.964 0.682-0.383 2.788 0.883 4.346 0.879 4.336 1.068-0.609 1.639-0.861 2.751-0.825 0.417 0.025 0.636 0.201 1.048 0.174 0.385-0.025 0.582-0.169 0.964-0.285 0.589-0.196 0.91-0.358 1.499-0.54 0.422-0.12 0.672-0.125 1.080-0.285 0.348-0.128 0.182-0.010 0.427-0.282 0.312-0.358 0.238-0.633 0.508-1.217 0.398-0.8 0.353-0.906 0.142-0.991 0.135-0.412 0.174-0.677 0.14-1.107-0.044-0.336 0.101-0.572-0.255-0.82-0.483-0.375-1.499-1.22-1.752-1.222-0.395 0.002-1.526-0.039-2.101 0.339-0.13 0.101-0.167 0.182-0.056-0.11 0.022-0.052 1.433-1.148 1.585-1.163 1.794-0.039 1.193-0.14 1.303-0.088 0.091-0.007 0.955 1.045 1.477 0.682 0.191-0.13 0.287-0.245 0.368-0.452-0.071-0.147-0.388-0.368-0.68-0.537-0.422-0.282-0.464-0.564-0.881-0.655-0.513-0.125-1.065-0.049-1.387-0.11-0.125-0.015-1.256 0.317-1.956 0.68-0.66 0.351 0.893-0.631 1.276-1.136 1.136-0.339 0.81-0.353 1.36-0.479 0.501-0.101 0.476-0.071 0.82-0.172 0.351-0.096 0.648-0.577 0.312-0.849-0.206-0.152-0.827 0.081-1.44 0.086-0.28 0.020-1.396 0.533-1.649 0.677-0.633 0.329-1.099 0.8-1.472 1.048-0.523 0.38 0.584-0.967 1.050-1.529z";break;case"mute":b[0]="0 0 20 20",b[1]="M7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714zM18.75 12.093v1.657h-1.657l-2.093-2.093-2.093 2.093h-1.657v-1.657l2.093-2.093-2.093-2.093v-1.657h1.657l2.093 2.093 2.093-2.093h1.657v1.657l-2.093 2.093z";break;case"volume-mute":b[0]="0 0 20 20",b[1]="M10.723 14.473c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.584-1.584 1.584-4.161 0-5.745-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.315 2.315 2.315 6.082 0 8.397-0.183 0.183-0.423 0.275-0.663 0.275zM7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714z";break;case"volume-medium":b[0]="0 0 20 20",b[1]="M14.053 16.241c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 2.559-2.559 2.559-6.722 0-9.281-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c1.594 1.594 2.471 3.712 2.471 5.966s-0.878 4.373-2.471 5.966c-0.183 0.183-0.423 0.275-0.663 0.275zM10.723 14.473c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.584-1.584 1.584-4.161 0-5.745-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.315 2.315 2.315 6.082 0 8.397-0.183 0.183-0.423 0.275-0.663 0.275zM7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714z";break;case"volume-loud":b[0]="0 0 21 20",b[1]="M17.384 18.009c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.712-1.712 2.654-3.988 2.654-6.408s-0.943-4.696-2.654-6.408c-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.066 2.066 3.204 4.813 3.204 7.734s-1.138 5.668-3.204 7.734c-0.183 0.183-0.423 0.275-0.663 0.275zM14.053 16.241c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 2.559-2.559 2.559-6.722 0-9.281-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c1.594 1.594 2.471 3.712 2.471 5.966s-0.878 4.373-2.471 5.966c-0.183 0.183-0.423 0.275-0.663 0.275zM10.723 14.473c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.584-1.584 1.584-4.161 0-5.745-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.315 2.315 2.315 6.082 0 8.397-0.183 0.183-0.423 0.275-0.663 0.275zM7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714z";break;case"chapters":b[0]="0 0 20 20",b[1]="M5 2.5v17.5l6.25-6.25 6.25 6.25v-17.5zM15 0h-12.5v17.5l1.25-1.25v-15h11.25z";break;case"transcript":b[0]="0 0 20 20",b[1]="M0 19.107v-17.857q0-0.446 0.313-0.759t0.759-0.313h8.929v6.071q0 0.446 0.313 0.759t0.759 0.313h6.071v11.786q0 0.446-0.313 0.759t-0.759 0.312h-15q-0.446 0-0.759-0.313t-0.313-0.759zM4.286 15.536q0 0.156 0.1 0.257t0.257 0.1h7.857q0.156 0 0.257-0.1t0.1-0.257v-0.714q0-0.156-0.1-0.257t-0.257-0.1h-7.857q-0.156 0-0.257 0.1t-0.1 0.257v0.714zM4.286 12.679q0 0.156 0.1 0.257t0.257 0.1h7.857q0.156 0 0.257-0.1t0.1-0.257v-0.714q0-0.156-0.1-0.257t-0.257-0.1h-7.857q-0.156 0-0.257 0.1t-0.1 0.257v0.714zM4.286 9.821q0 0.156 0.1 0.257t0.257 0.1h7.857q0.156 0 0.257-0.1t0.1-0.257v-0.714q0-0.156-0.1-0.257t-0.257-0.1h-7.857q-0.156 0-0.257 0.1t-0.1 0.257v0.714zM11.429 5.893v-5.268q0.246 0.156 0.402 0.313l4.554 4.554q0.156 0.156 0.313 0.402h-5.268z";break;case"preferences":b[0]="0 0 20 20",b[1]="M18.238 11.919c-1.049-1.817-0.418-4.147 1.409-5.205l-1.965-3.404c-0.562 0.329-1.214 0.518-1.911 0.518-2.1 0-3.803-1.714-3.803-3.828h-3.931c0.005 0.653-0.158 1.314-0.507 1.919-1.049 1.818-3.382 2.436-5.212 1.382l-1.965 3.404c0.566 0.322 1.056 0.793 1.404 1.396 1.048 1.815 0.42 4.139-1.401 5.2l1.965 3.404c0.56-0.326 1.209-0.513 1.902-0.513 2.094 0 3.792 1.703 3.803 3.808h3.931c-0.002-0.646 0.162-1.3 0.507-1.899 1.048-1.815 3.375-2.433 5.203-1.387l1.965-3.404c-0.562-0.322-1.049-0.791-1.395-1.391zM10 14.049c-2.236 0-4.050-1.813-4.050-4.049s1.813-4.049 4.050-4.049 4.049 1.813 4.049 4.049c-0 2.237-1.813 4.049-4.049 4.049z";break;case"close":b[0]="0 0 16 20",b[1]="M1.228 14.933q0-0.446 0.312-0.759l3.281-3.281-3.281-3.281q-0.313-0.313-0.313-0.759t0.313-0.759l1.518-1.518q0.313-0.313 0.759-0.313t0.759 0.313l3.281 3.281 3.281-3.281q0.313-0.313 0.759-0.313t0.759 0.313l1.518 1.518q0.313 0.313 0.313 0.759t-0.313 0.759l-3.281 3.281 3.281 3.281q0.313 0.313 0.313 0.759t-0.313 0.759l-1.518 1.518q-0.313 0.313-0.759 0.313t-0.759-0.313l-3.281-3.281-3.281 3.281q-0.313 0.313-0.759 0.313t-0.759-0.313l-1.518-1.518q-0.313-0.313-0.313-0.759z";break;case"fullscreen-expand":b[0]="0 0 20 20",b[1]="M0 18.036v-5q0-0.29 0.212-0.502t0.502-0.212 0.502 0.212l1.607 1.607 3.705-3.705q0.112-0.112 0.257-0.112t0.257 0.112l1.272 1.272q0.112 0.112 0.112 0.257t-0.112 0.257l-3.705 3.705 1.607 1.607q0.212 0.212 0.212 0.502t-0.212 0.502-0.502 0.212h-5q-0.29 0-0.502-0.212t-0.212-0.502zM8.717 8.393q0-0.145 0.112-0.257l3.705-3.705-1.607-1.607q-0.212-0.212-0.212-0.502t0.212-0.502 0.502-0.212h5q0.29 0 0.502 0.212t0.212 0.502v5q0 0.29-0.212 0.502t-0.502 0.212-0.502-0.212l-1.607-1.607-3.705 3.705q-0.112 0.112-0.257 0.112t-0.257-0.112l-1.272-1.272q-0.112-0.112-0.112-0.257z";break;case"fullscreen-collapse":b[0]="0 0 20 20",b[1]="M0.145 16.964q0-0.145 0.112-0.257l3.705-3.705-1.607-1.607q-0.212-0.212-0.212-0.502t0.212-0.502 0.502-0.212h5q0.29 0 0.502 0.212t0.212 0.502v5q0 0.29-0.212 0.502t-0.502 0.212-0.502-0.212l-1.607-1.607-3.705 3.705q-0.112 0.112-0.257 0.112t-0.257-0.112l-1.272-1.272q-0.112-0.112-0.112-0.257zM8.571 9.464v-5q0-0.29 0.212-0.502t0.502-0.212 0.502 0.212l1.607 1.607 3.705-3.705q0.112-0.112 0.257-0.112t0.257 0.112l1.272 1.272q0.112 0.112 0.112 0.257t-0.112 0.257l-3.705 3.705 1.607 1.607q0.212 0.212 0.212 0.502t-0.212 0.502-0.502 0.212h-5q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"help":b[0]="0 0 11 20",b[1]="M0.577 6.317q-0.028-0.167 0.061-0.313 1.786-2.969 5.179-2.969 0.893 0 1.797 0.346t1.629 0.926 1.183 1.423 0.458 1.769q0 0.603-0.173 1.127t-0.391 0.854-0.614 0.664-0.642 0.485-0.681 0.396q-0.458 0.257-0.765 0.725t-0.307 0.748q0 0.19-0.134 0.363t-0.313 0.173h-2.679q-0.167 0-0.285-0.206t-0.117-0.419v-0.502q0-0.926 0.725-1.747t1.596-1.211q0.658-0.301 0.938-0.625t0.279-0.848q0-0.469-0.519-0.826t-1.2-0.357q-0.725 0-1.205 0.324-0.391 0.279-1.194 1.283-0.145 0.179-0.346 0.179-0.134 0-0.279-0.089l-1.83-1.395q-0.145-0.112-0.173-0.279zM3.786 16.875v-2.679q0-0.179 0.134-0.313t0.313-0.134h2.679q0.179 0 0.313 0.134t0.134 0.313v2.679q0 0.179-0.134 0.313t-0.313 0.134h-2.679q-0.179 0-0.313-0.134t-0.134-0.313z"}return b},AblePlayer.prototype.reinitialize=function(){var b,c,d;if(b=new a.Deferred,c=b.promise(),d=this,window.console||(this.debug=!1),this.startedPlaying=!1,this.autoScrollTranscript=!0,this.$media=a(this.media).first(),this.media=this.$media[0],this.$media.is("audio"))this.mediaType="audio";else{if(!this.$media.is("video"))return this.provideFallback(),b.fail(),c;this.mediaType="video"}return this.$sources=this.$media.find("source"),this.player=this.getPlayer(),this.player||this.provideFallback(),this.setIconType(),this.setDimensions(),b.resolve(),c},AblePlayer.prototype.setDimensions=function(){this.$media.attr("width")&&this.$media.attr("height")?(this.playerMaxWidth=parseInt(this.$media.attr("width"),10),this.playerMaxHeight=parseInt(this.$media.attr("height"),10)):this.$media.attr("width")?this.playerMaxWidth=parseInt(this.$media.attr("width"),10):(this.playerMaxWidth=this.$media.parent().width(),this.playerMaxHeight=this.getMatchingHeight(this.playerMaxWidth)),this.$media.css({width:"100%",height:"auto"})},AblePlayer.prototype.getMatchingHeight=function(b){var c,d,e,f,g,h;return c=[3840,2560,1920,1280,854,640,426],d=[2160,1440,1080,720,480,360,240],e=null,f=null,a.each(c,function(a){(null==e||Math.abs(this-b)<Math.abs(e-b))&&(e=this,f=a)}),g=d[f],this.aspectRatio=e/g,h=Math.round(b/this.aspectRatio)},AblePlayer.prototype.setIconType=function(){var b,c,d;return this.forceIconType?!1:void(document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect?this.iconType="svg":(window.getComputedStyle?(a("span.icon-play").length?c=a("span.icon-play"):(b=a("<span>",{"class":"icon-play able-clipped"}),a("body").append(b),c=b),d=window.getComputedStyle(c.get(0),null).getPropertyValue("font-family"),"undefined"!=typeof d&&-1!==d.indexOf("able")?this.iconType="font":this.iconType="image"):this.iconType="image",this.debug,"undefined"!=typeof b&&b.remove()))},AblePlayer.prototype.setupInstance=function(){var b=new a.Deferred,c=b.promise();return this.$media.attr("id")?this.mediaId=this.$media.attr("id"):(this.mediaId="ableMediaId_"+this.ableIndex,this.$media.attr("id",this.mediaId)),this.setupInstancePlaylist(),b.resolve(),c},AblePlayer.prototype.setupInstancePlaylist=function(){var b=this;if(this.hasPlaylist=!1,a(".able-playlist").each(function(){if(a(this).data("player")===b.mediaId){b.hasPlaylist=!0,b.$playlist=a(this).find("li"),a(this).find("li").attr("tabindex","0"),b.playlistIndex=0;var c=a(this).data("embedded");"undefined"!=typeof c&&c!==!1?b.playlistEmbed=!0:b.playlistEmbed=!1}}),this.hasPlaylist&&this.loop&&this.media.removeAttribute("loop"),this.hasPlaylist&&this.playlistEmbed){var c=this.$playlist.parent();this.$playlistDom=c.clone(),c.remove()}},AblePlayer.prototype.recreatePlayer=function(){var a,b,c;return a=this,this.player?(this.loadCurrentPreferences(),this.injectPlayerCode(),this.initSignLanguage(),void this.setupTracks().then(function(){a.setupAltCaptions().then(function(){("external"===a.transcriptType||"popup"===a.transcriptType)&&a.captions.length<=1&&a.$transcriptLanguageSelect.parent().remove(),a.initDescription(),a.initDefaultCaption(),a.initPlayer().then(function(){for(a.initializing=!1,a.setMediaAttributes(),b=a.getPreferencesGroups(),c=0;c<b.length;c++)a.injectPrefsForm(b[c]);a.setupPopups(),a.updateCaption(),a.updateTranscript(),a.injectVTS(),a.chaptersDivLocation&&a.populateChaptersDiv(),a.showSearchResults()},function(){a.provideFallback()})})})):void console.log("Can't create player; no appropriate player type detected.")},AblePlayer.prototype.initPlayer=function(){var b,c=this;"html5"===this.player?b=this.initHtml5Player():"jw"===this.player?b=this.initJwPlayer():"youtube"===this.player&&(b=this.initYouTubePlayer());var d=new a.Deferred,e=d.promise();return b.done(function(){c.useFixedSeekInterval===!1&&c.setSeekInterval(),c.addControls(),c.addEventListeners(),c.Volume&&c.setMute(!1),c.setFullscreen(!1),c.setVolume(c.defaultVolume),c.refreshControls(),"html5"===c.player&&(c.isIOS()||c.startTime>0||c.autoplay)&&c.$media[0].load(),d.resolve()}).fail(function(){d.reject()}),e},AblePlayer.prototype.setSeekInterval=function(){var a;return this.seekInterval=this.defaultSeekInterval,a=this.useChapterTimes?this.chapterDuration:this.getDuration(),"undefined"==typeof a||1>a?void(this.seekIntervalCalculated=!1):(20>=a?this.seekInterval=5:30>=a?this.seekInterval=6:40>=a?this.seekInterval=8:100>=a?this.seekInterval=10:this.seekInterval=a/10,void(this.seekIntervalCalculated=!0))},AblePlayer.prototype.initDefaultCaption=function(){var a,b;if(a=this.usingYouTubeCaptions?this.ytCaptions:this.captions,a.length>0){for(b=0;b<a.length;b++)a[b].def===!0&&(this.captionLang=a[b].language,this.selectedCaptions=a[b]);if("undefined"==typeof this.captionLang)for(b=0;b<a.length;b++)a[b].language===this.lang&&(this.captionLang=a[b].language,this.selectedCaptions=a[b]);"undefined"==typeof this.captionLang&&(this.captionLang=a[0].language,this.selectedCaptions=a[0]),"undefined"!=typeof this.captionLang&&(this.$transcriptLanguageSelect&&this.$transcriptLanguageSelect.find("option[lang="+this.captionLang+"]").prop("selected",!0),this.syncTrackLanguages("init",this.captionLang))}},AblePlayer.prototype.initHtml5Player=function(){var b=new a.Deferred,c=b.promise();return b.resolve(),c},AblePlayer.prototype.initJwPlayer=function(){var b,c=this,d=new a.Deferred,e=d.promise();return a.ajax({async:!1,url:this.fallbackPath+"jwplayer.js",dataType:"script",success:function(e,f,g){c.fallbackJwKey&&a("head").append('<script type="text/javascript">jwplayer.key="'+c.fallbackJwKey+'";</script>'),c.jwId=c.mediaId+"_fallback",c.$mediaContainer.attr("id",c.jwId),b="audio"===c.mediaType?0:c.playerHeight;var h=[];a.each(c.$sources,function(b,c){h.push({file:a(c).attr("src")})});var i=c.fallbackPath+"jwplayer.flash.swf",j=c.fallbackPath+"jwplayer.html5.js";"video"===c.mediaType?c.jwPlayer=jwplayer(c.jwId).setup({playlist:[{image:c.$media.attr("poster"),sources:h}],flashplayer:i,html5player:j,controls:!1,volume:100*c.defaultVolume,width:"100%",fallback:!1,primary:"flash",wmode:"transparent"}):c.jwPlayer=jwplayer(c.jwId).setup({playlist:[{sources:h}],flashplayer:i,html5player:j,controls:!1,volume:100*this.defaultVolume,height:0,
3
- width:"100%",fallback:!1,primary:"flash"}),c.$media.remove(),d.resolve()},error:function(a,b,c){d.reject()}}),e},AblePlayer.prototype.setMediaAttributes=function(){this.$media.attr("tabindex",-1);var a=this.$media.get(0).textTracks;if(a)for(var b=0;b<a.length;)a[b].mode="disabled",b+=1},AblePlayer.prototype.getPlayer=function(){return this.youTubeId?"video"!==this.mediaType?null:"youtube":this.testFallback||(this.isUserAgent("msie 7")||this.isUserAgent("msie 8")||this.isUserAgent("msie 9"))&&"video"===this.mediaType||this.isIOS()&&(this.isIOS(4)||this.isIOS(5)||this.isIOS(6))?"jw"===this.fallback&&this.jwCanPlay()?"jw":null:this.media.canPlayType?"html5":null},AblePlayer.prototype.jwCanPlay=function(){var b,c,d;if(this.$sources.length>0)for(b=0;b<this.$sources.length;b++)if(c=this.$sources[b].getAttribute("type"),"video"===this.mediaType&&"video/mp4"===c||"audio"===this.mediaType&&"audio/mpeg"===c)return!0;if(a(".able-playlist")&&(d=a(".able-playlist").eq(0).find("li").eq(0),"audio"===this.mediaType)){if(d.attr("data-mp3"))return!0;if("video"===this.mediaType&&d.attr("data-mp4"))return!0}return!1}}(jQuery),function(a){AblePlayer.prototype.setCookie=function(a){Cookies.set("Able-Player",a,{expires:90})},AblePlayer.prototype.getCookie=function(){var a,b={preferences:{},sign:{},transcript:{}};try{a=Cookies.getJSON("Able-Player")}catch(c){Cookies.getJSON(b),a=b}return a?a:b},AblePlayer.prototype.updateCookie=function(a){var b,c,d,e,f,g;if(b=this.getCookie(),"transcript"===a||"sign"===a)"transcript"===a?(c=this.$transcriptArea,d=c.position(),"undefined"==typeof b.transcript&&(b.transcript={}),b.transcript.position=c.css("position"),b.transcript.zindex=c.css("z-index"),b.transcript.top=d.top,b.transcript.left=d.left,b.transcript.width=c.width(),b.transcript.height=c.height()):"sign"===a&&(c=this.$signWindow,d=c.position(),"undefined"==typeof b.sign&&(b.sign={}),b.sign.position=c.css("position"),b.sign.zindex=c.css("z-index"),b.sign.top=d.top,b.sign.left=d.left,b.sign.width=c.width(),b.sign.height=c.height());else for(e=this.getAvailablePreferences(),f=0;f<e.length;f++)g=e[f].name,g==a&&(b.preferences[g]=this[g]);this.setCookie(b)},AblePlayer.prototype.getPreferencesGroups=function(){if("video"===this.mediaType)return["captions","descriptions","keyboard","transcript"];if("audio"===this.mediaType){var a=[];return a.push("keyboard"),this.lyricsMode&&a.push("transcript"),a}},AblePlayer.prototype.getAvailablePreferences=function(){var a=[];return a.push({name:"prefAltKey",label:this.tt.prefAltKey,group:"keyboard","default":1}),a.push({name:"prefCtrlKey",label:this.tt.prefCtrlKey,group:"keyboard","default":1}),a.push({name:"prefShiftKey",label:this.tt.prefShiftKey,group:"keyboard","default":0}),a.push({name:"prefTranscript",label:null,group:"transcript","default":0}),a.push({name:"prefHighlight",label:this.tt.prefHighlight,group:"transcript","default":1}),a.push({name:"prefAutoScrollTranscript",label:null,group:"transcript","default":1}),a.push({name:"prefTabbable",label:this.tt.prefTabbable,group:"transcript","default":0}),"video"===this.mediaType&&(a.push({name:"prefCaptions",label:null,group:"captions","default":1}),a.push({name:"prefCaptionsPosition",label:this.tt.prefCaptionsPosition,group:"captions","default":this.defaultCaptionsPosition}),a.push({name:"prefCaptionsFont",label:this.tt.prefCaptionsFont,group:"captions","default":this.tt.sans}),a.push({name:"prefCaptionsSize",label:this.tt.prefCaptionsSize,group:"captions","default":"100%"}),a.push({name:"prefCaptionsColor",label:this.tt.prefCaptionsColor,group:"captions","default":"white"}),a.push({name:"prefCaptionsBGColor",label:this.tt.prefCaptionsBGColor,group:"captions","default":"black"}),a.push({name:"prefCaptionsOpacity",label:this.tt.prefCaptionsOpacity,group:"captions","default":"100%"}),a.push({name:"prefDesc",label:null,group:"descriptions","default":0}),a.push({name:"prefDescFormat",label:this.tt.prefDescFormat,group:"descriptions","default":"video"}),a.push({name:"prefDescPause",label:this.tt.prefDescPause,group:"descriptions","default":0}),a.push({name:"prefVisibleDesc",label:this.tt.prefVisibleDesc,group:"descriptions","default":1}),a.push({name:"prefSign",label:null,group:null,"default":0})),a},AblePlayer.prototype.loadCurrentPreferences=function(){for(var a=this.getAvailablePreferences(),b=this.getCookie(),c=0;c<a.length;c++){var d=a[c].name,e=a[c]["default"];void 0!==b.preferences[d]?this[d]=b.preferences[d]:(b.preferences[d]=e,this[d]=e)}this.setCookie(b)},AblePlayer.prototype.injectPrefsForm=function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z;d=this,c=this.getAvailablePreferences(),e=a("<div>",{"class":"able-prefs-form "});var $="able-prefs-form-"+b;if(e.addClass($),"captions"==b)f=this.tt.prefTitleCaptions,g=this.tt.prefIntroCaptions,h=a("<p>",{text:g}),e.append(h);else if("descriptions"==b){f=this.tt.prefTitleDescriptions;var h=a("<p>",{text:this.tt.prefIntroDescription1}),_=a("<ul>"),aa=a("<li>",{text:this.tt.prefDescFormatOption1}),ba=a("<li>",{text:this.tt.prefDescFormatOption2});_.append(aa,ba),this.hasOpenDesc&&this.hasClosedDesc?(Q=this.tt.prefIntroDescription2+" ",Q+="<strong>"+this.tt.prefDescFormatOption1b+"</strong>",Q+=" <em>"+this.tt.and+"</em> <strong>"+this.tt.prefDescFormatOption2b+"</strong>."):this.hasOpenDesc?(Q=this.tt.prefIntroDescription2,Q+=" <strong>"+this.tt.prefDescFormatOption1b+"</strong>."):this.hasClosedDesc?(Q=this.tt.prefIntroDescription2,Q+=" <strong>"+this.tt.prefDescFormatOption2b+"</strong>."):Q=this.tt.prefIntroDescriptionNone,i=a("<p>",{html:Q}),j=this.tt.prefIntroDescription3,(this.hasOpenDesc||this.hasClosedDesc)&&(j+=" "+this.tt.prefIntroDescription4),k=a("<p>",{text:j}),e.append(h,_,i,k)}else"keyboard"==b?(f=this.tt.prefTitleKeyboard,g=this.tt.prefIntroKeyboard1,g+=" "+this.tt.prefIntroKeyboard2,g+=" "+this.tt.prefIntroKeyboard3,h=a("<p>",{text:g}),e.append(h)):"transcript"==b&&(f=this.tt.prefTitleTranscript,g=this.tt.prefIntroTranscript,h=a("<p>",{text:g}),e.append(h));for("descriptions"===b?(q=a("<fieldset>"),o="able-prefs-"+b+"1",p=this.mediaId+"-prefs-"+b+"1",q.addClass(o).attr("id",p),r=a("<legend>"+this.tt.prefDescFormat+"</legend>"),q.append(r),s=a("<fieldset>"),o="able-prefs-"+b+"2",p=this.mediaId+"-prefs-"+b+"2",s.addClass(o).attr("id",p),t=a("<legend>"+this.tt.prefHeadingTextDescription+"</legend>"),s.append(t)):(n=a("<fieldset>"),o="able-prefs-"+b,p=this.mediaId+"-prefs-"+b,n.addClass(o).attr("id",p),"keyboard"===b&&(u=a("<legend>"+this.tt.prefHeadingKeyboard1+"</legend>"),n.append(u))),l=0;l<c.length;l++)if(c[l].group==b&&c[l].label){if(v=c[l].name,x="able-"+v,y=this.mediaId+"_"+v,"prefDescFormat"!==v&&(w=a("<div>").addClass(x)),"prefDescFormat"==v)B=a("<div>"),C=y+"_1",E=a("<label>").attr("for",C).text(this.capitalizeFirstLetter(this.tt.prefDescFormatOption1)),D=a("<input>",{type:"radio",name:v,id:C,value:"video"}),"video"===this.prefDescFormat&&D.prop("checked",!0),B.append(D,E),F=a("<div>"),G=y+"_2",I=a("<label>").attr("for",G).text(this.capitalizeFirstLetter(this.tt.prefDescFormatOption2)),H=a("<input>",{type:"radio",name:v,id:G,value:"text"}),"text"===this.prefDescFormat&&H.prop("checked",!0),F.append(H,I);else if("captions"===b){for(z=a('<label for="'+y+'"> '+c[l].label+"</label>"),A=a("<select>",{name:v,id:y}),"prefCaptions"!==v&&"prefCaptionsStyle"!==v&&A.change(function(){N=a(this).attr("name"),d.stylizeCaptions(d.$sampleCapsDiv,N)}),J=this.getCaptionsOptions(v),m=0;m<J.length;m++)"prefCaptionsPosition"===v?(L=J[m],"overlay"===L?M=this.tt.captionsPositionOverlay:"below"===L&&(L=J[m],M=this.tt.captionsPositionBelow)):"prefCaptionsColor"===v||"prefCaptionsBGColor"===v?(L=J[m][0],M=J[m][1]):"prefCaptionsOpacity"===v?(L=J[m],M=J[m],"0%"===L?M+=" ("+this.tt.transparent+")":"100%"===L&&(M+=" ("+this.tt.solid+")")):(L=J[m],M=J[m]),K=a("<option>",{value:L,text:M}),this[v]===L&&K.prop("selected",!0),A.append(K);w.append(z,A)}else z=a('<label for="'+y+'"> '+c[l].label+"</label>"),A=a("<input>",{type:"checkbox",name:v,id:y,value:"true"}),1===this[v]&&A.prop("checked",!0),"keyboard"===b&&A.change(function(){N=a(this).attr("name"),"prefAltKey"===N?(O=".able-modkey-alt",P=d.tt.prefAltKey+" + "):"prefCtrlKey"===N?(O=".able-modkey-ctrl",P=d.tt.prefCtrlKey+" + "):"prefShiftKey"===N&&(O=".able-modkey-shift",P=d.tt.prefShiftKey+" + "),a(this).is(":checked")?a(O).text(P):a(O).text("")}),w.append(A,z);"descriptions"===b?"prefDescFormat"===v?q.append(B,F):s.append(w):n.append(w)}if("descriptions"===b?e.append(q,s):e.append(n),"captions"===b)"video"===this.mediaType&&(this.$sampleCapsDiv=a("<div>",{"class":"able-captions-sample"}).text(this.tt.sampleCaptionText),e.append(this.$sampleCapsDiv),this.stylizeCaptions(this.$sampleCapsDiv));else if("keyboard"===b){for(R=a("<h2>",{text:this.tt.prefHeadingKeyboard2}),S=a("<ul>"),T=[],U=[],l=0;l<this.controls.length;l++)"play"===this.controls[l]?(T.push(this.tt.play+"/"+this.tt.pause),U.push("p</span> <em>"+this.tt.or+'</em> <span class="able-help-modifiers"> '+this.tt.spacebar)):"restart"===this.controls[l]?(T.push(this.tt.restart),U.push("s")):"rewind"===this.controls[l]?(T.push(this.tt.rewind),U.push("r")):"forward"===this.controls[l]?(T.push(this.tt.forward),U.push("f")):"volume"===this.controls[l]?(T.push(this.tt.volume),U.push("v</span> <em>"+this.tt.or+'</em> <span class="able-modkey">1-9'),T.push(this.tt.mute+"/"+this.tt.unmute),U.push("m")):"captions"===this.controls[l]?(this.captions.length>1?T.push(this.tt.captions):this.captionsOn?T.push(this.tt.hideCaptions):T.push(this.tt.showCaptions),U.push("c")):"descriptions"===this.controls[l]?(this.descOn?T.push(this.tt.turnOffDescriptions):T.push(this.tt.turnOnDescriptions),U.push("d")):"prefs"===this.controls[l]?(T.push(this.tt.preferences),U.push("e")):"help"===this.controls[l]&&(T.push(this.tt.help),U.push("h"));for(l=0;l<U.length;l++)V='<span class="able-modkey-alt">',1===this.prefAltKey&&(V+=this.tt.prefAltKey+" + "),V+="</span>",V+='<span class="able-modkey-ctrl">',1===this.prefCtrlKey&&(V+=this.tt.prefCtrlKey+" + "),V+="</span>",V+='<span class="able-modkey-shift">',1===this.prefShiftKey&&(V+=this.tt.prefShiftKey+" + "),V+="</span>",V+='<span class="able-modkey">'+U[l]+"</span>",V+=" = "+T[l],W=a("<li>",{html:V}),S.append(W);V='<span class="able-modkey">'+this.tt.escapeKey+"</span>",V+=" = "+this.tt.escapeKeyFunction,W=a("<li>",{html:V}),S.append(W),e.append(R,S)}a("body").append(e),X=new AccessibleDialog(e,this.$prefsButton,"dialog",f,h,d.tt.closeButtonLabel,"32em"),e.append("<hr>"),Y=a('<button class="modal-button">'+this.tt.save+"</button>"),Z=a('<button class="modal-button">'+this.tt.cancel+"</button>"),Y.click(function(){X.hide(),d.savePrefsFromForm()}),Z.click(function(){X.hide(),d.resetPrefsForm()}),e.append(Y),e.append(Z),"captions"===b?this.captionPrefsDialog=X:"descriptions"===b?this.descPrefsDialog=X:"keyboard"===b?this.keyboardPrefsDialog=X:"transcript"===b&&(this.transcriptPrefsDialog=X),a("div.able-prefs-form button.modalCloseButton").click(function(){d.resetPrefsForm()}),a("div.able-prefs-form").keydown(function(a){27===a.which&&d.resetPrefsForm()})},AblePlayer.prototype.resetPrefsForm=function(){var b,c,d,e,f;for(b=this,c=this.getCookie(),d=this.getAvailablePreferences(),e=0;e<d.length;e++)f=d[e].name,"prefDescFormat"===f?"text"===this[f]?a('input[value="text"]').prop("checked",!0):a('input[value="video"]').prop("checked",!0):-1!==f.indexOf("Captions")&&"prefCaptions"!==f?a('select[name="'+f+'"]').val(c.preferences[f]):1===this[f]?a('input[name="'+f+'"]').prop("checked",!0):a('input[name="'+f+'"]').prop("checked",!1);this.stylizeCaptions(this.$sampleCapsDiv)},AblePlayer.prototype.savePrefsFromForm=function(){var b,c,d,e,f;b=0,c=0,d=!1;for(var g=this.getCookie(),h=this.getAvailablePreferences(),i=0;i<h.length;i++)if(h[i].label){var j=h[i].name;"prefDescFormat"==j?(this.prefDescFormat=a('input[name="'+j+'"]:checked').val(),this.prefDescFormat!==g.preferences.prefDescFormat&&(g.preferences.prefDescFormat=this.prefDescFormat,b++)):-1!==j.indexOf("Captions")&&"prefCaptions"!==j?(f=a('select[name="'+j+'"]').val(),g.preferences[j]!==f&&(g.preferences[j]=f,this[j]=f,b++,c++),"prefCaptionsSize"===j&&(d=!0,e=f)):a('input[name="'+j+'"]').is(":checked")?(g.preferences[j]=1,1===this[j]||(this[j]=1,b++)):(g.preferences[j]=0,1===this[j]&&(this[j]=0,b++))}b>0?(this.setCookie(g),this.showAlert(this.tt.prefSuccess)):this.showAlert(this.tt.prefNoChange),"youtube"===this.player&&"undefined"!=typeof this.usingYouTubeCaptions&&this.usingYouTubeCaptions&&d&&this.youTubePlayer.setOption(this.ytCaptionModule,"fontSize",this.translatePrefs("size",e,"youtube")),this.updatePrefs(),c>0&&(this.stylizeCaptions(this.$captionsDiv),"undefined"!=typeof this.$descDiv&&this.stylizeCaptions(this.$descDiv))},AblePlayer.prototype.updatePrefs=function(){var b;b=1===this.prefAltKey?"Alt + ":"",1===this.prefCtrlKey&&(b+="Control + "),1===this.prefShiftKey&&(b+="Shift + "),a(".able-help-modifiers").text(b),1===this.prefTabbable?a(".able-transcript span.able-transcript-seekpoint").attr("tabindex","0"):a(".able-transcript span.able-transcript-seekpoint").removeAttr("tabindex"),0===this.prefHighlight&&a(".able-transcript span").removeClass("able-highlight"),this.updateCaption(),this.refreshingDesc=!0,this.initDescription()},AblePlayer.prototype.usingModifierKeys=function(a){return(1!==this.prefAltKey||a.altKey)&&(1!==this.prefCtrlKey||a.ctrlKey)&&(1!==this.prefShiftKey||a.shiftKey)?!0:!1}}(jQuery),function(a){function b(a,b){for(var d=[],e=0;e<b.length;e++)d.push(c(a,b[e]));return d}function c(a,b){var c=b(a);if(null!==a.error)throw a.error;return c}function d(a,b){for(var c=0;c<b.length;c++)"\n"===b[c]?(a.column=1,a.line+=1):a.column+=1}function e(a,b){var c=a.text.substring(0,b);return d(a,c),a.text=a.text.substring(b),c}function f(a,b){var c,e=a.text.indexOf("\n");return-1===e?(c=a.text,d(a,c),a.text=""):(c=a.text.substring(0,e),d(a,c+"\n"),a.text=a.text.substring(e+1)),c}function g(a){var b=a.text.indexOf("\n");return-1===b?a.text:a.text.substring(0,b)}function h(a){b(a,[s,t]);var c=a.text[0];" "===c||" "===c||"\n"===c?b(a,[x,i,z,m]):a.error="WEBVTT signature not followed by whitespace."}function i(a){for(;;){var b=g(a);if(-1!==b.indexOf("-->"))return;if(0===b.length)return;var d=c(a,k);a.metadata[d[0]]=d[1],c(a,x)}}function j(a){var b=[],c=a.indexOf(" ");c>=0&&b.push(c);var d=a.indexOf(" ");d>=0&&b.push(d);var e=a.indexOf("\n");return e>=0&&b.push(e),Math.min.apply(null,b)}function k(a){var b=a.text.indexOf("\n"),c=e(a,b),d=c.indexOf(":");if(-1===d)return void(a.error="Missing colon.");var f=c.substring(0,d),g=c.substring(d+1);return[f,g]}function l(a){var b=j(a.text),c=e(a,b),d=c.indexOf(":");if(-1===d)return void(a.error="Missing colon.");var f=c.substring(0,d),g=c.substring(d+1);return[f,g]}function m(d){for(;;){var e=g(d);if(0!==e.indexOf("NOTE")||4!==e.length&&" "!==e[4]&&" "!==e[4])if(0===a.trim(e).length&&d.text.length>0)c(d,y);else{if(!(a.trim(e).length>0))return;c(d,n)}else b(d,[r,y])}}function n(a){var d,h,i=g(a);if(-1===i.indexOf("-->")&&(d=f(a),i=g(a),-1===i.indexOf("-->")))return h="Invalid WebVTT file: "+a.src+"\n",h+="Line: "+a.line+", ",h+="Column: "+a.column+"\n",h+="Expected cue timing for cueId '"+d+"' but found: "+i+"\n",void(console.warn||console.log);var j=b(a,[A,w,u,w,A]),k=j[0],l=j[4];if(k>=l)return void(a.error="Start time is not sooner than end time.");c(a,v);var m=c(a,o);e(a,1);var n=c(a,p);"undefined"==typeof d&&(d=a.cues.length+1),a.cues.push({id:d,start:k,end:l,settings:m,components:n})}function o(a){for(var b={};a.text.length>0&&"\n"!==a.text[0];){var d=c(a,l);b[d[0]]=d[1],c(a,v)}return b}function p(b){for(var d={type:"internal",tagName:"",value:"",classes:[],annotation:"",parent:null,children:[],language:""},f=d,h=[];b.text.length>0;){var i=g(b);if(-1!==i.indexOf("-->")||/^\s*$/.test(i))break;if(b.text.length>=2&&"\n"===b.text[0]&&"\n"===b.text[1]){e(b,2);break}var j=q(b);if("string"===j.type)f.children.push(j);else if("startTag"===j.type)j.type=j.tagName,j.parent=f,-1!==a.inArray(j.tagName,["i","b","u","ruby"])?(h.length>0&&(f.language=h[h.length-1]),f.children.push(j),f=j):"rt"===j.tagName&&"ruby"===f.tagName?(h.length>0&&(f.language=h[h.length-1]),f.children.push(j),f=j):"c"===j.tagName?(j.value=j.annotation,h.length>0&&(f.language=h[h.length-1]),f.children.push(j),f=j):"v"===j.tagName?(j.value=j.annotation,h.length>0&&(f.language=h[h.length-1]),f.children.push(j),f=j):"lang"===j.tagName&&(h.push(j.annotation),h.length>0&&(f.language=h[h.length-1]),f.children.push(j),f=j);else if("endTag"===j.type)j.tagName===f.type&&-1!==a.inArray(j.tagName,["c","i","b","u","ruby","rt","v"])?f=f.parent:"lang"===j.tagName&&"lang"===f.type?(f=f.parent,h.pop()):"ruby"===j.tagName&&"rt"===f.type&&(f=f.parent.parent);else if("timestampTag"===j.type){var k={text:j.value,error:null,metadata:{},cues:[],line:1,column:1};try{var l=c(k,A);0===k.text.length&&(j.value=l,f.push(j))}catch(m){}}}return d}function q(b){for(var c="data",d=[],f="",g={type:"",tagName:"",value:"",classes:[],annotation:"",children:[]};;){var h;if(h=b.text.length>=2&&"\n"===b.text[0]&&"\n"===b.text[1]?"":b.text.length>0?b.text[0]:"","data"===c)if("&"===h)f="&",c="escape";else if("<"===h){if(0!==d.length)return g.type="string",g.value=d.join(""),g;c="tag"}else{if(""===h)return{type:"string",value:d.join("")};d.push(h)}else if("escape"===c)if("&"===h)d.push(f),f="&";else if(h.match(/[0-9a-z]/))f+=h;else if(";"===h)"&amp"===f?d.push("&"):"&lt"===f?d.push("<"):"&gt"===f?d.push(">"):"&lrm"===f?d.push("‎"):"&rlm"===f?d.push("‏"):"&nbsp"===f?d.push(" "):(d.push(f),d.push(";")),c="data";else{if("<"===h||""===h)return d.push(f),g.type="string",g.value=d.join(""),g;if(" "===h||"\n"===h||"\f"===h||" "===h)return d.push(f),g.type="string",g.value=d.join(""),g;d.push(f),c="data"}else if("tag"===c)if(" "===h||"\n"===h||"\f"===h||" "===h)c="startTagAnnotation";else if("."===h)c="startTagClass";else if("/"===h)c="endTag";else if(h.match("[0-9]"))c="timestampTag",d.push(h);else{if(">"===h){e(b,1);break}if(""===h)return g.tagName="",g.type="startTag",g;d.push(h),c="startTag"}else if("startTag"===c)if(" "===h||"\f"===h||" "===h)c="startTagAnnotation";else if("\n"===h)f=h,c="startTagAnnotation";else if("."===h)c="startTagClass";else{if(">"===h)return e(b,1),g.tagName=d.join(""),g.type="startTag",g;if(""===h)return g.tagName=d.join(""),g.type="startTag",g;d.push(h)}else if("startTagClass"===c)if(" "===h||"\f"===h||" "===h)g.classes.push(f),f="",c="startTagAnnotation";else if("\n"===h)g.classes.push(f),f=h,c="startTagAnnotation";else if("."===h)g.classes.push(f),f="";else{if(">"===h)return e(b,1),g.classes.push(f),g.type="startTag",g.tagName=d.join(""),g;if(""===h)return g.classes.push(f),g.type="startTag",g.tagName=d.join(""),g;f+="c"}else if("startTagAnnotation"===c){if(">"===h)return e(b,1),f=a.trim(f).replace(/ +/," "),g.type="startTag",g.tagName=d.join(""),g.annotation=f,g;if(""===h)return f=a.trim(f).replace(/ +/," "),g.type="startTag",g.tagName=d.join(""),g.annotation=f,g;f+=h}else if("endTag"===c){if(">"===h)return e(b,1),g.type="endTag",g.tagName=d.join(""),g;if(""===h)return g.type="endTag",g.tagName=d.join(""),g;d.push(h)}else{if("timestampTag"!==c)throw"Unknown tokenState "+c;if(">"===h)return e(b,1),g.type="timestampTag",g.name=d.join(""),g;if(""===h)return g.type="timestampTag",g.name=d.join(""),g;d.push(h)}e(b,1)}}function r(b){var c=f(b);if(-1!==c.indexOf("-->"))return void(b.error="Invalid syntax: --> in NOTE line.");for(;;){var d=g(b);if(0===a.trim(d).length)return;if(-1!==d.indexOf("-->"))return void(b.error="Invalid syntax: --> in comment.");f(b)}}function s(a){"\ufeff"===a.text[0]&&e(a,1)}function t(a){"WEBVTT"===a.text.substring(0,6)?e(a,6):a.error="Invalid signature."}function u(a){a.text.length<3||"-->"!==a.text.substring(0,3)?a.error="Missing -->":e(a,3)}function v(a){for(;" "===a.text[0]||" "===a.text[0];)e(a,1)}function w(a){for(var b=0;" "===a.text[0]||" "===a.text[0];)e(a,1),b+=1;0===b&&(a.error="Missing space.")}function x(a){var b=a.text.indexOf("\n");-1===b?a.error="Missing EOL.":e(a,b+1)}function y(b){for(;b.text.length>0;){var c=g(b);if(0!==a.trim(c).length)break;f(b)}}function z(b){for(var c=0;b.text.length>0;){var d=g(b);if(0!==a.trim(d).length)break;f(b),c+=1}0===c&&(b.error="Missing empty line.")}function A(a){var b=j(a.text);if(-1===b)return void a.error("Missing timing.");var c=e(a,b),d=/((\d\d):)?((\d\d):)(\d\d).(\d\d\d)|(\d+).(\d\d\d)/.exec(c);if(!d)return void(a.error="Unable to parse timestamp");var f=0,g=d[2],h=d[4];if(h){if(parseInt(h,10)>59)return void(a.error="Invalid minute range");g&&(f+=3600*parseInt(g,10)),f+=60*parseInt(h,10);var i=d[5];if(parseInt(i,10)>59)return void(a.error="Invalid second range");f+=parseInt(i,10),f+=parseInt(d[6],10)/1e3}else f+=parseInt(d[7],10),f+=parseInt(d[8],10)/1e3;return f}AblePlayer.prototype.parseWebVTT=function(a,b){b=b.replace(/(\r\n|\n|\r)/g,"\n");var d={src:a,text:b,error:null,metadata:{},cues:[],line:1,column:1};try{c(d,h)}catch(e){var f="Invalid WebVTT file: "+d.src+"\n";f+="Line: "+d.line+", ",f+="Column: "+d.column+"\n",f+=e,console.warn||console.log}return d}}(jQuery),function(a){AblePlayer.prototype.injectPlayerCode=function(){var b,c;b=this,this.$mediaContainer=this.$media.wrap('<div class="able-media-container"></div>').parent(),this.$ableDiv=this.$mediaContainer.wrap('<div class="able"></div>').parent(),this.$ableWrapper=this.$ableDiv.wrap('<div class="able-wrapper"></div>').parent(),this.$ableWrapper.css({"max-width":this.playerMaxWidth+"px"}),this.injectOffscreenHeading(),"video"===this.mediaType&&("image"!=this.iconType&&"youtube"!==this.player&&this.injectBigPlayButton(),c=a("<div>",{"class":"able-vidcap-container"}),this.$vidcapContainer=this.$mediaContainer.wrap(c).parent()),this.injectPlayerControlArea(),this.injectTextDescriptionArea(),this.transcriptType&&("popup"===this.transcriptType||"external"===this.transcriptType?this.injectTranscriptArea():"manual"===this.transcriptType&&this.setupManualTranscript(),this.addTranscriptAreaEvents()),this.injectAlert(),this.injectPlaylist()},AblePlayer.prototype.injectOffscreenHeading=function(){var b;"0"==this.playerHeadingLevel||("undefined"==typeof this.playerHeadingLevel&&(this.playerHeadingLevel=this.getNextHeadingLevel(this.$ableDiv)),b="h"+this.playerHeadingLevel.toString(),this.$headingDiv=a("<"+b+">"),this.$ableDiv.prepend(this.$headingDiv),this.$headingDiv.addClass("able-offscreen"),this.$headingDiv.text(this.tt.playerHeading))},AblePlayer.prototype.injectBigPlayButton=function(){this.$bigPlayButton=a("<button>",{"class":"able-big-play-button icon-play","aria-hidden":!0,tabindex:-1});var b=this;this.$bigPlayButton.click(function(){b.handlePlay()}),this.$mediaContainer.append(this.$bigPlayButton)},AblePlayer.prototype.injectPlayerControlArea=function(){this.$playerDiv=a("<div>",{"class":"able-player",role:"region","aria-label":this.mediaType+" player"}),this.$playerDiv.addClass("able-"+this.mediaType),this.$nowPlayingDiv=a("<div>",{"class":"able-now-playing","aria-live":"assertive","aria-atomic":"true"}),this.$controllerDiv=a("<div>",{"class":"able-controller"}),this.$controllerDiv.addClass("able-"+this.iconColor+"-controls"),this.$statusBarDiv=a("<div>",{"class":"able-status-bar"}),this.$timer=a("<span>",{"class":"able-timer"}),this.$elapsedTimeContainer=a("<span>",{"class":"able-elapsedTime",text:"0:00"}),this.$durationContainer=a("<span>",{"class":"able-duration"}),this.$timer.append(this.$elapsedTimeContainer).append(this.$durationContainer),this.$speed=a("<span>",{"class":"able-speed","aria-live":"assertive"}).text(this.tt.speed+": 1x"),this.$status=a("<span>",{"class":"able-status","aria-live":"polite"}),this.$statusBarDiv.append(this.$timer,this.$speed,this.$status),this.$playerDiv.append(this.$nowPlayingDiv,this.$controllerDiv,this.$statusBarDiv),this.$ableDiv.append(this.$playerDiv)},AblePlayer.prototype.injectTextDescriptionArea=function(){this.$descDiv=a("<div>",{"class":"able-descriptions","aria-live":"assertive","aria-atomic":"true"}),this.$descDiv.hide(),this.$ableDiv.append(this.$descDiv)},AblePlayer.prototype.getDefaultWidth=function(a){return"transcript"===a?450:"sign"===a?400:void 0},AblePlayer.prototype.positionDraggableWindow=function(b,c){var d,e,f,g;d=this.getCookie(),"transcript"===b?(f=this.$transcriptArea,"undefined"!=typeof d.transcript&&(e=d.transcript)):"sign"===b&&(f=this.$signWindow,"undefined"!=typeof d.transcript&&(e=d.sign)),"undefined"==typeof e||a.isEmptyObject(e)?(g=this.getOptimumPosition(b,c),"undefined"==typeof c&&(c=this.getDefaultWidth(b)),f.css({position:g[0],width:c,"z-index":g[3]}),"absolute"===g[0]&&f.css({top:g[1]+"px",left:g[2]+"px"})):(f.css({position:e.position,width:e.width,"z-index":e.zindex}),"absolute"===e.position&&f.css({top:e.top,left:e.left}),this.updateZIndex(b))},AblePlayer.prototype.getOptimumPosition=function(b,c){var d,e,f,g,h,i,j,k,l;return"undefined"==typeof c&&(c=this.getDefaultWidth(b)),d=5,e=[],f=this.$ableDiv.width(),g=this.$ableDiv.height(),h=this.$ableDiv.offset(),i=h.top,j=h.left,k=a(window).width(),l=0,"transcript"===b?"undefined"!=typeof this.$signWindow&&this.$signWindow.is(":visible")&&(l=this.$signWindow.width()+d):"sign"===b&&"undefined"!=typeof this.$transcriptArea&&this.$transcriptArea.is(":visible")&&(l=this.$transcriptArea.width()+d),k-(j+f+d+l)>c?(e[0]="absolute",e[1]=0,e[2]=f+l+d):j>c+d?(e[0]="absolute",e[1]=0,e[2]=j-c-d):e[0]="relative",e},AblePlayer.prototype.injectPoster=function(b,c){var d,e,f;"youtube"===c?"undefined"!=typeof this.ytWidth?(e=this.ytWidth,f=this.ytHeight):"undefined"!=typeof this.playerMaxWidth?(e=this.playerMaxWidth,f=this.playerMaxHeight):"undefined"!=typeof this.playerWidth&&(e=this.playerWidth,f=this.playerHeight):"fallback"===c&&(e="100%",f="auto"),this.$media.attr("poster")&&(d=this.$media.attr("poster"),this.$posterImg=a("<img>",{"class":"able-poster",src:d,alt:"",role:"presentation",width:e,height:f}),b.append(this.$posterImg))},AblePlayer.prototype.injectAlert=function(){var b;this.$alertBox=a('<div role="alert"></div>'),this.$alertBox.addClass("able-alert"),this.$alertBox.hide(),this.$alertBox.appendTo(this.$ableDiv),b="audio"==this.mediaType?-10:Math.round(10*this.$mediaContainer.offset().top)/10,this.$alertBox.css({top:b+"px"}),this.$srAlertBox=a('<div role="alert"></div>'),this.$srAlertBox.addClass("able-screenreader-alert"),this.$srAlertBox.appendTo(this.$ableDiv)},AblePlayer.prototype.injectPlaylist=function(){if(this.playlistEmbed===!0){var a=this.$playlistDom.clone();a.insertBefore(this.$statusBarDiv),this.$playlist=a.find("li")}this.hasPlaylist&&0===this.$sources.length&&(this.initializing=!0,this.swapSource(0),this.$sources=this.$media.find("source"))},AblePlayer.prototype.createPopup=function(b,c){var d,e,f,g,h,i,j,k,l,m,j,n,o,p,q;if(d=this,e=a("<ul>",{id:this.mediaId+"-"+b+"-menu","class":"able-popup",role:"menu"}).hide(),"captions"===b&&e.addClass("able-popup-captions"),"prefs"===b)for(f=this.getPreferencesGroups(),g=0;g<f.length;g++)h=a("<li></li>",{role:"menuitem",tabindex:"-1"}),i=f[g],"captions"===i?h.text(this.tt.prefMenuCaptions):"descriptions"===i?h.text(this.tt.prefMenuDescriptions):"keyboard"===i?h.text(this.tt.prefMenuKeyboard):"transcript"===i&&h.text(this.tt.prefMenuTranscript),h.on("click",function(){j=a(this).text(),d.setFullscreen(!1),j===d.tt.prefMenuCaptions?d.captionPrefsDialog.show():j===d.tt.prefMenuDescriptions?d.descPrefsDialog.show():j===d.tt.prefMenuKeyboard?d.keyboardPrefsDialog.show():j===d.tt.prefMenuTranscript&&d.transcriptPrefsDialog.show(),d.closePopups()}),e.append(h);else if("captions"===b||"chapters"===b){for(k=!1,g=0;g<c.length;g++)l=c[g],h=a("<li></li>",{role:"menuitemradio",tabindex:"-1",lang:l.language}),l.def?(h.attr("aria-checked","true"),k=!0):h.attr("aria-checked","false"),"captions"==b||"ytCaptions"==b?(h.text(l.label),h.on("click",this.getCaptionClickFunction(l))):"chapters"==b&&(h.text(this.flattenCueForCaption(l)+" - "+this.formatSecondsAsColonTime(l.start)),h.on("click",this.getChapterClickFunction(l.start))),e.append(h);("captions"===b||"ytcaptions"===b)&&(h=a("<li></li>",{role:"menuitemradio",tabindex:"-1"}).text(this.tt.captionsOff),0===this.prefCaptions&&(h.attr("aria-checked","true"),k=!0),h.on("click",this.getCaptionOffFunction()),e.append(h))}else if("transcript-window"===b||"sign-window"===b)for(m=[],m.push({name:"move",label:this.tt.windowMove}),m.push({name:"resize",label:this.tt.windowResize}),m.push({name:"close",label:this.tt.windowClose}),g=0;g<m.length;g++)h=a("<li></li>",{role:"menuitem",tabindex:"-1","data-choice":m[g].name}),h.text(m[g].label),h.on("click mousedown",function(c){return c.stopPropagation(),0!==c.button?!1:void(d.windowMenuClickRegistered||d.finishingDrag||(d.windowMenuClickRegistered=!0,d.handleMenuChoice(b.substr(0,b.indexOf("-")),a(this).attr("data-choice"),c)))}),e.append(h);return"captions"!==b&&"ytcaptions"!==b||k?"chapters"===b&&(e.find('li:contains("'+this.defaultChapter+'")')?e.find('li:contains("'+this.defaultChapter+'")').attr("aria-checked","true").addClass("able-focus"):e.find("li").first().attr("aria-checked","true").addClass("able-focus")):e.find("li[lang="+this.captionLang+"]")?e.find("li[lang="+this.captionLang+"]").attr("aria-checked","true"):e.find("li").last().attr("aria-checked","true"),e.on("keydown",function(b){n=a(this).attr("id").split("-")[1],o=a(this).find("li:focus"),o.is(":first-child")?(p=a(this).find("li").last(),q=o.next()):o.is(":last-child")?(p=o.prev(),q=a(this).find("li").first()):(p=o.prev(),q=o.next()),9===b.which?b.shiftKey?(o.removeClass("able-focus"),p.focus().addClass("able-focus")):(o.removeClass("able-focus"),q.focus().addClass("able-focus")):40===b.which||39===b.which?(o.removeClass("able-focus"),q.focus().addClass("able-focus")):38==b.which||37===b.which?(o.removeClass("able-focus"),p.focus().addClass("able-focus")):32===b.which||13===b.which?o.click():27===b.which&&(o.removeClass("able-focus"),d.closePopups()),b.preventDefault()}),this.$controllerDiv.append(e),e},AblePlayer.prototype.closePopups=function(){this.chaptersPopup&&this.chaptersPopup.is(":visible")&&(this.chaptersPopup.hide(),this.$chaptersButton.attr("aria-expanded","false").focus()),this.captionsPopup&&this.captionsPopup.is(":visible")&&(this.captionsPopup.hide(),this.$ccButton.attr("aria-expanded","false").focus()),this.prefsPopup&&this.prefsPopup.is(":visible")&&(this.prefsPopup.hide(),this.prefsPopup.find("li").removeClass("able-focus").attr("tabindex","-1"),this.$prefsButton.attr("aria-expanded","false").focus()),this.$volumeSlider&&this.$volumeSlider.is(":visible")&&(this.$volumeSlider.hide().attr("aria-hidden","true"),this.$volumeAlert.text(this.tt.volumeSliderClosed),this.$volumeButton.attr("aria-expanded","false").focus()),this.$transcriptPopup&&this.$transcriptPopup.is(":visible")&&(this.$transcriptPopup.hide(),this.$transcriptPopup.find("li").removeClass("able-focus").attr("tabindex","-1"),this.$transcriptPopupButton.attr("aria-expanded","false").focus()),this.$signPopup&&this.$signPopup.is(":visible")&&(this.$signPopup.hide(),this.$signPopup.find("li").removeClass("able-focus").attr("tabindex","-1"),this.$signPopupButton.attr("aria-expanded","false").focus())},AblePlayer.prototype.setupPopups=function(a){var b,c,d,e,f;if(b=[],"undefined"==typeof a&&b.push("prefs"),("captions"===a||"undefined"==typeof a)&&("undefined"!=typeof this.ytCaptions?this.ytCaptions.length&&b.push("ytCaptions"):this.captions.length>0&&b.push("captions")),("chapters"===a||"undefined"==typeof a)&&this.chapters.length>0&&this.useChaptersButton&&b.push("chapters"),"transcript-window"===a&&"popup"===this.transcriptType&&b.push("transcript-window"),"sign-window"===a&&this.hasSignLanguage&&b.push("sign-window"),b.length>0){c=this;for(var e=0;e<b.length;e++){var g=b[e];if(d=!1,"prefs"==g)this.prefsPopup=this.createPopup("prefs");else if("captions"==g)"undefined"==typeof this.captionsPopup&&(this.captionsPopup=this.createPopup("captions",this.captions));else if("chapters"==g)f=this.selectedChapters?this.selectedChapters.cues:this.chapters.length>=1?this.chapters[0].cues:[],
4
- "undefined"==typeof this.chaptersPopup&&(this.chaptersPopup=this.createPopup("chapters",f));else if("ytCaptions"==g)"undefined"==typeof this.captionsPopup&&(this.captionsPopup=this.createPopup("captions",this.ytCaptions));else{if("transcript-window"==g)return this.createPopup("transcript-window");if("sign-window"==g)return this.createPopup("sign-window")}}}},AblePlayer.prototype.provideFallback=function(){var b,c,d,e,f,g,h,i,j,k;if(g=!1,b=a("<div>",{"class":"able-fallback",role:"alert"}),c="undefined"!=typeof this.playerMaxWidth?this.playerMaxWidth+"px":this.$media.attr("width")?parseInt(this.$media.attr("width"),10)+"px":"100%",b.css("max-width",c),d=this.$media.clone(),a("source, track",d).remove(),e=d.html().trim(),e.length?b.html(e):(f=this.tt.fallbackError1+" "+this.tt[this.mediaType]+". ",f+=this.tt.fallbackError2+":",e=a("<p>").text(f),b.html(e),g=!0),g){for(k=a("<ul>"),h=this.getSupportingBrowsers(),i=0;i<h.length;i++)j=a("<li>"),j.text(h[i].name+" "+h[i].minVersion+" "+this.tt.orHigher),k.append(j);b.append(k)}this.injectPoster(b,"fallback"),"undefined"!=typeof this.$ableWrapper?(this.$ableWrapper.before(b),this.$ableWrapper.remove()):"undefined"!=typeof this.$media?(this.$media.before(b),this.$media.remove()):a("body").prepend(b)},AblePlayer.prototype.getSupportingBrowsers=function(){var a=[];return a[0]={name:"Chrome",minVersion:"31"},a[1]={name:"Firefox",minVersion:"34"},a[2]={name:"Internet Explorer",minVersion:"10"},a[3]={name:"Opera",minVersion:"26"},a[4]={name:"Safari for Mac OS X",minVersion:"7.1"},a[5]={name:"Safari for iOS",minVersion:"7.1"},a[6]={name:"Android Browser",minVersion:"4.1"},a[7]={name:"Chrome for Android",minVersion:"40"},a},AblePlayer.prototype.calculateControlLayout=function(){var a={ul:["play","restart","rewind","forward"],ur:["seek"],bl:[],br:[]};this.browserSupportsVolume()?(this.volumeButton="volume-"+this.getVolumeName(this.volume),a.ur.push("volume")):this.volume=!1;var b=[],c=[];return this.isPlaybackRateSupported()&&(b.push("slower"),b.push("faster")),"video"===this.mediaType&&(this.hasCaptions&&b.push("captions"),this.hasSignLanguage&&b.push("sign"),(this.hasOpenDesc||this.hasClosedDesc)&&this.useDescriptionsButton&&b.push("descriptions")),"popup"===this.transcriptType&&b.push("transcript"),"video"===this.mediaType&&this.hasChapters&&this.useChaptersButton&&b.push("chapters"),a.br.push("preferences"),"video"===this.mediaType&&this.allowFullScreen&&"jw"!==this.player&&a.br.push("fullscreen"),b.length>0&&c.length>0?(a.bl=b,a.bl.push("pipe"),a.bl=a.bl.concat(c)):a.bl=b.concat(c),a},AblePlayer.prototype.addControls=function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y;for(b=this,c=100,d=this.calculateControlLayout(),e={0:"ul",1:"ur",2:"bl",3:"br"},o=this.mediaId+"-tooltip",this.$tooltipDiv=a("<div>",{id:o,"class":"able-tooltip"}).hide(),this.$controllerDiv.append(this.$tooltipDiv),f=0;3>=f;f++){for(h=d[e[f]],i=f%2===0?a("<div>",{"class":"able-left-controls"}):a("<div>",{"class":"able-right-controls"}),this.$controllerDiv.append(i),g=0;g<h.length;g++){if(p=h[g],"seek"===p)j=a('<div class="able-seekbar"></div>'),k=this.mediaType+" "+this.tt.seekbarLabel,i.append(j),l=this.getDuration(),0==l&&(l=100),this.seekBar=new AccessibleSlider(this.mediaType,j,"horizontal",c,0,l,this.seekInterval,k,"seekbar",!0,"visible");else if("pipe"===p)m=a("<span>",{tabindex:"-1","aria-hidden":"true"}),"font"===this.iconType?m.addClass("icon-pipe"):(n=a("<img>",{src:this.rootPath+"button-icons/"+this.iconColor+"/pipe.png",alt:"",role:"presentation"}),m.append(n)),i.append(m);else{if(r="volume"===p?this.rootPath+"button-icons/"+this.iconColor+"/"+this.volumeButton+".png":"fullscreen"===p?this.rootPath+"button-icons/"+this.iconColor+"/fullscreen-expand.png":"slower"===p?"animals"===this.speedIcons?this.rootPath+"button-icons/"+this.iconColor+"/turtle.png":this.rootPath+"button-icons/"+this.iconColor+"/slower.png":"faster"===p?"animals"===this.speedIcons?this.rootPath+"button-icons/"+this.iconColor+"/rabbit.png":this.rootPath+"button-icons/"+this.iconColor+"/faster.png":this.rootPath+"button-icons/"+this.iconColor+"/"+p+".png",s=this.getButtonTitle(p),t=a("<button>",{type:"button",tabindex:"0","aria-label":s,"class":"able-button-handler-"+p}),("volume"===p||"preferences"===p)&&("preferences"==p?y=this.mediaId+"-prefs-menu":"volume"===p&&(y=this.mediaId+"-volume-slider"),t.attr({"aria-controls":y,"aria-expanded":"false"})),"font"===this.iconType)u="volume"===p?"icon-"+this.volumeButton:"slower"===p?"animals"===this.speedIcons?"icon-turtle":"icon-slower":"faster"===p?"animals"===this.speedIcons?"icon-rabbit":"icon-faster":"icon-"+p,v=a("<span>",{"class":u,"aria-hidden":"true"}),t.append(v);else if("svg"===this.iconType){var z;z="volume"===p?this.getSvgData(this.volumeButton):"fullscreen"===p?this.getSvgData("fullscreen-expand"):"slower"===p?"animals"===this.speedIcons?this.getSvgData("turtle"):this.getSvgData("slower"):"faster"===p?"animals"===this.speedIcons?this.getSvgData("rabbit"):this.getSvgData("faster"):this.getSvgData(p),v=a("<svg>",{focusable:"false","aria-hidden":"true",viewBox:z[0]}),w=a("<path>",{d:z[1]}),v.append(w),t.html(v),t.html(t.html())}else q=a("<img>",{src:r,alt:"",role:"presentation"}),t.append(q);var A=a("<span>",{"class":"able-clipped"}).text(s);t.append(A),t.on("mouseenter focus",function(c){var d=a(this).attr("aria-label"),e=a(this).position(),f=a(this).height(),g=(a(this).width(),e.top-f-15),h=!0;if(a(this).closest("div").hasClass("able-right-controls")){if(a(this).closest("div").find("button:last").get(0)==a(this).get(0)){h=!1;var i=0,j={left:"",right:i+"px",top:g+"px"}}}else if(a(this).is(":first-child")){h=!1;var i=e.left,j={left:i+"px",right:"",top:g+"px"}}if(h)var k=AblePlayer.localGetElementById(t[0],o).text(d).width(),i=e.left-k/2,j={left:i+"px",right:"",top:g+"px"};var l=AblePlayer.localGetElementById(t[0],o).text(d).css(j);b.showTooltip(l),a(this).on("mouseleave blur",function(){AblePlayer.localGetElementById(t[0],o).text("").hide()})}),"captions"===p?this.prefCaptions&&1===this.prefCaptions||(x=this.captions.length>1?this.tt.captions:this.tt.showCaptions,t.addClass("buttonOff").attr("title",x)):"descriptions"===p&&(this.prefDesc&&1===this.prefDesc||t.addClass("buttonOff").attr("title",this.tt.turnOnDescriptions)),i.append(t),"play"===p?this.$playpauseButton=t:"captions"===p?this.$ccButton=t:"sign"===p?(this.$signButton=t,this.$signWindow.is(":visible")||this.$signButton.addClass("buttonOff")):"descriptions"===p?this.$descButton=t:"mute"===p?this.$muteButton=t:"transcript"===p?(this.$transcriptButton=t,this.$transcriptDiv.is(":visible")||this.$transcriptButton.addClass("buttonOff").attr("title",this.tt.showTranscript)):"fullscreen"===p?this.$fullscreenButton=t:"chapters"===p?this.$chaptersButton=t:"preferences"===p?this.$prefsButton=t:"volume"===p&&(this.$volumeButton=t)}"volume"===p&&this.addVolumeSlider(i)}f%2==1&&this.$controllerDiv.append('<div style="clear:both;"></div>')}"video"===this.mediaType&&("undefined"!=typeof this.$captionsDiv&&this.stylizeCaptions(this.$captionsDiv),"undefined"!=typeof this.$descDiv&&this.stylizeCaptions(this.$descDiv)),this.controls=[];for(var B in d)d.hasOwnProperty(B)&&(this.controls=this.controls.concat(d[B]));this.refreshControls()},AblePlayer.prototype.useSvg=function(){
5
- // @license Licensed under MIT license
6
- var a,b,c=Object.create(null),d=function(){clearTimeout(b),b=setTimeout(a,100)},e=function(){},f=function(){var a;window.addEventListener("resize",d,!1),window.addEventListener("orientationchange",d,!1),window.MutationObserver?(a=new MutationObserver(d),a.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),e=function(){try{a.disconnect(),window.removeEventListener("resize",d,!1),window.removeEventListener("orientationchange",d,!1)}catch(b){}}):(document.documentElement.addEventListener("DOMSubtreeModified",d,!1),e=function(){document.documentElement.removeEventListener("DOMSubtreeModified",d,!1),window.removeEventListener("resize",d,!1),window.removeEventListener("orientationchange",d,!1)})},g="http://www.w3.org/1999/xlink";a=function(){function a(){s-=1,0===s&&f()}function b(a){return function(){c[a.base]!==!0&&a.useEl.setAttributeNS(g,"xlink:href","#"+a.hash)}}function d(b){return function(){var c,d=document.body,e=document.createElement("x");b.onload=null,e.innerHTML=b.responseText,c=e.getElementsByTagName("svg")[0],c&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",d.insertBefore(c,d.firstChild)),a()}}function h(b){return function(){b.onerror=null,b.ontimeout=null,a()}}var i,j,k,l,m,n,o,p,q,r="",s=0;if(window.XMLHttpRequest&&(m=new XMLHttpRequest,m=void 0!==m.withCredentials?XMLHttpRequest:XDomainRequest||void 0),void 0!==m){for(e(),p=document.getElementsByTagName("use"),l=0;l<p.length;l+=1){try{j=p[l].getBoundingClientRect()}catch(t){j=!1}o=p[l].getAttributeNS(g,"href").split("#"),i=o[0],k=o[1],n=j&&0===j.left&&0===j.right&&0===j.top&&0===j.bottom,j&&0===j.width&&0===j.height&&!n?(r&&!i.length&&k&&!document.getElementById(k)&&(i=r),i.length&&(q=c[i],q!==!0&&setTimeout(b({useEl:p[l],base:i,hash:k}),0),void 0===q&&(q=new m,c[i]=q,q.onload=d(q),q.onerror=h(q),q.ontimeout=h(q),q.open("GET",i),q.send(),s+=1))):n||(void 0===c[i]?c[i]=!0:c[i].onload&&(c[i].abort(),c[i].onload=void 0,c[i]=!0))}p="",s+=1,a()}}},AblePlayer.prototype.swapSource=function(b){var c,d,e,f,g,h,i,j,k;for(this.$media.find("source").remove(),c=this.$playlist.eq(b),d=c.html(),c.attr("lang")&&(e=c.attr("lang")),f=[],g=0,"audio"===this.mediaType?(c.attr("data-mp3")&&(h=c.attr("data-mp3"),f[g]=new Array("audio/mpeg",h),g++),c.attr("data-webm")&&(f[g]=new Array("audio/webm",c.attr("data-webm")),g++),c.attr("data-webma")&&(f[g]=new Array("audio/webm",c.attr("data-webma")),g++),c.attr("data-ogg")&&(f[g]=new Array("audio/ogg",c.attr("data-ogg")),g++),c.attr("data-oga")&&(f[g]=new Array("audio/ogg",c.attr("data-oga")),g++),c.attr("data-wav")&&(f[g]=new Array("audio/wav",c.attr("data-wav")),g++)):"video"===this.mediaType&&(c.attr("data-mp4")&&(h=c.attr("data-mp4"),f[g]=new Array("video/mp4",h),g++),c.attr("data-webm")&&(f[g]=new Array("video/webm",c.attr("data-webm")),g++),c.attr("data-webmv")&&(f[g]=new Array("video/webm",c.attr("data-webmv")),g++),c.attr("data-ogg")&&(f[g]=new Array("video/ogg",c.attr("data-ogg")),g++),c.attr("data-ogv")&&(f[g]=new Array("video/ogg",c.attr("data-ogv")),g++)),i=0;i<f.length;i++)j=a("<source>",{type:f[i][0],src:f[i][1]}),this.$media.append(j);this.$playlist.removeClass("able-current"),c.addClass("able-current"),this.showNowPlaying===!0&&(k=a("<span>"),"undefined"!=typeof e&&k.attr("lang",e),k.html("<span>Selected track:</span>"+d),this.$nowPlayingDiv.html(k)),this.initializing?this.swappingSrc=!1:(this.swappingSrc=!0,"html5"===this.player?this.media.load():"jw"===this.player?this.jwPlayer.load({file:h}):"youtube"===this.player)},AblePlayer.prototype.getButtonTitle=function(a){var b;return"playpause"===a?this.tt.play:"play"===a?this.tt.play:"pause"===a?this.tt.pause:"restart"===a?this.tt.restart:"rewind"===a?this.tt.rewind:"forward"===a?this.tt.forward:"captions"===a?(b=this.usingYouTubeCaptions?this.ytCaptions.length:this.captions.length,b>1?this.tt.captions:this.captionsOn?this.tt.hideCaptions:this.tt.showCaptions):"descriptions"===a?this.descOn?this.tt.turnOffDescriptions:this.tt.turnOnDescriptions:"transcript"===a?this.$transcriptDiv.is(":visible")?this.tt.hideTranscript:this.tt.showTranscript:"chapters"===a?this.tt.chapters:"sign"===a?this.tt.sign:"volume"===a?this.tt.volume:"faster"===a?this.tt.faster:"slower"===a?this.tt.slower:"preferences"===a?this.tt.preferences:"help"!==a?(this.debug,a.charAt(0).toUpperCase()+a.slice(1)):void 0}}(jQuery),function(a){AblePlayer.prototype.setupTracks=function(){var b=this,c=new a.Deferred,d=c.promise();this.$tracks=this.$media.find("track"),this.captions=[],this.captionLabels=[],this.descriptions=[],this.chapters=[],this.meta=[],a("#able-vts").length?(this.vtsTracks=[],this.hasVts=!0):this.hasVts=!1;for(var e=[],f=0;f<this.$tracks.length;f++){var g=this.$tracks[f],h=g.getAttribute("kind"),i=g.getAttribute("src");g.getAttribute("default");if(i){var j=this.loadTextObject(i);e.push(j),j.then(function(a,c,d,e){var d=a.getAttribute("srclang")||b.lang,e=a.getAttribute("label")||b.getLanguageName(d);return function(f,g){var h=g;b.useTtml&&(f.endsWith(".xml")||g.startsWith("<?xml"))&&(h=b.ttml2webvtt(g)),b.hasVts&&b.setupVtsTracks(c,d,e,f,h);var i=b.parseWebVTT(f,h).cues;"captions"===c||"subtitles"===c?b.setupCaptions(a,i,d,e):"descriptions"===c?b.setupDescriptions(a,i,d):"chapters"===c?b.setupChapters(a,i,d):"metadata"===c&&b.setupMetadata(a,i)}}(g,h))}}return a.when.apply(a,e).then(function(){c.resolve()}),d},AblePlayer.prototype.setupCaptions=function(b,c,d,e){if(this.hasCaptions=!0,"string"==typeof b.getAttribute("default")){var f=!0;b.removeAttribute("default")}else var f=!1;if("video"===this.mediaType&&(this.$captionsDiv||(this.$captionsDiv=a("<div>",{"class":"able-captions"}),this.$captionsWrapper=a("<div>",{"class":"able-captions-wrapper","aria-hidden":"true"}).hide(),"below"===this.prefCaptionsPosition?this.$captionsWrapper.addClass("able-captions-below"):this.$captionsWrapper.addClass("able-captions-overlay"),this.$captionsWrapper.append(this.$captionsDiv),this.$vidcapContainer.append(this.$captionsWrapper))),this.currentCaption=-1,1===this.prefCaptions?this.captionsOn=!0:this.captionsOn=!1,"external"===this.transcriptType||"popup"===this.transcriptType){this.$unknownTranscriptOption&&(this.$unknownTranscriptOption.remove(),this.$unknownTranscriptOption=null);var g=a("<option></option>",{value:d,lang:d}).text(e)}if("external"===this.transcriptType||"popup"===this.transcriptType)var h=this.$transcriptLanguageSelect.find("option");if(0===this.captions.length)this.captions.push({cues:c,language:d,label:e,def:f}),("external"===this.transcriptType||"popup"===this.transcriptType)&&(f&&g.prop("selected",!0),this.$transcriptLanguageSelect.append(g)),this.captionLabels.push(e);else{for(var i=!1,j=0;j<this.captions.length;j++){this.captionLabels[j];if(e.toLowerCase()<this.captionLabels[j].toLowerCase()){this.captions.splice(j,0,{cues:c,language:d,label:e,def:f}),("external"===this.transcriptType||"popup"===this.transcriptType)&&(f&&g.prop("selected",!0),g.insertBefore(h.eq(j))),this.captionLabels.splice(j,0,e),i=!0;break}}i||(this.captions.push({cues:c,language:d,label:e,def:f}),("external"===this.transcriptType||"popup"===this.transcriptType)&&(f&&g.prop("selected",!0),this.$transcriptLanguageSelect.append(g)),this.captionLabels.push(e))}("external"===this.transcriptType||"popup"===this.transcriptType)&&this.$transcriptLanguageSelect.find("option").length>1&&this.$transcriptLanguageSelect.prop("disabled",!1)},AblePlayer.prototype.setupDescriptions=function(a,b,c){this.hasClosedDesc=!0,this.currentDescription=-1,this.descriptions.push({cues:b,language:c})},AblePlayer.prototype.setupChapters=function(a,b,c){this.hasChapters=!0,this.chapters.push({cues:b,language:c})},AblePlayer.prototype.setupMetadata=function(b,c){"text"===this.metaType?this.metaDiv&&a("#"+this.metaDiv)&&(this.$metaDiv=a("#"+this.metaDiv),this.hasMeta=!0,this.meta=c):"selector"===this.metaType&&(this.hasMeta=!0,this.visibleSelectors=[],this.meta=c)},AblePlayer.prototype.loadTextObject=function(b){var c=new a.Deferred,d=c.promise(),e=this,f=a("<div>",{style:"display:none"});return f.load(b,function(a,d,g){"error"===d?(e.debug,c.fail()):c.resolve(b,a),f.remove()}),d},AblePlayer.prototype.setupAltCaptions=function(){var b=new a.Deferred,c=b.promise();return 0===this.captions.length&&"youtube"===this.player&&"undefined"!=typeof youTubeDataAPIKey?this.setupYouTubeCaptions().done(function(){b.resolve()}):b.resolve(),c}}(jQuery),function(a){AblePlayer.prototype.initYouTubePlayer=function(){var b,c,d,e;return b=this,c=new a.Deferred,d=c.promise(),e=this.youTubeDescId&&this.prefDesc?this.youTubeDescId:this.youTubeId,this.activeYouTubeId=e,AblePlayer.youtubeIframeAPIReady?this.finalizeYoutubeInit().then(function(){c.resolve()}):(AblePlayer.loadingYoutubeIframeAPI||a.getScript("https://www.youtube.com/iframe_api").fail(function(){c.fail()}),a("body").on("youtubeIframeAPIReady",function(){b.finalizeYoutubeInit().then(function(){c.resolve()})})),d},AblePlayer.prototype.finalizeYoutubeInit=function(){var b,c,d,e,f,g;return b=new a.Deferred,c=b.promise(),d=this,e=this.mediaId+"_youtube",this.$mediaContainer.prepend(a("<div>").attr("id",e)),this.youTubeCaptionsReady=!1,d.captions.length?(f=0,this.usingYouTubeCaptions=!1):f=this.captionsOn?1:0,g=this.getYouTubeDimensions(this.activeYouTubeId,e),g?(this.ytWidth=g[0],this.ytHeight=g[1],this.aspectRatio=d.ytWidth/d.ytHeight):(this.ytWidth=null,this.ytHeight=null),this.youTubePlayer=new YT.Player(e,{videoId:this.activeYouTubeId,host:this.youTubeNoCookie?"https://www.youtube-nocookie.com":"https://www.youtube.com",width:this.ytWidth,height:this.ytHeight,playerVars:{autoplay:0,enablejsapi:1,disableKb:1,playsinline:this.playsInline,start:this.startTime,controls:0,cc_load_policy:f,hl:this.lang,modestbranding:1,rel:0,html5:1,iv_load_policy:3},events:{onReady:function(){d.swappingSrc&&(d.swappingSrc=!1,d.playing&&d.playMedia()),"undefined"==typeof d.aspectRatio&&d.resizeYouTubePlayer(d.activeYouTubeId,e),b.resolve()},onError:function(a){b.fail()},onStateChange:function(a){var b=d.getPlayerState(a.data);"playing"===b?(d.playing=!0,d.startedPlaying=!0):d.playing=!1,d.stoppingYouTube&&"paused"===b&&("undefined"!=typeof d.$posterImg&&d.$posterImg.show(),d.stoppingYouTube=!1,d.seeking=!1,d.playing=!1)},onPlaybackQualityChange:function(){},onApiChange:function(a){d.initYouTubeCaptionModule()}}}),d.injectPoster(d.$mediaContainer,"youtube"),d.$media.remove(),c},AblePlayer.prototype.getYouTubeDimensions=function(b,c){var d,e,f,g;return d=[],"undefined"!=typeof this.playerMaxWidth?(d[0]=this.playerMaxWidth,"undefined"!=typeof this.playerMaxHeight&&(d[1]=this.playerMaxHeight),d):"undefined"!=typeof a("#"+c)&&(e=a("#"+c),f=e.width(),g=e.height(),f>0&&g>0)?(d[0]=f,d[1]=g,d):!1},AblePlayer.prototype.resizeYouTubePlayer=function(a,b){var c,d,e;"undefined"!=typeof this.aspectRatio?this.restoringAfterFullScreen?(this.youTubePlayer&&this.youTubePlayer.setSize(this.ytWidth,this.ytHeight),this.restoringAfterFullScreen=!1):(d=this.$ableWrapper.parent().width(),e=Math.round(d/this.aspectRatio),this.$ableWrapper.css({"max-width":d+"px",width:""}),this.youTubePlayer.setSize(d,e),this.isFullscreen()?this.youTubePlayer.setSize(d,e):this.youTubePlayer.setSize(this.ytWidth,this.ytHeight)):(c=this.getYouTubeDimensions(a,b),c&&(d=c[0],e=c[1],d>0&&e>0&&(this.aspectRatio=d/e,this.ytWidth=d,this.ytHeight=e,d!==this.$ableWrapper.width()&&(d=this.$ableWrapper.width(),e=Math.round(d/this.aspectRatio),this.youTubePlayer&&this.youTubePlayer.setSize(d,e)))))},AblePlayer.prototype.setupYouTubeCaptions=function(){var b,c,d=new a.Deferred,e=d.promise();return b=this,this.ytCaptions=[],c=this.youTubeDescId&&this.prefDesc?this.youTubeDescId:this.youTubeId,a.doWhen({when:function(){return googleApiReady},interval:100,attempts:1e3}).done(function(){b.getYouTubeCaptionData(c).done(function(){d.resolve()})}).fail(function(){}),e},AblePlayer.prototype.getYouTubeCaptionData=function(b){var c,d,e,f,g,h,i,j,k=new a.Deferred,l=k.promise();return c=this,gapi.client.setApiKey(youTubeDataAPIKey),gapi.client.load("youtube","v3").then(function(){var a=gapi.client.youtube.captions.list({part:"id, snippet",videoId:b});a.then(function(a){if(a.result.items.length){for(c.hasCaptions=!0,c.usingYouTubeCaptions=!0,1===c.prefCaptions?c.captionsOn=!0:c.captionsOn=!1,d=0;d<a.result.items.length;d++)e=a.result.items[d].id,g=a.result.items[d].snippet.name,f=a.result.items[d].snippet.language,h=a.result.items[d].snippet.trackKind,i=a.result.items[d].snippet.isDraft,"ASR"===h||i||(""===g&&(g=c.getLanguageName(f)),j=f===c.lang?!0:!1,c.ytCaptions.push({language:f,label:g,def:j}));c.setupPopups("captions"),k.resolve()}else c.hasCaptions=!1,c.usingYouTubeCaptions=!1,k.resolve()},function(a){})}),l},AblePlayer.prototype.initYouTubeCaptionModule=function(){var a;if(a=this.youTubePlayer.getOptions(),a.length){for(var b=0;b<a.length;b++){if("cc"==a[b]){this.ytCaptionModule="cc",this.hasCaptions||(this.hasCaptions=!0,this.usingYouTubeCaptions=!0);break}if("captions"==a[b]){this.ytCaptionModule="captions",this.hasCaptions||(this.hasCaptions=!0,this.usingYouTubeCaptions=!0);break}}"undefined"!=typeof this.ytCaptionModule&&(this.usingYouTubeCaptions?(this.youTubePlayer.setOption(this.ytCaptionModule,"track",{languageCode:this.captionLang}),this.youTubePlayer.setOption(this.ytCaptionModule,"fontSize",this.translatePrefs("size",this.prefCaptionsSize,"youtube"))):this.youTubePlayer.unloadModule(this.ytCaptionModule))}else this.hasCaptions=!1,this.usingYouTubeCaptions=!1;this.refreshControls()}}(jQuery),function(a){window.AccessibleSlider=function(b,c,d,e,f,g,h,i,j,k,l){var m;m=this,this.position=0,this.tracking=!1,this.trackDevice=null,this.keyTrackPosition=0,this.lastTrackPosition=0,this.nextStep=1,this.inertiaCount=0,this.bodyDiv=a(c),k&&(this.loadedDiv=a("<div></div>"),this.playedDiv=a("<div></div>")),this.seekHead=a("<div>",{orientation:d,"class":"able-"+j+"-head"}),"visible"===l?this.seekHead.attr("tabindex","0"):this.seekHead.attr("tabindex","-1"),this.seekHead.attr({role:"slider","aria-label":i,"aria-valuemin":f,"aria-valuemax":g}),this.timeTooltip=a("<div>"),this.bodyDiv.append(this.timeTooltip),this.timeTooltip.attr("role","tooltip"),this.timeTooltip.addClass("able-tooltip"),this.timeTooltip.hide(),this.bodyDiv.append(this.loadedDiv),this.bodyDiv.append(this.playedDiv),this.bodyDiv.append(this.seekHead),this.bodyDiv.wrap("<div></div>"),this.wrapperDiv=this.bodyDiv.parent(),"horizontal"===d?(this.wrapperDiv.width(e),this.loadedDiv.width(0)):(this.wrapperDiv.height(e),this.loadedDiv.height(0)),this.wrapperDiv.addClass("able-"+j+"-wrapper"),k&&(this.loadedDiv.addClass("able-"+j+"-loaded"),this.playedDiv.width(0),this.playedDiv.addClass("able-"+j+"-played"),this.setDuration(g)),this.seekHead.hover(function(a){m.overHead=!0,m.refreshTooltip()},function(a){m.overHead=!1,!m.overBody&&m.tracking&&"mouse"===m.trackDevice&&m.stopTracking(m.pageXToPosition(a.pageX)),m.refreshTooltip()}),this.seekHead.mousemove(function(a){m.tracking&&"mouse"===m.trackDevice&&m.trackHeadAtPageX(a.pageX)}),this.seekHead.focus(function(a){m.overHead=!0,m.refreshTooltip()}),this.seekHead.blur(function(a){m.overHead=!1,m.refreshTooltip()}),this.bodyDiv.hover(function(){m.overBody=!0,m.refreshTooltip()},function(a){m.overBody=!1,m.overBodyMousePos=null,m.refreshTooltip(),!m.overHead&&m.tracking&&"mouse"===m.trackDevice&&m.stopTracking(m.pageXToPosition(a.pageX))}),this.bodyDiv.mousemove(function(a){m.overBodyMousePos={x:a.pageX,y:a.pageY},m.tracking&&"mouse"===m.trackDevice&&m.trackHeadAtPageX(a.pageX),m.refreshTooltip()}),this.bodyDiv.mousedown(function(a){m.startTracking("mouse",m.pageXToPosition(a.pageX)),m.trackHeadAtPageX(a.pageX),m.seekHead.is(":focus")||m.seekHead.focus(),a.preventDefault()}),this.seekHead.mousedown(function(a){m.startTracking("mouse",m.pageXToPosition(m.seekHead.offset()+m.seekHead.width()/2)),m.bodyDiv.is(":focus")||m.bodyDiv.focus(),a.preventDefault()}),this.bodyDiv.mouseup(function(a){m.tracking&&"mouse"===m.trackDevice&&m.stopTracking(m.pageXToPosition(a.pageX))}),this.seekHead.mouseup(function(a){m.tracking&&"mouse"===m.trackDevice&&m.stopTracking(m.pageXToPosition(a.pageX))}),this.bodyDiv.keydown(function(a){if(36===a.which)m.trackImmediatelyTo(0);else if(35===a.which)m.trackImmediatelyTo(m.duration);else if(37===a.which||40===a.which)m.arrowKeyDown(-1);else if(39===a.which||38===a.which)m.arrowKeyDown(1);else if(33===a.which&&h>0)m.arrowKeyDown(h);else{if(!(34===a.which&&h>0))return;m.arrowKeyDown(-h)}a.preventDefault()}),this.bodyDiv.keyup(function(a){a.which>=33&&a.which<=40&&(m.tracking&&"keyboard"===m.trackDevice&&m.stopTracking(m.keyTrackPosition),a.preventDefault())})},AccessibleSlider.prototype.arrowKeyDown=function(a){this.tracking&&"keyboard"===this.trackDevice?(this.keyTrackPosition=this.boundPos(this.keyTrackPosition+this.nextStep*a),this.inertiaCount+=1,20===this.inertiaCount&&(this.inertiaCount=0,this.nextStep*=2),this.trackHeadAtPosition(this.keyTrackPosition)):(this.nextStep=1,this.inertiaCount=0,this.keyTrackPosition=this.boundPos(this.position+this.nextStep*a),this.startTracking("keyboard",this.keyTrackPosition),this.trackHeadAtPosition(this.keyTrackPosition))},AccessibleSlider.prototype.pageXToPosition=function(a){var b=a-this.bodyDiv.offset().left,c=this.duration*(b/this.bodyDiv.width());return this.boundPos(c)},AccessibleSlider.prototype.boundPos=function(a){return Math.max(0,Math.min(a,this.duration))},AccessibleSlider.prototype.setDuration=function(a){a!==this.duration&&(this.duration=a,this.resetHeadLocation(),this.seekHead.attr("aria-valuemax",a))},AccessibleSlider.prototype.setWidth=function(a){this.wrapperDiv.width(a),this.resizeDivs(),this.resetHeadLocation()},AccessibleSlider.prototype.getWidth=function(){return this.wrapperDiv.width()},AccessibleSlider.prototype.resizeDivs=function(){this.playedDiv.width(this.bodyDiv.width()*(this.position/this.duration)),this.loadedDiv.width(this.bodyDiv.width()*this.buffered)},AccessibleSlider.prototype.resetHeadLocation=function(){var a=this.position/this.duration,b=this.bodyDiv.width()*a;this.seekHead.css("left",b-this.seekHead.width()/2),this.tracking&&this.stopTracking(this.position)},AccessibleSlider.prototype.setPosition=function(a,b){this.position=a,this.resetHeadLocation(),this.refreshTooltip(),this.resizeDivs(),this.updateAriaValues(a,b)},AccessibleSlider.prototype.setBuffered=function(a){this.buffered=a,this.redrawDivs},AccessibleSlider.prototype.startTracking=function(a,b){this.tracking||(this.trackDevice=a,this.tracking=!0,this.bodyDiv.trigger("startTracking",[b]))},AccessibleSlider.prototype.stopTracking=function(a){this.trackDevice=null,this.tracking=!1,this.bodyDiv.trigger("stopTracking",[a]),this.setPosition(a,!0)},AccessibleSlider.prototype.trackHeadAtPageX=function(a){var b=this.pageXToPosition(a),c=a-this.bodyDiv.offset().left-this.seekHead.width()/2;c=Math.max(0,Math.min(c,this.bodyDiv.width()-this.seekHead.width())),this.lastTrackPosition=b,this.seekHead.css("left",c),this.reportTrackAtPosition(b)},AccessibleSlider.prototype.trackHeadAtPosition=function(a){var b=a/this.duration,c=this.bodyDiv.width()*b;this.lastTrackPosition=a,this.seekHead.css("left",c-this.seekHead.width()/2),this.reportTrackAtPosition(a)},AccessibleSlider.prototype.reportTrackAtPosition=function(a){this.bodyDiv.trigger("tracking",[a]),this.updateAriaValues(a,!0)},AccessibleSlider.prototype.updateAriaValues=function(b,c){var d,e=Math.floor(b/3600),f=Math.floor(b%3600/60),g=Math.floor(b%60),h=1===e?"hour":"hours",i=1===f?"minute":"minutes",j=1===g?"second":"seconds";d=e>0?e+" "+h+", "+f+" "+i+", "+g+" "+j:f>0?f+" "+i+", "+g+" "+j:g+" "+j,this.liveAriaRegion||(this.liveAriaRegion=a("<span>",{"class":"able-offscreen","aria-live":"polite"}),this.wrapperDiv.append(this.liveAriaRegion)),c&&this.liveAriaRegion.text()!==d&&this.liveAriaRegion.text(d),this.seekHead.attr("aria-valuetext",d),this.seekHead.attr("aria-valuenow",Math.floor(b).toString())},AccessibleSlider.prototype.trackImmediatelyTo=function(a){this.startTracking("keyboard",a),this.trackHeadAtPosition(a),this.keyTrackPosition=a},AccessibleSlider.prototype.refreshTooltip=function(){this.overHead?(this.timeTooltip.show(),this.tracking?this.timeTooltip.text(this.positionToStr(this.lastTrackPosition)):this.timeTooltip.text(this.positionToStr(this.position)),this.setTooltipPosition(this.seekHead.position().left+this.seekHead.width()/2)):this.overBody&&this.overBodyMousePos?(this.timeTooltip.show(),this.timeTooltip.text(this.positionToStr(this.pageXToPosition(this.overBodyMousePos.x))),this.setTooltipPosition(this.overBodyMousePos.x-this.bodyDiv.offset().left)):this.timeTooltip.hide()},AccessibleSlider.prototype.setTooltipPosition=function(a){this.timeTooltip.css({left:a-this.timeTooltip.width()/2-10,bottom:this.seekHead.height()+10})},AccessibleSlider.prototype.positionToStr=function(a){var b=Math.floor(a/3600),c=Math.floor(a/60)%60,d=Math.floor(a%60);return 10>d&&(d="0"+d),b>0?(10>c&&(c="0"+c),b+":"+c+":"+d):c+":"+d}}(jQuery),function(a){AblePlayer.prototype.addVolumeSlider=function(b){var c,d,e,f,g,h;c=this,d=this.mediaId+"-volume-slider",e=this.mediaId+"-volume-help",this.volumeTrackHeight=50,this.volumeHeadHeight=7,this.volumeTickHeight=this.volumeTrackHeight/10,this.$volumeSlider=a("<div>",{id:d,"class":"able-volume-slider","aria-hidden":"true"}).hide(),this.$volumeSliderTooltip=a("<div>",{"class":"able-tooltip",role:"tooltip"}).hide(),this.$volumeSliderTrack=a("<div>",{"class":"able-volume-track"}),this.$volumeSliderTrackOn=a("<div>",{"class":"able-volume-track able-volume-track-on"}),this.$volumeSliderHead=a("<div>",{"class":"able-volume-head",role:"slider","aria-orientation":"vertical","aria-label":this.tt.volumeUpDown,"aria-valuemin":0,"aria-valuemax":10,"aria-valuenow":this.volume,tabindex:-1}),this.$volumeSliderTrack.append(this.$volumeSliderTrackOn,this.$volumeSliderHead),this.$volumeAlert=a("<div>",{"class":"able-offscreen","aria-live":"assertive","aria-atomic":"true"}),h=parseInt(c.volume)/10*100,this.$volumeHelp=a("<div>",{id:e,"class":"able-volume-help"}).text(h+"%, "+this.tt.volumeHelp),this.$volumeButton.attr({"aria-describedby":e}),this.$volumeSlider.append(this.$volumeSliderTooltip,this.$volumeSliderTrack,this.$volumeAlert,this.$volumeHelp),b.append(this.$volumeSlider),this.refreshVolumeSlider(this.volume),this.$volumeSliderHead.on("mousedown",function(b){b.preventDefault(),c.draggingVolume=!0,c.volumeHeadPositionTop=a(this).offset().top}),this.$mediaContainer.on("mouseover",function(a){"youtube"==c.player&&(c.draggingVolume=!1)}),a(document).on("mouseup",function(a){c.draggingVolume=!1}),a(document).on("mousemove",function(a){c.draggingVolume&&(f=a.pageX,g=a.pageY,c.moveVolumeHead(g))}),this.$volumeSliderHead.on("keydown",function(a){if(37===a.which||40===a.which)c.handleVolume("down");else if(39===a.which||38===a.which)c.handleVolume("up");else{if(27!==a.which&&13!==a.which)return;c.$volumeSlider.is(":visible")?c.hideVolumePopup():c.showVolumePopup()}a.preventDefault()})},AblePlayer.prototype.refreshVolumeSlider=function(a){var b,c;b=a/10*100,c=b+"%";var d,e,f;d=a*this.volumeTickHeight,e=this.volumeTrackHeight-d,f=e-this.volumeHeadHeight,this.$volumeSliderTrackOn.css({height:d+"px",top:e+"px"}),this.$volumeSliderHead.attr({"aria-valuenow":a,"aria-valuetext":c}),this.$volumeSliderHead.css({top:f+"px"}),this.$volumeAlert.text(b+"%")},AblePlayer.prototype.refreshVolumeButton=function(a){var b,c,d,e,f;b=this.getVolumeName(a),c=a/10*100,d=this.tt.volume+" "+c+"%","font"===this.iconType?(e="icon-volume-"+b,this.$volumeButton.find("span").first().removeClass().addClass(e),this.$volumeButton.find("span.able-clipped").text(d)):(f=this.imgPath+"volume-"+b+".png",this.$volumeButton.find("img").attr("src",f))},AblePlayer.prototype.moveVolumeHead=function(a){var b,c,d,e,b=this.volumeHeadPositionTop-a;if(Math.abs(b)>this.volumeTickHeight){if(c=b>0?"up":"down","up"==c&&10==this.volume)return;if("down"==c&&0==this.volume)return;d=Math.round(Math.abs(b)/this.volumeTickHeight),"up"==c?(e=this.volume+d,e>10&&(e=10)):(e=this.volume-d,0>e&&(e=0)),this.setVolume(e),this.refreshVolumeSlider(e),this.refreshVolumeButton(e),this.volumeHeadPositionTop=a}},AblePlayer.prototype.handleVolume=function(a){var b;return"undefined"==typeof a?void(this.$volumeSlider.is(":visible")?this.hideVolumePopup():this.showVolumePopup()):(a>=49&&57>=a?b=a-48:(b=this.getVolume(),"up"===a&&10>b?b+=1:"down"===a&&b>0&&(b-=1)),void(this.isMuted()&&b>0?this.setMute(!1):0===b?this.setMute(!0):(this.setVolume(b),this.refreshVolumeSlider(b),this.refreshVolumeButton(b))))},AblePlayer.prototype.handleMute=function(){this.isMuted()?this.setMute(!1):this.setMute(!0)},AblePlayer.prototype.showVolumePopup=function(){this.closePopups(),this.$tooltipDiv.hide(),this.$volumeSlider.show().attr("aria-hidden","false"),this.$volumeButton.attr("aria-expanded","true"),this.$volumeSliderHead.attr("tabindex","0").focus()},AblePlayer.prototype.hideVolumePopup=function(){this.$volumeSlider.hide().attr("aria-hidden","true"),this.$volumeSliderHead.attr("tabindex","-1"),this.$volumeButton.attr("aria-expanded","false").focus()},AblePlayer.prototype.isMuted=function(){return"html5"===this.player?this.media.muted:"jw"===this.player&&this.jwPlayer?this.jwPlayer.getMute():"youtube"===this.player?this.youTubePlayer.isMuted():void 0},AblePlayer.prototype.setMute=function(a){a?(this.lastVolume=this.volume,this.volume=0):"undefined"!=typeof this.lastVolume&&(this.volume=this.lastVolume),"html5"===this.player?this.media.muted=a:"jw"===this.player&&this.jwPlayer?this.jwPlayer.setMute(a):"youtube"===this.player&&(a?this.youTubePlayer.mute():this.youTubePlayer.unMute()),this.refreshVolumeSlider(this.volume),this.refreshVolumeButton(this.volume)},AblePlayer.prototype.setVolume=function(a){"html5"===this.player?(this.media.volume=a/10,this.hasSignLanguage&&this.signVideo&&(this.signVideo.volume=0)):"jw"===this.player&&this.jwPlayer?this.jwPlayer.setVolume(10*a):"youtube"===this.player&&(this.youTubePlayer.setVolume(10*a),this.volume=a),this.lastVolume=a},AblePlayer.prototype.getVolume=function(a){return"html5"===this.player?10*this.media.volume:"jw"===this.player&&this.jwPlayer?this.jwPlayer.getVolume()/10:"youtube"===this.player?this.youTubePlayer.getVolume()/10:void 0},AblePlayer.prototype.getVolumeName=function(a){return 0==a?"mute":10==a?"loud":5>a?"soft":"medium"}}(jQuery),function(a){var b="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";window.AccessibleDialog=function(c,d,e,f,g,h,i,j,k){this.title=f,this.closeButtonLabel=h,this.focusedElementBeforeModal=d,this.escapeHook=k,this.baseId=a(c).attr("id")||Math.floor(1e9*Math.random()).toString();var l=this,m=c;if(this.modal=m,m.css({width:i||"50%",top:j?"0":"5%"}),m.addClass("able-modal-dialog"),!j){var n=a("<button>",{"class":"modalCloseButton",title:l.closeButtonLabel,"aria-label":l.closeButtonLabel}).text("X");n.keydown(function(a){32===a.which&&l.hide()}).click(function(){l.hide()});var o=a("<h1></h1>");o.attr("id","modalTitle-"+this.baseId),o.css("text-align","center"),o.text(f),g.attr("id","modalDesc-"+this.baseId),m.attr({"aria-labelledby":"modalTitle-"+this.baseId,"aria-describedby":"modalDesc-"+this.baseId}),m.prepend(o),m.prepend(n)}m.attr({"aria-hidden":"true",role:e}),m.keydown(function(c){if(27===c.which)l.escapeHook?l.escapeHook(c,this):(l.hide(),c.preventDefault());else if(9===c.which){var d=m.find("*"),e=d.filter(b).filter(":visible");if(0===e.length)return;var f=a(":focus"),g=e.index(f);c.shiftKey?0===g&&(e.get(e.length-1).focus(),c.preventDefault()):g===e.length-1&&(e.get(0).focus(),c.preventDefault())}c.stopPropagation()}),a("body > *").not(".able-modal-overlay").not(".able-modal-dialog").attr("aria-hidden","false")},AccessibleDialog.prototype.show=function(){if(!this.overlay){var c=a("<div></div>").attr({"class":"able-modal-overlay",tabindex:"-1"});this.overlay=c,a("body").append(c),c.on("mousedown.accessibleModal",function(a){a.preventDefault()})}a("body > *").not(".able-modal-overlay").not(".able-modal-dialog").attr("aria-hidden","true"),this.overlay.css("display","block"),this.modal.css("display","block"),this.modal.attr({"aria-hidden":"false",tabindex:"-1"});var d=this.modal.find("*").filter(b).filter(":visible");0===d.length&&this.focusedElementBeforeModal.blur();var e=this;setTimeout(function(){e.modal.focus()},300)},AccessibleDialog.prototype.hide=function(){this.overlay&&this.overlay.css("display","none"),this.modal.css("display","none"),this.modal.attr("aria-hidden","true"),a("body > *").not(".able-modal-overlay").not(".able-modal-dialog").attr("aria-hidden","false"),this.focusedElementBeforeModal.focus()}}(jQuery),function(a){AblePlayer.prototype.getNextHeadingLevel=function(b){var c,d,e,f,g;return c=b.parents(),c.each(function(){return d=a(this).children(":header"),e=d.length,e?(f=d.eq(e-1).prop("tagName"),!1):void 0}),"undefined"==typeof f?g=1:(g=parseInt(f[1]),g+=1,g>6&&(g=6)),g},AblePlayer.prototype.countProperties=function(a){var b,c;b=0;for(c in a)a.hasOwnProperty(c)&&++b;return b},AblePlayer.prototype.formatSecondsAsColonTime=function(a,b){var c,d,e,f,g,h,i;if(b)if(f=a.toString().split("."),2===f.length){if(g=f[1],g.length<3)for(h=3-g.length,i=1;h>=i;i++)g+="0"}else g="000";return c=Math.floor(a/3600),d=Math.floor(a/60)%60,e=Math.floor(a%60),10>e&&(e="0"+e),c>0?(10>d&&(d="0"+d),b?c+":"+d+":"+e+"."+g:c+":"+d+":"+e):b?(1>c?c="00":10>c&&(c="0"+c),1>d?d="00":10>d&&(d="0"+d),c+":"+d+":"+e+"."+g):d+":"+e},AblePlayer.prototype.getSecondsFromColonTime=function(a){var b,c,d,e;return b=a.split(":"),3===b.length?(c=parseInt(b[0]),d=parseInt(b[1]),e=parseFloat(b[2]),3600*c+60*d+e):2===b.length?(d=parseInt(b[0]),e=parseFloat(b[1]),60*d+e):1===b.length?e=parseFloat(b[0]):void 0},AblePlayer.prototype.capitalizeFirstLetter=function(a){return a.charAt(0).toUpperCase()+a.slice(1)}}(jQuery),function(a){AblePlayer.prototype.initDescription=function(){this.refreshingDesc||(this.descFile=this.$sources.first().attr("data-desc-src"),"undefined"!=typeof this.descFile?this.hasOpenDesc=!0:this.youTubeDescId?this.hasOpenDesc=!0:this.hasOpenDesc=!1),this.prefDesc?this.hasOpenDesc&&this.hasClosedDesc?(this.useDescFormat=this.prefDescFormat,this.descOn=!0):this.hasOpenDesc?(this.useDescFormat="video",this.descOn=!0):this.hasClosedDesc&&(this.useDescFormat="text",this.descOn=!0):this.refreshingDesc?(this.prevDescFormat=this.useDescFormat,this.useDescFormat=!1,this.descOn=!1):this.useDescFormat=!1,this.descOn?"video"===this.useDescFormat?(this.usingAudioDescription()||this.swapDescription(),this.$descDiv.hide(),this.$descDiv.removeClass("able-clipped")):"text"===this.useDescFormat&&(this.$descDiv.show(),this.prefVisibleDesc?this.$descDiv.removeClass("able-clipped"):this.$descDiv.addClass("able-clipped"),this.swappingSrc||this.showDescription(this.getElapsed())):"video"===this.prevDescFormat?this.usingAudioDescription()&&this.swapDescription():"text"===this.prevDescFormat&&(this.$descDiv.hide(),this.$descDiv.removeClass("able-clipped")),this.refreshingDesc=!1},AblePlayer.prototype.usingAudioDescription=function(){return"youtube"===this.player?this.activeYouTubeId===this.youTubeDescId:this.$sources.first().attr("data-desc-src")===this.$sources.first().attr("src")},AblePlayer.prototype.swapDescription=function(){var a,b,c,d,e,f,g;if(a=this,this.swapTime=this.getElapsed(),this.descOn?this.showAlert(this.tt.alertDescribedVersion):this.showAlert(this.tt.alertNonDescribedVersion),"html5"===this.player){if(this.usingAudioDescription()){for(b=0;b<this.$sources.length;b++)c=this.$sources[b].getAttribute("data-orig-src"),e=this.$sources[b].getAttribute("type"),c&&this.$sources[b].setAttribute("src",c),"video/mp4"===e&&(f=b);this.swappingSrc=!0}else{for(b=0;b<this.$sources.length;b++)c=this.$sources[b].getAttribute("src"),d=this.$sources[b].getAttribute("data-desc-src"),
7
- e=this.$sources[b].getAttribute("type"),d&&(this.$sources[b].setAttribute("src",d),this.$sources[b].setAttribute("data-orig-src",c)),"video/mp4"===e&&(f=b);this.swappingSrc=!0}"html5"===this.player?this.media.load():"youtube"===this.player||"jw"===this.player&&this.jwPlayer&&(g=this.$sources[f].getAttribute("src"),this.jwPlayer.load({file:g}))}else"youtube"===this.player&&(this.usingAudioDescription()?(this.activeYouTubeId=this.youTubeId,this.showAlert(this.tt.alertNonDescribedVersion)):(this.activeYouTubeId=this.youTubeDescId,this.showAlert(this.tt.alertDescribedVersion)),"undefined"!=typeof this.youTubePlayer&&this.setupAltCaptions().then(function(){a.playing?a.youTubePlayer.loadVideoById(a.activeYouTubeId,a.swapTime):a.youTubePlayer.cueVideoById(a.activeYouTubeId,a.swapTime)}))},AblePlayer.prototype.showDescription=function(a){if(!this.swappingSrc){var b,c,d,e=function(a){var b=[];if("string"===a.type)b.push(a.value);else for(var c=0;c<a.children.length;c++)b.push(e(a.children[c]));return b.join("")};for(d=this.selectedDescriptions?this.selectedDescriptions.cues:this.descriptions.length>=1?this.descriptions[0].cues:[],b=0;b<d.length;b++)if(d[b].start<=a&&d[b].end>a){c=b;break}"undefined"!=typeof c?this.currentDescription!==c&&(this.$status.removeAttr("aria-live"),this.$descDiv.html(e(d[c].components)),this.prefDescPause&&this.pauseMedia(),this.currentDescription=c):(this.$descDiv.html(""),this.currentDescription=-1,this.$status.attr("aria-live","polite"))}}}(jQuery),function(a){AblePlayer.prototype.getUserAgent=function(){this.userAgent={},this.userAgent.browser={},/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)?(this.userAgent.browser.name="Firefox",this.userAgent.browser.version=RegExp.$1):/MSIE (\d+\.\d+);/.test(navigator.userAgent)?(this.userAgent.browser.name="Internet Explorer",this.userAgent.browser.version=RegExp.$1):/Trident.*rv[ :]*(\d+\.\d+)/.test(navigator.userAgent)?(this.userAgent.browser.name="Internet Explorer",this.userAgent.browser.version=RegExp.$1):/Edge[\/\s](\d+\.\d+)/.test(navigator.userAgent)?(this.userAgent.browser.name="Edge",this.userAgent.browser.version=RegExp.$1):/OPR\/(\d+\.\d+)/i.test(navigator.userAgent)?(this.userAgent.browser.name="Opera",this.userAgent.browser.version=RegExp.$1):/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)?(this.userAgent.browser.name="Chrome",/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent)&&(this.userAgent.browser.version=RegExp.$1)):/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)?(this.userAgent.browser.name="Safari",/Version[\/\s](\d+\.\d+)/.test(navigator.userAgent)&&(this.userAgent.browser.version=RegExp.$1)):(this.userAgent.browser.name="Unknown",this.userAgent.browser.version="Unknown"),-1!=window.navigator.userAgent.indexOf("Windows NT 6.2")?this.userAgent.os="Windows 8":-1!=window.navigator.userAgent.indexOf("Windows NT 6.1")?this.userAgent.os="Windows 7":-1!=window.navigator.userAgent.indexOf("Windows NT 6.0")?this.userAgent.os="Windows Vista":-1!=window.navigator.userAgent.indexOf("Windows NT 5.1")?this.userAgent.os="Windows XP":-1!=window.navigator.userAgent.indexOf("Windows NT 5.0")?this.userAgent.os="Windows 2000":-1!=window.navigator.userAgent.indexOf("Mac")?this.userAgent.os="Mac/iOS":-1!=window.navigator.userAgent.indexOf("X11")?this.userAgent.os="UNIX":-1!=window.navigator.userAgent.indexOf("Linux")&&(this.userAgent.os="Linux"),this.debug},AblePlayer.prototype.isUserAgent=function(a){var b=navigator.userAgent.toLowerCase();return this.debug,-1!==b.indexOf(a.toLowerCase())?!0:!1},AblePlayer.prototype.isIOS=function(a){var b,c;return b=navigator.userAgent.toLowerCase(),c=/ipad|iphone|ipod/.exec(b),c?"undefined"!=typeof a?-1!==b.indexOf("os "+a)?!0:!1:!0:!1},AblePlayer.prototype.browserSupportsVolume=function(){var a,b;return a=navigator.userAgent.toLowerCase(),b=/ipad|iphone|ipod|android|blackberry|windows ce|windows phone|webos|playbook/.exec(a),b?"android"===b[0]&&/firefox/.test(a)?!0:!1:!0},AblePlayer.prototype.nativeFullscreenSupported=function(){return"jw"===this.player?!1:document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}}(jQuery),function(a){AblePlayer.prototype.seekTo=function(a){if(this.seekFromTime=this.media.currentTime,this.seekToTime=a,this.seeking=!0,this.liveUpdatePending=!0,"html5"===this.player){var b;this.startTime=a,b=this.media.seekable,b.length>0&&this.startTime>=b.start(0)&&this.startTime<=b.end(0)&&(this.media.currentTime=this.startTime,this.hasSignLanguage&&this.signVideo&&(this.signVideo.currentTime=this.startTime))}else"jw"===this.player&&this.jwPlayer?(this.jwSeekPause=!0,this.jwPlayer.seek(a)):"youtube"===this.player&&(this.youTubePlayer.seekTo(a,!0),a>0&&"undefined"!=typeof this.$posterImg&&this.$posterImg.hide());this.refreshControls()},AblePlayer.prototype.getDuration=function(){var a;return"html5"===this.player?a=this.media.duration:"jw"===this.player&&this.jwPlayer?a=this.jwPlayer.getDuration():"youtube"===this.player&&this.youTubePlayer&&(a=this.youTubePlayer.getDuration()),void 0===a||isNaN(a)||-1===a?0:a},AblePlayer.prototype.getElapsed=function(){var a;if("html5"===this.player)a=this.media.currentTime;else if("jw"===this.player&&this.jwPlayer){if("IDLE"===this.jwPlayer.getState())return 0;a=this.jwPlayer.getPosition()}else"youtube"===this.player&&this.youTubePlayer&&(a=this.youTubePlayer.getCurrentTime());return void 0===a||isNaN(a)||-1===a?0:a},AblePlayer.prototype.getPlayerState=function(){if(!this.swappingSrc){if("html5"===this.player)return this.media.paused?0===this.getElapsed()?"stopped":this.media.ended?"ended":"paused":4!==this.media.readyState?"buffering":"playing";if("jw"===this.player&&this.jwPlayer){if("PAUSED"===this.jwPlayer.getState()||"IDLE"===this.jwPlayer.getState()||void 0===this.jwPlayer.getState())return 0===this.getElapsed()?"stopped":this.getElapsed()===this.getDuration()?"ended":"paused";if("BUFFERING"===this.jwPlayer.getState())return"buffering";if("PLAYING"===this.jwPlayer.getState())return"playing"}else if("youtube"===this.player&&this.youTubePlayer){var a=this.youTubePlayer.getPlayerState();if(-1===a||5===a)return"stopped";if(0===a)return"ended";if(1===a)return"playing";if(2===a)return"paused";if(3===a)return"buffering"}}},AblePlayer.prototype.isPlaybackRateSupported=function(){return"html5"===this.player?this.media.playbackRate?!0:!1:"jw"===this.player&&this.jwPlayer?!1:"youtube"===this.player?this.youTubePlayer.getAvailablePlaybackRates().length>1:void 0},AblePlayer.prototype.setPlaybackRate=function(a){a=Math.max(.5,a),"html5"===this.player?this.media.playbackRate=a:"youtube"===this.player&&this.youTubePlayer.setPlaybackRate(a),this.hasSignLanguage&&this.signVideo&&(this.signVideo.playbackRate=a),this.$speed.text(this.tt.speed+": "+a.toFixed(2).toString()+"x")},AblePlayer.prototype.getPlaybackRate=function(){return"html5"===this.player?this.media.playbackRate:"jw"===this.player&&this.jwPlayer?1:"youtube"===this.player?this.youTubePlayer.getPlaybackRate():void 0},AblePlayer.prototype.isPaused=function(){var a=this.getPlayerState();return"paused"===a||"stopped"===a||"ended"===a},AblePlayer.prototype.pauseMedia=function(){"html5"===this.player?(this.media.pause(!0),this.hasSignLanguage&&this.signVideo&&this.signVideo.pause(!0)):"jw"===this.player&&this.jwPlayer?this.jwPlayer.pause(!0):"youtube"===this.player&&this.youTubePlayer.pauseVideo()},AblePlayer.prototype.playMedia=function(){var a=this;"html5"===this.player?(this.media.play(!0),this.hasSignLanguage&&this.signVideo&&this.signVideo.play(!0)):"jw"===this.player&&this.jwPlayer?this.jwPlayer.play(!0):"youtube"===this.player&&(this.youTubePlayer.playVideo(),"undefined"!=typeof this.$posterImg&&this.$posterImg.hide(),this.stoppingYouTube=!1),this.startedPlaying=!0,this.hideControls&&(this.hidingControls=!0,this.hideControlsTimeout=window.setTimeout(function(){a.fadeControls("out"),a.controlsHidden=!0,a.hidingControls=!1},2e3))},AblePlayer.prototype.fadeControls=function(a){"out"==a?(this.$controllerDiv.addClass("able-offscreen"),this.$statusBarDiv.addClass("able-offscreen"),this.playerBackground=this.$playerDiv.css("background-color"),this.$playerDiv.css("background-color","black")):"in"==a&&(this.$controllerDiv.removeClass("able-offscreen"),this.$statusBarDiv.removeClass("able-offscreen"),"undefined"!=typeof this.playerBackground?this.$playerDiv.css("background-color",this.playerBackground):this.$playerDiv.css("background-color",""))},AblePlayer.prototype.refreshControls=function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;b=this,this.swappingSrc||(c=this.getDuration(),d=this.getElapsed(),this.useChapterTimes&&(this.chapterDuration=this.getChapterDuration(),this.chapterElapsed=this.getChapterElapsed()),this.useFixedSeekInterval===!1&&this.seekIntervalCalculated===!1&&c>0&&this.setSeekInterval(),this.seekBar&&(this.useChapterTimes?(e=this.selectedChapters.cues.length-1,this.selectedChapters.cues[e]==this.currentChapter&&this.currentChapter.end!==c?this.seekBar.setDuration(c-this.currentChapter.start):this.seekBar.setDuration(this.chapterDuration)):this.seekBar.setDuration(c),this.seekBar.tracking||(g=this.liveUpdatePending||this.seekBar.seekHead.is(a(document.activeElement)),this.liveUpdatePending=!1,this.useChapterTimes?this.seekBar.setPosition(this.chapterElapsed,g):this.seekBar.setPosition(d,g)),f=this.seekBar.tracking?this.seekBar.lastTrackPosition:this.useChapterTimes?this.chapterElapsed:d),this.useChapterTimes?this.$durationContainer.text(" / "+this.formatSecondsAsColonTime(this.chapterDuration)):this.$durationContainer.text(" / "+this.formatSecondsAsColonTime(c)),this.$elapsedTimeContainer.text(this.formatSecondsAsColonTime(f)),h={stopped:this.tt.statusStopped,paused:this.tt.statusPaused,playing:this.tt.statusPlaying,buffering:this.tt.statusBuffering,ended:this.tt.statusEnd},this.stoppingYouTube?(this.$status.text()!==this.tt.statusStopped&&this.$status.text(this.tt.statusStopped),this.$playpauseButton.find("span").first().hasClass("icon-pause")&&("font"===this.iconType?(this.$playpauseButton.find("span").first().removeClass("icon-pause").addClass("icon-play"),this.$playpauseButton.find("span.able-clipped").text(this.tt.play)):"svg"===this.iconType?(u=this.getSvgData("play"),this.$playpauseButton.find("svg").attr("viewBox",u[0]),this.$playpauseButton.find("path").attr("d",u[1])):this.$playpauseButton.find("img").attr("src",this.playButtonImg))):"undefined"!=typeof this.$status&&"undefined"!=typeof this.seekBar&&(this.$status.text()===h[this.getPlayerState()]||this.seekBar.tracking?(this.statusDebounceStart=null,clearTimeout(this.statusTimeout),this.statusTimeout=null):(i=(new Date).getTime(),this.statusDebounceStart?i-this.statusDebounceStart>250&&(this.$status.text(h[this.getPlayerState()]),this.statusDebounceStart=null,clearTimeout(this.statusTimeout),this.statusTimeout=null):(this.statusDebounceStart=i,this.statusTimeout=setTimeout(function(){b.refreshControls()},300))),this.seekBar.tracking||this.stoppingYouTube||(this.isPaused()?(this.$playpauseButton.attr("aria-label",this.tt.play),"font"===this.iconType?(this.$playpauseButton.find("span").first().removeClass("icon-pause").addClass("icon-play"),this.$playpauseButton.find("span.able-clipped").text(this.tt.play)):"svg"===this.iconType?(u=this.getSvgData("play"),this.$playpauseButton.find("svg").attr("viewBox",u[0]),this.$playpauseButton.find("path").attr("d",u[1])):this.$playpauseButton.find("img").attr("src",this.playButtonImg)):(this.$playpauseButton.attr("aria-label",this.tt.pause),"font"===this.iconType?(this.$playpauseButton.find("span").first().removeClass("icon-play").addClass("icon-pause"),this.$playpauseButton.find("span.able-clipped").text(this.tt.pause)):"svg"===this.iconType?(u=this.getSvgData("pause"),this.$playpauseButton.find("svg").attr("viewBox",u[0]),this.$playpauseButton.find("path").attr("d",u[1])):this.$playpauseButton.find("img").attr("src",this.pauseButtonImg)))),this.seekBar&&(j=0,n=40,k=this.seekBar.wrapperDiv.parent().prev("div.able-left-controls"),l=k.next("div.able-right-controls"),k.children().each(function(){"BUTTON"==a(this).prop("tagName")&&(j+=a(this).width())}),l.children().each(function(){"BUTTON"==a(this).prop("tagName")&&(j+=a(this).width())}),m=this.isFullscreen()?a(window).width()-j-n:this.$ableWrapper.width()-j-n,Math.abs(m-this.seekBar.getWidth())>5&&this.seekBar.setWidth(m)),this.isFullscreen()||(t=300,r=this.$statusBarDiv.height(),s=this.$statusBarDiv.find("span.able-speed").height(),s>r+5?(this.$statusBarDiv.find("span.able-speed").hide(),this.hidingSpeed=!0):(this.hidingSpeed&&(this.$statusBarDiv.find("span.able-speed").show(),this.hidingSpeed=!1),this.$statusBarDiv.width()<t?(this.$statusBarDiv.find("span.able-speed").hide(),this.hidingSpeed=!0):this.hidingSpeed&&(this.$statusBarDiv.find("span.able-speed").show(),this.hidingSpeed=!1))),this.$descButton&&(this.descOn?(this.$descButton.removeClass("buttonOff").attr("aria-label",this.tt.turnOffDescriptions),this.$descButton.find("span.able-clipped").text(this.tt.turnOffDescriptions)):(this.$descButton.addClass("buttonOff").attr("aria-label",this.tt.turnOnDescriptions),this.$descButton.find("span.able-clipped").text(this.tt.turnOnDescriptions))),this.$ccButton&&(o=this.usingYouTubeCaptions?this.ytCaptions.length:this.captions.length,this.captionsOn?(this.$ccButton.removeClass("buttonOff"),1===o&&(this.$ccButton.attr("aria-label",this.tt.hideCaptions),this.$ccButton.find("span.able-clipped").text(this.tt.hideCaptions))):(this.$ccButton.addClass("buttonOff"),1===o&&(this.$ccButton.attr("aria-label",this.tt.showCaptions),this.$ccButton.find("span.able-clipped").text(this.tt.showCaptions))),o>1&&(this.$ccButton.attr({"aria-label":this.tt.captions,"aria-haspopup":"true","aria-controls":this.mediaId+"-captions-menu","aria-expanded":"false"}),this.$ccButton.find("span.able-clipped").text(this.tt.captions))),this.$chaptersButton&&this.$chaptersButton.attr({"aria-label":this.tt.chapters,"aria-haspopup":"true","aria-controls":this.mediaId+"-chapters-menu","aria-expanded":"false"}),this.$fullscreenButton&&(this.isFullscreen()?(this.$fullscreenButton.attr("aria-label",this.tt.exitFullScreen),"font"===this.iconType?(this.$fullscreenButton.find("span").first().removeClass("icon-fullscreen-expand").addClass("icon-fullscreen-collapse"),this.$fullscreenButton.find("span.able-clipped").text(this.tt.exitFullScreen)):"svg"===this.iconType?(u=this.getSvgData("fullscreen-collapse"),this.$fullscreenButton.find("svg").attr("viewBox",u[0]),this.$fullscreenButton.find("path").attr("d",u[1])):this.$fullscreenButton.find("img").attr("src",this.fullscreenCollapseButtonImg)):(this.$fullscreenButton.attr("aria-label",this.tt.enterFullScreen),"font"===this.iconType?(this.$fullscreenButton.find("span").first().removeClass("icon-fullscreen-collapse").addClass("icon-fullscreen-expand"),this.$fullscreenButton.find("span.able-clipped").text(this.tt.enterFullScreen)):"svg"===this.iconType?(u=this.getSvgData("fullscreen-expand"),this.$fullscreenButton.find("svg").attr("viewBox",u[0]),this.$fullscreenButton.find("path").attr("d",u[1])):this.$fullscreenButton.find("img").attr("src",this.fullscreenExpandButtonImg))),"undefined"!=typeof this.$bigPlayButton&&(this.isPaused()&&!this.seekBar.tracking?(this.hideBigPlayButton||this.$bigPlayButton.show(),this.isFullscreen()?(this.$bigPlayButton.width(a(window).width()),this.$bigPlayButton.height(a(window).height())):(this.$bigPlayButton.width(this.$mediaContainer.width()),this.$bigPlayButton.height(this.$mediaContainer.height()))):this.$bigPlayButton.hide()),this.transcriptType&&(1===this.prefAutoScrollTranscript?(this.autoScrollTranscript=!0,this.$autoScrollTranscriptCheckbox.prop("checked",!0)):(this.autoScrollTranscript=!1,this.$autoScrollTranscriptCheckbox.prop("checked",!1)),this.autoScrollTranscript&&this.currentHighlight&&(q=Math.floor(a(".able-transcript").scrollTop()+a(this.currentHighlight).position().top-a(".able-transcript").height()/2+a(this.currentHighlight).height()/2),q!==Math.floor(a(".able-transcript").scrollTop())&&(this.scrollingTranscript=!0,a(".able-transcript").scrollTop(q)))),"html5"===this.player?this.media.buffered.length>0&&(p=this.media.buffered.end(0),this.useChapterTimes?(p>this.chapterDuration&&(p=this.chapterDuration),this.seekBar&&this.seekBar.setBuffered(p/this.chapterDuration)):this.seekBar&&this.seekBar.setBuffered(p/c)):"jw"===this.player&&this.jwPlayer?this.seekBar&&this.seekBar.setBuffered(this.jwPlayer.getBuffer()/100):"youtube"===this.player&&this.seekBar&&this.seekBar.setBuffered(this.youTubePlayer.getVideoLoadedFraction()))},AblePlayer.prototype.getHiddenWidth=function(a){var b=a.clone().appendTo("body"),c=b.outerWidth();return b.remove(),c},AblePlayer.prototype.handlePlay=function(a){this.isPaused()?this.playMedia():this.pauseMedia(),this.refreshControls()},AblePlayer.prototype.handleRestart=function(){this.seekTo(0),this.refreshControls()},AblePlayer.prototype.handleRewind=function(){var a,b;a=this.getElapsed(),b=a-this.seekInterval,this.useChapterTimes?b<this.currentChapter.start&&(b=this.currentChapter.start):0>b&&(b=0),this.seekTo(b)},AblePlayer.prototype.handleFastForward=function(){var a,b,c,d;a=this.getElapsed(),b=this.getDuration(),d=this.chapters.length-1,c=a+this.seekInterval,this.useChapterTimes?this.chapters[d]==this.currentChapter?c>b||c>this.currentChapter.end?c=Math.min(b,this.currentChapter.end):b%c<this.seekInterval&&(c=Math.min(b,this.currentChapter.end)):c>this.currentChapter.end&&(c=this.currentChapter.end):c>b&&(c=b),this.seekTo(c)},AblePlayer.prototype.handleRateIncrease=function(){this.changeRate(1)},AblePlayer.prototype.handleRateDecrease=function(){this.changeRate(-1)},AblePlayer.prototype.changeRate=function(a){if("html5"===this.player)this.setPlaybackRate(this.getPlaybackRate()+.25*a);else if("youtube"===this.player){var b=this.youTubePlayer.getAvailablePlaybackRates(),c=this.getPlaybackRate(),d=b.indexOf(c);-1===d||(d+=a,d<b.length&&d>=0&&this.setPlaybackRate(b[d]))}},AblePlayer.prototype.handleCaptionToggle=function(){var a;if(this.hidingPopup)return this.hidingPopup=!1,!1;if(a=this.captions.length?this.captions:this.ytCaptions.length?this.ytCaptions:[],1===a.length){if(this.captionsOn===!0)this.captionsOn=!1,this.prefCaptions=0,this.updateCookie("prefCaptions"),this.usingYouTubeCaptions?this.youTubePlayer.unloadModule(this.ytCaptionModule):this.$captionsWrapper.hide();else{this.captionsOn=!0,this.prefCaptions=1,this.updateCookie("prefCaptions"),this.usingYouTubeCaptions?"undefined"!=typeof this.ytCaptionModule&&this.youTubePlayer.loadModule(this.ytCaptionModule):this.$captionsWrapper.show();for(var b=0;b<a.length;b++)a[b].def===!0&&(this.selectedCaptions=a[b]);this.selectedCaptions=this.captions[0],this.descriptions.length>=0&&(this.selectedDescriptions=this.descriptions[0])}this.refreshControls()}else this.captionsPopup&&this.captionsPopup.is(":visible")?(this.captionsPopup.hide(),this.hidingPopup=!1,this.$ccButton.attr("aria-expanded","false").focus()):(this.closePopups(),this.captionsPopup&&(this.captionsPopup.show(),this.$ccButton.attr("aria-expanded","true"),this.captionsPopup.css("top",this.$ccButton.position().top-this.captionsPopup.outerHeight()),this.captionsPopup.css("left",this.$ccButton.position().left),this.captionsPopup.find("li").removeClass("able-focus"),this.captionsPopup.find("li").first().focus().addClass("able-focus")))},AblePlayer.prototype.handleChapters=function(){return this.hidingPopup?(this.hidingPopup=!1,!1):void(this.chaptersPopup.is(":visible")?(this.chaptersPopup.hide(),this.hidingPopup=!1,this.$chaptersButton.attr("aria-expanded","false").focus()):(this.closePopups(),this.chaptersPopup.show(),this.$chaptersButton.attr("aria-expanded","true"),this.chaptersPopup.css("top",this.$chaptersButton.position().top-this.chaptersPopup.outerHeight()),this.chaptersPopup.css("left",this.$chaptersButton.position().left),this.chaptersPopup.find("li").removeClass("able-focus"),this.chaptersPopup.find('li[aria-checked="true"]').length?this.chaptersPopup.find('li[aria-checked="true"]').focus().addClass("able-focus"):this.chaptersPopup.find("li").first().addClass("able-focus").attr("aria-checked","true").focus()))},AblePlayer.prototype.handleDescriptionToggle=function(){this.descOn=!this.descOn,this.prefDesc=+this.descOn,this.updateCookie("prefDesc"),this.refreshingDesc=!0,this.initDescription(),this.refreshControls()},AblePlayer.prototype.handlePrefsClick=function(a){var b,c,d;return this.hidingPopup?(this.hidingPopup=!1,!1):void(this.prefsPopup.is(":visible")?(this.prefsPopup.hide(),this.hidingPopup=!1,this.$prefsButton.attr("aria-expanded","false").focus(),this.prefsPopup.find("li").removeClass("able-focus").attr("tabindex","-1")):(this.closePopups(),this.prefsPopup.show(),this.$prefsButton.attr("aria-expanded","true"),b=this.$prefsButton.position(),c=this.$ableDiv.width()-5,d=c-this.prefsPopup.width(),this.prefsPopup.css("top",b.top-this.prefsPopup.outerHeight()),this.prefsPopup.css("left",d),this.prefsPopup.find("li").removeClass("able-focus").attr("tabindex","0"),this.prefsPopup.find("li").first().focus().addClass("able-focus")))},AblePlayer.prototype.handleHelpClick=function(){this.setFullscreen(!1),this.helpDialog.show()},AblePlayer.prototype.handleTranscriptToggle=function(){this.$transcriptDiv.is(":visible")?(this.$transcriptArea.hide(),this.$transcriptButton.addClass("buttonOff").attr("aria-label",this.tt.showTranscript),this.$transcriptButton.find("span.able-clipped").text(this.tt.showTranscript),this.prefTranscript=0,this.$transcriptButton.focus().addClass("able-focus")):(this.positionDraggableWindow("transcript"),this.$transcriptArea.show(),this.$transcriptButton.removeClass("buttonOff").attr("aria-label",this.tt.hideTranscript),this.$transcriptButton.find("span.able-clipped").text(this.tt.hideTranscript),this.prefTranscript=1),this.updateCookie("prefTranscript")},AblePlayer.prototype.handleSignToggle=function(){this.$signWindow.is(":visible")?(this.$signWindow.hide(),this.$signButton.addClass("buttonOff").attr("aria-label",this.tt.showSign),this.$signButton.find("span.able-clipped").text(this.tt.showSign),this.prefSign=0,this.$signButton.focus().addClass("able-focus")):(this.positionDraggableWindow("sign"),this.$signWindow.show(),this.$signButton.removeClass("buttonOff").attr("aria-label",this.tt.hideSign),this.$signButton.find("span.able-clipped").text(this.tt.hideSign),this.prefSign=1),this.updateCookie("prefSign")},AblePlayer.prototype.isFullscreen=function(){return this.nativeFullscreenSupported()?document.fullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.msFullscreenElement?!0:!1:this.modalFullscreenActive?!0:!1},AblePlayer.prototype.setFullscreen=function(b){if(this.isFullscreen()!=b){var c=this,d=this.$ableWrapper,e=d[0];if(this.nativeFullscreenSupported())b?(this.preFullScreenWidth=this.$ableWrapper.width(),this.preFullScreenHeight=this.$ableWrapper.height(),e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()):document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),a(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",function(){c.isFullscreen()||(c.restoringAfterFullScreen=!0,c.resizePlayer(c.preFullScreenWidth,c.preFullScreenHeight))});else{if(!this.fullscreenDialog){var f=a("<div>"),g=a("<p>",{"class":"able-screenreader-alert"}).text(this.tt.fullscreen);f.append(g),this.fullscreenDialog=new AccessibleDialog(f,this.$fullscreenButton,"dialog","Fullscreen video player",g,this.tt.exitFullScreen,"100%",!0,function(){c.handleFullscreenToggle()}),a("body").append(f)}var h=this.isPaused();if(b){this.modalFullscreenActive=!0,this.fullscreenDialog.show(),this.$modalFullscreenPlaceholder=a('<div class="placeholder">'),this.$modalFullscreenPlaceholder.insertAfter(d),d.appendTo(this.fullscreenDialog.modal),d===this.$ableColumnLeft&&d.width("100%");var i=a(window).height()-this.$playerDiv.height();this.$descDiv.is(":hidden")||(i-=this.$descDiv.height()),this.resizePlayer(a(window).width(),i)}else this.modalFullscreenActive=!1,d===this.$ableColumnLeft&&d.width("50%"),d.insertAfter(this.$modalFullscreenPlaceholder),this.$modalFullscreenPlaceholder.remove(),this.fullscreenDialog.hide(),this.resizePlayer(this.$ableWrapper.width(),this.$ableWrapper.height());!h&&this.isPaused()&&this.playMedia()}this.refreshControls()}},AblePlayer.prototype.handleFullscreenToggle=function(){var a=this.isPaused();this.setFullscreen(!this.isFullscreen()),a?this.pauseMedia():a||this.playMedia()},AblePlayer.prototype.handleTranscriptLockToggle=function(a){this.autoScrollTranscript=a,this.prefAutoScrollTranscript=+a,this.updateCookie("prefAutoScrollTranscript"),this.refreshControls()},AblePlayer.prototype.showTooltip=function(a){a.is(":animated")?a.stop(!0,!0).show().delay(4e3).fadeOut(1e3):a.stop().show().delay(4e3).fadeOut(1e3)},AblePlayer.prototype.showAlert=function(a,b){var c,d,e,f,g;c=this,"transcript"===b?(d=this.$transcriptAlert,e=this.$transcriptArea):"sign"===b?(d=this.$signAlert,e=this.$signWindow):d="screenreader"===b?this.$srAlertBox:this.$alertBox,d.show(),d.text(a),"transcript"==b||"sign"===b?(f=e.width()>d.width()?e.width()/2-d.width()/2:10,"sign"===b?g=e.height()/3*2:"transcript"===b&&(g=this.$transcriptToolbar.height()+30),d.css({top:g+"px",left:f+"px"})):"screenreader"!==b&&d.css({left:this.$playerDiv.width()/2-d.width()/2}),"screenreader"!==b&&setTimeout(function(){d.fadeOut(300)},3e3)},AblePlayer.prototype.showedAlert=function(a){return"transcript"===a?this.showedTranscriptAlert?!0:!1:"sign"===a&&this.showedSignAlert?!0:!1},AblePlayer.prototype.resizePlayer=function(a,b){var c,d,e,f,g,h;this.isFullscreen()?("undefined"!=typeof this.$vidcapContainer&&(this.$ableWrapper.css({width:a+"px","max-width":""}),this.$vidcapContainer.css({height:b+"px",width:a}),this.$media.css({height:b+"px",width:a})),"undefined"!=typeof this.$transcriptArea&&this.retrieveOffscreenWindow("transcript",a,b),"undefined"!=typeof this.$signWindow&&this.retrieveOffscreenWindow("sign",a,b)):this.restoringAfterFullScreen&&(a=this.preFullScreenWidth,b=this.preFullScreenHeight,this.restoringAfterFullScreen=!1,this.$ableWrapper.css({"max-width":a+"px",width:""}),"undefined"!=typeof this.$vidcapContainer&&this.$vidcapContainer.css({height:"",width:""}),this.$media.css({width:"100%",height:"auto"})),"youtube"===this.player&&this.youTubePlayer?this.youTubePlayer.setSize(a,b):"jw"===this.player&&this.jwPlayer&&("audio"===this.mediaType?this.jwPlayer.resize(a,0):this.jwPlayer.resize(a,c)),"undefined"!=typeof this.$captionsDiv&&(d=400,e=1e3,f=parseInt(this.prefCaptionsSize,10),g=a>e?1.5*f:d>a?f/1.5:f,h=g+25,this.$captionsDiv.css("font-size",g+"%"),this.$captionsWrapper.css("line-height",h+"%")),this.refreshControls()},AblePlayer.prototype.retrieveOffscreenWindow=function(a,b,c){var d,e,f,g,h,i,j,k;"transcript"==a?d=this.$transcriptArea:"sign"==a&&(d=this.$signWindow),i=d.width(),k=d.height(),e=d.position(),f=e.top,g=e.left,h=g+i,j=f+k,0>f&&(f=10,d.css("top",f)),0>g&&(g=10,d.css("left",g)),h>b&&(g=b-20-i,d.css("left",g)),j>c&&(f=c-10-k,d.css("top",f))},AblePlayer.prototype.getHighestZIndex=function(){var b,c,d;return b=0,c=a("body *").not(".able-modal-dialog,.able-modal-dialog *,.able-modal-overlay,.able-modal-overlay *,.able-sign-window,.able-transcript-area"),c.each(function(){d=a(this).css("z-index"),Number.isInteger(+d)&&parseInt(d)>b&&(b=parseInt(d))}),b},AblePlayer.prototype.updateZIndex=function(a){var b,c,d,e,f,g,h;if(b=8e3,c=7e3,d=this.getHighestZIndex(),"undefined"==typeof this.$transcriptArea||"undefined"==typeof this.$signWindow)return"undefined"!=typeof this.$transcriptArea?(e=parseInt(this.$transcriptArea.css("z-index")),e>c&&this.$transcriptArea.css("z-index",c)):"undefined"!=typeof this.$signWindow&&(f=parseInt(this.$signWindow.css("z-index")),f>b&&this.$signWindow.css("z-index",b)),!1;if(e=parseInt(this.$transcriptArea.css("z-index")),f=parseInt(this.$signWindow.css("z-index")),e===f)g=b,h=c;else if(e>f){if("transcript"===a)return!1;g=e,h=f}else{if("sign"===a)return!1;g=f,h=e}"transcript"===a?(this.$transcriptArea.css("z-index",g),this.$signWindow.css("z-index",h)):"sign"===a&&(this.$signWindow.css("z-index",g),this.$transcriptArea.css("z-index",h))},AblePlayer.prototype.syncTrackLanguages=function(a,b){var c,d,e,f,g;for(c=0;c<this.captions.length;c++)this.captions[c].language===b&&(d=this.captions[c]);for(c=0;c<this.chapters.length;c++)this.chapters[c].language===b&&(f=this.chapters[c]);for(c=0;c<this.descriptions.length;c++)this.descriptions[c].language===b&&(e=this.descriptions[c]);for(c=0;c<this.meta.length;c++)this.meta[c].language===b&&(g=this.meta[c]);this.transcriptLang=b,"init"===a||"captions"===a?(this.captionLang=b,this.selectedCaptions=d,this.selectedChapters=f,this.selectedDescriptions=e,this.selectedMeta=g,this.transcriptCaptions=d,this.transcriptChapters=f,this.transcriptDescriptions=e,this.updateChaptersList()):"transcript"===a&&(this.transcriptCaptions=d,this.transcriptChapters=f,this.transcriptDescriptions=e),this.updateTranscript()}}(jQuery),function(a){AblePlayer.prototype.updateCaption=function(a){this.usingYouTubeCaptions||"undefined"==typeof this.$captionsWrapper||(this.captionsOn?(this.$captionsWrapper.show(),this.showCaptions(a||this.getElapsed())):this.$captionsWrapper&&(this.$captionsWrapper.hide(),this.prefCaptions=0))},AblePlayer.prototype.updateCaptionsMenu=function(a){this.captionsPopup.find("li").attr("aria-checked","false"),"undefined"==typeof a?this.captionsPopup.find("li").last().attr("aria-checked","true"):this.captionsPopup.find("li[lang="+a+"]").attr("aria-checked","true")},AblePlayer.prototype.getCaptionClickFunction=function(a){var b=this;return function(){b.selectedCaptions=a,b.captionLang=a.language,b.currentCaption=-1,b.usingYouTubeCaptions?b.captionsOn?"undefined"!=typeof b.ytCaptionModule&&b.youTubePlayer.setOption(b.ytCaptionModule,"track",{languageCode:b.captionLang}):(b.resettingYouTubeCaptions=!0,b.youTubePlayer.loadModule(b.ytCaptionModule)):(b.syncTrackLanguages("captions",b.captionLang),this.swappingSrc||(b.updateCaption(),b.showDescription(b.getElapsed()))),b.captionsOn=!0,b.hidingPopup=!0,b.captionsPopup.hide(),setTimeout(function(){b.hidingPopup=!1},100),b.updateCaptionsMenu(b.captionLang),b.$ccButton.focus(),b.prefCaptions=1,b.updateCookie("prefCaptions"),b.refreshControls()}},AblePlayer.prototype.getCaptionOffFunction=function(){var a=this;return function(){"youtube"==a.player&&a.youTubePlayer.unloadModule(a.ytCaptionModule),a.captionsOn=!1,a.currentCaption=-1,a.hidingPopup=!0,a.captionsPopup.hide(),setTimeout(function(){a.hidingPopup=!1},100),a.updateCaptionsMenu(),a.$ccButton.focus(),a.prefCaptions=0,a.updateCookie("prefCaptions"),this.swappingSrc||(a.refreshControls(),a.updateCaption())}},AblePlayer.prototype.showCaptions=function(a){var b,c,d,e;for(e=this.selectedCaptions?this.selectedCaptions.cues:this.captions.length>=1?this.captions[0].cues:[],b=0;b<e.length;b++)if(e[b].start<=a&&e[b].end>a){c=b;break}"undefined"!=typeof c?this.currentCaption!==c&&(d=this.flattenCueForCaption(e[c]).replace("\n","<br>"),this.$captionsDiv.html(d),this.currentCaption=c,0===d.length?this.$captionsDiv.css("display","none"):this.$captionsDiv.css("display","inline-block")):(this.$captionsDiv.html(""),this.currentCaption=-1)},AblePlayer.prototype.flattenCueForCaption=function(a){var b=[],c=function(a){var b,d=[];if("string"===a.type)d.push(a.value);else if("v"===a.type)for(d.push("("+a.value+")"),b=0;b<a.children.length;b++)d.push(c(a.children[b]));else if("i"===a.type){
8
- for(d.push("<em>"),b=0;b<a.children.length;b++)d.push(c(a.children[b]));d.push("</em>")}else if("b"===a.type){for(d.push("<strong>"),b=0;b<a.children.length;b++)d.push(c(a.children[b]));d.push("</strong>")}else for(b=0;b<a.children.length;b++)d.push(c(a.children[b]));return d.join("")};if("undefined"!=typeof a.components)for(var d=0;d<a.components.children.length;d++)b.push(c(a.components.children[d]));return b.join("")},AblePlayer.prototype.getCaptionsOptions=function(a){var b=[];switch(a){case"prefCaptionsFont":b[0]=this.tt.serif,b[1]=this.tt.sans,b[3]=this.tt.cursive,b[4]=this.tt.fantasy,b[2]=this.tt.monospace;break;case"prefCaptionsColor":case"prefCaptionsBGColor":b[0]=["white",this.tt.white],b[1]=["yellow",this.tt.yellow],b[2]=["green",this.tt.green],b[3]=["cyan",this.tt.cyan],b[4]=["blue",this.tt.blue],b[5]=["magenta",this.tt.magenta],b[6]=["red",this.tt.red],b[7]=["black",this.tt.black];break;case"prefCaptionsSize":b[0]="75%",b[1]="100%",b[2]="125%",b[3]="150%",b[4]="200%";break;case"prefCaptionsOpacity":b[0]="0%",b[1]="25%",b[2]="50%",b[3]="75%",b[4]="100%";break;case"prefCaptionsStyle":b[0]=this.tt.captionsStylePopOn,b[1]=this.tt.captionsStyleRollUp;break;case"prefCaptionsPosition":b[0]="overlay",b[1]="below"}return b},AblePlayer.prototype.translatePrefs=function(a,b,c){if("youtube"==c&&"size"===a)switch(b){case"75%":return-1;case"100%":return 0;case"125%":return 1;case"150%":return 2;case"200%":return 3}return!1},AblePlayer.prototype.stylizeCaptions=function(b,c){var d,e,f,g;"undefined"!=typeof b&&("prefCaptionsPosition"==c?this.positionCaptions():"undefined"!=typeof c?("prefCaptionsFont"===c?d="font-family":"prefCaptionsSize"===c?d="font-size":"prefCaptionsColor"===c?d="color":"prefCaptionsBGColor"===c?d="background-color":"prefCaptionsOpacity"===c&&(d="opacity"),e="prefCaptionsOpacity"===c?parseFloat(a("#"+this.mediaId+"_"+c).val())/100:a("#"+this.mediaId+"_"+c).val(),b.css(d,e)):(f=parseFloat(this.prefCaptionsOpacity)/100,b.css({"font-family":this.prefCaptionsFont,"font-size":this.prefCaptionsSize,color:this.prefCaptionsColor,"background-color":this.prefCaptionsBGColor,opacity:f}),b===this.$captionsDiv&&"undefined"!=typeof this.$captionsWrapper&&(g=parseInt(this.prefCaptionsSize,10)+25,this.$captionsWrapper.css("line-height",g+"%")),"below"===this.prefCaptionsPosition?"undefined"!=typeof this.$captionsWrapper&&this.$captionsWrapper.css({"background-color":this.prefCaptionsBGColor,opacity:"1"}):"overlay"===this.prefCaptionsPosition&&"undefined"!=typeof this.$captionsWrapper&&this.$captionsWrapper.css({"background-color":"transparent",opacity:""}),this.positionCaptions()))},AblePlayer.prototype.positionCaptions=function(a){"undefined"==typeof a&&(a=this.prefCaptionsPosition),"undefined"!=typeof this.$captionsWrapper&&("below"==a?(this.$captionsWrapper.removeClass("able-captions-overlay").addClass("able-captions-below"),this.$captionsWrapper.css({"background-color":this.prefCaptionsBGColor,opacity:"1"})):(this.$captionsWrapper.removeClass("able-captions-below").addClass("able-captions-overlay"),this.$captionsWrapper.css({"background-color":"transparent",opacity:""})))}}(jQuery),function(a){AblePlayer.prototype.populateChaptersDiv=function(){var b,c,d,e;a("#"+this.chaptersDivLocation)&&(this.$chaptersDiv=a("#"+this.chaptersDivLocation),this.$chaptersDiv.addClass("able-chapters-div"),this.chaptersTitle&&(b=this.getNextHeadingLevel(this.$chaptersDiv),c="h"+b.toString(),d=this.mediaId+"-chapters-heading",e=a("<"+c+">",{"class":"able-chapters-heading",id:d}).text(this.chaptersTitle),this.$chaptersDiv.append(e)),this.$chaptersNav=a("<nav>"),this.chaptersTitle?this.$chaptersNav.attr("aria-labelledby",d):this.$chaptersNav.attr("aria-label",this.tt.chapters),this.$chaptersDiv.append(this.$chaptersNav),this.updateChaptersList())},AblePlayer.prototype.updateChaptersList=function(){var b,c,d,e,f,g,h,i,j,k,d,l;if(b=this,!this.$chaptersNav)return!1;if("undefined"==typeof this.useChapterTimes&&("chapter"===this.seekbarScope&&this.selectedChapters.cues.length?this.useChapterTimes=!0:this.useChapterTimes=!1),c=this.useChapterTimes?this.selectedChapters.cues:this.chapters.length>=1?this.chapters[0].cues:[],c.length>0){for(d=a("<ul>"),e=0;e<c.length;e++)f=e,g=a("<li></li>"),h=a("<button>",{type:"button",val:f}).text(this.flattenCueForCaption(c[f])),j=function(c){return function(){b.seekTrigger="chapter",k=a(this).closest("li"),d=a(this).closest("ul").find("li"),l=d.index(k),d.removeClass("able-current-chapter").attr("aria-selected",""),k.addClass("able-current-chapter").attr("aria-selected","true"),b.updateChapter(c),b.seekTo(c)}},h.on("click",j(c[f].start)),h.on("focus",function(){a(this).closest("ul").find("li").removeClass("able-focus"),a(this).closest("li").addClass("able-focus")}),g.on("hover",function(){a(this).closest("ul").find("li").removeClass("able-focus"),a(this).addClass("able-focus")}),g.on("mouseleave",function(){a(this).removeClass("able-focus")}),h.on("blur",function(){a(this).closest("li").removeClass("able-focus")}),g.append(h),d.append(g),this.defaultChapter===c[f].id&&(h.attr("aria-selected","true").parent("li").addClass("able-current-chapter"),this.currentChapter=c[f],i=!0);i||(this.currentChapter=c[0],d.find("button").first().attr("aria-selected","true").parent("li").addClass("able-current-chapter")),this.$chaptersNav.html(d)}return!1},AblePlayer.prototype.seekToChapter=function(a){for(var b=0;b<this.selectedChapters.cues.length;){if(this.selectedChapters.cues[b].id==a){this.seekTo(this.selectedChapters.cues[b].start),this.updateChapter(this.selectedChapters.cues[b].start);break}b++}},AblePlayer.prototype.updateChapter=function(a){if("undefined"!=typeof this.selectedChapters){var b,c,d;for(b=this.selectedChapters.cues,c=0;c<b.length;c++)if(b[c].start<=a&&b[c].end>a){d=c;break}"undefined"!=typeof d&&this.currentChapter!==b[d]&&(this.currentChapter=b[d],this.useChapterTimes&&(this.chapterDuration=this.getChapterDuration(),this.seekIntervalCalculated=!1),"undefined"!=typeof this.$chaptersDiv&&(this.$chaptersDiv.find("ul").find("li").removeClass("able-current-chapter").attr("aria-selected",""),this.$chaptersDiv.find("ul").find("li").eq(d).addClass("able-current-chapter").attr("aria-selected","true")))}},AblePlayer.prototype.getChapterDuration=function(){var a,b,c;return"undefined"==typeof this.currentChapter?0:(a=this.getDuration(),b=this.selectedChapters.cues.length-1,this.selectedChapters.cues[b]==this.currentChapter&&this.currentChapter.end!==a?(c=a,this.currentChapter.end=a):c=this.currentChapter.end,c-this.currentChapter.start)},AblePlayer.prototype.getChapterElapsed=function(){if("undefined"==typeof this.currentChapter)return 0;var a=(this.getDuration(),this.getElapsed());return a>this.currentChapter.start?a-this.currentChapter.start:0},AblePlayer.prototype.convertChapterTimeToVideoTime=function(a){if("undefined"!=typeof this.currentChapter){var b=this.currentChapter.start+a;return b>this.currentChapter.end?this.currentChapter.end:b}return a},AblePlayer.prototype.getChapterClickFunction=function(a){var b=this;return function(){b.seekTrigger="chapter",b.seekTo(a),b.hidingPopup=!0,b.chaptersPopup.hide(),setTimeout(function(){b.hidingPopup=!1},100),b.$chaptersButton.focus()}}}(jQuery),function(a){AblePlayer.prototype.updateMeta=function(a){this.hasMeta&&("text"===this.metaType?(this.$metaDiv.show(),this.showMeta(a||this.getElapsed())):this.showMeta(a||this.getElapsed()))},AblePlayer.prototype.showMeta=function(b){var c,d,e,f,g,h,i,j,k,l;for(c=[],f=this.meta.length>=1?this.meta:[],d=0;d<f.length;d++)if(f[d].start<=b&&f[d].end>b){e=d;break}if("undefined"!=typeof e){if(this.currentMeta!==e){if("text"===this.metaType)this.$metaDiv.html(this.flattenCueForMeta(f[e]).replace("\n","<br>"));else if("selector"===this.metaType){for(g=this.flattenCueForMeta(f[e]),h=g.split("\n"),i=0;i<h.length;i++)j=a.trim(h[i]),"pause"===j.toLowerCase().trim()?(this.hideBigPlayButton=!0,this.pauseMedia()):"focus:"==j.toLowerCase().substring(0,6)?(l=j.substring(6).trim(),a(l).length&&a(l).focus()):a(j).length&&(k=parseInt(a(j).attr("data-duration")),"undefined"==typeof k||isNaN(k)?a(j).show():a(j).show().delay(k).fadeOut(),this.visibleSelectors.push(j),c.push(j));if(this.visibleSelectors&&this.visibleSelectors.length&&this.visibleSelectors.length!==c.length)for(i=this.visibleSelectors.length-1;i>=0;i--)-1==a.inArray(this.visibleSelectors[i],c)&&(a(this.visibleSelectors[i]).hide(),this.visibleSelectors.splice(i,1))}this.currentMeta=e}}else{if("undefined"!=typeof this.$metaDiv&&this.$metaDiv.html(""),this.visibleSelectors&&this.visibleSelectors.length){for(i=0;i<this.visibleSelectors.length;i++)a(this.visibleSelectors[i]).hide();this.visibleSelectors=[]}this.currentMeta=-1}},AblePlayer.prototype.flattenCueForMeta=function(a){for(var b=[],c=function(a){var b,d=[];if("string"===a.type)d.push(a.value);else if("v"===a.type)for(d.push("["+a.value+"]"),b=0;b<a.children.length;b++)d.push(c(a.children[b]));else for(b=0;b<a.children.length;b++)d.push(c(a.children[b]));return d.join("")},d=0;d<a.components.children.length;d++)b.push(c(a.components.children[d]));return b.join("")}}(jQuery),function(a){AblePlayer.prototype.injectTranscriptArea=function(){this.$transcriptArea=a("<div>",{"class":"able-transcript-area",tabindex:"-1"}),this.$transcriptToolbar=a("<div>",{"class":"able-window-toolbar able-"+this.toolbarIconColor+"-controls"}),this.$transcriptDiv=a("<div>",{"class":"able-transcript"}),this.$autoScrollTranscriptCheckbox=a('<input id="autoscroll-transcript-checkbox" type="checkbox">'),this.$transcriptToolbar.append(a('<label for="autoscroll-transcript-checkbox">'+this.tt.autoScroll+": </label>"),this.$autoScrollTranscriptCheckbox),this.$transcriptLanguageSelect=a('<select id="transcript-language-select">'),this.$unknownTranscriptOption=a('<option val="unknown">'+this.tt.unknown+"</option>"),this.$transcriptLanguageSelect.append(this.$unknownTranscriptOption),this.$transcriptLanguageSelect.prop("disabled",!0);var b=a('<div class="transcript-language-select-wrapper">');this.$transcriptLanguageSelectContainer=b,b.append(a('<label for="transcript-language-select">'+this.tt.language+": </label>"),this.$transcriptLanguageSelect),this.$transcriptToolbar.append(b),this.$transcriptArea.append(this.$transcriptToolbar,this.$transcriptDiv),this.transcriptDivLocation?a("#"+this.transcriptDivLocation).append(this.$transcriptArea):this.$ableWrapper.append(this.$transcriptArea),this.transcriptDivLocation||(this.initDragDrop("transcript"),1===this.prefTranscript&&this.positionDraggableWindow("transcript",this.getDefaultWidth("transcript"))),this.prefTranscript||this.transcriptDivLocation||this.$transcriptArea.hide()},AblePlayer.prototype.addTranscriptAreaEvents=function(){var a=this;this.$autoScrollTranscriptCheckbox.click(function(){a.handleTranscriptLockToggle(a.$autoScrollTranscriptCheckbox.prop("checked"))}),this.$transcriptDiv.on("mousewheel DOMMouseScroll click scroll",function(b){a.scrollingTranscript||(a.autoScrollTranscript=!1,a.refreshControls()),a.scrollingTranscript=!1}),"undefined"!=typeof this.$transcriptLanguageSelect&&(this.$transcriptLanguageSelect.on("click mousedown",function(a){a.stopPropagation()}),this.$transcriptLanguageSelect.on("change",function(){var b=a.$transcriptLanguageSelect.val();a.syncTrackLanguages("transcript",b)}))},AblePlayer.prototype.transcriptSrcHasRequiredParts=function(){return a("#"+this.transcriptSrc).length&&(this.$transcriptArea=a("#"+this.transcriptSrc),this.$transcriptArea.find(".able-window-toolbar").length&&(this.$transcriptToolbar=this.$transcriptArea.find(".able-window-toolbar").eq(0),this.$transcriptArea.find(".able-transcript").length&&(this.$transcriptDiv=this.$transcriptArea.find(".able-transcript").eq(0),this.$transcriptArea.find(".able-transcript-seekpoint").length)))?(this.$transcriptSeekpoints=this.$transcriptArea.find(".able-transcript-seekpoint"),!0):!1},AblePlayer.prototype.setupManualTranscript=function(){this.$autoScrollTranscriptCheckbox=a('<input id="autoscroll-transcript-checkbox" type="checkbox">'),this.$transcriptToolbar.append(a('<label for="autoscroll-transcript-checkbox">'+this.tt.autoScroll+": </label>"),this.$autoScrollTranscriptCheckbox)},AblePlayer.prototype.updateTranscript=function(){if(this.transcriptType){if("external"===this.transcriptType||"popup"===this.transcriptType){var b,c,d;if(this.transcriptLang?c=this.transcriptCaptions.cues:this.transcriptCaptions?(this.transcriptLang=this.transcriptCaptions.language,c=this.transcriptCaptions.cues):this.selectedCaptions&&(this.transcriptLang=this.captionLang,c=this.selectedCaptions.cues),this.transcriptChapters)b=this.transcriptChapters.cues;else if(this.chapters.length>0){if(this.transcriptLang)for(var e=0;e<this.chapters.length;e++)this.chapters[e].language===this.transcriptLang&&(b=this.chapters[e].cues);"undefined"==typeof b&&(b=this.chapters[0].cues||[])}if(this.transcriptDescriptions)d=this.transcriptDescriptions.cues;else if(this.descriptions.length>0){if(this.transcriptLang)for(var e=0;e<this.descriptions.length;e++)this.descriptions[e].language===this.transcriptLang&&(d=this.descriptions[e].cues);d||(d=this.descriptions[0].cues||[])}var f=this.generateTranscript(b||[],c||[],d||[]);this.$transcriptDiv.html(f),this.$transcriptLanguageSelect&&(this.$transcriptLanguageSelect.find("option:selected").prop("selected",!1),this.$transcriptLanguageSelect.find("option[lang="+this.transcriptLang+"]").prop("selected",!0))}var g=this;1===this.prefTabbable&&a(".able-transcript span.able-transcript-seekpoint").attr("tabindex","0"),this.$transcriptArea.length>0&&this.$transcriptArea.find("span.able-transcript-seekpoint").click(function(b){g.seekTrigger="transcript";var c=parseFloat(a(this).attr("data-start"));c+=.01,g.seekingFromTranscript?g.seekingFromTranscript=!1:(g.seekingFromTranscript=!0,g.seekTo(c))})}},AblePlayer.prototype.highlightTranscript=function(b){if(this.transcriptType){var c,d,e=this;b=parseFloat(b),this.$transcriptArea.find("span.able-transcript-caption").each(function(){return c=parseFloat(a(this).attr("data-start")),d=parseFloat(a(this).attr("data-end")),b>=c&&d>=b?(e.$transcriptArea.find(".able-highlight").removeClass("able-highlight"),a(this).addClass("able-highlight"),!1):void 0}),e.currentHighlight=a(".able-highlight"),0===e.currentHighlight.length&&(e.currentHighlight=null)}},AblePlayer.prototype.generateTranscript=function(b,c,d){var e,f=this,g=a('<div class="able-transcript-container"></div>');if(g.attr("lang",this.transcriptLang),e="undefined"!=typeof this.transcriptTitle?this.transcriptTitle:this.lyricsMode?this.tt.lyricsTitle:this.tt.transcriptTitle,"undefined"==typeof this.transcriptDivLocation){var h=this.playerHeadingLevel;h+=1;var i=h+1;if(6>=h)var j="h"+h.toString();else var j="div";var k=a("<"+j+">");k.addClass("able-transcript-heading"),h>6&&k.attr({role:"heading","aria-level":h}),k.text(e),k.attr("lang",this.lang),g.append(k)}for(var l=0,m=0,n=0,o=function(b,c){if(6>=i)var d="h"+i.toString();else var d="div";var e=a("<"+d+">",{"class":"able-transcript-chapter-heading"});i>6&&e.attr({role:"heading","aria-level":i});for(var f=function(a){var b=[];if("string"===a.type)b.push(a.value);else for(var c=0;c<a.children.length;c++)b=b.concat(f(a.children[c]));return b},g=a("<span>",{"class":"able-transcript-seekpoint"}),h=0;h<c.components.children.length;h++)for(var j=f(c.components.children[h]),k=0;k<j.length;k++)g.append(j[k]);g.attr("data-start",c.start.toString()),g.attr("data-end",c.end.toString()),e.append(g),b.append(e)},p=function(b,c){var d=a("<div>",{"class":"able-transcript-desc"}),e=a("<span>",{"class":"able-hidden"});e.attr("lang",f.lang),e.text(f.tt.prefHeadingDescription+": "),d.append(e);for(var g=function(a){var b=[];if("string"===a.type)b.push(a.value);else for(var c=0;c<a.children.length;c++)b=b.concat(g(a.children[c]));return b},h=a("<span>",{"class":"able-transcript-seekpoint"}),i=0;i<c.components.children.length;i++)for(var j=g(c.components.children[i]),k=0;k<j.length;k++)h.append(j[k]);h.attr("data-start",c.start.toString()),h.attr("data-end",c.end.toString()),d.append(h),b.append(d)},q=function(b,c){for(var d=a("<span>",{"class":"able-transcript-seekpoint able-transcript-caption"}),e=function(b){var c=[],d=function(b){var c=[];if(""===b)return c;var e=b.indexOf("["),f=b.indexOf("]"),g=b.indexOf("("),h=b.indexOf(")"),i=-1!==e&&-1!==f,j=-1!==g&&-1!==h;if(j&&i&&g>e||i){c=c.concat(d(b.substring(0,e)));var k=a("<span>",{"class":"able-unspoken"});k.text(b.substring(e,f+1)),c.push(k),c=c.concat(d(b.substring(g,h+1)))}else if(j){c=c.concat(d(b.substring(0,g)));var k=a("<span>",{"class":"able-unspoken"});k.text(b.substring(e,f+1)),c.push(k),c=c.concat(d(b.substring(h+1)))}else c.push(b);return c};if("string"===b.type)c=c.concat(d(b.value));else if("v"===b.type){var f=a("<span>",{"class":"able-unspoken"});f.text("("+b.value+")"),c.push(f);for(var g=0;g<b.children.length;g++)for(var h=e(b.children[g]),i=0;i<h.length;i++)c.push(h[i])}else if("b"===b.type||"i"===b.type){if("b"===b.type)var j=a("<strong>");else if("i"===b.type)var j=a("<em>");for(var g=0;g<b.children.length;g++)for(var h=e(b.children[g]),i=0;i<h.length;i++)j.append(h[i]);("b"===b.type||"i"==b.type)&&c.push(j," ")}else for(var g=0;g<b.children.length;g++)c=c.concat(e(b.children[g]));return c},g=0;g<c.components.children.length;g++)for(var h=e(c.components.children[g]),i=0;i<h.length;i++){var j=h[i];"string"==typeof j&&(f.lyricsMode?j=j.replace("\n","<br>")+"<br>":j+=" "),d.append(j)}d.attr("data-start",c.start.toString()),d.attr("data-end",c.end.toString()),b.append(d),b.append(" \n")};l<b.length||n<d.length||m<c.length;){if(l<b.length&&n<d.length&&m<c.length)var r=Math.min(b[l].start,d[n].start,c[m].start);else if(l<b.length&&n<d.length)var r=Math.min(b[l].start,d[n].start);else if(l<b.length&&m<c.length)var r=Math.min(b[l].start,c[m].start);else if(n<d.length&&m<c.length)var r=Math.min(d[n].start,c[m].start);else var r=null;null!==r?"undefined"!=typeof b[l]&&b[l].start===r?(o(g,b[l]),l+=1):"undefined"!=typeof d[n]&&d[n].start===r?(p(g,d[n]),n+=1):(q(g,c[m]),m+=1):l<b.length?(o(g,b[l]),l+=1):n<d.length?(p(g,d[n]),n+=1):m<c.length&&(q(g,c[m]),m+=1)}var s=g.children(),t=0;return s.each(function(){a(this).hasClass("able-transcript-caption")?((-1!==a(this).text().indexOf("[")||-1!==a(this).text().indexOf("("))&&t>0&&(g.find(".able-block-temp").removeClass("able-block-temp").wrapAll('<div class="able-transcript-block"></div>'),t=0),a(this).addClass("able-block-temp"),t++):t>0&&(g.find(".able-block-temp").removeClass("able-block-temp").wrapAll('<div class="able-transcript-block"></div>'),t=0)}),g}}(jQuery),function(a){AblePlayer.prototype.showSearchResults=function(){var b=this;if(this.searchDiv&&this.searchString&&a("#"+this.SearchDiv)){var c=this.searchFor(this.searchString);if(c.length>0){var d=a("<p>",{"class":"able-search-results-summary"}),e="Found <strong>"+c.length+"</strong> matching items. ";e+="Click the time associated with any item ",e+="to play the video from that point.",d.html(e);for(var f=a("<ul>"),g=0;g<c.length;g++){var h=a("<li>",{}),i=this.secondsToTime(c[g].start),j=a("<span>",{"class":"able-search-results-time","data-start":c[g].start,title:i.title,tabindex:"0"});j.text(i.value),j.click(function(c){var d=parseFloat(a(this).attr("data-start"));d+=.01,b.seeking=!0,b.seekTo(d)});var k=a("<span>",{"class":"able-search-result-text"});k.html("..."+c[g].caption+"..."),h.append(j,k),f.append(h)}a("#"+this.searchDiv).append(d,f)}else{var l=a("<p>").text("No results found.");a("#"+this.searchDiv).append(l)}}},AblePlayer.prototype.searchFor=function(b){var c,d,e,f,g,h,i;e=[];var j=b.split(" ");if(this.captions.length>0){for(h=0;h<this.captions.length;h++)this.captions[h].language===this.searchLang&&(c=this.searchLang,d=this.captions[h].cues);if(d.length>0)for(g=0,h=0;h<d.length;h++)if(-1!==a.inArray(d[h].components.children[0].type,["string","i","b","u","v","c"]))for(f=this.flattenCueForCaption(d[h]),i=0;i<j.length;i++)if(-1!==f.indexOf(j[i])){e[g]=[],e[g].start=d[h].start,e[g].lang=c,e[g].caption=this.highlightSearchTerm(j,i,f),g++;break}}return e},AblePlayer.prototype.highlightSearchTerm=function(a,b,c){var d,e,f,g,h,i,j;for(d=b;d<a.length;d++)e=a[d],f=c.indexOf(e),-1!==f&&(g=e.length,g>0?(h=c.substring(0,f),i='<span class="able-search-term">'+e+"</span>",j=c.substring(f+g),c=h+i+j):(h='<span class="able-search-term">'+e+"</span>",i=c.substring(f+g),c=h+i));return c},AblePlayer.prototype.secondsToTime=function(a){var a=Math.floor(a),b=parseInt(a/3600,10)%24,c=parseInt(a/60,10)%60,d=a%60,e="",f="";b>0&&(e+=b+":"),10>c?(e+="0"+c+":",c>0&&(f+=c+" minutes ")):(e+=c+":",f+=c+" minutes "),10>d?(e+="0"+d,d>0&&(f+=d+" seconds ")):(e+=d,f+=d+" seconds ");var g=[];return g.value=e,g.title=f,g}}(jQuery),function(a){AblePlayer.prototype.onMediaUpdateTime=function(){var a=this.getElapsed();this.swappingSrc&&"undefined"!=typeof this.swapTime?this.swapTime===a&&this.playing&&(this.playMedia(),this.swappingSrc=!1,this.swapTime=null):this.startedPlaying&&(1===this.prefHighlight&&this.highlightTranscript(a),this.updateCaption(),this.showDescription(a),this.updateChapter(a),this.updateMeta(),this.refreshControls())},AblePlayer.prototype.onMediaPause=function(){this.controlsHidden&&(this.fadeControls("in"),this.controlsHidden=!1),this.hidingControls&&(window.clearTimeout(this.hideControlsTimeout),this.hidingControls=!1)},AblePlayer.prototype.onMediaComplete=function(){this.hasPlaylist&&(this.playlistIndex===this.$playlist.length-1?this.loop&&(this.playlistIndex=0,this.swapSource(0)):(this.playlistIndex++,this.swapSource(this.playlistIndex))),this.refreshControls()},AblePlayer.prototype.onMediaNewSourceLoad=function(){if(this.swappingSrc===!0)if(this.swapTime>0)this.seekTo(this.swapTime);else{if(this.playing)if("jw"===this.player){var a=this.jwPlayer;setTimeout(function(){a.play(!0)},500)}else this.playMedia();this.swappingSrc=!1,this.refreshControls()}},AblePlayer.prototype.onWindowResize=function(){if(this.isFullscreen()){var b,c;b=a(window).width(),c=this.isUserAgent("Firefox")||this.isUserAgent("Trident")||this.isUserAgent("Edge")?window.innerHeight-this.$playerDiv.outerHeight()-20:window.outerHeight>=window.innerHeight?window.innerHeight-this.$playerDiv.outerHeight():window.outerHeight,this.$descDiv.is(":hidden")||(c-=this.$descDiv.height()),this.positionCaptions("overlay")}else this.restoringAfterFullScreen?(b=this.preFullScreenWidth,c=this.preFullScreenHeight):(b=this.$ableWrapper.width(),c="undefined"!=typeof this.aspectRatio?Math.round(b/this.aspectRatio):this.$ableWrapper.height(),this.positionCaptions());this.resizePlayer(b,c)},AblePlayer.prototype.addSeekbarListeners=function(){var a=this;this.seekBar.bodyDiv.on("startTracking",function(b){a.pausedBeforeTracking=a.isPaused(),a.pauseMedia()}).on("tracking",function(b,c){a.highlightTranscript(c),a.updateCaption(c),a.showDescription(c),a.updateChapter(a.convertChapterTimeToVideoTime(c)),a.updateMeta(c),a.refreshControls()}).on("stopTracking",function(b,c){a.useChapterTimes?a.seekTo(a.convertChapterTimeToVideoTime(c)):a.seekTo(c),a.pausedBeforeTracking||setTimeout(function(){a.playMedia()},200)})},AblePlayer.prototype.onClickPlayerButton=function(b){var c=a(b).attr("class").split(" ")[0].substr(20);"play"===c?this.handlePlay():"restart"===c?(this.seekTrigger="restart",this.handleRestart()):"rewind"===c?(this.seekTrigger="rewind",this.handleRewind()):"forward"===c?(this.seekTrigger="forward",this.handleFastForward()):"mute"===c?this.handleMute():"volume"===c?this.handleVolume():"faster"===c?this.handleRateIncrease():"slower"===c?this.handleRateDecrease():"captions"===c?this.handleCaptionToggle():"chapters"===c?this.handleChapters():"descriptions"===c?this.handleDescriptionToggle():"sign"===c?this.handleSignToggle():"preferences"===c?this.handlePrefsClick():"help"===c?this.handleHelpClick():"transcript"===c?this.handleTranscriptToggle():"fullscreen"===c&&this.handleFullscreenToggle()},AblePlayer.prototype.okToHandleKeyPress=function(){var b=AblePlayer.getActiveDOMElement();return"INPUT"===a(b).prop("tagName")?!1:!0},AblePlayer.prototype.onPlayerKeyPress=function(b){if(!this.okToHandleKeyPress())return!1;var c=b.which;if(c>=65&&90>=c&&(c+=32),!(a(":focus").is("[contenteditable]")||a(":focus").is("input")||a(":focus").is("textarea")||a(":focus").is("select")||b.target.hasAttribute("contenteditable")||"INPUT"===b.target.tagName||"TEXTAREA"===b.target.tagName||"SELECT"===b.target.tagName))if(27===c)this.closePopups();else if(32===c)0===this.$ableWrapper.find(".able-controller button:focus").length&&this.handlePlay();else if(112===c)this.usingModifierKeys(b)&&this.handlePlay();else if(115===c)this.usingModifierKeys(b)&&this.handleRestart();else if(109===c)this.usingModifierKeys(b)&&this.handleMute();else if(118===c)this.usingModifierKeys(b)&&this.handleVolume();else if(c>=49&&57>=c)this.usingModifierKeys(b)&&this.handleVolume(c);else if(99===c)this.usingModifierKeys(b)&&this.handleCaptionToggle();else if(100===c)this.usingModifierKeys(b)&&this.handleDescriptionToggle();else if(102===c)this.usingModifierKeys(b)&&this.handleFastForward();else if(114===c)this.usingModifierKeys(b)&&this.handleRewind();else if(101===c)this.usingModifierKeys(b)&&this.handlePrefsClick();else if(13===c){var d=a(document.activeElement);"SPAN"===d.prop("tagName")?d.click():"LI"===d.prop("tagName")&&d.click()}},AblePlayer.prototype.addHtml5MediaListeners=function(){var a=this;this.$media.on("emptied",function(){}).on("loadedmetadata",function(){a.onMediaNewSourceLoad()}).on("canplay",function(){}).on("canplaythrough",function(){"restart"==a.seekTrigger||"chapter"==a.seekTrigger||"transcript"==a.seekTrigger?a.playMedia():a.startedPlaying?a.hasPlaylist&&(a.playlistIndex!==a.$playlist.length-1||a.loop)&&a.playMedia():a.startTime?a.seeking?(a.seeking=!1,a.autoplay&&a.playMedia()):a.seekTo(a.startTime):a.defaultChapter&&"undefined"!=typeof a.selectedChapters?a.seekToChapter(a.defaultChapter):a.autoplay&&a.playMedia()}).on("playing",function(){a.playing=!0,a.refreshControls()}).on("ended",function(){a.playing=!1,a.onMediaComplete()}).on("progress",function(){a.refreshControls()}).on("waiting",function(){a.refreshControls()}).on("durationchange",function(){a.refreshControls()}).on("timeupdate",function(){a.onMediaUpdateTime()}).on("play",function(){a.debug}).on("pause",function(){a.clickedPlay?a.playing=!1:a.hasPlaylist||(a.playing=!1),a.clickedPlay=!1,a.onMediaPause()}).on("ratechange",function(){}).on("volumechange",function(){a.volume=a.getVolume(),a.debug}).on("error",function(){if(a.debug)switch(a.media.error.code){case 1:break;case 2:break;case 3:break;case 4:}})},AblePlayer.prototype.addJwMediaListeners=function(){var b=this;this.jwPlayer.onTime(function(){b.onMediaUpdateTime()}).onComplete(function(){b.onMediaComplete()}).onReady(function(){b.debug,a("#"+b.jwId).removeAttr("tabindex"),b.$fallbackWrapper=a("#"+b.mediaId+"_fallback_wrapper"),b.fallbackDefaultWidth=b.$fallbackWrapper.width(),b.fallbackDefaultHeight=b.$fallbackWrapper.height(),b.fallbackRatio=b.fallbackDefaultWidth/b.fallbackDefaultHeight,b.startTime>0&&!b.startedPlaying&&(b.seekTo(b.startTime),b.startedPlaying=!0),b.refreshControls()}).onSeek(function(a){b.debug&&console.log("Seeking to "+a.position+"; target: "+a.offset),b.jwSeekPause&&(b.jwSeekPause=!1,b.playMedia()),setTimeout(function(){b.refreshControls()},300)}).onPlay(function(){b.debug,b.refreshControls()}).onPause(function(){b.onMediaPause()}).onBuffer(function(){b.debug,b.refreshControls()}).onBufferChange(function(){b.refreshControls()}).onIdle(function(a){b.debug,b.refreshControls()}).onMeta(function(){b.debug}).onPlaylist(function(){b.debug,b.onMediaNewSourceLoad()})},AblePlayer.prototype.addEventListeners=function(){var b;if(b=this,a(window).resize(function(){b.onWindowResize()}),window.MutationObserver){var c=this.$ableDiv[0],d=new MutationObserver(function(a){a.forEach(function(a){"attributes"===a.type&&"style"===a.attributeName&&b.$ableDiv.is(":visible")&&b.refreshControls()})}),e={attributes:!0,childList:!0,characterData:!0};d.observe(c,e)}this.addSeekbarListeners(),this.$controllerDiv.find("button").on("click",function(a){a.stopPropagation(),b.onClickPlayerButton(this)}),a(document).on("click",function(c){return 0!==c.button?!1:void((a(".able-popup:visible").length||a(".able-volume-popup:visible"))&&b.closePopups())}),this.$ableDiv.on("mousemove",function(){b.controlsHidden&&(b.fadeControls("in"),b.controlsHidden=!1,b.hidingControls=!0,b.hideControlsTimeout=window.setTimeout(function(){"undefined"!=typeof b.playing&&b.playing===!0&&(b.fadeControls("out"),b.controlsHidden=!0,b.hidingControls=!1)},3e3))}),a(document).keydown(function(){b.controlsHidden&&(b.fadeControls("in"),b.controlsHidden=!1)}),this.$ableDiv.keydown(function(a){AblePlayer.nextIndex>1&&b.onPlayerKeyPress(a)}),this.$transcriptArea&&this.$transcriptArea.keydown(function(a){AblePlayer.nextIndex>1&&b.onPlayerKeyPress(a)}),this.$playlist&&this.$playlist.click(function(){b.playlistIndex=a(this).index(),b.swapSource(b.playlistIndex)}),this.$media.click(function(){b.handlePlay()}),"html5"===this.player?this.addHtml5MediaListeners():"jw"===this.player?this.addJwMediaListeners():"youtube"===this.player&&setInterval(function(){b.onMediaUpdateTime()},300)}}(jQuery),function(a){AblePlayer.prototype.initDragDrop=function(b){var c,d,e,f,g,h;c=this,"transcript"===b?(d=this.$transcriptArea,f="transcript-window",e=this.$transcriptToolbar):"sign"===b&&(d=this.$signWindow,f="sign-window",e=this.$signToolbar),e.addClass("able-draggable"),g=a("<div>",{"class":"able-resizable"}),h=parseInt(d.css("z-index"))+100,g.css("z-index",h),d.append(g),e.on("mousedown",function(a){return a.stopPropagation(),c.windowMenuClickRegistered||(c.windowMenuClickRegistered=!0,c.startMouseX=a.pageX,c.startMouseY=a.pageY,c.dragDevice="mouse",c.startDrag(b,d)),!1}),e.on("mouseup",function(a){return a.stopPropagation(),c.dragging&&"mouse"===c.dragDevice&&c.endDrag(b),!1}),g.on("mousedown",function(a){return a.stopPropagation(),c.windowMenuClickRegistered?void 0:(c.windowMenuClickRegistered=!0,c.startMouseX=a.pageX,c.startMouseY=a.pageY,c.startResize(b,d),!1)}),g.on("mouseup",function(a){return a.stopPropagation(),c.resizing&&c.endResize(b),!1}),d.on("click",function(){c.windowMenuClickRegistered||c.finishingDrag||c.updateZIndex(b),c.finishingDrag=!1}),this.addWindowMenu(b,d,f)},AblePlayer.prototype.addWindowMenu=function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,g;e=this,this.windowMenuClickRegistered=!1,this.finishingDrag=!1,f=a('<div role="alert"></div>'),f.addClass("able-alert"),f.hide(),f.appendTo(this.$activeWindow),f.css({top:c.offset().top}),g=this.mediaId+"-"+d+"-menu",h=a("<button>",{type:"button",tabindex:"0","aria-label":this.tt.windowButtonLabel,"aria-haspopup":"true","aria-controls":g,"class":"able-button-handler-preferences"}),"font"===this.iconType?(i=a("<span>",{"class":"icon-preferences","aria-hidden":"true"}),h.append(i)):(j=this.rootPath+"button-icons/"+this.toolbarIconColor+"/preferences.png",k=a("<img>",{src:j,alt:"",role:"presentation"}),h.append(k)),l=a("<span>",{"class":"able-clipped"}).text(this.tt.windowButtonLabel),h.append(l),m=this.mediaId+"-"+d+"-tooltip",n=a("<div>",{"class":"able-tooltip",id:m}).hide(),h.on("mouseenter focus",function(b){var c=a(this).attr("aria-label"),d=a(this).position(),f=a(this).height(),g=(a(this).width(),d.top-f-5),i=0,j={left:"",right:i+"px",top:g+"px"},k=AblePlayer.localGetElementById(h[0],m).text(c).css(j);e.showTooltip(k),a(this).on("mouseleave blur",function(){AblePlayer.localGetElementById(h[0],m).text("").hide()})}),o=this.setupPopups(d),"transcript"===b?(this.$transcriptAlert=f,this.$transcriptPopupButton=h,this.$transcriptPopup=o,this.$transcriptToolbar.append(f,h,n,o)):"sign"===b&&(this.$signAlert=f,this.$signPopupButton=h,this.$signPopup=o,this.$signToolbar.append(f,h,n,o)),h.on("click mousedown keydown",function(a){a.stopPropagation(),e.windowMenuClickRegistered||e.finishingDrag||e.handleWindowButtonClick(b,a),
9
- e.finishingDrag=!1}),this.addResizeDialog(b,c)},AblePlayer.prototype.addResizeDialog=function(b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;d=this,"transcript"===b?(e=this.$transcriptPopup,f=this.$transcriptPopupButton):"sign"===b&&(e=this.$signPopup,f=this.$signPopupButton),g=this.mediaId+"-resize-"+b+"-width",h=this.mediaId+"-resize-"+b+"-height",i=c.width(),j=c.height(),k=i/j,l=a("<div></div>",{"class":"able-resize-form"}),m=a("<div></div>"),n=a("<div></div>"),o=a("<input>",{type:"text",id:g,value:i}),p=a("<label>",{"for":g}).text(this.tt.width),q=a("<div></div>"),r=a("<input>",{type:"text",id:h,value:j}),s=a("<label>",{"for":h}).text(this.tt.height),"sign"===b&&(r.prop("readonly",!0),o.on("input",function(){t=a(this).val(),u=Math.round(t/k,0),r.val(u)})),v=a('<button class="modal-button">'+this.tt.save+"</button>"),w=a('<button class="modal-button">'+this.tt.cancel+"</button>"),v.on("click",function(){x=a("#"+g).val(),y=a("#"+h).val(),(x!==i||y!==j)&&(c.css({width:x+"px",height:y+"px"}),d.updateCookie(b)),z.hide(),e.hide(),f.focus()}),w.on("click",function(){z.hide(),e.hide(),f.focus()}),n.append(p,o),q.append(s,r),m.append(n,q),l.append(m,"<hr>",v,w),a("body").append(l),z=new AccessibleDialog(l,f,"alert",this.tt.windowResizeHeading,m,this.tt.closeButtonLabel,"20em"),"transcript"===b?this.transcriptResizeDialog=z:"sign"===b&&(this.signResizeDialog=z)},AblePlayer.prototype.handleWindowButtonClick=function(b,c){var d,e,f,g,h;if(d=this,"transcript"===b?(e=this.$transcriptPopup,f=this.$transcriptPopupButton,g=this.$transcriptToolbar):"sign"===b&&(e=this.$signPopup,f=this.$signPopupButton,g=this.$signToolbar),"keydown"===c.type)if(32===c.which||13===c.which)this.windowMenuClickRegistered=!0;else{if(27!==c.which)return!1;e.hide("fast",function(){d.windowMenuClickRegistered=!1,e.find("li").removeClass("able-focus").attr("tabindex","-1"),f.focus()})}else this.windowMenuClickRegistered=!0;e.is(":visible")?(e.hide(200,"",function(){d.windowMenuClickRegistered=!1}),e.find("li").removeClass("able-focus"),f.attr("aria-expanded","false").focus()):(this.updateZIndex(b),h=f.position().top+f.outerHeight(),e.css("top",h),e.show(200,"",function(){f.attr("aria-expanded","true"),a(this).find("li").first().focus().addClass("able-focus"),d.windowMenuClickRegistered=!1}))},AblePlayer.prototype.handleMenuChoice=function(a,b,c){var d,e,f,g,h;return d=this,"transcript"===a?(e=this.$transcriptArea,f=this.$transcriptPopup,g=this.$transcriptPopupButton,h=this.transcriptResizeDialog):"sign"===a&&(e=this.$signWindow,f=this.$signPopup,g=this.$signPopupButton,h=this.signResizeDialog),"keydown"===c.type?27===c.which?(f.hide("fast",function(){d.windowMenuClickRegistered=!1,f.find("li").removeClass("able-focus").attr("tabindex","-1"),g.focus()}),!1):!1:(f.hide("fast",function(){d.windowMenuClickRegistered=!1,f.find("li").removeClass("able-focus").attr("tabindex","-1")}),"close"!==b&&g.focus(),void("move"===b?(this.showedAlert(a)||(this.showAlert(this.tt.windowMoveAlert,a),"transcript"===a?this.showedTranscriptAlert=!0:"sign"===a&&(this.showedSignAlert=!0)),"keydown"===c.type?this.dragDevice="keyboard":this.dragDevice="mouse",this.startDrag(a,e),f.hide().parent().focus()):"resize"==b?h.show():"close"==b&&("transcript"===a?this.handleTranscriptToggle():"sign"===a&&this.handleSignToggle())))},AblePlayer.prototype.startDrag=function(b,c){var d,e,f,g,h;return d=this,this.$activeWindow=c,this.dragging=!0,"transcript"===b?e=this.$transcriptPopup:"sign"===b&&(e=this.$signPopup),this.showedAlert(b)||(this.showAlert(this.tt.windowMoveAlert,b),"transcript"===b?this.showedTranscriptAlert=!0:"sign"===b&&(this.showedSignAlert=!0)),e.is(":visible")&&e.hide(),this.updateZIndex(b),f=this.$activeWindow.position(),this.dragStartX=f.left,this.dragStartY=f.top,"undefined"==typeof this.startMouseX?(this.dragDevice="keyboard",this.dragKeyX=this.dragStartX,this.dragKeyY=this.dragStartY,this.startingDrag=!0):(this.dragDevice="mouse",this.dragOffsetX=this.startMouseX-this.dragStartX,this.dragOffsetY=this.startMouseY-this.dragStartY),this.$activeWindow.addClass("able-drag").css({position:"absolute",top:this.dragStartY+"px",left:this.dragStartX+"px"}).focus(),"mouse"===this.dragDevice?a(document).on("mousemove",function(a){d.dragging&&(g=a.pageX-d.dragOffsetX,h=a.pageY-d.dragOffsetY,d.resetDraggedObject(g,h))}):"keyboard"===this.dragDevice&&this.$activeWindow.on("keydown",function(a){d.dragging&&d.dragKeys(b,a)}),!1},AblePlayer.prototype.dragKeys=function(a,b){var c,d;if(this.startingDrag)return this.startingDrag=!1,!1;switch(c=b.which,d=10,c){case 37:case 63234:this.dragKeyX-=d;break;case 38:case 63232:this.dragKeyY-=d;break;case 39:case 63235:this.dragKeyX+=d;break;case 40:case 63233:this.dragKeyY+=d;break;case 13:case 27:return this.endDrag(a),!1;default:return!1}return this.resetDraggedObject(this.dragKeyX,this.dragKeyY),b.preventDefault&&b.preventDefault(),!1},AblePlayer.prototype.resetDraggedObject=function(a,b){this.$activeWindow.css({left:a+"px",top:b+"px"})},AblePlayer.prototype.resizeObject=function(a,b,c){var d;this.$activeWindow.css({width:b+"px",height:c+"px"}),"transcript"===a&&(d=c-50,this.$transcriptDiv.css("height",d+"px"))},AblePlayer.prototype.endDrag=function(b){var c,d;"transcript"===b?(c=this.$transcriptPopup,d=this.$transcriptPopupButton):"sign"===b&&(c=this.$signPopup,d=this.$signPopupButton),a(document).off("mousemove mouseup"),this.$activeWindow.off("keydown").removeClass("able-drag"),"keyboard"===this.dragDevice&&d.focus(),this.dragging=!1,this.updateCookie(b),this.startMouseX=void 0,this.startMouseY=void 0,this.windowMenuClickRegistered=!1,this.finishingDrag=!0,setTimeout(function(){this.finishingDrag=!1},100)},AblePlayer.prototype.isCloseToCorner=function(a,b,c){var d,e,f,g,h,i,j,k;return d=10,e=a.offset(),f=e.top,g=e.left,h=a.width(),i=a.height(),j=f+i,k=g+h,Math.abs(j-c)<=d&&Math.abs(k-b)<=d?!0:!1},AblePlayer.prototype.startResize=function(b,c){var d,e,f,g,h;return d=this,this.$activeWindow=c,this.resizing=!0,"transcript"===b?e=this.$transcriptPopup:"sign"===b&&(e=this.$signPopup),e.is(":visible")&&e.hide().parent().focus(),f=this.$activeWindow.position(),this.dragKeyX=this.dragStartX,this.dragKeyY=this.dragStartY,this.dragStartWidth=this.$activeWindow.width(),this.dragStartHeight=this.$activeWindow.height(),a(document).on("mousemove",function(a){d.resizing&&(g=d.dragStartWidth+(a.pageX-d.startMouseX),h=d.dragStartHeight+(a.pageY-d.startMouseY),d.resizeObject(b,g,h))}),!1},AblePlayer.prototype.endResize=function(b){var c,d;"transcript"===b?(c=this.$transcriptPopup,d=this.$transcriptPopupButton):"sign"===b&&(c=this.$signPopup,d=this.$signPopupButton),a(document).off("mousemove mouseup"),this.$activeWindow.off("keydown"),d.show().focus(),this.resizing=!1,this.$activeWindow.removeClass("able-resize"),this.updateCookie(b),this.windowMenuClickRegistered=!1,this.finishingDrag=!0,setTimeout(function(){this.finishingDrag=!1},100)}}(jQuery),function(a){AblePlayer.prototype.initSignLanguage=function(){"html5"===this.player&&(this.signFile=this.$sources.first().attr("data-sign-src"),this.signFile?(this.debug,this.hasSignLanguage=!0,this.injectSignPlayerCode()):this.hasSignLanguage=!1)},AblePlayer.prototype.injectSignPlayerCode=function(){var b,c,d,e,f,g,h;for(b=this,d=this.getDefaultWidth("sign"),c=this.mediaId+"-sign",this.$signVideo=a("<video>",{id:c,tabindex:"-1"}),this.signVideo=this.$signVideo[0],e=0;e<this.$sources.length;e++){if(f=this.$sources[e].getAttribute("data-sign-src"),g=this.$sources[e].getAttribute("type"),!f){this.hasSignLanguage=!1;break}h=a("<source>",{src:f,type:g}),this.$signVideo.append(h)}this.$signWindow=a("<div>",{"class":"able-sign-window",tabindex:"-1"}),this.$signToolbar=a("<div>",{"class":"able-window-toolbar able-"+this.toolbarIconColor+"-controls"}),this.$signWindow.append(this.$signToolbar,this.$signVideo),this.$ableWrapper.append(this.$signWindow),this.initDragDrop("sign"),1===this.prefSign?this.positionDraggableWindow("sign",this.getDefaultWidth("sign")):this.$signWindow.hide()}}(jQuery),function(a){var b={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ, магӀарул мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa",nativeName:"chiCheŵa, chinyanja"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén), 汉语, 漢語"},"zh-tw":{name:"Chinese Traditional (Taiwan)",nativeName:"中文(台灣)"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky, čeština"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"français, langue française"},ff:{name:"Fula",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी, हिंदी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq, Iñupiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी, كشميري‎"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kyrgyz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語), 조선말 (朝鮮語)"},ku:{name:"Kurdish",nativeName:"Kurdî, كوردی‎"},kj:{name:"Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, بهاس ملايو‎"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad, Dinékʼehǰí"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Punjabi",nativeName:"ਪੰਜਾਬੀ, پنجابی‎"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский язык"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी, سنڌي، سندھی‎"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhalese",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish",nativeName:"español, castellano"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ, toğikī, تاجیکی‎"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen, Түркмен"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча, tatarça, تاتارچا‎"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"Uyƣurqə, ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek, Ўзбек, أۇزبېك‎"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ, Saw cuengh"}};AblePlayer.prototype.getLanguageName=function(a){a=a.slice(0,2);var c=b[a];return c?c.name:void 0},AblePlayer.prototype.getLanguageNativeName=function(a){a=a.slice(0,2);var c=b[a];return c?c.nativeName:void 0}}(jQuery),function($){AblePlayer.prototype.getSupportedLangs=function(){var a=["ca","de","en","es","fr","he","it","ja","nb","zh-tw"];return a},AblePlayer.prototype.getTranslationText=function(){var deferred,thisObj,lang,thisObj,msg,translationFile;return deferred=$.Deferred(),thisObj=this,lang=$("body").attr("lang")?$("body").attr("lang"):$("html").attr("lang")?$("html").attr("lang"):null,this.forceLang||lang&&lang!==this.lang&&(msg="Language of web page ("+lang+") ",-1!==$.inArray(lang,this.getSupportedLangs())?(msg+=" has a translation table available.",this.lang=lang):msg+=" is not currently supported. Using default language ("+this.lang+")",this.debug),this.searchLang||(this.searchLang=this.lang),translationFile=this.rootPath+"translations/"+this.lang+".js",this.importTranslationFile(translationFile).then(function(result){thisObj.tt=eval(thisObj.lang),deferred.resolve()}),deferred.promise()},AblePlayer.prototype.importTranslationFile=function(a){var b=$.Deferred();return $.getScript(a).done(function(a,c){b.resolve(a)}).fail(function(a,c,d){b.fail()}),b.promise()}}(jQuery),function(a){AblePlayer.prototype.computeEndTime=function(a,b){var c=0,d=1,e=a.split(":").reverse().map(function(a){return parseFloat(a)}),f=b.split(":").reverse().map(function(a){return parseFloat(a)}),g=e.reduce(function(a,b,e){var g=b+f[e];return e===c&&(g>60&&(f[e+1]+=1,g-=60),g=g.toFixed(3)),e===d&&g>60&&(f[e+1]+=1,g-=60),10>g&&(g="0"+g),a.push(g),a},[]).reverse().join(":");return g},AblePlayer.prototype.ttml2webvtt=function(a){var b=this,c=b.convert.xml2json(a,{ignoreComment:!0,alwaysChildren:!0,compact:!0,spaces:2}),d="WEBVTT\n\n\n",e=JSON.parse(c).tt.body.div.p,f=e.reduce(function(a,c,d){var e=c._text,f=Array.isArray(e),g=c._attributes,h=(b.computeEndTime(g.begin,g.dur),b.computeEndTime(g.begin,"00:00:0")+" --> "+b.computeEndTime(g.begin,g.dur)+"\n"+(f?e.join("\n"):e)+"\n\n");return a+h},d);return f}}(jQuery),function(a){a.doWhen=function(b){return a.Deferred(function(c){var d=a.extend({},{when:null,exec:function(){},interval:100,attempts:100,delayed:0},b,{checkId:null}),e=function(){return d.when()===!0?(d.exec.call(c.promise()),void c.resolve()):void(d.checkId=setInterval(function(){0===d.attempts?(clearInterval(d.checkId),c.reject()):(--d.attempts,d.when()===!0&&(d.attempts=0,clearInterval(d.checkId),d.exec.call(c.promise()),c.resolve()))},d.interval))};d.delayed>0?setTimeout(e,Number(d.delayed)):e()}).promise()}}(jQuery),function(a){AblePlayer.prototype.injectVTS=function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(b=this,a("#able-vts").length&&this.vtsTracks.length){this.langs=[],this.getAllLangs(this.vtsTracks),this.vtsLang=this.lang,c=a("<h2>").text("Video Transcript Sorter"),a("#able-vts").append(c),this.$vtsAlert=a("<div>",{id:"able-vts-alert","aria-live":"polite","aria-atomic":"true"}),a("#able-vts").append(this.$vtsAlert),d=a("<div>",{id:"able-vts-instructions"}),e=a("<p>").text("Use the Video Transcript Sorter to perform any of the following tasks:"),g=a("<ul>"),h=a("<li>").text("Reorder chapters, descriptions, captions, and/or subtitles so they appear in the proper sequence in Able Player's auto-generated transcript."),i=a("<li>").text("Modify content or start/end times (all are directly editable within the table)."),j=a("<li>").text("Insert new content, such as chapters or descriptions."),f=a("<p>").text('When finished editing, click the "Save Changes" button. This will auto-generate new content for all relevant timed text files (chapters, descriptions, captions, and/or subtitles), which can be copied and pasted into separate WebVTT files for use by Able Player.'),g.append(h,i,j),d.append(e,g,f),a("#able-vts").append(d),k=a("<fieldset>"),l=a("<legend>").text("Select a language"),k.append(l);for(m in this.langs)o="vts-lang-radio-"+this.langs[m],n=a("<div>",{}),q=a("<input>",{type:"radio",name:"vts-lang",id:o,value:this.langs[m]}).on("click",function(){b.vtsLang=a(this).val(),b.showVtsAlert("Loading "+b.getLanguageName(b.vtsLang)+" tracks"),b.injectVtsTable("update",b.vtsLang)}),this.langs[m]==this.lang&&q.prop("checked",!0),p=a("<label>",{"for":o}).text(this.getLanguageName(this.langs[m])),n.append(q,p),k.append(n);a("#able-vts").append(k),r=a("<button>",{type:"button",id:"able-vts-save",value:"save"}).text("Save Changes"),a("#able-vts").append(r),this.injectVtsTable("add",this.vtsLang);var t,u,v,w,m;t=["captions","chapters","descriptions","subtitles"],a('td[contenteditable="true"]').on("focus",function(){u=a(this).text()}).on("blur",function(){u!=a(this).text()&&(v=a(this).index(),w=a(this).text(),1===v?-1===a.inArray(w,t)&&("s"===w.substr(0,1)?a(this).text("subtitles"):"d"===w.substr(0,1)?a(this).text("descriptions"):"ch"===w.substr(0,2)?a(this).text("chapters"):a(this).text("captions")):(2===v||3===v)&&a(this).text(b.formatTimestamp(w)))}).on("keydown",function(a){a.stopPropagation()}),a("#able-vts-save").on("click",function(c){c.stopPropagation(),"save"==a(this).attr("value")?(a(this).attr("value","cancel").text("Return to Editor"),s=a("#able-vts table"),a("#able-vts-instructions").hide(),a("#able-vts > fieldset").hide(),a("#able-vts table").remove(),a("#able-vts-icon-credit").remove(),b.parseVtsOutput(s)):(a(this).attr("value","save").text("Save Changes"),a("#able-vts-output").remove(),a("#able-vts-instructions").show(),a("#able-vts > fieldset").show(),a("#able-vts").append(s),a("#able-vts").append(b.getIconCredit()),b.showVtsAlert("Cancelling saving. Any edits you made have been restored in the VTS table."))})}},AblePlayer.prototype.setupVtsTracks=function(a,b,c,d,e){var f,g;f=this.getFilenameFromPath(d),g=this.parseVtsTracks(e),this.vtsTracks.push({kind:a,language:b,label:c,srcFile:f,cues:g})},AblePlayer.prototype.getFilenameFromPath=function(a){var b;return b=a.lastIndexOf("/"),-1===b?a:a.substr(b+1)},AblePlayer.prototype.getFilenameFromTracks=function(a,b){for(var c=0;c<this.vtsTracks.length;c++)if(this.vtsTracks[c].kind===a&&this.vtsTracks[c].language===b)return this.vtsTracks[c].srcFile;return!1},AblePlayer.prototype.parseVtsTracks=function(a){var b,c,d,e,f,g,h,i,j;for(b=a.split("\n"),d=[],e=0;e<b.length;)if(g=b[e],-1!==g.indexOf(" --> ")){if(c=g.trim().split(" "),this.isValidTimestamp(c[0])&&this.isValidTimestamp(c[2])){for(i="",f=e+1,j=!1;f<b.length&&!j;)h=b[f].trim(),h.length>0?i+=i.length>0?"\n"+h:h:j=!0,f++;d.push({start:c[0],end:c[2],content:i}),e=f}}else e++;return d},AblePlayer.prototype.isValidTimestamp=function(a){return/^[0-9:,.]*$/.test(a)?!0:!1},AblePlayer.prototype.formatTimestamp=function(a){var b,c,b=a.substr(0,a.lastIndexOf(".")+1),c=a.substr(a.lastIndexOf(".")+1);if(c.length>3)c=c.substr(0,3);else if(c.length<3)for(;c.length<3;)c+="0";return b+c},AblePlayer.prototype.injectVtsTable=function(b,c){var d,e,f,g,h,i,j,k,l;for("update"===b&&(a("#able-vts table").remove(),a("#able-vts-icon-credit").remove()),d=a("<table>",{lang:c}),g=a("<tr>",{lang:"en"}),e=["Row #","Kind","Start","End","Content","Actions"],f=0;f<e.length;f++)h=a("<th>",{scope:"col"}).text(e[f]),"Actions"===e[f]&&h.addClass("actions"),g.append(h);for(d.append(g),j=this.getAllRows(c),f=0;f<j.length;f++)k=f+1,l="able-vts-row-"+k,g=a("<tr>",{id:l,"class":"kind-"+j[f].kind}),i=a("<td>").text(k),g.append(i),i=a("<td>",{contenteditable:"true"}).text(j[f].kind),g.append(i),i=a("<td>",{contenteditable:"true"}).text(j[f].start),g.append(i),i=a("<td>",{contenteditable:"true"}).text(j[f].end),g.append(i),i=a("<td>",{contenteditable:"true"}).text(j[f].content),g.append(i),i=this.addVtsActionButtons(k,j.length),g.append(i),d.append(g);a("#able-vts").append(d),a("#able-vts").append(this.getIconCredit())},AblePlayer.prototype.addVtsActionButtons=function(b,c){var d,e,f,g,h,i,j,k,l,m,n,o;for(d=this,e=a("<td>"),f=["up","down","insert","delete"],g=0;g<f.length;g++)h=f[g],"up"===h?b>1&&(i=a("<button>",{id:"able-vts-button-up-"+b,title:"Move up","aria-label":"Move Row "+b+" up"}).on("click",function(a){d.onClickVtsActionButton(a.currentTarget)}),j=a("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"254.296px",height:"254.296px",viewBox:"0 0 254.296 254.296",style:"enable-background:new 0 0 254.296 254.296"}),l="M249.628,176.101L138.421,52.88c-6.198-6.929-16.241-6.929-22.407,0l-0.381,0.636L4.648,176.101c-6.198,6.897-6.198,18.052,0,24.981l0.191,0.159c2.892,3.305,6.865,5.371,11.346,5.371h221.937c4.577,0,8.613-2.161,11.41-5.594l0.064,0.064C255.857,194.153,255.857,182.998,249.628,176.101z",n=a("<path>",{d:l}),k=a("<g>").append(n),j.append(k),i.append(j),i.html(i.html()),e.append(i)):"down"===h?c>b&&(i=a("<button>",{id:"able-vts-button-down-"+b,title:"Move down","aria-label":"Move Row "+b+" down"}).on("click",function(a){d.onClickVtsActionButton(a.currentTarget)}),j=a("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"292.362px",height:"292.362px",viewBox:"0 0 292.362 292.362",style:"enable-background:new 0 0 292.362 292.362"}),l="M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z",n=a("<path>",{d:l}),k=a("<g>").append(n),j.append(k),i.append(j),i.html(i.html()),e.append(i)):"insert"===h?(i=a("<button>",{id:"able-vts-button-insert-"+b,title:"Insert row below","aria-label":"Insert row before Row "+b}).on("click",function(a){d.onClickVtsActionButton(a.currentTarget)}),j=a("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"401.994px",height:"401.994px",viewBox:"0 0 401.994 401.994",style:"enable-background:new 0 0 401.994 401.994"}),l="M394,154.175c-5.331-5.33-11.806-7.994-19.417-7.994H255.811V27.406c0-7.611-2.666-14.084-7.994-19.414C242.488,2.666,236.02,0,228.398,0h-54.812c-7.612,0-14.084,2.663-19.414,7.993c-5.33,5.33-7.994,11.803-7.994,19.414v118.775H27.407c-7.611,0-14.084,2.664-19.414,7.994S0,165.973,0,173.589v54.819c0,7.618,2.662,14.086,7.992,19.411c5.33,5.332,11.803,7.994,19.414,7.994h118.771V374.59c0,7.611,2.664,14.089,7.994,19.417c5.33,5.325,11.802,7.987,19.414,7.987h54.816c7.617,0,14.086-2.662,19.417-7.987c5.332-5.331,7.994-11.806,7.994-19.417V255.813h118.77c7.618,0,14.089-2.662,19.417-7.994c5.329-5.325,7.994-11.793,7.994-19.411v-54.819C401.991,165.973,399.332,159.502,394,154.175z",n=a("<path>",{d:l}),k=a("<g>").append(n),j.append(k),i.append(j),i.html(i.html()),e.append(i)):"delete"===h&&(i=a("<button>",{id:"able-vts-button-delete-"+b,title:"Delete row ","aria-label":"Delete Row "+b}).on("click",function(a){d.onClickVtsActionButton(a.currentTarget)}),j=a("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"508.52px",height:"508.52px",viewBox:"0 0 508.52 508.52",style:"enable-background:new 0 0 508.52 508.52"}),l="M397.281,31.782h-63.565C333.716,14.239,319.478,0,301.934,0h-95.347c-17.544,0-31.782,14.239-31.782,31.782h-63.565c-17.544,0-31.782,14.239-31.782,31.782h349.607C429.063,46.021,414.825,31.782,397.281,31.782z",n=a("<path>",{d:l}),m="M79.456,476.737c0,17.544,14.239,31.782,31.782,31.782h286.042c17.544,0,31.782-14.239,31.782-31.782V95.347H79.456V476.737z M333.716,174.804c0-8.772,7.151-15.891,15.891-15.891c8.74,0,15.891,7.119,15.891,15.891v254.26c0,8.74-7.151,15.891-15.891,15.891c-8.74,0-15.891-7.151-15.891-15.891V174.804zM238.369,174.804c0-8.772,7.119-15.891,15.891-15.891c8.74,0,15.891,7.119,15.891,15.891v254.26c0,8.74-7.151,15.891-15.891,15.891c-8.772,0-15.891-7.151-15.891-15.891V174.804z M143.021,174.804c0-8.772,7.119-15.891,15.891-15.891c8.772,0,15.891,7.119,15.891,15.891v254.26c0,8.74-7.119,15.891-15.891,15.891c-8.772,0-15.891-7.151-15.891-15.891V174.804z",o=a("<path>",{d:m}),k=a("<g>").append(n,o),j.append(k),i.append(j),i.html(i.html()),e.append(i));return e},AblePlayer.prototype.updateVtsActionButtons=function(a,b){var c,d,e,f,g,h;for(c=0;c<a.length;c++)d=a.eq(c),e=d.attr("id"),f=d.attr("aria-label"),g=e.replace(/[0-9]+/g,b),h=f.replace(/[0-9]+/g,b),d.attr("id",g),d.attr("aria-label",h)},AblePlayer.prototype.getIconCredit=function(){var a;return a='<div id="able-vts-icon-credit">Action buttons made by <a href="https://www.flaticon.com/authors/elegant-themes">Elegant Themes</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> are licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>'},AblePlayer.prototype.getAllLangs=function(b){var c;for(c in b)b[c].hasOwnProperty("language")&&-1===a.inArray(b[c].language,this.langs)&&(this.langs[this.langs.length]=b[c].language)},AblePlayer.prototype.getAllRows=function(a){var b,c,d,e;for(e=[],b=0;b<this.vtsTracks.length;b++)if(c=this.vtsTracks[b],c.language==a)for(d in c.cues)e.push({kind:c.kind,lang:a,id:c.cues[d].id,start:c.cues[d].start,end:c.cues[d].end,content:c.cues[d].content});return e.sort(function(a,b){return a.start>b.start?1:-1}),e},AblePlayer.prototype.onClickVtsActionButton=function(b){var c,d,e;c=a(b).attr("id").split("-"),d=c[3],e=c[4],"up"==d?this.moveRow(e,"up"):"down"==d?this.moveRow(e,"down"):"insert"==d?this.insertRow(e):"delete"==d&&this.deleteRow(e)},AblePlayer.prototype.insertRow=function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,l,q,r;for(c=a("#able-vts table"),d=c.find("tr"),e=d.length-1,f=parseInt(b)+1,g="able-vts-row-"+f,h=a("<tr>",{id:g}),i=a("<td>").text(f),h.append(i),n=null,j=a("<select>",{id:"able-vts-kind-"+f,"aria-label":"What kind of track is this?",placeholder:"Select a kind"}).on("change",function(){n=a(this).val(),o="kind-"+n,p=a(this).closest("tr"),a(this).parent().text(n),p.addClass(o)}),k=["","captions","chapters","descriptions","subtitles"],l=0;l<k.length;l++)m=a("<option>",{value:k[l]}).text(k[l]),j.append(m);for(i=a("<td>").append(j),h.append(i),i=a("<td>",{contenteditable:"true"}),h.append(i),i=a("<td>",{contenteditable:"true"}),h.append(i),i=a("<td>",{contenteditable:"true"}),h.append(i),i=this.addVtsActionButtons(f,e),h.append(i),c.find("tr").eq(b).after(h),l=f;e>=l;l++)q=l+1,d.eq(l).attr("id","able-vts-row-"+q),d.eq(l).find("td").eq(0).text(q),r=d.eq(l).find("button"),this.updateVtsActionButtons(r,q);this.adjustTimes(f),this.showVtsAlert("A new row "+f+" has been inserted"),j.focus()},AblePlayer.prototype.deleteRow=function(b){var c,d,e,f,g,h;for(c=a("#able-vts table"),c[0].deleteRow(b),d=c.find("tr"),e=d.length-1,f=b;e>=f;f++)g=f,d.eq(f).attr("id","able-vts-row-"+g),d.eq(f).find("td").eq(0).text(g),h=d.eq(f).find("button"),this.updateVtsActionButtons(h,g);this.showVtsAlert("Row "+b+" has been deleted")},AblePlayer.prototype.moveRow=function(b,c){var d,e,f,g,h;d=a("#able-vts table").find("tr"),e=a("#able-vts table").find("tr").eq(b),"up"==c?(f=parseInt(b)-1,g=a("#able-vts table").find("tr").eq(f),g.before(e)):"down"==c&&(f=parseInt(b)+1,g=a("#able-vts table").find("tr").eq(f),g.after(e)),e.attr("id","able-vts-row-"+f),e.find("td").eq(0).text(f),this.updateVtsActionButtons(e.find("button"),f),g.attr("id","able-vts-row-"+b),g.find("td").eq(0).text(b),this.updateVtsActionButtons(g.find("button"),b),this.adjustTimes(f),h="Row "+b+" has been moved "+c,h+=" and is now Row "+f,this.showVtsAlert(h)},AblePlayer.prototype.adjustTimes=function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;c=[],c.captions=.001,c.descriptions=.001,c.chapters=.001,d=a("#able-vts table").find("tr"),g=d.eq(b),j=g.is('[class^="kind-"]')?this.getKindFromClass(g.attr("class")):"captions",m=this.getSecondsFromColonTime(g.find("td").eq(2).text()),
10
- p=this.getSecondsFromColonTime(g.find("td").eq(3).text()),b>1?(e=b-1,h=d.eq(e),k=h.is('[class^="kind-"]')?this.getKindFromClass(h.attr("class")):null,n=this.getSecondsFromColonTime(h.find("td").eq(2).text()),q=this.getSecondsFromColonTime(h.find("td").eq(3).text())):(e=null,h=null,k=null,n=null,q=null),b<d.length-1?(f=b+1,i=d.eq(f),l=i.is('[class^="kind-"]')?this.getKindFromClass(i.attr("class")):null,o=this.getSecondsFromColonTime(i.find("td").eq(2).text()),r=this.getSecondsFromColonTime(i.find("td").eq(3).text())):(f=null,i=null,l=null,o=null,r=null),isNaN(m)?(null==k&&(k="captions",h.attr("class","kind-captions"),h.find("td").eq(1).html("captions")),"captions"===k?(m=(parseFloat(q)+.001).toFixed(3),p=o?(parseFloat(o)-.001).toFixed(3):(parseFloat(m)+c[j]).toFixed(3)):"chapters"===k?(m=(parseFloat(n)+.001).toFixed(3),p=o?(parseFloat(o)-.001).toFixed(3):(parseFloat(m)+minDurartion[j]).toFixed(3)):"descriptions"===k&&(m=(parseFloat(n)+c.descriptions).toFixed(3),p=(parseFloat(m)+c.descriptions).toFixed(3))):n?m>n?o>m||(o=(parseFloat(m)+c[j]).toFixed(3),r=(parseFloat(o)+c[l]).toFixed(3)):(m=(parseFloat(n)+c[k]).toFixed(3),p=(parseFloat(m)+c[j]).toFixed(3)):o>m||(o=(parseFloat(m)+c[j]).toFixed(3),r=(parseFloat(o)+c[l]).toFixed(3)),p-m<c[j]&&(p=(parseFloat(m)+c[j]).toFixed(3),o&&(o=(parseFloat(p)+.001).toFixed(3))),g.find("td").eq(2).text(this.formatSecondsAsColonTime(m,!0)),g.find("td").eq(3).text(this.formatSecondsAsColonTime(p,!0)),h&&(h.find("td").eq(2).text(this.formatSecondsAsColonTime(n,!0)),h.find("td").eq(3).text(this.formatSecondsAsColonTime(q,!0))),i&&(i.find("td").eq(2).text(this.formatSecondsAsColonTime(o,!0)),i.find("td").eq(3).text(this.formatSecondsAsColonTime(r,!0)))},AblePlayer.prototype.getKindFromClass=function(a){var b,c,d,e;return b=a.indexOf("kind-")+5,c=a.indexOf(" ",b),d=-1==c?a.length-b:c-b,e=a.substr(b,d)},AblePlayer.prototype.showVtsAlert=function(a){this.$vtsAlert.text(a).show().delay(3e3).fadeOut("slow")},AblePlayer.prototype.parseVtsOutput=function(b){var c,d,e,f,g,h,i,j,k,l;for(c=b.attr("lang"),e=["captions","chapters","descriptions","subtitles"],g={},d=0;d<e.length;d++)f=e[d],g[f]="WEBVTT\n\n";if(h=b.find("tr"),h.length>0)for(d=0;d<h.length;d++)f=h.eq(d).find("td").eq(1).text(),-1!==a.inArray(f,e)&&(i=h.eq(d).find("td").eq(2).text(),j=h.eq(d).find("td").eq(3).text(),k=h.eq(d).find("td").eq(4).text(),void 0!==i&&void 0!==j&&(g[f]+=i+" --> "+j+"\n","undefined"!==k&&(g[f]+=k),g[f]+="\n\n"));for(l=a("<div>",{id:"able-vts-output"}),a("#able-vts").append(l),d=0;d<e.length;d++)f=e[d],g[f].length>8&&this.showWebVttOutput(f,g[f],c)},AblePlayer.prototype.showWebVttOutput=function(b,c,d){var e,f,g,h,i;e=a("<h3>").text(b.charAt(0).toUpperCase()+b.slice(1)),f=this.getFilenameFromTracks(b,d),h="If you made changes, copy/paste the following content ",f?(h+="to replace the original content of your "+this.getLanguageName(d)+" ",h+="<em>"+b+"</em> WebVTT file (<strong>"+f+"</strong>)."):h+="into a new "+this.getLanguageName(d)+" <em>"+b+"</em> WebVTT file.",g=a("<p>",{"class":"able-vts-output-instructions"}).html(h),i=a("<textarea>").text(c),a("#able-vts-output").append(e,g,i)}}(jQuery);
1
+ /*! ableplayer V4.0.00 */
2
+
3
+ "use strict";!function(o){o(document).ready(function(){o("video, audio").each(function(t,e){void 0!==o(e).data("able-player")&&new AblePlayer(o(this),o(e))})}),window.onYouTubeIframeAPIReady=function(){AblePlayer.youtubeIframeAPIReady=!0,o("body").trigger("youtubeIframeAPIReady",[])},o(window).keydown(function(t){1===AblePlayer.nextIndex&&AblePlayer.lastCreated.onPlayerKeyPress(t)}),window.AblePlayer=function(t){if((AblePlayer.lastCreated=this).media=t,0!==o(t).length){if(void 0!==o(t).attr("autoplay")?(this.autoplay=!0,this.okToPlay=!0):(this.autoplay=!1,this.okToPlay=!1),void 0!==o(t).attr("loop")?this.loop=!0:this.loop=!1,void 0!==o(t).attr("playsinline")?this.playsInline="1":this.playsInline="0",o(t).attr("poster")?this.hasPoster=!0:this.hasPoster=!1,void 0!==o(t).data("start-time")&&o.isNumeric(o(t).data("start-time"))?this.startTime=o(t).data("start-time"):this.startTime=0,void 0!==o(t).data("debug")&&!1!==o(t).data("debug")?this.debug=!0:this.debug=!1,void 0!==o(t).data("root-path")?this.rootPath=o(t).data("root-path").replace(/\/?$/,"/"):this.rootPath=this.getRootPath(),this.defaultVolume=7,void 0!==o(t).data("volume")&&""!==o(t).data("volume")){var e=o(t).data("volume");0<=e&&e<=10&&(this.defaultVolume=e)}if(this.volume=this.defaultVolume,void 0!==o(t).data("use-chapters-button")&&!1===o(t).data("use-chapters-button")?this.useChaptersButton=!1:this.useChaptersButton=!0,void 0!==o(t).data("use-descriptions-button")&&!1===o(t).data("use-descriptions-button")?this.useDescriptionsButton=!1:this.useDescriptionsButton=!0,void 0!==o(t).data("heading-level")&&""!==o(t).data("heading-level")){var i=o(t).data("heading-level");/^[0-6]*$/.test(i)&&(this.playerHeadingLevel=i)}if(this.transcriptType=null,void 0!==o(t).data("transcript-src")?(this.transcriptSrc=o(t).data("transcript-src"),this.transcriptSrcHasRequiredParts()&&(this.transcriptType="manual")):0<o(t).find('track[kind="captions"], track[kind="subtitles"]').length&&(void 0!==o(t).data("transcript-div")&&""!==o(t).data("transcript-div")?(this.transcriptDivLocation=o(t).data("transcript-div"),this.transcriptType="external"):void 0!==o(t).data("include-transcript")?!1!==o(t).data("include-transcript")&&(this.transcriptType="popup"):this.transcriptType="popup"),void 0!==o(t).data("lyrics-mode")&&!1!==o(t).data("lyrics-mode")?this.lyricsMode=!0:this.lyricsMode=!1,void 0!==o(t).data("transcript-title")&&""!==o(t).data("transcript-title")&&(this.transcriptTitle=o(t).data("transcript-title")),"overlay"===o(t).data("captions-position")?this.defaultCaptionsPosition="overlay":this.defaultCaptionsPosition="below",void 0!==o(t).data("chapters-div")&&""!==o(t).data("chapters-div")&&(this.chaptersDivLocation=o(t).data("chapters-div")),void 0!==o(t).data("chapters-title")&&(this.chaptersTitle=o(t).data("chapters-title")),void 0!==o(t).data("chapters-default")&&""!==o(t).data("chapters-default")?this.defaultChapter=o(t).data("chapters-default"):this.defaultChapter=null,"chapter"===o(t).data("prevnext-unit")||"chapters"===o(t).data("prevnext-unit")?this.prevNextUnit="chapter":"playlist"===o(t).data("prevnext-unit")?this.prevNextUnit="playlist":this.prevNextUnit=!1,"arrows"===o(t).data("speed-icons")?this.speedIcons="arrows":this.speedIcons="animals","chapter"===o(t).data("seekbar-scope")||"chapters"===o(t).data("seekbar-scope")?this.seekbarScope="chapter":this.seekbarScope="video",void 0!==o(t).data("youtube-id")&&""!==o(t).data("youtube-id")&&(this.youTubeId=o(t).data("youtube-id")),void 0!==o(t).data("youtube-desc-id")&&""!==o(t).data("youtube-desc-id")&&(this.youTubeDescId=o(t).data("youtube-desc-id")),void 0!==o(t).data("youtube-nocookie")&&o(t).data("youtube-nocookie")?this.youTubeNoCookie=!0:this.youTubeNoCookie=!1,void 0!==o(t).data("vimeo-id")&&""!==o(t).data("vimeo-id")&&(this.vimeoId=o(t).data("vimeo-id")),void 0!==o(t).data("vimeo-desc-id")&&""!==o(t).data("vimeo-desc-id")&&(this.vimeoDescId=o(t).data("vimeo-desc-id")),this.iconType="font",this.forceIconType=!1,void 0!==o(t).data("icon-type")&&""!==o(t).data("icon-type")){var s=o(t).data("icon-type");"font"!==s&&"image"!=s&&"svg"!=s||(this.iconType=s,this.forceIconType=!0)}if(void 0!==o(t).data("allow-fullscreen")&&!1===o(t).data("allow-fullscreen")?this.allowFullScreen=!1:this.allowFullScreen=!0,this.defaultSeekInterval=10,this.useFixedSeekInterval=!1,void 0!==o(t).data("seek-interval")&&""!==o(t).data("seek-interval")){var a=o(t).data("seek-interval");/^[1-9][0-9]*$/.test(a)&&(this.seekInterval=a,this.useFixedSeekInterval=!0)}if(void 0!==o(t).data("show-now-playing")&&!1===o(t).data("show-now-playing")?this.showNowPlaying=!1:this.showNowPlaying=!0,void 0!==o(t).data("use-ttml")?(this.useTtml=!0,this.convert=require("xml-js")):this.useTtml=!1,void 0!==o(t).data("test-fallback")&&!1!==o(t).data("test-fallback")&&(this.testFallback=!0),this.lang="en",void 0!==o(t).data("lang")&&""!==o(t).data("lang")){var n=o(t).data("lang");2==n.length&&(this.lang=n)}void 0!==o(t).data("force-lang")&&!1!==o(t).data("force-lang")?this.forceLang=!0:this.forceLang=!1,void 0!==o(t).data("meta-type")&&""!==o(t).data("meta-type")&&(this.metaType=o(t).data("meta-type")),void 0!==o(t).data("meta-div")&&""!==o(t).data("meta-div")&&(this.metaDiv=o(t).data("meta-div")),void 0!==o(t).data("search")&&""!==o(t).data("search")&&(void 0!==o(t).data("search-div")&&""!==o(t).data("search-div")&&(this.searchString=o(t).data("search"),this.searchDiv=o(t).data("search-div")),void 0!==o(t).data("search-lang")&&""!==o(t).data("search-lang")?this.searchLang=o(t).data("search-lang"):this.searchLang=null,void 0!==o(t).data("search-div")&&""!==o(t).data("search-div")&&(this.searchString=o(t).data("search"),this.searchDiv=o(t).data("search-div"))),void 0!==o(t).data("hide-controls")&&!1!==o(t).data("hide-controls")?(this.hideControls=!0,this.hideControlsOriginal=!0):(this.hideControls=!1,this.hideControlsOriginal=!1),this.setDefaults(),this.ableIndex=AblePlayer.nextIndex,AblePlayer.nextIndex+=1,this.title=o(t).attr("title"),this.tt={};var r=this;o.when(this.getTranslationText()).then(function(){50<r.countProperties(r.tt)?r.setup():r.provideFallback()})}else this.provideFallback()},AblePlayer.nextIndex=0,AblePlayer.prototype.setup=function(){var t=this;this.initializing=!0,this.reinitialize().then(function(){t.player?t.setupInstance().then(function(){t.setupInstancePlaylist(),t.hasPlaylist||t.recreatePlayer(),t.initializing=!1,t.playerCreated=!0}):t.provideFallback()})},AblePlayer.getActiveDOMElement=function(){for(var t=document.activeElement;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t},AblePlayer.localGetElementById=function(t,e){return t.getRootNode?o(t.getRootNode().querySelector("#"+e)):o(document.getElementById(e))},AblePlayer.youtubeIframeAPIReady=!1,AblePlayer.loadingYoutubeIframeAPI=!1}(jQuery),function(r){AblePlayer.prototype.setDefaults=function(){this.playerCreated=!1,this.playing=!1,this.paused=!0,this.clickedPlay=!1,this.fullscreen=!1,this.swappingSrc=!1,this.initializing=!1,this.cueingPlaylistItems=!1,this.okToPlay=!1,this.getUserAgent(),this.setIconColor(),this.setButtonImages()},AblePlayer.prototype.getRootPath=function(){var t,e,i,s,a,n;for(t=document.getElementsByTagName("script"),e=0;e<t.length;e++)if(-1!==(i=t[e].src).substr(i.lastIndexOf("/")).indexOf("ableplayer")){s=i.split("?")[0];break}return n=(a=s.split("/").slice(0,-1).join("/")).lastIndexOf("/"),a.substring(0,n)+"/"},AblePlayer.prototype.setIconColor=function(){var t,e,i,s,a;for(t=["controller","toolbar"],e=0;e<t.length;e++)"controller"==t[e]?i=r("<div>",{class:"able-controller"}).hide():"toolbar"===t[e]&&(i=r("<div>",{class:"able-window-toolbar"}).hide()),r("body").append(i),a=.2126*(s=i.css("background-color").replace(/[^\d,]/g,"").split(","))[0]+.7152*s[1]+.0722*s[2]<125?"white":"black","controller"===t[e]?this.iconColor=a:"toolbar"===t[e]&&(this.toolbarIconColor=a),i.remove()},AblePlayer.prototype.setButtonImages=function(){this.imgPath=this.rootPath+"button-icons/"+this.iconColor+"/",this.playButtonImg=this.imgPath+"play.png",this.pauseButtonImg=this.imgPath+"pause.png",this.restartButtonImg=this.imgPath+"restart.png",this.rewindButtonImg=this.imgPath+"rewind.png",this.forwardButtonImg=this.imgPath+"forward.png",this.previousButtonImg=this.imgPath+"previous.png",this.nextButtonImg=this.imgPath+"next.png","arrows"===this.speedIcons?(this.fasterButtonImg=this.imgPath+"slower.png",this.slowerButtonImg=this.imgPath+"faster.png"):"animals"===this.speedIcons&&(this.fasterButtonImg=this.imgPath+"rabbit.png",this.slowerButtonImg=this.imgPath+"turtle.png"),this.captionsButtonImg=this.imgPath+"captions.png",this.chaptersButtonImg=this.imgPath+"chapters.png",this.signButtonImg=this.imgPath+"sign.png",this.transcriptButtonImg=this.imgPath+"transcript.png",this.descriptionsButtonImg=this.imgPath+"descriptions.png",this.fullscreenExpandButtonImg=this.imgPath+"fullscreen-expand.png",this.fullscreenCollapseButtonImg=this.imgPath+"fullscreen-collapse.png",this.prefsButtonImg=this.imgPath+"preferences.png",this.helpButtonImg=this.imgPath+"help.png"},AblePlayer.prototype.getSvgData=function(t){var e=Array();switch(t){case"play":e[0]="0 0 16 20",e[1]="M0 18.393v-16.429q0-0.29 0.184-0.402t0.441 0.033l14.821 8.237q0.257 0.145 0.257 0.346t-0.257 0.346l-14.821 8.237q-0.257 0.145-0.441 0.033t-0.184-0.402z";break;case"pause":e[0]="0 0 20 20",e[1]="M0 18.036v-15.714q0-0.29 0.212-0.502t0.502-0.212h5.714q0.29 0 0.502 0.212t0.212 0.502v15.714q0 0.29-0.212 0.502t-0.502 0.212h-5.714q-0.29 0-0.502-0.212t-0.212-0.502zM10 18.036v-15.714q0-0.29 0.212-0.502t0.502-0.212h5.714q0.29 0 0.502 0.212t0.212 0.502v15.714q0 0.29-0.212 0.502t-0.502 0.212h-5.714q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"stop":e[0]="0 0 20 20",e[1]="M0 18.036v-15.714q0-0.29 0.212-0.502t0.502-0.212h15.714q0.29 0 0.502 0.212t0.212 0.502v15.714q0 0.29-0.212 0.502t-0.502 0.212h-15.714q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"restart":e[0]="0 0 20 20",e[1]="M18 8h-6l2.243-2.243c-1.133-1.133-2.64-1.757-4.243-1.757s-3.109 0.624-4.243 1.757c-1.133 1.133-1.757 2.64-1.757 4.243s0.624 3.109 1.757 4.243c1.133 1.133 2.64 1.757 4.243 1.757s3.109-0.624 4.243-1.757c0.095-0.095 0.185-0.192 0.273-0.292l1.505 1.317c-1.466 1.674-3.62 2.732-6.020 2.732-4.418 0-8-3.582-8-8s3.582-8 8-8c2.209 0 4.209 0.896 5.656 2.344l2.344-2.344v6z";break;case"rewind":e[0]="0 0 20 20",e[1]="M11.25 3.125v6.25l6.25-6.25v13.75l-6.25-6.25v6.25l-6.875-6.875z";break;case"forward":e[0]="0 0 20 20",e[1]="M10 16.875v-6.25l-6.25 6.25v-13.75l6.25 6.25v-6.25l6.875 6.875z";break;case"previous":e[0]="0 0 20 20",e[1]="M5 17.5v-15h2.5v6.875l6.25-6.25v13.75l-6.25-6.25v6.875z";break;case"next":e[0]="0 0 20 20",e[1]="M15 2.5v15h-2.5v-6.875l-6.25 6.25v-13.75l6.25 6.25v-6.875z";break;case"slower":e[0]="0 0 20 20",e[1]="M0 7.321q0-0.29 0.212-0.502t0.502-0.212h10q0.29 0 0.502 0.212t0.212 0.502-0.212 0.502l-5 5q-0.212 0.212-0.502 0.212t-0.502-0.212l-5-5q-0.212-0.212-0.212-0.502z";break;case"faster":e[0]="0 0 11 20",e[1]="M0 12.411q0-0.29 0.212-0.502l5-5q0.212-0.212 0.502-0.212t0.502 0.212l5 5q0.212 0.212 0.212 0.502t-0.212 0.502-0.502 0.212h-10q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"turtle":e[0]="0 0 20 20",e[1]="M17.212 3.846c-0.281-0.014-0.549 0.025-0.817 0.144-1.218 0.542-1.662 2.708-2.163 3.942-1.207 2.972-7.090 4.619-11.755 5.216-0.887 0.114-1.749 0.74-2.428 1.466 0.82-0.284 2.126-0.297 2.74 0.144 0.007 0.488-0.376 1.062-0.625 1.37-0.404 0.5-0.398 0.793 0.12 0.793 0.473 0 0.752 0.007 1.635 0 0.393-0.003 0.618-0.16 1.49-1.49 3.592 0.718 5.986-0.264 5.986-0.264s0.407 1.755 1.418 1.755h1.49c0.633 0 0.667-0.331 0.625-0.433-0.448-1.082-0.68-1.873-0.769-2.5-0.263-1.857 0.657-3.836 2.524-5.457 0.585 0.986 2.253 0.845 2.909-0.096s0.446-2.268-0.192-3.221c-0.49-0.732-1.345-1.327-2.188-1.37zM8.221 4.663c-0.722-0.016-1.536 0.111-2.5 0.409-4.211 1.302-4.177 4.951-3.51 5.745 0 0-0.955 0.479-0.409 1.274 0.448 0.652 3.139 0.191 5.409-0.529s4.226-1.793 5.312-2.692c0.948-0.785 0.551-2.106-0.505-1.947-0.494-0.98-1.632-2.212-3.798-2.26zM18.846 5.962c0.325 0 0.577 0.252 0.577 0.577s-0.252 0.577-0.577 0.577c-0.325 0-0.577-0.252-0.577-0.577s0.252-0.577 0.577-0.577z";break;case"rabbit":e[0]="0 0 20 20",e[1]="M10.817 0c-2.248 0-1.586 0.525-1.154 0.505 1.551-0.072 5.199 0.044 6.851 2.428 0 0-1.022-2.933-5.697-2.933zM10.529 0.769c-2.572 0-2.837 0.51-2.837 1.106 0 0.545 1.526 0.836 2.524 0.697 2.778-0.386 4.231-0.12 5.264 0.865-1.010 0.779-0.75 1.401-1.274 1.851-1.093 0.941-2.643-0.673-4.976-0.673-2.496 0-4.712 1.92-4.712 4.76-0.157-0.537-0.769-0.913-1.442-0.913-0.974 0-1.514 0.637-1.514 1.49 0 0.769 1.13 1.791 2.861 0.938 0.499 1.208 2.265 1.364 2.452 1.418 0.538 0.154 1.875 0.098 1.875 0.865 0 0.794-1.034 1.094-1.034 1.707 0 1.070 1.758 0.873 2.284 1.034 1.683 0.517 2.103 1.214 2.788 2.212 0.771 1.122 2.572 1.408 2.572 0.625 0-3.185-4.413-4.126-4.399-4.135 0.608-0.382 2.139-1.397 2.139-3.534 0-1.295-0.703-2.256-1.755-2.861 1.256 0.094 2.572 1.205 2.572 2.74 0 1.877-0.653 2.823-0.769 2.957 1.975-1.158 3.193-3.91 3.029-6.37 0.61 0.401 1.27 0.577 1.971 0.625 0.751 0.052 1.475-0.225 1.635-0.529 0.38-0.723 0.162-2.321-0.12-2.837-0.763-1.392-2.236-1.73-3.606-1.683-1.202-1.671-3.812-2.356-5.529-2.356zM1.37 3.077l-0.553 1.538h3.726c0.521-0.576 1.541-1.207 2.284-1.538h-5.457zM18.846 5.192c0.325 0 0.577 0.252 0.577 0.577s-0.252 0.577-0.577 0.577c-0.325 0-0.577-0.252-0.577-0.577s0.252-0.577 0.577-0.577zM0.553 5.385l-0.553 1.538h3.197c0.26-0.824 0.586-1.328 0.769-1.538h-3.413z";break;case"ellipsis":e[0]="0 0 20 20",e[1]="M10.001 7.8c-1.215 0-2.201 0.985-2.201 2.2s0.986 2.2 2.201 2.2c1.215 0 2.199-0.985 2.199-2.2s-0.984-2.2-2.199-2.2zM3.001 7.8c-1.215 0-2.201 0.985-2.201 2.2s0.986 2.2 2.201 2.2c1.215 0 2.199-0.986 2.199-2.2s-0.984-2.2-2.199-2.2zM17.001 7.8c-1.215 0-2.201 0.985-2.201 2.2s0.986 2.2 2.201 2.2c1.215 0 2.199-0.985 2.199-2.2s-0.984-2.2-2.199-2.2z";break;case"pipe":e[0]="0 0 20 20",e[1]="M10.15 0.179h0.623c0.069 0 0.127 0.114 0.127 0.253v19.494c0 0.139-0.057 0.253-0.127 0.253h-1.247c-0.069 0-0.126-0.114-0.126-0.253v-19.494c0-0.139 0.057-0.253 0.126-0.253h0.623z";break;case"captions":e[0]="0 0 20 20",e[1]="M0.033 3.624h19.933v12.956h-19.933v-12.956zM18.098 10.045c-0.025-2.264-0.124-3.251-0.743-3.948-0.112-0.151-0.322-0.236-0.496-0.344-0.606-0.386-3.465-0.526-6.782-0.526s-6.313 0.14-6.907 0.526c-0.185 0.108-0.396 0.193-0.519 0.344-0.607 0.697-0.693 1.684-0.731 3.948 0.037 2.265 0.124 3.252 0.731 3.949 0.124 0.161 0.335 0.236 0.519 0.344 0.594 0.396 3.59 0.526 6.907 0.547 3.317-0.022 6.176-0.151 6.782-0.547 0.174-0.108 0.384-0.183 0.496-0.344 0.619-0.697 0.717-1.684 0.743-3.949v0 0zM9.689 9.281c-0.168-1.77-1.253-2.813-3.196-2.813-1.773 0-3.168 1.387-3.168 3.617 0 2.239 1.271 3.636 3.372 3.636 1.676 0 2.851-1.071 3.035-2.852h-2.003c-0.079 0.661-0.397 1.168-1.068 1.168-1.059 0-1.253-0.91-1.253-1.876 0-1.33 0.442-2.010 1.174-2.010 0.653 0 1.068 0.412 1.13 1.129h1.977zM16.607 9.281c-0.167-1.77-1.252-2.813-3.194-2.813-1.773 0-3.168 1.387-3.168 3.617 0 2.239 1.271 3.636 3.372 3.636 1.676 0 2.851-1.071 3.035-2.852h-2.003c-0.079 0.661-0.397 1.168-1.068 1.168-1.059 0-1.253-0.91-1.253-1.876 0-1.33 0.441-2.010 1.174-2.010 0.653 0 1.068 0.412 1.13 1.129h1.976z";break;case"descriptions":e[0]="0 0 20 20",e[1]="M17.623 3.57h-1.555c1.754 1.736 2.763 4.106 2.763 6.572 0 2.191-0.788 4.286-2.189 5.943h1.484c1.247-1.704 1.945-3.792 1.945-5.943-0-2.418-0.886-4.754-2.447-6.572v0zM14.449 3.57h-1.55c1.749 1.736 2.757 4.106 2.757 6.572 0 2.191-0.788 4.286-2.187 5.943h1.476c1.258-1.704 1.951-3.792 1.951-5.943-0-2.418-0.884-4.754-2.447-6.572v0zM11.269 3.57h-1.542c1.752 1.736 2.752 4.106 2.752 6.572 0 2.191-0.791 4.286-2.181 5.943h1.473c1.258-1.704 1.945-3.792 1.945-5.943 0-2.418-0.876-4.754-2.447-6.572v0zM10.24 9.857c0 3.459-2.826 6.265-6.303 6.265v0.011h-3.867v-12.555h3.896c3.477 0 6.274 2.806 6.274 6.279v0zM6.944 9.857c0-1.842-1.492-3.338-3.349-3.338h-0.876v6.686h0.876c1.858 0 3.349-1.498 3.349-3.348v0z";break;case"sign":e[0]="0 0 20 20",e[1]="M10.954 10.307c0.378 0.302 0.569 1.202 0.564 1.193 0.697 0.221 1.136 0.682 1.136 0.682 1.070-0.596 1.094-0.326 1.558-0.682 0.383-0.263 0.366-0.344 0.567-1.048 0.187-0.572-0.476-0.518-1.021-1.558-0.95 0.358-1.463 0.196-1.784 0.167-0.145-0.020-0.12 0.562-1.021 1.247zM14.409 17.196c-0.133 0.182-0.196 0.218-0.363 0.454-0.28 0.361 0.076 0.906 0.253 0.82 0.206-0.076 0.341-0.488 0.567-0.623 0.115-0.061 0.422-0.513 0.709-0.82 0.211-0.238 0.363-0.344 0.564-0.594 0.341-0.422 0.412-0.744 0.709-1.193 0.184-0.236 0.312-0.307 0.481-0.594 0.886-1.679 0.628-2.432 1.475-3.629 0.26-0.353 0.552-0.442 0.964-0.653 0.383-2.793-0.888-4.356-0.879-4.361-1.067 0.623-1.644 0.879-2.751 0.82-0.417-0.005-0.636-0.182-1.048-0.145-0.385 0.015-0.582 0.159-0.964 0.29-0.589 0.182-0.91 0.344-1.529 0.535-0.393 0.11-0.643 0.115-1.050 0.255-0.348 0.147-0.182 0.029-0.427 0.312-0.317 0.348-0.238 0.623-0.535 1.222-0.371 0.785-0.326 0.891-0.115 0.987-0.14 0.402-0.174 0.672-0.14 1.107 0.039 0.331-0.101 0.562 0.255 0.825 0.483 0.361 1.499 1.205 1.757 1.217 0.39-0.012 1.521 0.029 2.096-0.368 0.13-0.081 0.167-0.162 0.056 0.145-0.022 0.037-1.433 1.136-1.585 1.131-1.794 0.056-1.193 0.157-1.303 0.115-0.091 0-0.955-1.055-1.477-0.682-0.196 0.12-0.287 0.236-0.363 0.452 0.066 0.137 0.383 0.358 0.675 0.54 0.422 0.27 0.461 0.552 0.881 0.653 0.513 0.115 1.060 0.039 1.387 0.081 0.125 0.034 1.256-0.297 1.961-0.675 0.65-0.336-0.898 0.648-1.276 1.131-1.141 0.358-0.82 0.373-1.362 0.483-0.503 0.115-0.479 0.086-0.822 0.196-0.356 0.086-0.648 0.572-0.312 0.825 0.201 0.167 0.827-0.066 1.445-0.086 0.275-0.005 1.391-0.518 1.644-0.653 0.633-0.339 1.099-0.81 1.472-1.077 0.518-0.361-0.584 0.991-1.050 1.558zM8.855 9.799c-0.378-0.312-0.569-1.212-0.564-1.217-0.697-0.206-1.136-0.667-1.136-0.653-1.070 0.582-1.099 0.312-1.558 0.653-0.388 0.277-0.366 0.363-0.567 1.045-0.187 0.594 0.471 0.535 1.021 1.561 0.95-0.344 1.463-0.182 1.784-0.142 0.145 0.010 0.12-0.572 1.021-1.247zM5.4 2.911c0.133-0.191 0.196-0.228 0.368-0.454 0.27-0.371-0.081-0.915-0.253-0.849-0.211 0.096-0.346 0.508-0.599 0.653-0.093 0.052-0.4 0.503-0.682 0.82-0.211 0.228-0.363 0.334-0.564 0.599-0.346 0.407-0.412 0.729-0.709 1.161-0.184 0.258-0.317 0.324-0.481 0.621-0.886 1.669-0.631 2.422-1.475 3.6-0.26 0.38-0.552 0.461-0.964 0.682-0.383 2.788 0.883 4.346 0.879 4.336 1.068-0.609 1.639-0.861 2.751-0.825 0.417 0.025 0.636 0.201 1.048 0.174 0.385-0.025 0.582-0.169 0.964-0.285 0.589-0.196 0.91-0.358 1.499-0.54 0.422-0.12 0.672-0.125 1.080-0.285 0.348-0.128 0.182-0.010 0.427-0.282 0.312-0.358 0.238-0.633 0.508-1.217 0.398-0.8 0.353-0.906 0.142-0.991 0.135-0.412 0.174-0.677 0.14-1.107-0.044-0.336 0.101-0.572-0.255-0.82-0.483-0.375-1.499-1.22-1.752-1.222-0.395 0.002-1.526-0.039-2.101 0.339-0.13 0.101-0.167 0.182-0.056-0.11 0.022-0.052 1.433-1.148 1.585-1.163 1.794-0.039 1.193-0.14 1.303-0.088 0.091-0.007 0.955 1.045 1.477 0.682 0.191-0.13 0.287-0.245 0.368-0.452-0.071-0.147-0.388-0.368-0.68-0.537-0.422-0.282-0.464-0.564-0.881-0.655-0.513-0.125-1.065-0.049-1.387-0.11-0.125-0.015-1.256 0.317-1.956 0.68-0.66 0.351 0.893-0.631 1.276-1.136 1.136-0.339 0.81-0.353 1.36-0.479 0.501-0.101 0.476-0.071 0.82-0.172 0.351-0.096 0.648-0.577 0.312-0.849-0.206-0.152-0.827 0.081-1.44 0.086-0.28 0.020-1.396 0.533-1.649 0.677-0.633 0.329-1.099 0.8-1.472 1.048-0.523 0.38 0.584-0.967 1.050-1.529z";break;case"mute":e[0]="0 0 20 20",e[1]="M7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714zM18.75 12.093v1.657h-1.657l-2.093-2.093-2.093 2.093h-1.657v-1.657l2.093-2.093-2.093-2.093v-1.657h1.657l2.093 2.093 2.093-2.093h1.657v1.657l-2.093 2.093z";break;case"volume-mute":e[0]="0 0 20 20",e[1]="M10.723 14.473c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.584-1.584 1.584-4.161 0-5.745-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.315 2.315 2.315 6.082 0 8.397-0.183 0.183-0.423 0.275-0.663 0.275zM7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714z";break;case"volume-medium":e[0]="0 0 20 20",e[1]="M14.053 16.241c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 2.559-2.559 2.559-6.722 0-9.281-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c1.594 1.594 2.471 3.712 2.471 5.966s-0.878 4.373-2.471 5.966c-0.183 0.183-0.423 0.275-0.663 0.275zM10.723 14.473c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.584-1.584 1.584-4.161 0-5.745-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.315 2.315 2.315 6.082 0 8.397-0.183 0.183-0.423 0.275-0.663 0.275zM7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714z";break;case"volume-loud":e[0]="0 0 21 20",e[1]="M17.384 18.009c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.712-1.712 2.654-3.988 2.654-6.408s-0.943-4.696-2.654-6.408c-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.066 2.066 3.204 4.813 3.204 7.734s-1.138 5.668-3.204 7.734c-0.183 0.183-0.423 0.275-0.663 0.275zM14.053 16.241c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 2.559-2.559 2.559-6.722 0-9.281-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c1.594 1.594 2.471 3.712 2.471 5.966s-0.878 4.373-2.471 5.966c-0.183 0.183-0.423 0.275-0.663 0.275zM10.723 14.473c-0.24 0-0.48-0.092-0.663-0.275-0.366-0.366-0.366-0.96 0-1.326 1.584-1.584 1.584-4.161 0-5.745-0.366-0.366-0.366-0.96 0-1.326s0.96-0.366 1.326 0c2.315 2.315 2.315 6.082 0 8.397-0.183 0.183-0.423 0.275-0.663 0.275zM7.839 1.536c0.501-0.501 0.911-0.331 0.911 0.378v16.172c0 0.709-0.41 0.879-0.911 0.378l-4.714-4.713h-3.125v-7.5h3.125l4.714-4.714z";break;case"chapters":e[0]="0 0 20 20",e[1]="M5 2.5v17.5l6.25-6.25 6.25 6.25v-17.5zM15 0h-12.5v17.5l1.25-1.25v-15h11.25z";break;case"transcript":e[0]="0 0 20 20",e[1]="M0 19.107v-17.857q0-0.446 0.313-0.759t0.759-0.313h8.929v6.071q0 0.446 0.313 0.759t0.759 0.313h6.071v11.786q0 0.446-0.313 0.759t-0.759 0.312h-15q-0.446 0-0.759-0.313t-0.313-0.759zM4.286 15.536q0 0.156 0.1 0.257t0.257 0.1h7.857q0.156 0 0.257-0.1t0.1-0.257v-0.714q0-0.156-0.1-0.257t-0.257-0.1h-7.857q-0.156 0-0.257 0.1t-0.1 0.257v0.714zM4.286 12.679q0 0.156 0.1 0.257t0.257 0.1h7.857q0.156 0 0.257-0.1t0.1-0.257v-0.714q0-0.156-0.1-0.257t-0.257-0.1h-7.857q-0.156 0-0.257 0.1t-0.1 0.257v0.714zM4.286 9.821q0 0.156 0.1 0.257t0.257 0.1h7.857q0.156 0 0.257-0.1t0.1-0.257v-0.714q0-0.156-0.1-0.257t-0.257-0.1h-7.857q-0.156 0-0.257 0.1t-0.1 0.257v0.714zM11.429 5.893v-5.268q0.246 0.156 0.402 0.313l4.554 4.554q0.156 0.156 0.313 0.402h-5.268z";break;case"preferences":e[0]="0 0 20 20",e[1]="M18.238 11.919c-1.049-1.817-0.418-4.147 1.409-5.205l-1.965-3.404c-0.562 0.329-1.214 0.518-1.911 0.518-2.1 0-3.803-1.714-3.803-3.828h-3.931c0.005 0.653-0.158 1.314-0.507 1.919-1.049 1.818-3.382 2.436-5.212 1.382l-1.965 3.404c0.566 0.322 1.056 0.793 1.404 1.396 1.048 1.815 0.42 4.139-1.401 5.2l1.965 3.404c0.56-0.326 1.209-0.513 1.902-0.513 2.094 0 3.792 1.703 3.803 3.808h3.931c-0.002-0.646 0.162-1.3 0.507-1.899 1.048-1.815 3.375-2.433 5.203-1.387l1.965-3.404c-0.562-0.322-1.049-0.791-1.395-1.391zM10 14.049c-2.236 0-4.050-1.813-4.050-4.049s1.813-4.049 4.050-4.049 4.049 1.813 4.049 4.049c-0 2.237-1.813 4.049-4.049 4.049z";break;case"close":e[0]="0 0 16 20",e[1]="M1.228 14.933q0-0.446 0.312-0.759l3.281-3.281-3.281-3.281q-0.313-0.313-0.313-0.759t0.313-0.759l1.518-1.518q0.313-0.313 0.759-0.313t0.759 0.313l3.281 3.281 3.281-3.281q0.313-0.313 0.759-0.313t0.759 0.313l1.518 1.518q0.313 0.313 0.313 0.759t-0.313 0.759l-3.281 3.281 3.281 3.281q0.313 0.313 0.313 0.759t-0.313 0.759l-1.518 1.518q-0.313 0.313-0.759 0.313t-0.759-0.313l-3.281-3.281-3.281 3.281q-0.313 0.313-0.759 0.313t-0.759-0.313l-1.518-1.518q-0.313-0.313-0.313-0.759z";break;case"fullscreen-expand":e[0]="0 0 20 20",e[1]="M0 18.036v-5q0-0.29 0.212-0.502t0.502-0.212 0.502 0.212l1.607 1.607 3.705-3.705q0.112-0.112 0.257-0.112t0.257 0.112l1.272 1.272q0.112 0.112 0.112 0.257t-0.112 0.257l-3.705 3.705 1.607 1.607q0.212 0.212 0.212 0.502t-0.212 0.502-0.502 0.212h-5q-0.29 0-0.502-0.212t-0.212-0.502zM8.717 8.393q0-0.145 0.112-0.257l3.705-3.705-1.607-1.607q-0.212-0.212-0.212-0.502t0.212-0.502 0.502-0.212h5q0.29 0 0.502 0.212t0.212 0.502v5q0 0.29-0.212 0.502t-0.502 0.212-0.502-0.212l-1.607-1.607-3.705 3.705q-0.112 0.112-0.257 0.112t-0.257-0.112l-1.272-1.272q-0.112-0.112-0.112-0.257z";break;case"fullscreen-collapse":e[0]="0 0 20 20",e[1]="M0.145 16.964q0-0.145 0.112-0.257l3.705-3.705-1.607-1.607q-0.212-0.212-0.212-0.502t0.212-0.502 0.502-0.212h5q0.29 0 0.502 0.212t0.212 0.502v5q0 0.29-0.212 0.502t-0.502 0.212-0.502-0.212l-1.607-1.607-3.705 3.705q-0.112 0.112-0.257 0.112t-0.257-0.112l-1.272-1.272q-0.112-0.112-0.112-0.257zM8.571 9.464v-5q0-0.29 0.212-0.502t0.502-0.212 0.502 0.212l1.607 1.607 3.705-3.705q0.112-0.112 0.257-0.112t0.257 0.112l1.272 1.272q0.112 0.112 0.112 0.257t-0.112 0.257l-3.705 3.705 1.607 1.607q0.212 0.212 0.212 0.502t-0.212 0.502-0.502 0.212h-5q-0.29 0-0.502-0.212t-0.212-0.502z";break;case"help":e[0]="0 0 11 20",e[1]="M0.577 6.317q-0.028-0.167 0.061-0.313 1.786-2.969 5.179-2.969 0.893 0 1.797 0.346t1.629 0.926 1.183 1.423 0.458 1.769q0 0.603-0.173 1.127t-0.391 0.854-0.614 0.664-0.642 0.485-0.681 0.396q-0.458 0.257-0.765 0.725t-0.307 0.748q0 0.19-0.134 0.363t-0.313 0.173h-2.679q-0.167 0-0.285-0.206t-0.117-0.419v-0.502q0-0.926 0.725-1.747t1.596-1.211q0.658-0.301 0.938-0.625t0.279-0.848q0-0.469-0.519-0.826t-1.2-0.357q-0.725 0-1.205 0.324-0.391 0.279-1.194 1.283-0.145 0.179-0.346 0.179-0.134 0-0.279-0.089l-1.83-1.395q-0.145-0.112-0.173-0.279zM3.786 16.875v-2.679q0-0.179 0.134-0.313t0.313-0.134h2.679q0.179 0 0.313 0.134t0.134 0.313v2.679q0 0.179-0.134 0.313t-0.313 0.134h-2.679q-0.179 0-0.313-0.134t-0.134-0.313z"}return e},AblePlayer.prototype.reinitialize=function(){var t,e;if(e=(t=new r.Deferred).promise(),this,window.console||(this.debug=!1),this.startedPlaying=!1,this.autoScrollTranscript=!0,this.$media=r(this.media).first(),this.media=this.$media[0],this.$media.is("audio"))this.mediaType="audio";else{if(!this.$media.is("video"))return this.provideFallback(),t.fail(),e;this.mediaType="video"}return this.$sources=this.$media.find("source"),this.player=this.getPlayer(),this.player||this.provideFallback(),this.setIconType(),this.setDimensions(),t.resolve(),e},AblePlayer.prototype.setDimensions=function(){this.$media.attr("width")&&this.$media.attr("height")?(this.playerMaxWidth=parseInt(this.$media.attr("width"),10),this.playerMaxHeight=parseInt(this.$media.attr("height"),10)):this.$media.attr("width")?this.playerMaxWidth=parseInt(this.$media.attr("width"),10):(this.playerMaxWidth=this.$media.parent().width(),this.playerMaxHeight=this.getMatchingHeight(this.playerMaxWidth)),this.$media.css({width:"100%",height:"auto"})},AblePlayer.prototype.getMatchingHeight=function(e){var t,i,s,a,n;return t=[3840,2560,1920,1280,854,640,426],i=[2160,1440,1080,720,480,360,240],a=s=null,r.each(t,function(t){(null==s||Math.abs(this-e)<Math.abs(s-e))&&(s=this,a=t)}),n=i[a],this.aspectRatio=s/n,Math.round(e/this.aspectRatio)},AblePlayer.prototype.setIconType=function(){var t,e,i;if(this.forceIconType)return!1;document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect?this.iconType="svg":(window.getComputedStyle?(e=r("span.icon-play").length?r("span.icon-play"):(t=r("<span>",{class:"icon-play able-clipped"}),r("body").append(t),t),void 0!==(i=window.getComputedStyle(e.get(0),null).getPropertyValue("font-family"))&&-1!==i.indexOf("able")?this.iconType="font":this.iconType="image"):this.iconType="image",this.debug,void 0!==t&&t.remove())},AblePlayer.prototype.setupInstance=function(){var t=new r.Deferred,e=t.promise();return this.$media.attr("id")?this.mediaId=this.$media.attr("id"):(this.mediaId="ableMediaId_"+this.ableIndex,this.$media.attr("id",this.mediaId)),t.resolve(),e},AblePlayer.prototype.setupInstancePlaylist=function(){var s=this;if(this.hasPlaylist=!1,r(".able-playlist").each(function(){if(r(this).data("player")===s.mediaId){s.hasPlaylist=!0,s.$playlist=r(this).find("li"),r(this).find("li[data-youtube-id]").each(function(){var t=r(this).attr("data-youtube-id"),e=s.getYouTubePosterUrl(t,"120"),i=r("<img>",{src:e,alt:""});r(this).find("button").prepend(i)}),r(this).find("li span").attr("aria-hidden","true"),s.playlistIndex=0;var t=r(this).data("embedded");s.playlistEmbed=void 0!==t&&!1!==t}}),this.hasPlaylist&&this.loop&&this.media.removeAttribute("loop"),this.hasPlaylist&&this.playlistEmbed){var t=this.$playlist.parent();this.$playlistDom=t.clone(),t.remove()}this.hasPlaylist&&0===this.$sources.length&&(this.cuePlaylistItem(0),this.$sources=this.$media.find("source"))},AblePlayer.prototype.recreatePlayer=function(){var t,e,i;(t=this).player?(this.playerCreated||(this.loadCurrentPreferences(),this.injectPlayerCode()),this.initSignLanguage(),this.initPlayer().then(function(){t.setupTracks().then(function(){t.setupAltCaptions().then(function(){t.setupTranscript().then(function(){for(t.Volume&&t.setMute(!1),t.setFullscreen(!1),t.setVolume(t.defaultVolume),t.transcriptType&&(t.addTranscriptAreaEvents(),t.updateTranscript()),"video"===t.mediaType&&t.initDescription(),t.captions.length&&t.initDefaultCaption(),t.setMediaAttributes(),t.addControls(),t.addEventListeners(),e=t.getPreferencesGroups(),i=0;i<e.length;i++)t.injectPrefsForm(e[i]);t.setupPopups(),t.updateCaption(),t.injectVTS(),t.chaptersDivLocation&&t.populateChaptersDiv(),t.showSearchResults(),"html5"===t.player&&(t.isIOS()||0<t.startTime||t.autoplay||t.okToPlay)&&t.$media[0].load(),setTimeout(function(){t.refreshControls("init")},100)},function(){t.provideFallback()})})})})):console.log("Can't create player; no appropriate player type detected.")},AblePlayer.prototype.initPlayer=function(){var t,e=this;"html5"===this.player?t=this.initHtml5Player():"youtube"===this.player?t=this.initYouTubePlayer():"vimeo"===this.player&&(t=this.initVimeoPlayer());var i=new r.Deferred,s=i.promise();return t.done(function(){!1===e.useFixedSeekInterval&&e.setSeekInterval(),i.resolve()}).fail(function(){i.reject()}),s},AblePlayer.prototype.setSeekInterval=function(){var t;this.seekInterval=this.defaultSeekInterval,void 0===(t=this.useChapterTimes?this.chapterDuration:this.duration)||t<1?this.seekIntervalCalculated=!1:(this.seekInterval=t<=20?5:t<=30?6:t<=40?8:t<=100?10:t/10,this.seekIntervalCalculated=!0)},AblePlayer.prototype.initDefaultCaption=function(){var t,e;if(0<(t=this.captions).length){for(e=0;e<t.length;e++)!0===t[e].def&&(this.captionLang=t[e].language,this.selectedCaptions=t[e]);if(void 0===this.captionLang)for(e=0;e<t.length;e++)t[e].language===this.lang&&(this.captionLang=t[e].language,this.selectedCaptions=t[e]);void 0===this.captionLang&&(this.captionLang=t[0].language,this.selectedCaptions=t[0]),void 0!==this.captionLang&&(this.$transcriptLanguageSelect&&this.$transcriptLanguageSelect.find("option[lang="+this.captionLang+"]").prop("selected",!0),this.syncTrackLanguages("init",this.captionLang))}},AblePlayer.prototype.initHtml5Player=function(){var t=new r.Deferred,e=t.promise();return t.resolve(),e},AblePlayer.prototype.setMediaAttributes=function(){this.$media.attr("tabindex",-1);var t=this.$media.get(0).textTracks;if(t)for(var e=0;e<t.length;)t[e].mode="disabled",e+=1},AblePlayer.prototype.getPlayer=function(){return this.youTubeId?"video"!==this.mediaType?null:"youtube":this.vimeoId?"video"!==this.mediaType?null:"vimeo":this.testFallback||(this.isUserAgent("msie 7")||this.isUserAgent("msie 8")||this.isUserAgent("msie 9"))&&"video"===this.mediaType||this.isIOS()&&(this.isIOS(4)||this.isIOS(5)||this.isIOS(6))?null:this.media.canPlayType?"html5":null}}(jQuery),function(et){AblePlayer.prototype.setCookie=function(t){Cookies.set("Able-Player",t,{expires:90})},AblePlayer.prototype.getCookie=function(){var e,i={preferences:{},sign:{},transcript:{}};try{e=Cookies.getJSON("Able-Player")}catch(t){Cookies.getJSON(i),e=i}return e||i},AblePlayer.prototype.updateCookie=function(t){var e,i,s,a,n,r;if(e=this.getCookie(),"transcript"===t||"sign"===t)"transcript"===t?(s=(i=this.$transcriptArea).position(),void 0===e.transcript&&(e.transcript={}),e.transcript.position=i.css("position"),e.transcript.zindex=i.css("z-index"),e.transcript.top=s.top,e.transcript.left=s.left,e.transcript.width=i.width(),e.transcript.height=i.height()):"sign"===t&&(s=(i=this.$signWindow).position(),void 0===e.sign&&(e.sign={}),e.sign.position=i.css("position"),e.sign.zindex=i.css("z-index"),e.sign.top=s.top,e.sign.left=s.left,e.sign.width=i.width(),e.sign.height=i.height());else for(a=this.getAvailablePreferences(),n=0;n<a.length;n++)(r=a[n].name)==t&&(e.preferences[r]=this[r]);this.setCookie(e)},AblePlayer.prototype.getPreferencesGroups=function(){if("video"===this.mediaType)return["captions","descriptions","keyboard","transcript"];if("audio"===this.mediaType){var t=[];return t.push("keyboard"),this.lyricsMode&&t.push("transcript"),t}},AblePlayer.prototype.getAvailablePreferences=function(){var t=[];return t.push({name:"prefAltKey",label:this.tt.prefAltKey,group:"keyboard",default:1}),t.push({name:"prefCtrlKey",label:this.tt.prefCtrlKey,group:"keyboard",default:1}),t.push({name:"prefShiftKey",label:this.tt.prefShiftKey,group:"keyboard",default:0}),t.push({name:"prefTranscript",label:null,group:"transcript",default:0}),t.push({name:"prefHighlight",label:this.tt.prefHighlight,group:"transcript",default:1}),t.push({name:"prefAutoScrollTranscript",label:null,group:"transcript",default:1}),t.push({name:"prefTabbable",label:this.tt.prefTabbable,group:"transcript",default:0}),"video"===this.mediaType&&(t.push({name:"prefCaptions",label:null,group:"captions",default:1}),t.push({name:"prefCaptionsPosition",label:this.tt.prefCaptionsPosition,group:"captions",default:this.defaultCaptionsPosition}),t.push({name:"prefCaptionsFont",label:this.tt.prefCaptionsFont,group:"captions",default:this.tt.sans}),t.push({name:"prefCaptionsSize",label:this.tt.prefCaptionsSize,group:"captions",default:"100%"}),t.push({name:"prefCaptionsColor",label:this.tt.prefCaptionsColor,group:"captions",default:"white"}),t.push({name:"prefCaptionsBGColor",label:this.tt.prefCaptionsBGColor,group:"captions",default:"black"}),t.push({name:"prefCaptionsOpacity",label:this.tt.prefCaptionsOpacity,group:"captions",default:"100%"}),t.push({name:"prefDesc",label:null,group:"descriptions",default:0}),t.push({name:"prefDescFormat",label:this.tt.prefDescFormat,group:"descriptions",default:"video"}),t.push({name:"prefDescPause",label:this.tt.prefDescPause,group:"descriptions",default:0}),t.push({name:"prefVisibleDesc",label:this.tt.prefVisibleDesc,group:"descriptions",default:1}),t.push({name:"prefSign",label:null,group:null,default:0})),t},AblePlayer.prototype.loadCurrentPreferences=function(){for(var t=this.getAvailablePreferences(),e=this.getCookie(),i=0;i<t.length;i++){var s=t[i].name,a=t[i].default;void 0!==e.preferences[s]?this[s]=e.preferences[s]:(e.preferences[s]=a,this[s]=a)}this.setCookie(e)},AblePlayer.prototype.injectPrefsForm=function(t){var e,i,s,a,n,r,o,l,h,p,c,u,d,g,f,m,v,y,b,w,P,C,T,k,A,$,x,D,S,N,M,I,B,F,z,O,V,L,H,W,R,q,E,j,K,Y,X,U,G;e=(i=this).getAvailablePreferences();var Q="able-prefs-form-"+t;if((s=et("<div>",{class:"able-prefs-form "})).addClass(Q),"captions"==t)a=this.tt.prefTitleCaptions,n=this.tt.prefIntroCaptions,_=et("<p>",{text:n}),s.append(_);else if("descriptions"==t){a=this.tt.prefTitleDescriptions;var _=et("<p>",{text:this.tt.prefIntroDescription1}),Z=et("<ul>"),J=et("<li>",{text:this.tt.prefDescFormatOption1}),tt=et("<li>",{text:this.tt.prefDescFormatOption2});Z.append(J,tt),this.hasOpenDesc&&this.hasClosedDesc?(W=this.tt.prefIntroDescription2+" ",W+="<strong>"+this.tt.prefDescFormatOption1b+"</strong>",W+=" <em>"+this.tt.and+"</em> <strong>"+this.tt.prefDescFormatOption2b+"</strong>."):this.hasOpenDesc?(W=this.tt.prefIntroDescription2,W+=" <strong>"+this.tt.prefDescFormatOption1b+"</strong>."):this.hasClosedDesc?(W=this.tt.prefIntroDescription2,W+=" <strong>"+this.tt.prefDescFormatOption2b+"</strong>."):W=this.tt.prefIntroDescriptionNone,r=et("<p>",{html:W}),o=this.tt.prefIntroDescription3,(this.hasOpenDesc||this.hasClosedDesc)&&(o+=" "+this.tt.prefIntroDescription4),l=et("<p>",{text:o}),s.append(_,Z,r,l)}else"keyboard"==t?(a=this.tt.prefTitleKeyboard,n=this.tt.prefIntroKeyboard1,n+=" "+this.tt.prefIntroKeyboard2,n+=" "+this.tt.prefIntroKeyboard3,_=et("<p>",{text:n}),s.append(_)):"transcript"==t&&(a=this.tt.prefTitleTranscript,n=this.tt.prefIntroTranscript,_=et("<p>",{text:n}),s.append(_));for("descriptions"===t?(g=et("<fieldset>"),u="able-prefs-"+t+"1",d=this.mediaId+"-prefs-"+t+"1",g.addClass(u).attr("id",d),f=et("<legend>"+this.tt.prefDescFormat+"</legend>"),g.append(f),m=et("<fieldset>"),u="able-prefs-"+t+"2",d=this.mediaId+"-prefs-"+t+"2",m.addClass(u).attr("id",d),v=et("<legend>"+this.tt.prefHeadingTextDescription+"</legend>"),m.append(v)):(c=et("<fieldset>"),u="able-prefs-"+t,d=this.mediaId+"-prefs-"+t,c.addClass(u).attr("id",d),"keyboard"===t&&(y=et("<legend>"+this.tt.prefHeadingKeyboard1+"</legend>"),c.append(y))),h=0;h<e.length;h++)if(e[h].group==t&&e[h].label){if(P="able-"+(b=e[h].name),C=this.mediaId+"_"+b,"prefDescFormat"!==b&&(w=et("<div>").addClass(P)),"prefDescFormat"==b)A=et("<div>"),$=C+"_1",D=et("<label>").attr("for",$).text(this.capitalizeFirstLetter(this.tt.prefDescFormatOption1)),x=et("<input>",{type:"radio",name:b,id:$,value:"video"}),"video"===this.prefDescFormat&&x.prop("checked",!0),A.append(x,D),S=et("<div>"),N=C+"_2",I=et("<label>").attr("for",N).text(this.capitalizeFirstLetter(this.tt.prefDescFormatOption2)),M=et("<input>",{type:"radio",name:b,id:N,value:"text"}),"text"===this.prefDescFormat&&M.prop("checked",!0),S.append(M,I);else if("captions"===t){for(T=et('<label for="'+C+'"> '+e[h].label+"</label>"),k=et("<select>",{name:b,id:C}),"prefCaptions"!==b&&"prefCaptionsStyle"!==b&&k.change(function(){V=et(this).attr("name"),i.stylizeCaptions(i.$sampleCapsDiv,V)}),B=this.getCaptionsOptions(b),p=0;p<B.length;p++)"prefCaptionsPosition"===b?"overlay"===(z=B[p])?O=this.tt.captionsPositionOverlay:"below"===z&&(z=B[p],O=this.tt.captionsPositionBelow):"prefCaptionsColor"===b||"prefCaptionsBGColor"===b?(z=B[p][0],O=B[p][1]):"prefCaptionsOpacity"===b?(z=B[p],O=B[p],"0%"===z?O+=" ("+this.tt.transparent+")":"100%"===z&&(O+=" ("+this.tt.solid+")")):(z=B[p],O=B[p]),F=et("<option>",{value:z,text:O}),this[b]===z&&F.prop("selected",!0),k.append(F);w.append(T,k)}else T=et('<label for="'+C+'"> '+e[h].label+"</label>"),k=et("<input>",{type:"checkbox",name:b,id:C,value:"true"}),1===this[b]&&k.prop("checked",!0),"keyboard"===t&&k.change(function(){"prefAltKey"===(V=et(this).attr("name"))?(L=".able-modkey-alt",H=i.tt.prefAltKey+" + "):"prefCtrlKey"===V?(L=".able-modkey-ctrl",H=i.tt.prefCtrlKey+" + "):"prefShiftKey"===V&&(L=".able-modkey-shift",H=i.tt.prefShiftKey+" + "),et(this).is(":checked")?et(L).text(H):et(L).text("")}),w.append(k,T);"descriptions"===t?"prefDescFormat"===b?g.append(A,S):m.append(w):c.append(w)}if("descriptions"===t?s.append(g,m):s.append(c),"captions"===t)"video"===this.mediaType&&(this.$sampleCapsDiv=et("<div>",{class:"able-captions-sample"}).text(this.tt.sampleCaptionText),s.append(this.$sampleCapsDiv),this.stylizeCaptions(this.$sampleCapsDiv));else if("keyboard"===t){for(R=et("<h2>",{text:this.tt.prefHeadingKeyboard2}),q=et("<ul>"),E=[],j=[],h=0;h<this.controls.length;h++)"play"===this.controls[h]?(E.push(this.tt.play+"/"+this.tt.pause),j.push("p</span> <em>"+this.tt.or+'</em> <span class="able-help-modifiers"> '+this.tt.spacebar)):"restart"===this.controls[h]?(E.push(this.tt.restart),j.push("s")):"rewind"===this.controls[h]?(E.push(this.tt.rewind),j.push("r")):"forward"===this.controls[h]?(E.push(this.tt.forward),j.push("f")):"volume"===this.controls[h]?(E.push(this.tt.volume),j.push("v</span> <em>"+this.tt.or+'</em> <span class="able-modkey">1-9'),E.push(this.tt.mute+"/"+this.tt.unmute),j.push("m")):"captions"===this.controls[h]?(1<this.captions.length?E.push(this.tt.captions):this.captionsOn?E.push(this.tt.hideCaptions):E.push(this.tt.showCaptions),j.push("c")):"descriptions"===this.controls[h]?(this.descOn?E.push(this.tt.turnOffDescriptions):E.push(this.tt.turnOnDescriptions),j.push("d")):"prefs"===this.controls[h]?(E.push(this.tt.preferences),j.push("e")):"help"===this.controls[h]&&(E.push(this.tt.help),j.push("h"));for(h=0;h<j.length;h++)K='<span class="able-modkey-alt">',1===this.prefAltKey&&(K+=this.tt.prefAltKey+" + "),K+="</span>",K+='<span class="able-modkey-ctrl">',1===this.prefCtrlKey&&(K+=this.tt.prefCtrlKey+" + "),K+="</span>",K+='<span class="able-modkey-shift">',1===this.prefShiftKey&&(K+=this.tt.prefShiftKey+" + "),K+="</span>",K+='<span class="able-modkey">'+j[h]+"</span>",K+=" = "+E[h],Y=et("<li>",{html:K}),q.append(Y);K='<span class="able-modkey">'+this.tt.escapeKey+"</span>",K+=" = "+this.tt.escapeKeyFunction,Y=et("<li>",{html:K}),q.append(Y),s.append(R,q)}et("body").append(s),X=new AccessibleDialog(s,this.$prefsButton,"dialog",a,_,i.tt.closeButtonLabel,"32em"),s.append("<hr>"),U=et('<button class="modal-button">'+this.tt.save+"</button>"),G=et('<button class="modal-button">'+this.tt.cancel+"</button>"),U.click(function(){X.hide(),i.savePrefsFromForm()}),G.click(function(){X.hide(),i.resetPrefsForm()}),s.append(U),s.append(G),"captions"===t?this.captionPrefsDialog=X:"descriptions"===t?this.descPrefsDialog=X:"keyboard"===t?this.keyboardPrefsDialog=X:"transcript"===t&&(this.transcriptPrefsDialog=X),et("div.able-prefs-form button.modalCloseButton").click(function(){i.resetPrefsForm()}),et("div.able-prefs-form").keydown(function(t){27===t.which&&i.resetPrefsForm()})},AblePlayer.prototype.resetPrefsForm=function(){var t,e,i,s;for(t=this.getCookie(),e=this.getAvailablePreferences(),i=0;i<e.length;i++)"prefDescFormat"===(s=e[i].name)?"text"===this[s]?et('input[value="text"]').prop("checked",!0):et('input[value="video"]').prop("checked",!0):-1!==s.indexOf("Captions")&&"prefCaptions"!==s?et('select[name="'+s+'"]').val(t.preferences[s]):1===this[s]?et('input[name="'+s+'"]').prop("checked",!0):et('input[name="'+s+'"]').prop("checked",!1);this.stylizeCaptions(this.$sampleCapsDiv)},AblePlayer.prototype.savePrefsFromForm=function(){var t,e,i,s,a;e=t=0,i=!1;for(var n=this.getCookie(),r=this.getAvailablePreferences(),o=0;o<r.length;o++)if(r[o].label){var l=r[o].name;"prefDescFormat"==l?(this.prefDescFormat=et('input[name="'+l+'"]:checked').val(),this.prefDescFormat!==n.preferences.prefDescFormat&&(n.preferences.prefDescFormat=this.prefDescFormat,t++)):-1!==l.indexOf("Captions")&&"prefCaptions"!==l?(a=et('select[name="'+l+'"]').val(),n.preferences[l]!==a&&(n.preferences[l]=a,this[l]=a,t++,e++),"prefCaptionsSize"===l&&(i=!0,s=a)):et('input[name="'+l+'"]').is(":checked")?(n.preferences[l]=1)===this[l]||(this[l]=1,t++):(n.preferences[l]=0,1===this[l]&&(this[l]=0,t++))}0<t?(this.setCookie(n),this.showAlert(this.tt.prefSuccess)):this.showAlert(this.tt.prefNoChange),"youtube"===this.player&&void 0!==this.usingYouTubeCaptions&&this.usingYouTubeCaptions&&i&&this.youTubePlayer.setOption(this.ytCaptionModule,"fontSize",this.translatePrefs("size",s,"youtube")),this.updatePrefs(),0<e&&(this.stylizeCaptions(this.$captionsDiv),void 0!==this.$descDiv&&this.stylizeCaptions(this.$descDiv))},AblePlayer.prototype.updatePrefs=function(){var t;t=1===this.prefAltKey?"Alt + ":"",1===this.prefCtrlKey&&(t+="Control + "),1===this.prefShiftKey&&(t+="Shift + "),et(".able-help-modifiers").text(t),1===this.prefTabbable?et(".able-transcript span.able-transcript-seekpoint").attr("tabindex","0"):et(".able-transcript span.able-transcript-seekpoint").removeAttr("tabindex"),0===this.prefHighlight&&et(".able-transcript span").removeClass("able-highlight"),this.updateCaption(),this.refreshingDesc=!0,this.initDescription()},AblePlayer.prototype.usingModifierKeys=function(t){return!(1===this.prefAltKey&&!t.altKey)&&(!(1===this.prefCtrlKey&&!t.ctrlKey)&&!(1===this.prefShiftKey&&!t.shiftKey))}}(jQuery),function(l){function h(t,e){for(var i=[],s=0;s<e.length;s++)i.push(p(t,e[s]));return i}function p(t,e){var i=e(t);if(null!==t.error)throw t.error;return i}function a(t,e){for(var i=0;i<e.length;i++)"\n"===e[i]?(t.column=1,t.line+=1):t.column+=1}function c(t,e){var i=t.text.substring(0,e);return a(t,i),t.text=t.text.substring(e),i}function u(t,e){var i,s=t.text.indexOf("\n");return-1===s?(a(t,i=t.text),t.text=""):(i=t.text.substring(0,s),a(t,i+"\n"),t.text=t.text.substring(s+1)),i}function d(t){var e=t.text.indexOf("\n");return-1===e?t.text:t.text.substring(0,e)}function s(t){h(t,[w,P]);var e=t.text[0];" "===e||"\t"===e||"\n"===e?h(t,[A,i,x,o]):t.error="WEBVTT signature not followed by whitespace."}function i(t){for(;;){var e=d(t);if(-1!==e.indexOf("--\x3e"))return;if(0===e.length)return;var i=p(t,n);t.metadata[i[0]]=i[1],p(t,A)}}function g(t){var e=[],i=t.indexOf(" ");0<=i&&e.push(i);var s=t.indexOf("\t");0<=s&&e.push(s);var a=t.indexOf("\n");return 0<=a&&e.push(a),Math.min.apply(null,e)}function n(t){var e=t.text.indexOf("\n"),i=c(t,e),s=i.indexOf(":");return-1===s?void(t.error="Missing colon."):[i.substring(0,s),i.substring(s+1)]}function r(t){var e=c(t,g(t.text)),i=e.indexOf(":");return-1===i?void(t.error="Missing colon."):[e.substring(0,i),e.substring(i+1)]}function o(t){for(;;){var e=d(t);if(0!==e.indexOf("NOTE")||4!==e.length&&" "!==e[4]&&"\t"!==e[4])if(0===l.trim(e).length&&0<t.text.length)p(t,$);else{if(!(0<l.trim(e).length))return;p(t,f)}else h(t,[b,$])}}function f(t){var e,i=d(t);if(-1===i.indexOf("--\x3e")&&(e=u(t),-1===(i=d(t)).indexOf("--\x3e")))return"Invalid WebVTT file: "+t.src+"\n","Line: "+t.line+", ","Column: "+t.column+"\n","Expected cue timing for cueId '"+e+"' but found: "+i+"\n",void(console.warn||console.log);var s=h(t,[D,k,C,k,D]),a=s[0],n=s[4];if(n<=a)t.error="Start time is not sooner than end time.";else{p(t,T);var r=p(t,m);c(t,1);var o=p(t,v);void 0===e&&(e=t.cues.length+1),t.cues.push({id:e,start:a,end:n,settings:r,components:o})}}function m(t){for(var e={};0<t.text.length&&"\n"!==t.text[0];){var i=p(t,r);e[i[0]]=i[1],p(t,T)}return e}function v(t){for(var e={type:"internal",tagName:"",value:"",classes:[],annotation:"",parent:null,children:[],language:""},i=e,s=[];0<t.text.length;){var a=d(t);if(-1!==a.indexOf("--\x3e")||/^\s*$/.test(a))break;if(2<=t.text.length&&"\n"===t.text[0]&&"\n"===t.text[1]){c(t,2);break}var n=y(t);if("string"===n.type)i.children.push(n);else if("startTag"===n.type)n.type=n.tagName,n.parent=i,-1!==l.inArray(n.tagName,["i","b","u","ruby"])?(0<s.length&&(i.language=s[s.length-1]),i.children.push(n),i=n):"rt"===n.tagName&&"ruby"===i.tagName?(0<s.length&&(i.language=s[s.length-1]),i.children.push(n),i=n):"c"===n.tagName?(n.value=n.annotation,0<s.length&&(i.language=s[s.length-1]),i.children.push(n),i=n):"v"===n.tagName?(n.value=n.annotation,0<s.length&&(i.language=s[s.length-1]),i.children.push(n),i=n):"lang"===n.tagName&&(s.push(n.annotation),0<s.length&&(i.language=s[s.length-1]),i.children.push(n),i=n);else if("endTag"===n.type)n.tagName===i.type&&-1!==l.inArray(n.tagName,["c","i","b","u","ruby","rt","v"])?i=i.parent:"lang"===n.tagName&&"lang"===i.type?(i=i.parent,s.pop()):"ruby"===n.tagName&&"rt"===i.type&&(i=i.parent.parent);else if("timestampTag"===n.type){var r={text:n.value,error:null,metadata:{},cues:[],line:1,column:1};try{var o=p(r,D);0===r.text.length&&(n.value=o,i.push(n))}catch(t){}}}return e}function y(t){for(var e="data",i=[],s="",a={type:"",tagName:"",value:"",classes:[],annotation:"",children:[]};;){var n;if(n=2<=t.text.length&&"\n"===t.text[0]&&"\n"===t.text[1]?"":0<t.text.length?t.text[0]:"","data"===e)if("&"===n)s="&",e="escape";else if("<"===n){if(0!==i.length)return a.type="string",a.value=i.join(""),a;e="tag"}else{if(""===n)return{type:"string",value:i.join("")};i.push(n)}else if("escape"===e)if("&"===n)i.push(s),s="&";else if(n.match(/[0-9a-z]/))s+=n;else if(";"===n)"&amp"===s?i.push("&"):"&lt"===s?i.push("<"):"&gt"===s?i.push(">"):"&lrm"===s?i.push("‎"):"&rlm"===s?i.push("‏"):"&nbsp"===s?i.push(" "):(i.push(s),i.push(";")),e="data";else{if("<"===n||""===n)return i.push(s),a.type="string",a.value=i.join(""),a;if("\t"===n||"\n"===n||"\f"===n||" "===n)return i.push(s),a.type="string",a.value=i.join(""),a;i.push(s),e="data"}else if("tag"===e)if("\t"===n||"\n"===n||"\f"===n||" "===n)e="startTagAnnotation";else if("."===n)e="startTagClass";else if("/"===n)e="endTag";else if(n.match("[0-9]"))e="timestampTag",i.push(n);else{if(">"===n){c(t,1);break}if(""===n)return a.tagName="",a.type="startTag",a;i.push(n),e="startTag"}else if("startTag"===e)if("\t"===n||"\f"===n||" "===n)e="startTagAnnotation";else if("\n"===n)s=n,e="startTagAnnotation";else if("."===n)e="startTagClass";else{if(">"===n)return c(t,1),a.tagName=i.join(""),a.type="startTag",a;if(""===n)return a.tagName=i.join(""),a.type="startTag",a;i.push(n)}else if("startTagClass"===e)if("\t"===n||"\f"===n||" "===n)a.classes.push(s),s="",e="startTagAnnotation";else if("\n"===n)a.classes.push(s),s=n,e="startTagAnnotation";else if("."===n)a.classes.push(s),s="";else{if(">"===n)return c(t,1),a.classes.push(s),a.type="startTag",a.tagName=i.join(""),a;if(""===n)return a.classes.push(s),a.type="startTag",a.tagName=i.join(""),a;s+="c"}else if("startTagAnnotation"===e){if(">"===n)return c(t,1),s=l.trim(s).replace(/ +/," "),a.type="startTag",a.tagName=i.join(""),a.annotation=s,a;if(""===n)return s=l.trim(s).replace(/ +/," "),a.type="startTag",a.tagName=i.join(""),a.annotation=s,a;s+=n}else if("endTag"===e){if(">"===n)return c(t,1),a.type="endTag",a.tagName=i.join(""),a;if(""===n)return a.type="endTag",a.tagName=i.join(""),a;i.push(n)}else{if("timestampTag"!==e)throw"Unknown tokenState "+e;if(">"===n)return c(t,1),a.type="timestampTag",a.name=i.join(""),a;if(""===n)return a.type="timestampTag",a.name=i.join(""),a;i.push(n)}c(t,1)}}function b(t){if(-1===u(t).indexOf("--\x3e"))for(;;){var e=d(t);if(0===l.trim(e).length)return;if(-1!==e.indexOf("--\x3e"))return void(t.error="Invalid syntax: --\x3e in comment.");u(t)}else t.error="Invalid syntax: --\x3e in NOTE line."}function w(t){"\ufeff"===t.text[0]&&c(t,1)}function P(t){"WEBVTT"===t.text.substring(0,6)?c(t,6):t.error="Invalid signature."}function C(t){t.text.length<3||"--\x3e"!==t.text.substring(0,3)?t.error="Missing --\x3e":c(t,3)}function T(t){for(;"\t"===t.text[0]||" "===t.text[0];)c(t,1)}function k(t){for(var e=0;"\t"===t.text[0]||" "===t.text[0];)c(t,1),e+=1;0===e&&(t.error="Missing space.")}function A(t){var e=t.text.indexOf("\n");-1===e?t.error="Missing EOL.":c(t,e+1)}function $(t){for(;0<t.text.length;){var e=d(t);if(0!==l.trim(e).length)break;u(t)}}function x(t){for(var e=0;0<t.text.length;){var i=d(t);if(0!==l.trim(i).length)break;u(t),e+=1}0===e&&(t.error="Missing empty line.")}function D(t){var e=g(t.text);if(-1!==e){var i=c(t,e),s=/((\d\d):)?((\d\d):)(\d\d).(\d\d\d)|(\d+).(\d\d\d)/.exec(i);if(s){var a=0,n=s[2],r=s[4];if(r){if(59<parseInt(r,10))return void(t.error="Invalid minute range");n&&(a+=3600*parseInt(n,10)),a+=60*parseInt(r,10);var o=s[5];if(59<parseInt(o,10))return void(t.error="Invalid second range");a+=parseInt(o,10),a+=parseInt(s[6],10)/1e3}else a+=parseInt(s[7],10),a+=parseInt(s[8],10)/1e3;return a}t.error="Unable to parse timestamp"}else t.error("Missing timing.")}AblePlayer.prototype.parseWebVTT=function(t,e){var i={src:t,text:e=e.replace(/(\r\n|\n|\r)/g,"\n"),error:null,metadata:{},cues:[],line:1,column:1};try{p(i,s)}catch(t){"Line: "+i.line+", ","Column: "+i.column+"\n",t,console.warn||console.log}return i}}(jQuery),function(A){AblePlayer.prototype.injectPlayerCode=function(){var t;this.$mediaContainer=this.$media.wrap('<div class="able-media-container"></div>').parent(),this.$ableDiv=this.$mediaContainer.wrap('<div class="able"></div>').parent(),this.$ableWrapper=this.$ableDiv.wrap('<div class="able-wrapper"></div>').parent(),this.$ableWrapper.css({"max-width":this.playerMaxWidth+"px"}),this.injectOffscreenHeading(),"video"===this.mediaType&&("image"==this.iconType||"youtube"===this.player&&!this.hasPoster||this.injectBigPlayButton(),t=A("<div>",{class:"able-vidcap-container"}),this.$vidcapContainer=this.$mediaContainer.wrap(t).parent()),this.injectPlayerControlArea(),this.injectTextDescriptionArea(),this.injectAlert(),this.injectPlaylist()},AblePlayer.prototype.injectOffscreenHeading=function(){var t;"0"==this.playerHeadingLevel||(void 0===this.playerHeadingLevel&&(this.playerHeadingLevel=this.getNextHeadingLevel(this.$ableDiv)),t="h"+this.playerHeadingLevel.toString(),this.$headingDiv=A("<"+t+">"),this.$ableDiv.prepend(this.$headingDiv),this.$headingDiv.addClass("able-offscreen"),this.$headingDiv.text(this.tt.playerHeading))},AblePlayer.prototype.injectBigPlayButton=function(){this.$bigPlayButton=A("<button>",{class:"able-big-play-button icon-play","aria-hidden":!0,tabindex:-1});var t=this;this.$bigPlayButton.click(function(){t.handlePlay()}),this.$mediaContainer.append(this.$bigPlayButton)},AblePlayer.prototype.injectPlayerControlArea=function(){this.$playerDiv=A("<div>",{class:"able-player",role:"region","aria-label":this.mediaType+" player"}),this.$playerDiv.addClass("able-"+this.mediaType),this.$nowPlayingDiv=A("<div>",{class:"able-now-playing","aria-live":"assertive","aria-atomic":"true"}),this.$controllerDiv=A("<div>",{class:"able-controller"}),this.$controllerDiv.addClass("able-"+this.iconColor+"-controls"),this.$statusBarDiv=A("<div>",{class:"able-status-bar"}),this.$timer=A("<span>",{class:"able-timer"}),this.$elapsedTimeContainer=A("<span>",{class:"able-elapsedTime",text:"0:00"}),this.$durationContainer=A("<span>",{class:"able-duration"}),this.$timer.append(this.$elapsedTimeContainer).append(this.$durationContainer),this.$speed=A("<span>",{class:"able-speed","aria-live":"assertive"}).text(this.tt.speed+": 1x"),this.$status=A("<span>",{class:"able-status","aria-live":"polite"}),this.$statusBarDiv.append(this.$timer,this.$speed,this.$status),this.$playerDiv.append(this.$nowPlayingDiv,this.$controllerDiv,this.$statusBarDiv),this.$ableDiv.append(this.$playerDiv)},AblePlayer.prototype.injectTextDescriptionArea=function(){this.$descDiv=A("<div>",{class:"able-descriptions","aria-live":"assertive","aria-atomic":"true"}),this.$descDiv.hide(),this.$ableDiv.append(this.$descDiv)},AblePlayer.prototype.getDefaultWidth=function(t){return"transcript"===t?450:"sign"===t?400:void 0},AblePlayer.prototype.positionDraggableWindow=function(t,e){var i,s,a,n;i=this.getCookie(),"transcript"===t?(a=this.$transcriptArea,void 0!==i.transcript&&(s=i.transcript)):"sign"===t&&(a=this.$signWindow,void 0!==i.transcript&&(s=i.sign)),void 0===s||A.isEmptyObject(s)?(n=this.getOptimumPosition(t,e),void 0===e&&(e=this.getDefaultWidth(t)),a.css({position:n[0],width:e,"z-index":n[3]}),"absolute"===n[0]&&a.css({top:n[1]+"px",left:n[2]+"px"})):(a.css({position:s.position,width:s.width,"z-index":s.zindex}),"absolute"===s.position&&a.css({top:s.top,left:s.left}),this.updateZIndex(t))},AblePlayer.prototype.getOptimumPosition=function(t,e){var i,s,a,n,r,o;return void 0===e&&(e=this.getDefaultWidth(t)),5,i=[],s=this.$ableDiv.width(),this.$ableDiv.height(),(a=this.$ableDiv.offset()).top,n=a.left,r=A(window).width(),o=0,"transcript"===t?void 0!==this.$signWindow&&this.$signWindow.is(":visible")&&(o=this.$signWindow.width()+5):"sign"===t&&void 0!==this.$transcriptArea&&this.$transcriptArea.is(":visible")&&(o=this.$transcriptArea.width()+5),e<r-(n+s+5+o)?(i[0]="absolute",i[1]=0,i[2]=s+o+5):e+5<n?(i[0]="absolute",i[1]=0,i[2]=n-e-5):i[0]="relative",i},AblePlayer.prototype.injectPoster=function(t,e){var i,s,a;"youtube"===e?void 0!==this.ytWidth?(s=this.ytWidth,a=this.ytHeight):void 0!==this.playerMaxWidth?(s=this.playerMaxWidth,a=this.playerMaxHeight):void 0!==this.playerWidth&&(s=this.playerWidth,a=this.playerHeight):"fallback"===e&&(s="100%",a="auto"),this.hasPoster&&(i=this.$media.attr("poster"),this.$posterImg=A("<img>",{class:"able-poster",src:i,alt:"",role:"presentation",width:s,height:a}),t.append(this.$posterImg))},AblePlayer.prototype.injectAlert=function(){var t;this.$alertBox=A('<div role="alert"></div>'),this.$alertBox.addClass("able-alert"),this.$alertBox.hide(),this.$alertBox.appendTo(this.$ableDiv),t="audio"==this.mediaType?"-10":2*Math.round(this.$mediaContainer.height()/3),this.$alertBox.css({top:t+"px"}),this.$srAlertBox=A('<div role="alert"></div>'),this.$srAlertBox.addClass("able-screenreader-alert"),this.$srAlertBox.appendTo(this.$ableDiv)},AblePlayer.prototype.injectPlaylist=function(){if(!0===this.playlistEmbed){var t=this.$playlistDom.clone();t.insertBefore(this.$statusBarDiv),this.$playlist=t.find("li")}},AblePlayer.prototype.createPopup=function(e,t){var i,s,a,n,r,o,l,h,p,c,u,d,g;if(s=A("<ul>",{id:(i=this).mediaId+"-"+e+"-menu",class:"able-popup",role:"menu"}).hide(),"captions"===e&&s.addClass("able-popup-captions"),"prefs"===e)for(a=this.getPreferencesGroups(),n=0;n<a.length;n++)r=A("<li></li>",{role:"menuitem",tabindex:"-1"}),"captions"===(o=a[n])?r.text(this.tt.prefMenuCaptions):"descriptions"===o?r.text(this.tt.prefMenuDescriptions):"keyboard"===o?r.text(this.tt.prefMenuKeyboard):"transcript"===o&&r.text(this.tt.prefMenuTranscript),r.on("click",function(){c=A(this).text(),i.setFullscreen(!1),c===i.tt.prefMenuCaptions?i.captionPrefsDialog.show():c===i.tt.prefMenuDescriptions?i.descPrefsDialog.show():c===i.tt.prefMenuKeyboard?i.keyboardPrefsDialog.show():c===i.tt.prefMenuTranscript&&i.transcriptPrefsDialog.show(),i.closePopups()}),s.append(r);else if("captions"===e||"chapters"===e){for(l=!1,n=0;n<t.length;n++)h=t[n],r=A("<li></li>",{role:"menuitemradio",tabindex:"-1",lang:h.language}),h.def?(r.attr("aria-checked","true"),l=!0):r.attr("aria-checked","false"),"captions"==e?(r.text(h.label),r.on("click",this.getCaptionClickFunction(h))):"chapters"==e&&(r.text(this.flattenCueForCaption(h)+" - "+this.formatSecondsAsColonTime(h.start)),r.on("click",this.getChapterClickFunction(h.start))),s.append(r);"captions"===e&&(r=A("<li></li>",{role:"menuitemradio",tabindex:"-1"}).text(this.tt.captionsOff),0===this.prefCaptions&&(r.attr("aria-checked","true"),l=!0),r.on("click",this.getCaptionOffFunction()),s.append(r))}else if("transcript-window"===e||"sign-window"===e)for((p=[]).push({name:"move",label:this.tt.windowMove}),p.push({name:"resize",label:this.tt.windowResize}),p.push({name:"close",label:this.tt.windowClose}),n=0;n<p.length;n++)(r=A("<li></li>",{role:"menuitem",tabindex:"-1","data-choice":p[n].name})).text(p[n].label),r.on("click mousedown",function(t){if(t.stopPropagation(),0!==t.button)return!1;i.windowMenuClickRegistered||i.finishingDrag||(i.windowMenuClickRegistered=!0,i.handleMenuChoice(e.substr(0,e.indexOf("-")),A(this).attr("data-choice"),t))}),s.append(r);return"captions"!==e||l?"chapters"===e&&(s.find('li:contains("'+this.defaultChapter+'")')?s.find('li:contains("'+this.defaultChapter+'")').attr("aria-checked","true").addClass("able-focus"):s.find("li").first().attr("aria-checked","true").addClass("able-focus")):s.find("li[lang="+this.captionLang+"]")?s.find("li[lang="+this.captionLang+"]").attr("aria-checked","true"):s.find("li").last().attr("aria-checked","true"),s.on("keydown",function(t){A(this).attr("id").split("-")[1],u=A(this).find("li:focus"),g=u.is(":first-child")?(d=A(this).find("li").last(),u.next()):u.is(":last-child")?(d=u.prev(),A(this).find("li").first()):(d=u.prev(),u.next()),9===t.which?t.shiftKey?(u.removeClass("able-focus"),d.focus().addClass("able-focus")):(u.removeClass("able-focus"),g.focus().addClass("able-focus")):40===t.which||39===t.which?(u.removeClass("able-focus"),g.focus().addClass("able-focus")):38==t.which||37===t.which?(u.removeClass("able-focus"),d.focus().addClass("able-focus")):32===t.which||13===t.which?u.click():27===t.which&&(u.removeClass("able-focus"),i.closePopups()),t.preventDefault()}),this.$controllerDiv.append(s),s},AblePlayer.prototype.closePopups=function(){this.chaptersPopup&&this.chaptersPopup.is(":visible")&&(this.chaptersPopup.hide(),this.$chaptersButton.attr("aria-expanded","false").focus()),this.captionsPopup&&this.captionsPopup.is(":visible")&&(this.captionsPopup.hide(),this.$ccButton.attr("aria-expanded","false").focus()),this.prefsPopup&&this.prefsPopup.is(":visible")&&(this.prefsPopup.hide(),this.prefsPopup.find("li").removeClass("able-focus").attr("tabindex","-1"),this.$prefsButton.attr("aria-expanded","false").focus()),this.$volumeSlider&&this.$volumeSlider.is(":visible")&&(this.$volumeSlider.hide().attr("aria-hidden","true"),this.$volumeAlert.text(this.tt.volumeSliderClosed),this.$volumeButton.attr("aria-expanded","false").focus()),this.$transcriptPopup&&this.$transcriptPopup.is(":visible")&&(this.$transcriptPopup.hide(),this.$transcriptPopup.find("li").removeClass("able-focus").attr("tabindex","-1"),this.$transcriptPopupButton.attr("aria-expanded","false").focus()),this.$signPopup&&this.$signPopup.is(":visible")&&(this.$signPopup.hide(),this.$signPopup.find("li").removeClass("able-focus").attr("tabindex","-1"),this.$signPopupButton.attr("aria-expanded","false").focus())},AblePlayer.prototype.setupPopups=function(t){var e,i;if(e=[],void 0===t&&e.push("prefs"),"captions"!==t&&void 0!==t||0<this.captions.length&&e.push("captions"),"chapters"!==t&&void 0!==t||0<this.chapters.length&&this.useChaptersButton&&e.push("chapters"),"transcript-window"===t&&"popup"===this.transcriptType&&e.push("transcript-window"),"sign-window"===t&&this.hasSignLanguage&&e.push("sign-window"),0<e.length){this;for(var s=0;s<e.length;s++){var a=e[s];if(!1,"prefs"==a)this.prefsPopup=this.createPopup("prefs");else if("captions"==a)void 0!==this.captionsPopup&&this.captionsPopup||(this.captionsPopup=this.createPopup("captions",this.captions));else if("chapters"==a)i=this.selectedChapters?this.selectedChapters.cues:1<=this.chapters.length?this.chapters[0].cues:[],void 0!==this.chaptersPopup&&this.chaptersPopup||(this.chaptersPopup=this.createPopup("chapters",i));else{if("transcript-window"==a)return this.createPopup("transcript-window");if("sign-window"==a)return this.createPopup("sign-window")}}}},AblePlayer.prototype.provideFallback=function(){var t,e,i,s,a,n,r,o,l,h;if(n=!1,t=A("<div>",{class:"able-fallback",role:"alert"}),e=void 0!==this.playerMaxWidth?this.playerMaxWidth+"px":this.$media.attr("width")?parseInt(this.$media.attr("width"),10)+"px":"100%",t.css("max-width",e),i=this.$media.clone(),A("source, track",i).remove(),(s=i.html().trim()).length?t.html(s):(a=this.tt.fallbackError1+" "+this.tt[this.mediaType]+". ",a+=this.tt.fallbackError2+":",s=A("<p>").text(a),t.html(s),n=!0),n){for(h=A("<ul>"),r=this.getSupportingBrowsers(),o=0;o<r.length;o++)(l=A("<li>")).text(r[o].name+" "+r[o].minVersion+" "+this.tt.orHigher),h.append(l);t.append(h)}this.injectPoster(t,"fallback"),void 0!==this.$ableWrapper?(this.$ableWrapper.before(t),this.$ableWrapper.remove()):void 0!==this.$media?(this.$media.before(t),this.$media.remove()):A("body").prepend(t)},AblePlayer.prototype.getSupportingBrowsers=function(){var t=[];return t[0]={name:"Chrome",minVersion:"31"},t[1]={name:"Firefox",minVersion:"34"},t[2]={name:"Internet Explorer",minVersion:"10"},t[3]={name:"Opera",minVersion:"26"},t[4]={name:"Safari for Mac OS X",minVersion:"7.1"},t[5]={name:"Safari for iOS",minVersion:"7.1"},t[6]={name:"Android Browser",minVersion:"4.1"},t[7]={name:"Chrome for Android",minVersion:"40"},t},AblePlayer.prototype.calculateControlLayout=function(){var t={ul:["play","restart","rewind","forward"],ur:["seek"],bl:[],br:[]};this.browserSupportsVolume()?(this.volumeButton="volume-"+this.getVolumeName(this.volume),t.ur.push("volume")):this.volume=!1;var e=[],i=[];return this.isPlaybackRateSupported()&&(e.push("slower"),e.push("faster")),"video"===this.mediaType&&(this.hasCaptions&&e.push("captions"),this.hasSignLanguage&&e.push("sign"),(this.hasOpenDesc||this.hasClosedDesc)&&this.useDescriptionsButton&&e.push("descriptions")),"popup"===this.transcriptType&&e.push("transcript"),"video"===this.mediaType&&this.hasChapters&&this.useChaptersButton&&e.push("chapters"),t.br.push("preferences"),"video"===this.mediaType&&this.allowFullScreen&&t.br.push("fullscreen"),0<e.length&&0<i.length?(t.bl=e,t.bl.push("pipe"),t.bl=t.bl.concat(i)):t.bl=e.concat(i),t},AblePlayer.prototype.addControls=function(){var h,t,e,i,s,a,n,r,o,l,p,c,u,d,g,f,m,v,y,b,w,P;for(100,t=(h=this).calculateControlLayout(),e={0:"ul",1:"ur",2:"bl",3:"br"},c=this.mediaId+"-tooltip",this.$tooltipDiv=A("<div>",{id:c,class:"able-tooltip"}).hide(),this.$controllerDiv.append(this.$tooltipDiv),i=0;i<=3;i++){for(a=t[e[i]],n=A("<div>",i%2==0?{class:"able-left-controls"}:{class:"able-right-controls"}),this.$controllerDiv.append(n),s=0;s<a.length;s++){if("seek"===(u=a[s]))r=A('<div class="able-seekbar"></div>'),o=this.mediaType+" "+this.tt.seekbarLabel,n.append(r),void 0!==this.duration&&0!==this.duration||(this.duration=100,this.elapsed=0),this.seekBar=new AccessibleSlider(this.mediaType,r,"horizontal",100,0,this.duration,this.seekInterval,o,"seekbar",!0,"visible");else if("pipe"===u)l=A("<span>",{tabindex:"-1","aria-hidden":"true"}),"font"===this.iconType?l.addClass("icon-pipe"):(p=A("<img>",{src:this.rootPath+"button-icons/"+this.iconColor+"/pipe.png",alt:"",role:"presentation"}),l.append(p)),n.append(l);else{if(g="volume"===u?this.rootPath+"button-icons/"+this.iconColor+"/"+this.volumeButton+".png":"fullscreen"===u?this.rootPath+"button-icons/"+this.iconColor+"/fullscreen-expand.png":"slower"===u?"animals"===this.speedIcons?this.rootPath+"button-icons/"+this.iconColor+"/turtle.png":this.rootPath+"button-icons/"+this.iconColor+"/slower.png":"faster"===u?"animals"===this.speedIcons?this.rootPath+"button-icons/"+this.iconColor+"/rabbit.png":this.rootPath+"button-icons/"+this.iconColor+"/faster.png":this.rootPath+"button-icons/"+this.iconColor+"/"+u+".png",f=this.getButtonTitle(u),m=A("<button>",{type:"button",tabindex:"0","aria-label":f,class:"able-button-handler-"+u}),"volume"!==u&&"preferences"!==u||("preferences"==u?P=this.mediaId+"-prefs-menu":"volume"===u&&(P=this.mediaId+"-volume-slider"),m.attr({"aria-controls":P,"aria-expanded":"false"})),"font"===this.iconType)v="volume"===u?"icon-"+this.volumeButton:"slower"===u?"animals"===this.speedIcons?"icon-turtle":"icon-slower":"faster"===u?"animals"===this.speedIcons?"icon-rabbit":"icon-faster":"icon-"+u,y=A("<span>",{class:v,"aria-hidden":"true"}),m.append(y);else if("svg"===this.iconType){var C;C="volume"===u?this.getSvgData(this.volumeButton):"fullscreen"===u?this.getSvgData("fullscreen-expand"):"slower"===u?"animals"===this.speedIcons?this.getSvgData("turtle"):this.getSvgData("slower"):"faster"===u?"animals"===this.speedIcons?this.getSvgData("rabbit"):this.getSvgData("faster"):this.getSvgData(u),y=A("<svg>",{focusable:"false","aria-hidden":"true",viewBox:C[0]}),b=A("<path>",{d:C[1]}),y.append(b),m.html(y),m.html(m.html())}else d=A("<img>",{src:g,alt:"",role:"presentation"}),m.append(d);var T=A("<span>",{class:"able-clipped"}).text(f);m.append(T),m.on("mouseenter focus",function(t){var e=A(this).attr("aria-label"),i=A(this).position(),s=A(this).height(),a=(A(this).width(),i.top-s-15),n=!0;if(A(this).closest("div").hasClass("able-right-controls")){if(A(this).closest("div").find("button:last").get(0)==A(this).get(0)){n=!1;var r={left:"",right:0+"px",top:a+"px"}}}else if(A(this).is(":first-child")){n=!1;r={left:i.left+"px",right:"",top:a+"px"}}if(n){var o=AblePlayer.localGetElementById(m[0],c).text(e).width();r={left:i.left-o/2+"px",right:"",top:a+"px"}}var l=AblePlayer.localGetElementById(m[0],c).text(e).css(r);h.showTooltip(l),A(this).on("mouseleave blur",function(){AblePlayer.localGetElementById(m[0],c).text("").hide()})}),"captions"===u?this.prefCaptions&&1===this.prefCaptions||(w=1<this.captions.length?this.tt.captions:this.tt.showCaptions,m.addClass("buttonOff").attr("title",w)):"descriptions"===u&&(this.prefDesc&&1===this.prefDesc||m.addClass("buttonOff").attr("title",this.tt.turnOnDescriptions)),n.append(m),"play"===u?this.$playpauseButton=m:"captions"===u?this.$ccButton=m:"sign"===u?(this.$signButton=m,this.$signWindow.is(":visible")||this.$signButton.addClass("buttonOff")):"descriptions"===u?this.$descButton=m:"mute"===u?this.$muteButton=m:"transcript"===u?(this.$transcriptButton=m,this.$transcriptDiv.is(":visible")||this.$transcriptButton.addClass("buttonOff").attr("title",this.tt.showTranscript)):"fullscreen"===u?this.$fullscreenButton=m:"chapters"===u?this.$chaptersButton=m:"preferences"===u?this.$prefsButton=m:"volume"===u&&(this.$volumeButton=m)}"volume"===u&&this.addVolumeSlider(n)}i%2==1&&this.$controllerDiv.append('<div style="clear:both;"></div>')}for(var k in"video"===this.mediaType&&(void 0!==this.$captionsDiv&&this.stylizeCaptions(this.$captionsDiv),void 0!==this.$descDiv&&this.stylizeCaptions(this.$descDiv)),this.controls=[],t)t.hasOwnProperty(k)&&(this.controls=this.controls.concat(t[k]));this.refreshControls("init")},AblePlayer.prototype.useSvg=function(){var t,e,g=Object.create(null),f=function(){clearTimeout(e),e=setTimeout(t,100)},m=function(){},v="http://www.w3.org/1999/xlink";t=function(){var t,e,i,s,a,n,r,o,l,h=0;if(window.XMLHttpRequest&&(a=void 0!==(a=new XMLHttpRequest).withCredentials?XMLHttpRequest:XDomainRequest||void 0),void 0!==a){for(m(),o=document.getElementsByTagName("use"),s=0;s<o.length;s+=1){try{e=o[s].getBoundingClientRect()}catch(t){e=!1}t=(r=o[s].getAttributeNS(v,"href").split("#"))[0],i=r[1],n=e&&0===e.left&&0===e.right&&0===e.top&&0===e.bottom,e&&0===e.width&&0===e.height&&!n?t.length&&(!0!==(l=g[t])&&setTimeout(c({useEl:o[s],base:t,hash:i}),0),void 0===l&&(l=new a,(g[t]=l).onload=u(l),l.onerror=d(l),l.ontimeout=d(l),l.open("GET",t),l.send(),h+=1)):n||(void 0===g[t]?g[t]=!0:g[t].onload&&(g[t].abort(),g[t].onload=void 0,g[t]=!0))}o="",h+=1,p()}function p(){0===(h-=1)&&function(){var t;window.addEventListener("resize",f,!1),window.addEventListener("orientationchange",f,!1),m=window.MutationObserver?((t=new MutationObserver(f)).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),function(){try{t.disconnect(),window.removeEventListener("resize",f,!1),window.removeEventListener("orientationchange",f,!1)}catch(t){}}):(document.documentElement.addEventListener("DOMSubtreeModified",f,!1),function(){document.documentElement.removeEventListener("DOMSubtreeModified",f,!1),window.removeEventListener("resize",f,!1),window.removeEventListener("orientationchange",f,!1)})}()}function c(t){return function(){!0!==g[t.base]&&t.useEl.setAttributeNS(v,"xlink:href","#"+t.hash)}}function u(s){return function(){var t,e=document.body,i=document.createElement("x");s.onload=null,i.innerHTML=s.responseText,(t=i.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",e.insertBefore(t,e.firstChild)),p()}}function d(t){return function(){t.onerror=null,t.ontimeout=null,p()}}}},AblePlayer.prototype.cuePlaylistItem=function(t){var e,i,s,a,n,r,o=this;i=this.player,this.initializing||this.playerCreated&&this.deletePlayer(),e=this.$playlist.eq(t),"youtube"===(s=this.hasAttr(e,"data-youtube-id")?(this.youTubeId=e.attr("data-youtube-id"),"youtube"):"html5")?"html5"===i&&(this.playing&&this.pauseMedia(),this.$media.hide()):(this.youTubeId=!1,"youtube"===i&&this.$media.show()),this.player=s,this.swappingSrc=!0,this.hasAttr(e,"data-poster")&&this.$media.attr("poster",e.attr("data-poster")),this.hasAttr(e,"data-width")&&this.$media.attr("width",e.attr("data-width")),this.hasAttr(e,"data-height")&&this.$media.attr("height",e.attr("data-height")),this.hasAttr(e,"data-youtube-desc-id")&&this.$media.attr("data-youtube-desc-id",e.attr("data-youtube-desc-id")),this.youTubeId&&this.$media.attr("data-youtube-id",e.attr("data-youtube-id"));var l=e.children("span.able-source");l.length&&l.each(function(){if(o.hasAttr(A(this),"data-src")){var t=A("<source>",{src:A(this).attr("data-src")});o.hasAttr(A(this),"data-type")&&t.attr("type",A(this).attr("data-type")),o.hasAttr(A(this),"data-desc-src")&&t.attr("data-desc-src",A(this).attr("data-desc-src")),o.hasAttr(A(this),"data-sign-src")&&t.attr("data-sign-src",A(this).attr("data-sign-src")),o.$media.append(t)}});var h=e.children("span.able-track");h.length&&h.each(function(){if(o.hasAttr(A(this),"data-src")&&o.hasAttr(A(this),"data-kind")&&o.hasAttr(A(this),"data-srclang")){var t=A("<track>",{src:A(this).attr("data-src"),kind:A(this).attr("data-kind"),srclang:A(this).attr("data-srclang")});o.hasAttr(A(this),"data-label")&&t.attr("label",A(this).attr("data-label")),o.$media.append(t)}}),a=e.text(),this.hasAttr(e,"lang")&&(n=e.attr("lang")),this.$sources=this.$media.find("source"),this.recreatePlayer(),this.$playlist.removeClass("able-current"),this.$playlist.eq(t).addClass("able-current"),!0===this.showNowPlaying&&void 0!==this.$nowPlayingDiv&&(r=A("<span>"),void 0!==n&&r.attr("lang",n),r.html("<span>"+this.tt.selectedTrack+":</span>"+a),this.$nowPlayingDiv.html(r)),this.swappingSrc=!1,"html5"===this.player?this.media.load():this.player,this.initializing?this.swappingSrc=!1:(this.swappingSrc=!0,"html5"===this.player?this.media.load():"youtube"===this.player&&(this.okToPlay=!0))},AblePlayer.prototype.deletePlayer=function(){"youtube"==this.player&&this.$mediaContainer.find("iframe").remove();this.$media.removeAttr("poster width height"),this.$media.empty(),this.$controllerDiv.empty(),this.$elapsedTimeContainer.empty().text("0:00"),this.$durationContainer.empty(),this.$signWindow&&this.$signWindow.remove(),this.$transcriptArea&&this.$transcriptArea.remove(),A(".able-modal-dialog").remove(),this.hasCaptions=!1,this.hasChapters=!1,this.captionsPopup=null,this.chaptersPopup=null},AblePlayer.prototype.getButtonTitle=function(t){return"playpause"===t?this.tt.play:"play"===t?this.tt.play:"pause"===t?this.tt.pause:"restart"===t?this.tt.restart:"rewind"===t?this.tt.rewind:"forward"===t?this.tt.forward:"captions"===t?1<this.captions.length?this.tt.captions:this.captionsOn?this.tt.hideCaptions:this.tt.showCaptions:"descriptions"===t?this.descOn?this.tt.turnOffDescriptions:this.tt.turnOnDescriptions:"transcript"===t?this.$transcriptDiv.is(":visible")?this.tt.hideTranscript:this.tt.showTranscript:"chapters"===t?this.tt.chapters:"sign"===t?this.tt.sign:"volume"===t?this.tt.volume:"faster"===t?this.tt.faster:"slower"===t?this.tt.slower:"preferences"===t?this.tt.preferences:"help"!==t?(this.debug,t.charAt(0).toUpperCase()+t.slice(1)):void 0}}(jQuery),function(c){AblePlayer.prototype.setupTracks=function(){var l,a,t,n,r,o,h,p;return l=this,t=(a=new c.Deferred).promise(),n=[],this.captions=[],this.captionLabels=[],this.descriptions=[],this.chapters=[],this.meta=[],c("#able-vts").length?(this.vtsTracks=[],this.hasVts=!0):this.hasVts=!1,this.getTracks().then(function(){for(h=l.tracks,"youtube"===l.player&&h.length&&(l.usingYouTubeCaptions=!1),o=0;o<h.length;o++){var t=(p=h[o]).kind,e=p.language,i=p.label;if(p.src){var s=p.src;r=l.loadTextObject(s),n.push(r),r.then(function(a,n){a.src;var r=a.language,o=a.label;return function(t,e){var i=e,s=l.parseWebVTT(t,i).cues;l.hasVts&&l.setupVtsTracks(n,r,o,t,i),"captions"===n||"subtitles"===n?l.setupCaptions(a,r,o,s):"descriptions"===n?l.setupDescriptions(a,s,r):"chapters"===n?l.setupChapters(a,s,r):"metadata"===n&&l.setupMetadata(a,s)}}(p,t))}else(l.usingYouTubeCaptions||l.usingVimeoCaptions)&&l.setupCaptions(p,e,i)}c.when.apply(c,n).then(function(){a.resolve()})}),t},AblePlayer.prototype.getTracks=function(){var t,e,i,s,a,n;return t=this,i=(e=new c.Deferred).promise(),this.$tracks=this.$media.find("track"),this.tracks=[],this.$tracks.length&&this.$tracks.each(function(){s=c(this).attr("srclang")?c(this).attr("srclang"):t.lang,a=c(this).attr("label")?c(this).attr("label"):t.getLanguageName(s),(n=!!c(this).attr("default")||s===t.lang)&&(t.captionLang=s),t.tracks.push({kind:c(this).attr("kind"),src:c(this).attr("src"),language:s,label:a,def:n})}),this.$media.find('track[kind="captions"],track[kind="subtitles"]').length?e.resolve():"youtube"===this.player?this.getYouTubeCaptionTracks(this.youTubeId).then(function(){e.resolve()}):"vimeo"===this.player?this.getVimeoCaptionTracks().then(function(){e.resolve()}):e.resolve(),i},AblePlayer.prototype.setupCaptions=function(t,e,i,s){var a,n;if(void 0===s&&(s=null),this.hasCaptions=!0,this.$media.find("track").removeAttr("default"),"video"===this.mediaType&&(this.usingYouTubeCaptions||this.usingVimeoCaptions||this.$captionsDiv||(this.$captionsDiv=c("<div>",{class:"able-captions"}),this.$captionsWrapper=c("<div>",{class:"able-captions-wrapper","aria-hidden":"true"}).hide(),"below"===this.prefCaptionsPosition?this.$captionsWrapper.addClass("able-captions-below"):this.$captionsWrapper.addClass("able-captions-overlay"),this.$captionsWrapper.append(this.$captionsDiv),this.$vidcapContainer.append(this.$captionsWrapper))),this.currentCaption=-1,1===this.prefCaptions?this.captionsOn=!0:this.captionsOn=!1,0===this.captions.length)this.captions.push({cues:s,language:e,label:i,def:t.def}),this.captionLabels.push(i);else{for(a=!1,n=0;n<this.captions.length;n++)if(this.captionLabels[n],i.toLowerCase()<this.captionLabels[n].toLowerCase()){this.captions.splice(n,0,{cues:s,language:e,label:i,def:t.def}),this.captionLabels.splice(n,0,i),a=!0;break}a||(this.captions.push({cues:s,language:e,label:i,def:t.def}),this.captionLabels.push(i))}},AblePlayer.prototype.setupDescriptions=function(t,e,i){this.hasClosedDesc=!0,this.currentDescription=-1,this.descriptions.push({cues:e,language:i})},AblePlayer.prototype.setupChapters=function(t,e,i){this.hasChapters=!0,this.chapters.push({cues:e,language:i})},AblePlayer.prototype.setupMetadata=function(t,e){"text"===this.metaType?this.metaDiv&&c("#"+this.metaDiv)&&(this.$metaDiv=c("#"+this.metaDiv),this.hasMeta=!0,this.meta=e):"selector"===this.metaType&&(this.hasMeta=!0,this.visibleSelectors=[],this.meta=e)},AblePlayer.prototype.loadTextObject=function(s){var a,t,n,r;return t=(a=new c.Deferred).promise(),n=this,(r=c("<div>",{style:"display:none"})).load(s,function(t,e,i){"error"===e?(n.debug,a.fail()):a.resolve(s,t),r.remove()}),t},AblePlayer.prototype.setupAltCaptions=function(){var t=new c.Deferred,e=t.promise();return 0===this.captions.length?"youtube"===this.player&&this.usingYouTubeCaptions?this.setupYouTubeCaptions().done(function(){t.resolve()}):"vimeo"===this.player&&this.usingVimeoCaptions?this.setupVimeoCaptions().done(function(){t.resolve()}):t.resolve():t.resolve(),e}}(jQuery),function(u){AblePlayer.prototype.initYouTubePlayer=function(){var t,e,i,s;return t=this,i=(e=new u.Deferred).promise(),s=this.youTubeDescId&&this.prefDesc?this.youTubeDescId:this.youTubeId,this.activeYouTubeId=s,AblePlayer.youtubeIframeAPIReady?this.finalizeYoutubeInit().then(function(){e.resolve()}):(AblePlayer.loadingYoutubeIframeAPI||u.getScript("https://www.youtube.com/iframe_api").fail(function(){e.fail()}),u("body").on("youtubeIframeAPIReady",function(){t.finalizeYoutubeInit().then(function(){e.resolve()})})),i},AblePlayer.prototype.finalizeYoutubeInit=function(){var e,t,i,s,a,n;return t=(e=new u.Deferred).promise(),s=(i=this).mediaId+"_youtube",this.$mediaContainer.prepend(u("<div>").attr("id",s)),0,(a=this.getYouTubeDimensions(this.activeYouTubeId,s))?(this.ytWidth=a[0],this.ytHeight=a[1],this.aspectRatio=i.ytWidth/i.ytHeight):(this.ytWidth=null,this.ytHeight=null),n=this.okToPlay?1:0,this.youTubePlayer=new YT.Player(s,{videoId:this.activeYouTubeId,host:this.youTubeNoCookie?"https://www.youtube-nocookie.com":"https://www.youtube.com",width:this.ytWidth,height:this.ytHeight,playerVars:{autoplay:n,enablejsapi:1,disableKb:1,playsinline:this.playsInline,start:this.startTime,controls:0,cc_load_policy:0,hl:this.lang,modestbranding:1,rel:0,html5:1,iv_load_policy:3},events:{onReady:function(){i.swappingSrc&&(i.swappingSrc=!1,i.cueingPlaylistItem=!1,i.playing&&i.playMedia()),i.userClickedPlaylist&&(i.userClickedPlaylist=!1),void 0===i.aspectRatio&&i.resizeYouTubePlayer(i.activeYouTubeId,s),e.resolve()},onError:function(t){e.fail()},onStateChange:function(t){i.getPlayerState().then(function(t){"playing"===t?(i.playing=!0,i.startedPlaying=!0,i.paused=!1):"ended"==t?i.onMediaComplete():(i.playing=!1,i.paused=!0),i.stoppingYouTube&&"paused"===t&&(void 0!==i.$posterImg&&i.$posterImg.show(),i.stoppingYouTube=!1,i.seeking=!1,i.playing=!1,i.paused=!0)})},onPlaybackQualityChange:function(){},onApiChange:function(t){i.initYouTubeCaptionModule()}}}),this.injectPoster(this.$mediaContainer,"youtube"),this.hasPlaylist||this.$media.remove(),t},AblePlayer.prototype.getYouTubeDimensions=function(t){var e,i,s,a;return e=[],void 0!==this.playerMaxWidth?(e[0]=this.playerMaxWidth,void 0!==this.playerMaxHeight&&(e[1]=this.playerMaxHeight),e):void 0!==u("#"+t)&&(s=(i=u("#"+t)).width(),a=i.height(),0<s&&0<a)&&(e[0]=s,e[1]=a,e)},AblePlayer.prototype.resizeYouTubePlayer=function(t,e){var i,s,a;void 0!==this.aspectRatio?this.restoringAfterFullScreen?(this.youTubePlayer&&this.youTubePlayer.setSize(this.ytWidth,this.ytHeight),this.restoringAfterFullScreen=!1):(s=this.$ableWrapper.parent().width(),a=Math.round(s/this.aspectRatio),this.$ableWrapper.css({"max-width":s+"px",width:""}),this.youTubePlayer.setSize(s,a),this.fullscreen?this.youTubePlayer.setSize(s,a):this.youTubePlayer.setSize(this.ytWidth,this.ytHeight)):(i=this.getYouTubeDimensions(e))&&(s=i[0],a=i[1],0<s&&0<a&&(this.aspectRatio=s/a,this.ytWidth=s,this.ytHeight=a,s!==this.$ableWrapper.width()&&(s=this.$ableWrapper.width(),a=Math.round(s/this.aspectRatio),this.youTubePlayer&&this.youTubePlayer.setSize(s,a))))},AblePlayer.prototype.setupYouTubeCaptions=function(){var t=new u.Deferred,e=t.promise();return this.youTubeDescId&&this.prefDesc?this.youTubeDescId:this.youTubeId,"undefined"!=typeof youTubeDataAPIKey?u.doWhen({when:function(){return googleApiReady},interval:100,attempts:1e3}).done(function(){t.resolve()}).fail(function(){}):t.resolve(),e},AblePlayer.prototype.waitForGapi=function(){var t,e,i,s,a,n;return t=this,i=(e=new u.Deferred).promise(),5e3,100,s=0,n=Math.floor(50),a=setInterval(function(){s++,googleApiReady||100<=s?(clearInterval(a),googleApiReady?e.resolve(!0):e.resolve(!1)):t.waitForGapi()},n),i},AblePlayer.prototype.getYouTubeCaptionTracks=function(i){var s,a,n,r,o,l,h,p,c=new u.Deferred,t=c.promise();return s=this,"undefined"!=typeof youTubeDataAPIKey?this.waitForGapi().then(function(t){!0===t?(gapi.client.setApiKey(youTubeDataAPIKey),gapi.client.load("youtube","v3").then(function(){gapi.client.youtube.captions.list({part:"id, snippet",videoId:i}).then(function(t){if(t.result.items.length){for(s.hasCaptions=!0,s.usingYouTubeCaptions=!0,1===s.prefCaptions?s.captionsOn=!0:s.captionsOn=!1,a=0;a<t.result.items.length;a++){r=t.result.items[a].snippet.name,n=t.result.items[a].snippet.language,l=t.result.items[a].snippet.trackKind,h=t.result.items[a].snippet.isDraft;var e=s.getYouTubeTimedTextUrl(i,r,n);"ASR"===l||h||(o=""!==r?r:s.getLanguageName(n),p=n===s.lang,s.tracks.push({kind:"captions",src:e,language:n,label:o,def:p}))}s.setupPopups("captions"),c.resolve()}else s.hasCaptions=!1,s.usingYouTubeCaptions=!1,c.resolve()},function(t){s.hasCaptions=!1,s.usingYouTubeCaptions=!1,c.resolve()})})):this.getYouTubeCaptionTracks2(i).then(function(){c.resolve()})}):this.getYouTubeCaptionTracks2(i).then(function(){c.resolve()}),t},AblePlayer.prototype.getYouTubeCaptionTracks2=function(i){var s,a,n,r,o,l=new u.Deferred,t=l.promise();return s=this,u.ajax({type:"get",url:"https://www.youtube.com/api/timedtext?type=list&v="+i,dataType:"xml",success:function(t){var e=u(t).find("track");0<e.length?(s.hasCaptions=!0,s.usingYouTubeCaptions=!0,1===s.prefCaptions?s.captionsOn=!0:s.captionsOn=!1,e.each(function(){u(this).attr("id"),a=u(this).attr("lang_code"),""===(r=""!==u(this).attr("name")?n=u(this).attr("name"):(n="",u(this).attr("lang_translated")))&&(r=s.getLanguageName(a)),o=a===s.lang;var t=s.getYouTubeTimedTextUrl(i,n,a);s.tracks.push({kind:"captions",src:t,language:a,label:r,def:o})}),s.setupPopups("captions")):(s.hasCaptions=!1,s.usingYouTubeCaptions=!1),l.resolve()},error:function(t,e){l.resolve()}}),t},AblePlayer.prototype.getYouTubeTimedTextUrl=function(t,e,i){var s="https://www.youtube.com/api/timedtext?fmt=vtt";return s+="&v="+t,s+="&lang="+i,""!==e&&(s+="&name="+e),s},AblePlayer.prototype.getYouTubeCaptionCues=function(t){var e,i=(e=new u.Deferred).promise();return this.tracks=[],this.tracks.push({kind:"captions",src:"some_file.vtt",language:"en",label:"Fake English captions"}),e.resolve(),i},AblePlayer.prototype.initYouTubeCaptionModule=function(){var t;if((t=this.youTubePlayer.getOptions()).length){for(var e=0;e<t.length;e++){if("cc"==t[e]){this.ytCaptionModule="cc",this.hasCaptions||(this.hasCaptions=!0,this.usingYouTubeCaptions=!0);break}if("captions"==t[e]){this.ytCaptionModule="captions",this.hasCaptions||(this.hasCaptions=!0,this.usingYouTubeCaptions=!0);break}}void 0!==this.ytCaptionModule&&(this.usingYouTubeCaptions?(this.youTubePlayer.setOption(this.ytCaptionModule,"track",{languageCode:this.captionLang}),this.youTubePlayer.setOption(this.ytCaptionModule,"fontSize",this.translatePrefs("size",this.prefCaptionsSize,"youtube"))):this.youTubePlayer.unloadModule(this.ytCaptionModule))}else this.hasCaptions=!1,this.usingYouTubeCaptions=!1;this.refreshControls("captions")},AblePlayer.prototype.getYouTubePosterUrl=function(t,e){var i="https://img.youtube.com/vi/"+t;return"120"==e?i+"/default.jpg":"320"==e?i+"/hqdefault.jpg":"480"==e?i+"/hqdefault.jpg":"640"==e&&i+"/sddefault.jpg"}}(jQuery),function(u){window.AccessibleSlider=function(t,e,i,s,a,n,r,o,l,h,p){var c;(c=this).position=0,this.tracking=!1,this.trackDevice=null,this.keyTrackPosition=0,this.lastTrackPosition=0,this.nextStep=1,this.inertiaCount=0,this.bodyDiv=u(e),h&&(this.loadedDiv=u("<div></div>"),this.playedDiv=u("<div></div>")),this.seekHead=u("<div>",{orientation:i,class:"able-"+l+"-head"}),"visible"===p?this.seekHead.attr("tabindex","0"):this.seekHead.attr("tabindex","-1"),this.seekHead.attr({role:"slider","aria-label":o,"aria-valuemin":a,"aria-valuemax":n}),this.timeTooltip=u("<div>"),this.bodyDiv.append(this.timeTooltip),this.timeTooltip.attr("role","tooltip"),this.timeTooltip.addClass("able-tooltip"),this.timeTooltip.hide(),this.bodyDiv.append(this.loadedDiv),this.bodyDiv.append(this.playedDiv),this.bodyDiv.append(this.seekHead),this.bodyDiv.wrap("<div></div>"),this.wrapperDiv=this.bodyDiv.parent(),"horizontal"===i?(this.wrapperDiv.width(s),this.loadedDiv.width(0)):(this.wrapperDiv.height(s),this.loadedDiv.height(0)),this.wrapperDiv.addClass("able-"+l+"-wrapper"),h&&(this.loadedDiv.addClass("able-"+l+"-loaded"),this.playedDiv.width(0),this.playedDiv.addClass("able-"+l+"-played"),this.setDuration(n)),this.seekHead.hover(function(t){c.overHead=!0,c.refreshTooltip()},function(t){c.overHead=!1,!c.overBody&&c.tracking&&"mouse"===c.trackDevice&&c.stopTracking(c.pageXToPosition(t.pageX)),c.refreshTooltip()}),this.seekHead.mousemove(function(t){c.tracking&&"mouse"===c.trackDevice&&c.trackHeadAtPageX(t.pageX)}),this.seekHead.focus(function(t){c.overHead=!0,c.refreshTooltip()}),this.seekHead.blur(function(t){c.overHead=!1,c.refreshTooltip()}),this.bodyDiv.hover(function(){c.overBody=!0,c.refreshTooltip()},function(t){c.overBody=!1,c.overBodyMousePos=null,c.refreshTooltip(),!c.overHead&&c.tracking&&"mouse"===c.trackDevice&&c.stopTracking(c.pageXToPosition(t.pageX))}),this.bodyDiv.mousemove(function(t){c.overBodyMousePos={x:t.pageX,y:t.pageY},c.tracking&&"mouse"===c.trackDevice&&c.trackHeadAtPageX(t.pageX),c.refreshTooltip()}),this.bodyDiv.mousedown(function(t){c.startTracking("mouse",c.pageXToPosition(t.pageX)),c.trackHeadAtPageX(t.pageX),c.seekHead.is(":focus")||c.seekHead.focus(),t.preventDefault()}),this.seekHead.mousedown(function(t){c.startTracking("mouse",c.pageXToPosition(c.seekHead.offset()+c.seekHead.width()/2)),c.bodyDiv.is(":focus")||c.bodyDiv.focus(),t.preventDefault()}),this.bodyDiv.mouseup(function(t){c.tracking&&"mouse"===c.trackDevice&&c.stopTracking(c.pageXToPosition(t.pageX))}),this.seekHead.mouseup(function(t){c.tracking&&"mouse"===c.trackDevice&&c.stopTracking(c.pageXToPosition(t.pageX))}),this.bodyDiv.keydown(function(t){if(36===t.which)c.trackImmediatelyTo(0);else if(35===t.which)c.trackImmediatelyTo(c.duration);else if(37===t.which||40===t.which)c.arrowKeyDown(-1);else if(39===t.which||38===t.which)c.arrowKeyDown(1);else if(33===t.which&&0<r)c.arrowKeyDown(r);else{if(!(34===t.which&&0<r))return;c.arrowKeyDown(-r)}t.preventDefault()}),this.bodyDiv.keyup(function(t){33<=t.which&&t.which<=40&&(c.tracking&&"keyboard"===c.trackDevice&&c.stopTracking(c.keyTrackPosition),t.preventDefault())})},AccessibleSlider.prototype.arrowKeyDown=function(t){this.tracking&&"keyboard"===this.trackDevice?(this.keyTrackPosition=this.boundPos(this.keyTrackPosition+this.nextStep*t),this.inertiaCount+=1,20===this.inertiaCount&&(this.inertiaCount=0,this.nextStep*=2)):(this.nextStep=1,this.inertiaCount=0,this.keyTrackPosition=this.boundPos(this.position+this.nextStep*t),this.startTracking("keyboard",this.keyTrackPosition)),this.trackHeadAtPosition(this.keyTrackPosition)},AccessibleSlider.prototype.pageXToPosition=function(t){var e=t-this.bodyDiv.offset().left,i=this.duration*(e/this.bodyDiv.width());return this.boundPos(i)},AccessibleSlider.prototype.boundPos=function(t){return Math.max(0,Math.min(t,this.duration))},AccessibleSlider.prototype.setDuration=function(t){t!==this.duration&&(this.duration=t,this.resetHeadLocation(),this.seekHead.attr("aria-valuemax",t))},AccessibleSlider.prototype.setWidth=function(t){this.wrapperDiv.width(t),this.resizeDivs(),this.resetHeadLocation()},AccessibleSlider.prototype.getWidth=function(){return this.wrapperDiv.width()},AccessibleSlider.prototype.resizeDivs=function(){this.playedDiv.width(this.bodyDiv.width()*(this.position/this.duration)),this.loadedDiv.width(this.bodyDiv.width()*this.buffered)},AccessibleSlider.prototype.resetHeadLocation=function(){var t=this.position/this.duration,e=this.bodyDiv.width()*t;this.seekHead.css("left",e-this.seekHead.width()/2),this.tracking&&this.stopTracking(this.position)},AccessibleSlider.prototype.setPosition=function(t,e){this.position=t,this.resetHeadLocation(),this.refreshTooltip(),this.resizeDivs(),this.updateAriaValues(t,e)},AccessibleSlider.prototype.setBuffered=function(t){this.buffered=t,this.redrawDivs},AccessibleSlider.prototype.startTracking=function(t,e){this.tracking||(this.trackDevice=t,this.tracking=!0,this.bodyDiv.trigger("startTracking",[e]))},AccessibleSlider.prototype.stopTracking=function(t){this.trackDevice=null,this.tracking=!1,this.bodyDiv.trigger("stopTracking",[t]),this.setPosition(t,!0)},AccessibleSlider.prototype.trackHeadAtPageX=function(t){var e=this.pageXToPosition(t),i=t-this.bodyDiv.offset().left-this.seekHead.width()/2;i=Math.max(0,Math.min(i,this.bodyDiv.width()-this.seekHead.width())),this.lastTrackPosition=e,this.seekHead.css("left",i),this.reportTrackAtPosition(e)},AccessibleSlider.prototype.trackHeadAtPosition=function(t){var e=t/this.duration,i=this.bodyDiv.width()*e;this.lastTrackPosition=t,this.seekHead.css("left",i-this.seekHead.width()/2),this.reportTrackAtPosition(t)},AccessibleSlider.prototype.reportTrackAtPosition=function(t){this.bodyDiv.trigger("tracking",[t]),this.updateAriaValues(t,!0)},AccessibleSlider.prototype.updateAriaValues=function(t,e){var i,s=Math.floor(t/3600),a=Math.floor(t%3600/60),n=Math.floor(t%60),r=1===a?"minute":"minutes",o=1===n?"second":"seconds";i=0<s?s+" "+(1===s?"hour":"hours")+", "+a+" "+r+", "+n+" "+o:0<a?a+" "+r+", "+n+" "+o:n+" "+o,this.liveAriaRegion||(this.liveAriaRegion=u("<span>",{class:"able-offscreen","aria-live":"polite"}),this.wrapperDiv.append(this.liveAriaRegion)),e&&this.liveAriaRegion.text()!==i&&this.liveAriaRegion.text(i),this.seekHead.attr("aria-valuetext",i),this.seekHead.attr("aria-valuenow",Math.floor(t).toString())},AccessibleSlider.prototype.trackImmediatelyTo=function(t){this.startTracking("keyboard",t),this.trackHeadAtPosition(t),this.keyTrackPosition=t},AccessibleSlider.prototype.refreshTooltip=function(){this.overHead?(this.timeTooltip.show(),this.tracking?this.timeTooltip.text(this.positionToStr(this.lastTrackPosition)):this.timeTooltip.text(this.positionToStr(this.position)),this.setTooltipPosition(this.seekHead.position().left+this.seekHead.width()/2)):this.overBody&&this.overBodyMousePos?(this.timeTooltip.show(),this.timeTooltip.text(this.positionToStr(this.pageXToPosition(this.overBodyMousePos.x))),this.setTooltipPosition(this.overBodyMousePos.x-this.bodyDiv.offset().left)):this.timeTooltip.hide()},AccessibleSlider.prototype.setTooltipPosition=function(t){this.timeTooltip.css({left:t-this.timeTooltip.width()/2-10,bottom:this.seekHead.height()+10})},AccessibleSlider.prototype.positionToStr=function(t){var e=Math.floor(t/3600),i=Math.floor(t/60)%60,s=Math.floor(t%60);return s<10&&(s="0"+s),0<e?(i<10&&(i="0"+i),e+":"+i+":"+s):i+":"+s}}(jQuery),function(r){AblePlayer.prototype.addVolumeSlider=function(t){var e,i,s,a,n;i=(e=this).mediaId+"-volume-slider",s=this.mediaId+"-volume-help",this.volumeTrackHeight=50,this.volumeHeadHeight=7,this.volumeTickHeight=this.volumeTrackHeight/10,this.$volumeSlider=r("<div>",{id:i,class:"able-volume-slider","aria-hidden":"true"}).hide(),this.$volumeSliderTooltip=r("<div>",{class:"able-tooltip",role:"tooltip"}).hide(),this.$volumeSliderTrack=r("<div>",{class:"able-volume-track"}),this.$volumeSliderTrackOn=r("<div>",{class:"able-volume-track able-volume-track-on"}),this.$volumeSliderHead=r("<div>",{class:"able-volume-head",role:"slider","aria-orientation":"vertical","aria-label":this.tt.volumeUpDown,"aria-valuemin":0,"aria-valuemax":10,"aria-valuenow":this.volume,tabindex:-1}),this.$volumeSliderTrack.append(this.$volumeSliderTrackOn,this.$volumeSliderHead),this.$volumeAlert=r("<div>",{class:"able-offscreen","aria-live":"assertive","aria-atomic":"true"}),n=parseInt(e.volume)/10*100,this.$volumeHelp=r("<div>",{id:s,class:"able-volume-help"}).text(n+"%, "+this.tt.volumeHelp),this.$volumeButton.attr({"aria-describedby":s}),this.$volumeSlider.append(this.$volumeSliderTooltip,this.$volumeSliderTrack,this.$volumeAlert,this.$volumeHelp),t.append(this.$volumeSlider),this.refreshVolumeSlider(this.volume),this.$volumeSliderHead.on("mousedown",function(t){t.preventDefault(),e.draggingVolume=!0,e.volumeHeadPositionTop=r(this).offset().top}),this.$mediaContainer.on("mouseover",function(t){"youtube"==e.player&&(e.draggingVolume=!1)}),r(document).on("mouseup",function(t){e.draggingVolume=!1}),r(document).on("mousemove",function(t){e.draggingVolume&&(t.pageX,a=t.pageY,e.moveVolumeHead(a))}),this.$volumeSliderHead.on("keydown",function(t){if(37===t.which||40===t.which)e.handleVolume("down");else if(39===t.which||38===t.which)e.handleVolume("up");else{if(27!==t.which&&13!==t.which)return;e.$volumeSlider.is(":visible")?e.hideVolumePopup():e.showVolumePopup()}t.preventDefault()})},AblePlayer.prototype.refreshVolumeSlider=function(t){var e,i,s,a,n;i=(e=t/10*100)+"%",s=t*this.volumeTickHeight,n=(a=this.volumeTrackHeight-s)-this.volumeHeadHeight,this.$volumeSliderTrackOn.css({height:s+"px",top:a+"px"}),this.$volumeSliderHead.attr({"aria-valuenow":t,"aria-valuetext":i}),this.$volumeSliderHead.css({top:n+"px"}),this.$volumeAlert.text(e+"%")},AblePlayer.prototype.refreshVolumeButton=function(t){var e,i,s,a,n;e=this.getVolumeName(t),i=t/10*100,s=this.tt.volume+" "+i+"%","font"===this.iconType?(a="icon-volume-"+e,this.$volumeButton.find("span").first().removeClass().addClass(a),this.$volumeButton.find("span.able-clipped").text(s)):(n=this.imgPath+"volume-"+e+".png",this.$volumeButton.find("img").attr("src",n))},AblePlayer.prototype.moveVolumeHead=function(t){var e,i,s,a=this.volumeHeadPositionTop-t;if(Math.abs(a)>this.volumeTickHeight){if("up"==(e=0<a?"up":"down")&&10==this.volume)return;if("down"==e&&0==this.volume)return;i=Math.round(Math.abs(a)/this.volumeTickHeight),"up"==e?10<(s=this.volume+i)&&(s=10):(s=this.volume-i)<0&&(s=0),this.setVolume(s),this.refreshVolumeSlider(s),this.refreshVolumeButton(s),this.volumeHeadPositionTop=t}},AblePlayer.prototype.handleVolume=function(t){var e;void 0!==t?(49<=t&&t<=57?e=t-48:(e=this.getVolume(),"up"===t&&e<10?e+=1:"down"===t&&0<e&&(e-=1)),this.isMuted()&&0<e?this.setMute(!1):0===e?this.setMute(!0):(this.setVolume(e),this.refreshVolumeSlider(e),this.refreshVolumeButton(e))):this.$volumeSlider.is(":visible")?this.hideVolumePopup():this.showVolumePopup()},AblePlayer.prototype.handleMute=function(){this.isMuted()?this.setMute(!1):this.setMute(!0)},AblePlayer.prototype.showVolumePopup=function(){this.closePopups(),this.$tooltipDiv.hide(),this.$volumeSlider.show().attr("aria-hidden","false"),this.$volumeButton.attr("aria-expanded","true"),this.$volumeSliderHead.attr("tabindex","0").focus()},AblePlayer.prototype.hideVolumePopup=function(){this.$volumeSlider.hide().attr("aria-hidden","true"),this.$volumeSliderHead.attr("tabindex","-1"),this.$volumeButton.attr("aria-expanded","false").focus()},AblePlayer.prototype.isMuted=function(){return"html5"===this.player?this.media.muted:"jw"===this.player&&this.jwPlayer?this.jwPlayer.getMute():"youtube"===this.player?this.youTubePlayer.isMuted():void 0},AblePlayer.prototype.setMute=function(t){t?(this.lastVolume=this.volume,this.volume=0):void 0!==this.lastVolume&&(this.volume=this.lastVolume),"html5"===this.player?this.media.muted=t:"jw"===this.player&&this.jwPlayer?this.jwPlayer.setMute(t):"youtube"===this.player&&(t?this.youTubePlayer.mute():this.youTubePlayer.unMute()),this.refreshVolumeSlider(this.volume),this.refreshVolumeButton(this.volume)},AblePlayer.prototype.setVolume=function(t){"html5"===this.player?(this.media.volume=t/10,this.hasSignLanguage&&this.signVideo&&(this.signVideo.volume=0)):"youtube"===this.player?(this.youTubePlayer.setVolume(10*t),this.volume=t):"vimeo"===this.player?this.vimeoPlayer.setVolume(t/10).then(function(){}):"jw"===this.player&&this.jwPlayer&&this.jwPlayer.setVolume(10*t),this.lastVolume=t},AblePlayer.prototype.getVolume=function(t){return"html5"===this.player?10*this.media.volume:"youtube"===this.player?this.youTubePlayer.getVolume()/10:"vimeo"===this.player?this.volume:"jw"===this.player&&this.jwPlayer?this.jwPlayer.getVolume()/10:void 0},AblePlayer.prototype.getVolumeName=function(t){return 0==t?"mute":10==t?"loud":t<5?"soft":"medium"}}(jQuery),function(d){var g="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";window.AccessibleDialog=function(t,e,i,s,a,n,r,o,l){this.title=s,this.closeButtonLabel=n,this.focusedElementBeforeModal=e,this.escapeHook=l,this.baseId=d(t).attr("id")||Math.floor(1e9*Math.random()).toString();var h=this,p=t;if((this.modal=p).css({width:r||"50%",top:o?"0":"5%"}),p.addClass("able-modal-dialog"),!o){var c=d("<button>",{class:"modalCloseButton",title:h.closeButtonLabel,"aria-label":h.closeButtonLabel}).text("X");c.keydown(function(t){32===t.which&&h.hide()}).click(function(){h.hide()});var u=d("<h1></h1>");u.attr("id","modalTitle-"+this.baseId),u.css("text-align","center"),u.text(s),a.attr("id","modalDesc-"+this.baseId),p.attr({"aria-labelledby":"modalTitle-"+this.baseId,"aria-describedby":"modalDesc-"+this.baseId}),p.prepend(u),p.prepend(c)}p.attr({"aria-hidden":"true",role:i}),p.keydown(function(t){if(27===t.which)h.escapeHook?h.escapeHook(t,this):(h.hide(),t.preventDefault());else if(9===t.which){var e=p.find("*").filter(g).filter(":visible");if(0===e.length)return;var i=d(":focus"),s=e.index(i);t.shiftKey?0===s&&(e.get(e.length-1).focus(),t.preventDefault()):s===e.length-1&&(e.get(0).focus(),t.preventDefault())}t.stopPropagation()}),d("body > *").not(".able-modal-overlay").not(".able-modal-dialog").attr("aria-hidden","false")},AccessibleDialog.prototype.show=function(){if(!this.overlay){var t=d("<div></div>").attr({class:"able-modal-overlay",tabindex:"-1"});this.overlay=t,d("body").append(t),t.on("mousedown.accessibleModal",function(t){t.preventDefault()})}d("body > *").not(".able-modal-overlay").not(".able-modal-dialog").attr("aria-hidden","true"),this.overlay.css("display","block"),this.modal.css("display","block"),this.modal.attr({"aria-hidden":"false",tabindex:"-1"}),0===this.modal.find("*").filter(g).filter(":visible").length&&this.focusedElementBeforeModal.blur();var e=this;setTimeout(function(){e.modal.focus()},300)},AccessibleDialog.prototype.hide=function(){this.overlay&&this.overlay.css("display","none"),this.modal.css("display","none"),this.modal.attr("aria-hidden","true"),d("body > *").not(".able-modal-overlay").not(".able-modal-dialog").attr("aria-hidden","false"),this.focusedElementBeforeModal.focus()}}(jQuery),function(n){AblePlayer.prototype.getNextHeadingLevel=function(t){var e,i,s,a;return t.parents().each(function(){if(e=n(this).children(":header"),i=e.length)return s=e.eq(i-1).prop("tagName"),!1}),void 0===s?a=1:(a=parseInt(s[1]),6<(a+=1)&&(a=6)),a},AblePlayer.prototype.countProperties=function(t){var e,i;for(i in e=0,t)t.hasOwnProperty(i)&&++e;return e},AblePlayer.prototype.formatSecondsAsColonTime=function(t,e){var i,s,a,n,r,o,l;if(e)if(2===(n=t.toString().split(".")).length){if((r=n[1]).length<3)for(o=3-r.length,l=1;l<=o;l++)r+="0"}else r="000";return i=Math.floor(t/3600),s=Math.floor(t/60)%60,(a=Math.floor(t%60))<10&&(a="0"+a),0<i?(s<10&&(s="0"+s),e?i+":"+s+":"+a+"."+r:i+":"+s+":"+a):e?(i<1?i="00":i<10&&(i="0"+i),s<1?s="00":s<10&&(s="0"+s),i+":"+s+":"+a+"."+r):s+":"+a},AblePlayer.prototype.getSecondsFromColonTime=function(t){var e;return 3===(e=t.split(":")).length?3600*parseInt(e[0])+60*parseInt(e[1])+parseFloat(e[2]):2===e.length?60*parseInt(e[0])+parseFloat(e[1]):1===e.length?parseFloat(e[0]):void 0},AblePlayer.prototype.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},AblePlayer.prototype.roundDown=function(t,e){return Number(Math.floor(t+"e"+e)+"e-"+e)},AblePlayer.prototype.hasAttr=function(t,e){var i=t.attr(e);return void 0!==i&&!1!==i},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}(jQuery),jQuery,AblePlayer.prototype.initDescription=function(){if(this.refreshingDesc||(this.descFile=this.$sources.first().attr("data-desc-src"),void 0!==this.descFile?this.hasOpenDesc=!0:this.youTubeDescId||this.vimeoDescId?this.hasOpenDesc=!0:this.hasOpenDesc=!1),this.prefDesc?this.hasOpenDesc&&this.hasClosedDesc?(this.useDescFormat=this.prefDescFormat,this.descOn=!0):this.hasOpenDesc?(this.useDescFormat="video",this.descOn=!0):this.hasClosedDesc&&(this.useDescFormat="text",this.descOn=!0):this.refreshingDesc?(this.prevDescFormat=this.useDescFormat,this.useDescFormat=!1,this.descOn=!1):this.useDescFormat=!1,"text"===this.useDescFormat&&window.speechSynthesis){this.synth=window.speechSynthesis,this.descVoices=this.synth.getVoices();for(var t=this.descVoiceIndex=0;t<this.descVoices.length;t++)if(2===this.captionLang.length){if(this.descVoices[t].lang.substr(0,2).toLowerCase()===this.captionLang.toLowerCase()){this.descVoiceIndex=t;break}}else if(this.descVoices[t].lang.toLowerCase()===this.captionLang.toLowerCase()){this.descVoiceIndex=t;break}}this.descOn?"video"===this.useDescFormat?(this.usingAudioDescription()||this.swapDescription(),this.$descDiv.hide(),this.$descDiv.removeClass("able-clipped")):"text"===this.useDescFormat&&(this.$descDiv.show(),this.prefVisibleDesc?this.$descDiv.removeClass("able-clipped"):this.$descDiv.addClass("able-clipped"),this.swappingSrc||this.showDescription(this.elapsed)):"video"===this.prevDescFormat?this.usingAudioDescription()&&this.swapDescription():"text"===this.prevDescFormat&&(this.$descDiv.hide(),this.$descDiv.removeClass("able-clipped")),this.refreshingDesc=!1},AblePlayer.prototype.usingAudioDescription=function(){return"youtube"===this.player?this.activeYouTubeId===this.youTubeDescId:"vimeo"===this.player?this.activeVimeoId===this.vimeoDescId:this.$sources.first().attr("data-desc-src")===this.$sources.first().attr("src")},AblePlayer.prototype.swapDescription=function(){var t,e,i,s;if((t=this).swapTime=this.elapsed,this.descOn?this.showAlert(this.tt.alertDescribedVersion):this.showAlert(this.tt.alertNonDescribedVersion),"html5"===this.player){if(this.usingAudioDescription()){for(e=0;e<this.$sources.length;e++)i=this.$sources[e].getAttribute("data-orig-src"),this.$sources[e].getAttribute("type"),i&&this.$sources[e].setAttribute("src",i);this.swappingSrc=!0}else{for(e=0;e<this.$sources.length;e++)i=this.$sources[e].getAttribute("src"),s=this.$sources[e].getAttribute("data-desc-src"),this.$sources[e].getAttribute("type"),s&&(this.$sources[e].setAttribute("src",s),this.$sources[e].setAttribute("data-orig-src",i));this.swappingSrc=!0}"html5"===this.player&&this.media.load()}else"youtube"===this.player?(this.usingAudioDescription()?(this.activeYouTubeId=this.youTubeId,this.showAlert(this.tt.alertNonDescribedVersion)):(this.activeYouTubeId=this.youTubeDescId,this.showAlert(this.tt.alertDescribedVersion)),void 0!==this.youTubePlayer&&this.setupAltCaptions().then(function(){t.playing?t.youTubePlayer.loadVideoById(t.activeYouTubeId,t.swapTime):t.youTubePlayer.cueVideoById(t.activeYouTubeId,t.swapTime)})):"vimeo"===this.player&&(this.usingAudioDescription()?(this.activeVimeoId=this.vimeoId,this.showAlert(this.tt.alertNonDescribedVersion)):(this.activeVimeoId=this.vimeoDescId,this.showAlert(this.tt.alertDescribedVersion)),this.vimeoPlayer.loadVideo(this.activeVimeoId).then(function(){t.playing?t.vimeoPlayer.setCurrentTime(t.swapTime):t.vimeoPlayer.pause()}))},AblePlayer.prototype.showDescription=function(t){if(!this.swappingSrc){var e,i,s,a,n,r,o=function(t){var e=[];if("string"===t.type)e.push(t.value);else for(var i=0;i<t.children.length;i++)e.push(o(t.children[i]));return e.join("")};for(i=(e=this).selectedDescriptions?this.selectedDescriptions.cues:1<=this.descriptions.length?this.descriptions[0].cues:[],s=0;s<i.length;s++)if(i[s].start<=t&&i[s].end>t){a=s;break}void 0!==a?this.currentDescription!==a&&(this.$status.removeAttr("aria-live"),n=o(i[a].components),void 0!==this.synth&&void 0!==this.descVoiceIndex?((r=new SpeechSynthesisUtterance).voice=this.descVoices[this.descVoiceIndex],r.voiceURI="native",r.volume=1,r.rate=1.5,r.pitch=1,r.text=n,r.lang=this.captionLang,r.onend=function(t){e.pausedForDescription&&e.playMedia()},this.synth.speak(r),this.prefVisibleDesc&&this.$descDiv.html(n).removeAttr("aria-live aria-atomic")):this.$descDiv.html(n),this.prefDescPause&&(this.pauseMedia(),this.pausedForDescription=!0),this.currentDescription=a):(this.$descDiv.html(""),this.currentDescription=-1,this.$status.attr("aria-live","polite"))}},jQuery,AblePlayer.prototype.getUserAgent=function(){this.userAgent={},this.userAgent.browser={},/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)?(this.userAgent.browser.name="Firefox",this.userAgent.browser.version=RegExp.$1):/MSIE (\d+\.\d+);/.test(navigator.userAgent)?(this.userAgent.browser.name="Internet Explorer",this.userAgent.browser.version=RegExp.$1):/Trident.*rv[ :]*(\d+\.\d+)/.test(navigator.userAgent)?(this.userAgent.browser.name="Internet Explorer",this.userAgent.browser.version=RegExp.$1):/Edge[\/\s](\d+\.\d+)/.test(navigator.userAgent)?(this.userAgent.browser.name="Edge",this.userAgent.browser.version=RegExp.$1):/OPR\/(\d+\.\d+)/i.test(navigator.userAgent)?(this.userAgent.browser.name="Opera",this.userAgent.browser.version=RegExp.$1):/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)?(this.userAgent.browser.name="Chrome",/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent)&&(this.userAgent.browser.version=RegExp.$1)):/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)?(this.userAgent.browser.name="Safari",/Version[\/\s](\d+\.\d+)/.test(navigator.userAgent)&&(this.userAgent.browser.version=RegExp.$1)):(this.userAgent.browser.name="Unknown",this.userAgent.browser.version="Unknown"),-1!=window.navigator.userAgent.indexOf("Windows NT 6.2")?this.userAgent.os="Windows 8":-1!=window.navigator.userAgent.indexOf("Windows NT 6.1")?this.userAgent.os="Windows 7":-1!=window.navigator.userAgent.indexOf("Windows NT 6.0")?this.userAgent.os="Windows Vista":-1!=window.navigator.userAgent.indexOf("Windows NT 5.1")?this.userAgent.os="Windows XP":-1!=window.navigator.userAgent.indexOf("Windows NT 5.0")?this.userAgent.os="Windows 2000":-1!=window.navigator.userAgent.indexOf("Mac")?this.userAgent.os="Mac/iOS":-1!=window.navigator.userAgent.indexOf("X11")?this.userAgent.os="UNIX":-1!=window.navigator.userAgent.indexOf("Linux")&&(this.userAgent.os="Linux"),this.debug},AblePlayer.prototype.isUserAgent=function(t){var e=navigator.userAgent.toLowerCase();return this.debug,-1!==e.indexOf(t.toLowerCase())},AblePlayer.prototype.isIOS=function(t){var e;return e=navigator.userAgent.toLowerCase(),!!/ipad|iphone|ipod/.exec(e)&&(void 0===t||-1!==e.indexOf("os "+t))},AblePlayer.prototype.browserSupportsVolume=function(){var t,e;return t=navigator.userAgent.toLowerCase(),!(e=/ipad|iphone|ipod|android|blackberry|windows ce|windows phone|webos|playbook/.exec(t))||!("android"!==e[0]||!/firefox/.test(t))},AblePlayer.prototype.nativeFullscreenSupported=function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled},function(v){AblePlayer.prototype.seekTo=function(t){var e;(this.seekFromTime=this.media.currentTime,this.seekToTime=t,this.seeking=!0,this.liveUpdatePending=!0,"html5"===this.player)?(this.startTime=t,0<(e=this.media.seekable).length&&this.startTime>=e.start(0)&&this.startTime<=e.end(0)&&(this.media.currentTime=this.startTime,this.hasSignLanguage&&this.signVideo&&(this.signVideo.currentTime=this.startTime))):"youtube"===this.player?(this.youTubePlayer.seekTo(t,!0),0<t&&void 0!==this.$posterImg&&this.$posterImg.hide()):"vimeo"===this.player&&this.vimeoPlayer.setCurrentTime(t).then(function(){});this.refreshControls("timeline")},AblePlayer.prototype.getMediaTimes=function(t,e){var i,s,a,n;return n={},s=(i=new v.Deferred).promise(),a=this,void 0!==t&&void 0!==e?(n.duration=t,n.elapsed=e,i.resolve(n)):this.getDuration().then(function(t){n.duration=a.roundDown(t,6),a.getElapsed().then(function(t){n.elapsed=a.roundDown(t,6),i.resolve(n)})}),s},AblePlayer.prototype.getDuration=function(){var e,t,i;(t=(e=new v.Deferred).promise(),"vimeo"===this.player)?this.vimeoPlayer?this.vimeoPlayer.getDuration().then(function(t){void 0===t||isNaN(t)||-1===t?e.resolve(0):e.resolve(t)}):e.resolve(0):("html5"===this.player?i=this.media.duration:"youtube"===this.player&&(i=this.youTubePlayer?this.youTubePlayer.getDuration():0),void 0===i||isNaN(i)||-1===i?e.resolve(0):e.resolve(i));return t},AblePlayer.prototype.getElapsed=function(){var e,t,i;(t=(e=new v.Deferred).promise(),"vimeo"===this.player)?this.vimeoPlayer?this.vimeoPlayer.getCurrentTime().then(function(t){void 0===t||isNaN(t)||-1===t?e.resolve(0):e.resolve(t)}):e.resolve(0):("html5"===this.player?i=this.media.currentTime:"youtube"===this.player&&(i=this.youTubePlayer?this.youTubePlayer.getCurrentTime():0),void 0===i||isNaN(i)||-1===i?e.resolve(0):e.resolve(i));return t},AblePlayer.prototype.getPlayerState=function(){var e,t,i;if(t=(e=new v.Deferred).promise(),"html5"===(i=this).player)this.media.ended?e.resolve("ended"):this.media.paused?e.resolve("paused"):4!==this.media.readyState?e.resolve("buffering"):e.resolve("playing");else if("youtube"===this.player&&this.youTubePlayer){var s=this.youTubePlayer.getPlayerState();-1===s||5===s?e.resolve("stopped"):0===s?e.resolve("ended"):1===s?e.resolve("playing"):2===s?e.resolve("paused"):3===s&&e.resolve("buffering")}else"vimeo"===this.player&&this.vimeoPlayer&&this.vimeoPlayer.getPaused().then(function(t){t?e.resolve("paused"):i.vimeoPlayer.getEnded().then(function(t){t?e.resolve("ended"):e.resolve("playing")})});return t},AblePlayer.prototype.isPlaybackRateSupported=function(){return"html5"===this.player?!!this.media.playbackRate:"youtube"===this.player?1<this.youTubePlayer.getAvailablePlaybackRates().length:"vimeo"===this.player?this.vimeoSupportsPlaybackRateChange:void 0},AblePlayer.prototype.setPlaybackRate=function(t){t=Math.max(.5,t),"html5"===this.player?this.media.playbackRate=t:"youtube"===this.player?this.youTubePlayer.setPlaybackRate(t):"vimeo"===this.player&&this.vimeoPlayer.setPlaybackRate(t),this.hasSignLanguage&&this.signVideo&&(this.signVideo.playbackRate=t),this.$speed.text(this.tt.speed+": "+t.toFixed(2).toString()+"x")},AblePlayer.prototype.getPlaybackRate=function(){return"html5"===this.player?this.media.playbackRate:"youtube"===this.player?this.youTubePlayer.getPlaybackRate():void 0},AblePlayer.prototype.isPaused=function(){if("vimeo"===this.player)return!this.playing;this.getPlayerState().then(function(t){return"paused"===t||"stopped"===t||"ended"===t})},AblePlayer.prototype.pauseMedia=function(){"html5"===this.player?(this.media.pause(!0),this.hasSignLanguage&&this.signVideo&&this.signVideo.pause(!0)):"youtube"===this.player?this.youTubePlayer.pauseVideo():"vimeo"===this.player&&this.vimeoPlayer.pause()},AblePlayer.prototype.playMedia=function(){"html5"===this.player?(this.media.play(!0),this.hasSignLanguage&&this.signVideo&&this.signVideo.play(!0)):"youtube"===this.player?(this.youTubePlayer.playVideo(),void 0!==this.$posterImg&&this.$posterImg.hide(),this.stoppingYouTube=!1):"vimeo"===this.player&&this.vimeoPlayer.play(),this.startedPlaying=!0,this.hideControls&&(this.hidingControls=!0,this.invokeHideControlsTimeout())},AblePlayer.prototype.fadeControls=function(t){"out"==t?(this.$mediaContainer.height(),this.$playerDiv.height(),this.$playerDiv.fadeTo(2e3,0,function(){})):"in"==t&&this.$playerDiv.fadeTo(100,1)},AblePlayer.prototype.invokeHideControlsTimeout=function(){var t=this;this.hideControlsTimeout=window.setTimeout(function(){void 0!==t.playing&&!0===t.playing&&t.hideControls&&(t.fadeControls("out"),t.controlsHidden=!0)},5e3),this.hideControlsTimeoutStatus="active"},AblePlayer.prototype.refreshControls=function(e,t,i){var s,a,n,r,o,l,h,p,c,u,d,g,f,m;e="init",(s=this).swappingSrc||void 0!==this.duration&&(this.useChapterTimes&&(this.chapterDuration=this.getChapterDuration(),this.chapterElapsed=this.getChapterElapsed()),!1===this.useFixedSeekInterval&&!1===this.seekIntervalCalculated&&0<this.duration&&this.setSeekInterval(),this.seekBar&&(this.useChapterTimes?(a=this.selectedChapters.cues.length-1,this.selectedChapters.cues[a]==this.currentChapter&&this.currentChapter.end!==this.duration?this.seekBar.setDuration(this.duration-this.currentChapter.start):this.seekBar.setDuration(this.chapterDuration)):void 0===this.duration||isNaN(this.duration)||-1===this.duration||this.seekBar.setDuration(this.duration),this.seekBar.tracking||(r=this.liveUpdatePending||this.seekBar.seekHead.is(v(document.activeElement)),this.liveUpdatePending=!1,this.useChapterTimes?this.seekBar.setPosition(this.chapterElapsed,r):this.seekBar.setPosition(this.elapsed,r)),n=this.seekBar.tracking?this.seekBar.lastTrackPosition:this.useChapterTimes?this.chapterElapsed:this.elapsed),void 0!==this.$durationContainer&&(this.useChapterTimes?this.$durationContainer.text(" / "+this.formatSecondsAsColonTime(this.chapterDuration)):this.$durationContainer.text(" / "+this.formatSecondsAsColonTime(this.duration))),void 0!==this.$elapsedTimeContainer&&this.$elapsedTimeContainer.text(this.formatSecondsAsColonTime(n)),this.seekBar&&(h=0,c=(p=this.seekBar.wrapperDiv.parent().prev("div.able-left-controls")).next("div.able-right-controls"),p.children().each(function(){"BUTTON"==v(this).prop("tagName")&&(h+=v(this).width())}),c.children().each(function(){"BUTTON"==v(this).prop("tagName")&&(h+=v(this).width())}),u=this.fullscreen?v(window).width()-h-40:this.$ableWrapper.width()-h-40,5<Math.abs(u-this.seekBar.getWidth())&&this.seekBar.setWidth(u)),"html5"===this.player?0<this.media.buffered.length&&(g=this.media.buffered.end(0),this.useChapterTimes?(g>this.chapterDuration&&(g=this.chapterDuration),this.seekBar&&this.seekBar.setBuffered(g/this.chapterDuration)):this.seekBar&&this.seekBar.setBuffered(g/t)):"youtube"===this.player?this.seekBar&&this.seekBar.setBuffered(this.youTubePlayer.getVideoLoadedFraction()):this.player,this.$descButton&&(this.descOn?(this.$descButton.removeClass("buttonOff").attr("aria-label",this.tt.turnOffDescriptions),this.$descButton.find("span.able-clipped").text(this.tt.turnOffDescriptions)):(this.$descButton.addClass("buttonOff").attr("aria-label",this.tt.turnOnDescriptions),this.$descButton.find("span.able-clipped").text(this.tt.turnOnDescriptions))),this.$ccButton&&(d=this.captions.length,this.captionsOn?(this.$ccButton.removeClass("buttonOff"),1===d&&(this.$ccButton.attr("aria-label",this.tt.hideCaptions),this.$ccButton.find("span.able-clipped").text(this.tt.hideCaptions))):(this.$ccButton.addClass("buttonOff"),1===d&&(this.$ccButton.attr("aria-label",this.tt.showCaptions),this.$ccButton.find("span.able-clipped").text(this.tt.showCaptions))),1<d&&(this.$ccButton.attr({"aria-label":this.tt.captions,"aria-haspopup":"true","aria-controls":this.mediaId+"-captions-menu","aria-expanded":"false"}),this.$ccButton.find("span.able-clipped").text(this.tt.captions))),this.$fullscreenButton&&(this.fullscreen?(this.$fullscreenButton.attr("aria-label",this.tt.exitFullScreen),"font"===this.iconType?(this.$fullscreenButton.find("span").first().removeClass("icon-fullscreen-expand").addClass("icon-fullscreen-collapse"),this.$fullscreenButton.find("span.able-clipped").text(this.tt.exitFullScreen)):"svg"===this.iconType?(m=this.getSvgData("fullscreen-collapse"),this.$fullscreenButton.find("svg").attr("viewBox",m[0]),this.$fullscreenButton.find("path").attr("d",m[1])):this.$fullscreenButton.find("img").attr("src",this.fullscreenCollapseButtonImg)):(this.$fullscreenButton.attr("aria-label",this.tt.enterFullScreen),"font"===this.iconType?(this.$fullscreenButton.find("span").first().removeClass("icon-fullscreen-collapse").addClass("icon-fullscreen-expand"),this.$fullscreenButton.find("span.able-clipped").text(this.tt.enterFullScreen)):"svg"===this.iconType?(m=this.getSvgData("fullscreen-expand"),this.$fullscreenButton.find("svg").attr("viewBox",m[0]),this.$fullscreenButton.find("path").attr("d",m[1])):this.$fullscreenButton.find("img").attr("src",this.fullscreenExpandButtonImg))),void 0!==this.$bigPlayButton&&void 0!==this.seekBar&&(this.paused&&!this.seekBar.tracking?(this.hideBigPlayButton||this.$bigPlayButton.show(),this.fullscreen?(this.$bigPlayButton.width(v(window).width()),this.$bigPlayButton.height(v(window).height())):(this.$bigPlayButton.width(this.$mediaContainer.width()),this.$bigPlayButton.height(this.$mediaContainer.height()))):this.$bigPlayButton.hide()),this.transcriptType&&(1===this.prefAutoScrollTranscript?(this.autoScrollTranscript=!0,this.$autoScrollTranscriptCheckbox.prop("checked",!0)):(this.autoScrollTranscript=!1,this.$autoScrollTranscriptCheckbox.prop("checked",!1)),this.autoScrollTranscript&&this.currentHighlight&&(f=Math.floor(v(".able-transcript").scrollTop()+v(this.currentHighlight).position().top-v(".able-transcript").height()/2+v(this.currentHighlight).height()/2))!==Math.floor(v(".able-transcript").scrollTop())&&(this.scrollingTranscript=!0,v(".able-transcript").scrollTop(f))),this.$chaptersButton&&this.$chaptersButton.attr({"aria-label":this.tt.chapters,"aria-haspopup":"true","aria-controls":this.mediaId+"-chapters-menu","aria-expanded":"false"}),o={stopped:this.tt.statusStopped,paused:this.tt.statusPaused,playing:this.tt.statusPlaying,buffering:this.tt.statusBuffering,ended:this.tt.statusEnd},this.stoppingYouTube?(this.$status.text()!==this.tt.statusStopped&&this.$status.text(this.tt.statusStopped),this.$playpauseButton.find("span").first().hasClass("icon-pause")&&("font"===this.iconType?(this.$playpauseButton.find("span").first().removeClass("icon-pause").addClass("icon-play"),this.$playpauseButton.find("span.able-clipped").text(this.tt.play)):"svg"===this.iconType?(m=this.getSvgData("play"),this.$playpauseButton.find("svg").attr("viewBox",m[0]),this.$playpauseButton.find("path").attr("d",m[1])):this.$playpauseButton.find("img").attr("src",this.playButtonImg))):void 0!==this.$status&&void 0!==this.seekBar&&this.getPlayerState().then(function(t){s.$status.text()===o[t]||s.seekBar.tracking?(s.statusDebounceStart=null,clearTimeout(s.statusTimeout),s.statusTimeout=null):(l=(new Date).getTime(),s.statusDebounceStart?250<l-s.statusDebounceStart&&(s.$status.text(o[t]),s.statusDebounceStart=null,clearTimeout(s.statusTimeout),s.statusTimeout=null):(s.statusDebounceStart=l,s.statusTimeout=setTimeout(function(){s.refreshControls(e)},300))),s.seekBar.tracking||s.stoppingYouTube||("paused"===t||"stopped"===t?(s.$playpauseButton.attr("aria-label",s.tt.play),"font"===s.iconType?(s.$playpauseButton.find("span").first().removeClass("icon-pause").addClass("icon-play"),s.$playpauseButton.find("span.able-clipped").text(s.tt.play)):"svg"===s.iconType?(m=s.getSvgData("play"),s.$playpauseButton.find("svg").attr("viewBox",m[0]),s.$playpauseButton.find("path").attr("d",m[1])):s.$playpauseButton.find("img").attr("src",s.playButtonImg)):(s.$playpauseButton.attr("aria-label",s.tt.pause),"font"===s.iconType?(s.$playpauseButton.find("span").first().removeClass("icon-play").addClass("icon-pause"),s.$playpauseButton.find("span.able-clipped").text(s.tt.pause)):"svg"===s.iconType?(m=s.getSvgData("pause"),s.$playpauseButton.find("svg").attr("viewBox",m[0]),s.$playpauseButton.find("path").attr("d",m[1])):s.$playpauseButton.find("img").attr("src",s.pauseButtonImg)))}),this.fullscreen||(this.$statusBarDiv.height()+5<this.$statusBarDiv.find("span.able-speed").height()?(this.$statusBarDiv.find("span.able-speed").hide(),this.hidingSpeed=!0):(this.hidingSpeed&&(this.$statusBarDiv.find("span.able-speed").show(),this.hidingSpeed=!1),this.$statusBarDiv.width()<300?(this.$statusBarDiv.find("span.able-speed").hide(),this.hidingSpeed=!0):this.hidingSpeed&&(this.$statusBarDiv.find("span.able-speed").show(),this.hidingSpeed=!1))))},AblePlayer.prototype.getHiddenWidth=function(t){var e=t.clone().appendTo("body"),i=e.outerWidth();return e.remove(),i},AblePlayer.prototype.handlePlay=function(t){this.paused?this.playMedia():this.pauseMedia()},AblePlayer.prototype.handleRestart=function(){this.seekTo(0)},AblePlayer.prototype.handleRewind=function(){var t;t=this.elapsed-this.seekInterval,this.useChapterTimes?t<this.currentChapter.start&&(t=this.currentChapter.start):t<0&&(t=0),this.seekTo(t)},AblePlayer.prototype.handleFastForward=function(){var t,e;e=this.chapters.length-1,t=this.elapsed+this.seekInterval,this.useChapterTimes?this.chapters[e]==this.currentChapter?t>this.duration||t>this.currentChapter.end?t=Math.min(this.duration,this.currentChapter.end):this.duration%t<this.seekInterval&&(t=Math.min(this.duration,this.currentChapter.end)):t>this.currentChapter.end&&(t=this.currentChapter.end):t>this.duration&&(t=this.duration),this.seekTo(t)},AblePlayer.prototype.handleRateIncrease=function(){this.changeRate(1)},AblePlayer.prototype.handleRateDecrease=function(){this.changeRate(-1)},AblePlayer.prototype.changeRate=function(t){var e,i,s,a;"html5"===this.player?this.setPlaybackRate(this.getPlaybackRate()+.25*t):"youtube"===this.player?(e=this.youTubePlayer.getAvailablePlaybackRates(),i=this.getPlaybackRate(),-1===(s=e.indexOf(i))||(s+=t)<e.length&&0<=s&&this.setPlaybackRate(e[s])):"vimeo"===this.player&&(1===t?a=this.vimeoPlaybackRate+.5<=2?this.vimeoPlaybackRate+.5:2:-1===t&&(a=.5<=this.vimeoPlaybackRate-.5?this.vimeoPlaybackRate-.5:.5),this.setPlaybackRate(a))},AblePlayer.prototype.handleCaptionToggle=function(){var t;if(this.hidingPopup)return this.hidingPopup=!1;if(1===(t=this.captions.length?this.captions:[]).length){if(!0===this.captionsOn)this.captionsOn=!1,this.prefCaptions=0,this.updateCookie("prefCaptions"),this.usingYouTubeCaptions?this.youTubePlayer.unloadModule(this.ytCaptionModule):this.$captionsWrapper.hide();else{this.captionsOn=!0,this.prefCaptions=1,this.updateCookie("prefCaptions"),this.usingYouTubeCaptions?void 0!==this.ytCaptionModule&&this.youTubePlayer.loadModule(this.ytCaptionModule):this.$captionsWrapper.show();for(var e=0;e<t.length;e++)!0===t[e].def&&(this.selectedCaptions=t[e]);this.selectedCaptions=this.captions[0],0<=this.descriptions.length&&(this.selectedDescriptions=this.descriptions[0])}this.refreshControls("captions")}else this.captionsPopup&&this.captionsPopup.is(":visible")?(this.captionsPopup.hide(),this.hidingPopup=!1,this.$ccButton.attr("aria-expanded","false").focus()):(this.closePopups(),this.captionsPopup&&(this.captionsPopup.show(),this.$ccButton.attr("aria-expanded","true"),this.captionsPopup.css("top",this.$ccButton.position().top-this.captionsPopup.outerHeight()),this.captionsPopup.css("left",this.$ccButton.position().left),this.captionsPopup.find("li").removeClass("able-focus"),this.captionsPopup.find("li").first().focus().addClass("able-focus")))},AblePlayer.prototype.handleChapters=function(){if(this.hidingPopup)return this.hidingPopup=!1;this.chaptersPopup.is(":visible")?(this.chaptersPopup.hide(),this.hidingPopup=!1,this.$chaptersButton.attr("aria-expanded","false").focus()):(this.closePopups(),this.chaptersPopup.show(),this.$chaptersButton.attr("aria-expanded","true"),this.chaptersPopup.css("top",this.$chaptersButton.position().top-this.chaptersPopup.outerHeight()),this.chaptersPopup.css("left",this.$chaptersButton.position().left),this.chaptersPopup.find("li").removeClass("able-focus"),this.chaptersPopup.find('li[aria-checked="true"]').length?this.chaptersPopup.find('li[aria-checked="true"]').focus().addClass("able-focus"):this.chaptersPopup.find("li").first().addClass("able-focus").attr("aria-checked","true").focus())},AblePlayer.prototype.handleDescriptionToggle=function(){this.descOn=!this.descOn,this.prefDesc=+this.descOn,this.updateCookie("prefDesc"),this.refreshingDesc=!0,this.initDescription(),this.refreshControls("descriptions")},AblePlayer.prototype.handlePrefsClick=function(t){var e,i;if(this.hidingPopup)return this.hidingPopup=!1;this.prefsPopup.is(":visible")?(this.prefsPopup.hide(),this.hidingPopup=!1,this.$prefsButton.attr("aria-expanded","false").focus(),this.prefsPopup.find("li").removeClass("able-focus").attr("tabindex","-1")):(this.closePopups(),this.prefsPopup.show(),this.$prefsButton.attr("aria-expanded","true"),e=this.$prefsButton.position(),i=this.$ableDiv.width()-5-this.prefsPopup.width(),this.prefsPopup.css("top",e.top-this.prefsPopup.outerHeight()),this.prefsPopup.css("left",i),this.prefsPopup.find("li").removeClass("able-focus").attr("tabindex","0"),this.prefsPopup.find("li").first().focus().addClass("able-focus"))},AblePlayer.prototype.handleHelpClick=function(){this.setFullscreen(!1),this.helpDialog.show()},AblePlayer.prototype.handleTranscriptToggle=function(){this.$transcriptDiv.is(":visible")?(this.$transcriptArea.hide(),this.$transcriptButton.addClass("buttonOff").attr("aria-label",this.tt.showTranscript),this.$transcriptButton.find("span.able-clipped").text(this.tt.showTranscript),this.prefTranscript=0,this.$transcriptButton.focus().addClass("able-focus")):(this.positionDraggableWindow("transcript"),this.$transcriptArea.show(),this.$transcriptButton.removeClass("buttonOff").attr("aria-label",this.tt.hideTranscript),this.$transcriptButton.find("span.able-clipped").text(this.tt.hideTranscript),this.prefTranscript=1),this.updateCookie("prefTranscript")},AblePlayer.prototype.handleSignToggle=function(){this.$signWindow.is(":visible")?(this.$signWindow.hide(),this.$signButton.addClass("buttonOff").attr("aria-label",this.tt.showSign),this.$signButton.find("span.able-clipped").text(this.tt.showSign),this.prefSign=0,this.$signButton.focus().addClass("able-focus")):(this.positionDraggableWindow("sign"),this.$signWindow.show(),this.$signButton.removeClass("buttonOff").attr("aria-label",this.tt.hideSign),this.$signButton.find("span.able-clipped").text(this.tt.hideSign),this.prefSign=1),this.updateCookie("prefSign")},AblePlayer.prototype.isFullscreen=function(){return this.nativeFullscreenSupported()?!!(document.fullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.msFullscreenElement):!!this.modalFullscreenActive},AblePlayer.prototype.setFullscreen=function(t){if(this.fullscreen!=t){var e=this,i=this.$ableWrapper,s=i[0];if(this.nativeFullscreenSupported())t?(this.preFullScreenWidth=this.$ableWrapper.width(),this.preFullScreenHeight=this.$ableWrapper.height(),s.requestFullscreen?s.requestFullscreen():s.webkitRequestFullscreen?s.webkitRequestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.msRequestFullscreen&&s.msRequestFullscreen(),this.fullscreen=!0):(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.fullscreen=!1),v(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",function(t){e.fullscreen?e.clickedFullscreenButton||(e.fullscreen=!1,e.restoringAfterFullScreen=!0,e.resizePlayer(e.preFullScreenWidth,e.preFullScreenHeight)):(e.restoringAfterFullScreen=!0,e.resizePlayer(e.preFullScreenWidth,e.preFullScreenHeight)),setTimeout(function(){e.clickedFullscreenButton=!1},1e3)});else{if(!this.fullscreenDialog){var a=v("<div>"),n=v("<p>",{class:"able-screenreader-alert"}).text(this.tt.fullscreen);a.append(n),this.fullscreenDialog=new AccessibleDialog(a,this.$fullscreenButton,"dialog","Fullscreen video player",n,this.tt.exitFullScreen,"100%",!0,function(){e.handleFullscreenToggle()}),v("body").append(a)}var r=this.paused;if(t){this.modalFullscreenActive=!0,this.fullscreenDialog.show(),this.$modalFullscreenPlaceholder=v('<div class="placeholder">'),this.$modalFullscreenPlaceholder.insertAfter(i),i.appendTo(this.fullscreenDialog.modal),i===this.$ableColumnLeft&&i.width("100%");var o=v(window).height()-this.$playerDiv.height();this.$descDiv.is(":hidden")||(o-=this.$descDiv.height()),this.resizePlayer(v(window).width(),o)}else this.modalFullscreenActive=!1,i===this.$ableColumnLeft&&i.width("50%"),i.insertAfter(this.$modalFullscreenPlaceholder),this.$modalFullscreenPlaceholder.remove(),this.fullscreenDialog.hide(),this.resizePlayer(this.$ableWrapper.width(),this.$ableWrapper.height());!r&&this.paused&&this.playMedia()}this.refreshControls("fullscreen")}},AblePlayer.prototype.handleFullscreenToggle=function(){var t=this.paused;this.setFullscreen(!this.fullscreen),t?this.pauseMedia():t||this.playMedia(),this.fullscreen?(this.hideControls=!0,this.playing&&(this.fadeControls("out"),this.controlsHidden=!0)):(this.hideControls=this.hideControlsOriginal,this.hideControls||(this.controlsHidden&&(this.fadeControls("in"),this.controlsHidden=!1),"active"===this.hideControlsTimeoutStatus&&(window.clearTimeout(this.hideControlsTimeout),this.hideControlsTimeoutStatus="clear")))},AblePlayer.prototype.handleTranscriptLockToggle=function(t){this.autoScrollTranscript=t,this.prefAutoScrollTranscript=+t,this.updateCookie("prefAutoScrollTranscript"),this.refreshControls("transcript")},AblePlayer.prototype.showTooltip=function(t){t.is(":animated")?t.stop(!0,!0).show().delay(4e3).fadeOut(1e3):t.stop().show().delay(4e3).fadeOut(1e3)},AblePlayer.prototype.showAlert=function(t,e){var i,s,a,n;"transcript"===e?(i=this.$transcriptAlert,s=this.$transcriptArea):"sign"===e?(i=this.$signAlert,s=this.$signWindow):i="screenreader"===e?this.$srAlertBox:this.$alertBox,i.text(t).show(),"transcript"==e||"sign"===e?(a=s.width()>i.width()?s.width()/2-i.width()/2:10,"sign"===e?n=s.height()/3*2:"transcript"===e&&(n=this.$transcriptToolbar.height()+30),i.css({top:n+"px",left:a+"px"})):"screenreader"!==e&&i.css({left:this.$playerDiv.width()/2-i.width()/2}),"screenreader"!==e&&setTimeout(function(){i.fadeOut(300)},3e3)},AblePlayer.prototype.showedAlert=function(t){return"transcript"===t?!!this.showedTranscriptAlert:"sign"===t&&!!this.showedSignAlert},AblePlayer.prototype.resizePlayer=function(t,e){var i,s,a;this.fullscreen?(void 0!==this.$vidcapContainer&&(this.$ableWrapper.css({width:t+"px","max-width":""}),this.$vidcapContainer.css({height:e+"px",width:t}),this.$media.css({height:e+"px",width:t})),void 0!==this.$transcriptArea&&this.retrieveOffscreenWindow("transcript",t,e),void 0!==this.$signWindow&&this.retrieveOffscreenWindow("sign",t,e)):this.restoringAfterFullScreen&&(t=this.preFullScreenWidth,e=this.preFullScreenHeight,this.restoringAfterFullScreen=!1,this.$ableWrapper.css({"max-width":t+"px",width:""}),void 0!==this.$vidcapContainer&&this.$vidcapContainer.css({height:"",width:""}),this.$media.css({width:"100%",height:"auto"})),"youtube"===this.player&&this.youTubePlayer&&this.youTubePlayer.setSize(t,e),void 0!==this.$captionsDiv&&(i=parseInt(this.prefCaptionsSize,10),a=(s=1e3<t?1.5*i:t<400?i/1.5:i)+25,this.$captionsDiv.css("font-size",s+"%"),this.$captionsWrapper.css("line-height",a+"%")),this.refreshControls("captions")},AblePlayer.prototype.retrieveOffscreenWindow=function(t,e,i){var s,a,n,r,o,l,h,p;"transcript"==t?s=this.$transcriptArea:"sign"==t&&(s=this.$signWindow),l=s.width(),p=s.height(),n=(a=s.position()).top,o=(r=a.left)+l,h=n+p,n<0&&(n=10,s.css("top",n)),r<0&&(r=10,s.css("left",r)),e<o&&(r=e-20-l,s.css("left",r)),i<h&&(n=i-10-p,s.css("top",n))},AblePlayer.prototype.getHighestZIndex=function(){var t,e;return t=0,v("body *").not(".able-modal-dialog,.able-modal-dialog *,.able-modal-overlay,.able-modal-overlay *,.able-sign-window,.able-transcript-area").each(function(){e=v(this).css("z-index"),Number.isInteger(+e)&&parseInt(e)>t&&(t=parseInt(e))}),t},AblePlayer.prototype.updateZIndex=function(t){var e,i,s,a;if(8e3,7e3,this.getHighestZIndex(),void 0===this.$transcriptArea||void 0===this.$signWindow)return void 0!==this.$transcriptArea?7e3<(e=parseInt(this.$transcriptArea.css("z-index")))&&this.$transcriptArea.css("z-index",7e3):void 0!==this.$signWindow&&8e3<(i=parseInt(this.$signWindow.css("z-index")))&&this.$signWindow.css("z-index",8e3),!1;if((e=parseInt(this.$transcriptArea.css("z-index")))===(i=parseInt(this.$signWindow.css("z-index"))))s=8e3,a=7e3;else if(i<e){if("transcript"===t)return!1;s=e,a=i}else{if("sign"===t)return!1;s=i,a=e}"transcript"===t?(this.$transcriptArea.css("z-index",s),this.$signWindow.css("z-index",a)):"sign"===t&&(this.$signWindow.css("z-index",s),this.$transcriptArea.css("z-index",a))},AblePlayer.prototype.syncTrackLanguages=function(t,e){var i,s,a,n,r;for(i=0;i<this.captions.length;i++)this.captions[i].language===e&&(s=this.captions[i]);for(i=0;i<this.chapters.length;i++)this.chapters[i].language===e&&(n=this.chapters[i]);for(i=0;i<this.descriptions.length;i++)this.descriptions[i].language===e&&(a=this.descriptions[i]);for(i=0;i<this.meta.length;i++)this.meta[i].language===e&&(r=this.meta[i]);this.transcriptLang=e,"init"===t||"captions"===t?(this.captionLang=e,this.selectedCaptions=s,this.selectedChapters=n,this.selectedDescriptions=a,this.selectedMeta=r,this.transcriptCaptions=s,this.transcriptChapters=n,this.transcriptDescriptions=a,this.updateChaptersList()):"transcript"===t&&(this.transcriptCaptions=s,this.transcriptChapters=n,this.transcriptDescriptions=a),this.updateTranscript()}}(jQuery),function(r){AblePlayer.prototype.updateCaption=function(t){this.usingYouTubeCaptions||void 0===this.$captionsWrapper||(this.captionsOn?(this.$captionsWrapper.show(),void 0!==t&&this.showCaptions(t)):this.$captionsWrapper&&(this.$captionsWrapper.hide(),this.prefCaptions=0))},AblePlayer.prototype.updateCaptionsMenu=function(t){this.captionsPopup.find("li").attr("aria-checked","false"),void 0===t?this.captionsPopup.find("li").last().attr("aria-checked","true"):this.captionsPopup.find("li[lang="+t+"]").attr("aria-checked","true")},AblePlayer.prototype.getCaptionClickFunction=function(t){var e=this;return function(){e.selectedCaptions=t,e.captionLang=t.language,e.currentCaption=-1,e.usingYouTubeCaptions?e.captionsOn?void 0!==e.ytCaptionModule&&e.youTubePlayer.setOption(e.ytCaptionModule,"track",{languageCode:e.captionLang}):(e.resettingYouTubeCaptions=!0,e.youTubePlayer.loadModule(e.ytCaptionModule)):e.usingVimeoCaptions?e.vimeoPlayer.enableTextTrack(e.captionLang).then(function(t){}).catch(function(t){t.name}):(e.syncTrackLanguages("captions",e.captionLang),e.swappingSrc||(e.updateCaption(e.elapsed),e.showDescription(e.elapsed))),e.captionsOn=!0,e.hidingPopup=!0,e.captionsPopup.hide(),setTimeout(function(){e.hidingPopup=!1},100),e.updateCaptionsMenu(e.captionLang),e.$ccButton.focus(),e.prefCaptions=1,e.updateCookie("prefCaptions"),e.refreshControls("captions")}},AblePlayer.prototype.getCaptionOffFunction=function(){var t=this;return function(){"youtube"==t.player&&t.youTubePlayer.unloadModule(t.ytCaptionModule),t.captionsOn=!1,t.currentCaption=-1,t.hidingPopup=!0,t.captionsPopup.hide(),setTimeout(function(){t.hidingPopup=!1},100),t.updateCaptionsMenu(),t.$ccButton.focus(),t.prefCaptions=0,t.updateCookie("prefCaptions"),this.swappingSrc||(t.refreshControls("captions"),t.updateCaption())}},AblePlayer.prototype.showCaptions=function(t){var e,i,s,a;for(a=this.selectedCaptions?this.selectedCaptions.cues:1<=this.captions.length?this.captions[0].cues:[],e=0;e<a.length;e++)if(a[e].start<=t&&a[e].end>t){i=e;break}void 0!==i?this.currentCaption!==i&&(s=this.flattenCueForCaption(a[i]).replace("\n","<br>"),this.$captionsDiv.html(s),this.currentCaption=i,0===s.length?this.$captionsDiv.css("display","none"):this.$captionsDiv.css("display","inline-block")):(this.$captionsDiv.html(""),this.currentCaption=-1)},AblePlayer.prototype.flattenCueForCaption=function(t){var e=[],s=function(t){var e,i=[];if("string"===t.type)i.push(t.value);else if("v"===t.type)for(i.push("("+t.value+")"),e=0;e<t.children.length;e++)i.push(s(t.children[e]));else if("i"===t.type){for(i.push("<em>"),e=0;e<t.children.length;e++)i.push(s(t.children[e]));i.push("</em>")}else if("b"===t.type){for(i.push("<strong>"),e=0;e<t.children.length;e++)i.push(s(t.children[e]));i.push("</strong>")}else for(e=0;e<t.children.length;e++)i.push(s(t.children[e]));return i.join("")};if(void 0!==t.components)for(var i=0;i<t.components.children.length;i++)e.push(s(t.components.children[i]));return e.join("")},AblePlayer.prototype.getCaptionsOptions=function(t){var e=[];switch(t){case"prefCaptionsFont":e[0]=this.tt.serif,e[1]=this.tt.sans,e[3]=this.tt.cursive,e[4]=this.tt.fantasy,e[2]=this.tt.monospace;break;case"prefCaptionsColor":case"prefCaptionsBGColor":e[0]=["white",this.tt.white],e[1]=["yellow",this.tt.yellow],e[2]=["green",this.tt.green],e[3]=["cyan",this.tt.cyan],e[4]=["blue",this.tt.blue],e[5]=["magenta",this.tt.magenta],e[6]=["red",this.tt.red],e[7]=["black",this.tt.black];break;case"prefCaptionsSize":e[0]="75%",e[1]="100%",e[2]="125%",e[3]="150%",e[4]="200%";break;case"prefCaptionsOpacity":e[0]="0%",e[1]="25%",e[2]="50%",e[3]="75%",e[4]="100%";break;case"prefCaptionsStyle":e[0]=this.tt.captionsStylePopOn,e[1]=this.tt.captionsStyleRollUp;break;case"prefCaptionsPosition":e[0]="overlay",e[1]="below"}return e},AblePlayer.prototype.translatePrefs=function(t,e,i){if("youtube"==i&&"size"===t)switch(e){case"75%":return-1;case"100%":return 0;case"125%":return 1;case"150%":return 2;case"200%":return 3}return!1},AblePlayer.prototype.stylizeCaptions=function(t,e){var i,s,a,n;void 0!==t&&("prefCaptionsPosition"==e?this.positionCaptions():void 0!==e?("prefCaptionsFont"===e?i="font-family":"prefCaptionsSize"===e?i="font-size":"prefCaptionsColor"===e?i="color":"prefCaptionsBGColor"===e?i="background-color":"prefCaptionsOpacity"===e&&(i="opacity"),s="prefCaptionsOpacity"===e?parseFloat(r("#"+this.mediaId+"_"+e).val())/100:r("#"+this.mediaId+"_"+e).val(),t.css(i,s)):(a=parseFloat(this.prefCaptionsOpacity)/100,t.css({"font-family":this.prefCaptionsFont,"font-size":this.prefCaptionsSize,color:this.prefCaptionsColor,"background-color":this.prefCaptionsBGColor,opacity:a}),t===this.$captionsDiv&&void 0!==this.$captionsWrapper&&(n=parseInt(this.prefCaptionsSize,10)+25,this.$captionsWrapper.css("line-height",n+"%")),"below"===this.prefCaptionsPosition?void 0!==this.$captionsWrapper&&this.$captionsWrapper.css({"background-color":this.prefCaptionsBGColor,opacity:"1"}):"overlay"===this.prefCaptionsPosition&&void 0!==this.$captionsWrapper&&this.$captionsWrapper.css({"background-color":"transparent",opacity:""}),this.positionCaptions()))},AblePlayer.prototype.positionCaptions=function(t){void 0===t&&(t=this.prefCaptionsPosition),void 0!==this.$captionsWrapper&&("below"==t?(this.$captionsWrapper.removeClass("able-captions-overlay").addClass("able-captions-below"),this.$captionsWrapper.css({"background-color":this.prefCaptionsBGColor,opacity:"1"})):(this.$captionsWrapper.removeClass("able-captions-below").addClass("able-captions-overlay"),this.$captionsWrapper.css({"background-color":"transparent",opacity:""})))}}(jQuery),function(p){AblePlayer.prototype.populateChaptersDiv=function(){var t,e,i;p("#"+this.chaptersDivLocation)&&(this.$chaptersDiv=p("#"+this.chaptersDivLocation),this.$chaptersDiv.addClass("able-chapters-div"),this.chaptersTitle&&(t="h"+this.getNextHeadingLevel(this.$chaptersDiv).toString(),e=this.mediaId+"-chapters-heading",i=p("<"+t+">",{class:"able-chapters-heading",id:e}).text(this.chaptersTitle),this.$chaptersDiv.append(i)),this.$chaptersNav=p("<nav>"),this.chaptersTitle?this.$chaptersNav.attr("aria-labelledby",e):this.$chaptersNav.attr("aria-label",this.tt.chapters),this.$chaptersDiv.append(this.$chaptersNav),this.updateChaptersList())},AblePlayer.prototype.updateChaptersList=function(){var e,t,i,s,a,n,r,o,l,h;if(!(e=this).$chaptersNav)return!1;if(void 0===this.useChapterTimes&&("chapter"===this.seekbarScope&&this.selectedChapters.cues.length?this.useChapterTimes=!0:this.useChapterTimes=!1),0<(t=this.useChapterTimes?this.selectedChapters.cues:1<=this.chapters.length?this.chapters[0].cues:[]).length){for(h=p("<ul>"),i=0;i<t.length;i++)s=i,a=p("<li></li>"),o=function(t){return function(){e.seekTrigger="chapter",l=p(this).closest("li"),h=p(this).closest("ul").find("li"),h.index(l),h.removeClass("able-current-chapter").attr("aria-selected",""),l.addClass("able-current-chapter").attr("aria-selected","true"),e.updateChapter(t),e.seekTo(t)}},(n=p("<button>",{type:"button",val:s}).text(this.flattenCueForCaption(t[s]))).on("click",o(t[s].start)),n.on("focus",function(){p(this).closest("ul").find("li").removeClass("able-focus"),p(this).closest("li").addClass("able-focus")}),a.on("hover",function(){p(this).closest("ul").find("li").removeClass("able-focus"),p(this).addClass("able-focus")}),a.on("mouseleave",function(){p(this).removeClass("able-focus")}),n.on("blur",function(){p(this).closest("li").removeClass("able-focus")}),a.append(n),h.append(a),this.defaultChapter===t[s].id&&(n.attr("aria-selected","true").parent("li").addClass("able-current-chapter"),this.currentChapter=t[s],r=!0);r||(this.currentChapter=t[0],h.find("button").first().attr("aria-selected","true").parent("li").addClass("able-current-chapter")),this.$chaptersNav.html(h)}return!1},AblePlayer.prototype.seekToChapter=function(t){for(var e=0;e<this.selectedChapters.cues.length;){if(this.selectedChapters.cues[e].id==t){this.seekTo(this.selectedChapters.cues[e].start),this.updateChapter(this.selectedChapters.cues[e].start);break}e++}},AblePlayer.prototype.updateChapter=function(t){if(void 0!==this.selectedChapters){var e,i,s;for(e=this.selectedChapters.cues,i=0;i<e.length;i++)if(e[i].start<=t&&e[i].end>t){s=i;break}void 0!==s&&this.currentChapter!==e[s]&&(this.currentChapter=e[s],this.useChapterTimes&&(this.chapterDuration=this.getChapterDuration(),this.seekIntervalCalculated=!1),void 0!==this.$chaptersDiv&&(this.$chaptersDiv.find("ul").find("li").removeClass("able-current-chapter").attr("aria-selected",""),this.$chaptersDiv.find("ul").find("li").eq(s).addClass("able-current-chapter").attr("aria-selected","true")))}},AblePlayer.prototype.getChapterDuration=function(){var t,e;return void 0===this.currentChapter?0:void 0===this.duration?0:(t=this.selectedChapters.cues.length-1,this.selectedChapters.cues[t]==this.currentChapter&&this.currentChapter.end!==this.duration?(e=this.duration,this.currentChapter.end=this.duration):e=this.currentChapter.end,e-this.currentChapter.start)},AblePlayer.prototype.getChapterElapsed=function(){return void 0===this.currentChapter?0:this.elapsed>this.currentChapter.start?this.elapsed-this.currentChapter.start:0},AblePlayer.prototype.convertChapterTimeToVideoTime=function(t){if(void 0===this.currentChapter)return t;var e=this.currentChapter.start+t;return e>this.currentChapter.end?this.currentChapter.end:e},AblePlayer.prototype.getChapterClickFunction=function(t){var e=this;return function(){e.seekTrigger="chapter",e.seekTo(t),e.hidingPopup=!0,e.chaptersPopup.hide(),setTimeout(function(){e.hidingPopup=!1},100),e.$chaptersButton.focus()}}}(jQuery),function(p){AblePlayer.prototype.updateMeta=function(t){this.hasMeta&&("text"===this.metaType&&this.$metaDiv.show(),this.showMeta(t||this.elapsed))},AblePlayer.prototype.showMeta=function(t){var e,i,s,a,n,r,o,l,h;for(e=[],a=1<=this.meta.length?this.meta:[],i=0;i<a.length;i++)if(a[i].start<=t&&a[i].end>t){s=i;break}if(void 0!==s){if(this.currentMeta!==s){if("text"===this.metaType)this.$metaDiv.html(this.flattenCueForMeta(a[s]).replace("\n","<br>"));else if("selector"===this.metaType){for(n=this.flattenCueForMeta(a[s]).split("\n"),r=0;r<n.length;r++)"pause"===(o=p.trim(n[r])).toLowerCase().trim()?(this.hideBigPlayButton=!0,this.pauseMedia()):"focus:"==o.toLowerCase().substring(0,6)?(h=o.substring(6).trim(),p(h).length&&p(h).focus()):p(o).length&&(void 0===(l=parseInt(p(o).attr("data-duration")))||isNaN(l)?p(o).show():p(o).show().delay(l).fadeOut(),this.visibleSelectors.push(o),e.push(o));if(this.visibleSelectors&&this.visibleSelectors.length&&this.visibleSelectors.length!==e.length)for(r=this.visibleSelectors.length-1;0<=r;r--)-1==p.inArray(this.visibleSelectors[r],e)&&(p(this.visibleSelectors[r]).hide(),this.visibleSelectors.splice(r,1))}this.currentMeta=s}}else{if(void 0!==this.$metaDiv&&this.$metaDiv.html(""),this.visibleSelectors&&this.visibleSelectors.length){for(r=0;r<this.visibleSelectors.length;r++)p(this.visibleSelectors[r]).hide();this.visibleSelectors=[]}this.currentMeta=-1}},AblePlayer.prototype.flattenCueForMeta=function(t){for(var e=[],s=function(t){var e,i=[];if("string"===t.type)i.push(t.value);else if("v"===t.type)for(i.push("["+t.value+"]"),e=0;e<t.children.length;e++)i.push(s(t.children[e]));else for(e=0;e<t.children.length;e++)i.push(s(t.children[e]));return i.join("")},i=0;i<t.components.children.length;i++)e.push(s(t.components.children[i]));return e.join("")}}(jQuery),function(b){AblePlayer.prototype.setupTranscript=function(){var t=new b.Deferred,e=t.promise();return this.transcriptType||!this.captions.length||this.usingYouTubeCaptions||this.usingVimeoCaptions||(this.transcriptType="popup"),this.transcriptType?"popup"===this.transcriptType||"external"===this.transcriptType?(this.injectTranscriptArea(),t.resolve()):"manual"===this.transcriptType&&(this.setupManualTranscript(),t.resolve()):t.resolve(),e},AblePlayer.prototype.injectTranscriptArea=function(){var t,e,i,s,a;if(this.$transcriptArea=b("<div>",{class:"able-transcript-area",tabindex:"-1"}),this.$transcriptToolbar=b("<div>",{class:"able-window-toolbar able-"+this.toolbarIconColor+"-controls"}),this.$transcriptDiv=b("<div>",{class:"able-transcript"}),this.$autoScrollTranscriptCheckbox=b("<input>",{id:"autoscroll-transcript-checkbox",type:"checkbox"}),t=b("<label>",{for:"autoscroll-transcript-checkbox"}).text(this.tt.autoScroll),this.$transcriptToolbar.append(t,this.$autoScrollTranscriptCheckbox),1<this.captions.length)for(e=b("<div>",{class:"transcript-language-select-wrapper"}),i=b("<label>",{for:"transcript-language-select"}).text(this.tt.language),this.$transcriptLanguageSelect=b("<select>",{id:"transcript-language-select"}),s=0;s<this.captions.length;s++)a=b("<option></option>",{value:this.captions[s].language,lang:this.captions[s].language}).text(this.captions[s].label),this.captions[s].def&&a.prop("selected",!0),this.$transcriptLanguageSelect.append(a);e&&(e.append(i,this.$transcriptLanguageSelect),this.$transcriptToolbar.append(e)),this.$transcriptArea.append(this.$transcriptToolbar,this.$transcriptDiv),this.transcriptDivLocation?b("#"+this.transcriptDivLocation).append(this.$transcriptArea):this.$ableWrapper.append(this.$transcriptArea),this.transcriptDivLocation||(this.initDragDrop("transcript"),1===this.prefTranscript&&this.positionDraggableWindow("transcript",this.getDefaultWidth("transcript"))),this.prefTranscript||this.transcriptDivLocation||this.$transcriptArea.hide()},AblePlayer.prototype.addTranscriptAreaEvents=function(){var e=this;this.$autoScrollTranscriptCheckbox.click(function(){e.handleTranscriptLockToggle(e.$autoScrollTranscriptCheckbox.prop("checked"))}),this.$transcriptDiv.on("mousewheel DOMMouseScroll click scroll",function(t){e.scrollingTranscript||(e.autoScrollTranscript=!1,e.refreshControls("transcript")),e.scrollingTranscript=!1}),void 0!==this.$transcriptLanguageSelect&&(this.$transcriptLanguageSelect.on("click mousedown",function(t){t.stopPropagation()}),this.$transcriptLanguageSelect.on("change",function(){var t=e.$transcriptLanguageSelect.val();e.syncTrackLanguages("transcript",t)}))},AblePlayer.prototype.transcriptSrcHasRequiredParts=function(){return!!(b("#"+this.transcriptSrc).length&&(this.$transcriptArea=b("#"+this.transcriptSrc),this.$transcriptArea.find(".able-window-toolbar").length&&(this.$transcriptToolbar=this.$transcriptArea.find(".able-window-toolbar").eq(0),this.$transcriptArea.find(".able-transcript").length&&(this.$transcriptDiv=this.$transcriptArea.find(".able-transcript").eq(0),this.$transcriptArea.find(".able-transcript-seekpoint").length))))&&(this.$transcriptSeekpoints=this.$transcriptArea.find(".able-transcript-seekpoint"),!0)},AblePlayer.prototype.setupManualTranscript=function(){this.$autoScrollTranscriptCheckbox=b('<input id="autoscroll-transcript-checkbox" type="checkbox">'),this.$transcriptToolbar.append(b('<label for="autoscroll-transcript-checkbox">'+this.tt.autoScroll+": </label>"),this.$autoScrollTranscriptCheckbox)},AblePlayer.prototype.updateTranscript=function(){if(this.transcriptType){if("external"===this.transcriptType||"popup"===this.transcriptType){var t,e,i;if(this.transcriptLang?e=this.transcriptCaptions.cues:this.transcriptCaptions?(this.transcriptLang=this.transcriptCaptions.language,e=this.transcriptCaptions.cues):this.selectedCaptions&&(this.transcriptLang=this.captionLang,e=this.selectedCaptions.cues),this.transcriptChapters)t=this.transcriptChapters.cues;else if(0<this.chapters.length){if(this.transcriptLang)for(var s=0;s<this.chapters.length;s++)this.chapters[s].language===this.transcriptLang&&(t=this.chapters[s].cues);void 0===t&&(t=this.chapters[0].cues||[])}if(this.transcriptDescriptions)i=this.transcriptDescriptions.cues;else if(0<this.descriptions.length){if(this.transcriptLang)for(s=0;s<this.descriptions.length;s++)this.descriptions[s].language===this.transcriptLang&&(i=this.descriptions[s].cues);i||(i=this.descriptions[0].cues||[])}var a=this.generateTranscript(t||[],e||[],i||[]);this.$transcriptDiv.html(a),this.$transcriptLanguageSelect&&(this.$transcriptLanguageSelect.find("option:selected").prop("selected",!1),this.$transcriptLanguageSelect.find("option[lang="+this.transcriptLang+"]").prop("selected",!0))}var n=this;1===this.prefTabbable&&b(".able-transcript span.able-transcript-seekpoint").attr("tabindex","0"),0<this.$transcriptArea.length&&this.$transcriptArea.find("span.able-transcript-seekpoint").click(function(t){n.seekTrigger="transcript";var e=parseFloat(b(this).attr("data-start"));e+=.01,n.seekingFromTranscript?n.seekingFromTranscript=!1:(n.seekingFromTranscript=!0,n.seekTo(e))})}},AblePlayer.prototype.highlightTranscript=function(t){if(this.transcriptType){var e,i,s,a=this;t=parseFloat(t),this.$transcriptArea.find("span.able-transcript-seekpoint").each(function(){if(e=parseFloat(b(this).attr("data-start")),i=parseFloat(b(this).attr("data-end")),s=!!b(this).parent().hasClass("able-transcript-chapter-heading"),e<=t&&t<=i&&!s)return a.$transcriptArea.find(".able-highlight").removeClass("able-highlight"),b(this).addClass("able-highlight"),!1}),a.currentHighlight=b(".able-highlight"),0===a.currentHighlight.length&&(a.currentHighlight=null)}},AblePlayer.prototype.generateTranscript=function(t,e,i){var s,h=this,a=b('<div class="able-transcript-container"></div>');if(a.attr("lang",this.transcriptLang),s=void 0!==this.transcriptTitle?this.transcriptTitle:this.lyricsMode?this.tt.lyricsTitle:this.tt.transcriptTitle,void 0===this.transcriptDivLocation){var n=this.playerHeadingLevel,p=(n+=1)+1;if(n<=6)var r="h"+n.toString();else r="div";var o=b("<"+r+">");o.addClass("able-transcript-heading"),6<n&&o.attr({role:"heading","aria-level":n}),o.text(s),o.attr("lang",this.lang),a.append(o)}for(var l=0,c=0,u=0,d=function(t,e){if(p<=6)var i="h"+p.toString();else i="div";var s=b("<"+i+">",{class:"able-transcript-chapter-heading"});6<p&&s.attr({role:"heading","aria-level":p});for(var a=function(t){var e=[];if("string"===t.type)e.push(t.value);else for(var i=0;i<t.children.length;i++)e=e.concat(a(t.children[i]));return e},n=b("<span>",{class:"able-transcript-seekpoint"}),r=0;r<e.components.children.length;r++)for(var o=a(e.components.children[r]),l=0;l<o.length;l++)n.append(o[l]);n.attr("data-start",e.start.toString()),n.attr("data-end",e.end.toString()),s.append(n),t.append(s)},g=function(t,e){var i=b("<div>",{class:"able-transcript-desc"}),s=b("<span>",{class:"able-hidden"});s.attr("lang",h.lang),s.text(h.tt.prefHeadingDescription+": "),i.append(s);for(var a=function(t){var e=[];if("string"===t.type)e.push(t.value);else for(var i=0;i<t.children.length;i++)e=e.concat(a(t.children[i]));return e},n=b("<span>",{class:"able-transcript-seekpoint"}),r=0;r<e.components.children.length;r++)for(var o=a(e.components.children[r]),l=0;l<o.length;l++)n.append(o[l]);n.attr("data-start",e.start.toString()),n.attr("data-end",e.end.toString()),i.append(n),t.append(i)},f=function(t,e){for(var i=b("<span>",{class:"able-transcript-seekpoint able-transcript-caption"}),o=function(t){var e=[],u=0,d=function(t){var e;u++;var i=[];if(""===t)return i;var s=t.indexOf("["),a=t.indexOf("]"),n=t.indexOf("("),r=t.indexOf(")"),o=-1!==s&&-1!==a,l=-1!==n&&-1!==r;if(l||o){if(1<u)var h="<br/>";else h="";var p=h+'<span class="able-unspoken">',c="</span>";l&&o&&(s<n?l=!1:o=!1)}return l?(e=t.substring(0,n),e+=p,e+=t.substring(n,r+1),e+=c,e+=d(t.substring(r+1)),i.push(e)):o?(e=t.substring(0,s),e+=p,e+=t.substring(s,a+1),e+=c,e+=d(t.substring(a+1)),i.push(e)):i.push(t),i};if("string"===t.type)e=e.concat(d(t.value));else if("v"===t.type){var i=b("<span>",{class:"able-unspoken"});i.text("("+t.value+")"),e.push(i);for(var s=0;s<t.children.length;s++)for(var a=o(t.children[s]),n=0;n<a.length;n++)e.push(a[n])}else if("b"===t.type||"i"===t.type){if("b"===t.type)var r=b("<strong>");else if("i"===t.type)r=b("<em>");for(s=0;s<t.children.length;s++)for(a=o(t.children[s]),n=0;n<a.length;n++)r.append(a[n]);"b"!==t.type&&"i"!=t.type||e.push(r," ")}else for(s=0;s<t.children.length;s++)e=e.concat(o(t.children[s]));return e},s=0;s<e.components.children.length;s++)for(var a=o(e.components.children[s]),n=0;n<a.length;n++){var r=a[n];"string"==typeof r&&(h.lyricsMode?r=r.replace("\n","<br>")+"<br>":r+=" "),i.append(r)}i.attr("data-start",e.start.toString()),i.attr("data-end",e.end.toString()),t.append(i),t.append(" \n")};l<t.length||u<i.length||c<e.length;){if(l<t.length&&u<i.length&&c<e.length)var m=Math.min(t[l].start,i[u].start,e[c].start);else if(l<t.length&&u<i.length)m=Math.min(t[l].start,i[u].start);else if(l<t.length&&c<e.length)m=Math.min(t[l].start,e[c].start);else if(u<i.length&&c<e.length)m=Math.min(i[u].start,e[c].start);else m=null;null!==m?void 0!==t[l]&&t[l].start===m?(d(a,t[l]),l+=1):void 0!==i[u]&&i[u].start===m?(g(a,i[u]),u+=1):(f(a,e[c]),c+=1):l<t.length?(d(a,t[l]),l+=1):u<i.length?(g(a,i[u]),u+=1):c<e.length&&(f(a,e[c]),c+=1)}var v=a.children(),y=0;return v.each(function(){b(this).hasClass("able-transcript-caption")?(-1===b(this).text().indexOf("[")&&-1===b(this).text().indexOf("(")||0<y&&(a.find(".able-block-temp").removeClass("able-block-temp").wrapAll('<div class="able-transcript-block"></div>'),y=0),b(this).addClass("able-block-temp"),y++):0<y&&(a.find(".able-block-temp").removeClass("able-block-temp").wrapAll('<div class="able-transcript-block"></div>'),y=0)}),a}}(jQuery),function(c){AblePlayer.prototype.showSearchResults=function(){var i=this;if(this.searchDiv&&this.searchString&&c("#"+this.SearchDiv)){var t=this.searchFor(this.searchString);if(0<t.length){var e=c("<p>",{class:"able-search-results-summary"}),s="Found <strong>"+t.length+"</strong> matching items. ";s+="Click the time associated with any item ",s+="to play the video from that point.",e.html(s);for(var a=c("<ul>"),n=0;n<t.length;n++){var r=c("<li>",{}),o=this.secondsToTime(t[n].start),l=c("<span>",{class:"able-search-results-time","data-start":t[n].start,title:o.title,tabindex:"0"});l.text(o.value),l.click(function(t){var e=parseFloat(c(this).attr("data-start"));e+=.01,i.seeking=!0,i.seekTo(e)});var h=c("<span>",{class:"able-search-result-text"});h.html("..."+t[n].caption+"..."),r.append(l,h),a.append(r)}c("#"+this.searchDiv).append(e,a)}else{var p=c("<p>").text("No results found.");c("#"+this.searchDiv).append(p)}}},AblePlayer.prototype.searchFor=function(t){var e,i,s,a,n,r,o;s=[];var l=t.split(" ");if(0<this.captions.length){for(r=0;r<this.captions.length;r++)this.captions[r].language===this.searchLang&&(e=this.searchLang,i=this.captions[r].cues);if(0<i.length)for(r=n=0;r<i.length;r++)if(-1!==c.inArray(i[r].components.children[0].type,["string","i","b","u","v","c"]))for(a=this.flattenCueForCaption(i[r]),o=0;o<l.length;o++)if(-1!==a.indexOf(l[o])){s[n]=[],s[n].start=i[r].start,s[n].lang=e,s[n].caption=this.highlightSearchTerm(l,o,a),n++;break}}return s},AblePlayer.prototype.highlightSearchTerm=function(t,e,i){var s,a,n,r;for(s=e;s<t.length;s++)a=t[s],-1!==(n=i.indexOf(a))&&(i=0<(r=a.length)?i.substring(0,n)+('<span class="able-search-term">'+a+"</span>")+i.substring(n+r):'<span class="able-search-term">'+a+"</span>"+i.substring(n+r));return i},AblePlayer.prototype.secondsToTime=function(t){t=Math.floor(t);var e=parseInt(t/3600,10)%24,i=parseInt(t/60,10)%60,s=t%60,a="",n="";0<e&&(a+=e+":"),i<10?(a+="0"+i+":",0<i&&(n+=i+" minutes ")):(a+=i+":",n+=i+" minutes "),s<10?(a+="0"+s,0<s&&(n+=s+" seconds ")):(a+=s,n+=s+" seconds ");var r=[];return r.value=a,r.title=n,r}}(jQuery),function(s){AblePlayer.prototype.onMediaUpdateTime=function(e,i){var s=this;this.getMediaTimes(e,i).then(function(t){void 0===e&&(s.duration=t.duration),void 0===i&&(s.elapsed=t.elapsed),s.swappingSrc&&void 0!==s.swapTime?s.swapTime===s.elapsed&&s.playing&&(s.playMedia(),s.swappingSrc=!1,s.swapTime=null):s.startedPlaying&&(1===s.prefHighlight&&s.highlightTranscript(s.elapsed),s.updateCaption(s.elapsed),s.showDescription(s.elapsed),s.updateChapter(s.elapsed),s.updateMeta(s.elapsed),s.refreshControls("timeline",s.duration,s.elapsed))})},AblePlayer.prototype.onMediaPause=function(){this.controlsHidden&&(this.fadeControls("in"),this.controlsHidden=!1),"active"===this.hideControlsTimeoutStatus&&(window.clearTimeout(this.hideControlsTimeout),this.hideControlsTimeoutStatus="clear"),this.refreshControls("playpause")},AblePlayer.prototype.onMediaComplete=function(){this.hasPlaylist&&!this.cueingPlaylistItem&&(this.playlistIndex===this.$playlist.length-1?this.loop&&(this.playlistIndex=0,this.cueingPlaylistItem=!0,this.cuePlaylistItem(0)):(this.playlistIndex++,this.cueingPlaylistItem=!0,this.cuePlaylistItem(this.playlistIndex))),this.refreshControls("init")},AblePlayer.prototype.onMediaNewSourceLoad=function(){this.cueingPlaylistItem&&(this.cueingPlaylistItem=!1),!0===this.swappingSrc&&(0<this.swapTime?this.seekTo(this.swapTime):(this.playing&&this.playMedia(),this.swappingSrc=!1,this.refreshControls("init")))},AblePlayer.prototype.onWindowResize=function(){var t,e;this.fullscreen?(t=s(window).width(),e=this.isUserAgent("Firefox")||this.isUserAgent("Trident")||this.isUserAgent("Edge")?window.innerHeight-this.$playerDiv.outerHeight()-20:window.outerHeight>=window.innerHeight?window.innerHeight-this.$playerDiv.outerHeight():window.outerHeight,this.$descDiv.is(":hidden")||(e-=this.$descDiv.height()),this.positionCaptions("overlay")):this.restoringAfterFullScreen?(t=this.preFullScreenWidth,e=this.preFullScreenHeight):(t=this.$ableWrapper.width(),e=void 0!==this.aspectRatio?Math.round(t/this.aspectRatio):this.$ableWrapper.height(),this.positionCaptions());this.resizePlayer(t,e)},AblePlayer.prototype.addSeekbarListeners=function(){var i=this;this.seekBar.bodyDiv.on("startTracking",function(t){i.pausedBeforeTracking=i.paused,i.pauseMedia()}).on("tracking",function(t,e){i.highlightTranscript(e),i.updateCaption(e),i.showDescription(e),i.updateChapter(i.convertChapterTimeToVideoTime(e)),i.updateMeta(e),i.refreshControls("init")}).on("stopTracking",function(t,e){i.useChapterTimes?i.seekTo(i.convertChapterTimeToVideoTime(e)):i.seekTo(e),i.pausedBeforeTracking||setTimeout(function(){i.playMedia()},200)})},AblePlayer.prototype.onClickPlayerButton=function(t){var e=s(t).attr("class").split(" ")[0].substr(20);"play"===e?this.handlePlay():"restart"===e?(this.seekTrigger="restart",this.handleRestart()):"rewind"===e?(this.seekTrigger="rewind",this.handleRewind()):"forward"===e?(this.seekTrigger="forward",this.handleFastForward()):"mute"===e?this.handleMute():"volume"===e?this.handleVolume():"faster"===e?this.handleRateIncrease():"slower"===e?this.handleRateDecrease():"captions"===e?this.handleCaptionToggle():"chapters"===e?this.handleChapters():"descriptions"===e?this.handleDescriptionToggle():"sign"===e?this.handleSignToggle():"preferences"===e?this.handlePrefsClick():"help"===e?this.handleHelpClick():"transcript"===e?this.handleTranscriptToggle():"fullscreen"===e&&(this.clickedFullscreenButton=!0,this.handleFullscreenToggle())},AblePlayer.prototype.okToHandleKeyPress=function(){var t=AblePlayer.getActiveDOMElement();return"INPUT"!==s(t).prop("tagName")},AblePlayer.prototype.onPlayerKeyPress=function(t){if(!this.okToHandleKeyPress())return!1;var e=t.which;if(65<=e&&e<=90&&(e+=32),!(s(":focus").is("[contenteditable]")||s(":focus").is("input")||s(":focus").is("textarea")||s(":focus").is("select")||t.target.hasAttribute("contenteditable")||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName))if(27===e)this.closePopups();else if(32===e)0===this.$ableWrapper.find(".able-controller button:focus").length&&this.handlePlay();else if(112===e)this.usingModifierKeys(t)&&this.handlePlay();else if(115===e)this.usingModifierKeys(t)&&this.handleRestart();else if(109===e)this.usingModifierKeys(t)&&this.handleMute();else if(118===e)this.usingModifierKeys(t)&&this.handleVolume();else if(49<=e&&e<=57)this.usingModifierKeys(t)&&this.handleVolume(e);else if(99===e)this.usingModifierKeys(t)&&this.handleCaptionToggle();else if(100===e)this.usingModifierKeys(t)&&this.handleDescriptionToggle();else if(102===e)this.usingModifierKeys(t)&&this.handleFastForward();else if(114===e)this.usingModifierKeys(t)&&this.handleRewind();else if(101===e)this.usingModifierKeys(t)&&this.handlePrefsClick();else if(13===e){var i=s(document.activeElement);"SPAN"===i.prop("tagName")?i.click():"LI"===i.prop("tagName")&&i.click()}},AblePlayer.prototype.addHtml5MediaListeners=function(){var e=this;this.$media.on("emptied",function(){}).on("loadedmetadata",function(){e.onMediaNewSourceLoad()}).on("canplay",function(){}).on("canplaythrough",function(){e.userClickedPlaylist&&(e.startedPlaying||e.playMedia(),e.userClickedPlaylist=!1),"restart"==e.seekTrigger||"chapter"==e.seekTrigger||"transcript"==e.seekTrigger?e.playMedia():e.startedPlaying?e.hasPlaylist?(e.playlistIndex!==e.$playlist.length||e.loop)&&e.playMedia():e.getPlayerState().then(function(t){e.swappingSrc&&"stopped"===t&&(e.startedPlaying=!1,0<e.swapTime?e.seekTo(e.swapTime):e.playMedia())}):0<e.startTime?e.seeking?(e.seeking=!1,(e.autoplay||e.okToPlay)&&e.playMedia()):e.seekTo(e.startTime):e.defaultChapter&&void 0!==e.selectedChapters?e.seekToChapter(e.defaultChapter):(e.autoplay||e.okToPlay)&&e.playMedia()}).on("play",function(){e.refreshControls("playpause")}).on("playing",function(){e.playing=!0,e.paused=!1,e.refreshControls("playpause")}).on("ended",function(){e.playing=!1,e.paused=!0,e.onMediaComplete()}).on("progress",function(){e.refreshControls("timeline")}).on("waiting",function(){}).on("durationchange",function(){e.refreshControls("timeline")}).on("timeupdate",function(){e.onMediaUpdateTime()}).on("pause",function(){e.clickedPlay?(e.playing=!1,e.paused=!0):e.hasPlaylist||e.swappingSrc||(e.playing=!1,e.paused=!0),e.clickedPlay=!1,e.onMediaPause()}).on("ratechange",function(){}).on("volumechange",function(){e.volume=e.getVolume(),e.debug}).on("error",function(){e.debug&&e.media.error.code})},AblePlayer.prototype.addVimeoListeners=function(){var e=this;this.vimeoPlayer.on("loaded",function(t){e.onMediaNewSourceLoad()}),this.vimeoPlayer.on("play",function(t){e.playing=!0,e.startedPlaying=!0,e.paused=!1,e.refreshControls("playpause")}),this.vimeoPlayer.on("ended",function(t){e.playing=!1,e.paused=!0,e.onMediaComplete()}),this.vimeoPlayer.on("bufferstart",function(){}),this.vimeoPlayer.on("bufferend",function(){}),this.vimeoPlayer.on("progress",function(t){}),this.vimeoPlayer.on("seeking",function(t){}),this.vimeoPlayer.on("seeked",function(t){}),this.vimeoPlayer.on("timeupdate",function(t){e.onMediaUpdateTime(t.duration,t.seconds)}),this.vimeoPlayer.on("pause",function(t){e.clickedPlay?(e.playing=!1,e.paused=!0):e.hasPlaylist||e.swappingSrc||(e.playing=!1,e.paused=!0),e.clickedPlay=!1,e.onMediaPause(),e.refreshControls("playpause")}),this.vimeoPlayer.on("playbackratechange",function(t){e.vimeoPlaybackRate=t.playbackRate}),this.vimeoPlayer.on("texttrackchange",function(t){}),this.vimeoPlayer.on("volumechange",function(t){e.volume=10*t.volume}),this.vimeoPlayer.on("error",function(t){})},AblePlayer.prototype.addEventListeners=function(){var e;if(e=this,s(window).resize(function(){e.onWindowResize()}),window.MutationObserver){var t=this.$ableDiv[0];new MutationObserver(function(t){t.forEach(function(t){"attributes"===t.type&&"style"===t.attributeName&&e.$ableDiv.is(":visible")&&e.refreshControls("init")})}).observe(t,{attributes:!0,childList:!0,characterData:!0})}void 0!==this.seekBar?this.addSeekbarListeners():setTimeout(function(){void 0!==e.seekBar&&e.addSeekbarListeners()},2e3),this.$controllerDiv.find("button").on("click",function(t){t.stopPropagation(),e.onClickPlayerButton(this)}),s(document).on("click",function(t){if(0!==t.button)return!1;(s(".able-popup:visible").length||s(".able-volume-popup:visible"))&&e.closePopups()}),this.$ableDiv.on("mousemove",function(){e.controlsHidden?(e.fadeControls("in"),e.controlsHidden=!1,"active"===e.hideControlsTimeoutStatus&&(window.clearTimeout(e.hideControlsTimeout),e.hideControlsTimeoutStatus="clear"),e.hideControls&&e.invokeHideControlsTimeout()):"active"===e.hideControlsTimeoutStatus&&(window.clearTimeout(e.hideControlsTimeout),e.hideControlsTimeoutStatus="clear",e.hideControls&&e.invokeHideControlsTimeout())}),s(document).keydown(function(){e.controlsHidden?(e.fadeControls("in"),e.controlsHidden=!1,"active"===e.hideControlsTimeoutStatus&&(window.clearTimeout(e.hideControlsTimeout),e.hideControlsTimeoutStatus="clear"),e.hideControls&&e.invokeHideControlsTimeout()):"active"===e.hideControlsTimeoutStatus&&(window.clearTimeout(e.hideControlsTimeout),e.hideControlsTimeoutStatus="clear",e.hideControls&&e.invokeHideControlsTimeout())}),this.$ableDiv.keydown(function(t){1<AblePlayer.nextIndex&&e.onPlayerKeyPress(t)}),this.$transcriptArea&&this.$transcriptArea.keydown(function(t){1<AblePlayer.nextIndex&&e.onPlayerKeyPress(t)}),this.$playlist&&this.$playlist.click(function(t){e.userClickedPlaylist||(e.userClickedPlaylist=!0,e.playlistIndex=s(this).index(),e.cuePlaylistItem(e.playlistIndex))}),this.$media.click(function(){e.handlePlay()}),"html5"===this.player?this.addHtml5MediaListeners():"vimeo"===this.player?this.addVimeoListeners():"youtube"===this.player&&setInterval(function(){e.onMediaUpdateTime()},300)}}(jQuery),function(A){AblePlayer.prototype.initDragDrop=function(e){var i,s,t,a,n,r;i=this,"transcript"===e?(s=this.$transcriptArea,a="transcript-window",t=this.$transcriptToolbar):"sign"===e&&(s=this.$signWindow,a="sign-window",t=this.$signToolbar),t.addClass("able-draggable"),n=A("<div>",{class:"able-resizable"}),r=parseInt(s.css("z-index"))+100,n.css("z-index",r),s.append(n),t.on("mousedown",function(t){return t.stopPropagation(),i.windowMenuClickRegistered||(i.windowMenuClickRegistered=!0,i.startMouseX=t.pageX,i.startMouseY=t.pageY,i.dragDevice="mouse",i.startDrag(e,s)),!1}),t.on("mouseup",function(t){return t.stopPropagation(),i.dragging&&"mouse"===i.dragDevice&&i.endDrag(e),!1}),n.on("mousedown",function(t){if(t.stopPropagation(),!i.windowMenuClickRegistered)return i.windowMenuClickRegistered=!0,i.startMouseX=t.pageX,i.startMouseY=t.pageY,i.startResize(e,s),!1}),n.on("mouseup",function(t){return t.stopPropagation(),i.resizing&&i.endResize(e),!1}),s.on("click",function(){i.windowMenuClickRegistered||i.finishingDrag||i.updateZIndex(e),i.finishingDrag=!1}),this.addWindowMenu(e,s,a)},AblePlayer.prototype.addWindowMenu=function(e,t,i){var r,s,o,a,n,l,h,p,c,u,d;(r=this).windowMenuClickRegistered=!1,this.finishingDrag=!1,(s=A('<div role="alert"></div>')).addClass("able-alert"),s.hide(),s.appendTo(this.$activeWindow),s.css({top:t.offset().top}),d=this.mediaId+"-"+i+"-menu",o=A("<button>",{type:"button",tabindex:"0","aria-label":this.tt.windowButtonLabel,"aria-haspopup":"true","aria-controls":d,class:"able-button-handler-preferences"}),"font"===this.iconType?(a=A("<span>",{class:"icon-preferences","aria-hidden":"true"}),o.append(a)):(n=this.rootPath+"button-icons/"+this.toolbarIconColor+"/preferences.png",l=A("<img>",{src:n,alt:"",role:"presentation"}),o.append(l)),h=A("<span>",{class:"able-clipped"}).text(this.tt.windowButtonLabel),o.append(h),p=this.mediaId+"-"+i+"-tooltip",c=A("<div>",{class:"able-tooltip",id:p}).hide(),o.on("mouseenter focus",function(t){var e=A(this).attr("aria-label"),i=A(this).position(),s=A(this).height(),a=(A(this).width(),{left:"",right:"0px",top:i.top-s-5+"px"}),n=AblePlayer.localGetElementById(o[0],p).text(e).css(a);r.showTooltip(n),A(this).on("mouseleave blur",function(){AblePlayer.localGetElementById(o[0],p).text("").hide()})}),u=this.setupPopups(i),"transcript"===e?(this.$transcriptAlert=s,this.$transcriptPopupButton=o,this.$transcriptPopup=u,this.$transcriptToolbar.append(s,o,c,u)):"sign"===e&&(this.$signAlert=s,this.$signPopupButton=o,this.$signPopup=u,this.$signToolbar.append(s,o,c,u)),o.on("click mousedown keydown",function(t){t.stopPropagation(),r.windowMenuClickRegistered||r.finishingDrag||r.handleWindowButtonClick(e,t),r.finishingDrag=!1}),this.addResizeDialog(e,t)},AblePlayer.prototype.addResizeDialog=function(t,e){var i,s,a,n,r,o,l,h,p,c,u,d,g,f,m,v,y,b,w,P,C,T,k;i=this,"transcript"===t?(s=this.$transcriptPopup,a=this.$transcriptPopupButton):"sign"===t&&(s=this.$signPopup,a=this.$signPopupButton),n=this.mediaId+"-resize-"+t+"-width",r=this.mediaId+"-resize-"+t+"-height",o=e.width(),l=e.height(),h=o/l,p=A("<div></div>",{class:"able-resize-form"}),c=A("<div></div>"),u=A("<div></div>"),d=A("<input>",{type:"text",id:n,value:o}),g=A("<label>",{for:n}).text(this.tt.width),f=A("<div></div>"),m=A("<input>",{type:"text",id:r,value:l}),v=A("<label>",{for:r}).text(this.tt.height),"sign"===t&&(m.prop("readonly",!0),d.on("input",function(){y=A(this).val(),b=Math.round(y/h,0),m.val(b)})),w=A('<button class="modal-button">'+this.tt.save+"</button>"),P=A('<button class="modal-button">'+this.tt.cancel+"</button>"),w.on("click",function(){C=A("#"+n).val(),T=A("#"+r).val(),C===o&&T===l||(i.resizeObject(t,C,T),i.updateCookie(t)),k.hide(),s.hide(),a.focus()}),P.on("click",function(){k.hide(),s.hide(),a.focus()}),u.append(g,d),f.append(v,m),c.append(u,f),p.append(c,"<hr>",w,P),A("body").append(p),k=new AccessibleDialog(p,a,"alert",this.tt.windowResizeHeading,c,this.tt.closeButtonLabel,"20em"),"transcript"===t?this.transcriptResizeDialog=k:"sign"===t&&(this.signResizeDialog=k)},AblePlayer.prototype.handleWindowButtonClick=function(t,e){var i,s,a,n;if(i=this,"transcript"===t?(s=this.$transcriptPopup,a=this.$transcriptPopupButton,this.$transcriptToolbar):"sign"===t&&(s=this.$signPopup,a=this.$signPopupButton,this.$signToolbar),"keydown"===e.type)if(32===e.which||13===e.which)this.windowMenuClickRegistered=!0;else{if(27!==e.which)return!1;s.hide("fast",function(){i.windowMenuClickRegistered=!1,s.find("li").removeClass("able-focus").attr("tabindex","-1"),a.focus()})}else this.windowMenuClickRegistered=!0;s.is(":visible")?(s.hide(200,"",function(){i.windowMenuClickRegistered=!1}),s.find("li").removeClass("able-focus"),a.attr("aria-expanded","false").focus()):(this.updateZIndex(t),n=a.position().top+a.outerHeight(),s.css("top",n),s.show(200,"",function(){a.attr("aria-expanded","true"),A(this).find("li").first().focus().addClass("able-focus"),i.windowMenuClickRegistered=!1}))},AblePlayer.prototype.handleMenuChoice=function(t,e,i){var s,a,n,r,o;if(s=this,"transcript"===t?(a=this.$transcriptArea,n=this.$transcriptPopup,r=this.$transcriptPopupButton,o=this.transcriptResizeDialog):"sign"===t&&(a=this.$signWindow,n=this.$signPopup,r=this.$signPopupButton,o=this.signResizeDialog),"keydown"===i.type)return 27===i.which&&n.hide("fast",function(){s.windowMenuClickRegistered=!1,n.find("li").removeClass("able-focus").attr("tabindex","-1"),r.focus()}),!1;n.hide("fast",function(){s.windowMenuClickRegistered=!1,n.find("li").removeClass("able-focus").attr("tabindex","-1")}),"close"!==e&&r.focus(),"move"===e?(this.showedAlert(t)||(this.showAlert(this.tt.windowMoveAlert,t),"transcript"===t?this.showedTranscriptAlert=!0:"sign"===t&&(this.showedSignAlert=!0)),"keydown"===i.type?this.dragDevice="keyboard":this.dragDevice="mouse",this.startDrag(t,a),n.hide().parent().focus()):"resize"==e?o.show():"close"==e&&("transcript"===t?this.handleTranscriptToggle():"sign"===t&&this.handleSignToggle())},AblePlayer.prototype.startDrag=function(e,t){var i,s,a,n,r;return(i=this).$activeWindow=t,this.dragging=!0,"transcript"===e?s=this.$transcriptPopup:"sign"===e&&(s=this.$signPopup),this.showedAlert(e)||(this.showAlert(this.tt.windowMoveAlert,e),"transcript"===e?this.showedTranscriptAlert=!0:"sign"===e&&(this.showedSignAlert=!0)),s.is(":visible")&&s.hide(),this.updateZIndex(e),a=this.$activeWindow.position(),this.dragStartX=a.left,this.dragStartY=a.top,void 0===this.startMouseX?(this.dragDevice="keyboard",this.dragKeyX=this.dragStartX,this.dragKeyY=this.dragStartY,this.startingDrag=!0):(this.dragDevice="mouse",this.dragOffsetX=this.startMouseX-this.dragStartX,this.dragOffsetY=this.startMouseY-this.dragStartY),this.$activeWindow.addClass("able-drag").css({position:"absolute",top:this.dragStartY+"px",left:this.dragStartX+"px"}).focus(),"mouse"===this.dragDevice?A(document).on("mousemove",function(t){i.dragging&&(n=t.pageX-i.dragOffsetX,r=t.pageY-i.dragOffsetY,i.resetDraggedObject(n,r))}):"keyboard"===this.dragDevice&&this.$activeWindow.on("keydown",function(t){i.dragging&&i.dragKeys(e,t)}),!1},AblePlayer.prototype.dragKeys=function(t,e){if(this.startingDrag)return this.startingDrag=!1;switch(10,e.which){case 37:case 63234:this.dragKeyX-=10;break;case 38:case 63232:this.dragKeyY-=10;break;case 39:case 63235:this.dragKeyX+=10;break;case 40:case 63233:this.dragKeyY+=10;break;case 13:case 27:return this.endDrag(t),!1;default:return!1}return this.resetDraggedObject(this.dragKeyX,this.dragKeyY),e.preventDefault&&e.preventDefault(),!1},AblePlayer.prototype.resetDraggedObject=function(t,e){this.$activeWindow.css({left:t+"px",top:e+"px"})},AblePlayer.prototype.resizeObject=function(t,e,i){var s;this.$activeWindow.css({width:e+"px",height:i+"px"}),"transcript"===t&&(s=i-50,this.$transcriptDiv.css("height",s+"px"))},AblePlayer.prototype.endDrag=function(t){var e;"transcript"===t?(this.$transcriptPopup,e=this.$transcriptPopupButton):"sign"===t&&(this.$signPopup,e=this.$signPopupButton),A(document).off("mousemove mouseup"),this.$activeWindow.off("keydown").removeClass("able-drag"),"keyboard"===this.dragDevice&&e.focus(),this.dragging=!1,this.updateCookie(t),this.startMouseX=void 0,this.startMouseY=void 0,this.windowMenuClickRegistered=!1,this.finishingDrag=!0,setTimeout(function(){this.finishingDrag=!1},100)},AblePlayer.prototype.isCloseToCorner=function(t,e,i){var s,a,n,r,o,l;return 10,a=(s=t.offset()).top,n=s.left,r=t.width(),o=a+t.height(),l=n+r,Math.abs(o-i)<=10&&Math.abs(l-e)<=10},AblePlayer.prototype.startResize=function(e,t){var i,s,a,n;return(i=this).$activeWindow=t,this.resizing=!0,"transcript"===e?s=this.$transcriptPopup:"sign"===e&&(s=this.$signPopup),s.is(":visible")&&s.hide().parent().focus(),this.$activeWindow.position(),this.dragKeyX=this.dragStartX,this.dragKeyY=this.dragStartY,this.dragStartWidth=this.$activeWindow.width(),this.dragStartHeight=this.$activeWindow.height(),A(document).on("mousemove",function(t){i.resizing&&(a=i.dragStartWidth+(t.pageX-i.startMouseX),n=i.dragStartHeight+(t.pageY-i.startMouseY),i.resizeObject(e,a,n))}),!1},AblePlayer.prototype.endResize=function(t){var e;"transcript"===t?(this.$transcriptPopup,e=this.$transcriptPopupButton):"sign"===t&&(this.$signPopup,e=this.$signPopupButton),A(document).off("mousemove mouseup"),this.$activeWindow.off("keydown"),e.show().focus(),this.resizing=!1,this.$activeWindow.removeClass("able-resize"),this.updateCookie(t),this.windowMenuClickRegistered=!1,this.finishingDrag=!0,setTimeout(function(){this.finishingDrag=!1},100)}}(jQuery),function(n){AblePlayer.prototype.initSignLanguage=function(){"html5"===this.player?(this.signFile=this.$sources.first().attr("data-sign-src"),this.signFile?(this.debug,this.hasSignLanguage=!0,this.injectSignPlayerCode()):this.hasSignLanguage=!1):this.hasSignLanguage=!1},AblePlayer.prototype.injectSignPlayerCode=function(){var t,e,i,s,a;for(this.getDefaultWidth("sign"),t=this.mediaId+"-sign",this.$signVideo=n("<video>",{id:t,tabindex:"-1"}),this.signVideo=this.$signVideo[0],e=0;e<this.$sources.length;e++){if(i=this.$sources[e].getAttribute("data-sign-src"),s=this.$sources[e].getAttribute("type"),!i){this.hasSignLanguage=!1;break}a=n("<source>",{src:i,type:s}),this.$signVideo.append(a)}this.$signWindow=n("<div>",{class:"able-sign-window",tabindex:"-1"}),this.$signToolbar=n("<div>",{class:"able-window-toolbar able-"+this.toolbarIconColor+"-controls"}),this.$signWindow.append(this.$signToolbar,this.$signVideo),this.$ableWrapper.append(this.$signWindow),this.initDragDrop("sign"),1===this.prefSign?this.positionDraggableWindow("sign",this.getDefaultWidth("sign")):this.$signWindow.hide()}}(jQuery),function(t){var i={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ, магӀарул мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa",nativeName:"chiCheŵa, chinyanja"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén), 汉语, 漢語"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky, čeština"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"français, langue française"},ff:{name:"Fula",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी, हिंदी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq, Iñupiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी, كشميري‎"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kyrgyz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語), 조선말 (朝鮮語)"},ku:{name:"Kurdish",nativeName:"Kurdî, كوردی‎"},kj:{name:"Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, بهاس ملايو‎"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad, Dinékʼehǰí"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Punjabi",nativeName:"ਪੰਜਾਬੀ, پنجابی‎"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский язык"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी, سنڌي، سندھی‎"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhalese",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish",nativeName:"español, castellano"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ, toğikī, تاجیکی‎"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen, Түркмен"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча, tatarça, تاتارچا‎"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"Uyƣurqə, ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek, Ўзбек, أۇزبېك‎"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ, Saw cuengh"},"ar-dz":{name:"Arabic (Algeria)",nativeName:"العربية (الجزائر)"},"ar-bh":{name:"Arabic (Bahrain)",nativeName:"العربية (البحرين)"},"ar-eg":{name:"Arabic (Egypt)",nativeName:"العربية (مصر)"},"ar-iq":{name:"Arabic (Iraq)",nativeName:"العربية (العراق)"},"ar-jo":{name:"Arabic (Jordan)",nativeName:"العربية (الأردن)"},"ar-kw":{name:"Arabic (Kuwait)",nativeName:"العربية (الكويت)"},"ar-lb":{name:"Arabic (Lebanon)",nativeName:"العربية (لبنان)"},"ar-ly":{name:"Arabic (Libya)",nativeName:"العربية (ليبيا)"},"ar-ma":{name:"Arabic (Morocco)",nativeName:"العربية (المملكة المغربية)"},"ar-om":{name:"Arabic (Oman)",nativeName:"العربية (عمان)"},"ar-qa":{name:"Arabic (Qatar)",nativeName:"العربية (قطر)"},"ar-sa":{name:"Arabic (Saudi Arabia)",nativeName:"العربية (المملكة العربية السعودية)"},"ar-sy":{name:"Arabic (Syria)",nativeName:"العربية (سوريا)"},"ar-tn":{name:"Arabic (Tunisia)",nativeName:"العربية (تونس)"},"ar-ae":{name:"Arabic (U.A.E.)",nativeName:"العربية (الإمارات العربية المتحدة)"},"ar-ye":{name:"Arabic (Yemen)",nativeName:"العربية (اليمن)"},"de-at":{name:"German (Austria)",nativeName:"Deutsch (Österreich)"},"de-li":{name:"German (Liechtenstein)",nativeName:"Deutsch (Liechtenstein)"},"de-lu":{name:"German (Luxembourg)",nativeName:"Deutsch (Luxemburg)"},"de-ch":{name:"German (Switzerland)",nativeName:"Deutsch (Schweiz)"},"en-au":{name:"English (Australia)",nativeName:"English (Australia)"},"en-bz":{name:"English (Belize)",nativeName:"English (Belize)"},"en-ca":{name:"English (Canada)",nativeName:"English (Canada)"},"en-ie":{name:"English (Ireland)",nativeName:"English (Ireland)"},"en-jm":{name:"English (Jamaica)",nativeName:"English (Jamaica)"},"en-nz":{name:"English (New Zealand)",nativeName:""},"en-za":{name:"English (South Africa)",nativeName:"English (South Africa)"},"en-tt":{name:"English (Trinidad)",nativeName:"English (Trinidad y Tobago)"},"en-gb":{name:"English (United Kingdom)",nativeName:"English (United Kingdom)"},"en-us":{name:"English (United States)",nativeName:"English (United States)"},"es-ar":{name:"Spanish (Argentina)",nativeName:"Español (Argentina)"},"es-bo":{name:"Spanish (Bolivia)",nativeName:"Español (Bolivia)"},"es-cl":{name:"Spanish (Chile)",nativeName:"Español (Chile)"},"es-co":{name:"Spanish (Colombia)",nativeName:"Español (Colombia)"},"es-cr":{name:"Spanish (Costa Rica)",nativeName:"Español (Costa Rica)"},"es-do":{name:"Spanish (Dominican Republic)",nativeName:"Español (República Dominicana)"},"es-ec":{name:"Spanish (Ecuador)",nativeName:"Español (Ecuador)"},"es-sv":{name:"Spanish (El Salvador)",nativeName:"Español (El Salvador)"},"es-gt":{name:"Spanish (Guatemala)",nativeName:"Español (Guatemala)"},"es-hn":{name:"Spanish (Honduras)",nativeName:"Español (Honduras)"},"es-mx":{name:"Spanish (Mexico)",nativeName:"Español (México)"},"es-ni":{name:"Spanish (Nicaragua)",nativeName:"Español (Nicaragua)"},"es-pa":{name:"Spanish (Panama)",nativeName:"Español (Panamá)"},"es-py":{name:"Spanish (Paraguay)",nativeName:"Español (Paraguay)"},"es-pe":{name:"Spanish (Peru)",nativeName:"Español (Perú)"},"es-pr":{name:"Spanish (Puerto Rico)",nativeName:"Español (Puerto Rico)"},"es-uy":{name:"Spanish (Uruguay)",nativeName:"Español (Uruguay)"},"es-ve":{name:"Spanish (Venezuela)",nativeName:"Español (Venezuela)"},"fr-be":{name:"French (Belgium)",nativeName:"français (Belgique)"},"fr-ca":{name:"French (Canada)",nativeName:"français (Canada)"},"fr-lu":{name:"French (Luxembourg)",nativeName:"français (Luxembourg)"},"fr-ch":{name:"French (Switzerland)",nativeName:"français (Suisse)"},"it-ch":{name:"Italian (Switzerland)",nativeName:"italiano (Svizzera)"},"nl-be":{name:"Dutch (Belgium)",nativeName:"Nederlands (België)"},"pt-br":{name:"Portuguese (Brazil)",nativeName:"Português (Brasil)"},"sv-fi":{name:"Swedish (Finland)",nativeName:"svenska (Finland)"},"zh-hk":{name:"Chinese (Hong Kong)",nativeName:"中文(香港特别行政區)"},"zh-cn":{name:"Chinese (PRC)",nativeName:"中文(中华人民共和国)"},"zh-sg":{name:"Chinese (Singapore)",nativeName:"中文(新加坡)"},"zh-tw":{name:"Chinese Traditional (Taiwan)",nativeName:"中文(台灣)"}};AblePlayer.prototype.getLanguageName=function(t){var e=i[t];return e?e.name:void 0},AblePlayer.prototype.getLanguageNativeName=function(t){var e=i[t];return e?e.nativeName:void 0}}(jQuery),function($){AblePlayer.prototype.getSupportedLangs=function(){return["ca","de","en","es","fr","he","it","ja","nb","nl","pt-br","tr","zh-tw"]},AblePlayer.prototype.getTranslationText=function(){var deferred,thisObj,lang,thisObj,msg,translationFile,collapsedLang;return deferred=$.Deferred(),thisObj=this,lang=$("body").attr("lang")?$("body").attr("lang"):$("html").attr("lang")?$("html").attr("lang"):null,this.forceLang||lang&&lang!==this.lang&&(-1!==$.inArray(lang,this.getSupportedLangs())?this.lang=lang:(msg=lang+" is not currently supported. Using default language ("+this.lang+")",this.debug)),this.searchLang||(this.searchLang=this.lang),translationFile=this.rootPath+"translations/"+this.lang+".js",this.importTranslationFile(translationFile).then(function(result){collapsedLang=thisObj.lang.replace("-",""),thisObj.tt=eval(collapsedLang),deferred.resolve()}),deferred.promise()},AblePlayer.prototype.importTranslationFile=function(t){var s=$.Deferred();return $.getScript(t).done(function(t,e){s.resolve(t)}).fail(function(t,e,i){s.fail()}),s.promise()}}(jQuery),jQuery,AblePlayer.prototype.computeEndTime=function(t,e){var i=t.split(":").reverse().map(function(t){return parseFloat(t)}),a=e.split(":").reverse().map(function(t){return parseFloat(t)});return i.reduce(function(t,e,i){var s=e+a[i];return 0===i&&(60<s&&(a[i+1]+=1,s-=60),s=s.toFixed(3)),1===i&&60<s&&(a[i+1]+=1,s-=60),s<10&&(s="0"+s),t.push(s),t},[]).reverse().join(":")},AblePlayer.prototype.ttml2webvtt=function(t){var r=this,e=r.convert.xml2json(t,{ignoreComment:!0,alwaysChildren:!0,compact:!0,spaces:2});return JSON.parse(e).tt.body.div.p.reduce(function(t,e,i){var s=e._text,a=Array.isArray(s),n=e._attributes;return r.computeEndTime(n.begin,n.dur),t+(r.computeEndTime(n.begin,"00:00:0")+" --\x3e ")+r.computeEndTime(n.begin,n.dur)+"\n"+(a?s.join("\n"):s)+"\n\n"},"WEBVTT\n\n\n")},function(a){a.doWhen=function(s){return a.Deferred(function(t){var e=a.extend({},{when:null,exec:function(){},interval:100,attempts:100,delayed:0},s,{checkId:null}),i=function(){if(!0===e.when())return e.exec.call(t.promise()),void t.resolve();e.checkId=setInterval(function(){0===e.attempts?(clearInterval(e.checkId),t.reject()):(--e.attempts,!0===e.when()&&(e.attempts=0,clearInterval(e.checkId),e.exec.call(t.promise()),t.resolve()))},e.interval)};0<e.delayed?setTimeout(i,Number(e.delayed)):i()}).promise()}}(jQuery),function(C){AblePlayer.prototype.injectVTS=function(){var e,t,i,s,a,n,r,o,l,h,p,c,u,d,g,f,m;if(e=this,C("#able-vts").length&&this.vtsTracks.length){for(P in this.langs=[],this.getAllLangs(this.vtsTracks),this.vtsLang=this.lang,t=C("<h2>").text("Video Transcript Sorter"),C("#able-vts").append(t),this.$vtsAlert=C("<div>",{id:"able-vts-alert","aria-live":"polite","aria-atomic":"true"}),C("#able-vts").append(this.$vtsAlert),i=C("<div>",{id:"able-vts-instructions"}),s=C("<p>").text("Use the Video Transcript Sorter to perform any of the following tasks:"),n=C("<ul>"),r=C("<li>").text("Reorder chapters, descriptions, captions, and/or subtitles so they appear in the proper sequence in Able Player's auto-generated transcript."),o=C("<li>").text("Modify content or start/end times (all are directly editable within the table)."),l=C("<li>").text("Insert new content, such as chapters or descriptions."),a=C("<p>").text('When finished editing, click the "Save Changes" button. This will auto-generate new content for all relevant timed text files (chapters, descriptions, captions, and/or subtitles), which can be copied and pasted into separate WebVTT files for use by Able Player.'),n.append(r,o,l),i.append(s,n,a),C("#able-vts").append(i),h=C("<fieldset>"),p=C("<legend>").text("Select a language"),h.append(p),this.langs)u="vts-lang-radio-"+this.langs[P],c=C("<div>",{}),g=C("<input>",{type:"radio",name:"vts-lang",id:u,value:this.langs[P]}).on("click",function(){e.vtsLang=C(this).val(),e.showVtsAlert("Loading "+e.getLanguageName(e.vtsLang)+" tracks"),e.injectVtsTable("update",e.vtsLang)}),this.langs[P]==this.lang&&g.prop("checked",!0),d=C("<label>",{for:u}).text(this.getLanguageName(this.langs[P])),c.append(g,d),h.append(c);var v,y,b,w,P;C("#able-vts").append(h),f=C("<button>",{type:"button",id:"able-vts-save",value:"save"}).text("Save Changes"),C("#able-vts").append(f),this.injectVtsTable("add",this.vtsLang),v=["captions","chapters","descriptions","subtitles"],C('td[contenteditable="true"]').on("focus",function(){y=C(this).text()}).on("blur",function(){y!=C(this).text()&&(b=C(this).index(),w=C(this).text(),1===b?-1===C.inArray(w,v)&&("s"===w.substr(0,1)?C(this).text("subtitles"):"d"===w.substr(0,1)?C(this).text("descriptions"):"ch"===w.substr(0,2)?C(this).text("chapters"):C(this).text("captions")):2!==b&&3!==b||C(this).text(e.formatTimestamp(w)))}).on("keydown",function(t){t.stopPropagation()}),C("#able-vts-save").on("click",function(t){t.stopPropagation(),"save"==C(this).attr("value")?(C(this).attr("value","cancel").text("Return to Editor"),m=C("#able-vts table"),C("#able-vts-instructions").hide(),C("#able-vts > fieldset").hide(),C("#able-vts table").remove(),C("#able-vts-icon-credit").remove(),e.parseVtsOutput(m)):(C(this).attr("value","save").text("Save Changes"),C("#able-vts-output").remove(),C("#able-vts-instructions").show(),C("#able-vts > fieldset").show(),C("#able-vts").append(m),C("#able-vts").append(e.getIconCredit()),e.showVtsAlert("Cancelling saving. Any edits you made have been restored in the VTS table."))})}},AblePlayer.prototype.setupVtsTracks=function(t,e,i,s,a){var n,r;n=this.getFilenameFromPath(s),r=this.parseVtsTracks(a),this.vtsTracks.push({kind:t,language:e,label:i,srcFile:n,cues:r})},AblePlayer.prototype.getFilenameFromPath=function(t){var e;return-1===(e=t.lastIndexOf("/"))?t:t.substr(e+1)},AblePlayer.prototype.getFilenameFromTracks=function(t,e){for(var i=0;i<this.vtsTracks.length;i++)if(this.vtsTracks[i].kind===t&&this.vtsTracks[i].language===e)return this.vtsTracks[i].srcFile;return!1},AblePlayer.prototype.parseVtsTracks=function(t){var e,i,s,a,n,r,o,l,h;for(e=t.split("\n"),s=[],a=0;a<e.length;)if(-1!==(r=e[a]).indexOf(" --\x3e ")){if(i=r.trim().split(" "),this.isValidTimestamp(i[0])&&this.isValidTimestamp(i[2])){for(l="",n=a+1,h=!1;n<e.length&&!h;)0<(o=e[n].trim()).length?0<l.length?l+="\n"+o:l+=o:h=!0,n++;s.push({start:i[0],end:i[2],content:l}),a=n}}else a++;return s},AblePlayer.prototype.isValidTimestamp=function(t){return!!/^[0-9:,.]*$/.test(t)},AblePlayer.prototype.formatTimestamp=function(t){var e,i=t.substr(0,t.lastIndexOf(".")+1);if(3<(e=t.substr(t.lastIndexOf(".")+1)).length)e=e.substr(0,3);else if(e.length<3)for(;e.length<3;)e+="0";return i+e},AblePlayer.prototype.injectVtsTable=function(t,e){var i,s,a,n,r,o,l,h;for("update"===t&&(C("#able-vts table").remove(),C("#able-vts-icon-credit").remove()),i=C("<table>",{lang:e}),n=C("<tr>",{lang:"en"}),s=["Row #","Kind","Start","End","Content","Actions"],a=0;a<s.length;a++)r=C("<th>",{scope:"col"}).text(s[a]),"Actions"===s[a]&&r.addClass("actions"),n.append(r);for(i.append(n),l=this.getAllRows(e),a=0;a<l.length;a++)n=C("<tr>",{id:"able-vts-row-"+(h=a+1),class:"kind-"+l[a].kind}),o=C("<td>").text(h),n.append(o),o=C("<td>",{contenteditable:"true"}).text(l[a].kind),n.append(o),o=C("<td>",{contenteditable:"true"}).text(l[a].start),n.append(o),o=C("<td>",{contenteditable:"true"}).text(l[a].end),n.append(o),o=C("<td>",{contenteditable:"true"}).text(l[a].content),n.append(o),o=this.addVtsActionButtons(h,l.length),n.append(o),i.append(n);C("#able-vts").append(i),C("#able-vts").append(this.getIconCredit())},AblePlayer.prototype.addVtsActionButtons=function(t,e){var i,s,a,n,r,o,l,h,p,c;for(i=this,s=C("<td>"),a=["up","down","insert","delete"],n=0;n<a.length;n++)"up"===(r=a[n])?1<t&&(o=C("<button>",{id:"able-vts-button-up-"+t,title:"Move up","aria-label":"Move Row "+t+" up"}).on("click",function(t){i.onClickVtsActionButton(t.currentTarget)}),l=C("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"254.296px",height:"254.296px",viewBox:"0 0 254.296 254.296",style:"enable-background:new 0 0 254.296 254.296"}),p=C("<path>",{d:"M249.628,176.101L138.421,52.88c-6.198-6.929-16.241-6.929-22.407,0l-0.381,0.636L4.648,176.101c-6.198,6.897-6.198,18.052,0,24.981l0.191,0.159c2.892,3.305,6.865,5.371,11.346,5.371h221.937c4.577,0,8.613-2.161,11.41-5.594l0.064,0.064C255.857,194.153,255.857,182.998,249.628,176.101z"}),h=C("<g>").append(p),l.append(h),o.append(l),o.html(o.html()),s.append(o)):"down"===r?t<e&&(o=C("<button>",{id:"able-vts-button-down-"+t,title:"Move down","aria-label":"Move Row "+t+" down"}).on("click",function(t){i.onClickVtsActionButton(t.currentTarget)}),l=C("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"292.362px",height:"292.362px",viewBox:"0 0 292.362 292.362",style:"enable-background:new 0 0 292.362 292.362"}),p=C("<path>",{d:"M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z"}),h=C("<g>").append(p),l.append(h),o.append(l),o.html(o.html()),s.append(o)):"insert"===r?(o=C("<button>",{id:"able-vts-button-insert-"+t,title:"Insert row below","aria-label":"Insert row before Row "+t}).on("click",function(t){i.onClickVtsActionButton(t.currentTarget)}),l=C("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"401.994px",height:"401.994px",viewBox:"0 0 401.994 401.994",style:"enable-background:new 0 0 401.994 401.994"}),p=C("<path>",{d:"M394,154.175c-5.331-5.33-11.806-7.994-19.417-7.994H255.811V27.406c0-7.611-2.666-14.084-7.994-19.414C242.488,2.666,236.02,0,228.398,0h-54.812c-7.612,0-14.084,2.663-19.414,7.993c-5.33,5.33-7.994,11.803-7.994,19.414v118.775H27.407c-7.611,0-14.084,2.664-19.414,7.994S0,165.973,0,173.589v54.819c0,7.618,2.662,14.086,7.992,19.411c5.33,5.332,11.803,7.994,19.414,7.994h118.771V374.59c0,7.611,2.664,14.089,7.994,19.417c5.33,5.325,11.802,7.987,19.414,7.987h54.816c7.617,0,14.086-2.662,19.417-7.987c5.332-5.331,7.994-11.806,7.994-19.417V255.813h118.77c7.618,0,14.089-2.662,19.417-7.994c5.329-5.325,7.994-11.793,7.994-19.411v-54.819C401.991,165.973,399.332,159.502,394,154.175z"}),h=C("<g>").append(p),l.append(h),o.append(l),o.html(o.html()),s.append(o)):"delete"===r&&(o=C("<button>",{id:"able-vts-button-delete-"+t,title:"Delete row ","aria-label":"Delete Row "+t}).on("click",function(t){i.onClickVtsActionButton(t.currentTarget)}),l=C("<svg>",{focusable:"false","aria-hidden":"true",x:"0px",y:"0px",width:"508.52px",height:"508.52px",viewBox:"0 0 508.52 508.52",style:"enable-background:new 0 0 508.52 508.52"}),p=C("<path>",{d:"M397.281,31.782h-63.565C333.716,14.239,319.478,0,301.934,0h-95.347c-17.544,0-31.782,14.239-31.782,31.782h-63.565c-17.544,0-31.782,14.239-31.782,31.782h349.607C429.063,46.021,414.825,31.782,397.281,31.782z"}),c=C("<path>",{d:"M79.456,476.737c0,17.544,14.239,31.782,31.782,31.782h286.042c17.544,0,31.782-14.239,31.782-31.782V95.347H79.456V476.737z M333.716,174.804c0-8.772,7.151-15.891,15.891-15.891c8.74,0,15.891,7.119,15.891,15.891v254.26c0,8.74-7.151,15.891-15.891,15.891c-8.74,0-15.891-7.151-15.891-15.891V174.804zM238.369,174.804c0-8.772,7.119-15.891,15.891-15.891c8.74,0,15.891,7.119,15.891,15.891v254.26c0,8.74-7.151,15.891-15.891,15.891c-8.772,0-15.891-7.151-15.891-15.891V174.804z M143.021,174.804c0-8.772,7.119-15.891,15.891-15.891c8.772,0,15.891,7.119,15.891,15.891v254.26c0,8.74-7.119,15.891-15.891,15.891c-8.772,0-15.891-7.151-15.891-15.891V174.804z"}),h=C("<g>").append(p,c),l.append(h),o.append(l),o.html(o.html()),s.append(o));return s},AblePlayer.prototype.updateVtsActionButtons=function(t,e){var i,s,a,n,r,o;for(i=0;i<t.length;i++)a=(s=t.eq(i)).attr("id"),n=s.attr("aria-label"),r=a.replace(/[0-9]+/g,e),o=n.replace(/[0-9]+/g,e),s.attr("id",r),s.attr("aria-label",o)},AblePlayer.prototype.getIconCredit=function(){return'<div id="able-vts-icon-credit">Action buttons made by <a href="https://www.flaticon.com/authors/elegant-themes">Elegant Themes</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> are licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>'},AblePlayer.prototype.getAllLangs=function(t){var e;for(e in t)t[e].hasOwnProperty("language")&&-1===C.inArray(t[e].language,this.langs)&&(this.langs[this.langs.length]=t[e].language)},AblePlayer.prototype.getAllRows=function(t){var e,i,s,a;for(a=[],e=0;e<this.vtsTracks.length;e++)if((i=this.vtsTracks[e]).language==t)for(s in i.cues)a.push({kind:i.kind,lang:t,id:i.cues[s].id,start:i.cues[s].start,end:i.cues[s].end,content:i.cues[s].content});return a.sort(function(t,e){return t.start>e.start?1:-1}),a},AblePlayer.prototype.onClickVtsActionButton=function(t){var e,i,s;i=(e=C(t).attr("id").split("-"))[3],s=e[4],"up"==i?this.moveRow(s,"up"):"down"==i?this.moveRow(s,"down"):"insert"==i?this.insertRow(s):"delete"==i&&this.deleteRow(s)},AblePlayer.prototype.insertRow=function(t){var e,i,s,a,n,r,o,l,h,p,c,u,d,g,f;for(s=(i=(e=C("#able-vts table")).find("tr")).length-1,a=parseInt(t)+1,n=C("<tr>",{id:"able-vts-row-"+a}),r=C("<td>").text(a),n.append(r),p=null,o=C("<select>",{id:"able-vts-kind-"+a,"aria-label":"What kind of track is this?",placeholder:"Select a kind"}).on("change",function(){p=C(this).val(),c="kind-"+p,u=C(this).closest("tr"),C(this).parent().text(p),u.addClass(c)}),l=["","captions","chapters","descriptions","subtitles"],d=0;d<l.length;d++)h=C("<option>",{value:l[d]}).text(l[d]),o.append(h);for(r=C("<td>").append(o),n.append(r),r=C("<td>",{contenteditable:"true"}),n.append(r),r=C("<td>",{contenteditable:"true"}),n.append(r),r=C("<td>",{contenteditable:"true"}),n.append(r),r=this.addVtsActionButtons(a,s),n.append(r),e.find("tr").eq(t).after(n),d=a;d<=s;d++)g=d+1,i.eq(d).attr("id","able-vts-row-"+g),i.eq(d).find("td").eq(0).text(g),f=i.eq(d).find("button"),this.updateVtsActionButtons(f,g);this.adjustTimes(a),this.showVtsAlert("A new row "+a+" has been inserted"),o.focus()},AblePlayer.prototype.deleteRow=function(t){var e,i,s,a,n,r;for((e=C("#able-vts table"))[0].deleteRow(t),s=(i=e.find("tr")).length-1,a=t;a<=s;a++)n=a,i.eq(a).attr("id","able-vts-row-"+n),i.eq(a).find("td").eq(0).text(n),r=i.eq(a).find("button"),this.updateVtsActionButtons(r,n);this.showVtsAlert("Row "+t+" has been deleted")},AblePlayer.prototype.moveRow=function(t,e){var i,s,a,n;C("#able-vts table").find("tr"),i=C("#able-vts table").find("tr").eq(t),"up"==e?(s=parseInt(t)-1,(a=C("#able-vts table").find("tr").eq(s)).before(i)):"down"==e&&(s=parseInt(t)+1,(a=C("#able-vts table").find("tr").eq(s)).after(i)),i.attr("id","able-vts-row-"+s),i.find("td").eq(0).text(s),this.updateVtsActionButtons(i.find("button"),s),a.attr("id","able-vts-row-"+t),a.find("td").eq(0).text(t),this.updateVtsActionButtons(a.find("button"),t),this.adjustTimes(s),n="Row "+t+" has been moved "+e,n+=" and is now Row "+s,this.showVtsAlert(n)},AblePlayer.prototype.adjustTimes=function(t){var e,i,s,a,n,r,o,l,h,p,c,u,d,g,f,m;(e=[]).captions=.001,e.descriptions=.001,e.chapters=.001,l=(n=(i=C("#able-vts table").find("tr")).eq(t)).is('[class^="kind-"]')?this.getKindFromClass(n.attr("class")):"captions",c=this.getSecondsFromColonTime(n.find("td").eq(2).text()),g=this.getSecondsFromColonTime(n.find("td").eq(3).text()),f=1<t?(s=t-1,h=(r=i.eq(s)).is('[class^="kind-"]')?this.getKindFromClass(r.attr("class")):null,u=this.getSecondsFromColonTime(r.find("td").eq(2).text()),this.getSecondsFromColonTime(r.find("td").eq(3).text())):u=h=r=s=null,m=t<i.length-1?(a=t+1,p=(o=i.eq(a)).is('[class^="kind-"]')?this.getKindFromClass(o.attr("class")):null,d=this.getSecondsFromColonTime(o.find("td").eq(2).text()),this.getSecondsFromColonTime(o.find("td").eq(3).text())):d=p=o=a=null,isNaN(c)?(null==h&&(h="captions",r.attr("class","kind-captions"),r.find("td").eq(1).html("captions")),"captions"===h?(c=(parseFloat(f)+.001).toFixed(3),g=d?(parseFloat(d)-.001).toFixed(3):(parseFloat(c)+e[l]).toFixed(3)):"chapters"===h?(c=(parseFloat(u)+.001).toFixed(3),g=d?(parseFloat(d)-.001).toFixed(3):(parseFloat(c)+minDurartion[l]).toFixed(3)):"descriptions"===h&&(c=(parseFloat(u)+e.descriptions).toFixed(3),g=(parseFloat(c)+e.descriptions).toFixed(3))):u?u<c?c<d||(d=(parseFloat(c)+e[l]).toFixed(3),m=(parseFloat(d)+e[p]).toFixed(3)):(c=(parseFloat(u)+e[h]).toFixed(3),g=(parseFloat(c)+e[l]).toFixed(3)):c<d||(d=(parseFloat(c)+e[l]).toFixed(3),m=(parseFloat(d)+e[p]).toFixed(3)),g-c<e[l]&&(g=(parseFloat(c)+e[l]).toFixed(3),d&&(d=(parseFloat(g)+.001).toFixed(3))),n.find("td").eq(2).text(this.formatSecondsAsColonTime(c,!0)),n.find("td").eq(3).text(this.formatSecondsAsColonTime(g,!0)),r&&(r.find("td").eq(2).text(this.formatSecondsAsColonTime(u,!0)),r.find("td").eq(3).text(this.formatSecondsAsColonTime(f,!0))),o&&(o.find("td").eq(2).text(this.formatSecondsAsColonTime(d,!0)),o.find("td").eq(3).text(this.formatSecondsAsColonTime(m,!0)))},AblePlayer.prototype.getKindFromClass=function(t){var e,i,s;return e=t.indexOf("kind-")+5,s=-1==(i=t.indexOf(" ",e))?t.length-e:i-e,t.substr(e,s)},AblePlayer.prototype.showVtsAlert=function(t){this.$vtsAlert.text(t).show().delay(3e3).fadeOut("slow")},AblePlayer.prototype.parseVtsOutput=function(t){var e,i,s,a,n,r,o,l,h,p;for(e=t.attr("lang"),s=["captions","chapters","descriptions","subtitles"],n={},i=0;i<s.length;i++)n[a=s[i]]="WEBVTT\n\n";if(0<(r=t.find("tr")).length)for(i=0;i<r.length;i++)a=r.eq(i).find("td").eq(1).text(),-1!==C.inArray(a,s)&&(o=r.eq(i).find("td").eq(2).text(),l=r.eq(i).find("td").eq(3).text(),h=r.eq(i).find("td").eq(4).text(),void 0!==o&&void 0!==l&&(n[a]+=o+" --\x3e "+l+"\n","undefined"!==h&&(n[a]+=h),n[a]+="\n\n"));for(p=C("<div>",{id:"able-vts-output"}),C("#able-vts").append(p),i=0;i<s.length;i++)8<n[a=s[i]].length&&this.showWebVttOutput(a,n[a],e)},AblePlayer.prototype.showWebVttOutput=function(t,e,i){var s,a,n,r,o;s=C("<h3>").text(t.charAt(0).toUpperCase()+t.slice(1)),r="If you made changes, copy/paste the following content ",(a=this.getFilenameFromTracks(t,i))?(r+="to replace the original content of your "+this.getLanguageName(i)+" ",r+="<em>"+t+"</em> WebVTT file (<strong>"+a+"</strong>)."):r+="into a new "+this.getLanguageName(i)+" <em>"+t+"</em> WebVTT file.",n=C("<p>",{class:"able-vts-output-instructions"}).html(r),o=C("<textarea>").text(e),C("#able-vts-output").append(s,n,o)}}(jQuery),function(o){AblePlayer.prototype.initVimeoPlayer=function(){var e,t,i,s,a,n,r;return e=this,i=(t=new o.Deferred).promise(),t.resolve(),s=this.mediaId+"_vimeo",this.$mediaContainer.prepend(o("<div>").attr("id",s)),a=this.vimeoDescId&&this.prefDesc?this.vimeoDescId:this.vimeoId,this.activeVimeoId=a,this.autoplay&&this.okToPlay?"true":"false",(n=this.getVimeoDimensions(this.activeVimeoId,s))?(this.vimeoWidth=n[0],this.vimeoHeight=n[1],this.aspectRatio=e.ytWidth/e.ytHeight):(this.vimeoWidth=null,this.vimeoHeight=null),r={id:a,width:this.vimeoWidth,background:!0,autoplay:this.autoplay,loop:this.loop},this.vimeoPlayer=new Vimeo.Player(s,r),this.vimeoPlayer.ready().then(function(){e.hasPlaylist||(e.$media.remove(),e.vimeoPlaybackRate=1,e.vimeoPlayer.setPlaybackRate(e.vimeoPlaybackRate).then(function(t){e.vimeoSupportsPlaybackRateChange=!0}).catch(function(t){e.vimeoSupportsPlaybackRateChange=!1}),t.resolve())}),i},AblePlayer.prototype.getVimeoPaused=function(){var e,t;return t=(e=new o.Deferred).promise(),this.vimeoPlayer.getPaused().then(function(t){e.resolve(t)}),t},AblePlayer.prototype.getVimeoEnded=function(){var e,t;return t=(e=new o.Deferred).promise(),this.vimeoPlayer.getEnded().then(function(t){e.resolve(t)}),t},AblePlayer.prototype.getVimeoState=function(){var e,t,i,s,a;return this,t=(e=new o.Deferred).promise(),i=[],s=this.vimeoPlayer.getPaused(),a=this.vimeoPlayer.getEnded(),i.push(s),i.push(a),s.then(function(t){e.resolve(t)}),a.then(function(t){e.resolve(t)}),o.when.apply(o,i).then(function(){e.resolve()}),t},AblePlayer.prototype.getVimeoDimensions=function(t){var e,i,s,a;return e=[],void 0!==this.playerMaxWidth?(e[0]=this.playerMaxWidth,void 0!==this.playerMaxHeight&&(e[1]=this.playerMaxHeight),e):void 0!==o("#"+t)&&(s=(i=o("#"+t)).width(),a=i.height(),0<s&&0<a)&&(e[0]=s,e[1]=a,e)},AblePlayer.prototype.resizeVimeoPlayer=function(t,e){var i,s,a;void 0!==this.aspectRatio?this.restoringAfterFullScreen?(this.youTubePlayer&&this.youTubePlayer.setSize(this.ytWidth,this.ytHeight),this.restoringAfterFullScreen=!1):(s=this.$ableWrapper.parent().width(),a=Math.round(s/this.aspectRatio),this.$ableWrapper.css({"max-width":s+"px",width:""}),this.youTubePlayer.setSize(s,a),this.fullscreen?this.youTubePlayer.setSize(s,a):this.youTubePlayer.setSize(this.ytWidth,this.ytHeight)):(i=this.getYouTubeDimensions(t,e))&&(s=i[0],a=i[1],0<s&&0<a&&(this.aspectRatio=s/a,this.ytWidth=s,this.ytHeight=a,s!==this.$ableWrapper.width()&&(s=this.$ableWrapper.width(),a=Math.round(s/this.aspectRatio),this.youTubePlayer&&this.youTubePlayer.setSize(s,a))))},AblePlayer.prototype.setupVimeoCaptions=function(){var t=new o.Deferred,e=t.promise();return this.youTubeDescId&&this.prefDesc?this.youTubeDescId:this.youTubeId,"undefined"!=typeof youTubeDataAPIKey?o.doWhen({when:function(){return googleApiReady},interval:100,attempts:1e3}).done(function(){t.resolve()}).fail(function(){}):t.resolve(),e},AblePlayer.prototype.getVimeoCaptionTracks=function(){var e,i,s,a=new o.Deferred,t=a.promise();return(e=this).vimeoPlayer.getTextTracks().then(function(t){if(t.length){for(i=0;i<t.length;i++)e.hasCaptions=!0,e.usingVimeoCaptions=!0,1===e.prefCaptions?e.captionsOn=!0:e.captionsOn=!1,s=t[i].language===e.lang,e.tracks.push({kind:t[i].kind,language:t[i].language,label:t[i].label,def:s});e.setupPopups("captions"),a.resolve()}else e.hasCaptions=!1,e.usingVimeoCaptions=!1,a.resolve()}),t},AblePlayer.prototype.initVimeoCaptionModule=function(){var t;if((t=this.youTubePlayer.getOptions()).length){for(var e=0;e<t.length;e++){if("cc"==t[e]){this.ytCaptionModule="cc",this.hasCaptions||(this.hasCaptions=!0,this.usingYouTubeCaptions=!0);break}if("captions"==t[e]){this.ytCaptionModule="captions",this.hasCaptions||(this.hasCaptions=!0,this.usingYouTubeCaptions=!0);break}}void 0!==this.ytCaptionModule&&(this.usingYouTubeCaptions?(this.youTubePlayer.setOption(this.ytCaptionModule,"track",{languageCode:this.captionLang}),this.youTubePlayer.setOption(this.ytCaptionModule,"fontSize",this.translatePrefs("size",this.prefCaptionsSize,"youtube"))):this.youTubePlayer.unloadModule(this.ytCaptionModule))}else this.hasCaptions=!1,this.usingYouTubeCaptions=!1;this.refreshControls("captions")},AblePlayer.prototype.getVimeoPosterUrl=function(t,e){var i="https://img.youtube.com/vi/"+t;return"120"==e?i+"/default.jpg":"320"==e?i+"/hqdefault.jpg":"480"==e?i+"/hqdefault.jpg":"640"==e&&i+"/sddefault.jpg"}}(jQuery);
@@ -1,108 +1,182 @@
1
1
  {
2
2
  "name": "ableplayer",
3
- "version": "3.1.20",
3
+ "version": "3.2.28",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
7
7
  "abbrev": {
8
- "version": "1.0.7",
9
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz",
10
- "integrity": "sha1-W2A1su6dT7XPhZ8Iqb6BsghJGEM=",
8
+ "version": "1.1.1",
9
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
10
+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
11
11
  "dev": true
12
12
  },
13
- "amdefine": {
14
- "version": "1.0.0",
15
- "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz",
16
- "integrity": "sha1-/RdHRwDLXMnCtwnwvp0jzjwZjDM=",
13
+ "ansi-regex": {
14
+ "version": "2.1.1",
15
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
16
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
17
17
  "dev": true
18
18
  },
19
+ "ansi-styles": {
20
+ "version": "3.2.1",
21
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
22
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
23
+ "dev": true,
24
+ "requires": {
25
+ "color-convert": "^1.9.0"
26
+ }
27
+ },
19
28
  "argparse": {
20
- "version": "0.1.16",
21
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz",
22
- "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=",
29
+ "version": "1.0.10",
30
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
31
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
23
32
  "dev": true,
24
33
  "requires": {
25
- "underscore": "~1.7.0",
26
- "underscore.string": "~2.4.0"
34
+ "sprintf-js": "~1.0.2"
27
35
  },
28
36
  "dependencies": {
29
- "underscore.string": {
30
- "version": "2.4.0",
31
- "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz",
32
- "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=",
37
+ "sprintf-js": {
38
+ "version": "1.0.3",
39
+ "resolved": "http://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
40
+ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
33
41
  "dev": true
34
42
  }
35
43
  }
36
44
  },
45
+ "array-find-index": {
46
+ "version": "1.0.2",
47
+ "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
48
+ "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
49
+ "dev": true
50
+ },
37
51
  "async": {
38
- "version": "0.1.22",
39
- "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz",
40
- "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=",
52
+ "version": "1.5.2",
53
+ "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz",
54
+ "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=",
55
+ "dev": true
56
+ },
57
+ "balanced-match": {
58
+ "version": "1.0.0",
59
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
60
+ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
41
61
  "dev": true
42
62
  },
63
+ "brace-expansion": {
64
+ "version": "1.1.11",
65
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
66
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
67
+ "dev": true,
68
+ "requires": {
69
+ "balanced-match": "^1.0.0",
70
+ "concat-map": "0.0.1"
71
+ }
72
+ },
43
73
  "camelcase": {
44
- "version": "1.2.1",
45
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
46
- "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=",
74
+ "version": "2.1.1",
75
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
76
+ "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=",
47
77
  "dev": true
48
78
  },
79
+ "camelcase-keys": {
80
+ "version": "2.1.0",
81
+ "resolved": "http://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
82
+ "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
83
+ "dev": true,
84
+ "requires": {
85
+ "camelcase": "^2.0.0",
86
+ "map-obj": "^1.0.0"
87
+ }
88
+ },
89
+ "chalk": {
90
+ "version": "2.4.2",
91
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
92
+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
93
+ "dev": true,
94
+ "requires": {
95
+ "ansi-styles": "^3.2.1",
96
+ "escape-string-regexp": "^1.0.5",
97
+ "supports-color": "^5.3.0"
98
+ }
99
+ },
49
100
  "clean-css": {
50
- "version": "1.1.7",
51
- "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-1.1.7.tgz",
52
- "integrity": "sha1-YB75z3ZCuYLLM+/JSIpkRMmGaG4=",
101
+ "version": "4.2.1",
102
+ "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz",
103
+ "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==",
53
104
  "dev": true,
54
105
  "requires": {
55
- "commander": "2.0.x"
106
+ "source-map": "~0.6.0"
107
+ },
108
+ "dependencies": {
109
+ "source-map": {
110
+ "version": "0.6.1",
111
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
112
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
113
+ "dev": true
114
+ }
56
115
  }
57
116
  },
58
117
  "cli": {
59
- "version": "0.6.6",
60
- "resolved": "https://registry.npmjs.org/cli/-/cli-0.6.6.tgz",
61
- "integrity": "sha1-Aq1Eo4Cr8nraxebwzdewQ9dMU+M=",
118
+ "version": "1.0.1",
119
+ "resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz",
120
+ "integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=",
62
121
  "dev": true,
63
122
  "requires": {
64
123
  "exit": "0.1.2",
65
- "glob": "~ 3.2.1"
124
+ "glob": "^7.1.1"
66
125
  },
67
126
  "dependencies": {
68
127
  "glob": {
69
- "version": "3.2.11",
70
- "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz",
71
- "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=",
128
+ "version": "7.1.3",
129
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
130
+ "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
72
131
  "dev": true,
73
132
  "requires": {
133
+ "fs.realpath": "^1.0.0",
134
+ "inflight": "^1.0.4",
74
135
  "inherits": "2",
75
- "minimatch": "0.3"
76
- }
77
- },
78
- "minimatch": {
79
- "version": "0.3.0",
80
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz",
81
- "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=",
82
- "dev": true,
83
- "requires": {
84
- "lru-cache": "2",
85
- "sigmund": "~1.0.0"
136
+ "minimatch": "^3.0.4",
137
+ "once": "^1.3.0",
138
+ "path-is-absolute": "^1.0.0"
86
139
  }
87
140
  }
88
141
  }
89
142
  },
90
- "coffee-script": {
91
- "version": "1.3.3",
92
- "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz",
93
- "integrity": "sha1-FQ1rTLUiiUNp7+1qIQHCC8f0pPQ=",
143
+ "coffeescript": {
144
+ "version": "1.10.0",
145
+ "resolved": "https://registry.npmjs.org/coffeescript/-/coffeescript-1.10.0.tgz",
146
+ "integrity": "sha1-56qDAZF+9iGzXYo580jc3R234z4=",
147
+ "dev": true
148
+ },
149
+ "color-convert": {
150
+ "version": "1.9.3",
151
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
152
+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
153
+ "dev": true,
154
+ "requires": {
155
+ "color-name": "1.1.3"
156
+ }
157
+ },
158
+ "color-name": {
159
+ "version": "1.1.3",
160
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
161
+ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
94
162
  "dev": true
95
163
  },
96
164
  "colors": {
97
- "version": "0.6.2",
98
- "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz",
99
- "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=",
165
+ "version": "1.1.2",
166
+ "resolved": "http://registry.npmjs.org/colors/-/colors-1.1.2.tgz",
167
+ "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=",
100
168
  "dev": true
101
169
  },
102
170
  "commander": {
103
- "version": "2.0.0",
104
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.0.0.tgz",
105
- "integrity": "sha1-0bhvkB+LZL2UG96tr5JFMDk76Sg=",
171
+ "version": "2.20.0",
172
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
173
+ "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
174
+ "dev": true
175
+ },
176
+ "concat-map": {
177
+ "version": "0.0.1",
178
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
179
+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
106
180
  "dev": true
107
181
  },
108
182
  "console-browserify": {
@@ -120,6 +194,15 @@
120
194
  "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
121
195
  "dev": true
122
196
  },
197
+ "currently-unhandled": {
198
+ "version": "0.4.1",
199
+ "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
200
+ "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=",
201
+ "dev": true,
202
+ "requires": {
203
+ "array-find-index": "^1.0.1"
204
+ }
205
+ },
123
206
  "date-now": {
124
207
  "version": "0.1.4",
125
208
  "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz",
@@ -127,45 +210,43 @@
127
210
  "dev": true
128
211
  },
129
212
  "dateformat": {
130
- "version": "1.0.2-1.2.3",
131
- "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz",
132
- "integrity": "sha1-sCIMAt6YYXQztyhRz0fePfLNvuk=",
133
- "dev": true
213
+ "version": "1.0.12",
214
+ "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
215
+ "integrity": "sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk=",
216
+ "dev": true,
217
+ "requires": {
218
+ "get-stdin": "^4.0.1",
219
+ "meow": "^3.3.0"
220
+ }
134
221
  },
135
222
  "decamelize": {
136
- "version": "1.1.1",
137
- "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.1.1.tgz",
138
- "integrity": "sha1-iHFHmmwEh/VlPUipkvHQOBym8DE=",
223
+ "version": "1.2.0",
224
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
225
+ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
139
226
  "dev": true
140
227
  },
141
228
  "dom-serializer": {
142
- "version": "0.1.0",
143
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz",
144
- "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=",
229
+ "version": "0.1.1",
230
+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz",
231
+ "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==",
145
232
  "dev": true,
146
233
  "requires": {
147
- "domelementtype": "~1.1.1",
148
- "entities": "~1.1.1"
234
+ "domelementtype": "^1.3.0",
235
+ "entities": "^1.1.1"
149
236
  },
150
237
  "dependencies": {
151
- "domelementtype": {
152
- "version": "1.1.3",
153
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz",
154
- "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=",
155
- "dev": true
156
- },
157
238
  "entities": {
158
- "version": "1.1.1",
159
- "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz",
160
- "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=",
239
+ "version": "1.1.2",
240
+ "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz",
241
+ "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==",
161
242
  "dev": true
162
243
  }
163
244
  }
164
245
  },
165
246
  "domelementtype": {
166
- "version": "1.3.0",
167
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz",
168
- "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=",
247
+ "version": "1.3.1",
248
+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz",
249
+ "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==",
169
250
  "dev": true
170
251
  },
171
252
  "domhandler": {
@@ -187,16 +268,37 @@
187
268
  "domelementtype": "1"
188
269
  }
189
270
  },
271
+ "duplexer": {
272
+ "version": "0.1.1",
273
+ "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz",
274
+ "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=",
275
+ "dev": true
276
+ },
190
277
  "entities": {
191
278
  "version": "1.0.0",
192
279
  "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz",
193
280
  "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=",
194
281
  "dev": true
195
282
  },
283
+ "error-ex": {
284
+ "version": "1.3.2",
285
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
286
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
287
+ "dev": true,
288
+ "requires": {
289
+ "is-arrayish": "^0.2.1"
290
+ }
291
+ },
292
+ "escape-string-regexp": {
293
+ "version": "1.0.5",
294
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
295
+ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
296
+ "dev": true
297
+ },
196
298
  "esprima": {
197
- "version": "1.0.4",
198
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz",
199
- "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=",
299
+ "version": "4.0.1",
300
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
301
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
200
302
  "dev": true
201
303
  },
202
304
  "eventemitter2": {
@@ -211,44 +313,68 @@
211
313
  "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=",
212
314
  "dev": true
213
315
  },
316
+ "figures": {
317
+ "version": "1.7.0",
318
+ "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz",
319
+ "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=",
320
+ "dev": true,
321
+ "requires": {
322
+ "escape-string-regexp": "^1.0.5",
323
+ "object-assign": "^4.1.0"
324
+ }
325
+ },
326
+ "file-sync-cmp": {
327
+ "version": "0.1.1",
328
+ "resolved": "https://registry.npmjs.org/file-sync-cmp/-/file-sync-cmp-0.1.1.tgz",
329
+ "integrity": "sha1-peeo/7+kk7Q7kju9TKiaU7Y7YSs=",
330
+ "dev": true
331
+ },
332
+ "find-up": {
333
+ "version": "1.1.2",
334
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
335
+ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
336
+ "dev": true,
337
+ "requires": {
338
+ "path-exists": "^2.0.0",
339
+ "pinkie-promise": "^2.0.0"
340
+ }
341
+ },
214
342
  "findup-sync": {
215
- "version": "0.1.3",
216
- "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz",
217
- "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=",
343
+ "version": "0.3.0",
344
+ "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz",
345
+ "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=",
218
346
  "dev": true,
219
347
  "requires": {
220
- "glob": "~3.2.9",
221
- "lodash": "~2.4.1"
348
+ "glob": "~5.0.0"
222
349
  },
223
350
  "dependencies": {
224
351
  "glob": {
225
- "version": "3.2.11",
226
- "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz",
227
- "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=",
352
+ "version": "5.0.15",
353
+ "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz",
354
+ "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=",
228
355
  "dev": true,
229
356
  "requires": {
357
+ "inflight": "^1.0.4",
230
358
  "inherits": "2",
231
- "minimatch": "0.3"
232
- }
233
- },
234
- "lodash": {
235
- "version": "2.4.2",
236
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
237
- "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
238
- "dev": true
239
- },
240
- "minimatch": {
241
- "version": "0.3.0",
242
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz",
243
- "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=",
244
- "dev": true,
245
- "requires": {
246
- "lru-cache": "2",
247
- "sigmund": "~1.0.0"
359
+ "minimatch": "2 || 3",
360
+ "once": "^1.3.0",
361
+ "path-is-absolute": "^1.0.0"
248
362
  }
249
363
  }
250
364
  }
251
365
  },
366
+ "fs.realpath": {
367
+ "version": "1.0.0",
368
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
369
+ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
370
+ "dev": true
371
+ },
372
+ "get-stdin": {
373
+ "version": "4.0.1",
374
+ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
375
+ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=",
376
+ "dev": true
377
+ },
252
378
  "getobject": {
253
379
  "version": "0.1.0",
254
380
  "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz",
@@ -256,183 +382,240 @@
256
382
  "dev": true
257
383
  },
258
384
  "glob": {
259
- "version": "3.1.21",
260
- "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz",
261
- "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=",
385
+ "version": "7.0.6",
386
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz",
387
+ "integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=",
262
388
  "dev": true,
263
389
  "requires": {
264
- "graceful-fs": "~1.2.0",
265
- "inherits": "1",
266
- "minimatch": "~0.2.11"
267
- },
268
- "dependencies": {
269
- "inherits": {
270
- "version": "1.0.2",
271
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz",
272
- "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=",
273
- "dev": true
274
- }
390
+ "fs.realpath": "^1.0.0",
391
+ "inflight": "^1.0.4",
392
+ "inherits": "2",
393
+ "minimatch": "^3.0.2",
394
+ "once": "^1.3.0",
395
+ "path-is-absolute": "^1.0.0"
275
396
  }
276
397
  },
277
398
  "graceful-fs": {
278
- "version": "1.2.3",
279
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz",
280
- "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=",
399
+ "version": "4.1.15",
400
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz",
401
+ "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==",
281
402
  "dev": true
282
403
  },
283
404
  "grunt": {
284
- "version": "0.4.5",
285
- "resolved": "https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz",
286
- "integrity": "sha1-VpN81RlDJK3/bSB2MYMqnWuk5/A=",
405
+ "version": "1.0.4",
406
+ "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.4.tgz",
407
+ "integrity": "sha512-PYsMOrOC+MsdGEkFVwMaMyc6Ob7pKmq+deg1Sjr+vvMWp35sztfwKE7qoN51V+UEtHsyNuMcGdgMLFkBHvMxHQ==",
287
408
  "dev": true,
288
409
  "requires": {
289
- "async": "~0.1.22",
290
- "coffee-script": "~1.3.3",
291
- "colors": "~0.6.2",
292
- "dateformat": "1.0.2-1.2.3",
410
+ "coffeescript": "~1.10.0",
411
+ "dateformat": "~1.0.12",
293
412
  "eventemitter2": "~0.4.13",
294
413
  "exit": "~0.1.1",
295
- "findup-sync": "~0.1.2",
296
- "getobject": "~0.1.0",
297
- "glob": "~3.1.21",
298
- "grunt-legacy-log": "~0.1.0",
299
- "grunt-legacy-util": "~0.2.0",
300
- "hooker": "~0.2.3",
301
- "iconv-lite": "~0.2.11",
302
- "js-yaml": "~2.0.5",
303
- "lodash": "~0.9.2",
304
- "minimatch": "~0.2.12",
305
- "nopt": "~1.0.10",
306
- "rimraf": "~2.2.8",
307
- "underscore.string": "~2.2.1",
308
- "which": "~1.0.5"
414
+ "findup-sync": "~0.3.0",
415
+ "glob": "~7.0.0",
416
+ "grunt-cli": "~1.2.0",
417
+ "grunt-known-options": "~1.1.0",
418
+ "grunt-legacy-log": "~2.0.0",
419
+ "grunt-legacy-util": "~1.1.1",
420
+ "iconv-lite": "~0.4.13",
421
+ "js-yaml": "~3.13.0",
422
+ "minimatch": "~3.0.2",
423
+ "mkdirp": "~0.5.1",
424
+ "nopt": "~3.0.6",
425
+ "path-is-absolute": "~1.0.0",
426
+ "rimraf": "~2.6.2"
427
+ },
428
+ "dependencies": {
429
+ "grunt-cli": {
430
+ "version": "1.2.0",
431
+ "resolved": "http://registry.npmjs.org/grunt-cli/-/grunt-cli-1.2.0.tgz",
432
+ "integrity": "sha1-VisRnrsGndtGSs4oRVAb6Xs1tqg=",
433
+ "dev": true,
434
+ "requires": {
435
+ "findup-sync": "~0.3.0",
436
+ "grunt-known-options": "~1.1.0",
437
+ "nopt": "~3.0.6",
438
+ "resolve": "~1.1.0"
439
+ }
440
+ },
441
+ "resolve": {
442
+ "version": "1.1.7",
443
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz",
444
+ "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=",
445
+ "dev": true
446
+ }
309
447
  }
310
448
  },
311
449
  "grunt-contrib-clean": {
312
- "version": "0.6.0",
313
- "resolved": "https://registry.npmjs.org/grunt-contrib-clean/-/grunt-contrib-clean-0.6.0.tgz",
314
- "integrity": "sha1-9TLbpLghJnTHwBPhRr2mY4uQSPY=",
450
+ "version": "2.0.0",
451
+ "resolved": "https://registry.npmjs.org/grunt-contrib-clean/-/grunt-contrib-clean-2.0.0.tgz",
452
+ "integrity": "sha512-g5ZD3ORk6gMa5ugZosLDQl3dZO7cI3R14U75hTM+dVLVxdMNJCPVmwf9OUt4v4eWgpKKWWoVK9DZc1amJp4nQw==",
315
453
  "dev": true,
316
454
  "requires": {
317
- "rimraf": "~2.2.1"
455
+ "async": "^2.6.1",
456
+ "rimraf": "^2.6.2"
457
+ },
458
+ "dependencies": {
459
+ "async": {
460
+ "version": "2.6.2",
461
+ "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz",
462
+ "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==",
463
+ "dev": true,
464
+ "requires": {
465
+ "lodash": "^4.17.11"
466
+ }
467
+ }
318
468
  }
319
469
  },
320
470
  "grunt-contrib-concat": {
321
- "version": "0.3.0",
322
- "resolved": "https://registry.npmjs.org/grunt-contrib-concat/-/grunt-contrib-concat-0.3.0.tgz",
323
- "integrity": "sha1-SPoNQzbSm2U62CJaa9b4VrRIPjI=",
324
- "dev": true
471
+ "version": "1.0.1",
472
+ "resolved": "https://registry.npmjs.org/grunt-contrib-concat/-/grunt-contrib-concat-1.0.1.tgz",
473
+ "integrity": "sha1-YVCYYwhOhx1+ht5IwBUlntl3Rb0=",
474
+ "dev": true,
475
+ "requires": {
476
+ "chalk": "^1.0.0",
477
+ "source-map": "^0.5.3"
478
+ },
479
+ "dependencies": {
480
+ "ansi-styles": {
481
+ "version": "2.2.1",
482
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
483
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
484
+ "dev": true
485
+ },
486
+ "chalk": {
487
+ "version": "1.1.3",
488
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
489
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
490
+ "dev": true,
491
+ "requires": {
492
+ "ansi-styles": "^2.2.1",
493
+ "escape-string-regexp": "^1.0.2",
494
+ "has-ansi": "^2.0.0",
495
+ "strip-ansi": "^3.0.0",
496
+ "supports-color": "^2.0.0"
497
+ }
498
+ },
499
+ "supports-color": {
500
+ "version": "2.0.0",
501
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
502
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
503
+ "dev": true
504
+ }
505
+ }
325
506
  },
326
507
  "grunt-contrib-copy": {
327
- "version": "0.4.1",
328
- "resolved": "https://registry.npmjs.org/grunt-contrib-copy/-/grunt-contrib-copy-0.4.1.tgz",
329
- "integrity": "sha1-8HU7QK4hu3BtrvsLKZ4DzfX6nW4=",
330
- "dev": true
508
+ "version": "1.0.0",
509
+ "resolved": "https://registry.npmjs.org/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz",
510
+ "integrity": "sha1-cGDGWB6QS4qw0A8HbgqPbj58NXM=",
511
+ "dev": true,
512
+ "requires": {
513
+ "chalk": "^1.1.1",
514
+ "file-sync-cmp": "^0.1.0"
515
+ },
516
+ "dependencies": {
517
+ "ansi-styles": {
518
+ "version": "2.2.1",
519
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
520
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
521
+ "dev": true
522
+ },
523
+ "chalk": {
524
+ "version": "1.1.3",
525
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
526
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
527
+ "dev": true,
528
+ "requires": {
529
+ "ansi-styles": "^2.2.1",
530
+ "escape-string-regexp": "^1.0.2",
531
+ "has-ansi": "^2.0.0",
532
+ "strip-ansi": "^3.0.0",
533
+ "supports-color": "^2.0.0"
534
+ }
535
+ },
536
+ "supports-color": {
537
+ "version": "2.0.0",
538
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
539
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
540
+ "dev": true
541
+ }
542
+ }
331
543
  },
332
544
  "grunt-contrib-cssmin": {
333
- "version": "0.6.2",
334
- "resolved": "https://registry.npmjs.org/grunt-contrib-cssmin/-/grunt-contrib-cssmin-0.6.2.tgz",
335
- "integrity": "sha1-KATcDoH5jopU1h7uhKHT/ho6+OI=",
545
+ "version": "3.0.0",
546
+ "resolved": "https://registry.npmjs.org/grunt-contrib-cssmin/-/grunt-contrib-cssmin-3.0.0.tgz",
547
+ "integrity": "sha512-eXpooYmVGKMs/xV7DzTLgJFPVOfMuawPD3x0JwhlH0mumq2NtH3xsxaHxp1Y3NKxp0j0tRhFS6kSBRsz6TuTGg==",
336
548
  "dev": true,
337
549
  "requires": {
338
- "clean-css": "~1.1.1",
339
- "grunt-lib-contrib": "~0.6.0"
550
+ "chalk": "^2.4.1",
551
+ "clean-css": "~4.2.1",
552
+ "maxmin": "^2.1.0"
340
553
  }
341
554
  },
342
555
  "grunt-contrib-jshint": {
343
- "version": "0.10.0",
344
- "resolved": "https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-0.10.0.tgz",
345
- "integrity": "sha1-V+vMyofo8yevZkXYo8WG1IReTYE=",
556
+ "version": "2.1.0",
557
+ "resolved": "https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-2.1.0.tgz",
558
+ "integrity": "sha512-65S2/C/6RfjY/umTxfwXXn+wVvaYmykHkHSsW6Q6rhkbv3oudTEgqnFFZvWzWCoHUb+3GMZLbP3oSrNyvshmIQ==",
346
559
  "dev": true,
347
560
  "requires": {
348
- "hooker": "~0.2.3",
349
- "jshint": "~2.5.0"
561
+ "chalk": "^2.4.2",
562
+ "hooker": "^0.2.3",
563
+ "jshint": "~2.10.2"
350
564
  }
351
565
  },
352
566
  "grunt-contrib-uglify": {
353
- "version": "0.2.7",
354
- "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-0.2.7.tgz",
355
- "integrity": "sha1-5r2lHgxAoUWfbOrUI8Ze/XJaG/c=",
567
+ "version": "4.0.1",
568
+ "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-4.0.1.tgz",
569
+ "integrity": "sha512-dwf8/+4uW1+7pH72WButOEnzErPGmtUvc8p08B0eQS/6ON0WdeQu0+WFeafaPTbbY1GqtS25lsHWaDeiTQNWPg==",
356
570
  "dev": true,
357
571
  "requires": {
358
- "grunt-lib-contrib": "~0.6.1",
359
- "uglify-js": "~2.4.0"
572
+ "chalk": "^2.4.1",
573
+ "maxmin": "^2.1.0",
574
+ "uglify-js": "^3.5.0",
575
+ "uri-path": "^1.0.0"
360
576
  }
361
577
  },
578
+ "grunt-known-options": {
579
+ "version": "1.1.1",
580
+ "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-1.1.1.tgz",
581
+ "integrity": "sha512-cHwsLqoighpu7TuYj5RonnEuxGVFnztcUqTqp5rXFGYL4OuPFofwC4Ycg7n9fYwvK6F5WbYgeVOwph9Crs2fsQ==",
582
+ "dev": true
583
+ },
362
584
  "grunt-legacy-log": {
363
- "version": "0.1.2",
364
- "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-0.1.2.tgz",
365
- "integrity": "sha1-Fe4Dth4mLhs28Tdi2WeSPNHOUV4=",
585
+ "version": "2.0.0",
586
+ "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-2.0.0.tgz",
587
+ "integrity": "sha512-1m3+5QvDYfR1ltr8hjiaiNjddxGdQWcH0rw1iKKiQnF0+xtgTazirSTGu68RchPyh1OBng1bBUjLmX8q9NpoCw==",
366
588
  "dev": true,
367
589
  "requires": {
368
- "colors": "~0.6.2",
369
- "grunt-legacy-log-utils": "^0.1.1",
590
+ "colors": "~1.1.2",
591
+ "grunt-legacy-log-utils": "~2.0.0",
370
592
  "hooker": "~0.2.3",
371
- "lodash": "~2.4.1",
372
- "underscore.string": "~2.3.3"
373
- },
374
- "dependencies": {
375
- "lodash": {
376
- "version": "2.4.2",
377
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
378
- "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
379
- "dev": true
380
- },
381
- "underscore.string": {
382
- "version": "2.3.3",
383
- "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz",
384
- "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=",
385
- "dev": true
386
- }
593
+ "lodash": "~4.17.5"
387
594
  }
388
595
  },
389
596
  "grunt-legacy-log-utils": {
390
- "version": "0.1.1",
391
- "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz",
392
- "integrity": "sha1-wHBrndkGThFvNvI/5OawSGcsD34=",
597
+ "version": "2.0.1",
598
+ "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-2.0.1.tgz",
599
+ "integrity": "sha512-o7uHyO/J+i2tXG8r2bZNlVk20vlIFJ9IEYyHMCQGfWYru8Jv3wTqKZzvV30YW9rWEjq0eP3cflQ1qWojIe9VFA==",
393
600
  "dev": true,
394
601
  "requires": {
395
- "colors": "~0.6.2",
396
- "lodash": "~2.4.1",
397
- "underscore.string": "~2.3.3"
398
- },
399
- "dependencies": {
400
- "lodash": {
401
- "version": "2.4.2",
402
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz",
403
- "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=",
404
- "dev": true
405
- },
406
- "underscore.string": {
407
- "version": "2.3.3",
408
- "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz",
409
- "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=",
410
- "dev": true
411
- }
602
+ "chalk": "~2.4.1",
603
+ "lodash": "~4.17.10"
412
604
  }
413
605
  },
414
606
  "grunt-legacy-util": {
415
- "version": "0.2.0",
416
- "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz",
417
- "integrity": "sha1-kzJIhNv343qf98Am3/RR2UqeVUs=",
607
+ "version": "1.1.1",
608
+ "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-1.1.1.tgz",
609
+ "integrity": "sha512-9zyA29w/fBe6BIfjGENndwoe1Uy31BIXxTH3s8mga0Z5Bz2Sp4UCjkeyv2tI449ymkx3x26B+46FV4fXEddl5A==",
418
610
  "dev": true,
419
611
  "requires": {
420
- "async": "~0.1.22",
612
+ "async": "~1.5.2",
421
613
  "exit": "~0.1.1",
422
614
  "getobject": "~0.1.0",
423
615
  "hooker": "~0.2.3",
424
- "lodash": "~0.9.2",
425
- "underscore.string": "~2.2.1",
426
- "which": "~1.0.5"
427
- }
428
- },
429
- "grunt-lib-contrib": {
430
- "version": "0.6.1",
431
- "resolved": "https://registry.npmjs.org/grunt-lib-contrib/-/grunt-lib-contrib-0.6.1.tgz",
432
- "integrity": "sha1-P1att9oG6BR5XuJBWw6+X7iQPrs=",
433
- "dev": true,
434
- "requires": {
435
- "zlib-browserify": "0.0.1"
616
+ "lodash": "~4.17.10",
617
+ "underscore.string": "~3.3.4",
618
+ "which": "~1.3.0"
436
619
  }
437
620
  },
438
621
  "grunt-remove-logging": {
@@ -441,12 +624,42 @@
441
624
  "integrity": "sha1-RoZZD3AD4h/cSiHF9zjoizXgCRY=",
442
625
  "dev": true
443
626
  },
627
+ "gzip-size": {
628
+ "version": "3.0.0",
629
+ "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-3.0.0.tgz",
630
+ "integrity": "sha1-VGGI6b3DN/Zzdy+BZgRks4nc5SA=",
631
+ "dev": true,
632
+ "requires": {
633
+ "duplexer": "^0.1.1"
634
+ }
635
+ },
636
+ "has-ansi": {
637
+ "version": "2.0.0",
638
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
639
+ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
640
+ "dev": true,
641
+ "requires": {
642
+ "ansi-regex": "^2.0.0"
643
+ }
644
+ },
645
+ "has-flag": {
646
+ "version": "3.0.0",
647
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
648
+ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
649
+ "dev": true
650
+ },
444
651
  "hooker": {
445
652
  "version": "0.2.3",
446
653
  "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz",
447
654
  "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=",
448
655
  "dev": true
449
656
  },
657
+ "hosted-git-info": {
658
+ "version": "2.7.1",
659
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz",
660
+ "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==",
661
+ "dev": true
662
+ },
450
663
  "htmlparser2": {
451
664
  "version": "3.8.3",
452
665
  "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz",
@@ -461,15 +674,58 @@
461
674
  }
462
675
  },
463
676
  "iconv-lite": {
464
- "version": "0.2.11",
465
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz",
466
- "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=",
467
- "dev": true
677
+ "version": "0.4.24",
678
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
679
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
680
+ "dev": true,
681
+ "requires": {
682
+ "safer-buffer": ">= 2.1.2 < 3"
683
+ }
684
+ },
685
+ "indent-string": {
686
+ "version": "2.1.0",
687
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
688
+ "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=",
689
+ "dev": true,
690
+ "requires": {
691
+ "repeating": "^2.0.0"
692
+ }
693
+ },
694
+ "inflight": {
695
+ "version": "1.0.6",
696
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
697
+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
698
+ "dev": true,
699
+ "requires": {
700
+ "once": "^1.3.0",
701
+ "wrappy": "1"
702
+ }
468
703
  },
469
704
  "inherits": {
470
- "version": "2.0.1",
471
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
472
- "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=",
705
+ "version": "2.0.3",
706
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
707
+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
708
+ "dev": true
709
+ },
710
+ "is-arrayish": {
711
+ "version": "0.2.1",
712
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
713
+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
714
+ "dev": true
715
+ },
716
+ "is-finite": {
717
+ "version": "1.0.2",
718
+ "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz",
719
+ "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=",
720
+ "dev": true,
721
+ "requires": {
722
+ "number-is-nan": "^1.0.0"
723
+ }
724
+ },
725
+ "is-utf8": {
726
+ "version": "0.2.1",
727
+ "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
728
+ "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=",
473
729
  "dev": true
474
730
  },
475
731
  "isarray": {
@@ -478,6 +734,12 @@
478
734
  "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
479
735
  "dev": true
480
736
  },
737
+ "isexe": {
738
+ "version": "2.0.0",
739
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
740
+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
741
+ "dev": true
742
+ },
481
743
  "jquery": {
482
744
  "version": "3.3.1",
483
745
  "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.3.1.tgz",
@@ -489,84 +751,293 @@
489
751
  "integrity": "sha1-Gywnmm7s44ChIWi5JIUmWzWx7/s="
490
752
  },
491
753
  "js-yaml": {
492
- "version": "2.0.5",
493
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz",
494
- "integrity": "sha1-olrmUJmZ6X3yeMZxnaEb0Gh3Q6g=",
754
+ "version": "3.13.1",
755
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
756
+ "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
495
757
  "dev": true,
496
758
  "requires": {
497
- "argparse": "~ 0.1.11",
498
- "esprima": "~ 1.0.2"
759
+ "argparse": "^1.0.7",
760
+ "esprima": "^4.0.0"
499
761
  }
500
762
  },
501
763
  "jshint": {
502
- "version": "2.5.11",
503
- "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.5.11.tgz",
504
- "integrity": "sha1-4tlYWLuxqngwAQii6BCZ+wlWIuA=",
764
+ "version": "2.10.2",
765
+ "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.10.2.tgz",
766
+ "integrity": "sha512-e7KZgCSXMJxznE/4WULzybCMNXNAd/bf5TSrvVEq78Q/K8ZwFpmBqQeDtNiHc3l49nV4E/+YeHU/JZjSUIrLAA==",
505
767
  "dev": true,
506
768
  "requires": {
507
- "cli": "0.6.x",
769
+ "cli": "~1.0.0",
508
770
  "console-browserify": "1.1.x",
509
771
  "exit": "0.1.x",
510
772
  "htmlparser2": "3.8.x",
511
- "minimatch": "1.0.x",
773
+ "lodash": "~4.17.11",
774
+ "minimatch": "~3.0.2",
512
775
  "shelljs": "0.3.x",
513
- "strip-json-comments": "1.0.x",
514
- "underscore": "1.6.x"
776
+ "strip-json-comments": "1.0.x"
777
+ }
778
+ },
779
+ "load-json-file": {
780
+ "version": "1.1.0",
781
+ "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
782
+ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
783
+ "dev": true,
784
+ "requires": {
785
+ "graceful-fs": "^4.1.2",
786
+ "parse-json": "^2.2.0",
787
+ "pify": "^2.0.0",
788
+ "pinkie-promise": "^2.0.0",
789
+ "strip-bom": "^2.0.0"
790
+ }
791
+ },
792
+ "lodash": {
793
+ "version": "4.17.11",
794
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
795
+ "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==",
796
+ "dev": true
797
+ },
798
+ "loud-rejection": {
799
+ "version": "1.6.0",
800
+ "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
801
+ "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=",
802
+ "dev": true,
803
+ "requires": {
804
+ "currently-unhandled": "^0.4.1",
805
+ "signal-exit": "^3.0.0"
806
+ }
807
+ },
808
+ "map-obj": {
809
+ "version": "1.0.1",
810
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
811
+ "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
812
+ "dev": true
813
+ },
814
+ "maxmin": {
815
+ "version": "2.1.0",
816
+ "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-2.1.0.tgz",
817
+ "integrity": "sha1-TTsiCQPZXu5+t6x/qGTnLcCaMWY=",
818
+ "dev": true,
819
+ "requires": {
820
+ "chalk": "^1.0.0",
821
+ "figures": "^1.0.1",
822
+ "gzip-size": "^3.0.0",
823
+ "pretty-bytes": "^3.0.0"
515
824
  },
516
825
  "dependencies": {
517
- "minimatch": {
518
- "version": "1.0.0",
519
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-1.0.0.tgz",
520
- "integrity": "sha1-4N0hILSeG3JM6NcUxSCCKpQ4V20=",
826
+ "ansi-styles": {
827
+ "version": "2.2.1",
828
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
829
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
830
+ "dev": true
831
+ },
832
+ "chalk": {
833
+ "version": "1.1.3",
834
+ "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
835
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
521
836
  "dev": true,
522
837
  "requires": {
523
- "lru-cache": "2",
524
- "sigmund": "~1.0.0"
838
+ "ansi-styles": "^2.2.1",
839
+ "escape-string-regexp": "^1.0.2",
840
+ "has-ansi": "^2.0.0",
841
+ "strip-ansi": "^3.0.0",
842
+ "supports-color": "^2.0.0"
525
843
  }
526
844
  },
527
- "underscore": {
528
- "version": "1.6.0",
529
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz",
530
- "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=",
845
+ "supports-color": {
846
+ "version": "2.0.0",
847
+ "resolved": "http://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
848
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
531
849
  "dev": true
532
850
  }
533
851
  }
534
852
  },
535
- "lodash": {
536
- "version": "0.9.2",
537
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz",
538
- "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=",
539
- "dev": true
853
+ "meow": {
854
+ "version": "3.7.0",
855
+ "resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
856
+ "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
857
+ "dev": true,
858
+ "requires": {
859
+ "camelcase-keys": "^2.0.0",
860
+ "decamelize": "^1.1.2",
861
+ "loud-rejection": "^1.0.0",
862
+ "map-obj": "^1.0.1",
863
+ "minimist": "^1.1.3",
864
+ "normalize-package-data": "^2.3.4",
865
+ "object-assign": "^4.0.1",
866
+ "read-pkg-up": "^1.0.1",
867
+ "redent": "^1.0.0",
868
+ "trim-newlines": "^1.0.0"
869
+ }
540
870
  },
541
- "lru-cache": {
542
- "version": "2.7.3",
543
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz",
544
- "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=",
871
+ "minimatch": {
872
+ "version": "3.0.4",
873
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
874
+ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
875
+ "dev": true,
876
+ "requires": {
877
+ "brace-expansion": "^1.1.7"
878
+ }
879
+ },
880
+ "minimist": {
881
+ "version": "1.2.0",
882
+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
883
+ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
545
884
  "dev": true
546
885
  },
547
- "minimatch": {
548
- "version": "0.2.14",
549
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz",
550
- "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=",
886
+ "mkdirp": {
887
+ "version": "0.5.1",
888
+ "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
889
+ "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
551
890
  "dev": true,
552
891
  "requires": {
553
- "lru-cache": "2",
554
- "sigmund": "~1.0.0"
892
+ "minimist": "0.0.8"
893
+ },
894
+ "dependencies": {
895
+ "minimist": {
896
+ "version": "0.0.8",
897
+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
898
+ "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
899
+ "dev": true
900
+ }
555
901
  }
556
902
  },
557
903
  "nopt": {
558
- "version": "1.0.10",
559
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz",
560
- "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=",
904
+ "version": "3.0.6",
905
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
906
+ "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
561
907
  "dev": true,
562
908
  "requires": {
563
909
  "abbrev": "1"
564
910
  }
565
911
  },
912
+ "normalize-package-data": {
913
+ "version": "2.5.0",
914
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
915
+ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
916
+ "dev": true,
917
+ "requires": {
918
+ "hosted-git-info": "^2.1.4",
919
+ "resolve": "^1.10.0",
920
+ "semver": "2 || 3 || 4 || 5",
921
+ "validate-npm-package-license": "^3.0.1"
922
+ }
923
+ },
924
+ "number-is-nan": {
925
+ "version": "1.0.1",
926
+ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
927
+ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
928
+ "dev": true
929
+ },
930
+ "object-assign": {
931
+ "version": "4.1.1",
932
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
933
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
934
+ "dev": true
935
+ },
936
+ "once": {
937
+ "version": "1.4.0",
938
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
939
+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
940
+ "dev": true,
941
+ "requires": {
942
+ "wrappy": "1"
943
+ }
944
+ },
945
+ "parse-json": {
946
+ "version": "2.2.0",
947
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
948
+ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
949
+ "dev": true,
950
+ "requires": {
951
+ "error-ex": "^1.2.0"
952
+ }
953
+ },
954
+ "path-exists": {
955
+ "version": "2.1.0",
956
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
957
+ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
958
+ "dev": true,
959
+ "requires": {
960
+ "pinkie-promise": "^2.0.0"
961
+ }
962
+ },
963
+ "path-is-absolute": {
964
+ "version": "1.0.1",
965
+ "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
966
+ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
967
+ "dev": true
968
+ },
969
+ "path-parse": {
970
+ "version": "1.0.6",
971
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
972
+ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
973
+ "dev": true
974
+ },
975
+ "path-type": {
976
+ "version": "1.1.0",
977
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
978
+ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
979
+ "dev": true,
980
+ "requires": {
981
+ "graceful-fs": "^4.1.2",
982
+ "pify": "^2.0.0",
983
+ "pinkie-promise": "^2.0.0"
984
+ }
985
+ },
986
+ "pify": {
987
+ "version": "2.3.0",
988
+ "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
989
+ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
990
+ "dev": true
991
+ },
992
+ "pinkie": {
993
+ "version": "2.0.4",
994
+ "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
995
+ "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=",
996
+ "dev": true
997
+ },
998
+ "pinkie-promise": {
999
+ "version": "2.0.1",
1000
+ "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
1001
+ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
1002
+ "dev": true,
1003
+ "requires": {
1004
+ "pinkie": "^2.0.0"
1005
+ }
1006
+ },
1007
+ "pretty-bytes": {
1008
+ "version": "3.0.1",
1009
+ "resolved": "http://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz",
1010
+ "integrity": "sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8=",
1011
+ "dev": true,
1012
+ "requires": {
1013
+ "number-is-nan": "^1.0.0"
1014
+ }
1015
+ },
1016
+ "read-pkg": {
1017
+ "version": "1.1.0",
1018
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
1019
+ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
1020
+ "dev": true,
1021
+ "requires": {
1022
+ "load-json-file": "^1.0.0",
1023
+ "normalize-package-data": "^2.3.2",
1024
+ "path-type": "^1.0.0"
1025
+ }
1026
+ },
1027
+ "read-pkg-up": {
1028
+ "version": "1.0.1",
1029
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
1030
+ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
1031
+ "dev": true,
1032
+ "requires": {
1033
+ "find-up": "^1.0.0",
1034
+ "read-pkg": "^1.0.0"
1035
+ }
1036
+ },
566
1037
  "readable-stream": {
567
- "version": "1.1.13",
568
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz",
569
- "integrity": "sha1-9u73ZPUUyJ4rniMUanW6EGdW0j4=",
1038
+ "version": "1.1.14",
1039
+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
1040
+ "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
570
1041
  "dev": true,
571
1042
  "requires": {
572
1043
  "core-util-is": "~1.0.0",
@@ -575,10 +1046,63 @@
575
1046
  "string_decoder": "~0.10.x"
576
1047
  }
577
1048
  },
1049
+ "redent": {
1050
+ "version": "1.0.0",
1051
+ "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
1052
+ "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=",
1053
+ "dev": true,
1054
+ "requires": {
1055
+ "indent-string": "^2.1.0",
1056
+ "strip-indent": "^1.0.1"
1057
+ }
1058
+ },
1059
+ "repeating": {
1060
+ "version": "2.0.1",
1061
+ "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
1062
+ "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=",
1063
+ "dev": true,
1064
+ "requires": {
1065
+ "is-finite": "^1.0.0"
1066
+ }
1067
+ },
1068
+ "resolve": {
1069
+ "version": "1.10.0",
1070
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz",
1071
+ "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==",
1072
+ "dev": true,
1073
+ "requires": {
1074
+ "path-parse": "^1.0.6"
1075
+ }
1076
+ },
578
1077
  "rimraf": {
579
- "version": "2.2.8",
580
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz",
581
- "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=",
1078
+ "version": "2.6.3",
1079
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
1080
+ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
1081
+ "dev": true,
1082
+ "requires": {
1083
+ "glob": "^7.1.3"
1084
+ },
1085
+ "dependencies": {
1086
+ "glob": {
1087
+ "version": "7.1.3",
1088
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
1089
+ "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
1090
+ "dev": true,
1091
+ "requires": {
1092
+ "fs.realpath": "^1.0.0",
1093
+ "inflight": "^1.0.4",
1094
+ "inherits": "2",
1095
+ "minimatch": "^3.0.4",
1096
+ "once": "^1.3.0",
1097
+ "path-is-absolute": "^1.0.0"
1098
+ }
1099
+ }
1100
+ }
1101
+ },
1102
+ "safer-buffer": {
1103
+ "version": "2.1.2",
1104
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1105
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
582
1106
  "dev": true
583
1107
  },
584
1108
  "sax": {
@@ -586,93 +1110,185 @@
586
1110
  "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
587
1111
  "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
588
1112
  },
1113
+ "semver": {
1114
+ "version": "5.7.0",
1115
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz",
1116
+ "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==",
1117
+ "dev": true
1118
+ },
589
1119
  "shelljs": {
590
1120
  "version": "0.3.0",
591
1121
  "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz",
592
1122
  "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=",
593
1123
  "dev": true
594
1124
  },
595
- "sigmund": {
596
- "version": "1.0.1",
597
- "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz",
598
- "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=",
1125
+ "signal-exit": {
1126
+ "version": "3.0.2",
1127
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
1128
+ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
599
1129
  "dev": true
600
1130
  },
601
1131
  "source-map": {
602
- "version": "0.1.34",
603
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.34.tgz",
604
- "integrity": "sha1-p8/omux7FoLDsZjQrPtH19CQVms=",
1132
+ "version": "0.5.7",
1133
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
1134
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
1135
+ "dev": true
1136
+ },
1137
+ "spdx-correct": {
1138
+ "version": "3.1.0",
1139
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
1140
+ "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==",
605
1141
  "dev": true,
606
1142
  "requires": {
607
- "amdefine": ">=0.0.4"
1143
+ "spdx-expression-parse": "^3.0.0",
1144
+ "spdx-license-ids": "^3.0.0"
608
1145
  }
609
1146
  },
1147
+ "spdx-exceptions": {
1148
+ "version": "2.2.0",
1149
+ "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz",
1150
+ "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==",
1151
+ "dev": true
1152
+ },
1153
+ "spdx-expression-parse": {
1154
+ "version": "3.0.0",
1155
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
1156
+ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
1157
+ "dev": true,
1158
+ "requires": {
1159
+ "spdx-exceptions": "^2.1.0",
1160
+ "spdx-license-ids": "^3.0.0"
1161
+ }
1162
+ },
1163
+ "spdx-license-ids": {
1164
+ "version": "3.0.4",
1165
+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.4.tgz",
1166
+ "integrity": "sha512-7j8LYJLeY/Yb6ACbQ7F76qy5jHkp0U6jgBfJsk97bwWlVUnUWsAgpyaCvo17h0/RQGnQ036tVDomiwoI4pDkQA==",
1167
+ "dev": true
1168
+ },
1169
+ "sprintf-js": {
1170
+ "version": "1.1.2",
1171
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
1172
+ "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
1173
+ "dev": true
1174
+ },
610
1175
  "string_decoder": {
611
1176
  "version": "0.10.31",
612
1177
  "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
613
1178
  "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
614
1179
  "dev": true
615
1180
  },
1181
+ "strip-ansi": {
1182
+ "version": "3.0.1",
1183
+ "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
1184
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
1185
+ "dev": true,
1186
+ "requires": {
1187
+ "ansi-regex": "^2.0.0"
1188
+ }
1189
+ },
1190
+ "strip-bom": {
1191
+ "version": "2.0.0",
1192
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
1193
+ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
1194
+ "dev": true,
1195
+ "requires": {
1196
+ "is-utf8": "^0.2.0"
1197
+ }
1198
+ },
1199
+ "strip-indent": {
1200
+ "version": "1.0.1",
1201
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
1202
+ "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=",
1203
+ "dev": true,
1204
+ "requires": {
1205
+ "get-stdin": "^4.0.1"
1206
+ }
1207
+ },
616
1208
  "strip-json-comments": {
617
1209
  "version": "1.0.4",
618
1210
  "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz",
619
1211
  "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=",
620
1212
  "dev": true
621
1213
  },
1214
+ "supports-color": {
1215
+ "version": "5.5.0",
1216
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
1217
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
1218
+ "dev": true,
1219
+ "requires": {
1220
+ "has-flag": "^3.0.0"
1221
+ }
1222
+ },
1223
+ "trim-newlines": {
1224
+ "version": "1.0.0",
1225
+ "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
1226
+ "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=",
1227
+ "dev": true
1228
+ },
622
1229
  "uglify-js": {
623
- "version": "2.4.24",
624
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz",
625
- "integrity": "sha1-+tV1XB4Vd2WLsG/5q25UjJW+vW4=",
1230
+ "version": "3.5.4",
1231
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.4.tgz",
1232
+ "integrity": "sha512-GpKo28q/7Bm5BcX9vOu4S46FwisbPbAmkkqPnGIpKvKTM96I85N6XHQV+k4I6FA2wxgLhcsSyHoNhzucwCflvA==",
626
1233
  "dev": true,
627
1234
  "requires": {
628
- "async": "~0.2.6",
629
- "source-map": "0.1.34",
630
- "uglify-to-browserify": "~1.0.0",
631
- "yargs": "~3.5.4"
1235
+ "commander": "~2.20.0",
1236
+ "source-map": "~0.6.1"
632
1237
  },
633
1238
  "dependencies": {
634
- "async": {
635
- "version": "0.2.10",
636
- "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz",
637
- "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=",
1239
+ "source-map": {
1240
+ "version": "0.6.1",
1241
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
1242
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
638
1243
  "dev": true
639
1244
  }
640
1245
  }
641
1246
  },
642
- "uglify-to-browserify": {
643
- "version": "1.0.2",
644
- "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",
645
- "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",
646
- "dev": true
1247
+ "underscore.string": {
1248
+ "version": "3.3.5",
1249
+ "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.5.tgz",
1250
+ "integrity": "sha512-g+dpmgn+XBneLmXXo+sGlW5xQEt4ErkS3mgeN2GFbremYeMBSJKr9Wf2KJplQVaiPY/f7FN6atosWYNm9ovrYg==",
1251
+ "dev": true,
1252
+ "requires": {
1253
+ "sprintf-js": "^1.0.3",
1254
+ "util-deprecate": "^1.0.2"
1255
+ }
647
1256
  },
648
- "underscore": {
649
- "version": "1.7.0",
650
- "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz",
651
- "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=",
1257
+ "uri-path": {
1258
+ "version": "1.0.0",
1259
+ "resolved": "https://registry.npmjs.org/uri-path/-/uri-path-1.0.0.tgz",
1260
+ "integrity": "sha1-l0fwGDWJM8Md4PzP2C0TjmcmLjI=",
652
1261
  "dev": true
653
1262
  },
654
- "underscore.string": {
655
- "version": "2.2.1",
656
- "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz",
657
- "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=",
1263
+ "util-deprecate": {
1264
+ "version": "1.0.2",
1265
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1266
+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
658
1267
  "dev": true
659
1268
  },
660
- "which": {
661
- "version": "1.0.9",
662
- "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz",
663
- "integrity": "sha1-RgwdoPgQED0DIam2M6+eV15kSG8=",
664
- "dev": true
1269
+ "validate-npm-package-license": {
1270
+ "version": "3.0.4",
1271
+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
1272
+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
1273
+ "dev": true,
1274
+ "requires": {
1275
+ "spdx-correct": "^3.0.0",
1276
+ "spdx-expression-parse": "^3.0.0"
1277
+ }
665
1278
  },
666
- "window-size": {
667
- "version": "0.1.0",
668
- "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz",
669
- "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=",
670
- "dev": true
1279
+ "which": {
1280
+ "version": "1.3.1",
1281
+ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
1282
+ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
1283
+ "dev": true,
1284
+ "requires": {
1285
+ "isexe": "^2.0.0"
1286
+ }
671
1287
  },
672
- "wordwrap": {
673
- "version": "0.0.2",
674
- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
675
- "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
1288
+ "wrappy": {
1289
+ "version": "1.0.2",
1290
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1291
+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
676
1292
  "dev": true
677
1293
  },
678
1294
  "xml-js": {
@@ -682,24 +1298,6 @@
682
1298
  "requires": {
683
1299
  "sax": "^1.2.4"
684
1300
  }
685
- },
686
- "yargs": {
687
- "version": "3.5.4",
688
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.5.4.tgz",
689
- "integrity": "sha1-2K/49mXpTDS9JZvevRv68N3TU2E=",
690
- "dev": true,
691
- "requires": {
692
- "camelcase": "^1.0.2",
693
- "decamelize": "^1.0.0",
694
- "window-size": "0.1.0",
695
- "wordwrap": "0.0.2"
696
- }
697
- },
698
- "zlib-browserify": {
699
- "version": "0.0.1",
700
- "resolved": "https://registry.npmjs.org/zlib-browserify/-/zlib-browserify-0.0.1.tgz",
701
- "integrity": "sha1-T6akXQDbwV8xikr6HZr8Aljhdsw=",
702
- "dev": true
703
1301
  }
704
1302
  }
705
1303
  }