PageSourceSearch

https://goexplorevietnam.com/assets/goexplorevietnam.com/wp-conten…/js/cookie-law-info-public-b436599f1d.js

js goexplorevietnam.com collected 2026-10-02 23:41:24 UTC 35,534 bytes, 1,203 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10CLI_ACCEPT_COOKIE_NAME = (typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy');
11CLI_PREFERNCE_COOKIE = (typeof CLI_PREFERNCE_COOKIE !== 'undefined' ? CLI_PREFERNCE_COOKIE : 'CookieLawInfoConsent');
12CLI_ACCEPT_COOKIE_EXPIRE = (typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365);
13CLI_COOKIEBAR_AS_POPUP = (typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false);
14var CLI_Cookie = {
15	set: function (name, value, days) {
16		var secure = "";
17		if (true === Boolean(Cli_Data.secure_cookies)) {
18			secure = ";secure";
19		}
20		if (days) {
21			var date = new Date();
22			date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
23			var expires = "; expires=" + date.toGMTString();
24		} else {
25			var expires = "";
26		}
27		document.cookie = name + "=" + value + secure + expires + "; path=/";
28		if (days < 1) {
29			host_name = window.location.hostname;
30			document.cookie = name + "=" + value + expires + "; path=/; domain=." + host_name + ";";
31			if (host_name.indexOf("www") != 1) {
32				var host_name_withoutwww = host_name.replace('www', '');
33				document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name_withoutwww + ";";
34			}
35			host_name = host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".") - 1));
36			document.cookie = name + "=" + value + secure + expires + "; path=/; domain=" + host_name + ";";
37		}
38	},
39	read: function (name) {
40		var nameEQ = name + "=";
41		var ca = document.cookie.split(';');
42		for (var i = 0; i < ca.length; i++) {
43			var c = ca[i];
44			while (c.charAt(0) == ' ') {
45				c = c.substring(1, c.length);
46			}
47			if (c.indexOf(nameEQ) === 0) {
48				return c.substring(nameEQ.length, c.length);
49			}
50		}
51		return null;
52	},
53	erase: function (name) {
54		this.set(name, "", -10);
55	},
56	exists: function (name) {
57		return (this.read(name) !== null);
58	},
59	getallcookies: function () {
60		var pairs = document.cookie.split(";");
61		var cookieslist = {};
62		for (var i = 0; i < pairs.length; i++) {
63			var pair = pairs[i].split("=");
64			cookieslist[(pair[0] + '').trim()] = unescape(pair[1]);
65		}
66		return cookieslist;
67	}
68}
69var CLI =
70{
71	bar_config: {},
72	showagain_config: {},
73	allowedCategories: [],
74	js_blocking_enabled: false,
75	set: function (args) {
76		if (typeof JSON.parse !== "function") {
77			console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
78			return;
79		}
80		if (typeof args.settings !== 'object') {
81			this.settings = JSON.parse(args.settings);
82		} else {
83			this.settings = args.settings;
84		}
85		this.js_blocking_enabled = Boolean(Cli_Data.js_blocking);
86		this.settings = args.settings;
87		this.bar_elm = jQuery(this.settings.notify_div_id);
88		this.showagain_elm = jQuery(this.settings.showagain_div_id);
89		this.settingsModal = jQuery('#cliSettingsPopup');
90
91		/* buttons */
92		this.main_button = jQuery('.cli-plugin-main-button');
93		this.main_link = jQuery('.cli-plugin-main-link');
94		this.reject_link = jQuery('.cookie_action_close_header_reject');
95		this.delete_link = jQuery(".cookielawinfo-cookie-delete");
96		this.settings_button = jQuery('.cli_settings_button');
97		this.accept_all_button = jQuery('.wt-cli-accept-all-btn');
98		if (this.settings.cookie_bar_as == 'popup') {
99			CLI_COOKIEBAR_AS_POPUP = true;
100		}
101		this.mayBeSetPreferenceCookie();
102		this.addStyleAttribute();
103		this.configBar();
104		this.toggleBar();
105		this.attachDelete();
106		this.attachEvents();
107		this.configButtons();
108		this.reviewConsent();
109		var cli_hidebar_on_readmore = this.hideBarInReadMoreLink();
110		if (Boolean(this.settings.scroll_close) === true && cli_hidebar_on_readmore === false) {
111			window.addEventListener("scroll", CLI.closeOnScroll, false);
112		}
113
114	},
115	hideBarInReadMoreLink: function () {
116		if (Boolean(CLI.settings.button_2_hidebar) === true && this.main_link.length > 0 && this.main_link.hasClass('cli-minimize-bar')) {
117			this.hideHeader();
118			cliBlocker.cookieBar(false);
119			this.showagain_elm.slideDown(this.settings.animate_speed_show);
120			return true;
121		}
122		return false;
123	},
124	attachEvents: function () {
125		jQuery(document).on(
126			'click',
127			'.wt-cli-privacy-btn',
128			function (e) {
129				e.preventDefault();
130				CLI.accept_close();
131				CLI.settingsPopUpClose();
132			}
133		);
134
135		jQuery('.wt-cli-accept-btn').on(
136			"click",
137			function (e) {
138				e.preventDefault();
139				CLI.acceptRejectCookies(jQuery(this));
140			});
141		jQuery('.wt-cli-accept-all-btn').on(
142			"click",
143			function (e) {
144				e.preventDefault();
145				CLI.acceptRejectCookies(jQuery(this), 'accept');
146			});
147		jQuery('.wt-cli-reject-btn').on(
148			"click",
149			function (e) {
150				e.preventDefault();
151				CLI.acceptRejectCookies(jQuery(this), 'reject');
152			});
153		this.settingsPopUp();
154		this.settingsTabbedAccordion();
155		this.toggleUserPreferenceCheckBox();
156		this.hideCookieBarOnClose();
157		this.cookieLawInfoRunCallBacks();
158
159	},
160	acceptRejectCookies(element, action = 'custom') {
161		var open_link = element[0].hasAttribute("href") && element.attr("href") != '#' ? true : false;
162		var new_window = false;
163		if (action == 'accept') {
164			this.enableAllCookies();
165			this.accept_close();
166			new_window = CLI.settings.button_7_new_win ? true : false;
167
168		} else if (action == 'reject') {
169			this.disableAllCookies();
170			this.reject_close();
171			new_window = Boolean(this.settings.button_3_new_win) ? true : false;
172		} else {
173			this.accept_close();
174			new_window = Boolean(this.settings.button_1_new_win) ? true : false;
175		}
176		if (open_link) {
177			if (new_window) {
178				window.open(element.attr("href"), '_blank');
179			} else {
180				window.location.href = element.attr("href");
181			}
182		}
183	},
184	toggleUserPreferenceCheckBox: function () {
185
186		jQuery('.cli-user-preference-checkbox').each(
187			function () {
188
189				categoryCookie = 'cookielawinfo-' + jQuery(this).attr('data-id');
190				categoryCookieValue = CLI_Cookie.read(categoryCookie);
191				if (categoryCookieValue == null) {
192					if (jQuery(this).is(':checked')) {
193						CLI_Cookie.set(categoryCookie, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
194					} else {
195						CLI_Cookie.set(categoryCookie, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
196					}
197				} else {
198					if (categoryCookieValue == "yes") {
199						jQuery(this).prop("checked", true);
200					} else {
201						jQuery(this).prop("checked", false);
202					}
203
204				}
205
206			}
207		);
208		jQuery('.cli-user-preference-checkbox').on(
209			"click",
210			function (e) {
211				var dataID = jQuery(this).attr('data-id');
212				var currentToggleElm = jQuery('.cli-user-preference-checkbox[data-id=' + dataID + ']');
213				if (jQuery(this).is(':checked')) {
214					CLI_Cookie.set('cookielawinfo-' + dataID, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
215					currentToggleElm.prop('checked', true);
216				} else {
217					CLI_Cookie.set('cookielawinfo-' + dataID, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
218					currentToggleElm.prop('checked', false);
219				}
220				CLI.checkCategories();
221				CLI.generateConsent();
222			}
223		);
224
225	},
226	settingsPopUp: function () {
227		jQuery(document).on(
228			'click',
229			'.cli_settings_button',
230			function (e) {
231				e.preventDefault();
232				CLI.settingsModal.addClass("cli-show").css({ 'opacity': 0 }).animate({ 'opacity': 1 });
233				CLI.settingsModal.removeClass('cli-blowup cli-out').addClass("cli-blowup");
234				jQuery('body').addClass("cli-modal-open");
235				jQuery(".cli-settings-overlay").addClass("cli-show");
236				jQuery("#cookie-law-info-bar").css({ 'opacity': .1 });
237				if (!jQuery('.cli-settings-mobile').is(':visible')) {
238					CLI.settingsModal.find('.cli-nav-link:eq(0)').trigger("click");
239				}
240			}
241		);
242		jQuery('#cliModalClose').on(
243			"click",
244			function (e) {
245				CLI.settingsPopUpClose();
246			}
247		);
248		CLI.settingsModal.on(
249			"click",
250			function (e) {
251				if (!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))) {
252					CLI.settingsPopUpClose();
253				}
254			}
255		);
256		jQuery('.cli_enable_all_btn').on(
257			"click",
258			function (e) {
259				var cli_toggle_btn = jQuery(this);
260				var enable_text = cli_toggle_btn.attr('data-enable-text');
261				var disable_text = cli_toggle_btn.attr('data-disable-text');
262				if (cli_toggle_btn.hasClass('cli-enabled')) {
263					CLI.disableAllCookies();
264					cli_toggle_btn.html(enable_text);
265				} else {
266					CLI.enableAllCookies();
267					cli_toggle_btn.html(disable_text);
268
269				}
270				jQuery(this).toggleClass('cli-enabled');
271			}
272		);
273
274		this.privacyReadmore();
275	},
276	settingsTabbedAccordion: function () {
277		jQuery(".cli-tab-header").on(
278			"click",
279			function (e) {
280				if (!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox'))) {
281					if (jQuery(this).hasClass("cli-tab-active")) {
282						jQuery(this).removeClass("cli-tab-active");
283						jQuery(this)
284							.siblings(".cli-tab-content")
285							.slideUp(200);
286
287					} else {
288						jQuery(".cli-tab-header").removeClass("cli-tab-active");
289						jQuery(this).addClass("cli-tab-active");
290						jQuery(".cli-tab-content").slideUp(200);
291						jQuery(this)
292							.siblings(".cli-tab-content")
293							.slideDown(200);
294					}
295				}
296			}
297		);
298	},
299	settingsPopUpClose: function () {
300		this.settingsModal.removeClass('cli-show');
301		this.settingsModal.addClass('cli-out');
302		jQuery('body').removeClass("cli-modal-open");
303		jQuery(".cli-settings-overlay").removeClass("cli-show");
304		jQuery("#cookie-law-info-bar").css({ 'opacity': 1 });
305	},
306	privacyReadmore: function () {
307		var el = jQuery('.cli-privacy-content .cli-privacy-content-text');
308		if (el.length > 0) {
309			var clone = el.clone(),
310				originalHtml = clone.html(),
311				originalHeight = el.outerHeight(),
312				Trunc = {
313					addReadmore: function (textBlock) {
314						if (textBlock.html().length > 250) {
315							jQuery('.cli-privacy-readmore').show();
316						} else {
317							jQuery('.cli-privacy-readmore').hide();
318						}
319					},
320					truncateText: function (textBlock) {
321						var strippedText = jQuery('<div />').html(textBlock.html());
322						strippedText.find('table').remove();
323						textBlock.html(strippedText.html());
324						currentText = textBlock.text();
325						if (currentText.trim().length > 250) {
326							var newStr = currentText.substring(0, 250);
327							textBlock.empty().html(newStr).append('...');
328						}
329					},
330					replaceText: function (textBlock, original) {
331						return textBlock.html(original);
332					}
333
334				};
335			Trunc.addReadmore(el);
336			Trunc.truncateText(el);
337			jQuery('a.cli-privacy-readmore').on(
338				"click",
339				function (e) {
340					e.preventDefault();
341					if (jQuery('.cli-privacy-overview').hasClass('cli-collapsed')) {
342						Trunc.truncateText(el);
343						jQuery('.cli-privacy-overview').removeClass('cli-collapsed');
344						el.css('height', '100%');
345					} else {
346						jQuery('.cli-privacy-overview').addClass('cli-collapsed');
347						Trunc.replaceText(el, originalHtml);
348					}
349
350				}
351			);
352		}
353
354	},
355	attachDelete: function () {
356		this.delete_link.on(
357			"click",
358			function (e) {
359				CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME);
360				for (var k in Cli_Data.nn_cookie_ids) {
361					CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
362				}
363				CLI.generateConsent();
364				return false;
365			}
366		);
367
368	},
369	configButtons: function () {
370		/*[cookie_button] */
371		this.main_button.css('color', this.settings.button_1_link_colour);
372		if (Boolean(this.settings.button_1_as_button)) {
373			this.main_button.css('background-color', this.settings.button_1_button_colour);
374
375			this.main_button.on(
376				'mouseenter',
377				function () {
378					jQuery(this).css('background-color', CLI.settings.button_1_button_hover);
379				}
380			)
381				.on(
382					'mouseleave',
383					function () {
384						jQuery(this).css('background-color', CLI.settings.button_1_button_colour);
385					}
386				);
387		}
388
389		/* [cookie_link] */
390		this.main_link.css('color', this.settings.button_2_link_colour);
391		if (Boolean(this.settings.button_2_as_button)) {
392			this.main_link.css('background-color', this.settings.button_2_button_colour);
393
394			this.main_link.on(
395				'mouseenter',
396				function () {
397					jQuery(this).css('background-color', CLI.settings.button_2_button_hover);
398				}
399			)
400				.on(
401					'mouseleave',
402					function () {
403						jQuery(this).css('background-color', CLI.settings.button_2_button_colour);
404					}
405				);
406
407		}
408		/* [cookie_reject] */
409		this.reject_link.css('color', this.settings.button_3_link_colour);
410		if (Boolean(this.settings.button_3_as_button)) {
411
412			this.reject_link.css('background-color', this.settings.button_3_button_colour);
413			this.reject_link.on(
414				'mouseenter',
415				function () {
416					jQuery(this).css('background-color', CLI.settings.button_3_button_hover);
417				}
418			)
419				.on(
420					'mouseleave',
421					function () {
422						jQuery(this).css('background-color', CLI.settings.button_3_button_colour);
423					}
424				);
425		}
426		/* [cookie_settings] */
427		this.settings_button.css('color', this.settings.button_4_link_colour);
428		if (Boolean(this.settings.button_4_as_button)) {
429			this.settings_button.css('background-color', this.settings.button_4_button_colour);
430			this.settings_button.on(
431				'mouseenter',
432				function () {
433					jQuery(this).css('background-color', CLI.settings.button_4_button_hover);
434				}
435			)
436				.on(
437					'mouseleave',
438					function () {
439						jQuery(this).css('background-color', CLI.settings.button_4_button_colour);
440					}
441				);
442		}
443		/* [cookie_accept_all] */
444		this.accept_all_button.css('color', this.settings.button_7_link_colour);
445		if (this.settings.button_7_as_button) {
446			this.accept_all_button.css('background-color', this.settings.button_7_button_colour);
447			this.accept_all_button.on(
448				'mouseenter',
449				function () {
450					jQuery(this).css('background-color', CLI.settings.button_7_button_hover);
451				}
452			)
453				.on(
454					'mouseleave',
455					function () {
456						jQuery(this).css('background-color', CLI.settings.button_7_button_colour);
457					}
458				);
459		}
460	},
461	toggleBar: function () {
462		if (CLI_COOKIEBAR_AS_POPUP) {
463			this.barAsPopUp(1);
464		}
465		if (CLI.settings.cookie_bar_as == 'widget') {
466			this.barAsWidget(1);
467		}
468		if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) {
469			this.displayHeader();
470		} else {
471			this.hideHeader();
472		}
473		if (Boolean(this.settings.show_once_yn)) {
474			setTimeout(
475				function () {
476					CLI.close_header();
477				},
478				CLI.settings.show_once
479			);
480		}
481		if (CLI.js_blocking_enabled === false) {
482			if (Boolean(Cli_Data.ccpaEnabled) === true) {
483				if (Cli_Data.ccpaType === 'ccpa' && Boolean(Cli_Data.ccpaBarEnabled) === false) {
484					cliBlocker.cookieBar(false);
485				}
486			} else {
487				jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
488			}
489		}
490
491		this.showagain_elm.on(
492			"click",
493			function (e) {
494				e.preventDefault();
495				CLI.showagain_elm.slideUp(
496					CLI.settings.animate_speed_hide,
497					function () {
498						CLI.bar_elm.slideDown(CLI.settings.animate_speed_show);
499						if (CLI_COOKIEBAR_AS_POPUP) {
500							CLI.showPopupOverlay();
501						}
502					}
503				);
504			}
505		);
506	},
507	configShowAgain: function () {
508		this.showagain_config = {
509			'background-color': this.settings.background,
510			'color': this.l1hs(this.settings.text),
511			'position': 'fixed',
512			'font-family': this.settings.font_family
513		};
514		if (Boolean(this.settings.border_on)) {
515			var border_to_hide = 'border-' + this.settings.notify_position_vertical;
516			this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border);
517			this.showagain_config[border_to_hide] = 'none';
518		}
519		var cli_win = jQuery(window);
520		var cli_winw = cli_win.width();
521		var showagain_x_pos = this.settings.showagain_x_position;
522		if (cli_winw < 300) {
523			showagain_x_pos = 10;
524			this.showagain_config.width = cli_winw - 20;
525		} else {
526			this.showagain_config.width = 'auto';
527		}
528		var cli_defw = cli_winw > 400 ? 500 : cli_winw - 20;
529		if (CLI_COOKIEBAR_AS_POPUP) { /* cookie bar as popup */
530			var sa_pos = this.settings.popup_showagain_position;
531			var sa_pos_arr = sa_pos.split('-');
532			if (sa_pos_arr[1] == 'left') {
533				this.showagain_config.left = showagain_x_pos;
534			} else if (sa_pos_arr[1] == 'right') {
535				this.showagain_config.right = showagain_x_pos;
536			}
537			if (sa_pos_arr[0] == 'top') {
538				this.showagain_config.top = 0;
539
540			} else if (sa_pos_arr[0] == 'bottom') {
541				this.showagain_config.bottom = 0;
542			}
543			this.bar_config['position'] = 'fixed';
544
545		} else if (this.settings.cookie_bar_as == 'widget') {
546			this.showagain_config.bottom = 0;
547			if (this.settings.widget_position == 'left') {
548				this.showagain_config.left = showagain_x_pos;
549			} else if (this.settings.widget_position == 'right') {
550				this.showagain_config.right = showagain_x_pos;
551			}
552		} else {
553			if (this.settings.notify_position_vertical == "top") {
554				this.showagain_config.top = '0';
555			} else if (this.settings.notify_position_vertical == "bottom") {
556				this.bar_config['position'] = 'fixed';
557				this.bar_config['bottom'] = '0';
558				this.showagain_config.bottom = '0';
559			}
560			if (this.settings.notify_position_horizontal == "left") {
561				this.showagain_config.left = showagain_x_pos;
562			} else if (this.settings.notify_position_horizontal == "right") {
563				this.showagain_config.right = showagain_x_pos;
564			}
565		}
566		this.showagain_elm.css(this.showagain_config);
567	},
568	configBar: function () {
569		this.bar_config = {
570			'background-color': this.settings.background,
571			'color': this.settings.text,
572			'font-family': this.settings.font_family
573		};
574		if (this.settings.notify_position_vertical == "top") {
575			this.bar_config['top'] = '0';
576			if (Boolean(this.settings.header_fix) === true) {
577				this.bar_config['position'] = 'fixed';
578			}
579		} else {
580			this.bar_config['bottom'] = '0';
581		}
582		this.configShowAgain();
583		this.bar_elm.css(this.bar_config).hide();
584	},
585	l1hs: function (str) {
586		if (str.charAt(0) == "#") {
587			str = str.substring(1, str.length);
588		} else {
589			return "#" + str;
590		}
591		return this.l1hs(str);
592	},
593	close_header: function () {
594		CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
595		this.hideHeader();
596	},
597	accept_close: function () {
598		this.hidePopupOverlay();
599		this.generateConsent();
600		this.cookieLawInfoRunCallBacks();
601
602		CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
603		if (Boolean(this.settings.notify_animate_hide)) {
604			if (CLI.js_blocking_enabled === true) {
605				this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);
606			} else {
607				this.bar_elm.slideUp(this.settings.animate_speed_hide);
608			}
609
610		} else {
611			if (CLI.js_blocking_enabled === true) {
612				this.bar_elm.hide(0, cliBlocker.runScripts);
613
614			} else {
615				this.bar_elm.hide();
616			}
617		}
618		if (Boolean(this.settings.showagain_tab)) {
619			this.showagain_elm.slideDown(this.settings.animate_speed_show);
620		}
621		if (Boolean(this.settings.accept_close_reload) === true) {
622			this.reload_current_page();
623		}
624		return false;
625	},
626	reject_close: function () {
627		this.hidePopupOverlay();
628		this.generateConsent();
629		this.cookieLawInfoRunCallBacks();
630		for (var k in Cli_Data.nn_cookie_ids) {
631			CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]);
632		}
633		CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
634
635		if (Boolean(this.settings.notify_animate_hide)) {
636			if (CLI.js_blocking_enabled === true) {
637
638				this.bar_elm.slideUp(this.settings.animate_speed_hide, cliBlocker.runScripts);
639
640			} else {
641
642				this.bar_elm.slideUp(this.settings.animate_speed_hide);
643			}
644
645		} else {
646			if (CLI.js_blocking_enabled === true) {
647
648				this.bar_elm.hide(cliBlocker.runScripts);
649
650			} else {
651
652				this.bar_elm.hide();
653
654			}
655
656		}
657		if (Boolean(this.settings.showagain_tab)) {
658			this.showagain_elm.slideDown(this.settings.animate_speed_show);
659		}
660		if (Boolean(this.settings.reject_close_reload) === true) {
661			this.reload_current_page();
662		}
663		return false;
664	},
665	reload_current_page: function () {
666
667		window.location.reload(true);
668	},
669	closeOnScroll: function () {
670		if (window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) {
671			CLI.accept_close();
672			if (Boolean(CLI.settings.scroll_close_reload) === true) {
673				window.location.reload();
674			}
675			window.removeEventListener("scroll", CLI.closeOnScroll, false);
676		}
677	},
678	displayHeader: function () {
679		if (Boolean(this.settings.notify_animate_show)) {
680			this.bar_elm.slideDown(this.settings.animate_speed_show);
681		} else {
682			this.bar_elm.show();
683		}
684		this.showagain_elm.hide();
685		if (CLI_COOKIEBAR_AS_POPUP) {
686			this.showPopupOverlay();
687		}
688	},
689	hideHeader: function () {
690		if (Boolean(this.settings.showagain_tab)) {
691			if (Boolean(this.settings.notify_animate_show)) {
692				this.showagain_elm.slideDown(this.settings.animate_speed_show);
693			} else {
694				this.showagain_elm.show();
695			}
696		} else {
697			this.showagain_elm.hide();
698		}
699		this.bar_elm.slideUp(this.settings.animate_speed_show);
700		this.hidePopupOverlay();
701	},
702	hidePopupOverlay: function () {
703		jQuery('body').removeClass("cli-barmodal-open");
704		jQuery(".cli-popupbar-overlay").removeClass("cli-show");
705	},
706	showPopupOverlay: function () {
707		if (this.bar_elm.length) {
708			if (Boolean(this.settings.popup_overlay)) {
709				jQuery('body').addClass("cli-barmodal-open");
710				jQuery(".cli-popupbar-overlay").addClass("cli-show");
711			}
712		}
713
714	},
715	barAsWidget: function (a) {
716		var cli_elm = this.bar_elm;
717		cli_elm.attr('data-cli-type', 'widget');
718		var cli_win = jQuery(window);
719		var cli_winh = cli_win.height() - 40;
720		var cli_winw = cli_win.width();
721		var cli_defw = cli_winw > 400 ? 300 : cli_winw - 30;
722		cli_elm.css(
723			{
724				'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'overflow': 'auto', 'position': 'fixed', 'box-sizing': 'border-box'
725			}
726		);
727		if (this.checkifStyleAttributeExist() === false) {
728			cli_elm.css({ 'padding': '25px 15px' });
729		}
730		if (this.settings.widget_position == 'left') {
731			cli_elm.css(
732				{
733					'left': '15px', 'right': 'auto', 'bottom': '15px', 'top': 'auto'
734				}
735			);
736		} else {
737			cli_elm.css(
738				{
739					'left': 'auto', 'right': '15px', 'bottom': '15px', 'top': 'auto'
740				}
741			);
742		}
743		if (a) {
744			this.setResize();
745		}
746	},
747	barAsPopUp: function (a) {
748		if (typeof cookie_law_info_bar_as_popup === 'function') {
749			return false;
750		}
751		var cli_elm = this.bar_elm;
752		cli_elm.attr('data-cli-type', 'popup');
753		var cli_win = jQuery(window);
754		var cli_winh = cli_win.height() - 40;
755		var cli_winw = cli_win.width();
756		var cli_defw = cli_winw > 700 ? 500 : cli_winw - 20;
757
758		cli_elm.css(
759			{
760				'width': cli_defw, 'height': 'auto', 'max-height': cli_winh, 'bottom': '', 'top': '50%', 'left': '50%', 'margin-left': (cli_defw / 2) * -1, 'margin-top': '-100px', 'overflow': 'auto'
761			}
762		).addClass('cli-bar-popup cli-modal-content');
763		if (this.checkifStyleAttributeExist() === false) {
764			cli_elm.css({ 'padding': '25px 15px' });
765		}
766		cli_h = cli_elm.height();
767		li_h = cli_h < 200 ? 200 : cli_h;
768		cli_elm.css({ 'top': '50%', 'margin-top': ((cli_h / 2) + 30) * -1 });
769		setTimeout(
770			function () {
771				cli_elm.css(
772					{
773						'bottom': ''
774					}
775				);
776			},
777			100
778		);
779		if (a) {
780			this.setResize();
781		}
782	},
783	setResize: function () {
784		var resizeTmr = null;
785		jQuery(window).resize(
786			function () {
787				clearTimeout(resizeTmr);
788				resizeTmr = setTimeout(
789					function () {
790						if (CLI_COOKIEBAR_AS_POPUP) {
791							CLI.barAsPopUp();
792						}
793						if (CLI.settings.cookie_bar_as == 'widget') {
794							CLI.barAsWidget();
795						}
796						CLI.configShowAgain();
797					},
798					500
799				);
800			}
801		);
802	},
803	enableAllCookies: function () {
804
805		jQuery('.cli-user-preference-checkbox').each(
806			function () {
807				var cli_chkbox_elm = jQuery(this);
808				var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id');
809				if (cli_chkbox_data_id != 'checkbox-necessary') {
810					cli_chkbox_elm.prop('checked', true);
811					CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'yes', CLI_ACCEPT_COOKIE_EXPIRE);
812				}
813			}
814		);
815	},
816	disableAllCookies: function () {
817		jQuery('.cli-user-preference-checkbox').each(
818			function () {
819
820				var cli_chkbox_elm = jQuery(this);
821				var cli_chkbox_data_id = cli_chkbox_elm.attr('data-id');
822				cliCategorySlug = cli_chkbox_data_id.replace('checkbox-', '');
823				if (Cli_Data.strictlyEnabled.indexOf(cliCategorySlug) === -1) {
824					cli_chkbox_elm.prop('checked', false);
825					CLI_Cookie.set('cookielawinfo-' + cli_chkbox_data_id, 'no', CLI_ACCEPT_COOKIE_EXPIRE);
826				}
827			}
828		);
829	},
830	hideCookieBarOnClose: function () {
831		jQuery(document).on(
832			'click',
833			'.cli_cookie_close_button',
834			function (e) {
835				e.preventDefault();
836				var elm = jQuery(this);
837				if (Cli_Data.ccpaType === 'ccpa') {
838					CLI.enableAllCookies();
839				}
840				CLI.accept_close();
841			}
842		);
843	},
844	checkCategories: function () {
845		var cliAllowedCategories = [];
846		var cli_categories = {};
847		jQuery('.cli-user-preference-checkbox').each(
848			function () {
849				var status = false;
850				cli_chkbox_elm = jQuery(this);
851				cli_chkbox_data_id = cli_chkbox_elm.attr('data-id');
852				cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', '');
853				cli_chkbox_data_id_trimmed = cli_chkbox_data_id.replace('-', '_')
854				if (jQuery(cli_chkbox_elm).is(':checked')) {
855					status = true;
856					cliAllowedCategories.push(cli_chkbox_data_id);
857				}
858
859				cli_categories[cli_chkbox_data_id_trimmed] = status;
860			}
861		);
862		CLI.allowedCategories = cliAllowedCategories;
863	},
864	cookieLawInfoRunCallBacks: function () {
865		this.checkCategories();
866		if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes') {
867			if ("function" == typeof CookieLawInfo_Accept_Callback) {
868				CookieLawInfo_Accept_Callback();
869			}
870		}
871	},
872	generateConsent: function () {
873		var preferenceCookie = CLI_Cookie.read(CLI_PREFERNCE_COOKIE);
874		cliConsent = {};
875		if (preferenceCookie !== null) {
876			cliConsent = window.atob(preferenceCookie);
877			cliConsent = JSON.parse(cliConsent);
878		}
879		cliConsent.ver = Cli_Data.consentVersion;
880		categories = [];
881		jQuery('.cli-user-preference-checkbox').each(
882			function () {
883				categoryVal = '';
884				cli_chkbox_data_id = jQuery(this).attr('data-id');
885				cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-', '');
886				if (jQuery(this).is(':checked')) {
887					categoryVal = true;
888				} else {
889					categoryVal = false;
890				}
891				cliConsent[cli_chkbox_data_id] = categoryVal;
892			}
893		);
894		cliConsent = JSON.stringify(cliConsent);
895		cliConsent = window.btoa(cliConsent);
896		CLI_Cookie.set(CLI_PREFERNCE_COOKIE, cliConsent, CLI_ACCEPT_COOKIE_EXPIRE);
897	},
898	addStyleAttribute: function () {
899		var bar = this.bar_elm;
900		var styleClass = '';
901		if (jQuery(bar).find('.cli-bar-container').length > 0) {
902			styleClass = jQuery('.cli-bar-container').attr('class');
903			styleClass = styleClass.replace('cli-bar-container', '');
904			styleClass = styleClass.trim();
905			jQuery(bar).attr('data-cli-style', styleClass);
906		}
907	},
908	getParameterByName: function (name, url) {
909		if (!url) {
910			url = window.location.href;
911		}
912		name = name.replace(/[\[\]]/g, '\\$&');
913		var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
914			results = regex.exec(url);
915		if (!results) {
916			return null;
917		}
918		if (!results[2]) {
919			return '';
920		}
921		return decodeURIComponent(results[2].replace(/\+/g, ' '));
922	},
923	CookieLawInfo_Callback: function (enableBar, enableBlocking) {
924		enableBar = typeof enableBar !== 'undefined' ? enableBar : true;
925		enableBlocking = typeof enableBlocking !== 'undefined' ? enableBlocking : true;
926		if (CLI.js_blocking_enabled === true && Boolean(Cli_Data.custom_integration) === true) {
927			cliBlocker.cookieBar(enableBar);
928			cliBlocker.runScripts(enableBlocking);
929		}
930	},
931	checkifStyleAttributeExist: function () {
932		var exist = false;
933		var attr = this.bar_elm.attr('data-cli-style');
934		if (typeof attr !== typeof undefined && attr !== false) {
935			exist = true;
936		}
937		return exist;
938	},
939	reviewConsent: function () {
940		jQuery(document).on(
941			'click',
942			'.cli_manage_current_consent,.wt-cli-manage-consent-link',
943			function () {
944				CLI.displayHeader();
945			}
946		);
947	},
948	mayBeSetPreferenceCookie: function () {
949		if (CLI.getParameterByName('cli_bypass') === "1") {
950			CLI.generateConsent();
951		}
952	}
953}
954var cliBlocker =
955{
956	blockingStatus: true,
957	scriptsLoaded: false,
958	ccpaEnabled: false,
959	ccpaRegionBased: false,
960	ccpaApplicable: false,
961	ccpaBarEnabled: false,
962	cliShowBar: true,
963	isBypassEnabled: CLI.getParameterByName('cli_bypass'),
964	checkPluginStatus: function (callbackA, callbackB) {
965		this.ccpaEnabled = Boolean(Cli_Data.ccpaEnabled);
966		this.ccpaRegionBased = Boolean(Cli_Data.ccpaRegionBased);
967		this.ccpaBarEnabled = Boolean(Cli_Data.ccpaBarEnabled);
968
969		if (Boolean(Cli_Data.custom_integration) === true) {
970			callbackA(false);
971		} else {
972			if (this.ccpaEnabled === true) {
973				this.ccpaApplicable = true;
974				if (Cli_Data.ccpaType === 'ccpa') {
975					if (this.ccpaBarEnabled !== true) {
976						this.cliShowBar = false;
977						this.blockingStatus = false;
978					}
979				}
980			} else {
981				jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove();
982			}
983			if (cliBlocker.isBypassEnabled === "1") {
984				cliBlocker.blockingStatus = false;
985			}
986			callbackA(this.cliShowBar);
987			callbackB(this.blockingStatus);
988		}
989
990	},
991	cookieBar: function (showbar) {
992		showbar = typeof showbar !== 'undefined' ? showbar : true;
993		cliBlocker.cliShowBar = showbar;
994		if (cliBlocker.cliShowBar === false) {
995			CLI.bar_elm.hide();
996			CLI.showagain_elm.hide();
997			CLI.settingsModal.removeClass('cli-blowup cli-out');
998			CLI.hidePopupOverlay();
999			jQuery(".cli-settings-overlay").removeClass("cli-show");
1000		} else {
1001			if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) {
1002				CLI.displayHeader();
1003			} else {
1004				CLI.hideHeader();
1005			}
1006		}
1007	},
1008	removeCookieByCategory: function () {
1009
1010		if (cliBlocker.blockingStatus === true) {
1011			if (CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) !== null) {
1012				var non_necessary_cookies = Cli_Data.non_necessary_cookies;
1013				for (var key in non_necessary_cookies) {
1014					currentCategory = key;
1015					if (CLI.allowedCategories.indexOf(currentCategory) === -1) {
1016						var nonNecessaryCookies = non_necessary_cookies[currentCategory];
1017						for (var i = 0; i < nonNecessaryCookies.length; i++) {
1018							if (CLI_Cookie.read(nonNecessaryCookies[i]) !== null) {
1019								CLI_Cookie.erase(nonNecessaryCookies[i]);
1020							}
1021
1022						}
1023					}
1024				}
1025			}
1026		}
1027	},
1028	runScripts: function (blocking) {
1029		blocking = typeof blocking !== 'undefined' ? blocking : true;
1030		cliBlocker.blockingStatus = blocking;
1031		srcReplaceableElms = ['iframe', 'IFRAME', 'EMBED', 'embed', 'OBJECT', 'object', 'IMG', 'img'];
1032		var genericFuncs =
1033		{
1034
1035			renderByElement: function (callback) {
1036				cliScriptFuncs.renderScripts();
1037				callback();
1038				cliBlocker.scriptsLoaded = true;
1039			},
1040
1041		};
1042		var cliScriptFuncs =
1043		{
1044			// trigger DOMContentLoaded
1045			scriptsDone: function () {
1046				if (typeof Cli_Data.triggerDomRefresh !== 'undefined') {
1047					if (Boolean(Cli_Data.triggerDomRefresh) === true) {
1048						var DOMContentLoadedEvent = document.createEvent('Event')
1049						DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true)
1050						window.document.dispatchEvent(DOMContentLoadedEvent);
1051					}
1052				}
1053			},
1054			seq: function (arr, callback, index) {
1055				// first call, without an index
1056				if (typeof index === 'undefined') {
1057					index = 0
1058				}
1059
1060				arr[index](
1061					function () {
1062						index++
1063						if (index === arr.length) {
1064							callback()
1065						} else {
1066							cliScriptFuncs.seq(arr, callback, index)
1067						}
1068					}
1069				)
1070			},
1071			/* script runner */
1072			insertScript: function ($script, callback) {
1073				var s = '';
1074				var scriptType = $script.getAttribute('data-cli-script-type');
1075				var elementPosition = $script.getAttribute('data-cli-element-position');
1076				var isBlock = $script.getAttribute('data-cli-block');
1077				var s = document.createElement('script');
1078				var ccpaOptedOut = cliBlocker.ccpaOptedOut();
1079				s.type = 'text/plain';
1080				if ($script.async) {
1081					s.async = $script.async;
1082				}
1083				if ($script.defer) {
1084					s.defer = $script.defer;
1085				}
1086				if ($script.src) {
1087					s.onload = callback
1088					s.onerror = callback
1089					s.src = $script.src
1090				} else {
1091					s.textContent = $script.innerText
1092				}
1093				var attrs = jQuery($script).prop("attributes");
1094				for (var ii = 0; ii < attrs.length; ++ii) {
1095					if (attrs[ii].nodeName !== 'id') {
1096						s.setAttribute(attrs[ii].nodeName, attrs[ii].value);
1097					}
1098				}
1099				if (cliBlocker.blockingStatus === true) {
1100
1101					if ((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == 'yes' && CLI.allowedCategories.indexOf(scriptType) !== -1)) {
1102						s.setAttribute('data-cli-consent', 'accepted');
1103						s.type = 'text/javascript';
1104					}
1105					if (cliBlocker.ccpaApplicable === true) {
1106						if (ccpaOptedOut === true || CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null) {
1107							s.type = 'text/plain';
1108						}
1109					}
1110				} else {
1111					s.type = 'text/javascript';
1112				}
1113
1114				if ($script.type != s.type) {
1115					if (elementPosition === 'head') {
1116						document.head.appendChild(s);
1117					} else {
1118						document.body.appendChild(s);
1119					}
1120					if (!$script.src) {
1121						callback()
1122					}
1123					$script.parentNode.removeChild($script);
1124
1125				} else {
1126
1127					callback();
1128				}
1129			},
1130			renderScripts: function () {
1131				var $scripts = document.querySelectorAll('script[data-cli-class="cli-blocker-script"]');
1132				if ($scripts.length > 0) {
1133					var runList = []
1134					var typeAttr
1135					Array.prototype.forEach.call(
1136						$scripts,
1137						function ($script) {
1138							// only run script tags without the type attribute
1139							// or with a javascript mime attribute value
1140							typeAttr = $script.getAttribute('type')
1141							runList.push(
1142								function (callback) {
1143									cliScriptFuncs.insertScript($script, callback)
1144								}
1145							)
1146						}
1147					)
1148					cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone);
1149				}
1150			}
1151		};
1152		genericFuncs.renderByElement(cliBlocker.removeCookieByCategory);
1153	},
1154	ccpaOptedOut: function () {
1155		var ccpaOptedOut = false;
1156		var preferenceCookie = CLI_Cookie.read(CLI_PREFERNCE_COOKIE);
1157		if (preferenceCookie !== null) {
1158			cliConsent = window.atob(preferenceCookie);
1159			cliConsent = JSON.parse(cliConsent);
1160			if (typeof cliConsent.ccpaOptout !== 'undefined') {
1161				ccpaOptedOut = cliConsent.ccpaOptout;
1162			}
1163		}
1164		return ccpaOptedOut;
1165	}
1166}
1167jQuery(document).ready(
1168	function () {
1169		if (typeof cli_cookiebar_settings != 'undefined') {
1170			CLI.set(
1171				{
1172					settings: cli_cookiebar_settings
1173				}
1174			);
1175			if (CLI.js_blocking_enabled === true) {
1176				cliBlocker.checkPluginStatus(cliBlocker.cookieBar, cliBlocker.runScripts);
1177			}
1178		}
1179	}
1180);
1181
1182}
1183
1184/*
1185     FILE ARCHIVED ON 16:15:32 Sep 02, 2025 AND RETRIEVED FROM THE
1186     INTERNET ARCHIVE ON 12:54:24 Aug 22, 2026.
1187     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
1188
1189     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
1190     SECTION 108(a)(3)).
1191*/
1192/*
1193playback timings (ms):
1194  captures_list: 1.501 (2)
1195  exclusion.robots: 0.224 (2)
1196  exclusion.robots.policy: 0.192 (2)
1197  esindex: 0.022 (2)
1198  cdx.remote: 38.865 (2)
1199  LoadShardBlock: 216.372 (6)
1200  PetaboxLoader3.resolve: 176.159 (5)
1201  PetaboxLoader3.datanode: 148.822 (6)
1202  load_resource: 285.392 (2)
1203*/

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.