try{var page_language='/';}catch(e){} try{function theChampLoadEvent(e){var t=window.onload;if(typeof window.onload!="function"){window.onload=e}else{window.onload=function(){t();e()}}};}catch(e){} try{var theChampDefaultLang='pl_PL',theChampCloseIconPath='https://biletinfo.pl/wp-content/plugins/super-socializer/images/close.png';}catch(e){} try{var theChampSiteUrl='https://biletinfo.pl',theChampVerified=0,theChampEmailPopup=0,heateorSsMoreSharePopupSearchText='Search';}catch(e){} try{var theChampFBKey='',theChampFBLang='pl_PL',theChampFbLikeMycred=0,theChampSsga=0,theChampCommentNotification=0,theChampHeateorFcmRecentComments=0,theChampFbIosLogin=0;;}catch(e){} try{var theChampFBCommentUrl='https://biletinfo.pl/';var theChampFBCommentColor='';var theChampFBCommentNumPosts='';var theChampFBCommentWidth='100%';var theChampFBCommentOrderby='';var theChampCommentingTabs="wordpress,facebook,disqus",theChampGpCommentsUrl='https://biletinfo.pl/',theChampDisqusShortname='',theChampScEnabledTabs='wordpress,fb',theChampScLabel='Leave a reply',theChampScTabLabels={"wordpress":"Default Comments (0)","fb":"Facebook Comments","disqus":"Disqus Comments"},theChampGpCommentsWidth=0,theChampCommentingId='respond';}catch(e){} try{var theChampSharingAjaxUrl='https://biletinfo.pl/wp-admin/admin-ajax.php',heateorSsFbMessengerAPI='https://www.facebook.com/dialog/send?app_id=595489497242932&display=popup&link=%encoded_post_url%&redirect_uri=%encoded_post_url%',heateorSsWhatsappShareAPI='web',heateorSsUrlCountFetched=[],heateorSsSharesText='Shares',heateorSsShareText='Share',theChampPluginIconPath='https://biletinfo.pl/wp-content/plugins/super-socializer/images/logo.png',theChampSaveSharesLocally=0,theChampHorizontalSharingCountEnable=0,theChampVerticalSharingCountEnable=0,theChampSharingOffset=-10,theChampCounterOffset=-10,theChampMobileStickySharingEnabled=1,heateorSsCopyLinkMessage="Link copied.";var heateorSsVerticalSharingShortUrl="https://biletinfo.pl/";}catch(e){} try{var WordfenceI18nStrings={"${totalIPs} addresses in this network":"${totalIPs} adresy w tej sieci","%s in POST body: %s":"%s w nag\u0142\u00f3wku POST: %s","%s in cookie: %s":"%s w ciasteczku: %s","%s in file: %s":"%s w pliku: %s","%s in query string: %s":"%s w zapytaniu: %s","%s is not valid hostname":"%s nie jest prawid\u0142ow\u0105 nazw\u0105 hosta",".htaccess Updated":".htaccess aktualizacja",".htaccess change":".htaccess zmiana","404 Not Found":"404 nie znaleziono","Activity Log Sent":"Wys\u0142ano dziennik aktywno\u015bci","Add action to allowlist":"Dodaj akcj\u0119 do listy dozwolonych","Add code to .htaccess":"Dodaj kod do .htaccess","All Hits":"Wszystkie trafienia","All capabilties of admin user %s were successfully revoked.":"Wszystkie mo\u017cliwo\u015bci administrator\u00f3w %s zosta\u0142y pomy\u015blnie uniewa\u017cnione.","An error occurred":"Wyst\u0105pi\u0142 b\u0142\u0105d","An error occurred when adding the request to the allowlist.":"Wyst\u0105pi\u0142 b\u0142\u0105d podczas dodawania \u017c\u0105dania do listy dozwolonych.","Are you sure you want to allowlist this action?":"Czy na pewno chcesz doda\u0107 to dzia\u0142anie do listy dozwolonych?","Authentication Code":"Kod weryfikacyjny","Background Request Blocked":"Zablokowano \u017c\u0105danie w tle","Block This Network":"Zablokuj t\u0119 sie\u0107","Blocked":"Zablokowano","Blocked By Firewall":"Zablokowany przez zapor\u0119","Blocked WAF":"Zablokowany WAF","Blocked by Wordfence":"Zablokowane przez Wordfence","Blocked by Wordfence plugin settings":"Zablokowane przez ustawienia wtyczki Wordfence","Blocked by the Wordfence Application Firewall and plugin settings":"Zablokowane przez zapor\u0119 aplikacji Wordfence i ustawienia wtyczek","Blocked by the Wordfence Security Network":"Zablokowane przez sie\u0107 bezpiecze\u0144stwa Wordfence","Blocked by the Wordfence Web Application Firewall":"Zablokowane przez zapor\u0119 sieciow\u0105 aplikacji Wordfence","Bot":"Bot","Cancel Changes":"Anuluj zmiany","Cellphone Sign-In Recovery Codes":"Kody odzyskiwania logowania do telefonu kom\u00f3rkowego","Cellphone Sign-in activated for user.":"Logowanie przez telefon kom\u00f3rkowy zosta\u0142o aktywowane dla u\u017cytkownika.","Click here to download a backup copy of this file now":"Kliknij tutaj, aby pobra\u0107 kopi\u0119 zapasow\u0105 tego pliku teraz","Click here to download a backup copy of your .htaccess file now":"Kliknij tutaj, aby pobra\u0107 kopi\u0119 zapasow\u0105 pliku .htaccess teraz","Click to fix .htaccess":"Kliknij, aby naprawi\u0107 .htaccess","Close":"Zamknij","Crawlers":"Roboty","Diagnostic report has been sent successfully.":"Raport diagnostyczny zosta\u0142 wys\u0142any pomy\u015blnie.","Directory Listing Disabled":"Lista katalog\u00f3w wy\u0142\u0105czona","Directory listing has been disabled on your server.":"Lista katalog\u00f3w zosta\u0142a wy\u0142\u0105czona na Twoim serwerze.","Disabled":"Wy\u0142\u0105czono","Dismiss":"Odrzu\u0107","Don't ask again":"Nie pytaj ponownie","Download":"Pobierz","Download Backup File":"Pobierz plik kopii zapasowej","Each line of 16 letters and numbers is a single recovery code, with optional spaces for readability. When typing your password, enter \"wf\" followed by the entire code like \"mypassword wf1234 5678 90AB CDEF\". If your site shows a separate prompt for entering a code after entering only your username and password, enter only the code like \"1234 5678 90AB CDEF\". Your recovery codes are:":"Ka\u017cda linia sk\u0142adaj\u0105ca si\u0119 z 16 liter i cyfr to pojedynczy kod odzyskiwania z opcjonalnymi spacjami zapewniaj\u0105cymi czytelno\u015b\u0107. Podczas wpisywania has\u0142a wpisz \u201ewf\u201d, a nast\u0119pnie ca\u0142y kod, np. \u201emypassword wf1234 5678 90AB CDEF\u201d. Je\u015bli Twoja witryna wy\u015bwietla osobny monit o wprowadzenie kodu po wprowadzeniu tylko nazwy u\u017cytkownika i has\u0142a, wprowad\u017a tylko kod, taki jak \u201e1234 5678 90AB CDEF\u201d. Twoje kody odzyskiwania to:","Email Diagnostic Report":"Raport diagnostyczny e-mail","Email Wordfence Activity Log":"Dziennik aktywno\u015bci e-mail Wordfence","Enter a valid IP or domain":"Wpisz poprawny adres IP lub domen\u0119","Enter the email address you would like to send the Wordfence activity log to. Note that the activity log may contain thousands of lines of data. This log is usually only sent to a member of the Wordfence support team. It also contains your PHP configuration from the phpinfo() function for diagnostic data.":"Wpisz adres e-mail, na kt\u00f3ry chcesz wys\u0142a\u0107 dziennik aktywno\u015bci Wordfence. Pami\u0119taj, \u017ce dziennik aktywno\u015bci mo\u017ce zawiera\u0107 tysi\u0105ce wierszy danych. Ten dziennik jest zwykle wysy\u0142any tylko do cz\u0142onka zespo\u0142u wsparcia Wordfence. Zawiera r\u00f3wnie\u017c konfiguracj\u0119 PHP z funkcji phpinfo() dla danych diagnostycznych.","Error":"B\u0142\u0105d","Error Enabling All Options Page":"B\u0142\u0105d podczas w\u0142\u0105czania strony wszystkich opcji","Error Restoring Defaults":"B\u0142\u0105d przywracania ustawie\u0144 domy\u015blnych","Error Saving Option":"Opcja zapisywania b\u0142\u0119d\u00f3w","Error Saving Options":"Opcje zapisywania b\u0142\u0119d\u00f3w","Failed Login":"Nieudane logowanie","Failed Login: Invalid Username":"Nieudane logowanie: Nieprawid\u0142owa nazwa u\u017cytkownika","Failed Login: Valid Username":"Nieudane logowanie: prawid\u0142owa nazwa u\u017cytkownika","File hidden successfully":"Pliki zosta\u0142y ukryte","File restored OK":"Pliki zosta\u0142y przywr\u00f3cone","Filter Traffic":"Filtruj ruch","Firewall Response":"Odpowied\u017a zapory","Full Path Disclosure":"Pe\u0142ne ujawnienie \u015bcie\u017cki","Google Bot":"Bot Google","Google Crawlers":"Roboty Google","HTTP Response Code":"Kod odpowiedzi HTTP","Human":"Cz\u0142owiek","Humans":"Ludzie","IP":"IP","Key:":"Klucz:","Last Updated: %s":"Ostatnia aktualizacja: %s","Learn more about repairing modified files.":"Dowiedz si\u0119 wi\u0119cej o naprawianiu zmodyfikowanych plik\u00f3w.","Loading...":"Wczytywanie\u2026","Locked Out":"Zablokowany","Locked out from logging in":"Zablokowano mo\u017cliwo\u015b\u0107 logowania","Logged In":"Zalogowano","Logins":"Logowania","Logins and Logouts":"Logowanie i wylogowanie","Look up IP or Domain":"Wyszukaj adres IP lub domen\u0119","Manual block by administrator":"R\u0119czne blokowanie przez administratora","Next Update Check: %s":"Nast\u0119pna kontrola aktualizacji: %s","No activity to report yet. Please complete your first scan.":"Brak aktywno\u015bci do zg\u0142oszenia. Doko\u0144cz pierwsze skanowanie.","No issues have been ignored.":"\u017badne problemy nie zosta\u0142y zignorowane.","No new issues have been found.":"Nie znaleziono nowych problem\u00f3w.","No rules were updated. Please verify you have permissions to write to the \/wp-content\/wflogs directory.":"\u017badne zasady nie zosta\u0142y zaktualizowane. Sprawd\u017a, czy masz uprawnienia do zapisu w katalogu \/wp-content\/wflogs.","No rules were updated. Please verify your website can reach the Wordfence servers.":"\u017badne zasady nie zosta\u0142y zaktualizowane. Sprawd\u017a, czy Twoja witryna mo\u017ce dotrze\u0107 do serwer\u00f3w Wordfence.","No rules were updated. Your website has reached the maximum number of rule update requests. Please try again later.":"\u017badne zasady nie zosta\u0142y zaktualizowane. Twoja witryna osi\u0105gn\u0119\u0142a maksymaln\u0105 liczb\u0119 \u017c\u0105da\u0144 aktualizacji regu\u0142. Spr\u00f3buj ponownie p\u00f3\u017aniej.","Note: Status will update when changes are saved":"Uwaga: Status zostanie zaktualizowany po zapisaniu zmian","OK":"OK","Pages Not Found":"Strony nie znaleziono","Paid Members Only":"Tylko p\u0142atni cz\u0142onkowie","Please enter a valid IP address or domain name for your whois lookup.":"Wprowad\u017a prawid\u0142owy adres IP lub nazw\u0119 domeny dla wyszukiwania whois.","Please enter a valid email address.":"Prosz\u0119 wprowadzi\u0107 prawid\u0142owy adres e-mail.","Please include your support ticket number or forum username.":"Podaj numer zg\u0142oszenia do pomocy technicznej lub nazw\u0119 u\u017cytkownika forum.","Please make a backup of this file before proceeding. If you need to restore this backup file, you can copy it to the following path from your site's root:":"Przed kontynuowaniem utw\u00f3rz kopi\u0119 zapasow\u0105 tego pliku. Je\u015bli chcesz przywr\u00f3ci\u0107 ten plik kopii zapasowej, mo\u017cesz skopiowa\u0107 go do nast\u0119puj\u0105cej \u015bcie\u017cki z katalogu g\u0142\u00f3wnego witryny:","Please specify a reason":"Prosz\u0119 poda\u0107 pow\u00f3d","Please specify a valid IP address range in the form of \"1.2.3.4 - 1.2.3.5\" without quotes. Make sure the dash between the IP addresses in a normal dash (a minus sign on your keyboard) and not another character that looks like a dash.":"Podaj prawid\u0142owy zakres adres\u00f3w IP w postaci \u201e1.2.3.4 \u2013 1.2.3.5\u201d bez cudzys\u0142ow\u00f3w. Upewnij si\u0119, \u017ce my\u015blnik mi\u0119dzy adresami IP jest normalny (znak minusa na klawiaturze), a nie inny znak, kt\u00f3ry wygl\u0105da jak my\u015blnik.","Please specify either an IP address range, Hostname or a web browser pattern to match.":"Okre\u015bl pasuj\u0105cy zakres adres\u00f3w IP, nazw\u0119 hosta lub wzorzec przegl\u0105darki internetowej.","Recent Activity":"Niedawna aktywno\u015b\u0107","Recovery Codes":"Kody odzyskiwania","Redirected":"Przekierowany","Redirected by Country Blocking bypass URL":"Przekierowany przez adres URL blokowania blokowania","Referer":"Odsy\u0142aj\u0105cy","Registered Users":"Zarejestrowani u\u017cytkownicy","Restore Defaults":"Przywr\u00f3\u0107 domy\u015blne","Rule Update Failed":"Aktualizacja regu\u0142 nie powiod\u0142a si\u0119","Rules Updated":"Zaktualizowano zasady","Save Changes":"Zapisz zmiany","Scan Complete.":"Skanowanie uko\u0144czone","Scan the code below with your authenticator app to add this account. Some authenticator apps also allow you to type in the text version instead.":"Zeskanuj poni\u017cszy kod za pomoc\u0105 aplikacji uwierzytelniaj\u0105cej, aby doda\u0107 to konto. Niekt\u00f3re aplikacje uwierzytelniaj\u0105ce umo\u017cliwiaj\u0105 r\u00f3wnie\u017c wpisywanie zamiast tego wersji tekstowej.","Security Event":"Wydarzenie zwi\u0105zane z bezpiecze\u0144stwem","Send":"Wy\u015blij","Sorry, but no data for that IP or domain was found.":"Przepraszamy, ale nie znaleziono danych dla tego adresu IP lub domeny.","Specify a valid IP range":"Okre\u015bl prawid\u0142owy zakres adres\u00f3w IP","Specify a valid hostname":"Podaj poprawn\u0105 nazw\u0119 hosta","Specify an IP range, Hostname or Browser pattern":"Okre\u015bl zakres adres\u00f3w IP, nazw\u0119 hosta lub wzorzec przegl\u0105darki","Success deleting file":"Pomy\u015blnie skasowano plik","Success removing option":"Pomy\u015blnie zako\u0144czono usuwanie","Success restoring file":"Pomy\u015blne przywr\u00f3cenie pliku","Success updating option":"Pomy\u015blnie zako\u0144czono aktualizacj\u0119","Successfully deleted admin":"Pomy\u015blnie usuni\u0119to administratora","Successfully revoked admin":"Uniewa\u017cniono administratora","Test Email Sent":"Wys\u0142ano e-mail testowy","The 'How does Wordfence get IPs' option was successfully updated to the recommended value.":"Opcja \u201eJak Wordfence pobiera adresy IP\u201d zosta\u0142a pomy\u015blnie zaktualizowana do zalecanej warto\u015bci.","The Full Path disclosure issue has been fixed":"Naprawiono problem z ujawnieniem pe\u0142nej \u015bcie\u017cki","The admin user %s was successfully deleted.":"Administrator %s zosta\u0142 pomy\u015blnie usuni\u0119ty.","The file %s was successfully deleted.":"Plik %s zosta\u0142 pomy\u015blnie usuni\u0119ty.","The file %s was successfully hidden from public view.":"Plik %s zosta\u0142 pomy\u015blnie ukryty przed widokiem publicznym.","The file %s was successfully restored.":"Plik %s zosta\u0142 pomy\u015blnie przywr\u00f3cony.","The option %s was successfully removed.":"Opcja %s zosta\u0142a pomy\u015blnie usuni\u0119ta.","The request has been allowlisted. Please try it again.":"\u017b\u0105danie zosta\u0142o umieszczone na li\u015bcie dozwolonych. Spr\u00f3buj ponownie.","There was an error while sending the email.":"Wyst\u0105pi\u0142 b\u0142\u0105d podczas wysy\u0142ania e-maila.","This will be shown only once. Keep these codes somewhere safe.":"Zostanie to pokazane tylko raz. Przechowuj te kody w bezpiecznym miejscu.","Throttled":"Zd\u0142awiony","Two Factor Status":"Status dwupoziomowego uwierzytelniania","Type":"Typ","Type: %s":"Typ: %s","URL":"Adres URL","Unable to automatically hide file":"Nie mo\u017cna automatycznie ukry\u0107 pliku","Use one of these %s codes to log in if you are unable to access your phone. Codes are 16 characters long, plus optional spaces. Each one may be used only once.":"U\u017cyj jednego z tych kod\u00f3w %s, aby si\u0119 zalogowa\u0107, je\u015bli nie mo\u017cesz uzyska\u0107 dost\u0119pu do swojego telefonu. Kody maj\u0105 d\u0142ugo\u015b\u0107 16 znak\u00f3w plus opcjonalne spacje. Ka\u017cdego mo\u017cna u\u017cy\u0107 tylko raz.","Use one of these %s codes to log in if you lose access to your authenticator device. Codes are 16 characters long, plus optional spaces. Each one may be used only once.":"U\u017cyj jednego z tych kod\u00f3w %s, aby si\u0119 zalogowa\u0107, je\u015bli utracisz dost\u0119p do urz\u0105dzenia uwierzytelniaj\u0105cego. Kody maj\u0105 d\u0142ugo\u015b\u0107 16 znak\u00f3w plus opcjonalne spacje. Ka\u017cdego mo\u017cna u\u017cy\u0107 tylko raz.","User Agent":"Przegl\u0105darka","User ID":"Identyfikator u\u017cytkownika","Username":"Nazwa u\u017cytkownika","WHOIS LOOKUP":"WHOIS LOOKUP","We are about to change your .htaccess<\/em> file. Please make a backup of this file before proceeding.":"Za chwil\u0119 zmienimy Tw\u00f3j plik .htaccess<\/em>. Przed kontynuowaniem utw\u00f3rz kopi\u0119 zapasow\u0105 tego pliku.","We can't modify your .htaccess file for you because: %s":"Nie mo\u017cemy zmodyfikowa\u0107 Twojego pliku .htaccess, poniewa\u017c: %s","We encountered a problem":"Napotkali\u015bmy problem","Wordfence Firewall blocked a background request to WordPress for the URL %s. If this occurred as a result of an intentional action, you may consider allowlisting the request to allow it in the future.":"Zapora programu Wordfence zablokowa\u0142a \u017c\u0105danie w tle do WordPressa dotycz\u0105ce adresu URL %s. Je\u015bli sta\u0142o si\u0119 to w wyniku celowego dzia\u0142ania, mo\u017cesz rozwa\u017cy\u0107 dodanie pro\u015bby do listy dozwolonych, aby zezwoli\u0107 na to w przysz\u0142o\u015bci.","Wordfence is working...":"Wordfence pracuje...","You are using Nginx as your web server. You'll need to disable autoindexing in your nginx.conf. See the Nginx docs for more info<\/a> on how to do this.":"U\u017cywasz Nginx jako serwera WWW. B\u0119dziesz musia\u0142 wy\u0142\u0105czy\u0107 automatyczne indeksowanie w swoim nginx.conf. Zobacz dokumentacj\u0119 Nginx, aby uzyska\u0107 wi\u0119cej informacji<\/a> o tym, jak to zrobi\u0107 ten.","You are using an Nginx web server and using a FastCGI processor like PHP5-FPM. You will need to manually delete or hide those files.":"U\u017cywasz serwera WWW Nginx i procesora FastCGI, takiego jak PHP5-FPM. B\u0119dziesz musia\u0142 r\u0119cznie usun\u0105\u0107 lub ukry\u0107 te pliki.","You are using an Nginx web server and using a FastCGI processor like PHP5-FPM. You will need to manually modify your php.ini to disable display_error<\/em>":"U\u017cywasz serwera WWW Nginx i procesora FastCGI, takiego jak PHP5-FPM. B\u0119dziesz musia\u0142 r\u0119cznie zmodyfikowa\u0107 plik php.ini, aby wy\u0142\u0105czy\u0107 display_error<\/em>","You forgot to include a reason you're blocking this IP range. We ask you to include this for your own record keeping.":"Zapomnia\u0142e\u015b poda\u0107 pow\u00f3d, dla kt\u00f3rego blokujesz ten zakres adres\u00f3w IP. Prosimy o uwzgl\u0119dnienie tego w celu prowadzenia w\u0142asnej dokumentacji.","You have unsaved changes to your options. If you leave this page, those changes will be lost.":"Masz niezapisane zmiany w opcjach. Je\u015bli opu\u015bcisz t\u0119 stron\u0119, te zmiany zostan\u0105 utracone.","Your .htaccess has been updated successfully. Please verify your site is functioning normally.":"Tw\u00f3j plik .htaccess zosta\u0142 pomy\u015blnie zaktualizowany. Sprawd\u017a, czy Twoja witryna dzia\u0142a normalnie.","Your Wordfence activity log was sent to %s":"Tw\u00f3j dziennik aktywno\u015bci Wordfence zosta\u0142 wys\u0142any do %s","Your rules have been updated successfully.":"Twoje regu\u0142y zosta\u0142y pomy\u015blnie zaktualizowane.","Your rules have been updated successfully. You are currently using the free version of Wordfence. Upgrade to Wordfence premium to have your rules updated automatically as new threats emerge. Click here to purchase a premium license<\/a>. Note: Your rules will still update every 30 days as a free user.<\/em>":"Twoje regu\u0142y zosta\u0142y pomy\u015blnie zaktualizowane. Obecnie korzystasz z darmowej wersji Wordfence. Uaktualnij do Wordfence premium, aby Twoje regu\u0142y by\u0142y aktualizowane automatycznie w miar\u0119 pojawiania si\u0119 nowych zagro\u017ce\u0144. Kliknij tutaj, aby kupi\u0107 licencj\u0119 premium<\/a>. Uwaga: Twoje regu\u0142y b\u0119d\u0105 aktualizowane co 30 dni jako u\u017cytkownik bezp\u0142atny.<\/em>","Your test email was sent to the requested email address. The result we received from the WordPress wp_mail() function was: %s

A 'True' result means WordPress thinks the mail was sent without errors. A 'False' result means that WordPress encountered an error sending your mail. Note that it's possible to get a 'True' response with an error elsewhere in your mail system that may cause emails to not be delivered.":"Tw\u00f3j testowy e-mail zosta\u0142 wys\u0142any na \u017c\u0105dany adres e-mail. Wynik, kt\u00f3ry otrzymali\u015bmy z funkcji WordPress wp_mail(), by\u0142 nast\u0119puj\u0105cy: %s

Wynik \u201ePrawda\u201d oznacza, \u017ce WordPress uwa\u017ca, \u017ce wiadomo\u015b\u0107 zosta\u0142a wys\u0142ana bez b\u0142\u0119d\u00f3w. Wynik \u201eFa\u0142sz\u201d oznacza, \u017ce WordPress napotka\u0142 b\u0142\u0105d podczas wysy\u0142ania Twojej poczty. Pami\u0119taj, \u017ce w innym miejscu systemu pocztowego mo\u017cna uzyska\u0107 odpowied\u017a \u201ePrawda\u201d z b\u0142\u0119dem, co mo\u017ce spowodowa\u0107 niedostarczenie e-maili.","blocked by firewall":"zablokowane przez zapor\u0119","blocked by firewall for %s":"zablokowany przez zapor\u0119 sieciow\u0105 dla %s","blocked by real-time IP blocklist":"zablokowane przez list\u0119 blokad IP w czasie rzeczywistym","blocked by the Wordfence Security Network":"zablokowane przez Wordfence Security Network","blocked for %s":"zablokowane dla %s","locked out from logging in":"zablokowany przed zalogowaniem"};}catch(e){} try{(function(){window.wfi18n={__:function(text){if(window.WordfenceI18nStrings&&text in window.WordfenceI18nStrings){return window.WordfenceI18nStrings[text];} return text;}};if(typeof wp==='object'&&wp.i18n){window.wfi18n.sprintf=wp.i18n.sprintf;return;} var re={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(key){return sprintf_format(sprintf_parse(key),arguments)} function vsprintf(fmt,argv){return sprintf.apply(null,[fmt].concat(argv||[]))} function sprintf_format(parse_tree,argv){var cursor=1,tree_length=parse_tree.length,arg,output='',i,k,ph,pad,pad_character,pad_length,is_positive,sign for(i=0;i=0} switch(ph.type){case'b':arg=parseInt(arg,10).toString(2) break case'c':arg=String.fromCharCode(parseInt(arg,10)) break case'd':case'i':arg=parseInt(arg,10) break case'j':arg=JSON.stringify(arg,null,ph.width?parseInt(ph.width):0) break case'e':arg=ph.precision?parseFloat(arg).toExponential(ph.precision):parseFloat(arg).toExponential() break case'f':arg=ph.precision?parseFloat(arg).toFixed(ph.precision):parseFloat(arg) break case'g':arg=ph.precision?String(Number(arg.toPrecision(ph.precision))):parseFloat(arg) break case'o':arg=(parseInt(arg,10)>>>0).toString(8) break case's':arg=String(arg) arg=(ph.precision?arg.substring(0,ph.precision):arg) break case't':arg=String(!!arg) arg=(ph.precision?arg.substring(0,ph.precision):arg) break case'T':arg=Object.prototype.toString.call(arg).slice(8,-1).toLowerCase() arg=(ph.precision?arg.substring(0,ph.precision):arg) break case'u':arg=parseInt(arg,10)>>>0 break case'v':arg=arg.valueOf() arg=(ph.precision?arg.substring(0,ph.precision):arg) break case'x':arg=(parseInt(arg,10)>>>0).toString(16) break case'X':arg=(parseInt(arg,10)>>>0).toString(16).toUpperCase() break} if(re.json.test(ph.type)){output+=arg} else{if(re.number.test(ph.type)&&(!is_positive||ph.sign)){sign=is_positive?'+':'-' arg=arg.toString().replace(re.sign,'')} else{sign=''} pad_character=ph.pad_char?ph.pad_char==='0'?'0':ph.pad_char.charAt(1):' ' pad_length=ph.width-(sign+arg).length pad=ph.width?(pad_length>0?pad_character.repeat(pad_length):''):'' output+=ph.align?sign+arg+pad:(pad_character==='0'?sign+pad+arg:pad+sign+arg)}}} return output} var sprintf_cache=Object.create(null) function sprintf_parse(fmt){if(sprintf_cache[fmt]){return sprintf_cache[fmt]} var _fmt=fmt,match,parse_tree=[],arg_names=0 while(_fmt){if((match=re.text.exec(_fmt))!==null){parse_tree.push(match[0])} else if((match=re.modulo.exec(_fmt))!==null){parse_tree.push('%')} else if((match=re.placeholder.exec(_fmt))!==null){if(match[2]){arg_names|=1 var field_list=[],replacement_field=match[2],field_match=[] if((field_match=re.key.exec(replacement_field))!==null){field_list.push(field_match[1]) while((replacement_field=replacement_field.substring(field_match[0].length))!==''){if((field_match=re.key_access.exec(replacement_field))!==null){field_list.push(field_match[1])} else if((field_match=re.index_access.exec(replacement_field))!==null){field_list.push(field_match[1])} else{throw new SyntaxError('[sprintf] failed to parse named argument key')}}} else{throw new SyntaxError('[sprintf] failed to parse named argument key')} match[2]=field_list} else{arg_names|=2} if(arg_names===3){throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')} parse_tree.push({placeholder:match[0],param_no:match[1],keys:match[2],sign:match[3],pad_char:match[4],align:match[5],width:match[6],precision:match[7],type:match[8]})} else{throw new SyntaxError('[sprintf] unexpected placeholder')} _fmt=_fmt.substring(match[0].length)} return sprintf_cache[fmt]=parse_tree} window.wfi18n.sprintf=sprintf;})();}catch(e){} try{/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="
",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});}catch(e){} try{!function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-wfbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+tt).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),at.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(st,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(et),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),at.one(rt,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&at.one(rt,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?P.html(_.get("close")).appendTo(b):P.appendTo("
"),w()}}function p(){x||(V=!1,E=t(i),x=n(st).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(st,"Overlay").hide(),L=t([n(st,"LoadingOverlay")[0],n(st,"LoadingGraphic")[0]]),y=n(st,"Wrapper"),b=n(st,"Content").append(F=n(st,"Title"),R=n(st,"Current"),K=t(''+'
';} html+='
';for(var i=1;i<=2;i++){html+=''+this$1.getWeekDayNames(i)+'
<>
';} html+='
';html+='';html+='';html+='';return html;};HotelDatepicker.prototype.showMonth=function showMonth(date,month){var name=this.getMonthName(date.getMonth());var monthDom=this.getMonthDom(month);var monthName=monthDom.getElementsByClassName('datepicker__month-name')[0];var monthBody=monthDom.getElementsByTagName('tbody')[0];monthName.textContent=name+' '+date.getFullYear();this.emptyElement(monthBody);monthBody.insertAdjacentHTML('beforeend',this.createMonthDomString(date));this.updateSelectableRange();this['month'+month]=date;};HotelDatepicker.prototype.createMonthDomString=function createMonthDomString(_date){var this$1=this;var days=[];var html='';var valid;_date.setDate(1);var dayOfWeek=_date.getDay();var currentMonth=_date.getMonth();if((dayOfWeek===0)&&(this.startOfWeek==='monday')){dayOfWeek=7;} if(dayOfWeek>0){for(var i=dayOfWeek;i>0;i--){var _day=new Date(_date.getTime()-(86400000*i));valid=this$1.isValidDate(_day.getTime());if((this$1.startDate&&this$1.compareDay(_day,this$1.startDate)<0)||(this$1.endDate&&this$1.compareDay(_day,this$1.endDate)>0)){valid=false;} days.push({date:_day,type:'lastMonth',day:_day.getDate(),time:_day.getTime(),valid:valid});}} for(var i$1=0;i$1<40;i$1++){var _day$1=this$1.addDays(_date,i$1);valid=this$1.isValidDate(_day$1.getTime());if((this$1.startDate&&this$1.compareDay(_day$1,this$1.startDate)<0)||(this$1.endDate&&this$1.compareDay(_day$1,this$1.endDate)>0)){valid=false;} days.push({date:_day$1,type:_day$1.getMonth()===currentMonth?'visibleMonth':'nextMonth',day:_day$1.getDate(),time:_day$1.getTime(),valid:valid});} for(var week=0;week<6;week++){if(days[week*7].type==='nextMonth'){break;} html+='';for(var i$2=0;i$2<7;i$2++){var _day$2=(this$1.startOfWeek==='monday')?i$2+1:i$2;_day$2=days[(week*7)+_day$2];var isToday=this$1.getDateString(_day$2.time)===this$1.getDateString(new Date());var isStartDate=this$1.getDateString(_day$2.time)===this$1.getDateString(this$1.startDate);var isDisabled=false;var isNoCheckIn=false;var isNoCheckOut=false;var isDayOfWeekDisabled=false;var isFirstEnabledDate=false;var isDayBeforeDisabledDate=false;if(_day$2.valid||_day$2.type==='visibleMonth'){var dateString=this$1.getDateString(_day$2.time,'YYYY-MM-DD');if(this$1.disabledDates.length>0){var limit=this$1.getClosestDates(_day$2.date);if(limit[0]&&limit[1]){if(this$1.compareDay(_day$2.date,limit[0])&&(this$1.countDays(limit[0],limit[1])-2)>0){var daysBeforeNextDisabledDate=this$1.countDays(limit[1],_day$2.date)-1;var daysAfterPrevDisabledDate=this$1.countDays(_day$2.date,limit[0])-1;if(this$1.selectForward&&daysBeforeNextDisabledDate-1){_day$2.valid=false;isDisabled=true;this$1.isFirstDisabledDate++;}else{this$1.isFirstDisabledDate=0;}} if(this$1.disabledDaysOfWeek.length>0){if(this$1.disabledDaysOfWeek.indexOf(fecha.format(_day$2.time,'dddd'))>-1){_day$2.valid=false;isDayOfWeekDisabled=true;}} if(this$1.noCheckInDates.length>0){if(this$1.noCheckInDates.indexOf(dateString)>-1){isNoCheckIn=true;isFirstEnabledDate=false;}} if(this$1.noCheckOutDates.length>0){if(this$1.noCheckOutDates.indexOf(dateString)>-1){isNoCheckOut=true;}}} var classes=['datepicker__month-day--'+_day$2.type,'datepicker__month-day--'+(_day$2.valid?'valid':'invalid'),isToday?'datepicker__month-day--today':'',isDisabled?'datepicker__month-day--disabled':'',isDisabled&&this$1.enableCheckout&&(this$1.isFirstDisabledDate===1)?'datepicker__month-day--checkout-enabled':'',isDayBeforeDisabledDate?'datepicker__month-day--before-disabled-date':'',isStartDate||isFirstEnabledDate?'datepicker__month-day--checkin-only':'',isNoCheckIn?'datepicker__month-day--no-checkin':'',isNoCheckOut?'datepicker__month-day--no-checkout':'',isDayOfWeekDisabled?'datepicker__month-day--day-of-week-disabled':''];var title='';if(isNoCheckIn){title=this$1.i18n['checkin-disabled'];} if(isNoCheckOut){if(title){title+='. ';} title+=this$1.i18n['checkout-disabled'];} var dayAttributes={time:_day$2.time,class:classes.join(' ')};if(title){dayAttributes.title=title;} html+=''+_day$2.day+'';} html+='';} return html;};HotelDatepicker.prototype.openDatepicker=function openDatepicker(){var this$1=this;if(!this.isOpen){this.removeClass(this.datepicker,'datepicker--closed');this.addClass(this.datepicker,'datepicker--open');this.checkAndSetDefaultValue();this.slideDown(this.datepicker,this.animationSpeed);this.isOpen=true;this.showSelectedDays();this.disableNextPrevButtons();this.addBoundedListener(document,'click',function(evt){return this$1.documentClick(evt);});if(this.onOpenDatepicker){this.onOpenDatepicker();}}};HotelDatepicker.prototype.closeDatepicker=function closeDatepicker(){if(!this.isOpen){return;} this.removeClass(this.datepicker,'datepicker--open');this.addClass(this.datepicker,'datepicker--closed');this.slideUp(this.datepicker,this.animationSpeed);this.isOpen=false;var evt=document.createEvent('Event');evt.initEvent('afterClose',true,true);this.input.dispatchEvent(evt);this.removeAllBoundedListeners(document,'click');};HotelDatepicker.prototype.autoclose=function autoclose(){if(this.autoClose&&this.changed&&this.isOpen&&this.start&&this.end){this.closeDatepicker();}};HotelDatepicker.prototype.documentClick=function documentClick(evt){if(!this.parent.contains(evt.target)&&evt.target!==this.input){this.closeDatepicker();}else if(evt.target.tagName.toLowerCase()==='td'){this.dayClicked(evt.target);}};HotelDatepicker.prototype.datepickerHover=function datepickerHover(evt){if(evt.target.tagName&&evt.target.tagName.toLowerCase()==='td'){this.dayHovering(evt.target);}};HotelDatepicker.prototype.datepickerMouseOut=function datepickerMouseOut(evt){if(evt.target.tagName&&evt.target.tagName.toLowerCase()==='td'){var tooltipContainer=document.getElementById(this.getTooltipId());tooltipContainer.style.display='none';}};HotelDatepicker.prototype.checkAndSetDefaultValue=function checkAndSetDefaultValue(){var value=this.getValue();var dates=value?value.split(this.separator):'';if(dates&&(dates.length>=2)){var _format=this.format;if(_format.match(/Do/)){_format=_format.replace(/Do/,'D');dates[0]=dates[0].replace(/(\d+)(th|nd|st)/,'$1');dates[1]=dates[1].replace(/(\d+)(th|nd|st)/,'$1');} this.changed=false;this.setDateRange(this.parseDate(dates[0],_format),this.parseDate(dates[1],_format));this.changed=true;}else if(this.showTopbar){var selectedInfo=this.datepicker.getElementsByClassName('datepicker__info--selected')[0];selectedInfo.style.display='none';}};HotelDatepicker.prototype.setDateRange=function setDateRange(date1,date2){if(date1.getTime()>date2.getTime()){var tmp=date2;date2=date1;date1=tmp;tmp=null;} var valid=true;if((this.startDate&&this.compareDay(date1,this.startDate)<0)||(this.endDate&&this.compareDay(date2,this.endDate)>0)){valid=false;} if(!valid){this.showMonth(this.startDate,1);this.showMonth(this.getNextMonth(this.startDate),2);this.showSelectedDays();this.disableNextPrevButtons();return;} date1.setTime(date1.getTime()+(12*60*60*1000));date2.setTime(date2.getTime()+(12*60*60*1000));this.start=date1.getTime();this.end=date2.getTime();if((this.compareDay(date1,date2)>0&&this.compareMonth(date1,date2)===0)){date2=this.getNextMonth(date1);} if(this.compareMonth(date1,date2)===0){date2=this.getNextMonth(date1);} this.showMonth(date1,1);this.showMonth(date2,2);this.showSelectedDays();this.disableNextPrevButtons();this.checkSelection();this.showSelectedInfo();this.autoclose();};HotelDatepicker.prototype.showSelectedDays=function showSelectedDays(){var this$1=this;if(!this.start&&!this.end){return;} var days=this.datepicker.getElementsByTagName('td');for(var i=0;i=time&&this$1.start<=time)||(this$1.start&&!this$1.end&&this$1.getDateString(this$1.start,'YYYY-MM-DD')===this$1.getDateString(time,'YYYY-MM-DD'))){this$1.addClass(days[i],'datepicker__month-day--selected');}else{this$1.removeClass(days[i],'datepicker__month-day--selected');} if(this$1.start&&this$1.getDateString(this$1.start,'YYYY-MM-DD')===this$1.getDateString(time,'YYYY-MM-DD')){this$1.addClass(days[i],'datepicker__month-day--first-day-selected');}else{this$1.removeClass(days[i],'datepicker__month-day--first-day-selected');} if(this$1.end&&this$1.getDateString(this$1.end,'YYYY-MM-DD')===this$1.getDateString(time,'YYYY-MM-DD')){this$1.addClass(days[i],'datepicker__month-day--last-day-selected');}else{this$1.removeClass(days[i],'datepicker__month-day--last-day-selected');}}};HotelDatepicker.prototype.showSelectedInfo=function showSelectedInfo(){if(!this.showTopbar){if(this.start&&this.end){var dateRangeValue=this.getDateString(new Date(this.start))+this.separator+this.getDateString(new Date(this.end));this.setValue(dateRangeValue,this.getDateString(new Date(this.start)),this.getDateString(new Date(this.end)));this.changed=true;} return;} var selectedInfo=this.datepicker.getElementsByClassName('datepicker__info--selected')[0];var elStart=selectedInfo.getElementsByClassName('datepicker__info-text--start-day')[0];var elEnd=selectedInfo.getElementsByClassName('datepicker__info-text--end-day')[0];var elSelected=selectedInfo.getElementsByClassName('datepicker__info-text--selected-days')[0];var closeButton=document.getElementById(this.getCloseButtonId());elStart.textContent='...';elEnd.textContent='...';elSelected.style.display='none';if(this.start){selectedInfo.style.display='';elStart.textContent=this.getDateString(new Date(parseInt(this.start,10)),this.infoFormat);} if(this.end){elEnd.textContent=this.getDateString(new Date(parseInt(this.end,10)),this.infoFormat);} if(this.start&&this.end){var count=this.countDays(this.end,this.start)-1;var countText=count===1?count+' '+this.lang('night'):count+' '+this.lang('nights');var dateRangeValue$1=this.getDateString(new Date(this.start))+this.separator+this.getDateString(new Date(this.end));elSelected.style.display='';elSelected.firstElementChild.textContent=countText;closeButton.disabled=false;this.setValue(dateRangeValue$1,this.getDateString(new Date(this.start)),this.getDateString(new Date(this.end)));this.changed=true;}else{closeButton.disabled=true;}};HotelDatepicker.prototype.dayClicked=function dayClicked(day){if(this.hasClass(day,'datepicker__month-day--invalid')){return;} var isSelectStart=(this.start&&this.end)||(!this.start&&!this.end);if(isSelectStart){if(this.hasClass(day,'datepicker__month-day--no-checkin')){return;}}else if(this.start){if(this.hasClass(day,'datepicker__month-day--no-checkout')){return;}} var time=parseInt(day.getAttribute('time'),10);this.addClass(day,'datepicker__month-day--selected');if(isSelectStart){this.start=time;this.end=false;}else if(this.start){this.end=time;} if(this.start&&this.end&&this.start>this.end){var tmp=this.end;this.end=this.start;this.start=tmp;} this.start=parseInt(this.start,10);this.end=parseInt(this.end,10);this.clearHovering();if(this.start&&!this.end){this.dayHovering(day);} this.updateSelectableRange();this.checkSelection();this.showSelectedInfo();this.showSelectedDays();this.autoclose();if(this.onDayClick){this.onDayClick();} if(this.end&&this.onSelectRange){this.onSelectRange();}};HotelDatepicker.prototype.isValidDate=function isValidDate(time){time=parseInt(time,10);if((this.startDate&&this.compareDay(time,this.startDate)<0)||(this.endDate&&this.compareDay(time,this.endDate)>0)){return false;} if(this.start&&!this.end){if((this.maxDays>0&&this.countDays(time,this.start)>this.maxDays)||(this.minDays>0&&this.countDays(time,this.start)>1&&this.countDays(time,this.start)0){var limit=this.getClosestDates(new Date(parseInt(this.start,10)));if(limit[0]&&this.compareDay(time,limit[0])<=0){return false;} if(limit[1]&&this.compareDay(time,limit[1])>=0){return false;}}} return true;};HotelDatepicker.prototype.checkSelection=function checkSelection(){var this$1=this;var numberOfDays=this.countDays(this.end,this.start);var bar=this.showTopbar?this.datepicker.getElementsByClassName('datepicker__info--feedback')[0]:false;if(this.maxDays&&numberOfDays>this.maxDays){this.start=false;this.end=false;var days=this.datepicker.getElementsByTagName('td');for(var i=0;i0){return 1;} if(p===0){return 0;} return-1;};HotelDatepicker.prototype.compareMonth=function compareMonth(month1,month2){var p=parseInt(this.getDateString(month1,'YYYYMM'),10)-parseInt(this.getDateString(month2,'YYYYMM'),10);if(p>0){return 1;} if(p===0){return 0;} return-1;};HotelDatepicker.prototype.daysFrom1970=function daysFrom1970(t){return Math.floor(this.toLocalTimestamp(t)/86400000);};HotelDatepicker.prototype.toLocalTimestamp=function toLocalTimestamp(t){if(typeof t==='object'&&t.getTime){t=t.getTime();} if(typeof t==='string'&&!t.match(/\d{13}/)){t=this.parseDate(t).getTime();} t=parseInt(t,10)-(new Date().getTimezoneOffset()*60*1000);return t;};HotelDatepicker.prototype.printAttributes=function printAttributes(obj){var _obj=obj;var attribute='';for(var attr in obj){if(Object.prototype.hasOwnProperty.call(_obj,attr)){attribute+=attr+'="'+_obj[attr]+'" ';}} return attribute;};HotelDatepicker.prototype.goToNextMonth=function goToNextMonth(e){var thisMonth=e.target.getAttribute('month');var isMonth2=thisMonth>1;var nextMonth=isMonth2?this.month2:this.month1;nextMonth=this.getNextMonth(nextMonth);if((!this.isSingleMonth()&&!isMonth2&&this.compareMonth(nextMonth,this.month2)>=0)||this.isMonthOutOfRange(nextMonth)){return;} if(this.moveBothMonths&&isMonth2){this.showMonth(this.month2,1);} this.showMonth(nextMonth,thisMonth);this.showSelectedDays();this.disableNextPrevButtons();};HotelDatepicker.prototype.goToPreviousMonth=function goToPreviousMonth(e){var thisMonth=e.target.getAttribute('month');var isMonth2=thisMonth>1;var prevMonth=isMonth2?this.month2:this.month1;prevMonth=this.getPrevMonth(prevMonth);if((isMonth2&&this.compareMonth(prevMonth,this.month1)<=0)||this.isMonthOutOfRange(prevMonth)){return;} if(this.moveBothMonths&&!isMonth2){this.showMonth(this.month1,2);} this.showMonth(prevMonth,thisMonth);this.showSelectedDays();this.disableNextPrevButtons();};HotelDatepicker.prototype.isSingleMonth=function isSingleMonth(){return!this.isVisible(this.getMonthDom(2));};HotelDatepicker.prototype.isMonthOutOfRange=function isMonthOutOfRange(month){var _m=new Date(month.valueOf());if((this.startDate&&(new Date(_m.getFullYear(),_m.getMonth()+1,0,23,59,59)this.endDate))){return true;} return false;};HotelDatepicker.prototype.disableNextPrevButtons=function disableNextPrevButtons(){if(this.isSingleMonth()){return;} var month1=parseInt(this.getDateString(this.month1,'YYYYMM'),10);var month2=parseInt(this.getDateString(this.month2,'YYYYMM'),10);var d=Math.abs(month1-month2);var nextButtons=this.datepicker.getElementsByClassName('datepicker__month-button--next');var prevButtons=this.datepicker.getElementsByClassName('datepicker__month-button--prev');if(d>1&&d!==89){this.removeClass(nextButtons[0],'datepicker__month-button--disabled');this.removeClass(prevButtons[1],'datepicker__month-button--disabled');}else{this.addClass(nextButtons[0],'datepicker__month-button--disabled');this.addClass(prevButtons[1],'datepicker__month-button--disabled');} if(this.isMonthOutOfRange(this.getPrevMonth(this.month1))){this.addClass(prevButtons[0],'datepicker__month-button--disabled');}else{this.removeClass(prevButtons[0],'datepicker__month-button--disabled');} if(this.isMonthOutOfRange(this.getNextMonth(this.month2))){this.addClass(nextButtons[1],'datepicker__month-button--disabled');}else{this.removeClass(nextButtons[1],'datepicker__month-button--disabled');}};HotelDatepicker.prototype.topBarDefaultText=function topBarDefaultText(){if(!this.showTopbar){return;} var topBarText='';if(this.minDays&&this.maxDays){topBarText=this.lang('info-range');}else if(this.minDays&&this.minDays>2){topBarText=this.lang('info-more-plural');}else if(this.minDays){topBarText=this.lang('info-more');}else{topBarText=this.lang('info-default');} var bar=this.datepicker.getElementsByClassName('datepicker__info--feedback')[0];topBarText=topBarText.replace(/%d/,(this.minDays-1)).replace(/%d/,(this.maxDays-1));this.addClass(bar,'datepicker__info--help');this.removeClass(bar,'datepicker__info--error');bar.textContent=topBarText;};HotelDatepicker.prototype.topBarErrorText=function topBarErrorText(bar,errorText,errorValue){if(!this.showTopbar){return;} this.addClass(bar,'datepicker__info--error');this.removeClass(bar,'datepicker__info--help');if(errorValue>1){errorText=this.lang(errorText+'-plural');errorText=errorText.replace('%d',errorValue);bar.textContent=errorText;}else{errorText=this.lang(errorText);} var selectedInfo=this.datepicker.getElementsByClassName('datepicker__info--selected')[0];selectedInfo.style.display='none';};HotelDatepicker.prototype.updateSelectableRange=function updateSelectableRange(){var this$1=this;var days=this.datepicker.getElementsByTagName('td');var isSelecting=this.start&&!this.end;for(var i=0;i=time)||(this$1.start>time&&hoverTime<=time))){this$1.addClass(days[i],'datepicker__month-day--hovering');}else{this$1.removeClass(days[i],'datepicker__month-day--hovering');}} if(this.start&&!this.end){var nights=this.countDays(hoverTime,this.start)-1;if(this.hoveringTooltip){if(typeof this.hoveringTooltip==='function'){tooltip=this.hoveringTooltip(nights,this.start,hoverTime);}else if(this.hoveringTooltip===true&&nights>0){var label=nights===1?this.lang('night'):this.lang('nights');tooltip=(nights)+' '+label;}}}} if(tooltip){var dayBounding=day.getBoundingClientRect();var datepickerBounding=this.datepicker.getBoundingClientRect();var _left=dayBounding.left-datepickerBounding.left;var _top=dayBounding.top-datepickerBounding.top;_left+=dayBounding.width/2;var tooltipContainer=document.getElementById(this.getTooltipId());tooltipContainer.style.display='';tooltipContainer.textContent=tooltip;var w=tooltipContainer.getBoundingClientRect().width;var h=tooltipContainer.getBoundingClientRect().height;_left-=w/2;_top-=h;setTimeout(function(){tooltipContainer.style.left=_left+'px';tooltipContainer.style.top=_top+'px';},10);}else{var tooltipContainer$1=document.getElementById(this.getTooltipId());tooltipContainer$1.style.display='none';}};HotelDatepicker.prototype.clearHovering=function clearHovering(){var this$1=this;var days=this.datepicker.getElementsByTagName('td');for(var i=0;ithis.disabledDatesTime[this.disabledDatesTime.length-1]){dates=[this.disabledDatesTime[this.disabledDatesTime.length-1],false];}else{var bestPrevDate=this.disabledDatesTime.length;var bestNextDate=this.disabledDatesTime.length;var maxDateValue=Math.abs((new Date(0,0,0)).valueOf());var bestPrevDiff=maxDateValue;var bestNextDiff=-maxDateValue;var currDiff=0;var i;for(i=0;ibestNextDiff){bestNextDate=i;bestNextDiff=currDiff;} if(currDiff>0&&currDiff=2)){var _format=this.format;if(_format.match(/Do/)){_format=_format.replace(/Do/,'D');dates[0]=dates[0].replace(/(\d+)(th|nd|st)/,'$1');dates[1]=dates[1].replace(/(\d+)(th|nd|st)/,'$1');} count=this.countDays(this.parseDate(dates[0],_format),this.parseDate(dates[1],_format))-1;}} return count;};HotelDatepicker.prototype.destroy=function destroy(){if(document.getElementById(this.getDatepickerId())){this.removeAllBoundedListeners(this.input,'click');this.removeAllBoundedListeners(document,'click');this.removeAllBoundedListeners(this.input,'change');this.datepicker.parentNode.removeChild(this.datepicker);}};return HotelDatepicker;}());}catch(e){} try{ /*! hotel-datepicker 3.6.8 - Copyright 2019 Benito Lopez (http://lopezb.com) - https://github.com/benitolopez/hotel-datepicker - MIT */ var HotelDatepickerMod=(function(){'use strict';var idCounter=0;var HotelDatepicker=function HotelDatepicker(input,options){this._boundedEventHandlers={};this.id=HotelDatepicker.getNewId();var opts=options||{};this.format=opts.format||'YYYY-MM-DD';this.infoFormat=opts.infoFormat||this.format;this.separator=opts.separator||' - ';this.startOfWeek=opts.startOfWeek||'sunday';this.endDate=opts.endDate||false;this.minNights=opts.minNights||1;this.maxNights=opts.maxNights||0;this.selectForward=opts.selectForward||false;this.disabledDates=opts.disabledDates||[];this.noCheckInDates=opts.noCheckInDates||[];this.noCheckOutDates=opts.noCheckOutDates||[];this.disabledDaysOfWeek=opts.disabledDaysOfWeek||[];this.enableCheckout=opts.enableCheckout||false;this.container=opts.container||'';this.animationSpeed=opts.animationSpeed||'.5s';this.hoveringTooltip=opts.hoveringTooltip||true;this.autoClose=opts.autoClose===undefined?true:opts.autoClose;this.showTopbar=opts.showTopbar===undefined?true:opts.showTopbar;this.moveBothMonths=opts.moveBothMonths||false;this.alwaysOpened=opts.alwaysOpened||false;this.disableTooltips=opts.disableTooltips||false;this.i18n=opts.i18n||{selected:'Your stay:',night:'Night',nights:'Nights',button:'Close','checkin-disabled':'Check-in disabled','checkout-disabled':'Check-out disabled','day-names-short':['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],'day-names':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'month-names-short':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],'month-names':['January','February','March','April','May','June','July','August','September','October','November','December'],'error-more':'Date range should not be more than 1 night','error-more-plural':'Date range should not be more than %d nights','error-less':'Date range should not be less than 1 night','error-less-plural':'Date range should not be less than %d nights','info-more':'Please select a date range of at least 1 night','info-more-plural':'Please select a date range of at least %d nights','info-range':'Please select a date range between %d and %d nights','info-default':'Please select a date range'};this.getValue=opts.getValue||function(){return input.value;};this.setValue=opts.setValue||function(s){input.value=s;};this.onDayClick=opts.onDayClick===undefined?false:opts.onDayClick;this.onOpenDatepicker=opts.onOpenDatepicker===undefined?false:opts.onOpenDatepicker;this.onSelectRange=opts.onSelectRange===undefined?false:opts.onSelectRange;this.input=input;this.init();};HotelDatepicker.prototype.addBoundedListener=function addBoundedListener(node,event,handler,capture){if(!(node in this._boundedEventHandlers)){this._boundedEventHandlers[node]={};} if(!(event in this._boundedEventHandlers[node])){this._boundedEventHandlers[node][event]=[];} var boundedHandler=handler.bind(this);this._boundedEventHandlers[node][event].push([boundedHandler,capture]);node.addEventListener(event,boundedHandler,capture);};HotelDatepicker.prototype.removeAllBoundedListeners=function removeAllBoundedListeners(node,event){if(node in this._boundedEventHandlers){var handlers=this._boundedEventHandlers[node];if(event in handlers){var eventHandlers=handlers[event];for(var i=eventHandlers.length;i--;){var handler=eventHandlers[i];node.removeEventListener(event,handler[0],handler[1]);}}}};HotelDatepicker.getNewId=function getNewId(){return++idCounter;};HotelDatepicker.prototype.setFechaI18n=function setFechaI18n(){fecha.defaultI18n.dayNamesShort=this.i18n['day-names-short'];fecha.defaultI18n.dayNames=this.i18n['day-names'];fecha.defaultI18n.monthNamesShort=this.i18n['month-names-short'];fecha.defaultI18n.monthNames=this.i18n['month-names'];};HotelDatepicker.prototype.getWeekDayNames=function getWeekDayNames(){var this$1=this;var week='';if(this.startOfWeek==='monday'){for(var i=0;i<7;i++){week+=''+this$1.lang('day-names-short')[(1+i)%7]+'';} return week;} for(var i$1=0;i$1<7;i$1++){week+=''+this$1.lang('day-names-short')[i$1]+'';} return week;};HotelDatepicker.prototype.getMonthDom=function getMonthDom(month){return document.getElementById(this.getMonthTableId(month));};HotelDatepicker.prototype.getMonthName=function getMonthName(m){return this.lang('month-names')[m];};HotelDatepicker.prototype.getDatepickerId=function getDatepickerId(){return'datepicker-'+this.generateId();};HotelDatepicker.prototype.getMonthTableId=function getMonthTableId(month){return'month-'+month+'-'+this.generateId();};HotelDatepicker.prototype.getCloseButtonId=function getCloseButtonId(){return'close-'+this.generateId();};HotelDatepicker.prototype.getTooltipId=function getTooltipId(){return'tooltip-'+this.generateId();};HotelDatepicker.prototype.getNextMonth=function getNextMonth(month){var _m=new Date(month.valueOf());return new Date(_m.setMonth(_m.getMonth()+1,1));};HotelDatepicker.prototype.getPrevMonth=function getPrevMonth(month){var _m=new Date(month.valueOf());return new Date(_m.setMonth(_m.getMonth()-1,1));};HotelDatepicker.prototype.getDateString=function getDateString(date,format){if(format===void 0)format=this.format;this.setFechaI18n();return fecha.format(date,format);};HotelDatepicker.prototype.parseDate=function parseDate(date,format){if(format===void 0)format=this.format;this.setFechaI18n();return fecha.parse(date,format);};HotelDatepicker.prototype.init=function init(){this.parent=this.container?this.container:this.input.parentElement;this.start=false;this.end=false;this.minDays=this.minNights>1?this.minNights+1:2;this.maxDays=this.maxNights>0?this.maxNights+1:0;if(this.startDate&&typeof this.startDate==='string'){this.startDate=this.parseDate(this.startDate);}else{this.startDate=new Date();} if(this.endDate&&typeof this.endDate==='string'){this.endDate=this.parseDate(this.endDate);} if(this.isTouchDevice()){this.hoveringTooltip=false;} this.isOpen=false;this.changed=false;this.createDom();var defaultTime=new Date();if(this.startDate&&this.compareMonth(defaultTime,this.startDate)<0){defaultTime=new Date(this.startDate.getTime());} if(this.endDate&&this.compareMonth(this.getNextMonth(defaultTime),this.endDate)>0){defaultTime=new Date(this.getPrevMonth(this.endDate.getTime()));} if(this.disabledDates.length>0){this.parseDisabledDates();} this.showMonth(defaultTime,1);this.showMonth(this.getNextMonth(defaultTime),2);this.topBarDefaultText();this.addListeners();this.isFirstDisabledDate=0;if(this.alwaysOpened){this.openDatepicker();}};HotelDatepicker.prototype.addListeners=function addListeners(){var this$1=this;var nextButtons=this.datepicker.getElementsByClassName('datepicker__month-button--next');for(var i=0;i';html+='
';if(this.showTopbar){html+='
'+'
'+this.lang('selected')+' ...'+' '+this.separator+' ... ()'+'
'+''+''+'
';} html+='
';for(var i=1;i<=2;i++){html+=''+this$1.getWeekDayNames(i)+'
<>
';} html+='
';html+='';html+='
';html+='';return html;};HotelDatepicker.prototype.showMonth=function showMonth(date,month){var name=this.getMonthName(date.getMonth());var monthDom=this.getMonthDom(month);var monthName=monthDom.getElementsByClassName('datepicker__month-name')[0];var monthBody=monthDom.getElementsByTagName('tbody')[0];monthName.textContent=name+' '+date.getFullYear();this.emptyElement(monthBody);monthBody.insertAdjacentHTML('beforeend',this.createMonthDomString(date));this.updateSelectableRange();this['month'+month]=date;};HotelDatepicker.prototype.createMonthDomString=function createMonthDomString(_date){var this$1=this;var days=[];var html='';var valid;_date.setDate(1);var dayOfWeek=_date.getDay();var currentMonth=_date.getMonth();if((dayOfWeek===0)&&(this.startOfWeek==='monday')){dayOfWeek=7;} if(dayOfWeek>0){for(var i=dayOfWeek;i>0;i--){var _day=new Date(_date.getTime()-(86400000*i));valid=this$1.isValidDate(_day.getTime());if((this$1.startDate&&this$1.compareDay(_day,this$1.startDate)<0)||(this$1.endDate&&this$1.compareDay(_day,this$1.endDate)>0)){valid=false;} days.push({date:_day,type:'lastMonth',day:_day.getDate(),time:_day.getTime(),valid:valid});}} for(var i$1=0;i$1<40;i$1++){var _day$1=this$1.addDays(_date,i$1);valid=this$1.isValidDate(_day$1.getTime());if((this$1.startDate&&this$1.compareDay(_day$1,this$1.startDate)<0)||(this$1.endDate&&this$1.compareDay(_day$1,this$1.endDate)>0)){valid=false;} days.push({date:_day$1,type:_day$1.getMonth()===currentMonth?'visibleMonth':'nextMonth',day:_day$1.getDate(),time:_day$1.getTime(),valid:valid});} for(var week=0;week<6;week++){if(days[week*7].type==='nextMonth'){break;} html+='';for(var i$2=0;i$2<7;i$2++){var _day$2=(this$1.startOfWeek==='monday')?i$2+1:i$2;_day$2=days[(week*7)+_day$2];var isToday=this$1.getDateString(_day$2.time)===this$1.getDateString(new Date());var isStartDate=this$1.getDateString(_day$2.time)===this$1.getDateString(this$1.startDate);var isDisabled=false;var isNoCheckIn=false;var isNoCheckOut=false;var isDayOfWeekDisabled=false;var isFirstEnabledDate=false;var isDayBeforeDisabledDate=false;if(_day$2.valid||_day$2.type==='visibleMonth'){var dateString=this$1.getDateString(_day$2.time,'YYYY-MM-DD');if(this$1.disabledDates.length>0){var limit=this$1.getClosestDates(_day$2.date);if(limit[0]&&limit[1]){if(this$1.compareDay(_day$2.date,limit[0])&&(this$1.countDays(limit[0],limit[1])-2)>0){var daysBeforeNextDisabledDate=this$1.countDays(limit[1],_day$2.date)-1;var daysAfterPrevDisabledDate=this$1.countDays(_day$2.date,limit[0])-1;if(this$1.selectForward&&daysBeforeNextDisabledDate-1){_day$2.valid=false;isDisabled=true;this$1.isFirstDisabledDate++;}else{this$1.isFirstDisabledDate=0;}} if(this$1.disabledDaysOfWeek.length>0){if(this$1.disabledDaysOfWeek.indexOf(fecha.format(_day$2.time,'dddd'))>-1){_day$2.valid=false;isDayOfWeekDisabled=true;}} if(this$1.noCheckInDates.length>0){if(this$1.noCheckInDates.indexOf(dateString)>-1){isNoCheckIn=true;isFirstEnabledDate=false;}} if(this$1.noCheckOutDates.length>0){if(this$1.noCheckOutDates.indexOf(dateString)>-1){isNoCheckOut=true;}}} var classes=['datepicker__month-day--'+_day$2.type,'datepicker__month-day--'+(_day$2.valid?'valid':'invalid'),isToday?'datepicker__month-day--today':'',isDisabled?'datepicker__month-day--disabled':'',isDisabled&&this$1.enableCheckout&&(this$1.isFirstDisabledDate===1)?'datepicker__month-day--checkout-enabled':'',isDayBeforeDisabledDate?'datepicker__month-day--before-disabled-date':'',isStartDate||isFirstEnabledDate?'datepicker__month-day--checkin-only':'',isNoCheckIn?'datepicker__month-day--no-checkin':'',isNoCheckOut?'datepicker__month-day--no-checkout':'',isDayOfWeekDisabled?'datepicker__month-day--day-of-week-disabled':''];var title='';if(isNoCheckIn){title=this$1.i18n['checkin-disabled'];} if(isNoCheckOut){if(title){title+='. ';} title+=this$1.i18n['checkout-disabled'];} var dayAttributes={time:_day$2.time,class:classes.join(' ')};if(title){dayAttributes.title=title;} html+=''+_day$2.day+'';} html+='';} return html;};HotelDatepicker.prototype.openDatepicker=function openDatepicker(){var this$1=this;if(!this.isOpen){this.removeClass(this.datepicker,'datepicker--closed');this.addClass(this.datepicker,'datepicker--open');this.checkAndSetDefaultValue();if(!this.alwaysOpened){this.slideDown(this.datepicker,this.animationSpeed);} this.isOpen=true;this.showSelectedDays();this.disableNextPrevButtons();this.addBoundedListener(document,'click',function(evt){return this$1.documentClick(evt);});if(this.onOpenDatepicker){this.onOpenDatepicker();}}};HotelDatepicker.prototype.closeDatepicker=function closeDatepicker(){if(this.alwaysOpened||!this.isOpen){return;} this.removeClass(this.datepicker,'datepicker--open');this.addClass(this.datepicker,'datepicker--closed');this.slideUp(this.datepicker,this.animationSpeed);this.isOpen=false;var evt=document.createEvent('Event');evt.initEvent('afterClose',true,true);this.input.dispatchEvent(evt);this.removeAllBoundedListeners(document,'click');};HotelDatepicker.prototype.autoclose=function autoclose(){if(!this.alwaysOpened&&this.autoClose&&this.changed&&this.isOpen&&this.start&&this.end){this.closeDatepicker();}};HotelDatepicker.prototype.documentClick=function documentClick(evt){if(!this.alwaysOpened&&!this.parent.contains(evt.target)&&evt.target!==this.input){this.closeDatepicker();}else if(evt.target.tagName.toLowerCase()==='td'){this.dayClicked(evt.target);}};HotelDatepicker.prototype.datepickerHover=function datepickerHover(evt){if(evt.target.tagName&&evt.target.tagName.toLowerCase()==='td'){this.dayHovering(evt.target);}};HotelDatepicker.prototype.datepickerMouseOut=function datepickerMouseOut(evt){if(evt.target.tagName&&evt.target.tagName.toLowerCase()==='td'){var tooltipContainer=document.getElementById(this.getTooltipId());tooltipContainer.style.display='none';}};HotelDatepicker.prototype.checkAndSetDefaultValue=function checkAndSetDefaultValue(){var value=this.getValue();var dates=value?value.split(this.separator):'';if(dates&&(dates.length>=2)){var _format=this.format;if(_format.match(/Do/)){_format=_format.replace(/Do/,'D');dates[0]=dates[0].replace(/(\d+)(th|nd|st)/,'$1');dates[1]=dates[1].replace(/(\d+)(th|nd|st)/,'$1');} this.changed=false;this.setDateRange(this.parseDate(dates[0],_format),this.parseDate(dates[1],_format));this.changed=true;}else if(this.showTopbar){var selectedInfo=this.datepicker.getElementsByClassName('datepicker__info--selected')[0];selectedInfo.style.display='none';}};HotelDatepicker.prototype.setDateRange=function setDateRange(date1,date2){if(date1.getTime()>date2.getTime()){var tmp=date2;date2=date1;date1=tmp;tmp=null;} var valid=true;if((this.startDate&&this.compareDay(date1,this.startDate)<0)||(this.endDate&&this.compareDay(date2,this.endDate)>0)){valid=false;} if(!valid){this.showMonth(this.startDate,1);this.showMonth(this.getNextMonth(this.startDate),2);this.showSelectedDays();this.disableNextPrevButtons();return;} date1.setTime(date1.getTime()+(12*60*60*1000));date2.setTime(date2.getTime()+(12*60*60*1000));this.start=date1.getTime();this.end=date2.getTime();if((this.compareDay(date1,date2)>0&&this.compareMonth(date1,date2)===0)){date2=this.getNextMonth(date1);} if(this.compareMonth(date1,date2)===0){date2=this.getNextMonth(date1);} this.showMonth(date1,1);this.showMonth(date2,2);this.showSelectedDays();this.disableNextPrevButtons();this.checkSelection();this.showSelectedInfo();this.autoclose();};HotelDatepicker.prototype.showSelectedDays=function showSelectedDays(){var this$1=this;if(!this.start&&!this.end){return;} var days=this.datepicker.getElementsByTagName('td');for(var i=0;i=time&&this$1.start<=time)||(this$1.start&&!this$1.end&&this$1.getDateString(this$1.start,'YYYY-MM-DD')===this$1.getDateString(time,'YYYY-MM-DD'))){this$1.addClass(days[i],'datepicker__month-day--selected');}else{this$1.removeClass(days[i],'datepicker__month-day--selected');} if(this$1.start&&this$1.getDateString(this$1.start,'YYYY-MM-DD')===this$1.getDateString(time,'YYYY-MM-DD')){this$1.addClass(days[i],'datepicker__month-day--first-day-selected');}else{this$1.removeClass(days[i],'datepicker__month-day--first-day-selected');} if(this$1.end&&this$1.getDateString(this$1.end,'YYYY-MM-DD')===this$1.getDateString(time,'YYYY-MM-DD')){this$1.addClass(days[i],'datepicker__month-day--last-day-selected');}else{this$1.removeClass(days[i],'datepicker__month-day--last-day-selected');}}};HotelDatepicker.prototype.showSelectedInfo=function showSelectedInfo(){if(!this.showTopbar){if(this.start&&this.end){var dateRangeValue=this.getDateString(new Date(this.start))+this.separator+this.getDateString(new Date(this.end));this.setValue(dateRangeValue,this.getDateString(new Date(this.start)),this.getDateString(new Date(this.end)));this.changed=true;} return;} var selectedInfo=this.datepicker.getElementsByClassName('datepicker__info--selected')[0];var elStart=selectedInfo.getElementsByClassName('datepicker__info-text--start-day')[0];var elEnd=selectedInfo.getElementsByClassName('datepicker__info-text--end-day')[0];var elSelected=selectedInfo.getElementsByClassName('datepicker__info-text--selected-days')[0];var closeButton=document.getElementById(this.getCloseButtonId());elStart.textContent='...';elEnd.textContent='...';elSelected.style.display='none';if(this.start){selectedInfo.style.display='';elStart.textContent=this.getDateString(new Date(parseInt(this.start,10)),this.infoFormat);} if(this.end){elEnd.textContent=this.getDateString(new Date(parseInt(this.end,10)),this.infoFormat);} if(this.start&&this.end){var count=this.countDays(this.end,this.start)-1;var countText=count===1?count+' '+this.lang('night'):count+' '+this.lang('nights');var dateRangeValue$1=this.getDateString(new Date(this.start))+this.separator+this.getDateString(new Date(this.end));elSelected.style.display='';elSelected.firstElementChild.textContent=countText;closeButton.disabled=false;this.setValue(dateRangeValue$1,this.getDateString(new Date(this.start)),this.getDateString(new Date(this.end)));this.changed=true;}else{closeButton.disabled=true;}};HotelDatepicker.prototype.dayClicked=function dayClicked(day){if(this.hasClass(day,'datepicker__month-day--invalid')){return;} var isSelectStart=(this.start&&this.end)||(!this.start&&!this.end);if(isSelectStart){if(this.hasClass(day,'datepicker__month-day--no-checkin')){return;}}else if(this.start){if(this.hasClass(day,'datepicker__month-day--no-checkout')){return;}} var time=parseInt(day.getAttribute('time'),10);this.addClass(day,'datepicker__month-day--selected');if(isSelectStart){this.start=time;this.end=false;}else if(this.start){this.end=time;} if(this.start&&this.end&&this.start>this.end){var tmp=this.end;this.end=this.start;this.start=tmp;} this.start=parseInt(this.start,10);this.end=parseInt(this.end,10);this.clearHovering();if(this.start&&!this.end){this.dayHovering(day);} this.updateSelectableRange();this.checkSelection();this.showSelectedInfo();this.showSelectedDays();this.autoclose();if(this.onDayClick){this.onDayClick();} if(this.end&&this.onSelectRange){this.onSelectRange();}};HotelDatepicker.prototype.isValidDate=function isValidDate(time){time=parseInt(time,10);if((this.startDate&&this.compareDay(time,this.startDate)<0)||(this.endDate&&this.compareDay(time,this.endDate)>0)){return false;} if(this.start&&!this.end){if((this.maxDays>0&&this.countDays(time,this.start)>this.maxDays)||(this.minDays>0&&this.countDays(time,this.start)>1&&this.countDays(time,this.start)0){var limit=this.getClosestDates(new Date(parseInt(this.start,10)));if(limit[0]&&this.compareDay(time,limit[0])<=0){return false;} if(limit[1]&&this.compareDay(time,limit[1])>=0){return false;}}} return true;};HotelDatepicker.prototype.checkSelection=function checkSelection(){var this$1=this;var numberOfDays=this.countDays(this.end,this.start);var bar=this.showTopbar?this.datepicker.getElementsByClassName('datepicker__info--feedback')[0]:false;if(this.maxDays&&numberOfDays>this.maxDays){this.start=false;this.end=false;var days=this.datepicker.getElementsByTagName('td');for(var i=0;i0){return 1;} if(p===0){return 0;} return-1;};HotelDatepicker.prototype.compareMonth=function compareMonth(month1,month2){var p=parseInt(this.getDateString(month1,'YYYYMM'),10)-parseInt(this.getDateString(month2,'YYYYMM'),10);if(p>0){return 1;} if(p===0){return 0;} return-1;};HotelDatepicker.prototype.daysFrom1970=function daysFrom1970(t){return Math.floor(this.toLocalTimestamp(t)/86400000);};HotelDatepicker.prototype.toLocalTimestamp=function toLocalTimestamp(t){if(typeof t==='object'&&t.getTime){t=t.getTime();} if(typeof t==='string'&&!t.match(/\d{13}/)){t=this.parseDate(t).getTime();} t=parseInt(t,10)-(new Date().getTimezoneOffset()*60*1000);return t;};HotelDatepicker.prototype.printAttributes=function printAttributes(obj){var _obj=obj;var attribute='';for(var attr in obj){if(Object.prototype.hasOwnProperty.call(_obj,attr)){attribute+=attr+'="'+_obj[attr]+'" ';}} return attribute;};HotelDatepicker.prototype.goToNextMonth=function goToNextMonth(e){var thisMonth=e.target.getAttribute('month');var isMonth2=thisMonth>1;var nextMonth=isMonth2?this.month2:this.month1;nextMonth=this.getNextMonth(nextMonth);if((!this.isSingleMonth()&&!isMonth2&&this.compareMonth(nextMonth,this.month2)>=0)||this.isMonthOutOfRange(nextMonth)){return;} if(this.moveBothMonths&&isMonth2){this.showMonth(this.month2,1);} this.showMonth(nextMonth,thisMonth);this.showSelectedDays();this.disableNextPrevButtons();};HotelDatepicker.prototype.goToPreviousMonth=function goToPreviousMonth(e){var thisMonth=e.target.getAttribute('month');var isMonth2=thisMonth>1;var prevMonth=isMonth2?this.month2:this.month1;prevMonth=this.getPrevMonth(prevMonth);if((isMonth2&&this.compareMonth(prevMonth,this.month1)<=0)||this.isMonthOutOfRange(prevMonth)){return;} if(this.moveBothMonths&&!isMonth2){this.showMonth(this.month1,2);} this.showMonth(prevMonth,thisMonth);this.showSelectedDays();this.disableNextPrevButtons();};HotelDatepicker.prototype.isSingleMonth=function isSingleMonth(){return!this.isVisible(this.getMonthDom(2));};HotelDatepicker.prototype.isMonthOutOfRange=function isMonthOutOfRange(month){var _m=new Date(month.valueOf());if((this.startDate&&(new Date(_m.getFullYear(),_m.getMonth()+1,0,23,59,59)this.endDate))){return true;} return false;};HotelDatepicker.prototype.disableNextPrevButtons=function disableNextPrevButtons(){if(this.isSingleMonth()){return;} var month1=parseInt(this.getDateString(this.month1,'YYYYMM'),10);var month2=parseInt(this.getDateString(this.month2,'YYYYMM'),10);var d=Math.abs(month1-month2);var nextButtons=this.datepicker.getElementsByClassName('datepicker__month-button--next');var prevButtons=this.datepicker.getElementsByClassName('datepicker__month-button--prev');if(d>1&&d!==89){this.removeClass(nextButtons[0],'datepicker__month-button--disabled');this.removeClass(prevButtons[1],'datepicker__month-button--disabled');}else{this.addClass(nextButtons[0],'datepicker__month-button--disabled');this.addClass(prevButtons[1],'datepicker__month-button--disabled');} if(this.isMonthOutOfRange(this.getPrevMonth(this.month1))){this.addClass(prevButtons[0],'datepicker__month-button--disabled');}else{this.removeClass(prevButtons[0],'datepicker__month-button--disabled');} if(this.isMonthOutOfRange(this.getNextMonth(this.month2))){this.addClass(nextButtons[1],'datepicker__month-button--disabled');}else{this.removeClass(nextButtons[1],'datepicker__month-button--disabled');}};HotelDatepicker.prototype.topBarDefaultText=function topBarDefaultText(){if(!this.showTopbar){return;} var topBarText='';if(this.minDays&&this.maxDays){topBarText=this.lang('info-range');}else if(this.minDays&&this.minDays>2){topBarText=this.lang('info-more-plural');}else if(this.minDays){topBarText=this.lang('info-more');}else{topBarText=this.lang('info-default');} var bar=this.datepicker.getElementsByClassName('datepicker__info--feedback')[0];topBarText=topBarText.replace(/%d/,(this.minDays-1)).replace(/%d/,(this.maxDays-1));this.addClass(bar,'datepicker__info--help');this.removeClass(bar,'datepicker__info--error');bar.textContent=topBarText;};HotelDatepicker.prototype.topBarErrorText=function topBarErrorText(bar,errorText,errorValue){if(!this.showTopbar){return;} this.addClass(bar,'datepicker__info--error');this.removeClass(bar,'datepicker__info--help');if(errorValue>1){errorText=this.lang(errorText+'-plural');errorText=errorText.replace('%d',errorValue);bar.textContent=errorText;}else{errorText=this.lang(errorText);} var selectedInfo=this.datepicker.getElementsByClassName('datepicker__info--selected')[0];selectedInfo.style.display='none';};HotelDatepicker.prototype.updateSelectableRange=function updateSelectableRange(){var this$1=this;var days=this.datepicker.getElementsByTagName('td');var isSelecting=this.start&&!this.end;for(var i=0;i=time)||(this$1.start>time&&hoverTime<=time))){this$1.addClass(days[i],'datepicker__month-day--hovering');}else{this$1.removeClass(days[i],'datepicker__month-day--hovering');}} if(!this.disableTooltip&&this.start&&!this.end){var nights=this.countDays(hoverTime,this.start)-1;if(this.hoveringTooltip){if(typeof this.hoveringTooltip==='function'){tooltip=this.hoveringTooltip(nights,this.start,hoverTime);}else if(this.hoveringTooltip===true&&nights>0){var label=nights===1?this.lang('night'):this.lang('nights');tooltip=(nights)+' '+label;}}}} if(tooltip){var dayBounding=day.getBoundingClientRect();var datepickerBounding=this.datepicker.getBoundingClientRect();var _left=dayBounding.left-datepickerBounding.left;var _top=dayBounding.top-datepickerBounding.top;_left+=dayBounding.width/2;var tooltipContainer=document.getElementById(this.getTooltipId());tooltipContainer.style.display='';tooltipContainer.textContent=tooltip;var w=tooltipContainer.getBoundingClientRect().width;var h=tooltipContainer.getBoundingClientRect().height;_left-=w/2;_top-=h;setTimeout(function(){tooltipContainer.style.left=_left+'px';tooltipContainer.style.top=_top+'px';},10);}else{var tooltipContainer$1=document.getElementById(this.getTooltipId());tooltipContainer$1.style.display='none';}};HotelDatepicker.prototype.clearHovering=function clearHovering(){var this$1=this;var days=this.datepicker.getElementsByTagName('td');for(var i=0;ithis.disabledDatesTime[this.disabledDatesTime.length-1]){dates=[this.disabledDatesTime[this.disabledDatesTime.length-1],false];}else{var bestPrevDate=this.disabledDatesTime.length;var bestNextDate=this.disabledDatesTime.length;var maxDateValue=Math.abs((new Date(0,0,0)).valueOf());var bestPrevDiff=maxDateValue;var bestNextDiff=-maxDateValue;var currDiff=0;var i;for(i=0;ibestNextDiff){bestNextDate=i;bestNextDiff=currDiff;} if(currDiff>0&&currDiff=2)){var _format=this.format;if(_format.match(/Do/)){_format=_format.replace(/Do/,'D');dates[0]=dates[0].replace(/(\d+)(th|nd|st)/,'$1');dates[1]=dates[1].replace(/(\d+)(th|nd|st)/,'$1');} count=this.countDays(this.parseDate(dates[0],_format),this.parseDate(dates[1],_format))-1;}} return count;};HotelDatepicker.prototype.destroy=function destroy(){if(document.getElementById(this.getDatepickerId())){this.removeAllBoundedListeners(this.input,'click');this.removeAllBoundedListeners(document,'click');this.removeAllBoundedListeners(this.input,'change');this.datepicker.parentNode.removeChild(this.datepicker);}};return HotelDatepicker;}());}catch(e){} try{$(window).on('load',function(){SVGInject(document.querySelectorAll('img[src$=".svg"]'));fecha.i18n={};var formedia=function() {if($(window).width()<576) {$('#for-media .collapse').removeClass('show')}};formedia();window.onresize=function(){formedia()};var datepickerLang={'day-names-short':['Nd','Pn','Wt','Śr','Cz','Pt','Sb'],'day-names':['Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota','Niedziela'],'month-names':['styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień'],'info-default':'Wybierz datę'};var dateInput=document.getElementById('search-filters-date-input');var datepicker=new HotelDatepickerMod(dateInput,{startOfWeek:'monday',showTopbar:false,disableTooltips:true,alwaysOpened:true,i18n:page_language=='/'?datepickerLang:'',moveBothMonths:true,onSelectRange:function(){var city=$('#search-filters-city-input'),date=$('#search-filters-date-input'),inp=$('.navbar-search-desktop');inp.val(date.val()+' '+city.val());}});var searchDesktop=$('.navbar-search-desktop'),searchFilters=$('#navbar-search-filters'),searchInput=$('.navbar-search-input');$('#datepicker-search-filters-date-input').addClass('noactive');searchDesktop.on('focus',function(){searchFilters.collapse('show')});searchDesktop.keyup(function(event){var tv=this.value,city=$('#search-filters-city-input'),date=$('#search-filters-date-input');if(tv.search(city.val())<0) {city.val('');$('header .navbar-search-filters .search-filters-city').removeClass('active');} if(tv.search(date.val())<0) {date.val('');} tv=tv.replace(city.val(),'');tv=tv.replace(date.val(),'');tv=$.trim(tv);if(tv.length>=3) {var http=new XMLHttpRequest(),url='/',params='search='+tv+'&filter_place='+city.val()+'&filter_date='+date.val();searchFilters.find('.navbar-search-filters').hide();searchInput.show();searchInput.find('.content').html('');searchInput.find('.loader').show();searchInput.addClass('datepicker--open');http.open('POST',url,true);http.setRequestHeader('Content-type','application/x-www-form-urlencoded');http.onreadystatechange=function() {if(http.readyState==4&&http.status==200) {searchInput.find('.loader').hide();searchInput.find('.content').html(http.responseText);}} http.send(params);} else {searchFilters.find('.navbar-search-filters').show();searchInput.hide();searchInput.removeClass('datepicker--open');}});$(window).on('click',function(event){var target=$(event.target);if(!target.is('.navbar-search-desktop')&&!target.is('#navbar-search-filters')&&!$(event.target).parents('.navbar-search-desktop,#navbar-search-filters').length){searchFilters.collapse('hide');if(!searchInput.hasClass('datepicker--open')) {searchFilters.find('.navbar-search-filters').show();searchInput.addClass('datepicker--open');}}});$('header .navbar-search-filters > ul > li').on('click',function(event) {if(!$(this).hasClass('active')) {$('header .navbar-search-filters > ul > li').removeClass('active');$(this).addClass('active');} if(this.id=='search-filters-date') {$('#datepicker-search-filters-date-input').removeClass('noactive');$('header .navbar-search-filters .search-filters-city').removeClass('active');} else {$('#datepicker-search-filters-date-input').addClass('noactive');$('header .navbar-search-filters .search-filters-city').addClass('active');}});$('header #navbar-search-filters .datepicker ul li').on('click',function(event) {var city=$('#search-filters-city-input'),date=$('#search-filters-date-input'),inp=$('.navbar-search-desktop');if($(this).hasClass('active')) {$(this).removeClass('active');city.val('');} else {$('header #navbar-search-filters .datepicker ul li').removeClass('active');$(this).addClass('active');city.val($(this).html());} inp.val(date.val()+' '+city.val());});$('#search-filters').on('click',function(event) {window.location.href=page_language+'wydarzenia/?filter_date='+$('#search-filters-date-input').val()+'&filter_place='+$('#search-filters-city-input').val();});$('.main-slider').slick({centerMode:true,variableWidth:true,dots:true,arrows:true,autoplay:true,autoplaySpeed:3000,});$('.event-view-partners-items').slick({infinite:false,speed:300,slidesToShow:1,slidesToScroll:1,mobileFirst:true,responsive:[{breakpoint:1439,settings:{slidesToShow:3,slidesToScroll:1,infinite:true}},{breakpoint:1023,settings:{slidesToShow:3,slidesToScroll:1,infinite:true}},{breakpoint:767,settings:{arrows:true,slidesToShow:3,slidesToScroll:1,infinite:false}},]});var dateInputFilter=document.getElementById('filter_date');if(dateInputFilter){window.datepickerFilters=new HotelDatepicker(dateInputFilter,{startOfWeek:'monday',showTopbar:false,disableTooltips:true,alwaysOpened:false,i18n:page_language=='/'?datepickerLang:'',moveBothMonths:true})} var placeInputFilter=$('#filter_place');if(placeInputFilter){$('body').on('click',function(event) {if($(event.target).is('input#filter_place')) {$($(event.target)).next('.placepicker').addClass('datepicker--open');} else {$('.placepicker.datepicker--open').removeClass('datepicker--open');}});$('.placepicker ul li').on('click',function(event) {var inp=$(this).parents('.filter_place_container').find('input#filter_place');if($(this).hasClass('active')) {$(this).removeClass('active');inp.val('');} else {$('.placepicker ul li').removeClass('active');$(this).addClass('active');inp.val($(this).html());}});} $(document).on('click','[data-toggle="lightbox"]',function(event){event.preventDefault();$(this).ekkoLightbox({alwaysShowClose:true});});});$(document).ready(function(){$("select.event-view-place-select").change(function(){var city=$(this).children("option:selected").val();var city_id="#city-"+city;$('input[name="event-date-selection"]:checked').prop("checked",false);$('input[name="event-date-selection"]').removeClass('active');$('.event-view-calendar-buttons a').attr('href','#').removeClass('active');if($(this).children("option:selected").val()==9999){$("div.event-view-calendar-dates").children().removeClass("d-none");}else{$("div.event-view-calendar-dates").children().addClass("d-none");$("div.event-view-calendar-dates").children(city_id).removeClass("d-none");if($(this).parents('.event-view-calendar').find("div.event-view-calendar-dates").children(city_id).length==1) {$("div.event-view-calendar-dates").children(city_id).find('input[name="event-date-selection"]').prop("checked",true).addClass('active');var url=$('input[name="event-date-selection"]:checked','.event-view-calendar-dates').attr('datasrc')||'';$('.event-view-calendar-buttons a').attr('href',url).addClass('active');}}});});$(document).ready(function() {var url=$('input[name="event-date-selection"]:checked','.event-view-calendar-dates').attr('datasrc')||'';$('.event-view-calendar-dates input').on('change',function() {$('input[name="event-date-selection"]').removeClass('active');$(this).addClass('active');url=$('input[name="event-date-selection"]:checked','.event-view-calendar-dates').attr('datasrc');$('.event-view-calendar-buttons a').attr('href',url).addClass('active');});});}catch(e){} try{function theChampPopup(e){window.open(e,"_blank","height=420,width=620,left=390,top=105,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}function theChampStrReplace(e,t,n){for(var r=0;r'+e.innerHTML,theChampFBCommentingContent=("undefined"!=typeof theChampFacebookCommentsNotifierOptinText?'
":"")+("undefined"!=typeof theChampFacebookCommentsOptinText?'
":"")+'
",n.googleplus=" ",a.googleplus="//apis.google.com/js/plusone.js",t.disqus='
'+(""!=theChampDisqusShortname?theChampDisqusShortname:'
Specify a Disqus shortname in Super Socializer > Social Commenting section in admin panel
')+"
",n.disqus="var disqus_shortname = '"+theChampDisqusShortname+"';(function(d) {var dsq = d.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(dsq); })(document);";var o='

'+theChampScLabel+"

    ";theChampScEnabledTabs=theChampScEnabledTabs.split(",");for(var i=0;i"}for(o+="
",i=0;i
'+t[theChampScEnabledTabs[i]]+"
";o+="",e.innerHTML=o;var h=document.getElementById("reply-title");for(h&&h.remove(),i=0;i0&&jQuery("input.heateor_ss_social_login_optin").prop("checked",!0),jQuery("input.heateor_ss_social_login_optin").click(function(){if(jQuery(this).is(":checked")){if(null==theChampGetCookie("heateorSsSLOptin")){}}else document.cookie="heateorSsSLOptin=; expires=Fri, 02 Jan 1970 00:00:00 UTC; path=/"}),"undefined"!=typeof theChampFacebookCommentsOptinText&&(null!=heateorFcmGetCookie("heateorFcmOptin")&&jQuery("input.heateor_ss_fb_comments_optin").prop("checked",!0),jQuery("input.heateor_ss_fb_comments_optin").click(function(){if(jQuery(this).is(":checked")){if(heateorFcmOptin=1,null==heateorFcmGetCookie("heateorFcmOptin")){}}else heateorFcmOptin=0,document.cookie="heateorFcmOptin=; expires=Fri, 02 Jan 1970 00:00:00 UTC; path=/"})),"undefined"!=typeof theChampFacebookCommentsNotifierOptinText&&(null!=heateorFcnGetCookie("heateorFcnOptin")&&jQuery("input.heateor_ss_fb_comments_notifier_optin").prop("checked",!0),jQuery("input.heateor_ss_fb_comments_notifier_optin").click(function(){if(jQuery(this).is(":checked")){if(heateorFcnOptin=1,null==heateorFcnGetCookie("heateorFcnOptin")){}}else heateorFcnOptin=0,document.cookie="heateorFcnOptin=; expires=Fri, 02 Jan 1970 00:00:00 UTC; path=/"}))}}theChampLoadEvent(function(){theChampRenderFBCommenting()});}catch(e){} try{function heateorSsDetermineWhatsappShareAPI(a){if(a)return-1!=navigator.userAgent.indexOf("Mobi")?"api.whatsapp.com":"web.whatsapp.com";var p=jQuery("i.theChampWhatsappBackground a").attr("href");return void 0!==p?-1!=navigator.userAgent.indexOf("Mobi")?(jQuery("i.theChampWhatsappBackground a").attr("href",p.replace("web.whatsapp.com","api.whatsapp.com")),"api.whatsapp.com"):(jQuery("i.theChampWhatsappBackground a").attr("href",p.replace("api.whatsapp.com","web.whatsapp.com")),"web.whatsapp.com"):""} function theChampMoreSharingPopup(elem,postUrl,postTitle,twitterTitle){var shareContainer=elem.parentElement.parentElement.parentElement;postUrl=encodeURIComponent(postUrl);concate='';var theChampMoreSharingServices={facebook:{background_color:"#3c589a",title:"Facebook",redirect_url:"https://www.facebook.com/sharer.php?u="+postUrl+"&t="+postTitle+"&v=3",svg:''},mastodon:{background_color:"#2b90d9",title:"Mastodon",redirect_url:"https://mastodon.social/share?text="+postUrl+"&t="+postTitle+"&v=3",svg:''},twitter:{background_color:"#55acee",title:"Twitter",redirect_url:"https://twitter.com/intent/tweet?text="+(twitterTitle?twitterTitle:postTitle)+" "+postUrl,svg:''},x:{background_color:"#2a2a2a",title:"X",redirect_url:"https://twitter.com/intent/tweet?text="+(twitterTitle?twitterTitle:postTitle)+" "+postUrl,svg:''},teams:{background_color:"#5059c9",title:"Teams",redirect_url:"https://teams.microsoft.com/share?href="+postUrl+"&msgText="+(twitterTitle?twitterTitle:postTitle),svg:''},Google_Translate:{background_color:"#528ff5",title:"Google Translate",redirect_url:"https://translate.google.com/translate?js=n&sl=auto&tl=en&u="+postUrl,svg:''},linkedin:{background_color:"#0077b5",title:"Linkedin",redirect_url:"https://www.linkedin.com/sharing/share-offsite/?url="+postUrl,svg:''},parler:{background_color:"#892E5E",title:"Parler",redirect_url:"https://parler.com/new-post?message="+postTitle+"&url="+postUrl,svg:''},gab:{background_color:"#25CC80",title:"Gab",redirect_url:"https://gab.com/compose?text="+postTitle+"&url="+postUrl,svg:''},gettr:{background_color:"#E50000",title:"Gettr",redirect_url:"https://gettr.com/share?text="+postTitle+"&url="+postUrl,svg:''},MeWe:{background_color:"#007da1",title:"MeWe",redirect_url:"https://mewe.com/share?link="+postUrl,svg:''},pinterest:{background_color:"#cc2329",title:"Pinterest",redirect_url:"https://pinterest.com/pin/create/button/?url="+postUrl+"&media=${media_link}&description="+postTitle,bookmarklet_url:"javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());",svg:''},CopyLink:{background_color:"#ffc112",title:"Copy Link",redirect_url:"",bookmarklet_url:"",svg:''},Douban:{background_color:"#497700",title:"Douban",locale:"en-US",redirect_url:"https://www.douban.com/share/service?name="+postTitle+"&href="+postUrl+"&image=&updated=&bm=&url="+postUrl+"&title="+postTitle+"&sel=",svg:''},Draugiem:{background_color:"#ffad66",title:"Draugiem",redirect_url:"https://www.draugiem.lv/say/ext/add.php?link="+postUrl+"&title="+postTitle,svg:''},Facebook_Messenger:{background_color:"#0084ff",title:"Facebook Messenger",redirect_url:"https://www.facebook.com/dialog/send?app_id=1904103319867886&display=popup&link="+postUrl+"&redirect_uri="+postUrl,svg:''},Google_Classroom:{background_color:"#ffc112",title:"Google Classroom",redirect_url:"https://classroom.google.com/u/0/share?url="+postUrl,svg:''},Kik:{background_color:"#2a2a2a",title:"Kik",redirect_url:"https://www.kik.com/send/article/?app_name=Share&text=&title="+postTitle+"&url="+postUrl,svg:''},Papaly:{background_color:"#3ac0f6",title:"Papaly",redirect_url:"https://papaly.com/api/share.html?url="+postUrl+"&title="+postTitle,svg:''},Refind:{background_color:"#1492ef",title:"Refind",redirect_url:"https://refind.com/?url="+postUrl,svg:''},Skype:{background_color:"#00aff0",title:"Skype",redirect_url:"https://web.skype.com/share?url="+postUrl,svg:''},SMS:{background_color:"#6ebe45",title:"SMS",bookmarklet_url:"sms:?&body="+postTitle+" "+postUrl,svg:''},Trello:{background_color:"#1189ce",title:"Trello",redirect_url:"https://trello.com/add-card?mode=popup&url="+postUrl+"&name="+postTitle+"&desc=",svg:''},Viber:{background_color:"#8b628f",title:"Viber",bookmarklet_url:"viber://forward?text="+postTitle+" "+postUrl,svg:''},Threema:{background_color:"#2a2a2a",title:"Threema",bookmarklet_url:"threema://compose?text="+postTitle+" "+postUrl,svg:''},Telegram:{background_color:"#3da5f1",title:"Telegram",redirect_url:"https://telegram.me/share/url?url="+postUrl+"&text="+postTitle,svg:''},email:{background_color:"#649a3f",title:"Email",redirect_url:"mailto:?subject="+postTitle+"&body=Link: "+postUrl,svg:''},reddit:{background_color:"#ff5700",title:"Reddit",redirect_url:"https://reddit.com/submit?url="+postUrl+"&title="+postTitle,svg:''},float_it:{background_color:"#53beee",title:"Float it",redirect_url:"https://www.designfloat.com/submit.php?url="+postUrl+"&title="+postTitle,svg:''},gentlereader:{background_color:"#46aecf",title:"GentleReader",redirect_url:"https://app.gentlereader.com/bookmark?url="+postUrl,svg:'',},google_bookmarks:{background_color:"#cb0909",title:"Google Bookmarks",redirect_url:"http://www.google.com/bookmarks/mark?op=edit&bkmk="+postUrl+"&title="+postTitle,svg:''},digg:{background_color:"#006094",title:"Digg",redirect_url:"http://digg.com/submit?phase=2&url="+postUrl+"&title="+postTitle,svg:''},printfriendly:{background_color:"#61d1d5",title:"PrintFriendly",redirect_url:"https://www.printfriendly.com/print?url="+postUrl,svg:''},print:{background_color:"#fd6500",title:"Print",bookmarklet_url:"javascript:window.print()",svg:''},tumblr:{background_color:"#29435d",title:"Tumblr",redirect_url:"https://www.tumblr.com/widgets/share/tool?posttype=link&canonicalUrl="+postUrl+"&title="+postTitle+"&caption=",bookmarklet_url:"javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.tumblr.com/share',l=d.location,e=encodeURIComponent,p='?v=3&u='+e(l.href) +'&t='+e(d.title) +'&s='+e(s),u=f+p;try{if(!/^(.*\\.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a =function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();}void(0);",svg:''},vk:{background_color:"#0077FF",title:"Vkontakte",redirect_url:"https://vk.com/share.php?url="+postUrl+"&title="+postTitle,svg:''},evernote:{background_color:"#8be056",title:"Evernote",redirect_url:"https://www.evernote.com/clip.action?url="+postUrl+"&title="+postTitle,bookmarklet_url:"javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();",svg:''},amazon_us_wish_list:{background_color:"#ffe000",title:"Amazon Wish List",redirect_url:"https://www.amazon.com/wishlist/add?u="+postUrl+"&t="+postTitle,bookmarklet_url:"javascript:(function(){var w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,x='undefined',u='http://www.amazon.com/gp/wishlist/add';if(typeof s!='object')l.href=u+'?u='+e(l)+'&t='+e(d.title);function g(){if(d.readyState&&d.readyState!='complete'){setTimeout(g,200);}else{if(typeof AUWLBook==x)s.setAttribute('src',u+'.js?loc='+e(l)),d.body.appendChild(s);function f(){(typeof AUWLBook==x)?setTimeout(f,200):AUWLBook.showPopover();}f();}}g();}())",svg:''},wordpress_blog:{background_color:"#464646",title:"WordPress",redirect_url:"https://www.addtoany.com/ext/wordpress/press_this?linkurl="+postUrl+"&linkname="+postTitle,svg:''},whatsapp:{background_color:"#55eb4c",title:"Whatsapp",bookmarklet_url:"https://"+heateorSsDetermineWhatsappShareAPI(true)+"/send?text="+postTitle+" "+postUrl,svg:''},diigo:{background_color:"#4a8bca",title:"Diigo",redirect_url:"https://www.diigo.com/post?url="+postUrl+"&title="+postTitle,svg:''},yc_hacker_news:{background_color:"#f60",title:"Hacker News",redirect_url:"https://news.ycombinator.com/submitlink?u="+postUrl+"&t="+postTitle,svg:''},box_net:{background_color:"#1a74b0",title:"Box.net",redirect_url:"https://www.box.net/api/1.0/import?url="+postUrl+"&name="+postTitle+"&import_as=link",svg:''},aol_mail:{background_color:"#2a2a2a",title:"AOL Mail",redirect_url:"http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?subject="+postTitle+"&body="+postUrl,svg:''},yahoo_mail:{background_color:"#400090",title:"Yahoo Mail",redirect_url:"https://compose.mail.yahoo.com/?Subject="+postTitle+"&body=Link: "+postUrl,svg:''},instapaper:{background_color:"#ededed",title:"Instapaper",redirect_url:"https://www.instapaper.com/edit?url="+postUrl+"&title="+postTitle,svg:''},plurk:{background_color:"#cf682f",title:"Plurk",redirect_url:"https://www.plurk.com/m?content="+postUrl+"&qualifier=shares",svg:''},aim:{background_color:"#10ff00",title:"AIM",redirect_url:"http://share.aim.com/share/?url="+postUrl+"&title="+postTitle,svg:''},viadeo:{background_color:"#2a2a2a",title:"Viadeo",redirect_url:"https://www.viadeo.com/shareit/share/?url="+postUrl+"&title="+postTitle,svg:''},pinboard_in:{background_color:"#1341de",title:"Pinboard",redirect_url:"https://pinboard.in/add?url="+postUrl+"&title="+postTitle,svg:''},blogger_post:{background_color:"#fda352",title:"Blogger Post",redirect_url:"https://www.blogger.com/blog_this.pyra?t=&u="+postUrl+"&l&n="+postTitle,svg:''},typepad_post:{background_color:"#2a2a2a",title:"TypePad Post",redirect_url:"https://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title="+postTitle+"&qp_href="+postUrl+"&qp_text="+postTitle,svg:''},buffer:{background_color:"#000",title:"Buffer",redirect_url:"https://bufferapp.com/add?url="+postUrl+"&text="+postTitle,svg:''},flipboard:{background_color:"#c00",title:"Flipboard",redirect_url:"https://share.flipboard.com/bookmarklet/popout?v=2&url="+postUrl+"&title="+postTitle,svg:''},pocket:{background_color:"#f0f0f0",title:"Pocket",redirect_url:"https://getpocket.com/edit?url="+postUrl+"&title="+postTitle,svg:''},fark:{background_color:"#555",title:"Fark",redirect_url:"https://cgi.fark.com/cgi/fark/submit.pl?new_url="+postUrl,svg:''},fintel:{background_color:"#087515",title:"Fintel",redirect_url:"https://fintel.io/submit?url="+postUrl,svg:''},yummly:{background_color:"#e16120",title:"Yummly",redirect_url:"https://www.yummly.com/urb/verify?url="+postUrl+"&title="+postTitle,svg:''},app_net:{background_color:"#5d5d5d",title:"App.net",locale:"en-US",redirect_url:"https://account.app.net/login/",svg:''},Symbaloo_Feeds:{background_color:"#6da8f7",title:"Symbaloo Feeds",redirect_url:"https://www.symbaloo.com/"+postUrl,svg:''},Outlook_com:{background_color:"#0072c6",title:"Outlook.com",redirect_url:"https://mail.live.com/default.aspx?rru=compose?subject="+postTitle+"&body="+postUrl+"&lc=1033&id=64855&mkt=en-us&cbcxt=mai",svg:''},balatarin:{background_color:"#fff",title:"Balatarin",redirect_url:"https://www.balatarin.com/login",svg:''},bibSonomy:{background_color:"#000",title:"BibSonomy",redirect_url:"https://www.bibsonomy.org/login",svg:''},Bitty_Browser:{background_color:"#3d3c3b",title:"Bitty Browser",redirect_url:"http://www.bitty.com/manual/?contenttype=&contentvalue="+postUrl,svg:''},Blinklist:{background_color:"#3d3c3b",title:"Blinklist",locale:"en-US",redirect_url:"https://blinklist.com/blink?t="+postTitle+"&d=&u="+postUrl,svg:''},BlogMarks:{background_color:"#535353",title:"BlogMarks",redirect_url:"https://blogmarks.net/my/new.php?mini=1&simple=1&title="+postTitle+"&url="+postUrl,svg:''},Bookmarks_fr:{background_color:"#e8ead4",title:"Bookmarks.fr",redirect_url:"https://www.bookmarks.fr/Connexion/?action=add&address="+postUrl+"&title="+postTitle,svg:''},BuddyMarks:{background_color:"#ffd400",title:"BuddyMarks",redirect_url:"http://buddymarks.com/login.php?bookmark_title="+postTitle+"&bookmark_url="+postUrl+"&bookmark_desc=&bookmark_tags=",svg:''},Care2_news:{background_color:"#6eb43f",title:"Care2 News",redirect_url:"https://www.care2.com/passport/login.html?promoID=10&pg=http://www.care2.com/news/compose?sharehint=news&share[share_type]news&bookmarklet=Y&share[title]=",svg:''},Diary_Ru:{background_color:"#e8d8c6",title:"Diary.Ru",redirect_url:"https://www.diary.ru/?newpost&title="+postTitle+"&text="+postUrl,svg:''},Folkd:{background_color:"#0f70b2",title:"Folkd",redirect_url:"https://www.folkd.com/page/social-bookmarking.html?addurl="+postUrl,svg:''},Hatena:{background_color:"#00a6db",title:"Hatena",redirect_url:"https://b.hatena.ne.jp/bookmarklet?url="+postUrl+"&btitle="+postTitle,svg:''},Jamespot:{background_color:"#ff9e2c",title:"Jamespot",redirect_url:"http://my.jamespot.com/",svg:''},Kakao:{background_color:"#fcb700",title:"Kakao",redirect_url:"https://story.kakao.com/share?url="+postUrl,svg:''},Kindle_It:{background_color:"#2a2a2a",title:"Kindle_It",redirect_url:"https://fivefilters.org/kindle-it/send.php?url="+postUrl,svg:''},Known:{background_color:"#fff101",title:"Known",redirect_url:"https://withknown.com/share/?url="+postUrl+"&title="+postTitle,svg:''},Line:{background_color:"#00c300",title:"Line",redirect_url:"https://social-plugins.line.me/lineit/share?url="+postUrl,svg:''},LiveJournal:{background_color:"#ededed",title:"LiveJournal",redirect_url:"https://www.livejournal.com/update.bml?subject="+postTitle+"&event="+postUrl,svg:''},Mail_Ru:{background_color:"#356fac",title:"Mail.Ru",redirect_url:"https://connect.mail.ru/share?share_url="+postUrl,svg:''},Mendeley:{background_color:"#a70805",title:"Mendeley",redirect_url:"https://www.mendeley.com/sign-in/",svg:''},Meneame:{background_color:"#ff7d12",title:"Meneame",redirect_url:"https://www.meneame.net/submit.php?url="+postUrl,svg:''},Mix:{background_color:"#ff8226",title:"Mix",redirect_url:"https://mix.com/mixit?url="+postUrl,svg:''},Mixi:{background_color:"#ededed",title:"Mixi",redirect_url:"https://mixi.jp/share.pl?mode=login&u="+postUrl,svg:''},MySpace:{background_color:"#2a2a2a",title:"MySpace",redirect_url:"https://myspace.com/post?u="+encodeURIComponent(postUrl)+"&t="+postTitle+"&l=3&c="+postTitle,svg:''},Netvouz:{background_color:"#c0ff00",title:"Netvouz",redirect_url:"https://www.netvouz.com/action/submitBookmark?url="+postUrl+"&title="+postTitle+"&popup=no&description=",svg:''},Odnoklassniki:{background_color:"#f2720c",title:"Odnoklassniki",redirect_url:"https://connect.ok.ru/dk?cmd=WidgetSharePreview&st.cmd=WidgetSharePreview&st.shareUrl="+postUrl+"&st.client_id=-1",svg:''},Protopage_Bookmarks:{background_color:"#413fff",title:"Protopage Bookmarks",redirect_url:"https://www.protopage.com/add-button-site?url="+postUrl+"&label=&type=page",svg:''},Pusha:{background_color:"#0072b8",title:"Pusha",redirect_url:"https://www.pusha.se/posta?url="+postUrl,svg:''},Qzone:{background_color:"#2b82d9",title:"Qzone",redirect_url:"https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+postUrl,svg:''},Renren:{background_color:"#005eac",title:"Renren",redirect_url:"https://www.connect.renren.com/share/sharer?url="+postUrl+"&title="+postTitle,svg:''},Sina_Weibo:{background_color:"#ff0",title:"Sina Weibo",redirect_url:"http://service.weibo.com/share/share.php?url="+postUrl+"&title="+postTitle,svg:''},SiteJot:{background_color:"#ffc800",title:"SiteJot",redirect_url:"http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=",svg:''},Slashdot:{background_color:"#004242",title:"Slashdot",redirect_url:"https://slashdot.org/submission?url="+postUrl,svg:''},StockTwits:{background_color:"#40576f",title:"StockTwits",redirect_url:"https://stocktwits.com/widgets/share?body="+postTitle+" "+postUrl,svg:''},Svejo:{background_color:"#fa7aa3",title:"Svejo",redirect_url:"https://svejo.net/story/submit_by_url?url="+postUrl+"&title="+postTitle+"&summary=",svg:''},Tuenti:{background_color:"#0075c9",title:"Tuenti",redirect_url:"https://www.tuenti.com/share?p=b5dd6602&url="+postUrl,svg:''},Twiddla:{background_color:"#ededed",title:"Twiddla",redirect_url:"https://www.twiddla.com/New.aspx?url="+postUrl+"&title="+postTitle,svg:''},Webnews:{background_color:"#cc2512",title:"Webnews",redirect_url:"https://www.webnews.de/login",svg:''},Wykop:{background_color:"#367da9",title:"Wykop",redirect_url:"https://www.wykop.pl/dodaj?url="+postUrl+"&title="+postTitle,svg:''},Xing:{background_color:"#00797d",title:"Xing",redirect_url:"https://www.xing.com/spi/shares/new?cb=0&url="+postUrl,svg:''},Yoolink:{background_color:"#a2c538",title:"Yoolink",redirect_url:"http://auth.yoolink.to/authenticate/login?service=yoolink.to&landing_path=%2Faddorshare%3Furl_value%3D"+encodeURIComponent(postUrl)+"%26title%3D"+encodeURIComponent(postTitle),svg:''}} var theChampMoreSharingServicesHtml='
    ';for(var i in theChampMoreSharingServices){var tempTitle=theChampCapitaliseFirstLetter(theChampMoreSharingServices[i].title.replace(/[_. ]/g,""));theChampMoreSharingServicesHtml+='
  • '+theChampMoreSharingServices[i].svg+''+theChampMoreSharingServices[i].title+'
  • ';} theChampMoreSharingServicesHtml+=concate;var mainDiv=document.createElement('div');mainDiv.innerHTML=theChampMoreSharingServicesHtml;mainDiv.setAttribute('id','the_champ_sharing_more_providers');var bgDiv=document.createElement('div');bgDiv.setAttribute('id','the_champ_popup_bg');jQuery('body').append(mainDiv).append(bgDiv);document.getElementById('the_champ_popup_bg').onclick=document.getElementById('the_champ_sharing_popup_close').onclick=function(){mainDiv.parentNode.removeChild(mainDiv);bgDiv.parentNode.removeChild(bgDiv);} jQuery('#the_champ_sharing_more_content a[alt=Mastodon]').click(function(){event.preventDefault();heateorSsMastodonPopup(jQuery(this).attr("href"));});} function heateorSsMastodonPopup(targetUrl){var moreSharingServicesHtml='
    Your Mastodon Instance
    ';var mainDiv=document.createElement('div');mainDiv.innerHTML=moreSharingServicesHtml;mainDiv.setAttribute('id','the_champ_sharing_more_providers');mainDiv.style.height='auto';var bgDiv=document.createElement('div');bgDiv.setAttribute('id','heateor_ss_mastodon_popup_bg');jQuery('body').append(mainDiv).append(bgDiv);document.getElementById('heateor_ss_mastodon_popup_bg').onclick=document.getElementById('heateor_ss_mastodon_popup_close').onclick=function(){mainDiv.parentNode.removeChild(mainDiv);bgDiv.parentNode.removeChild(bgDiv);}} if(typeof theChampHorizontalSharingCountEnable=='undefined'){var theChampHorizontalSharingCountEnable=0;} if(typeof theChampVerticalSharingCountEnable=='undefined'){var theChampVerticalSharingCountEnable=0;} if((typeof theChampSaveSharesLocally=='undefined'||theChampSaveSharesLocally==0)&&(theChampHorizontalSharingCountEnable||theChampVerticalSharingCountEnable)){theChampLoadEvent(function(){theChampCallAjax(function(){theChampGetSharingCounts();});});} function theChampFilterSharing(val){jQuery('ul.mini li a').each(function(){if(jQuery(this).text().toLowerCase().indexOf(val.toLowerCase())!=-1){jQuery(this).parent().css('display','block');}else{jQuery(this).parent().css('display','none');}});};var heateorSsFacebookTargetUrls=[];function theChampGetSharingCounts(){if(typeof theChampSaveSharesLocally!='undefined'&&theChampSaveSharesLocally==1){return;} var targetUrls=[];jQuery('.the_champ_sharing_container').each(function(){if(typeof jQuery(this).attr('data-super-socializer-no-counts')=='undefined'){var currentTargetUrl=jQuery(this).attr('data-super-socializer-href');if(currentTargetUrl!=null&&jQuery.inArray(currentTargetUrl,heateorSsUrlCountFetched)==-1){targetUrls.push(currentTargetUrl);heateorSsUrlCountFetched.push(currentTargetUrl);}}});if(targetUrls.length==0){return;} jQuery.ajax({type:'GET',dataType:'json',url:theChampSharingAjaxUrl,data:{action:'the_champ_sharing_count',urls:targetUrls,},success:function(data,textStatus,XMLHttpRequest){if(data.status==1){if(data.facebook){heateorSsFacebookTargetUrls=data.facebook_urls;} for(var i in data.message){var sharingContainers=jQuery("div[data-super-socializer-href='"+i+"']");jQuery(sharingContainers).each(function(){var totalCount=0;for(var j in data.message[i]){var sharingCount=parseInt(data.message[i][j])||0;var targetElement=jQuery(this).find('.the_champ_'+j+'_count');if(jQuery(targetElement).attr('data-heateor-ss-st-count')){sharingCount=parseInt(sharingCount)+parseInt(jQuery(targetElement).attr('data-heateor-ss-st-count'));} totalCount+=parseInt(sharingCount);if(sharingCount<1){continue;} jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount)).css({'visibility':'visible','display':'block'});if((typeof theChampReduceHorizontalSvgWidth!='undefined'&&jQuery(this).hasClass('the_champ_horizontal_sharing'))||(typeof theChampReduceVerticalSvgWidth!='undefined'&&jQuery(this).hasClass('the_champ_vertical_sharing'))){jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('float','left');} if((typeof theChampReduceHorizontalSvgHeight!='undefined'&&jQuery(this).hasClass('the_champ_horizontal_sharing'))||(typeof theChampReduceVerticalSvgHeight!='undefined'&&jQuery(this).hasClass('the_champ_vertical_sharing'))){jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('marginTop','0');}} var totalCountContainer=jQuery(this).find('.theChampTCBackground');jQuery(totalCountContainer).each(function(){var containerHeight=jQuery(this).css('height');jQuery(this).html('
    '+theChampCalculateApproxCount(totalCount)+'
    '+(totalCount==0||totalCount>1?heateorSsSharesText:heateorSsShareText)+'
    ').css('visibility','visible');});});} if(heateorSsFacebookTargetUrls.length!=0){theChampFetchFacebookShares(heateorSsFacebookTargetUrls);}}}});} function theChampFetchFacebookShares(targetUrls){var loopCounter=0;for(var i in targetUrls){for(var j in targetUrls[i]){loopCounter++;theChampFBShareJSONCall(targetUrls[i][j],loopCounter,targetUrls[0].length*targetUrls.length,targetUrls[0][j]);}}} function theChampFBShareJSONCall(targetUrl,loopCounter,targetUrlsLength,dataHref){jQuery.getJSON('//graph.facebook.com/?id='+targetUrl,function(data){if(data.share&&data.share.share_count>=0){var sharingContainers=jQuery("div[data-super-socializer-href='"+dataHref+"']");jQuery(sharingContainers).each(function(){var targetElement=jQuery(this).find('.the_champ_facebook_count');var facebookBackground=jQuery(this).find('i.theChampFacebookBackground');var sharingCount=parseInt(data.share.share_count);if(jQuery(targetElement).attr('data-heateor-ss-st-count')!==undefined){sharingCount+=parseInt(jQuery(targetElement).attr('data-heateor-ss-st-count'));} if(sharingCount>0){if(typeof jQuery(facebookBackground).attr('heateor-ss-fb-shares')=='undefined'){jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount)).css({'visibility':'visible','display':'block'});jQuery(facebookBackground).attr('heateor-ss-fb-shares',sharingCount);}else if(typeof jQuery(facebookBackground).attr('heateor-ss-fb-shares')!='undefined'){var tempShareCount=parseInt(jQuery(facebookBackground).attr('heateor-ss-fb-shares'));jQuery(facebookBackground).attr('heateor-ss-fb-shares',sharingCount+tempShareCount);jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount+tempShareCount));} if((typeof theChampReduceHorizontalSvgWidth!='undefined'&&jQuery(this).hasClass('the_champ_horizontal_sharing'))||(typeof theChampReduceVerticalSvgWidth!='undefined'&&jQuery(this).hasClass('the_champ_vertical_sharing'))){jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('float','left');} if((typeof theChampReduceHorizontalSvgHeight!='undefined'&&jQuery(this).hasClass('the_champ_horizontal_sharing'))||(typeof theChampReduceVerticalSvgHeight!='undefined'&&jQuery(this).hasClass('the_champ_vertical_sharing'))){jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('marginTop','0');} var totalCountContainer=jQuery(this).find('.theChampTCBackground');jQuery(totalCountContainer).each(function(){var totalShareCountElem=jQuery(this).find('.theChampTotalShareCount');var totalShareCount=jQuery(totalShareCountElem).text();var newTotalCount=theChampCalculateActualCount(totalShareCount)+sharingCount;jQuery(totalShareCountElem).text(theChampCalculateApproxCount(newTotalCount));jQuery(this).find('.theChampTotalShareText').text(newTotalCount==0||newTotalCount>1?heateorSsSharesText:heateorSsShareText);});}});} if(loopCounter==targetUrlsLength){setTimeout(function(){var facebookShares={};for(var i in heateorSsFacebookTargetUrls[0]){var sharingContainers=jQuery("div[data-super-socializer-href='"+heateorSsFacebookTargetUrls[0][i]+"']");jQuery(sharingContainers).each(function(){var facebookCountElement=jQuery(this).find('.the_champ_facebook_count');var facebookCountElementBg=jQuery(this).find('i.theChampFacebookBackground');var shareCountString=typeof jQuery(facebookCountElementBg).attr('heateor-ss-fb-shares')!='undefined'?jQuery(facebookCountElementBg).attr('heateor-ss-fb-shares').trim():'';if(shareCountString!=''){var shareCount=parseInt(theChampCalculateActualCount(shareCountString));if(jQuery(facebookCountElement).attr('data-heateor-ss-st-count')!==undefined){var startingCount=parseInt(jQuery(facebookCountElement).attr('data-heateor-ss-st-count').trim());shareCount=Math.abs(shareCount-startingCount);} facebookShares[heateorSsFacebookTargetUrls[0][i]]=shareCount;return;}});} if(!jQuery.isEmptyObject(facebookShares)){theChampSaveFacebookShares(facebookShares);}},1000);}});} function theChampSaveFacebookShares(facebookShares){jQuery.ajax({type:'GET',dataType:'json',url:theChampSharingAjaxUrl,data:{action:'the_champ_save_facebook_shares',share_counts:facebookShares,},success:function(data,textStatus,XMLHttpRequest){}});} function theChampCalculateApproxCount(sharingCount){if(sharingCount>999&&sharingCount<10000){sharingCount=(Math.round(sharingCount/100))/10+'K';}else if(sharingCount>9999&&sharingCount<100000){sharingCount=(Math.round(sharingCount/100))/10+'K';}else if(sharingCount>99999&&sharingCount<1000000){sharingCount=(Math.round(sharingCount/100))/10+'K';}else if(sharingCount>999999){sharingCount=(Math.round(sharingCount/100000))/10+'M';} return sharingCount;} function theChampCalculateActualCount(sharingCount){if(sharingCount.indexOf('K')>0){sharingCount=sharingCount.replace('K','')*1000;}else if(sharingCount.indexOf('M')>0){sharingCount=sharingCount.replace('M','')*1000000;} return parseInt(sharingCount);} function theChampCapitaliseFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)} jQuery(function(){jQuery(document).on('click','a.the_champ_button_mastodon',function(){event.preventDefault();heateorSsMastodonPopup('');});var heateorSsWhatsappJSAPI=heateorSsDetermineWhatsappShareAPI(false);var classes=['the_champ_vertical_sharing','the_champ_vertical_counter'];for(var i=0;i=0){var removeClass='theChampPushIn',margin='Right',alignment='right',addClass='theChampPullOut';}else{var removeClass='theChampPullOut',margin='Left',alignment='left',addClass='theChampPushIn';} jQuery(this).html(verticalSharingHtml+'
    ');});}} if(typeof theChampMobileStickySharingEnabled!='undefined'&&theChampMobileStickySharingEnabled==1){if(jQuery('div.the_champ_vertical_sharing').length){jQuery(document.body).append("");}} var heateorSsClipboard=new ClipboardJS('a.the_champ_button_copy_link, span.the_champ_s_copy_link, span.the_champ_s_copy_link svg, span.the_champ_more_label_copy_link',{text:function(trigger){if(jQuery(trigger).hasClass('the_champ_button_copy_link')){var element=trigger.parentElement.parentElement;var url=jQuery(element).attr("data-super-socializer-href")||"";}else if(jQuery(trigger).hasClass('the_champ_s_copy_link')){var element=trigger.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-super-socializer-href")||"";if(!url){var element=trigger.parentElement.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-href")||"";}}else if(jQuery(trigger).parent().hasClass('the_champ_s_copy_link')){var element=trigger.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-super-socializer-href")||"";if(!url){var element=trigger.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-href")||"";}}else if(jQuery(trigger).hasClass('the_champ_more_label_copy_link')){var element=trigger.parentElement.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-href")||"";}else if(jQuery(trigger).attr('href')!="undefined"){var element=trigger.parentElement.parentElement.parentElement.parentElement;var url=jQuery(element).attr("data-href")||"";} return url;}});heateorSsClipboard.on('success',function(e){alert(heateorSsCopyLinkMessage);});});function theChampHideSharing(elem,removeClass,addClass,margin,alignment){var animation={},counter=jQuery(elem).parent().hasClass('the_champ_vertical_counter'),offset=parseInt(jQuery(elem).parent().css('width'))+10-(counter?16:0);var ssOffset=jQuery(elem).parent().attr('data-heateor-ss-offset');if(ssOffset){var savedOffset=parseInt(ssOffset);}else{var savedOffset=(counter?theChampCounterOffset:theChampSharingOffset);} if(jQuery(elem).attr('title')=='Hide'){animation[alignment]="-="+(offset+savedOffset);jQuery(elem).parent().animate(animation,400,function(){jQuery(elem).removeClass(removeClass).addClass(addClass).attr('title','Share');if(counter){var cssFloat=alignment=='left'?'right':'left';jQuery(elem).css('float',cssFloat);}else{jQuery(elem).css('margin'+margin,offset+'px')}});}else{animation[alignment]="+="+(offset+savedOffset);jQuery(elem).parent().animate(animation,400,function(){jQuery(elem).removeClass(addClass).addClass(removeClass).attr('title','Hide');if(counter){jQuery(elem).css('float',alignment);}else{jQuery(elem).css('margin'+margin,'0px');}});}} /*! * clipboard.js v2.0.6 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o
');jQuery("#wp-admin-bar-wpfc-toolbar-parent-default li").click(function(e){var id=(typeof e.target.id!="undefined"&&e.target.id)?e.target.id:jQuery(e.target).parent("li").attr("id");var action="";if(id=="wp-admin-bar-wpfc-toolbar-parent-settings"){if(jQuery("div[id^='wpfc-modal-toolbarsettings-']").length===0){self.open_settings();}}else{if(id=="wp-admin-bar-wpfc-toolbar-parent-delete-cache"){action="wpfc_delete_cache";}else if(id=="wp-admin-bar-wpfc-toolbar-parent-delete-cache-and-minified"){action="wpfc_delete_cache_and_minified";}else if(id=="wp-admin-bar-wpfc-toolbar-parent-clear-cache-of-this-page"){action="wpfc_delete_current_page_cache";}else if(id=="wp-admin-bar-wpfc-toolbar-parent-clear-cache-of-allsites"){action="wpfc_clear_cache_of_allsites";} WPFC_TOOLBAR.send({"action":action,"path":window.location.pathname});}});},open_settings:function(){var self=this;jQuery("#revert-loader-toolbar").show();jQuery.ajax({type:'GET',url:self.ajax_url,data:{"action":"wpfc_toolbar_get_settings","path":window.location.pathname},dataType:"json",cache:false,success:function(data){if(data.success){var data_json={"action":"wpfc_toolbar_save_settings","path":window.location.pathname,"roles":{}};Wpfc_New_Dialog.dialog("wpfc-modal-toolbarsettings",{close:function(){Wpfc_New_Dialog.clone.remove();},finish:function(){jQuery("#"+Wpfc_New_Dialog.id).find("input[type='checkbox']:checked").each(function(i,e){data_json.roles[jQuery(e).attr("name")]=1;});WPFC_TOOLBAR.send(data_json);Wpfc_New_Dialog.clone.remove();}},function(dialog){jQuery("#"+Wpfc_New_Dialog.id).find("input[type='checkbox']").each(function(i,e){if(typeof data.roles[jQuery(e).attr("name")]!="undefined"){jQuery(e).attr('checked',true);}});Wpfc_New_Dialog.show_button("close");Wpfc_New_Dialog.show_button("finish");setTimeout(function(){jQuery("#revert-loader-toolbar").hide();},500);});}else{alert("Toolbar Settings Error!")}}});},send:function(data_json){var self=this;if(typeof wpfc_nonce!="undefined"&&wpfc_nonce){data_json.nonce=wpfc_nonce;} jQuery("#revert-loader-toolbar").show();jQuery.ajax({type:'GET',url:self.ajax_url,data:data_json,dataType:"json",cache:false,success:function(data){if(data[1]=="error"){if(typeof data[2]!="undefined"&&data[2]=="alert"){alert(data[0]);}else{Wpfc_New_Dialog.dialog("wpfc-modal-permission",{close:"default"});Wpfc_New_Dialog.show_button("close");}} if(typeof WpFcCacheStatics!="undefined"){WpFcCacheStatics.update();}else{jQuery("#revert-loader-toolbar").hide();}}});}};window.addEventListener('load',function(){jQuery(document).ready(function(){WPFC_TOOLBAR.init();});});}catch(e){} try{jQuery(document).ready(function() {var percentage=jQuery('#wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar').attr('percentage');var rotate=percentage*1.8;jQuery('#wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .mask.full, #wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .fill').css({'-webkit-transform':'rotate('+rotate+'deg)','-ms-transform':'rotate('+rotate+'deg)','transform':'rotate('+rotate+'deg)'});jQuery('#wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .inset').css('background-color',jQuery('#wp-admin-bar-autoptimize .ab-sub-wrapper').css('background-color'));jQuery('#wp-admin-bar-autoptimize-delete-cache .ab-item').css('background-color',jQuery('#wpadminbar').css('background-color'));jQuery('#wp-admin-bar-autoptimize-default li').on('click',function(e) {var id=(typeof e.target.id!='undefined'&&e.target.id)?e.target.id:jQuery(e.target).parent('li').attr('id');var action='';if(id=='wp-admin-bar-autoptimize-delete-cache'){action='autoptimize_delete_cache';}else{return;} jQuery('#wp-admin-bar-autoptimize').removeClass('hover');var modal_loading=jQuery('
').appendTo('body').show();var success=function(){jQuery('#wp-admin-bar-autoptimize-cache-info .size').attr('class','size green').html('0.00 B');jQuery('#wp-admin-bar-autoptimize-cache-info .files').html('0');jQuery('#wp-admin-bar-autoptimize-cache-info .percentage .numbers').attr('class','numbers green').html('0%');jQuery('#wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .fill').attr('class','fill bg-green');jQuery('#wp-admin-bar-autoptimize').attr('class','menupop bullet-green');jQuery('#wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .mask.full, #wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .fill').css({'-webkit-transform':'rotate(0deg)','-ms-transform':'rotate(0deg)','transform':'rotate(0deg)'});};var notice=function(){jQuery('

'+autoptimize_ajax_object.error_msg+'


').insertAfter('#wpbody .wrap h1:first-of-type').show();};jQuery.ajax({type:'GET',url:autoptimize_ajax_object.ajaxurl,data:{'action':action,'nonce':autoptimize_ajax_object.nonce},dataType:'json',cache:false,timeout:9000,success:function(cleared) {modal_loading.remove();if(cleared){success();}else{notice();}},error:function(jqXHR,textStatus) {modal_loading.remove();notice();}});});});}catch(e){} try{(function(){var expirationDate=new Date();expirationDate.setTime(expirationDate.getTime()+31536000*1000);document.cookie="pll_language=pl; expires="+expirationDate.toUTCString()+"; path=/; secure; SameSite=Lax";}());}catch(e){}