1/* start page builder */ 2(function($){ 3 "use strict"; 4 5 // Detect Mobile Device 6 var gdlr_core_mobile = false; 7 if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/BlackBerry/i) || 8 navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/Windows Phone/i) ){ 9 gdlr_core_mobile = true; 10 }else{ 11 gdlr_core_mobile = false; 12 } 13 14 // Detect Screen 15 var gdlr_core_display = 'desktop'; 16 if( typeof(window.matchMedia) == 'function' ){ 17 $(window).on('resize themename-set-display gdlr-core-element-resize', function(){ 18 if( window.matchMedia('(max-width: 419px)').matches ){ 19 gdlr_core_display = 'mobile-portrait'; 20 }else if( window.matchMedia('(max-width: 767px)').matches ){ 21 gdlr_core_display = 'mobile-landscape' 22 }else if( window.matchMedia('(max-width: 959px)').matches ){ 23 gdlr_core_display = 'tablet' 24 }else{ 25 gdlr_core_display = 'desktop'; 26 } 27 }); 28 $(window).trigger('themename-set-display'); 29 }else{ 30 $(window).on('resize themename-set-display gdlr-core-element-resize', function(){ 31 if( $(window).innerWidth() <= 419 ){ 32 gdlr_core_display = 'mobile-portrait'; 33 }else if( $(window).innerWidth() <= 767 ){ 34 gdlr_core_display = 'mobile-landscape' 35 }else if( $(window).innerWidth() <= 959 ){ 36 gdlr_core_display = 'tablet' 37 }else{ 38 gdlr_core_display = 'desktop'; 39 } 40 }); 41 $(window).trigger('themename-set-display'); 42 } 43 44 // set cookie 45 function gdlr_core_set_cookie( cname, cvalue, expires ){ 46 if( typeof(expires) != 'undefined' ){ 47 if( expires == 0 ){ 48 expires = 86400; 49 } 50 51 var now = new Date(); 52 var new_time = now.getTime() + (parseInt(expires) * 1000); 53 now.setTime(new_time); 54 55 expires = now.toGMTString(); 56 } 57 58 document.cookie = cname + "=" + encodeURIComponent(cvalue) + "; expires=" + expires + "; path=/"; 59 } 60 61 // script for normal content 62 $.fn.gdlr_core_content_script = function( filter_elem, document_ready ){ 63 64 $(this).gdlr_core_fluid_video( filter_elem ); 65 66 // audio 67 if( !document_ready && typeof($.fn.mediaelementplayer) == 'function' ){ 68 var wpme_settings = { 69 "stretching": "responsive" 70 }; 71 if( typeof(_wpmejsSettings) !== 'undefined' ){ 72 wpme_settings.pluginPath = _wpmejsSettings.pluginPath; 73 } 74 75 $(this).find('audio, video').mediaelementplayer(wpme_settings); 76 } 77 78 return $(this); 79 } 80 81 // responsive video 82 $.fn.gdlr_core_fluid_video = function( filter_elem ){ 83 84 if( typeof(filter_elem) == 'undefined' ){ 85 var elem = $(this).find('iframe[src*="youtube"], iframe[src*="vimeo"]'); 86 }else{ 87 var elem = filter_elem.filter('iframe[src*="youtube"], iframe[src*="vimeo"]'); 88 } 89 90 elem.each(function(){ 91 92 // ignore if inside slider 93 if( $(this).closest('.ls-container, .master-slider').length <= 0 ){ 94 if( ($(this).is('embed') && $(this).parent('object').length) || $(this).parent('.gdlr-core-fluid-video-wrapper').length ){ return; } 95 if( !$(this).attr('id') ){ $(this).attr('id', 'gdlr-video-' + Math.floor(Math.random()*999999)); } 96 97 var ratio = $(this).height() / $(this).width(); 98 $(this).removeAttr('height').removeAttr('width'); 99 100 try{ 101 $(this).wrap('<div class="gdlr-core-fluid-video-wrapper"></div>').parent().css('padding-top', (ratio * 100)+"%"); 102 $(this).attr('src', $(this).attr('src')); 103 }catch(e){} 104 } 105 }); 106 107 return $(this); 108 } 109 110 // ajax mejs 111 $.fn.gdlr_core_mejs_ajax = function(){ 112 if( typeof($.fn.mediaelementplayer) == 'function' ){ 113 114 var wpme_settings = {}; 115 if( typeof(_wpmejsSettings) !== 'undefined' ){ wpme_settings.pluginPath = _wpmejsSettings.pluginPath; } 116 $(this).find('audio, video').mediaelementplayer(wpme_settings); 117 118 } 119 } 120 121 // counter item 122 $.fn.gdlr_core_counter_item = function( filter_elem ){ 123 124 if( typeof(filter_elem) == 'undefined' ){ 125 var elem = $(this).find('.gdlr-core-counter-item-count[data-counter-start][data-counter-end]'); 126 }else{ 127 var elem = filter_elem.filter('.gdlr-core-counter-item-count[data-counter-start][data-counter-end]'); 128 } 129 130 elem.each(function(){ 131 var counter_item = $(this); 132 var start_num = parseInt($(this).attr('data-counter-start')); 133 var end_num = parseInt($(this).attr('data-counter-end')); 134 var duration_time = ($(this).attr('data-duration'))? parseInt($(this).attr('data-duration')): 4000; 135 136 if( (gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait') || $(window).scrollTop() + $(window).height() > counter_item.offset().top ){ 137 $({ counter_num: start_num }).animate({ counter_num: end_num }, { duration: duration_time, easing: 'easeOutExpo', 138 step: function(){ 139 if( this.counter_num > 0.3 ){ 140 counter_item.html( Math.ceil(this.counter_num) ); 141 }else{ 142 counter_item.html( 0 ); 143 } 144 145 } 146 }); 147 }else{ 148 $(window).on('scroll pb-scroll', function( e ){ 149 if( $(this).scrollTop() + $(window).height() > counter_item.offset().top ){ 150 $({ counter_num: start_num }).animate({ counter_num: end_num }, { duration: duration_time, easing: 'easeOutExpo', 151 step: function(){ 152 if( this.counter_num > 0.3 ){ 153 counter_item.html( Math.ceil(this.counter_num) ); 154 }else{ 155 counter_item.html( 0 ); 156 } 157 } 158 });
159 160 $(this).unbind('scroll pb-scroll', e.handleObj.handler, e); 161 } 162 }); 163 } 164 }); 165 } 166 167 // typed animation item 168 $.fn.gdlr_core_typed_animation = function( filter_elem ){ 169 170 if( typeof(filter_elem) == 'undefined' ){ 171 var elem = $(this).find('.gdlr-core-type-animation-item-animated[data-animation-text]'); 172 }else{ 173 var elem = filter_elem.filter('.gdlr-core-type-animation-item-animated[data-animation-text]'); 174 } 175 176 elem.each(function(){ 177 178 var animation_text = JSON.parse($(this).attr('data-animation-text')); 179 180 if( typeof($.fn.typed) == 'function' && animation_text && animation_text.length > 0 ){ 181 $(this).typed({ 182 strings: animation_text, 183 typeSpeed: 50, 184 loop: true 185 }); 186 } 187 }); 188 } 189 190 // countdown item 191 $.fn.gdlr_core_countdown_item = function( filter_elem ){ 192 193 if( typeof(filter_elem) == 'undefined' ){ 194 var elem = $(this).find('.gdlr-core-countdown-wrap'); 195 }else{ 196 var elem = filter_elem.filter('.gdlr-core-countdown-wrap'); 197 } 198 199 elem.each(function(){ 200 var day_field = $(this).find('.gdlr-core-day'); 201 var day = parseInt(day_field.text()); 202 203 var hrs_field = $(this).find('.gdlr-core-hrs'); 204 var hrs = parseInt(hrs_field.text()); 205 206 var min_field = $(this).find('.gdlr-core-min'); 207 var min = parseInt(min_field.text()); 208 209 var sec_field = $(this).find('.gdlr-core-sec'); 210 var sec = parseInt(sec_field.text()); 211 212 $(window).load(function(){ 213 sec_field.text('00'); 214 sec_field.css('width', sec_field.width()); 215 sec_field.text(sec); 216 }); 217 218 var i = setInterval(function(){ 219 if( sec > 0 ){ 220 sec--; 221 }else{ 222 sec = 59; 223 if( min > 0 ){ 224 min--; 225 }else{ 226 min = 59; 227 if( hrs > 0 ){ 228 hrs--; 229 }else{ 230 hrs = 24; 231 if( day > 0 ){ 232 day--; 233 }else{ 234 day = 0; 235 hrs = 0; 236 min = 0; 237 sec = 0; 238 clearInterval(i); 239 } 240 day_field.text(day); 241 } 242 hrs_field.text(hrs); 243 } 244 min_field.text(min); 245 } 246 sec_field.text(sec); 247 }, 1000); 248 }); 249 } 250 251 // accordion 252 $.fn.gdlr_core_accordion = function( filter_elem ){ 253 254 if( typeof(filter_elem) == 'undefined' ){ 255 var elem_title = $(this).find('.gdlr-core-accordion-item-title'); 256 var elem_icon = $(this).find('.gdlr-core-accordion-item-icon'); 257 }else{ 258 var elem_title = filter_elem.filter('.gdlr-core-accordion-item-title'); 259 var elem_icon = filter_elem.filter('.gdlr-core-accordion-item-icon'); 260 } 261 262 elem_title.click(function(){ 263 $(this).siblings('.gdlr-core-accordion-item-content').slideDown(200); 264 265 var item_tab = $(this).closest('.gdlr-core-accordion-item-tab'); 266 if( item_tab.hasClass('gdlr-core-active') ){ 267 if( item_tab.closest('.gdlr-core-accordion-item').hasClass('gdlr-core-allow-close-all') ){ 268 item_tab.removeClass('gdlr-core-active') 269 .find('.gdlr-core-accordion-item-content').css({display: 'block'}).slideUp(200); 270 } 271 }else{ 272 item_tab.addClass('gdlr-core-active') 273 .siblings('.gdlr-core-active').removeClass('gdlr-core-active') 274 .find('.gdlr-core-accordion-item-content').css({display: 'block'}).slideUp(200); 275 } 276 }); 277 elem_icon.click(function(){ 278 if( $(this).closest('.gdlr-core-accordion-item-title').length ){ return; } 279 280 $(this).siblings('.gdlr-core-accordion-item-content-wrapper').children('.gdlr-core-accordion-item-content').slideDown(200); 281 282 var item_tab = $(this).closest('.gdlr-core-accordion-item-tab'); 283 if( item_tab.hasClass('gdlr-core-active') ){ 284 if( item_tab.closest('.gdlr-core-accordion-item').hasClass('gdlr-core-allow-close-all') ){ 285 item_tab.removeClass('gdlr-core-active') 286 .find('.gdlr-core-accordion-item-content').css({display: 'block'}).slideUp(200); 287 } 288 }else{ 289 item_tab.addClass('gdlr-core-active') 290 .siblings('.gdlr-core-active').removeClass('gdlr-core-active') 291 .find('.gdlr-core-accordion-item-content').css({display: 'block'}).slideUp(200); 292 } 293 }); 294 } 295 296 // toggle_box 297 $.fn.gdlr_core_toggle_box = function( filter_elem ){ 298 299 if( typeof(filter_elem) == 'undefined' ){ 300 var elem_title = $(this).find('.gdlr-core-toggle-box-item-title'); 301 var elem_icon = $(this).find('.gdlr-core-toggle-box-item-icon'); 302 }else{ 303 var elem_title = filter_elem.filter('.gdlr-core-toggle-box-item-title'); 304 var elem_icon = filter_elem.filter('.gdlr-core-toggle-box-item-icon'); 305 } 306 307 elem_title.click(function(){ 308 var toggle_parent = $(this).closest('.gdlr-core-toggle-box-item-tab'); 309 if( toggle_parent.hasClass('gdlr-core-active') ){ 310 311 toggle_parent.removeClass('gdlr-core-active'); 312 $(this).siblings('.gdlr-core-toggle-box-item-content').css({display: 'block'}).slideUp(200); 313 314 }else{ 315 316 toggle_parent.addClass('gdlr-core-active'); 317 $(this).siblings('.gdlr-core-toggle-box-item-content').css({display: 'none'}).slideDown(200); 318 } 319 }); 320 elem_icon.click(function(){ 321 if( $(this).closest('.gdlr-core-toggle-box-item-title').length ){ return; } 322 323 var toggle_parent = $(this).closest('.gdlr-core-toggle-box-item-tab'); 324 if( toggle_parent.hasClass('gdlr-core-active') ){ 325 toggle_parent.removeClass('gdlr-core-active'); 326 $(this).siblings('.gdlr-core-toggle-box-item-content-wrapper').children('.gdlr-core-toggle-box-item-content').css({display: 'block'}).slideUp(200); 327 328 }else{ 329 toggle_parent.addClass('gdlr-core-active'); 330 $(this).siblings('.gdlr-core-toggle-box-item-content-wrapper').children('.gdlr-core-toggle-box-item-content').css({display: 'none'}).slideDown(200); 331 } 332 }); 333 } 334 335 // alert box 336 $.fn.gdlr_core_alert_box_item = function( filter_elem ){ 337 338 if( typeof(filter_elem) == 'undefined' ){ 339 var elem = $(this).find('.gdlr-core-alert-box-remove'); 340 }else{ 341 var elem = filter_elem.filter('.gdlr-core-alert-box-remove'); 342 } 343 344 elem.click(function(){ 345 $(this).closest('.gdlr-core-alert-box-item').slideUp(400, 'easeOutQuart', function(){ 346 $(this).remove(); 347 }); 348 }); 349 } 350 351 // particle background 352 $.fn.gdlr_core_particle_background = function( filter_elem ){ 353 354 if( typeof(filter_elem) == 'undefined' ){ 355 var elem = $(this).find('.gdlr-core-particle-bg'); 356 }else{ 357 var elem = filter_elem.filter('.gdlr-core-particle-bg'); 358 } 359 360 elem.each(function(){ 361 if( typeof(window.gdlr_particle_bg_id) == 'undefined' ){ 362 window.gdlr_particle_bg_id = 1; 363 }else{ 364 window.gdlr_particle_bg_id++; 365 } 366 367 var item_id = 'gdlr-core-particle' + window.gdlr_particle_bg_id; 368 $(this).attr('id', item_id); 369 370 particlesJS(item_id, { 371 "particles": { 372 "number": { 373 "value": 40, 374 "density": {"enable": true,"value_area": 1500} 375 }, 376 "color": {"value": "#ffffff"}, 377 "shape": { 378 "type": "circle", 379 "stroke": {"width": 0,"color": "#000000"}, 380 "polygon": {"nb_sides": 5}, 381 "image": {"src": "img/github.svg","width": 100,"height": 100} 382 }, 383 "opacity": { 384 "value": 0.8, 385 "random": false, 386 "anim": {"enable": false,"speed": 0.6,"opacity_min": 0.1,"sync": false} 387 }, 388 "size": { 389 "value": 2, 390 "random": true, 391 "anim": {"enable": false,"speed": 80,"size_min": 0.1,"sync": false} 392 }, 393 "line_linked": {"enable": true,"distance": 300,"color": "#ffffff","opacity": 0.4,"width": 2}, 394 "move": { 395 "enable": true, 396 "speed": 12, 397 "direction": "none", 398 "random": false, 399 "straight": false, 400 "out_mode": "out", 401 "bounce": false, 402 "attract": {"enable": false,"rotateX": 600,"rotateY": 1200} 403 } 404 }, 405 "interactivity": { 406 "detect_on": "canvas", 407 "events": { 408 "onhover": {"enable": false,"mode": "repulse"}, 409 "onclick": {"enable": false,"mode": "push"}, 410 "resize": true 411 }, 412 "modes": { 413 "grab": {"distance": 800,"line_linked": {"opacity": 1}}, 414 "bubble": {"distance": 800,"size": 80,"duration": 2,"opacity": 0.8,"
414speed": 3}, 415 "repulse": {"distance": 400,"duration": 0.4}, 416 "push": {"particles_nb": 4}, 417 "remove": {"particles_nb": 2} 418 } 419 }, 420 "retina_detect": true 421 }); 422 }); 423 424 return $(this); 425 } 426 427 // parallax background 428 $.fn.gdlr_core_parallax_background = function( filter_elem ){ 429 430 if( typeof(filter_elem) == 'undefined' ){ 431 var elem = $(this).find('.gdlr-core-parallax'); 432 }else{ 433 var elem = filter_elem.filter('.gdlr-core-parallax'); 434 } 435 436 elem.each(function(){ 437 new gdlr_core_parallax($(this)); 438 }); 439 440 return $(this); 441 } 442 443 var gdlr_core_parallax = function(t){ 444 445 this.wrapper_bg = t; 446 this.wrapper = t.parent(); // background-wrap 447 448 this.parallax_speed = parseFloat(t.attr('data-parallax-speed')); 449 450 this.init(); 451 } 452 gdlr_core_parallax.prototype = { 453 454 init: function(){ 455 456 var t = this; 457 458 // scroll event 459 if( t.parallax_speed != 0 ){ 460 t.set_extra_height(); 461 t.set_background_position(t); 462 $(window).on('load resize gdlr-core-element-resize', function(){ 463 t.set_extra_height($(this)); 464 t.set_background_position(t); 465 }); 466 467 $(window).on('scroll pb-scroll', function(){ 468 t.set_background_position(t); 469 }); 470 } 471 472 if( gdlr_core_mobile ){ 473 t.wrapper_bg.children('[data-background-type="video"]').remove(); 474 475 if( t.wrapper_bg.attr('data-video-fallback') ){ 476 t.wrapper_bg.css('background-image', 'url(' + t.wrapper_bg.attr('data-video-fallback') + ')') 477 } 478 }else{ 479 t.wrapper_bg.children('[data-background-type="video"]').each(function(){ 480 if( t.parallax_speed == 0 ){ 481 t.set_extra_height(); 482 t.set_background_position(t); 483 $(window).on('load resize gdlr-core-element-resize', function(){ 484 t.set_extra_height($(this)); 485 t.set_background_position(t); 486 }); 487 } 488 489 // script for muting the vimeo/youtube player 490 $(this).find('iframe').each(function(){ 491 if( $(this).attr('data-player-type') == 'vimeo' ){ 492 var player = $f($(this)[0]); 493 494 player.addEvent('ready', function() { 495 player.api('setVolume', 0); 496 }); 497 }else if( $(this).attr('data-player-type') == 'youtube' ){ 498 499 // assign the script 500 if( $('body').children('#gdlr-core-youtube-api').length == 0 ){ 501 $('body').append('<script src="https://www.youtube.com/iframe_api" id="gdlr-core-youtube-api" ></script>'); 502 } 503 504 // store to global variable 505 if( typeof(window.gdlr_core_ytb) == 'undefined' ){ 506 window.gdlr_core_ytb = [$(this)[0]]; 507 }else{ 508 window.gdlr_core_ytb.push($(this)[0]); 509 } 510 511 // script loading action 512 window.onYouTubeIframeAPIReady = function(){ 513 for( var key in window.gdlr_core_ytb ){ 514 new YT.Player(gdlr_core_ytb[key],{ 515 events: { 516 'onReady': function(e){ 517 e.target.mute(); 518 } 519 } 520 }); 521 } 522 } 523 } 524 }); 525 }); 526 } // else gdlr_core_mobile 527 528 }, // init 529 530 set_extra_height: function(){ 531 532 var t = this; 533 534 var new_height = t.wrapper.outerHeight(); 535 if( gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait' ){ 536 t.wrapper_bg.css({'transform': ''}); 537 }else{ 538 if( t.parallax_speed > 0){ 539 new_height += (($(window).height() - t.wrapper.outerHeight()) * t.parallax_speed); 540 }else if( t.parallax_speed < 0){ 541 new_height += (($(window).height() + t.wrapper.outerHeight()) * Math.abs(t.parallax_speed)); 542 } 543 } 544 t.wrapper_bg.css({height: new_height}); 545 546 // set video height 547 var ratio = parseInt(gdlr_core_pbf.video.width) / parseInt(gdlr_core_pbf.video.height); 548 t.wrapper_bg.children('[data-background-type="video"]').each(function(){ 549 if( (t.wrapper_bg.width() / t.wrapper_bg.height()) > ratio ){ 550 var v_height = t.wrapper_bg.width() / ratio; 551 var v_margin = (t.wrapper_bg.height() - v_height) / 2; 552 $(this).css({width: t.wrapper_bg.width(), height: v_height, 'margin-left': 0, 'margin-top': v_margin}); 553 }else{ 554 var v_width = t.wrapper_bg.height() * ratio; 555 var v_margin = (t.wrapper_bg.width() - v_width) / 2; 556 $(this).css({width: v_width, height: t.wrapper_bg.height(), 'margin-left': v_margin, 'margin-top': 0}); 557 } 558 }); 559 560 }, // set_extra_height 561 562 set_background_position: function( t ){ 563 564 if( gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait' ) return; 565 566 var wrapper_top = t.wrapper.offset().top; 567 var scroll_pos = $(window).scrollTop(); 568 569 if( scroll_pos + $(window).height() > wrapper_top && 570 scroll_pos < wrapper_top + t.wrapper.outerHeight() ){ 571 572 if( t.parallax_speed > 0 ){ 573 t.wrapper_bg.css({'transform': 'translate(0px, ' + (($(window).scrollTop() - wrapper_top) * t.parallax_speed) + 'px)'}); 574 }else if( t.parallax_speed < 0 ){ 575 t.wrapper_bg.css({'transform': 'translate(0px, ' + (($(window).scrollTop() + $(window).height() - wrapper_top) * t.parallax_speed) + 'px)'}); 576 } 577 } 578 } 579 }; // gdlr_core_parallax 580 581 // ux animation 582 var gdlr_core_ux = function( container, filter_elem ){ 583 584 if( typeof(filter_elem) == 'undefined' ){ 585 this.elem = container.find('[data-gdlr-animation]'); 586 }else{ 587 this.elem = filter_elem.filter('[data-gdlr-animation]'); 588 this.preload = filter_elem.filter('.gdlr-core-page-preload'); 589 } 590 591 this.ux_items = []; 592 this.ux_item_length = 0; 593 594 this.init(); 595 596 } // gdlr_core_ux 597 gdlr_core_ux.prototype = { 598 599 init: function(){ 600 601 var t = this; 602 603 t.ux_item_length = t.elem.each(function(){ 604 var ux_item = $(this); 605 var ux_item_offset = 0.8; 606 if( $(this).attr('data-gdlr-animation-offset') ){ 607 ux_item_offset = parseFloat($(this).attr('data-gdlr-animation-offset')); 608 } 609 610 // check item at the first time the page is loaded 611 if( (gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait') || $(window).scrollTop() + $(window).height() > ux_item.offset().top ){ 612 t.ux_items.push(ux_item); 613 614 // check the item on scroll event 615 }else{ 616 $(window).on('scroll pb-scroll', function(e){
617 if( $(window).scrollTop() + ($(window).height() * ux_item_offset) > ux_item.offset().top ){ 618 t.ux_items.push(ux_item); 619 $(window).unbind('scroll', e.handleObj.handler, e); 620 } 621 }); 622 } 623 }).length; 624 625 if( typeof(t.preload) != 'undefined' && t.preload.length ){ 626 $(window).load(function(){ 627 var preload_time = t.preload.attr('data-animation-time'); 628 if( !preload_time ){ preload_time = 0; } 629 630 setTimeout(function(){ 631 t.animate(); 632 }, preload_time); 633 }); 634 }else{ 635 t.animate(); 636 } 637 638 }, 639 640 animate: function(){ 641 642 var t = this; 643 644 // run the ux in order with delay 645 var ux_interval = setInterval(function(){ 646 647 while( t.ux_items.length > 0 ){ 648 649 // animate the ux item 650 var ux_animate = t.ux_items.shift(); 651 var animation_duration = '600ms'; 652 if( ux_animate.attr('data-gdlr-animation-duration') ){ 653 animation_duration = ux_animate.attr('data-gdlr-animation-duration'); 654 } 655 656 ux_animate.css({ 'animation-duration': animation_duration }); 657 ux_animate.addClass(ux_animate.attr('data-gdlr-animation')); 658 659 // remove selector 660 setTimeout(function(){ 661 ux_animate.css({ 'animation-duration': '' }) 662 .removeClass(ux_animate.attr('data-gdlr-animation')) 663 .removeAttr('data-gdlr-animation'); 664 }, parseInt(animation_duration)); 665 666 t.ux_item_length--; 667 668 // if item is inside the screen break while loop 669 if( $(window).scrollTop() < ux_animate.offset().top + ux_animate.outerHeight() ){ 670 break; 671 } 672 } 673 674 if( t.ux_item_length <= 0 ){ 675 clearInterval(ux_interval); 676 } 677 }, 200); 678 679 } 680 681 }; // gdlr_core_ux.prototype 682 $.fn.gdlr_core_ux = function( filter_elem ){ 683 new gdlr_core_ux( $(this), filter_elem ); 684 685 return $(this); 686 } 687 688 // skill bar 689 $.fn.gdlr_core_skill_bar = function( filter_elem ){ 690 691 if( typeof(filter_elem) == 'undefined' ){ 692 var elem = $(this).find('.gdlr-core-skill-bar-filled'); 693 }else{ 694 var elem = filter_elem.filter('.gdlr-core-skill-bar-filled'); 695 } 696 697 elem.each(function(){ 698 var t = $(this); 699 700 if( (gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait') || $(window).scrollTop() + $(window).height() > t.offset().top ){ 701 t.animate({width: parseInt(t.attr('data-width')) + '%'}, {duration: 1200, easing: 'easeOutQuart'}); 702 }else{ 703 $(window).on('scroll pb-scroll', function(e){ 704 if( $(window).scrollTop() + $(window).height() > t.offset().top ){ 705 t.animate({width: parseInt(t.attr('data-width')) + '%'}, {duration: 1200, easing: 'easeOutQuart'}); 706 $(window).unbind('scroll pb-scroll', e.handleObj.handler, e); 707 } 708 }); 709 } 710 }); 711 } 712 713 // divider width 714 $.fn.gdlr_core_divider = function( filter_elem ){ 715 716 if( typeof(filter_elem) == 'undefined' ){ 717 var elem = $(this).find('.gdlr-core-divider-item-with-icon-inner'); 718 }else{ 719 var elem = filter_elem.filter('.gdlr-core-divider-item-with-icon-inner'); 720 } 721 722 elem.each(function(){ 723 var divider_elem = $(this); 724 var icon_width = divider_elem.children('i, img').outerWidth(); 725 var divider_width = (divider_elem.width() - icon_width) / 2; 726 $(this).children('.gdlr-core-divider-line').css({ width: divider_width }).each(function(){ 727 $(this).css('margin-top', -$(this).outerHeight()/2); 728 }); 729 730 $(window).on('resize gdlr-core-element-resize', function(){ 731 icon_width = divider_elem.children('i, img').outerWidth(); 732 divider_width = (divider_elem.width() - icon_width) / 2; 733 divider_elem.children('.gdlr-core-divider-line').css({ width: divider_width }).each(function(){ 734 $(this).css('margin-top', -$(this).outerHeight()/2); 735 }); 736 }); 737 }); 738 739 } 740 741 window.gdlr_core_sidebar_wrapper = function( container, filter_elem ){ 742 743 if( typeof(filter_elem) == 'undefined' ){ 744 this.elem = container.find('.gdlr-core-page-builder-wrapper-sidebar-container, .gdlr-core-pbf-sidebar-container'); 745 }else{
746 this.elem = filter_elem.filter('.gdlr-core-page-builder-wrapper-sidebar-container, .gdlr-core-pbf-sidebar-container'); 747 } 748 749 this.init(); 750 751 } 752 gdlr_core_sidebar_wrapper.prototype = { 753 754 init: function(){ 755 756 var t = this; 757 758 // if no background, don't sync height 759 var sync_height = false; 760 t.elem.each(function(){ 761 if( $(this).children().children('.gdlr-core-pbf-background-wrap').length ){ 762 sync_height = true; 763 } 764 }); 765 766 // sync the height 767 if( sync_height ){ 768 t.set_height(); 769 $(window).on('load resize gdlr-core-element-resize', function(){ t.set_height(); }); 770 } 771 }, 772 773 set_height: function(){ 774 775 var t = this; 776 777 t.elem.each(function(){ 778 779 var sidebar_elem = $(this).find('.gdlr-core-pbf-sidebar-padding'); 780 sidebar_elem.css('min-height', ''); 781 782 if( gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait' ) return; 783 784 // determine max height 785 var max_height = 0; 786 sidebar_elem.each(function(){ 787 if( $(this).outerHeight() > max_height ){ 788 max_height = $(this).outerHeight(); 789 } 790 }); 791 792 // set the height 793 sidebar_elem.css('min-height', max_height); 794 795 }); 796 797 } 798 799 }; 800 801 // title divider width 802 $.fn.gdlr_core_title_divider = function( filter_elem ){ 803 804 if( typeof(filter_elem) == 'undefined' ){ 805 var elem = $(this).find('.gdlr-core-title-item-title-wrap.gdlr-core-with-divider'); 806 }else{ 807 var elem = filter_elem.filter('.gdlr-core-title-item-title-wrap.gdlr-core-with-divider'); 808 } 809 810 elem.each(function(){ 811 var t = $(this); 812 var title_width = t.children('.gdlr-core-title-item-title').outerWidth(true); 813 var divider_num = t.children('.gdlr-core-title-item-divider').length; 814 divider_num = (divider_num)? divider_num: 1; 815 816 var divider_width = (t.width() - title_width) / divider_num; 817 818 // for right divider with link text 819 if( divider_num == 1 ){ 820 var right_pos = t.children('.gdlr-core-title-item-link').outerWidth() + 20; 821 t.children('.gdlr-core-title-item-divider').css({ width: (divider_width - right_pos), right: right_pos }); 822 }else{ 823 t.children('.gdlr-core-title-item-divider').css({ width: divider_width }); 824 } 825 826 $(window).on('resize gdlr-core-element-resize', function(){ 827 title_width = t.children('.gdlr-core-title-item-title').outerWidth(true); 828 divider_width = (t.width() - title_width) / divider_num; 829 830 // for right divider with link text 831 if( divider_num == 1 ){ 832 right_pos = t.children('.gdlr-core-title-item-link').outerWidth() + 20; 833 t.children('.gdlr-core-title-item-divider').css({ width: (divider_width - right_pos), right: right_pos }); 834 }else{ 835 t.children('.gdlr-core-title-item-divider').css({ width: divider_width }); 836 } 837 }); 838 }); 839 840 if( typeof(filter_elem) == 'undefined' ){ 841 var elem2 = $(this).find('.gdlr-core-title-item-title-wrap.gdlr-core-with-link-text'); 842 }else{ 843 var elem2 = filter_elem.filter('.gdlr-core-title-item-title-wrap.gdlr-core-with-link-text'); 844 } 845 elem2.each(function(){ 846 var t = $(this); 847 var title_width = t.children('.gdlr-core-title-item-title').outerWidth(true); 848 var right_pos = t.children('.gdlr-core-title-item-link').outerWidth(); 849 850 if( t.width() < title_width + right_pos ){ 851 t.children('.gdlr-core-title-item-link').addClass('gdlr-core-overflow'); 852 }else{ 853 t.children('.gdlr-core-title-item-link').removeClass('gdlr-core-overflow'); 854 } 855 856 $(window).on('resize gdlr-core-element-resize', function(){ 857 if( t.width() < title_width + right_pos ){ 858 t.children('.gdlr-core-title-item-link').addClass('gdlr-core-overflow'); 859 }else{ 860 t.children('.gdlr-core-title-item-link').removeClass('gdlr-core-overflow'); 861 } 862 }); 863 864 }); 865 866 } 867 868 $.fn.gdlr_core_flipbox = function( filter_elem ){ 869 if(typeof($.fn.flip) == 'function'){ 870 871 if( typeof(filter_elem) == 'undefined' ){ 872 var elem = $(this).find('.gdlr-core-flipbox'); 873 }else{ 874 var elem = filter_elem.filter('.gdlr-core-flipbox'); 875 } 876 877 elem.each(function(){ 878 var flipbox_obj = $(this).flip({ 879 axis: 'y', 880 trigger: 'hover', 881 autoSize: false, 882 front: '.gdlr-core-flipbox-front', 883 back: '.gdlr-core-flipbox-back' 884 }); 885 886 $(this).find('.gdlr-core-flipbox-back a').click(function(){ 887 if( flipbox_obj.data('flip-model') ){ 888 flipbox_obj.data('flip-model').unflip(); 889 } 890 }); 891 892 $(this).addClass('gdlr-core-after-init'); 893 }); 894 } 895 896 return $(this); 897 } 898 899 // marquee 900 $.fn.gdlr_core_marquee = function( filter_elem ){ 901 if( typeof(filter_elem) == 'undefined' ){ 902 var elem = $(this).find('.gdlr-core-marquee'); 903 }else{ 904 var elem = filter_elem.filter('.gdlr-core-marquee'); 905 } 906 907 elem.each(function(){ 908 var speed = $(this).attr('data-speed')? parseFloat($(this).attr('data-speed')): 10000; 909 var direction = $(this).attr('data-direction')? parseFloat($(this).attr('data-direction')): 'left'; 910 911 $(this).marquee({ 912 //time in milliseconds before the marquee will start animating 913 delayBeforeStart: 0, 914 //speed in milliseconds of the marquee 915 duration: speed, 916 //gap in pixels between the tickers 917 gap: 50, 918 //'left' or 'right' 919 direction: direction, 920 //true or false - should the marquee be duplicated to show an effect of continues flow 921 duplicated: true, 922 // the marquee is visible initially positioned next to the border towards it will be moving 923 startVisible: true 924 }); 925 }); 926 927 return $(this); 928 } 929 930 // pie chart
931 function gdlr_core_skill_circle_height(t){ 932 t.children('.gdlr-core-skill-circle-content').each(function(){ 933 $(this).css({'margin-top': -$(this).outerHeight()/2}); 934 }); 935 t.css({'max-width': t.parent().width(), 'max-height': t.parent().width()}); 936 } 937 $.fn.gdlr_core_pie_chart = function(){ 938 if(typeof($.fn.easyPieChart) == 'function'){ 939 $(this).easyPieChart({ 940 animate: parseInt($(this).attr('data-duration')), 941 lineWidth: parseInt($(this).attr('data-line-width')), 942 size: parseInt($(this).attr('data-width')), 943 barColor: $(this).attr('data-filled-color'), 944 trackColor: $(this).attr('data-filled-background'), 945 scaleColor: false, 946 lineCap: 'square' 947 }); 948 } 949 } 950 $.fn.gdlr_core_skill_circle = function( filter_elem ){ 951 952 if( typeof(filter_elem) == 'undefined' ){ 953 var elem = $(this).find('.gdlr-core-skill-circle'); 954 }else{ 955 var elem = filter_elem.filter('.gdlr-core-skill-circle'); 956 } 957 958 elem.each(function(){ 959 var t = $(this); 960 961 // for responsive 962 gdlr_core_skill_circle_height(t); 963 $(window).on('resize gdlr-core-element-resize', function(){ gdlr_core_skill_circle_height(t); }); 964 965 // scroll action 966 if( $(window).scrollTop() + $(window).height() > t.offset().top ){ 967 t.gdlr_core_pie_chart(); 968 }else{ 969 $(window).on('scroll pb-scroll', function(e){ 970 if( $(window).scrollTop() + $(window).height() > t.offset().top ){ 971 t.gdlr_core_pie_chart(); 972 $(window).unbind('scroll pb-scroll', e.handleObj.handler, e); 973 } 974 }); 975 } 976 }); 977 } 978 979 // chart.js 980 $.fn.gdlr_core_chart_js = function( filter_elem ){ 981 982 if( typeof(filter_elem) == 'undefined' ){ 983 var elem = $(this).find('.gdlr-core-chart-js'); 984 }else{ 985 var elem = filter_elem.filter('.gdlr-core-chart-js'); 986 } 987 988 if( typeof(window.gdlr_core_chart_js_id) == 'undefined' ){ 989 window.gdlr_core_chart_js_id = 0; 990 } 991 992 elem.each(function(){ 993 994 var data = []; 995 var options = []; 996 if( $(this).attr('data-content') ){ 997 data = JSON.parse($(this).attr('data-content')); 998 } 999 if( $(this).attr('data-options') ){ 1000 options = JSON.parse($(this).attr('data-options')); 1001 } 1002 1003 if( $(this).attr('data-type') == 'doughnut' || $(this).attr('data-type') == 'pie' ){ 1004 if( options.legend.position == 'right' || options.legend.position == 'left' ){ 1005 if( gdlr_core_display == 'mobile-portrait' || gdlr_core_display == 'mobile-landscape' ){ 1006 options.legend.orig_position = options.legend.position; 1007 options.legend.position = 'bottom'; 1008 $(this).attr('width', $(this).width()); 1009 $(this).attr('height', $(this).width() * 1); 1010 } 1011 } 1012 } 1013 options.onResize = function(chart, size){ 1014 if( chart.config.type == 'doughnut' || chart.config.type == 'pie' ){ 1015 if( chart.config.options.legend.position == 'right' || chart.config.options.legend.position == 'left' ){ 1016 if( gdlr_core_display == 'mobile-portrait' || gdlr_core_display == 'mobile-landscape' ){ 1017 chart.config.options.legend.orig_position = chart.config.options.legend.position; 1018 chart.config.options.legend.position = 'bottom'; 1019 chart.aspectRatio = 1; 1020 } 1021 }else if( typeof(chart.config.options.legend.orig_position) != 'undefined' ){ 1022 if( gdlr_core_display == 'tablet' || gdlr_core_display == 'desktop' ){ 1023 chart.config.options.legend.position = chart.config.options.legend.orig_position; 1024 chart.aspectRatio = 2; 1025 } 1026 } 1027 1028 } 1029 1030 } 1031 1032 new Chart($(this), { 1033 type: $(this).attr('data-type')? $(this).attr('data-type'): 'pie', 1034 data: data, 1035 options: options 1036 }); 1037 1038 }); 1039 1040 } // gdlr_core_chart_js 1041 1042 // tab 1043 $.fn.gdlr_core_tab = function( filter_elem ){ 1044 1045 if( typeof(filter_elem) == 'undefined' ){ 1046 var elem = $(this).find('.gdlr-core-tab-item, .gdlr-core-roadmap-item, .gdlr-core-tab-feature-item, .gdlr-core-tab-featurev-item'); 1047 }else{ 1048 var elem = filter_elem.filter('.gdlr-core-tab-item, .gdlr-core-roadmap-item, .gdlr-core-tab-feature-item, .gdlr-core-tab-featurev-item'); 1049 } 1050 1051 elem.each(function(){ 1052 1053 // click action 1054 $(this).find('.gdlr-core-tab-item-title, .gdlr-core-roadmap-item-head, .gdlr-core-tab-feature-title-wrap, .gdlr-core-tab-featurev-title').click(function(){ 1055 if( $(this).hasClass('gdlr-core-active') ) return; 1056 1057 var tab_id = $(this).attr('data-tab-id'); 1058 1059 $(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active'); 1060 1061 // for tab feature vertical 1062 if( $(this).is('.gdlr-core-tab-featurev-title') ){ 1063 var parent = $(this).parent().parent(); 1064 1065 parent.closest('.gdlr-core-tab-featurev-item').find('.gdlr-core-tab-featurev-background-switch').each(function(){ 1066 $(this).children().removeClass('gdlr-core-active'); 1067 $(this).children('[data-tab-id="' + tab_id + '"]').addClass('gdlr-core-active'); 1068 });
1069 }else{ 1070 var parent = $(this).parent(); 1071 } 1072 parent.siblings('.gdlr-core-tab-item-content-wrap, .gdlr-core-roadmap-item-content-wrap, .gdlr-core-tab-feature-item-content-wrap, .gdlr-core-tab-featurev-item-content-wrap').each(function(){ 1073 var active_tab = $(this).children('[data-tab-id="' + tab_id + '"]'); 1074 1075 if( active_tab.length ){ 1076 active_tab.fadeIn(200).siblings().hide(); 1077 }else{ 1078 $(this).children().hide(); 1079 } 1080 }); 1081 1082 }); 1083 1084 // hover action 1085 if( !(gdlr_core_mobile || gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait') && 1086 $(this).is('.gdlr-core-tab-style2-horizontal, .gdlr-core-tab-style2-vertical') ){ 1087 1088 var horizontal = $(this).is('.gdlr-core-tab-style2-horizontal'); 1089 var hover_line = $(this).find('.gdlr-core-tab-item-title-line'); 1090 var hover_line_w = 0; 1091 var hover_line_l = 0; 1092 1093 // initiate 1094 $(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-active').each(function(){ 1095 if( horizontal ){ 1096 hover_line_w = $(this).outerWidth(); 1097 hover_line_l = $(this).position().left; 1098 hover_line.css({ width: hover_line_w, left: hover_line_l }); 1099 }else{ 1100 hover_line_w = $(this).outerHeight(); 1101 hover_line_l = $(this).position().top; 1102 hover_line.css({ height: hover_line_w, top: hover_line_l }); 1103 } 1104 }); 1105 $(window).on('resize gdlr-core-element-resize', function(){ 1106 $(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-active').each(function(){ 1107 if( horizontal ){ 1108 hover_line_w = $(this).outerWidth(); 1109 hover_line_l = $(this).position().left; 1110 hover_line.css({ width: hover_line_w, left: hover_line_l }); 1111 }else{ 1112 hover_line_w = $(this).outerHeight(); 1113 hover_line_l = $(this).position().top; 1114 hover_line.css({ height: hover_line_w, top: hover_line_l }); 1115 } 1116 }); 1117 }); 1118 1119 // animate 1120 $(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-tab-item-title').hover(function(){ 1121 if( horizontal ){ 1122 hover_line.animate({ width: $(this).outerWidth(), left: $(this).position().left }, { duration: 300, easing: 'easeOutQuart', queue: false }); 1123 }else{ 1124 hover_line.animate({ height: $(this).outerHeight(), top: $(this).position().top }, { duration: 300, easing: 'easeOutQuart', queue: false }); 1125 } 1126 }, function(){ 1127 if( horizontal ){ 1128 hover_line.animate({ width: hover_line_w, left: hover_line_l }, { duration: 300, easing: 'easeOutQuart', queue: false }); 1129 }else{ 1130 hover_line.animate({ height: hover_line_w, top: hover_line_l }, { duration: 300, easing: 'easeOutQuart', queue: false }); 1131 } 1132 }); 1133 1134 // click 1135 $(this).children('.gdlr-core-tab-item-title-wrap').children('.gdlr-core-tab-item-title').click(function(){ 1136 if( horizontal ){ 1137 hover_line_w = $(this).outerWidth(); 1138 hover_line_l = $(this).position().left; 1139 hover_line.css({ width: hover_line_w, left: hover_line_l }); 1140 }else{ 1141 hover_line_w = $(this).outerHeight(); 1142 hover_line_l = $(this).position().top; 1143 hover_line.css({ height: hover_line_w, top: hover_line_l }); 1144 } 1145 }); 1146 } 1147 }); 1148 1149 return $(this); 1150 1151 } // gdlr_core_tab 1152 1153 $.fn.gdlr_core_sly = function( filter_elem ){ 1154 1155 if( typeof(filter_elem) == 'undefined' ){ 1156 var elem = $(this).find('.gdlr-core-sly-slider'); 1157 }else{ 1158 var elem = filter_elem.filter('.gdlr-core-sly-slider'); 1159 } 1160 1161 elem.addClass('gdlr-core-after-init').each(function(){ 1162 var sly_slider = $(this); 1163 1164 sly_slider.sly({ 1165 horizontal: 1, 1166 itemNav: 'basic', 1167 smart: 1, 1168 activateOn: 'click', 1169 mouseDragging: 1, 1170 touchDragging: 1, 1171 releaseSwing: 1, 1172 startAt: 0, 1173 scrollBy: 1, 1174 speed: 1000, 1175 elasticBounds: 1, 1176 easing: 'easeOutQuart', 1177 dragHandle: 1, 1178 dynamicHandle: 1, 1179 clickBar: 1, 1180 scrollBar: $(this).siblings('.gdlr-core-sly-scroll') 1181 }); 1182 $(window).on('resize gdlr-core-element-resize', function(){ sly_slider.sly('reload'); }); 1183 }); 1184 1185 return $(this); 1186 1187 } // gdlr-core_sly 1188 1189 $.fn.gdlr_core_flexslider = function( filter_elem ){ 1190 1191 if( typeof(filter_elem) == 'undefined' ){ 1192 var elem = $(this).find('.gdlr-core-flexslider'); 1193 }else{ 1194 var elem = filter_elem.filter('.gdlr-core-flexslider'); 1195 } 1196 1197 elem.each(function(){ 1198 1199 var flex_attr = {
1200 useCSS: false, 1201 animation: 'fade', 1202 animationLoop: true, 1203 prevText: '<i class="arrow_carrot-left"></i>', 1204 nextText: '<i class="arrow_carrot-right"></i>' 1205 }; 1206 1207 if( $(this).attr('data-start-at') && $(this).attr('data-start-at') > 1 ){ 1208 flex_attr.startAt = $(this).attr('data-start-at') - 1; 1209 } 1210 1211 if( $(this).find('.gdlr-core-flexslider').length > 0 ){ 1212 $(this).children('ul.slides').addClass('parent-slides'); 1213 flex_attr.selector = '.parent-slides > li'; 1214 } 1215 1216 // variable settings 1217 if( $(this).attr('data-disable-autoslide') ){ 1218 flex_attr.slideshow = false; 1219 } 1220 if( $(this).attr('data-pausetime') ){ 1221 flex_attr.slideshowSpeed = parseInt($(this).attr('data-pausetime')); 1222 } 1223 if( $(this).attr('data-slidespeed') ){ 1224 flex_attr.animationSpeed = parseInt($(this).attr('data-slidespeed')); 1225 }else{ 1226 flex_attr.animationSpeed = 500; 1227 } 1228 1229 // for carousel 1230 if( $(this).attr('data-type') == 'carousel' ){ 1231 flex_attr.move = $(this).attr('data-move')? parseInt($(this).attr('data-move')): 1; 1232 flex_attr.animation = 'slide'; 1233 1234 // determine the spaces 1235 var column_num = parseInt($(this).attr('data-column')); 1236 flex_attr.itemMargin = 2 * parseInt($(this).children('ul.slides').children('li:first-child').css('margin-right')); 1237 flex_attr.itemWidth = (($(this).width() + flex_attr.itemMargin) / column_num) - (flex_attr.itemMargin); 1238 1239 flex_attr.minItems = column_num; 1240 flex_attr.maxItems = column_num; 1241 1242 var t = $(this); 1243 $(window).on('resize gdlr-core-element-resize', function(){ 1244 if( t.data('goodlayers_flexslider') ){ 1245 var newWidth = ((t.width() + flex_attr.itemMargin) / column_num) - (flex_attr.itemMargin); 1246 t.data('goodlayers_flexslider').editItemWidth(newWidth); 1247 } 1248 }); 1249 1250 }else if( $(this).attr('data-effect') ){ 1251 if( $(this).attr('data-effect') == 'kenburn' ){ 1252 flex_attr.animation = 'fade'; 1253 }else{ 1254 flex_attr.animation = $(this).attr('data-effect'); 1255 } 1256 } 1257 1258 // for navigation 1259 if( !$(this).attr('data-nav') || $(this).attr('data-nav') == 'both' || $(this).attr('data-nav') == 'navigation' || $(this).attr('data-nav') == 'navigation-outer' ){ 1260 if( $(this).attr('data-nav-parent') ){ 1261 1262 if( $(this).attr('data-nav-type') == 'custom' ){ 1263 flex_attr.customDirectionNav = $(this).closest('.' + $(this).attr('data-nav-parent')).find('.flex-prev, .flex-next'); 1264 }else{ 1265 $(this).closest('.' + $(this).attr('data-nav-parent')).each(function(){ 1266 var flex_nav = $('<ul class="flex-direction-nav">' + 1267 '<li class="flex-nav-prev"><a class="flex-prev" href="#"><i class="arrow_carrot-left"></i></a></li>' + 1268 '<li class="flex-nav-next"><a class="flex-next" href="#"><i class="arrow_carrot-right"></i></a></li>' + 1269 '</ul>'); 1270 1271 var flex_nav_position = $(this).find('.gdlr-core-flexslider-nav'); 1272 if( flex_nav_position.length ){ 1273 flex_nav_position.append(flex_nav); 1274 flex_attr.customDirectionNav = flex_nav.find('.flex-prev, .flex-next'); 1275 } 1276 }); 1277 } 1278 } 1279 }else if( $(this).attr('data-nav') != 'navigation-bottom' ){ 1280 flex_attr.directionNav = false; 1281 } 1282 if( $(this).attr('data-nav') == 'both' || $(this).attr('data-nav') == 'bullet' ){ 1283 flex_attr.controlNav = true; 1284 }else{ 1285 flex_attr.controlNav = false; 1286 } 1287 1288 // for thumbnail 1289 if( $(this).attr('data-thumbnail') ){ 1290 var thumbnail_slide = $(this).siblings('.gdlr-core-sly-slider'); 1291 1292 flex_attr.manualControls = thumbnail_slide.find('ul.slides li') 1293 flex_attr.controlNav = true; 1294 } 1295 1296 // center the navigation 1297 // add active class for kenburn effects 1298 if( $(this).attr('data-vcenter-nav') ){ 1299 flex_attr.start = function(slider){ 1300 if( slider.directionNav ){ 1301 $(window).on('resize gdlr-core-element-resize', function(){ 1302 slider.directionNav.each(function(){ 1303 var margin = -(slider.height() + $(this).outerHeight()) / 2; 1304 $(this).css('margin-top', margin); 1305 });
1306 }); 1307 } 1308 if( typeof(slider.slides) != 'undefined' ){ 1309 $(window).trigger('gdlr-core-element-resize'); 1310 slider.slides.filter('.flex-active-slide').addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active'); 1311 } 1312 }; 1313 }else{ 1314 flex_attr.start = function(slider){ 1315 if( typeof(slider.slides) != 'undefined' ){ 1316 $(window).trigger('gdlr-core-element-resize'); 1317 slider.slides.filter('.flex-active-slide').addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active'); 1318 } 1319 } 1320 } 1321 1322 // add the action for class 1323 flex_attr.after = function(slider){ 1324 slider.slides.filter('.flex-active-slide').addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active'); 1325 } 1326 1327 // add outer frame class 1328 if( $(this).find('.gdlr-core-outer-frame-element').length > 0 ){ 1329 $(this).addClass('gdlr-core-with-outer-frame-element'); 1330 } 1331 1332 $(this).goodlayers_flexslider(flex_attr); 1333 }); 1334 1335 return $(this); 1336 1337 } // gdlr-core-flexslier 1338 1339 window.gdlr_core_sticky_sidebar = function( filter_elem ){ 1340 1341 if( typeof(filter_elem) == 'undefined' ){ 1342 this.elem = $(this).find('.gdlr-core-sticky-sidebar'); 1343 }else{ 1344 this.elem = filter_elem.filter('.gdlr-core-sticky-sidebar'); 1345 } 1346 1347 this.init(); 1348 1349 } 1350 gdlr_core_sticky_sidebar.prototype = { 1351 1352 init: function(){ 1353 1354 var t = this; 1355 t.elem.each(function(){ 1356 $(this).find('.gdlr-core-pbf-sidebar-left, .gdlr-core-pbf-sidebar-right, .gdlr-core-sidebar-script').each(function(){ 1357 1358 var sidebar_item = $(this); 1359 var sidebar_wrap = sidebar_item.parent(); 1360 var sidebar_sub = $('<div></div>'); 1361 1362 var prev_scroll = 0; 1363 $(window).on('scroll resize', function(e){ 1364 1365 // sidebar larger than content 1366 if( sidebar_item.outerHeight() >= sidebar_wrap.outerHeight() ){ 1367 t.return_sidebar_pos(sidebar_sub, sidebar_item); 1368 return; 1369 } 1370 1371 // not in desktop 1372 if( gdlr_core_display != 'desktop' ){ 1373 t.return_sidebar_pos(sidebar_sub, sidebar_item); 1374 return; 1375 } 1376 1377 var scroll_pos = $(window).scrollTop(); 1378 var scroll_direction = (prev_scroll > scroll_pos)? 'up': 'down'; 1379 prev_scroll = scroll_pos; 1380 1381 // sidebar smaller than screen 1382 if( $(window).height() > sidebar_item.height() ){ 1383 1384 if( scroll_pos <= sidebar_wrap.offset().top ){ 1385 1386 if( sidebar_item.hasClass('gdlr-core-fixed-sidebar') || sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar') ){ 1387 t.return_sidebar_pos(sidebar_sub, sidebar_item); 1388 } 1389 1390 }else{ 1391 1392 // overflow the content - stick to the bottom 1393 if( scroll_pos + sidebar_item.outerHeight() >= sidebar_wrap.offset().top + sidebar_wrap.outerHeight() ){ 1394 1395 if( !sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar') ){ 1396 t.set_sidebar_sub(sidebar_sub, sidebar_item); 1397 1398 sidebar_item.addClass('gdlr-core-fixed-bottom-sidebar').removeClass('gdlr-core-fixed-sidebar'); 1399 sidebar_item.css({ 1400 'position': 'absolute', 1401 'top': 'auto', 1402 'bottom': 0, 1403 'left': sidebar_sub.position().left, 1404 'width': sidebar_sub.outerWidth() 1405 }); 1406 } 1407 1408 // inside the content - fixed at the top 1409 }else{ 1410 1411 if( !sidebar_item.hasClass('gdlr-core-fixed-sidebar') ){ 1412 1413 t.set_sidebar_sub(sidebar_sub, sidebar_item); 1414 1415 sidebar_item.addClass('gdlr-core-fixed-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar'); 1416 sidebar_item.css({ 1417 'position': 'fixed', 1418 'top': 0, 1419 'bottom': 'auto', 1420 'left': sidebar_sub.offset().left, 1421 'width': sidebar_sub.outerWidth() 1422 }); 1423 1424 } 1425 1426 } 1427 1428 if( e.type == 'resize' ){ 1429 1430 if( sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar') ){ 1431 sidebar_item.css({ 1432 'width': sidebar_sub.outerWidth(), 1433 'left': sidebar_sub.position().left, 1434 });
1435 }else if( sidebar_item.hasClass('gdlr-core-fixed-sidebar') ){ 1436 sidebar_item.css({ 1437 'width': sidebar_sub.outerWidth(), 1438 'left': sidebar_sub.offset().left, 1439 }); 1440 } 1441 1442 } 1443 1444 } 1445 1446 // sidebar larger than screen 1447 }else{ 1448 1449 // to the top 1450 if( scroll_pos <= sidebar_wrap.offset().top ){ 1451 1452 if( sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar') || sidebar_item.hasClass('gdlr-core-stick-bottom-sidebar') || 1453 sidebar_item.hasClass('gdlr-core-fixed-top-sidebar') || sidebar_item.hasClass('gdlr-core-stick-top-sidebar') ){ 1454 t.return_sidebar_pos(sidebar_sub, sidebar_item); 1455 } 1456 1457 }else{ 1458 1459 // scroll direction down 1460 if( scroll_direction == 'down' ){ 1461 1462 if( sidebar_item.hasClass('gdlr-core-fixed-top-sidebar') ){ 1463 1464 t.set_sidebar_sub(sidebar_sub, sidebar_item); 1465 1466 sidebar_item.addClass('gdlr-core-stick-top-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar gdlr-core-stick-bottom-sidebar'); 1467 sidebar_item.css({ 1468 'position': 'absolute', 1469 'top': scroll_pos - sidebar_wrap.offset().top, 1470 'bottom': 'auto', 1471 'left': sidebar_sub.position().left, 1472 'width': sidebar_sub.outerWidth() 1473 }); 1474 1475 // stick at the bottom 1476 }else if( scroll_pos + $(window).height() >= sidebar_wrap.offset().top + sidebar_wrap.outerHeight() ){ 1477 1478 t.set_sidebar_sub(sidebar_sub, sidebar_item); 1479 1480 sidebar_item.addClass('gdlr-core-stick-bottom-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar gdlr-core-stick-top-sidebar'); 1481 sidebar_item.css({ 1482 'position': 'absolute', 1483 'top': 'auto', 1484 'bottom': 0, 1485 'left': sidebar_sub.position().left, 1486 'width': sidebar_sub.outerWidth() 1487 }); 1488 1489 // fixed at the bottom 1490 }else if( scroll_pos + $(window).height() > sidebar_item.offset().top + sidebar_item.outerHeight() ){ 1491 1492 t.set_sidebar_sub(sidebar_sub, sidebar_item); 1493 1494 sidebar_item.addClass('gdlr-core-fixed-bottom-sidebar').removeClass('gdlr-core-stick-bottom-sidebar gdlr-core-stick-top-sidebar gdlr-core-fixed-top-sidebar'); 1495 sidebar_item.css({ 1496 'position': 'fixed', 1497 'top': 'auto', 1498 'bottom': '0', 1499 'left': sidebar_sub.offset().left, 1500 'width': sidebar_sub.outerWidth() 1501 }); 1502 } 1503 1504 // scroll direction up 1505 }else{ 1506 1507 if( sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar') ){ 1508 1509 t.set_sidebar_sub(sidebar_sub, sidebar_item); 1510 1511 sidebar_item.addClass('gdlr-core-stick-bottom-sidebar').removeClass('gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar gdlr-core-stick-top-sidebar'); 1512 sidebar_item.css({ 1513 'position': 'absolute', 1514 'top': scroll_pos + $(window).height() - sidebar_item.outerHeight() - sidebar_wrap.offset().top, 1515 'bottom': 'auto', 1516 'left': sidebar_sub.position().left, 1517 'width': sidebar_sub.outerWidth() 1518 }); 1519 1520 }else{ 1521 1522 // stick at the top 1523 if( scroll_pos < sidebar_item.offset().top ){ 1524 1525 t.set_sidebar_sub(sidebar_sub, sidebar_item); 1526 1527 sidebar_item.addClass('gdlr-core-fixed-top-sidebar').removeClass('gdlr-core-stick-bottom-sidebar gdlr-core-fixed-bottom-sidebar gdlr-core-stick-top-sidebar'); 1528 sidebar_item.css({ 1529 'position': 'fixed', 1530 'top': '0', 1531 'bottom': 'auto', 1532 'left': sidebar_sub.offset().left, 1533 'width': sidebar_sub.outerWidth() 1534 }); 1535 1536 } 1537 } 1538 1539 1540 1541 } 1542 1543 if( e.type == 'resize' ){ 1544 if( sidebar_item.hasClass('gdlr-core-stick-bottom-sidebar') || sidebar_item.hasClass('gdlr-core-stick-top-sidebar') ){ 1545 sidebar_item.css({ 1546 'width': sidebar_sub.outerWidth(), 1547 'left': sidebar_sub.position().left, 1548 });
1549 }else if( sidebar_item.hasClass('gdlr-core-fixed-bottom-sidebar') || sidebar_item.hasClass('gdlr-core-fixed-top-sidebar') ){ 1550 sidebar_item.css({ 1551 'width': sidebar_sub.outerWidth(), 1552 'left': sidebar_sub.offset().left, 1553 }); 1554 } 1555 } 1556 1557 } 1558 } 1559 1560 }); // window scroll 1561 1562 }); 1563 }); 1564 1565 }, 1566 1567 set_sidebar_sub: function(sidebar_sub, sidebar_item){ 1568 1569 if(sidebar_item.hasClass('gdlr-core-sidebar-sub-added')) return; 1570 1571 // set the width 1572 var sidebar_class = ''; 1573 sidebar_item.each(function(){ 1574 var className = this.className.match(/gdlr-core-column-\d+/); 1575 if( className ){ 1576 sidebar_class = className[0]; 1577 } 1578 }); 1579 sidebar_sub.addClass(sidebar_class); 1580 1581 // set position 1582 sidebar_sub.css({ 1583 'float': sidebar_item.css('float'), 1584 'height': 20, 1585 'background': '#fd9' 1586 }); 1587 1588 sidebar_sub.insertAfter(sidebar_item); 1589 sidebar_item.addClass('gdlr-core-sidebar-sub-added'); 1590 }, 1591 1592 return_sidebar_pos: function(sidebar_sub, sidebar_item){ 1593 sidebar_item.css({'position': '', 'top': '', 'bottom': '', 'left': '', 'width': '', 'height': ''}); 1594 sidebar_item.removeClass('gdlr-core-fixed-sidebar gdlr-core-fixed-bottom-sidebar gdlr-core-sidebar-sub-added'); 1595 sidebar_item.removeClass('gdlr-core-stick-bottom-sidebar gdlr-core-fixed-bottom-sidebar gdlr-core-fixed-top-sidebar'); 1596 sidebar_sub.remove(); 1597 } 1598 1599 } 1600 1601 $.fn.gdlr_core_isotope = function( filter_elem ){ 1602 1603 if(typeof($.fn.isotope) == 'function'){ 1604 1605 if( typeof(filter_elem) == 'undefined' ){ 1606 var elem = $(this).find('[data-layout="masonry"]'); 1607 }else{ 1608 var elem = filter_elem.filter('[data-layout="masonry"]'); 1609 } 1610 1611 elem.each(function(){ 1612 1613 var t = $(this); 1614 var columnSize = t.width() / 60; 1615 1616 t.isotope({ 1617 itemSelector: '.gdlr-core-item-list', 1618 layoutMode: 'masonry', 1619 masonry:{ 1620 columnWidth: columnSize 1621 } 1622 }); 1623 t.isotope(); 1624 1625 t.children('.gdlr-core-item-list').gdlr_core_animate_list_item(); 1626 1627 // resize event 1628 $(window).on('resize gdlr-core-element-resize', function(){ 1629 1630 columnSize = t.width() / 60; 1631 1632 t.isotope({ 1633 masonry:{ 1634 columnWidth: columnSize 1635 } 1636 }); 1637 }); 1638 }); 1639 1640 } 1641 1642 return $(this); 1643 1644 } // gdlr-core-isotope 1645 $.fn.gdlr_core_animate_list_item = function(){ 1646 1647 var ux_items = $(this).get(); 1648 1649 // run the ux in order with delay 1650 var ux_interval = setInterval(function(){ 1651 1652 if( ux_items.length > 0 ){ 1653 // animate the ux item 1654 var ux_animate = $(ux_items.shift()); 1655 var animation_duration = '600ms'; 1656 1657 ux_animate.css({'animation-duration': animation_duration}); 1658 ux_animate.addClass('gdlr-core-animate'); 1659 1660 // remove selector 1661 setTimeout(function(){ 1662 ux_animate.css({'animation-duration': ''}) 1663 .addClass('gdlr-core-animate-end') 1664 .removeClass('gdlr-core-animate gdlr-core-animate-init'); 1665 }, parseInt(animation_duration)); 1666 1667 }else{ 1668 clearInterval(ux_interval); 1669 } 1670 }, 200); 1671 1672 } 1673 1674 $.fn.gdlr_core_lightbox = function( filter_elem ){ 1675 1676 // ilightbox 1677 if( typeof($.iLightBox) == 'function' ){ 1678 1679 if( typeof(filter_elem) == 'undefined' ){ 1680 var ilightbox = $(this).find('.gdlr-core-ilightbox'); 1681 }else{ 1682 var ilightbox = filter_elem.filter('.gdlr-core-ilightbox'); 1683 } 1684 1685 var ilightbox_atts = {}; 1686 var ilightbox_groups = []; 1687 1688 if( typeof(gdlr_core_pbf.ilightbox_skin) != 'undefined' ){ 1689 ilightbox_atts['skin'] = gdlr_core_pbf.ilightbox_skin; 1690 } 1691 1692 ilightbox.each(function(){ 1693 if( $(this).attr('data-ilightbox-group') ){ 1694 if( ilightbox_groups.indexOf($(this).attr('data-ilightbox-group')) == -1 ){ 1695 ilightbox_groups.push($(this).attr('data-ilightbox-group')); 1696 } 1697 }else{ 1698 $(this).iLightBox(ilightbox_atts); 1699 } 1700 }); 1701 1702 for( var key in ilightbox_groups ){ 1703 $(this).find('.gdlr-core-ilightbox[data-ilightbox-group="' + ilightbox_groups[key] + '"]').iLightBox(ilightbox_atts); 1704 } 1705 1706 }else if( typeof($.fn.lightGallery) == 'function' ){ 1707 1708 if( typeof(filter_elem) == 'undefined' ){ 1709 var lightgallery = $(this).find('.gdlr-core-lightgallery'); 1710 }else{ 1711 var lightgallery = filter_elem.filter('.gdlr-core-lightgallery'); 1712 } 1713 1714 var lightbox_groups = []; 1715 1716 lightgallery.each(function(){ 1717 if( $(this).attr('data-lightbox-group') ){ 1718 if( lightbox_groups.indexOf($(this).attr('data-lightbox-group')) == -1 ){ 1719 lightbox_groups.push($(this).attr('data-lightbox-group')); 1720 } 1721 }else{ 1722 $(this).lightGallery({ selector: 'this' });
1723 } 1724 }); 1725 1726 for( var key in lightbox_groups ){ 1727 var group_selector = '.gdlr-core-lightgallery[data-lightbox-group="' + lightbox_groups[key] + '"]'; 1728 1729 lightgallery.filter(group_selector).first().lightGallery({ 1730 selector: group_selector, 1731 selectWithin: 'body', 1732 thumbnail: false 1733 }); 1734 } 1735 1736 } 1737 1738 // lightbox gallery 1739 if( typeof(filter_elem) == 'undefined' ){ 1740 var gallery_lb = $(this).find('[data-gallery-lb]'); 1741 }else{ 1742 var gallery_lb = filter_elem.filter('[data-gallery-lb]'); 1743 } 1744 1745 gallery_lb.click(function(){ 1746 if( typeof($.iLightBox) != 'undefined' ){ 1747 $.iLightBox($(this).data('gallery-lb')); 1748 }else if(typeof(Strip) != 'undefined' ){ 1749 Strip.show($(this).data('gallery-lb')); 1750 }else if(typeof($.fn.lightGallery) == 'function'){ 1751 $(this).lightGallery({ 1752 dynamic: true, 1753 dynamicEl: $(this).data('gallery-lb'), 1754 thumbnail: false 1755 }); 1756 } 1757 1758 return false; 1759 }); 1760 1761 1762 // image overlay 1763 if( typeof(filter_elem) == 'undefined' ){ 1764 var center_overlay = $(this).find('.gdlr-core-image-overlay-center, .gdlr-core-image-overlay-center-icon'); 1765 }else{ 1766 var center_overlay = filter_elem.filter('.gdlr-core-image-overlay-center, .gdlr-core-image-overlay-center-icon'); 1767 } 1768 1769 center_overlay.each(function(){ 1770 1771 // for portfolio overlay content style 1772 if( $(this).hasClass('gdlr-core-image-overlay-center') ){ 1773 var overlay_content = $(this).children('.gdlr-core-image-overlay-content'); 1774 var wrap_height = $(this).outerHeight() - (2 * parseInt(overlay_content.css('bottom'))); 1775 1776 var overlay_icon = overlay_content.children('.gdlr-core-portfolio-icon-wrap'); 1777 var icon_margin = (wrap_height - (overlay_content.outerHeight() - parseInt(overlay_icon.css('margin-bottom')))) / 2; 1778 if( icon_margin > 20 ){ 1779 overlay_icon.css('margin-bottom', icon_margin); 1780 } 1781 1782 // normal centering 1783 }else{ 1784 var content_offset = 0; 1785 if( $(this).children('.gdlr-core-image-overlay-content-offset').length ){ 1786 content_offset = $(this).children('.gdlr-core-image-overlay-content-offset').outerHeight(true); 1787 } 1788 1789 $(this).children('.gdlr-core-image-overlay-content').each(function(){ 1790 $(this).css({ 'margin-top': -( ($(this).outerHeight() + content_offset) / 2 ) }); 1791 }); 1792 } 1793 1794 }); 1795 $(window).on('resize gdlr-core-element-resize', function(){ 1796 center_overlay.each(function(){ 1797 // for portfolio style 1798 if( $(this).hasClass('gdlr-core-image-overlay-center') ){ 1799 var overlay_content = $(this).children('.gdlr-core-image-overlay-content'); 1800 var wrap_height = $(this).outerHeight() - (2 * parseInt(overlay_content.css('bottom'))); 1801 1802 var overlay_icon = overlay_content.children('.gdlr-core-portfolio-icon-wrap'); 1803 var icon_margin = (wrap_height - (overlay_content.outerHeight() - parseInt(overlay_icon.css('margin-bottom')))) / 2; 1804 if( icon_margin > 20 ){ 1805 overlay_icon.css('margin-bottom', icon_margin); 1806 } 1807 1808 // normal centering 1809 }else{ 1810 var content_offset = 0; 1811 if( $(this).children('.gdlr-core-image-overlay-content-offset').length ){ 1812 content_offset = $(this).children('.gdlr-core-image-overlay-content-offset').outerHeight(true); 1813 } 1814 1815 $(this).children('.gdlr-core-image-overlay-content').each(function(){ 1816 $(this).css({ 'margin-top': -( ($(this).outerHeight() + content_offset) / 2 ) }); 1817 }); 1818 } 1819 }); 1820 }); 1821 1822 return $(this); 1823 } 1824 1825 $.fn.gdlr_core_set_image_height = function(){ 1826 1827 var all_image = $(this).find('img'); 1828 1829 all_image.each(function(){ 1830 var img_width = $(this).attr('width'); 1831 var img_height = $(this).attr('height'); 1832 1833 if( img_width && img_height ){ 1834 var parent_item = $(this).parent('.gdlr-core-temp-image-wrap'); 1835 1836 if( parent_item.length ){ 1837 parent_item.height((img_height * $(this).parent().width()) / img_width); 1838 }else{ 1839 parent_item = $('<div class="gdlr-core-temp-image-wrap" ></div>'); 1840 parent_item.css('height', ((img_height * $(this).closest('span, div').width()) / img_width)); 1841 $(this).wrap(parent_item); 1842 } 1843 }else{ 1844 return; 1845 } 1846 }); 1847 $(window).on('resize gdlr-core-element-resize', function(e){
1848 all_image.each(function(){ 1849 var parent_item = $(this).parent('.gdlr-core-temp-image-wrap'); 1850 1851 if( parent_item.length ){ 1852 $(this).unwrap(); 1853 } 1854 }); 1855 1856 $(window).unbind('resize', e.handleObj.handler, e); 1857 }); 1858 1859 return $(this); 1860 } // gdlr_core_set_image_height 1861 1862 // to set full height wrapper / column 1863 window.gdlr_core_set_full_height = function( container, filter_elem ){ 1864 if( typeof(filter_elem) == 'undefined' ){ 1865 this.elements = container.find('.gdlr-core-wrapper-full-height, .gdlr-core-column-full-height'); 1866 }else{ 1867 this.elements = filter_elem.filter('.gdlr-core-wrapper-full-height, .gdlr-core-column-full-height'); 1868 } 1869 1870 if( this.elements.length ){ 1871 this.init(); 1872 } 1873 } 1874 gdlr_core_set_full_height.prototype = { 1875 1876 init: function(){ 1877 1878 var t = this; 1879 1880 t.resize(); 1881 $(window).on('load resize gdlr-core-element-resize', function(){ t.resize(); }); 1882 }, 1883 1884 resize: function(){ 1885 1886 this.elements.each(function(){ 1887 var offset = $(this).attr('data-decrease-height')? parseInt($(this).attr('data-decrease-height')): 0; 1888 1889 $(this).css('min-height', $(window).height() - offset); 1890 1891 if( $(this).hasClass('gdlr-core-full-height-center') ){ 1892 $(this).children('.gdlr-core-full-height-pre-spaces').remove(); 1893 1894 var pre_space = ($(this).height() - $(this).children('.gdlr-core-full-height-content').outerHeight(true)) / 2; 1895 if( pre_space > 0 ){ 1896 $(this).prepend($('<div class="gdlr-core-full-height-pre-spaces" ></div>').height(pre_space)); 1897 } 1898 } 1899 }); 1900 1901 } 1902 }; 1903 1904 // sync height among items 1905 window.gdlr_core_sync_height = function( container, filter_elem ){ 1906 1907 // for half height item 1908 this.set_half_height(container); 1909 1910 // sync height 1911 if( typeof(window.gdlr_core_sync_height_elem) != 'undefined' ){ 1912 window.gdlr_core_sync_height_elem.reinit(); 1913 return; 1914 } 1915 window.gdlr_core_sync_height_elem = this; 1916 1917 if( typeof(filter_elem) == 'undefined' ){ 1918 this.elements = container.find('[data-sync-height]'); 1919 }else{ 1920 this.elements = filter_elem.filter('[data-sync-height]'); 1921 } 1922 1923 this.elements_group = []; 1924 this.container = container; 1925 this.init(); 1926 } 1927 gdlr_core_sync_height.prototype = { 1928 1929 init: function(){ 1930 1931 var t = this; 1932 t.group_elements(); 1933 t.set_height(); 1934 1935 $(window).on('load resize gdlr-core-element-resize', function(){ t.set_height(); }); 1936 }, 1937 1938 reinit: function(){ 1939 1940 if( !this.container.is('.gdlr-core-page-builder-body') ){ 1941 this.container = this.container.closest('.gdlr-core-page-builder-body'); 1942 } 1943 1944 this.elements = this.container.find('[data-sync-height]'); 1945 this.group_elements(); 1946 this.set_height(); 1947 1948 }, 1949 1950 group_elements: function(){ 1951 1952 var t = this; 1953 1954 // do flipbox first 1955 t.elements.filter('.gdlr-core-flipbox-front, .gdlr-core-feature-box').each(function(){ 1956 if( t.elements_group.indexOf($(this).attr('data-sync-height')) == -1 ){ 1957 t.elements_group.push($(this).attr('data-sync-height')); 1958 } 1959 }); 1960 1961 // do the rest elements 1962 t.elements.each(function(){ 1963 if( t.elements_group.indexOf($(this).attr('data-sync-height')) == -1 ){ 1964 t.elements_group.push($(this).attr('data-sync-height')); 1965 } 1966 }); 1967 }, 1968 1969 set_height: function(){ 1970 1971 var t = this; 1972 1973 // revert to default value 1974 t.elements.css('height', 'auto').children('.gdlr-core-sync-height-pre-spaces').remove(); 1975 t.elements.find('.gdlr-core-sync-height-offset').remove(); 1976 1977 var sync_element = t.elements; 1978 if( gdlr_core_display == 'mobile-landscape' || gdlr_core_display == 'mobile-portrait' ){ 1979 sync_element = sync_element.filter('.gdlr-core-flipbox-front, .gdlr-core-flipbox-back'); 1980 } 1981 1982 // setting the height by each group 1983 for( var key in t.elements_group ){ 1984 var max_height = 0; 1985 1986 // determine max height 1987 sync_element.filter('[data-sync-height="' + t.elements_group[key] + '"]').each(function(){ 1988 if( $(this).outerHeight() > max_height ){ 1989 max_height = $(this).outerHeight(); 1990 } 1991 }); 1992 1993 // set the height 1994 sync_element.filter('[data-sync-height="' + t.elements_group[key] + '"]').each(function(){ 1995 1996 // set the offset space to the bottom 1997 var offset = parseInt(max_height - $(this).outerHeight()); 1998 var offset_item = $(this).find('[data-sync-height-offset]'); 1999 if( offset_item.length && offset > 0 ){ 2000 $('<div class="gdlr-core-sync-height-offset" ></div>').css('height', offset).insertBefore(offset_item); 2001 } 2002 2003 $(this).css('height', max_height); 2004 2005 // flipbox 2006 if( $(this).hasClass('gdlr-core-flipbox-front') ){ 2007 $(this).parent().css('height', max_height); 2008 } 2009 2010 // center the content if selected 2011 if( $(this).is('[data-sync-height-center]') ){ 2012 var content = $(this).children('.gdlr-core-sync-height-content'); 2013 2014 // determine top padding for centering content 2015 var padding_top = max_height; 2016 if( content.length > 0 ){ 2017 padding_top -= content.outerHeight(); 2018 }else{ 2019 $(this).children().each(function(){ 2020 padding_top -= $(this).outerHeight(); 2021 });
2022 } 2023 padding_top = padding_top / 2; 2024 padding_top = padding_top - (parseInt($(this).css('padding-top')) + parseInt($(this).css('border-top-width'))); 2025 2026 // insert the spaces 2027 if( padding_top > 0 ){ 2028 var spaces_item = $('<div class="gdlr-core-sync-height-pre-spaces" ></div>').css('padding-top', padding_top); 2029 var space_position = $(this).children('.gdlr-core-sync-height-space-position'); 2030 if( space_position.length > 0 ){ 2031 spaces_item.insertBefore(space_position); 2032 }else{ 2033 $(this).prepend(spaces_item); 2034 } 2035 } 2036 } 2037 2038 }); 2039 } 2040 2041 }, 2042 2043 set_half_height: function( container ){ 2044 2045 container.find('.gdlr-core-half-height').each(function(){ 2046 var temp = $(this); 2047 if( !gdlr_core_mobile && (gdlr_core_display == 'tablet' || gdlr_core_display == 'desktop') ){ 2048 var temp_height = temp.outerHeight(); 2049 temp.gdlr_core_set_image_height(); 2050 temp.css('height', temp_height / 2); 2051 temp.find('img').css('margin-top', -temp_height/4); 2052 } 2053 $(window).on('load resize', function(){ 2054 temp.css('height', 'auto'); 2055 temp.find('img').css('margin-top', '0'); 2056 if( !gdlr_core_mobile && (gdlr_core_display == 'tablet' || gdlr_core_display == 'desktop') ){ 2057 temp_height = temp.outerHeight(); 2058 temp.gdlr_core_set_image_height(); 2059 temp.css('height', temp_height / 2); 2060 temp.find('img').css('margin-top', -temp_height/4); 2061 } 2062 }); 2063 }); 2064 2065 } 2066 2067 }; // gdlr_core_sync_height.prototype 2068 2069 function gdlr_core_ajax_action(ajax_section, name, value){ 2070 2071 var now_loading = $('<div class="gdlr-core-now-loading" ></div>').hide(); 2072 2073 $.ajax({ 2074 type: 'POST', 2075 url: gdlr_core_pbf.ajax_url, 2076 data: { 2077 'action': ajax_section.attr('data-ajax'), 2078 'settings': ajax_section.data('settings'),
2079 'option': { 'name':name, 'value':value } 2080 }, 2081 dataType: 'json', 2082 beforeSend: function(jqXHR, settings){ 2083 // before send action 2084 if( ajax_section.attr('data-target-action') == 'replace' ){ 2085 ajax_section.siblings('.' + ajax_section.attr('data-target')).animate({opacity: 0}, 150); 2086 } 2087 2088 // for portfolio item 2089 if( ajax_section.attr('data-target') == 'gdlr-core-portfolio-item-holder' && 2090 ajax_section.attr('data-target-action') == 'replace' ){ 2091 2092 now_loading.insertBefore( ajax_section.siblings('.gdlr-core-portfolio-item-holder') ); 2093 now_loading.fadeIn(200); 2094 } 2095 }, 2096 error: function(jqXHR, textStatus, errorThrown){ 2097 ajax_section.removeClass('gdlr-core-disable'); 2098 2099 console.log(jqXHR, textStatus, errorThrown); 2100 }, 2101 success: function(data){ 2102 ajax_section.removeClass('gdlr-core-disable'); 2103 2104 if( data.status == 'success' ){ 2105 if( data.content && ajax_section.attr('data-target') ){ 2106 if( ajax_section.attr('data-target-action') == 'append' ){ 2107 var content = $(data.content); 2108 ajax_section.siblings('.' + ajax_section.attr('data-target')).each(function(){ 2109 2110 if( $(this).attr('data-layout') != 'masonry' || typeof($.fn.isotope) != 'function' ){ 2111 content.addClass('gdlr-core-animate-init'); 2112 } 2113 $(this).append(content); 2114 2115 content.gdlr_core_lightbox().gdlr_core_flexslider().gdlr_core_content_script().gdlr_core_set_image_height(); 2116 new gdlr_core_sync_height(content); 2117 2118 if( $(this).attr('data-layout') == 'masonry' && typeof($.fn.isotope) == 'function' ){ 2119 var addItems = $(this).isotope('addItems', content); 2120 $(this).isotope('layoutItems', addItems, true); 2121 } 2122 2123 content.gdlr_core_animate_list_item(); 2124 }); 2125 2126 if( data.load_more ){ 2127 if( data.load_more != 'none' ){ 2128 var load_more = $(data.load_more); 2129 ajax_section.parent().append(load_more); 2130 load_more.gdlr_core_ajax(load_more); 2131 load_more.css('display', 'none').slideDown(100); 2132 2133 ajax_section.remove(); 2134 }else{ 2135 ajax_section.slideUp(100, function(){ $(this).remove(); }); 2136 } 2137 } 2138 2139 }else if( ajax_section.attr('data-target-action') == 'replace' ){ 2140 var content = $(data.content); 2141 ajax_section.siblings('.' + ajax_section.attr('data-target')).each(function(){ 2142 var fix_height = false; 2143 var current_height = $(this).height(); 2144 2145 if( $(this).attr('data-layout') != 'masonry' || typeof($.fn.isotope) != 'function' ){ 2146 content.addClass('gdlr-core-animate-init'); 2147 } 2148 $(this).empty().append(content); 2149 2150 content.gdlr_core_lightbox().gdlr_core_flexslider().gdlr_core_fluid_video().gdlr_core_set_image_height(); 2151 new gdlr_core_sync_height(content); 2152 2153 if( $(this).attr('data-layout') == 'masonry' && typeof($.fn.isotope) == 'function' ){ 2154 $(this).isotope('destroy'); 2155 $(this).parent().gdlr_core_isotope(); 2156 fix_height = true; 2157 }else{ 2158 content.gdlr_core_animate_list_item(); 2159 } 2160 2161 var new_height = $(this).height(); 2162 $(this).css({height:current_height, opacity:1}).animate({'height':new_height}, {'duration':400, 'easing':'easeOutExpo', 'complete': function(){ 2163 if( !fix_height ){ $(this).css('height',''); } 2164 }}); 2165 }); 2166 2167 // pagination 2168 if( data.pagination ){
2169 ajax_section.siblings('.gdlr-core-pagination').slideUp(100, function(){ $(this).remove(); }); 2170 2171 if( data.pagination != 'none' ){ 2172 var pagination = $(data.pagination); 2173 ajax_section.parent().append(pagination); 2174 pagination.gdlr_core_ajax(pagination); 2175 pagination.css('display', 'none').slideDown(100); 2176 } 2177 } 2178 2179 // load more button 2180 if( data.load_more ){ 2181 ajax_section.siblings('.gdlr-core-load-more-wrap').slideUp(100, function(){ $(this).remove(); }); 2182 2183 if( data.load_more != 'none' ){ 2184 var load_more = $(data.load_more); 2185 ajax_section.parent().append(load_more); 2186 load_more.gdlr_core_ajax(load_more); 2187 load_more.css('display', 'none').slideDown(100); 2188 } 2189 } 2190 2191 } 2192 } 2193 2194 if( typeof(data.settings) != 'undefined' ){ 2195 ajax_section.data('settings', data.settings); 2196 } 2197 2198 now_loading.fadeOut(200, function(){ $(this).remove(); }); 2199 } 2200 } 2201 }); 2202 2203 } // gdlr_core_ajax_action 2204 $.fn.gdlr_core_ajax = function( filter_elem ){ 2205 2206 if( typeof(filter_elem) == 'undefined' ){ 2207 var elem = $(this).find('[data-ajax]'); 2208 }else{ 2209 var elem = filter_elem.filter('[data-ajax]'); 2210 } 2211 2212 elem.each(function(){ 2213 2214 var ajax_section = $(this); 2215 2216 // button click 2217 $(this).on('click', 'a', function(){ 2218 if( $(this).hasClass('gdlr-core-active') || ajax_section.hasClass('gdlr-core-disable') ){ 2219 return false; 2220 } 2221 2222 $(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active'); 2223 ajax_section.addClass('gdlr-core-disable'); 2224 2225 var name = $(this).attr('data-ajax-name'); 2226 var value = $(this).attr('data-ajax-value'); 2227 2228 gdlr_core_ajax_action(ajax_section, name, value); 2229 2230 return false; 2231 }); 2232 2233 // filter changed 2234 $(this).on('change', 'select', function(){ 2235 var name = $(this).attr('data-ajax-name'); 2236 var value = $(this).val(); 2237 2238 gdlr_core_ajax_action(ajax_section, name, value); 2239 }); 2240 2241 }); 2242 2243 } // gdlr_core_ajax 2244 $.fn.gdlr_core_ajax_slide_bar = function( filter_elem ){ 2245 if( typeof(filter_elem) == 'undefined' ){ 2246 var elem = $(this).find('[data-ajax]'); 2247 }else{ 2248 var elem = filter_elem.filter('[data-ajax]'); 2249 } 2250 2251 elem.each(function(){ 2252 2253 var ajax_section = $(this); 2254 2255 // filter slide bar 2256 $(this).children('.gdlr-core-filterer-slide-bar').each(function(){ 2257 var slide_bar = $(this); 2258 var active_slide = slide_bar.siblings('.gdlr-core-active'); 2259 slide_bar.css({'width': active_slide.outerWidth(), 'left': active_slide.position().left + parseInt(active_slide.css('margin-left')) }); 2260 2261 $(window).on('load resize', function(){ 2262 active_slide = slide_bar.siblings('.gdlr-core-active'); 2263 slide_bar.css({'width': active_slide.outerWidth(), 'left': active_slide.position().left + parseInt(active_slide.css('margin-left')) }); 2264 }); 2265 2266 ajax_section.find('a').hover(function(){ 2267 slide_bar.animate({'width': $(this).outerWidth(), 'left': $(this).position().left + parseInt($(this).css('margin-left')) }, {queue: false, duration: 200}); 2268 }, function(){ 2269 active_slide = slide_bar.siblings('.gdlr-core-active'); 2270 slide_bar.animate({'width': active_slide.outerWidth(), 'left': active_slide.position().left + parseInt(active_slide.css('margin-left')) }, {queue: false, duration: 200}); 2271 }); 2272 }); 2273 2274 }); 2275 } 2276 2277 $.fn.gdlr_core_dropdown_tab = function( filter_elem ){ 2278 2279 if( typeof(filter_elem) == 'undefined' ){ 2280 var elem = $(this).find('.gdlr-core-dropdown-tab'); 2281 }else{ 2282 var elem = filter_elem.filter('.gdlr-core-dropdown-tab'); 2283 } 2284 2285 elem.each(function(){ 2286 var tab_title = $(this).children('.gdlr-core-dropdown-tab-title'); 2287 var tab_title_text = tab_title.children('.gdlr-core-head'); 2288 var tab_dropdown = tab_title.children('.gdlr-core-dropdown-tab-head-wrap'); 2289 var tab_content = $(this).children('.gdlr-core-dropdown-tab-content-wrap'); 2290 2291 // dropdown 2292 tab_title.click(function(){ 2293 if( $(this).hasClass('gdlr-core-active') ){ 2294 $(this).removeClass('gdlr-core-active'); 2295 tab_dropdown.hide(); 2296 }else{ 2297 $(this).addClass('gdlr-core-active'); 2298 tab_dropdown.slideDown(200); 2299 } 2300 }); 2301 tab_dropdown.children().click(function(){ 2302 tab_title_text.html($(this).html()); 2303 $(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active'); 2304 2305 var content_active = tab_content.children('[data-index="' + $(this).attr('data-index') + '"]'); 2306 content_active.fadeIn(200).addClass('gdlr-core-active'); 2307 content_active.siblings().hide().removeClass('gdlr-core-active'); 2308 }); 2309 2310 }); 2311 2312 } // gdlr_core_dropdown_tab 2313 2314 if( !gdlr_core_pbf.admin ){
2315 2316 $(document).ready(function(){ 2317 2318 $('body').each(function(){ 2319 2320 // turns image link to open in lightbox 2321 if( $(this).hasClass('gdlr-core-link-to-lightbox') ){ 2322 var image_link = $(this).find('a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"]') 2323 .not('.gdlr-core-ilightbox, .strip, [data-rel], .gdlr-core-lightgallery, .gdlr-core-social-share-pinterest') 2324 .addClass('strip gdlr-core-ilightbox gdlr-core-lightgallery').each(function(){ 2325 2326 if( $(this).closest('.gallery').length ){ 2327 var gallery_wrap = $(this).closest('.gallery'); 2328 if( gallery_wrap.attr('data-gallery-id') ){ 2329 var gallery_id = gallery_wrap.attr('data-gallery-id'); 2330 }else{ 2331 var gallery_id = Math.floor((Math.random() * 10000) + 1); 2332 gallery_wrap.attr('data-gallery-id', gallery_id); 2333 } 2334 2335 $(this).attr('data-ilightbox-group', 'wp-gallery-' + gallery_id); 2336 $(this).attr('data-lightbox-group', 'wp-gallery-' + gallery_id); 2337 $(this).attr('data-strip-group', 'wp-gallery-' + gallery_id); 2338 2339 } 2340 }); 2341 $(this).gdlr_core_lightbox( image_link ); 2342 } 2343 2344 var gdlr_core_js = $(this).find('.gdlr-core-js, iframe[src*="youtube"], iframe[src*="vimeo"]'); 2345 2346 // video resizing 2347 $(this).gdlr_core_content_script( gdlr_core_js, true ); 2348 2349 // counter item 2350 $(this).gdlr_core_counter_item( gdlr_core_js ); 2351 2352 // type animation item 2353 $(this).gdlr_core_typed_animation( gdlr_core_js ); 2354 2355 // countdown item 2356 $(this).gdlr_core_countdown_item( gdlr_core_js ); 2357 2358 // alert box item 2359 $(this).gdlr_core_alert_box_item( gdlr_core_js ); 2360 2361 // accordion item 2362 $(this).gdlr_core_accordion( gdlr_core_js ); 2363 2364 // toggle box item 2365 $(this).gdlr_core_toggle_box( gdlr_core_js ); 2366 2367 // divider 2368 $(this).gdlr_core_divider( gdlr_core_js ); 2369 2370 // flipbox 2371 $(this).gdlr_core_flipbox( gdlr_core_js ); 2372 2373 // marquee 2374 $(this).gdlr_core_marquee( gdlr_core_js ); 2375 2376 // chart.js 2377 $(this).gdlr_core_chart_js( gdlr_core_js ); 2378 2379 // skill circle 2380 $(this).gdlr_core_skill_circle( gdlr_core_js ); 2381 2382 // skill bar 2383 $(this).gdlr_core_skill_bar( gdlr_core_js ); 2384 2385 // tab 2386 $(this).gdlr_core_tab( gdlr_core_js ); 2387 2388 // dropdown tab 2389 $(this).gdlr_core_dropdown_tab( gdlr_core_js ); 2390 2391 // lightbox 2392 $(this).gdlr_core_lightbox( gdlr_core_js ); 2393 2394 // ajax action 2395 $(this).gdlr_core_ajax( gdlr_core_js ); 2396 $(this).gdlr_core_ajax_slide_bar( gdlr_core_js ); 2397 2398 // ux animation 2399 // $(this).gdlr_core_ux( gdlr_core_js ); 2400 new gdlr_core_ux( $(this), gdlr_core_js ); 2401 2402 // sync height 2403 new gdlr_core_sync_height( $(this), gdlr_core_js ); 2404 2405 // set height 2406 new gdlr_core_set_full_height( $(this), gdlr_core_js ); 2407 2408 // sidebar wrapper height 2409 new gdlr_core_sidebar_wrapper( $(this), gdlr_core_js ); 2410 2411 // background parallax 2412 $(this).gdlr_core_parallax_background( gdlr_core_js ); 2413 2414 // particle 2415 $(this).gdlr_core_particle_background( gdlr_core_js ); 2416 2417 // privacy box cookie 2418 gdlr_core_js.filter('.gdlr-core-privacy-box-button').on('click', function(){ 2419 var privacy_box_wrap = $(this).closest('.gdlr-core-privacy-box-wrap'); 2420 if( privacy_box_wrap.is('.gdlr-core-pos-bottom-bar, .gdlr-core-pos-top-bar') ){ 2421 privacy_box_wrap.slideUp(200); 2422 }else{ 2423 privacy_box_wrap.fadeOut(250); 2424 } 2425 2426 var cookie_time = $(this).attr('data-cookie-time')? $(this).attr('data-cookie-time'): 2592000; 2427 console.log(cookie_time) 2428 gdlr_core_set_cookie('gdlr-core-privacy-box', 1, cookie_time); 2429 2430 return false; 2431 }); 2432 2433 // gdlr lightbox 2434 gdlr_core_js.filter('[data-gdlr-lb]').each(function(){ 2435 var lb_wrap = $('#' + $(this).data('gdlr-lb')); 2436 if( lb_wrap.length ){ 2437 2438 // open lightbox action 2439 $(this).on('click', function(){ 2440 lb_wrap.fadeIn(200); 2441 return false; 2442 }); 2443 2444 // bind the lightbox close action 2445 lb_wrap.find('.gdlr-core-lightbox-form-close').on('click', function(){ 2446 $(this).closest('.gdlr-core-lightbox-wrapper').fadeOut(); 2447 return false; 2448 });
2449 } 2450 }); 2451 2452 // gdpr form 2453 gdlr_core_js.filter('#gdlr-core-gdpr-form').each(function(){ 2454 2455 // change tab 2456 $(this).on('click', '.gdlr-core-gdlr-form-nav li', function(){ 2457 $(this).addClass('gdlr-core-active').siblings().removeClass('gdlr-core-active'); 2458 2459 var nav_id = $(this).data('gdlr-nav'); 2460 var content_wrap = $(this).closest('.gdlr-core-gdpr-form-left').siblings('.gdlr-core-gdpr-form-right'); 2461 content_wrap.find('[data-gdlr-nav="' + nav_id + '"]').each(function(){ 2462 $(this).siblings('[data-gdlr-nav]').removeClass('gdlr-core-active').css('display', 'none'); 2463 $(this).fadeIn(200, function(){ $(this).addClass('gdlr-core-active'); }); 2464 }); 2465 }); 2466 }); 2467 2468 // sticky sidebar 2469 new gdlr_core_sticky_sidebar(gdlr_core_js); 2470 }); 2471 2472 }); // document.ready 2473 2474 $(window).load(function(){ 2475 2476 $('body').each(function(){ 2477 2478 var gdlr_core_js = $(this).find('.gdlr-core-js-2'); 2479 2480 // title divider 2481 $(this).gdlr_core_title_divider( gdlr_core_js ); 2482 2483 // flexslider 2484 $(this).gdlr_core_flexslider( gdlr_core_js ); 2485 2486 // sly slider 2487 $(this).gdlr_core_sly( gdlr_core_js ); 2488 2489 // isotope 2490 $(this).gdlr_core_isotope( gdlr_core_js ); 2491 2492 }); 2493 2494 }); // window.load 2495 2496 } 2497 2498})(jQuery); 2499;/*! 2500 * Bootstrap v4.3.1 (https://getbootstrap.com/) 2501 * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 2502 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 2503 */ 2504!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},e=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.forEach(function(t){var e,n,i;e=o,i=r[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return o}g=g&&g.hasOwnProperty("default")?g.default:g,u=u&&u.hasOwnProperty("default")?u.default:u;var e="transitionend";function n(t){var e=this,n=!1;return g(this).one(_.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||_.triggerTransitionEnd(e)},t),this}var _={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=g(t).css("transition-duration"),n=g(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){g(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&_.isElement(r)?"element":(a=r,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?_.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};g.fn.emulateTransitionEnd=n,g.event.special[_.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(g(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var o="alert",r="bs.alert",a="."+r,c=g.fn[o],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",d="fade",m="show",p=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}
2504,t.dispose=function(){g.removeData(this._element,r),this._element=null},t._getRootElement=function(t){var e=_.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=g(t).closest("."+f)[0]),n},t._triggerCloseEvent=function(t){var e=g.Event(h.CLOSE);return g(t).trigger(e),e},t._removeElement=function(e){var n=this;if(g(e).removeClass(m),g(e).hasClass(d)){var t=_.getTransitionDurationFromElement(e);g(e).one(_.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){g(t).detach().trigger(h.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(r);e||(e=new i(this),t.data(r,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();g(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),g.fn[o]=p._jQueryInterface,g.fn[o].Constructor=p,g.fn[o].noConflict=function(){return g.fn[o]=c,p._jQueryInterface};var v="button",y="bs.button",E="."+y,C=".data-api",T=g.fn[v],S="active",b="btn",I="focus",D='[data-toggle^="button"]',w='[data-toggle="buttons"]',A='input:not([type="hidden"])',N=".active",O=".btn",k={CLICK_DATA_API:"click"+E+C,FOCUS_BLUR_DATA_API:"focus"+E+C+" blur"+E+C},P=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(w)[0];if(n){var i=this._element.querySelector(A);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(S))t=!1;else{var o=n.querySelector(N);o&&g(o).removeClass(S)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(S),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(S)),t&&g(this._element).toggleClass(S)},t.dispose=function(){g.removeData(this._element,y),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(y);t||(t=new n(this),g(this).data(y,t)),"toggle"===e&&t[e]()})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();g(document).on(k.CLICK_DATA_API,D,function(t){t.preventDefault();var e=t.target;g(e).hasClass(b)||(e=g(e).closest(O)),P._jQueryInterface.call(g(e),"toggle")}).on(k.FOCUS_BLUR_DATA_API,D,function(t){var e=g(t.target).closest(O)[0];g(e).toggleClass(I,/^focus(in)?$/.test(t.type))}),g.fn[v]=P._jQueryInterface,g.fn[v].Constructor=P,g.fn[v].noConflict=function(){return g.fn[v]=T,P._jQueryInterface};var L="carousel",j="bs.carousel",H="."+j,R=".data-api",x=g.fn[L],F={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},W="next",q="prev",M="left",K="right",Q={SLIDE:"slide"+H,SLID:"slid"+H,KEYDOWN:"keydown"+H,MOUSEENTER:"mouseenter"+H,MOUSELEAVE:"mouseleave"+H,TOUCHSTART:"touchstart"+H,TOUCHMOVE:"touchmove"+H,TOUCHEND:"touchend"+H,POINTERDOWN:"pointerdown"+H,POINTERUP:"pointerup"+H,DRAG_START:"dragstart"+H,LOAD_DATA_API:"load"+H+R,CLICK_DATA_API:"click"+H+R},B="carousel",V="active",Y="slide",z="carousel-item-right",X="carousel-item-left",$="carousel-item-next",G="carousel-item-prev",J="pointer-event",Z=".active",tt=".active.carousel-item",et=".carousel-item",nt=".carousel-item img",it=".carousel-item-next, .carousel-item-prev",ot=".carousel-indicators",rt="[data-slide], [data-slide-to]",st='[data-ride="carousel"]',at={TOUCH:"touch",PEN:"pen"},lt=function(){function r(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(ot),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=r.prototype;return t.next=function(){this._isSliding||this._slide(W)},t.nextWhenVisible=function(){!document.hidden&&g(this._element).is(":visible")&&"hidden"
2504!==g(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(q)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(it)&&(_.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(tt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)g(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?W:q;this._slide(i,this._items[t])}},t.dispose=function(){g(this._element).off(H),g.removeData(this._element,j),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},F,t),_.typeCheckConfig(L,t,U),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&g(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&g(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var e=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))};g(this._element.querySelectorAll(nt)).on(Q.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(g(this._element).on(Q.POINTERDOWN,function(t){return e(t)}),g(this._element).on(Q.POINTERUP,function(t){return i(t)}),this._element.classList.add(J)):(g(this._element).on(Q.TOUCHSTART,function(t){return e(t)}),g(this._element).on(Q.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),g(this._element).on(Q.TOUCHEND,function(t){return i(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===W,i=t===q,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===q?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(tt)),o=g.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return g(this._element).trigger(o),o},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Z));g(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&g(n).addClass(V)}},t._slide=function(t,e){var n,i,o,r=this,s=this._element.querySelector(tt),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(o=t===W?(n=X,i=$,M):(n=z,i=G,K),l&&g(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=g.Event(Q.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(g(this._element).hasClass(Y)){g(l).addClass(i),_.reflow(l),g(s).addClass(n),g(l).addClass(n);var f=parseInt(l.getAttribute("data-interval"),10);this._config.interval=f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,f):this._config.defaultInterval||this._config.interval;var d=_.getTransitionDurationFromElement(s);g(s).one(_.TRANSITION_END,function(){g(l).removeClass(n+" "+i).addClass(V),g(s).removeClass(V+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return g(r._element).trigger(u)},0)}).emulateTransitionEnd(d)}else g(s).removeClass(V),g(l).addClass(V),this._isSliding=!1,g(this._element).trigger(u);h&&this.cycle()}},r._jQueryInterface=function(i){return this.each(function(){var t=g(this).data(j),e=l({},F,g(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new r(this,e),g(this).data(j,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
2504amed "'+n+'"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},r._dataApiClickHandler=function(t){var e=_.getSelectorFromElement(this);if(e){var n=g(e)[0];if(n&&g(n).hasClass(B)){var i=l({},g(n).data(),g(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),r._jQueryInterface.call(g(n),i),o&&g(n).data(j).to(o),t.preventDefault()}}},s(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return F}}]),r}();g(document).on(Q.CLICK_DATA_API,rt,lt._dataApiClickHandler),g(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(st)),e=0,n=t.length;e<n;e++){var i=g(t[e]);lt._jQueryInterface.call(i,i.data())}}),g.fn[L]=lt._jQueryInterface,g.fn[L].Constructor=lt,g.fn[L].noConflict=function(){return g.fn[L]=x,lt._jQueryInterface};var ct="collapse",ht="bs.collapse",ut="."+ht,ft=g.fn[ct],dt={toggle:!0,parent:""},gt={toggle:"boolean",parent:"(string|element)"},_t={SHOW:"show"+ut,SHOWN:"shown"+ut,HIDE:"hide"+ut,HIDDEN:"hidden"+ut,CLICK_DATA_API:"click"+ut+".data-api"},mt="show",pt="collapse",vt="collapsing",yt="collapsed",Et="width",Ct="height",Tt=".show, .collapsing",St='[data-toggle="collapse"]',bt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(St)),i=0,o=n.length;i<o;i++){var r=n[i],s=_.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){g(this._element).hasClass(mt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!g(this._element).hasClass(mt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Tt)).filter(function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(pt)})).length&&(t=null),!(t&&(e=g(t).not(this._selector).data(ht))&&e._isTransitioning))){var i=g.Event(_t.SHOW);if(g(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(g(t).not(this._selector),"hide"),e||g(t).data(ht,null));var o=this._getDimension();g(this._element).removeClass(pt).addClass(vt),this._element.style[o]=0,this._triggerArray.length&&g(this._triggerArray).removeClass(yt).attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(o[0].toUpperCase()+o.slice(1)),s=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){g(n._element).removeClass(vt).addClass(pt).addClass(mt),n._element.style[o]="",n.setTransitioning(!1),g(n._element).trigger(_t.SHOWN)}).emulateTransitionEnd(s),this._element.style[o]=this._element[r]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&g(this._element).hasClass(mt)){var e=g.Event(_t.HIDE);if(g(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",_.reflow(this._element),g(this._element).addClass(vt).removeClass(pt).removeClass(mt);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=_.getSelectorFromElement(r);if(null!==s)g([].slice.call(document.querySelectorAll(s))).hasClass(mt)||g(r).addClass(yt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){t.setTransitioning(!1),g(t._element).removeClass(vt).addClass(pt).trigger(_t.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){g.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},dt,t)).toggle=Boolean(t.toggle),_.typeCheckConfig(ct,t,gt),t},t._getDimension=function(){return g(this._element).hasClass(Et)?Et:Ct},t._getParent=function(){var t,n=this;_.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return g(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var n=g(t).hasClass(mt);e.length&&g(e).toggleClass(yt,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(t){var e=_.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=g(this),e=t.data(ht),n=l({},dt,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(ht,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method n
2504amed "'+i+'"');e[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return dt}}]),a}();g(document).on(_t.CLICK_DATA_API,St,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=g(this),e=_.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));g(i).each(function(){var t=g(this),e=t.data(ht)?"toggle":n.data();bt._jQueryInterface.call(t,e)})}),g.fn[ct]=bt._jQueryInterface,g.fn[ct].Constructor=bt,g.fn[ct].noConflict=function(){return g.fn[ct]=ft,bt._jQueryInterface};var It="dropdown",Dt="bs.dropdown",wt="."+Dt,At=".data-api",Nt=g.fn[It],Ot=new RegExp("38|40|27"),kt={HIDE:"hide"+wt,HIDDEN:"hidden"+wt,SHOW:"show"+wt,SHOWN:"shown"+wt,CLICK:"click"+wt,CLICK_DATA_API:"click"+wt+At,KEYDOWN_DATA_API:"keydown"+wt+At,KEYUP_DATA_API:"keyup"+wt+At},Pt="disabled",Lt="show",jt="dropup",Ht="dropright",Rt="dropleft",xt="dropdown-menu-right",Ft="position-static",Ut='[data-toggle="dropdown"]',Wt=".dropdown form",qt=".dropdown-menu",Mt=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Qt="top-start",Bt="top-end",Vt="bottom-start",Yt="bottom-end",zt="right-start",Xt="left-start",$t={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Gt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Jt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)){var t=c._getParentFromElement(this._element),e=g(this._menu).hasClass(Lt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=g.Event(kt.SHOW,n);if(g(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof u)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=t:_.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&g(t).addClass(Ft),this._popper=new u(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===g(t).closest(Mt).length&&g(document.body).children().on("mouseover",null,g.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),g(this._menu).toggleClass(Lt),g(t).toggleClass(Lt).trigger(g.Event(kt.SHOWN,n))}}}},t.show=function(){if(!(this._element.disabled||g(this._element).hasClass(Pt)||g(this._menu).hasClass(Lt))){var t={relatedTarget:this._element},e=g.Event(kt.SHOW,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)&&g(this._menu).hasClass(Lt)){var t={relatedTarget:this._element},e=g.Event(kt.HIDE,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.HIDDEN,t)))}},t.dispose=function(){g.removeData(this._element,Dt),g(this._element).off(wt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;g(this._element).on(kt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,g(this._element).data(),t),_.typeCheckConfig(It,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=g(this._element.parentNode),e=Vt;return t.hasClass(jt)?(e=Qt,g(this._menu).hasClass(xt)&&(e=Bt)):t.hasClass(Ht)?e=zt:t.hasClass(Rt)?e=Xt:g(this._menu).hasClass(xt)&&(e=Yt),e},t._detectNavbar=function(){return 0<g(this._element).closest(".
2504navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},c._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(Dt);if(t||(t=new c(this,"object"==typeof e?e:null),g(this).data(Dt,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Ut)),n=0,i=e.length;n<i;n++){var o=c._getParentFromElement(e[n]),r=g(e[n]).data(Dt),s={relatedTarget:e[n]};if(t&&"click"===t.type&&(s.clickEvent=t),r){var a=r._menu;if(g(o).hasClass(Lt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&g.contains(o,t.target))){var l=g.Event(kt.HIDE,s);g(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),e[n].setAttribute("aria-expanded","false"),g(a).removeClass(Lt),g(o).removeClass(Lt).trigger(g.Event(kt.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=_.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||g(t.target).closest(qt).length)):Ot.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!g(this).hasClass(Pt))){var e=c._getParentFromElement(this),n=g(e).hasClass(Lt);if(n&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var o=i.indexOf(t.target);38===t.which&&0<o&&o--,40===t.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===t.which){var r=e.querySelector(Ut);g(r).trigger("focus")}g(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return $t}},{key:"DefaultType",get:function(){return Gt}}]),c}();g(document).on(kt.KEYDOWN_DATA_API,Ut,Jt._dataApiKeydownHandler).on(kt.KEYDOWN_DATA_API,qt,Jt._dataApiKeydownHandler).on(kt.CLICK_DATA_API+" "+kt.KEYUP_DATA_API,Jt._clearMenus).on(kt.CLICK_DATA_API,Ut,function(t){t.preventDefault(),t.stopPropagation(),Jt._jQueryInterface.call(g(this),"toggle")}).on(kt.CLICK_DATA_API,Wt,function(t){t.stopPropagation()}),g.fn[It]=Jt._jQueryInterface,g.fn[It].Constructor=Jt,g.fn[It].noConflict=function(){return g.fn[It]=Nt,Jt._jQueryInterface};var Zt="modal",te="bs.modal",ee="."+te,ne=g.fn[Zt],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},oe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},re={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},se="modal-dialog-scrollable",ae="modal-scrollbar-measure",le="modal-backdrop",ce="modal-open",he="fade",ue="show",fe=".modal-dialog",de=".modal-body",ge='[data-toggle="modal"]',_e='[data-dismiss="modal"]',me=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pe=".sticky-top",ve=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(fe),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){g(this._element).hasClass(he)&&(this._isTransitioning=!0);var n=g.Event(re.SHOW,{relatedTarget:t});g(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g(this._element).on(re.CLICK_DISMISS,_e,function(t){return e.hide(t)}),g(this._dialog).on(re.MOUSEDOWN_DISMISS,function(){g(e._element).one(re.MOUSEUP_DISMISS,function(t){g(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=g.Event(re.HIDE);if(g(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=g(this._element).hasClass(he);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g(document).off(re.FOCUSIN),g(this._element).removeClass(ue),g(this._element).off(re.CLICK_DISMISS),g(this._dialog).off(re.MOUSEDOWN_DISMISS),i){var o=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return g(t).off(ee)}),g(document).off(re.FOCUSIN),g.removeData(this._element,te),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ie,t),_.typeCheckConfig(Zt,t,oe),t},t._showElement=function(t){var e=this,n=g(this._element).hasClass(he);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),g(this._dialog).hasClass(se)?this._dialog.querySelector(de).scrollTop=0:this._element.scrollTop=0,n&&_.reflow(this._element),g(this._element).addClass(ue),this._config.focus&&this._enforceFocus();
2504var i=g.Event(re.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,g(e._element).trigger(i)};if(n){var r=_.getTransitionDurationFromElement(this._dialog);g(this._dialog).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;g(document).off(re.FOCUSIN).on(re.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===g(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?g(this._element).on(re.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||g(this._element).off(re.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?g(window).on(re.RESIZE,function(t){return e.handleUpdate(t)}):g(window).off(re.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){g(document.body).removeClass(ce),t._resetAdjustments(),t._resetScrollbar(),g(t._element).trigger(re.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(g(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=g(this._element).hasClass(he)?he:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=le,n&&this._backdrop.classList.add(n),g(this._backdrop).appendTo(document.body),g(this._element).on(re.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&_.reflow(this._backdrop),g(this._backdrop).addClass(ue),!t)return;if(!n)return void t();var i=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){g(this._backdrop).removeClass(ue);var o=function(){e._removeBackdrop(),t&&t()};if(g(this._element).hasClass(he)){var r=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(me)),e=[].slice.call(document.querySelectorAll(pe));g(t).each(function(t,e){var n=e.style.paddingRight,i=g(e).css("padding-right");g(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),g(e).each(function(t,e){var n=e.style.marginRight,i=g(e).css("margin-right");g(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=g(document.body).css("padding-right");g(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}g(document.body).addClass(ce)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(me));g(t).each(function(t,e){var n=g(e).data("padding-right");g(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+pe));g(e).each(function(t,e){var n=g(e).data("margin-right");"undefined"!=typeof n&&g(e).css("margin-right",n).removeData("margin-right")});var n=g(document.body).data("padding-right");g(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=ae,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=g(this).data(te),e=l({},ie,g(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new o(this,e),g(this).data(te,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
2504amed "'+n+'"');t[n](i)}else e.show&&t.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ie}}]),o}();g(document).on(re.CLICK_DATA_API,ge,function(t){var e,n=this,i=_.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=g(e).data(te)?"toggle":l({},g(e).data(),g(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=g(e).one(re.SHOW,function(t){t.isDefaultPrevented()||r.one(re.HIDDEN,function(){g(n).is(":visible")&&n.focus()})});ve._jQueryInterface.call(g(e),o,this)}),g.fn[Zt]=ve._jQueryInterface,g.fn[Zt].Constructor=ve,g.fn[Zt].noConflict=function(){return g.fn[Zt]=ne,ve._jQueryInterface};var ye=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Ee={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Se(t,s,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(s),l=[].slice.call(n.body.querySelectorAll("*")),i=function(t,e){var n=l[t],i=n.nodeName.toLowerCase();if(-1===a.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var o=[].slice.call(n.attributes),r=[].concat(s["*"]||[],s[i]||[]);o.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===ye.indexOf(n)||Boolean(t.nodeValue.match(Ce)||t.nodeValue.match(Te));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1})(t,r)||n.removeAttribute(t.nodeName)})},o=0,r=l.length;o<r;o++)i(o);return n.body.innerHTML}var be="tooltip",Ie="bs.tooltip",De="."+Ie,we=g.fn[be],Ae="bs-tooltip",Ne=new RegExp("(^|\\s)"+Ae+"\\S+","g"),Oe=["sanitize","whiteList","sanitizeFn"],ke={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Pe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Le={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Ee},je="show",He="out",Re={HIDE:"hide"+De,HIDDEN:"hidden"+De,SHOW:"show"+De,SHOWN:"shown"+De,INSERTED:"inserted"+De,CLICK:"click"+De,FOCUSIN:"focusin"+De,FOCUSOUT:"focusout"+De,MOUSEENTER:"mouseenter"+De,MOUSELEAVE:"mouseleave"+De},xe="fade",Fe="show",Ue=".tooltip-inner",We=".arrow",qe="hover",Me="focus",Ke="click",Qe="manual",Be=function(){function i(t,e){if("undefined"==typeof u)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=g(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.getTipElement()).hasClass(Fe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),g.removeData(this.element,this.constructor.DATA_KEY),g(this.element).off(this.constructor.EVENT_KEY),g(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&g(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===g(this.element).css("display"))throw new Error("Please use show on visible elements");var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var n=_.findShadowRoot(this.element),i=g.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=_.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&g(o).addClass(xe);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();g(o).data(this.constructor.DATA_KEY,this),g.contains(this.element.ownerDocument.documentElement,this.tip)||g(o).appendTo(l),g(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,o,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:We}
2504,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),g(o).addClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().on("mouseover",null,g.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,g(e.element).trigger(e.constructor.Event.SHOWN),t===He&&e._leave(null,e)};if(g(this.tip).hasClass(xe)){var h=_.getTransitionDurationFromElement(this.tip);g(this.tip).one(_.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=g.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==je&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),g(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(g(this.element).trigger(i),!i.isDefaultPrevented()){if(g(n).removeClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),this._activeTrigger[Ke]=!1,this._activeTrigger[Me]=!1,this._activeTrigger[qe]=!1,g(this.tip).hasClass(xe)){var r=_.getTransitionDurationFromElement(n);g(n).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Ae+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(Ue)),this.getTitle()),g(t).removeClass(xe+" "+Fe)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Se(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:_.isElement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getAttachment=function(t){return Pe[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Qe){var e=t===qe?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===qe?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),g(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Me:qe]=!0),g(e.getTipElement()).hasClass(Fe)||e._hoverState===je?e._hoverState=je:(clearTimeout(e._timeout),e._hoverState=je,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===je&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Me:qe]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=He,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===He&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=g(this.element).data();return Object.keys(e).forEach(function(t){-1!==Oe.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_.typeCheckConfig(be,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ne);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(g(t).removeClass(xe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ie),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ie,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method n
2504amed "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Le}},{key:"NAME",get:function(){return be}},{key:"DATA_KEY",get:function(){return Ie}},{key:"Event",get:function(){return Re}},{key:"EVENT_KEY",get:function(){return De}},{key:"DefaultType",get:function(){return ke}}]),i}();g.fn[be]=Be._jQueryInterface,g.fn[be].Constructor=Be,g.fn[be].noConflict=function(){return g.fn[be]=we,Be._jQueryInterface};var Ve="popover",Ye="bs.popover",ze="."+Ye,Xe=g.fn[Ve],$e="bs-popover",Ge=new RegExp("(^|\\s)"+$e+"\\S+","g"),Je=l({},Be.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ze=l({},Be.DefaultType,{content:"(string|element|function)"}),tn="fade",en="show",nn=".popover-header",on=".popover-body",rn={HIDE:"hide"+ze,HIDDEN:"hidden"+ze,SHOW:"show"+ze,SHOWN:"shown"+ze,INSERTED:"inserted"+ze,CLICK:"click"+ze,FOCUSIN:"focusin"+ze,FOCUSOUT:"focusout"+ze,MOUSEENTER:"mouseenter"+ze,MOUSELEAVE:"mouseleave"+ze},sn=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){g(this.getTipElement()).addClass($e+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setContent=function(){var t=g(this.getTipElement());this.setElementContent(t.find(nn),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(on),e),t.removeClass(tn+" "+en)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ge);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ye),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ye,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Je}},{key:"NAME",get:function(){return Ve}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return ze}},{key:"DefaultType",get:function(){return Ze}}]),i}(Be);g.fn[Ve]=sn._jQueryInterface,g.fn[Ve].Constructor=sn,g.fn[Ve].noConflict=function(){return g.fn[Ve]=Xe,sn._jQueryInterface};var an="scrollspy",ln="bs.scrollspy",cn="."+ln,hn=g.fn[an],un={offset:10,method:"auto",target:""},fn={offset:"number",method:"string",target:"(string|element)"},dn={ACTIVATE:"activate"+cn,SCROLL:"scroll"+cn,LOAD_DATA_API:"load"+cn+".data-api"},gn="dropdown-item",_n="active",mn='[data-spy="scroll"]',pn=".nav, .list-group",vn=".nav-link",yn=".nav-item",En=".list-group-item",Cn=".dropdown",Tn=".dropdown-item",Sn=".dropdown-toggle",bn="offset",In="position",Dn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+vn+","+this._config.target+" "+En+","+this._config.target+" "+Tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g(this._scrollElement).on(dn.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?bn:In,o="auto"===this._config.method?t:this._config.method,r=o===In?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=_.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[g(e)[o]().top+r,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
2504).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){g.removeData(this._element,ln),g(this._scrollElement).off(cn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},un,"object"==typeof t&&t?t:{})).target){var e=g(t.target).attr("id");e||(e=_.getUID(an),g(t.target).attr("id",e)),t.target="#"+e}return _.typeCheckConfig(an,t,fn),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=g([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(gn)?(n.closest(Cn).find(Sn).addClass(_n),n.addClass(_n)):(n.addClass(_n),n.parents(pn).prev(vn+", "+En).addClass(_n),n.parents(pn).prev(yn).children(vn).addClass(_n)),g(this._scrollElement).trigger(dn.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(_n)}).forEach(function(t){return t.classList.remove(_n)})},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(ln);if(t||(t=new n(this,"object"==typeof e&&e),g(this).data(ln,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return un}}]),n}();g(window).on(dn.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(mn)),e=t.length;e--;){var n=g(t[e]);Dn._jQueryInterface.call(n,n.data())}}),g.fn[an]=Dn._jQueryInterface,g.fn[an].Constructor=Dn,g.fn[an].noConflict=function(){return g.fn[an]=hn,Dn._jQueryInterface};var wn="bs.tab",An="."+wn,Nn=g.fn.tab,On={HIDE:"hide"+An,HIDDEN:"hidden"+An,SHOW:"show"+An,SHOWN:"shown"+An,CLICK_DATA_API:"click"+An+".data-api"},kn="dropdown-menu",Pn="active",Ln="disabled",jn="fade",Hn="show",Rn=".dropdown",xn=".nav, .list-group",Fn=".active",Un="> li > .active",Wn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',qn=".dropdown-toggle",Mn="> .dropdown-menu .active",Kn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(Pn)||g(this._element).hasClass(Ln))){var t,i,e=g(this._element).closest(xn)[0],o=_.getSelectorFromElement(this._element);if(e){var r="UL"===e.nodeName||"OL"===e.nodeName?Un:Fn;i=(i=g.makeArray(g(e).find(r)))[i.length-1]}var s=g.Event(On.HIDE,{relatedTarget:this._element}),a=g.Event(On.SHOW,{relatedTarget:i});if(i&&g(i).trigger(s),g(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,e);var l=function(){var t=g.Event(On.HIDDEN,{relatedTarget:n._element}),e=g.Event(On.SHOWN,{relatedTarget:i});g(i).trigger(t),g(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){g.removeData(this._element,wn),this._element=null},t._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?g(e).children(Fn):g(e).find(Un))[0],r=n&&o&&g(o).hasClass(jn),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=_.getTransitionDurationFromElement(o);g(o).removeClass(Hn).one(_.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){g(e).removeClass(Pn);var i=g(e.parentNode).find(Mn)[0];i&&g(i).removeClass(Pn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(g(t).addClass(Pn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_.reflow(t),t.classList.contains(jn)&&t.classList.add(Hn),t.parentNode&&g(t.parentNode).hasClass(kn)){var o=g(t).closest(Rn)[0];if(o){var r=[].slice.call(o.querySelectorAll(qn));g(r).addClass(Pn)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(wn);if(e||(e=new i(this),t.data(wn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
2504amed "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();g(document).on(On.CLICK_DATA_API,Wn,function(t){t.preventDefault(),Kn._jQueryInterface.call(g(this),"show")}),g.fn.tab=Kn._jQueryInterface,g.fn.tab.Constructor=Kn,g.fn.tab.noConflict=function(){return g.fn.tab=Nn,Kn._jQueryInterface};var Qn="toast",Bn="bs.toast",Vn="."+Bn,Yn=g.fn[Qn],zn={CLICK_DISMISS:"click.dismiss"+Vn,HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn},Xn="fade",$n="hide",Gn="show",Jn="showing",Zn={animation:"boolean",autohide:"boolean",delay:"number"},ti={animation:!0,autohide:!0,delay:500},ei='[data-dismiss="toast"]',ni=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t=this;g(this._element).trigger(zn.SHOW),this._config.animation&&this._element.classList.add(Xn);var e=function(){t._element.classList.remove(Jn),t._element.classList.add(Gn),g(t._element).trigger(zn.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove($n),this._element.classList.add(Jn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Gn)&&(g(this._element).trigger(zn.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Gn)&&this._element.classList.remove(Gn),g(this._element).off(zn.CLICK_DISMISS),g.removeData(this._element,Bn),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},ti,g(this._element).data(),"object"==typeof t&&t?t:{}),_.typeCheckConfig(Qn,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;g(this._element).on(zn.CLICK_DISMISS,ei,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add($n),g(t._element).trigger(zn.HIDDEN)};if(this._element.classList.remove(Gn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(Bn);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Bn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Zn}},{key:"Default",get:function(){return ti}}]),i}();g.fn[Qn]=ni._jQueryInterface,g.fn[Qn].Constructor=ni,g.fn[Qn].noConflict=function(){return g.fn[Qn]=Yn,ni._jQueryInterface},function(){if("undefined"==typeof g)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=g.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=_,t.Alert=p,t.Button=P,t.Carousel=lt,t.Collapse=bt,t.Dropdown=Jt,t.Modal=ve,t.Popover=sn,t.Scrollspy=Dn,t.Tab=Kn,t.Toast=ni,t.Tooltip=Be,Object.defineProperty(t,"__esModule",{value:!0})}); 2505//# sourceMappingURL=bootstrap.min.js.map 2506;var $ = jQuery.noConflict(); 2507jQuery(document).ready(function( $ ) { 2508 2509 2510/*Admisiones proceso de inscripciones*/ 2511$('.proceso-admisiones-paso-enlace-1').click(function(){ 2512 $('.proceso-admisiones-paso-1').show(); 2513 $('.proceso-admisiones-paso-2').hide(); 2514 $('.proceso-admisiones-paso-3').hide(); 2515 $('.proceso-admisiones-paso-4').hide(); 2516}); 2517$('.proceso-admisiones-paso-enlace-2').click(function(){ 2518 $('.proceso-admisiones-paso-2').show(); 2519 $('.proceso-admisiones-paso-1').hide(); 2520 $('.proceso-admisiones-paso-3').hide(); 2521 $('.proceso-admisiones-paso-4').hide(); 2522}); 2523$('.proceso-admisiones-paso-enlace-3').click(function(){ 2524 $('.proceso-admisiones-paso-3').show(); 2525 $('.proceso-admisiones-paso-1').hide(); 2526 $('.proceso-admisiones-paso-2').hide(); 2527 $('.proceso-admisiones-paso-4').hide(); 2528}); 2529$('.proceso-admisiones-paso-enlace-4').click(function(){ 2530 $('.proceso-admisiones-paso-4').show(); 2531 $('.proceso-admisiones-paso-1').hide(); 2532 $('.proceso-admisiones-paso-2').hide(); 2533 $('.proceso-admisiones-paso-3').hide(); 2534}); 2535 2536 2537var click_infobienestar=$('.mas-semillero-deportivo'); 2538 click_infobienestar.on('click', function(e){ 2539 e.preventDefault(); 2540 var $this = $(this), 2541 padrecheck = $this.parents('.info-semillero-deportivo'), 2542 info_element = $('.info-semillero-deportivo'), 2543 content_element = $('.contacto-semillero-deportivo'); 2544 2545 if(!padrecheck.hasClass('active')){ 2546 2547 content_element.slideUp(400, function(){ 2548 info_element.removeClass('active'); 2549 }); 2550 padrecheck.find('.contacto-semillero-deportivo').slideDown(400, function(){ 2551 padrecheck.addClass('active'); 2552 }); 2553 2554 }else{ 2555 content_element.slideUp(400, function(){ 2556 info_element.removeClass('active'); 2557 }); 2558 } 2559 2560 }); 2561 2562 2563 2564 2565}) 2566 2567;
vendor: 39,680 bytes, lines 2567-2572
2567/*! 2568 * Bootstrap v3.4.1 (https://getbootstrap.com/) 2569 * Copyright 2011-2019 Twitter, Inc. 2570 * Licensed under the MIT license 2571 */ 2572if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3<e[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(n){"use strict";n.fn.emulateTransitionEnd=function(t){var e=!1,i=this;n(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||n(i).trigger(n.support.transition.end)},t),this},n(function(){n.support.transition=function o(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(t.style[i]!==undefined)return{end:e[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(s){"use strict";var e='[data-dismiss="alert"]',a=function(t){s(t).on("click",e,this.close)};a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=s(this),i=e.attr("data-target");i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=s(document).find(i);function n(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=e.closest(".alert")),o.trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),s.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(a.TRANSITION_DURATION):n())};var t=s.fn.alert;s.fn.alert=function o(i){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof i&&e[i].call(t)})},s.fn.alert.Constructor=a,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(s){"use strict";var n=function(t,e){this.$element=s(t),this.options=s.extend({},n.DEFAULTS,e),this.isLoading=!1};function i(o){return this.each(function(){var t=s(this),e=t.data("bs.button"),i="object"==typeof o&&o;e||t.data("bs.button",e=new n(this,i)),"toggle"==o?e.toggle():o&&e.setState(o)})}n.VERSION="3.4.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var e="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[o]()),setTimeout(s.proxy(function(){i[o](null==n[t]?this.options[t]:n[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=s.fn.button;s.fn.button=i,s.fn.button.Constructor=n,s.fn.button.noConflict=function(){return s.fn.button=t,this},s(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=s(t.target).closest(".btn");i.call(e,"toggle"),s(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),e.is("input,button")?e.trigger("focus"):e.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){s(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(p){"use strict";var c=function(t,e){this.$element=p(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",p.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",p.proxy(this.pause,this)).on("mouseleave.bs.carousel",p.proxy(this.cycle,this))};function r(n){return this.each(function(){var t=p(this),e=t.data("bs.carousel"),i=p.extend({},c.DEFAULTS,t.data(),"object"==typeof n&&n),o="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new c(this,i)),"number"==typeof n?e.to(n):o?e[o]():i.interval&&e.pause().cycle()})}c.VERSION="3.4.1",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(p.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var o=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(o)},c.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&p.support.transition&&(this.$element.trigger(p.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var i=this.$element.find(".item.active"),o=e||this.getItemForDirection(t,i),n=this.interval,s="next"==t?"left":"right",a=this;if(o.hasClass("active"))return this.sliding=!1;var r=o[0],l=p.Event("slide.bs.carousel",{relatedTarget:r,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,n&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=p(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var d=p.Event("slid.bs.carousel",{relatedTarget:r,direction:s});return p.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",function(){o.removeClass([t,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(d)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),n&&this.cycle(),this}};var t=p.fn.carousel;p.fn.carousel=r,p.fn.carousel.Constructor=c,p.fn.carousel.noConflict=function(){return p.fn.carousel=t,this};var e=function(t){var e=p(this),i=e.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=e.attr("data-target")||i,n=p(document).find(o);if(n.hasClass("carousel")){var s=p.extend({},n.data(),e.data()),a=e.attr("data-slide-to");a&&(s.interval=!1),r.call(n,s),a&&n.data("bs.carousel").to(a),t.preventDefault()}};p(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),p(window).on("load",function(){p('[data-ride="carousel"]').each(function(){var t=p(this);r.call(t,t.data())})})}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.options=a.extend({},r.DEFAULTS,e),this.$trigger=a('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var e,i=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(i)}function l(o){return this.each(function(){var t=a(this),e=t.data("bs.collapse"),i=a.extend({},r.DEFAULTS,t.data(),"object"==typeof o&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new r(this,i)),"string"==typeof o&&e[o]()})}r.VERSION="3.4.1",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var i=a.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){e&&e.length&&(l.call(e,"hide"),t||e.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var n=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return n.call(this);var s=a.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[o](this.$element[0][s])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=a.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return i.call(this);this.$element[e](0).one("bsTransitionEnd",a.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(t,e){var i=a(e);this.addAriaAndCollapsedClass(n(i),i)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=a.fn.collapse;a.fn.collapse=l,a.fn.collapse.Constructor=r,a.fn.collapse.noConflict=function(){return a.fn.collapse=t,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=a(this);e.attr("data-target")||t.preventDefault();var i=n(e),o=i.data("bs.collapse")?"toggle":e.data();l.call(i,o)})}(jQuery),function(a){"use strict";var r='[data-toggle="dropdown"]',o=function(t){a(t).on("click.bs.dropdown",this.toggle)};function l(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==e?a(document).find(e):null;return i&&i.length?i:t.parent()}function s(o){o&&3===o.which||(a(".dropdown-backdrop").remove(),a(r).each(function(){var t=a(this),e=l(t),i={relatedTarget:this};e.hasClass("open")&&(o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&a.contains(e[0],o.target)||(e.trigger(o=a.Event("hide.bs.dropdown",i)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",i)))))}))}o.VERSION="3.4.1",o.prototype.toggle=function(t){var e=a(this);if(!e.is(".disabled, :disabled")){var i=l(e),o=i.hasClass("open");if(s(),!o){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",s);var n={relatedTarget:this};if(i.trigger(t=a.Event("show.bs.dropdown",n)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(a.Event("shown.bs.dropdown",n))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=a(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=l(e),o=i.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&i.find(r).trigger("focus"),e.trigger("click");var n=i.find(".dropdown-menu li:not(.disabled):visible a");if(n.length){var s=n.index(t.target);38==t.which&&0<s&&s--,40==t.which&&s<n.length-1&&s++,~s||(s=0),n.eq(s).trigger("focus")}}}};var t=a.fn.dropdown;a.fn.dropdown=function e(i){return this.each(function(){var t=a(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new o(this)),"string"==typeof i&&e[i].call(t)})},a.fn.dropdown.Constructor=o,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=t,this},a(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(a){"use strict";var s=function(t,e){this.options=e,this.$body=a(document.body),this.$element=a(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function r(o,n){return this.each(function(){var t=a(this),e=t.data("bs.modal"),i=a.extend({},s.DEFAULTS,t.data(),"object"==typeof o&&o);e||t.data("bs.modal",e=new s(this,i)),"string"==typeof o?e[o](n):i.show&&e.show(n)})}s.VERSION="3.4.1",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},s.prototype.show=function(i){var o=this,t=a.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){a(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=a.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:i});t?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(s.TRANSITION_DURATION):o.$element.trigger("focus").trigger(e)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=a.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var e=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=a.support.transition&&i;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){e.removeBackdrop(),t&&t()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):n()}else t&&t()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),a(this.fixedContent).each(function(t,e){var i=e.style.paddingRight,o=a(e).css("padding-right");a(e).data("padding-right",i).css("padding-right",parseFloat(o)+n+"px")}))},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),a(this.fixedContent).each(function(t,e){var i=a(e).data("padding-right");a(e).removeData("padding-right"),e.style.paddingRight=i||""})},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=a.fn.modal;a.fn.modal=r,a.fn.modal.Constructor=s,a.fn.modal.noConflict=function(){return a.fn.modal=t,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=a(this),i=e.attr("href"),o=e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""),n=a(document).find(o),s=n.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(i)&&i},n.data(),e.data());e.is("a")&&t.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),r.call(n,s,this)})}(jQuery),function(g){"use strict";var o=["sanitize","whiteList","sanitizeFn"],a=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function u(t,e){var i=t.nodeName.toLowerCase();if(-1!==g.inArray(i,e))return-1===g.inArray(i,a)||Boolean(t.nodeValue.match(r)||t.nodeValue.match(l));for(var o=g(e).filter(function(t,e){return e instanceof RegExp}),n=0,s=o.length;n<s;n++)if(i.match(o[n]))return!0;return!1}function n(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=t;for(var n=g.map(e,function(t,e){return e}),s=g(o.body).find("*"),a=0,r=s.length;a<r;a++){var l=s[a],h=l.nodeName.toLowerCase();if(-1!==g.inArray(h,n))for(var d=g.map(l.attributes,function(t){return t}),p=[].concat(e["*"]||[],e[h]||[]),c=0,f=d.length;c<f;c++)u(d[c],p)||l.removeAttribute(d[c].nodeName);else l.parentNode.removeChild(l)}return o.body.innerHTML}var m=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};m.VERSION="3.4.1",m.TRANSITION_DURATION=150,m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},m.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&g(document).find(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s=o[n];if("click"==s)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",r="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){var e=this.$element.data();for(var i in e)e.hasOwnProperty(i)&&-1!==g.inArray(i,o)&&delete e[i];return(t=g.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},m.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&g.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},m.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,o=this.tip(),n=this.getUID(this.type);this.setContent(),o.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(s);r&&(s=s.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(g(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(r){var p=s,c=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>c.bottom?"top":"top"==s&&l.top-d<c.top?"bottom":"right"==s&&l.right+h>c.width?"left":"left"==s&&l.left-h<c.left?"right":s,o.removeClass(p).addClass(s)}var f=this.getCalculatedOffset(s,l,h,d);this.applyPlacement(f,s);var u=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};g.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",u).emulateTransitionEnd(m.TRANSITION_DURATION):u()}},m.prototype.applyPlacement=function(t,e){var i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,g.offset.setOffset(i[0],g.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in");var r=i[0].offsetWidth,l=i[0].offsetHeight;"top"==e&&l!=n&&(t.top=t.top+n-l);var h=this.getViewportAdjustedDelta(e,t,r,l);h.left?t.left+=h.left:t.top+=h.top;var d=/top|bottom/.test(e),p=d?2*h.left-o+r:2*h.top-n+l,c=d?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(p,i[0][c],d)},m.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},m.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},m.prototype.hide=function(t){var e=this,i=g(this.$tip),o=g.Event("hide.bs."+this.type);function n(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),g.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",n).emulateTransitionEnd(m.TRANSITION_DURATION):n(),this.hoverState=null,this},m.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},m.prototype.hasContent=function(){return this.getTitle()},m.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,o=e.getBoundingClientRect();null==o.width&&(o=g.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var n=window.SVGElement&&e instanceof window.SVGElement,s=i?{top:0,left:0}:n?null:t.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},r=i?{width:g(window).width(),height:g(window).height()}:null;return g.extend({},o,a,r,s)},m.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},m.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-s-a.scroll,l=e.top+s-a.scroll+o;r<a.top?n.top=a.top-r:l>a.top+a.height&&(n.top=a.top+a.height-l)}else{var h=e.left-s,d=e.left+s+i;h<a.left?n.left=a.left-h:d>a.right&&(n.left=a.left+a.width-d)}return n},m.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},m.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=g.fn.tooltip;g.fn.tooltip=function i(o){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new m(this,i)),"string"==typeof o&&e[o]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=e,this}}(jQuery),function(n){"use strict";var s=function(t,e){this.init("popover",t,e)};if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.4.1",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var o=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function e(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(s){"use strict";function n(t,e){this.$body=s(document.body),this.$scrollElement=s(t).is(document.body)?s(window):s(t),this.options=s.extend({},n.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s.proxy(this.process,this)),this.refresh(),this.process()}function e(o){return this.each(function(){var t=s(this),e=t.data("bs.scrollspy"),i="object"==typeof o&&o;e||t.data("bs.scrollspy",e=new n(this,i)),"string"==typeof o&&e[o]()})}n.VERSION="3.4.1",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var t=this,o="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),s.isWindow(this.$scrollElement[0])||(o="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=s(this),e=t.data("target")||t.attr("href"),i=/^#./.test(e)&&s(e);return i&&i.length&&i.is(":visible")&&[[i[o]().top+n,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},n.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),o<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)a!=s[t]&&e>=n[t]&&(n[t+1]===undefined||e<n[t+1])&&this.activate(s[t])},n.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=s(e).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},n.prototype.clear=function(){s(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=s.fn.scrollspy;s.fn.scrollspy=e,s.fn.scrollspy.Constructor=n,s.fn.scrollspy.noConflict=function(){return s.fn.scrollspy=t,this},s(window).on("load.bs.scrollspy.data-api",function(){s('[data-spy="scroll"]').each(function(){var t=s(this);e.call(t,t.data())})})}(jQuery),function(r){"use strict";var a=function(t){this.element=r(t)};function e(i){return this.each(function(){var t=r(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof i&&e[i]()})}a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=e.find(".active:last a"),n=r.Event("hide.bs.tab",{relatedTarget:t[0]}),s=r.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(n),t.trigger(s),!s.isDefaultPrevented()&&!n.isDefaultPrevented()){var a=r(document).find(i);this.activate(t.closest("li"),e),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},a.prototype.activate=function(t,e,i){var o=e.find("> .active"),n=i&&r.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&n?o.one("bsTransitionEnd",s).emulateTransitionEnd(a.TRANSITION_DURATION):s(),o.removeClass("in")};var t=r.fn.tab;r.fn.tab=e,r.fn.tab.Constructor=a,r.fn.tab.noConflict=function(){return r.fn.tab=t,this};var i=function(t){t.preventDefault(),e.call(r(this),"show")};r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(l){"use strict";var h=function(t,e){this.options=l.extend({},h.DEFAULTS,e);var i=this.options.target===h.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(o){return this.each(function(){var t=l(this),e=t.data("bs.affix"),i="object"==typeof o&&o;e||t.data("bs.affix",e=new h(this,i)),"string"==typeof o&&e[o]()})}h.VERSION="3.4.1",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(t,e,i,o){var n=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=s.top)&&"bottom":!(n+a<=t-o)&&"bottom";var r=null==this.affixed,l=r?n:s.top;return null!=i&&n<=i?"top":null!=o&&t-o<=l+(r?a:e)&&"bottom"},h.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(h.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},h.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,o=e.bottom,n=Math.max(l(document).height(),l(document.body).height());"object"!=typeof e&&(o=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof o&&(o=e.bottom(this.$element));var s=this.getState(n,t,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var a="affix"+(s?"-"+s:""),r=l.Event(a+".bs.affix");if(this.$element.trigger(r),r.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(a).trigger(a.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:n-t-o})}};var t=l.fn.affix;l.fn.affix=i,l.fn.affix.Constructor=h,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery);
2572 2573;((f,v,b,j)=>{function t(){e&&e.apply(this,arguments),e=null}var e;j=f.extend({$div:null,settings:null,store:null,chatbox:!1,showed_at:0,is_ready:!1,is_mobile:!!navigator.userAgent.match(/Android|iPhone|BlackBerry|IEMobile|Opera Mini/i),can_qr:v.QrCreator&&"function"==typeof QrCreator.render},j),(v.joinchat_obj=j).$=function(t){return f(t||this.$div,this.$div)},j.send_event=function(t){if((t=f.extend({event_category:"JoinChat",event_label:"",event_action:"",chat_channel:"whatsapp",chat_id:"--",is_mobile:this.is_mobile?"yes":"no",page_location:location.href,page_title:b.title||"no title"},t)).event_label=t.event_label||t.link||"",t.event_action=t.event_action||t.chat_channel+": "+t.chat_id,delete t.link,!1!==f(b).triggerHandler("joinchat:event",[t])){var e=v[this.settings.data_layer]||v[v.gtm4wp_datalayer_name]||v.dataLayer;if("object"==typeof e){"undefined"==typeof gtag&&(v.gtag=function(){e.push(arguments)});var n=this.settings.ga_event||"generate_lead",i=f.extend({transport_type:"beacon"},t),s=(f.each(i,function(t,e){"page_location"==t?i[t]=e.substring(0,1e3):"page_referrer"==t?i[t]=e.substring(0,420):"page_title"==t?i[t]=e.substring(0,300):"string"==typeof e&&(i[t]=e.substring(0,100))}),[]),a=function(t){s.includes(t)||(t.startsWith("G-")||t.startsWith("GT-"))&&(s.push(t),gtag("event",n,f.extend({send_to:t},i)))};if(v.google_tag_data&&google_tag_data.tidr&&google_tag_data.tidr.destination)for(var o in google_tag_data.tidr.destination)a(o);e.forEach(function(t){"config"==t[0]&&t[1]&&a(t[1])}),this.settings.gads&>ag("event","conversion",{send_to:this.settings.gads})}var h=t.event_category;delete t.event_category,"object"==typeof e&&e.push(f.extend({event:h},t)),"function"==typeof fbq&&fbq("trackCustom",h,t)}},j.whatsapp_link=function(t,e,n){return e=void 0!==e?e:this.settings.message_send||"",((n=void 0!==n?n:this.settings.whatsapp_web&&!this.is_mobile)?"https://web.whatsapp.com/send?phone=":"https://wa.me/")+encodeURIComponent(t||this.settings.telephone)+(e?(n?"&text=":"?text=")+encodeURIComponent(e):"")},j.show=function(t){this.$div.addClass("joinchat--show"+(t?" joinchat--tooltip":""))},j.hide=function(){this.$div.removeClass("joinchat--show")},j.chatbox_show=function(){this.chatbox||(this.chatbox=!0,this.showed_at=Date.now(),this.$div.addClass("joinchat--chatbox"),this.settings.message_badge&&this.$(".joinchat__badge").hasClass("joinchat__badge--in")&&this.$(".joinchat__badge").toggleClass("joinchat__badge--in joinchat__badge--out"),f(b).trigger("joinchat:show"))},j.chatbox_hide=function(){this.chatbox&&(this.chatbox=!1,this.$div.removeClass("joinchat--chatbox joinchat--tooltip"),this.settings.message_badge&&this.$(".joinchat__badge").removeClass("joinchat__badge--out"),f(b).trigger("joinchat:hide"))},j.save_hash=function(t){!this.settings.message_hash||this.settings.message_delay<0&&!t||-1===(t=(this.store.getItem("joinchat_hashes")||"").split(",").filter(Boolean)).indexOf(this.settings.message_hash)&&(t.push(this.settings.message_hash),this.store.setItem("joinchat_hashes",t.join(",")))},j.open_whatsapp=function(t,e){t=t||this.settings.telephone,e=void 0!==e?e:this.settings.message_send||"";t={link:this.whatsapp_link(t,e),chat_channel:"whatsapp",chat_id:t,chat_message:e},e=new RegExp("^https?://(wa.me|(api|web|chat).whatsapp.com|"+location.hostname.replace(".",".")+")/.*","i");!1!==f(b).triggerHandler("joinchat:open",[t])&&(e.test(t.link)?(this.send_event(t),v.open(t.link,"joinchat","noopener")):console.error("Joinchat: the link doesn't seem safe, it must point to the current domain or whatsapp.com"))},j.optin=function(){return!this.$div.hasClass("joinchat--optout")},j.use_qr=function(){return!!this.settings.qr&&this.can_qr&&!this.is_mobile},j.qr=function(t,e){var n=b.createElement("CANVAS");return QrCreator.render(f.extend({text:t,radius:.4,background:"#FFF",size:200},this.settings.qr||{},e||{}),n),n},e=function(){if(j.$div=f(".joinchat"),j.$div.length){j.settings=j.$div.data("settings");try{localStorage.setItem("test",1),localStorage.removeItem("test"),j.store=localStorage}catch(t){j.store={_data:{},setItem:function(t,e){this._data[t]=String(e)},getItem:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}}}if("object"!=typeof j.settings)try{j.settings=JSON.parse(j.$div.attr("data-settings"))}catch(t){j.settings=void 0,console.error("Joinchat: can't get settings")}var t,e,n,i,s,a,o,h,c,r,_,g,l,d;j.settings&&j.settings.telephone&&(j.is_mobile||!j.settings.mobile_only?(f(b).trigger("joinchat:starting"),n=1e3*j.settings.button_delay,i=Math.max(0,1e3*j.settings.message_delay),s=!!j.settings.message_hash,a=!!j.$(".joinchat__box").length,o=parseInt(j.store.getItem("joinchat_views")||1)>=j.settings.message_views,l=(j.store.getItem("joinchat_hashes")||"").split(",").filter(
2573Boolean),h=void 0!==j.settings.is_viewed?j.settings.is_viewed:-1!==l.indexOf(j.settings.message_hash||"none"),_=!h&&(j.settings.message_badge||!s||!i||!o),setTimeout(function(){j.show(_)},n),s&&i&&!h&&(j.settings.message_badge?e=setTimeout(function(){j.$(".joinchat__badge").addClass("joinchat__badge--in")},n+i):o&&(e=setTimeout(u,n+i))),a&&!j.is_mobile&&j.$(".joinchat__button").on("mouseenter",function(){t=setTimeout(u,1500)}).on("mouseleave",function(){clearTimeout(t)}),j.$(".joinchat__button").on("click",function(){a&&!j.chatbox?u():Date.now()>j.showed_at+600&&(p(),j.open_whatsapp())}),j.$(".joinchat__close").on("click",p),j.$("#joinchat_optin").on("change",function(){j.$div.toggleClass("joinchat--optout",!this.checked)}),j.$(".joinchat__box__scroll").on("mousewheel DOMMouseScroll",function(t){t.preventDefault();t=t.originalEvent.wheelDelta||-t.originalEvent.detail;this.scrollTop+=30*(t<0?1:-1)}),j.is_mobile&&(f(b).on("focus blur","input, textarea",function(t){f(t.target).closest(j.$div).length||(clearTimeout(c),c=setTimeout(m,200))}),f(v).on("resize",function(){clearTimeout(r),r=setTimeout(function(){j.$div[0].style.setProperty("--vh",v.innerHeight+"px")},200)}).trigger("resize")),"#joinchat"==(l=new URL(v.location)).hash&&(j.show(),setTimeout(u,700)),l.searchParams.has("joinchat")&&(n=1e3*(parseInt(l.searchParams.get("joinchat"))||0),setTimeout(function(){j.show()},n),setTimeout(u,700+n)),f(b).on("click",'.joinchat_open, .joinchat_app, a[href="#joinchat"], a[href="#whatsapp"]',function(t){t.preventDefault(),!a||j.optin()&&!f(this).is('.joinchat_open, a[href="#joinchat"]')?j.open_whatsapp(f(this).data("phone"),f(this).data("message")):u()}),f(b).on("click",".joinchat_close",function(t){t.preventDefault(),j.chatbox_hide()}),l=f(".joinchat_show, .joinchat_force_show"),s&&l.length&&"IntersectionObserver"in v&&(g=new IntersectionObserver(function(t){f.each(t,function(){if(!(this.intersectionRatio<=0)){var t=this.target.classList.contains("joinchat_force_show");if(!h||t)return g.disconnect(),j.save_hash(!t),u(),!1}})}),l.each(function(){g.observe(this)})),j.use_qr()?j.$(".joinchat__qr").append(j.qr(j.whatsapp_link(void 0,void 0,!1))):j.$(".joinchat__qr").remove(),a&&j.$div.css("--peak","url(#joinchat__peak_"+(j.$div.closest("[dir=rtl]").length?"r":"l")+")"),i&&!o&&j.store.setItem("joinchat_views",parseInt(j.store.getItem("joinchat_views")||0)+1),f(b).trigger("joinchat:start"),j.is_ready=!0):(j.hide(),f(b).on("click",'.joinchat_open, .joinchat_app, a[href="#joinchat"], a[href="#whatsapp"]',function(t){t.preventDefault(),j.open_whatsapp(f(this).data("phone"),f(this).data("message"))})),j.can_qr&&!j.is_mobile?f(".joinchat-button__qr").each(function(){f(this).append(j.qr(j.whatsapp_link(f(this).data("phone"),f(this).data("message"),!1)))}):f(".wp-block-joinchat-button figure").remove(),void 0!==j.settings.sku)&&(d=j.settings.message_send,f("form.variations_form").on("found_variation reset_data",function(t,e){e=e&&e.sku||j.settings.sku;j.$(".joinchat__box sku").text(e),j.settings.message_send=d.replace(/<sku>.*<\/sku>/g,e)}))}function u(){clearTimeout(e),j.chatbox_show()}function p(){j.save_hash(),j.chatbox_hide()}function m(){var t=(b.activeElement.type||"").toLowerCase();0<=["date","datetime","email","month","number","password","search","tel","text","textarea","time","url","week"].indexOf(t)?j.chatbox?(j.chatbox_hide(),setTimeout(function(){j.hide()},400)):j.hide():j.show()}},f(t),f(v).on("load",t),b.addEventListener("DOMContentLoaded",t)})(jQuery,window,document,window.joinchat_obj||{}); 2574;/*! 2575 * jQuery UI Effects 1.11.4 2576 * http://jqueryui.com 2577 * 2578 * Copyright jQuery Foundation and other contributors 2579 * Released under the MIT license. 2580 * http://jquery.org/license 2581 * 2582 * http://api.jqueryui.com/category/effects-core/ 2583 */ 2584!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(s){var u,l,f,d,t,p,h,g,i,e,b,a,o,c,m,y,n,r,v,x,C="ui-effects-",w=s;function _(t,e,n){var r=g[e.type]||{};return null==t?n||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:t<0?0:r.max<t?r.max:t)}function k(r){var o=p(),a=o._rgba=[];return r=r.toLowerCase(),b(t,function(t,e){var n=e.re.exec(r),n=n&&e.parse(n),e=e.space||"rgba";if(n)return n=o[e](n),o[h[e].cache]=n[h[e].cache],a=o._rgba=n._rgba,!1}),a.length?("0,0,0,0"===a.join()&&u.extend(a,f.transparent),o):f[r]}function M(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function S(t){var e,n,r=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;
vendor: 12,135 bytes, lines 2584-2595
2584)"string"==typeof r[e=r[n]]&&(o[s.camelCase(e)]=r[e]);else for(e in r)"string"==typeof r[e]&&(o[e]=r[e]);return o}function j(t,e,n,r){return t={effect:t=s.isPlainObject(t)?(e=t).effect:t},s.isFunction(e=null==e?{}:e)&&(r=e,n=null,e={}),"number"!=typeof e&&!s.fx.speeds[e]||(r=n,n=e,e={}),s.isFunction(n)&&(r=n,n=null),e&&s.extend(t,e),n=n||e.duration,t.duration=s.fx.off?0:"number"==typeof n?n:n in s.fx.speeds?s.fx.speeds[n]:s.fx.speeds._default,t.complete=r||e.complete,t}function I(t){return!t||"number"==typeof t||s.fx.speeds[t]||("string"==typeof t&&!s.effects.effect[t]||(s.isFunction(t)||"object"==typeof t&&!t.effect))}return s.effects={effect:{}}, 2585/*! 2586 * jQuery Color Animations v2.1.2 2587 * https://github.com/jquery/jquery-color 2588 * 2589 * Copyright 2014 jQuery Foundation and other contributors 2590 * Released under the MIT license. 2591 * http://jquery.org/license 2592 * 2593 * Date: Wed Jan 16 08:47:09 2013 -0600 2594 */ 2595d=/^([\-+])=\s*(\d+\.?\d*)/,t=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],p=(u=w).Color=function(t,e,n,r){return new u.Color.fn.parse(t,e,n,r)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},g={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},i=p.support={},e=u("<p>")[0],b=u.each,e.style.cssText="background-color:rgba(1,1,1,.5)",i.rgba=-1<e.style.backgroundColor.indexOf("rgba"),b(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),p.fn=u.extend(p.prototype,{parse:function(o,t,e,n){if(o===l)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=u(o).css(t),t=l);var a=this,r=u.type(o),i=this._rgba=[];return t!==l&&(o=[o,t,e,n],r="array"),"string"===r?this.parse(k(o)||f._default):"array"===r?(b(h.rgba.props,function(t,e){i[e.idx]=_(o[e.idx],e)}),this):"object"===r?(b(h,o instanceof p?function(t,e){o[e.cache]&&(a[e.cache]=o[e.cache].slice())}:function(t,n){var r=n.cache;b(n.props,function(t,e){if(!a[r]&&n.to){if("alpha"===t||null==o[t])return;a[r]=n.to(a._rgba)}a[r][e.idx]=_(o[t],e,!0)}),a[r]&&u.inArray(null,a[r].slice(0,3))<0&&(a[r][3]=1,n.from&&(a._rgba=n.from(a[r])))}),this):void 0},is:function(t){var o=p(t),a=!0,i=this;return b(h,function(t,e){var n,r=o[e.cache];return r&&(n=i[e.cache]||e.to&&e.to(i._rgba)||[],b(e.props,function(t,e){if(null!=r[e.idx])return a=r[e.idx]===n[e.idx]})),a}),a},_space:function(){var n=[],r=this;return b(h,function(t,e){r[e.cache]&&n.push(t)}),n.pop()},transition:function(t,i){var e=(c=p(t))._space(),n=h[e],t=0===this.alpha()?p("transparent"):this,s=t[n.cache]||n.to(t._rgba),f=s.slice(),c=c[n.cache];return b(n.props,function(t,e){var n=e.idx,r=s[n],o=c[n],a=g[e.type]||{};null!==o&&(null===r?f[n]=o:(a.mod&&(o-r>a.mod/2?r+=a.mod:r-o>a.mod/2&&(r-=a.mod)),f[n]=_((o-r)*i+r,e)))}),this[e](f)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),n=e.pop(),r=p(t)._rgba;return p(u.map(e,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var t="rgba(",e=u.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=u.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),n=e.pop();return t&&e.push(~~(255*n)),"#"+u.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),p.fn.parse.prototype=p.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,n=t[1]/255,r=t[2]/255,o=t[3],a=Math.max(e,n,r),i=Math.min(e,n,r),s=a-i,f=a+i,t=.5*f,n=i===a?0:e===a?60*(n-r)/s+360:n===a?60*(r-e)/s+120:60*(e-n)/s+240,f=0==s?0:t<=.5?s/f:s/(2-f);return[Math.round(n)%360,f,t,null==o?1:o]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],r=t[2],t=t[3],n=r<=.5?r*(1+n):r+n-r*n,r=2*r-n;return[Math.round(255*M(r,n,e+1/3)),Math.round(255*M(r,n,e)),Math.round(255*M(r,n,e-1/3)),t]},b(h,function(f,t){var a=t.props,i=t.cache,s=t.to,c=t.from;p.fn[f]=function(t){if(s&&!this[i]&&(this[i]=s(this._rgba)),t===l)return this[i].slice();var e,n=u.type(t),r="array"===n||"object"===n?t:arguments,o=this[i].slice();return b(a,function(t,e){t=r["object"===n?t:e.idx];null==t&&(t=o[e.idx]),o[e.idx]=_(t,e)}),c?((e=p(c(o)))[i]=o,e):p(o)},b(a,function(i,s){p.fn[i]||(p.fn[i]=function(t){var e,n=u.type(t),r="alpha"===i?this._hsla?"hsla":"rgba":f,o=this[r](),a=o[s.idx];return"undefined"===n?a:("function"===n&&(t=t.call(this,a),n=u.type(t)),null==t&&s.empty?this:("string"===n&&(e=d.exec(t))&&(t=a+parseFloat(e[2])*("+"===e[1]?1:-1)),o[s.idx]=t,this[r](o)))})})}),p.hook=function(t){t=t.split(" ");b(t,function(t,a){u.cssHooks[a]={set:function(t,e){var n,r,o="";if("transparent"!==e&&("string"!==u.type(e)||(n=k(e)))){if(e=p(n||e),!i.rgba&&1!==e._rgba[3]){for(r="backgroundColor"===a?t.parentNode:t;(""===o||"transparent"===o)&&r&&r.style;)try{o=u.css(r,"backgroundColor"),r=r.parentNode}catch(t){}e=e.blend(o&&"transparent"!==o?o:"_default")}e=e.toRgbaString()}try{t.style[a]=e}catch(t){}}},u.fx.step[a]=function(t){t.colorInit||(t.start=p(t.elem,a),t.end=p(t.end),t.colorInit=!0),u.cssHooks[a].set(t.elem,t.start.transition(t.end,t.pos))}})},p.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),u.cssHooks.borderColor={expand:function(n){var r={};return b(["Top","Right","Bottom","Left"],function(t,e){r["border"+e+"Color"]=n}),r}},f=u.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},m=["add","remove","toggle"],y={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},s.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){s.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(w.style(t.elem,e,t.end),t.setAttr=!0)}}),s.fn.addBack||(s.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),s.effects.animateClass=function(o,t,e,n){var a=s.speed(t,e,n);return this.queue(function(){var n=s(this),t=n.attr("class")||"",e=(e=a.children?n.find("*").addBack():n).map(function(){return{el:s(this),start:S(this)}}),r=function(){s.each(m,function(t,e){o[e]&&n[e+"Class"](o[e])})};r(),e=e.map(function(){return this.end=S(this.el[0]),this.diff=function(t,e){var n,r,o={};for(n in e)r=e[n],t[n]!==r&&(y[n]||!s.fx.step[n]&&isNaN(parseFloat(r))||(o[n]=r));return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=s.Deferred(),n=s.extend({},a,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),s.when.apply(s,e.get()).done(function(){r(),s.each(arguments,function(){var e=this.el;s.each(this.diff,function(t){e.css(t,"")})}),a.complete.call(n[0])})})},s.fn.extend({addClass:(c=s.fn.addClass,function(t,e,n,r){return e?s.effects.animateClass.call(this,{add:t},e,n,r):c.apply(this,arguments)}),removeClass:(o=s.fn.removeClass,function(t,e,n,r){return 1<arguments.length?s.effects.animateClass.call(this,{remove:t},e,n,r):o.apply(this,arguments)}),toggleClass:(a=s.fn.toggleClass,function(t,e,n,r,o){return"boolean"==typeof e||void 0===e?n?s.effects.animateClass.call(this,e?{add:t}:{remove:t},n,r,o):a.apply(this,arguments):s.effects.animateClass.call(this,{toggle:t},e,n,r)}),switchClass:function(t,e,n,r,o){return s.effects.animateClass.call(this,{add:e,remove:t},n,r,o)}}),s.extend(s.effects,{version:"1.11.4",save:function(t,e){for(var n=0;n<e.length;n++)null!==e[n]&&t.data(C+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,r=0;r<e.length;r++)null!==e[r]&&(void 0===(n=t.data(C+e[r]))&&(n=""),t.css(e[r],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},getBaseline:function(t,e){var n,r;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=t[1]/e.width}return{x:r,y:n}},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var r={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=s("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!s.contains(n[0],o)||s(o).focus(),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(s.extend(r,{position:n.css("position"),zIndex:n.css("z-index")}),s.each(["top","left","bottom","right"],function(t,e){r[e]=n.css(e),isNaN(parseInt(r[e],10))&&(r[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(r).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!s.contains(t[0],e)||s(e).focus()),t},setTransition:function(r,t,o,a){return a=a||{},s.each(t,function(t,e){var n=r.cssUnit(e);0<n[0]&&(a[e]=n[0]*o+n[1])}),a}}),s.fn.extend({effect:function(){var a=j.apply(this,arguments),t=a.mode,e=a.queue,i=s.effects.effect[a.effect];return s.fx.off||!i?t?this[t](a.duration,a.complete):this.each(function(){a.complete&&a.complete.call(this)}):!1===e?this.each(n):this.queue(e||"fx",n);function n(t){var e=s(this),n=a.complete,r=a.mode;function o(){s.isFunction(n)&&n.call(e[0]),s.isFunction(t)&&t()}(e.is(":hidden")?"hide"===r:"show"===r)?(e[r](),o()):i.call(e[0],a,o)}},show:(v=s.fn.show,function(t){if(I(t))return v.apply(this,arguments);var e=j.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:(r=s.fn.hide,function(t){if(I(t))return r.apply(this,arguments);var e=j.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(n=s.fn.toggle,function(t){if(I(t)||"boolean"==typeof t)return n.apply(this,arguments);var e=j.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(t){var n=this.css(t),r=[];return s.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(r=[parseFloat(n),e])}),r}}),x={},s.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){x[t]=function(t){return Math.pow(t,e+2)}}),s.extend(x,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),s.each(x,function(t,e){s.easing["easeIn"+t]=e,s.easing["easeOut"+t]=function(t){return 1-e(1-t)},s.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),s.effects});
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.