!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):n((e||self).quicklink={})}(this,function(e){function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r=e.length?{done:!0}:{done:!1,value:e[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.")}function t(e,n,r,t){var o={headers:{accept:"*/*"}};return n||(o.mode="no-cors"),r&&(o.credentials="include"),o.priority=t?"high":"low",window.fetch?fetch(e,o):function(e,n){return new Promise(function(r,t,o){(o=new XMLHttpRequest).open("GET",e,o.withCredentials=n),o.setRequestHeader("Accept","*/*"),o.onload=function(){200===o.status?r():t()},o.send()})}(e,r)}var o,i=(o=document.createElement("link")).relList&&o.relList.supports&&o.relList.supports("prefetch")?function(e,n){return new Promise(function(r,t,o){(o=document.createElement("link")).rel="prefetch",o.href=e,n&&o.setAttribute("crossorigin","anonymous"),o.onload=r,o.onerror=t,document.head.appendChild(o)})}:t,a=window.requestIdleCallback||function(e){var n=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})},1)},c=new Set,s=new Set,u=!1;function l(e,n){return Array.isArray(n)?n.some(function(n){return l(e,n)}):(n.test||n).call(n,e.href,e)}function f(e){if(e){if(e.saveData)return new Error("Save-Data is enabled");if(/2g/.test(e.effectiveType))return new Error("network conditions are poor")}return!0}function d(e,n,o,a,l){var d=f(navigator.connection);return d instanceof Error?Promise.reject(new Error("Cannot prefetch, "+d.message)):(s.size>0&&!u&&console.warn("[Warning] You are using both prefetching and prerendering on the same document"),Promise.all([].concat(e).map(function(e){return c.has(e)?[]:(c.add(e),function(e,n,t){var o=[].slice.call(arguments,3);if(!t)return e.apply(void 0,[n].concat(o));for(var i,a=Array.from(document.querySelectorAll("a")).filter(function(e){return e.href===n}),c=new Map,s=function(){var r=i.value,t=function(i){var s=setTimeout(function(){return r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",a),e.apply(void 0,[n].concat(o))},200);c.set(r,s)},a=function(e){var n=c.get(r);n&&(clearTimeout(n),c.delete(r))};r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",a)},u=r(a);!(i=u()).done;)s()}(n?t:i,new URL(e,location.href).toString(),l,o,a,n))})))}function p(e,n){void 0===n&&(n="immediate"),e=[].concat(e);var t=f(navigator.connection);if(t instanceof Error)return Promise.reject(new Error("Cannot prerender, "+t.message));if(!HTMLScriptElement.supports("speculationrules"))return d(e,!0,!1,!1,"moderate"===n||"conservative"===n),Promise.reject(new Error("This browser does not support the speculation rules API. Falling back to prefetch."));for(var o,i=r(e);!(o=i()).done;)s.add(o.value);c.size>0&&!u&&console.warn("[Warning] You are using both prefetching and prerendering on the same document");var a=function(e,n){var t=new Map;try{for(var o,i=r(e);!(o=i()).done;){var a=o.value,c=document.createElement("script");c.type="speculationrules",c.text=JSON.stringify({prerender:[{source:"list",urls:[a],eagerness:n}]}),document.head.appendChild(c),t.set(a,c)}}catch(e){return e}return t}(e,n);return a.size>0?Promise.resolve(a):Promise.reject(a)}e.listen=function(e){if(void 0===e&&(e={}),window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype){var n=function(e){e=e||1;var n=[],r=0;function t(){r0&&(n.shift()(),r++)}return[function(e){n.push(e)>1||t()},function(){r--,t()}]}(e.throttle||1/0),t=n[0],o=n[1],i=e.limit||1/0,f=e.threshold||0,h=e.origins||[location.hostname],m=e.ignores||[],v=e.delay||0,g=[];specRulesInViewport=new Map;var w=e.timeoutFn||a,y="function"==typeof e.hrefFn&&e.hrefFn,b=e.prerender||!1;u=e.prerenderAndPrefetch||!1;var E=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting)g.push((n=n.target).href),function(e,n){n?setTimeout(e,n):e()}(function(){g.includes(n.href)&&(b||u||E.unobserve(n),(u||b)&&s.size-1&&g.splice(a),specRulesInViewport.has(n.href)&&(specRulesInViewport=function(e,n){var r=e.get(n);try{r.remove(),e.delete(n)}catch(e){return e}return e}(specRulesInViewport,n.href))}})},{threshold:f});return w(function(){(e.el&&e.el.length&&e.el.length>0&&"A"===e.el[0].nodeName?e.el:(e.el||document).querySelectorAll("a")).forEach(function(e){h.length&&!h.includes(e.hostname)||l(e,m)||E.observe(e)})},{timeout:e.timeout||2e3}),function(){c.clear(),E.disconnect()}}},e.prefetch=d,e.prerender=p});