window.LSBrand = 'please'; window.LSConfigBrand = '[]'; /* v1/js/livestory.min.js */ function __fpls__setCDN(e){for(var t=0;t>>4&15)+n.charAt(15&t);return a}function X(e){for(var t=Array(e.length>>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<>5]>>>n%32&255);return t}function Y(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,a=-271733879,i=-1732584194,l=271733878,o=0;o>16)+(t>>16)+(n>>16)<<16|65535&n}function bit_rol(e,t){return e<>>32-t}(function(e){var t=!1,n=!1,a=!1;!function(e,i){"object"==typeof n&&void 0!==a?a.exports=i():"function"==typeof t&&t.amd?t(i):e.LSmmt=i()}(this,function(){"use strict";function e(){return Tn.apply(null,arguments)}function t(e){return"[object Array]"===Object.prototype.toString.call(e)}function n(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){var n,a=[];for(n=0;n0)for(n in Pn)a=Pn[n],void 0!==(i=t[a])&&(e[a]=i);return e}function f(t){d(this,t),this._d=new Date(+t._d),!1===An&&(An=!0,e.updateOffset(this),An=!1)}function h(e){return e instanceof f||null!=e&&null!=e._isAMomentObject}function m(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function _(e,t,n){var a,i=Math.min(e.length,t.length),l=Math.abs(e.length-t.length),o=0;for(a=0;i>a;a++)(n&&e[a]!==t[a]||!n&&m(e[a])!==m(t[a]))&&o++;return o+l}function v(){}function g(e){return e?e.toLowerCase().replace("_","-"):e}function y(e){for(var t,n,a,i,l=0;l0;){if(a=b(i.slice(0,t).join("-")))return a;if(n&&n.length>=t&&_(i,n,!0)>=t-1)break;t--}l++}return null}function b(e){var t=null;if(!Hn[e]&&void 0!==a&&a&&a.exports)try{t=Mn._abbr,(!1)("./locale/"+e),w(t)}catch(e){}return Hn[e]}function w(e,t){var n;return e&&(n=void 0===t?x(e):S(e,t))&&(Mn=n),Mn._abbr}function S(e,t){return null!==t?(t.abbr=e,Hn[e]||(Hn[e]=new v),Hn[e].set(t),w(e),Hn[e]):(delete Hn[e],null)}function x(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Mn;if(!t(e)){if(n=b(e))return n;e=[e]}return y(e)}function L(e,t){var n=e.toLowerCase();Dn[n]=Dn[n+"s"]=Dn[t]=e}function k(e){return"string"==typeof e?Dn[e]||Dn[e.toLowerCase()]:void 0}function C(e){var t,n,a={};for(n in e)l(e,n)&&(t=k(n))&&(a[t]=e[n]);return a}function I(t,n){return function(a){return null!=a?(O(this,t,a),e.updateOffset(this,n),this):E(this,t)}}function E(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function O(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function T(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=k(e),"function"==typeof this[e])return this[e](t);return this}function M(e,t,n){for(var a=""+Math.abs(e),i=e>=0;a.lengtht;t++)Bn[a[t]]?a[t]=Bn[a[t]]:a[t]=A(a[t]);return function(i){var l="";for(t=0;n>t;t++)l+=a[t]instanceof Function?a[t].call(i,e):a[t];return l}}function D(e,t){return e.isValid()?(t=R(t,e.localeData()),Un[t]||(Un[t]=H(t)),Un[t](e)):e.localeData().invalidDate()}function R(e,t){function n(e){return t.longDateFormat(e)||e}var a=5;for(Wn.lastIndex=0;a>=0&&Wn.test(e);)e=e.replace(Wn,n),Wn.lastIndex=0,a-=1;return e}function W(e,t,n){ea[e]="function"==typeof t?t:function(e){return e&&n?n:t}}function U(e,t){return l(ea,e)?ea[e](t._strict,t._locale):new RegExp(B(e))}function B(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,i){return t||n||a||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Y(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(a=function(e,n){n[t]=m(e)}),n=0;na;a++){if(i=s([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(l="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[a]=new RegExp(l.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}}function V(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))?e:(n=Math.min(e.date(),$(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function q(t){return null!=t?(V(this,t),e.updateOffset(this,!0),this):E(this,"Month")}function K(){return $(this.year(),this.month())}function J(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[aa]<0||n[aa]>11?aa:n[ia]<1||n[ia]>$(n[na],n[aa])?ia:n[la]<0||n[la]>24||24===n[la]&&(0!==n[oa]||0!==n[sa]||0!==n[ra])?la:n[oa]<0||n[oa]>59?oa:n[sa]<0||n[sa]>59?sa:n[ra]<0||n[ra]>999?ra:-1,p(e)._overflowDayOfYear&&(na>t||t>ia)&&(t=ia),p(e).overflow=t),e}function X(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Z(e,t){var n=!0,a=e+"\n"+(new Error).stack;return o(function(){return n&&(X(a),n=!1),t.apply(this,arguments)},t)}function Q(e,t){ca[e]||(X(t),ca[e]=!0)}function ee(e){var t,n,a=e._i,i=da.exec(a);if(i){for(p(e).iso=!0,t=0,n=fa.length;n>t;t++)if(fa[t][1].exec(a)){e._f=fa[t][0]+(i[6]||" ");break}for(t=0,n=ha.length;n>t;t++)if(ha[t][1].exec(a)){e._f+=ha[t][0];break}a.match(Xn)&&(e._f+="Z"),ye(e)}else e._isValid=!1}function te(t){var n=ma.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(ee(t),void(!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t))))}function ne(e,t,n,a,i,l,o){var s=new Date(e,t,n,a,i,l,o);return 1970>e&&s.setFullYear(e),s}function ae(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function ie(e){return le(e)?366:365}function le(e){return e%4==0&&e%100!=0||e%400==0}function oe(){return le(this.year())}function se(e,t,n){var a,i=n-t,l=n-e.day();return l>i&&(l-=7),i-7>l&&(l+=7),a=Ce(e).add(l,"d"),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function re(e){return se(e,this._week.dow,this._week.doy).week}function pe(){return this._week.dow}function ue(){return this._week.doy}function ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function de(e){var t=se(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function fe(e,t,n,a,i){var l,o,s=ae(e,0,1).getUTCDay();return s=0===s?7:s,n=null!=n?n:i,l=i-s+(s>a?7:0)-(i>s?7:0),o=7*(t-1)+(n-i)+l+1,{year:o>0?e:e-1,dayOfYear:o>0?o:ie(e-1)+o}}function he(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function me(e,t,n){return null!=e?e:null!=t?t:n}function _e(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ve(e){var t,n,a,i,l=[];if(!e._d){for(a=_e(e),e._w&&null==e._a[ia]&&null==e._a[aa]&&ge(e),e._dayOfYear&&(i=me(e._a[na],a[na]),e._dayOfYear>ie(i)&&(p(e)._overflowDayOfYear=!0),n=ae(i,0,e._dayOfYear),e._a[aa]=n.getUTCMonth(),e._a[ia]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=l[t]=a[t];for(;7>t;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[la]&&0===e._a[oa]&&0===e._a[sa]&&0===e._a[ra]&&(e._nextDay=!0,e._a[la]=0),e._d=(e._useUTC?ae:ne).apply(null,l),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[la]=24)}}function ge(e){var t,n,a,i,l,o,s;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(l=1,o=4,n=me(t.GG,e._a[na],se(Ce(),1,4).year),a=me(t.W,1),i=me(t.E,1)):(l=e._locale._week.dow,o=e._locale._week.doy,n=me(t.gg,e._a[na],se(Ce(),l,o).year),a=me(t.w,1),null!=t.d?(i=t.d,l>i&&++a):i=null!=t.e?t.e+l:l),s=fe(n,a,i,o,l),e._a[na]=s.year,e._dayOfYear=s.dayOfYear}function ye(t){if(t._f===e.ISO_8601)return void ee(t);t._a=[],p(t).empty=!0;var n,a,i,l,o,s=""+t._i,r=s.length,u=0;for(i=R(t._f,t._locale).match(Rn)||[],n=0;n0&&p(t).unusedInput.push(o),s=s.slice(s.indexOf(a)+a.length),u+=a.length),Bn[l]?(a?p(t).empty=!1:p(t).unusedTokens.push(l),N(l,a,t)):t._strict&&!a&&p(t).unusedTokens.push(l);p(t).charsLeftOver=r-u,s.length>0&&p(t).unusedInput.push(s),!0===p(t).bigHour&&t._a[la]<=12&&t._a[la]>0&&(p(t).bigHour=void 0),t._a[la]=be(t._locale,t._a[la],t._meridiem),ve(t),J(t)}function be(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(a=e.isPM(n),a&&12>t&&(t+=12),a||12!==t||(t=0),t):t}function we(e){var t,n,a,i,l;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;il)&&(a=l,n=t));o(e,n||t)}function Se(e){if(!e._d){var t=C(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],ve(e)}}function xe(e){var a,i=e._i,l=e._f;return e._locale=e._locale||x(e._l),null===i||void 0===l&&""===i?c({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),h(i)?new f(J(i)):(t(l)?we(e):l?ye(e):n(i)?e._d=i:Le(e),a=new f(J(e)),a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a))}function Le(a){var l=a._i;void 0===l?a._d=new Date:n(l)?a._d=new Date(+l):"string"==typeof l?te(a):t(l)?(a._a=i(l.slice(0),function(e){return parseInt(e,10)}),ve(a)):"object"==typeof l?Se(a):"number"==typeof l?a._d=new Date(l):e.createFromInputFallback(a)}function ke(e,t,n,a,i){var l={};return"boolean"==typeof n&&(a=n,n=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=a,xe(l)}function Ce(e,t,n,a){return ke(e,t,n,a,!1)}function Ie(e,n){var a,i;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return Ce();for(a=n[0],i=1;ie&&(e=-e,n="-"),n+M(~~(e/60),2)+t+M(~~e%60,2)})}function Ae(e){var t=(e||"").match(Xn)||[],n=t[t.length-1]||[],a=(n+"").match(ba)||["-",0,0],i=60*a[1]+m(a[2]);return"+"===a[0]?i:-i}function He(t,a){var i,l;return a._isUTC?(i=a.clone(),l=(h(t)||n(t)?+t:+Ce(t))-+i,i._d.setTime(+i._d+l),e.updateOffset(i,!1),i):Ce(t).local()}function De(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Re(t,n){var a,i=this._offset||0;return null!=t?("string"==typeof t&&(t=Ae(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&n&&(a=De(this)),this._offset=t,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==t&&(!n||this._changeInProgress?Ze(this,Ve(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:De(this)}function We(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ue(e){return this.utcOffset(0,e)}function Be(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(De(this),"m")),this}function Ye(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ae(this._i)),this}function Fe(e){return e=e?Ce(e).utcOffset():0,(this.utcOffset()-e)%60==0}function Ne(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $e(){if(this._a){var e=this._isUTC?s(this._a):Ce(this._a);return this.isValid()&&_(this._a,e.toArray())>0}return!1}function je(){return!this._isUTC}function ze(){return this._isUTC}function Ge(){return this._isUTC&&0===this._offset}function Ve(e,t){var n,a,i,o=e,s=null;return Me(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(s=wa.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:m(s[ia])*n,h:m(s[la])*n,m:m(s[oa])*n,s:m(s[sa])*n,ms:m(s[ra])*n}):(s=Sa.exec(e))?(n="-"===s[1]?-1:1,o={y:qe(s[2],n),M:qe(s[3],n),d:qe(s[4],n),h:qe(s[5],n),m:qe(s[6],n),s:qe(s[7],n),w:qe(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Je(Ce(o.from),Ce(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),a=new Te(o),Me(e)&&l(e,"_locale")&&(a._locale=e._locale),a}function qe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ke(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Je(e,t){var n;return t=He(t,e),e.isBefore(t)?n=Ke(e,t):(n=Ke(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Xe(e,t){return function(n,a){var i,l;return null===a||isNaN(+a)||(Q(t,"LSmmt()."+t+"(period, number) is deprecated. Please use LSmmt()."+t+"(number, period)."),l=n,n=a,a=l),n="string"==typeof n?+n:n,i=Ve(n,a),Ze(this,i,e),this}}function Ze(t,n,a,i){var l=n._milliseconds,o=n._days,s=n._months;i=null==i||i,l&&t._d.setTime(+t._d+l*a),o&&O(t,"Date",E(t,"Date")+o*a),s&&V(t,E(t,"Month")+s*a),i&&e.updateOffset(t,o||s)}function Qe(e){var t=e||Ce(),n=He(t,this).startOf("day"),a=this.diff(n,"days",!0),i=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this,Ce(t)))}function et(){return new f(this)}function tt(e,t){return t=k(void 0!==t?t:"millisecond"),"millisecond"===t?(e=h(e)?e:Ce(e),+this>+e):(h(e)?+e:+Ce(e))<+this.clone().startOf(t)}function nt(e,t){var n;return t=k(void 0!==t?t:"millisecond"),"millisecond"===t?+(e=h(e)?e:Ce(e))>+this:(n=h(e)?+e:+Ce(e),+this.clone().endOf(t)e?Math.ceil(e):Math.floor(e)}function ot(e,t,n){var a,i,l=He(e,this),o=6e4*(l.utcOffset()-this.utcOffset());return t=k(t),"year"===t||"month"===t||"quarter"===t?(i=st(this,l),"quarter"===t?i/=3:"year"===t&&(i/=12)):(a=this-l,i="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-o)/864e5:"week"===t?(a-o)/6048e5:a),n?i:lt(i)}function st(e,t){var n,a,i=12*(t.year()-e.year())+(t.month()-e.month()),l=e.clone().add(i,"months");return 0>t-l?(n=e.clone().add(i-1,"months"),a=(t-l)/(l-n)):(n=e.clone().add(i+1,"months"),a=(t-l)/(n-l)),-(i+a)}function rt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pt(){var e=this.clone().utc();return 0t;t++)if(this._weekdaysParse[t]||(n=Ce([2e3,1]).day(t),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t}function Ut(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=At(e,this.localeData()),this.add(e-t,"d")):t}function Bt(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)}function Ft(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Nt(e,t){return t._meridiemParse}function $t(e){return"p"===(e+"").toLowerCase().charAt(0)}function jt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function zt(e){P(0,[e,3],0,"millisecond")}function Gt(){return this._isUTC?"UTC":""}function Vt(){return this._isUTC?"Coordinated Universal Time":""}function qt(e){return Ce(1e3*e)}function Kt(){return Ce.apply(null,arguments).parseZone()}function Jt(e,t,n){var a=this._calendar[e];return"function"==typeof a?a.call(t,n):a}function Xt(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t}function Zt(){return this._invalidDate}function Qt(e){return this._ordinal.replace("%d",e)}function en(e){return e}function tn(e,t,n,a){var i=this._relativeTime[n];return"function"==typeof i?i(e,t,n,a):i.replace(/%d/i,e)}function nn(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)}function an(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function ln(e,t,n,a){var i=x(),l=s().set(a,t);return i[n](l,e)}function on(e,t,n,a,i){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return ln(e,t,n,i);var l,o=[];for(l=0;a>l;l++)o[l]=ln(e,l,n,i);return o}function sn(e,t){return on(e,t,"months",12,"month")}function rn(e,t){return on(e,t,"monthsShort",12,"month")}function pn(e,t){return on(e,t,"weekdays",7,"day")}function un(e,t){return on(e,t,"weekdaysShort",7,"day")}function cn(e,t){return on(e,t,"weekdaysMin",7,"day")}function dn(){var e=this._data;return this._milliseconds=Na(this._milliseconds),this._days=Na(this._days),this._months=Na(this._months),e.milliseconds=Na(e.milliseconds),e.seconds=Na(e.seconds),e.minutes=Na(e.minutes),e.hours=Na(e.hours),e.months=Na(e.months),e.years=Na(e.years),this}function fn(e,t,n,a){var i=Ve(t,n);return e._milliseconds+=a*i._milliseconds,e._days+=a*i._days,e._months+=a*i._months,e._bubble()}function hn(e,t){return fn(this,e,t,1)}function mn(e,t){return fn(this,e,t,-1)}function _n(){var e,t,n,a=this._milliseconds,i=this._days,l=this._months,o=this._data,s=0;return o.milliseconds=a%1e3,e=lt(a/1e3),o.seconds=e%60,t=lt(e/60),o.minutes=t%60,n=lt(t/60),o.hours=n%24,i+=lt(n/24),s=lt(vn(i)),i-=lt(gn(s)),l+=lt(i/30),i%=30,s+=lt(l/12),l%=12,o.days=i,o.months=l,o.years=s,this}function vn(e){return 400*e/146097}function gn(e){return 146097*e/400}function yn(e){var t,n,a=this._milliseconds;if("month"===(e=k(e))||"year"===e)return t=this._days+a/864e5,n=this._months+12*vn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(gn(this._months/12)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}}function bn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)}function wn(e){return function(){return this.as(e)}}function Sn(e){return e=k(e),this[e+"s"]()}function xn(e){return function(){return this._data[e]}}function Ln(){return lt(this.days()/7)}function kn(e,t,n,a,i){return i.relativeTime(t||1,!!n,e,a)}function Cn(e,t,n){var a=Ve(e).abs(),i=ii(a.as("s")),l=ii(a.as("m")),o=ii(a.as("h")),s=ii(a.as("d")),r=ii(a.as("M")),p=ii(a.as("y")),u=i0,u[4]=n,kn.apply(null,u)}function In(e,t){return void 0!==li[e]&&(void 0===t?li[e]:(li[e]=t,!0))}function En(e){var t=this.localeData(),n=Cn(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function On(){var e=oi(this.years()),t=oi(this.months()),n=oi(this.days()),a=oi(this.hours()),i=oi(this.minutes()),l=oi(this.seconds()+this.milliseconds()/1e3),o=this.asSeconds();return o?(0>o?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(a||i||l?"T":"")+(a?a+"H":"")+(i?i+"M":"")+(l?l+"S":""):"P0D"}var Tn,Mn,Pn=e.LSmmtProperties=[],An=!1,Hn={},Dn={},Rn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Wn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Un={},Bn={},Yn=/\d/,Fn=/\d\d/,Nn=/\d{3}/,$n=/\d{4}/,jn=/[+-]?\d{6}/,zn=/\d\d?/,Gn=/\d{1,3}/,Vn=/\d{1,4}/,qn=/[+-]?\d{1,6}/,Kn=/\d+/,Jn=/[+-]?\d+/,Xn=/Z|[+-]\d\d:?\d\d/gi,Zn=/[+-]?\d+(\.\d{1,3})?/,Qn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ea={},ta={},na=0,aa=1,ia=2,la=3,oa=4,sa=5,ra=6;P("M",["MM",2],"Mo",function(){return this.month()+1}),P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),P("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),W("M",zn),W("MM",zn,Fn),W("MMM",Qn),W("MMMM",Qn),Y(["M","MM"],function(e,t){t[aa]=m(e)-1}),Y(["MMM","MMMM"],function(e,t,n,a){var i=n._locale.monthsParse(e,a,n._strict);null!=i?t[aa]=i:p(n).invalidMonth=e});var pa="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ua="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ca={};e.suppressDeprecationWarnings=!1;var da=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ha=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ma=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=Z("LSmmt construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/LSmmt/LSmmt/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),P(0,["YY",2],0,function(){return this.year()%100}),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),L("year","y"),W("Y",Jn),W("YY",zn,Fn),W("YYYY",Vn,$n),W("YYYYY",qn,jn),W("YYYYYY",qn,jn),Y(["YYYY","YYYYY","YYYYYY"],na),Y("YY",function(t,n){n[na]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var _a=I("FullYear",!1);P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),W("w",zn),W("ww",zn,Fn),W("W",zn),W("WW",zn,Fn),F(["w","ww","W","WW"],function(e,t,n,a){t[a.substr(0,1)]=m(e)});var va={dow:0,doy:6};P("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),W("DDD",Gn),W("DDDD",Nn),Y(["DDD","DDDD"],function(e,t,n){n._dayOfYear=m(e)}),e.ISO_8601=function(){};var ga=Z("LSmmt().min is deprecated, use LSmmt.min instead. https://github.com/LSmmt/LSmmt/issues/1548",function(){var e=Ce.apply(null,arguments);return this>e?this:e}),ya=Z("LSmmt().max is deprecated, use LSmmt.max instead. https://github.com/LSmmt/LSmmt/issues/1548",function(){var e=Ce.apply(null,arguments);return e>this?this:e});Pe("Z",":"),Pe("ZZ",""),W("Z",Xn),W("ZZ",Xn),Y(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ae(e)});var ba=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var wa=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Sa=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ve.fn=Te.prototype;var xa=Xe(1,"add"),La=Xe(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var ka=Z("LSmmt().lang() is deprecated. Instead, use LSmmt().localeData() to get the language configuration. Use LSmmt().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});P(0,["gg",2],0,function(){return this.weekYear()%100}),P(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ct("gggg","weekYear"),Ct("ggggg","weekYear"),Ct("GGGG","isoWeekYear"),Ct("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),W("G",Jn),W("g",Jn),W("GG",zn,Fn),W("gg",zn,Fn),W("GGGG",Vn,$n),W("gggg",Vn,$n),W("GGGGG",qn,jn),W("ggggg",qn,jn),F(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,a){t[a.substr(0,2)]=m(e)}),F(["gg","GG"],function(t,n,a,i){n[i]=e.parseTwoDigitYear(t)}),P("Q",0,0,"quarter"),L("quarter","Q"),W("Q",Yn),Y("Q",function(e,t){t[aa]=3*(m(e)-1)}),P("D",["DD",2],"Do","date"),L("date","D"),W("D",zn),W("DD",zn,Fn),W("Do",function(e,t){ return e?t._ordinalParse:t._ordinalParseLenient}),Y(["D","DD"],ia),Y("Do",function(e,t){t[ia]=m(e.match(zn)[0],10)});var Ca=I("Date",!0);P("d",0,"do","day"),P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),W("d",zn),W("e",zn),W("E",zn),W("dd",Qn),W("ddd",Qn),W("dddd",Qn),F(["dd","ddd","dddd"],function(e,t,n){var a=n._locale.weekdaysParse(e);null!=a?t.d=a:p(n).invalidWeekday=e}),F(["d","e","E"],function(e,t,n,a){t[a]=m(e)});var Ia="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ea="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Oa="Su_Mo_Tu_We_Th_Fr_Sa".split("_");P("H",["HH",2],0,"hour"),P("h",["hh",2],0,function(){return this.hours()%12||12}),Ft("a",!0),Ft("A",!1),L("hour","h"),W("a",Nt),W("A",Nt),W("H",zn),W("h",zn),W("HH",zn,Fn),W("hh",zn,Fn),Y(["H","HH"],la),Y(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Y(["h","hh"],function(e,t,n){t[la]=m(e),p(n).bigHour=!0});var Ta=/[ap]\.?m?\.?/i,Ma=I("Hours",!0);P("m",["mm",2],0,"minute"),L("minute","m"),W("m",zn),W("mm",zn,Fn),Y(["m","mm"],oa);var Pa=I("Minutes",!1);P("s",["ss",2],0,"second"),L("second","s"),W("s",zn),W("ss",zn,Fn),Y(["s","ss"],sa);var Aa=I("Seconds",!1);P("S",0,0,function(){return~~(this.millisecond()/100)}),P(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),zt("SSS"),zt("SSSS"),L("millisecond","ms"),W("S",Gn,Yn),W("SS",Gn,Fn),W("SSS",Gn,Nn),W("SSSS",Kn),Y(["S","SS","SSS","SSSS"],function(e,t){t[ra]=m(1e3*("0."+e))});var Ha=I("Milliseconds",!1);P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Da=f.prototype;Da.add=xa,Da.calendar=Qe,Da.clone=et,Da.diff=ot,Da.endOf=gt,Da.format=ut,Da.from=ct,Da.fromNow=dt,Da.to=ft,Da.toNow=ht,Da.get=T,Da.invalidAt=kt,Da.isAfter=tt,Da.isBefore=nt,Da.isBetween=at,Da.isSame=it,Da.isValid=xt,Da.lang=ka,Da.locale=mt,Da.localeData=_t,Da.max=ya,Da.min=ga,Da.parsingFlags=Lt,Da.set=T,Da.startOf=vt,Da.subtract=La,Da.toArray=St,Da.toDate=wt,Da.toISOString=pt,Da.toJSON=pt,Da.toString=rt,Da.unix=bt,Da.valueOf=yt,Da.year=_a,Da.isLeapYear=oe,Da.weekYear=Et,Da.isoWeekYear=Ot,Da.quarter=Da.quarters=Pt,Da.month=q,Da.daysInMonth=K,Da.week=Da.weeks=ce,Da.isoWeek=Da.isoWeeks=de,Da.weeksInYear=Mt,Da.isoWeeksInYear=Tt,Da.date=Ca,Da.day=Da.days=Ut,Da.weekday=Bt,Da.isoWeekday=Yt,Da.dayOfYear=he,Da.hour=Da.hours=Ma,Da.minute=Da.minutes=Pa,Da.second=Da.seconds=Aa,Da.millisecond=Da.milliseconds=Ha,Da.utcOffset=Re,Da.utc=Ue,Da.local=Be,Da.parseZone=Ye,Da.hasAlignedHourOffset=Fe,Da.isDST=Ne,Da.isDSTShifted=$e,Da.isLocal=je,Da.isUtcOffset=ze,Da.isUtc=Ge,Da.isUTC=Ge,Da.zoneAbbr=Gt,Da.zoneName=Vt,Da.dates=Z("dates accessor is deprecated. Use date instead.",Ca),Da.months=Z("months accessor is deprecated. Use month instead",q),Da.years=Z("years accessor is deprecated. Use year instead",_a),Da.zone=Z("LSmmt().zone is deprecated, use LSmmt().utcOffset instead. https://github.com/LSmmt/LSmmt/issues/1779",We);var Ra=Da,Wa={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ua={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},Ba=/\d{1,2}/,Ya={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Fa=v.prototype;Fa._calendar=Wa,Fa.calendar=Jt,Fa._longDateFormat=Ua,Fa.longDateFormat=Xt,Fa._invalidDate="Invalid date",Fa.invalidDate=Zt,Fa._ordinal="%d",Fa.ordinal=Qt,Fa._ordinalParse=Ba,Fa.preparse=en,Fa.postformat=en,Fa._relativeTime=Ya,Fa.relativeTime=tn,Fa.pastFuture=nn,Fa.set=an,Fa.months=j,Fa._months=pa,Fa.monthsShort=z,Fa._monthsShort=ua,Fa.monthsParse=G,Fa.week=re,Fa._week=va,Fa.firstDayOfYear=ue,Fa.firstDayOfWeek=pe,Fa.weekdays=Ht,Fa._weekdays=Ia,Fa.weekdaysMin=Rt,Fa._weekdaysMin=Oa,Fa.weekdaysShort=Dt,Fa._weekdaysShort=Ea,Fa.weekdaysParse=Wt,Fa.isPM=$t,Fa._meridiemParse=Ta,Fa.meridiem=jt,w("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===m(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=Z("LSmmt.lang is deprecated. Use LSmmt.locale instead.",w),e.langData=Z("LSmmt.langData is deprecated. Use LSmmt.localeData instead.",x);var Na=Math.abs,$a=wn("ms"),ja=wn("s"),za=wn("m"),Ga=wn("h"),Va=wn("d"),qa=wn("w"),Ka=wn("M"),Ja=wn("y"),Xa=xn("milliseconds"),Za=xn("seconds"),Qa=xn("minutes"),ei=xn("hours"),ti=xn("days"),ni=xn("months"),ai=xn("years"),ii=Math.round,li={s:45,m:45,h:22,d:26,M:11},oi=Math.abs,si=Te.prototype;return si.abs=dn,si.add=hn,si.subtract=mn,si.as=yn,si.asMilliseconds=$a,si.asSeconds=ja,si.asMinutes=za,si.asHours=Ga,si.asDays=Va,si.asWeeks=qa,si.asMonths=Ka,si.asYears=Ja,si.valueOf=bn,si._bubble=_n,si.get=Sn,si.milliseconds=Xa,si.seconds=Za,si.minutes=Qa,si.hours=ei,si.days=ti,si.weeks=Ln,si.months=ni,si.years=ai,si.humanize=En,si.toISOString=On,si.toString=On,si.toJSON=On,si.locale=mt,si.localeData=_t,si.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),si.lang=ka,P("X",0,0,"unix"),P("x",0,0,"valueOf"),W("x",Jn),W("X",Zn),Y("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Y("x",function(e,t,n){n._d=new Date(m(e))}),e.version="2.10.3",function(e){Tn=e}(Ce),e.fn=Ra,e.min=Ee,e.max=Oe,e.utc=s,e.unix=qt,e.months=sn,e.isDate=n,e.locale=w,e.invalid=c,e.duration=Ve,e.isMoment=h,e.weekdays=pn,e.parseZone=Kt,e.localeData=x,e.isDuration=Me,e.monthsShort=rn,e.weekdaysMin=cn,e.defineLocale=S,e.weekdaysShort=un,e.normalizeUnits=k,e.relativeTimeThreshold=In,e}),function(e,i,l){"object"==typeof n?(a.exports=l(),a.exports.default=l()):"function"==typeof t&&t.amd?t(l):i.slugify=l()}(0,this,function(){function e(e,a){if("string"!=typeof e)throw new Error("slugify: string argument expected");a="string"==typeof a?{replacement:a}:a||{};var i=n[a.locale]||{},l=void 0===a.replacement?"-":a.replacement,o=void 0===a.trim||a.trim,s=e.normalize().split("").reduce(function(e,n){var o=i[n];return void 0===o&&(o=t[n]),void 0===o&&(o=n),o===l&&(o=" "),e+o.replace(a.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return a.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),o&&(s=s.trim()),s=s.replace(/\s+/g,l),a.lower&&(s=s.toLowerCase()),s}var t=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');return e.extend=function(e){Object.assign(t,e)},e}),function(e,n){"use strict";if("function"==typeof t&&t.amd)t(n);else if(void 0!==a&&a.exports)a.exports=n();else{var i=e.shortid,l=n();l.noConflict=function(){return e.shortid=i,l},e.shortid=l}}(this,function(){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t=function(e,t){return(e+t).slice(-e.length)},n=function(e){this._opt=e||{}};return n.prototype={_toBase:function(t,n){var a=this._opt,i=a.symbols||e,l="";if(n>i.length||1>=n)return!1;for(;t>=1;)l=i[t-n*Math.floor(t/n)]+l,t=Math.floor(t/n);return 11>n?parseInt(l):l},_salts:function(){for(var e=this,n=e._opt,a=n.salts||2,i="",l=0;a>l;l++){var o=Math.floor(3844*Math.random());i+=t("00",e._toBase(o,62))}return i},gen:function(){var e=this,t=e._opt,n=t.interval||1,a=t.initTime||14603328e5,i=n>0?Math.floor(((new Date).getTime()-a)/n):0,l=e._salts();return 0===i?l:e._toBase(i,62)+l}},{inst:function(e){return new n(e)},gen:function(e){return new n(e).gen()},uuid:function(){return new n({salts:4}).gen()}}}),function(i){var l=!1;if("function"==typeof t&&t.amd&&(t(i),l=!0),"object"==typeof n&&(a.exports=i(),l=!0),!l){var o=e.Cookies,s=e.Cookies=i();s.noConflict=function(){return e.Cookies=o,s}}}(function(){function e(){for(var e=0,t={};e1){if(l=e({path:"/"},a.defaults,l),"number"==typeof l.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*l.expires),l.expires=s}try{o=JSON.stringify(i),/^[\{\[]/.test(o)&&(i=o)}catch(e){}return i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",i,l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}t||(o={});for(var r=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,u=0;u= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};t.REVISION_CHANGES=d,a.prototype={constructor:a,logger:c.default,log:c.default.log,registerHelper:function(e,t){if("[object Object]"===l.toString.call(e)){if(t)throw new s.default("Arg not supported with multiple helpers");l.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===l.toString.call(e))l.extend(this.partials,e);else{if(void 0===t)throw new s.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===l.toString.call(e)){if(t)throw new s.default("Arg not supported with multiple decorators");l.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var f=c.default.log;t.log=f,t.createFrame=l.createFrame,t.logger=c.default},function(e,t){"use strict";function n(e){return u[e]}function a(e){for(var t=1;t":">",'"':""","'":"'","`":"`","=":"="},c=/[&<>"'`=]/g,d=/[&<>"'`=]/,f=Object.prototype.toString;t.toString=f;var h=function(e){return"function"==typeof e};h(/x/)&&(t.isFunction=h=function(e){return"function"==typeof e&&"[object Function]"===f.call(e)}),t.isFunction=h;var m=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===f.call(e)};t.isArray=m},function(e,t,n){"use strict";function a(e,t){var n=t&&t.loc,o=void 0,s=void 0;n&&(o=n.start.line,s=n.start.column,e+=" - "+o+":"+s);for(var r=Error.prototype.constructor.call(this,e),p=0;p0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var o=a.createFrame(n.data);o.contextPath=a.appendContextPath(n.data.contextPath,n.name),n={data:o}}return l(t,n)})},e.exports=t.default},function(e,t,n){(function(a){"use strict";var i=n(2).default;t.__esModule=!0;var l=n(4),o=n(5),s=i(o);t.default=function(e){e.registerHelper("each",function(e,t){function n(t,n,a){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!a,c&&(u.contextPath=c+t)),p+=i(e[t],{data:u,blockParams:l.blockParams([e[t],t],[c+t,null])})}if(!t)throw new s.default("Must pass iterator to #each");var i=t.fn,o=t.inverse,r=0,p="",u=void 0,c=void 0;if(t.data&&t.ids&&(c=l.appendContextPath(t.data.contextPath,t.ids[0])+"."),l.isFunction(e)&&(e=e.call(this)),t.data&&(u=l.createFrame(t.data)),e&&"object"==typeof e)if(l.isArray(e))for(var d=e.length;r=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,a=Array(n>1?n-1:0),l=1;l=g.LAST_COMPATIBLE_COMPILER_REVISION&&t<=g.COMPILER_REVISION)){if(t\n \n
\n'+(null!=(l=n.if.call(s,null!=t?t.custom_labels_array:t,{name:"if",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i}))?l:"")+" \n"+(null!=(l=n.if.call(s,null!=t?t.image_responsive_url:t,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.program(13,i,0),data:i}))?l:"")+" \n
\n"+(null!=(l=n.if.call(s,null!=t?t.showOverlay:t,{name:"if",hash:{},fn:e.program(15,i,0),inverse:e.noop,data:i}))?l:"")+"
\n \n"+(null!=(l=n.if.call(s,null!=t?t.caption:t,{name:"if",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?l:"")+" \n"},2:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'href="'+e.escapeExpression((l=null!=(l=n.url||(null!=t?t.url:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:i}):l))+'"'},4:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.custom_labels:t,{name:"each",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?l:""},5:function(e,t,n,a,i){var l;return" "+(null!=(l=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?l:"")+"\n"},6:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,e.escapeExpression);return" data-custom-label-"+o((l=null!=(l=n.index||i&&i.index)?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"index",hash:{},data:i}):l))+'="'+o(e.lambda(t,t))+'"'},8:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
\n'+(null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.custom_labels_array:t,{name:"each",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?l:"")+"
\n"},9:function(e,t,n,a,i){return' '+e.escapeExpression(e.lambda(t,t))+"\n"},11:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression,u=e.lambda;return' '+p((o=null!=(o=n.name||(null!=t?t.name:t))?o:r,\n'},13:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return' '+r((l=null!=(l=n.name||(null!=t?t.name:t))?l:s,\n'},15:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n
\n
\n \n'+(null!=(l=n.if.call(o,null!=t?t.show_title:t,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?l:"")+(null!=(l=n.if.call(o,null!=t?t.show_price:t,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?l:"")+" \n"+(null!=(l=n.if.call(o,null!=t?t.show_cta:t,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.noop,data:i}))?l:"")+"
\n
\n
\n"},16:function(e,t,n,a,i){var l;return e.propertyIsEnumerable," "+e.escapeExpression((l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):l))+"
\n"},18:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.showprice:t,{name:"if",hash:{},fn:e.program(19,i,0),inverse:e.noop,data:i}))?l:""},19:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return' \n'+(null!=(l=n.if.call(o,null!=t?t.sale_price:t,{name:"if",hash:{},fn:e.program(22,i,0),inverse:e.program(24,i,0),data:i}))?l:"")+" \n"},20:function(e,t,n,a,i){return" fpls-sale-price"},22:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return" "+r((l=null!=(l=n.price||(null!=t?t.price:t))?l:s,"function"==typeof l?l.call(o,{name:"price",hash:{},data:i}):l))+"\n "+r((l=null!=(l=n.sale_price||(null!=t?t.sale_price:t))?l:s,"function"==typeof l?l.call(o,{name:"sale_price",hash:{},data:i}):l))+"\n"},24:function(e,t,n,a,i){var l;return e.propertyIsEnumerable," "+e.escapeExpression((l=null!=(l=n.price||(null!=t?t.price:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"price",hash:{},data:i}):l))+"\n"},26:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,' \n '+e.escapeExpression((l=null!=(l=n.productLabel||(null!=t?t.productLabel:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"productLabel",hash:{},data:i}):l))+"\n \n"},28:function(e,t,n,a,i){var l,o;return e.propertyIsEnumerable,'
\n '+(null!=(o=null!=(o=n.caption||(null!=t?t.caption:t))?o:e.hooks.helperMissing,l="function"==typeof o?o.call(null!=t?t:e.nullContext||{},{name:"caption",hash:{},data:i}):o)?l:"")+"\n
\n"},30:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n '+(null!=(l=n.if.call(o,null!=t?t.show_flex_bottom_url:t,{name:"if",hash:{},fn:e.program(31,i,0),inverse:e.noop,data:i}))?l:"")+"\n"+(null!=(l=n.if.call(o,null!=t?t.show_title:t,{name:"if",hash:{},fn:e.program(33,i,0),inverse:e.noop,data:i}))?l:"")+(null!=(l=n.if.call(o,null!=t?t.show_price:t,{name:"if",hash:{},fn:e.program(35,i,0),inverse:e.noop,data:i}))?l:"")+" "+(null!=(l=n.if.call(o,null!=t?t.show_flex_bottom_url:t,{name:"if",hash:{},fn:e.program(45,i,0),inverse:e.noop,data:i}))?l:"")+"\n"+(null!=(l=n.if.call(o,null!=t?t.show_cta:t,{name:"if",hash:{},fn:e.program(47,i,0),inverse:e.noop,data:i}))?l:"")+"
\n"},31:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return''},33:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,"
"+e.escapeExpression((l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):l))+"
\n"},35:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'

\n'+(null!=(l=n.if.call(o,null!=t?t.showprice:t,{name:"if",hash:{},fn:e.program(38,i,0),inverse:e.program(43,i,0),data:i}))?l:"")+"

\n"},36:function(e,t,n,a,i){return" fpls-asset-sale-price"},38:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.sale_price:t,{name:"if",hash:{},fn:e.program(39,i,0),inverse:e.program(41,i,0),data:i}))?l:""},39:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return" "+r((l=null!=(l=n.price||(null!=t?t.price:t))?l:s,"function"==typeof l?l.call(o,{name:"price",hash:{},data:i}):l))+"
\n "+r((l=null!=(l=n.sale_price||(null!=t?t.sale_price:t))?l:s,"function"==typeof l?l.call(o,{name:"sale_price",hash:{},data:i}):l))+"\n"},41:function(e,t,n,a,i){var l;return e.propertyIsEnumerable," "+e.escapeExpression((l=null!=(l=n.price||(null!=t?t.price:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"price",hash:{},data:i}):l))+"\n"},43:function(e,t,n,a,i){return" —\n"},45:function(e,t,n,a,i){return"
"},47:function(e,t,n,a,i){var l;return e.propertyIsEnumerable," "+(null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.stock:t,{name:"if",hash:{},fn:e.program(48,i,0),inverse:e.noop,data:i}))?l:"")+" \n"},48:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p="function",u=e.escapeExpression;return''+u((o=null!=(o=n.productLabel||(null!=t?t.productLabel:t))?o:r,typeof o===p?o.call(s,{name:"productLabel",hash:{},data:i}):o))+""},49:function(e,t,n,a,i){return"ls-button-oos"},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n
\n'+(null!=(l=n.if.call(o,null!=t?t.show_image:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?l:"")+(null!=(l=n.if.call(o,null!=t?t.place_outside:t,{name:"if",hash:{},fn:e.program(30,i,0),inverse:e.noop,data:i}))?l:"")+"
\n
\n"},useData:!0}),this.LSTemplates.livestory.box_block=LSHbr.template({1:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing;return' \n
"+(null!=(o=null!=(o=n.text||(null!=t?t.text:t))?o:r,l="function"==typeof o?o.call(s,{name:"text",hash:{},data:i}):o)?l:"")+"
\n
\n"},2:function(e,t,n,a,i){return' target="_blank"'},4:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return'lang="'+r((l=null!=(l=n.lang||(null!=t?t.lang:t))?l:s,"function"==typeof l?l.call(o,{name:"lang",hash:{},data:i}):l))+'" xml:lang="'+r((l=null!=(l=n.lang||(null!=t?t.lang:t))?l:s,"function"==typeof l?l.call(o,{name:"lang",hash:{},data:i}):l))+'"'},6:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n
"+(null!=(o=null!=(o=n.text||(null!=t?t.text:t))?o:e.hooks.helperMissing,l="function"==typeof o?o.call(s,{name:"text",hash:{},data:i}):o)?l:"")+"
\n
\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
\n'+(null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.link:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(6,i,0),data:i}))?l:"")+"
\n"},useData:!0}),this.LSTemplates.livestory.box_embed=LSHbr.template({1:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,' \n'},3:function(e,t,n,a,i){var l;return e.propertyIsEnumerable," \n"+(null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.poster_responsive_url:t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.program(6,i,0),data:i}))?l:"")+' \n \n \n'},4:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression,u=e.lambda;return' '+p((o=null!=(o=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?o:r,\n'},6:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return' '+r((l=null!=(l=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?l:s,\n'},8:function(e,t,n,a,i){return' \n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n
\n
\n'+(null!=(l=n.if.call(s,null!=t?t.inline_iframe:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?l:"")+' \n
'+(null!=(o=null!=(o=n.iframe||(null!=t?t.iframe:t))?o:e.hooks.helperMissing,l="function"==typeof o?o.call(s,{name:"iframe",hash:{},data:i}):o)?l:"")+'
\n
\n'+(null!=(l=n.if.call(s,null!=t?t.is_accessible:t,{name:"if",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i}))?l:"")+' \n
\n
\n
\n
'},useData:!0}),this.LSTemplates.livestory.box_icon=LSHbr.template({1:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'"},2:function(e,t,n,a,i){return' target="_blank"'},4:function(e,t,n,a,i){var l,o;return e.propertyIsEnumerable," "+(null!=(o=null!=(o=n.svg||(null!=t?t.svg:t))?o:e.hooks.helperMissing,l="function"==typeof o?o.call(null!=t?t:e.nullContext||{},{name:"svg",hash:{},data:i}):o)?l:"")+"\n"},6:function(e,t,n,a,i){return""},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n '+(null!=(l=n.if.call(o,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?l:"")+'\n
\n
\n \n'+(null!=(l=n.if.call(o,null!=t?t.svg:t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?l:"")+" \n
\n
\n "+(null!=(l=n.if.call(o,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?l:"")+"\n
\n"},useData:!0}),this.LSTemplates.livestory.box_post_photo=LSHbr.template({1:function(e,t,n,a,i){return'role="button" tabindex="0"'},3:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,' aria-label="'+e.escapeExpression((l=null!=(l=n.boxViewAriaLabel||(null!=t?t.boxViewAriaLabel:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"boxViewAriaLabel",hash:{},data:i}):l))+'" '},5:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'"},6:function(e,t,n,a,i){return' target="_blank"'},8:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression,u=e.lambda;return' '+p((o=null!=(o=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?o:r,\n'},9:function(e,t,n,a,i){return'role="presentation"'},11:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression;return' '+p((o=null!=(o=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?o:r,\n'},13:function(e,t,n,a,i){var l,o;return e.propertyIsEnumerable,' \n"},15:function(e,t,n,a,i,l,o){var s;return e.propertyIsEnumerable,'
\n
\n'+(null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.pins:t,{name:"each",hash:{},fn:e.program(16,i,0,l,o),inverse:e.noop,data:i}))?s:"")+"
\n
\n"},16:function(e,t,n,a,i,l,o){var s;return e.propertyIsEnumerable,null!=(s=n.if.call(null!=t?t:e.nullContext||{},null!=o[1]?o[1].link:o[1],{name:"if",hash:{},fn:e.program(17,i,0,l,o),inverse:e.program(19,i,0,l,o),data:i}))?s:""},17:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,e.lambda),s=e.escapeExpression;return' \n '+s(o(null!=t?t.pinIndex:t,t))+"\n \n"},19:function(e,t,n,a,i,l,o){var s,r=(e.propertyIsEnumerable,e.lambda),p=e.escapeExpression;return'
\n '+p(r(null!=t?t.pinIndex:t,t))+"\n \n"},20:function(e,t,n,a,i){var l;return e.propertyIsEnumerable," "+(null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.link:t,{name:"if",hash:{},fn:e.program(21,i,0),inverse:e.noop,data:i}))?l:"")+" "},21:function(e,t,n,a,i){return' href="'+e.escapeExpression(e.lambda(null!=t?t.link:t,t))+'" '},23:function(e,t,n,a,i){return""},25:function(e,t,n,a,i){var l,o;return e.propertyIsEnumerable,'
\n '+(null!=(o=null!=(o=n.caption||(null!=t?t.caption:t))?o:e.hooks.helperMissing,l="function"==typeof o?o.call(null!=t?t:e.nullContext||{},{name:"caption",hash:{},data:i}):o)?l:"")+"\n
\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i,l,o){var s,r,p=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),u=e.hooks.helperMissing,c=e.escapeExpression;return'
\n "+(null!=(s=n.if.call(p,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(5,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'\n
\n
\n \n'+(null!=(s=n.if.call(p,null!=t?t.image_responsive_url:t,{name:"if",hash:{},fn:e.program(8,i,0,l,o),inverse:e.program(11,i,0,l,o),data:i}))?s:"")+" \n
\n"+(null!=(s=n.if.call(p,null!=t?t.viewOverlay:t,{name:"if",hash:{},fn:e.program(13,i,0,l,o),inverse:e.noop,data:i}))?s:"")+"\n"+(null!=(s=n.if.call(p,null!=t?t.pins:t,{name:"if",hash:{},fn:e.program(15,i,0,l,o),inverse:e.noop,data:i}))?s:"")+"
\n "+(null!=(s=n.if.call(p,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(23,i,0,l,o),inverse:e.noop,data:i}))?s:"")+"\n\n"+(null!=(s=n.if.call(p,null!=t?t.caption:t,{name:"if",hash:{},fn:e.program(25,i,0,l,o),inverse:e.noop,data:i}))?s:"")+"
\n"},useData:!0,useDepths:!0}),this.LSTemplates.livestory.box_post_text=LSHbr.template({1:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'"},2:function(e,t,n,a,i){return' target="_blank"'},4:function(e,t,n,a,i){return""},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression;return'
\n '+(null!=(l=n.if.call(s,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?l:"")+'\n
\n
\n
'+p((o=null!=(o=n.quote||(null!=t?t.quote:t))?o:r,"function"==typeof o?o.call(s,{name:"quote",hash:{},data:i}):o))+"
\n @"+p((o=null!=(o=n.username||(null!=t?t.username:t))?o:r,"function"==typeof o?o.call(s,{name:"username",hash:{},data:i}):o))+"\n
\n
\n "+(null!=(l=n.if.call(s,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?l:"")+"\n
\n"},useData:!0}),this.LSTemplates.livestory.box_post_video=LSHbr.template({1:function(e,t,n,a,i){return'role="button" tabindex="0"'},3:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'"},4:function(e,t,n,a,i){return' target="_blank"'},6:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n \n"+(null!=(l=n.if.call(s,null!=t?t.show_play:t,{name:"if",hash:{},fn:e.program(17,i,0),inverse:e.noop,data:i}))?l:"")+(null!=(l=n.if.call(s,null!=t?t.show_unmuted:t,{name:"if",hash:{},fn:e.program(19,i,0),inverse:e.noop,data:i}))?l:"")+"
\n"},7:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'poster="'+e.escapeExpression((l=null!=(l=n.poster_url||(null!=t?t.poster_url:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"poster_url",hash:{},data:i}):l))+'"'},9:function(e,t,n,a,i){return"autoplay"},11:function(e,t,n,a,i){return"muted"},13:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,' \n'},15:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,' \n'},17:function(e,t,n,a,i){return' \n'},19:function(e,t,n,a,i){return' \n'},21:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return'
\n \n'+(null!=(l=n.if.call(o,null!=t?t.poster_responsive_url:t,{name:"if",hash:{},fn:e.program(22,i,0),inverse:e.program(24,i,0),data:i}))?l:"")+" \n"+(null!=(l=n.if.call(o,null!=t?t.show_play:t,{name:"if",hash:{},fn:e.program(17,i,0),inverse:e.noop,data:i}))?l:"")+"
\n"},22:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression,u=e.lambda;return' '+p((o=null!=(o=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?o:r,\n'},24:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return' '+r((l=null!=(l=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?l:s,\n'},26:function(e,t,n,a,i){var l,o;return e.propertyIsEnumerable,' \n"},28:function(e,t,n,a,i){return"
"},30:function(e,t,n,a,i){var l,o;return e.propertyIsEnumerable,'
\n '+(null!=(o=null!=(o=n.caption||(null!=t?t.caption:t))?o:e.hooks.helperMissing,l="function"==typeof o?o.call(null!=t?t:e.nullContext||{},{name:"caption",hash:{},data:i}):o)?l:"")+"\n
\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression;return'
\n "+(null!=(l=n.if.call(s,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?l:"")+'\n
\n'+(null!=(l=n.if.call(s,null!=t?t.html5video:t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.program(21,i,0),data:i}))?l:"")+"\n"+(null!=(l=n.if.call(s,null!=t?t.viewOverlay:t,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.noop,data:i}))?l:"")+"
\n "+(null!=(l=n.if.call(s,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?l:"")+"\n \n"+(null!=(l=n.if.call(s,null!=t?t.caption:t,{name:"if",hash:{},fn:e.program(30,i,0),inverse:e.noop,data:i}))?l:"")+"
\n"},useData:!0}),this.LSTemplates.livestory.embed=LSHbr.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l,o;return e.propertyIsEnumerable,'
\n
\n
\n
\n
\n '+(null!=(o=null!=(o=n.iframe||(null!=t?t.iframe:t))?o:e.hooks.helperMissing,l="function"==typeof o?o.call(null!=t?t:e.nullContext||{},{name:"iframe",hash:{},data:i}):o)?l:"")+'\n
\n
\n \n \n
\n
\n'},useData:!0}),this.LSTemplates.livestory.embed_a11y=LSHbr.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing;return'
\n
\n
\n
\n
\n '+(null!=(o=null!=(o=n.iframe||(null!=t?t.iframe:t))?o:r,l="function"==typeof o?o.call(s,{name:"iframe",hash:{},data:i}):o)?l:"")+'\n
\n
\n

Video transcriptions

\n
\n '+(null!=(o=null!=(o=n.iframe||(null!=t?t.iframe:t))?o:r,l="function"==typeof o?o.call(s,{name:"iframe",hash:{},data:i}):o)?l:"")+'\n
\n
\n
\n \n
\n
\n'},useData:!0}),this.LSTemplates.livestory.popup=LSHbr.template({1:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'style="background:'+e.escapeExpression((l=null!=(l=n.popup_background||(null!=t?t.popup_background:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"popup_background",hash:{},data:i}):l))+'"'},3:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
\n @'+e.escapeExpression((l=null!=(l=n.username||(null!=t?t.username:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"username",hash:{},data:i}):l))+"\n
\n"},5:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
\n'+(null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.pins:t,{name:"each",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?l:"")+"
\n"},6:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,e.lambda),s=e.escapeExpression;return' '+s(o(null!=t?t.pinIndex:t,t))+"\n"},8:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,' \n'},9:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return' \n"},10:function(e,t,n,a,i){var l=(e.propertyIsEnumerable,e.lambda),o=e.escapeExpression;return' '+o(l(null!=t?t.accessibility_caption:t,t))+'\n'},12:function(e,t,n,a,i){var l=(e.propertyIsEnumerable,e.lambda),o=e.escapeExpression;return' \n '+o(l(null!=t?t.accessibility_caption:t,t))+'\n \n \n \n'},14:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return' '+r((l=null!=(l=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?l:s,\n'},16:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r="function",p=e.escapeExpression;return' \n '+p((l=null!=(l=n.accessibility_caption||(null!=t?t.accessibility_caption:t))?l:s,typeof l===r?l.call(o,{name:\n \n \n \n'},18:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
\n \n \n '+e.escapeExpression((l=null!=(l=n.text||(null!=t?t.text:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"text",hash:{},data:i}):l))+'\n \n \n
\n'},20:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,' \n'},22:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
'+e.escapeExpression((l=null!=(l=n.title||(null!=t?t.title:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i}):l))+"
\n"},24:function(e,t,n,a,i){var l,o,s=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),r=e.hooks.helperMissing,p=e.escapeExpression;return'
\n'+(null!=(l=n.if.call(s,null!=t?t.image_cta:t,{name:"if",hash:{},fn:e.program(25,i,0),inverse:e.noop,data:i}))?l:"")+' '+p((o=null!=(o=n.link_cta||(null!=t?t.link_cta:t))?o:r,"function"==typeof o?o.call(s,{name:"link_cta",hash:{},data:i}):o))+"\n
\n"},25:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.hooks.helperMissing,r=e.escapeExpression;return' '+r((l=null!=(l=n.link_cta||(null!=t?t.link_cta:t))?l:s,
\n'},27:function(e,t,n,a,i){var l;return e.propertyIsEnumerable," "+(null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.actions:t,{name:"each",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?l:"")+"\n"},28:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.not_asset:t,{name:"if",hash:{},fn:e.program(29,i,0),inverse:e.noop,data:i}))?l:""},29:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),s=e.lambda,r=e.escapeExpression;return'\n
\n'+(null!=(l=n.if.call(o,null!=t?t.pinIndex:t,{name:"if",hash:{},fn:e.program(32,i,0),inverse:e.noop,data:i}))?l:"")+(null!=(l=n.if.call(o,null!=t?t.is_video:t,{name:"if",hash:{},fn:e.program(34,i,0),inverse:e.noop,data:i}))?l:"")+(null!=(l=n.if.call(o,null!=t?t.is_link:t,{name:"if",hash:{},fn:e.program(39,i,0),inverse:e.noop,data:i}))?l:"")+"
\n "},30:function(e,t,n,a,i){return"fpls-popup-pinned"},32:function(e,t,n,a,i){return' '+e.escapeExpression(e.lambda(null!=t?t.pinIndex:t,t))+"\n"},34:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return(null!=(l=n.if.call(o,null!=t?t.image:t,{name:"if",hash:{},fn:e.program(35,i,0),inverse:e.noop,data:i}))?l:"")+(null!=(l=n.if.call(o,null!=t?t.text:t,{name:"if",hash:{},fn:e.program(37,i,0),inverse:e.noop,data:i}))?l:"")},35:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,e.escapeExpression),s=e.lambda;return' \n'},37:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,e.escapeExpression);return' \n"},39:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,e.lambda),s=e.escapeExpression;return(null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.image:t,{name:"if",hash:{},fn:e.program(40,i,0),inverse:e.noop,data:i}))?l:"")+' '+s(o(null!=t?t.text:t,t))+"\n"},40:function(e,t,n,a,i){var l=(e.propertyIsEnumerable,e.lambda),o=e.escapeExpression;return' '+o(l(null!=t?t.text:t,t))+'\n'},42:function(e,t,n,a,i,l,o){var s;return e.propertyIsEnumerable,'
\n'+(null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.assets:t,{name:"each",hash:{},fn:e.program(43,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'
\n \n \n
\n
\n'},43:function(e,t,n,a,i,l,o){var s,r=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),p=e.lambda,u=e.escapeExpression;return' \n"},44:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.custom_labels:t,{name:"each",hash:{},fn:e.program(45,i,0),inverse:e.noop,data:i}))?l:""},45:function(e,t,n,a,i){var l;return" "+(null!=(l=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(46,i,0),inverse:e.noop,data:i}))?l:"")+"\n"},46:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,e.escapeExpression);return" data-custom-label-"+o((l=null!=(l=n.index||i&&i.index)?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"index",hash:{},data:i}):l))+'="'+o(e.lambda(t,t))+'"'},48:function(e,t,n,a,i){var l,o=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{});return' \n'+(null!=(l=n.if.call(o,null!=t?t.sale_price:t,{name:"if",hash:{},fn:e.program(51,i,0),inverse:e.program(53,i,0),data:i}))?l:"")+" \n"},49:function(e,t,n,a,i){return" fpls-popup-asset-sale-price"},51:function(e,t,n,a,i){var l=(e.propertyIsEnumerable,e.lambda),o=e.escapeExpression;return" "+o(l(null!=t?t.price:t,t))+"\n "+o(l(null!=t?t.sale_price:t,t))+"\n"},53:function(e,t,n,a,i){return" "+e.escapeExpression(e.lambda(null!=t?t.price:t,t))+"\n"},55:function(e,t,n,a,i,l,o){return' \n '+e.escapeExpression(e.lambda(null!=o[1]?o[1].productLabel:o[1],t))+" \n \n"},57:function(e,t,n,a,i,l,o){return' \n"},59:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
\n @'+e.escapeExpression((l=null!=(l=n.username||(null!=t?t.username:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"username",hash:{},data:i}):l))+"\n
\n"},61:function(e,t,n,a,i){var l;return e.propertyIsEnumerable,'
'+e.escapeExpression((l=null!=(l=n.title||(null!=t?t.title:t))?l:e.hooks.helperMissing,"function"==typeof l?l.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i}):l))+"
\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,a,i,l,o){var s,r,p=(e.propertyIsEnumerable,null!=t?t:e.nullContext||{}),u=e.hooks.helperMissing,c="function",d=e.escapeExpression;return'
\n
\n
\n
\n'+(null!=(s=n.if.call(p,null!=t?t.username:t,{name:"if",hash:{},fn:e.program(3,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'\n
\n
\n'+(null!=(s=n.if.call(p,null!=t?t.pins:t,{name:"if",hash:{},fn:e.program(5,i,0,l,o),inverse:e.noop,data:i}))?s:"")+(null!=(s=n.if.call(p,null!=t?t.mixed:t,{name:"if",hash:{},fn:e.program(8,i,0,l,o),inverse:e.noop,data:i}))?s:"")+(null!=(s=n.if.call(p,null!=t?t.image_url:t,{name:"if",hash:{},fn:e.program(14,i,0,l,o),inverse:e.noop,data:i}))?s:"")+(null!=(s=n.if.call(p,null!=t?t.poster_url:t,{name:"if",hash:{},fn:e.program(16,i,0,l,o),inverse:e.noop,data:i}))?s:"")+(null!=(s=n.if.call(p,null!=t?t.text:t,{name:"if",hash:{},fn:e.program(18,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'
\n \n \n
\n \n
\n
\n Posted '+d((r=null!=(r=n.date||(null!=t?t.date:t))?r:u,typeof r===c?r.call(p,{name:"date",hash:{},data:i}):r))+" via "+d((r=null!=(r=n.source||(null!=t?t.source:t))?r:u,typeof r===c?r.call(p,{name:"source",hash:{},data:i}):r))+'\n
\n
\n

Share:

\n \n \n'+(null!=(s=n.if.call(p,null!=t?t.image_url:t,{name:"if",hash:{},fn:e.program(20,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'
\n
\n\n
\n'+(null!=(s=n.if.call(p,null!=t?t.title:t,{name:"if",hash:{},fn:e.program(22,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'
\n '+(null!=(r=null!=(r=n.description||(null!=t?t.description:t))?r:u,s=typeof r===c?r.call(p,{name:"description",hash:{},data:i}):r)?s:"")+"\n
\n"+(null!=(s=n.if.call(p,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(24,i,0,l,o),inverse:e.noop,data:i}))?s:"")+(null!=(s=n.if.call(p,null!=t?t.actions:t,{name:"if",hash:{},fn:e.program(27,i,0,l,o),inverse:e.noop,data:i}))?s:"")+(null!=(s=n.if.call(p,null!=t?t.assets:t,{name:"if",hash:{},fn:e.program(42,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'
\n\n
\n'+(null!=(s=n.if.call(p,null!=t?t.username:t,{name:"if",hash:{},fn:e.program(59,i,0,l,o),inverse:e.noop,data:i}))?s:"")+(null!=(s=n.if.call(p,null!=t?t.title:t,{name:"if",hash:{},fn:e.program(61,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'
\n '+(null!=(r=null!=(r=n.description||(null!=t?t.description:t))?r:u,s=typeof r===c?r.call(p,{name:"description",hash:{},data:i}):r)?s:"")+'\n
\n
\n Posted '+d((r=null!=(r=n.date||(null!=t?t.date:t))?r:u,typeof r===c?r.call(p,{name:"date",hash:{},data:i}):r))+" via "+d((r=null!=(r=n.source||(null!=t?t.source:t))?r:u,typeof r===c?r.call(p,{name:"source",hash:{},data:i}):r))+'\n
\n
\n

Share:

\n \n \n'+(null!=(s=n.if.call(p,null!=t?t.image_url:t,{name:"if",hash:{},fn:e.program(20,i,0,l,o),inverse:e.noop,data:i}))?s:"")+'
\n
\n\n \n \n \n
\n
\n
\n'},useData:!0,useDepths:!0}),function(){"use strict";function i(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function l(e,t,n){var a={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(a=a[/[\d.]+$/.exec(e)])&&(e="Windows "+a),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=s(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function o(e,t){var n=-1,a=e?e.length:0;if("number"==typeof a&&a>-1&&a<=b)for(;++n3&&"WebKit"||/\bOpera\b/.test(Y)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(B)&&"WebKit"||!B&&/\bMSIE\b/i.test(e)&&("Mac OS"==$?"Tasman":"Trident")||"WebKit"==B&&/\bPlayStation\b(?! Vita\b)/i.test(Y)&&"NetFront")&&(B=[g]),"IE"==Y&&(g=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(Y+=" Mobile",$="Windows Phone "+(/\+$/.test(g)?g:g+".x"),D.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(Y="IE Mobile",$="Windows Phone 8.x",D.unshift("desktop mode"),U||(U=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=Y&&"Trident"==B&&(g=/\brv:([\d.]+)/.exec(e))&&(Y&&D.push("identifying as "+Y+(U?" "+U:"")),Y="IE",U=g[1]),W){if(u(i,"global"))if(I&&(g=I.lang.System,H=g.getProperty("os.arch"),$=$||g.getProperty("os.name")+" "+g.getProperty("os.version")),E){try{U=i.require("ringo/engine").version.join("."),Y="RingoJS"}catch(e){(g=i.system)&&g.global.system==i.system&&(Y="Narwhal",$||($=g[0].os||null))}Y||(Y="Rhino")}else"object"==typeof i.process&&!i.process.browser&&(g=i.process)&&("object"==typeof g.versions&&("string"==typeof g.versions.electron?(D.push("Node "+g.versions.node),Y="Electron",U=g.versions.electron):"string"==typeof g.versions.nw&&(D.push("Chromium "+U,"Node "+g.versions.node),Y="NW.js",U=g.versions.nw)),Y||(Y="Node.js",H=g.arch,$=g.platform,U=/[\d.]+/.exec(g.version),U=U?U[0]:null));else p(g=i.runtime)==S?(Y="Adobe AIR",$=g.flash.system.Capabilities.os):p(g=i.phantom)==C?(Y="PhantomJS",U=(g=g.version||null)&&g.major+"."+g.minor+"."+g.patch):"number"==typeof M.documentMode&&(g=/\bTrident\/(\d+)/i.exec(e))?(U=[U,M.documentMode],(g=+g[1]+4)!=U[1]&&(D.push("IE "+U[1]+" mode"),B&&(B[1]=""),U[1]=g),U="IE"==Y?String(U[1].toFixed(1)):U[0]):"number"==typeof M.documentMode&&/^(?:Chrome|Firefox)\b/.test(Y)&&(D.push("masking as "+Y+" "+U),Y="IE",U="11.0",B=["Trident"],$="Windows");$=$&&s($)}if(U&&(g=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(U)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(W&&m.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(R=/b/i.test(g)?"beta":"alpha",U=U.replace(RegExp(g+"\\+?$"),"")+("beta"==R?T:O)+(/\d+\+?/.exec(g)||"")),"Fennec"==Y||"Firefox"==Y&&/\b(?:Android|Firefox OS|KaiOS)\b/.test($))Y="Firefox Mobile";else if("Maxthon"==Y&&U)U=U.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&($=null),"Xbox 360"==F&&/\bIEMobile\b/.test(e)&&D.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Y)&&(!Y||F||/Browser|Mobi/.test(Y))||"Windows CE"!=$&&!/Mobi/i.test(e))if("IE"==Y&&W)try{null===i.external&&D.unshift("platform preview")}catch(e){D.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(e))&&(g=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||U)?(g=[g,/BB10/.test(e)],$=(g[1]?(F=null,N="BlackBerry"):"Device Software")+" "+g[0],U=null):this!=r&&"Wii"!=F&&(W&&P||/Opera/.test(Y)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==Y&&/\bOS X (?:\d+\.){2,}/.test($)||"IE"==Y&&($&&!/^Win/.test($)&&U>5.5||/\bWindows XP\b/.test($)&&U>8||8==U&&!/\bTrident\b/.test(e)))&&!w.test(g=h.call(r,e.replace(w,"")+";"))&&g.name&&(g="ing as "+g.name+((g=g.version)?" "+g:""),w.test(Y)?(/\bIE\b/.test(g)&&"Mac OS"==$&&($=null),g="identify"+g):(g="mask"+g,Y=A?s(A.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(g)&&($=null),W||(U=null)),B=["Presto"],D.push(g));else Y+=" Mobile";(g=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(g=[parseFloat(g.replace(/\.(\d)$/,".0$1")),g],"Safari"==Y&&"+"==g[1].slice(-1)?(Y="WebKit Nightly",R="alpha",U=g[1].slice(0,-1)):U!=g[1]&&U!=(g[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(U=null),g[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==g[0]&&537.36==g[2]&&parseFloat(g[1])>=28&&"WebKit"==B&&(B=["Blink"]),W&&(b||g[1])?(B&&(B[1]="like Chrome"),g=g[1]||(g=g[0],g<530?1:g<532?2:g<532.05?3:g<533?4:g<534.03?5:g<534.07?6:g<534.1?7:g<534.13?8:g<534.16?9:g<534.24?10:g<534.3?11:g<535.01?12:g<535.02?"13+":g<535.07?15:g<535.11?16:g<535.19?17:g<536.05?18:g<536.1?19:g<537.01?20:g<537.11?"21+":g<537.13?23:g<537.18?24:g<537.24?25:g<537.36?26:"Blink"!=B?"27":"28")):(B&&(B[1]="like Safari"),g=g[0],g=g<400?1:g<500?2:g<526?3:g<533?4:g<534?"4+":g<535?5:g<537?6:g<538?7:g<601?8:g<602?9:g<604?10:g<606?11:g<608?12:"12"),B&&(B[1]+=" "+(g+="number"==typeof g?".x":/[.+]/.test(g)?"":"+")),"Safari"==Y&&(!U||parseInt(U)>45)?U=g:"Chrome"==Y&&/\bHeadlessChrome/i.test(e)&&D.unshift("headless")),"Opera"==Y&&(g=/\bzbov|zvav$/.exec($))?(Y+=" ",D.unshift("desktop mode"),"zvav"==g?(Y+="Mini",U=null):Y+="Mobile",$=$.replace(RegExp(" *"+g+"$"),"")):"Safari"==Y&&/\bChrome\b/.exec(B&&B[1])?(D.unshift("desktop mode"),Y="Chrome Mobile",U=null,/\bOS X\b/.test($)?(N="Apple",$="iOS 4.3+"):$=null):/\bSRWare Iron\b/.test(Y)&&!U&&(U=n("Chrome")),U&&0==U.indexOf(g=/[\d.]+$/.exec($))&&e.indexOf("/"+g+"-")>-1&&($=f($.replace(g,""))),$&&-1!=$.indexOf(Y)&&!RegExp(Y+" OS").test($)&&($=$.replace(RegExp(" *"+c(Y)+" *"),"")),B&&!/\b(?:Avant|Nook)\b/.test(Y)&&(/Browser|Lunascape|Maxthon/.test(Y)||"Safari"!=Y&&/^iOS/.test($)&&/\bSafari\b/.test(B[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Y)&&B[1])&&(g=B[B.length-1])&&D.push(g),D.length&&(D=["("+D.join("; ")+")"]),N&&F&&F.indexOf(N)<0&&D.push("on "+N),F&&D.push((/^on /.test(D[D.length-1])?"":"on ")+F),$&&(g=/ ([\d.+]+)$/.exec($),y=g&&"/"==$.charAt($.length-g[0].length-1),$={architecture:32,family:g&&!y?$.replace(g[0],""):$,version:g?g[1]:null,toString:function(){var e=this.version;return this.family+(e&&!y?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(g=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(H))&&!/\bi686\b/i.test(H)?($&&($.architecture=64,$.family=$.family.replace(RegExp(" *"+g),"")),Y&&(/\bWOW64\b/i.test(e)||W&&/\w(?:86|32)$/.test(m.cpuClass||m.platform)&&!/\bWin64; x64\b/i.test(e))&&D.unshift("32-bit")):$&&/^OS X/.test($.family)&&"Chrome"==Y&&parseFloat(U)>=39&&($.architecture=64),e||(e=null);var j={};return j.description=e,j.layout=B&&B[0],j.manufacturer=N,j.name=Y,j.prerelease=R,j.product=F,j.ua=e,j.version=Y&&U,j.os=$||{architecture:null,family:null,version:null,toString:function(){return"null"}},j.parse=h,j.toString=a,j.version&&D.unshift(U),j.name&&D.unshift(Y),$&&Y&&($!=String($).split(" ")[0]||$!=Y.split(" ")[0]&&!F)&&D.push(F?"("+$+")":"on "+$),D.length&&(j.description=D.join(" ")),j}var m={function:!0,object:!0},_=m[typeof e]&&e||this,v=m[typeof n]&&n,g=m[typeof a]&&a&&!a.nodeType&&a,y=v&&g&&"object"==typeof global&&global;!y||y.global!==y&&y.window!==y&&y.self!==y||(_=y);var b=Math.pow(2,53)-1,w=/\bOpera/,S=Object.prototype,x=S.hasOwnProperty,L=S.toString,k=h();"function"==typeof t&&"object"==typeof t.amd&&t.amd?(_.platform=k,t(function(){return k})):v&&g?r(k,function(e,t){v[t]=e}):_.platform=k}.call(this)}).call(window,window),LS_TRACKING_PLACEHOLDERS={"[LAYOUT_ID]":"wall_id","[LAYOUT_NAME]":"wall_title","[DESTINATION_ID]":"wallgroup_id","[DESTINATION_NAME]":"wallgroup_name","[STORY_ID]":"campaign_id","[STORY_NAME]":"campaign_name","[BREAKPOINT]":"wall_breakpoint","[LINK_TYPE]":"wall_link_type","[LINK_URL]":"wall_link_url","[LINK_TEXT]":"wall_link_text","[CONTENT_TYPE]":"wall_item_type","[CONTENT_CSSCLASS]":"wall_item_cssclass","[POST_ALT]":"post_alt","[CONTENT_CSSCLASS_TREE]":"wall_item_cssclass_tree","[VIDEO_SOURCE]":"wall_video_source","[VIDEO_TIME]":"wall_video_time","[VIDEO_TOTAL_TIME]":"wall_video_total_time","[PRODUCT_NAME]":"product_name","[PRODUCT_SKU]":"product_sku","[PRODUCT_PRICE]":"product_price","[PRODUCT_CUSTOM_LABEL_0]":"product_custom_label_0","[PRODUCT_CUSTOM_LABEL_1]":"product_custom_label_1","[PRODUCT_CUSTOM_LABEL_2]":"product_custom_label_2","[PRODUCT_CUSTOM_LABEL_3]":"product_custom_label_3","[PRODUCT_CUSTOM_LABEL_4]":"product_custom_label_4","[CAROUSEL_SLIDE_NUMBER]":"wall_slide_number","[POST_TYPE]":"post_type","[POST_SOURCE]":"post_source","[EVENT_TYPE]":"event_type","[STORE_CODE]":"store_code","[LANG_CODE]":"lang_code","[USER_AGENT]":"browser_user_agent","[DEVICE_TYPE]":"device_type","[DEVICE_OS]":"device_os","[DEVICE_ORIENTATION]":"device_orientation","[USER_LANGUAGE]":"browser_language","[BROWSER_NAME]":"browser_name","[BROWSER_VERSION]":"browser_version","[SCREEN_WIDTH]":"browser_window_width","[SCREEN_HEIGHT]":"browser_window_height","[DEVICE_SCREEN_WIDTH]":"device_screen_width","[DEVICE_SCREEN_HEIGHT]":"device_screen_height","[DEVICE_FRIENDLY_TYPE]":"device_friendly_type","[BROWSER_LOCATION]":"browser_location","[REFERRER]":"browser_referrer","[AB_EXPERIENCE_ID]":"ab_experience_id","[POPUP_INDEX]":"popup_index"};var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(e,t){"undefined"!=typeof WebSocket&&(e.fpls_nes=function(){var e=function(){},t=function(e,t){var n=null,a=null;try{n=JSON.parse(e)}catch(e){a=new i(e,"protocol")}return t(a,n)},n=function(e,t){var n=null,a=null;try{n=JSON.stringify(e)}catch(e){a=new i(e,"user")}return t(a,n)},a=function(e){return function(t){setTimeout(function(){return e(t)},0)}},i=function(e,t){return"string"==typeof e&&(e=new Error(e)),e.type=t,e},l={1e3:"Normal closure",1001:"Going away",1002:"Protocol error",1003:"Unsupported data",1004:"Reserved",1005:"No status received",1006:"Abnormal closure",1007:"Invalid frame payload data",1008:"Policy violation",1009:"Message too big",1010:"Mandatory extension",1011:"Internal server error",1015:"TLS handshake"},o=function(t,n){n=n||{},this._url=t,this._settings=n,this._heartbeatTimeout=!1,this._ws=null,this._reconnection=null,this._reconnectionTimer=null,this._ids=0,this._requests={},this._subscriptions={},this._heartbeat=null,this._packets=[],this._disconnectListeners=null,this._disconnectRequested=!1,this.onError=function(e){return console.error(e)},this.onConnect=e,this.onDisconnect=e,this.onUpdate=e,this.id=null};return o.WebSocket="undefined"==typeof WebSocket?null:WebSocket,o.prototype.connect=function(e,t){return"function"==typeof e&&(t=arguments[0],e={}),this._reconnection?a(t)(new Error("Cannot connect while client attempts to reconnect")):this._ws?a(t)(new Error("Already connected")):(!1!==e.reconnect?this._reconnection={wait:0,delay:e.delay||1e3,maxDelay:e.maxDelay||5e3,retries:e.retries||1/0,settings:{auth:e.auth,timeout:e.timeout}}:this._reconnection=null,void this._connect(e,!0,t))},o.prototype._connect=function(e,t,n){var a=this,s=new o.WebSocket(this._url,this._settings.ws);this._ws=s,clearTimeout(this._reconnectionTimer),this._reconnectionTimer=null;var r=function(e){if(n){var t=n;return n=null,t(e)}return a.onError(e)},p=function(){if(a._cleanup(),r(new i("Connection timed out","timeout")),t)return a._reconnect()},u=e.timeout?setTimeout(p,e.timeout):null;s.onopen=function(){return clearTimeout(u),s.onopen=null,a._hello(e.auth,function(e){return e?(e.path&&delete a._subscriptions[e.path],a._disconnect(function(){return r(e)},!0)):(a.onConnect(),r())})},s.onerror=function(e){clearTimeout(u),a._cleanup();var t=new i("Socket error","ws");return r(t)},s.onclose=function(e){s.onopen&&r(new Error("Connection terminated while while to connect"));var t=a._disconnectRequested;a._cleanup();var n={code:e.code,explanation:l[e.code]||"Unknown",reason:e.reason,wasClean:e.wasClean,willReconnect:!!(a._reconnection&&a._reconnection.retries>=1),wasRequested:t};a.onDisconnect(n.willReconnect,n),a._reconnect()},s.onmessage=function(e){return a._onMessage(e)}},o.prototype.overrideReconnectionAuth=function(e){return!!this._reconnection&&(this._reconnection.settings.auth=e,!0)},o.prototype.disconnect=function(t){return t=t||e,this._disconnect(t,!1)},o.prototype._disconnect=function(e,t){this._reconnection=null,clearTimeout(this._reconnectionTimer),this._reconnectionTimer=null;var n=this._disconnectRequested||!t;return this._disconnectListeners?(this._disconnectRequested=n,void this._disconnectListeners.push(e)):!this._ws||this._ws.readyState!==o.WebSocket.OPEN&&this._ws.readyState!==o.WebSocket.CONNECTING?a(e)():(this._disconnectRequested=n,this._disconnectListeners=[e],void this._ws.close())},o.prototype._cleanup=function(){this._ws&&(this._ws.readyState!==o.WebSocket.OPEN&&this._ws.readyState!==o.WebSocket.CONNECTING||this._ws.close(),this._ws.onopen=null,this._ws.onclose=null,this._ws.onerror=e,this._ws.onmessage=null,this._ws=null),this._packets=[],this.id=null,clearTimeout(this._heartbeat),this._heartbeat=null;for(var t=new i("Request failed - server disconnected","disconnect"),n=Object.keys(this._requests),a=0;a=400&&t.statusCode<=599&&(a=new i(t.payload.message||t.payload.error,"server"),a.statusCode=t.statusCode,a.data=t.payload,a.headers=t.headers,a.path=t.path),"ping"===t.type)return n._send({type:"ping"},!1);if("update"===t.type)return n.onUpdate(t.message);if("pub"!==t.type&&"revoke"!==t.type){var l=n._requests[t.id];if(!l)return n.onError(new i("Received response for unknown request","protocol"));var o=l.callback;if(clearTimeout(l.timeout),delete n._requests[t.id],o)return"request"===t.type?o(a,t.payload,t.statusCode,t.headers):"message"===t.type?o(a,t.message):"hello"===t.type?(n.id=t.socket,t.heartbeat&&(n._heartbeatTimeout=t.heartbeat.interval+t.heartbeat.timeout,n._beat()),o(a)):"sub"===t.type||"unsub"===t.type?o(a):n.onError(new i("Received unknown response type: "+t.type,"protocol"))}else{var s=n._subscriptions[t.path];if("revoke"===t.type&&delete n._subscriptions[t.path],s&&void 0!==t.message){var r={};"revoke"===t.type&&(r.revoked=!0);for(var p=0;p0){$ls.ajaxSetup({cache:!0}),LSLoadedCss=[];for(var e=0;ewindow.fpls_last_scroll_trigger+250&&(window.fpls_last_scroll_trigger=e,$ls(window).trigger("ls-delayed-scroll")),clearTimeout(window.fpls_scroll),window.fpls_scroll=setTimeout(function(){$ls(window).trigger("ls-delayed-scroll-old")},200)})},LSHelpers.getDefaultTheme=function(e){var t;if(e&&e.indexOf("default")<0){var n=e.split("-");t="wall"==n[0]?n[0]+"-"+n[1]+"-default":n[0]+"-default"}return t},LSHelpers.appendJs=function(e,t){LSConfig.minify&&e.indexOf(".min.")<0&&e.indexOf(LSHelpers.getAssetDomain())>=0&&(e=e.replace(".js",".min.js"));var n=e.replace(".min.js",".js");LSHelpers.debug('append script "'+e+'"');var a=LSLoadedScripts.find(function(t){var n=e.lastIndexOf("/"),a=e.substring(n);return LSHelpers.debug("match",t.replace(".min.","."),a.replace(".min.",".")),t.replace(".min.",".").indexOf(a.replace(".min.","."))>0});if(LSHelpers.debug("found",a),a)return setTimeout(function(){t&&t()},0);if(LSLoadedScripts.indexOf(e)>0||LSLoadedScripts.indexOf(n)>0)return setTimeout(function(){t&&t()},0);var i;window.LS_JS_PROMISES=window.LS_JS_PROMISES||[],window.LS_JS_PROMISES[e]?i=window.LS_JS_PROMISES[e]:(i=new Promise(function(t,n){$ls.getScript(e,t).fail(function(t,a,i){LSHelpers.debug("Error loading script "+e,i),n()})}),window.LS_JS_PROMISES[e]=i),i.then(function(){LSHelpers.debug('script not cached "'+e+'"'),LSLoadedScripts.push(e),LSHelpers.debug("loaded scripts:"+LSLoadedScripts.join(",")),setTimeout(function(){t&&t()},0)},function(e){LSHelpers.error(e),setTimeout(function(){t&&t()},0)})},LSHelpers.appendCss=function(e,t,n){if(LSConfig.minify&&e.indexOf(".min.")<0&&e.indexOf(LSHelpers.getAssetDomain())>=0&&(e=e.replace(".css",".min.css")),$ls('link[href="'+e+'"]').length<1){var a=$ls('');a.attr("href",e),n?(LSHelpers.debug("Append to container",n,"Parents:",n.parents()),n.append(a)):(LSHelpers.debug("No container passed to appendCss"),$ls("head").append(a)),LSLoadedCss.push(e),a.on("load.ls",function(){LSHelpers.triggerCssChange(),t&&t()}),a.on("error.ls",function(){t&&t()})}else setTimeout(function(){LSHelpers.triggerCssChange(),t&&t()},1)},LSHelpers.injectCss=function(e,t,n,a,i){if(LSConfig.minify&&e.indexOf(".min.")<0&&(e=e.replace(".css",".min.css")),LSLoadedCss.indexOf(e+t)>=0)return void(i&&i());var l;window.LS_CSS_PROMISES=window.LS_CSS_PROMISES||[],window.LS_CSS_PROMISES[e]?l=window.LS_CSS_PROMISES[e]:(l=new Promise(function(t,n){$ls.ajax({url:e,dataType:"text",success:function(e){t(e)}})}),window.LS_CSS_PROMISES[e]=l),l.then(function(l){LSHelpers.injectInlineCss(l,t,n,a),LSHelpers.debug("Injected css for: "+t),LSLoadedCss.push(e+t),i&&i()},function(e){LSHelpers.error(e),i&&i()})},LSHelpers.injectInlineCss=function(e,t,n,a){if(e){t&&t.indexOf("fpls")>=0&&(e=e.replace(/#WALLID/g,t)),e=e.replace(/#ASSETS/g,LSConfig.assetURL),e=e.replace(/#PARTNER_ASSETS/g,LSHelpers.getAssetURL(a)),e=e.replace(/#POPUP_CREDITS/g,"."+livestory_analytics.getCreditsId("popup")),e=e.replace(/#CREDITS/g,"."+livestory_analytics.getCreditsId("wall"));var i=$ls('");t&&t.indexOf("fpls")<0&&i.attr("data-style-id",t),n?n.append(i):$ls("head").append(i),LSHelpers.triggerCssChange()}},LSHelpers.triggerCssChange=function(){window.lsTimers=window.lsTimers||{},clearTimeout(window.lsTimers["ls-css-change"]),window.lsTimers["ls-css-change"]=setTimeout(function(){LSHelpers.debug("CSS change triggered"),$ls(window).trigger("ls-css-change")},750)},LSHelpers.injectFonts=function(e,t,n,a,i){if(LSConfig.minify&&e.indexOf(".min.")<0&&(e=e.replace(".css",".min.css")),n||a){n||(n='"Arial", "Helvetica", sans-serif'),a||(a='"Arial", "Helvetica", sans-serif');var l=i||$ls("head");n=LSHelpers.injectFont(n,l),a=LSHelpers.injectFont(a,l),LSLoadedCss.indexOf(e+t+n+a)<0&&($ls.ajax({url:e,dataType:"text",success:function(e){if(e){e=e.replace(/#WALLID/g,".fpls-"+t),e=e.replace(/#ASSETS/g,LSConfig.assetURL),e=e.replace(/#FONT_BASE/g,n),e=e.replace(/#FONT_HEADING/g,a);var i=$ls('");$ls(l).append(i)}}}),LSLoadedCss.push(e+t+n+a))}},LSHelpers.injectFont=function(e,t){if(e.indexOf("[GF]")>=0){e=e.replace("[GF]","");if("illy"==livestory_analytics.getBrand()&&"Manrope"==e)return e;LSLoadedCss.indexOf(e)<0&&(t||(t=$ls("head")),t.append(""),LSLoadedCss.push(e))}return e.indexOf('"')<0&&(e='"'+e+'"'),e},LSHelpers.getList=function(e,t,n,a){var i,l,o="";return"object"!=typeof e?e:null!==e?(void 0!==e.translations?(i=e.translations,l="lang_code"):(i=e.lists,l="list_code"),i&&i.forEach(function(e){e[n]&&e[l]&&t&&e[l].toLowerCase()==t.toLowerCase()&&(o=e[n])}),""==o&&e.default&&!a&&(o=e.default),o):void 0},LSHelpers.parseQuerystring=function(e){e=e.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");var t=location.search.match(new RegExp("[?&]"+e+"=([^&]+)(&|$)"));return t&&decodeURIComponent(t[1].replace(/\+/g," "))},LSHelpers.createFragment=function(e){return slugify(e,{lower:!0,replacement:"-"})},LSHelpers.parseFragment=function(){return slugify(window.location.hash,{lower:!0,replacement:"-"})},LSHelpers.replaceQuerystring=function(e,t,n){var a=new RegExp("([?&])"+t+"=.*?(&|#|$)","i");if(e.match(a))return e.replace(a,"$1"+t+"="+encodeURIComponent(n)+"$2");var i="";return e.indexOf("#")>=0&&(i=e.replace(/.*#/,"#"),e=e.replace(/#.*/,"")),e+(e.indexOf("?")>=0?"&":"?")+t+"="+n+i},LSHelpers.appendFilters=function(e,t){return t&&$ls.each(t,function(t,n){n&&(e+="&"+t+"="+n)}),e.indexOf("?")<0&&(e=e.replace("&","?")),e},LSHelpers.extractEmbedSource=function(e){var t;if(e.indexOf("youtube")>0?(t=/(.*)www.youtube.com\/embed\/([0-9a-zA-z\-]{11})(.*)/,source="youtube"):e.indexOf("vimeo")>0&&(t=/(.*)vimeo.com\/video\/([0-9]{8,})(.*)/,source="vimeo"),t){var n=t.exec(e);if(n&&n[2])return{source:source,id:n[2]}}return{source:null,id:null}},LSHelpers.getImagePath=function(e,t,n){if(!e)return"";var a=LSHelpers.getResolutionAndPixels(e,t),i=a.width,l=a.resolution;a.height&&(i+="x"+a.height);var o=e.id||e._id;if(e.medias&&e.medias[0]){var s=e.medias[0];if("photo"==s.type&&void 0!==s.photo){if("thron"===e.source&&livestory_thron)return livestory_thron.resizeImage(s.photo[l].url,i,n,e.title);if("cloudinary"===e.source&&livestory_cloudinary)return livestory_cloudinary.resizeImage(s.photo[l].url,i);if(s.photo.path)return LSHelpers.resize(s.photo.path,i,n);if(1==e.dangling)return LSHelpers.resize("/post/orig/"+o,i,n);if(void 0!==s.photo[l]){if("aem"==e.source&&s.photo[l].url.indexOf(".png")>0){var r="fmt=png-alpha";return r=s.photo[l].url.indexOf("?$")>0?"&"+r:"?"+r,s.photo[l].url+r}return s.photo[l].url}}if("video"==s.type&&void 0!==s.video){if("thron"===e.source&&livestory_thron)return livestory_thron.resizePoster(s.video.standard.poster,i,n,e.title);if(void 0!==s.video.standard.poster_path)return LSHelpers.resize(s.video.standard.poster_path,i,n);if(void 0!==s.video.standard){var p=s.video.standard.poster;return p||(p="https://assets.livestory.io/v1/images/placeholder.jpg"),p}}}if(void 0!==e.videos&&void 0!==e.videos[0]){if("thron"===e.source&&livestory_thron)return livestory_thron.resizePoster(e.videos[0].standard.poster,i,n,e.title);if(e.videos[0].standard.poster_path)return LSHelpers.resize(e.videos[0].standard.poster_path,i,n);if(1==e.dangling)return LSHelpers.resize("/post/orig/"+o,i,n);if(void 0!==e.videos[0].standard){var p=e.videos[0].standard.poster;return p||(p="https://assets.livestory.io/v1/images/placeholder.jpg"),p}}if(void 0!==e.pictures&&"undefined"!==e.pictures[0]){if("thron"===e.source&&livestory_thron)return livestory_thron.resizeImage(e.pictures[0][l].url,i,n,e.title);if("cloudinary"===e.source&&livestory_cloudinary)return livestory_cloudinary.resizeImage(e.pictures[0][l].url,i);if(e.pictures[0].path)return LSHelpers.resize(e.pictures[0].path,i,n);if(void 0!==e.pictures[0][l])return e.pictures[0][l].url}if(e.poster){var u=e.poster.split("livestory.io/v1");return u[1]?LSHelpers.resize(u[1],i,n):LSHelpers.resize(e.poster,i,n)}return e.default_image_url?e.default_image_url:"https://assets.livestory.io/v1/images/placeholder.jpg"},LSHelpers.getVideoPath=function(e){if(void 0!==e.videos[0]){if(e.videos[0].optimized)return LSConfig.videoURL+e.videos[0].optimized.path;if(e.videos[0].standard.path)return LSConfig.videoURL+e.videos[0].standard.path;if(e.videos[0].standard.url)return e.videos[0].standard.url}},LSHelpers.getMixedVideoPath=function(e){if(void 0!==e.video){if(e.video.optimized)return LSConfig.videoURL+e.video.optimized.path;if(e.video.standard.path)return LSConfig.videoURL+e.video.standard.path;if(e.video.standard.url)return e.video.standard.url}},LSHelpers.getMixedImagePath=function(e,t,n){var a=LSHelpers.getResolutionAndPixels(e,t),i=a.width,l=a.resolution;return a.height&&(i+="x"+a.height),e.photo.path?LSHelpers.resize(e.photo.path,i,n):void 0!==e.photo[l]?e.photo[l].url:"https://assets.livestory.io/v1/images/placeholder.jpg"},LSHelpers.resize=function(e,t,n){if(!e)return e;var a=e,i=!0;if(e.indexOf("demo")>=0&&(i=!1),e.indexOf("bikkembergs")>=0&&(i=!1),e.indexOf("piombo")>=0&&(i=!1),e.indexOf("geox")>=0&&(i=!1), e.indexOf("diadora")>=0&&(i=!1),e.indexOf("armani")>=0&&(i=!1),e.indexOf("pinko")>=0&&(i=!1),e.indexOf("ovsbrand")>=0&&(i=!1),e.indexOf("kasanova")>=0&&(i=!1),e.indexOf("upim")>=0&&(i=!1),e.indexOf("oltre")>=0&&(i=!1),e.indexOf("rossignol")>=0&&(i=!1),e.indexOf("cpcompany")>=0&&(i=!1),e.indexOf("momoni")>=0&&(i=!1),e.indexOf("momonibrand")>=0&&(i=!1),e.indexOf("accsoon")>=0&&(i=!1),e.indexOf("benro")>=0&&(i=!1),e.indexOf("broncolor")>=0&&(i=!1),e.indexOf("calibrite")>=0&&(i=!1),e.indexOf("elinchrom")>=0&&(i=!1),e.indexOf("foba")>=0&&(i=!1),e.indexOf("garretspromise")>=0&&(i=!1),e.indexOf("gravitybackdrops")>=0&&(i=!1),e.indexOf("heliopan")>=0&&(i=!1),e.indexOf("jupio")>=0&&(i=!1),e.indexOf("kaiserfoto")>=0&&(i=!1),e.indexOf("kupo")>=0&&(i=!1),e.indexOf("macgroupcorporate")>=0&&(i=!1),e.indexOf("nanlite")>=0&&(i=!1),e.indexOf("novoflex")>=0&&(i=!1),e.indexOf("photovideoedu")>=0&&(i=!1),e.indexOf("phottix")>=0&&(i=!1),e.indexOf("rotatrim")>=0&&(i=!1),e.indexOf("saramonic")>=0&&(i=!1),e.indexOf("sekonic")>=0&&(i=!1),e.indexOf("shimoda")>=0&&(i=!1),e.indexOf("takefortytwo")>=0&&(i=!1),e.indexOf("tenba")>=0&&(i=!1),e.indexOf("toyoview")>=0&&(i=!1),e.indexOf("xrite")>=0&&(i=!1),e.indexOf("buccellati")>=0&&(i=!1),i)return e.indexOf("://")<0&&(a=LSConfig.mediaURL+a),a.indexOf("s3-eu-west-1")>=0?a:(a=n&&String(t).indexOf("x")<0?a.replace("orig","rx"+t):a.replace("orig","r"+t),LSHelpers.checkWebp()&&(a.indexOf(".jpg")>0||a.indexOf(".jpeg")>0||a.indexOf(".png")>0)&&a.indexOf(LSConfig.mediaURL)>=0&&a.indexOf(".webp")<0&&(a+=".webp"),a);e.indexOf("://")<0&&(a=LSConfig.videoURL+a),e.indexOf(LSConfig.mediaURL)&&e.replace(LSConfig.mediaURL,LSConfig.videoURL),n&&String(t).indexOf("x")<0?a+="?height="+t:a+="?width="+t;var l;return a.indexOf(".png")>0&&a.indexOf(LSConfig.videoURL)>=0?l="auto=webp":a.indexOf(".gif")<0&&(l="format=pjpg&auto=webp"),a+="&"+l+"&quality=90"},LSHelpers.imageCallback=function(e,t,n){var a=$ls(""),i=!1;a.on("load.ls",function(){i||t&&t(a[0].naturalWidth,a[0].naturalHeight),i=!0,n&&n.trigger("ls-load")}),a.on("error.ls",function(){i||t&&t(a[0].naturalWidth,a[0].naturalHeight,!0),i=!0,n&&n.trigger("ls-error")}),a.attr("src",e),a[0].naturalWidth>0&&a[0].naturalHeight>0&&setTimeout(function(){i||t&&t(a[0].naturalWidth,a[0].naturalHeight),i=!0,n&&n.trigger("ls-load")},50)},LSHelpers.getResolutionAndPixels=function(e,t){var n=1e3,a=0,i="high";if(String(t).indexOf("x")>0&&(n=t.split("x")[0],a=t.split("x")[1],t=parseInt(n,10)),"number"==typeof t){if(n=t,void 0!==e.pictures&&void 0!==e.pictures[0]&&Object.keys(e.pictures[0]).length>0){var l=1e4,o="high";Object.keys(e.pictures[0]).map(function(t){var a=e.pictures[0][t].width||0,i=Math.abs(a-n);nt[i]&&(n=i+1);return t[n]},LSHelpers.getImageSrcSet=function(e,t,n){t=LSHelpers.getResolutionAndPixels(e,t).width;for(var a=[320,480,640,768,1024,1280,1440,1920,2560],i=window.innerWidth,l=[],o=[],s=t/i,r=0;r0}).sort(function(e,t){return t.width-e.width}).forEach(function(e){e.width>1.25*t&&(n=e.key)}),"standard"==n&&e.videos[0].optimized&&(n="optimized"),e.videos[0][n])return e.videos[0][n].path?LSConfig.videoURL+e.videos[0][n].path:e.videos[0][n].url}},LSHelpers.log=function(){var e=Array.prototype.slice.call(arguments);e.unshift("LS"),console&&console.log.apply(console,e)},LSHelpers.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("LS ERROR"),console&&console.error.apply(console,e)},LSHelpers.warn=function(){var e=Array.prototype.slice.call(arguments);e.unshift("LS WARNING"),console&&console.warn.apply(console,e)},LSHelpers.debug=function(){if("true"==LSHelpers.getSessionStorage("LS LOGGER ON")){var e=Array.prototype.slice.call(arguments);e.unshift("LS DEBUG"),console&&console.log.apply(console,e)}},LSHelpers.debugMode=function(e){if(!1===e)return LSHelpers.removeSessionStorage("LS LOGGER ON");LSHelpers.setSessionStorage("LS LOGGER ON",!0)},LSHelpers.getSessionStorage=function(e){try{return window.sessionStorage&&window.sessionStorage.getItem(e)}catch(e){return""}},LSHelpers.removeSessionStorage=function(e){try{window.sessionStorage&&window.sessionStorage.removeItem(e)}catch(e){return""}},LSHelpers.setSessionStorage=function(e,t){try{window.sessionStorage&&window.sessionStorage.setItem(e,t)}catch(e){return}},LSHelpers.openShare=function(e){window.open(e,"Share","top=10, left=10, width=800, height=600, status=no, menubar=no, toolbar=no")},LSHelpers.MD5=function(e){return result=M(V(Y(X(e),8*e.length))),result.toLowerCase()},LSHelpers.openFullscreen=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},LSHelpers.phantomTimeout=function(){clearTimeout(window.phantomTimeout),window.phantomTimeout=setTimeout(function(){window.callPhantom&&window.callPhantom(),LSHelpers.debug("phantom callback called.")},3e3)},LSHelpers.getAssetURL=function(e){if(!e)return LSConfig.assetURL;if(e.indexOf("@")<0)return LSConfig.assetURL;var t=e.split("-").find(function(e){return e.indexOf("@")>0}).split("@")[0];return LSConfig.partnerAssetURL.replace("%partner%",t)},LSHelpers.getAssetDomain=function(){try{return new URL(LSConfig.assetURL).hostname}catch(e){return LSConfig.assetURL}},LSHelpers.checkWebp=function(){return"dgbrandsite"!=window.LSBrand&&(void 0===window.__LS_WEBP&&(window.__LS_WEBP=function(){var e=document.createElement("canvas");if(e.width=1,e.height=1,e.toDataURL&&0==e.toDataURL("image/webp").indexOf("data:image/webp"))return!0;var t=navigator.userAgent.match(/(Edg|Firefox)\/(\d+)\./);if(t)return"Firefox"===t[1]&&t[2]>=65||"Edge"===t[1]&&t[2]>=18;if(t=navigator.userAgent.match(/OS X\s?(?\d+)?.+ Version\/(?\d+\.\d+)/)){var n=window.Intl||{};return t.groups.v>=14&&((t.groups.os||99)>=11||null!=n.ListFormat)}return!1}()),window.__LS_WEBP)},LSHelpers.defaultLang=function(){if("ovs"!=window.LSBrand&&"gap"!=window.LSBrand)return navigator.language.split("-")[0]},LSHelpers.createObserver=function(e,t){return!!window.IntersectionObserver&&new IntersectionObserver(function(t,n){t.forEach(function(t){t.isIntersecting&&(e(t),n.unobserve(t.target))})},t)},LSHelpers.initObserver=function(e,t){window.callPhantom||e.length>0&&e.each(function(e,n){t&&t.observe(n)})},LSHelpers.replaceLazyAttr=function(e){return void 0===e.replaceAll?e:(e=e.replaceAll(" srcset="," lazy-srcset="),e=e.replaceAll(" poster="," lazy-poster="),e=e.replaceAll(" src="," lazy-src="))},LSHelpers.injectTextstyles=function(e,t,n,a){var i="",l=".ls-button",o=";",s=e.wall;"customgrid"==s.subtype&&(l=".fpls-button",o=" !important;");var r=400;a&&a.duration&&(r=a.duration),n&&$ls.each(n,function(e,n){"cta"==e?(i+=t+" "+l+"{",n.color&&(i+="color: "+n.color+o),n.background&&(i+="background: "+n.background+o),n.border&&(i+="border-color: "+n.border+o),(0==n.borderRadius||n.borderRadius>0)&&(i+="border-radius: "+n.borderRadius+"px"+o),n.size&&(i+="font-size: "+n.size+"px"+o),n.weight&&(i+="font-weight: "+n.weight+o),n.bold&&(i+="font-weight: bold"+o),n.italic&&(i+="font-style: italic"+o),n.allcaps&&(i+="text-transform: uppercase"+o),n.borderWidth&&n.borderWidth.toString().indexOf("px")>0?(i+="border-width: "+n.borderWidth+o,i+="border-style: solid"+o):(n.borderWidth>0||0==n.borderWidth)&&(i+="border-width: "+n.borderWidth+"px"+o,i+="border-style: solid"+o),n.height&&(i+="line-height: "+n.height+"px"+o),(n.padding>0||0==n.padding)&&(i+="padding: 0 "+n.padding+"px"+o),i+="}",i+=t+" "+l+":hover {",n.colorHover&&(i+="color: "+n.colorHover+o),n.backgroundHover&&(i+="background: "+n.backgroundHover+o),n.borderHover&&(i+="border-color: "+n.borderHover+o),i+="}"):("p"==e&&(i+=t+" ul, ",i+=t+" ol, ",i+=t+" blockquote, "),i+=t+" "+e+" {",n.size&&(i+="font-size: "+n.size+"px"+o),n.weight&&(i+="font-weight: "+n.weight+o),n.color&&(i+="color: "+n.color+o),n.lineheight&&(i+="line-height: "+n.lineheight+"em"+o),n.letterspacing&&(i+="letter-spacing: "+n.letterspacing+"px"+o),(n.margin>0||0==n.margin)&&(i+="margin: 0 0 "+n.margin+"px 0"+o),n.bold&&(i+="font-weight: bold"+o),n.italic&&(i+="font-style: italic"+o),n.allcaps&&(i+="text-transform: uppercase"+o),n.colorHover&&(i+="transition: all "+r+"ms"+o),i+="}",n.colorHover&&(i+=t+" .fpls-box-text:hover "+e+" {",n.colorHover&&(i+="color: "+n.colorHover+o),i+="}"))}),i&&LSHelpers.injectInlineCss(i,s.wall_id,e.container)};var LSCss={};LSCss.translate=function(e,t){var n="";switch(e){case"n":n="translateY("+-1*t+"px)";break;case"w":n="translateX("+-1*t+"px)";break;case"e":n="translateX("+1*t+"px)";break;case"s":n="translateY("+1*t+"px)";break;case"ne":n="translateX("+1*t+"px) translateY("+-1*t+"px)";break;case"nw":n="translateX("+-1*t+"px) translateY("+-1*t+"px)";break;case"se":n="translateX("+1*t+"px) translateY("+1*t+"px)";break;case"sw":n="translateX("+-1*t+"px) translateY("+1*t+"px)";break;case"c":default:n="translate(0)"}return" "+n+" "},LSCss.scale=function(e){return" scale("+e+") "},LSCss.animationBounce=function(e,t,n,a,i,l){LSCss.animationBounceSuffix=LSCss.animationBounceSuffix||0,LSCss.animationBounceSuffix++;var o="animationBounce"+LSCss.animationBounceSuffix,s="";return s+="@keyframes "+o+" {",s+="0% {",s+=i,s+="}",s+=t+"% {",s+=l,s+="}",s+=n+"% {",s+=i,s+="}",s+="100% {",s+=i,s+="}",s+="}",s+=e+" {",s+="animation-name: "+o+";",s+="animation-duration: "+a+"ms;",s+="animation-iteration-count: infinite;",s+="animation-timing-fuction: ease-in-out;",s+="}",{css:s,name:o}},LSCss.animationTextscroll=function(e,t){LSCss.animationTextscrollSuffix=LSCss.animationTextscrollSuffix||0,LSCss.animationTextscrollSuffix++;var n="animationTextscroll"+LSCss.animationTextscrollSuffix,a="";return t?(a+="@keyframes "+n+" {",a+="0% {",a+="left:-"+e+"px;",a+="}",a+="100% {",a+="left: 0;",a+="}",a+="}"):(a+="@keyframes "+n+" {",a+="0% {",a+="left: 0;",a+="}",a+="100% {",a+="left:-"+e+"px;",a+="}",a+="}"),{css:a,name:n}},Function.prototype.fpls_inheritFrom=function(e){return e.constructor==Function?(this.prototype=new e,this.prototype.constructor=this,this.prototype.parent=e.prototype):(this.prototype=e,this.prototype.constructor=this,this.prototype.parent=e),this},LSA11Y=function(){this.initialized=!1,this.topModal=null,this.topZindex=Number.MIN_VALUE,this.prevFocused=[]};var livestory_a11y=livestory_a11y||new LSA11Y;LSA11Y.prototype.enableOutline=function(){"undefined"!=typeof $ls&&$ls("body").addClass("ls-tab-off").off("keydown.ls_a11y_tab").on("keydown.ls_a11y_tab",function(e){9==e.keyCode&&$ls("body").removeClass("ls-tab-off")})},LSA11Y.prototype.startAcc=function(){var e=this;e.initialized||(e.initialized=!0,LSHelpers.debug("activated accessibility"),e.handleKey=e.handleKeyDown.bind(this),document.addEventListener("keydown",e.handleKey))},LSA11Y.prototype.stopAcc=function(){this.initialized=!1,LSHelpers.debug("deactivated accessibility"),document.removeEventListener("keydown",this.handleKey)},LSA11Y.prototype.handleKeyDown=function(e){var t=this;switch(e.keyCode){case 9:e.preventDefault();var n=t.focusableEls.index(document.activeElement),a=n;n<0?a=0:e.shiftKey?a--:a++,a>t.focusableEls.length-1&&(a=0),a<0&&(a=t.focusableEls.length-1),t.focusableEls.eq(a).focus();break;case 27:0!=t.topModal.find(".fpls-popup-close").length?t.topModal.find(".fpls-popup-close").click():0!=t.topModal.find(".fpls-embed-close").length&&t.topModal.find(".fpls-embed-close").click();break;case 37:t.topModal.find(".fpls-popup-prev").eq(0).trigger("click.ls");break;case 39:t.topModal.find(".fpls-popup-next").eq(0).trigger("click.ls")}},LSA11Y.prototype._checkPopups=function(){var e=this;e.startAcc(),$modals=$ls(document).find(".fpls-embed, .fpls-popup"),$modals.each(function(){var t=$ls(this),n=t.css("z-index");n>=e.topZindex&&t.is(":visible")&&(e.topModal=t,e.topZindex=n)}),null!=e.topModal&&(e.focusableEls=e.topModal.find("a[href]:visible, button:not([disabled]):visible, iframe:visible"),e.focusableEls.sort(function(e,t){return $ls(e).is(".fpls-popup-next")?-1:$ls(t).is(".fpls-popup-next")?1:$ls(e).is(".fpls-popup-close")?-1:$ls(t).is(".fpls-popup-close")?1:$ls(e).is(".fpls-popup-prev")?-1:$ls(t).is(".fpls-popup-prev")?1:$ls(e).is(".fpls-embed-close")?-1:$ls(t).is(".fpls-embed-close")?1:void 0}),e.firstFocusableEl=e.focusableEls.eq(0),e.lastFocusableEl=e.focusableEls.eq(e.focusableEls.length-1))},LSA11Y.prototype.open=function(){var e=this;e.startAcc(),e._saveLastFocus(),e._checkPopups(),e._setLocalFocus()},LSA11Y.prototype.close=function(){var e=this;e.startAcc(),e.topModal=null,e.topZindex=Number.MIN_VALUE,e._unsetLocalFocus(),e._checkPopups(),0==e.prevFocused.length&&e.stopAcc()},LSA11Y.prototype._setLocalFocus=function(){this.firstFocusableEl.focus()},LSA11Y.prototype._saveLastFocus=function(){this.prevFocused.push(document.activeElement)},LSA11Y.prototype._unsetLocalFocus=function(){this.prevFocused.pop().focus()},LiveStory_SFCC=function(){},LiveStory_SFCC.prototype.processUrls=function(e){clearTimeout(self.timer);var t=[];e.each(function(){var e=$ls(this),n=/((\$http(s*)Url)|(\$url))\((.*)\)\$/g,a=n.exec(e.attr("href")||e.attr("data-href"));a&&a.length>0&&t.push({el:e,url:a[0]})});var n={links:[]};t.forEach(function(e){n.links.push(e.url)}),"undefined"!=typeof LS_CONTROLLER_URL&&t.length>0&&$ls.ajax({method:"GET",url:LS_CONTROLLER_URL+"?sig="+btoa(JSON.stringify(n)),success:function(e){e.links.forEach(function(e){t.forEach(function(t){t.url==e.url&&(t.el.attr("href")&&t.el.attr("href",e.parsedUrl),t.el.attr("data-href")&&t.el.attr("data-href",e.parsedUrl))})})},dataType:"json"})};var livestory_sfcc=livestory_sfcc||new LiveStory_SFCC;LiveStory_Thron=function(){var e=this;e.schemas={public_image:"/delivery/public/image/:client_id/:content_id/:p_key/:preset/:size/:name",public_thumbnail:"/delivery/public/thumbnail/:client_id/:content_id/:p_key/:preset/:size/:name",public_video:'/delivery/public/video/:client_id/:content_id/:p_key/:video_channel/:name"'},e.tokens=Object.keys(e.schemas).reduce(function(t,n){return t[n]=e.schemas[n].split("/"),t},{})},LiveStory_Thron.prototype.parseUrl=function(e,t){var n=this,a=n.tokens[t],i=document.createElement("a");i.href=e;var l=i.protocol+"//"+i.hostname,o=i.pathname;return"/"!==o[0]&&(o="/"+o),o.split("/").reduce(function(e,t,n){return t!==a[n]&&(e[a[n].substring(1)]=t),e},{base_url:l})},LiveStory_Thron.prototype.buildUrl=function(e,t){return this.tokens[t].reduce(function(t,n){return t+="/",":"===n.charAt(0)?t+=e[n.substring(1)]:t+=n,t},e.base_url||"")+"?format=auto&quality=auto-medium"},LiveStory_Thron.prototype.resizeImage=function(e,t,n,a){var i=this,l=i.parseUrl(e,"public_image");try{l.name=a&&a.replaceAll(" ","_")||"post"}catch(e){}return l.size=n?"0x"+t:t+"x0",i.buildUrl(l,"public_image")},LiveStory_Thron.prototype.resizePoster=function(e,t,n,a){var i=this,l=i.parseUrl(e,"public_thumbnail");try{l.name=a&&a.replaceAll(" ","_")||"post"}catch(e){}return l.size=n?"0x"+t:t+"x0",i.buildUrl(l,"public_thumbnail")},LiveStory_Thron.prototype.fixThronChina=function(e){if("thron"===e.source&&window.location&&window.location.hostname){"cn"===window.location.hostname.substring(window.location.hostname.length-2)&&(e.poster_url&&e.poster_url.indexOf("cdn.thron.com")>=0&&(e.poster_url=e.poster_url.replace("thron.com","thron.cn")),e.video_url&&e.video_url.indexOf("cdn.thron.com")>=0&&(e.video_url=e.video_url.replace("thron.com","thron.cn")),e.image_url&&e.image_url.indexOf("cdn.thron.com")>=0&&(e.image_url=e.image_url.replace("thron.com","thron.cn")))}return e};var livestory_thron=livestory_thron||new LiveStory_Thron;LiveStory_Cloudinary=function(){},LiveStory_Cloudinary.prototype.resizeImage=function(e,t){var n=e;try{n=e&&e.replace("/upload/","/upload/w_"+t+"/q_auto,f_auto/")}catch(e){}return n};var livestory_cloudinary=livestory_cloudinary||new LiveStory_Cloudinary;LSAnalytics=function(){this.skus=[],this.eventBuffer=[],this.eventTimer=null,this.initialized=!1,this.currency="USD",this.products=[],this.listeners=[],this.__checkCookie()},LSAnalytics.prototype.active=function(){return void 0===window.LS_TRACKING||!!window.LS_TRACKING},LSAnalytics.prototype.gaDetail=function(){var e=this;LSHelpers.log("gaDetail",e.products)},LSAnalytics.prototype.__checkCookie=function(){void 0!==window.LS_COOKIES?this.cookies=Boolean(window.LS_COOKIES):"undefined"!=typeof LS_COOKIES?this.cookies=Boolean(LS_COOKIES):this.cookies=!1},LSAnalytics.prototype.gaCart=function(){var e=this;e.products.length>0&&e.products.forEach(function(t){t.transaction_currency=e.currency,t.event_type="order-cart",e.pushEvent(t)}),this.products=[]},LSAnalytics.prototype.gaCheckout=function(){LSHelpers.log("gaCheckout");var e=this;e.products.length>0&&e.products.forEach(function(t){t.transaction_currency=e.currency,t.event_type="order-checkout",e.pushEvent(t)}),this.products=[]},LSAnalytics.prototype.gaPurchase=function(e){LSHelpers.log("gaPurchase",e);var t=this;t.products.length>0&&t.products.forEach(function(n){n.transaction_id=e,n.transaction_currency=t.currency,n.event_type="order-confirmation",t.pushEvent(n)}),this.products=[]},LSAnalytics.prototype.gaAddProduct=function(e,t,n,a){LSHelpers.log("gaAddProduct",e,t,n,a),this.skus=this.skus||[],this.currentSku=e,this.skus.indexOf(e)<0&&this.skus.push(e),this.products.push({product_sku:e,product_name:t,transaction_amount:n,transaction_quantity:a})},LSAnalytics.prototype.setCurrency=function(e){LSHelpers.log("setCurrency",e),this.currency=e},LSAnalytics.prototype.parseQuerystring=function(e){e=e.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");var t=location.search.match(new RegExp("[?&]"+e+"=([^&]+)(&|$)"));return t&&decodeURIComponent(t[1].replace(/\+/g," "))},LSAnalytics.prototype.parseUTM=function(){var e=this.parseQuerystring("utm_campaign"),t=this.parseQuerystring("utm_source"),n=this.parseQuerystring("utm_content"),a=this.parseQuerystring("utm_medium"),i=this.parseQuerystring("utm_term"),l={};return t&&(l.campaignSource=t),a&&(l.campaignMedium=a),e&&(l.campaignName=e),n&&(l.campaignContent=n),i&&(l.campaignTerm=i),l},LSAnalytics.prototype.getClientId=function(){var e,t=this,n=LSHelpers.parseQuerystring("fpls_ga_cid"),a=LSHelpers.parseQuerystring("fpls_ga_bnd"),i=this.getCookie("cid");return t.__currentClientId?t.__currentClientId:(i&&(e=i),n&&(e=n),e||(e=shortid.gen()),a&&this.setCookie("bnd",a,365),window.LSBrand&&this.setCookie("bnd",window.LSBrand,365),i||this.setCookie("cid",e,365),t.__currentClientId=e,e)},LSAnalytics.prototype.getBrand=function(){return window.LSBrand?window.LSBrand:this.getCookie("bnd")},LSAnalytics.prototype.setCookie=function(e,t,n){var a=this;if(a.__checkCookie(),!a.cookies)return window.___LS_COOKIES=window.___LS_COOKIES||{},void(window.___LS_COOKIES[e]=t);var i=location.hostname,l=/([a-z0-9\-\_]+\.(?:[a-z]+$|co\.uk))/g,o=l.exec(location.hostname);o&&(i=o[0]),"localhost"==location.hostname?Cookies.set("fpls_ga_"+e,t,{expires:n}):Cookies.set("fpls_ga_"+e,t,{expires:n,domain:"."+i})},LSAnalytics.prototype.enableCookies=function(){var e=this;LS_COOKIES=!0,window.LS_COOKIES=!0,e.cookies=!0,e.getClientId()},LSAnalytics.prototype.getCookie=function(e){var t=this;t.__checkCookie();var n;return t.cookies&&(n=Cookies.get("fpls_ga_"+e)),n||(n=window.___LS_COOKIES&&window.___LS_COOKIES[e],t.cookies&&t.setCookie(e,n,365)),n},LSAnalytics.prototype.getDeviceType=function(){return/Mobi|Android/i.test(navigator.userAgent)?"mobile":"desktop"},LSAnalytics.prototype.getOrientation=function(){return window.innerWidth>window.innerHeight?"landscape":"portrait"},LSAnalytics.prototype.pushEvent=function(e,t){var n=this;if(e.t=Date.now(),n.cookies&&(e.client_id=this.getClientId()),e.device_type=n.getDeviceType(),e.device_orientation=n.getOrientation(),e.device_screen_width=window.screen.width,e.device_screen_height=window.screen.height,e.browser_window_width=window.screen.availWidth,e.browser_window_height=window.screen.availHeight,navigator.deviceMemory&&(e.device_memory=navigator.deviceMemory),window.navigator.hardwareConcurrency&&(e.device_hardware_concurrency=window.navigator.hardwareConcurrency),navigator.doNotTrack&&(e.browser_donottrack_enabled=navigator.doNotTrack),"boolean"==typeof navigator.cookieEnabled&&(e.browser_cookie_enabled=navigator.cookieEnabled),navigator.language&&(e.browser_language=navigator.language),navigator.maxTouchPoints&&navigator.maxTouchPoints>0&&(e.device_max_touchpoints=navigator.maxTouchPoints),window.location.href&&(e.browser_location=window.location.href),document.referrer&&(e.browser_referrer=document.referrer),platform.os&&platform.os.hasOwnProperty("family")&&(e.device_os=platform.os.family),platform.product&&(e.device_friendly_type=platform.product),platform.name&&(e.browser_name=platform.name),platform.version&&(e.browser_version=platform.version),platform.description&&(e.browser_user_agent=platform.description),e.store_code&&(e.store_code=e.store_code.toString()),e.brand&&this.setCookie("bnd",e.brand),e.brand||(e.brand=this.getBrand()),e.brand){n.trackingCodes(e,t);if(!(["postlink-click","wallgroup-impression","embed-click","embed-impression","wall-item-click","wall-impression","wall-link-click","page-impression","post-click","post-impression","product-click","product-impression","wall-video-play","order-cart","order-checkout","order-confirmation","popup-impression"].indexOf(e.event_type)<0)){if(clearTimeout(this.eventTimer),this.eventBuffer.push(e),e.event_type.indexOf("post-broken")>=0){var a=Object.assign({},e);"post-broken"==e.event_type&&(a.event_type="wallpost-broken"),"wallpost-broken"==e.event_type&&(a.event_type="post-broken"),this.eventBuffer.push(a)}this.eventBuffer.length>200?n.flushEvents():this.eventTimer=setTimeout(function(){n.flushEvents()},2e3),$ls(window).off("beforeunload.ls").on("beforeunload.ls",function(){LSHelpers.debug("Flushing events queue"),n.flushEvents()}),n.listeners.forEach(function(t){t.event==e.event_type&&t.callback&&t.callback(e)})}}},LSAnalytics.prototype.trackingCodes=function(e,t){var n=this;t&&(t.item&&t.item.trackingCodesParsed&&t.item.trackingCodesParsed.forEach(function(a){"element"==a.scope&&a.event==e.event_type&&n.trackingCode(a,e,t)}),t.wall&&t.wall.trackingCodes&&t.wall.trackingCodes.forEach(function(a){"element"!=a.scope&&a.event==e.event_type&&n.trackingCode(a,e,t)}),t.wallgroup&&t.wallgroup.trackingCodes&&t.wallgroup.trackingCodes.forEach(function(a){"element"!=a.scope&&a.event==e.event_type&&n.trackingCode(a,e,t)}))},LSAnalytics.prototype.trackingCode=function(e,t,n){var a=e.code.slice(0);LS_TRACKING_PLACEHOLDERS&&Object.keys(LS_TRACKING_PLACEHOLDERS).forEach(function(e){var n=LS_TRACKING_PLACEHOLDERS[e],i=new RegExp(e.replace("[","\\[").replace("]","\\]"),"g");a=a.replace(i,t[n])});try{Function(a)()}catch(e){console.warn("tracking script error",a,e)}},LSAnalytics.prototype.flushEvents=function(e){var t=this,n=LSConfig.apiURL+"collect";if(!(t.eventBuffer.length<1)){var a={events:t.eventBuffer};if(t.active())try{$ls.ajax({type:"POST",url:n,contentType:"application/json",data:JSON.stringify(a),dataType:"json",success:function(){e&&e(),LSHelpers.debug("Events flushed")},error:function(){e&&e()}})}catch(e){LSHelpers.debug(e)}else e&&e();t.eventBuffer=[]}},LSAnalytics.prototype.getCreditsId=function(e){var t=this;return"fpls-"+LSHelpers.MD5(t.getClientId()+e)},LSAnalytics.prototype.addListener=function(e,t){var n=this,a={event:e,callback:t,key:shortid.gen()};return n.listeners.push(a),a.key},LSAnalytics.prototype.removeListener=function(e){var t=this,n=-1;t.listeners.forEach(function(t,a){t.key==e&&(n=a)}),n>=0&&t.listeners.splice(n,1)},LSAnalytics.prototype.addCoordinates=function(e,t,n){if(n&&n.wrapper&&t&&t.pageX&&t.pageY){var a=n.wrapper.offset(),i=n.wrapper.width(),l=n.wrapper.height(),o=(t.pageX-a.left)/i*100,s=(t.pageY-a.top)/l*100;if(o<9999999999&&s<999999999){var r=Math.pow(10,1);e.mouse_x=Math.round(o*r)/r,e.mouse_y=Math.round(s*r)/r}}return e},LSAnalytics.prototype.showCoordinates=function(e,t){var n=$ls("
");n.css({width:2,height:2,background:"red",position:"absolute",zIndex:9999999,left:t.width()*e.mouse_x/100,top:t.height()*e.mouse_y/100,pointerEvents:"none"}),t.append(n)};var livestory_analytics=livestory_analytics||new LSAnalytics;livestory_analytics.getClientId();var LSTextFitter=function(e){this.text=e};LSTextFitter.prototype.init=function(){var e=this;this.text.wrapInner('
'),this.innerText=this.text.find(">.inner-text"),$ls(window).on("ls-textfitter-refresh",function(){e.refresh()}),$ls(e.text).on("ls-textfitter-enable",function(){e.enable()}),$ls(e.text).on("ls-textfitter-disable",function(){e.disable()}),$ls(window).on("ls-css-change",function(){clearTimeout(e.cssChangeTimer),e.cssChangeTimer=setTimeout(function(){LSHelpers.debug("Text fitter css change"),e.innerText.data("percent",!1),e.refresh()},50)})},LSTextFitter.prototype.enable=function(){this.enabled=!0,this.refresh()},LSTextFitter.prototype.disable=function(){this.enabled=!1,this.refresh()},LSTextFitter.prototype.refresh=function(){var e=this;clearTimeout(e.refreshTimer),e.refreshTimer=setTimeout(function(){LSHelpers.debug("Text fitter refresh"),e.innerText.data("percent")||e.setChildsToPercent();var t=0;if(e.innerText.css("font-size",""),e.enabled)for(e.text.css({position:"relative"}),e.innerText.css({position:"absolute",left:0,width:"100%"});e.checkOverflow()&&t<20;)e.reduceFontSize(),t++;else e.innerText.removeAttr("style")},500)},LSTextFitter.prototype.setChildsToPercent=function(){LSHelpers.debug("Text fitter set percentage units");var e=this;this.innerText.data("percent",!0),this.innerText.find("*").each(function(){$ls(this).css("font-size",""),$ls(this).css("line-height","");var t=$ls(this).parent(),n=parseFloat(e.getFontSize($ls(this))/e.getFontSize(t)*100),a=parseFloat(e.getLineHeight($ls(this))/e.getFontSize($ls(this))*100);n>0&&$ls(this).css("font-size",n+"%"),a>0&&$ls(this).css("line-height",a+"%")})},LSTextFitter.prototype.getFontSize=function(e){return parseFloat(e.css("font-size"))},LSTextFitter.prototype.getLineHeight=function(e){return parseFloat(e.css("line-height"))},LSTextFitter.prototype.checkOverflow=function(){return this.innerText.height()>this.text.height()},LSTextFitter.prototype.reduceFontSize=function(){var e=this,t=e.getFontSize(e.innerText);t>3&&(t--,e.innerText.css("font-size",t))};var LiveStory=function(e,t){var n=this;this.wallgroup,this.id=e,this.options=t||{},window.location.href.indexOf("digitalsignage")>0&&(window.LS_AUTO_REFRESH=!0,window.LS_REFRESH_INTERVAL=3e5),window.location.href.indexOf("preview.html")<0&&(this.preview_id=LSHelpers.parseQuerystring("wall_id"),this.preview_wallgroup_id=LSHelpers.parseQuerystring("wallgroup_id"),this.preview_revision=LSHelpers.parseQuerystring("revision_id")),__fpls__setCDN($ls("#"+this.id).attr("data-store")),this.template=LSHelpers.parseQuerystring("template"),e.includes("654911ae742c300009bb32b6")||e.includes("6553462d578a7f0008a44602")||e.includes("6554931aa64d6b00088524f8")||e.includes("65549621578a7f0008a546d6")||e.includes("655398c3a64d6b000884b592")?(LSHelpers.debug("PDA: Forcing wallgroup type for ID: ",e),t.type="wallgroup",setTimeout(function(){LSHelpers.debug("PDA: Delaying load wallgroup"),n.loadWallgroup()},500)):(t&&"template"==t.type&&(this.template=!0),this.preview_id?this.loadWall():this.preview_wallgroup_id?this.loadWallgroup():!t||"wall"!=t.type&&"template"!=t.type&&"layout"!=t.type?this.loadWallgroup():setTimeout(function(){n.loadWall()},1))};LiveStory.prototype.loadWallgroup=function(){var e=this,t=this.initContainer(this.id);if(t){LSHelpers.appendCss(LSConfig.assetURL+"/css/livestory.css",null,e.rootContainer),t.addClass("fpls--wallgroup");var n=t.attr("data-id");if(this.preview_wallgroup_id&&(n=this.preview_wallgroup_id),!n)return LSHelpers.error("ID not specified.");var a=LSConfig.apiURL+"wallgroup/"+n,i=LSHelpers.getSessionStorage("LS_ABEXP_ID_"+n),l=LSHelpers.parseQuerystring("experience_id");l&&(i=l),i&&(a+="/"+i);var o=t.data("store"),s=t.data("lang");"STORE_ID"!=o||s?"STORE_ID"==o&&s&&(o=s):s=LSHelpers.defaultLang();var r={hashtags:t.data("hashtag"),skus:t.data("sku"),store_code:o,lang_code:s,post_type:t.data("type")};e.options.last_revision&&(r.last_revision=!0),e.options.date&&(r.date=e.options.date.replace(/\+/g,"%2B").replace(/ /g,"%2B")),e.url=LSHelpers.appendFilters(a,r),$ls.getJSON(e.url,function(t){!i&&t.ab_experience_id&&LSHelpers.setSessionStorage("LS_ABEXP_ID_"+n,t.ab_experience_id),t.wallgroup_id=n,e.parseWallgroupJSON(t)}),window.LS_AUTO_REFRESH&&setInterval(function(){$ls.getJSON(e.url,function(t){e.calculateWallgroupHash(t)!==e.__wallgroupHash&&(LSHelpers.log("Content changed. Refresh destination..."),e.mainContainer.attr("class","fpls fpls--wallgroup fpls--embed").html(""),LSLoadedCss=[],LSHelpers.appendCss(LSConfig.assetURL+"/css/livestory.css",null,e.rootContainer),e.parseWallgroupJSON(t))})},window.LS_REFRESH_INTERVAL)}},LiveStory.prototype.parseWallgroupJSON=function(e){var t=this;if(e.brand&&(window.LSBrand=e.brand||window.LSBrand),e.walls){var n=LSHelpers.getDefaultTheme(e.theme);n?LSHelpers.appendJs(LSConfig.assetURL+"/js/"+n+".js",function(){LSHelpers.appendJs(LSHelpers.getAssetURL(e.theme)+"/js/"+e.theme+".js",function(){setTimeout(function(){t.initWallgroup(e)},1)})}):LSHelpers.appendJs(LSHelpers.getAssetURL(e.theme)+"/js/"+e.theme+".js",function(){setTimeout(function(){t.initWallgroup(e)},1)}),t.__wallgroupHash=t.calculateWallgroupHash(e)}},LiveStory.prototype.calculateWallgroupHash=function(e){return LSHelpers.MD5(JSON.stringify({walls:e.walls.map(function(e){return e.wall_id}),theme:e.theme,style:e.style}))},LiveStory.prototype.calculateWallHash=function(e){return LSHelpers.MD5(e.revision_id)},LiveStory.prototype.initWallgroup=function(e){var t=this,n=e.theme.replace(/-/g,"_").replace(/@/g,"_").replace("wallgroup_","LSWallgroup_");t.wallgroup=new window[n],t.wallgroup.init(t.id,t.options,t.mainContainer,t.rootContainer),t.wallgroup.parseJSON(e)},LiveStory.prototype.initContainer=function(){LSLoadedCss=[];var e=this.options&&this.options.mainContainer||$ls("#"+this.id);if(this.mainContainer=e,LSHelpers.debug("Main container",e,"Parents:",e.parents()),this.rootContainer=this.options&&this.options.rootContainer||this.mainContainer,e.hasClass("fpls")&&0==e.parents('[data-ssr="true"]').length)return LSHelpers.warn("Wall already instantiated: "+this.id),!1;e.addClass("fpls").addClass("fpls--embed");var t=e.attr("data-id");return setTimeout(function(){LSHelpers.debug("Unset reference: ls_"+t),window["ls_"+t]=!1},1),e},LiveStory.prototype.loadWall=function(){var e=this,t=this.initContainer(this.id);if(t){LSHelpers.appendCss(LSConfig.assetURL+"/css/livestory.css",null,e.rootContainer),t.addClass("fpls--wall");var n=t.attr("data-id");if(!n)return LSHelpers.error("ID not specified.");var a="wall";this.template&&(a="walltemplate");var i=LSConfig.apiURL+a+"/"+n;this.preview_id&&(i=LSConfig.apiURL+a+"/"+this.preview_id);var l=t.data("store"),o=t.data("lang");"STORE_ID"!=l||o?"STORE_ID"==l&&o&&(l=o):o=LSHelpers.defaultLang();var s={hashtags:t.data("hashtag"),skus:t.data("sku"),store_code:l,lang_code:o,post_type:t.data("type"),revisionid:t.data("revision")};this.preview_revision&&(s.revisionid=this.preview_revision),e.options.last_revision&&(s.last_revision=!0),e.url=LSHelpers.appendFilters(i,s), e.options.json?e.parseWallJSON(e.options.json):$ls.getJSON(e.url,function(t){e.parseWallJSON(t)}),window.LS_AUTO_REFRESH&&setInterval(function(){$ls.getJSON(e.url,function(t){e.calculateWallHash(t)!==e.__wallHash&&(LSHelpers.log("Content changed. Refresh layout..."),e.mainContainer.attr("class","fpls--wall fpls--embed").html(""),LSHelpers.appendCss(LSConfig.assetURL+"/css/livestory.css",null,e.rootContainer),e.parseWallJSON(t))})},window.LS_REFRESH_INTERVAL)}},LiveStory.prototype.parseWallJSON=function(e){var t=this;e.brand&&(window.LSBrand=e.brand||window.LSBrand),t.parent_theme=LSHelpers.getDefaultTheme(e.theme),t.parent_theme?LSHelpers.appendJs(LSConfig.assetURL+"/js/"+t.parent_theme+".js",function(){LSHelpers.appendJs(LSHelpers.getAssetURL(e.theme)+"/js/"+e.theme+".js",function(){setTimeout(function(){t.initWall(e)},25)})}):LSHelpers.appendJs(LSHelpers.getAssetURL(e.theme)+"/js/"+e.theme+".js",function(){setTimeout(function(){t.initWall(e)},25)}),t.__wallHash=t.calculateWallHash(e)},LiveStory.prototype.initWall=function(e){var t=this,n=t.mainContainer.find('div[data-ssr="true"] .fpls-wall-container').eq(0);n.length<1&&t.mainContainer.parents('div[data-ssr="true"]').length>0&&(n=t.mainContainer.find(".fpls-wall-container").eq(0));var a=t.mainContainer.find('div[data-ssr="true"]');if(a.length<1&&t.mainContainer.parents('div[data-ssr="true"]').length>0&&(a=t.mainContainer.parents('div[data-ssr="true"]').eq(0)),a.length&&a.find('[data-ssr-version="3"]').length){var i=t.rootContainer.width(),l=a.find('[data-ssr-version="3"] > [ssr-breakpoint]').filter(function(){var e=$ls(this).attr("data-min"),t=$ls(this).attr("data-max");return e&&t?i>=e&&i<=t:e?i>=e:t?i<=t:void 0});l.length&&(a=l.eq(0))}n.length<1&&(n=$ls("
").appendTo(t.mainContainer).addClass("fpls-wall-container")),e.theme.indexOf("@")>0?(n.addClass("fpls-"+e.theme.replace(/@/g,"")),n.addClass("fpls-"+e.theme.replace(/@/g,"-"))):n.addClass("fpls-"+e.theme),e.lang_code&&n.addClass("fpls-lang-"+e.lang_code),t.parent_theme&&n.addClass("fpls-"+t.parent_theme),t.mainContainer.addClass("fpls");var o=e.theme.replace(/-/g,"_").replace(/@/g,"_").replace("wall_","LSWall_");t.wallInstance=new window[o],t.wallInstance.init(n,this.options,e,t.mainContainer,t.rootContainer),e.ls_watermark.hide_logo_on_layout||t.addCredits(e.ls_watermark.disable_logo_link_on_layout)},LiveStory.prototype.addCredits=function(e){var t=this;void 0===window.callPhantom&&t.mainContainer.find("."+livestory_analytics.getCreditsId("wall")).length<1&&(e?t.mainContainer.append(''):t.mainContainer.append(''))},LSHelpers.init();var LSWall=function(){this.posts={},this.products={},this.lang="en",this.store="en",this.hashtag=!1,this.placeholder=!1,this.jsonData=!1,this.wallgroup=!1,this.mainContainer=!1,this.isSSR=!1,this.trackingCodes=[],this.LSBox_post=LSBox_post,this.LSBox_asset=LSBox_asset,this.LSBox_block=LSBox_block,this.LSBox_embed=LSBox_embed,this.LSBox_icon=LSBox_icon,this.LSPopup=LSPopup,this._loadStack=0};LSWall.prototype.init=function(e,t,n,a,i){var l=this;if(l.wall=n,LSHelpers.debug("Wall init "+l.wall.wall_id),l.wrapper=e,l.options=t,l.jsonData=n,l.mainContainer=a,l.rootContainer=i||l.mainContainer,l.parseDataAttributes(),(l.mainContainer.find('[data-ssr="true"]').length>0||l.mainContainer.parents('[data-ssr="true"]').length>0)&&l.wrapper.children("div").length>0&&(l.wall.ssr||l.wallgroup&&l.wallgroup.ssr))if(l.isSSR=!0,l.wrapper.attr("data-revision")!=l.wall.revision_id){if(console.warn("REVISION MISMATCH "+l.wall.wall_id),console.warn("SSR:"+l.wrapper.attr("data-revision")),console.warn("API:"+l.wall.revision_id),livestory_analytics.pushEvent({event_type:"embedcache-needsrefresh",wall_id:l.wall.wall_id,brand:l.wall.brand}),l.options&&l.options.parent_wall){var o=l.options.parent_wall;livestory_analytics.pushEvent({event_type:"embedcache-needsrefresh",wall_id:o.wall_id,brand:o.brand}),o.wallgroup&&o.wallgroup._id&&livestory_analytics.pushEvent({event_type:"embedcache-needsrefresh",wallgroup_id:o.wallgroup._id,brand:o.wallgroup.brand})}l.wallgroup&&l.wallgroup._id&&livestory_analytics.pushEvent({event_type:"embedcache-needsrefresh",wallgroup_id:l.wallgroup._id,brand:l.wallgroup.brand}),l.mainContainer.attr("data-ssr-status","not sync"),l.isSSR=!1}else l.wrapper.attr("data-wall-lang")!=l.wall.lang_code&&(console.warn("LANGUAGE MISMATCH"),console.warn("SSR:"+l.wrapper.attr("data-wall-lang")),console.warn("API:"+l.wall.lang_code));l.wrapper.attr("data-wall-id",l.wall.wall_id),l.wrapper.attr("data-revision",l.wall.revision_id),l.wrapper.attr("data-wall-lang",l.wall.lang_code),l.loadWall();var s;l.wrapper.on("mousemove.ls",function(e){clearTimeout(s),s=setTimeout(function(){var t=l.getAnalyticsPayload("mouse-pause",null,e);livestory_analytics.pushEvent(t,{wall:l.wall,wallgroup:l.wallgroup})},500)})},LSWall.prototype._loadStackAdd=function(){this._loadStack++},LSWall.prototype._loadStackRemove=function(){var e=this;--this._loadStack<1&&!this._loadStackNotified&&(clearTimeout(e.__loadStackTimer),e.__loadStackTimer=setTimeout(function(){LSHelpers.debug("Wall is now complete: "+e.wall.wall_id),e.wrapper.trigger("ls-wall-complete"),e._loadStackNotified=!0,e.onComplete&&e.onComplete()},100))},LSWall.prototype.parseDataAttributes=function(){var e=this;LSHelpers.debug("Wall parseDataAttributes "+e.wall.wall_id),e.lang=e.mainContainer.data("lang"),e.store=e.mainContainer.data("store"),e.hashtag=e.mainContainer.data("hashtag"),e.skus=e.mainContainer.data("sku"),e.post_type=e.mainContainer.data("type"),e.revision_id=e.mainContainer.data("revision"),e.placeholder=e.mainContainer.data("placeholder"),"STORE_ID"!=e.store||e.lang||(e.lang=LSHelpers.defaultLang())},LSWall.prototype.loadWall=function(){var e=this;LSHelpers.debug("Wall loadWall "+e.wall.wall_id),e.cssBrekapointPrefix=".fpls-"+e.wall.wall_id,e.context={attributes:e.wall.attributes||"",uiLabels:e.wall.uiLabels||"",themeOptions:e.wall.themeOptions||""},e.loadThemeAssets(function(){e.initResponsive(),e.postRender(),e.hideLoader(),e.sendAnalytics(),e.wrapper.trigger("ls-load-wall")}),e.showLoader(),e.loadTemplate(e.context),e.globalSettings(),e.extractElements(e.wall)},LSWall.prototype.initResponsive=function(){var e=this;LSHelpers.debug("Wall initResponsive "+e.wall.wall_id),e.switchResponsive(),$ls(window).on("ls-delayed-resize",function(){e.switchResponsive(!0)})},LSWall.prototype.switchResponsive=function(e){var t=this;LSHelpers.debug("Wall switchResponsive "+t.wall.wall_id);var n=t.mainContainer.width(),a=!1,i=!1;if(t.previous_layout=t.current_layout,t.previous_sections=t.current_sections,t.wall.subwalls&&t.wall.subwalls.length>0&&t.wall.subwalls.forEach(function(e){n<=e.breakpoint&&(a=e.subwall,i=e.breakpoint)}),a?(t.current_sections=a.sections,t.current_layout=a.layout||{},t.current_options=a.options):(t.current_sections=t.wall.sections,t.current_layout=t.wall.layout||{},t.current_options=t.wall.options),t.current_breakpoint=i,t.isSSR){var l=t.current_breakpoint||"default",o=t.wrapper.attr("data-breakpoint");l!=o&&(LSHelpers.warn("BREAKPOINT NON COINCIDONO",l,o),t.isSSR=!1)}if(t.current_breakpoint?(t.container&&t.container.addClass("fpls-breakpoint-active"),t.wrapper.attr("data-breakpoint",t.current_breakpoint)):(t.container&&t.container.removeClass("fpls-breakpoint-active"),t.wrapper.attr("data-breakpoint","default")),t.cssBrekapointPrefix=".fpls-"+t.wall.wall_id+'[data-breakpoint="'+(t.current_breakpoint||"default")+'"]',t.current_layout!==t.previous_layout||t.current_sections!==t.previous_sections){if(e&&t.isSSR){var s=t.wrapper.parents('[data-ssr-version="3"]').eq(0);if(s.length){var r=t.mainContainer.width(),a=s.find(" > [ssr-breakpoint]").filter(function(){var e=$ls(this).attr("data-min"),t=$ls(this).attr("data-max");return e&&t?r>=e&&r<=t:e?r>=e:t?r<=t:void 0});a.length?(t.wrapper=a.find("[data-wall-id]").eq(0),t.container=a.find(".fpls-wall-content").eq(0)):t.isSSR=!1}else t.isSSR=!1}LSHelpers.debug("Switch responsive "+t.wall.wall_id),t.previous_layout=t.current_layout,t.setMaxWidth(),t.renderWall(t.wall,e)}},LSWall.prototype.getUrl=function(e){var t=this,n=LSConfig.apiURL+"wall/"+t.wall.wall_id;return n=LSHelpers.appendFilters(n,{hashtags:t.hashtag,skus:t.sku,post_type:t.post_type,store_code:t.store,lang_code:t.lang,revisionid:t.revision_id}),n.indexOf("?")>0&&(n+="&skip="+e),n.indexOf("?")<0&&(n+="?skip="+e),n},LSWall.prototype.loadThemeAssets=function(e){var t=this;LSHelpers.debug("Wall loadThemeAssets "+t.wall.wall_id),t.parent_theme=LSHelpers.getDefaultTheme(t.wall.theme);var n=2;t.parent_theme&&(n=3),t.parent_theme&&LSHelpers.appendCss(LSHelpers.getAssetURL(t.parent_theme)+"/css/"+t.parent_theme+".css",function(){0==--n&&e()},t.rootContainer),LSHelpers.appendCss(LSHelpers.getAssetURL(t.wall.theme)+"/css/"+t.wall.theme+".css",function(){0==--n&&e()},t.rootContainer),LSHelpers.injectCss(LSHelpers.getAssetURL(t.wall.style)+"/css/"+t.wall.style+".css",t.cssBrekapointPrefix,t.mainContainer,t.wall.style,function(){0==--n&&e()}),t.wrapper.addClass("fpls-"+t.wall.wall_id)},LSWall.prototype.loadTemplate=function(e){LSHelpers.error('"loadTemplate()" Method must be implemented!')},LSWall.prototype.globalSettings=function(){var e=this;e.wallgroup&&(e.wall.font_body=e.wall.font_body||e.wallgroup.font_body,e.wall.font_heading=e.wall.font_heading||e.wallgroup.font_heading),e.parent_theme&&LSHelpers.injectFonts(LSHelpers.getAssetURL(e.parent_theme)+"/css/"+e.parent_theme+"-fonts.css",e.wall.wall_id,e.wall.font_body,e.wall.font_heading,e.mainContainer),LSHelpers.injectFonts(LSHelpers.getAssetURL(e.wall.theme)+"/css/"+e.wall.theme+"-fonts.css",e.wall.wall_id,e.wall.font_body,e.wall.font_heading,e.mainContainer),e.wall.customcss&&LSHelpers.injectInlineCss(e.wall.customcss,e.cssBrekapointPrefix,e.mainContainer,e.wall.theme)},LSWall.prototype.setMaxWidth=function(){var e=this;if(LSHelpers.debug("Set max width "+e.wall.wall_id),e.current_layout&&e.current_layout.maxwidth){var t="";parseFloat(e.current_layout.maxwidth).toString()==e.current_layout.maxwidth.toString()&&(t="px"),e.current_layout&&e.current_layout.maxwidth&&e.container&&e.container.css({"max-width":e.current_layout.maxwidth+t,"margin-left":"auto","margin-right":"auto"})}},LSWall.prototype.extractElements=function(e){var t=this;e.posts.length&&e.posts.forEach(function(e){t.posts[e._id]=e}),e.products.length&&e.products.forEach(function(e){t.products[e._id]=e}),e.trackingCodes&&e.trackingCodes.length&&e.trackingCodes.forEach(function(e){t.trackingCodes[e._id]=e}),t.live=e.live},LSWall.prototype.fillTrackingCodes=function(e){var t=this;e.trackingCodes&&e.trackingCodes.length>0&&(e.trackingCodesParsed=[],e.trackingCodes.forEach(function(n){void 0!==t.trackingCodes[n]&&e.trackingCodesParsed.push(t.trackingCodes[n])}))},LSWall.prototype.renderWall=function(e){},LSWall.prototype.postRender=function(){var e=this,t=e.wrapper.find(".fpls-wall-title");e.wall.layout&&e.wall.layout.showtitle?t&&t.html(e.wall.title):t&&t.remove()},LSWall.prototype.hideLoader=function(){var e=this;e.mainContainer.removeClass("fpls-cont-loading"),e.mainContainer.find(".fpls-cont-loading").removeClass("fpls-cont-loading"),e.mainContainer.addClass("fpls-cont-loaded")},LSWall.prototype.showLoader=function(){var e=this;e.mainContainer.addClass("fpls-cont-loading"),setTimeout(function(){e.hideLoader()},15e3)},LSWall.prototype.sendAnalytics=function(){var e=this,t=e.getAnalyticsPayload("wall-impression");if(livestory_analytics.pushEvent(t,{wall:e.wall,wallgroup:e.wallgroup}),!0!==window.LS_PageImpressionTriggered){var t=e.getAnalyticsPayload("page-impression");livestory_analytics.pushEvent(t),window.LS_PageImpressionTriggered=!0}},LSWall.prototype.addUtmToUrl=function(e,t,n){var a=this;a.wall.brand||livestory_analytics.getBrand(),livestory_analytics.getClientId();if("string"!=typeof e)return e;var i="";if(a.wall.options.custom_utm_string){var l=a.wall.options.custom_utm_string;"&"!=l[0]&&"?"!=l[0]||(l=l.slice(1)),i+=l,i=i.replace(/\[LAYOUT_NAME\]/g,a.wall.title||""),i=i.replace(/\[LAYOUT_ID\]/g,a.wall.wall_id||""),i=i.replace(/\[STORY_ID\]/g,a.wall.campaign_id||""),i=i.replace(/\[STORY_NAME\]/g,a.wall.campaign_name||""),i=i.replace(/\[STORE_CODE\]/g,a.store||""),i=i.replace(/\[LANG_CODE\]/g,a.lang||""),i=i.replace(/\[DESTINATION_NAME\]/g,a.wallgroup&&a.wallgroup.title||""),i=i.replace(/\[DESTINATION_ID\]/g,a.wallgroup&&a.wallgroup._id||""),i=i.replace(/\[POST_ID\]/g,t&&t._id||""),i=i.replace(/\[POST_TYPE\]/g,t&&t.type||""),i=i.replace(/\[POST_SOURCE\]/g,t&&t.source||""),i=i.replace(/\[POST_USERNAME\]/g,t&&t.author&&t.author.username||""),i=i.replace(/\[PRODUCT_NAME\]/g,n&&n.name||""),i=i.replace(/\[PRODUCT_SKU\]/g,n&&n.sku||""),i=i.replace(/\[PRODUCT_PRICE\]/g,n&&n.price||"")}else!1==!a.wall.options.utm_tags&&(i+="utm_source=LS",i+="&utm_campaign=LS-CAMP-"+a.wall.campaign_id,i+="&utm_medium=LS-WALL-"+a.wall.wall_id,a.hashtags&&(i+="&utm_term=LS-HASH-"+a.hashtags),t&&(i+="&utm_content=LS-POST-"+t._id));return""==i?e:(i=e.indexOf("?")<0?"?"+i:"&"+i,hashCharIndex=e.indexOf("#"),hashCharIndex>=0?e=e.slice(0,hashCharIndex)+i+e.slice(hashCharIndex):e+=i,e)},LSWall.prototype.getAnalyticsPayload=function(e,t,n){var a=this,i={event_type:e,brand:a.wall.brand,campaign_id:a.wall.campaign_id,campaign_name:a.wall.campaign_name,wall_id:a.wall.wall_id,wall_title:a.wall.title,wall_subtype:a.wall.subtype,wall_breakpoint:a.getWallBreakpoint()};return t&&(i.wall_item_id=t._id,i.wall_item_type=t.type,t.cssclass&&(i.wall_item_cssclass=t.cssclass)),i=livestory_analytics.addCoordinates(i,n,a),a.wallgroup&&a.wallgroup._id&&(i.wallgroup_id=a.wallgroup._id),a.wallgroup&&a.wallgroup.title&&(i.wallgroup_name=a.wallgroup.title),a&&a.lang&&(i.lang_code=a.lang),a&&a.store&&(i.store_code=a.store),i},LSWall.prototype._filterPosts=function(e){return!(e.data("popup_disabled")||e.data("link")||"photo"!=e.data("type")&&"video"!=e.data("type")&&"mixed"!=e.data("type")&&"text"!=e.data("type"))},LSWall.prototype.refresh=function(){},LSWall.prototype.getWallBreakpoint=function(){var e=this,t=e.current_breakpoint;return t||(t=-1),t},LSWall.prototype.fillTrackingCodes=function(e){var t=this;e.trackingCodes&&e.trackingCodes.length>0&&(e.trackingCodesParsed=[],e.trackingCodes.forEach(function(n){if(void 0===t.trackingCodes[n])return void LSHelpers.error("Warning! item tracking code is not in the global array of tracking codes!",n);e.trackingCodesParsed.push(t.trackingCodes[n])}))},LSWall.prototype.detectHash=function(){var e=this;if(e.wall.themeOptions&&e.wall.themeOptions.enableAnchorNavigation&&window.location.hash){var t,n=window.location.hash,a=!1,i=e.wall.themeOptions&&e.wall.themeOptions.anchorNavigationOffset||0;!1===a&&(t=e.container.find("."+n.replace("#","")),t.length>0&&(a=t.eq(0).offset().top)),!1===a&&(t=e.container.find(n),t.length>0&&(a=t.eq(0).offset().top)),!1!==a&&$ls("html,body").animate({scrollTop:a-i})}},LSWall.prototype.internalLink=function(e,t){var n=this,a=t.internal_link_target;if(void 0!==a){var i=t.internal_link_offset||0,l="element";isNaN(a)?a.indexOf("#")>=0||a.indexOf(".")>=0||a.indexOf("[")>=0||(a="."+a):(l="number",a=parseInt(a,10)),e.on("click.ls-internal-link",function(){var t=0,o=1e3;if("number"==l){var s=a;n.ls_grid&&(s=a*n.ls_grid.options.zoom),t=e.offset().top+s}else{var r=a.replace("#WALLID ","");a=r.indexOf(".")>=0||r.indexOf("#")>=0?a.replace("#WALLID ",".fpls-"+n.wall.wall_id+" "):a.replace("#WALLID ",".fpls-"+n.wall.wall_id+" .");var s=$ls(a);s.length>0&&(t=s.offset().top)}if(t>0){o=500+t/2,o=Math.max(o,500),o=Math.min(o,2e3);var p=$ls("html").css("scroll-behavior");p&&"smooth"==p.toLowerCase()?$ls("html").scrollTop(t-i):$ls("html,body").animate({scrollTop:t-i},o)}}),e.addClass("fpls-internal-link")}},LSWall.prototype.setAccessibilityAttributes=function(e,t){!0===t.aria_hidden&&e.attr("aria-hidden",t.aria_hidden),t.role&&e.attr("role",t.role),t.tabindex&&e.attr("tabindex",t.tabindex)};var LSBox=function(){this.uniqueId="",this.isSSR=!1};LSBox.prototype.init=function(e,t){var n=this;if(n.item=e,n.wallInstance=t,n.uniqueId=e.uniqueId,n.isSSR=n.wallInstance.isSSR,n.item.link&&0==n.item.link.length&&(n.item.link=""),!n.item.link&&n.item.link_asset){var a=t.products[n.item.link_asset];a&&(n.item.link=a.url)}n.post_id=n.item.id||n.item._id,n.fillTrackingCodes(e)},LSBox.prototype.renderBox=function(){},LSBox.prototype.postRender=function(){var e=this;e.item&&!e.item.link&&e.item.internal_link&&e.wallInstance.internalLink(e.box,e.item),e.wallItemVisible(),e.getCommonBoxEvents()},LSBox.prototype.getCommonBoxEvents=function(){var e=this;e.box.on("click.ls",function(t){var n=e.getAnalyticsPayload("wall-item-click",t);livestory_analytics.pushEvent(n,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})});var t;e.box.on("mouseenter.ls",function(n){clearTimeout(t),t=setTimeout(function(){var t=e.getAnalyticsPayload("wall-item-hover",n);livestory_analytics.pushEvent(t,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})},100)}),e.box.on("mouseleave.ls",function(){clearTimeout(t)}),e.box.find("a[href]").not("[data-sku]").each(function(){var t=$ls(this);t.on("click.ls",function(t){var n=e.getAnalyticsPayload("wall-link-click",t);"block"===e.item.type&&e.item.text&&(n.wall_link_text=e.item.text.replace(/(<([^>]+)>)/gi,"")),n.wall_link_url=e.getLinkUrl(),n.wall_link_type=e.getLinkType(),livestory_analytics.pushEvent(n,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})});var n;t.on("mouseenter.ls",function(t){clearTimeout(n),n=setTimeout(function(){var n=e.getAnalyticsPayload("wall-link-hover",t);"block"===e.item.type&&e.item.text&&(n.wall_link_text=e.item.text.replace(/(<([^>]+)>)/gi,"")),n.wall_link_url=e.getLinkUrl(),n.wall_link_type=e.getLinkType(),livestory_analytics.pushEvent(n,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})},100)})});var n=e.getAnalyticsPayload("wall-item-impression");livestory_analytics.pushEvent(n,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup}),e.boxObserver.observe(e.box[0])},LSBox.prototype.getLinkUrl=function(){var e,t=this;return"block"===t.item.type&&t.item.text&&-1!==t.item.text.indexOf("href=")&&(e=t.item.text.match(/href="([^"]*)/)[1]),t.item.link&&(e=t.item.link.split("?")[0]),e},LSBox.prototype.getLinkType=function(){var e,t=this;return"block"===t.item.type&&t.item.text&&-1!==t.item.text.indexOf("href=")&&(e="html"),t.item.link&&(e="block"),e},LSBox.prototype.getWallBreakpoint=function(){var e=this,t=e.wallInstance.current_breakpoint;return t||(t=-1),t},LSBox.prototype.onLoad=function(e){var t=this;window.document.documentMode&&t.box.find("[data-src]").each(function(){var e=$ls(this),t=e.attr("data-src");e.attr("src",t)});var n=t.box.find("img").eq(0);if(n.length<1&&(n=t.box.find("video").eq(0)),n.length<1)return setTimeout(function(){e(0,0,!1),LSHelpers.phantomTimeout()},0);n.on("error",function(){LSHelpers.log("error"),e(0,0,!0)}),n.is("video")&&n.find("source").on("error",function(){$ls(this).attr("lazy-src")||(LSHelpers.log("error"),e(0,0,!0))});var a=0,i=0,l=n[0],o="natural",s="load";if(n.is("video")&&(o="video",s="loadedmetadata"),a=l[o+"Width"],i=l[o+"Height"],a>0&&i>0)return t.w=a,t.h=i,setTimeout(function(){e(a,i,!1),LSHelpers.phantomTimeout()},0);n.one(s,function(){return a=l[o+"Width"],i=l[o+"Height"],t.w=a,t.h=i,setTimeout(function(){e(a,i,!1),LSHelpers.phantomTimeout()},0)})},LSBox.prototype.getAnalyticsPayload=function(e,t){var n=this,a={event_type:e,brand:n.item.brand,campaign_id:n.wallInstance.wall.campaign_id,campaign_name:n.wallInstance.wall.campaign_name,wall_id:n.wallInstance.wall.wall_id,wall_title:n.wallInstance.wall.title,wall_subtype:n.wallInstance.wall.subtype,wall_item_id:n.item._id,wall_item_type:n.item.type,wall_breakpoint:n.getWallBreakpoint()};a=livestory_analytics.addCoordinates(a,t,n.wallInstance),"strip"!=n.wallInstance.wall.subtype&&"grid"!=n.wallInstance.wall.subtype||(a.wall_slide_number=n.getBoxIndex()),n.wallInstance.wallgroup&&n.wallInstance.wallgroup._id&&(a.wallgroup_id=n.wallInstance.wallgroup._id),n.wallInstance.wallgroup&&n.wallInstance.wallgroup.title&&(a.wallgroup_name=n.wallInstance.wallgroup.title),n.item&&n.item.cssclass&&(a.wall_item_cssclass=n.item.cssclass);var i="";return n.item&&n.item.cssclass_tree&&(i=n.item.cssclass_tree.join(",")),""!=i&&(a.wall_item_cssclass_tree=i),n.wallInstance&&n.wallInstance.lang&&(a.lang_code=n.wallInstance.lang),n.wallInstance&&n.wallInstance.store&&(a.store_code=n.wallInstance.store),a},LSBox.prototype.getHtml=function(e){var t=this,n=!1;if(t.isSSR){if(t.box=t.wallInstance.wrapper.find("#"+t.uniqueId),e){var a=$ls(e);if("photo"==t.item.type){var i=a.find(".fpls-img"),l=t.box.find(".fpls-img");["src","lazy-src","srcset","lazy-srcset","sizes"].forEach(function(e){l.attr(e)&&l.attr(e,i.attr(e))})}if("asset"==t.item.type){var o=a.find(".fpls-box-overlay-content").html();t.box.find(".fpls-box-overlay-content").html(o);var s=a.find(".fpls-box-caption").html();t.box.find(".fpls-box-caption").html(s);var r=a.find(".fpls-box-flex-bottom").html();t.box.find(".fpls-box-flex-bottom").html(r);var p=a.find(".fpls-box-flex-top > a"),u=t.box.find(".fpls-box-flex-top > a");p.length>0&&u.length>0&&(u.attr("href",p.attr("href")),u.attr("data-sku",p.attr("data-sku")),u.attr("data-name",p.attr("data-name")),u.attr("data-price",p.attr("data-price")),u.attr("data-custom-label-0",p.attr("data-custom-label-0")),u.attr("data-custom-label-1",p.attr("data-custom-label-1")),u.attr("data-custom-label-2",p.attr("data-custom-label-2")),u.attr("data-custom-label-3",p.attr("data-custom-label-3")),u.attr("data-custom-label-4",p.attr("data-custom-label-4")))}if("block"==t.item.type){var c=a.find(".fpls-box-inner").html();t.box.find(".fpls-box-inner").html(c)}var d=a.find("> a"),f=t.box.find("> a");d.length>0&&f.length>0&&f.attr("href",d.attr("href")),d=a.find("a.fpls-box-inner"),f=t.box.find("a.fpls-box-inner"),d.length>0&&f.length>0&&f.attr("href",d.attr("href"))}t.box.length>0?n=!0:(t.isSSR=!1,LSHelpers.debug("SSR element not found","#"+t.uniqueId))}return e&&!n&&(t.box=$ls(e),t.box.attr("id",t.uniqueId)),n&&t.box.data("ssr-found",!0),t.box},LSBox.prototype.fillTrackingCodes=function(e){this.wallInstance.fillTrackingCodes(e)},LSBox.prototype.setSquare=function(){var e=this;e.w&&e.h&&(e.box.addClass("fpls-square"),e.w>e.h?e.box.addClass("fpls-landscape"):e.box.addClass("fpls-portrait"))},LSBox.prototype.getBoxIndex=function(){var e,t=this;switch(t.wallInstance.wall.subtype){case"strip":e=t.wallInstance.intContainer.find(".fpls-box:not(.fpls-box-broken)").index(t.box)+1;break;case"grid":var n=t.wallInstance.LSitpInstance&&t.wallInstance.LSitpInstance.getFilteredItemElements();n&&(e=$ls(n).index(t.box)+1)}return e},LSBox.prototype.wallItemVisible=function(){var e=this,t={root:null,rootMargin:"0px",threshold:0};e.boxObserver=LSHelpers.createObserver(function(t){var n=e.getAnalyticsPayload("wall-item-visible",t);livestory_analytics.pushEvent(n,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})},t)},LSBox.prototype.initCountdown=function(){var e=this;e.box.find("[data-ls_countdown], .ls-countdown")&&e.box.find("[data-ls_countdown], .ls-countdown").length>0&&LSHelpers.appendJs(LSConfig.assetURL+"/js/countdown.js",function(){e.box.find("[data-ls_countdown], .ls-countdown").each(function(){var t=$ls(this),n=t.html();setTimeout(function(){$ls("body").addClass("fpls-countdown-initialized")},750);var a=t.data("ls_countdown");e.wallInstance.wallgroup&&(e.wallInstance.wallgroup.theme.indexOf("countdown")>0||!a)&&(e.wallInstance.wallgroup.ds_schedule&&e.wallInstance.wallgroup.ds_schedule.length>0?a=e.findClosestDate(e.wallInstance.wallgroup.ds_schedule).d_to:e.wallInstance.wall.schedule&&e.wallInstance.wall.schedule.schedule_end_date&&(a=e.wallInstance.wall.schedule.schedule_end_date));var i=LSmmt(a);t.countdown(i.toDate(),function(a){"santoni"==e.wallInstance.wall.brand?setTimeout(function(){t.html(a.strftime(n))},1):t.html(a.strftime(n))}).on("finish.countdown",function(){e.wallInstance.mainContainer.trigger("ls-countdown-end")})})})},LSBox.prototype.findClosestDate=function(e){for(var t=new Date,n=null,a=1/0,i=0;i0&&(l.product_custom_label_0=a.custom_labels.custom_label_0),a.custom_labels.custom_label_1&&a.custom_labels.custom_label_1.length>0&&(l.product_custom_label_1=a.custom_labels.custom_label_1),a.custom_labels.custom_label_2&&a.custom_labels.custom_label_2.length>0&&(l.product_custom_label_2=a.custom_labels.custom_label_2),a.custom_labels.custom_label_3&&a.custom_labels.custom_label_3.length>0&&(l.product_custom_label_3=a.custom_labels.custom_label_3),a.custom_labels.custom_label_4&&a.custom_labels.custom_label_4.length>0&&(l.product_custom_label_4=a.custom_labels.custom_label_4)),t.wallInstance.wallgroup&&(l.wallgroup_id=t.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(l,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup}),t.box.on("keydown.ls",function(e){32!=e.which&&13!=e.which||(t.box.find("a").trigger("click.ls"),e.preventDefault(),e.stopPropagation())}),t.detectClick(),t.postRender()},LSBox_asset.prototype.detectClick=function(){var e=this;e.box.find("a[data-sku]").each(function(){var t,n=$ls(this);n.on("mouseenter.ls",function(a){clearTimeout(t),t=setTimeout(function(){var t=e.getAnalyticsPayload("product-hover",a);t.product_sku=n.data("sku"),t.product_price=n.data("price"),t.product_name=n.data("name"),e.getCustomLabelPayload(n,t),e.wallInstance.wallgroup&&(t.wallgroup_id=e.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(t,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})},100)}),n.on("mouseleave.ls",function(){clearTimeout(t)}),n.on("click.ls",function(t){var a=(n.attr("href"),n.attr("target"),e.getAnalyticsPayload("product-click",t));a.product_sku=n.data("sku"),a.product_price=n.data("price"),a.product_name=n.data("name"),e.getCustomLabelPayload(n,a),e.wallInstance.wallgroup&&(a.wallgroup_id=e.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(a,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})})})},LSBox_asset.prototype.getCustomLabelPayload=function(e,t){return e.data("custom-label-0")&&(t.product_custom_label_0=e.data("custom-label-0")),e.data("custom-label-1")&&(t.product_custom_label_1=e.data("custom-label-1")),e.data("custom-label-2")&&(t.product_custom_label_2=e.data("custom-label-2")),e.data("custom-label-3")&&(t.product_custom_label_3=e.data("custom-label-3")),e.data("custom-label-4")&&(t.product_custom_label_4=e.data("custom-label-4")),t};var LSBox_post=function(){this.photoTpl=LSTemplates.livestory.box_post_photo,this.videoTpl=LSTemplates.livestory.box_post_video,this.textTpl=LSTemplates.livestory.box_post_text};LSHelpers.extend(LSBox_post,LSBox),LSBox_post.prototype.init=function(e,t,n,a){var i=this;LSBox.prototype.init.call(i,e,t),i.item.text&&(i.boxViewAriaLabel="View post "+i.item.text.substring(0,10)),i.boxViewLabel="View",i.wallInstance.wall.layout&&i.wallInstance.wall.uiLabels&&i.wallInstance.wall.uiLabels.boxView&&(i.boxViewLabel=i.wallInstance.wall.uiLabels.boxView),i.item.show_pins,i.restrain_y=a,i.renderBox(n)},LSBox_post.prototype.renderBox=function(e){var t=this;if(LSBox.prototype.renderBox.call(t),t.resolution=e||"medium","photo"==t.item.type&&t.renderPhoto(),"video"==t.item.type&&t.renderVideo(),"text"==t.item.type&&t.renderText(),"mixed"==t.item.type)if(t.item.medias&&t.item.medias[0]){var n=t.item.medias[0];"photo"==n.type&&t.renderPhoto(),"video"==n.type&&t.renderVideo()}else t.item.pictures.length>0&&t.renderPhoto(),0==t.item.pictures.length&&t.renderVideo();t.item&&t.item.focalpoint&&t.box.addClass("fpls-focal--"+t.item.focalpoint),t.item&&t.item.object_fit&&t.box.addClass("fpls-object-fit--"+t.item.object_fit),t.checkPostBroken();var a;t.box.on("mouseenter.ls",function(e){clearTimeout(a),a=setTimeout(function(){var n=t.getAnalyticsPayload("post-hover",e);t.item.tags&&(n.post_tags=t.item.tags),livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})},100)}),t.box.on("mouseleave.ls",function(){clearTimeout(a)}),t.box.on("keydown.ls",function(e){$ls(e.target).is("button,a")||32!=e.which&&13!=e.which||(t.box.trigger("click.ls"),e.preventDefault(),e.stopPropagation())}),t.box.on("click.ls",function(e){var n=t.getAnalyticsPayload("post-click",e) ;t.item.tags&&(n.post_tags=t.item.tags),livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})});var i=t.getAnalyticsPayload("post-impression");t.item.tags&&(i.post_tags=t.item.tags),livestory_analytics.pushEvent(i,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup}),t.box.data("id",t.post_id),t.postRender()},LSBox_post.prototype.renderPhoto=function(){var e=this,t=e.mapContext();t=e.mapContextPhoto(t),t=livestory_thron.fixThronChina(t);var n=e.photoTpl(t);if(e.wallInstance.wall.themeOptions&&e.wallInstance.wall.themeOptions.lazyLoad&&window.IntersectionObserver&&(n=LSHelpers.replaceLazyAttr(n)),e.item.carouselLazyLoad&&window.IntersectionObserver&&(n=LSHelpers.replaceLazyAttr(n)),e.box=e.getHtml(n),e.item.popup_disabled&&e.box.addClass("fpls-no-popup"),!e.item.link&&!e.item.popup_disabled){var a=new e.wallInstance.LSPopup(e.item.index);a.init(e.item,e.wallInstance),e.box.on("click.ls",function(e){var t=$ls(e.target).attr("data-pin");a.showPopup(t)})}},LSBox_post.prototype.renderVideo=function(){var e=this,t=e.mapContext();t=e.mapContextVideo(t),t=livestory_thron.fixThronChina(t),t.show_play=t.html5video=!e.item.link&&e.item.popup_disabled,(!t.poster_url||t.poster_url&&t.poster_url.indexOf("placeholder")>0)&&(t.html5video=!0,t.poster_url=!1),t.autoplay&&(t.html5video=!0,t.show_unmuted=!1,t.show_play_autoplay?t.show_play=!0:t.show_play=!1,t.unmuted&&!t.show_play_autoplay&&(t.show_unmuted=!0),e.item.link&&(t.show_play=!1,t.show_unmuted=!1)),t.muted=!0,!t.autoplay&&t.audio&&(t.muted=!1);var n=e.videoTpl(t);if(e.wallInstance.wall.themeOptions&&e.wallInstance.wall.themeOptions.lazyLoad&&window.IntersectionObserver&&(n=LSHelpers.replaceLazyAttr(n)),e.item.carouselLazyLoad&&window.IntersectionObserver&&(n=LSHelpers.replaceLazyAttr(n)),e.box=e.getHtml(n),e.wallInstance.wall.themeOptions&&e.wallInstance.wall.themeOptions.lazyLoad||e.item.carouselLazyLoad||!window.IntersectionObserver||t.autoplay&&!e.wallInstance.playlist&&setTimeout(function(){e.playVideo()},100),e.item.popup_disabled&&e.box.addClass("fpls-no-popup"),t.show_play&&t.html5video&&e.box.on("click.ls",function(){e.isPlaying()?e.pauseVideo():e.playVideo()}),t.autoplay&&t.html5video&&t.show_unmuted){var a=e.box.find("video")[0],i=e.box.find(".fpls-box-unmuted");e.box.on("click.ls",function(){!0===a.muted?(a.muted=!1,i.addClass("hide-icon")):(a.muted=!0,i.removeClass("hide-icon"))})}if(!e.item.link&&!e.item.popup_disabled){var l=new e.wallInstance.LSPopup;l.init(e.item,e.wallInstance),e.box.on("click.ls",function(){l.showPopup()})}e.wallInstance.mainContainer.on("switch.tab.ls",function(){var t=e.box.find("video")[0];t&&t.currentTime>0&&(e.pauseVideo(),t.currentTime=0)}),e.endVideo()},LSBox_post.prototype.isPlaying=function(){var e=this,t=e.box.find("video")[0];return!(!t.play||t.paused)},LSBox_post.prototype.playVideo=function(){var e=this,t=e.box.find("video")[0],n=e.box.find(".fpls-box-play");if(t.play){t.play(),n.addClass("fpls-box-play--playing");var a=e.getAnalyticsPayload("wall-video-play");e.item.type&&(a.wall_video_source=e.item.type),livestory_analytics.pushEvent(a,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})}},LSBox_post.prototype.pauseVideo=function(){var e=this,t=e.box.find("video")[0],n=e.box.find(".fpls-box-play");if(t.play){t.pause(),n.removeClass("fpls-box-play--playing");var a=e.getAnalyticsPayload("wall-video-pause");a.wall_video_time=t.currentTime,a.wall_video_total_time=t.duration,e.item.type&&(a.wall_video_source=e.item.type),livestory_analytics.pushEvent(a,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})}},LSBox_post.prototype.endVideo=function(){var e=this;e.box.find("video").on("ended",function(){if((void 0===e.item.loop||e.item.loop)&&this.play(),!e.item.autoplay){var t=e.getAnalyticsPayload("wall-video-completed");e.item.type&&(t.wall_video_source=e.item.type),livestory_analytics.pushEvent(t,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})}})},LSBox_post.prototype.renderText=function(){var e=this,t=e.mapContext();if(t=e.mapContextText(t),e.box=e.getHtml(e.textTpl(t)),e.item.popup_disabled&&e.box.addClass("fpls-no-popup"),!e.item.link&&!e.item.popup_disabled){var n=new e.wallInstance.LSPopup;n.init(e.item,e.wallInstance),e.box.on("click.ls",function(){n.showPopup()})}},LSBox_post.prototype.getHtml=function(e){var t=this;return t.box=LSBox.prototype.getHtml.call(this,e),t.box},LSBox_post.prototype.mapContext=function(){var e=this,t=e.item;return t.avatar=e.item.author&&e.item.author.profile_picture,t.full_name=e.item.author&&e.item.author.full_name,t.username=e.item.author&&e.item.author.username,t.date=LSmmt(e.item.timestamp).fromNow(),t.link&&(t.link=e.wallInstance.addUtmToUrl(t.link)),t.viewOverlay=!e.item.popup_disabled&&!t.link,t.boxViewLabel=e.boxViewLabel,t.boxViewAriaLabel=e.boxViewAriaLabel,t=e.getWallContext(t),!t.accessibility_caption&&e.item.title&&(t.accessibility_caption=e.item.title),!t.accessibility_caption&&e.item.text&&(t.accessibility_caption=e.item.text.substring(0,50)+"..."),e.item.show_pins&&(t.pins=e.mapPins(t.actions)),t.popup_disabled=e.item.popup_disabled,t.role_presentation=!e.item.link&&e.item.popup_disabled&&!e.item.show_pins,t},LSBox_post.prototype.mapContextPhoto=function(e){var t=this;return e.image_url=LSHelpers.getImagePath(t.item,t.resolution,t.restrain_y),e.image_responsive_url=LSHelpers.getImageSrcSet(t.item,t.resolution,t.restrain_y),e},LSBox_post.prototype.mapContextVideo=function(e){var t=this,n=window.devicePixelRatio||1;return e.poster_url=LSHelpers.getImagePath(t.item,t.resolution*n,t.restrain_y),e.poster_responsive_url=LSHelpers.getImageSrcSet(t.item,t.resolution,t.restrain_y),e.video_url=LSHelpers.getVideoPath(t.item),e.video_optimized_url=LSHelpers.getOptimizedVideoPath(t.item,t.resolution),(!e.poster_url||e.poster_url.indexOf("images/placeholder")>-1)&&(e.video_url+="#t=0.2",e.video_optimized_url+="#t=0.2"),e},LSBox_post.prototype.mapContextText=function(e){var t=this;return e.quote=t.item.text,e},LSBox_post.prototype.getAnalyticsPayload=function(e,t){var n=this,a=LSBox.prototype.getAnalyticsPayload.call(n,e,t);return n.item.accessibility_caption&&(a.post_alt=n.item.accessibility_caption),a.post_id=n.post_id,a.post_type=n.item.type,a.post_source=n.item.source,n.item.author&&n.item.author.username&&(a.post_author=n.item.author.username),a.event_type=e,a},LSBox_post.prototype.checkPostBroken=function(){var e,t=this;e="mood"==t.wallInstance.wall.type?t.getAnalyticsPayload("wallpost-broken"):t.getAnalyticsPayload("post-broken"),t.box.find("img").on("error.ls",function(){LSHelpers.debug("Unable to load image: "+e.post_id),t.box.addClass("fpls-box-broken fpls-photo-broken"),livestory_analytics.pushEvent(e,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}),t.box.find("video, video source").on("error.ls",function(){LSHelpers.debug("Unable to load video: "+e.post_id),t.box.addClass("fpls-box-broken fpls-video-broken"),livestory_analytics.pushEvent(e,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})})},LSBox_post.prototype.mapPins=function(e){var t=this,n=0;return e.filter(function(e){if(e.asset){var n=$ls.extend({},t.wallInstance.products[e.asset]);if(!n.name)return!1;LSHelpers.getList(n.deleted,t.wallInstance.store,"deleted");if(n.deleted)return!1;if(t.wallInstance.wall.layout&&t.wallInstance.wall.layout.hideoutofstock&&!n.stock)return}return!!(e.coordinates&&e.coordinates.x&&e.coordinates.y)}).map(function(e){var a=$ls.extend({},t.wallInstance.products[e.asset]);return a&&a.url&&(e.link=a.url),n++,e.pinIndex=n,e})},LSBox_post.prototype.onLoad=function(e){var t=this;LSBox.prototype.onLoad.call(t,function(n,a,i){if(t.w>0&&t.h>0){var l=t.box.height(),o=t.box.width();if(t.item.crop)t.box.find(".fpls-box-pins").css({width:t.item.crop.width+"%",paddingTop:t.item.crop.width*t.h/t.w+"%",marginTop:t.item.crop.marginTop+"%",marginLeft:t.item.crop.marginLeft+"%"});else{var s=t.h/t.w,r=l/o;if(s>r)var p=100,u=s/r*100;else var p=r/s*100,u=100;t.box.find(".fpls-box-pins").css({width:p+"%",height:u+"%",top:(100-u)/2+"%",left:(100-p)/2+"%"}),t.item&&t.item.focalpoint&&(t.item.focalpoint.indexOf("w")>=0&&t.box.find(".fpls-box-pins").css({left:0}),t.item.focalpoint.indexOf("e")>=0&&t.box.find(".fpls-box-pins").css({left:100-p+"%"}),t.item.focalpoint.indexOf("n")>=0&&t.box.find(".fpls-box-pins").css({top:0}),t.item.focalpoint.indexOf("s")>=0&&t.box.find(".fpls-box-pins").css({top:100-u+"%"}))}}e&&e(n,a,i)})};var LSBox_block=function(){this.blockTpl=LSTemplates.livestory.box_block};LSHelpers.extend(LSBox_block,LSBox),LSBox_block.prototype.init=function(e,t){var n=this;LSBox.prototype.init.call(this,e,t),n.renderBox()},LSBox_block.prototype.renderBox=function(){var e=this,t=e.item;if(t=e.getWallContext(t),t.link=e.item.link,t.link&&(t.link=e.wallInstance.addUtmToUrl(t.link)),t.text=e.item.text,t.link){var n=$ls("
"+t.text+"
");n.find("a").each(function(){var e=$ls(this),t=e.html();e.replaceWith(""+t+"")}),t.text=n.html()}e.wallInstance.lang&&"default"!=e.wallInstance.lang&&(t.lang=e.wallInstance.lang.replace("_","-")),e.box=e.getHtml(e.blockTpl(t)),e.item.padding&&e.box.find(".fpls-box-text").css({padding:e.item.padding+"px"}),e.item.text&&e.item.textscroll&&e.item.textscroll.active&&setTimeout(function(){e.textScroll()},1),e.postRender()},LSBox_block.prototype.postRender=function(){var e=this;e.parent.postRender.call(e),window.callPhantom||e.initCountdown()},LSBox_block.prototype.textScroll=function(){var e=this;e.box.addClass("fpls-textscroll");var t=$ls('
'),n=$ls('
'),a=e.box.find(".fpls-box-text"),i=a.html();a.html(""),n.html(i),t.append(n),a.append(t);for(var l=Math.min(Math.ceil(a.width()/t.width()),100),o=0;o<=l;o++){var s=n.clone();s.attr("aria-hidden",!0),s.attr("tabindex",-1),t.append(s)}setTimeout(function(){var a=n.width(),i=a/e.item.textscroll.speed,l=LSCss.animationTextscroll(a,i<0);LSHelpers.injectInlineCss(l.css),t.css({animationDuration:Math.abs(i)+"s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:l.name})},100)};var LSBox_embed=function(){this.embedTpl=LSTemplates.livestory.box_embed,this.LSEmbed=LSEmbed,this.LSEmbedA11Y=LSEmbedA11Y};LSHelpers.extend(LSBox_embed,LSBox),LSBox_embed.prototype.init=function(e,t,n){var a=this;LSBox.prototype.init.call(this,e,t),a.renderBox(n)},LSBox_embed.prototype.renderBox=function(e){var t=this,n=t.item;n=livestory_thron.fixThronChina(n),t.resolution=e||2e3,n.is_accessible=t.isAccessible(t.item),n.poster_url=LSHelpers.getImagePath(t.item,t.resolution),n.poster_responsive_url=LSHelpers.getImageSrcSet(t.item,t.resolution),n.iframeHeight>0&&(n.proportions=n.iframeHeight/n.iframeWidth*100);var a=t.embedTpl(n);t.wallInstance.wall.themeOptions&&t.wallInstance.wall.themeOptions.lazyLoad&&window.IntersectionObserver&&(a=LSHelpers.replaceLazyAttr(a)),t.box=t.getHtml(a);var i=t.box.find(".fpls-box-inner"),l=(t.box.find("img"),t.box.find(".fpls-box-iframe-html")),o=$ls("
"+t.item.iframe+"
"),s=o.find("iframe"),r=o.find("video"),p=s.attr("src");s.attr("width","100%").attr("height","100%"),o.find("iframe,video").attr("title",n.accessibility_caption);var u=t.box.find(".fpls-playing-video-buttons").hide(),c=t.box.find(".fpls-box-close").hide(),d=t.box.find(".fpls-box-play"),f=t.box.find(".fpls-box-play-a11y");if(f.hide(),n.is_accessible&&(f.show(),t.embedAccessible=new t.LSEmbedA11Y,t.embedAccessible.init(t.wallInstance,n.iframe_accessible,n.iframe_transcription,t.item.iframeWidth,t.item.iframeHeight),t.embedAccessible.setTitle(n.accessibility_caption)),t.box.find("img").on("click.ls",function(e){e.preventDefault(),d.trigger("click.ls")}),t.item.playinmodal||$ls(window).outerWidth()<768&&!t.item.inline_iframe){l.hide();var u=t.box.find(".fpls-playing-video-buttons").hide();t.embed=new t.LSEmbed,t.embed.init(t.wallInstance,t.item.iframe,t.item.iframeWidth,t.item.iframeHeight),t.embed.setItem(t.item),t.embed.setTitle(n.accessibility_caption),l.html(""),d.on("click.ls",function(e){if(n.is_accessible&&t.embed.setCallBackAccessible(function(){f.trigger("click.ls")}),t.embed.show(),t.isVideo()){var a=t.getAnalyticsPayload("wall-video-play",e);a.wall_video_source=t.getVideoSource(),livestory_analytics.pushEvent(a,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}})}else if(t.item.inline_iframe){if(l.css("background","none"),!t.isSSR){var h=o.html();l.html(h)}n.is_accessible&&u.show(),t.wallInstance.mainContainer.on("switch.tab.ls",function(){h&&(l.html(""),l.html(h))})}else{var p=s.attr("src");p&&(p.indexOf("youtube")>0||p.indexOf("vimeo")>0||p.indexOf("thron")>0)&&(p.indexOf("?")>0?p+="&autoplay=1":p+="?autoplay=1",s.attr("src",p)),p&&p.indexOf("youtube")>0&&(p.indexOf("?")>0?p+="&wmode=transparent":p+="?wmode=transparent",p+="&rel=0",s.attr("src",p),s.attr("wmode","transparent")),r.length>0&&(r.attr("playsinline",!0),r.attr("autoplay",!0));var h=o.html();l.hide(),l.html(""),d.on("click.ls",function(e){if($ls(e.target).parents(".fpls-box-iframe-html").length<=0&&(l.html(h).show(),i.on("mouseover.ls",function(){c.show()}),i.on("mouseout.ls",function(){c.hide()}),t.isVideo())){var n=t.getAnalyticsPayload("wall-video-play",e);n.wall_video_source=t.getVideoSource(),livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}u.show()}),c.on("click.ls",function(e){e.preventDefault(),e.stopPropagation(),l.html("").hide(),u.hide(),i.off("mouseover.ls mouseout.ls");var n=t.getAnalyticsPayload("embed-close",e);livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}),t.wallInstance.mainContainer.on("switch.tab.ls",function(){l.html("").hide(),u.hide()})}n.is_accessible&&!t.item.inline_iframe?f.on("click.ls",function(e){l.html("").hide(),u.hide(),t.embedAccessible.show();var n=t.getAnalyticsPayload("embed-a11y-click",e);livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}):n.is_accessible&&f.on("click.ls",function(e){var n=o.html();l.html(n),t.embedAccessible.show();var a=t.getAnalyticsPayload("embed-a11y-click",e);livestory_analytics.pushEvent(a,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}),d.on("keydown.ls",function(e){$ls(e.target).is("button,a")||32!=e.which&&13!=e.which||(d.trigger("click.ls"),e.preventDefault(),e.stopPropagation())});var m=t.getAnalyticsPayload("embed-impression");t.isVideo()&&(m.wall_video_source=t.getVideoSource()),livestory_analytics.pushEvent(m,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup});var _;t.box.on("mouseenter.ls",function(e){clearTimeout(_),_=setTimeout(function(){var n=t.getAnalyticsPayload("embed-hover",e);t.isVideo()&&(n.wall_video_source=t.getVideoSource()),livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})},100)}),t.box.on("click.ls",function(e){var n=t.getAnalyticsPayload("embed-click",e);t.isVideo()&&(n.wall_video_source=t.getVideoSource()),livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}),t.postRender()},LSBox_embed.prototype.getVideoSource=function(){var e,t=this,n=t.item.iframe,a=/src="([^"]+)"/,i=a.exec(n),l=i[1];return l&&-1!==l.indexOf("youtube")&&(e="youtube"),l&&-1!==l.indexOf("vimeo")&&(e="vimeo"),l&&-1!==l.indexOf("thron")&&(e="thron"),e},LSBox_embed.prototype.isAccessible=function(e){return void 0===e&&(e=this.item),void 0!=e.iframe_accessible&&""!=e.iframe_accessible&&(void 0!=e.iframe_transcription&&""!=e.iframe_transcription||void 0!=e.iframe_accessible&&""!=e.iframe_accessible||void 0!=e.iframe_transcription&&""!=e.iframe_transcription)},LSBox_embed.prototype.isVideo=function(){var e=this;return e.item.iframe&&(e.item.iframe.indexOf("youtube")>0||e.item.iframe.indexOf("vimeo")>0||e.item.iframe.indexOf("thron")>0||e.item.iframe.indexOf("0)};var LSBox_icon=function(){this.iconTpl=LSTemplates.livestory.box_icon};LSHelpers.extend(LSBox_icon,LSBox),LSBox_icon.prototype.init=function(e,t){var n=this;LSBox.prototype.init.call(this,e,t),n.renderBox()},LSBox_icon.prototype.renderBox=function(){var e=this,t=e.item;t.link=e.item.link,t.link&&(t.link=e.wallInstance.addUtmToUrl(t.link)),e.item.svg&&(t.svg=e.item.svg),e.box=e.getHtml(e.iconTpl(t)),e.postRender()},LSBox_icon.prototype.postRender=function(){var e=this;LSBox.prototype.postRender.call(this),e.injectSvgStyle(e.item.uniqueId,e.item.style)},LSBox_icon.prototype.injectSvgStyle=function(e,t){var n=this,a="";t&&(a=t&&t.replace(/ITEMID/g,e))&&a.length>0&&LSHelpers.injectInlineCss(a,n.wallInstance.wall.wall_id,n.wallInstance.container)};var LSPopup=function(e){this.popupTpl=LSTemplates.livestory.popup,this.LSEmbed=LSEmbed,this.index=e};LSPopup.prototype.init=function(e,t){var n=this;n.item=e,n.wallInstance=t,n.fadeTime=300,n.assetFadeTime=150,n.productLabel="Shop now",n.assetPixels=500,n.assetGalleryEnabled=!0,n.wallInstance.wall.uiLabels&&n.wallInstance.wall.uiLabels.productAction&&(n.productLabel=n.wallInstance.wall.uiLabels.productAction),n.post_id=n.item.id||n.item._id},LSPopup.prototype.showPopup=function(e){var t=this;$ls("body").addClass("fpls-popup-visible");var n=t.mapContext();t.popup=$ls(t.popupTpl(n)),t.detectClick(),t.unbindKeys(),t.assetGallery(),t.pinInteractions(e),t.popup.find(".fpls-popup-share a").on("click.ls",function(e){e.preventDefault();var t=$ls(this).attr("href");LSHelpers.openShare(t)}),t.popup.find(".fpls-popup-close").on("click.ls",function(){t.hidePopup()}),t.popup.find(".fpls-popup-wrapper").on("click.ls",function(e){$ls(e.target).is(".fpls-popup-wrapper")&&t.hidePopup()}),t.popup.find(".fpls-popup-prev").hide().on("click.ls",function(e){e.preventDefault(),t.wallInstance.prev&&"none"!=e.target.style.display&&(livestory_a11y.close(),t.wallInstance.prev(t.post_id))}),t.popup.find(".fpls-popup-next").hide().on("click.ls",function(e){e.preventDefault(),t.wallInstance.next&&"none"!=e.target.style.display&&(livestory_a11y.close(),t.wallInstance.next(t.post_id))}),t.wallInstance.prev&&t.wallInstance.prevAvailable(t.post_id)&&t.popup.find(".fpls-popup-prev").show(),t.wallInstance.next&&t.wallInstance.nextAvailable(t.post_id)&&t.popup.find(".fpls-popup-next").show(),t.wallInstance.wall.options.post_likes&&t.popup.find(".fpls-popup-like").show(),t.popup.find(".fpls-popup-like").on("click.ls",function(){t.sendLike(t.post_id,function(){t.popup.find(".fpls-popup-like").addClass("liked")})});var a=t.wallInstance.wrapper.attr("class"),i=t.popup.attr("class");if(t.popup.attr("class",i+" fpls "+a),t.popup.find(".fpls-popup-wrapper").hide(),t.popup.show(),t.isPopupVisible()){var l=$ls(".fpls-popup");l.find(".fpls-popup-background").hide(),l.find(".fpls-popup-wrapper").fadeOut(t.fadeTime,function(){l.remove()})}else t.popup.addClass("fpls-popup-loading");$ls("body").append(t.popup),t.popup.find(".fpls-popup-image img").length<=0?(t.popup.find(".fpls-popup-wrapper").fadeIn(t.fadeTime,function(){livestory_a11y.open()}),t.popup.removeClass("fpls-popup-loading")):t.popup.find(".fpls-popup-image img").eq(0).on("load error",function(){t.popup.find(".fpls-popup-wrapper").fadeIn(t.fadeTime,function(){livestory_a11y.open()}),t.popup.removeClass("fpls-popup-loading")}),t.enableCarousel(),t.wallInstance.options&&t.wallInstance.options.onPopupShow&&t.wallInstance.options.onPopupShow(t.popup),t.handleVideo(t.popup.find(".fpls-popup-image > .fpls-popup-video-wrapper"),!0),$ls(window).trigger("ls-popup-open"),t.checkPostBroken(),t.wallInstance.wall.ls_watermark.hide_logo_on_popup||t.addCredits(t.wallInstance.wall.ls_watermark.disable_logo_link_on_popup),t.bindKeys(),t.bindMobileEvents(),t.sendPopupImpressionEvent()},LSPopup.prototype.sendLike=function(e,t){var n=this;$ls.ajax({type:"POST",url:LSConfig.apiURL+"post/"+e+"/vote/"+livestory_analytics.getClientId(),success:function(){t&&t()}});var a=n.getAnalyticsPayload("post-like");n.item.tags&&(a.post_tags=n.item.tags),n.wallInstance.wallgroup&&(a.wallgroup_id=n.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(a,{item:n.item,wall:n.wallInstance.wall,wallgroup:n.wallInstance.wallgroup})},LSPopup.prototype.bindMobileEvents=function(){var e=this;e.popup.find(".fpls-popup-image").on("touchstart.ls",function(t){e.__touchstart(t)}),e.popup.find(".fpls-popup-image").on("touchend.ls",function(t){e.__touchend(t)}),e.popup.find(".fpls-popup-image").on("touchmove.ls",function(t){e.__touchmove(t)})},LSPopup.prototype.__touchstart=function(e){var t=this;t.touchEnabled=!0;var n=e.originalEvent.targetTouches[0].pageX,a=e.originalEvent.targetTouches[0].pageY;t.touchPositionX=n,t.touchPositionY=a,t.touchDeltaX=0,t.touchDeltaY=0,t.popup.find(".fpls-popup-wrapper").addClass("fpls-dragging")},LSPopup.prototype.__touchmove=function(e){var t=this,n=e.originalEvent.targetTouches[0].pageX,a=e.originalEvent.targetTouches[0].pageY;t.touchDeltaX=n-t.touchPositionX,t.touchDeltaY=a-t.touchPositionY,Math.abs(t.touchDeltaX)>25&&Math.abs(t.touchDeltaY)<75&&(e.preventDefault(),t.popup.find(".fpls-popup-wrapper").css({transform:"translateX("+t.touchDeltaX/4+"px)"}))},LSPopup.prototype.__touchend=function(e){var t=this;t.touchEnabled=!1,Math.abs(t.touchDeltaX)>100&&Math.abs(t.touchDeltaY)<75&&(t.touchDeltaX<0?t.wallInstance.next&&t.wallInstance.next(t.post_id):t.wallInstance.prev&&t.wallInstance.prev(t.post_id)),t.popup.find(".fpls-popup-wrapper").removeClass("fpls-dragging"),t.popup.find(".fpls-popup-wrapper").css({transform:"translateX(0px)"})},LSPopup.prototype.handleVideo=function(e,t){var n=this,a=e.find("video"),i=e.find(".fpls-box-play");a.length<1||(a.off("click.ls").on("click.ls",function(){a[0].paused?a[0].play():a[0].pause()}),a.on("play.ls",function(){i.css({opacity:0})}),a.on("pause.ls",function(){i.css({opacity:1})}),i.on("click.ls",function(){a[0].paused?a[0].play():a[0].pause()}),t&&(a.prop("volume",.25),n.playVideo(a)))},LSPopup.prototype.getHtml=function(){return this.popup},LSPopup.prototype.hidePopup=function(){var e=this;e.unbindKeys();var e=this;e.popup.find("video").each(function(){this.pause()}),e.popup.fadeOut(e.fadeTime,function(){e.popup.remove(),$ls(window).trigger("ls-popup-close")}),$ls("body").removeClass("fpls-popup-visible"),livestory_a11y.close()},LSPopup.prototype.isPopupVisible=function(){return $ls(".fpls-popup").length>0},LSPopup.prototype.mapActions=function(e){var t=this;if(t.pinIndex=0,t.pins=[],e)for(var n=0;n").replace(/#/g," #"),t.url=e.item.url,t.productLabel=e.productLabel,t.date=LSmmt(e.item.timestamp).fromNow(),t.source=e.item.source,t.accessibility_caption=e.item.accessibility_caption,t._id=e.item._id,t=e.getWallContext(t),!t.accessibility_caption&&e.item.title&&(t.accessibility_caption=e.item.title),!t.accessibility_caption&&e.item.text&&(t.accessibility_caption=e.item.text.substring(0,50)+"..."),e.wallInstance.current_layout.overlays&&(t.popup_background=e.wallInstance.current_layout.overlays.popup_background),e.wallInstance.embed=new e.LSEmbed,e.wallInstance.embed.init(e.wallInstance),"manual"==t.source&&(t.source="Live Story"),t.link=e.item.link,t.link_cta=e.item.link_cta||"More","photo"==e.item.type&&(t.image_url=LSHelpers.getImagePath(e.item,"high")),"video"==e.item.type&&(t.poster_url=LSHelpers.getImagePath(e.item,"high"),t.video_url=LSHelpers.getVideoPath(e.item)),"text"==e.item.type&&(t.text=e.item.text||""),"mixed"==e.item.type&&(t.mixed=!0,t.medias=[],e.item.medias.forEach(function(n,a){var i={};"photo"==n.type&&(i.type=n.type,i.image_url=LSHelpers.getMixedImagePath(n,"high")),"video"==n.type&&(i.type=n.type,i.video_url=LSHelpers.getMixedVideoPath(n)),"video"==n.type&&1==e.item.dangling||("photo"==n.type&&1==e.item.dangling&&(i.image_url=LSHelpers.resize("/post/orig/"+e.post_id,e.assetPixels,!1)+"/"+a),i.accessibility_caption="",0==a&&(i.accessibility_caption+=t.accessibility_caption+", "),i.accessibility_caption+=1+a+" of "+e.item.medias.length,t.medias.push(i))})),e.item.image_cta&&(t.image_cta=LSHelpers.resize(e.item.image_cta,e.assetPixels));var n=encodeURIComponent(window.location.href),a=encodeURIComponent(t.image_url);return t.image_url?(t.twitter_share="https://twitter.com/intent/tweet?text="+n+" - Shared with LiveStory",t.pinterest_share="https://pinterest.com/pin/create/button/?url="+n+"&media="+a+"&description=Shared with LiveStory",t.facebook_share="https://www.facebook.com/sharer/sharer.php?u="+n):(t.twitter_share="https://twitter.com/intent/tweet?text="+n+" - Shared with LiveStory",t.facebook_share="https://www.facebook.com/sharer/sharer.php?u="+n),t.actions=e.mapActions(e.item.actions),t.pins=e.mapPins(t.actions),t.assets=e.parseProducts(t.actions),t.assets=t.assets.filter(function(e){return void 0!==e.name}),t.assets.length<1&&!t.title&&!t.description&&!t.link&&(t.extra_class="fpls-no-assets"),t},LSPopup.prototype.getWallContext=function(e){var t=this;return e.wall=t.wallInstance.context,e},LSPopup.prototype.enableCarousel=function(){var e=this;if("mixed"==e.item.type){var t=e.popup.find(".fpls-popup-pins");e.popup.find(".fpls-popup-carousel").each(function(){function n(){p.find("a.fpls-popup-carousel-dot-active").removeClass("fpls-popup-carousel-dot-active"),p.find("a").eq(c).addClass("fpls-popup-carousel-dot-active"),c>0?t&&t.hide():t&&t.show()}function a(){u.css({left:100*-c+"%"}),i(),n()}function i(){var e=o.eq(c).height()/l.width()*100;e<1&&(e=100),l.css({paddingTop:e+"%"})}var l=$ls(this),o=l.find(".fpls-popup-carousel-item"),s=l.find(".fpls-popup-carousel-next"),r=l.find(".fpls-popup-carousel-prev"),p=l.find(".fpls-popup-carousel-dots"),u=l.find(".fpls-popup-carousel-slider");u.width(100*o.length+"%"),o.width(100/o.length+"%");var c=0;if(o.each(function(){e.handleVideo($ls(this).find(".fpls-popup-video-wrapper"),!1),p.append(''),$ls(this).find("img").on("load.ls",function(){i()})}),o.eq(0).has("video")){o.eq(0).find("video").on("playing.ls",function(){i()}),e.playVideo(o.eq(0).find("video"))}i(),n(),p.find("a").on("click.ls",function(e){e.preventDefault();var t=p.find("a").index(this);c=t,a()}),s.on("click.ls",function(){c++,c>=o.length&&(c=0),o.eq(c).has("video")&&e.playVideo(o.eq(c).find("video")),a()}),r.on("click.ls",function(){c--,c<0&&(c=o.length-1),o.eq(c).has("video")&&e.playVideo(o.eq(c).find("video")),a()})})}},LSPopup.prototype.pinInteractions=function(e){function t(e){if(!1===e)return l.removeClass("fpls-current"),void a.removeClass("fpls-current");l.not('[data-pin="'+e+'"]').removeClass("fpls-current"),l.filter('[data-pin="'+e+'"]').addClass("fpls-current"),a.not('[data-pin="'+e+'"]').removeClass("fpls-current"),a.filter('[data-pin="'+e+'"]').addClass("fpls-current")}var n=this,a=n.popup.find(".fpls-popup-pins .fpls-popup-pin"),i=n.popup.find(".fpls-popup-assets .fpls-popup-pinned"),l=n.popup.find(".fpls-popup-pinned");n.assetGalleryEnabled&&a.on("click",function(){var e=$ls(this).attr("data-pin"),t=i.filter('[data-pin="'+e+'"]');a.removeClass("fpls-active"),$ls(this).addClass("fpls-active"),t.length>0&&n.currentAsset.fadeOut(n.assetFadeTime,function(){t.fadeIn(n.assetFadeTime),n.currentAsset=t})}),e&&setTimeout(function(){var a=i.filter('[data-pin="'+e+'"]');a.length>0&&n.currentAsset.fadeOut(n.assetFadeTime,function(){a.fadeIn(n.assetFadeTime),n.currentAsset=a}),t(e)},10),a.on("mouseenter",function(){t($ls(this).attr("data-pin"))}).on("mouseleave",function(){t(!1)}),l.on("mouseenter",function(){t($ls(this).attr("data-pin"))}).on("mouseleave",function(){t(!1)})},LSPopup.prototype.assetGallery=function(){var e=this,t=e.popup.find(".fpls-popup-assets-next"),n=e.popup.find(".fpls-popup-assets-prev");if(!e.assetGalleryEnabled)return t.remove(),void n.remove();var a=(e.popup.find(".fpls-popup-assets"),e.popup.find(".fpls-popup-asset"));if(!(a.length<1)){if(e.currentAsset=a.eq(0),e.sendImpression(e.currentAsset.find("a[data-sku]")),a.length<2)return void e.popup.find(".fpls-popup-assets-nav").remove();a.not(e.currentAsset).hide(),t.on("click.ls",function(t){t.preventDefault();var n=e.currentAsset.next(".fpls-popup-asset");n.length<1&&(n=a.eq(0)),e.currentAsset.fadeOut(e.assetFadeTime,function(){n.fadeIn(e.assetFadeTime),e.currentAsset=n}),e.sendImpression(n.find("a[data-sku]"))}),n.on("click.ls",function(t){t.preventDefault();var n=e.currentAsset.prev(".fpls-popup-asset");n.length<1&&(n=a.eq(a.length-1)),e.currentAsset.fadeOut(e.assetFadeTime,function(){n.fadeIn(e.assetFadeTime),e.currentAsset=n}),e.sendImpression(n.find("a[data-sku]"))})}},LSPopup.prototype.sendImpression=function(e){var t=this,n=t.getAnalyticsPayload("product-impression");n.product_sku=e.data("sku"),n.product_price=e.data("price"),n.product_name=e.data("name"),t.getCustomLabelPayload(e,n),t.wallInstance.wallgroup&&(n.wallgroup_id=t.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(n,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})},LSPopup.prototype._resumeInteractions=function(){this.bindKeys()},LSPopup.prototype._pauseInteractions=function(){this.unbindKeys()},LSPopup.prototype._openVideoEmbed=function(e,t){var n=this;e.preventDefault(),n._pauseInteractions(),n.embed.setItem(n.item),n.wallInstance.embed.show(n._resumeInteractions.bind(this),atob(t.data("iframe"))),n.sendAnalyticsCta(t.text(),e)},LSPopup.prototype.detectClick=function(){var e=this;e.popup.find(".fpls-popup-cta-link a").on("click.ls",function(t){ var n=$ls(this),a=$ls(this).attr("href"),i=$ls(this).attr("target");"_blank"==i||n.data("stop")||t.preventDefault(),e.sendAnalyticsCta($ls(this).text(),t),a&&"_blank"!=i&&!n.data("stop")&&livestory_analytics.flushEvents(function(){document.location=a})}),e.popup.find(".fpls-popup-cta-video").find("a, button").on("click.ls",function(t){e._openVideoEmbed(t,$ls(this))}),e.popup.find("a[data-sku]").each(function(){var t,n=$ls(this);n.on("mouseenter.ls",function(a){clearTimeout(t),t=setTimeout(function(){var t=e.getAnalyticsPayload("product-hover",a);t.product_sku=n.data("sku"),t.product_price=n.data("price"),t.product_name=n.data("name"),e.getCustomLabelPayload(n,t),e.item.tags&&(t.post_tags=e.item.tags),e.wallInstance.wallgroup&&(t.wallgroup_id=e.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(t,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})},100)}),n.on("mouseleave.ls",function(){clearTimeout(t)}),n.on("click.ls",function(t){var a=n.attr("href"),i=n.attr("target");"_blank"==i||n.data("stop")||t.preventDefault();var l=e.getAnalyticsPayload("product-click",t);l.product_sku=n.data("sku"),l.product_price=n.data("price"),l.product_name=n.data("name"),e.getCustomLabelPayload(n,l),e.item.tags&&(l.post_tags=e.item.tags),e.wallInstance.wallgroup&&(l.wallgroup_id=e.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(l,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup}),"_blank"==i||n.data("stop")||livestory_analytics.flushEvents(function(){document.location=a})})})},LSPopup.prototype.sendAnalyticsCta=function(e,t){var n=this,a=n.getAnalyticsPayload("postlink-click",t);a.post_cta=e||"n.a.",n.item.tags&&(a.post_tags=n.item.tags),n.wallInstance.wallgroup&&(a.wallgroup_id=n.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(a,{item:n.item,wall:n.wallInstance.wall,wallgroup:n.wallInstance.wallgroup})},LSPopup.prototype.bindKeys=function(){var e=this;$ls(document).on("ls-popup-next",function(){e.wallInstance.next&&e.wallInstance.next(e.post_id)}),$ls(document).on("ls-popup-prev",function(){e.wallInstance.prev&&e.wallInstance.prev(e.post_id)})},LSPopup.prototype.unbindKeys=function(){$ls(document).off("ls-popup-prev"),$ls(document).off("ls-popup-next")},LSPopup.prototype.playVideo=function(e){this.popup.find("video").each(function(){this.pause()}),e.length>=1&&e[0].play()},LSPopup.prototype.checkPostBroken=function(){var e,t=this;e="mood"==t.wallInstance.wall.type?t.getAnalyticsPayload("wallpost-broken"):t.getAnalyticsPayload("post-broken"),t.popup.find(".fpls-popup-image img").on("error.ls",function(){LSHelpers.debug("Unable to load image: "+e.post_id),livestory_analytics.pushEvent(e,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})}),t.popup.find(".fpls-popup-image video source").on("error.ls",function(){LSHelpers.debug("Unable to load video: "+e.post_id),livestory_analytics.pushEvent(e,{item:t.item,wall:t.wallInstance.wall,wallgroup:t.wallInstance.wallgroup})})},LSPopup.prototype.getAnalyticsPayload=function(e,t){var n=this,a={event_type:e,brand:n.item.brand,campaign_id:n.wallInstance.wall.campaign_id,campaign_name:n.wallInstance.wall.campaign_name,wall_id:n.wallInstance.wall.wall_id,post_id:n.post_id,wall_title:n.wallInstance.wall.title,wall_subtype:n.wallInstance.wall.subtype,wall_item_id:n.item._id,wall_item_type:n.item.type,wall_breakpoint:n.wallInstance.getWallBreakpoint(),post_type:n.item.type,post_source:n.item.source};return n.item.index>=0&&(a.popup_index=n.item.index),n.item.author&&n.item.author.username&&(a.post_author=n.item.author.username),n.wallInstance.wallgroup&&n.wallInstance.wallgroup._id&&(a.wallgroup_id=n.wallInstance.wallgroup._id),n.wallInstance.wallgroup&&n.wallInstance.wallgroup.title&&(a.wallgroup_name=n.wallInstance.wallgroup.title),n.wallInstance&&n.wallInstance.lang&&(a.lang_code=n.wallInstance.lang),n.wallInstance&&n.wallInstance.store&&(a.store_code=n.wallInstance.store),a},LSPopup.prototype.addCredits=function(e){if(void 0!==window.callPhantom){var t=this;t.popup.find("."+livestory_analytics.getCreditsId("popup")).length<1&&(e?t.popup.find(".fpls-popup-content").append(''):t.popup.find(".fpls-popup-content").append(''))}},LSPopup.prototype.getCustomLabelPayload=function(e,t){return e.data("custom-label-0")&&(t.product_custom_label_0=e.data("custom-label-0")),e.data("custom-label-1")&&(t.product_custom_label_1=e.data("custom-label-1")),e.data("custom-label-2")&&(t.product_custom_label_2=e.data("custom-label-2")),e.data("custom-label-3")&&(t.product_custom_label_3=e.data("custom-label-3")),e.data("custom-label-4")&&(t.product_custom_label_4=e.data("custom-label-4")),t},LSPopup.prototype.sendPopupImpressionEvent=function(){var e=this,t=e.getAnalyticsPayload("popup-impression");e.wallInstance.wallgroup&&(t.wallgroup_id=e.wallInstance.wallgroup.wallgroup_id),livestory_analytics.pushEvent(t,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})};var LSEmbed=function(){this.embedTpl=LSTemplates.livestory.embed};LSEmbed.prototype.init=function(e,t,n,a){var i=this;i.wallInstance=e,i.container=$ls(i.embedTpl()),i.container.hide(),$ls("body").append(i.container),i.width=n,i.height=a,t&&i.setIframe(t);var l=i.wallInstance.wrapper.attr("class"),o=i.container.attr("class");i.container.attr("class",o+" fpls "+l),i.container.find(".fpls-embed-close").on("click.ls",i.hide.bind(i)),i.play_a11y=i.container.find(".fpls-embed-play-a11y").hide(),i.container.find(".fpls-embed-close").on("click.ls",function(){i.sendAnalytics()})},LSEmbed.prototype.setItem=function(e){self.item=e},LSEmbed.prototype.show=function(e,t){var n=this;n.callback=e,t&&n.setIframe(t);var a=n.container.find(".fpls-embed-iframe");a.html(n.iframeWrapper.html()),n.height>0&&n.fitContent(a),n.container.fadeIn(),livestory_a11y.open()},LSEmbed.prototype.fitContent=function(e){var t=this,n=$ls(window).width(),a=$ls(window).height(),i=n/a,l=t.width/t.height,o=90;if(n<700&&(o=100),i>l){var s=o,r=s/t.height*t.width;e.css({height:s+"vh",width:r+"vh",paddingTop:0})}else{var r=o;r*n/100>1920&&(r=1920/n*o);var s=r/t.width*t.height;e.css({height:s+"vw",width:r+"vw",paddingTop:0})}},LSEmbed.prototype.setTitle=function(e){var t=this;if(t.iframeWrapper){var n=t.iframeWrapper.find("iframe");n&&n.attr("title",e)}},LSEmbed.prototype.setIframe=function(e){var t,n=this;if(n.iframeWrapper=$ls("
"+e+"
"),n.iframeWrapper.find("iframe")){var a=n.iframeWrapper.find("iframe");t=a.attr("src"),t&&(t.indexOf("youtube")>0||t.indexOf("vimeo")>0||t.indexOf("thron")>0)&&(t.indexOf("?")>0?t+="&autoplay=1":t+="?autoplay=1",a.attr("src",t)),t&&t.indexOf("tiktok")>0&&(n.container.find(".fpls-embed-iframe").addClass("tiktok"),n.container.find(".fpls-embed-iframe").attr("style",a.attr("style")))}if(n.iframeWrapper.find("video")){var i=n.iframeWrapper.find("video");i.attr("playsinline",!0),i.attr("autoplay",!0),i.attr("controls",!0)}},LSEmbed.prototype.justHide=function(){var e=this;e.container.hide(),e.container.find(".fpls-embed-iframe").html(""),livestory_a11y.close()},LSEmbed.prototype.hide=function(){this.justHide(),this.callback&&this.callback()},LSEmbed.prototype.setCallBackAccessible=function(e){var t=this;t.play_a11y.show(),t.play_a11y.on("click.ls",t.showAccessible.bind(t)),t.callbackAccessible=e},LSEmbed.prototype.showAccessible=function(){this.justHide(),this.callbackAccessible()},LSEmbed.prototype.sendAnalytics=function(){var e=this,t=e.wallInstance.getAnalyticsPayload("embed-close",e.item);livestory_analytics.pushEvent(t,{item:e.item,wall:e.wallInstance.wall,wallgroup:e.wallInstance.wallgroup})},LSEmbed.prototype.getWallBreakpoint=function(){var e=this,t=e.wallInstance.current_breakpoint;return t||(t=-1),t};var LSEmbedA11Y=function(){this.embedTpl=LSTemplates.livestory.embed_a11y};LSEmbedA11Y.prototype.init=function(e,t,n,a,i){var l=this;l.wallInstance=e,l.container=$ls(l.embedTpl()),l.container.hide(),$ls("body").append(l.container),l.width=a,l.height=i,t&&l.setIframe(t),n&&l.setTranscription(n);var o=l.wallInstance.wrapper.attr("class"),s=l.container.attr("class");l.container.attr("class",s+" fpls "+o),l.container.find(".fpls-embed-close").on("click.ls",l.hide.bind(l))},LSEmbedA11Y.prototype.show=function(e,t){var n=this;n.callback=e,t&&n.setIframe(t),n.container.find(".fpls-embed-iframe-a11y").html(n.iframeWrapper.html()),n.container.fadeIn(),livestory_a11y.open()},LSEmbedA11Y.prototype.setTranscription=function(e){var t=this;t.container.addClass("has-transcription"),t.container.find(".fpls-transcriptions").html(e)},LSEmbedA11Y.prototype.setTitle=function(e){var t=this;if(t.iframeWrapper){var n=t.iframeWrapper.find("iframe");n&&n.attr("title",e+" accessible version")}},LSEmbedA11Y.prototype.fitContent=function(e){var t=this;LSEmbed.prototype.fitContent.call(t,e)},LSEmbedA11Y.prototype.setIframe=function(e){var t,n=this;if(n.iframeWrapper=$ls("
"+e+"
"),n.iframeWrapper.find("iframe")){var a=n.iframeWrapper.find("iframe");t=a.attr("src"),t&&(t.indexOf("youtube")>0||t.indexOf("vimeo")>0||t.indexOf("thron")>0)&&(t.indexOf("?")>0?t+="&autoplay=1":t+="?autoplay=1",a.attr("src",t)),t&&t.indexOf("tiktok")>0&&(n.container.find(".fpls-embed-iframe").addClass("tiktok"),n.container.find(".fpls-embed-iframe").attr("style",a.attr("style")))}if(n.iframeWrapper.find("video")){var i=n.iframeWrapper.find("video");i.attr("playsinline",!0),i.attr("autoplay",!0),i.attr("controls",!0)}},LSEmbedA11Y.prototype.hide=function(){var e=this;e.container.hide(),e.container.find(".fpls-embed-iframe-a11y").html(""),livestory_a11y.close(),e.callback&&e.callback()}; ;/* v1/js/wallgroup-default.js */ var LSWallgroup_default=function(){this.tabContainerTpl=LSTemplates.wallgroup_default.tabs;this.wallContainerTpl=LSTemplates.wallgroup_default.tab};LSWallgroup_default.prototype.init=function(e,a,l,t){this.walls={};this.tabs={};this.id=e;this.options=a;this.mainContainer=l||$ls("#"+this.id);this.rootContainer=t||self.mainContainer};LSWallgroup_default.prototype.parseJSON=function(e){LSHelpers.debug("Wallgroup parseJSON");var a=this;this.wallgroup=e;if(e.walls.length){for(var l=0;l0){e.mainContainer.addClass("fpls-"+e.wallgroup.theme.replace(/@/g,""));e.mainContainer.addClass("fpls-"+e.wallgroup.theme.replace(/@/g,"-"))}else{e.mainContainer.addClass("fpls-"+e.wallgroup.theme)}e.mainContainer.addClass("fpls-"+e.id.replace("ls-",""));if(e.parent_theme)e.mainContainer.addClass("fpls-"+e.parent_theme);this.__checkSSR()};LSWallgroup_default.prototype.__checkSSR=function(){var e=this;if(e.mainContainer.find('[data-ssr="true"]').length>0){e.isSSR=true}else{e.isSSR=false}try{if(e.isSSR){var a=[];e.mainContainer.find(".fpls-wallgroup-container").eq(0).find(".fpls-wall-container[id]").each((function(){a.push($ls(this).attr("id").replace("ssr",""))}));a=a;var l=Object.keys(e.walls);if(a.join(",")!=l.join(",")){var t=a.filter((function(e){return l.indexOf(e)<0}));t.forEach((function(a){e.mainContainer.find("#ssr"+a).remove()}));e.outatedSSR=true}}}catch(e){LSHelpers.error(e)}};LSWallgroup_default.prototype.initContainers=function(){var e=this;LSHelpers.debug("Wallgroup initContainers");if(e.isSSR){e.wallgroupContainer=e.mainContainer.find(".fpls-wallgroup-container");if(e.wallgroupContainer.length<1){e.wallgroupContainer=$ls('
');e.wallgroupContainer.appendTo(e.mainContainer)}e.wallgroupContainer.find("> .fpls-wall-container").addClass("fpls-wall-container--ssr")}else{e.wallgroupContainer=$ls('
');e.wallgroupContainer.appendTo(e.mainContainer)}ssrNeedsRefresh=false;for(var a in e.walls){if(e.isSSR){e.walls[a].wallContainer=e.mainContainer.find("#ssr"+a);if(e.walls[a].wallContainer.length<1){e.walls[a].wallContainer=$ls('
');e.walls[a].wallContainer.appendTo(e.wallgroupContainer);ssrNeedsRefresh=true}else if(e.outatedSSR){e.walls[a].wallContainer.detach();e.walls[a].wallContainer.appendTo(e.wallgroupContainer);ssrNeedsRefresh=true}}else{e.walls[a].wallContainer=$ls('
');e.walls[a].wallContainer.appendTo(e.wallgroupContainer)}e.walls[a].wallContainer.removeClass("fpls-wall-container--ssr")}e.wallgroupContainer.find(".fpls-wall-container--ssr").remove()};LSWallgroup_default.prototype.initTabs=function(){LSHelpers.debug("Wallgroup initTabs");var e=this;if(Object.keys(e.tabs).length>1){e.tabContainer=$ls(e.tabContainerTpl({tabs:e.tabs}));var a=e.tabContainer.eq(0).attr("class");if(e.isSSR&&a){var l=e.wallgroupContainer.find("."+a);if(l.length>0){l.replaceWith(e.tabContainer)}else{e.tabContainer.prependTo(e.wallgroupContainer)}}else{e.tabContainer.prependTo(e.wallgroupContainer)}var t=e.tabContainer.find(".fpls-wallgroup-tab a");t.on("click.ls",(function(a,l){a.preventDefault();if(t.length>1&&e.wallgroup.fragment_navigation){e.pushTab(LSHelpers.createFragment($ls(this).text()))}e.switchTab($ls(this).data("target"),l)}));var s=LSHelpers.parseFragment();var n=false;if(s){t.each((function(){if(LSHelpers.createFragment($ls(this).text())==s){n=true;$ls(this).trigger("click.ls")}}))}if(!n)t.eq(0).trigger("click.ls")}else{e.switchTab(this.tabs[Object.keys(this.tabs)[0]].id)}};LSWallgroup_default.prototype.switchTab=function(e,a){LSHelpers.debug("Wallgroup switchTab");var l=this;l.mainContainer.trigger("switch.tab.ls");if(!e)return;var t=this.walls[e];if(t.htmlLoaded){this.showTab(t,a);t.wallInstance&&t.wallInstance.refresh();t.wallInstance&&t.wallInstance.sendAnalytics()}else{if(!this.isSSR||t.wallContainer.find(".fpls-wallgroup-content").length<1){t.wallContainer.append($ls(this.wallContainerTpl(t)))}t.htmlLoaded=true;this.loadWall(t,(function(e){l.showTab(e,a)}))}};LSWallgroup_default.prototype.showTab=function(e,a){LSHelpers.debug("Wallgroup showTab");var l=this;for(var t in this.walls){if(this.walls[t].wallContainer)this.walls[t].wallContainer.hide()}e.wallContainer.show();l.setTabState(e.wall_id)};LSWallgroup_default.prototype.loadWall=function(e,a){LSHelpers.debug("Wallgroup loadWall");var l=this;var t=LSHelpers.getDefaultTheme(e.theme);if(t){LSHelpers.appendJs(LSConfig.assetURL+"/js/"+t+".js",(function(){LSHelpers.appendJs(LSHelpers.getAssetURL(e.theme)+"/js/"+e.theme+".js",(function(){setTimeout((function(){l.initWall(e,a)}),1)}))}))}else{LSHelpers.appendJs(LSHelpers.getAssetURL(e.theme)+"/js/"+e.theme+".js",(function(){setTimeout((function(){l.initWall(e,a)}),1)}))}};LSWallgroup_default.prototype.pushTab=function(e){LSHelpers.debug("Wallgroup pushTab");newState=window.location.href.split("#")[0]+"#"+e;window.history.pushState({},document.title+" | "+e,newState)};LSWallgroup_default.prototype.initWall=function(e,a){LSHelpers.debug("Wallgroup initWall");var l=this;if(!e.ls_watermark)e.ls_watermark=l.wallgroup.ls_watermark;if(!e.wallContainer)return;var t=e.wallContainer.find(".fpls-wallgroup-content").eq(0);if(l.isSSR){var s=e.wallContainer.find('[data-ssr-version="3"]');if(s.length){var n=l.mainContainer.width();LSHelpers.debug("MATCH WIDTH",n);var r=s.find(" > [ssr-breakpoint]").filter((function(){var e=$ls(this).attr("data-min");var a=$ls(this).attr("data-max");LSHelpers.debug("MIN",e);LSHelpers.debug("MAX",a);if(e&&a){return n>=e&&n<=a}else if(e){return n>=e}else if(a){return n<=a}}));if(r)t=r.find(".fpls-wallgroup-content").eq(0)}}if(e.theme.indexOf("@")>0){t.addClass("fpls-"+e.theme.replace(/@/g,""));t.addClass("fpls-"+e.theme.replace(/@/g,"-"))}else{t.addClass("fpls-"+e.theme)}var i=LSHelpers.getDefaultTheme(e.theme);if(i)t.addClass("fpls-"+i);var o=e.theme.replace(/-/g,"_").replace(/@/g,"_").replace("wall_","LSWall_");e.wallInstance=new window[o];e.wallInstance.wallgroup=this.wallgroup;e.wallInstance.init(t,this.options,e,l.mainContainer,l.rootContainer);if(!l.wallgroup.ls_watermark.hide_logo_on_layout){l.addCredits(l.wallgroup.ls_watermark.disable_logo_link_on_layout)}a&&a(e)};LSWallgroup_default.prototype.setTabState=function(e){if(!this.tabContainer)return;var a=this.tabContainer.find(".fpls-wallgroup-tab a");a.removeClass("current");a.filter('[data-target="'+e+'"]').addClass("current")};LSWallgroup_default.prototype.sendAnalytics=function(){var e=this;var a={event_type:"wallgroup-impression",brand:e.wallgroup.brand,wallgroup_id:e.wallgroup._id,wallgroup_name:e.wallgroup.title};if(e.wallgroup.ab_experience_id)a.ab_experience_id=e.wallgroup.ab_experience_id;livestory_analytics.pushEvent(a,{wallgroup:e.wallgroup})};LSWallgroup_default.prototype.addCredits=function(e){var a=this;if(typeof window.callPhantom=="undefined")return;if(a.mainContainer.find("."+livestory_analytics.getCreditsId("wall")).length<1){if(e){a.mainContainer.append('')}else{a.mainContainer.append('')}}};this["LSTemplates"]=this["LSTemplates"]||{};this["LSTemplates"]["wallgroup_default"]=this["LSTemplates"]["wallgroup_default"]||{};this["LSTemplates"]["wallgroup_default"]["tab"]=LSHbr.template({compiler:[8,">= 4.3.0"],main:function(e,a,l,t,s){return'
\n
\n
'},useData:true});this["LSTemplates"]["wallgroup_default"]["tabs"]=LSHbr.template({1:function(e,a,l,t,s){var n=e.propertyIsEnumerable,r=e.lambda,i=e.escapeExpression;return' \n"},compiler:[8,">= 4.3.0"],main:function(e,a,l,t,s){var n,r=e.propertyIsEnumerable;return'\n"},useData:true}); ;/* v1/js/wall-strip-default.js */ var LSWall_strip_default=function(){this.wallTpl=LSTemplates.wall_strip_default.wall};LSHelpers.extend(LSWall_strip_default,LSWall);LSWall_strip_default.prototype.loadTemplate=function(t){var e=this;var i=false;if(e.isSSR){e.container=e.wrapper.find(".fpls-strip-content");if(e.container.length>0)i=true}if(!i){e.container=$ls(e.wallTpl(t));e.wrapper.html("").append(e.container)}e.intContainer=e.container.find(".fpls-strip-container");e.stripwrapper=e.container.find(".fpls-strip-stripwrapper");e.strip=e.container.find(".fpls-strip-strip");e.nextButton=e.container.find(".fpls-strip-next");e.prevButton=e.container.find(".fpls-strip-prev");e.nextButton.on("click.ls",(function(){e.scrollNext()}));e.prevButton.on("click.ls",(function(){e.scrollPrev()}));e.checkTabStrip()};LSWall_strip_default.prototype.checkTabStrip=function(){var t=this;var e=9;$ls(document).on("keydown",(function(i){if(i.which==e&&t.boxes){t.checkStripBoxView()}}))};LSWall_strip_default.prototype.checkStripBoxView=function(){var t=this;var e=5;t.boxes.forEach((function(i){if(i.offset().left>t.intContainer.offset().left-e&&i.offset().left+i.outerWidth()0)){if(e.current_layout&&e.current_layout.height_mobile&&e.wrapper.outerWidth(true,true)<768){e.height=parseFloat(e.current_layout.height_mobile)}}if(!e.isSSR){e.strip.html("");e.left=e.intContainer.width()/2}else{e.strip.html("");e.left=e.intContainer.width()/2;e.isSSR=false}e.stripwrapper.height(e.height+e.margin);e.strip.height(e.height+e.margin);e.width=0;e.strip.css({position:"absolute",top:0,left:e.left});e.resolution=e.height;e.strip.addClass("fpls-transition-off");e.wrapper.off("touchstart.ls-strip").on("touchstart.ls-strip",(function(t){e.touchstart(t)}));e.wrapper.off("touchend.ls-strip").on("touchend.ls-strip",(function(t){e.touchend(t)}));e.wrapper.off("touchmove.ls-strip").on("touchmove.ls-strip",(function(t){e.touchmove(t)}));e.appendPosts(t);if(document.readyState==="complete"){e.initSocket()}else{$ls(window).on("load.ls",(function(){e.initSocket()}))}$ls(window).off("ls-delayed-resize.ls-strip").on("ls-delayed-resize.ls-strip",(function(){e.refresh()}))};LSWall_strip_default.prototype.refresh=function(){var t=this;t.navAppearance()};LSWall_strip_default.prototype.touchstart=function(t){var e=this;e.touchEnabled=true;var i=t.originalEvent.targetTouches[0].pageX;e.touchPosition=i;e.touchDelta=0;e.strip.addClass("fpls-dragging")};LSWall_strip_default.prototype.touchmove=function(t){var e=this;var i=t.originalEvent.targetTouches[0].pageX;e.touchDelta=i-e.touchPosition;if(Math.abs(e.touchDelta)>25){t.preventDefault();e.strip.css({transform:"translateX("+e.touchDelta/2+"px)"})}};LSWall_strip_default.prototype.touchend=function(t){var e=this;e.strip.removeClass("fpls-dragging");e.touchEnabled=false;if(Math.abs(e.touchDelta)>100){if(e.touchDelta<0){e.scrollNext()}else{e.scrollPrev()}}e.strip.css({transform:"translateX("+0+"px)"})};LSWall_strip_default.prototype.initSocket=function(){var t=this;if(!t.live)return;if(typeof WebSocket!=="undefined"){t.socket=new fpls_nes.Client(LSConfig.ioURL);t.socket.connect({},(function(){t.socket.subscribe("/ws/front/wall/"+t.wall.wall_id,(function(e){if(e)t.appendPost(e,true)}),(function(t){}))}))}};LSWall_strip_default.prototype.appendPosts=function(t){var e=this;if(!t.posts)return;e.count=t.count;t.posts.forEach((function(t){var i=e.appendPost(t);i&&i.removeClass("fpls-box--ssr")}));e.strip.find(".fpls-box--ssr").remove();e.checkPagination();$ls(window).trigger("ls-paginated")};LSWall_strip_default.prototype._loadStackRemove=function(){var t=this;LSWall.prototype._loadStackRemove.call(t);if(t._loadStack<1){setTimeout((function(){LSHelpers.debug("Strip posts appended");t.navAppearance()}),1)}};LSWall_strip_default.prototype.appendPost=function(t,e){var i=this;t.index=0+i.loaded;i.loaded++;var a=new i.LSBox_post;var r=true;if(i.current_layout.square)r=false;if(t._id)t.uniqueId="ssr"+i.wall.wall_id+"_"+t._id;a.init(t,i,i.resolution||i.height,r);var l=a.getHtml();l.data("id",t._id);l.data("featured",t.featured);i.boxes.push(l);l.css({opacity:0});if(i.margin)l.css({margin:i.margin/2});var n=false;if(i.isSSR&&i.strip.find("#"+t.uniqueId).length>0){n=true}if(i.isSSR&&i.skip==0)e=true;if(!i.isSSR||!n)i.appendElement(l,e);i._loadStackAdd();a.onLoad((function(t,e,r){i._loadStackRemove();if(r){l.hide();return}if(i.current_layout&&i.current_layout.square){a.setSquare();i.setSquare(l,t,e)}else{i.setProportional(l,t,e)}if(!n)i.setStripWidth(l);l.css({opacity:1})}));if(i.current_layout.destination_url){l.off("click.ls");l.on("click.ls",(function(){document.location.href=i.current_layout.destination_url}))}return l};LSWall_strip_default.prototype.appendElement=function(t,e){var i=this;if(e){i.strip.prepend(t)}else{i.strip.append(t)}i.navAppearance()};LSWall_strip_default.prototype.setStripWidth=function(t){var e=this;e.width=Math.ceil(e.width)+Math.ceil(t.outerWidth())+Math.ceil(e.margin)+.1;e.strip.width(e.width)};LSWall_strip_default.prototype.checkPagination=function(){var t=this;if(t.loaded>=t.count){t.loadNext=false}else{t.loadNext=true}};LSWall_strip_default.prototype.paginate=function(t){var e=this;if(e._paginatingPending){return false}e._paginatingPending=true;if(e.loadNext){e.skip+=e.current_options.limit;var i=e.getUrl(e.skip);e.showLoader();$ls.getJSON(i,(function(i){e.hideLoader();e.extractElements(i);e.appendPosts(i);e._paginatingPending=false;if(t)e.next(t)}))}else{e._paginatingPending=false}};LSWall_strip_default.prototype.prev=function(t){var e=this;var i;e.boxes.forEach((function(e){if(e.data("id")==t)i=e}));if(i)var a=i.prev(".fpls-box");if(a&&a.length)a.trigger("click.ls")};LSWall_strip_default.prototype.next=function(t){var e=this;var i;e.boxes.forEach((function(e){if(e.data("id")==t)i=e}));if(i)var a=i.next(".fpls-box");if(a&&a.length){a.trigger("click.ls")}else{e.paginate(t)}};LSWall_strip_default.prototype.prevAvailable=function(t){var e=this;var i;e.boxes.forEach((function(e){if(e.data("id")==t)i=e}));if(i)var a=i.prev(".fpls-box");if(a&&a.length){return true}else{return false}};LSWall_strip_default.prototype.nextAvailable=function(t){var e=this;var i;e.boxes.forEach((function(e){if(e.data("id")==t)i=e}));if(i)var a=i.next(".fpls-box");if(a&&a.length||e.loadedt.count-i){t.left=t.snap(e-t.height)}}t.strip.css({left:t.left});t.navAppearance();var a=t.getAnalyticsPayload("strip-next-click");livestory_analytics.pushEvent(a,{wall:t.wall,wallgroup:t.wallgroup})};LSWall_strip_default.prototype.scrollPrev=function(){var t=this;t.strip.removeClass("fpls-transition-off");t.left+=t.intContainer.width()-50;t.left=t.snap(t.left);if(t.left>0)t.left=0;t.strip.css({left:t.left});t.navAppearance();var e=t.getAnalyticsPayload("strip-prev-click");livestory_analytics.pushEvent(e,{wall:t.wall,wallgroup:t.wallgroup})};LSWall_strip_default.prototype.snap=function(t){var e=this;var i=[];var e=this;var a=0;e.boxes.forEach((function(t){if(!t.is(":visible"))return;var a=t.offset().left-e.margin/2-e.strip.offset().left;i.push(-a)}));if(i.length<2)return 0;for(var r=1;re.intContainer.width()*.25)s=0;var o=Math.abs(a-t)-s;var p=Math.abs(l-t)+s;if(p=0){t.prevButton.addClass("fpls-disabled")}else{t.prevButton.removeClass("fpls-disabled")}if(t.left>0&&t.loaded>=t.count||t.left<=e+1){t.nextButton.addClass("fpls-disabled")}else{t.nextButton.removeClass("fpls-disabled")}};this["LSTemplates"]=this["LSTemplates"]||{};this["LSTemplates"]["wall_strip_default"]=this["LSTemplates"]["wall_strip_default"]||{};this["LSTemplates"]["wall_strip_default"]["wall"]=LSHbr.template({compiler:[8,">= 4.3.0"],main:function(t,e,i,a,r){return'
\n
\n
\n \n
\n
\n
\n \n
\n
\n'},useData:true}); ;/* v1/js/wall-grid-default.js */ var LSWall_grid_default=function(){this.wallTpl=LSTemplates.wall_grid_default.wall;this.LSitpSettings={itemSelector:".fpls-box",hiddenStyle:{opacity:0},visibleStyle:{opacity:1},transitionDuration:"0",sortBy:"timestamp",sortAscending:false,percentPosition:true,isResizeBound:false,layoutMode:"LSpky",stamp:".fpls-stamp",stagger:30,LSpky:{columnWidth:".fpls-masonry-sizer"},getSortData:{timestamp:function(t){var e=$ls(t).attr("data-timestamp");var i=new Date(e);return parseFloat(i.valueOf())},alt:function(t){return $ls(t).attr("data-alt")}}}};LSHelpers.extend(LSWall_grid_default,LSWall);LSWall_grid_default.prototype.loadTemplate=function(){var t=this;var e={};e.static={load_more:"Load More"};if(t.wall.uiLabels&&t.wall.uiLabels.wallLoadMore){e.static.load_more=t.wall.uiLabels.wallLoadMore}if(t.isSSR){t.container=t.wrapper.find(".fpls-wall-content");t.container.find(".fpls-box").addClass("fpls-box--ssr")}else{t.container=$ls(t.wallTpl(e));t.wrapper.html("").append(t.container)}t.intContainer=t.container.find(".fpls-feed-container");t.loadMore=t.container.find(".fpls-feed-loadmore .fpls-button")};LSWall_grid_default.prototype.renderWall=function(t){LSWall.prototype.renderWall.call(this,t);var e=this;e.skip=0;e.loaded=0;e.boxes=[];e.columns=6;e.margin=20;if(e.current_layout){if(e.current_layout.columns)e.columns=e.current_layout.columns;if(e.current_layout.margin>0||e.current_layout.margin===0||e.current_layout.margin==="0")e.margin=e.current_layout.margin}if(e.live){e.LSitpSettings.sortBy="timestamp"}if(e.wall.options.sort_by=="accessibility_caption"){e.LSitpSettings.sortBy="alt";e.LSitpSettings.sortAscending=true}if(!e.isSSR){e.intContainer.html("")}e.enableLSItp((function(){e.appendPosts(t)}));e.loadMore.on("click.ls",(function(){e.paginate()}));if(document.readyState==="complete"){e.initSocket()}else{$ls(window).on("load.ls",(function(){e.initSocket()}))}};LSWall_grid_default.prototype.initSocket=function(){var t=this;if(!t.live)return;if(typeof WebSocket!=="undefined"){t.socket=new fpls_nes.Client(LSConfig.ioURL);t.socket.connect({},(function(){t.socket.subscribe("/ws/front/wall/"+t.wall.wall_id,(function(e){if(e)t.appendPost(e)}),(function(t){}))}))}};LSWall_grid_default.prototype.appendPosts=function(t){var e=this;if(!t.posts)return;e.count=t.count;var i=Math.min(t.posts.length,e.current_options.limit);var a=0;for(var n=0;n=t.count){t.loadMore.hide()}else{t.loadMore.show()}};LSWall_grid_default.prototype.paginate=function(t){var e=this;e.popup_id=t;if(e.loaded
');e.intContainer.append(e.sizer);e.setSizerWidth();LSHelpers.appendJs(LSConfig.assetURL+"/js/grid.js",(function(){e.LSitpInstance=new LSItp(e.intContainer[0],e.LSitpSettings);t();$ls(window).on("ls-delayed-resize",(function(){e.refresh()}))}))};LSWall_grid_default.prototype.prev=function(t){var e=this;var i;e.boxes.forEach((function(e,a){if(e.data("id")==t)i=a}));if(typeof i!=="undefined"&&i>0)var a=e.boxes[i-1];if(a&&a.length)a.trigger("click.ls")};LSWall_grid_default.prototype.next=function(t){var e=this;var i;e.boxes.forEach((function(e,a){if(e.data("id")==t)i=a}));if(typeof i!=="undefined"&&i0)var a=e.boxes[i-1];if(a&&a.length){return true}else{return false}};LSWall_grid_default.prototype.nextAvailable=function(t){var e=this;var i;e.boxes.forEach((function(e,a){if(e.data("id")==t)i=a}));if(typeof i!=="undefined"&&i0){var e=100/t.columns}else{var e=100;if(t.intContainer.outerWidth(true,true)>1024){e=100/t.columns}else if(t.intContainer.outerWidth(true,true)>768){e=33.33}else if(t.intContainer.outerWidth(true,true)>480){e=50}else{e=100}if(t.current_layout&&t.current_layout.columns_mobile&&t.intContainer.outerWidth(true,true)<768){e=100/t.current_layout.columns_mobile}}t.sizer.width(e+"%");t.sizer.data("width",e);if(e<=50){t.sizer.data("featured-width",e*2)}else{t.sizer.data("featured-width",e)}t.boxes.forEach((function(e){t.setBoxStyle(e)}))};LSWall_grid_default.prototype.optimalResolution=function(t){var e=this;if(!e.sizer)return 1e3;var i=e.sizer.outerWidth()*1.25;if(e.current_layout&&e.current_layout.featured&&t.featured){i=i*2}return i};this["LSTemplates"]=this["LSTemplates"]||{};this["LSTemplates"]["wall_grid_default"]=this["LSTemplates"]["wall_grid_default"]||{};this["LSTemplates"]["wall_grid_default"]["wall"]=LSHbr.template({compiler:[8,">= 4.3.0"],main:function(t,e,i,a,n){var r,l=t.propertyIsEnumerable;return'
\n
\n
\n
\n \n
\n
\n"},useData:true}); ;/* v1/js/wall-freegrid2-default.js */ LSGrid=function(t,e,a){this.container=t;this.mainContainer=a;var i={zoom:1,grid_spacing:10,grid_enabled:false,guides_enabled:true,guides_proximity:200,snap_proximity:200,snap_tolerance:5,selectionWrapper:false,contentClass:".content",elementClass:".element",carouselClass:".carousel",carouseledClass:".carouseled",groupedClass:".grouped",groupClass:".group",compareClass:".compare",comparedClass:".compared",guideClassX:".guide-x",guideClassY:".guide-y",gridClass:".grid",selectionOverlay:".selection",selectedClass:".selected",debugClass:".info-coordinates",enabled:true,selectionEnabled:true};this.options=jQuery.extend({},i,e);this.timers={}};LSGrid.prototype.disable=function(){var t=this;t.options.enabled=false;t.init()};LSGrid.prototype.enable=function(){var t=this;t.options.enabled=true;t.init()};LSGrid.prototype.setCanvasSize=function(t,e){var a=this;if(t)a.container.attr("data-width",Math.round(t/a.options.zoom));if(e)this.container.attr("data-height",Math.round(e/a.options.zoom));a._scaleCanvas();a._trigger("change")};LSGrid.prototype.setZoom=function(t){var e=this;this.options.zoom=t;e.container.width(e.container.attr("data-width")*e.options.zoom);e.container.height(e.container.attr("data-height")*e.options.zoom);e._scaleCanvas()};LSGrid.prototype.init=function(){var t=this;t.guide_x=t.container.find(t.options.guideClassX);t.guide_y=t.container.find(t.options.guideClassY);t.grid=t.container.find(t.options.gridClass);t.selectionWrapper=t.container;if(t.options.selectionWrapper)t.selectionWrapper=jQuery(t.options.selectionWrapper);t.container.find(t.options.elementClass).not(t.options.groupedClass).not(t.options.carouseledClass).not(t.options.comparedClass).each((function(){if(t.options.enabled){t._initElement(jQuery(this),false)}else{t._initElementOff(jQuery(this))}}));t.container.find(t.options.groupClass).not(t.options.carouseledClass).not(t.options.comparedClass).each((function(){if(t.options.enabled){t._initElement(jQuery(this),true)}else{t._initElementOff(jQuery(this))}}));t.container.find(t.options.carouselClass).not(t.options.carouseledClass).each((function(){if(t.options.enabled){t._initElement(jQuery(this),false)}else{t._initElementOff(jQuery(this))}}));t.container.find(t.options.compareClass).not(t.options.comparedClass).each((function(){if(t.options.enabled){t._initElement(jQuery(this),false)}else{t._initElementOff(jQuery(this))}}));t._scaleCanvas();if(t.options.enabled){t._enableSelection();t._enableKeys();t._initCanvas()}else{t._disableSelection();t._disableKeys()}t.container.data("lsgrid-instance",t)};LSGrid.prototype.enableGrid=function(){var t=this;this.options.grid_enabled=true};LSGrid.prototype.disableGrid=function(){var t=this;this.options.grid_enabled=false};LSGrid.prototype.setGrid=function(t){if(t>0){this.options.grid_spacing=parseFloat(t)}if(t==0){this.options.grid_spacing=parseFloat(t)}};LSGrid.prototype.findElementByCoordinates=function(t,e){var a=this;var i=false;a.container.find(a.options.elementClass).each((function(){var a=jQuery(this);if(a.position().left");o.addClass(i.options.elementClass);o.css(e);o.appendTo(i.container);i._initElement(o);i._updateElementData(e,o);i.bringToFront(o);i._enableSelection();a&&a(o)};LSGrid.prototype._extendHeight=function(t){var e=this;var a=t.offset().top-e.container.offset().top;var i=e.container.height();a+=t.outerHeight();i=Math.max(i,a);e.container.height(i);e.container.attr("data-height",i/e.options.zoom);e._trigger("change")};LSGrid.prototype._scaleCanvas=function(){var t=this;t.scalingDelta=0;var e=1*t.container.attr("data-width");var a=1*t.container.attr("data-height");t.container.width(e*t.options.zoom);t.container.find(t.options.elementClass).not(t.options.carouseledClass).not(t.options.groupedClass).not(t.options.comparedClass).each((function(){t._positionElement(jQuery(this),0);t._scaleContent(jQuery(this))}));t.container.find(t.options.groupClass).not(t.options.carouseledClass).not(t.options.comparedClass).each((function(){t._positionElement(jQuery(this),0);t._scaleContent(jQuery(this));jQuery(this).find(t.options.groupedClass).each((function(){t._positionElement(jQuery(this),1);t._scaleContent(jQuery(this))}))}));t.container.find(t.options.carouselClass).each((function(){t._positionElement(jQuery(this),0);t._scaleContent(jQuery(this));t._scaleCarousel(jQuery(this))}));t.container.find(t.options.compareClass).each((function(){t._positionElement(jQuery(this),0);t._scaleContent(jQuery(this));t._scaleCompare(jQuery(this))}));if(t.options.grid_enabled){t.showGrid()}t._adjustLinkedContent();var i=t.container.attr("data-height-source");if(i){var o=t.container.find("#_"+i);if(o.hasClass("fpls-textscaling-off")){var s=o.attr("data-height")*t.options.zoom;var r=o.outerHeight();var n=o.find(t.options.contentClass).outerHeight();var l=Math.max(r,n)-s;if(l>0){a+=l/t.options.zoom}}}t.container.height(a*t.options.zoom)};LSGrid.prototype._positionElement=function(t,e){var a=this;t.css({width:t.attr("data-width")*a.options.zoom,zIndex:parseFloat(t.attr("data-zindex")||1)});if(!t.attr("data-min-height")){t.css({height:t.attr("data-height")*a.options.zoom})}else{t.css({height:"auto",minHeight:t.attr("data-min-height")*a.options.zoom})}if(t.attr("data-textscaling-off")){t.css({height:"auto"})}if(e==0&&t.attr("data-sticky-start")){a._sticky(t)}if(t.attr("data-stuck")){t.css({position:"fixed",top:t.attr("data-stuck"),left:t.attr("data-left")*a.options.zoom+a.container.offset().left})}else if(t.attr("data-new-top")){t.css({position:"absolute",top:t.attr("data-new-top")*a.options.zoom,left:t.attr("data-left")*a.options.zoom})}else{t.css({position:"absolute",top:t.attr("data-top")*a.options.zoom,left:t.attr("data-left")*a.options.zoom})}if(parseFloat(t.attr("data-opacity"))>=0)t.find(a.options.contentClass).css({opacity:t.attr("data-opacity")})};LSGrid.prototype._sticky=function(t){var e=this;if(!t.attr("data-sticky-start"))return;jQuery(window).off("scroll.lsgrid"+t.attr("id")).on("scroll.lsgrid"+t.attr("id"),(function(a){var i=parseFloat(t.attr("data-sticky-start"))*e.options.zoom;var o=parseFloat(t.attr("data-sticky-end"))*e.options.zoom;if(t.attr("data-sticky-scaling-off")){i=parseFloat(t.attr("data-sticky-start"))}var s=parseFloat(t.attr("data-top"))*e.options.zoom;var r=parseFloat(t.attr("data-height"))*e.options.zoom;var n=parseFloat(t.attr("data-left"))*e.options.zoom;var l=e.container.offset().top;var d=e.mainContainer.offset().top;var c=window.innerHeight;var f=i;var p=jQuery(window).scrollTop()-l;if(t.attr("data-sticky-bottom")){i=c-i}else{i=Math.min(i,s+l)}o=Math.min(o,e.mainContainer.height()-r-i-l+d);if(s-p<=i&&p=o){var u=o+i;t.attr("data-new-top",u/e.options.zoom);t.removeAttr("data-stuck");t.css({position:"absolute",top:u,bottom:"auto",left:n});e.container.css({zIndex:10})}else{t.removeAttr("data-new-top");t.removeAttr("data-stuck");t.css({position:"absolute",top:s,bottom:"auto",left:n});e.container.css({zIndex:1})}})).trigger("scroll.lsgrid"+t.attr("id"))};LSGrid.prototype._scaleContent=function(t){var e=this;var a=t.find(e.options.contentClass).eq(0);if(!t.attr("data-textscaling-off")){a.css({transform:"scale("+e.options.zoom*1.001+")",width:t.attr("data-width")});if(t.attr("data-min-height")){a.css({height:"auto",minHeight:t.attr("data-min-height")+"px"})}else{a.css({height:t.attr("data-height")})}}else{a.css({transform:"scale(1)",width:"auto",height:"auto",minHeight:t.attr("data-height")*e.options.zoom});return}};LSGrid.prototype._adjustLinkedContent=function(){var t=this;t.container.find("[data-textscaling-off]").each((function(){var e=jQuery(this);var a=e.attr("data-height")*t.options.zoom;var i=e.outerHeight();var o=e.find(t.options.contentClass).outerHeight();var s=Math.max(i,o)-a;var r=e.attr("id").replace("_","");var n=t.container.find('[data-height-source="'+r+'"]');n.each((function(){var e=jQuery(this);var a=1*e.attr("data-height");var i=a*t.options.zoom;if(s<0)s=0;e.css("height",i+s);if(e.is('[data-textscaling-off="true"]')){e.find(t.options.contentClass).eq(0).css({height:a*t.options.zoom+s})}else{e.find(t.options.contentClass).eq(0).css({height:a+s/t.options.zoom})}}));var l=t.container.find('[data-top-source="'+r+'"]');l.each((function(){var e=jQuery(this);var a=e.attr("data-top")*t.options.zoom;e.css("top",a+s)}))}))};LSGrid.prototype._initCanvas=function(){var t=this;t.container.resizable({start:function(e,a){t.options.selectionEnabled=false},resize:function(e,a){if(t.options.grid_enabled){var i=t.options.grid_spacing*t.options.zoom;a.size.width=Math.round(a.size.width/i)*i;a.size.height=Math.round(a.size.height/i)*i}},stop:function(e,a){t.setCanvasSize(a.size.width,a.size.height);setTimeout((function(){t.options.selectionEnabled=true}),1)}})};LSGrid.prototype._initElement=function(t,e){var a=this;t.find(a.options.debugClass).remove();var i=jQuery("
");i.appendTo(t).addClass(a.options.debugClass.substring(1));t.resizable({aspectRatio:e,resize:function(o,s){var r=a._snapResize({width:s.size.width,height:s.size.height,left:s.position.left,top:s.position.top},t,e);s.size.width=r.width;s.size.height=r.height;a._updateElementData(r,t);i.html("w: "+r.width+", h: "+r.height)},stop:function(e,i){var o=i.size.width/i.originalSize.width;if(t.is(a.options.carouselClass))a._scaleCarousel(t,i.size.width);if(t.is(a.options.groupClass))a._scaleGroup(t,o);if(t.is(a.options.compareClass))a._scaleCompare(t,i.size.width);a._hideGuide();a._trigger("change")}}).draggable({distance:3,start:function(e,i){t.is(a.options.selectedClass)&&a.container.find(a.options.selectedClass).not(t).each((function(){jQuery(this).data("orignalPosition",jQuery(this).position())}))},drag:function(e,o){var s="x";if(Math.abs(o.position.top-o.originalPosition.top)>Math.abs(o.position.left-o.originalPosition.left))s="y";var r=a._snapDrag({left:o.position.left,top:o.position.top},t);o.position.left=r.left;o.position.top=r.top;if(e.shiftKey){if(s=="x"){o.position.top=o.originalPosition.top}else{o.position.left=o.originalPosition.left}}t.is(a.options.selectedClass)&&a.container.find(a.options.selectedClass).not(t).each((function(){var t=jQuery(this);var e=t.data("orignalPosition");var i={top:e.top+o.position.top-o.originalPosition.top,left:e.left+o.position.left-o.originalPosition.left};t.css(i);a._updateElementData(i,t)}));a._updateElementData(r,t);i.html("x: "+o.position.left+", y: "+o.position.top)},stop:function(t,e){a._hideGuide();a._trigger("change")}});if(t.has(a.options.groupedClass)||t.has(a.options.carouseledClass)){var o=t.find(a.options.groupedClass+", "+a.options.carouseledClass);o.each((function(){a._initElementOff(jQuery(this))}))}};LSGrid.prototype._initElementOff=function(t){var e=this;t.find(e.options.debugClass).remove();t.hasClass("ui-resizable")&&t.resizable("destroy");t.hasClass("ui-draggable")&&t.draggable("destroy")};LSGrid.prototype._scaleCarousel=function(t){var e=this;var a=0;var i=0;var o=0;if(t.attr("data-margin"))a=parseInt(t.attr("data-margin"),10);if(t.attr("data-padding-left"))i=parseInt(t.attr("data-padding-left"),10);if(t.attr("data-padding-right"))o=parseInt(t.attr("data-padding-right"),10);var s=(t.attr("data-width")-i-o-a*(t.attr("data-columns")-1))/t.attr("data-columns");var r=0;t.find(e.options.carouseledClass).each((function(){var i=jQuery(this);i.attr("data-top",0);i.attr("data-left",r);r+=s+a;if(i.is(e.options.groupClass)){var o=i.attr("data-width");var n=i.attr("data-height");var l=s/o;i.attr("data-width",s);i.attr("data-height",n*l);e._positionElement(i,1);e._scaleContent(i);e._scaleGroup(i,l)}else{var d=t.attr("data-height");i.attr("data-width",s);i.attr("data-height",d);e._positionElement(i,1);e._scaleContent(i)}}));e._carouselDots(t);e._carouselArrows(t)};LSGrid.prototype._carouselDots=function(t){var e=this;var a=t.find(".fpls-dots-container");if(a.length<1)return;var i=a.attr("data-offset-x");var o;var s=a.attr("data-offset-y");var r=s*e.options.zoom;var n=a.attr("data-color");if(typeof i!=="undefined"&&i!==false){if(i>=1){o="calc(50% + "+i*e.options.zoom+"px)"}else if(i<=-1){o="calc(50% - "+i.replace("-","")*e.options.zoom+"px)"}a.css({left:o})}if(typeof s!=="undefined"&&s!==false){a.css({bottom:r,"z-index":"6"})}if(typeof n!=="undefined"&&n!==false){a[0].style.setProperty("--dotsColor",n)}};LSGrid.prototype._carouselArrows=function(t){var e=this;var a=t.find(".fpls-element-prev");var i=a.attr("data-left");var o=t.find(".fpls-element-next");var s=o.attr("data-right");a.css({left:a.attr("data-left")*e.options.zoom,"margin-top":a.attr("data-top")*e.options.zoom});if(typeof i!=="undefined"&&i!==false){a.css({transform:"translate(-50%, -50%)"})}o.css({right:o.attr("data-right")*e.options.zoom,"margin-top":o.attr("data-top")*e.options.zoom});if(typeof s!=="undefined"&&s!==false){o.css({transform:"translate(50%, -50%)"})}};LSGrid.prototype._scaleGroup=function(t,e){var a=this;t.find(a.options.groupedClass).each((function(){var t=jQuery(this);var i=t.attr("data-left")*e;var o=t.attr("data-top")*e;var s=t.attr("data-width")*e;var r=t.attr("data-height")*e;t.attr("data-left",i);t.attr("data-top",o);t.attr("data-width",s);t.attr("data-height",r);a._positionElement(t,1);a._scaleContent(t)}))};LSGrid.prototype._scaleCompare=function(t){var e=this;var a=t.attr("data-width");t.find(e.options.comparedClass).each((function(){var i=jQuery(this);i.attr("data-top",0);i.attr("data-left",0);if(i.is(e.options.groupClass)){var o=i.attr("data-width");var s=i.attr("data-height");var r=a/o;i.attr("data-width",a);i.attr("data-height",s*r);e._positionElement(i,1);e._scaleContent(i);e._scaleGroup(i,r)}else{var n=t.attr("data-height");i.attr("data-width",a);i.attr("data-height",n);e._positionElement(i,1);e._scaleContent(i,1)}}))};LSGrid.prototype._updateElementData=function(t,e){var a=this;if(t.left!==undefined)e.attr("data-left",Math.round(t.left/a.options.zoom));if(t.top!==undefined)e.attr("data-top",Math.round(t.top/a.options.zoom));if(t.width!==undefined)e.attr("data-width",Math.round(t.width/a.options.zoom));if(t.height!==undefined)e.attr("data-height",Math.round(t.height/a.options.zoom));a._extendHeight(e);if(!e.is(a.options.groupClass)){a._scaleContent(e)}};LSGrid.prototype._trigger=function(t,e){var a=this;clearTimeout(a.timers[t]);if(!e)e=a.container;a.timers[t]=setTimeout((function(){e.trigger(t)}),100)};LSGrid.prototype._getSnaps=function(t){var e=this;var a=e.options.snap_proximity*e.options.zoom;var i=[0,e.container.width()/2,e.container.width()];var o=[0,e.container.height()/2,e.container.height()];e.container.find(e.options.elementClass+", "+e.options.groupClass).not(e.options.selectedClass).each((function(){if(jQuery(this).is(t)||t.has(this).length>0){return}var s=e._distance(jQuery(this),t);var r=jQuery(this).offset().left-e.container.offset().left;var n=r+jQuery(this).width()/2;var l=r+jQuery(this).width();if(s.ye.left&&t.position().left+t.outerWidth()e.top&&t.position().top+t.outerHeight()8)s=8;if(s<4)s=4;i.setLineDash([s,o-s*2+1,s-1]);i.stroke();e.grid&&e.grid.css({"background-image":"url("+a.toDataURL("image/png")+")","background-size":o/2});e.grid.show()};LSGrid.prototype.hideGrid=function(){var t=this;t.grid.hide()};LSGrid.prototype._getSelectable=function(){var t=this;var e=t.options.elementClass;e+=", "+t.options.groupClass;e+=", "+t.options.carouselClass;e+=", "+t.options.compareClass;return t.container.find(e).not(t.options.carouseledClass).not(t.options.groupedClass).not(t.options.comparedClass)};LSGrid.prototype._enableSelection=function(){var t=this;t._select={status:false,coord1:{x:0,y:0},coord2:{x:0,y:0}};t._getSelectable().off("mousedown.selection").on("mousedown.selection",(function(e){if(!t.options.selectionEnabled)return;t._elMousedown=e;e.stopPropagation()}));t._getSelectable().off("mouseup.selection").on("mouseup.selection",(function(e){var a=jQuery(this);if(!t._elMousedown)return;if(Math.abs(e.pageX-t._elMousedown.pageX)>3||Math.abs(e.pageY-t._elMousedown.pageY)>3)return;if(!e.shiftKey){t.container.find(t.options.selectedClass).removeClass(t.options.selectedClass.substring(1))}a.addClass(t.options.selectedClass.substring(1));t._trigger("selection");t._elMouedown=false}));t.selectionWrapper.off("mousedown.selection").on("mousedown.selection",(function(e){if(!t.options.selectionEnabled)return;if(e.target!=e.currentTarget&&jQuery(e.target).parents(e.currentTarget).length<1){return true}t._select.status=true;t.container.find(t.options.selectionOverlay).show();t._select.coord1={x:e.pageX-t.container.offset().left,y:e.pageY-t.container.offset().top};t._select.coord2={x:e.pageX-t.container.offset().left,y:e.pageY-t.container.offset().top};var a=t._normalizeSelection(t._select.coord1,t._select.coord2);t._setSelectionBox(a)}));t.selectionWrapper.off("mousemove.selection").on("mousemove.selection",(function(e){if(!t.options.selectionEnabled)return;if(t._select.status==true){e.preventDefault();t._select.coord2={x:e.pageX-t.container.offset().left,y:e.pageY-t.container.offset().top};var a=t._normalizeSelection(t._select.coord1,t._select.coord2);t._setSelectionBox(a)}}));jQuery("body").off("mouseup.selection").on("mouseup.selection",(function(e){if(!t._select.status)return true;t._select.status=false;t.container.find(t.options.selectionOverlay).hide();var a=t._normalizeSelection(t._select.coord1,t._select.coord2);t.container.trigger("selection",a);t._getSelectable().each((function(){var e=jQuery(this);if(t._inRange(e,a)){e.addClass(t.options.selectedClass.substring(1))}else{e.removeClass(t.options.selectedClass.substring(1))}}));t._trigger("selection");t.container.find(t.options.selectionOverlay).hide()}));jQuery("body").off("mouseout.selection").on("mouseout.selection",(function(e){if(e.relatedTarget==jQuery("body")[0]||jQuery.contains(jQuery("body")[0],e.relatedTarget)){}else{t._select.status=false;t.container.find(t.options.selectionOverlay).hide()}}))};LSGrid.prototype._disableSelection=function(){var t=this;t._getSelectable().off("mousedown.selection").off("mouseup.selection");t.container.off("mousedown.selection");t.container.off("mousemove.selection");jQuery("body").off("mouseup.selection");jQuery("body").off("mouseout.selection")};LSGrid.prototype._setSelectionBox=function(t){var e=this;e.container.find(e.options.selectionOverlay).css({left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top})};LSGrid.prototype._group=function(t,e){var a=this;var i=999999999;var o=999999999;var s=0;var r=0;var n=true;var l=jQuery("
");l.addClass(a.options.groupClass.substring(1));l.insertBefore(t.eq(0));t.addClass(a.options.groupedClass.substring(1)).detach().appendTo(l);t.each((function(){var t=jQuery(this);i=Math.min(i,parseFloat(t.attr("data-left")));o=Math.min(o,parseFloat(t.attr("data-top")));s=Math.max(s,parseFloat(t.attr("data-left"))+parseFloat(t.attr("data-width")));r=Math.max(r,parseFloat(t.attr("data-top"))+parseFloat(t.attr("data-height")));n=n&&t.hasClass(a.options.selectedClass.substring(1))}));l.attr("data-left",i);l.attr("data-top",o);l.attr("data-width",s-i);l.attr("data-height",r-o);t.each((function(){var t=jQuery(this);var e=parseFloat(t.attr("data-left"))-i;var a=parseFloat(t.attr("data-top"))-o;t.attr("data-left",e);t.attr("data-top",a)}));if(n){l.addClass(a.options.selectedClass.substring(1));t.removeClass(a.options.selectedClass.substring(1))}a._initElement(l,true);a._scaleCanvas();a._enableSelection();a.bringToFront(l)};LSGrid.prototype._ungroup=function(t){var e=this;if(!t.hasClass(e.options.groupClass.substring(1)))return;var a=t.find(e.options.groupedClass);a.each((function(){var a=jQuery(this);var i=parseFloat(a.attr("data-left"));var o=parseFloat(t.attr("data-left"));a.attr("data-left",i+o);var s=parseFloat(a.attr("data-top"));var r=parseFloat(t.attr("data-top"));a.attr("data-top",s+r);a.detach().removeClass(e.options.groupedClass.substring(1)).insertAfter(t);if(t.hasClass(e.options.selectedClass.substring(1)))a.addClass(e.options.selectedClass.substring(1));e._initElement(a)}));t.remove();e._scaleCanvas();e._enableSelection()};LSGrid.prototype._enableKeys=function(){var t=this;jQuery("body").off("keydown.grid").on("keydown.grid",(function(e){var a=0;var i=0;var o=1/t.options.zoom;if(t.options.grid_enabled){o=t.options.grid_spacing*t.options.zoom}if(e.shiftKey)o*=10;if(jQuery(e.target).is("input,select,textarea"))return;switch(e.which){case 37:a=-o;break;case 38:i=-o;break;case 39:a=o;break;case 40:i=o;break;default:return}if(t.container.find(t.options.selectedClass).length>0)e.preventDefault();t.container.find(t.options.selectedClass).each((function(){var e=jQuery(this);var o={left:e.position().left+a,top:e.position().top+i};e.css(o);t._updateElementData(o,e)}))}))};LSGrid.prototype._disableKeys=function(){var t=this;jQuery("body").off("keydown.grid")};LSGrid.prototype._size=function(t){var e=this;var a={left:t.position().left,right:t.position().left+t.outerWidth(),centerx:t.position().left+t.outerWidth()/2,top:t.position().top,bottom:t.position().top+t.outerHeight(),centery:t.position().top+t.outerHeight()/2,width:t.outerWidth(),height:t.outerHeight(),halfwidth:t.outerWidth()/2,halfheight:t.outerHeight()/2};return a};LSGrid.prototype._getMaxZIndex=function(){var t=this;var e=t.container.find(t.options.elementClass+", "+t.options.groupClass+", "+t.options.carouselClass);var a=1;e.each((function(){var t=parseFloat(jQuery(this).attr("data-zindex")||1);if(t>a)a=t}));return a};LSGrid.prototype._getMinZIndex=function(){var t=this;var e=t.container.find(t.options.elementClass+", "+t.options.groupClass+", "+t.options.carouselClass);var a=9999999999;e.each((function(){var t=parseFloat(jQuery(this).attr("data-zindex")||1);if(t .fpls-wall-content")}else{e.container=$ls(e.wallTpl(t));e.wrapper.html("").append(e.container)}};LSWall_freegrid2_default.prototype.renderWall=function(t){var e=this;LSWall.prototype.renderWall.call(this,t);e.grid=e.container.find("> .fpls-wall-grid");e.ls_grids=[];$ls('style[data-style-id="'+e.wall.wall_id+'"]').attr("data-style-remove",1);var a={root:null,rootMargin:"10px 0px",threshold:0};e.imgObserver=LSHelpers.createObserver((function(t){var e=$ls(t.target);var a=e.attr("lazy-srcset");e.removeAttr("lazy-srcset");e.attr("srcset",a);var i=e.attr("lazy-src");if(i){e.removeAttr("lazy-src");e.attr("src",i)}}),a);e.videoObserver=LSHelpers.createObserver((function(t){var e=$ls(t.target);var a=e.attr("lazy-poster");e.removeAttr("lazy-poster");e.attr("poster",a);var i=e.find("source");var o=i.attr("lazy-src");i.removeAttr("lazy-src");i.attr("src",o);e[0].load()}),a);e.appended=[];e.boxes=[];if(e.current_sections&&e.current_sections.length>0){if(!e.isSSR)e.grid.html("");e.injectFontFaces(e.cssBrekapointPrefix+" .fpls-element .fpls-box",e.wall.font_heading,e.wall.font_body);if(e.current_layout.textstyles)LSHelpers.injectTextstyles(e,e.cssBrekapointPrefix+" .fpls-element .fpls-box",e.current_layout.textstyles,e.current_layout.effects);if(e.current_layout.overlays)e.injectOverlays(e.cssBrekapointPrefix+" .fpls-element .fpls-box",e.current_layout.overlays,e.current_layout.effects);if(e.current_layout.effects)e.injectEffects(e.cssBrekapointPrefix+" .fpls-element .fpls-box",e.current_layout.effects);var i=[];var o=[];e.grid.find(' > .fpls-section, > [id^="ls-section-"]').each((function(){i.push($ls(this).attr("id").replace("ls-section-",""))}));for(var s=0;s');n.appendTo(e.grid)}e.renderLayout(e.grid,n,e.current_layout)}$ls(window).on("ls-delayed-resize",(function(){e.refresh()}));$ls(window).on("ls-css-change",(function(){$ls('style[data-style-id="'+e.wall.wall_id+'"][data-style-remove]').remove();e.refresh()}));setTimeout((function(){e.detectHash.call(e)}),500)};LSWall_freegrid2_default.prototype.renderSection=function(t,e){var a=this;if(a.isSSR){var i=a.wrapper.find("#ls-section-"+t._id)}else{var i=$ls('
');if(t.css_class)i.addClass(t.css_class);i.appendTo(a.grid)}var o=i.find(".fpls-grid");var s=i.find(".fpls-grid--outer");if(t.layout&&t.layout.maxwidth){var r="";if(parseFloat(t.layout.maxwidth).toString()==t.layout.maxwidth.toString())r="px";s.css({"max-width":t.layout.maxwidth+r,"margin-left":"auto","margin-right":"auto"})}if(t.wall_id){var n;if(o.find("#ls-"+t.wall_id).length<1){n=$ls("
");o.append(n)}else{n=o.find("#ls-"+t.wall_id)}n.attr("id","ls-"+t.wall_id);n.attr("data-id",t.wall_id);n.attr("data-store",a.mainContainer.attr("data-store"));n.attr("data-lang",a.mainContainer.attr("data-lang"));var l;if(a.wall.walls)l=a.wall.walls.find((function(e){return e.wall_id==t.wall_id}));if(l)l.ls_watermark=a.wall.ls_watermark;new LiveStory("ls-"+t.wall_id,{type:"wall",parent_wall:a.wall,rootContainer:a.mainContainer,json:l})}else{a.renderLayout(i,o,t.layout,t)}};LSWall_freegrid2_default.prototype.renderLayout=function(t,e,a,i){var o=this;var s="";var r="";if(i){s=i._id;r=" .fpls-section-"+s}e.attr("data-width",a.width||o.current_layout.width);e.attr("data-height",a.height);if(a.height_source){var n=o.getItemId(null,a.height_source,s);e.attr("data-height-source",n)}e.width(o.grid.width());var l=Object.assign({},o.backgroundObj(o.wall.layout&&o.wall.layout.background),o.backgroundObj(a.background));o.setBackground(t,l);var d=new LSGrid(e,{enabled:false,contentClass:".fpls-content",elementClass:".fpls-element",carouselClass:".fpls-carousel",carouseledClass:".fpls-carousel-item",groupClass:".fpls-group",groupedClass:".fpls-grouped",compareClass:".fpls-compare",comparedClass:".fpls-compare__item"},o.mainContainer);if(i){o.injectFontFaces(o.cssBrekapointPrefix+r+" .fpls-element .fpls-box",i.font_heading,i.font_body);if(i.customcss)LSHelpers.injectInlineCss(i.customcss,o.cssBrekapointPrefix+r,o.container,o.wall.theme)}if(a.textstyles)LSHelpers.injectTextstyles(o,o.cssBrekapointPrefix+r+" .fpls-element .fpls-box",a.textstyles,a.effects);if(a.overlays)o.injectOverlays(o.cssBrekapointPrefix+r+" .fpls-element .fpls-box",a.overlays,a.effects);if(a.effects)o.injectEffects(o.cssBrekapointPrefix+r+" .fpls-element .fpls-box",a.effects);var c={ls_grid:d,layout:a,gridElement:e,containerElement:t};if(s)c.section_id=s;o.ls_grids.push(c);o.setZoom();o.appendNodes(a,d);var f="."+o.wall.wall_id+s+(o.current_breakpoint||"default");$ls(window).off("ls-delayed-scroll"+f).on("ls-delayed-scroll"+f,(function(){o.appendNodes(a,d)}))};LSWall_freegrid2_default.prototype.appendNodes=function(t,e){var a=this;var i=e.container.offset().top;if(t.grid)t.grid.forEach((function(t){function o(t){t.cssclass_tree=t.cssclass_tree||[];if(t.cssclass&&t.cssclass_tree)t.cssclass_tree.push(t.cssclass);if(t.subitems){t.subitems.forEach((function(e){if(t.cssclass_tree){e.cssclass_tree=e.cssclass_tree||[];e.cssclass_tree=e.cssclass_tree.concat(t.cssclass_tree)}o(e)}))}}o(t);var s=a.getItemId(t);var r=false;if(a.appended.indexOf(s)>=0)r=true;if(r)return;if(i+t.top*e.options.zoom>$ls(window).scrollTop()+$ls(window).outerHeight()*2.5&&t.type!=="block")return;if(t.node=="group"){a.appendGroup(t,e.container,false)}else{a.appendNode(t,e.container,false)}a.appended.push(s)}));e.init();var o=a.container.find("a[href],[data-href]");livestory_sfcc.processUrls(o);LSHelpers.initObserver(a.container.find("img[lazy-srcset],img[lazy-src]"),a.imgObserver);LSHelpers.initObserver(a.container.find(".fpls-carousel-item").find("img[lazy-srcset],img[lazy-src]"),a.imgObserver);LSHelpers.initObserver(a.container.find("video[lazy-poster]"),a.videoObserver)};LSWall_freegrid2_default.prototype.parseNode=function(t,e){var a=this;switch(t.type){case"photo":case"video":case"text":case"mixed":if(!a.posts[t.id])return;var i=$ls.extend({},t,a.posts[t.id]);i.default_image_url=t.img;i._id=t._id;var o=new a.LSBox_post;var s=a.optimalResolution(i,e);o.init(i,a,s);break;case"asset":if(!a.products[t.id])return;var i=$ls.extend({},t,a.products[t.id]);var o=new a.LSBox_asset;var s=a.optimalResolution(i,e);o.init(i,a,s);break;case"block":var o=new a.LSBox_block;o.init(t,a);break;case"embed":var o=new a.LSBox_embed;var s=a.optimalResolution(t,e);o.init(t,a,s);break;case"icon":var o=new a.LSBox_icon;o.init(t,a);break}if(!o)return;var r=o.getHtml();r.data("id",t.id);r.data("type",t.type);r.data("popup_disabled",t.popup_disabled);if(t.link&&t.link.length==0){t.link=""}r.data("link",t.link);r.addClass("fpls-content");return{el:r,obj:o}};LSWall_freegrid2_default.prototype.appendNode=function(t,e,a,i){var o=this;if(!t.width&&!a)return;var s=o.getItemId(t);if(s)t.uniqueId=o.getItemSsrId(t);var r=false;if(o.isSSR){var n=o.grid.find("#_"+s);if(n.length>0){r=true}else LSHelpers.debug("SSR element not found","#_"+s)}if(!r){var n=$ls('
');n.attr("id","_"+s);n.appendTo(e)}if(a)n.addClass(a);n.addClass("fpls-element-loading");if(!t.slides)t.slides=1;if(t.cssclass)n.addClass(t.cssclass);if(t.cssclass)n.attr("data-item-class",t.cssclass);if(t._id)n.attr("data-item-id",t._id);if(t.type=="carousel"&&t.subitems){o.handleCarousel(n,e,t);if(t.type!="photo"&&t.type!="video")o.setBackground(n,t.background,".fpls-box-carousel")}else if(t.type=="compare"&&t.subitems){o.handleCompare(n,t)}else{var l=o.parseNode(t,i);if(!l)return;if(!o.isSSR||!l.obj.isSSR){l.el.appendTo(n)}o._loadStackAdd();o.handleAnimationInitialState(n,t);l.obj.onLoad((function(e,a,i){o._loadStackRemove();if(i){LSHelpers.error(i);return}n.removeClass("fpls-element-loading");n.addClass("fpls-element-loaded");o.fillBox(l.el,t.crop);o.handleAnimation(n,t)}));o.boxes.push(l.el);if(t.type!="photo"&&t.type!="video")o.setBackground(n,t.background,".fpls-box-inner")}o.injectFontFaces(o.cssBrekapointPrefix+" #_"+s,t.font_heading,t.font_body);if(t.type!="carousel")LSHelpers.injectTextstyles(o,o.cssBrekapointPrefix+" #_"+s,t.textstyles,t.effects);o.injectAlignmentStyles(o.cssBrekapointPrefix+" #_"+s,t.alignment);o.injectOverlays(o.cssBrekapointPrefix+" #_"+s,t.overlays,t.effects);o.injectEffects(o.cssBrekapointPrefix+" #_"+s,t.effects);o.injectFilter(o.cssBrekapointPrefix+" #_"+s,t.filter||{});o.setAttributes(n,t);o.setBorder(n,t.border)};LSWall_freegrid2_default.prototype.postRender=function(){var t=this;LSWall.prototype.postRender.call(this)};LSWall_freegrid2_default.prototype.backgroundObj=function(t){var e=this;if(t){Object.keys(t).filter((function(e){return t[e]===null||t[e]===""})).forEach((function(e){delete t[e]}));return t}};LSWall_freegrid2_default.prototype.getItemId=function(t,e,a){var i=this;if(!e){e=t._id}if(!a&&t)a=t.section_id;if(i.legacyMode())return e;var o=9;try{if(!i.LS_FIXED_LENGTH){var s=i.container.find('.fpls-element .fpls-box[id*="ssr"]').eq(0).attr("id");if(s)o=s.split("_")[0].replace("ssr","").length;i.LS_FIXED_LENGTH=o}else{o=i.LS_FIXED_LENGTH}}catch(t){LSHelpers.log(t)}var r=i.wall.wall_id.substr(0,o)+"_";if(e)r+=e;if(a)r+="_"+a;return r};LSWall_freegrid2_default.prototype.legacyMode=function(){var t=this;return!(typeof t.wall.sections!=="undefined"&&t.wall.sections.length>0)};LSWall_freegrid2_default.prototype.getItemSsrId=function(t){var e=this;if(e.legacyMode())return"ssr"+e.wall.wall_id+"_"+t._id;var a=e.getItemId(t);return"ssr"+a};LSWall_freegrid2_default.prototype.handleCarousel=function(t,e,a){var i=this;var o=false;if(i.isSSR){var s=t.find(".fpls-element-prev");var r=t.find(".fpls-element-next");var n=t.find(".fpls-carousel-inner");if(n.length>0)o=true}if(!o){var s=$ls('');var r=$ls('');s.appendTo(t);t.addClass("fpls-carousel");var n=$ls('