Files
taco-blog/public/js/main.bundle.min.0fa2a78284c4ed567ca02f5c37008b7b0127c3081f48b033f1c537c24766b8d57da49e0316c193c94bfd77da998acb9863844e045800340b2303522672e1ac79.js
taco f7de33381d
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Build and Publish Docker Image / build (push) Successful in 21s
add basic thingies
2026-05-13 21:33:49 +00:00

15 lines
32 KiB
JavaScript

function scrollToTop(){const e=document.getElementById("scroll-to-top");window.scrollY>window.innerHeight*.5?(e.classList.remove("translate-y-4","opacity-0"),e.classList.add("translate-y-0","opacity-100")):(e.classList.remove("translate-y-0","opacity-100"),e.classList.add("translate-y-4","opacity-0"))}window.addEventListener("scroll",scrollToTop),window.addEventListener("load",scrollToTop),e=this,t=function(){"use strict";function N(e,t){var n,s=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,n)),s}function u(e){for(var t,n=1;n<arguments.length;n++)t=null!=arguments[n]?arguments[n]:{},n%2?N(Object(t),!0).forEach(function(n){C(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))});return e}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n,s=0;s<t.length;s++)n=t[s],n.enumerable=n.enumerable,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I(n.key),n)}function t(e,t,n){return t&&U(e.prototype,t),n&&U(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function de(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(0[0]!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(0[0]===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,o,s=g(e);return t?(o=g(this).constructor,n=Reflect.construct(s,arguments,o)):n=s.apply(this,arguments),de(this,n)}}function h(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):0[0]}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function k(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function I(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n,s=e[Symbol.toPrimitive];if(0[0]!==s){if(n=s.call(e,t||"default"),"object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===q(e)}R=1/0;function W(e){return e==null?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-R?"-0":t}(e)}function o(e){return"string"==typeof e}function j(e){return"number"==typeof e}function ve(e){return!0===e||!1===e||function(e){return T(e)&&null!==e}(e)&&"[object Boolean]"==q(e)}function T(e){return"object"===y(e)}function s(e){return e!=null}function f(e){return!e.trim().length}function q(e){return e==null?0[0]===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var ie=function(e){return"Missing ".concat(e," property in key")},X=function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")},z=Object.prototype.hasOwnProperty,fe=function(){function e(t){var s,o=this;n(this,e),this._keys=[],this._keyMap={},s=0,t.forEach(function(e){var t=H(e);o._keys.push(t),o._keyMap[t.id]=t,s+=t.weight}),this._keys.forEach(function(e){e.weight/=s})}return t(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function H(e){var t,n=null,s=null,i=null,a=1,c=null;if(o(e)||r(e))i=e,n=M(e),s=b(e);else{if(!z.call(e,"name"))throw new Error(ie("name"));if(t=e.name,i=t,z.call(e,"weight")&&(a=e.weight)<=0)throw new Error(X(t));n=M(t),s=b(t),c=e.getFn}return{path:n,id:s,weight:a,src:i,getFn:c}}function M(e){return r(e)?e:e.split(".")}function b(e){return r(e)?e.join("."):e}var me={useExtendedSearch:!1,getFn:function(e,t){var n=[],i=!1;return function e(t,a,c,l){if(s(t))if(a[c]){if(d=t[a[c]],!s(d))return;if(c===a.length-1&&(o(d)||j(d)||ve(d)))n.push(0[0]!==l?{v:W(d),i:l}:W(d));else if(r(d)){i=!0;for(var d,u=0,h=d.length;u<h;u+=1)e(d[u],a,c+1,u)}else a.length&&e(d,a,c+1,l)}else n.push(0[0]!==l?{v:t,i:l}:t)}(e,o(t)?t.split("."):t,0),i?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},e=u(u(u(u({},{isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),me),ue=/[^ ]+/g,v=function(){function i(){var t=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:{},s=t.getFn,a=0[0]===s?e.getFn:s,o=t.fieldNormWeight,r=0[0]===o?e.fieldNormWeight:o;n(this,i),this.norm=function(){var n=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:1,s=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:3,e=new Map,t=10**s;return{get:function(s){if(o=s.match(ue).length,e.has(o))return e.get(o);var o,a=1/o**(.5*n),i=parseFloat(Math.round(a*t)/t);return e.set(o,i),i},clear:function(){e.clear()}}}(r,3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return t(i,[{key:"setSources",value:function(){var e=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var t=this,e=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach(function(e,n){t._keysMap[e.id]=n})}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach(function(t,n){e._addString(t,n)}):this.docs.forEach(function(t,n){e._addObject(t,n)}),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"removeAll",value:function(e){for(t=e.length-1;t>=0;t-=1)this.records.splice(e[t],1);for(var t,n=0,s=this.records.length;n<s;n+=1)this.records[n].i=n}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(s(e)&&!f(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,i={i:t,$:{}};this.keys.forEach(function(t,a){if(l=t.getFn?t.getFn(e):n.getFn(e,t.path),s(l))if(r(l)){for(var c,l,h,m,p,u=[],d=0,g=l.length;d<g;d+=1)c=l[d],s(c)&&(o(c)?f(c)||(h={v:c,i:d,n:n.norm.get(c)},u.push(h)):o(c.v)&&!f(c.v)&&(m={v:c.v,i:c.i,n:n.norm.get(c.v)},u.push(m)));i.$[a]=u}else o(l)&&!f(l)&&(p={v:l,n:n.norm.get(l)},i.$[a]=p)}),this.records.push(i)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),i}();function L(t,n){var o=arguments.length>2&&0[0]!==arguments[2]?arguments[2]:{},i=o.getFn,r=0[0]===i?e.getFn:i,a=o.fieldNormWeight,c=0[0]===a?e.fieldNormWeight:a,s=new v({getFn:r,fieldNormWeight:c});return s.setKeys(t.map(H)),s.setSources(n),s.create(),s}c=32;function ce(t,n,s){var o,i,p,g,j,w,E,k,T,d=arguments.length>3&&0[0]!==arguments[3]?arguments[3]:{},M=d.location,$=0[0]===M?e.location:M,S=d.distance,N=0[0]===S?e.distance:S,R=d.threshold,U=0[0]===R?e.threshold:R,z=d.findAllMatches,V=0[0]===z?e.findAllMatches:z,I=d.minMatchCharLength,L=0[0]===I?e.minMatchCharLength:I,F=d.includeMatches,D=0[0]===F?e.includeMatches:F,H=d.ignoreLocation,W=0[0]===H?e.ignoreLocation:H;if(n.length>c)throw new Error("Pattern length exceeds max of ".concat(c,"."));for(var v,r=n.length,f=t.length,a=Math.max(0,Math.min($,f)),m=U,u=a,b=function(e,t){var s,n=e/r;return W?n:(s=Math.abs(a-t),N?n+s/N:s?1:n)},O=L>1||D,A=O?Array(f):[];(v=t.indexOf(n,u))>-1;)if(T=b(0,v),m=Math.min(T,m),u=v+r,O)for(w=0;w<r;)A[v+w]=1,w+=1;for(var u=-1,_=[],C=1,y=r+f,B=1<<r-1,l=0;l<r;l+=1){for(g=0,i=y;g<i;)b(l,a+i)<=m?g=i:y=i,i=Math.floor((y-g)/2+g);var y=i,P=Math.max(1,a-i+1),x=V?f:Math.min(a+i,f)+r,h=Array(x+2);h[x+1]=(1<<l)-1;for(o=x;o>=P;o-=1)if(p=o-1,k=s[t[p]],O&&(A[p]=+!!k),h[o]=(h[o+1]<<1|1)&k,l&&(h[o]|=(_[o+1]|_[o])<<1|1|_[o+1]),h[o]&B&&(C=b(l,p))<=m){if(m=C,(u=p)<=a)break;P=Math.max(1,2*a-u)}if(b(l+1,a)>m)break;_=h}return j={isMatch:u>=0,score:Math.max(.001,C)},O&&(E=function(){for(var i,s=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[],a=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:e.minMatchCharLength,o=[],t=-1,r=-1,n=0,c=s.length;n<c;n+=1)i=s[n],i&&-1===t?t=n:i||-1===t||((r=n-1)-t+1>=a&&o.push([t,r]),t=-1);return s[n-1]&&n-t>=a&&o.push([t,n-1]),o}(A,L),E.length?D&&(j.indices=E):j.isMatch=!1),j}function G(e){for(var s,n={},t=0,o=e.length;t<o;t+=1)s=e.charAt(t),n[s]=(n[s]||0)|1<<o-t-1;return n}var p=String.prototype.normalize?function(e){return e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")}:function(e){return e},B=function(){function s(t){var i,a,l,x=this,o=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},h=o.location,A=0[0]===h?e.location:h,u=o.threshold,E=0[0]===u?e.threshold:u,v=o.distance,F=0[0]===v?e.distance:v,m=o.includeMatches,S=0[0]===m?e.includeMatches:m,g=o.findAllMatches,k=0[0]===g?e.findAllMatches:g,d=o.minMatchCharLength,O=0[0]===d?e.minMatchCharLength:d,y=o.isCaseSensitive,_=0[0]===y?e.isCaseSensitive:y,w=o.ignoreDiacritics,j=0[0]===w?e.ignoreDiacritics:w,b=o.ignoreLocation,C=0[0]===b?e.ignoreLocation:b;if(n(this,s),this.options={location:A,threshold:E,distance:F,includeMatches:S,findAllMatches:k,minMatchCharLength:O,isCaseSensitive:_,ignoreDiacritics:j,ignoreLocation:C},t=_?t:t.toLowerCase(),t=j?p(t):t,this.pattern=t,this.chunks=[],this.pattern.length)if(a=function(e,t){x.chunks.push({pattern:e,alphabet:G(e),startIndex:t})},i=this.pattern.length,i>c){for(var r=0,f=i%c,M=i-f;r<M;)a(this.pattern.substr(r,c),r),r+=c;f&&(l=i-c,a(this.pattern.substr(l),l))}else a(this.pattern,0)}return t(s,[{key:"searchIn",value:function(e){var o=this.options,v=o.isCaseSensitive,b=o.ignoreDiacritics,r=o.includeMatches;if(e=v?e:e.toLowerCase(),e=b?p(e):e,this.pattern===e)return i={isMatch:!0,score:0},r&&(i.indices=[[0,e.length-1]]),i;var i,a,t=this.options,l=t.location,g=t.distance,f=t.threshold,d=t.findAllMatches,u=t.minMatchCharLength,m=t.ignoreLocation,s=[],c=0,n=!1;return this.chunks.forEach(function(t){var p=t.pattern,v=t.alphabet,b=t.startIndex,o=ce(e,p,v,{location:l+b,distance:g,threshold:f,findAllMatches:d,minMatchCharLength:u,includeMatches:r,ignoreLocation:m}),i=o.isMatch,j=o.score,a=o.indices;i&&(n=!0),c+=j,i&&a&&s.push.apply(s,h(a))}),a={isMatch:n,score:n?c/this.chunks.length:1},n&&r&&(a.indices=function(e){if(e.length<=1)return e;e.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]});for(var n,s,t=[e[0]],o=1,i=e.length;o<i;o+=1)n=t[t.length-1],s=e[o],s[0]<=n[1]+1?n[1]=Math.max(n[1],s[1]):t.push(s);return t}(s)),a}}]),s}(),i=function(){function e(t){n(this,e),this.pattern=t}return t(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return $(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return $(e,this.singleRegex)}}]),e}();function $(e,t){var n=e.match(t);return n?n[1]:null}var c,d,F,R,oe=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),s}(i),se=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),s}(i),J=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),s}(i),Z=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),s}(i),Q=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),s}(i),ae=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),s}(i),S=function(s){a(o,s);var i=l(o);function o(t){var d,s=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},r=s.location,O=0[0]===r?e.location:r,l=s.threshold,g=0[0]===l?e.threshold:l,u=s.distance,_=0[0]===u?e.distance:u,m=s.includeMatches,j=0[0]===m?e.includeMatches:m,p=s.findAllMatches,v=0[0]===p?e.findAllMatches:p,a=s.minMatchCharLength,b=0[0]===a?e.minMatchCharLength:a,f=s.isCaseSensitive,y=0[0]===f?e.isCaseSensitive:f,h=s.ignoreDiacritics,w=0[0]===h?e.ignoreDiacritics:h,c=s.ignoreLocation,x=0[0]===c?e.ignoreLocation:c;return n(this,o),(d=i.call(this,t))._bitapSearch=new B(t,{location:O,threshold:g,distance:_,includeMatches:j,findAllMatches:v,minMatchCharLength:b,isCaseSensitive:y,ignoreDiacritics:w,ignoreLocation:x}),d}return t(o,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),o}(i),Y=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){for(var t,o,n=0,s=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,s.push([t,n-1]);return o=!!s.length,{isMatch:o,score:o?0:1,indices:s}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),s}(i),x=[oe,Y,J,Z,ae,Q,se,S],K=x.length,ee=/ +(?=(?:[^"]*"[^"]*")*[^"]*$)/,te=new Set([S.type,Y.type]),ne=function(){function s(t){var o=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},a=o.isCaseSensitive,r=0[0]===a?e.isCaseSensitive:a,c=o.ignoreDiacritics,l=0[0]===c?e.ignoreDiacritics:c,d=o.includeMatches,w=0[0]===d?e.includeMatches:d,h=o.minMatchCharLength,v=0[0]===h?e.minMatchCharLength:h,m=o.ignoreLocation,y=0[0]===m?e.ignoreLocation:m,g=o.findAllMatches,b=0[0]===g?e.findAllMatches:g,i=o.location,j=0[0]===i?e.location:i,f=o.threshold,_=0[0]===f?e.threshold:f,u=o.distance,O=0[0]===u?e.distance:u;n(this,s),this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:l,includeMatches:w,minMatchCharLength:v,findAllMatches:b,ignoreLocation:y,location:j,threshold:_,distance:O},t=r?t:t.toLowerCase(),t=l?p(t):t,this.pattern=t,this.query=function(e){var t=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{};return e.split("|").map(function(e){for(var a,r,c,l,d=e.trim().split(ee).filter(function(e){return e&&!!e.trim()}),s=[],o=0,h=d.length;o<h;o+=1){for(var u=d[o],i=!1,n=-1;!i&&++n<K;)a=x[n],r=a.isMultiMatch(u),r&&(s.push(new a(r,t)),i=!0);if(!i)for(n=-1;++n<K;)if(c=x[n],l=c.isSingleMatch(u),l){s.push(new c(l,t));break}}return s})}(this.pattern,this.options)}return t(s,[{key:"searchIn",value:function(e){if(o=this.query,!o)return{isMatch:!1,score:1};var a=this.options,u=a.includeMatches,w=a.isCaseSensitive,b=a.ignoreDiacritics;e=w?e:e.toLowerCase(),e=b?p(e):e;for(var s,o,i,r,m,v,n=0,t=[],c=0,l=0,j=o.length;l<j;l+=1){i=o[l],t.length=0;for(n=0,s=0,m=i.length;s<m;s+=1){var f=i[s],d=f.search(e),y=d.isMatch,g=d.indices,_=d.score;if(!y){c=0,n=0,t.length=0;break}n+=1,c+=_,u&&(v=f.constructor.type,te.has(v)?t.push.apply(t,h(g)):t.push(g))}if(n)return r={isMatch:!0,score:c/n},u&&(r.indices=t),r}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),s}(),m=[];function A(){m.push.apply(m,arguments)}function V(e,t){for(var s,n=0,o=m.length;n<o;n+=1)if(s=m[n],s.condition(e,t))return new s(e,t);return new B(e,t)}var O="$and",re="$or",P="$path",le="$val",w=function(e){return!!e[O]||!!e[re]},D=function(e){return C({},O,Object.keys(e).map(function(t){return C({},t,e[t])}))};function he(e,t){var n=(arguments.length>2&&0[0]!==arguments[2]?arguments[2]:{}).auto,s=0[0]===n||n;return w(e)||(e=D(e)),function e(n){var a,c,d,u,i=Object.keys(n),l=function(e){return!!e[P]}(n);if(!l&&i.length>1&&!w(n))return e(D(n));if(function(e){return!r(e)&&T(e)&&!w(e)}(n)){if(a=l?n[P]:i[0],c=l?n[le]:n[a],!o(c))throw new Error(function(e){return"Invalid value for key ".concat(e)}(a));return d={keyId:b(a),pattern:c},s&&(d.searcher=V(c,t)),d}return u={children:[],operator:i[0]},i.forEach(function(t){var s=n[t];r(s)&&s.forEach(function(t){u.children.push(e(t))})}),u}(e)}function _(t,n){var s=n.ignoreFieldNorm,i=0[0]===s?e.ignoreFieldNorm:s,o=1;t.matches.forEach(function(e){var t=e.key,a=e.norm,n=e.score,s=t?t.weight:null;o*=(0===n&&s?Number.EPSILON:n)**((s||1)*(i?1:a))}),t.score=o}F=function(){function e(t){n(this,e),this.limit=t,this.heap=[]}return t(e,[{key:"size",get:function(){return this.heap.length}},{key:"shouldInsert",value:function(e){return this.size<this.limit||e<this.heap[0].score}},{key:"insert",value:function(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}},{key:"extractSorted",value:function(e){return this.heap.sort(e)}},{key:"_bubbleUp",value:function(e){for(var n,s,t=this.heap;e>0;){if(n=e-1>>1,t[e].score<=t[n].score)break;s=t[e],t[e]=t[n],t[n]=s,e=n}}},{key:"_sinkDown",value:function(e){var s,o,a,t=this.heap,i=t.length,n=e;do s=2*(e=n)+1,o=2*e+2,(s<i&&t[s].score>t[n].score&&(n=s),o<i&&t[o].score>t[n].score&&(n=o),n!==e)&&(a=t[e],t[e]=t[n],t[n]=a);while(n!==e)}}]),e}();function pe(e,t){var n=e.matches;t.matches=[],s(n)&&n.forEach(function(e){if(s(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}})}function ge(e,t){t.score=e.score}return d=function(){function i(t){var s=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:0[0];n(this,i),this.options=u(u({},e),s),this.options.useExtendedSearch,this._keyStore=new fe(this.options.keys),this.setCollection(t,o),this._lastQuery=null,this._lastSearcher=null}return t(i,[{key:"_getSearcher",value:function(e){if(this._lastQuery===e)return this._lastSearcher;var t=V(e,this.options);return this._lastQuery=e,this._lastSearcher=t,t}},{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=t||L(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){s(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var n,o=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:function(){return!1},s=[],t=[],e=0,i=this._docs.length;e<i;e+=1)o(this._docs[e],e)&&(s.push(this._docs[e]),t.push(e));if(t.length){for(n=t.length-1;n>=0;n-=1)this._docs.splice(t[n],1);this._myIndex.removeAll(t)}return s}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(t){var n,a,c=(arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{}).limit,s=0[0]===c?-1:c,i=this.options,d=i.includeMatches,u=i.includeScore,h=i.shouldSort,l=i.sortFn,r=i.ignoreFieldNorm;return j(s)&&s>0&&o(t)?(a=new F(s),o(this._docs[0])?this._searchStringList(t,{heap:a,ignoreFieldNorm:r}):this._searchObjectList(t,{heap:a,ignoreFieldNorm:r}),n=a.extractSorted(l)):(function(t,n){var s=n.ignoreFieldNorm,o=0[0]===s?e.ignoreFieldNorm:s;t.forEach(function(e){_(e,{ignoreFieldNorm:o})})}(n=o(t)?o(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t),{ignoreFieldNorm:r}),h&&n.sort(l),j(s)&&s>-1&&(n=n.slice(0,s))),function(t,n){var o=arguments.length>2&&0[0]!==arguments[2]?arguments[2]:{},i=o.includeMatches,r=0[0]===i?e.includeMatches:i,a=o.includeScore,c=0[0]===a?e.includeScore:a,s=[];return r&&s.push(pe),c&&s.push(ge),t.map(function(e){var t=e.idx,o={item:n[t],refIndex:t};return s.length&&s.forEach(function(t){t(e,o)}),o})}(n,this._docs,{includeMatches:d,includeScore:u})}},{key:"_searchStringList",value:function(e){var n=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},t=n.heap,i=n.ignoreFieldNorm,a=this._getSearcher(e),r=this._myIndex.records,o=t?null:[];return r.forEach(function(e){var r=e.v,l=e.i,d=e.n;if(s(r)){var n,c=a.searchIn(r),u=c.isMatch,h=c.score,m=c.indices;u&&(n={item:r,idx:l,matches:[{score:h,value:r,norm:d,indices:m}]},t?(_(n,{ignoreFieldNorm:i}),t.shouldInsert(n.score)&&t.insert(n)):o.push(n))}}),o}},{key:"_searchLogical",value:function(e){var n=this,i=he(e,this.options),a=function e(t,s,o){if(!t.children){var c,l=t.keyId,d=t.searcher,i=n._findMatches({key:n._keyStore.get(l),value:n._myIndex.getValueForItemAtKeyId(s,l),searcher:d});return i&&i.length?[{idx:o,item:s,matches:i}]:[]}for(var a=[],r=0,u=t.children.length;r<u;r+=1)if(c=e(t.children[r],s,o),c.length)a.push.apply(a,h(c));else if(t.operator===O)return[];return a},r=this._myIndex.records,t=new Map,o=[];return r.forEach(function(e){var c,r=e.$,n=e.i;s(r)&&(c=a(i,r,n),c.length&&(t.has(n)||(t.set(n,{idx:n,item:r,matches:[]}),o.push(t.get(n))),c.forEach(function(e){var s,o=e.matches;(s=t.get(n).matches).push.apply(s,h(o))})))}),o}},{key:"_searchObjectList",value:function(e){var a=this,n=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},t=n.heap,r=n.ignoreFieldNorm,c=this._getSearcher(e),o=this._myIndex,l=o.keys,d=o.records,i=t?null:[];return d.forEach(function(e){var n,o,d=e.$,u=e.i;s(d)&&(n=[],(l.forEach(function(e,t){n.push.apply(n,h(a._findMatches({key:e,value:d[t],searcher:c})))}),n.length)&&(o={idx:u,item:d,matches:n},t?(_(o,{ignoreFieldNorm:r}),t.shouldInsert(o.score)&&t.insert(o)):i.push(o)))}),i}},{key:"_findMatches",value:function(e){var i=e.key,t=e.value,a=e.searcher;if(!s(t))return[];if(n=[],r(t))t.forEach(function(e){var t=e.v,r=e.i,c=e.n;if(s(t)){var o=a.searchIn(t),l=o.isMatch,d=o.score,u=o.indices;l&&n.push({score:d,key:i,value:t,idx:r,norm:c,indices:u})}});else{var n,c=t.v,l=t.n,o=a.searchIn(c),d=o.isMatch,u=o.score,h=o.indices;d&&n.push({score:u,key:i,value:c,norm:l,indices:h})}return n}}]),i}(),d.version="7.2.0",d.createIndex=L,d.parseIndex=function(t){var s=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},o=s.getFn,a=0[0]===o?e.getFn:o,i=s.fieldNormWeight,r=0[0]===i?e.fieldNormWeight:i,c=t.keys,l=t.records,n=new v({getFn:a,fieldNormWeight:r});return n.setKeys(c),n.setIndexRecords(l),n},d.config=e,A(ne),d.use=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];n.forEach(function(e){return A(e)})},d},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t();var e,t,fuse,showButton=document.getElementById("search-button"),showButtonMobile=document.getElementById("search-button-mobile"),hideButton=document.getElementById("close-search-button"),wrapper=document.getElementById("search-wrapper"),modal=document.getElementById("search-modal"),input=document.getElementById("search-query"),output=document.getElementById("search-results"),first=output.firstChild,last=output.lastChild,searchVisible=!1,indexed=!1,hasResults=!1;showButton?showButton.addEventListener("click",displaySearch):null,showButtonMobile?showButtonMobile.addEventListener("click",displaySearch):null,hideButton.addEventListener("click",hideSearch),wrapper.addEventListener("click",hideSearch),modal.addEventListener("click",function(e){return e.stopPropagation(),e.stopImmediatePropagation(),!1}),document.addEventListener("keydown",function(e){if(e.key=="/"){const t=document.activeElement,n=t.tagName,s=n==="INPUT"||n==="TEXTAREA"||t.isContentEditable;!searchVisible&&!s&&(e.preventDefault(),displaySearch())}e.key=="Escape"&&hideSearch(),e.key=="ArrowDown"&&searchVisible&&hasResults&&(e.preventDefault(),document.activeElement==input?first.focus():document.activeElement==last?last.focus():document.activeElement.parentElement.nextSibling.firstElementChild.focus()),e.key=="ArrowUp"&&searchVisible&&hasResults&&(e.preventDefault(),document.activeElement==input?input.focus():document.activeElement==first?input.focus():document.activeElement.parentElement.previousSibling.firstElementChild.focus()),e.key=="Enter"&&searchVisible&&hasResults&&(e.preventDefault(),document.activeElement==input?first.focus():document.activeElement.click())}),input.onkeyup=function(){executeQuery(this.value)};function displaySearch(){indexed||buildIndex(),searchVisible||(document.body.style.overflow="hidden",wrapper.style.visibility="visible",input.focus(),searchVisible=!0)}function hideSearch(){searchVisible&&(document.body.style.overflow="visible",wrapper.style.visibility="hidden",input.value="",output.innerHTML="",document.activeElement.blur(),searchVisible=!1)}function fetchJSON(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(n.readyState===4&&n.status===200){var e=JSON.parse(n.responseText);t&&t(e)}},n.open("GET",e),n.send()}function buildIndex(){var e=wrapper.getAttribute("data-url"),e=e.replace(/\/?$/,"/");fetchJSON(e+"index.json",function(e){var t={shouldSort:!0,ignoreLocation:!0,threshold:0,includeMatches:!0,keys:[{name:"title",weight:.8},{name:"section",weight:.2},{name:"summary",weight:.6},{name:"content",weight:.4}]};fuse=new Fuse(e,t),indexed=!0})}function executeQuery(e){let n=fuse.search(e),t="";n.length>0?(n.forEach(function(e){var o,i,a=e.item.summary,s=document.createElement("div");s.innerHTML=a,e.item.summary=s.textContent||s.innerText||"",o=e.item.externalUrl?e.item.title+'<span class="text-xs ml-2 align-center cursor-default text-neutral-400 dark:text-neutral-500">'+e.item.externalUrl+"</span>":e.item.title,i=e.item.externalUrl?'target="_blank" rel="noopener" href="'+e.item.externalUrl+'"':'href="'+e.item.permalink+'"',t=t+`<li class="mb-2">
<a class="flex items-center px-3 py-2 rounded-md appearance-none bg-neutral-100 dark:bg-neutral-700 focus:bg-primary-100 hover:bg-primary-100 dark:hover:bg-primary-900 dark:focus:bg-primary-900 focus:outline-dotted focus:outline-transparent focus:outline-2"
${i} tabindex="0">
<div class="grow">
<div class="-mb-1 text-lg font-bold">
${o}
</div>
<div class="text-sm text-neutral-500 dark:text-neutral-400">${e.item.section}<span class="px-2 text-primary-500">&middot;</span>${e.item.date?e.item.date:""}</span></div>
<div class="text-sm italic">${e.item.summary}</div>
</div>
<div class="ml-2 ltr:block rtl:hidden text-neutral-500">&rarr;</div>
<div class="mr-2 ltr:hidden rtl:block text-neutral-500">&larr;</div>
</a>
</li>`}),hasResults=!0):(t="",hasResults=!1),output.innerHTML=t,n.length>0&&(first=output.firstChild.firstElementChild,last=output.lastChild.firstElementChild)}document.getElementById("katex-render")&&document.getElementById("katex-render").addEventListener("load",()=>{renderMathInElement(document.body)}),function(){"use strict";var e=[];window.addEventListener("beforeprint",function(){for(var n=document.querySelectorAll("details:not([open])"),t=0;t<n.length;t++)n[t].open=!0,e.push(n[t])}),window.addEventListener("afterprint",function(){for(var t=0;t<e.length;t++)e[t].open=!1;e=[]})}(),function(){const e=document.querySelectorAll(".email-link");e.forEach(e=>{let t=atob(e.getAttribute("data-email"));const s=e.getAttribute("data-subject");let n=t.startsWith("mailto:")?t:"mailto:"+t;s&&(n+=(n.includes("?")?"&":"?")+"subject="+encodeURIComponent(s)),e.href=n})}()