From ff55d551ea432c396c87e5f54b41960ae59b0047 Mon Sep 17 00:00:00 2001 From: Ben Christel Date: Sun, 26 May 2024 15:42:17 -0700 Subject: [PATCH] Build for deployment --- .../assets/{index.3c080643.js => index.7df79927.js} | 13 ++++++++++--- dist/index.html | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) rename dist/assets/{index.3c080643.js => index.7df79927.js} (96%) diff --git a/dist/assets/index.3c080643.js b/dist/assets/index.7df79927.js similarity index 96% rename from dist/assets/index.3c080643.js rename to dist/assets/index.7df79927.js index 30d9c42..4e2f782 100644 --- a/dist/assets/index.3c080643.js +++ b/dist/assets/index.7df79927.js @@ -1,6 +1,6 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const c of n.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function o(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerpolicy&&(n.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?n.credentials="include":i.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(i){if(i.ep)return;i.ep=!0;const n=o(i);fetch(i.href,n)}})();var V,u,kt,E,nt,z={},bt=[],Bt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(t,e){for(var o in e)t[o]=e[o];return t}function wt(t){var e=t.parentNode;e&&e.removeChild(t)}function l(t,e,o){var r,i,n,c={};for(n in e)n=="key"?r=e[n]:n=="ref"?i=e[n]:c[n]=e[n];if(arguments.length>2&&(c.children=arguments.length>3?V.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)c[n]===void 0&&(c[n]=t.defaultProps[n]);return M(t,c,r,i,null)}function M(t,e,o,r,i){var n={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++kt:i};return i==null&&u.vnode!=null&&u.vnode(n),n}function L(t){return t.children}function T(t,e){this.props=t,this.context=e}function P(t,e){if(e==null)return t.__?P(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e0?M(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null){if(a.__=o,a.__b=o.__b+1,(h=k[s])===null||h&&a.key==h.key&&a.type===h.type)k[s]=void 0;else for(f=0;f=o.__.length&&o.__.push({__V:N}),o.__[t]}function Et(t){return O=1,Wt(Ht,t)}function Wt(t,e,o){var r=tt(q++,2);if(r.t=t,!r.__c&&(r.__=[o?o(e):Ht(void 0,e),function(n){var c=r.__N?r.__N[0]:r.__[0],_=r.t(c,n);c!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=y,!y.u)){y.u=!0;var i=y.shouldComponentUpdate;y.shouldComponentUpdate=function(n,c,_){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(s){return s.__c});if(m.every(function(s){return!s.__N}))return!i||i.call(this,n,c,_);var d=!1;return m.forEach(function(s){if(s.__N){var f=s.__[0];s.__=s.__N,s.__N=void 0,f!==s.__[0]&&(d=!0)}}),!!d&&(!i||i.call(this,n,c,_))}}return r.__N||r.__}function Gt(t,e){var o=tt(q++,3);!u.__s&&Dt(o.__H,e)&&(o.__=t,o.i=e,y.__H.__h.push(o))}function It(t){return O=5,Kt(function(){return{current:t}},[])}function Kt(t,e){var o=tt(q++,7);return Dt(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function Zt(){for(var t;t=Ft.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach($),t.__H.__h.forEach(K),t.__H.__h=[]}catch(e){t.__H.__h=[],u.__e(e,t.__v)}}u.__b=function(t){typeof t.type!="function"||t.o||t.type===L?t.o||(t.o=t.__&&t.__.o?t.__.o:""):t.o=(t.__&&t.__.o?t.__.o:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),y=null,lt&<(t)},u.__r=function(t){ut&&ut(t),q=0;var e=(y=t.__c).__H;e&&(W===y?(e.__h=[],y.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=N,o.__N=o.i=void 0})):(e.__h.forEach($),e.__h.forEach(K),e.__h=[])),W=y},u.diffed=function(t){ht&&ht(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ft.push(e)!==1&&at===u.requestAnimationFrame||((at=u.requestAnimationFrame)||Xt)(Zt)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==N&&(o.__=o.__V),o.i=void 0,o.__V=N})),W=y=null},u.__c=function(t,e){e.some(function(o){try{o.__h.forEach($),o.__h=o.__h.filter(function(r){return!r.__||K(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],u.__e(r,o.__v)}}),pt&&pt(t,e)},u.unmount=function(t){_t&&_t(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(r){try{$(r)}catch(i){e=i}}),o.__H=void 0,e&&u.__e(e,o.__v))};var mt=typeof requestAnimationFrame=="function";function Xt(t){var e,o=function(){clearTimeout(r),mt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(o,100);mt&&(e=requestAnimationFrame(o))}function $(t){var e=y,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),y=e}function K(t){var e=y;t.__c=t.__(),y=e}function Dt(t,e){return!t||t.length!==e.length||e.some(function(o,r){return o!==t[r]})}function Ht(t,e){return typeof e=="function"?e(t):e}function Qt({link:t}){return l("li",{class:"directory-link"},l("a",{href:t.destination},t.text))}function Yt({category:t}){const{title:e,entries:o,subCategories:r}=t,i=o.map(dt);return l("section",{class:"category"},l("h2",null,e),l("div",{class:"columns "+Jt(te(t))},i.length>0&&l("section",null,l("ul",null,i)),r.map(({title:n,entries:c})=>l("section",null,l("h3",null,n),l("ul",null,c.map(dt))))))}function Jt(t){switch(!0){case t>=12:return"columns-3";case t>=6:return"columns-2";default:return"columns-1"}}function dt(t){return l(Qt,{link:t})}function te(t){return t.entries.length+t.subCategories.map(({entries:e})=>e.length).reduce(ee,0)}function ee(t,e){return t+e}function Mt(t){return l("button",{class:"raised-button",...t})}function oe(t){const[e,o]=Et(!1),r=It(null);return Gt(()=>{if(!e)return;function i(){o(!1)}const n=r.current;return n==null||n.addEventListener("close",i),n==null||n.showModal(),()=>n==null?void 0:n.removeEventListener("close",i)},[e]),l("div",{class:"dev-info-pane-opener"},l(Mt,{onClick:()=>o(!0)},"Show Developer Info"),e&&l("dialog",{ref:r},t.children))}function ne(t){return l("div",{class:"dev-info-pane"},l("label",{for:"leechblock-config"},"LeechBlock Config"),l("textarea",{id:"leechblock-config"},`* +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const c of n.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function o(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerpolicy&&(n.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?n.credentials="include":i.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(i){if(i.ep)return;i.ep=!0;const n=o(i);fetch(i.href,n)}})();var V,u,kt,E,nt,z={},bt=[],Bt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(t,e){for(var o in e)t[o]=e[o];return t}function wt(t){var e=t.parentNode;e&&e.removeChild(t)}function l(t,e,o){var r,i,n,c={};for(n in e)n=="key"?r=e[n]:n=="ref"?i=e[n]:c[n]=e[n];if(arguments.length>2&&(c.children=arguments.length>3?V.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)c[n]===void 0&&(c[n]=t.defaultProps[n]);return M(t,c,r,i,null)}function M(t,e,o,r,i){var n={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++kt:i};return i==null&&u.vnode!=null&&u.vnode(n),n}function L(t){return t.children}function T(t,e){this.props=t,this.context=e}function P(t,e){if(e==null)return t.__?P(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e0?M(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null){if(a.__=o,a.__b=o.__b+1,(h=k[s])===null||h&&a.key==h.key&&a.type===h.type)k[s]=void 0;else for(f=0;f=o.__.length&&o.__.push({__V:N}),o.__[t]}function Et(t){return O=1,Wt(Ht,t)}function Wt(t,e,o){var r=tt(q++,2);if(r.t=t,!r.__c&&(r.__=[o?o(e):Ht(void 0,e),function(n){var c=r.__N?r.__N[0]:r.__[0],_=r.t(c,n);c!==_&&(r.__N=[_,r.__[1]],r.__c.setState({}))}],r.__c=y,!y.u)){y.u=!0;var i=y.shouldComponentUpdate;y.shouldComponentUpdate=function(n,c,_){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(s){return s.__c});if(m.every(function(s){return!s.__N}))return!i||i.call(this,n,c,_);var d=!1;return m.forEach(function(s){if(s.__N){var f=s.__[0];s.__=s.__N,s.__N=void 0,f!==s.__[0]&&(d=!0)}}),!!d&&(!i||i.call(this,n,c,_))}}return r.__N||r.__}function Gt(t,e){var o=tt(q++,3);!u.__s&&Dt(o.__H,e)&&(o.__=t,o.i=e,y.__H.__h.push(o))}function It(t){return O=5,Kt(function(){return{current:t}},[])}function Kt(t,e){var o=tt(q++,7);return Dt(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function Zt(){for(var t;t=Ft.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(j),t.__H.__h.forEach(K),t.__H.__h=[]}catch(e){t.__H.__h=[],u.__e(e,t.__v)}}u.__b=function(t){typeof t.type!="function"||t.o||t.type===L?t.o||(t.o=t.__&&t.__.o?t.__.o:""):t.o=(t.__&&t.__.o?t.__.o:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),y=null,lt&<(t)},u.__r=function(t){ut&&ut(t),q=0;var e=(y=t.__c).__H;e&&(W===y?(e.__h=[],y.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=N,o.__N=o.i=void 0})):(e.__h.forEach(j),e.__h.forEach(K),e.__h=[])),W=y},u.diffed=function(t){ht&&ht(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ft.push(e)!==1&&at===u.requestAnimationFrame||((at=u.requestAnimationFrame)||Xt)(Zt)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==N&&(o.__=o.__V),o.i=void 0,o.__V=N})),W=y=null},u.__c=function(t,e){e.some(function(o){try{o.__h.forEach(j),o.__h=o.__h.filter(function(r){return!r.__||K(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],u.__e(r,o.__v)}}),pt&&pt(t,e)},u.unmount=function(t){_t&&_t(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(r){try{j(r)}catch(i){e=i}}),o.__H=void 0,e&&u.__e(e,o.__v))};var mt=typeof requestAnimationFrame=="function";function Xt(t){var e,o=function(){clearTimeout(r),mt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(o,100);mt&&(e=requestAnimationFrame(o))}function j(t){var e=y,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),y=e}function K(t){var e=y;t.__c=t.__(),y=e}function Dt(t,e){return!t||t.length!==e.length||e.some(function(o,r){return o!==t[r]})}function Ht(t,e){return typeof e=="function"?e(t):e}function Qt({link:t}){return l("li",{class:"directory-link"},l("a",{href:t.destination},t.text))}function Yt({category:t}){const{title:e,entries:o,subCategories:r}=t,i=o.map(dt);return l("section",{class:"category"},l("h2",null,e),l("div",{class:"columns "+Jt(te(t))},i.length>0&&l("section",null,l("ul",null,i)),r.map(({title:n,entries:c})=>l("section",null,l("h3",null,n),l("ul",null,c.map(dt))))))}function Jt(t){switch(!0){case t>=12:return"columns-3";case t>=6:return"columns-2";default:return"columns-1"}}function dt(t){return l(Qt,{link:t})}function te(t){return t.entries.length+t.subCategories.map(({entries:e})=>e.length).reduce(ee,0)}function ee(t,e){return t+e}function Mt(t){return l("button",{class:"raised-button",...t})}function oe(t){const[e,o]=Et(!1),r=It(null);return Gt(()=>{if(!e)return;function i(){o(!1)}const n=r.current;return n==null||n.addEventListener("close",i),n==null||n.showModal(),()=>n==null?void 0:n.removeEventListener("close",i)},[e]),l("div",{class:"dev-info-pane-opener"},l(Mt,{onClick:()=>o(!0)},"Show Developer Info"),e&&l("dialog",{ref:r},t.children))}function ne(t){return l("div",{class:"dev-info-pane"},l("label",{for:"leechblock-config"},"LeechBlock Config"),l("textarea",{id:"leechblock-config"},`* `,t.leechblockAllowPatterns.map(e=>"+"+e).join(` -`)))}function re(t){const{config:e,query:o,onQuery:r,onSearchSubmitted:i}=t;return l(L,null,l("nav",{class:"menu"},e.menu.map((n,c)=>l("a",{href:n.destination,key:c},n.text))),l("div",{class:"podium"},l("div",{class:"omnisearch"},l("input",{type:"search",placeholder:"Search",autoFocus:!0,value:o,onKeyPress:n=>{n.key==="Enter"&&i(0)},onInput:n=>r(n.currentTarget.value)}),l("div",{class:"search-providers"},e.searchProviders.map((n,c)=>l(Mt,{key:c,onClick:()=>i(c)},n.name)))),l("article",null,e.categories.map(n=>l(Yt,{category:n}))),l("footer",null,l("hr",null),l("p",null,"Bastion is maintained by"," ",l("a",{href:"https://github.com/benchristel"},"Ben Christel"),"."),l("p",null,"The image that appears at the top of each page is"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05/49396214307"},"619 | Elizabeth Terry | Untitled Double Landscape | Watercolor | 20x22.25"),'" by'," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05"},"theartleaguegallery"),", and is marked with"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://creativecommons.org/publicdomain/mark/1.0/?ref=openverse"},"Public Domain Mark 1.0"),"."),l("p",null,"Theme inspired by"," ",l("a",{href:"https://www.palemoon.org/"},"The Pale Moon Browser"),"."),l(oe,null,l(ne,{leechblockAllowPatterns:e.leechblockAllowPatterns})))))}const Z=Symbol(),X=Symbol(),Q=Symbol(),j=Symbol();function b(t,e){function o(...r){if(r.length>=t.length)return t(...r);{const i=(...n)=>o(...r,...n);return i[Z]=t,i[X]=o,i[Q]=r,i[j]=o[j],i}}return o[Z]=t,o[X]=o,o[Q]=[],o[j]=e||ie(t),o}function G(t){return t[Z]}function se(t){return t[X]}function Y(t){return t[Q]||[]}function ie(t){return t[j]||t.name}class ce extends Error{constructor(e){super("Expectation failed"),this.expectArgs=e}}const ae=b(function(t,e){return t(e)},"which"),S=b(function(t,e){var o,r;if(le(t))return t(e);if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((i,n)=>S(t[n],e[n]));if(t instanceof Function&&e instanceof Function)return G(t)&&G(t)===G(e)?S(Y(t),Y(e)):t===e;if(t instanceof Date&&e instanceof Date)return t.toISOString()===e.toISOString();if(t instanceof Set&&e instanceof Set)return t.size===e.size&&[...t.values()].every(i=>e.has(i));if(t instanceof Error&&e instanceof Error)return t.message===e.message&&t.__proto__.constructor===e.__proto__.constructor;if(ft(t)&&ft(e)){const i=Object.keys(t),n=Object.keys(e);return i.length===n.length&&i.every(c=>S(t[c],e[c]))&&((o=t.__proto__)==null?void 0:o.constructor)===((r=e.__proto__)==null?void 0:r.constructor)}return t===e},"equals");b(function(t,e){return t===e},"is");b(function(t,e,...o){return!t(e,...o)},"not");b(function(t){return/^\s*$/.test(t)},"isBlank");function ft(t){return!!t&&typeof t=="object"}function le(t){return t instanceof Function&&se(t)===ae&&Y(t).length===1}b(function(e,o){return o.slice(0,e.length)===e?o.slice(e.length):o});b(function(e,o){return o instanceof ce&&S(e,o.expectArgs)});Object.freeze({test:{subject:"a thing",scenario:"does something",fn(){}},error:void 0,instrumentLog:[]});function ue(t){return t.replace(/^[^:]+:\/\//,"").replace(/^www\./,"").replace(/\/$/,"")}function Tt(t){const[e,o,r]=he(t);return{link:{text:e,destination:o},keywords:r}}function he(t){const e=t.indexOf("|");let o,r;e===-1?(o=void 0,r=t):(o=t.slice(0,e).trim(),r=t.slice(e+1).trim());const[i,...n]=r.split(/\s+/);return[o!=null?o:ue(i),i,n]}function Nt(t){const e=t==null?void 0:t.trim();return e?e.split(/\s+/):[]}function $t(t){return Tt(t).link}const I=(t,...e)=>e.reduce((o,r)=>r(o),t);function pe(t){return t||[]}function F(t){return e=>e.map(t)}function gt(t){return e=>e.map(t).reduce(me,[])}function _e(t){const e=[...t].sort();return e.filter((o,r)=>o!==e[r-1])}function me(t,e){return t.concat(e)}function de(t){const e=fe(t.menu),o=ye(t.categories),r=ge(t.searchProviders),i=ke(e,r,o,t.customLeechblockAllowPatterns);return{menu:e,searchProviders:r,categories:o,leechblockAllowPatterns:i}}function fe(t){return et(t).map($t)}function ge(t){return et(t).map($t).map(e=>({name:e.text,searchUrlFormat:e.destination}))}function ye(t){return(t!=null?t:[]).map(ve)}function ke(t,e,o,r){const i=[...t,...I(pe(o),gt(c=>[c,...c.subCategories]),gt(c=>c.entries),F(c=>c.link))],n=[...I(i,F(c=>c.destination),F(zt)),...I(e,F(c=>c.searchUrlFormat),F(Pe)),...we(r)];return _e([...n,...be(n)])}function be(t){return t.filter(Se).map(zt).filter(Le).map(e=>"*."+e)}function we(t){var e;return(e=t==null?void 0:t.trim().split(/\s+/))!=null?e:[]}function ve(t){var o;const e=Nt(t.keywords);return{title:t.title,entries:jt(t.entries,e),subCategories:((o=t.subCategories)!=null?o:[]).map(Ce(e))}}const Ce=b((t,e)=>({title:e.title,entries:jt(e.entries,t.concat(Nt(e.keywords)))}),"parseLeafCategory");function jt(t,e=[]){return et(t).map(Tt).map(o=>({...o,keywords:o.keywords.concat(e)}))}function et(t){return t?t.split(` +`)))}function re(t){const{config:e,query:o,onQuery:r,onSearchSubmitted:i}=t;return l(L,null,l("nav",{class:"menu"},e.menu.map((n,c)=>l("a",{href:n.destination,key:c},n.text))),l("div",{class:"podium"},l("div",{class:"omnisearch"},l("input",{type:"search",placeholder:"Search",autoFocus:!0,value:o,onKeyPress:n=>{n.key==="Enter"&&i(0)},onInput:n=>r(n.currentTarget.value)}),l("div",{class:"search-providers"},e.searchProviders.map((n,c)=>l(Mt,{key:c,onClick:()=>i(c)},n.name)))),l("article",null,e.categories.map(n=>l(Yt,{category:n}))),l("footer",null,l("hr",null),l("p",null,"Bastion is maintained by"," ",l("a",{href:"https://github.com/benchristel"},"Ben Christel"),"."),l("p",null,"The image that appears at the top of each page is"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05/49396214307"},"619 | Elizabeth Terry | Untitled Double Landscape | Watercolor | 20x22.25"),'" by'," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.flickr.com/photos/23730371@N05"},"theartleaguegallery"),", and is marked with"," ",l("a",{target:"_blank",rel:"noopener noreferrer",href:"https://creativecommons.org/publicdomain/mark/1.0/?ref=openverse"},"Public Domain Mark 1.0"),"."),l("p",null,"Theme inspired by"," ",l("a",{href:"https://www.palemoon.org/"},"The Pale Moon Browser"),"."),l(oe,null,l(ne,{leechblockAllowPatterns:e.leechblockAllowPatterns})))))}const Z=Symbol(),X=Symbol(),Q=Symbol(),$=Symbol();function b(t,e){function o(...r){if(r.length>=t.length)return t(...r);{const i=(...n)=>o(...r,...n);return i[Z]=t,i[X]=o,i[Q]=r,i[$]=o[$],i}}return o[Z]=t,o[X]=o,o[Q]=[],o[$]=e||ie(t),o}function G(t){return t[Z]}function se(t){return t[X]}function Y(t){return t[Q]||[]}function ie(t){return t[$]||t.name}class ce extends Error{constructor(e){super("Expectation failed"),this.expectArgs=e}}const ae=b(function(t,e){return t(e)},"which"),S=b(function(t,e){var o,r;if(le(t))return t(e);if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every((i,n)=>S(t[n],e[n]));if(t instanceof Function&&e instanceof Function)return G(t)&&G(t)===G(e)?S(Y(t),Y(e)):t===e;if(t instanceof Date&&e instanceof Date)return t.toISOString()===e.toISOString();if(t instanceof Set&&e instanceof Set)return t.size===e.size&&[...t.values()].every(i=>e.has(i));if(t instanceof Error&&e instanceof Error)return t.message===e.message&&t.__proto__.constructor===e.__proto__.constructor;if(ft(t)&&ft(e)){const i=Object.keys(t),n=Object.keys(e);return i.length===n.length&&i.every(c=>S(t[c],e[c]))&&((o=t.__proto__)==null?void 0:o.constructor)===((r=e.__proto__)==null?void 0:r.constructor)}return t===e},"equals");b(function(t,e){return t===e},"is");b(function(t,e,...o){return!t(e,...o)},"not");b(function(t){return/^\s*$/.test(t)},"isBlank");function ft(t){return!!t&&typeof t=="object"}function le(t){return t instanceof Function&&se(t)===ae&&Y(t).length===1}b(function(e,o){return o.slice(0,e.length)===e?o.slice(e.length):o});b(function(e,o){return o instanceof ce&&S(e,o.expectArgs)});Object.freeze({test:{subject:"a thing",scenario:"does something",fn(){}},error:void 0,instrumentLog:[]});function ue(t){return t.replace(/^[^:]+:\/\//,"").replace(/^www\./,"").replace(/\/$/,"")}function Tt(t){const[e,o,r]=he(t);return{link:{text:e,destination:o},keywords:r}}function he(t){const e=t.indexOf("|");let o,r;e===-1?(o=void 0,r=t):(o=t.slice(0,e).trim(),r=t.slice(e+1).trim());const[i,...n]=r.split(/\s+/);return[o!=null?o:ue(i),i,n]}function Nt(t){const e=t==null?void 0:t.trim();return e?e.split(/\s+/):[]}function jt(t){return Tt(t).link}const I=(t,...e)=>e.reduce((o,r)=>r(o),t);function pe(t){return t||[]}function F(t){return e=>e.map(t)}function gt(t){return e=>e.map(t).reduce(me,[])}function _e(t){const e=[...t].sort();return e.filter((o,r)=>o!==e[r-1])}function me(t,e){return t.concat(e)}function de(t){const e=fe(t.menu),o=ye(t.categories),r=ge(t.searchProviders),i=ke(e,r,o,t.customLeechblockAllowPatterns);return{menu:e,searchProviders:r,categories:o,leechblockAllowPatterns:i}}function fe(t){return et(t).map(jt)}function ge(t){return et(t).map(jt).map(e=>({name:e.text,searchUrlFormat:e.destination}))}function ye(t){return(t!=null?t:[]).map(ve)}function ke(t,e,o,r){const i=[...t,...I(pe(o),gt(c=>[c,...c.subCategories]),gt(c=>c.entries),F(c=>c.link))],n=[...I(i,F(c=>c.destination),F(zt)),...I(e,F(c=>c.searchUrlFormat),F(Pe)),...we(r)];return _e([...n,...be(n)])}function be(t){return t.filter(Se).map(zt).filter(Le).map(e=>"*."+e)}function we(t){var e;return(e=t==null?void 0:t.trim().split(/\s+/))!=null?e:[]}function ve(t){var o;const e=Nt(t.keywords);return{title:t.title,entries:$t(t.entries,e),subCategories:((o=t.subCategories)!=null?o:[]).map(Ce(e))}}const Ce=b((t,e)=>({title:e.title,entries:$t(e.entries,t.concat(Nt(e.keywords)))}),"parseLeafCategory");function $t(t,e=[]){return et(t).map(Tt).map(o=>({...o,keywords:o.keywords.concat(e)}))}function et(t){return t?t.split(` `).map(xe).filter(Boolean):[]}function xe(t){return t.trim()}function zt(t){return Ae(()=>new URL(t).hostname,()=>t.split("/")[0])}function Se(t){try{const e=/^https?:\/\//.test(t)?t:"https://"+t;return new URL(e).pathname==="/"}catch{return!0}}function Pe(t){const e=new URL(t),o=e.pathname==="/"?"":e.pathname;return e.hostname+o}function Le(t){return t.split(".").length===2}function Ae(t,e){try{return t()}catch{return e()}}const Fe={menu:` TV | https://benchristel.github.io/tv Recipes | https://benchristel.github.io/recipes @@ -64,6 +64,9 @@ `},{title:"Web Programming",keywords:"web programming",entries:` NPM | https://npmjs.com node package manager javascript MDN | https://developer.mozilla.com network html css javascript js + https://nodejs.org + https://yarnpkg.com + https://pnpm.io https://eslint.org https://cssreference.io https://css-tricks.com @@ -91,6 +94,7 @@ https://codemirror.net https://eloquentjavascript.net https://uxdesign.cc + https://jsdelivr.com `},{title:"Domain Registrars",entries:` https://namecheap.com https://squarespace.com @@ -103,6 +107,8 @@ supabase.com | https://supabase.com digitalocean.com | https://digitalocean.com https://hub.docker.com + https://ipfs.tech + https://pinata.cloud `},{title:"Help",keywords:"help",entries:` stackoverflow.com | https://stackoverflow.com exercism.org | https://exercism.org @@ -208,6 +214,7 @@ https://flickr.com https://cliparts.co https://search.creativecommons.org/ + https://openverse.org Wikimedia Commons | https://commons.wikimedia.org Pattern Monster SVGs | https://pattern.monster heropatterns.com SVGs | https://heropatterns.com @@ -316,4 +323,4 @@ http://www.livingneighborhoods.org https://ytoo.org/ U.S. Bureau of Labor Statistics Database | data.bls.gov - `}]};function Ee(t){return{...t,categories:t.categories.map(e=>({...e,subCategories:e.subCategories.map(o=>({...o,entries:o.entries.map(r=>r.link)})),entries:e.entries.map(o=>o.link)}))}}function De(t,e){return e.filter(He(t)).map(Me(t))}const He=b((t,e)=>e.entries.some(R(t))||e.subCategories.some(Ut(t)),"categoryMatches"),Me=b((t,e)=>({...e,entries:e.entries.filter(R(t)),subCategories:e.subCategories.filter(Ut(t)).map(Te(t))})),Ut=b((t,e)=>e.entries.some(R(t))),Te=b((t,e)=>({...e,entries:e.entries.filter(R(t))})),R=b((t,e)=>Ne(t).every(o=>e.link.destination.toLowerCase().includes(o)||e.link.text.toLowerCase().includes(o)||e.keywords.some(r=>r.toLowerCase().includes(o))),"entryMatches");function Ne(t){return t.toLowerCase().split(/\s+/)}function $e(){const[t,e]=Et(""),o=de(Fe),r={...o,categories:De(t,o.categories)};return l(re,{config:Ee(r),query:t,onQuery:e,onSearchSubmitted:i=>window.open(o.searchProviders[i].searchUrlFormat.replace("%s",t),"_self")})}b((t,e)=>S(new Set(t),new Set(e)),"isSameSetAs");b((t,e)=>{for(let o in t)if(!(o in e)||!S(t[o],e[o]))return!1;return!0},"hasProperties");var yt;(t=>{function e({title:o="",entries:r=[],subCategories:i=[]}){return{title:o,entries:r,subCategories:i}}t.category=e})(yt||(yt={}));Rt(l($e,null),document.getElementById("preact-root")); + `}]};function Ee(t){return{...t,categories:t.categories.map(e=>({...e,subCategories:e.subCategories.map(o=>({...o,entries:o.entries.map(r=>r.link)})),entries:e.entries.map(o=>o.link)}))}}function De(t,e){return e.filter(He(t)).map(Me(t))}const He=b((t,e)=>e.entries.some(R(t))||e.subCategories.some(Ut(t)),"categoryMatches"),Me=b((t,e)=>({...e,entries:e.entries.filter(R(t)),subCategories:e.subCategories.filter(Ut(t)).map(Te(t))})),Ut=b((t,e)=>e.entries.some(R(t))),Te=b((t,e)=>({...e,entries:e.entries.filter(R(t))})),R=b((t,e)=>Ne(t).every(o=>e.link.destination.toLowerCase().includes(o)||e.link.text.toLowerCase().includes(o)||e.keywords.some(r=>r.toLowerCase().includes(o))),"entryMatches");function Ne(t){return t.toLowerCase().split(/\s+/)}function je(){const[t,e]=Et(""),o=de(Fe),r={...o,categories:De(t,o.categories)};return l(re,{config:Ee(r),query:t,onQuery:e,onSearchSubmitted:i=>window.open(o.searchProviders[i].searchUrlFormat.replace("%s",t),"_self")})}b((t,e)=>S(new Set(t),new Set(e)),"isSameSetAs");b((t,e)=>{for(let o in t)if(!(o in e)||!S(t[o],e[o]))return!1;return!0},"hasProperties");var yt;(t=>{function e({title:o="",entries:r=[],subCategories:i=[]}){return{title:o,entries:r,subCategories:i}}t.category=e})(yt||(yt={}));Rt(l(je,null),document.getElementById("preact-root")); diff --git a/dist/index.html b/dist/index.html index 2af074a..918624d 100644 --- a/dist/index.html +++ b/dist/index.html @@ -60,10 +60,10 @@

Bastion

-

Software Development

Food

Web-based Tools

Gaming

Linux and Computer Hardware

Computer Habitability

Typography

Images

Learning

Commerce

Finance

Archives and Archiving

Books

Music

Video

Languages and Linguistics

Academia

Meditation

Miscellaneous

+

Software Development

Food

Web-based Tools

Gaming

Linux and Computer Hardware

Computer Habitability

Typography

Images

Learning

Commerce

Finance

Archives and Archiving

Books

Music

Video

Languages and Linguistics

Academia

Meditation

Miscellaneous

- \ No newline at end of file + \ No newline at end of file