Current section
Files
Jump to
Current section
Files
doc/dist/html-YU4BZFVS.js
(()=>{var Ss=Object.create;var jn=Object.defineProperty;var ks=Object.getOwnPropertyDescriptor;var Ls=Object.getOwnPropertyNames;var Ts=Object.getPrototypeOf,_s=Object.prototype.hasOwnProperty;var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ps=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ls(t))!_s.call(e,i)&&i!==n&&jn(e,i,{get:()=>t[i],enumerable:!(r=ks(t,i))||r.enumerable});return e};var Y=(e,t,n)=>(n=e!=null?Ss(Ts(e)):{},Ps(t||!e||!e.__esModule?jn(n,"default",{value:e,enumerable:!0}):n,e));var fr=L((fc,hr)=>{var dr="Expected a function",ur=NaN,Hs="[object Symbol]",Ns=/^\s+|\s+$/g,Ds=/^[-+]0x[0-9a-f]+$/i,Bs=/^0b[01]+$/i,Qs=/^0o[0-7]+$/i,qs=parseInt,Fs=typeof global=="object"&&global&&global.Object===Object&&global,Vs=typeof self=="object"&&self&&self.Object===Object&&self,$s=Fs||Vs||Function("return this")(),Us=Object.prototype,js=Us.toString,Ws=Math.max,zs=Math.min,Nt=function(){return $s.Date.now()};function Gs(e,t,n){var r,i,s,o,a,l,u=0,c=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(dr);t=cr(t)||0,$e(n)&&(c=!!n.leading,d="maxWait"in n,s=d?Ws(cr(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function p(k){var I=r,$=i;return r=i=void 0,u=k,o=e.apply($,I),o}function g(k){return u=k,a=setTimeout(w,t),c?p(k):o}function m(k){var I=k-l,$=k-u,ee=t-I;return d?zs(ee,s-$):ee}function v(k){var I=k-l,$=k-u;return l===void 0||I>=t||I<0||d&&$>=s}function w(){var k=Nt();if(v(k))return x(k);a=setTimeout(w,m(k))}function x(k){return a=void 0,h&&r?p(k):(r=i=void 0,o)}function P(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function Q(){return a===void 0?o:x(Nt())}function V(){var k=Nt(),I=v(k);if(r=arguments,i=this,l=k,I){if(a===void 0)return g(l);if(d)return a=setTimeout(w,t),p(l)}return a===void 0&&(a=setTimeout(w,t)),o}return V.cancel=P,V.flush=Q,V}function Ks(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(dr);return $e(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Gs(e,t,{leading:r,maxWait:t,trailing:i})}function $e(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ys(e){return!!e&&typeof e=="object"}function Js(e){return typeof e=="symbol"||Ys(e)&&js.call(e)==Hs}function cr(e){if(typeof e=="number")return e;if(Js(e))return ur;if($e(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$e(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ns,"");var n=Bs.test(e);return n||Qs.test(e)?qs(e.slice(2),n?2:8):Ds.test(e)?ur:+e}hr.exports=Ks});var q=L(N=>{"use strict";N.__esModule=!0;N.extend=Tr;N.indexOf=co;N.escapeExpression=ho;N.isEmpty=fo;N.createFrame=po;N.blockParams=mo;N.appendContextPath=go;var oo={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},ao=/[&<>"'`=]/g,lo=/[&<>"'`=]/;function uo(e){return oo[e]}function Tr(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var Wt=Object.prototype.toString;N.toString=Wt;var jt=function(t){return typeof t=="function"};jt(/x/)&&(N.isFunction=jt=function(e){return typeof e=="function"&&Wt.call(e)==="[object Function]"});N.isFunction=jt;var _r=Array.isArray||function(e){return e&&typeof e=="object"?Wt.call(e)==="[object Array]":!1};N.isArray=_r;function co(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ho(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return lo.test(e)?e.replace(ao,uo):e}function fo(e){return!e&&e!==0?!0:!!(_r(e)&&e.length===0)}function po(e){var t=Tr({},e);return t._parent=e,t}function mo(e,t){return e.path=t,e}function go(e,t){return(e?e+".":"")+t}});var X=L((ze,Pr)=>{"use strict";ze.__esModule=!0;var zt=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Gt(e,t){var n=t&&t.loc,r=void 0,i=void 0,s=void 0,o=void 0;n&&(r=n.start.line,i=n.end.line,s=n.start.column,o=n.end.column,e+=" - "+r+":"+s);for(var a=Error.prototype.constructor.call(this,e),l=0;l<zt.length;l++)this[zt[l]]=a[zt[l]];Error.captureStackTrace&&Error.captureStackTrace(this,Gt);try{n&&(this.lineNumber=r,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:o,enumerable:!0})):(this.column=s,this.endColumn=o))}catch{}}Gt.prototype=new Error;ze.default=Gt;Pr.exports=ze.default});var Ar=L((Ge,Or)=>{"use strict";Ge.__esModule=!0;var Kt=q();Ge.default=function(e){e.registerHelper("blockHelperMissing",function(t,n){var r=n.inverse,i=n.fn;if(t===!0)return i(this);if(t===!1||t==null)return r(this);if(Kt.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):r(this);if(n.data&&n.ids){var s=Kt.createFrame(n.data);s.contextPath=Kt.appendContextPath(n.data.contextPath,n.name),n={data:s}}return i(t,n)})};Or.exports=Ge.default});var Cr=L((Ke,Ir)=>{"use strict";Ke.__esModule=!0;function vo(e){return e&&e.__esModule?e:{default:e}}var be=q(),yo=X(),wo=vo(yo);Ke.default=function(e){e.registerHelper("each",function(t,n){if(!n)throw new wo.default("Must pass iterator to #each");var r=n.fn,i=n.inverse,s=0,o="",a=void 0,l=void 0;n.data&&n.ids&&(l=be.appendContextPath(n.data.contextPath,n.ids[0])+"."),be.isFunction(t)&&(t=t.call(this)),n.data&&(a=be.createFrame(n.data));function u(g,m,v){a&&(a.key=g,a.index=m,a.first=m===0,a.last=!!v,l&&(a.contextPath=l+g)),o=o+r(t[g],{data:a,blockParams:be.blockParams([t[g],g],[l+g,null])})}if(t&&typeof t=="object")if(be.isArray(t))for(var c=t.length;s<c;s++)s in t&&u(s,s,s===t.length-1);else if(global.Symbol&&t[global.Symbol.iterator]){for(var d=[],h=t[global.Symbol.iterator](),p=h.next();!p.done;p=h.next())d.push(p.value);t=d;for(var c=t.length;s<c;s++)u(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(m){g!==void 0&&u(g,s-1),g=m,s++}),g!==void 0&&u(g,s-1,!0)})();return s===0&&(o=i(this)),o})};Ir.exports=Ke.default});var Mr=L((Ye,Rr)=>{"use strict";Ye.__esModule=!0;function bo(e){return e&&e.__esModule?e:{default:e}}var Eo=X(),xo=bo(Eo);Ye.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new xo.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Rr.exports=Ye.default});var Br=L((Je,Dr)=>{"use strict";Je.__esModule=!0;function So(e){return e&&e.__esModule?e:{default:e}}var Hr=q(),ko=X(),Nr=So(ko);Je.default=function(e){e.registerHelper("if",function(t,n){if(arguments.length!=2)throw new Nr.default("#if requires exactly one argument");return Hr.isFunction(t)&&(t=t.call(this)),!n.hash.includeZero&&!t||Hr.isEmpty(t)?n.inverse(this):n.fn(this)}),e.registerHelper("unless",function(t,n){if(arguments.length!=2)throw new Nr.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})})};Dr.exports=Je.default});var qr=L((Xe,Qr)=>{"use strict";Xe.__esModule=!0;Xe.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;n.hash.level!=null?i=n.hash.level:n.data&&n.data.level!=null&&(i=n.data.level),t[0]=i,e.log.apply(e,t)})};Qr.exports=Xe.default});var Vr=L((Ze,Fr)=>{"use strict";Ze.__esModule=!0;Ze.default=function(e){e.registerHelper("lookup",function(t,n,r){return t&&r.lookupProperty(t,n)})};Fr.exports=Ze.default});var Ur=L((et,$r)=>{"use strict";et.__esModule=!0;function Lo(e){return e&&e.__esModule?e:{default:e}}var Ee=q(),To=X(),_o=Lo(To);et.default=function(e){e.registerHelper("with",function(t,n){if(arguments.length!=2)throw new _o.default("#with requires exactly one argument");Ee.isFunction(t)&&(t=t.call(this));var r=n.fn;if(Ee.isEmpty(t))return n.inverse(this);var i=n.data;return n.data&&n.ids&&(i=Ee.createFrame(n.data),i.contextPath=Ee.appendContextPath(n.data.contextPath,n.ids[0])),r(t,{data:i,blockParams:Ee.blockParams([t],[i&&i.contextPath])})})};$r.exports=et.default});var Yt=L(tt=>{"use strict";tt.__esModule=!0;tt.registerDefaultHelpers=Vo;tt.moveHelperToHooks=$o;function se(e){return e&&e.__esModule?e:{default:e}}var Po=Ar(),Oo=se(Po),Ao=Cr(),Io=se(Ao),Co=Mr(),Ro=se(Co),Mo=Br(),Ho=se(Mo),No=qr(),Do=se(No),Bo=Vr(),Qo=se(Bo),qo=Ur(),Fo=se(qo);function Vo(e){Oo.default(e),Io.default(e),Ro.default(e),Ho.default(e),Do.default(e),Qo.default(e),Fo.default(e)}function $o(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])}});var Wr=L((nt,jr)=>{"use strict";nt.__esModule=!0;var Uo=q();nt.default=function(e){e.registerDecorator("inline",function(t,n,r,i){var s=t;return n.partials||(n.partials={},s=function(o,a){var l=r.partials;r.partials=Uo.extend({},l,n.partials);var u=t(o,a);return r.partials=l,u}),n.partials[i.args[0]]=i.fn,s})};jr.exports=nt.default});var zr=L(Jt=>{"use strict";Jt.__esModule=!0;Jt.registerDefaultDecorators=Go;function jo(e){return e&&e.__esModule?e:{default:e}}var Wo=Wr(),zo=jo(Wo);function Go(e){zo.default(e)}});var Xt=L((rt,Gr)=>{"use strict";rt.__esModule=!0;var Ko=q(),fe={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var n=Ko.indexOf(fe.methodMap,t.toLowerCase());n>=0?t=n:t=parseInt(t,10)}return t},log:function(t){if(t=fe.lookupLevel(t),typeof console<"u"&&fe.lookupLevel(fe.level)<=t){var n=fe.methodMap[t];console[n]||(n="log");for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];console[n].apply(console,i)}}};rt.default=fe;Gr.exports=rt.default});var Kr=L(Zt=>{"use strict";Zt.__esModule=!0;Zt.createNewLookupObject=Jo;var Yo=q();function Jo(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yo.extend.apply(void 0,[Object.create(null)].concat(t))}});var en=L(xe=>{"use strict";xe.__esModule=!0;xe.createProtoAccessControl=ta;xe.resultIsAllowed=na;xe.resetLoggedProperties=ia;function Xo(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var Yr=Kr(),Zo=Xt(),ea=Xo(Zo),it=Object.create(null);function ta(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:Yr.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:Yr.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function na(e,t,n){return Jr(typeof e=="function"?t.methods:t.properties,n)}function Jr(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(ra(t),!1)}function ra(e){it[e]!==!0&&(it[e]=!0,ea.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.You can add a runtime option to disable the check or this warning:See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function ia(){Object.keys(it).forEach(function(e){delete it[e]})}});var sn=L(U=>{"use strict";U.__esModule=!0;U.HandlebarsEnvironment=rn;function Xr(e){return e&&e.__esModule?e:{default:e}}var oe=q(),sa=X(),tn=Xr(sa),oa=Yt(),aa=zr(),la=Xt(),st=Xr(la),ua=en(),ca="4.7.7";U.VERSION=ca;var da=8;U.COMPILER_REVISION=da;var ha=7;U.LAST_COMPATIBLE_COMPILER_REVISION=ha;var fa={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};U.REVISION_CHANGES=fa;var nn="[object Object]";function rn(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},oa.registerDefaultHelpers(this),aa.registerDefaultDecorators(this)}rn.prototype={constructor:rn,logger:st.default,log:st.default.log,registerHelper:function(t,n){if(oe.toString.call(t)===nn){if(n)throw new tn.default("Arg not supported with multiple helpers");oe.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(oe.toString.call(t)===nn)oe.extend(this.partials,t);else{if(typeof n>"u")throw new tn.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(oe.toString.call(t)===nn){if(n)throw new tn.default("Arg not supported with multiple decorators");oe.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){ua.resetLoggedProperties()}};var pa=st.default.log;U.log=pa;U.createFrame=oe.createFrame;U.logger=st.default});var ei=L((ot,Zr)=>{"use strict";ot.__esModule=!0;function on(e){this.string=e}on.prototype.toString=on.prototype.toHTML=function(){return""+this.string};ot.default=on;Zr.exports=ot.default});var ti=L(an=>{"use strict";an.__esModule=!0;an.wrapHelper=ma;function ma(e,t){if(typeof e!="function")return e;var n=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)};return n}});var oi=L(Z=>{"use strict";Z.__esModule=!0;Z.checkRevision=Ea;Z.template=xa;Z.wrapProgram=at;Z.resolvePartial=Sa;Z.invokePartial=ka;Z.noop=ii;function ga(e){return e&&e.__esModule?e:{default:e}}function va(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var ya=q(),z=va(ya),wa=X(),G=ga(wa),K=sn(),ni=Yt(),ba=ti(),ri=en();function Ea(e){var t=e&&e[0]||1,n=K.COMPILER_REVISION;if(!(t>=K.LAST_COMPATIBLE_COMPILER_REVISION&&t<=K.COMPILER_REVISION))if(t<K.LAST_COMPATIBLE_COMPILER_REVISION){var r=K.REVISION_CHANGES[n],i=K.REVISION_CHANGES[t];throw new G.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}else throw new G.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function xa(e,t){if(!t)throw new G.default("No environment passed to template");if(!e||!e.main)throw new G.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function r(o,a,l){l.hash&&(a=z.extend({},a,l.hash),l.ids&&(l.ids[0]=!0)),o=t.VM.resolvePartial.call(this,o,a,l);var u=z.extend({},l,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),c=t.VM.invokePartial.call(this,o,a,u);if(c==null&&t.compile&&(l.partials[l.name]=t.compile(o,e.compilerOptions,t),c=l.partials[l.name](a,u)),c!=null){if(l.indent){for(var d=c.split(``),h=0,p=d.length;h<p&&!(!d[h]&&h+1===p);h++)d[h]=l.indent+d[h];c=d.join(``)}return c}else throw new G.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}var i={strict:function(a,l,u){if(!a||!(l in a))throw new G.default('"'+l+'" not defined in '+a,{loc:u});return i.lookupProperty(a,l)},lookupProperty:function(a,l){var u=a[l];if(u==null||Object.prototype.hasOwnProperty.call(a,l)||ri.resultIsAllowed(u,i.protoAccessControl,l))return u},lookup:function(a,l){for(var u=a.length,c=0;c<u;c++){var d=a[c]&&i.lookupProperty(a[c],l);if(d!=null)return a[c][l]}},lambda:function(a,l){return typeof a=="function"?a.call(l):a},escapeExpression:z.escapeExpression,invokePartial:r,fn:function(a){var l=e[a];return l.decorator=e[a+"_d"],l},programs:[],program:function(a,l,u,c,d){var h=this.programs[a],p=this.fn(a);return l||d||c||u?h=at(this,a,p,l,u,c,d):h||(h=this.programs[a]=at(this,a,p)),h},data:function(a,l){for(;a&&l--;)a=a._parent;return a},mergeIfNeeded:function(a,l){var u=a||l;return a&&l&&a!==l&&(u=z.extend({},l,a)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=a.data;s._setup(a),!a.partial&&e.useData&&(l=La(o,l));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function d(h){return""+e.main(i,h,i.helpers,i.partials,l,c,u)}return d=si(e.main,d,i,a.depths||[],l,c),d(o,a)}return s.isTop=!0,s._setup=function(o){if(o.partial)i.protoAccessControl=o.protoAccessControl,i.helpers=o.helpers,i.partials=o.partials,i.decorators=o.decorators,i.hooks=o.hooks;else{var a=z.extend({},t.helpers,o.helpers);Ta(a,i),i.helpers=a,e.usePartial&&(i.partials=i.mergeIfNeeded(o.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=z.extend({},t.decorators,o.decorators)),i.hooks={},i.protoAccessControl=ri.createProtoAccessControl(o);var l=o.allowCallsToHelperMissing||n;ni.moveHelperToHooks(i,"helperMissing",l),ni.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(o,a,l,u){if(e.useBlockParams&&!l)throw new G.default("must pass block params");if(e.useDepths&&!u)throw new G.default("must pass parent depths");return at(i,o,e[o],a,0,l,u)},s}function at(e,t,n,r,i,s,o){function a(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=o;return o&&l!=o[0]&&!(l===e.nullContext&&o[0]===null)&&(c=[l].concat(o)),n(e,l,e.helpers,e.partials,u.data||r,s&&[u.blockParams].concat(s),c)}return a=si(n,a,e,o,r,s),a.program=t,a.depth=o?o.length:0,a.blockParams=i||0,a}function Sa(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=n.partials[e]):n.name==="@partial-block"?e=n.data["partial-block"]:e=n.partials[n.name],e}function ka(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var i=void 0;if(n.fn&&n.fn!==ii&&(function(){n.data=K.createFrame(n.data);var s=n.fn;i=n.data["partial-block"]=function(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=K.createFrame(l.data),l.data["partial-block"]=r,s(a,l)},s.partials&&(n.partials=z.extend({},n.partials,s.partials))})(),e===void 0&&i&&(e=i),e===void 0)throw new G.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function ii(){return""}function La(e,t){return(!t||!("root"in t))&&(t=t?K.createFrame(t):{},t.root=e),t}function si(e,t,n,r,i,s){if(e.decorator){var o={};t=e.decorator(t,o,n,r&&r[0],i,s,r),z.extend(t,o)}return t}function Ta(e,t){Object.keys(e).forEach(function(n){var r=e[n];e[n]=_a(r,t)})}function _a(e,t){var n=t.lookupProperty;return ba.wrapHelper(e,function(r){return z.extend({lookupProperty:n},r)})}});var li=L((lt,ai)=>{"use strict";lt.__esModule=!0;lt.default=function(e){var t=typeof global<"u"?global:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}};ai.exports=lt.default});var ae=L((ut,hi)=>{"use strict";ut.__esModule=!0;function un(e){return e&&e.__esModule?e:{default:e}}function cn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var Pa=sn(),ui=cn(Pa),Oa=ei(),Aa=un(Oa),Ia=X(),Ca=un(Ia),Ra=q(),ln=cn(Ra),Ma=oi(),ci=cn(Ma),Ha=li(),Na=un(Ha);function di(){var e=new ui.HandlebarsEnvironment;return ln.extend(e,ui),e.SafeString=Aa.default,e.Exception=Ca.default,e.Utils=ln,e.escapeExpression=ln.escapeExpression,e.VM=ci,e.template=function(t){return ci.template(t,e)},e}var Se=di();Se.create=di;Na.default(Se);Se.default=Se;ut.default=Se;hi.exports=ut.default});var Vi=L((qi,Fi)=>{(function(){var e=function(t){var n=new e.Builder;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),n.searchPipeline.add(e.stemmer),t.call(n,n),n.build()};e.version="2.3.9";e.utils={},e.utils.warn=(function(t){return function(n){t.console&&console.warn&&console.warn(n)}})(this),e.utils.asString=function(t){return t==null?"":t.toString()},e.utils.clone=function(t){if(t==null)return t;for(var n=Object.create(null),r=Object.keys(t),i=0;i<r.length;i++){var s=r[i],o=t[s];if(Array.isArray(o)){n[s]=o.slice();continue}if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){n[s]=o;continue}throw new TypeError("clone is not deep and does not support nested objects")}return n},e.FieldRef=function(t,n,r){this.docRef=t,this.fieldName=n,this._stringValue=r},e.FieldRef.joiner="/",e.FieldRef.fromString=function(t){var n=t.indexOf(e.FieldRef.joiner);if(n===-1)throw"malformed field ref string";var r=t.slice(0,n),i=t.slice(n+1);return new e.FieldRef(i,r,t)},e.FieldRef.prototype.toString=function(){return this._stringValue==null&&(this._stringValue=this.fieldName+e.FieldRef.joiner+this.docRef),this._stringValue};e.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var n=0;n<this.length;n++)this.elements[t[n]]=!0}else this.length=0},e.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},e.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},e.Set.prototype.contains=function(t){return!!this.elements[t]},e.Set.prototype.intersect=function(t){var n,r,i,s=[];if(t===e.Set.complete)return this;if(t===e.Set.empty)return t;this.length<t.length?(n=this,r=t):(n=t,r=this),i=Object.keys(n.elements);for(var o=0;o<i.length;o++){var a=i[o];a in r.elements&&s.push(a)}return new e.Set(s)},e.Set.prototype.union=function(t){return t===e.Set.complete?e.Set.complete:t===e.Set.empty?this:new e.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},e.idf=function(t,n){var r=0;for(var i in t)i!="_index"&&(r+=Object.keys(t[i]).length);var s=(n-r+.5)/(r+.5);return Math.log(1+Math.abs(s))},e.Token=function(t,n){this.str=t||"",this.metadata=n||{}},e.Token.prototype.toString=function(){return this.str},e.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},e.Token.prototype.clone=function(t){return t=t||function(n){return n},new e.Token(t(this.str,this.metadata),this.metadata)};e.tokenizer=function(t,n){if(t==null||t==null)return[];if(Array.isArray(t))return t.map(function(d){return new e.Token(e.utils.asString(d).toLowerCase(),e.utils.clone(n))});for(var r=t.toString().toLowerCase(),i=r.length,s=[],o=0,a=0;o<=i;o++){var l=r.charAt(o),u=o-a;if(l.match(e.tokenizer.separator)||o==i){if(u>0){var c=e.utils.clone(n)||{};c.position=[a,u],c.index=s.length,s.push(new e.Token(r.slice(a,o),c))}a=o+1}}return s},e.tokenizer.separator=/[\s\-]+/;e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions=Object.create(null),e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){var n=t.label&&t.label in this.registeredFunctions;n||e.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index.`,t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(r){var i=e.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},e.Pipeline.prototype.add=function(){var t=Array.prototype.slice.call(arguments);t.forEach(function(n){e.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(t){var n=this._stack.indexOf(t);n!=-1&&this._stack.splice(n,1)},e.Pipeline.prototype.run=function(t){for(var n=this._stack.length,r=0;r<n;r++){for(var i=this._stack[r],s=[],o=0;o<t.length;o++){var a=i(t[o],o,t);if(!(a==null||a===""))if(Array.isArray(a))for(var l=0;l<a.length;l++)s.push(a[l]);else s.push(a)}t=s}return t},e.Pipeline.prototype.runString=function(t,n){var r=new e.Token(t,n);return this.run([r]).map(function(i){return i.toString()})},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})};e.Vector=function(t){this._magnitude=0,this.elements=t||[]},e.Vector.prototype.positionForIndex=function(t){if(this.elements.length==0)return 0;for(var n=0,r=this.elements.length/2,i=r-n,s=Math.floor(i/2),o=this.elements[s*2];i>1&&(o<t&&(n=s),o>t&&(r=s),o!=t);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==t||o>t)return s*2;if(o<t)return(s+1)*2},e.Vector.prototype.insert=function(t,n){this.upsert(t,n,function(){throw"duplicate index"})},e.Vector.prototype.upsert=function(t,n,r){this._magnitude=0;var i=this.positionForIndex(t);this.elements[i]==t?this.elements[i+1]=r(this.elements[i+1],n):this.elements.splice(i,0,t,n)},e.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,n=this.elements.length,r=1;r<n;r+=2){var i=this.elements[r];t+=i*i}return this._magnitude=Math.sqrt(t)},e.Vector.prototype.dot=function(t){for(var n=0,r=this.elements,i=t.elements,s=r.length,o=i.length,a=0,l=0,u=0,c=0;u<s&&c<o;)a=r[u],l=i[c],a<l?u+=2:a>l?c+=2:a==l&&(n+=r[u+1]*i[c+1],u+=2,c+=2);return n},e.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},e.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),n=1,r=0;n<this.elements.length;n+=2,r++)t[r]=this.elements[n];return t},e.Vector.prototype.toJSON=function(){return this.elements};e.stemmer=(function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},n={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},r="[^aeiou]",i="[aeiouy]",s=r+"[^aeiouy]*",o=i+"[aeiou]*",a="^("+s+")?"+o+s,l="^("+s+")?"+o+s+"("+o+")?$",u="^("+s+")?"+o+s+o+s,c="^("+s+")?"+i,d=new RegExp(a),h=new RegExp(u),p=new RegExp(l),g=new RegExp(c),m=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,x=/^(.+?)(ed|ing)$/,P=/.$/,Q=/(at|bl|iz)$/,V=new RegExp("([^aeiouylsz])\\1$"),k=new RegExp("^"+s+i+"[^aeiouwxy]$"),I=/^(.+?[^aeiou])y$/,$=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,ee=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,ye=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,Ie=/^(.+?)(s|t)(ion)$/,te=/^(.+?)e$/,Ce=/ll$/,Re=new RegExp("^"+s+i+"[^aeiouwxy]$"),we=function(y){var S,ne,B,b,T,re,de;if(y.length<3)return y;if(B=y.substr(0,1),B=="y"&&(y=B.toUpperCase()+y.substr(1)),b=m,T=v,b.test(y)?y=y.replace(b,"$1$2"):T.test(y)&&(y=y.replace(T,"$1$2")),b=w,T=x,b.test(y)){var _=b.exec(y);b=d,b.test(_[1])&&(b=P,y=y.replace(b,""))}else if(T.test(y)){var _=T.exec(y);S=_[1],T=g,T.test(S)&&(y=S,T=Q,re=V,de=k,T.test(y)?y=y+"e":re.test(y)?(b=P,y=y.replace(b,"")):de.test(y)&&(y=y+"e"))}if(b=I,b.test(y)){var _=b.exec(y);S=_[1],y=S+"i"}if(b=$,b.test(y)){var _=b.exec(y);S=_[1],ne=_[2],b=d,b.test(S)&&(y=S+t[ne])}if(b=ee,b.test(y)){var _=b.exec(y);S=_[1],ne=_[2],b=d,b.test(S)&&(y=S+n[ne])}if(b=ye,T=Ie,b.test(y)){var _=b.exec(y);S=_[1],b=h,b.test(S)&&(y=S)}else if(T.test(y)){var _=T.exec(y);S=_[1]+_[2],T=h,T.test(S)&&(y=S)}if(b=te,b.test(y)){var _=b.exec(y);S=_[1],b=h,T=p,re=Re,(b.test(S)||T.test(S)&&!re.test(S))&&(y=S)}return b=Ce,T=h,b.test(y)&&T.test(y)&&(b=P,y=y.replace(b,"")),B=="y"&&(y=B.toLowerCase()+y.substr(1)),y};return function(ce){return ce.update(we)}})(),e.Pipeline.registerFunction(e.stemmer,"stemmer");e.generateStopWordFilter=function(t){var n=t.reduce(function(r,i){return r[i]=i,r},{});return function(r){if(r&&n[r.toString()]!==r.toString())return r}},e.stopWordFilter=e.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter");e.trimmer=function(t){return t.update(function(n){return n.replace(/^\W+/,"").replace(/\W+$/,"")})},e.Pipeline.registerFunction(e.trimmer,"trimmer");e.TokenSet=function(){this.final=!1,this.edges={},this.id=e.TokenSet._nextId,e.TokenSet._nextId+=1},e.TokenSet._nextId=1,e.TokenSet.fromArray=function(t){for(var n=new e.TokenSet.Builder,r=0,i=t.length;r<i;r++)n.insert(t[r]);return n.finish(),n.root},e.TokenSet.fromClause=function(t){return"editDistance"in t?e.TokenSet.fromFuzzyString(t.term,t.editDistance):e.TokenSet.fromString(t.term)},e.TokenSet.fromFuzzyString=function(t,n){for(var r=new e.TokenSet,i=[{node:r,editsRemaining:n,str:t}];i.length;){var s=i.pop();if(s.str.length>0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new e.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new e.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new e.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var c=s.str.charAt(0),d=s.str.charAt(1),h;d in s.node.edges?h=s.node.edges[d]:(h=new e.TokenSet,s.node.edges[d]=h),s.str.length==1&&(h.final=!0),i.push({node:h,editsRemaining:s.editsRemaining-1,str:c+s.str.slice(2)})}}}return r},e.TokenSet.fromString=function(t){for(var n=new e.TokenSet,r=n,i=0,s=t.length;i<s;i++){var o=t[i],a=i==s-1;if(o=="*")n.edges[o]=n,n.final=a;else{var l=new e.TokenSet;l.final=a,n.edges[o]=l,n=l}}return r},e.TokenSet.prototype.toArray=function(){for(var t=[],n=[{prefix:"",node:this}];n.length;){var r=n.pop(),i=Object.keys(r.node.edges),s=i.length;r.node.final&&(r.prefix.charAt(0),t.push(r.prefix));for(var o=0;o<s;o++){var a=i[o];n.push({prefix:r.prefix.concat(a),node:r.node.edges[a]})}}return t},e.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",n=Object.keys(this.edges).sort(),r=n.length,i=0;i<r;i++){var s=n[i],o=this.edges[s];t=t+s+o.id}return t},e.TokenSet.prototype.intersect=function(t){for(var n=new e.TokenSet,r=void 0,i=[{qNode:t,output:n,node:this}];i.length;){r=i.pop();for(var s=Object.keys(r.qNode.edges),o=s.length,a=Object.keys(r.node.edges),l=a.length,u=0;u<o;u++)for(var c=s[u],d=0;d<l;d++){var h=a[d];if(h==c||c=="*"){var p=r.node.edges[h],g=r.qNode.edges[c],m=p.final&&g.final,v=void 0;h in r.output.edges?(v=r.output.edges[h],v.final=v.final||m):(v=new e.TokenSet,v.final=m,r.output.edges[h]=v),i.push({qNode:g,output:v,node:p})}}}return n},e.TokenSet.Builder=function(){this.previousWord="",this.root=new e.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},e.TokenSet.Builder.prototype.insert=function(t){var n,r=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<t.length&&i<this.previousWord.length&&t[i]==this.previousWord[i];i++)r++;this.minimize(r),this.uncheckedNodes.length==0?n=this.root:n=this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(var i=r;i<t.length;i++){var s=new e.TokenSet,o=t[i];n.edges[o]=s,this.uncheckedNodes.push({parent:n,char:o,child:s}),n=s}n.final=!0,this.previousWord=t},e.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},e.TokenSet.Builder.prototype.minimize=function(t){for(var n=this.uncheckedNodes.length-1;n>=t;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};e.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},e.Index.prototype.search=function(t){return this.query(function(n){var r=new e.QueryParser(t,n);r.parse()})},e.Index.prototype.query=function(t){for(var n=new e.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l<this.fields.length;l++)i[this.fields[l]]=new e.Vector;t.call(n,n);for(var l=0;l<n.clauses.length;l++){var u=n.clauses[l],c=null,d=e.Set.empty;u.usePipeline?c=this.pipeline.runString(u.term,{fields:u.fields}):c=[u.term];for(var h=0;h<c.length;h++){var p=c[h];u.term=p;var g=e.TokenSet.fromClause(u),m=this.tokenSet.intersect(g).toArray();if(m.length===0&&u.presence===e.Query.presence.REQUIRED){for(var v=0;v<u.fields.length;v++){var w=u.fields[v];o[w]=e.Set.empty}break}for(var x=0;x<m.length;x++)for(var P=m[x],Q=this.invertedIndex[P],V=Q._index,v=0;v<u.fields.length;v++){var w=u.fields[v],k=Q[w],I=Object.keys(k),$=P+"/"+w,ee=new e.Set(I);if(u.presence==e.Query.presence.REQUIRED&&(d=d.union(ee),o[w]===void 0&&(o[w]=e.Set.complete)),u.presence==e.Query.presence.PROHIBITED){a[w]===void 0&&(a[w]=e.Set.empty),a[w]=a[w].union(ee);continue}if(i[w].upsert(V,u.boost,function(Es,xs){return Es+xs}),!s[$]){for(var ye=0;ye<I.length;ye++){var Ie=I[ye],te=new e.FieldRef(Ie,w),Ce=k[Ie],Re;(Re=r[te])===void 0?r[te]=new e.MatchData(P,w,Ce):Re.add(P,w,Ce)}s[$]=!0}}}if(u.presence===e.Query.presence.REQUIRED)for(var v=0;v<u.fields.length;v++){var w=u.fields[v];o[w]=o[w].intersect(d)}}for(var we=e.Set.complete,ce=e.Set.empty,l=0;l<this.fields.length;l++){var w=this.fields[l];o[w]&&(we=we.intersect(o[w])),a[w]&&(ce=ce.union(a[w]))}var y=Object.keys(r),S=[],ne=Object.create(null);if(n.isNegated()){y=Object.keys(this.fieldVectors);for(var l=0;l<y.length;l++){var te=y[l],B=e.FieldRef.fromString(te);r[te]=new e.MatchData}}for(var l=0;l<y.length;l++){var B=e.FieldRef.fromString(y[l]),b=B.docRef;if(we.contains(b)&&!ce.contains(b)){var T=this.fieldVectors[B],re=i[B.fieldName].similarity(T),de;if((de=ne[b])!==void 0)de.score+=re,de.matchData.combine(r[B]);else{var _={ref:b,score:re,matchData:r[B]};ne[b]=_,S.push(_)}}}return S.sort(function(ws,bs){return bs.score-ws.score})},e.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map(function(r){return[r,this.invertedIndex[r]]},this),n=Object.keys(this.fieldVectors).map(function(r){return[r,this.fieldVectors[r].toJSON()]},this);return{version:e.version,fields:this.fields,fieldVectors:n,invertedIndex:t,pipeline:this.pipeline.toJSON()}},e.Index.load=function(t){var n={},r={},i=t.fieldVectors,s=Object.create(null),o=t.invertedIndex,a=new e.TokenSet.Builder,l=e.Pipeline.load(t.pipeline);t.version!=e.version&&e.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+e.version+"' does not match serialized index '"+t.version+"'");for(var u=0;u<i.length;u++){var c=i[u],d=c[0],h=c[1];r[d]=new e.Vector(h)}for(var u=0;u<o.length;u++){var c=o[u],p=c[0],g=c[1];a.insert(p),s[p]=g}return a.finish(),n.fields=t.fields,n.fieldVectors=r,n.invertedIndex=s,n.tokenSet=a.root,n.pipeline=l,new e.Index(n)};e.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=e.tokenizer,this.pipeline=new e.Pipeline,this.searchPipeline=new e.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},e.Builder.prototype.ref=function(t){this._ref=t},e.Builder.prototype.field=function(t,n){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=n||{}},e.Builder.prototype.b=function(t){t<0?this._b=0:t>1?this._b=1:this._b=t},e.Builder.prototype.k1=function(t){this._k1=t},e.Builder.prototype.add=function(t,n){var r=t[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s<i.length;s++){var o=i[s],a=this._fields[o].extractor,l=a?a(t):t[o],u=this.tokenizer(l,{fields:[o]}),c=this.pipeline.run(u),d=new e.FieldRef(r,o),h=Object.create(null);this.fieldTermFrequencies[d]=h,this.fieldLengths[d]=0,this.fieldLengths[d]+=c.length;for(var p=0;p<c.length;p++){var g=c[p];if(h[g]==null&&(h[g]=0),h[g]+=1,this.invertedIndex[g]==null){var m=Object.create(null);m._index=this.termIndex,this.termIndex+=1;for(var v=0;v<i.length;v++)m[i[v]]=Object.create(null);this.invertedIndex[g]=m}this.invertedIndex[g][o][r]==null&&(this.invertedIndex[g][o][r]=Object.create(null));for(var w=0;w<this.metadataWhitelist.length;w++){var x=this.metadataWhitelist[w],P=g.metadata[x];this.invertedIndex[g][o][r][x]==null&&(this.invertedIndex[g][o][r][x]=[]),this.invertedIndex[g][o][r][x].push(P)}}}},e.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),n=t.length,r={},i={},s=0;s<n;s++){var o=e.FieldRef.fromString(t[s]),a=o.fieldName;i[a]||(i[a]=0),i[a]+=1,r[a]||(r[a]=0),r[a]+=this.fieldLengths[o]}for(var l=Object.keys(this._fields),s=0;s<l.length;s++){var u=l[s];r[u]=r[u]/i[u]}this.averageFieldLength=r},e.Builder.prototype.createFieldVectors=function(){for(var t={},n=Object.keys(this.fieldTermFrequencies),r=n.length,i=Object.create(null),s=0;s<r;s++){for(var o=e.FieldRef.fromString(n[s]),a=o.fieldName,l=this.fieldLengths[o],u=new e.Vector,c=this.fieldTermFrequencies[o],d=Object.keys(c),h=d.length,p=this._fields[a].boost||1,g=this._documents[o.docRef].boost||1,m=0;m<h;m++){var v=d[m],w=c[v],x=this.invertedIndex[v]._index,P,Q,V;i[v]===void 0?(P=e.idf(this.invertedIndex[v],this.documentCount),i[v]=P):P=i[v],Q=P*((this._k1+1)*w)/(this._k1*(1-this._b+this._b*(l/this.averageFieldLength[a]))+w),Q*=p,Q*=g,V=Math.round(Q*1e3)/1e3,u.insert(x,V)}t[o]=u}this.fieldVectors=t},e.Builder.prototype.createTokenSet=function(){this.tokenSet=e.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},e.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new e.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},e.Builder.prototype.use=function(t){var n=Array.prototype.slice.call(arguments,1);n.unshift(this),t.apply(this,n)},e.MatchData=function(t,n,r){for(var i=Object.create(null),s=Object.keys(r||{}),o=0;o<s.length;o++){var a=s[o];i[a]=r[a].slice()}this.metadata=Object.create(null),t!==void 0&&(this.metadata[t]=Object.create(null),this.metadata[t][n]=i)},e.MatchData.prototype.combine=function(t){for(var n=Object.keys(t.metadata),r=0;r<n.length;r++){var i=n[r],s=Object.keys(t.metadata[i]);this.metadata[i]==null&&(this.metadata[i]=Object.create(null));for(var o=0;o<s.length;o++){var a=s[o],l=Object.keys(t.metadata[i][a]);this.metadata[i][a]==null&&(this.metadata[i][a]=Object.create(null));for(var u=0;u<l.length;u++){var c=l[u];this.metadata[i][a][c]==null?this.metadata[i][a][c]=t.metadata[i][a][c]:this.metadata[i][a][c]=this.metadata[i][a][c].concat(t.metadata[i][a][c])}}}},e.MatchData.prototype.add=function(t,n,r){if(!(t in this.metadata)){this.metadata[t]=Object.create(null),this.metadata[t][n]=r;return}if(!(n in this.metadata[t])){this.metadata[t][n]=r;return}for(var i=Object.keys(r),s=0;s<i.length;s++){var o=i[s];o in this.metadata[t][n]?this.metadata[t][n][o]=this.metadata[t][n][o].concat(r[o]):this.metadata[t][n][o]=r[o]}},e.Query=function(t){this.clauses=[],this.allFields=t},e.Query.wildcard=new String("*"),e.Query.wildcard.NONE=0,e.Query.wildcard.LEADING=1,e.Query.wildcard.TRAILING=2,e.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},e.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=e.Query.wildcard.NONE),t.wildcard&e.Query.wildcard.LEADING&&t.term.charAt(0)!=e.Query.wildcard&&(t.term="*"+t.term),t.wildcard&e.Query.wildcard.TRAILING&&t.term.slice(-1)!=e.Query.wildcard&&(t.term=""+t.term+"*"),"presence"in t||(t.presence=e.Query.presence.OPTIONAL),this.clauses.push(t),this},e.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=e.Query.presence.PROHIBITED)return!1;return!0},e.Query.prototype.term=function(t,n){if(Array.isArray(t))return t.forEach(function(i){this.term(i,e.utils.clone(n))},this),this;var r=n||{};return r.term=t.toString(),this.clause(r),this},e.QueryParseError=function(t,n,r){this.name="QueryParseError",this.message=t,this.start=n,this.end=r},e.QueryParseError.prototype=new Error,e.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},e.QueryLexer.prototype.run=function(){for(var t=e.QueryLexer.lexText;t;)t=t(this)},e.QueryLexer.prototype.sliceString=function(){for(var t=[],n=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],t.push(this.str.slice(n,r)),n=r+1;return t.push(this.str.slice(n,this.pos)),this.escapeCharPositions.length=0,t.join("")},e.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},e.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},e.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){var t,n;do t=this.next(),n=t.charCodeAt(0);while(n>47&&n<58);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.pos<this.length},e.QueryLexer.EOS="EOS",e.QueryLexer.FIELD="FIELD",e.QueryLexer.TERM="TERM",e.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",e.QueryLexer.BOOST="BOOST",e.QueryLexer.PRESENCE="PRESENCE",e.QueryLexer.lexField=function(t){return t.backup(),t.emit(e.QueryLexer.FIELD),t.ignore(),e.QueryLexer.lexText},e.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(e.QueryLexer.TERM)),t.ignore(),t.more())return e.QueryLexer.lexText},e.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.EDIT_DISTANCE),e.QueryLexer.lexText},e.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.BOOST),e.QueryLexer.lexText},e.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(e.QueryLexer.TERM)},e.QueryLexer.termSeparator=e.tokenizer.separator,e.QueryLexer.lexText=function(t){for(;;){var n=t.next();if(n==e.QueryLexer.EOS)return e.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){t.escapeCharacter();continue}if(n==":")return e.QueryLexer.lexField;if(n=="~")return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexEditDistance;if(n=="^")return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexBoost;if(n=="+"&&t.width()===1||n=="-"&&t.width()===1)return t.emit(e.QueryLexer.PRESENCE),e.QueryLexer.lexText;if(n.match(e.QueryLexer.termSeparator))return e.QueryLexer.lexTerm}},e.QueryParser=function(t,n){this.lexer=new e.QueryLexer(t),this.query=n,this.currentClause={},this.lexemeIdx=0},e.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=e.QueryParser.parseClause;t;)t=t(this);return this.query},e.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},e.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},e.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},e.QueryParser.parseClause=function(t){var n=t.peekLexeme();if(n!=null)switch(n.type){case e.QueryLexer.PRESENCE:return e.QueryParser.parsePresence;case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new e.QueryParseError(r,n.start,n.end)}},e.QueryParser.parsePresence=function(t){var n=t.consumeLexeme();if(n!=null){switch(n.str){case"-":t.currentClause.presence=e.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=e.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new e.QueryParseError(r,n.start,n.end)}var i=t.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new e.QueryParseError(r,n.start,n.end)}switch(i.type){case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new e.QueryParseError(r,i.start,i.end)}}},e.QueryParser.parseField=function(t){var n=t.consumeLexeme();if(n!=null){if(t.query.allFields.indexOf(n.str)==-1){var r=t.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new e.QueryParseError(i,n.start,n.end)}t.currentClause.fields=[n.str];var s=t.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new e.QueryParseError(i,n.start,n.end)}if(s.type===e.QueryLexer.TERM)return e.QueryParser.parseTerm;var i="expecting term, found '"+s.type+"'";throw new e.QueryParseError(i,s.start,s.end)}},e.QueryParser.parseTerm=function(t){var n=t.consumeLexeme();if(n!=null){t.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(t.currentClause.usePipeline=!1);var r=t.peekLexeme();if(r==null){t.nextClause();return}switch(r.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new e.QueryParseError(i,r.start,r.end)}}},e.QueryParser.parseEditDistance=function(t){var n=t.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new e.QueryParseError(i,n.start,n.end)}t.currentClause.editDistance=r;var s=t.peekLexeme();if(s==null){t.nextClause();return}switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(i,s.start,s.end)}}},e.QueryParser.parseBoost=function(t){var n=t.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new e.QueryParseError(i,n.start,n.end)}t.currentClause.boost=r;var s=t.peekLexeme();if(s==null){t.nextClause();return}switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(i,s.start,s.end)}}},(function(t,n){typeof define=="function"&&define.amd?define(n):typeof qi=="object"?Fi.exports=n():t.lunr=n()})(this,function(){return e})})()});var ie={plain:"plain",function:"function",module:"module"},Os=[{href:"typespecs.html#basic-types",hint:{kind:ie.plain,description:"Basic type"}},{href:"typespecs.html#literals",hint:{kind:ie.plain,description:"Literal"}},{href:"typespecs.html#built-in-types",hint:{kind:ie.plain,description:"Built-in type"}}],Me={cancelHintFetching:null};function Wn(e){if(Gn(e))return!0;let t=/#.*\//;return e.includes("#")&&!t.test(e)?!1:e.includes(".html")}function zn(e){let t=Gn(e);return t?Promise.resolve(t):As(e)}function Gn(e){let t=Os.find(n=>e.includes(n.href));return t?t.hint:null}function As(e){let t=e.replace(".html",".html?hint=true");return new Promise((n,r)=>{let i=document.createElement("iframe");i.setAttribute("src",t),i.style.display="none";function s(a){let{href:l,hint:u}=a.data;t===l&&(o(),n(u))}Me.cancelHintFetching=()=>{o(),r(new Error("cancelled"))};function o(){i.remove(),window.removeEventListener("message",s),Me.cancelHintFetching=null}window.addEventListener("message",s),document.body.appendChild(i)})}function Kn(){Me.cancelHintFetching&&Me.cancelHintFetching()}function Yn(e){let n=e.querySelector("h1").textContent,r=e.querySelector(".docstring > p"),i=r?r.innerHTML:"";return{kind:ie.function,title:n.trim(),description:i.trim()}}function Jn(e){let n=e.querySelector("h1 > span").textContent,r=e.querySelector("#moduledoc p"),i=r?r.innerHTML:"";return{kind:ie.module,title:n.trim(),description:i.trim()}}var f=document.querySelector.bind(document),A=document.querySelectorAll.bind(document);function Xn(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ne(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function De(){return document.getElementById("main").dataset.type}var He=["H1","H2","H3","H4","H5","H6"];function Zn(e=!1){let t=window.location.hash.replace(/^#/,"");if(!t)return e?document.getElementById("top-content"):null;let n=document.getElementById(t);if(!n)return null;if(n.matches(".detail"))return n;if(He.includes(n.tagName))return _t(n);let r=Is(n);return r||document.getElementById("top-content")}function Is(e){let t=e.previousElementSibling;for(;t;){if(He.includes(t.tagName))return _t(t);t=t.previousElementSibling}let n=e.parentNode;for(;n;){for(t=n.previousElementSibling;t;){if(He.includes(t.tagName))return _t(t);t=t.previousElementSibling}n=n.parentNode}return null}function _t(e){let t=document.createElement("div"),n=[e],r=e;for(;(r=r.nextSibling)&&!(He.includes(r.tagName)&&r.tagName<=e.tagName);)n.push(r);return t.append(...n),t}function er(e){return new URLSearchParams(window.location.search).get(e)}function Pt(e){return fetch(e).then(t=>t.ok).catch(()=>!1)}function he(e){return!e||e.trim()===""}function tr(e,t){let n;return function(...i){clearTimeout(n),n=setTimeout(()=>{n=null,e(...i)},t)}}function Be(){return document.head.querySelector("meta[name=project][content]").content}function Qe(){return document.documentElement.classList.contains("apple-os")}function E(e,t,n){let r=document.createElement(e);for(let i in t)t[i]!=null&&r.setAttribute(i,t[i]);return n&&r.replaceChildren(...n),r}var Cs=new URLSearchParams(window.location.search),Rs=window.self!==window.parent,Ot=Rs&&Cs.has("hint"),C=Ot;function qe(){return window.sidebarNodes||{}}function nr(){return window.versionNodes||[]}if(Ot&&C){let e=Zn(),t=e?Yn(e):["modules","tasks"].includes(De())?Jn(f(".content-inner")):null;if(t){let n={hint:{...t,version:Be()},href:window.location.href};window.parent.postMessage(n,"*")}f(".content-inner")?.replaceChildren()}var At="ex_doc:settings",rr="dark",It="system",Ct="dark",Rt="light";var Ms={tooltips:!0,theme:null,livebookUrl:null},Mt=class{constructor(){this._subscribers=[],this._settings=Ms,this._loadSettings()}get(){return this._settings}update(t){let n=this._settings;this._settings={...this._settings,...t},this._subscribers.forEach(r=>r(this._settings,n)),this._storeSettings()}getAndSubscribe(t){this._subscribers.push(t),t(this._settings)}_loadSettings(){try{let t=localStorage.getItem(At);if(t){let n=JSON.parse(t);this._settings={...this._settings,...n}}this._loadSettingsLegacy()}catch(t){console.error(`Failed to load settings: ${t}`)}}_storeSettings(){try{this._storeSettingsLegacy(),localStorage.setItem(At,JSON.stringify(this._settings))}catch(t){console.error(`Failed to persist settings: ${t}`)}}_loadSettingsLegacy(){localStorage.getItem("tooltipsDisabled")!==null&&(this._settings={...this._settings,tooltips:!1}),localStorage.getItem("night-mode")==="true"&&(this._settings={...this._settings,nightMode:!0}),this._settings.nightMode===!0&&(this._settings={...this._settings,theme:"dark"})}_storeSettingsLegacy(){this._settings.tooltips?localStorage.removeItem("tooltipsDisabled"):localStorage.setItem("tooltipsDisabled","true"),this._settings.nightMode!==null?localStorage.setItem("night-mode",this._settings.nightMode===!0?"true":"false"):localStorage.removeItem("night-mode"),this._settings.theme!==null?(localStorage.setItem("night-mode",this._settings.theme==="dark"?"true":"false"),this._settings.nightMode=this._settings.theme==="dark"):(delete this._settings.nightMode,localStorage.removeItem("night-mode"))}},R=new Mt;var ir=!1,Fe=null,J=null;function Ve(e){ir||(ir=!0,J=document.getElementById("toast"),J?.addEventListener("click",()=>{clearTimeout(Fe),J.classList.remove("show")})),J&&(clearTimeout(Fe),J.innerText=e,J.classList.add("show"),Fe=setTimeout(()=>{J.classList.remove("show"),Fe=setTimeout(function(){J.innerText=""},1e3)},5e3))}var Ht=[It,Ct,Rt],sr=window.matchMedia("(prefers-color-scheme: dark)");R.getAndSubscribe(or);sr.addEventListener("change",or);function or(){let e=lr(),t=e===Ct||e!==Rt&&sr.matches;document.body.classList.toggle(rr,t)}function ar(){let e=Ht[Ht.indexOf(lr())+1]||Ht[0];R.update({theme:e}),Ve(`Set theme to "${e}"`)}function lr(){return new URLSearchParams(window.location.search).get("theme")||R.get().theme||It}var Er=Y(fr());var Dt="sidebar_state",Bt="closed",pr="open",mr="sidebar_width";var Ue="sidebar-open",je="sidebar-transition";var gr=!1;function vr(){if(gr)return;gr=!0;let e=document.getElementById("sidebar-list-nav");if(!e)return;let t=De(),n={extras:e.dataset.extras,modules:"Modules",tasks:'<span translate="no">Mix</span> Tasks'};Object.entries(n).forEach(([r,i])=>{let s=qe()[r];if(!s?.length)return;let o=`${r}-list-tab-button`,a=`${r}-tab-panel`,l=r===t,u=E("button",{id:o,role:"tab",tabindex:l?0:-1,"aria-selected":l||void 0,"aria-controls":a});u.innerHTML=i,u.addEventListener("keydown",eo),u.addEventListener("click",to),e.appendChild(E("li",{},[u]));let c=E("ul",{class:"full-list"});c.addEventListener("click",no);let d=E("div",{id:a,class:"sidebar-tabpanel",role:"tabpanel","aria-labelledby":o,hidden:l?void 0:""},[c]);document.getElementById("sidebar").appendChild(d);let h="",p,g;c.replaceChildren(...s.flatMap(m=>{let v=[],w=Array.isArray(m.headers),x=w?void 0:"no",P=m?.url||`${m.id}.html`;return m.group!==h&&(v.push(E("li",{class:"group",translate:x},[m.group])),h=m.group,p=void 0),m.nested_context&&m.nested_context!==p?(p=m.nested_context,g!==p&&v.push(E("li",{class:"nesting-context",translate:"no","aria-hidden":!0},[p]))):g=m.title,v.push(E("li",{},[E("a",{href:P,translate:x},[m.nested_title||m.title,m.url?E("i",{class:"external-link ri-external-link-line"}):null].filter(Boolean)),...qt(`node-${m.id}-headers`,w?Xs(m):Zs(m))])),v}))}),Qt(),requestAnimationFrame(yr),window.addEventListener("hashchange",Qt),window.addEventListener("exdoc:loaded",Qt)}function qt(e,t){return t.length?[E("button",{"aria-label":"expand","aria-expanded":!1,"aria-controls":e}),E("ul",{id:e},t)]:[]}function Xs(e){return e.headers.map(({id:t,anchor:n})=>E("li",{},[E("a",{href:`${e.id}.html#${n}`},[t])]))}function Zs(e){let t=[];return e.sections?.length&&t.push(E("li",{},[E("a",{href:`${e.id}.html#content`},["Sections"]),...qt(`${e.id}-sections-list`,e.sections.map(({id:n,anchor:r})=>E("li",{},[E("a",{href:`${e.id}.html#${r}`},[n])])))])),e.nodeGroups&&(t.push(E("li",{},[E("a",{href:`${e.id}.html#summary`},["Summary"])])),t.push(...e.nodeGroups.map(({key:n,name:r,nodes:i})=>E("li",{},[E("a",{href:`${e.id}.html#${n}`},[r]),...qt(`node-${e.id}-group-${n}-list`,i.map(({anchor:s,title:o,id:a})=>E("li",{},[E("a",{href:`${e.id}.html#${s}`,title:o,translate:"no"},[a])])))])))),t}function Ft(e){let t=document.getElementById("sidebar-list-nav").querySelector("[aria-selected]");t!==e&&(t&&(t.removeAttribute("aria-selected"),t.setAttribute("tabindex","-1"),document.getElementById(t.getAttribute("aria-controls")).setAttribute("hidden","hidden")),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),document.getElementById(e.getAttribute("aria-controls")).removeAttribute("hidden"))}function yr(){f("#sidebar [role=tabpanel]:not([hidden]) a[aria-selected]")?.scrollIntoView()}function Qt(){let e=document.getElementById("sidebar"),{pathname:t,hash:n}=window.location,r=t.split("/").pop().replace(/\.html$/,"")+".html",i=e.querySelector(`li a[href="${r+n}"]`)||e.querySelector(`li a[href="${r}"]`);if(!i)return;e.querySelectorAll(".full-list a[aria-selected]").forEach(o=>{o.removeAttribute("aria-selected")}),e.querySelectorAll(".full-list button[aria-expanded=true]").forEach(o=>{o.setAttribute("aria-expanded",!1)});let s=i.parentElement;for(;s;){if(s.tagName==="LI"){let o=s.firstChild;o.setAttribute("aria-selected",o.getAttribute("href")===r?"page":"true");let a=o.nextSibling;a?.tagName==="BUTTON"&&a.setAttribute("aria-expanded",!0)}else if(s.role==="tabpanel"){s.hasAttribute("hidden")&&Ft(document.getElementById(s.getAttribute("aria-labelledby")));break}s=s.parentElement}}function eo(e){if(!["ArrowRight","ArrowLeft"].includes(e.key))return;let t=Array.from(A('#sidebar-list-nav [role="tab"]')),r=t.indexOf(e.currentTarget)+(e.key==="ArrowRight"?1:-1),i=t.at(r%t.length);Ft(i),i.focus()}function to(e){Ft(e.currentTarget),yr()}function no(e){let t=e.target;t.tagName==="BUTTON"&&t.setAttribute("aria-expanded",t.getAttribute("aria-expanded")==="false")}var io=300,xr=".sidebar-toggle",Vt=window.matchMedia(`screen and (max-width: ${768}px)`);if(!C){window.addEventListener("exdoc:loaded",wr);let e=document.getElementById("sidebar"),t=f(xr);t.addEventListener("click",We),document.body.addEventListener("click",i=>{Vt.matches&&$t()&&!e.contains(i.target)&&!t.contains(i.target)&&We()});let n=window.innerWidth;window.addEventListener("resize",(0,Er.default)(()=>{n!==window.innerWidth&&(n=window.innerWidth,wr())},100));let r=new ResizeObserver(([i])=>{if(!i)return;let s=i.contentRect.width;sessionStorage.setItem(mr,s),document.body.style.setProperty("--sidebarWidth",`${s}px`)});e.addEventListener("mousedown",()=>r.observe(e)),e.addEventListener("mouseup",()=>r.unobserve(e)),window.addEventListener("hashchange",so)}function wr(){let t=sessionStorage.getItem(Dt)!==Bt&&!Vt.matches;kr(t)}function We(){let e=!$t();return sessionStorage.setItem(Dt,e?pr:Bt),Ut(e)}function $t(){return document.body.classList.contains(Ue)}function Sr(){return document.body.classList.contains(Ue)&&!document.body.classList.contains(je)}function kr(e){e&&vr(),document.body.classList.toggle(Ue,e),f(xr).setAttribute("aria-expanded",e?"true":"false")}var br;function Ut(e){return new Promise(t=>{document.body.classList.add(je),document.body.scrollTop,kr(e),clearTimeout(br),br=setTimeout(()=>{document.body.classList.remove(je),t()},io)})}function Lr(){return Ut(!0)}function so(){Vt.matches&&$t()&&Ut(!1)}var fi=Y(ae());var dn=Y(ae());dn.registerHelper("isArray",function(e,t){return Array.isArray(e)?t.fn(this):t.inverse(this)});dn.registerHelper("isNonEmptyArray",function(e,t){return Array.isArray(e)&&e.length>0?t.fn(this):t.inverse(this)});var pi=fi.template({1:function(e,t,n,r,i){var s,o,a=t??(e.nullContext||{}),l=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lookupProperty||function(h,p){if(Object.prototype.hasOwnProperty.call(h,p))return h[p]};return' <option translate="no" value="'+c((o=(o=d(n,"url")||(t!=null?d(t,"url"):t))!=null?o:l,typeof o===u?o.call(a,{name:"url",hash:{},data:i,loc:{start:{line:7,column:38},end:{line:7,column:45}}}):o))+'"'+((s=d(n,"if").call(a,t!=null?d(t,"isCurrentVersion"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:7,column:46},end:{line:7,column:95}}}))!=null?s:"")+`> `+c((o=(o=d(n,"version")||(t!=null?d(t,"version"):t))!=null?o:l,typeof o===u?o.call(a,{name:"version",hash:{},data:i,loc:{start:{line:8,column:10},end:{line:8,column:21}}}):o))+` </option>`},2:function(e,t,n,r,i){return" selected disabled"},4:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return` <div class="sidebar-staleVersion"> <a href="`+e.escapeExpression((s=(s=o(n,"latestVersion")||(t!=null?o(t,"latestVersion"):t))!=null?s:e.hooks.helperMissing,typeof s=="function"?s.call(t??(e.nullContext||{}),{name:"latestVersion",hash:{},data:i,loc:{start:{line:15,column:15},end:{line:15,column:32}}}):s))+`" title="This version of package is not the latest version"> <i class="ri-alert-line sidebar-staleIcon" aria-hidden="true"></i><span>Go to latest</span> </a> </div>`},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=t??(e.nullContext||{}),a=e.lookupProperty||function(l,u){if(Object.prototype.hasOwnProperty.call(l,u))return l[u]};return`<form autocomplete="off"> <label> <span class="sidebar-projectVersionsCaret" aria-hidden="true">▼</span> <span class="sr-only">Project version</span> <select>`+((s=a(n,"each").call(o,t!=null?a(t,"nodes"):t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:6,column:6},end:{line:10,column:15}}}))!=null?s:"")+` </select> </label>`+((s=a(n,"if").call(o,t!=null?a(t,"latestVersion"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:13,column:2},end:{line:19,column:9}}}))!=null?s:"")+`</form>`},useData:!0});var Da=".sidebar-projectVersion",mi=".sidebar-projectVersion select",Ba=".sidebar-staleVersion a";if(!C){let e=nr(),t=f(Da);if(e.length>0||!t){let n=t.textContent.trim(),i=(e.some(u=>u.version===n)?e:[{version:n,url:"#"},...e]).map(u=>({...u,isCurrentVersion:u.version===n})),s=e.find(u=>u.latest),o=s?.version!==n?s?.url:null;n.includes("-")&&e.findIndex(u=>u.version===n)<e.findIndex(u=>u.latest)&&(o=null),t.innerHTML=pi({nodes:i,latestVersion:o});let a=f(mi);a.addEventListener("change",qa),Qa(a);let l=f(Ba);l&&l.addEventListener("click",Fa)}}function Qa(e){let t=document.createElement("span");t.style.visibility="hidden",t.style.position="absolute",t.style.whiteSpace="nowrap",t.style.font=window.getComputedStyle(e).font,t.textContent=e.options[e.selectedIndex].text,document.body.appendChild(t),e.style.width=`${t.offsetWidth+20}px`,document.body.removeChild(t)}function qa(e){let t=e.target.value,n=window.location.pathname.split("/").pop()+window.location.hash,r=`${t}/${n}`;Pt(r).then(i=>{i?window.location.href=r:window.location.href=t})}function Fa(e){let t=this.href,n=window.location.pathname.split("/").pop()+window.location.hash,r=`${t}/${n}`;e.preventDefault(),Pt(r).then(i=>{i?window.location.href=r:window.location.href=t})}function hn(){let e=f(mi);e&&(e.focus(),e.addEventListener("keydown",t=>{(t.key==="Escape"||t.key==="v")&&(t.preventDefault(),e.blur())}),navigator.userActivation.isActive&&"showPicker"in HTMLSelectElement.prototype&&e.showPicker())}var Va="content",$a="tabs-open",Ua="tabs-close",ja="H3",Wa="tabset";window.addEventListener("exdoc:loaded",za);function za(){let e=[],t=[],n=document.createNodeIterator(document.getElementById(Va),NodeFilter.SHOW_COMMENT,i=>i.nodeValue.trim()===$a?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT),r;for(;r=n.nextNode();){let i=[];e.push([r,i]);let s,o=r;for(;o=o.nextSibling;)if(o.nodeName===ja){s=[];let a=o.querySelector(".text")?.childNodes||o.childNodes;i.push([a,s]),t.push(o)}else if(o.nodeName==="#comment"&&o.nodeValue.trim()===Ua){t.push(o);break}else s&&s.push(o)}e.forEach(([i,s],o)=>{let a=E("div",{class:Wa});i.parentNode.replaceChild(a,i);let l=E("div",{role:"tablist",class:"tabset-tablist"});a.appendChild(l),s.forEach(([u,c],d)=>{let h=d===0,p=`tab-${o}-${d}`,g=`tabpanel-${o}-${d}`,m=E("button",{role:"tab",id:p,class:"tabset-tab",tabindex:h?0:-1,"aria-selected":h,"aria-controls":g},u);m.addEventListener("click",Ga),m.addEventListener("keydown",Ka),l.appendChild(m);let v=E("div",{role:"tabpanel",id:g,class:"tabset-panel",hidden:h?void 0:"","aria-labelledby":p},c);a.appendChild(v)})}),t.forEach(i=>{i.parentNode.removeChild(i)})}function Ga(e){vi(e.currentTarget)}function Ka(e){if(gi[e.code]){e.preventDefault();let t=[...e.currentTarget.parentNode.childNodes],n=t.indexOf(e.currentTarget),r=gi[e.code](n,t.length);vi(t.at(r%t.length))}}var gi={ArrowLeft:e=>e-1,ArrowRight:e=>e+1,Home:()=>0,End:(e,t)=>t-1};function vi(e){let t=e.parentNode.querySelector("[aria-selected=true]");if(t===e)return;t.setAttribute("aria-selected","false"),t.tabIndex=-1,e.setAttribute("aria-selected","true"),e.tabIndex=0,e.focus();let n=document.getElementById(t.getAttribute("aria-controls"));n.setAttribute("hidden",""),n.tabIndex=-1;let r=document.getElementById(e.getAttribute("aria-controls"));r.removeAttribute("hidden"),r.tabIndex=0}window.addEventListener("exdoc:loaded",Ya);function Ya(){let e=window.location.pathname.replace(/(\.html)?$/,".livemd"),t=encodeURIComponent(new URL(e,window.location.href).toString());R.getAndSubscribe(({livebookUrl:n})=>{let r=n?`${n}/import?url=${t}`:`https://livebook.dev/run?url=${t}`;for(let i of A(".livebook-badge"))i.href=r})}var Ja="hll";window.addEventListener("exdoc:loaded",Xa);function Xa(){A("[data-group-id]").forEach(e=>{e.addEventListener("mouseenter",yi),e.addEventListener("mouseleave",yi)})}function yi(e){let t=e.currentTarget,n=e.type==="mouseenter",r=t.getAttribute("data-group-id");t.parentElement.querySelectorAll(`[data-group-id="${r}"]`).forEach(i=>{i.classList.toggle(Ja,n)})}var j={module:"module",moduleChild:"module-child",mixTask:"mix-task",extra:"extra",section:"section"},Za=10;function bi(e,t=null){let n=t||window.autocompleteLimit||Za;if(he(e))return[];let r=qe(),i=[...fn(r.modules,e,j.module,"module"),...el(r.modules,e,j.moduleChild),...fn(r.tasks,e,j.mixTask,"mix task"),...fn(r.extras,e,j.extra,"page"),...pn(r.modules,e,j.section,"module"),...pn(r.tasks,e,j.section,"mix task"),...pn(r.extras,e,j.section,"page")].filter(s=>s!==null);return al(i).slice(0,n)}function fn(e,t,n,r){return e.map(i=>i.searchData?null:nl(i,t,n,r))}function el(e,t,n){return e.filter(r=>r.nodeGroups).flatMap(r=>r.nodeGroups.flatMap(({key:i,nodes:s})=>{let o=ol(i);return s.map(a=>rl(a,r.id,t,n,o)||sl(a,r.id,t,n,o))}))}function pn(e,t,n,r){return e.flatMap(i=>tl(i).map(s=>il(i,s,t,n,r)))}function tl(e){return e.searchData?e.searchData:(e.sections||[]).concat(e.headers||[])}function nl(e,t,n,r){return dt(e.title,t)?{link:`${e.id}.html`,title:pt(e.title,t),description:null,matchQuality:ht(e.title,t),deprecated:e.deprecated,labels:[r],category:n}:null}function rl(e,t,n,r,i){return dt(e.id,n)?{link:`${t}.html#${e.anchor}`,title:pt(e.id,n),labels:[i],description:t,matchQuality:ht(e.id,n),deprecated:e.deprecated,category:r}:null}function il(e,t,n,r,i){if(!Ei(t.id,n))return null;let s;return t.anchor===""?s=`${e.id}.html`:s=`${e.id}.html#${t.anchor}`,{link:s,title:pt(t.id,n),description:e.title,matchQuality:ht(t.id,n),labels:t.labels||[i,"section"],category:r}}function sl(e,t,n,r,i){let s=`${t}.${e.id}`,o=`${t}:${e.id}`,a,l;if(dt(s,n))a=s,l=/\./g;else if(dt(o,n))a=o,l=/:/g;else return null;let u=n.replace(l," ");return Ei(e.id,u)?{link:`${t}.html#${e.anchor}`,title:pt(e.id,u),label:i,description:t,matchQuality:ht(a,n),deprecated:e.deprecated,category:r}:null}function ol(e){switch(e){case"callbacks":return"callback";case"types":return"type";default:return"function"}}function al(e){return e.slice().sort((t,n)=>t.matchQuality!==n.matchQuality?n.matchQuality-t.matchQuality:wi(t.category)-wi(n.category))}function wi(e){switch(e){case j.module:return 1;case j.moduleChild:return 2;case j.mixTask:return 3;default:return 4}}function Ei(e,t){return ft(t).some(r=>xi(e,r))}function dt(e,t){return ft(t).every(r=>xi(e,r))}function xi(e,t){return e.toLowerCase().includes(t.toLowerCase())}function ht(e,t){let n=ft(t),i=n.map(o=>o.length).reduce((o,a)=>o+a,0)/e.length,s=ll(e,n[0])?1:0;return i+s}function ll(e,t){return e.toLowerCase().startsWith(t.toLowerCase())}function ft(e){return e.trim().split(/\s+/)}function pt(e,t){let n=ft(t).sort((r,i)=>i.length-r.length);return ct(e,n)}function ct(e,t){if(t.length===0)return e;let[n,...r]=t,i=e.match(new RegExp(`(.*)(${Xn(n)})(.*)`,"i"));if(i){let[,s,o,a]=i;return ct(s,t)+"<em>"+Ne(o)+"</em>"+ct(a,t)}else return ct(e,r)}var Si=Y(ae());var ki=Si.template({1:function(e,t,n,r,i){return` Autocompletion results within this project`},3:function(e,t,n,r,i){return` No autocompletion results within this project`},5:function(e,t,n,r,i){var s,o,a=t??(e.nullContext||{}),l=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lookupProperty||function(h,p){if(Object.prototype.hasOwnProperty.call(h,p))return h[p]};return' <a href="'+c((o=(o=d(n,"link")||(t!=null?d(t,"link"):t))!=null?o:l,typeof o===u?o.call(a,{name:"link",hash:{},data:i,loc:{start:{line:18,column:15},end:{line:18,column:23}}}):o))+'" class="autocomplete-suggestion" data-index="'+c((o=(o=d(n,"index")||i&&d(i,"index"))!=null?o:l,typeof o===u?o.call(a,{name:"index",hash:{},data:i,loc:{start:{line:18,column:69},end:{line:18,column:79}}}):o))+`" tabindex="-1"> <span class="header" translate="no">`+((s=(o=(o=d(n,"title")||(t!=null?d(t,"title"):t))!=null?o:l,typeof o===u?o.call(a,{name:"title",hash:{},data:i,loc:{start:{line:19,column:44},end:{line:19,column:55}}}):o))!=null?s:"")+`</span>`+((s=d(n,"if").call(a,t!=null?d(t,"description"):t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i,loc:{start:{line:20,column:8},end:{line:23,column:15}}}))!=null?s:"")+((s=d(n,"if").call(a,t!=null?d(t,"deprecated"):t,{name:"if",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i,loc:{start:{line:24,column:8},end:{line:26,column:15}}}))!=null?s:"")+((s=d(n,"each").call(a,t!=null?d(t,"labels"):t,{name:"each",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i,loc:{start:{line:27,column:8},end:{line:29,column:17}}}))!=null?s:"")+` </a>`},6:function(e,t,n,r,i){var s,o,a=e.lookupProperty||function(l,u){if(Object.prototype.hasOwnProperty.call(l,u))return l[u]};return` <span class="separator" aria-hidden="true"> \xB7 </span> <span class="description" translate="no">`+((s=(o=(o=a(n,"description")||(t!=null?a(t,"description"):t))!=null?o:e.hooks.helperMissing,typeof o=="function"?o.call(t??(e.nullContext||{}),{name:"description",hash:{},data:i,loc:{start:{line:22,column:49},end:{line:22,column:66}}}):o))!=null?s:"")+`</span>`},8:function(e,t,n,r,i){return` <span class="label deprecated">deprecated</span>`},10:function(e,t,n,r,i){return' <span class="label">'+e.escapeExpression(e.lambda(t,t))+`</span>`},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=t??(e.nullContext||{}),a=e.lookupProperty||function(l,u){if(Object.prototype.hasOwnProperty.call(l,u))return l[u]};return`<div class="triangle"></div><div class="autocomplete-container"> <div class="autocomplete-suggestions"> <div class="autocomplete-results"> <span class="query">`+((s=a(n,"if").call(o,(s=t!=null?a(t,"suggestions"):t)!=null?a(s,"length"):s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:6,column:8},end:{line:10,column:15}}}))!=null?s:"")+` </span> <span class="press-return"> Press <span class="bold">RETURN</span> for full-text search </span> </div> <div>`+((s=a(n,"each").call(o,t!=null?a(t,"suggestions"):t,{name:"each",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i,loc:{start:{line:17,column:6},end:{line:31,column:15}}}))!=null?s:"")+` </div> </div></div>`},useData:!0});var pe=".autocomplete",mn=".autocomplete-suggestions",Li=".autocomplete-suggestion",W={autocompleteSuggestions:[],selectedIdx:-1};function ul(){f(pe).classList.add("shown")}function gn(){f(pe).classList.remove("shown")}function Ti(){return f(pe).classList.contains("shown")}function vn(e){W.autocompleteSuggestions=bi(e),W.selectedIdx=-1,he(e)?gn():(cl({term:e,suggestions:W.autocompleteSuggestions}),mt(0),ul())}function cl({term:e,suggestions:t}){let n=ki({suggestions:t,term:e}),r=f(pe);r.innerHTML=n}function _i(){return W.selectedIdx===-1?null:W.autocompleteSuggestions[W.selectedIdx]}function mt(e){dl(hl(e))}function dl(e){W.selectedIdx=e;let t=f(mn),n=f(`${Li}.selected`),r=f(`${Li}[data-index="${W.selectedIdx}"]`);n&&n.classList.remove("selected"),r?(r.classList.add("selected"),r.scrollIntoView({block:"nearest"})):t&&(t.scrollTop=0)}function hl(e){let t=W.autocompleteSuggestions.length+1;return(W.selectedIdx+e+1+t)%t-1}var me="form.search-bar input",fl="form.search-bar .search-close-button",pl=".engine-selector",Le=".engine-button",Te=".engine-dropdown",yt=null;C||window.addEventListener("exdoc:loaded",ml);function ml(){gl(),wl(),yl()}function gl(){let e=document.querySelectorAll(".engine-option");if(e.length===0){yt="search.html?q=";return}let t=window.location.pathname;if(t.endsWith("/search.html")||t.endsWith("/search")){let n=Array.from(e).find(r=>r.dataset.engineUrl.startsWith("search.html"));if(n){Ii(n);return}}yt=e[0].dataset.engineUrl}function Ii(e){yt=e.dataset.engineUrl;let n=f(Le)?.querySelector(".engine-name");n&&(n.textContent=e.querySelector(".name").textContent),f(Te)?.querySelectorAll(".engine-option").forEach(i=>{i.setAttribute("aria-checked",i===e?"true":"false")})}function Pi(){let e=f(Le),t=f(Te);if(!e||!t)return;e.getAttribute("aria-expanded")==="true"?ke():vl()}function vl(){let e=f(Le),t=f(Te);if(!e||!t)return;e.setAttribute("aria-expanded","true"),t.removeAttribute("hidden"),t.querySelector(".engine-option")?.focus()}function ke(){let e=f(Le),t=f(Te);!e||!t||(e.setAttribute("aria-expanded","false"),t.setAttribute("hidden",""))}function Ci(e){let t=f(me);t.value=e}function Ri(){let e=f(me);document.body.classList.add("search-focused"),e.focus()}function yl(){let e=f(me),t=parseInt(document.querySelector('meta[name="exdoc:autocomplete-limit"]')?.content);t&&(window.autocompleteLimit=t),e.setAttribute("autocomplete-limit",t)}function wl(){let e=f(me);if(document.querySelector('meta[name="exdoc:autocomplete"][content="off"]'))return e.addEventListener("keydown",r=>{r.key==="Enter"&&Oi(r)}),!0;e.addEventListener("keydown",r=>{let i=Qe();r.key==="Escape"?(gt(),e.blur()):r.key==="Enter"?Oi(r):r.key==="ArrowUp"||i&&r.ctrlKey&&r.key==="p"?(mt(-1),r.preventDefault()):(r.key==="ArrowDown"||i&&r.ctrlKey&&r.key==="n")&&(mt(1),r.preventDefault())}),e.addEventListener("input",r=>{vn(r.target.value)}),e.addEventListener("focus",r=>{document.body.classList.contains("search-focused")||(document.body.classList.add("search-focused"),vn(r.target.value))}),e.addEventListener("blur",r=>{let i=r.relatedTarget,s=f(mn);if(i&&s&&s.contains(i))return setTimeout(()=>{Ti()&&e.focus()},1e3),null;vt()}),f(pe).addEventListener("click",r=>{r.shiftKey||r.ctrlKey?e.focus():(gt(),vt())}),f(fl).addEventListener("click",r=>{gt(),vt(),e.blur()});let t=f(Le);t&&(t.addEventListener("click",r=>{r.stopPropagation(),Pi()}),t.addEventListener("keydown",r=>{r.key==="Enter"||r.key===" "?(r.preventDefault(),Pi()):r.key==="Escape"&&ke()})),document.addEventListener("click",r=>{let i=f(pl);i&&!i.contains(r.target)&&ke()});let n=f(Te);n&&(n.querySelectorAll(".engine-option").forEach(r=>{r.addEventListener("click",()=>{Ii(r),ke()})}),n.addEventListener("keydown",r=>{let i=Array.from(n.querySelectorAll(".engine-option")),s=i.indexOf(document.activeElement);if(r.key==="ArrowDown"){r.preventDefault();let o=(s+1)%i.length;i[o]?.focus()}else if(r.key==="ArrowUp"){r.preventDefault();let o=(s-1+i.length)%i.length;i[o]?.focus()}else r.key==="Escape"?(r.preventDefault(),ke(),t?.focus()):(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),document.activeElement?.click())}))}function Oi(e){let t=f(me),n=e.shiftKey||e.ctrlKey,r=_i();e.preventDefault();let i=n?"_blank":"_self",s=document.createElement("a");s.setAttribute("target",i),r?s.setAttribute("href",r.link):s.setAttribute("href",`${yt}${encodeURIComponent(t.value)}`),s.click(),n||(gt(),vt())}function gt(){let e=f(me);e.value=""}function vt(){document.body.classList.remove("search-focused"),gn()}var yn,Ai=2;window.addEventListener("scroll",function(){let e=window.scrollY;if(yn!==void 0){let t=e-yn;e===0||t>Ai?document.body.classList.remove("scroll-sticky"):e>0&&-t>Ai&&document.body.classList.add("scroll-sticky")}yn=Math.max(0,e)},!1);var Mi=Y(ae());var Hi=Mi.template({1:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return` <section class="docstring docstring-plain"> `+e.escapeExpression(e.lambda((s=t!=null?o(t,"hint"):t)!=null?o(s,"description"):s,t))+` </section>`},3:function(e,t,n,r,i){var s,o=e.lambda,a=e.escapeExpression,l=e.lookupProperty||function(u,c){if(Object.prototype.hasOwnProperty.call(u,c))return u[c]};return` <div class="detail-header"> <h1 class="signature"> <span translate="no">`+a(o((s=t!=null?l(t,"hint"):t)!=null?l(s,"title"):s,t))+`</span> <div class="version-info" translate="no">`+a(o((s=t!=null?l(t,"hint"):t)!=null?l(s,"version"):s,t))+`</div> </h1> </div>`+((s=l(n,"if").call(t??(e.nullContext||{}),(s=t!=null?l(t,"hint"):t)!=null?l(s,"description"):s,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))!=null?s:"")},4:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return` <section class="docstring"> `+((s=e.lambda((s=t!=null?o(t,"hint"):t)!=null?o(s,"description"):s,t))!=null?s:"")+` </section>`},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return(s=o(n,"if").call(t??(e.nullContext||{}),t!=null?o(t,"isPlain"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:0},end:{line:17,column:7}}}))!=null?s:""},useData:!0});var bl='<div class="tooltip"><div class="tooltip-body"></div></div>',El='.content a:not([data-no-tooltip=""])',wn=".tooltip",Ni=".tooltip .tooltip-body",Di="body .content-inner",xl="#content",Bi="tooltip-shown",_e=10,Sl=_e*4,kl=768,Ll=450,Tl=100,le={currentLinkElement:null,hoverDelayTimeout:null};window.addEventListener("exdoc:loaded",_l);function _l(){A(El).forEach(e=>{Pl(e)&&(e.addEventListener("mouseenter",Al),e.addEventListener("mouseleave",Cl))})}function Pl(e){return!(Ol(e.href)||!Wn(e.href))}function Ol(e){let t=e.replace(xl,"");return window.location.href.split("#")[0]===t}function Al(e){if(window.innerWidth<kl||window.innerHeight<Ll||!R.get().tooltips)return;let t=e.currentTarget;le.currentLinkElement=t,le.hoverDelayTimeout=setTimeout(()=>{zn(t.href).then(Il).catch(()=>{})},Tl)}function Il(e){let t=Hi({isPlain:e.kind===ie.plain,hint:e}),n=f(Ni);n||(f(Di).insertAdjacentHTML("beforeend",bl),n=f(Ni)),n.innerHTML=t,Rl(),f(wn).classList.add(Bi)}function Cl(){le.currentLinkElement&&(clearTimeout(le.hoverDelayTimeout),Kn(),le.currentLinkElement=null,f(wn)?.classList.remove(Bi))}function Rl(){if(!le.currentLinkElement)return;let e=f(wn),t=le.currentLinkElement.getBoundingClientRect(),n=f(Di).getBoundingClientRect(),r=e.getBoundingClientRect(),i=Ml(t,n);if(t.left+r.width+_e<window.innerWidth)e.style.left=`${i.left}px`,e.style.right="auto";else{let s=Math.max(i.right-r.width,_e);e.style.left=`${s}px`,e.style.right="auto"}t.bottom+r.height+Sl<window.innerHeight?e.style.top=`${i.bottom+_e}px`:e.style.top=`${i.top-r.height-_e}px`}function Ml(e,t){return{top:e.top-t.top,bottom:e.bottom-t.top,left:e.left-t.left,right:e.right-t.left,x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}var Qi='<button class="copy-button"><svg role="img" aria-label="copy" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg><svg aria-live="polite" role="img" aria-label="copied" viewBox="0 0 24 24" fill="currentColor"><path d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z" /></svg></button>';var bn;window.addEventListener("exdoc:loaded",Hl);function Hl(){"clipboard"in navigator&&A("pre:has(> code:first-child):not(:has(.copy-button))").forEach(e=>{if(!bn){let r=document.createElement("div");r.innerHTML=Qi,bn=r.firstChild}let t=bn.cloneNode(!0);e.appendChild(t);let n;t.addEventListener("click",()=>{clearTimeout(n);let r=Array.from(e.querySelectorAll("code > *")).filter(i=>!i.classList.contains("unselectable")||i.textContent!=="$ ").map(i=>i.textContent).join("");navigator.clipboard.writeText(r),t.classList.add("clicked"),t.disabled=!0,n=setTimeout(()=>{t.classList.remove("clicked"),t.disabled=!1},3e3)})})}window.addEventListener("exdoc:loaded",Nl);function Nl(){"clipboard"in navigator&&A("a.copy-markdown").forEach(e=>{e.addEventListener("click",Dl)})}function Dl(e){if(e.ctrlKey||e.metaKey)return;e.preventDefault();let n=e.currentTarget.href,r=new ClipboardItem({"text/plain":fetch(n).then(i=>{if(!i.ok)throw new Error("Failed to fetch markdown");return i.text()}).then(i=>new Blob([i],{type:"text/plain"}))});navigator.clipboard.write([r]).then(()=>{Ve("Page copied as Markdown to clipboard")}).catch(i=>{console.log("Copying Markdown failed:",i),window.confirm("Could not copy to clipboard. Do you want to open the Markdown page instead?")&&(window.location.href=n)})}var F=Y(Vi());var $i=Y(ae());var Ui=$i.template({1:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return" Search results for <em>"+e.escapeExpression((s=(s=o(n,"value")||(t!=null?o(t,"value"):t))!=null?s:e.hooks.helperMissing,typeof s=="function"?s.call(t??(e.nullContext||{}),{name:"value",hash:{},data:i,loc:{start:{line:3,column:27},end:{line:3,column:36}}}):s))+`</em>`},3:function(e,t,n,r,i){return` Invalid search`},5:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return(s=o(n,"each").call(t??(e.nullContext||{}),t!=null?o(t,"results"):t,{name:"each",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i,loc:{start:{line:10,column:2},end:{line:21,column:11}}}))!=null?s:""},6:function(e,t,n,r,i){var s,o=e.lambda,a=e.escapeExpression,l=e.lookupProperty||function(u,c){if(Object.prototype.hasOwnProperty.call(u,c))return u[c]};return` <div class="result"> <h2 class="result-id"> <a href="`+a(o(t!=null?l(t,"ref"):t,t))+`"> <span translate="no">`+a(o(t!=null?l(t,"title"):t,t))+"</span> <small>("+a(o(t!=null?l(t,"type"):t,t))+`)</small> </a> </h2>`+((s=l(n,"each").call(t??(e.nullContext||{}),t!=null?l(t,"excerpts"):t,{name:"each",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i,loc:{start:{line:17,column:8},end:{line:19,column:17}}}))!=null?s:"")+` </div>`},7:function(e,t,n,r,i){var s;return' <p class="result-elem">'+((s=e.lambda(t,t))!=null?s:"")+`</p>`},9:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return((s=(o(n,"isArray")||t&&o(t,"isArray")||e.hooks.helperMissing).call(t??(e.nullContext||{}),t!=null?o(t,"results"):t,{name:"isArray",hash:{},fn:e.program(10,i,0),inverse:e.program(12,i,0),data:i,loc:{start:{line:23,column:2},end:{line:29,column:14}}}))!=null?s:"")+` <p>The search functionality is full-text based. Here are some tips:</p> <ul> <li>Multiple words (such as <code>foo bar</code>) are searched as <code>OR</code></li> <li>Use <code>*</code> anywhere (such as <code>fo*</code>) as wildcard</li> <li>Use <code>+</code> before a word (such as <code>+foo</code>) to make its presence required</li> <li>Use <code>-</code> before a word (such as <code>-foo</code>) to make its absence required</li> <li>Use <code>:</code> to search on a particular field (such as <code>field:word</code>). The available fields are <code>title</code>, <code>doc</code> and <code>type</code></li> <li>Use <code>WORD^NUMBER</code> (such as <code>foo^2</code>) to boost the given word</li> <li>Use <code>WORD~NUMBER</code> (such as <code>foo~2</code>) to do a search with edit distance on word</li> </ul> <p>To quickly go to a module, type, or function, use the autocompletion feature in the sidebar search.</p>`},10:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return" <p>Sorry, we couldn't find anything for <em>"+e.escapeExpression((s=(s=o(n,"value")||(t!=null?o(t,"value"):t))!=null?s:e.hooks.helperMissing,typeof s=="function"?s.call(t??(e.nullContext||{}),{name:"value",hash:{},data:i,loc:{start:{line:24,column:48},end:{line:24,column:57}}}):s))+`</em>.</p>`},12:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return(s=o(n,"if").call(t??(e.nullContext||{}),t!=null?o(t,"value"):t,{name:"if",hash:{},fn:e.program(13,i,0),inverse:e.program(15,i,0),data:i,loc:{start:{line:25,column:2},end:{line:29,column:2}}}))!=null?s:""},13:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return" <p>Invalid search: "+e.escapeExpression((s=(s=o(n,"errorMessage")||(t!=null?o(t,"errorMessage"):t))!=null?s:e.hooks.helperMissing,typeof s=="function"?s.call(t??(e.nullContext||{}),{name:"errorMessage",hash:{},data:i,loc:{start:{line:26,column:23},end:{line:26,column:39}}}):s))+`.</p>`},15:function(e,t,n,r,i){return` <p>Please type something into the search bar to perform a search.</p> `},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=t??(e.nullContext||{}),a=e.lookupProperty||function(l,u){if(Object.prototype.hasOwnProperty.call(l,u))return l[u]};return`<h1>`+((s=a(n,"if").call(o,t!=null?a(t,"value"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:2,column:2},end:{line:6,column:9}}}))!=null?s:"")+`</h1>`+((s=(a(n,"isNonEmptyArray")||t&&a(t,"isNonEmptyArray")||e.hooks.helperMissing).call(o,t!=null?a(t,"results"):t,{name:"isNonEmptyArray",hash:{},fn:e.program(5,i,0),inverse:e.program(9,i,0),data:i,loc:{start:{line:9,column:0},end:{line:44,column:20}}}))!=null?s:"")},useData:!0});var Bl="#search";F.default.tokenizer.separator=/\s+/;F.default.QueryLexer.termSeparator=/\s+/;F.default.Pipeline.registerFunction(zi,"docTokenSplitter");F.default.Pipeline.registerFunction(Gi,"docTrimmer");window.addEventListener("exdoc:loaded",Ql);function Ql(){let e=window.location.pathname;if(e.endsWith("/search.html")||e.endsWith("/search")){let t=er("q");ql(t)}}async function ql(e){if(he(e))En({value:e});else{Ci(e);let t=await Fl();try{let n=e.replaceAll(/(\B|\\):/g,"\\:"),r=Jl(t.search(n));En({value:e,results:r})}catch(n){En({value:e,errorMessage:n.message})}}}function En({value:e,results:t,errorMessage:n}){let r=f(Bl),i=Ui({value:e,results:t,errorMessage:n});r.innerHTML=i}async function Fl(){let e=await Vl();if(e)return e;let t=Gl();return $l(t),t}async function Vl(){try{let e=sessionStorage.getItem(Wi());if(e){let t=await jl(e);return F.default.Index.load(t)}else return null}catch(e){return console.error("Failed to load index: ",e),null}}async function $l(e){try{let t=await Ul(e);sessionStorage.setItem(Wi(),t)}catch(t){console.error("Failed to save index: ",t)}}async function Ul(e){let t=new Blob([JSON.stringify(e)],{type:"application/json"}).stream().pipeThrough(new window.CompressionStream("gzip")),r=await(await new Response(t).blob()).arrayBuffer();return Wl(r)}async function jl(e){let t=new Blob([zl(e)],{type:"application/json"}).stream().pipeThrough(new window.DecompressionStream("gzip")),n=await new Response(t).text();return JSON.parse(n)}function Wl(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let i=0;i<r;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}function zl(e){let t=window.atob(e),n=t.length,r=new Uint8Array(new ArrayBuffer(n));for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r}function Wi(){return`idv5:${Be()}`}function Gl(){return(0,F.default)(function(){this.ref("ref"),this.field("title",{boost:3}),this.field("doc"),this.field("type"),this.metadataWhitelist=["position"],this.pipeline.remove(F.default.stopWordFilter),this.pipeline.remove(F.default.trimmer),this.use(Kl),this.use(Yl),searchData.items.forEach(e=>{this.add(e)})})}function Kl(e){e.pipeline.before(F.default.stemmer,zi)}function zi(e){let t=[e],n=/\/\d+$/,r=/\:|\./,i=e.toString();if(i.replace(/^[.,;?!]+|[.,;]+$/g,""),i.startsWith("`")&&i.endsWith("`")&&(i=i.slice(1,-1)),n.test(i)){let o=e.toString().replace(n,"");t.push(e.clone().update(()=>o));let a=o.split(r);if(a.length>1){for(let u of a)t.push(e.clone().update(()=>u));let l=e.toString().split(r);t.push(e.clone().update(()=>l[l.length-1]))}i=a[a.length-1]}else i.startsWith("@")?(i=i.substring(1),t.push(e.clone().update(()=>i))):i.startsWith(":")&&(i=i.substring(1),t.push(e.clone().update(()=>i)));let s=i.split(/\_|\-/);if(s.length>1)for(let o of s)t.push(e.clone().update(()=>o));return t}function Yl(e){e.pipeline.before(F.default.stemmer,Gi)}function Gi(e){return e.update(function(t){return t.replace(/^[^@:\w]+/,"").replace(/[^\?\!\w]+$/,"")})}function Jl(e){return e.filter(t=>ji(t.ref)).map(t=>{let n=ji(t.ref),r=t.matchData.metadata;return{...n,metadata:r,excerpts:Xl(n,r)}})}function ji(e){return searchData.items.find(t=>t.ref===e)||null}function Xl(e,t){let{doc:n}=e,r=Object.keys(t);return[Zl(n,r)]}function Zl(e,t){let r=e.split(`\r\r`).flatMap(a=>a.split(``)),i;r.length>=2?r[0].trim().startsWith("#")?i=r[1]:i=r[0]:r.length===1?i=r[0]:i=e;let s;i.length>200?s=i.slice(0,200)+"...":s=i;let o=Ne(s);for(let a of t){if(a.trim()==="")continue;let l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),u=new RegExp(l,"gi");o=o.replace(u,c=>`<em>${c}</em>`)}return o}var Ki='<div class="modal" tabindex="-1"><div class="modal-contents"><div class="modal-header"><div class="modal-title"></div><button class="modal-close" aria-label="close">\xD7</button></div><div class="modal-body"></div></div></div>';var eu='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',M=null,kn=null,xn=null,Sn=!1;function tu(){M||(document.body.insertAdjacentHTML("beforeend",Ki),M=f(".modal"),M.addEventListener("keydown",e=>{e.key==="Escape"&&ue()}),M.querySelector(".modal-close").addEventListener("click",ue),M.addEventListener("click",e=>{e.target===M&&ue()}))}function Yi(e){if(!Sn)if(M.contains(e.target))xn=e.target;else{Sn=!0;let t=M.querySelectorAll(eu);xn===t[0]?t[t.length-1].focus():t[0].focus(),Sn=!1,xn=document.activeElement}}function wt({title:e,body:t}){tu(),kn=document.activeElement,document.addEventListener("focus",Yi,!0),M.querySelector(".modal-title").innerHTML=e,M.querySelector(".modal-body").innerHTML=t,M.classList.add("shown"),M.focus()}function ue(){M?.classList.remove("shown"),document.removeEventListener("focus",Yi,!0),kn?.focus(),kn=null}function Ji(){return!!M?.classList.contains("shown")}var Xi='<div id="quick-switch-modal-body"><i class="ri-search-2-line" aria-hidden="true"></i><input type="text" id="quick-switch-input" class="search-input" placeholder="Jump to..." autocomplete="off" spellcheck="false"><div id="quick-switch-results"></div></div>';var nu="https://hexdocs.pm/%%",ru="https://www.erlang.org/doc/apps/%%",iu="https://hex.pm/api/packages?search=name:%%*",su=".display-quick-switch",es="#quick-switch-input",ts="#quick-switch-results",ou=300,au=9,ns=["erts","asn1","common_test","compiler","crypto","debugger","dialyzer","diameter","edoc","eldap","erl_interface","et","eunit","ftp","inets","jinterface","kernel","megaco","mnesia","observer","odbc","os_mon","parsetools","public_key","reltool","runtime_tools","sasl","snmp","ssh","ssl","stdlib","syntax_tools","tftp","tools","wx","xmerl"],lu=["elixir","eex","ex_unit","hex","iex","logger","mix"].concat(ns).map(e=>({name:e})),rs=2,D={autocompleteResults:[],selectedIdx:null};C||window.addEventListener("exdoc:loaded",uu);function uu(){A(su).forEach(e=>{e.addEventListener("click",Tn)})}function cu(e){if(e.key==="Enter"){let t=e.target.value;hu(t),e.preventDefault()}else e.key==="ArrowUp"?(Zi(-1),e.preventDefault()):e.key==="ArrowDown"&&(Zi(1),e.preventDefault())}function du(e){let t=e.target.value;if(t.length<rs){let n=f(ts);n.innerHTML=""}else fu(t)}function Tn(){wt({title:"Go to package docs",body:Xi});let e=f(es);e.focus(),e.addEventListener("keydown",cu),e.addEventListener("input",du),D.autocompleteResults=[],D.selectedIdx=null}function hu(e){if(D.selectedIdx===null)Ln(e);else{let t=D.autocompleteResults[D.selectedIdx];Ln(t.name)}}function Ln(e){ns.includes(e.toLowerCase())?window.location=ru.replace("%%",e.toLowerCase()):window.location=nu.replace("%%",e.toLowerCase())}var fu=tr(pu,ou);function pu(e){let t=iu.replace("%%",e);fetch(t).then(n=>n.json()).then(n=>{Array.isArray(n)&&(D.autocompleteResults=gu(e,n),D.selectedIdx=null,f(es).value.length>=rs&&mu(D.autocompleteResults))})}function mu(e){f(ts).replaceChildren(...e.map(({name:t},n)=>{let r=E("div",{class:"quick-switch-result","data-index":n},[t]);return r.addEventListener("click",()=>Ln(t)),r}))}function gu(e,t){return lu.concat(t).filter(n=>n.name.toLowerCase().includes(e.toLowerCase())).filter(n=>n.releases===void 0||n.releases[0].has_docs===!0).slice(0,au)}function Zi(e){D.selectedIdx=vu(e);let t=f(".quick-switch-result.selected"),n=f(`.quick-switch-result[data-index="${D.selectedIdx}"]`);t&&t.classList.remove("selected"),n&&n.classList.add("selected")}function vu(e){let t=D.autocompleteResults.length;if(D.selectedIdx===null){if(e>=0)return 0;if(e<0)return t-1}return(D.selectedIdx+e+t)%t}var yu="#settings-modal-content",On=[{key:"c",description:"Toggle sidebar",action:We},{key:"n",description:"Cycle themes",action:ar},{key:"s",description:"Focus search bar",displayAs:"<kbd><kbd>/</kbd></kbd> or <kbd><kbd>s</kdb></kdb>",action:_n},{key:"/",action:_n},{key:"k",hasModifier:!0,action:_n},{key:"v",description:"Open/focus version select",action:Eu},{key:"g",description:"Go to package docs",displayAs:"<kbd><kbd>g</kdb></kdb>",action:Tn},{key:"?",displayAs:"<kbd><kbd>?</kbd></kbd>",description:"Bring up this modal",action:xu}],Pn={shortcutBeingPressed:null};C||(document.addEventListener("keydown",wu),document.addEventListener("keyup",bu));function wu(e){if(Pn.shortcutBeingPressed||e.target.matches("input, select, textarea"))return;let t=On.find(n=>n.hasModifier?Qe()&&e.metaKey||e.ctrlKey?n.key===e.key:!1:e.ctrlKey||e.metaKey||e.altKey?!1:n.key===e.key);t&&(Pn.shortcutBeingPressed=t,e.preventDefault(),t.action(e))}function bu(e){Pn.shortcutBeingPressed=null}function _n(e){ue(),Ri()}function Eu(){ue(),Sr()?hn():Lr().then(hn)}function xu(){Su()?ue():An()}function Su(){return Ji()&&f(yu)}var is=Y(ae());var ss=is.template({1:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return(s=o(n,"if").call(t??(e.nullContext||{}),t!=null?o(t,"description"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:40,column:6},end:{line:53,column:13}}}))!=null?s:""},2:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return` <dl class="shortcut-row"> <dd class="shortcut-description"> `+e.escapeExpression(e.lambda(t!=null?o(t,"description"):t,t))+` </dd> <dt class="shortcut-keys">`+((s=o(n,"if").call(t??(e.nullContext||{}),t!=null?o(t,"displayAs"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.program(5,i,0),data:i,loc:{start:{line:46,column:12},end:{line:50,column:19}}}))!=null?s:"")+` </dt> </dl>`},3:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return" "+((s=e.lambda(t!=null?o(t,"displayAs"):t,t))!=null?s:"")+``},5:function(e,t,n,r,i){var s=e.lookupProperty||function(o,a){if(Object.prototype.hasOwnProperty.call(o,a))return o[a]};return" <kbd><kbd>"+e.escapeExpression(e.lambda(t!=null?s(t,"key"):t,t))+`</kbd></kbd>`},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return`<div id="settings-modal-content"> <div id="settings-content"> <label class="switch-button-container"> <div> <span>Theme</span> <p>Use the documentation UI in a theme.</p> </div> <div> <select name="theme" class="settings-select"> <option value="dark">Dark</option> <option value="light">Light</option> <option value="system">System</option> </select> </div> </label> <label class="switch-button-container"> <div> <span>Show tooltips</span> <p>Show tooltips when mousing over code references.</p> </div> <div class="switch-button"> <input class="switch-button__checkbox" type="checkbox" name="tooltips" /> <div class="switch-button__bg"></div> </div> </label> <label class="switch-button-container"> <div> <span>Run in Livebook</span> <p>Use Direct Address for \u201CRun in Livebook\u201D badges.</p> </div> <div class="switch-button"> <input class="switch-button__checkbox" type="checkbox" name="direct_livebook_url" /> <div class="switch-button__bg"></div> </div> </label> <input class="input" type="url" name="livebook_url" placeholder="Enter Livebook instance URL" aria-label="Enter Livebook instance URL" /> </div> <div id="keyboard-shortcuts-content" class="hidden">`+((s=o(n,"each").call(t??(e.nullContext||{}),t!=null?o(t,"shortcuts"):t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:39,column:4},end:{line:54,column:13}}}))!=null?s:"")+` </div></div>`},useData:!0});var ku=".display-settings",Lu="#settings-modal-content",In="#modal-settings-tab",Cn="#modal-keyboard-shortcuts-tab",as="#settings-content",ls="#keyboard-shortcuts-content",Tu=[{title:"Settings",id:"modal-settings-tab"},{title:"Keyboard shortcuts",id:"modal-keyboard-shortcuts-tab"}];window.addEventListener("exdoc:loaded",_u);function _u(){A(ku).forEach(e=>{e.addEventListener("click",An)})}function os(){f(Cn).classList.remove("active"),f(In).classList.add("active"),f(as).classList.remove("hidden"),f(ls).classList.add("hidden")}function Pu(){f(Cn).classList.add("active"),f(In).classList.remove("active"),f(ls).classList.remove("hidden"),f(as).classList.add("hidden")}function An(){wt({title:Tu.map(({id:s,title:o})=>`<button id="${s}">${o}</button>`).join(""),body:ss({shortcuts:On})});let e=f(Lu),t=e.querySelector('[name="theme"]'),n=e.querySelector('[name="tooltips"]'),r=e.querySelector('[name="direct_livebook_url"]'),i=e.querySelector('[name="livebook_url"]');R.getAndSubscribe(s=>{t.value=s.theme||"system",n.checked=s.tooltips,s.livebookUrl===null?(r.checked=!1,i.classList.add("hidden"),i.tabIndex=-1):(r.checked=!0,i.classList.remove("hidden"),i.tabIndex=0,i.value=s.livebookUrl)}),t.addEventListener("change",s=>{R.update({theme:s.target.value})}),n.addEventListener("change",s=>{R.update({tooltips:s.target.checked})}),r.addEventListener("change",s=>{let o=s.target.checked?i.value:null;R.update({livebookUrl:o})}),i.addEventListener("input",s=>{R.update({livebookUrl:s.target.value})}),f(In).addEventListener("click",s=>{os()}),f(Cn).addEventListener("click",s=>{Pu()}),os()}var Rn=new WeakMap;function Mn(e,t,n,r){if(!e&&!Rn.has(t))return!1;let i=Rn.get(t)??new WeakMap;Rn.set(t,i);let s=i.get(n)??new Set;i.set(n,s);let o=s.has(r);return e?s.add(r):s.delete(r),o&&e}function Ou(e,t){let n=e.target;if(n instanceof Text&&(n=n.parentElement),n instanceof Element&&e.currentTarget instanceof Element){let r=n.closest(t);if(r&&e.currentTarget.contains(r))return r}}function Au(e,t,n,r={}){let{signal:i,base:s=document}=r;if(i?.aborted)return;let{once:o,...a}=r,l=s instanceof Document?s.documentElement:s,u=!!(typeof r=="object"?r.capture:r),c=p=>{let g=Ou(p,String(e));if(g){let m=Object.assign(p,{delegateTarget:g});n.call(l,m),o&&(l.removeEventListener(t,c,a),Mn(!1,l,n,d))}},d=JSON.stringify({selector:e,type:t,capture:u});Mn(!0,l,n,d)||l.addEventListener(t,c,a),i?.addEventListener("abort",()=>{Mn(!1,l,n,d)})}var bt=Au;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(null,arguments)}var hs=(e,t)=>String(e).toLowerCase().replace(/[\s/_.]+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+|-+$/g,"")||t||"",Oe=({hash:e}={})=>window.location.pathname+window.location.search+(e?window.location.hash:""),Iu=(e,t={})=>{let n=O({url:e=e||Oe({hash:!0}),random:Math.random(),source:"swup"},t);window.history.pushState(n,"",e)},Pe=(e=null,t={})=>{e=e||Oe({hash:!0});let n=O({},window.history.state||{},{url:e,random:Math.random(),source:"swup"},t);window.history.replaceState(n,"",e)},Cu=(e,t,n,r)=>{let i=new AbortController;return r=O({},r,{signal:i.signal}),bt(e,t,n,r),{destroy:()=>i.abort()}},H=class e extends URL{constructor(t,n=document.baseURI){super(t.toString(),n),Object.setPrototypeOf(this,e.prototype)}get url(){return this.pathname+this.search}static fromElement(t){let n=t.getAttribute("href")||t.getAttribute("xlink:href")||"";return new e(n)}static fromUrl(t){return new e(t)}};var ge=class extends Error{constructor(t,n){super(t),this.url=void 0,this.status=void 0,this.aborted=void 0,this.timedOut=void 0,this.name="FetchError",this.url=n.url,this.status=n.status,this.aborted=n.aborted||!1,this.timedOut=n.timedOut||!1}};async function Ru(e,t={}){var n;e=H.fromUrl(e).url;let{visit:r=this.visit}=t,i=O({},this.options.requestHeaders,t.headers),s=(n=t.timeout)!=null?n:this.options.timeout,o=new AbortController,{signal:a}=o;t=O({},t,{headers:i,signal:a});let l,u=!1,c=null;s&&s>0&&(c=setTimeout(()=>{u=!0,o.abort("timeout")},s));try{l=await this.hooks.call("fetch:request",r,{url:e,options:t},(v,{url:w,options:x})=>fetch(w,x)),c&&clearTimeout(c)}catch(v){throw u?(this.hooks.call("fetch:timeout",r,{url:e}),new ge(`Request timed out: ${e}`,{url:e,timedOut:u})):v?.name==="AbortError"||a.aborted?new ge(`Request aborted: ${e}`,{url:e,aborted:!0}):v}let{status:d,url:h}=l,p=await l.text();if(d===500)throw this.hooks.call("fetch:error",r,{status:d,response:l,url:h}),new ge(`Server error: ${h}`,{status:d,url:h});if(!p)throw new ge(`Empty response: ${h}`,{status:d,url:h});let{url:g}=H.fromUrl(h),m={url:g,html:p};return!r.cache.write||t.method&&t.method!=="GET"||e!==g||this.cache.set(m.url,m),m}var Nn=class{constructor(t){this.swup=void 0,this.pages=new Map,this.swup=t}get size(){return this.pages.size}get all(){let t=new Map;return this.pages.forEach((n,r)=>{t.set(r,O({},n))}),t}has(t){return this.pages.has(this.resolve(t))}get(t){let n=this.pages.get(this.resolve(t));return n&&O({},n)}set(t,n){n=O({},n,{url:t=this.resolve(t)}),this.pages.set(t,n),this.swup.hooks.callSync("cache:set",void 0,{page:n})}update(t,n){t=this.resolve(t);let r=O({},this.get(t),n,{url:t});this.pages.set(t,r)}delete(t){this.pages.delete(this.resolve(t))}clear(){this.pages.clear(),this.swup.hooks.callSync("cache:clear",void 0,void 0)}prune(t){this.pages.forEach((n,r)=>{t(r,n)&&this.delete(r)})}resolve(t){let{url:n}=H.fromUrl(t);return this.swup.resolveUrl(n)}},Dn=(e,t=document)=>t.querySelector(e),qn=(e,t=document)=>Array.from(t.querySelectorAll(e)),fs=()=>new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})});function ps(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function Mu(e,t=[]){return new Promise((n,r)=>{let i=e(...t);ps(i)?i.then(n,r):n(i)})}function us(e,t){let n=e?.closest(`[${t}]`);return n!=null&&n.hasAttribute(t)?n?.getAttribute(t)||!0:void 0}var Bn=class{constructor(t){this.swup=void 0,this.swupClasses=["to-","is-changing","is-rendering","is-popstate","is-animating","is-leaving"],this.swup=t}get selectors(){let{scope:t}=this.swup.visit.animation;return t==="containers"?this.swup.visit.containers:t==="html"?["html"]:Array.isArray(t)?t:[]}get selector(){return this.selectors.join(",")}get targets(){return this.selector.trim()?qn(this.selector):[]}add(...t){this.targets.forEach(n=>n.classList.add(...t))}remove(...t){this.targets.forEach(n=>n.classList.remove(...t))}clear(){this.targets.forEach(t=>{let n=t.className.split(" ").filter(r=>this.isSwupClass(r));t.classList.remove(...n)})}isSwupClass(t){return this.swupClasses.some(n=>t.startsWith(n))}},St=class{constructor(t,n){this.id=void 0,this.state=void 0,this.from=void 0,this.to=void 0,this.containers=void 0,this.animation=void 0,this.trigger=void 0,this.cache=void 0,this.history=void 0,this.scroll=void 0,this.meta=void 0;let{to:r,from:i,hash:s,el:o,event:a}=n;this.id=Math.random(),this.state=1,this.from={url:i??t.location.url,hash:t.location.hash},this.to={url:r,hash:s},this.containers=t.options.containers,this.animation={animate:!0,wait:!1,name:void 0,native:t.options.native,scope:t.options.animationScope,selector:t.options.animationSelector},this.trigger={el:o,event:a},this.cache={read:t.options.cache,write:t.options.cache},this.history={action:"push",popstate:!1,direction:void 0},this.scroll={reset:!0,target:void 0},this.meta={}}advance(t){this.state<t&&(this.state=t)}abort(){this.state=8}get done(){return this.state>=7}};function Hu(e){return new St(this,e)}var Qn=class{constructor(t){this.swup=void 0,this.registry=new Map,this.hooks=["animation:out:start","animation:out:await","animation:out:end","animation:in:start","animation:in:await","animation:in:end","animation:skip","cache:clear","cache:set","content:replace","content:scroll","enable","disable","fetch:request","fetch:error","fetch:timeout","history:popstate","link:click","link:self","link:anchor","link:newtab","page:load","page:view","scroll:top","scroll:anchor","visit:start","visit:transition","visit:abort","visit:end"],this.swup=t,this.init()}init(){this.hooks.forEach(t=>this.create(t))}create(t){this.registry.has(t)||this.registry.set(t,new Map)}exists(t){return this.registry.has(t)}get(t){let n=this.registry.get(t);if(n)return n;console.error(`Unknown hook '${t}'`)}clear(){this.registry.forEach(t=>t.clear())}on(t,n,r={}){let i=this.get(t);if(!i)return console.warn(`Hook '${t}' not found.`),()=>{};let s=O({},r,{id:i.size+1,hook:t,handler:n});return i.set(n,s),()=>this.off(t,n)}before(t,n,r={}){return this.on(t,n,O({},r,{before:!0}))}replace(t,n,r={}){return this.on(t,n,O({},r,{replace:!0}))}once(t,n,r={}){return this.on(t,n,O({},r,{once:!0}))}off(t,n){let r=this.get(t);r&&n?r.delete(n)||console.warn(`Handler for hook '${t}' not found.`):r&&r.clear()}async call(t,n,r,i){let[s,o,a]=this.parseCallArgs(t,n,r,i),{before:l,handler:u,after:c}=this.getHandlers(t,a);await this.run(l,s,o);let[d]=await this.run(u,s,o,!0);return await this.run(c,s,o),this.dispatchDomEvent(t,s,o),d}callSync(t,n,r,i){let[s,o,a]=this.parseCallArgs(t,n,r,i),{before:l,handler:u,after:c}=this.getHandlers(t,a);this.runSync(l,s,o);let[d]=this.runSync(u,s,o,!0);return this.runSync(c,s,o),this.dispatchDomEvent(t,s,o),d}parseCallArgs(t,n,r,i){return n instanceof St||typeof n!="object"&&typeof r!="function"?[n,r,i]:[void 0,n,r]}async run(t,n=this.swup.visit,r,i=!1){let s=[];for(let{hook:o,handler:a,defaultHandler:l,once:u}of t)if(n==null||!n.done){u&&this.off(o,a);try{let c=await Mu(a,[n,r,l]);s.push(c)}catch(c){if(i)throw c;console.error(`Error in hook '${o}':`,c)}}return s}runSync(t,n=this.swup.visit,r,i=!1){let s=[];for(let{hook:o,handler:a,defaultHandler:l,once:u}of t)if(n==null||!n.done){u&&this.off(o,a);try{let c=a(n,r,l);s.push(c),ps(c)&&console.warn(`Swup will not await Promises in handler for synchronous hook '${o}'.`)}catch(c){if(i)throw c;console.error(`Error in hook '${o}':`,c)}}return s}getHandlers(t,n){let r=this.get(t);if(!r)return{found:!1,before:[],handler:[],after:[],replaced:!1};let i=Array.from(r.values()),s=this.sortRegistrations,o=i.filter(({before:d,replace:h})=>d&&!h).sort(s),a=i.filter(({replace:d})=>d).filter(d=>!0).sort(s),l=i.filter(({before:d,replace:h})=>!d&&!h).sort(s),u=a.length>0,c=[];if(n&&(c=[{id:0,hook:t,handler:n}],u)){let d=a.length-1,{handler:h,once:p}=a[d],g=m=>{let v=a[m-1];return v?(w,x)=>v.handler(w,x,g(m-1)):n};c=[{id:0,hook:t,once:p,handler:h,defaultHandler:g(d)}]}return{found:!0,before:o,handler:c,after:l,replaced:u}}sortRegistrations(t,n){var r,i;return((r=t.priority)!=null?r:0)-((i=n.priority)!=null?i:0)||t.id-n.id||0}dispatchDomEvent(t,n,r){if(n!=null&&n.done)return;let i={hook:t,args:r,visit:n||this.swup.visit};document.dispatchEvent(new CustomEvent("swup:any",{detail:i,bubbles:!0})),document.dispatchEvent(new CustomEvent(`swup:${t}`,{detail:i,bubbles:!0}))}parseName(t){let[n,...r]=t.split(".");return[n,r.reduce((i,s)=>O({},i,{[s]:!0}),{})]}},Nu=e=>{if(e&&e.charAt(0)==="#"&&(e=e.substring(1)),!e)return null;let t=decodeURIComponent(e),n=document.getElementById(e)||document.getElementById(t)||Dn(`a[name='${CSS.escape(e)}']`)||Dn(`a[name='${CSS.escape(t)}']`);return n||e!=="top"||(n=document.body),n},Et="transition",Hn="animation";async function Du({selector:e,elements:t}){if(e===!1&&!t)return;let n=[];if(t)n=Array.from(t);else if(e&&(n=qn(e,document.body),!n.length))return void console.warn(`[swup] No elements found matching animationSelector \`${e}\``);let r=n.map(i=>(function(s){let{type:o,timeout:a,propCount:l}=(function(u){let c=window.getComputedStyle(u),d=xt(c,`${Et}Delay`),h=xt(c,`${Et}Duration`),p=cs(d,h),g=xt(c,`${Hn}Delay`),m=xt(c,`${Hn}Duration`),v=cs(g,m),w=Math.max(p,v),x=w>0?p>v?Et:Hn:null;return{type:x,timeout:w,propCount:x?x===Et?h.length:m.length:0}})(s);return!(!o||!a)&&new Promise(u=>{let c=`${o}end`,d=performance.now(),h=0,p=()=>{s.removeEventListener(c,g),u()},g=m=>{m.target===s&&((performance.now()-d)/1e3<m.elapsedTime||++h>=l&&p())};setTimeout(()=>{h<l&&p()},a+1),s.addEventListener(c,g)})})(i));r.filter(Boolean).length>0?await Promise.all(r):e&&console.warn(`[swup] No CSS animation duration defined on elements matching \`${e}\``)}function xt(e,t){return(e[t]||"").split(", ")}function cs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>ds(n)+ds(e[r])))}function ds(e){return 1e3*parseFloat(e)}function Bu(e,t={},n={}){if(typeof e!="string")throw new Error("swup.navigate() requires a URL parameter");if(this.shouldIgnoreVisit(e,{el:n.el,event:n.event}))return void window.location.assign(e);let{url:r,hash:i}=H.fromUrl(e),s=this.createVisit(O({},n,{to:r,hash:i}));this.performNavigation(s,t)}async function Qu(e,t={}){if(this.navigating){if(this.visit.state>=6)return e.state=2,void(this.onVisitEnd=()=>this.performNavigation(e,t));await this.hooks.call("visit:abort",this.visit,void 0),delete this.visit.to.document,this.visit.state=8}this.navigating=!0,this.visit=e;let{el:n}=e.trigger;t.referrer=t.referrer||this.location.url,t.animate===!1&&(e.animation.animate=!1),e.animation.animate||this.classes.clear();let r=t.history||us(n,"data-swup-history");typeof r=="string"&&["push","replace"].includes(r)&&(e.history.action=r);let i=t.animation||us(n,"data-swup-animation");var s,o;typeof i=="string"&&(e.animation.name=i),e.meta=t.meta||{},typeof t.cache=="object"?(e.cache.read=(s=t.cache.read)!=null?s:e.cache.read,e.cache.write=(o=t.cache.write)!=null?o:e.cache.write):t.cache!==void 0&&(e.cache={read:!!t.cache,write:!!t.cache}),delete t.cache;try{await this.hooks.call("visit:start",e,void 0),e.state=3;let a=this.hooks.call("page:load",e,{options:t},async(u,c)=>{let d;return u.cache.read&&(d=this.cache.get(u.to.url)),c.page=d||await this.fetchPage(u.to.url,c.options),c.cache=!!d,c.page});a.then(({html:u})=>{e.advance(5),e.to.html=u,e.to.document=new DOMParser().parseFromString(u,"text/html")});let l=e.to.url+e.to.hash;if(e.history.popstate||(e.history.action==="replace"||e.to.url===this.location.url?Pe(l):(this.currentHistoryIndex++,Iu(l,{index:this.currentHistoryIndex}))),this.location=H.fromUrl(l),e.history.popstate&&this.classes.add("is-popstate"),e.animation.name&&this.classes.add(`to-${hs(e.animation.name)}`),e.animation.wait&&await a,e.done||(await this.hooks.call("visit:transition",e,void 0,async()=>{if(!e.animation.animate)return await this.hooks.call("animation:skip",void 0),void await this.renderPage(e,await a);e.advance(4),await this.animatePageOut(e),e.animation.native&&document.startViewTransition?await document.startViewTransition(async()=>await this.renderPage(e,await a)).finished:await this.renderPage(e,await a),await this.animatePageIn(e)}),e.done))return;await this.hooks.call("visit:end",e,void 0,()=>this.classes.clear()),e.state=7,this.navigating=!1,this.onVisitEnd&&(this.onVisitEnd(),this.onVisitEnd=void 0)}catch(a){if(!a||a!=null&&a.aborted)return void(e.state=8);e.state=9,console.error(a),this.options.skipPopStateHandling=()=>(window.location.assign(e.to.url+e.to.hash),!0),window.history.back()}finally{delete e.to.document}}var qu=async function(e){await this.hooks.call("animation:out:start",e,void 0,()=>{this.classes.add("is-changing","is-animating","is-leaving")}),await this.hooks.call("animation:out:await",e,{skip:!1},(t,{skip:n})=>{if(!n)return this.awaitAnimations({selector:t.animation.selector})}),await this.hooks.call("animation:out:end",e,void 0)},Fu=function(e){var t;let n=e.to.document;if(!n)return!1;let r=((t=n.querySelector("title"))==null?void 0:t.innerText)||"";document.title=r;let i=qn('[data-swup-persist]:not([data-swup-persist=""])'),s=e.containers.map(o=>{let a=document.querySelector(o),l=n.querySelector(o);return a&&l?(a.replaceWith(l.cloneNode(!0)),!0):(a||console.warn(`[swup] Container missing in current document: ${o}`),l||console.warn(`[swup] Container missing in incoming document: ${o}`),!1)}).filter(Boolean);return i.forEach(o=>{let a=o.getAttribute("data-swup-persist"),l=Dn(`[data-swup-persist="${a}"]`);l&&l!==o&&l.replaceWith(o)}),s.length===e.containers.length},Vu=function(e){let t={behavior:"auto"},{target:n,reset:r}=e.scroll,i=n??e.to.hash,s=!1;return i&&(s=this.hooks.callSync("scroll:anchor",e,{hash:i,options:t},(o,{hash:a,options:l})=>{let u=this.getAnchorElement(a);return u&&u.scrollIntoView(l),!!u})),r&&!s&&(s=this.hooks.callSync("scroll:top",e,{options:t},(o,{options:a})=>(window.scrollTo(O({top:0,left:0},a)),!0))),s},$u=async function(e){if(e.done)return;let t=this.hooks.call("animation:in:await",e,{skip:!1},(n,{skip:r})=>{if(!r)return this.awaitAnimations({selector:n.animation.selector})});await fs(),await this.hooks.call("animation:in:start",e,void 0,()=>{this.classes.remove("is-animating")}),await t,await this.hooks.call("animation:in:end",e,void 0)},Uu=async function(e,t){if(e.done)return;e.advance(6);let{url:n}=t;this.isSameResolvedUrl(Oe(),n)||(Pe(n),this.location=H.fromUrl(n),e.to.url=this.location.url,e.to.hash=this.location.hash),await this.hooks.call("content:replace",e,{page:t},(r,{})=>{if(this.classes.remove("is-leaving"),r.animation.animate&&this.classes.add("is-rendering"),!this.replaceContent(r))throw new Error("[swup] Container mismatch, aborting");r.animation.animate&&(this.classes.add("is-changing","is-animating","is-rendering"),r.animation.name&&this.classes.add(`to-${hs(r.animation.name)}`))}),await this.hooks.call("content:scroll",e,void 0,()=>this.scrollToContent(e)),await this.hooks.call("page:view",e,{url:this.location.url,title:document.title})},ju=function(e){var t;if(t=e,!!t?.isSwupPlugin){if(e.swup=this,!e._checkRequirements||e._checkRequirements())return e._beforeMount&&e._beforeMount(),e.mount(),this.plugins.push(e),this.plugins}else console.error("Not a swup plugin instance",e)};function Wu(e){let t=this.findPlugin(e);if(t)return t.unmount(),t._afterUnmount&&t._afterUnmount(),this.plugins=this.plugins.filter(n=>n!==t),this.plugins;console.error("No such plugin",t)}function zu(e){return this.plugins.find(t=>t===e||t.name===e||t.name===`Swup${String(e)}`)}function Gu(e){if(typeof this.options.resolveUrl!="function")return console.warn("[swup] options.resolveUrl expects a callback function."),e;let t=this.options.resolveUrl(e);return t&&typeof t=="string"?t.startsWith("//")||t.startsWith("http")?(console.warn("[swup] options.resolveUrl needs to return a relative url"),e):t:(console.warn("[swup] options.resolveUrl needs to return a url"),e)}function Ku(e,t){return this.resolveUrl(e)===this.resolveUrl(t)}var Yu={animateHistoryBrowsing:!1,animationSelector:'[class*="transition-"]',animationScope:"html",cache:!0,containers:["#swup"],hooks:{},ignoreVisit:(e,{el:t}={})=>!(t==null||!t.closest("[data-no-swup]")),linkSelector:"a[href]",linkToSelf:"scroll",native:!1,plugins:[],resolveUrl:e=>e,requestHeaders:{"X-Requested-With":"swup",Accept:"text/html, application/xhtml+xml"},skipPopStateHandling:e=>{var t;return((t=e.state)==null?void 0:t.source)!=="swup"},timeout:0},kt=class{get currentPageUrl(){return this.location.url}constructor(t={}){var n,r;this.version="4.8.1",this.options=void 0,this.defaults=Yu,this.plugins=[],this.visit=void 0,this.cache=void 0,this.hooks=void 0,this.classes=void 0,this.location=H.fromUrl(window.location.href),this.currentHistoryIndex=void 0,this.clickDelegate=void 0,this.navigating=!1,this.onVisitEnd=void 0,this.use=ju,this.unuse=Wu,this.findPlugin=zu,this.log=()=>{},this.navigate=Bu,this.performNavigation=Qu,this.createVisit=Hu,this.delegateEvent=Cu,this.fetchPage=Ru,this.awaitAnimations=Du,this.renderPage=Uu,this.replaceContent=Fu,this.animatePageIn=$u,this.animatePageOut=qu,this.scrollToContent=Vu,this.getAnchorElement=Nu,this.getCurrentUrl=Oe,this.resolveUrl=Gu,this.isSameResolvedUrl=Ku,this.options=O({},this.defaults,t),this.handleLinkClick=this.handleLinkClick.bind(this),this.handlePopState=this.handlePopState.bind(this),this.cache=new Nn(this),this.classes=new Bn(this),this.hooks=new Qn(this),this.visit=this.createVisit({to:""}),this.currentHistoryIndex=(n=(r=window.history.state)==null?void 0:r.index)!=null?n:1,this.enable()}async enable(){var t;let{linkSelector:n}=this.options;this.clickDelegate=this.delegateEvent(n,"click",this.handleLinkClick),window.addEventListener("popstate",this.handlePopState),this.options.animateHistoryBrowsing&&(window.history.scrollRestoration="manual"),this.options.native=this.options.native&&!!document.startViewTransition,this.options.plugins.forEach(r=>this.use(r));for(let[r,i]of Object.entries(this.options.hooks)){let[s,o]=this.hooks.parseName(r);this.hooks.on(s,i,o)}((t=window.history.state)==null?void 0:t.source)!=="swup"&&Pe(null,{index:this.currentHistoryIndex}),await fs(),await this.hooks.call("enable",void 0,void 0,()=>{let r=document.documentElement;r.classList.add("swup-enabled"),r.classList.toggle("swup-native",this.options.native)})}async destroy(){this.clickDelegate.destroy(),window.removeEventListener("popstate",this.handlePopState),this.cache.clear(),this.options.plugins.forEach(t=>this.unuse(t)),await this.hooks.call("disable",void 0,void 0,()=>{let t=document.documentElement;t.classList.remove("swup-enabled"),t.classList.remove("swup-native")}),this.hooks.clear()}shouldIgnoreVisit(t,{el:n,event:r}={}){let{origin:i,url:s,hash:o}=H.fromUrl(t);return i!==window.location.origin||!(!n||!this.triggerWillOpenNewWindow(n))||!!this.options.ignoreVisit(s+o,{el:n,event:r})}handleLinkClick(t){let n=t.delegateTarget,{href:r,url:i,hash:s}=H.fromElement(n);if(this.shouldIgnoreVisit(r,{el:n,event:t}))return;if(this.navigating&&i===this.visit.to.url)return void t.preventDefault();let o=this.createVisit({to:i,hash:s,el:n,event:t});t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?this.hooks.callSync("link:newtab",o,{href:r}):t.button===0&&this.hooks.callSync("link:click",o,{el:n,event:t},()=>{var a;let l=(a=o.from.url)!=null?a:"";t.preventDefault(),i&&i!==l?this.isSameResolvedUrl(i,l)||this.performNavigation(o):s?this.hooks.callSync("link:anchor",o,{hash:s},()=>{Pe(i+s),this.scrollToContent(o)}):this.hooks.callSync("link:self",o,void 0,()=>{this.options.linkToSelf==="navigate"?this.performNavigation(o):(Pe(i),this.scrollToContent(o))})})}handlePopState(t){var n,r,i,s;let o=(n=(r=t.state)==null?void 0:r.url)!=null?n:window.location.href;if(this.options.skipPopStateHandling(t)||this.isSameResolvedUrl(Oe(),this.location.url))return;let{url:a,hash:l}=H.fromUrl(o),u=this.createVisit({to:a,hash:l,event:t});u.history.popstate=!0;let c=(i=(s=t.state)==null?void 0:s.index)!=null?i:0;c&&c!==this.currentHistoryIndex&&(u.history.direction=c-this.currentHistoryIndex>0?"forwards":"backwards",this.currentHistoryIndex=c),u.animation.animate=!1,u.scroll.reset=!1,u.scroll.target=!1,this.options.animateHistoryBrowsing&&(u.animation.animate=!0,u.scroll.reset=!0),this.hooks.callSync("history:popstate",u,{event:t},()=>{this.performNavigation(u)})}triggerWillOpenNewWindow(t){return!!t.matches('[download], [target="_blank"]')}};function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(this,arguments)}var ms=e=>String(e).split(".").map(t=>String(parseInt(t||"0",10))).concat(["0","0"]).slice(0,3).join("."),ve=class{constructor(){this.isSwupPlugin=!0,this.swup=void 0,this.version=void 0,this.requires={},this.handlersToUnregister=[]}mount(){}unmount(){this.handlersToUnregister.forEach(t=>t()),this.handlersToUnregister=[]}_beforeMount(){if(!this.name)throw new Error("You must define a name of plugin when creating a class.")}_afterUnmount(){}_checkRequirements(){return typeof this.requires!="object"||Object.entries(this.requires).forEach(([t,n])=>{if(!(function(r,i,s){let o=(function(a,l){var u;if(a==="swup")return(u=l.version)!=null?u:"";{var c;let d=l.findPlugin(a);return(c=d?.version)!=null?c:""}})(r,s);return!!o&&((a,l)=>l.every(u=>{let[,c,d]=u.match(/^([\D]+)?(.*)$/)||[];var h,p;return((g,m)=>{let v={"":w=>w===0,">":w=>w>0,">=":w=>w>=0,"<":w=>w<0,"<=":w=>w<=0};return(v[m]||v[""])(g)})((p=d,h=ms(h=a),p=ms(p),h.localeCompare(p,void 0,{numeric:!0})),c||">=")}))(o,i)})(t,n=Array.isArray(n)?n:[n],this.swup)){let r=`${t} ${n.join(", ")}`;throw new Error(`Plugin version mismatch: ${this.name} requires ${r}`)}}),!0}on(t,n,r={}){var i;n=!(i=n).name.startsWith("bound ")||i.hasOwnProperty("prototype")?n.bind(this):n;let s=this.swup.hooks.on(t,n,r);return this.handlersToUnregister.push(s),s}once(t,n,r={}){return this.on(t,n,Ae({},r,{once:!0}))}before(t,n,r={}){return this.on(t,n,Ae({},r,{before:!0}))}replace(t,n,r={}){return this.on(t,n,Ae({},r,{replace:!0}))}off(t,n){return this.swup.hooks.off(t,n)}};(function(){if(!(typeof window>"u"||typeof document>"u"||typeof HTMLElement>"u")){var e=!1;try{var t=document.createElement("div");t.addEventListener("focus",function(s){s.preventDefault(),s.stopPropagation()},!0),t.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&typeof navigator.userAgent<"u"&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return e=!1;e=!0}}))}catch{}if(HTMLElement.prototype.nativeFocus===void 0&&!e){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(s){for(var o=s.parentNode,a=[],l=document.scrollingElement||document.documentElement;o&&o!==l;)(o.offsetHeight<o.scrollHeight||o.offsetWidth<o.scrollWidth)&&a.push([o,o.scrollTop,o.scrollLeft]),o=o.parentNode;return o=l,a.push([o,o.scrollTop,o.scrollLeft]),a},r=function(s){for(var o=0;o<s.length;o++)s[o][0].scrollTop=s[o][1],s[o][0].scrollLeft=s[o][2];s=[]},i=function(s){if(s&&s.preventScroll){var o=n(this);if(typeof setTimeout=="function"){var a=this;setTimeout(function(){a.nativeFocus(),r(o)},0)}else this.nativeFocus(),r(o)}else this.nativeFocus()};HTMLElement.prototype.focus=i}}})();function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}function gs(e,t){return Object.keys(t).reduce((n,r)=>n.replace(`{${r}}`,t[r]||""),e||"")}var Vn=class{constructor(){var t;this.id="swup-announcer",this.style="position:absolute;top:0;left:0;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap;word-wrap:normal;width:1px;height:1px;",this.region=void 0,this.region=(t=this.getRegion())!=null?t:this.createRegion()}getRegion(){return document.getElementById(this.id)}createRegion(){let t=(function(n){let r=document.createElement("template");return r.innerHTML=n,r.content.children[0]})(`<p aria-live="assertive" aria-atomic="true" id="${this.id}" style="${this.style}"></p>`);return document.body.appendChild(t),t}announce(t,n=0){return new Promise(r=>{setTimeout(()=>{this.region.textContent===t&&(t=`${t}.`),this.region.textContent="",this.region.textContent=t,r()},n)})}};function vs(e){let t;if(t=typeof e=="string"?document.querySelector(e):e,!(t instanceof HTMLElement))return;let n=t.getAttribute("tabindex");t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}),n!==null&&t.setAttribute("tabindex",n)}var Lt=class extends ve{constructor(t={}){super(),this.name="SwupA11yPlugin",this.requires={swup:">=4"},this.defaults={headingSelector:"h1",respectReducedMotion:!0,autofocus:!1,announcements:{visit:"Navigated to: {title}",url:"New page at {url}"}},this.options=void 0,this.announcer=void 0,this.announcementDelay=100,this.rootSelector="body",this.handleAnchorScroll=(n,{hash:r})=>{let i=this.swup.getAnchorElement(r);i instanceof HTMLElement&&vs(i)},this.options=Fn({},this.defaults,t),this.announcer=new Vn}mount(){this.swup.hooks.create("content:announce"),this.swup.hooks.create("content:focus"),this.before("visit:start",this.prepareVisit),this.on("visit:start",this.markAsBusy),this.on("visit:end",this.unmarkAsBusy),this.on("visit:end",this.focusContent),this.on("visit:end",this.announceContent),this.on("scroll:anchor",this.handleAnchorScroll),this.before("visit:start",this.disableAnimations),this.before("link:self",this.disableAnimations),this.before("link:anchor",this.disableAnimations),this.swup.announce=this.announce.bind(this)}unmount(){this.swup.announce=void 0}async announce(t){await this.announcer.announce(t)}markAsBusy(){document.documentElement.setAttribute("aria-busy","true")}unmarkAsBusy(){document.documentElement.removeAttribute("aria-busy")}prepareVisit(t){t.a11y={announce:void 0,focus:this.rootSelector}}announceContent(t){this.swup.hooks.callSync("content:announce",t,void 0,n=>{n.a11y.announce===void 0&&(n.a11y.announce=this.getPageAnnouncement()),n.a11y.announce&&this.announcer.announce(n.a11y.announce,this.announcementDelay)})}focusContent(t){this.swup.hooks.callSync("content:focus",t,void 0,n=>{n.a11y.focus&&(this.options.autofocus&&(function(){let r=(function(){let i=document.querySelector("body [autofocus]");if(i&&!i.closest('[inert], [aria-disabled], [aria-hidden="true"]'))return i})();return!!r&&(r!==document.activeElement&&r.focus(),!0)})()===!0||vs(n.a11y.focus))})}getPageAnnouncement(){let{headingSelector:t,announcements:n}=this.options;return(function({headingSelector:r="h1",announcements:i={}}){var s,o;let a=document.documentElement.lang||"*",{href:l,url:u,pathname:c}=H.fromUrl(window.location.href),d=(s=(o=i[a])!=null?o:i["*"])!=null?s:i;if(typeof d!="object")return;let h=document.querySelector(r);h||console.warn(`SwupA11yPlugin: No main heading (${r}) found on new page`);let p=h?.getAttribute("aria-label")||h?.textContent||document.title||gs(d.url,{href:l,url:u,path:c});return gs(d.visit,{title:p,href:l,url:u,path:c})})({headingSelector:t,announcements:n})}disableAnimations(t){this.options.respectReducedMotion&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(t.animation.animate=!1,t.scroll.animate=!1)}};function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(this,arguments)}var Un=class{constructor({className:t,styleAttr:n,animationDuration:r,minValue:i,initialValue:s,trickleValue:o}={}){this.value=0,this.visible=!1,this.hiding=!1,this.className="progress-bar",this.styleAttr="data-progressbar-styles data-swup-theme",this.animationDuration=300,this.minValue=.1,this.initialValue=.25,this.trickleValue=.03,this.trickleInterval=void 0,this.styleElement=void 0,this.progressElement=void 0,this.trickle=()=>{let a=Math.random()*this.trickleValue;this.setValue(this.value+a)},t!==void 0&&(this.className=String(t)),n!==void 0&&(this.styleAttr=String(n)),r!==void 0&&(this.animationDuration=Number(r)),i!==void 0&&(this.minValue=Number(i)),s!==void 0&&(this.initialValue=Number(s)),o!==void 0&&(this.trickleValue=Number(o)),this.styleElement=this.createStyleElement(),this.progressElement=this.createProgressElement()}get defaultStyles(){return` .${this.className} { position: fixed; display: block; top: 0; left: 0; width: 100%; height: 3px; background-color: black; z-index: 9999; transition: transform ${this.animationDuration}ms ease-out, opacity ${this.animationDuration/2}ms ${this.animationDuration/2}ms ease-in; transform: translate3d(0, 0, 0) scaleX(var(--progress, 0)); transform-origin: 0; } `}show(){this.visible||(this.visible=!0,this.installStyleElement(),this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement(()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1}))}setValue(t){this.value=Math.min(1,Math.max(this.minValue,t)),this.refresh()}installStyleElement(){document.head.prepend(this.styleElement)}installProgressElement(){this.progressElement.style.setProperty("--progress",String(0)),this.progressElement.style.opacity="1",document.body.prepend(this.progressElement),this.progressElement.scrollTop=0,this.setValue(Math.random()*this.initialValue)}fadeProgressElement(t){this.progressElement.style.opacity="0",setTimeout(t,1.5*this.animationDuration)}uninstallProgressElement(){this.progressElement.remove()}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,this.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}refresh(){requestAnimationFrame(()=>{this.progressElement.style.setProperty("--progress",String(this.value))})}createStyleElement(){let t=document.createElement("style");return this.styleAttr.split(" ").forEach(n=>t.setAttribute(n,"")),t.textContent=this.defaultStyles,t}createProgressElement(){let t=document.createElement("div");return t.className=this.className,t.setAttribute("aria-hidden","true"),t}},Tt=class extends ve{constructor(t={}){super(),this.name="SwupProgressPlugin",this.defaults={className:"swup-progress-bar",delay:300,transition:300,minValue:.1,initialValue:.25,finishAnimation:!0},this.options=void 0,this.progressBar=void 0,this.showProgressBarTimeout=void 0,this.hideProgressBarTimeout=void 0,this.options=$n({},this.defaults,t);let{className:n,minValue:r,initialValue:i,transition:s}=this.options;this.progressBar=new Un({className:n,minValue:r,initialValue:i,animationDuration:s})}mount(){this.on("visit:start",this.startShowingProgress),this.on("page:view",this.stopShowingProgress)}startShowingProgress(){this.progressBar.setValue(0),this.showProgressBarAfterDelay()}stopShowingProgress(){this.progressBar.setValue(1),this.options.finishAnimation?this.finishAnimationAndHideProgressBar():this.hideProgressBar()}showProgressBar(){this.cancelHideProgressBarTimeout(),this.progressBar.show()}showProgressBarAfterDelay(){this.cancelShowProgressBarTimeout(),this.cancelHideProgressBarTimeout(),this.showProgressBarTimeout=window.setTimeout(this.showProgressBar.bind(this),this.options.delay)}hideProgressBar(){this.cancelShowProgressBarTimeout(),this.progressBar.hide()}finishAnimationAndHideProgressBar(){this.cancelShowProgressBarTimeout(),this.hideProgressBarTimeout=window.setTimeout(this.hideProgressBar.bind(this),this.options.transition)}cancelShowProgressBarTimeout(){window.clearTimeout(this.showProgressBarTimeout),delete this.showProgressBarTimeout}cancelHideProgressBarTimeout(){window.clearTimeout(this.hideProgressBarTimeout),delete this.hideProgressBarTimeout}};var ys=()=>{window.dispatchEvent(new Event("exdoc:loaded"))},Ju=(e,{page:t})=>{/<meta\s+http-equiv\s*=\s*["']refresh["']\s+content\s*=\s*["'][^"']*["']\s*\/?>/i.test(t.html)&&(e.abort(),window.location.reload())};window.addEventListener("DOMContentLoaded",ys);!C&&window.location.protocol!=="file:"&&new kt({animationSelector:!1,containers:["#main"],ignoreVisit:e=>{let t=e.split("#")[0];return t===window.location.pathname||t===window.location.pathname+".html"},linkSelector:'a[href]:not([href^="/"]):not([href^="http"])[href$=".html"]',hooks:{"page:load":Ju,"page:view":ys},plugins:[new Lt,new Tt({delay:500})]});})();/*! Bundled license information:lunr/lunr.js: (** * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 * Copyright (C) 2020 Oliver Nightingale * @license MIT *) (*! * lunr.utils * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Set * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.tokenizer * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Pipeline * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Vector * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.stemmer * Copyright (C) 2020 Oliver Nightingale * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt *) (*! * lunr.stopWordFilter * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.trimmer * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.TokenSet * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Index * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Builder * Copyright (C) 2020 Oliver Nightingale *)*/