// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0 !function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=14)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=window,a=(r.$,r.jQuery)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="localhost"===location.hostname||"www-"===location.host.substr(0,4)||"cat-"===location.host.substr(0,4)||"review-"===location.host.substr(0,7)||"webdev-"===location.host.substr(0,7)||"ia-petabox-"===location.host.substr(0,11)?console.log.bind(console):function(){}},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}));n(32);var r="/ext/jw/8",a=window.jwplayer},,,function(t,e,n){"use strict";function r(t){for(var e="".concat(t).split("."),n=e[0],r=e.length>1?".".concat(e[1]):"",a=/(\d+)(\d{3})/;a.test(n);)n=n.replace(a,"$1,$2");return n+r}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=e&&""===location.search?location.href.slice(1).split("&"):location.search.slice(1).split("&"),r=0;r0?unescape(a):""}return""}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return Q}));var r=n(0);r.a.cookie=function(t,e,n){if(void 0!==e){n=n||{},null===e&&(e="",n.expires=-1);var a,i="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString))"number"==typeof n.expires?(a=new Date).setTime(a.getTime()+24*n.expires*60*60*1e3):a=n.expires,i="; expires="+a.toUTCString();var o=n.path?"; path="+n.path:"",c=n.domain?"; domain="+n.domain:"",u=n.secure?"; secure":"";return navigator.userAgent.indexOf("MSIE 9.")>0&&(c="",o=""),document.cookie=[t,"=",encodeURIComponent(e),i,o,c,u].join(""),!0}var s=null;if(document.cookie&&""!=document.cookie)for(var l=document.cookie.split(";"),f=0;ft.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?Math.floor((n-c)/86400):0,l=a>0?Math.floor((a-c)/86400):t.c.maxSlide,f=Object(r.a)("
").attr({id:"slider"}).css({width:t.c.realGraphWidth,position:"absolute",top:t.c.GRAPH_HEIGHT-10,left:0,zIndex:1});Object(r.a)("#timegraf").append(f),f.append("
"),Object(s.a)(u,l),Object(r.a)("#slider").slider({range:!0,max:t.c.maxSlide,values:[u,l],slide:function(e,n){var a=i.getTime(),o=new Date(a),c=new Date(a);o.setDate(o.getDate()+n.values[0]),c.setDate(c.getDate()+n.values[1]),Object(r.a)("#from ").html(r.a.datepicker.formatDate("M d",o)),Object(r.a)("#to ").html(r.a.datepicker.formatDate("M d",c)),Object(r.a)("#fromB").html(r.a.datepicker.formatDate("yymmdd",o)),Object(r.a)("#toB ").html(r.a.datepicker.formatDate("yymmdd",c)),Object(r.a)("#datepickL").val(r.a.datepicker.formatDate("mm/dd/yy",o)),Object(r.a)("#datepickR").val(r.a.datepicker.formatDate("mm/dd/yy",c)),clearTimeout(t.hideL),clearTimeout(t.hideR);var u={left:Object(r.a)("#slider .ptrL").offset().left-Object(r.a)("#from").width()+10},s={left:Object(r.a)("#slider .ptrR").offset().left};Object(r.a)("#from").offset(u).show(0,(function(){t.hideL=setTimeout((function(){return Object(r.a)("#from").hide("slow")}),2e3)})),Object(r.a)("#to ").offset(s).show(0,(function(){t.hideR=setTimeout((function(){return Object(r.a)("#to ").hide("slow")}),2e3)})),t.pinkme(n.values[0],n.values[1])},stop:function(e,n){t.adjust(n.values[0],n.values[1]),t.timechanged=!0;var a=location.href.replace(/^http[s]*:/,""),i="//".concat(location.host).concat(t.c.q).concat(t.args());a!==i&&(Object(s.a)(a),Object(s.a)(i),Object(r.a)("#opscreen1M").remove(),Object(r.a)("body").append(Object(r.a)('
')),Object(r.a)("#opscreen1M").show("slow",(function(){location.href=i})))}}),(u>0||l>0)&&t.pinkme(u,l)}},{key:"pinkme",value:function(e,n){var a=Math.round(t.c.GRAPH_PADDING/2),i=Math.round(e/t.c.maxSlide*t.c.realGraphWidth)+2,o=Math.round(n/t.c.maxSlide*t.c.realGraphWidth)-2+a,c="rect(0px,".concat(o,"px,").concat(t.c.GRAPH_HEIGHT,"px,").concat(i,"px)");Object(s.a)(c),Object(r.a)("#timegraf-clip").css("clip",c);var u={"data-title":"click and drag this to change time period","data-toggle":"tooltip","data-placement":"bottom"};Object(r.a)(Object(r.a)("#slider a").get(0)).attr(u).removeClass("ui-state-default").addClass("ptrL"),Object(r.a)(Object(r.a)("#slider a").get(1)).attr(u).removeClass("ui-state-default").addClass("ptrR"),t.adjust(e,n)}},{key:"adjust",value:function(t,e){var n=e-t<2;Object(s.a)("left:",t,"rite:",e),Object(r.a)("#slider .ui-widget-header").css("borderColor","#d33682"),n?(Object(r.a)("#to").hide(),Object(r.a)("#slider .ui-widget-header").css("border-left-width",0)):Object(r.a)("#slider .ui-widget-header").css("border-left-width",2)}},{key:"args",value:function(){if(!t.timechanged)return"";var e=Object(r.a)("#fromB").text().trim(),n=Object(r.a)("#toB ").text().trim(),a=e===n?"":"-".concat(n);return"&time=".concat(e).concat(a)}}],(n=null)&&b(e.prototype,n),a&&b(e,a),t}();Object(r.a)((function(){Object(r.a)(".js-timegraf").each((function(t,e){var n=p(JSON.parse(Object(r.a)(e).val()),7),a=n[0],i=n[1],o=n[2],c=n[3],u=n[4],s=n[5],l=n[6];v.setup(a,i,o,new Date(c,0,1),new Date(u,s,l))}))}));var m=n(23);function g(t,e){for(var n=0;n=50?"50+":u;i.html(s),0!==u&&(a.removeClass("empty"),o.attr("src","/services/img/".concat(n[0])),o.load((function(){4==o.width()/o.height()&&c.addClass("is-waveform")})))}}])&&g(e.prototype,n),a&&g(e,a),t}();Object(r.a)((function(){var t=Object(r.a)(".related-music-table");if(t.length){var e=new y(t);setTimeout((function(){e.startListener()}),5e3)}Object(r.a)("#related-music-more-info-btn").on("click",(function(){return Object(r.a)("#related-music-more-info-content").toggle(),!1}))}));var j=n(16);function O(t,e){for(var n=0;n div").toggle(),Object(r.a)(".item-ia .manage-check, #manage-help").remove(),Object(r.a)(".item-ia").off("contextmenu");else{if(Object(r.a)("#manage-help").length&&!Object(r.a)(".item-ia .hov").length)return Object(r.a)(".item-ia").removeClass("manage-item").unbind("click"),Object(r.a)(".columns-items .co-top-row > div").toggle(),Object(r.a)(".item-ia .manage-check, #manage-help").remove(),void Object(r.a)(".item-ia").off("contextmenu");Object(r.a)(".columns-items .co-top-row").prepend('\n")),Object(r.a)(".columns-items .co-top-row > div").toggle(),Object(r.a)(".item-ia.task-pending").bind("click",t.tile_clicked),Object(r.a)(".item-ia:not(.mobile-header):not(.new-item):not(.new-list):not(.task-pending)".concat(o&&!i?":not(.account-ia)":"").concat(""!==u?':not([data-id="fav-'.concat(u,'"])'):"")).addClass("manage-item").bind("click",t.tile_clicked).append(t.checkbox(a?"include item for item management":"remove this item from list")),Object(r.a)(".item-ia").on("contextmenu",(function(t){var e=Object(r.a)(t.target).find("a:first").attr("href")||Object(r.a)(t.target).parents("a").attr("href");Object(s.a)("right-click",e),window.open(e,"_blank")}))}else alert("removal feature only works for favorites and uploads")}},{key:"remove_favorite_item",value:function(e){var n=Object(r.a)(e),a=n.data("id"),i=n.data("fav-collection"),o=location.protocol.concat("//",location.host,"/details/",i).concat("?remove_item=".concat(encodeURIComponent(a),"&kind=favorite"));return n.removeClass("favorited"),t.update_favorite_count(!1),r.a.get(o,(function(){var e=n.data().target;n.attr({"data-original-title":"Favorite"}),t.toggle_favorite_icon(n);var a={title:"Unfavorited",body:'
'};Q.modal_add(e,a),Object(r.a)(e).modal("show"),Object(r.a)(e.concat(" .modal-dialog")).center(),setTimeout((function(){return Object(r.a)(e).modal("hide")}),Q.modalInterval),Object(r.a)(e).on("hidden.bs.modal",(function(){Object(r.a)(e).remove()}))})),!1}},{key:"checkbox",value:function(t){return'\n
\n \n
')}},{key:"tile_clicked",value:function(t){var e=Object(r.a)(t.target);if("checkbox"===e.attr("type"))return!0;t.stopPropagation(),t.preventDefault();var n=e.parents(".item-ia").find(".manage-check input");return n.prop("checked",!n.prop("checked")),!1}},{key:"toggle_checkboxes",value:function(){return Object(r.a)(".manage-check input").prop("checked",(function(t,e){return!e})),!1}},{key:"remove_items_modal",value:function(e){var n="";Object(r.a)(".item-ia[data-id]:has(:checked)").each((function(t,e){var a=Object(r.a)(e),i=a.find(".C2 a").text().trim();n+='\n
\n
\n '.concat(a.find(".pubdate > :first").text(),"\n
\n
\n ").concat(i.length?i:"[untitled]","\n
\n
\n
\n ")}));var a=""===n?"No items selected":"Are you sure you want to remove these items?";""===n?n='\n
\n Please select some items using checkboxes from the prior screen to remove.\n
':n+='\n '),Q.modal_add(t.modalID,{title:a,body:n,headerClass:""}).modal("show")}},{key:"checked_ids",value:function(){return Object(r.a)(".item-ia[data-id]:has(:checked)").toArray().reduce((function(t,e){var n=Object(r.a)(e).data().id;return t.concat(t?",":"",n)}),"")}},{key:"to_item_manager",value:function(){var e=t.checked_ids();if(Object(s.a)("to_item_manager:",e),""!==e){var n=Object(r.a)('\n
\n \n
'));Object(r.a)("body").append(n),n.submit()}return!1}},{key:"confirmed_dark_items",value:function(){var e={identifier:t.checked_ids(),admin:"make_dark","curation[state]":"dark","curation[comment]":"from ".concat(location.pathname)};r.a.post("/manage/",e,t.update_tiles)}},{key:"confirmed_remove_favorites",value:function(){var e=t.checked_ids(),n=location.href.replace(/#.*$/,"").concat("?kind=favorite&remove_item=".concat(encodeURIComponent(e)));return r.a.get(n,t.update_tiles),!1}},{key:"update_tiles",value:function(){Object(r.a)(".item-ia[data-id]:has(:checked)").remove(),Q.tiler(),Object(r.a)(t.modalID).modal("hide")}},{key:"decorate_pendings",value:function(t){t.length&&(Object(s.a)("pending",t),t.forEach((function(t){return Object(r.a)(".item-ia[data-id=".concat(t,"]")).addClass("task-pending")})))}},{key:"toggle_list_status",value:function(e){return Object(r.a)(e).hasClass("favorited")?t.remove_favorite_item(e,!0):Q.modal_go(e,{favorite:1}),!1}},{key:"toggle_favorite_icon",value:function(t){t.length&&t.find("span:eq(0)").toggleClass("iconochive-No_Favorite iconochive-favorite")}},{key:"update_favorite_count",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=Object(r.a)(".item-stats-summary__count")[1];if(e){var n=Number(Object(r.a)(e).text().trim().replace(/,/g,""));t?n+=1:n-=1,Object(r.a)(e).text(n.toLocaleString())}}}],(n=null)&&O(e.prototype,n),a&&O(e,a),t}();Object(r.a)((function(){if("web.archive.org"!==window.location.hostname){w.modalID="#confirm-remove-items",w.css(),Object(r.a)("body").hasClass("manage")&&w.manage_items(1);var t=Object(r.a)(".js-manage-toggle_list_status");t.length&&t.bind("click",(function(e){e.preventDefault(),w.toggle_list_status(t[0])}))}})),window.Manage=w;var k=n(22),_=function(){$(document.body).on("click",(function(t){var e=$(".dropdown-ia"),n=t.target;e.is(n)||0!==e.has(n).length||0!==$(".".concat("open")).has(n).length||e.removeClass("open")}))},x=function(t){t.on("click",(function(){return t.parent().toggleClass("open"),!1}))};function C(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0}catch(t){return!1}},init:function(){this.bindEvents(),this.checkVisibility()}},P=n(13),E=n(12),A=n(15),I=n(9);function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e\n ').concat(n,'\n\n \n \n Region\n Country\n Views\n \n \n\n \n ').concat(o.map((function(t){return'\n \n ').concat(t.state.formattedName,"\n ").concat(t.country.formattedName,'\n ').concat(t.formattedCount,"\n ")})).join(""),"\n \n ")}},{key:"setUpTopRegionsTable",value:function(){var e=Object(r.a)(".js-top-regions-table"),n=e.find(".js-top-regions-message"),a=n.text();if(e&&n){n.html(N.a.LoadingMessage({message:"loading data"}));var i={uaKinds:["non_robot","unrecognized"]};e.data("days")&&(i.days=parseInt(e.data("days"),10)),e.data("limit")&&(i.limit=parseInt(e.data("limit"),10)),t.StatsApiClient.getGeoCounts(e.data("identifier"),i).then((function(n){e.html(t.RegionsTable({caption:e.data("caption"),captionClass:e.data("captionClass"),counts:n}))}),(function(){n.text(a)}))}}}]),t}();function B(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=e.uaKinds,a=void 0===r?["robot","non_robot","unrecognized"]:r;if(!t.counts_geo)throw new RangeError("API response doesn't contain property 'counts_geo'.");function i(t){return-1!==a.indexOf(t)}for(var o={},c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=e.days,o=void 0===n?30:n,c=e.limit,u=void 0===c?100:c,s=e.uaKinds,l=void 0===s?["robot","non_robot","unrecognized"]:s,f="".concat(i,"/detail/collection/").concat(t,"/").concat(o);return r.a.get(f).then((function(t){try{return a(t,{uaKinds:l}).sort((function(t,e){return t.count=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){c=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function U(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||X(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t){return function(t){if(Array.isArray(t))return G(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||X(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n
Air date
').concat(a,"
")):Object(r.a)(t).parent().append('

Show

').concat(a,"
"))})),!1}},{key:"paramsToJSON",value:function(){return Object(j.a)()}},{key:"nav_tophat_setup",value:function(){Object(r.a)("#nav-tophat").length&&(t.isTouchDevice()&&Object(r.a)("body").addClass("touch"),Object(r.a)("#nav-tophat").on("show.bs.collapse",(function(){return Object(r.a)("#navwrap1").addClass("hatted")})).on("hide.bs.collapse",(function(){return Object(r.a)("#navwrap1").removeClass("hatted")})),Object(r.a)(".navbar a[data-top-kind]").on("click",(function(t){var e=!Object(r.a)("#nav-tophat-helper:visible").length,n=Object(r.a)("#nav-tophat").hasClass("in"),a=this,i=Object(r.a)(t.target).attr("data-top-kind")||Object(r.a)(t.currentTarget).attr("data-top-kind"),o=Object(r.a)(".navbar .dropdown-ia.hatted a").attr("data-top-kind");return e&&n&&o!==i||(Object(r.a)(".toprow").hide(),Object(r.a)(".toprow.".concat(i)).show()),n||Object(r.a)("#nav-tophat").collapse("show"),void 0!==o&&Object(s.a)("isnow",o),Object(s.a)("shouldB",i),o===i?(Object(r.a)("#nav-tophat").collapse("hide"),!1):e&&n&&o!==i&&void 0!==o?(Object(r.a)("#nav-tophat").one("hidden.bs.collapse",(function(){setTimeout((function(){return Object(r.a)(a).click()}),100)})),Object(r.a)("#nav-tophat").collapse("hide"),!1):(window.archive_analytics&&archive_analytics.send_event("TopNav","MediaIcon-".concat(i)),Object(r.a)(".navbar .dropdown-ia").removeClass("hatted").has(".".concat(i)).addClass("hatted"),Object(r.a)("#nav-tophat").on("hidden.bs.collapse",(function(){return Object(r.a)(".navbar .dropdown-ia").removeClass("hatted")})),!1)})),Object(r.a)(document).on("click.tophat.nixer",(function(t){var e,n=Object(r.a)(t.target);"nav-wb-url"===n.attr("id")||(e=t.target,Object(r.a)(e).parents("#navwrap1").length)||n.is("a")||n.hasClass("item-img")||n.hasClass("item-ia")||Object(r.a)("#nav-tophat.in").collapse("hide")})))}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch}},{key:"footer",value:function(){t.isTouchDevice()||void 0===r.a.fn.tooltip||Object(r.a)('.navbar [data-toggle="tooltip"], .container-ia [data-toggle="tooltip"], #cols [data-toggle="tooltip"], #tvbanner [data-toggle="tooltip"]').tooltip({})}},{key:"wrapdark_watcher",value:function(){if(t.$sharedown||(t.$sharedown=Object(r.a)("#sharedown"),t.$wrapdark=Object(r.a)("#wrapdark")),t.wrapdark_watcher_ptr||(t.wrapdark_watcher_ptr=setInterval(t.wrapdark_watcher,1e3)),t.$sharedown.length&&t.$wrapdark.length){var e=t.$sharedown.offset().top+t.$sharedown.find(".panel-heading").innerHeight();parseInt(t.$wrapdark.css("height"),10)!==e&&(t.$wrapdark.css({height:e}).show(),Object(s.a)(" WRAPDARK-ED to ",e))}else clearInterval(t.wrapdark_watcher_ptr)}},{key:"mute_click",value:function(){var e=!r.a.cookie("unmute");if(this.emulator)this.emulator.setMute(!e);else{var n=Object(I.b)("jw6");if(n){var a=n.getVolume();a?(t.mute_click_prior_volume=a,n.setVolume(0)):n.setVolume(void 0===t.mute_click_prior_volume?100:t.mute_click_prior_volume)}}return Object(r.a)("#theatre-ia .iconochive-mute, #theatre-ia .iconochive-unmute").toggle(),e?r.a.cookie("unmute",1,{path:"/details",expires:30}):r.a.cookie("unmute",null,{path:"/details"}),!1}},{key:"emulate_setup",value:function(e){e.toString=function(){return e.identifier},t.emulator=new IALoader(Object(r.a)("#canvas").get(0),e,null),Object(r.a)("#theatre-ia .iconochive-unmute, #theatre-ia .iconochive-mute").hide(),r.a.cookie("unmute")?(Object(r.a)("#theatre-ia .iconochive-unmute").show(),t.emulator.unmute()):(Object(r.a)("#theatre-ia .iconochive-mute").show(),t.emulator.mute()),t.theatre_controls_position(),Object(r.a)(window).on("resize orientationchange",(function(){clearTimeout(t.theatre_controls_position_throttler),t.theatre_controls_position_throttler=setTimeout(t.theatre_controls_position,250)}))}},{key:"emulate",value:function(){return Object(r.a)(".ui-keyboard").prepend('\n ').appendTo(Object(r.a)("#emulate .posrel")).addClass("showing"),Object(r.a)("#jsmessSS").fadeOut("slow"),Object(r.a)("#canvasholder").css("visibility","visible"),t.emulator.start({hasCustomCSS:!0}),Object(r.a)("#gofullscreen").on("click",t.emulator.requestFullScreen),setTimeout(t.theatre_controls_position,100),setTimeout(t.theatre_controls_position,500),setTimeout(t.theatre_controls_position,3e3),setTimeout(t.theatre_controls_position,1e4),!1}},{key:"theatre_controls_position",value:function(t,e,n,a){var i=t,o=a&&!t;if(o||(t||(i=Object(r.a)("#canvas")),i.length)){var c=o?a:i.height(),u=o?n:i.width();o||void 0===e||Object(r.a)("#theatre-controls").offset({top:e});var l=Math.round((Object(r.a)("#theatre-ia-wrap").width()-Object(r.a)("#theatre-controls").width()-u)/2);Object(s.a)("width",u),Object(s.a)("right_gutter_width",l),Object(r.a)("#theatre-controls").css({height:c,visibility:"visible",right:Math.max(20,l/2)})}}},{key:"booksize",value:function(){if(Object(r.a)("#texty").length){t.theatresize();var e=Object(r.a)("#texty iframe"),n=function(){var t=Object(r.a)(e.get(0).contentDocument);return t.find("#BookReader").length>0&&(t.find("body, #BookReader").css("background-color","transparent"),!0)};if(!n())var a=setInterval((function(){n()&&clearInterval(a)}),200);if(void 0===Object(r.a)("#texty").data("lendable-book")&&!t.booksize_controls_hidden){t.booksize_controls();var i=setInterval((function(){t.booksize_controls_hidden?clearInterval(i):t.booksize_controls()}),200)}}}},{key:"booksize_controls",value:function(){var e=Object(r.a)("iframe:first");if(e.length){var n=Object(r.a)(e.get(0).contentDocument);if(n.length){if(!t.booksize_controls_hidden){if(!n.find("#BRnav").length)return void Object(s.a)("BOOK NOT READY YET");n.find("#BRtwopageview").length>0&&n.find("#BRnav").hide(),t.booksize_controls_hidden=!0,Object(r.a)("#texty iframe").css("visibility","visible"),Object(s.a)("BOOK CONTROLS HIDDEN!")}n.find("body, #BookReader").css("background-color","transparent");var a=n.find("#BRtwopageview, #BRpageview"),i=Object(r.a)(".navbar"),o=i.offset().top+i.height()+parseInt(Object(r.a)("#texty").css("padding-top"),10);t.theatre_controls_position(a,o),Object(s.a)("book top",e.offset().top+a.offset().top," -v- pegTop",o),Object(r.a)("#theatre-ia").css({overflow:"hidden"})}}}},{key:"popcornsize",value:function(){var e=function(){var t=Object(r.a)(window).height()-Object(r.a)("iframe:first").offset().top-100,e=Object(r.a)("#theatre-ia .row").outerWidth(),n={width:e,height:Math.min(t,9*e/16+43)};Object(s.a)("popcorn resize: ",n),Object(r.a)("iframe:first").css(n)};e(),Object(r.a)(window).on("resize orientationchange",(function(){clearTimeout(t.popcorn_throttler),t.popcorn_throttler=setTimeout(e,250)}))}},{key:"theatresize",value:function(e){t.theatresize_maxheight||(t.theatresize_maxheight=null);var n=function(){var n=Math.min(Object(r.a)(window).width(),400),a=Object(r.a)(window).height()-Object(r.a)("#navwrap1").height()-100;t.theatresize_maxheight&&(a=Math.min(a,t.theatresize_maxheight)),a=Math.max(a,n);var i=Math.min(a,1e3);Object(r.a)("#theatre-ia-wrap").addClass("resized").css("height",i),e&&e(Object(r.a)("#theatre-ia-wrap").height())};n(),Object(r.a)(window).on("resize orientationchange",(function(){clearTimeout(t.theatresize_throttler),t.theatresize_throttler=setTimeout(n,250)}))}},{key:"carouselsize",value:function(e,n){var a=Object(r.a)(e),i=a.find("img.carousel-image").map((function(t,e){var n,a=r.a.Deferred();return e.complete?n=a.resolve(e.naturalHeight).promise():(e.addEventListener("load",(function(){a.resolve(e.naturalHeight)})),n=a),n})).get();r.a.when.apply(r.a,H(i)).then((function(){var e=a.height(),i=Math.max.apply(Math,arguments);e>i&&(a.css("maxHeight",i),n&&(t.theatresize_maxheight=i,Object(r.a)(window).trigger("resize")))}))}},{key:"pause",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"jw6",e=Object(I.b)(t);e&&e.getState&&"playing"===e.getState().toLowerCase()&&e.pause()}},{key:"add2list",value:function(e){var n=Object(r.a)(e).attr("href");return r.a.get("".concat(n,"&headless=1&titlelist=").concat(Object(r.a)(e).text()),(function(n){t.modal_go(e,{title:"Add To List",headerClass:"modal-header-new-list",ignore_lnk:!0,auto_remove:!0,body:n})})),!1}},{key:"newlist",value:function(e){var n=Object(r.a)(e).attr("href");return r.a.get(n.concat("&headless=1"),(function(n){t.modal_go(e,{title:"Create New List",headerClass:"modal-header-new-list",ignore_lnk:!0,add_modal:!0,body:n})})),!1}},{key:"newlist_submit",value:function(){var t=Object(r.a)("#new-list-form input[name=title]").val();if(!t.length)return alert("Please enter a title for your List"),!1;var e=t.replace(/[^a-zA-Z0-9_\-.]/g,"").replace(/^[_\-.]+/,"");return Object(s.a)(e),!!e.length||(alert("Please try another title that contains more alphanumeric characters"),!1)}},{key:"popover_menu",value:function(t,e){var n={trigger:"hover focus click",container:t,content:e.content,html:!0};e.title&&(n.title=e.title),e.placement&&(n.placement=e.placement),e.trigger&&(n.trigger=e.trigger),Object(r.a)(t).popover(n)}},{key:"date_switcher",value:function(t){var e="#date_switcher";Object(r.a)(e).tooltip({html:!0,trigger:"manual",placement:"bottom",title:t}).on("mouseenter focusin",(function(){Object(r.a)(e).parent().find(".tooltip").length||Object(r.a)(this).tooltip("show")})),Object(r.a)(".sortbar").on("mouseleave",(function(){Object(s.a)("not hovering sortbar anymore"),Object(r.a)(e).tooltip("hide")})),Object(r.a)(e).on("shown.bs.tooltip",(function(){Object(r.a)(e).parent().find(".date_switcher").on("click",(function(){Object(r.a)(this).parents(".tooltip").find(".date_switcher.in").removeClass("in"),Object(r.a)(this).addClass("in")}))}))}},{key:"tiles_to_list",value:function(){var e=t.selector(),n=Object(r.a)(e).first();Object(s.a)("lister() SELECTOR",e);var a=n.find(".results .item-ia:first .C3").outerWidth(),i=n.find(".results .item-ia:first .C234").outerWidth(),o=i-a-20,c=Math.max(80,Math.round(.6*o)),u=Math.max(80,Math.round(.4*o));Object(s.a)("C3 ",a),Object(s.a)("C234",i),Object(s.a)("C2 ",c),Object(s.a)("C4 ",u),Object(s.a)(" ==> availWidth: ",o,"(",c,"+",u,")"),n.find(".results .item-ia .C2").css({width:c,"max-width":c}),n.find(".results .item-ia .C4").css({width:u,"max-width":u})}},{key:"lists_v_tiles_setup",value:function(t){var e=r.a.cookie("view-".concat(t)),n=r.a.cookie("showdetails-".concat(t)),a="showdetails"===n||null===n&&!1;if("lists"===e){if(a)return;Object(r.a)("body").removeClass("showdetails")}else Object(r.a)("body").removeClass("lists".concat(a?"":" showdetails")).addClass("tiles")}},{key:"showdetails_toggle",value:function(t,e){var n=Object(r.a)("body"),a=n.hasClass("showdetails")?"":"showdetails";Object(s.a)("showdetails_toggle() going to: ",a),r.a.cookie("showdetails-".concat(e),a,{path:"/",expires:30,domain:".archive.org"}),n.toggleClass("showdetails")}},{key:"tiles_toggle",value:function(e,n){var a=Object(r.a)("body"),i=a.hasClass("tiles")?"lists":"tiles";return Object(s.a)("tiles_toggle() going to",i),a.removeClass("lists tiles").addClass(i),t.tiler(),r.a.cookie("view-".concat(n),i,{path:"/",expires:30,domain:".archive.org"}),!1}},{key:"inTab",value:function(){return Object(r.a)(".welcome .tabby.in .tabby-text").first().text().toLowerCase().trim()}},{key:"selector",value:function(){var e=t.inTab();if("forum"===e||"posts"===e||"about"===e)return!1;var n=!1;if(e){Object(s.a)("inTab",e);var a="#tabby-".concat(e.replace(" ","-"));if("collection"===e||"collections"===e||"uploads"===e||"reviews"===e||"web archives"===e)n="#".concat(Object(r.a)(a.concat(" div.ikind.in:first")).attr("id"));else{var i=Object(r.a)(a.concat(" .ikind.stealth.in:first")).text().toLowerCase().replace(/ /,"-");n="#ikind-".concat(e).concat(""===i?"":"-").concat(i)}}else n="#ikind-".concat(Object(r.a)(".ikind.stealth.in:first").text().toLowerCase().replace(/ /,"-")),Object(r.a)(n).length||(n="#ikind-search");return Object(s.a)("SELECTOR",n),n}},{key:"parent_hover",value:function(t){t.find(".item-ia:not(.hov):not(.collection-ia):not(.account-ia)").addClass("hov").mouseover((function(t){return Object(r.a)(t.currentTarget).find(".item-parent").addClass("hoverin")})).mouseout((function(t){return Object(r.a)(t.currentTarget).find(".item-parent").removeClass("hoverin")}))}},{key:"tiler",value:function(e,n){Object(r.a)("body").hasClass("tiles")||Object(r.a)("body").hasClass("showdetails")&&Object(r.a)(".sortbar input[name=showdetails]").prop("checked",!0);var a=e||t.selector();if(!1!==a){var i=Object(r.a)(a).first(),o=i.attr("id"),c=i.parents(".row"),u=Object(r.a)(window).width()<568;if(Object(r.a)("body").hasClass("tiles")){if(t.tilerPREV||(t.tilerPREV={winW:0,pad:0,nPerRow:1,gutter:17,tileWidth:180,unsourced:{},firstLeft:0},t.parent_hover(i)),Object(r.a)(window).width()!==t.tilerPREV.winW){c.css({"padding-left":"","padding-right":""}),t.tilerPREV.firstLeft=0;var l=c.find(".columns-facets:visible"),f=l.outerWidth()||0;f&&(f+=1+parseInt(l.css("padding-right"),10));var d=u?Object(r.a)(window).width():c.width()-f,p=u?(d-i.width())/2:17,h=Object(r.a)(".item-ia:first").outerWidth()>=180?180:150,b=Math.max(1,Math.floor((d+p)/(h+p))),v=u?0:Math.max(0,d-b*(h+p)+p);Object(s.a)("tiling",o,"parentRowW",c.width(),"facetsWidth",f,"availWidth: ",d,"number per row",b,". ","With gutter margin",p,"had ",v,"extra pixels"),t.tilerPREV.pad=Math.round(v/2),t.tilerPREV.winW=Object(r.a)(window).width(),t.tilerPREV.nPerRow=b,t.tilerPREV.gutter=p,t.tilerPREV.tileWidth=h}t.tilerPREV.nPerRow>1?c.css({"padding-left":t.tilerPREV.pad,"padding-right":t.tilerPREV.pad}):t.tilerPREV.firstLeft=t.tilerPREV.pad;for(var m=0,g=[],y=0,j={0:0},O={0:t.tilerPREV.firstLeft},w=1;w1&&e>=t.tilerPREV.nPerRow){var u=(t.colPREV+1)%t.tilerPREV.nPerRow;c=u;for(var s=j[u]-i,l=0;lj[l]){c=l;break}}else c=e%t.tilerPREV.nPerRow;t.colPREV=c,o.visibility="visible",o.top=j[c],o.left=O[c],j[c]+=i+30,y=Math.max(y,j[c]),a.css(o);var f=a.find(".item-img");f.length&&!a.find(".item-img").height()&&(m+=1,(f=a.attr("data-id"))&&g.push(f))})),Object(s.a)("maxtop",y),i.find(".results").css({height:y}),m&&!n&&(Object(s.a)(m," img (still w/o height); recall tiler(",a,")...",g.join(",")),clearTimeout(t.tiler_throttler),t.tiler_throttler=setTimeout((function(){return t.tiler(a,0)}),1500))}else c.css({"padding-left":"","padding-right":""})}}},{key:"ikind",value:function(e,n){var a="#".concat(n);Object(s.a)("ikind",n),Object(r.a)(a).parent().find("div.ikind.in").hide(),Object(r.a)(a).removeClass("hidden").addClass("in").show(),Object(r.a)(a).parents(".tabby-data").find("a.ikind").removeClass("in"),Object(r.a)(e).addClass("in"),t.tiler(a);var i=Object(r.a)(a).parents(".tabby-data").find("select.ikind-mobile"),o=i.find("option:contains(".concat(Object(r.a)(e).text(),")")),c=i.find("option:selected");return o.text().trim()!==c.text().trim()&&(Object(s.a)("changing ikind mobile now to ",o.text()),t.ikind_mobile_change_ignore_next=!0,o.attr("selected","selected")),!1}},{key:"ikind_mobile_change",value:function(e){if(t.ikind_mobile_change_ignore_next)t.ikind_mobile_change_ignore_next=!1;else{var n=Object(r.a)(e).find("option:selected");Object(s.a)("ikind mobile changed to: ",n.text());var a=Object(r.a)(e).parents(".tabby-data").find("a.ikind");if(a.length||(a=Object(r.a)("body").find("a.ikind")),a.length){var i=a.filter((function(t,e){return Object(r.a)(e).text()===n.text()})).attr("href");Object(s.a)("goto",i),i&&("#"===i.substr(0,1)?Object(r.a)("a.ikind[data-id=".concat(i.substr(1),"]")).click():location.href=i)}}}},{key:"popState",value:function(e){if(t.pushState=void 0!==history.pushState,Object(s.a)("popState(",e,") called, modern browser: ",t.pushState?"y":"n"),!e){var n=function(e){var n=Object(P.a)("tab",!0);n=n?"#tabby-".concat(n,"-finder"):e?"#tabby-".concat(e,"-finder"):".tabby-default-finder",t.pushState&&Object(s.a)("goto tab: ",n," ################################################### STATE"),t.tabby_no_pushState_next_click=!0,Object(r.a)(n).click()};t.pushState&&Object(r.a)(window).on("popstate",(function(){return n()})),n()}}},{key:"tabby",value:function(e,n){Object(s.a)("AJS.tabby()",n);var a=n.replace(/tabby-/,"").trim();if("uploads"===a||"reviews"===a||"collections"===a||"loans"===a||"web archives"===a)return!0;if(Object(r.a)(".tabby-data.in").removeClass("in").hide(),Object(r.a)("#".concat(n)).removeClass("hidden").addClass("in").show(),Object(r.a)(".tabby").removeClass("in"),Object(r.a)(e).parents(".tabby").addClass("in"),t.tabby_no_pushState_next_click)delete t.tabby_no_pushState_next_click;else if(t.pushState&&void 0!==history.pushState){var i=Object(r.a)(e).attr("href"),o=location.href,c=location.protocol.concat("//",location.host,i);o!==c&&(Object(s.a)("pushState: ",i," ################################################### STATE"),history.pushState({},"",c))}return"collection"!==a&&"about"!==a||("about"===a&&t.grafs(),t.tiler()),!t.pushState}},{key:"colclick",value:function(t){var e=Object(r.a)(t),n=e.attr("data-id");n&&Object(r.a)("body").hasClass("tiles")&&!e.hasClass("manage-item")&&(location.href="/details/".concat(n))}},{key:"head_img_dragdrop_setup",value:function(e){t.head_img_dragdrop_setup_done||(Object(s.a)("head_img_dragdrop_setup"),t.head_img_dragdrop_setup_done=!0,Object(r.a)("#file-dropper-wrap").bind("mouseenter",(function(){Object(s.a)("enter"),t.head_img_replaceable(e),Object(r.a)("#file-dropper").show()})).bind("mouseleave",(function(){Object(s.a)("ouddie"),t.file_picked||Object(r.a)("#file-dropper").hide()})),Object(r.a)("body").bind("dragover",(function(n){return Object(s.a)("dragover"),n.stopPropagation(),n.preventDefault(),t.head_img_replaceable(e),Object(r.a)("#file-dropper").addClass("drag_over").show(),!1})),Object(r.a)("body").bind("dragleave",(function(t){Object(s.a)("dragleave");var e=Object(r.a)("#file-dropper-wrap").is(":hover")||Object(r.a)("#file-dropper ").is(":hover")||Object(r.a)("#file-dropper-img ").is(":hover"),n=t.pageX||t.originalEvent.pageX,a=t.pageY||t.originalEvent.pageY;if(!e){var i=Object(r.a)("#file-dropper-wrap"),o=i.offset(),c=o.left,u=o.top;n>=c&&n<=c+i.outerWidth()&&a>=u&&a<=u+i.outerHeight()&&(e=!0)}if(!e){var l=Object(r.a)("#file-dropper"),f=l.offset(),d=f.left,p=f.top;n>=d&&n<=d+l.outerWidth()&&a>=p&&a<=p+l.outerHeight()&&(e=!0)}e||Object(r.a)("#file-dropper").removeClass("drag_over").hide()})))}},{key:"head_img_replaceable",value:function(e){if(""===Object(r.a)("#file-dropper").html().trim()){Object(r.a)("#file-dropper").show().html('\n
\n\n\n \n
\n\n Drag & Drop an image file here or\n\n\n
\n \n \n \n
\n Uploading your file..\n
\n
\n
')),Object(r.a)("#file-cancel").bind("click",(function(e){return t.cancelFile(),e.stopPropagation(),e.preventDefault(),!1})),r.a.event.props.push("dataTransfer"),Object(r.a)("#file-selector").bind("click",(function(){t.file_picked="selected"})).bind("change",(function(e){if(Object(s.a)("file dropdown selected!"),Object(r.a)("#file-submit, #file-cancel").show(),Object(s.a)(e),e.target&&e.target.files&&e.target.files.length){var n=U(e.target.files,1);t.file2post=n[0],t.previewFile()}})),Object(r.a)("#file-dropper").bind("drop",(function(e){if(e.stopPropagation(),e.preventDefault(),Object(s.a)(e.dataTransfer.files),Object(r.a)("#file-dropper").removeClass("drag_over"),Object(r.a)("#file-submit, #file-cancel").show(),e.dataTransfer.files.length){t.file_picked="dropped";var n=U(e.dataTransfer.files,1);t.file2post=n[0],t.previewFile(),Object(r.a)("#file-selector").files=e.dataTransfer.files}})),Object(r.a)("#poster").bind("focusin",(function(t){Object(s.a)(t.type),Object(r.a)("#file-uploading").show()})).bind("submit",(function(n){Object(s.a)("submit!"),Object(r.a)("#file-uploading").show();var a=function(){var n=!1;"undefined"==typeof XMLHttpRequest&&(n="browser appears to not have HTML5 functionality"),n||(n=t.badFile());var a=new XMLHttpRequest;if(n||(Object(s.a)(t.file2post),a.upload||(n="browser submit setup failed")),n)return n;Object(s.a)("post");var i=Math.round(Date.now()/1e3);a.open("POST",location.protocol.concat("//",location.host,"/services/post-file.php?submit=1&identifier=",e,"&fname=",encodeURIComponent(t.file2post.name))),a.setRequestHeader("Content-Type","multipart/form-data; charset=UTF-8"),a.send(t.file2post),Object(s.a)("posted in background"),Object(r.a)("#file-dropper").html("waiting for your tasks to queue");var o=!1;return o=setInterval((function(){Object(s.a)("STALKING..."),r.a.getJSON("/metadata/".concat(e,"?rand=").concat(Math.random()),(function(t){var e=t.pending_tasks&&t.tasks?t.tasks.length:0;e?t.tasks.filter((function(t){return 2===t.wait_admin})).length?(Object(r.a)("#file-dropper").html('\n
\n status task failure -- an admin will need to resolve\n
'),clearInterval(o)):Object(r.a)("#file-dropper").html("waiting for your ".concat(e," tasks to finish")):(Object(s.a)("last update",t.item_last_updated,"vs now",i),t.item_last_updated form > div.hidden").removeClass("hidden"),Object(r.a)("#file-dropper > button").addClass("hidden"))}}},{key:"previewFile",value:function(){if(Object(r.a)("#file-dropper .uppreview").remove(),t.badFile())return t.cancelFile(),!1;if("undefined"==typeof FileReader)return!1;var e=new FileReader;return e.onload=function(t){Object(s.a)(t.target);var e=new Image;e.src=t.target.result,Object(r.a)("#file-dropper").append(e),Object(r.a)(e).addClass("uppreview")},Object(s.a)(t.file2post),e.readAsDataURL(t.file2post),!0}},{key:"cancelFile",value:function(){Object(r.a)("#file-dropper .uppreview").remove(),Object(r.a)("#file-dropper, file-submit, #file-cancel, #file-uploading").hide(),t.file_picked&&delete t.file_picked,t.file2post&&delete t.file2post}},{key:"badFile",value:function(){var e=!1;if(e||t.file2post||(e="file is missing"),!e&&t.file2post.size>8e6&&(e="file is over 8MB in size"),!e){var n=t.file2post.type.toLowerCase();"image/jpeg"!==n&&"image/png"!==n&&"image/gif"!==n&&(e="file not required format of JPEG or PNG or GIF")}return e&&alert(e),e}},{key:"drawPDF",value:function(t,e){var n="/download/".concat(t,"/",t,"_pdf.zip/",t,"_pdf/",t,"_"),a=!1,i=!1;for(var o in e){var c=o.substr(0,4);if(!1===i&&(i=c),i!==c){a=!0;break}}var u="",s=666;for(var l in e){var f=e[l].split(","),d=l.substr(0,4),p=parseInt(l.substr(4,2),10),h=parseInt(l.substr(6,2),10),b=d.concat("-",p),v=!1,m="";b!==s&&(m=1===p?"January":2===p?"February":3===p?"March":4===p?"April":5===p?"May":6===p?"June":7===p?"July":8===p?"August":9===p?"September":10===p?"October":11===p?"November":12===p?"December":void 0===p?"Single Page PDFs":"Unknown_".concat(p),a&&(m=d.concat(" ",m)),u+=u?"
\x3c!--mo--\x3e
":"",u+='\n\n ').concat(m,'\n\n
')),void 0!==h&&""!==h||(v=!0),u+=v?'
':'\n
\n\n ').concat(h,'\n\n
');for(var g=1,y=void 0,j=void 0,O=0;O0&&(g=1-y),j=parseInt(y,10)+g,y=(y="0000".concat(y)).substr(y.length-4,4);var w=n.concat(y,".pdf");u+='[').concat(j,"] ")}u+=v?"
":"
\x3c!--pages--\x3e
\x3c!--day--\x3e",s=b}u+="
\x3c!--mo--\x3e",Object(r.a)("#pdfs .replaced").html(u)}},{key:"grafs",value:function(){var t=Object(r.a)("#grafs_views_api"),e=Object(r.a)("#grafs1"),n=Object(r.a)("#grafs2");if(e.length&&void 0!==e.attr("data-id")){var a=e.attr("data-id");e.attr("data-id",null),Object(s.a)("loading grafs"),t.html('loading graph ').show(),e.html('loading graph ').show(),n.html('loading graph ').show();var i="

";r.a.get("/details/".concat(a,"&grafs=1&v=3"),(function(a){var o=a.split(i);o.length>=3&&(Object(r.a)("#activity-reviewsN").html(o[1]).parents(".activity-box").show(),Object(r.a)("#activity-forumN ").html(o[2]).parents(".activity-box").show()),6===o.length?(t.html(i+o[3]),e.html(i+o[4]),n.html(i+o[5])):(t.html("(graph data not available)"),e.html("(graph data not available)"),n.html("(graph data not available)"))})),V.setUpTopRegionsTable()}}},{key:"quick_down",value:function(t,e){var n="#".concat(t);if(Object(r.a)(".format-group.in").length)Object(r.a)(".format-group").slideDown(400),setTimeout((function(){Object(r.a)(".format-group.in").removeClass("in"),Object(r.a)(".download-button").html("DOWNLOAD OPTIONS")}),400),Object(r.a)(n).slideUp();else{var a=Object(r.a)(e).text(),i=Object(r.a)(n).parents(".format-group");Object(r.a)(".download-button").html(a.concat(" FILES")),i.addClass("in"),Object(r.a)(".format-group:not(.in)").slideUp(),Object(r.a)(n).slideDown()}return!1}},{key:"arg",value:function(t,e){for(var n=e&&""===location.search?location.href.slice(1).split("&"):location.search.slice(1).split("&"),r=0;r0?unescape(a):""}return""}},{key:"scrolled",value:function(){var e=Object(r.a)(window).scrollTop(),n=Object(r.a)(".more_search:visible");if(n.length){var a=n.offset().top+n.outerHeight()-Object(r.a)(window).height()-40;e>a&&(Object(s.a)("hit rock bottom > ",a),t.more_searching||Object(r.a)(".more_search:visible".concat(" > a")).get(0).click())}}},{key:"more_search",value:function(e,n,a){var i=t.selector();if(!1===i)return!1;var o=i.replace(/#ikind-/,""),c=Object(r.a)(i.concat(" .more_search")),u=i;if(void 0===t.page_map&&(t.page_map={}),void 0===t.page_map[u]&&(t.page_map[u]=a||1),t.page_map[u]<0)return!1;t.page_map[u]+=1;var l=t.page_map[u];c.find(".more-search-fetching").show(),t.more_searching=!0;var f=n+l,d=location.protocol.concat("//",location.host,f);return f+="&scroll=1",Object(s.a)("url: ",f),Object(s.a)("urlreplace",d),Object(s.a)("more_search(selector=",i,"sort=",o,"page=",l,"url=",f,")"),r.a.get(f,(function(e){if(e.length<100&&Object(r.a)(e).find("div.no-results"))return c.find(".more-search-fetching, a.btn").hide(),t.page_map[u]=-1,void(t.more_searching=!1);t.pushState&&void 0!==history.replaceState&&history.replaceState({},"",d);var n=Object(r.a)(i).attr("id");t.tilerPREV&&t.tilerPREV.unsourced&&t.tilerPREV.unsourced[n]&&delete t.tilerPREV.unsourced[n];var a=Object(r.a)(i.concat(" .results"));a.append(t.addNotes(t.addingNotesKind,e)),t.tiler(i),c.find(".more-search-fetching").hide(),t.more_searching=!1,t.parent_hover(a),Object(r.a)(i.concat(" img")).on("load",(function(){clearTimeout(t.more_search_throttler),t.more_search_throttler=setTimeout(t.tiler,1e3)})),"undefined"!=typeof archive_analytics&&archive_analytics.send_scroll_fetch_event(l)})),!1}},{key:"embed_codes_adjust",value:function(){Object(s.a)("showing embeds!");for(var t=0,e=["embedcodehere","embedcodehereWP"];t").attr({id:"".concat(n,"Shadow"),class:"textarea-invert-readonly roundbox5"}).css({position:"absolute",visibility:"hidden",top:60,left:10,padding:"5px 15px 5px 15px",width:a.width(),"font-size":a.css("font-size")}).text(i));var o=Object(r.a)("#".concat(n,"Shadow")).outerHeight()+15;Object(s.a)(n,"bestie height",o,"for current width",a.width()),Object(r.a)("#".concat(n,"Shadow")).remove(),a.height(o)}}},{key:"modal_add",value:function(t,e){Object(r.a)(t).length&&Object(r.a)(t).remove();var n=t.replace(/#/,""),a=e.prepended_el,i=void 0===a?document.body:a;return Object(r.a)(i).prepend('\n")),Object(r.a)(t)}},{key:"isFavoriteSuccessful",value:function(t){return-1!==t.indexOf('')}},{key:"modal_go",value:function(e,n){var a=n,i=Object(r.a)(e);a.favorite&&(i.addClass("favorited"),w.update_favorite_count(!0),a.center=!0,a.auto_close=!0,a.title="Favorited",a.body='
',a.login=!0);var o=i.attr("data-target"),c=a.favorite?i.attr("data-href"):i.attr("href");if(a.ignore_lnk&&!a.add_modal||t.modal_add(o,a),a.shown&&Object(r.a)(o).on("shown.bs.modal",(function(){a.shown()})),a.follow_link_on_dismiss&&Object(r.a)(o).on("hidden.bs.modal",(function(){Object(s.a)("modal hidden, going to ",c,".."),Object(r.a)("body").removeClass("blurry"),location.href=c})),a.login&&null===r.a.cookie("logged-in-user")){if("https:"!==location.protocol)return location.href="https://archive.org/account/login",!1;var u="/account/login";return r.a.get(u,(function(n){var c=Object(r.a)(n).find(".container-ia > div").length?Object(r.a)(n).find(".container-ia > div").get(0):n;Object(r.a)(o).addClass("login-modal"),Object(r.a)(o.concat("-body")).html(c),Object(r.a)(o).modal("show");var s=Object(r.a)(o.concat("-body form:has(input[type=submit])"));if(s.length){i.removeClass("favorited");var l=Object(r.a)(".password_icon")[0];!0===navigator.cookieEnabled?(Object(r.a)(".cookie-warning").addClass("hidden"),Object(r.a)(".login-form :input").prop("disabled",!1),l.src="/images/eye-crossed.svg",l.alt="Show text",Object(r.a)(".password_icon").on("click",(function(){var t=Object(r.a)(".input-password")[0];"password"===t.type?(t.type="text",l.src="/images/eye.svg",l.alt="Hide text"):(t.type="password",l.src="/images/eye-crossed.svg",l.alt="Show text")})),Object(r.a)(".input-email, .input-password").on("focus",(function(){Object(r.a)(".password-error").html(""),Object(r.a)(".reset-password").show()}))):(Object(r.a)(".cookie-warning").removeClass("hidden"),Object(r.a)(".login-form :input").prop("disabled",!0)),function(t){var e=t.$form,n=t.url,r=t.selector,a=t.AJS,i=t.element,o=t.conf,c=function(t){null!==$.cookie("logged-in-user")?($(r).on("hidden.bs.modal",(function(){$(r).remove(),a.modal_go(i,M(M({},o),{},{postLogin:!0}))})),$(document.body).removeClass("blurry"),$(r).modal("hide")):"ok"!==t.status&&("bad_login"===t.status&&$(".reset-password").hide(),$(".password-error").html(t.message))},u=function(t){var e=t.responseJSON;$(".reset-password").hide(),e?$(".password-error").html(e.message):$(".password-error").text("Whoops! Something didn't work quite right. Please try again in a bit.")};e.on("submit",(function(){var t={},r=c,a=u;return e.find("input").each((function(e,n){$(n).attr("name").length&&(t[$(n).attr("name")]=$(n).val())})),t.submit_by_js="true",e.find(".alert").remove(),$.ajax(n,{type:"POST",data:t,success:r,error:a}),!1}))}({$form:s,url:u,selector:o,AJS:t,element:e,conf:a})}})),!1}return a.auto_remove&&(a.auto_close=!0,Object(r.a)(o).on("hidden.bs.modal",(function(){Object(r.a)(o).remove(),Object(r.a)("body").removeClass("blurry")}))),a.ignore_lnk?Object(r.a)(o).modal("show"):(r.a.get(c,(function(e){if(a.favorite)if("undefined"!=typeof archive_analytics&&archive_analytics.send_ping({kind:"event",ec:"page_action",ea:"favorite",el:location.pathname,cache_bust:Math.random()}),t.isFavoriteSuccessful(e))i.attr({"data-original-title":"Unfavorite"}),w.toggle_favorite_icon(i),setTimeout((function(){a.postLogin?location.reload(!0):Object(r.a)(o).modal("hide")}),t.modalInterval);else{i.removeClass("favorited"),w.update_favorite_count(!1);var n=Object(r.a)(o);n.find(".modal-title").html("Failed"),n.find("".concat(o,"-body")).html('\n
\n

\n There was an error adding the favorite. If the problem persists, please contact support.\n

\n
\n ')}Object(r.a)(o).modal("show"),a.auto_close&&setTimeout((function(){return Object(r.a)(o).modal("hide")}),t.modalInterval)})),Object(r.a)(o).on("hidden.bs.modal",(function(){Object(r.a)(o).remove()}))),a.center&&Object(r.a)(o.concat(" .modal-dialog")).center(),a.auto_close&&a.ignore_lnk&&setTimeout((function(){return Object(r.a)(o).modal("hide")}),t.modalInterval),!1}},{key:"check1",value:function(t,e){t.checked&&((e?Object(r.a)(e):Object(r.a)(t).parents("form")).find("input[type=checkbox]").attr("checked",!1),t.checked=!0)}},{key:"suffixFmt",value:function(t,e){return e.min>=0&&e.max<=5?Math.round(10*t,1)/10:t>=1e6?(t/1e6).toFixed(0).concat(" M"):t>=1e3?(t/1e3).toFixed(0).concat(" K"):t.toFixed(0)}},{key:"suffixFmtPercent",value:function(e,n){return t.suffixFmt(e,n).concat("%")}},{key:"pluralize",value:function(t,e,n){return 1===t?e:n}},{key:"viewMessage",value:function(e,n,r){var a=n.length,i="";i+='"),i+='"),i+="");for(var o=1;o"),i+="");return i+="
').concat(e[2]," ").concat(e[3],"'.concat(Object(E.a)(n[0]),"".concat(t.pluralize(n[0],"View","Views")," ").concat(r[0],"
'.concat(Object(E.a)(n[o]),"".concat(t.pluralize(n[o],"View","Views")," ").concat(r[o],"
"}},{key:"statsTooltip",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;switch(e){case"main":n=function(t){var e=t.y,n=t.t;return"".concat(Object(E.a)(e)," total items in ").concat(n[2]," ").concat(n[3],"")};break;case"item":n=function(e){var n=e.t,r=e.item;return"".concat(n[2]," ").concat(n[3],": ").concat(Object(E.a)(r.datapoint[1])," ").concat(t.pluralize(r.datapoint[1],"Item","Items"))};break;case"download":n=function(e){var n=e.t,r=e.item;return"".concat(n[2]," ").concat(n[3],": ").concat(Object(E.a)(r.datapoint[1])," ").concat(t.pluralize(r.datapoint[1],"Download","Downloads"))};break;case"view":n=function(e){var n=e.t,r=e.values,a=e.labels;return t.viewMessage(n,r,a)}}var a=function(t,e,a,i,o){var c=new Date(t-r).toUTCString().split(" ");return''.concat(n({x:t,y:e,item:a,t:c,values:i,labels:o}),"")};return a}},{key:"plotter",value:function(e){if(void 0===t.plotters&&(t.plotters=[]),e)t.plotters.push(e),e();else{Object(s.a)("plotter() resize/orient change",t.plotters.length,"graphs to resize");for(var n=0;nv.width()/2?"right":"left");var y="right"===g?v.width()-(e.pageX-m.left-20):e.pageX-m.left+20;Object(s.a)(g,y),Object(r.a)("#".concat(c.tip.id)).append('
').concat(b,"
")).fadeIn(200)}}))}},{key:"welcome_recolor",value:function(e){if("undefined"!=typeof ColorThief&&e.length&&!t.welcome_recolored){t.welcome_recolored=!0;var n=Object(r.a)(e)[0];Object(s.a)("welcome_recolor",n.src);var a=(new ColorThief).getPalette(n,5);if(Object(s.a)(a),a){var i=a[0];if(i){Object(s.a)(i);var o=Math.round(Object(r.a)(i).map((function(t,e){return e})).toArray().reduce((function(t,e){return t+e}))/i.length),c=o>=128?"black":"white";Object(s.a)("avgVal",o),Object(r.a)(".welcome").css({color:c,"background-color":"rgb(".concat(i.join(","),")")}),Object(r.a)(".welcome .stealth:not(.tabby .stealth)").css({color:c})}}}}},{key:"makeMouseElementAccessible",value:function(t){Object(r.a)(t).attr("tabindex","0").on("keypress keydown",(function(t){if("click"!==t.type){var e=t.keyCode||t.which;-1!==[32,13].indexOf(e)&&Object(r.a)(this).click()}}))}},{key:"autocomplete",value:function(t,e,n){Object(r.a)(t).autocomplete({appendTo:"#autocompletee",minLength:0,source:function(t,n){n(r.a.ui.autocomplete.filter(e,t.term.split(/,\s*/).pop()))},focus:function(){return!1},select:function(t,e){if(n){var r=this.value.split(/,\s*/);r.pop(),r.push(e.item.value),r.push(""),this.value=r.join(", ")}else this.value=e.item.value;return!1}})}},{key:"addNotes",value:function(e,n){if("favorite"!==e&&"list"!==e)return n;if(!n&&Object(r.a)("body").hasClass("editable")&&(t.addingNotesKind=e),!t.addingNotesKind)return n;if(t.addNoteHTM=Object(r.a)('\n
\n \n Add a Note\n \n
'),Object(s.a)("addNotes"),n){var a=Object(r.a)("
".concat(n,"
"));return a.find('.details-ia .C234:not(:has(".note"))').append(t.addNoteHTM),a.html()}return Object(r.a)('.details-ia .C234:not(:has(".note"))').append(t.addNoteHTM)}},{key:"editNote",value:function(t){var e=Object(r.a)(t);if(!e.parents(".details-ia").prev().attr("data-id"))return!1;var n=e.parents(".note"),a="";return"edit"===e.text()&&(a=(a=n.find("span:first").text()).replace(//g,">")),n.hide(),n.parent().append(Object(r.a)('\n
\n
\n
\n Note:\n
\n
\n \n
\n
\n
\n
\n \n \n \n
\n
\n'))),!1}},{key:"editedNote",value:function(e){var n=Object(r.a)(e),a=n.parents(".details-ia").prev().attr("data-id");if(a){n.is("form")&&(n=n.find('button:contains("Save")'));var i=n.text(),o=n.parents(".note"),c=o.prev();if("Save"===i||"Remove"===i){var u="Save"===i?o.find("textarea").val():"",l="/bookmarks.php?identifier=".concat(a,"&kind=",t.addingNotesKind,"&add_comment=",encodeURIComponent(u));return Object(s.a)("get ",l),void r.a.get(l,(function(){var e=u?'Note: "'.concat(u.replace(//g,">"),'"\n (edit)'):t.addNoteHTM.html();c.html(e).show(),o.remove()}))}c.show(),o.remove()}}},{key:"thumbzilla",value:function(t){var e=Object(r.a)("body").hasClass("tv");e&&TV2.unplay("thumbzilla");var n="",a=function(){Object(r.a)("#opscreen1M").remove(),Object(r.a)("body").prepend(Object(r.a)("
").attr({id:"opscreen1M"})),Object(r.a)("
").attr({id:"thumbzilla"}).html("
".concat(n,"
")).appendTo("#opscreen1M"),Object(r.a)("#opscreen1M").css("visibility","hidden").show();for(var t=Object(r.a)(window).height()+(A.a?60:0),e=720;e>=10;e-=10){var a=Math.round(.6875*e);if(Object(s.a)("TRYING",e,"x",a),Object(r.a)("#thumbzilla img").css({width:e,height:a}),Object(r.a)("#thumbzilla img:last").offset().top+a<=t)break}Object(r.a)("#thumbzilla div").center(),Object(r.a)("#opscreen1M").hide().css("visibility","visible").fadeIn("slow").one("click.opscreen1M.nixer",(function(){return Object(r.a)("#opscreen1M").fadeOut("slow")}))};return e&&TV3?(Object(r.a)(TV3.thumbzillas).each((function(r,a){var i=parseInt(a,10);if(e){var o="/start/".concat(i,"/end/").concat(i+TV3.CLIP_SEC_MAX2);n+="')}else{var c="/details/".concat(t,"&start=").concat(i);n+="')}n+='')})),a()):r.a.getJSON("/metadata/".concat(t,"/files"),(function(e){var r,i=W(e.result);try{for(i.s();!(r=i.n()).done;){var o=r.value,c="original"in o&&o.name.match(/\.thumbs\/.*_([0-9]+)\.jpg$/);c&&(n+='\n \n '))}}catch(t){i.e(t)}finally{i.f()}n&&a()})),!1}},{key:"nav_tophat_wb_setup",value:function(){var t="https://web.archive.org",e="".concat(t,"/__wb/search/host?q="),n="".concat(t,"/__wb/search/anchor?q="),a="".concat(t,"/web/*/"),i="".concat(t,"/web/*/"),o=!1,c=Object(r.a)("#nav-wb-url"),u=c.parent("form");u.submit((function(t){return"undefined"==typeof archive_analytics||o||(archive_analytics.send_event("TopNav","WaybackSearchForm-Submit"),o=!0),function(t){0===t.indexOf("http://")||0===t.indexOf("https://")||t.match(/[\w.]{2,256}\.[a-z]{2,4}/gi)?document.location.href=a+t:document.location.href=i+encodeURIComponent(t)}(c.val()),t.preventDefault(),t.stopPropagation(),!1})),c.on("focus input paste",(function(){void 0===c.typeahead&&r.a.ajax({url:"/includes/build/npm/bootstrap-3-typeahead/bootstrap3-typeahead.min.js",dataType:"script",cache:!0}).done((function(){c.typeahead({source:function(t,a){return c.focus(),r.a.get(e+encodeURIComponent(t),(function(e){return void 0!==e.hosts&&e.hosts.length>0?a(e.hosts):void 0!==e.isUrl&&!0===e.isUrl&&void 0===e.excluded?a([{display_name:t}]):r.a.get(n+encodeURIComponent(t),(function(t){if(void 0!==t&&t.length>0)return a(t.slice(0,5))}))}))},matcher:function(){return!0},displayText:function(t){return t.display_name},autoSelect:!1,delay:400,fitToElement:!1,minLength:3,items:8}).change((function(){var t=c.typeahead("getActive");t&&t.display_name===c.val()&&u.submit()}))}))}))}},{key:"setUpSearchForms",value:function(){var t=Object(r.a)(document.body);function e(e){var n=Object(r.a)(e),a=n.find(".js-search-bar"),i=n.find(".js-search-options"),o=i.data("keepOpenWhenChanged"),c=!1;function u(t){!t||n[0].contains(t)||o&&c||Object(r.a)(t).parents(".ui-autocomplete").length||i.removeClass("is-open").attr("aria-expanded",!1)}n.length&&(n.on("submit",(function(t){var e=this.dataset.waybackMachineSearchUrl,n=Object(r.a)(this.elements),a=n.filter('[name="sin"]:checked'),i=n.filter('[name="search"]'),o=a.length?a[0].value:"",c=i.length?i[0].value:"";e&&"WEB"===o&&(t.preventDefault(),window.location=[e.replace(/\/$/,""),c].join("/"))})),i.hasClass("is-open")||(t.on("click",(function(t){u(t.target)})),n.on("change",(function(){c=!0})).on("focusout",(function(t){u(t.relatedTarget)})),a.on("focusin",(function(){i.addClass("is-open").attr("aria-expanded",!0)}))))}Object(r.a)(".js-search-form").each((function(t,n){return e(n)}))}},{key:"setUpBookReaderIframe",value:function(){var t=document.querySelector("#texty iframe");t&&t.hasAttribute("data-book-reader-sync-urls")&&window.addEventListener("message",(function(t){t.data&&"bookReaderFragmentChange"===t.data.type&&function(t){if("history"in window){var e,n,r,a=(e=window.location.pathname,n=t,r=/(\/((page|mode|search)\/[^/?$]+))+\/?(?=\?|$)/g,(e.match(r)?e.replace(r,"/".concat(n)):"".concat(e,"/").concat(n).replace(/\/+/g,"/"))+window.location.search+window.location.hash);window.history.replaceState({fragment:t},window.title,a)}}(t.data.fragment)}))}},{key:"setUpAccordions",value:function(){Array.from(document.querySelectorAll("[data-accordion]")).forEach((function(t){function e(e){var n,a;e.target.open&&(n=t.querySelectorAll("details"),a=e.target,Array.from(n).forEach((function(t){t!==a&&(t.open=!1)})),Object(r.a)("html, body").animate({scrollTop:Object(r.a)(e.target).offset().top},400))}Array.from(t.querySelectorAll("details")).forEach((function(t){t.addEventListener("toggle",e)})),t.setAttribute("data-accordion-ready","")}))}},{key:"advanced_search",value:function(e){if(!t.is_advanced_TV_search(e))return!0;t.adv||(t.adv={mapping:!1});var n=(new Date).toISOString().substr(0,10);r.a.ajaxSetup({cache:!0});var a="https://".concat(location.host,"/includes/");return r.a.when("undefined"!=typeof TVSearch||r.a.getScript(a.concat("build/js/tvsearch.min.js?",n)),t.adv.mapping||r.a.getJSON("/details/tv?mappings&output=json&".concat(n),(function(e){t.adv.mapping=e}))).then((function(){2===t.adv.mapping.length?TVSearch.proPick(t.adv.mapping,e):alert("failed to get network and program mappings!")})),!1}},{key:"is_advanced_TV_search",value:function(t){if("web.archive.org"===location.hostname)return!1;if(Object(r.a)(document.body).hasClass("top"))return!1;var e=Object(r.a)(t).parents("form");return!!e.find(".js-search-options input[value=TV]").is(":checked")&&e}}],(n=null)&&J(e.prototype,n),a&&J(e,a),t}();Object(r.a)((function(){Q.makeMouseElementAccessible(".accessible-link"),"undefined"!=typeof archive_analytics&&archive_analytics.set_up_event_tracking(),Q.nav_tophat_setup(),Q.nav_tophat_wb_setup(),Q.setUpSearchForms(),Q.setUpBookReaderIframe(),Q.setUpAccordions(),"undefined"!=typeof archive_setup&&Object(r.a)((function(){var t,e=W(archive_setup);try{for(e.s();!(t=e.n()).done;){(0,t.value)()}}catch(t){e.e(t)}finally{e.f()}})),Q.footer(),"undefined"!=typeof archive_analytics&&archive_analytics.create_tracking_image("external_executes"),Q.modalInterval=2e3,_(),x(Object(r.a)("[data-handler=dropdown]")),S.init(),q.setup()})),Q.tilebars=k.a.tilebars,Q.addCommas=E.a,window.AJS=Q},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=navigator.userAgent.indexOf("iPhone")>0||navigator.userAgent.indexOf("iPad")>0||navigator.userAgent.indexOf("iPod")>0},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&t.split("&").forEach((function(t){var n=r(t.split("="),2),a=n[0],i=n[1];e[a]=decodeURIComponent(i)})),e}},,function(t,e,n){"use strict";function r(t,e){for(var n=0;n'.concat(void 0===e?"Loading":e,"")}},{key:"ErrorMessage",value:function(t){var e=t.errorMessage;return"".concat(e,"")}}],(n=null)&&r(e.prototype,n),a&&r(e,a),t}()},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){"use strict";function r(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:250,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;a(this,t),this.callback=e,this.threshhold=n,this.context=r,this.last=void 0,this.deferTimeout=void 0}var e,n,r;return e=t,(n=[{key:"execute",value:function(){var t=+new Date;this.last&&t=t&&(this.$window.off(".".concat(this.identifier)),this.callback())}}])&&c(e.prototype,n),a&&c(e,a),t}()},,function(t,e,n){"use strict";var r=n(0),a=n(2),i=n(15);r.a.fn.center=function(){var t,e,n=Object(r.a)(this).innerHeight();if(Object(a.a)("myheight",n),Object(a.a)("mywidth",this.width()),Object(a.a)("w.height",Object(r.a)(window).height(),"w.width",Object(r.a)(window).width(),"w.scrollTop",Object(r.a)(window).scrollTop(),"w.scrollLeft",Object(r.a)(window).scrollLeft()),i.a){var o=window.innerWidth,c=window.innerHeight;Object(a.a)("vpH",c),Object(a.a)("vpW",o),t=(c-n)/2+Object(r.a)(window).scrollTop(),e=(o-this.width())/2+Object(r.a)(window).scrollLeft()}else t=(Object(r.a)(window).height()-n)/2,e=(Object(r.a)(window).width()-this.width())/2;return t=Math.max(20,t),e=Math.max(20,e),this.css({position:i.a?"absolute":"fixed",display:"block",top:t,left:e}),this}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(18),i=n(22),o=n(23);function c(t,e){for(var n=0;n1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.linkText,r=e.href,a=e.height,i=e.width,o=e.title;return'\n ").concat(n,"")}},{key:"setupPopupLink",value:function(){Object(a.a)("popup setup"),Object(r.a)(document.body).off("click.PopupLink").on("click.PopupLink","[data-".concat("popup-link","]"),(function(e){e.preventDefault();var n=Object(r.a)(e.currentTarget),a=n.data("popup-link-width")||500,i=n.data("popup-link-height")||500;window.open(e.currentTarget.href,"popup",t.params(a,i))}))}}],(n=null)&&i(e.prototype,n),o&&i(e,o),t}();Object(r.a)(o.setupPopupLink)},function(t,e,n){(function(t){ /*! JW Player version 8.8.2 Copyright (c) 2019, JW Player, All Rights Reserved https://github.com/jwplayer/jwplayer/blob/v8.8.2/README.md This source code and its use and distribution is subject to the terms and conditions of the applicable license agreement. https://www.jwplayer.com/tos/ This product includes portions of other software. For the full text of licenses, see below: JW Player Third Party Software Notices and/or Additional Terms and Conditions ************************************************************************************************** The following software is used under Apache License 2.0 ************************************************************************************************** vtt.js v0.13.0 Copyright (c) 2019 Mozilla (http://mozilla.org) https://github.com/mozilla/vtt.js/blob/v0.13.0/LICENSE * * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ************************************************************************************************** The following software is used under MIT license ************************************************************************************************** Underscore.js v1.6.0 Copyright (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative https://github.com/jashkenas/underscore/blob/1.6.0/LICENSE Backbone backbone.events.js v1.1.2 Copyright (c) 2010-2014 Jeremy Ashkenas, DocumentCloud https://github.com/jashkenas/backbone/blob/1.1.2/LICENSE Promise Polyfill v7.1.1 Copyright (c) 2014 Taylor Hakes and Forbes Lindesay https://github.com/taylorhakes/promise-polyfill/blob/v7.1.1/LICENSE can-autoplay.js v3.0.0 Copyright (c) 2017 video-dev https://github.com/video-dev/can-autoplay/blob/v3.0.0/LICENSE * * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ************************************************************************************************** The following software is used under W3C license ************************************************************************************************** Intersection Observer v0.5.0 Copyright (c) 2016 Google Inc. (http://google.com) https://github.com/w3c/IntersectionObserver/blob/v0.5.0/LICENSE.md * * * W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE Status: This license takes effect 13 May, 2015. This work is being provided by the copyright holders under the following license. License By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications: The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included. Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)." Disclaimers THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT. The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders. */ window.jwplayer=function(t){function e(e){for(var n,a,i=e[0],o=e[1],c=0,s=[];c2;if(null==t&&(t=[]),p&&t.reduce===p)return r&&(e=Y(e,r)),a?t.reduce(e,n):t.reduce(e);if(k(t,(function(t,i,o){a?n=e.call(r,n,t,i,o):(n=t,a=!0)})),!a)throw new TypeError("Reduce of empty array with no initial value");return n},S=T,P=T,E=function(t,e,n){var r;return N(t,(function(t,a,i){if(e.call(n,t,a,i))return r=t,!0})),r},A=E,I=function(t,e,n){var r=[];return null==t?r:b&&t.filter===b?t.filter(e,n):(k(t,(function(t,a,i){e.call(n,t,a,i)&&r.push(t)})),r)},R=I,M=function(t,e,n){e||(e=kt);var r=!0;return null==t?r:v&&t.every===v?t.every(e,n):(k(t,(function(t,i,o){if(!(r=r&&e.call(n,t,i,o)))return a})),!!r)},L=M,N=function(t,e,n){e||(e=kt);var r=!1;return null==t?r:m&&t.some===m?t.some(e,n):(k(t,(function(t,i,o){if(r||(r=e.call(n,t,i,o)))return a})),!!r)},F=N,D=function(t){return null==t?0:t.length===+t.length?t.length:at(t).length},z=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},V=function(t){return null==t?kt:bt(t)?t:_t(t)},$=function(t){return function(e,n,r){var a={};return n=V(n),k(e,(function(i,o){var c=n.call(r,i,o,e);t(a,c,i)})),a}},B=$((function(t,e,n){wt(t,e)?t[e].push(n):t[e]=[n]})),q=$((function(t,e,n){t[e]=n})),W=function(t,e,n,r){for(var a=(n=V(n)).call(r,e),i=0,o=t.length;i>>1;n.call(r,t[c])=0)},H=U,X=function(t,e){return E(t,xt(e))},G=function(t){var e=s.apply(i,u.call(arguments,1));return I(t,(function(t){return!U(e,t)}))},J=function(t,e,n){if(null==t)return-1;var r=0,a=t.length;if(n){if("number"!=typeof n)return t[r=W(t,e)]===e?r:-1;r=n<0?Math.max(0,a+n):n}if(g&&t.indexOf===g)return t.indexOf(e,n);for(;ra&&(r=t,a=c)})),r},memoize:tt,now:Ct,omit:function(t){var e={},n=s.apply(i,u.call(arguments,1));for(var r in t)U(n,r)||(e[r]=t[r]);return e},once:Z,partial:K,pick:st,pluck:function(t,e){return x(t,_t(e))},property:_t,propertyOf:function(t){return null==t?function(){}:function(e){return t[e]}},reduce:T,reject:function(t,e,n){return I(t,(function(t,r,a){return!e.call(n,t,r,a)}),n)},result:function(t,e){if(null!=t){var n=t[e];return bt(n)?n.call(t):n}},select:R,size:D,some:F,sortedIndex:W,throttle:rt,where:function(t,e){return I(t,xt(e))},without:function(t){return G(t,u.call(arguments,1))}}},function(t,e,n){"use strict";n.d(e,"t",(function(){return i})),n.d(e,"s",(function(){return o})),n.d(e,"r",(function(){return c})),n.d(e,"o",(function(){return u})),n.d(e,"p",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"q",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"h",(function(){return h})),n.d(e,"e",(function(){return b})),n.d(e,"b",(function(){return v})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"i",(function(){return j})),n.d(e,"j",(function(){return O})),n.d(e,"l",(function(){return w})),n.d(e,"m",(function(){return k})),n.d(e,"n",(function(){return _})),n.d(e,"v",(function(){return x})),n.d(e,"u",(function(){return C})),n.d(e,"w",(function(){return T}));var r=n(0);function a(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.code=Object(r.v)(n)?n:0,this.sourceError=a,e&&(this.key=e)}var e,n;return e=t,n=[{key:"logMessage",value:function(t){var e=t%1e3,n=Math.floor((t-e)/1e3),r=t;return e>=400&&e<600&&(r="".concat(n,"400-").concat(n,"599")),"JW Player ".concat(t>299999&&t<4e5?"Warning":"Error"," ").concat(t,". For more information see https://developer.jwplayer.com/jw-player/docs/developer-guide/api/errors-reference#").concat(r)}}],null&&a(e.prototype,null),n&&a(e,n),t}();function x(t,e,n){return n instanceof _&&n.code?n:new _(t,e,n)}function C(t,e){var n=x(k,e,t);return n.code=(t&&t.code||0)+e,n}function T(t){var e=t.name,n=t.message;switch(e){case"AbortError":return/pause/.test(n)?303213:/load/.test(n)?303212:303210;case"NotAllowedError":return 303220;case"NotSupportedError":return 303230;default:return 303200}}},function(t,e,n){"use strict";n.d(e,"h",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"i",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"g",(function(){return p}));var r=n(0),a=window.parseFloat;function i(t){return t.replace(/^\s+|\s+$/g,"")}function o(t,e,n){for(t=""+t,n=n||"0";t.length-1?t.substr(t.lastIndexOf(".")+1,t.length).toLowerCase():void 0}function s(t){var e=(t/60|0)%60,n=t%60;return o(t/3600|0,2)+":"+o(e,2)+":"+o(n.toFixed(3),6)}function l(t,e){if(!t)return 0;if(Object(r.v)(t))return t;var n=t.replace(",","."),i=n.slice(-1),o=n.split(":"),c=o.length,u=0;if("s"===i)u=a(n);else if("m"===i)u=60*a(n);else if("h"===i)u=3600*a(n);else if(c>1){var s=c-1;4===c&&(e&&(u=a(o[s])/e),s-=1),u+=a(o[s]),u+=60*a(o[s-1]),c>=3&&(u+=3600*a(o[s-2]))}else u=a(n);return Object(r.v)(u)?u:0}function f(t,e,n){if(Object(r.t)(t)&&"%"===t.slice(-1)){var i=a(t);return e&&Object(r.v)(e)&&Object(r.v)(i)?e*i/100:null}return l(t,n)}function d(t,e){return t.map((function(t){return e+t}))}function p(t,e){return t.map((function(t){return t+e}))}},function(t,e,n){"use strict";n.d(e,"ib",(function(){return r})),n.d(e,"lb",(function(){return a})),n.d(e,"jb",(function(){return i})),n.d(e,"nb",(function(){return o})),n.d(e,"ob",(function(){return c})),n.d(e,"kb",(function(){return u})),n.d(e,"mb",(function(){return s})),n.d(e,"pb",(function(){return l})),n.d(e,"s",(function(){return f})),n.d(e,"u",(function(){return d})),n.d(e,"t",(function(){return p})),n.d(e,"n",(function(){return h})),n.d(e,"q",(function(){return b})),n.d(e,"qb",(function(){return v})),n.d(e,"r",(function(){return m})),n.d(e,"Y",(function(){return g})),n.d(e,"V",(function(){return y})),n.d(e,"v",(function(){return j})),n.d(e,"X",(function(){return O})),n.d(e,"w",(function(){return w})),n.d(e,"sb",(function(){return k})),n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return C})),n.d(e,"d",(function(){return T})),n.d(e,"e",(function(){return S})),n.d(e,"h",(function(){return P})),n.d(e,"F",(function(){return E})),n.d(e,"fb",(function(){return A})),n.d(e,"P",(function(){return I})),n.d(e,"C",(function(){return R})),n.d(e,"B",(function(){return M})),n.d(e,"E",(function(){return L})),n.d(e,"p",(function(){return N})),n.d(e,"bb",(function(){return F})),n.d(e,"m",(function(){return D})),n.d(e,"G",(function(){return z})),n.d(e,"H",(function(){return V})),n.d(e,"M",(function(){return $})),n.d(e,"N",(function(){return B})),n.d(e,"Q",(function(){return q})),n.d(e,"hb",(function(){return W})),n.d(e,"ab",(function(){return U})),n.d(e,"D",(function(){return H})),n.d(e,"R",(function(){return X})),n.d(e,"O",(function(){return G})),n.d(e,"S",(function(){return J})),n.d(e,"U",(function(){return Q})),n.d(e,"L",(function(){return Y})),n.d(e,"K",(function(){return K})),n.d(e,"I",(function(){return Z})),n.d(e,"J",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"o",(function(){return nt})),n.d(e,"y",(function(){return rt})),n.d(e,"gb",(function(){return at})),n.d(e,"cb",(function(){return it})),n.d(e,"db",(function(){return ot})),n.d(e,"f",(function(){return ct})),n.d(e,"g",(function(){return ut})),n.d(e,"Z",(function(){return st})),n.d(e,"A",(function(){return lt})),n.d(e,"l",(function(){return ft})),n.d(e,"k",(function(){return dt})),n.d(e,"eb",(function(){return pt})),n.d(e,"rb",(function(){return ht})),n.d(e,"z",(function(){return bt})),n.d(e,"j",(function(){return vt})),n.d(e,"W",(function(){return mt})),n.d(e,"i",(function(){return gt})),n.d(e,"x",(function(){return yt}));var r="buffering",a="idle",i="complete",o="paused",c="playing",u="error",s="loading",l="stalled",f="drag",d="dragStart",p="dragEnd",h="click",b="doubleClick",v="tap",m="doubleTap",g="over",y="move",j="enter",O="out",w=u,k="warning",_="adClick",x="adPause",C="adPlay",T="adSkipped",S="adTime",P="autostartNotAllowed",E=i,A="ready",I="seek",R="beforePlay",M="beforeComplete",L="bufferFull",N="displayClick",F="playlistComplete",D="cast",z="mediaError",V="firstFrame",$="playAttempt",B="playAttemptFailed",q="seeked",W="setupError",U="state",H="bufferChange",X="time",G="ratechange",J="mediaType",Q="volume",Y="mute",K="meta",Z="levels",tt="levelsChanged",et="visualQuality",nt="controls",rt="fullscreen",at="resize",it="playlistItem",ot="playlist",ct="audioTracks",ut="audioTrackChanged",st="playbackRateChanged",lt="logoClick",ft="captionsList",dt="captionsChanged",pt="providerFirstFrame",ht="userAction",bt="instreamClick",vt="breakpoint",mt="fullscreenchange",gt="bandwidthEstimate",yt="float"},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return c}));var r=n(2);function a(t){var e="";return t&&(t.localName?e=t.localName:t.baseName&&(e=t.baseName)),e}function i(t){var e="";return t&&(t.textContent?e=Object(r.h)(t.textContent):t.text&&(e=Object(r.h)(t.text))),e}function o(t,e){return t.childNodes[e]}function c(t){return t.childNodes?t.childNodes.length:0}},function(t,e,n){"use strict";n.d(e,"h",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"p",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"n",(function(){return h})),n.d(e,"d",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"q",(function(){return m})),n.d(e,"j",(function(){return g})),n.d(e,"c",(function(){return y})),n.d(e,"b",(function(){return j})),n.d(e,"o",(function(){return O})),n.d(e,"m",(function(){return w})),n.d(e,"a",(function(){return k}));var r=navigator.userAgent;function a(t){return null!==r.match(t)}function i(t){return function(){return a(t)}}function o(){var t=k();return!!(t&&t>=18)}var c=i(/gecko\//i),u=i(/trident\/.+rv:\s*11/i),s=i(/iP(hone|od)/i),l=i(/iPad/i),f=i(/Macintosh/i),d=i(/FBAV/i);function p(){return a(/\sEdge\/\d+/i)}function h(){return a(/msie/i)}function b(){return a(/\s(?:(?:Headless)?Chrome|CriOS)\//i)&&!p()&&!a(/UCBrowser/i)}function v(){return p()||u()||h()}function m(){return a(/safari/i)&&!a(/(?:Chrome|CriOS|chromium|android|phantom)/i)}function g(){return a(/iP(hone|ad|od)/i)}function y(){return!(a(/chrome\/[123456789]/i)&&!a(/chrome\/18/i)&&!c())&&j()}function j(){return a(/Android/i)&&!a(/Windows Phone/i)}function O(){return g()||j()||a(/Windows Phone/i)}function w(){try{return window.self!==window.top}catch(t){return!0}}function k(){if(j())return 0;var t,e=navigator.plugins;if(e&&(t=e["Shockwave Flash"])&&t.description)return parseFloat(t.description.replace(/\D+(\d+\.?\d*).*/,"$1"));if(void 0!==window.ActiveXObject){try{if(t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return parseFloat(t.GetVariable("$version").split(" ")[1].replace(/\s*,\s*/,"."))}catch(t){return 0}return t}return 0}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n0?"":"px")}function p(t){return Object(a.t)(t.className)?t.className.split(" "):[]}function h(t,e){e=Object(i.h)(e),t.className!==e&&(t.className=e)}function b(t){return t.classList?t.classList:p(t)}function v(t,e){var n=p(t);(Array.isArray(e)?e:e.split(" ")).forEach((function(t){Object(a.c)(n,t)||n.push(t)})),h(t,n.join(" "))}function m(t,e){var n=p(t),r=Array.isArray(e)?e:e.split(" ");h(t,Object(a.f)(n,r).join(" "))}function g(t,e,n){var r=t.className||"";e.test(r)?r=r.replace(e,n):n&&(r+=" "+n),h(t,r)}function y(t,e,n){var r=o(t,e);(n=Object(a.o)(n)?n:!r)!==r&&(n?v(t,e):m(t,e))}function j(t,e,n){t.setAttribute(e,n)}function O(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function w(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t,document.getElementsByTagName("head")[0].appendChild(e)}function k(t){t&&O(t)}function _(t){var e={left:0,right:0,width:0,height:0,top:0,bottom:0};if(!t||!document.body.contains(t))return e;var n=t.getBoundingClientRect(),r=window.pageYOffset,a=window.pageXOffset;return n.width||n.height||n.left||n.top?(e.left=n.left+a,e.right=n.right+a,e.top=n.top+r,e.bottom=n.bottom+r,e.width=n.right-n.left,e.height=n.bottom-n.top,e):e}function x(t,e){t.insertBefore(e,t.firstChild)}function C(t){return t.nextElementSibling}function T(t){return t.previousElementSibling}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement("a");r.href=t,r.target=e,(r=Object(a.h)(r,n)).click()}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,"exists",(function(){return i})),n.d(e,"isHTTPS",(function(){return o})),n.d(e,"isFileProtocol",(function(){return c})),n.d(e,"isRtmp",(function(){return u})),n.d(e,"isYouTube",(function(){return s})),n.d(e,"typeOf",(function(){return l})),n.d(e,"isDeepKeyCompliant",(function(){return f}));var a=window.location.protocol;function i(t){switch(r(t)){case"string":return t.length>0;case"object":return null!==t;case"undefined":return!1;default:return!0}}function o(){return"https:"===a}function c(){return"file:"===a}function u(t,e){return 0===t.indexOf("rtmp:")||"rtmp"===e}function s(t,e){return"youtube"===e||/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(t)}function l(t){if(null===t)return"null";var e=r(t);return"object"===e&&Array.isArray(t)?"array":e}function f(t,e,n){var a=Object.keys(t);return Object.keys(e).length>=a.length&&a.every((function(a){var i=t[a],o=e[a];return i&&"object"===r(i)?!(!o||"object"!==r(o))&&f(i,o,n):n(a,t)}))}},function(t,e,n){"use strict";n.r(e);var r=n(5);function a(t,e){if(t&&t.length>e)return t[e]}var i=n(0);n.d(e,"Browser",(function(){return c})),n.d(e,"OS",(function(){return u})),n.d(e,"Features",(function(){return s}));var o=navigator.userAgent,c={},u={},s={};Object.defineProperties(c,{androidNative:{get:Object(i.y)(r.c),enumerable:!0},chrome:{get:Object(i.y)(r.d),enumerable:!0},edge:{get:Object(i.y)(r.e),enumerable:!0},facebook:{get:Object(i.y)(r.g),enumerable:!0},firefox:{get:Object(i.y)(r.f),enumerable:!0},ie:{get:Object(i.y)(r.i),enumerable:!0},msie:{get:Object(i.y)(r.n),enumerable:!0},safari:{get:Object(i.y)(r.q),enumerable:!0},version:{get:Object(i.y)(function(t,e){var n,r,a,i;return t.chrome?n=-1!==e.indexOf("Chrome")?e.substring(e.indexOf("Chrome")+7):e.substring(e.indexOf("CriOS")+6):t.safari?n=e.substring(e.indexOf("Version")+8):t.firefox?n=e.substring(e.indexOf("Firefox")+8):t.edge?n=e.substring(e.indexOf("Edge")+5):t.ie&&(-1!==e.indexOf("rv:")?n=e.substring(e.indexOf("rv:")+3):-1!==e.indexOf("MSIE")&&(n=e.substring(e.indexOf("MSIE")+5))),n&&(-1!==(i=n.indexOf(";"))&&(n=n.substring(0,i)),-1!==(i=n.indexOf(" "))&&(n=n.substring(0,i)),-1!==(i=n.indexOf(")"))&&(n=n.substring(0,i)),r=parseInt(n,10),a=parseInt(n.split(".")[1],10)),{version:n,major:r,minor:a}}.bind(void 0,c,o)),enumerable:!0}}),Object.defineProperties(u,{android:{get:Object(i.y)(r.b),enumerable:!0},iOS:{get:Object(i.y)(r.j),enumerable:!0},mobile:{get:Object(i.y)(r.o),enumerable:!0},mac:{get:Object(i.y)(r.p),enumerable:!0},iPad:{get:Object(i.y)(r.k),enumerable:!0},iPhone:{get:Object(i.y)(r.l),enumerable:!0},windows:{get:Object(i.y)((function(){return o.indexOf("Windows")>-1})),enumerable:!0},version:{get:Object(i.y)(function(t,e){var n,r,i;if(t.windows)switch(n=a(/Windows(?: NT|)? ([._\d]+)/.exec(e),1)){case"6.1":n="7.0";break;case"6.2":n="8.0";break;case"6.3":n="8.1"}else t.android?n=a(/Android ([._\d]+)/.exec(e),1):t.iOS?n=a(/OS ([._\d]+)/.exec(e),1):t.mac&&(n=a(/Mac OS X (10[._\d]+)/.exec(e),1));if(n){r=parseInt(n,10);var o=n.split(/[._]/);o&&(i=parseInt(o[1],10))}return{version:n,major:r,minor:i}}.bind(void 0,u,o)),enumerable:!0}}),Object.defineProperties(s,{flash:{get:Object(i.y)(r.h),enumerable:!0},flashVersion:{get:Object(i.y)(r.a),enumerable:!0},iframe:{get:Object(i.y)(r.m),enumerable:!0},passiveEvents:{get:Object(i.y)((function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(t){}return t})),enumerable:!0},backgroundLoading:{get:Object(i.y)((function(){return!(u.iOS||c.safari)})),enumerable:!0}})},function(t,e,n){"use strict";n.r(e),n.d(e,"getAbsolutePath",(function(){return i})),n.d(e,"isAbsolutePath",(function(){return o})),n.d(e,"parseXML",(function(){return u})),n.d(e,"serialize",(function(){return s})),n.d(e,"parseDimension",(function(){return l})),n.d(e,"timeFormat",(function(){return f}));var r=n(8),a=n(0);function i(t,e){if(Object(r.exists)(e)||(e=document.location.href),Object(r.exists)(t)){if(o(t))return t;var n,a=e.substring(0,e.indexOf("://")+3),i=e.substring(a.length,e.indexOf("/",a.length+1));if(0===t.indexOf("/"))n=t.split("/");else{var c=e.split("?")[0];n=(c=c.substring(a.length+i.length+1,c.lastIndexOf("/"))).split("/").concat(t.split("/"))}for(var u=[],s=0;s-1?t:parseInt(t.replace("px",""),10):t}function f(t,e){if(t<=0&&!e||Object(a.r)(parseInt(t)))return"00:00";var n=t<0?"-":"";t=Math.abs(t);var r=Math.floor(t/3600),i=Math.floor((t-3600*r)/60),o=Math.floor(t%60);return n+(r?r+":":"")+(i<10?"0":"")+i+":"+(o<10?"0":"")+o}},function(t,e,n){"use strict";e.a=[]},function(t,e,n){"use strict";n.d(e,"h",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return b})),n.d(e,"f",(function(){return v})),n.d(e,"b",(function(){return m})),n.d(e,"d",(function(){return y})),n.d(e,"g",(function(){return j})),n.d(e,"a",(function(){return O}));var r=n(0),a=n(5),i=n(22),o=n(8),c=n(33),u={};function s(t){var e=l(t),n=e.indexOf("_");return-1===n?e:e.substring(0,n)}function l(t){return t.toLowerCase().replace("-","_")}function f(t){return t?Object.keys(t).reduce((function(e,n){return e[l(n)]=t[n],e}),{}):{}}function d(t){var e=t.querySelector("html");return e?e.getAttribute("lang"):null}function p(){var t=d(document);if(!t&&Object(a.m)())try{t=d(window.top.document)}catch(t){}return t||navigator.language||"en"}Object(r.n)({zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish",el:"Greek",fi:"Finnish",id:"Indonesian",ko:"Korean",th:"Thai",vi:"Vietnamese"});var h=["ar","da","de","es","fi","fr","he","id","it","ja","ko","nl","no","pt","ro","ru","sv","th","tr","vi","zh"];function b(t){return 8207===t.charCodeAt(0)||/^[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)}function v(t){return h.indexOf(s(t))>=0}function m(t,e,n){return Object(r.h)({},function(t){var e=t.advertising,n=t.related,a=t.sharing,i=t.abouttext,o=Object(r.h)({},t.localization);e&&(o.advertising=o.advertising||{},g(o.advertising,e,"admessage"),g(o.advertising,e,"cuetext"),g(o.advertising,e,"loadingAd"),g(o.advertising,e,"podmessage"),g(o.advertising,e,"skipmessage"),g(o.advertising,e,"skiptext")),"string"==typeof o.related?o.related={heading:o.related}:o.related=o.related||{},n&&g(o.related,n,"autoplaymessage"),a&&(o.sharing=o.sharing||{},g(o.sharing,a,"heading"),g(o.sharing,a,"copied")),i&&g(o,t,"abouttext");var c=o.close||o.nextUpClose;return c&&(o.close=c),o}(t),e[s(n)],e[l(n)])}function g(t,e,n){var r=t[n]||e[n];r&&(t[n]=r)}function y(t){return Object(o.isDeepKeyCompliant)(c.a,t,(function(t,e){return"string"==typeof e[t]}))}function j(t,e){var n=u[e];if(!n){var r="".concat(t,"translations/").concat(s(e),".json");u[e]=n=new Promise((function(t,n){Object(i.a)({url:r,oncomplete:t,onerror:function(t,r,a,i){u[e]=null,n(i)},responseType:"json"})}))}return n}function O(t,e){var n=Object(r.h)({},t,e);return w(n,"errors",t,e),w(n,"related",t,e),w(n,"sharing",t,e),w(n,"advertising",t,e),n}function w(t,e,n,a){t[e]=Object(r.h)({},n[e],a[e])}},function(t,e,n){"use strict";var r=n(48),a=n(8),i=document.createElement("video"),o={aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"},c=[{name:"html5",supports:function(t){if(!1===Object(r.a)(t))return!1;if(!i.canPlayType)return!1;var e=t.file,n=t.type;if(Object(a.isRtmp)(e,n))return!1;var c=t.mimeType||o[n];if(!c)return!1;var u=t.mediaTypes;return u&&u.length&&(c=[c].concat(u.slice()).join("; ")),!!i.canPlayType(c)}}];e.a=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=Date.now||function(){return(new Date).getTime()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return p}));var r=n(25),a=n(26),i=n(13),o=n(21),c=n(32),u=n(1),s=null,l={};function f(t){return s||(s=function(t){var e,s=t.get("controls"),f=h(),p=function(t,e){var n=t.get("playlist");if(Array.isArray(n)&&n.length)for(var o=Object(a.c)(Object(r.a)(n[0]),t),c=0;c=0)return r.substr(0,a+1)}}return""}),i=function(){return a("jwplayer.js")},o=function(t){var e=("0"+t).split(/\W/),n=r.a.split(/\W/),a=parseFloat(e[0]),i=parseFloat(n[0]);return!(a>i||a===i&&parseFloat("0"+e[1])>parseFloat(n[1]))},c=function(){return a("jwplayer.js")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(28),a=n(13),i=n(49),o=n(0);function c(t){var e=t.getName().name;if(!r.a[e]){if(!Object(o.j)(a.a,Object(o.x)({name:e}))){if(!Object(o.q)(t.supports))throw new Error("Tried to register a provider with an invalid object");a.a.unshift({name:e,supports:t.supports})}Object(o.e)(t.prototype,i.a),r.a[e]=t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(10),i=n(8),o=n(1),c=function(){};function u(t,e,n,d){var p;t===Object(t)&&(t=(d=t).url);var h=Object(r.h)({xhr:null,url:t,withCredentials:!1,retryWithoutCredentials:!1,timeout:6e4,timeoutId:-1,oncomplete:e||c,onerror:n||c,mimeType:d&&!d.responseType?"text/xml":"",requireValidXML:!1,responseType:d&&d.plainText?"text":"",useDomParser:!1,requestFilter:null},d),b=function(t,e){return function(t,n){var a=t.currentTarget||e.xhr;(clearTimeout(e.timeoutId),e.retryWithoutCredentials&&e.xhr.withCredentials)?(s(a),u(Object(r.h)({},e,{xhr:null,withCredentials:!1,retryWithoutCredentials:!1}))):(!n&&a.status>=400&&a.status<600&&(n=a.status),l(e,n?o.k:o.m,n||6,t))}}(0,h);if("XMLHttpRequest"in window){if(p=h.xhr=h.xhr||new window.XMLHttpRequest,"function"==typeof h.requestFilter){var v;try{v=h.requestFilter({url:t,xhr:p})}catch(t){return b(t,5),p}v&&"open"in v&&"send"in v&&(p=h.xhr=v)}p.onreadystatechange=function(t){return function(e){var n=e.currentTarget||t.xhr;if(4===n.readyState){clearTimeout(t.timeoutId);var c=n.status;if(c>=400)return void l(t,o.k,c<600?c:6);if(200===c)return function(t){return function(e){var n=e.currentTarget||t.xhr;if(clearTimeout(t.timeoutId),t.responseType){if("json"===t.responseType)return function(t,e){if(!t.response||"string"==typeof t.response&&'"'!==t.responseText.substr(1))try{t=Object(r.h)({},t,{response:JSON.parse(t.responseText)})}catch(t){return void l(e,o.k,611,t)}return e.oncomplete(t)}(n,t)}else{var i,c=n.responseXML;if(c)try{i=c.firstChild}catch(t){}if(c&&i)return f(n,c,t);if(t.useDomParser&&n.responseText&&!c&&(c=Object(a.parseXML)(n.responseText))&&c.firstChild)return f(n,c,t);if(t.requireValidXML)return void l(t,o.k,602)}t.oncomplete(n)}}(t)(e);0===c&&Object(i.isFileProtocol)()&&!/^[a-z][a-z0-9+.-]*:/.test(t.url)&&l(t,o.k,7)}}}(h),p.onerror=b,"overrideMimeType"in p?h.mimeType&&p.overrideMimeType(h.mimeType):h.useDomParser=!0;try{t=t.replace(/#.*$/,""),p.open("GET",t,!0)}catch(t){return b(t,3),p}if(h.responseType)try{p.responseType=h.responseType}catch(t){}h.timeout&&(h.timeoutId=setTimeout((function(){s(p),l(h,o.m,1)}),h.timeout),p.onabort=function(){clearTimeout(h.timeoutId)});try{h.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0),p.send()}catch(t){b(t,4)}return p}l(h,o.m,2)}function s(t){t.onload=null,t.onprogress=null,t.onreadystatechange=null,t.onerror=null,"abort"in t&&t.abort()}function l(t,e,n,r){t.onerror(e,t.url,t.xhr,new o.n(e,n,r))}function f(t,e,n){var a=e.documentElement;if(!n.requireValidXML||"parsererror"!==a.nodeName&&!a.getElementsByTagName("parsererror").length)return t.responseXML||(t=Object(r.h)({},t,{responseXML:e})),n.oncomplete(t);l(n,o.k,601)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="8.8.2+local.2019-04-14-10-10-00-755"},function(t,e,n){"use strict";var r=n(0),a=n(14),i=window.performance||{timing:{}},o=i.timing.navigationStart||Object(a.a)();function c(){return o+i.now()}"now"in i||(i.now=function(){return Object(a.a)()-o}),e.a=function(){var t={},e={},n={},a={};return{start:function(e){t[e]=c(),n[e]=n[e]+1||1},end:function(n){if(t[n]){var r=c()-t[n];delete t[n],e[n]=e[n]+r||r}},dump:function(){var i=Object(r.h)({},e);for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var u=c()-t[o];i[o]=i[o]+u||u}return{counts:Object(r.h)({},n),sums:i,events:Object(r.h)({},a)}},tick:function(t){a[t]=c()},clear:function(t){delete a[t]},between:function(t,e){return a[e]&&a[t]?a[e]-a[t]:null}}}},function(t,e,n){"use strict";var r=n(0),a=n(29),i=function(t){if(t&&t.file)return Object(r.h)({},{kind:"captions",default:!1},t)},o=Array.isArray;e.a=function(t){o((t=t||{}).tracks)||delete t.tracks;var e=Object(r.h)({},{sources:[],tracks:[],minDvrWindow:120,dvrSeekLimit:25},t);e.dvrSeekLimit<5&&(e.dvrSeekLimit=5),e.sources!==Object(e.sources)||o(e.sources)||(e.sources=[Object(a.a)(e.sources)]),o(e.sources)&&0!==e.sources.length||(t.levels?e.sources=t.levels:e.sources=[Object(a.a)(t)]);for(var n=0;n0)return 0;var n=t.indexOf("/"),r=Object(f.a)(t);return!(e<0&&n<0)||r&&isNaN(r)?1:2}},p=function(t){this.url=t,this.promise_=null};Object.defineProperties(p.prototype,{promise:{get:function(){return this.promise_||this.load()},set:function(){}}}),Object(a.h)(p.prototype,{load:function(){var t=this,e=this.promise_;if(!e){if(2===d(this.url))e=Promise.resolve(this);else{var n=new s.a(function(t){switch(d(t)){case 0:return t;case 1:return Object(l.getAbsolutePath)(t,window.location.href)}}(this.url));this.loader=n,e=n.load().then((function(){return t}))}this.promise_=e}return e},registerPlugin:function(t,e,n){this.name=t,this.target=e,this.js=n},getNewInstance:function(t,e,n){var a=this.js;if("function"!=typeof a)throw new r.n(null,o(this.url)+100);var i=new a(t,e,n);return i.addToPlayer=function(){var e=t.getContainer().querySelector(".jw-overlays");e&&(n.left=e.style.left,n.top=e.style.top,e.appendChild(n),i.displayArea=e)},i.resizeHandler=function(){var t=i.displayArea;t&&i.resize(t.clientWidth,t.clientHeight)},i}});var h=p,b=n(38),v={},m=function(){},g=m.prototype;g.setupPlugin=function(t){var e=this.getPlugin(t);return e?(e.url!==t&&Object(b.a)('JW Plugin "'.concat(i(t),'" already loaded from "').concat(e.url,'". Ignoring "').concat(t,'."')),e.promise):this.addPlugin(t).load()},g.addPlugin=function(t){var e=i(t),n=v[e];return n||(n=new h(t),v[e]=n),n},g.getPlugin=function(t){return v[i(t)]},g.removePlugin=function(t){delete v[i(t)]},g.getPlugins=function(){return v};var y=m;n.d(e,"b",(function(){return O})),n.d(e,"a",(function(){return w}));var j=new y,O=function(t,e,n){var r=j.addPlugin(t);r.js||r.registerPlugin(t,e,n)};function w(t,e){var n=t.get("plugins");return window.jwplayerPluginJsonp=O,(t.pluginLoader=t.pluginLoader||new u).load(e,j,n,t).then((function(e){if(!t.attributes._destroyed)return delete window.jwplayerPluginJsonp,e}))}},function(t,e,n){"use strict";e.a={}},function(t,e,n){"use strict";var r=n(0),a=n(8),i=n(2);e.a=function(t){if(t&&t.file){var e=Object(r.h)({},{default:!1},t);e.file=Object(i.h)(""+e.file);var n=/^[^\/]+\/(?:x-)?([^\/]+)$/;if(n.test(e.type)&&(e.mimeType=e.type,e.type=e.type.replace(n,"$1")),Object(a.isYouTube)(e.file)?e.type="youtube":Object(a.isRtmp)(e.file)?e.type="rtmp":e.type||(e.type=Object(i.a)(e.file)),e.type){switch(e.type){case"m3u8":case"vnd.apple.mpegurl":e.type="hls";break;case"dash+xml":e.type="dash";break;case"m4a":e.type="aac";break;case"smil":e.type="rtmp"}return Object.keys(e).forEach((function(t){""===e[t]&&delete e[t]})),e}}}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(15),a=null,i={};function o(){return a||(a=n.e(1).then(function(t){var e=n(16).default;return i.controls=e,e}.bind(null,n)).catch((function(){a=null,Object(r.c)(301130)()}))),a}},function(t,e,n){"use strict";e.a={advertising:{admessage:"This ad will end in xx",cuetext:"Advertisement",displayHeading:"Advertisement",loadingAd:"Loading ad",podmessage:"Ad __AD_POD_CURRENT__ of __AD_POD_LENGTH__.",skipmessage:"Skip ad in xx",skiptext:"Skip"},airplay:"AirPlay",audioTracks:"Audio Tracks",auto:"Auto",buffer:"Loading",cast:"Chromecast",cc:"Closed Captions",close:"Close",errors:{badConnection:"This video cannot be played because of a problem with your internet connection.",cantLoadPlayer:"Sorry, the video player failed to load.",cantPlayInBrowser:"The video cannot be played in this browser.",cantPlayVideo:"This video file cannot be played.",errorCode:"Error Code",liveStreamDown:"The live stream is either down or has ended.",protectedContent:"There was a problem providing access to protected content.",technicalError:"This video cannot be played because of a technical error."},exitFullscreen:"Exit Fullscreen",fullscreen:"Fullscreen",hd:"Quality",liveBroadcast:"Live",logo:"Logo",mute:"Mute",next:"Next",nextUp:"Next Up",notLive:"Not Live",off:"Off",pause:"Pause",play:"Play",playback:"Play",playbackRates:"Playback Rates",player:"Video Player",poweredBy:"Powered by",prev:"Previous",related:{autoplaymessage:"Next up in xx",heading:"More Videos"},replay:"Replay",rewind:"Rewind 10 Seconds",settings:"Settings",sharing:{copied:"Copied",email:"Email",embed:"Embed",heading:"Share",link:"Link"},slider:"Seek",stop:"Stop",unmute:"Unmute",videoInfo:"About This Video",volume:"Volume",volumeSlider:"Volume"}},function(t,e,n){"use strict";var r=n(0),a=n(13),i=n(21),o=n(28),c=n(15);function u(t){this.config=t||{}}var s={html5:function(){return n.e(9).then(function(t){var e=n(31).default;return Object(i.a)(e),e}.bind(null,n)).catch(Object(c.b)(152))}};Object(r.h)(u.prototype,{load:function(t){var e=s[t],n=function(){return Promise.reject(new Error("Failed to load media"))};return e?e().then((function(){return o.a[t]||n()})):n()},providerSupports:function(t,e){return t.supports(e)},choose:function(t){if(t===Object(t))for(var e=a.a.length,n=0;n')+'
'+'
'.concat(e||"",'').concat(a,"
")+"
"}(t.get("id"),n,t.get("localization").errors.errorCode,i),c=t.get("width"),u=t.get("height"),s=Object(r.e)(o);return Object(a.d)(s,{width:c.toString().indexOf("%")>0?c:"".concat(c,"px"),height:u.toString().indexOf("%")>0?u:"".concat(u,"px")}),s}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var r=n(0),a=n(6),i=n(3),o={};function c(t){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=t,e}function u(t){var e=document.createElement("script");return e.type="text/javascript",e.charset="utf-8",e.async=!0,e.timeout=45e3,e.src=t,e}var s=function(t,e){var n=this,r=0;function a(t){r=2,n.trigger(i.w,t).off()}function s(t){r=3,n.trigger(i.jb,t).off()}this.getStatus=function(){return r},this.load=function(){var n=o[t];return 0!==r||(n&&n.then(s).catch(a),r=1,n=new Promise((function(n,r){var i=(e?c:u)(t),o=function(){i.onerror=i.onload=null,clearTimeout(f)},l=function(t){o(),a(t),r(t)},f=setTimeout((function(){l(new Error("Network timeout ".concat(t)))}),45e3);i.onerror=function(){l(new Error("Failed to load ".concat(t)))},i.onload=function(t){o(),s(t),n(t)};var d=document.getElementsByTagName("head")[0]||document.documentElement;d.insertBefore(i,d.firstChild)})),o[t]=n),n}};Object(r.h)(s.prototype,a.a),e.a=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof console.log?console.log.bind(console):function(){}},function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return T}));var r=n(9),a=n(3),i=n(6),o=n(14),c=n(7);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n36&&(I(t,a.u,e),t.dragged=!0,I(t,a.s,e))}n||"touchmove"!==e.type||M(e)},s=function(n){if(clearTimeout(p),t.el)if(E(t),P(t,g),t.dragged)t.dragged=!1,I(t,a.t,n);else if(-1===n.type.indexOf("cancel")&&e.contains(n.target)){if(Object(o.a)()-t.lastStart>500)return;var r="pointerup"===n.type||"pointercancel"===n.type,i="mouseup"===n.type||r&&"mouse"===n.pointerType;!function(t,e,n){if(t.enableDoubleTap)if(Object(o.a)()-t.lastClick<300){I(t,n?a.q:a.r,e),t.lastClick=0}else t.lastClick=Object(o.a)()}(t,n,i),i?I(t,a.n,n):(I(t,a.qb,n),"touchend"!==n.type||j||M(n))}};v?S(t,"init","pointerdown",i,r):(m&&S(t,"init","mousedown",i,r),S(t,"init","touchstart",i,r)),h||(h=new w(document).on("interaction")),S(t,"init","blur",(function(){Object(c.n)(e,"jw-tab-focus")})),S(t,"init","focus",(function(){h.event&&h.event.type===y&&Object(c.a)(e,"jw-tab-focus")}))}}var C={drag:function(t){x(t)},dragStart:function(t){x(t)},dragEnd:function(t){x(t)},click:function(t){x(t)},tap:function(t){x(t)},doubleTap:function(t){t.enableDoubleTap=!0,x(t)},doubleClick:function(t){t.enableDoubleTap=!0,x(t)},longPress:function(t){if(r.OS.iOS){var e=function(){clearTimeout(p)};S(t,"longPress","touchstart",(function(n){e(),p=setTimeout((function(){I(t,"longPress",n)}),500)})),S(t,"longPress","touchmove",e),S(t,"longPress","touchcancel",e),S(t,"longPress","touchend",e)}else t.el.oncontextmenu=function(e){return I(t,"longPress",e),!1}},focus:function(t){S(t,"focus","focus",(function(e){A(t,"focus",e)}))},blur:function(t){S(t,"blur","blur",(function(e){A(t,"blur",e)}))},over:function(t){(v||m)&&S(t,a.Y,v?"pointerover":"mouseover",(function(e){"touch"!==e.pointerType&&I(t,a.Y,e)}))},out:function(t){if(v){var e=t.el;S(t,a.X,"pointerout",(function(n){if("touch"!==n.pointerType&&"x"in n){var r=document.elementFromPoint(n.x,n.y);e.contains(r)||I(t,a.X,n)}}))}else m&&S(t,a.X,"mouseout",(function(e){I(t,a.X,e)}))},move:function(t){(v||m)&&S(t,a.V,v?"pointermove":"mousemove",(function(e){"touch"!==e.pointerType&&I(t,a.V,e)}))},enter:function(t){S(t,a.v,y,(function(e){"Enter"!==e.key&&13!==e.keyCode||(e.stopPropagation(),A(t,a.v,e))}))},keydown:function(t){S(t,y,y,(function(e){A(t,y,e)}),!1)},gesture:function(t){var e=function(e){return I(t,"gesture",e)};S(t,"gesture","click",e),S(t,"gesture",y,e)},interaction:function(t){var e=function(e){t.event=e};S(t,"interaction","mousedown",e,!0),S(t,"interaction",y,e,!0)}};function T(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}function S(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:O,i=t.handlers[e],o=t.options[e];if(i||(i=t.handlers[e]={},o=t.options[e]={}),i[n])throw new Error("".concat(e," ").concat(n," already registered"));i[n]=r,o[n]=a;var c=t.el;(e===g?T(c):c).addEventListener(n,r,a)}function P(t,e){var n=t.el,r=t.handlers,a=t.options,i=e===g?T(n):n,o=r[e],c=a[e];o&&(Object.keys(o).forEach((function(t){var e=c[t];"boolean"==typeof e?i.removeEventListener(t,o[t],e):i.removeEventListener(t,o[t])})),r[e]=null,a[e]=null)}function E(t){var e=t.el;null!==t.pointerId&&(e.releasePointerCapture(t.pointerId),t.pointerId=null)}function A(t,e,n){var r=t.el,a=n.target;t.trigger(e,{type:e,sourceEvent:n,currentTarget:r,target:a})}function I(t,e,n){var r=function(t,e,n){var r,a=e.target,i=e.touches,o=e.changedTouches,c=e.pointerType;i||o?(r=i&&i.length?i[0]:o[0],c=c||"touch"):(r=e,c=c||"mouse");var u=r;return{type:t,pointerType:c,pageX:u.pageX,pageY:u.pageY,sourceEvent:e,currentTarget:n,target:a}}(e,n,t.el);t.trigger(e,r)}function R(t){return 0===t.type.indexOf("touch")?(t.originalEvent||t).changedTouches[0]:t}function M(t){t.preventDefault&&t.preventDefault()}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var r={audioMode:!1,flashBlocked:!1,item:0,itemMeta:{},playbackRate:1,playRejected:!1,state:n(3).lb,itemReady:!1,controlsEnabled:!1},a={position:0,duration:0,buffer:0,currentTime:0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t,e,n){return Math.max(Math.min(t,n),e)}},function(t,e,n){"use strict";function r(t,e,n){var r=[],a={};function i(){for(;r.length>0;){var e=r.shift(),n=e.command,i=e.args;(a[n]||t[n]).apply(t,i)}}e.forEach((function(e){var o=t[e];a[e]=o,t[e]=function(){var t=Array.prototype.slice.call(arguments,0);n()?r.push({command:e,args:t}):(i(),o&&o.apply(this,t))}})),Object.defineProperty(this,"queue",{enumerable:!0,get:function(){return r}}),this.flush=i,this.empty=function(){r.length=0},this.off=function(){e.forEach((function(e){var n=a[e];n&&(t[e]=n,delete a[e])}))},this.destroy=function(){this.off(),this.empty()}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(6);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n=.25&&t<=4})).map((function(t){return Math.round(100*t)/100}))).indexOf(1)<0&&m.push(1),m.sort(),h.playbackRateControls=!0,h.playbackRates=m}(!h.playbackRateControls||h.playbackRates.indexOf(h.defaultPlaybackRate)<0)&&(h.defaultPlaybackRate=1),h.playbackRate=h.defaultPlaybackRate,h.aspectratio||delete h.aspectratio;var g=h.playlist;if(g)Array.isArray(g.playlist)&&(h.feedData=g,h.playlist=g.playlist);else{var y=Object(r.z)(h,["title","description","type","mediaid","image","file","sources","tracks","preload","duration"]);h.playlist=[y]}h.qualityLabels=h.qualityLabels||h.hlslabels,delete h.duration;var j=h.liveTimeout;null!==j&&(Object(r.v)(j)?0!==j&&(j=Math.max(30,j)):j=null,h.liveTimeout=j);var O,w,k=parseFloat(h.bandwidthEstimate),_=parseFloat(h.bitrateSelection);return h.bandwidthEstimate=Object(r.v)(k)?k:(O=h.defaultBandwidthEstimate,w=parseFloat(O),Object(r.v)(w)?Math.max(w,1):l.bandwidthEstimate),h.bitrateSelection=Object(r.v)(_)?_:l.bitrateSelection,h.backgroundLoading=Object(r.o)(h.backgroundLoading)?h.backgroundLoading:c.Features.backgroundLoading,h},p=n(15),h=n(27),b=n(3),v=n(47),m=n(26),g=n(37),y=n(1);function j(t,e,n){var r=t.attributes;r.playlist=Object(m.a)(e),r.feedData=n}function O(t){return function(t){var e=t.get("playlist");return new Promise((function(n,r){if("string"!=typeof e){var a=t.get("feedData")||{};return j(t,e,a),n()}var i=new v.a;i.on(b.db,(function(e){var r=e.playlist;delete e.playlist,j(t,r,e),n()})),i.on(b.w,(function(e){j(t,[],{}),r(Object(y.u)(e,y.p))})),i.load(e)}))}(t).then((function(){if(!_(t)){var e=Object(m.b)(t.get("playlist"),t);t.attributes.playlist=e;try{Object(m.e)(e)}catch(t){throw t.code+=y.p,t}var n=t.getProviders(),r=n.choose(e[0].sources[0]),a=r.provider,i=r.name;return"function"==typeof a?a:p.a.html5&&"html5"===i?p.a.html5:n.load(i).catch((function(t){throw Object(y.u)(t,y.q)}))}}))}function w(t){var e=t.get("skin")?t.get("skin").url:void 0;return"string"!=typeof e||function(t){for(var e=document.styleSheets,n=0,r=e.length;n0&&(r[f][n]="true"===r[f][n],r[f].label.length||delete r[f].label,e.sources.push(r[f]))}if(a.length){e.tracks=[];for(var d=0;d0&&(a[d][n]="true"===a[d][n],a[d].kind=a[d].kind.length?a[d].kind:"captions",a[d].label.length||delete a[d].label,e.tracks.push(a[d]))}return e}(t,function t(e,n){for(var r,a,u=[],s=0;s0&&(n=t(l,n));break;case"title":n.title=Object(i.d)(l);break;case"description":n.description=Object(i.d)(l);break;case"guid":n.mediaid=Object(i.d)(l);break;case"thumbnail":n.image||(n.image=Object(o.i)(l,"url"));break;case"group":t(l,n);break;case"subtitle":var p={};p.file=Object(o.i)(l,"url"),p.kind="captions",Object(o.i)(l,"lang").length>0&&(p.label=(void 0,(a={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"})[r=Object(o.i)(l,"lang")]?a[r]:r)),u.push(p)}}}n.hasOwnProperty("tracks")||(n.tracks=[]);for(var h=0;h=4.4:null}},function(t,e,n){"use strict";var r=n(3),a=function(){},i=function(){return!1},o={name:"default"},c={supports:i,play:a,pause:a,preload:a,load:a,stop:a,volume:a,mute:a,seek:a,resize:a,remove:a,destroy:a,eventsOn_:a,eventsOff_:a,setVisibility:a,setFullscreen:a,getFullscreen:i,supportsFullscreen:i,getContainer:a,setContainer:a,getName:function(){return o},getQualityLevels:a,getCurrentQuality:a,setCurrentQuality:a,getAudioTracks:a,getCurrentAudioTrack:a,setCurrentAudioTrack:a,getSeekRange:function(){return{start:0,end:this.getDuration()}},setPlaybackRate:a,getPlaybackRate:function(){return 1},getBandwidthEstimate:function(){return null},setControls:a,attachMedia:a,detachMedia:a,init:a,setState:function(t){this.state=t,this.trigger(r.ab,{newstate:t})},sendMediaType:function(t){var e=t[0],n=e.type,a=e.mimeType,i="aac"===n||"mp3"===n||"mpeg"===n||a&&0===a.indexOf("audio/");this.trigger(r.S,{mediaType:i?"audio":"video"})}};e.a=c},function(e,n,r){"use strict";r.r(n);var a=setTimeout;function i(){}function o(t){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function c(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,o._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}u(e.promise,r)}else(1===t._state?u:s)(e.promise,t._value)}))):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void d((r=n,a=e,function(){r.apply(a,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}var r,a}function s(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&o._immediateFn((function(){t._handled||o._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e2&&void 0!==arguments[2]?arguments[2]:[];if(w.a.debug)return t.apply(e||this,n);try{return t.apply(e||this,n)}catch(e){return new A(t.name,e)}},Error:A,Timer:C.a,log:F.a,between:N.a,foreach:function(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])},flashVersion:I.a,isIframe:I.m,indexOf:O.m,trim:E.h,pad:E.d,extension:E.a,hms:E.b,seconds:E.f,prefix:E.e,suffix:E.g,noop:function(){}}),z=0;function V(t,e){var n=new _.a(e);return n.on(x.fb,(function(e){t._qoe.tick("ready"),e.setupTime=t._qoe.between("setup","ready")})),n.on("all",(function(e,n){t.trigger(e,n)})),n}function $(t,e){var n=t.plugins;Object.keys(n).forEach((function(t){delete n[t]})),e.get("setupConfig")&&t.trigger("remove"),t.off(),e.playerDestroy(),e.getContainer().removeAttribute("data-jwplayer-id")}function B(t){var e=++z,n=t.id||"player-".concat(e),r=new C.a,a={},i=V(this,t);r.tick("init"),t.setAttribute("data-jwplayer-id",n),Object.defineProperties(this,{id:{get:function(){return n}},uniqueId:{get:function(){return e}},plugins:{get:function(){return a}},_qoe:{get:function(){return r}},version:{get:function(){return j.a}},Events:{get:function(){return T.a}},utils:{get:function(){return D}},_:{get:function(){return O.d}}}),Object(O.h)(this,{_events:{},setup:function(e){return r.clear("ready"),r.tick("setup"),$(this,i),(i=V(this,t)).init(e,this),this.on(e.events,null,this)},remove:function(){return function(t){for(var e=b.a.length;e--;)if(b.a[e].uniqueId===t.uniqueId){b.a.splice(e,1);break}}(this),$(this,i),this},qoe:function(){var t=i.getItemQoe();return{setupTime:this._qoe.between("setup","ready"),firstFrame:t.getFirstFrame?t.getFirstFrame():null,player:this._qoe.dump(),item:t.dump()}},addCues:function(t){return Array.isArray(t)&&i.addCues(t),this},getAudioTracks:function(){return i.getAudioTracks()},getBuffer:function(){return i.get("buffer")},getCaptions:function(){return i.get("captions")},getCaptionsList:function(){return i.getCaptionsList()},getConfig:function(){return i.getConfig()},getContainer:function(){return i.getContainer()},getControls:function(){return i.get("controls")},getCues:function(){return i.get("cues")},getCurrentAudioTrack:function(){return i.getCurrentAudioTrack()},getCurrentCaptions:function(){return i.getCurrentCaptions()},getCurrentQuality:function(){return i.getCurrentQuality()},getCurrentTime:function(){return i.get("currentTime")},getDuration:function(){return i.get("duration")},getEnvironment:function(){return k},getFullscreen:function(){return i.get("fullscreen")},getHeight:function(){return i.getHeight()},getItemMeta:function(){return i.get("itemMeta")||{}},getMute:function(){return i.getMute()},getPlaybackRate:function(){return i.get("playbackRate")},getPlaylist:function(){return i.get("playlist")},getPlaylistIndex:function(){return i.get("item")},getPlaylistItem:function(t){if(!D.exists(t))return i.get("playlistItem");var e=this.getPlaylist();return e?e[t]:null},getPosition:function(){return i.get("position")},getProvider:function(){return i.getProvider()},getQualityLevels:function(){return i.getQualityLevels()},getSafeRegion:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return i.getSafeRegion(t)},getState:function(){return i.getState()},getStretching:function(){return i.get("stretching")},getViewable:function(){return i.get("viewable")},getVisualQuality:function(){return i.getVisualQuality()},getVolume:function(){return i.get("volume")},getWidth:function(){return i.getWidth()},setCaptions:function(t){return i.setCaptions(t),this},setConfig:function(t){return i.setConfig(t),this},setControls:function(t){return i.setControls(t),this},setCurrentAudioTrack:function(t){i.setCurrentAudioTrack(t)},setCurrentCaptions:function(t){i.setCurrentCaptions(t)},setCurrentQuality:function(t){i.setCurrentQuality(t)},setFullscreen:function(t){return i.setFullscreen(t),this},setMute:function(t){return i.setMute(t),this},setPlaybackRate:function(t){return i.setPlaybackRate(t),this},setPlaylistItem:function(t,e){return i.setPlaylistItem(t,e),this},setCues:function(t){return Array.isArray(t)&&i.setCues(t),this},setVolume:function(t){return i.setVolume(t),this},load:function(t,e){return i.load(t,e),this},play:function(t){return i.play(t),this},pause:function(t){return i.pause(t),this},playToggle:function(t){switch(this.getState()){case x.ob:case x.ib:return this.pause(t);default:return this.play(t)}},seek:function(t,e){return i.seek(t,e),this},playlistItem:function(t,e){return i.playlistItem(t,e),this},playlistNext:function(t){return i.playlistNext(t),this},playlistPrev:function(t){return i.playlistPrev(t),this},next:function(t){return i.next(t),this},castToggle:function(){return i.castToggle(),this},createInstream:function(){return i.createInstream()},skipAd:function(){return i.skipAd(),this},stop:function(){return i.stop(),this},resize:function(t,e){return i.resize(t,e),this},addButton:function(t,e,n,r,a){return i.addButton(t,e,n,r,a),this},removeButton:function(t){return i.removeButton(t),this},attachMedia:function(){return i.attachMedia(),this},detachMedia:function(){return i.detachMedia(),this},isBeforeComplete:function(){return i.isBeforeComplete()},isBeforePlay:function(){return i.isBeforePlay()}})}Object(O.h)(B.prototype,{on:function(t,e,n){return T.c.call(this,t,e,n)},once:function(t,e,n){return T.d.call(this,t,e,n)},off:function(t,e,n){return T.b.call(this,t,e,n)},trigger:function(t,e){return(e=O.d.isObject(e)?Object(O.h)({},e):{}).type=t,w.a.debug?T.e.call(this,t,e):T.f.call(this,t,e)},getPlugin:function(t){return this.plugins[t]},addPlugin:function(t,e){this.plugins[t]=e,this.on("ready",e.addToPlayer),e.resize&&this.on("resize",e.resizeHandler)},registerPlugin:function(t,e,n){Object(y.b)(t,e,n)},getAdBlock:function(){return!1},playAd:function(t){},pauseAd:function(t){}}),r.p=Object(h.loadFrom)();var q=function(t){var e,n;if(t?"string"==typeof t?(e=W(t))||(n=document.getElementById(t)):"number"==typeof t?e=b.a[t]:t.nodeType&&(e=W((n=t).id||n.getAttribute("data-jwplayer-id"))):e=b.a[0],e)return e;if(n){var r=new B(n);return b.a.push(r),r}return{registerPlugin:y.b}};function W(t){for(var e=0;e=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(34),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(20))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,a,i,o,c,u=1,s={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(a=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,a.removeChild(e),e=null},a.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(o="setImmediate$"+Math.random()+"$",c=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&h(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",c,!1):t.attachEvent("onmessage",c),r=function(e){t.postMessage(o+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n