https://sellmyhome.co.uk/wp-content/plugins/business-reviews-bundle/assets/1.9.150/js/public-main.js
1var rpi=rpi||{}; 2rpi.Time={getTime:function(a,b,d){return"chat"==d?this.getChatTime(a,b||"en"):d?this.getFormatTime(a,d,b||"en"):this.getDefaultTime(a,b||"en")},getChatTime:function(a,b){var d=((new Date).getTime()-a)/1E3/60/60,k=d/24;return 24>d?this.getFormatTime(a,"HH:mm",b):365>k?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){a=parseInt(a)*(1E10>a?1E3:1);a=((new Date).getTime()-a)/1E3;var d=a/ 360,k=d/60,g=k/24,m=g/365;b=rpi.Time.Messages[b]?b:"en";return 45>a?rpi.Time.Messages[b].second:90>a?rpi.Time.Messages[b].minute:45>d?rpi.Time.Messages[b].minutes(d):90>d?rpi.Time.Messages[b].hour:24>k?rpi.Time.Messages[b].hours(k):48>k?rpi.Time.Messages[b].day:30>g?rpi.Time.Messages[b].days(g):60>g?rpi.Time.Messages[b].month:365>g?rpi.Time.Messages[b].months(g):2>m?rpi.Time.Messages[b].year:rpi.Time.Messages[b].years(m)},getTime12:function(a,b){a=new Date(a);return(a.getHours()%12?a.getHours()%12: 412)+":"+a.getMinutes()+(12<=a.getHours()?" PM":" AM")},getFormatTime:function(a,b,d){var k=new Date(a),g={SS:k.getMilliseconds(),ss:k.getSeconds(),mm:k.getMinutes(),HH:k.getHours(),hh:(k.getHours()%12?k.getHours()%12:12)+(12<=k.getHours()?"PM":"AM"),dd:k.getDate(),MM:k.getMonth()+1,yyyy:k.getFullYear(),yy:String(k.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,d),12:this.getTime12(a,d)};return b.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(m,h){m=g[h];return 10>m?"0"+ 5m:m})},declineNum:function(a,b,d,k){return a+" "+this.declineMsg(a,b,d,k)},declineMsg:function(a,b,d,k,g){var m=a%10;return 1==m&&(1==a||20<a)?b:1<m&&5>m&&(20<a||10>a)?d:a?k:g}}; 6rpi.Time.Messages={ru:{second:"\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e",minute:"\u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434")},hour:"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434",hours:function(a){return rpi.Time.declineNum(Math.round(a), 7"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u0430 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u043e\u0432 \u043d\u0430\u0437\u0430\u0434")},day:"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u044f \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434")},month:"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434", 8months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434")},year:"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434","\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434", 9"\u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434")}},en:{second:"just now",minute:"1m ago",minutes:function(a){return Math.round(a)+"m ago"},hour:"1h ago",hours:function(a){return Math.round(a)+"h ago"},day:"a day ago",days:function(a){return Math.round(a)+" days ago"},month:"a month ago",months:function(a){return Math.floor(a/30)+" months ago"},year:"a year ago",years:function(a){return Math.round(a)+" years ago"}},uk:{second:"\u0442\u0456\u043b\u044c\u043a\u0438 \u0449\u043e",minute:"\u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443", 10minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443","\u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443","\u0445\u0432\u0438\u043b\u0438\u043d \u0442\u043e\u043c\u0443")},hour:"\u0433\u043e\u0434\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434\u0438\u043d\u0443 \u0442\u043e\u043c\u0443","\u0433\u043e\u0434\u0438\u043d\u0438 \u0442\u043e\u043c\u0443", 11"\u0433\u043e\u0434\u0438\u043d \u0442\u043e\u043c\u0443")},day:"\u0434\u0435\u043d\u044c \u0442\u043e\u043c\u0443",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u0442\u043e\u043c\u0443","\u0434\u043d\u0456 \u0442\u043e\u043c\u0443","\u0434\u043d\u0456\u0432 \u0442\u043e\u043c\u0443")},month:"\u043c\u0456\u0441\u044f\u0446\u044c \u0442\u043e\u043c\u0443",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0456\u0441\u044f\u0446\u044c \u0442\u043e\u043c\u0443", 12"\u043c\u0456\u0441\u044f\u0446\u0456 \u0442\u043e\u043c\u0443","\u043c\u0456\u0441\u044f\u0446\u0456\u0432 \u0442\u043e\u043c\u0443")},year:"\u0440\u0456\u043a \u0442\u043e\u043c\u0443",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0440\u0456\u043a \u0442\u043e\u043c\u0443","\u0440\u043e\u043a\u0438 \u0442\u043e\u043c\u0443","\u0440\u043e\u043a\u0456\u0432 \u0442\u043e\u043c\u0443")}},ro:{second:"chiar acum",minute:"\u00een urm\u0103 minut",minutes:function(a){return rpi.Time.declineNum(Math.round(a), 13"o minuta in urma","minute in urma","de minute in urma")},hour:"acum o ora",hours:function(a){return rpi.Time.declineNum(Math.round(a),"acum o ora","ore in urma","de ore in urma")},day:"o zi in urma",days:function(a){return rpi.Time.declineNum(Math.round(a),"o zi in urma","zile in urma","de zile in urma")},month:"o luna in urma",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"o luna in urma","luni in urma","de luni in urma")},year:"un an in urma",years:function(a){return rpi.Time.declineNum(Math.round(a), 14"un an in urma","ani in urma","de ani in urma")}},lv:{second:"Maz\u0101k par min\u016bti",minute:"Pirms min\u016btes",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"pirms min\u016btes","pirms min\u016bt\u0113m","pirms min\u016bt\u0113m")},hour:"pirms stundas",hours:function(a){return rpi.Time.declineNum(Math.round(a),"pirms stundas","pirms stund\u0101m","pirms stund\u0101m")},day:"pirms dienas",days:function(a){return rpi.Time.declineNum(Math.round(a),"pirms dienas","pirms dien\u0101m", 15"pirms dien\u0101m")},month:"pirms m\u0113ne\u0161a",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"pirms m\u0113ne\u0161a","pirms m\u0113ne\u0161iem","pirms m\u0113ne\u0161iem")},year:"pirms gada",years:function(a){return rpi.Time.declineNum(Math.round(a),"pirms gada","pirms gadiem","pirms gadiem")}},lt:{second:"k\u0105 tik",minute:"prie\u0161 minut\u0119",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"minut\u0117 prie\u0161","minut\u0117s prie\u0161","minu\u010di\u0173 prie\u0161")}, 16hour:"prie\u0161 valand\u0105",hours:function(a){return rpi.Time.declineNum(Math.round(a),"valanda prie\u0161","valandos prie\u0161","valand\u0173 prie\u0161")},day:"prie\u0161 dien\u0105",days:function(a){return rpi.Time.declineNum(Math.round(a),"diena prie\u0161","dienos prie\u0161","dien\u0173 prie\u0161")},month:"prie\u0161 m\u0117nes\u012f",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"m\u
160117nes\u012f prie\u0161","m\u0117nesiai prie\u0161","m\u0117nesi\u0173 prie\u0161")}, 17year:"prie\u0161 metus",years:function(a){return rpi.Time.declineNum(Math.round(a),"metai prie\u0161","metai prie\u0161","met\u0173 prie\u0161")}},kk:{second:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u0430\u0437 \u0443\u0430\u049b\u044b\u0442 \u0431\u04b1\u0440\u044b\u043d",minute:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d", 18"\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d","\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d")},hour:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d","\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d","\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d")},day:"\u0431\u0456\u0440 \u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d", 19days:function(a){return rpi.Time.declineNum(Math.round(a),"\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d","\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d","\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d")},month:"\u0431\u0456\u0440 \u0430\u0439 \u0431\u04b1\u0440\u044b\u043d",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d","\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d","\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d")},year:"\u0431\u0456\u0440 \u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d", 20years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d","\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d","\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d")}},ka:{second:"\u10ec\u10d0\u10db\u10d8\u10e1 \u10ec\u10d8\u10dc",minute:"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc", 21"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc")},hour:"\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc")},day:"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc", 22"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc")},month:"\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc")},year:"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc", 23"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc")}},hy:{second:"\u0574\u056b \u0584\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576 \u0561\u057c\u0561\u057b",minute:"\u0574\u0565\u056f \u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b","\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b","\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b")}, 24hour:"\u0574\u0565\u056f \u056a\u0561\u0574 \u0561\u057c\u0561\u057b",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u056a\u0561\u0574 \u0561\u057c\u0561\u057b","\u056a\u0561\u0574 \u0561\u057c\u0561\u057b","\u056a\u0561\u0574 \u0561\u057c\u0561\u057b")},day:"\u0574\u0565\u056f \u0585\u0580 \u0561\u057c\u0561\u057b",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0585\u0580 \u0561\u057c\u0561\u057b","\u0585\u0580 \u0561\u057c\u0561\u057b","\u0585\u0580 \u0561\u057c\u0561\u057b")}, 25month:"\u0574\u0565\u056f \u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b","\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b","\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b")},year:"\u0574\u0565\u056f \u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b","\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b", 26"\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b")}},fr:{second:"tout \u00e0 l'heure",minute:"environ une minute",minutes:function(a){return Math.round(a)+" minutes"},hour:"environ une heure",hours:function(a){return"environ "+Math.round(a)+" heures"},day:"un jour",days:function(a){return Math.round(a)+" jours"},month:"environ un mois",months:function(a){return Math.floor(a/30)+" mois"},year:"environ un an",years:function(a){return Math.round(a)+" ans"}},es:{second:"ahora",minute:"hace un minuto",
27minutes:function(a){return"hace "+Math.round(a)+" minuts"},hour:"hace una hora",hours:function(a){return"hace "+Math.round(a)+" horas"},day:"hace un dia",days:function(a){return"hace "+Math.round(a)+" d\u00edas"},month:"hace un mes",months:function(a){return"hace "+Math.floor(a/30)+" meses"},year:"hace a\u00f1os",years:function(a){return"hace "+Math.round(a)+" a\u00f1os"}},el:{second:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc", 28minute:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",minutes:function(a){return Math.round(a)+" minutes"},hour:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03b7\u03bd \u03bc\u03b9\u03b1 \u03ce\u03c1\u03b1",hours:function(a){return"about "+Math.round(a)+" hours"},day:"\u03bc\u03b9\u03b1 \u03bc\u03ad\u03c1\u03b1",days:function(a){return Math.round(a)+" days"},month:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf\u03bd \u03ad\u03bd\u03b1 \u03bc\u03ae\u03bd\u03b1", 29months:function(a){return Math.floor(a/30)+" months"},year:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf\u03bd \u03ad\u03bd\u03b1 \u03c7\u03c1\u03cc\u03bd\u03bf",years:function(a){return Math.round(a)+" years"}},de:{second:"soeben",minute:"vor einer Minute",minutes:function(a){return"vor "+Math.round(a)+" Minuten"},hour:"vor einer Stunde",hours:function(a){return"vor "+Math.round(a)+" Stunden"},day:"vor einem Tag",days:function(a){return"vor "+Math.round(a)+" Tagen"},month:"vor einem Monat",months:function(a){return"vor "+ 30Math.floor(a/30)+" Monaten"},year:"vor einem Jahr",years:function(a){return"vor "+Math.round(a)+" Jahren"}},be:{second:"\u043c\u0435\u043d\u0448 \u0437\u0430 \u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",minute:"\u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0445\u0432\u0456\u043b\u0456\u043d\u0430 \u0442\u0430\u043c\u0443","\u0445\u0432\u0456\u043b\u0456\u043d\u044b \u0442\u0430\u043c\u0443", 31"\u0445\u0432\u0456\u043b\u0456\u043d \u0442\u0430\u043c\u0443")},hour:"\u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u0437\u0456\u043d\u044b \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u0437\u0456\u043d \u0442\u0430\u043c\u0443")},day:"\u0434\u0437\u0435\u043d\u044c \u0442\u0430\u043c\u0443",days:function(a){return rpi.Time.declineNum(Math.round(a), 32"\u0434\u0437\u0435\u043d\u044c \u0442\u0430\u043c\u0443","\u0434\u043d\u0456 \u0442\u0430\u043c\u0443","\u0434\u0437\u0451\u043d \u0442\u0430\u043c\u0443")},month:"\u043c\u0435\u0441\u044f\u0446 \u0442\u0430\u043c\u0443",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0435\u0441\u044f\u0446 \u0442\u0430\u043c\u0443","\u043c\u0435\u0441\u044f\u0446\u0430 \u0442\u0430\u043c\u0443","\u043c\u0435\u0441\u044f\u0446\u0430\u045e \u0442\u0430\u043c\u0443")},year:"\u0433\u043e\u0434 \u0442\u0430\u043c\u0443", 33years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434 \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u044b \u0442\u0430\u043c\u0443","\u0433\u043e\u0434 \u0442\u0430\u043c\u0443")}},it:{second:"proprio ora",minute:"un minuto fa",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"un minuto fa","minuti fa","minuti fa")},hour:"un'ora fa",hours:function(a){return rpi.Time.declineNum(Math.round(a),"un'ora fa","ore fa","ore fa")},day:"un giorno fa",days:function(a){return rpi.Time.declineNum(Math.round(a), 34"un giorno fa","giorni fa","giorni fa")},month:"un mese fa",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"un mese fa","mesi fa","mesi fa")},year:"un anno fa",years:function(a){return rpi.Time.declineNum(Math.round(a),"un anno fa","anni fa","anni fa")}},tr:{second:"az \u00f6nce",minute:"dakika \u00f6nce",minutes:function(a){return Math.round(a)+" dakika \u00f6nce"},hour:"saat \u00f6nce",hours:function(a){return Math.round(a)+" saat \u00f6nce"},day:"g\u00fcn \u00f6nce",days:function(a){return Math.round(a)+ 35" g\u00fcn \u00f6nce"},month:"ay \u00f6nce",months:function(a){return Math.floor(a/30)+" ay \u00f6nce"},year:"y\u0131l \u00f6nce",years:function(a){return Math.round(a)+" y\u0131l \u00f6nce"}},nb:{second:"n\u00e5 nettopp",minute:"ett minutt siden",minutes:function(a){return Math.round(a)+" minutter siden"},hour:"en time siden",hours:function(a){return Math.round(a)+" timer siden"},day:"en dag siden",days:function(a){return Math.round(a)+" dager siden"},month:"en m\u00e5ned siden",months:function(a){return Math.floor(a/ 3630)+" m\u00e5neder siden"},year:"ett \u00e5r siden",years:function(a){return Math.round(a)+" \u00e5r siden"}},da:{second:"lige nu",minute:"et minut siden",minutes:function(a){return Math.round(a)+" minutter siden"},hour:"en time siden",hours:function(a){return Math.round(a)+" timer siden"},day:"en dag siden",days:function(a){return Math.round(a)+" dage siden"},month:"en m\u00e5ned siden",months:function(a){return Math.floor(a/30)+" m\u00e5neder siden"},year:"et \u00e5r siden",years:function(a){return Math.round(a)+ 37" \u00e5r siden"}},nl:{second:"zojuist",minute:"minuten geleden",minutes:function(a){return Math.round(a)+" minuten geleden"},hour:"uur geleden",hours:function(a){return Math.round(a)+" uur geleden"},day:"1 dag geleden",days:function(a){return Math.round(a)+" dagen geleden"},month:"maand geleden",months:function(a){return Math.floor(a/30)+" maanden geleden"},year:"jaar geleden",years:function(a){return Math.round(a)+" ja
37ar geleden"}},ca:{second:"ara mateix",minute:"fa un minut",minutes:function(a){return"fa "+ 38Math.round(a)+" minuts"},hour:"fa una hora",hours:function(a){return"fa "+Math.round(a)+" hores"},day:"fa un dia",days:function(a){return"fa "+Math.round(a)+" dies"},month:"fa un mes",months:function(a){return"fa "+Math.floor(a/30)+" mesos"},year:"fa un any",years:function(a){return"fa "+Math.round(a)+" anys"}},sv:{second:"just nu",minute:"en minut sedan",minutes:function(a){return Math.round(a)+" minuter sedan"},hour:"en timme sedan",hours:function(a){return Math.round(a)+" timmar sedan"},day:"en dag sedan", 39days:function(a){return Math.round(a)+" dagar sedan"},month:"en m\u00e5nad sedan",months:function(a){return Math.floor(a/30)+" m\u00e5nader sedan"},year:"ett \u00e5r sedan",years:function(a){return Math.round(a)+" \u00e5r sedan"}},pl:{second:"w\u0142a\u015bnie teraz",minute:"minut\u0119 temu",minutes:function(a){return Math.round(a)+" minut temu"},hour:"godzin\u0119 temu",hours:function(a){return Math.round(a)+" godzin temu"},day:"wczoraj",days:function(a){return Math.round(a)+" dni temu"},month:"miesi\u0105c temu", 40months:function(a){return Math.floor(a/30)+" miesi\u0119cy temu"},year:"rok temu",years:function(a){return Math.round(a)+" lat temu"}},pt:{second:"agora",minute:"1 minuto atr\u00e1s",minutes:function(a){return Math.round(a)+" minutos atr\u00e1s"},hour:"1 hora atr\u00e1s",hours:function(a){return Math.round(a)+" horas atr\u00e1s"},day:"1 dia atr\u00e1s",days:function(a){return Math.round(a)+" dias atr\u00e1s"},month:"1 m\u00eas atr\u00e1s",months:function(a){return Math.floor(a/30)+" meses atr\u00e1s"}, 41year:"1 ano atr\u00e1s",years:function(a){return Math.round(a)+" anos atr\u00e1s"}},hu:{second:"\u00e9pp az im\u00e9nt",minute:"1 perccel ezel\u0151tt",minutes:function(a){return Math.round(a)+" perccel ezel\u0151tt"},hour:"\u00f3r\u00e1val ezel\u0151tt",hours:function(a){return Math.round(a)+" \u00f3r\u00e1val ezel\u0151tt"},day:"nappal ezel\u0151tt",days:function(a){return Math.round(a)+" nappal ezel\u0151tt"},month:"h\u00f3nappal ezel\u0151tt",months:function(a){return Math.floor(a/30)+" h\u00f3nappal ezel\u0151tt"}, 42year:"\u00e9vvel ezel\u0151tt",years:function(a){return Math.round(a)+" \u00e9vvel ezel\u0151tt"}},fi:{second:"juuri nyt",minute:"minuutti sitten",minutes:function(a){return Math.round(a)+" minuuttia sitten"},hour:"tunti sitten",hours:function(a){return Math.round(a)+" tuntia sitten"},day:"p\u00e4iv\u00e4 sitten",days:function(a){return Math.round(a)+" p\u00e4iv\u00e4\u00e4 sitten"},month:"kuukausi sitten",months:function(a){return Math.floor(a/30)+" kuukautta sitten"},year:"vuosi sitten",years:function(a){return Math.round(a)+ 43" vuotta sitten"}},he:{second:"\u05d4\u05e8\u05d2\u05e2",minute:"\u05dc\u05e4\u05e0\u05d9 \u05d3\u05e7\u05d4",minutes:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d3\u05e7\u05d5\u05ea"},hour:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e2\u05d4",hours:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e2\u05d5\u05ea"},day:"\u05dc\u05e4\u05e0\u05d9 \u05d9\u05d5\u05dd",days:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d9\u05de\u05d9\u05dd"},month:"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9", 44months:function(a){return 2==Math.floor(a/30)?"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":"\u05dc\u05e4\u05e0\u05d9 "+Math.floor(a/30)+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},year:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4",years:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e0\u05d9\u05dd"}},bg:{second:"\u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0430",minute:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430",minutes:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+ 45Math.round(a)+" \u043c\u0438\u043d\u0443\u0442\u0438"},hour:"\u043f\u0440\u0435\u0434\u0438 1 \u0447\u0430\u0441",hours:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0447\u0430\u0441\u0430"},day:"\u043f\u0440\u0435\u0434\u0438 1 \u0434\u0435\u043d",days:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0434\u043d\u0438"},month:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0435\u0441\u0435\u0446",months:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.floor(a/ 4630)+" \u043c\u0435\u0441\u0435\u0446\u0430"},year:"\u043f\u0440\u0435\u0434\u0438 1 \u0433\u043e\u0434\u0438\u043d\u0430",years:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0433\u043e\u0434\u0438\u043d\u0438"}},sk:{second:"pr\u00e1ve teraz",minute:"pred min\u00fatov",minutes:function(a){return"pred "+Math.round(a)+" min\u00fatami"},hour:"pred hodinou",hours:function(a){return"pred "+Math.round(a)+" hodinami"},day:"v\u010dera",days:function(a){return"pred "+Math.round(a)+" d\u0148ami"}, 47month:"pred mesiacom",months:function(a){return"pred "+Math.floor(a/30)+" mesiacmi"},year:"pred rokom",years:function(a){return"pred "+Math.round(a)+" rokmi"}},lo:{second:"\u0ea7\u0eb1\u0ec8\u0e87\u0e81\u0eb5\u0ec9\u0e99\u0eb5\u0ec9",minute:"\u0edc\u0eb6\u0ec8\u0e87\u0e99\u0eb2\u0e97\u0eb5\u0e81\u0ec8\u0ead\u0e99",minutes:function(a){return Math.round(a)+" \u0e99\u0eb2\u0e97\u0eb5\u0e81\u0ec8\u0ead\u0e99"},hour:"\u0edc\u0eb6\u0ec8\u0e87\u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99", 48hours:function(a){return Math.round(a)+" \u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99"},day:"\u0edc\u0eb6\u0ec8\u0e87\u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99",days:function(a){return Math.round(a)+" \u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99"},month:"\u0edc\u0eb6\u0ec8\u0e87\u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99",months:function(a){return Math.floor(a/30)+" \u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99"},year:"\u0edc\u0eb6\u0ec8\u0e87\u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99", 49years:function(a){return Math.round(a)+" \u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99"}},sl:{second:"pravkar",minute:"pred eno minuto",minutes:function(a){return"pred "+Math.round(a)+" minutami"},hour:"pred eno uro",hours:function(a){return"pred "+Math.round(a)+" urami"},day:"pred enim dnem",days:function(a){return"pred "+Math.round(a)+" dnevi"},month:"pred enim mesecem",months:function(a){return"pred "+Math.floor(a/30)+" meseci"},year:"pred enim letom",years:function(a){return"pred "+Math.round(a)+" leti"}}, 50et:{second:"just n\u00fc\u00fcd",minute:"minut tagasi",minutes:function(a){return Math.round(a)+" minutit tagasi"},hour:"tund tagasi",hours:function(a){return Math.round(a)+" tundi tagasi"},day:"p\u00e4ev tagasi",days:function(a){return Math.round(a)+" p\u00e4eva tagasi"},month:"kuu aega tagasi",months:function(a){return Math.floor(a/30)+" kuud tagasi"},year:"aasta tagasi",years:function(a){return Math.round(a)+" aastat tagasi"}},ja:{second:"\u305f\u3063\u305f\u4eca",minute:"1\u5206\u524d",minutes:function(a){return Math.round(a)+ 51"\u5206\u524d"},hour:"1\u6642\u9593\u524d",hours:function(a){return Math.round(a)+"\u6642\u9593\u524d"},day:"1\u65e5\u524d",days:function(a){return Math.round(a)+"\u65e5\u524d"},month:"1\u30f6\u6708\u524d",months:function(a){return Math.floor(a/30)+"\u30f
516\u6708\u524d"},year:"1\u5e74\u524d",years:function(a){return Math.round(a)+"\u5e74\u524d"}}};rpi=rpi||{}; 52rpi.Utils={__:function(a,b){return b&&b[a]||a},isVisible:function(a){let b=window.getComputedStyle(a);return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)&&"hidden"!==b.visibility&&"none"!==b.display},isInViewport:function(a,b=0){a=a.getBoundingClientRect();return a.top<window.innerHeight*(1+b)&&a.bottom>-window.innerHeight*b&&a.left<window.innerWidth*(1+b)&&a.right>-window.innerWidth*b},isRTL:function(){return"rtl"==(window.getComputedStyle?window.getComputedStyle(document.body,null).getPropertyValue("direction"): 53document.body.currentStyle.direction)},getParent:function(a,b="rplg"){b=Array.isArray(b)?b:[b];return a?a.closest("."+b.join(",.")):null},lang:function(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()},popup:function(a,b,d){var k=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+b+", height="+d+", top="+((window.innerHeight?window.innerHeight:k.clientHeight?k.clientHeight:screen.height)/2-d/2+(void 0!=window.screenTop?window.screenTop: 54window.screenY))+", left="+((window.innerWidth?window.innerWidth:k.clientWidth?k.clientWidth:screen.width)/2-b/2+(void 0!=window.screenLeft?window.screenLeft:window.screenX)));window.focus&&a.focus();return a},ajax:function(a,b,d,k){const g=new XMLHttpRequest;g.open(b,a,!0);g.setRequestHeader("Content-Type","application/json");g.onreadystatechange=function(){if((g.readyState===XMLHttpRequest.DONE||g.readyState===g.DONE)&&200===g.status){const m=JSON.parse(g.responseText);"function"===typeof k?k(m): 55"function"===typeof d&&d(m)}};g.send(d&&"function"!==typeof d?JSON.stringify(d):null)},anchor:function(a,b,d,k,g){const m=[];d.open_link&&m.push("noopener");d.nofollow_link&&m.push("nofollow");return'<a href="'+a+'"'+(k?' class="'+k+'"':"")+(d.open_link?' target="_blank"':"")+(m.length?' rel="'+m.join(" ")+'"':"")+(g?' aria-label="'+g+'"':"")+">"+b+"</a>"},rm:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},capit:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},url:function(a){try{return(new URL(a, 56window.location.origin)).href}catch(b){return""}},clear:function(){this.rm(document.getElementById("rpi-style"));if(rpi.Instances)for(;rpi.Instances.length;)rpi.Instances.pop().clear()}};rpi=rpi||{}; 57rpi.Column=function(a,b,d){const k=a.getAttribute("data-id"),g=new RegExp(d.col+"-[xsml]+"),m=new RegExp('$|(\\[data-id="'+k+'"\\]\\s+.'+d.card+"\\s*{\\s*--col:\\s*\\d+\\s*!important\\s*;?(\\s*--gap:\\s*\\d+\\s*!important;?)?})"),h=a.getElementsByClassName(d.cnt)[0];var p=null;return p={init:function(q,t){rpi.Utils.isVisible(h)?(q&&q(),p.resize(),window.addEventListener("resize",p.resize),t&&t(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(p)):setTimeout(p.init,300)},resize:function(){let q= 58p.getSize();h.className=h.className.replace(g,d.col+"-"+q);if(b.breakpoints){let t=h.offsetWidth,c=b.breakpoints.split(",");c.sort(p.brsort);for(let e=0;e<c.length;e++){let l=c[e].split(":");if(t<parseInt(l[0])){p.setCol(l[1]);break}}}return q},getSize:function(){let q=h.offsetWidth;return 510>q?"xs":750>q?"x":1050>q?"s":1450>q?"m":1800>q?"l":"xl"},setCol:function(q){const t=this.getStyle();t.innerHTML=t.innerHTML.replace(m,(k?'[data-id="'+k+'"] ':"")+"."+d.card+"{--col:"+q+"!important;--gap:"+(q- 591)+"!important}")},getCol:function(){let q=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return q&&1<q.length?q[1]:!1},getStyle:function(){let q=document.getElementById("rpi-style");q||(q=document.createElement("style"),q.id="rpi-style",document.head.appendChild(q));return q},setBreakpoints:function(q){b.breakpoints=q},brsort:function(q,t){return parseInt(q.split(":")[0])>parseInt(t.split(":")[0])?1:-1},clear:function(){window.removeEventListener("resize",p.resize)}}};rpi=rpi||{};rpi.AVA="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"; 60rpi.Common=function(a,b,d){let k=null;return k={init(){var g=a.getElementsByClassName(d.time);let m=a.getElementsByClassName(d.text);if(!b.time_format)for(let h=0;h<g.length;h++)g[h].textContent=rpi.Time.getTimeAgo(g[h].dataset.time,rpi.Utils.lang());for(g=0;g<m.length;g++)k.setText(m[g])}
60,initOnce(g){let m=g.getElementsByClassName(d.time)[0];g=g.getElementsByClassName(d.text)[0];m&&!b.time_format&&(m.textContent=rpi.Time.getTimeAgo(m.dataset.time,rpi.Utils.lang()));k.setText(g)},setText(g){if(g&& 61g.textContent){var m=k.trimtext(g.textContent);g.textContent=m[0];m[1]&&(g.appendChild(rpi.el({tag:"span",cl:"rpi-s",text:"... "})),g.appendChild(rpi.el({tag:"span",cl:d.readmore,text:rpi.Utils.__("read more",b.trans),data:{hidden:m[1]}})),g.lastChild.onclick=k.opentext)}},trimtext(g){const m=parseInt(b.text_size,10);if(!g||!m||g.length<=m)return[g||"",""];g=Array.from(g);let h=g.slice(0,m).join("").lastIndexOf(" ");h=-1===h?m:h;return[g.slice(0,h).join("").trimEnd(),g.slice(h).join("")]},opentext(){let g= 62this.parentNode,m=this.dataset.hidden||"";rpi.Utils.rm(this.previousElementSibling);rpi.Utils.rm(this);g.appendChild(document.createTextNode(m))},time(g){return b.time_format?g:rpi.Time.getTimeAgo(g,rpi.Utils.lang())}}}; 63rpi.el=function(a={},...b){const d=document.createElement("string"===typeof a?a:a.tag||"div");"string"!==typeof a&&(a.id&&(d.id=a.id),a.cl&&d.classList.add(...[].concat(a.cl).join(" ").split(/\s+/).filter(Boolean)),null!=a.text&&(d.textContent=a.text),a.data&&Object.assign(d.dataset,Object.fromEntries(Object.entries(a.data).filter(([,k])=>void 0!==k))),a.style&&(d.style.cssText=a.style),a.atts&&Object.keys(a.atts).forEach(k=>{a.atts[k]&&d.setAttribute(k,a.atts[k])}),a.html&&(d.innerHTML=a.html),b= 64a.children?[].concat(a.children).concat(b):b);b.flat().forEach(k=>{k&&d.appendChild(k)});return d};window.brb_vars=window.brb_vars||{ajaxurl:"/wp-admin/admin-ajax.php",gavatar:""};rpi=rpi||{}; 65rpi.View=function(a,b={},d={}){const k=b.id??a.getAttribute("data-id");a.getElementsByClassName("rpi-cnt");const g=a.getElementsByClassName("rpi-header")[0],m=a.getElementsByClassName(d&&d.names&&d.names.content||"rpi-content")[0],h=m?m.getElementsByClassName(d&&d.names&&d.names.cards||"rpi-cards")[0]:null,p=a.getElementsByClassName("rpi-url")[0],q=rpi.Media(a);var t=null;return t={media:q,boot:function(){d.cb&&d.cb.pre&&d.cb.pre();rpi.Utils.ajax(t.getAjaxUrl({act:"widget"}),"POST",function(c){h.setAttribute("data-offset", 66c.offset);h.setAttribute("data-count",c.count);c.bizs&&t.addBusiness(c.bizs[0],c.options);t.addReviews(c,[],function(e){t.initStyle();d.cb&&d.cb.post&&d.cb.post()})});t.initPagin()},init:function(){q.init();t.initStyle();t.initPagin()},initPagin:function(){p&&(p.onclick=function(){p.disabled=!0;t.loadNextReviews(b.pagination,function(c){t.delPaginBtn();d.cbp&&d.cbp(c);p.disabled=!1});return!1})},loadNextReviews:function(c,e){if(0<c){const l=[];c=parseInt(c);t.preloadReviews(l,c);t.loadAjaxReviews(l, 67c,e)}},preloadReviews:function(c,e){var l=parseInt(h.getAttribute("data-offset")),f=parseInt(h.getAttribute("data-count"));e=f-l>e?e:f-l;l=h.getElementsByClassName(d&&d.names&&d.names.card||"rpi-card");if(l.length){f=l.length-1;for(let u=0;u<e;u++){let y=l[Math.round(Math.random()*f)].cloneNode(!0);y.style="filter: blur(4px);";h.appendChild(y);c.push(y)}}},loadAjaxReviews:function(c,e,l){rpi.Utils.ajax(t.getAjaxUrl({act:"reviews",size:e}),"POST",function(f){h.setAttribute("data-offset",f.offset); 68h.setAttribute("data-count",f.count);t.addReviews(f,c,l)})},getAjaxUrl:function(c){return rpi.View.ajaxurl({...c,id:k,offset:c.offset??(h?parseInt(h.dataset.offset):0),...(d.filter?.bid&&{bid:d.filter.bid}),...(d.filter?.provider&&{provider:d.filter.provider})},b)},addBusiness:function(c,e){g.getElementsByClassName("rpi-cards")[0].appendChild(t.createRating(c,e))},createRating:function(c,e){return rpi.el({cl:"rpi-card",data:{provider:c.provider}},t.ratingInner(c,e))},ratingInner:function(c,e){var l= 69rpi.el({cl:"rpi-info",children:[!e.header_hide_scale&&rpi.el({cl:"rpi-scale",text:t.scale(c)}),!e.header_hide_name&&rpi.el({tag:"a",cl:"rpi-name",atts:{href:c.url},text:c.name}),rpi.View.stars(c.rating,c.provider,!0),!e.header_hide_count&&t.based(c)]});l=rpi.el({cl:"rpi-flex",children:[!e.header_hide_photo&&rpi.el({cl:"rpi-img-wrap"},t.bizPhoto(c)),l]});return rpi.el({cl:["rpi-card-inner rpi-flexwrap rpi-logo","rpi-logo-"+c.provider],children:[l,(!e.header_hide_seeall||!e.header_hide_write)&&t.ratingBtns(c,
70e)]})},scale:function(c){return 4.2<c.rating?rpi.Utils.__("Excellent",b.trans):3.7<c.rating?rpi.Utils.__("Great",b.trans):2.7<c.rating?rpi.Utils.__("Good",b.trans):1.7<c.rating?rpi.Utils.__("Fair",b.trans):rpi.Utils.__("Poor",b.trans)},based:function(c){return rpi.el({cl:"rpi-based",text:rpi.Utils.__("Based on %s reviews",b.trans).replace("%s",c.total||c.review_count)})},bizPhoto:function(c,e=""){return rpi.el({tag:"img",cl:"rpi-img",atts:{loading:"lazy",alt:e,...(c.photo?{src:c.photo}:{})}})},ratingBtns:function(c, 71e){const l=rpi.el({cl:"rpi-slider-btn"});e.header_hide_seeall||l.appendChild(rpi.el({cl:"rpi-review_us rpi-clickable",children:rpi.el({tag:"a",atts:{target:"_blank",rel:"noopener",href:rpi.View.allReviewsUrl(c)},text:rpi.Utils.__("See all reviews",b.trans)})}));if(!e.header_hide_write){const f=rpi.View.writeReviewUrl(c);c=rpi.el({tag:"a",cl:["rpi-logo_after","rpi-logo-"+c.provider],atts:{target:"_blank",rel:"noopener",href:f},text:rpi.Utils.__("review us on",b.trans)});c.addEventListener("click", 72function(u){u.preventDefault();rpi.Utils.popup(f,800,600)});l.appendChild(rpi.el({cl:"rpi-review_us rpi-clickable"},c))}return l},addReviews:function(c,e,l){a.dataset.opts&&(b={...b,...(JSON.parse(a.dataset.opts)||{})});for(let f=0;f<c.reviews.length;f++){let u;d&&d.cb&&d.cb.createCard?u=d.cb.createCard(e.shift(),c.reviews[f]):(u=t.createCard(e.shift(),c.reviews[f]),d.common.initOnce(u),t.initReviewStyle(u,b),t.initLogoStyle(u,b.style_logo));e.length||h.appendChild(u)}for(;e.length;)rpi.Utils.rm(e.shift()); 73q.init();t.delPaginBtn();l&&l(c)},createCard:function(c,e){c||=rpi.el({cl:"rpi-card"});c.setAttribute("data-rat",e.rating);c.setAttribute("data-provider",e.provider);c.textContent="";c.appendChild(t.reviewInner(e));c.style="";return c},reviewInner:function(c){const e=c.reply?c.reply.text||c.reply:null;var l=rpi.el({cl:"rpi-info",children:[!b.hide_name&&t.reviewName(c),!b.disable_review_time&&t.reviewTime(c),rpi.View.stars(c.rating,c.provider)]});l=rpi.el({cl:"rpi-flex",children:[!b.hide_avatar&&t.reviewAvatar(c), 74l]});const f=rpi.el({cl:"rpi-body"},rpi.el({cl:"rpi-text rpi-scroll",atts:{tabindex:"0"},text:(c.text??"")+" "}));c.media&&c.media.length&&f.appendChild(rpi.el({cl:"rpi-media"},t.reviewMedia(c)));e&&f.appendChild(rpi.el({cl:"rpi-reply rpi-scroll",children:[rpi.el({tag:"b",text:rpi.Utils.__("Response from the owner",b.trans)+":"}),document.createTextNode(" "+e)]}));return rpi.el({cl:"rpi-card-inner",children:[rpi.el("i"),l,f]})},reviewTime:function(c){return rpi.el({cl:"rpi-time",data:c.time?{time:String(c.time)}: 75{}})},reviewName:function(c){const e=rpi.Utils.capit(c.provider)+" user",l=c.author_name?c.author_name:e;return c.author_url&&!b.disable_user_link?rpi.el({tag:"a",cl:"rpi-name",atts:{target:"_blank",rel:"noopener",href:rpi.Utils.url(c.author_url),"aria-label":e+" profile"},text:l}):rpi.el({cl:"rpi-name",text:l})},reviewAvatar:function(c){var e=c.author_avatar,l=a.style.getPropertyValue("--img-size");l=l?l.replace("px",""):b.reviewer_avatar_size||56;const f=b.hide_name&&c.author_name?c.author_name: 76"";switch(c.provider){case "google":(c=e&&e.match(/googleusercontent\.com\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/photo\.jpg/))&&4<c.length&&"AAAAAAAAAAA"===c[3][0]&&(e=e.replace("/photo.jpg","/s128-c0x00000000-cc-rp-mo/photo.jpg"));e&&=/=.*s\d{2,3}/.test(e)?e.replace(/(=.*)s\d{2,3}/,"$1s"+l):-1<e.indexOf("-mo")?e.replace("-mo","-mo-s"+l):e.replace("-rp","-rp-s"+l);break;case "yelp":e&&=e.replace(/(ms)|(o)\.jpg/,128>=l?"ms":"o")}e=rpi.el({tag:"img",cl:"rpi-img",atts:{width:l,height:l,alt:f,...(b.lazy_load_img? 77{loading:"lazy"}:{}),...(e?{src:e}:{})}});e.addEventListener("error",function(){this.src!==brb_vars.gavatar&&(this.src=brb_vars.gavatar)});return rpi.el({cl:"rpi-img-wrap"},e)},reviewMedia:function(c){if(!c.media||!c.media.length)return[];const e=a.style.getPropertyValue("--media-lines"),l=22*(e?e:2);return c.media.map(function(f){(f=f.thumbnailUrl||"")&&(f=f.replace(/(=.*)s\d{2,3}/,"$1s"+l));return rpi.el({tag:"img",cl:"rpi-thumb rpi-clickable",atts:{loading:"lazy",alt:"",...(f?{src:f}:{})}})})}, 78reviewReply:function(c,e){let l=c.getElementsByClassName("rpi-reply")[0];l||(l=rpi.el({cl:"rpi-reply rpi-scroll"}),c.getElementsByClassName("rpi-body")[0].appendChild(l));l.innerHTML="";l.appendChild(rpi.el({tag:"b",text:rpi.Utils.__("Response from the owner",b.trans)+":"}));l.appendChild(document.createTextNode(" "+e))},initStyle:function(){a.dataset.opts&&(b={...b,...(JSON.parse(a.dataset.opts)||{})});if(g){var c=g.getElementsByClassName("rpi-card");for(var e=0;e<c.length;e++)this.initLogoStyle(c[e], 79b.head_logo),this.initYelpBasedLogo(c[e],b.head_logo)}if(m){c=h.getElementsByClassName("rpi-card");for(e=0;e<c.length;e++)this.initReviewStyle(c[e],b);this.initCtrlStyle(b);c=m.getElementsByClassName("rpi-card");for(e=0;e<c.length;e++)this.initLogoStyle(c[e],b.style_logo)}},initYelpBasedLogo:function(c,e){5==e&&(c=c.getElementsByClassName("rpi-logo-yelp")[0])&&!c.textContent&&(c.classList.remove("rpi-logo"),c.classList.add("rpi-logo_after"))},initReviewStyle:function(c,e){let l=c.getElementsByClassName("rpi-card-inner")[0], 80f=c.getElementsByClassName("rpi-triangle")[0],u=c.getElementsByClassName("rpi-flex")[0],y=c.getElementsByClassName("rpi-img-wrap")[0],x=c.getElementsByClassName("rpi-info")[0],r=c.getElementsByClassName("rpi-time")[0],A=c.getElementsByClassName("rpi-name")[0],w=c.querySelector('[class^="rpi-star"]'),z=c.getElementsByClassName("rpi-body")[0],C=c.getElementsByClassName("rpi-text")[0],D=c.getElementsByClassName("rpi-reply")[0];A&&x.appendChild(A);r&&x.appendChild(r);w&&x.appendChild(w);c.className="rpi-card"; 81l.className="rpi-card-inner";u.className="rpi-flex";z.className="rpi-body";f&&(f.className="rpi-triangle");switch(e.style_style){case void 0:case "1":case "7":l.appendChild(u);z&&l.appendChild(z);z.className+=" rpi-normal-up__body";break;case "2":case "8":z&&l.appendChild(z);l.appendChild(u);z.className+=" rpi-normal-down__body";break;case "3":f||(f=rpi.el("i"),l.appendChild(f));c.appendChild(u);c.appendChild(l);z&&l.appendChild(z);f.className="rpi-triangle rpi-triangle_up";u.className+=" rpi-bubble__flex rpi-bubble__flex_up"; 82"none"!=this.getCssVar("--card-br")&&(f.className+=" rpi-triangle__br_up",l.className+=" rpi-bubble__inner rpi-bubble__inner_up");break;case "4":f||(f=rpi.el("i"),l.appendChild(f));c.appendChild(l);c.appendChild(u);z&&l.appendChild(z);f.className="rpi-triangle rpi-triangle_down";u.className+=" rpi-bubble__flex rpi-bubble__flex_down";"none"!=this.getCssVar("--card-br")&&(f.className+=" rpi-triangle__br_down",l.className+=" rpi-bubble__inner rpi-bubble__inner_down");break;case "5":l.appendChild(u); 83u.appendChild(x);z&&x.appendChild(z);u.className+=" rpi-shift-up__flex";break;case "6":l.appendChild(u),u.appendChild(x),z&&x.prepend(z),u.className+=" rpi-shift-down__flex"}
83switch(e.style_style){case "7":c.className+=" rpi-avaborder-up";break;case "8":c.className+=" rpi-avaborder-down"}z&&D&&z.appendChild(D);if(w)switch(e.style_stars){case "1":r?(x.insertBefore(w,r),x.insertBefore(r,w)):A?(x.insertBefore(w,A),x.insertBefore(A,w)):x.appendChild(w);break;case "2":r?x.insertBefore(w,r):x.appendChild(w); 84break;case "3":A?x.insertBefore(w,A):r?x.insertBefore(w,r):x.prepend(w);break;case void 0:case "4":z?z.prepend(w):l.appendChild(w);break;case "5":C?C.prepend(w):z.appendChild(w);break;case "6":z?z.appendChild(w):l.appendChild(w)}if(y)switch(e.style_ava){case "1":u.appendChild(y);u.appendChild(x);break;case "2":u.appendChild(x),u.appendChild(y)}},initCtrlStyle:function(c){let e=m.getElementsByClassName("rpi-controls")[0];if(e)switch(e.className="rpi-controls",c.style_style){case "3":e.className+=" rpi-bubble-up__ctrl"; 85break;case "4":e.className+=" rpi-bubble-down__ctrl"}},initLogoStyle:function(c,e){const l=c.getElementsByClassName("rpi-card-inner")[0],f=c.getAttribute("data-provider");if(f){var u=f.split(",");1<u.length?this.initLogoMultiple(c,l,u,e):this.initLogoSingle(c,l,f,e)}},initLogoSingle:function(c,e,l,f){let u=c.getElementsByClassName("rpi-logo")[0];var y=["rpi-logo","rpi-logo-"+l];u&&u.classList.remove(...y);switch(f){case "1":case "6":l=c.getElementsByClassName("rpi-body")[0];"6"==f&&y.push("rpi-logo-left"); 86e.classList.contains("rpi-bubble__inner")&&l?l.classList.add(...y):e.classList.add(...y);break;case "2":(e=c.getElementsByClassName("rpi-name")[0])&&e.classList.add(...y);break;case "3":(y=c.getElementsByClassName("rpi-img-wrap")[0])&&y.classList.add(...["rpi-logo_after","rpi-logo-"+l]);break;case "4":e=c.querySelector('[class^="rpi-star"]');u=rpi.el("span");u.classList.add(...y);e.replaceWith(u);u.appendChild(e);break;case "5":if(e=c.getElementsByClassName("rpi-based")[0])l=e.textContent.trim().match(/\d+/)[0], 87e.textContent=e.textContent.replace(l,l+" "),e.appendChild(rpi.el({tag:"span",cl:y}))}},initLogoMultiple:function(c,e,l,f){let u=c.getElementsByClassName("rpi-logos")[0];u||=this.createLogos(l);switch(f){case "0":rpi.Utils.rm(u);break;case "1":e.prepend(u);break;case "2":(c=c.getElementsByClassName("rpi-name")[0])&&c.prepend(u);break;case "4":e=c.getElementsByClassName("rpi-info")[0];l=c.getElementsByClassName("rpi-based")[0];c=c.querySelector('[class^="rpi-star"]');u.appendChild(c);l?e.insertBefore(u, 88l):e.appendChild(u);break;case "5":if(c=c.getElementsByClassName("rpi-based")[0])e=c.textContent.trim().match(/\d+/)[0],c.textContent=c.textContent.replace(e,e+" "),c.appendChild(u)}},createLogos:function(c){return rpi.el({tag:"span",cl:"rpi-logos"},c.map(e=>t.logo(e)))},logo:function(c){return rpi.el({tag:"span",cl:["rpi-logo","rpi-logo-"+c]})},getCssVar:function(c){return a.style.getPropertyValue(c)},delPaginBtn:function(){if(p){const c=parseInt(h.getAttribute("data-offset")),e=parseInt(h.getAttribute("data-count")); 89c>=e&&rpi.Utils.rm(p)}}}}; 90Object.assign(rpi.View,{ajaxurl(a,b={}){if("function"===typeof b.api)return b.api(a);const d={widget:b.v2?"rpi_reviews":"brb_widget",reviews:b.v2?"rpi_reviews":"brb_get_reviews"},{id:k,offset:g,bid:m,provider:h}=a;a=new URLSearchParams({action:d[a.act],id:k,offset:g,size:a.size??b.pagination});m&&a.set("bid",m);h&&a.set("provider",h);return brb_vars.ajaxurl+"?"+a},allReviewsUrl(a){if(a.wr){let b=a.wr.split(":");a.id=b[1];a.provider=b[0]}switch(a.provider){case "google":return rpi.Utils.url("https://search.google.com/local/reviews?placeid="+a.id); 91case "facebook":return rpi.Utils.url("https://facebook.com/"+a.id+"/reviews");case "yelp":return rpi.Utils.url(a.url)}},writeReviewUrl(a){if(a.wr){let b=a.wr.split(":");a.id=b[1];a.provider=b[0]}switch(a.provider){case "google":return rpi.Utils.url("https://search.google.com/local/writereview?placeid="+a.id);case "facebook":return rpi.Utils.url("https://facebook.com/"+a.id+"/reviews");case "yelp":return rpi.Utils.url("https://www.yelp.com/writeareview/biz/"+a.id)}},stars(a,b,d=!1){switch(b){case "facebook":return d? 92rpi.el({tag:"span",cl:"rpi-stars",style:"--rating:"+a,text:a}):rpi.el({tag:"span",cl:"rpi-star-fb",data:{rating:a},text:(2>a?"doesn't ":"")+"recommends"});case "yelp":case "tripadvisor":return b=rpi.el({tag:"span",cl:"rpi-stars-"+b,data:{stars:Math.floor(2*a)/2}},Array.from({length:5},()=>rpi.el("i"))),d&&b.append(a),b;default:return rpi.el({tag:"span",cl:"rpi-stars",style:"--rating:"+a,text:d?a:null})}},starRating(a){return rpi.el({tag:"span",cl:"rpi-star",data:{rating:String(a)}})},sidebar(a,b){function d(e){e&& 93e.preventDefault();q.classList.remove("rpi-open");c&&(c.classList.remove("rpi-open"),document.body.style.overflow="");h&&h.focus();return!1}const {id:k}=a,g=a.root||document.body,m=["rpi-sb"];"left"===a.pos&&m.push("rpi-left");let h,p=document.getElementById(k),q;p?q=p.getElementsByClassName("rpi-sb")[0]:(p=rpi.el({id:k,cl:"rpi"}),q=rpi.el({cl:m,atts:{role:"dialog","aria-modal":"true","aria-label":a.label||"Reviews"},html:'<div class="rpi-sbh"></div><div class="rpi-sbc"></div><button type="button" class="rpi-x" aria-label="Close"></button>'}), 94p.appendChild(q),g.appendChild(p),a.overlay&&g.appendChild(rpi.el({cl:"rpi-overlay"})));const t=q.getElementsByClassName("rpi-x")[0],c=g.querySelector(".rpi-overlay");t.addEventListener("click",d);c&&c.addEventListener("click",d);b&&b(q);return{rt:p,sb:q,toggle(e){q.classList.contains("rpi-open")?d():(h=e||null,q.classList.add("rpi-open"),c&&(c.classList.add("rpi-open"),document.body.style.overflow="hidden"),t.focu
94s())}}},ajaxsb(a,b,d){const {id:k,bid:g,prov:m}=b.query,{data:h,...p}=b.options;d=["rpi-sb", 95k,g,m].filter(Boolean).join("_");return rpi.View.sidebar({root:a,id:d,pos:p.badge_pos,overlay:p.overlay},q=>{rpi.Utils.ajax(rpi.View.ajaxurl(b.query,p),"POST",function(t){var c=q.getElementsByClassName("rpi-sbc")[0];const e=t.bizs??(h?h.bizs.find(f=>(!g||f.id===g)&&(!m||f.provider===m)):{}),l={};g&&(l.bid=g);m&&(l.provider=m);rpi.Layout(c,{id:k,data:{bizs:[e],...t},header_hide_scale:!0,header_hide_count:!0,autoplay:!1,...p,view_mode:p.tag_sidebar,cfg:{filter:l}}).render();t=q.getElementsByClassName("rpi-sbh")[0]; 96c=c.getElementsByClassName("rpi-header")[0];t.appendChild(c)})})},widthAnim(a,b,d){const k=a.style,g=b+"px";"none"==k.display?(k.display="block",setTimeout(function(){k.opacity=0<k.opacity?0:1;k.width=k.width!=g?g:0},10)):(k.opacity=0<k.opacity?0:1,k.width=k.width!=g?g:0,setTimeout(function(){k.display="none"},d))}});rpi=rpi||{}; 97rpi.Media=function(a,b={},{root:d="rpi",card:k="rpi-card"}={}){let g,m=null,h=null;return h={init:function(){m=a.getElementsByClassName("rpi-thumb");for(let p=0;p<m.length;p++)m[p].setAttribute("data-idx",p),function(q,t){q.onclick=function(){h.show(q,t);return!1}}(m[p],p)},thumbs:function(p){if(Array.isArray(p)){var q=[];for(const t of p)p=document.createElement("img"),p.className="rpi-thumb rpi-clickable",p.src=t.thumbnailUrl,p.alt=rpi.Utils.__("Photo from customer review",b.trans),p.loading="lazy", 98q.push(p);return q}},clicks:function(p){p=p.getElementsByClassName("rpi-thumb");for(let q=0;q<p.length;q++)(function(t,c){t.onclick=function(){let e=parseInt(t.getAttribute("data-idx"));h.show(m[e],e);return!1}})(p[q],q)},show:function(p,q){if(!(0>q||q>=m.length)){var t=p.src.replace(/=s[0-9]{1,3}/g,"=s500");p=(p=rpi.Utils.getParent(p,[k,"rpi-review"]))?p.outerHTML:"";if(g){let c=g.querySelector(".rpi-lightbox-media img"),e=g.querySelector(".rpi-lightbox-review"),l=g.querySelector(".rpi-lightbox-prev"); 99next=g.querySelector(".rpi-lightbox-next");c.src=t;e.innerHTML!==p&&(e.innerHTML=p,h.clicks(e));l.onclick=function(f){h.show(m[q-1],q-1)};next.onclick=function(f){h.show(m[q+1],q+1)}}else g=document.createElement("div"),g.className="rpi-lightbox",g.innerHTML='<div class="rpi-x"></div><div class="rpi-lightbox-inner"><div class="rpi-lightbox-xxx"><div class="rpi-lightbox-content"><div class="rpi-lightbox-media"><div class="rpi-lightbox-btn rpi-lightbox-prev"></div><img src="'+t+'" alt=""><div class="rpi-lightbox-btn rpi-lightbox-next"></div></div><div class="'+ 100d+' rpi-lightbox-review">'+p+"</div></div></div></div>",t=g.querySelector(".rpi-x"),p=g.querySelector(".rpi-lightbox-prev"),next=g.querySelector(".rpi-lightbox-next"),t.onclick=function(){g.style.display="none"},g.onclick=function(c){g==c.target&&(g.style.display="none")},p.onclick=function(c){h.show(m[q-1],q-1)},next.onclick=function(c){h.show(m[q+1],q+1)},h.clicks(g),document.body.appendChild(g);g.style.display="flex"}}}};rpi=rpi||{}; 101rpi.Flash=function(a,b){if(b.data)a.appendChild(rpi.Flash.render(b));else{const d=a.getElementsByClassName("rpi-flash")[0];d&&d.dataset.opts&&(b={...b,...JSON.parse(d.dataset.opts)})}a=rpi.Flash.main(a,b);a.init();return a}; 102Object.assign(rpi.Flash,{LOGO:'<span style="position:relative;display:inline-block"><svg viewBox="0 0 1792 1792" width="44" height="44"><path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5t-30.5 14.5q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="#FFAF02"></path></svg><svg width="25" height="25" viewBox="0 0 1792 1792" style="position:absolute;bottom:0;right:0;border:1px solid #fff;border-radius:50%;background:#fff"><path d="M1299 813l-422 422q-19 19-45 19t-45-19l-294-294q-19-19-19-45t19-45l102-102q19-19 45-19t45 19l147 147 275-275q19-19 45-19t45 19l102 102q19 19 19 45t-19 45zm141 83q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z" fill="#8cc976"></path></svg></span>',render(a){return rpi.el({cl:["rpi-flash", 103a.flash_hide_mobile?"rpi-flash-hide":""],children:this.wrap(a)})},wrap(a){return rpi.el({cl:["rpi-flash-wrap","right"==a.flash_pos?"rpi-flash-right":""],children:this.content(a)})},content(a){return rpi.el({cl:"rpi-flash-content",children:[rpi.el({cl:"rpi-flash-card",children:[this.story(),this.form(a)]}),rpi.el({cl:"rpi-x"})]})},story(){return rpi.el({cl:["rpi-flash-story","rpi-flex"],data:{idx:1}})}
103,form(a){return rpi.el({cl:["rpi-flash-form","rpi-content"],children:[rpi.el({cl:"rpi-cards",data:{count:a.data.count, 104offset:a.data.reviews.length}}),rpi.el({style:"text-align:center",children:rpi.el({tag:"a",cl:"rpi-url",atts:{href:"#"},text:rpi.Utils.__("More reviews",a.trans)})})]})},main(a,b){const d="rpi_flash_"+a.dataset.id;if(sessionStorage.getItem(d))return{};const k=a.getElementsByClassName("rpi-flash")[0],g=a.getElementsByClassName("rpi-flash-content")[0],m=g.getElementsByClassName("rpi-x")[0],h=g.getElementsByClassName("rpi-flash-card")[0],p=g.getElementsByClassName("rpi-flash-story")[0],q=[],t=rpi.Common(a, 105b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),c=rpi.View(a,b,{common:t,cbp:r=>q.push(...r.reviews)});b.data&&c.addReviews(b.data,[]);let e=0,l=!1,f=1E3*(b.flash_start||3),u=1E3*(b.flash_visible||5),y=1E3*(b.flash_invisible||5),x=null;return{init(){this.destroy();t.init();c.init();this.fillReviews();q.length&&(m.onclick=this.hide,p.onclick=()=>this.showReview(),document.body.appendChild(a),setTimeout(()=>this.showStory(),f))},destroy(){clearTimeout(x);x=null},fillReviews(){let r=a.getElementsByClassName("rpi-card"); 106for(let w=0;w<r.length;w++){let z=r[w].dataset.rat;var A="";b.disable_review_time||(A=r[w].getElementsByClassName("rpi-time")[0],A=b.time_format?A.textContent:A.dataset.time);let C=r[w].getElementsByClassName("rpi-name"),D=r[w].getElementsByClassName("rpi-text"),F=r[w].querySelector("img.rpi-img");q.push({rating:z,text:D[0]?.firstChild?.nodeValue??"",time:A,author_avatar:b.hide_avatar?"":F?.getAttribute("src")??"",author_name:b.hide_name?"":C[0]?.textContent??"",author_url:b.hide_name?"":C[0]?.href?? 107"",provider:r[w].dataset.provider})}},showStory(){clearTimeout(x);if(!l)if(this.nextStory(q,e),g.className="rpi-flash-content rpi-flash-visible",e+1<q.length)e+=1;else{var r=a.getElementsByClassName("rpi-cards")[0];const A=parseInt(r.dataset.count,10)||0;r=parseInt(r.dataset.offset,10)||0;if(A>r){clearTimeout(x);c.loadNextReviews(b.pagination,w=>{q.push(...w.reviews);e=e+1<q.length?e+1:0;this.waitStory()});return}e=0}this.waitStory()},waitStory(){x=setTimeout(()=>{l||g&&g.matches(":hover")||(g.className= 108"rpi-flash-content");x=setTimeout(()=>this.showStory(),y)},u)},showReview(){l=!0;const r=h.querySelector(".rpi-flash-form .rpi-card:nth-child("+parseInt(p.dataset.idx)+")");r.className="rpi-card rpi-highlight";setTimeout(()=>{r.scrollIntoView({block:"center"})},50);h.className="rpi-flash-card rpi-flash-expanded";g.className="rpi-flash-content rpi-flash-visible";m.className="rpi-x rpi-xa";m.onclick=()=>{r.className="rpi-card";h.className="rpi-flash-card";m.className="rpi-x";l=!1;m.onclick=this.hide}}, 109hide(){let r=JSON.parse(sessionStorage.getItem(d)||"{}");r.hide=!0;sessionStorage.setItem(d,JSON.stringify(r));clearTimeout(x);a.getElementsByClassName("rpi-flash-content")[0].className="rpi-flash-content"},nextStory(r,A){const w=r[A];h.style.height="auto";k.style.setProperty("--flash-height","auto");if(p.firstChild){r=p.getElementsByClassName("rpi-flash-img");const z=p.getElementsByClassName("rpi-flash-head"),C=p.getElementsByClassName("rpi-flash-body"),D=p.getElementsByClassName("rpi-flash-footer"); 110b.flash_user_photo&&r.length&&(r[0].innerHTML=this.img(w));z.length&&(z[0].innerHTML=this.head(w));C.length&&(C[0].innerHTML=this.body(w));D.length&&(D[0].innerHTML=this.footer(w));p.dataset.idx=A+1}else p.innerHTML=this.createStory(r,A);p.dataset.provider=w.provider;setTimeout(()=>{k.style.setProperty("--flash-height",p.offsetHeight+"px");h.style.height=""},1)},createStory(r,A){r=r[A];return(b.flash_hide_logo&&!b.flash_user_photo?"":'<div class="rpi-flash-img">'+this.img(r)+"</div>")+'<div class="rpi-info"><div class="rpi-flash-head">'+ 111this.head(r)+'</div><div class="rpi-flash-body">'+this.body(r)+'</div><div class="rpi-flash-footer">'+this.footer(r)+"</div></div>"},img(r){return b.flash_user_photo?this.photoImg(r,44,44):rpi.Flash.LOGO},head(r){return b.flash_head?this.temp(r,b.flash_head):this.photo(r,16,16)+(b.hide_name?"":this.name(r))+"<span> "+b.text.m1.replace("%s",this.star(r))+"</span>"},body(r){return b.flash_body?this.temp(r,b.flash_body):rpi.View.stars(r.rating,r.provider).outerHTML+b.text.m2+this.provider(r)},footer(r){return b.flash_footer? 112this.temp(r,b.flash_footer):b.disable_review_time?"":t.time(r.time)}
112,name(r){return'<span class="rpi-flash-name">'+r.author_name+"</span> "},star(r){return'<span class="rpi-flash-rating rpi-star" data-rating="'+r.rating+'"></span>'},provider(r){return'<span class="rpi-logo rpi-logo-'+r.provider+'"></span>'},photo(r,A,w){return b.flash_user_photo||b.hide_avatar?"":this.photoImg(r,A,w)},photoImg(r,A,w){let z=r.author_avatar;return'<span class="rpi-flash-photo rpi-img-wrap"><img src="'+z+'" class="rpi-img" alt="'+ 113r.author_name+'" width="'+A+'" height="'+w+'" onerror="if(this.src!=\''+z+"')this.src='"+rpi.AVA+"'\"></span>"},temp(r,A){return decodeURIComponent(A).replace("{{review_rating}}",this.star(r)).replace("{{review_stars}}",rpi.View.stars(r.rating,r.provider).outerHTML).replace("{{review_text}}",t.trimtext(r.text,!0)).replace("{{review_time}}",t.time(r.time)).replace("{{review_provider}}",this.provider(r)).replace("{{review_name}}",this.name(r)).replace("{{review_name_url}}",r.author_url).replace("{{review_photo}}", 114this.photo(r,16,16))}}}});rpi=rpi||{};rpi.Badge=function(a,b){if(b.data)a.appendChild(rpi.Badge.render(b));else{const d=a.getElementsByClassName("rpi-badge-cnt")[0];d&&d.dataset.opts&&(b={...b,...JSON.parse(d.dataset.opts)})}a=rpi.Badge.main(a,b);a.init();return a}; 115Object.assign(rpi.Badge,{render(a){return rpi.el({cl:["rpi-badge-cnt","rpi-badge-"+(a.badge_pos||"right"),a.badge_display_block?"rpi-badge-block":"",a.hide_float_badge?"rpi-badge-hide":""],children:a.data.bizs.map(b=>this.badge(b,a))})},badge(a,b){return rpi.el({cl:"rpi-badge",style:"display:none",data:"summary"!==a.provider?{id:a.id,provider:a.provider}:null,children:[!b.badge_line_hide&&rpi.el({cl:"rpi-badge-line"}),b.badge_close&&rpi.el({cl:"rpi-x"}),this.body(a,b)]})},body(a,b){return rpi.el({cl:["rpi-badge-body", 116"rpi-flex","disable"!==b.badge_click&&"rpi-badge-clickable"],children:[this.img(a,b),this.info(a,b)]})},img(a,b){return"summary"===a.provider||b.badge_use_photo?rpi.el({tag:"img",cl:"rpi-logo",atts:{src:a.photo||"",alt:a.name||"",width:"44",height:"44",loading:b.lazy_load_img?"lazy":"eager"}}):rpi.el({cl:"rpi-logo rpi-logo-"+a.provider})},info(a,b){return rpi.el({cl:"rpi-info",children:[!b.badge_name_hide&&rpi.el({cl:"rpi-name",text:this.title(a,b)}),!b.badge_stars_hide&&rpi.View.stars(a.rating,a.provider, 117!0),!b.badge_based_hide&&rpi.el({cl:"rpi-based",text:"Based on "+a.total+" reviews"})]})},title(a,b){return"summary"===a.provider?b.summary_name||"Social Rating":b.badge_use_name?a.name||"":rpi.Utils.capit(a.provider)+" Rating"},main:function(a,b){const d=a.dataset.id;return{init(){[...a.getElementsByClassName("rpi-badge")].forEach(k=>this.initBadge(k))},initBadge(k){const g=`rpi_badge_${[d,k.dataset.provider,k.dataset.id].join("_")}`;var m=sessionStorage.getItem(g);k.style.display=m?"none":"inline-block"; 118if(!m){if(m=k.querySelector(".rpi-x"))m.onclick=()=>{sessionStorage.setItem(g,1);k.style.display="none"};if("sidebar"===b.badge_click){const h=k.querySelector(".rpi-badge-body");h&&(h.onclick=()=>{var {dataset:p}=h.parentNode;p=rpi.View.ajaxsb(document.body,{query:{act:"reviews",id:d,bid:p.id,prov:p.provider},options:b});setTimeout(p.toggle,5);h.onclick=p.toggle})}}}}}});rpi=rpi||{};rpi.Tag=function(a,b){const d=b.data;d&&a.appendChild(rpi.Tag.render(d,b));a=rpi.Tag.main(a,b);a.init();return a}; 119Object.assign(rpi.Tag,{render(a,b){return rpi.el({cl:this.cls(b),children:[b.tag_text?rpi.el({cl:"rpi-tag-text",text:b.tag_text}):null,this.cnt(a,b)]})},cls:function(a){const b=["rpi-tag"];a.tag_popup&&b.push("rpi-pop");a.tag_pos&&b.push(a.tag_pos);a.tag_push&&b.push("push");a.tag_expand&&b.push("expand");return b},cnt:function(a,b){a=a.bizs[0];return rpi.el({cl:"rpi-tag-cnt",atts:{onclick:this.click(a,b)},children:[rpi.el({tag:"span",cl:"rpi-logos",children:a.platform.map(d=>rpi.el({tag:"span",cl:"rpi-logo rpi-logo-"+ 120d}))}),rpi.View.stars(a.rating,a.provider,b.tag_rating)]})},click:function(a,b){let d=null;switch(b.tag_click){case "link":d=b.tag_link;break;case "reviews":d=rpi.View.allReviewsUrl(a)}a=b.open_link?"blank":"self";return d?"window.open('"+d+"', '_"+a+"');return false":null},main:function(a,b){const d=a.getAttribute("data-id"),k=a.getElementsByClassName("rpi-tag")[0],g=a.getElementsByClassName("rpi-tag-cnt")[0];return{init:function(){let m=a.querySelector(".rpi-stars[data-reviewus]");m&&(this.starsInit(m), 121m.onclick=function(h){h="svg"==h.target.tagName?h.target:h.target.parentNode;h=[...h.parentNode.children].indexOf(h);rpi.Utils.popup(2<h?this.getAttribute("data-reviewus"):"https://app.richplugins.com/feedback?s="+h,800,600)});0<b.tag_popup&&setTimeout(function(){k.className+=" rpi-pop-up"},1E3*b.tag_popup);"sidebar"===b.tag_click&&g&&(g.onclick=function(){const h=rpi.View.ajaxsb(a,{query:{act:"reviews",id:d},options:b});setTimeout(h.toggle,5);
121g.onclick=h.toggle})},starsInit:function(m){}}}}); 122rpi=rpi||{}; 123rpi.Slider=function(a,b,d,k){a.getAttribute("data-id");const g=a.getElementsByClassName(d.cnt)[0],m=a.getElementsByClassName(d.content)[0],h=m?m.getElementsByClassName(d.cards)[0]:null,p=m?m.getElementsByClassName(d.dotsWrap)[0]:null,q=m?m.getElementsByClassName(d.dots)[0]:null,t=h?parseInt(h.getAttribute("data-count")):0,{autoplay:c=!0,speed:e=5,mousestop:l=!0}=b;var f=null,u=m?m.getElementsByClassName(d.card):null,y="",x="",r=null,A=null,w=null,z=null,C=!1,D=!1,F=0,G=0;return f={init:function(n,v){rpi.Utils.isVisible(g)? 124(n&&n(),f.resize(),f.actions(),u.length&&f.swipeAutoStart(),v&&v(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(f)):setTimeout(f.init,300)},resize:function(n){let v=k.column.resize(),B=k.column.getCol();n&&h.scrollLeft!=n*f.reviewWidth()&&h.scrollTo(u[n].offsetLeft,0);!u.length||y==v&&x==B||(f.hasDots()&&(f.dotsInit(),f.dotSwipe(n,!0)),y=v,x=B)},actions:function(){l&&f.addMouseEvents();window.addEventListener("resize",f.resizeListener);h&&(h.addEventListener("scroll",f.scrollListener,!1),b.wheelscroll&& 125m.addEventListener("wheel",f.wheelListener,!1));var n=g.getElementsByClassName(d.btnPrev)[0];n&&(n.onclick=function(v){v.preventDefault();v.stopPropagation();f.btnClick(-1)});if(n=g.getElementsByClassName(d.btnNext)[0])n.onclick=function(v){v.preventDefault();v.stopPropagation();f.btnClick(1)}},resizeListener:function(){var n=G;clearTimeout(r);r=setTimeout(f.resize,150,n)},scrollListener:function(){clearTimeout(A);clearTimeout(w);w=setTimeout(f.scrollEnd,150)},wheelListener:function(n){var v=n.target; 126if((v=-1<v.className.indexOf(d.text)?v:-1<v.parentNode.className.indexOf(d.text)?v.parentNode:null)&&v.scrollHeight>v.clientHeight)return!0;n.preventDefault();F++;clearTimeout(z);z=setTimeout(f.wheelEnd,150,n)},addMouseEvents:function(){g.addEventListener("mouseover",f.mouseOver,!1);g.addEventListener("mouseleave",f.mouseLeave,!1)},delMouseEvents:function(){g.removeEventListener("mouseover",f.mouseOver);g.removeEventListener("mouseleave",f.mouseLeave)},mouseOver:function(){C=1;f.swipeAutoStop()}, 127mouseLeave:function(){C=0;f.swipeAutoStart()},btnClick:function(n){f.swipeManual(n*f.swipePerBtn())},wheelEnd:function(n){f.swipeManual(Math.sign(n.wheelDelta)*F*f.swipeStep());F=0},scrollEnd:function(){G=f.reviewsIdx();D?D=!1:f.loadNextReviews();(!l||C)&&l||(!b.clickstop||D)&&b.clickstop||f.swipeAutoStart();f.hasDots()&&f.dotSwipe(void 0,!0)},loadNextReviews:function(n){n=n?f.reviewsIdx()+parseInt(n):f.hasDots()?(n=q.getElementsByClassName("active")[0])?parseInt(n.getAttribute("data-index"))*f.swipePerDot(): 128f.reviewsIdx():f.reviewsIdx();n=f.getAjaxSize(n);0<n&&k.view.loadNextReviews(n)},getAjaxSize:function(n){let v=0;const B=parseInt(h.getAttribute("data-offset")),E=parseInt(b.pagination);if(t>B){let H=n-B;Math.abs(H)<3*f.swipePerDot()?v=E:H&&(v=Math.ceil(n/E)*E-B)}n=B+v-t;return 0<n?v-n:v},dotsInit:function(){if(q){var n=Math.round(t/f.swipePerDot());q.innerHTML="";for(let v=0;v<n;v++){let B=document.createElement("button");B.className=d.dot;B.setAttribute("data-index",v);B.setAttribute("title",v); 129B.setAttribute("aria-label","Go to page "+v);B.onclick=f.dotClick;q.appendChild(B)}f.dotsPadding()}},dotClick:function(n){n.preventDefault();n.stopPropagation();n=parseInt(this.getAttribute("data-index"));var v=q.getElementsByClassName("active")[0];v=parseInt(v.getAttribute("data-index"));f.swipeManual(Math.abs(n-v)*f.swipePerDot()*Math.sign(n-v))},dotsPadding:function(){let n=p.getBoundingClientRect().height;g.style.paddingBottom=n+"px"},dotSwipe:function(n,v){n=Math.round((void 0!==n?n:f.reviewsIdx())/ 130f.swipePerDot());n=0>n?0:n>=q.childNodes.length?q.childNodes.length-1:n;n=q.querySelector("."+d.dot+'[data-index="'+n+'"]');let B=q.getElementsByClassName("active")[0];f.dotActivate(B,n);f.dotScroll(n,v)},dotScroll:function(n,v){let B=Math.round(q.scrollWidth/q.childNodes.length),E=Math.floor(Math.round(q.offsetWidth/B)/2);v?q.scrollTo(n.offsetLeft-E*B,0):q.scrollTo({left:n.offsetLeft-E*B,behavior:"smooth"})},dotActivate:function(n,v){n&&(n.classList.remove("active"),n.classList.remove("s1"),n.previousSibling&& 131(n.previousSibling.classList.remove("s2"),n.previousSibling.previousSibling&&n.previousSibling.previousSibling.classList.remove("s3")),n.nextSibling&&(n.nextSibling.classList.remove("s2"),n.nextSibling.nextSibling&&n.nextSibling.nextSibling.classList.remove("s3")));v&&(v.classList.add("active"),v.classList.add("s1"),v.previousSibling&&(v.previousSibling.classList.add("s2"),v.previousSibling.previousSibling&&v.previousSibling.previousSibling.classList.add("s3")),v.nextSibling&&(v.nextSibling.classList.add("s2"), 132v.nextSibling.nextSibling&&v.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(n){D=!0;f.loadNextReviews(n);f.scroll(n);b.clickstop&&(f.swipeAutoStop(),f.delMouseEvents())},swipeAuto:function(){if(rpi.Utils.isInViewport(g))if(f.isScrollEnd())f.scroll(-(t-f.reviewsPerView()));else{let n=f.swipeStep()<f.reviewsAhead()?f.swipeStep():f.reviewsAhead();f.scroll(n)}f.swipeAutoStart()},scroll:function(n){n=f.reviewsIdx()+parseInt(n);let v=rpi.Utils.isRTL()?n+f.reviewsPerView()-1:n;v=0>v? 1330:v>=u.length?u.length-1:v;-1<v&&v<u.length&&(h.scrollTo({left:u[v].offsetLeft,behavior:"smooth"}),f.hasDots()&&f.dotSwipe(n))},swipeAutoStart:function(){c&&(A=setTimeout(f.swipeAuto,1E3*parseInt(e)))},swipeAutoStop:function(){clearTimeout(A);w&&setTimeout(function(){clearTimeout(w)},100)},isScrollEnd:function(){var n=h.querySelector("."+d.card+":last-child"),v=n.getBoundingClientRect();n=n.parentNode.getBoundingClientRect();return(2>Math.abs(n.left-v.left)||n.left<=v.left)&&v.left<n.right&&(2>Math.abs(n.right- 134v.right)||n.right>=v.right)&&v.right>n.left},swipeStep:function(){return b.swipe_step||f.reviewsPerView()},swipePerBtn:function(){return b.swipe_per_btn||f.reviewsPerView()},swipePerDot:function(){return b.swipe_per_dot||f.reviewsPerView()},reviewWidth:function(){return Math.round(h.scrollWidth/u.length)},reviewHeight:function(){return u[0].offsetHeight},reviewsPerView:function(){return Math.round(h.offsetWidth/f.reviewWidth())},reviewsIdx:function(){let n=rpi.Utils.isRTL()?-h.scrollLeft:h.scrollLeft; 135return Math.round(n/f.reviewWidth())},reviewsAhead:function(){return u.length-(f.reviewsIdx()+f.reviewsPerView())},hasDots:function(){return q&&!b.hide_dots&&0<f.swipePerDot()},setBreakpoints:function(n){k.column.setBreakpoints(n);f.resize()},clear:function(){clearTimeout(r);clearTimeout(A);clearTimeout(w);clearTimeout(z);window.removeEventListener("resize",f.resizeListener);h.removeEventListener("scroll",f.scrollListener);m.removeEventListener("wheel",f.wheelListener)}}};rpi=rpi||{}; 136rpi.Temp=function(a,b){const d=b.data;d&&(a.innerHTML=rpi.Temp.render(d,b));a=rpi.Temp.main(a,b);d&&a.init(d);return a}; 137Object.assign(rpi.Temp,{HEADER:"<div class=\"rpi-header\" data-temp='{{temp_rating}}'></div>",CONTENT:'<div class="rpi-content" data-temp=\'{{temp_review}}\' data-count="{{count}}" data-offset="{{offset}}"></div>',PAGIN:'<a href="#" class="rpi-url">{{label}}</a>',RATINGS:'<div class="rpi-rating">\n {{photo}}\n <a href="{{writereview_url}}" onclick="rpi.Utils.popup(this.href,620,580);return !1;">{{name}}</a>\n {{rating}} {{stars}}\n Based on <a href="{{reviews_url}}" target="_blank" rel="noopener">{{count}} reviews</a>\n </div>',REVIEWS:'<div class="rpi-review">\n <div>{{review_photo}
137} {{review_name_url}} {{review_time}} {{review_logo}}</div>\n <div>{{review_stars}}</div>\n <div class="rpi-text">{{review_text}}</div>\n {{review_media}}\n <div>{{review_reply}}</div>\n </div>', 138render(a,b){b=a.options??{};let d="";!1!==b.rating_temp_on&&(d+=this.fill(this.HEADER,{temp_rating:this.esc(b.rating_temp||encodeURIComponent(this.RATINGS))}));!1!==b.review_temp_on&&(d+=this.fill(this.CONTENT,{temp_review:this.esc(b.review_temp||encodeURIComponent(this.REVIEWS)),count:this.esc(a.count),offset:this.esc((a.reviews??[]).length)}));return d},ratings(a,b,d){const k=d.bizPhoto(b);return rpi.Temp.fill(a,{scale:d.scale(b),name:rpi.Temp.esc(b.name),photo:k?.outerHTML??"",stars:rpi.View.stars(b.rating, 139b.provider,!1).outerHTML,rating_stars:rpi.View.stars(b.rating,b.provider,!0).outerHTML,rating:rpi.Temp.esc(b.rating),count:rpi.Temp.esc(b.total??b.review_count),reviews_url:rpi.Temp.esc(rpi.Temp.safeUrl(rpi.View.allReviewsUrl(b))),writereview_url:rpi.Temp.esc(rpi.Temp.safeUrl(rpi.View.writeReviewUrl(b)))})},reviews(a,b,d){const k=b.media?d.media.thumbs(b.media).map(g=>g.outerHTML).join(" "):"";return rpi.Temp.fill(a,{review_photo:d.reviewAvatar(b).outerHTML,review_provider:rpi.Temp.esc(b.provider), 140review_logo:d.logo(b.provider).outerHTML,review_url:rpi.Temp.esc(rpi.Temp.safeUrl(b.author_url)),review_name:rpi.Temp.esc(b.author_name),review_name_url:d.reviewName(b).outerHTML,review_time:d.reviewTime(b).outerHTML,review_rating:rpi.Temp.esc(b.rating),review_stars:rpi.View.stars(b.rating,b.provider).outerHTML,review_text:rpi.Temp.esc(b.text??""),review_media:k,review_reply:rpi.Temp.esc(b.reply??"")})},fill(a,b){return Object.entries(b).reduce((d,[k,g])=>d.replace(new RegExp(`\\{\\{${k}\\}\\}`,"g"), 141g),a)},esc(a){return String(a??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},safeUrl(a){a=String(a??"").trim();if(!a)return"";if(/^(#|\/|\?|\.)/.test(a))return a;try{const {protocol:b,href:d}=new URL(a,window.location.href);return["http:","https:","mailto:","tel:"].includes(b.toLowerCase())?d:"#"}catch{return"#"}},decode(a,b){try{return decodeURIComponent(a||encodeURIComponent(b))}catch{return b}},main(a,b){let d=null;const {decode:k, 142ratings:g,reviews:m,RATINGS:h,REVIEWS:p}=rpi.Temp,q=a.dataset.id,t=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),c=rpi.View(a,b,{common:t}),e=a.querySelector(".rpi-header"),l=a.querySelector(".rpi-content"),f=(u,y,x)=>{const r=document.createElement("span");for(r.innerHTML=y;r.firstChild;)y=r.firstChild,x&&y.nodeType===Node.ELEMENT_NODE&&x(y),u.appendChild(y)};if(l&&b.pagination){let u=a.getElementsByClassName("rpi-url")[0];u=u??rpi.el({tag:"button",cl:"rpi-url",text:rpi.Utils.__("More reviews", 143b.trans)});u.onclick=()=>{var y=parseInt(l.dataset.offset,10)||0;y=c.getAjaxUrl({id:q,offset:y,api:b.api,act:"reviews",size:b.pagination});rpi.Utils.ajax(y,"POST",x=>{x.reviews&&d.initReviews(x.reviews);l.setAttribute("data-count",x.count);l.setAttribute("data-offset",x.offset);x.offset>=x.count&&rpi.Utils.rm(u)});return!1};a.appendChild(u)}t.init();return d={init(u){u&&(e&&u.bizs&&this.initRatings(u.bizs),l&&u.reviews&&this.initReviews(u.reviews))},initRatings(u){if(e){var y=k(e.dataset.temp,h); 144for(const x of u)f(e,g(y,x,c))}},initReviews(u){if(l){var y=k(l.dataset.temp,p);for(const x of u)f(l,m(y,x,c),r=>t.initOnce(r))}}}}});rpi=rpi||{}; 145rpi.Layout=function(a,b){function d(){var h=["rpi-cnt","rpi-col-m","rpi-"+b.view_mode];"grid"!==b.view_mode&&"slider"!==b.view_mode||h.push("rpi-sh");h=rpi.el({cl:h,data:{opts:"{}"},style:"visibility:var(--visible, hidden)"});m.bizs&&h.appendChild(k());m.reviews&&h.appendChild(g());a.appendChild(h);const p=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),q=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),t=rpi.View(a,b,{common:p,...(b.cfg??{})});m.bizs&&m.bizs.length&& 146t.addBusiness(m.bizs[0],b);t.addReviews(m,[]);"slider"===b.view_mode?rpi.Slider(a,b,{cnt:"rpi-cnt",col:"rpi-col",content:"rpi-content",cards:"rpi-cards",card:"rpi-card",text:"rpi-text",btnPrev:"rpi-slider-prev",btnNext:"rpi-slider-next",dotsWrap:"rpi-dots-wrap",dots:"rpi-dots",dot:"rpi-dot"},{view:t,column:q}).init(function(){p.init()},function(){t.init();console.log("RichPlugins slider initialized")}):(p.init(),t.init());return h}function k(){var h="slider"===b.view_mode;const p=["rpi-header",`rpi-header_${1==
147(h?b.slider_head_pos||2:b.head_pos||1)?"top":"row"}`];h&&!b.slider_hide_nextprev&&p.push("rpi-header_pad");h=rpi.el({cl:p,data:{opts:""}});h.appendChild(rpi.el({cl:"rpi-cards"}));return h}function g(){var h="slider"===b.view_mode;const p=rpi.el({cl:["rpi-content",`rpi-content_${1==(h?b.slider_head_pos:b.head_pos)?"top":"row"}`]});h&&!b.slider_hide_nextprev&&p.appendChild(rpi.el({tag:"button",cl:"rpi-ltgt rpi-lt rpi-slider-prev",atts:{"aria-label":"Previous reviews",tabindex:"0"}}));var q=p.appendChild; 148var t=["rpi-cards"];var c="slider"===b.view_mode;c&&!b.slider_hide_nextprev&&t.push("rpi-slides-bite");var e=m.reviews?.length;t=rpi.el({cl:t,data:{offset:e,count:m.count}});!c&&0<b.pagination&&m.count>e&&(c=rpi.el({style:"text-align:center"}),e=rpi.el({tag:"button",cl:"rpi-url",text:"More reviews"}),c.appendChild(e),e=document.createDocumentFragment(),e.appendChild(t),e.appendChild(c),t=e);q.call(p,t);h&&!b.slider_hide_nextprev&&p.appendChild(rpi.el({tag:"button",cl:"rpi-ltgt rpi-gt rpi-slider-next", 149atts:{"aria-label":"Next reviews",tabindex:"0"}}));h&&!b.slider_hide_pagin&&(h=rpi.el({cl:"rpi-dots-wrap"}),h.appendChild(rpi.el({cl:"rpi-dots"})),p.appendChild(h));return p}const m=b.data;return{render:function(){a.innerHTML="";b.style_vars&&(a.style.cssText=b.style_vars);switch(b.view_mode){case "tag":rpi.Tag(a,b);break;case "flash":rpi.Flash(a,b);break;case "badge":rpi.Badge(a,b);break;case "temp":rpi.Temp(a,b);break;default:d()}}}}; 150var RichPlugins=RichPlugins||{opts(a,b,d){a=a.getElementsByClassName(d)[0];return{...b,...(a?.dataset?.opts?JSON.parse(a.dataset.opts):{})}},Tag:function(a,b){return{init:()=>rpi.Tag(a,RichPlugins.opts(a,b,"rpi-tag-cnt"))}},Flash:function(a,b){return{init:()=>rpi.Flash(a,RichPlugins.opts(a,b,"rpi-flash"))}},Badge:function(a,b){return{init:()=>rpi.Badge(a,RichPlugins.opts(a,b,"rpi-badge-cnt"))}},Temp:function(a,b){return{init:()=>rpi.Temp(a,b)}},List:function(a,b){const d=rpi.Common(a,b,{time:"rpi-time", 151text:"rpi-text",readmore:"rpi-readmore"}),k=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),g=rpi.View(a,b,{common:d});return{init:()=>{d.init();k.init();g.init()}}},Slider:function(a,b){const d=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),k=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),g=rpi.View(a,b,{common:d}),m=rpi.Slider(a,RichPlugins.opts(a,{},"rpi-cnt"),{cnt:"rpi-cnt",col:"rpi-col",content:"rpi-content",cards:"rpi-cards",card:"rpi-card", 152text:"rpi-text",btnPrev:"rpi-slider-prev",btnNext:"rpi-slider-next",dotsWrap:"rpi-dots-wrap",dots:"rpi-dots",dot:"rpi-dot"},{view:g,column:k});return{init:()=>m.init(d.init.bind(d),g.init.bind(g))}},init:function(a){a.setAttribute("data-exec","1");let b=JSON.parse(a.getAttribute("data-opts")),d=rpi.Utils.capit(b.layout);"List"==d||"Grid"==d?RichPlugins.List(a,b).init():RichPlugins[d]&&RichPlugins[d](a,b).init()}}; 153window.rpi_boot=function(){function a(){const d=document.querySelectorAll('.rpi[data-exec=""]');if(!d.length)return!1;rpi.Utils.clear();d.forEach(k=>RichPlugins.init(k));return!0}function b(){(new MutationObserver((d,k)=>{a()&&k.disconnect()})).observe(document.body,{childList:!0,subtree:!0})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{a()||b()}):a()||b()};window.rpi_boot();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.