if(typeof document<"u"&&typeof window<"u"){let P=function(e){try{return decodeURIComponent(e)!==e}catch{return!0}},M=function(e){return P(e)?e:encodeURIComponent(e)};var D=P,I=M;Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),a=u.length>>>0;if(typeof e!="function")throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i>>0;if(r===0)return!1;var i=u|0,t=Math.max(i>=0?i:r-Math.abs(i),0);function o(l,n){return l===n||typeof l=="number"&&typeof n=="number"&&isNaN(l)&&isNaN(n)}for(;t0?1:-1)*Math.floor(Math.abs(o))},r=Math.pow(2,53)-1,i=function(t){var o=a(t);return Math.min(Math.max(o,0),r)};return function(o){var l=this,n=Object(o);if(o==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f=arguments.length>1?arguments[1]:void 0,d;if(typeof f<"u"){if(!u(f))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(d=arguments[2])}for(var s=i(n.length),m=u(l)?Object(new l(s)):new Array(s),v=0,b;v"u"?f(b,v):f.call(d,b,v):m[v]=b,v+=1;return m.length=s,m}})()),Array.prototype.forEach||(Array.prototype.forEach=function(e){var u,a;if(this==null)throw new TypeError("this is null or not defined");var r=Object(this),i=r.length>>>0;if(typeof e!="function")throw new TypeError(e+" is not a function");for(arguments.length>1&&(u=arguments[1]),a=0;a1?arguments[1]:void 0,f=n?Number(n):0;f!==f&&(f=0);var d=Math.min(Math.max(f,0),t);if(l+d>t)return!1;for(var s=-1;++se.name==="data-lang"||e.name==="data-locale"),A=N?N.value:void 0;let _=`https://platform.revolugo.com/${A&&["en","en-US","fr","fr-FR"].includes(A)?`${A}/`:""}hotels?embedded=true`;"fise-xperience-series-anglet-2019".length&&y.setAttribute("data-wid","fise-xperience-series-anglet-2019");const j=y.attributes["data-wid"]&&y.attributes["data-wid"].value;j&&y.setAttribute("data-wid",j),Array.from(y.attributes).forEach(e=>{switch(e.name){case"data-height":T+=`height: ${e.value};`;break;default:e.name.startsWith("data-")&&e.name!=="data-metadata"&&(_+=`&${e.name.replace("data-","")}=${M(e.value.replace("#",""))}`)}}),h.setAttribute("style",T),h.setAttribute("src",_);let w=document.getElementById("revolugo-widget");if(!w){const e=document.getElementsByTagName("script");for(var O=0;O-1&&(w=e[O])}if(w){const e=w.parentNode;e.appendChild(h),e.removeChild(w)}}