/*! For license information please see ps_de7abba6197b1ec1abce.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ps",[],e):"object"==typeof exports?exports.ps=e():t.ps=e()}(this,(()=>(()=>{var t,e,r,n,o,i={86556:(t,e,r)=>{"use strict";r.d(e,{o0:()=>p});var n=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o{t.exports=r(47252),t.exports.default=t.exports},53048:(t,e,r)=>{"use strict";r.a(t,(async(t,n)=>{try{r.r(e),r.d(e,{get_global_institutions:()=>L}),r(85990);var o=r(99614),i=t([o]);function v(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=m(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function m(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function b(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){b(i,n,o,a,c,"next",t)}function c(t){b(i,n,o,a,c,"throw",t)}a(void 0)}))}}function S(t){return S="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},S(t)}o=(i.then?(await i)():i)[0];var a=r(31678),c=[],s=!1;if(c="springernature.com,springer.com,nature.com,acs.org,getft.io,seamlessaccess.org,sunet.se,swamid.se,literatumonline.com,sciencedirect.com,safire.ac.za,inacademia.org,getfulltextresearch.com,wiley.com,embopress.org,uma.se,tandfonline.com,openathens.net,liblynx.com,scitation.org,elsevier.com,sagepub.com,emerald.com,jamanetwork.com,silverchair.com,thehistorymakers.org,mendeley.com,scopus.com,cambridge.org,magonlinelibrary.com,degruyter.com,ieee.org,brill-dev.pubfactory.com,test.brill.com,kweli.tv,lyellcollection.org,aiaa.org,boneandjoint.org.uk,edu.medici.tv,brill.com,worldscientific.com,oup.com,ams.org,bwb.co.nz,haynesmanualsallaccess.com,neurosurgicalatlas.com,science.org,aaas.org,britishonlinearchives.com,ciaonet.org,elgaronline.com,china.elgaronline.com,advancedintros.com,qwest.tv,microform.digital,haynesmanualsallaccess.com,viewpoint.eiu.com,pubs.ams.org,mathscinet.ams.org,ihr-report.org,royalsocietypublishing.org,www.nejm.org,evidence.nejm.org,ai.nejm.org,catalyst.nejm.org,search.informit.org,aps.org,rsc.org,jddonline.com,rsc-solutions.io".split(",").map((function(t){return t.trim()})),"MISSING_ENV_VAR".EXPIRE_ENABLED){var u="MISSING_ENV_VAR".EXPIRE_ENABLED.toLowerCase();s="true"===u||"on"===u||"1"===u}await(0,o.Ay)(),await(0,o.Ay)(!0);var f=await(0,o.vZ)(),l=!1,h=!1,p=!1,d=1e3*parseInt("MISSING_ENV_VAR".ITEM_TTL||"3600");function _(){return Date.now()}function E(t,e){return t.last_refresh,void 0!==t&&void 0!==t.last_refresh&&t.last_refresh+3e4+d>e}function k(t){return O.apply(this,arguments)}function O(){return(O=x(g().mark((function t(e){var r,n,i,a,c,s,u,f,l,h,p;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.keys().filter((function(t){return void 0!==t&&"_name"!==t})),n=[],i=v(r),t.prev=3,i.s();case 5:if((a=i.n()).done){t.next=13;break}return c=a.value,t.next=9,(0,o.H8)(e,c);case 9:s=t.sent,n.push(s);case 11:t.next=5;break;case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),i.e(t.t0);case 18:return t.prev=18,i.f(),t.finish(18);case 21:n.sort((function(t,e){return e.last_use-t.last_use})).slice(3).forEach((function(t){e.remove(t.entity.entity_id.hexEncode())})),u=_(),n=[],f=v(r),t.prev=25,f.s();case 27:if((l=f.n()).done){t.next=35;break}return h=l.value,t.next=31,(0,o.H8)(e,h);case 31:p=t.sent,n.push(p);case 33:t.next=27;break;case 35:t.next=40;break;case 37:t.prev=37,t.t1=t.catch(25),f.e(t.t1);case 40:return t.prev=40,f.f(),t.finish(40);case 43:n.forEach((function(t){E(t,u)||e.remove(t.entity.entity_id.hexEncode())}));case 44:case"end":return t.stop()}}),t,null,[[3,15,18,21],[25,37,40,43]])})))).apply(this,arguments)}function A(t){if(c&&c.length>0&&!c.some((function(e){return t.origin.endsWith(e)})))throw"Access denied from ".concat(t.origin)}function L(t){return I.apply(this,arguments)}function I(){return(I=x(g().mark((function t(e){var r,n,i,a,c,s,u;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=e||"seamlessaccess.org",r=(0,o.ej)(e),n=r.keys().filter((function(t){return void 0!==t&&"_name"!==t})),i=[],a=v(n),t.prev=5,a.s();case 7:if((c=a.n()).done){t.next=15;break}return s=c.value,t.next=11,(0,o.H8)(r,s);case 11:u=t.sent,i.push((0,o.on)(u));case 13:t.next=7;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(5),a.e(t.t0);case 20:return t.prev=20,a.f(),t.finish(20);case 23:return t.abrupt("return",i);case 24:case"end":return t.stop()}}),t,null,[[5,17,20,23]])})))).apply(this,arguments)}function N(t){return j.apply(this,arguments)}function j(){return(j=x(g().mark((function t(e){var r,n,i;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,L(e);case 2:return r=t.sent,t.next=5,(0,o.BJ)(e);case 5:return n=t.sent,i=r.map((function(t){return t.entity.entityID})),n.forEach((function(t){i.includes(t.entity.entityID)||r.push(t)})),r=r.sort((function(t,e){return t.last_use-e.last_use})),t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t,e){var r=(0,o.ej)(t),n=(0,o.y9)(t);void 0!==e&&(r.remove(e.hexEncode()),n.remove(e.hexEncode()))}function T(t){return M.apply(this,arguments)}function M(){return(M=x(g().mark((function t(e){var r;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,N(e);case 2:(r=t.sent)&&r.forEach((function(t){P(e,t.entity.entityID)}));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(t){return!!t&&(!(t.checkVisibility&&!t.checkVisibility())&&(0!==window.outerHeight&&0!==window.outerWidth))}function C(){return B.apply(this,arguments)}function B(){return B=x(g().mark((function t(){var e;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=document.getElementById("ps-checkbox-adv"),(h=W(e))&&!p&&(p=!0,e.addEventListener("click",function(){var t=x(g().mark((function t(r){var n,i,c,s,u,f,h;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=(0,o.y9)(),i=n.keys().filter((function(t){return void 0!==t&&"_name"!==t})),c=[],s=v(i),t.prev=4,s.s();case 6:if((u=s.n()).done){t.next=14;break}return f=u.value,t.next=10,(0,o.H8)(n,f);case 10:h=t.sent,c.push((0,o.on)(h));case 12:t.next=6;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(4),s.e(t.t0);case 19:return t.prev=19,s.f(),t.finish(19);case 22:(0,o.d4)(x(g().mark((function t(){var e;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.Ay)();case 2:t.sent,e=(0,o.ej)(),c.forEach((function(t){(0,o.VD)(e,t)}));case 5:case"end":return t.stop()}}),t)})))),l=e.checked,a.send(window.parent,"sa-checkbox-clicked",{checked:l}).catch((function(t){console.log("sa-checkbox-clicked message not handled: ".concat(t))}));case 25:case"end":return t.stop()}}),t,null,[[4,16,19,22]])})));return function(e){return t.apply(this,arguments)}}()),f?(e.checked=!0,l=!0):(e.checked=!1,l=!1));case 3:case"end":return t.stop()}}),t)}))),B.apply(this,arguments)}Date.now||(Date.now=function(){return(new Date).getTime()}),String.prototype.hexEncode=function(){var t,e="";for(t=0;t{"use strict";r.a(t,(async(t,n)=>{try{r.d(e,{Ay:()=>T,BJ:()=>A,H8:()=>b,VD:()=>S,d4:()=>u,ej:()=>_,on:()=>g,vZ:()=>j,y9:()=>E});var o=r(86556);function f(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),w}},e}function d(t){return d="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},d(t)}function y(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){y(i,n,o,a,c,"next",t)}function c(t){y(i,n,o,a,c,"throw",t)}a(void 0)}))}}var i=["chrome","chromium","edge","edge-chromium"];try{var a="".split(",").map((function(t){return t.trim()}));i=i.concat(a)}catch(M){console.log("Problem with configured browsers: ".concat(""))}function m(){return w.apply(this,arguments)}function w(){return w=v(p().mark((function t(){var e,r,n,o,i,a,c,s,u,f,l,h,y,v,m,w,g,b,x,S,_=arguments;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x=function(){for(var t=1,e=arguments[0];t0?u.apply(this,arguments):n)i.hasOwnProperty(a)&&o.push(a);return o},v=function(){var t,e=arguments.length,r=arguments,n=r[0];if(e<1)throw new Error("Minimum 1 argument must be given");if(Array.isArray(n)){for(t=0;t0&&void 0!==_[0]&&_[0])){t.next=17;break}e=window,t.next=20;break;case 17:return t.next=19,I();case 19:e=t.sent;case 20:return t.next=22,j();case 22:return t.sent,n=(r={}).toString,i=(o=r.hasOwnProperty).toString,a=i.call(Object),c=Object.getPrototypeOf,S={_type:"",_ns:"",_callMethod:function(t,e){var r=[],n=(e=Array.prototype.slice.call(e))[0];return this._ns&&r.push(this._ns),"string"==typeof n&&-1!==n.indexOf(".")&&(e.shift(),[].unshift.apply(e,n.split("."))),[].push.apply(r,e),t.apply(this,r)},alwaysUseJson:!1,get:function(){return this._callMethod(u,arguments)},set:function(){var t=arguments.length,e=arguments,r=e[0];if(t<1||!g(r)&&t<2)throw new Error("Minimum 2 arguments must be given or first parameter must be an object");if(g(r)&&this._ns){for(var n in r)r.hasOwnProperty(n)&&this._callMethod(f,[n,r[n]]);return r}var o=this._callMethod(f,e);return this._ns?o[r.split(".")[0]]:o},remove:function(){if(arguments.length<1)throw new Error("Minimum 1 argument must be given");return this._callMethod(l,arguments)},removeAll:function(t){return this._ns?(this._callMethod(f,[{}]),!0):this._callMethod(h,[t])},isEmpty:function(){return this._callMethod(y,arguments)},isSet:function(){if(arguments.length<1)throw new Error("Minimum 1 argument must be given");return this._callMethod(v,arguments)},keys:function(){return this._callMethod(m,arguments)}},(s={}).initNamespaceStorage=function(t){return w(t)},s.localStorage=x({},S,{_type:"localStorage"}),s.sessionStorage=x({},S,{_type:"sessionStorage"}),s.namespaceStorages={},s.removeAllStorages=function(t){s.localStorage.removeAll(t),s.sessionStorage.removeAll(t),t||(s.namespaceStorages={})},s.alwaysUseJsonInStorage=function(t){S.alwaysUseJson=t,s.localStorage.alwaysUseJson=t,s.sessionStorage.alwaysUseJson=t},t.abrupt("return",s);case 38:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function g(t){if(t.entity){var e=t.entity;if(e.entityID&&!e.entity_id&&(e.entity_id=e.entityID),e.icon&&!e.entity_icon&&(e.entity_icon=e.icon),e.domains){var r=e.domains.split(";")||[];e.domain=r[0]}e.last_refresh&&!e.last_use&&(e.last_use=e.last_refresh),e.title||(e.title=e.entity_id)}return t}function b(t,e){return x.apply(this,arguments)}function x(){return(x=v(p().mark((function t(e,r){var n;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isSet(r)){t.next=4;break}if(!(n=e.get(r))){t.next=4;break}return t.abrupt("return",n);case 4:return t.abrupt("return",void 0);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(t,e){var r,n=Date.now();null!=e.entity?e=(r=e).entity:r={last_refresh:n,last_use:n,entity:e},e.entityID&&!e.entity_id&&(e.entity_id=e.entityID);var o=e.entity_id.hexEncode();return r=g(r),t.set(o,r)}String.prototype.hexEncode=function(){var t,e="";for(t=0;t{t&&t.d<1&&(t.d=1,t.forEach((t=>t.r--)),t.forEach((t=>t.r--?t.r++:t())))},c.a=(o,i,a)=>{var c;a&&((c=[]).d=-1);var s,u,f,l=new Set,h=o.exports,p=new Promise(((t,e)=>{f=e,u=t}));p[e]=h,p[t]=t=>(c&&t(c),l.forEach(t),p.catch((t=>{}))),o.exports=p,i((o=>{var i;s=(o=>o.map((o=>{if(null!==o&&"object"==typeof o){if(o[t])return o;if(o.then){var i=[];i.d=0,o.then((t=>{a[e]=t,n(i)}),(t=>{a[r]=t,n(i)}));var a={};return a[t]=t=>t(i),a}}var c={};return c[t]=t=>{},c[e]=o,c})))(o);var a=()=>s.map((t=>{if(t[r])throw t[r];return t[e]})),u=new Promise((e=>{(i=()=>e(a)).r=0;var r=t=>t!==c&&!l.has(t)&&(l.add(t),t&&!t.d&&(i.r++,t.push(i)));s.map((e=>e[t](r)))}));return i.r?u:a()}),(t=>(t?f(p[r]=t):u(h),n(c)))),c&&c.d<0&&(c.d=0)},o=[],c.O=(t,e,r,n)=>{if(!e){var i=1/0;for(f=0;f=n)&&Object.keys(c.O).every((t=>c.O[t](e[s])))?e.splice(s--,1):(a=!1,n0&&o[f-1][2]>n;f--)o[f]=o[f-1];o[f]=[e,r,n]},c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={28:0};c.O.j=e=>0===t[e];var e=(e,r)=>{var n,o,[i,a,s]=r,u=0;if(i.some((e=>0!==t[e]))){for(n in a)c.o(a,n)&&(c.m[n]=a[n]);if(s)var f=s(c)}for(e&&e(r);uc(53048)));return c.O(s)})()));