!function(e){function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=t(1),s=(t.n(i),t(2)),r=t(6),o=t(8);if(!window.__dimensions_embed){var a=function(){window.__dimensions_detail_url||(window.__dimensions_detail_url="https://badge.dimensions.ai"),window.__dimensions_metrics_api||(window.__dimensions_metrics_api="https://metrics-api.dimensions.ai"),window.__dimensions_badge_server||(window.__dimensions_badge_server="https://badge.dimensions.ai"),window.__dimensions_badge_url||(window.__dimensions_badge_url="https://badge.dimensions.ai")},c=function(){var e=document.querySelectorAll(".__dimensions_badge_embed__");if(e.length)for(var n=0;n3?"small":"normal",i=e.replace(/\{\{SCORE\}\}/g,this.textContent).replace(/\{\{SIZE\}\}/g,t).replace(/\{\{LABEL\}\}/g,n).replace(/\{\{ID\}\}/g,this.id).replace(/\{\{BADGE_SERVER_URL\}\}/g,this.config.badgeServerURL).replace(/\{\{ALT_SCORE\}\}/g,this.altScoreText),s=document.createElement("div");return s.className="__dimensions_Badge __dimensions_Badge_style_"+this.config.badgeType,s.innerHTML=i,s}},{key:"buildLegend",value:function(){if(!this.legendHidden){var e=document.createElement("div");e.className="__dimensions_Badge_Legend_padding __dimensions_Badge_Legend_hover-right __dimensions_Badge_Legend_style_"+this.config.badgeType,this.legendAlwaysVisible&&(e.className+=" __dimensions_Badge_Legend_always");var n=document.createElement("div");return n.className="__dimensions_Badge_Legend",e.appendChild(n),n.innerHTML="\n
\n
\n \n "+Object(c.b)(this.timesCited)+"\n Total "+(1==this.timesCited?"citation":"citations")+"\n
\n
\n \n "+Object(c.b)(this.recentCitations)+"\n Recent "+(1==this.recentCitations?"citation":"citations")+"\n
\n
\n
\n
\n \n "+Object(c.a)(this.metrics.fcr)+"\n Field Citation Ratio\n
\n
\n \n "+Object(c.a)(this.metrics.rcr)+"\n Relative Citation Ratio\n
\n
",e}}},{key:"template",get:function(){switch(this.config.badgeType){case"small_circle":case"medium_circle":case"large_circle":default:return r.a;case"small_rectangle":case"large_rectangle":return a.a}}},{key:"hidden",get:function(){return this.config.hideWhenZeroCitations&&(this.noMetrics||this.noCitations)}},{key:"alreadyInstalled",get:function(){return this.component.hasAttribute("data-dimensions-badge-installed")}},{key:"textContent",get:function(){return this.noMetrics?"?":Object(c.b)(this.metrics.timesCited)}},{key:"noCitations",get:function(){return this.metrics.timesCited<1}},{key:"noMetrics",get:function(){return!this.metrics.exists}},{key:"noIdentifiers",get:function(){return!this.config.hasAnyIdentifiers}},{key:"legendHidden",get:function(){return"never"===this.config.legendDisplay}},{key:"legendAlwaysVisible",get:function(){return"always"===this.config.legendDisplay}},{key:"timesCited",get:function(){return this.noMetrics?"?":Object(c.b)(this.metrics.timesCited)}},{key:"recentCitations",get:function(){return this.noMetrics?"?":Object(c.b)(this.metrics.recentCitations)}},{key:"optimalHoverDirection",get:function(){return this.badgeComponent.getBoundingClientRect().x>window.innerWidth/2?"left":"right"}},{key:"altScoreText",get:function(){return 1===this.metrics.timesCited?"1 citation on Dimensions.":this.textContent+" total citations on Dimensions."}}]),e}();n.a=l},function(e,n){e.exports='
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n
\n \n \n \n
\n\n
{{SCORE}}
\n
{{LABEL}}
\n\n {{ALT_SCORE}}\n
\n'},function(e,n){e.exports='
\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n
{{SCORE}}
\n {{ALT_SCORE}}\n
\n'},function(e,n,t){"use strict";t.d(n,"b",function(){return i}),t.d(n,"a",function(){return s});var i=function(e){if("string"==typeof e)return e;if((e=e||0)<1e3)return""+e;if(e<1e4){return String(Math.round(e/100)/10)+"k"}return String(Math.round(e/1e3))+"k"},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return null==e||void 0===e?"n/a":e0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],s=arguments[2],r=arguments[3];i(this,e),this.detailPageHost=t,this.dimensionsMetricsApi=s,this.badgeServerURL=r,this.legendDisplay="hover-auto",this.badgeType="medium_circle";for(var c=0;c=0&&(this.legendDisplay=d.value);break;case"data-style":a.indexOf(d.value)>=0&&(this.badgeType=d.value)}}}return r(e,[{key:"hasAnyIdentifiers",get:function(){return this.doi||this.id||this.pmid}},{key:"preferredIdentifier",get:function(){return this.id?new s.b(this.id):this.doi?new s.a(this.doi):this.pmid?new s.c(this.pmid):void 0}},{key:"metricsURL",get:function(){var e=this.preferredIdentifier;return this.dimensionsMetricsApi+"/"+e.type+"/"+e.value}},{key:"detailPageURL",get:function(){var e=this.preferredIdentifier,n=this.detailPageHost+"/details/"+e.type+"/"+e.value;return window.location.host&&(n+="?domain="+window.location.protocol+"//"+window.location.host),n}}]),e}();n.a=c},function(e,n,t){"use strict";function i(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function s(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}t.d(n,"a",function(){return a}),t.d(n,"b",function(){return c}),t.d(n,"c",function(){return d});var o=function e(n){r(this,e),this.value=n},a=function(e){function n(){var e,t,s,o;r(this,n);for(var a=arguments.length,c=Array(a),d=0;d=300)n.exists=!1;else{var r=JSON.parse(s);n.exists=!0,n.timesCited=r.times_cited,n.recentCitations=r.recent_citations,n.highlyCited1=r.highly_cited_1,n.highlyCited5=r.highly_cited_5,n.highlyCited10=r.highly_cited_10,n.rcr=r.relative_citation_ratio,n.fcr=r.field_citation_ratio}e(n)})}}]),e}();n.a=a},function(e,n,t){"use strict";function i(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0}function s(e,n,t){var i=e;return l(n)?(t=n,"string"==typeof e&&(i={uri:e})):i=_(n,{uri:e}),i.callback=t,i}function r(e,n,t){return n=s(e,n,t),o(n)}function o(e){function n(){4===l.readyState&&setTimeout(o,0)}function t(){var e=void 0;if(e=l.response?l.response:l.responseText||a(l),y)try{e=JSON.parse(e)}catch(e){}return e}function s(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,d(e,w)}function o(){if(!h){var n;clearTimeout(f),n=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var i=w,s=null;return 0!==n?(i={body:t(),statusCode:n,method:g,headers:{},url:p,rawRequest:l},l.getAllResponseHeaders&&(i.headers=u(l.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),d(s,i,i.body)}}if(void 0===e.callback)throw new Error("callback argument missing");var c=!1,d=function(n,t,i){c||(c=!0,e.callback(n,t,i))},l=e.xhr||null;l||(l=e.cors||e.useXDR?new r.XDomainRequest:new r.XMLHttpRequest);var _,h,f,p=l.url=e.uri||e.url,g=l.method=e.method||"GET",m=e.body||e.data,v=l.headers=e.headers||{},b=!!e.sync,y=!1,w={body:void 0,headers:{},statusCode:0,method:g,url:p,rawRequest:l};if("json"in e&&!1!==e.json&&(y=!0,v.accept||v.Accept||(v.Accept="application/json"),"GET"!==g&&"HEAD"!==g&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),m=JSON.stringify(!0===e.json?m:e.json))),l.onreadystatechange=n,l.onload=o,l.onerror=s,l.onprogress=function(){},l.onabort=function(){h=!0},l.ontimeout=s,l.open(g,p,!b,e.username,e.password),b||(l.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout(function(){if(!h){h=!0,l.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}},e.timeout)),l.setRequestHeader)for(_ in v)v.hasOwnProperty(_)&&l.setRequestHeader(_,v[_]);else if(e.headers&&!i(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(m||null),l}function a(e){try{if("document"===e.responseType)return e.responseXML;var n=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!n)return e.responseXML}catch(e){}return null}function c(){}var d=t(10),l=t(12),u=t(13),_=t(14);e.exports=r,e.exports.default=r,r.XMLHttpRequest=d.XMLHttpRequest||c,r.XDomainRequest="withCredentials"in new r.XMLHttpRequest?r.XMLHttpRequest:d.XDomainRequest,function(e,n){for(var t=0;t