Files
2025-10-19 13:20:58 +02:00

8 lines
84 KiB
Plaintext

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<p.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},pe=[],he=me=[],Le._lsFlush=Ae,C=Le,t=function(n,e){return e?function(){C(n)}:function(){var e=this,t=arguments;C(function(){n.apply(e,t)})}},B=function(e){function t(){var e=i.now()-o;e<99?u(t,99-e):(a||r)(r)}var n,o,r=function(){n=null,e()};return function(){o=i.now(),n=n||u(t,99)}},oe=/^img$/i,re=/^iframe$/i,ie="onscroll"in o&&!/(gle|ing)bot/.test(navigator.userAgent),P=-1,ae=function(e){return(K=null==K?"hidden"==k(f.body,"visibility"):K)||!("hidden"==k(e.parentNode,"visibility")&&"hidden"==k(e,"visibility"))},Q=xe,ee=N=j=0,te=p.throttleDelay,d=p.ricTimeout,ne=a&&49<d?function(){a(we,{timeout:d}),d!==p.ricTimeout&&(d=p.ricTimeout)}:t(function(){u(we)},!0),le=t(ke),se=function(e){le({target:e.target})},ce=t(function(t,e,n,o,r){var i,a,l,s,c,d;(s=x(t,"lazybeforeunveil",e)).defaultPrevented||(o&&(n?v(t,p.autosizesClass):t.setAttribute("sizes",o)),a=t[g](p.srcsetAttr),i=t[g](p.srcAttr),r&&(l=(d=t.parentNode)&&M.test(d.nodeName||"")),c=e.firesLoad||"src"in t&&(a||i||l),s={target:t},v(t,p.loadingClass),c&&(clearTimeout(Y),Y=u(be,2500),b(t,se,!0)),l&&F.call(d.getElementsByTagName("source"),Ce),a?t.setAttribute("srcset",a):i&&!l&&(re.test(t.nodeName)?(n=i,0==(d=(o=t).getAttribute("data-load-mode")||p.iframeLoadMode)?o.contentWindow.location.replace(n):1==d&&(o.src=n)):t.src=i),r&&(a||l)&&w(t,{src:i})),t._lazyRace&&delete t._lazyRace,y(t,p.lazyClass),C(function(){var e=t.complete&&1<t.naturalWidth;c&&!e||(e&&v(t,p.fastLoadedClass),ke(s),t._lazyCache=!0,u(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&N--},!0)}),de=B(function(){p.loadMode=3,z()}),W={_:function(){G=i.now(),m.elements=f.getElementsByClassName(p.lazyClass),E=f.getElementsByClassName(p.lazyClass+" "+p.preloadClass),e("scroll",z,!0),e("resize",z,!0),e("pageshow",function(e){var t;e.persisted&&(t=f.querySelectorAll("."+p.loadingClass)).length&&t.forEach&&I(function(){t.forEach(function(e){e.complete&&R(e)})})}),o.MutationObserver?new MutationObserver(z).observe(h,{childList:!0,subtree:!0,attributes:!0}):(h[r]("DOMNodeInserted",z,!0),h[r]("DOMAttrModified",z,!0),setInterval(z,999)),e("hashchange",z,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){f[r](e,z,!0)}),/d$|^c/.test(f.readyState)?Se():(e("load",Se),f[r]("DOMContentLoaded",z),u(Se,2e4)),m.elements.length?(xe(),C._lsFlush()):z()},checkElems:z=function(e){var t;(e=!0===e)&&(d=33),Z||(Z=!0,(t=te-(i.now()-ee))<0&&(t=0),e||t<9?ne():u(ne,t))},unveil:R=function(e){var t,n,o,r;e._lazyRace||!(!(r="auto"==(o=(n=oe.test(e.nodeName))&&(e[g](p.sizesAttr)||e[g]("sizes"))))&&S||!n||!e[g]("src")&&!e.srcset||e.complete||l(e,p.errorClass))&&l(e,p.lazyClass)||(t=x(e,"lazyunveilread").detail,r&&s.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,N++,ce(e,t,r,o,n))},_aLSL:Ee},$=t(function(e,t,n,o){var r,i,a;if(e._lazysizesWidth=o,e.setAttribute("sizes",o+="px"),M.test(t.nodeName||""))for(i=0,a=(r=t.getElementsByTagName("source")).length;i<a;i++)r[i].setAttribute("sizes",o);n.detail.dataAttr||w(e,n.detail)}),s={_:function(){U=f.getElementsByClassName(p.autosizesClass),e("resize",V)},checkElems:V=B(function(){var e,t=U.length;if(t)for(e=0;e<t;e++)ye(U[e])}),updateElem:ye},c=function(){!c.i&&f.getElementsByClassName&&(c.i=!0,s._(),W._())},u(function(){p.init&&c()}),m={cfg:p,autoSizer:s,loader:W,init:c,uP:w,aC:v,rC:y,hC:l,fire:x,gW:_,rAF:C}):{init:function(){},cfg:p,noSupport:!0};function ye(e,t,n){var o,r=e.parentNode;r&&(n=_(e,r,n),(o=x(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=o.detail.width)&&n!==e._lazysizesWidth&&$(e,r,o,n))}function be(e){N--,e&&!(N<0)&&e.target||(N=0)}function xe(){var e,t,n,o,r,i,a,l,s,c,d,u=m.elements;if((A=p.loadMode)&&N<8&&(e=u.length)){for(t=0,P++;t<e;t++)if(u[t]&&!u[t]._lazyRace)if(!ie||m.prematureUnveil&&m.prematureUnveil(u[t]))R(u[t]);else if((a=u[t][g]("data-expand"))&&(r=+a)||(r=j),s||(s=!p.expand||p.expand<1?500<h.clientHeight&&500<h.clientWidth?500:370:p.expand,c=(m._defEx=s)*p.expFactor,d=p.hFac,K=null,j<c&&N<1&&2<P&&2<A&&!f.hidden?(j=c,P=0):j=1<A&&1<P&&N<6?s:0),l!==r&&(X=innerWidth+r*d,J=innerHeight+r,i=-1*r,l=r),c=u[t].getBoundingClientRect(),(O=c.bottom)>=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&&T<n.right&&O>n.top-1&&L<n.bottom+1);return r}(u[t],r))){if(R(u[t]),o=!0,9<N)break}else!o&&S&&!n&&N<4&&P<4&&2<A&&(E[0]||p.preloadAfterLoad)&&(E[0]||!a&&(O||q||T||L||"auto"!=u[t][g](p.sizesAttr)))&&(n=E[0]||u[t]);n&&!o&&R(n)}}function we(){Z=!1,ee=i.now(),Q()}function ke(e){var t=e.target;t._lazyCache?delete t._lazyCache:(be(e),v(t,p.loadedClass),y(t,p.loadingClass),b(t,se),x(t,"lazyloaded"))}function Ce(e){var t,n=e[g](p.srcsetAttr);(t=p.customMedia[e[g]("data-media")||e[g]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)}function Ee(){3==p.loadMode&&(p.loadMode=2),de()}function Se(){S||(i.now()-G<999?u(Se,999):(S=!0,p.loadMode=3,z(),e("scroll",Ee,!0)))}function Ae(){var e=he;for(he=me.length?pe:me,fe=!(ue=!0);e.length;)e.shift()();ue=!1}function Le(e,t){ue&&!t?e.apply(this,arguments):(he.push(e),fe||(fe=!0,(f.hidden?u:I)(Ae)))}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.sal=t():e.sal=t()}(this,function(){return(()=>{"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;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}o.d(e,{default:()=>y});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<arguments.length&&void 0!==arguments[0]?arguments[0]:{};p(),Array.from(document.querySelectorAll(s.selector)).forEach(f),u(e),v()}function l(){var e=g();c.push(e)}var s={root:null,rootMargin:"0% 50%",threshold:.5,animateClassName:"sal-animate",disabledClassName:"sal-disabled",enterEventName:"sal:in",exitEventName:"sal:out",selector:"[data-sal]",once:!0,disabled:!1},c=[],d=null,u=function(e){e&&e!==s&&(s=n(n({},s),e))},f=function(e){e.classList.remove(s.animateClassName)},m=function(){document.body.classList.add(s.disabledClassName)},p=function(){d.disconnect(),d=null},h=function(e,i){e.forEach(function(e){var t,n=e.target,o=void 0!==n.dataset.salRepeat,r=void 0!==n.dataset.salOnce,o=o||!(r||s.once);e.intersectionRatio>=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<arguments.length&&void 0!==arguments[0]?arguments[0]:s),"undefined"==typeof window)return console.warn("Sal was not initialised! Probably it is used in SSR."),{elements:c,disable:r,enable:v,reset:i,update:l};if(window.IntersectionObserver)return(s.disabled||"function"==typeof s.disabled&&s.disabled()?m:v)(),{elements:c,disable:r,enable:v,reset:i,update:l};throw m(),Error("Your browser does not support IntersectionObserver!\nGet a polyfill from here:\nhttps://github.com/w3c/IntersectionObserver/tree/master/polyfill")};return e.default})()}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).reframe=t()}(this,function(){"use strict";return function(e,t){var n="string"==typeof e?document.querySelectorAll(e):e,o=t||"js-reframe";"length"in n||(n=[n]);for(var r=0;r<n.length;r+=1){var i=n[r];if(-1!==i.className.split(" ").indexOf(o)||-1<i.style.width.indexOf("%"))return;var a=i.getAttribute("height")||i.offsetHeight,l=i.getAttribute("width")||i.offsetWidth,a=("string"==typeof a?parseInt(a):a)/("string"==typeof l?parseInt(l):l)*100,s=((l=document.createElement("div")).className=o,l.style);s.position="relative",s.width="100%",s.paddingTop="".concat(a,"%"),(s=i.style).position="absolute",s.width="100%",s.height="100%",s.left="0",s.top="0",null!=(a=i.parentNode)&&a.insertBefore(l,i),null!=(s=i.parentNode)&&s.removeChild(i),l.appendChild(i)}}}),(()=>{"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<o.length){const t=y(o),n=u.querySelector("."+s.activeLinkClass),f=t.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/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<c?requestAnimationFrame(d):(window.scrollTo(0,i+s),"function"==typeof a.callback&&a.callback())}"a"!==(l=t.target).tagName.toLowerCase()||!(0<l.hash.length||"#"===l.href.charAt(l.href.length-1))||h(l.href)!==f&&h(l.href)+"#"!==f||-1<t.target.className.indexOf("no-smooth-scroll")||"#"===t.target.href.charAt(t.target.href.length-2)&&"!"===t.target.href.charAt(t.target.href.length-1)||-1===t.target.className.indexOf(u.linkClass)||(e=t.target.hash,n={duration:m,offset:p,callback:function(){var e=t.target.hash;(e=document.getElementById(e.substring(1)))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())}},i=window.pageYOffset,a={duration:n.duration,offset:n.offset||0,callback:n.callback,easing:n.easing||function(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}},l=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),s="string"==typeof e?a.offset+(e?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,c="function"==typeof a.duration?a.duration(s):a.duration,requestAnimationFrame(function(e){d(o=e)}))},!1))}let s,c,d,u,f,m={};function i(e){let i=!1;(m=function(e){var t={};for(let o=0;o<e.length;o++){var n=e[o];for(const e in n)g.call(n,e)&&(t[e]=n[e])}return t}([a,e||{}])).scrollSmooth&&(m.duration=m.scrollSmoothDuration,m.offset=m.scrollSmoothOffset,l(m)),s=r(m),c=function(l){const t=[].reduce;function s(e){return e[e.length-1]}function c(e){var t;return function(t){try{return t instanceof window.HTMLElement||t instanceof window.parent.HTMLElement}catch(e){return t instanceof window.HTMLElement}}(e)?!l.ignoreHiddenElements||e.offsetHeight&&e.offsetParent?(t=e.getAttribute("data-heading-label")||(l.headingLabelCallback?String(l.headingLabelCallback(e.innerText)):(e.innerText||e.textContent).trim()),t={id:e.id,children:[],nodeName:e.nodeName,headingLevel:+e.nodeName.toUpperCase().replace("H",""),textContent:t},l.includeHtml&&(t.childNodes=e.childNodes),l.headingObjectCallback?l.headingObjectCallback(t,e):t):null:e}return{nestHeadingsArray:function(e){return t.call(e,function(o,r){var i=c(r);if(i){r=o.nest;var i,a=(i=c(i)).headingLevel;let e=r,t=s(e),n=a-(t?t.headingLevel:0);for(;0<n&&(!(t=s(e))||a!==t.headingLevel);)t&&void 0!==t.children&&(e=t.children),n--;a>=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<n?n:0)),m.enableUrlHashUpdateOnScroll&&i&&s.getCurrentlyHighlighting()&&s.updateUrlHashForHeader(d);var t,n,o=0===e?.target?.scrollingElement?.scrollTop;(e&&(0===e.eventPhase||null===e.currentTarget)||o)&&(s.updateToc(d),m.scrollEndCallback?.(e))},o,m.scrollHandlerType),i||(u(),i=!0),window.onhashchange=window.onscrollend=e=>{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+r?(clearTimeout(l),l=setTimeout(()=>{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,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function n(e,o){var r,t;switch(o=o||{},O.util.type(e)){case"Object":if(t=O.util.objId(e),o[t])return o[t];for(var i in r={},o[t]=r,e)e.hasOwnProperty(i)&&(r[i]=n(e[i],o));return r;case"Array":return t=O.util.objId(e),o[t]||(r=[],o[t]=r,e.forEach(function(e,t){r[t]=n(e,o)}),r);default:return e}},getLanguage:function(e){for(;e;){var t=n.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(e.stack)||[])[1];if(t){var n,o=document.getElementsByTagName("script");for(n in o)if(o[n].src==t)return o[n]}return null}},isActive:function(e,t,n){for(var o="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(o))return!1;e=e.parentElement}return!!n}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(e,t){var n,o=O.util.clone(O.languages[e]);for(n in t)o[n]=t[n];return o},insertBefore:function(n,e,t,o){var r,i=(o=o||O.languages)[n],a={};for(r in i)if(i.hasOwnProperty(r)){if(r==e)for(var l in t)t.hasOwnProperty(l)&&(a[l]=t[l]);t.hasOwnProperty(r)||(a[r]=i[r])}var s=o[n];return o[n]=a,O.languages.DFS(O.languages,function(e,t){t===s&&e!=n&&(this[e]=a)}),a},DFS:function e(t,n,o,r){r=r||{};var i,a,l,s=O.util.objId;for(i in t)t.hasOwnProperty(i)&&(n.call(t,i,t[i],o||i),a=t[i],"Object"!==(l=O.util.type(a))||r[s(a)]?"Array"!==l||r[s(a)]||(r[s(a)]=!0,e(a,n,i,r)):(r[s(a)]=!0,e(a,n,null,r)))}},plugins:{},highlightAll:function(e,t){O.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var o={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};O.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),O.hooks.run("before-all-elements-highlight",o);for(var r,i=0;r=o.elements[i++];)O.highlightElement(r,!0===t,o.callback)},highlightElement:function(e,t,n){var o=O.util.getLanguage(e),r=O.languages[o],i=(O.util.setLanguage(e,o),e.parentElement),a=(i&&"pre"===i.nodeName.toLowerCase()&&O.util.setLanguage(i,o),{element:e,language:o,grammar:r,code:e.textContent});function l(e){a.highlightedCode=e,O.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,O.hooks.run("after-highlight",a),O.hooks.run("complete",a),n&&n.call(a.element)}O.hooks.run("before-sanity-check",a),(i=a.element.parentElement)&&"pre"===i.nodeName.toLowerCase()&&!i.hasAttribute("tabindex")&&i.setAttribute("tabindex","0"),a.code?(O.hooks.run("before-highlight",a),a.grammar?t&&s.Worker?((o=new Worker(O.filename)).onmessage=function(e){l(e.data)},o.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))):l(O.highlight(a.code,a.grammar,a.language)):l(O.util.encode(a.code))):(O.hooks.run("complete",a),n&&n.call(a.element))},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(O.hooks.run("before-tokenize",o),o.grammar)return o.tokens=O.tokenize(o.code,o.grammar),O.hooks.run("after-tokenize",o),j.stringify(O.util.encode(o.tokens),o.language);throw new Error('The language "'+o.language+'" has no grammar.')},tokenize:function(e,t){var n=t.rest;if(n){for(var o in n)t[o]=n[o];delete t.rest}for(var r=new c,i=(P(r,r.head,e),function e(t,n,o,r,i,a){for(var l in o)if(o.hasOwnProperty(l)&&o[l]){var s=o[l];s=Array.isArray(s)?s:[s];for(var c=0;c<s.length;++c){if(a&&a.cause==l+","+c)return;var d,u=s[c],f=u.inside,m=!!u.lookbehind,p=!!u.greedy,h=u.alias;p&&!u.pattern.global&&(d=u.pattern.toString().match(/[imsuy]*$/)[0],u.pattern=RegExp(u.pattern.source,d+"g"));for(var g=u.pattern||u,v=r.next,y=i;v!==n.tail&&!(a&&y>=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&&(E<C||"string"==typeof S.value);S=S.next)w++,E+=S.value.length;w--,b=t.slice(y,E),x.index-=y}else if(!(x=N(g,0,b,m)))continue;k=x.index;var A=x[0],L=b.slice(0,k),T=b.slice(k+A.length),b=y+b.length,q=(a&&b>a.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),1<w&&(L={cause:l+","+c,reach:b},e(t,n,o,v.prev,y,L),a)&&L.reach>a.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<n&&o!==e.tail;r++)o=o.next;(t.next=o).prev=t,e.length-=r}return(s.Prism=O,j.stringify=function t(e,n){if("string"==typeof e)return e;var o;if(Array.isArray(e))return o="",e.forEach(function(e){o+=t(e,n)}),o;var r,i={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},a=e.alias,l=(a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),O.hooks.run("wrap",i),"");for(r in i.attributes)l+=" "+r+'="'+(i.attributes[r]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},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<e.length-1;a++){var t=e[a],n=t.getAttribute("data-sx-timeline-month"),t=t.getAttribute("data-sx-timeline-year"),o=e[a+1],r=o.getAttribute("data-sx-timeline-month"),i=o.getAttribute("data-sx-timeline-year");n===r&&t!==i&&o.setAttribute("data-sx-timeline-break","")}}"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),function(){var u,f,m,e,t,n,o,r,p;function h(e){var t;return!(0<=e.indexOf("!"))&&((e=f[e]||e)in Prism.languages||(t=m[e])&&!t.error&&!1===t.loading)}function g(e,t,o){var n=(e="string"==typeof e?[e]:e).length,r=0,c=!1;function d(){c||++r===n&&t&&t(e)}0!==n?e.forEach(function(e){function t(){var e,t,n,o,r=m[i];(r=r||(m[i]={callbacks:[]})).callbacks.push({success:a,error:l}),!s&&h(i)?v(i,"success"):!s&&r.error?v(i,"error"):!s&&r.loading||(r.loading=!0,r.error=!1,o=i,o=p.languages_path+"prism-"+o+(p.use_minified?".min":"")+".js",e=function(){r.loading=!1,v(i,"success")},t=function(){r.loading=!1,r.error=!0,v(i,"error")},(n=document.createElement("script")).src=o,n.async=!0,n.onload=function(){document.body.removeChild(n),e()},n.onerror=function(){document.body.removeChild(n),t()},document.body.appendChild(n))}var i,a,l,s,n;a=d,l=function(){c||(c=!0,o&&o(e))},s=0<=(i=e).indexOf("!"),i=i.replace("!",""),(n=u[i=f[i]||i])&&n.length?g(n,t,l):t()}):t&&setTimeout(t,0)}function v(e,t){if(m[e]){for(var n=m[e].callbacks,o=0,r=n.length;o<r;o++){var i=n[o][t];i&&setTimeout(i,0)}n.length=0}}void 0!==Prism&&"undefined"!=typeof document&&(u={javascript:"clike",actionscript:"javascript",apex:["clike","sql"],arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",cfscript:"clike",chaiscript:["clike","cpp"],cilkc:"c",cilkcpp:"cpp",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",gradle:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",idris:"haskell",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",liquid:"markup-templating",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",objectivec:"c",opencl:"c",parser:"markup",php:"markup-templating",phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qsharp:"clike",qml:"javascript",qore:"clike",racket:"scheme",cshtml:["markup","csharp"],jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",squirrel:"clike",stata:["mata","java","python"],"t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templating","vbnet"],tap:"yaml",tt2:["clike","markup-templating"],textile:"markup",twig:"markup-templating",typescript:"javascript",v:"clike",vala:"clike",vbnet:"basic",velocity:"markup",wiki:"markup",xeora:"markup","xml-doc":"markup",xquery:"markup"},f={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",g4:"antlr4",ino:"arduino","arm-asm":"armasm",art:"arturo",adoc:"asciidoc",avs:"avisynth",avdl:"avro-idl",gawk:"awk",sh:"bash",shell:"bash",shortcode:"bbcode",rbnf:"bnf",oscript:"bsl",cs:"csharp",dotnet:"csharp",cfc:"cfscript","cilk-c":"cilkc","cilk-cpp":"cilkcpp",cilk:"cilkcpp",coffee:"coffeescript",conc:"concurnas",jinja2:"django","dns-zone":"dns-zone-file",dockerfile:"docker",gv:"dot",eta:"ejs",xlsx:"excel-formula",xls:"excel-formula",gamemakerlanguage:"gml",po:"gettext",gni:"gn",ld:"linker-script","go-mod":"go-module",hbs:"handlebars",mustache:"handlebars",hs:"haskell",idr:"idris",gitignore:"ignore",hgignore:"ignore",npmignore:"ignore",webmanifest:"json",kt:"kotlin",kts:"kotlin",kum:"kumir",tex:"latex",context:"latex",ly:"lilypond",emacs:"lisp",elisp:"lisp","emacs-lisp":"lisp",md:"markdown",moon:"moonscript",n4jsd:"n4js",nani:"naniscript",objc:"objectivec",qasm:"openqasm",objectpascal:"pascal",px:"pcaxis",pcode:"peoplecode",plantuml:"plant-uml",pq:"powerquery",mscript:"powerquery",pbfasm:"purebasic",purs:"purescript",py:"python",qs:"qsharp",rkt:"racket",razor:"cshtml",rpy:"renpy",res:"rescript",robot:"robotframework",rb:"ruby","sh-session":"shell-session",shellsession:"shell-session",smlnj:"sml",sol:"solidity",sln:"solution-file",rq:"sparql",sclang:"supercollider",t4:"t4-cs",trickle:"tremor",troy:"tremor",trig:"turtle",ts:"typescript",tsconfig:"typoscript",uscript:"unrealscript",uc:"unrealscript",url:"uri",vb:"visual-basic",vba:"visual-basic",webidl:"web-idl",mathematica:"wolfram",nb:"wolfram",wl:"wolfram",xeoracube:"xeora",yml:"yaml"},m={},e="components/",(t=Prism.util.currentScript())&&(n=/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,o=/(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,null!=(r=t.getAttribute("data-autoloader-path"))?e=r.trim().replace(/\/?$/,"/"):(r=t.src,n.test(r)?e=r.replace(n,"components/"):o.test(r)&&(e=r.replace(o,"$1components/")))),p=Prism.plugins.autoloader={languages_path:e,use_minified:!0,loadLanguages:g},Prism.hooks.add("complete",function(e){var t,n,o=e.element,r=e.language;o&&r&&"none"!==r&&((n=((e=o).getAttribute("data-dependencies")||"").trim())||(t=e.parentElement)&&"pre"===t.tagName.toLowerCase()&&(n=(t.getAttribute("data-dependencies")||"").trim()),t=n?n.split(/\s*,\s*/g):[],/^diff-./i.test(r)?(t.push("diff"),t.push(r.substr("diff-".length))):t.push(r),t.every(h)||g(t,function(){Prism.highlightElement(o)}))}))}(),function(){var v,y,b,x,w,i;function k(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function C(e,t){return e.classList.contains(t)}function E(e){e()}function a(e){return!!(e&&/pre/i.test(e.nodeName)&&(e.hasAttribute("data-line")||e.id&&Prism.util.isActive(e,b)))}function l(){var e=location.hash.slice(1),t=(k(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)}),(e.match(/\.([\d,-]+)$/)||[,""])[1]);t&&!document.getElementById(e)&&(e=e.slice(0,e.lastIndexOf(".")),e=document.getElementById(e))&&(e.hasAttribute("data-line")||e.setAttribute("data-line",""),Prism.plugins.lineHighlight.highlightLines(e,t,"temporary ")(),w)&&document.querySelector(".temporary.line-highlight").scrollIntoView()}void 0!==Prism&&"undefined"!=typeof document&&document.querySelector&&(y="line-numbers",b="linkable-line-numbers",x=/\n(?!$)/g,w=!0,Prism.plugins.lineHighlight={highlightLines:function(s,e,c){var t,n=(e="string"==typeof e?e:s.getAttribute("data-line")||"").replace(/\s+/g,"").split(",").filter(Boolean),d=+s.getAttribute("data-line-offset")||0,u=(void 0===v&&((o=document.createElement("div")).style.fontSize="13px",o.style.lineHeight="1.5",o.style.padding="0",o.style.border="0",o.innerHTML="&nbsp;<br />&nbsp;",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))<a||(t=s.querySelector('.line-highlight[data-range="'+e+'"]')||document.createElement("div"),p.push(function(){t.setAttribute("aria-hidden","true"),t.setAttribute("data-range",e),t.className=(c||"")+" line-highlight"}),f&&Prism.plugins.lineNumbers?(i=Prism.plugins.lineNumbers.getLine(s,a),n=Prism.plugins.lineNumbers.getLine(s,l),i&&(o=i.offsetTop+g+"px",p.push(function(){t.style.top=o})),n&&(r=n.offsetTop-i.offsetTop+n.offsetHeight+"px",p.push(function(){t.style.height=r}))):p.push(function(){t.setAttribute("data-start",String(a)),a<l&&t.setAttribute("data-end",String(l)),t.style.top=(a-d-1)*u+g+"px",t.textContent=new Array(l-a+2).join(" \n")}),p.push(function(){t.style.width=s.scrollWidth+"px"}),p.push(function(){m.appendChild(t)}))});var a,l=s.id;return f&&Prism.util.isActive(s,b)&&l&&(C(s,b)||p.push(function(){s.classList.add(b)}),a=parseInt(s.getAttribute("data-start")||"1"),k(".line-numbers-rows > 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-(m<a?i:s)-u[d]/2<0,g=p?m<a?m-a:m-f:0;return{[n]:t[n]+g,data:{[n]:c,centerOffset:m-c-g,...p&&{alignmentOffset:g}},reset:p}}}),e.autoPlacement=function(w){return{name:"autoPlacement",options:w=void 0===w?{}:w,async fn(e){var t,n,o,r,i,a;const{rects:l,middlewareData:s,placement:c,platform:d,elements:u}=e,{crossAxis:f=!1,alignment:m,allowedPlacements:p=k,autoAlignment:h=!0,...g}=T(w,e),v=void 0!==m||p===k?(n=h,o=p,((t=m||null)?[...o.filter(e=>O(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;h<l.length;h++){const{name:i,fn:g}=l[h],{x:v,y,data:b,reset:x}=await g({x:d,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=y?y:u,m={...m,[i]:{...m[i],...b}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:d,y:u}=E(c,f,s)),h=-1)}return{x:d,y:u,placement:f,strategy:r,middlewareData:m}},e.detectOverflow=D,e.flip=function(L){return{name:"flip",options:L=void 0===L?{}:L,async fn(t){const{placement:n,middlewareData:o,rects:e,initialPlacement:r,platform:i,elements:a}=t,{mainAxis:l=!0,crossAxis:s=!0,fallbackPlacements:c,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...m}=T(L,t);if(null==(v=o.arrow)||!v.alignmentOffset){const w=q(n),k=j(r),C=q(r)===r,E=await(null==i.isRTL?void 0:i.isRTL(a.floating)),S=c||(C||!f?[M(r)]:(v=M(p=r),[P(p),v,P(v)])),A="none"!==u;!c&&A&&S.push(...function(e,t,n,o){const r=O(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?R:z:t?z:R;case"left":case"right":return t?H:I;default:return[]}}(q(e),"start"===n,o);return i=r&&(i=i.map(e=>e+"-"+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||0<e.overflows[0])))return{data:{index:L,overflows:x},reset:{placement:t}};let e=null==(y=x.filter(e=>e.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=>0<e).reduce((e,t)=>e+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;r<e.length;r++){var o=e[r];!n||o.y-n.y>n.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&&f<e.right+g.right&&m>e.top-g.top&&m<e.bottom+g.bottom)||h;if(2<=p.length){if("y"===j(u)){const a=p[0],l=p[p.length-1],s="top"===q(u),S=a.top,A=l.bottom,c=(s?a:l).left,d=(s?a:l).right;return{top:S,bottom:A,left:c,right:d,width:d-c,height:A-S,x:c,y:S}}const t="left"===q(u),n=A(...p.map(e=>e.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;f<e?f=e:f>t&&(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);m<t?m=t:m>n&&(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<n.removedNodes.length&&setTimeout(()=>{var e=Number(o.innerText.trim());!isNaN(e)&&1e3<e&&(o.textContent="+999"),!isNaN(e)&&0<e&&o.removeAttribute("hidden"),t.disconnect()})}).observe(o,{attributes:!1,childList:!0,subtree:!1})};document.querySelectorAll("[data-sx-comments-count]").forEach(e=>o(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<m.length;e++)if(m[e].href===d.href.replace(f+"/","")){m[e].classList.add("current");break}}d&&(s=d.getAttribute("data-sx-group"),i=document.querySelector("[data-sx-breadcrumbs-section]"),r=document.querySelector("[data-sx-breadcrumbs-section-text]"),o=document.querySelector("[data-sx-breadcrumbs-current]"),s&&i&&r&&!e.parentElement.classList.contains("no-groups")&&(r.textContent=s,i.removeAttribute("hidden")),o&&(o.textContent=d.getAttribute("data-sx-title"),o.removeAttribute("hidden")),r=e.querySelector("[data-sx-progress] [data-sx-progress-count]"),s=e.querySelector("[data-sx-progress] [data-sx-progress-bar]"),r)&&s&&0<a.length&&(r.textContent=l+1+"/"+a.length,s.style.width=Math.ceil((l+1)/a.length*100)+"%"),c&&t&&(i=t.querySelector("[data-sx-prev-title]"),o=t.querySelector("[data-sx-prev-group]"),r=c.getAttribute("data-sx-group"),s=e.querySelector("[data-sx-progress] [data-sx-progress-prev]"),o&&r&&(o.textContent=" — "+r),i&&(t.href=c.href,i.textContent=c.getAttribute("data-sx-title"),t.classList.remove("invisible"),t.classList.remove("max-sm:hidden")),s)&&(s.href=c.href,s.classList.remove("opacity-50","pointer-events-none"),s.classList.add("hover:bg-gray-900/8","dark:hover:bg-gray-50/10")),u&&n&&-1!==l&&(a=n.querySelector("[data-sx-next-title]"),o=n.querySelector("[data-sx-next-group]"),r=u.getAttribute("data-sx-group"),i=e.querySelector("[data-sx-progress] [data-sx-progress-next]"),o&&r&&(o.textContent=" — "+r),a&&(n.href=u.href,a.textContent=u.getAttribute("data-sx-title"),n.classList.remove("invisible"),n.classList.remove("max-sm:hidden")),i)&&(i.href=u.href,i.classList.remove("opacity-50","pointer-events-none"),i.classList.add("hover:bg-gray-900/8","dark:hover:bg-gray-50/10"))}}),safeCall(()=>{const e=document.getElementById("sx-header"),t=()=>{e.classList.toggle("stuck",0<window.scrollY)};window.addEventListener("scroll",()=>{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<n;o.classList.toggle("stuck",t&&!n)},{rootMargin:"-64px 0px 0px 0px",threshold:1}).observe(e)}),safeCall(()=>{(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<d,t=(setTimeout(()=>{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<document.querySelectorAll(".kg-image-card, .kg-gallery-image, .sx-has-zoom").length&&document.body.appendChild(t)});