(()=>{var e,t;e=this,t=()=>{let e={startStopTimes:{},idleTimeoutMs:3e4,currentIdleTimeMs:0,checkIdleStateRateMs:250,isUserCurrentlyOnPage:!0,isUserCurrentlyIdle:!1,currentPageName:"default-page-name",timeElapsedCallbacks:[],userLeftCallbacks:[],userReturnCallbacks:[],trackTimeOnElement:t=>{let s=document.getElementById(t);s&&(s.addEventListener("mouseover",(()=>{e.startTimer(t)})),s.addEventListener("mousemove",(()=>{e.startTimer(t)})),s.addEventListener("mouseleave",(()=>{e.stopTimer(t)})),s.addEventListener("keypress",(()=>{e.startTimer(t)})),s.addEventListener("focus",(()=>{e.startTimer(t)})))},getTimeOnElementInSeconds:t=>{let s=e.getTimeOnPageInSeconds(t);return s||0},startTimer:(t,s)=>{if(t||(t=e.currentPageName),void 0===e.startStopTimes[t])e.startStopTimes[t]=[];else{let s=e.startStopTimes[t],n=s[s.length-1];if(void 0!==n&&void 0===n.stopTime)return}e.startStopTimes[t].push({startTime:s||new Date,stopTime:void 0})},stopAllTimers:()=>{let t=Object.keys(e.startStopTimes);for(let s=0;s<t.length;s++)e.stopTimer(t[s])},stopTimer:(t,s)=>{t||(t=e.currentPageName);let n=e.startStopTimes[t];void 0!==n&&0!==n.length&&void 0===n[n.length-1].stopTime&&(n[n.length-1].stopTime=s||new Date)},getTimeOnCurrentPageInSeconds:()=>e.getTimeOnPageInSeconds(e.currentPageName),getTimeOnPageInSeconds:t=>{let s=e.getTimeOnPageInMilliseconds(t);return void 0===s?void 0:s/1e3},getTimeOnCurrentPageInMilliseconds:()=>e.getTimeOnPageInMilliseconds(e.currentPageName),getTimeOnPageInMilliseconds:t=>{let s=0,n=e.startStopTimes[t];if(void 0===n)return;let i=0;for(let e=0;e<n.length;e++){let t=n[e].startTime,s=n[e].stopTime;void 0===s&&(s=new Date),i+=s-t}return s=Number(i),s},getTimeOnAllPagesInSeconds:()=>{let t=[],s=Object.keys(e.startStopTimes);for(let n=0;n<s.length;n++){let i=s[n],r=e.getTimeOnPageInSeconds(i);t.push({pageName:i,timeOnPage:r})}return t},setIdleDurationInSeconds:t=>{let s=parseFloat(t);if(!1!==isNaN(s))throw{name:"InvalidDurationException",message:"An invalid duration time ("+t+") was provided."};e.idleTimeoutMs=1e3*t},setCurrentPageName:t=>{e.currentPageName=t},resetRecordedPageTime:t=>{delete e.startStopTimes[t]},resetAllRecordedPageTimes:()=>{let t=Object.keys(e.startStopTimes);for(let s=0;s<t.length;s++)e.resetRecordedPageTime(t[s])},userActivityDetected:()=>{e.isUserCurrentlyIdle&&e.triggerUserHasReturned(),e.resetIdleCountdown()},resetIdleCountdown:()=>{e.isUserCurrentlyIdle=!1,e.currentIdleTimeMs=0},callWhenUserLeaves:(t,s)=>{e.userLeftCallbacks.push({callback:t,numberOfTimesToInvoke:s})},callWhenUserReturns:(t,s)=>{e.userReturnCallbacks.push({callback:t,numberOfTimesToInvoke:s})},triggerUserHasReturned:()=>{if(!e.isUserCurrentlyOnPage){e.isUserCurrentlyOnPage=!0,e.resetIdleCountdown();for(let t=0;t<e.userReturnCallbacks.length;t++){let s=e.userReturnCallbacks[t],n=s.numberOfTimesToInvoke;(isNaN(n)||void 0===n||n>0)&&(s.numberOfTimesToInvoke-=1,s.callback())}}e.startTimer()},triggerUserHasLeftPageOrGoneIdle:()=>{if(e.isUserCurrentlyOnPage){e.isUserCurrentlyOnPage=!1;for(let t=0;t<e.userLeftCallbacks.length;t++){let s=e.userLeftCallbacks[t],n=s.numberOfTimesToInvoke;(isNaN(n)||void 0===n||n>0)&&(s.numberOfTimesToInvoke-=1,s.callback())}}e.stopAllTimers()},callAfterTimeElapsedInSeconds:(t,s)=>{e.timeElapsedCallbacks.push({timeInSeconds:t,callback:s,pending:!0})},checkIdleState:()=>{for(let t=0;t<e.timeElapsedCallbacks.length;t++)e.timeElapsedCallbacks[t].pending&&e.getTimeOnCurrentPageInSeconds()>e.timeElapsedCallbacks[t].timeInSeconds&&(e.timeElapsedCallbacks[t].callback(),e.timeElapsedCallbacks[t].pending=!1);!1===e.isUserCurrentlyIdle&&e.currentIdleTimeMs>e.idleTimeoutMs?(e.isUserCurrentlyIdle=!0,e.triggerUserHasLeftPageOrGoneIdle()):e.currentIdleTimeMs+=e.checkIdleStateRateMs},visibilityChangeEventName:void 0,hiddenPropName:void 0,listenForVisibilityEvents:(t,s)=>{t&&e.listenForUserLeavesOrReturnsEvents(),s&&e.listForIdleEvents()},listenForUserLeavesOrReturnsEvents:()=>{void 0!==document.hidden?(e.hiddenPropName="hidden",e.visibilityChangeEventName="visibilitychange"):void 0!==document.mozHidden?(e.hiddenPropName="mozHidden",e.visibilityChangeEventName="mozvisibilitychange"):void 0!==document.msHidden?(e.hiddenPropName="msHidden",e.visibilityChangeEventName="msvisibilitychange"):void 0!==document.webkitHidden&&(e.hiddenPropName="webkitHidden",e.visibilityChangeEventName="webkitvisibilitychange"),document.addEventListener(e.visibilityChangeEventName,(()=>{document[e.hiddenPropName]?e.triggerUserHasLeftPageOrGoneIdle():e.triggerUserHasReturned()}),!1),window.addEventListener("blur",(()=>{e.triggerUserHasLeftPageOrGoneIdle()})),window.addEventListener("focus",(()=>{e.triggerUserHasReturned()}))},listForIdleEvents:()=>{document.addEventListener("mousemove",(()=>{e.userActivityDetected()})),document.addEventListener("keyup",(()=>{e.userActivityDetected()})),document.addEventListener("touchstart",(()=>{e.userActivityDetected()})),window.addEventListener("scroll",(()=>{e.userActivityDetected()})),setInterval((()=>{!0!==e.isUserCurrentlyIdle&&e.checkIdleState()}),e.checkIdleStateRateMs)},websocket:void 0,websocketHost:void 0,setUpWebsocket:t=>{if(window.WebSocket&&t){let s=t.websocketHost;try{e.websocket=new WebSocket(s),window.onbeforeunload=()=>{e.sendCurrentTime(t.appId)},e.websocket.onopen=()=>{e.sendInitWsRequest(t.appId)},e.websocket.onerror=e=>{console&&console.log("Error occurred in websocket connection: "+e)},e.websocket.onmessage=e=>{console&&console.log(e.data)}}catch(e){console&&console.error("Failed to connect to websocket host.  Error:"+e)}}},websocketSend:t=>{e.websocket.send(JSON.stringify(t))},sendCurrentTime:t=>{let s={type:"INSERT_TIME",appId:t,timeOnPageMs:e.getTimeOnCurrentPageInMilliseconds(),pageName:e.currentPageName};e.websocketSend(s)},sendInitWsRequest:t=>{let s={type:"INIT",appId:t};e.websocketSend(s)},initialize:t=>{let s,n,i=e.idleTimeoutMs||30,r=e.currentPageName||"default-page-name",a=!0,o=!0;t&&(i=t.idleTimeoutInSeconds||i,r=t.currentPageName||r,s=t.websocketOptions,n=t.initialStartTime,!1===t.trackWhenUserLeavesPage&&(a=!1),!1===t.trackWhenUserGoesIdle&&(o=!1)),e.setIdleDurationInSeconds(i),e.setCurrentPageName(r),e.setUpWebsocket(s),e.listenForVisibilityEvents(a,o),e.startTimer(void 0,n)}};return e},"undefined"!=typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define([],(()=>e.TimeMe=t())):e.TimeMe=t()}).call(this),TimeMe.initialize({idleTimeoutInSeconds:30});
let burst_track_hit_running=!1,burst_initial_track_hit=!1,burst_cookieless_option=burst.options.enable_cookieless_tracking,burst_page_url=(window.burst_enable_cookieless_tracking=burst.options.enable_cookieless_tracking,window.location.href),burst_completed_goals=[],burst_goals_script_url=burst.goals_script_url||"./burst-goals.js";const pageIsRendered=new Promise(t=>{document.prerendering?document.addEventListener("prerenderingchange",t,{once:!0}):t()}),burst_import_goals=async()=>{(await import(burst_goals_script_url)).default()};if(0<burst.goals.length)for(let t=0;t<burst.goals.length;t++)if(""!==burst.goals[t].page_url||burst.goals[t].page_url===burst_page_url){burst_import_goals();break}let burst_get_cookie=i=>new Promise((e,t)=>{i+="=";var o=window.document.cookie.split(";");for(let t=0;t<o.length;t++){var r=o[t].trim();0===r.indexOf(i)&&e(r.substring(i.length,r.length))}t(!1)}),burst_set_cookie=(t,e)=>{let o="",r=";secure";var i=new Date,n=burst.cookie_retention_days,n=(i.setTime(i.getTime()+24*n*60*60*1e3),";expires="+i.toGMTString());"https:"!==window.location.protocol&&(r=""),0<o.length&&(o=";domain="+o),document.cookie=t+"="+e+";SameSite=Strict"+r+n+o+";path=/"},burst_use_cookies=()=>!(!navigator.cookieEnabled||burst_cookieless_option&&window.burst_enable_cookieless_tracking);function burst_enable_cookies(){window.burst_enable_cookieless_tracking=0,burst_use_cookies()&&burst_uid().then(t=>{burst_set_cookie("burst_uid",t.uid)})}const burst_uid=()=>new Promise(e=>{burst_get_cookie("burst_uid").then(t=>{e(t)}).catch(()=>{var t=burst_generate_uid();burst_set_cookie("burst_uid",t),e(t)})});let burst_generate_uid=()=>{let e="";for(let t=0;t<32;t++)e+=Math.floor(16*Math.random()).toString(16);return e};const burst_fingerprint=()=>new Promise((e,o)=>{imprint.test(["availableScreenResolution","canvas","colorDepth","cookies","cpuClass","deviceDpi","doNotTrack","indexedDb","language","localStorage","pixelRatio","platform","plugins","processorCores","screenResolution","sessionStorage","timezoneOffset","touchSupport","userAgent","webGl"]).then(function(t){e(t)}).catch(t=>{o(t)})});let burst_get_time_on_page=()=>new Promise(t=>{"undefined"==typeof TimeMe&&t(0);var e=TimeMe.getTimeOnCurrentPageInMilliseconds();TimeMe.resetAllRecordedPageTimes(),TimeMe.initialize({idleTimeoutInSeconds:30}),t(e)}),burst_is_user_agent=()=>{var t=new RegExp("(googlebot/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),e=navigator.userAgent;return t.test(e)},burst_is_do_not_track=()=>!!burst.options.do_not_track&&("1"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack||1===navigator.globalPrivacyControl),burst_api_request=r=>new Promise((t,e)=>{var o;burst.options.beacon_enabled?(o={type:"application/json"},o=new Blob([JSON.stringify(r.data)],o),window.navigator.sendBeacon(burst.beacon_url,o),t("ok")):(o="token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,7),wp.apiFetch({path:"/burst/v1/track/?"+o,keepalive:!0,method:"POST",data:r.data}).then(t=>{202===t.status&&t.json().then(t=>console.warn(t))},t=>console.log(t)))});async function burst_update_hit(t=!1){var e;await pageIsRendered,burst_is_user_agent()||burst_is_do_not_track()||burst_initial_track_hit&&(e=new CustomEvent("burst_before_update_hit",{detail:burst}),document.dispatchEvent(e),e={fingerprint:!1,uid:!1,url:location.href,time_on_page:await burst_get_time_on_page(),completed_goals:burst_completed_goals},t?(e.uid=await burst_uid(),e.fingerprint=await burst_fingerprint()):burst_use_cookies()?e.uid=await burst_uid():e.fingerprint=await burst_fingerprint(),0<e.time_on_page||!1!==e.uid)&&await burst_api_request({data:JSON.stringify(e)}).catch(t=>{})}async function burst_track_hit(){var t,e;await pageIsRendered,burst_initial_track_hit?burst_update_hit():(burst_initial_track_hit=!0,burst_is_user_agent()||burst_is_do_not_track()||burst_track_hit_running||(burst_track_hit_running=!0,e=new CustomEvent("burst_before_track_hit",{detail:burst}),document.dispatchEvent(e),t={uid:!1,fingerprint:!1,url:location.href,referrer_url:document.referrer,user_agent:navigator.userAgent||"unknown",device_resolution:window.screen.width*window.devicePixelRatio+"x"+window.screen.height*window.devicePixelRatio,time_on_page:await burst_get_time_on_page(),completed_goals:burst_completed_goals},burst_use_cookies()?t.uid=await burst_uid():t.fingerprint=await burst_fingerprint(),e=new CustomEvent("burst_track_hit",{detail:t}),document.dispatchEvent(e),e={method:"POST",data:JSON.stringify(t)},burst_api_request(e).catch(t=>{burst_track_hit_running=!1}),burst_track_hit_running=!1))}function burst_init_events(){!burst.options.enable_turbo_mode||"loading"!==document.readyState?burst_track_hit():document.addEventListener("load",burst_track_hit),document.addEventListener("visibilitychange",function(){"hidden"!==document.visibilityState&&"unloaded"!==document.visibilityState||burst_update_hit()}),document.addEventListener("pagehide",burst_update_hit),document.addEventListener("burst_fire_hit",function(){burst_track_hit()});const r=history.pushState,i=history.replaceState,n=()=>{burst.options.track_url_change&&(burst_initial_track_hit=!1,burst_track_hit())};history.pushState=function(t,e,o){r.apply(history,arguments),n()},history.replaceState=function(t,e,o){i.apply(history,arguments),n()},window.addEventListener("popstate",n),document.addEventListener("burst_enable_cookies",function(){burst_enable_cookies(),burst_update_hit(!0)})}document.addEventListener("wp_listen_for_consent_change",function(t){var e,o=t.detail;for(e in o)o.hasOwnProperty(e)&&"statistics"===e&&"allow"===o[e]&&burst_init_events()}),"function"==typeof wp_has_consent&&!wp_has_consent("statistics")||burst_init_events();
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.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,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\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></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"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});
/*! This file is auto-generated */
!function(n,r){var t,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,t=n._,(e=n._=r()).noConflict=function(){return n._=t,e})}(this,function(){var n="1.13.6",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,F=Object.prototype,V="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=F.toString,q=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=t&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),r=Array(n),t=0;t<n;t++)r[t]=arguments[t+o];switch(o){case 0:return u.call(this,r);case 1:return u.call(this,arguments[0],r);case 2:return u.call(this,arguments[0],arguments[1],r)}for(var e=Array(o+1),t=0;t<o;t++)e[t]=arguments[t];return e[o]=r,u.apply(this,e)}}function o(n){var r=typeof n;return"function"==r||"object"==r&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var r="[object "+n+"]";return function(n){return s.call(n)===r}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),rn=i("Error"),tn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),r=r.document&&r.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof r?function(n){return"function"==typeof n||!1}:a,r=i("Object"),un=u&&r(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&r(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,r){return null!=n&&q.call(n,r)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(r){return function(n){n=r(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(r){return function(n){return null==n?void 0:n[r]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=t?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,r){r=function(r){for(var t={},n=r.length,e=0;e<n;++e)t[r[e]]=!0;return{contains:function(n){return!0===t[n]},push:function(n){return t[n]=!0,r.push(n)}}}(r);var t=J.length,e=n.constructor,u=p(e)&&e.prototype||F,o="constructor";for(y(n,o)&&!r.contains(o)&&r.push(o);t--;)(o=J[t])in n&&n[o]!==u[o]&&!r.contains(o)&&r.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var r,t=[];for(r in n)y(n,r)&&t.push(r);return K&&yn(n,t),t}function dn(n,r){var t=b(r),e=t.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=t[o];if(r[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,r,t,e){var u;return n===r?0!==n||1/n==1/r:null!=n&&null!=r&&(n!=n?r!=r:("function"==(u=typeof n)||"object"==u||"object"==typeof r)&&function n(r,t,e,u){r instanceof m&&(r=r._wrapped);t instanceof m&&(t=t._wrapped);var o=s.call(r);if(o!==s.call(t))return!1;if(un&&"[object Object]"==o&&h(r)){if(!h(t))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+r==""+t;case"[object Number]":return+r!=+r?+t!=+t:0==+r?1/+r==1/t:+r==+t;case"[object Date]":case"[object Boolean]":return+r==+t;case"[object Symbol]":return V.valueOf.call(r)===V.valueOf.call(t);case"[object ArrayBuffer]":case bn:return n(gn(r),gn(t),e,u)}o="[object Array]"===o;if(!o&&vn(r)){var i=d(r);if(i!==d(t))return!1;if(r.buffer===t.buffer&&r.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof r||"object"!=typeof t)return!1;var i=r.constructor,a=t.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in r&&"constructor"in t)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===r)return u[f]===t;e.push(r);u.push(t);if(o){if((f=r.length)!==t.length)return!1;for(;f--;)if(!mn(r[f],t[f],e,u))return!1}else{var c,l=b(r);if(f=l.length,b(t).length!==f)return!1;for(;f--;)if(c=l[f],!y(t,c)||!mn(r[c],t[c],e,u))return!1}e.pop();u.pop();return!0}(n,r,t,e))}function c(n){if(!o(n))return[];var r,t=[];for(r in n)t.push(r);return K&&yn(n,t),t}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var r=c(n);if(g(r))return!1;for(var t=0;t<u;t++)if(!p(n[e[t]]))return!1;return e!==wn||!p(n[_n])}}var _n="forEach",r=["clear","delete"],u=["get","has","set"],U=r.concat(_n,u),wn=r.concat(u),t=["add"].concat(r,_n,"has"),u=a?jn(U):i("Map"),r=a?jn(wn):i("WeakMap"),U=a?jn(t):i("Set"),a=i("WeakSet");function j(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function An(n){for(var r={},t=b(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function xn(n){var r,t=[];for(r in n)p(n[r])&&t.push(r);return t.sort()}function Sn(f,c){return function(n){var r=arguments.length;if(c&&(n=Object(n)),!(r<2||null==n))for(var t=1;t<r;t++)for(var e=arguments[t],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),_=Sn(b),Mn=Sn(c,!0);function En(n){var r;return o(n)?z?z(n):((r=function(){}).prototype=n,n=new r,r.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function w(n){return m.toPath(n)}function Nn(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function In(n,r,t){n=Nn(n,w(r));return H(n)?t:n}function Tn(n){return n}function A(r){return r=_({},r),function(n){return dn(n,r)}}function kn(r){return r=w(r),function(n){return Nn(n,r)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,r,t){return u.call(o,n,r,t)};case 4:return function(n,r,t,e){return u.call(o,n,r,t,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,r,t){return null==n?Tn:p(n)?x(n,r,t):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,r){return Dn(n,r,1/0)}function S(n,r,t){return m.iteratee!==Rn?m.iteratee(n,r):Dn(n,r,t)}function Fn(){}function Vn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(r){function t(n){return r[n]}var n="(?:"+b(r).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,t):n}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(t),t=Pn(An(t)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,r,t,e,u){return e instanceof r?(e=En(n.prototype),o(r=n.apply(e,u))?r:e):n.apply(t,u)}var M=l(function(u,o){function i(){for(var n=0,r=o.length,t=Array(r),e=0;e<r;e++)t[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)t.push(arguments[n++]);return Jn(u,i,this,this,t)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(r,t,e){var u;if(p(r))return u=l(function(n){return Jn(r,u,t,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,r,t,e){if(e=e||[],r||0===r){if(r<=0)return e.concat(n)}else r=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<r)B(a,r-1,t,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else t||(e[u++]=a)}return e}var Hn=l(function(n,r){var t=(r=B(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,r,t){return setTimeout(function(){return n.apply(null,t)},r)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,r){var t;return function(){return 0<--n&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var nr=M(Zn,2);function rr(n,r,t){r=S(r,t);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(r(n[e=u[o]],e,n))return e}function tr(o){return function(n,r,t){r=S(r,t);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(r(n[u],u,n))return u;return-1}}var er=tr(1),ur=tr(-1);function or(n,r,t,e){for(var u=(t=S(t,e,1))(r),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);t(n[a])<u?o=a+1:i=a}return o}function ir(o,i,a){return function(n,r,t){var e=0,u=g(n);if("number"==typeof t)0<o?e=0<=t?t:Math.max(t+u,e):u=0<=t?Math.min(t+1,u):t+u+1;else if(a&&t&&u)return n[t=a(n,r)]===r?t:-1;if(r!=r)return 0<=(t=i(f.call(n,e,u),fn))?t+e:-1;for(t=0<o?e:u-1;0<=t&&t<u;t+=o)if(n[t]===r)return t;return-1}}var ar=ir(1,er,or),fr=ir(-1,ur);function cr(n,r,t){r=(E(n)?er:rr)(n,r,t);if(void 0!==r&&-1!==r)return n[r]}function N(n,r,t){if(r=x(r,t),E(n))for(u=0,o=n.length;u<o;u++)r(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)r(n[e[u]],e[u],n);return n}function I(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=r(n[a],a,n)}return o}function lr(p){return function(n,r,t,e){var u=3<=arguments.length,o=n,i=x(r,e,4),a=t,f=!E(o)&&b(o),c=(f||o).length,l=0<p?0:c-1;for(u||(a=o[f?f[l]:l],l+=p);0<=l&&l<c;l+=p){var s=f?f[l]:l;a=i(a,o[s],s,o)}return a}}var sr=lr(1),pr=lr(-1);function T(n,e,r){var u=[];return e=S(e,r),N(n,function(n,r,t){e(n,r,t)&&u.push(n)}),u}function hr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!r(n[i],i,n))return!1}return!0}function vr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(r(n[i],i,n))return!0}return!1}function k(n,r,t,e){return E(n)||(n=j(n)),0<=ar(n,r,t="number"==typeof t&&!e?t:0)}var yr=l(function(n,t,e){var u,o;return p(t)?o=t:(t=w(t),u=t.slice(0,-1),t=t[t.length-1]),I(n,function(n){var r=o;if(!r){if(null==(n=u&&u.length?Nn(n,u):n))return;r=n[t]}return null==r?r:r.apply(n,e)})});function dr(n,r){return I(n,kn(r))}function gr(n,e,r){var t,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&o<t&&(o=t);else e=S(e,r),N(n,function(n,r,t){u=e(n,r,t),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var br=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mr(n){return n?v(n)?f.call(n):X(n)?n.match(br):E(n)?I(n,Tn):j(n):[]}function jr(n,r,t){if(null==r||t)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=mr(n),t=g(e),u=(r=Math.max(Math.min(r,t),0),t-1),o=0;o<r;o++){var i=Vn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,r)}function D(o,r){return function(t,e,n){var u=r?[[],[]]:{};return e=S(e,n),N(t,function(n,r){r=e(n,r,t);o(u,n,r)}),u}}var _r=D(function(n,r,t){y(n,t)?n[t].push(r):n[t]=[r]}),wr=D(function(n,r,t){n[t]=r}),Ar=D(function(n,r,t){y(n,t)?n[t]++:n[t]=1}),xr=D(function(n,r,t){n[t?0:1].push(r)},!0);function Sr(n,r,t){return r in t}var Or=l(function(n,r){var t={},e=r[0];if(null!=n){p(e)?(1<r.length&&(e=x(e,r[1])),r=c(n)):(e=Sr,r=B(r,!1,!1),n=Object(n));for(var u=0,o=r.length;u<o;u++){var i=r[u],a=n[i];e(a,i,n)&&(t[i]=a)}}return t}),Mr=l(function(n,t){var r,e=t[0];return p(e)?(e=Yn(e),1<t.length&&(r=t[1])):(t=I(B(t,!1,!1),String),e=function(n,r){return!k(t,r)}),Or(n,e,r)});function Er(n,r,t){return f.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function Br(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:Er(n,n.length-r)}function R(n,r,t){return f.call(n,null==r||t?1:r)}var Nr=l(function(n,r){return r=B(r,!0,!0),T(n,function(n){return!k(r,n)})}),Ir=l(function(n,r){return Nr(n,r)});function Tr(n,r,t,e){Q(r)||(e=t,t=r,r=!1),null!=t&&(t=S(t,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=t?t(f,i,n):f;r&&!t?(i&&o===c||u.push(f),o=c):t?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kr=l(function(n){return Tr(B(n,!0,!0))});function Dr(n){for(var r=n&&gr(n,g).length||0,t=Array(r),e=0;e<r;e++)t[e]=dr(n,e);return t}var Rr=l(Dr);function Fr(n,r){return n._chain?m(r).chain():r}function Vr(t){return N(xn(t),function(n){var r=m[n]=t[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Fr(this,r.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var t=e[r];m.prototype[r]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==r&&"splice"!==r||0!==n.length||delete n[0]),Fr(this,n)}}),N(["concat","join","slice"],function(n){var r=e[n];m.prototype[n]=function(){var n=this._wrapped;return Fr(this,n=null!=n?r.apply(n,arguments):n)}});n=Vr({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:rn,isSymbol:tn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!tn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var r;return null==n||("number"==typeof(r=g(n))&&(v(n)||X(n)||an(n))?0===r:0===g(b(n)))},isMatch:dn,isEqual:function(n,r){return mn(n,r)},isMap:u,isWeakMap:r,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:_,assign:_,defaults:Mn,create:function(n,r){return n=En(n),r&&_(n,r),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,r){return r(n),n},get:In,has:function(n,r){for(var t=(r=w(r)).length,e=0;e<t;e++){var u=r[e];if(!y(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=S(r,t);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=r(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Fn,toPath:Bn,property:kn,propertyOf:function(r){return null==r?Fn:function(n){return In(r,n)}},matcher:A,matches:A,times:function(n,r,t){var e=Array(Math.max(0,n));r=x(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:Vn,now:O,escape:qn,unescape:t,templateSettings:Un,template:function(o,n,r){n=Mn({},n=!n&&r?r:n,m.templateSettings);var t,r=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(r,function(n,r,t,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,r?a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":t?a+="'+\n((__t=("+t+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",r=n.variable){if(!Cn.test(r))throw new Error("variable is not a bare identifier: "+r)}else a="with(obj||{}){\n"+a+"}\n",r="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{t=new Function(r,"_",a)}catch(n){throw n.source=a,n}function e(n){return t.call(this,n,m)}return e.source="function("+r+"){\n"+a+"}",e},result:function(n,r,t){var e=(r=w(r)).length;if(!e)return p(t)?t.call(n):t;for(var u=0;u<e;u++){var o=null==n?void 0:n[r[u]];void 0===o&&(o=t,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var r=++Kn+"";return n?n+r:r},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var r=o.cache,t=""+(u?u.apply(this,arguments):n);return y(r,t)||(r[t]=e.apply(this,arguments)),r[t]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(t,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=t.apply(a,f),i||(a=f=null)}function n(){var n=O(),r=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,r<=0||e<r?(i&&(clearTimeout(i),i=null),l=n,c=t.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,r)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(r,t,e){function u(){var n=O()-i;n<t?o=setTimeout(u,t-n):(o=null,e||(f=r.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,t),e&&(f=r.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,r){return M(r,n)},negate:Yn,compose:function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:Zn,once:nr,findKey:rr,findIndex:er,findLastIndex:ur,sortedIndex:or,indexOf:ar,lastIndexOf:fr,find:cr,detect:cr,findWhere:function(n,r){return cr(n,A(r))},each:N,forEach:N,map:I,collect:I,reduce:sr,foldl:sr,inject:sr,reduceRight:pr,foldr:pr,filter:T,select:T,reject:function(n,r,t){return T(n,Yn(S(r)),t)},every:hr,all:hr,some:vr,any:vr,contains:k,includes:k,include:k,invoke:yr,pluck:dr,where:function(n,r){return T(n,A(r))},max:gr,min:function(n,e,r){var t,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&t<o&&(o=t);else e=S(e,r),N(n,function(n,r,t){((u=e(n,r,t))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jr(n,1/0)},sample:jr,sortBy:function(n,e,r){var u=0;return e=S(e,r),dr(I(n,function(n,r,t){return{value:n,index:u++,criteria:e(n,r,t)}}).sort(function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(e<t||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index}),"value")},groupBy:_r,indexBy:wr,countBy:Ar,partition:xr,toArray:mr,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Or,omit:Mr,first:Br,head:Br,take:Br,initial:Er,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:R(n,Math.max(0,n.length-r))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,r){return B(n,r,!1)},without:Ir,uniq:Tr,unique:Tr,union:kr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(r,o)){for(var i=1;i<t&&k(arguments[i],o);i++);i===t&&r.push(o)}}return r},difference:Nr,unzip:Dr,transpose:Dr,zip:Rr,object:function(n,r){for(var t={},e=0,u=g(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t=t||(r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),o=0;o<e;o++,n+=t)u[o]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(f.call(n,e,e+=r));return t},mixin:Vr,default:m});return n._=n});
/*! This file is auto-generated */
window.wp=window.wp||{},function(s){var t="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize(function(e){var n,a={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(t){if(document.getElementById("tmpl-"+e))return(n=n||_.template(s("#tmpl-"+e).html(),a))(t);throw new Error("Template not found: #tmpl-"+e)}}),wp.ajax={settings:t.ajax||{},post:function(t,e){return wp.ajax.send({data:_.isObject(t)?t:_.extend(e||{},{action:t})})},send:function(a,t){var e,n;return _.isObject(a)?t=a:(t=t||{}).data=_.extend(t.data||{},{action:a}),t=_.defaults(t||{},{type:"POST",url:wp.ajax.settings.url,context:this}),(e=(n=s.Deferred(function(n){t.success&&n.done(t.success),t.error&&n.fail(t.error),delete t.success,delete t.error,n.jqXHR=s.ajax(t).done(function(t){var e;"1"!==t&&1!==t||(t={success:!0}),_.isObject(t)&&!_.isUndefined(t.success)?(e=this,n.done(function(){a&&a.data&&"query-attachments"===a.data.action&&n.jqXHR.hasOwnProperty("getResponseHeader")&&n.jqXHR.getResponseHeader("X-WP-Total")?e.totalAttachments=parseInt(n.jqXHR.getResponseHeader("X-WP-Total"),10):e.totalAttachments=0}),n[t.success?"resolveWith":"rejectWith"](this,[t.data])):n.rejectWith(this,[t])}).fail(function(){n.rejectWith(this,arguments)})})).promise()).abort=function(){return n.jqXHR.abort(),this},e}}}(jQuery);
/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
!function(t,a,i,e){var r=function(t){var a=this;a.$form=t,a.$attributeFields=t.find(".variations select"),a.$singleVariation=t.find(".single_variation"),a.$singleVariationWrap=t.find(".single_variation_wrap"),a.$resetVariations=t.find(".reset_variations"),a.$product=t.closest(".product"),a.variationData=t.data("product_variations"),a.useAjax=!1===a.variationData,a.xhr=!1,a.loading=!0,a.$singleVariationWrap.show(),a.$form.off(".wc-variation-form"),a.getChosenAttributes=a.getChosenAttributes.bind(a),a.findMatchingVariations=a.findMatchingVariations.bind(a),a.isMatch=a.isMatch.bind(a),a.toggleResetLink=a.toggleResetLink.bind(a),a.showNoMatchingVariationsMsg=a.showNoMatchingVariationsMsg.bind(a),t.on("click.wc-variation-form",".reset_variations",{variationForm:a},a.onReset),t.on("reload_product_variations",{variationForm:a},a.onReload),t.on("hide_variation",{variationForm:a},a.onHide),t.on("show_variation",{variationForm:a},a.onShow),t.on("click",".single_add_to_cart_button",{variationForm:a},a.onAddToCart),t.on("reset_data",{variationForm:a},a.onResetDisplayedVariation),t.on("reset_image",{variationForm:a},a.onResetImage),t.on("change.wc-variation-form",".variations select",{variationForm:a},a.onChange),t.on("found_variation.wc-variation-form",{variationForm:a},a.onFoundVariation),t.on("check_variations.wc-variation-form",{variationForm:a},a.onFindVariation),t.on("update_variation_values.wc-variation-form",{variationForm:a},a.onUpdateAttributes),setTimeout(function(){t.trigger("check_variations"),t.trigger("wc_variation_form",a),a.loading=!1},100)};r.prototype.onReset=function(t){t.preventDefault(),t.data.variationForm.$attributeFields.val("").trigger("change"),t.data.variationForm.$form.trigger("reset_data")},r.prototype.onReload=function(t){var a=t.data.variationForm;a.variationData=a.$form.data("product_variations"),a.useAjax=!1===a.variationData,a.$form.trigger("check_variations")},r.prototype.onHide=function(t){t.preventDefault(),t.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-is-unavailable").addClass("disabled wc-variation-selection-needed"),t.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled")},r.prototype.onShow=function(a,i,e){a.preventDefault(),e?(a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("disabled wc-variation-selection-needed wc-variation-is-unavailable"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-disabled").addClass("woocommerce-variation-add-to-cart-enabled")):(a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-selection-needed").addClass("disabled wc-variation-is-unavailable"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled")),wp.mediaelement&&a.data.variationForm.$form.find(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").filter(function(){return!t(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(wp.mediaelement.settings)},r.prototype.onAddToCart=function(i){t(this).is(".disabled")&&(i.preventDefault(),t(this).is(".wc-variation-is-unavailable")?a.alert(wc_add_to_cart_variation_params.i18n_unavailable_text):t(this).is(".wc-variation-selection-needed")&&a.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text))},r.prototype.onResetDisplayedVariation=function(t){var a=t.data.variationForm;a.$product.find(".product_meta").find(".sku").wc_reset_content(),a.$product.find(".product_weight, .woocommerce-product-attributes-item--weight .woocommerce-product-attributes-item__value").wc_reset_content(),a.$product.find(".product_dimensions, .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value").wc_reset_content(),a.$form.trigger("reset_image"),a.$singleVariation.slideUp(200).trigger("hide_variation")},r.prototype.onResetImage=function(t){t.data.variationForm.$form.wc_variations_image_update(!1)},r.prototype.onFindVariation=function(a,i){var e=a.data.variationForm,r=void 0!==i?i:e.getChosenAttributes(),o=r.data;if(r.count&&r.count===r.chosenCount)if(e.useAjax)e.xhr&&e.xhr.abort(),e.$form.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),o.product_id=parseInt(e.$form.data("product_id"),10),o.custom_data=e.$form.data("custom_data"),e.xhr=t.ajax({url:wc_add_to_cart_variation_params.wc_ajax_url.toString().replace("%%endpoint%%","get_variation"),type:"POST",data:o,success:function(t){t?e.$form.trigger("found_variation",[t]):(e.$form.trigger("reset_data"),r.chosenCount=0,e.loading||e.showNoMatchingVariationsMsg())},complete:function(){e.$form.unblock()}});else{e.$form.trigger("update_variation_values");var n=e.findMatchingVariations(e.variationData,o).shift();n?e.$form.trigger("found_variation",[n]):(e.$form.trigger("reset_data"),r.chosenCount=0,e.loading||e.showNoMatchingVariationsMsg())}else e.$form.trigger("update_variation_values"),e.$form.trigger("reset_data");e.toggleResetLink(r.chosenCount>0)},r.prototype.onFoundVariation=function(a,i){var e=a.data.variationForm,r=e.$product.find(".product_meta").find(".sku"),n=e.$product.find(".product_weight, .woocommerce-product-attributes-item--weight .woocommerce-product-attributes-item__value"),s=e.$product.find(".product_dimensions, .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value"),c=e.$singleVariationWrap.find('.quantity input.qty[name="quantity"]'),_=c.closest(".quantity"),d=!0,m=!1,l="";if(i.sku?r.wc_set_content(i.sku):r.wc_reset_content(),i.weight?n.wc_set_content(i.weight_html):n.wc_reset_content(),i.dimensions?s.wc_set_content(t.parseHTML(i.dimensions_html)[0].data):s.wc_reset_content(),e.$form.wc_variations_image_update(i),i.variation_is_visible?(m=o("variation-template"),i.variation_id):m=o("unavailable-variation-template"),l=(l=(l=m({variation:i})).replace("/*<![CDATA[*/","")).replace("/*]]>*/",""),e.$singleVariation.html(l),e.$form.find('input[name="variation_id"], input.variation_id').val(i.variation_id).trigger("change"),"yes"===i.is_sold_individually)c.val("1").attr("min","1").attr("max","").trigger("change"),_.hide();else{var v=parseFloat(c.val());v=isNaN(v)?i.min_qty:(v=v>parseFloat(i.max_qty)?i.max_qty:v)<parseFloat(i.min_qty)?i.min_qty:v,c.attr("min",i.min_qty).attr("max",i.max_qty).val(v).trigger("change"),_.show()}i.is_purchasable&&i.is_in_stock&&i.variation_is_visible||(d=!1),e.$singleVariation.text().trim()?e.$singleVariation.slideDown(200).trigger("show_variation",[i,d]):e.$singleVariation.show().trigger("show_variation",[i,d])},r.prototype.onChange=function(t){var a=t.data.variationForm;a.$form.find('input[name="variation_id"], input.variation_id').val("").trigger("change"),a.$form.find(".wc-no-matching-variations").parent().remove(),a.useAjax?a.$form.trigger("check_variations"):(a.$form.trigger("woocommerce_variation_select_change"),a.$form.trigger("check_variations")),a.$form.trigger("woocommerce_variation_has_changed")},r.prototype.addSlashes=function(t){return t=(t=t.replace(/'/g,"\\'")).replace(/"/g,'\\"')},r.prototype.onUpdateAttributes=function(a){var i=a.data.variationForm,e=i.getChosenAttributes().data;i.useAjax||(i.$attributeFields.each(function(a,r){var o,n=t(r),s=n.data("attribute_name")||n.attr("name"),c=t(r).data("show_option_none"),_=":gt(0)",d=t("<select/>"),m=n.val()||"",l=!0;if(!n.data("attribute_html")){var v=n.clone();v.find("option").removeAttr("attached").prop("disabled",!1).prop("selected",!1),n.data("attribute_options",v.find("option"+_).get()),n.data("attribute_html",v.html())}d.html(n.data("attribute_html"));var g=t.extend(!0,{},e);g[s]="";var u=i.findMatchingVariations(i.variationData,g);for(var f in u)if("undefined"!=typeof u[f]){var h=u[f].attributes;for(var p in h)if(h.hasOwnProperty(p)){var w=h[p],b="";if(p===s)if(u[f].variation_is_active&&(b="enabled"),w){w=t("<div/>").html(w).text();var $=d.find("option");if($.length)for(var y=0,F=$.length;y<F;y++){var C=t($[y]);if(w===C.val()){C.addClass("attached "+b);break}}}else d.find("option:gt(0)").addClass("attached "+b)}}o=d.find("option.attached").length,m&&(l=!1,0!==o&&d.find("option.attached.enabled").each(function(){var a=t(this).val();if(m===a)return l=!0,!1})),o>0&&m&&l&&"no"===c&&(d.find("option:first").remove(),_=""),d.find("option"+_+":not(.attached)").remove(),n.html(d.html()),n.find("option"+_+":not(.enabled)").prop("disabled",!0),m?l?n.val(m):n.val("").trigger("change"):n.val("")}),i.$form.trigger("woocommerce_update_variation_values"))},r.prototype.getChosenAttributes=function(){var a={},i=0,e=0;return this.$attributeFields.each(function(){var r=t(this).data("attribute_name")||t(this).attr("name"),o=t(this).val()||"";o.length>0&&e++,i++,a[r]=o}),{count:i,chosenCount:e,data:a}},r.prototype.findMatchingVariations=function(t,a){for(var i=[],e=0;e<t.length;e++){var r=t[e];this.isMatch(r.attributes,a)&&i.push(r)}return i},r.prototype.isMatch=function(t,a){var i=!0;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e],o=a[e];void 0!==r&&void 0!==o&&0!==r.length&&0!==o.length&&r!==o&&(i=!1)}return i},r.prototype.toggleResetLink=function(t){t?"hidden"===this.$resetVariations.css("visibility")&&this.$resetVariations.css("visibility","visible").hide().fadeIn():this.$resetVariations.css("visibility","hidden")},r.prototype.showNoMatchingVariationsMsg=function(){this.$form.find(".single_variation").after('<div role="alert"><p class="wc-no-matching-variations woocommerce-info">'+wc_add_to_cart_variation_params.i18n_no_matching_variations_text+"</p></div>").next("div").find(".wc-no-matching-variations").slideDown(200)},t.fn.wc_variation_form=function(){return new r(this),this},t.fn.wc_set_content=function(t){void 0===this.attr("data-o_content")&&this.attr("data-o_content",this.text()),this.text(t)},t.fn.wc_reset_content=function(){void 0!==this.attr("data-o_content")&&this.text(this.attr("data-o_content"))},t.fn.wc_set_variation_attr=function(t,a){void 0===this.attr("data-o_"+t)&&this.attr("data-o_"+t,this.attr(t)?this.attr(t):""),!1===a?this.removeAttr(t):this.attr(t,a)},t.fn.wc_reset_variation_attr=function(t){void 0!==this.attr("data-o_"+t)&&this.attr(t,this.attr("data-o_"+t))},t.fn.wc_maybe_trigger_slide_position_reset=function(a){var i=t(this),e=i.closest(".product").find(".images"),r=!1,o=a&&a.image_id?a.image_id:"";i.attr("current-image")!==o&&(r=!0),i.attr("current-image",o),r&&e.trigger("woocommerce_gallery_reset_slide_position")},t.fn.wc_variations_image_update=function(i){var e=this,r=e.closest(".product"),o=r.find(".images"),n=r.find(".flex-control-nav"),s=n.find("li:eq(0) img"),c=o.find(".woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder").eq(0),_=c.find(".wp-post-image"),d=c.find("a").eq(0);if(i&&i.image&&i.image.src&&i.image.src.length>1){n.find('li img[data-o_src="'+i.image.gallery_thumbnail_src+'"]').length>0&&e.wc_variations_image_reset();var m=n.find('li img[src="'+i.image.gallery_thumbnail_src+'"]');if(m.length>0)return m.trigger("flexslider-click"),e.attr("current-image",i.image_id),void a.setTimeout(function(){t(a).trigger("resize"),o.trigger("woocommerce_gallery_init_zoom")},20);_.wc_set_variation_attr("src",i.image.src),_.wc_set_variation_attr("height",i.image.src_h),_.wc_set_variation_attr("width",i.image.src_w),_.wc_set_variation_attr("srcset",i.image.srcset),_.wc_set_variation_attr("sizes",i.image.sizes),_.wc_set_variation_attr("title",i.image.title),_.wc_set_variation_attr("data-caption",i.image.caption),_.wc_set_variation_attr("alt",i.image.alt),_.wc_set_variation_attr("data-src",i.image.full_src),_.wc_set_variation_attr("data-large_image",i.image.full_src),_.wc_set_variation_attr("data-large_image_width",i.image.full_src_w),_.wc_set_variation_attr("data-large_image_height",i.image.full_src_h),c.wc_set_variation_attr("data-thumb",i.image.src),s.wc_set_variation_attr("src",i.image.gallery_thumbnail_src),d.wc_set_variation_attr("href",i.image.full_src)}else e.wc_variations_image_reset();a.setTimeout(function(){t(a).trigger("resize"),e.wc_maybe_trigger_slide_position_reset(i),o.trigger("woocommerce_gallery_init_zoom")},20)},t.fn.wc_variations_image_reset=function(){var t=this.closest(".product"),a=t.find(".images"),i=t.find(".flex-control-nav").find("li:eq(0) img"),e=a.find(".woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder").eq(0),r=e.find(".wp-post-image"),o=e.find("a").eq(0);r.wc_reset_variation_attr("src"),r.wc_reset_variation_attr("width"),r.wc_reset_variation_attr("height"),r.wc_reset_variation_attr("srcset"),r.wc_reset_variation_attr("sizes"),r.wc_reset_variation_attr("title"),r.wc_reset_variation_attr("data-caption"),r.wc_reset_variation_attr("alt"),r.wc_reset_variation_attr("data-src"),r.wc_reset_variation_attr("data-large_image"),r.wc_reset_variation_attr("data-large_image_width"),r.wc_reset_variation_attr("data-large_image_height"),e.wc_reset_variation_attr("data-thumb"),i.wc_reset_variation_attr("src"),o.wc_reset_variation_attr("href")},t(function(){"undefined"!=typeof wc_add_to_cart_variation_params&&t(".variations_form").each(function(){t(this).wc_variation_form()})});var o=function(t){var e=i.getElementById("tmpl-"+t).textContent,r=!1;return(r=(r=(r=r||/<#\s?data\./.test(e))||/{{{?\s?data\.(?!variation\.).+}}}?/.test(e))||/{{{?\s?data\.variation\.[\w-]*[^\s}]/.test(e))?wp.template(t):function(t){var i=t.variation||{};return e.replace(/({{{?)\s?data\.variation\.([\w-]*)\s?(}}}?)/g,function(t,e,r,o){if(e.length!==o.length)return"";var n=i[r]||"";return 2===e.length?a.escape(n):n})}}}(jQuery,window,document);
(function($){'use strict';var createCookie=function(name,value,time){var expires;if(time){var date=new Date();var ms=time;if(typeof time==='object'){ms=time.value;switch(time.type){case'days':ms=ms*24*60*60*1000;break;}}
date.setTime(date.getTime()+ms);expires='; expires='+date.toGMTString();}
else{expires='';}
document.cookie=name+'='+value+expires+'; path=/';};var readCookie=function(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i+=1){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}
return null;};var slideUp=function(){var
$slideUpSlotWrap=$('.axads-slideup-slot-wrap'),$slideUpCloserBtn=$slideUpSlotWrap.find('.axads-slideup-slot-closer'),SlideupCookie=readCookie('axads_slideup_disabled');$slideUpCloserBtn.on('click',function(e){e.preventDefault();$slideUpSlotWrap.addClass('hidden');createCookie('axads_slideup_disabled',1,24*60*60*1000);});if(SlideupCookie){$slideUpSlotWrap.remove();}};$(document).ready(function(){slideUp();});})(jQuery);
(function($){'use strict';$(document).ready(function(){$('.shoppable-image').each(function(){shoppable_image($(this));});$('body').on('shoppableImages',function(e,$content){$content.find('.shoppable-image').each(function(){shoppable_image($(this));});});});var shoppable_image=function(ThisImagemap){if(ThisImagemap.data('aceShoppableImageLoaded')){return;}
var
Map=ThisImagemap.find('.shoppable-image-map'),HideBtn=ThisImagemap.find('.shoppable-image-hideshow-btn');new Waypoint({element:ThisImagemap,handler:function(direction){if(direction==='down'){ThisImagemap.addClass('pins-visible');}else{ThisImagemap.removeClass('pins-visible');}},offset:'80%'});HideBtn.click(function(e){e.preventDefault();Map.toggleClass('hide-pins');});shoppable_image_resize(ThisImagemap);$(window).resize(function(){shoppable_image_resize(ThisImagemap);});ThisImagemap.data('aceShoppableImageLoaded',true);};var shoppable_image_resize=function(ThisImagemap){var
Pins=ThisImagemap.find('.shoppable-image-pin');Pins.each(function(){var
ThisPinBody=$(this).find('.shoppable-image-pin-body');ThisPinBody.css({"margin-left":"auto"});var
BodyRect=ThisPinBody[0].getBoundingClientRect(),OffsetLeft=BodyRect.x,OffsetRight=(BodyRect.x+BodyRect.width)-window.innerWidth;if(OffsetLeft<0){ThisPinBody.css({"margin-left":-OffsetLeft+'px'});}
if(OffsetRight>0){ThisPinBody.css({"margin-left":-OffsetRight+'px'});}});};})(jQuery);
(function($){'use strict';var copyCoupon=function(){var
Coupons=$('.axads-coupon-wrap');Coupons.each(function(){if($(this).hasClass('active')){return;}else{$(this).addClass('active');}
var
CopyBtn=$(this).find('.coupon-copy'),CopyAction=$(this).find('.coupon-action'),CopyActionText=CopyAction.text(),CopyCode=$(this).find('.coupon-code'),CopyCodeText=CopyCode.text();CopyBtn.click(function(e){e.preventDefault();var CopyArea=$('<input class="copy-area" style="visibillity:hidden;" value="'+CopyCodeText+'" />');CopyCode.prepend(CopyArea);CopyArea=$('.copy-area');CopyArea.select();try{document.execCommand('copy');}catch(err){alert('This feature is not supported in your browser, please copy the coupon manually.');$('.axads-coupon-code').select();}
CopyArea.blur().remove();if(CopyBtn.hasClass('copied')){return;}
CopyBtn.addClass('copied blink');setTimeout(function(){CopyAction.html(CopyAction.data('copied'));CopyBtn.removeClass('blink');},375);setTimeout(function(){CopyBtn.addClass('blink');},4625);setTimeout(function(){CopyAction.html(CopyActionText);CopyBtn.removeClass('copied blink');},5000);});});};$(document).ready(function(){copyCoupon();});})(jQuery);
jQuery(function(t){if("undefined"==typeof wc_add_to_cart_params)return!1;var a=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),this.$liveRegion=this.createLiveRegion(),t(document.body).on("click",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",{addToCartHandler:this},this.onAddedToCart).on("removed_from_cart",{addToCartHandler:this},this.onRemovedFromCart).on("ajax_request_not_sent.adding_to_cart",this.updateButton)};a.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},a.prototype.run=function(){var a=this,e=a.requests[0].complete;a.requests[0].complete=function(){"function"==typeof e&&e(),a.requests.shift(),a.requests.length>0&&a.run()},t.ajax(this.requests[0])},a.prototype.onAddToCart=function(a){var e=t(this);if(e.is(".ajax_add_to_cart")){if(!e.attr("data-product_id"))return!0;if(a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),e.removeClass("added"),e.addClass("loading"),!1===t(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[e]))return t(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,e]),!0;var r={};t.each(e.data(),function(t,a){r[t]=a}),t.each(e[0].dataset,function(t,a){r[t]=a}),t(document.body).trigger("adding_to_cart",[e,r]),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:r,success:function(a){a&&(a.error&&a.product_url?window.location=a.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,e]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},a.prototype.onRemoveFromCart=function(a){var e=t(this),r=e.closest(".woocommerce-mini-cart-item");a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),r.block({message:null,overlayCSS:{opacity:.6}}),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:e.data("cart_item_key")},success:function(a){a&&a.fragments?t(document.body).trigger("removed_from_cart",[a.fragments,a.cart_hash,e]):window.location=e.attr("href")},error:function(){window.location=e.attr("href")},dataType:"json"})},a.prototype.updateButton=function(a,e,r,d){(d=void 0!==d&&d)&&(d.removeClass("loading"),e&&d.addClass("added"),e&&!wc_add_to_cart_params.is_cart&&0===d.parent().find(".added_to_cart").length&&d.after('<a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+"</a>"),t(document.body).trigger("wc_cart_button_updated",[d]))},a.prototype.updateFragments=function(a,e){e&&(t.each(e,function(a){t(a).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),t.each(e,function(a,e){t(a).replaceWith(e),t(a).stop(!0).css("opacity","1").unblock()}),t(document.body).trigger("wc_fragments_loaded"))},a.prototype.alertCartUpdated=function(t,a,e,r){if(r=void 0!==r&&r){var d=r.data("success_message");if(!d)return;t.data.addToCartHandler.$liveRegion.delay(1e3).text(d).attr("aria-relevant","all")}},a.prototype.createLiveRegion=function(){var a=t(".widget_shopping_cart_live_region");return a.length?a:t('<div class="widget_shopping_cart_live_region screen-reader-text" role="status"></div>').appendTo("body")},a.prototype.onAddedToCart=function(t,a,e,r){t.data.addToCartHandler.updateButton(t,a,e,r),t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},a.prototype.onRemovedFromCart=function(t,a,e,r){t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},new a});
/*! js-cookie v3.0.5 | MIT */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});
jQuery(function(o){o(".woocommerce-ordering").on("change","select.orderby",function(){o(this).closest("form").trigger("submit")}),o("input.qty:not(.product-quantity input.qty)").each(function(){var e=parseFloat(o(this).attr("min"));e>=0&&parseFloat(o(this).val())<e&&o(this).val(e)});var e="store_notice"+(o(".woocommerce-store-notice").data("noticeId")||"");"hidden"===Cookies.get(e)?o(".woocommerce-store-notice").hide():o(".woocommerce-store-notice").show(),o(".woocommerce-store-notice__dismiss-link").on("click",function(t){Cookies.set(e,"hidden",{path:"/"}),o(".woocommerce-store-notice").hide(),t.preventDefault()}),o(".woocommerce-input-wrapper span.description").length&&o(document.body).on("click",function(){o(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),o(".woocommerce-input-wrapper").on("click",function(o){o.stopPropagation()}),o(".woocommerce-input-wrapper :input").on("keydown",function(e){var t=o(this).parent().find("span.description");if(27===e.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),e.preventDefault(),!1}).on("click focus",function(){var e=o(this).parent(),t=e.find("span.description");e.addClass("currentTarget"),o(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),e.removeClass("currentTarget")}),o.scroll_to_notices=function(e){e.length&&o("html, body").animate({scrollTop:e.offset().top-100},1e3)},o('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),o(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),o(".password-input").append('<span class="show-password-input"></span>'),o(".show-password-input").on("click",function(){o(this).hasClass("display-password")?o(this).removeClass("display-password"):o(this).addClass("display-password"),o(this).hasClass("display-password")?o(this).siblings(['input[type="password"]']).prop("type","text"):o(this).siblings('input[type="text"]').prop("type","password")}),o("a.coming-soon-footer-banner-dismiss").on("click",function(e){var t=o(e.target);o.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(o){o.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){o("#coming-soon-footer-banner").hide()}})})}),document.addEventListener("DOMContentLoaded",function(){var o=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(o){return"."+o+'[role="alert"]'}).join(", "),e=document.querySelectorAll(o);if(0!==e.length){var t=e[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}});
/*! modernizr 3.3.0 (Custom Build) | MIT *
 * http://modernizr.com/download/?-cssanimations-flexbox-flexboxtweener-setclasses-shiv !*/
!function(e,t,n){function r(e,t){return typeof e===t}function o(){var e,t,n,o,a,i,s;for(var l in C)if(C.hasOwnProperty(l)){if(e=[],t=C[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=r(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)i=e[a],s=i.split("."),1===s.length?Modernizr[s[0]]=o:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=o),y.push((o?"":"no-")+s.join("-"))}}function a(e){var t=x.className,n=Modernizr._config.classPrefix||"";if(b&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),b?x.className.baseVal=t:x.className=t)}function i(e,t){return!!~(""+e).indexOf(t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):b?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function l(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function c(e,t){return function(){return e.apply(t,arguments)}}function f(e,t,n){var o;for(var a in e)if(e[a]in t)return n===!1?e[a]:(o=t[e[a]],r(o,"function")?c(o,n||t):o);return!1}function u(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function d(){var e=t.body;return e||(e=s(b?"svg":"body"),e.fake=!0),e}function p(e,n,r,o){var a,i,l,c,f="modernizr",u=s("div"),p=d();if(parseInt(r,10))for(;r--;)l=s("div"),l.id=o?o[r]:f+(r+1),u.appendChild(l);return a=s("style"),a.type="text/css",a.id="s"+f,(p.fake?p:u).appendChild(a),p.appendChild(u),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(t.createTextNode(e)),u.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",c=x.style.overflow,x.style.overflow="hidden",x.appendChild(p)),i=n(u,e),p.fake?(p.parentNode.removeChild(p),x.style.overflow=c,x.offsetHeight):u.parentNode.removeChild(u),!!i}function m(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(u(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var a=[];o--;)a.push("("+u(t[o])+":"+r+")");return a=a.join(" or "),p("@supports ("+a+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return n}function h(e,t,o,a){function c(){u&&(delete T.style,delete T.modElem)}if(a=r(a,"undefined")?!1:a,!r(o,"undefined")){var f=m(e,o);if(!r(f,"undefined"))return f}for(var u,d,p,h,g,v=["modernizr","tspan"];!T.style;)u=!0,T.modElem=s(v.shift()),T.style=T.modElem.style;for(p=e.length,d=0;p>d;d++)if(h=e[d],g=T.style[h],i(h,"-")&&(h=l(h)),T.style[h]!==n){if(a||r(o,"undefined"))return c(),"pfx"==t?h:!0;try{T.style[h]=o}catch(y){}if(T.style[h]!=g)return c(),"pfx"==t?h:!0}return c(),!1}function g(e,t,n,o,a){var i=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+w.join(i+" ")+i).split(" ");return r(t,"string")||r(t,"undefined")?h(s,t,o,a):(s=(e+" "+_.join(i+" ")+i).split(" "),f(s,t,n))}function v(e,t,r){return g(e,n,n,t,r)}var y=[],C=[],E={_version:"3.3.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){C.push({name:e,fn:t,options:n})},addAsyncTest:function(e){C.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=E,Modernizr=new Modernizr;var x=t.documentElement,b="svg"===x.nodeName.toLowerCase();b||!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=C.elements;return"string"==typeof e?e.split(" "):e}function o(e,t){var n=C.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),C.elements=n+" "+e,c(t)}function a(e){var t=y[e[g]];return t||(t={},v++,e[g]=v,y[v]=t),t}function i(e,n,r){if(n||(n=t),u)return n.createElement(e);r||(r=a(n));var o;return o=r.cache[e]?r.cache[e].cloneNode():h.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!o.canHaveChildren||m.test(e)||o.tagUrn?o:r.frag.appendChild(o)}function s(e,n){if(e||(e=t),u)return e.createDocumentFragment();n=n||a(e);for(var o=n.frag.cloneNode(),i=0,s=r(),l=s.length;l>i;i++)o.createElement(s[i]);return o}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return C.shivMethods?i(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(C,t.frag)}function c(e){e||(e=t);var r=a(e);return!C.shivCSS||f||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||l(e,r),e}var f,u,d="3.7.3",p=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",v=0,y={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",f="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){f=!0,u=!0}}();var C={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:d,shivCSS:p.shivCSS!==!1,supportsUnknownElements:u,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:c,createElement:i,createDocumentFragment:s,addElements:o};e.html5=C,c(t),"object"==typeof module&&module.exports&&(module.exports=C)}("undefined"!=typeof e?e:this,t);var S="Moz O ms Webkit",w=E._config.usePrefixes?S.split(" "):[];E._cssomPrefixes=w;var _=E._config.usePrefixes?S.toLowerCase().split(" "):[];E._domPrefixes=_;var N={elem:s("modernizr")};Modernizr._q.push(function(){delete N.elem});var T={style:N.elem.style};Modernizr._q.unshift(function(){delete T.style}),E.testAllProps=g,E.testAllProps=v,Modernizr.addTest("cssanimations",v("animationName","a",!0)),Modernizr.addTest("flexbox",v("flexBasis","1px",!0)),Modernizr.addTest("flexboxtweener",v("flexAlign","end",!0)),o(),a(y),delete E.addTest,delete E.addAsyncTest;for(var j=0;j<Modernizr._q.length;j++)Modernizr._q[j]();e.Modernizr=Modernizr}(window,document);
/*!
 * accounting.js v0.4.2
 * Copyright 2014 Open Exchange Rates
 *
 * Freely distributable under the MIT license.
 * Portions of accounting.js are inspired or borrowed from underscore.js
 *
 * Full details and documentation:
 * http://openexchangerates.github.io/accounting.js/
 */
!function(n,r){var e={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},t=Array.prototype.map,o=Array.isArray,a=Object.prototype.toString;function i(n){return!!(""===n||n&&n.charCodeAt&&n.substr)}function u(n){return o?o(n):"[object Array]"===a.call(n)}function c(n){return n&&"[object Object]"===a.call(n)}function s(n,r){var e;for(e in n=n||{},r=r||{})r.hasOwnProperty(e)&&null==n[e]&&(n[e]=r[e]);return n}function f(n,r,e){var o,a,i=[];if(!n)return i;if(t&&n.map===t)return n.map(r,e);for(o=0,a=n.length;o<a;o++)i[o]=r.call(e,n[o],o,n);return i}function p(n,r){return n=Math.round(Math.abs(n)),isNaN(n)?r:n}function l(n){var r=e.settings.currency.format;return"function"==typeof n&&(n=n()),i(n)&&n.match("%v")?{pos:n,neg:n.replace("-","").replace("%v","-%v"),zero:n}:n&&n.pos&&n.pos.match("%v")?n:i(r)?e.settings.currency.format={pos:r,neg:r.replace("%v","-%v"),zero:r}:r}var m,d=e.unformat=e.parse=function(n,r){if(u(n))return f(n,function(n){return d(n,r)});if("number"==typeof(n=n||0))return n;r=r||e.settings.number.decimal;var t=new RegExp("[^0-9-"+r+"]",["g"]),o=parseFloat((""+n).replace(/\((.*)\)/,"-$1").replace(t,"").replace(r,"."));return isNaN(o)?0:o},g=e.toFixed=function(n,r){r=p(r,e.settings.number.precision);var t=Math.pow(10,r);return(Math.round(e.unformat(n)*t)/t).toFixed(r)},h=e.formatNumber=e.format=function(n,r,t,o){if(u(n))return f(n,function(n){return h(n,r,t,o)});n=d(n);var a=s(c(r)?r:{precision:r,thousand:t,decimal:o},e.settings.number),i=p(a.precision),l=n<0?"-":"",m=parseInt(g(Math.abs(n||0),i),10)+"",y=m.length>3?m.length%3:0;return l+(y?m.substr(0,y)+a.thousand:"")+m.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(i?a.decimal+g(Math.abs(n),i).split(".")[1]:"")},y=e.formatMoney=function(n,r,t,o,a,i){if(u(n))return f(n,function(n){return y(n,r,t,o,a,i)});n=d(n);var m=s(c(r)?r:{symbol:r,precision:t,thousand:o,decimal:a,format:i},e.settings.currency),g=l(m.format);return(n>0?g.pos:n<0?g.neg:g.zero).replace("%s",m.symbol).replace("%v",h(Math.abs(n),p(m.precision),m.thousand,m.decimal))};e.formatColumn=function(n,r,t,o,a,m){if(!n)return[];var g=s(c(r)?r:{symbol:r,precision:t,thousand:o,decimal:a,format:m},e.settings.currency),y=l(g.format),b=y.pos.indexOf("%s")<y.pos.indexOf("%v"),v=0;return f(f(n,function(n,r){if(u(n))return e.formatColumn(n,g);var t=((n=d(n))>0?y.pos:n<0?y.neg:y.zero).replace("%s",g.symbol).replace("%v",h(Math.abs(n),p(g.precision),g.thousand,g.decimal));return t.length>v&&(v=t.length),t}),function(n,r){return i(n)&&n.length<v?b?n.replace(g.symbol,g.symbol+new Array(v-n.length+1).join(" ")):new Array(v-n.length+1).join(" ")+n:n})},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=e),exports.accounting=e):"function"==typeof define&&define.amd?define([],function(){return e}):(e.noConflict=(m=n.accounting,function(){return n.accounting=m,e.noConflict=void 0,e}),n.accounting=e)}(this);
/*! jQuery UI - v1.13.3 - 2024-04-26
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
/*!
 * jQuery UI :data 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
 * jQuery UI Disable Selection 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
 * jQuery UI Focusable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
 * jQuery UI Form Reset Mixin 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
/*!
 * jQuery UI Keycode 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
 * jQuery UI Labels 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
 * jQuery UI Position 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
 * jQuery UI Scroll Parent 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
 * jQuery UI Tabbable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
 * jQuery UI Unique ID 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
 * jQuery UI Widget 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});
/*!
 * jQuery UI Datepicker 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,t.left+i>d&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,t.top+s>c&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker});
!function(m,_){function a(t){return this instanceof a?!!t.length&&(this.$el=t,this.$addons=this.$el.find(".wc-pao-addon-field"),this.$addons.length?(this.is_rtl="rtl"===document.documentElement.dir,this.validation=new o(this),this.totals=new e(this),this.show_incomplete_subtotals=this.totals.showIncompleteSubtotals(),this.contains_required=this.containsRequired(),this.setupEvents(),this.validation.validate(),this.updateTotals(),m(".wc-pao-addon-image-swatch").tipTip({delay:200}),void WC_PAO.initialized_forms.push(this)):this.$addons=!1):new a(t)}function e(t){return this instanceof e?!m.isEmptyObject(t)&&(this.$form=t.$el,this.$addons=t.$addons,this.$variation_input=!!this.$form.hasClass("variations_form")&&this.$form.find('input[name="variation_id"], input.variation_id'),this.is_variable=this.$variation_input&&0<this.$variation_input.length,this.$totals=this.$form.find("#product-addons-total"),this.product_id=this.is_variable?this.$variation_input.val():this.$totals.data("product-id"),!!this.product_id)&&(this.base_price=this.$totals.data("price"),this.raw_price=this.$totals.data("raw-price"),this.product_type=this.$totals.data("type"),this.qty=parseFloat(this.$form.find("input.qty").val()),this.addons_price_data=[],this.$subscription_plans=this.$form.find(".wcsatt-options-product"),this.has_subscription_plans=0<this.$subscription_plans.length,this.is_rtl=t.is_rtl,this.total=0,this.total_raw=0,void(this.show_subtotal_panel=!0)):new e(t)}function o(t){return this instanceof o?!!t.$addons.length&&(this.$form=t.$el,this.$addons=t.$addons,void(this.validationState=this.getInitialState())):new o(t)}(WC_PAO=_.WC_PAO||{}).initialized_forms=[],WC_PAO.Helper={escapeHtml:function(t){return document.createElement("div").appendChild(document.createTextNode(t)).parentNode.innerHTML},isGroupedSubsSelected:function(){var t=m(".product-type-grouped"),a=!1;return t.length&&t.find(".group_table tr.product").each(function(){if(0<m(this).find(".input-text.qty").val()&&m(this).find(".entry-summary .subscription-details").length)return!(a=!0)}),a},addMinutes:function(t,a){return new Date(t.getTime()+6e4*a)},isGroupedMixedProductType:function(){var t=m(".product-type-grouped"),a=0,e=0;return!!(t.length&&(t.find(".group_table tr.product").each(function(){0<m(this).find(".input-text.qty").val()&&(m(this).find(".entry-summary .subscription-details").length?a++:e++)}),0<a)&&0<e)},delay:function(t,a){clearTimeout(0),setTimeout(t,a)}},WC_PAO.Form=(a.prototype.setupEvents=function(){var i,n=this;n.$el.find('button[type="submit"]').on("click",function(){var t;return!!n.validation.validate(!0)||(0<(t=n.$el.find(".wc-pao-validation-notice")).length&&0<(t=n.$el.find(t[0].closest(".wc-pao-addon-container"))).length&&!n.is_in_viewport(t)&&t[0].scrollIntoView(),!1)}),n.$el.on("blur change",".wc-pao-addon input, .wc-pao-addon textarea, .wc-pao-addon select, .wc-pao-addon-custom-text",function(){n.validation.validateAddon(m(this),!0),n.updateTotals()}),n.$el.on("keyup",".wc-pao-addon input, .wc-pao-addon textarea, .wc-pao-addon-custom-text",function(){var t=m(this);WC_PAO.Helper.delay(function(){n.validation.validateAddon(t,!0),n.updateTotals()},300)}),n.$el.on("change","input.qty",function(){n.updateTotals()}),n.$el.on("touchstart",".wc-pao-addon-image-swatch",function(t){i=new Date}),n.$el.on("click touchend",".wc-pao-addon-image-swatch",function(t){if((t.preventDefault(),"touchend"===t.type&&i)&&100<new Date-i)return;var t=m(this).data("value"),a=m(this).parents(".wc-pao-addon-wrap"),e=m.parseHTML(m(this).data("price")),o=a.find(".wc-pao-addon-image-swatch-selected-swatch");o.html(""),a.find(".wc-pao-addon-image-swatch").removeClass("selected"),m(this).addClass("selected"),a.find(".wc-pao-addon-image-swatch-select").val(t),o.html(e),n.validation.validateAddon(a.find("select.wc-pao-addon-field"),!0),n.updateTotals()}),n.$el.on("click",".reset_variations",function(){n.totals.reset()}),n.$el.on("wc_variation_form",function(){n.validation.validate(),n.updateTotals()}),n.$el.on("found_variation",function(t,a){n.totals.updateVariation(a),n.validation.validate(),n.updateTotals()}),n.$el.on("hide_variation",function(t){n.updateTotals()}),n.$el.on("woocommerce-product-addons-update",function(){n.validation.validate(),n.updateTotals()}),n.$el.find(".datepicker").each(function(){var e=m(this),t=e.parent(),o=t.find(".reset_date"),i=t.find('input[name="'+e.attr("name")+'-wc-pao-date"]'),a=t.find('input[name="'+e.attr("name")+'-wc-pao-date-gmt-offset"]'),t=(a.length||((a=m("<input/>")).attr("type","hidden"),a.attr("name",e.attr("name")+"-wc-pao-date-gmt-offset"),t.append(a)),new Date),n=parseFloat(woocommerce_addons_params.gmt_offset,10),s=t.getTimezoneOffset()/60,a=("default"===woocommerce_addons_params.date_input_timezone_reference?a.val(s):"store"===woocommerce_addons_params.date_input_timezone_reference&&(t.getHours(),t.getMinutes(),a.val(n)),e.datepicker({beforeShow:function(t,a){woocommerce_addons_params.datepicker_class&&(m("#ui-datepicker-div").removeClass(woocommerce_addons_params.datepicker_class),m("#ui-datepicker-div").addClass(woocommerce_addons_params.datepicker_class))},dateFormat:woocommerce_addons_params.datepicker_date_format,changeMonth:!0,changeYear:!0,yearRange:"c-100:c+10"}),e.datepicker("getDate"));null!==a&&"function"==typeof a.getTime&&(a.setHours(t.getHours(),t.getMinutes()),"store"===woocommerce_addons_params.date_input_timezone_reference&&(a=WC_PAO.Helper.addMinutes(a,-1*s*60),a=WC_PAO.Helper.addMinutes(a,60*n)),i.val(a.getTime()/1e3),o.show()),e.on("change",function(){var t,a=e.datepicker("getDate");null!==a&&"function"==typeof a.getTime?(t=new Date,a.setHours(t.getHours(),t.getMinutes()),"store"===woocommerce_addons_params.date_input_timezone_reference&&(a=WC_PAO.Helper.addMinutes(a,-1*s*60),a=WC_PAO.Helper.addMinutes(a,60*n)),i.val(a.getTime()/1e3),o.show()):(o.hide(),i.val(""))}),o.on("click",function(t){t.preventDefault(),i.val(""),e.val("").trigger("change")})}),m("#credit_called").on("keyup",function(){n.validation.validate(),n.updateTotals()})},a.prototype.updateTotals=function(){this.totals.calculate(),(this.show_incomplete_subtotals||this.isValid())&&(this.contains_required||this.totals.$totals.data("price_data").length)?this.totals.render():this.totals.reset()},a.prototype.isValid=function(){var t=!0;return this.$el.find("button.single_add_to_cart_button").is(".disabled")?t=!1:(m.each(this.validation.getValidationState(),function(){if(!this.validity)return t=!1}),t)},a.prototype.containsRequired=function(){var a=!1;return this.$addons.each(function(){var t=m(this).data("restrictions");if(!m.isEmptyObject(t)&&"required"in t&&"yes"===t.required)return a=!0}),a},a.prototype.is_in_viewport=function(t,a,e,o){var i,n,s,r,d,c,l,p=m(_);if(!(t.length<1))return s=(t=1<t.length?t.eq(0):t).get(0),d=p.width(),l=p.height(),e=!0!==e||s.offsetWidth*s.offsetHeight,o=o||"vertical","function"==typeof s.getBoundingClientRect?(c=0<=(s=s.getBoundingClientRect()).top&&s.top<l,i=0<s.bottom&&s.bottom<=l,r=s.top<0&&s.bottom>l,n=0<=s.left&&s.left<d,s=0<s.right&&s.right<=d,r=a?c||i||r:c&&i,c=a?n||s:n&&s,"both"===o?e&&r&&c:"vertical"===o?e&&r:"horizontal"===o?e&&c:void 0):(n=(i=p.scrollTop())+l,r=(s=p.scrollLeft())+d,p=(l=(c=t.offset()).top)+t.height(),c=(d=c.left)+t.width(),t=!0===a?p:l,l=!0===a?l:p,p=!0===a?c:d,a=!0===a?d:c,"both"===o?!!e&&l<=n&&i<=t&&a<=r&&s<=p:"vertical"===o?!!e&&l<=n&&i<=t:"horizontal"===o?!!e&&a<=r&&s<=p:void 0)},e.prototype.showIncompleteSubtotals=function(){return 1===this.$totals.data("show-incomplete-sub-total")},e.prototype.updateVariation=function(t){this.$variation_input=!!this.$form.hasClass("variations_form")&&this.$form.find('input[name="variation_id"], input.variation_id'),this.product_id=t.variation_id,this.$totals.data("product-id",this.product_id),void 0!==t.display_price?this.base_price=t.display_price:m(t.price_html).find(".amount").last().length&&(this.base_price=m(t.price_html).find(".amount").last().text(),this.base_price=this.base_price.replace(woocommerce_addons_params.currency_format_symbol,""),this.base_price=this.base_price.replace(woocommerce_addons_params.currency_format_thousand_sep,""),this.base_price=this.base_price.replace(woocommerce_addons_params.currency_format_decimal_sep,"."),this.base_price=this.base_price.replace(/[^0-9\.]/g,""),this.base_price=parseFloat(this.base_price)),this.$totals.data("price",this.base_price)},e.prototype.calculate=function(){var u=this;u.qty=parseFloat(u.$form.find("input.qty").val()),u.addons_price_data=[],u.total=0,u.total_raw=0,u.base_price=u.$totals.data("price"),u.raw_price=u.$totals.data("raw-price"),u.product_id=u.is_variable?u.$variation_input.val():u.$totals.data("product-id"),""===u.base_price&&"undefined"!=typeof custom_gift_card_amount&&custom_gift_card_amount.length&&0<custom_gift_card_amount.val()&&(u.base_price=custom_gift_card_amount.val()),woocommerce_addons_params.is_bookings&&m(".wc-bookings-booking-cost").length&&(u.base_price=parseFloat(m(".wc-bookings-booking-cost").attr("data-raw-price"))),this.$addons.each(function(){if(m(this).val()){var t,a,e,o=m(this),i=o.parents(".wc-pao-addon"),n=i.find(".wc-pao-addon-name").length?i.find(".wc-pao-addon-name").data("addon-name"):"",s="",r=0,d=0,c=o.data("price-type"),l=!1,p={},_=!!i.find(".wc-pao-addon-name").length&&i.find(".wc-pao-addon-name").data("has-per-person-pricing"),i=!!i.find(".wc-pao-addon-name").length&&i.find(".wc-pao-addon-name").data("has-per-block-pricing");if(o.is(".wc-pao-addon-custom-price"))l=!0,r=o.val(),d=o.val(),c="quantity_based";else if(o.is(".wc-pao-addon-input-multiplier"))""!==o.val()&&(o.val(Math.ceil(o.val())),r=o.data("price")*o.val(),d=o.data("raw-price")*o.val());else if(o.is(".wc-pao-addon-checkbox, .wc-pao-addon-radio")){if(!o.is(":checked"))return;s=o.data("label"),r=o.data("price"),d=o.data("raw-price")}else if(o.is(".wc-pao-addon-image-swatch-select, .wc-pao-addon-select")){if(!o.find("option:selected")||""===o.find("option:selected").val())return;c=o.find("option:selected").data("price-type"),s=o.find("option:selected").data("label"),r=o.find("option:selected").data("price"),d=o.find("option:selected").data("raw-price")}else{if(!o.val())return;r=o.data("price"),d=o.data("raw-price")}switch(r=r||0,d=d||0,"booking"!==u.product_type&&"accommodation-booking"!==u.product_type||!woocommerce_addons_params.is_bookings||(void(t=u.qty=0)!==m("#wc_bookings_field_duration")&&0<m("#wc_bookings_field_duration").val()&&(t=m("#wc_bookings_field_duration").val()),void 0!==m("#wc-bookings-form-end-time")&&0<m("#wc-bookings-form-end-time").val()&&(t=m("#wc-bookings-form-end-time").val()),e=m("#wc_bookings_field_persons"),a=0,1===e.length?a=parseInt(a,10)+parseInt(e.val(),10):m(".wc-bookings-booking-form").find("input").each(function(){var t=this.id.match(/wc_bookings_field_persons_(\d+)/);null!=t&&m("#"+t[0]).length&&(a=parseInt(a,10)+parseInt(m("#"+t[0]).val(),10))}),0===u.qty&&m(".wc-bookings-booking-cost").length&&(u.qty=1),_&&a&&(u.qty*=a),i&&t&&(u.qty*=t)),c){case"flat_fee":p.cost=parseFloat(r),p.cost_raw=parseFloat(d);break;case"quantity_based":p.cost_pu=parseFloat(r),p.cost_raw_pu=parseFloat(d),p.cost=p.cost_pu*u.qty,p.cost_raw=p.cost_raw_pu*u.qty;break;case"percentage_based":p.cost_pct=parseFloat(r)/100,p.cost_raw_pct=parseFloat(d)/100,p.cost=parseFloat(u.base_price)*p.cost_pct*u.qty,p.cost_raw=parseFloat(u.raw_price)*p.cost_raw_pct*u.qty}u.total+=p.cost||0,u.total_raw+=p.cost_raw||0,void 0!==s&&("number"==typeof s||s.length?(p.name=n+(s?" - "+s:""),p.nameFormattedHTML='<span class="wc-pao-addon-name">'+n+"</span>"+(s?' - <span class="wc-pao-addon-value">'+s+"</span>":"")):(e=o.val(),(_=parseInt(woocommerce_addons_params.trim_user_input_characters,10))<(e=o.is(".wc-pao-addon-file-upload")?e.replace(/^.*[\\\/]/,""):e).length&&(e=e.slice(0,_)+"..."),p.name=n+" - "+WC_PAO.Helper.escapeHtml(e),p.nameFormattedHTML='<span class="wc-pao-addon-name">'+n+'</span> - <span class="wc-pao-addon-value">'+WC_PAO.Helper.escapeHtml(e)+"</span>"),p.is_custom_price=l,p.price_type=c,u.addons_price_data.push(p))}}),u.$totals.data("price_data",u.addons_price_data),u.$form.trigger("updated_addons")},e.prototype.render=function(){var t,e,o,a,i,n,s,r,d,c=this;c.$totals.data("show-sub-total")&&c.qty&&(c.formatMoney(c.total),o=!1,void 0!==c.base_price&&c.product_id&&(t=m(".wc-bookings-booking-form").length?isNaN(c.base_price)?0:parseFloat(c.base_price):parseFloat(c.base_price*c.qty),e=c.formatMoney(t+c.total)),c.has_subscription_plans?(a=c.$form.data("satt_script"))&&a.schemes_model.get_active_scheme_key()&&(a=c.$subscription_plans.find("input:checked")).val()&&(i=a.parent().find(".subscription-details")):c.$form.parent().find(".subscription-details").length&&!c.$form.hasClass("bundle_data")&&(i=c.$form.parent().find(".subscription-details"),c.$variation_input)&&0<c.$variation_input.length&&(i=c.$form.parent().find(".woocommerce-variation .subscription-details")),i&&0<i.length&&(n=" "+i.clone().wrap("<p>").parent().html()),"grouped"===c.product_type?n&&!WC_PAO.Helper.isGroupedMixedProductType()&&WC_PAO.Helper.isGroupedSubsSelected()&&e&&(e+=n):n&&e&&(e+=n),e)?(a=c.$form.find(".wc-pao-addon-container").data("product-name"),i=c.formatMoney(t),n=c.$form.find(".wc-pao-addon-container").data("product-tax-status"),s=m(".wc-bookings-booking-form").length?'<div class="product-addon-totals"><ul><li><div class="wc-pao-col1"><strong>'+a+'</strong></div><div class="wc-pao-col2"><strong><span class="amount">'+i+"</span></strong></div></li>":'<div class="product-addon-totals"><ul><li><div class="wc-pao-col1"><strong><span>'+(c.is_rtl?woocommerce_addons_params.quantity_symbol+c.qty:c.qty+woocommerce_addons_params.quantity_symbol)+"</span> "+a+'</strong></div><div class="wc-pao-col2"><strong><span class="amount">'+i+"</span></strong></div></li>",c.addons_price_data.length&&m.each(c.addons_price_data,function(t,a){var e=a.cost,e=0===e?"-":0<e?c.formatMoney(e):"-"+c.formatMoney(Math.abs(e));s=s+'<li><div class="wc-pao-col1"><strong>'+a.nameFormattedHTML+'</strong></div><div class="wc-pao-col2"><span class="amount">'+e+"</span></div></li>",woocommerce_addons_params.tax_enabled&&a.is_custom_price&&(o=!0)}),r="",d=void 0===c.$totals.data("i18n_sub_total")?woocommerce_addons_params.i18n_sub_total:c.$totals.data("i18n_sub_total"),o||woocommerce_addons_params.price_display_suffix&&woocommerce_addons_params.tax_enabled?"taxable"!==n||o||!1!=-1<woocommerce_addons_params.price_display_suffix.indexOf("{price_including_tax}")||!1!=-1<woocommerce_addons_params.price_display_suffix.indexOf("{price_excluding_tax}")?m.ajax({type:"POST",url:woocommerce_addons_params.ajax_url,data:{action:"wc_product_addons_calculate_tax",product_id:c.product_id,add_on_total:c.total,add_on_total_raw:c.total_raw,qty:c.qty},success:function(t){var a;s="SUCCESS"==t.result?(r='<small class="woocommerce-price-suffix">'+woocommerce_addons_params.price_display_suffix+"</small>",a=c.formatMoney(t.price_including_tax),t=c.formatMoney(t.price_excluding_tax),r=(r=r.replace("{price_including_tax}",'<span class="amount">'+a+"</span>")).replace("{price_excluding_tax}",'<span class="amount">'+t+"</span>"),a=woocommerce_addons_params.display_include_tax?a:t,s+'<li class="wc-pao-subtotal-line"><p class="price">'+d+' <span class="amount">'+a+"</span> "+r+" </p></li></ul></div>"):s+'<li class="wc-pao-subtotal-line"><p class="price">'+d+' <span class="amount">'+e+"</span></p></li></ul></div>",c.show_subtotal_panel?c.$totals.html(s):c.$totals.html(""),c.$form.trigger("updated_addons")},error:function(){s=s+'<li class="wc-pao-subtotal-line"><p class="price">'+d+' <span class="amount">'+e+"</span></p></li></ul></div>",c.show_subtotal_panel?c.$totals.html(s):c.$totals.html(""),c.$form.trigger("updated_addons")}}):(s=s+'<li class="wc-pao-subtotal-line"><strong>'+d+' <span class="amount">'+e+"</span> "+woocommerce_addons_params.price_display_suffix+"</strong></li></ul></div>",c.show_subtotal_panel?c.$totals.html(s):c.$totals.html(""),c.$form.trigger("updated_addons")):(s=s+'<li class="wc-pao-subtotal-line"><p class="price">'+d+' <span class="amount">'+e+"</span></p></li></ul></div>",c.show_subtotal_panel?c.$totals.html(s):c.$totals.html(""),c.$form.trigger("updated_addons"))):(c.$totals.empty(),c.$form.trigger("updated_addons"))},e.prototype.reset=function(){this.$totals.empty(),this.$totals.html(""),this.$form.trigger("updated_addons")},e.prototype.formatMoney=function(t){let a=woocommerce_addons_params.currency_format_num_decimals;var e;return woocommerce_addons_params.trim_trailing_zeros&&(e=parseFloat(t)%1==0,t=parseFloat(t),a=e?0:t.toString().split(".")[1].length),accounting.formatMoney(t,{symbol:woocommerce_addons_params.currency_format_symbol,decimal:woocommerce_addons_params.currency_format_decimal_sep,thousand:woocommerce_addons_params.currency_format_thousand_sep,precision:a,format:woocommerce_addons_params.currency_format})},o.prototype.getInitialState=function(){var t={};return m.each(this.$addons,function(){t[m(this).attr("id")]={validity:!0,message:""}}),t},o.prototype.getValidationState=function(){return this.validationState},o.prototype.validateAddon=function(t,a=!1){var e=t.data("restrictions"),o=t.attr("id"),i=!0;return m.isEmptyObject(e)||((i="required"in e&&"yes"===e.required?this.validateRequired(t):i)&&"content"in e&&("only_letters"===e.content?i=this.validateLetters(t):"only_numbers"===e.content?i=this.validateNumbers(t):"only_letters_numbers"===e.content?i=this.validateLettersNumbers(t):"email"===e.content&&(i=this.validateEmail(t))),(i=i&&"min"in e?this.validateMin(t,e.min):i)&&"max"in e&&(i=this.validateMax(t,e.max))),a&&this.printMessage(t),this.validationState[o].validity},o.prototype.validate=function(t=!1){var a=!0,e=this;return m.each(e.$addons,function(){e.validateAddon(m(this),t)||(a=!1)}),a},o.prototype.printMessage=function(t){var a,t=t.attr("id"),e=this.$form.find("#"+t),o=t+"-validation-notice",i=this.validationState[t].message;e.is(":radio")||e.is(":checkbox")?((a=e.closest(".wc-pao-addon-container .wc-pao-addon-wrap")).find(".wc-pao-validation-notice").remove(),this.validationState[t].validity||a.append('<small id="'+o+'" class="wc-pao-validation-notice">'+i+"</small>")):(e.closest(".wc-pao-addon-container").find(".wc-pao-validation-notice").remove(),this.validationState[t].validity||e.after('<small id="'+o+'" class="wc-pao-validation-notice">'+i.replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</small>"))},o.prototype.validateRequired=function(t){var a=!0,e="",o="",i=t.attr("id");if(t.is(":checkbox")||t.is(":radio")){var n,s=(n=t.closest(".wc-pao-addon-container")).find(".wc-pao-addon-field"),r=this,a=!1;if(m.each(s,function(){m(this).is(":checked")&&(a=!0)}),a)return void m.each(s,function(){var t=m(this).attr("id");r.validationState[t]={validity:a,message:e,reason:o}});e=woocommerce_addons_params.i18n_validation_required_select}else t.hasClass("wc-pao-addon-image-swatch-select")?(n=t.closest(".wc-pao-addon-container"),a=!1,m.each(n.find(".wc-pao-addon-image-swatch"),function(){m(this).hasClass("selected")&&(a=!0)}),a||(e=woocommerce_addons_params.i18n_validation_required_select)):t.val()||(a=!1,"file"===t.attr("type")?e=woocommerce_addons_params.i18n_validation_required_file:"number"===t.attr("type")?e=woocommerce_addons_params.i18n_validation_required_number:t.is("input")||t.is("textarea")?e=woocommerce_addons_params.i18n_validation_required_input:t.is("select")&&(e=woocommerce_addons_params.i18n_validation_required_select));return a||(o="required"),this.validationState[i]={validity:a,message:e,reason:o},this.validationState[i].validity},o.prototype.validateLetters=function(t){var a=!/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~\d]/g.test(t.val()),e="",o="",i=t.attr("id");return(a=t.val()?a:!0)||(e=woocommerce_addons_params.i18n_validation_letters_only,o="letters"),this.validationState[i]={validity:a,message:e,reason:o},this.validationState[i].validity},o.prototype.validateNumbers=function(t){var a=/^[0-9]*$/g.test(t.val()),e="",o="",i=t.attr("id");return(a=t.val()?a:!0)||(e=woocommerce_addons_params.i18n_validation_numbers_only,o="numbers"),this.validationState[i]={validity:a,message:e,reason:o},this.validationState[i].validity},o.prototype.validateLettersNumbers=function(t){var a=!/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/g.test(t.val()),e="",o="",i=t.attr("id");return(a=t.val()?a:!0)||(e=woocommerce_addons_params.i18n_validation_letters_and_numbers_only,o="letters_numbers"),this.validationState[i]={validity:a,message:e,reason:o},this.validationState[i].validity},o.prototype.validateEmail=function(t){var a=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(t.val()),e="",o="",i=t.attr("id");return(a=t.val()?a:!0)||(e=woocommerce_addons_params.i18n_validation_email_only,o="email"),this.validationState[i]={validity:a,message:e,reason:o},this.validationState[i].validity},o.prototype.validateMin=function(t,a){var e,o=!0,i="",n="",s=t.attr("id");return t.val()?"number"===t.attr("type")?(e=((e=t.val()).includes(".")||e.includes(",")?parseFloat:parseInt)(e))<a&&(o=!1,i=woocommerce_addons_params.i18n_validation_min_number.replace("%c",a)):("text"===t.attr("type")||t.is("textarea"))&&t.val().length<a&&(o=!1,i=woocommerce_addons_params.i18n_validation_min_characters.replace("%c",a)):o=!0,this.validationState[s]={validity:o,message:i,reason:n=o?n:"min"},this.validationState[s].validity},o.prototype.validateMax=function(t,a){var e,o,i=!0,n="",s=t.attr("id");return t.val()?"number"===t.attr("type")?a<(o=((o=t.val()).includes(".")||o.includes(",")?parseFloat:parseInt)(o))&&(i=!1,n=woocommerce_addons_params.i18n_validation_max_number.replace("%c",a)):("text"===t.attr("type")||t.is("textarea"))&&t.val().length>a&&(i=!1,n=woocommerce_addons_params.i18n_validation_max_characters.replace("%c",a)):i=!0,this.validationState[s]={validity:i,message:n,reason:e=i?e:"max"},this.validationState[s].validity},a),m(function(){m("body").on("quick-view-displayed",function(){m(this).find(".cart:not(.cart_group)").each(function(){new WC_PAO.Form(m(this))})}),m("body").find(".cart:not(.cart_group)").each(function(){new WC_PAO.Form(m(this))})})}(jQuery,window);
/*!
 * SelectWoo 1.0.10
 * https://github.com/woocommerce/selectWoo
 *
 * Released under the MIT license
 * https://github.com/woocommerce/selectWoo/blob/master/LICENSE.md
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return n===undefined&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,i,o,r;return t&&t.requirejs||(t?i=t:t={},function(e){var t,r,s,a,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function g(e,t){return p.call(e,t)}function m(e,t){var n,i,o,r,s,a,l,c,d,p,h,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||v)&&m){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(p=g.length;p>0;p-=1)if((o=m[g.slice(0,p).join("/")])&&(o=o[i])){r=o,a=d;break}if(r)break;!l&&v&&v[i]&&(l=v[i],c=d)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function v(t,n){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(e,i.concat([t,n]))}}function y(e){return function(t){l[e]=t}}function _(n){if(g(c,n)){var i=c[n];delete c[n],d[n]=!0,t.apply(e,i)}if(!g(l,n)&&!g(d,n))throw new Error("No "+n);return l[n]}function w(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function $(e){return e?w(e):[]}s=function(e,t){var n,i,o=w(e),r=o[0],s=t[1];return e=o[1],r&&(n=_(r=m(r,s))),r?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return m(e,i)})):m(e,s):(r=(o=w(e=m(e,s)))[0],e=o[1],r&&(n=_(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:function(e){return function(){return u&&u.config&&u.config[e]||{}}}(e)}}},t=function(t,n,i,o){var r,u,p,h,f,m,w,b=[],x=typeof i;if(m=$(o=o||t),"undefined"===x||"function"===x){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(u=(h=s(n[f],m)).f))b[f]=a.require(t);else if("exports"===u)b[f]=a.exports(t),w=!0;else if("module"===u)r=b[f]=a.module(t);else if(g(l,u)||g(c,u)||g(d,u))b[f]=_(u);else{if(!h.p)throw new Error(t+" missing "+u);h.p.load(h.n,v(o,!0),y(u),{}),b[f]=l[u]}p=i?i.apply(l[t],b):undefined,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&w||(l[t]=p))}else t&&(l[t]=i)},n=i=r=function(n,i,o,l,c){if("string"==typeof n)return a[n]?a[n](i):_(s(n,$(i)).f);if(!n.splice){if((u=n).deps&&r(u.deps,u.callback),!i)return;i.splice?(n=i,i=o,o=null):n=e}return i=i||function(){},"function"==typeof o&&(o=l,l=c),l?t(e,n,i,o):setTimeout(function(){t(e,n,i,o)},4),r},r.config=function(e){return r(e)},n._defined=l,(o=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=i,t.define=o),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&n.push(i))}return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),o=n(e);function r(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,o=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),o=t.prototype.constructor),o.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<o.length;s++){var a=o[s];r.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];r.prototype[u]=l(u)}return r};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},t.entityDecode=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},t.isTouchscreen=function(){return"undefined"==typeof t._isTouchscreenCache&&(t._isTouchscreenCache="ontouchstart"in document.documentElement),t._isTouchscreenCache},t}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox" tabindex="-1"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[data-selected]"),t=e.filter("[data-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});t.$results.find(".select2-results__option[data-selected]").each(function(){var t=e(this),n=e.data(this,"data"),o=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(o,i)>-1?t.attr("data-selected","true"):t.attr("data-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var i={role:"option","data-selected":"false",tabindex:-1};for(var o in t.disabled&&(delete i["data-selected"],i["aria-disabled"]="true"),null==t.id&&delete i["data-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i["aria-label"]=t.text,delete i["data-selected"]),i){var r=i[o];n.setAttribute(o,r)}if(t.children){var s=e(n),a=document.createElement("strong");a.className="select2-results__group";var l=e(a);this.template(t,a),l.attr("role","presentation");for(var c=[],u=0;u<t.children.length;u++){var d=t.children[u],p=this.option(d);c.push(p)}var h=e("<ul></ul>",{"class":"select2-results__options select2-results__options--nested",role:"listbox"});h.append(c),s.attr("role","list"),s.append(a),s.append(h)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var i=this,o=t.id+"-results";this.$results.attr("id",o),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible();var e=i.$results.parents(".select2-container").find("input.select2-search__field")[0];void 0!==e&&e.focus()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("data-selected")?i.trigger("close",{}):i.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find("[data-selected]"),n=t.index(e);if(0!==n){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===o?i.$results.scrollTop(0):a-s<0&&i.$results.scrollTop(l)}}),t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[data-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var o=t.eq(n);o.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),a=i.$results.scrollTop()+s-r;0===n?i.$results.scrollTop(0):s>r&&i.$results.scrollTop(a)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted").attr("aria-selected","true"),i.$results.attr("aria-activedescendant",e.element.attr("id"))}),t.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[data-selected]",function(t){var n=e(this),o=n.data("data");"true"!==n.attr("data-selected")?i.trigger("select",{originalEvent:t,data:o}):i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:o}):i.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[data-selected]",function(t){var n=e(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[data-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e,t){var i=this,o=(e.id,e.id+"-results"),r=(this.options.get("minimumResultsForSearch"),Infinity,!0===this.options.get("required"));this.container=e,r&&this.$selection.attr("aria-required","true"),this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),window.setTimeout(function(){i.$selection.trigger("focus")},1),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),e.on("disable",function(){i.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target),i=n.closest(".select2");e(".select2.select2-container--open").each(function(){var t=e(this);this!=i[0]&&(t.data("element").select2("close"),setTimeout(function(){t.find("*:focus").trigger("blur"),n.trigger("focus")},1))})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";!0===this.options.get("required")&&this.$selection.find(".select2-selection__rendered").attr("aria-required","true"),this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true");var r=this.options.get("label");"string"==typeof r?this.$selection.attr("aria-label",r):this.$selection.attr("aria-labelledby",i),this.$selection.attr("role","combobox"),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("keydown",function(t){!e.isOpen()&&t.which>=48&&t.which<=90&&e.open()}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.trigger("focus")}),e.on("selection:update",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],i=this.$selection.find(".select2-selection__rendered"),o=n.entityDecode(this.display(t,i));i.empty().text(o),i.prop("title",t.title||t.text)}else this.clear()},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered" aria-live="polite" aria-relevant="additions removals" aria-atomic="true"></ul>'),e},i.prototype.bind=function(t,n){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.options.get("disabled")){var n=e(this).parent().data("data");o.trigger("unselect",{originalEvent:t,data:n})}}),this.$selection.on("keydown",function(e){!t.isOpen()&&e.which>=48&&e.which<=90&&t.open()}),t.on("focus",function(){o.focusOnSearch()})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation" aria-hidden="true">&times;</span></li>')},i.prototype.focusOnSearch=function(){var e=this;"undefined"!=typeof e.$search&&setTimeout(function(){e._keyUpPrevented=!0,e.$search.trigger("focus")},1)},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],r=this.selectionContainer(),s=r.html(),a=this.display(o,r);"string"==typeof a&&(a=n.entityDecode(a.trim())),r.text(a),r.prepend(s),r.prop("title",o.title||o.text),r.data("data",o),t.push(r)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(t,n){var i=this.selectionContainer();return i.text(e.entityDecode(this.display(n))),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var r={data:i[o]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=e('<span class="select2-selection__clear">&times;</span>');i.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var o=this,r=t.id+"-results";e.call(this,t,i),t.on("open",function(){o.$search.attr("aria-owns",r),o.$search.trigger("focus")}),t.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.removeAttr("aria-owns"),o.$search.trigger("focus")}),t.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),t.on("disable",function(){o.$search.prop("disabled",!0)}),t.on("focus",function(e){o.$search.trigger("focus")}),t.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.data._resultId)}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var r=i.data("data");o.searchRemoveChoice(r),e.preventDefault()}}else e.which===n.ENTER&&(t.open(),e.preventDefault())});var s=document.documentMode,a=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){a?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i="";return i+=null!=t?t.id:e.generateChars(4),i+="-result-",i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var o=[];(e=[e]).push.apply(e,i);for(var r=0;r<e.length;r++){var s=e[r].id;-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var o=[],r=0;r<i.length;r++){var s=i[r].id;s!==e.id&&-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("change")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=o.item(t),s=o.matches(e,r);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:(t=document.createElement("option")).textContent!==undefined?t.textContent=e.text:t.innerText=e.text,e.id!==undefined&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),o=this._normalizeItem(e);return o.element=t,n.data(t,"data",o),i},i.prototype.item=function(e){var t={};if(null!=(t=n.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),o=[],r=0;r<i.length;r++){var s=n(i[r]),a=this.item(s);o.push(a)}t.children=o}return(t=this._normalizeItem(t)).element=e[0],n.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var i=this,o=this.$element.find("option"),r=o.map(function(){return i.item(n(this)).id}).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=o.filter(a(c)),d=this.item(u),p=n.extend(!0,{},c,d),h=this.option(p);u.replaceWith(h)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(f,g)}s.push(f)}}return s},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);function r(){var n=o.transport(o,function(n){var o=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&Array.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o),i.container.focusOnActiveElement()},function(){n.status&&"0"===n.status||i.trigger("results:message",{message:"errorLoading"})});i._request=n}"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(e,t,n){var i=n.get("tags"),o=n.get("createTag");o!==undefined&&(this.createTag=o);var r=n.get("insertTag");if(r!==undefined&&(this.insertTag=r),e.call(this,t,n),Array.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function o(e,r){for(var s=e.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!o({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(e.data=s,void n(e))}if(r)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(s,u)}e.results=s,n(e)}):e.call(this,t,n)},t.prototype.createTag=function(e,t){var n=t.term||0==t.term?t.term.toString().trim():"";return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");i!==undefined&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var o=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,function(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}!function(e){o.trigger("select",{data:e})}(n)});r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),n.term=r.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,r)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(o(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var r=null!=o?o.length:0;i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var o=this,r=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.attr("aria-owns",r),o.$search.trigger("focus"),window.setTimeout(function(){o.$search.trigger("focus")},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.removeAttr("aria-activedescendant"),o.$search.removeAttr("aria-owns"),o.$search.val("")}),n.on("focus",function(){n.isOpen()||o.$search.trigger("focus")}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))}),n.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.data._resultId)})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&t&&(o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(r+" "+s+" "+a,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<r.top-a,d=c>r.bottom+a,p={left:r.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f=h.offset();p.left-=f.left,n||i||(o="below"),d||!u||n?!u&&d&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(p.top=s.top-a),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function n(e){for(var t=0,i=0;i<e.length;i++){var o=e[i];o.children?t+=n(o.children):t++}return t}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data("data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,o,r,s,a,l,c,u,d,p,h,f,g,m,v,y,_,w,$,b,x,A,C,S,O,E){function D(){this.reset()}return D.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,_)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var E=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,E)}if(null!=d.initSelection){var D=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,D)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,b)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=w;else{var T=c.Decorate(w,$);d.dropdownAdapter=T}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,C)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,O)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var q=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,q)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,A)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var j=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,j)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var L=d.language.split("-")[0];d.language=[d.language,L]}else d.language=[d.language];if(Array.isArray(d.language)){var k=new u;d.language.push("en");for(var P=d.language,I=0;I<P.length;I++){var M=P[I],R={};try{R=u.loadPath(M)}catch(U){try{M=this.defaults.amdLanguageBase+M,R=u.loadPath(M)}catch(N){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}k.extend(R)}d.translations=k}else{var z=u.loadPath(this.defaults.amdLanguageBase+"en"),H=new u(d.language);H.extend(z),d.translations=H}return d},D.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return d[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:E,matcher:function n(i,o){if(null==i.term||""===i.term.toString().trim())return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),s=o.children.length-1;s>=0;s--)null==n(i,o.children[s])&&r.children.splice(s,1);return r.children.length>0?r:n(i,r)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},D.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(this.defaults,o)},new D}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),this.options.required||(this.options.required=e.prop("required")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var o={};o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);for(var s in r=i._convertData(r))t.inArray(s,n)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),o.__super__.constructor.call(this);var i=e.attr("tabindex")||0;e.data("old-tabindex",i),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(n){t.trigger("results:all",{data:n,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(n){t.trigger("results:append",{data:n,query:e})})}),this.on("open",function(){setTimeout(function(){t.focusOnActiveElement()},1)}),e(document).on("keydown",function(e){var n=e.which;if(t.isOpen()){n===i.ESC||n===i.UP&&e.altKey?(t.close(),e.preventDefault()):n===i.ENTER||n===i.TAB?(t.trigger("results:select",{}),e.preventDefault()):n===i.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===i.DOWN&&(t.trigger("results:next",{}),e.preventDefault());var o=t.$dropdown.find(".select2-search__field");o.length||(o=t.$container.find(".select2-search__field")),n===i.DOWN||n===i.UP?t.focusOnActiveElement():(o.trigger("focus"),setTimeout(function(){t.focusOnActiveElement()},1e3))}else t.hasFocus()&&(n!==i.ENTER&&n!==i.SPACE&&n!==i.DOWN||(t.open(),e.preventDefault()))})},o.prototype.focusOnActiveElement=function(){this.isOpen()&&!n.isTouchscreen()&&this.$results.find("li.select2-results__option--highlighted").trigger("focus")},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(t===undefined&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];Array.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},o}),t.define("select2/compat/utils",["jquery"],function(e){return{syncCssClasses:function(t,n,i){var o,r,s=[];(o=t.attr("class")||0==t.attr("class")?t.attr("class").toString().trim():"")&&e((o=""+o).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&s.push(this)}),(o=n.attr("class")||0==n.attr("class")?n.attr("class").toString().trim():"")&&e((o=""+o).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=i(this))&&s.push(r)}),t.attr("class",s.join(" "))}}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(e){var i=e.call(this),o=this.options.get("containerCssClass")||"";"function"==typeof o&&(o=o(this.$element));var r=this.options.get("adaptContainerCssClass");if(r=r||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var s=r;r=function(e){var t=s(e);return null!=t?t+" "+e:e}}var a=this.options.get("containerCss")||{};return"function"==typeof a&&(a=a(this.$element)),t.syncCssClasses(i,this.$element,r),i.css(a),i.addClass(o),i},i}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(e){var i=e.call(this),o=this.options.get("dropdownCssClass")||"";"function"==typeof o&&(o=o(this.$element));var r=this.options.get("adaptDropdownCssClass");if(r=r||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var s=r;r=function(e){var t=s(e);return null!=t?t+" "+e:e}}var a=this.options.get("dropdownCss")||{};return"function"==typeof a&&(a=a(this.$element)),t.syncCssClasses(i,this.$element,r),i.css(a),i.addClass(o),i},i}),t.define("select2/compat/initSelection",["jquery"],function(e){function t(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return t.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,Array.isArray(e)||(e=[e]),t(e)})},t}),t.define("select2/compat/inputData",["jquery"],function(e){function t(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return t.prototype.current=function(t,n){function i(t,n){var o=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,o.push(t)):t.selected=!1,t.children&&o.push.apply(o,i(t.children,n)),o}for(var o=[],r=0;r<this._currentData.length;r++){var s=this._currentData[r];o.push.apply(o,i(s,this.$element.val().split(this._valueSeparator)))}n(o)},t.prototype.select=function(t,n){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(n.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current(function(e){for(var i=[],o=0;o<e.length;o++){var r=e[o];t.id!=r.id&&i.push(r.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger("change")})},t.prototype.query=function(e,t,n){for(var i=[],o=0;o<this._currentData.length;o++){var r=this._currentData[o],s=this.matches(t,r);null!==s&&i.push(s)}n({results:i})},t.prototype.addOptions=function(t,n){var i=e.map(n,function(t){return e.data(t[0],"data")});this._currentData.push.apply(this._currentData,i)},t}),t.define("select2/compat/matcher",["jquery"],function(e){return function(t){return function(n,i){var o=e.extend(!0,{},i);if(null==n.term||""===n.term.trim())return o;if(i.children){for(var r=i.children.length-1;r>=0;r--){var s=i.children[r];t(n.term,s.text,s)||o.children.splice(r,1)}if(o.children.length>0)return o}return t(n.term,i.text,i)?o:null}}}),t.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),t.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),t.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),t.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),
/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 */
r=function(e){var t,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(e.event.fixHooks)for(var s=i.length;s;)e.event.fixHooks[i[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o,s=i||window.event,l=r.call(arguments,1),d=0,p=0,h=0,f=0,g=0;if((i=e.event.fix(s)).type="mousewheel","detail"in s&&(h=-1*s.detail),"wheelDelta"in s&&(h=s.wheelDelta),"wheelDeltaY"in s&&(h=s.wheelDeltaY),"wheelDeltaX"in s&&(p=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(p=-1*h,h=0),d=0===h?p:h,"deltaY"in s&&(d=h=-1*s.deltaY),"deltaX"in s&&(p=s.deltaX,0===h&&(d=-1*p)),0!==h||0!==p){if(1===s.deltaMode){var m=e.data(this,"mousewheel-line-height");d*=m,h*=m,p*=m}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");d*=v,h*=v,p*=v}if(o=Math.max(Math.abs(h),Math.abs(p)),(!n||o<n)&&(n=o,u(s,o)&&(n/=40)),u(s,o)&&(d/=40,p/=40,h/=40),d=Math[d>=1?"floor":"ceil"](d/n),p=Math[p>=1?"floor":"ceil"](p/n),h=Math[h>=1?"floor":"ceil"](h/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=i.clientX-y.left,g=i.clientY-y.top}return i.deltaX=p,i.deltaY=h,i.deltaFactor=n,i.offsetX=f,i.offsetY=g,i.deltaMode=0,l.unshift(i,d,p,h),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function c(){n=null}function u(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.on("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.off("mousewheel",e)}})},"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],r):"object"==typeof exports?module.exports=r:r(e),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,i){if(null==e.fn.selectWoo){var o=["open","close","destroy"];e.fn.selectWoo=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=n[t].apply(n,r)}),e.inArray(t,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null!=e.fn.select2&&null!=e.fn.select2.defaults&&(e.fn.selectWoo.defaults=e.fn.select2.defaults),null==e.fn.selectWoo.defaults&&(e.fn.selectWoo.defaults=i),e.fn.select2=e.fn.select2||e.fn.selectWoo,n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,e.fn.selectWoo.amd=t,n});
var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a,r=arguments[e];for(a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},_slicedToArray=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var a=e,r=[],n=!0,e=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!a||r.length!==a);n=!0);}catch(t){e=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(e)throw i}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")};jQuery(function(o){var a,e,t,r,s,p,l,d,w,u=window.wc_memberships_blocks_common||{};function c(t){return new URLSearchParams(window.location.search).get("wcm_dir_"+t)}a=function t(e,a){var r=!0,n=!1,i=void 0;try{for(var o,s=Object.entries(e)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=_slicedToArray(o.value,2),p=c[0],l=c[1];null!==l&&"object"==typeof l?(void 0===a[p]&&(a[p]=new l.__proto__.constructor),t(l,a[p])):a[p]=l}}catch(t){n=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(n)throw i}}return a},e=function(t,e){var a;history.pushState&&(t="wcm_dir_"+t,a=new URLSearchParams(window.location.search),e?a.set(t,e):a.delete(t),(e=new URL(window.location.href)).search=a.toString(),window.history.pushState({path:e.toString()},"",e.toString()))},t=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};e("search",t.search),e("plan",t.plan),e("status",t.status),e("page",1===parseInt(t.page,10)?null:parseInt(t.page,10))},r=function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};t(r.requestData),o.get({url:u.restUrl+(r.endPoint||""),data:r.requestData||{wc_memberships_block:!0},beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",u.restNonce)}}).done(function(t,e,a){r.callBack(t,e,a)}).fail(function(){console.log("error")}).always(function(){console.log("finished")})},s=function(n){var i,o,s,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},c=(n.data("directory-id"),n.data("directory-data")),e={},e=(c.membershipPlans.length&&(e.plan=c.membershipPlans.join(",")),(i=n.find(".wcm-plans").val().join(","))&&(e.plan=i),c.membershipStatus.length&&(e.status=c.membershipStatus.join(",")),(o=n.find(".wcm-status").val().join(","))&&(e.status=o),(s=n.find(".wcm-search-input").val())&&(e.search=s),e.wc_memberships_block=t.wc_memberships_block=!0,t.requestData&&t.requestData.page&&n.find(".wcm-pagination-wrapper").data("current-page",t.requestData.page),n.find(".wmc-loader").show(),{endPoint:"wc/v4/memberships/members",requestData:_extends({customer_data:!0,per_page:c.perPage,wc_memberships_block:!0},e),callBack:function(t,e,a){t.length?(r="",t.forEach(function(t){t.directorySettings=c,r+=w(t)}),n.find(".wcm-directory-list-wrapper").html(r)):i||o||s?(t=u.keywords.search_not_found,n.find(".wcm-directory-list-wrapper").html('<div class="directory-placeholder-box"><p>'+t+"</p></div>")):(t=u.keywords.results_not_found,n.find(".wcm-directory-list-wrapper").html('<div class="directory-placeholder-box"><p>'+t+"</p></div>")),a.getResponseHeader("x-wp-total");var r,t=a.getResponseHeader("x-wp-totalpages");p(n,t),l(n),n.find(".wmc-loader").hide()}});r(a(e,t))},p=function(t,e){var a=parseInt(t.find(".wcm-pagination-wrapper").data("current-page"),10);e=parseInt(e.toString(),10),t.find(".wcm-pagination-wrapper").data("total-pages",e),0===e?t.find(".wcm-pagination-wrapper").hide():(t.find(".wcm-pagination-wrapper").show(),e<=a?t.find(".wcm-pagination-wrapper .next").hide():t.find(".wcm-pagination-wrapper .next").show(),1===a?t.find(".wcm-pagination-wrapper .previous").hide():t.find(".wcm-pagination-wrapper .previous").show())},l=function(r){r.find(".wcm-pagination-wrapper .wcm-pagination").off("click").on("click",function(t){var e=parseInt(r.find(".wcm-pagination-wrapper").data("current-page").toString(),10),a=parseInt(r.find(".wcm-pagination-wrapper").data("total-pages").toString(),10);t.preventDefault(),t.currentTarget.classList.contains("next")&&e<a&&(a=e+1,r.find(".wcm-pagination-wrapper").data("current-page",a),s(r,{requestData:{page:a}})),t.currentTarget.classList.contains("previous")&&1<e&&(a=e-1,r.find(".wcm-pagination-wrapper").data("current-page",a),s(r,{requestData:{page:a}}))})},d=function(e,t){var a="";return t.forEach(function(t){e.includes(t.slug)&&t.value&&(a+='<div class="info-box profile-fields"><label>'+t.name+": </label><span>"+t.value+"</span></div>")}),a},w=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.customer_data,a=t.plan_name,r=t.profile_fields,t=t.directorySettings,n=t.showBio,i=t.showEmail,o=t.showPhone,s=t.showAddress,c=t.avatar,p=t.avatarSize,t=t.profileFields;return'\n\t\t\t<div class="wcm-directory-member-wrapper">\n\t\t\t\t<div class="wcm-directory-member">\n\t\t\t\t\t'+(c?'<img src="'+e.avatar+'" style="width:'+p+'px">':"")+"\n\t\t\t\t\t<h4>"+e.first_name+" "+e.last_name+" </h4>\n\t\t\t\t\t"+(n?'<div class="bio-box">'+e.bio+"</div>":"")+'\n\t\t\t\t\t<div class="info-box"><label>'+u.keywords.plan+": </label><span>"+a+"</span></div>\n\t\t\t\t\t"+(i&&e.user_email?'<div class="info-box"><label>'+u.keywords.email+": </label><span>"+e.user_email+"</span></div>":"")+"\n\t\t\t\t\t"+(o&&e.phone?'<div class="info-box"><label>'+u.keywords.phone+": </label><span>"+e.phone+"</\n\t\t\t\t\tspan></div>":"")+"\n\t\t\t\t\t"+(s&&e.address?'<div class="info-box"><label>'+u.keywords.address+": </label><span>"+e.address+"</\n\t\t\t\t\tspan></div>":"")+"\n\t\t\t\t\t"+(t.length&&r.length?d(t,r):"")+"\n\t\t\t\t</div>\n\t\t\t</div>"},o(".wc-memberships-directory-container.wcm-directory-front-end").length&&(o(".wc-memberships-directory-filter-wrapper .wcm-select").select2(),o(".wc-memberships-directory-container.wcm-directory-front-end").each(function(t,e){var a,r,n,i;a=o(e),n=r=void 0,i={},(r=c("plan"))&&a.find(".wcm-plans").val(r.split(",")).trigger("change"),(n=c("status"))&&a.find(".wcm-status").val(n.split(",")).trigger("change"),(r=c("search"))&&a.find(".wcm-search-input").val(r),(n=c("page"))&&(a.find(".wcm-pagination-wrapper").data("current-page",n),i.requestData={page:n}),s(a,i),o(e).find(".wcm-filter-btn,.wcm-search-btn").click(function(){s(o(e),{requestData:{page:1}})}),o(e).find(".wcm-search-input").keyup(function(t){13===t.keyCode&&s(o(e),{requestData:{page:1}})})}))});
(function($){'use strict';var loadYoutube=function(){$('.axm-youtube').each(function(){var $youtube=$(this);if($youtube.is('.axm-youtube-loaded')){return;}
var videoUrl=$youtube.attr('data-axm-video');var thumbUrl=$youtube.attr('data-axm-video-thumb');var image=$('<img />');image.attr('src',thumbUrl);image.attr({'width':1600,'height':900,'src':'data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\' viewBox%3D\'0 0 1600 900\'%2F%3E','data-src':thumbUrl,'data-expand':600});image.addClass('lazyload');image.on('load',function(){$youtube.append(image);}());$youtube.on('click',function(){$youtube.find('iframe').remove();var $iframe=$('<iframe>');$iframe.on('load',function(){$youtube.trigger('axmIframeLoaded',[$iframe]);$iframe[0].contentWindow.postMessage(JSON.stringify({'event':'command','func':'playVideo','args':''}),'*');});$iframe.attr('frameborder','0');$iframe.attr('allowfullscreen','');$iframe.attr('src',videoUrl);$youtube.empty().append($iframe);});$youtube.addClass('axm-youtube-loaded');});};$(document).ready(function(){loadYoutube();$('body').on('axmLoadYoutube',loadYoutube);});})(jQuery);
!function(a,b){var c=function(a,b,c){"use strict";var d,e;if(function(){var b,c={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};e=a.lazySizesConfig||a.lazysizesConfig||{};for(b in c)b in e||(e[b]=c[b])}(),!b||!b.getElementsByClassName)return{init:function(){},cfg:e,noSupport:!0};var f=b.documentElement,g=a.HTMLPictureElement,h=a.addEventListener.bind(a),i=a.setTimeout,j=a.requestAnimationFrame||i,k=a.requestIdleCallback,l=/^picture$/i,m=["load","error","lazyincluded","_lazyloaded"],n={},o=Array.prototype.forEach,p=function(a,b){return n[b]||(n[b]=new RegExp("(\\s|^)"+b+"(\\s|$)")),n[b].test(a.getAttribute("class")||"")&&n[b]},q=function(a,b){p(a,b)||a.setAttribute("class",(a.getAttribute("class")||"").trim()+" "+b)},r=function(a,b){var c;(c=p(a,b))&&a.setAttribute("class",(a.getAttribute("class")||"").replace(c," "))},s=function(a,b,c){var d=c?"addEventListener":"removeEventListener";c&&s(a,b),m.forEach(function(c){a[d](c,b)})},t=function(a,c,e,f,g){var h=b.createEvent("Event");return e||(e={}),e.instance=d,h.initEvent(c,!f,!g),h.detail=e,a.dispatchEvent(h),h},u=function(b,c){var d;!g&&(d=a.picturefill||e.pf)?(c&&c.src&&!b.getAttribute("srcset")&&b.setAttribute("srcset",c.src),d({reevaluate:!0,elements:[b]})):c&&c.src&&(b.src=c.src)},v=function(a,b){return(getComputedStyle(a,null)||{})[b]},w=function(a,b,c){for(c=c||a.offsetWidth;c<e.minSize&&b&&!a._lazysizesWidth;)c=b.offsetWidth,b=b.parentNode;return c},x=function(){var a,c,d=[],e=[],f=d,g=function(){var b=f;for(f=d.length?e:d,a=!0,c=!1;b.length;)b.shift()();a=!1},h=function(d,e){a&&!e?d.apply(this,arguments):(f.push(d),c||(c=!0,(b.hidden?i:j)(g)))};return h._lsFlush=g,h}(),y=function(a,b){return b?function(){x(a)}:function(){var b=this,c=arguments;x(function(){a.apply(b,c)})}},z=function(a){var b,d=0,f=e.throttleDelay,g=e.ricTimeout,h=function(){b=!1,d=c.now(),a()},j=k&&g>49?function(){k(h,{timeout:g}),g!==e.ricTimeout&&(g=e.ricTimeout)}:y(function(){i(h)},!0);return function(a){var e;(a=!0===a)&&(g=33),b||(b=!0,e=f-(c.now()-d),e<0&&(e=0),a||e<9?j():i(j,e))}},A=function(a){var b,d,e=function(){b=null,a()},f=function(){var a=c.now()-d;a<99?i(f,99-a):(k||e)(e)};return function(){d=c.now(),b||(b=i(f,99))}},B=function(){var g,k,m,n,w,B,D,E,F,G,H,I,J=/^img$/i,K=/^iframe$/i,L="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),M=0,N=0,O=-1,P=function(a){N--,(!a||N<0||!a.target)&&(N=0)},Q=function(a){return null==I&&(I="hidden"==v(b.body,"visibility")),I||!("hidden"==v(a.parentNode,"visibility")&&"hidden"==v(a,"visibility"))},R=function(a,c){var d,e=a,g=Q(a);for(E-=c,H+=c,F-=c,G+=c;g&&(e=e.offsetParent)&&e!=b.body&&e!=f;)(g=(v(e,"opacity")||1)>0)&&"visible"!=v(e,"overflow")&&(d=e.getBoundingClientRect(),g=G>d.left&&F<d.right&&H>d.top-1&&E<d.bottom+1);return g},S=function(){var a,c,h,i,j,l,m,o,p,q,r,s,t=d.elements;if((n=e.loadMode)&&N<8&&(a=t.length)){for(c=0,O++;c<a;c++)if(t[c]&&!t[c]._lazyRace)if(!L||d.prematureUnveil&&d.prematureUnveil(t[c]))$(t[c]);else if((o=t[c].getAttribute("data-expand"))&&(l=1*o)||(l=M),q||(q=!e.expand||e.expand<1?f.clientHeight>500&&f.clientWidth>500?500:370:e.expand,d._defEx=q,r=q*e.expFactor,s=e.hFac,I=null,M<r&&N<1&&O>2&&n>2&&!b.hidden?(M=r,O=0):M=n>1&&O>1&&N<6?q:0),p!==l&&(B=innerWidth+l*s,D=innerHeight+l,m=-1*l,p=l),h=t[c].getBoundingClientRect(),(H=h.bottom)>=m&&(E=h.top)<=D&&(G=h.right)>=m*s&&(F=h.left)<=B&&(H||G||F||E)&&(e.loadHidden||Q(t[c]))&&(k&&N<3&&!o&&(n<3||O<4)||R(t[c],l))){if($(t[c]),j=!0,N>9)break}else!j&&k&&!i&&N<4&&O<4&&n>2&&(g[0]||e.preloadAfterLoad)&&(g[0]||!o&&(H||G||F||E||"auto"!=t[c].getAttribute(e.sizesAttr)))&&(i=g[0]||t[c]);i&&!j&&$(i)}},T=z(S),U=function(a){var b=a.target;if(b._lazyCache)return void delete b._lazyCache;P(a),q(b,e.loadedClass),r(b,e.loadingClass),s(b,W),t(b,"lazyloaded")},V=y(U),W=function(a){V({target:a.target})},X=function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.src=b}},Y=function(a){var b,c=a.getAttribute(e.srcsetAttr);(b=e.customMedia[a.getAttribute("data-media")||a.getAttribute("media")])&&a.setAttribute("media",b),c&&a.setAttribute("srcset",c)},Z=y(function(a,b,c,d,f){var g,h,j,k,n,p;(n=t(a,"lazybeforeunveil",b)).defaultPrevented||(d&&(c?q(a,e.autosizesClass):a.setAttribute("sizes",d)),h=a.getAttribute(e.srcsetAttr),g=a.getAttribute(e.srcAttr),f&&(j=a.parentNode,k=j&&l.test(j.nodeName||"")),p=b.firesLoad||"src"in a&&(h||g||k),n={target:a},q(a,e.loadingClass),p&&(clearTimeout(m),m=i(P,2500),s(a,W,!0)),k&&o.call(j.getElementsByTagName("source"),Y),h?a.setAttribute("srcset",h):g&&!k&&(K.test(a.nodeName)?X(a,g):a.src=g),f&&(h||k)&&u(a,{src:g})),a._lazyRace&&delete a._lazyRace,r(a,e.lazyClass),x(function(){var b=a.complete&&a.naturalWidth>1;p&&!b||(b&&q(a,"ls-is-cached"),U(n),a._lazyCache=!0,i(function(){"_lazyCache"in a&&delete a._lazyCache},9)),"lazy"==a.loading&&N--},!0)}),$=function(a){if(!a._lazyRace){var b,c=J.test(a.nodeName),d=c&&(a.getAttribute(e.sizesAttr)||a.getAttribute("sizes")),f="auto"==d;(!f&&k||!c||!a.getAttribute("src")&&!a.srcset||a.complete||p(a,e.errorClass)||!p(a,e.lazyClass))&&(b=t(a,"lazyunveilread").detail,f&&C.updateElem(a,!0,a.offsetWidth),a._lazyRace=!0,N++,Z(a,b,f,d,c))}},_=A(function(){e.loadMode=3,T()}),aa=function(){3==e.loadMode&&(e.loadMode=2),_()},ba=function(){if(!k){if(c.now()-w<999)return void i(ba,999);k=!0,e.loadMode=3,T(),h("scroll",aa,!0)}};return{_:function(){w=c.now(),d.elements=b.getElementsByClassName(e.lazyClass),g=b.getElementsByClassName(e.lazyClass+" "+e.preloadClass),h("scroll",T,!0),h("resize",T,!0),h("pageshow",function(a){if(a.persisted){var c=b.querySelectorAll("."+e.loadingClass);c.length&&c.forEach&&j(function(){c.forEach(function(a){a.complete&&$(a)})})}}),a.MutationObserver?new MutationObserver(T).observe(f,{childList:!0,subtree:!0,attributes:!0}):(f.addEventListener("DOMNodeInserted",T,!0),f.addEventListener("DOMAttrModified",T,!0),setInterval(T,999)),h("hashchange",T,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(a){b.addEventListener(a,T,!0)}),/d$|^c/.test(b.readyState)?ba():(h("load",ba),b.addEventListener("DOMContentLoaded",T),i(ba,2e4)),d.elements.length?(S(),x._lsFlush()):T()},checkElems:T,unveil:$,_aLSL:aa}}(),C=function(){var a,c=y(function(a,b,c,d){var e,f,g;if(a._lazysizesWidth=d,d+="px",a.setAttribute("sizes",d),l.test(b.nodeName||""))for(e=b.getElementsByTagName("source"),f=0,g=e.length;f<g;f++)e[f].setAttribute("sizes",d);c.detail.dataAttr||u(a,c.detail)}),d=function(a,b,d){var e,f=a.parentNode;f&&(d=w(a,f,d),e=t(a,"lazybeforesizes",{width:d,dataAttr:!!b}),e.defaultPrevented||(d=e.detail.width)&&d!==a._lazysizesWidth&&c(a,f,e,d))},f=function(){var b,c=a.length;if(c)for(b=0;b<c;b++)d(a[b])},g=A(f);return{_:function(){a=b.getElementsByClassName(e.autosizesClass),h("resize",g)},checkElems:g,updateElem:d}}(),D=function(){!D.i&&b.getElementsByClassName&&(D.i=!0,C._(),B._())};return i(function(){e.init&&D()}),d={cfg:e,autoSizer:C,loader:B,init:D,uP:u,aC:q,rC:r,hC:p,fire:t,gW:w,rAF:x}}(a,a.document,Date);a.lazySizes=c,"object"==typeof module&&module.exports&&(module.exports=c)}("undefined"!=typeof window?window:{});
/*! lazysizes - v5.2.0 */
!function(a,b){var c=function(){b(a.lazySizes),a.removeEventListener("lazyunveilread",c,!0)};b=b.bind(null,a,a.document),"object"==typeof module&&module.exports?b(require("lazysizes")):a.lazySizes?c():a.addEventListener("lazyunveilread",c,!0)}(window,function(a,b,c){"use strict";function d(a,c){if(!g[a]){var d=b.createElement(c?"link":"script"),e=b.getElementsByTagName("script")[0];c?(d.rel="stylesheet",d.href=a):d.src=a,g[a]=!0,g[d.src||d.href]=!0,e.parentNode.insertBefore(d,e)}}var e,f,g={};b.addEventListener&&(f=/\(|\)|\s|'/,e=function(a,c){var d=b.createElement("img");d.onload=function(){d.onload=null,d.onerror=null,d=null,c()},d.onerror=d.onload,d.src=a,d&&d.complete&&d.onload&&d.onload()},addEventListener("lazybeforeunveil",function(a){if(a.detail.instance==c){var b,g,h,i;if(!a.defaultPrevented){var j=a.target;if("none"==j.preload&&(j.preload=j.getAttribute("data-preload")||"auto"),null!=j.getAttribute("data-autoplay"))if(j.getAttribute("data-expand")&&!j.autoplay)try{j.play()}catch(a){}else requestAnimationFrame(function(){j.setAttribute("data-expand","-10"),c.aC(j,c.cfg.lazyClass)});b=j.getAttribute("data-link"),b&&d(b,!0),b=j.getAttribute("data-script"),b&&d(b),b=j.getAttribute("data-require"),b&&(c.cfg.requireJs?c.cfg.requireJs([b]):d(b)),h=j.getAttribute("data-bg"),h&&(a.detail.firesLoad=!0,g=function(){j.style.backgroundImage="url("+(f.test(h)?JSON.stringify(h):h)+")",a.detail.firesLoad=!1,c.fire(j,"_lazyloaded",{},!0,!0)},e(h,g)),i=j.getAttribute("data-poster"),i&&(a.detail.firesLoad=!0,g=function(){j.poster=i,a.detail.firesLoad=!1,c.fire(j,"_lazyloaded",{},!0,!0)},e(i,g))}}},!1))});
var jqmScript=document.createElement('script');jqmScript.setAttribute('src','/wp-content/plugins/ax-media/includes/gallery/js/swiped-events.js');document.head.appendChild(jqmScript);(function($){'use strict';var config=axmgallery;var template=config.html;var sharesTemplate=config.shares;var autoplayInterval=8000;var autoplayTimer;var isAutoplayOn=false;var fsCurrentImgIndx=1;var Gallery=function($gallery){var data=$gallery.attr('data-ax-gallery');var galleryId=$gallery.attr('id');var items=$.parseJSON(data);var galleryLength=items.length;var imagesLength=0;items.forEach(function(item){if(item.type==='image'){imagesLength++;}});var galleryTitle=$gallery.attr('data-ax-gallery-title');var ShareUrl=$gallery.attr('data-ax-share-shortlink');var currentIndex=0;var currentImageIndex=0;var isGalleryVisible=false;var currentSidebarCollectionOffset=0;var maxSidebarCollectionOffset=Math.ceil((imagesLength-9)/3);var html=template;var init=function(){captureLightbox();bindEvents();var hash=window.location.hash;hash=hash.replace('#','');if(hash===galleryId){$gallery.trigger('click');}
preloadFullscreenImages();buildFullscreenContainer();};var buildFullscreenContainer=function(){var $fullscreenContainer=$('<div />');$fullscreenContainer.addClass('ax-gallery-fullscreen-container');$fullscreenContainer.html('<div class="fs-gallery-img-wrap"><img class="fs-gallery-img" /></div>'+'<div class="fs-gallery-button-controls">'+'<div class="fs-play-pause-btn '+(isAutoplayOn?'pause':'play')+'"></div>'+'<div class="fs-numerator"></div>'+'</div>'+'<div class="fs-nav-btn prev"></div>'+'<div class="fs-nav-btn next"></div>'+'<div class="fs-close-btn"></div>');$fullscreenContainer.appendTo($('body'));var t=1;var delay=setInterval(checkDelay,500);var checkDelay=function(){if(t==3){$('.fs-close-btn').removeClass('show');$('.fs-gallery-button-controls').removeClass('show');$('.fs-nav-btn').removeClass('show');t=1;}
t++;};$fullscreenContainer.on('mousemove click',function(){$('.fs-close-btn').addClass('show');$('.fs-gallery-button-controls').addClass('show');$('.fs-nav-btn').addClass('show');t=1;clearInterval(delay);delay=setInterval(checkDelay,500);});$('.fs-close-btn').on('click',function(){t=1;clearInterval(delay);});$('.fs-close-btn').on('click',function(){closeFullscreen();if(typeof(autoplayTimer)!=='undefined'){stopAutoplay();}});$('.fs-play-pause-btn').on('click',function(e){e.preventDefault();if($(this).hasClass('pause')){stopAutoplay();$(this).removeClass('pause').addClass('play');}
else if($(this).hasClass('play')){autoplayGallery(true,fsCurrentImgIndx+1);$(this).removeClass('play').addClass('pause');}});$('.fs-nav-btn.prev').on('click',function(e){e.preventDefault();if(fsCurrentImgIndx>1){fsCurrentImgIndx--;navigateFSImage(fsCurrentImgIndx);}
if(fsCurrentImgIndx===1){$(this).addClass('disable');}
$('.fs-nav-btn.next').removeClass('disable');});$('.fs-nav-btn.next').on('click',function(e){e.preventDefault();var noOfImgs=getTotalNoOfImgs();if(fsCurrentImgIndx<noOfImgs){fsCurrentImgIndx++;navigateFSImage(fsCurrentImgIndx);}
if(fsCurrentImgIndx===noOfImgs){$(this).addClass('disable');}
$('.fs-nav-btn.prev').removeClass('disable');});document.addEventListener('swiped-left',function(e){if($fullscreenContainer.hasClass('show'))
$('.fs-nav-btn.next').trigger('click');});document.addEventListener('swiped-right',function(e){if($fullscreenContainer.hasClass('show'))
$('.fs-nav-btn.prev').trigger('click');});};var navigateFSImage=function(n){var imgURL=$('.ax-gallery-frame.ax-gallery-frame-'+(n-1)).attr('data-ax-share-image');setFullscreenImg(imgURL);var noOfImgs=getTotalNoOfImgs();;setNumerator(n,noOfImgs);}
var resumeAutoplay=function(delay){setTimeout(function(){autoplayGallery(true,fsCurrentImgIndx-1);},delay);};var openFullscreen=function(){var elem=document.querySelector('.ax-gallery-fullscreen-container');elem.classList.add('show');if(elem.requestFullscreen){elem.requestFullscreen();}else if(elem.webkitRequestFullscreen){elem.webkitRequestFullscreen();}else if(elem.msRequestFullscreen){elem.msRequestFullscreen();}};var closeFullscreen=function(){hideFsContainer();if(document.exitFullscreen){document.exitFullscreen();}else if(document.webkitExitFullscreen){document.webkitExitFullscreen();}else if(document.msExitFullscreen){document.msExitFullscreen();}};if(document.addEventListener){document.addEventListener('fullscreenchange',exitHandler,false);document.addEventListener('mozfullscreenchange',exitHandler,false);document.addEventListener('MSFullscreenChange',exitHandler,false);document.addEventListener('webkitfullscreenchange',exitHandler,false);}
function exitHandler(){if(!document.webkitIsFullScreen&&!document.mozFullScreen&&!document.msFullscreenElement){stopAutoplay();hideFsContainer();}}
var hideFsContainer=function(){document.querySelector('.ax-gallery-fullscreen-container').classList.remove('show');};var isSpaceHit=false;$(document).keydown(function(e){if($('.ax-gallery-fullscreen-container').hasClass('show')){if(e.key==='ArrowLeft'){$('.fs-nav-btn.prev').trigger('click');}
else if(e.key==='ArrowRight'){$('.fs-nav-btn.next').trigger('click');}
else if(e.key===' '){if(!isSpaceHit){autoplayGallery(true,fsCurrentImgIndx);isSpaceHit=true;}else{stopAutoplay();isSpaceHit=false;}}}});var preloadFullscreenImages=function(){$('.ax-gallery-frame').each(function(i){$('<img />')[0].src=$(this).attr('data-ax-share-image');});}
var bindEvents=function(){$gallery.on('click',function(){var $appendedElements=$(html);var $sidebarAd=$appendedElements.find('.ax-gallery-sidebar .ax-gallery-ad');var sidebarAdHTML=$sidebarAd.html();$sidebarAd.html('');$appendedElements.appendTo("body");$appendedElements.append(buildStyle());$('.ax-gallery-thumbnail-1').addClass('ax-gallery-thumbnail-active');bindLightboxEvents($appendedElements);hideThumbnailsIfTooSmall();$('body').addClass('ax-gallery-visible');isGalleryVisible=true;switchToIndex(0,true);if($sidebarAd.is(':visible')){$sidebarAd.html(sidebarAdHTML);}
$appendedElements.find('.ax-gallery-enlarge-button').on('click',function(e){e.preventDefault();var currentImg;$('.ax-gallery-frame').each(function(i){if($(this).hasClass('ax-gallery-frame-visible')){currentImg=$(this).attr('data-ax-share-image');}});if(currentImg){openFullscreen();mapCurrentGalleryImage(currentImg);detectMobile();autoplayGallery(isAutoplayOn,currentImageIndex);}});});};var mapCurrentGalleryImage=function(url){setFullscreenImg(url);};var setFullscreenImg=function(url){if(url)
return $('.ax-gallery-fullscreen-container').find('.fs-gallery-img-wrap > img.fs-gallery-img').attr('src',url);};var setNumerator=function(a,b){$('.fs-numerator').html(a+' / '+b);}
var getTotalNoOfImgs=function(){return $('.ax-gallery-frame').length;};var disableNavButtons=function(i){if(i===1){$('.fs-nav-btn.prev').addClass('disable');$('.fs-nav-btn.next').removeClass('disable');}else if(i===getTotalNoOfImgs()){$('.fs-nav-btn.prev').removeClass('disable');$('.fs-nav-btn.next').addClass('disable');}else{$('.fs-nav-btn.prev').removeClass('disable');$('.fs-nav-btn.next').removeClass('disable');}}
var autoplayGallery=function(isAutoplay,indx){var n=indx;var noOfImgs=getTotalNoOfImgs();if(typeof(autoplayTimer)!=='undefined'){stopAutoplay();}
setNumerator(n,noOfImgs);if(isAutoplay){$('.fs-play-pause-btn').removeClass('play').addClass('pause');autoplayTimer=setInterval(function(){if(n!=(fsCurrentImgIndx+1)&&fsCurrentImgIndx<=(noOfImgs-1)){n=fsCurrentImgIndx;}
fsCurrentImgIndx=n;disableNavButtons(n);setNumerator(n,noOfImgs);if(n<=noOfImgs){var imgURL=$('.ax-gallery-frame.ax-gallery-frame-'+(n-1)).attr('data-ax-share-image');setFullscreenImg(imgURL);n++;}
if(n==noOfImgs+1){n=1;}},autoplayInterval);}};var stopAutoplay=function(){clearInterval(autoplayTimer);$('.fs-play-pause-btn').removeClass('pause').addClass('play');};var isMobile=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);var detectMobile=function(){if(isMobile||$(window).width()<=768){var winW=$(window).width(),winH=$(window).height();if(winW>=winH){$('.fs-gallery-img').removeClass('portrait').addClass('landscape');}
else if(winH>winW){$('.fs-gallery-img').removeClass('landscape').addClass('portrait');}}}
detectMobile();$(window).resize(function(e){detectMobile();});var bindLightboxEvents=function($appendedElements){$(window).resize(function(){hideThumbnailsIfTooSmall();});$('.ax-gallery-close-button').on('click',function(){$('body').removeClass('ax-gallery-visible');setTimeout(function(){setSidebarThumbnailsOffset(0);$appendedElements.remove();currentSidebarCollectionOffset=0;isGalleryVisible=false;},375);});$('.ax-gallery-thumbs-button, .ax-gallery-back-to-slideshow').on('click',function(){$appendedElements.toggleClass('ax-gallery-thumbnails-mode');});$('.ax-gallery-thumbnail').on('click',function(){var index=parseInt($(this).attr('data-ax-gallery-index'),10);switchToIndex(index);});$('.ax-gallery-previous-frame').on('click',function(){handlePrevFrame();});$('.ax-gallery-next-frame').on('click',function(){handleNextFrame();});$(document).keydown(function(e){if(isGalleryVisible){if(e.keyCode==37){handlePrevFrame();}
if(e.keyCode==39){handleNextFrame();}}});$('.ax-gallery-thumbnails-up').on('click',function(){if(currentSidebarCollectionOffset>0){setSidebarThumbnailsOffset(currentSidebarCollectionOffset-1);}});$('.ax-gallery-thumbnails-down').on('click',function(){if(currentSidebarCollectionOffset<maxSidebarCollectionOffset){setSidebarThumbnailsOffset(currentSidebarCollectionOffset+1);}});};var hideThumbnailsIfTooSmall=function(){$('.ax-gallery-thumbnails').show();if($('.ax-gallery-thumbnails').height()<200){$('.ax-gallery-thumbnails').hide();}};var handleNextFrame=function(){if(currentIndex===galleryLength-1){return;}
switchToIndex(currentIndex+1);};var handlePrevFrame=function(){if(currentIndex===0){return;}
switchToIndex(currentIndex-1);};var switchToIndex=function(index,delay){var item=items[index];currentIndex=index;updateImageIndex();$('.ax-gallery-frame-visible').removeClass('ax-gallery-frame-visible');$('.ax-gallery-wrapper').removeClass('ax-gallery-ad-mode');if(item.type==='image'){$('.ax-gallery-thumbnail').removeClass('ax-gallery-thumbnail-active');$('.ax-gallery-thumbnail-'+currentIndex).addClass('ax-gallery-thumbnail-active');$('.ax-gallery-frame-'+currentIndex).addClass('ax-gallery-frame-visible');$('.ax-gallery-wrapper').removeClass('ax-gallery-thumbnails-mode');$('.ax-gallery-numerator-current').html(currentImageIndex);var imageUrl=$('.ax-gallery-frame-visible').attr('data-ax-share-image');if(delay){setTimeout(function(){setupShares(imageUrl);},500);}else{setupShares(imageUrl);}
var row=Math.ceil((currentIndex-1)/3);var newOffset=row-1;if(newOffset>maxSidebarCollectionOffset){newOffset=maxSidebarCollectionOffset;}
if(newOffset<0){newOffset=0;}
setSidebarThumbnailsOffset(newOffset);}
if(item.type==='ad'){var $adFrame=$('.ax-gallery-frame-ad-'+index);$('.ax-gallery-frame-'+currentIndex).removeClass('ax-gallery-frame-visible');$('.ax-gallery-thumbnail').removeClass('ax-gallery-thumbnail-active');$adFrame.addClass('ax-gallery-frame-visible');$('.ax-gallery-wrapper').addClass('ax-gallery-ad-mode');if($adFrame.find('.ax-gallery-ad:not(.ax-ad-loaded)').length>0){$adFrame.find('.ax-gallery-ad').append(items[index].html).addClass('ax-ad-loaded');}}};var updateImageIndex=function(){currentImageIndex=0;for(var index in items){if(items[index].type==='image'){currentImageIndex++;}
if(index==currentIndex){break;}}};var setupShares=function(imageUrl){var shareHtml=sharesTemplate;shareHtml=shareHtml.replace(new RegExp(/axm_replace_shortlink/g),encodeURIComponent(ShareUrl));shareHtml=shareHtml.replace(new RegExp(/axm_replace_title/g),encodeURIComponent(galleryTitle));shareHtml=shareHtml.replace(new RegExp(/axm_replace_image_url/g),encodeURIComponent(imageUrl));shareHtml=shareHtml.replace(new RegExp(/axm_replace_noesc_shortlink/g),ShareUrl);shareHtml=shareHtml.replace(new RegExp(/axm_replace_noesc_title/g),galleryTitle);shareHtml=shareHtml.replace(new RegExp(/axm_replace_noesc_image_url/g),imageUrl);shareHtml=shareHtml.replace(new RegExp(/axm_replace_unique/g),Math.random().toString(36).substr(2,16));$('.ax-gallery-shares').html(shareHtml);jQuery('body').trigger('axmGalleryItemChanged');};var setSidebarThumbnailsOffset=function(offset){$('.ax-gallery-sidebar .ax-gallery-thumbnail').css('top',offset*-108);currentSidebarCollectionOffset=offset;};var captureLightbox=function(){var frames=buildFrames();var thumbnails=buildThumbnails('thumbnail');var thumbnails32=buildThumbnails('3-2-thumbnail');var numerator=buildNumerator();var title=galleryTitle;html=html.replace('{frames}',frames);html=html.replace('{thumbnails}',thumbnails);html=html.replace('{thumbnails32}',thumbnails32);html=html.replace('{numerator}',numerator);html=html.replace('{title}',title);};var buildStyle=function(){var out='<style>';items.forEach(function(item){if(item.type==='image'){out+='.ax-gallery-image-'+item.id+'{ background-image:url('+item.full+'); }';}});return out;};var buildFrames=function(){var out='';var index=0;items.forEach(function(item){if(item.type==='image'){out+='<div class="ax-gallery-frame ax-gallery-frame-'+index+'" data-ax-share-image="'+item.full+'">';out+='<div class="ax-gallery-image ax-gallery-image-'+item.id+' ">';out+='<a class="ax-gallery-previous-frame"></a>';out+='<a class="ax-gallery-next-frame"></a>';out+='</div>';out+='<div class="ax-gallery-image-title">'+item.title+'</div></div>'}
if(item.type==='ad'){out+='<div class="ax-gallery-frame ax-gallery-frame-'+index+' ax-gallery-frame-ad ax-gallery-frame-ad-'+index+'">';out+='<div class="ax-gallery-ad">';out+='<a class="ax-gallery-previous-frame"></a>';out+='<a class="ax-gallery-next-frame"></a>';out+='</div></div>';}
index+=1;});return out;};var buildThumbnails=function(size){var out='';for(var index in items){var item=items[index];if(item.type==='image'){out+='<div class="ax-gallery-thumbnail ax-gallery-thumbnail-'+index+'" data-ax-gallery-index="'+index+'">';out+='<img src="'+item[size]+'">';out+='</div>';}}
return out;};var buildNumerator=function(){return'<span class="ax-gallery-numerator-current">1</span> '+config.i18n.of+' <span class="ax-gallery-numerator-max">'+imagesLength+'</span>';};return init();};$(document).ready(function(){setupGalleries($('body'));});$('body').on('axNewContentLoaded',function(e,$newContent){setupGalleries($newContent);});var setupGalleries=function($scope){$('.axm-gallery-teaser',$scope).each(function(){new Gallery($(this));});};})(jQuery);
"undefined"==typeof window.axplus_collections&&(window.axplus_collections={}),function(a,b){"use strict";b.AddPopup=function(){var c,d,e={},f={},g={},h={popup:"#axplus-popup-add-to-collection",popupInner:".axplus-add-to-collection",leading:".axplus-collections-leading",searchInput:"input[name=axplus-collection-search]",searchSubmit:"input[name=axplus-collection-save]",searchForm:"form.axplus-form-collection-search",items:".axplus-collections-items",item:".axplus-collections-item",itemTitle:".axplus-collection-title",itemTitleLink:".axplus-collection-title > a",publicItemTpl:".axplus-collections-item > .axplus-collection-public",privateItemTpl:".axplus-collections-item > .axplus-collection-private"},i={popupLoading:"axplus-add-to-collection-loading"};e.open=function(a,b){if(g={postId:a,nonce:b},"function"!=typeof axplus.openPopup)throw new Error("openPopup() not defined!");d.find(h.searchInput).val(""),axplus.openPopup(d);var c=d.find(h.popupInner),e=d.find(h.leading);c.addClass(i.popupLoading),e.hide(),j(function(a,b){c.removeClass(i.popupLoading),0===b&&e.show()})},e.close=function(){axplus.closePopup()};var j=function(b){var e=a.ajax({type:"GET",url:c.ajax_url,dataType:"json",data:{action:"axplus_get_user_collections"}});e.done(function(a){var c="success"===a.status;if(c){var e=d.find(h.items);e.empty();for(var g in a.args.list){var i=a.args.list[g],j=f[i.visibility].clone(),k='<a href="#" data-axplus-collection="'+i.ID+'">'+i.post_title+"</a>";j.find(h.itemTitle).html(k),e.append(j)}}"function"==typeof b&&b(c,a.args.list.length)})},k=function(b,d){var e=a.ajax({type:"POST",url:c.ajax_url,dataType:"json",data:{action:"axplus_save_collection",security:g.nonce,axplus_title:b}});e.done(function(a){var b="success"===a.status;d(!!b&&a.args.collection_id)})},l=function(){a(h.searchForm,d).on("submit",function(c){c.preventDefault();var d=a(this).find(h.searchInput).val();e.close(),k(d,function(a){if(!1===a)throw new Error("Collection not saved!");b.addToCollection(a,g.postId,g.nonce)})})},m=function(){d.on("click",h.item,function(c){c.preventDefault();var d=a(this).find("a").data("axplus-collection");e.close(),b.addToCollection(d,g.postId,g.nonce)})},n=function(){var b=function(b){var c=d.find(h.itemTitleLink);d.find(h.item).show(),0!==b.length&&(b=b.toLowerCase(),c.each(function(){var c=a(this).text().toLowerCase();-1===c.indexOf(b)&&a(this).parents(h.item).hide()}))};d.find(h.searchInput).on("keyup",function(){var c=a(this).val(),e=d.find(h.searchSubmit);c.length>0?e.removeAttr("disabled"):e.attr("disabled","disabled"),b(c)})},o=function(){l(),m(),n()},p=function(){if(d=a(h.popup),0===d.length)throw new Error("Add collection popup not found!");return c=axplus_collections_js_config,f.public=d.find(h.publicItemTpl).parent().detach(),f.private=d.find(h.privateItemTpl).parent().detach(),o(),e};return p()}}(jQuery,axplus_collections),function(a,b){"use strict";var c,d,e={postContainer:".axplus-post-container",collectionItems:".axplus-collection-items",collectionItem:".axplus-collection-item",actions:".axplus-collection-actions",addAction:".axplus-action-add-to-collection",clearAllAction:".axplus-collection-action-clear-all",removeCollectionAction:".axplus-collection-action-delete",removePostAction:".axplus-collection-action-remove-post",itemCount:".axplus-collection-item-count",featuredMedia:".axplus-collection-essentials .entry-featured-media .ax-frame-inner",meta:".axplus-collection-essentials .axplus-collection-meta",editForm:"form.axplus-edit-collection",cancelAction:".axplus-edit-collection-actions > a",mediaForm:".axplus-media-upload-form",titleField:"input[name=axplus-title]",descriptionField:"textarea[name=axplus-description]",visibilityField:"input[name=axplus-visibility]",featuredMediaField:"input[name=axplus-featured-image]"},f={itemAdded:"axplus-collection-item-added",itemAdding:"axplus-collection-item-adding",itemRemoved:"axplus-collection-item-removed",itemRemoving:"axplus-collection-item-removing"};b.addToCollection=function(b,d,e,f){var g=a.ajax({type:"POST",url:c.ajax_url,dataType:"json",data:{action:"axplus_add_to_collection",security:e,axplus_collection:b,axplus_post_id:d}});g.done(function(a){var b="success"===a.status;b&&axplus.notifications&&axplus.notifications.add(a.args.html),"function"==typeof f&&f(b)})},b.removeCollection=function(b,d,e){var f=a.ajax({type:"POST",url:c.ajax_url,dataType:"json",data:{action:"axplus_remove_collection",security:d,axplus_collection_id:b}});f.done(function(a){var b="success"===a.status;e(b)})},b.removePost=function(b,d,e,f){var g=a.ajax({type:"POST",url:c.ajax_url,dataType:"json",data:{action:"axplus_remove_post_from_collection",security:e,axplus_post_id:b,axplus_collection_id:d}});g.done(function(a){var b="success"===a.status;f(b)})},b.clearAll=function(b,d){var e=a.ajax({type:"POST",url:c.ajax_url,dataType:"json",data:{action:"axplus_remove_all_from_collection",security:d,axplus_collection_id:b}});e.done(function(a){var b="success"===a.status;b&&(window.location.href=a.args.redirect_to)})},b.updateCollectionFeaturedImage=function(b){var d=a.ajax({type:"GET",url:c.ajax_url,dataType:"json",data:{action:"axplus_get_collection_featured_media",axplus_collection_id:b}});d.done(function(b){var c="success"===b.status;if(c){var d=a(e.featuredMedia),f=d.find("img"),g=a(b.args.html);f.attr("src")!==g.attr("src")&&d.html(g)}})},b.updateCollectionMeta=function(b){var d=a.ajax({type:"GET",url:c.ajax_url,dataType:"json",data:{action:"axplus_get_collection_meta",axplus_collection_id:b}});d.done(function(b){var c="success"===b.status;c&&a(e.meta).replaceWith(b.args.html)})},b.saveCollection=function(b,d,e){var f=a.ajax({type:"POST",url:c.ajax_url,dataType:"json",data:{action:"axplus_save_collection",security:c.nonce,axplus_collection_id:b,axplus_title:d.title||"",axplus_description:d.description||"",axplus_visibility:d.visibility||"private",axplus_featured_media:d.featuredMedia||""}});f.done(function(a){var b="success"===a.status;e&&e(b,a.args.collection_url)})},b.addToCollectionEvent=function(){a("body").on("click",e.addAction,function(){var e=a(this),g=parseInt(c.user_id,10);if(!g)return void(window.location.href=e.data("axplus-redirect"));var h=e.data("axplus-collection"),i=e.data("axplus-post"),j=e.data("axplus-nonce");h&&i&&j&&("custom"===h?(d||(d=b.AddPopup()),d.open(i,j)):(e.addClass(f.itemAdding),b.addToCollection(h,i,j,function(a){a&&(e.addClass(f.itemAdded),e.prop("disabled",!0))})))})},b.removeCollectionEvent=function(){a("body").on("click",e.removeCollectionAction,function(){if(confirm(c.i18n.are_you_sure_remove)){var d=a(this),f=parseInt(c.user_id,10);if(0!==f){var g=d.parents(e.actions),h=g.data("axplus-collection"),i=g.data("axplus-nonce");h&&i&&(axplus.notifications&&axplus.notifications.add(c.i18n.removed),b.removeCollection(h,i,function(a){a&&(window.location.href=c.home_url)}))}}})},b.removeFromCollectionEvent=function(){a("body").on("click",e.removePostAction,function(){var d=a(this),g=parseInt(c.user_id,10);if(0!==g){var h=d.data("axplus-post"),i=d.parents(e.collectionItems).data("axplus-collection"),j=d.data("axplus-nonce");if(h&&i&&j){var k=d.parents(e.collectionItem);k.addClass(f.itemRemoving),b.removePost(h,i,j,function(a){a&&(k.addClass(f.itemRemoved),k.slideToggle(375),setTimeout(function(){var a=d.parents(e.postContainer).find(e.itemCount);a.text(parseInt(a.text(),10)-1)},375),b.updateCollectionFeaturedImage(i),b.updateCollectionMeta(i))})}}})},b.clearAllEvent=function(){a("body").on("click",e.clearAllAction,function(){if(confirm(c.i18n.are_you_sure_clear_all)){var d=parseInt(c.user_id,10);if(0!==d){var f=a(this).parents(e.actions),g=f.data("axplus-collection"),h=f.data("axplus-nonce");g&&h&&(axplus.notifications&&axplus.notifications.add(c.i18n.removing_items),b.clearAll(g,h))}}})},b.clearPreviewEvent=function(){var b=a(e.editForm);b.find("a.axplus-media-action-delete-featured").parents(".axplus-object-actions").remove();var c=b.find("a.axplus-delete-collection-image").parents(".axplus-object-actions").hide(),d=b.find("#axplus-featured-image");if(d.length>0){var f=c.clone();f.insertAfter(d.find(".axplus-object-container")).show(),f.on("click","a.axplus-delete-collection-image",function(c){c.preventDefault(),b.find(e.featuredMediaField).val(""),a("#axplus-featured-image").empty(),b.find(".axplus-tab-content-featured-image").addClass("axplus-tab-content-visible").removeClass("axplus-tab-content-hidden"),a("body").trigger("axplusContentActive",[b])})}},b.editFormEvents=function(){var c=a(e.editForm),d=c.find(e.mediaForm);d.on("axplusFileUploaded",function(a,b){c.find(e.featuredMediaField).val(b)}),b.clearPreviewEvent(),d.on("axplusPreviewLoaded",function(a,c){b.clearPreviewEvent()}),c.on("submit",function(a){a.preventDefault();var d=c.data("axplus-collection"),f=c.find(e.titleField).val();if(0===f.length)return void alert("Please fill in the title");var g=c.find(e.descriptionField).val(),h=c.find(e.visibilityField+":checked").val(),i=c.find(e.featuredMediaField).val(),j={title:f,description:g,visibility:h,featuredMedia:i},k=c.find("input[type=submit]");k.attr("disabled","disabled"),b.saveCollection(d,j,function(a,b){a?window.location.href=b:k.removeAttr("disabled")})}),c.on("click",e.cancelAction,function(){a(this).css("pointerEvents","none")})},b.bindEvents=function(){b.addToCollectionEvent(),b.removeCollectionEvent(),b.removeFromCollectionEvent(),b.clearAllEvent(),b.editFormEvents()},b.storeInHistory=function(b){c.user_id<=0||a.ajax({type:"POST",url:c.ajax_url,dataType:"json",data:{action:"axplus_add_to_collection",security:c.nonce,axplus_post_id:b,axplus_collection:"history"}})},b.init=function(){c=axplus_collections_js_config,b.bindEvents(),"on"===c.history&&c.post_id>0&&b.storeInHistory(c.post_id)},a(document).ready(function(){b.init()})}(jQuery,axplus_collections);
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof module==='object'&&typeof module.exports==='object'){factory(require('jquery'));}else{factory(jQuery);}}(function($){$.timeago=function(timestamp){if(timestamp instanceof Date){return inWords(timestamp);}else if(typeof timestamp==="string"){return inWords($.timeago.parse(timestamp));}else if(typeof timestamp==="number"){return inWords(new Date(timestamp));}else{return inWords($.timeago.datetime(timestamp));}};var $t=$.timeago;$.extend($.timeago,{settings:{refreshMillis:60000,allowPast:true,allowFuture:false,localeTitle:false,cutoff:0,autoDispose:true,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:'any moment now',seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(distanceMillis){if(!this.settings.allowPast&&!this.settings.allowFuture){throw'timeago allowPast and allowFuture settings can not both be set to false.';}
var $l=this.settings.strings;var prefix=$l.prefixAgo;var suffix=$l.suffixAgo;if(this.settings.allowFuture){if(distanceMillis<0){prefix=$l.prefixFromNow;suffix=$l.suffixFromNow;}}
if(!this.settings.allowPast&&distanceMillis>=0){return this.settings.strings.inPast;}
var seconds=Math.abs(distanceMillis)/1000;var minutes=seconds/60;var hours=minutes/60;var days=hours/24;var years=days/365;function substitute(stringOrFunction,number){var string=$.isFunction(stringOrFunction)?stringOrFunction(number,distanceMillis):stringOrFunction;var value=($l.numbers&&$l.numbers[number])||number;return string.replace(/%d/i,value);}
var words=seconds<45&&substitute($l.seconds,Math.round(seconds))||seconds<90&&substitute($l.minute,1)||minutes<45&&substitute($l.minutes,Math.round(minutes))||minutes<90&&substitute($l.hour,1)||hours<24&&substitute($l.hours,Math.round(hours))||hours<42&&substitute($l.day,1)||days<30&&substitute($l.days,Math.round(days))||days<45&&substitute($l.month,1)||days<365&&substitute($l.months,Math.round(days/30))||years<1.5&&substitute($l.year,1)||substitute($l.years,Math.round(years));var separator=$l.wordSeparator||"";if($l.wordSeparator===undefined){separator=" ";}
return $.trim([prefix,words,suffix].join(separator));},parse:function(iso8601){var s=$.trim(iso8601);s=s.replace(/\.\d+/,"");s=s.replace(/-/,"/").replace(/-/,"/");s=s.replace(/T/," ").replace(/Z/," UTC");s=s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");s=s.replace(/([\+\-]\d\d)$/," $100");return new Date(s);},datetime:function(elem){var iso8601=$t.isTime(elem)?$(elem).attr("datetime"):$(elem).attr("title");return $t.parse(iso8601);},isTime:function(elem){return $(elem).get(0).tagName.toLowerCase()==="time";}});var functions={init:function(){var refresh_el=$.proxy(refresh,this);refresh_el();var $s=$t.settings;if($s.refreshMillis>0){this._timeagoInterval=setInterval(refresh_el,$s.refreshMillis);}},update:function(timestamp){var date=(timestamp instanceof Date)?timestamp:$t.parse(timestamp);$(this).data('timeago',{datetime:date});if($t.settings.localeTitle)$(this).attr("title",date.toLocaleString());refresh.apply(this);},updateFromDOM:function(){$(this).data('timeago',{datetime:$t.parse($t.isTime(this)?$(this).attr("datetime"):$(this).attr("title"))});refresh.apply(this);},dispose:function(){if(this._timeagoInterval){window.clearInterval(this._timeagoInterval);this._timeagoInterval=null;}}};$.fn.timeago=function(action,options){var fn=action?functions[action]:functions.init;if(!fn){throw new Error("Unknown function name '"+action+"' for timeago");}
this.each(function(){fn.call(this,options);});return this;};function refresh(){var $s=$t.settings;if($s.autoDispose&&!$.contains(document.documentElement,this)){$(this).timeago("dispose");return this;}
var data=prepareData(this);if(!isNaN(data.datetime)){if($s.cutoff==0||Math.abs(distance(data.datetime))<$s.cutoff){$(this).text(inWords(data.datetime));}}
return this;}
function prepareData(element){element=$(element);if(!element.data("timeago")){element.data("timeago",{datetime:$t.datetime(element)});var text=$.trim(element.text());if($t.settings.localeTitle){element.attr("title",element.data('timeago').datetime.toLocaleString());}else if(text.length>0&&!($t.isTime(element)&&element.attr("title"))){element.attr("title",text);}}
return element.data("timeago");}
function inWords(date){return $t.inWords(distance(date));}
function distance(date){return(new Date().getTime()-date.getTime());}
document.createElement("abbr");document.createElement("time");}));
jQuery.timeago.settings.strings={prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]};
if(typeof window.axplus==='undefined'){window.axplus={};}
(function($,ctx){'use strict';ctx.config=window.axplus_front_config;if(!ctx.config){throw'AX-Plus Error: Global config is not defined!';}
ctx.log=function(msg){if(typeof console!=='undefined'){console.log(msg);}};ctx.inDebugMode=function(){return(typeof ctx.config.debug_mode!=='undefined'&&ctx.config.debug_mode);};ctx.isTouchDevice=function(){return('ontouchstart'in window)||navigator.msMaxTouchPoints;};ctx.createCookie=function(name,value,hours){var expires;if(hours){var date=new Date();date.setTime(date.getTime()+(hours*60*60*1000));expires='; expires='+date.toUTCString();}
else{expires='';}
document.cookie=name.concat('=',value,expires,'; path=/');};ctx.readCookie=function(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i+=1){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}
return null;};ctx.deleteCookie=function(name){ctx.createCookie(name,'',-1);};ctx.getUrlParameter=function(param){var sPageURL=decodeURIComponent(window.location.search.substring(1)),sURLVariables=sPageURL.split('&'),sParameterName,i;for(i=0;i<sURLVariables.length;i++){sParameterName=sURLVariables[i].split('=');if(sParameterName[0]===param){return sParameterName[1]===undefined?true:sParameterName[1];}}};})(jQuery,axplus);(function($,ctx){ctx.MediaItem=function(data){var instance={};function init(){data=data||{};data=$.extend({'type':'image','title':'','source':'','refLink':'','description':'','mediaId':'','postId':0,'authorId':'','status':'','parentFormat':'list','origin':'post','legal':false,'memeTemplate':''},data);return instance;}
instance.save=function(callback){callback=callback||function(){};var ajaxData={'action':'axplus_add_media_item','security':$('input[name=axplus-add-media-item-nonce]').val(),'axplus_title':data.title,'axplus_source':data.source,'axplus_ref_link':data.refLink,'axplus_description':data.description,'axplus_media_id':data.mediaId,'axplus_post_id':data.postId,'axplus_author_id':data.authorId,'axplus_status':data.status,'axplus_parent_format':data.parentFormat,'axplus_origin':data.origin,'axplus_legal':data.legal?'accepted':'','axplus_type':data.type,'axplus_meme_template':data.memeTemplate};if(typeof ctx.saveItemImageDataFilter==='function'){ajaxData=ctx.saveItemImageDataFilter(ajaxData,data);}
var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':ajaxData});xhr.done(function(res){callback(res);});};return init();};ctx.EmbedItem=function(data){var instance={};function init(){data=data||{};data=$.extend({'type':'embed','title':'','source':'','refLink':'','description':'','embedCode':'','postId':0,'authorId':'','status':'','parentFormat':'list','origin':'post','legal':false},data);return instance;}
instance.save=function(callback){callback=callback||function(){};var ajaxData={'action':'axplus_add_embed_item','security':$('input[name=axplus-add-embed-item-nonce]').val(),'axplus_title':data.title,'axplus_source':data.source,'axplus_ref_link':data.refLink,'axplus_embed_code':data.embedCode,'axplus_description':data.description,'axplus_post_id':data.postId,'axplus_author_id':data.authorId,'axplus_status':data.status,'axplus_parent_format':data.parentFormat,'axplus_origin':data.origin,'axplus_legal':data.legal?'accepted':''};if(typeof ctx.saveItemEmbedDataFilter==='function'){ajaxData=ctx.saveItemEmbedDataFilter(ajaxData,data);}
var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':ajaxData});xhr.done(function(res){callback(res);});};return init();};ctx.TextItem=function(data){var instance={};function init(){data=data||{};data=$.extend({'type':'text','title':'','refLink':'','description':'','postId':0,'authorId':'','status':'','parentFormat':'list','origin':'post','legal':false},data);return instance;}
instance.save=function(callback){callback=callback||function(){};var ajaxData={'action':'axplus_add_text_item','security':$('input[name=axplus-add-text-item-nonce]').val(),'axplus_title':data.title,'axplus_ref_link':data.refLink,'axplus_description':data.description,'axplus_post_id':data.postId,'axplus_author_id':data.authorId,'axplus_status':data.status,'axplus_parent_format':data.parentFormat,'axplus_origin':data.origin,'axplus_legal':data.legal?'accepted':''};if(typeof ctx.saveItemTextDataFilter==='function'){ajaxData=ctx.saveItemTextDataFilter(ajaxData,data);}
var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':ajaxData});xhr.done(function(res){callback(res);});};return init();};ctx.deleteItem=function($link,callback){callback=callback||function(){};var nonce=$.trim($link.attr('data-axplus-nonce'));var itemId=parseInt($link.attr('data-axplus-item-id'),10);var userId=axplus.currentUserId;if($link.is('.axplus-code-embed-action-delete')){return callback({status:'success'});}
var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_delete_item','security':nonce,'axplus_item_id':itemId,'axplus_user_id':userId}});xhr.done(function(res){callback(res);});};ctx.setItemAsFeatured=function($link,callback){callback=callback||function(){};var nonce=$.trim($link.attr('data-axplus-nonce'));var itemId=parseInt($link.attr('data-axplus-item-id'),10);var userId=axplus.currentUserId;var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_set_item_as_featured','security':nonce,'axplus_item_id':itemId,'axplus_user_id':userId}});xhr.done(function(res){callback(res);});};ctx.updateItems=function(items,callback){callback=callback||function(){};var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_update_items','security':$('input[name=axplus-frontend-submission-nonce]').val(),'axplus_items':items}});xhr.done(function(res){callback(res);});};ctx.deletePost=function($link,callback){callback=callback||function(){};var nonce=$.trim($link.attr('data-axplus-nonce'));var postId=parseInt($link.attr('data-axplus-post-id'),10);var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_delete_post','security':nonce,'axplus_post_id':postId}});xhr.done(function(res){callback(res);});};ctx.loginRequired=function(blocked){$('body').trigger('axplusLoginRequired',[blocked]);};ctx.getMediaHtmlTag=function(data,callback){var xhr=$.ajax({'type':'GET','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_load_media_tpl','axplus_media_id':data.mediaId,'axplus_post_id':data.postId,'axplus_type':data.type}});xhr.done(function(res){callback(res);});};ctx.deleteMedia=function(data,callback){callback=callback||function(){};var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_delete_media','security':$('input[name=axplus-delete-media-nonce]').val(),'axplus_media_id':data.mediaId,'axplus_author_id':data.authorId}});xhr.done(function(res){callback(res);});};ctx.updateMediaMetadata=function(data,callback){callback=callback||function(){};var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_update_media_meta','security':$('input[name=axplus-delete-media-nonce]').val(),'axplus_media_id':data.mediaId,'axplus_parent_format':data.parentFormat}});xhr.done(function(res){callback(res);});};ctx.getEmbedPreview=function(embed_code,callback){var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':{'action':'axplus_load_embed_tpl','axplus_embed_code':embed_code}});xhr.done(function(res){callback(res);});};ctx.displayFeedback=function(type){var feedbackTypeClass='axplus-feedback-'+type;var $feedback=$('.'+feedbackTypeClass);if($feedback.length===0){return;}
ctx.hideFeedback();$feedback.toggleClass('axplus-feedback-off axplus-feedback-on');$('body').addClass('axplus-show-feedback');};ctx.hideFeedback=function(){$('.axplus-feedback-on').toggleClass('axplus-feedback-on axplus-feedback-off');$('body').removeClass('axplus-show-feedback');};ctx.isValidUrl=function(url){return url.match(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/);};})(jQuery,axplus);(function($,ctx){'use strict';var selectors={'feedbackCloseButton':'.axplus-close-button'};$(document).ready(function(){$(selectors.feedbackCloseButton).on('click',function(e){e.preventDefault();axplus.hideFeedback();});});})(jQuery,axplus);(function($,ctx){'use strict';ctx.resetFacebookSDK=function(){$('script#facebook-jssdk').remove();$('#fb-root').remove();if(window.FB){delete window.FB;}};$('body').on('axplusBeforeNewContentReady',function(e,$newContent){if($newContent.find('.fb-video')){ctx.resetFacebookSDK();}});})(jQuery,axplus);(function($,ctx){'use strict';var selectors={'form':'.axplus-media-upload-form','pluploadForm':'.axplus-plupload-upload-ui','loadFormButton':'.axplus-load-form-button'};ctx.mediaUploadForm=function(){if(typeof axplusPlupload==='undefined'){return;}
$(selectors.form).each(function(){var $form=$(this);var force=false;if($form.parents('.axplus-quiz-upload').length>0||$form.parents('.axplus-poll-upload').length>0){force=true;}
axplusPlupload.initUploader($form,force);});$('body').on('axplusContentActive',function(e,$content){$content.find(selectors.form).each(function(){var $uploadForm=$(this);var uploader=axplusPlupload.initUploader($uploadForm);if(uploader){$(this).trigger('axplusUploaderReady',[uploader]);}});});$(selectors.loadFormButton).on('click',function(){var $link=$(this);var $form=$link.parents(selectors.form);var formClass=$link.attr('data-axplus-rel-class');$form.find('.'+formClass).toggle();var $pluploadForm=$form.find(selectors.pluploadForm);$pluploadForm.toggle();if($pluploadForm.is(':visible')){$form.removeClass('axplus-custom-form');}else{$form.addClass('axplus-custom-form');}});};$(document).ready(function(){ctx.mediaUploadForm();});})(jQuery,axplus);(function($,ctx){'use strict';var selectors={'wrapper':'.axplus-time-left','dateWrapper':'> .axplus-date-wrapper','date':'> .axplus-date','timeWrapper':'> .axplus-time-wrapper','time':'> .axplus-time'};ctx.timeagoSelectors=selectors;ctx.dateConstans={'day_ms':1000*60*60*24,'month_ms':1000*60*60*24*30,'year_ms':1000*60*60*24*356};ctx.dateToTimeago=function(){if(!$.fn.timeago){return;}
var origSettings=$.extend(true,{},$.timeago.settings);$.extend($.timeago.settings,{cutoff:ctx.dateConstans.year_ms,allowFuture:true});$.extend($.timeago.settings.strings,{suffixFromNow:''});$(selectors.wrapper).each(function(){var $wrapper=$(this);var $dateWrapper=$wrapper.find(selectors.dateWrapper);var $date=$dateWrapper.find(selectors.date);var $timeWrapper=$wrapper.find(selectors.timeWrapper);var $time=$timeWrapper.find(selectors.time);var timeLeftText=$.timeago($date.text());$time.text(timeLeftText);$dateWrapper.removeClass('.axplus-date-wrapper-unfriendly');$timeWrapper.removeClass('axplus-time-wrapper-unfriendly');});$.timeago.settings=origSettings;};$(document).ready(function(){ctx.dateToTimeago();});})(jQuery,axplus);(function($,ctx){'use strict';var locked=false;var selectors={'wrapper':'.axplus-voting','upvoteLink':'.axplus-voting-upvote','downvoteLink':'.axplus-voting-downvote','guestVoting':'.axplus-guest-voting','voted':'.axplus-user-voted','scoreWrapper':'.axplus-voting-score','scoreValue':'.axplus-voting-score strong'};var classes={'voted':'axplus-user-voted'};ctx.votesSelectors=selectors;ctx.votesClasses=classes;ctx.votes=function(){$('body').on('click',selectors.upvoteLink+', '+selectors.downvoteLink,function(e){e.preventDefault();if(locked){return;}
locked=true;var $link=$(this);var voteType=$link.is(selectors.upvoteLink)?'upvote':'downvote';var $wrapper=$link.parents(selectors.wrapper);var nonce=$.trim($link.attr('data-axplus-nonce'));var itemId=parseInt($link.attr('data-axplus-item-id'),10);var authorId=parseInt($link.attr('data-axplus-author-id'),10);ctx.vote({'itemId':itemId,'authorId':authorId,'type':voteType},nonce,$wrapper);});$(selectors.wrapper).each(function(){var $this=$(this);var id=parseInt($this.attr('data-axplus-item-id'),10);if(id<=0){return;}
var typeCookie='axplus_vote_type_'+id;var scoreCookie='axplus_vote_score_'+id;var type=ctx.readCookie(typeCookie);var score=ctx.readCookie(scoreCookie);if(!type&&!score){return;}
if(score){ctx.updateVoteScore($this.find(selectors.scoreWrapper),score);}
if(type){var $upVoteLink=$this.find(selectors.upvoteLink);var $downVoteLink=$this.find(selectors.downvoteLink);if('upvote'===type){$upVoteLink.addClass(classes.voted);$downVoteLink.removeClass(classes.voted);}else{$downVoteLink.addClass(classes.voted);$upVoteLink.removeClass(classes.voted);}}});};ctx.vote=function(data,nonce,$box){var config=window.axplus_front_config;if($box.find('.axplus-login-required').length>0){return;}
if(!config){ctx.log('Item voting failed. Global config is not defined!');return;}
var $userVoted=$box.find('.axplus-user-voted');var userUpvoted=$userVoted.length>0&&$userVoted.is('.axplus-voting-upvote');var userDownvoted=$userVoted.length>0&&$userVoted.is('.axplus-voting-downvote');var score=parseInt($box.find('.axplus-voting-score').data('axplus-voting-score'),10);var diff='upvote'===data.type?1:-1;$box.find('.axplus-voting-bubble').remove();if(userUpvoted&&'upvote'===data.type||userDownvoted&&'downvote'===data.type){diff*=-1;$box.find('.axplus-user-voted').removeClass('axplus-user-voted');if('upvote'===data.type){$box.find('.axplus-voting-upvote').append('<span class="axplus-voting-bubble axplus-voting-bubble-minus-back">-1</span>');}else{$box.find('.axplus-voting-downvote').append('<span class="axplus-voting-bubble axplus-voting-bubble-plus-back">+1</span>');}}else if(userUpvoted&&'downvote'===data.type||userDownvoted&&'upvote'===data.type){diff*=2;$box.find('.axplus-user-voted').removeClass('axplus-user-voted');$box.find('.axplus-voting-'+data.type).addClass('axplus-user-voted');if('upvote'===data.type){$box.find('.axplus-voting-upvote').append('<span class="axplus-voting-bubble axplus-voting-bubble-plus">+2</span>');}else{$box.find('.axplus-voting-downvote').append('<span class="axplus-voting-bubble axplus-voting-bubble-minus">-2</span>');}}else{if('upvote'===data.type){$box.find('.axplus-voting-upvote').addClass('axplus-user-voted').append('<span class="axplus-voting-bubble axplus-voting-bubble-plus">+1</span>');}else{$box.find('.axplus-voting-downvote').addClass('axplus-user-voted').append('<span class="axplus-voting-bubble axplus-voting-bubble-minus">-1</span>');}}
ctx.updateVoteScore($box.find(selectors.scoreWrapper),score+diff);var xhr=$.ajax({'type':'POST','url':config.ajax_url,'dataType':'json','data':{'action':'axplus_vote_item','security':nonce,'axplus_item_id':data.itemId,'axplus_author_id':data.authorId,'axplus_vote_type':data.type,'axplus_user_voted':ctx.readCookie('axplus_vote_type_'+data.itemId)}});ctx.updateVoteState(data.itemId,data.type,$box);xhr.done(function(res){locked=false;});};ctx.updateVoteState=function(itemId,type,$box){var typeCookie='axplus_vote_type_'+itemId;var scoreCookie='axplus_vote_score_'+itemId;var currentValue=ctx.readCookie(typeCookie);$box.find(selectors.voted).removeClass(classes.voted);if(currentValue===type){ctx.deleteCookie(typeCookie);}else{ctx.createCookie(typeCookie,type,1);$box.find('.axplus-voting-'+type).addClass(classes.voted);}
var score=parseInt($box.find(selectors.scoreWrapper).data('axplus-voting-score'),10);ctx.createCookie(scoreCookie,score,1);};ctx.updateVoteScore=function($wrapper,score){var $container=$wrapper.parents('.axplus-voting');score=parseInt(score,10);var scoreShort=score;var units=['','k','M'];var i;for(i=0;scoreShort>=1000;i++){scoreShort/=1000;}
var scoreHtml=+scoreShort.toFixed(1)+units[i];if(1===Math.abs(score)){scoreHtml=ctx.config.i18n.points_singular_short_tpl.replace('%s',scoreHtml);}else{scoreHtml=ctx.config.i18n.points_plural_short_tpl.replace('%s',scoreHtml);}
$container.removeClass('axplus-voting-0 axplus-voting-negative axplus-voting-positive');if(0<score){$container.addClass('axplus-voting-positive');}else if(0>score){$container.addClass('axplus-voting-negative');}else{$container.addClass('axplus-voting-0');}
$wrapper.data('axplus-voting-score',score);$wrapper.html(scoreHtml);};$(document).ready(function(){ctx.votes();});})(jQuery,axplus);(function($,ctx){'use strict';var selectors={'loginTab':'.axplus-login-tab','loginFormWrapper':'.axplus-login-form','loginForm':'.axplus-login-form #loginform-in-popup','forgotTab':'.axplus-forgot-pass-tab','forgotFormWrapper':'.axplus-forgot-pass-form','forgotForm':'.axplus-forgot-pass-form #lostpasswordform','gdprTab':'.axplus-gdpr-tab','backToLoginTab':'.axplus-back-to-login-tab','loginErrorMessage':'.axplus-login-form .axplus-login-error-message','forgotErrorMessage':'.axplus-forgot-pass-form .axplus-forgot-pass-error-message','forgotSuccessMessage':'.axplus-forgot-pass-form .axplus-forgot-pass-success-message','user':{'loginInput':'#user_login','emailInput':'#user_email','passwordInput':'#user_pass'},'forgotPasswordLink':'#axplus-popup-content .axplus-link-forgot-pass','passwordWrapper':'#axplus-popup-content .login-password','connectWithLabel':'#axplus-popup-content .wp-social-login-connect-with','resetTab':'.axplus-reset-tab'};ctx.loginFormSelectors=selectors;var useReCaptcha;var reCaptchaToken;var urlAction=ctx.getUrlParameter(ctx.config.login_popup_url_var);ctx.loginForm=function(){useReCaptcha=ctx.config.use_login_recaptcha;$.each(selectors.user,function(id,selector){var $input=$(selector);var $label=$input.prev('label');if($label.length>0){$input.attr('placeholder',$label.text());}});$(selectors.passwordWrapper+' input').after($(selectors.forgotPasswordLink));$(selectors.connectWithLabel).wrapInner('<h4>');$('.wp-social-login-provider').on('click',function(e){var $that=$(this);if($('.axplus-wpsl-gdpr-consent input').length>0){if(!$('.axplus-wpsl-gdpr-consent input').is(':checked')){e.stopPropagation();e.stopImmediatePropagation();e.preventDefault();handleLoginGDPR($that);}}});handleLoginAction();handleForgotPassAction();handleResendActivationEmailAction();handleTabsSwitch();if(urlAction==='reset_password'){$(selectors.loginTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.resetTab).removeClass('axplus-tab-inactive').addClass('axplus-tab-active');}
if(urlAction==='forgot_password'){$(selectors.loginTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.forgotTab).removeClass('axplus-tab-inactive').addClass('axplus-tab-active');}
$('body').on('axplusPopupOpened',function(e,action){if(useReCaptcha&&'login'===action){loadReCaptcha();}});};var handleLoginGDPR=function($clickedProvider){$(selectors.loginTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.gdprTab).removeClass('axplus-tab-inactive').addClass('axplus-tab-active');$('.axplus-login-gdpr-accept').on('click',function(){$('.axplus-wpsl-gdpr-consent input').prop('checked',true);$(selectors.gdprTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.loginTab).removeClass('axplus-tab-inactive').addClass('axplus-tab-active');var redirectTo=$clickedProvider.attr('href');window.location.href=redirectTo;});};var handleLoginAction=function(){$(selectors.loginForm).on('submit',function(e){e.preventDefault();var $form=$(this);var $errorMessage=$(selectors.loginErrorMessage);var requestData={'action':'axplus_login'};$.each($form.serializeArray(),function(i,field){requestData[field.name]=field.value;});if(ctx.config.use_login_recaptcha){if(!reCaptchaToken){$errorMessage.html('<p class="axplus-validation-tip">'+ctx.config.i18n.recaptcha_invalid+'</p>');return;}}
$errorMessage.html('<p>'+ctx.config.i18n.user_is_logging+'</p>');var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':requestData});xhr.done(function(res){if('success'===res.status){var redirectTo=res.args.redirect_url;if(!redirectTo){redirectTo=window.location.href;}
if(redirectTo.indexOf('?')>0){redirectTo+='&'+ctx.config.login_success_var+'=true';}else{redirectTo+='?'+ctx.config.login_success_var+'=true';}
window.location.href=redirectTo;}else{if(res.message){$errorMessage.html('<p class="axplus-validation-tip">'+res.message+'</p>');}
if(useReCaptcha){grecaptcha.reset();}}});xhr.fail(function(){var reloadUrl=window.location.href;if(reloadUrl.indexOf('?')>0){reloadUrl+='&'+ctx.config.login_success_var+'=false';}else{reloadUrl+='?'+ctx.config.login_success_var+'=false';}
window.location.href=reloadUrl;});});};var handleForgotPassAction=function(){$(selectors.forgotForm).on('submit',function(e){e.preventDefault();var $form=$(this);var $errorMessage=$(selectors.forgotErrorMessage);var $successMessage=$(selectors.forgotSuccessMessage);var requestData={'action':'axplus_forgot_pass'};$.each($form.serializeArray(),function(i,field){requestData[field.name]=field.value;});$errorMessage.text('');$successMessage.text('');var xhr=$.ajax({'type':'POST','url':ctx.config.ajax_url,'dataType':'json','data':requestData});xhr.done(function(res){if('success'===res.status){if(res.message){$successMessage.html('<p class="axplus-validation-tip">'+res.message+'</p>');$('#axplus-popup-content #password-reset-info').hide();}
$('#axplus-popup-content input#forgot-user_login').prop('disabled',true).hide();$('#axplus-popup-content #forgot-wp-submit').prop('disabled',true);$('#axplus-popup-content .forgot-submit').hide();}else{if(res.message){$errorMessage.html('<p class="axplus-validation-tip">'+res.message+'</p>');}}});});};var handleResendActivationEmailAction=function(){$(selectors.loginForm).on('click','a',function(e){if($(this).attr('href').indexOf('bp-resend-activation')!==-1){e.preventDefault();$.get($(this).attr('href'),function(data){var message=$(data).find('#login_error').text();$(selectors.loginErrorMessage).html('<p class="axplus-validation-tip">'+message+'</p>');});}});};var handleTabsSwitch=function(){$(selectors.loginForm).on('click','a',function(e){if($(this).attr('href').indexOf('forgot_password')!==-1){e.preventDefault();$(selectors.loginTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.forgotTab).removeClass('axplus-tab-inactive').addClass('axplus-tab-active');}});$(selectors.forgotPasswordLink).on('click',function(e){e.preventDefault();$(selectors.loginTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.forgotTab).removeClass('axplus-tab-inactive').addClass('axplus-tab-active');});$(selectors.backToLoginTab).on('click',function(e){e.preventDefault();$(selectors.resetTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.forgotTab).removeClass('axplus-tab-active').addClass('axplus-tab-inactive');$(selectors.loginTab).removeClass('axplus-tab-inactive').addClass('axplus-tab-active');});};var loadReCaptcha=function(){var apiUrl=ctx.config.recaptcha_api_url;var ver=ctx.config.recaptcha_version;var siteKey=ctx.config.recaptcha_site_key;if(!siteKey||!apiUrl){return;}
var renderLoginReCaptcha=function(){try{if('30'===ver){grecaptcha.execute(siteKey,{action:'login'}).then(function(token){$('#axplus-login-recaptcha').html('<input type="hidden" name="g-recaptcha-response" value="'+token+'">');reCaptchaEnteredCorrectly(token);});}else{grecaptcha.render('axplus-login-recaptcha',{'sitekey':siteKey,'callback':reCaptchaEnteredCorrectly});}}catch(error){}};if(typeof grecaptcha!=='undefined'){renderLoginReCaptcha();}else{window.axplusReCaptchaOnloadCallback=function(){renderLoginReCaptcha();};if('30'===ver){$('head').append('<script src="'+apiUrl+'?onload=axplusReCaptchaOnloadCallback&render='+siteKey+'" async defer>');}else{$('head').append('<script src="'+apiUrl+'?onload=axplusReCaptchaOnloadCallback&render=explicit" async defer>');}}};var reCaptchaEnteredCorrectly=function(response){reCaptchaToken=response;};$(document).ready(function(){ctx.loginForm();});})(jQuery,axplus);(function($,ctx){'use strict';ctx.openPopup=function($content,args,action){if(!$.fn.magnificPopup){return;}
args=args||{};if(!args.tClose){args.tClose=ctx.config.i18n.popup_close_label;}
args.items={src:$content,type:'inline'};args.callbacks={'open':function(){$('body').trigger('axplusPopupOpened',[action]);}};$.magnificPopup.open(args);if(typeof args.onClose==='function'){$.magnificPopup.instance.close=args.onClose;}};ctx.closePopup=function(){if(!$.fn.magnificPopup){return;}
$.magnificPopup.close();};})(jQuery,axplus);(function($,ctx){'use strict';var selectors={'popupContent':'#axplus-popup-content','usernameField':'#user_login'};ctx.openLoginPopup=function(onClose){var $content=$(selectors.popupContent);var args={};if(typeof onClose==='function'){args.onClose=onClose;}
ctx.openPopup($content,args,'login');setTimeout(function(){$content.find(selectors.usernameField).focus();},100);};ctx.redirectToLoginPage=function(){window.location.href=ctx.config.login_url;};$(document).ready(function(){$('body').on('axplusLoginRequired',function(e,blocked){var onClose=false;if(blocked){onClose=function(){window.location.href=ctx.config.site_url;};}
if(ctx.config.enable_login_popup){ctx.openLoginPopup(onClose);}else if(typeof axplusLoginRequiredHandler==='function'){axplusLoginRequiredHandler(onClose);}else{ctx.redirectToLoginPage();}});});})(jQuery,axplus);(function($,ctx){'use strict';$(document).ready(function(){var $body=$('body');$body.on('click','a',function(e){var $link=$(e.currentTarget);var url=$link.attr('href');if(!url||url.length===0){return;}
if(-1===url.indexOf(ctx.config.login_popup_url_var)){return;}
if($link.hasClass('axplus-login-required')){return;}
e.stopImmediatePropagation();e.preventDefault();ctx.loginRequired();return false;});$body.on('click','.axplus-login-required',function(e){e.preventDefault();ctx.loginRequired();return false;});if(ctx.getUrlParameter(ctx.config.login_popup_url_var)&&!ctx.config.logged_in){ctx.loginRequired();}
if(ctx.forceLoginPopup){ctx.loginRequired(ctx.forceLoginPopup.blocked);}});})(jQuery,axplus);(function($,ctx){'use strict';var selectors={'actions':'.axplus-actions','actionsToggle':'.axplus-actions-toggle','actionsExpanded':'.axplus-actions-expanded'};var classes={'expanded':'axplus-actions-expanded'};ctx.actionsMenuSelectors=selectors;ctx.actionsMenuClasses=classes;ctx.actionsMenu=function(){var $body=$('body');$('body').on('click',selectors.actionsToggle,function(e){e.preventDefault();var $toggle=$(e.target);$toggle.parents(selectors.actions).toggleClass(classes.expanded);});$body.on('click touchstart',function(e){var $activeMenu=$(e.target).parents(selectors.actions);$(selectors.actionsExpanded).not($activeMenu).removeClass(classes.expanded);});};$(document).ready(function(){ctx.actionsMenu();});})(jQuery,axplus);(function($,ctx){'use strict';var selectors={'wrapper':'.axplus-item-share','toggle':'.axplus-item-share-toggle','expandedState':'.axplus-item-share-expanded'};var classes={'expanded':'axplus-item-share-expanded'};ctx.itemShareSelectors=selectors;ctx.itemShareClasses=classes;ctx.itemShare=function(){$(selectors.toggle).on('click  touchstart',function(e){e.preventDefault();$(this).parents(selectors.wrapper).addClass(classes.expanded);});$('body').on('click touchstart',function(e){var $activeElem=$(e.target).parents(selectors.expandedState);$(selectors.expandedState).not($activeElem).removeClass(classes.expanded);});};$(document).ready(function(){if(ctx.isTouchDevice()){$('body').removeClass('axplus-hoverable');}
ctx.itemShare();});})(jQuery,axplus);(function($,ctx){'use strict';ctx.deleteItemModule={};var c=ctx.deleteItemModule;var selectors={'deleteLink':'.axplus-delete-item'};var i18n={'confirm':'Are you sure?'};c.selectors=selectors;c.i18n=i18n;c.init=function(){c.attachEventHandlers();};c.attachEventHandlers=function(){$(selectors.deleteLink).on('click',function(e){e.preventDefault();if(!confirm(i18n.confirm)){return;}
ctx.deleteItem($(this),function(res){if(res.status==='success'){location.href=res.args.redirect_url;}else{alert(res.message);}});});};$(document).ready(function(){c.init();});})(jQuery,axplus);(function($,ctx){'use strict';ctx.setItemAsFeaturedModule={};var c=ctx.setItemAsFeaturedModule;var selectors={'link':'.axplus-set-item-as-featured'};c.selectors=selectors;c.init=function(){c.attachEventHandlers();};c.attachEventHandlers=function(){$(selectors.link).on('click',function(e){e.preventDefault();ctx.setItemAsFeatured($(this),function(res){if(res.status==='success'){location.reload();}else{alert(res.message);}});});};$(document).ready(function(){c.init();});})(jQuery,axplus);(function($,ctx){'use strict';ctx.froalaSimple={};var c=ctx.froalaSimple;var selectors={'froalaEditor':'.froala-editor-simple'};c.selectors=selectors;c.init=function(){c.attachEventHandlers();c.applyFroala();};c.attachEventHandlers=function(){$('body').on('axplusNewCardAdded',function($card){c.applyFroala();});};c.renderFroala=function(){var $textarea=$(this);var config={'key':'CMFIZJNKLDXIREJI==','language':c.getFroalaEditorConfig('language'),'heightMin':200,'toolbarSticky':true,'toolbarStickyOffset':$('body').hasClass('admin-bar')?32:0,'toolbarButtons':['bold','italic','insertLink','|','undo','redo'],toolbarButtonsMD:['bold','italic','insertLink','|','undo','redo'],toolbarButtonsSM:['bold','italic','insertLink','|','undo','redo'],toolbarButtonsXS:['bold','italic','insertLink','|','undo','redo'],charCounterMax:c.getFroalaEditorMaxCharacters($textarea)};if(typeof c.froalaEditorConfig==='function'){config=c.froalaEditorConfig(config);}
if(axplus.inDebugMode()){axplus.log(config);}
$textarea.froalaEditor(config);};c.getFroalaEditorConfig=function(id){var config=c.config.froala;if(typeof config[id]!=='undefined'){return config[id];}
return null;};c.getFroalaEditorMaxCharacters=function($editor){var maxCharacters=parseInt($editor.attr('maxlength'),10);return maxCharacters>0?maxCharacters:-1;};c.applyFroala=function(){if(!$.fn.froalaEditor){return;}
$(selectors.froalaEditor).each(c.renderFroala);};$(document).ready(function(){if(axplus.frontendSubmission){c.config=axplus.frontendSubmission.config;}
if(axplus.post){c.config=axplus.post.config;}
if(typeof c.config==='undefined'){return;}
c.init();});})(jQuery,axplus);(function($,ctx){'use strict';ctx.singleItemComments={};var c=ctx.singleItemComments;var seeMoreHtml='<a class="axplus-see-all-replies">'+ctx.config.i18n.see_all_replies+'</a>';var selectors={'section':'.axplus-item-comments','topLevelComment':'.axplus-item-comments .depth-1','moreCommentsLink':'.axplus-item-comments-more-link','allRepliesLink':'.axplus-see-all-replies','list':'.comment-list','commentForm':'.axplus-item-comments .comment-form','textarea':'.axplus-item-comments .comment-form textarea','submitButton':'.submit','cancelReply':'#cancel-comment-reply-link','respondSection':'#respond','replyLogin':'.comment-reply-login','respondLogin':'.axplus-comment-login','authorFields':'.axplus-item-comment-autor',};var $spinner=$('<div class="axplus-upload-icon"></div>');c.selectors=selectors;c.init=function(){$(selectors.submitButton,selectors.commentForm).attr('disabled',true);c.renderSeeMore();c.attachEventHandlers();};c.renderSeeMore=function(){$(selectors.topLevelComment).each(function(index){if($('.children li',this).length>1&&$(this).attr('appendedSeeMoreLink')!=='true'){$(this).append(seeMoreHtml);$(this).attr('appendedSeeMoreLink','true');}});$(selectors.allRepliesLink).on('click',function(e){var $parent=$(this).closest(selectors.topLevelComment);$('.children',$parent).addClass('children-visible');$(this).remove();});};c.overrideDefaultHandler=function(){if(typeof addComment==='undefined'){return;}
var origMoveForm=addComment.moveForm;addComment.moveForm=function(commId,parentId,respondId,postId){var $axplusItem=$('.axplus-item.post-'+postId);if($axplusItem.length<1){origMoveForm(commId,parentId,respondId,postId);return false;}
var div,element,style,cssHidden,t=this,comm=t.I(commId),respond=$axplusItem.find('.comment-respond').get(0),cancel=respond.querySelector('#cancel-comment-reply-link'),parent=respond.querySelector('#comment_parent'),post=respond.querySelector('#comment_post_ID'),commentForm=respond.getElementsByTagName('form')[0];if(!comm||!respond||!cancel||!parent||!commentForm){return;}
t.respondId=respondId;postId=postId||false;if(!t.I('wp-temp-form-div')){div=document.createElement('div');div.id='wp-temp-form-div';div.style.display='none';respond.parentNode.insertBefore(div,respond);}
comm.parentNode.insertBefore(respond,comm.nextSibling);if(post&&postId){post.value=postId;}
parent.value=parentId;cancel.style.display='';cancel.onclick=function(){var t=addComment,temp=t.I('wp-temp-form-div');if(!temp){return;}
parent.value='0';temp.parentNode.insertBefore(respond,temp);temp.parentNode.removeChild(temp);this.style.display='none';this.onclick=null;$(respond).find('.comment-form').trigger('axplusFormInactive');return false;};try{for(var i=0;i<commentForm.elements.length;i++){element=commentForm.elements[i];cssHidden=false;if('getComputedStyle'in window){style=window.getComputedStyle(element);}else if(document.documentElement.currentStyle){style=element.currentStyle;}
if((element.offsetWidth<=0&&element.offsetHeight<=0)||style.visibility==='hidden'){cssHidden=true;}
if('hidden'===element.type||element.disabled||cssHidden){continue;}
element.focus();break;}}catch(er){}
return false;};addComment.I=function(id){return document.getElementById(id);};};c.attachEventHandlers=function(){var loadMoreComments=function($section){let $commentList=$section.find(selectors.list);let $nextCommentsLink=$section.find('.ax-comment-pagination .next');if($nextCommentsLink.length===0){return;}
$spinner.appendTo($commentList);$.get($nextCommentsLink.attr('href'),function(data){$spinner.remove();let $page=$(data);let $newComments=$page.find('#comments-wp .comment-list .comment');$section.find('.comment-list').append($newComments);let $newPagination=$page.find('#comments-wp .ax-comment-pagination');$section.find('.ax-comment-pagination').html($newPagination);if($newPagination.find('.next').length===0){$section.find(selectors.moreCommentsLink).hide();}
addComment.init();});};$(selectors.moreCommentsLink).on('click',function(e){e.preventDefault();var $section=$(this).closest(selectors.section);loadMoreComments($section);});$(selectors.commentForm).on('submit',function(e){e.preventDefault();e.stopImmediatePropagation();var $form=$(this);var url=$form.attr('action');var commentParent='0';var $textarea=$('textarea',$form);var $section=$form.closest(selectors.section);var $list=$(selectors.list,$section);var $respondSection=$form.closest(selectors.respondSection);var $cancelButton=$(selectors.cancelReply,$respondSection);var $submitButton=$(selectors.submitButton,$form);var requestData={};$.each($form.serializeArray(),function(i,field){requestData[field.name]=field.value;});requestData['is_ajax_item_comment_form']=true;commentParent=requestData['comment_parent'];if(commentParent==='0'){$spinner.prependTo($list);}else{var $commentParent=$('#comment-'+commentParent);var $commentParentChildren=$('#comment-'+commentParent+'> .children');if(!$commentParentChildren.length){$commentParent.append('<ul class="children"></ul>');$commentParentChildren=$('#comment-'+commentParent+'> .children');}
$spinner.prependTo($commentParentChildren);}
var xhr=$.ajax({'type':'POST','url':url,'data':requestData});xhr.done(function(res){$textarea.val('');$cancelButton.trigger('click');$submitButton.attr('disabled',true);if(res.indexOf('<body id="error-page">')!=-1){res=$(res).filter('p')[1];}
$spinner.replaceWith(res);if(commentParent!=='0'){var $parent=$commentParentChildren.closest(selectors.topLevelComment);$('.children',$parent).addClass('children-visible');}
$form.trigger('axplusFormInactive');});xhr.fail(function(jqXHR,textStatus){if(jqXHR.status===409){alert(ctx.config.i18n.duplicate_comment);}else{alert(ctx.config.i18n.comment_fail);}
$spinner.remove();});});var validateForm=function($form){var $submitButton=$(selectors.submitButton,$form);var $author=$(selectors.authorFields,$form);var $input=$('textarea',$form);var disable=false;if($author.length>0){var $authorName=$('#author',$author);var $authorMail=$('#email',$author);if($authorName.val()===''||$authorMail.val()===''){disable=true;}}
if($input.val()===''){disable=true;}
$submitButton.attr('disabled',disable);};$(selectors.textarea).keyup(function(){var $parent=$(this).closest(selectors.commentForm);var $author=$(selectors.authorFields,$parent);while($(this).outerHeight()<this.scrollHeight+parseFloat($(this).css('borderTopWidth'))+parseFloat($(this).css('borderBottomWidth'))){$(this).height($(this).height()+1);}
if($(this).val()){$author.show();$parent.removeClass('axplus-comment-form-collapsed').addClass('axplus-comment-form-extended');}else{$author.hide();$parent.removeClass('axplus-comment-form-extended').addClass('axplus-comment-form-collapsed');}
validateForm($parent);});$(selectors.authorFields).keyup(function(){var $parent=$(this).closest(selectors.commentForm);validateForm($parent);});$(selectors.replyLogin).click(function(e){e.preventDefault();ctx.loginRequired();});$(selectors.respondLogin).click(function(e){e.preventDefault();ctx.loginRequired();});};$(document).ready(function(){if(ctx.config.item_comments_js_enabled){c.init();}
c.overrideDefaultHandler();});})(jQuery,axplus);(function($,ctx){'use strict';ctx.deletePostModule={};var c=ctx.deletePostModule;var selectors={'deleteLink':'.axplus-delete-post'};c.selectors=selectors;c.init=function(){c.attachEventHandlers();};c.attachEventHandlers=function(){$(selectors.deleteLink).on('click',function(e){e.preventDefault();var $link=$(this);if(!confirm(ctx.config.i18n.are_you_sure)){return;}
var $item=$link.parents('.ax-collection-item');if($item.length===0){var $item=$link.parents('article.post');}
$item.addClass('axplus-post-removing');ctx.deletePost($link,function(res){if(res.status==='success'){var redirectUrl=$link.attr('href');if(redirectUrl.length>0){var queryVarDelimiter=redirectUrl.indexOf('?')===-1?'?':'&';window.location.href=redirectUrl+queryVarDelimiter+ctx.config.delete_status_var+'=success';}else{$item.addClass('axplus-post-removed');$item.slideToggle(750);setTimeout(function(){axplus.notifications.add(res.message);},1500);}}else{ctx.notifications.add(res.message);}});});};$(document).ready(function(){c.init();});})(jQuery,axplus);(function($,ctx){'use strict';ctx.passwordReset={};var c=ctx.passwordReset;var selectors={'resetPasswordForm':'#axplus_reset_password_form','newPassword':'#axplus_reset_password_form #new_password','repeatPassword':'#axplus_reset_password_form #repeat_password','cookieName':'#axplus_reset_password_form .rp-cookie-name','cookieValue':'#axplus_reset_password_form .rp-cookie_value','resetErrorMessage':'#axplus_reset_password_form  .axplus-reset-pass-error-message','resetSuccessMessage':'#axplus_reset_password_form  .axplus-reset-pass-success-message',};c.selectors=selectors;c.init=function(){c.attachEventHandlers();};c.attachEventHandlers=function(){c.matchPasswords();c.handleForm();};c.matchPasswords=function(){var $newPassword=$(selectors.newPassword),$repeatPassword=$(selectors.repeatPassword);$repeatPassword.on('change',function(e){if($newPassword.val()!==$repeatPassword.val()){$repeatPassword.get(0).setCustomValidity(ctx.config.i18n.passwords_dont_match);}else{$repeatPassword.get(0).setCustomValidity('');}});}
c.handleForm=function(){var $form=$(selectors.resetPasswordForm),$cookieName=$(selectors.cookieName),$cookieValue=$(selectors.cookieValue),$newPassword=$(selectors.newPassword),$errorMessage=$(selectors.resetErrorMessage),$successMessage=$(selectors.resetSuccessMessage);$form.on('submit',function(e){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();$errorMessage.text('');$successMessage.text('');ctx.createCookie($cookieName.val(),$cookieValue.val(),24);var xhr=$.ajax({'type':'POST','url':$form.attr('action')+'?action=resetpass','data':$form.serialize(),});xhr.done(function(res){if($('.reset-pass',res).length){$successMessage.html('<p class="axplus-validation-tip">'+ctx.config.i18n.password_set+'</p>');}
if($('#login_error',res).length){$errorMessage.html('<p class="axplus-validation-tip">'+ctx.config.i18n.link_invalid+'</p>');}});return false;});};$(document).ready(function(){if($(selectors.resetPasswordForm).length){c.init();}});})(jQuery,axplus);(function($,ctx){'use strict';var useReCaptcha;var reCaptchaToken;ctx.registerForm=function(){useReCaptcha=ctx.config.use_login_recaptcha;if(useReCaptcha&&$('#buddypress #register-page').length>0){loadReCaptcha();$('#signup_submit').attr('disabled',true);}};var loadReCaptcha=function(){var apiUrl=ctx.config.recaptcha_api_url;var ver=ctx.config.recaptcha_version;var siteKey=ctx.config.recaptcha_site_key;if(!siteKey||!apiUrl){return;}
var renderLoginReCaptcha=function(){if('30'===ver){grecaptcha.execute(siteKey,{action:'login'}).then(function(token){$('#axplus-register-recaptcha').html('<input type="hidden" name="g-recaptcha-response" value="'+token+'">');reCaptchaEnteredCorrectly(token);});}else{grecaptcha.render('axplus-register-recaptcha',{'sitekey':siteKey,'callback':reCaptchaEnteredCorrectly});}};if(typeof grecaptcha!=='undefined'){renderLoginReCaptcha();}else{window.axplusReCaptchaOnloadCallback=function(){renderLoginReCaptcha();};if('30'===ver){$('head').append('<script src="'+apiUrl+'?onload=axplusReCaptchaOnloadCallback&render='+siteKey+'" async defer>');}else{$('head').append('<script src="'+apiUrl+'?onload=axplusReCaptchaOnloadCallback&render=explicit" async defer>');}}};var reCaptchaEnteredCorrectly=function(response){reCaptchaToken=response;$('#signup_submit').attr('disabled',false);};$(document).ready(function(){ctx.registerForm();});})(jQuery,axplus);(function($,ctx){'use strict';var api={};var timeout=5000;var $notifications=false;var $notificationTpl=false;var selectors={'notifications':'.axplus-notifications','notification':'.axplus-notification','notificationText':'.axplus-notification-text','notificationClose':'.axplus-notification-close'};var classes={'on':'axplus-notifications-on','off':'axplus-notifications-off',};api.add=function(html){var $notification=$notificationTpl.clone(true);$notification.find(selectors.notificationText).html(html);$notification.on('click',selectors.notificationClose,function(){api.remove($notification);});setTimeout(function(){api.remove($notification);},timeout);$notifications.prepend($notification);$notifications.removeClass(classes.off).addClass(classes.on);};api.remove=function($notification){$notification.addClass('axplus-notification-removed');setTimeout(function(){$notification.remove();if(api.isQueueEmpty()){$notifications.removeClass(classes.on).addClass(classes.off);}},5000);};api.isQueueEmpty=function(){return $notifications.find(selectors.notification).length===0;};var initNotifications=function(){$notifications=$(selectors.notifications);if($notifications.length===0){return;}
$notificationTpl=$notifications.find(selectors.notification).detach();ctx.notifications=api;};$(document).ready(function(){initNotifications();});})(jQuery,axplus);(function($,ctx){'use strict';var storeCurrentURL=function(){var url=window.location.href;ctx.createCookie('axplus_social_login_redirect_url',url,1);};$(document).ready(function(){var $gdpr=$('.axplus-gdpr-consent-form');if($gdpr.length>0){$gdpr.each(function(){var $form=$(this);var $links=$form.parent().find('.axplus-social-login-links');var $link;var toggleVisiblity=function(){$form.toggleClass('axplus-gdpr-consent-form-hidden axplus-gdpr-consent-form-visible');$links.toggleClass('axplus-social-login-links-visible axplus-social-login-links-hidden');};$links.on('click','a.axplus-social-login',function(e){e.preventDefault();$link=$(this);toggleVisiblity();});$form.on('click','.axplus-slog-gdpr-accept',function(e){e.preventDefault();storeCurrentURL();window.location.href=$link.attr('href');});$form.on('click','.axplus-slog-gdpr-cancel',function(e){e.preventDefault();toggleVisiblity();});});}else{$('.axplus-social-login-links').on('click','a.axplus-social-login',function(e){storeCurrentURL();});}});})(jQuery,axplus);
var wpa_field_name,wpa_unique_id,wpa_add_test,wpa_hidden_field;jQuery(document).ready(function(){wpa_field_name=wpa_field_info.wpa_field_name;wpa_unique_id=wpa_field_info.wpa_field_value;wpa_add_test=wpa_field_info.wpa_add_test;wpa_hidden_field="<div id='altEmail_container' class='altEmail_container'><label for='alt_s'>Alternative:</label><input type='text' id='alt_s' name='alt_s' ></div><span class='wpa_hidden_field' style='display:none;height:0;width:0;'><label>WPA <input type='text' name='"+wpa_field_name+"' value='"+wpa_unique_id+"' /></label></span>";wpa_add_honeypot_field();if(typeof wpae_add_honeypot_field=='function'){wpae_add_honeypot_field();}
if(wpa_add_test=='yes'){wpa_add_test_block();}});function wpa_act_as_spam(){actiontype=jQuery('span.wpa-button').data('actiontype');if(actiontype=='remove'){wpa_remove_honeypot_field();jQuery('span.wpa-button').data('actiontype','add');jQuery('span.wpa-button').html('Acting as Spam Bot');}else{wpa_add_honeypot_field();jQuery('span.wpa-button').data('actiontype','remove');jQuery('span.wpa-button').html('Act as Spam Bot');}}
function wpa_add_honeypot_field(){jQuery('.bbp-topic-form form').append(wpa_hidden_field);jQuery('.bbp-reply-form form').append(wpa_hidden_field);var commentFormSelectors=['form#commentform','form.ast-commentform','form#fl-comment-form','form.comment-form','.review-form form','form#edd-reviews-form'];jQuery(commentFormSelectors.join(', ')).append(wpa_hidden_field);jQuery('form.wpcf7-form, .wpcf7 form').append(wpa_hidden_field);jQuery('form.wpforms-form').append(wpa_hidden_field);jQuery('.gform_wrapper form').append(wpa_hidden_field);jQuery('.frm_forms form').append(wpa_hidden_field);jQuery('.caldera-grid form').append(wpa_hidden_field);jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field);jQuery('form.cred-user-form').append(wpa_hidden_field);jQuery('form.cred-form').append(wpa_hidden_field);jQuery('form.et_pb_contact_form').append(wpa_hidden_field);jQuery('form.fb_form').append(wpa_hidden_field);jQuery('form.elementor-form').append(wpa_hidden_field);jQuery('form.form-contribution').append(wpa_hidden_field);jQuery('form.cart').append(wpa_hidden_field);jQuery('form#learn-press-checkout-form').append(wpa_hidden_field);jQuery('form.frm-fluent-form').append(wpa_hidden_field);jQuery('.ff_conv_app').append(wpa_hidden_field);if(typeof fluent_forms_global_var_1!=='undefined'){fluent_forms_global_var_1.extra_inputs[wpa_field_name]=wpa_unique_id;fluent_forms_global_var_1.extra_inputs['alt_s']='';}
jQuery(wpa_hidden_field).insertAfter('input.wpa_initiator');jQuery('form.spectra-pro-login-form').append(wpa_hidden_field);jQuery('form#loginform').append(wpa_hidden_field);jQuery('form#edd_login_form').append(wpa_hidden_field);jQuery('form.uwp-login-form').append(wpa_hidden_field);}
function wpa_add_test_block(){checkingTest='<div class="wpa-test-msg"><strong>WP Armour ( Only visible to site administrators. Not visible to other users. )</strong><br />This form has a honeypot trap enabled. If you want to act as spam bot for testing purposes, please click the button below.<br/><span class="wpa-button" onclick="wpa_act_as_spam()" data-actiontype="remove">Act as Spam Bot</span></div>';jQuery('.wpa-test-msg').remove();jQuery('span.wpa_hidden_field').after(checkingTest);}
function wpa_remove_honeypot_field(){jQuery('.wpa_hidden_field').remove();jQuery('#altEmail_container, .altEmail_container').remove();if(typeof fluent_forms_global_var_1!=='undefined'){delete fluent_forms_global_var_1.extra_inputs[wpa_field_name];delete fluent_forms_global_var_1.extra_inputs['alt_s'];}};
!function(t){t.fn.tipTip=function(e){var o=t.extend({activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},e);if(t("#tiptip_holder").length<=0){var n=t('<div id="tiptip_holder" style="max-width:'+o.maxWidth+';"></div>'),i=t('<div id="tiptip_content"></div>'),r=t('<div id="tiptip_arrow"></div>');t("body").append(n.html(i).prepend(r.html('<div id="tiptip_arrow_inner"></div>')))}else n=t("#tiptip_holder"),i=t("#tiptip_content"),r=t("#tiptip_arrow");return this.each(function(){var e=t(this);if(o.content)var a=o.content;else a=e.attr(o.attribute);if(""!=a){o.content||e.removeAttr(o.attribute);var f=!1;function d(){var d="function"==typeof o.content?o.content():a;if(d){o.enter.call(this),i.html(d),n.hide().css("margin","0"),n.removeAttr("class"),r.removeAttr("style");var u=parseInt(e.offset().top),p=parseInt(e.offset().left),s=parseInt(e.outerWidth()),l=parseInt(e.outerHeight()),c=n.outerWidth(),h=n.outerHeight(),_=Math.round((s-c)/2),m=Math.round((l-h)/2),v=Math.round(p+_),g=Math.round(u+l+o.edgeOffset),b="",M="",w=Math.round(c-12)/2;"bottom"==o.defaultPosition?b="_bottom":"top"==o.defaultPosition?b="_top":"left"==o.defaultPosition?b="_left":"right"==o.defaultPosition&&(b="_right");var O=_+p<parseInt(t(window).scrollLeft()),x=c+p>parseInt(t(window).width());O&&_<0||"_right"==b&&!x||"_left"==b&&p<c+o.edgeOffset+5?(b="_right",M=Math.round(h-13)/2,w=-12,v=Math.round(p+s+o.edgeOffset),g=Math.round(u+m)):(x&&_<0||"_left"==b&&!O)&&(b="_left",M=Math.round(h-13)/2,w=Math.round(c),v=Math.round(p-(c+o.edgeOffset+5)),g=Math.round(u+m));var I=u+l+o.edgeOffset+h+8>parseInt(t(window).height()+t(window).scrollTop()),A=u+l-(o.edgeOffset+h+8)<0;I||"_bottom"==b&&I||"_top"==b&&!A?("_top"==b||"_bottom"==b?b="_top":b+="_top",M=h,g=Math.round(u-(h+5+o.edgeOffset))):(A|("_top"==b&&A)||"_bottom"==b&&!I)&&("_top"==b||"_bottom"==b?b="_bottom":b+="_bottom",M=-12,g=Math.round(u+l+o.edgeOffset)),"_right_top"==b||"_left_top"==b?g+=5:"_right_bottom"!=b&&"_left_bottom"!=b||(g-=5),"_left_top"!=b&&"_left_bottom"!=b||(v+=5),r.css({"margin-left":w+"px","margin-top":M+"px"}),n.css({"margin-left":v+"px","margin-top":g+"px"}).attr("class","tip"+b),f&&clearTimeout(f),f=setTimeout(function(){n.stop(!0,!0).fadeIn(o.fadeIn)},o.delay)}}function u(){o.exit.call(this),f&&clearTimeout(f),n.fadeOut(o.fadeOut)}"hover"==o.activation?(e.on("mouseenter",function(){d()}).on("mouseleave",function(){o.keepAlive&&n.is(":hover")||u()}),o.keepAlive&&n.on("mouseenter",function(){}).on("mouseleave",function(){u()})):"focus"==o.activation?e.on("focus",function(){d()}).on("blur",function(){u()}):"click"==o.activation&&(e.on("click",function(){return d(),!1}).on("mouseenter",function(){}).on("mouseleave",function(){o.keepAlive||u()}),o.keepAlive&&n.on("mouseenter",function(){}).on("mouseleave",function(){u()}))}})}}(jQuery);
var axtheme_shares={};!function(e,t){"use strict";var o;t.initFacebook=function(){a()};var a=function(){e("body").on("click",".axtheme-share-facebook",function(a){if(a.preventDefault(),0===t.config.facebook_sdk.app_id.length)return alert(t.config.i18n.fb_app_id_not_set),!1;t.log("Share on Facebook action triggered"),o=e(this),t.log("Action trigger:"),t.log(o),n()})},n=function(){void 0===window.FB?(t.log("Facebook JS SDK not loaded"),t.log("Loading SDK..."),window.fbAsyncInit=function(){t.log("Facebook JS SDK loaded"),r(),i()},e("body").prepend('<script async defer src="'+t.config.facebook_sdk.url+'"><\/script>')):(t.log("Facebook JS SDK already loaded"),FB.IsInitialized||(t.log("Facebook JS SDK not initialized"),r()),i())},r=function(){FB.init({appId:t.config.facebook_sdk.app_id,autoLogAppEvents:!0,xfbml:!0,version:t.config.facebook_sdk.version}),t.log("FB SDK initialized")},i=function(){t.log("Checking Facebook login status..."),FB.getLoginStatus(function(e){"connected"===e.status?(t.log("User already logged in"),c()):(t.log("User not logged in. Logging in..."),FB.login(function(e){"connected"===e.status&&(t.log("User logged in successfully"),c())}))})},c=function(){var e=o.attr("data-share-url"),a=o.attr("data-share-text"),n=o.attr("data-on-share-callback");t.log("Share data:"),t.log("URL: "+e),t.log("Text: "+a),t.log("OnShare function: "+n),n=n?window[n]:function(){t.log("onShare callback not implemented")},FB.ui({display:"dialog",method:"share",href:e,quote:a},function(e){t.log("Facebook share response:"),t.log(e),e&&e.error_code?n(o,!1):n(o,!0)})}}(jQuery,axtheme_shares),function(e,t){"use strict";var o;t.initTwitter=function(){a()};var a=function(){e("body").on("click",".axtheme-share-twitter",function(a){return a.preventDefault(),t.log("Share on Twitter action triggered"),o=e(this),t.log("Action trigger:"),t.log(o),n(o.attr("href")),!1})},n=function(t){var o=(e(window).width()-600)/2,a=(e(window).height()-400)/2;window.open(t,"twitter","status=1,width=600,height=400,top="+a+",left="+o)}}(jQuery,axtheme_shares),function(e,t){"use strict";var o;t.initreddit=function(){a()};var a=function(){e("body").on("click",".axtheme-share-reddit",function(a){return a.preventDefault(),t.log("Share on reddit action triggered"),o=e(this),t.log("Action trigger:"),t.log(o),n(o.attr("href")),!1})},n=function(t){var o=(e(window).width()-600)/2,a=(e(window).height()-400)/2;window.open(t,"reddit","status=1,width=600,height=400,top="+a+",left="+o)}}(jQuery,axtheme_shares),function(e,t){"use strict";t.initMicroshares=function(o){var a=t.config.microshares.tpl;0!==a.length?(o||(o=e("#content")),t.log("Init Microshares for scope:"),t.log(o),t.microShareIncludeSelectors=[".entry-featured-media-main img.wp-post-image",".entry-content img.aligncenter",".entry-content .aligncenter img",".entry-content .alignwide img",".entry-content .alignfull img",".entry-content .ax-enable-share-links"],t.microShareExcludeSelectors=[".entry-content img.ax-disable-share-links",".entry-content .axplus-item-box",".entry-content .wp-video"],e(t.microShareIncludeSelectors.join(",")).not(t.microShareExcludeSelectors.join(",")).each(function(){var o=e(this);t.log("[Microshare] Processing the element: "),t.log(o);var n="";if(!(o.parents(".mashsb-micro-wrapper").length>0)){var r=e("img",o);if(r.length>0?(n=r.attr("data-src"))||(n=r.attr("src")):(n=o.attr("data-src"))||(n=o.attr("src")),"string"!=typeof n&&(n=""),t.log("[Microshare] Image source: "),t.log(n),!n.match(new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/))){t.log("[Microshare] Image source URL is not absolute.");var i=t.config.microshares.domain;t.log("[Microshare] Base href: "+i),i?(n=n.replace(/^\.?\//,""),t.log("[Microshare] Normalized src: "+n),n=i+n):n=""}var c=a.replace("axtheme_share_media_url_placeholder",encodeURIComponent(n));t.log("Microshare replaced source: "+n),o.wrap('<div class="ax-img-wrap"></div>'),o.parent().addClass("mashsb-micro-wrapper"),o.parent().append(c),o.find(".axplus-item-share").empty()}}),e(".axtheme-axplus-embedly-script-placeholder").length>0&&e(".axtheme-axplus-embedly-script-placeholder").replaceWith('<script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"><\/script>'),e(".axtheme-microshare-item-share-toggle").on("click touchstart",function(t){t.preventDefault(),e(this).parents(".axtheme-microshare-item-share").addClass("axtheme-microshare-item-share-expanded")}),e("body").on("click touchstart",function(t){var o=e(t.target).parents(".axtheme-microshare-item-share-expanded");e(".axtheme-microshare-item-share-expanded").not(o).removeClass("axtheme-microshare-item-share-expanded")})):t.log("Microshares template not set. Microshares disabled")}}(jQuery,axtheme_shares),function(e,t){"use strict";var o=!1;t.log=function(e){o&&"undefined"!=typeof console&&console.log(e)};e(document).ready(function(){t.config=window.axtheme_shares_config,t.config&&(t.config.debug_mode&&(o=!0,t.log("[AXTheme] Shares debug mode is ON"),t.log(t.config)),t.initFacebook(),t.initTwitter(),t.initPinterest(),t.initMicroshares())})}(jQuery,axtheme_shares);
/*!
  * Stickyfill – `position: sticky` polyfill
  * v. 2.0.3 | https://github.com/wilddeer/stickyfill
  * MIT License
  */
!function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])}function e(a){return parseFloat(a)||0}function f(a){for(var b=0;a;)b+=a.offsetTop,a=a.offsetParent;return b}function g(){function c(){a.pageXOffset!=k.left?(k.top=a.pageYOffset,k.left=a.pageXOffset,n.refreshAll()):a.pageYOffset!=k.top&&(k.top=a.pageYOffset,k.left=a.pageXOffset,l.forEach(function(a){return a._recalcPosition()}))}function d(){f=setInterval(function(){l.forEach(function(a){return a._fastCheck()})},500)}function e(){clearInterval(f)}c(),a.addEventListener("scroll",c),a.addEventListener("resize",n.refreshAll),a.addEventListener("orientationchange",n.refreshAll);var f=void 0,g=void 0,h=void 0;"hidden"in b?(g="hidden",h="visibilitychange"):"webkitHidden"in b&&(g="webkitHidden",h="webkitvisibilitychange"),h?(b[g]||d(),b.addEventListener(h,function(){b[g]?e():d()})):d()}var h=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),i=!1;a.getComputedStyle?!function(){var a=b.createElement("div");["","-webkit-","-moz-","-ms-"].some(function(b){try{a.style.position=b+"sticky"}catch(a){}return""!=a.style.position})&&(i=!0)}():i=!0;var j="undefined"!=typeof ShadowRoot,k={top:null,left:null},l=[],m=function(){function g(a){if(c(this,g),!(a instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(l.some(function(b){return b._node===a}))throw new Error("Stickyfill is already applied to this node");this._node=a,this._stickyMode=null,this._active=!1,l.push(this),this.refresh()}return h(g,[{key:"refresh",value:function(){if(!i&&!this._removed){this._active&&this._deactivate();var c=this._node,g=getComputedStyle(c),h={top:g.top,display:g.display,marginTop:g.marginTop,marginBottom:g.marginBottom,marginLeft:g.marginLeft,marginRight:g.marginRight,cssFloat:g.cssFloat};if(!isNaN(parseFloat(h.top))&&"table-cell"!=h.display&&"none"!=h.display){this._active=!0;var k=c.parentNode,l=j&&k instanceof ShadowRoot?k.host:k,m=c.getBoundingClientRect(),n=l.getBoundingClientRect(),o=getComputedStyle(l);this._parent={node:l,styles:{position:l.style.position},offsetHeight:l.offsetHeight},this._offsetToWindow={left:m.left,right:b.documentElement.clientWidth-m.right},this._offsetToParent={top:m.top-n.top-e(o.borderTopWidth),left:m.left-n.left-e(o.borderLeftWidth),right:-m.right+n.right-e(o.borderRightWidth)},this._styles={position:c.style.position,top:c.style.top,bottom:c.style.bottom,left:c.style.left,right:c.style.right,width:c.style.width,marginTop:c.style.marginTop,marginLeft:c.style.marginLeft,marginRight:c.style.marginRight};var p=e(h.top);this._limits={start:m.top+a.pageYOffset-p,end:n.top+a.pageYOffset+l.offsetHeight-e(o.borderBottomWidth)-c.offsetHeight-p-e(h.marginBottom)};var q=o.position;"absolute"!=q&&"relative"!=q&&(l.style.position="relative"),this._recalcPosition();var r=this._clone={};r.node=b.createElement("div"),d(r.node.style,{width:m.right-m.left+"px",height:m.bottom-m.top+"px",marginTop:h.marginTop,marginBottom:h.marginBottom,marginLeft:h.marginLeft,marginRight:h.marginRight,cssFloat:h.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),k.insertBefore(r.node,c),r.docOffsetTop=f(r.node)}}}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var a=k.top<=this._limits.start?"start":k.top>=this._limits.end?"end":"middle";if(this._stickyMode!=a){switch(a){case"start":d(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":d(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":d(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=a}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(Math.abs(f(this._clone.node)-this._clone.docOffsetTop)>1||Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight)>1)&&this.refresh()}},{key:"_deactivate",value:function(){var a=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,d(this._node.style,this._styles),delete this._styles,l.some(function(b){return b!==a&&b._parent&&b._parent.node===a._parent.node})||d(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var a=this;this._deactivate(),l.some(function(b,c){if(b._node===a._node)return l.splice(c,1),!0}),this._removed=!0}}]),g}(),n={stickies:l,Sticky:m,addOne:function(a){if(!(a instanceof HTMLElement)){if(!a.length||!a[0])return;a=a[0]}for(var b=0;b<l.length;b++)if(l[b]._node===a)return l[b];return new m(a)},add:function(a){if(a instanceof HTMLElement&&(a=[a]),a.length){for(var b=[],c=function(c){var d=a[c];return d instanceof HTMLElement?l.some(function(a){if(a._node===d)return b.push(a),!0})?"continue":void b.push(new m(d)):(b.push(void 0),"continue")},d=0;d<a.length;d++){c(d)}return b}},refreshAll:function(){l.forEach(function(a){return a.refresh()})},removeOne:function(a){if(!(a instanceof HTMLElement)){if(!a.length||!a[0])return;a=a[0]}l.some(function(b){if(b._node===a)return b.remove(),!0})},remove:function(a){if(a instanceof HTMLElement&&(a=[a]),a.length)for(var b=function(b){var c=a[b];l.some(function(a){if(a._node===c)return a.remove(),!0})},c=0;c<a.length;c++)b(c)},removeAll:function(){for(;l.length;)l[0].remove()}};i||g(),"undefined"!=typeof module&&module.exports?module.exports=n:a.Stickyfill=n}(window,document);

/*!
 * The MIT License
 *
 * Copyright (c) 2012 James Allardice
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */
!function(a){"use strict";function b(){}function c(){try{return document.activeElement}catch(a){}}function d(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return!0;return!1}function e(a,b,c){return a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):void 0}function f(a,b){var c;a.createTextRange?(c=a.createTextRange(),c.move("character",b),c.select()):a.selectionStart&&(a.focus(),a.setSelectionRange(b,b))}function g(a,b){try{return a.type=b,!0}catch(c){return!1}}function h(a,b){if(a&&a.getAttribute(B))b(a);else for(var c,d=a?a.getElementsByTagName("input"):N,e=a?a.getElementsByTagName("textarea"):O,f=d?d.length:0,g=e?e.length:0,h=f+g,i=0;h>i;i++)c=f>i?d[i]:e[i-f],b(c)}function i(a){h(a,k)}function j(a){h(a,l)}function k(a,b){var c=!!b&&a.value!==b,d=a.value===a.getAttribute(B);if((c||d)&&"true"===a.getAttribute(C)){a.removeAttribute(C),a.value=a.value.replace(a.getAttribute(B),""),a.className=a.className.replace(A,"");var e=a.getAttribute(I);parseInt(e,10)>=0&&(a.setAttribute("maxLength",e),a.removeAttribute(I));var f=a.getAttribute(D);return f&&(a.type=f),!0}return!1}function l(a){var b=a.getAttribute(B);if(""===a.value&&b){a.setAttribute(C,"true"),a.value=b,a.className+=" "+z;var c=a.getAttribute(I);c||(a.setAttribute(I,a.maxLength),a.removeAttribute("maxLength"));var d=a.getAttribute(D);return d?a.type="text":"password"===a.type&&g(a,"text")&&a.setAttribute(D,"password"),!0}return!1}function m(a){return function(){P&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)?f(a,0):k(a)}}function n(a){return function(){l(a)}}function o(a){return function(){i(a)}}function p(a){return function(b){return v=a.value,"true"===a.getAttribute(C)&&v===a.getAttribute(B)&&d(x,b.keyCode)?(b.preventDefault&&b.preventDefault(),!1):void 0}}function q(a){return function(){k(a,v),""===a.value&&(a.blur(),f(a,0))}}function r(a){return function(){a===c()&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)&&f(a,0)}}function s(a){var b=a.form;b&&"string"==typeof b&&(b=document.getElementById(b),b.getAttribute(E)||(e(b,"submit",o(b)),b.setAttribute(E,"true"))),e(a,"focus",m(a)),e(a,"blur",n(a)),P&&(e(a,"keydown",p(a)),e(a,"keyup",q(a)),e(a,"click",r(a))),a.setAttribute(F,"true"),a.setAttribute(B,T),(P||a!==c())&&l(a)}var t=document.createElement("input"),u=void 0!==t.placeholder;if(a.Placeholders={nativeSupport:u,disable:u?b:i,enable:u?b:j},!u){var v,w=["text","search","url","tel","email","password","number","textarea"],x=[27,33,34,35,36,37,38,39,40,8,46],y="#ccc",z="placeholdersjs",A=new RegExp("(?:^|\\s)"+z+"(?!\\S)"),B="data-placeholder-value",C="data-placeholder-active",D="data-placeholder-type",E="data-placeholder-submit",F="data-placeholder-bound",G="data-placeholder-focus",H="data-placeholder-live",I="data-placeholder-maxlength",J=100,K=document.getElementsByTagName("head")[0],L=document.documentElement,M=a.Placeholders,N=document.getElementsByTagName("input"),O=document.getElementsByTagName("textarea"),P="false"===L.getAttribute(G),Q="false"!==L.getAttribute(H),R=document.createElement("style");R.type="text/css";var S=document.createTextNode("."+z+" {color:"+y+";}");R.styleSheet?R.styleSheet.cssText=S.nodeValue:R.appendChild(S),K.insertBefore(R,K.firstChild);for(var T,U,V=0,W=N.length+O.length;W>V;V++)U=V<N.length?N[V]:O[V-N.length],T=U.attributes.placeholder,T&&(T=T.nodeValue,T&&d(w,U.type)&&s(U));var X=setInterval(function(){for(var a=0,b=N.length+O.length;b>a;a++)U=a<N.length?N[a]:O[a-N.length],T=U.attributes.placeholder,T?(T=T.nodeValue,T&&d(w,U.type)&&(U.getAttribute(F)||s(U),(T!==U.getAttribute(B)||"password"===U.type&&!U.getAttribute(D))&&("password"===U.type&&!U.getAttribute(D)&&g(U,"text")&&U.setAttribute(D,"password"),U.value===U.getAttribute(B)&&(U.value=T),U.setAttribute(B,T)))):U.getAttribute(C)&&(k(U),U.removeAttribute(B));Q||clearInterval(X)},J);e(a,"beforeunload",function(){M.disable()})}}(this),function(a,b){"use strict";var c=a.fn.val,d=a.fn.prop;b.Placeholders.nativeSupport||(a.fn.val=function(a){var b=c.apply(this,arguments),d=this.eq(0).data("placeholder-value");return void 0===a&&this.eq(0).data("placeholder-active")&&b===d?"":b},a.fn.prop=function(a,b){return void 0===b&&this.eq(0).data("placeholder-active")&&"value"===a?"":d.apply(this,arguments)})}(jQuery,this);
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
window.matchMedia||(window.matchMedia=function(){"use strict";var styleMedia=(window.styleMedia||window.media);if(!styleMedia){var style=document.createElement('style'),script=document.getElementsByTagName('script')[0],info=null;style.type='text/css';style.id='matchmediajs-test';script.parentNode.insertBefore(style,script);info=('getComputedStyle'in window)&&window.getComputedStyle(style,null)||style.currentStyle;styleMedia={matchMedium:function(media){var text='@media '+media+'{ #matchmediajs-test { width: 1px; } }';if(style.styleSheet){style.styleSheet.cssText=text;}else{style.textContent=text;}
return info.width==='1px';}};}
return function(media){return{matches:styleMedia.matchMedium(media||'all'),media:media||'all'};};}());
/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */
(function(){if(window.matchMedia&&window.matchMedia('all').addListener){return false;}
var localMatchMedia=window.matchMedia,hasMediaQueries=localMatchMedia('only all').matches,isListening=false,timeoutID=0,queries=[],handleChange=function(evt){clearTimeout(timeoutID);timeoutID=setTimeout(function(){for(var i=0,il=queries.length;i<il;i++){var mql=queries[i].mql,listeners=queries[i].listeners||[],matches=localMatchMedia(mql.media).matches;if(matches!==mql.matches){mql.matches=matches;for(var j=0,jl=listeners.length;j<jl;j++){listeners[j].call(window,mql);}}}},30);};window.matchMedia=function(media){var mql=localMatchMedia(media),listeners=[],index=0;mql.addListener=function(listener){if(!hasMediaQueries){return;}
if(!isListening){isListening=true;window.addEventListener('resize',handleChange,true);}
if(index===0){index=queries.push({mql:mql,listeners:listeners});}
listeners.push(listener);};mql.removeListener=function(listener){for(var i=0,il=listeners.length;i<il;i++){if(listeners[i]===listener){listeners.splice(i,1);}}};return mql;};}());
/*! Picturefill - v2.3.1 - 2015-04-09
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */
window.matchMedia||(window.matchMedia=function(){"use strict";var a=window.styleMedia||window.media;if(!a){var b=document.createElement("style"),c=document.getElementsByTagName("script")[0],d=null;b.type="text/css",b.id="matchmediajs-test",c.parentNode.insertBefore(b,c),d="getComputedStyle"in window&&window.getComputedStyle(b,null)||b.currentStyle,a={matchMedium:function(a){var c="@media "+a+"{ #matchmediajs-test { width: 1px; } }";return b.styleSheet?b.styleSheet.cssText=c:b.textContent=c,"1px"===d.width}}}return function(b){return{matches:a.matchMedium(b||"all"),media:b||"all"}}}()),function(a,b,c){"use strict";function d(b){"object"==typeof module&&"object"==typeof module.exports?module.exports=b:"function"==typeof define&&define.amd&&define("picturefill",function(){return b}),"object"==typeof a&&(a.picturefill=b)}function e(a){var b,c,d,e,f,i=a||{};b=i.elements||g.getAllElements();for(var j=0,k=b.length;k>j;j++)if(c=b[j],d=c.parentNode,e=void 0,f=void 0,"IMG"===c.nodeName.toUpperCase()&&(c[g.ns]||(c[g.ns]={}),i.reevaluate||!c[g.ns].evaluated)){if(d&&"PICTURE"===d.nodeName.toUpperCase()){if(g.removeVideoShim(d),e=g.getMatch(c,d),e===!1)continue}else e=void 0;(d&&"PICTURE"===d.nodeName.toUpperCase()||!g.sizesSupported&&c.srcset&&h.test(c.srcset))&&g.dodgeSrcset(c),e?(f=g.processSourceSet(e),g.applyBestCandidate(f,c)):(f=g.processSourceSet(c),(void 0===c.srcset||c[g.ns].srcset)&&g.applyBestCandidate(f,c)),c[g.ns].evaluated=!0}}function f(){function c(){clearTimeout(d),d=setTimeout(h,60)}g.initTypeDetects(),e();var d,f=setInterval(function(){return e(),/^loaded|^i|^c/.test(b.readyState)?void clearInterval(f):void 0},250),h=function(){e({reevaluate:!0})};a.addEventListener?a.addEventListener("resize",c,!1):a.attachEvent&&a.attachEvent("onresize",c)}if(a.HTMLPictureElement)return void d(function(){});b.createElement("picture");var g=a.picturefill||{},h=/\s+\+?\d+(e\d+)?w/;g.ns="picturefill",function(){g.srcsetSupported="srcset"in c,g.sizesSupported="sizes"in c,g.curSrcSupported="currentSrc"in c}(),g.trim=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")},g.makeUrl=function(){var a=b.createElement("a");return function(b){return a.href=b,a.href}}(),g.restrictsMixedContent=function(){return"https:"===a.location.protocol},g.matchesMedia=function(b){return a.matchMedia&&a.matchMedia(b).matches},g.getDpr=function(){return a.devicePixelRatio||1},g.getWidthFromLength=function(a){var c;if(!a||a.indexOf("%")>-1!=!1||!(parseFloat(a)>0||a.indexOf("calc(")>-1))return!1;a=a.replace("vw","%"),g.lengthEl||(g.lengthEl=b.createElement("div"),g.lengthEl.style.cssText="border:0;display:block;font-size:1em;left:0;margin:0;padding:0;position:absolute;visibility:hidden",g.lengthEl.className="helper-from-picturefill-js"),g.lengthEl.style.width="0px";try{g.lengthEl.style.width=a}catch(d){}return b.body.appendChild(g.lengthEl),c=g.lengthEl.offsetWidth,0>=c&&(c=!1),b.body.removeChild(g.lengthEl),c},g.detectTypeSupport=function(b,c){var d=new a.Image;return d.onerror=function(){g.types[b]=!1,e()},d.onload=function(){g.types[b]=1===d.width,e()},d.src=c,"pending"},g.types=g.types||{},g.initTypeDetects=function(){g.types["image/jpeg"]=!0,g.types["image/gif"]=!0,g.types["image/png"]=!0,g.types["image/svg+xml"]=b.implementation.hasFeature("http://www.w3.org/TR/SVG1/feature#Image","1.1"),g.types["image/webp"]=g.detectTypeSupport("image/webp","data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")},g.verifyTypeSupport=function(a){var b=a.getAttribute("type");if(null===b||""===b)return!0;var c=g.types[b];return"string"==typeof c&&"pending"!==c?(g.types[b]=g.detectTypeSupport(b,c),"pending"):"function"==typeof c?(c(),"pending"):c},g.parseSize=function(a){var b=/(\([^)]+\))?\s*(.+)/g.exec(a);return{media:b&&b[1],length:b&&b[2]}},g.findWidthFromSourceSize=function(c){for(var d,e=g.trim(c).split(/\s*,\s*/),f=0,h=e.length;h>f;f++){var i=e[f],j=g.parseSize(i),k=j.length,l=j.media;if(k&&(!l||g.matchesMedia(l))&&(d=g.getWidthFromLength(k)))break}return d||Math.max(a.innerWidth||0,b.documentElement.clientWidth)},g.parseSrcset=function(a){for(var b=[];""!==a;){a=a.replace(/^\s+/g,"");var c,d=a.search(/\s/g),e=null;if(-1!==d){c=a.slice(0,d);var f=c.slice(-1);if((","===f||""===c)&&(c=c.replace(/,+$/,""),e=""),a=a.slice(d+1),null===e){var g=a.indexOf(",");-1!==g?(e=a.slice(0,g),a=a.slice(g+1)):(e=a,a="")}}else c=a,a="";(c||e)&&b.push({url:c,descriptor:e})}return b},g.parseDescriptor=function(a,b){var c,d=b||"100vw",e=a&&a.replace(/(^\s+|\s+$)/g,""),f=g.findWidthFromSourceSize(d);if(e)for(var h=e.split(" "),i=h.length-1;i>=0;i--){var j=h[i],k=j&&j.slice(j.length-1);if("h"!==k&&"w"!==k||g.sizesSupported){if("x"===k){var l=j&&parseFloat(j,10);c=l&&!isNaN(l)?l:1}}else c=parseFloat(parseInt(j,10)/f)}return c||1},g.getCandidatesFromSourceSet=function(a,b){for(var c=g.parseSrcset(a),d=[],e=0,f=c.length;f>e;e++){var h=c[e];d.push({url:h.url,resolution:g.parseDescriptor(h.descriptor,b)})}return d},g.dodgeSrcset=function(a){a.srcset&&(a[g.ns].srcset=a.srcset,a.srcset="",a.setAttribute("data-pfsrcset",a[g.ns].srcset))},g.processSourceSet=function(a){var b=a.getAttribute("srcset"),c=a.getAttribute("sizes"),d=[];return"IMG"===a.nodeName.toUpperCase()&&a[g.ns]&&a[g.ns].srcset&&(b=a[g.ns].srcset),b&&(d=g.getCandidatesFromSourceSet(b,c)),d},g.backfaceVisibilityFix=function(a){var b=a.style||{},c="webkitBackfaceVisibility"in b,d=b.zoom;c&&(b.zoom=".999",c=a.offsetWidth,b.zoom=d)},g.setIntrinsicSize=function(){var c={},d=function(a,b,c){b&&a.setAttribute("width",parseInt(b/c,10))};return function(e,f){var h;e[g.ns]&&!a.pfStopIntrinsicSize&&(void 0===e[g.ns].dims&&(e[g.ns].dims=e.getAttribute("width")||e.getAttribute("height")),e[g.ns].dims||(f.url in c?d(e,c[f.url],f.resolution):(h=b.createElement("img"),h.onload=function(){if(c[f.url]=h.width,!c[f.url])try{b.body.appendChild(h),c[f.url]=h.width||h.offsetWidth,b.body.removeChild(h)}catch(a){}e.src===f.url&&d(e,c[f.url],f.resolution),e=null,h.onload=null,h=null},h.src=f.url)))}}(),g.applyBestCandidate=function(a,b){var c,d,e;a.sort(g.ascendingSort),d=a.length,e=a[d-1];for(var f=0;d>f;f++)if(c=a[f],c.resolution>=g.getDpr()){e=c;break}e&&(e.url=g.makeUrl(e.url),b.src!==e.url&&(g.restrictsMixedContent()&&"http:"===e.url.substr(0,"http:".length).toLowerCase()?void 0!==window.console&&console.warn("Blocked mixed content image "+e.url):(b.src=e.url,g.curSrcSupported||(b.currentSrc=b.src),g.backfaceVisibilityFix(b))),g.setIntrinsicSize(b,e))},g.ascendingSort=function(a,b){return a.resolution-b.resolution},g.removeVideoShim=function(a){var b=a.getElementsByTagName("video");if(b.length){for(var c=b[0],d=c.getElementsByTagName("source");d.length;)a.insertBefore(d[0],c);c.parentNode.removeChild(c)}},g.getAllElements=function(){for(var a=[],c=b.getElementsByTagName("img"),d=0,e=c.length;e>d;d++){var f=c[d];("PICTURE"===f.parentNode.nodeName.toUpperCase()||null!==f.getAttribute("srcset")||f[g.ns]&&null!==f[g.ns].srcset)&&a.push(f)}return a},g.getMatch=function(a,b){for(var c,d=b.childNodes,e=0,f=d.length;f>e;e++){var h=d[e];if(1===h.nodeType){if(h===a)return c;if("SOURCE"===h.nodeName.toUpperCase()){null!==h.getAttribute("src")&&void 0!==typeof console&&console.warn("The `src` attribute is invalid on `picture` `source` element; instead, use `srcset`.");var i=h.getAttribute("media");if(h.getAttribute("srcset")&&(!i||g.matchesMedia(i))){var j=g.verifyTypeSupport(h);if(j===!0){c=h;break}if("pending"===j)return!1}}}}return c},f(),e._=g,d(e)}(window,window.document,new window.Image);
/*!
Waypoints - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
*/
!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=y+l-f,h=w<s.oldScroll,p=d.triggerPoint>=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
/*!
 * enquire.js v2.1.2 - Awesome Media Queries in JavaScript
 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */
!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g});
(function($){'use strict';var config=axtheme_front_config;var ax={'config':config};ax.getWindowWidth=function(){if(typeof window.innerWidth!=='undefined'){return window.innerWidth;}
return $(window).width();};ax.isDesktopDevice=function(){return ax.getWindowWidth()>ax.getDesktopBreakpoint();};ax.getDesktopBreakpoint=function(){var desktopBreakPoint=$('#ax-breakpoint-desktop').css('min-width');if(!desktopBreakPoint){return 9999;}
desktopBreakPoint=parseInt(desktopBreakPoint,10);if(desktopBreakPoint===0){return 9999;}
return desktopBreakPoint;};ax.isTouchDevice=function(){return('ontouchstart'in window)||navigator.msMaxTouchPoints;};ax.isStickySupported=function(){var prefixes=['','-webkit-','-moz-','-ms-'];var block=document.createElement('div');var supported=false;var i;for(i=prefixes.length-1;i>=0;i--){try{block.style.position=prefixes[i]+'sticky';}
catch(e){}
if(block.style.position!==''){supported=true;}}
return supported;};ax.isRTL=function(){return $('body').is('.rtl');};ax.log=function(data){if((ax.config.debug_mode||window.axthemeDebugMode)&&typeof console!=='undefined'){if($.isArray(data)){for(var i in data){console.log(data[i]);}}else{console.log(data);}}};ax.createCookie=function(name,value,time){var expires;if(time){var date=new Date();var ms=time;if(typeof time==='object'){ms=time.value;switch(time.type){case'days':ms=ms*24*60*60*1000;break;}}
date.setTime(date.getTime()+ms);expires='; expires='+date.toGMTString();}
else{expires='';}
document.cookie=name+'='+value+expires+'; path=/';};ax.readCookie=function(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i+=1){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}
return null;};ax.removeCookie=function(name){ax.createCookie(name,'',-1);};window.ax=ax;})(jQuery);(function($){'use strict';ax.uiHelpers=function(){if(ax.isTouchDevice()){$('body').removeClass('ax-hoverable');}
var mc4wpClasses=['ax-box','ax-box-tpl-frame','ax-newsletter'];var mc4wpBackgroundClasses=['ax-box-background'];if('original-2018'===ax.config.stack||'food'===ax.config.stack){mc4wpBackgroundClasses.push('ax-current-background');}
if('miami'===ax.config.stack||'magic'===ax.config.stack){mc4wpClasses.push('ax-dark');}
$('.widget_mc4wp_form_widget').addClass(mc4wpClasses.join(' ')).wrapInner('<div class="ax-box-inner"></div>').prepend('<div class="ax-box-icon"></div>').append('<div class="'+mc4wpBackgroundClasses.join(' ')+'"></div>');var bbPressBackgroundClasses=['ax-box-background'];if('original-2018'===ax.config.stack||'food'===ax.config.stack){bbPressBackgroundClasses.push('ax-current-background');}
$('.bbp_widget_login').addClass('ax-box ax-box-tpl-frame').wrapInner('<div class="ax-box-inner"></div>').append('<div class="'+bbPressBackgroundClasses.join(' ')+'"></div>');$('.ax-drop-the-search').on('click','.ax-drop-toggle',function(e){e.preventDefault();$('.ax-drop-the-search input.search-field').focus();});$('.search-submit').on('click',function(e){var $form=$(this).closest('form');var $input=$('input.search-field',$form);if(!$input.val()){e.preventDefault();}});$('#buddypress .load-more').click(function(){var i=0;var intervalID=setInterval(function(){$('body').trigger('axPageHeightChanged');i++;if(i===5){window.clearInterval(intervalID);}},1000);});};})(jQuery);(function($){'use strict';ax.resetFacebookSDK=function(){$('script#facebook-jssdk').remove();$('#fb-root').remove();if(window.FB){delete window.FB;}};$('body').on('axBeforeNewContentReady',function(e,$newContent){if($newContent.find('.fb-video').length>0){ax.resetFacebookSDK();}});})(jQuery);(function($){'use strict';$('body').on('axNewContentLoaded',function(e,$newContent){if($newContent.find('.instagram-media').length>0){if(typeof instgrm!=='undefined'&&typeof instgrm.Embeds!=='undefined'){instgrm.Embeds.process();}}});})(jQuery);(function($){'use strict';var loading=false;var startingUrl=window.location.href;var setTargetBlank=ax.config.setTargetBlank;var useWaypoints=ax.config.useWaypoints;ax.loadMoreButton=function(){$('.ax-load-more').on('click',function(e){if(loading){return;}
loading=true;e.preventDefault();var $button=$(this);var $collectionMore=$button.parents('.ax-collection-more');var url=$button.attr('data-ax-next-page-url');var $endMessage=$('.ax-pagination-end');$collectionMore.addClass('ax-collection-more-loading');var xhr=$.get(url);xhr.done(function(data){var collectionSelector='#primary > .ax-collection .ax-collection-items:not(#coming-soon .ax-collection-items)';var $resCollectionItems=$(data).find(collectionSelector).find('.ax-collection-item');var $resButton=$(data).find('.ax-load-more');var $collection=$(collectionSelector);$resCollectionItems.addClass('ax-collection-item-added');var $insta=$('script[src="//platform.instagram.com/en_US/embeds.js"]');if(window.wp&&typeof window.wp.mediaelement==='undefined'){var matches=data.match(/<script(.|\n)*?<\/script>/g);var mejsCode='';matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){match=match.replace('<script','<script async');mejsCode+=match;}});matches=data.match(/<link(.|\n)*?\/>/g);matches.forEach(function(match){if(match.indexOf('mejs')>0||match.indexOf('mediaelement')>0){mejsCode+=match;}});$collection.after(mejsCode);}
if(setTargetBlank){$('a',$resCollectionItems).attr('target','_blank');}
var $collection_waypoint='<span class="axtheme-collection-waypoint" data-axtheme-archive-url="'+url+'"></span>';$collection.append($collection_waypoint);$collection.append($resCollectionItems);if(typeof ga!=='undefined'&&typeof ga.getAll!=='undefined'){ga('create',ga.getAll()[0].get('trackingId'),'auto');ga('set',{location:url});ga('send','pageview');}
if($insta.length>0){window.instgrm.Embeds.process();}
if(window.wp&&typeof window.wp.mediaelement!=='undefined'){window.wp.mediaelement.initialize();}
$('body').trigger('axPageHeightChanged');$('body').trigger('axNewContentLoaded',[$resCollectionItems]);if($resButton.length>0){$button.attr('data-ax-next-page-url',$resButton.attr('data-ax-next-page-url'));}else{$collectionMore.remove();}
if(typeof ax.autoPlayVideo==='function'){ax.autoPlayVideo();}
if(useWaypoints){$('.axtheme-collection-waypoint').waypoint(function(direction){var $waypoint=$(this.element);if('up'===direction){var $waypointUp=$waypoint.prevAll('.axtheme-collection-waypoint');if($waypointUp.length>0){$waypoint=$($waypointUp[0]);}else{window.history.replaceState({},'',startingUrl);return;}}
var waypointUrl=$waypoint.attr('data-axtheme-archive-url');var currentUrl=window.location.href;if(waypointUrl!==currentUrl){window.history.replaceState({},'',waypointUrl);}},{offset:'-5%'});}});xhr.fail(function(){$button.addClass('ax-info-error');$button.remove();$endMessage.show();});xhr.always(function(){$collectionMore.removeClass('ax-collection-more-loading');loading=false;});});};})(jQuery);(function($){'use strict';ax.infiniteScrollConfig={'offset':'150%'};var triggeredByClick=false;ax.infiniteScroll=function(){$('.ax-collection-more.infinite-scroll').each(function(){var $this=$(this);if($this.is('.on-demand')&&!triggeredByClick){return false;}
$this.waypoint(function(direction){if('down'===direction){$this.find('.ax-load-more').trigger('click');}},{offset:ax.infiniteScrollConfig.offset});});};$('body').on('axNewContentLoaded',function(){triggeredByClick=true;ax.infiniteScroll();});})(jQuery);(function($){'use strict';ax.dateToTimeago=function(){if(!$.fn.timeago){return;}
var $body=$('body');$('time.entry-date:not(.coming-soon-post), span.entry-date > time, .comment-metadata time, time.axplus-item-date').timeago();$body.on('axNewContentLoaded',function(e,$newContent){if($newContent){$newContent.find('time.entry-date, .comment-metadata time, time.axplus-item-date').timeago();}});$body.on('axcWpCommentInitialized',function(e){$(e.detail).find('time.entry-date, .comment-metadata time, time.axplus-item-date').timeago();});};ax.dateToTimefromnow=function(){$.timeago.settings.allowFuture=true;if(!$.fn.timeago){return;}
$('time.entry-date.coming-soon-post').timeago();};})(jQuery);(function($){'use strict';var selectors={'toggle':'.ax-hamburger'};ax.globalCanvasSelectors=selectors;var canvas;ax.canvas=function(){canvas=Canvas();ax.canvasInstance=canvas;$(selectors.toggle).on('click',function(e){e.preventDefault();canvas.toggle();});};function Canvas(){var that={};var listeners={'open':[],'close':[]};var currentContent='';var currentScroll=0;var _clientY;var init=function(){var $overlay=$('.ax-canvas-overlay');$overlay.on('click',that.toggle);$('.ax-canvas').on('toggle-canvas',function(){that.toggle();});$('.ax-canvas .ax-canvas-toggle').on('click',that.toggle);if($('html.ax-off-outside').length){enquire.register('screen and ( min-width: 700px )',{match:function(){that.close();}});}
if($('html.ax-off-inside').length){enquire.register('screen and ( max-width: 1024px )',{match:function(){that.close();}});enquire.register('screen and ( min-width: 1025px )',{match:function(){that.lazyload();}});}
return that;};that.getContent=function(){return $('.ax-canvas-global .ax-canvas-content');};that.captureClientY=function(event){_clientY=event.targetTouches[0].clientY;};that.disableCanvasScroll=function(e){var _element=$('.ax-canvas');var clientY=e.targetTouches[0].clientY-_clientY;if(_element.scrollTop===0&&clientY>0){alert('top scroll');e.preventDefault();e.stopPropagation();return false;}
if((_element.scrollHeight-_element.scrollTop<=_element.clientHeight)&&clientY<0){alert('bottom scroll');e.preventDefault();e.stopPropagation();return false;}};that.disableBodyScroll=function(e){};that.lazyload=function(){$('.ax-canvas-background[data-bg]:not(.lazyloaded)').addClass('lazyload');};that.open=function(content){that.lazyload();window.requestAnimationFrame(function(){var breakpoint=$(document).width();var cssClass=breakpoint>=1025?'ax-off-global-desktop':'ax-off-global';$('html').addClass(cssClass);currentContent=content;var $canvas=$('.ax-canvas-global');if(content){if(typeof content==='string'){$canvas.find('.ax-canvas-content').html(content);}else{$canvas.find('.ax-canvas-content').empty().append(content);}
$canvas.find('.ax-canvas-content').trigger('ax-new-content');}
that.notify('open');});};that.close=function(){window.requestAnimationFrame(function(){$('html').removeClass('ax-off-global ax-off-global-desktop');that.notify('close');});};that.toggle=function(e){if(e){e.preventDefault();}
if($('html').is('.ax-off-global, .ax-off-global-desktop')){that.close();}else{that.open(null);}};that.notify=function(eventType){var callbacks=listeners[eventType];for(var i=0;i<callbacks.length;i++){callbacks[i](that.getContent());}};that.on=function(eventType,listener,priority){listeners[eventType][priority]=listener;};return init();}})(jQuery);(function($){'use strict';var $waypointElem=false;var selectors={'stickyWidgetWrapper':'.ax-sticky-widget-wrapper','stickyWidget':'.ax-sticky-widget','widget':'.widget','content':'#primary .entry-content'};var sidebarSelectors=['#secondary','#tertiary'];ax.stickyTopOffsetSelectors=['#wpadminbar','.ax-iframe-bar','.ax-sharebar-loaded','.ax-sticky-top-wrapper'];ax.resetStickyElements=function(){$(selectors.stickyWidgetWrapper).css('height','');$(selectors.stickyWidget).css('position','block');};ax.stickySidebar=function(){if(!ax.isDesktopDevice()){ax.resetStickyElements();return;}
var $widgets=$(selectors.stickyWidget);if($widgets.length===0){return;}
var topOffset=0;$(ax.stickyTopOffsetSelectors).each(function(){var $element=$(this);if($element.length>0&&$element.is(':visible')){topOffset+=parseInt($element.outerHeight(),10);}});$widgets.each(function(){var $widget=$(this);var top=parseInt($widget.css('top'),10);if(topOffset>0){top+=topOffset;$widget.css('top',top+'px');}});if(typeof Stickyfill!=='undefined'){Stickyfill.add($widgets);}
var adjustLastWidgetHeight=function(isVariableContent){$(sidebarSelectors).each(function(){var $sidebar=$(this);var $widgets=$sidebar.children(selectors.widget+','+selectors.stickyWidgetWrapper);var $lastWidget=$widgets.last();if($lastWidget.is(selectors.stickyWidgetWrapper)){$lastWidget.css('height','');var sidebarHeight;if(isVariableContent){sidebarHeight=parseInt($(selectors.content).outerHeight(),10);}else{sidebarHeight=parseInt($sidebar.outerHeight(),10);}
var widgetsHeight=0;$widgets.each(function(){widgetsHeight+=parseInt($(this).outerHeight(true),10);});if(widgetsHeight<sidebarHeight){var diffHeight=sidebarHeight-widgetsHeight;var lastWidgetHeight=parseInt($lastWidget.css('height'),10);lastWidgetHeight+=diffHeight;$lastWidget.css('height',lastWidgetHeight+'px');}
$waypointElem=$lastWidget;}});};var $body=$('body');var isVariableContent=$body.is('.single');adjustLastWidgetHeight(isVariableContent);$body.on('axNewContentLoaded axPageHeightChanged',function(e){adjustLastWidgetHeight();});if(false!==$waypointElem){$waypointElem.waypoint(function(direction){if('down'===direction){adjustLastWidgetHeight();}},{offset:'bottom-in-view'});}};})(jQuery);(function($){'use strict';var selectors=['#wpadminbar','.ax-iframe-bar','.ax-sharebar-loaded','.ax-sticky-top-wrapper'];ax.stickyElementsTopOffsetSelectors=selectors;ax.stickyPosition=function($context){$context=$context||$('body');var $stickyTop=$('.ax-sticky-top-wrapper');if($stickyTop.length>0&&!$stickyTop.is('.ax-loaded')){var disableStickyHeader=false;var isDesktop=ax.getWindowWidth()>800;var sharebarLoaded=$('.ax-sharebar-loaded').length>0||$('.essb_topbar').length>0;if(sharebarLoaded&&isDesktop){disableStickyHeader=true;}
if(disableStickyHeader){$stickyTop.removeClass('ax-sticky-top-wrapper');}else{if(!ax.isStickySupported()){Stickyfill.add($stickyTop);}
$stickyTop.addClass('ax-loaded');}}
var topOffset=0;for(var i=0;i<selectors.length;i++){var $elem=$(selectors[i]);if($elem.length>0&&$elem.is(':visible')){topOffset+=$elem.outerHeight();}}
$context.find('.ax-wrapper-with-stickies > .entry-actions').each(function(){var $this=$(this);$this.css('top',topOffset);Stickyfill.add($this);});Stickyfill.add($('.axplus-form-frontend .axplus-form-side'));$context.find('.entry-tpl-index-stickies > .entry-actions, .entry-tpl-feat-stickies .entry-actions').each(function(){var $this=$(this);$this.css('top',topOffset+10);Stickyfill.add($this);});};$('body').on('axNewContentLoaded',function(e,$newContent){if($newContent){ax.stickyPosition($newContent);}});})(jQuery);(function($){'use strict';var selectors={'drop':'.ax-drop','dropExpanded':'.ax-drop-expanded','dropToggle':'.ax-drop-toggle'};var classes={'dropExpanded':'ax-drop-expanded'};ax.droppableElements=function(){$('body').on('click touchstart',function(e){var $activeDrop=$(e.target).parents('.ax-drop-expanded');$(selectors.dropExpanded).not($activeDrop).removeClass(classes.dropExpanded);});if(ax.isTouchDevice()){$('body').on('click',selectors.drop,function(e){var $drop=$(this);if($drop.find('.ax-drop-content').length===0){return;}
if($drop.is(selectors.dropExpanded)){var $clickedElement=$(e.target);var toggleClicked=$clickedElement.parents(selectors.dropToggle).length>0;if(toggleClicked){$drop.removeClass(classes.dropExpanded);e.preventDefault();}}else{$drop.addClass(classes.dropExpanded);e.preventDefault();}});}else{$(selectors.dropToggle).on('click',function(){});}};})(jQuery);(function($){'use strict';ax.axplus=function(){var $body=$('body');$body.on('axplusFullFormLoaded',function(e,$post){$post.find('.ax-button-m.ax-button-solid').removeClass('ax-button-m  ax-button-solid').addClass('ax-button-s  ax-button-simple');$post.find('.ax-beta.ax-beta-1st').removeClass('ax-beta ax-beta-1st').addClass('ax-gamma ax-gamma-1st');});};window.axcWpCommentListPropsFilter=function(props,comments){if($(comments).parents('.axplus-item').length>0){props.loadMoreType='load_more';}
return props;}})(jQuery);(function($){'use strict';ax.AXMedia=function(){$('body').on('axNewContentLoaded',function(){$('body').trigger('axmLoadYoutube');});$(document).on('lazybeforeunveil',function(e){var $target=$(e.target);var targetSrc=$target.attr('data-src');if(targetSrc&&targetSrc.endsWith('.gif')){$target.on('load',function(){$target.addClass('ax-enable-gif-player');setTimeout(function(){if(typeof ax.gifPlayer==='function'){ax.gifPlayer($target.parent());}},100);});}});$(document).on('axthemeGifPlayerLoaded',function(e,$canvasWrapper){if($canvasWrapper.hasClass('lazyloading')){$canvasWrapper.removeClass('lazyloading');$canvasWrapper.addClass('lazyloaded');}});};})(jQuery);(function(context,$,i18n){'use strict';$(document).ready(function(){PrimaryMenu();});function PrimaryMenu(){var that={};that.init=function(){that.registerEventsHandlers();$('.menu-item-has-children > a, .menu-item-ax-mega > a').append('<span class="ax-link-toggle"></span>');return that;};that.registerEventsHandlers=function(){that.handleMenuItemClick();that.handleMenuItemFocusOut();};that.handleMenuItemFocusOut=function(){$('body').on('click',function(e){if($(e.target).parents('.mtm-drop-expanded').length===0){if($(e.target).parents('.ax-menu-h').length){that.collapseAllOpenedSubmenus();}}});};that.handleMenuItemClick=function(){$('.ax-primary-nav, .ax-secondary-nav').on('click','.menu-item > a',function(e){var $menu=$(this).parents('.ax-primary-nav');if($menu.length===0){$menu=$(this).parents('.ax-secondary-nav');}
var isSimpleList=$menu.is('#ax-canvas-primary-nav')||$menu.is('#ax-canvas-secondary-nav');if(ax.isTouchDevice()||isSimpleList){that.handleMenuTouchEvent($(this),e);}});};that.handleMenuTouchEvent=function($link,event){var $li=$link.parent('li');that.collapseAllOpenedSubmenus($li);if($li.hasClass('menu-item-has-children')){event.preventDefault();var $helper=$li.find('ul.sub-menu:first > li.ax-menu-item-helper');if($helper.length===0){var href=$link.attr('href');if(href&&href.length){var anchor=i18n.go_to+' <span class="mtm-item-helper-title">'+$link.html()+'</span>';$helper=$('<li class="menu-item ax-menu-item-helper"><a class="mtm-link" href="'+href+'"><span class="mtm-link-text"><span class="mtm-link-title">'+anchor+'</span></span></a></li>');$li.find('ul.sub-menu:first').prepend($helper);}}
if(!$li.is('.mtm-drop-expanded')){$li.find('.mtm-drop-expanded .ax-menu-item-helper').remove();$li.addClass('mtm-drop-expanded');}else{$li.find('.mtm-drop-expanded').removeClass('mtm-drop-expanded');$li.removeClass('mtm-drop-expanded');}}};that.collapseAllOpenedSubmenus=function($currentItem){if($currentItem){var $currentMenu=$currentItem.parents('nav');var $topLevelLi=$currentItem.parents('li.menu-item');if($topLevelLi.length===0){$currentMenu.find('.mtm-drop-expanded').not($currentItem).removeClass('mtm-drop-expanded');}else{$topLevelLi.siblings('li').find('.mtm-drop-expanded').removeClass('mtm-drop-expanded');}
$('nav').not($currentMenu).find('.mtm-drop-expanded').removeClass('mtm-drop-expanded');}else{$('.mtm-drop-expanded').removeClass('mtm-drop-expanded');}};return that.init();}})(window,jQuery,ax.config.i18n.menu);(function(){var lastTime=0;var vendors=['ms','moz','webkit','o'];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[vendors[x]+'CancelAnimationFrame']||window[vendors[x]+'CancelRequestAnimationFrame'];}
if(!window.requestAnimationFrame){window.requestAnimationFrame=function(callback){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};}
if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(id){clearTimeout(id);};}}());(function($){'use strict';ax.popup=function(){var
HTMLBase=$('html'),Popup=$('.ax-popup-newsletter'),PopupCookie=ax.readCookie('ax_popup_disabled'),PopupCloser=$('.ax-popup-base, .ax-popup-closer');if(PopupCookie){HTMLBase.addClass('exit-intent-disabled');}
if(Popup.length<=0){return;}
$(document).on('mouseleave',function(e){if(e.clientY<10&&!HTMLBase.hasClass('exit-intent-disabled')&&!HTMLBase.hasClass('ax-slideup-visible')){HTMLBase.addClass('ax-popup-ready');setTimeout(function(){HTMLBase.addClass('ax-popup-visible').addClass('exit-intent-disabled');},50);}});PopupCloser.on('click',function(e){e.preventDefault();HTMLBase.removeClass('ax-popup-visible');ax.createCookie('ax_popup_disabled',1,24*60*60*1000);});}
ax.slideup=function(){var
HTMLBase=$('html'),Slideup=$('.ax-slideup-newsletter'),SlideupCloser=$('.ax-slideup-newsletter-closer'),SlideupCookie=ax.readCookie('ax_slideup_disabled'),ScrollPositon=$(document).scrollTop(),ScrollTarget=$('.single-post article .entry-content'),ScrollTargetOffset=ScrollTarget.offset(),ScrollTargetHeight=ScrollTarget.height(),ShowOn=50;SlideupCloser.on('click',function(e){e.preventDefault();HTMLBase.removeClass('ax-slideup-visible').addClass('slideup-intent-disabled');ax.createCookie('ax_slideup_disabled',1,24*60*60*1000);});if(SlideupCookie){HTMLBase.addClass('slideup-intent-disabled');}
if(Slideup.length<=0){return;}
if(ScrollTarget.length<=0){return;}
$(window).on('scroll',function(){ScrollPositon=$(document).scrollTop();ScrollTargetOffset=ScrollTarget.offset();ScrollTargetHeight=ScrollTarget.height();if(((ScrollPositon-ScrollTargetOffset.top)/(ScrollTargetHeight)).toFixed(6)*100>=ShowOn&&!HTMLBase.hasClass('slideup-intent-disabled')&&!HTMLBase.hasClass('ax-popup-visible')){HTMLBase.addClass('ax-slideup-visible');}});}})(jQuery);(function($){'use strict';$(document).ready(function(){$('.wp-social-login-provider-list').on('click',function(){if($(this).hasClass('wp-social-login-provider-list-active')){return;}
$('.axplus-wpsl-gdpr-consent').addClass('axplus-wpsl-gdpr-consent-blink');setTimeout(function(){$('.axplus-wpsl-gdpr-consent').removeClass('axplus-wpsl-gdpr-consent-blink');},2000);});$('.axplus-wpsl-gdpr-consent input').on('click',function(){var enabled=$(this).is(':checked');if(enabled){$('.wp-social-login-provider-list').addClass('wp-social-login-provider-list-active');}else{$('.wp-social-login-provider-list').removeClass('wp-social-login-provider-list-active');}});});})(jQuery);(function($){'use strict';ax.updatePostViews=function(nonce,postId){$.ajax({'type':'POST','url':ax.config.ajax_url,'data':{'action':'update_views_ajax','wpp_id':postId,'token':nonce}});};$('.axtheme-count-view').on('click',function(){var postId;var $body=$('body');if($body.is('.single-format-link')){var res=$body.attr('class').match(/postid-(\d+)/);if(res){postId=res[1];}}else{var $article=$(this).parents('article.format-link');if($article.length>0){postId=$article.attr('class').match(/post\-(\d+)/)[1];}}
if(postId){$.ajax({'type':'POST','url':ax.config.ajax_url,'data':{'action':'update_views_ajax','wpp_id':postId,'token':ax.config.wpp.token}});}});})(jQuery);(function($){'use strict';ax.flickity=function($context){$context=$context||$('body');var
FlickitySpots=$context.find('.axads-shop-the-post-wrap.carousel-wrap .woocommerce .products, .ax-products-widget-carousel .product_list_widget');FlickitySpots.each(function(){if($(this).hasClass('.flickity-enabled')){return;}
var
ThisFlickityItems=$(this).children(),ThisFlickityItemsWidth=ThisFlickityItems.outerWidth()*ThisFlickityItems.length,ThisFlickityArgs={cellAlign:'left',wrapAround:true,prevNextButtons:true,pageDots:false,groupCells:true,rightToLeft:ax.isRTL(),imagesLoaded:true};if(ThisFlickityItemsWidth<=$(this).outerWidth()){ThisFlickityArgs.cellAlign='center';ThisFlickityArgs.wrapAround=false;}else{var ThisRequiredNumber=Math.round($(this).outerWidth()/ThisFlickityItems.outerWidth())*ThisFlickityItems.length;while(ThisFlickityItems.length<ThisRequiredNumber){$(this).append(ThisFlickityItems.clone(true));ThisFlickityItems=$(this).children();}}
$(this).flickity(ThisFlickityArgs);});};$('body').on('axNewContentLoaded',function(e,$newContent){ax.flickity($newContent);});})(jQuery);(function($){'use strict';$(document).ready(function(){var selectors=['#wpadminbar','.ax-iframe-bar','.ax-sticky-top-wrapper'];var applyOffset=function(){var topOffset=0;for(var i=0;i<selectors.length;i++){var $elem=$(selectors[i]);if($elem.length>0&&$elem.is(':visible')){topOffset+=$elem.outerHeight();}}
var cssRule='html.ax-off-inside.ax-off-global-desktop .ax-canvas {top:'+topOffset+'px;'
$('#ax-canvas-js-css').remove();$('head').append('<style id="ax-canvas-js-css">'+cssRule+'</style>');$('html.ax-off-inside .ax-canvas').removeClass('ax-canvas-no-js').addClass('ax-canvas-js');};$('body').on('axPageHeightChanged',function(e){applyOffset();});$('html.ax-off-inside .ax-canvas.ax-canvas-no-js').each(function(){applyOffset();});});})(jQuery);(function($){'use strict';$(document).ready(function(){ax.uiHelpers();if(ax.config.global_timeago==='on'){ax.dateToTimeago();}
if(ax.config.coming_soon_timefromnow==='on'){ax.dateToTimefromnow();}
ax.loadMoreButton();ax.infiniteScroll();ax.stickyPosition();ax.droppableElements();ax.canvas();ax.axplus();ax.AXMedia();ax.flickity();ax.popup();ax.slideup();ax.stickySidebar();});})(jQuery);
(function($){'use strict';var config=axtheme_previews_hover_config;var ax={'config':config};function initializePreviews(){var mediaContainers=$('article .entry-featured-media');var currentPlayingMedia=null;function deactivateCurrentMedia(){if(currentPlayingMedia){currentPlayingMedia();currentPlayingMedia=null;}}
mediaContainers.each(function(){var $container=$(this);var $image=$container.find('img').not('.webp-preview');var $webpImage=$container.find('img.webp-preview');var $video=$container.find('video.preview-video');var previewUrl=$video.attr('data-src');var $parentArticle=$container.closest('article');var locations_available_on_page={'header_feat_entries':$parentArticle.parents('.ax-featured').length>0,'header_mega_menu':$parentArticle.parents('.menu-item-ax-mega').length>0,'home_feat_entries':$parentArticle.parents('.home .archive-featured').length>0,'home_main_collection':$parentArticle.parents('.home #primary').length>0,'home_sidebar':$parentArticle.parents('.home .ax-sidebar').length>0,'archives_feat_entries':$parentArticle.parents('.archive .archive-featured').length>0,'archives_main_collection':$parentArticle.parents('.archive:not(.author) #primary').length>0||$parentArticle.parents('.elementor-widget-axtheme_collection').length>0,'archives_sidebar':$parentArticle.parents('.archive:not(.author) .ax-sidebar').length>0,'search_main_collection':$parentArticle.parents('.search-results #primary').length>0,'search_sidebar':$parentArticle.parents('.search-results .ax-sidebar').length>0,'search_results_header':$parentArticle.parents('.ax-drop-the-search').length>0,'author_main_collection':$parentArticle.parents('.archive.author #primary').length>0,'author_sidebar':$parentArticle.parents('.archive.author .ax-sidebar').length>0,'single_featured_image':$container.hasClass('entry-featured-media-main'),'single_sidebar':$parentArticle.parents('.single-post .ax-sidebar').length>0,'single_collections':$parentArticle.parents('.single-post .ax-more-from').length>0||$parentArticle.parents('.single-post .ax-dont-miss-row').length>0||$parentArticle.parents('.single-post .ax-related-entries').length>0,'footer_widgets':$parentArticle.parents('.ax-prefooter').length>0,};var foundLocation=Object.keys(locations_available_on_page).find(key=>locations_available_on_page[key]&&ax.config.preview_locations.includes(key));if(!foundLocation){return true;}
var $targetElement;if(foundLocation==='header_feat_entries'){$targetElement=$parentArticle.parents('.ax-featured').length>0?$parentArticle:$container;}else if(foundLocation==='home_feat_entries'||foundLocation==='archives_feat_entries'){$targetElement=$parentArticle.parents('.archive-featured').length>0?$parentArticle:$container;}else{$targetElement=$container;}
function activateVideo(){$targetElement.data('hovering',true);if(!$video.attr('src')){$video.attr('src',$video.attr('data-src'));$video.get(0).load();}
var videoReadyHandler=function(){if($targetElement.data('hovering')){deactivateCurrentMedia();$video.css('opacity','1');$image.css('opacity','0');$video.get(0).play();currentPlayingMedia=deactivateVideo;}
$video.off('canplay',videoReadyHandler);};if($video.get(0).readyState>=3){videoReadyHandler();}else{$video.on('canplay',videoReadyHandler);}}
function deactivateVideo(){$targetElement.data('hovering',false);$video.get(0).pause();$video.css('opacity','0');$image.css('opacity','1');}
function activateWebP(){$targetElement.data('hovering',true);if(!$webpImage.attr('src')){$webpImage.attr('src',$webpImage.attr('data-src'));}
var webpReadyHandler=function(){if($targetElement.data('hovering')){deactivateCurrentMedia();$webpImage.css('opacity','1');$image.css('opacity','0');currentPlayingMedia=deactivateWebP;}
$webpImage.off('load',webpReadyHandler);};if($webpImage.get(0).complete){webpReadyHandler();}else{$webpImage.on('load',webpReadyHandler);}}
function deactivateWebP(){$targetElement.data('hovering',false);$webpImage.css('opacity','0');$image.css('opacity','1');}
if(previewUrl){$targetElement.on('mouseenter',activateVideo);$targetElement.on('mouseleave',deactivateVideo);$targetElement.on('touchstart',function(e){e.stopPropagation();activateVideo();});}
if($webpImage.length>0){$targetElement.on('mouseenter',activateWebP);$targetElement.on('mouseleave',deactivateWebP);$targetElement.on('touchstart',function(e){e.stopPropagation();activateWebP();});}});}
$(document).ready(initializePreviews);$('body').on('axNewContentLoaded',initializePreviews);$('body').on('axAjaxSearchCompleted',initializePreviews);})(jQuery);
/*!
 * jQuery UI Menu 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../safe-active-element","../unique-id","../version","../widget"],e):e(jQuery)}(function(a){"use strict";return a.widget("ui.menu",{version:"1.13.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=a(e.target),i=a(a.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],a.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){var t,i;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},t=a(e.target).closest(".ui-menu-item"),i=a(e.currentTarget),t[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=a(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:t=this.previousFilter||"",s=n=!1,i=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.prev(),i=a("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),t=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(t,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){var i;"icons"===e&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(t=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-t-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s<t+e&&this.activeMenu.scrollTop(i+t-s+e))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:a(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this._removeClass(e.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=e},i?0:this.delay)},_close:function(e){(e=e||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!a(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;(s=this.active?"first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(e){var t,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(t=a(this)).offset().top-i-s<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var t,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===a.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=a(this)).offset().top-i+s}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||a(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),t=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return t.test(String.prototype.trim.call(a(this).children(".ui-menu-item-wrapper").text()))})}})});
/*!
 * jQuery UI Autocomplete 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
(function($){'use strict';var selectors={'wrapper':'div[role=search]','form':'form.ax-searchform-ajax','input':'form.ax-searchform-ajax input.search-field','results':'.ax-searches-ajax','seeAll':'.axtheme-see-all-results'};ax.ajaxSearch=function(){if(!$.fn.autocomplete){return;}
var minLength=2;$(selectors.input).each(function(){var $input=$(this);var $form=$input.parents(selectors.form);var $wrapper=$input.parents(selectors.wrapper);$input.autocomplete({'appendTo':$form,'delay':500,'minLength':minLength,'source':function(request){var xhr=$.ajax({'type':'GET','url':ax.config.ajax_url,'dataType':'json','data':{'action':'axtheme_search','axtheme_term':request.term}});xhr.done(function(res){if(res.status==='success'){$wrapper.find(selectors.results).html(res.html);$('body').trigger('axAjaxSearchCompleted');}});}});$input.on('keyup search',function(){if($(this).val().length<minLength){$wrapper.find(selectors.results).html('');}});$wrapper.on('click',selectors.seeAll,function(e){e.preventDefault();$form.submit();});});};$(document).ready(function(){ax.ajaxSearch();});})(jQuery);
;(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports!=='undefined'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){'use strict';var Slick=window.Slick||{};Slick=(function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:true,adaptiveHeight:false,appendArrows:$(element),appendDots:$(element),arrows:true,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:false,autoplaySpeed:3000,centerMode:false,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('<button type="button" />').text(i+1);},dots:false,dotsClass:'slick-dots',draggable:true,easing:'linear',edgeFriction:0.35,fade:false,focusOnSelect:false,focusOnChange:false,infinite:true,initialSlide:0,lazyLoad:'ondemand',mobileFirst:false,pauseOnHover:true,pauseOnFocus:true,pauseOnDotsHover:false,respondTo:'window',responsive:null,rows:1,rtl:false,slide:'',slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:true,swipeToSlide:false,touchMove:true,touchThreshold:5,useCSS:true,useTransform:true,variableWidth:false,vertical:false,verticalSwiping:false,waitForAnimate:true,zIndex:1000};_.initials={animating:false,dragging:false,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:false,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,swiping:false,$list:null,touchObject:{},transformsEnabled:false,unslicked:false};$.extend(_,_.initials);_.activeBreakpoint=null;_.animType=null;_.animProp=null;_.breakpoints=[];_.breakpointSettings=[];_.cssTransitions=false;_.focussed=false;_.interrupted=false;_.hidden='hidden';_.paused=true;_.positionProp=null;_.respondTo=null;_.rowCount=1;_.shouldClick=true;_.$slider=$(element);_.$slidesCache=null;_.transformType=null;_.transitionType=null;_.visibilityChange='visibilitychange';_.windowWidth=0;_.windowTimer=null;dataSettings=$(element).data('slick')||{};_.options=$.extend({},_.defaults,settings,dataSettings);_.currentSlide=_.options.initialSlide;_.originalSettings=_.options;if(typeof document.mozHidden!=='undefined'){_.hidden='mozHidden';_.visibilityChange='mozvisibilitychange';}else if(typeof document.webkitHidden!=='undefined'){_.hidden='webkitHidden';_.visibilityChange='webkitvisibilitychange';}
_.autoPlay=$.proxy(_.autoPlay,_);_.autoPlayClear=$.proxy(_.autoPlayClear,_);_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);_.changeSlide=$.proxy(_.changeSlide,_);_.clickHandler=$.proxy(_.clickHandler,_);_.selectHandler=$.proxy(_.selectHandler,_);_.setPosition=$.proxy(_.setPosition,_);_.swipeHandler=$.proxy(_.swipeHandler,_);_.dragHandler=$.proxy(_.dragHandler,_);_.keyHandler=$.proxy(_.keyHandler,_);_.instanceUid=instanceUid++;_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;_.registerBreakpoints();_.init(true);}
return Slick;}());Slick.prototype.activateADA=function(){var _=this;_.$slideTrack.find('.slick-active').attr({'aria-hidden':'false'}).find('a, input, button, select').attr({'tabindex':'0'});};Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if(typeof(index)==='boolean'){addBefore=index;index=null;}else if(index<0||(index>=_.slideCount)){return false;}
_.unload();if(typeof(index)==='number'){if(index===0&&_.$slides.length===0){$(markup).appendTo(_.$slideTrack);}else if(addBefore){$(markup).insertBefore(_.$slides.eq(index));}else{$(markup).insertAfter(_.$slides.eq(index));}}else{if(addBefore===true){$(markup).prependTo(_.$slideTrack);}else{$(markup).appendTo(_.$slideTrack);}}
_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr('data-slick-index',index);});_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.animateHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.animate({height:targetHeight},_.options.speed);}};Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight();if(_.options.rtl===true&&_.options.vertical===false){targetLeft=-targetLeft;}
if(_.transformsEnabled===false){if(_.options.vertical===false){_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback);}else{_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback);}}else{if(_.cssTransitions===false){if(_.options.rtl===true){_.currentLeft=-(_.currentLeft);}
$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now);if(_.options.vertical===false){animProps[_.animType]='translate('+
now+'px, 0px)';_.$slideTrack.css(animProps);}else{animProps[_.animType]='translate(0px,'+
now+'px)';_.$slideTrack.css(animProps);}},complete:function(){if(callback){callback.call();}}});}else{_.applyTransition();targetLeft=Math.ceil(targetLeft);if(_.options.vertical===false){animProps[_.animType]='translate3d('+targetLeft+'px, 0px, 0px)';}else{animProps[_.animType]='translate3d(0px,'+targetLeft+'px, 0px)';}
_.$slideTrack.css(animProps);if(callback){setTimeout(function(){_.disableTransition();callback.call();},_.options.speed);}}}};Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;if(asNavFor&&asNavFor!==null){asNavFor=$(asNavFor).not(_.$slider);}
return asNavFor;};Slick.prototype.asNavFor=function(index){var _=this,asNavFor=_.getNavTarget();if(asNavFor!==null&&typeof asNavFor==='object'){asNavFor.each(function(){var target=$(this).slick('getSlick');if(!target.unslicked){target.slideHandler(index,true);}});}};Slick.prototype.applyTransition=function(slide){var _=this,transition={};if(_.options.fade===false){transition[_.transitionType]=_.transformType+' '+_.options.speed+'ms '+_.options.cssEase;}else{transition[_.transitionType]='opacity '+_.options.speed+'ms '+_.options.cssEase;}
if(_.options.fade===false){_.$slideTrack.css(transition);}else{_.$slides.eq(slide).css(transition);}};Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear();if(_.slideCount>_.options.slidesToShow){_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed);}};Slick.prototype.autoPlayClear=function(){var _=this;if(_.autoPlayTimer){clearInterval(_.autoPlayTimer);}};Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;if(!_.paused&&!_.interrupted&&!_.focussed){if(_.options.infinite===false){if(_.direction===1&&(_.currentSlide+1)===(_.slideCount-1)){_.direction=0;}
else if(_.direction===0){slideTo=_.currentSlide-_.options.slidesToScroll;if(_.currentSlide-1===0){_.direction=1;}}}
_.slideHandler(slideTo);}};Slick.prototype.buildArrows=function(){var _=this;if(_.options.arrows===true){_.$prevArrow=$(_.options.prevArrow).addClass('slick-arrow');_.$nextArrow=$(_.options.nextArrow).addClass('slick-arrow');if(_.slideCount>_.options.slidesToShow){_.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');_.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.prependTo(_.options.appendArrows);}
if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.appendTo(_.options.appendArrows);}
if(_.options.infinite!==true){_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');}}else{_.$prevArrow.add(_.$nextArrow).addClass('slick-hidden').attr({'aria-disabled':'true','tabindex':'-1'});}}};Slick.prototype.buildDots=function(){var _=this,i,dot;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$slider.addClass('slick-dotted');dot=$('<ul />').addClass(_.options.dotsClass);for(i=0;i<=_.getDotCount();i+=1){dot.append($('<li />').append(_.options.customPaging.call(this,_,i)));}
_.$dots=dot.appendTo(_.options.appendDots);_.$dots.find('li').first().addClass('slick-active');}};Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+':not(.slick-cloned)').addClass('slick-slide');_.slideCount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr('data-slick-index',index).data('originalStyling',$(element).attr('style')||'');});_.$slider.addClass('slick-slider');_.$slideTrack=(_.slideCount===0)?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent();_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent();_.$slideTrack.css('opacity',0);if(_.options.centerMode===true||_.options.swipeToSlide===true){_.options.slidesToScroll=1;}
$('img[data-lazy]',_.$slider).not('[src]').addClass('slick-loading');_.setupInfinite();_.buildArrows();_.buildDots();_.updateDots();_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);if(_.options.draggable===true){_.$list.addClass('draggable');}};Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;newSlides=document.createDocumentFragment();originalSlides=_.$slider.children();if(_.options.rows>0){slidesPerSection=_.options.slidesPerRow*_.options.rows;numOfSlides=Math.ceil(originalSlides.length/slidesPerSection);for(a=0;a<numOfSlides;a++){var slide=document.createElement('div');for(b=0;b<_.options.rows;b++){var row=document.createElement('div');for(c=0;c<_.options.slidesPerRow;c++){var target=(a*slidesPerSection+((b*_.options.slidesPerRow)+c));if(originalSlides.get(target)){row.appendChild(originalSlides.get(target));}}
slide.appendChild(row);}
newSlides.appendChild(slide);}
_.$slider.empty().append(newSlides);_.$slider.children().children().children().css({'width':(100/_.options.slidesPerRow)+'%','display':'inline-block'});}};Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=false;var sliderWidth=_.$slider.width();var windowWidth=window.innerWidth||$(window).width();if(_.respondTo==='window'){respondToWidth=windowWidth;}else if(_.respondTo==='slider'){respondToWidth=sliderWidth;}else if(_.respondTo==='min'){respondToWidth=Math.min(windowWidth,sliderWidth);}
if(_.options.responsive&&_.options.responsive.length&&_.options.responsive!==null){targetBreakpoint=null;for(breakpoint in _.breakpoints){if(_.breakpoints.hasOwnProperty(breakpoint)){if(_.originalSettings.mobileFirst===false){if(respondToWidth<_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint];}}else{if(respondToWidth>_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint];}}}}
if(targetBreakpoint!==null){if(_.activeBreakpoint!==null){if(targetBreakpoint!==_.activeBreakpoint||forceUpdate){_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick'){_.unslick(targetBreakpoint);}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true){_.currentSlide=_.options.initialSlide;}
_.refresh(initial);}
triggerBreakpoint=targetBreakpoint;}}else{_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick'){_.unslick(targetBreakpoint);}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true){_.currentSlide=_.options.initialSlide;}
_.refresh(initial);}
triggerBreakpoint=targetBreakpoint;}}else{if(_.activeBreakpoint!==null){_.activeBreakpoint=null;_.options=_.originalSettings;if(initial===true){_.currentSlide=_.options.initialSlide;}
_.refresh(initial);triggerBreakpoint=targetBreakpoint;}}
if(!initial&&triggerBreakpoint!==false){_.$slider.trigger('breakpoint',[_,triggerBreakpoint]);}}};Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;if($target.is('a')){event.preventDefault();}
if(!$target.is('li')){$target=$target.closest('li');}
unevenOffset=(_.slideCount%_.options.slidesToScroll!==0);indexOffset=unevenOffset?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll;switch(event.data.message){case'previous':slideOffset=indexOffset===0?_.options.slidesToScroll:_.options.slidesToShow-indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide-slideOffset,false,dontAnimate);}
break;case'next':slideOffset=indexOffset===0?_.options.slidesToScroll:indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide+slideOffset,false,dontAnimate);}
break;case'index':var index=event.data.index===0?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),false,dontAnimate);$target.children().trigger('focus');break;default:return;}};Slick.prototype.checkNavigable=function(index){var _=this,navigables,prevNavigable;navigables=_.getNavigableIndexes();prevNavigable=0;if(index>navigables[navigables.length-1]){index=navigables[navigables.length-1];}else{for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break;}
prevNavigable=navigables[n];}}
return index;};Slick.prototype.cleanUpEvents=function(){var _=this;if(_.options.dots&&_.$dots!==null){$('li',_.$dots).off('click.slick',_.changeSlide).off('mouseenter.slick',$.proxy(_.interrupt,_,true)).off('mouseleave.slick',$.proxy(_.interrupt,_,false));if(_.options.accessibility===true){_.$dots.off('keydown.slick',_.keyHandler);}}
_.$slider.off('focus.slick blur.slick');if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow&&_.$prevArrow.off('click.slick',_.changeSlide);_.$nextArrow&&_.$nextArrow.off('click.slick',_.changeSlide);if(_.options.accessibility===true){_.$prevArrow&&_.$prevArrow.off('keydown.slick',_.keyHandler);_.$nextArrow&&_.$nextArrow.off('keydown.slick',_.keyHandler);}}
_.$list.off('touchstart.slick mousedown.slick',_.swipeHandler);_.$list.off('touchmove.slick mousemove.slick',_.swipeHandler);_.$list.off('touchend.slick mouseup.slick',_.swipeHandler);_.$list.off('touchcancel.slick mouseleave.slick',_.swipeHandler);_.$list.off('click.slick',_.clickHandler);$(document).off(_.visibilityChange,_.visibility);_.cleanUpSlideEvents();if(_.options.accessibility===true){_.$list.off('keydown.slick',_.keyHandler);}
if(_.options.focusOnSelect===true){$(_.$slideTrack).children().off('click.slick',_.selectHandler);}
$(window).off('orientationchange.slick.slick-'+_.instanceUid,_.orientationChange);$(window).off('resize.slick.slick-'+_.instanceUid,_.resize);$('[draggable!=true]',_.$slideTrack).off('dragstart',_.preventDefault);$(window).off('load.slick.slick-'+_.instanceUid,_.setPosition);};Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off('mouseenter.slick',$.proxy(_.interrupt,_,true));_.$list.off('mouseleave.slick',$.proxy(_.interrupt,_,false));};Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;if(_.options.rows>0){originalSlides=_.$slides.children().children();originalSlides.removeAttr('style');_.$slider.empty().append(originalSlides);}};Slick.prototype.clickHandler=function(event){var _=this;if(_.shouldClick===false){event.stopImmediatePropagation();event.stopPropagation();event.preventDefault();}};Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear();_.touchObject={};_.cleanUpEvents();$('.slick-cloned',_.$slider).detach();if(_.$dots){_.$dots.remove();}
if(_.$prevArrow&&_.$prevArrow.length){_.$prevArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove();}}
if(_.$nextArrow&&_.$nextArrow.length){_.$nextArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove();}}
if(_.$slides){_.$slides.removeClass('slick-slide slick-active slick-center slick-visible slick-current').removeAttr('aria-hidden').removeAttr('data-slick-index').each(function(){$(this).attr('style',$(this).data('originalStyling'));});_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.detach();_.$list.detach();_.$slider.append(_.$slides);}
_.cleanUpRows();_.$slider.removeClass('slick-slider');_.$slider.removeClass('slick-initialized');_.$slider.removeClass('slick-dotted');_.unslicked=true;if(!refresh){_.$slider.trigger('destroy',[_]);}};Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]='';if(_.options.fade===false){_.$slideTrack.css(transition);}else{_.$slides.eq(slide).css(transition);}};Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex});_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback);}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex});if(callback){setTimeout(function(){_.disableTransition(slideIndex);callback.call();},_.options.speed);}}};Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing);}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2});}};Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;if(filter!==null){_.$slidesCache=_.$slides;_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.filter(filter).appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.focusHandler=function(){var _=this;_.$slider.off('focus.slick blur.slick').on('focus.slick','*',function(event){var $sf=$(this);setTimeout(function(){if(_.options.pauseOnFocus){if($sf.is(':focus')){_.focussed=true;_.autoPlay();}}},0);}).on('blur.slick','*',function(event){var $sf=$(this);if(_.options.pauseOnFocus){_.focussed=false;_.autoPlay();}});};Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _=this;return _.currentSlide;};Slick.prototype.getDotCount=function(){var _=this;var breakPoint=0;var counter=0;var pagerQty=0;if(_.options.infinite===true){if(_.slideCount<=_.options.slidesToShow){++pagerQty;}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}}}else if(_.options.centerMode===true){pagerQty=_.slideCount;}else if(!_.options.asNavFor){pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll);}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}}
return pagerQty-1;};Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide,coef;_.slideOffset=0;verticalHeight=_.$slides.first().outerHeight(true);if(_.options.infinite===true){if(_.slideCount>_.options.slidesToShow){_.slideOffset=(_.slideWidth*_.options.slidesToShow)*-1;coef=-1
if(_.options.vertical===true&&_.options.centerMode===true){if(_.options.slidesToShow===2){coef=-1.5;}else if(_.options.slidesToShow===1){coef=-2}}
verticalOffset=(verticalHeight*_.options.slidesToShow)*coef;}
if(_.slideCount%_.options.slidesToScroll!==0){if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow){if(slideIndex>_.slideCount){_.slideOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth)*-1;verticalOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight)*-1;}else{_.slideOffset=((_.slideCount%_.options.slidesToScroll)*_.slideWidth)*-1;verticalOffset=((_.slideCount%_.options.slidesToScroll)*verticalHeight)*-1;}}}}else{if(slideIndex+_.options.slidesToShow>_.slideCount){_.slideOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*_.slideWidth;verticalOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*verticalHeight;}}
if(_.slideCount<=_.options.slidesToShow){_.slideOffset=0;verticalOffset=0;}
if(_.options.centerMode===true&&_.slideCount<=_.options.slidesToShow){_.slideOffset=((_.slideWidth*Math.floor(_.options.slidesToShow))/2)-((_.slideWidth*_.slideCount)/2);}else if(_.options.centerMode===true&&_.options.infinite===true){_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth;}else if(_.options.centerMode===true){_.slideOffset=0;_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2);}
if(_.options.vertical===false){targetLeft=((slideIndex*_.slideWidth)*-1)+_.slideOffset;}else{targetLeft=((slideIndex*verticalHeight)*-1)+verticalOffset;}
if(_.options.variableWidth===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);}else{targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow);}
if(_.options.rtl===true){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;}else{targetLeft=0;}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;}
if(_.options.centerMode===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);}else{targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow+1);}
if(_.options.rtl===true){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;}else{targetLeft=0;}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;}
targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2;}}
return targetLeft;};Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _=this;return _.options[option];};Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;if(_.options.infinite===false){max=_.slideCount;}else{breakPoint=_.options.slidesToScroll*-1;counter=_.options.slidesToScroll*-1;max=_.slideCount*2;}
while(breakPoint<max){indexes.push(breakPoint);breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}
return indexes;};Slick.prototype.getSlick=function(){return this;};Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,swipeTarget,centerOffset;centerOffset=_.options.centerMode===true?Math.floor(_.$list.width()/2):0;swipeTarget=(_.swipeLeft*-1)+centerOffset;if(_.options.swipeToSlide===true){_.$slideTrack.find('.slick-slide').each(function(index,slide){var slideOuterWidth,slideOffset,slideRightBoundary;slideOuterWidth=$(slide).outerWidth();slideOffset=slide.offsetLeft;if(_.options.centerMode!==true){slideOffset+=(slideOuterWidth/2);}
slideRightBoundary=slideOffset+(slideOuterWidth);if(swipeTarget<slideRightBoundary){swipedSlide=slide;return false;}});slidesTraversed=Math.abs($(swipedSlide).attr('data-slick-index')-_.currentSlide)||1;return slidesTraversed;}else{return _.options.slidesToScroll;}};Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _=this;_.changeSlide({data:{message:'index',index:parseInt(slide)}},dontAnimate);};Slick.prototype.init=function(creation){var _=this;if(!$(_.$slider).hasClass('slick-initialized')){$(_.$slider).addClass('slick-initialized');_.buildRows();_.buildOut();_.setProps();_.startLoad();_.loadSlider();_.initializeEvents();_.updateArrows();_.updateDots();_.checkResponsive(true);_.focusHandler();}
if(creation){_.$slider.trigger('init',[_]);}
if(_.options.accessibility===true){_.initADA();}
if(_.options.autoplay){_.paused=false;_.autoPlay();}};Slick.prototype.initADA=function(){var _=this,numDotGroups=Math.ceil(_.slideCount/_.options.slidesToShow),tabControlIndexes=_.getNavigableIndexes().filter(function(val){return(val>=0)&&(val<_.slideCount);});_.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({'aria-hidden':'true','tabindex':'-1'}).find('a, input, button, select').attr({'tabindex':'-1'});if(_.$dots!==null){_.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i){var slideControlIndex=tabControlIndexes.indexOf(i);$(this).attr({'role':'tabpanel','id':'slick-slide'+_.instanceUid+i,'tabindex':-1});if(slideControlIndex!==-1){var ariaButtonControl='slick-slide-control'+_.instanceUid+slideControlIndex
if($('#'+ariaButtonControl).length){$(this).attr({'aria-describedby':ariaButtonControl});}}});_.$dots.attr('role','tablist').find('li').each(function(i){var mappedSlideIndex=tabControlIndexes[i];$(this).attr({'role':'presentation'});$(this).find('button').first().attr({'role':'tab','id':'slick-slide-control'+_.instanceUid+i,'aria-controls':'slick-slide'+_.instanceUid+mappedSlideIndex,'aria-label':(i+1)+' of '+numDotGroups,'aria-selected':null,'tabindex':'-1'});}).eq(_.currentSlide).find('button').attr({'aria-selected':'true','tabindex':'0'}).end();}
for(var i=_.currentSlide,max=i+_.options.slidesToShow;i<max;i++){if(_.options.focusOnChange){_.$slides.eq(i).attr({'tabindex':'0'});}else{_.$slides.eq(i).removeAttr('tabindex');}}
_.activateADA();};Slick.prototype.initArrowEvents=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.off('click.slick').on('click.slick',{message:'previous'},_.changeSlide);_.$nextArrow.off('click.slick').on('click.slick',{message:'next'},_.changeSlide);if(_.options.accessibility===true){_.$prevArrow.on('keydown.slick',_.keyHandler);_.$nextArrow.on('keydown.slick',_.keyHandler);}}};Slick.prototype.initDotEvents=function(){var _=this;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){$('li',_.$dots).on('click.slick',{message:'index'},_.changeSlide);if(_.options.accessibility===true){_.$dots.on('keydown.slick',_.keyHandler);}}
if(_.options.dots===true&&_.options.pauseOnDotsHover===true&&_.slideCount>_.options.slidesToShow){$('li',_.$dots).on('mouseenter.slick',$.proxy(_.interrupt,_,true)).on('mouseleave.slick',$.proxy(_.interrupt,_,false));}};Slick.prototype.initSlideEvents=function(){var _=this;if(_.options.pauseOnHover){_.$list.on('mouseenter.slick',$.proxy(_.interrupt,_,true));_.$list.on('mouseleave.slick',$.proxy(_.interrupt,_,false));}};Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents();_.initDotEvents();_.initSlideEvents();_.$list.on('touchstart.slick mousedown.slick',{action:'start'},_.swipeHandler);_.$list.on('touchmove.slick mousemove.slick',{action:'move'},_.swipeHandler);_.$list.on('touchend.slick mouseup.slick',{action:'end'},_.swipeHandler);_.$list.on('touchcancel.slick mouseleave.slick',{action:'end'},_.swipeHandler);_.$list.on('click.slick',_.clickHandler);$(document).on(_.visibilityChange,$.proxy(_.visibility,_));if(_.options.accessibility===true){_.$list.on('keydown.slick',_.keyHandler);}
if(_.options.focusOnSelect===true){$(_.$slideTrack).children().on('click.slick',_.selectHandler);}
$(window).on('orientationchange.slick.slick-'+_.instanceUid,$.proxy(_.orientationChange,_));$(window).on('resize.slick.slick-'+_.instanceUid,$.proxy(_.resize,_));$('[draggable!=true]',_.$slideTrack).on('dragstart',_.preventDefault);$(window).on('load.slick.slick-'+_.instanceUid,_.setPosition);$(_.setPosition);};Slick.prototype.initUI=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.show();_.$nextArrow.show();}
if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.show();}};Slick.prototype.keyHandler=function(event){var _=this;if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')){if(event.keyCode===37&&_.options.accessibility===true){_.changeSlide({data:{message:_.options.rtl===true?'next':'previous'}});}else if(event.keyCode===39&&_.options.accessibility===true){_.changeSlide({data:{message:_.options.rtl===true?'previous':'next'}});}}};Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$('img[data-lazy]',imagesScope).each(function(){var image=$(this),imageSource=$(this).attr('data-lazy'),imageSrcSet=$(this).attr('data-srcset'),imageSizes=$(this).attr('data-sizes')||_.$slider.attr('data-sizes'),imageToLoad=document.createElement('img');imageToLoad.onload=function(){image.animate({opacity:0},100,function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes){image.attr('sizes',imageSizes);}}
image.attr('src',imageSource).animate({opacity:1},200,function(){image.removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading');});_.$slider.trigger('lazyLoaded',[_,image,imageSource]);});};imageToLoad.onerror=function(){image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource]);};imageToLoad.src=imageSource;});}
if(_.options.centerMode===true){if(_.options.infinite===true){rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);rangeEnd=rangeStart+_.options.slidesToShow+2;}else{rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide;}}else{rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow);if(_.options.fade===true){if(rangeStart>0)rangeStart--;if(rangeEnd<=_.slideCount)rangeEnd++;}}
loadRange=_.$slider.find('.slick-slide').slice(rangeStart,rangeEnd);if(_.options.lazyLoad==='anticipated'){var prevSlide=rangeStart-1,nextSlide=rangeEnd,$slides=_.$slider.find('.slick-slide');for(var i=0;i<_.options.slidesToScroll;i++){if(prevSlide<0)prevSlide=_.slideCount-1;loadRange=loadRange.add($slides.eq(prevSlide));loadRange=loadRange.add($slides.eq(nextSlide));prevSlide--;nextSlide++;}}
loadImages(loadRange);if(_.slideCount<=_.options.slidesToShow){cloneRange=_.$slider.find('.slick-slide');loadImages(cloneRange);}else
if(_.currentSlide>=_.slideCount-_.options.slidesToShow){cloneRange=_.$slider.find('.slick-cloned').slice(0,_.options.slidesToShow);loadImages(cloneRange);}else if(_.currentSlide===0){cloneRange=_.$slider.find('.slick-cloned').slice(_.options.slidesToShow*-1);loadImages(cloneRange);}};Slick.prototype.loadSlider=function(){var _=this;_.setPosition();_.$slideTrack.css({opacity:1});_.$slider.removeClass('slick-loading');_.initUI();if(_.options.lazyLoad==='progressive'){_.progressiveLazyLoad();}};Slick.prototype.next=Slick.prototype.slickNext=function(){var _=this;_.changeSlide({data:{message:'next'}});};Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive();_.setPosition();};Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear();_.paused=true;};Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay();_.options.autoplay=true;_.paused=false;_.focussed=false;_.interrupted=false;};Slick.prototype.postSlide=function(index){var _=this;if(!_.unslicked){_.$slider.trigger('afterChange',[_,index]);_.animating=false;if(_.slideCount>_.options.slidesToShow){_.setPosition();}
_.swipeLeft=null;if(_.options.autoplay){_.autoPlay();}
if(_.options.accessibility===true){_.initADA();if(_.options.focusOnChange){var $currentSlide=$(_.$slides.get(_.currentSlide));$currentSlide.attr('tabindex',0).focus();}}}};Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _=this;_.changeSlide({data:{message:'previous'}});};Slick.prototype.preventDefault=function(event){event.preventDefault();};Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$('img[data-lazy]',_.$slider),image,imageSource,imageSrcSet,imageSizes,imageToLoad;if($imgsToLoad.length){image=$imgsToLoad.first();imageSource=image.attr('data-lazy');imageSrcSet=image.attr('data-srcset');imageSizes=image.attr('data-sizes')||_.$slider.attr('data-sizes');imageToLoad=document.createElement('img');imageToLoad.onload=function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes){image.attr('sizes',imageSizes);}}
image.attr('src',imageSource).removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading');if(_.options.adaptiveHeight===true){_.setPosition();}
_.$slider.trigger('lazyLoaded',[_,image,imageSource]);_.progressiveLazyLoad();};imageToLoad.onerror=function(){if(tryCount<3){setTimeout(function(){_.progressiveLazyLoad(tryCount+1);},500);}else{image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource]);_.progressiveLazyLoad();}};imageToLoad.src=imageSource;}else{_.$slider.trigger('allImagesLoaded',[_]);}};Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow;if(!_.options.infinite&&(_.currentSlide>lastVisibleIndex)){_.currentSlide=lastVisibleIndex;}
if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0;}
currentSlide=_.currentSlide;_.destroy(true);$.extend(_,_.initials,{currentSlide:currentSlide});_.init();if(!initializing){_.changeSlide({data:{message:'index',index:currentSlide}},false);}};Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if($.type(responsiveSettings)==='array'&&responsiveSettings.length){_.respondTo=_.options.respondTo||'window';for(breakpoint in responsiveSettings){l=_.breakpoints.length-1;if(responsiveSettings.hasOwnProperty(breakpoint)){currentBreakpoint=responsiveSettings[breakpoint].breakpoint;while(l>=0){if(_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint){_.breakpoints.splice(l,1);}
l--;}
_.breakpoints.push(currentBreakpoint);_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings;}}
_.breakpoints.sort(function(a,b){return(_.options.mobileFirst)?a-b:b-a;});}};Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass('slick-slide');_.slideCount=_.$slides.length;if(_.currentSlide>=_.slideCount&&_.currentSlide!==0){_.currentSlide=_.currentSlide-_.options.slidesToScroll;}
if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0;}
_.registerBreakpoints();_.setProps();_.setupInfinite();_.buildArrows();_.updateArrows();_.initArrowEvents();_.buildDots();_.updateDots();_.initDotEvents();_.cleanUpSlideEvents();_.initSlideEvents();_.checkResponsive(false,true);if(_.options.focusOnSelect===true){$(_.$slideTrack).children().on('click.slick',_.selectHandler);}
_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);_.setPosition();_.focusHandler();_.paused=!_.options.autoplay;_.autoPlay();_.$slider.trigger('reInit',[_]);};Slick.prototype.resize=function(){var _=this;if($(window).width()!==_.windowWidth){clearTimeout(_.windowDelay);_.windowDelay=window.setTimeout(function(){_.windowWidth=$(window).width();_.checkResponsive();if(!_.unslicked){_.setPosition();}},50);}};Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(typeof(index)==='boolean'){removeBefore=index;index=removeBefore===true?0:_.slideCount-1;}else{index=removeBefore===true?--index:index;}
if(_.slideCount<1||index<0||index>_.slideCount-1){return false;}
_.unload();if(removeAll===true){_.$slideTrack.children().remove();}else{_.$slideTrack.children(this.options.slide).eq(index).remove();}
_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;if(_.options.rtl===true){position=-position;}
x=_.positionProp=='left'?Math.ceil(position)+'px':'0px';y=_.positionProp=='top'?Math.ceil(position)+'px':'0px';positionProps[_.positionProp]=position;if(_.transformsEnabled===false){_.$slideTrack.css(positionProps);}else{positionProps={};if(_.cssTransitions===false){positionProps[_.animType]='translate('+x+', '+y+')';_.$slideTrack.css(positionProps);}else{positionProps[_.animType]='translate3d('+x+', '+y+', 0px)';_.$slideTrack.css(positionProps);}}};Slick.prototype.setDimensions=function(){var _=this;if(_.options.vertical===false){if(_.options.centerMode===true){_.$list.css({padding:('0px '+_.options.centerPadding)});}}else{_.$list.height(_.$slides.first().outerHeight(true)*_.options.slidesToShow);if(_.options.centerMode===true){_.$list.css({padding:(_.options.centerPadding+' 0px')});}}
_.listWidth=_.$list.width();_.listHeight=_.$list.height();if(_.options.vertical===false&&_.options.variableWidth===false){_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);_.$slideTrack.width(Math.ceil((_.slideWidth*_.$slideTrack.children('.slick-slide').length)));}else if(_.options.variableWidth===true){_.$slideTrack.width(5000*_.slideCount);}else{_.slideWidth=Math.ceil(_.listWidth);_.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true)*_.$slideTrack.children('.slick-slide').length)));}
var offset=_.$slides.first().outerWidth(true)-_.$slides.first().width();if(_.options.variableWidth===false)_.$slideTrack.children('.slick-slide').width(_.slideWidth-offset);};Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each(function(index,element){targetLeft=(_.slideWidth*index)*-1;if(_.options.rtl===true){$(element).css({position:'relative',right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0});}else{$(element).css({position:'relative',left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0});}});_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1});};Slick.prototype.setHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.css('height',targetHeight);}};Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=false,type;if($.type(arguments[0])==='object'){option=arguments[0];refresh=arguments[1];type='multiple';}else if($.type(arguments[0])==='string'){option=arguments[0];value=arguments[1];refresh=arguments[2];if(arguments[0]==='responsive'&&$.type(arguments[1])==='array'){type='responsive';}else if(typeof arguments[1]!=='undefined'){type='single';}}
if(type==='single'){_.options[option]=value;}else if(type==='multiple'){$.each(option,function(opt,val){_.options[opt]=val;});}else if(type==='responsive'){for(item in value){if($.type(_.options.responsive)!=='array'){_.options.responsive=[value[item]];}else{l=_.options.responsive.length-1;while(l>=0){if(_.options.responsive[l].breakpoint===value[item].breakpoint){_.options.responsive.splice(l,1);}
l--;}
_.options.responsive.push(value[item]);}}}
if(refresh){_.unload();_.reinit();}};Slick.prototype.setPosition=function(){var _=this;_.setDimensions();_.setHeight();if(_.options.fade===false){_.setCSS(_.getLeft(_.currentSlide));}else{_.setFade();}
_.$slider.trigger('setPosition',[_]);};Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=_.options.vertical===true?'top':'left';if(_.positionProp==='top'){_.$slider.addClass('slick-vertical');}else{_.$slider.removeClass('slick-vertical');}
if(bodyStyle.WebkitTransition!==undefined||bodyStyle.MozTransition!==undefined||bodyStyle.msTransition!==undefined){if(_.options.useCSS===true){_.cssTransitions=true;}}
if(_.options.fade){if(typeof _.options.zIndex==='number'){if(_.options.zIndex<3){_.options.zIndex=3;}}else{_.options.zIndex=_.defaults.zIndex;}}
if(bodyStyle.OTransform!==undefined){_.animType='OTransform';_.transformType='-o-transform';_.transitionType='OTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}
if(bodyStyle.MozTransform!==undefined){_.animType='MozTransform';_.transformType='-moz-transform';_.transitionType='MozTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=false;}
if(bodyStyle.webkitTransform!==undefined){_.animType='webkitTransform';_.transformType='-webkit-transform';_.transitionType='webkitTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}
if(bodyStyle.msTransform!==undefined){_.animType='msTransform';_.transformType='-ms-transform';_.transitionType='msTransition';if(bodyStyle.msTransform===undefined)_.animType=false;}
if(bodyStyle.transform!==undefined&&_.animType!==false){_.animType='transform';_.transformType='transform';_.transitionType='transition';}
_.transformsEnabled=_.options.useTransform&&(_.animType!==null&&_.animType!==false);};Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find('.slick-slide').removeClass('slick-active slick-center slick-current').attr('aria-hidden','true');_.$slides.eq(index).addClass('slick-current');if(_.options.centerMode===true){var evenCoef=_.options.slidesToShow%2===0?1:0;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.infinite===true){if(index>=centerOffset&&index<=(_.slideCount-1)-centerOffset){_.$slides.slice(index-centerOffset+evenCoef,index+centerOffset+1).addClass('slick-active').attr('aria-hidden','false');}else{indexOffset=_.options.slidesToShow+index;allSlides.slice(indexOffset-centerOffset+1+evenCoef,indexOffset+centerOffset+2).addClass('slick-active').attr('aria-hidden','false');}
if(index===0){allSlides.eq(_.options.slidesToShow+_.slideCount+1).addClass('slick-center');}else if(index===_.slideCount-1){allSlides.eq(_.options.slidesToShow).addClass('slick-center');}}
_.$slides.eq(index).addClass('slick-center');}else{if(index>=0&&index<=(_.slideCount-_.options.slidesToShow)){_.$slides.slice(index,index+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false');}else if(allSlides.length<=_.options.slidesToShow){allSlides.addClass('slick-active').attr('aria-hidden','false');}else{remainder=_.slideCount%_.options.slidesToShow;indexOffset=_.options.infinite===true?_.options.slidesToShow+index:index;if(_.options.slidesToShow==_.options.slidesToScroll&&(_.slideCount-index)<_.options.slidesToShow){allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass('slick-active').attr('aria-hidden','false');}else{allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false');}}}
if(_.options.lazyLoad==='ondemand'||_.options.lazyLoad==='anticipated'){_.lazyLoad();}};Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(_.options.fade===true){_.options.centerMode=false;}
if(_.options.infinite===true&&_.options.fade===false){slideIndex=null;if(_.slideCount>_.options.slidesToShow){if(_.options.centerMode===true){infiniteCount=_.options.slidesToShow+1;}else{infiniteCount=_.options.slidesToShow;}
for(i=_.slideCount;i>(_.slideCount-
infiniteCount);i-=1){slideIndex=i-1;$(_.$slides[slideIndex]).clone(true).attr('id','').attr('data-slick-index',slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass('slick-cloned');}
for(i=0;i<infiniteCount+_.slideCount;i+=1){slideIndex=i;$(_.$slides[slideIndex]).clone(true).attr('id','').attr('data-slick-index',slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass('slick-cloned');}
_.$slideTrack.find('.slick-cloned').find('[id]').each(function(){$(this).attr('id','');});}}};Slick.prototype.interrupt=function(toggle){var _=this;if(!toggle){_.autoPlay();}
_.interrupted=toggle;};Slick.prototype.selectHandler=function(event){var _=this;var targetElement=$(event.target).is('.slick-slide')?$(event.target):$(event.target).parents('.slick-slide');var index=parseInt(targetElement.attr('data-slick-index'));if(!index)index=0;if(_.slideCount<=_.options.slidesToShow){_.slideHandler(index,false,true);return;}
_.slideHandler(index);};Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;sync=sync||false;if(_.animating===true&&_.options.waitForAnimate===true){return;}
if(_.options.fade===true&&_.currentSlide===index){return;}
if(sync===false){_.asNavFor(index);}
targetSlide=index;targetLeft=_.getLeft(targetSlide);slideLeft=_.getLeft(_.currentSlide);_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;if(_.options.infinite===false&&_.options.centerMode===false&&(index<0||index>_.getDotCount()*_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});}else{_.postSlide(targetSlide);}}
return;}else if(_.options.infinite===false&&_.options.centerMode===true&&(index<0||index>(_.slideCount-_.options.slidesToScroll))){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});}else{_.postSlide(targetSlide);}}
return;}
if(_.options.autoplay){clearInterval(_.autoPlayTimer);}
if(targetSlide<0){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=_.slideCount-(_.slideCount%_.options.slidesToScroll);}else{animSlide=_.slideCount+targetSlide;}}else if(targetSlide>=_.slideCount){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=0;}else{animSlide=targetSlide-_.slideCount;}}else{animSlide=targetSlide;}
_.animating=true;_.$slider.trigger('beforeChange',[_,_.currentSlide,animSlide]);oldSlide=_.currentSlide;_.currentSlide=animSlide;_.setSlideClasses(_.currentSlide);if(_.options.asNavFor){navTarget=_.getNavTarget();navTarget=navTarget.slick('getSlick');if(navTarget.slideCount<=navTarget.options.slidesToShow){navTarget.setSlideClasses(_.currentSlide);}}
_.updateDots();_.updateArrows();if(_.options.fade===true){if(dontAnimate!==true){_.fadeSlideOut(oldSlide);_.fadeSlide(animSlide,function(){_.postSlide(animSlide);});}else{_.postSlide(animSlide);}
_.animateHeight();return;}
if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(targetLeft,function(){_.postSlide(animSlide);});}else{_.postSlide(animSlide);}};Slick.prototype.startLoad=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.hide();_.$nextArrow.hide();}
if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.hide();}
_.$slider.addClass('slick-loading');};Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;xDist=_.touchObject.startX-_.touchObject.curX;yDist=_.touchObject.startY-_.touchObject.curY;r=Math.atan2(yDist,xDist);swipeAngle=Math.round(r*180/Math.PI);if(swipeAngle<0){swipeAngle=360-Math.abs(swipeAngle);}
if((swipeAngle<=45)&&(swipeAngle>=0)){return(_.options.rtl===false?'left':'right');}
if((swipeAngle<=360)&&(swipeAngle>=315)){return(_.options.rtl===false?'left':'right');}
if((swipeAngle>=135)&&(swipeAngle<=225)){return(_.options.rtl===false?'right':'left');}
if(_.options.verticalSwiping===true){if((swipeAngle>=35)&&(swipeAngle<=135)){return'down';}else{return'up';}}
return'vertical';};Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;_.dragging=false;_.swiping=false;if(_.scrolling){_.scrolling=false;return false;}
_.interrupted=false;_.shouldClick=(_.touchObject.swipeLength>10)?false:true;if(_.touchObject.curX===undefined){return false;}
if(_.touchObject.edgeHit===true){_.$slider.trigger('edge',[_,_.swipeDirection()]);}
if(_.touchObject.swipeLength>=_.touchObject.minSwipe){direction=_.swipeDirection();switch(direction){case'left':case'down':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount();_.currentDirection=0;break;case'right':case'up':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount();_.currentDirection=1;break;default:return;}
if(direction!='vertical'){_.slideHandler(slideCount);_.touchObject={};_.$slider.trigger('swipe',[_,direction]);}}else{if(_.touchObject.startX!==_.touchObject.curX){_.slideHandler(_.currentSlide);_.touchObject={};}}};Slick.prototype.swipeHandler=function(event){var _=this;if((_.options.swipe===false)||('ontouchend'in document&&_.options.swipe===false)){return;}else if(_.options.draggable===false&&event.type.indexOf('mouse')!==-1){return;}
_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?event.originalEvent.touches.length:1;_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold;if(_.options.verticalSwiping===true){_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold;}
switch(event.data.action){case'start':_.swipeStart(event);break;case'move':_.swipeMove(event);break;case'end':_.swipeEnd(event);break;}};Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=false,curLeft,swipeDirection,swipeLength,positionOffset,touches,verticalSwipeLength;touches=event.originalEvent!==undefined?event.originalEvent.touches:null;if(!_.dragging||_.scrolling||touches&&touches.length!==1){return false;}
curLeft=_.getLeft(_.currentSlide);_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2)));verticalSwipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)));if(!_.options.verticalSwiping&&!_.swiping&&verticalSwipeLength>4){_.scrolling=true;return false;}
if(_.options.verticalSwiping===true){_.touchObject.swipeLength=verticalSwipeLength;}
swipeDirection=_.swipeDirection();if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){_.swiping=true;event.preventDefault();}
positionOffset=(_.options.rtl===false?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1);if(_.options.verticalSwiping===true){positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1;}
swipeLength=_.touchObject.swipeLength;_.touchObject.edgeHit=false;if(_.options.infinite===false){if((_.currentSlide===0&&swipeDirection==='right')||(_.currentSlide>=_.getDotCount()&&swipeDirection==='left')){swipeLength=_.touchObject.swipeLength*_.options.edgeFriction;_.touchObject.edgeHit=true;}}
if(_.options.vertical===false){_.swipeLeft=curLeft+swipeLength*positionOffset;}else{_.swipeLeft=curLeft+(swipeLength*(_.$list.height()/_.listWidth))*positionOffset;}
if(_.options.verticalSwiping===true){_.swipeLeft=curLeft+swipeLength*positionOffset;}
if(_.options.fade===true||_.options.touchMove===false){return false;}
if(_.animating===true){_.swipeLeft=null;return false;}
_.setCSS(_.swipeLeft);};Slick.prototype.swipeStart=function(event){var _=this,touches;_.interrupted=true;if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){_.touchObject={};return false;}
if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined){touches=event.originalEvent.touches[0];}
_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;_.dragging=true;};Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;if(_.$slidesCache!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.unload=function(){var _=this;$('.slick-cloned',_.$slider).remove();if(_.$dots){_.$dots.remove();}
if(_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove();}
if(_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove();}
_.$slides.removeClass('slick-slide slick-active slick-visible slick-current').attr('aria-hidden','true').css('width','');};Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger('unslick',[_,fromBreakpoint]);_.destroy();};Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow&&!_.options.infinite){_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');if(_.currentSlide===0){_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow&&_.options.centerMode===false){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');}else if(_.currentSlide>=_.slideCount-1&&_.options.centerMode===true){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');}}};Slick.prototype.updateDots=function(){var _=this;if(_.$dots!==null){_.$dots.find('li').removeClass('slick-active').end();_.$dots.find('li').eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass('slick-active');}};Slick.prototype.visibility=function(){var _=this;if(_.options.autoplay){if(document[_.hidden]){_.interrupted=true;}else{_.interrupted=false;}}};$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++){if(typeof opt=='object'||typeof opt=='undefined')
_[i].slick=new Slick(_[i],opt);else
ret=_[i].slick[opt].apply(_[i].slick,args);if(typeof ret!='undefined')return ret;}
return _;};}));(function(root,factory){if(typeof define==='function'&&define.amd){define([],factory);}else if(typeof module==='object'&&module.exports){module.exports=factory();}else{root.SimpleLightbox=factory();}}(this,function(){function assign(target){for(var i=1;i<arguments.length;i++){var obj=arguments[i];if(obj){for(var key in obj){obj.hasOwnProperty(key)&&(target[key]=obj[key]);}}}
return target;}
function addClass(element,className){if(element&&className){element.className+=' '+className;}}
function removeClass(element,className){if(element&&className){element.className=element.className.replace(new RegExp('(\\s|^)'+className+'(\\s|$)'),' ').trim();}}
function parseHtml(html){var div=document.createElement('div');div.innerHTML=html.trim();return div.childNodes[0];}
function matches(el,selector){return(el.matches||el.matchesSelector||el.msMatchesSelector).call(el,selector);}
function getWindowHeight(){return'innerHeight'in window?window.innerHeight:document.documentElement.offsetHeight;}
function SimpleLightbox(options){this.init.apply(this,arguments);}
SimpleLightbox.defaults={elementClass:'',elementLoadingClass:'slbLoading',htmlClass:'slbActive',closeBtnClass:'',nextBtnClass:'',prevBtnClass:'',loadingTextClass:'',closeBtnCaption:'Close',nextBtnCaption:'Next',prevBtnCaption:'Previous',loadingCaption:'Loading...',bindToItems:true,closeOnOverlayClick:true,closeOnEscapeKey:true,nextOnImageClick:true,showCaptions:true,captionAttribute:'title',urlAttribute:'href',startAt:0,loadingTimeout:100,appendTarget:'body',beforeSetContent:null,beforeClose:null,afterClose:null,beforeDestroy:null,afterDestroy:null,videoRegex:new RegExp(/youtube.com|vimeo.com/)};assign(SimpleLightbox.prototype,{init:function(options){options=this.options=assign({},SimpleLightbox.defaults,options);var self=this;var elements;if(options.$items){elements=options.$items.get();}
if(options.elements){elements=[].slice.call(typeof options.elements==='string'?document.querySelectorAll(options.elements):options.elements);}
this.eventRegistry={lightbox:[],thumbnails:[]};this.items=[];this.captions=[];if(elements){elements.forEach(function(element,index){self.items.push(element.getAttribute(options.urlAttribute));self.captions.push(element.getAttribute(options.captionAttribute));if(options.bindToItems){self.addEvent(element,'click',function(e){e.preventDefault();self.showPosition(index);},'thumbnails');}});}
if(options.items){this.items=options.items;}
if(options.captions){this.captions=options.captions;}},addEvent:function(element,eventName,callback,scope){this.eventRegistry[scope||'lightbox'].push({element:element,eventName:eventName,callback:callback});element.addEventListener(eventName,callback);return this;},removeEvents:function(scope){this.eventRegistry[scope].forEach(function(item){item.element.removeEventListener(item.eventName,item.callback);});this.eventRegistry[scope]=[];return this;},next:function(){return this.showPosition(this.currentPosition+1);},prev:function(){return this.showPosition(this.currentPosition-1);},normalizePosition:function(position){if(position>=this.items.length){position=0;}else if(position<0){position=this.items.length-1;}
return position;},showPosition:function(position){var newPosition=this.normalizePosition(position);if(typeof this.currentPosition!=='undefined'){this.direction=newPosition>this.currentPosition?'next':'prev';}
this.currentPosition=newPosition;return this.setupLightboxHtml().prepareItem(this.currentPosition,this.setContent).show();},loading:function(on){var self=this;var options=this.options;if(on){this.loadingTimeout=setTimeout(function(){addClass(self.$el,options.elementLoadingClass);self.$content.innerHTML='<p class="slbLoadingText '+options.loadingTextClass+'">'+
options.loadingCaption+'</p>';self.show();},options.loadingTimeout);}else{removeClass(this.$el,options.elementLoadingClass);clearTimeout(this.loadingTimeout);}},prepareItem:function(position,callback){var self=this;var url=this.items[position];this.loading(true);if(this.options.videoRegex.test(url)){callback.call(self,parseHtml('<div class="slbIframeCont"><iframe class="slbIframe" frameborder="0" allowfullscreen src="'+url+'"></iframe></div>'));}else{var $imageCont=parseHtml('<div class="slbImageWrap"><img class="slbImage" src="'+url+'" /></div>');this.$currentImage=$imageCont.querySelector('.slbImage');if(this.options.showCaptions&&this.captions[position]){$imageCont.appendChild(parseHtml('<div class="slbCaption">'+this.captions[position]+'</div>'));}
this.loadImage(url,function(){self.setImageDimensions();callback.call(self,$imageCont);self.loadImage(self.items[self.normalizePosition(self.currentPosition+1)]);});}
return this;},loadImage:function(url,callback){if(!this.options.videoRegex.test(url)){var image=new Image();callback&&(image.onload=callback);image.src=url;}},setupLightboxHtml:function(){var o=this.options;if(!this.$el){this.$el=parseHtml('<div class="slbElement '+o.elementClass+'">'+'<div class="slbOverlay"></div>'+'<div class="slbWrapOuter">'+'<div class="slbWrap">'+'<div class="slbContentOuter">'+'<div class="slbContent"></div>'+'<button type="button" title="'+o.closeBtnCaption+'" class="slbCloseBtn '+o.closeBtnClass+'">×</button>'+
(this.items.length>1?'<div class="slbArrows">'+'<button type="button" title="'+o.prevBtnCaption+'" class="prev slbArrow'+o.prevBtnClass+'">'+o.prevBtnCaption+'</button>'+'<button type="button" title="'+o.nextBtnCaption+'" class="next slbArrow'+o.nextBtnClass+'">'+o.nextBtnCaption+'</button>'+'</div>':'')+'</div>'+'</div>'+'</div>'+'</div>');this.$content=this.$el.querySelector('.slbContent');}
this.$content.innerHTML='';return this;},show:function(){if(!this.modalInDom){document.querySelector(this.options.appendTarget).appendChild(this.$el);addClass(document.documentElement,this.options.htmlClass);this.setupLightboxEvents();this.modalInDom=true;}
return this;},setContent:function(content){var $content=typeof content==='string'?parseHtml(content):content;this.loading(false);this.setupLightboxHtml();removeClass(this.$content,'slbDirectionNext');removeClass(this.$content,'slbDirectionPrev');if(this.direction){addClass(this.$content,this.direction==='next'?'slbDirectionNext':'slbDirectionPrev');}
if(this.options.beforeSetContent){this.options.beforeSetContent($content,this);}
this.$content.appendChild($content);return this;},setImageDimensions:function(){if(this.$currentImage){this.$currentImage.style.maxHeight=getWindowHeight()+'px';}},setupLightboxEvents:function(){var self=this;if(this.eventRegistry.lightbox.length){return this;}
this.addEvent(this.$el,'click',function(e){var $target=e.target;if(matches($target,'.slbCloseBtn')||(self.options.closeOnOverlayClick&&matches($target,'.slbWrap'))){self.close();}else if(matches($target,'.slbArrow')){matches($target,'.next')?self.next():self.prev();}else if(self.options.nextOnImageClick&&self.items.length>1&&matches($target,'.slbImage')){self.next();}}).addEvent(document,'keyup',function(e){self.options.closeOnEscapeKey&&e.keyCode===27&&self.close();if(self.items.length>1){(e.keyCode===39||e.keyCode===68)&&self.next();(e.keyCode===37||e.keyCode===65)&&self.prev();}}).addEvent(window,'resize',function(){self.setImageDimensions();});return this;},close:function(){if(this.modalInDom){this.runHook('beforeClose');this.removeEvents('lightbox');this.$el&&this.$el.parentNode.removeChild(this.$el);removeClass(document.documentElement,this.options.htmlClass);this.modalInDom=false;this.runHook('afterClose');}
this.direction=undefined;this.currentPosition=this.options.startAt;},destroy:function(){this.close();this.runHook('beforeDestroy');this.removeEvents('thumbnails');this.runHook('afterDestroy');},runHook:function(name){this.options[name]&&this.options[name](this);}});SimpleLightbox.open=function(options){var instance=new SimpleLightbox(options);return options.content?instance.setContent(options.content).show():instance.showPosition(instance.options.startAt);};SimpleLightbox.registerAsJqueryPlugin=function($){$.fn.simpleLightbox=function(options){var lightboxInstance;var $items=this;return this.each(function(){if(!$.data(this,'simpleLightbox')){lightboxInstance=lightboxInstance||new SimpleLightbox($.extend({},options,{$items:$items}));$.data(this,'simpleLightbox',lightboxInstance);}});};$.SimpleLightbox=SimpleLightbox;};if(typeof window!=='undefined'&&window.jQuery){SimpleLightbox.registerAsJqueryPlugin(window.jQuery);}
return SimpleLightbox;}));jQuery(document).ready(function($){"use strict";var essbFeedSetCookie=function(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toGMTString();document.cookie=cname+"="+cvalue+"; "+expires+"; path=/";};var essbFeedGetCookie=function(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i].trim();if(c.indexOf(name)==0)return c.substring(name.length,c.length);}
return"";};jQuery.fn.extend({center:function(){return this.each(function(){var top=(jQuery(window).height()-jQuery(this).outerHeight())/2;var left=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:'fixed',margin:0,top:(top>0?top:0)+'px',left:(left>0?left:0)+'px'});});}});var essbInstagramFeedAssignEvents=window.essbInstagramFeedAssignEvents=function(element){if($(element).hasClass('essb-instagramfeed-masonry')){$(element).find('.essb-instagramfeed-images').masonry({itemSelector:'.essb-instagramfeed-single'});}
if(!$(element).hasClass('essb-instagramfeed-masonry')&&!$(element).hasClass('essb-instagramfeed-carousel')&&!$(element).hasClass('essb-instagramfeed-carousel-1')&&!$(element).hasClass('essb-instagramfeed-carousel-2')){var minWidth=-1;$(element).find('.essb-instagramfeed-single').each(function(){var singleWidth=$(this).width();if(minWidth==-1)minWidth=singleWidth;else if(minWidth>singleWidth){minWidth=singleWidth;}});$(element).find('.essb-instagramfeed-single').each(function(){$(this).css({'height':minWidth+'px'});});}
if($(element).hasClass('essb-instagramfeed-carousel')){var slides=4;if($(window).width()<1100)slides=3;if($(window).width()<800)slides=2;if($(window).width()<640)slides=1;$(element).find('.essb-instagramfeed-images').slick({dots:false,infinite:true,speed:300,slidesToShow:slides,slidesToScroll:slides,prevArrow:'<span class="slick-prev"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.533px" height="438.533px" viewBox="0 0 438.533 438.533" style="enable-background:new 0 0 438.533 438.533;" xml:space="preserve"><g><path d="M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062C438.533,179.485,428.732,142.795,409.133,109.203z M365.446,237.539c0,4.948-1.808,9.236-5.421,12.847c-3.621,3.614-7.898,5.431-12.847,5.431H203.855l53.958,53.958c3.429,3.425,5.14,7.703,5.14,12.847c0,5.14-1.711,9.418-5.14,12.847l-25.981,25.98c-3.426,3.423-7.712,5.141-12.849,5.141c-5.136,0-9.419-1.718-12.847-5.141L102.783,258.093l-25.979-25.981c-3.427-3.429-5.142-7.707-5.142-12.845c0-5.14,1.714-9.42,5.142-12.847l25.979-25.981L206.136,77.083c3.428-3.425,7.707-5.137,12.847-5.137c5.141,0,9.423,1.711,12.849,5.137l25.981,25.981c3.617,3.617,5.428,7.902,5.428,12.851c0,4.948-1.811,9.231-5.428,12.847l-53.958,53.959h143.324c4.948,0,9.226,1.809,12.847,5.426c3.613,3.615,5.421,7.898,5.421,12.847V237.539z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></span>',nextArrow:'<span class="slick-next"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.533px" height="438.533px" viewBox="0 0 438.533 438.533" style="enable-background:new 0 0 438.533 438.533;" xml:space="preserve"><g><path d="M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062C438.533,179.485,428.732,142.795,409.133,109.203z M361.733,232.111l-25.978,25.981l-103.35,103.349c-3.433,3.43-7.714,5.147-12.852,5.147c-5.137,0-9.419-1.718-12.847-5.147l-25.981-25.98c-3.616-3.607-5.424-7.898-5.424-12.847c0-4.942,1.809-9.227,5.424-12.847l53.962-53.954H91.363c-4.948,0-9.229-1.813-12.847-5.428c-3.615-3.613-5.424-7.898-5.424-12.847v-36.547c0-4.948,1.809-9.231,5.424-12.847c3.617-3.617,7.898-5.426,12.847-5.426h143.325l-53.962-53.959c-3.428-3.428-5.14-7.708-5.14-12.847c0-5.141,1.712-9.42,5.14-12.851l25.981-25.981c3.427-3.425,7.71-5.137,12.847-5.137c5.145,0,9.419,1.711,12.852,5.137l103.35,103.356l25.978,25.981c3.432,3.427,5.144,7.707,5.144,12.847C366.877,224.404,365.165,228.686,361.733,232.111z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></span>',});}
if($(element).hasClass('essb-instagramfeed-carousel-1')){var slides=1;$(element).find('.essb-instagramfeed-images').slick({dots:false,infinite:true,speed:300,slidesToShow:slides,slidesToScroll:slides,prevArrow:'<span class="slick-prev"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.533px" height="438.533px" viewBox="0 0 438.533 438.533" style="enable-background:new 0 0 438.533 438.533;" xml:space="preserve"><g><path d="M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062C438.533,179.485,428.732,142.795,409.133,109.203z M365.446,237.539c0,4.948-1.808,9.236-5.421,12.847c-3.621,3.614-7.898,5.431-12.847,5.431H203.855l53.958,53.958c3.429,3.425,5.14,7.703,5.14,12.847c0,5.14-1.711,9.418-5.14,12.847l-25.981,25.98c-3.426,3.423-7.712,5.141-12.849,5.141c-5.136,0-9.419-1.718-12.847-5.141L102.783,258.093l-25.979-25.981c-3.427-3.429-5.142-7.707-5.142-12.845c0-5.14,1.714-9.42,5.142-12.847l25.979-25.981L206.136,77.083c3.428-3.425,7.707-5.137,12.847-5.137c5.141,0,9.423,1.711,12.849,5.137l25.981,25.981c3.617,3.617,5.428,7.902,5.428,12.851c0,4.948-1.811,9.231-5.428,12.847l-53.958,53.959h143.324c4.948,0,9.226,1.809,12.847,5.426c3.613,3.615,5.421,7.898,5.421,12.847V237.539z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></span>',nextArrow:'<span class="slick-next"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.533px" height="438.533px" viewBox="0 0 438.533 438.533" style="enable-background:new 0 0 438.533 438.533;" xml:space="preserve"><g><path d="M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062C438.533,179.485,428.732,142.795,409.133,109.203z M361.733,232.111l-25.978,25.981l-103.35,103.349c-3.433,3.43-7.714,5.147-12.852,5.147c-5.137,0-9.419-1.718-12.847-5.147l-25.981-25.98c-3.616-3.607-5.424-7.898-5.424-12.847c0-4.942,1.809-9.227,5.424-12.847l53.962-53.954H91.363c-4.948,0-9.229-1.813-12.847-5.428c-3.615-3.613-5.424-7.898-5.424-12.847v-36.547c0-4.948,1.809-9.231,5.424-12.847c3.617-3.617,7.898-5.426,12.847-5.426h143.325l-53.962-53.959c-3.428-3.428-5.14-7.708-5.14-12.847c0-5.141,1.712-9.42,5.14-12.851l25.981-25.981c3.427-3.425,7.71-5.137,12.847-5.137c5.145,0,9.419,1.711,12.852,5.137l103.35,103.356l25.978,25.981c3.432,3.427,5.144,7.707,5.144,12.847C366.877,224.404,365.165,228.686,361.733,232.111z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></span>',});}
if($(element).hasClass('essb-instagramfeed-carousel-2')){var slides=2;$(element).find('.essb-instagramfeed-images').slick({dots:false,infinite:true,speed:300,slidesToShow:slides,slidesToScroll:slides,prevArrow:'<span class="slick-prev"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.533px" height="438.533px" viewBox="0 0 438.533 438.533" style="enable-background:new 0 0 438.533 438.533;" xml:space="preserve"><g><path d="M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062C438.533,179.485,428.732,142.795,409.133,109.203z M365.446,237.539c0,4.948-1.808,9.236-5.421,12.847c-3.621,3.614-7.898,5.431-12.847,5.431H203.855l53.958,53.958c3.429,3.425,5.14,7.703,5.14,12.847c0,5.14-1.711,9.418-5.14,12.847l-25.981,25.98c-3.426,3.423-7.712,5.141-12.849,5.141c-5.136,0-9.419-1.718-12.847-5.141L102.783,258.093l-25.979-25.981c-3.427-3.429-5.142-7.707-5.142-12.845c0-5.14,1.714-9.42,5.142-12.847l25.979-25.981L206.136,77.083c3.428-3.425,7.707-5.137,12.847-5.137c5.141,0,9.423,1.711,12.849,5.137l25.981,25.981c3.617,3.617,5.428,7.902,5.428,12.851c0,4.948-1.811,9.231-5.428,12.847l-53.958,53.959h143.324c4.948,0,9.226,1.809,12.847,5.426c3.613,3.615,5.421,7.898,5.421,12.847V237.539z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></span>',nextArrow:'<span class="slick-next"><svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.533px" height="438.533px" viewBox="0 0 438.533 438.533" style="enable-background:new 0 0 438.533 438.533;" xml:space="preserve"><g><path d="M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062C438.533,179.485,428.732,142.795,409.133,109.203z M361.733,232.111l-25.978,25.981l-103.35,103.349c-3.433,3.43-7.714,5.147-12.852,5.147c-5.137,0-9.419-1.718-12.847-5.147l-25.981-25.98c-3.616-3.607-5.424-7.898-5.424-12.847c0-4.942,1.809-9.227,5.424-12.847l53.962-53.954H91.363c-4.948,0-9.229-1.813-12.847-5.428c-3.615-3.613-5.424-7.898-5.424-12.847v-36.547c0-4.948,1.809-9.231,5.424-12.847c3.617-3.617,7.898-5.426,12.847-5.426h143.325l-53.962-53.959c-3.428-3.428-5.14-7.708-5.14-12.847c0-5.141,1.712-9.42,5.14-12.851l25.981-25.981c3.427-3.425,7.71-5.137,12.847-5.137c5.145,0,9.419,1.711,12.852,5.137l103.35,103.356l25.978,25.981c3.432,3.427,5.144,7.707,5.144,12.847C366.877,224.404,365.165,228.686,361.733,232.111z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></span>',});}
if($(element).hasClass('essb-instagramfeed-carousel-1')||$(element).hasClass('essb-instagramfeed-carousel-2')){var minHeight=-1;$(element).find('.essb-instagramfeed-single').each(function(){var singleHeight=$(this).height();if(minHeight==-1)minHeight=singleHeight;else if(minHeight>singleHeight){minHeight=singleHeight;}});$(element).find('.essb-instagramfeed-single').each(function(){$(this).css({'height':minHeight+'px'});});}
if($(element).hasClass('essb-instagramfeed-lightbox')){$(element).find('.essb-instagramfeed-images .essb-instagramfeed-single a').each(function(){$(this).on('click',function(e){e.preventDefault();var instaURL=$(this).attr('href')||'',instaImgage=$(this).find('.essb-instagramfeed-single-image img').attr('src')||'',instaType=$(this).find('.essb-instagramfeed-single-image img').attr('data-type')||'',instaVideo=$(this).find('.essb-instagramfeed-single-image img').attr('data-src')||'',instaContent=$(this).find('.essb-instagramfeed-single-image-info').html();var html='<img src="'+instaImgage+'"/>';if(instaType=='VIDEO'){html='<video width="100%" height="100%" controls autoplay loop>';html+='<source src="'+instaVideo+'" type="video/mp4" />';html+='</video>';}
SimpleLightbox.open({content:'<div class="essb-instagramfeed-lightbox-content">'+'<div class="essb-instagramfeed-lightbox-content-image"><a href="'+instaURL+'" target="_blank">'+html+'</a></div>'+'<div class="essb-instagramfeed-lightbox-content-info">'+instaContent+''+'<div class="essb-instagramfeed-lightbox-button essb-instagramfeed-profile-followbtn"><a href="'+instaURL+'" target="_blank">Visit on Instagram</a>'+'</div>'+'</div>',elementClass:'essb-instagramfeed-lightbox'});var content=$('.essb-instagramfeed-lightbox-content .essb-instagramfeed-single-image-info-desc').text();if(content&&content!=''){content=content.split(' ');for(var i=0;i<content.length;i++){var word=content[i]||'';if(word=='')continue;if(word.substr(0,1)=='@'){var linkID=word.substr(1);content[i]='<a href="https://instagram.com/'+linkID+'" target="_blank"><b>'+word+'</b></a>';}
if(word.substr(0,1)=='#'){var linkID=word.substr(1);content[i]='<a href="https://www.instagram.com/explore/tags/'+linkID+'" target="_blank"><b>'+word+'</b></a>';}}
$('.essb-instagramfeed-lightbox-content .essb-instagramfeed-single-image-info-desc').html(content.join(' '));}});});}};var essbInstagramPopupTrigger=window.essbInstagramPopupTrigger=function(){if(!$('.essb-instagramfeed-popup').length)return;var maxWidth=$(window).width()-50,userWidth=$('.essb-instagramfeed-popup').data('width')||'',userDelay=$('.essb-instagramfeed-popup').data('delay')||'',userOneTimeCookie=$('.essb-instagramfeed-popup').data('hidefor')||'',hideMobile=$('.essb-instagramfeed-popup').data('disablemobile')||'';if(hideMobile=='1'&&$(window).width()<768)return;userOneTimeCookie=Number(userOneTimeCookie||0);if(!Number(userOneTimeCookie)||isNaN(userOneTimeCookie))userOneTimeCookie=0;if(userOneTimeCookie>0){var alreadySeen=essbFeedGetCookie('essb_instagram_feed');if(alreadySeen=='true')return;}
if(!Number(userWidth)||userWidth==''||isNaN(userWidth))userWidth=600;if(userWidth>maxWidth)userWidth=maxWidth;$('.essb-instagramfeed-popup').css({'width':userWidth+'px'});$('.essb-instagramfeed-popup').center();$('.essb-instagramfeed-popup').css({'opacity':'0'});if(Number(userDelay)&&Number(userDelay)!=0&&!isNaN(userDelay)){setTimeout(function(){$('.essb-instagramfeed-popup').fadeIn(400);$('.essb-instagramfeed-popup-overlay').fadeIn(300);if(userOneTimeCookie>0)essbFeedSetCookie('essb_instagram_feed','true',userOneTimeCookie);},Number(userDelay)*100);}
else{$('.essb-instagramfeed-popup').fadeIn(400);$('.essb-instagramfeed-popup-overlay').fadeIn(300);if(userOneTimeCookie>0)essbFeedSetCookie('essb_instagram_feed','true',userOneTimeCookie);}
$('.essb-instagramfeed-popup-overlay').on('click',function(e){$('.essb-instagramfeed-popup').fadeOut(300);$('.essb-instagramfeed-popup-overlay').fadeOut(300);});$('.essb-instagramfeed-popup .essb-instagramfeed-popup-close').on('click',function(e){$('.essb-instagramfeed-popup').fadeOut(300);$('.essb-instagramfeed-popup-overlay').fadeOut(300);});$('.essb-instagramfeed-popup .essb-instagramfeed-profile-followbtn a').on('click',function(e){$('.essb-instagramfeed-popup').fadeOut(300);$('.essb-instagramfeed-popup-overlay').fadeOut(300);});setTimeout(function(){var minWidth=-1;$('.essb-instagramfeed-popup .essb-instagramfeed').find('.essb-instagramfeed-single').each(function(){var singleWidth=$(this).width();if(minWidth==-1)minWidth=singleWidth;else if(minWidth>singleWidth){minWidth=singleWidth;}});$('.essb-instagramfeed-popup .essb-instagramfeed').find('.essb-instagramfeed-single').each(function(){$(this).css({'height':minWidth+'px'});});setTimeout(function(){$('.essb-instagramfeed-popup').center();var height=$('.essb-instagramfeed-popup').height(),winHeight=$(window).height();if(height>(winHeight-50)){$('.essb-instagramfeed-popup').css({'top':'50px'});$('.essb-instagramfeed-popup').css({'height':(winHeight-100)+'px'});var headerHeight=$('.essb-instagramfeed-popup .essb-instagramfeed-profile').outerHeight();$('.essb-instagramfeed-popup .essb-instagramfeed-images').css({'height':(winHeight-100-headerHeight)+'px','overflowY':'scroll','lineHeight':'0'});}
$('.essb-instagramfeed-popup').css({'opacity':'1'});},500);},500);}
if($('.essb-instagramfeed-popup').length)
$('.essb-instagramfeed-popup .essb-instagramfeed').addClass('essb-instagramfeed-pending-popup');$('.essb-instagramfeed').each(function(){essbInstagramFeedAssignEvents($(this));if($(this).hasClass('essb-instagramfeed-pending-popup'))essbInstagramPopupTrigger();});});
!function(i){"use strict";if(!e)var e=function(i,e){var t,s,n,a;return function(){n=this,s=[].slice.call(arguments,0),a=new Date;var o=function(){var r=new Date-a;r<e?t=setTimeout(o,e-r):(t=null,i.apply(n,s))};t||(t=setTimeout(o,e))}};i(document).ready(function(){if(!(essbPinImages.disable_mobile&&1024>i(window).width())){if(window.essbCurrentPinImageCount=0,essb_settings.pin_pinid_active&&essb_settings.pin_pinid&&i("img").each(function(){var e=i(this).data("pin-id")||"";e&&""!=e||i(this).attr("data-pin-id",essb_settings.pin_pinid)}),essb_settings.pin_force_active&&essb_settings.pin_force_image&&i("img").each(function(){if(i(this).attr("data-pin-media",essb_settings.pin_force_image),!i(this).data("pin-description")){var e="";i(this).attr("title")?e=i(this).attr("title"):i(this).attr("alt")&&(e=i(this).attr("alt")),essbPinImages.force_custompin&&!essbPinImages.custompin&&(essbPinImages.custompin=document.title),essbPinImages.custompin&&(e=essbPinImages.custompin),""==e&&(e=document.title),i(this).attr("data-pin-description",e)}i(this).data("pin-url")||i(this).attr("data-pin-url",encodeURI(document.URL))}),i(".essb-block-image").each(function(){var e=i(this).data("essb-pin-id")||"",t=i(this).data("essb-pin-description")||"";if("true"==(i(this).data("essb-pin-nopin")||"").toString()){i(this).find("img").attr("data-pin-nopin","true"),i(this).find("img").addClass("no_pin");return}""!=e&&i(this).find("img").attr("data-pin-id",e),""!=t&&i(this).find("img").attr("data-pin-description",t)}),essb_settings.force_pin_thumbs){var t=window.essbReposiveImagesMap={},s=window.essbDetectAndLocateImageSize=function(e,s,a){a&&(t[s].responsive[e]={}),i("<img/>",{load:function(){t[s]&&(a?(t[s].responsive[e]={w:this.width,h:this.height,done:!0},n(s)):(t[s].originalSize={w:this.width,h:this.height,done:!0},n(s)))},src:e})},n=window.essbCompileTheDataPinImage=function(e){var s=0,n=0,o=0,r="";for(var p in t[e].responsive){var d=t[e].responsive[p]||{};s++,d.done&&(n++,(0==o||o<d.w)&&(o=d.w,r=p))}s==n&&t[e].original!=r&&t[e].originalSize.done&&o>t[e].originalSize.w&&(i('[data-pinpro-key="'+e+'"]').attr("data-pin-media",r),i('[data-pinpro-key="'+e+'"]').attr("data-media",r),i('[data-pinpro-key="'+e+'"]').attr("data-pin-url",window.location.href),i('[data-pinpro-key="'+e+'"]').removeClass("pin-process"),i('[data-pinpro-key="'+e+'"]').each(a))};i("img").each(function(){var e=i(this).attr("srcset")||"",n=Math.random().toString(36).substr(2,9),a=n;if(e&&""!=e){i(this).attr("data-pinpro-key",n),i(this).addClass("pin-process");var o=e.split(", "),r=i(this).attr("src")||"";t[a]={source:a,original:r,originalSize:{},responsive:{}},s(r,a);for(var p=0;p<o.length;p++)if(o[p]){var d=o[p].split(" "),l=d[0]||"",c=(d[1]||"").replace("w","");l&&Number(c)&&s(l,a,!0)}}})}var a=function(){var e=i(this);if(!(essbPinImages.nolinks&&i(e).parents().filter("a").length||e.outerWidth()<Number(essbPinImages.min_width||0)||e.outerHeight()<Number(essbPinImages.min_height||0)||e.hasClass("no_pin")||e.hasClass("no-pin")||e.data("pin-nopin")||e.hasClass("pin-generated")||e.hasClass("pin-process")||e.hasClass("zoomImg")||e.hasClass("lazy-hidden"))){var t=i(e).prop("src")||"",s="",n=[],a="",o="",r=i(e).data("pin-id")||"";if(!(t.indexOf("data:image/svg+xml")>-1||t.indexOf("data:image/gif")>-1||t.indexOf("data:image/png")>-1)&&""!=t){e.data("media")&&(t=e.data("media")),e.data("lazy-src")&&(t=e.data("lazy-src")),e.data("pin-media")&&(t=e.data("pin-media")),e.data("pin-description")?s=e.data("pin-description"):e.attr("title")?s=e.attr("title"):e.attr("alt")&&(s=e.attr("alt")),essbPinImages.force_custompin&&!essbPinImages.custompin&&(essbPinImages.custompin=document.title),essbPinImages.custompin&&(s=essbPinImages.custompin),""==s&&(s=document.title);var p="https://pinterest.com/pin/create/button/?url="+encodeURI(document.URL)+"&is_video=false&media="+encodeURI(t)+"&description="+encodeURIComponent(s);essbPinImages.legacy_share_cmd&&(p="https://pinterest.com/pin/create/bookmarklet/?url="+encodeURI(document.URL)+"&media="+encodeURI(t)+"&title="+encodeURIComponent(s)+"&description="+encodeURIComponent(s)+"&media="+encodeURI(t)),p.indexOf("'")>-1&&(p=p.replace(/'/g,"%27")),""!=r&&(p="https://www.pinterest.com/pin/"+r+"/repin/x/");var d=e.attr("class"),l=e.attr("style");if("icon_hover"==essbPinImages.button_style&&(a=" essb_hide_name"),"icon"==essbPinImages.button_style&&(a=" essb_force_hide_name essb_force_hide"),"button_name"==essbPinImages.button_style&&(a=" essb_hide_icon"),"vertical"==essbPinImages.button_style&&(a=" essb_vertical_name"),essbPinImages.button_size&&(o=" essb_size_"+essbPinImages.button_size),essbPinImages.animation&&(o+=" "+essbPinImages.animation),essbPinImages.position&&(o+=" essb_pos_"+essbPinImages.position),essbPinImages.mobile_position&&(o+=" essb_mobilepos_"+essbPinImages.mobile_position),essbPinImages.visibility&&"always"==essbPinImages.visibility&&(o+=" essb_always_visible"),e.removeClass().attr("style","").wrap('<div class="essb-pin" />'),""!=d&&e.parent(".essb-pin").addClass(d),""!=l&&e.parent(".essb-pin").attr("style",l),window.essbCurrentPinImageCount++,e.parent(".essb-pin").addClass("essb-pinid-"+window.essbCurrentPinImageCount.toString()),essbPinImages.reposition){var c=i(e).width();Number(c)&&!isNaN(c)&&Number(c)>0&&e.parent(".essb-pin").css({"max-width":c+"px"})}var h=new Date().getTime().toString(36),m=essbPinImages.svgIcon?"essb_icon_svg_pinterest":"essb_icon_pinterest";if(n.push('<div class="essb_links essb_displayed_pinimage essb_template_'+essbPinImages.template+o+" essb_"+h+'" data-essb-position="pinit" data-essb-postid="'+(essb_settings.post_id||"")+'" data-essb-instance="'+h+'">'),n.push('<ul class="essb_links_list'+(""!=a?" "+a:"")+'">'),n.push('<li class="essb_item essb_link_pinterest nolightbox'+(essbPinImages.svgIcon?" essb_link_svg_icon":"")+'">'),n.push('<a class="nolightbox'+(essbPinImages.template_a_class?" "+essbPinImages.template_a_class:"")+'" rel="noreferrer noopener nofollow" href="'+p+'" onclick="essb.window(&#39;'+p+"&#39;,&#39;pinpro&#39;,&#39;"+h+'&#39;); return false;" target="_blank"><span class="essb_icon '+m+(essbPinImages.template_icon_class?" "+essbPinImages.template_icon_class:"")+'">'+(essbPinImages.svgIcon||"")+'</span><span class="essb_network_name">'+(essbPinImages.text?essbPinImages.text:"Pin")+"</span></a>"),n.push("</li>"),n.push("</ul>"),n.push("</div>"),e.after(n.join("")),e.addClass("pin-generated"),e.parent(".essb-pin").hasClass("lazyloading")&&e.parent(".essb-pin").removeClass("lazyloading"),essbPinImages.recenter&&"middle-middle"==(essbPinImages.position||"")){let u=e.parent(".essb-pin").find(".essb_links");u&&u[0]&&(u[0].style.setProperty("margin-left","-"+Math.round(u.width()/2)+"px","important"),u[0].style.setProperty("margin-top","-"+Math.round(u.height()/2)+"px","important"))}}}};if("undefined"!=typeof essbPinImages&&i("body").hasClass("tcb-edit-mode")&&(essbPinImages.active=!1),"undefined"!=typeof essbPinImages&&essbPinImages.active){essbPinImages.min_width&&Number(essbPinImages.min_width)||(essbPinImages.min_width=300),essbPinImages.min_height&&Number(essbPinImages.min_height)||(essbPinImages.min_height=300),720>i(window).width()&&(Number(essbPinImages.min_width_mobile)&&(essbPinImages.min_width=Number(essbPinImages.min_width_mobile)),Number(essbPinImages.min_height_mobile)&&(essbPinImages.min_height=Number(essbPinImages.min_height_mobile))),i(".essb-pin.tve_image").length&&(i(".essb-pin.tve_image .essb_links").remove(),i(".essb-pin img").removeClass("pin-generated")),i(".rll-youtube-player img").each(function(){i(this).addClass("no-pin")}),essbPinImages.hideon&&i(essbPinImages.hideon).each(function(){i(this).addClass("no-pin")}),window.addEventListener("LazyLoad::Initialized",function(e){i(".rll-youtube-player img").each(function(){i(this).addClass("no-pin")})});var o=function(){if(i(".rll-youtube-player img").each(function(){i(this).addClass("no-pin")}),essbPinImages.hideon&&i(essbPinImages.hideon).each(function(){i(this).addClass("no-pin")}),essbPinImages.selector)i(essbPinImages.selector).each(a);else{if(!i(".essb-pinterest-images").length)return;i(".essb-pinterest-images").parent().find("img").each(a)}};if(essbPinImages.lazyload&&i(window).on("scroll",e(o,10)),essbPinImages.optimize_load){let r=["keydown","mousedown","mousemove","wheel","touchmove","touchstart","touchend"];function p(){r.forEach(function(i){window.removeEventListener(i,p,{passive:!0})}),document.removeEventListener("visibilitychange",p),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d()}function d(){setTimeout(o,1)}r.forEach(function(i){window.addEventListener(i,p,{passive:!0})}),document.addEventListener("visibilitychange",p)}else setTimeout(o,1)}("undefined"!=typeof essbPinImages&&!essbPinImages.active||"undefined"==typeof essbPinImages)&&i(".essb-pin.tve_image").length&&(i(".essb-pin.tve_image .essb_links").remove(),i(".essb-pin img").removeClass("pin-generated"))}})}(jQuery);
!function(e){"use strict";window.essb_ajax_subscribe=function s(t,i){i.preventDefault();var o=e(".essb-subscribe-form-"+t+" #essb-subscribe-from-content-form-mailchimp"),r=e(".essb-subscribe-form-"+t+" .essb-subscribe-form-content"),n=e(r).attr("data-position")||"",c=e(r).attr("data-design")||"";if(o.length){if(e(o).find(".essb-subscribe-confirm").length&&!e(o).find(".essb-subscribe-confirm").is(":checked")){i.preventDefault(),essb_settings.subscribe_terms_error?alert(essb_settings.subscribe_terms_error):alert("You need to confirm that you agree with our terms");return}if(e(o).find(".essb-subscribe-form-content-name-field").length&&essb_settings.subscribe_validate_name&&""==e(o).find(".essb-subscribe-form-content-name-field").val()){essb_settings.subscribe_validate_name_error?alert(essb_settings.subscribe_validate_name_error):alert("You need to fill name field too");return}var a=e(o).find(".essb-subscribe-form-content-email-field").val(),b=e(o).find(".essb-subscribe-form-content-name-field").length?e(o).find(".essb-subscribe-form-content-name-field").val():"";e(o).find(".submit").prop("disabled",!0),e(o).hide(),e(".essb-subscribe-form-"+t).find(".essb-subscribe-loader").show();for(var l=o.attr("action")+"&mailchimp_email="+a+"&mailchimp_name="+b+"&position="+n+"&design="+c+"&title="+encodeURIComponent(document.title),f=document.querySelectorAll(".essb-subscribe-form-"+t+" #essb-subscribe-from-content-form-mailchimp .essb-subscribe-custom"),u=!1,d=0;d<f.length;d++){if(""==f[d].value&&f[d].classList.contains("essb-subscribe-required")){u=!0,alert("You need to fill "+(f[d].getAttribute("placeholder")||""));break}var m=f[d].getAttribute("data-field")||"";""!=m&&(l+="&mailchimp_"+m+"="+f[d].value)}if(u)return;if(window.location.href.indexOf("https://")>-1&&-1==l.indexOf("https://")&&(l=l.replace("http://","https://")),e(".essb-subscribe-captcha").length){var h=e("#g-recaptcha-response").val();e('input[name="cf-turnstile-response"]').length&&(h=e('input[name="cf-turnstile-response"]').val()),l+="&validate_recaptcha=true&recaptcha="+h}e.post(l,{mailchimp_email1:a,mailchimp_name1:b},function(s){if(s){if(console.log(s),"1"==s.code)e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-success").show(),e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").hide(),e(o).hide(),"undefined"!=typeof essb_subscribe_tracking&&essb_subscribe_tracking(n),"undefined"!=typeof essbSubscribeProLog&&essbSubscribeProLog("subscribe_conversion_success",n,c),s.redirect&&setTimeout(function(){s.redirect_new?window.open(s.redirect,"_blank").focus():window.location.href=s.redirect},200),window.pendingUnlockOnSubscribe&&essb_optin_locker_unlock(),essb.trigger("subscribe_success",{design:c,position:n,email:a,name:b});else{"undefined"!=typeof essbSubscribeProLog&&essbSubscribeProLog("subscribe_conversion_fail",n,c);var i=e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").attr("data-message")||"";""==i&&e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").attr("data-message",e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text()),90==s.code?e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text(s.message):e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").text(i),e(".essb-subscribe-form-"+t).find(".essb-subscribe-form-content-error").show(),e(".essb-subscribe-form-"+t).find(".essb-subscribe-from-content-form").show(),e(o).find(".submit").prop("disabled",!1)}e(".essb-subscribe-form-"+t).find(".essb-subscribe-loader").hide()}},"json")}},e(document).ready(function(){var s=!1,t=0,i=0,o=window.essb_manualform_show=function(){r("manual"),s=!1},r=function(t){if(!s){var i=".essb-optinbooster-"+t,o=".essb-optinbooster-overlay-"+t;if(e(i).length){var r=e(i).attr("data-single")||"",n=e(i).attr("data-single-days")||"";if("1"==r){var c="essbOptinBooster";if("yes"==l(c))return;n=""!=n&&Number(n)?Number(n):14,b(c,"yes",n)}jQuery.fn.extend({center:function(){return this.each(function(){var e=(jQuery(window).height()-jQuery(this).outerHeight())/2,s=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(e>0?e:0)+"px",left:(s>0?s:0)+"px"})})}});var a=jQuery(window).width();jQuery("document").height();var f=700;if(a<f&&(f=a-60),e(i).css({width:f+"px"}),e(i).center(),e(i).fadeIn(400),e(o).fadeIn(200),e(i).addClass("active-booster"),e(o).addClass("active-booster-overlay"),s=!0,"undefined"!=typeof essbSubscribeProLog){var u=e(i+" .essb-subscribe-form-content").data("position")||"",d=e(i+" .essb-subscribe-form-content").data("design")||"";essbSubscribeProLog("subscribe_conversion_loaded",u,d)}}}},n=function(){e(".active-booster").fadeOut(200),e(".active-booster").removeClass("active-booster"),e(".active-booster-overlay").fadeOut(400),e(".active-booster-overlay").removeClass("active-booster-overlay")};e(".essb-optinbooster-exit")&&jQuery(document).on("mouseleave",function(e){e.clientY<0&&r("exit")});var c=function(){if(!s){var e=jQuery(window).scrollTop(),i=jQuery(document).height()-jQuery(window).height();e/i*100>t&&t>0&&r("scroll")}};if(e(".essb-optinbooster-scroll")&&(t=parseFloat(t=e(".essb-optinbooster-scroll").attr("data-scroll")||""),e(window).on("scroll",c)),e(".essb-optinbooster-time")&&(i=parseFloat(i=e(".essb-optinbooster-time").attr("data-delay")||""),setTimeout(function(){r("time")},i*=1e3)),e(".essb-optinbooster-manual").length){var a=e(".essb-optinbooster-manual").data("manual-selector")||"";""!=a&&e(a).length&&e(a).on("click",function(e){e.preventDefault(),o()})}function b(e,s,t){var i=new Date;i.setTime(i.getTime()+864e5*t);var o="expires="+i.toGMTString();document.cookie=e+"="+s+"; "+o+"; path=/"}function l(e){for(var s=e+"=",t=document.cookie.split(";"),i=0;i<t.length;i++){var o=t[i].trim();if(0==o.indexOf(s))return o.substring(s.length,o.length)}return""}e(".essb-optinbooster-overlay").each(function(){e(this).on("click",function(e){e.preventDefault(),n()})}),e(".essb-optinbooster-close").each(function(){e(this).on("click",function(e){e.preventDefault(),n()})});var f=!1,u=0,d=0,m=function(s){if(!f){var t=".essb-optinflyout-"+s;if(e(t).length){if("1"==(e(t).attr("data-single")||"")){var i="essbOptinFlyout";if("yes"==l(i))return;b(i,"yes",14)}jQuery.fn.extend({center:function(){return this.each(function(){var e=(jQuery(window).height()-jQuery(this).outerHeight())/2,s=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(e>0?e:0)+"px",left:(s>0?s:0)+"px"})})}});var o=jQuery(window).width();jQuery("document").height();var r=500;if(o<r&&(r=o-60),e(t).css({width:r+"px"}),e(t).slideDown(400),e(t).addClass("active-flyout"),f=!0,"undefined"!=typeof essbSubscribeProLog){var n=e(t+" .essb-subscribe-form-content").data("position")||"",c=e(t+" .essb-subscribe-form-content").data("design")||"";essbSubscribeProLog("subscribe_conversion_loaded",n,c)}}}},h=function(){e(".active-flyout").fadeOut(200),e(".active-flyout").removeClass("active-flyout")},p=function(){var e=window.event;if(e){var s=e.relatedTarget||e.toElement;s&&"HTML"!==s.nodeName||m("exit")}};e(".essb-optinflyout-exit")&&e(document).mouseout(p);var v=function(){if(!f){var e=jQuery(window).scrollTop(),s=jQuery(document).height()-jQuery(window).height();e/s*100>u&&u>0&&m("scroll")}};e(".essb-optinflyout-scroll")&&(u=parseFloat(u=e(".essb-optinflyout-scroll").attr("data-scroll")||""),e(window).on("scroll",v)),e(".essb-optinflyout-time")&&(d=parseFloat(d=e(".essb-optinflyout-time").attr("data-delay")||""),setTimeout(function(){m("time")},d*=1e3)),e(".essb-optinflyout-overlay").each(function(){e(this).on("click",function(e){e.preventDefault(),h()})}),e(".essb-optinflyout-close").each(function(){e(this).on("click",function(e){e.preventDefault(),h()})});var $=!1,g=0,y=0,k="essb_optin_locker_unlocked";window.pendingUnlockOnSubscribe=!1,window.essb_optin_locker_unlock=function(){_();var s=e(".essb-optinlocker").data("unlock")||"";Number(s)||(s=90),b(k,"yes",s)};var x=function(s){if(!$){var t=".essb-optinlocker-"+s,i=".essb-optinlocker-overlay-"+s;if(e(t).length&&"yes"!=l(k)){jQuery.fn.extend({center:function(){return this.each(function(){var e=(jQuery(window).height()-jQuery(this).outerHeight())/2,s=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(e>0?e:0)+"px",left:(s>0?s:0)+"px"})})}});var o=jQuery(window).width();jQuery("document").height();var r=700;if(o<r&&(r=o-60),e(t).css({width:r+"px"}),e(t).center(),e(t).fadeIn(400),e(i).fadeIn(200),e(t).addClass("active-locker"),e(i).addClass("active-locker-overlay"),e("body").addClass("removeScroll"),$=!0,window.pendingUnlockOnSubscribe=!0,"undefined"!=typeof essbSubscribeProLog){var n=e(t+" .essb-subscribe-form-content").data("position")||"",c=e(t+" .essb-subscribe-form-content").data("design")||"";essbSubscribeProLog("subscribe_conversion_loaded",n,c)}}}},_=function(){e(".active-locker").fadeOut(200),e(".active-locker").removeClass("active-locker"),e(".active-locker-overlay").fadeOut(400),e(".active-locker-overlay").removeClass("active-locker-overlay"),e("body").removeClass("removeScroll")},w=function(){if(!$){var e=jQuery(window).scrollTop(),s=jQuery(document).height()-jQuery(window).height();e/s*100>g&&g>0&&x("scroll")}};e(".essb-optinlocker-scroll")&&(g=parseFloat(g=e(".essb-optinlocker-scroll").attr("data-scroll")||""),e(window).on("scroll",w)),e(".essb-optinlocker-time")&&(y=parseFloat(y=e(".essb-optinlocker-time").attr("data-delay")||""),setTimeout(function(){x("time")},y=1e3*i)),e(".essb-optinlocker-close").each(function(){e(this).on("click",function(e){e.preventDefault(),_()})}),e(".essb-subscribe-captcha").length&&e(".essb-subscribe-captcha").each(function(){var s=e(this).attr("id")||"";""!=s&&"undefined"!=typeof essb_subscribe_recaptcha&&essb_subscribe_recaptcha&&essb_subscribe_recaptcha.recaptchaSitekey&&setTimeout(function(){grecaptcha.render(essb_subscribe_recaptcha.turnstile?"#"+s:s,{sitekey:essb_subscribe_recaptcha.recaptchaSitekey})},500)})})}(jQuery);
jQuery(document).ready(function(s){"use strict";jQuery.fn.essb_toggle_more=function(){return this.each(function(){s(this).removeClass("essb_after_more"),s(this).addClass("essb_before_less")})},jQuery.fn.essb_toggle_less=function(){return this.each(function(){s(this).addClass("essb_after_more"),s(this).removeClass("essb_before_less")})},jQuery.fn.extend({center:function(){return this.each(function(){var s=(jQuery(window).height()-jQuery(this).outerHeight())/2,e=(jQuery(window).width()-jQuery(this).outerWidth())/2;jQuery(this).css({position:"fixed",margin:0,top:(s>0?s:0)+"px",left:(e>0?e:0)+"px"})})}})}),function(s){s.fn.countTo=function(e){return e=e||{},s(this).each(function(){var t=s.extend({},s.fn.countTo.defaults,{from:s(this).data("from"),to:s(this).data("to"),speed:s(this).data("speed"),refreshInterval:s(this).data("refresh-interval"),decimals:s(this).data("decimals")},e),o=Math.ceil(t.speed/t.refreshInterval),a=(t.to-t.from)/o,i=this,n=s(this),l=0,r=t.from,d=n.data("countTo")||{};function b(s){var e=t.formatter.call(i,s,t);n.text(e)}n.data("countTo",d),d.interval&&clearInterval(d.interval),d.interval=setInterval(function s(){r+=a,l++,b(r),"function"==typeof t.onUpdate&&t.onUpdate.call(i,r),l>=o&&(n.removeData("countTo"),clearInterval(d.interval),r=t.to,"function"==typeof t.onComplete&&t.onComplete.call(i,r))},t.refreshInterval),b(r)})},s.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function s(e,t){return e.toFixed(t.decimals)},onUpdate:null,onComplete:null}}(jQuery),function(s){"use strict";var e=window.essb={},t=function(s,e){var t,o,a,i;return function(){a=this,o=[].slice.call(arguments,0),i=new Date;var n=function(){var l=new Date-i;l<e?t=setTimeout(n,e-l):(t=null,s.apply(a,o))};t||(t=setTimeout(n,e))}},o=function(s){"function"==typeof jQuery&&s instanceof jQuery&&(s=s[0]);var e=s.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},a=function(e){var t=s(e).offset().top,o=s(e).offset().top+s(e).outerHeight(),a=s(window).scrollTop()+s(window).innerHeight(),i=s(window).scrollTop();return!!(a>t)&&!!(i<o)};e.add_event=function(s,t){e.events||(e.events={}),e.events[s]=t},e.trigger=function(s,t){e.events&&e.events[s]&&e.events[s](t)},e.window=function(t,o,a,i){var d,b=s(".essb_"+a),p=s(b).attr("data-essb-postid")||"",c=s(b).attr("data-essb-position")||"",f="essb_share_window"+(1024>=s(window).width())+"-"+Date.now().toString(),h=screen.width/2-Number("twitter"==o?"500":"800")/2,m=screen.height/2-Number("twitter"==o?"300":"500")/2;if("undefined"!=typeof essbShareWindowURLFilter&&(t=essbShareWindowURLFilter(o,t,p,c)),i||(d=window.open(t,f,"height=500,width="+("twitter"==o?"500":"800")+",resizable=1,scrollbars=yes,top="+m+",left="+h)),"undefined"!=typeof essb_settings&&(essb_settings.essb3_stats&&e.handleInternalStats(o,p,a),essb_settings.essb3_ga&&r(o,t,c),essb_settings.essb3_ga_ntg&&"undefined"!=typeof gtag&&gtag("event","social share",{event_category:"NTG social",event_label:o,non_interaction:!1})),"undefined"!=typeof essb_settings&&void 0===essb_settings.stop_postcount&&n(o,p),"undefined"!=typeof essb_abtesting_logger&&essb_abtesting_logger(o,p,a),"undefined"!=typeof essb_conversion_tracking&&essb_conversion_tracking(o,p,a),!i)var u=window.setInterval(function(){!1!==d.closed&&(window.clearInterval(u),l(o,p),"booster"==c&&"undefined"!=typeof essb_booster_close_from_action&&essb_booster_close_from_action())},200)},e.share_window=function(s,t,o){var a=screen.width/2-Number("800")/2,i=screen.height/2-Number("500")/2;wnd=window.open(s,"essb_share_window","height=500,width=800,resizable=1,scrollbars=yes,top="+i+",left="+a),"undefined"!=typeof essb_settings&&(essb_settings.essb3_stats&&e.handleLogInternalStats(o,essb_settings.post_id||"",t),essb_settings.essb3_ga&&r(o,s,t),essb_settings.essb3_ga_ntg&&gtag&&gtag("event","social share",{event_category:"NTG social",event_label:o,non_interaction:!1}))},e.fbmessenger=function(t,o,a){var i=1024>=s(window).width(),n="";return n=i?"fb-messenger://share/?link="+o:"https://www.facebook.com/dialog/send?app_id="+t+"&link="+o+"&redirect_uri=https://facebook.com",i?(window.open(n,"_self"),e.tracking_only("","messenger",a,!0)):e.window(n,"messenger",a),!1},e.whatsapp=function(t,o){var a=1024>=s(window).width(),i="";return i=a?"whatsapp://send?text="+t:"https://web.whatsapp.com/send?text="+t,a?(window.open(i,"_self"),e.tracking_only("","whatsapp",o,!0)):e.window(i,"whatsapp",o),!1},e.sms=function(s,t){var o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;return window.open("sms:"+(o?"&":"?")+"body="+s,"_self"),e.tracking_only("","sms",t,!0),!1},e.tracking_only=function(t,o,a,i){""==t&&(t=document.URL),e.window(t,o,a,!0);var n=s(".essb_"+a),r=s(n).attr("data-essb-position")||"";i&&setTimeout(function(){var e=s(".essb_"+a).attr("data-essb-postid")||"";l(o,e),"booster"==r&&"undefined"!=typeof essb_booster_close_from_action&&essb_booster_close_from_action()},1500)},e.pinterest_picker=function(s){e.tracking_only("","pinterest",s);var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("charset","UTF-8"),t.setAttribute("src","//assets.pinterest.com/js/pinmarklet.js?r="+99999999*Math.random()),document.body.appendChild(t)},e.print=function(s){e.tracking_only("","print",s),window.print()},e.setCookie=function(s,e,t){var o=new Date;o.setTime(o.getTime()+864e5*t);var a="expires="+o.toGMTString();document.cookie=s+"="+e+"; "+a+"; path=/"},e.getCookie=function(s){for(var e=s+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){var a=t[o].trim();if(0==a.indexOf(e))return a.substring(e.length,a.length)}return""},e.loveThis=function(t){if(console.log(window.essb_love_you_message_thanks),void 0===o)var o="";if(void 0===a)var a="";if(void 0!==window.essb_love_you_message_thanks&&(a=window.essb_love_you_message_thanks),void 0!==window.essb_love_you_message_loved&&(o=window.essb_love_you_message_loved),e.clickedLoveThis){e.loveDisableLoved||alert(o||"You already love this today");return}var i=s(".essb_"+t);if(i.length){var n=s(i).attr("data-essb-postid")||"";if(e.getCookie("essb_love_"+n)){e.loveDisableLoved||alert(o||"You already love this today");return}"undefined"!=typeof essb_settings&&s.post(essb_settings.ajax_url,{action:"essb_love_action",post_id:n,service:"love",nonce:essb_settings.essb3_nonce},function(s){s&&!e.loveDisableThanks&&alert(a||"Thank you for loving this")},"json"),e.tracking_only("","love",t,!0)}},e.toggle_more=function(t){if(e.is_morebutton_clicked){e.toggle_less(t);return}s(".essb_"+t+" .essb_after_more").essb_toggle_more();var o=s(".essb_"+t).find(".essb_link_more");void 0!==o&&(o.hide(),o.addClass("essb_hide_more_sidebar")),void 0!==(o=s(".essb_"+t).find(".essb_link_more_dots"))&&(o.hide(),o.addClass("essb_hide_more_sidebar")),e.is_morebutton_clicked=!0},e.toggle_less=function(t){e.is_morebutton_clicked=!1,s(".essb_"+t+" .essb_before_less").essb_toggle_less();var o=s(".essb_"+t).find(".essb_link_more");void 0!==o&&(o.show(),o.removeClass("essb_hide_more_sidebar")),void 0!==(o=s(".essb_"+t).find(".essb_link_more_dots"))&&(o.show(),o.removeClass("essb_hide_more_sidebar"))},e.toggle_more_popup=function(t){if(e.essb_morepopup_opened){e.toggle_less_popup(t);return}if(s(".essb_morepopup_"+t).hasClass("essb_morepopup_inline")){e.toggle_more_inline(t);return}var o=!1,a=0,i=s(".essb_morepopup_"+t);s(i).hasClass("essb_morepopup_sharebottom")&&(o=!0,a=s(".essb-mobile-sharebottom").outerHeight());var n=s(window).width(),l=s(window).height(),r=o?550:660,d=o?10:80;n<r&&(r=n-30);var b=".essb_morepopup_"+t,p=".essb_morepopup_shadow_"+t,c=!!s(b).hasClass("essb_morepopup_sharebottom");if(s(b).hasClass("essb_morepopup_modern")&&!o&&(d=100),s(b).css({width:r+"px"}),s(b).outerHeight()>l-30){var f=0;o&&(s(b).css({top:"5px"}),f+=5),s(b).css({height:l-a-d-f+"px"}),s(".essb_morepopup_content_"+t).css({height:l-a-f-(d+50)+"px",overflowY:"auto"})}if(o&&s(p).css({height:l-(o?a:0)+"px"}),c){var h=(s(window).width()-s(b).outerWidth())/2;s(b).css({left:h+"px",position:"fixed",margin:0,bottom:a+d+"px"})}else s(b).center();s(b).fadeIn(400),s(p).fadeIn(200),e.essb_morepopup_opened=!0},e.toggle_less_popup=function(t){s(".essb_morepopup_"+t).fadeOut(200),s(".essb_morepopup_shadow_"+t).fadeOut(200),e.essb_morepopup_opened=!1},e.toggle_more_inline=function(t){var o=s(".essb_"+t);if(o.length){var a=".essb_morepopup_"+t,i=s(o).position().top+s(o).outerHeight(!0),n=s(o).position().left,l="absolute",r=!1;if("fixed"===s(o).css("position")&&(l="fixed"),s(o).hasClass("essb_displayed_bottombar")&&(r=!0),r){i=s(o).position().top-s(a).outerHeight(!0);var d=s(a).find(".modal-pointer");s(d).hasClass("modal-pointer-up-left")&&(s(d).removeClass("modal-pointer-up-left"),s(d).addClass("modal-pointer-down-left"))}var b=s(o).find(".essb_link_more");s(b).length||(b=s(o).find(".essb_link_more_dots")),s(b).length&&(n="fixed"!=l?s(b).position().left-5:n+s(b).position().left-5);var p=s(o).find(".essb_link_share");s(p).length&&(n="fixed"!=l?s(p).position().left-5:n+s(p).position().left-5),s(a).css({left:n+"px",position:l,margin:0,top:i+"px"}),s(a).fadeIn(200),e.essb_morepopup_opened=!0}},e.subscribe_popup_close=function(e){s(".essb-subscribe-form-"+e).fadeOut(400),s(".essb-subscribe-form-overlay-"+e).fadeOut(400)},e.sharebutton=function(e){if(s(".essb-windowcs-"+e).length){var t=s(window).width(),o=s(window).height(),a=s(".essb-windowcs-"+e).data("width"),i=s(".essb-windowcs-"+e).data("height"),n=!1;(Number(a||0)>0||Number(i||0)>0)&&(Number(a)>Number(t)&&(a=t),Number(i)>Number(o)&&(i=o),Number(a)>0&&s(".essb-windowcs-"+e).css({width:a+"px"}),Number(i)>0&&s(".essb-windowcs-"+e).css({height:i+"px"}),s(".essb-windowcs-"+e).center(),n=!0),s(".essb-windowcs-"+e).fadeIn(200),n?s(".essb-windowcs-"+e+" .inner-content").css({position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:"90%"}):s(".essb-windowcs-"+e+" .inner-content").center()}},e.sharebutton_close=function(e){s(".essb-windowcs-"+e).length&&s(".essb-windowcs-"+e).fadeOut(200)},e.toggle_subscribe=function(t){if(s(".essb-subscribe-form-"+t).length){if(e.essb_subscribe_opened||(e.essb_subscribe_opened={}),"1"!=(s(".essb-subscribe-form-"+t).attr("data-popup")||""))s(".essb-subscribe-form-"+t).hasClass("essb-subscribe-opened")?(s(".essb-subscribe-form-"+t).slideUp("fast"),s(".essb-subscribe-form-"+t).removeClass("essb-subscribe-opened")):(s(".essb-subscribe-form-"+t).slideDown("fast"),s(".essb-subscribe-form-"+t).addClass("essb-subscribe-opened"),e.essb_subscribe_opened[t]||(e.essb_subscribe_opened[t]=t,e.tracking_only("","subscribe",t,!0)));else{var o=s(window).width();s("document").height();var a=600;o<a&&(a=o-40),s(".essb-subscribe-form-"+t).css({width:a+"px"}),s(".essb-subscribe-form-"+t).center(),s(".essb-subscribe-form-"+t).fadeIn(400),s(".essb-subscribe-form-overlay-"+t).fadeIn(200)}}},e.is_after_comment=function(){return window.location.href.indexOf("#comment")>-1},e.flyin_close=function(){s(".essb-flyin").fadeOut(200)},e.popup_close=function(){s(".essb-popup").fadeOut(200),s(".essb-popup-shadow").fadeOut(400)},e.copy_link_direct=function(e){if(!s("#essb_copy_link_field").length){var t=[];t.push('<div style="display: none;"><input type="text" id="essb_copy_link_field" style="width: 100%;padding: 5px 10px;font-size: 15px;background: #f5f6f7;border: 1px solid #ccc;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;" /></div>'),t.push('<div id="essb_copy_link_message" style="background: rgba(0,0,0,0.7); color: #fff; z-index: 1100; position: fixed; padding: 15px 25px; font-size: 13px; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;">'),t.push(essb_settings.translate_copy_message2?essb_settings.translate_copy_message2:"Copied to clipboard."),t.push("</div>"),s("body").append(t.join(""))}s("#essb_copy_link_field").val(e),s("#essb_copy_link_field").focus(),s("#essb_copy_link_field").select(),setTimeout(function(){var t=document.querySelector("#essb_copy_link_field");try{t.value=e,t.focus(),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),navigator.clipboard.writeText(t.value),s("#essb_copy_link_message").center(),s("#essb_copy_link_message").fadeIn(300),setTimeout(function(){s("#essb_copy_link_message").fadeOut()},2e3)}catch(o){console.log("Error link copy to clipboard!")}},100)},e.copy_link=function(t,o){var a=window.location.href,i=s(window).width();if(t&&s(".essb_"+t).length){var n=s(".essb_"+t).data("essb-url")||"";""!=n&&(a=n)}if(o&&""!=o&&(a=o),essb_settings&&essb_settings.copybutton_direct){e.copy_link_direct(a);return}if(!s(".essb-copylink-window").length){var l=[];l.push('<div class="essb_morepopup essb-copylink-window" style="z-index: 1301;">'),l.push('<div class="essb_morepopup_header"> <span>&nbsp;</span> <a href="#" class="essb_morepopup_close"><svg style="width: 24px; height: 24px; padding: 5px;" height="32" viewBox="0 0 32 32" width="32" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M32,25.7c0,0.7-0.3,1.3-0.8,1.8l-3.7,3.7c-0.5,0.5-1.1,0.8-1.9,0.8c-0.7,0-1.3-0.3-1.8-0.8L16,23.3l-7.9,7.9C7.6,31.7,7,32,6.3,32c-0.8,0-1.4-0.3-1.9-0.8l-3.7-3.7C0.3,27.1,0,26.4,0,25.7c0-0.8,0.3-1.3,0.8-1.9L8.7,16L0.8,8C0.3,7.6,0,6.9,0,6.3c0-0.8,0.3-1.3,0.8-1.9l3.7-3.6C4.9,0.2,5.6,0,6.3,0C7,0,7.6,0.2,8.1,0.8L16,8.7l7.9-7.9C24.4,0.2,25,0,25.7,0c0.8,0,1.4,0.2,1.9,0.8l3.7,3.6C31.7,4.9,32,5.5,32,6.3c0,0.7-0.3,1.3-0.8,1.8L23.3,16l7.9,7.9C31.7,24.4,32,25,32,25.7z"/></svg></a> </div>'),l.push('<div class="essb_morepopup_content">'),l.push('<div class="essb_copy_internal" style="display: flex; align-items: center;">'),l.push('<div style="width: calc(100% - 50px); padding: 5px;"><input type="text" id="essb_copy_link_field" style="width: 100%;padding: 5px 10px;font-size: 15px;background: #f5f6f7;border: 1px solid #ccc;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;" /></div>'),l.push('<div style="width:50px;text-align: center;"><a href="#" class="essb-copy-link" title="'+(essb_settings.translate_copy_message1?essb_settings.translate_copy_message1:"Press to copy the link")+'" style="color:#5867dd;background:#fff;padding:10px;text-decoration: none;"><svg style="width: 24px; height: 24px; fill: currentColor;" class="essb-svg-icon" aria-hidden="true" role="img" focusable="false" width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25.313 28v-18.688h-14.625v18.688h14.625zM25.313 6.688c1.438 0 2.688 1.188 2.688 2.625v18.688c0 1.438-1.25 2.688-2.688 2.688h-14.625c-1.438 0-2.688-1.25-2.688-2.688v-18.688c0-1.438 1.25-2.625 2.688-2.625h14.625zM21.313 1.313v2.688h-16v18.688h-2.625v-18.688c0-1.438 1.188-2.688 2.625-2.688h16z"></path></svg></a></div>'),l.push("</div>"),l.push('<div class="essb-copy-message" style="font-size: 13px; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;"></div>'),l.push("</div>"),l.push("</div>"),l.push('<div class="essb_morepopup_shadow essb-copylink-shadow" style="z-index: 1300;"></div>'),s("body").append(l.join("")),s(".essb-copylink-window .essb_morepopup_close").on("click",function(e){e.preventDefault(),s(".essb-copylink-window").fadeOut(300),s(".essb-copylink-shadow").fadeOut(200)}),s(".essb-copylink-window .essb-copy-link").on("click",function(e){e.preventDefault();var t=document.querySelector("#essb_copy_link_field");try{t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),navigator.clipboard.writeText(t.value),s(".essb-copylink-window .essb_morepopup_header span").html(essb_settings.translate_copy_message2?essb_settings.translate_copy_message2:"Copied to clipboard."),setTimeout(function(){s(".essb-copylink-window .essb_morepopup_header span").html("&nbsp;")},2e3)}catch(o){s(".essb-copylink-window .essb_morepopup_header span").html(essb_settings.translate_copy_message3?essb_settings.translate_copy_message3:"Please use Ctrl/Cmd+C to copy the URL."),setTimeout(function(){s(".essb-copylink-window .essb_morepopup_header span").html("&nbsp;")},2e3)}})}s(".essb-copy-message").html(""),s(".essb-copylink-window").css({width:(i>600?600:i-50)+"px"}),s(".essb-copylink-window").center(),s(".essb-copylink-window").fadeIn(300),s(".essb-copylink-shadow").fadeIn(200),s("#essb_copy_link_field").val(a),s("#essb_copy_link_field").focus(),s("#essb_copy_link_field").select()},e.mobile_sharebar_open=function(){var t=s(".essb-mobile-sharebar-window");if(t.length){var o=s(".essb-mobile-sharebar");if(o.length||(o=s(".essb-mobile-sharepoint")),o.length){if(e.is_displayed_sharebar){e.mobile_sharebar_close();return}var a=s(o).outerHeight(),i=s(window).height(),n=s(window).width();i-=a,s("#wpadminbar").length&&s("#wpadminbar").hide();var l=s(".essb-mobile-sharebar-window-content");l.length&&l.css({height:i-60+"px"}),s(t).css({width:n+"px",height:i+"px"}),s(t).fadeIn(400),e.is_displayed_sharebar=!0}}},e.mobile_sharebar_close=function(){var t=s(".essb-mobile-sharebar-window");t.length&&(s(t).fadeOut(400),e.is_displayed_sharebar=!1)},e.responsiveEventsCanRun=function(e){var t=s(e).hasClass("essb_mobile_hidden"),o=s(e).hasClass("essb_desktop_hidden"),a=s(e).hasClass("essb_tablet_hidden"),i=s(window).width(),n=!0;return i<=768&&t&&(n=!1),i>768&&i<=1100&&a&&(n=!1),i>1100&&o&&(n=!1),s(e).length||(n=!1),n},e.handleInternalStats=function(s,t,o){let a=document.querySelector(".essb_"+o);if(a){let i=a.getAttribute("data-essb-position")||"",n=a.getAttribute("data-essb-template")||"",l=a.getAttribute("data-essb-button-style")||"",r=a.classList.contains("essb_counters");if(a.classList.contains("essb_nostats"))return;e.logInternalStats(s,t,i,n,l,r)}},e.handleLogInternalStats=function(s,t,o){e.logInternalStats(s,t,o,o,o,!1)},e.logInternalStats=function(s,e,t,o,a,i){let n=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(n=!0),"undefined"!=typeof essb_settings?fetch(essb_settings.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"*/*"},body:new URLSearchParams({action:"essb_stat_log",post_id:e,service:s,template:o,mobile:n,position:t,button:a,counter:i,nonce:essb_settings.essb3_nonce})}).then(s=>s.text()).then(s=>console.log(s)):console.log("[error] essb.logInternalStats: Missing configuration data")},window.essb=e;var i=function(s){return s=parseInt(s),(isNaN(s)||!isFinite(s))&&(s=0),s},n=function(e,t){"undefined"!=typeof essb_settings&&(t=String(t),s.post(essb_settings.ajax_url,{action:"essb_self_postcount",post_id:t,service:e,nonce:essb_settings.essb3_nonce},function(s){},"json"))},l=function(t,o){if(essb_settings&&essb_settings.aftershare_networks){if(-1==(""!=essb_settings.aftershare_networks?essb_settings.aftershare_networks.split(","):[]).indexOf(t))return}else if("subscribe"==t||"comments"==t||"email"==t||"mail"==t)return;if("subscribe"!=t&&"comments"!=t&&"email"!=t&&"mail"!=t&&("function"==typeof b&&b(),"function"==typeof essb_acs_code&&essb_acs_code(t,o),s(".essb-aftershare-subscribe-form").length)){var a=s(".essb-aftershare-subscribe-form").data("salt")||"";""!=a&&e.toggle_subscribe(a)}},r=function(s,e,t){var o=essb_settings.essb3_ga_mode;"ga"in window&&void 0!==window.ga&&"function"==typeof window.ga&&("extended"==o?ga("send","event","social",s+" "+t,e):ga("send","event","social",s,e)),"layers"==o&&"undefined"!=typeof dataLayer&&dataLayer.push({service:s,position:t,url:e,event:"social"})};window.essb_open_mailform=function(t){if(e.essb_mailform_opened){d(t);return}var o=s(".essb_"+t);if(o.length){var a=s(o).attr("data-essb-postid")||"";s("#essb_mail_instance").val(t),s("#essb_mail_post").val(a);var i=s(window).width(),n=s(window).height(),l=400;i<l&&(l=i-30);var r=".essb_mailform";s(r).css({width:l+"px"}),s(r).outerHeight()>n-30&&s(r).css({height:n-20+"px"}),s("#essb_mailform_from").val(""),s("#essb_mailform_to").val(""),s("#essb_mailform_from_name").val(""),s("#essb_mailform_c").length&&s("#essb_mailform_c").val(""),"undefined"!=typeof essb_recaptcha&&essb_recaptcha&&essb_recaptcha.recaptchaSitekey&&grecaptcha.render("essb-modal-recaptcha",{sitekey:essb_recaptcha.recaptchaSitekey}),s(r).center(),s(r).slideDown(200),s(".essb_mailform_shadow").fadeIn(200),s("#essb_mailform_status_message").html(""),e.essb_mailform_opened=!0,e.tracking_only("","mail",t)}};var d=window.essb_close_mailform=function(){s(".essb_mailform").fadeOut(200),s(".essb_mailform_shadow").fadeOut(200),s("#essb_mailform_status_message").html(""),e.essb_mailform_opened=!1};window.essb_mailform_send=function(){var e=function(e){s(e).css("background-color","#ffd8d8"),setTimeout(function(){s(e).css("background-color","#fff")},5e3)};s("#essb_mailform_status_message").html(""),s(".essb_mailform_content_buttons").css("visibility","visible");var t=s("#essb_mailform_from").val(),o=s("#essb_mailform_from_name").val(),a=s("#essb_mailform_to").val(),i=!!s("#essb_mailform_c").length,n=s(".essb_mailform").attr("data-error")||"",l=s(".essb_mailform").attr("data-sending")||"",r=i?s("#essb_mailform_c").val():"",b=s("#g-recaptcha-response").val(),p=s("#essb_mail_affiliate_id").length?s("#essb_mail_affiliate_id").val():"";if(""==o||""==t||""==a||""==r&&i){""==o&&e("#essb_mailform_from_name"),""==t&&e("#essb_mailform_from"),""==a&&e("#essb_mailform_to"),s("#essb_mailform_status_message").html('<span style="color: #d80001;">'+n+"</span>");return}var c=s("#essb_mail_salt").val(),f=s("#essb_mail_post").val();"undefined"!=typeof essb_settings&&(s(".essb_mailform_content_buttons").css("visibility","hidden"),s("#essb_mailform_status_message").html(l+" "+a),s.post(essb_settings.ajax_url,{action:"essb_mail_action",post_id:f,from:t,from_name:o,to:a,c:r,cu:"",salt:c,affid:p,recapcha:b,nonce:essb_settings.essb3_nonce},function(t){t&&(s(".essb_mailform_content_buttons").css("visibility","visible"),t.message&&s("#essb_mailform_status_message").html('<span style="color: #d80001;">'+t.message+"</span>"),"1"==t.code&&(d(),alert(t.message)),t.code&&("101"==t.code&&s("#essb_mailform_c").length&&e("#essb_mailform_c"),"102"==t.code&&s("#essb_mailform_to").length&&e("#essb_mailform_to"),"104"==t.code&&s("#essb_mailform_from").length&&e("#essb_mailform_from")))},"json"))};var b=window.essbasc_popup_show=function(){if(s(".essbasc-popup").length&&!e.getCookie("essb_aftershare")){var t="undefined"!=typeof essbasc_cookie_live?essbasc_cookie_live:7;0==parseInt(t)&&(t=7);var o=s(window).width(),a=800,i=s(".essbasc-popup").attr("data-popup-width")||"",n=s(".essbasc-popup").attr("data-single")||"";Number(i)&&Number(i)>0&&(a=i),o<a&&(a=o-60),s(".essbasc-popup").css({width:a+"px"}),s(".essbasc-popup").center(),s(".essbasc-popup").fadeIn(300),s(".essbasc-popup-shadow").fadeIn(100),"true"==n&&e.setCookie("essb_aftershare","yes",t)}};window.essbasc_popup_close=function(){s(".essbasc-popup").fadeOut(200),s(".essbasc-popup-shadow").fadeOut(100)},s(document).ready(function(){var n=!1,l=90,r=!1,d=0,b=!1,p=function(){var e=s(window).scrollTop(),t=s(document).height()-s(window).height(),o=e/t*100,a=!0;r&&!n&&o<d&&(a=!1),n&&!r&&o>l&&(a=!1),r&&n&&(o>l||o<d)&&(a=!1),a?(s(".essb-mobile-sharebottom").hasClass("essb-mobile-break")&&(s(".essb-mobile-sharebottom").removeClass("essb-mobile-break"),s(".essb-mobile-sharebottom").fadeIn(400)),s(".essb-adholder-bottom").length&&b&&s(".essb-adholder-bottom").hasClass("essb-mobile-break")&&(s(".essb-adholder-bottom").removeClass("essb-mobile-break"),s(".essb-adholder-bottom").fadeIn(400))):(s(".essb-mobile-sharebottom").hasClass("essb-mobile-break")||(s(".essb-mobile-sharebottom").addClass("essb-mobile-break"),s(".essb-mobile-sharebottom").fadeOut(400)),s(".essb-adholder-bottom").length&&b&&!s(".essb-adholder-bottom").hasClass("essb-mobile-break")&&(s(".essb-adholder-bottom").addClass("essb-mobile-break"),s(".essb-adholder-bottom").fadeOut(400)))};if(s(".essb-mobile-sharebottom").length){var c=s(".essb-mobile-sharebottom").attr("data-hideend"),f=s(".essb-mobile-sharebottom").attr("data-hideend-percent"),h=s(".essb-mobile-sharebottom").attr("data-show-percent")||"",m=s(".essb-mobile-sharebottom").attr("data-responsive")||"";Number(h)&&(r=!0,d=Number(h)),"true"==c&&(n=!0);var u=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(u=!0),s(".essb-adholder-bottom").length&&"true"==($adbar_connected=s(".essb-adholder-bottom").attr("data-connected")||"")&&(b=!0),(n||r)&&(parseInt(f)>0&&(l=parseInt(f)),(""==m||"true"==m&&u)&&s(window).on("scroll",t(p,1)))}if(s(".essb_displayed_float").length){var $=s(".essb_displayed_float").offset().top-parseFloat(s(".essb_displayed_float").css("marginTop").replace(/auto/,0)),v="",g=s(".essb_displayed_float").data("float-hide")||"",y=s(".essb_displayed_float").data("float-top")||"",w=!1;""!=g&&Number(g)>0&&(g=parseInt(g),w=!0);var _=!1;""!=y&&Number(y)>0&&(y=parseInt(y),_=!0),e.responsiveEventsCanRun(s(".essb_displayed_float"))&&s(window).on("scroll",t(function e(){var t=s(window).scrollTop();_&&(t-=y);var o=s(document).height()-s(window).height(),a=t/o*100;if(t>=$){if(""==v){var i=s(".essb_displayed_float").width();v=i,s(".essb_displayed_float").width(i)}s(".essb_displayed_float").addClass("essb_fixed")}else s(".essb_displayed_float").removeClass("essb_fixed"),""!=v&&s(".essb_displayed_float").width(v);if(w){if(a>=g&&!s(".essb_displayed_float").hasClass("hidden-float")){s(".essb_displayed_float").addClass("hidden-float"),s(".essb_displayed_float").fadeOut(100);return}if(a<g&&s(".essb_displayed_float").hasClass("hidden-float")){s(".essb_displayed_float").removeClass("hidden-float"),s(".essb_displayed_float").fadeIn(100);return}}},1))}if(s(".essb_sidebar_transition").length&&s(".essb_sidebar_transition").each(function(){e.responsiveEventsCanRun(s(this))&&(s(this).hasClass("essb_sidebar_transition_slide")&&s(this).toggleClass("essb_sidebar_transition_slide"),s(this).hasClass("essb_sidebar_transition_fade")&&s(this).toggleClass("essb_sidebar_transition_fade"))}),s(".essb_sidebar_location_middle").length){var C=function(){var e=s(".essb_sidebar_location_middle").outerHeight(),t=s(window).height(),o=0;o=e>t?0:Math.round((t-e)/2),s(".essb_sidebar_location_middle").css({top:o+"px",opacity:"1"})};C(),s(window).on("resize",t(C,1))}s(".essb_link_sidebar-close a").each(function(){s(this).on("click",function(e){e.preventDefault();var t=s(this).parent().parent().get(0);s(t).length&&s(t).find(".essb_item").each(function(){s(this).hasClass("essb_link_sidebar-close")?s(this).toggleClass("essb-sidebar-closed-clicked"):s(this).toggleClass("essb-sidebar-closed-item")})})});var k=function(){var e,t=s(window).scrollTop(),o=s(document).height()-s(window).height(),n=t/o*100;if(s(".essb_displayed_sidebar").length&&(e=s(".essb_displayed_sidebar")),s(".essb_displayed_sidebar_right").length&&(e=s(".essb_displayed_sidebar_right")),e&&void 0!==e){var l=i(s(e).data("sidebar-disappear-pos")||""),r=i(s(e).data("sidebar-appear-pos")||""),d=s(e).data("sidebar-appear-unit")||"",b=s(e).data("sidebar-contenthidden")||"";"px"==d&&(n=t);var p=!0;if((r>0||l>0)&&(p=!1,r&&n>=r&&(p=!0),l&&n<=l&&(p=!0)),"yes"==b&&(s(".essb_displayed_top").length||s(".essb_displayed_bottom").length)&&(s(".essb_displayed_top").length&&a(s(".essb_displayed_top"))||s(".essb_displayed_bottom").length&&a(s(".essb_displayed_bottom"))?e.fadeOut(100):p&&e.fadeIn(100)),r>0&&0==l){if(n>=r&&!e.hasClass("active-sidebar")){e.fadeIn(100),e.addClass("active-sidebar");return}if(n<r&&e.hasClass("active-sidebar")){e.fadeOut(100),e.removeClass("active-sidebar");return}}if(l>0&&0==r){if(n>=l&&!e.hasClass("hidden-sidebar")){e.fadeOut(100),e.addClass("hidden-sidebar");return}if(n<l&&e.hasClass("hidden-sidebar")){e.fadeIn(100),e.removeClass("hidden-sidebar");return}}if(r>0&&l>0){if(n>=r&&n<l&&!e.hasClass("active-sidebar")){e.fadeIn(100),e.addClass("active-sidebar");return}if((n<r||n>=l)&&e.hasClass("active-sidebar")){e.fadeOut(100),e.removeClass("active-sidebar");return}}}};if(e.responsiveEventsCanRun(s(".essb_displayed_sidebar"))){var x=s(".essb_displayed_sidebar").data("sidebar-contenthidden")||"",I=s(".essb_displayed_sidebar").data("sidebar-appear-pos")||"",S=s(".essb_displayed_sidebar").data("sidebar-disappear-pos")||"";(""!=I||""!=S||"yes"==x)&&s(window).width()>800&&(s(window).on("scroll",t(k,1)),k())}if(s(".essb_displayed_postfloat").length){var O=s(".essb_displayed_postfloat").offset().top-parseFloat(s(".essb_displayed_postfloat").css("marginTop").replace(/auto/,0)),T="true"==(s(".essb_displayed_postfloat").data("postfloat-stay")||"").toString(),H="true"==(s(".essb_displayed_postfloat").data("postfloat-fixbottom")||"").toString(),R=s(".essb_displayed_postfloat").data("postfloat-top")||"",U=s(".essb_displayed_postfloat").data("postfloat-selectors")||"",M=[],z=s(".essb_displayed_postfloat").data("postfloat-percent")||"";if(Number(z)&&0!=Number(z)||(z="",s(".essb_displayed_postfloat").attr("data-postfloat-percent","")),""!=U){M=U.split(",");for(var E=0;E<M.length;E++)s(M[E]).length&&s(M[E]).addClass("essb-postfloat-monitor")}setTimeout(function(){s(".essb_displayed_postfloat").css({transition:"all 0.3s linear"}),""==z&&s(".essb_displayed_postfloat").css({opacity:"1"})},100),""!=R&&Number(R)&&!isNaN(R)&&(O-=parseInt(R)),e.responsiveEventsCanRun(s(".essb_displayed_postfloat"))&&s(window).on("scroll",t(function e(){var t=s(this).scrollTop(),o=0,i=s(".essb_displayed_postfloat").data("postfloat-percent")||"",n=s(".essb_displayed_postfloat").data("postfloat-percent-m")||"";if(s(".essb_break_scroll").length){o=s(".essb_break_scroll").position().top;var l=s(".essb_displayed_postfloat").data("postfloat-bottom")||"";l&&""!=l&&0!=Number(l)&&(o=Number(o)-Number(l))}if(""!=i){var r=s(document).height()-s(window).height();("px"==n?t>=Number(i):t/r*100>=Number(i))?(s(".essb_displayed_postfloat").css({opacity:"1"}),s(".essb_displayed_postfloat").css({transform:"translateY(0)"})):(s(".essb_displayed_postfloat").css({opacity:"0"}),s(".essb_displayed_postfloat").css({transform:"translateY(50px)"}))}if(t>=O){s(".essb_displayed_postfloat").addClass("essb_postfloat_fixed");var d=s(".essb_displayed_postfloat").offset(),b=s(".essb_displayed_postfloat").outerHeight(),p=parseInt(d.top)+parseInt(b);if(T){var c=!1;s(".essb-postfloat-monitor").each(function(){a(s(this))&&(c=!0)}),c?s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")||s(".essb_displayed_postfloat").addClass("essb_postfloat_breakscroll"):(s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")&&s(".essb_displayed_postfloat").removeClass("essb_postfloat_breakscroll"),H&&(p>o?s(".essb_displayed_postfloat").hasClass("essb_postfloat_absolute")||(s(".essb_displayed_postfloat").removeClass("essb_postfloat_fixed"),s(".essb_displayed_postfloat").attr("data-unfixed",p),s(".essb_displayed_postfloat").addClass("essb_postfloat_absolute"),s(".essb_displayed_postfloat").css({position:"absolute",top:s(".essb_break_scroll").position().top-b-100+"px"})):s(".essb_displayed_postfloat").hasClass("essb_postfloat_absolute")&&(s(".essb_displayed_postfloat").removeClass("essb_postfloat_absolute"),s(".essb_displayed_postfloat").removeAttr("data-unfixed"),s(".essb_displayed_postfloat").css({position:"",top:""}),s(".essb_displayed_postfloat").addClass("essb_postfloat_fixed"))))}else p>o?s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")||s(".essb_displayed_postfloat").addClass("essb_postfloat_breakscroll"):s(".essb_displayed_postfloat").hasClass("essb_postfloat_breakscroll")&&s(".essb_displayed_postfloat").removeClass("essb_postfloat_breakscroll")}else s(".essb_displayed_postfloat").removeClass("essb_postfloat_fixed")},1))}if(e.responsiveEventsCanRun(s(".essb_displayed_postfloat"))&&""!=(essb_settings.postfloat_percent||"")&&s(".essb_displayed_postfloat").length&&s(window).on("scroll",t(function e(){var t,o=s(window).scrollTop(),a=s(document).height()-s(window).height(),n=o/a*100;if(s(".essb_displayed_postfloat").length&&(t=s(".essb_displayed_postfloat")),t&&void 0!==t){var l=i(s(t).data("postfloat-percent")||"");if(l>0){if(n>=l&&!t.hasClass("essb_active_postfloat")){t.addClass("essb_active_postfloat");return}if(n<l&&t.hasClass("essb_active_postfloat")){t.removeClass("essb_active_postfloat");return}}}},1)),s(".essb_counters .essb_animated").each(function(){var e=s(this).attr("data-cnt")||"",t=s(this).attr("data-cnt-short")||"";s(this).hasClass("essb_counter_hidden")||s(this).countTo({from:1,to:e,speed:500,onComplete:function(e){s(this).html(t)}})}),s(".essb-followme").length){s(".essb-followme .essb_links").length&&s(".essb-followme .essb_links").removeClass("essb_displayed_followme");var L=s(".essb-followme").attr("data-position")||"",A=s(".essb-followme").attr("data-top")||"",j=s(".essb-followme").attr("data-background")||"",P=s(".essb-followme").attr("data-full")||"",B=s(".essb-followme").attr("data-avoid-left")||"",D=s(".essb-followme").attr("data-hide")||"";if("top"==L&&""!=A&&s(".essb-followme").css({top:A+"px"}),""!=j&&s(".essb-followme").css({"background-color":j}),"1"!=P&&"left"!=L){var F=s(".essb_displayed_followme").width(),N=s(".essb_displayed_followme").position().left;"true"!=B?s(".essb-followme .essb_links").attr("style","width:"+F+"px; margin-left:"+N+"px !important;"):s(".essb-followme .essb_links").attr("style","width:"+F+"px;")}function Y(){var e=!1,t=s(".essb-followme").attr("data-showafter")||"";""==t||Number(t)||(t=""),s(".essb_displayed_followme").each(function(){o(s(this))&&(e=!0)});var a=s(window).scrollTop(),i=s(document).height()-s(window).height();Number(t)>0&&Number(t)>a&&(e=!0),e?s(".essb-followme").hasClass("active")&&s(".essb-followme").removeClass("active"):s(".essb-followme").hasClass("active")||s(".essb-followme").addClass("active"),""!=D&&(a/i*100>95?s(".essb-followme").hasClass("essb-followme-hiddenend")||(s(".essb-followme").addClass("essb-followme-hiddenend"),s(".essb-followme").slideUp(100)):s(".essb-followme").hasClass("essb-followme-hiddenend")&&(s(".essb-followme").removeClass("essb-followme-hiddenend"),s(".essb-followme").slideDown(100)))}s(window).on("scroll",t(Y,1)),Y()}if(s(".essb-point").length){var W=!1,q="",G=function(){var e=s(window).scrollTop()+s(window).height()-200,t=s(".essb_break_scroll").offset().top-parseFloat(s(".essb_break_scroll").css("marginTop").replace(/auto/,0));"end"==q&&e>=t&&!W&&!s(".essb-point-share-buttons").hasClass("essb-point-share-buttons-active")&&(s(".essb-point-share-buttons").addClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").toggleClass("essb-point-open"),W=!0,Q>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").removeClass("essb-point-open")},1e3*Q)),"middle"==q&&100*e/t>49&&!W&&!s(".essb-point-share-buttons").hasClass("essb-point-share-buttons-active")&&(s(".essb-point-share-buttons").addClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").toggleClass("essb-point-open"),W=!0,Q>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").removeClass("essb-point-open")},1e3*Q))},J=s(".essb-point").attr("data-trigger-scroll")||"",K=s(".essb-point").attr("data-point-type")||"simple",Q=Number(s(".essb-point").attr("data-autoclose")||0)||0;e.responsiveEventsCanRun(s(".essb-point"))&&("end"==J||"middle"==J)&&(q=J,s(window).on("scroll",G)),s(".essb-point").on("click",function(){s(".essb-point-share-buttons").toggleClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").toggleClass("essb-point-open"),Q>0&&setTimeout(function(){s(".essb-point-share-buttons").removeClass("essb-point-share-buttons-active"),"simple"!=K&&s(".essb-point").removeClass("essb-point-open")},1e3*Q)})}if(s(".essb-cornerbar").length){s(".essb-cornerbar .essb_links").length&&s(".essb-cornerbar .essb_links").removeClass("essb_displayed_cornerbar");var V=s(".essb-cornerbar").attr("data-show")||"",X=s(".essb-cornerbar").attr("data-hide")||"";function Z(){var e=s(window).scrollTop(),t=s(document).height()-s(window).height(),a=e/t*100;if(("onscroll"==V||"onscroll50"==V)&&(a>("onscroll"==V?5:45)?s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hidden"):s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")||s(".essb-cornerbar").addClass("essb-cornerbar-hidden")),"content"==V){var i=!1;s(".essb_displayed_top").each(function(){o(s(this))&&(i=!0)}),s(".essb_displayed_bottom").each(function(){o(s(this))&&(i=!0)}),i?s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")||s(".essb-cornerbar").addClass("essb-cornerbar-hidden"):s(".essb-cornerbar").hasClass("essb-cornerbar-hidden")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hidden")}""!=X&&(a>90?s(".essb-cornerbar").hasClass("essb-cornerbar-hiddenend")||s(".essb-cornerbar").addClass("essb-cornerbar-hiddenend"):s(".essb-cornerbar").hasClass("essb-cornerbar-hiddenend")&&s(".essb-cornerbar").removeClass("essb-cornerbar-hiddenend"))}e.responsiveEventsCanRun(s(".essb-cornerbar"))&&((""!=X||""!=V)&&s(window).on("scroll",t(Z,1)),"content"==V&&Z())}s(".essbfc-container-sidebar").length&&s(".essbfc-container-sidebar").each(function(){s(this).hasClass("essbfc-container-sidebar-transition")&&s(this).removeClass("essbfc-container-sidebar-transition")})})}(jQuery);
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",t,!0)}function r(){return"undefined"!=typeof sbjs}function c(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),a(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&r()?n:i,o=r()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!r())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(i),a(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c):c(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="/dist/",r(r.s=121)}([function(t,n,r){var e=r(30),o=r(2),i=r(39),u=r(6).f;t.exports=function(t){var n=e.Symbol||(e.Symbol={});o(n,t)||u(n,t,{value:i.f(t)})}},function(t,n,r){(function(n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||Function("return this")()}).call(this,r(69))},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(1),o=r(28),i=r(2),u=r(29),c=r(36),f=r(53),a=o("wks"),s=e.Symbol,l=f?s:s&&s.withoutSetter||u;t.exports=function(t){return i(a,t)||(c&&i(s,t)?a[t]=s[t]:a[t]=l("Symbol."+t)),a[t]}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(9),o=r(45),i=r(11),u=r(15),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},,function(t,n,r){var e=r(9),o=r(6),i=r(12);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(4);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,r){var e=r(44),o=r(26);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(5);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(6).f,o=r(2),i=r(3)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},function(t,n,r){var e=r(1),o=r(24).f,i=r(8),u=r(16),c=r(27),f=r(49),a=r(74);t.exports=function(t,n){var r,s,l,p,v,y=t.target,d=t.global,h=t.stat;if(r=d?e:h?e[y]||c(y,{}):(e[y]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!a(d?s:y+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;f(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(r,s,p,t)}}},function(t,n,r){var e=r(5);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(1),o=r(8),i=r(2),u=r(27),c=r(47),f=r(17),a=f.get,s=f.enforce,l=String(String).split("String");(t.exports=function(t,n,r,c){var f=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),s(r).source=l.join("string"==typeof n?n:"")),t!==e?(f?!p&&t[n]&&(a=!0):delete t[n],a?t[n]=r:o(t,n,r)):a?t[n]=r:u(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||c(this)}))},function(t,n,r){var e,o,i,u=r(70),c=r(1),f=r(5),a=r(8),s=r(2),l=r(18),p=r(20),v=c.WeakMap;if(u){var y=new v,d=y.get,h=y.has,g=y.set;e=function(t,n){return g.call(y,t,n),n},o=function(t){return d.call(y,t)||{}},i=function(t){return h.call(y,t)}}else{var b=l("state");p[b]=!0,e=function(t,n){return a(t,b,n),n},o=function(t){return s(t,b)?t[b]:{}},i=function(t){return s(t,b)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!f(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,n,r){var e=r(28),o=r(29),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports=!1},function(t,n){t.exports={}},function(t,n,r){var e=r(30),o=r(1),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},function(t,n,r){var e=r(26);t.exports=function(t){return Object(e(t))}},,function(t,n,r){var e=r(9),o=r(43),i=r(12),u=r(10),c=r(15),f=r(2),a=r(45),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=u(t),n=c(n,!0),a)try{return s(t,n)}catch(t){}if(f(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(1),o=r(8);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},function(t,n,r){var e=r(19),o=r(48);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.4",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},function(t,n,r){var e=r(1);t.exports=e},function(t,n,r){var e=r(50),o=r(34).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(33),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,r){var e=r(25);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(4);t.exports=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())}))},function(t,n,r){var e={};e[r(3)("toStringTag")]="z",t.exports="[object z]"===String(e)},function(t,n,r){var e,o=r(11),i=r(82),u=r(34),c=r(20),f=r(83),a=r(46),s=r(18),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(){try{e=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;y=e?function(t){t.write(v("")),t.close();var n=t.parentWindow.Object;return t=null,n}(e):((n=a("iframe")).style.display="none",f.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F);for(var r=u.length;r--;)delete y.prototype[u[r]];return y()};c[l]=!0,t.exports=Object.create||function(t,n){var r;return null!==t?(p.prototype=o(t),r=new p,p.prototype=null,r[l]=t):r=y(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(3);n.f=e},function(t,n){t.exports={}},,,function(t,n,r){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:e},function(t,n,r){var e=r(4),o=r(25),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,r){var e=r(9),o=r(4),i=r(46);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(1),o=r(5),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,n,r){var e=r(48),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},function(t,n,r){var e=r(1),o=r(27),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,r){var e=r(2),o=r(71),i=r(24),u=r(6);t.exports=function(t,n){for(var r=o(n),c=u.f,f=i.f,a=0;a<r.length;a++){var s=r[a];e(t,s)||c(t,s,f(n,s))}}},function(t,n,r){var e=r(2),o=r(10),i=r(72).indexOf,u=r(20);t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)!e(u,r)&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(5),o=r(35),i=r(3)("species");t.exports=function(t,n){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?e(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===n?0:n)}},function(t,n,r){var e=r(36);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,r){var e,o,i=r(1),u=r(77),c=i.process,f=c&&c.versions,a=f&&f.v8;a?o=(e=a.split("."))[0]+e[1]:u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=e[1]),t.exports=o&&+o},function(t,n,r){var e=r(50),o=r(34);t.exports=Object.keys||function(t){return e(t,o)}},function(t,n,r){r(0)("iterator")},function(t,n,r){"use strict";var e=r(14),o=r(112),i=r(59),u=r(114),c=r(13),f=r(8),a=r(16),s=r(3),l=r(19),p=r(40),v=r(58),y=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,h=s("iterator"),g=function(){return this};t.exports=function(t,n,r,s,v,b,m){o(r,n,s);var S,x,O,w=function(t){if(t===v&&_)return _;if(!d&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},j=n+" Iterator",A=!1,T=t.prototype,P=T[h]||T["@@iterator"]||v&&T[v],_=!d&&P||w(v),L="Array"==n&&T.entries||P;if(L&&(S=i(L.call(new t)),y!==Object.prototype&&S.next&&(l||i(S)===y||(u?u(S,y):"function"!=typeof S[h]&&f(S,h,g)),c(S,j,!0,!0),l&&(p[j]=g))),"values"==v&&P&&"values"!==P.name&&(A=!0,_=function(){return P.call(this)}),l&&!m||T[h]===_||f(T,h,_),p[n]=_,v)if(x={values:w("values"),keys:b?_:w("keys"),entries:w("entries")},m)for(O in x)!d&&!A&&O in T||a(T,O,x[O]);else e({target:n,proto:!0,forced:d||A},x);return x}},function(t,n,r){"use strict";var e,o,i,u=r(59),c=r(8),f=r(2),a=r(3),s=r(19),l=a("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(e=o):p=!0),null==e&&(e={}),s||f(e,l)||c(e,l,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:p}},function(t,n,r){var e=r(2),o=r(22),i=r(18),u=r(113),c=i("IE_PROTO"),f=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),e(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?f:null}},,,,,,,function(t,n,r){var e=r(67);r(103),r(104),r(105),r(106),r(107),t.exports=e},function(t,n,r){r(68),r(78),r(81),r(88),r(89),r(90),r(91),r(56),r(92),r(93),r(94),r(95),r(96),r(97),r(98),r(99),r(100),r(101),r(102);var e=r(30);t.exports=e.Symbol},function(t,n,r){"use strict";var e=r(14),o=r(4),i=r(35),u=r(5),c=r(22),f=r(32),a=r(75),s=r(52),l=r(76),p=r(3),v=r(54),y=p("isConcatSpreadable"),d=v>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),h=l("concat"),g=function(t){if(!u(t))return!1;var n=t[y];return void 0!==n?!!n:i(t)};e({target:"Array",proto:!0,forced:!d||!h},{concat:function(t){var n,r,e,o,i,u=c(this),l=s(u,0),p=0;for(n=-1,e=arguments.length;n<e;n++)if(i=-1===n?u:arguments[n],g(i)){if(p+(o=f(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,p++)r in i&&a(l,p,i[r])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");a(l,p++,i)}return l.length=p,l}})},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(1),o=r(47),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,r){var e=r(21),o=r(31),i=r(51),u=r(11);t.exports=e("Reflect","ownKeys")||function(t){var n=o.f(u(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(10),o=r(32),i=r(73),u=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,n,r){var e=r(33),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},function(t,n,r){var e=r(4),o=/#|\.prototype\./,i=function(t,n){var r=c[u(t)];return r==a||r!=f&&("function"==typeof n?e(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},f=i.NATIVE="N",a=i.POLYFILL="P";t.exports=i},function(t,n,r){"use strict";var e=r(15),o=r(6),i=r(12);t.exports=function(t,n,r){var u=e(n);u in t?o.f(t,u,i(0,r)):t[u]=r}},function(t,n,r){var e=r(4),o=r(3),i=r(54),u=o("species");t.exports=function(t){return i>=51||!e((function(){var n=[];return(n.constructor={})[u]=function(){return{foo:1}},1!==n[t](Boolean).foo}))}},function(t,n,r){var e=r(21);t.exports=e("navigator","userAgent")||""},function(t,n,r){var e=r(37),o=r(16),i=r(79);e||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,r){"use strict";var e=r(37),o=r(80);t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,n,r){var e=r(37),o=r(25),i=r(3)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=e?o:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:u?o(n):"Object"==(e=o(n))&&"function"==typeof n.callee?"Arguments":e}},function(t,n,r){"use strict";var e=r(14),o=r(1),i=r(21),u=r(19),c=r(9),f=r(36),a=r(53),s=r(4),l=r(2),p=r(35),v=r(5),y=r(11),d=r(22),h=r(10),g=r(15),b=r(12),m=r(38),S=r(55),x=r(31),O=r(84),w=r(51),j=r(24),A=r(6),T=r(43),P=r(8),_=r(16),L=r(28),M=r(18),E=r(20),I=r(29),k=r(3),C=r(39),N=r(0),F=r(13),D=r(17),R=r(85).forEach,G=M("hidden"),V=k("toPrimitive"),z=D.set,B=D.getterFor("Symbol"),W=Object.prototype,H=o.Symbol,J=i("JSON","stringify"),U=j.f,q=A.f,Y=O.f,$=T.f,K=L("symbols"),Q=L("op-symbols"),X=L("string-to-symbol-registry"),Z=L("symbol-to-string-registry"),tt=L("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,et=c&&s((function(){return 7!=m(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=U(W,n);e&&delete W[n],q(t,n,r),e&&t!==W&&q(W,n,e)}:q,ot=function(t,n){var r=K[t]=m(H.prototype);return z(r,{type:"Symbol",tag:t,description:n}),c||(r.description=n),r},it=a?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof H},ut=function(t,n,r){t===W&&ut(Q,n,r),y(t);var e=g(n,!0);return y(r),l(K,e)?(r.enumerable?(l(t,G)&&t[G][e]&&(t[G][e]=!1),r=m(r,{enumerable:b(0,!1)})):(l(t,G)||q(t,G,b(1,{})),t[G][e]=!0),et(t,e,r)):q(t,e,r)},ct=function(t,n){y(t);var r=h(n),e=S(r).concat(lt(r));return R(e,(function(n){c&&!ft.call(r,n)||ut(t,n,r[n])})),t},ft=function(t){var n=g(t,!0),r=$.call(this,n);return!(this===W&&l(K,n)&&!l(Q,n))&&(!(r||!l(this,n)||!l(K,n)||l(this,G)&&this[G][n])||r)},at=function(t,n){var r=h(t),e=g(n,!0);if(r!==W||!l(K,e)||l(Q,e)){var o=U(r,e);return!o||!l(K,e)||l(r,G)&&r[G][e]||(o.enumerable=!0),o}},st=function(t){var n=Y(h(t)),r=[];return R(n,(function(t){l(K,t)||l(E,t)||r.push(t)})),r},lt=function(t){var n=t===W,r=Y(n?Q:h(t)),e=[];return R(r,(function(t){!l(K,t)||n&&!l(W,t)||e.push(K[t])})),e};(f||(_((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=I(t),r=function(t){this===W&&r.call(Q,t),l(this,G)&&l(this[G],n)&&(this[G][n]=!1),et(this,n,b(1,t))};return c&&rt&&et(W,n,{configurable:!0,set:r}),ot(n,t)}).prototype,"toString",(function(){return B(this).tag})),_(H,"withoutSetter",(function(t){return ot(I(t),t)})),T.f=ft,A.f=ut,j.f=at,x.f=O.f=st,w.f=lt,C.f=function(t){return ot(k(t),t)},c&&(q(H.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),u||_(W,"propertyIsEnumerable",ft,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:H}),R(S(tt),(function(t){N(t)})),e({target:"Symbol",stat:!0,forced:!f},{for:function(t){var n=String(t);if(l(X,n))return X[n];var r=H(n);return X[n]=r,Z[r]=n,r},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),e({target:"Object",stat:!0,forced:!f,sham:!c},{create:function(t,n){return void 0===n?m(t):ct(m(t),n)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:at}),e({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),e({target:"Object",stat:!0,forced:s((function(){w.f(1)}))},{getOwnPropertySymbols:function(t){return w.f(d(t))}}),J)&&e({target:"JSON",stat:!0,forced:!f||s((function(){var t=H();return"[null]"!=J([t])||"{}"!=J({a:t})||"{}"!=J(Object(t))}))},{stringify:function(t,n,r){for(var e,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(e=n,(v(n)||void 0!==t)&&!it(t))return p(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!it(n))return n}),o[1]=n,J.apply(null,o)}});H.prototype[V]||P(H.prototype,V,H.prototype.valueOf),F(H,"Symbol"),E[G]=!0},function(t,n,r){var e=r(9),o=r(6),i=r(11),u=r(55);t.exports=e?Object.defineProperties:function(t,n){i(t);for(var r,e=u(n),c=e.length,f=0;c>f;)o.f(t,r=e[f++],n[r]);return t}},function(t,n,r){var e=r(21);t.exports=e("document","documentElement")},function(t,n,r){var e=r(10),o=r(31).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},function(t,n,r){var e=r(86),o=r(44),i=r(22),u=r(32),c=r(52),f=[].push,a=function(t){var n=1==t,r=2==t,a=3==t,s=4==t,l=6==t,p=5==t||l;return function(v,y,d,h){for(var g,b,m=i(v),S=o(m),x=e(y,d,3),O=u(S.length),w=0,j=h||c,A=n?j(v,O):r?j(v,0):void 0;O>w;w++)if((p||w in S)&&(b=x(g=S[w],w,m),t))if(n)A[w]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:f.call(A,g)}else if(s)return!1;return l?-1:a||s?s:A}};t.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6)}},function(t,n,r){var e=r(87);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 0:return function(){return t.call(n)};case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,n,r){r(0)("asyncIterator")},function(t,n,r){"use strict";var e=r(14),o=r(9),i=r(1),u=r(2),c=r(5),f=r(6).f,a=r(49),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),n=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[n]=!0),n};a(p,s);var v=p.prototype=s.prototype;v.constructor=p;var y=v.toString,d="Symbol(test)"==String(s("test")),h=/^Symbol\((.*)\)[^)]+$/;f(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,n=y.call(t);if(u(l,t))return"";var r=d?n.slice(7,-1):n.replace(h,"$1");return""===r?void 0:r}}),e({global:!0,forced:!0},{Symbol:p})}},function(t,n,r){r(0)("hasInstance")},function(t,n,r){r(0)("isConcatSpreadable")},function(t,n,r){r(0)("match")},function(t,n,r){r(0)("matchAll")},function(t,n,r){r(0)("replace")},function(t,n,r){r(0)("search")},function(t,n,r){r(0)("species")},function(t,n,r){r(0)("split")},function(t,n,r){r(0)("toPrimitive")},function(t,n,r){r(0)("toStringTag")},function(t,n,r){r(0)("unscopables")},function(t,n,r){r(13)(Math,"Math",!0)},function(t,n,r){var e=r(1);r(13)(e.JSON,"JSON",!0)},function(t,n,r){r(0)("asyncDispose")},function(t,n,r){r(0)("dispose")},function(t,n,r){r(0)("observable")},function(t,n,r){r(0)("patternMatch")},function(t,n,r){r(0)("replaceAll")},function(t,n,r){var e=r(109);t.exports=e},function(t,n,r){r(56),r(110),r(116);var e=r(39);t.exports=e.f("iterator")},function(t,n,r){"use strict";var e=r(111).charAt,o=r(17),i=r(57),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){u(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,n=c(this),r=n.string,o=n.index;return o>=r.length?{value:void 0,done:!0}:(t=e(r,o),n.index+=t.length,{value:t,done:!1})}))},function(t,n,r){var e=r(33),o=r(26),i=function(t){return function(n,r){var i,u,c=String(o(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f))<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,n,r){"use strict";var e=r(58).IteratorPrototype,o=r(38),i=r(12),u=r(13),c=r(40),f=function(){return this};t.exports=function(t,n,r){var a=n+" Iterator";return t.prototype=o(e,{next:i(1,r)}),u(t,a,!1,!0),c[a]=f,t}},function(t,n,r){var e=r(4);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,n,r){var e=r(11),o=r(115);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),n=r instanceof Array}catch(t){}return function(r,i){return e(r),o(i),n?t.call(r,i):r.__proto__=i,r}}():void 0)},function(t,n,r){var e=r(5);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,n,r){var e=r(1),o=r(117),i=r(118),u=r(8),c=r(3),f=c("iterator"),a=c("toStringTag"),s=i.values;for(var l in o){var p=e[l],v=p&&p.prototype;if(v){if(v[f]!==s)try{u(v,f,s)}catch(t){v[f]=s}if(v[a]||u(v,a,l),o[l])for(var y in i)if(v[y]!==i[y])try{u(v,y,i[y])}catch(t){v[y]=i[y]}}}},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,n,r){"use strict";var e=r(10),o=r(119),i=r(40),u=r(17),c=r(57),f=u.set,a=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,n){f(this,{type:"Array Iterator",target:e(t),index:0,kind:n})}),(function(){var t=a(this),n=t.target,r=t.kind,e=t.index++;return!n||e>=n.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:e,done:!1}:"values"==r?{value:n[e],done:!1}:{value:[e,n[e]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,n,r){var e=r(3),o=r(38),i=r(6),u=e("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},,function(t,n,r){"use strict";r.r(n);r(66),r(108);var e=function(t){var n,r=/#new_tab/;if("A"===(null==t||null===(n=t.tagName)||void 0===n?void 0:n.toUpperCase())&&r.test(null==t?void 0:t.getAttribute("href"))){var e=t.getAttribute("rel");(!e||e.indexOf("noopener")<0)&&t.setAttribute("rel","".concat(e?e+" ":"","noopener")),t.setAttribute("target","_blank"),t.setAttribute("aria-label","".concat(t.innerText," (opens in a new tab)")),t.setAttribute("href",t.getAttribute("href").replace(r,""))}},o=function(t){return e(t.target.closest("a"))},i=function(){var t=document.getElementsByTagName("A"),n=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value;e(c)}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}};(function(t){var n=t.Element.prototype;"function"!=typeof n.matches&&(n.matches=n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||function(t){for(var n=(this.document||this.ownerDocument).querySelectorAll(t),r=0;n[r]&&n[r]!==this;)++r;return Boolean(n[r])}),"function"!=typeof n.closest&&(n.closest=function(t){for(var n=this;n&&1===n.nodeType;){if(n.matches(t))return n;n=n.parentNode}return null})})(window),document.addEventListener("click",o),document.addEventListener("DOMContentLoaded",i)}]);
(function($){'use strict';$(document.body).on('adding_to_cart',function(){$('.ax-drop-toggle-badge').removeClass('ax-drop-toggle-badge-animate');});$(document.body).on('added_to_cart removed_from_cart',function(){setTimeout(function(){var $drop=$('.ax-drop-the-cart');var count=parseInt($drop.find('.cart_list').data('ax-cart-count'),10);if(count>0){$drop.find('.ax-drop-toggle-badge').removeClass('ax-drop-toggle-badge-hidden').addClass('ax-drop-toggle-badge-animate').text(count);}else{$drop.find('.ax-drop-toggle-badge').addClass('ax-drop-toggle-badge-hidden').text(count);}},500);});$(document.body).on('wc_cart_button_updated',function(e,$button){$button.next('a.added_to_cart').addClass('ax-link ax-link-right');});})(jQuery);
jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});
(function($,i18n){'use strict';var selectors={'items':'> li:not(.ax-drop):not(.ax-delimiter):not(li.ax-tab-item-current)'};var classes={'hidden':'hidden'};var isRTL=ax.isRTL();ax.tabs=function(){$.fn.axReverse=[].reverse;$('.ax-tabs > .ax-tab-items').each(function(){var $ul=$(this);var $liMore=$('<li class="ax-drop ax-drop-before ax-drop-the-more">');var $liMoreToggle=$('<a class="ax-drop-toggle" href="#"><i class="ax-drop-toggle-icon"></i><span class="ax-drop-toggle-text>"'+i18n.more_link+'</i><span class="ax-drop-toggle-arrow"></span></a>');var $liMoreContent=$('<div class="ax-drop-content"></div>');var $liMoreSubmenu=$('<ul class="sub-menu"></ul>');var $liDelimiter=$('<li class="ax-delimiter">');var maxWidth=$ul.width()-40;if($ul.prop('scrollWidth')<=$ul.width()){return;}
$liMore.append($liMoreToggle);$ul.append($liMore).append($liDelimiter);$ul.find(selectors.items).axReverse().each(function(index){var $this=$(this);if(isRTL){if($liMore.position().left<0){$this.addClass('menu-item');$liMoreSubmenu.prepend($this);}else if(0===index){$liMore.toggleClass(classes.hidden);$liDelimiter.toggleClass(classes.hidden);return false;}else{if($liDelimiter.position().left<0){$this.addClass('menu-item');$liMoreSubmenu.prepend($this);}}}else{if($liMore.position().left>maxWidth){$this.addClass('menu-item');$liMoreSubmenu.prepend($this);}else if(0===index){$liMore.toggleClass(classes.hidden);$liDelimiter.toggleClass(classes.hidden);return false;}else{if($liDelimiter.position().left>maxWidth){$this.addClass('menu-item');$liMoreSubmenu.prepend($this);}}}});$liMoreSubmenu.find('.ax-tab').removeClass('ax-tab');$liMoreContent.append($liMoreSubmenu);$liMore.append($liMoreContent);$liDelimiter.toggleClass(classes.hidden);$ul.addClass('ax-dropable');});};$(document).ready(function(){ax.tabs();});})(jQuery,ax.config.i18n.bp_profile_nav);
(function($){'use strict';ax.backToTop=function(){var $scrollToTop=$('.ax-back-to-top');toggleVisibility($scrollToTop);$scrollToTop.on('click',function(e){e.preventDefault();var multipier=200;var durationRange={min:200,max:1000};var winHeight=$(window).height();var docHeight=$(document).height();var proportion=Math.floor(docHeight/winHeight);var duration=proportion*multipier;if(duration<durationRange.min){duration=durationRange.min;}
if(duration>durationRange.max){duration=durationRange.max;}
$('html, body').animate({scrollTop:0},duration);});$(window).scroll(function(){window.requestAnimationFrame(function(){toggleVisibility($scrollToTop);});});};function toggleVisibility($scrollToTop){if($(window).scrollTop()>240){$scrollToTop.addClass('ax-back-to-top-on').removeClass('ax-back-to-top-off');}else{$scrollToTop.addClass('ax-back-to-top-off').removeClass('ax-back-to-top-on');}}
$(document).ready(function(){ax.backToTop();});})(jQuery);