PageSourceSearch

https://baldwin2k.com/sites/default/files/js/js_2VkNN3wzBkT_bS3hhQ9q9Oe-z1i8xiGgMDN-HTaSIUI.js

js baldwin2k.com collected 2026-09-25 06:13:04 UTC 47,903 bytes, 888 lines download raw bytes

1!function(t,n,o){"use strict";Drupal.behaviors.atdoubleTap={attach:function(){t.fn.doubleTapToGo=function(i){return!!("ontouchstart"in n||navigator.msMaxTouchPoints||navigator.userAgent.toLowerCase().match(/windows phone os 7/i))&&("unbind"===i?this.each(function(){t(this).off(),t(o).off("click touchstart MSPointerDown",handleTouch)}):this.each(function(){var n=!1;t(this).on("click",function(o){var i=t(this);i[0]!=n[0]&&(o.preventDefault(),n=i)}),t(o).on("click touchstart MSPointerDown",function(o){for(var i=!0,a=t(o.target).parents(),c=0;c<a.length;c++)a[c]==n[0]&&(i=!1);i&&(n=!1)})}),this)}}}}(jQuery,window,document);
2
3!function(e,a,r){"use strict";Drupal.behaviors.atrM={attach:function(o,n){function t(a){a.preventDefault(),a.stopPropagation(),e(this).toggleClass("is-open--parent"),"true"==e(this).attr("aria-expanded")?e(this).attr("aria-expanded","false"):"false"==e(this).attr("aria-expanded")&&e(this).attr("aria-expanded","true"),e(this).parent().next(".is-child").toggleClass("is-open--child")}function i(a){var r=e("#rm-accordion-trigger").html();e(a).each(function(){0==e(this).next(".rm-accordion-trigger").length&&e(this).after(r);var a=e(this).parent().parent().attr("id");e(this).next().attr("aria-controls",a+"__child-menu"),e(this).parent().next(".is-child").attr("id",a+"__child-menu")})}if(e(".rm-block").removeClass("js-hide"),r.matchMedia("only screen").matches){var s=n[n.ajaxPageState.theme].at_responsivemenus,c=s.default,l=s.responsive,d=".rm-block .rm-toggle__link",m=s.acd.acd_default,u=s.acd.acd_responsive,p=s.acd.acd_both,_=s.acd.acd_load;e(d,o).on("click",function(r){r.preventDefault(),r.stopPropagation(),e(a.body).toggleClass("rm-is-open"),"true"==e(this).attr("aria-expanded")?(e(this).attr("aria-expanded","false"),e("#rm-toggle__icon--use").attr("xlink:href","#rm-toggle__icon--open")):"false"==e(this).attr("aria-expanded")&&(e(this).attr("aria-expanded","true"),e("#rm-toggle__icon--use").attr("xlink:href","#rm-toggle__icon--close")),e(a).one("click",function(r){0===e(".rm-block").has(r.target).length&&(e(a.body).removeClass("rm-is-open"),e(d).attr("aria-expanded","false"),e("#rm-toggle__icon--use").attr("xlink:href","#rm-toggle__icon--open"))})}),enquire.register(s.bp,{setup:function(){e(a.body).addClass(c),e(".rm-block").parent(".l-r").addClass("rm-region").parent(".l-rw").addClass("rm-row"),"ms-dropmenu"==c&&e(".rm-block__content li:has(ul)").doubleTapToGo(),1==m&&1==_&&(e(".rm-block .menu-level-1").addClass("ms-accordion"),e.ready(i(".ms-accordion .is-parent__wrapper .menu__link")),e(".ms-accordion .rm-accordion-trigger",o).on("click",t))},match:function(){"ms-none"!==l&&l!==c&&(e(a.body).removeClass(c).addClass(l),1==_&&(1==u?0==p&&(e(".rm-block .menu-level-1").addClass("ms-accordion"),e.ready(i(".ms-accordion .is-parent__wrapper .menu__link")),e(".ms-accordion .rm-accordion-trigger",o).on("click",t)):(e(".ms-accordion .rm-accordion-trigger").remove(),e(".rm-block .menu-level-1").removeClass("ms-accordion"),e(".rm-block .menu").removeClass("is-open--child"))),"ms-dropmenu"==l?e(".rm-block__content li:has(ul)").doubleTapToGo():e(".rm-block__content li:has(ul)").doubleTapToGo("unbind"))},unmatch:function(){e(a.body).addClass(c),1==_&&(1==m?0==p&&(e(".rm-block .menu-level-1").addClass("ms-accordion"),e.ready(i(".ms-accordion .is-parent__wrapper .menu__link")),e(".ms-accordion .rm-accordion-trigger",o).on("click",t)):(e(".ms-accordion .rm-accordion-trigger").remove(),e(".rm-block .menu-level-1").removeClass("ms-accordion"),e(".rm-block .menu").removeClass("is-open--child"))),"ms-dropmenu"==c?e(".rm-block__content li:has(ul)").doubleTapToGo():e(".rm-block__content li:has(ul)").doubleTapToGo("unbind"),l!==c&&e(a.body).removeClass(l)}})}}}}(jQuery,document,window);
4
5(function ($) {
6  const autosize = createAutosizer();
7
8  $(document).on('click', '.new-form-item--change-password-btn', onChangePasswordInputView)
9  $(document).on('click', '.new-form--user-registration-step--close-btn', onCloseUserFormClick)
10  $(document).on('click', '.new-alert--close', onAlertClose)
11  $(document).on('change', '.new-form-item input, .new-form-item select, .new-form-item textarea', onInputsChange);
12  $(document).on('mousedown', '.new-form-item-checkbox label', onCheckboxFocusIn);
13  $(document).on('mouseup', '.new-form-item-checkbox label', onCheckboxFocusOut);
14  $(document).on('change', '.new-form-item-checkbox input', onCheckboxChange);
15  $(document).on('keypress', '.new-form-item input', onInputsKeyPress);
16  $(document).on('blur', '.redactor-box', onRedactorBoxBlur)
17
18  checkInputsForEmpty();
19
20  //to catch browser autofill
21  setTimeout(checkInputsForEmpty, 500);
22  setTimeout(checkInputsForEmpty, 1500);
23
24  newDialogsInit();
25
26  mobileMenuInit();
27
28  attachAltToMainImg();
29
30  initArticleResponsiveTables();
31
32  stylePaypalBlock();
33
34  autosize(document.querySelectorAll('.form-textarea'));
35
36  function onRedactorBoxBlur(e) {
37    toggleNotEmptyState($(e.currentTarget));
38  }
39
40  function onCheckboxChange(e) {
41    if ( $(e.target).is(':checked') ) {
42      $(e.target).parent().addClass('new-form-item-checkbox--checked');
43    } else {
44      $(e.target).parent().removeClass('new-form-item-checkbox--checked');
45    }
46
47  }
48  function onCheckboxFocusIn(e) {
49    $(e.currentTarget).addClass('new-form-item-checkbox--focused')
50  }
51  function onCheckboxFocusOut(e) {
52    $(e.currentTarget).removeClass('new-form-item-checkbox--focused')
53  }
54
55  function stylePaypalBlock() {
56    if ($('.new-paypal-form-wrapper').length > 0) {
57      $('.new-paypal-form-wrapper').find('table').wrap($('<div class="new-paypal-form-wrapper--table-wrapper">'))
58    }
59  }
60
61  function onAlertClose(e) {
62    e.preventDefault();
63    $(e.target).parents('.new-alert--closeble').addClass('new-alert--hidden')
64  }
65
66  function onCloseUserFormClick(e) {
67    e.preventDefault();
68    window.history.back()
69  }
70
71  function onChangePasswordInputView(e) {
72    e.preventDefault();
73    const $input = $(e.currentTarget).siblings('input');
74    const input = $input[0];
75    const inputType = $input.attr('type');
76    const value = $input.val();
77    const len = value.length * 2;
78
79    $(e.currentTarget).toggleClass('new-form-item--change-password--visible');
80    $input.focus();
81
82    if (inputType === 'password') {
83      $input.attr('type', 'text')
84    } else {
85      $input.attr('type', 'password')
86    }
87    //move cursor to the end
88    if (input.setSelectionRange) {
89      setTimeout(function () {
90        input.setSelectionRange(len, len);
91      }, 0);
92    } else {
93      $input.val(value);
94    }
95  }
96
97  function onInputsKeyPress(e) {
98    if (e.keyCode === 13) {
99      $(e.target.form).find('.js-form-submit').trigger('mousedown');
100    }
101  }
102
103  function checkInputsForEmpty(e) {
104    const $inputs = $('.new-form-item input, .new-form-item select, .new-form-item textarea, .redactor-box');
105    $inputs.each(function(i, input) {
106      toggleNotEmptyState($(input))
107    })
108  }
109  function onInputsChange(e) {
110    toggleNotEmptyState($(e.target));
111  }
112
113  function toggleNotEmptyState($input){
114    let notEmpty = $input.val().length > 0;
115    if (!notEmpty && $input.find('option').length > 0) {
116      notEmpty = $input.find('option:selected').length > 0;
117    }
118    if ($input.hasClass('redactor-box')) {
119      notEmpty = $input.find('.redactor-styles').text().length > 0
120    }
121    if (notEmpty) {
122      $input.addClass('new-form-item--not-empty');
123    } else {
124      $input.removeClass('new-form-item--not-empty');
125    }
126  }
127
128  function newDialogsInit() {
129    const DIALOG_OVERLAY_CLASS = 'ui-widget-overlay';
130    const DIALOG_WRAPPER_CLASS = 'new-dialog';
131
132    const DIALOG_CREATED_CLASS = 'new-dialog--created';
133    const DIALOG_OPENED_CLASS = 'new-dialog--opened';
134    const DIALOG_OVERLAY_OPENED_CLASS = 'new-dialog-overlay--opened';
135
136    $(document).on("dialogopen", onDialogOpened);
137    $(document).on("dialogbeforeclose", onDialogClose);
138
139    function onDialogClose(e, ui) {
140      const $dialogElement = e.target;
141      const dialogObject = createDialogObject($dialogElement);
142
143      if (!dialogObject.element.closeable) {
144        closeDialog(dialogObject)
145      }
146      return dialogObject.element.closeable;
147    }
148
149    function onDialogOpened(e, ui) {
150      const $dialogElement = e.target;
151      const dialogObject = createDialogObject($dialogElement);
152      const $registerLink = dialogObject.dialog.find('.user-login-form--register-link-wrapper');
153      const $textareas = dialogObject.dialog.find('.form-textarea');
154
155      if (dialogObject.wrapper.length > 0) {
156        dialogObject.element.closeable = false;
157        openDialog(dialogObject)
158      }
159      if ($registerLink.length > 0) {
160        $registerLink.detach();
161        $registerLink.appendTo('.ui-dialog-buttonpane')
162      }
163      if ($textareas.length > 0) {
164        autosize($textareas.get());
165      }
166
167    }
168
169    function createDialogObject($dialogElement) {
170      const $dialog = $($dialogElement);
171      return {
172        element: $dialogElement,
173        dialog: $dialog,
174        wrapper: $dialog.parents('.' + DIALOG_WRAPPER_CLASS),
175        overlay: $('.' + DIALOG_OVERLAY_CLASS)
176      }
177    }
178
179    function openDialog(dialogObject) {
180      dialogObject.wrapper.addClass(DIALOG_CREATED_CLASS);
181      dialogObject.overlay.addClass(DIALOG_OVERLAY_OPENED_CLASS)
182      setTimeout(function () {
183        dialogObject.wrapper.addClass(DIALOG_OPENED_CLASS)
184      }, 200)
185    }
186
187    function closeDialog(dialogObject) {
188      dialogObject.wrapper.removeClass(DIALOG_OPENED_CLASS)
189      dialogObject.overlay.removeClass(DIALOG_OVERLAY_OPENED_CLASS)
190      setTimeout(function () {
191        dialogObject.element.closeable = true;
192        dialogObject.dialog.dialog().dialog('close');
193      }, 1000);
194    }
195  }
196
197  function mobileMenuInit() {
198    const MENU_OPENED_CLASS_NAME = 'mobile-menu-opened';
199    const MENU_MARGIN_LEFT = 24;
200    const MENU_MARGIN_TOP = 16;
201
202    const $mobileMenuOutline = $('.mobile-menu--outline');
203    const $mobileMenuContent = $('.mobile-menu--content');
204    const $leaderboard = $('.l-leaderboard');
205    const $navBar = $('#rid-navbar');
206
207    let menuWidth;
208    let menuHeight;
209
210    $(document).on('click', '.mobile-menu-toggle-btn', toggleMobileMenu);
211    recalculateSizes();
212    $(window).on('resize', recalculateSizes)
213    $(window).on('scroll', checkIfMenuResizeNeeded)
214
215    function toggleMobileMenu(e) {
216      e.preventDefault();
217      $('body').toggleClass(MENU_OPENED_CLASS_NAME);
218      recalculateSizes();
219    }
220
221    function checkIfMenuResizeNeeded() {
222      if ($('body').hasClass(MENU_OPENED_CLASS_NAME) && !$navBar.hasClass('sticky')) {
223        recalculateSizes();
224      }
225    }
226
227    function setSizes() {
228      $mobileMenuOutline.width(menuWidth).height(menuHeight);
229      $mobileMenuContent.outerWidth(menuWidth).outerHeight(menuHeight)
230      if ($('body').hasClass(MENU_OPENED_CLASS_NAME)) {
231        $mobileMenuContent.css({
232          'clip': 'rect(0, ' + menuWidth + 'px, ' + menuHeight + 'px, 0)'
233        })
234      } else {
235        $mobileMenuContent.css({
236          'clip': 'rect(0, ' + menuWidth + 'px, 0, ' + menuWidth + 'px)'
237        })
238      }
239    }
240
241    function recalculateSizes() {
242      leaderboardHeight = 0;
243      menutopmargin = MENU_MARGIN_TOP;
244      if ($leaderboard.length > 0 && !$navBar.hasClass('sticky')) {
245        leaderboardHeight = $leaderboard.height() - $(window).scrollTop()
246      }
247      if ($(window).width() <= 500) {
248        menutopmargin = 0;
249      }
250      menuWidth = $(window).width() - MENU_MARGIN_LEFT;
251      menuHeight = $(window).height() - leaderboardHeight + menutopmargin;
252      setSizes();
253    }
254  }
255
256  function attachAltToMainImg () {
257    //if there's a main img... add alt text from the caption if one exists otherwise from the title
258    const $img = $('.node--view-mode-full').find('.field-node-field-media-main-image').find('img');
259    if ($img.length > 0) {
260      const caption = $('.field-name-field-media-image-caption').find('.field__item').text();
261      const text = caption.length > 0? caption : $('.field-node--node-title').find('h1').text();
262      $img.attr('alt', text);
263    }
264  }
265
266  function initArticleResponsiveTables () {
267    const $tables = $('.node--view-mode-full').find('.field-node--body').find('table');
268
269    if ($tables.length > 0) {
270      // console.log($tables)
271      $tables.each(function (i, table) {
272        $(table).wrap('<div class="new-table-responsive--wrapper">');
273        //console.log($table)
274      })
275    }
276  }
277
278})(jQuery)
279
280function createAutosizer() {
281  const map = (typeof Map === "function") ? new Map() : (function () {
282    const keys = [];
283    const values = [];
284
285    return {
286      has(key) {
287        return keys.indexOf(key) > -1;
288      },
289      get(key) {
290        return values[keys.indexOf(key)];
291      },
292      set(key, value) {
293        if (keys.indexOf(key) === -1) {
294          keys.push(key);
295          values.push(value);
296        }
297      },
298      delete(key) {
299        const index = keys.indexOf(key);
300        if (index > -1) {
301          keys.splice(index, 1);
302          values.splice(index, 1);
303        }
304      },
305    }
306  })();
307
308  let createEvent = (name) => new Event(name, {
309    bubbles: true
310  });
311  try {
312    new Event('test');
313  } catch (e) {
314    // IE does not support `new Event()`
315    createEvent = (name) => {
316      const evt = document.createEvent('Event');
317      evt.initEvent(name, true, false);
318      return evt;
319    };
320  }
321
322  function assign(ta) {
323    if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return;
324
325    let heightOffset = null;
326    let clientWidth = null;
327    let cachedHeight = null;
328
329    function init() {
330      const style = window.getComputedStyle(ta, null);
331
332      if (style.resize === 'vertical') {
333        ta.style.resize = 'none';
334      } else if (style.resize === 'both') {
335        ta.style.resize = 'horizontal';
336      }
337
338      if (style.boxSizing === 'content-box') {
339        heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom));
340      } else {
341        heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
342      }
343      // Fix when a textarea is not on document body and heightOffset is Not a Number
344      if (isNaN(heightOffset)) {
345        heightOffset = 0;
346      }
347
348      update();
349    }
350
351    function changeOverflow(value) {
352      {
353        // Chrome/Safari-specific fix:
354        // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space
355        // made available by removing the scrollbar. The following forces the necessary text reflow.
356        const width = ta.style.width;
357        ta.style.width = '0px';
358        // Force reflow:
359        /* jshint ignore:start */
360        ta.offsetWidth;
361        /* jshint ignore:end */
362        ta.style.width = width;
363      }
364
365      ta.style.overflowY = value;
366    }
367
368    function getParentOverflows(el) {
369      const arr = [];
370
371      while (el && el.parentNode && el.parentNode instanceof Element) {
372        if (el.parentNode.scrollTop) {
373          arr.push({
374            node: el.parentNode,
375            scrollTop: el.parentNode.scrollTop,
376          })
377        }
378        el = el.parentNode;
379      }
380
381      return arr;
382    }
383
384    function resize() {
385      if (ta.scrollHeight === 0) {
386        // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM.
387        return;
388      }
389
390      const overflows = getParentOverflows(ta);
391      const docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240)
392
393      ta.style.height = '';
394      ta.style.height = (ta.scrollHeight + heightOffset) + 'px';
395
396      // used to check if an update is actually necessary on window.resize
397      clientWidth = ta.clientWidth;
398
399      // prevents scroll-position jumping
400      overflows.forEach(el => {
401        el.node.scrollTop = el.scrollTop
402      });
403
404      if (docTop) {
405        document.documentElement.scrollTop = docTop;
406      }
407    }
408
409    function update() {
410      resize();
411
412      const styleHeight = Math.round(parseFloat(ta.style.height));
413      const computed = window.getComputedStyle(ta, null);
414
415      // Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box
416      var actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight;
417
418      // The actual height not matching the style height (set via the resize method) indicates that
419      // the max-height has been exceeded, in which case the overflow should be allowed.
420      if (actualHeight < styleHeight) {
421        if (computed.overflowY === 'hidden') {
422          changeOverflow('scroll');
423          resize();
424          actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight;
425        }
426      } else {
427        // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands.
428        if (computed.overflowY !== 'hidden') {
429          changeOverflow('hidden');
430          resize();
431          actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight;
432        }
433      }
434
435      if (cachedHeight !== actualHeight) {
436        cachedHeight = actualHeight;
437        const evt = createEvent('autosize:resized');
438        try {
439          ta.dispatchEvent(evt);
440        } catch (err) {
441          // Firefox will throw an error on dispatchEvent for a detached element
442          // https://bugzilla.mozilla.org/show_bug.cgi?id=889376
443        }
444      }
445    }
446
447    const pageResize = () => {
448      if (ta.clientWidth !== clientWidth) {
449        update();
450      }
451    };
452
453    const destroy = (style => {
454      window.removeEventListener('resize', pageResize, false);
455      ta.removeEventListener('input', update, false);
456      ta.removeEventListener('keyup', update, false);
457      ta.removeEventListener('autosize:destroy', destroy, false);
458      ta.removeEventListener('autosize:update', update, false);
459
460      Object.keys(style).forEach(key => {
461        ta.style[key] = style[key];
462      });
463
464      map.delete(ta);
465    }).bind(ta, {
466      height: ta.style.height,
467      resize: ta.style.resize,
468      overflowY: ta.style.overflowY,
469      overflowX: ta.style.overflowX,
470      wordWrap: ta.style.wordWrap,
471    });
472
473    ta.addEventListener('autosize:destroy', destroy, false);
474
475    // IE9 does not fire onpropertychange or oninput for deletions,
476    // so binding to onkeyup to catch most of those events.
477    // There is no way that I know of to detect something like 'cut' in IE9.
478    if ('onpropertychange' in ta && 'oninput' in ta) {
479      ta.addEventListener('keyup', update, false);
480    }
481
482    window.addEventListener('resize', pageResize, false);
483    ta.addEventListener('input', update, false);
484    ta.addEventListener('autosize:update', update, false);
485    ta.style.overflowX = 'hidden';
486    ta.style.wordWrap = 'break-word';
487
488    map.set(ta, {
489      destroy,
490      update,
491    });
492
493    init();
494  }
495
496  function destroy(ta) {
497    const methods = map.get(ta);
498    if (methods) {
499      methods.destroy();
500    }
501  }
502
503  function update(ta) {
504    const methods = map.get(ta);
505    if (methods) {
506      methods.update();
507    }
508  }
509
510  let autosize = null;
511
512
513  autosize = (el, options) => {
514    if (el) {
515      Array.prototype.forEach.call(el.length ? el : [el], x => assign(x, options));
516    }
517    return el;
518  };
519  autosize.destroy = el => {
520    if (el) {
521      Array.prototype.forEach.call(el.length ? el : [el], destroy);
522    }
523    return el;
524  };
525  autosize.update = el => {
526    if (el) {
527      Array.prototype.forEach.call(el.length ? el : [el], update);
528    }
529    return el;
530  };
531  return autosize;
532}
533;
534(function ($, Drupal) {
535  //let utility_block_settings = drupalSettings.utility_block_settings;
536
537  if($('#subscribe-wrapper').length > 0) {
538    var subhtml = $('#subscribe-wrapper').html();
539    $('#subscribe-wrapper').html('');
540    if($('#block-labsadssidebarslot1').length > 0) {
541      $('#block-labsadssidebarslot1').before(subhtml);
542    }
543    if($('#rid-content > .slot-index-3').length > 0) {
544      $('#rid-content > .slot-index-3').before(subhtml);
545    }
546    if($('.layout__region--bottom .field-node--field-flags').length > 0) {
547      subhtml = subhtml.replace('new-btn new-btn--secondary', 'new-btn new-btn--primary');
548      $('.layout__region--bottom .field-node--field-flags').before(subhtml);
549    }
550  }
551
552  if($('#paypal-wrapper-wrapper').length > 0 && !$('.paypal-wrapper').is(':visible')) {
553    var pphtml = $('#paypal-wrapper-wrapper').html();
554    if($('.slot-index-7').length > 0 ) {
555      $('.slot-index-4').after(pphtml);
556    }
557  }
558
559  if($('#labsfblike') &&  $('#social-sharing-block')) {
560    var html = $('#labsfblike').html();
561    $('#labsfblike').html('');
562    if($('.field-type-social-media').css('display')== 'none') {
563      $('.field-node--node-title').prepend(html);
564    } else {
565      $('#social-sharing-block').prepend(html);
566    }
567  }
568
569
570  $('.location-viewer a').on('click', function(e){
571    $('.org-locations-nav').toggleClass('hidden');
572  });
573  $('.field-node--body a').each(function(){
574    var a = new RegExp('/' + window.location.host + '/');
575    if (!a.test(this.href)) {
576      $(this).attr("target","_blank");
577    }
578  });
579
580})(jQuery, Drupal);
581
582//defer images
583deferred_images = document.getElementsByClassName('defer-load');
584// deferred_images.forEach(loadDeferredImage);
585  for (var index = 0; index < deferred_images.length; index++) {
586
587    if(deferred_images[index] !== 'undefined' && deferred_images[index].hasAttribute('data-src')){
588    var imgsrc = deferred_images[index].getAttribute('data-src');
589    deferred_images[index].setAttribute('src', imgsrc);
590  }
591}
592
593//console.log(deferred_images);
594;
595
596var weather_canvas = document.getElementById("wicon-page-top");
597
598if (weather_canvas && weather_canvas.length !== 0) {
599  var tile_skycons_icon = weather_canvas.getAttribute('data-skycon');
600  var skycons_tile = new Skycons(
601    {
602      "monochrome": false,
603      "strokewidth": '.05'
604    }
605  );
606  skycons_tile.add(weather_canvas, tile_skycons_icon);
607
608  skycons_tile.play();
609}
610
611var wicon_days = document.getElementsByClassName("wicon-page-day");
612
613var skycons_tile = [];
614for (var i = 0; i < wicon_days.length; i++) {
615  var tile_skycons_icon = wicon_days.item(i).getAttribute('data-skycon');
616  var tile_skycons_color = wicon_days.item(i).getAttribute('data-color');
617  var skycons_tile = new Skycons(
618    {
619      "monochrome": true, //could be true for colored icons
620      "strokewidth": '.05',
621      "color": tile_skycons_color
622    }
623  );
624  skycons_tile.add(wicon_days.item(i), tile_skycons_icon);
625  skycons_tile.play();
626}
627;
628if(drupalSettings.hasOwnProperty('geocms_context') && drupalSettings.geocms_context.hasOwnProperty('item_nid') ) {
vendor: 4,239 bytes, lines 629-656
629  let slot_to_hide = 'slot-id-'+ drupalSettings.geocms_context.item_nid;
630  if(document.getElementById(slot_to_hide)){
631    document.getElementById(slot_to_hide).style.display = "none";
632  }
633}
634;
635/*!
636 * jQuery Form Plugin
637 * version: 4.2.2
638 * Requires jQuery v1.7.2 or later
639 * Project repository: https://github.com/jquery-form/form
640
641 * Copyright 2017 Kevin Morris
642 * Copyright 2006 M. Alsup
643
644 * Dual licensed under the LGPL-2.1+ or MIT licenses
645 * https://github.com/jquery-form/form#license
646
647 * This library is free software; you can redistribute it and/or
648 * modify it under the terms of the GNU Lesser General Public
649 * License as published by the Free Software Foundation; either
650 * version 2.1 of the License, or (at your option) any later version.
651 * This library is distributed in the hope that it will be useful,
652 * but WITHOUT ANY WARRANTY; without even the implied warranty of
653 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
654 * Lesser General Public License for more details.
655 */
656!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,r){return void 0===r&&(r="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(r),r}:e(jQuery)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).closest("form").ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=r.form;if(i.clk=r,"image"===r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n=/\r?\n/g,i={};i.fileapi=void 0!==e('<input type="file">').get(0).files,i.formdata=void 0!==window.FormData;var o=!!e.fn.prop;e.fn.attr2=function(){if(!o)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t,r,n,s){function u(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;a<o;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function c(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){a("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function i(){function t(){try{var e=n(v).readyState;a("state = "+e),e&&"uninitialized"===e.toLowerCase()&&setTimeout(t,50)}catch(e){a("Server abort: ",e," (",e.name,")"),s(L),j&&clearTimeout(j),j=void 0}}var r=p.attr2("target"),i=p.attr2("action"),o=p.attr("enctype")||p.attr("encoding")||"multipart/form-data";w.setAttribute("target",m),l&&!/post/i.test(l)||w.setAttribute("method","POST"),i!==f.url&&w.setAttribute("action",f.url),f.skipEncodingOverride||l&&!/post/i.test(l)||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),f.timeout&&(j=setTimeout(function(){T=!0,s(A)},f.timeout));var u=[];try{if(f.extraData)for(var c in f.extraData)f.extraData.hasOwnProperty(c)&&(e.isPlainObject(f.extraData[c])&&f.extraData[c].hasOwnProperty("name")&&f.extraData[c].hasOwnProperty("value")?u.push(e('<input type="hidden" name="'+f.extraData[c].name+'">',k).val(f.extraData[c].value).appendTo(w)[0]):u.push(e('<input type="hidden" name="'+c+'">',k).val(f.extraData[c]).appendTo(w)[0]));f.iframeTarget||h.appendTo(D),v.attachEvent?v.attachEvent("onload",s):v.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(e){document.createElement("form").submit.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",o),r?w.setAttribute("target",r):p.removeAttr("target"),e(u).remove()}}
656function s(t){if(!x.aborted&&!X){if((O=n(v))||(a("cannot access response document"),t=L),t===A&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t===L&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(O&&O.location.href!==f.iframeSrc||T){v.detachEvent?v.detachEvent("onload",s):v.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"===f.dataType||O.XMLDocument||e.isXMLDoc(O);if(a("isXml="+o),!o&&window.opera&&(null===O.body||!O.body.innerHTML)&&--C)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=O.body?O.body:O.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=O.XMLDocument?O.XMLDocument:O,o&&(f.dataType="xml"),x.getResponseHeader=function(e){return{"content-type":f.dataType}[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(f.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||f.textarea){var p=O.getElementsByTagName("textarea")[0];if(p)x.responseText=p.value,x.status=Number(p.getAttribute("status"))||x.status,x.statusText=p.getAttribute("statusText")||x.statusText;else if(l){var m=O.getElementsByTagName("pre")[0],g=O.getElementsByTagName("body")[0];m?x.responseText=m.textContent?m.textContent:m.innerText:g&&(x.responseText=g.textContent?g.textContent:g.innerText)}}else"xml"===c&&!x.responseXML&&x.responseText&&(x.responseXML=q(x.responseText));try{M=N(x,c,f)}catch(e){i="parsererror",x.error=r=e||i}}catch(e){a("error caught: ",e),i="error",x.error=r=e||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(f.success&&f.success.call(f.context,M,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,f])):i&&(void 0===r&&(r=x.statusText),f.error&&f.error.call(f.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,f,r])),d&&e.event.trigger("ajaxComplete",[x,f]),d&&!--e.active&&e.event.trigger("ajaxStop"),f.complete&&f.complete.call(f.context,x,i),X=!0,f.timeout&&clearTimeout(j),setTimeout(function(){f.iframeTarget?h.attr("src",f.iframeSrc):h.remove(),x.responseXML=null},100)}}}var u,c,f,d,m,h,v,x,y,b,T,j,w=p[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(c=0;c<g.length;c++)u=e(g[c]),o?u.prop("disabled",!1):u.removeAttr("disabled");(f=e.extend(!0,{},e.ajaxSettings,t)).context=f.context||f,m="jqFormIO"+(new Date).getTime();var k=w.ownerDocument,D=p.closest("body");if(f.iframeTarget?(b=(h=e(f.iframeTarget,k)).attr2("name"))?m=b:h.attr2("name",m):(h=e('<iframe name="'+m+'" src="'+f.iframeSrc+'" />',k)).css({position:"absolute",top:"-1000px",left:"-1000px"}),v=h[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(e){}h.attr("src",f.iframeSrc),x.error=r,f.error&&f.error.call(f.context,x,r,t),d&&e.event.trigger("ajaxError",[x,f,r]),f.complete&&f.complete.call(f.context,x,r)}},(d=f.global)&&0==e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,f]),f.beforeSend&&!1===f.beforeSend.call(f.context,x,f))return f.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;(y=w.clk)&&(b=y.name)&&!y.disabled&&(f.extraData=f.extraData||{},f.extraData[b]=y.value,"image"===y.type&&(f.extraData[b+".x"]=w.clk_x,f.extraData[b+".y"]=w.clk_y));var A=1,L=2,F=e("meta[name=csrf-token]").attr("content"),E=e("meta[name=csrf-param]").attr("content");E&&F&&(f.extraData=f.extraData||{},f.extraData[E]=F),f.forceSync?i():setTimeout(i,10);var M,O,X,C=50,q=e.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},_=e.parseJSON||function(e){return window.eval("("+e+")")},N=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i=("xml"===r||!r)&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(
656o=a.dataFilter(o,r)),"string"==typeof o&&(("json"===r||!r)&&n.indexOf("json")>=0?o=_(o):("script"===r||!r)&&n.indexOf("javascript")>=0&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var l,f,d,p=this;"function"==typeof t?t={success:t}:"string"==typeof t||!1===t&&arguments.length>0?(t={url:t,data:r,dataType:n},"function"==typeof s&&(t.success=s)):void 0===t&&(t={}),l=t.method||t.type||this.attr2("method"),(d=(d="string"==typeof(f=t.url||this.attr2("action"))?e.trim(f):"")||window.location.href||"")&&(d=(d.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:d,success:e.ajaxSettings.success,type:l||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&!1===t.beforeSerialize(this,t))return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var h=t.traditional;void 0===h&&(h=e.ajaxSettings.traditional);var v,g=[],x=this.formToArray(t.semantic,g,t.filtering);if(t.data){var y=e.isFunction(t.data)?t.data(x):t.data;t.extraData=y,v=e.param(y,h)}if(t.beforeSubmit&&!1===t.beforeSubmit(x,this,t))return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[x,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var b=e.param(x,h);v&&(b=b?b+"&"+v:v),"GET"===t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+b,t.data=null):t.data=b;var T=[];
656if(t.resetForm&&T.push(function(){p.resetForm()}),t.clearForm&&T.push(function(){p.clearForm(t.includeHidden)}),!t.dataType&&t.target){var j=t.success||function(){};T.push(function(r,a,n){var i=arguments,o=t.replaceTarget?"replaceWith":"html";e(t.target)[o](r).each(function(){j.apply(this,i)})})}else t.success&&(e.isArray(t.success)?e.merge(T,t.success):T.push(t.success));if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=T.length;i<o;i++)T[i].apply(n,[e,r,a||p,p])},t.error){var w=t.error;t.error=function(e,r,a){var n=t.context||this;w.apply(n,[e,r,a,p])}}if(t.complete){var S=t.complete;t.complete=function(e,r){var a=t.context||this;S.apply(a,[e,r,p])}}var k=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}).length>0,D="multipart/form-data",A=p.attr("enctype")===D||p.attr("encoding")===D,L=i.fileapi&&i.formdata;a("fileAPI :"+L);var F,E=(k||A)&&!L;!1!==t.iframe&&(t.iframe||E)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){F=c(x)}):F=c(x):F=(k||A)&&L?function(r){for(var a=new FormData,n=0;n<r.length;n++)a.append(r[n].name,r[n].value);if(t.extraData){var i=u(t.extraData);for(n=0;n<i.length;n++)i[n]&&a.append(i[n][0],i[n][1])}t.data=null;var o=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:l||"POST"});t.uploadProgress&&(o.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(a/n*100)),t.uploadProgress(e,a,n,r)},!1),r}),o.data=null;var s=o.beforeSend;return o.beforeSend=function(e,r){t.formData?r.data=t.formData:r.data=a,s&&s.call(this,e,r)},e.ajax(o)}(x):e.ajax(t),p.removeData("jqxhr").data("jqxhr",F);for(var M=0;M<g.length;M++)g[M]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(n,i,o,s){if(("string"==typeof n||!1===n&&arguments.length>0)&&(n={url:n,data:i,dataType:o},"function"==typeof s&&(n.success=s)),n=n||{},n.delegation=n.delegation&&e.isFunction(e.fn.on),!n.delegation&&0===this.length){var u={s:this.selector,c:this.context};return!e.isReady&&u.s?(a("DOM not ready, queuing ajaxForm"),e(function(){e(u.s,u.c).ajaxForm(n)}),this):(a("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return n.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,r).on("submit.form-plugin",this.selector,n,t).on("click.form-plugin",this.selector,n,r),this):this.ajaxFormUnbind().on("submit.form-plugin",n,t).on("click.form-plugin",n,r)},e.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,r,a){var n=[];if(0===this.length)return n;var o,s=this[0],u=this.attr("id"),c=t||void 0===s.elements?s.getElementsByTagName("*"):s.elements;if(c&&(c=e.makeArray(c)),u&&(t||/(Edge|Trident)\//.test(navigator.userAgent))&&(o=e(':input[form="'+u+'"]').get()).length&&(c=(c||[]).concat(o)),!c||!c.length)return n;e.isFunction(a)&&(c=e.map(c,a));var l,f,d,p,m,h,v;for(l=0,h=c.length;l<h;l++)if(m=c[l],(d=m.name)&&!m.disabled)if(t&&s.clk&&"image"===m.type)s.clk===m&&(n.push({name:d,value:e(m).val(),type:m.type}),n.push({name:d+".x",value:s.clk_x},{name:d+".y",value:s.clk_y}));else if((p=e.fieldValue(m,!0))&&p.constructor===Array)for(r&&r.push(m),f=0,v=p.length;f<v;f++)n.push({name:d,value:p[f]});else if(i.fileapi&&"file"===m.type){r&&r.push(m);var g=m.files;if(g.length)for(f=0;f<g.length;f++)n.push({name:d,value:g[f],type:m.type});else n.push({name:d,value:"",type:m.type})}else null!==p&&void 0!==p&&(r&&r.push(m),n.push({name:d,value:p,type:m.type,required:m.required}));if(!t&&s.clk){var x=e(s.clk),y=x[0];(d=y.name)&&!y.disabled&&"image"===y.type&&(n.push({name:d,value:x.val()}),n.push({name:d+".x",value:s.clk_x},{name:d+".y",value:s.clk_y}))}return n},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var r=[];return this.each(function(){var a=this.name;if(a){var n=e.fieldValue(this,t);if(n&&n.constructor===Array)for(var i=0,o=n.length;i<o;i++)r.push({name:a,value:n[i]});else null!==n&&void 0!==n&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;a<n;a++){var i=this[a],o=e.fieldValue(i,t);null===o||void 0===o||o.constructor===Array&&!o.length||(o.constructor===Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,i=t.type,o=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"===i||"button"===i||("checkbox"===i||"radio"===i)&&!t.checked||("submit"===i||"image"===i)&&t.form&&t.form.clk!==t||"select"===o&&-1===t.selectedIndex))return null;if("select"===o){var s=t.selectedIndex;if(s<0)return null;for(var u=[],c=t.options,l="select-one"===i,f=l?s+1:c.length,d=l?s:0;d<f;d++){var p=c[d];if(p.selected&&!p.disabled){var m=p.value;if(m||(m=p.attributes&&p.attributes.value&&!p.attributes.value.specified?p.text:p.value),l)return m;u.push(m)}}return u}return e(t).val().replace(n,"\r\n")},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"===n?this.value="":"checkbox"===a||"radio"===a?this.checked=!1:"select"===n?this.selectedIndex=-1:"file"===a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(!0===t&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")}
656)},e.fn.resetForm=function(){return this.each(function(){var t=e(this),r=this.tagName.toLowerCase();switch(r){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var a=t.parents("select");return a.length&&a[0].multiple?"option"===r?this.selected=this.defaultSelected:t.find("option").resetForm():a.resetForm(),!0;case"select":return t.find("option").each(function(e){if(this.selected=this.defaultSelected,this.defaultSelected&&!t[0].multiple)return t[0].selectedIndex=e,!1}),!0;case"label":var n=e(t.attr("for")),i=t.find("input,select,textarea");return n[0]&&i.unshift(n[0]),i.resetForm(),!0;case"form":return("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset(),!0;default:return t.find("form,input,label,select,textarea").resetForm(),!0}})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"===r||"radio"===r)this.checked=t;else if("option"===this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"===a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1});
657
658;
659!function(t,a,e){"use strict";Drupal.behaviors.atBP={attach:function(t,n){if(a.matchMedia("only screen").matches){var i=n[n.ajaxPageState.theme].at_breakpoints;for(var o in i)i.hasOwnProperty(o)&&function(t,a){enquire.register(a,{match:function(){e.body.classList.add("bp--"+t)},unmatch:function(){e.body.classList.remove("bp--"+t)}})}(o.split("_").join("-"),i[o].mediaquery)}}}}(jQuery,window,document);
660
661window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),i=document.getElementsByTagName("script")[0],n=null;t.type="text/css";t.id="matchmediajs-test";i.parentNode.insertBefore(t,i);n="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle;e={matchMedium:function(e){var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";if(t.styleSheet){t.styleSheet.cssText=i}else{t.textContent=i}return n.width==="1px"}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}());
662;
663(function(){if(window.matchMedia&&window.matchMedia("all").addListener){return false}var e=window.matchMedia,i=e("only all").matches,n=false,t=0,a=[],r=function(i){clearTimeout(t);t=setTimeout(function(){for(var i=0,n=a.length;i<n;i++){var t=a[i].mql,r=a[i].listeners||[],o=e(t.media).matches;if(o!==t.matches){t.matches=o;for(var s=0,l=r.length;s<l;s++){r[s].call(window,t)}}}},30)};window.matchMedia=function(t){var o=e(t),s=[],l=0;o.addListener=function(e){if(!i){return}if(!n){n=true;window.addEventListener("resize",r,true)}if(l===0){l=a.push({mql:o,listeners:s})}s.push(e)};o.removeListener=function(e){for(var i=0,n=s.length;i<n;i++){if(s[i]===e){s.splice(i,1)}}};return o}})();
664;
665let dashboardNavSettings = drupalSettings.nav_settings;
666//console.info(dashboardNavSettings);
667
668// Get the .click-me element
669// Listen to all click events on the document
670// const locbutton = document.querySelector('.location-viewer-new');
671// const locdiv = document.querySelector('.org-locations-nav-new');
672
673(function () {
674
675  var addEvent = function (el, type, fn) {
676    if (el.addEventListener)
677      el.addEventListener(type, fn, false);
678    else
679      el.attachEvent('on' + type, fn);
680  };
681
682  var extend = function (obj, ext) {
683    for (var key in ext)
684      if (ext.hasOwnProperty(key))
685        obj[key] = ext[key];
686    return obj;
687  };
688
689  window.fitText = function (el, kompressor, options) {
690
691    var settings = extend({
692      'minFontSize': -1 / 0,
693      'maxFontSize': 1 / 0
694    }, options);
695
696    var fit = function (el) {
697      var compressor = kompressor || 1;
698
699      var resizer = function () {
700        el.style.fontSize = Math.max(Math.min(el.clientWidth / (compressor * 10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)) + 'px';
701      };
702
703      // Call once to set.
704      resizer();
705
706      // Bind events
707      // If you have any js library which support Events, replace this part
708      // and remove addEvent function (or use original jQuery version)
709      addEvent(window, 'resize', resizer);
710      addEvent(window, 'orientationchange', resizer);
711    };
712
713    if (el && el.length)
714      for (var i = 0; i < el.length; i++)
715        fit(el[i]);
716    else if (el) {
717      fit(el);
718    }
719
720    // return set of elements
721    return el;
722  };
723})();
724
725
726//
727// window.quasarConfig = {
728//   // your config here
729//   loadingBar: { //this takes QAjaxBar Props
730//     skipHijack: true // set this
731//   },
732//   framework: {
733//     cssAddon:true
734//   },
735//   iconSet: 'fontawesomeV5'
736// }
737//
738// var NavApp = new Vue({
739//   el: '#labs-quasar-nav',
740//   data: function () {
741//     return {
742//     }
743//   },
744//   computed: {
745//     showSomething: function (){
746//     }
747//   },
748//   watch : {
749//     subscriberCount: function () {
750//     }
751//   },
752//   methods : {
753//     something: function() {
754//
755//     }
756//   },
757//   mounted() {
758//     //alert('mount');
759//   }
760// })
761
762
763var weather_canvas = document.getElementById("labs-weather-icon-quasar-nav");
764
765if (weather_canvas && weather_canvas.length !== 0) {
766  var tile_skycons_icon = weather_canvas.getAttribute('data-skycon');
767  var skycons_tile = new Skycons(
768    {
769      "monochrome": false,
770      "strokewidth": '.1'
771    }
772  );
773  skycons_tile.add(weather_canvas, tile_skycons_icon);
774  // start animation!
775  skycons_tile.play();
776}
777
778
779var locviewer = document.getElementById('location-viewer-new');
780if (locviewer) {
781  locviewer.onclick = function () {
782    var locdiv = document.getElementById('org-locations-nav-new');
783    locdiv.classList.toggle('hidden');
784  }
785}
786
787var locviewerMobile = document.getElementById('location-viewer-new-mobile');
788if (locviewerMobile) {
789  locviewerMobile.onclick = function () {
790    var locdiv = document.getElementById('org-locations-nav-new');
791    locdiv.classList.toggle('hidden');
792  }
793}
794var mobilemenuviewer = document.getElementById('q-mobile-menu-toggle');
795mobilemenuviewer.onclick = function () {
796  var mobilemenu = document.getElementById('q-mobile-menu');
797  // console.log("here it is --->", mobilemenu.childElementCount);
798  if (mobilemenu.classList.contains('box-shadow')) {
799    mobilemenu.style.height = 0 + "px";
800    mobilemenu.classList.toggle('box-shadow');
801  } else {
802    mobilemenu.style.height = "auto";
803    mobilemenu.classList.toggle('box-shadow');
804  }
805
806  mobilemenuviewer.classList.toggle('rotate-90');
807  mobilemenuviewer.classList.toggle('fa-times');
808  mobilemenuviewer.classList.toggle('fa-bars');
809}
810
811var searchLinkDesktop = document.getElementById('search-link-toggle-desktop');
812var searchTextDesktop = document.getElementById('desktop-search-string');
813var searchDesktopGoButton = document.getElementById('desktop-search-go-button');
814
815var searchLinkMobile = document.getElementById('search-link-toggle-mobile');
816var searchTextMobile = document.getElementById('mobile-search-string');
817var searchMobileGoButton = document.getElementById('mobile-search-go-button');
818
819if ((searchLinkDesktop && searchTextDesktop) || (searchLinkDesktop && searchTextDesktop)) {
820  searchLinkDesktop.onclick = function (event) {
821    searchToggle();
822    searchTextDesktop.focus();
823  }
824  searchLinkMobile.onclick = function (event) {
825    searchToggle();
826    searchTextMobile.focus();
827  }
828  searchTextMobile.addEventListener("keydown", function (e) {
829    var key = e.which && e.which || e.keyCode();
830    if (key === 13) {
831      (function OnKeyEnterPressDoThis() {
832        if (searchTextDesktop.value.length > 3) {
833          goToSearch(searchTextDesktop.value);
834        }
835      }());
836    }
837  });
838  searchTextDesktop.addEventListener("keydown", function (e) {
839    var key = e.which && e.which || e.keyCode();
840    if (key === 13) {
841      (function OnKeyEnterPressDoThis() {
842        if (searchTextDesktop.value.length > 3) {
843          goToSearch(searchTextDesktop.value);
844        }
845      }());
846    }
847  });
848
849  searchDesktopGoButton.onclick = function (event) {
850    if (searchTextDesktop.value.length > 3) {
851      goToSearch(searchTextDesktop.value);
852    }
853  }
854  searchMobileGoButton.onclick = function (event) {
855    if (searchTextMobile.value.length > 3) {
856      goToSearch(searchTextMobile.value);
857    }
858  }
859}
860
861
862function searchToggle(){
863  const searchHide = document.querySelectorAll('.search-hide');
864  for (const box of searchHide) {
865    box.classList.toggle('hidden');
866  }
867}
868function goToSearch(str) {
869  window.location = '/search/' + str;
870}
871
872fitText(document.getElementById("q-site-title"), 1.2, {minFontSize: '1px', maxFontSize: '40px'});
873;
874var weather_canvas = document.getElementById("labs-weather-icon");
875
876if (weather_canvas && weather_canvas.length !== 0) {
877  var tile_skycons_icon = weather_canvas.getAttribute('data-skycon');
878  var skycons_tile = new Skycons(
879    {
880      "monochrome": false,
881      "strokewidth": '.1'
882    }
883  );
884  skycons_tile.add(weather_canvas, tile_skycons_icon);
885  // start animation!
886  skycons_tile.play();
887}
888;

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.