Version Description
- August 19, 2022 =
- Fixed: Copy and paste styling of element prevents the page from saving after Elementor 3.7.0
Download this release
Release Info
Developer | simrandeep |
Plugin | PowerPack Addons for Elementor (Instagram Feed, Pricing Table, Forms Stylers, Display Conditions, Free Elementor Widgets and Elementor Templates) |
Version | 2.6.19 |
Comparing to | |
See all releases |
Code changes from version 2.6.18 to 2.6.19
- assets/js/min/frontend.min.js +1 -1
- assets/js/min/jquery.min.js +1 -1
- assets/js/min/pp-gradient-bg-animation.min.js +1 -1
- assets/js/min/pp-instagram.min.js +1 -1
- assets/js/min/pp-posts.min.js +1 -1
- assets/js/min/pp-templates-lib.min.js +1 -1
- assets/js/min/twitter-widgets.min.js +2 -2
- changelog.txt +4 -0
- languages/powerpack.pot +3 -3
- modules/display-conditions/module.php +1 -1
- package.json +1 -1
- powerpack-lite-elementor.php +4 -4
- readme.txt +3 -0
assets/js/min/frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(r){"use strict";var m=function(e){var t,o,n={},i=e.data("model-cid");return a&&i?(t=elementorFrontend.config.elements.data[i],o=elementorFrontend.config.elements.keys[t.attributes.widgetType||t.attributes.elType],jQuery.each(t.getActiveControls(),function(e){-1!==o.indexOf(e)&&(n[e]=t.attributes[e])})):n=e.data("settings")||{},n},a=!1,p=function(t,o,n,e){r(t).closest(".elementor-widget-wrap").addClass("e-swiper-container"),r(t).closest(".elementor-widget").addClass("e-widget-swiper"),"undefined"==typeof Swiper?new elementorFrontend.utils.swiper(t,e).then(function(e){d(t,o,n,e)}):(e=new Swiper(t,e),d(t,o,n,e))},d=function(e,t,o,n){"yes"===o.pause_on_hover&&(e.on("mouseover",function(){n.autoplay.stop()}),e.on("mouseout",function(){n.autoplay.start()})),a&&t.resize(function(){n.update()}),i(n,".pp-swiper-slider","swiper")},e=function(e,t){var o=m(e),n=e.find(".swiper-container-wrap"),i=e.find(".pp-swiper-slider"),e=JSON.parse(i.attr("data-slider-settings"));p(i,n,o,e)},i=function(n,i,a){void 0===a&&(a="swiper");["ppe-tabs-switched","ppe-toggle-switched","ppe-accordion-switched","ppe-popup-opened"].forEach(function(o){void 0!==o&&r(document).on(o,function(e,t){0<(t="ppe-popup-opened"==o?r(".pp-modal-popup-"+t):t).find(i).length&&setTimeout(function(){"slick"===a?n.slick("setPosition"):"swiper"===a?n.update():"gallery"===a&&t.find(".pp-image-gallery").eq(0).isotope("layout")},100)})})},t=function(e,t){var o=e.data("id"),e=e.find(".pp-image-hotspots"),e=JSON.parse(e.attr("data-tooltip-options")),n="pp-tooltip pp-tooltip-"+o,i=e.arrow,a=e.always_open,r=e.trigger,d=e.distance,p=e.animation,c=e.width,o=e.size,s=e.zindex;""!==o&&undefined!==o&&(n+=" pp-tooltip-size-"+o),t(".pp-hot-spot-wrap[data-tooltip]").each(function(){var e=t(this).data("tooltip-position");t(this).pptooltipster({trigger:r,animation:p,minWidth:0,maxWidth:c,ppclass:n,position:e,arrow:"yes"===i,distance:d,interactive:!0,positionTracker:!0,zIndex:s}),"yes"===a&&(t(this).pptooltipster(),t(this).pptooltipster("show"))})},o=function(e,t){var o=e.find(".pp-image-comparison").eq(0),e=o.data("settings");o.twentytwenty({default_offset_pct:e.visible_ratio,orientation:e.orientation,before_label:e.before_label,after_label:e.after_label,move_slider_on_hover:e.slider_on_hover,move_with_handle_only:e.slider_with_handle,click_to_move:e.slider_with_click,no_overlay:e.no_overlay})},n=function(e,n){var t=e.find(".pp-counter").eq(0),o=t.data("target"),i=e.find(".pp-counter-number").data("separator"),e=e.find(".pp-counter-number").data("separator-char"),a=""!==e?"("+e+"ddd).dd":"(,ddd).dd";"undefined"!=typeof elementorFrontend.waypoint&&elementorFrontend.waypoint(t,function(){n(o).each(function(){var e=n(this).data("to"),t=n(this).data("speed"),o=new Odometer({el:this,value:0,duration:t,format:"yes"===i?a:""});o.render(),setInterval(function(){o.update(e)})})},{offset:"80%",triggerOnce:!0})},c=function(t,o){var n=m(t),i=t.find(".swiper-container-wrap"),a=t.find(".pp-info-box-carousel"),e=a.attr("data-slider-settings")!==undefined?JSON.parse(a.attr("data-slider-settings")):"",r=n.equal_height_boxes;o(a).closest(".elementor-widget-wrap").addClass("e-swiper-container"),o(a).closest(".elementor-widget").addClass("e-widget-swiper"),"undefined"==typeof Swiper?new elementorFrontend.utils.swiper(a,e).then(function(e){"yes"===r&&e.on("slideChange",function(){infoBoxEqualHeight(t,o)}),d(a,i,n,e)}):(e=new Swiper(a,e),"yes"===r&&infoBoxEqualHeight(t,o),d(a,i,n,e))},s=function(e,t){var o,n,i,a=e.data("id"),r=m(e),d=r.feed_layout;"carousel"===d?(o=e.find(".swiper-container-wrap"),n=e.find(".swiper-container").eq(0),e=JSON.parse(n.attr("data-slider-settings")),p(n,o,r,e)):"masonry"===d&&(i=t("#pp-instafeed-"+a).imagesLoaded(function(){i.masonry({itemSelector:".pp-feed-item",percentPosition:!0})}))},l=function(e,t){var o=e.find(".pp-image-scroll-container"),n=o.find(".pp-image-scroll-overlay"),i=o.find(".pp-image-scroll-vertical"),e=m(e),a=o.find(".pp-image-scroll-image img"),r=e.direction_type,d=e.reverse,e=e.trigger_type,p=null;function c(){a.css("transform",("vertical"==r?"translateY":"translateX")+"( -"+p+"px)")}function s(){a.css("transform",("vertical"==r?"translateY":"translateX")+"(0px)")}function l(){p="vertical"==r?a.height()-o.height():a.width()-o.width()}"scroll"==e?(o.addClass("pp-container-scroll"),"vertical"==r?i.addClass("pp-image-scroll-ver"):o.imagesLoaded(function(){n.css({width:a.width(),height:a.height()})})):("yes"===d&&o.imagesLoaded(function(){o.addClass("pp-container-scroll-instant"),l(),c()}),"vertical"==r&&i.removeClass("pp-image-scroll-ver"),o.mouseenter(function(){o.removeClass("pp-container-scroll-instant"),l(),("yes"===d?s:c)()}),o.mouseleave(function(){("yes"===d?c:s)()}))},f=function(e,o){var t=e.find(".pp-accordion-tab-title"),e=m(e),n=e.accordion_type,i=e.toggle_speed;t.each(function(){o(this).hasClass("pp-accordion-tab-active-default")&&(o(this).addClass("pp-accordion-tab-show pp-accordion-tab-active"),o(this).next().slideDown(i))}),t.unbind("click"),t.on("click keypress",function(e){var t;e.preventDefault(),1!=e.which&&13!=e.which&&32!=e.which&&e.which!=undefined||(e=(t=o(this)).parent(),o(document).trigger("ppe-accordion-switched",[e]),"accordion"===n?t.hasClass("pp-accordion-tab-show")?(t.closest(".pp-accordion-item").removeClass("pp-accordion-item-active"),t.removeClass("pp-accordion-tab-show pp-accordion-tab-active"),t.attr("aria-expanded","false"),t.next().slideUp(i)):(t.closest(".pp-advanced-accordion").find(".pp-accordion-item").removeClass("pp-accordion-item-active"),t.closest(".pp-advanced-accordion").find(".pp-accordion-tab-title").removeClass("pp-accordion-tab-show pp-accordion-tab-active"),t.closest(".pp-advanced-accordion").find(".pp-accordion-tab-title").removeClass("pp-accordion-tab-active-default"),t.closest(".pp-advanced-accordion").find(".pp-accordion-tab-content").slideUp(i),t.toggleClass("pp-accordion-tab-show pp-accordion-tab-active"),t.closest(".pp-advanced-accordion").find(".pp-accordion-tab-title").attr("aria-expanded","false"),t.closest(".pp-accordion-item").toggleClass("pp-accordion-item-active"),t.hasClass("pp-accordion-tab-title")&&t.attr("aria-expanded","true"),t.next().slideToggle(i)):t.hasClass("pp-accordion-tab-show")?(t.removeClass("pp-accordion-tab-show pp-accordion-tab-active"),t.next().slideUp(i)):(t.addClass("pp-accordion-tab-show pp-accordion-tab-active"),t.next().slideDown(i)))}),u(),o(window).on("hashchange",function(){u()})};function u(){var e;location.hash&&0<r(location.hash).length&&((e=r(location.hash+".pp-accordion-tab-title"))&&0<e.length&&(location.href="#",r("html, body").animate({scrollTop:e.parents(".pp-accordion-item").offset().top-50+"px"},500,function(){e.parents(".pp-accordion-item").hasClass("pp-accordion-item-active")||e.trigger("click")})))}var h=function(e){var t="pp-tooltip pp-tooltip-"+e.data("id"),o=e.find(".pp-button[data-tooltip]").data("tooltip-position"),n=elementorFrontend.config.breakpoints;window.innerWidth<=n.lg&&window.innerWidth>=n.md&&(o=e.find(".pp-button[data-tooltip]").data("tooltip-position-tablet")),window.innerWidth<n.md&&(o=e.find(".pp-button[data-tooltip]").data("tooltip-position-mobile")),e.find(".pp-button[data-tooltip]").pptooltipster({trigger:"hover",animation:"fade",ppclass:t,side:o,interactive:!0,positionTracker:!0})},g=function(e,t){t(document).ready(function(){"undefined"!==twttr&&twttr.widgets.load()})},v=function(e,t){var o=e.find(".pp-image-accordion").eq(0),e=m(e).accordion_action,o=o.attr("id"),n=t("#"+o+" .pp-image-accordion-item");"on-hover"===e?n.hover(function(){n.css("flex","1"),n.removeClass("pp-image-accordion-active"),t(this).addClass("pp-image-accordion-active"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),t(this).find(".pp-image-accordion-content-wrap").addClass("pp-image-accordion-content-active"),t(this).css("flex","3")},function(){n.css("flex","1"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),n.removeClass("pp-image-accordion-active")}):"on-click"===e&&(n.click(function(e){e.stopPropagation(),n.css("flex","1"),n.removeClass("pp-image-accordion-active"),t(this).addClass("pp-image-accordion-active"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),t(this).find(".pp-image-accordion-content-wrap").addClass("pp-image-accordion-content-active"),t(this).css("flex","3")}),t("#"+o).click(function(e){e.stopPropagation()}),t("body").click(function(){n.css("flex","1"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),n.removeClass("pp-image-accordion-active")}))},w=function(e,t){void 0!==e&&e.find("select:not([multiple])").each(function(){var e=t(this);(e.next().hasClass("chosen-container")?e.next():e).wrap("<span class='pp-gf-select-custom'></span>")})},y=function(n,i){var e=n.data("id"),t=n.find(".pp-pricing-table-tooptip[data-tooltip]"),o=m(n),a="pp-tooltip pp-tooltip-"+e,r=o.tooltip_arrow,d=o.tooltip_trigger,p=o.tooltip_animation,e=o.tooltip_size,c=o.tooltip_zindex,s=elementorFrontend.config.breakpoints;""!==e&&undefined!==e&&(a+=" pp-tooltip-size-"+e),t.each(function(){var e=i(this).data("tooltip-position"),t=i(this).data("tooltip-width"),o=i(this).data("tooltip-distance");window.innerWidth<=s.lg&&window.innerWidth>=s.md&&(e=n.find(".pp-pricing-table-tooptip[data-tooltip]").data("tooltip-position-tablet")),window.innerWidth<s.md&&(e=n.find(".pp-pricing-table-tooptip[data-tooltip]").data("tooltip-position-mobile")),i(this).pptooltipster({trigger:d,animation:p,minWidth:t,ppclass:a,side:e,arrow:"yes"===r,distance:o,interactive:!0,positionTracker:!0,zIndex:c})})},b=function(e,t){m(e);var o,n=e.find(".pp-content-reveal-content-wrapper"),i=e.find(".pp-content-reveal-content"),a=e.find(".pp-content-reveal-saparator"),r=e.find(".pp-content-reveal-button-inner"),d=i.outerHeight(),p=n.data("scroll-top"),c=n.data("visibility"),s=n.data("content-height"),l=1e3*n.data("speed"),f=n.data("lines"),e=e.find(".pp-content-reveal-content p").css("line-height"),i=i.css("padding-top");"lines"==c?"0"==f?o=n.outerHeight():(o=parseInt(e,10)*f+parseInt(i,10),n.css("height",o+"px")):(n.css("height",s+"px"),o=s),r.on("click",function(){a.slideToggle(l),t(this).toggleClass("pp-content-revealed"),t(this).find(".pp-content-reveal-button-open").slideToggle(l),t(this).find(".pp-content-reveal-button-closed").slideToggle(l),r.hasClass("pp-content-revealed")?n.animate({height:d+"px"},l):(n.animate({height:o+"px"},l),"yes"==p&&t("html, body").animate({scrollTop:n.offset().top-50+"px"}))})},_=function(e){var t,o,n,i,a,r;e.data("pp-wrapper-link")&&(t=e.data("pp-wrapper-link"),o=e.data("id"),n=t.url,i=t.is_external?"_blank":"_self",a=t.nofollow?"nofollow":"",r=document.createElement("a"),e.on("click.onPPWrapperLink",function(){r.id="pp-wrapper-link-"+o,r.href=n,r.target=i,r.rel=a,r.style.display="none",document.body.appendChild(r);var e=document.getElementById(r.id);e.click();var t=setTimeout(function(){document.body.removeChild(e),clearTimeout(t)})}))};r(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&(a=!0),elementorFrontend.hooks.addAction("frontend/element_ready/pp-image-hotspots.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/pp-image-comparison.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/pp-counter.default",n),elementorFrontend.hooks.addAction("frontend/element_ready/pp-logo-carousel.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-info-box-carousel.default",c),elementorFrontend.hooks.addAction("frontend/element_ready/pp-instafeed.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/pp-team-member-carousel.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-scroll-image.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/pp-advanced-accordion.default",f),elementorFrontend.hooks.addAction("frontend/element_ready/pp-content-ticker.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-buttons.default",h),elementorFrontend.hooks.addAction("frontend/element_ready/pp-twitter-timeline.default",g),elementorFrontend.hooks.addAction("frontend/element_ready/pp-twitter-tweet.default",g),elementorFrontend.hooks.addAction("frontend/element_ready/pp-image-accordion.default",v),elementorFrontend.hooks.addAction("frontend/element_ready/pp-gravity-forms.default",w),elementorFrontend.hooks.addAction("frontend/element_ready/pp-pricing-table.default",y),elementorFrontend.hooks.addAction("frontend/element_ready/pp-content-reveal.default",b),elementorFrontend.hooks.addAction("frontend/element_ready/global",_),a&&parent.document.addEventListener("mousedown",function(e){var t=parent.document.querySelectorAll(".elementor-element--promotion");if(0<t.length)for(var o=0;o<t.length;o++)if(t[o].contains(e.target)){var n,i,a=parent.document.querySelector("#elementor-element--promotion__dialog");0<=t[o].querySelector(".icon > i").classList.toString().indexOf("ppicon")?(a.querySelector(".dialog-buttons-action").style.display="none",null===a.querySelector(".pp-dialog-buttons-action")?(n=document.createElement("a"),i=document.createTextNode("Upgrade to PowerPack Pro"),n.setAttribute("href","https://powerpackelements.com/upgrade/?utm_medium=pp-elements-lite&utm_source=pp-editor-icons&utm_campaign=pp-pro-upgrade"),n.setAttribute("target","_blank"),n.classList.add("dialog-button","dialog-action","dialog-buttons-action","elementor-button","elementor-button-success","pp-dialog-buttons-action"),n.appendChild(i),a.querySelector(".dialog-buttons-action").insertAdjacentHTML("afterend",n.outerHTML)):a.querySelector(".pp-dialog-buttons-action").style.display=""):(a.querySelector(".dialog-buttons-action").style.display="",null!==a.querySelector(".pp-dialog-buttons-action")&&(a.querySelector(".pp-dialog-buttons-action").style.display="none"));break}})})}(jQuery);
|
1 |
+
!function(r){"use strict";var m=function(e){var t,o,n={},i=e.data("model-cid");return a&&i?(t=elementorFrontend.config.elements.data[i],o=elementorFrontend.config.elements.keys[t.attributes.widgetType||t.attributes.elType],jQuery.each(t.getActiveControls(),function(e){-1!==o.indexOf(e)&&(n[e]=t.attributes[e])})):n=e.data("settings")||{},n},a=!1,p=function(t,o,n,e){r(t).closest(".elementor-widget-wrap").addClass("e-swiper-container"),r(t).closest(".elementor-widget").addClass("e-widget-swiper"),"undefined"==typeof Swiper?new elementorFrontend.utils.swiper(t,e).then(function(e){d(t,o,n,e)}):(e=new Swiper(t,e),d(t,o,n,e))},d=function(e,t,o,n){"yes"===o.pause_on_hover&&(e.on("mouseover",function(){n.autoplay.stop()}),e.on("mouseout",function(){n.autoplay.start()})),a&&t.resize(function(){n.update()}),i(n,".pp-swiper-slider","swiper")},e=function(e,t){var o=m(e),n=e.find(".swiper-container-wrap"),e=e.find(".pp-swiper-slider"),i=JSON.parse(e.attr("data-slider-settings"));p(e,n,o,i)},i=function(n,i,a){void 0===a&&(a="swiper");["ppe-tabs-switched","ppe-toggle-switched","ppe-accordion-switched","ppe-popup-opened"].forEach(function(o){void 0!==o&&r(document).on(o,function(e,t){0<(t="ppe-popup-opened"==o?r(".pp-modal-popup-"+t):t).find(i).length&&setTimeout(function(){"slick"===a?n.slick("setPosition"):"swiper"===a?n.update():"gallery"===a&&t.find(".pp-image-gallery").eq(0).isotope("layout")},100)})})},t=function(e,t){var o=e.data("id"),e=e.find(".pp-image-hotspots"),e=JSON.parse(e.attr("data-tooltip-options")),n="pp-tooltip pp-tooltip-"+o,i=e.arrow,a=e.always_open,r=e.trigger,d=e.distance,p=e.animation,c=e.width,o=e.size,s=e.zindex;""!==o&&undefined!==o&&(n+=" pp-tooltip-size-"+o),t(".pp-hot-spot-wrap[data-tooltip]").each(function(){var e=t(this).data("tooltip-position");t(this).pptooltipster({trigger:r,animation:p,minWidth:0,maxWidth:c,ppclass:n,position:e,arrow:"yes"===i,distance:d,interactive:!0,positionTracker:!0,zIndex:s}),"yes"===a&&(t(this).pptooltipster(),t(this).pptooltipster("show"))})},o=function(e,t){var e=e.find(".pp-image-comparison").eq(0),o=e.data("settings");e.twentytwenty({default_offset_pct:o.visible_ratio,orientation:o.orientation,before_label:o.before_label,after_label:o.after_label,move_slider_on_hover:o.slider_on_hover,move_with_handle_only:o.slider_with_handle,click_to_move:o.slider_with_click,no_overlay:o.no_overlay})},n=function(e,n){var t=e.find(".pp-counter").eq(0),o=t.data("target"),i=e.find(".pp-counter-number").data("separator"),e=e.find(".pp-counter-number").data("separator-char"),a=""!==e?"("+e+"ddd).dd":"(,ddd).dd";"undefined"!=typeof elementorFrontend.waypoint&&elementorFrontend.waypoint(t,function(){n(o).each(function(){var e=n(this).data("to"),t=n(this).data("speed"),o=new Odometer({el:this,value:0,duration:t,format:"yes"===i?a:""});o.render(),setInterval(function(){o.update(e)})})},{offset:"80%",triggerOnce:!0})},c=function(t,o){var n=m(t),i=t.find(".swiper-container-wrap"),a=t.find(".pp-info-box-carousel"),e=a.attr("data-slider-settings")!==undefined?JSON.parse(a.attr("data-slider-settings")):"",r=n.equal_height_boxes;o(a).closest(".elementor-widget-wrap").addClass("e-swiper-container"),o(a).closest(".elementor-widget").addClass("e-widget-swiper"),"undefined"==typeof Swiper?new elementorFrontend.utils.swiper(a,e).then(function(e){"yes"===r&&e.on("slideChange",function(){infoBoxEqualHeight(t,o)}),d(a,i,n,e)}):(e=new Swiper(a,e),"yes"===r&&infoBoxEqualHeight(t,o),d(a,i,n,e))},s=function(e,t){var o,n,i,a=e.data("id"),r=m(e),d=r.feed_layout;"carousel"===d?(o=e.find(".swiper-container-wrap"),e=e.find(".swiper-container").eq(0),n=JSON.parse(e.attr("data-slider-settings")),p(e,o,r,n)):"masonry"===d&&(i=t("#pp-instafeed-"+a).imagesLoaded(function(){i.masonry({itemSelector:".pp-feed-item",percentPosition:!0})}))},l=function(e,t){var o=e.find(".pp-image-scroll-container"),n=o.find(".pp-image-scroll-overlay"),i=o.find(".pp-image-scroll-vertical"),e=m(e),a=o.find(".pp-image-scroll-image img"),r=e.direction_type,d=e.reverse,e=e.trigger_type,p=null;function c(){a.css("transform",("vertical"==r?"translateY":"translateX")+"( -"+p+"px)")}function s(){a.css("transform",("vertical"==r?"translateY":"translateX")+"(0px)")}function l(){p="vertical"==r?a.height()-o.height():a.width()-o.width()}"scroll"==e?(o.addClass("pp-container-scroll"),"vertical"==r?i.addClass("pp-image-scroll-ver"):o.imagesLoaded(function(){n.css({width:a.width(),height:a.height()})})):("yes"===d&&o.imagesLoaded(function(){o.addClass("pp-container-scroll-instant"),l(),c()}),"vertical"==r&&i.removeClass("pp-image-scroll-ver"),o.mouseenter(function(){o.removeClass("pp-container-scroll-instant"),l(),("yes"===d?s:c)()}),o.mouseleave(function(){("yes"===d?c:s)()}))},f=function(e,o){var t=e.find(".pp-accordion-tab-title"),e=m(e),n=e.accordion_type,i=e.toggle_speed;t.each(function(){o(this).hasClass("pp-accordion-tab-active-default")&&(o(this).addClass("pp-accordion-tab-show pp-accordion-tab-active"),o(this).next().slideDown(i))}),t.unbind("click"),t.on("click keypress",function(e){var t;e.preventDefault(),1!=e.which&&13!=e.which&&32!=e.which&&e.which!=undefined||(t=(e=o(this)).parent(),o(document).trigger("ppe-accordion-switched",[t]),"accordion"===n?e.hasClass("pp-accordion-tab-show")?(e.closest(".pp-accordion-item").removeClass("pp-accordion-item-active"),e.removeClass("pp-accordion-tab-show pp-accordion-tab-active"),e.attr("aria-expanded","false"),e.next().slideUp(i)):(e.closest(".pp-advanced-accordion").find(".pp-accordion-item").removeClass("pp-accordion-item-active"),e.closest(".pp-advanced-accordion").find(".pp-accordion-tab-title").removeClass("pp-accordion-tab-show pp-accordion-tab-active"),e.closest(".pp-advanced-accordion").find(".pp-accordion-tab-title").removeClass("pp-accordion-tab-active-default"),e.closest(".pp-advanced-accordion").find(".pp-accordion-tab-content").slideUp(i),e.toggleClass("pp-accordion-tab-show pp-accordion-tab-active"),e.closest(".pp-advanced-accordion").find(".pp-accordion-tab-title").attr("aria-expanded","false"),e.closest(".pp-accordion-item").toggleClass("pp-accordion-item-active"),e.hasClass("pp-accordion-tab-title")&&e.attr("aria-expanded","true"),e.next().slideToggle(i)):e.hasClass("pp-accordion-tab-show")?(e.removeClass("pp-accordion-tab-show pp-accordion-tab-active"),e.next().slideUp(i)):(e.addClass("pp-accordion-tab-show pp-accordion-tab-active"),e.next().slideDown(i)))}),u(),o(window).on("hashchange",function(){u()})};function u(){var e;location.hash&&0<r(location.hash).length&&((e=r(location.hash+".pp-accordion-tab-title"))&&0<e.length&&(location.href="#",r("html, body").animate({scrollTop:e.parents(".pp-accordion-item").offset().top-50+"px"},500,function(){e.parents(".pp-accordion-item").hasClass("pp-accordion-item-active")||e.trigger("click")})))}var h=function(e){var t="pp-tooltip pp-tooltip-"+e.data("id"),o=e.find(".pp-button[data-tooltip]").data("tooltip-position"),n=elementorFrontend.config.breakpoints;window.innerWidth<=n.lg&&window.innerWidth>=n.md&&(o=e.find(".pp-button[data-tooltip]").data("tooltip-position-tablet")),window.innerWidth<n.md&&(o=e.find(".pp-button[data-tooltip]").data("tooltip-position-mobile")),e.find(".pp-button[data-tooltip]").pptooltipster({trigger:"hover",animation:"fade",ppclass:t,side:o,interactive:!0,positionTracker:!0})},g=function(e,t){t(document).ready(function(){"undefined"!==twttr&&twttr.widgets.load()})},v=function(e,t){var o=e.find(".pp-image-accordion").eq(0),e=m(e).accordion_action,o=o.attr("id"),n=t("#"+o+" .pp-image-accordion-item");"on-hover"===e?n.hover(function(){n.css("flex","1"),n.removeClass("pp-image-accordion-active"),t(this).addClass("pp-image-accordion-active"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),t(this).find(".pp-image-accordion-content-wrap").addClass("pp-image-accordion-content-active"),t(this).css("flex","3")},function(){n.css("flex","1"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),n.removeClass("pp-image-accordion-active")}):"on-click"===e&&(n.click(function(e){e.stopPropagation(),n.css("flex","1"),n.removeClass("pp-image-accordion-active"),t(this).addClass("pp-image-accordion-active"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),t(this).find(".pp-image-accordion-content-wrap").addClass("pp-image-accordion-content-active"),t(this).css("flex","3")}),t("#"+o).click(function(e){e.stopPropagation()}),t("body").click(function(){n.css("flex","1"),n.find(".pp-image-accordion-content-wrap").removeClass("pp-image-accordion-content-active"),n.removeClass("pp-image-accordion-active")}))},w=function(e,t){void 0!==e&&e.find("select:not([multiple])").each(function(){var e=t(this);(e.next().hasClass("chosen-container")?e.next():e).wrap("<span class='pp-gf-select-custom'></span>")})},y=function(n,i){var e=n.data("id"),t=n.find(".pp-pricing-table-tooptip[data-tooltip]"),o=m(n),a="pp-tooltip pp-tooltip-"+e,r=o.tooltip_arrow,d=o.tooltip_trigger,p=o.tooltip_animation,e=o.tooltip_size,c=o.tooltip_zindex,s=elementorFrontend.config.breakpoints;""!==e&&undefined!==e&&(a+=" pp-tooltip-size-"+e),t.each(function(){var e=i(this).data("tooltip-position"),t=i(this).data("tooltip-width"),o=i(this).data("tooltip-distance");window.innerWidth<=s.lg&&window.innerWidth>=s.md&&(e=n.find(".pp-pricing-table-tooptip[data-tooltip]").data("tooltip-position-tablet")),window.innerWidth<s.md&&(e=n.find(".pp-pricing-table-tooptip[data-tooltip]").data("tooltip-position-mobile")),i(this).pptooltipster({trigger:d,animation:p,minWidth:t,ppclass:a,side:e,arrow:"yes"===r,distance:o,interactive:!0,positionTracker:!0,zIndex:c})})},b=function(e,t){m(e);var o,n=e.find(".pp-content-reveal-content-wrapper"),i=e.find(".pp-content-reveal-content"),a=e.find(".pp-content-reveal-saparator"),r=e.find(".pp-content-reveal-button-inner"),d=i.outerHeight(),p=n.data("scroll-top"),c=n.data("visibility"),s=n.data("content-height"),l=1e3*n.data("speed"),f=n.data("lines"),e=e.find(".pp-content-reveal-content p").css("line-height"),i=i.css("padding-top");"lines"==c?"0"==f?o=n.outerHeight():(o=parseInt(e,10)*f+parseInt(i,10),n.css("height",o+"px")):(n.css("height",s+"px"),o=s),r.on("click",function(){a.slideToggle(l),t(this).toggleClass("pp-content-revealed"),t(this).find(".pp-content-reveal-button-open").slideToggle(l),t(this).find(".pp-content-reveal-button-closed").slideToggle(l),r.hasClass("pp-content-revealed")?n.animate({height:d+"px"},l):(n.animate({height:o+"px"},l),"yes"==p&&t("html, body").animate({scrollTop:n.offset().top-50+"px"}))})},_=function(e){var t,o,n,i,a,r;e.data("pp-wrapper-link")&&(t=e.data("pp-wrapper-link"),o=e.data("id"),n=t.url,i=t.is_external?"_blank":"_self",a=t.nofollow?"nofollow":"",r=document.createElement("a"),e.on("click.onPPWrapperLink",function(){r.id="pp-wrapper-link-"+o,r.href=n,r.target=i,r.rel=a,r.style.display="none",document.body.appendChild(r);var e=document.getElementById(r.id),t=(e.click(),setTimeout(function(){document.body.removeChild(e),clearTimeout(t)}))}))};r(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&(a=!0),elementorFrontend.hooks.addAction("frontend/element_ready/pp-image-hotspots.default",t),elementorFrontend.hooks.addAction("frontend/element_ready/pp-image-comparison.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/pp-counter.default",n),elementorFrontend.hooks.addAction("frontend/element_ready/pp-logo-carousel.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-info-box-carousel.default",c),elementorFrontend.hooks.addAction("frontend/element_ready/pp-instafeed.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/pp-team-member-carousel.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-scroll-image.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/pp-advanced-accordion.default",f),elementorFrontend.hooks.addAction("frontend/element_ready/pp-content-ticker.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-buttons.default",h),elementorFrontend.hooks.addAction("frontend/element_ready/pp-twitter-timeline.default",g),elementorFrontend.hooks.addAction("frontend/element_ready/pp-twitter-tweet.default",g),elementorFrontend.hooks.addAction("frontend/element_ready/pp-image-accordion.default",v),elementorFrontend.hooks.addAction("frontend/element_ready/pp-gravity-forms.default",w),elementorFrontend.hooks.addAction("frontend/element_ready/pp-pricing-table.default",y),elementorFrontend.hooks.addAction("frontend/element_ready/pp-content-reveal.default",b),elementorFrontend.hooks.addAction("frontend/element_ready/global",_),a&&parent.document.addEventListener("mousedown",function(e){var t=parent.document.querySelectorAll(".elementor-element--promotion");if(0<t.length)for(var o=0;o<t.length;o++)if(t[o].contains(e.target)){var n,i,a=parent.document.querySelector("#elementor-element--promotion__dialog");0<=t[o].querySelector(".icon > i").classList.toString().indexOf("ppicon")?(a.querySelector(".dialog-buttons-action").style.display="none",null===a.querySelector(".pp-dialog-buttons-action")?(n=document.createElement("a"),i=document.createTextNode("Upgrade to PowerPack Pro"),n.setAttribute("href","https://powerpackelements.com/upgrade/?utm_medium=pp-elements-lite&utm_source=pp-editor-icons&utm_campaign=pp-pro-upgrade"),n.setAttribute("target","_blank"),n.classList.add("dialog-button","dialog-action","dialog-buttons-action","elementor-button","elementor-button-success","pp-dialog-buttons-action"),n.appendChild(i),a.querySelector(".dialog-buttons-action").insertAdjacentHTML("afterend",n.outerHTML)):a.querySelector(".pp-dialog-buttons-action").style.display=""):(a.querySelector(".dialog-buttons-action").style.display="",null!==a.querySelector(".pp-dialog-buttons-action")&&(a.querySelector(".pp-dialog-buttons-action").style.display="none"));break}})})}(jQuery);
|
assets/js/min/jquery.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:t()}(function(){var a=Object.assign||window.jQuery&&jQuery.extend,
|
1 |
+
!function(t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:t()}(function(){var a=Object.assign||window.jQuery&&jQuery.extend,c=8,o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout(function(){t()},25)};function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:undefined};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t);var i,n={textarea:!0,input:!0,select:!0,button:!0},r={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},s={move:"touchmove",cancel:"touchend",end:"touchend"},u=/\s+/,d={bubbles:!0,cancelable:!0},e="function"==typeof Symbol?Symbol("events"):{};function f(t){return t[e]||(t[e]={})}function l(t,e,n,a){e=e.split(u);var i,o=f(t),r=e.length;function s(t){n(t,a)}for(;r--;)(o[i=e[r]]||(o[i]=[])).push([n,s]),t.addEventListener(i,s)}function m(t,e,n){e=e.split(u);var a,i,o,r=f(t),s=e.length;if(r)for(;s--;)if(i=r[a=e[s]])for(o=i.length;o--;)i[o][0]===n&&(t.removeEventListener(a,i[o][1]),i.splice(o,1))}function p(t,e,n){e=new CustomEvent(e,d);n&&a(e,n),t.dispatchEvent(e)}function h(t){var n=t,a=!1,i=!1;function e(t){a?(n(),o(e),a=!(i=!0)):i=!1}this.kick=function(t){a=!0,i||e()},this.end=function(t){var e=n;t&&(i?(n=a?function(){e(),t()}:t,a=!0):t())}}function v(){}function g(t){t.preventDefault()}function y(t,e){var n,a;if(t.identifiedTouch)return t.identifiedTouch(e);for(n=-1,a=t.length;++n<a;)if(t[n].identifier===e)return t[n]}function w(t,e){t=y(t.changedTouches,e.identifier);if(t&&(t.pageX!==e.pageX||t.pageY!==e.pageY))return t}function X(t,e){b(t,e,t,_)}function Y(t,e){_()}function _(){m(document,r.move,X),m(document,r.cancel,Y)}function C(t){m(document,s.move,t.touchmove),m(document,s.cancel,t.touchend)}function b(t,e,n,a){var i,o,r,s=n.pageX-e.pageX,u=n.pageY-e.pageY;s*s+u*u<c*c||(e=e,o=n,a=a,t=(i=t).targetTouches,r=i.timeStamp-e.timeStamp,o={altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,startX:e.pageX,startY:e.pageY,distX:s,distY:u,deltaX:s,deltaY:u,pageX:n.pageX,pageY:n.pageY,velocityX:s/r,velocityY:u/r,identifier:e.identifier,targetTouches:t,finger:t?t.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=v,i.preventDefault()}},p(e.target,"movestart",o),a(e))}function $(t,e){var n=e.timer;e.touch=t,e.timeStamp=t.timeStamp,n.kick()}function T(t,e){var n=e.target,a=e.event,e=e.timer;m(document,r.move,$),m(document,r.end,T),k(n,a,e,function(){setTimeout(function(){m(n,"click",g)},0)})}function Q(t,e){var n=e.target,a=e.event,i=e.timer;y(t.changedTouches,a.identifier)&&(t=e,m(document,s.move,t.activeTouchmove),m(document,s.end,t.activeTouchend),k(n,a,i))}function k(t,e,n,a){n.end(function(){return p(t,"moveend",e),a&&a()})}function S(t){t.enableMove()}function x(t){t.enableMove()}function E(t){t.enableMove()}function M(t){var a=t.handler;t.handler=function(t){for(var e,n=i.length;n--;)t[e=i[n]]=t.originalEvent[e];a.apply(this,arguments)}}l(document,"mousedown",function(t){var e;1!==(e=t).which||e.ctrlKey||e.altKey||n[t.target.tagName.toLowerCase()]||(l(document,r.move,X,t),l(document,r.cancel,Y,t))}),l(document,"touchstart",function(t){n[t.target.tagName.toLowerCase()]||(t={target:(t=t.changedTouches[0]).target,pageX:t.pageX,pageY:t.pageY,identifier:t.identifier,touchmove:function(t,e){var n;(n=w(t=t,e=e))&&b(t,e,n,C)},touchend:function(t,e){e=e,y(t.changedTouches,e.identifier)&&C(e)}},l(document,s.move,t.touchmove,t),l(document,s.cancel,t.touchend,t))}),l(document,"movestart",function(t){var e,n;t.defaultPrevented||t.moveEnabled&&(e={startX:t.startX,startY:t.startY,pageX:t.pageX,pageY:t.pageY,distX:t.distX,distY:t.distY,deltaX:t.deltaX,deltaY:t.deltaY,velocityX:t.velocityX,velocityY:t.velocityY,identifier:t.identifier,targetTouches:t.targetTouches,finger:t.finger},n={target:t.target,event:e,timer:new h(function(t){(function(t,e,n){n-=t.timeStamp,t.distX=e.pageX-t.startX,t.distY=e.pageY-t.startY,t.deltaX=e.pageX-t.pageX,t.deltaY=e.pageY-t.pageY,t.velocityX=.3*t.velocityX+.7*t.deltaX/n,t.velocityY=.3*t.velocityY+.7*t.deltaY/n,t.pageX=e.pageX,t.pageY=e.pageY})(e,n.touch,n.timeStamp),p(n.target,"move",e)}),touch:undefined,timeStamp:t.timeStamp},t.identifier===undefined?(l(t.target,"click",g),l(document,r.move,$,n),l(document,r.end,T,n)):(n.activeTouchmove=function(t,e){var n,a,i;t=t,n=(e=e).event,a=e.timer,(i=w(t,n))&&(t.preventDefault(),n.targetTouches=t.targetTouches,e.touch=i,e.timeStamp=t.timeStamp,a.kick())},n.activeTouchend=function(t,e){Q(t,e)},l(document,s.move,n.activeTouchmove,n),l(document,s.end,n.activeTouchend,n)))}),window.jQuery&&(i="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" "),jQuery.event.special.movestart={setup:function(){return l(this,"movestart",S),!1},teardown:function(){return m(this,"movestart",S),!1},add:M},jQuery.event.special.move={setup:function(){return l(this,"movestart",x),!1},teardown:function(){return m(this,"movestart",x),!1},add:M},jQuery.event.special.moveend={setup:function(){return l(this,"movestart",E),!1},teardown:function(){return m(this,"movestart",E),!1},add:M})}),!function(){var o=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function r(t){var e,i=this.prototype,n=(o=!0,new this);for(e in o=!1,t)n[e]="function"==typeof t[e]&&"function"==typeof i[e]?function(n,a){return function(){var t=this._super,e=(this._super=function(t){return i[n].apply(this,t||[])},a.apply(this,arguments));return this._super=t,e}}(e,t[e]):t[e];function a(){!o&&this._init&&this._init.apply(this,arguments)}return((a.prototype=n).constructor=a).extend=r,a}}(),!function($){function camelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var n=camelCase(this.name);$[n]=this,$.fn[n]=function(t){var e=Array.prototype.slice.call(arguments,1);return $[n]._isNotChained(t,e)?$[n][t].apply($[n],[this[0]].concat(e)):this.each(function(){if("string"==typeof t){if("_"===t[0]||!$[n][t])throw"Unknown method: "+t;$[n][t].apply($[n],[this].concat(e))}else $[n]._attach(this,t)})}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_isNotChained:function(t,e){return"option"===t&&(0===e.length||1===e.length&&"string"==typeof e[0])||-1<$.inArray(t,this._getters)},_attach:function(t,e){var n;(t=$(t)).hasClass(this._getMarker())||(t.addClass(this._getMarker()),e=$.extend({},this.defaultOptions,this._getMetadata(t),e||{}),n=$.extend({name:this.name,elem:t,options:e},this._instSettings(t,e)),t.data(this.name,n),this._postAttach(t,n),this.option(t,e))},_instSettings:function(t,e){return{}},_postAttach:function(t,e){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"",name,data=data.replace(/'/g,'"');for(name in data=data.replace(/([a-zA-Z0-9]+):/g,function(t,e,n){n=data.substring(0,n).match(/"/g);return n&&n.length%2!=0?e+":":'"'+e+'":'}),data=$.parseJSON("{"+data+"}"),data){var value=data[name];"string"==typeof value&&value.match(/^new Date\((.*)\)$/)&&(data[name]=eval(value))}return data}catch(e){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,e,n){var a,i=(t=$(t)).data(this.name);if(!e||"string"==typeof e&&null==n)return(a=(i||{}).options)&&e?a[e]:a;t.hasClass(this._getMarker())&&(a=e||{},"string"==typeof e&&((a={})[e]=n),this._optionsChanged(t,i,a),$.extend(i.options,a))},_optionsChanged:function(t,e,n){},destroy:function(t){(t=$(t)).hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(t,e){}}),$.JQPlugin={createPlugin:function(t,e){"object"==typeof t&&(e=t,t="JQPlugin"),t=camelCase(t);var n=camelCase(e.name);JQClass.classes[n]=JQClass.classes[t].extend(e),new JQClass.classes[n]}}}(jQuery);
|
assets/js/min/pp-gradient-bg-animation.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"use strict";var n=function(e,n){var t,a;e.hasClass("pp-animated-gradient-bg-yes")&&(a=e.data("color"),t=e.data("angle"),e.css("background-image","linear-gradient( "+t+","+a+" )"),elementorFrontend.isEditMode()&&(
|
1 |
+
!function(e){"use strict";var n=function(e,n){var t,a;e.hasClass("pp-animated-gradient-bg-yes")&&(a=e.data("color"),t=e.data("angle"),e.css("background-image","linear-gradient( "+t+","+a+" )"),elementorFrontend.isEditMode()&&(t=e.find(".elementor-element-overlay ~ .elementor-background-overlay"),a=e.find(".pp-animated-gradient-bg"),0==t.next(".pp-animated-gradient-bg").length&&t.after(a)))};e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/global",n)})}(jQuery);
|
assets/js/min/pp-instagram.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){PPInstagramFeed=function(e){this.id=e.id,this.username="undefined"!=typeof e.username?e.username:"",this.byHashtag="undefined"!=typeof e.byHashtag&&e.byHashtag,this.hashtag="undefined"!=typeof e.hashtag?e.hashtag:"",this.settings=e,this.host="https://www.instagram.com/",this.node=t(".elementor-element-"+this.id),this.wrapper=this.node.find("#pp-instafeed-"+this.id),this._data=!1,this._swiper={},this._messages=ppInsta,this._init()}
|
1 |
+
!function(t){(PPInstagramFeed=function(e){this.id=e.id,this.username="undefined"!=typeof e.username?e.username:"",this.byHashtag="undefined"!=typeof e.byHashtag&&e.byHashtag,this.hashtag="undefined"!=typeof e.hashtag?e.hashtag:"",this.settings=e,this.host="https://www.instagram.com/",this.node=t(".elementor-element-"+this.id),this.wrapper=this.node.find("#pp-instafeed-"+this.id),this._data=!1,this._swiper={},this._messages=ppInsta,this._init()}).prototype={_data:!1,_swiper:{},_init:function(){if(""===this.username&&!this.settings.isBuilderActive)return this._handleEmptyWidget(),void console.error("PP Instagram Feed ("+this.id+"): No username provided.");var e=this.host+this.username+"/";this._getData(e,t.proxy(this._renderData,this))},_getData:function(e,t){var i,s;this._data&&"function"==typeof t?t(this._data):(i=this,(s=new XMLHttpRequest).open("GET",e),s.send(null),s.onreadystatechange=function(){var e;4==s.readyState&&(200==s.status?"function"==typeof t&&(e=i._processData(s.responseText),t(e)):(i.node.append('<div class="pp-instagram-warning">'+i._messages.invalid_username+"</div>"),console.error("PP Instagram Feed ("+i.id+"): Unable to fetch the given user. Instagram responded with the status code: ",s.status)))})},_processData:function(e){return e=e.split("window._sharedData = ")[1].split("<\/script>")[0],e=(e=(e=JSON.parse(e.substr(0,e.length-1))).entry_data.ProfilePage||e.entry_data.TagPage)[0].graphql.user||e[0].graphql.hashtag,this._data=e},_renderData:function(e){var t="",i="pp-feed-item";if("carousel"===this.settings.layout&&(i+=" swiper-slide"),e.is_private)this.node.append('<div class="pp-instagram-warning">'+this._messages.private_account+"</div>");else{var s=(e.edge_owner_to_timeline_media||e.edge_hashtag_to_media).edges;if(s.length<1)return void this.node.append('<div class="pp-instagram-warning">'+this._messages.no_images+this.username+"</b></div>");for(var a=s.length>this.settings.limit?this.settings.limit:s.length,n=0;n<a;n++){var o,r,d="https://www.instagram.com/p/"+s[n].node.shortcode,h="",p=s[n].node.edge_liked_by.count,g=s[n].node.edge_media_to_comment.count;switch(s[n].node.__typename){case"GraphSidecar":r="sidecar",o=s[n].node.thumbnail_resources[4].src;break;case"GraphVideo":r="video",o=s[n].node.thumbnail_src;break;default:r="image",o=s[n].node.thumbnail_resources[4].src}image="image"==r&&"square-grid"!==this.settings.layout?s[n].node.display_url:o,0<s[n].node.edge_media_to_caption.edges.length&&(h=s[n].node.edge_media_to_caption.edges[0].node.text),t=t+('<div class="'+i+'">')+'<div class="pp-feed-item-inner">',"1"!=this.settings.popup&&"1"!=this.settings.image_link||("1"==this.settings.popup?t+='<a href="'+s[n].node.display_url+'" target="_blank" rel="nofollow noopener" data-elementor-open-lightbox="yes" data-elementor-lightbox-slideshow="pp-ig-'+this.id+'">':"1"==this.settings.image_link&&(t+='<a href="'+d+'" target="_blank" rel="nofollow noopener">')),t=t+'<div class="pp-if-img">'+'<div class="pp-overlay-container pp-media-overlay">',this.settings.likes_count&&(t+='<span class="likes"><i class="pp-if-icon fa fa-heart"></i> '+p+"</span>"),this.settings.comments_count&&(t+='<span class="comments"><i class="pp-if-icon fa fa-comment"></i> '+g+"</span>"),t=(t+="</div>")+('<img src="'+image+'" alt="'+h+'" />')+"</div>","1"!=this.settings.popup&&"1"!=this.settings.image_link||(t+="</a>"),t=(t+="</div>")+"</div>"+"</div>"}}this.wrapper.html(t),"carousel"===this.settings.layout?this._initCarousel():"masonry"===this.settings.layout?this._initMasonry():this._initGrid()},_initGrid:function(){t("#pp-instafeed-"+this.id).imagesLoaded(function(){})},_initMasonry:function(){var e=t("#pp-instafeed-"+this.id).imagesLoaded(function(){e.masonry({itemSelector:".pp-feed-item",percentPosition:!0})})},_initCarousel:function(){this._swiper=new Swiper(".elementor-element-"+this.id+" .pp-instagram-feed-carousel .swiper-container",this.settings.carousel)}}}(jQuery);
|
assets/js/min/pp-posts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a){var s=!1;function d(e){var e=e.find(".swiper-slide-visible"),t=-1;e.each(function(){var e=a(this).find(".pp-post").outerHeight();t<e&&(t=e)}),e.each(function(){a(this).find(".pp-post").animate({height:t},{duration:200,easing:"linear"})})}var r=function(e,t,o,n,p){d(e),p.on("slideChange",function(){d(e)}),!0===n.autoplay.pauseOnHover&&(t.on("mouseover",function(){p.autoplay.stop()}),t.on("mouseout",function(){p.autoplay.start()})),s&&o.resize(function(){p.update()});["ppe-tabs-switched","ppe-toggle-switched","ppe-accordion-switched","ppe-popup-opened"].forEach(function(e){void 0!==e&&a(document).on(e,function(e,t){0<t.find(".pp-swiper-slider").length&&setTimeout(function(){p.update()},100)})})},e=function(t,e){t.find(".pp-posts-container");var o,n,p,s,d=t.find(".pp-posts-grid"),i=t.find(".pp-posts").data("layout");t.find(".pp-posts-loader");"masonry"==i&&t.imagesLoaded(function(e){d.isotope({layoutMode:i,itemSelector:".pp-grid-item-wrap"})}),"carousel"==i&&(o=t.find(".swiper-container-wrap").eq(0),n=t.find(".pp-posts-carousel").eq(0),p=JSON.parse(n.attr("data-slider-settings")),0<n.length&&("undefined"==typeof Swiper?new elementorFrontend.utils.swiper(n,p).then(function(e){r(t,n,o,p,e)}):(s=new Swiper(n,p),r(t,n,o,p,s))))}
|
1 |
+
!function(a){var s=!1;function d(e){var e=e.find(".swiper-slide-visible"),t=-1;e.each(function(){var e=a(this).find(".pp-post").outerHeight();t<e&&(t=e)}),e.each(function(){a(this).find(".pp-post").animate({height:t},{duration:200,easing:"linear"})})}var r=function(e,t,o,n,p){d(e),p.on("slideChange",function(){d(e)}),!0===n.autoplay.pauseOnHover&&(t.on("mouseover",function(){p.autoplay.stop()}),t.on("mouseout",function(){p.autoplay.start()})),s&&o.resize(function(){p.update()});["ppe-tabs-switched","ppe-toggle-switched","ppe-accordion-switched","ppe-popup-opened"].forEach(function(e){void 0!==e&&a(document).on(e,function(e,t){0<t.find(".pp-swiper-slider").length&&setTimeout(function(){p.update()},100)})})},e=function(t,e){t.find(".pp-posts-container");var o,n,p,s,d=t.find(".pp-posts-grid"),i=t.find(".pp-posts").data("layout");t.find(".pp-posts-loader");"masonry"==i&&t.imagesLoaded(function(e){d.isotope({layoutMode:i,itemSelector:".pp-grid-item-wrap"})}),"carousel"==i&&(o=t.find(".swiper-container-wrap").eq(0),n=t.find(".pp-posts-carousel").eq(0),p=JSON.parse(n.attr("data-slider-settings")),0<n.length&&("undefined"==typeof Swiper?new elementorFrontend.utils.swiper(n,p).then(function(e){r(t,n,o,p,e)}):(s=new Swiper(n,p),r(t,n,o,p,s))))},o=(a("body").delegate(".pp-posts-pagination-ajax .page-numbers","click",function(e){var t;"main"!=($scope=a(this).closest(".elementor-widget-pp-posts")).find(".pp-posts-grid").data("query-type")&&(e.preventDefault(),$scope.find(".pp-posts-grid .pp-post").last().after('<div class="pp-post-loader"><div class="pp-loader"></div><div class="pp-loader-overlay"></div></div>'),e=1,t=parseInt($scope.find(".pp-posts-pagination .page-numbers.current").html()),e=a(this).hasClass("next")?t+1:a(this).hasClass("prev")?t-1:a(this).html(),$scope.find(".pp-posts-grid .pp-post").last().after('<div class="pp-post-loader"><div class="pp-loader"></div><div class="pp-loader-overlay"></div></div>'),t={page_id:$scope.find(".pp-posts-grid").data("page"),widget_id:$scope.data("id"),skin:$scope.find(".pp-posts-grid").data("skin"),page_number:e},a("html, body").animate({scrollTop:$scope.find(".pp-posts-container").offset().top-30},"slow"),o($scope,t))}),function(s,e,d,t){var i=s.find(".pp-posts-loader");a.ajax({url:pp_posts_script.ajax_url,data:{action:"pp_get_post",page_id:e.page_id,widget_id:e.widget_id,skin:e.skin,page_number:e.page_number,nonce:pp_posts_script.posts_nonce},dataType:"json",type:"POST",success:function(e){var t,o=s.find(".pp-posts-grid"),n=(1==d?(t=e.data.html,o.append(t)):o.html(e.data.html),s.find(".pp-posts-pagination-wrap").html(e.data.pagination),s.find(".pp-posts-grid").data("layout")),p=s.find(".pp-posts-grid");"masonry"==n&&s.imagesLoaded(function(){p.isotope("destroy"),p.isotope({layoutMode:n,itemSelector:".pp-grid-item-wrap"})}),1==d&&i.hide(),s.trigger("posts.rendered")}})});a(window).on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&(s=!0),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.classic",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.card",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.checkerboard",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.creative",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.event",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.news",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.portfolio",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.overlap",e),elementorFrontend.hooks.addAction("frontend/element_ready/pp-posts.template",e)})}(jQuery);
|
assets/js/min/pp-templates-lib.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a,o){var e=Backbone.Model.extend({defaults:{template_id:0,title:"",source:"",type:"",subtype:"",author:"",thumbnail:"",url:"",export_link:"",tags:[]}}),i=Backbone.Collection.extend({model:e}),e=Marionette.Behavior.extend({ui:{insertButton:".elementor-template-library-template-insert"},events:{"click @ui.insertButton":"onInsertButtonClick"},onInsertButtonClick:function(){var e={model:this.view.model};$e.run("powerpack/insert-template",e)}}),t=Marionette.ItemView.extend({className:function(){var e="elementor-template-library-template",t=this.model.get("source");return e+=" elementor-template-library-template-remote",e+=" elementor-template-library-template-"+t,"powerpack"===t&&(e+=" elementor-template-library-template-"+this.model.get("type")),this.model.get("isPro")&&(e+=" elementor-template-library-pro-template"),e},ui:function(){return{previewButton:".elementor-template-library-template-preview"}},events:function(){return{"click @ui.previewButton":"onPreviewButtonClick"}},behaviors:{insertTemplate:{behaviorClass:e}}}),r=t.extend({template:"#tmpl-elementor-template-library-template-pp",ui:function(){return jQuery.extend(t.prototype.ui.apply(this,arguments),{favoriteCheckbox:".elementor-template-library-template-favorite-input"})},events:function(){return jQuery.extend(t.prototype.events.apply(this,arguments),{"change @ui.favoriteCheckbox":"onFavoriteCheckboxChange"})},onPreviewButtonClick:function(){$e.route("powerpack/preview",{model:this.model})},onFavoriteCheckboxChange:function(){var e=this.ui.favoriteCheckbox[0].checked;this.model.set("favorite",e),pp_templates_lib.templates.markAsFavorite(this.model,e),!e&&pp_templates_lib.templates.getFilter("favorite")&&a.channels.templates.trigger("filter:change")}}),n=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-preview",id:"elementor-template-library-preview",ui:{iframe:"> iframe"},onRender:function(){this.ui.iframe.attr("src",this.getOption("url"))}}),l=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-preview-pp",id:"elementor-template-library-header-preview",behaviors:{insertTemplate:{behaviorClass:e}}}),s=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-back",id:"elementor-template-library-header-preview-back",events:{click:"onClick"},onClick:function(){$e.routes.restoreState("powerpack")}}),p=Marionette.CompositeView.extend({template:"#tmpl-elementor-template-library-templates-pp",id:"elementor-template-library-templates",childViewContainer:"#elementor-template-library-templates-container",reorderOnSort:!0,ui:{textFilter:"#elementor-template-library-filter-text",selectFilter:".elementor-template-library-filter-select",myFavoritesFilter:"#elementor-template-library-filter-my-favorites",orderInputs:".elementor-template-library-order-input",orderLabels:"label.elementor-template-library-order-label"},events:{"input @ui.textFilter":"onTextFilterInput","change @ui.selectFilter":"onSelectFilterChange","change @ui.myFavoritesFilter":"onMyFavoritesFilterChange","mousedown @ui.orderLabels":"onOrderLabelsClick"},comparators:{title:function(e){return e.get("title").toLowerCase()}},getChildView:function(e){return r},initialize:function(){this.listenTo(a.channels.templates,"filter:change",this._renderChildren)},filter:function(o){var e=pp_templates_lib.templates.getFilterTerms(),n=!0;return jQuery.each(e,function(e){var t=pp_templates_lib.templates.getFilter(e);if(t){if(this.callback){var r=this.callback.call(o,t);return r||(n=!1),r}e=t===o.get(e);return e||(n=!1),e}}),n},order:function(e,t){e=this.comparators[e]||e;t&&(e=this.reverseOrder(e)),this.collection.comparator=e,this.collection.sort()},reverseOrder:function(r){var t;return"function"!=typeof r&&(t=r,r=function r(e){return e.get(t)}),function(e,t){e=r(e),t=r(t);return undefined===e?-1:undefined===t||e<t?1:t<e?-1:0}},addSourceData:function(){var e=this.children.isEmpty();this.$el.attr("data-template-source",e?"empty":pp_templates_lib.templates.getFilter("source"))},setFiltersUI:function(){this.$(this.ui.selectFilter).select2({placeholder:a.translate("category"),allowClear:!0,width:150,dropdownParent:this.$el})},setMasonrySkin:function(){var e=new elementorModules.utils.Masonry({container:this.$childViewContainer,items:this.$childViewContainer.children()});this.$childViewContainer.imagesLoaded(e.run.bind(e))},toggleFilterClass:function(){this.$el.toggleClass("elementor-templates-filter-active",!(!pp_templates_lib.templates.getFilter("text")&&!pp_templates_lib.templates.getFilter("favorite")))},onRender:function(){"powerpack"===pp_templates_lib.templates.getFilter("source")&&this.setFiltersUI()},onRenderCollection:function(){this.addSourceData(),this.toggleFilterClass(),"powerpack"===pp_templates_lib.templates.getFilter("source")&&"page"!==pp_templates_lib.templates.getFilter("type")&&this.setMasonrySkin()},onBeforeRenderEmpty:function(){this.addSourceData()},onTextFilterInput:function(){pp_templates_lib.templates.setFilter("text",this.ui.textFilter.val())},onSelectFilterChange:function(e){var t=jQuery(e.currentTarget),e=t.data("elementor-filter");pp_templates_lib.templates.setFilter(e,t.val())},onMyFavoritesFilterChange:function(){pp_templates_lib.templates.setFilter("favorite",this.ui.myFavoritesFilter[0].checked)},onOrderLabelsClick:function(e){var t,e=jQuery(e.currentTarget.control);e[0].checked||(t="asc"!==e.data("default-ordering-direction")),e.toggleClass("elementor-template-library-order-reverse",t),this.order(e.val(),e.hasClass("elementor-template-library-order-reverse"))}}),m=Marionette.ItemView.extend({template:"#tmpl-elementor-templates-modal__header__logo_pp",className:function(){return"elementor-templates-modal__header__logo"},events:function(){return{click:"onClick"}},templateHelpers:function(){return{title:this.getOption("title")}},onClick:function(){var e=this.getOption("click");e&&e()}}),c=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-actions-pp",id:"elementor-template-library-header-actions",ui:{sync:"#elementor-template-library-header-sync i"},events:{"click @ui.sync":"onSyncClick"},onSyncClick:function(){var e=this;e.ui.sync.addClass("eicon-animation-spin"),pp_templates_lib.templates.requestLibraryData({onUpdate:function(){e.ui.sync.removeClass("eicon-animation-spin"),$e.routes.refreshContainer("powerpack")},forceUpdate:!0,forceSync:!0})}}),u=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-menu",id:"elementor-template-library-header-menu",templateHelpers:function(){return{tabs:$e.components.get("powerpack").getTabs()}}}),d=elementorModules.common.views.modal.Layout.extend({getModalOptions:function(){return{id:"elementor-template-library-modal",effects:{show:"show",hide:"hide"}}},getLogoOptions:function(){return{title:"PowerPack Templates",click:function(){return $e.run("powerpack/open",{toDefault:!0}),!1}}},getTemplateActionButton:function(e){var t="#tmpl-elementor-template-library-insert-button";e.isPro&&"inactive"===e.proStatus&&(t="#tmpl-elementor-template-library-get-pro-button-pp"),e.isPro&&"license_inactive"===e.proStatus&&(t="#tmpl-elementor-pro-template-library-activate-license-button-pp");t=Marionette.TemplateCache.get(t);return Marionette.Renderer.render(t)},setHeaderDefaultParts:function(){var e=this.getHeaderView();e.tools.show(new c),e.menuArea.show(new u),this.showLogo()},showLogo:function(){this.getHeaderView().logoArea.show(new m(this.getLogoOptions()))},showTemplatesView:function(e){this.modalContent.show(new p({collection:e}))},showPreviewView:function(e){this.modalContent.show(new n({url:e.get("url")}));var t=this.getHeaderView();t.menuArea.reset(),t.tools.show(new l({model:e})),t.logoArea.show(new s)}}),h=function(e){var n;function t(){return Object.getPrototypeOf(t).apply(this,arguments)}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,e);var r=Object.getPrototypeOf(t.prototype);return t.prototype.__construct=function(e){r.__construct.call(this,e),n=this,a.on("document:loaded",this.onDocumentLoaded.bind(this))},t.prototype.getNamespace=function(){return"powerpack"},t.prototype.defaultTabs=function(){return{"templates/blocks":{title:"Blocks",getFilter:function(){return{source:"powerpack",type:"block",subtype:a.config.document.remoteLibrary.category}}},"templates/pages":{title:"Pages",filter:{source:"powerpack",type:"page"}}}},t.prototype.defaultRoutes=function(){return{preview:function(e){this.manager.layout.showPreviewView(e.model)}}},t.prototype.defaultCommands=function(){return Object.assign(r.defaultCommands.call(this),{open:this.show,"insert-template":this.insertTemplate})},t.prototype.defaultShortcuts=function(){return{open:{keys:"ctrl+shift+p"}}},t.prototype.onDocumentLoaded=function(e){this.setDefaultRoute("templates/blocks"),this.maybeOpenLibrary()},t.prototype.renderTab=function(e){e=this.tabs[e],e=e.getFilter?e.getFilter():e.filter;this.manager.setScreen(e)},t.prototype.activateTab=function(e){$e.routes.saveState("powerpack"),r.activateTab.call(this,e)},t.prototype.open=function(){return r.open.call(this),this.manager.layout||(this.manager.layout=this.layout),this.manager.layout.setHeaderDefaultParts(),!0},t.prototype.close=function(){return!!r.close.call(this)&&(this.manager.modalConfig={},!0)},t.prototype.show=function(e){!(n.manager.modalConfig=e).toDefault&&$e.routes.restoreState("powerpack")||$e.route(n.getDefaultRoute())},t.prototype.insertTemplate=function(e){var r=e.model,o=e.withPageSettings||null;null===o&&r.get("hasPageSettings")?n.getImportSettingsDialog().showImportDialog(r):(n.manager.layout.showLoadingView(),n.manager.requestTemplateContent(r.get("source"),r.get("template_id"),{data:{with_page_settings:o},success:function(e){var t=jQuery.extend({},n.manager.modalConfig.importOptions);t.withPageSettings=o,n.manager.layout.hideLoadingView(),n.manager.layout.hideModal(),$e.run("document/elements/import",{model:r,data:e,options:t})},error:function(e){n.manager.showErrorDialog(e)},complete:function(){n.manager.layout.hideLoadingView()}}),t.prototype.getImportSettingsDialog=function(){var r={dialog:null,showImportDialog:function(e){var t=r.getDialog();t.onConfirm=function(){$e.run("library/insert-template",{model:e,withPageSettings:!0})},t.onCancel=function(){$e.run("library/insert-template",{model:e,withPageSettings:!1})},t.show()},initDialog:function(){r.dialog=elementorCommon.dialogsManager.createWidget("confirm",{id:"elementor-insert-template-settings-dialog",headerMessage:a.translate("import_template_dialog_header"),message:a.translate("import_template_dialog_message")+"<br>"+a.translate("import_template_dialog_message_attention"),strings:{confirm:a.translate("yes"),cancel:a.translate("no")}})},getDialog:function(){return r.dialog||r.initDialog(),r.dialog}};return r})},t.prototype.getTabsWrapperSelector=function(){return"#elementor-template-library-header-menu"},t.prototype.getModalLayout=function(){return d},t.prototype.maybeOpenLibrary=function(){"#powerpack"===location.hash&&($e.run("powerpack/open"),location.hash="")},t}($e.modules.ComponentModalBase),g=function g(){var e,r=this,o={},t={},n=!1;this.modalConfig={};this.getFilter=function(e){return a.channels.templates.request("filter:"+e)},this.setFilter=function(e,t,r){a.channels.templates.reply("filter:"+e,t),r||a.channels.templates.trigger("filter:change")},this.setScreen=function(e){a.channels.templates.stopReplying(),r.setFilter("source",e.source,!0),r.setFilter("type",e.type,!0),r.setFilter("subtype",e.subtype,!0),r.showTemplates()},this.getTemplatesCollection=function(){return n},this.getConfig=function(e){return e?o[e]||{}:o},this.getFilterTerms=function(e){return e?t[e]:t},this.requestLibraryData=function(t){var e;!n||t.forceUpdate?(t.onBeforeUpdate&&t.onBeforeUpdate(),e={data:{},success:function(e){n=new i(e.templates),e.config&&(o=e.config),t.onUpdate&&t.onUpdate()}},t.forceSync&&(e.data.sync=!0),elementorCommon.ajax.addRequest("pp_get_library_data",e)):t.onUpdate&&t.onUpdate()},this.loadTemplates=function(e){r.requestLibraryData({onBeforeUpdate:r.layout.showLoadingView.bind(r.layout),onUpdate:function(){r.layout.hideLoadingView(),e&&e()}})},this.showTemplates=function(){r.layout.setHeaderDefaultParts(),r.layout.showModal(),r.loadTemplates(function(){var e=r.filterTemplates();r.layout.showTemplatesView(new i(e))})},this.filterTemplates=function(){return n.filter(function(e){return"powerpack"===e.get("source")&&("block"===e.get("type")||"page"===e.get("type"))})},this.requestTemplateContent=function(e,t,r){t={unique_id:t,data:{source:e,edit_mode:!0,display:!0,template_id:t}};return r&&jQuery.extend(!0,t,r),elementorCommon.ajax.addRequest("get_template_data",t)},this.markAsFavorite=function(e,t){t={data:{source:e.get("source"),template_id:e.get("template_id"),favorite:t}};return elementorCommon.ajax.addRequest("mark_template_as_favorite",t)},this.getErrorDialog=function(){return e=e||elementorCommon.dialogsManager.createWidget("alert",{id:"elementor-template-library-error-dialog",headerMessage:a.translate("an_error_occurred")})},this.showErrorDialog=function(e){var t;"object"==typeof e?(t="",_.each(e,function(e){t+="<div>"+e.message+".</div>"}),e=t):e?e+=".":e="<i><The error message is empty></i>",r.getErrorDialog().setMessage(a.translate("templates_request_error")+'<div id="elementor-template-library-error-info">'+e+"</div>").show()},this.init=function(){t={text:{callback:function(t){return t=t.toLowerCase(),0<=this.get("title").toLowerCase().indexOf(t)||_.any(this.get("tags"),function(e){return 0<=e.toLowerCase().indexOf(t)})}},type:{},subtype:{},favorite:{}},this.component=$e.components.register(new h({manager:this}))}};pp_templates_lib.templates=new g,pp_templates_lib.templates.init(),a.on("document:loaded",function(){var t=a.$previewContents,e=o("<style />");e.html(".elementor-add-section-area-button.pp-add-template-button { margin-left: 8px; vertical-align: bottom; }.elementor-add-section-area-button.pp-add-template-button img { height: 40px; }"),t.find("head").append(e);var r=o("<div />");r.addClass("elementor-add-section-area-button pp-add-template-button"),r.attr("title","Add PowerPack Template"),r.html('<img src="'+pp_templates_lib.logoUrl+'" />'),r.insertAfter(t.find(".elementor-add-section-area-button.elementor-add-template-button")),r.on("click",function(){$e.run("powerpack/open")}),t.find("body").delegate(".elementor-editor-element-add","click",function(e){setTimeout(function(){var e=t.find("body").find(".elementor-add-section-inner");0<e.length&&(e.find(".pp-add-template-button").remove(),r.off("click").on("click",function(){$e.run("powerpack/open")}),r.insertAfter(e.find(".elementor-add-section-area-button.elementor-add-template-button")))},100)})})}(elementor,jQuery,window);
|
1 |
+
!function(a,o){var n,t,e=Backbone.Model.extend({defaults:{template_id:0,title:"",source:"",type:"",subtype:"",author:"",thumbnail:"",url:"",export_link:"",tags:[]}}),i=Backbone.Collection.extend({model:e}),e=Marionette.Behavior.extend({ui:{insertButton:".elementor-template-library-template-insert"},events:{"click @ui.insertButton":"onInsertButtonClick"},onInsertButtonClick:function(){var e={model:this.view.model};$e.run("powerpack/insert-template",e)}}),r=Marionette.ItemView.extend({className:function(){var e="elementor-template-library-template",t=this.model.get("source"),e=e+" elementor-template-library-template-remote"+(" elementor-template-library-template-"+t);return"powerpack"===t&&(e+=" elementor-template-library-template-"+this.model.get("type")),this.model.get("isPro")&&(e+=" elementor-template-library-pro-template"),e},ui:function(){return{previewButton:".elementor-template-library-template-preview"}},events:function(){return{"click @ui.previewButton":"onPreviewButtonClick"}},behaviors:{insertTemplate:{behaviorClass:e}}}),l=r.extend({template:"#tmpl-elementor-template-library-template-pp",ui:function(){return jQuery.extend(r.prototype.ui.apply(this,arguments),{favoriteCheckbox:".elementor-template-library-template-favorite-input"})},events:function(){return jQuery.extend(r.prototype.events.apply(this,arguments),{"change @ui.favoriteCheckbox":"onFavoriteCheckboxChange"})},onPreviewButtonClick:function(){$e.route("powerpack/preview",{model:this.model})},onFavoriteCheckboxChange:function(){var e=this.ui.favoriteCheckbox[0].checked;this.model.set("favorite",e),pp_templates_lib.templates.markAsFavorite(this.model,e),!e&&pp_templates_lib.templates.getFilter("favorite")&&a.channels.templates.trigger("filter:change")}}),s=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-preview",id:"elementor-template-library-preview",ui:{iframe:"> iframe"},onRender:function(){this.ui.iframe.attr("src",this.getOption("url"))}}),p=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-preview-pp",id:"elementor-template-library-header-preview",behaviors:{insertTemplate:{behaviorClass:e}}}),m=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-back",id:"elementor-template-library-header-preview-back",events:{click:"onClick"},onClick:function(){$e.routes.restoreState("powerpack")}}),c=Marionette.CompositeView.extend({template:"#tmpl-elementor-template-library-templates-pp",id:"elementor-template-library-templates",childViewContainer:"#elementor-template-library-templates-container",reorderOnSort:!0,ui:{textFilter:"#elementor-template-library-filter-text",selectFilter:".elementor-template-library-filter-select",myFavoritesFilter:"#elementor-template-library-filter-my-favorites",orderInputs:".elementor-template-library-order-input",orderLabels:"label.elementor-template-library-order-label"},events:{"input @ui.textFilter":"onTextFilterInput","change @ui.selectFilter":"onSelectFilterChange","change @ui.myFavoritesFilter":"onMyFavoritesFilterChange","mousedown @ui.orderLabels":"onOrderLabelsClick"},comparators:{title:function(e){return e.get("title").toLowerCase()}},getChildView:function(e){return l},initialize:function(){this.listenTo(a.channels.templates,"filter:change",this._renderChildren)},filter:function(o){var e=pp_templates_lib.templates.getFilterTerms(),n=!0;return jQuery.each(e,function(e){var t=pp_templates_lib.templates.getFilter(e);if(t){if(this.callback)return(r=this.callback.call(o,t))||(n=!1),r;var r=t===o.get(e);return r||(n=!1),r}}),n},order:function(e,t){e=this.comparators[e]||e;t&&(e=this.reverseOrder(e)),this.collection.comparator=e,this.collection.sort()},reverseOrder:function(r){var t;return"function"!=typeof r&&(t=r,r=function r(e){return e.get(t)}),function(e,t){e=r(e),t=r(t);return undefined===e?-1:undefined===t||e<t?1:t<e?-1:0}},addSourceData:function(){var e=this.children.isEmpty();this.$el.attr("data-template-source",e?"empty":pp_templates_lib.templates.getFilter("source"))},setFiltersUI:function(){this.$(this.ui.selectFilter).select2({placeholder:a.translate("category"),allowClear:!0,width:150,dropdownParent:this.$el})},setMasonrySkin:function(){var e=new elementorModules.utils.Masonry({container:this.$childViewContainer,items:this.$childViewContainer.children()});this.$childViewContainer.imagesLoaded(e.run.bind(e))},toggleFilterClass:function(){this.$el.toggleClass("elementor-templates-filter-active",!(!pp_templates_lib.templates.getFilter("text")&&!pp_templates_lib.templates.getFilter("favorite")))},onRender:function(){"powerpack"===pp_templates_lib.templates.getFilter("source")&&this.setFiltersUI()},onRenderCollection:function(){this.addSourceData(),this.toggleFilterClass(),"powerpack"===pp_templates_lib.templates.getFilter("source")&&"page"!==pp_templates_lib.templates.getFilter("type")&&this.setMasonrySkin()},onBeforeRenderEmpty:function(){this.addSourceData()},onTextFilterInput:function(){pp_templates_lib.templates.setFilter("text",this.ui.textFilter.val())},onSelectFilterChange:function(e){var e=jQuery(e.currentTarget),t=e.data("elementor-filter");pp_templates_lib.templates.setFilter(t,e.val())},onMyFavoritesFilterChange:function(){pp_templates_lib.templates.setFilter("favorite",this.ui.myFavoritesFilter[0].checked)},onOrderLabelsClick:function(e){var t,e=jQuery(e.currentTarget.control);e[0].checked||(t="asc"!==e.data("default-ordering-direction")),e.toggleClass("elementor-template-library-order-reverse",t),this.order(e.val(),e.hasClass("elementor-template-library-order-reverse"))}}),u=Marionette.ItemView.extend({template:"#tmpl-elementor-templates-modal__header__logo_pp",className:function(){return"elementor-templates-modal__header__logo"},events:function(){return{click:"onClick"}},templateHelpers:function(){return{title:this.getOption("title")}},onClick:function(){var e=this.getOption("click");e&&e()}}),d=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-actions-pp",id:"elementor-template-library-header-actions",ui:{sync:"#elementor-template-library-header-sync i"},events:{"click @ui.sync":"onSyncClick"},onSyncClick:function(){var e=this;e.ui.sync.addClass("eicon-animation-spin"),pp_templates_lib.templates.requestLibraryData({onUpdate:function(){e.ui.sync.removeClass("eicon-animation-spin"),$e.routes.refreshContainer("powerpack")},forceUpdate:!0,forceSync:!0})}}),h=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-menu",id:"elementor-template-library-header-menu",templateHelpers:function(){return{tabs:$e.components.get("powerpack").getTabs()}}}),g=elementorModules.common.views.modal.Layout.extend({getModalOptions:function(){return{id:"elementor-template-library-modal",effects:{show:"show",hide:"hide"}}},getLogoOptions:function(){return{title:"PowerPack Templates",click:function(){return $e.run("powerpack/open",{toDefault:!0}),!1}}},getTemplateActionButton:function(e){var t="#tmpl-elementor-template-library-insert-button",e=(e.isPro&&"inactive"===e.proStatus&&(t="#tmpl-elementor-template-library-get-pro-button-pp"),e.isPro&&"license_inactive"===e.proStatus&&(t="#tmpl-elementor-pro-template-library-activate-license-button-pp"),Marionette.TemplateCache.get(t));return Marionette.Renderer.render(e)},setHeaderDefaultParts:function(){var e=this.getHeaderView();e.tools.show(new d),e.menuArea.show(new h),this.showLogo()},showLogo:function(){this.getHeaderView().logoArea.show(new u(this.getLogoOptions()))},showTemplatesView:function(e){this.modalContent.show(new c({collection:e}))},showPreviewView:function(e){this.modalContent.show(new s({url:e.get("url")}));var t=this.getHeaderView();t.menuArea.reset(),t.tools.show(new p({model:e})),t.logoArea.show(new m)}}),f=(e=$e.modules.ComponentModalBase,y.prototype=Object.create(e&&e.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.setPrototypeOf(y,e),t=Object.getPrototypeOf(y.prototype),y.prototype.__construct=function(e){t.__construct.call(this,e),n=this,a.on("document:loaded",this.onDocumentLoaded.bind(this))},y.prototype.getNamespace=function(){return"powerpack"},y.prototype.defaultTabs=function(){return{"templates/blocks":{title:"Blocks",getFilter:function(){return{source:"powerpack",type:"block",subtype:a.config.document.remoteLibrary.category}}},"templates/pages":{title:"Pages",filter:{source:"powerpack",type:"page"}}}},y.prototype.defaultRoutes=function(){return{preview:function(e){this.manager.layout.showPreviewView(e.model)}}},y.prototype.defaultCommands=function(){return Object.assign(t.defaultCommands.call(this),{open:this.show,"insert-template":this.insertTemplate})},y.prototype.defaultShortcuts=function(){return{open:{keys:"ctrl+shift+p"}}},y.prototype.onDocumentLoaded=function(e){this.setDefaultRoute("templates/blocks"),this.maybeOpenLibrary()},y.prototype.renderTab=function(e){e=this.tabs[e],e=e.getFilter?e.getFilter():e.filter;this.manager.setScreen(e)},y.prototype.activateTab=function(e){$e.routes.saveState("powerpack"),t.activateTab.call(this,e)},y.prototype.open=function(){return t.open.call(this),this.manager.layout||(this.manager.layout=this.layout),this.manager.layout.setHeaderDefaultParts(),!0},y.prototype.close=function(){return!!t.close.call(this)&&(this.manager.modalConfig={},!0)},y.prototype.show=function(e){!(n.manager.modalConfig=e).toDefault&&$e.routes.restoreState("powerpack")||$e.route(n.getDefaultRoute())},y.prototype.insertTemplate=function(e){var r=e.model,o=e.withPageSettings||null;null===o&&r.get("hasPageSettings")?n.getImportSettingsDialog().showImportDialog(r):(n.manager.layout.showLoadingView(),n.manager.requestTemplateContent(r.get("source"),r.get("template_id"),{data:{with_page_settings:o},success:function(e){var t=jQuery.extend({},n.manager.modalConfig.importOptions);t.withPageSettings=o,n.manager.layout.hideLoadingView(),n.manager.layout.hideModal(),$e.run("document/elements/import",{model:r,data:e,options:t})},error:function(e){n.manager.showErrorDialog(e)},complete:function(){n.manager.layout.hideLoadingView()}}),y.prototype.getImportSettingsDialog=function(){var r={dialog:null,showImportDialog:function(e){var t=r.getDialog();t.onConfirm=function(){$e.run("library/insert-template",{model:e,withPageSettings:!0})},t.onCancel=function(){$e.run("library/insert-template",{model:e,withPageSettings:!1})},t.show()},initDialog:function(){r.dialog=elementorCommon.dialogsManager.createWidget("confirm",{id:"elementor-insert-template-settings-dialog",headerMessage:a.translate("import_template_dialog_header"),message:a.translate("import_template_dialog_message")+"<br>"+a.translate("import_template_dialog_message_attention"),strings:{confirm:a.translate("yes"),cancel:a.translate("no")}})},getDialog:function(){return r.dialog||r.initDialog(),r.dialog}};return r})},y.prototype.getTabsWrapperSelector=function(){return"#elementor-template-library-header-menu"},y.prototype.getModalLayout=function(){return g},y.prototype.maybeOpenLibrary=function(){"#powerpack"===location.hash&&($e.run("powerpack/open"),location.hash="")},y);function y(){return Object.getPrototypeOf(y).apply(this,arguments)}var b=function b(){var e,r=this,o={},t={},n=!1;this.modalConfig={};this.getFilter=function(e){return a.channels.templates.request("filter:"+e)},this.setFilter=function(e,t,r){a.channels.templates.reply("filter:"+e,t),r||a.channels.templates.trigger("filter:change")},this.setScreen=function(e){a.channels.templates.stopReplying(),r.setFilter("source",e.source,!0),r.setFilter("type",e.type,!0),r.setFilter("subtype",e.subtype,!0),r.showTemplates()},this.getTemplatesCollection=function(){return n},this.getConfig=function(e){return e?o[e]||{}:o},this.getFilterTerms=function(e){return e?t[e]:t},this.requestLibraryData=function(t){var e;n&&!t.forceUpdate?t.onUpdate&&t.onUpdate():(t.onBeforeUpdate&&t.onBeforeUpdate(),e={data:{},success:function(e){n=new i(e.templates),e.config&&(o=e.config),t.onUpdate&&t.onUpdate()}},t.forceSync&&(e.data.sync=!0),elementorCommon.ajax.addRequest("pp_get_library_data",e))},this.loadTemplates=function(e){r.requestLibraryData({onBeforeUpdate:r.layout.showLoadingView.bind(r.layout),onUpdate:function(){r.layout.hideLoadingView(),e&&e()}})},this.showTemplates=function(){r.layout.setHeaderDefaultParts(),r.layout.showModal(),r.loadTemplates(function(){var e=r.filterTemplates();r.layout.showTemplatesView(new i(e))})},this.filterTemplates=function(){return n.filter(function(e){return"powerpack"===e.get("source")&&("block"===e.get("type")||"page"===e.get("type"))})},this.requestTemplateContent=function(e,t,r){e={unique_id:t,data:{source:e,edit_mode:!0,display:!0,template_id:t}};return r&&jQuery.extend(!0,e,r),elementorCommon.ajax.addRequest("get_template_data",e)},this.markAsFavorite=function(e,t){e={data:{source:e.get("source"),template_id:e.get("template_id"),favorite:t}};return elementorCommon.ajax.addRequest("mark_template_as_favorite",e)},this.getErrorDialog=function(){return e=e||elementorCommon.dialogsManager.createWidget("alert",{id:"elementor-template-library-error-dialog",headerMessage:a.translate("an_error_occurred")})},this.showErrorDialog=function(e){var t;"object"==typeof e?(t="",_.each(e,function(e){t+="<div>"+e.message+".</div>"}),e=t):e?e+=".":e="<i><The error message is empty></i>",r.getErrorDialog().setMessage(a.translate("templates_request_error")+'<div id="elementor-template-library-error-info">'+e+"</div>").show()},this.init=function(){t={text:{callback:function(t){return t=t.toLowerCase(),0<=this.get("title").toLowerCase().indexOf(t)||_.any(this.get("tags"),function(e){return 0<=e.toLowerCase().indexOf(t)})}},type:{},subtype:{},favorite:{}},this.component=$e.components.register(new f({manager:this}))}};pp_templates_lib.templates=new b,pp_templates_lib.templates.init(),a.on("document:loaded",function(){var t=a.$previewContents,e=o("<style />"),r=(""+".elementor-add-section-area-button.pp-add-template-button { margin-left: 8px; vertical-align: bottom; }"+".elementor-add-section-area-button.pp-add-template-button img { height: 40px; }",e.html(".elementor-add-section-area-button.pp-add-template-button { margin-left: 8px; vertical-align: bottom; }.elementor-add-section-area-button.pp-add-template-button img { height: 40px; }"),t.find("head").append(e),o("<div />"));r.addClass("elementor-add-section-area-button pp-add-template-button"),r.attr("title","Add PowerPack Template"),r.html('<img src="'+pp_templates_lib.logoUrl+'" />'),r.insertAfter(t.find(".elementor-add-section-area-button.elementor-add-template-button")),r.on("click",function(){$e.run("powerpack/open")}),t.find("body").delegate(".elementor-editor-element-add","click",function(e){setTimeout(function(){var e=t.find("body").find(".elementor-add-section-inner");0<e.length&&(e.find(".pp-add-template-button").remove(),r.off("click").on("click",function(){$e.run("powerpack/open")}),r.insertAfter(e.find(".elementor-add-section-area-button.elementor-add-template-button")))},100)})})}(elementor,jQuery,window);
|
assets/js/min/twitter-widgets.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
/*!
|
3 |
* @overview es6-promise - a tiny implementation of Promises/A+.
|
4 |
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
@@ -6,4 +6,4 @@ Function&&Function.prototype&&Function.prototype.bind&&(/MSIE [678]/.test(naviga
|
|
6 |
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
|
7 |
* @version 2.3.0
|
8 |
*/
|
9 |
-
!function(){"use strict";function c(t){return"function"==typeof t}function e(){return function(){setTimeout(n,1)}}function n(){for(var t=0;t<S;t+=2)(0,O[t])(O[t+1]),O[t]=void 0,O[t+1]=void 0;S=0}function s(){}function a(t){try{return t.then}catch(t){return U.error=t,U}}function u(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function r(t,e){var r,i,n,o;e.constructor===t.constructor?(n=t,(o=e)._state===B?l(n,o._result):o._state===F?f(n,o._result):h(o,void 0,function(t){d(n,t)},function(t){f(n,t)})):(o=a(e))===U?f(t,U.error):void 0!==o&&c(o)?(r=e,i=o,R(function(e){var n=!1,t=u(i,r,function(t){n||(n=!0,(r!==t?d:l)(e,t))},function(t){n||(n=!0,f(e,t))},e._label);!n&&t&&(n=!0,f(e,t))},t)):l(t,e)}function d(t,e){var n;t===e?f(t,new TypeError("You cannot resolve a promise with itself")):("function"==typeof(n=e)||"object"==typeof n&&null!==n?r:l)(t,e)}function i(t){t._onerror&&t._onerror(t._result),p(t)}function l(t,e){t._state===z&&(t._result=e,t._state=B,0!==t._subscribers.length&&R(p,t))}function f(t,e){t._state===z&&(t._state=F,t._result=e,R(i,t))}function h(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+B]=n,i[o+F]=r,0===o&&t._state&&R(p,t)}function p(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,i,o=t._result,s=0;s<e.length;s+=3)r=e[s],i=e[s+n],r?v(n,r,i,o):i(o);t._subscribers.length=0}}function t(){this.error=null}function m(t,e){try{return t(e)}catch(t){return M.error=t,M}}function v(t,e,n,r){var i,o,s,a,u=c(n);if(u){if((i=m(n,r))===M?(a=!0,o=i.error,i=null):s=!0,e===i)return f(e,new TypeError("A promises callback cannot return that same promise.")),0}else i=r,s=!0;e._state!==z||(u&&s?d(e,i):a?f(e,o):t===B?l(e,i):t===F&&f(e,i))}function o(e,t){try{t(function(t){d(e,t)},function(t){f(e,t)})}catch(t){f(e,t)}}function g(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(s),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?l(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&l(n.promise,n._result))):f(n.promise,n._validationError())}function w(t){this._id=W++,this._state=void 0,this._result=void 0,this._subscribers=[],s!==t&&(c(t)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof w||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}(),o(this,t))}var y,b,_,E,x,A,C,T,I=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},S=0,R=function(t,e){O[S]=t,O[S+1]=e,2===(S+=2)&&(b?b(n):D())},P="undefined"!=typeof window?window:void 0,N=P||{},j=N.MutationObserver||N.WebKitMutationObserver,k="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),L="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,O=new Array(1e3),D=k?(C=process.nextTick,T=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(T)&&"0"===T[1]&&"10"===T[2]&&(C=setImmediate),function(){C(n)}):j?(E=0,x=new j(n),A=document.createTextNode(""),x.observe(A,{characterData:!0}),function(){A.data=E=++E%2}):L?((_=new MessageChannel).port1.onmessage=n,function(){_.port2.postMessage(0)}):(void 0===P?function(){try{var t=Q(5);return y=t.runOnLoop||t.runOnContext,function(){y(n)}}catch(t){return e()}}:e)(),z=void 0,B=1,F=2,U=new t,M=new t;g.prototype._validateInput=function(t){return I(t)},g.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},g.prototype._init=function(){this._result=new Array(this.length)};var q=g;g.prototype._enumerate=function(){for(var t=this.length,e=this.promise,n=this._input,r=0;e._state===z&&r<t;r++)this._eachEntry(n[r],r)},g.prototype._eachEntry=function(t,e){var n,r=this,i=r._instanceConstructor;"object"==typeof(n=t)&&null!==n?t.constructor===i&&t._state!==z?(t._onerror=null,r._settledAt(t._state,e,t._result)):r._willSettleAt(i.resolve(t),e):(r._remaining--,r._result[e]=t)},g.prototype._settledAt=function(t,e,n){var r=this,i=r.promise;i._state===z&&(r._remaining--,t===F?f(i,n):r._result[e]=n),0===r._remaining&&l(i,r._result)},g.prototype._willSettleAt=function(t,e){var n=this;h(t,void 0,function(t){n._settledAt(B,e,t)},function(t){n._settledAt(F,e,t)})};var N=function(t){return new q(this,t).promise},k=function(t){function e(t){d(r,t)}function n(t){f(r,t)}var r=new this(s);if(!I(t))return f(r,new TypeError("You must pass an array to race.")),r;for(var i=t.length,o=0;r._state===z&&o<i;o++)h(this.resolve(t[o]),void 0,e,n);return r},L=function(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(s);return d(e,t),e},P=function(t){var e=new this(s);return f(e,t),e},W=0,H=w;w.all=N,w.race=k,w.resolve=L,w.reject=P,w._setScheduler=function(t){b=t},w._setAsap=function(t){R=t},w._asap=R,w.prototype={constructor:w,then:function(t,e){var n=this._state;if(n===B&&!t||n===F&&!e)return this;var r,i=new this.constructor(s),o=this._result;return n?(r=arguments[n-1],R(function(){v(n,i,r,o)})):h(this,i,t,e),i},"catch":function(t){return this.then(null,t)}};var V={Promise:H,polyfill:function(){var t;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;e&&"[object Promise]"===Object.prototype.toString.call(e.resolve())&&!e.cast||(t.Promise=H)}};Q(6).amd?void 0===(K=function(){return V}.call($,Q,$,G))||(G.exports=K):void 0!==G&&G.exports&&(G.exports=V)}.call(this)}.call($,Q(4)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){t.exports=window},function(t,e,n){function r(t){return/(Trident|MSIE|Edge[\/ ]?\d)/.test(t=t||u)}var i=n(9),o=(n(10),n(13)),s=n(7),a=n(12),u=o.userAgent;t.exports={retina:function(t){return(t=t||s).devicePixelRatio?1.5<=t.devicePixelRatio:!!t.matchMedia&&t.matchMedia("only screen and (min-resolution: 144dpi)").matches},anyIE:r,ie9:function(t){return/MSIE 9/.test(t=t||u)},ie10:function(t){return/MSIE 10/.test(t=t||u)},ios:function(t){return/(iPad|iPhone|iPod)/.test(t=t||u)},android:function(t){return/^Mozilla\/5\.0 \(Linux; (U; )?Android/.test(t=t||u)},canPostMessage:function(t,e){return e=e||u,(t=t||s).postMessage&&!(r(e)&&t.opener)},touch:function(t,e,n){return e=e||o,n=n||u,"ontouchstart"in(t=t||s)||/Opera Mini/.test(n)||0<e.msMaxTouchPoints},cssTransitions:function(){var t=i.body.style;return void 0!==t.transition||void 0!==t.webkitTransition||void 0!==t.mozTransition||void 0!==t.oTransition||void 0!==t.msTransition},hasPromiseSupport:function(){return!!(s.Promise&&s.Promise.resolve&&s.Promise.reject&&s.Promise.all&&s.Promise.race&&(new s.Promise(function(t){e=t}),a.isType("function",e)));var e},hasIntersectionObserverSupport:function(){return!!s.IntersectionObserver},hasPerformanceInformation:function(){return s.performance&&s.performance.getEntriesByType},hasLocalStorageSupport:function(){try{return s.localStorage.setItem("local_storage_support_test","true"),"undefined"!=typeof s.localStorage}catch(t){return!1}}}},function(t,e){t.exports=document},function(t,e,n){function r(){s("info",c.toRealArray(arguments))}function i(){s("error",c.toRealArray(arguments))}function o(){return u.performance&&+u.performance.now()||+new Date}function s(t,e){if(u[d]&&u[d][t])switch(e.length){case 1:u[d][t](e[0]);break;case 2:u[d][t](e[0],e[1]);break;case 3:u[d][t](e[0],e[1],e[2]);break;case 4:u[d][t](e[0],e[1],e[2],e[3]);break;case 5:u[d][t](e[0],e[1],e[2],e[3],e[4]);break;default:0!==e.length&&u[d].warn&&u[d].warn("too many params passed to logger."+t)}}var a=n(11),u=n(7),c=n(12),d=["con","sole"].join(""),l={},f=c.contains(a.href,"tw_debug=true");t.exports={info:r,warn:function(){s("warn",c.toRealArray(arguments))},error:i,time:function(t){f&&(l[t]=o())},timeEnd:function(t){f&&(l[t]?r("_twitter",t,o()-l[t]):i("timeEnd() called before time() for id: ",t))}}},function(t,e){t.exports=location},function(t,e,n){function r(t,e){for(var n in t)t.hasOwnProperty&&!t.hasOwnProperty(n)||e(n,t[n]);return t}function i(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(t){return t===Object(t)}function s(t){if(!o(t))return!1;if(Object.keys)return!Object.keys(t).length;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function a(t){return t?Array.prototype.slice.call(t):[]}var u=n(7);t.exports={aug:function(n){return a(arguments).slice(1).forEach(function(t){r(t,function(t,e){n[t]=e})}),n},"async":function(t,e){u.setTimeout(function(){t.call(e||null)},0)},compact:function c(n){return r(n,function(t,e){o(e)&&(c(e),s(e)&&delete n[t]),null!=e&&""!==e||delete n[t]}),n},contains:function(t,e){return!(!t||!t.indexOf)&&-1<t.indexOf(e)},forIn:r,isObject:o,isEmptyObject:s,toType:i,isType:function(t,e){return t==i(e)},toRealArray:a}},function(t,e){t.exports=navigator},function(t,e,n){var r=n(15);t.exports={exposeReadyPromise:function(t,e,n){e.ready=r(t.then,t),n&&Array.isArray(e[n])&&(e[n].forEach(r(t.then,t)),delete e[n])}}},function(t,e,n){var i=n(12);t.exports=function(e,n){var r=Array.prototype.slice.call(arguments,2);return function(){var t=i.toRealArray(arguments);return e.apply(n,r.concat(t))}}},function(t,e,n){n=n(17);t.exports=new n("twttr")},function(t,e,n){function s(t){return a.isType("string",t)?t.split("."):a.isType("array",t)?t:[]}function r(t,e){(e=e||i)[t]=e[t]||{},Object.defineProperty(this,"base",{value:e[t]}),Object.defineProperty(this,"name",{value:t})}var i=n(7),a=n(12);a.aug(r.prototype,{get:function(t){return s(t).reduce(function(t,e){if(a.isObject(t))return t[e]},this.base)},set:function(t,e,n){var r,i,o=s(t),r=(r=this.base,(i=s(t).slice(0,-1)).reduce(function(t,e,n){if(t[e]=t[e]||{},!a.isObject(t[e]))throw new Error(i.slice(0,n+1).join(".")+" is already defined with a value.");return t[e]},r)),o=o.slice(-1);return n&&o in r?r[o]:r[o]=e},init:function(t,e){return this.set(t,e,!0)},unset:function(t){var e=s(t),t=this.get(e.slice(0,-1));t&&delete t[e.slice(-1)]},aug:function(t){var e=this.get(t),n=a.toRealArray(arguments).slice(1),e=void 0!==e?e:{};if(n.unshift(e),!n.every(a.isObject))throw new Error("Cannot augment non-object.");return this.set(t,a.aug.apply(null,n))},call:function(t){var e=this.get(t),n=a.toRealArray(arguments).slice(1);if(!a.isType("function",e))throw new Error("Function "+t+"does not exist.");return e.apply(null,n)},fullPath:function(t){t=s(t);return t.unshift(this.name),t.join(".")}}),t.exports=r},function(t,e,n){n=n(17);t.exports=new n("__twttr")},function(t,e,n){function r(t){var e,n;t.altKey||t.metaKey||t.shiftKey||(e=s.closest(function(t){return"A"===t.tagName||"AREA"===t.tagName},t.target))&&u.isIntentURL(e.href)&&(n=(n=(n=[n=e.href,"original_referer="+i.href].join(-1==n.indexOf("?")?"?":"&")).replace(/^http[:]/,"https:")).replace(/^\/\//,"https://"),a.open(n,e),o.preventDefault(t))}var i=n(11),o=n(20),s=n(22),a=n(23),u=n(24);t.exports={attachTo:function(t){t.addEventListener("click",r,!1)}}},function(t,e,n){function o(t){var e=t.getAttribute("data-twitter-event-id");return e||(t.setAttribute("data-twitter-event-id",++d),d)}function u(t,e,n){for(var r=n||t.target||t.srcElement,i=a.list(r).map(function(t){return"."+t}).concat(r.tagName),o=0,s=i.length;o<s;o++)if(!1===function(t,e,n){for(var r=0,i=t&&t.length||0,r=0;r<i;r++)if(t[r].call(e,n,e),n.ceaseImmediately)return!1}(e[i[o]],r,t))return;t.cease||r!==this&&u.call(this,t,e,r.parentElement||r.parentNode)}function s(e,n,r,t){function i(t){u.call(e,t,r[n])}var o,s,a;o=i,s=n,a=t,(t=e).id&&(l[t.id]=l[t.id]||[],l[t.id].push({el:t,listener:o,type:s,rootId:a})),e.addEventListener(n,i,!1)}function r(t){t&&t.preventDefault?t.preventDefault():t.returnValue=!1}function i(t){t&&(t.cease=!0)&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}var a=n(21),c={},d=-1,l={};t.exports={stop:function(t){return i(t),r(t),!1},stopPropagation:i,stopImmediatePropagation:function(t){t&&(t.ceaseImmediately=!0,i(t),t.stopImmediatePropagation())},preventDefault:r,delegate:function(t,e,n,r){var i=o(t);c[i]=c[i]||{},c[i][e]||(c[i][e]={},s(t,e,c[i],i)),c[i][e][n]=c[i][e][n]||[],c[i][e][n].push(r)},simulate:function(t,e,n){var r=o(e),r=c[r]&&c[r];u.call(e,{target:n},r[t])},removeDelegatesForWidget:function(t){var e=l[t];e&&(e.forEach(function(t){t.el.removeEventListener(t.type,t.listener,!1),delete c[t.rootId]}),delete l[t])}}},function(t,e,n){function r(t){return new RegExp("\\b"+t+"\\b","g")}function i(t,e){return t.classList?void t.classList.add(e):void(r(e).test(t.className)||(t.className+=" "+e))}function o(t,e){return t.classList?void t.classList.remove(e):void(t.className=t.className.replace(r(e)," "))}function s(t,e){return t.classList?t.classList.contains(e):u.contains(a(t),e)}function a(t){return u.toRealArray(t.classList||t.className.match(c))}var u=n(12),c=/\b([\w-_]+)\b/g;t.exports={add:i,remove:o,replace:function(t,e,n){return t.classList&&s(t,e)?(o(t,e),void i(t,n)):void(t.className=t.className.replace(r(e),n))},toggle:function(t,e,n){return void 0===n&&t.classList&&t.classList.toggle?t.classList.toggle(e,n):((n?i:o)(t,e),n)},present:s,list:a}},function(t,e,n){var o=n(12);t.exports={closest:function s(t,e,n){var r,i;if(e)return n=n||e&&e.ownerDocument,i=o.isType("function",t)?t:"."===(i=(r=t).charAt(0))?function(t){return t=t.className?t.className.split(/\s+/):[],o.contains(t,r.slice(1))}:"#"===i?function(t){return t.id===r.slice(1)}:function(t){return t.tagName===r.toUpperCase()},e===n?i(e)?e:void 0:i(e)?e:s(i,e.parentNode,n)}}},function(t,e,n){function r(t){this.srcEl=[],this.element=t}var i=n(24),o=n(27),s=n(30),a=n(25),u={favorite:["favorite","like"],follow:["follow"],like:["favorite","like"],retweet:["retweet"],tweet:["tweet"]};r.open=function(e,n,t){var r=(i.intentType(e)||"").toLowerCase();i.isTwitterURL(e)&&(o.open(e,{},t),n&&s.trigger("click",{target:n,region:"intent",type:"click",data:{}}),n&&u[r]&&u[r].forEach(function(t){s.trigger(t,{target:n,region:"intent",type:t,data:function(t,e){var n=a.decodeURL(e);switch(t){case"favorite":case"like":return{tweet_id:n.tweet_id};case"follow":return{screen_name:n.screen_name,user_id:n.user_id};case"retweet":return{source_tweet_id:n.tweet_id};default:return{}}}(r,e)})}))},t.exports=r},function(t,e,n){function r(t){return"string"==typeof t&&c.test(t)&&RegExp.$1.length<=20}function i(t){if(r(t))return RegExp.$1}function o(t,e){var n=u.decodeURL(t);if(e=e||!1,n.screen_name=i(t),n.screen_name)return u.url("https://twitter.com/intent/"+(e?"follow":"user"),n)}function s(t){return"string"==typeof t&&h.test(t)}function a(t){return"string"==typeof t&&d.test(t)}var u=n(25),c=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?(?:\/intent\/(?:follow|user)\/?\?screen_name=|(?:\/#!)?\/))@?([\w]+)(?:\?|&|$)/i,d=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?\/(?:#!\/)?[\w_]+\/status(?:es)?\/)(\d+)/i,l=/^http(s?):\/\/(\w+\.)*twitter\.com([:\/]|$)/i,f=/^http(s?):\/\/pbs\.twimg\.com\//,h=/^#?([^.,<>!\s\/#\-()'"]+)$/,p=/twitter\.com(?::\d{2,4})?\/intent\/(\w+)/,m=/^https?:\/\/(?:www\.)?twitter\.com\/\w+\/timelines\/(\d+)/i,v=/^https?:\/\/(?:www\.)?twitter\.com\/i\/moments\/(\d+)/i,g=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/(?:likes|favorites)/i,w=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/lists\/([\w-]+)/i,y=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/([\w-]+)/i,b=/^https?:\/\/(?:www\.)?twitter\.com\/hashtag\/([\w-]+)/i,_=/^https?:\/\/(?:www\.)?twitter\.com\/search/i,E=/^https?:\/\/(?:www\.)?twitter\.com\/i\/live\/(\d+)/i,x=/^https?:\/\/syndication\.twitter\.com\/settings/i,A=/^https?:\/\/(localhost|platform)\.twitter\.com(?::\d+)?\/widgets\/widget_iframe\.(.+)/i;t.exports={isHashTag:s,hashTag:function(t,e){if(e=void 0===e||e,s(t))return(e?"#":"")+RegExp.$1},isSearchUrl:function(t){return b.test(t)||_.test(t)},isScreenName:r,screenName:i,isStatus:a,status:function(t){return a(t)&&RegExp.$1},intentForProfileURL:o,intentForFollowURL:function(t){return o(t,!0)},isTwitterURL:function(t){return l.test(t)},isTwimgURL:function(t){return f.test(t)},isIntentURL:function(t){return p.test(t)},isSettingsURL:function(t){return x.test(t)},isWidgetIframeURL:function(t){return A.test(t)},regexen:{profile:c},momentId:function(t){return v.test(t)&&RegExp.$1},collectionId:function(t){return m.test(t)&&RegExp.$1},intentType:function(t){return p.test(t)&&RegExp.$1},likesScreenName:function(t){return g.test(t)&&RegExp.$1},listScreenNameAndSlug:function(t){return!!w.test(t)&&{ownerScreenName:RegExp.$1,slug:RegExp.$2}},listLegacyScreenNameAndSlug:function(t){return!!y.test(t)&&{ownerScreenName:RegExp.$1,slug:RegExp.$2}},eventId:function(t){return E.test(t)&&RegExp.$1}}},function(t,e,n){function i(t){return encodeURIComponent(t).replace(/\+/g,"%2B").replace(/'/g,"%27")}function o(t){return decodeURIComponent(t)}function r(t){var r=[];return u.forIn(t,function(t,e){var n=i(t);(e=!u.isType("array",e)?[e]:e).forEach(function(t){a.hasValue(t)&&r.push(n+"="+i(t))})}),r.sort().join("&")}function s(t){var r={};return t?(t.split("&").forEach(function(t){var e=t.split("="),n=o(e[0]),t=o(e[1]);if(2==e.length)return u.isType("array",r[n])?void r[n].push(t):n in r?(r[n]=[r[n]],void r[n].push(t)):void(r[n]=t)}),r):{}}var a=n(26),u=n(12);t.exports={url:function(t,e){return 0<r(e).length?u.contains(t,"?")?t+"&"+r(e):t+"?"+r(e):t},decodeURL:function(t){return 2==(t=t&&t.split("?")).length?s(t[1]):{}},decode:s,encode:r,encodePart:i,decodePart:o}},function(t,e,n){function r(t){return null!=t&&""!==t}function i(t){return s(t)&&t%1==0}function o(t){return s(t)&&!i(t)}function s(t){return r(t)&&!isNaN(t)}function a(t){return c.contains(l,t)}function u(t){return c.contains(d,t)}var c=n(12),d=[!0,1,"1","on","ON","true","TRUE","yes","YES"],l=[!1,0,"0","off","OFF","false","FALSE","no","NO"];t.exports={hasValue:r,isInt:i,isFloat:o,isNumber:s,isString:function(t){return"string"===c.toType(t)},isArray:function(t){return r(t)&&"array"==c.toType(t)},isTruthValue:u,isFalseValue:a,asInt:function(t){if(i(t))return parseInt(t,10)},asFloat:function(t){if(o(t))return t},asNumber:function(t){if(s(t))return t},asBoolean:function(t){return!(!r(t)||!u(t)&&(a(t)||!t))}}},function(t,e,n){function o(t,e){function n(t){return Math.round(t/2)}return e<t?{coordinate:0,size:e}:{coordinate:n(e)-n(t),size:t}}function r(t,e,n){var r,i=o((e=m.parse(e)).width,(n=n||{}).width||h);e.left=i.coordinate,e.width=i.size,n=o(e.height,n.height||p),e.top=n.coordinate,e.height=n.size,this.win=t,this.features=(e=e,r=[],f.forIn(e,function(t,e){r.push(t+"="+e)}),r.join(","))}var i=n(7),s=n(28),a=n(20),u=n(22),c=n(8),d=n(24),l=n(29),f=n(12),h=i.screen.width,p=i.screen.height,m=(new s).defaults({width:550,height:520,personalbar:"0",toolbar:"0",location:"1",scrollbars:"1",resizable:"1"});r.prototype.open=function(t,e){var n=e&&"click"==e.type&&u.closest("a",e.target),r=e&&(e.altKey||e.metaKey||e.shiftKey),n=n&&(c.ios()||c.android());if(d.isTwitterURL(t))return r||n||(this.name="intent_"+l.generate(),this.popup=this.win.open(t,this.name,this.features),e&&a.preventDefault(e)),this},r.open=function(t,e,n){return new r(i,e).open(t,n)},t.exports=r},function(t,e,n){function r(){this.assertions=[],this._defaults={}}var i=n(26),o=n(12);r.prototype.assert=function(t,e){return this.assertions.push({fn:t,msg:e||"assertion failed"}),this},r.prototype.defaults=function(t){return this._defaults=t||this._defaults,this},r.prototype.require=function(t){var n=this;return(t=Array.isArray(t)?t:o.toRealArray(arguments)).forEach(function(t){var e;n.assert(function(t){return i.hasValue(t[e])},"required: "+(e=t))}),this},r.prototype.parse=function(t){var n=o.aug({},this._defaults,t||{}),t=this.assertions.reduce(function(t,e){return e.fn(n)||t.push(e.msg),t},[]);if(0<t.length)throw new Error(t.join("\n"));return n},t.exports=r},function(t,e){var n=0,r=0;t.exports={generate:function(){return"i"+String(+new Date)+Math.floor(1e5*Math.random())+n++},deterministic:function(){return"i"+String(r++)}}},function(t,e,n){var r=n(16),i=n(31),n=n(12);t.exports=n.aug(r.get("events")||{},i.Emitter)},function(t,e,n){var r=n(12),i=n(15),o={bind:function(t,e){return this._handlers=this._handlers||{},this._handlers[t]=this._handlers[t]||[],this._handlers[t].push(e)},unbind:function(t,e){this._handlers&&this._handlers[t]&&(e?0<=(e=this._handlers[t].indexOf(e))&&this._handlers[t].splice(e,1):this._handlers[t]=[])},trigger:function(t,e){var n=this._handlers&&this._handlers[t];(e=e||{}).type=t,n&&n.forEach(function(t){r["async"](i(t,this,e))})}};t.exports={Emitter:o,makeEmitter:function(){return r.aug(function(){},o)}}},function(t,e,n){function r(){var t=c.val("widgets:autoload")||!0;return!h.isFalseValue(t)&&(h.isTruthValue(t)?o.body:o.querySelectorAll(t))}function i(t){return t=(t=t||o.body).length?p.toRealArray(t):[t],l.pause(),t=a.allResolved(t.reduce(function(t,n){return t.concat(v.reduce(function(t,e){return t.concat(e(n))},[]))},[]).map(function(t){return u.addWidget(t)})).then(function(t){f.trigger("loaded",{widgets:t}),g.emitter.trigger(g.ALL_WIDGETS_RENDERED,{widgets:t})}),a.always(t,function(){l.resume()}),t}var o=n(9),s=n(2),a=n(33),u=n(34),c=n(41),d=n(18),l=n(42),f=n(30),h=n(26),p=n(12),m=n(73),v=n(78),g=n(241);t.exports={load:i,loadPage:function(){var t=r();return m.load(),!1===t?s.resolve():(d.set("widgets.loaded",!0),i(t))},_getPageLoadTarget:r}},function(t,e,n){function r(t,e){return t.then(e,e)}function u(t){return t instanceof o}var o=n(2),i=n(1);t.exports={always:r,allResolved:function(s){var a;return void 0===s?o.reject(new Error("undefined is not an object")):Array.isArray(s)?(a=s.length)?new o(function(t,e){function n(){(i+=1)===a&&(0===o.length?e():t(o))}function r(t){o.push(t),n()}var i=0,o=[];s.forEach(function(t){u(t)?t.then(r,n):r(t)})}):o.resolve([]):o.reject(new Error("Type error"))},some:function(i){var t=(i=i||[]).length;return i=i.filter(u),t?t!==i.length?o.reject("non-Promise passed to .some"):new o(function(e,t){function n(){(r+=1)===i.length&&t()}var r=0;i.forEach(function(t){t.then(e,n)})}):o.reject("no promises passed to .some")},isPromise:u,allSettled:function(t){function e(){}return o.all((t||[]).map(function(t){return r(t,e)}))},timeout:function(t,e){var n=new i;return setTimeout(function(){n.reject(new Error("Promise timed out"))},e),t.then(function(t){n.resolve(t)},function(t){n.reject(t)}),n.promise}}},function(t,e,n){var r=n(35),i=n(39),o=n(2),s=n(33),a=n(15),u=n(12),c=new i(function(t){t=t.map(r.fromRawTask).reduce(function(t,e){return t[e.className]=t[e.className]||[],t[e.className].push(e),t},{}),u.forIn(t,function(t,e){s.allSettled(e.map(function(t){return t.initialize()})).then(function(){e.forEach(function(t){o.all([t.hydrate(),t.insertIntoDom()]).then(a(t.render,t)).then(a(t.success,t),a(t.fail,t))})})})});t.exports={addWidget:function(t){return c.add(t)}}},function(t,e,n){function r(r,t){this._widget=null,this._sandbox=null,this._hydrated=!1,this._insertedIntoDom=!1,this._Sandbox=r.Sandbox,this._factory=r.factory,this._widgetParams=r.parameters,this._resolve=t,this._className=r.className,this._renderedClassName=r.className+"-rendered",this._errorClassName=r.className+"-error",this._srcEl=r.srcEl,this._targetGlobal=((t=r).srcEl||t.targetEl).ownerDocument.defaultView,this._insertionStrategy=function(t){var e=r.srcEl,n=r.targetEl;e?n.insertBefore(t,e):n.appendChild(t)}}var i=n(21),o=n(36),s=n(30),a=n(38),u=n(2),c=n(33);r.fromRawTask=function(t){return new r(t.input,t.taskDoneDeferred.resolve)},r.prototype.initialize=function(){var e=this,n=new this._Sandbox(this._targetGlobal);return this._factory(this._widgetParams,n).then(function(t){return e._widget=t,e._sandbox=n,t})},r.prototype.insertIntoDom=function(){var t=this;return this._widget?this._sandbox.insert(this._widget.id,{"class":[this._className,this._renderedClassName].join(" ")},null,this._insertionStrategy).then(function(){t._insertedIntoDom=!0}):u.reject(new Error("cannot insert widget into DOM before it is initialized"))},r.prototype.hydrate=function(){var t=this;return this._widget?this._widget.hydrate().then(function(){t._hydrated=!0}):u.reject(new Error("cannot hydrate widget before it is initialized"))},r.prototype.render=function(){function t(t){return a(e._sandbox.sandboxEl).then(function(){return u.reject(t)})}var e=this;return this._hydrated?this._insertedIntoDom?e._widget.render(e._sandbox).then(function(){return e._sandbox.onResize(function(){return e._widget.resize().then(function(){s.trigger("resize",{target:e._sandbox.sandboxEl})})}),e._widget.show()}).then(function(){return a(e._srcEl).then(function(){return e._sandbox.sandboxEl})},t):t(new Error("cannot render widget before DOM insertion")):t(new Error("cannot render widget before hydration"))},r.prototype.fail=function(){var t=this;return this._srcEl?c.always(o.write(function(){i.add(t._srcEl,t._errorClassName)}),function(){s.trigger("rendered",{target:t._srcEl}),t._resolve(t._srcEl)}):(t._resolve(),u.resolve())},r.prototype.success=function(){s.trigger("rendered",{target:this._sandbox.sandboxEl}),this._resolve(this._sandbox.sandboxEl)},t.exports=r},function(t,e,n){function i(t,e){return function(){try{e.resolve(t.call(this))}catch(t){e.reject(t)}}}var o=n(37),s=n(1),a=n(12);t.exports={sync:function(t,e){t.call(e)},read:function(t,e){var n=new s;return o.read(i(t,n),e),n.promise},write:function(t,e){var n=new s;return o.write(i(t,n),e),n.promise},defer:function(t,e,n){var r=new s;return a.isType("function",t)&&(n=e,e=t,t=1),o.defer(t,i(e,r),n),r.promise}}},function(r,i,o){var s;!function(){"use strict";function t(){this.frames=[],this.lastId=0,this.raf=e,this.batch={hash:{},read:[],write:[],mode:null}}var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)};t.prototype.read=function(t,e){t=this.add("read",t,e),e=t.id;return this.batch.read.push(t.id),"reading"===this.batch.mode||this.batch.scheduled||this.scheduleBatch(),e},t.prototype.write=function(t,e){var n=this.add("write",t,e),t=this.batch.mode,e=n.id;return this.batch.write.push(n.id),"writing"===t||"reading"===t||this.batch.scheduled||this.scheduleBatch(),e},t.prototype.defer=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=1);var r=this;return this.schedule(t-1,function(){r.run({fn:e,ctx:n})})},t.prototype.clear=function(t){if("function"==typeof t)return this.clearFrame(t);t=Number(t);var e,n=this.batch.hash[t];n&&(n=(e=this.batch[n.type]).indexOf(t),delete this.batch.hash[t],~n&&e.splice(n,1))},t.prototype.clearFrame=function(t){t=this.frames.indexOf(t);~t&&this.frames.splice(t,1)},t.prototype.scheduleBatch=function(){var t=this;this.schedule(0,function(){t.batch.scheduled=!1,t.runBatch()}),this.batch.scheduled=!0},t.prototype.uniqueId=function(){return++this.lastId},t.prototype.flush=function(t){for(var e;e=t.shift();)this.run(this.batch.hash[e])},t.prototype.runBatch=function(){try{this.batch.mode="reading",this.flush(this.batch.read),this.batch.mode="writing",this.flush(this.batch.write),this.batch.mode=null}catch(r){throw this.runBatch(),r}},t.prototype.add=function(t,e,n){var r=this.uniqueId();return this.batch.hash[r]={id:r,fn:e,ctx:n,type:t}},t.prototype.run=function(t){var e=t.ctx||this,n=t.fn;if(delete this.batch.hash[t.id],!this.onError)return n.call(e);try{n.call(e)}catch(t){this.onError(t)}},t.prototype.loop=function(){function e(){var t=n.frames.shift();n.frames.length?r(e):n.looping=!1,t&&t()}var t,n=this,r=this.raf,i=!1;this.looping||(t=setTimeout(function(){i=!0,e()},500),r(function(){i||(clearTimeout(t),e())}),this.looping=!0)},t.prototype.schedule=function(t,e){return this.frames[t]?this.schedule(t+1,e):(this.loop(),this.frames[t]=e)};var n=new t;void 0!==r&&r.exports?r.exports=n:void 0===(s=function(){return n}.call(i,o,i,r))||(r.exports=s)}()},function(t,e,n){var r=n(36);t.exports=function(t){return r.write(function(){t&&t.parentNode&&t.parentNode.removeChild(t)})}},function(e,t,n){function r(t){this._inputsQueue=[],this._task=t,this._hasFlushBeenScheduled=!1}var i=n(1),o=n(40),s=n(15);r.prototype.add=function(t){var e=new i;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._hasFlushBeenScheduled||(this._hasFlushBeenScheduled=!0,o(s(this._flush,this))),e.promise},r.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(e){this._inputsQueue.forEach(function(t){t.taskDoneDeferred.reject(e)})}this._inputsQueue=[],this._hasFlushBeenScheduled=!1},e.exports=r},function(t,e,n){n=n(3).Promise;t.exports=n._asap},function(t,e,n){function r(t){var e,n,r,i=0;for(o={},e=(t=t||s).getElementsByTagName("meta");e[i];i++){if(n=e[i],/^twitter:/.test(n.getAttribute("name")))r=n.getAttribute("name").replace(/^twitter:/,"");else{if(!/^twitter:/.test(n.getAttribute("property")))continue;r=n.getAttribute("property").replace(/^twitter:/,"")}o[r]=n.getAttribute("content")||n.getAttribute("value")}}var o,s=n(9);r(),t.exports={init:r,val:function(t){return o[t]}}},function(t,e,n){function r(t){t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,i=t.input.version;s.clientEvent(e,n,r,i),t.taskDoneDeferred.resolve()})}var i=n(43),o=n(44),s=n(71),a=n(50),u=new(n(72))(function(t){var e;if(0!==t.length){if(1===t.length)return r(t);t=(e=i(t,function(t){return a.noticeSeen(t.input.namespace)}))["true"],e=e["false"],t&&0<t.length&&r(t.slice(0,1)),e&&(1===e.length?r:function(t){o.init(),t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,t=t.input.version;o.clientEvent(e,n,r,t)}),o.flush().then(function(){t.forEach(function(t){t.taskDoneDeferred.resolve()})},function(){t.forEach(function(t){t.taskDoneDeferred.reject()})})})(e)}});t.exports={scribe:function(t,e,n,r){return u.add({namespace:t,data:e,offsite:n,version:r})},pause:function(){u.pause()},resume:function(){u.resume()}}},function(t,e){t.exports=function(t,r){return t.reduce(function(t,e){var n=r(e);return t[n]=t[n]||[],t[n].push(e),t},{})}},function(t,e,n){function r(){var t=a.createElement("form"),e=a.createElement("input"),n=a.createElement("input");return b++,t.action=p.CLIENT_EVENT_ENDPOINT,t.method="POST",t.target=w+b,t.id=y+b,e.type="hidden",e.name="dnt",e.value=l.enabled(),n.type="hidden",n.name="tfw_redirect",n.value=p.RUFOUS_REDIRECT,t.appendChild(e),t.appendChild(n),t}function i(){var t=w+b;return d({id:t,name:t,width:0,height:0,border:0},{display:"none"},a.doc)}var s,o,a,u=n(9),c=n(7),d=n(45),l=n(46),f=n(1),h=n(2),p=n(50),m=n(12),v=n(53),g=n(18).get("scribeCallback"),n=Math.floor(1e3*Math.random())+"_",w="rufous-frame-"+n+"-",y="rufous-form-"+n+"-",b=0,_=!1,E=new f;t.exports={clientEvent:function(n,r,i,o){var t,e;t=n,e=r,t=!m.isObject(t),e=!!e&&!m.isObject(e),t||e||(g&&g(arguments),E.promise.then(function(){var t,e;t=p.formatClientEventNamespace(n),e=p.formatClientEventData(r,i,o),m.isObject(t)&&m.isObject(e)&&(t=p.flattenClientEventPayload(t,e),(e=s.firstChild).value=+(+e.value||t.dnt||0),(e=a.createElement("input")).type="hidden",e.name="l",e.value=p.stringify(t),s.appendChild(e))}))},flush:function(){return E.promise.then(function(){var t;return s.children.length<=2?h.reject():(t=h.all([a.doc.body.appendChild(s),a.doc.body.appendChild(o)]).then(function(t){var r=t[0],i=t[1];return i.addEventListener("load",function(){var e,n;e=r,n=i,function(){var t=e.parentNode;t&&(t.removeChild(e),t.removeChild(n))}()}),r.submit(),t}),s=r(),o=i(),t)})},init:function(){return _||((a=new v(c)).insert("rufous-sandbox",null,{display:"none"},function(t){u.body.appendChild(t)}).then(function(){a.setTitle("Twitter analytics iframe"),s=r(),o=i(),E.resolve([s,o])}),_=!0),E.promise}}},function(t,e,n){var i=n(9),o=n(12);t.exports=function(t,e,n){var r;if(n=n||i,e=e||{},(t=t||{}).name){try{r=n.createElement('<iframe name="'+t.name+'"></iframe>')}catch(e){(r=n.createElement("iframe")).name=t.name}delete t.name}else r=n.createElement("iframe");return t.id&&(r.id=t.id,delete t.id),r.allowtransparency="true",r.scrolling="no",r.setAttribute("frameBorder",0),r.setAttribute("allowTransparency",!0),o.forIn(t,function(t,e){r.setAttribute(t,e)}),o.forIn(e,function(t,e){r.style[t]=e}),r}},function(t,e,n){var r=n(9),i=n(11),o=n(47),s=n(49),a=n(26),u=n(41),c=!1,d=/https?:\/\/([^\/]+).*/i;t.exports={setOn:function(){c=!0},enabled:function(t,e){return!!(c||a.asBoolean(u.val("dnt"))||s.isUrlSensitive(e||i.host)||o.isFramed()&&s.isUrlSensitive(o.rootDocumentLocation())||(t=d.test(t||r.referrer)&&RegExp.$1)&&s.isUrlSensitive(t))}}},function(t,e,n){var r=n(11),i=n(48),o=n(12),s=i.getCanonicalURL()||r.href,a=s;t.exports={isFramed:function(){return s!==a},rootDocumentLocation:function(t){return s=t&&o.isType("string",t)?t:s},currentDocumentLocation:function(){return a}}},function(t,e,n){function r(t,e){var n,r;return e=e||i,/^https?:\/\//.test(t)?t:/^\/\//.test(t)?e.protocol+t:(n=e.host+(e.port.length?":"+e.port:""),0!==t.indexOf("/")&&((r=e.pathname.split("/")).pop(),r.push(t),t="/"+r.join("/")),[e.protocol,"//",n,t].join(""))}var a=n(9),i=n(11),u=n(24);t.exports={absolutize:r,getCanonicalURL:function(){for(var t,e=a.getElementsByTagName("link"),n=0;e[n];n++)if("canonical"==(t=e[n]).rel)return r(t.href)},getScreenNameFromPage:function(){for(var t,e,n,r=[a.getElementsByTagName("a"),a.getElementsByTagName("link")],i=0,o=0,s=/\bme\b/;t=r[i];i++)for(o=0;e=t[o];o++)if(s.test(e.rel)&&(n=u.screenName(e.href)))return n}}},function(t,e,n){function r(t){return t in s?s[t]:s[t]=o.test(t)}var i=n(11),o=/^[^#?]*\.(gov|mil)(:\d+)?([#?].*)?$/i,s={};t.exports={isUrlSensitive:r,isHostPageSensitive:function(){return r(i.host)}}},function(t,e,n){function r(t){return u.aug({client:"tfw"},t||{})}function i(t,e,n){return u.aug({},e=e||{},{_category_:t,triggered_on:e.triggered_on||+new Date,dnt:a.enabled(n)})}var o=n(9),s=n(51),a=n(46),u=n(12),c=n(52),d=n(18),l=n(24),f=c.version,d=d.get("clientEventEndpoint")||"https://syndication.twitter.com/i/jot";t.exports={extractTermsFromDOM:function h(t,n){var e;return n=n||{},t&&t.nodeType===Node.ELEMENT_NODE?((e=t.getAttribute("data-scribe"))&&e.split(" ").forEach(function(t){var t=(e=t.trim().split(":"))[0],e=e[1];t&&e&&!n[t]&&(n[t]=e)}),h(t.parentNode,n)):n},clickEventElement:function(t){return(t=t.getAttribute("data-expanded-url"))&&l.isTwitterURL(t)?"twitter_url":"url"},flattenClientEventPayload:function(t,e){return u.aug({},e,{event_namespace:t})},formatGenericEventData:i,formatClientEventData:function(t,e,n){var r=t&&t.widget_origin||o.referrer;return(t=i("tfw_client_event",t,r)).client_version=f,t.format_version=void 0!==n?n:1,e||(t.widget_origin=r),t},formatClientEventNamespace:r,formatTweetAssociation:function(t,e){var n={};return(e=e||{}).association_namespace=r(t),n[1]=e,n},noticeSeen:function(t){return"notice"===t.element&&"seen"===t.action},splitLogEntry:function(e){var t,n,r,i;return e.item_ids&&1<e.item_ids.length?(r=Math.floor(e.item_ids.length/2),t=e.item_ids.slice(0,r),n={},r=e.item_ids.slice(r),i={},t.forEach(function(t){n[t]=e.item_details[t]}),r.forEach(function(t){i[t]=e.item_details[t]}),[u.aug({},e,{item_ids:t,item_details:n}),u.aug({},e,{item_ids:r,item_details:i})]):[e]},stringify:function(t){var e=Array.prototype.toJSON;return delete Array.prototype.toJSON,t=s.stringify(t),e&&(Array.prototype.toJSON=e),t},AUDIENCE_ENDPOINT:"https://syndication.twitter.com/i/jot/syndication",CLIENT_EVENT_ENDPOINT:d,RUFOUS_REDIRECT:"https://platform.twitter.com/jot.html"}},function(t,e,n){n=n(7).JSON;t.exports={stringify:n.stringify||n.encode,parse:n.parse||n.decode}},function(t,e){t.exports={version:"c419f42:1520970215484"}},function(t,e,n){var r=n(54),n=n(63);t.exports=r.build([n])},function(t,e,n){var r=n(55),i=n(58),n=n(15);(r=Object.create(r)).build=n(r.build,null,i),t.exports=r},function(t,e,n){var i=n(56),o=n(57),r=n(12);t.exports={couple:function(){return r.toRealArray(arguments)},build:function(t,e,n){var r=new t;return(e=o(i(e||[]))).forEach(function(t){t.call(null,r)}),r.build(n)}}},function(t,e,n){var r=n(12);t.exports=function i(t){var e=[];return t.forEach(function(t){t=r.isType("array",t)?i(t):[t],e=e.concat(t)}),e}},function(t,e){t.exports=function(n){return n.filter(function(t,e){return n.indexOf(t)===e})}},function(t,e,n){function r(){i.apply(this,arguments)}var i=n(59),o=n(12),n=n(62);r.prototype=Object.create(i.prototype),o.aug(r.prototype,{factory:n}),t.exports=r},function(t,e,n){function r(){this.Component=this.factory(),this._adviceArgs=[],this._lastArgs=[]}var i=n(60),o=n(12),n=n(61);o.aug(r.prototype,{factory:n,build:function(t){var e=this;return this.Component,o.aug(this.Component.prototype.boundParams,t),this._adviceArgs.concat(this._lastArgs).forEach(function(t){!function(t,e,n){var r=this[e];if(!r)throw new Error(e+" does not exist");this[e]=t(r,n)}.apply(e.Component.prototype,t)}),delete this._lastArgs,delete this._adviceArgs,this.Component},params:function(t){var e=this.Component.prototype.paramConfigs;this.Component.prototype.paramConfigs=o.aug({},t=t||{},e)},define:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.override(t,e)},defineStatic:function(t,e){this.Component[t]=e},override:function(t,e){this.Component.prototype[t]=e},defineProperty:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.overrideProperty(t,e)},overrideProperty:function(t,e){e=o.aug({configurable:!0},e);Object.defineProperty(this.Component.prototype,t,e)},before:function(t,e){this._adviceArgs.push([i.before,t,e])},after:function(t,e){this._adviceArgs.push([i.after,t,e])},around:function(t,e){this._adviceArgs.push([i.around,t,e])},last:function(t,e){this._lastArgs.push([i.after,t,e])}}),t.exports=r},function(t,e,n){var s=n(33),r=n(12),i=n(15);t.exports={before:function(r,i){return function(){var t=this,e=arguments,n=i.apply(this,arguments);return s.isPromise(n)?n.then(function(){return r.apply(t,e)}):r.apply(this,arguments)}},after:function(i,o){return function(){function e(t,e){return s.isPromise(e)?e.then(function(){return t}):t}var n=this,r=arguments,t=i.apply(this,arguments);return s.isPromise(t)?t.then(function(t){return e(t,o.apply(n,r))}):e(t,o.apply(this,arguments))}},around:function(e,n){return function(){var t=r.toRealArray(arguments);return t.unshift(i(e,this)),n.apply(this,t)}}}},function(t,e,n){function f(){return!0}function h(t){return t}var p=n(12);t.exports=function(){function t(d){var l=this;d=d||{},this.params=Object.keys(this.paramConfigs).reduce(function(t,e){var n,r,i,o=[],s=l.boundParams,a=l.paramConfigs[e],u=a.validate||f,c=a.transform||h;if(e in s&&o.push(s[e]),e in d&&o.push(d[e]),o="fallback"in a?o.concat(a.fallback):o,t[e]=(n=u,r=c,i=null,o.some(function(t){if(t=p.isType("function",t)?t():t,n(t))return i=r(t),!0}),i),a.required&&null==t[e])throw new Error(e+" is a required parameter");return t},{}),this.initialize()}return p.aug(t.prototype,{paramConfigs:{},boundParams:{},initialize:function(){}}),t}},function(t,e,n){var r=n(21),i=n(36),o=n(61),s=n(2),a=n(12);t.exports=function(){function t(t){e.apply(this,arguments),Object.defineProperty(this,"targetGlobal",{value:t})}var e=o();return t.prototype=Object.create(e.prototype),a.aug(t.prototype,{id:null,initialized:!1,width:0,height:0,sandboxEl:null,insert:function(){return s.reject()},onResize:function(){},addClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],i.write(function(){t.forEach(function(t){r.add(e,t)})})},removeClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],i.write(function(){t.forEach(function(t){r.remove(e,t)})})},styleSelf:function(t){var n=this;return i.write(function(){a.forIn(t,function(t,e){n.sandboxEl.style[t]=e})})}}),t}},function(t,e,n){function u(t,e,n,r){return e=w.aug({id:t},E,e),n=w.aug({},x,n),p(e,n,r)}function c(t){try{t.contentWindow.document}catch(t){return g.reject(t)}return g.resolve(t)}function d(t,e,n,r,i){var o=new v,s=b.generate(),a=u(t,e,n,i);return y.set(["sandbox",s],function(){var t=a.contentWindow.document;f.write(function(){t.write("<!DOCTYPE html><html><head></head><body></body></html>")}).then(function(){t.close(),o.resolve(a)})}),a.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+l.domain+'"; }',"window.parent."+y.fullPath(["sandbox",s])+"();"].join(""),a.addEventListener("error",o.reject,!1),f.write(function(){r.parentNode.replaceChild(a,r)}),o.promise}var l=n(9),r=n(21),f=n(36),i=n(64),o=n(54),s=n(65),a=n(66),h=n(67),p=n(45),m=(n(10),n(68)),v=n(1),g=n(2),w=n(12),y=n(18),b=n(29),_=n(15),E={allowfullscreen:"true"},x={position:"absolute",visibility:"hidden",display:"block",width:"0px",height:"0px",padding:"0",border:"none"},A={position:"static",visibility:"visible"};t.exports=o.couple(n(69),function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.win}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}}),t.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}}),t.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}}),t.defineProperty("doc",{get:function(){return this.win&&this.win.document}}),t.define("_updateCachedDimensions",function(){var n=this;return f.read(function(){var t,e=m(n.sandboxEl);"visible"==n.sandboxEl.style.visibility?n._width=e.width:(t=m(n.sandboxEl.parentElement).width,n._width=Math.min(e.width,t)),n._height=e.height})}),t.define("_setTargetToBlank",function(){var t=this.createElement("base");t.target="_blank",this.doc.head.appendChild(t)}),t.define("_didResize",function(){var e=this,t=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){t.forEach(function(t){t(e)})})}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.override("createElement",function(t){return this.doc.createElement(t)}),t.override("createFragment",function(){return this.doc.createDocumentFragment()}),t.override("htmlToElement",function(t){var e=this.createElement("div");return e.innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!i.getSelectedText(this.win)}),t.override("addRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?f.write(function(){t.forEach(function(t){r.add(e,t)})}):g.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?f.write(function(){t.forEach(function(t){r.remove(e,t)})}):g.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return r.present(this.rootEl,t)}),t.define("addStyleSheet",function(t,e){var n,r=new v;return this.initialized?((n=this.createElement("link")).type="text/css",n.rel="stylesheet",n.href=t,n.addEventListener("load",r.resolve,!1),n.addEventListener("error",r.reject,!1),f.write(_(e,null,n)).then(function(){return s(t).then(r.resolve,r.reject),r.promise})):g.reject(new Error("sandbox not initialized"))}),t.override("prependStyleSheet",function(t){var n=this.doc;return this.addStyleSheet(t,function(t){var e=n.head.firstElementChild;return e?n.head.insertBefore(t,e):n.head.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){return e.head.appendChild(t)})}),t.define("addCss",function(t,e){var n;return a.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.doc.createTextNode(t)),f.write(_(e,null,n))):g.resolve()}),t.override("prependCss",function(t){var n=this.doc;return this.addCss(t,function(t){var e=n.head.firstElementChild;return e?n.head.insertBefore(t,e):n.head.appendChild(t)})}),t.override("appendCss",function(t){var e=this.doc;return this.addCss(t,function(t){return e.head.appendChild(t)})}),t.override("makeVisible",function(){var t=this;return this.styleSelf(A).then(function(){t._updateCachedDimensions()})}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this.widgetEl?g.reject(new Error("widget already injected")):f.write(function(){e.doc.body.appendChild(t)}):g.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){var t,e=this;return f.read(function(){t=e.widgetEl?m(e.widgetEl).height:0}),f.write(function(){e.sandboxEl.style.height=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.override("matchWidthToContent",function(){var t,e=this;return f.read(function(){t=e.widgetEl?m(e.widgetEl).width:0}),f.write(function(){e.sandboxEl.style.width=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this,o=new v,s=this.targetGlobal.document,a=u(t,e,n,s);return f.write(_(r,null,a)),a.addEventListener("load",function(){c(a).then(null,_(d,null,t,e,n,a,s)).then(o.resolve,o.reject)},!1),a.addEventListener("error",o.reject,!1),o.promise.then(function(t){var e=h(i._didResize,50,i);return i._iframe=t,i.win.addEventListener("resize",e,!1),g.all([i._setTargetToBlank(),i.addRootClass("SandboxRoot"),i.prependCss(".SandboxRoot { display: none; }")])})}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e,n){function r(t){return(t=t||i).getSelection&&t.getSelection()}var i=n(7);t.exports={getSelection:r,getSelectedText:function(t){return(t=r(t))?t.toString():""}}},function(t,e,n){var r=n(9),i=n(7),o=n(1);t.exports=function(t){var e=new o,n=r.createElement("img");return n.onload=n.onerror=function(){i.setTimeout(e.resolve,50)},n.src=t,i.setTimeout(e.reject,2e4),e.promise}},function(t,e,n){var i,o=n(21),s=n(9),a=n(7),u=n(41),c=n(38),d=n(26),l=n(29),f="csptest";t.exports={inlineStyle:function(){var t=f+l.generate(),e=s.createElement("div"),n=s.createElement("style"),r="."+t+" { visibility: hidden; }";return!!s.body&&(void 0!==(i=d.asBoolean(u.val("widgets:csp"))?!1:i)||(e.style.display="none",o.add(e,t),n.type="text/css",n.appendChild(s.createTextNode(r)),s.body.appendChild(n),s.body.appendChild(e),i="hidden"===a.getComputedStyle(e).visibility,c(e),c(n)),i)}}},function(t,e,n){var c=n(7);t.exports=function(r,i,o){function s(){var t=o||this,e=arguments,n=+new Date;return c.clearTimeout(a),i<n-u?(u=n,void r.apply(t,e)):void(a=c.setTimeout(function(){s.apply(t,e)},i))}var a,u=0;return o=o||null,s}},function(t,e){t.exports=function(t){return{width:(t=t.getBoundingClientRect()).width,height:t.height}}},function(t,e,n){var r=n(70);t.exports=function(t){t.define("createElement",r),t.define("createFragment",r),t.define("htmlToElement",r),t.define("hasSelectedText",r),t.define("addRootClass",r),t.define("removeRootClass",r),t.define("hasRootClass",r),t.define("prependStyleSheet",r),t.define("appendStyleSheet",r),t.define("prependCss",r),t.define("appendCss",r),t.define("makeVisible",r),t.define("injectWidgetEl",r),t.define("matchHeightToContent",r),t.define("matchWidthToContent",r)}},function(t,e){t.exports=function(){throw new Error("unimplemented method")}},function(t,e,n){function i(t,e,n,r){var i=!f.isObject(t),o=!!e&&!f.isObject(e);i||o||(h&&h(arguments),s(l.formatClientEventNamespace(t),l.formatClientEventData(e,n,r),l.CLIENT_EVENT_ENDPOINT))}function s(t,e,n){var r;n&&f.isObject(t)&&f.isObject(e)&&(r=l.flattenClientEventPayload(t,e),e={l:l.stringify(r)},l.noticeSeen(t)&&(e.notice_seen=!0),r.dnt&&(e.dnt=1),o(d.url(n,e)))}function r(t,e,n,r){var i=!f.isObject(t),o=!!e&&!f.isObject(e);if(!i&&!o)return a(l.flattenClientEventPayload(l.formatClientEventNamespace(t),l.formatClientEventData(e,n,r)))}function a(t){return m.push(t),m}function u(t){return encodeURIComponent(t).length+3}function o(t){return(new Image).src=t}var c=n(46),d=n(25),l=n(50),f=n(12),h=n(18).get("scribeCallback"),p=2083,m=[],n=d.url(l.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),v=encodeURIComponent(n).length;t.exports={_enqueueRawObject:a,scribe:s,clientEvent:i,clientEvent2:function(t,e,n){return i(t,e,n,2)},enqueueClientEvent:r,flushClientEvents:function(){var s;return 1<m.length&&r({page:"widgets_js",component:"scribe_pixel",action:"batch_log"},{}),s=m,m=[],s.reduce(function(n,t,e){var r=n.length,i=r&&n[r-1];return e+1==s.length&&t.event_namespace&&"batch_log"==t.event_namespace.action&&(t.message=["entries:"+e,"requests:"+r].join("/")),function o(t){return Array.isArray(t)||(t=[t]),t.reduce(function(t,e){var n=l.stringify(e),r=u(n);return v+r<p?t=t.concat(n):1<(e=l.splitLogEntry(e)).length&&(t=t.concat(o(e))),t},[])}(t).forEach(function(t){var e=u(t);(!i||i.urlLength+e>p)&&(i={urlLength:v,items:[]},n.push(i)),i.urlLength+=e,i.items.push(t)}),n},[]).map(function(t){t={l:t.items};return c.enabled()&&(t.dnt=1),o(d.url(l.CLIENT_EVENT_ENDPOINT,t))})},interaction:function(t,e,n,r){(t=l.extractTermsFromDOM(t.target||t.srcElement)).action=r||"click",i(t,e,n)}}},function(e,t,n){function r(t,e){this._inputsQueue=[],this._task=t,this._isPaused=!1,this._flushDelay=e&&e.flushDelay||100,this._pauseLength=e&&e.pauseLength||3e3,this._flushTimeout=void 0}var i=n(1),o=n(15);r.prototype.add=function(t){var e=new i;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._scheduleFlush(),e.promise},r.prototype._scheduleFlush=function(){this._isPaused||(clearTimeout(this._flushTimeout),this._flushTimeout=setTimeout(o(this._flush,this),this._flushDelay))},r.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(e){this._inputsQueue.forEach(function(t){t.taskDoneDeferred.reject(e)})}this._inputsQueue=[],this._flushTimeout=void 0},r.prototype.pause=function(t){clearTimeout(this._flushTimeout),this._isPaused=!0,!t&&this._pauseLength&&setTimeout(o(this.resume,this),this._pauseLength)},r.prototype.resume=function(){this._isPaused=!1,this._scheduleFlush()},e.exports=r},function(t,e,n){function r(e){return o.settingsLoaded().then(function(t){return t[e]})}function i(){return r("experiments")}var o=n(74);t.exports={isBucketed:function(){return r("isBucketed")},shouldObtainCookieConsent:function(){return r("shouldObtainCookieConsent")},getExperiments:i,getExperiment:function(e){return i().then(function(t){if(!t[e])throw new Error("Experiment not found");return t[e]})},getExperimentKeys:function(){return i().then(function(t){return Object.keys(t)})},load:function(){o.load()}}},function(t,e,n){function r(t){t=t||{is_bucketed:!1,should_obtain_cookie_consent:!0,experiments:{}};return new m(t.is_bucketed,t.should_obtain_cookie_consent,t.experiments)}var i,o=n(45),s=n(1),a=n(9),u=n(51),c=n(11),d=n(25),l=n(7),f=n(8),h=n(75),p=n(76),m=(n(10),n(77));t.exports={load:function(){var n,t;return i=new s,f.ie9()||f.ie10()||"http:"!==c.protocol&&"https:"!==c.protocol?void i.resolve(r()):(t={origin:c.origin},n=d.url(h.resourceBaseUrl+h.widgetIframeHtmlPath,t),t=function(t){var e;if(n.substr(0,t.origin.length)===t.origin)try{(e=u.parse(t.data)).namespace===p.settings&&i.resolve(r(e.settings))}catch(t){}},l.addEventListener("message",t),t=o({src:n},{display:"none"}),void a.body.appendChild(t))},settingsLoaded:function(){var e=new s;return i.promise.then(function(t){e.resolve(t)})["catch"](function(t){e.reject(t)}),e.promise}}},function(t,e){t.exports={tweetButtonHtmlPath:"/widgets/tweet_button.f47a2e0b4471326b6fa0f163bda46011.{{lang}}.html",followButtonHtmlPath:"/widgets/follow_button.f47a2e0b4471326b6fa0f163bda46011.{{lang}}.html",hubHtmlPath:"/widgets/hub.html",widgetIframeHtmlPath:"/widgets/widget_iframe.f47a2e0b4471326b6fa0f163bda46011.html",resourceBaseUrl:"https://platform.twitter.com"}},function(t,e){t.exports={settings:"twttr.settings"}},function(t,e){t.exports=function(t,e,n){this.isBucketed=t,this.shouldObtainCookieConsent=e,this.experiments=n||{}}},function(t,e,n){t.exports=[n(79),n(112),n(127),n(162),n(173),n(179),n(224),n(243),n(248)]},function(t,e,n){var c=n(25),d=n(26),l=n(12),f=n(80),r=n(82)(),h=n(85);t.exports=function(t){return r(t,"a.twitter-dm-button").map(function(t){return h((n=(e=t).getAttribute("data-show-screen-name"),r=f(e),i=e.getAttribute("href"),o=e.getAttribute("data-screen-name"),s=n?d.asBoolean(n):null,a=e.getAttribute("data-size"),n=(u=c.decodeURL(i)).recipient_id,i=e.getAttribute("data-text")||u.text,u=e.getAttribute("data-welcome-message-id")||u.welcomeMessageId,l.aug(r,{screenName:o,showScreenName:s,size:a,text:i,userId:n,welcomeMessageId:u})),t.parentNode,t);var e,n,r,i,o,s,a,u})}},function(t,e,n){var i=n(46),o=n(26),s=n(25),a=n(12),u=n(81);t.exports=function(t){var r=(e=t.href&&t.href.split("?")[1])?s.decode(e):{},e={lang:u(t),width:t.getAttribute("data-width")||t.getAttribute("width"),height:t.getAttribute("data-height")||t.getAttribute("height"),related:t.getAttribute("data-related"),partner:t.getAttribute("data-partner")};return o.asBoolean(t.getAttribute("data-dnt"))&&i.setOn(),a.forIn(e,function(t,e){var n=r[t];r[t]=o.hasValue(n)?n:e}),a.compact(r)}},function(t,e,n){var r=n(12);t.exports=function i(t){var e;if(t)return e=t.lang||t.getAttribute("data-lang"),r.isType("string",e)?e:i(t.parentElement)}},function(t,e,n){var r=n(83),i=n(29);t.exports=function(){var n="data-twitter-extracted-"+i.generate();return function(t,e){return r(t,e).filter(function(t){return!t.hasAttribute(n)}).map(function(t){return t.setAttribute(n,"true"),t})}}},function(t,e,n){var r=n(12),i=n(84);t.exports=function(t,e){return i(t,e)?[t]:r.toRealArray(t.querySelectorAll(e))}},function(t,e,n){var n=n(7).HTMLElement,r=n.prototype.matches||n.prototype.matchesSelector||n.prototype.webkitMatchesSelector||n.prototype.mozMatchesSelector||n.prototype.msMatchesSelector||n.prototype.oMatchesSelector;t.exports=function(t,e){if(r)return r.call(t,e)}},function(t,e,n){var r=n(86),i=n(87),o=n(108);t.exports=function(t,e,n){return new r(i,o,"twitter-dm-button",t,e,n)}},function(t,e){function n(t,e,n,r,i,o){this.factory=t,this.Sandbox=e,this.srcEl=o,this.targetEl=i,this.parameters=r,this.className=n}n.prototype.destroy=function(){this.srcEl=this.targetEl=null},t.exports=n},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(1,function(t,e){var n;if(t)return o.reject(t);try{n=s(88),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,function(t,e,n){var r=n(55),i=n(90),n=n(15);(r=Object.create(r)).build=n(r.build,null,i),t.exports=r},function(t,e,n){function r(){i.apply(this,arguments),this.Widget=this.Component}var i=n(59),o=n(12),n=n(91);r.prototype=Object.create(i.prototype),o.aug(r.prototype,{factory:n,build:function(){return i.prototype.build.apply(this,arguments)},selectors:function(t){var e=this.Widget.prototype.selectors;this.Widget.prototype.selectors=o.aug({},t=t||{},e)}}),t.exports=r},function(t,e,n){var r=n(2),o=n(20),i=n(61),s=n(12),a=n(15),u=n(92);t.exports=function(){function t(t,e){n.apply(this,arguments),this.id="twitter-widget-"+u(),this.sandbox=e}var n=i();return t.prototype=Object.create(n.prototype),s.aug(t.prototype,{selectors:{},hydrate:function(){return r.resolve()},prepForInsertion:function(){},render:function(){return r.resolve()},show:function(){return r.resolve()},resize:function(){return r.resolve()},select:function(t,e){return 1===arguments.length&&(e=t,t=this.el),t?(e=this.selectors[e]||e,s.toRealArray(t.querySelectorAll(e))):[]},selectOne:function(){return this.select.apply(this,arguments)[0]},selectLast:function(){return this.select.apply(this,arguments).pop()},on:function(t,e,n){var r,i=this.el;this.el&&(t=(t||"").split(/\s+/),2===arguments.length?n=e:r=e,r=this.selectors[r]||r,n=a(n,this),t.forEach(r?function(t){o.delegate(i,t,r,n)}:function(t){i.addEventListener(t,n,!1)}))}}),t}},function(t,e){var n=0;t.exports=function(){return String(n++)}},,function(t,e,n){function r(t,e,n){return n="dark"===n?"dark":"light",e=i.isRtlLang(e)?"rtl":"ltr",e=[t,o.css,n,e,"css"].join("."),a.resourceBaseUrl+"/css/"+e}var i=n(95),o=n(98),s=n(15),a=n(75);t.exports={dmButton:function(){return a.resourceBaseUrl+"/css/"+["dm_button",o.css,"css"].join(".")},tweet:s(r,null,"tweet"),timeline:s(r,null,"timeline"),video:s(r,null,"video"),moment:s(r,null,"moment"),grid:s(r,null,"grid"),periscopeOnAir:function(){return a.resourceBaseUrl+"/css/"+["periscope_on_air",o.css,"css"].join(".")}}},function(t,e,n){var r=n(12),i=n(96),o=["ar","fa","he","ur"];t.exports={isRtlLang:function(t){return t=String(t).toLowerCase(),r.contains(o,t)},matchLanguage:function(t){return t=(t=(t||"").toLowerCase()).replace("_","-"),i(t)?t:(t=t.replace(/-.*/,""),i(t)?t:"en")}}},function(t,e,n){var r=n(12),i=n(97);t.exports=function(t){return"en"===t||r.contains(i,t)}},function(t,e){t.exports=["hi","zh-cn","fr","zh-tw","msa","fil","fi","sv","pl","ja","ko","de","it","pt","es","ru","id","tr","da","no","nl","hu","fa","ar","ur","he","th","cs","uk","vi","ro","bn","el","en-gb","gu","kn","mr","ta","bg","ca","hr","sr","sk"]},function(t,e){t.exports={css:"529166ecfeb05abf3ee5afe0a8c349a4"}},,function(t,e,n){var r=n(101),i=n(24),o="data-url-ref-attrs-injected";t.exports=function(t){t.define("injectRefUrlParams",function(t){t.getAttribute(o)||(t.setAttribute(o,!0),t.href=r(t.href))}),t.after("render",function(){this.on("click","A",function(t,e){i.isTwitterURL(e.href)&&this.injectRefUrlParams(e)})})}},function(t,e,n){var r=n(25),i=n(47);t.exports=function(t){return r.url(t,{ref_src:"twsrc^tfw",ref_url:i.rootDocumentLocation()})}},function(t,e,n){var r=n(42),i=n(50),o=n(47),s=n(12),a=n(15),u=n(41),c=n(26),d=n(103);t.exports=function(t){t.params({partner:{fallback:a(u.val,u,"partner")}}),t.define("scribeItems",function(){return{}}),t.define("scribeNamespace",function(){return{client:"tfw"}}),t.define("scribeData",function(){return{widget_origin:o.rootDocumentLocation(),widget_frame:o.isFramed()&&o.currentDocumentLocation(),widget_partner:this.params.partner,widget_site_screen_name:d(u.val("site")),widget_site_user_id:c.asNumber(u.val("site:id")),widget_creator_screen_name:d(u.val("creator")),widget_creator_user_id:c.asNumber(u.val("creator:id"))}}),t.define("scribe",function(t,e,n){t=s.aug(this.scribeNamespace(),t||{}),e=s.aug(this.scribeData(),e||{}),r.scribe(t,e,!1,n)}),t.define("scribeInteraction",function(t,e,n){var r=i.extractTermsFromDOM(t.target);r.action=t.type,"url"===r.element&&(r.element=i.clickEventElement(t.target)),this.scribe(r,e,n)})}},function(t,e){t.exports=function(t){return t&&"@"===t[0]?t.substr(1):t}},,function(t,e,n){var r=n(22),i=n(89),o=n(106);t.exports=i.couple(n(102),function(t){t.selectors({tweetIdInfo:".js-tweetIdInfo"}),t.define("scribeClickInteraction",function(t,e){e=r.closest(this.selectors.tweetIdInfo,e,this.el);this.scribeInteraction(t,function(t){if(t)return t=o([t]),{item_ids:Object.keys(t),item_details:t}}(e))}),t.after("render",function(){this.on("click","A",this.scribeClickInteraction),this.on("click","BUTTON",this.scribeClickInteraction)})})},function(t,e,n){var r=n(107);t.exports=function(t){return t?(t=Array.isArray(t)?t:[t]).reduce(function(t,e){var n=e.getAttribute("data-tweet-id"),e=e.getAttribute("data-rendered-tweet-id")||n;return n===e?t[e]={item_type:r.TWEET}:n&&(t[e]={item_type:r.RETWEET,target_type:r.TWEET,target_id:n}),t},{}):{}}},function(t,e){t.exports={TWEET:0,RETWEET:10,CUSTOM_TIMELINE:17,LIVE_VIDEO_EVENT:28}},function(t,e,n){var r=n(109),n=n(53);t.exports=r.isSupported()?r:n},function(t,e,n){var r=n(54),n=n(110);t.exports=r.build([n])},function(t,e,n){var r=n(111),i=n(7),o=n(21),a=n(20),u=n(36),s=n(64),c=n(54),d=n(65),l=n(66),f=n(8),h=n(68),p=n(15),m=n(67),v=n(2),g=n(12),w={position:"absolute",visibility:"hidden",display:"block",transform:"rotate(0deg)"},y={position:"static",visibility:"visible"};t.exports=c.couple(n(69),function(t){t.defineStatic("isSupported",function(){return!!i.HTMLElement.prototype.createShadowRoot&&l.inlineStyle()&&!f.android()}),t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this._shadowHost}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this._shadowHost}}),t.define("_updateCachedDimensions",function(){var n=this;return u.read(function(){var t,e=h(n.sandboxEl);"visible"==n.sandboxEl.style.visibility?n._width=e.width:(t=h(n.sandboxEl.parentElement).width,n._width=Math.min(e.width,t)),n._height=e.height})}),t.define("_didResize",function(){var e=this,t=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){t.forEach(function(t){t(e)})})}),t.override("createElement",function(t){return this.targetGlobal.document.createElement(t)}),t.override("createFragment",function(){return this.targetGlobal.document.createDocumentFragment()}),t.override("htmlToElement",function(t){var e=this.createElement("div");return e.innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!s.getSelectedText(this.targetGlobal)}),t.override("addRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?u.write(function(){t.forEach(function(t){o.add(e,t)})}):v.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?u.write(function(){t.forEach(function(t){o.remove(e,t)})}):v.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return o.present(this._shadowRootBody,t)}),t.override("addStyleSheet",function(t,e){return this.addCss('@import url("'+t+'");',e).then(function(){return d(t)})}),t.override("prependStyleSheet",function(t){var n=this._shadowRoot;return this.addStyleSheet(t,function(t){var e=n.firstElementChild;return e?n.insertBefore(t,e):n.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){return e.appendChild(t)})}),t.override("addCss",function(t,e){var n;return this.initialized?l.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.targetGlobal.document.createTextNode(t)),u.write(p(e,null,n))):v.resolve():v.reject(new Error("sandbox not initialized"))}),t.override("prependCss",function(t){var n=this._shadowRoot;return this.addCss(t,function(t){var e=n.firstElementChild;return e?n.insertBefore(t,e):n.appendChild(t)})}),t.override("appendCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){return e.appendChild(t)})}),t.override("makeVisible",function(){return this.styleSelf(y)}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this._shadowRootBody.firstElementChild?v.reject(new Error("widget already injected")):u.write(function(){e._shadowRootBody.appendChild(t)}).then(function(){return e._updateCachedDimensions()}).then(function(){var t=m(e._didResize,50,e);new r(e._shadowRootBody,t)}):v.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){return v.resolve()}),t.override("matchWidthToContent",function(){return v.resolve()}),t.override("insert",function(t,e,n,r){var i=this.targetGlobal.document,o=this._shadowHost=i.createElement("twitterwidget"),s=this._shadowRoot=o.createShadowRoot(),i=this._shadowRootBody=i.createElement("div");return g.forIn(e||{},function(t,e){o.setAttribute(t,e)}),o.id=t,s.appendChild(i),a.delegate(i,"click","A",function(t,e){e.hasAttribute("target")||e.setAttribute("target","_blank")}),v.all([this.styleSelf(w),this.addRootClass("SandboxRoot"),this.prependCss(".SandboxRoot { display: none; }"),u.write(r.bind(null,o))])}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("initialize",function(){this._shadowHost=this._shadowRoot=this._shadowRootBody=null,this._width=this._height=0,this._resizeHandlers=[]}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){var a;(a=function(n,t){function c(){var t,e;this.q=[],this.add=function(t){this.q.push(t)},this.call=function(){for(t=0,e=this.q.length;t<e;t++)this.q[t].call()}}function e(t,e){if(t.resizedAttached){if(t.resizedAttached)return t.resizedAttached.add(e),0}else t.resizedAttached=new c,t.resizedAttached.add(e);t.resizeSensor=document.createElement("div"),t.resizeSensor.className="resize-sensor";var n="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",e="position: absolute; left: 0; top: 0; transition: 0s;";t.resizeSensor.style.cssText=n,t.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+n+'"><div style="'+e+'"></div></div><div class="resize-sensor-shrink" style="'+n+'"><div style="'+e+' width: 200%; height: 200%"></div></div>',t.appendChild(t.resizeSensor),{fixed:1,absolute:1}[n="position",(e=t).currentStyle?e.currentStyle[n]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(n):e.style[n]]||(t.style.position="relative");var r,i,o=t.resizeSensor.childNodes[0],s=o.childNodes[0],a=t.resizeSensor.childNodes[1],u=(a.childNodes[0],function(){s.style.width=o.offsetWidth+10+"px",s.style.height=o.offsetHeight+10+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,a.scrollLeft=a.scrollWidth,a.scrollTop=a.scrollHeight,r=t.offsetWidth,i=t.offsetHeight});u();n=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)},e=function(){t.offsetWidth==r&&t.offsetHeight==i||t.resizedAttached&&t.resizedAttached.call(),u()};n(o,"scroll",e),n(a,"scroll",e)}var r=Object.prototype.toString.call(n),i="[object Array]"===r||"[object NodeList]"===r||"[object HTMLCollection]"===r||"undefined"!=typeof jQuery&&n instanceof jQuery||"undefined"!=typeof Elements&&n instanceof Elements;if(i)for(var o=0,s=n.length;o<s;o++)e(n[o],t);else e(n,t);this.detach=function(){if(i)for(var t=0,e=n.length;t<e;t++)a.detach(n[t]);else a.detach(n)}}).detach=function(t){t.resizeSensor&&(t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached)},void 0!==t&&"undefined"!=typeof t.exports?t.exports=a:window.ResizeSensor=a},function(t,e,n){var i=n(24),o=n(12),s=n(80),r=n(82)(),a=n(113),u=n(26);t.exports=function(t){return r(t,"a.twitter-follow-button").map(function(t){return a((r=s(e=t),e={screenName:i.screenName(e.href),showScreenName:"false"!==e.getAttribute("data-show-screen-name"),showCount:"false"!==e.getAttribute("data-show-count"),size:e.getAttribute("data-size"),count:e.getAttribute("data-count"),preview:e.getAttribute("data-preview")},o.forIn(e,function(t,e){var n=r[t];r[t]=u.hasValue(n)?n:e}),r.screenName=r.screenName||r.screen_name,r),t.parentNode,t);var e,r})}},function(t,e,n){var r=n(86),i=n(114),o=n(119);t.exports=function(t,e,n){return new r(i,o,"twitter-follow-button",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(2,function(t,e){var n;if(t)return o.reject(t);try{n=s(115),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var r=n(26),i=n(12);t.exports=function(t){t.define("widgetDataAttributes",function(){return{}}),t.define("setDataAttributes",function(){var n=this.sandbox.sandboxEl;i.forIn(this.widgetDataAttributes(),function(t,e){r.hasValue(e)&&n.setAttribute("data-"+t,e)})}),t.after("render",function(){this.setDataAttributes()})}},function(t,e,n){var r=n(54),n=n(120);t.exports=r.build([n])},function(t,e,n){var o=n(36),r=n(121),s=n(126),a=n(45),i=n(1),u=n(2),c=n(15),d=n(12),l={position:"absolute",visibility:"hidden",width:"0px",height:"0px"},f={position:"static",visibility:"visible"},h={};r(function(t,e,n){var r=h[t];if(r)return r.styleSelf({width:(e=e||1)+"px",height:(n=n||1)+"px"}).then(function(){r.didResize()})}),t.exports=function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.iframeEl}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.define("updateCachedDimensions",function(){var t=this;return this.initialized?o.read(function(){t._width=t.sandboxEl.offsetWidth,t._height=t.sandboxEl.offsetHeight}):u.resolve()}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.define("makeVisible",function(){return this.styleSelf(f)}),t.define("didResize",function(){var e=this,t=0<e._resizeHandlers.length;return this.updateCachedDimensions().then(function(){t&&e._resizeHandlers.forEach(function(t){t(e)})})}),t.define("loadDocument",function(t){var e=new i;return this.initialized?this.iframeEl.src?u.reject(new Error("widget already loaded")):(this.iframeEl.addEventListener("load",e.resolve,!1),this.iframeEl.addEventListener("error",e.reject,!1),this.iframeEl.src=t,e.promise):u.reject(new Error("sandbox not initialized"))}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this;return e=d.aug({id:t},e),n=d.aug({},l,n),this._iframe=a(e,n),(h[t]=this).onResize(s(function(){i.makeVisible()})),o.write(c(r,null,this._iframe))}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this.updateCachedDimensions()})}},function(t,e,n){var i=n(7),o=n(122),s=n(124),a=n(30),u=n(26),c=n(125);t.exports=function(r){(new o).attachReceiver(new s.Receiver(i,"twttr.button")).bind("twttr.private.trigger",function(t,e){var n=c(this);a.trigger(t,{target:n,region:e,type:t,data:{}})}).bind("twttr.private.resizeButton",function(t){var e=c(this),n=e&&e.id,e=u.asInt(t.width),t=u.asInt(t.height);n&&void 0!==e&&void 0!==t&&r(n,e,t)})}},function(t,e,n){function r(t){this.registry=t||{}}function o(t){var e=c.isType("string",t),n=c.isType("number",t);return e||n||null===t}function s(t,e){return{jsonrpc:f,id:o(t)?t:null,error:e}}var a=n(51),u=n(123),c=n(12),d=n(2),l=n(33),f="2.0";r.prototype._invoke=function(t,e){var n,r=this.registry[t.method],i=t.params||[];i=c.isType("array",i)?i:[i];try{n=r.apply(e.source||null,i)}catch(t){n=d.reject(t.message)}return l.isPromise(n)?n:d.resolve(n)},r.prototype._processRequest=function(n,t){var e,r,i;return e=n,c.isObject(e)&&(r=e.jsonrpc===f,i=c.isType("string",e.method),e=!("id"in e)||o(e.id),r&&i&&e)?(t="params"in n&&(e=n.params,!c.isObject(e)||c.isType("function",e))?d.resolve(s(n.id,u.INVALID_PARAMS)):this.registry[n.method]?this._invoke(n,{source:t}).then(function(t){return e=n.id,{jsonrpc:f,id:e,result:t};var e},function(){return s(n.id,u.INTERNAL_ERROR)}):d.resolve(s(n.id,u.METHOD_NOT_FOUND)),null!=n.id?t:d.resolve()):d.resolve(s(n.id,u.INVALID_REQUEST))},r.prototype.attachReceiver=function(t){return t.attachTo(this),this},r.prototype.bind=function(t,e){return this.registry[t]=e,this},r.prototype.receive=function(t,e){var n,r,i=this;try{r=t,t=c.isType("string",r)?a.parse(r):r}catch(t){return d.resolve(s(null,u.PARSE_ERROR))}return e=e||null,r=c.isType("array",t),n=(r?t:[t]).map(function(t){return i._processRequest(t,e)}),r?d.all(n).then(function(t){return(t=t.filter(function(t){return void 0!==t})).length?t:void 0}):n[0]},t.exports=r},function(t,e){t.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},function(t,e,n){function r(t,e,n){var r;t&&t.postMessage&&(v?r=(n||"")+d.stringify(e):n?(r={})[n]=e:r=e,t.postMessage(r,"*"))}function i(t){return h.isType("string",t)?t:"JSONRPC"}function o(t,e){return e?h.isType("string",t)&&0===t.indexOf(e)?t.substring(e.length):t[e]||void 0:t}function s(t,e){var n=t.document;this.filter=i(e),this.server=null,this.isTwitterFrame=p.isTwitterURL(n.location.href),t.addEventListener("message",m(this._onMessage,this),!1)}function a(t,e){this.pending={},this.target=t,this.isTwitterHost=p.isTwitterURL(u.href),this.filter=i(e),c.addEventListener("message",m(this._onMessage,this),!1)}var u=n(11),c=n(7),d=n(51),l=n(1),f=n(8),h=n(12),p=n(24),m=n(15),v=f.ie9();h.aug(s.prototype,{_onMessage:function(e){var t,n=this;this.server&&(this.isTwitterFrame&&!p.isTwitterURL(e.origin)||(t=o(e.data,this.filter))&&this.server.receive(t,e.source).then(function(t){t&&r(e.source,t,n.filter)}))},attachTo:function(t){this.server=t},detach:function(){this.server=null}}),h.aug(a.prototype,{_processResponse:function(t){var e=this.pending[t.id];e&&(e.resolve(t),delete this.pending[t.id])},_onMessage:function(t){var e;if((!this.isTwitterHost||p.isTwitterURL(t.origin))&&(e=o(t.data,this.filter))){if(h.isType("string",e))try{e=d.parse(e)}catch(t){return}(e=h.isType("array",e)?e:[e]).forEach(m(this._processResponse,this))}},send:function(t){var e=new l;return t.id?this.pending[t.id]=e:e.resolve(),r(this.target,t,this.filter),e.promise}}),t.exports={Receiver:s,Dispatcher:a,_stringifyPayload:function(t){return v=0<arguments.length?!!t:v}}},function(t,e,n){var i=n(9);t.exports=function(t){for(var e,n=i.getElementsByTagName("iframe"),r=0;n[r];r++)if((e=n[r]).contentWindow===t)return e}},function(t,e){t.exports=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments))}}},function(t,e,n){var i=n(26),o=n(12),s=n(24),a=n(80),r=n(82)(),u=n(128);t.exports=function(t){return r(t,"a.twitter-grid").map(function(t){return u((r=a(e=t),e={collectionId:s.collectionId(e.href),chrome:e.getAttribute("data-chrome"),limit:e.getAttribute("data-limit")},o.forIn(e,function(t,e){var n=r[t];r[t]=i.hasValue(n)?n:e}),r),t.parentNode,t);var e,r})}},function(t,e,n){var r=n(86),i=n(129),o=n(53);t.exports=function(t,e,n){return new r(i,o,"twitter-grid",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(3,function(t,e){var n;if(t)return o.reject(t);try{n=s(130),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var a=n(9),u=n(18),c=n(1),d=n(12),l=n(25),f="cb",h=0;t.exports={fetch:function(t,e,n,r){var i,o,s;return r=function(t){if(t)return t.replace(/[^\w$]/g,"_")}(r||f+h++),i=u.fullPath(["callbacks",r]),o=a.createElement("script"),s=new c,e=d.aug({},e,{callback:i,suppress_response_codes:!0}),u.set(["callbacks",r],function(t){var e=n(t||!1);t=e.resp,e.success?s.resolve(t):s.reject(t),o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),u.unset(["callbacks",r])}),o.onerror=function(){s.reject(new Error("failed to fetch "+o.src))},o.src=l.url(t,e),o["async"]="async",a.body.appendChild(o),s.promise}}},function(t,e,n){var r=n(10);t.exports=function(t){var e=t.headers&&t.headers.status;return!(e=t&&!t.error&&200===e)&&t.headers&&t.headers.message&&r.warn(t.headers.message),{success:e,resp:t}}},function(t,e){t.exports={getTimezoneOffset:function(){var t=(new Date).toString().match(/(GMT[+-]?\d+)/);return t&&t[0]||"GMT"}}},function(t,e){t.exports=function(){return Math.floor(+new Date/9e5)}},function(t,e,n){function r(t,e){var r=[t];return e.forEach(function(t){var e,n;r.push((n=((e=t)||"").toString(),t="/"===n.slice(0,1)?1:0,e="/"===n.slice(-1)?-1:void 0,n.slice(t,e)))}),r.join("/")}var i=n(18),o="https://cdn.syndication.twimg.com",s="https://syndication.twitter.com",a=function(){return i.get("backendHost")||o},u=function(){return i.get("settingsSvcHost")||s};t.exports={cookieConsent:function(t){return(t=t||[]).unshift("cookie/consent"),r(u(),t)},disableCDN:function(){i.init("backendHost",s)},enableCDN:function(){i.unset("backendHost",s)},eventVideo:function(t){return(t=t||[]).unshift("video/event"),r(a(),t)},grid:function(t){return(t=t||[]).unshift("grid/collection"),r(a(),t)},moment:function(t){return(t=t||[]).unshift("moments"),r(a(),t)},settings:function(t){return(t=t||[]).unshift("settings"),r(u(),t)},timeline:function(t){return(t=t||[]).unshift("timeline"),r(a(),t)},timelinePreconfigured:function(t){return(t=t||[]).unshift("widgets/timelines"),r(a(),t)},tweetBatch:function(t){return(t=t||[]).unshift("tweets.json"),r(a(),t)},video:function(t){return(t=t||[]).unshift("widgets/video"),r(a(),t)}}},function(t,e,n){var r=n(9),i=n(26),o=r.createElement("div");t.exports=function(t){return i.isNumber(t)&&(t+="px"),o.style.width="",o.style.width=t,o.style.width||null}},function(t,e,n){var r=n(36),i=n(140);t.exports=function(t){t.after("prepForInsertion",function(t){i.sizeIframes(t,this.sandbox.width,375,r.sync)}),t.after("resize",function(){i.sizeIframes(this.el,this.sandbox.width,375,r.write)})}},function(t,e,n){function r(t,e){(t.getAttribute("data-image")?i:o)(t,e)}function a(t){t=t.split(" ");this.url=decodeURIComponent(t[0].trim()),this.width=+t[1].replace(/w$/,"").trim()}function i(t,e){var n=m.decodeURL(t.src).name,r=n&&v(C,function(t){if(A[t]===n)return t}),i=u(e)||680;i<=r||(e=t.getAttribute("data-image"),r=v(C,function(t){if(i<=t)return t})||4096,t.src=m.url(e,{format:"jpg",name:A[r]}))}function u(t){return f.devicePixelRatio?t*f.devicePixelRatio:t}function o(t,e){var n=t.getAttribute("data-srcset"),r=t.src;n&&(r=function(t,e,n){var r,i,o=u(t),s=e.split(",").map(function(t){return new a(t.trim())});if(n)for(i=0;i<s.length;i++)s[i].url===n&&(r=s[i]);return e=s.reduce(function(t,e){return e.width<t.width&&e.width>=o?e:t},s[0]),r&&r.width>e.width?r:e}(e,n,r),t.src=r.url)}function s(t,e,n){t&&(h.toRealArray(t.querySelectorAll(".NaturalImage-image")).forEach(function(t){n(function(){r(t,e)})}),h.toRealArray(t.querySelectorAll(".CroppedImage-image")).forEach(function(t){n(function(){r(t,e/2)})}),h.toRealArray(t.querySelectorAll("img.autosized-media")).forEach(function(t){n(function(){r(t,e),t.removeAttribute("width"),t.removeAttribute("height")})}))}function c(t,n,r,i){t&&h.toRealArray(t.querySelectorAll("iframe.autosized-media, .wvp-player-container")).forEach(function(t){var e=d(t.getAttribute("data-width"),t.getAttribute("data-height"),w.effectiveWidth(t.parentElement)||n,r);i(function(){t.setAttribute("width",e.width),t.setAttribute("height",e.height),y.present(t,"wvp-player-container")?(t.style.width=e.width,t.style.height=e.height):(t.width=e.width,t.height=e.height)})})}function d(t,e,n,r,i,o){return r=r||e,(n=n||t)<t&&(e*=n/t,t=n),r<e&&(t*=r/e,e=r),t<(i=i||0)&&(e*=i/t,t=i),e<(o=o||0)&&(t*=o/e,e=o),{width:Math.floor(t),height:Math.floor(e)}}function l(t,e,n,r){h.toRealArray(t.querySelectorAll(e)).forEach(function(t){var e=t.getAttribute("style")||t.getAttribute("data-style"),e=r.test(e)&&RegExp.$1;e&&(t.setAttribute("data-csp-fix",!0),t.style[n]=e)})}var f=n(7),h=n(12),p=n(66),m=n(25),v=n(141),g=n(8),w=n(142),y=n(21),b=/max-width:\s*([\d.]+px)/,_=/top:\s*(-?[\d.]+%)/,E=/left:\s*(-?[\d.]+%)/,x=/padding-bottom:\s*([\d.]+%)/,A={64:"tiny",120:"120x120",240:"240x240",360:"360x360",680:"small",900:"900x900",1200:"medium",2048:"large",4096:"4096x4096"},C=Object.keys(A).sort(function(t,e){return t-e});t.exports={scaleDimensions:d,retinize:function(t,r){r=void 0!==r?!!r:g.retina(),h.toRealArray(t.getElementsByTagName("IMG")).forEach(function(t){var e=t.getAttribute("data-src-1x")||t.getAttribute("src"),n=t.getAttribute("data-src-2x");r&&n?t.src=n:e&&(t.src=e)})},setSrcForImgs:s,sizeIframes:c,constrainMedia:function(t,e,n,r){s(t,e,r),c(t,e,n,r)},fixMediaCardLayout:function(t){p.inlineStyle()||(l(t,".MediaCard-widthConstraint","maxWidth",b),l(t,".MediaCard-mediaContainer","paddingBottom",x),l(t,".CroppedImage-image","top",_),l(t,".CroppedImage-image","left",E))},__setSrcFromSet:o,__setSrcFromImage:i,__setImageSrc:r}},function(t,e){t.exports=function(t,e,n){for(var r,i=0;i<t.length;i++)if(r=e.call(n,t[i],i,t))return r}},function(t,e){t.exports={effectiveWidth:function n(t){return t&&1===t.nodeType?t.offsetWidth||n(t.parentNode):0}}},function(t,e,n){function r(n){var t=(n.getAttribute("data-style")||"").split(";").reduce(function(t,e){var n;return s.test(e.trim())&&(n=RegExp.$1,e=RegExp.$2,t[n.replace(/-(.)/g,function(t,e){return e.toUpperCase()})]=e),t},{});0!==Object.keys(t).length&&(n.setAttribute("data-csp-fix","true"),o.forIn(t,function(t,e){n.style[t]=e}))}var i=n(66),o=(n(10),n(12)),s=/^([a-zA-Z-]+):\s*(.+)$/;t.exports=function(t){t.selectors({cspForcedStyle:".js-cspForcedStyle"}),t.after("prepForInsertion",function(t){i.inlineStyle()||this.select(t,"cspForcedStyle").forEach(r)})}},function(t,e,n){var r=n(140);t.exports=function(t){t.after("prepForInsertion",function(t){r.retinize(t)})}},function(t,e,n){var r=n(36),i=n(140);t.exports=function(t){t.after("prepForInsertion",function(t){i.setSrcForImgs(t,this.sandbox.width,r.sync)}),t.after("resize",function(){i.setSrcForImgs(this.el,this.sandbox.width,r.write)})}},function(t,e){t.exports=function(t){t.after("render",function(){var t=this.el.getAttribute("data-iframe-title");t&&this.sandbox.setTitle&&this.sandbox.setTitle(t)})}},function(t,e,n){function r(t){return t.every(s.isInt)}function i(t){t=t.map(function(t){return{size:+t,className:a+t}}).sort(function(t,e){return t.size-e.size});return t.unshift({size:0,className:u}),t}var o=n(2),s=n(26),a="env-bp-",u=a+"min";t.exports=function(t){t.params({breakpoints:{required:!0,validate:r,transform:i}}),t.define("getClassForWidth",function(t){for(var e,n,r=this.params.breakpoints.length-1;0<=r;r--)if(t>(n=this.params.breakpoints[r]).size){e=n.className;break}return e}),t.after("initialize",function(){this.allBreakpoints=this.params.breakpoints.map(function(t){return t.className})}),t.define("recalculateBreakpoints",function(){var t=this.getClassForWidth(this.sandbox.width);return t&&this.sandbox.hasRootClass(t)?o.resolve():o.all([this.sandbox.removeRootClass(this.allBreakpoints),this.sandbox.addRootClass(t)])}),t.after("render",function(){return this.recalculateBreakpoints()}),t.after("resize",function(){return this.recalculateBreakpoints()})}},,function(t,e,n){function o(t,e){e={scribeContext:(e=e||{}).scribeContext||{client:"tfw"},languageCode:e.languageCode,hideControls:e.hideControls||!1,addTwitterBranding:e.addBranding||!1,widgetOrigin:e.widgetOrigin,borderRadius:e.borderRadius};if(0<(t=r(t,".wvp-player-container")).length)return i&&a.setBaseUrl(i),{element:t[0],options:e}}var s=n(1),r=n(83),a=n(150),i=null;t.exports={insertForTweet:function(t,e,n){var r=new s;if(n=o(t,n))return(n=a.createPlayerForTweet(n.element,e,n.options))?(r.resolve(n),r.promise):r.reject(new Error("unable to create tweet video player"))},insertForEvent:function(t,e,n){var r,i=new s;return(n=o(t,n))?((r=a.createPlayerForLiveVideo(n.element,e,n.options)).on("ready",function(){r.playPreview(),i.resolve(r)}),i.promise):i.reject(new Error("unable to initialize event video player"))},remove:function(t){if(t=(t=t.querySelector(".wvp-player-container"))&&a.findPlayerForElement(t))return t.teardown()},find:function(t){return a.findPlayerForElement(t)}}},function(t,e,n){var o;o=this,void 0===(e=function(){return o.TwitterVideoPlayer=(i={suppressScribing:!(e=/^https?:\/\/([a-zA-Z0-9]+\.)*twitter.com(:\d+)?$/),squareCorners:!(c="https://twitter.com"),hideControls:!1,addTwitterBranding:!1},d=0,l={},{setBaseUrl:function(t){e.test(t)?c=t:window.console.error("newBaseUrl "+t+" not allowed")},createPlayerForTweet:function(t,e,n){return new r(t,"/i/videos/tweet/"+e,"player_tweet_"+e,n||i)},createPlayerForDm:function(t,e,n){return new r(t,"/i/videos/dm/"+e,"player_dm_"+e,n||i)},createPlayerForLiveVideo:function(t,e,n){return new r(t,"/i/videos/live_video/"+e,"player_live_video_"+e,n||i)},findPlayerForElement:function(t){for(var e in l)if(l.hasOwnProperty(e)){e=l[e];if(e&&e.domElement===t)return e.playerInterface}return null}});function u(t){var e,n,r;t&&t.data&&t.data.params&&t.data.params[0]&&(e=t.data.params[0],n=t.data.id,e&&e.context&&"TwitterVideoPlayer"===e.context&&(r=e.playerId,delete e.playerId,delete e.context,(r=l[r])&&r.processMessage(t.data.method,e,n)))}function r(t,e,n,r,i){t.ownerDocument.defaultView.addEventListener("message",u),this.playerId=d++;var o={embed_source:"clientlib",player_id:this.playerId,rpc_init:1};if(this.scribeParams={},this.scribeParams.suppressScribing=r&&r.suppressScribing,!this.scribeParams.suppressScribing){if(!r.scribeContext)throw"video_player: Missing scribe context";if(!r.scribeContext.client)throw"video_player: Scribe context missing client property";this.scribeParams.client=r.scribeContext.client,this.scribeParams.page=r.scribeContext.page,this.scribeParams.section=r.scribeContext.section,this.scribeParams.component=r.scribeContext.component}this.scribeParams.debugScribe=r&&r.scribeContext&&r.scribeContext.debugScribing,this.scribeParams.scribeUrl=r&&r.scribeContext&&r.scribeContext.scribeUrl,this.promotedLogParams=r.promotedContext,this.adRequestCallback=r.adRequestCallback,r.languageCode&&(o.language_code=r.languageCode),"tfw"===this.scribeParams.client&&(o.use_syndication_guest_id=!0);var s,a,o=(s=c,e=e,a=o,o=Object.keys(a).filter(function(t){return null!=a[t]}).map(function(t){var e=a[t];return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"),s+e+(o=o&&"?"+o));return this.videoIframe=document.createElement("iframe"),this.videoIframe.setAttribute("src",o),this.videoIframe.setAttribute("allowfullscreen",""),this.videoIframe.setAttribute("id",n),this.videoIframe.setAttribute("style","width: 100%; height: 100%; position: absolute; top: 0; left: 0;"),this.domElement=t,this.domElement.appendChild(this.videoIframe),(l[this.playerId]=this).eventCallbacks={},this.emitEvent=function(t,e){t=this.eventCallbacks[t];void 0!==t&&t.forEach(function(t){t.apply(this.playerInterface,[e])}.bind(this))},this.jsonRpc=function(t){var e=this.videoIframe.contentWindow;t.jsonrpc="2.0",e&&e.postMessage&&e.postMessage(JSON.stringify(t),"*")},this.jsonRpcCall=function(t,e){this.jsonRpc({method:t,params:e})},this.jsonRpcResult=function(t,e){this.jsonRpc({result:t,id:e})},this.processMessage=function(t,e,n){switch(t){case"requestPlayerConfig":this.jsonRpcResult({scribeParams:this.scribeParams,promotedLogParams:this.promotedLogParams,squareCorners:r.squareCorners,borderRadius:r.borderRadius,hideControls:r.hideControls,embedded:r.addTwitterBranding,widgetOrigin:r.widgetOrigin,ignoreFineGrainGeoblocking:r.ignoreFineGrainGeoblocking},n);break;case"videoPlayerAdStart":this.emitEvent("adStart",e);break;case"videoPlayerAdEnd":this.emitEvent("adEnd",e);break;case"videoPlayerPlay":this.emitEvent("play",e);break;case"videoPlayerPause":this.emitEvent("pause",e);break;case"videoPlayerMute":this.emitEvent("mute",e);break;case"videoPlayerUnmute":this.emitEvent("unmute",e);break;case"videoPlayerPlaybackComplete":this.emitEvent("playbackComplete",e);break;case"videoPlayerReady":this.emitEvent("ready",e);break;case"videoView":this.emitEvent("view",e);break;case"debugLoggingEvent":this.emitEvent("logged",e);break;case"requestDynamicAd":"function"==typeof this.adRequestCallback?this.jsonRpcResult(this.adRequestCallback(),n):this.jsonRpcResult({},n);break;case"videoPlayerError":e&&"NO_COOKIES_ERROR"===e.error_category?this.emitEvent("noCookiesError",e):e&&"GEOBLOCK_ERROR"===e.error_category&&this.emitEvent("geoblockError",e)}},this.playerInterface={on:function(t,e){return"undefined"==typeof this.eventCallbacks[t]&&(this.eventCallbacks[t]=[]),this.eventCallbacks[t].push(e),this.playerInterface}.bind(this),off:function(t,e){return void 0===e?delete this.eventCallbacks[t]:void 0===(t=this.eventCallbacks[t])||-1<(e=t.indexOf(e))&&t.splice(e,1),this.playerInterface}.bind(this),play:function(){return this.jsonRpcCall("play"),this.playerInterface}.bind(this),pause:function(){return this.jsonRpcCall("pause"),this.playerInterface}.bind(this),mute:function(){return this.jsonRpcCall("mute"),this.playerInterface}.bind(this),unmute:function(){return this.jsonRpcCall("unmute"),this.playerInterface}.bind(this),playPreview:function(){return this.jsonRpcCall("autoPlayPreview"),this.playerInterface}.bind(this),pausePreview:function(){return this.jsonRpcCall("autoPlayPreviewStop"),this.playerInterface}.bind(this),updatePosition:function(t){return this.jsonRpcCall("updatePosition",[t]),this.playerInterface}.bind(this),updateLayoutBreakpoint:function(t){return this.jsonRpcCall("updateLayoutBreakpoint",[t]),this.playerInterface}.bind(this),enterFullScreen:function(){return this.jsonRpcCall("enterFullScreen"),this.playerInterface}.bind(this),exitFullScreen:function(){return this.jsonRpcCall("exitFullScreen"),this.playerInterface}.bind(this),teardown:function(){this.eventCallbacks={},t.removeChild(this.videoIframe),this.videoIframe=void 0,delete l[this.playerId]}.bind(this)},this.playerInterface}var c,e,i,d,l}.call(e,n,e,t))||(t.exports=e)},function(t,e,n){var r=n(22),i=n(152),o=n(89),s=n(50);t.exports=o.couple(n(102),function(t){t.selectors({clickToOpen:".js-clickToOpenTarget"}),t.define("shouldOpenTarget",function(t){var e=r.closest("A",t.target,this.el),n=r.closest("BUTTON",t.target,this.el),t=this.sandbox.hasSelectedText();return!e&&!n&&!t}),t.define("openTarget",function(t,e){e=e&&e.getAttribute("data-click-to-open-target");e&&(i(e),this.scribeOpenClick(t))}),t.define("attemptToOpenTarget",function(t,e){this.shouldOpenTarget(t)&&this.openTarget(t,e)}),t.define("scribeOpenClick",function(t){t=s.extractTermsFromDOM(t.target),t={associations:s.formatTweetAssociation(t)};this.scribe({section:"chrome",action:"click"},t)}),t.after("render",function(){this.on("click","clickToOpen",this.attemptToOpenTarget)})})},function(t,e,n){var r=n(7),i=n(153),o=n(101),s=n(24);t.exports=function(t){s.isTwitterURL(t)&&(t=o(t)),s.isStatus(t)&&(t=i(t)),r.open(t)}},function(t,e,n){var r=n(103),i=n(41),o=n(25);t.exports=function(t){var e={};return i.val("site")&&(e.tfw_site=r(i.val("site"))),i.val("creator")&&(e.tfw_creator=r(i.val("creator"))),o.url(t,e)}},function(t,e,n){var r=n(22),i=n(41),o=n(23),s=n(47),a=n(25),u=n(24),c=n(15),d="data-url-params-injected";t.exports=function(t){t.params({productName:{required:!0},dataSource:{required:!1},related:{required:!1},partner:{fallback:c(i.val,i,"partner")}}),t.selectors({timeline:".timeline",tweetIdInfo:".js-tweetIdInfo"}),t.define("injectWebIntentParams",function(t){var e=r.closest(this.selectors.timeline,t,this.el),n=r.closest(this.selectors.tweetIdInfo,t,this.el);t.getAttribute(d)||(t.setAttribute(d,!0),t.href=a.url(t.href,{tw_w:this.params.dataSource&&this.params.dataSource.id,tw_i:n&&n.getAttribute("data-tweet-id"),tw_p:this.params.productName,related:this.params.related,partner:this.params.partner,query:e&&e.getAttribute("data-search-query"),profile_id:e&&e.getAttribute("data-profile-id"),original_referer:s.rootDocumentLocation()}))}),t.after("render",function(){this.on("click","A",function(t,e){u.isIntentURL(e.href)&&(this.injectWebIntentParams(e),o.open(e.href,this.sandbox.sandboxEl,t))})})}},function(t,e,n){var r=n(8);t.exports=function(t){t.before("render",function(){r.ios()&&this.sandbox.addRootClass("env-ios"),r.ie9()&&this.sandbox.addRootClass("ie9"),r.touch()&&this.sandbox.addRootClass("is-touch")})}},function(t,e,n){var r=n(157);t.exports=function(t){t.params({pageForAudienceImpression:{required:!0}}),t.before("hydrate",function(){r.scribeAudienceImpression(this.params.pageForAudienceImpression)})}},function(t,e,n){function r(t){s.isHostPageSensitive()||a[t]||(a[t]=!0,i.scribe(o.formatClientEventNamespace({page:t,action:"impression"}),o.formatGenericEventData("syndicated_impression",{}),o.AUDIENCE_ENDPOINT))}var i=n(71),o=n(50),s=n(49),a={};t.exports={scribeAudienceImpression:r,scribePartnerTweetAudienceImpression:function(){r("partnertweet")},scribeTweetAudienceImpression:function(){r("tweet")},scribeTimelineAudienceImpression:function(){r("timeline")},scribeVideoAudienceImpression:function(){r("video")}}},function(t,e,n){var r=n(89),i=n(159);t.exports=r.couple(n(102),function(t){var n={action:"dimensions"},r=new i(1);t.after("show",function(){var t,e;r.nextBoolean()&&(t=this.sandbox.width,e=this.sandbox.height,this.scribe(n,{widget_width:t,widget_height:e}))})})},function(t,e){function n(t){this.percentage=t}n.prototype.nextBoolean=function(){return 100*Math.random()<this.percentage},t.exports=n},,function(t,e,n){var r=n(12);t.exports=function(t){var e={transparent:!1,hideBorder:!1,hideHeader:!1,hideFooter:!1,hideScrollBar:!1};return r.contains(t=t||"","transparent")&&(e.transparent=!0),r.contains(t,"noborders")&&(e.hideBorder=!0),r.contains(t,"noheader")&&(e.hideHeader=!0),r.contains(t,"nofooter")&&(e.hideFooter=!0),r.contains(t,"noscrollbar")&&(e.hideScrollBar=!0),e}},function(t,e,n){var i=n(26),o=n(12),s=n(24),a=n(80),r=n(82)(),u=n(163);t.exports=function(t){return r(t,"a.twitter-moment").map(function(t){return u((r=a(e=t),e={momentId:s.momentId(e.href),chrome:e.getAttribute("data-chrome"),limit:e.getAttribute("data-limit")},o.forIn(e,function(t,e){var n=r[t];r[t]=i.hasValue(n)?n:e}),r),t.parentNode,t);var e,r})}},function(t,e,n){var r=n(86),i=n(164),o=n(53);t.exports=function(t,e,n){return new r(i,o,"twitter-moment",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(4,function(t,e){var n;if(t)return o.reject(t);try{n=s(165),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var r=n(50),i=n(89),o=n(52),s=n(169);t.exports=i.couple(n(102),function(t){t.selectors({inViewportMarker:".js-inViewportScribingTarget"}),t.define("scribeInViewportSeen",function(t,e){t=r.extractTermsFromDOM(t);t.action="seen",this.scribe(t,e,o.version)}),t.after("show",function(){var t=this.selectors.inViewportMarker;this.select(t).forEach(function(t){t&&s.inViewportOnce(t,this.sandbox.sandboxEl,function(){this.scribeInViewportSeen(t,this.scribeItems())}.bind(this))},this)})})},function(t,e,n){var a=n(170),r=n(67),u=n(171),c=n(7),d=n(8),l=function(t){return(c.requestIdleCallback||c.requestAnimationFrame||function(t){t()})(t)},n=function(){this.observers=[]};n.prototype._register=function(n,r,i){var o,s=this;return d.hasIntersectionObserverSupport()?(o=new c.IntersectionObserver(function(t){t.forEach(function(t){1<=t.intersectionRatio&&(l(i),s._unregister(o))})},{threshold:1})).observe(n):(o={update:function(t,e){a(n,{viewportWidth:t,viewportHeight:e,sandboxEl:r})&&(i(),s._unregister(o))}},this.observers.push(o),1===this.observers.length&&(this.unlisten=u.addScrollListener(this._onViewportChange.bind(this))),this._onViewportChange()),o},n.prototype._unregister=function(t){d.hasIntersectionObserverSupport()&&t instanceof c.IntersectionObserver?t.disconnect():-1<(t=this.observers.indexOf(t))&&(this.observers.splice(t,1),0===this.observers.length&&this.unlisten&&this.unlisten())},n.prototype._onViewportChange=function(){r(l(function(){this._notify(u.getWidth(),u.getHeight())}.bind(this)),50,this)},n.prototype._notify=function(e,n){this.observers.forEach(function(t){t.update(e,n)})},n.prototype.inViewportOnce=function(t,e,n){return this._register(t,e,n)},t.exports=new n},function(t,e,n){var o=n(9),s=n(7);t.exports=function(t,e){var n=(e=e||{}).viewportWidth||s.innerWidth,r=e.viewportHeight||s.innerHeight,i=t.getBoundingClientRect();return t.ownerDocument!==o&&e.sandboxEl&&(e=e.sandboxEl.getBoundingClientRect(),i={top:i.top+e.top,bottom:i.bottom+e.top,left:i.left+e.left,right:i.right+e.left}),0<=i.top&&0<=i.left&&i.bottom<=r&&i.right<=n}},function(t,e,n){var r=n(7);t.exports={_addListener:function(t,e){var n=function(){e()};return r.addEventListener(t,n),function(){r.removeEventListener(t,n)}},addScrollListener:function(t){return this._addListener("scroll",t)},getHeight:function(){return r.innerHeight},getWidth:function(){return r.innerWidth}}},,function(t,e,n){var i=n(12),o=n(80),r=n(82)(),s=n(174),a=/^https?:\/\/(?:www\.)?(?:periscope|pscp)\.tv\/@?([a-zA-Z0-9_]+)\/?$/i;t.exports=function(t){return r(t,"a.periscope-on-air").map(function(t){return s((n=o(e=t),r=e.getAttribute("href"),e=e.getAttribute("data-size"),r=a.exec(r)[1],i.aug(n,{username:r,size:e})),t.parentNode,t);var e,n,r})}},function(t,e,n){var r=n(86),i=n(175),o=n(53);t.exports=function(t,e,n){return new r(i,o,"periscope-on-air",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(5,function(t,e){var n;if(t)return o.reject(t);try{n=s(176),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var i=n(26),o=n(12),s=n(180),a=n(195),u=n(80),r=n(82)(),c=n(197);t.exports=function(t){return r(t,"a.twitter-timeline,div.twitter-timeline").map(function(t){return c((n=u(e=t),r=e.getAttribute("data-show-replies"),e={widgetId:e.getAttribute("data-widget-id"),chrome:e.getAttribute("data-chrome"),tweetLimit:e.getAttribute("data-tweet-limit"),ariaLive:e.getAttribute("data-aria-polite"),theme:e.getAttribute("data-theme"),linkColor:e.getAttribute("data-link-color"),borderColor:e.getAttribute("data-border-color"),showReplies:r?i.asBoolean(r):null,profileScreenName:e.getAttribute("data-screen-name"),profileUserId:e.getAttribute("data-user-id"),favoritesScreenName:e.getAttribute("data-favorites-screen-name"),favoritesUserId:e.getAttribute("data-favorites-user-id"),likesScreenName:e.getAttribute("data-likes-screen-name"),likesUserId:e.getAttribute("data-likes-user-id"),listOwnerScreenName:e.getAttribute("data-list-owner-screen-name"),listOwnerUserId:e.getAttribute("data-list-owner-id"),listId:e.getAttribute("data-list-id"),listSlug:e.getAttribute("data-list-slug"),customTimelineId:e.getAttribute("data-custom-timeline-id"),staticContent:e.getAttribute("data-static-content"),url:e.href},(e=o.aug(e,n)).dataSource=s(e),e.useLegacyDefaults=e.dataSource instanceof a,e),t.parentNode,t);var e,n,r})}},function(t,e,n){function r(e){return i(f,function(t){try{return new t(e)}catch(e){}})}var i=n(141),o=n(181),s=n(185),a=n(187),u=n(189),c=n(191),d=n(193),n=n(195),l={collection:o,event:s,likes:a,list:u,profile:d,widget:n,url:r},f=[n,d,a,o,u,s,c];t.exports=function(t){return t?(n=((e=t).sourceType+"").toLowerCase(),((n=l[n])?new n(e):null)||r(t)):null;var e,n}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(184)])},function(t,e,n){var r=n(55),i=n(59),n=n(15);(r=Object.create(r)).build=n(r.build,null,i),t.exports=r},function(t,e,n){function r(t){if(!t||!t.headers)throw new Error("unexpected response schema");return{html:t.body,config:t.config,pollInterval:1e3*parseInt(t.headers.xPolling,10)||null,maxCursorPosition:t.headers.maxPosition,minCursorPosition:t.headers.minPosition}}function i(t){if(t&&t.headers)throw new Error(t.headers.status);throw t instanceof Error?t:new Error(t)}var o=n(136),s=n(133),a=n(134),u=n(11),c=n(95),d=n(135),l=n(46),f=n(26),h=n(29),p=n(12);t.exports=function(t){t.params({instanceId:{required:!0,fallback:h.deterministic},lang:{required:!0,transform:c.matchLanguage,fallback:"en"},tweetLimit:{transform:f.asInt}}),t.defineProperty("endpoint",{get:function(){throw new Error("endpoint not specified")}}),t.defineProperty("pollEndpoint",{get:function(){return this.endpoint}}),t.define("cbId",function(t){return"tl_"+this.params.instanceId+"_"+this.id+(t?"_new":"_old")}),t.define("queryParams",function(){return{lang:this.params.lang,tz:d.getTimezoneOffset(),t:o(),domain:u.host,tweet_limit:this.params.tweetLimit,dnt:l.enabled()}}),t.define("fetch",function(){return s.fetch(this.endpoint,this.queryParams(),a,this.cbId()).then(r,i)}),t.define("poll",function(t,e){var t={since_id:(t=t||{}).sinceId,max_id:t.maxId,min_position:t.minPosition,max_position:t.maxPosition},t=p.aug(this.queryParams(),t);return s.fetch(this.pollEndpoint,t,a,this.cbId(e)).then(r,i)})}},function(t,e,n){function r(t,e){return i.collectionId(t)||e}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("id",{get:function(){return"collection:"+r(this.params.url,this.params.id)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["collection"])}}),t.around("queryParams",function(t){return o.aug(t(),{collection_id:r(this.params.url,this.params.id)})}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(186)])},function(t,e,n){function r(t,e){return i.eventId(t)||e}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("id",{get:function(){return"event:"+r(this.params.url,this.params.id)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["event"])}}),t.around("queryParams",function(t){return o.aug(t(),{event_id:r(this.params.url,this.params.id)})}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(188)])},function(t,e,n){function r(t){return i.likesScreenName(t.url)||t.screenName}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({screenName:{},userId:{},url:{}}),t.overrideProperty("id",{get:function(){return"likes:"+(r(this.params)||this.params.userId)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["likes"])}}),t.define("_getLikesQueryParam",function(){var t=r(this.params);return t?{screen_name:t}:{user_id:this.params.userId}}),t.around("queryParams",function(t){return o.aug(t(),this._getLikesQueryParam())}),t.before("initialize",function(){if(!r(this.params)&&!this.params.userId)throw new Error("screen name or user id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(190)])},function(t,e,n){function r(t){t=i.listScreenNameAndSlug(t.url)||t;return o.compact({screen_name:t.ownerScreenName,user_id:t.ownerUserId,list_slug:t.slug})}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({id:{},ownerScreenName:{},ownerUserId:{},slug:{},url:{}}),t.overrideProperty("id",{get:function(){var t,e;return this.params.id?"list:"+this.params.id:(e=(t=r(this.params))&&t.list_slug.replace(/-/g,"_"),"list:"+(t&&(t.screen_name||t.user_id))+":"+e)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["list"])}}),t.define("_getListQueryParam",function(){return this.params.id?{list_id:this.params.id}:r(this.params)}),t.around("queryParams",function(t){return o.aug(t(),this._getListQueryParam())}),t.before("initialize",function(){var t=r(this.params);if(o.isEmptyObject(t)&&!this.params.id)throw new Error("qualified slug or list id required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(192)])},function(t,e,n){var r=n(26),i=n(137);t.exports=function(t){t.params({previewParams:{required:!0,validate:r.isObject}}),t.overrideProperty("id",{get:function(){return"preview"}}),t.overrideProperty("endpoint",{get:function(){return i.timelinePreconfigured(["preview"])}}),t.override("queryParams",function(){return this.params.previewParams})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(194)])},function(t,e,n){function r(t,e){return i.screenName(t)||e}var i=n(24),o=n(26),s=n(12),a=n(137);t.exports=function(t){t.params({showReplies:{fallback:!1,transform:o.asBoolean},screenName:{},userId:{},url:{}}),t.overrideProperty("id",{get:function(){return"profile:"+(r(this.params.url,this.params.screenName)||this.params.userId)}}),t.overrideProperty("endpoint",{get:function(){return a.timeline(["profile"])}}),t.define("_getProfileQueryParam",function(){var t=r(this.params.url,this.params.screenName),t=t?{screen_name:t}:{user_id:this.params.userId};return s.aug(t,{with_replies:this.params.showReplies?"true":"false"})}),t.around("queryParams",function(t){return s.aug(t(),this._getProfileQueryParam())}),t.before("initialize",function(){if(!r(this.params.url,this.params.screenName)&&!this.params.userId)throw new Error("screen name or user id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(196)])},function(t,e,n){var r=n(26),i=n(12),o=n(137);t.exports=function(t){t.params({widgetId:{required:!0},profileShowReplies:{fallback:!1,transform:r.asBoolean},showReplies:{fallback:!1,transform:r.asBoolean},profileScreenName:{},screenName:{},profileUserId:{},userId:{},favoritesScreenName:{},favoritesUserId:{},listOwnerScreenName:{},listOwnerUserId:{},listOwnerId:{},listId:{},listSlug:{},customTimelineId:{},previewParams:{}}),t.overrideProperty("id",{get:function(){return this.params.widgetId}}),t.overrideProperty("endpoint",{get:function(){return o.timelinePreconfigured([this.params.widgetId])}}),t.overrideProperty("pollEndpoint",{get:function(){return o.timelinePreconfigured(["paged",this.params.widgetId])}}),t.define("_getWidgetQueryParams",function(){var t=this.params.profileScreenName||this.params.screenName,e=this.params.profileUserId||this.params.userId,n=this.params.profileShowReplies||this.params.showReplies,r=this.params.listOwnerUserId||this.params.listOwnerId;return t||e?{override_type:"user",override_id:e,override_name:t,with_replies:n?"true":"false"}:this.params.favoritesScreenName||this.params.favoritesUserId?{override_type:"favorites",override_id:this.params.favoritesUserId,override_name:this.params.favoritesScreenName}:this.params.listOwnerScreenName||r||this.params.listId||this.params.listSlug?{override_type:"list",override_owner_id:r,override_owner_name:this.params.listOwnerScreenName,override_id:this.params.listId,override_name:this.params.listSlug}:this.params.customTimelineId?{override_type:"custom",override_id:this.params.customTimelineId}:void 0}),t.around("queryParams",function(t){return i.aug(t(),this._getWidgetQueryParams())})}},function(t,e,n){var r=n(86),i=n(198),o=n(53);t.exports=function(t,e,n){return new r(i,o,"twitter-timeline",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(6,function(t,e){var n;if(t)return o.reject(t);try{n=s(199),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var c=n(21),d=n(24),l=n(12),f=n(80),r=n(82)(),h=n(225),p=/\btw-align-(left|right|center)\b/;t.exports=function(t){return r(t,"blockquote.twitter-tweet").map(function(t){return h((n=f(e=t),r=e.getElementsByTagName("A"),i=(s=r&&r[r.length-1])&&d.status(s.href),o="none"==(a=e.getAttribute("data-conversation"))||"hidden"==a||c.present(e,"tw-hide-thread"),r="none"==(u=e.getAttribute("data-cards"))||"hidden"==u||c.present(e,"tw-hide-media"),s=e.getAttribute("data-align")||e.getAttribute("align"),a=e.getAttribute("data-link-color"),u=e.getAttribute("data-theme"),!s&&p.test(e.className)&&(s=RegExp.$1),l.aug(n,{tweetId:i,hideThread:o,hideCard:r,align:s,linkColor:a,theme:u})),t.parentNode,t);var e,n,r,i,o,s,a,u})}},function(t,e,n){var r=n(86),i=n(226),o=n(108);t.exports=function(t,e,n){return new r(i,o,"twitter-tweet",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(7,function(t,e){var n;if(t)return o.reject(t);try{n=s(227),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,,function(t,e,n){function i(t){return t.input.lang||m}function o(t,n){t.forEach(function(t){var e=n[t.input.id];e?t.taskDoneDeferred.resolve(e):t.taskDoneDeferred.reject(new Error("not found"))})}function s(t){t.forEach(function(t){t.taskDoneDeferred.reject(new Error("request failed"))})}function r(r,t){t=d(t,i);h.forIn(t,function(t,e){var n,n=(n=e,t={ids:[],lang:t=t,tz:f.getTimezoneOffset()},(t=n.reduce(function(t,e){return t.ids.push(e.input.id),t},t)).ids=t.ids.sort().join(","),t),t=p(o,null,e),e=p(s,null,e);c.fetch(r,n,u).then(t,e)})}function a(t){this.requestQueue=new l(p(r,null,t))}var u=n(232),c=n(133),d=n(43),l=n(39),f=n(135),h=n(12),p=n(15),m="en";a.prototype.fetch=function(t,e){return this.requestQueue.add({id:t,lang:e})},t.exports=a},function(t,e){t.exports=function(t){return{success:!0,resp:t}}},,,,,,,,function(t,e,n){function r(){i&&i.length===s&&(o.emitter.trigger(o.ALL_WIDGETS_AND_IMAGES_LOADED,i),i=null)}var i,o=n(241),s=0;o.emitter.bind(o.ALL_WIDGETS_RENDERED,function(t){i=t.widgets,r()}),t.exports={reportImagesLoadForAWidget:function(){s++,r()}}},function(t,e,n){n=n(31).makeEmitter();t.exports={emitter:n,START:"start",ALL_WIDGETS_RENDERED:"all_widgets_rendered",ALL_WIDGETS_AND_IMAGES_LOADED:"all_widgets_and_images_loaded"}},,function(t,e,n){var i=n(21),o=n(12),s=n(80),r=n(82)(),a=n(244),u=n(26),c="twitter-hashtag-button",d="twitter-mention-button";t.exports=function(t){return r(t,"a.twitter-share-button, a.twitter-mention-button, a.twitter-hashtag-button").map(function(t){return a((r=s(e=t),n={screenName:e.getAttribute("data-button-screen-name"),text:e.getAttribute("data-text"),type:e.getAttribute("data-type"),size:e.getAttribute("data-size"),url:e.getAttribute("data-url"),hashtags:e.getAttribute("data-hashtags"),via:e.getAttribute("data-via"),buttonHashtag:e.getAttribute("data-button-hashtag")},o.forIn(n,function(t,e){var n=r[t];r[t]=u.hasValue(n)?n:e}),r.screenName=r.screenName||r.screen_name,r.buttonHashtag=r.buttonHashtag||r.button_hashtag||r.hashtag,i.present(e,c)&&(r.type="hashtag"),i.present(e,d)&&(r.type="mention"),r),t.parentNode,t);var e,r,n})}},function(t,e,n){var i=n(86),o=n(245),s=n(119);t.exports=function(t,e,n){var r=t&&t.type||"share";return new i(o,s,"hashtag"==r?"twitter-hashtag-button":"mention"==r?"twitter-mention-button":"twitter-share-button",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(2,function(t,e){var n;if(t)return o.reject(t);try{n=s(246),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,function(t,e,n){var r=n(12),i=n(80),o=n(82)(),s=n(249),a=n(254);t.exports=function(t){return o(t,"blockquote.twitter-video").map(function(t){return s((n=i(e=t),e={url:((e=e.getElementsByTagName("A"))&&e[e.length-1]).href},(e=r.aug({},e,r.compact(n))).dataSource=a(e),e),t.parentNode,t);var e,n})}},function(t,e,n){var r=n(86),i=n(250),o=n(253);t.exports=function(t,e,n){return new r(i,o,"twitter-video",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(7,function(t,e){var n;if(t)return o.reject(t);try{n=s(251),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,function(t,e,n){var o=n(36),r=n(54),n=n(63);t.exports=r.build([n,function(t){t.overrideProperty("sandboxEl",{get:function(){return this._constrainingWrapper}}),t.override("makeVisible",function(){var t=this.iframeEl;return o.write(function(){t.style.visibility="visible"})}),t.define("setWrapperSize",function(t,e){var n=this,e=t/e,r=100/e+"%",i=500*e+"px";return o.write(function(){n._constrainingWrapper.style.maxWidth=i,n._iframeWrapper.style.paddingBottom=r})}),t.after("initialize",function(){this._constrainingWrapper=this._iframeWrapper=null}),t.around("insert",function(t,e,n,r,i){var o=this.targetGlobal.document,s=this._constrainingWrapper=o.createElement("div"),a=this._iframeWrapper=o.createElement("div");return s.id=e,s.className=(n||{})["class"],s.style.minWidth="320px",s.style.position="relative",s.style.margin="10px 0px",a.style.position="relative",a.style.height="0px",s.appendChild(a),t(void 0,null,null,function(t){t.style.position="absolute",t.style.top="0px",t.style.bottom="0px",t.style.width="100%",t.style.height="100%",a.appendChild(t),i(s)})})}])},function(t,e,n){var i=n(141),o=n(255);t.exports=function(t){return t?(r=((n=t).sourceType+"").toLowerCase(),((r=o[r])?new r(n):null)||(e=t,i(Object.keys(o),function(t){t=o[t];try{return new t(e)}catch(e){}}))):null;var e,n,r}},function(t,e,n){var r=n(256),n=n(259);t.exports={tweet:r,event:n}},function(t,e,n){var r=n(182);t.exports=r.build([n(257),n(258)])},function(t,e,n){var r=n(95);t.exports=function(t){t.params({lang:{required:!0,transform:r.matchLanguage,fallback:"en"}}),t.defineProperty("identifier",{get:function(){throw new Error("identifier not specified")}}),t.defineProperty("name",{get:function(){throw new Error("name not specified")}}),t.defineProperty("scribeItemType",{get:function(){throw new Error("scribeItemType not specified")}}),t.define("fetch",function(){throw new Error("fetch not specified")})}},function(t,e,n){function r(t,e){return e||i.status(t)}var i=n(24),o=n(137),s=new(n(231))(o.video()),a=n(107);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("identifier",{get:function(){return r(this.params.url,this.params.id)}}),t.override("fetch",function(){return s.fetch(this.identifier,this.params.lang)}),t.overrideProperty("scribeItemType",{get:function(){return a.TWEET}}),t.overrideProperty("name",{get:function(){return"tweet"}}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(257),n(260)])},function(t,e,n){function r(t,e){return i.eventId(t)||e}var i=n(24),o=n(261),s=n(137),a=n(107);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("identifier",{get:function(){return r(this.params.url,this.params.id)}}),t.override("fetch",function(){var t={lang:this.params.lang,event_id:this.identifier};return o.fetch(s.eventVideo(),t)}),t.overrideProperty("scribeItemType",{get:function(){return a.LIVE_VIDEO_EVENT}}),t.overrideProperty("name",{get:function(){return"event"}}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){function r(t){return{success:!t.error,resp:t}}function i(t){return t.data.html}function o(t){return a.reject(t.error.detail)}var s=n(133),a=n(2);t.exports={fetch:function(t,e){return s.fetch(t,e,r).then(i,o)}}},function(t,e,n){var r=n(12);t.exports=r.aug({},n(263),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272))},function(t,e,n){var r=n(85),r=n(264)(["userId"],{},r);t.exports={createDMButton:r}},function(t,e,n){var c=n(2),d=n(34),l=n(46),f=n(26),h=n(12);t.exports=function(o,s,a){var u;return s=s||{},u="ƒ("+(o=o||[]).join(", ")+", target, [options]);",function(){var e,n,r,i=Array.prototype.slice.apply(arguments,[0,o.length]),t=Array.prototype.slice.apply(arguments,[o.length]);return t.forEach(function(t){if(t)return t.nodeType===Node.ELEMENT_NODE?void(r=t):h.isType("function",t)?void(e=t):void(h.isType("object",t)&&(n=t))}),i.length!==o.length||0===t.length?(e&&h["async"](function(){e(!1)}),c.reject(new Error("Not enough parameters. Expected: "+u))):r?(n=h.aug({},n||{},s),o.forEach(function(t){n[t]=i.shift()}),f.asBoolean(n.dnt)&&l.setOn(),t=d.addWidget(a(n,r)),e&&t.then(e,function(){e(!1)}),t):(e&&h["async"](function(){e(!1)}),c.reject(new Error("No target element specified. Expected: "+u)))}}},function(t,e,n){var r=n(113),r=n(264)(["screenName"],{},r);t.exports={createFollowButton:r}},function(t,e,n){var r=n(128),r=n(264)(["collectionId"],{},r);t.exports={createGridFromCollection:r}},function(t,e,n){var r=n(163),r=n(264)(["momentId"],{},r);t.exports={createMoment:r}},function(t,e,n){var r=n(174),r=n(264)(["username"],{},r);t.exports={createPeriscopeOnAirButton:r}},function(t,e,n){var r=n(11),i=n(24),o=n(12),s=n(26),a=n(180),u=n(195),c=n(197),d=n(264)([],{},c),l=n(2),n={createTimeline:function(t){var e,n=o.toRealArray(arguments).slice(1);return o.isObject(t)||s.isString(t)?(t=t||{},n.forEach(function(t){o.isType("object",t)&&((t=e=t).ariaLive=t.ariaPolite)}),e||(e={},n.push(e)),(t=s.isString(t)?o.aug({},e,{sourceType:"widget",widgetId:t}):t).lang=e.lang,t.tweetLimit=e.tweetLimit,t.showReplies=e.showReplies,e.dataSource=a(t),e.useLegacyDefaults=e.dataSource instanceof u,d.apply(this,n)):l.reject("data source must be a string or an object.")}};i.isTwitterURL(r.href)&&(n.createTimelinePreview=function(t,e,n){t={previewParams:t,useLegacyDefaults:!0,isPreviewTimeline:!0};return t.dataSource=a(t),d(e,t,n)}),t.exports=n},function(t,e,n){var r,i=n(12),o=n(225),n=n(264),n=(r=n(["tweetId"],{},o),function(){return i.toRealArray(arguments).slice(1).forEach(function(t){i.isType("object",t)&&(t.hideCard="none"==t.cards||"hidden"==t.cards,t.hideThread="none"==t.conversation||"hidden"==t.conversation)}),r.apply(this,arguments)});t.exports={createTweet:n,createTweetEmbed:n}},function(t,e,n){function r(t){return function(){return i.toRealArray(arguments).slice(1).forEach(function(t){i.isType("object",t)&&(t.screenName=t.screenName||t.screen_name,t.buttonHashtag=t.buttonHashtag||t.button_hashtag||t.hashtag)}),t.apply(this,arguments)}}var i=n(12),o=n(244),s=n(264),a=s(["url"],{type:"share"},o),n=s(["buttonHashtag"],{type:"hashtag"},o),s=s(["screenName"],{type:"mention"},o);t.exports={createShareButton:r(a),createHashtagButton:r(n),createMentionButton:r(s)}},function(t,e,n){var r=n(249),i=n(264),o=n(12),s=n(26),a=n(254),u=i([],{},r);t.exports={createVideo:function(t){var e,n=o.toRealArray(arguments).slice(1),r=t||{};return n.forEach(function(t){o.isType("object",t)&&(e=t)}),e||(e={},n.push(e)),(r=s.isString(t)||s.isNumber(t)?{sourceType:"tweet",id:t}:r).lang=e.lang,e.dataSource=a(r),u.apply(this,n)}}},function(t,e,n){function r(){var t,e;for(c=1,t=0,e=d.length;t<e;t++)d[t]()}var i,o,s,a=n(9),u=n(7),c=0,d=[],l=a.createElement("a");/^loade|c/.test(a.readyState)&&(c=1),a.addEventListener&&a.addEventListener("DOMContentLoaded",o=function(){a.removeEventListener("DOMContentLoaded",o,!1),r()},!1),l.doScroll&&a.attachEvent("onreadystatechange",i=function(){/^c/.test(a.readyState)&&(a.detachEvent("onreadystatechange",i),r())}),s=l.doScroll?function(t){u.self!=u.top?c?t():d.push(t):function(){try{l.doScroll("left")}catch(e){return setTimeout(function(){s(t)},50)}t()}()}:function(t){c?t():d.push(t)},t.exports=s},function(t,e,n){var r=n(52),i=n(18);t.exports=function(){i.set("buildVersion",r.version)}},function(t,e,n){n(276),n(240),n(280)},function(t,e,n){var r=n(277),i=n(241),o=n(279),s=new r;i.emitter.bind(i.START,function(){s.start()}),i.emitter.bind(i.ALL_WIDGETS_RENDERED,function(){s.end(),o(s.duration(),{action:"render"})})},function(t,e,n){function r(){}var i=n(278);r.prototype.start=function(){this._startTime=i()},r.prototype.end=function(){this._duration=i()-this._startTime},r.prototype.duration=function(){return this._duration},t.exports=r},function(t,e,n){var r=n(7);t.exports=function(){return(r.performance&&r.performance.now?r.performance:Date).now()}},function(t,e,n){var r=n(42),i=n(47),o=n(12);t.exports=function(t,e){t={widget_origin:i.rootDocumentLocation(),widget_frame:i.isFramed()?i.currentDocumentLocation():null,duration_ms:t},e=o.aug(e,{page:"page",component:"performance"});r.scribe(e,t)}},function(t,e,n){function r(t){return t.performance.getEntriesByType("resource").filter(function(t){return a.isTwimgURL(t.name)||a.isTwitterURL(t.name)}).reduce(function(t,e){return t[e.name]=e.duration,t},{})}var i=n(241),o=n(279),s=n(281),a=n(24),u=n(7),c=n(12),d=n(8),l=n(109);i.emitter.bind(i.ALL_WIDGETS_AND_IMAGES_LOADED,function(t){var e,i,n=[];d.hasPerformanceInformation()&&(e=r(u),l.isSupported()||(n=t.reduce(function(t,e){return c.aug(t,r(e.contentDocument.defaultView))},{})),i=c.aug({},e,n),Object.keys(s).forEach(function(t){var n,e,r;n=i,r=s[e=t],t=Object.keys(n).reduce(function(t,e){return r(e)?t+n[e]:t},0),o(t,{element:e,action:"resource"})}))})},function(t,e,n){var r=n(24);t.exports={all:function(){return!0},image:function(t){return r.isTwimgURL(t)},settings:function(t){return r.isSettingsURL(t)},widget_iframe:function(t){return r.isWidgetIframeURL(t)}}}])));
|
1 |
+
!function(){function s(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return a[t].call(e.exports,e,e.exports,s),e.loaded=!0,e.exports}var a,u,n,c;Function&&Function.prototype&&Function.prototype.bind&&(/MSIE [678]/.test(navigator.userAgent)||(window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.loaded&&window.twttr.widgets.load&&window.twttr.widgets.load(),window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.init||(a=[function(t,e,n){var r,i=n(1),o=n(9),s=n(14),a=n(16),u=n(18),c=n(19),d=n(30),l=n(32),f=n(262),h=n(273),p=n(274),m=n(241);n(275),m.emitter.trigger(m.START),u.set("widgets.init",!0),a.set("init",!0),p(),r=new i,s.exposeReadyPromise(r.promise,a.base,"_e"),a.set("widgets",f),a.set("widgets.load",l.load),a.set("events",d),h(function(){r.resolve(a.base),c.attachTo(o),l.loadPage()})},function(t,e,n){var r=n(2);t.exports=function(){var n=this;this.promise=new r(function(t,e){n.resolve=t,n.reject=e})}},function(t,e,n){var r=n(3).Promise,i=n(7),n=n(8);t.exports=n.hasPromiseSupport()?i.Promise:r},function(t,H,V){var G;!function(W){
|
2 |
/*!
|
3 |
* @overview es6-promise - a tiny implementation of Promises/A+.
|
4 |
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
6 |
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
|
7 |
* @version 2.3.0
|
8 |
*/
|
9 |
+
!function(){"use strict";function c(t){return"function"==typeof t}function e(){return function(){setTimeout(n,1)}}function n(){for(var t=0;t<E;t+=2)(0,S[t])(S[t+1]),S[t]=void 0,S[t+1]=void 0;E=0}function s(){}function a(t){try{return t.then}catch(t){return j.error=t,j}}function u(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function D(t,e){var r,i,n,o;e.constructor===t.constructor?(n=t,(o=e)._state===P?l(n,o._result):o._state===N?f(n,o._result):h(o,void 0,function(t){d(n,t)},function(t){f(n,t)})):(o=a(e))===j?f(t,j.error):void 0!==o&&c(o)?(r=e,i=o,x(function(e){var n=!1,t=u(i,r,function(t){n||(n=!0,(r!==t?d:l)(e,t))},function(t){n||(n=!0,f(e,t))},e._label);!n&&t&&(n=!0,f(e,t))},t)):l(t,e)}function d(t,e){var n;t===e?f(t,new TypeError("You cannot resolve a promise with itself")):("function"==typeof(n=e)||"object"==typeof n&&null!==n?D:l)(t,e)}function z(t){t._onerror&&t._onerror(t._result),p(t)}function l(t,e){t._state===R&&(t._result=e,t._state=P,0!==t._subscribers.length&&x(p,t))}function f(t,e){t._state===R&&(t._state=N,t._result=e,x(z,t))}function h(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+P]=n,i[o+N]=r,0===o&&t._state&&x(p,t)}function p(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,i,o=t._result,s=0;s<e.length;s+=3)r=e[s],i=e[s+n],r?m(n,r,i,o):i(o);t._subscribers.length=0}}function t(){this.error=null}function B(t,e){try{return t(e)}catch(t){return k.error=t,k}}function m(t,e,n,r){var i,o,s,a,u=c(n);if(u){if((i=B(n,r))===k?(a=!0,o=i.error,i=null):s=!0,e===i)return f(e,new TypeError("A promises callback cannot return that same promise."))}else i=r,s=!0;e._state===R&&(u&&s?d(e,i):a?f(e,o):t===P?l(e,i):t===N&&f(e,i))}function F(e,t){try{t(function(t){d(e,t)},function(t){f(e,t)})}catch(t){f(e,t)}}function r(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(s),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?l(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&l(n.promise,n._result))):f(n.promise,n._validationError())}function i(t){if(this._id=q++,this._state=void 0,this._result=void 0,this._subscribers=[],s!==t){if(!c(t))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof i))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");F(this,t)}}var o,v,g,w,y,b,_=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},E=0,x=function(t,e){S[E]=t,S[E+1]=e,2===(E+=2)&&(v?v(n):U())},A="undefined"!=typeof window?window:void 0,C=A||{},C=C.MutationObserver||C.WebKitMutationObserver,T="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),I="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,S=new Array(1e3),U=T?(b=process.nextTick,T=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray(T)&&"0"===T[1]&&"10"===T[2]&&(b=setImmediate),function(){b(n)}):C?(w=0,T=new C(n),y=document.createTextNode(""),T.observe(y,{characterData:!0}),function(){y.data=w=++w%2}):I?((g=new MessageChannel).port1.onmessage=n,function(){g.port2.postMessage(0)}):(void 0===A?function(){try{var t=V(5);return o=t.runOnLoop||t.runOnContext,function(){o(n)}}catch(t){return e()}}:e)(),R=void 0,P=1,N=2,j=new t,k=new t,M=(r.prototype._validateInput=function(t){return _(t)},r.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},r.prototype._init=function(){this._result=new Array(this.length)},r);r.prototype._enumerate=function(){for(var t=this.length,e=this.promise,n=this._input,r=0;e._state===R&&r<t;r++)this._eachEntry(n[r],r)},r.prototype._eachEntry=function(t,e){var n,r=this,i=r._instanceConstructor;"object"==typeof(n=t)&&null!==n?t.constructor===i&&t._state!==R?(t._onerror=null,r._settledAt(t._state,e,t._result)):r._willSettleAt(i.resolve(t),e):(r._remaining--,r._result[e]=t)},r.prototype._settledAt=function(t,e,n){var r=this,i=r.promise;i._state===R&&(r._remaining--,t===N?f(i,n):r._result[e]=n),0===r._remaining&&l(i,r._result)},r.prototype._willSettleAt=function(t,e){var n=this;h(t,void 0,function(t){n._settledAt(P,e,t)},function(t){n._settledAt(N,e,t)})};var C=function(t){function e(t){d(r,t)}function n(t){f(r,t)}var r=new this(s);if(!_(t))return f(r,new TypeError("You must pass an array to race.")),r;for(var i=t.length,o=0;r._state===R&&o<i;o++)h(this.resolve(t[o]),void 0,e,n);return r},T=function(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(s);return d(e,t),e},I=function(t){var e=new this(s);return f(e,t),e},q=0,L=i;i.all=function(t){return new M(this,t).promise},i.race=C,i.resolve=T,i.reject=I,i._setScheduler=function(t){v=t},i._setAsap=function(t){x=t},i._asap=x,i.prototype={constructor:i,then:function(t,e){var n=this._state;if(n===P&&!t||n===N&&!e)return this;var r,i=new this.constructor(s),o=this._result;return n?(r=arguments[n-1],x(function(){m(n,i,r,o)})):h(this,i,t,e),i},"catch":function(t){return this.then(null,t)}};var O={Promise:L,polyfill:function(){var t;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;e&&"[object Promise]"===Object.prototype.toString.call(e.resolve())&&!e.cast||(t.Promise=L)}};V(6).amd?void 0!==(G=function(){return O}.call(H,V,H,W))&&(W.exports=G):void 0!==W&&W.exports&&(W.exports=O)}.call(this)}.call(H,V(4)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){t.exports=window},function(t,e,n){function r(t){return/(Trident|MSIE|Edge[\/ ]?\d)/.test(t=t||u)}var i=n(9),o=(n(10),n(13)),s=n(7),a=n(12),u=o.userAgent;t.exports={retina:function(t){return(t=t||s).devicePixelRatio?1.5<=t.devicePixelRatio:!!t.matchMedia&&t.matchMedia("only screen and (min-resolution: 144dpi)").matches},anyIE:r,ie9:function(t){return/MSIE 9/.test(t=t||u)},ie10:function(t){return/MSIE 10/.test(t=t||u)},ios:function(t){return/(iPad|iPhone|iPod)/.test(t=t||u)},android:function(t){return/^Mozilla\/5\.0 \(Linux; (U; )?Android/.test(t=t||u)},canPostMessage:function(t,e){return e=e||u,(t=t||s).postMessage&&!(r(e)&&t.opener)},touch:function(t,e,n){return e=e||o,n=n||u,"ontouchstart"in(t=t||s)||/Opera Mini/.test(n)||0<e.msMaxTouchPoints},cssTransitions:function(){var t=i.body.style;return void 0!==t.transition||void 0!==t.webkitTransition||void 0!==t.mozTransition||void 0!==t.oTransition||void 0!==t.msTransition},hasPromiseSupport:function(){return!!(s.Promise&&s.Promise.resolve&&s.Promise.reject&&s.Promise.all&&s.Promise.race&&(new s.Promise(function(t){e=t}),a.isType("function",e)));var e},hasIntersectionObserverSupport:function(){return!!s.IntersectionObserver},hasPerformanceInformation:function(){return s.performance&&s.performance.getEntriesByType},hasLocalStorageSupport:function(){try{return s.localStorage.setItem("local_storage_support_test","true"),"undefined"!=typeof s.localStorage}catch(t){return!1}}}},function(t,e){t.exports=document},function(t,e,n){function r(){s("info",c.toRealArray(arguments))}function i(){s("error",c.toRealArray(arguments))}function o(){return u.performance&&+u.performance.now()||+new Date}function s(t,e){if(u[d]&&u[d][t])switch(e.length){case 1:u[d][t](e[0]);break;case 2:u[d][t](e[0],e[1]);break;case 3:u[d][t](e[0],e[1],e[2]);break;case 4:u[d][t](e[0],e[1],e[2],e[3]);break;case 5:u[d][t](e[0],e[1],e[2],e[3],e[4]);break;default:0!==e.length&&u[d].warn&&u[d].warn("too many params passed to logger."+t)}}var a=n(11),u=n(7),c=n(12),d=["con","sole"].join(""),l={},f=c.contains(a.href,"tw_debug=true");t.exports={info:r,warn:function(){s("warn",c.toRealArray(arguments))},error:i,time:function(t){f&&(l[t]=o())},timeEnd:function(t){f&&(l[t]?r("_twitter",t,o()-l[t]):i("timeEnd() called before time() for id: ",t))}}},function(t,e){t.exports=location},function(t,e,n){function r(t,e){for(var n in t)t.hasOwnProperty&&!t.hasOwnProperty(n)||e(n,t[n]);return t}function i(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(t){return t===Object(t)}function s(t){if(!o(t))return!1;if(Object.keys)return!Object.keys(t).length;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function a(t){return t?Array.prototype.slice.call(t):[]}var u=n(7);t.exports={aug:function(n){return a(arguments).slice(1).forEach(function(t){r(t,function(t,e){n[t]=e})}),n},"async":function(t,e){u.setTimeout(function(){t.call(e||null)},0)},compact:function c(n){return r(n,function(t,e){o(e)&&(c(e),s(e)&&delete n[t]),null!=e&&""!==e||delete n[t]}),n},contains:function(t,e){return!(!t||!t.indexOf)&&-1<t.indexOf(e)},forIn:r,isObject:o,isEmptyObject:s,toType:i,isType:function(t,e){return t==i(e)},toRealArray:a}},function(t,e){t.exports=navigator},function(t,e,n){var r=n(15);t.exports={exposeReadyPromise:function(t,e,n){e.ready=r(t.then,t),n&&Array.isArray(e[n])&&(e[n].forEach(r(t.then,t)),delete e[n])}}},function(t,e,n){var i=n(12);t.exports=function(e,n){var r=Array.prototype.slice.call(arguments,2);return function(){var t=i.toRealArray(arguments);return e.apply(n,r.concat(t))}}},function(t,e,n){n=n(17);t.exports=new n("twttr")},function(t,e,n){function s(t){return a.isType("string",t)?t.split("."):a.isType("array",t)?t:[]}function r(t,e){(e=e||i)[t]=e[t]||{},Object.defineProperty(this,"base",{value:e[t]}),Object.defineProperty(this,"name",{value:t})}var i=n(7),a=n(12);a.aug(r.prototype,{get:function(t){return s(t).reduce(function(t,e){if(a.isObject(t))return t[e]},this.base)},set:function(t,e,n){var r,i=s(t),t=(o=this.base,(r=s(t).slice(0,-1)).reduce(function(t,e,n){if(t[e]=t[e]||{},a.isObject(t[e]))return t[e];throw new Error(r.slice(0,n+1).join(".")+" is already defined with a value.")},o)),o=i.slice(-1);return n&&o in t?t[o]:t[o]=e},init:function(t,e){return this.set(t,e,!0)},unset:function(t){var t=s(t),e=this.get(t.slice(0,-1));e&&delete e[t.slice(-1)]},aug:function(t){var e=this.get(t),n=a.toRealArray(arguments).slice(1),e=void 0!==e?e:{};if(n.unshift(e),n.every(a.isObject))return this.set(t,a.aug.apply(null,n));throw new Error("Cannot augment non-object.")},call:function(t){var e=this.get(t),n=a.toRealArray(arguments).slice(1);if(a.isType("function",e))return e.apply(null,n);throw new Error("Function "+t+"does not exist.")},fullPath:function(t){t=s(t);return t.unshift(this.name),t.join(".")}}),t.exports=r},function(t,e,n){n=n(17);t.exports=new n("__twttr")},function(t,e,n){function r(t){var e,n;t.altKey||t.metaKey||t.shiftKey||(e=s.closest(function(t){return"A"===t.tagName||"AREA"===t.tagName},t.target))&&u.isIntentURL(e.href)&&(n=(n=(n=[n=e.href,"original_referer="+i.href].join(-1==n.indexOf("?")?"?":"&")).replace(/^http[:]/,"https:")).replace(/^\/\//,"https://"),a.open(n,e),o.preventDefault(t))}var i=n(11),o=n(20),s=n(22),a=n(23),u=n(24);t.exports={attachTo:function(t){t.addEventListener("click",r,!1)}}},function(t,e,n){function o(t){var e=t.getAttribute("data-twitter-event-id");return e||(t.setAttribute("data-twitter-event-id",++d),d)}function u(t,e,n){for(var r=n||t.target||t.srcElement,i=a.list(r).map(function(t){return"."+t}).concat(r.tagName),o=0,s=i.length;o<s;o++)if(!1===function(t,e,n){for(var r=0,i=t&&t.length||0,r=0;r<i;r++)if(t[r].call(e,n,e),n.ceaseImmediately)return!1}(e[i[o]],r,t))return;t.cease||r!==this&&u.call(this,t,e,r.parentElement||r.parentNode)}function s(e,n,r,t){function i(t){u.call(e,t,r[n])}var o,s,a;s=i,a=n,t=t,(o=e).id&&(l[o.id]=l[o.id]||[],l[o.id].push({el:o,listener:s,type:a,rootId:t})),e.addEventListener(n,i,!1)}function r(t){t&&t.preventDefault?t.preventDefault():t.returnValue=!1}function i(t){t&&(t.cease=!0)&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}var a=n(21),c={},d=-1,l={};t.exports={stop:function(t){return i(t),r(t),!1},stopPropagation:i,stopImmediatePropagation:function(t){t&&(t.ceaseImmediately=!0,i(t),t.stopImmediatePropagation())},preventDefault:r,delegate:function(t,e,n,r){var i=o(t);c[i]=c[i]||{},c[i][e]||(c[i][e]={},s(t,e,c[i],i)),c[i][e][n]=c[i][e][n]||[],c[i][e][n].push(r)},simulate:function(t,e,n){var r=o(e),r=c[r]&&c[r];u.call(e,{target:n},r[t])},removeDelegatesForWidget:function(t){var e=l[t];e&&(e.forEach(function(t){t.el.removeEventListener(t.type,t.listener,!1),delete c[t.rootId]}),delete l[t])}}},function(t,e,n){function r(t){return new RegExp("\\b"+t+"\\b","g")}function i(t,e){return t.classList?void t.classList.add(e):void(r(e).test(t.className)||(t.className+=" "+e))}function o(t,e){return t.classList?void t.classList.remove(e):void(t.className=t.className.replace(r(e)," "))}function s(t,e){return t.classList?t.classList.contains(e):u.contains(a(t),e)}function a(t){return u.toRealArray(t.classList||t.className.match(c))}var u=n(12),c=/\b([\w-_]+)\b/g;t.exports={add:i,remove:o,replace:function(t,e,n){return t.classList&&s(t,e)?(o(t,e),void i(t,n)):void(t.className=t.className.replace(r(e),n))},toggle:function(t,e,n){return void 0===n&&t.classList&&t.classList.toggle?t.classList.toggle(e,n):((n?i:o)(t,e),n)},present:s,list:a}},function(t,e,n){var i=n(12);t.exports={closest:function o(t,e,n){var r;if(e)return n=n||e&&e.ownerDocument,t=i.isType("function",t)?t:"."===(t=(r=t).charAt(0))?function(t){return t=t.className?t.className.split(/\s+/):[],i.contains(t,r.slice(1))}:"#"===t?function(t){return t.id===r.slice(1)}:function(t){return t.tagName===r.toUpperCase()},e===n?t(e)?e:void 0:t(e)?e:o(t,e.parentNode,n)}}},function(t,e,n){function r(t){this.srcEl=[],this.element=t}var i=n(24),o=n(27),s=n(30),a=n(25),u={favorite:["favorite","like"],follow:["follow"],like:["favorite","like"],retweet:["retweet"],tweet:["tweet"]};r.open=function(e,n,t){var r=(i.intentType(e)||"").toLowerCase();i.isTwitterURL(e)&&(o.open(e,{},t),n&&s.trigger("click",{target:n,region:"intent",type:"click",data:{}}),n&&u[r]&&u[r].forEach(function(t){s.trigger(t,{target:n,region:"intent",type:t,data:function(t,e){var n=a.decodeURL(e);switch(t){case"favorite":case"like":return{tweet_id:n.tweet_id};case"follow":return{screen_name:n.screen_name,user_id:n.user_id};case"retweet":return{source_tweet_id:n.tweet_id};default:return{}}}(r,e)})}))},t.exports=r},function(t,e,n){function r(t){return"string"==typeof t&&c.test(t)&&RegExp.$1.length<=20}function i(t){if(r(t))return RegExp.$1}function o(t,e){var n=u.decodeURL(t);if(e=e||!1,n.screen_name=i(t),n.screen_name)return u.url("https://twitter.com/intent/"+(e?"follow":"user"),n)}function s(t){return"string"==typeof t&&h.test(t)}function a(t){return"string"==typeof t&&d.test(t)}var u=n(25),c=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?(?:\/intent\/(?:follow|user)\/?\?screen_name=|(?:\/#!)?\/))@?([\w]+)(?:\?|&|$)/i,d=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?\/(?:#!\/)?[\w_]+\/status(?:es)?\/)(\d+)/i,l=/^http(s?):\/\/(\w+\.)*twitter\.com([:\/]|$)/i,f=/^http(s?):\/\/pbs\.twimg\.com\//,h=/^#?([^.,<>!\s\/#\-()'"]+)$/,p=/twitter\.com(?::\d{2,4})?\/intent\/(\w+)/,m=/^https?:\/\/(?:www\.)?twitter\.com\/\w+\/timelines\/(\d+)/i,v=/^https?:\/\/(?:www\.)?twitter\.com\/i\/moments\/(\d+)/i,g=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/(?:likes|favorites)/i,w=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/lists\/([\w-]+)/i,y=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/([\w-]+)/i,b=/^https?:\/\/(?:www\.)?twitter\.com\/hashtag\/([\w-]+)/i,_=/^https?:\/\/(?:www\.)?twitter\.com\/search/i,E=/^https?:\/\/(?:www\.)?twitter\.com\/i\/live\/(\d+)/i,x=/^https?:\/\/syndication\.twitter\.com\/settings/i,A=/^https?:\/\/(localhost|platform)\.twitter\.com(?::\d+)?\/widgets\/widget_iframe\.(.+)/i;t.exports={isHashTag:s,hashTag:function(t,e){if(e=void 0===e||e,s(t))return(e?"#":"")+RegExp.$1},isSearchUrl:function(t){return b.test(t)||_.test(t)},isScreenName:r,screenName:i,isStatus:a,status:function(t){return a(t)&&RegExp.$1},intentForProfileURL:o,intentForFollowURL:function(t){return o(t,!0)},isTwitterURL:function(t){return l.test(t)},isTwimgURL:function(t){return f.test(t)},isIntentURL:function(t){return p.test(t)},isSettingsURL:function(t){return x.test(t)},isWidgetIframeURL:function(t){return A.test(t)},regexen:{profile:c},momentId:function(t){return v.test(t)&&RegExp.$1},collectionId:function(t){return m.test(t)&&RegExp.$1},intentType:function(t){return p.test(t)&&RegExp.$1},likesScreenName:function(t){return g.test(t)&&RegExp.$1},listScreenNameAndSlug:function(t){return!!w.test(t)&&{ownerScreenName:RegExp.$1,slug:RegExp.$2}},listLegacyScreenNameAndSlug:function(t){return!!y.test(t)&&{ownerScreenName:RegExp.$1,slug:RegExp.$2}},eventId:function(t){return E.test(t)&&RegExp.$1}}},function(t,e,n){function i(t){return encodeURIComponent(t).replace(/\+/g,"%2B").replace(/'/g,"%27")}function o(t){return decodeURIComponent(t)}function r(t){var r=[];return u.forIn(t,function(t,e){var n=i(t);(e=u.isType("array",e)?e:[e]).forEach(function(t){a.hasValue(t)&&r.push(n+"="+i(t))})}),r.sort().join("&")}function s(t){var r={};return t?(t.split("&").forEach(function(t){var t=t.split("="),e=o(t[0]),n=o(t[1]);if(2==t.length)return u.isType("array",r[e])?void r[e].push(n):e in r?(r[e]=[r[e]],void r[e].push(n)):void(r[e]=n)}),r):{}}var a=n(26),u=n(12);t.exports={url:function(t,e){return 0<r(e).length?u.contains(t,"?")?t+"&"+r(e):t+"?"+r(e):t},decodeURL:function(t){return 2==(t=t&&t.split("?")).length?s(t[1]):{}},decode:s,encode:r,encodePart:i,decodePart:o}},function(t,e,n){function r(t){return null!=t&&""!==t}function i(t){return s(t)&&t%1==0}function o(t){return s(t)&&!i(t)}function s(t){return r(t)&&!isNaN(t)}function a(t){return c.contains(l,t)}function u(t){return c.contains(d,t)}var c=n(12),d=[!0,1,"1","on","ON","true","TRUE","yes","YES"],l=[!1,0,"0","off","OFF","false","FALSE","no","NO"];t.exports={hasValue:r,isInt:i,isFloat:o,isNumber:s,isString:function(t){return"string"===c.toType(t)},isArray:function(t){return r(t)&&"array"==c.toType(t)},isTruthValue:u,isFalseValue:a,asInt:function(t){if(i(t))return parseInt(t,10)},asFloat:function(t){if(o(t))return t},asNumber:function(t){if(s(t))return t},asBoolean:function(t){return!(!r(t)||!u(t)&&(a(t)||!t))}}},function(t,e,n){function o(t,e){function n(t){return Math.round(t/2)}return e<t?{coordinate:0,size:e}:{coordinate:n(e)-n(t),size:t}}function r(t,e,n){var r,i=o((e=m.parse(e)).width,(n=n||{}).width||h);e.left=i.coordinate,e.width=i.size,i=o(e.height,n.height||p),e.top=i.coordinate,e.height=i.size,this.win=t,this.features=(n=e,r=[],f.forIn(n,function(t,e){r.push(t+"="+e)}),r.join(","))}var i=n(7),s=n(28),a=n(20),u=n(22),c=n(8),d=n(24),l=n(29),f=n(12),h=i.screen.width,p=i.screen.height,m=(new s).defaults({width:550,height:520,personalbar:"0",toolbar:"0",location:"1",scrollbars:"1",resizable:"1"});r.prototype.open=function(t,e){var n=e&&"click"==e.type&&u.closest("a",e.target),r=e&&(e.altKey||e.metaKey||e.shiftKey),n=n&&(c.ios()||c.android());if(d.isTwitterURL(t))return r||n||(this.name="intent_"+l.generate(),this.popup=this.win.open(t,this.name,this.features),e&&a.preventDefault(e)),this},r.open=function(t,e,n){return new r(i,e).open(t,n)},t.exports=r},function(t,e,n){function r(){this.assertions=[],this._defaults={}}var i=n(26),o=n(12);r.prototype.assert=function(t,e){return this.assertions.push({fn:t,msg:e||"assertion failed"}),this},r.prototype.defaults=function(t){return this._defaults=t||this._defaults,this},r.prototype.require=function(t){var n=this;return(t=Array.isArray(t)?t:o.toRealArray(arguments)).forEach(function(t){var e;n.assert(function(t){return i.hasValue(t[e])},"required: "+(e=t))}),this},r.prototype.parse=function(t){var n=o.aug({},this._defaults,t||{}),t=this.assertions.reduce(function(t,e){return e.fn(n)||t.push(e.msg),t},[]);if(0<t.length)throw new Error(t.join("\n"));return n},t.exports=r},function(t,e){var n=0,r=0;t.exports={generate:function(){return"i"+String(+new Date)+Math.floor(1e5*Math.random())+n++},deterministic:function(){return"i"+String(r++)}}},function(t,e,n){var r=n(16),i=n(31),n=n(12);t.exports=n.aug(r.get("events")||{},i.Emitter)},function(t,e,n){var r=n(12),i=n(15),o={bind:function(t,e){return this._handlers=this._handlers||{},this._handlers[t]=this._handlers[t]||[],this._handlers[t].push(e)},unbind:function(t,e){this._handlers&&this._handlers[t]&&(e?0<=(e=this._handlers[t].indexOf(e))&&this._handlers[t].splice(e,1):this._handlers[t]=[])},trigger:function(t,e){var n=this._handlers&&this._handlers[t];(e=e||{}).type=t,n&&n.forEach(function(t){r["async"](i(t,this,e))})}};t.exports={Emitter:o,makeEmitter:function(){return r.aug(function(){},o)}}},function(t,e,n){function r(){var t=c.val("widgets:autoload")||!0;return!h.isFalseValue(t)&&(h.isTruthValue(t)?o.body:o.querySelectorAll(t))}function i(t){return t=(t=t||o.body).length?p.toRealArray(t):[t],l.pause(),t=a.allResolved(t.reduce(function(t,n){return t.concat(v.reduce(function(t,e){return t.concat(e(n))},[]))},[]).map(function(t){return u.addWidget(t)})).then(function(t){f.trigger("loaded",{widgets:t}),g.emitter.trigger(g.ALL_WIDGETS_RENDERED,{widgets:t})}),a.always(t,function(){l.resume()}),t}var o=n(9),s=n(2),a=n(33),u=n(34),c=n(41),d=n(18),l=n(42),f=n(30),h=n(26),p=n(12),m=n(73),v=n(78),g=n(241);t.exports={load:i,loadPage:function(){var t=r();return m.load(),!1===t?s.resolve():(d.set("widgets.loaded",!0),i(t))},_getPageLoadTarget:r}},function(t,e,n){function r(t,e){return t.then(e,e)}function u(t){return t instanceof o}var o=n(2),i=n(1);t.exports={always:r,allResolved:function(s){var a;return void 0===s?o.reject(new Error("undefined is not an object")):Array.isArray(s)?(a=s.length)?new o(function(t,e){function n(){(i+=1)===a&&(0===o.length?e():t(o))}function r(t){o.push(t),n()}var i=0,o=[];s.forEach(function(t){u(t)?t.then(r,n):r(t)})}):o.resolve([]):o.reject(new Error("Type error"))},some:function(i){var t=(i=i||[]).length;return i=i.filter(u),t?t!==i.length?o.reject("non-Promise passed to .some"):new o(function(e,t){function n(){(r+=1)===i.length&&t()}var r=0;i.forEach(function(t){t.then(e,n)})}):o.reject("no promises passed to .some")},isPromise:u,allSettled:function(t){function e(){}return o.all((t||[]).map(function(t){return r(t,e)}))},timeout:function(t,e){var n=new i;return setTimeout(function(){n.reject(new Error("Promise timed out"))},e),t.then(function(t){n.resolve(t)},function(t){n.reject(t)}),n.promise}}},function(t,e,n){var r=n(35),i=n(39),o=n(2),s=n(33),a=n(15),u=n(12),c=new i(function(t){t=t.map(r.fromRawTask).reduce(function(t,e){return t[e.className]=t[e.className]||[],t[e.className].push(e),t},{}),u.forIn(t,function(t,e){s.allSettled(e.map(function(t){return t.initialize()})).then(function(){e.forEach(function(t){o.all([t.hydrate(),t.insertIntoDom()]).then(a(t.render,t)).then(a(t.success,t),a(t.fail,t))})})})});t.exports={addWidget:function(t){return c.add(t)}}},function(t,e,n){function r(r,t){this._widget=null,this._sandbox=null,this._hydrated=!1,this._insertedIntoDom=!1,this._Sandbox=r.Sandbox,this._factory=r.factory,this._widgetParams=r.parameters,this._resolve=t,this._className=r.className,this._renderedClassName=r.className+"-rendered",this._errorClassName=r.className+"-error",this._srcEl=r.srcEl,this._targetGlobal=((t=r).srcEl||t.targetEl).ownerDocument.defaultView,this._insertionStrategy=function(t){var e=r.srcEl,n=r.targetEl;e?n.insertBefore(t,e):n.appendChild(t)}}var i=n(21),o=n(36),s=n(30),a=n(38),u=n(2),c=n(33);r.fromRawTask=function(t){return new r(t.input,t.taskDoneDeferred.resolve)},r.prototype.initialize=function(){var e=this,n=new this._Sandbox(this._targetGlobal);return this._factory(this._widgetParams,n).then(function(t){return e._widget=t,e._sandbox=n,t})},r.prototype.insertIntoDom=function(){var t=this;return this._widget?this._sandbox.insert(this._widget.id,{"class":[this._className,this._renderedClassName].join(" ")},null,this._insertionStrategy).then(function(){t._insertedIntoDom=!0}):u.reject(new Error("cannot insert widget into DOM before it is initialized"))},r.prototype.hydrate=function(){var t=this;return this._widget?this._widget.hydrate().then(function(){t._hydrated=!0}):u.reject(new Error("cannot hydrate widget before it is initialized"))},r.prototype.render=function(){function t(t){return a(e._sandbox.sandboxEl).then(function(){return u.reject(t)})}var e=this;return this._hydrated?this._insertedIntoDom?e._widget.render(e._sandbox).then(function(){return e._sandbox.onResize(function(){return e._widget.resize().then(function(){s.trigger("resize",{target:e._sandbox.sandboxEl})})}),e._widget.show()}).then(function(){return a(e._srcEl).then(function(){return e._sandbox.sandboxEl})},t):t(new Error("cannot render widget before DOM insertion")):t(new Error("cannot render widget before hydration"))},r.prototype.fail=function(){var t=this;return this._srcEl?c.always(o.write(function(){i.add(t._srcEl,t._errorClassName)}),function(){s.trigger("rendered",{target:t._srcEl}),t._resolve(t._srcEl)}):(t._resolve(),u.resolve())},r.prototype.success=function(){s.trigger("rendered",{target:this._sandbox.sandboxEl}),this._resolve(this._sandbox.sandboxEl)},t.exports=r},function(t,e,n){function i(t,e){return function(){try{e.resolve(t.call(this))}catch(t){e.reject(t)}}}var o=n(37),s=n(1),a=n(12);t.exports={sync:function(t,e){t.call(e)},read:function(t,e){var n=new s;return o.read(i(t,n),e),n.promise},write:function(t,e){var n=new s;return o.write(i(t,n),e),n.promise},defer:function(t,e,n){var r=new s;return a.isType("function",t)&&(n=e,e=t,t=1),o.defer(t,i(e,r),n),r.promise}}},function(r,i,o){var s;!function(){"use strict";function t(){this.frames=[],this.lastId=0,this.raf=e,this.batch={hash:{},read:[],write:[],mode:null}}var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},n=(t.prototype.read=function(t,e){t=this.add("read",t,e),e=t.id;return this.batch.read.push(t.id),"reading"===this.batch.mode||this.batch.scheduled||this.scheduleBatch(),e},t.prototype.write=function(t,e){var t=this.add("write",t,e),e=this.batch.mode,n=t.id;return this.batch.write.push(t.id),"writing"===e||"reading"===e||this.batch.scheduled||this.scheduleBatch(),n},t.prototype.defer=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=1);var r=this;return this.schedule(t-1,function(){r.run({fn:e,ctx:n})})},t.prototype.clear=function(t){if("function"==typeof t)return this.clearFrame(t);t=Number(t);var e,n=this.batch.hash[t];n&&(e=(n=this.batch[n.type]).indexOf(t),delete this.batch.hash[t],~e&&n.splice(e,1))},t.prototype.clearFrame=function(t){t=this.frames.indexOf(t);~t&&this.frames.splice(t,1)},t.prototype.scheduleBatch=function(){var t=this;this.schedule(0,function(){t.batch.scheduled=!1,t.runBatch()}),this.batch.scheduled=!0},t.prototype.uniqueId=function(){return++this.lastId},t.prototype.flush=function(t){for(var e;e=t.shift();)this.run(this.batch.hash[e])},t.prototype.runBatch=function(){try{this.batch.mode="reading",this.flush(this.batch.read),this.batch.mode="writing",this.flush(this.batch.write),this.batch.mode=null}catch(r){throw this.runBatch(),r}},t.prototype.add=function(t,e,n){var r=this.uniqueId();return this.batch.hash[r]={id:r,fn:e,ctx:n,type:t}},t.prototype.run=function(t){var e=t.ctx||this,n=t.fn;if(delete this.batch.hash[t.id],!this.onError)return n.call(e);try{n.call(e)}catch(t){this.onError(t)}},t.prototype.loop=function(){function e(){var t=n.frames.shift();n.frames.length?r(e):n.looping=!1,t&&t()}var t,n=this,r=this.raf,i=!1;this.looping||(t=setTimeout(function(){i=!0,e()},500),r(function(){i||(clearTimeout(t),e())}),this.looping=!0)},t.prototype.schedule=function(t,e){return this.frames[t]?this.schedule(t+1,e):(this.loop(),this.frames[t]=e)},new t);void 0!==r&&r.exports?r.exports=n:void 0!==(s=function(){return n}.call(i,o,i,r))&&(r.exports=s)}()},function(t,e,n){var r=n(36);t.exports=function(t){return r.write(function(){t&&t.parentNode&&t.parentNode.removeChild(t)})}},function(e,t,n){function r(t){this._inputsQueue=[],this._task=t,this._hasFlushBeenScheduled=!1}var i=n(1),o=n(40),s=n(15);r.prototype.add=function(t){var e=new i;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._hasFlushBeenScheduled||(this._hasFlushBeenScheduled=!0,o(s(this._flush,this))),e.promise},r.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(e){this._inputsQueue.forEach(function(t){t.taskDoneDeferred.reject(e)})}this._inputsQueue=[],this._hasFlushBeenScheduled=!1},e.exports=r},function(t,e,n){n=n(3).Promise;t.exports=n._asap},function(t,e,n){function r(t){var e,n,r,i=0;for(o={},e=(t=t||s).getElementsByTagName("meta");e[i];i++){if(n=e[i],/^twitter:/.test(n.getAttribute("name")))r=n.getAttribute("name").replace(/^twitter:/,"");else{if(!/^twitter:/.test(n.getAttribute("property")))continue;r=n.getAttribute("property").replace(/^twitter:/,"")}o[r]=n.getAttribute("content")||n.getAttribute("value")}}var o,s=n(9);r(),t.exports={init:r,val:function(t){return o[t]}}},function(t,e,n){function r(t){t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,i=t.input.version;s.clientEvent(e,n,r,i),t.taskDoneDeferred.resolve()})}var i=n(43),o=n(44),s=n(71),a=n(50),u=new(n(72))(function(t){var e;if(0!==t.length){if(1===t.length)return r(t);e=(t=i(t,function(t){return a.noticeSeen(t.input.namespace)}))["true"],t=t["false"],e&&0<e.length&&r(e.slice(0,1)),t&&(1===t.length?r:function(t){o.init(),t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,t=t.input.version;o.clientEvent(e,n,r,t)}),o.flush().then(function(){t.forEach(function(t){t.taskDoneDeferred.resolve()})},function(){t.forEach(function(t){t.taskDoneDeferred.reject()})})})(t)}});t.exports={scribe:function(t,e,n,r){return u.add({namespace:t,data:e,offsite:n,version:r})},pause:function(){u.pause()},resume:function(){u.resume()}}},function(t,e){t.exports=function(t,r){return t.reduce(function(t,e){var n=r(e);return t[n]=t[n]||[],t[n].push(e),t},{})}},function(t,e,n){function r(){var t=a.createElement("form"),e=a.createElement("input"),n=a.createElement("input");return b++,t.action=p.CLIENT_EVENT_ENDPOINT,t.method="POST",t.target=w+b,t.id=y+b,e.type="hidden",e.name="dnt",e.value=l.enabled(),n.type="hidden",n.name="tfw_redirect",n.value=p.RUFOUS_REDIRECT,t.appendChild(e),t.appendChild(n),t}function i(){var t=w+b;return d({id:t,name:t,width:0,height:0,border:0},{display:"none"},a.doc)}var s,o,a,u=n(9),c=n(7),d=n(45),l=n(46),f=n(1),h=n(2),p=n(50),m=n(12),v=n(53),g=n(18).get("scribeCallback"),n=Math.floor(1e3*Math.random())+"_",w="rufous-frame-"+n+"-",y="rufous-form-"+n+"-",b=0,_=!1,E=new f;t.exports={clientEvent:function(n,r,i,o){var t,e;t=n,e=r,t=!m.isObject(t),e=!!e&&!m.isObject(e),t||e||(g&&g(arguments),E.promise.then(function(){var t,e;t=p.formatClientEventNamespace(n),e=p.formatClientEventData(r,i,o),m.isObject(t)&&m.isObject(e)&&(t=p.flattenClientEventPayload(t,e),(e=s.firstChild).value=+(+e.value||t.dnt||0),(e=a.createElement("input")).type="hidden",e.name="l",e.value=p.stringify(t),s.appendChild(e))}))},flush:function(){return E.promise.then(function(){var t;return s.children.length<=2?h.reject():(t=h.all([a.doc.body.appendChild(s),a.doc.body.appendChild(o)]).then(function(t){var r=t[0],i=t[1];return i.addEventListener("load",function(){e=i;var t,e,n=(t=r).parentNode;n&&(n.removeChild(t),n.removeChild(e))}),r.submit(),t}),s=r(),o=i(),t)})},init:function(){return _||((a=new v(c)).insert("rufous-sandbox",null,{display:"none"},function(t){u.body.appendChild(t)}).then(function(){a.setTitle("Twitter analytics iframe"),s=r(),o=i(),E.resolve([s,o])}),_=!0),E.promise}}},function(t,e,n){var i=n(9),o=n(12);t.exports=function(t,e,n){var r;if(n=n||i,e=e||{},(t=t||{}).name){try{r=n.createElement('<iframe name="'+t.name+'"></iframe>')}catch(e){(r=n.createElement("iframe")).name=t.name}delete t.name}else r=n.createElement("iframe");return t.id&&(r.id=t.id,delete t.id),r.allowtransparency="true",r.scrolling="no",r.setAttribute("frameBorder",0),r.setAttribute("allowTransparency",!0),o.forIn(t,function(t,e){r.setAttribute(t,e)}),o.forIn(e,function(t,e){r.style[t]=e}),r}},function(t,e,n){var r=n(9),i=n(11),o=n(47),s=n(49),a=n(26),u=n(41),c=!1,d=/https?:\/\/([^\/]+).*/i;t.exports={setOn:function(){c=!0},enabled:function(t,e){return!!(c||a.asBoolean(u.val("dnt"))||s.isUrlSensitive(e||i.host)||o.isFramed()&&s.isUrlSensitive(o.rootDocumentLocation())||(t=d.test(t||r.referrer)&&RegExp.$1)&&s.isUrlSensitive(t))}}},function(t,e,n){var r=n(11),i=n(48),o=n(12),s=i.getCanonicalURL()||r.href,a=s;t.exports={isFramed:function(){return s!==a},rootDocumentLocation:function(t){return s=t&&o.isType("string",t)?t:s},currentDocumentLocation:function(){return a}}},function(t,e,n){function r(t,e){var n,r;return e=e||i,/^https?:\/\//.test(t)?t:/^\/\//.test(t)?e.protocol+t:(n=e.host+(e.port.length?":"+e.port:""),0!==t.indexOf("/")&&((r=e.pathname.split("/")).pop(),r.push(t),t="/"+r.join("/")),[e.protocol,"//",n,t].join(""))}var s=n(9),i=n(11),a=n(24);t.exports={absolutize:r,getCanonicalURL:function(){for(var t,e=s.getElementsByTagName("link"),n=0;e[n];n++)if("canonical"==(t=e[n]).rel)return r(t.href)},getScreenNameFromPage:function(){for(var t,e,n=[s.getElementsByTagName("a"),s.getElementsByTagName("link")],r=0,i=0,o=/\bme\b/;t=n[r];r++)for(i=0;e=t[i];i++)if(o.test(e.rel)&&(e=a.screenName(e.href)))return e}}},function(t,e,n){function r(t){return t in s?s[t]:s[t]=o.test(t)}var i=n(11),o=/^[^#?]*\.(gov|mil)(:\d+)?([#?].*)?$/i,s={};t.exports={isUrlSensitive:r,isHostPageSensitive:function(){return r(i.host)}}},function(t,e,n){function r(t){return u.aug({client:"tfw"},t||{})}function i(t,e,n){return u.aug({},e=e||{},{_category_:t,triggered_on:e.triggered_on||+new Date,dnt:a.enabled(n)})}var o=n(9),s=n(51),a=n(46),u=n(12),c=n(52),d=n(18),l=n(24),f=c.version,n=d.get("clientEventEndpoint")||"https://syndication.twitter.com/i/jot";t.exports={extractTermsFromDOM:function h(t,n){var e;return n=n||{},t&&t.nodeType===Node.ELEMENT_NODE?((e=t.getAttribute("data-scribe"))&&e.split(" ").forEach(function(t){var e=(t=t.trim().split(":"))[0],t=t[1];e&&t&&!n[e]&&(n[e]=t)}),h(t.parentNode,n)):n},clickEventElement:function(t){return(t=t.getAttribute("data-expanded-url"))&&l.isTwitterURL(t)?"twitter_url":"url"},flattenClientEventPayload:function(t,e){return u.aug({},e,{event_namespace:t})},formatGenericEventData:i,formatClientEventData:function(t,e,n){var r=t&&t.widget_origin||o.referrer;return(t=i("tfw_client_event",t,r)).client_version=f,t.format_version=void 0!==n?n:1,e||(t.widget_origin=r),t},formatClientEventNamespace:r,formatTweetAssociation:function(t,e){var n={};return(e=e||{}).association_namespace=r(t),n[1]=e,n},noticeSeen:function(t){return"notice"===t.element&&"seen"===t.action},splitLogEntry:function(e){var t,n,r,i;return e.item_ids&&1<e.item_ids.length?(r=Math.floor(e.item_ids.length/2),t=e.item_ids.slice(0,r),n={},r=e.item_ids.slice(r),i={},t.forEach(function(t){n[t]=e.item_details[t]}),r.forEach(function(t){i[t]=e.item_details[t]}),[u.aug({},e,{item_ids:t,item_details:n}),u.aug({},e,{item_ids:r,item_details:i})]):[e]},stringify:function(t){var e=Array.prototype.toJSON;return delete Array.prototype.toJSON,t=s.stringify(t),e&&(Array.prototype.toJSON=e),t},AUDIENCE_ENDPOINT:"https://syndication.twitter.com/i/jot/syndication",CLIENT_EVENT_ENDPOINT:n,RUFOUS_REDIRECT:"https://platform.twitter.com/jot.html"}},function(t,e,n){n=n(7).JSON;t.exports={stringify:n.stringify||n.encode,parse:n.parse||n.decode}},function(t,e){t.exports={version:"c419f42:1520970215484"}},function(t,e,n){var r=n(54),n=n(63);t.exports=r.build([n])},function(t,e,n){var r=n(55),i=n(58),n=n(15);(r=Object.create(r)).build=n(r.build,null,i),t.exports=r},function(t,e,n){var i=n(56),o=n(57),r=n(12);t.exports={couple:function(){return r.toRealArray(arguments)},build:function(t,e,n){var r=new t;return(e=o(i(e||[]))).forEach(function(t){t.call(null,r)}),r.build(n)}}},function(t,e,n){var r=n(12);t.exports=function i(t){var e=[];return t.forEach(function(t){t=r.isType("array",t)?i(t):[t],e=e.concat(t)}),e}},function(t,e){t.exports=function(n){return n.filter(function(t,e){return n.indexOf(t)===e})}},function(t,e,n){function r(){i.apply(this,arguments)}var i=n(59),o=n(12),n=n(62);r.prototype=Object.create(i.prototype),o.aug(r.prototype,{factory:n}),t.exports=r},function(t,e,n){function r(){this.Component=this.factory(),this._adviceArgs=[],this._lastArgs=[]}var i=n(60),o=n(12),n=n(61);o.aug(r.prototype,{factory:n,build:function(t){var e=this;return this.Component,o.aug(this.Component.prototype.boundParams,t),this._adviceArgs.concat(this._lastArgs).forEach(function(t){!function(t,e,n){var r=this[e];if(!r)throw new Error(e+" does not exist");this[e]=t(r,n)}.apply(e.Component.prototype,t)}),delete this._lastArgs,delete this._adviceArgs,this.Component},params:function(t){var e=this.Component.prototype.paramConfigs;this.Component.prototype.paramConfigs=o.aug({},t=t||{},e)},define:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.override(t,e)},defineStatic:function(t,e){this.Component[t]=e},override:function(t,e){this.Component.prototype[t]=e},defineProperty:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.overrideProperty(t,e)},overrideProperty:function(t,e){e=o.aug({configurable:!0},e);Object.defineProperty(this.Component.prototype,t,e)},before:function(t,e){this._adviceArgs.push([i.before,t,e])},after:function(t,e){this._adviceArgs.push([i.after,t,e])},around:function(t,e){this._adviceArgs.push([i.around,t,e])},last:function(t,e){this._lastArgs.push([i.after,t,e])}}),t.exports=r},function(t,e,n){var s=n(33),r=n(12),i=n(15);t.exports={before:function(r,i){return function(){var t=this,e=arguments,n=i.apply(this,arguments);return s.isPromise(n)?n.then(function(){return r.apply(t,e)}):r.apply(this,arguments)}},after:function(i,o){return function(){function e(t,e){return s.isPromise(e)?e.then(function(){return t}):t}var n=this,r=arguments,t=i.apply(this,arguments);return s.isPromise(t)?t.then(function(t){return e(t,o.apply(n,r))}):e(t,o.apply(this,arguments))}},around:function(e,n){return function(){var t=r.toRealArray(arguments);return t.unshift(i(e,this)),n.apply(this,t)}}}},function(t,e,n){function f(){return!0}function h(t){return t}var p=n(12);t.exports=function(){function t(d){var l=this;d=d||{},this.params=Object.keys(this.paramConfigs).reduce(function(t,e){var n,r,i,o=[],s=l.boundParams,a=l.paramConfigs[e],u=a.validate||f,c=a.transform||h;if(e in s&&o.push(s[e]),e in d&&o.push(d[e]),o="fallback"in a?o.concat(a.fallback):o,t[e]=(n=u,r=c,i=null,o.some(function(t){if(t=p.isType("function",t)?t():t,n(t))return i=r(t),!0}),i),a.required&&null==t[e])throw new Error(e+" is a required parameter");return t},{}),this.initialize()}return p.aug(t.prototype,{paramConfigs:{},boundParams:{},initialize:function(){}}),t}},function(t,e,n){var r=n(21),i=n(36),o=n(61),s=n(2),a=n(12);t.exports=function(){function t(t){e.apply(this,arguments),Object.defineProperty(this,"targetGlobal",{value:t})}var e=o();return t.prototype=Object.create(e.prototype),a.aug(t.prototype,{id:null,initialized:!1,width:0,height:0,sandboxEl:null,insert:function(){return s.reject()},onResize:function(){},addClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],i.write(function(){t.forEach(function(t){r.add(e,t)})})},removeClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],i.write(function(){t.forEach(function(t){r.remove(e,t)})})},styleSelf:function(t){var n=this;return i.write(function(){a.forIn(t,function(t,e){n.sandboxEl.style[t]=e})})}}),t}},function(t,e,n){function u(t,e,n,r){return e=w.aug({id:t},E,e),n=w.aug({},x,n),p(e,n,r)}function c(t){try{t.contentWindow.document}catch(t){return g.reject(t)}return g.resolve(t)}function d(t,e,n,r,i){var o=new v,s=b.generate(),a=u(t,e,n,i);return y.set(["sandbox",s],function(){var t=a.contentWindow.document;f.write(function(){t.write("<!DOCTYPE html><html><head></head><body></body></html>")}).then(function(){t.close(),o.resolve(a)})}),a.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+l.domain+'"; }',"window.parent."+y.fullPath(["sandbox",s])+"();"].join(""),a.addEventListener("error",o.reject,!1),f.write(function(){r.parentNode.replaceChild(a,r)}),o.promise}var l=n(9),r=n(21),f=n(36),i=n(64),o=n(54),s=n(65),a=n(66),h=n(67),p=n(45),m=(n(10),n(68)),v=n(1),g=n(2),w=n(12),y=n(18),b=n(29),_=n(15),E={allowfullscreen:"true"},x={position:"absolute",visibility:"hidden",display:"block",width:"0px",height:"0px",padding:"0",border:"none"},A={position:"static",visibility:"visible"};t.exports=o.couple(n(69),function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.win}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}}),t.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}}),t.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}}),t.defineProperty("doc",{get:function(){return this.win&&this.win.document}}),t.define("_updateCachedDimensions",function(){var n=this;return f.read(function(){var t,e=m(n.sandboxEl);"visible"==n.sandboxEl.style.visibility?n._width=e.width:(t=m(n.sandboxEl.parentElement).width,n._width=Math.min(e.width,t)),n._height=e.height})}),t.define("_setTargetToBlank",function(){var t=this.createElement("base");t.target="_blank",this.doc.head.appendChild(t)}),t.define("_didResize",function(){var e=this,t=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){t.forEach(function(t){t(e)})})}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.override("createElement",function(t){return this.doc.createElement(t)}),t.override("createFragment",function(){return this.doc.createDocumentFragment()}),t.override("htmlToElement",function(t){var e=this.createElement("div");return e.innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!i.getSelectedText(this.win)}),t.override("addRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?f.write(function(){t.forEach(function(t){r.add(e,t)})}):g.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?f.write(function(){t.forEach(function(t){r.remove(e,t)})}):g.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return r.present(this.rootEl,t)}),t.define("addStyleSheet",function(t,e){var n,r=new v;return this.initialized?((n=this.createElement("link")).type="text/css",n.rel="stylesheet",n.href=t,n.addEventListener("load",r.resolve,!1),n.addEventListener("error",r.reject,!1),f.write(_(e,null,n)).then(function(){return s(t).then(r.resolve,r.reject),r.promise})):g.reject(new Error("sandbox not initialized"))}),t.override("prependStyleSheet",function(t){var n=this.doc;return this.addStyleSheet(t,function(t){var e=n.head.firstElementChild;return e?n.head.insertBefore(t,e):n.head.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){return e.head.appendChild(t)})}),t.define("addCss",function(t,e){var n;return a.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.doc.createTextNode(t)),f.write(_(e,null,n))):g.resolve()}),t.override("prependCss",function(t){var n=this.doc;return this.addCss(t,function(t){var e=n.head.firstElementChild;return e?n.head.insertBefore(t,e):n.head.appendChild(t)})}),t.override("appendCss",function(t){var e=this.doc;return this.addCss(t,function(t){return e.head.appendChild(t)})}),t.override("makeVisible",function(){var t=this;return this.styleSelf(A).then(function(){t._updateCachedDimensions()})}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this.widgetEl?g.reject(new Error("widget already injected")):f.write(function(){e.doc.body.appendChild(t)}):g.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){var t,e=this;return f.read(function(){t=e.widgetEl?m(e.widgetEl).height:0}),f.write(function(){e.sandboxEl.style.height=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.override("matchWidthToContent",function(){var t,e=this;return f.read(function(){t=e.widgetEl?m(e.widgetEl).width:0}),f.write(function(){e.sandboxEl.style.width=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this,o=new v,s=this.targetGlobal.document,a=u(t,e,n,s);return f.write(_(r,null,a)),a.addEventListener("load",function(){c(a).then(null,_(d,null,t,e,n,a,s)).then(o.resolve,o.reject)},!1),a.addEventListener("error",o.reject,!1),o.promise.then(function(t){var e=h(i._didResize,50,i);return i._iframe=t,i.win.addEventListener("resize",e,!1),g.all([i._setTargetToBlank(),i.addRootClass("SandboxRoot"),i.prependCss(".SandboxRoot { display: none; }")])})}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e,n){function r(t){return(t=t||i).getSelection&&t.getSelection()}var i=n(7);t.exports={getSelection:r,getSelectedText:function(t){return(t=r(t))?t.toString():""}}},function(t,e,n){var r=n(9),i=n(7),o=n(1);t.exports=function(t){var e=new o,n=r.createElement("img");return n.onload=n.onerror=function(){i.setTimeout(e.resolve,50)},n.src=t,i.setTimeout(e.reject,2e4),e.promise}},function(t,e,n){var i,o=n(21),s=n(9),a=n(7),u=n(41),c=n(38),d=n(26),l=n(29),f="csptest";t.exports={inlineStyle:function(){var t=f+l.generate(),e=s.createElement("div"),n=s.createElement("style"),r="."+t+" { visibility: hidden; }";return!!s.body&&(void 0!==(i=d.asBoolean(u.val("widgets:csp"))?!1:i)||(e.style.display="none",o.add(e,t),n.type="text/css",n.appendChild(s.createTextNode(r)),s.body.appendChild(n),s.body.appendChild(e),i="hidden"===a.getComputedStyle(e).visibility,c(e),c(n)),i)}}},function(t,e,n){var c=n(7);t.exports=function(r,i,o){function s(){var t=o||this,e=arguments,n=+new Date;return c.clearTimeout(a),i<n-u?(u=n,void r.apply(t,e)):void(a=c.setTimeout(function(){s.apply(t,e)},i))}var a,u=0;return o=o||null,s}},function(t,e){t.exports=function(t){return{width:(t=t.getBoundingClientRect()).width,height:t.height}}},function(t,e,n){var r=n(70);t.exports=function(t){t.define("createElement",r),t.define("createFragment",r),t.define("htmlToElement",r),t.define("hasSelectedText",r),t.define("addRootClass",r),t.define("removeRootClass",r),t.define("hasRootClass",r),t.define("prependStyleSheet",r),t.define("appendStyleSheet",r),t.define("prependCss",r),t.define("appendCss",r),t.define("makeVisible",r),t.define("injectWidgetEl",r),t.define("matchHeightToContent",r),t.define("matchWidthToContent",r)}},function(t,e){t.exports=function(){throw new Error("unimplemented method")}},function(t,e,n){function i(t,e,n,r){var i=!f.isObject(t),o=!!e&&!f.isObject(e);i||o||(h&&h(arguments),s(l.formatClientEventNamespace(t),l.formatClientEventData(e,n,r),l.CLIENT_EVENT_ENDPOINT))}function s(t,e,n){var r;n&&f.isObject(t)&&f.isObject(e)&&(e=l.flattenClientEventPayload(t,e),r={l:l.stringify(e)},l.noticeSeen(t)&&(r.notice_seen=!0),e.dnt&&(r.dnt=1),o(d.url(n,r)))}function r(t,e,n,r){var i=!f.isObject(t),o=!!e&&!f.isObject(e);if(!i&&!o)return a(l.flattenClientEventPayload(l.formatClientEventNamespace(t),l.formatClientEventData(e,n,r)))}function a(t){return m.push(t),m}function u(t){return encodeURIComponent(t).length+3}function o(t){return(new Image).src=t}var c=n(46),d=n(25),l=n(50),f=n(12),h=n(18).get("scribeCallback"),p=2083,m=[],n=d.url(l.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),v=encodeURIComponent(n).length;t.exports={_enqueueRawObject:a,scribe:s,clientEvent:i,clientEvent2:function(t,e,n){return i(t,e,n,2)},enqueueClientEvent:r,flushClientEvents:function(){var s;return 1<m.length&&r({page:"widgets_js",component:"scribe_pixel",action:"batch_log"},{}),s=m,m=[],s.reduce(function(n,t,e){var r=n.length,i=r&&n[r-1];return e+1==s.length&&t.event_namespace&&"batch_log"==t.event_namespace.action&&(t.message=["entries:"+e,"requests:"+r].join("/")),function o(t){return Array.isArray(t)||(t=[t]),t.reduce(function(t,e){var n=l.stringify(e),r=u(n);return v+r<p?t=t.concat(n):1<(r=l.splitLogEntry(e)).length&&(t=t.concat(o(r))),t},[])}(t).forEach(function(t){var e=u(t);(!i||i.urlLength+e>p)&&(i={urlLength:v,items:[]},n.push(i)),i.urlLength+=e,i.items.push(t)}),n},[]).map(function(t){t={l:t.items};return c.enabled()&&(t.dnt=1),o(d.url(l.CLIENT_EVENT_ENDPOINT,t))})},interaction:function(t,e,n,r){(t=l.extractTermsFromDOM(t.target||t.srcElement)).action=r||"click",i(t,e,n)}}},function(e,t,n){function r(t,e){this._inputsQueue=[],this._task=t,this._isPaused=!1,this._flushDelay=e&&e.flushDelay||100,this._pauseLength=e&&e.pauseLength||3e3,this._flushTimeout=void 0}var i=n(1),o=n(15);r.prototype.add=function(t){var e=new i;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._scheduleFlush(),e.promise},r.prototype._scheduleFlush=function(){this._isPaused||(clearTimeout(this._flushTimeout),this._flushTimeout=setTimeout(o(this._flush,this),this._flushDelay))},r.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(e){this._inputsQueue.forEach(function(t){t.taskDoneDeferred.reject(e)})}this._inputsQueue=[],this._flushTimeout=void 0},r.prototype.pause=function(t){clearTimeout(this._flushTimeout),this._isPaused=!0,!t&&this._pauseLength&&setTimeout(o(this.resume,this),this._pauseLength)},r.prototype.resume=function(){this._isPaused=!1,this._scheduleFlush()},e.exports=r},function(t,e,n){function r(e){return o.settingsLoaded().then(function(t){return t[e]})}function i(){return r("experiments")}var o=n(74);t.exports={isBucketed:function(){return r("isBucketed")},shouldObtainCookieConsent:function(){return r("shouldObtainCookieConsent")},getExperiments:i,getExperiment:function(e){return i().then(function(t){if(t[e])return t[e];throw new Error("Experiment not found")})},getExperimentKeys:function(){return i().then(function(t){return Object.keys(t)})},load:function(){o.load()}}},function(t,e,n){function r(t){t=t||{is_bucketed:!1,should_obtain_cookie_consent:!0,experiments:{}};return new m(t.is_bucketed,t.should_obtain_cookie_consent,t.experiments)}var i,o=n(45),s=n(1),a=n(9),u=n(51),c=n(11),d=n(25),l=n(7),f=n(8),h=n(75),p=n(76),m=(n(10),n(77));t.exports={load:function(){var n,t;return i=new s,f.ie9()||f.ie10()||"http:"!==c.protocol&&"https:"!==c.protocol?void i.resolve(r()):(t={origin:c.origin},n=d.url(h.resourceBaseUrl+h.widgetIframeHtmlPath,t),l.addEventListener("message",function(t){var e;if(n.substr(0,t.origin.length)===t.origin)try{(e=u.parse(t.data)).namespace===p.settings&&i.resolve(r(e.settings))}catch(t){}}),t=o({src:n},{display:"none"}),void a.body.appendChild(t))},settingsLoaded:function(){var e=new s;return i.promise.then(function(t){e.resolve(t)})["catch"](function(t){e.reject(t)}),e.promise}}},function(t,e){t.exports={tweetButtonHtmlPath:"/widgets/tweet_button.f47a2e0b4471326b6fa0f163bda46011.{{lang}}.html",followButtonHtmlPath:"/widgets/follow_button.f47a2e0b4471326b6fa0f163bda46011.{{lang}}.html",hubHtmlPath:"/widgets/hub.html",widgetIframeHtmlPath:"/widgets/widget_iframe.f47a2e0b4471326b6fa0f163bda46011.html",resourceBaseUrl:"https://platform.twitter.com"}},function(t,e){t.exports={settings:"twttr.settings"}},function(t,e){t.exports=function(t,e,n){this.isBucketed=t,this.shouldObtainCookieConsent=e,this.experiments=n||{}}},function(t,e,n){t.exports=[n(79),n(112),n(127),n(162),n(173),n(179),n(224),n(243),n(248)]},function(t,e,n){var c=n(25),d=n(26),l=n(12),f=n(80),r=n(82)(),h=n(85);t.exports=function(t){return r(t,"a.twitter-dm-button").map(function(t){return h((n=(e=t).getAttribute("data-show-screen-name"),r=f(e),i=e.getAttribute("href"),o=e.getAttribute("data-screen-name"),n=n?d.asBoolean(n):null,s=e.getAttribute("data-size"),a=(i=c.decodeURL(i)).recipient_id,u=e.getAttribute("data-text")||i.text,e=e.getAttribute("data-welcome-message-id")||i.welcomeMessageId,l.aug(r,{screenName:o,showScreenName:n,size:s,text:u,userId:a,welcomeMessageId:e})),t.parentNode,t);var e,n,r,i,o,s,a,u})}},function(t,e,n){var i=n(46),o=n(26),s=n(25),a=n(12),u=n(81);t.exports=function(t){var r=(e=t.href&&t.href.split("?")[1])?s.decode(e):{},e={lang:u(t),width:t.getAttribute("data-width")||t.getAttribute("width"),height:t.getAttribute("data-height")||t.getAttribute("height"),related:t.getAttribute("data-related"),partner:t.getAttribute("data-partner")};return o.asBoolean(t.getAttribute("data-dnt"))&&i.setOn(),a.forIn(e,function(t,e){var n=r[t];r[t]=o.hasValue(n)?n:e}),a.compact(r)}},function(t,e,n){var r=n(12);t.exports=function i(t){var e;if(t)return e=t.lang||t.getAttribute("data-lang"),r.isType("string",e)?e:i(t.parentElement)}},function(t,e,n){var r=n(83),i=n(29);t.exports=function(){var n="data-twitter-extracted-"+i.generate();return function(t,e){return r(t,e).filter(function(t){return!t.hasAttribute(n)}).map(function(t){return t.setAttribute(n,"true"),t})}}},function(t,e,n){var r=n(12),i=n(84);t.exports=function(t,e){return i(t,e)?[t]:r.toRealArray(t.querySelectorAll(e))}},function(t,e,n){var n=n(7).HTMLElement,r=n.prototype.matches||n.prototype.matchesSelector||n.prototype.webkitMatchesSelector||n.prototype.mozMatchesSelector||n.prototype.msMatchesSelector||n.prototype.oMatchesSelector;t.exports=function(t,e){if(r)return r.call(t,e)}},function(t,e,n){var r=n(86),i=n(87),o=n(108);t.exports=function(t,e,n){return new r(i,o,"twitter-dm-button",t,e,n)}},function(t,e){function n(t,e,n,r,i,o){this.factory=t,this.Sandbox=e,this.srcEl=o,this.targetEl=i,this.parameters=r,this.className=n}n.prototype.destroy=function(){this.srcEl=this.targetEl=null},t.exports=n},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(1,function(t,e){var n;if(t)return o.reject(t);try{n=s(88),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,function(t,e,n){var r=n(55),i=n(90),n=n(15);(r=Object.create(r)).build=n(r.build,null,i),t.exports=r},function(t,e,n){function r(){i.apply(this,arguments),this.Widget=this.Component}var i=n(59),o=n(12),n=n(91);r.prototype=Object.create(i.prototype),o.aug(r.prototype,{factory:n,build:function(){return i.prototype.build.apply(this,arguments)},selectors:function(t){var e=this.Widget.prototype.selectors;this.Widget.prototype.selectors=o.aug({},t=t||{},e)}}),t.exports=r},function(t,e,n){var r=n(2),o=n(20),i=n(61),s=n(12),a=n(15),u=n(92);t.exports=function(){function t(t,e){n.apply(this,arguments),this.id="twitter-widget-"+u(),this.sandbox=e}var n=i();return t.prototype=Object.create(n.prototype),s.aug(t.prototype,{selectors:{},hydrate:function(){return r.resolve()},prepForInsertion:function(){},render:function(){return r.resolve()},show:function(){return r.resolve()},resize:function(){return r.resolve()},select:function(t,e){return 1===arguments.length&&(e=t,t=this.el),t?(e=this.selectors[e]||e,s.toRealArray(t.querySelectorAll(e))):[]},selectOne:function(){return this.select.apply(this,arguments)[0]},selectLast:function(){return this.select.apply(this,arguments).pop()},on:function(t,e,n){var r,i=this.el;this.el&&(t=(t||"").split(/\s+/),2===arguments.length?n=e:r=e,r=this.selectors[r]||r,n=a(n,this),t.forEach(r?function(t){o.delegate(i,t,r,n)}:function(t){i.addEventListener(t,n,!1)}))}}),t}},function(t,e){var n=0;t.exports=function(){return String(n++)}},,function(t,e,n){function r(t,e,n){return n="dark"===n?"dark":"light",e=i.isRtlLang(e)?"rtl":"ltr",t=[t,o.css,n,e,"css"].join("."),a.resourceBaseUrl+"/css/"+t}var i=n(95),o=n(98),s=n(15),a=n(75);t.exports={dmButton:function(){return a.resourceBaseUrl+"/css/"+["dm_button",o.css,"css"].join(".")},tweet:s(r,null,"tweet"),timeline:s(r,null,"timeline"),video:s(r,null,"video"),moment:s(r,null,"moment"),grid:s(r,null,"grid"),periscopeOnAir:function(){return a.resourceBaseUrl+"/css/"+["periscope_on_air",o.css,"css"].join(".")}}},function(t,e,n){var r=n(12),i=n(96),o=["ar","fa","he","ur"];t.exports={isRtlLang:function(t){return t=String(t).toLowerCase(),r.contains(o,t)},matchLanguage:function(t){return t=(t=(t||"").toLowerCase()).replace("_","-"),i(t)?t:(t=t.replace(/-.*/,""),i(t)?t:"en")}}},function(t,e,n){var r=n(12),i=n(97);t.exports=function(t){return"en"===t||r.contains(i,t)}},function(t,e){t.exports=["hi","zh-cn","fr","zh-tw","msa","fil","fi","sv","pl","ja","ko","de","it","pt","es","ru","id","tr","da","no","nl","hu","fa","ar","ur","he","th","cs","uk","vi","ro","bn","el","en-gb","gu","kn","mr","ta","bg","ca","hr","sr","sk"]},function(t,e){t.exports={css:"529166ecfeb05abf3ee5afe0a8c349a4"}},,function(t,e,n){var r=n(101),i=n(24),o="data-url-ref-attrs-injected";t.exports=function(t){t.define("injectRefUrlParams",function(t){t.getAttribute(o)||(t.setAttribute(o,!0),t.href=r(t.href))}),t.after("render",function(){this.on("click","A",function(t,e){i.isTwitterURL(e.href)&&this.injectRefUrlParams(e)})})}},function(t,e,n){var r=n(25),i=n(47);t.exports=function(t){return r.url(t,{ref_src:"twsrc^tfw",ref_url:i.rootDocumentLocation()})}},function(t,e,n){var r=n(42),i=n(50),o=n(47),s=n(12),a=n(15),u=n(41),c=n(26),d=n(103);t.exports=function(t){t.params({partner:{fallback:a(u.val,u,"partner")}}),t.define("scribeItems",function(){return{}}),t.define("scribeNamespace",function(){return{client:"tfw"}}),t.define("scribeData",function(){return{widget_origin:o.rootDocumentLocation(),widget_frame:o.isFramed()&&o.currentDocumentLocation(),widget_partner:this.params.partner,widget_site_screen_name:d(u.val("site")),widget_site_user_id:c.asNumber(u.val("site:id")),widget_creator_screen_name:d(u.val("creator")),widget_creator_user_id:c.asNumber(u.val("creator:id"))}}),t.define("scribe",function(t,e,n){t=s.aug(this.scribeNamespace(),t||{}),e=s.aug(this.scribeData(),e||{}),r.scribe(t,e,!1,n)}),t.define("scribeInteraction",function(t,e,n){var r=i.extractTermsFromDOM(t.target);r.action=t.type,"url"===r.element&&(r.element=i.clickEventElement(t.target)),this.scribe(r,e,n)})}},function(t,e){t.exports=function(t){return t&&"@"===t[0]?t.substr(1):t}},,function(t,e,n){var r=n(22),i=n(89),o=n(106);t.exports=i.couple(n(102),function(t){t.selectors({tweetIdInfo:".js-tweetIdInfo"}),t.define("scribeClickInteraction",function(t,e){e=r.closest(this.selectors.tweetIdInfo,e,this.el);this.scribeInteraction(t,function(t){if(t)return t=o([t]),{item_ids:Object.keys(t),item_details:t}}(e))}),t.after("render",function(){this.on("click","A",this.scribeClickInteraction),this.on("click","BUTTON",this.scribeClickInteraction)})})},function(t,e,n){var r=n(107);t.exports=function(t){return t?(t=Array.isArray(t)?t:[t]).reduce(function(t,e){var n=e.getAttribute("data-tweet-id"),e=e.getAttribute("data-rendered-tweet-id")||n;return n===e?t[e]={item_type:r.TWEET}:n&&(t[e]={item_type:r.RETWEET,target_type:r.TWEET,target_id:n}),t},{}):{}}},function(t,e){t.exports={TWEET:0,RETWEET:10,CUSTOM_TIMELINE:17,LIVE_VIDEO_EVENT:28}},function(t,e,n){var r=n(109),n=n(53);t.exports=r.isSupported()?r:n},function(t,e,n){var r=n(54),n=n(110);t.exports=r.build([n])},function(t,e,n){var r=n(111),i=n(7),o=n(21),a=n(20),u=n(36),s=n(64),c=n(54),d=n(65),l=n(66),f=n(8),h=n(68),p=n(15),m=n(67),v=n(2),g=n(12),w={position:"absolute",visibility:"hidden",display:"block",transform:"rotate(0deg)"},y={position:"static",visibility:"visible"};t.exports=c.couple(n(69),function(t){t.defineStatic("isSupported",function(){return!!i.HTMLElement.prototype.createShadowRoot&&l.inlineStyle()&&!f.android()}),t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this._shadowHost}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this._shadowHost}}),t.define("_updateCachedDimensions",function(){var n=this;return u.read(function(){var t,e=h(n.sandboxEl);"visible"==n.sandboxEl.style.visibility?n._width=e.width:(t=h(n.sandboxEl.parentElement).width,n._width=Math.min(e.width,t)),n._height=e.height})}),t.define("_didResize",function(){var e=this,t=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){t.forEach(function(t){t(e)})})}),t.override("createElement",function(t){return this.targetGlobal.document.createElement(t)}),t.override("createFragment",function(){return this.targetGlobal.document.createDocumentFragment()}),t.override("htmlToElement",function(t){var e=this.createElement("div");return e.innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!s.getSelectedText(this.targetGlobal)}),t.override("addRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?u.write(function(){t.forEach(function(t){o.add(e,t)})}):v.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?u.write(function(){t.forEach(function(t){o.remove(e,t)})}):v.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return o.present(this._shadowRootBody,t)}),t.override("addStyleSheet",function(t,e){return this.addCss('@import url("'+t+'");',e).then(function(){return d(t)})}),t.override("prependStyleSheet",function(t){var n=this._shadowRoot;return this.addStyleSheet(t,function(t){var e=n.firstElementChild;return e?n.insertBefore(t,e):n.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){return e.appendChild(t)})}),t.override("addCss",function(t,e){var n;return this.initialized?l.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.targetGlobal.document.createTextNode(t)),u.write(p(e,null,n))):v.resolve():v.reject(new Error("sandbox not initialized"))}),t.override("prependCss",function(t){var n=this._shadowRoot;return this.addCss(t,function(t){var e=n.firstElementChild;return e?n.insertBefore(t,e):n.appendChild(t)})}),t.override("appendCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){return e.appendChild(t)})}),t.override("makeVisible",function(){return this.styleSelf(y)}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this._shadowRootBody.firstElementChild?v.reject(new Error("widget already injected")):u.write(function(){e._shadowRootBody.appendChild(t)}).then(function(){return e._updateCachedDimensions()}).then(function(){var t=m(e._didResize,50,e);new r(e._shadowRootBody,t)}):v.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){return v.resolve()}),t.override("matchWidthToContent",function(){return v.resolve()}),t.override("insert",function(t,e,n,r){var i=this.targetGlobal.document,o=this._shadowHost=i.createElement("twitterwidget"),s=this._shadowRoot=o.createShadowRoot(),i=this._shadowRootBody=i.createElement("div");return g.forIn(e||{},function(t,e){o.setAttribute(t,e)}),o.id=t,s.appendChild(i),a.delegate(i,"click","A",function(t,e){e.hasAttribute("target")||e.setAttribute("target","_blank")}),v.all([this.styleSelf(w),this.addRootClass("SandboxRoot"),this.prependCss(".SandboxRoot { display: none; }"),u.write(r.bind(null,o))])}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("initialize",function(){this._shadowHost=this._shadowRoot=this._shadowRootBody=null,this._width=this._height=0,this._resizeHandlers=[]}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){var a;(a=function(n,t){function c(){var t,e;this.q=[],this.add=function(t){this.q.push(t)},this.call=function(){for(t=0,e=this.q.length;t<e;t++)this.q[t].call()}}function e(t,e){if(t.resizedAttached){if(t.resizedAttached)return t.resizedAttached.add(e)}else t.resizedAttached=new c,t.resizedAttached.add(e);t.resizeSensor=document.createElement("div"),t.resizeSensor.className="resize-sensor";var e="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",n="position: absolute; left: 0; top: 0; transition: 0s;";t.resizeSensor.style.cssText=e,t.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+e+'"><div style="'+n+'"></div></div><div class="resize-sensor-shrink" style="'+e+'"><div style="'+n+' width: 200%; height: 200%"></div></div>',t.appendChild(t.resizeSensor),{fixed:1,absolute:1}[e="position",(n=t).currentStyle?n.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(n,null).getPropertyValue(e):n.style[e]]||(t.style.position="relative");var r,i,o=t.resizeSensor.childNodes[0],s=o.childNodes[0],a=t.resizeSensor.childNodes[1],u=(a.childNodes[0],function(){s.style.width=o.offsetWidth+10+"px",s.style.height=o.offsetHeight+10+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,a.scrollLeft=a.scrollWidth,a.scrollTop=a.scrollHeight,r=t.offsetWidth,i=t.offsetHeight}),e=(u(),function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)}),n=function(){t.offsetWidth==r&&t.offsetHeight==i||t.resizedAttached&&t.resizedAttached.call(),u()};e(o,"scroll",n),e(a,"scroll",n)}var r=Object.prototype.toString.call(n),i="[object Array]"===r||"[object NodeList]"===r||"[object HTMLCollection]"===r||"undefined"!=typeof jQuery&&n instanceof jQuery||"undefined"!=typeof Elements&&n instanceof Elements;if(i)for(var o=0,s=n.length;o<s;o++)e(n[o],t);else e(n,t);this.detach=function(){if(i)for(var t=0,e=n.length;t<e;t++)a.detach(n[t]);else a.detach(n)}}).detach=function(t){t.resizeSensor&&(t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached)},void 0!==t&&"undefined"!=typeof t.exports?t.exports=a:window.ResizeSensor=a},function(t,e,n){var i=n(24),o=n(12),s=n(80),r=n(82)(),a=n(113),u=n(26);t.exports=function(t){return r(t,"a.twitter-follow-button").map(function(t){return a((r=s(e=t),e={screenName:i.screenName(e.href),showScreenName:"false"!==e.getAttribute("data-show-screen-name"),showCount:"false"!==e.getAttribute("data-show-count"),size:e.getAttribute("data-size"),count:e.getAttribute("data-count"),preview:e.getAttribute("data-preview")},o.forIn(e,function(t,e){var n=r[t];r[t]=u.hasValue(n)?n:e}),r.screenName=r.screenName||r.screen_name,r),t.parentNode,t);var e,r})}},function(t,e,n){var r=n(86),i=n(114),o=n(119);t.exports=function(t,e,n){return new r(i,o,"twitter-follow-button",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(2,function(t,e){var n;if(t)return o.reject(t);try{n=s(115),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var r=n(26),i=n(12);t.exports=function(t){t.define("widgetDataAttributes",function(){return{}}),t.define("setDataAttributes",function(){var n=this.sandbox.sandboxEl;i.forIn(this.widgetDataAttributes(),function(t,e){r.hasValue(e)&&n.setAttribute("data-"+t,e)})}),t.after("render",function(){this.setDataAttributes()})}},function(t,e,n){var r=n(54),n=n(120);t.exports=r.build([n])},function(t,e,n){var o=n(36),r=n(121),s=n(126),a=n(45),i=n(1),u=n(2),c=n(15),d=n(12),l={position:"absolute",visibility:"hidden",width:"0px",height:"0px"},f={position:"static",visibility:"visible"},h={};r(function(t,e,n){var r=h[t];if(r)return r.styleSelf({width:(e=e||1)+"px",height:(n=n||1)+"px"}).then(function(){r.didResize()})}),t.exports=function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.iframeEl}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.define("updateCachedDimensions",function(){var t=this;return this.initialized?o.read(function(){t._width=t.sandboxEl.offsetWidth,t._height=t.sandboxEl.offsetHeight}):u.resolve()}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.define("makeVisible",function(){return this.styleSelf(f)}),t.define("didResize",function(){var e=this,t=0<e._resizeHandlers.length;return this.updateCachedDimensions().then(function(){t&&e._resizeHandlers.forEach(function(t){t(e)})})}),t.define("loadDocument",function(t){var e=new i;return this.initialized?this.iframeEl.src?u.reject(new Error("widget already loaded")):(this.iframeEl.addEventListener("load",e.resolve,!1),this.iframeEl.addEventListener("error",e.reject,!1),this.iframeEl.src=t,e.promise):u.reject(new Error("sandbox not initialized"))}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this;return e=d.aug({id:t},e),n=d.aug({},l,n),this._iframe=a(e,n),(h[t]=this).onResize(s(function(){i.makeVisible()})),o.write(c(r,null,this._iframe))}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this.updateCachedDimensions()})}},function(t,e,n){var i=n(7),o=n(122),s=n(124),a=n(30),u=n(26),c=n(125);t.exports=function(r){(new o).attachReceiver(new s.Receiver(i,"twttr.button")).bind("twttr.private.trigger",function(t,e){var n=c(this);a.trigger(t,{target:n,region:e,type:t,data:{}})}).bind("twttr.private.resizeButton",function(t){var e=c(this),e=e&&e.id,n=u.asInt(t.width),t=u.asInt(t.height);e&&void 0!==n&&void 0!==t&&r(e,n,t)})}},function(t,e,n){function r(t){this.registry=t||{}}function o(t){var e=c.isType("string",t),n=c.isType("number",t);return e||n||null===t}function s(t,e){return{jsonrpc:f,id:o(t)?t:null,error:e}}var a=n(51),u=n(123),c=n(12),d=n(2),l=n(33),f="2.0";r.prototype._invoke=function(t,e){var n,r=this.registry[t.method],i=t.params||[];i=c.isType("array",i)?i:[i];try{n=r.apply(e.source||null,i)}catch(t){n=d.reject(t.message)}return l.isPromise(n)?n:d.resolve(n)},r.prototype._processRequest=function(n,t){var e,r,i;return e=n,c.isObject(e)&&(r=e.jsonrpc===f,i=c.isType("string",e.method),e=!("id"in e)||o(e.id),r&&i&&e)?(i="params"in n&&(r=n.params,!c.isObject(r)||c.isType("function",r))?d.resolve(s(n.id,u.INVALID_PARAMS)):this.registry[n.method]?this._invoke(n,{source:t}).then(function(t){return e=n.id,{jsonrpc:f,id:e,result:t};var e},function(){return s(n.id,u.INTERNAL_ERROR)}):d.resolve(s(n.id,u.METHOD_NOT_FOUND)),null!=n.id?i:d.resolve()):d.resolve(s(n.id,u.INVALID_REQUEST))},r.prototype.attachReceiver=function(t){return t.attachTo(this),this},r.prototype.bind=function(t,e){return this.registry[t]=e,this},r.prototype.receive=function(t,e){var n,r,i=this;try{r=t,t=c.isType("string",r)?a.parse(r):r}catch(t){return d.resolve(s(null,u.PARSE_ERROR))}return e=e||null,r=c.isType("array",t),n=(r?t:[t]).map(function(t){return i._processRequest(t,e)}),r?d.all(n).then(function(t){return(t=t.filter(function(t){return void 0!==t})).length?t:void 0}):n[0]},t.exports=r},function(t,e){t.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},function(t,e,n){function r(t,e,n){var r;t&&t.postMessage&&(v?r=(n||"")+d.stringify(e):n?(r={})[n]=e:r=e,t.postMessage(r,"*"))}function i(t){return h.isType("string",t)?t:"JSONRPC"}function o(t,e){return e?h.isType("string",t)&&0===t.indexOf(e)?t.substring(e.length):t[e]||void 0:t}function s(t,e){var n=t.document;this.filter=i(e),this.server=null,this.isTwitterFrame=p.isTwitterURL(n.location.href),t.addEventListener("message",m(this._onMessage,this),!1)}function a(t,e){this.pending={},this.target=t,this.isTwitterHost=p.isTwitterURL(u.href),this.filter=i(e),c.addEventListener("message",m(this._onMessage,this),!1)}var u=n(11),c=n(7),d=n(51),l=n(1),f=n(8),h=n(12),p=n(24),m=n(15),v=f.ie9();h.aug(s.prototype,{_onMessage:function(e){var t,n=this;!this.server||this.isTwitterFrame&&!p.isTwitterURL(e.origin)||(t=o(e.data,this.filter))&&this.server.receive(t,e.source).then(function(t){t&&r(e.source,t,n.filter)})},attachTo:function(t){this.server=t},detach:function(){this.server=null}}),h.aug(a.prototype,{_processResponse:function(t){var e=this.pending[t.id];e&&(e.resolve(t),delete this.pending[t.id])},_onMessage:function(t){var e;if((!this.isTwitterHost||p.isTwitterURL(t.origin))&&(e=o(t.data,this.filter))){if(h.isType("string",e))try{e=d.parse(e)}catch(t){return}(e=h.isType("array",e)?e:[e]).forEach(m(this._processResponse,this))}},send:function(t){var e=new l;return t.id?this.pending[t.id]=e:e.resolve(),r(this.target,t,this.filter),e.promise}}),t.exports={Receiver:s,Dispatcher:a,_stringifyPayload:function(t){return v=0<arguments.length?!!t:v}}},function(t,e,n){var i=n(9);t.exports=function(t){for(var e,n=i.getElementsByTagName("iframe"),r=0;n[r];r++)if((e=n[r]).contentWindow===t)return e}},function(t,e){t.exports=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments))}}},function(t,e,n){var i=n(26),o=n(12),s=n(24),a=n(80),r=n(82)(),u=n(128);t.exports=function(t){return r(t,"a.twitter-grid").map(function(t){return u((r=a(e=t),e={collectionId:s.collectionId(e.href),chrome:e.getAttribute("data-chrome"),limit:e.getAttribute("data-limit")},o.forIn(e,function(t,e){var n=r[t];r[t]=i.hasValue(n)?n:e}),r),t.parentNode,t);var e,r})}},function(t,e,n){var r=n(86),i=n(129),o=n(53);t.exports=function(t,e,n){return new r(i,o,"twitter-grid",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(3,function(t,e){var n;if(t)return o.reject(t);try{n=s(130),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var a=n(9),u=n(18),c=n(1),d=n(12),l=n(25),f="cb",h=0;t.exports={fetch:function(t,e,n,r){var i,o,s;return r=function(t){if(t)return t.replace(/[^\w$]/g,"_")}(r||f+h++),i=u.fullPath(["callbacks",r]),o=a.createElement("script"),s=new c,e=d.aug({},e,{callback:i,suppress_response_codes:!0}),u.set(["callbacks",r],function(t){var e=n(t||!1);t=e.resp,e.success?s.resolve(t):s.reject(t),o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),u.unset(["callbacks",r])}),o.onerror=function(){s.reject(new Error("failed to fetch "+o.src))},o.src=l.url(t,e),o["async"]="async",a.body.appendChild(o),s.promise}}},function(t,e,n){var r=n(10);t.exports=function(t){var e=t.headers&&t.headers.status;return!(e=t&&!t.error&&200===e)&&t.headers&&t.headers.message&&r.warn(t.headers.message),{success:e,resp:t}}},function(t,e){t.exports={getTimezoneOffset:function(){var t=(new Date).toString().match(/(GMT[+-]?\d+)/);return t&&t[0]||"GMT"}}},function(t,e){t.exports=function(){return Math.floor(+new Date/9e5)}},function(t,e,n){function r(t,e){var r=[t];return e.forEach(function(t){var e,n;r.push((t=((t=t)||"").toString(),e="/"===t.slice(0,1)?1:0,n="/"===t.slice(-1)?-1:void 0,t.slice(e,n)))}),r.join("/")}var i=n(18),o="https://cdn.syndication.twimg.com",s="https://syndication.twitter.com",a=function(){return i.get("backendHost")||o},u=function(){return i.get("settingsSvcHost")||s};t.exports={cookieConsent:function(t){return(t=t||[]).unshift("cookie/consent"),r(u(),t)},disableCDN:function(){i.init("backendHost",s)},enableCDN:function(){i.unset("backendHost",s)},eventVideo:function(t){return(t=t||[]).unshift("video/event"),r(a(),t)},grid:function(t){return(t=t||[]).unshift("grid/collection"),r(a(),t)},moment:function(t){return(t=t||[]).unshift("moments"),r(a(),t)},settings:function(t){return(t=t||[]).unshift("settings"),r(u(),t)},timeline:function(t){return(t=t||[]).unshift("timeline"),r(a(),t)},timelinePreconfigured:function(t){return(t=t||[]).unshift("widgets/timelines"),r(a(),t)},tweetBatch:function(t){return(t=t||[]).unshift("tweets.json"),r(a(),t)},video:function(t){return(t=t||[]).unshift("widgets/video"),r(a(),t)}}},function(t,e,n){var r=n(9),i=n(26),o=r.createElement("div");t.exports=function(t){return i.isNumber(t)&&(t+="px"),o.style.width="",o.style.width=t,o.style.width||null}},function(t,e,n){var r=n(36),i=n(140);t.exports=function(t){t.after("prepForInsertion",function(t){i.sizeIframes(t,this.sandbox.width,375,r.sync)}),t.after("resize",function(){i.sizeIframes(this.el,this.sandbox.width,375,r.write)})}},function(t,e,n){function r(t,e){(t.getAttribute("data-image")?i:o)(t,e)}function a(t){t=t.split(" ");this.url=decodeURIComponent(t[0].trim()),this.width=+t[1].replace(/w$/,"").trim()}function i(t,e){var n=m.decodeURL(t.src).name,r=n&&v(C,function(t){if(A[t]===n)return t}),i=u(e)||680;i<=r||(e=t.getAttribute("data-image"),r=v(C,function(t){if(i<=t)return t})||4096,t.src=m.url(e,{format:"jpg",name:A[r]}))}function u(t){return f.devicePixelRatio?t*f.devicePixelRatio:t}function o(t,e){var n=t.getAttribute("data-srcset"),r=t.src;n&&(e=function(t,e,n){var r,i,o=u(t),s=e.split(",").map(function(t){return new a(t.trim())});if(n)for(i=0;i<s.length;i++)s[i].url===n&&(r=s[i]);return t=s.reduce(function(t,e){return e.width<t.width&&e.width>=o?e:t},s[0]),r&&r.width>t.width?r:t}(e,n,r),t.src=e.url)}function s(t,e,n){t&&(h.toRealArray(t.querySelectorAll(".NaturalImage-image")).forEach(function(t){n(function(){r(t,e)})}),h.toRealArray(t.querySelectorAll(".CroppedImage-image")).forEach(function(t){n(function(){r(t,e/2)})}),h.toRealArray(t.querySelectorAll("img.autosized-media")).forEach(function(t){n(function(){r(t,e),t.removeAttribute("width"),t.removeAttribute("height")})}))}function c(t,n,r,i){t&&h.toRealArray(t.querySelectorAll("iframe.autosized-media, .wvp-player-container")).forEach(function(t){var e=d(t.getAttribute("data-width"),t.getAttribute("data-height"),w.effectiveWidth(t.parentElement)||n,r);i(function(){t.setAttribute("width",e.width),t.setAttribute("height",e.height),y.present(t,"wvp-player-container")?(t.style.width=e.width,t.style.height=e.height):(t.width=e.width,t.height=e.height)})})}function d(t,e,n,r,i,o){return r=r||e,(n=n||t)<t&&(e*=n/t,t=n),r<e&&(t*=r/e,e=r),t<(i=i||0)&&(e*=i/t,t=i),e<(o=o||0)&&(t*=o/e,e=o),{width:Math.floor(t),height:Math.floor(e)}}function l(t,e,n,r){h.toRealArray(t.querySelectorAll(e)).forEach(function(t){var e=t.getAttribute("style")||t.getAttribute("data-style"),e=r.test(e)&&RegExp.$1;e&&(t.setAttribute("data-csp-fix",!0),t.style[n]=e)})}var f=n(7),h=n(12),p=n(66),m=n(25),v=n(141),g=n(8),w=n(142),y=n(21),b=/max-width:\s*([\d.]+px)/,_=/top:\s*(-?[\d.]+%)/,E=/left:\s*(-?[\d.]+%)/,x=/padding-bottom:\s*([\d.]+%)/,A={64:"tiny",120:"120x120",240:"240x240",360:"360x360",680:"small",900:"900x900",1200:"medium",2048:"large",4096:"4096x4096"},C=Object.keys(A).sort(function(t,e){return t-e});t.exports={scaleDimensions:d,retinize:function(t,r){r=void 0!==r?!!r:g.retina(),h.toRealArray(t.getElementsByTagName("IMG")).forEach(function(t){var e=t.getAttribute("data-src-1x")||t.getAttribute("src"),n=t.getAttribute("data-src-2x");r&&n?t.src=n:e&&(t.src=e)})},setSrcForImgs:s,sizeIframes:c,constrainMedia:function(t,e,n,r){s(t,e,r),c(t,e,n,r)},fixMediaCardLayout:function(t){p.inlineStyle()||(l(t,".MediaCard-widthConstraint","maxWidth",b),l(t,".MediaCard-mediaContainer","paddingBottom",x),l(t,".CroppedImage-image","top",_),l(t,".CroppedImage-image","left",E))},__setSrcFromSet:o,__setSrcFromImage:i,__setImageSrc:r}},function(t,e){t.exports=function(t,e,n){for(var r,i=0;i<t.length;i++)if(r=e.call(n,t[i],i,t))return r}},function(t,e){t.exports={effectiveWidth:function n(t){return t&&1===t.nodeType?t.offsetWidth||n(t.parentNode):0}}},function(t,e,n){function r(n){var t=(n.getAttribute("data-style")||"").split(";").reduce(function(t,e){var n;return s.test(e.trim())&&(e=RegExp.$1,n=RegExp.$2,t[e.replace(/-(.)/g,function(t,e){return e.toUpperCase()})]=n),t},{});0!==Object.keys(t).length&&(n.setAttribute("data-csp-fix","true"),o.forIn(t,function(t,e){n.style[t]=e}))}var i=n(66),o=(n(10),n(12)),s=/^([a-zA-Z-]+):\s*(.+)$/;t.exports=function(t){t.selectors({cspForcedStyle:".js-cspForcedStyle"}),t.after("prepForInsertion",function(t){i.inlineStyle()||this.select(t,"cspForcedStyle").forEach(r)})}},function(t,e,n){var r=n(140);t.exports=function(t){t.after("prepForInsertion",function(t){r.retinize(t)})}},function(t,e,n){var r=n(36),i=n(140);t.exports=function(t){t.after("prepForInsertion",function(t){i.setSrcForImgs(t,this.sandbox.width,r.sync)}),t.after("resize",function(){i.setSrcForImgs(this.el,this.sandbox.width,r.write)})}},function(t,e){t.exports=function(t){t.after("render",function(){var t=this.el.getAttribute("data-iframe-title");t&&this.sandbox.setTitle&&this.sandbox.setTitle(t)})}},function(t,e,n){function r(t){return t.every(s.isInt)}function i(t){t=t.map(function(t){return{size:+t,className:a+t}}).sort(function(t,e){return t.size-e.size});return t.unshift({size:0,className:u}),t}var o=n(2),s=n(26),a="env-bp-",u=a+"min";t.exports=function(t){t.params({breakpoints:{required:!0,validate:r,transform:i}}),t.define("getClassForWidth",function(t){for(var e,n,r=this.params.breakpoints.length-1;0<=r;r--)if(t>(n=this.params.breakpoints[r]).size){e=n.className;break}return e}),t.after("initialize",function(){this.allBreakpoints=this.params.breakpoints.map(function(t){return t.className})}),t.define("recalculateBreakpoints",function(){var t=this.getClassForWidth(this.sandbox.width);return t&&this.sandbox.hasRootClass(t)?o.resolve():o.all([this.sandbox.removeRootClass(this.allBreakpoints),this.sandbox.addRootClass(t)])}),t.after("render",function(){return this.recalculateBreakpoints()}),t.after("resize",function(){return this.recalculateBreakpoints()})}},,function(t,e,n){function o(t,e){e={scribeContext:(e=e||{}).scribeContext||{client:"tfw"},languageCode:e.languageCode,hideControls:e.hideControls||!1,addTwitterBranding:e.addBranding||!1,widgetOrigin:e.widgetOrigin,borderRadius:e.borderRadius};if(0<(t=r(t,".wvp-player-container")).length)return i&&a.setBaseUrl(i),{element:t[0],options:e}}var s=n(1),r=n(83),a=n(150),i=null;t.exports={insertForTweet:function(t,e,n){var r=new s;if(t=o(t,n))return(n=a.createPlayerForTweet(t.element,e,t.options))?(r.resolve(n),r.promise):r.reject(new Error("unable to create tweet video player"))},insertForEvent:function(t,e,n){var r,i=new s;return(t=o(t,n))?((r=a.createPlayerForLiveVideo(t.element,e,t.options)).on("ready",function(){r.playPreview(),i.resolve(r)}),i.promise):i.reject(new Error("unable to initialize event video player"))},remove:function(t){if(t=(t=t.querySelector(".wvp-player-container"))&&a.findPlayerForElement(t))return t.teardown()},find:function(t){return a.findPlayerForElement(t)}}},function(t,e,n){var o;o=this,void 0!==(n=function(){return o.TwitterVideoPlayer=(i={suppressScribing:!(e=/^https?:\/\/([a-zA-Z0-9]+\.)*twitter.com(:\d+)?$/),squareCorners:!(c="https://twitter.com"),hideControls:!1,addTwitterBranding:!1},d=0,l={},{setBaseUrl:function(t){e.test(t)?c=t:window.console.error("newBaseUrl "+t+" not allowed")},createPlayerForTweet:function(t,e,n){return new r(t,"/i/videos/tweet/"+e,"player_tweet_"+e,n||i)},createPlayerForDm:function(t,e,n){return new r(t,"/i/videos/dm/"+e,"player_dm_"+e,n||i)},createPlayerForLiveVideo:function(t,e,n){return new r(t,"/i/videos/live_video/"+e,"player_live_video_"+e,n||i)},findPlayerForElement:function(t){for(var e in l)if(l.hasOwnProperty(e)){e=l[e];if(e&&e.domElement===t)return e.playerInterface}return null}});function u(t){var e,n,r;t&&t.data&&t.data.params&&t.data.params[0]&&(e=t.data.params[0],n=t.data.id,e&&e.context&&"TwitterVideoPlayer"===e.context&&(r=e.playerId,delete e.playerId,delete e.context,(r=l[r])&&r.processMessage(t.data.method,e,n)))}function r(t,e,n,r,i){t.ownerDocument.defaultView.addEventListener("message",u),this.playerId=d++;var o={embed_source:"clientlib",player_id:this.playerId,rpc_init:1};if(this.scribeParams={},this.scribeParams.suppressScribing=r&&r.suppressScribing,!this.scribeParams.suppressScribing){if(!r.scribeContext)throw"video_player: Missing scribe context";if(!r.scribeContext.client)throw"video_player: Scribe context missing client property";this.scribeParams.client=r.scribeContext.client,this.scribeParams.page=r.scribeContext.page,this.scribeParams.section=r.scribeContext.section,this.scribeParams.component=r.scribeContext.component}this.scribeParams.debugScribe=r&&r.scribeContext&&r.scribeContext.debugScribing,this.scribeParams.scribeUrl=r&&r.scribeContext&&r.scribeContext.scribeUrl,this.promotedLogParams=r.promotedContext,this.adRequestCallback=r.adRequestCallback,r.languageCode&&(o.language_code=r.languageCode),"tfw"===this.scribeParams.client&&(o.use_syndication_guest_id=!0);a=c,e=e,s=o,o=Object.keys(s).filter(function(t){return null!=s[t]}).map(function(t){var e=s[t];return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&");var s,a=a+e+(o=o&&"?"+o);return this.videoIframe=document.createElement("iframe"),this.videoIframe.setAttribute("src",a),this.videoIframe.setAttribute("allowfullscreen",""),this.videoIframe.setAttribute("id",n),this.videoIframe.setAttribute("style","width: 100%; height: 100%; position: absolute; top: 0; left: 0;"),this.domElement=t,this.domElement.appendChild(this.videoIframe),(l[this.playerId]=this).eventCallbacks={},this.emitEvent=function(t,e){t=this.eventCallbacks[t];void 0!==t&&t.forEach(function(t){t.apply(this.playerInterface,[e])}.bind(this))},this.jsonRpc=function(t){var e=this.videoIframe.contentWindow;t.jsonrpc="2.0",e&&e.postMessage&&e.postMessage(JSON.stringify(t),"*")},this.jsonRpcCall=function(t,e){this.jsonRpc({method:t,params:e})},this.jsonRpcResult=function(t,e){this.jsonRpc({result:t,id:e})},this.processMessage=function(t,e,n){switch(t){case"requestPlayerConfig":this.jsonRpcResult({scribeParams:this.scribeParams,promotedLogParams:this.promotedLogParams,squareCorners:r.squareCorners,borderRadius:r.borderRadius,hideControls:r.hideControls,embedded:r.addTwitterBranding,widgetOrigin:r.widgetOrigin,ignoreFineGrainGeoblocking:r.ignoreFineGrainGeoblocking},n);break;case"videoPlayerAdStart":this.emitEvent("adStart",e);break;case"videoPlayerAdEnd":this.emitEvent("adEnd",e);break;case"videoPlayerPlay":this.emitEvent("play",e);break;case"videoPlayerPause":this.emitEvent("pause",e);break;case"videoPlayerMute":this.emitEvent("mute",e);break;case"videoPlayerUnmute":this.emitEvent("unmute",e);break;case"videoPlayerPlaybackComplete":this.emitEvent("playbackComplete",e);break;case"videoPlayerReady":this.emitEvent("ready",e);break;case"videoView":this.emitEvent("view",e);break;case"debugLoggingEvent":this.emitEvent("logged",e);break;case"requestDynamicAd":"function"==typeof this.adRequestCallback?this.jsonRpcResult(this.adRequestCallback(),n):this.jsonRpcResult({},n);break;case"videoPlayerError":e&&"NO_COOKIES_ERROR"===e.error_category?this.emitEvent("noCookiesError",e):e&&"GEOBLOCK_ERROR"===e.error_category&&this.emitEvent("geoblockError",e)}},this.playerInterface={on:function(t,e){return"undefined"==typeof this.eventCallbacks[t]&&(this.eventCallbacks[t]=[]),this.eventCallbacks[t].push(e),this.playerInterface}.bind(this),off:function(t,e){return void 0===e?delete this.eventCallbacks[t]:void 0!==(t=this.eventCallbacks[t])&&-1<(e=t.indexOf(e))&&t.splice(e,1),this.playerInterface}.bind(this),play:function(){return this.jsonRpcCall("play"),this.playerInterface}.bind(this),pause:function(){return this.jsonRpcCall("pause"),this.playerInterface}.bind(this),mute:function(){return this.jsonRpcCall("mute"),this.playerInterface}.bind(this),unmute:function(){return this.jsonRpcCall("unmute"),this.playerInterface}.bind(this),playPreview:function(){return this.jsonRpcCall("autoPlayPreview"),this.playerInterface}.bind(this),pausePreview:function(){return this.jsonRpcCall("autoPlayPreviewStop"),this.playerInterface}.bind(this),updatePosition:function(t){return this.jsonRpcCall("updatePosition",[t]),this.playerInterface}.bind(this),updateLayoutBreakpoint:function(t){return this.jsonRpcCall("updateLayoutBreakpoint",[t]),this.playerInterface}.bind(this),enterFullScreen:function(){return this.jsonRpcCall("enterFullScreen"),this.playerInterface}.bind(this),exitFullScreen:function(){return this.jsonRpcCall("exitFullScreen"),this.playerInterface}.bind(this),teardown:function(){this.eventCallbacks={},t.removeChild(this.videoIframe),this.videoIframe=void 0,delete l[this.playerId]}.bind(this)},this.playerInterface}var c,e,i,d,l}.call(e,n,e,t))&&(t.exports=n)},function(t,e,n){var r=n(22),i=n(152),o=n(89),s=n(50);t.exports=o.couple(n(102),function(t){t.selectors({clickToOpen:".js-clickToOpenTarget"}),t.define("shouldOpenTarget",function(t){var e=r.closest("A",t.target,this.el),t=r.closest("BUTTON",t.target,this.el),n=this.sandbox.hasSelectedText();return!e&&!t&&!n}),t.define("openTarget",function(t,e){e=e&&e.getAttribute("data-click-to-open-target");e&&(i(e),this.scribeOpenClick(t))}),t.define("attemptToOpenTarget",function(t,e){this.shouldOpenTarget(t)&&this.openTarget(t,e)}),t.define("scribeOpenClick",function(t){t=s.extractTermsFromDOM(t.target),t={associations:s.formatTweetAssociation(t)};this.scribe({section:"chrome",action:"click"},t)}),t.after("render",function(){this.on("click","clickToOpen",this.attemptToOpenTarget)})})},function(t,e,n){var r=n(7),i=n(153),o=n(101),s=n(24);t.exports=function(t){s.isTwitterURL(t)&&(t=o(t)),s.isStatus(t)&&(t=i(t)),r.open(t)}},function(t,e,n){var r=n(103),i=n(41),o=n(25);t.exports=function(t){var e={};return i.val("site")&&(e.tfw_site=r(i.val("site"))),i.val("creator")&&(e.tfw_creator=r(i.val("creator"))),o.url(t,e)}},function(t,e,n){var r=n(22),i=n(41),o=n(23),s=n(47),a=n(25),u=n(24),c=n(15),d="data-url-params-injected";t.exports=function(t){t.params({productName:{required:!0},dataSource:{required:!1},related:{required:!1},partner:{fallback:c(i.val,i,"partner")}}),t.selectors({timeline:".timeline",tweetIdInfo:".js-tweetIdInfo"}),t.define("injectWebIntentParams",function(t){var e=r.closest(this.selectors.timeline,t,this.el),n=r.closest(this.selectors.tweetIdInfo,t,this.el);t.getAttribute(d)||(t.setAttribute(d,!0),t.href=a.url(t.href,{tw_w:this.params.dataSource&&this.params.dataSource.id,tw_i:n&&n.getAttribute("data-tweet-id"),tw_p:this.params.productName,related:this.params.related,partner:this.params.partner,query:e&&e.getAttribute("data-search-query"),profile_id:e&&e.getAttribute("data-profile-id"),original_referer:s.rootDocumentLocation()}))}),t.after("render",function(){this.on("click","A",function(t,e){u.isIntentURL(e.href)&&(this.injectWebIntentParams(e),o.open(e.href,this.sandbox.sandboxEl,t))})})}},function(t,e,n){var r=n(8);t.exports=function(t){t.before("render",function(){r.ios()&&this.sandbox.addRootClass("env-ios"),r.ie9()&&this.sandbox.addRootClass("ie9"),r.touch()&&this.sandbox.addRootClass("is-touch")})}},function(t,e,n){var r=n(157);t.exports=function(t){t.params({pageForAudienceImpression:{required:!0}}),t.before("hydrate",function(){r.scribeAudienceImpression(this.params.pageForAudienceImpression)})}},function(t,e,n){function r(t){s.isHostPageSensitive()||a[t]||(a[t]=!0,i.scribe(o.formatClientEventNamespace({page:t,action:"impression"}),o.formatGenericEventData("syndicated_impression",{}),o.AUDIENCE_ENDPOINT))}var i=n(71),o=n(50),s=n(49),a={};t.exports={scribeAudienceImpression:r,scribePartnerTweetAudienceImpression:function(){r("partnertweet")},scribeTweetAudienceImpression:function(){r("tweet")},scribeTimelineAudienceImpression:function(){r("timeline")},scribeVideoAudienceImpression:function(){r("video")}}},function(t,e,n){var r=n(89),i=n(159);t.exports=r.couple(n(102),function(t){var n={action:"dimensions"},r=new i(1);t.after("show",function(){var t,e;r.nextBoolean()&&(t=this.sandbox.width,e=this.sandbox.height,this.scribe(n,{widget_width:t,widget_height:e}))})})},function(t,e){function n(t){this.percentage=t}n.prototype.nextBoolean=function(){return 100*Math.random()<this.percentage},t.exports=n},,function(t,e,n){var r=n(12);t.exports=function(t){var e={transparent:!1,hideBorder:!1,hideHeader:!1,hideFooter:!1,hideScrollBar:!1};return r.contains(t=t||"","transparent")&&(e.transparent=!0),r.contains(t,"noborders")&&(e.hideBorder=!0),r.contains(t,"noheader")&&(e.hideHeader=!0),r.contains(t,"nofooter")&&(e.hideFooter=!0),r.contains(t,"noscrollbar")&&(e.hideScrollBar=!0),e}},function(t,e,n){var i=n(26),o=n(12),s=n(24),a=n(80),r=n(82)(),u=n(163);t.exports=function(t){return r(t,"a.twitter-moment").map(function(t){return u((r=a(e=t),e={momentId:s.momentId(e.href),chrome:e.getAttribute("data-chrome"),limit:e.getAttribute("data-limit")},o.forIn(e,function(t,e){var n=r[t];r[t]=i.hasValue(n)?n:e}),r),t.parentNode,t);var e,r})}},function(t,e,n){var r=n(86),i=n(164),o=n(53);t.exports=function(t,e,n){return new r(i,o,"twitter-moment",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(4,function(t,e){var n;if(t)return o.reject(t);try{n=s(165),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var r=n(50),i=n(89),o=n(52),s=n(169);t.exports=i.couple(n(102),function(t){t.selectors({inViewportMarker:".js-inViewportScribingTarget"}),t.define("scribeInViewportSeen",function(t,e){t=r.extractTermsFromDOM(t);t.action="seen",this.scribe(t,e,o.version)}),t.after("show",function(){var t=this.selectors.inViewportMarker;this.select(t).forEach(function(t){t&&s.inViewportOnce(t,this.sandbox.sandboxEl,function(){this.scribeInViewportSeen(t,this.scribeItems())}.bind(this))},this)})})},function(t,e,n){var a=n(170),r=n(67),u=n(171),c=n(7),d=n(8),l=function(t){return(c.requestIdleCallback||c.requestAnimationFrame||function(t){t()})(t)},n=function(){this.observers=[]};n.prototype._register=function(n,r,i){var o,s=this;return d.hasIntersectionObserverSupport()?(o=new c.IntersectionObserver(function(t){t.forEach(function(t){1<=t.intersectionRatio&&(l(i),s._unregister(o))})},{threshold:1})).observe(n):(o={update:function(t,e){a(n,{viewportWidth:t,viewportHeight:e,sandboxEl:r})&&(i(),s._unregister(o))}},this.observers.push(o),1===this.observers.length&&(this.unlisten=u.addScrollListener(this._onViewportChange.bind(this))),this._onViewportChange()),o},n.prototype._unregister=function(t){d.hasIntersectionObserverSupport()&&t instanceof c.IntersectionObserver?t.disconnect():-1<(t=this.observers.indexOf(t))&&(this.observers.splice(t,1),0===this.observers.length&&this.unlisten&&this.unlisten())},n.prototype._onViewportChange=function(){r(l(function(){this._notify(u.getWidth(),u.getHeight())}.bind(this)),50,this)},n.prototype._notify=function(e,n){this.observers.forEach(function(t){t.update(e,n)})},n.prototype.inViewportOnce=function(t,e,n){return this._register(t,e,n)},t.exports=new n},function(t,e,n){var o=n(9),s=n(7);t.exports=function(t,e){var n=(e=e||{}).viewportWidth||s.innerWidth,r=e.viewportHeight||s.innerHeight,i=t.getBoundingClientRect();return t.ownerDocument!==o&&e.sandboxEl&&(t=e.sandboxEl.getBoundingClientRect(),i={top:i.top+t.top,bottom:i.bottom+t.top,left:i.left+t.left,right:i.right+t.left}),0<=i.top&&0<=i.left&&i.bottom<=r&&i.right<=n}},function(t,e,n){var r=n(7);t.exports={_addListener:function(t,e){var n=function(){e()};return r.addEventListener(t,n),function(){r.removeEventListener(t,n)}},addScrollListener:function(t){return this._addListener("scroll",t)},getHeight:function(){return r.innerHeight},getWidth:function(){return r.innerWidth}}},,function(t,e,n){var i=n(12),o=n(80),r=n(82)(),s=n(174),a=/^https?:\/\/(?:www\.)?(?:periscope|pscp)\.tv\/@?([a-zA-Z0-9_]+)\/?$/i;t.exports=function(t){return r(t,"a.periscope-on-air").map(function(t){return s((n=o(e=t),r=e.getAttribute("href"),e=e.getAttribute("data-size"),r=a.exec(r)[1],i.aug(n,{username:r,size:e})),t.parentNode,t);var e,n,r})}},function(t,e,n){var r=n(86),i=n(175),o=n(53);t.exports=function(t,e,n){return new r(i,o,"periscope-on-air",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(5,function(t,e){var n;if(t)return o.reject(t);try{n=s(176),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,function(t,e,n){var i=n(26),o=n(12),s=n(180),a=n(195),u=n(80),r=n(82)(),c=n(197);t.exports=function(t){return r(t,"a.twitter-timeline,div.twitter-timeline").map(function(t){return c((n=u(e=t),r=e.getAttribute("data-show-replies"),r={widgetId:e.getAttribute("data-widget-id"),chrome:e.getAttribute("data-chrome"),tweetLimit:e.getAttribute("data-tweet-limit"),ariaLive:e.getAttribute("data-aria-polite"),theme:e.getAttribute("data-theme"),linkColor:e.getAttribute("data-link-color"),borderColor:e.getAttribute("data-border-color"),showReplies:r?i.asBoolean(r):null,profileScreenName:e.getAttribute("data-screen-name"),profileUserId:e.getAttribute("data-user-id"),favoritesScreenName:e.getAttribute("data-favorites-screen-name"),favoritesUserId:e.getAttribute("data-favorites-user-id"),likesScreenName:e.getAttribute("data-likes-screen-name"),likesUserId:e.getAttribute("data-likes-user-id"),listOwnerScreenName:e.getAttribute("data-list-owner-screen-name"),listOwnerUserId:e.getAttribute("data-list-owner-id"),listId:e.getAttribute("data-list-id"),listSlug:e.getAttribute("data-list-slug"),customTimelineId:e.getAttribute("data-custom-timeline-id"),staticContent:e.getAttribute("data-static-content"),url:e.href},(r=o.aug(r,n)).dataSource=s(r),r.useLegacyDefaults=r.dataSource instanceof a,r),t.parentNode,t);var e,n,r})}},function(t,e,n){function r(e){return i(f,function(t){try{return new t(e)}catch(e){}})}var i=n(141),o=n(181),s=n(185),a=n(187),u=n(189),c=n(191),d=n(193),n=n(195),l={collection:o,event:s,likes:a,list:u,profile:d,widget:n,url:r},f=[n,d,a,o,u,s,c];t.exports=function(t){return t?(n=((e=t).sourceType+"").toLowerCase(),((n=l[n])?new n(e):null)||r(t)):null;var e,n}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(184)])},function(t,e,n){var r=n(55),i=n(59),n=n(15);(r=Object.create(r)).build=n(r.build,null,i),t.exports=r},function(t,e,n){function r(t){if(t&&t.headers)return{html:t.body,config:t.config,pollInterval:1e3*parseInt(t.headers.xPolling,10)||null,maxCursorPosition:t.headers.maxPosition,minCursorPosition:t.headers.minPosition};throw new Error("unexpected response schema")}function i(t){if(t&&t.headers)throw new Error(t.headers.status);throw t instanceof Error?t:new Error(t)}var o=n(136),s=n(133),a=n(134),u=n(11),c=n(95),d=n(135),l=n(46),f=n(26),h=n(29),p=n(12);t.exports=function(t){t.params({instanceId:{required:!0,fallback:h.deterministic},lang:{required:!0,transform:c.matchLanguage,fallback:"en"},tweetLimit:{transform:f.asInt}}),t.defineProperty("endpoint",{get:function(){throw new Error("endpoint not specified")}}),t.defineProperty("pollEndpoint",{get:function(){return this.endpoint}}),t.define("cbId",function(t){return"tl_"+this.params.instanceId+"_"+this.id+(t?"_new":"_old")}),t.define("queryParams",function(){return{lang:this.params.lang,tz:d.getTimezoneOffset(),t:o(),domain:u.host,tweet_limit:this.params.tweetLimit,dnt:l.enabled()}}),t.define("fetch",function(){return s.fetch(this.endpoint,this.queryParams(),a,this.cbId()).then(r,i)}),t.define("poll",function(t,e){t={since_id:(t=t||{}).sinceId,max_id:t.maxId,min_position:t.minPosition,max_position:t.maxPosition},t=p.aug(this.queryParams(),t);return s.fetch(this.pollEndpoint,t,a,this.cbId(e)).then(r,i)})}},function(t,e,n){function r(t,e){return i.collectionId(t)||e}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("id",{get:function(){return"collection:"+r(this.params.url,this.params.id)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["collection"])}}),t.around("queryParams",function(t){return o.aug(t(),{collection_id:r(this.params.url,this.params.id)})}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(186)])},function(t,e,n){function r(t,e){return i.eventId(t)||e}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("id",{get:function(){return"event:"+r(this.params.url,this.params.id)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["event"])}}),t.around("queryParams",function(t){return o.aug(t(),{event_id:r(this.params.url,this.params.id)})}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(188)])},function(t,e,n){function r(t){return i.likesScreenName(t.url)||t.screenName}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({screenName:{},userId:{},url:{}}),t.overrideProperty("id",{get:function(){return"likes:"+(r(this.params)||this.params.userId)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["likes"])}}),t.define("_getLikesQueryParam",function(){var t=r(this.params);return t?{screen_name:t}:{user_id:this.params.userId}}),t.around("queryParams",function(t){return o.aug(t(),this._getLikesQueryParam())}),t.before("initialize",function(){if(!r(this.params)&&!this.params.userId)throw new Error("screen name or user id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(190)])},function(t,e,n){function r(t){t=i.listScreenNameAndSlug(t.url)||t;return o.compact({screen_name:t.ownerScreenName,user_id:t.ownerUserId,list_slug:t.slug})}var i=n(24),o=n(12),s=n(137);t.exports=function(t){t.params({id:{},ownerScreenName:{},ownerUserId:{},slug:{},url:{}}),t.overrideProperty("id",{get:function(){var t,e;return this.params.id?"list:"+this.params.id:(e=(t=r(this.params))&&t.list_slug.replace(/-/g,"_"),"list:"+(t&&(t.screen_name||t.user_id))+":"+e)}}),t.overrideProperty("endpoint",{get:function(){return s.timeline(["list"])}}),t.define("_getListQueryParam",function(){return this.params.id?{list_id:this.params.id}:r(this.params)}),t.around("queryParams",function(t){return o.aug(t(),this._getListQueryParam())}),t.before("initialize",function(){var t=r(this.params);if(o.isEmptyObject(t)&&!this.params.id)throw new Error("qualified slug or list id required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(192)])},function(t,e,n){var r=n(26),i=n(137);t.exports=function(t){t.params({previewParams:{required:!0,validate:r.isObject}}),t.overrideProperty("id",{get:function(){return"preview"}}),t.overrideProperty("endpoint",{get:function(){return i.timelinePreconfigured(["preview"])}}),t.override("queryParams",function(){return this.params.previewParams})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(194)])},function(t,e,n){function r(t,e){return i.screenName(t)||e}var i=n(24),o=n(26),s=n(12),a=n(137);t.exports=function(t){t.params({showReplies:{fallback:!1,transform:o.asBoolean},screenName:{},userId:{},url:{}}),t.overrideProperty("id",{get:function(){return"profile:"+(r(this.params.url,this.params.screenName)||this.params.userId)}}),t.overrideProperty("endpoint",{get:function(){return a.timeline(["profile"])}}),t.define("_getProfileQueryParam",function(){var t=r(this.params.url,this.params.screenName),t=t?{screen_name:t}:{user_id:this.params.userId};return s.aug(t,{with_replies:this.params.showReplies?"true":"false"})}),t.around("queryParams",function(t){return s.aug(t(),this._getProfileQueryParam())}),t.before("initialize",function(){if(!r(this.params.url,this.params.screenName)&&!this.params.userId)throw new Error("screen name or user id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(183),n(196)])},function(t,e,n){var r=n(26),i=n(12),o=n(137);t.exports=function(t){t.params({widgetId:{required:!0},profileShowReplies:{fallback:!1,transform:r.asBoolean},showReplies:{fallback:!1,transform:r.asBoolean},profileScreenName:{},screenName:{},profileUserId:{},userId:{},favoritesScreenName:{},favoritesUserId:{},listOwnerScreenName:{},listOwnerUserId:{},listOwnerId:{},listId:{},listSlug:{},customTimelineId:{},previewParams:{}}),t.overrideProperty("id",{get:function(){return this.params.widgetId}}),t.overrideProperty("endpoint",{get:function(){return o.timelinePreconfigured([this.params.widgetId])}}),t.overrideProperty("pollEndpoint",{get:function(){return o.timelinePreconfigured(["paged",this.params.widgetId])}}),t.define("_getWidgetQueryParams",function(){var t=this.params.profileScreenName||this.params.screenName,e=this.params.profileUserId||this.params.userId,n=this.params.profileShowReplies||this.params.showReplies,r=this.params.listOwnerUserId||this.params.listOwnerId;return t||e?{override_type:"user",override_id:e,override_name:t,with_replies:n?"true":"false"}:this.params.favoritesScreenName||this.params.favoritesUserId?{override_type:"favorites",override_id:this.params.favoritesUserId,override_name:this.params.favoritesScreenName}:this.params.listOwnerScreenName||r||this.params.listId||this.params.listSlug?{override_type:"list",override_owner_id:r,override_owner_name:this.params.listOwnerScreenName,override_id:this.params.listId,override_name:this.params.listSlug}:this.params.customTimelineId?{override_type:"custom",override_id:this.params.customTimelineId}:void 0}),t.around("queryParams",function(t){return i.aug(t(),this._getWidgetQueryParams())})}},function(t,e,n){var r=n(86),i=n(198),o=n(53);t.exports=function(t,e,n){return new r(i,o,"twitter-timeline",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(6,function(t,e){var n;if(t)return o.reject(t);try{n=s(199),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var c=n(21),d=n(24),l=n(12),f=n(80),r=n(82)(),h=n(225),p=/\btw-align-(left|right|center)\b/;t.exports=function(t){return r(t,"blockquote.twitter-tweet").map(function(t){return h((n=f(e=t),r=(r=(r=e.getElementsByTagName("A"))&&r[r.length-1])&&d.status(r.href),i="none"==(i=e.getAttribute("data-conversation"))||"hidden"==i||c.present(e,"tw-hide-thread"),o="none"==(o=e.getAttribute("data-cards"))||"hidden"==o||c.present(e,"tw-hide-media"),s=e.getAttribute("data-align")||e.getAttribute("align"),a=e.getAttribute("data-link-color"),u=e.getAttribute("data-theme"),!s&&p.test(e.className)&&(s=RegExp.$1),l.aug(n,{tweetId:r,hideThread:i,hideCard:o,align:s,linkColor:a,theme:u})),t.parentNode,t);var e,n,r,i,o,s,a,u})}},function(t,e,n){var r=n(86),i=n(226),o=n(108);t.exports=function(t,e,n){return new r(i,o,"twitter-tweet",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(7,function(t,e){var n;if(t)return o.reject(t);try{n=s(227),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,,,function(t,e,n){function i(t){return t.input.lang||m}function o(t,n){t.forEach(function(t){var e=n[t.input.id];e?t.taskDoneDeferred.resolve(e):t.taskDoneDeferred.reject(new Error("not found"))})}function s(t){t.forEach(function(t){t.taskDoneDeferred.reject(new Error("request failed"))})}function r(r,t){t=d(t,i);h.forIn(t,function(t,e){n=e,t={ids:[],lang:t=t,tz:f.getTimezoneOffset()},(t=n.reduce(function(t,e){return t.ids.push(e.input.id),t},t)).ids=t.ids.sort().join(",");var n=t,t=p(o,null,e),e=p(s,null,e);c.fetch(r,n,u).then(t,e)})}function a(t){this.requestQueue=new l(p(r,null,t))}var u=n(232),c=n(133),d=n(43),l=n(39),f=n(135),h=n(12),p=n(15),m="en";a.prototype.fetch=function(t,e){return this.requestQueue.add({id:t,lang:e})},t.exports=a},function(t,e){t.exports=function(t){return{success:!0,resp:t}}},,,,,,,,function(t,e,n){function r(){i&&i.length===s&&(o.emitter.trigger(o.ALL_WIDGETS_AND_IMAGES_LOADED,i),i=null)}var i,o=n(241),s=0;o.emitter.bind(o.ALL_WIDGETS_RENDERED,function(t){i=t.widgets,r()}),t.exports={reportImagesLoadForAWidget:function(){s++,r()}}},function(t,e,n){n=n(31).makeEmitter();t.exports={emitter:n,START:"start",ALL_WIDGETS_RENDERED:"all_widgets_rendered",ALL_WIDGETS_AND_IMAGES_LOADED:"all_widgets_and_images_loaded"}},,function(t,e,n){var i=n(21),o=n(12),s=n(80),r=n(82)(),a=n(244),u=n(26),c="twitter-hashtag-button",d="twitter-mention-button";t.exports=function(t){return r(t,"a.twitter-share-button, a.twitter-mention-button, a.twitter-hashtag-button").map(function(t){return a((r=s(e=t),n={screenName:e.getAttribute("data-button-screen-name"),text:e.getAttribute("data-text"),type:e.getAttribute("data-type"),size:e.getAttribute("data-size"),url:e.getAttribute("data-url"),hashtags:e.getAttribute("data-hashtags"),via:e.getAttribute("data-via"),buttonHashtag:e.getAttribute("data-button-hashtag")},o.forIn(n,function(t,e){var n=r[t];r[t]=u.hasValue(n)?n:e}),r.screenName=r.screenName||r.screen_name,r.buttonHashtag=r.buttonHashtag||r.button_hashtag||r.hashtag,i.present(e,c)&&(r.type="hashtag"),i.present(e,d)&&(r.type="mention"),r),t.parentNode,t);var e,r,n})}},function(t,e,n){var i=n(86),o=n(245),s=n(119);t.exports=function(t,e,n){var r=t&&t.type||"share";return new i(o,s,"hashtag"==r?"twitter-hashtag-button":"mention"==r?"twitter-mention-button":"twitter-share-button",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(2,function(t,e){var n;if(t)return o.reject(t);try{n=s(246),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,function(t,e,n){var r=n(12),i=n(80),o=n(82)(),s=n(249),a=n(254);t.exports=function(t){return o(t,"blockquote.twitter-video").map(function(t){return s((n=i(e=t),e={url:((e=e.getElementsByTagName("A"))&&e[e.length-1]).href},(e=r.aug({},e,r.compact(n))).dataSource=a(e),e),t.parentNode,t);var e,n})}},function(t,e,n){var r=n(86),i=n(250),o=n(253);t.exports=function(t,e,n){return new r(i,o,"twitter-video",t,e,n)}},function(t,e,s){var n=s(1);t.exports=function(r,i){var o=new n;return s.e(7,function(t,e){var n;if(t)return o.reject(t);try{n=s(251),o.resolve(new n(r,i))}catch(r){o.reject(r)}}),o.promise}},,,function(t,e,n){var o=n(36),r=n(54),n=n(63);t.exports=r.build([n,function(t){t.overrideProperty("sandboxEl",{get:function(){return this._constrainingWrapper}}),t.override("makeVisible",function(){var t=this.iframeEl;return o.write(function(){t.style.visibility="visible"})}),t.define("setWrapperSize",function(t,e){var n=this,t=t/e,r=100/t+"%",i=500*t+"px";return o.write(function(){n._constrainingWrapper.style.maxWidth=i,n._iframeWrapper.style.paddingBottom=r})}),t.after("initialize",function(){this._constrainingWrapper=this._iframeWrapper=null}),t.around("insert",function(t,e,n,r,i){var o=this.targetGlobal.document,s=this._constrainingWrapper=o.createElement("div"),a=this._iframeWrapper=o.createElement("div");return s.id=e,s.className=(n||{})["class"],s.style.minWidth="320px",s.style.position="relative",s.style.margin="10px 0px",a.style.position="relative",a.style.height="0px",s.appendChild(a),t(void 0,null,null,function(t){t.style.position="absolute",t.style.top="0px",t.style.bottom="0px",t.style.width="100%",t.style.height="100%",a.appendChild(t),i(s)})})}])},function(t,e,n){var i=n(141),o=n(255);t.exports=function(t){return t?(r=((n=t).sourceType+"").toLowerCase(),((r=o[r])?new r(n):null)||(e=t,i(Object.keys(o),function(t){t=o[t];try{return new t(e)}catch(e){}}))):null;var e,n,r}},function(t,e,n){var r=n(256),n=n(259);t.exports={tweet:r,event:n}},function(t,e,n){var r=n(182);t.exports=r.build([n(257),n(258)])},function(t,e,n){var r=n(95);t.exports=function(t){t.params({lang:{required:!0,transform:r.matchLanguage,fallback:"en"}}),t.defineProperty("identifier",{get:function(){throw new Error("identifier not specified")}}),t.defineProperty("name",{get:function(){throw new Error("name not specified")}}),t.defineProperty("scribeItemType",{get:function(){throw new Error("scribeItemType not specified")}}),t.define("fetch",function(){throw new Error("fetch not specified")})}},function(t,e,n){function r(t,e){return e||i.status(t)}var i=n(24),o=n(137),s=new(n(231))(o.video()),a=n(107);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("identifier",{get:function(){return r(this.params.url,this.params.id)}}),t.override("fetch",function(){return s.fetch(this.identifier,this.params.lang)}),t.overrideProperty("scribeItemType",{get:function(){return a.TWEET}}),t.overrideProperty("name",{get:function(){return"tweet"}}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){var r=n(182);t.exports=r.build([n(257),n(260)])},function(t,e,n){function r(t,e){return i.eventId(t)||e}var i=n(24),o=n(261),s=n(137),a=n(107);t.exports=function(t){t.params({id:{},url:{}}),t.overrideProperty("identifier",{get:function(){return r(this.params.url,this.params.id)}}),t.override("fetch",function(){var t={lang:this.params.lang,event_id:this.identifier};return o.fetch(s.eventVideo(),t)}),t.overrideProperty("scribeItemType",{get:function(){return a.LIVE_VIDEO_EVENT}}),t.overrideProperty("name",{get:function(){return"event"}}),t.before("initialize",function(){if(!r(this.params.url,this.params.id))throw new Error("one of url or id is required")})}},function(t,e,n){function r(t){return{success:!t.error,resp:t}}function i(t){return t.data.html}function o(t){return a.reject(t.error.detail)}var s=n(133),a=n(2);t.exports={fetch:function(t,e){return s.fetch(t,e,r).then(i,o)}}},function(t,e,n){var r=n(12);t.exports=r.aug({},n(263),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272))},function(t,e,n){var r=n(85),n=n(264)(["userId"],{},r);t.exports={createDMButton:n}},function(t,e,n){var c=n(2),d=n(34),l=n(46),f=n(26),h=n(12);t.exports=function(o,s,a){var u;return s=s||{},u="ƒ("+(o=o||[]).join(", ")+", target, [options]);",function(){var e,n,r,i=Array.prototype.slice.apply(arguments,[0,o.length]),t=Array.prototype.slice.apply(arguments,[o.length]);return t.forEach(function(t){if(t)return t.nodeType===Node.ELEMENT_NODE?void(r=t):h.isType("function",t)?void(e=t):void(h.isType("object",t)&&(n=t))}),i.length!==o.length||0===t.length?(e&&h["async"](function(){e(!1)}),c.reject(new Error("Not enough parameters. Expected: "+u))):r?(n=h.aug({},n||{},s),o.forEach(function(t){n[t]=i.shift()}),f.asBoolean(n.dnt)&&l.setOn(),t=d.addWidget(a(n,r)),e&&t.then(e,function(){e(!1)}),t):(e&&h["async"](function(){e(!1)}),c.reject(new Error("No target element specified. Expected: "+u)))}}},function(t,e,n){var r=n(113),n=n(264)(["screenName"],{},r);t.exports={createFollowButton:n}},function(t,e,n){var r=n(128),n=n(264)(["collectionId"],{},r);t.exports={createGridFromCollection:n}},function(t,e,n){var r=n(163),n=n(264)(["momentId"],{},r);t.exports={createMoment:n}},function(t,e,n){var r=n(174),n=n(264)(["username"],{},r);t.exports={createPeriscopeOnAirButton:n}},function(t,e,n){var r=n(11),i=n(24),o=n(12),s=n(26),a=n(180),u=n(195),c=n(197),d=n(264)([],{},c),l=n(2),c={createTimeline:function(t){var e,n=o.toRealArray(arguments).slice(1);return o.isObject(t)||s.isString(t)?(t=t||{},n.forEach(function(t){o.isType("object",t)&&((t=e=t).ariaLive=t.ariaPolite)}),e||(e={},n.push(e)),(t=s.isString(t)?o.aug({},e,{sourceType:"widget",widgetId:t}):t).lang=e.lang,t.tweetLimit=e.tweetLimit,t.showReplies=e.showReplies,e.dataSource=a(t),e.useLegacyDefaults=e.dataSource instanceof u,d.apply(this,n)):l.reject("data source must be a string or an object.")}};i.isTwitterURL(r.href)&&(c.createTimelinePreview=function(t,e,n){t={previewParams:t,useLegacyDefaults:!0,isPreviewTimeline:!0};return t.dataSource=a(t),d(e,t,n)}),t.exports=c},function(t,e,n){var r,i=n(12),o=n(225),n=n(264),o=(r=n(["tweetId"],{},o),function(){return i.toRealArray(arguments).slice(1).forEach(function(t){i.isType("object",t)&&(t.hideCard="none"==t.cards||"hidden"==t.cards,t.hideThread="none"==t.conversation||"hidden"==t.conversation)}),r.apply(this,arguments)});t.exports={createTweet:o,createTweetEmbed:o}},function(t,e,n){function r(t){return function(){return i.toRealArray(arguments).slice(1).forEach(function(t){i.isType("object",t)&&(t.screenName=t.screenName||t.screen_name,t.buttonHashtag=t.buttonHashtag||t.button_hashtag||t.hashtag)}),t.apply(this,arguments)}}var i=n(12),o=n(244),n=n(264),s=n(["url"],{type:"share"},o),a=n(["buttonHashtag"],{type:"hashtag"},o),o=n(["screenName"],{type:"mention"},o);t.exports={createShareButton:r(s),createHashtagButton:r(a),createMentionButton:r(o)}},function(t,e,n){var r=n(249),i=n(264),o=n(12),s=n(26),a=n(254),u=i([],{},r);t.exports={createVideo:function(t){var e,n=o.toRealArray(arguments).slice(1),r=t||{};return n.forEach(function(t){o.isType("object",t)&&(e=t)}),e||(e={},n.push(e)),(r=s.isString(t)||s.isNumber(t)?{sourceType:"tweet",id:t}:r).lang=e.lang,e.dataSource=a(r),u.apply(this,n)}}},function(t,e,n){function r(){var t,e;for(c=1,t=0,e=d.length;t<e;t++)d[t]()}var i,o,s,a=n(9),u=n(7),c=0,d=[],l=a.createElement("a");/^loade|c/.test(a.readyState)&&(c=1),a.addEventListener&&a.addEventListener("DOMContentLoaded",o=function(){a.removeEventListener("DOMContentLoaded",o,!1),r()},!1),l.doScroll&&a.attachEvent("onreadystatechange",i=function(){/^c/.test(a.readyState)&&(a.detachEvent("onreadystatechange",i),r())}),s=l.doScroll?function(t){if(u.self!=u.top)c?t():d.push(t);else{try{l.doScroll("left")}catch(e){return void setTimeout(function(){s(t)},50)}t()}}:function(t){c?t():d.push(t)},t.exports=s},function(t,e,n){var r=n(52),i=n(18);t.exports=function(){i.set("buildVersion",r.version)}},function(t,e,n){n(276),n(240),n(280)},function(t,e,n){var r=n(277),i=n(241),o=n(279),s=new r;i.emitter.bind(i.START,function(){s.start()}),i.emitter.bind(i.ALL_WIDGETS_RENDERED,function(){s.end(),o(s.duration(),{action:"render"})})},function(t,e,n){function r(){}var i=n(278);r.prototype.start=function(){this._startTime=i()},r.prototype.end=function(){this._duration=i()-this._startTime},r.prototype.duration=function(){return this._duration},t.exports=r},function(t,e,n){var r=n(7);t.exports=function(){return(r.performance&&r.performance.now?r.performance:Date).now()}},function(t,e,n){var r=n(42),i=n(47),o=n(12);t.exports=function(t,e){t={widget_origin:i.rootDocumentLocation(),widget_frame:i.isFramed()?i.currentDocumentLocation():null,duration_ms:t},e=o.aug(e,{page:"page",component:"performance"});r.scribe(e,t)}},function(t,e,n){function r(t){return t.performance.getEntriesByType("resource").filter(function(t){return a.isTwimgURL(t.name)||a.isTwitterURL(t.name)}).reduce(function(t,e){return t[e.name]=e.duration,t},{})}var i=n(241),o=n(279),s=n(281),a=n(24),u=n(7),c=n(12),d=n(8),l=n(109);i.emitter.bind(i.ALL_WIDGETS_AND_IMAGES_LOADED,function(t){var e,i,n=[];d.hasPerformanceInformation()&&(e=r(u),l.isSupported()||(n=t.reduce(function(t,e){return c.aug(t,r(e.contentDocument.defaultView))},{})),i=c.aug({},e,n),Object.keys(s).forEach(function(t){var n,r,e;n=i,r=s[t=t],e=Object.keys(n).reduce(function(t,e){return r(e)?t+n[e]:t},0),o(e,{element:t,action:"resource"})}))})},function(t,e,n){var r=n(24);t.exports={all:function(){return!0},image:function(t){return r.isTwimgURL(t)},settings:function(t){return r.isSettingsURL(t)},widget_iframe:function(t){return r.isWidgetIframeURL(t)}}}],u=window.__twttrll,window.__twttrll=function(t,e){for(var n,r,i=0,o=[];i<t.length;i++)r=t[i],c[r]&&o.push.apply(o,c[r]),c[r]=0;for(n in e)a[n]=e[n];for(u&&u(t,e);o.length;)o.shift().call(null,null,s)},n={},c={0:0},s.e=function(t,e){},s.e=function(e,t){if(0===c[e])return t.call(null,null,s);var n;void 0!==c[e]?c[e].push(t):(c[e]=[t],t=document.getElementsByTagName("head")[0],(n=document.createElement("script")).type="text/javascript",n.charset="utf-8",n["async"]=!0,n.onerror=function(){var t=c[e];for(n.onerror=null,delete c[e];t.length;)t.shift().call(null,new Error("failed to load chunk"))},n.src=s.p+"js/"+({1:"dm_button",2:"button",3:"grid",4:"moment",5:"periscope_on_air",6:"timeline",7:"tweet"}[e]||e)+"."+{1:"c6be4b2e80c5f8e8ea3a14f6031d5829",2:"556f0ea0e4da4e66cfdc182016dbd6db",3:"02a514d04aeb6f322ae55d7a4199f023",4:"79f50aa1e4cce1324345722b56882213",5:"57bea11535cf101cb36a419b56d50d70",6:"dfc64d2ffc9c3e764787417d99341394",7:"d657a9cf9370747df5a1bde99a943bd9"}[e]+".js",t.appendChild(n))},s.m=a,s.c=n,s.p="https://platform.twitter.com/",s(0))))}();
|
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
== 2.6.18 ==
|
2 |
Release date: August 17, 2022
|
3 |
* Fixed: Posts - PHP error when Avoid Duplicates option is enabled
|
1 |
+
== 2.6.19 ==
|
2 |
+
Release date: August 19, 2022
|
3 |
+
* Fixed: Copy and paste styling of element prevents the page from saving after Elementor 3.7.0
|
4 |
+
|
5 |
== 2.6.18 ==
|
6 |
Release date: August 17, 2022
|
7 |
* Fixed: Posts - PHP error when Avoid Duplicates option is enabled
|
languages/powerpack.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the GNU General Public License v2.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: PowerPack Lite for Elementor 2.6.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
-
"https://wordpress.org/support/plugin/powerpack-lite-elementor\n"
|
8 |
-
"POT-Creation-Date: 2022-08-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the GNU General Public License v2.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: PowerPack Lite for Elementor 2.6.19\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
+
"https://wordpress.org/support/plugin/powerpack-lite-for-elementor\n"
|
8 |
+
"POT-Creation-Date: 2022-08-19 04:28:33+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
modules/display-conditions/module.php
CHANGED
@@ -440,7 +440,7 @@ class Module extends Module_Base {
|
|
440 |
'condition' => [
|
441 |
'pp_display_conditions_enable' => 'yes',
|
442 |
],
|
443 |
-
'fields' => $this->_conditions_repeater->get_controls(),
|
444 |
'title_field' => 'Condition',
|
445 |
]
|
446 |
);
|
440 |
'condition' => [
|
441 |
'pp_display_conditions_enable' => 'yes',
|
442 |
],
|
443 |
+
'fields' => array_values( $this->_conditions_repeater->get_controls() ),
|
444 |
'title_field' => 'Condition',
|
445 |
]
|
446 |
);
|
package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "powerpack-lite-for-elementor",
|
3 |
-
"version": "2.6.
|
4 |
"description": "Extend Elementor Page Builder with 50+ Creative Widgets.",
|
5 |
"keywords": [],
|
6 |
"author": "IdeaBox Creations",
|
1 |
{
|
2 |
"name": "powerpack-lite-for-elementor",
|
3 |
+
"version": "2.6.19",
|
4 |
"description": "Extend Elementor Page Builder with 50+ Creative Widgets.",
|
5 |
"keywords": [],
|
6 |
"author": "IdeaBox Creations",
|
powerpack-lite-elementor.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
* Plugin Name: PowerPack Lite for Elementor
|
4 |
* Plugin URI: https://powerpackelements.com
|
5 |
* Description: Extend Elementor Page Builder with 40+ Creative Widgets and exciting extensions.
|
6 |
-
* Version: 2.6.
|
7 |
* Author: IdeaBox Creations
|
8 |
* Author URI: http://ideabox.io/
|
9 |
* License: GNU General Public License v2.0
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: powerpack
|
12 |
* Domain Path: /languages
|
13 |
-
* Elementor tested up to: 3.
|
14 |
-
* Elementor Pro tested up to: 3.7.
|
15 |
*/
|
16 |
|
17 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -20,7 +20,7 @@ if ( defined( 'POWERPACK_ELEMENTS_VER' ) ) {
|
|
20 |
return;
|
21 |
}
|
22 |
|
23 |
-
define( 'POWERPACK_ELEMENTS_LITE_VER', '2.6.
|
24 |
define( 'POWERPACK_ELEMENTS_LITE_PATH', plugin_dir_path( __FILE__ ) );
|
25 |
define( 'POWERPACK_ELEMENTS_LITE_BASE', plugin_basename( __FILE__ ) );
|
26 |
define( 'POWERPACK_ELEMENTS_LITE_URL', plugins_url( '/', __FILE__ ) );
|
3 |
* Plugin Name: PowerPack Lite for Elementor
|
4 |
* Plugin URI: https://powerpackelements.com
|
5 |
* Description: Extend Elementor Page Builder with 40+ Creative Widgets and exciting extensions.
|
6 |
+
* Version: 2.6.19
|
7 |
* Author: IdeaBox Creations
|
8 |
* Author URI: http://ideabox.io/
|
9 |
* License: GNU General Public License v2.0
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: powerpack
|
12 |
* Domain Path: /languages
|
13 |
+
* Elementor tested up to: 3.7.1
|
14 |
+
* Elementor Pro tested up to: 3.7.3
|
15 |
*/
|
16 |
|
17 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
20 |
return;
|
21 |
}
|
22 |
|
23 |
+
define( 'POWERPACK_ELEMENTS_LITE_VER', '2.6.19' );
|
24 |
define( 'POWERPACK_ELEMENTS_LITE_PATH', plugin_dir_path( __FILE__ ) );
|
25 |
define( 'POWERPACK_ELEMENTS_LITE_BASE', plugin_basename( __FILE__ ) );
|
26 |
define( 'POWERPACK_ELEMENTS_LITE_URL', plugins_url( '/', __FILE__ ) );
|
readme.txt
CHANGED
@@ -230,6 +230,9 @@ Not at all! All the widgets and settings are easy to use with drag & drop interf
|
|
230 |
|
231 |
== Changelog ==
|
232 |
|
|
|
|
|
|
|
233 |
= 2.6.18 - August 17, 2022 =
|
234 |
* Fixed: Posts - PHP error when Avoid Duplicates option is enabled
|
235 |
* Fixed: Icon List - Icon Vertical Alignment was not working when link is added
|
230 |
|
231 |
== Changelog ==
|
232 |
|
233 |
+
= 2.6.19 - August 19, 2022 =
|
234 |
+
* Fixed: Copy and paste styling of element prevents the page from saving after Elementor 3.7.0
|
235 |
+
|
236 |
= 2.6.18 - August 17, 2022 =
|
237 |
* Fixed: Posts - PHP error when Avoid Duplicates option is enabled
|
238 |
* Fixed: Icon List - Icon Vertical Alignment was not working when link is added
|