0.gravatar.com Open in urlscan Pro
2a04:fa87:fffe::c000:4902  Public Scan

URL: https://0.gravatar.com/js/hovercards/hovercards.min.js
Submission Tags: falconsandbox
Submission: On November 21 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(r){var a=function(r,a){if("object"!=t(r)||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var i=n.call(r,a||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(r)}(r,"string");return"symbol"==t(a)?a:a+""}function a(t,a,n){return(a=r(a))in t?Object.defineProperty(t,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[a]=n,t}var n={d:(t,r)=>{for(var a in r)n.o(r,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:r[a]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r)},i={};n.d(i,{S:()=>u});var e={top:"paddingBottom",bottom:"paddingTop",left:"paddingRight",right:"paddingLeft"};function o(t){var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#x60;"};return t.replace(/&(amp|lt|gt|quot|#39|x60);|[\&<>"'`]/g,(function(t){return"&"===t[0]?t:r[t]}))}function v(t){return encodeURI(t)}function c(t,r,a){var n=t.split("?"),i=n[0],e=n[1],o=new URLSearchParams(e||"");return o.set(r,a),i+"?"+o.toString()}function s(t,r){return t[r]||r}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var n in a)({}).hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},d.apply(null,arguments)}var l=document,u=function(){function t(t){var r=this,a=void 0===t?{}:t,n=a.placement,i=void 0===n?"right":n,e=a.autoFlip,o=void 0===e||e,v=a.offset,c=void 0===v?10:v,s=a.delayToShow,d=void 0===s?500:s,l=a.delayToHide,u=void 0===l?300:l,h=a.additionalClass,f=void 0===h?"":h,g=a.myHash,_=void 0===g?"":g,p=a.onQueryHovercardRef,m=void 0===p?function(t){return t}:p,b=a.onFetchProfileStart,w=void 0===b?function(){}:b,k=a.onFetchProfileSuccess,y=void 0===k?function(){}:k,j=a.onFetchProfileFailure,O=void 0===j?function(){}:j,S=a.onHovercardShown,x=void 0===S?function(){}:S,M=a.onHovercardHidden,H=void 0===M?function(){}:M,I=a.i18n,A=void 0===I?{}:I;this.t={},this.i=[],this.v=new Map,this.l=new Map,this.u=new Map,this.attach=function(t,a){var n=void 0===a?{}:a,i=n.dataAttributeName,e=void 0===i?"gravatar-hash":i,o=n.ignoreSelector;t&&(r.detach(),r._(t,e,o).forEach((function(t){t.ref.addEventListener("mouseenter",(function(a){return r.p(a,t)})),t.ref.addEventListener("mouseleave",(function(a){return r.m(a,t)}))})))},this.detach=function(){r.i.length&&(r.i.forEach((function(t){var a=t.ref;a.removeEventListener("mouseenter",(function(){return r.p})),a.removeEventListener("mouseleave",(function(){return r.m}))})),r.i=[])},this.k=i,this.j=o,this.O=c,this.M=d,this.H=u,this.I=f,this.A=_,this.U=m,this.C=w,this.L=y,this.P=O,this.R=x,this.T=H,this.t=A}var r=t.prototype;return r._=function(t,r,a){var n=this,i=[],e=r.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()})),o=a?Array.from(l.querySelectorAll(a)):[],v="gravatar.com/avatar/";return e&&t.dataset[e]||"IMG"===t.tagName&&t.src.includes(v)?i=[t]:(i=Array.from(t.querySelectorAll('img[src*="'+v+'"]')),r&&(i=[].concat(i.filter((function(t){return!t.hasAttribute("data-"+r)})),Array.from(t.querySelectorAll("[data-"+r+"]"))))),this.i=i.map((function(t,r){if(o.includes(t))return null;var a,i,v=t.dataset[e];if(v?(a=v.split("?")[0],i=v):"IMG"===t.tagName&&(a=t.src.split("/").pop().split("?")[0],i=t.src),!a)return null;var c=new URLSearchParams(i),s=c.get("d")||c.get("default"),d=c.get("f")||c.get("forcedefault"),l=c.get("r")||c.get("rating");return{id:"gravatar-hovercard-"+a+"-"+r,hash:a,params:(i=[s&&"d="+s,d&&"f="+d,l&&"r="+l].filter(Boolean).join("&"))?"?"+i:"",ref:n.U(t)||t}})).filter(Boolean),this.i},r.B=function(r){var a=this,n=r.id,i=r.hash,o=r.params,v=r.ref,u=setTimeout((function(){if(!l.getElementById(n)){var r;if(a.u.has(i)){var u=a.u.get(i);r=t.createHovercard(d({},u,{avatarUrl:u.avatarUrl+o}),{additionalClass:a.I,myHash:a.A,i18n:a.t})}else r=t.createHovercardSkeleton({additionalClass:a.I}),a.C(i),fetch(c("https://api.gravatar.com/v3/profiles/"+i,"source","hovercard")).then((function(t){if(200!==t.status)throw t.status;return t.json()})).then((function(n){var e;a.u.set(i,{hash:n.hash,avatarUrl:n.avatar_url,profileUrl:n.profile_url,displayName:n.display_name,location:n.location,description:n.description,jobTitle:n.job_title,company:n.company,verifiedAccounts:null==(e=n.verified_accounts)?void 0:e.map((function(t){return{type:t.service_type,label:t.service_label,icon:t.service_icon,url:t.url,isHidden:t.is_hidden}}))});var v=a.u.get(i),c=t.createHovercard(d({},v,{avatarUrl:v.avatarUrl+o}),{additionalClass:a.I,myHash:a.A,i18n:a.t}).firstElementChild;r.classList.remove("gravatar-hovercard--skeleton"),r.replaceChildren(c),a.L(i,a.u.get(i))})).catch((function(n){var e=s(a.t,"Sorry, we are unable to load this Gravatar profile.");switch(n){case 404:e=s(a.t,"Profile not found.");break;case 429:e=s(a.t,"Too Many Requests.");break;case 500:e=s(a.t,"Internal Server Error.")}var v=t.createHovercardError("https://0.gravatar.com/avatar/"+i+o,e,{additionalClass:a.I}).firstElementChild;r.classList.add("gravatar-hovercard--error"),r.classList.remove("gravatar-hovercard--skeleton"),r.replaceChildren(v),a.P(i,{code:n,message:e})}));r.id=n,r.addEventListener("mouseenter",(function(){return clearInterval(a.l.get(n))})),r.addEventListener("mouseleave",(function(){return a.F(n)})),l.body.appendChild(r);var h=function(t,r,a){var n=void 0===a?{}:a,i=n.placement,o=void 0===i?"right":i,v=n.offset,c=void 0===v?0:v,s=n.autoFlip,d=void 0===s||s,l=t.getBoundingClientRect(),u=r.getBoundingClientRect(),h=l.top+scrollY,f=l.bottom+scrollY,g=l.right+scrollX,_=l.left+scrollX,p=0,m=0,b=o.split("-"),w=b[0],k=b[1];if(c=Math.max(0,c),d){var y=l.top,j=innerHeight-l.bottom,O=l.left,S=innerWidth-l.right,x=u.height+c,M=u.width+c;"top"===w&&y<x&&j>y&&(w="bottom"),"bottom"===w&&j<x&&y>j&&(w="top"),"left"===w&&O<M&&S>O&&(w="right"),"right"===w&&S<M&&O>S&&(w="left")}return"top"===w||"bottom"===w?(p=_+l.width/2-u.width/2,m="top"===w?h-u.height-c:f,"start"===k&&(p=_),"end"===k&&(p=g-u.width)):(p="right"===w?g:_-u.width-c,m=h+l.height/2-u.height/2,"start"===k&&(m=h),"end"===k&&(m=f-u.height)),{x:p,y:m,padding:e[w],paddingValue:c}}(v,r,{placement:a.k,offset:a.O,autoFlip:a.j}),f=h.x,g=h.y,_=h.padding,p=h.paddingValue;r.style.position="absolute",r.style.left=f+"px",r.style.top=g+"px",r.style[_]=p+"px",a.R(i,r)}}),this.M);this.v.set(n,u)},r.F=function(t){var r=this,a=setTimeout((function(){var a=l.getElementById(t);a&&(a.remove(),r.T(t,a))}),this.H);this.l.set(t,a)},r.p=function(t,r){"ontouchstart"in l||(t.stopImmediatePropagation(),clearInterval(this.l.get(r.id)),this.B(r))},r.m=function(t,r){var a=r.id;"ontouchstart"in l||(t.stopImmediatePropagation(),clearInterval(this.v.get(a)),this.F(a))},t}();u.createHovercard=function(t,r){var a=void 0===r?{}:r,n=a.additionalClass,i=a.myHash,e=a.i18n,d=void 0===e?{}:e,u=t.hash,h=t.avatarUrl,f=t.profileUrl,g=t.displayName,_=t.location,p=t.description,m=t.jobTitle,b=t.company,w=t.verifiedAccounts,k=void 0===w?[]:w,y=l.createElement("div");y.className="gravatar-hovercard"+(n?" "+n:"");var j=v(c(f,"utm_source","hovercard")),O=o(g),S=!p&&i===u,x=k.slice(0,3).reduce((function(t,r){var a=r.label,n=r.icon,i=r.url,e=r.type;return r.isHidden||t.push('\n\t\t\t\t\t<a class="gravatar-hovercard__social-link" href="'+v(i)+'" target="_blank" data-service-name="'+e+'">\n\t\t\t\t\t\t<img class="gravatar-hovercard__social-icon" src="'+v(n)+'" width="32" height="32" alt="'+o(a)+'" />\n\t\t\t\t\t</a>\n\t\t\t\t'),t}),[]).join(""),M=[m,b].filter(Boolean).join(", ");return y.innerHTML='\n\t\t\t<div class="gravatar-hovercard__inner">\n\t\t\t\t<div class="gravatar-hovercard__header">\n\t\t\t\t\t<a class="gravatar-hovercard__avatar-link" href="'+j+'" target="_blank">\n\t\t\t\t\t\t<img class="gravatar-hovercard__avatar" src="'+v(h)+'" width="72" height="72" alt="'+O+'" />\n\t\t\t\t\t</a>\n\t\t\t\t\t<a class="gravatar-hovercard__personal-info-link" href="'+j+'" target="_blank">\n\t\t\t\t\t\t<h4 class="gravatar-hovercard__name">'+O+"</h4>\n\t\t\t\t\t\t"+(M?'<p class="gravatar-hovercard__job">'+o(M)+"</p>":"")+"\n\t\t\t\t\t\t"+(_?'<p class="gravatar-hovercard__location">'+o(_)+"</p>":"")+'\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t<div class="gravatar-hovercard__body">\n\t\t\t\t\t'+(p?'<p class="gravatar-hovercard__description">'+o(p)+"</p>":"")+'\n\t\t\t\t</div>\n\t\t\t\t<div class="gravatar-hovercard__footer">\n\t\t\t\t\t<div class="gravatar-hovercard__social-links">\n\t\t\t\t\t\t<a class="gravatar-hovercard__social-link" href="'+j+'" target="_blank" data-service-name="gravatar">\n\t\t\t\t\t\t\t<img class="gravatar-hovercard__social-icon" src="https://secure.gravatar.com/icons/gravatar.svg" width="32" height="32" alt="Gravatar" />\n\t\t\t\t\t\t</a>\n\t\t\t\t\t\t'+x+'\n\t\t\t\t\t</div>\n\t\t\t\t\t<a\n\t\t\t\t\t\tclass="gravatar-hovercard__profile-link'+(S?" gravatar-hovercard__profile-link--edit":"")+'"\n\t\t\t\t\t\thref="'+(S?"https://gravatar.com/profiles/edit?utm_source=hovercard":j)+'"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class="gravatar-hovercard__profile-link-text">\n\t\t\t\t\t\t\t'+s(d,S?"Edit your profile":"View profile")+'\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t<path d="M12.6667 8.33338L9.16666 12.1667M12.6667 8.33338L2.66666 8.33338M12.6667 8.33338L9.16666 4.83338" stroke-width="1.5"/>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n    \t',y},u.createHovercardSkeleton=function(t){var r=(void 0===t?{}:t).additionalClass,a=l.createElement("div");return a.className="gravatar-hovercard gravatar-hovercard--skeleton"+(r?" "+r:""),a.innerHTML='\n\t\t\t<div class="gravatar-hovercard__inner">\n\t\t\t\t<div class="gravatar-hovercard__header">\n\t\t\t\t\t<div class="gravatar-hovercard__avatar-link"></div>\n\t\t\t\t\t<div class="gravatar-hovercard__personal-info-link"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="gravatar-hovercard__footer">\n\t\t\t\t\t<div class="gravatar-hovercard__social-link"></div>\n\t\t\t\t\t<div class="gravatar-hovercard__profile-link""></div>\n\t\t\t\t</div>\n\t\t\t</div>\n    \t',a},u.createHovercardError=function(t,r,a){var n=void 0===a?{}:a,i=n.avatarAlt,e=void 0===i?"Avatar":i,o=n.additionalClass,v=l.createElement("div");return v.className="gravatar-hovercard gravatar-hovercard--error"+(o?" "+o:""),v.innerHTML='\n\t\t\t<div class="gravatar-hovercard__inner">\n\t\t\t\t<img class="gravatar-hovercard__avatar" src="'+t+'" width="72" height="72" alt="'+e+'" />\n\t\t\t\t<i class="gravatar-hovercard__error-message">'+r+"</i>\n\t\t\t</div>\n    \t",v};var h,f=i.S,g=JSON.parse('{"El":{"h":"^0.9.3"}}');function _(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?_(Object(n),!0).forEach((function(r){a(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}var m="".concat(null===(h=g.El.h)||void 0===h?void 0:h.replace(/^[\^~]/,""),"-1");function b(t){new Image(1,1).src="https://pixel.wp.com/g.gif?v=wpcom2&x_grav-hover=".concat(t,"&rand=").concat(Math.random(),"-").concat((new Date).getTime())}window.Gravatar={version:g.El.h,my_hash:"",profile_cb:function(){},createHovercard:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.createHovercard(t,p({additionalClass:"wp-hovercard"},r))},init:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",a=arguments.length>1?arguments[1]:void 0,n=document;if(new f(p(p({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),{},{myHash:this.my_hash,additionalClass:"wp-hovercard",onQueryHovercardRef:function(t){var r;return t.classList.add("wp-hovercard-attachment"),t.classList.add("grav-hashed"),"A"!==(null===(r=t.parentElement)||void 0===r?void 0:r.tagName)&&t.classList.add("grav-hijack"),t.onmouseover=function(){return b("hover")},t},onHovercardShown:function(r,a){t.profile_cb(r,a.id);var n=a.querySelector(".gravatar-hovercard__profile-link");n&&(n.onclick=function(){return b("click_view_profile")});var i=a.querySelector(".gravatar-hovercard__profile-link--edit");i&&(i.onclick=function(){return b("click_edit_profile")});var e=a.querySelector(".gravatar-hovercard__avatar-link");e&&(e.onclick=function(){return b("to_profile")});var o=a.querySelector(".gravatar-hovercard__name-location-link");o&&(o.onclick=function(){return b("to_profile")}),a.querySelectorAll(".gravatar-hovercard__social-link").forEach((function(t){t.onclick=function(){return b("click_".concat(t.dataset.serviceName))}})),b("show")},onFetchProfileSuccess:function(){return b("fetch")},onFetchProfileFailure:function(t,r){var a=r.code;return b("profile_".concat(a))}})).attach(n.querySelector(r),{dataAttributeName:"",ignoreSelector:a?"".concat(a,' img[src*="gravatar.com/"]'):""}),!n.querySelector('link[href*="hovercards.min.css"]')){var i,e=n.querySelector('script[src*="/js/hovercards/hovercards"]'),o=e?null===(i=e.getAttribute("src"))||void 0===i?void 0:i.split("?")[1]:"ver=".concat(m);n.head.insertAdjacentHTML("beforeend",'<link rel="stylesheet" id="gravatar-card-css" href="https://0.gravatar.com/js/hovercards/hovercards.min.css?'.concat(o,'" />'))}}}}();