WordPress database error: [Cannot add foreign key constraint]
CREATE TABLE IF NOT EXISTS `wp_stw_collections` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned NOT NULL, `url_code` varchar(255) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT 'My Wishlist', `description` text, `status` varchar(50) NOT NULL DEFAULT 'publish', `is_default` tinyint(1) NOT NULL DEFAULT 0, `is_public` tinyint(1) NOT NULL DEFAULT 0, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `is_default` (`is_default`), KEY `is_public` (`is_public`), CONSTRAINT `fk_wishlist_collections_user` FOREIGN KEY (`user_id`) REFERENCES `wp_users` (`ID`) ON DELETE CASCADE ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci

WordPress database error: [Cannot add foreign key constraint]
CREATE TABLE IF NOT EXISTS `wp_stw_collection_items` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `collection_id` bigint(20) unsigned NOT NULL, `product_id` bigint(20) unsigned NOT NULL, `variation_id` bigint(20) DEFAULT 0, `sort_order` int(11) DEFAULT 0, `quantity` int(11) NOT NULL DEFAULT 1, `priority` enum('low','medium','high') DEFAULT 'medium', `notes` text, `added_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `collection_product_variation` (`collection_id`,`product_id`,`variation_id`), KEY `collection_id` (`collection_id`), KEY `product_id` (`product_id`), KEY `variation_id` (`variation_id`), KEY `priority` (`priority`), KEY `added_at` (`added_at`), CONSTRAINT `fk_wishlist_items_collection` FOREIGN KEY (`collection_id`) REFERENCES `wp_stw_collections` (`id`) ON DELETE CASCADE, CONSTRAINT `fk_wishlist_items_product` FOREIGN KEY (`product_id`) REFERENCES `wp_posts` (`ID`) ON DELETE CASCADE ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci

WordPress database error: [Cannot add foreign key constraint]
CREATE TABLE IF NOT EXISTS `wp_stw_collection_sharing` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `collection_id` bigint(20) unsigned NOT NULL, `share_token` varchar(64) NOT NULL, `expires_at` datetime DEFAULT NULL, `view_count` int(11) DEFAULT 0, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `share_token` (`share_token`), KEY `collection_id` (`collection_id`), KEY `expires_at` (`expires_at`), CONSTRAINT `fk_wishlist_shares_collection` FOREIGN KEY (`collection_id`) REFERENCES `wp_stw_collections` (`id`) ON DELETE CASCADE ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci

WordPress database error: [Table 'blackbro_wrdp1.wp_stw_collection_items' doesn't exist]
SHOW INDEX FROM `wp_stw_collection_items` WHERE Key_name = 'collection_product'

WordPress database error: [Table 'blackbro_wrdp1.wp_stw_collection_items' doesn't exist]
SHOW INDEX FROM `wp_stw_collection_items` WHERE Key_name = 'variation_id'

WordPress database error: [Table 'blackbro_wrdp1.wp_stw_collection_items' doesn't exist]
ALTER TABLE `wp_stw_collection_items` ADD KEY `variation_id` (`variation_id`)

WordPress database error: [Table 'blackbro_wrdp1.wp_stw_collection_items' doesn't exist]
SHOW INDEX FROM `wp_stw_collection_items` WHERE Key_name = 'collection_product_variation'

WordPress database error: [Table 'blackbro_wrdp1.wp_stw_collection_items' doesn't exist]
ALTER TABLE `wp_stw_collection_items` ADD UNIQUE KEY `collection_product_variation` (`collection_id`,`product_id`,`variation_id`)

jQuery(function(s){"use strict";var r={init:function(){s(document.body).on("keyup change","form.register #reg_password, form.checkout #account_password, form.edit-account #password_1, form.lost_reset_password #password_1",this.strengthMeter),s("form.checkout #createaccount").trigger("change")},strengthMeter:function(){var e,t=s("form.register, form.checkout, form.edit-account, form.lost_reset_password"),a=s('button[type="submit"]',t),o=s("#reg_password, #account_password, #password_1",t),d=o.val(),n=!t.is("form.checkout");r.includeMeter(t,o),e=r.checkPasswordStrength(t,o),wc_password_strength_meter_params.stop_checkout&&(n=!0),d.length>0&&e';(r=e.parent()).is(".password-input")?r.after(t):e.after(t),e.attr("aria-describedby","password_strength"),s(document.body).trigger("wc-password-strength-added")}else t.show(),s(document.body).trigger("wc-password-strength-show")},checkPasswordStrength:function(s,r){var e=s.find(".woocommerce-password-strength"),t=s.find(".woocommerce-password-hint"),a=''+wc_password_strength_meter_params.i18n_password_hint+"",o=wp.passwordStrength.meter(r.val(),wp.passwordStrength.userInputDisallowedList()),d="";if(e.removeClass("short bad good strong"),t.remove(),e.is(":hidden"))return o;switch(o0});e.length>0&&setTimeout(function(){t(e[0]).attr("tabindex","-1").focus()})});; /*! js-cookie v3.0.5 | MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t=0&&parseFloat(e(this).val())'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready);; /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=R(Array.prototype.forEach),m=R(Array.prototype.lastIndexOf),f=R(Array.prototype.pop),p=R(Array.prototype.push),d=R(Array.prototype.splice),h=R(String.prototype.toLowerCase),g=R(String.prototype.toString),T=R(String.prototype.match),y=R(String.prototype.replace),E=R(String.prototype.indexOf),A=R(String.prototype.trim),_=R(Object.prototype.hasOwnProperty),N=R(RegExp.prototype.test),b=(S=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&arguments[2]!==undefined?arguments[2]:h;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function O(e){for(let t=0;t/gm),G=a(/\$\{[\w\W]*/gm),Y=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),j=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:j,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:V,DATA_ATTR:Y,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:B,TMPLIT_EXPR:G});const J={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Q=function(){return"undefined"==typeof window?null:window},ee=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const o="woocommerce-dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(r){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},te=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};return function ne(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Q();const n=e=>ne(e);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==J.document||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:s,Node:S,Element:R,NodeFilter:O,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:W,DOMParser:G,trustedTypes:Y}=t,j=R.prototype,q=L(j,"cloneNode"),$=L(j,"remove"),V=L(j,"nextSibling"),oe=L(j,"childNodes"),re=L(j,"parentNode");if("function"==typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:le,createNodeIterator:ce,createDocumentFragment:se,getElementsByTagName:ue}=o,{importNode:me}=r;let fe=te();n.isSupported="function"==typeof e&&"function"==typeof re&&le&&le.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:pe,ERB_EXPR:de,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:Ae}=Z;let{IS_ALLOWED_URI:_e}=Z,Ne=null;const be=w({},[...D,...C,...I,...v,...U]);let Se=null;const Re=w({},[...P,...z,...H,...F]);let we=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,xe=null,Le=!0,De=!0,Ce=!1,Ie=!0,ke=!1,ve=!0,Me=!1,Ue=!1,Pe=!1,ze=!1,He=!1,Fe=!1,Be=!0,We=!1;let Ge=!0,Ye=!1,je={},Xe=null;const qe=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const Ke=w({},["audio","video","img","source","image","track"]);let Ve=null;const Ze=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,ot=null;const rt=w({},[Je,Qe,et],g);let it=w({},["mi","mo","mn","ms","mtext"]),at=w({},["annotation-xml"]);const lt=w({},["title","style","font","a","script"]);let ct=null;const st=["application/xhtml+xml","text/html"];let ut=null,mt=null;const ft=o.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!mt||mt!==e){if(e&&"object"==typeof e||(e={}),e=x(e),ct=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===ct?g:h,Ne=_(e,"ALLOWED_TAGS")?w({},e.ALLOWED_TAGS,ut):be,Se=_(e,"ALLOWED_ATTR")?w({},e.ALLOWED_ATTR,ut):Re,ot=_(e,"ALLOWED_NAMESPACES")?w({},e.ALLOWED_NAMESPACES,g):rt,Ve=_(e,"ADD_URI_SAFE_ATTR")?w(x(Ze),e.ADD_URI_SAFE_ATTR,ut):Ze,$e=_(e,"ADD_DATA_URI_TAGS")?w(x(Ke),e.ADD_DATA_URI_TAGS,ut):Ke,Xe=_(e,"FORBID_CONTENTS")?w({},e.FORBID_CONTENTS,ut):qe,Oe=_(e,"FORBID_TAGS")?w({},e.FORBID_TAGS,ut):x({}),xe=_(e,"FORBID_ATTR")?w({},e.FORBID_ATTR,ut):x({}),je=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,Le=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,ve=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||X,tt=e.NAMESPACE||et,it=e.MATHML_TEXT_INTEGRATION_POINTS||it,at=e.HTML_INTEGRATION_POINTS||at,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(De=!1),He&&(ze=!0),je&&(Ne=w({},U),Se=[],!0===je.html&&(w(Ne,D),w(Se,P)),!0===je.svg&&(w(Ne,C),w(Se,z),w(Se,F)),!0===je.svgFilters&&(w(Ne,I),w(Se,z),w(Se,F)),!0===je.mathMl&&(w(Ne,v),w(Se,H),w(Se,F))),e.ADD_TAGS&&(Ne===be&&(Ne=x(Ne)),w(Ne,e.ADD_TAGS,ut)),e.ADD_ATTR&&(Se===Re&&(Se=x(Se)),w(Se,e.ADD_ATTR,ut)),e.ADD_URI_SAFE_ATTR&&w(Ve,e.ADD_URI_SAFE_ATTR,ut),e.FORBID_CONTENTS&&(Xe===qe&&(Xe=x(Xe)),w(Xe,e.FORBID_CONTENTS,ut)),Ge&&(Ne["#text"]=!0),Me&&w(Ne,["html","head","body"]),Ne.table&&(w(Ne,["tbody"]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else ie===undefined&&(ie=ee(Y,a)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),mt=e}},ht=w({},[...C,...I,...k]),gt=w({},[...v,...M]),Tt=function(e){p(n.removed,{element:e});try{re(e).removeChild(e)}catch(t){$(e)}},yt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(o){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ze||He)try{Tt(t)}catch(o){}else try{t.setAttribute(e,"")}catch(o){}},Et=function(e){let t=null,n=null;if(Pe)e=""+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ct&&tt===et&&(e=''+e+"");const r=ie?ie.createHTML(e):e;if(tt===et)try{t=(new G).parseFromString(r,ct)}catch(a){}if(!t||!t.documentElement){t=le.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),tt===et?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},At=function(e){return ce.call(e.ownerDocument||e,e,O.SHOW_ELEMENT|O.SHOW_COMMENT|O.SHOW_TEXT|O.SHOW_PROCESSING_INSTRUCTION|O.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Nt=function(e){return"function"==typeof S&&e instanceof S};function bt(e,t,o){u(e,e=>{e.call(n,t,o,mt)})}const St=function(e){let t=null;if(bt(fe.beforeSanitizeElements,e,null),_t(e))return Tt(e),!0;const o=ut(e.nodeName);if(bt(fe.uponSanitizeElement,e,{tagName:o,allowedTags:Ne}),ve&&e.hasChildNodes()&&!Nt(e.firstElementChild)&&N(/<[/\w!]/g,e.innerHTML)&&N(/<[/\w!]/g,e.textContent))return Tt(e),!0;if(e.nodeType===J.progressingInstruction)return Tt(e),!0;if(ve&&e.nodeType===J.comment&&N(/<[/\w]/g,e.data))return Tt(e),!0;if(!Ne[o]||Oe[o]){if(!Oe[o]&&wt(o)){if(we.tagNameCheck instanceof RegExp&&N(we.tagNameCheck,o))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(o))return!1}if(Ge&&!Xe[o]){const t=re(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=q(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,V(e))}}return Tt(e),!0}return e instanceof R&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=h(e.tagName),o=h(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===o||it[o]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&at[o]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!at[o])&&!(t.namespaceURI===Je&&!it[o])&&!gt[n]&&(lt[n]||!ht[n]):!("application/xhtml+xml"!==ct||!ot[e.namespaceURI]))}(e)?(Tt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!N(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===J.text&&(t=e.textContent,u([pe,de,he],e=>{t=y(t,e," ")}),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt(fe.afterSanitizeElements,e,null),!1):(Tt(e),!0)},Rt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in o||n in ft))return!1;if(De&&!xe[t]&&N(ge,t));else if(Le&&N(Te,t));else if(!Se[t]||xe[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&N(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&N(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&N(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if(Ve[t]);else if(N(_e,y(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!$e[e])if(Ce&&!N(ye,y(n,Ee,"")));else if(n)return!1;return!0},wt=function(e){return"annotation-xml"!==e&&T(e,Ae)},Ot=function(e){bt(fe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:undefined};let r=t.length;for(;r--;){const a=t[r],{name:l,namespaceURI:c,value:s}=a,m=ut(l),p=s;let d="value"===l?p:A(p);if(o.attrName=m,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=undefined,bt(fe.uponSanitizeAttribute,e,o),d=o.attrValue,!We||"id"!==m&&"name"!==m||(yt(l,e),d="user-content-"+d),ve&&N(/((--!?|])>)|<\/(style|title)/i,d)){yt(l,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){yt(l,e);continue}if(!Ie&&N(/\/>/i,d)){yt(l,e);continue}ke&&u([pe,de,he],e=>{d=y(d,e," ")});const h=ut(e.nodeName);if(Rt(h,m,d)){if(ie&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(c);else switch(Y.getAttributeType(h,m)){case"TrustedHTML":d=ie.createHTML(d);break;case"TrustedScriptURL":d=ie.createScriptURL(d)}if(d!==p)try{c?e.setAttributeNS(c,l,d):e.setAttribute(l,d),_t(e)?Tt(e):f(n.removed)}catch(i){yt(l,e)}}else yt(l,e)}bt(fe.afterSanitizeAttributes,e,null)},xt=function Lt(e){let t=null;const n=At(e);for(bt(fe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)bt(fe.uponSanitizeShadowNode,t,null),St(t),Ot(t),t.content instanceof c&&Lt(t.content);bt(fe.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},o=null,i=null,a=null,l=null;if((nt=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Nt(e)){if("function"!=typeof e.toString)throw b("toString is not a function");if("string"!=typeof(e=e.toString()))throw b("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ue||dt(t),n.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=ut(e.nodeName);if(!Ne[t]||Oe[t])throw b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)(i=(o=Et("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===J.element&&"BODY"===i.nodeName?o=i:"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!ze&&!ke&&!Me&&-1===e.indexOf("<"))return ie&&Fe?ie.createHTML(e):e;if(!(o=Et(e)))return ze?null:Fe?ae:""}o&&Pe&&Tt(o.firstChild);const s=At(Ye?e:o);for(;a=s.nextNode();)St(a),Ot(a),a.content instanceof c&&xt(a.content);if(Ye)return e;if(ze){if(He)for(l=se.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Se.shadowroot||Se.shadowrootmode)&&(l=me.call(r,l,!0)),l}let m=Me?o.outerHTML:o.innerHTML;return Me&&Ne["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&N(K,o.ownerDocument.doctype.name)&&(m="\n"+m),ke&&u([pe,de,he],e=>{m=y(m,e," ")}),ie&&Fe?ie.createHTML(m):m},n.setConfig=function(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};dt(e),Ue=!0},n.clearConfig=function(){mt=null,Ue=!1},n.isValidAttribute=function(e,t,n){mt||dt({});const o=ut(e),r=ut(t);return Rt(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&p(fe[e],t)},n.removeHook=function(e,t){if(t!==undefined){const n=m(fe[e],t);return-1===n?undefined:d(fe[e],n,1)[0]}return f(fe[e])},n.removeHooks=function(e){fe[e]=[]},n.removeAllHooks=function(){fe=te()},n}()});; var rpi=rpi||{};rpi.Time={getFormatTime:function(a,b,d){a=new Date(this._ms(a));var t=d||"en";d=function(n){return 10>n?"0"+n:""+n};var m=a.getHours(),h=((new Intl.DateTimeFormat(t,{day:"numeric",month:"short"})).formatToParts(a).find(function(n){return"month"===n.type})||{}).value;t=(new Intl.DateTimeFormat(t,{day:"numeric",month:"long"})).formatToParts(a).find(function(n){return"month"===n.type}).value;var g=a.getFullYear(),l=String(g).slice(-2),p={yyyy:g,Y:g,yy:l,y:l,MMMM:t,MMM:h,M:h,MM:d(a.getMonth()+1),m:d(a.getMonth()+1),dd:d(a.getDate()),d:d(a.getDate()),HH:d(m),H:m,hh:d(m%12||12),h:m%12||12,mm:d(a.getMinutes()),i:d(a.getMinutes()),ss:d(a.getSeconds()),s:d(a.getSeconds()),a:12<=m?"pm":"am",A:12<=m?"PM":"AM"};return b.replace(/(MMMM|MMM|yyyy|HH|hh|MM|mm|dd|ss|yy|H|h|M|m|d|Y|y|i|s|a|A)/g,n=>null!=p[n]?p[n]:n)},getTimeAgo:function(a,b){a=(this._ms(a)-Date.now())/1E3;var d=Math.abs(a);b=new Intl.RelativeTimeFormat(b||"en",{numeric:"auto"});return 60>d?b.format(Math.round(a),"second"):3600>d?b.format(Math.round(a/60),"minute"):86400>d?b.format(Math.round(a/3600),"hour"):2592E3>d?b.format(Math.round(a/86400),"day"):31536E3>d?b.format(Math.round(a/2592E3),"month"):b.format(Math.round(a/31536E3),"year")},_ms:function(a){a=parseInt(a,10);return 1E10>a?1E3*a:a}};rpi=rpi||{};rpi.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*b&&a.left-window.innerWidth*b},isRTL:function(){return"rtl"==(window.getComputedStyle?window.getComputedStyle(document.body,null).getPropertyValue("direction"):document.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 t=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+b+", height="+d+", top="+((window.innerHeight?window.innerHeight:t.clientHeight?t.clientHeight:screen.height)/2-d/2+(void 0!=window.screenTop?window.screenTop:window.screenY))+", left="+((window.innerWidth?window.innerWidth:t.clientWidth?t.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,t){const m=new XMLHttpRequest;m.open(b,a,!0);m.setRequestHeader("Content-Type","application/json");m.onreadystatechange=function(){if((m.readyState===XMLHttpRequest.DONE||m.readyState===m.DONE)&&200===m.status){const h=JSON.parse(m.responseText);"function"===typeof t?t(h):"function"===typeof d&&d(h)}};m.send(d&&"function"!==typeof d?JSON.stringify(d):null)},anchor:function(a,b,d,t,m){const h=[];d.open_link&&h.push("noopener");d.nofollow_link&&h.push("nofollow");return'"+b+""},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,window.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||{};rpi.Column=function(a,b,d){const t=a.getAttribute("data-id"),m=new RegExp(d.col+"-[xsml]+"),h=new RegExp((t?'\\[data-id="'+t+'"\\]\\s+':"")+"\\."+d.card+"\\{--col:\\d+!important;--gap:\\d+!important\\}"),g=a.getElementsByClassName(d.cnt)[0];var l=null;return l={init:function(p,n){rpi.Utils.isVisible(g)?(p&&p(),l.resize(),window.addEventListener("resize",l.resize),n&&n(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(l)):setTimeout(l.init,300)},resize:function(){let p=l.getSize();g.className=g.className.replace(m,d.col+"-"+p);if(b.breakpoints){let n=g.offsetWidth,c=b.breakpoints.split(",");c.sort(l.brsort);for(let e=0;ep?"xs":750>p?"x":1050>p?"s":1450>p?"m":1800>p?"l":"xl"},setCol:function(p){const n=this.getStyle();p=(t?'[data-id="'+t+'"] ':"")+"."+d.card+"{--col:"+p+"!important;--gap:"+(p-1)+"!important}";h.test(n.innerHTML)?n.innerHTML=n.innerHTML.replace(h,p):n.innerHTML+=p},getCol:function(){let p=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return p&&1parseInt(n.split(":")[0])?1:-1},clear:function(){window.removeEventListener("resize",l.resize)}}};rpi=rpi||{};rpi.AVA="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";rpi.Common=function(a,b,d){let t=null;const m=rpi.Utils.lang();return t={init(){let h=a.getElementsByClassName(d.time),g=a.getElementsByClassName(d.text);for(const l of h)t.setTime(l);for(const l of g)t.setText(l)},initOnce(h){let g=h.getElementsByClassName(d.time)[0];h=h.getElementsByClassName(d.text)[0];t.setTime(g);t.setText(h)},setText(h){if(h&&h.textContent){var g=t.trimtext(h.textContent);h.textContent=g[0];g[1]&&(h.appendChild(rpi.el({tag:"span",cl:"rpi-s",text:"... "})),h.appendChild(rpi.el({tag:"span",cl:d.readmore,text:rpi.Utils.__("read more",b.trans),data:{hidden:g[1]}})),h.lastChild.onclick=t.opentext)}},trimtext(h){const g=parseInt(b.text_size,10);if(!h||!g||h.length<=g)return[h||"",""];h=Array.from(h);let l=h.slice(0,g).join("").lastIndexOf(" ");l=-1===l?g:l;return[h.slice(0,l).join("").trimEnd(),h.slice(l).join("")]},opentext(){let h=this.parentNode,g=this.dataset.hidden||"";rpi.Utils.rm(this.previousElementSibling);rpi.Utils.rm(this);h.appendChild(document.createTextNode(g))},setTime(h){h&&(h.textContent=t.time(h.dataset.time))},time(h){return b.time_format?rpi.Time.getFormatTime(h,b.time_format,m):rpi.Time.getTimeAgo(h,m)}}};rpi.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(([,t])=>void 0!==t&&null!==t))),a.style&&(d.style.cssText=a.style),a.atts&&Object.keys(a.atts).forEach(t=>{const m=a.atts[t];null!==m&&void 0!==m&&!1!==m&&d.setAttribute(t,m)}),a.html&&(d.innerHTML=a.html),b=a.children?[].concat(a.children).concat(b):b);b.flat().forEach(t=>{t&&d.appendChild(t instanceof Node?t:document.createTextNode(String(t)))});return d};window.brb_vars=window.brb_vars||{ajaxurl:"/wp-admin/admin-ajax.php",gavatar:""};rpi=rpi||{};rpi.View=function(a,b={},d={}){const t=b.id??a.getAttribute("data-id");a.getElementsByClassName("rpi-cnt");const m=a.getElementsByClassName("rpi-header")[0],h=a.getElementsByClassName(d&&d.names&&d.names.content||"rpi-content")[0],g=h?h.getElementsByClassName(d&&d.names&&d.names.cards||"rpi-cards")[0]:null,l=a.getElementsByClassName("rpi-url")[0],p=rpi.Media(a);var n=null;return n={media:p,boot(){d.cb&&d.cb.pre&&d.cb.pre();rpi.Utils.ajax(n.getAjaxUrl({act:"widget"}),"POST",function(c){g.setAttribute("data-offset",c.offset);g.setAttribute("data-count",c.count);c.bizs&&n.addBusiness(c.bizs[0],c.options);n.addReviews(c,[],function(e){n.initStyle();d.cb&&d.cb.post&&d.cb.post()})});n.initPagin()},init(){p.init();n.initStyle();n.initPagin()},initPagin(){l&&(l.onclick=function(){l.disabled=!0;n.loadNextReviews(b.pagination,function(c){n.delPaginBtn();d.cbp&&d.cbp(c);l.disabled=!1});return!1})},loadNextReviews(c,e){if(0e?e:f-k;k=g.getElementsByClassName(d&&d.names&&d.names.card||"rpi-card");if(k.length){f=k.length-1;for(let u=0;u=k?"ms":"o")}e=rpi.el({tag:"img",cl:"rpi-img",atts:{width:k,height:k,alt:f,...(b.lazy_load_img||void 0===b.lazy_load_img?{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(c){if(!c.media||!c.media.length)return[];const e=a.style.getPropertyValue("--media-lines"),k=22*(e?e:2);return c.media.map(function(f){(f=f.thumbnailUrl||"")&&(f=f.replace(/(=.*)s\d{2,3}/,"$1s"+k));return rpi.el({tag:"img",cl:"rpi-thumb rpi-clickable",atts:{loading:"lazy",alt:"",...(f?{src:f}:{})}})})},reviewReply(c,e){let k=c.getElementsByClassName("rpi-reply")[0];k||(k=rpi.el({cl:"rpi-reply rpi-scroll"}),c.getElementsByClassName("rpi-body")[0].appendChild(k));k.innerHTML="";k.appendChild(rpi.el({tag:"b",text:rpi.Utils.__("Response from the owner",b.trans)+":"}));k.appendChild(document.createTextNode(" "+e))},initStyle(){a.dataset.opts&&(b={...b,...(JSON.parse(a.dataset.opts)||{})});if(m){var c=m.getElementsByClassName("rpi-card");for(var e=0;er&&r.classList.remove(...w));c.querySelectorAll("span.rpi-logo").forEach(r=>{r.classList.remove(...w);if(!r.className){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.remove()}});switch(f){case "1":case "6":k=c.getElementsByClassName("rpi-body")[0];"6"==f&&y.push("rpi-logo-left");e.classList.contains("rpi-bubble__inner")&&k?k.classList.add(...y):e.classList.add(...y);break;case "2":case "7":(e=c.getElementsByClassName(this.nameOrScale(f))[0])&&e.classList.add(...y);break;case "3":(y=c.getElementsByClassName("rpi-img-wrap")[0])&&y.classList.add(...["rpi-logo_after","rpi-logo-"+k]);break;case "4":e=c.querySelector('[class^="rpi-star"]');if(!e)break;u||=rpi.el("span");u.classList.add(...y);u.contains(e)||(e.replaceWith(u),u.appendChild(e));break;case "5":if(e=c.getElementsByClassName("rpi-based")[0])k=e.textContent.trim().match(/\d+/)[0],e.textContent=e.textContent.replace(k,k+" "),e.appendChild(rpi.el({tag:"span",cl:y}))}},initLogoMultiple(c,e,k,f){let u=c.getElementsByClassName("rpi-logos")[0];if(u){if(k=u.querySelector('[class^="rpi-star"]')){const y=c.getElementsByClassName("rpi-info")[0],w=c.getElementsByClassName("rpi-based")[0];y&&(w?y.insertBefore(k,w):y.appendChild(k))}}else u=this.createLogos(k);switch(f){case "0":case "3":rpi.Utils.rm(u);break;case "1":e.prepend(u);break;case "2":case "7":(c=c.getElementsByClassName(this.nameOrScale(f))[0])&&c.prepend(u);break;case "4":e=c.getElementsByClassName("rpi-info")[0];f=c.getElementsByClassName("rpi-based")[0];c=c.querySelector('[class^="rpi-star"]');if(!c)break;u.appendChild(c);f?e.insertBefore(u,f):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)}},nameOrScale:c=>"2"===c?"rpi-name":"rpi-scale",createLogos(c){return rpi.el({tag:"span",cl:"rpi-logos"},c.map(e=>n.logo(e)))},logo(c){return rpi.el({tag:"span",cl:["rpi-logo","rpi-logo-"+c]})},getCssVar(c){return a.style.getPropertyValue(c)},delPaginBtn(){if(l){const c=parseInt(g.getAttribute("data-offset")),e=parseInt(g.getAttribute("data-count"));c>=e&&rpi.Utils.rm(l)}}}};Object.assign(rpi.View,{ajaxurl(a,b={}){if("function"===typeof b.api)return b.api(a);const{id:d,offset:t,bid:m,provider:h}=a;a=new URLSearchParams({action:"rpi_reviews",id:d,offset:t,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);case "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?rpi.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&&e.preventDefault();p.classList.remove("rpi-open");c&&(c.classList.remove("rpi-open"),document.body.style.overflow="");g&&g.focus();return!1}const{id:t}=a,m=a.root||document.body,h=["rpi-sb"];"left"===a.pos&&h.push("rpi-left");let g,l=document.getElementById(t),p;l?p=l.getElementsByClassName("rpi-sb")[0]:(l=rpi.el({id:t,cl:"rpi"}),p=rpi.el({cl:h,atts:{role:"dialog","aria-modal":"true","aria-label":a.label||"Reviews"},html:'
'}),l.appendChild(p),m.appendChild(l),a.overlay&&m.appendChild(rpi.el({cl:"rpi-overlay"})));const n=p.getElementsByClassName("rpi-x")[0],c=m.querySelector(".rpi-overlay");n.addEventListener("click",d);c&&c.addEventListener("click",d);b&&b(p);return{rt:l,sb:p,toggle(e){p.classList.contains("rpi-open")?d():(g=e||null,p.classList.add("rpi-open"),c&&(c.classList.add("rpi-open"),document.body.style.overflow="hidden"),n.focus())}}},ajaxsb(a,b,d){const{id:t,bid:m,prov:h}=b.query,{data:g,...l}=b.options;d=["rpi-sb",t,m,h].filter(Boolean).join("_");return rpi.View.sidebar({root:a,id:d,pos:l.badge_pos,overlay:l.overlay},p=>{rpi.Utils.ajax(rpi.View.ajaxurl(b.query,l),"POST",function(n){var c=p.getElementsByClassName("rpi-sbc")[0];const e=n.bizs??(g?g.bizs.find(f=>(!m||f.id===m)&&(!h||f.provider===h)):{}),k={};m&&(k.bid=m);h&&(k.provider=h);rpi.Layout(c,{id:t,data:{bizs:[e],...n},header_hide_scale:!0,header_hide_count:!0,autoplay:!1,...l,view_mode:l.tag_sidebar,cfg:{filter:k}}).render();n=p.getElementsByClassName("rpi-sbh")[0];c=c.getElementsByClassName("rpi-header")[0];n.appendChild(c)})})}});rpi=rpi||{};rpi.Media=function(a,b={},{root:d="rpi",card:t="rpi-card"}={}){let m,h=null,g=null;return g={init:function(){h=a.getElementsByClassName("rpi-thumb");for(let l=0;lp||p>=h.length)){var n=l.src.replace(/=s[0-9]{1,3}/g,"=s500");l=(l=rpi.Utils.getParent(l,[t,"rpi-review"]))?l.outerHTML:"";if(m){let c=m.querySelector(".rpi-lightbox-media img"),e=m.querySelector(".rpi-lightbox-review"),k=m.querySelector(".rpi-lightbox-prev"),f=m.querySelector(".rpi-lightbox-next");c.src=n;e.innerHTML!==l&&(e.innerHTML=l,g.clicks(e));k.onclick=function(u){g.show(h[p-1],p-1)};f.onclick=function(u){g.show(h[p+1],p+1)}}else m=document.createElement("div"),m.className="rpi-lightbox",m.innerHTML='
'+l+"
",n=m.querySelector(".rpi-x"),l=m.querySelector(".rpi-lightbox-prev"),next=m.querySelector(".rpi-lightbox-next"),n.onclick=function(){m.style.display="none"},m.onclick=function(c){m==c.target&&(m.style.display="none")},l.onclick=function(c){g.show(h[p-1],p-1)},next.onclick=function(c){g.show(h[p+1],p+1)},g.clicks(m),document.body.appendChild(m);m.style.display="flex"}}}};rpi=rpi||{};rpi.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};Object.assign(rpi.Flash,{LOGO:'',render(a){return rpi.el({cl:["rpi-flash",a.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}})},form(a){return rpi.el({cl:["rpi-flash-form","rpi-content"],children:[rpi.el({cl:"rpi-cards",data:{count:a.data.count,offset: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 t=a.getElementsByClassName("rpi-flash")[0],m=a.getElementsByClassName("rpi-flash-content")[0],h=m.getElementsByClassName("rpi-x")[0],g=m.getElementsByClassName("rpi-flash-card")[0],l=m.getElementsByClassName("rpi-flash-story")[0],p=[],n=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),c=rpi.View(a,b,{common:n,cbp:r=>p.push(...r.reviews)});b.data&&c.addReviews(b.data,[]);let e=0,k=!1,f=1E3*(b.flash_start||3),u=1E3*(b.flash_visible||5),y=1E3*(b.flash_invisible||5),w=null;return{init(){this.destroy();n.init();c.init();this.fillReviews();p.length&&(h.onclick=this.hide,l.onclick=()=>this.showReview(),document.body.appendChild(a),setTimeout(()=>this.showStory(),f))},destroy(){clearTimeout(w);w=null},fillReviews(){let r=a.getElementsByClassName("rpi-card");for(let x=0;xr){clearTimeout(w);c.loadNextReviews(b.pagination,x=>{p.push(...x.reviews);e=e+1{k||m&&m.matches(":hover")||(m.className="rpi-flash-content");w=setTimeout(()=>this.showStory(),y)},u)},showReview(){k=!0;const r=g.querySelector(".rpi-flash-form .rpi-card:nth-child("+parseInt(l.dataset.idx)+")");r.className="rpi-card rpi-highlight";setTimeout(()=>{r.scrollIntoView({block:"center"})},50);g.className="rpi-flash-card rpi-flash-expanded";m.className="rpi-flash-content rpi-flash-visible";h.className="rpi-x rpi-xa";h.onclick=()=>{r.className="rpi-card";g.className="rpi-flash-card";h.className="rpi-x";k=!1;h.onclick=this.hide}},hide(){let r=JSON.parse(sessionStorage.getItem(d)||"{}");r.hide=!0;sessionStorage.setItem(d,JSON.stringify(r));clearTimeout(w);a.getElementsByClassName("rpi-flash-content")[0].className="rpi-flash-content"},nextStory(r,A){const x=r[A];g.style.height="auto";t.style.setProperty("--flash-height","auto");if(l.firstChild){r=l.getElementsByClassName("rpi-flash-img");const z=l.getElementsByClassName("rpi-flash-head"),C=l.getElementsByClassName("rpi-flash-body"),D=l.getElementsByClassName("rpi-flash-footer");b.flash_user_photo&&r.length&&(r[0].innerHTML=this.img(x));z.length&&(z[0].innerHTML=this.head(x));C.length&&(C[0].innerHTML=this.body(x));D.length&&(D[0].innerHTML=this.footer(x));l.dataset.idx=A+1}else l.innerHTML=this.createStory(r,A);l.dataset.provider=x.provider;setTimeout(()=>{t.style.setProperty("--flash-height",l.offsetHeight+"px");g.style.height=""},1)},createStory(r,A){r=r[A];return(b.flash_hide_logo&&!b.flash_user_photo?"":'
'+this.img(r)+"
")+'
'+this.head(r)+'
'+this.body(r)+'
"},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))+" "+b.text.m1.replace("%s",this.star(r))+""},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?this.temp(r,b.flash_footer):b.disable_review_time?"":n.time(r.time)},name(r){return''+r.author_name+" "},star(r){return''},provider(r){return''},photo(r,A,x){return b.flash_user_photo||b.hide_avatar?"":this.photoImg(r,A,x)},photoImg(r,A,x){let z=r.author_avatar;return''+r.author_name+'"},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}}",n.trimtext(r.text,!0)).replace("{{review_time}}",n.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}}",this.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};Object.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","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,!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(t=>this.initBadge(t))},initBadge(t){const m=`rpi_badge_${[d,t.dataset.provider,t.dataset.id].join("_")}`;var h=sessionStorage.getItem(m);t.style.display=h?"none":"inline-block";if(!h){if(h=t.querySelector(".rpi-x"))h.onclick=()=>{sessionStorage.setItem(m,1);t.style.display="none"};if("sidebar"===b.badge_click){const g=t.querySelector(".rpi-badge-body");g&&(g.onclick=()=>{var{dataset:l}=g.parentNode;l=rpi.View.ajaxsb(document.body,{query:{act:"reviews",id:d,bid:l.id,prov:l.provider},options:b});setTimeout(l.toggle,5);g.onclick=l.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};Object.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-"+d}))}),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"),t=a.getElementsByClassName("rpi-tag")[0],m=a.getElementsByClassName("rpi-tag-cnt")[0];return{init:function(){let h=a.querySelector(".rpi-stars[data-reviewus]");h&&(this.starsInit(h),h.onclick=function(g){g="svg"==g.target.tagName?g.target:g.target.parentNode;g=[...g.parentNode.children].indexOf(g);rpi.Utils.popup(2v.clientHeight)return!0;q.preventDefault();F++;clearTimeout(z);z=setTimeout(f.wheelEnd,150,q)},addMouseEvents:function(){m.addEventListener("mouseover",f.mouseOver,!1);m.addEventListener("mouseleave",f.mouseLeave,!1)},delMouseEvents:function(){m.removeEventListener("mouseover",f.mouseOver);m.removeEventListener("mouseleave",f.mouseLeave)},mouseOver:function(){C=1;f.swipeAutoStop()},mouseLeave:function(){C=0;f.swipeAutoStart()},btnClick:function(q){f.swipeManual(q*f.swipePerBtn())},wheelEnd:function(q){f.swipeManual(Math.sign(q.wheelDelta)*F*f.swipeStep());F=0},scrollEnd:function(){G=f.reviewsIdx();D?D=!1:f.loadNextReviews();(!k||C)&&k||(!b.clickstop||D)&&b.clickstop||f.swipeAutoStart();f.hasDots()&&f.dotSwipe(void 0,!0)},loadNextReviews:function(q){q=q?f.reviewsIdx()+parseInt(q):f.hasDots()?(q=p.getElementsByClassName("active")[0])?parseInt(q.getAttribute("data-index"))*f.swipePerDot():f.reviewsIdx():f.reviewsIdx();q=f.getAjaxSize(q);0B){let H=q-B;Math.abs(H)<3*f.swipePerDot()?v=E:H&&(v=Math.ceil(q/E)*E-B)}q=B+v-n;return 0q?0:q>=p.childNodes.length?p.childNodes.length-1:q;q=p.querySelector("."+d.dot+'[data-index="'+q+'"]');let B=p.getElementsByClassName("active")[0];f.dotActivate(B,q);f.dotScroll(q,v)},dotScroll:function(q,v){let B=Math.round(p.scrollWidth/p.childNodes.length),E=Math.floor(Math.round(p.offsetWidth/B)/2);v?p.scrollTo(q.offsetLeft-E*B,0):p.scrollTo({left:q.offsetLeft-E*B,behavior:"smooth"})},dotActivate:function(q,v){q&&(q.classList.remove("active"),q.classList.remove("s1"),q.previousSibling&&(q.previousSibling.classList.remove("s2"),q.previousSibling.previousSibling&&q.previousSibling.previousSibling.classList.remove("s3")),q.nextSibling&&(q.nextSibling.classList.remove("s2"),q.nextSibling.nextSibling&&q.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"),v.nextSibling.nextSibling&&v.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(q){D=!0;f.loadNextReviews(q);f.scroll(q);b.clickstop&&(f.swipeAutoStop(),f.delMouseEvents())},swipeAuto:function(){if(rpi.Utils.isInViewport(m))if(f.isScrollEnd())f.scroll(-(n-f.reviewsPerView()));else{let q=f.swipeStep()v?0:v>=u.length?u.length-1:v;-1Math.abs(q.left-v.left)||q.left<=v.left)&&v.leftMath.abs(q.right-v.right)||q.right>=v.right)&&v.right>q.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(g.scrollWidth/u.length)},reviewHeight:function(){return u[0].offsetHeight},reviewsPerView:function(){return Math.round(g.offsetWidth/f.reviewWidth())},reviewsIdx:function(){let q=rpi.Utils.isRTL()?-g.scrollLeft:g.scrollLeft;return Math.round(q/f.reviewWidth())},reviewsAhead:function(){return u.length-(f.reviewsIdx()+f.reviewsPerView())},hasDots:function(){return p&&!b.hide_dots&&0",CONTENT:'
',PAGIN:'{{label}}',RATINGS:'
\n {{photo}}\n {{name}}\n {{rating}} {{stars}}\n Based on {{count}} reviews\n
',REVIEWS:'
\n
{{review_photo}} {{review_name_url}} {{review_time}} {{review_logo}}
\n
{{review_stars}}
\n
{{review_text}}
\n {{review_media}}\n
{{review_reply}}
\n
',render(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 t=d.bizPhoto(b);return rpi.Temp.fill(a,{scale:d.scale(b),name:rpi.Temp.esc(b.name),photo:t?.outerHTML??"",stars:rpi.View.stars(b.rating,b.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 t=b.media?d.media.thumbs(b.media).map(m=>m.outerHTML).join(" "):"";return rpi.Temp.fill(a,{review_photo:d.reviewAvatar(b).outerHTML,review_provider:rpi.Temp.esc(b.provider),review_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:t,review_reply:rpi.Temp.esc(b.reply??"")})},fill(a,b){return Object.entries(b).reduce((d,[t,m])=>d.replace(new RegExp(`\\{\\{${t}\\}\\}`,"g"),m),a)},esc(a){return String(a??"").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:t,ratings:m,reviews:h,RATINGS:g,REVIEWS:l}=rpi.Temp,p=a.dataset.id,n=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),c=rpi.View(a,b,{common:n}),e=a.querySelector(".rpi-header"),k=a.querySelector(".rpi-content"),f=(u,y,w)=>{const r=document.createElement("span");for(r.innerHTML=y;r.firstChild;)y=r.firstChild,w&&y.nodeType===Node.ELEMENT_NODE&&w(y),u.appendChild(y)};if(k&&b.pagination){let u=a.getElementsByClassName("rpi-url")[0];u=u??rpi.el({tag:"button",cl:"rpi-url",text:rpi.Utils.__("More reviews",b.trans)});u.onclick=()=>{var y=parseInt(k.dataset.offset,10)||0;y=c.getAjaxUrl({id:p,offset:y,api:b.api,act:"reviews",size:b.pagination});rpi.Utils.ajax(y,"POST",w=>{w.reviews&&d.initReviews(w.reviews);k.setAttribute("data-count",w.count);k.setAttribute("data-offset",w.offset);w.offset>=w.count&&rpi.Utils.rm(u)});return!1};a.appendChild(u)}n.init();return d={init(u){u&&(e&&u.bizs&&this.initRatings(u.bizs),k&&u.reviews&&this.initReviews(u.reviews))},initRatings(u){if(e){var y=t(e.dataset.temp,g);for(const w of u)f(e,m(y,w,c))}},initReviews(u){if(k){var y=t(k.dataset.temp,l);for(const w of u)f(k,h(y,w,c),r=>n.initOnce(r))}}}}});rpi=rpi||{};rpi.Layout=function(a,b){function d(){var g=["rpi-cnt","rpi-col-m","rpi-"+b.view_mode];"grid"!==b.view_mode&&"slider"!==b.view_mode||g.push("rpi-sh");g=rpi.el({cl:g,data:{opts:"{}"},style:"visibility:var(--visible, hidden)"});h.bizs&&g.appendChild(t());h.reviews&&g.appendChild(m());a.appendChild(g);const l=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),p=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),n=rpi.View(a,b,{common:l,...(b.cfg??{})});h.bizs&&h.bizs.length&&n.addBusiness(h.bizs[0],b);n.addReviews(h,[]);"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:n,column:p}).init(function(){l.init()},function(){n.init();console.log("RichPlugins slider initialized")}):(l.init(),n.init());return g}function t(){var g="slider"===b.view_mode;const l=["rpi-header",`rpi-header_${1== (g?b.slider_head_pos||2:b.head_pos||1)?"top":"row"}`];g&&!b.slider_hide_nextprev&&l.push("rpi-header_pad");g=rpi.el({cl:l,data:{opts:""}});g.appendChild(rpi.el({cl:"rpi-cards"}));return g}function m(){var g="slider"===b.view_mode;const l=rpi.el({cl:["rpi-content",`rpi-content_${1==(g?b.slider_head_pos:b.head_pos)?"top":"row"}`]});g&&!b.slider_hide_nextprev&&l.appendChild(rpi.el({tag:"button",cl:"rpi-ltgt rpi-lt rpi-slider-prev",atts:{"aria-label":"Previous reviews",tabindex:"0"}}));var p=l.appendChild;var n=["rpi-cards"];var c="slider"===b.view_mode;c&&!b.slider_hide_nextprev&&n.push("rpi-slides-bite");var e=h.reviews?.length;n=rpi.el({cl:n,data:{offset:e,count:h.count}});!c&&0e&&(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(n),e.appendChild(c),n=e);p.call(l,n);g&&!b.slider_hide_nextprev&&l.appendChild(rpi.el({tag:"button",cl:"rpi-ltgt rpi-gt rpi-slider-next",atts:{"aria-label":"Next reviews",tabindex:"0"}}));g&&!b.slider_hide_pagin&&(g=rpi.el({cl:"rpi-dots-wrap"}),g.appendChild(rpi.el({cl:"rpi-dots"})),l.appendChild(g));return l}const h=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()}}}};var 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",text:"rpi-text",readmore:"rpi-readmore"}),t=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),m=rpi.View(a,b,{common:d});return{init:()=>{d.init();t.init();m.init()}}},Slider:function(a,b){const d=rpi.Common(a,b,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),t=rpi.Column(a,b,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),m=rpi.View(a,b,{common:d}),h=rpi.Slider(a,RichPlugins.opts(a,{},"rpi-cnt"),{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:m,column:t});return{init:()=>h.init(d.init.bind(d),m.init.bind(m))}},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()}};window.rpi_boot=function(){function a(){const d=document.querySelectorAll('.rpi[data-exec=""]');if(!d.length)return!1;rpi.Utils.clear();d.forEach(t=>RichPlugins.init(t));return!0}function b(){(new MutationObserver((d,t)=>{a()&&t.disconnect()})).observe(document.body,{childList:!0,subtree:!0})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{a()||b()}):a()||b()};window.rpi_boot();