1!function(e){var o={};function n(t){if(o[t])return o[t].exports;var r=o[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=o,n.d=function(e,o,t){n.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,o){if(1&o&&(e=n(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var r in e)n.d(t,r,function(o){return e[o]}.bind(null,r));return t},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},n.p="",n(n.s=273)}({273:function(e,o){!function(){"use strict";let e,o;function n(e){return new Promise((o,n)=>{const t=document.createElement("script");t.onload=()=>o(),t.onerror=e=>n(e),t.src=e,document.body.appendChild(t)})}function t(){if(e)return e;const o=window.wpcom_coblocks_js;return e=n(o.coblocks_lightbox_js),e}function r(){if(o)return o;window.wpcomJQueryUsageLoggerDisabled=!0;const e=window.wpcom_coblocks_js,t=window.jQuery?Promise.resolve():n(e.jquery_core_js).then(()=>n(e.jquery_migrate_js)),r=t.then(()=>window.imagesLoaded?Promise.resolve():n(e.imagesloaded_js)),c=t.then(()=>window.Masonry?Promise.resolve():n(e.masonry_js)),u=Promise.all([t,r,c]).then(()=>n(e.coblocks_masonry_js));return o=u,o}function c(){document.querySelector(".wp-block-coblocks-gallery-masonry")&&r(),document.querySelector(".has-lightbox")&&t(),document.body.classList.contains("block-editor-page")&&(r(),t())}"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c)}()}});; 2/** 3 * File navigation.js. 4 * 5 * Handles toggling the navigation menu for small screens and enables TAB key 6 * navigation support for dropdown menus. 7 */ 8( function() { 9 var container, button, menu, links, subMenus, i, len; 10 11 container = document.getElementById( 'site-navigation' ); 12 if ( ! container ) { 13 return; 14 } 15 16 button = container.getElementsByTagName( 'button' )[0]; 17 if ( 'undefined' === typeof button ) { 18 return; 19 } 20 21 menu = container.getElementsByTagName( 'ul' )[0]; 22 23 // Hide menu toggle button if menu is empty and return early. 24 if ( 'undefined' === typeof menu ) { 25 button.style.display = 'none'; 26 return; 27 } 28 29 menu.setAttribute( 'aria-expanded', 'false' ); 30 if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { 31 menu.className += ' nav-menu'; 32 } 33 34 button.onclick = function() { 35 if ( -1 !== container.className.indexOf( 'toggled' ) ) { 36 container.className = container.className.replace( ' toggled', '' ); 37 button.setAttribute( 'aria-expanded', 'false' ); 38 menu.setAttribute( 'aria-expanded', 'false' ); 39 } else { 40 container.className += ' toggled'; 41 button.setAttribute( 'aria-expanded', 'true' ); 42 menu.setAttribute( 'aria-expanded', 'true' ); 43 } 44 }; 45 46 // Get all the link elements within the menu. 47 links = menu.getElementsByTagName( 'a' ); 48 subMenus = menu.getElementsByTagName( 'ul' ); 49 50 // Set menu items with submenus to aria-haspopup="true". 51 for ( i = 0, len = subMenus.length; i < len; i++ ) { 52 subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' ); 53 } 54 55 // Each time a menu link is focused or blurred, toggle focus. 56 for ( i = 0, len = links.length; i < len; i++ ) { 57 links[i].addEventListener( 'focus', toggleFocus, true ); 58 links[i].addEventListener( 'blur', toggleFocus, true ); 59 } 60 61 /** 62 * Sets or removes .focus class on an element. 63 */ 64 function toggleFocus() { 65 var self = this; 66 67 // Move up through the ancestors of the current link until we hit .nav-menu. 68 while ( -1 === self.className.indexOf( 'nav-menu' ) ) { 69 70 // On li elements toggle the class .focus. 71 if ( 'li' === self.tagName.toLowerCase() ) { 72 if ( -1 !== self.className.indexOf( 'focus' ) ) { 73 self.className = self.className.replace( ' focus', '' ); 74 } else { 75 self.className += ' focus'; 76 } 77 } 78 79 self = self.parentElement; 80 } 81 } 82
83 /** 84 * Toggles `focus` class to allow submenu access on tablets. 85 */ 86 ( function ( container ) { 87 var touchStartFn, 88 parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' ); 89 90 if ( 'ontouchstart' in window ) { 91 touchStartFn = function( e ) { 92 var menuItem = this.parentNode; 93 94 if ( ! menuItem.classList.contains( 'focus' ) ) { 95 e.preventDefault(); 96 for( var i = 0; i < menuItem.parentNode.children.length; ++i ) { 97 if ( menuItem === menuItem.parentNode.children[i] ) { 98 continue; 99 } 100 menuItem.parentNode.children[i].classList.remove( 'focus' ); 101 } 102 menuItem.classList.add( 'focus' ); 103 } else { 104 menuItem.classList.remove( 'focus' ); 105 } 106 }; 107 108 for ( var i = 0; i < parentLink.length; ++i ) { 109 parentLink[i].addEventListener( 'touchstart', touchStartFn, false ); 110 } 111 } 112 } ( container ) ); 113} )(); 114; 115/** 116 * File skip-link-focus-fix.js. 117 * 118 * Helps with accessibility for keyboard only users. 119 * 120 * Learn more: https://git.io/vWdr2 121 */ 122( function() { 123 var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 124 isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 125 isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 126 127 if ( ( isWebkit || isOpera || isIe ) && document.getElementById && window.addEventListener ) { 128 window.addEventListener( 'hashchange', function() { 129 var id = location.hash.substring( 1 ), 130 element; 131 132 if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 133 return; 134 } 135 136 element = document.getElementById( id ); 137 138 if ( element ) { 139 if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 140 element.tabIndex = -1; 141 } 142 143 element.focus(); 144 } 145 }, false ); 146 } 147})(); 148; 149/** 150 * Handles sticky header 151 */ 152 153( function () { 154 'use strict'; 155 156 var stickyHeader = document.querySelector( '.sticky-wrapper' ); 157 var topBar = document.querySelector( '.top-bar' ); 158 var stickyHeaderOffset = parseFloat( 159 ( getComputedStyle( topBar ).height || '0' ).replace( 'px', '' ) 160 ); 161 162 var nextFrame = null; 163 164 if ( ! stickyHeader || ! topBar ) { 165 return; 166 } 167 168 function stickyTime() { 169 var windowWidth = document.documentElement.clientWidth; 170 171 if ( window.pageYOffset >= stickyHeaderOffset && windowWidth >= 1100 ) { 172 stickyHeader.classList.add( 'sticking' ); 173 174 var stuckHeader = document.querySelector( '.sticky-wrapper.sticking' ); 175 var stickyHeaderHeight = getComputedStyle( stuckHeader ).height; 176 177 document.body.style.paddingTop = stickyHeaderHeight; 178 topBar.style.visibility = 'hidden'; 179 } else { 180 stickyHeader.classList.remove( 'sticking' ); 181 document.body.removeAttribute( 'style' ); 182 topBar.removeAttribute( 'style' ); 183 } 184 185 nextFrame = null; 186 } 187 188 if ( document.readyState === 'complete' ) { 189 stickyTime(); 190 } else { 191 window.addEventListener( 'load', stickyTime ); 192 } 193 194 document.addEventListener( 'scroll', function () { 195 if ( window.requestAnimationFrame ) { 196 nextFrame = nextFrame || requestAnimationFrame( stickyTime ); 197 } else { 198 stickyTime(); 199 } 200 } ); 201} )(); 202; 203/*! This file is auto-generated */ 204window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);
204d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);; 205!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.JetpackScriptDataModule=t():e.JetpackScriptDataModule=t()}(globalThis,()=>(()=>{"use strict";var e={729(e,t,r){r.d(t,{$8:()=>n.$8,IT:()=>n.IT,KS:()=>n.KS,L2:()=>n.L2,Sy:()=>n.Sy,au:()=>n.au,d_:()=>n.d_,e5:()=>n.e5,hT:()=>n.hT,lI:()=>n.lI,mH:()=>n.mH,oQ:()=>n.oQ,sV:()=>n.sV});var n=r(336)},336(e,t,r){function n(){return window.JetpackScriptData}function o(){return n()?.site}function i(e=""){return`${n()?.site.admin_url}${e}`}function a(e=""){return i(`admin.php?page=jetpack${e}`)}function u(e=""){return i(`admin.php?page=my-jetpack${e}`)}function p(){return n()?.site.plan?.features?.active??[]}function c(e){return-1!==p().indexOf(e)}function s(){return"wpcom"===n()?.site?.host}function f(){return"woa"===n()?.site?.host}function d(){return n()?.site?.is_wpcom_platform}function l(){return"unknown"===n()?.site?.host}function S(){return s()?"simple":f()?"woa":"jetpack"}function m(e){return n()?.user.current_user.capabilities[e]}r.d(t,{$8:()=>d,IT:()=>c,KS:()=>S,L2:()=>l,Sy:()=>s,au:()=>n,d_:()=>m,e5:()=>u,hT:()=>i,lI:()=>f,mH:()=>p,oQ:()=>a,sV:()=>o})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{currentUserCan:()=>o.d_,getActiveFeatures:()=>o.mH,getAdminUrl:()=>o.hT,getJetpackAdminPageUrl:()=>o.oQ,getMyJetpackUrl:()=>o.e5,getScriptData:()=>o.au,getSiteData:()=>o.sV,getSiteType:()=>o.KS,isJetpackSelfHostedSite:()=>o.L2,isSimpleSite:()=>o.Sy,isWoASite:()=>o.lI,isWpcomPlatformSite:()=>o.$8,siteHasFeature:()=>o.IT});var o=r(729);return n})());; 206!function(){"use strict";var e,t={noop:function(){},texturize:function(e){return(e=(e=(e=(e+="").replace(/'/g,"’").replace(/'/g,"’")).replace(/"/g,"”").replace(/"/g,"”").replace(/"/g,"”").replace(/[\u201D]/g,"”")).replace(/([\w]+)=&#[\d]+;(.+?)&#[\d]+;/g,'$1="$2"')).trim()},applyReplacements:function(e,t){if(e)return t?e.replace(/{(\d+)}/g,function(e,r){return void 0!==t[r]?t[r]:e}):e}
206,getBackgroundImage:function(e){var t=document.createElement("canvas"),r=t.getContext&&t.getContext("2d");if(e){r.filter="blur(20px) ",r.drawImage(e,0,0);var o=t.toDataURL("image/png");return t=null,o}}},r=function(){function e(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function r(e,t,r,o){if(!e)return o();e.style.removeProperty("display"),e.style.opacity=t,e.style.pointerEvents="none";var a=function(i,n){var l=(performance.now()-i)/n;l<1?(e.style.opacity=t+(r-t)*l,requestAnimationFrame(()=>a(i,n))):(e.style.opacity=r,e.style.removeProperty("pointer-events"),o())};requestAnimationFrame(function(){requestAnimationFrame(function(){a(performance.now(),200)})})}return{closest:function(t,r){if(t.closest)return t.closest(r);var o=t;do{if(e(o,r))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null},matches:e,hide:function(e){e&&(e.style.display="none")},show:function(e){e&&(e.style.display="block")},fadeIn:function(e,o){r(e,0,1,o=o||t.noop)},fadeOut:function(e,o){o=o||t.noop,r(e,1,0,function(){e&&(e.style.display="none"),o()})},scrollToElement:function(e,t,r){if(!e||!t)return r?r():void 0;var o=t.querySelector(".jp-carousel-info-extra");o&&(o.style.minHeight=window.innerHeight-64+"px");var a=!0,i=Date.now(),n=t.scrollTop,l=Math.max(0,e.offsetTop-Math.max(0,window.innerHeight-function(e){var t=e.querySelector(".jp-carousel-info-footer"),r=e.querySelector(".jp-carousel-info-extra"),o=e.querySelector(".jp-carousel-info-content-wrapper");if(t&&r&&o){var a=window.getComputedStyle(r),i=parseInt(a.paddingTop,10)+parseInt(a.paddingBottom,10);return i=isNaN(i)?0:i,o.offsetHeight+t.offsetHeight+i}return 0}(t)))-t.scrollTop;function s(){a=!1}l=Math.min(l,t.scrollHeight-window.innerHeight),t.addEventListener("wheel",s),function e(){var c,u=Date.now(),d=(c=(u-i)/300)<.5?2*c*c:1-Math.pow(-2*c+2,2)/2,p=(d=d>1?1:d)*l;if(t.scrollTop=n+p,u<=i+300&&a)return requestAnimationFrame(e);r&&r(),o&&(o.style.minHeight=""),a=!1,t.removeEventListener("wheel",s)}()},getJSONAttribute:function(e,t){if(e&&e.hasAttribute(t))try{return JSON.parse(e.getAttribute(t))}catch{return}},convertToPlainText:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},stripHTML:function(e){var t=document.createElement("div");return t.innerHTML=e.replace(/<[^>]*>?/gm,""),t.textContent},emitEvent:function(e,t,r){var o;try{o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r||null})}catch{(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r||null)}e.dispatchEvent(o)},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}}();function o(){var o,a,i,n,l="",s=!1,c="div.gallery, div.tiled-gallery, ul.wp-block-gallery, ul.blocks-gallery-grid, figure.wp-block-gallery.has-nested-images, div.wp-block-jetpack-tiled-gallery, a.single-image-gallery",u=".gallery-item, .tiled-gallery-item, .blocks-gallery-item, .tiled-gallery__item",d=u+", .wp-block-image",p={},m="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.stat?wpcom.carousel.stat:t.noop,g="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.pageview?wpcom.carousel.pageview:t.noop;function h(t){if(!s)switch(t.which){case 38:t.preventDefault(),p.overlay.scrollTop-=100;break;case 40:t.preventDefault(),p.overlay.scrollTop+=100;break;case 39:t.preventDefault(),e.slideNext();break;case 37:case 8:t.preventDefault(),e.slidePrev();break;case 27:t.preventDefault(),k()}}function f(){s=!0}function v(){s=!1}function y(e){e.role="button",e.tabIndex=0,e.ariaLabel=jetpackCarouselStrings.image_label}function w(){p.overlay||(p.overlay=document.querySelector(".jp-carousel-overlay"),p.container=p.overlay.querySelector(".jp-carousel-wrap"),p.gallery=p.container.querySelector(".jp-carousel"),p.info=p.overlay.querySelector(".jp-carousel-info"),p.caption=p.info.querySelector(".jp-carousel-caption"),p.commentField=p.overlay.querySelector("#jp-carousel-comment-form-comment-field"),p.emailField=p.overlay.querySelector("#jp-carousel-comment-form-email-field"),p.authorField=p.overlay.querySelector("#jp-carousel-comment-form-author-field"),p.urlField=p.overlay.querySelector("#jp-carousel-comment-form-url-field"),window.innerWidth<=760&&Math.round(window.innerWidth/760*110)<40&&r.isTouch(),[p.commentField,p.emailField,p.authorField,p.urlField].forEac
206h(function(e){e&&(e.addEventListener("focus",f),e.addEventListener("blur",v))}),p.overlay.addEventListener("click",function(e){var t,o,a=e.target,i=!!r.closest(a,".jp-carousel-close-hint"),n=!!window.matchMedia("(max-device-width: 760px)").matches;a===p.overlay?n||k():i?k():a.classList.contains("jp-carousel-image-download")?m("download_original_click"):a.classList.contains("jp-carousel-comment-login")?(t=p.currentSlide,o=t?t.attrs.attachmentId:"0",window.location.href=jetpackCarouselStrings.login_url+"%23jp-carousel-"+o):r.closest(a,"#jp-carousel-comment-form-container")?function(e){var t=e.target,o=r.getJSONAttribute(p.container,"data-carousel-extra")||{},a=p.currentSlide.attrs.attachmentId,i=document.querySelector("#jp-carousel-comment-form-submit-and-info-wrapper"),n=document.querySelector("#jp-carousel-comment-form-spinner"),l=document.querySelector("#jp-carousel-comment-form-button-submit"),s=document.querySelector("#jp-carousel-comment-form");if(p.commentField&&p.commentField.getAttribute("id")===t.getAttribute("id"))f(),r.show(i);else if(r.matches(t,'input[type="submit"]')){e.preventDefault(),e.stopPropagation(),r.show(n),s.classList.add("jp-carousel-is-disabled");var c={action:"post_attachment_comment",nonce:jetpackCarouselStrings.nonce,blog_id:o.blog_id,id:a,comment:p.commentField.value};if(!c.comment.length)return void j(jetpackCarouselStrings.no_comment_text,!1);if(1!==Number(jetpackCarouselStrings.is_logged_in)&&(c.email=p.emailField.value,c.author=p.authorField.value,c.url=p.urlField.value,1===Number(jetpackCarouselStrings.require_name_email))){if(!c.email.length||!c.email.match("@"))return void j(jetpackCarouselStrings.no_comment_email,!1);if(!c.author.length)return void j(jetpackCarouselStrings.no_comment_author,!1)}var u=new XMLHttpRequest;u.open("POST",jetpackCarouselStrings.ajaxurl,!0),u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),u.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE&&this.status>=200&&this.status<300){var e;try{e=JSON.parse(this.response)}catch{return void j(jetpackCarouselStrings.comment_post_error,!1)}"approved"===e.comment_status?j(jetpackCarouselStrings.comment_approved,!0):"unapproved"===e.comment_status?j(jetpackCarouselStrings.comment_unapproved,!0):j(jetpackCarouselStrings.comment_post_error,!1),T(),E(a),l.value=jetpackCarouselStrings.post_comment,r.hide(n),s.classList.remove("jp-carousel-is-disabled")}else j(jetpackCarouselStrings.comment_post_error,!1)};var d=[];for(var m in c)if(m){var g=encodeURIComponent(m)+"="+encodeURIComponent(c[m]);d.push(g.replace(/%20/g,"+"))}var h=d.join("&");u.send(h)}}(e):(r.closest(a,".jp-carousel-photo-icons-container")||a.classList.contains("jp-carousel-photo-title"))&&function(e){e.preventDefault();var t=e.target,o=p.info.querySelector(".jp-carousel-info-extra"),a=p.info.querySelector(".jp-carousel-image-meta"),i=p.info.querySelector(".jp-carousel-comments-wrapper"),n=p.info.querySelector(".jp-carousel-icon-info"),l=p.info.querySelector(".jp-carousel-icon-comments");function s(){l&&l.classList.remove("jp-carousel-selected"),n.classList.toggle("jp-carousel-selected"),i&&i.classList.remove("jp-carousel-show"),a&&(a.classList.toggle("jp-carousel-show"),a.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}function c(){n&&n.classList.remove("jp-carousel-selected"),l.classList.toggle("jp-carousel-selected"),a&&a.classList.remove("jp-carousel-show"),i&&(i.classList.toggle("jp-carousel-show"),i.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}(r.closest(t,".jp-carousel-icon-info")||t.classList.contains("jp-carousel-photo-title"))&&(a&&a.classList.contains("jp-carousel-show")?r.scrollToElement(p.overlay,p.overlay,s):(s(),r.scrollToElement(p.info,p.overlay))),r.closest(t,".jp-carousel-icon-comments")&&(i&&i.classList.contains("jp-carousel-show")?r.scrollToElement(p.overlay,p.overlay,c):(c(),r.scrollToElement(p.info,p.overlay)))}(e)}),window.addEventListener("keydown",h),p.overlay.addEventListener("jp_carousel.afterOpen",function(){v(),p.slides.length<=1||(p.slides.length<=5?r.show(p.info.querySelector(".jp-swiper-pagination")):r.show(p.info.querySelector(".jp-carousel-pagination")))}),p.overlay.addEventListener("jp_carousel.beforeClose",function(){f(),document.documentElement.style.removeProperty("height"),e&&e.enable(),r.hide(p.info.querySelector(".jp-swiper-pagination")),r.hide(p.info.querySelector(".jp-carousel-pagination"))}),p.overlay.addEventListener("jp_carousel.afterClose",function(){window.history.pushState?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.href="",l="",p.isOpen=!1}),p.overlay.addEventListener("touchstart",function(e){e.touches.length>1&&e.preventDefault()}))}function j(e,t){var o=p.overlay.querySelector("#jp-carousel-comment-post-results"),a="jp-carousel-comment-post-"+(t?"success":"error");o.innerHTML='<span class="'+a+'">'+e+"</span>",r.hide(p.overlay.querySelector("#jp-carousel-comment-form-spinner")),p.overlay.querySelector("#jp-carousel-comment-form").classList.remove("jp-carousel-is-disabled"),r.show(o)}function b(){var e=document.querySelectorAll("a img[data-attachment-id]");Array.prototype.forEach.call(e,function(e){var t=e.parentElement,o=t.parentElement;if(!o.classList.contains("gallery-icon")&&!r.closest(o,u)&&t.hasAttribute("href")){var a=!1;t.getAttribute("href").split("?")[0]===e.getAttribute("data-orig-file").split("?")[0]&&1===Number(jetpackCarouselStrings.single_image_gallery_media_file)&&(a=!0),t.getAttribute("href")===e.getAttribute("data-permalink")&&(a=!0),a&&(y(e),t.classList.add("single-image-gallery"),t.setAttribute("data-carousel-extra",JSON.stringify({blog_id:Number(jetpackCarouselStrings.blog_id)})))}})}function S(t,r){p.isOpen?(L(r),e.slideTo(r+1)):M(t,{startIndex:r})}function L(e){(!e||e<0||e>p.slides.length)&&(e=0),p.currentSlide=p.slides[e];var o,a,i=p.currentSlide,n=i.attrs.attachmentId;C(p.slides[e]),function(e){var t=[],r=p.slides.length;if(r>1){var o=e>0?e-1:r-1;t.push(o);var a=e<r-1?e+1:0;t.push(a)}t.forEach(function(e){var t=p.slides[e];t&&(C(t),1!==Number(jetpackCarouselStrings.display_background_image)||t.backgroundImage||_(t))})}(e),1!==Number(jetpackCarouselStrings.display_background_image)||p.slides[e].backgroundImage||_(p.slides[e]),r.hide(p.caption),function(e){var t,o,a,i,n="",l="",s="";if(t=p.overlay.querySelector(".jp-carousel-photo-caption"),o=p.overlay.querySelector(".jp-carousel-caption"),a=p.overlay.querySelector(".jp-carousel-photo-title"),i=p.overlay.querySelector(".jp-carousel-photo-description"),r.hide(t),r.hide(o),r.hide(a),r.hide(i),n=A(e.caption)||"",l=A(e.title)||"",s=A(e.desc)||"",(n||l||s)&&(n&&(t.innerHTML=n,o.innerHTML=n,r.show(t),r.show(o)),r.stripHTML(n)===r.stripHTML(l)&&(l=""),r.stripHTML(n)===r.stripHTML(s)&&(s=""),r.stripHTML(l)===r.
206stripHTML(s)&&(s=""),s&&(i.innerHTML=s,r.show(i),l||n||(t.textContent=r.stripHTML(s),r.show(t))),l)){var c=r.stripHTML(l);a.textContent=c,n||(t.textContent=c,o.textContent=c,r.show(t)),r.show(a)}}({caption:i.attrs.caption,title:i.attrs.title,desc:i.attrs.desc}),function(e){if(!e||1!==Number(jetpackCarouselStrings.display_exif))return!1;var t=p.info.querySelector(".jp-carousel-image-meta ul.jp-carousel-image-exif"),r="";for(var o in e){var a=e[o],i=jetpackCarouselStrings.meta_data||[];if(0!==parseFloat(a)&&a.length&&-1!==i.indexOf(o)){switch(o){case"focal_length":a+="mm";break;case"shutter_speed":a=q(a);break;case"aperture":a="f/"+a}r+="<li><h5>"+jetpackCarouselStrings[o]+"</h5>"+a+"</li>"}}t.innerHTML=r,t.style.removeProperty("display")}(p.slides[e].attrs.imageMeta),function(e){if(!e)return!1;var r,o=[e.attrs.origWidth,e.attrs.origHeight],a=document.createElement("a");a.href=e.attrs.src.replace(/\?.+$/,""),r=null!==a.hostname.match(/^i[\d]{1}\.wp\.com$/i)?a.href:e.attrs.origFile.replace(/\?.+$/,"");var i=p.info.querySelector(".jp-carousel-download-text"),n=p.info.querySelector(".jp-carousel-image-download");i.innerHTML=t.applyReplacements(jetpackCarouselStrings.download_original,o),n.setAttribute("href",r),n.style.removeProperty("display")}(i),1===Number(jetpackCarouselStrings.display_comments)&&(o=p.slides[e].attrs.commentsOpened,a=p.info.querySelector("#jp-carousel-comment-form-container"),1===parseInt(o,10)?r.fadeIn(a):r.fadeOut(a),E(n),r.hide(p.info.querySelector("#jp-carousel-comment-post-results")));var s=p.info.querySelector(".jp-carousel-pagination");if(s&&p.slides.length>5){var c=e+1;s.innerHTML="<span>"+c+" / "+p.slides.length+"</span>"}jetpackCarouselStrings.stats&&p.isOpen&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?"+jetpackCarouselStrings.stats+"&post="+encodeURIComponent(n)+"&rand="+Math.random()),p.isOpen&&g(n),l="#jp-carousel-"+n,window.location.hash=l}function k(){document.body.style.overflow=a,document.documentElement.style.overflow=i,T(),f(),r.emitEvent(p.overlay,"jp_carousel.beforeClose"),window.scrollTo(window.scrollX||window.pageXOffset||0,n||0),p.isOpen=!1,e.destroy(),p.slides=[],p.currentSlide=void 0,p.gallery.innerHTML="",r.fadeOut(p.overlay,function(){r.emitEvent(p.overlay,"jp_carousel.afterClose")})}function x(e){if("object"!=typeof e&&(e={}),void 0===e.origFile)return"";if(void 0===e.origWidth||void 0===e.maxWidth)return e.origFile;if(void 0===e.largeFile)return e.origFile;var t=document.createElement("a");t.href=e.largeFile;var r=/^i[0-2]\.wp\.com$/i.test(t.hostname),o=function(e,t,r){var o,a=r?e.replace(/.*=([\d]+%2C[\d]+).*$/,"$1"):e.replace(/.*-([\d]+x[\d]+)\..+$/,"$1");return"9999"===(o=a!==e?r?a.split("%2C"):a.split("x"):[t,0])[0]&&(o[0]="0"),"9999"===o[1]&&(o[1]="0"),o}(e.largeFile,e.origWidth,r),a=parseInt(o[0],10),i=parseInt(o[1],10);if(e.origMaxWidth=e.maxWidth,e.origMaxHeight=e.maxHeight,void 0!==window.devicePixelRatio&&window.devicePixelRatio>1&&(e.maxWidth=e.maxWidth*window.devicePixelRatio,e.maxHeight=e.maxHeight*window.devicePixelRatio),a>=e.maxWidth||i>=e.maxHeight)return e.largeFile;if(r){if(-1===e.largeFile.lastIndexOf("?"))return e.largeFile;var n=function(e){var t;try{t=new URL(e)}catch(t){return e}var r=["quality","ssl","filter","brightness","contrast","colorize","smooth"],o=Array.from(t.searchParams.entries());return t.search="",o.forEach(([e,o])=>{r.includes(e)&&t.searchParams.append(e,o)}),t}(e.largeFile);return(e.origWidth>e.maxWidth||e.origHeight>e.maxHeight)&&(e.origMaxWidth=2*e.maxWidth,e.origMaxHeight=2*e.maxHeight,n.searchParams.set("fit",e.origMaxWidth+","+e.origMaxHeight)),n.toString()}return e.origFile}function q(e){return e>=1?Math.round(10*e)/10+"s":"1/"+Math.round(1/e)+"s"}function A(e){return!e.match(" ")&&e.match("_")?"":e}function E(e,t){var a=void 0===t,i=p.info.querySelector(".jp-carousel-icon-comments .jp-carousel-has-comments-indicator");if(i.classList.remove("jp-carousel-show"),clearInterval(o),e){(!t||t<1)&&(t=0);var n=p.info.querySelector(".jp-carousel-comments"),l=p.info.querySelector("#jp-carousel-comments-loading");r.show(l),a&&(r.hide(n),n.innerHTML="");var s=new XMLHttpRequest,c=jetpackCarouselStrings.ajaxurl+"?action=get_attachment_comments&nonce="+jetpackCarouselStrings.nonce+"&id="+e+"&offset="+t;s.open("GET",c),s.setRequestHeader("X-Requested-With","XMLHttpRequest");var u=function(){r.fadeIn(n),r.fadeOut(l)};s.onload=function(){if(p.currentSlide&&p.currentSlide.attrs.attachmentId===e){var c,d=s.status>=200&&s.status<300;try{c=JSON.parse(s.responseText)}catch{}if(!d||!c||!Array.isArray(c))return u();a&&(n.innerHTML="");for(var m=0;m<c.length;m++){var g=c[m],h=document.createElement("div");h.classList.add("jp-carousel-comment"),h.setAttribute("id","jp-carousel-comment-"+g.id),h.innerHTML='<div class="comment-gravatar">'+g.gravatar_markup+'</div><div class="comment-content"><div class="comment-author">'+g.author_markup+'</div><div class="comment-date">'+g.date_gmt+"</div>"+g.content+"</div>",n.appendChild(h),clearInterval(o),o=setInterval(function(){p.container.scrollTop+150>window.innerHeight&&(E(e,t+10),clearInterval(o))},300)}c.length>0&&(r.show(n),i.innerText=c.length,i.classList.add("jp-carousel-show")),r.hide(l)}},s.onerror=u,s.send()}}function C(e){var t=e.el,r=e.attrs,o=t.querySelector("img");if(!o.hasAttribute("data-loaded")){var a=!!r.previewImage,i=r.thumbSize;!a||i&&t.offsetWidth>i.width?o.src=r.src:o.src=r.previewImage,o.setAttribute("itemprop","image"),o.setAttribute("data-loaded",1)}}function _(t){var r=t.el;e&&e.slides&&(r=e.slides[e.activeIndex]);var o=t.attrs.originalElement;o.complete&&0!==o.naturalHeight?H(t,r,o):o.onload=function(){H(t,r,o)}}
206function H(e,r,o){var a=t.getBackgroundImage(o);e.backgroundImage=a,r.style.backgroundImage="url("+a+")",r.style.backgroundSize="cover"}function T(){p.commentField&&(p.commentField.value="")}function I(e,o){p.slides=[];var a={width:window.innerWidth,height:window.innerHeight-64};0!==o&&null!==e[o].getAttribute("data-gallery-src")&&((new Image).src=e[o].getAttribute("data-gallery-src"));var i=!!r.closest(e[0],".tiled-gallery.type-rectangular");Array.prototype.forEach.call(e,function(e,o){var n=r.closest(e,"a"),l=e.getAttribute("data-orig-file")||e.getAttribute("src-orig"),s=e.getAttribute("data-attachment-id")||e.getAttribute("data-id")||"0",c=document.querySelector('img[data-attachment-id="'+s+'"] + figcaption');c=c?c.innerHTML:e.getAttribute("data-image-caption");var u={originalElement:e,attachmentId:s,commentsOpened:e.getAttribute("data-comments-opened")||"0",imageMeta:r.getJSONAttribute(e,"data-image-meta")||{},title:e.getAttribute("data-image-title")||"",desc:e.getAttribute("data-image-description")||"",largeFile:e.getAttribute("data-large-file")||"",origFile:l||"",thumbSize:{width:e.naturalWidth,height:e.naturalHeight},caption:c||"",permalink:n&&n.getAttribute("href"),src:l||e.getAttribute("src")||""},d=r.closest(e,".tiled-gallery-item"),m=d&&d.querySelector(".tiled-gallery-caption"),g=m&&m.innerHTML;g&&(u.caption=g);var h=function(e){var t=e.getAttribute("data-orig-size")||"";if(t){var r=t.split(",");return{width:parseInt(r[0],10),height:parseInt(r[1],10)}}return{width:e.getAttribute("data-original-width")||e.getAttribute("width")||void 0,height:e.getAttribute("data-original-height")||e.getAttribute("height")||void 0}}(e);if(u.origWidth=h.width||u.thumbSize.width,u.origHeight=h.height||u.thumbSize.height,"undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.generateImgSrc?u.src=wpcom.carousel.generateImgSrc(e,a):u.src=x({origFile:u.src,origWidth:u.origWidth,origHeight:u.origHeight,maxWidth:a.width,maxHeight:a.height,largeFile:u.largeFile}),e.setAttribute("data-gallery-src",u.src),"0"!==u.attachmentId){u.title=t.texturize(u.title),u.desc=t.texturize(u.desc),u.caption=t.texturize(u.caption);var f=new Image,v=document.createElement("div");v.classList.add("swiper-slide"),v.setAttribute("itemprop","associatedMedia"),v.setAttribute("itemscope",""),v.setAttribute("itemtype","https://schema.org/ImageObject");var y=document.createElement("div");y.classList.add("swiper-zoom-container"),p.gallery.appendChild(v),v.appendChild(y),y.appendChild(f),v.setAttribute("data-attachment-id",u.attachmentId),v.setAttribute("data-permalink",u.permalink),v.setAttribute("data-orig-file",u.origFile),i&&(u.previewImage=u.src);var w={el:v,attrs:u,index:o};p.slides.push(w)}})}function M(e,t){if(!window.JetpackSwiper){var o=document.querySelector("#jp-carousel-loading-overlay");r.show(o);var a=document.createElement("script");return a.id="jetpack-carousel-swiper-js",a.src=window.jetpackSwiperLibraryPath.url,a.async=!0,a.onload=function(){r.hide(o),F(e,t)},a.onerror=function(){r.hide(o)},void document.head.appendChild(a)}F(e,t)}function F(t,o){var l,s={imgSelector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id], img[data-id]",startIndex:0},c=r.getJSONAttribute(t,"data-carousel-extra");if(!c)return;const u=t.querySelectorAll(s.imgSelector);if(u.length&&(w(),!p.isOpen)){for(var d in p.isOpen=!0,a=getComputedStyle(document.body).overflow,document.body.style.overflow="hidden",i=getComputedStyle(document.documentElement).overflow,document.documentElement.style.overflow="hidden",n=window.scrollY||window.pageYOffset||0,p.container.setAttribute("data-carousel-extra",JSON.stringify(c)),m(["open","view_image"]),o||{})s[d]=o[d];-1===s.startIndex&&(s.startIndex=0),r.emitEvent(p.overlay,"jp_carousel.beforeOpen"),p.gallery.innerHTML="",p.overlay.style.opacity=1,p.overlay.style.display="block",I(u,s.startIndex),(e=new window.JetpackSwiper(".jp-carousel-swiper-container",{centeredSlides:!0,zoom:!0,loop:p.slides.length>1,enabled:p.slides.length>1,pagination:{el:".jp-swiper-pagination",clickable:!0},navigation:{nextEl:".jp-swiper-button-next",prevEl:".jp-swiper-button-prev"},initialSlide:s.startIndex,on:{init:function(){L(s.startIndex)}},preventClicks:!1,preventClicksPropagation:!1,preventInteractionOnTransition:!r.isTouch(),threshold:5})).on("slideChange",function(e){p.isOpen&&(L(e.realIndex),p.overlay.classList.remove("jp-carousel-hide-control
206s"))}),e.on("zoomChange",function(e,t){t>1&&p.overlay.classList.add("jp-carousel-hide-controls"),1===t&&p.overlay.classList.remove("jp-carousel-hide-controls")}),e.on("doubleTap",function(e){if(clearTimeout(l),1===e.zoom.scale)var t=setTimeout(function(){p.overlay.classList.remove("jp-carousel-hide-controls"),clearTimeout(t)},150)}),e.on("tap",function(){e.zoom.scale>1&&(l=setTimeout(function(){p.overlay.classList.toggle("jp-carousel-hide-controls")},150))}),r.fadeIn(p.overlay,function(){r.emitEvent(p.overlay,"jp_carousel.afterOpen")})}}function O(e){if("click"!==e.type){if("keydown"===e.type){const t=document.activeElement.parentElement,r=t&&t.classList.contains("tiled-gallery__item");" "!==e.key&&"Enter"!==e.key||!r||N(e)}}else N(e)}function W(e){var t=e.parentElement,o=t.parentElement,a=null;return o&&o.classList.contains("wp-block-image")?a=t.getAttribute("href"):t&&t.classList.contains("wp-block-image")&&t.querySelector(":scope > a")&&(a=t.querySelector(":scope > a").getAttribute("href")),!(a&&a.split("?")[0]!==e.getAttribute("data-orig-file").split("?")[0]&&a!==e.getAttribute("data-permalink")||t.classList.contains("gallery-caption")||r.matches(t,"figcaption"))}function N(e){if(window.CSS&&window.CSS.supports&&window.CSS.supports("display","grid")){var t,o=e.target,a=r.closest(o,c);if(a){if(!(t=a)||!t.getAttribute("data-carousel-extra"))return;if(!W(o))return;document.documentElement.style.height="auto",e.preventDefault(),e.stopPropagation();var i=r.closest(o,d),n=Array.prototype.indexOf.call(a.querySelectorAll(d),i);M(a,{startIndex:n})}}}document.body.addEventListener("click",O),document.body.addEventListener("keydown",O),document.querySelectorAll(u+"img").forEach(function(e){W(e)&&y(e)}),1===Number(jetpackCarouselStrings.single_image_gallery)&&(b(),document.body.addEventListener("is.post-load",function(){b()})),window.addEventListener("hashchange",function(){var e=/jp-carousel-(\d+)/;if(window.location.hash&&e.test(window.location.hash)){if(window.location.hash!==l||!p.isOpen)if(window.location.hash&&p.gallery&&!p.isOpen&&history.back)history.back();else{l=window.location.hash;for(var t=window.location.hash.match(e),r=parseInt(t[1],10),o=document.querySelectorAll(c),a=0;a<o.length;a++){for(var i,n=o[a],s=n.querySelectorAll("img"),u=0;u<s.length;u++)if(parseInt(s[u].getAttribute("data-attachment-id"),10)===r||parseInt(s[u].getAttribute("data-id"),10)===r){i=u;break}if(void 0!==i){S(n,i);break}}}}else p.isOpen&&k()}),window.location.hash&&r.emitEvent(window,"hashchange")}"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)}();; 207/** 208 * Observe how the user enters content into the comment form in order to determine whether it's a bot or not. 209 * 210 * Note that no actual input is being saved here, only counts and timings between events. 211 */ 212 213( function() { 214 // Passive event listeners are guaranteed to never call e.preventDefault(), 215 // but they're not supported in all browsers. Use this feature detection 216 // to determine whether they're available for use. 217 var supportsPassive = false; 218 219 try { 220 var opts = Object.defineProperty( {}, 'passive', { 221 get : function() { 222 supportsPassive = true; 223 } 224 } ); 225 226 window.addEventListener( 'testPassive', null, opts ); 227 window.removeEventListener( 'testPassive', null, opts ); 228 } catch ( e ) {} 229 230 function init() { 231 var input_begin = ''; 232 233 var keydowns = {}; 234 var lastKeyup = null; 235 var lastKeydown = null; 236 var keypresses = []; 237 238 var modifierKeys = []; 239 var correctionKeys = []; 240 241 var lastMouseup = null; 242 var lastMousedown = null; 243 var mouseclicks = []; 244 var mouseclickCoordinates = []; 245 246 var mousemoveTimer = null; 247 var lastMousemoveX = null; 248 var lastMousemoveY = null; 249 var mousemoveStart = null; 250 var mousemoves = []; 251 252 var touchmoveCountTimer = null; 253 var touchmoveCount = 0; 254 255 var lastTouchEnd = null; 256 var lastTouchStart = null; 257 var touchEvents = []; 258 259 var scrollCountTimer = null; 260 var scrollCount = 0; 261 262 var correctionKeyCodes = [ 'Backspace', 'Delete', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageUp', 'PageDown' ]; 263 var modifierKeyCodes = [ 'Shift', 'CapsLock' ]; 264 265 var forms = document.querySelectorAll( 'form[method=post]' ); 266 267 for ( var i = 0; i < forms.length; i++ ) { 268 var form = forms[i]; 269 270 var formAction = form.getAttribute( 'action' ); 271 272 // Ignore forms that POST directly to other domains; these could be things like payment forms. 273 if ( formAction ) { 274 // Check that the form is posting to an external URL, not a path. 275 if ( formAction.indexOf( 'http://' ) == 0 || formAction.indexOf( 'https://' ) == 0 ) { 276 if ( formAction.indexOf( 'http://' + window.location.hostname + '/' ) != 0 && formAction.indexOf( 'https://' + window.location.hostname + '/' ) != 0 ) { 277 continue; 278 } 279 } 280 } 281 282 form.addEventListener( 'submit', function () { 283 var ak_bkp = prepare_array_for_request( keypresses ); 284 var ak_bmc = prepare_array_for_request( mouseclicks ); 285 var ak_bte = prepare_array_for_request( touchEvents ); 286 var ak_bmm = prepare_array_for_request( mousemoves ); 287 var ak_bcc = prepare_array_for_request( mouseclickCoordinates ); 288 289 var input_fields = { 290 // When did the user begin entering any input? 291 'bib': input_begin, 292 293 // When was the form submitted? 294 'bfs': Date.now(), 295 296 // How many keypresses did they make? 297 'bkpc': keypresses.length, 298
299 // How quickly did they press a sample of keys, and how long between them? 300 'bkp': ak_bkp, 301 302 // How quickly did they click the mouse, and how long between clicks? 303 'bmc': ak_bmc, 304 305 // How many mouseclicks did they make? 306 'bmcc': mouseclicks.length, 307 308 // When did they press modifier keys (like Shift or Capslock)? 309 'bmk': modifierKeys.join( ';' ), 310 311 // When did they correct themselves? e.g., press Backspace, or use the arrow keys to move the cursor back 312 'bck': correctionKeys.join( ';' ), 313 314 // How many times did they move the mouse? 315 'bmmc': mousemoves.length, 316 317 // How many times did they move around using a touchscreen? 318 'btmc': touchmoveCount, 319 320 // How many times did they scroll? 321 'bsc': scrollCount, 322 323 // How quickly did they perform touch events, and how long between them? 324 'bte': ak_bte, 325 326 // How many touch events were there? 327 'btec' : touchEvents.length, 328 329 // How quickly did they move the mouse, and how long between moves? 330 'bmm' : ak_bmm, 331 332 // Click coordinates 333 'bcc' : ak_bcc 334 }; 335 336 var akismet_field_prefix = 'ak_'; 337 338 if ( this.getElementsByClassName ) { 339 // Check to see if we've used an alternate field name prefix. We store this as an attribute of the container around some of the Akismet fields. 340 var possible_akismet_containers = this.getElementsByClassName( 'akismet-fields-container' ); 341 342 for ( var containerIndex = 0; containerIndex < possible_akismet_containers.length; containerIndex++ ) { 343 var container = possible_akismet_containers.item( containerIndex ); 344 345 if ( container.getAttribute( 'data-prefix' ) ) { 346 akismet_field_prefix = container.getAttribute( 'data-prefix' ); 347 break; 348 } 349 } 350 } 351 352 for ( var field_name in input_fields ) { 353 var field = document.createElement( 'input' ); 354 field.setAttribute( 'type', 'hidden' ); 355 field.setAttribute( 'name', akismet_field_prefix + field_name ); 356 field.setAttribute( 'value', input_fields[ field_name ] ); 357 this.appendChild( field ); 358 } 359 }, supportsPassive ? { passive: true } : false ); 360 361 form.addEventListener( 'keydown', function ( e ) { 362 // If you hold a key down, some browsers send multiple keydown events in a row. 363 // Ignore any keydown events for a key that hasn't come back up yet. 364 if ( e.key in keydowns ) { 365 return; 366 } 367 368 var keydownTime = ( new Date() ).getTime(); 369 keydowns[ e.key ] = [ keydownTime ]; 370 371 if ( ! input_begin ) { 372 input_begin = keydownTime; 373 } 374 375 // In some situations, we don't want to record an interval since the last keypress -- for example, 376 // on the first keypress, or on a keypress after focus has changed to another element. Normally, 377 // we want to record the time between the last keyup and this keydown. But if they press a 378 // key while already pressing a key, we want to record the time between the two keydowns. 379 380 var lastKeyEvent = Math.max( lastKeydown, lastKeyup ); 381 382 if ( lastKeyEvent ) { 383 keydowns[ e.key ].push( keydownTime - lastKeyEvent ); 384 } 385 386 lastKeydown = keydownTime; 387 }, supportsPassive ? { passive: true } : false ); 388 389 form.addEventListener( 'keyup', function ( e ) { 390 if ( ! ( e.key in keydowns ) ) { 391 // This key was pressed before this script was loaded, or a mouseclick happened during the keypress, or... 392 return; 393 } 394 395 var keyupTime = ( new Date() ).getTime(); 396 397 if ( 'TEXTAREA' === e.target.nodeName || 'INPUT' === e.target.nodeName ) { 398 if ( -1 !== modifierKeyCodes.indexOf( e.key ) ) { 399 modifierKeys.push( keypresses.length - 1 ); 400 } else if ( -1 !== correctionKeyCodes.indexOf( e.key ) ) { 401 correctionKeys.push( keypresses.length - 1 ); 402 } else { 403 // ^ Don't record timings for keys like Shift or backspace, since they 404 // typically get held down for longer than regular typing. 405 406 var keydownTime = keydowns[ e.key ][0]; 407 408 var keypress = []; 409 410 // Keypress duration. 411 keypress.push( keyupTime - keydownTime ); 412 413 // Amount of time between this keypress and the previous keypress. 414 if ( keydowns[ e.key ].length > 1 ) { 415 keypress.push( keydowns[ e.key ][1] ); 416 } 417 418 keypresses.push( keypress ); 419 } 420 } 421
422 delete keydowns[ e.key ]; 423 424 lastKeyup = keyupTime; 425 }, supportsPassive ? { passive: true } : false ); 426 427 form.addEventListener( "focusin", function ( e ) { 428 lastKeydown = null; 429 lastKeyup = null; 430 keydowns = {}; 431 }, supportsPassive ? { passive: true } : false ); 432 433 form.addEventListener( "focusout", function ( e ) { 434 lastKeydown = null; 435 lastKeyup = null; 436 keydowns = {}; 437 }, supportsPassive ? { passive: true } : false ); 438 } 439 440 document.addEventListener( 'mousedown', function ( e ) { 441 lastMousedown = ( new Date() ).getTime(); 442 443 var mouseclickCoordinate = []; 444 445 var rect = e.target.getBoundingClientRect(); 446 var relativeX = e.clientX - rect.left; 447 var relativeY = e.clientY - rect.top; 448 449 // Pixel offset of the click within the target element. 450 mouseclickCoordinate.push( Math.round( relativeX ) ); 451 mouseclickCoordinate.push( Math.round( relativeY ) ); 452 453 // Percentage offset of the click within the target element. 454 mouseclickCoordinate.push( rect.width > 0 ? Math.round( relativeX / rect.width * 100 ) : 0 ); 455 mouseclickCoordinate.push( rect.height > 0 ? Math.round( relativeY / rect.height * 100 ) : 0 ); 456 457 mouseclickCoordinates.push( mouseclickCoordinate ); 458 }, supportsPassive ? { passive: true } : false ); 459 460 document.addEventListener( 'mouseup', function ( e ) { 461 if ( ! lastMousedown ) { 462 // If the mousedown happened before this script was loaded, but the mouseup happened after... 463 return; 464 } 465 466 var now = ( new Date() ).getTime(); 467 468 var mouseclick = []; 469 mouseclick.push( now - lastMousedown ); 470 471 if ( lastMouseup ) { 472 mouseclick.push( lastMousedown - lastMouseup ); 473 } 474 475 mouseclicks.push( mouseclick ); 476 477 lastMouseup = now; 478 479 // If the mouse has been clicked, don't record this time as an interval between keypresses. 480 lastKeydown = null; 481 lastKeyup = null; 482 keydowns = {}; 483 }, supportsPassive ? { passive: true } : false ); 484 485 document.addEventListener( 'mousemove', function ( e ) { 486 if ( mousemoveTimer ) { 487 clearTimeout( mousemoveTimer ); 488 mousemoveTimer = null; 489 } 490 else { 491 mousemoveStart = ( new Date() ).getTime(); 492 lastMousemoveX = e.offsetX; 493 lastMousemoveY = e.offsetY; 494 } 495 496 mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) { 497 var now = ( new Date() ).getTime() - 500; // To account for the timer delay. 498 499 var mousemove = []; 500 mousemove.push( now - originalMousemoveStart ); 501 mousemove.push( 502 Math.round( 503 Math.sqrt( 504 Math.pow( theEvent.offsetX - lastMousemoveX, 2 ) + 505 Math.pow( theEvent.offsetY - lastMousemoveY, 2 ) 506 ) 507 ) 508 ); 509 510 if ( mousemove[1] > 0 ) { 511 // If there was no measurable distance, then it wasn't really a move. 512 mousemoves.push( mousemove ); 513 } 514 515 mousemoveStart = null; 516 mousemoveTimer = null; 517 }, 500, e, mousemoveStart ); 518 }, supportsPassive ? { passive: true } : false ); 519 520 document.addEventListener( 'touchmove', function ( e ) { 521 if ( touchmoveCountTimer ) { 522 clearTimeout( touchmoveCountTimer ); 523 } 524 525 touchmoveCountTimer = setTimeout( function () { 526 touchmoveCount++; 527 }, 500 ); 528 }, supportsPassive ? { passive: true } : false ); 529 530 document.addEventListener( 'touchstart', function ( e ) { 531 lastTouchStart = ( new Date() ).getTime(); 532 }, supportsPassive ? { passive: true } : false ); 533 534 document.addEventListener( 'touchend', function ( e ) { 535 if ( ! lastTouchStart ) { 536 // If the touchstart happened before this script was loaded, but the touchend happened after... 537 return; 538 } 539 540 var now = ( new Date() ).getTime(); 541 542 var touchEvent = []; 543 touchEvent.push( now - lastTouchStart ); 544 545 if ( lastTouchEnd ) { 546 touchEvent.push( lastTouchStart - lastTouchEnd ); 547 } 548 549 touchEvents.push( touchEvent ); 550 551 lastTouchEnd = now; 552 553 // Don't record this time as an interval between keypresses. 554 lastKeydown = null; 555 lastKeyup = null; 556 keydowns = {}; 557 }, supportsPassive ? { passive: true } : false ); 558 559 document.addEventListener( 'scroll', function ( e ) { 560 if ( scrollCountTimer ) {
561 clearTimeout( scrollCountTimer ); 562 } 563 564 scrollCountTimer = setTimeout( function () { 565 scrollCount++; 566 }, 500 ); 567 }, supportsPassive ? { passive: true } : false ); 568 } 569 570 /** 571 * For the timing/coordinate data that is collected, don't send more than `limit` data points in the request. 572 * Choose a random slice and send those, with each batch separated by semicolons and the items in each batch 573 * separated by commas. 574 */ 575 function prepare_array_for_request( a, limit ) { 576 if ( ! limit ) { 577 limit = 100; 578 } 579 580 var rv = ''; 581 582 if ( a.length > 0 ) { 583 var random_starting_point = Math.max( 0, Math.floor( Math.random() * a.length - limit ) ); 584 585 for ( var i = 0; i < limit && i < a.length; i++ ) { 586 var entry = a[ random_starting_point + i ]; 587 rv += entry.join( ',' ) + ';'; 588 } 589 } 590 591 return rv; 592 } 593 594 if ( document.readyState !== 'loading' ) { 595 init(); 596 } else { 597 document.addEventListener( 'DOMContentLoaded', init ); 598 } 599})();; 600( function () { 601 'use strict'; 602 603 if ( typeof window.wpcom === 'undefined' ) { 604 window.wpcom = {}; 605 } 606 607 if ( window.wpcom.carousel ) { 608 return; 609 } 610 611 var prebuilt_widths = jetpackCarouselStrings.widths; 612 var pageviews_stats_args = jetpackCarouselStrings.stats_query_args; 613 614 var findFirstLargeEnoughWidth = function ( original_w, original_h, dest_w, dest_h ) { 615 var inverse_ratio = original_h / original_w; 616 617 for ( var i = 0; i < prebuilt_widths.length; ++i ) { 618 if ( prebuilt_widths[ i ] >= dest_w || prebuilt_widths[ i ] * inverse_ratio >= dest_h ) { 619 return prebuilt_widths[ i ]; 620 } 621 } 622 623 return original_w; 624 }; 625 626 var removeResizeFromImageURL = function ( url ) { 627 return removeArgFromURL( url, 'resize' ); 628 }; 629 630 var removeArgFromURL = function ( url, arg ) { 631 var re = new RegExp( '[\\?&]' + arg + '(=[^?&]+)?' ); 632 if ( url.match( re ) ) { 633 return url.replace( re, '' ); 634 } 635 return url; 636 }; 637 638 var addWidthToImageURL = function ( url, width ) { 639 width = parseInt( width, 10 ); 640 // Give devices with a higher devicePixelRatio higher-res images (Retina display = 2, Android phones = 1.5, etc) 641 if ( 'undefined' !== typeof window.devicePixelRatio && window.devicePixelRatio > 1 ) { 642 width = Math.round( width * window.devicePixelRatio ); 643 } 644 url = addArgToURL( url, 'w', width ); 645 url = addArgToURL( url, 'h', '' ); 646 return url; 647 }; 648 649 var addArgToURL = function ( url, arg, value ) { 650 var re = new RegExp( arg + '=[^?&]+' ); 651 if ( url.match( re ) ) { 652 return url.replace( re, arg + '=' + value ); 653 } else { 654 var divider = url.indexOf( '?' ) !== -1 ? '&' : '?'; 655 return url + divider + arg + '=' + value; 656 } 657 }; 658 659 var stat = function ( names ) { 660 if ( typeof names !== 'string' ) { 661 names = names.join( ',' ); 662 } 663 664 new Image().src = window.location.protocol + 665 '//pixel.wp.com/g.gif?v=wpcom-no-pv' + 666 '&x_carousel=' + names + 667 '&baba=' + Math.random(); 668 }; 669 670 var lastTrackedPostId = null; 671 672 var pageview = function ( post_id ) { 673 // Prevent duplicate tracking of the same post during slide transitions 674 if ( post_id === lastTrackedPostId ) { 675 return; 676 } 677 678 lastTrackedPostId = post_id; 679 680 new Image().src = window.location.protocol + 681 '//pixel.wp.com/g.gif?host=' + encodeURIComponent( window.location.host ) + 682 '&ref=' + encodeURIComponent( document.referrer ) + 683 '&rand=' + Math.random() + 684 '&' + pageviews_stats_args + 685 '&post=' + encodeURIComponent( post_id ); 686 }; 687 688 var generateImgSrc = function ( srcItem, max ) { 689 var origSize = srcItem.getAttribute( 'data-orig-size' ) || ''; 690 691 var src = srcItem.getAttribute( 'src' ) || srcItem.getAttribute( 'original' ) || srcItem.getAttribute( 'data-original' ) || srcItem.getAttribute( 'data-lazy-src' ); 692 if ( src.indexOf( 'imgpress' ) !== -1 ) { 693 src = srcItem.getAttribute( 'data-orig-file' ); 694 } 695 // Square/Circle galleries use a resize param that needs to be removed. 696 src = removeResizeFromImageURL( src ); 697 src = addWidthToImageURL( 698 src, 699 findFirstLargeEnoughWidth( origSize.width, origSize.height, max.width, max.height ) 700 ); 701 702 return src; 703 }; 704 705 window.wpcom.carousel = { 706 findFirstLargeEnoughWidth: findFirstLargeEnoughWidth, 707 removeResizeFromImageURL: removeResizeFromImageURL, 708 addWidthToImageURL: addWidthToImageURL, 709 stat: stat, 710 pageview: pageview, 711 generateImgSrc: generateImgSrc 712 }; 713 714} )(); 715; 716!function(){var e=document.currentScript;function t(t){var n=document.createElement("script"),o=e||document.getElementsByTagName("script")[0];n.setAttribute("async",!0),n.setAttribute("src",t),o.parentNode.insertBefore(n,o)}function n(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function o(e,t){if(e.closest)return e.closest(t);var o=e;do{if(n(o,t))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null}function i(e,t){for(var n=0;n<e.length;n++)t(e[n],n,e)}var r=".sharing-hidden .inner",s="data-sharing-more-button-id";function a(e){this.button=e,this.pane=o(e,"div").querySelector(r),this.openedBy=null,this.recentlyOpenedByHover=!1,a.instances.push(this),this.pane.setAttribute(s,a.instances.length-1),this.attachHandlers()}
716if(a.instances=[],a.hoverOpenDelay=200,a.recentOpenDelay=400,a.hoverCloseDelay=300,a.instantiateOrReuse=function(e){var t=o(e,"div").querySelector(r),n=t&&t.getAttribute(s),i=a.instances[n];return i||new a(e)},a.getButtonInstanceFromPane=function(e){var t=e&&e.getAttribute(s);return a.instances[t]},a.closeAll=function(){for(var e=0;e<a.instances.length;e++)a.instances[e].close()},a.prototype.open=function(){var e,t,n=[0,0];function o(e){var t=e.getBoundingClientRect();return[t.left+(window.scrollX||window.pageXOffset||0),t.top+(window.scrollY||window.pageYOffset||0)]}function i(e,t){return parseInt(getComputedStyle(e).getPropertyValue(t)||0)}for(e=o(this.button),t=this.button.offsetParent||document.documentElement;t&&(t===document.body||t===document.documentElement)&&"static"===getComputedStyle(t).getPropertyValue("position");)t=t.parentNode;t&&t!==this.button&&1===t.nodeType&&(n=[(n=o(t))[0]+i(t,"border-left-width"),n[1]+i(t,"border-top-width")]);var r,s=e[0]-n[0]-i(this.button,"margin-left"),a=e[1]-n[1]-i(this.button,"margin-top");this.pane.style.left=s+"px",this.pane.style.top=a+this.button.offsetHeight+3+"px",(r=this.pane)&&r.style.removeProperty("display")},a.prototype.close=function(){var e;(e=this.pane)&&(e.style.display="none"),this.openedBy=null},a.prototype.toggle=function(){var e;(e=this.pane)&&"none"!==e.style.display?this.close():this.open()},a.prototype.nonHoverOpen=function(){clearTimeout(this.openTimer),clearTimeout(this.closeTimer),this.recentlyOpenedByHover?(this.recentlyOpenedByHover=!1,clearTimeout(this.hoverOpenTimer),this.open()):this.toggle()},a.prototype.resetCloseTimer=function(){clearTimeout(this.closeTimer),this.closeTimer=setTimeout(this.close.bind(this),a.hoverCloseDelay)},a.prototype.attachHandlers=function(){this.buttonClick=function(e){e.preventDefault(),e.stopPropagation(),this.openedBy="click",this.nonHoverOpen()}.bind(this),this.buttonKeydown=function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),this.openedBy="keydown",this.nonHoverOpen())}.bind(this),this.buttonEnter=function(){this.openedBy||(this.openTimer=setTimeout(function(){this.open(),this.openedBy="hover",this.recentlyOpenedByHover=!0,this.hoverOpenTimer=setTimeout(function(){this.recentlyOpenedByHover=!1}.bind(this),a.recentOpenDelay)}.bind(this),a.hoverOpenDelay)),clearTimeout(this.closeTimer)}.bind(this),this.buttonLeave=function(){"hover"===this.openedBy&&this.resetCloseTimer(),clearTimeout(this.openTimer)}.bind(this),this.paneEnter=function(){clearTimeout(this.closeTimer)}.bind(this),this.paneLeave=function(){"hover"===this.openedBy&&this.resetCloseTimer()}.bind(this),this.documentClick=function(){this.close()}.bind(this),this.button.addEventListener("click",this.buttonClick),this.button.addEventListener("keydown",this.buttonKeydown),document.addEventListener("click",this.documentClick),void 0===document.ontouchstart&&(this.button.addEventListener("mouseenter",this.buttonEnter),this.button.addEventListener("mouseleave",this.buttonLeave),this.pane.addEventListener("mouseenter",this.paneEnter),this.pane.addEventListener("mouseleave",this.paneLeave))},window.sharing_js_options&&window.sharing_js_options.counts){var c={done_urls:[],get_counts:function(){var e,n,o,i,r;if("undefined"!=typeof WPCOM_sharing_counts)for(e in WPCOM_sharing_counts)if(o=WPCOM_sharing_counts[e],void 0===c.done_urls[o]){for(i in n={pinterest:[window.location.protocol+"//api.pinterest.com/v1/urls/count.json?callback=WPCOMSharing.update_pinterest_count&url="+encodeURIComponent(e)]})if(document.querySelector("a[data-shared=sharing-"+i+"-"+o+"]")){for(;r=n[i].pop();)t(r);window.sharing_js_options.is_stats_active&&c.bump_sharing_count_stat(i)}c.done_urls[o]=!0}},update_pinterest_count:function(e){void 0!==e.count&&1*e.count>0&&c.inject_share_count("sharing-pinterest-"+WPCOM_sharing_counts[e.url],e.count)},inject_share_count:function(e,t){i(document.querySelectorAll("a[data-shared="+e+"] > span"),function(e){var n,o=e.querySelector(".share-count");(n=o)&&n.parentNode&&n.parentNode.removeChild(n);var i=document.createElement("span");
716i.className="share-count",i.textContent=c.format_count(t),e.appendChild(i)})},format_count:function(e){return e<1e3?e:e>=1e3&&e<1e4?String(e).substring(0,1)+"K+":"10K+"},bump_sharing_count_stat:function(e){(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv&x_sharing-count-request="+e+"&r="+Math.random()}};window.WPCOMSharing=c}function u(e,t){e.setAttribute("jetpack-share-click-count",t)}function d(e){var t=e.getAttribute("jetpack-share-click-count");return null===t?0:parseInt(t,10)}function l(e,t){var n,o=new XMLHttpRequest;o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.setRequestHeader("x-requested-with","XMLHttpRequest"),o.send((n=t,(encodeURIComponent("email-share-nonce")+"="+encodeURIComponent(n)).replace(/%20/g,"+")))}function h(){p()}function p(){window.WPCOMSharing&&window.WPCOMSharing.get_counts(),i(document.querySelectorAll(".sharedaddy a"),function(e){var t=e.getAttribute("href");t&&-1!==t.indexOf("share=")&&-1===t.indexOf("&nb=1")&&e.setAttribute("href",t+"&nb=1")}),i(document.querySelectorAll(".sharedaddy a.sharing-anchor"),function(e){a.instantiateOrReuse(e)}),void 0!==document.ontouchstart&&document.body.classList.add("jp-sharing-input-touch"),i(document.querySelectorAll(".sharedaddy ul"),function(e){"true"!==e.getAttribute("data-sharing-events-added")&&(e.setAttribute("data-sharing-events-added","true"),i(e.querySelectorAll("a.share-print"),function(e){e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var n=e.getAttribute("href")||"",i=function(){if(-1===n.indexOf("#print")){var e=(new Date).getTime();t=e,o=n,(i=document.createElement("iframe")).setAttribute("style","position:fixed; top:100; left:100; height:1px; width:1px; border:none;"),i.setAttribute("id","printFrame-"+t),i.setAttribute("name",i.getAttribute("id")),i.setAttribute("src",o),i.setAttribute("onload",'frames["printFrame-'+t+'"].focus();frames["printFrame-'+t+'"].print();'),document.body.appendChild(i)}else window.print();var t,o,i},s=o(e,r);if(s){var c=a.getButtonInstanceFromPane(s);c&&(c.close(),i())}else i()})}),i(e.querySelectorAll("a.share-press-this"),function(e){e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var n="";if(window.getSelection?n=window.getSelection():document.getSelection?n=document.getSelection():document.selection&&(n=document.selection.createRange().text),n){var o=e.getAttribute("href");e.setAttribute("href",o+"&sel="+encodeURI(n))}window.open(e.getAttribute("href"),"t","toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570")||(document.location.href=e.getAttribute("href"))})}),i(e.querySelectorAll("a.share-email"),function(t){u(t,0);var n,o,r=t.getAttribute("data-email-share-nonce"),s=t.getAttribute("data-email-share-track-url");r&&s&&(n=s,o=window.location.protocol+"//"+window.location.hostname+"/",0===String(n).indexOf(o))&&t.addEventListener("click",function(){var n;u(n=t,d(n)+1),d(t)>2&&function(e,t){var n=t.parentElement;if(n.classList.contains("sd-content")){i(n.querySelectorAll(".share-email-error"),function(e){e.parentElement.removeChild(e)});var o=document.createElement("div");o.className="share-email-error";var r=document.createElement("h6");r.className="share-email-error-title",r.innerText=e.getAttribute("data-email-share-error-title"),o.appendChild(r);var s=document.createElement("p");s.className="share-email-error-text",s.innerText=e.getAttribute("data-email-share-error-text"),o.appendChild(s),n.appendChild(o)}}(t,e),l(s,r)})}))}),i(document.querySelectorAll("li.share-email, li.share-custom a.sharing-anchor"),function(e){e.classList.add("share-service-visible")})}"loading"!==document.readyState?h():document.addEventListener("DOMContentLoaded",h),document.body.addEventListener("is.post-load",p)}();;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.