You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
19 KiB
JavaScript

var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function a(t,e,n,r,i,o,a){const h=function(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}(e,r,i,o);if(h){const i=s(e,n,r,a);t.p(i,h)}}function h(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function g(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function u(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function m(){return p(" ")}function W(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function d(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function x(t,e){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}}function $(t,e,n){t.classList[n?"add":"remove"](e)}let b;function w(t){b=t}const y=[],k=[],v=[],z=[],_=Promise.resolve();let j=!1;function T(t){v.push(t)}let E=!1;const C=new Set;function S(){if(!E){E=!0;do{for(let t=0;t<y.length;t+=1){const e=y[t];w(e),L(e.$$)}for(w(null),y.length=0;k.length;)k.pop()();for(let t=0;t<v.length;t+=1){const e=v[t];C.has(e)||(C.add(e),e())}v.length=0}while(y.length);for(;z.length;)z.pop()();j=!1,E=!1,C.clear()}}function L(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(T)}}const M=new Set;let q;function A(){q={r:0,c:[],p:q}}function B(){q.r||r(q.c),q=q.p}function H(t,e){t&&t.i&&(M.delete(t),t.i(e))}function N(t,e,n,r){if(t&&t.o){if(M.has(t))return;M.add(t),q.c.push((()=>{M.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function I(t){t&&t.c()}function O(t,n,o){const{fragment:s,on_mount:a,on_destroy:h,after_update:c}=t.$$;s&&s.m(n,o),T((()=>{const n=a.map(e).filter(i);h?h.push(...n):r(n),t.$$.on_mount=[]})),c.forEach(T)}function P(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function D(t,e){-1===t.$$.dirty[0]&&(y.push(t),j||(j=!0,_.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function R(e,i,o,s,a,h,c=[-1]){const g=b;w(e);const u=i.props||{},p=e.$$={fragment:null,ctx:null,props:h,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(g?g.$$.context:[]),callbacks:n(),dirty:c,skip_bound:!1};let m=!1;if(p.ctx=o?o(e,u,((t,n,...r)=>{const i=r.length?r[0]:n;return p.ctx&&a(p.ctx[t],p.ctx[t]=i)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](i),m&&D(e,t)),n})):[],p.update(),m=!0,r(p.before_update),p.fragment=!!s&&s(p.ctx),i.target){if(i.hydrate){const t=function(t){return Array.from(t.childNodes)}(i.target);p.fragment&&p.fragment.l(t),t.forEach(l)}else p.fragment&&p.fragment.c();i.intro&&H(e.$$.fragment),O(e,i.target,i.anchor),S()}w(g)}class F{$destroy(){P(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function J(t){let e,n;const r=t[2].default,i=function(t,e,n,r){if(t){const i=s(t,e,n,r);return t[0](i)}}(r,t,t[1],null);return{c(){e=u("a"),i&&i.c(),f(e,"href",t[0]),f(e,"rel","noopener"),f(e,"target","_blank")},m(t,r){c(t,e,r),i&&i.m(e,null),n=!0},p(t,[o]){i&&i.p&&2&o&&a(i,r,t,t[1],o,null,null),(!n||1&o)&&f(e,"href",t[0])},i(t){n||(H(i,t),n=!0)},o(t){N(i,t),n=!1},d(t){t&&l(e),i&&i.d(t)}}}function U(t,e,n){let{$$slots:r={},$$scope:i}=e,{href:o}=e;return t.$$set=t=>{"href"in t&&n(0,o=t.href),"$$scope"in t&&n(1,i=t.$$scope)},[o,i,r]}class G extends F{constructor(t){super(),R(this,t,U,J,o,{href:0})}}function K(t){let e;return{c(){e=p("Phantomas")},m(t,n){c(t,e,n)},d(t){t&&l(e)}}}function Q(t){let e,n,r,i,o,s,a,g,W,d,x,$,b,w;return g=new G({props:{href:"https://github.com/macbre/phantomas",$$slots:{default:[K]},$$scope:{ctx:t}}}),{c(){e=u("article"),n=u("header"),n.innerHTML="<h1>Technical Details</h1>",r=m(),i=u("p"),i.textContent="The values shown in the list are URL, Total Weight, Content Ratio.",o=m(),s=u("p"),a=p("Websites listed here are downloaded and analyzed with\n "),I(g.$$.fragment),W=p(".\n The total weight is counted and then the size of actual content is measured\n and shown as a ratio."),d=m(),x=u("p"),x.textContent="For example: If a website has a total weight of 100kb and 60kb are the\n documents structure, text, images, videos and so on, then the content ratio\n is 60%. The rest are extras like CSS, JavaScript and so on. It is hard to\n say what a good ratio is but my gut feeling is that everything above 20% is\n pretty good already.",$=m(),b=u("p"),b.innerHTML="<strong>Disclaimer:</strong> Currently, inline scripts and styles are\n measured as content due to technical limitations of Phantomas. This will\n hopefully be fixed soon.",f(e,"id","info-popup")},m(t,l){c(t,e,l),h(e,n),h(e,r),h(e,i),h(e,o),h(e,s),h(s,a),O(g,s,null),h(s,W),h(e,d),h(e,x),h(e,$),h(e,b),w=!0},p(t,[e]){const n={};1&e&&(n.$$scope={dirty:e,ctx:t}),g.$set(n)},i(t){w||(H(g.$$.fragment,t),w=!0)},o(t){N(g.$$.fragment,t),w=!1},d(t){t&&l(e),P(g)}}}class V extends F{constructor(t){super(),R(this,t,null,Q,o,{})}}var X=[{url:"https://koehr.in",contentWeight:23078,extraWeight:66537,stamp:1606004545427},{url:"https://koehr.tech",contentWeight:4964,extraWeight:20108,stamp:1606004547391},{url:"https://sjmulder.nl",contentWeight:2361,extraWeight:0,stamp:1606004663706},{url:"http://cyberia.host",contentWeight:1191,extraWeight:0,stamp:1606004664417},{url:"https://text.npr.org",contentWeight:2760,extraWeight:0,stamp:1606004665037},{url:"https://playerone.kevincox.ca",contentWeight:1904,extraWeight:42661,stamp:1606004665881},{url:"https://dotfilehub.com",contentWeight:961,extraWeight:1281,stamp:1606004667422},{url:"https://manpages.bsd.lv",contentWeight:7045,extraWeight:1346,stamp:1606004669823},{url:"https://danluu.com",contentWeight:2895,extraWeight:0,stamp:1606004670441},{url:"https://gtf.io",contentWeight:2040,extraWeight:2752,stamp:1606004671103},{url:"http://minid.net",contentWeight:4110,extraWeight:0,stamp:1606004672171},{url:"https://250kb.club",contentWeight:1682,extraWeight:8330,stamp:1606070901151},{url:"https://subreply.com",contentWeight:6713,extraWeight:52472,stamp:1606070902296},{url:"https://seirdy.one",contentWeight:1554,extraWeight:1951,stamp:1606070903577},{url:"https://richj.co",contentWeight:2119,extraWeight:1840,stamp:1606070904708},{url:"https://mkws.sh/",contentWeight:75059,extraWeight:7051,stamp:1606070907275},{url:"https://porkbrain.com",contentWeight:89742,extraWeight:1941,stamp:1606070908242},{url:"https://pgjones.dev",contentWeight:15979,extraWeight:187928,stamp:1606070910182},{url:"https://jaime.gomezobregon.com",contentWeight:21100,extraWeight:71592,stamp:1606070911329},{url:"https://lawzava.com",contentWeight:2324,extraWeight:2267,stamp:1606070912369},{url:"https://www.cleanpython.com/",contentWeight:7781,extraWeight:126068,stamp:1606070914335},{url:"https://monokai.nl",contentWeight:4823,extraWeight:85479,stamp:1606070915137},{url:"https://flatpackapps.com",contentWeight:41219,extraWeight:1262,stamp:1606070917537},{url:"https://frontaid.io",contentWeight:59536,extraWeight:103859,stamp:1606070918722},{url:"https://worldti.me",contentWeight:3099,extraWeight:39571,stamp:1606070920657},{url:"https://sneak.berlin",contentWeight:187882,extraWeight:1257173,stamp:1606070922342},{url:"https://plumebio.com",contentWeight:1994,extraWeight:1598,stamp:1606070924010},{url:"https://jeremysarber.com",contentWeight:2522,extraWeight:0,stamp:1606070925135},{url:"https://kunalmarwaha.com/",contentWeight:917,extraWeight:850,stamp:1606084225033},{url:"https://weboas.is/",contentWeight:20293,extraWeight:93372,stamp:1606084229149},{url:"https://jlelse.blog/",contentWeight:3834,extraWeight:1363,stamp:1606084229673},{url:"https://h3liu.ml/",contentWeight:13834,extraWeight:0,stamp:1606086291497},{url:"https://unix.lgbt/",contentWeight:2952,extraWeight:0,stamp:1606086292019},{url:"https://sr.ht/",contentWeight:5765,extraWeight:24633,stamp:1606086293004},{url:"https://sourcehut.org/",contentWeight:86581,extraWeight:2375,stamp:1606086293917},{url:"http://oxenburypartners.com/",contentWeight:2140,extraWeight:0,stamp:1606088516011},{url:"https://1mb.club/",contentWeight:2247,extraWeight:634,stamp:1606088516588},{url:"https://freesolitaire.win/",contentWeight:12942,extraWeight:0,stamp:1606088517218},{url:"https://motherfuckingwebsite.com/",contentWeight:5351,extraWeight:0,stamp:1606088518012},{url:"https://berkshirehathaway.com",contentWeight:7316,extraWeight:39182,stamp:1606088518654},{url:"https://susam.in",contentWeight:2285,extraWeight:3235,stamp:1606088519297},{url:"https://bridge.simplefin.org",contentWeight:3684,extraWeight:3165,stamp:1606088520161},{url:"https://lukeramsden.com",contentWeight:5345,extraWeight:0,stamp:1606088520585},{url:"https://mataroa.blog",contentWeight:2978,extraWeight:2692,stamp:1606088521426},{url:"https://jvanelian.dev",contentWeight:2770,extraWeight:17141,stamp:1606088523476},{url:"https://uglyduck.ca",contentWeight:1694,extraWeight:749,stamp:1606088523943},{url:"https://legiblenews.com",contentWeight:7452,extraWeight:0,stamp:1606088525060},{url:"https://cronokirby.com",contentWeight:8458,extraWeight:81149,stamp:1606088527558},{url:"https://lite.cnn.com",contentWeight:5420,extraWeight:70215,stamp:1606088528454},{url:"https://john-doe.neocities.org",contentWeight:133914,extraWeight:2573,stamp:1606088529088},{url:"https://news.ycombinator.com",contentWeight:7346,extraWeight:4345,stamp:1606088530475},{url:"https://blog.fefe.de",contentWeight:27461,extraWeight:0,stamp:1606088530940},{url:"https://ianmobbs.com",contentWeight:2598,extraWeight:214264,stamp:1606088532199},{url:"https://webperf.xyz",contentWeight:9661,extraWeight:35231,stamp:1606088534037},{url:"https://fullstackpython.com",contentWeight:28552,extraWeight:0,stamp:1606088535244},{url:"http://1.klose.berlin/",contentWeight:34997,extraWeight:60347,stamp:1606088536150},{url:"https://benovermyer.com/",contentWeight:110662,extraWeight:5470,stamp:1606088537677},{url:"https://www.tuhs.org/",contentWeight:141569,extraWeight:662,stamp:1606088539384},{url:"https://searchbot.app/",contentWeight:13506,extraWeight:336568,stamp:1606088540041},{url:"https://lobste.rs/",contentWeight:24081,extraWeight:12026,stamp:1606088541261},{url:"https://alexanderobenauer.com",contentWeight:11738,extraWeight:600020,stamp:1606088543064},{url:"https://codelayer.de",contentWeight:102141,extraWeight:37034,stamp:1606088543664},{url:"https://matthewstrom.com",contentWeight:154248,extraWeight:23142,stamp:1606088544352},{url:"https://danielsada.tech/",contentWeight:59391,extraWeight:99660,stamp:1606088546301},{url:"https://ihaque.org/",contentWeight:3288,extraWeight:220711,stamp:1606088547866},{url:"https://ultimateelectronicsbook.com/",contentWeight:46905,extraWeight:24880,stamp:1606088548890},{url:"https://xubuntu.org/",contentWeight:36807,extraWeight:62584,stamp:1606088550361},{url:"https://www.tarsnap.com/",contentWeight:59231,extraWeight:52315,stamp:1606088551470},{url:"https://ylukem.com/",contentWeight:2422,extraWeight:279530,stamp:1606088553477},{url:"https://iain.in/",contentWeight:1660,extraWeight:133839,stamp:1606088554500},{url:"https://nicetranslator.com/",contentWeight:1499,extraWeight:230752,stamp:1606088555450},{url:"http://dotnom.com/",contentWeight:299158,extraWeight:34006,stamp:1606088556995},{url:"https://jvelo.at/",contentWeight:4350,extraWeight:279749,stamp:1606088558401},{url:"http://dpldocs.info/this-week-in-d/Blog.html",contentWeight:44016,extraWeight:28006,stamp:1606088559689},{url:"https://lucianmarin.com/",contentWeight:2229,extraWeight:51232,stamp:1606088560379},{url:"https://www.rowlingindex.org/",contentWeight:10575,extraWeight:39183,stamp:1606088561695},{url:"https://uberspace.de/",contentWeight:163398,extraWeight:331580,stamp:1606088562531},{url:"https://craigslist.org/",contentWeight:12301,extraWeight:147249,stamp:1606088565630},{url:"https://salixos.org/",contentWeight:128812,extraWeight:10851,stamp:1606124117073},{url:"https://fraction.io/",contentWeight:1200,extraWeight:629,stamp:1606124117903},{url:"http://www.danielwasserlaufquicklinks.com/",contentWeight:108920,extraWeight:0,stamp:1606124119804},{url:"https://bernsteinbear.com/",contentWeight:2899,extraWeight:2790,stamp:1606124120177},{url:"https://www.speedshop.co/",contentWeight:46319,extraWeight:13740,stamp:1606124604279},{url:"https://usrme.xyz/",contentWeight:912,extraWeight:30354,stamp:1606124605464},{url:"https://nomasters.io/",contentWeight:4677,extraWeight:75274,stamp:1606124606395},{url:"https://n.2p5.xyz/",contentWeight:2084,extraWeight:26983,stamp:1606124607270},{url:"https://jakob.kaivo.net/",contentWeight:1446,extraWeight:952,stamp:1606124608534},{url:"https://alexschroeder.ch/",contentWeight:18586,extraWeight:4035,stamp:1606133213824},{url:"https://humaidq.ae/",contentWeight:13347,extraWeight:3795,stamp:1606144208567},{url:"https://mylight.website/",contentWeight:1911,extraWeight:79887,stamp:1606234799975},{url:"http://stratus3d.com/",contentWeight:68147,extraWeight:11802,stamp:1606234802579},{url:"https://jrballesteros05.codeberg.page/",contentWeight:1505,extraWeight:0,stamp:1606234803121},{url:"http://www.p01.org/",contentWeight:34408,extraWeight:5267,stamp:1606234803823},{url:"https://concise-encoding.org/",contentWeight:12948,extraWeight:1992,stamp:1606234805342},{url:"http://gerikson.com/hnlo/",contentWeight:27268,extraWeight:3518,stamp:1606234806925},{url:"http://gerikson.com/",contentWeight:2692,extraWeight:0,stamp:1606234807372},{url:"https://www.dustri.org",contentWeight:1543,extraWeight:27560,stamp:1606235005898},{url:"https://leonardschuetz.ch/",contentWeight:9682,extraWeight:47449,stamp:1606234808590},{url:"https://lambdapapers.com",contentWeight:6733,extraWeight:3955,stamp:1606234809849},{url:"http://cetacean.club/",contentWeight:1514,extraWeight:1200,stamp:1606234811091},{url:"https://phreedom.club/",contentWeight:100033,extraWeight:7534,stamp:1606234811629},{url:"https://kerkour.fr/",contentWeight:5648,extraWeight:1825,stamp:1606234812666},{url:"https://zupzup.org/",contentWeight:8285,extraWeight:0,stamp:1606234813299},{url:"https://processwire.dev/",contentWeight:8650,extraWeight:31998,stamp:1606314711245},{url:"https://processwire.com/",contentWeight:199160,extraWeight:149622,stamp:1606314717890},{url:"https://www.gwern.net/index",contentWeight:100672,extraWeight:309525,stamp:1606314719684},{url:"https://guts.plus/",contentWeight:3933,extraWeight:15748,stamp:1606314721981},{url:"http://karolis.koncevicius.lt/",contentWeight:1152,extraWeight:801,stamp:1606314722562},{url:"https://blog.circuitsofimagination.com/",contentWeight:5912,extraWeight:157472,stamp:1606314723800},{url:"https://head-on-a-stick.github.io/",contentWeight:99724,extraWeight:505,stamp:1606314725556}];function Y(t,e,n){const r=t.slice();return r[7]=e[n],r}function Z(t,e,n){const r=t.slice();return r[10]=e[n],r}function tt(e){let n,r,i,o,s=e[10]+"";return{c(){n=u("option"),r=p("content-"),i=p(s),n.__value=o=e[10],n.value=n.__value},m(t,e){c(t,n,e),h(n,r),h(n,i)},p:t,d(t){t&&l(n)}}}function et(t){let e,n;return e=new V({}),{c(){I(e.$$.fragment)},m(t,r){O(e,t,r),n=!0},i(t){n||(H(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function nt(t){let e,n=ct(t[7].url)+"";return{c(){e=p(n)},m(t,n){c(t,e,n)},p(t,r){4&r&&n!==(n=ct(t[7].url)+"")&&d(e,n)},d(t){t&&l(e)}}}function rt(t){let e,n,r,i,o,s,a,g,W,x,b,w,y,k,v,z,_,j,T,E=t[7].size+"",C=t[7].ratio+"";return i=new G({props:{href:t[7].url,$$slots:{default:[nt]},$$scope:{ctx:t}}}),{c(){e=u("li"),n=u("div"),r=u("span"),I(i.$$.fragment),o=m(),s=u("span"),a=p(E),g=p("kb"),W=m(),x=u("span"),b=p(C),w=p("%"),y=m(),k=u("div"),v=m(),z=u("div"),_=m(),f(r,"class","url"),f(s,"class","size"),f(x,"class","ratio"),f(n,"class","entry"),f(k,"class","entry-size-bar"),$(k,"highlighted","size"===t[0]),$(k,"yellow",t[7].size>ot),$(k,"red",t[7].size>st),f(z,"class","entry-ratio-bar"),$(z,"highlighted","ratio"===t[0]),$(z,"yellow",t[7].ratio>at),$(z,"red",t[7].ratio>ht),f(e,"style",j=`--size:${t[7].size};--ratio:${t[7].ratio}%`)},m(t,l){c(t,e,l),h(e,n),h(n,r),O(i,r,null),h(n,o),h(n,s),h(s,a),h(s,g),h(n,W),h(n,x),h(x,b),h(x,w),h(e,y),h(e,k),h(e,v),h(e,z),h(e,_),T=!0},p(t,n){const r={};4&n&&(r.href=t[7].url),8196&n&&(r.$$scope={dirty:n,ctx:t}),i.$set(r),(!T||4&n)&&E!==(E=t[7].size+"")&&d(a,E),(!T||4&n)&&C!==(C=t[7].ratio+"")&&d(b,C),1&n&&$(k,"highlighted","size"===t[0]),4&n&&$(k,"yellow",t[7].size>ot),4&n&&$(k,"red",t[7].size>st),1&n&&$(z,"highlighted","ratio"===t[0]),4&n&&$(z,"yellow",t[7].ratio>at),4&n&&$(z,"red",t[7].ratio>ht),(!T||4&n&&j!==(j=`--size:${t[7].size};--ratio:${t[7].ratio}%`))&&f(e,"style",j)},i(t){T||(H(i.$$.fragment,t),T=!0)},o(t){N(i.$$.fragment,t),T=!1},d(t){t&&l(e),P(i)}}}function it(t){let e,n,i,o,s,a,$,b,w,y,k,v,z,_=t[1]?"x":"How does this work?",j=t[3],E=[];for(let e=0;e<j.length;e+=1)E[e]=tt(Z(t,j,e));let C=t[1]&&et(),S=t[2],L=[];for(let e=0;e<S.length;e+=1)L[e]=rt(Y(t,S,e));const M=t=>N(L[t],1,1,(()=>{L[t]=null}));return{c(){e=u("aside"),n=u("div"),i=p("Sort by:\n "),o=u("select");for(let t=0;t<E.length;t+=1)E[t].c();s=m(),a=u("button"),$=p(_),b=m(),C&&C.c(),w=m(),y=u("ol");for(let t=0;t<L.length;t+=1)L[t].c();void 0===t[0]&&T((()=>t[5].call(o))),f(a,"class","info-toggle")},m(r,l){c(r,e,l),h(e,n),h(n,i),h(n,o);for(let t=0;t<E.length;t+=1)E[t].m(o,null);x(o,t[0]),h(e,s),h(e,a),h(a,$),c(r,b,l),C&&C.m(r,l),c(r,w,l),c(r,y,l);for(let t=0;t<L.length;t+=1)L[t].m(y,null);k=!0,v||(z=[W(o,"change",t[5]),W(a,"click",t[4])],v=!0)},p(t,[e]){if(8&e){let n;for(j=t[3],n=0;n<j.length;n+=1){const r=Z(t,j,n);E[n]?E[n].p(r,e):(E[n]=tt(r),E[n].c(),E[n].m(o,null))}for(;n<E.length;n+=1)E[n].d(1);E.length=j.length}if(9&e&&x(o,t[0]),(!k||2&e)&&_!==(_=t[1]?"x":"How does this work?")&&d($,_),t[1]?C?2&e&&H(C,1):(C=et(),C.c(),H(C,1),C.m(w.parentNode,w)):C&&(A(),N(C,1,1,(()=>{C=null})),B()),5&e){let n;for(S=t[2],n=0;n<S.length;n+=1){const r=Y(t,S,n);L[n]?(L[n].p(r,e),H(L[n],1)):(L[n]=rt(r),L[n].c(),H(L[n],1),L[n].m(y,null))}for(A(),n=S.length;n<L.length;n+=1)M(n);B()}},i(t){if(!k){H(C);for(let t=0;t<S.length;t+=1)H(L[t]);k=!0}},o(t){N(C),L=L.filter(Boolean);for(let t=0;t<L.length;t+=1)N(L[t]);k=!1},d(t){t&&l(e),g(E,t),t&&l(b),C&&C.d(t),t&&l(w),t&&l(y),g(L,t),v=!1,r(z)}}}const ot=200,st=225,at=50,ht=25;function ct(t){return t.replaceAll(/(^https?:\/\/|\/$)/g,"")}function lt(t,e,n){const r=X.reduce(((t,e)=>{const n=e.contentWeight+e.extraWeight;if(n>256e3)return t;const r=Math.round(n/1024),i=Math.round(100*e.contentWeight/n);return t.push({url:e.url,size:r,ratio:i}),t}),[]),i=["size","ratio"];let o,s=i[0],a=!1;return t.$$.update=()=>{1&t.$$.dirty&&n(2,o=r.sort(((t,e)=>"size"===s?t.size-e.size:e.ratio-t.ratio)))},[s,a,o,i,function(){n(1,a=!a)},function(){s=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(0,s),n(3,i)}]}return new class extends F{constructor(t){super(),R(this,t,lt,it,o,{})}}({target:document.getElementById("members-table")})}();
//# sourceMappingURL=bundle.js.map