1/*! This file is auto-generated */ 2window.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,i="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){o(),e&&new e(d).observe(E.body,{childList:!0,subtree:!0})}function o(e){if(i&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){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=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,d=n.length;o<d;o++)n[o].addEventListener("click",r)}}function l(e){var t,n,o=g(b.temporaryFormId);o&&h&&(g(b.parentIdFieldId).value="0",t=o.textContent,o.parentNode.replaceChild(h,o),this.style.display="none",n=(o=(o=g(b.commentReplyTitleId))&&o.firstChild)&&o.nextSibling,o&&o.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),o.textContent=t),e.preventDefault())}function r(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,o=a(n,"belowelement"),d=a(n,"commentid"),i=a(n,"respondelement"),l=a(n,"postid"),n=a(n,"replyto")||t;o&&d&&i&&l&&!1===v.addComment.moveForm(o,d,i,l,n)&&e.preventDefault()}function d(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void o()}function a(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return i&&"loading"!==E.readyState?t():i&&v.addEventListener("DOMContentLoaded",t,!1),{init:o,moveForm:function(e,t,n,o,d){var i,l,r,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===d&&(d=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)),o&&y&&(y.value=o),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=d),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],l=!1,"getComputedStyle"in v?r=v.getComputedStyle(i):E.documentElement.currentStyle&&(r=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===r.visibility)&&(l=!0),"hidden"!==i.type&&!i.disabled&&!l){i.focus();break}}catch(e){}return!1}}}}(window);; 3/* global screenReaderText */ 4/** 5 * Theme functions file. 6 * 7 * Contains handlers for navigation and widget area. 8 */ 9 10( function( $ ) { 11 var $body, $window, $sidebar, resizeTimer, 12 secondary, button; 13 14 function initMainNavigation( container ) { 15 // Add dropdown toggle that display child menu items. 16 container.find( '.menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' ); 17 18 // Toggle buttons and submenu items with active children menu items. 19 container.find( '.current-menu-ancestor > button' ).addClass( 'toggle-on' ); 20 container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' ); 21 22 container.find( '.dropdown-toggle' ).click( function( e ) { 23 var _this = $( this ); 24 e.preventDefault(); 25 _this.toggleClass( 'toggle-on' ); 26 _this.next( '.children, .sub-menu' ).toggleClass( 'toggled-on' ); 27 _this.attr( 'aria-expanded', _this.attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' ); 28 _this.html( _this.html() === screenReaderText.expand ? screenReaderText.collapse : screenReaderText.expand ); 29 } ); 30 } 31 initMainNavigation( $( '.main-navigation' ) ); 32 33 // Re-initialize the main navigation when it is updated, persisting any existing submenu expanded states. 34 $( document ).on( 'customize-preview-menu-refreshed', function( e, params ) { 35 if ( 'primary' === params.wpNavMenuArgs.theme_location ) { 36 initMainNavigation( params.newContainer ); 37 38 // Re-sync expanded states from oldContainer. 39 params.oldContainer.find( '.dropdown-toggle.toggle-on' ).each(function() { 40 var containerId = $( this ).parent().prop( 'id' ); 41 $( params.newContainer ).find( '#' + containerId + ' > .dropdown-toggle' ).triggerHandler( 'click' ); 42 }); 43 } 44 }); 45 46 secondary = $( '#secondary' ); 47 button = $( '.site-branding' ).find( '.secondary-toggle' ); 48 49 // Enable menu toggle for small screens. 50 ( function() { 51 var menu, widgets, social; 52 if ( ! secondary.length || ! button.length ) { 53 return; 54 } 55 56 // Hide button if there are no widgets and the menus are missing or empty. 57 menu = secondary.find( '.nav-menu' ); 58 widgets = secondary.find( '#widget-area' ); 59 social = secondary.find( '#social-navigation' ); 60 if ( ! widgets.length && ! social.length && ( ! menu.length || ! menu.children().length ) ) { 61 button.hide(); 62 return; 63 } 64 65 button.on( 'click.twentyfifteen', function() { 66 secondary.toggleClass( 'toggled-on' ); 67 secondary.trigger( 'resize' ); 68 $( this ).toggleClass( 'toggled-on' ); 69 if ( $( this, secondary ).hasClass( 'toggled-on' ) ) { 70 $( this ).attr( 'aria-expanded', 'true' ); 71 secondary.attr( 'aria-expanded', 'true' ); 72 } else { 73 $( this ).attr( 'aria-expanded', 'false' ); 74 secondary.attr( 'aria-expanded', 'false' ); 75 } 76 } ); 77 } )(); 78 79 /** 80 * Add or remove ARIA attributes. 81 * 82 * Uses jQuery's width() function to determine the size of the window and add 83 * the default ARIA attributes for the menu toggle if it's visible. 84 * 85 * @since Twenty Fifteen 1.1 86 */ 87 function onResizeARIA() { 88 if ( 955 > $window.width() ) { 89 button.attr( 'aria-expanded', 'false' ); 90 secondary.attr( 'aria-expanded', 'false' ); 91 button.attr( 'aria-controls', 'secondary' ); 92 } else { 93 button.removeAttr( 'aria-expanded' ); 94 secondary.removeAttr( 'aria-expanded' ); 95 button.removeAttr( 'aria-controls' ); 96 } 97 } 98 99 // Sidebar scrolling. 100 function resizeAndScroll() { 101 var windowPos = $window.scrollTop(), 102 windowHeight = $window.height(), 103 sidebarHeight = $sidebar.height(), 104 pageHeight = $( '#page' ).height(); 105 106 if ( 955 < $window.width() && pageHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) { 107 $sidebar.css({ 108 position: 'fixed', 109 bottom: sidebarHeight > windowHeight ? 0 : 'auto' 110 }); 111 } else { 112 $sidebar.css('position', 'relative'); 113 } 114 } 115 116 $( function() { 117 $body = $( document.body ); 118 $window = $( window ); 119 $sidebar = $( '#sidebar' ).first(); 120 121 $window 122 .on( 'scroll.twentyfifteen', resizeAndScroll ) 123 .on( 'load.twentyfifteen', onResizeARIA ) 124 .on( 'resize.twentyfifteen', function() { 125 clearTimeout( resizeTimer ); 126 resizeTimer = setTimeout( resizeAndScroll, 500 ); 127 onResizeARIA(); 128 } ); 129 $sidebar.on( 'click.twentyfifteen keydown.twentyfifteen', 'button', resizeAndScroll ); 130 131 for ( var i = 0; i < 6; i++ ) { 132 setTimeout( resizeAndScroll, 100 * i ); 133 } 134 } ); 135 136} )( jQuery ); 137; 138( function( $ ) { 139 var $body = $( 'body' ), 140 $window = $( window ); 141 142 /** 143 * Add a body class for less than 955 viewport, IE8, and below. 144 * This is only for Custom Colors that doesn't handle media queries. 145 */ 146 function bodyClass() { 147 if ( ( document.all && ! document.addEventListener ) || ( $window.width() <= 954 ) ) { 148 $body.addClass( 'small-screen' ); 149 } else { 150 $body.removeClass( 'small-screen' ); 151 } 152 } 153 154 function debouncedBodyClass() { 155 var timeout; 156 return function() { 157 clearTimeout( timeout ); 158 timeout = setTimeout( function() { 159 timeout = null; 160 bodyClass(); 161 }, 150 ); 162 }; 163 } 164 165 $( document ).ready( function() { 166 $window 167 .on( 'load.twentyfifteen', bodyClass() ) 168 .on( 'resize.twentyfifteen', debouncedBodyClass() ); 169 } ); 170 171} )( jQuery ); 172; 173!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exp
173orts.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})());; 174/** 175 * Observe how the user enters content into the comment form in order to determine whether it's a bot or not. 176 * 177 * Note that no actual input is being saved here, only counts and timings between events. 178 */ 179 180( function() { 181 // Passive event listeners are guaranteed to never call e.preventDefault(), 182 // but they're not supported in all browsers. Use this feature detection 183 // to determine whether they're available for use. 184 var supportsPassive = false; 185 186 try { 187 var opts = Object.defineProperty( {}, 'passive', { 188 get : function() { 189 supportsPassive = true; 190 } 191 } ); 192 193 window.addEventListener( 'testPassive', null, opts ); 194 window.removeEventListener( 'testPassive', null, opts ); 195 } catch ( e ) {} 196 197 function init() { 198 var input_begin = ''; 199 200 var keydowns = {}; 201 var lastKeyup = null; 202 var lastKeydown = null; 203 var keypresses = []; 204 205 var modifierKeys = []; 206 var correctionKeys = []; 207 208 var lastMouseup = null; 209 var lastMousedown = null; 210 var mouseclicks = []; 211 var mouseclickCoordinates = []; 212 213 var mousemoveTimer = null; 214 var lastMousemoveX = null; 215 var lastMousemoveY = null; 216 var lastMousemoveTime = null; 217 var mousemoveStart = null; 218 var mousemoves = []; 219 var intervalsBetweenMousemovesAndClicks = []; 220 221 var touchmoveCountTimer = null; 222 var touchmoveCount = 0; 223 224 var lastTouchEnd = null; 225 var lastTouchStart = null; 226 var touchEvents = []; 227 228 var scrollCountTimer = null; 229 var scrollCount = 0; 230 231 var correctionKeyCodes = [ 'Backspace', 'Delete', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageUp', 'PageDown' ]; 232 var modifierKeyCodes = [ 'Shift', 'CapsLock' ]; 233 234 var forms = document.querySelectorAll( 'form[method=post]' ); 235 236 for ( var i = 0; i < forms.length; i++ ) { 237 var form = forms[i]; 238 239 var formAction = form.getAttribute( 'action' ); 240 241 // Ignore forms that POST directly to other domains; these could be things like payment forms. 242 if ( formAction ) { 243 // Check that the form is posting to an external URL, not a path. 244 if ( formAction.indexOf( 'http://' ) == 0 || formAction.indexOf( 'https://' ) == 0 ) { 245 if ( formAction.indexOf( 'http://' + window.location.hostname + '/' ) != 0 && formAction.indexOf( 'https://' + window.location.hostname + '/' ) != 0 ) { 246 continue; 247 } 248 } 249 } 250 251 form.addEventListener( 'submit', function () { 252 var ak_bkp = prepare_array_for_request( keypresses ); 253 var ak_bmc = prepare_array_for_request( mouseclicks ); 254 var ak_bte = prepare_array_for_request( touchEvents ); 255 var ak_bmm = prepare_array_for_request( mousemoves ); 256 var ak_bcc = prepare_array_for_request( mouseclickCoordinates ); 257 var ak_bibmac = intervalsBetweenMousemovesAndClicks.slice( 0, 100 ).join( ';' ); 258 259 var input_fields = { 260 // When did the user begin entering any input? 261 'bib': input_begin, 262 263 // When was the form submitted? 264 'bfs': Date.now(), 265 266 // How many keypresses did they make? 267 'bkpc': keypresses.length, 268
269 // How quickly did they press a sample of keys, and how long between them? 270 'bkp': ak_bkp, 271 272 // How quickly did they click the mouse, and how long between clicks? 273 'bmc': ak_bmc, 274 275 // How many mouseclicks did they make? 276 'bmcc': mouseclicks.length, 277 278 // When did they press modifier keys (like Shift or Capslock)? 279 'bmk': modifierKeys.join( ';' ), 280 281 // When did they correct themselves? e.g., press Backspace, or use the arrow keys to move the cursor back 282 'bck': correctionKeys.join( ';' ), 283 284 // How many times did they move the mouse? 285 'bmmc': mousemoves.length, 286 287 // How many times did they move around using a touchscreen? 288 'btmc': touchmoveCount, 289 290 // How many times did they scroll? 291 'bsc': scrollCount, 292 293 // How quickly did they perform touch events, and how long between them? 294 'bte': ak_bte, 295 296 // How many touch events were there? 297 'btec' : touchEvents.length, 298 299 // How quickly did they move the mouse, and how long between moves? 300 'bmm' : ak_bmm, 301 302 // Click coordinates 303 'bcc' : ak_bcc, 304 305 // Milliseconds between last mouse movement and each click 306 'bibmac' : ak_bibmac 307 }; 308 309 var akismet_field_prefix = 'ak_'; 310 311 if ( this.getElementsByClassName ) { 312 // 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. 313 var possible_akismet_containers = this.getElementsByClassName( 'akismet-fields-container' ); 314 315 for ( var containerIndex = 0; containerIndex < possible_akismet_containers.length; containerIndex++ ) { 316 var container = possible_akismet_containers.item( containerIndex ); 317 318 if ( container.getAttribute( 'data-prefix' ) ) { 319 akismet_field_prefix = container.getAttribute( 'data-prefix' ); 320 break; 321 } 322 } 323 } 324 325 for ( var field_name in input_fields ) { 326 var field = document.createElement( 'input' ); 327 field.setAttribute( 'type', 'hidden' ); 328 field.setAttribute( 'name', akismet_field_prefix + field_name ); 329 field.setAttribute( 'value', input_fields[ field_name ] ); 330 this.appendChild( field ); 331 } 332 }, supportsPassive ? { passive: true } : false ); 333 334 form.addEventListener( 'keydown', function ( e ) { 335 // If you hold a key down, some browsers send multiple keydown events in a row. 336 // Ignore any keydown events for a key that hasn't come back up yet. 337 if ( e.key in keydowns ) { 338 return; 339 } 340 341 var keydownTime = ( new Date() ).getTime(); 342 keydowns[ e.key ] = [ keydownTime ]; 343 344 if ( ! input_begin ) { 345 input_begin = keydownTime; 346 } 347 348 // In some situations, we don't want to record an interval since the last keypress -- for example, 349 // on the first keypress, or on a keypress after focus has changed to another element. Normally, 350 // we want to record the time between the last keyup and this keydown. But if they press a 351 // key while already pressing a key, we want to record the time between the two keydowns. 352 353 var lastKeyEvent = Math.max( lastKeydown, lastKeyup ); 354 355 if ( lastKeyEvent ) { 356 keydowns[ e.key ].push( keydownTime - lastKeyEvent ); 357 } 358 359 lastKeydown = keydownTime; 360 }, supportsPassive ? { passive: true } : false ); 361 362 form.addEventListener( 'keyup', function ( e ) { 363 if ( ! ( e.key in keydowns ) ) { 364 // This key was pressed before this script was loaded, or a mouseclick happened during the keypress, or... 365 return; 366 } 367 368 var keyupTime = ( new Date() ).getTime(); 369 370 if ( 'TEXTAREA' === e.target.nodeName || 'INPUT' === e.target.nodeName ) { 371 if ( -1 !== modifierKeyCodes.indexOf( e.key ) ) { 372 modifierKeys.push( keypresses.length - 1 ); 373 } else if ( -1 !== correctionKeyCodes.indexOf( e.key ) ) { 374 correctionKeys.push( keypresses.length - 1 ); 375 } else { 376 // ^ Don't record timings for keys like Shift or backspace, since they 377 // typically get held down for longer than regular typing. 378 379 var keydownTime = keydowns[ e.key ][0]; 380 381 var keypress = []; 382 383 // Keypress duration. 384 keypress.push( keyupTime - keydownTime ); 385 386 // Amount of time between this keypress and the previous keypress. 387 if ( keydowns[ e.key ].length > 1 ) { 388 keypress.push( keydowns[ e.key ][1] ); 389 } 390 391 keypresses.push( keypress ); 392 } 393 } 394
395 delete keydowns[ e.key ]; 396 397 lastKeyup = keyupTime; 398 }, supportsPassive ? { passive: true } : false ); 399 400 form.addEventListener( "focusin", function ( e ) { 401 lastKeydown = null; 402 lastKeyup = null; 403 keydowns = {}; 404 }, supportsPassive ? { passive: true } : false ); 405 406 form.addEventListener( "focusout", function ( e ) { 407 lastKeydown = null; 408 lastKeyup = null; 409 keydowns = {}; 410 }, supportsPassive ? { passive: true } : false ); 411 } 412 413 document.addEventListener( 'mousedown', function ( e ) { 414 lastMousedown = ( new Date() ).getTime(); 415 416 if ( lastMousemoveTime ) { 417 intervalsBetweenMousemovesAndClicks.push( lastMousedown - lastMousemoveTime ); 418 } 419 420 var mouseclickCoordinate = []; 421 422 var rect = e.target.getBoundingClientRect(); 423 var relativeX = e.clientX - rect.left; 424 var relativeY = e.clientY - rect.top; 425 426 // Pixel offset of the click within the target element. 427 mouseclickCoordinate.push( Math.round( relativeX ) ); 428 mouseclickCoordinate.push( Math.round( relativeY ) ); 429 430 // Percentage offset of the click within the target element. 431 mouseclickCoordinate.push( rect.width > 0 ? Math.round( relativeX / rect.width * 100 ) : 0 ); 432 mouseclickCoordinate.push( rect.height > 0 ? Math.round( relativeY / rect.height * 100 ) : 0 ); 433 434 mouseclickCoordinates.push( mouseclickCoordinate ); 435 }, supportsPassive ? { passive: true } : false ); 436 437 document.addEventListener( 'mouseup', function ( e ) { 438 if ( ! lastMousedown ) { 439 // If the mousedown happened before this script was loaded, but the mouseup happened after... 440 return; 441 } 442 443 var now = ( new Date() ).getTime(); 444 445 var mouseclick = []; 446 mouseclick.push( now - lastMousedown ); 447 448 if ( lastMouseup ) { 449 mouseclick.push( lastMousedown - lastMouseup ); 450 } 451 452 mouseclicks.push( mouseclick ); 453 454 lastMouseup = now; 455 456 // If the mouse has been clicked, don't record this time as an interval between keypresses. 457 lastKeydown = null; 458 lastKeyup = null; 459 keydowns = {}; 460 }, supportsPassive ? { passive: true } : false ); 461 462 document.addEventListener( 'mousemove', function ( e ) { 463 lastMousemoveTime = ( new Date() ).getTime(); 464 465 if ( mousemoveTimer ) { 466 clearTimeout( mousemoveTimer ); 467 mousemoveTimer = null; 468 } 469 else { 470 mousemoveStart = lastMousemoveTime; 471 lastMousemoveX = e.offsetX; 472 lastMousemoveY = e.offsetY; 473 } 474 475 mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) { 476 var now = ( new Date() ).getTime() - 500; // To account for the timer delay. 477 478 var mousemove = []; 479 mousemove.push( now - originalMousemoveStart ); 480 mousemove.push( 481 Math.round( 482 Math.sqrt( 483 Math.pow( theEvent.offsetX - lastMousemoveX, 2 ) + 484 Math.pow( theEvent.offsetY - lastMousemoveY, 2 ) 485 ) 486 ) 487 ); 488 489 if ( mousemove[1] > 0 ) { 490 // If there was no measurable distance, then it wasn't really a move. 491 mousemoves.push( mousemove ); 492 } 493 494 mousemoveStart = null; 495 mousemoveTimer = null; 496 }, 500, e, mousemoveStart ); 497 }, supportsPassive ? { passive: true } : false ); 498 499 document.addEventListener( 'touchmove', function ( e ) { 500 if ( touchmoveCountTimer ) { 501 clearTimeout( touchmoveCountTimer ); 502 } 503 504 touchmoveCountTimer = setTimeout( function () { 505 touchmoveCount++; 506 }, 500 ); 507 }, supportsPassive ? { passive: true } : false ); 508 509 document.addEventListener( 'touchstart', function ( e ) { 510 lastTouchStart = ( new Date() ).getTime(); 511 }, supportsPassive ? { passive: true } : false ); 512 513 document.addEventListener( 'touchend', function ( e ) { 514 if ( ! lastTouchStart ) { 515 // If the touchstart happened before this script was loaded, but the touchend happened after... 516 return; 517 } 518 519 var now = ( new Date() ).getTime(); 520 521 var touchEvent = []; 522 touchEvent.push( now - lastTouchStart ); 523 524 if ( lastTouchEnd ) { 525 touchEvent.push( lastTouchStart - lastTouchEnd ); 526 } 527 528 touchEvents.push( touchEvent ); 529 530 lastTouchEnd = now; 531 532 // Don't record this time as an interval between keypresses. 533 lastKeydown = null; 534 lastKeyup = null; 535 keydowns = {}; 536 }, supportsPassive ? { passive: true } : false ); 537 538 document.addEventListener( 'scroll', function ( e ) {
539 if ( scrollCountTimer ) { 540 clearTimeout( scrollCountTimer ); 541 } 542 543 scrollCountTimer = setTimeout( function () { 544 scrollCount++; 545 }, 500 ); 546 }, supportsPassive ? { passive: true } : false ); 547 } 548 549 /** 550 * For the timing/coordinate data that is collected, don't send more than `limit` data points in the request. 551 * Choose a random slice and send those, with each batch separated by semicolons and the items in each batch 552 * separated by commas. 553 */ 554 function prepare_array_for_request( a, limit ) { 555 if ( ! limit ) { 556 limit = 100; 557 } 558 559 var rv = ''; 560 561 if ( a.length > 0 ) { 562 var random_starting_point = Math.max( 0, Math.floor( Math.random() * a.length - limit ) ); 563 564 for ( var i = 0; i < limit && i < a.length; i++ ) { 565 var entry = a[ random_starting_point + i ]; 566 rv += entry.join( ',' ) + ';'; 567 } 568 } 569 570 return rv; 571 } 572 573 if ( document.readyState !== 'loading' ) { 574 init(); 575 } else { 576 document.addEventListener( 'DOMContentLoaded', init ); 577 } 578})();; 579!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,s=".sharing-hidden .inner",a="data-sharing-more-button-id";function c(e){this.button=e,this.pane=o(e,"div").querySelector(s),this.openedBy=null,this.recentlyOpenedByHover=!1,c.instances.push(this),this.pane.setAttribute(a,c.instances.length-1),this.attachHandlers()}if(c.instances=[],c.hoverOpenDelay=200,c.recentOpenDelay=400,c.hoverCloseDelay=300,c.instantiateOrReuse=function(e){var t=o(e,"div").querySelector(s),n=t&&t.getAttribute(a),i=c.instances[n];return i||new c(e)},c.getButtonInstanceFromPane=function(e){var t=e&&e.getAttribute(a);return c.instances[t]},c.closeAll=function(){for(var e=0;e<c.instances.length;e++)c.instances[e].close()},c.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")},c.prototype.close=function(){var e;(e=this.pane)&&(e.style.display="none"),this.openedBy=null},c.prototype.toggle=function(){var e;(e=this.pane)&&"none"!==e.style.display?this.close():this.open()},c.prototype.nonHoverOpen=function(){clearTimeout(this.openTimer),clearTimeout(this.closeTimer),this.recentlyOpenedByHover?(this.recentlyOpenedByHover=!1,clearTimeout(this.hoverOpenTimer),this.open()):this.toggle()},c.prototype.resetCloseTimer=function(){clearTimeout(this.closeTimer),this.closeTimer=setTimeout(this.close.bind(this),c.hoverCloseDelay)},c.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),c.recentOpenDelay)}.bind(this),c.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 u={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===u.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&&u.bump_sharing_count_stat(i)}u.done_urls[o]=!0}},update_pinterest_count:function(e){void 0!==e.count&&1*e.count>0&&u.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");
579i.className="share-count",i.textContent=u.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=u}function d(e,t){e.setAttribute("jetpack-share-click-count",t)}function l(e){var t=e.getAttribute("jetpack-share-click-count");return null===t?0:parseInt(t,10)}function h(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 p(){m()}function m(){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){c.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},r=o(e,s);if(r){var a=c.getButtonInstanceFromPane(r);a&&(a.close(),i())}else i()})}),i(e.querySelectorAll("a.share-press-this"),function(e){var t="wp-press-this-"+Math.random().toString(36).slice(2);e.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation();var o="";if(window.getSelection?o=window.getSelection():document.getSelection?o=document.getSelection():document.selection&&(o=document.selection.createRange().text),o){var i=e.getAttribute("href");e.setAttribute("href",i+"&sel="+encodeURI(o))}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){d(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;d(n=t,l(n)+1),l(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),h(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?p():document.addEventListener("DOMContentLoaded",p),document.body.addEventListener("is.post-load",m);var f={};!0!==window.WPCOM_sharing_popups_bound&&(document.body.addEventListener("click",function(e){var t=e.target;if(t&&1===t.nodeType){var n=function(e){if("A"===e.nodeName)return e;var t=e.parentNode;return t&&"A"===t.nodeName?t:null}(t);if(n){var o=function(e){var t=window.WPCOM_sharing_popups;if(!t)return null;for(var n="share-",o=(e.getAttribute("class")||"").split(/\s+/),i=0;i<o.length;i++)if(0===o[i].indexOf(n)){var r=o[i].slice(6);if("string"==typeof t[r])return r}return null}(n);o&&(e.preventDefault(),r&&r.close(),r=window.open(n.getAttribute("href"),function(e){return"string"!=typeof f[e]&&(f[e]="wpcom"+e+"-"+Math.random().toString(36).slice(2)),f[e]}(o),window.WPCOM_sharing_popups[o]))}}}
579),window.WPCOM_sharing_popups_bound=!0)}();;
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.