function lazyloadContentImages(){var e=document.documentElement.classList.contains("no-img-blur"),t=document.body.classList.contains("post-template")||document.body.classList.contains("page-template");!e&&t&&Array.from(document.querySelectorAll([".kg-image-card img:not(.lazyload, .lazyloading, .lazyloaded, .lazyautosizes)",".kg-gallery-image img:not(.lazyload, .lazyloading, .lazyloaded, .lazyautosizes)",".kg-product-card .kg-product-card-image:not(.lazyload, .lazyloading, .lazyloaded, .lazyautosizes)"].join(","))).forEach(t=>{if(!t.complete&&0===t.naturalWidth&&t.hasAttribute("width")){var n,o,r=t.getAttribute("srcset")||"";let e=null;t.src.startsWith("https://images.unsplash.com")?((o=new URL(t.src)).searchParams.set("w",30),e=o.href):(n=((o=(r.split(",").shift()||"").split(" "))[0]||"").trim(),o=(o[1]||"").replace("w","").trim(),n&&o&&n.includes("/content/images/size/w"+o+"/")&&(e=n.replace("/content/images/size/w"+o+"/","/content/images/size/w30/"))),e&&(t.setAttribute("srcset",e),t.setAttribute("data-srcset",r||t.src),t.setAttribute("data-sizes","auto"),t.removeAttribute("sizes"),t.classList.add("lazyload"))}})}!function(){try{lazyloadContentImages(),window.addEventListener("sx.posts.loaded",()=>{lazyloadContentImages()})}catch(e){return"Sentry"in window?window.Sentry.captureException(e):"function"==typeof window.reportError?window.reportError(e):console.error(e)}}(),function(e){var t=function(o,f,i){"use strict";var m,p,h,H,r,g,e,u,I,a,M,D,n,F,l,v,y,b,x,w,k,_,C,t,B,W,s,c,U,$,V,E,S,Y,A,G,X,J,L,T,q,O,K,Q,Z,ee,te,d,ne,oe,re,ie,j,N,P,ae,z,le,se,ce,R,de,ue,fe,me,pe,he,ge,ve={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(ge in p=o.lazySizesConfig||o.lazysizesConfig||{},ve)ge in p||(p[ge]=ve[ge]);return f&&f.getElementsByClassName?(h=f.documentElement,H=o.HTMLPictureElement,g="getAttribute",e=o[r="addEventListener"].bind(o),u=o.setTimeout,I=o.requestAnimationFrame||u,a=o.requestIdleCallback,M=/^picture$/i,D=["load","error","lazyincluded","_lazyloaded"],n={},F=Array.prototype.forEach,l=function(e,t){return n[t]||(n[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),n[t].test(e[g]("class")||"")&&n[t]},v=function(e,t){l(e,t)||e.setAttribute("class",(e[g]("class")||"").trim()+" "+t)},y=function(e,t){var n;(n=l(e,t))&&e.setAttribute("class",(e[g]("class")||"").replace(n," "))},b=function(t,n,e){var o=e?r:"removeEventListener";e&&b(t,n),D.forEach(function(e){t[o](e,n)})},x=function(e,t,n,o,r){var i=f.createEvent("Event");return(n=n||{}).instance=m,i.initEvent(t,!o,!r),i.detail=n,e.dispatchEvent(i),i},w=function(e,t){var n;!H&&(n=o.picturefill||p.pf)?(t&&t.src&&!e[g]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},k=function(e,t){return(getComputedStyle(e,null)||{})[t]},_=function(e,t,n){for(n=n||e.offsetWidth;n=i&&(L=c.top)<=J&&(q=c.right)>=i*d&&(T=c.left)<=X&&(O||q||T||L)&&(p.loadHidden||ae(u[t]))&&(S&&N<3&&!a&&(A<3||P<4)||function(e,t){var n,o=e,r=ae(e);for(L-=t,O+=t,T-=t,q+=t;r&&(o=o.offsetParent)&&o!=f.body&&o!=h;)(r=0<(k(o,"opacity")||1))&&"visible"!=k(o,"overflow")&&(n=o.getBoundingClientRect(),r=q>n.left&&Tn.top-1&&L{"use strict";var o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},e={};function t(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function n(o){for(var e=1;ey});function a(e,t){var n=new CustomEvent(e,{bubbles:!0,detail:t});t.target.dispatchEvent(n)}function r(){m(),p()}function i(){var e=0=s.threshold?((t=e).target.classList.add(s.animateClassName),a(s.enterEventName,t),o||i.unobserve(n)):o&&(f((t=e).target),a(s.exitEventName,t))})},g=function(){var e=[].filter.call(document.querySelectorAll(s.selector),function(e){return s.animateClassName,!e.classList.contains(s.animateClassName)});return e.forEach(function(e){return d.observe(e)}),e},v=function(){document.body.classList.remove(s.disabledClassName),d=new IntersectionObserver(h,{root:s.root,rootMargin:s.rootMargin,threshold:s.threshold}),c=g()};const y=function(){if(u(0{"use strict";var e,t,o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};function r(s){const c=[].forEach,e=[].some,t="undefined"!=typeof window&&document.body,d=" ";let u,f=!0,m=0;function r(e){var t=s.orderedList?"ol":"ul",t=document.createElement(t);let n=s.listClass+d+s.extraListClasses;return e&&(n=(n=n+d+s.collapsibleClass)+d+s.isCollapsedClass),t.setAttribute("class",n),t}function p(e,t){e&&e.className!==t&&(e.className=t)}function h(e){var t=n();return(document?.getElementById(e)).offsetTop>t.offsetHeight-1.4*t.clientHeight-s.bottomModeThreshold}function g(){var e=n(),t=e.scrollHeight>e.clientHeight,e=v()+e.clientHeight>e.offsetHeight-s.bottomModeThreshold;return t&&e}function n(){return s.scrollContainer&&document.querySelector(s.scrollContainer)?document.querySelector(s.scrollContainer):document.documentElement||t}function v(){return n()?.scrollTop||0}function y(n,o=v()){let r;return e.call(n,(e,t)=>function e(t){let n=0;return null!==t&&(n=t.offsetTop,s.hasInnerContainers)&&(n+=e(t.offsetParent)),n}(e)>o+s.headingsOffset+10?(r=n[0===t?t:t-1],!0):t===n.length-1?(r=n[n.length-1],!0):void 0),r}return{enableTocAnimation:function(){f=!0},disableTocAnimation:function(e){var t=e.target||e.srcElement;"string"==typeof t.className&&-1!==t.className.indexOf(s.linkClass)&&(f=!1)},render:function(e,t){const n=r(!1);if(t.forEach(e=>{!function t(e,n){var o=n.appendChild(function(e){const t=document.createElement("li"),n=document.createElement("a");return s.listItemClass&&t.setAttribute("class",s.listItemClass),s.onClick&&(n.onclick=s.onClick),s.includeTitleTags&&n.setAttribute("title",e.textContent),s.includeHtml&&e.childNodes.length?c.call(e.childNodes,e=>{n.appendChild(e.cloneNode(!0))}):n.textContent=e.textContent,n.setAttribute("href",s.basePath+"#"+e.id),n.setAttribute("class",s.linkClass+d+`node-name--${e.nodeName} `+s.extraLinkClasses),t.appendChild(n),t}(e));if(e.children.length){const s=r(e.isCollapsed);e.children.forEach(e=>{t(e,s)}),o.appendChild(s)}}(e,n)}),null!==(u=e||u))return u.firstChild&&u.removeChild(u.firstChild),0===t.length?u:u.appendChild(n)},updateToc:function(t,n){s.positionFixedSelector&&(o=v(),r=document.querySelector(s.positionFixedSelector),"auto"===s.fixedSidebarOffset&&(s.fixedSidebarOffset=u.offsetTop),o>s.fixedSidebarOffset?-1===r.className.indexOf(s.positionFixedClass)&&(r.className+=d+s.positionFixedClass):r.className=r.className.replace(d+s.positionFixedClass,""));var o=t,r=n?.target?.getAttribute?n?.target?.getAttribute("href"):null,i=!(!r||"#"!==r.charAt(0))&&h(r.replace("#",""));if(n&&m<5&&m++,(f||i)&&u&&0|/\\@])/g,"\\$1"),l=window.location.hash.replace("#","");let e=f;var a=g(),i=(r&&i?e=r.replace("#",""):l&&l!==f&&a&&(h(f)||m<=2)&&(e=l),u.querySelector(`.${s.linkClass}[href="${s.basePath}#${e}"]`));n!==i&&(a=u.querySelectorAll("."+s.linkClass),c.call(a,e=>{p(e,e.className.replace(d+s.activeLinkClass,""))}),a=u.querySelectorAll("."+s.listItemClass),c.call(a,e=>{p(e,e.className.replace(d+s.activeListItemClass,""))}),i&&-1===i.className.indexOf(s.activeLinkClass)&&(i.className+=d+s.activeLinkClass),(a=i?.parentNode)&&-1===a.className.indexOf(s.activeListItemClass)&&(a.className+=d+s.activeListItemClass),a=u.querySelectorAll(`.${s.listClass}.`+s.collapsibleClass),c.call(a,e=>{-1===e.className.indexOf(s.isCollapsedClass)&&(e.className+=d+s.isCollapsedClass)}),i?.nextSibling&&-1!==i.nextSibling.className.indexOf(s.isCollapsedClass)&&p(i.nextSibling,i.nextSibling.className.replace(d+s.isCollapsedClass,"")),function e(t){return t&&-1!==t.className.indexOf(s.collapsibleClass)&&-1!==t.className.indexOf(s.isCollapsedClass)?(p(t,t.className.replace(d+s.isCollapsedClass,"")),e(t.parentNode.parentNode)):t}(i?.parentNode.parentNode))}},getCurrentlyHighlighting:function(){return f},getTopHeader:y,getScrollTop:v,updateUrlHashForHeader:function(e){var t=v(),n=y(e,t),o=g();if(n&&!(t<5)||o){if(n&&!o){const e="#"+n.id;window.location.hash!==e&&window.history.pushState(null,null,e)}}else"#"!==window.location.hash&&""!==window.location.hash&&window.history.pushState(null,null,"#")}}}o.r(n),o.d(n,{_buildHtml:()=>s,_headingsArray:()=>d,_options:()=>m,_parseContent:()=>c,_scrollListener:()=>u,default:()=>x,destroy:()=>p,init:()=>i,refresh:()=>h});const a={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function l(u){var f,m=u.duration,p=u.offset;function h(e){return e.slice(0,e.lastIndexOf("#"))}"undefined"!=typeof window&&"undefined"!=typeof location&&(f=location.hash?h(location.href):location.href,document.body.addEventListener("click",function(t){var e,n,o,r,i,a,l,s,c;function d(e){r=e-o,window.scrollTo(0,a.easing(r,i,s,c)),r=l.collapseDepth&&(i.isCollapsed=!0),e.push(i)}return o},{nest:[]})},selectHeadings:function(e,t){let n=t;l.ignoreSelector&&(n=t.split(",").map(function(e){return`${e.trim()}:not(${l.ignoreSelector})`}));try{return e.querySelectorAll(n)}catch(e){return console.warn("Headers not found with selector: "+n),null}}}}(m),p();var n=function(t){try{return t.contentElement||document.querySelector(t.contentSelector)}catch(e){return console.warn("Contents element not found: "+t.contentSelector),null}}(m);if(null!==n){var o=b(m);if(null!==o&&null!==(d=c.selectHeadings(n,m.headingSelector))){n=c.nestHeadingsArray(d).nest;if(m.skipRendering)return this;s.render(o,n);let r=!1;o=m.scrollHandlerTimeout||m.throttleTimeout;u=function(e,t,n="auto"){switch(n){case"debounce":return y(e,t);case"throttle":return v(e,t);default:return(t<334?y:v)(e,t)}}(e=>{s.updateToc(d,e),m.disableTocScrollSync||r||(t=m,(o=t.tocScrollingWrapper||t.tocElement||document.querySelector(t.tocSelector))&&o.scrollHeight>o.clientHeight&&(n=o.querySelector("."+t.activeListItemClass))&&(n=n.offsetTop-t.tocScrollOffset,o.scrollTop=0{u(e)},(m.scrollContainer&&document.querySelector(m.scrollContainer)?(document.querySelector(m.scrollContainer).addEventListener("scroll",u,!1),document.querySelector(m.scrollContainer)):(document.addEventListener("scroll",u,!1),document)).addEventListener("resize",u,!1);let t=null;f=v(e=>{r=!0,m.scrollSmooth&&s.disableTocAnimation(e),s.updateToc(d,e),t&&clearTimeout(t),t=setTimeout(()=>{s.enableTocAnimation()},m.scrollSmoothDuration),setTimeout(()=>{r=!1},m.scrollSmoothDuration+100)},m.throttleTimeout),(m.scrollContainer&&document.querySelector(m.scrollContainer)?document.querySelector(m.scrollContainer):document).addEventListener("click",f,!1)}}}function p(){var e=b(m);null!==e&&(m.skipRendering||e&&(e.innerHTML=""),m.scrollContainer&&document.querySelector(m.scrollContainer)?(document.querySelector(m.scrollContainer).removeEventListener("scroll",u,!1),document.querySelector(m.scrollContainer).removeEventListener("resize",u,!1),s&&document.querySelector(m.scrollContainer).removeEventListener("click",f,!1)):(document.removeEventListener("scroll",u,!1),document.removeEventListener("resize",u,!1),s&&document.removeEventListener("click",f,!1)))}function h(e){p(),i(e||m)}const g=Object.prototype.hasOwnProperty;function v(o,r,i){let a,l;return r=r||250,function(...e){const t=i||this,n=+new Date;a&&n{a=n,o.apply(t,e)},r)):(a=n,o.apply(t,e))}}function y(t,n){let o;return(...e)=>{clearTimeout(o),o=setTimeout(()=>t.apply(this,e),n)}}function b(t){try{return t.tocElement||document.querySelector(t.tocSelector)}catch(e){return console.warn("TOC element not found: "+t.tocSelector),null}}const x={_options:m,_buildHtml:s,_parseContent:c,init:i,destroy:p,refresh:h};e=("undefined"==typeof global||global instanceof HTMLElement)&&window||global,t=e=>{var t=!!(e&&e.document&&e.document.querySelector&&e.addEventListener);if("undefined"!=typeof window||t)return e.tocbot=n},"function"==typeof define&&define.amd?define([],t(e)):"object"!=typeof exports||exports instanceof HTMLElement?e.tocbot=t(e):module.exports=t(e)})();var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(s){var e,n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,o={},O={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof j?new j(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=a.reach);y+=v.value.length,v=v.next){var b=v.value;if(n.length>t.length)return;if(!(b instanceof j)){var x,w=1;if(p){if(!(x=N(g,y,t,m))||x.index>=t.length)break;var k=x.index,C=x.index+x[0].length,E=y;for(E+=v.value.length;E<=k;)E+=(v=v.next).value.length;if(y=E-=v.value.length,v.value instanceof j)continue;for(var S=v;S!==n.tail&&(Ea.reach&&(a.reach=b),v.prev);L&&(q=P(n,q,L),y+=L.length),z(n,q,w),v=P(n,q,new j(l,f?O.tokenize(A,f):A,h,A)),T&&P(n,v,T),1a.reach&&(a.reach=L.reach)}}}}}(e,r,t,r.head,0),r),a=[],l=i.head.next;l!==i.tail;)a.push(l.value),l=l.next;return a},hooks:{all:{},add:function(e,t){var n=O.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=O.hooks.all[e];if(n&&n.length)for(var o,r=0;o=n[r++];)o(t)}},Token:j};function j(e,t,n,o){this.type=e,this.content=t,this.alias=n,this.length=0|(o||"").length}function N(e,t,n,o){e.lastIndex=t;var r,i=e.exec(n);return i&&o&&i[1]&&(r=i[1].length,i.index+=r,i[0]=i[0].slice(r)),i}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function P(e,t,n){var o=t.next,r={value:n,prev:t,next:o};return t.next=r,o.prev=r,e.length++,r}function z(e,t,n){for(var o=t.next,r=0;r"+i.content+""},s.document)?((o=O.util.currentScript())&&(O.filename=o.src,o.hasAttribute("data-manual"))&&(O.manual=!0),O.manual||("loading"===(e=document.readyState)||"interactive"===e&&o&&o.defer?document.addEventListener("DOMContentLoaded",r):window.requestAnimationFrame?window.requestAnimationFrame(r):window.setTimeout(r,16))):s.addEventListener&&!O.disableWorkerMessageHandler&&s.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,o=t.code,t=t.immediateClose;s.postMessage(O.highlight(o,O.languages[n],n)),t&&s.close()},!1),O;function r(){O.manual||O.highlightAll()}}(_self);function safeReportError(e){return"Sentry"in window?window.Sentry.captureException(e):"function"==typeof window.reportError?window.reportError(e):void console.error(e)}function safeCall(e){try{e()}catch(e){safeReportError(e)}}function focusOptionsSupported(){let t=!1;try{document.createElement("div").focus({get preventScroll(){return t=!0}})}catch(e){t=!1,safeReportError(e)}return t}function fixTimeline(){var e=Array.from(document.querySelectorAll("[data-sx-timeline-post]"));for(let a=0;a ",document.body.appendChild(o),v=38===o.offsetHeight,document.body.removeChild(o)),(v?parseInt:parseFloat)(getComputedStyle(s).lineHeight)),f=Prism.util.isActive(s,y),o=s.querySelector("code"),m=!f&&o||s,p=[],r=o.textContent.match(x),h=r?r.length+1:1,g=o&&m!=o?(e=o,r=getComputedStyle(s),t=getComputedStyle(e),e.offsetTop+i(t.borderTopWidth)+i(t.paddingTop)-i(r.paddingTop)):0;function i(e){return+e.substr(0,e.length-2)}n.forEach(function(e){var t,n,o,r,i=e.split("-"),a=+i[0],l=+i[1]||a;(l=Math.min(h+d,l)) span",s).forEach(function(e,t){var n=t+a;e.onclick=function(){w=!1,location.hash=l+"."+n,setTimeout(function(){w=!0},1)}})),function(){p.forEach(E)}}},i=0,Prism.hooks.add("before-sanity-check",function(e){var t,n=e.element.parentElement;a(n)&&(t=0,k(".line-highlight",n).forEach(function(e){t+=e.textContent.length,e.parentNode.removeChild(e)}),t)&&/^(?: \n)+$/.test(e.code.slice(-t))&&(e.code=e.code.slice(0,-t))}),Prism.hooks.add("complete",function e(t){var n,o,r=t.element.parentElement;a(r)&&(clearTimeout(i),n=Prism.plugins.lineNumbers,o=t.plugins&&t.plugins.lineNumbers,C(r,y)&&n&&!o?Prism.hooks.add("line-numbers",e):(Prism.plugins.lineHighlight.highlightLines(r)(),i=setTimeout(l,1)))}),window.addEventListener("hashchange",l),window.addEventListener("resize",function(){k("pre").filter(a).map(function(e){return Prism.plugins.lineHighlight.highlightLines(e)}).forEach(E)}))}(),function(){var i,a,l,e,t;void 0!==Prism&&"undefined"!=typeof document&&(i=[],a={},l=function(){},Prism.plugins.toolbar={},e=Prism.plugins.toolbar.registerButton=function(e,n){var t="function"==typeof n?n:function(e){var t;return"function"==typeof n.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){n.onClick.call(this,e)})):"string"==typeof n.url?(t=document.createElement("a")).href=n.url:t=document.createElement("span"),n.className&&t.classList.add(n.className),t.textContent=n.text,t};e in a?console.warn('There is a button with the key "'+e+'" registered already.'):i.push(a[e]=t)},t=Prism.plugins.toolbar.hook=function(o){var e,r,t,n=o.element.parentNode;n&&/pre/i.test(n.nodeName)&&!n.parentNode.classList.contains("code-toolbar")&&((e=document.createElement("div")).classList.add("code-toolbar"),n.parentNode.insertBefore(e,n),e.appendChild(n),(r=document.createElement("div")).classList.add("toolbar"),n=i,(n=(t=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(o.element))?t.map(function(e){return a[e]||l}):n).forEach(function(e){var t,n=e(o);n&&((t=document.createElement("div")).classList.add("toolbar-item"),t.appendChild(n),r.appendChild(t))}),e.appendChild(r))},e("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,o,r=t.getAttribute("data-label");try{o=document.querySelector("template#"+r)}catch(e){}return o?n=o.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=r),n}}),Prism.hooks.add("complete",t))}(),function(){function s(e){var t=document.createElement("textarea");t.value=e.getText(),t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand("copy");setTimeout(function(){n?e.success():e.error()},1)}catch(t){setTimeout(function(){e.error(t)},1)}document.body.removeChild(t)}void 0!==Prism&&"undefined"!=typeof document&&(Prism.plugins.toolbar?Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(e){var t,n=e.element,o=function(e){var t,n={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3};for(t in n){for(var o="data-prismjs-"+t,r=e;r&&!r.hasAttribute(o);)r=r.parentElement;r&&(n[t]=r.getAttribute(o))}return n}(n),r=document.createElement("button"),i=(r.className="copy-to-clipboard-button",r.setAttribute("type","button"),document.createElement("span"));return r.appendChild(i),l("copy"),t={getText:function(){return n.textContent},success:function(){l("copy-success"),a()},error:function(){l("copy-error"),setTimeout(function(){var e;e=n,window.getSelection().selectAllChildren(e)},1),a()}},r.addEventListener("click",function(){var e;e=t,navigator.clipboard?navigator.clipboard.writeText(e.getText()).then(e.success,function(){s(e)}):s(e)}),r;function a(){setTimeout(function(){l("copy")},o["copy-timeout"])}function l(e){i.textContent=o[e],r.setAttribute("data-copy-state",e)}}):console.warn("Copy to Clipboard plugin loaded before Toolbar plugin."))}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FloatingUICore={})}(this,function(e){"use strict";const n=["top","right","bottom","left"],o=["start","end"],k=n.reduce((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1]),[]),S=Math.min,A=Math.max,t={left:"right",right:"left",bottom:"top",top:"bottom"},r={start:"end",end:"start"};function b(e,t,n){return A(e,S(t,n))}function T(e,t){return"function"==typeof e?e(t):e}function q(e){return e.split("-")[0]}function O(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}const i=new Set(["top","bottom"]);function j(e){return i.has(q(e))?"y":"x"}function w(e){return v(j(e))}function N(e,t,n){void 0===n&&(n=!1);var o=O(e),r=w(e),i=x(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return[a=t.reference[i]>t.floating[i]?M(a):a,M(a)]}function P(e){return e.replace(/start|end/g,e=>r[e])}const z=["left","right"],R=["right","left"],H=["top","bottom"],I=["bottom","top"];function M(e){return e.replace(/left|right|bottom|top/g,e=>t[e])}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function y(e){var{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function E(e,t,n){var{reference:o,floating:r}=e,i=j(t),a=w(t),l=x(a),s=q(t),c="y"===i,d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let m;switch(s){case"top":m={x:d,y:o.y-r.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-r.width,y:u};break;default:m={x:o.x,y:o.y}}switch(O(t)){case"start":m[a]-=f*(n&&c?-1:1);break;case"end":m[a]+=f*(n&&c?-1:1)}return m}async function D(e,t){var{x:n,y:o,platform:r,rects:i,elements:a,strategy:l}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:u=!1,padding:f=0}=T(t=void 0===t?{}:t,e),f=C(f),u=a[u?"floating"===d?"reference":"floating":d],m=y(await r.getClippingRect({element:null==(m=await(null==r.isElement?void 0:r.isElement(u)))||m?u:u.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:l})),u="floating"===d?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,s=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),c=await(null==r.isElement?void 0:r.isElement(s))&&await(null==r.getScale?void 0:r.getScale(s))||{x:1,y:1},d=y(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:u,offsetParent:s,strategy:l}):u);return{top:(m.top-d.top+f.top)/c.y,bottom:(d.bottom-m.bottom+f.bottom)/c.y,left:(m.left-d.left+f.left)/c.x,right:(d.right-m.right+f.right)/c.x}}function a(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(t){return n.some(e=>0<=t[e])}function c(e){var t=S(...e.map(e=>e.left)),n=S(...e.map(e=>e.top));return{x:t,y:n,width:A(...e.map(e=>e.right))-t,height:A(...e.map(e=>e.bottom))-n}}const L=new Set(["left","top"]);e.arrow=y=>({name:"arrow",options:y,async fn(e){var{x:t,y:n,placement:o,rects:r,platform:i,elements:a,middlewareData:l}=e,{element:s,padding:c=0}=T(y,e)||{};if(null==s)return{};var c=C(c),t={x:t,y:n},n=w(o),d=x(n),u=await i.getDimensions(s),f="y"===n,m=f?"top":"left",p=f?"bottom":"right",f=f?"clientHeight":"clientWidth",h=r.reference[d]+r.reference[n]-t[n]-r.floating[d],g=t[n]-r.reference[n],s=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let v=s?s[f]:0;h=h/2-g/2,g=(v=v&&await(null==i.isElement?void 0:i.isElement(s))?v:a.floating[f]||r.floating[d])/2-u[d]/2-1,i=S(c[m],g),s=S(c[p],g),a=i,f=v-u[d]-s,m=v/2-u[d]/2+h,c=b(a,m,f),p=!l.arrow&&null!=O(o)&&m!==c&&r.reference[d]/2-(mO(e)===t),...o.filter(e=>O(e)!==t)]:o.filter(e=>q(e)===e)).filter(e=>!t||O(e)===t||!!n&&P(e)!==e)):p,y=await D(e,g),b=(null==(i=s.autoPlacement)?void 0:i.index)||0,x=v[b];return null==x?{}:(i=N(x,l,await(null==d.isRTL?void 0:d.isRTL(u.floating))),c!==x?{reset:{placement:v[0]}}:(i=[y[q(x)],y[i[0]],y[i[1]]],r=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:x,overflows:i}],(i=v[b+1])?{data:{index:b+1,overflows:r},reset:{placement:i}}:(a=(null==(a=(i=r.map(e=>{var t=O(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1])).filter(e=>e[2].slice(0,O(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||i[0][0])!==c?{data:{index:b+1,overflows:r},reset:{placement:a}}:{}))}}},e.computePosition=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=E(c,o,s),f=o,m={},p=0;for(let h=0;he+"-"+r),t)?i.concat(i.map(P)):i}(r,f,u,E));var p,h,g,v=[r,...S],y=await D(t,m),b=[],x=(null==(h=o.flip)?void 0:h.overflows)||[];if(l&&b.push(y[w]),s){const L=N(n,e,E);b.push(y[L[0]],y[L[1]])}if(x=[...x,{placement:n,overflows:b}],!b.every(e=>e<=0)){const L=((null==(h=o.flip)?void 0:h.index)||0)+1,t=v[L];if(t&&("alignment"!==s||k===j(t)||x.every(e=>j(e.placement)!==k||0e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:y.placement;if(!e)switch(d){case"bestFit":{const L=null==(g=x.filter(e=>{var t;return!A||(t=j(e.placement))===k||"y"===t}).map(e=>[e.placement,e.overflows.filter(e=>0e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:g[0];L&&(e=L);break}case"initialPlacement":e=r}if(n!==e)return{reset:{placement:e}}}}return{}}}},e.hide=function(r){return{name:"hide",options:r=void 0===r?{}:r,async fn(e){const t=e["rects"],{strategy:n="referenceHidden",...o}=T(r,e);switch(n){case"referenceHidden":{const r=a(await D(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:l(r)}}}case"escaped":{const r=a(await D(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:l(r)}}}default:return{}}}}},e.inline=function(s){return{name:"inline",options:s=void 0===s?{}:s,async fn(e){const{placement:u,elements:t,rects:n,platform:o,strategy:r}=e,{padding:i=2,x:f,y:m}=T(s,e),a=Array.from(await(null==o.getClientRects?void 0:o.getClientRects(t.reference))||[]),p=function(){var e=a.slice().sort((e,t)=>e.y-t.y),t=[];let n=null;for(let r=0;rn.height/2?t.push([o]):t[t.length-1].push(o),n=o}return t.map(e=>y(c(e)))}(),h=y(c(a)),g=C(i);var l=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=f&&null!=m)return p.find(e=>f>e.left-g.left&&fe.top-g.top&&me.right)),o=S(...p.map(e=>e.left)),e=p.filter(e=>t?e.left===o:e.right===n),r=e[0].top,i=e[e.length-1].bottom;return{top:r,bottom:i,left:o,right:n,width:n-o,height:i-r,x:o,y:r}}return h}},floating:t.floating,strategy:r});return n.reference.x!==l.reference.x||n.reference.y!==l.reference.y||n.reference.width!==l.reference.width||n.reference.height!==l.reference.height?{reset:{rects:l}}:{}}}},e.limitShift=function(g){return{options:g=void 0===g?{}:g,fn(e){const{x:t,y:n,placement:o,rects:r,middlewareData:i}=e,{offset:a=0,mainAxis:l=!0,crossAxis:s=!0}=T(g,e),c={x:t,y:n},d=j(o),u=v(d);let f=c[u],m=c[d];var p,h=T(a,e),h="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const g="y"===u?"height":"width",e=r.reference[u]-r.floating[g]+h.mainAxis,t=r.reference[u]+r.reference[g]-h.mainAxis;ft&&(f=t)}if(s){const g="y"===u?"width":"height",e=L.has(q(o)),t=r.reference[d]-r.floating[g]+(e&&(null==(p=i.offset)?void 0:p[d])||0)+(e?0:h.crossAxis),n=r.reference[d]+r.reference[g]+(!e&&(null==(p=i.offset)?void 0:p[d])||0)-(e?h.crossAxis:0);mn&&(m=n)}return{[u]:f,[d]:m}}}},e.offset=function(l){return{name:"offset",options:l=void 0===l?0:l,async fn(e){var t,{x:n,y:o,placement:r,middlewareData:i}=e,a=await async function(e,t){var{placement:n,platform:o,elements:r}=e,o=await(null==o.isRTL?void 0:o.isRTL(r.floating)),r=q(n),i=O(n),n="y"===j(n),r=L.has(r)?-1:1,o=o&&n?-1:1,a=T(t,e);let{mainAxis:l,crossAxis:s,alignmentAxis:c}="number"==typeof a?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return i&&"number"==typeof c&&(s="end"===i?-1*c:c),n?{x:s*o,y:l*r}:{x:l*r,y:s*o}}(e,l);return r===(null==(t=i.offset)?void 0:t.placement)&&null!=(t=i.arrow)&&t.alignmentOffset?{}:{x:n+a.x,y:o+a.y,data:{...a,placement:r}}}}},e.rectToClientRect=y,e.shift=function(h){return{name:"shift",options:h=void 0===h?{}:h,async fn(e){const{x:t,y:n,placement:o}=e,{mainAxis:r=!0,crossAxis:i=!1,limiter:a={fn:e=>{var{x:t,y:n}=e;return{x:t,y:n}}},...l}=T(h,e),s={x:t,y:n},c=await D(e,l),d=j(q(o)),u=v(d);let f=s[u],m=s[d];if(r){const h="y"===u?"bottom":"right";f=b(f+c["y"===u?"top":"left"],f,f-c[h])}if(i){const h="y"===d?"bottom":"right";m=b(m+c["y"===d?"top":"left"],m,m-c[h])}var p=a.fn({...e,[u]:f,[d]:m});return{...p,data:{x:p.x-t,y:p.y-n,enabled:{[u]:r,[d]:i}}}}}},e.size=function(E){return{name:"size",options:E=void 0===E?{}:E,async fn(e){var t,n;const{placement:o,rects:r,platform:i,elements:a}=e,{apply:l=()=>{},...s}=T(E,e),c=await D(e,s),d=q(o),u=O(o),f="y"===j(o),{width:m,height:p}=r.floating;let h,g;"top"===d||"bottom"===d?(h=d,g=u===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,h="end"===u?"top":"bottom");var v=p-c.top-c.bottom,y=m-c.left-c.right,b=S(p-c[h],v),x=S(m-c[g],y),w=!e.middlewareData.shift;let k=b,C=x;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(C=y),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(k=v),w&&!u){const E=A(c.left,0),e=A(c.right,0),t=A(c.top,0),n=A(c.bottom,0);f?C=m-2*(0!==E||0!==e?E+e:A(c.left,c.right)):k=p-2*(0!==t||0!==n?t+n:A(c.top,c.bottom))}await l({...e,availableWidth:C,availableHeight:k});b=await i.getDimensions(a.floating);return m!==b.width||p!==b.height?{reset:{rects:!0}}:{}}}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@floating-ui/core")):"function"==typeof define&&define.amd?define(["exports","@floating-ui/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FloatingUIDOM={},e.FloatingUICore)}(this,function(e,f){"use strict";const g=Math.min,v=Math.max,l=Math.round,y=Math.floor,m=e=>({x:e,y:e});function t(){return"undefined"!=typeof window}function u(e){return n(e)?(e.nodeName||"").toLowerCase():"#document"}function p(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function b(e){var t;return null==(t=(n(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function n(e){return t()&&(e instanceof Node||e instanceof p(e).Node)}function h(e){return!!t()&&(e instanceof Element||e instanceof p(e).Element)}function x(e){return!!t()&&(e instanceof HTMLElement||e instanceof p(e).HTMLElement)}function o(e){return!(!t()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof p(e).ShadowRoot)}const H=new Set(["inline","contents"]);function w(e){var{overflow:t,overflowX:n,overflowY:o,display:r}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!H.has(r)}const I=new Set(["table","td","th"]);const M=[":popover-open",":modal"];function c(t){return M.some(e=>{try{return t.matches(e)}catch(e){return!1}})}const D=["transform","translate","scale","rotate","perspective"],F=["transform","translate","scale","rotate","perspective","filter"],_=["paint","layout","strict","content"];function s(e){const t=d(),n=h(e)?C(e):e;return D.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||F.some(e=>(n.willChange||"").includes(e))||_.some(e=>(n.contain||"").includes(e))}function d(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const B=new Set(["html","body","#document"]);function k(e){return B.has(u(e))}function C(e){return p(e).getComputedStyle(e)}function E(e){return h(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function S(e){var t;return"html"===u(e)?e:(t=e.assignedSlot||e.parentNode||o(e)&&e.host||b(e),o(t)?t.host:t)}function A(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!0);var o=function e(t){var n=S(t);return k(n)?(t.ownerDocument||t).body:x(n)&&w(n)?n:e(n)}(e),r=o===(null==(r=e.ownerDocument)?void 0:r.body),i=p(o);if(r){const e=L(i);return t.concat(i,i.visualViewport||[],w(o)?o:[],e&&n?A(e):[])}return t.concat(o,A(o,[],n))}function L(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function T(e){var t=C(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;var t=x(e),r=t?e.offsetWidth:n,t=t?e.offsetHeight:o,i=l(n)!==r||l(o)!==t;return i&&(n=r,o=t),{width:n,height:o,$:i}}function q(e){return h(e)?e:e.contextElement}function O(e){var t=q(e);if(!x(t))return m(1);var n=t.getBoundingClientRect(),{width:t,height:o,$:r}=T(t);let i=(r?l(n.width):n.width)/t,a=(r?l(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const W=m(0);function j(e){var t=p(e);return d()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:W}function N(n,e,t,o){void 0===e&&(e=!1),void 0===t&&(t=!1);const r=n.getBoundingClientRect(),i=q(n);let a=m(1);e&&(o?h(o)&&(a=O(o)):a=O(n));void 0===(e=t)&&(e=!1);var l=!o||e&&o!==p(i)||!e?m(0):j(i);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,d=r.width/a.x,u=r.height/a.y;if(i){const n=p(i),f=o&&h(o)?p(o):o;let e=n,t=L(e);for(;t&&o&&f!==e;){const n=O(t),f=t.getBoundingClientRect(),o=C(t),r=f.left+(t.clientLeft+parseFloat(o.paddingLeft))*n.x,m=f.top+(t.clientTop+parseFloat(o.paddingTop))*n.y;s*=n.x,c*=n.y,d*=n.x,u*=n.y,s+=r,c+=m,e=p(t),t=L(e)}}return f.rectToClientRect({width:d,height:u,x:s,y:c})}function P(e,t){var n=E(e).scrollLeft;return t?t.left+n:N(b(e)).left+n}function z(e,t,n){void 0===n&&(n=!1);var o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-(n?0:P(e,o)),y:o.top+t.scrollTop}}const U=new Set(["absolute","fixed"]);function R(e,t,n){let o;if("viewport"===t)o=function(e,t){var n=p(e),o=b(e),n=n.visualViewport;let r=o.clientWidth,i=o.clientHeight,a=0,l=0;if(n){r=n.width,i=n.height;const e=d();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:i,x:a,y:l}}(e,n);else if("document"===t)o=function(e){var t=b(e),n=E(e),o=e.ownerDocument.body,r=v(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=v(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+P(e);n=-n.scrollTop;return"rtl"===C(o).direction&&(a+=v(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:n}}(b(e));else if(h(t))o=(i=N(r=t,!0,"fixed"===n),a=i.top+r.clientTop,i=i.left+r.clientLeft,l=x(r)?O(r):m(1),{width:r.clientWidth*l.x,height:r.clientHeight*l.y,x:i*l.x,y:a*l.y});else{const f=j(e);o={x:t.x-f.x,y:t.y-f.y,width:t.width,height:t.height}}var r,i,a,l;return f.rectToClientRect(o)}function i(e){return"static"===C(e).position}function a(e,t){if(!x(e)||"fixed"===C(e).position)return null;if(t)return t(e);let n=e.offsetParent;return n=b(e)===n?n.ownerDocument.body:n}function r(t,e){var n,o=p(t);if(c(t))return o;if(!x(t)){let e=S(t);for(;e&&!k(e);){if(h(e)&&!i(e))return e;e=S(e)}return o}let r=a(t,e);for(;r&&(n=r,I.has(u(n)))&&i(r);)r=a(r,e);return(!(r&&k(r)&&i(r))||s(r))&&(r||function(){let e=S(t);for(;x(e)&&!k(e);){if(s(e))return e;if(c(e))return null;e=S(e)}return null}())||o}const $={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var{elements:t,rect:n,offsetParent:o,strategy:r}=e,r="fixed"===r,i=b(o),t=!!t&&c(t.floating);if(o===i||t&&r)return n;let a={scrollLeft:0,scrollTop:0},l=m(1);var t=m(0),s=x(o);if((s||!s&&!r)&&("body"===u(o)&&!w(i)||(a=E(o)),x(o))){const e=N(o);l=O(o),t.x=e.x+o.clientLeft,t.y=e.y+o.clientTop}o=!i||s||r?m(0):z(i,a,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+t.x+o.x,y:n.y*l.y-a.scrollTop*l.y+t.y+o.y}},getDocumentElement:b,getClippingRect:function(e){let{element:o,boundary:t,rootBoundary:n,strategy:r}=e;var i=[..."clippingAncestors"===t?c(o)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=A(e,[],!1).filter(e=>h(e)&&"body"!==u(e)),r=null;var i="fixed"===C(e).position;let a=i?S(e):e;for(;h(a)&&!k(a);){const t=C(a),n=s(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&U.has(r.position)||w(a)&&!n&&function e(t,n){var o=S(t);return!(o===n||!h(o)||k(o))&&("fixed"===C(o).position||e(o,n))}(e,a))?o=o.filter(e=>e!==a):r=t,a=S(a)}return t.set(e,o),o}(o,this._c):[].concat(t),n],a=i[0],i=i.reduce((e,t)=>{var n=R(o,t,r);return e.top=v(n.top,e.top),e.right=g(n.right,e.right),e.bottom=g(n.bottom,e.bottom),e.left=v(n.left,e.left),e},R(o,a,r));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:r,getElementRects:async function(e){var t=this.getOffsetParent||r,n=await(0,this.getDimensions)(e.floating);return{reference:function(e,t,n){const o=x(t),r=b(t),i="fixed"===n,a=N(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=m(0);function c(){s.x=P(r)}if(o||!o&&!i)if("body"===u(t)&&!w(r)||(l=E(t)),o){const e=N(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&c();i&&!o&&r&&c();var d=!r||o||i?m(0):z(r,l);return{x:a.left+l.scrollLeft-s.x-d.x,y:a.top+l.scrollTop-s.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var{width:t,height:n}=T(e);return{width:t,height:n}},getScale:O,isElement:h,isRTL:function(e){return"rtl"===C(e).direction}};function V(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Y=f.detectOverflow,G=f.offset,X=f.autoPlacement,J=f.shift,K=f.flip,Q=f.size,Z=f.hide,ee=f.arrow,te=f.inline,ne=f.limitShift;e.arrow=ee,e.autoPlacement=X,e.autoUpdate=function(n,o,r,e){void 0===e&&(e={});const{ancestorScroll:t=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=e,c=q(n),d=t||i?[...c?A(c):[],...A(o)]:[],u=(d.forEach(e=>{t&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}),c&&l?function(u,n){let f,m=null;const p=b(u);function h(){var e;clearTimeout(f),null!=(e=m)&&e.disconnect(),m=null}return function o(e,r){void 0===e&&(e=!1),void 0===r&&(r=1),h();const i=u.getBoundingClientRect(),{left:t,top:a,width:l,height:s}=i;if(e||n(),l&&s){var c={rootMargin:-y(a)+"px "+-y(p.clientWidth-(t+l))+"px "+-y(p.clientHeight-(a+s))+"px "+-y(t)+"px",threshold:v(0,g(1,r))||1};let n=!0;try{m=new IntersectionObserver(d,{...c,root:p.ownerDocument})}catch(e){m=new IntersectionObserver(d,c)}function d(e){var t=e[0].intersectionRatio;if(t!==r){if(!n)return o();t?o(!1,t):f=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==t||V(i,u.getBoundingClientRect())||o(),n=!1}m.observe(u)}}(!0),h}(c,r):null);let f,m=-1,p=null,h=(a&&(p=new ResizeObserver(e=>{var[t]=e;t&&t.target===c&&p&&(p.unobserve(o),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null!=(e=p)&&e.observe(o)})),r()}),c&&!s&&p.observe(c),p.observe(o)),s?N(n):null);return s&&function e(){var t=N(n);h&&!V(h,t)&&r(),h=t,f=requestAnimationFrame(e)}(),r(),()=>{var e;d.forEach(e=>{t&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null!=u&&u(),null!=(e=p)&&e.disconnect(),p=null,s&&cancelAnimationFrame(f)}},e.computePosition=(e,t,n)=>{var o=new Map,r={platform:$,...n},o={...r.platform,_c:o};return f.computePosition(e,t,{...r,platform:o})},e.detectOverflow=Y,e.flip=K,e.getOverflowAncestors=A,e.hide=Z,e.inline=te,e.limitShift=ne,e.offset=G,e.platform=$,e.shift=J,e.size=Q}),safeCall(()=>{window.Spiritix=window.Spiritix||{},window.Spiritix.version="bright v2.0.0"}),safeCall(()=>{document.body.classList.contains("page-landing")&&document.querySelector(".tag-hash-landing-animate")&&sal({threshold:.05})}),safeCall(()=>{const t=document.getElementById("sx-mobile-menu");var e=document.getElementById("sx-mobile-menu-toggle"),n=t&&t.querySelectorAll("[data-sx-mobile-menu-close]")||[];const o="has-modal";if(e&&t)e.addEventListener("click",()=>{t.classList.add("open"),document.body.classList.add(o)}),n.forEach(e=>{e.addEventListener("click",()=>{t.classList.remove("open"),document.body.classList.remove(o)})})}),safeCall(()=>{const n=e=>{var t=e?.getAttribute("data-sx-comments-toggle")||"";const n=document.querySelector(`[data-sx-comments="${t}"]`);t=n?.querySelectorAll("[data-sx-comments-close]")||[];const o="has-modal";if(e&&n)e.addEventListener("click",()=>{n.classList.add("open"),document.body.classList.add(o)}),t.forEach(e=>{e.addEventListener("click",()=>{n.classList.remove("open"),document.body.classList.remove(o)})})},e=document.querySelectorAll("[data-sx-comments-toggle]");e.forEach(e=>n(e)),window.addEventListener("sx.posts.loaded",e=>{(e.detail?.posts||[]).filter(e=>e.getAttribute("data-sx-pagination-post")?.startsWith("sx-feed-")).forEach(e=>{var t=e.querySelector("[data-sx-comments-toggle]");t&&(Array.from(e.querySelectorAll("script[data-ghost-comments]")).forEach(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>{t.setAttribute(e.name,e.value)}),e.parentNode.replaceChild(t,e)}),n(t))})}),"#ghost-comments-root"!==location.hash&&"#ghost-comments"!==location.hash||setTimeout(()=>e[0]?.click())}),safeCall(()=>{const o=o=>{new MutationObserver((e,t)=>{for(const n of e)"childList"===n.type&&0{var e=Number(o.innerText.trim());!isNaN(e)&&1e3o(e)),window.addEventListener("sx.posts.loaded",e=>{var t=(e.detail?.posts||[]).filter(e=>e.getAttribute("data-sx-pagination-post")?.startsWith("sx-feed-"));if(0!==t.length){t.forEach(e=>{e.querySelectorAll("[data-sx-comments-count]").forEach(e=>o(e))});t=document.head.querySelector("script[data-ghost-comments-counts-api]");if(t){const n=document.createElement("script");Array.from(t.attributes).forEach(e=>{n.setAttribute(e.name,e.value)}),t.parentNode.replaceChild(n,t)}}})}),safeCall(()=>{(document.querySelectorAll("[data-sx-theme-toggle]")||[]).forEach(e=>{e.addEventListener("click",()=>{document.documentElement.classList.contains("dark")?(document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("sx-theme","light")):(document.documentElement.classList.remove("light"),document.documentElement.classList.add("dark"),localStorage.setItem("sx-theme","dark")),safeCall(()=>{const e=document.querySelector("#ghost-comments-root > iframe");e&&(e.style.visibility="hidden",e.contentWindow.location.reload(),setTimeout(()=>{e.style.visibility="visible"},300))})})})}),safeCall(()=>{(document.querySelectorAll("[data-sx-nav] [data-sx-dropdown-toggle]")||[]).forEach(t=>{const n=t.nextElementSibling,o=!!n&&"inline"===n.getAttribute("data-sx-dropdown");if(n&&n.hasAttribute("data-sx-dropdown")){const r=e=>{n.contains(e.target)||t.contains(e.target)||o||t.classList.remove("open")},i=()=>{var e={placement:"bottom-end",middleware:[FloatingUIDOM.offset({mainAxis:20,alignmentAxis:-16}),FloatingUIDOM.flip(),FloatingUIDOM.shift({padding:20})]};FloatingUIDOM.computePosition(t,n,e).then(({x:e,y:t})=>{Object.assign(n.style,{"inset-inline-start":e+"px",top:t+"px"})})};let e=()=>{};if(t.addEventListener("click",()=>{t.classList.contains("open")?(t.classList.remove("open"),document.removeEventListener("click",r,!0),e()):(t.classList.add("open"),document.addEventListener("click",r,!0),e=o?e:FloatingUIDOM.autoUpdate(t,n,i,{ancestorScroll:!1}))}),"sx-nav-more-toggle"===t.id){const a=Array.from(n.querySelectorAll("a.current, a.current-parent")),l=()=>{var e=a.every(e=>{let t=e.parentElement;return"inline"===t?.parentElement?.getAttribute("data-sx-dropdown")&&(t=t.parentElement.parentElement),"none"===getComputedStyle(t).display});t.classList.toggle("current",!e)};l(),window.addEventListener("resize",()=>{requestAnimationFrame(l)},{passive:!0})}else n.querySelector(":not(.peer.hidden ~ .peer, .peer.hidden) > a.current, :not(.peer.hidden ~ .peer, .peer.hidden) > a.current-parent")&&t.classList.add("current")}})}),safeCall(()=>{(document.querySelector("[data-sx-sidebar]")?.querySelectorAll("[data-sx-sidebar-group-toggle]"))?.forEach(e=>{e.addEventListener("click",()=>{e.closest("[data-sx-sidebar-group]")?.classList.toggle("open")})})}),safeCall(()=>{var e,t,n,o,r,i=document.querySelector("[data-sx-sidebar]");i&&(e=i.querySelector("[data-sx-sidebar-scroller]"),t=i.querySelector("a[data-sx-sidebar-link].current"))&&e&&(!(i=i.querySelector("[data-sx-progress]"))||(o=e.getBoundingClientRect(),n=t.getBoundingClientRect(),0===(i=i.getBoundingClientRect()).top&&0===i.bottom)?t.scrollIntoView({block:"nearest",inline:"nearest"}):(o=n.top>=o.top&&n.bottom<=o.bottom,r=n.bottom>i.top-32,o?r&&(e.scrollTop+=n.bottom-(i.top-32)):(t.style.scrollMarginBottom=32+i.height+"px",t.scrollIntoView({block:"end",inline:"nearest"}))))}),safeCall(()=>{var e=document.querySelector("[data-sx-breadcrumbs-button]");const t=document.querySelector("[data-sx-sidebar]");var n=document.querySelectorAll("[data-sx-sidebar-close]");const o="has-modal";if(e&&t)e.addEventListener("click",()=>{t.classList.add("open"),document.body.classList.add(o)}),n.forEach(e=>{e.addEventListener("click",()=>{t.classList.remove("open"),document.body.classList.remove(o)})})}),safeCall(()=>{var e=document.querySelector("[data-sx-sidebar]"),t=document.querySelector("[data-sx-prev]"),n=document.querySelector("[data-sx-next]");if(e){var o,r,i,a=Array.from(e.querySelectorAll("a[data-sx-sidebar-link]")),l=a.findIndex(({classList:e})=>e.contains("current")),s=a[0],c=a[l-1],d=a[l],u=a[l+1];if(d&&d!==s){var f=d.getAttribute("data-sx-slug")||"",m=Array.from(document.querySelectorAll("#sx-header [data-sx-nav] a")||[]);if(!m.some(e=>e.classList.contains("current")||e.classList.contains("current-parent")))for(let e=0;e{const e=document.getElementById("sx-header"),t=()=>{e.classList.toggle("stuck",0{requestAnimationFrame(t)},{passive:!0}),t()}),safeCall(()=>{document.querySelectorAll("[data-sx-open]").forEach(e=>{var t=e.getAttribute("data-sx-open");const n=document.getElementById(t);if(n){const o=n.hasAttribute("data-sx-auto-close"),r=e=>{!o||n.parentElement.contains(e.target)||n.classList.remove("open")};e.addEventListener("click",()=>{n.classList.contains("open")?(n.classList.remove("open"),document.removeEventListener("click",r,!0)):(n.classList.add("open"),document.addEventListener("click",r,!0))})}})}),safeCall(()=>{const o=document.getElementById("sx-course-link-sticky");var e=document.getElementById("sx-hero-cta");if(o&&e)new IntersectionObserver(e=>{var t=e.some(e=>!e.isIntersecting&&e.boundingClientRect.top<=64),n=window.innerHeight||document.documentElement.clientHeight,n=o.getBoundingClientRect().top{(document.querySelectorAll("[data-sx-nav] a, .content a, .landing a.landing-kicker, [data-sx-cta] a")||[]).forEach(e=>{"javascript:"===e.protocol||e.hostname===location.hostname||e.target||(e.classList.add("sx-external"),e.target="_blank"),e.removeAttribute("data-sx-check-external"),!e.classList.contains("kg-product-card-button")||"javascript:"!==e.protocol&&e.hostname!==location.hostname||(e.removeAttribute("target"),e.removeAttribute("rel"))})}),safeCall(()=>fixTimeline()),safeCall(function(){const i=document.querySelector("[data-sx-pagination-feed]"),a=document.querySelector("[data-sx-pagination-btn]"),l=document.querySelector("link[rel=next]");var s,c,d;function t(){if(400<=this.status)a.remove();else{c++;var e=this.response.querySelectorAll("[data-sx-pagination-post]"),o=[],r=document.createDocumentFragment();const n=document.createElement("span");r.appendChild(n),e.forEach(function(e,t){var n=document.importNode(e,!0);r.appendChild(n),o.push(n),0===t&&0}),i.appendChild(r);var e=0===o.length&&c{var e=focusOptionsSupported()?{preventScroll:!0}:void 0;n.setAttribute("tabindex",-1),n.focus(e),n.blur(),n.remove(),window.dispatchEvent(new CustomEvent("sx.posts.loaded",{detail:{posts:o}}))}),this.response.querySelector("link[rel=next]"));t?l.href=t.href:(e=!1,a.remove()),(e?(s=!1,u):(s=!1,a.classList.remove("loading"),fixTimeline))()}}function u(){var e;s||(s=!0,a.classList.add("loading"),(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",t),e.open("GET",l.href),e.send(null))}a&&i&&l?(s=!1,c=1,d=Number(a.getAttribute("data-sx-pagination-total")),a.classList.remove("hidden"),a.removeAttribute("hidden"),a.addEventListener("click",u)):a?.remove()}),safeCall(()=>{var e=document.querySelector("[data-sx-toc-container]"),t=document.querySelector("[data-sx-toc-src]"),n=document.querySelector("[data-sx-toc-target]");tocbot&&t&&n&&e&&(tocbot.init({contentElement:t,tocElement:n,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore, .js-toc-ignore h1, .js-toc-ignore h2, .js-toc-ignore h3, .kg-card h1, .kg-card h2, .kg-card h3, .gh-post-upgrade-cta h2",hasInnerContainers:!0,ignoreHiddenElements:!0,extraLinkClasses:"flex py-1.5 hover:text-gray-700 dark:hover:text-gray-300 transition-colors duration-200",activeLinkClass:"current text-gray-700 font-medium -tracking-xs",collapseDepth:2,headingsOffset:80,scrollSmoothOffset:-80,disableTocScrollSync:!0}),e.parentElement.classList.remove("invisible"),!(t=n.querySelectorAll(".toc-list a"))||t.length<=1?"#___TOCBOT___"===t?.[0]?.getAttribute("href")&&t[0].remove():(e.classList.remove("invisible"),e.removeAttribute("hidden"),(n=e.querySelector("[data-sx-toc-top]"))&&n.addEventListener("click",e=>{e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})})))}),safeCall(()=>{reframe(document.querySelectorAll(['.content .kg-embed-card iframe[src*="youtube.com"]','.content .kg-embed-card iframe[src*="youtube-nocookie.com"]','.content .kg-embed-card iframe[src*="player.vimeo.com"]','.content .kg-embed-card iframe[src*="dailymotion.com"]','.content .kg-embed-card iframe[src*="embed.ted.com"]','.content .kg-embed-card iframe[src*="kickstarter.com"][src*="video.html"]',".content .kg-embed-card object",".content .kg-embed-card embed"].join(",")))}),safeCall(()=>{document.querySelectorAll(".ghost-content table, .content table").forEach(e=>{var t=document.createElement("div");t.classList.add("table-responsive"),e.parentElement.insertBefore(t,e),t.appendChild(e)})}),safeCall(()=>{const t=t=>{const n=t.nextElementSibling;if(n&&n.hasAttribute("data-sx-share-dropdown")){const o=e=>{t.parentElement.contains(e.target)||t.classList.remove("open")},r=()=>{var e={placement:"bottom-end",middleware:[FloatingUIDOM.offset(12),FloatingUIDOM.flip(),FloatingUIDOM.shift({padding:20})]};FloatingUIDOM.computePosition(t,n,e).then(({x:e,y:t})=>{Object.assign(n.style,{"inset-inline-start":e+"px",top:t+"px"})})};let e=()=>{};t.addEventListener("click",()=>{t.classList.contains("open")?(t.classList.remove("open"),document.removeEventListener("click",o,!0),e()):(t.classList.add("open"),document.addEventListener("click",o,!0),e=FloatingUIDOM.autoUpdate(t,n,r))}),n.querySelectorAll("a").forEach(e=>{e.addEventListener("click",()=>{setTimeout(()=>t.click())})});const i=n.querySelector("[data-sx-share-copy]"),a=n.parentElement.querySelector("[data-sx-share-success]");i?.addEventListener("click",()=>{var e=i.getAttribute("data-sx-share-copy")||location.href;navigator.clipboard?.writeText(e).then(()=>{a?.classList.add("open");var e={placement:"top",middleware:[FloatingUIDOM.offset(8),FloatingUIDOM.flip(),FloatingUIDOM.shift({padding:20})]};FloatingUIDOM.computePosition(t,a,e).then(({x:e,y:t})=>{Object.assign(a.style,{"inset-inline-start":e+"px",top:t+"px"})}),setTimeout(()=>a?.classList.remove("open"),3e3),t.click()})})}};document.querySelectorAll("[data-sx-share]").forEach(e=>t(e)),window.addEventListener("sx.posts.loaded",e=>{(e.detail?.posts||[]).filter(e=>e.getAttribute("data-sx-pagination-post")?.startsWith("sx-feed-")).forEach(e=>{e.querySelectorAll("[data-sx-share]").forEach(e=>t(e))})})}),safeCall(()=>{window.Prism=window.Prism||{},window.Prism.plugins=window.Prism.plugins||{},window.Prism.plugins.autoloader=window.Prism.plugins.autoloader||{},window.Prism.plugins.autoloader.languages_path="https://cdn.jsdelivr.net/npm/prismjs@v1.29.0/components/",window.Prism.highlightAll()}),safeCall(()=>{var e=document.body.classList.contains("post-template");const a=Array.from(document.querySelectorAll("[data-sx-pagination-post^=sx-feed-]"));var t,n,o=a?.[0];const l=o?.classList.contains("featured")?o:null;if(e&&o)e=o.querySelector("[data-sx-feed-next]"),o=o.querySelector("[data-sx-feed-prev]"),t=document.querySelector("[data-sx-next]")?.href,n=document.querySelector("[data-sx-prev]")?.href,e&&t&&(e.href=t,e.classList.remove("invisible","opacity-50","pointer-events-none")),o&&n&&(o.href=n,o.classList.remove("invisible","opacity-50","pointer-events-none"));else{const r=i=>{i.forEach(t=>{const n=t.previousElementSibling;let e=t.nextElementSibling;var o;if(l&&t!==l&&t.getAttribute("data-sx-pagination-post")===l.getAttribute("data-sx-pagination-post"))t.remove(),i!==a&&1===i.length&&((o=document.querySelector("[data-sx-pagination-btn]"))||(n?.querySelector("[data-sx-feed-next]"))?.classList.add("opacity-50","pointer-events-none"),o?.click());else if(l&&e&&e.getAttribute("data-sx-pagination-post")===l.getAttribute("data-sx-pagination-post")&&(e=null),n?.hasAttribute("data-sx-pagination-post")&&((o=n.querySelector("[data-sx-feed-next]")).addEventListener("click",e=>{e.preventDefault(),t.scrollIntoView({behavior:"smooth"})}),o.classList.remove("invisible","opacity-50","pointer-events-none"),(o=t.querySelector("[data-sx-feed-prev]")).addEventListener("click",e=>{e.preventDefault(),n.scrollIntoView({behavior:"smooth"})}),o.classList.remove("invisible","opacity-50","pointer-events-none")),!e){const r=document.querySelector("[data-sx-pagination-btn]");r&&((o=t.querySelector("[data-sx-feed-next]")).addEventListener("click",e=>{e.preventDefault(),r.scrollIntoView({behavior:"smooth"}),setTimeout(()=>r.click(),100)},{once:!0}),o.classList.remove("invisible","opacity-50","pointer-events-none"))}})};r(a),window.addEventListener("sx.posts.loaded",e=>{var t=(e.detail?.posts||[]).filter(e=>e.getAttribute("data-sx-pagination-post")?.startsWith("sx-feed-"));r(t)})}}),window.addEventListener("DOMContentLoaded",()=>safeCall(()=>{var e=document.querySelector("#ghost-comments-root > iframe");const o=window.Spiritix.ghostAccentColorLightRgb,r=window.Spiritix.ghostAccentColorDarkRgb;e&&o&&r&&e.addEventListener("load",n=>safeCall(()=>{var e=n.target.contentDocument,t=e.createElement("style");t.textContent=` .dark [style*='background-color: rgb(${o.split(" ").join(", ")})'] { background-color: rgb(${r}) !important; } .dark [style*='color: rgb(${o.split(" ").join(", ")})']:not([style*='-color: rgb(${o.split(" ").join(", ")})']) { color: rgb(${r}) !important; } `,e.head.appendChild(t)}))})),safeCall(()=>{document.querySelectorAll(".kg-toggle-card-icon").forEach(e=>{e.hasAttribute("aria-label")||e.setAttribute("aria-label",window.Spiritix.t["Toggle menu"]||"Toggle menu")}),document.querySelectorAll(".kg-product-card-image").forEach(e=>{e.hasAttribute("alt")||e.setAttribute("alt","")}),document.querySelectorAll(".kg-video-card").forEach((e,t)=>{var n,o,r=e.querySelector(".kg-video-seek-slider"),i=e.querySelector(".kg-video-volume-slider"),a=r&&r.parentElement;r&&i&&a&&(n="kg-video-ss-"+t,o="kg-video-vs-"+t,r.id=r.id||n,i.id=i.id||o,(r=document.createElement("label")).htmlFor=n,r.innerText="Video progress",r.classList.add("sr-only"),(i=document.createElement("label")).htmlFor=o,i.innerText="Adjust volume",i.classList.add("sr-only"),a.appendChild(r),a.appendChild(i))}),document.querySelectorAll(".kg-signup-card .kg-signup-card-input").forEach((e,t)=>{e.id=e.id||"kg-singup-email-"+t;var n=document.createElement("label");n.htmlFor=e.id,n.innerText=e.getAttribute("placeholder")||"Email",n.classList.add("sr-only"),e.parentElement.appendChild(n)})}),safeCall(()=>{var e=document.getElementById("sx-lazy-script"),e=e&&e.getAttribute("data-src"),t=document.createElement("script");t.async=!0,t.src=e,0