From f6f8406189ff28b76bc2c2ea27495636a9921d90 Mon Sep 17 00:00:00 2001 From: lscambo13 Date: Sun, 11 Feb 2024 23:20:37 +0530 Subject: [PATCH] Publish build --- dist/{index.7127f171.js => index.23841bf8.js} | 75 +++++++------------ ...{index.c6d72aa4.css => index.c681bc15.css} | 4 +- dist/index.html | 2 +- 3 files changed, 30 insertions(+), 51 deletions(-) rename dist/{index.7127f171.js => index.23841bf8.js} (71%) rename dist/{index.c6d72aa4.css => index.c681bc15.css} (78%) diff --git a/dist/index.7127f171.js b/dist/index.23841bf8.js similarity index 71% rename from dist/index.7127f171.js rename to dist/index.23841bf8.js index 9f7d57e..3ec2e04 100644 --- a/dist/index.7127f171.js +++ b/dist/index.23841bf8.js @@ -1,4 +1,4 @@ -let e,t,o,n,l,a,s,i,c,r,d,u,m,g;const p="https://x1337x.ws/sort-category-search/",h="https://www.google.com/search?q=",f="https://www.bing.com/search?q=",y="https://duckduckgo.com/?q=",b='["--help","--dl","--clock","--countdown"]',w="./assets/wallpapers/",v={"bg-img-drop":"shown","bg-blur-drop":"off","footer-display-drop":"on","def-widget-drop":"casamia","greeting-display-drop":"on","def-widget-display-drop":"on","def-search-engine-drop":"google","searchbar-position-drop":"middle","searchbar-color-theme-drop":"glass","focus-search-drop":"off","search-display-drop":"on","movies-search-display-drop":"shown","tv-search-display-drop":"shown","games-search-display-drop":"shown","ebooks-search-display-drop":"shown","downloader-button-display-drop":"shown","add-bookmark-display-drop":"shown"},k={show:(a=null,s=null,i=["Input A","Input B"],c="Submit",r="Cancel",d=null,u=[onInput=null,onChange=null],m=null)=>{(e=document.getElementById("inputDialogContainer"))&&e.remove(),document.activeElement.blur(),a=a?`

${a}

`:"",s=s?` +let e,t,o,n,l,a,s,i,c,r,d,u,m,g;const p="https://x1337x.ws/sort-category-search/",h="https://www.google.com/search?q=",f="https://www.bing.com/search?q=",y="https://duckduckgo.com/?q=",b='["--help","--dl","--clock","--countdown"]',w="./assets/wallpapers/",k={"bg-img-drop":"shown","bg-blur-drop":"off","footer-display-drop":"on","def-widget-drop":"casamia","greeting-display-drop":"on","def-widget-display-drop":"on","def-search-engine-drop":"google","searchbar-position-drop":"middle","searchbar-color-theme-drop":"glass","focus-search-drop":"off","search-display-drop":"on","movies-search-display-drop":"shown","tv-search-display-drop":"shown","games-search-display-drop":"shown","ebooks-search-display-drop":"shown","downloader-button-display-drop":"shown","add-bookmark-display-drop":"shown"},v={show:(a=null,s=null,i=["Input A","Input B"],c="Submit",r="Cancel",d=null,u=[onInput=null,onChange=null],m=null)=>{(e=document.getElementById("inputDialogContainer"))&&e.remove(),document.activeElement.blur(),a=a?`

${a}

`:"",s=s?`

${s}

`:"",document.body.insertAdjacentHTML("afterbegin",`
@@ -38,7 +38,7 @@ let e,t,o,n,l,a,s,i,c,r,d,u,m,g;const p="https://x1337x.ws/sort-category-search/ id="tickBoxField"> ${d} - `),n=document.getElementById("tickBoxField")),e=document.getElementById("inputDialogContainer"),t=document.getElementById("inputDialogSubmitButton"),o=document.getElementById("inputDialogCancelButton"),l=document.getElementsByClassName("modalInputField"),document.body.style.overflow="hidden",l[0].focus(),r||(o.style.display="none");let g=new Promise((a,s)=>{e.style.opacity="1";let i=()=>{o.removeEventListener("click",i),e.remove(),document.body.style.overflow="auto",s(Error(null))},c=()=>{t.removeEventListener("click",c),d&&(n.removeEventListener("change",u[1]),n=n.checked);let o=[];for(let e of l)o.push(e.value),u&&e.removeEventListener("input",u);let s={inputValues:o,checkboxChecked:n};e.remove(),document.body.style.overflow="auto",console.log(s),a(s)};if(o.addEventListener("click",i),t.addEventListener("click",c),u[0])for(let e of l)e.addEventListener("input",u[0]);u[1]&&d&&n.addEventListener("change",u[1])});return m&&m(),g},getSubmitButton:()=>t,getCancelButton:()=>o,getInputFields:()=>l,getCheckboxField:e=>n};function I(e){try{return new URL(e),!0}catch(e){return!1}}const E=(e,t=!1)=>{let o=k.getSubmitButton(),n=k.getInputFields();for(let e of n)if(e.value.length)o.disabled=!1;else{o.disabled=!0;return}t&&(I(n[1].value)?o.disabled=!1:o.disabled=!0)};function B(e){document.documentElement.style.setProperty("--cross-display",e)}let L=JSON.parse(localStorage.getItem("saved_bookmarks"));function S(e,t,o){document.getElementsByClassName("flex-sub-container-horizontal")[0].appendChild(function(e,t,o){let n=document.createElement("span");n.textContent=t,n.className="custom_link_name";let l=document.createElement("div");l.className="cross",l.title="Modify bookmark details",l.setAttribute("tabindex","5");let a=document.createElement("a");return a.className="custom_bookmark clickable",a.setAttribute("href",e),a.setAttribute("id",o),a.setAttribute("tabindex","1"),a.appendChild(n),a.appendChild(l),a}(e,t,o));let n=document.getElementsByClassName("cross");n[n.length-1].addEventListener("click",T)}function x(e,t,o){L.push({link:e,name:t,id:o}),localStorage.setItem("saved_bookmarks",JSON.stringify(L))}function C(e){switch(e){case"show":B("block");break;case"hide":B("none")}}function D(e,t){let o=document.createElement("a");o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}function T(e){e.preventDefault(),e.stopPropagation();let t=e.target.parentNode,o=function(e){let t=L.filter(t=>e==t.id);return[t[0].id,t[0].name,t[0].link]}(t.id);k.show("Edit bookmark",null,["Name","Address"],"Save","Cancel","Delete this bookmark",[()=>E(e,!0),()=>{let e=k.getCheckboxField(),t=k.getSubmitButton(),o=k.getInputFields();if(e.checked){for(let e of(t.textContent="Delete",t.classList.add("deleteButton"),o))e.disabled=!0;t.disabled=!1}else if(!e.checked)for(let e of(t.textContent="Save",t.classList.remove("deleteButton"),o))e.disabled=!1}],()=>{k.getInputFields()[0].setAttribute("maxlength","4"),k.getInputFields()[0].value=o[1],k.getInputFields()[1].value=o[2]}).then(e=>{if(e.checkboxChecked){var o;o=t.id,L=L.filter(e=>o!=e.id),localStorage.setItem("saved_bookmarks",JSON.stringify(L)),t.style.display="none";return}t.href=e.inputValues[1].replaceAll(" ",""),t.firstChild.innerHTML=e.inputValues[0],function(e,t,o){let n=L.filter(t=>e==t.id);n[0].name=t,n[0].link=o,localStorage.setItem("saved_bookmarks",JSON.stringify(L))}(t.id,e.inputValues[0],e.inputValues[1].replaceAll(" ",""))}).catch(e=>console.log(e))}const $={"bg-img-drop":function(e){let t=document.getElementById("overlay");switch(e){case"hidden":t.style.backgroundColor="rgba(0, 0, 0, 1)";break;case"shown":t.style.backgroundColor="rgba(0, 0, 0, 0.375)"}},"bg-blur-drop":function(e){let t=document.getElementById("overlay");switch(e){case"off":t.style.backdropFilter="blur(0em)";break;case"on":var o;t.style.backdropFilter="blur(1em)",o="overlay",document.getElementById(o).style.backdropFilter="blur(0.9em)",setTimeout(()=>{document.getElementById(o).style.backdropFilter="blur(1em)"},1)}},"footer-display-drop":function(e){let t=document.getElementById("footer");switch(e){case"off":t.classList.add("hidden");break;case"on":t.classList.remove("hidden")}},"def-widget-drop":function(e){function t(e){switch(e){case"show":document.getElementById("update-customtext-btn").classList.remove("nested-close");break;case"hide":document.getElementById("update-customtext-btn").classList.add("nested-close")}}switch(e){case"casamia":t("hide"),ee("off"),A("Casa Mia");break;case"search":t("hide"),ee("off"),A("Search");break;case"clock":t("hide"),ee("on");break;case"custom":let o;ee("off"),t("show"),null==(o=localStorage.getItem("customWidgetText"))&&(localStorage.setItem("customWidgetText","Custom Text"),o=localStorage.getItem("customWidgetText"),M()),A(o)}},"greeting-display-drop":function(e){let t=document.getElementById("subtitle");switch(clearInterval(F),e){case"off":t.classList.add("collapsed");break;case"on":t.classList.remove("collapsed"),et(),F=setInterval(et,2e4)}},"def-widget-display-drop":function(e){let t=document.getElementById("main-heading-slider"),o=document.getElementById("left-arrow"),n=document.getElementById("right-arrow");function l(e){switch(e){case"show":document.getElementById("main-widget-children-container").classList.remove("nested-close");break;case"hide":document.getElementById("main-widget-children-container").classList.add("nested-close")}}switch(e){case"off":t.classList.add("hidden"),o.classList.add("hidden"),n.classList.add("hidden"),l("hide");break;case"on":t.classList.remove("hidden"),o.classList.remove("hidden"),n.classList.remove("hidden"),l("show")}},"def-search-engine-drop":function(e){function t(e){document.getElementById("search-btn-icon").className=e,localStorage.setItem("default-search-icon",e)}function o(e){switch(e){case"show":document.getElementById("update-customdomain-btn").classList.remove("nested-close");break;case"hide":document.getElementById("update-customdomain-btn").classList.add("nested-close")}}switch(e){case"google":o("hide"),O(h),t("fa-brands fa-google");break;case"bing":o("hide"),O(f),t("fa fa-magnifying-glass");break;case"duckduckgo":o("hide"),O(y),t("fa fa-magnifying-glass");break;case"custom":let n;o("show"),null==(n=localStorage.getItem("customDomain"))&&(localStorage.setItem("customDomain",h),n=localStorage.getItem("customDomain"),_()),O(n),t("fa fa-magnifying-glass")}},"searchbar-position-drop":function(e){let t=document.getElementById("searchbar"),o=document.getElementById("autofillContainer"),n=document.getElementById("wrap");switch(sessionStorage.setItem("searchbar-position-drop",e),e){case"top":t.style.order="0",o.style.order="1",o.style.bottom="0em",o.style.top="3.75em",n.style.margin="0 auto auto auto";break;case"bottom":t.style.order="1",o.style.order="0",o.style.bottom="3.75em",o.style.top="",n.style.margin="auto auto 0 auto";break;case"middle":t.style.order="0",o.style.order="1",o.style.bottom="0em",o.style.top="3.75em",n.style.margin="auto auto auto auto"}},"searchbar-color-theme-drop":function(e){let t=document.getElementById("searchContainer");switch(sessionStorage.setItem("searchbar-color-theme-drop",e),e){case"glass":t.classList.add("searchbox-style-glass"),t.classList.remove("searchbox-style-light"),t.classList.remove("searchbox-style-dark");break;case"light":t.classList.remove("searchbox-style-glass"),t.classList.add("searchbox-style-light"),t.classList.remove("searchbox-style-dark");break;case"dark":t.classList.remove("searchbox-style-glass"),t.classList.remove("searchbox-style-light"),t.classList.add("searchbox-style-dark")}},"focus-search-drop":function(e){sessionStorage.setItem("focus",e)},"search-display-drop":function(e){let t=document.getElementById("searchbar"),o=document.getElementById("search-display-children-container"),n=document.getElementById("def-search-engine-drop-container");function l(e){switch(e){case"show":o.classList.remove("nested-close"),n.classList.remove("nested-close");break;case"hide":o.classList.add("nested-close"),n.classList.add("nested-close")}}switch(e){case"off":t.classList.add("hidden"),l("hide");break;case"on":t.classList.remove("hidden"),l("show")}},"movies-search-display-drop":function(e){let t=document.getElementById("movies-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"tv-search-display-drop":function(e){let t=document.getElementById("tv-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"games-search-display-drop":function(e){let t=document.getElementById("games-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"ebooks-search-display-drop":function(e){let t=document.getElementById("ebooks-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"downloader-button-display-drop":function(e){let t=document.getElementById("downloader-button");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"add-bookmark-display-drop":function(e){let t=document.getElementById("add_bookmark_button");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}}},N=document.getElementsByClassName("widget-slide");function A(e){for(let t of N)t.textContent=e}function M(){let e=localStorage.getItem("customWidgetText");k.show("Custom widget text","Enter text you want to set as the main widget.",["Custom text"],"Save","Cancel",null,[E,null],()=>{k.getInputFields()[0].value=e}).then(e=>{localStorage.setItem("customWidgetText",e.inputValues[0]),A(e.inputValues[0]),H()}).catch(e=>{console.error(e)})}function _(){let e=localStorage.getItem("customDomain");k.show("Custom widget text","Enter text you want to set as the main widget.",["Custom text"],"Save","Cancel",null,[E,null],()=>{k.getInputFields()[0].value=e}).then(e=>{localStorage.setItem("customDomain",e.inputValues[0]),O(e.inputValues[0]),R()}).catch(e=>{console.error(e)})}let F=null;function O(e){localStorage.setItem("default-search-url",e)}function j(){for(let e of Object.entries(JSON.parse(localStorage.getItem("advDropdownValues")))){let t=$[e[0]];t&&t(e[1])}P(),H(),R();let e=sessionStorage.getItem("input");e&&(document.getElementById("searchTerm").value=e)}function P(){document.getElementById("update-username-btn-preview").textContent=localStorage.getItem("userName")}function H(){document.getElementById("update-customtext-btn-preview").textContent=localStorage.getItem("customWidgetText")}function R(){document.getElementById("update-customdomain-btn-preview").textContent=localStorage.getItem("customDomain")}const V=`The command you have passed is invalid. + `),n=document.getElementById("tickBoxField")),e=document.getElementById("inputDialogContainer"),t=document.getElementById("inputDialogSubmitButton"),o=document.getElementById("inputDialogCancelButton"),l=document.getElementsByClassName("modalInputField"),document.body.style.overflow="hidden",l[0].focus(),r||(o.style.display="none");let g=new Promise((a,s)=>{e.style.opacity="1";let i=()=>{o.removeEventListener("click",i),e.remove(),document.body.style.overflow="auto",s(Error(null))},c=()=>{t.removeEventListener("click",c),d&&(n.removeEventListener("change",u[1]),n=n.checked);let o=[];for(let e of l)o.push(e.value),u&&e.removeEventListener("input",u);let s={inputValues:o,checkboxChecked:n};e.remove(),document.body.style.overflow="auto",console.log(s),a(s)};if(o.addEventListener("click",i),t.addEventListener("click",c),u[0])for(let e of l)e.addEventListener("input",u[0]);u[1]&&d&&n.addEventListener("change",u[1])});return m&&m(),g},getSubmitButton:()=>t,getCancelButton:()=>o,getInputFields:()=>l,getCheckboxField:e=>n};function I(e){try{return new URL(e),!0}catch(e){return!1}}const E=(e,t=!1)=>{let o=v.getSubmitButton(),n=v.getInputFields();for(let e of n)if(e.value.length)o.disabled=!1;else{o.disabled=!0;return}t&&(I(n[1].value)?o.disabled=!1:o.disabled=!0)};function B(e){document.documentElement.style.setProperty("--cross-display",e)}let S=JSON.parse(localStorage.getItem("saved_bookmarks"));function L(e,t,o){document.getElementsByClassName("flex-sub-container-horizontal")[0].appendChild(function(e,t,o){let n=document.createElement("span");n.textContent=t,n.className="custom_link_name";let l=document.createElement("div");l.className="cross",l.title="Modify bookmark details",l.setAttribute("tabindex","5");let a=document.createElement("a");return a.className="custom_bookmark clickable",a.setAttribute("href",e),a.setAttribute("id",o),a.setAttribute("tabindex","1"),a.appendChild(n),a.appendChild(l),a}(e,t,o));let n=document.getElementsByClassName("cross");n[n.length-1].addEventListener("click",T)}function x(e,t,o){S.push({link:e,name:t,id:o}),localStorage.setItem("saved_bookmarks",JSON.stringify(S))}function C(e){switch(e){case"show":B("block");break;case"hide":B("none")}}function D(e,t){let o=document.createElement("a");o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}function T(e){e.preventDefault(),e.stopPropagation();let t=e.target.parentNode,o=function(e){let t=S.filter(t=>e==t.id);return[t[0].id,t[0].name,t[0].link]}(t.id);v.show("Edit bookmark",null,["Name","Address"],"Save","Cancel","Delete this bookmark",[()=>E(e,!0),()=>{let e=v.getCheckboxField(),t=v.getSubmitButton(),o=v.getInputFields();if(e.checked){for(let e of(t.textContent="Delete",t.classList.add("deleteButton"),o))e.disabled=!0;t.disabled=!1}else if(!e.checked)for(let e of(t.textContent="Save",t.classList.remove("deleteButton"),o))e.disabled=!1}],()=>{v.getInputFields()[0].setAttribute("maxlength","4"),v.getInputFields()[0].value=o[1],v.getInputFields()[1].value=o[2]}).then(e=>{if(e.checkboxChecked){var o;o=t.id,S=S.filter(e=>o!=e.id),localStorage.setItem("saved_bookmarks",JSON.stringify(S)),t.style.display="none";return}t.href=e.inputValues[1].replaceAll(" ",""),t.firstChild.innerHTML=e.inputValues[0],function(e,t,o){let n=S.filter(t=>e==t.id);n[0].name=t,n[0].link=o,localStorage.setItem("saved_bookmarks",JSON.stringify(S))}(t.id,e.inputValues[0],e.inputValues[1].replaceAll(" ",""))}).catch(e=>console.log(e))}const $={"bg-img-drop":function(e){let t=document.getElementById("overlay");switch(e){case"hidden":t.style.backgroundColor="rgba(0, 0, 0, 1)";break;case"shown":t.style.backgroundColor="rgba(0, 0, 0, 0.375)"}},"bg-blur-drop":function(e){let t=document.getElementById("overlay");switch(e){case"off":t.style.backdropFilter="blur(0em)";break;case"on":var o;t.style.backdropFilter="blur(1em)",o="overlay",document.getElementById(o).style.backdropFilter="blur(0.9em)",setTimeout(()=>{document.getElementById(o).style.backdropFilter="blur(1em)"},1)}},"footer-display-drop":function(e){let t=document.getElementById("footer");switch(e){case"off":t.classList.add("hidden");break;case"on":t.classList.remove("hidden")}},"def-widget-drop":function(e){function t(e){switch(e){case"show":document.getElementById("update-customtext-btn").classList.remove("nested-close");break;case"hide":document.getElementById("update-customtext-btn").classList.add("nested-close")}}switch(e){case"casamia":t("hide"),ee("off"),N("Casa Mia");break;case"search":t("hide"),ee("off"),N("Search");break;case"clock":t("hide"),ee("on");break;case"custom":let o;ee("off"),t("show"),null==(o=localStorage.getItem("customWidgetText"))&&(localStorage.setItem("customWidgetText","Custom Text"),o=localStorage.getItem("customWidgetText"),M()),N(o)}},"greeting-display-drop":function(e){let t=document.getElementById("subtitle");switch(clearInterval(F),e){case"off":t.classList.add("collapsed");break;case"on":t.classList.remove("collapsed"),et(),F=setInterval(et,2e4)}},"def-widget-display-drop":function(e){let t=document.getElementById("main-heading-slider"),o=document.getElementById("left-arrow"),n=document.getElementById("right-arrow");function l(e){switch(e){case"show":document.getElementById("main-widget-children-container").classList.remove("nested-close");break;case"hide":document.getElementById("main-widget-children-container").classList.add("nested-close")}}switch(e){case"off":t.classList.add("hidden"),o.classList.add("hidden"),n.classList.add("hidden"),l("hide");break;case"on":t.classList.remove("hidden"),o.classList.remove("hidden"),n.classList.remove("hidden"),l("show")}},"def-search-engine-drop":function(e){function t(e){document.getElementById("search-btn-icon").className=e,localStorage.setItem("default-search-icon",e)}function o(e){switch(e){case"show":document.getElementById("update-customdomain-btn").classList.remove("nested-close");break;case"hide":document.getElementById("update-customdomain-btn").classList.add("nested-close")}}switch(e){case"google":o("hide"),O(h),t("fa-brands fa-google");break;case"bing":o("hide"),O(f),t("fa fa-magnifying-glass");break;case"duckduckgo":o("hide"),O(y),t("fa fa-magnifying-glass");break;case"custom":let n;o("show"),null==(n=localStorage.getItem("customDomain"))&&(localStorage.setItem("customDomain",h),n=localStorage.getItem("customDomain"),_()),O(n),t("fa fa-magnifying-glass")}},"searchbar-position-drop":function(e){let t=document.getElementById("searchbar"),o=document.getElementById("autofillContainer"),n=document.getElementById("wrap");switch(sessionStorage.setItem("searchbar-position-drop",e),e){case"top":t.style.order="0",o.style.order="1",o.style.bottom="0em",o.style.top="3.75em",n.style.margin="0 auto auto auto";break;case"bottom":t.style.order="1",o.style.order="0",o.style.bottom="3.75em",o.style.top="",n.style.margin="auto auto 0 auto";break;case"middle":t.style.order="0",o.style.order="1",o.style.bottom="0em",o.style.top="3.75em",n.style.margin="auto auto auto auto"}},"searchbar-color-theme-drop":function(e){let t=document.getElementById("searchContainer");switch(sessionStorage.setItem("searchbar-color-theme-drop",e),e){case"glass":t.classList.add("searchbox-style-glass"),t.classList.remove("searchbox-style-light"),t.classList.remove("searchbox-style-dark");break;case"light":t.classList.remove("searchbox-style-glass"),t.classList.add("searchbox-style-light"),t.classList.remove("searchbox-style-dark");break;case"dark":t.classList.remove("searchbox-style-glass"),t.classList.remove("searchbox-style-light"),t.classList.add("searchbox-style-dark")}},"focus-search-drop":function(e){sessionStorage.setItem("focus",e)},"search-display-drop":function(e){let t=document.getElementById("searchbar"),o=document.getElementById("search-display-children-container"),n=document.getElementById("def-search-engine-drop-container");function l(e){switch(e){case"show":o.classList.remove("nested-close"),n.classList.remove("nested-close");break;case"hide":o.classList.add("nested-close"),n.classList.add("nested-close")}}switch(e){case"off":t.classList.add("hidden"),l("hide");break;case"on":t.classList.remove("hidden"),l("show")}},"movies-search-display-drop":function(e){let t=document.getElementById("movies-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"tv-search-display-drop":function(e){let t=document.getElementById("tv-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"games-search-display-drop":function(e){let t=document.getElementById("games-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"ebooks-search-display-drop":function(e){let t=document.getElementById("ebooks-search");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"downloader-button-display-drop":function(e){let t=document.getElementById("downloader-button");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}},"add-bookmark-display-drop":function(e){let t=document.getElementById("add_bookmark_button");switch(e){case"hidden":t.style.display="none";break;case"shown":t.style.display="flex"}}},A=document.getElementsByClassName("widget-slide");function N(e){for(let t of A)t.textContent=e}function M(){let e=localStorage.getItem("customWidgetText");v.show("Custom widget text","Enter text you want to set as the main widget.",["Custom text"],"Save","Cancel",null,[E,null],()=>{v.getInputFields()[0].value=e}).then(e=>{localStorage.setItem("customWidgetText",e.inputValues[0]),N(e.inputValues[0]),H()}).catch(e=>{console.error(e)})}function _(){let e=localStorage.getItem("customDomain");v.show("Custom widget text","Enter text you want to set as the main widget.",["Custom text"],"Save","Cancel",null,[E,null],()=>{v.getInputFields()[0].value=e}).then(e=>{localStorage.setItem("customDomain",e.inputValues[0]),O(e.inputValues[0]),V()}).catch(e=>{console.error(e)})}let F=null;function O(e){localStorage.setItem("default-search-url",e)}function j(){for(let e of Object.entries(JSON.parse(localStorage.getItem("advDropdownValues")))){let t=$[e[0]];t&&t(e[1])}P(),H(),V();let e=sessionStorage.getItem("input");e&&(document.getElementById("searchTerm").value=e)}function P(){document.getElementById("update-username-btn-preview").textContent=localStorage.getItem("userName")}function H(){document.getElementById("update-customtext-btn-preview").textContent=localStorage.getItem("customWidgetText")}function V(){document.getElementById("update-customdomain-btn-preview").textContent=localStorage.getItem("customDomain")}const U=`The command you have passed is invalid. Type --help to read the documentation. `,q=`This will reset bookmarks. @@ -48,7 +48,7 @@ Make sure you have a backup to import later on. Are you sure ?`,J=`This will reset everything. There is no going back. -Are you sure?`;function U(e){return 1==e.length&&(e="0"+e),e}const W={show:(e=null,t=null,o=["Submit A","Submit B"],n="Ok",l=[null,null],r=[],d=null)=>{(a=document.getElementById("alertDialogContainer"))&&a.remove(),e=e?`

${e}

`:"",t=t?` +Are you sure?`;function R(e){return 1==e.length&&(e="0"+e),e}const W={show:(e=null,t=null,o=["Submit A","Submit B"],n="Ok",l=[null,null],r=[],d=null)=>{(a=document.getElementById("alertDialogContainer"))&&a.remove(),e=e?`

${e}

`:"",t=t?`

${t}

`:"",document.body.insertAdjacentHTML("afterbegin",`
@@ -79,7 +79,7 @@ Are you sure?`;function U(e){return 1==e.length&&(e="0"+e),e}const W={show:(e=nu id="tickBoxField"> ${l[0]} - `),i=document.getElementById("tickBoxField")),a=document.getElementById("alertDialogContainer"),s=document.getElementById("alertDialogCancelButton"),c=document.getElementsByClassName("alertDialogSubmitButton"),document.body.style.overflow="hidden",s.focus();let u=new Promise((e,t)=>{a.style.alignItems="center",a.style.opacity="1";let o=()=>{s.removeEventListener("click",o),l[0]&&(i.removeEventListener("change",l[1]),i=i.checked),r&&r.forEach((e,t)=>{c[t].removeEventListener("click",e)}),a.remove(),document.body.style.overflow="auto",e(i)};s.addEventListener("click",o),r&&r.forEach((e,t)=>{c[t].addEventListener("click",e)}),l[0]&&i.addEventListener("change",l[1])});return d&&d(),u},getCancelButton:()=>s,getSubmitButtons:()=>c,getCheckboxField:()=>i},Y=(e,t)=>{W.show(e,t,null,"Ok",[null,null],null,null).then(e=>console.log(e)).catch(e=>console.error(e))};function z(e,t){let o=document.getElementById("gradient_overlay"),n=document.getElementById("wallpapers"),l=localStorage.getItem("glow");null!=t&&"1"!=l&&(o.style.opacity=t),null!=e&&(n.style.background=`linear-gradient(to top, rgb(${e}), 50%, #fbd3e900)`,o.style.background=`linear-gradient(to top, rgb(${e}), 50%, #fbd3e900)`)}let G=[];function K(e,t){r=e,document.getElementById("overlay").style.backdropFilter="blur(1em)";let o=new Image;o.src=w+e,o.onload=e=>{Q(r),localStorage.setItem("wallpaper",r),j()},z(t),function(e){let t=document.getElementsByClassName("has-shadow");for(let o=0;o(function(e){let t=document.getElementsByClassName(e),o=new Date,n=o.getHours(),l=e=>0==e?(n.toString(),n="12","AM"):e>0&&e<12?(n=U(n.toString()),"AM"):12==e?(n="12","PM"):e>12?((n-=12).toString(),n=U(n),"PM"):void 0,a=U(o.getMinutes().toString()),s=U(o.getSeconds().toString());l=l(n);let i=":";for(let e=0;e:':':',t[e].innerHTML=`${n}${i}${a} ${function(e){let t=localStorage.getItem("selected-widget-style");return"widget-2"==t||"widget-7"==t||"widget-5"==t?e.toLowerCase():e}(l.toString())}`})("widget-slide"),1e3)}}function et(){let e=document.getElementById("subtitle"),t=localStorage.getItem("userName"),o=new Date().getHours(),n=e=>e<12?`Good Morning, ${t}`:e>=12&&e<=18?`Good Afternoon, ${t}`:e>=18?`Good Evening, ${t}`:void 0;n=n(o),e.innerText=n}function eo(e,t=""){let o;e?(e.stopPropagation(),o=e.target.files[0].text()):o=t,o.then(function(t){let o=JSON.parse(t);if(!o[0]?.id){console.log(o),Y("Failed","The backup does not seem to be valid."),e.target.value=null;return}let n=[];for(let e of L)n.push(e.id);for(let e of o)n.includes(e.id)&&(function(e){let t=Date.now(),o=t+1;for(;teo(null,e.text()))}function ed(e){let t=document.getElementsByClassName("arrows");switch(e){case"show":for(let e=0;el&&(o=l),console.log(o),n.scrollLeft=o):-1==t&&((o=s-i)<0&&(o=0),console.log(o),n.scrollLeft=o)}const em=document.getElementById("notifyContainer"),eg={show:(e,t="5000",o=null)=>{let n=Date.now();(m=document.getElementById(`notifyModal-${n}`))&&m.parentNode.remove(),em.insertAdjacentHTML("afterbegin",` + `),i=document.getElementById("tickBoxField")),a=document.getElementById("alertDialogContainer"),s=document.getElementById("alertDialogCancelButton"),c=document.getElementsByClassName("alertDialogSubmitButton"),document.body.style.overflow="hidden",s.focus();let u=new Promise((e,t)=>{a.style.alignItems="center",a.style.opacity="1";let o=()=>{s.removeEventListener("click",o),l[0]&&(i.removeEventListener("change",l[1]),i=i.checked),r&&r.forEach((e,t)=>{c[t].removeEventListener("click",e)}),a.remove(),document.body.style.overflow="auto",e(i)};s.addEventListener("click",o),r&&r.forEach((e,t)=>{c[t].addEventListener("click",e)}),l[0]&&i.addEventListener("change",l[1])});return d&&d(),u},getCancelButton:()=>s,getSubmitButtons:()=>c,getCheckboxField:()=>i},Y=(e,t)=>{W.show(e,t,null,"Ok",[null,null],null,null).then(e=>console.log(e)).catch(e=>console.error(e))};function z(e,t){let o=document.getElementById("gradient_overlay"),n=document.getElementById("wallpapers"),l=localStorage.getItem("glow");null!=t&&"1"!=l&&(o.style.opacity=t),null!=e&&(n.style.background=`linear-gradient(to top, rgb(${e}), 50%, #fbd3e900)`,o.style.background=`linear-gradient(to top, rgb(${e}), 50%, #fbd3e900)`)}let G=[];function Q(e,t){r=e,document.getElementById("overlay").style.backdropFilter="blur(1em)";let o=new Image;o.src=w+e,o.onload=e=>{K(r),localStorage.setItem("wallpaper",r),j()},z(t),function(e){let t=document.getElementsByClassName("has-shadow");for(let o=0;o(function(e){let t=document.getElementsByClassName(e),o=new Date,n=o.getHours(),l=e=>0==e?(n.toString(),n="12","AM"):e>0&&e<12?(n=R(n.toString()),"AM"):12==e?(n="12","PM"):e>12?((n-=12).toString(),n=R(n),"PM"):void 0,a=R(o.getMinutes().toString()),s=R(o.getSeconds().toString());l=l(n);let i=":";for(let e=0;e:':':',t[e].innerHTML=`${n}${i}${a} ${function(e){let t=localStorage.getItem("selected-widget-style");return"widget-2"==t||"widget-7"==t||"widget-5"==t?e.toLowerCase():e}(l.toString())}`})("widget-slide"),1e3)}}function et(){let e=document.getElementById("subtitle"),t=localStorage.getItem("userName"),o=new Date().getHours(),n=e=>e<12?`Good Morning, ${t}`:e>=12&&e<=18?`Good Afternoon, ${t}`:e>=18?`Good Evening, ${t}`:void 0;n=n(o),e.innerText=n}function eo(e,t=""){let o;e?(e.stopPropagation(),o=e.target.files[0].text()):o=t,o.then(function(t){let o=JSON.parse(t);if(!o[0]?.id){console.log(o),Y("Failed","The backup does not seem to be valid."),e.target.value=null;return}let n=[];for(let e of S)n.push(e.id);for(let e of o)n.includes(e.id)&&(function(e){let t=Date.now(),o=t+1;for(;teo(null,e.text()))}function ed(e){let t=document.getElementsByClassName("arrows");switch(e){case"show":for(let e=0;el&&(o=l),console.log(o),n.scrollLeft=o):-1==t&&((o=s-i)<0&&(o=0),console.log(o),n.scrollLeft=o)}const em=document.getElementById("notifyContainer"),eg={show:(e,t="5000",o=null)=>{let n=Date.now();(m=document.getElementById(`notifyModal-${n}`))&&m.parentNode.remove(),em.insertAdjacentHTML("afterbegin",`

@@ -91,12 +91,24 @@ Are you sure?`;function U(e){return 1==e.length&&(e="0"+e),e}const W={show:(e=nu x

- `);let l=document.getElementById(`notifyLoader-${n}`);m=document.getElementById(`notifyModal-${n}`),o&&m.addEventListner("click",o);let a=e=>{o&&m.removeEventListner("click",o),u.removeEventListener("click",a),e.target.parentNode.remove()};(u=document.getElementById(`notifyDialogCancelButton-${n}`)).addEventListener("click",a),setTimeout(()=>{let e=u;setTimeout(()=>{e.click()},t),l.style.transition=t+"ms",m.style.opacity="1",m.style.marginTop="2em",l.style.width="0%"},50)}},ep=document.getElementById("advanced-settings-modal-background-overlay"),eh=document.getElementById("wrap"),ef=document.getElementById("downloadContainer"),ey=document.getElementById("progress-bar"),eb=(e,t,o)=>{ef.insertAdjacentHTML("beforeend",` + `);let l=document.getElementById(`notifyLoader-${n}`);m=document.getElementById(`notifyModal-${n}`),o&&m.addEventListner("click",o);let a=e=>{o&&m.removeEventListner("click",o),u.removeEventListener("click",a),e.target.parentNode.remove()};(u=document.getElementById(`notifyDialogCancelButton-${n}`)).addEventListener("click",a),setTimeout(()=>{let e=u;setTimeout(()=>{e.click()},t),l.style.transition=t+"ms",m.style.opacity="1",m.style.marginTop="2em",l.style.width="0%"},50)}},ep=document.getElementById("advanced-settings-modal-background-overlay"),eh=document.getElementById("wrap"),ef=document.getElementById("downloadContainer"),ey=document.getElementById("progress-bar"),eb=(e,t)=>` + + `,ew=(e,t)=>{let o=new Set;t[0].forEach(e=>{e<720?o.add("SD"):e<1080?o.add("HD"):e<1440?o.add("FHD"):e<2160?o.add("QHD"):e<4320?o.add("UHD"):e>=4320&&o.add("UHD+")});let n=` + + `;return o.forEach(t=>{n=eb(e,t)+n}),n},ek=e=>{let t="";return Object.keys(e).forEach(o=>{let n;e[o].stream.length&&(n="bestVideoOnly"===o?`${e[o].info}P MUTED`:"NA"===e[o].info?"AUDIO":`${e[o].info}P`)&&(t+=eb(e[o].stream,n))}),t},ev=(e,t,o,n)=>{let l=ek(t),a=ew("#",n);ef.insertAdjacentHTML("beforeend",`
@@ -107,64 +119,31 @@ Are you sure?`;function U(e){return 1==e.length&&(e="0"+e),e}const W={show:(e=nu FREE
- + ${l}
-
+
PRO
- - - - - - + ${a}
- `)},ew=()=>{for(let e of document.querySelectorAll(".downloadItemContainer"))e.remove()},ev=()=>{ey.classList.remove("hidden"),ef.classList.add("hidden"),ef.removeEventListener("click",ev),ew(),document.title=document.title.replace("Downloader","Search"),history.pushState({loc:"home"},"","?home"),document.body.classList.remove("justifySpaceBetween"),eh.style.display="block",ep.style.display="none"},ek=(e,t=null)=>{if(!t){let e=ea().value;if(I(e))t=e;else{eg.show("You need to enter a website link first");return}}history.pushState({loc:"downloader"},"","?downloader"),document.title=document.title.replace("Search","Downloader"),document.body.classList.add("justifySpaceBetween"),eh.style.display="none",ey.classList.remove("hidden"),ep.style.display="block",window.scrollTo(0,0),document.querySelector("#searchBarFocusMode").click(),ef.classList.remove("hidden"),es("downloadContainer-close-btn","click",ev),fetch(`https://casamia.cambo.in/api/getInfo/?url=${t}`).then(e=>{if(200!==e.status){e.json().then(t=>{t[0]?.err?Y(`Error ${e.status} ${e.statusText}`,t[0].err):Y(`Unknown Error ${e.status} ${e.statusText}`,t.stderr),ev()});return}e.json().then(e=>{console.log(e),e.forEach(e=>{eb(e.title,e.stream,e.thumbnail),console.log(e.source,e.resolutions),ey.classList.add("hidden")})})}).catch(e=>{Y("Fatal Error",e),ev()})};function eI(e){return!!e.startsWith("--")}function eE(e,t){let o=t.substr(4);(o=o.split(",")).forEach(t=>{if(null==window.open(`${e}${t}`,"_blank")){Y("Information","Allow pop-ups for this feature to work properly.");return}})}const eB="You must enter a search query to continue.",eL=document.querySelector(".autofillContainer"),eS=document.querySelector("#searchBarFocusMode");let ex="",eC=[];window.googleSuggestions=e=>{eC=[];let t=ea().value;eC=e[1],t&&(eM(t,eC),eN(t))};const eD=e=>{""!==ex&&document.body.removeChild(ex),(ex=document.createElement("script")).src=`https://suggestqueries.google.com/complete/search?client=firefox&callback=googleSuggestions&q=${e}`,document.body.appendChild(ex)},eT=e=>{let t=document.getElementById("search-btn-icon"),o=localStorage.getItem("default-search-icon");if(I(e)){t.className="fa fa-globe";return}if(eI(e)){t.className="fa fa-terminal";return}t.className=o},e$=()=>{eS.style.opacity="0",eL.style.paddingBlock="0em",eL.style.height="0px",setTimeout(()=>{eS.style.display="none"},200)},eN=e=>{let t=document.querySelectorAll(".autofillItem"),o=document.getElementById("searchbar");e.length&&(eS.style.display="block",setTimeout(()=>{if(t.length){let e=t[0].getBoundingClientRect(),n=e.height*t.length+1.5*e.height;eL.style.height=`${n}px`,eL.style.paddingBlockStart="0em",o.scrollIntoView()}eS.style.opacity="1",document.getElementById("downloadContainer").classList.contains("hidden")||e$()},1))},eA=()=>{document.querySelectorAll(".autofillItem").forEach(e=>{e.remove()})},eM=(e,t)=>{let o=JSON.parse(localStorage.getItem("autocompleteDatabase"));function n(e){ea().value=e.target.innerText;let t=new InputEvent("input");ea().dispatchEvent(t),ea().focus()}o||localStorage.setItem("autocompleteDatabase",b),(o=>{if(eA(),!e)return;let n=sessionStorage.getItem("searchbar-color-theme-drop");"bottom"==sessionStorage.getItem("searchbar-position-drop")?eL.style.flexDirection="column-reverse":eL.style.flexDirection="column";let l=0;for(let e of o){if(6==l)break;eL.insertAdjacentHTML("beforeend",` + `)},eI=()=>{for(let e of document.querySelectorAll(".downloadItemContainer"))e.remove()},eE=()=>{ey.classList.remove("hidden"),ef.classList.add("hidden"),ef.removeEventListener("click",eE),eI(),document.title=document.title.replace("Downloader","Search"),history.pushState({loc:"home"},"","?home"),document.body.classList.remove("justifySpaceBetween"),eh.style.display="block",ep.style.display="none"},eB=(e,t=null)=>{if(!t){let e=ea().value;if(I(e))t=e;else{eg.show("You need to enter a website link first");return}}history.pushState({loc:"downloader"},"","?downloader"),document.title=document.title.replace("Search","Downloader"),document.body.classList.add("justifySpaceBetween"),eh.style.display="none",ey.classList.remove("hidden"),ep.style.display="block",window.scrollTo(0,0),document.querySelector("#searchBarFocusMode").click(),ef.classList.remove("hidden"),es("downloadContainer-close-btn","click",eE),fetch(`https://casamia.cambo.in/api/getInfo/?url=${t}`).then(e=>{if(200!==e.status){e.json().then(t=>{t[0]?.err?Y(`Error ${e.status} ${e.statusText}`,t[0].err):Y(`Unknown Error ${e.status} ${e.statusText}`,t.stderr),eE()});return}e.json().then(e=>{console.log(e),e.forEach(e=>{if(ey.classList.add("hidden"),!e.resolutions.length){Y("Something went wrong",e.err),eE();return}ev(e.title,e.streams,e.thumbnail,e.resolutions),console.log(e.source,e.err)})})}).catch(e=>{Y("Fatal Error",e),eE()})};function eS(e){return!!e.startsWith("--")}function eL(e,t){let o=t.substr(4);(o=o.split(",")).forEach(t=>{if(null==window.open(`${e}${t}`,"_blank")){Y("Information","Allow pop-ups for this feature to work properly.");return}})}const ex="You must enter a search query to continue.",eC=document.querySelector(".autofillContainer"),eD=document.querySelector("#searchBarFocusMode");let eT="",e$=[];window.googleSuggestions=e=>{e$=[];let t=ea().value;e$=e[1],t&&(eO(t,e$),e_(t))};const eA=e=>{""!==eT&&document.body.removeChild(eT),(eT=document.createElement("script")).src=`https://suggestqueries.google.com/complete/search?client=firefox&callback=googleSuggestions&q=${e}`,document.body.appendChild(eT)},eN=e=>{let t=document.getElementById("search-btn-icon"),o=localStorage.getItem("default-search-icon");if(I(e)){t.className="fa fa-globe";return}if(eS(e)){t.className="fa fa-terminal";return}t.className=o},eM=()=>{eD.style.opacity="0",eC.style.paddingBlock="0em",eC.style.height="0px",setTimeout(()=>{eD.style.display="none"},200)},e_=e=>{let t=document.querySelectorAll(".autofillItem"),o=document.getElementById("searchbar");e.length&&(eD.style.display="block",setTimeout(()=>{if(t.length){let e=t[0].getBoundingClientRect(),n=e.height*t.length+1.5*e.height;eC.style.height=`${n}px`,eC.style.paddingBlockStart="0em",o.scrollIntoView()}eD.style.opacity="1",document.getElementById("downloadContainer").classList.contains("hidden")||eM()},1))},eF=()=>{document.querySelectorAll(".autofillItem").forEach(e=>{e.remove()})},eO=(e,t)=>{let o=JSON.parse(localStorage.getItem("autocompleteDatabase"));function n(e){ea().value=e.target.innerText;let t=new InputEvent("input");ea().dispatchEvent(t),ea().focus()}o||localStorage.setItem("autocompleteDatabase",b),(o=>{if(eF(),!e)return;let n=sessionStorage.getItem("searchbar-color-theme-drop");"bottom"==sessionStorage.getItem("searchbar-position-drop")?eC.style.flexDirection="column-reverse":eC.style.flexDirection="column";let l=0;for(let e of o){if(6==l)break;eC.insertAdjacentHTML("beforeend",` - `);let t=document.getElementsByClassName("autofillItemText");t[t.length-1].innerText=e,t[t.length-1].title=e,l++}for(let e of t){if(10==l)break;eL.insertAdjacentHTML("beforeend",` + `);let t=document.getElementsByClassName("autofillItemText");t[t.length-1].innerText=e,t[t.length-1].title=e,l++}for(let e of t){if(10==l)break;eC.insertAdjacentHTML("beforeend",` ${e} - `),l++}})(o.filter(t=>{if(t.toLowerCase()!=e.toLowerCase())return t.toLowerCase().includes(e.toLowerCase())})),document.querySelectorAll(".autofillItem").forEach(e=>{e.addEventListener("click",n),e.addEventListener("keydown",ec)}),document.querySelectorAll(".autofillItemRem").forEach(e=>{e.addEventListener("click",eF)})},e_=e=>{let t=JSON.parse(localStorage.getItem("autocompleteDatabase")),o=new Set(t);o.add(e);let n=Array.from(o);localStorage.setItem("autocompleteDatabase",JSON.stringify(n))},eF=e=>{let t=e.target.parentNode.children[0].innerText,o=JSON.parse(localStorage.getItem("autocompleteDatabase")),n=new Set(o);console.log(n.delete(t));let l=Array.from(n);localStorage.setItem("autocompleteDatabase",JSON.stringify(l))};let eO=null;function ej(){eO&&eO.classList.toggle("loader"),eO=null}function eP(e){e.stopPropagation(),ej();let t=e.target;eO=t,t.classList.toggle("loader")}function eH(){let e=localStorage.getItem("userName");if(e){k.show("Update your name","Maximum length allowed is 17 characters.",["Change name to"],"Update","Cancel",null,[E,null],()=>{k.getInputFields()[0].setAttribute("maxlength",17),k.getInputFields()[0].value=e}).then(t=>{e=t.inputValues[0],localStorage.setItem("userName",e),P(),et()}).catch(e=>{console.error(e)});return}if(!e){let t=k.show("Welcome to Casa Mia",`Hi! We are so excited to see you here. - Please fill out the following details before moving forward. `,["Your name"],"Proceed",null,null,[E,null],()=>{k.getInputFields()[0].setAttribute("maxlength",17)});return t.then(t=>{e=t.inputValues[0],localStorage.setItem("userName",e),localStorage.setItem("onBoarding","1")}).catch(e=>{console.error(e)}),t}}function eR(){let e=document.getElementsByTagName("select"),t={};for(let o of e)t[o.id]=o.value;localStorage.setItem("advDropdownValues",JSON.stringify(t)),j()}function eV(e){document.documentElement.style.setProperty("--blur-one-em",`blur(${e}em)`),document.documentElement.style.setProperty("--blur-one-px",`blur(${e}px)`)}let eq=!1;function eJ(){let e=new Date;11==e.getMonth()&&e.getDate()>17&&32>e.getDate()&&function(){let e=document.getElementById("canvasFar"),t=e.getContext("2d"),o=window.innerWidth,n=window.innerHeight;e.width=o,e.height=n;let l=[];for(let e=0;e<50;e++)l.push({x:Math.random()*o,y:Math.random()*n,r:4*Math.random()+1,d:50*Math.random()});t.fillStyle="rgba(255, 255, 255, 0.5)",e.style.display="block",eq=!1,window.requestAnimationFrame(function e(){t.clearRect(0,0,o,n),t.beginPath();for(let e=0;e<50;e++){let o=l[e];t.moveTo(o.x,o.y),t.arc(o.x,o.y,o.r,0,2*Math.PI,!0)}t.fill(),function(){for(let e=0;e<50;e++){let t=l[e];t.y+=Math.cos(t.d)+1+t.r/10,(t.x>o+5||t.x<-5||t.y>n)&&e%3>0&&(l[e]={x:Math.random()*o,y:-10,r:t.r,d:t.d})}}(),eq||window.requestAnimationFrame(e)})}()}const eU=document.getElementById("wallpapers"),eW=document.getElementById("wrap"),eY=document.getElementById("toggle-labs-btn"),ez=document.getElementById("advanced-settings-modal"),eG=document.getElementById("advanced-settings-modal-background-overlay");let eK=!1,eQ=!1;const eX=e=>{switch(ej(),e){case"close":document.title=document.title.replace("Backgrounds","Search"),history.pushState({loc:"home"},"","?home"),eU.classList.remove("animation_slide_up"),setTimeout(()=>eY.classList.remove("advanced-settings-button-right"),350),eU.classList.add("animation_slide_down"),eW.classList.remove("animation2_slide_up"),eW.classList.add("animation2_slide_down"),clearTimeout(g),C("hide"),ed("hide"),z(null,0),setTimeout(()=>eV(1),400),eQ=!1;break;case"open":eU.style.display="flex",eV(0),eU.classList.remove("animation_slide_down"),eU.classList.add("animation_slide_up"),eW.classList.remove("animation2_slide_down","startup_slide_down"),eW.classList.add("animation2_slide_up"),setTimeout(()=>{eY.classList.add("advanced-settings-button-right"),function(){let e=document.getElementsByClassName("highlighted")[0];setTimeout(()=>{e&&e.scrollIntoView({inline:"center"})},10)}()},350),z(null,1),g=setTimeout(()=>C("show"),450),ed("show"),document.title=document.title.replace("Search","Backgrounds"),history.pushState({loc:"backgrounds"},"","?backgrounds"),eQ=!0}};function eZ(){eX("close"),history.pushState({loc:"settings"},"","?settings"),setTimeout(()=>eV(0),420),document.title=document.title.replace("Search","Settings"),document.body.classList.add("justifySpaceBetween"),eW.style.display="none",ez.style.display="block",eG.style.display="block",eK=!0}function e0(){document.title=document.title.replace("Settings","Search"),history.pushState({loc:"home"},"","?home"),document.body.classList.remove("justifySpaceBetween"),eW.style.display="block",ez.style.display="none",eG.style.display="none",setTimeout(()=>eV(1),100),eK=!1}window.createNewBookmark=()=>{let e=` - You may only use upto four letters as the bookmark name.`;k.show("Add new bookmark",e,["Bookmark name","Link to website"],"Save",void 0,null,[()=>E(null,!0),null],()=>{let e=k.getInputFields()[0];e.setAttribute("maxlength",4),e.setAttribute("placeholder","e.g. YT");let t=k.getInputFields()[1];t.setAttribute("placeholder","e.g. youtube.com"),t.value="https://",navigator.clipboard.readText().then(e=>{I(e)&&(t.value=e.replaceAll(" ",""))}).catch(e=>{console.log(e)})}).then(e=>{let t=Date.now(),o=e.inputValues[0],n=e.inputValues[1].replaceAll(" ","");n.startsWith("http")||(n=`https://${n}`),S(n,o,t),x(n,o,t)}).catch(e=>console.log(e))},window.changeWallpaper=e=>{var t;e.stopPropagation();let o=e.target.title;o||(o=e.target.childNodes[1].title);let n=(t=o,[G.filter(e=>e.title==t)[0].file,G.filter(e=>e.title==t)[0].color[1]]);K(n[0],n[1]),X()},es("export-bookmarks-btn","click",function(e){e.stopPropagation();let t=localStorage.saved_bookmarks,o=new Date;D(`casamia-bookmarks-only-${o.getFullYear()}-${o.getMonth()+1}-${o.getDate()}.json`,t)}),es("import-bookmarks-btn","change",eo),es("export-backup-btn","click",function(e){e.stopPropagation();let t=JSON.stringify({...localStorage}),o=new Date;D(`casamia-full-backup-${o.getFullYear()}-${o.getMonth()+1}-${o.getDate()}.json`,t)}),es("import-backup-btn","change",function(e,t=""){let o;e?(e.stopPropagation(),o=e.target.files[0].text()):o=t,o.then(function(t){let o=JSON.parse(t);if(o.onBoarding){let e=Object.keys(o);e.forEach((t,n)=>{localStorage.setItem(t,o[e[n]])}),window.location.reload()}else console.log(o),Y("Failed","The backup does not seem to be valid."),e.target.value=null})}),es("download-wallpaper-btn","click",function(){let e=document.createElement("a"),t=function(e,t){let o=e.split(".");return o[o.length-1]="png",o.join(".")}(r,0);e.setAttribute("href","./assets/wallpapers-hi-res/"+t),e.setAttribute("download",t),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)}),es("toggle-favicons-btn","click",function(e){let t=document.getElementsByClassName("custom_bookmark"),o=document.getElementsByClassName("custom_link_name");for(let e=0;e{!function(e){document.getElementById(e).classList.toggle("nested-close")}("deep-search-nested");let t=document.getElementById("deep-search-btn-arrow");t.classList.toggle("fa-angle-down"),t.classList.toggle("fa-angle-up")}),es("update-customdomain-btn","click",_),es("fetch-bookmarks-btn","click",er),es("reset-bookmarks-btn","click",en),es("reset-all-btn","click",el),es("modal-close-btn","click",e0),es("toggle-labs-btn","click",eZ),es("search-btn","click",function(){let e=ea().value;if(""!=e){if(e_(e),I(e)&&!e.includes(" ")){window.open(e,"_self");return}if(eI(e))!function(e){let t=e.toLowerCase();t=(t=t.split("--").join("")).split(" ");let o=e.split("--").join("").split(" ");switch(t[0]){case"help":window.open("/pages/help/index.html","_self");break;case"reset":"bookmarks"==t[1]?en():"history"==t[1]?(localStorage.setItem("autocompleteDatabase",b),window.location.reload()):"all"==t[1]?el():Y("Error",V);break;case"fetch":"default"==t[1]?er():Y("Error",V);break;case"dl":t[1]?ek(null,o[1]):Y("Failed","Enter a valid YT address");break;case"clock":window.open("./pages/clock","_self");break;case"count":window.open("./pages/countdown","_self");break;case"g":eE(h,e);break;case"b":eE(f,e);break;case"d":eE(y,e);break;default:Y("Error",V)}}(e);else{let t;e=encodeURIComponent(e);let o=(null==(t=localStorage.getItem("default-search-url"))&&(localStorage.setItem("default-search-url",h),t=localStorage.getItem("default-search-url")),t+e);window.open(o,"_self")}}else eg.show(eB)}),es("movies-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/Movies/time/desc/1/";window.open(t)}else eg.show(eB)}),es("tv-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/TV/size/desc/1/";window.open(t)}else eg.show(eB)}),es("games-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/Games/time/desc/1/";window.open(t)}else eg.show(eB)}),es("ebooks-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/Other/seeders/desc/1/";window.open(t)}else eg.show(eB)}),es("downloader-button","click",ek),es("searchTerm","input",function(e){let t=sessionStorage.getItem("input"),o=e.target.value;if(sessionStorage.setItem("input",o),eT(o),!o){eA(),setTimeout(()=>{e$()},1);return}eN(o),o!=t&&eD(o)}),es("searchTerm","click",()=>{let e=new InputEvent("input");ea().dispatchEvent(e)}),es("searchBarFocusMode","click",e$),es("searchTerm","keypress",function(e){"Enter"==e.key&&document.querySelector("#search-btn").click()}),es("fetch-bookmarks-btn","click",er),es("left-arrow","click",e=>{e.stopPropagation(),eu("widget-slide",-1)}),es("right-arrow","click",e=>{e.stopPropagation(),eu("widget-slide",1)}),window.addEventListener("resize",()=>{j(),eJ()}),window.addEventListener("blur",()=>{ej()}),window.addEventListener("appinstalled",e=>{console.log("installed")}),onload=e=>{document.getElementById("main-heading-slider").classList.remove("nowrap")},es("settings_button","click",e=>{eQ?eX("close",e):eQ||eX("open",e)});const e1=()=>{let e;let t=document.body,o=()=>{clearInterval(e),e=null},n=t=>{["gradient_overlay","wrap","bookmarks","autofillContainer","flex-main-container-vertical","subtitle","footer"].includes(t.target.id)&&(e=setInterval(()=>{eQ?eX("close"):eQ||eX("open"),o()},eQ?1:250))};return t.addEventListener("mousedown",n),t.addEventListener("mouseup",o),t.addEventListener("mouseout",o),t.addEventListener("touchstart",n),t.addEventListener("touchend",o),t.addEventListener("touchcancel",o),()=>{t.removeEventListener("mousedown",n),t.removeEventListener("mouseup",o),t.removeEventListener("mouseout",o),t.removeEventListener("touchstart",n),t.removeEventListener("touchend",o),t.removeEventListener("touchcancel",o),console.log("un-focuss",e)}},e5=()=>{window.addEventListener("popstate",e=>{eQ?eX("close"):eK?e0():eQ||eK||(history.go(-1),console.log("cant go back anymore",-history.length-1))});let e=window.location.href;(e=e.split("/?")[1])?"settings"==e?eZ():"backgrounds"==e&&eX("open"):history.pushState({loc:"home"},"","?home")},e2=()=>{let e;let t=document.getElementById("btn-install");j(),function(){if(null==L){L=[];return}for(let e of L)S(e.link,e.name,e.id)}(),function(){for(let e of Object.entries(JSON.parse(localStorage.getItem("advDropdownValues")))){let t=document.getElementById(e[0]);t&&(t.value=e[1])}}(),eW.style.opacity=1,fetch(w+"wallpapers_list.json").then(e=>{e.text().then(e=>{G=JSON.parse(e),r=localStorage.getItem("wallpaper"),d=G.filter(e=>e.file==r)[0].color[1],K(r,d),function(){let e=document.getElementById("wallpapers");for(let t of G){let o=t.file;o=o.split(".").join("-thumb.");let n=document.createElement("div");n.className="thumb-group",n.setAttribute("onclick","changeWallpaper(event)"),n.setAttribute("onkeypress","click_to_enter(event)"),n.setAttribute("tabindex","3");let l=document.createElement("div");l.innerHTML=t.title,l.className="thumb-title",n.appendChild(l);let a=document.createElement("img");a.src=w+o,a.className="thumbnail",a.title=t.title,a.setAttribute("draggable","false"),n.appendChild(a),e.appendChild(n)}}(),X()})}).catch(e=>{console.log(e),window.open("./pages/error","_self")}),X(),e1(),ei("clickable","keypress",ec),ei("custom_bookmark","click",eP),function(e,t,o){let n=document.getElementsByTagName(e);for(let e=0;e{e.prompt(),e.userChoice.then(t=>{"accepted"===t.outcome&&console.log("user accepted prompt"),e=null})}),window.addEventListener("beforeinstallprompt",o=>{o.preventDefault(),e=o,t.style.display="block"}),"1"==document.getElementById("searchbar").style.order&&window.scrollTo(0,document.body.scrollHeight),"on"==sessionStorage.getItem("focus")&&(document.getElementById("searchTerm").focus(),document.getElementById("searchTerm").click()),function(e){fetch("https://api.github.com/repos/lscambo13/casamia/commits/HEAD").then(t=>{t.json().then(t=>{let o=new Date(t.commit.committer.date).toISOString();o=(o=o.slice(0,o.length-5)).replaceAll("T","-").replaceAll(":","").replaceAll("-","."),document.getElementById(e).innerHTML=`Version ${o}`}).catch(e=>{console.error("getLastUpdated",e)})}).catch(e=>{console.error("getLastUpdated",e)})}("version-preview"),eJ(),document.getElementById(localStorage.getItem("selected-widget-style")).scrollIntoView(),setTimeout(()=>{!function(e,t){let o=document.getElementsByClassName(t),n={root:document.getElementById(e),rootMargin:"0px",threshold:.5},l=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&localStorage.setItem("selected-widget-style",e.target.id)})},n);for(let e of o)l.observe(e)}("main-heading-slider","widget-slide")},500),e5()};document.addEventListener("DOMContentLoaded",()=>{"1"==localStorage.getItem("onBoarding")?(e2(),console.log("Already onboard.")):(console.log("Onboarding..."),(function(){let e=eH();return localStorage.setItem("onBoarding","0"),localStorage.setItem("advDropdownValues",JSON.stringify(v)),localStorage.setItem("wallpaper","085.webp"),localStorage.setItem("autocompleteDatabase",b),localStorage.setItem("selected-widget-style","widget-1"),e})().then(()=>{window.matchMedia("(hover: none)").matches&&setTimeout(()=>{Y("Information","Press and hold on empty area to open settings.")},5e3),e2(),console.log("Onboarding complete.")}))},{once:!0}); -//# sourceMappingURL=index.7127f171.js.map + `),l++}})(o.filter(t=>{if(t.toLowerCase()!=e.toLowerCase())return t.toLowerCase().includes(e.toLowerCase())})),document.querySelectorAll(".autofillItem").forEach(e=>{e.addEventListener("click",n),e.addEventListener("keydown",ec)}),document.querySelectorAll(".autofillItemRem").forEach(e=>{e.addEventListener("click",eP)})},ej=e=>{let t=JSON.parse(localStorage.getItem("autocompleteDatabase")),o=new Set(t);o.add(e);let n=Array.from(o);localStorage.setItem("autocompleteDatabase",JSON.stringify(n))},eP=e=>{let t=e.target.parentNode.children[0].innerText,o=JSON.parse(localStorage.getItem("autocompleteDatabase")),n=new Set(o);console.log(n.delete(t));let l=Array.from(n);localStorage.setItem("autocompleteDatabase",JSON.stringify(l))};let eH=null;function eV(){eH&&eH.classList.toggle("loader"),eH=null}function eU(e){e.stopPropagation(),eV();let t=e.target;eH=t,t.classList.toggle("loader")}function eq(){let e=localStorage.getItem("userName");if(e){v.show("Update your name","Maximum length allowed is 17 characters.",["Change name to"],"Update","Cancel",null,[E,null],()=>{v.getInputFields()[0].setAttribute("maxlength",17),v.getInputFields()[0].value=e}).then(t=>{e=t.inputValues[0],localStorage.setItem("userName",e),P(),et()}).catch(e=>{console.error(e)});return}if(!e){let t=v.show("Welcome to Casa Mia",`Hi! We are so excited to see you here. + Please fill out the following details before moving forward. `,["Your name"],"Proceed",null,null,[E,null],()=>{v.getInputFields()[0].setAttribute("maxlength",17)});return t.then(t=>{e=t.inputValues[0],localStorage.setItem("userName",e),localStorage.setItem("onBoarding","1")}).catch(e=>{console.error(e)}),t}}function eJ(){let e=document.getElementsByTagName("select"),t={};for(let o of e)t[o.id]=o.value;localStorage.setItem("advDropdownValues",JSON.stringify(t)),j()}function eR(e){document.documentElement.style.setProperty("--blur-one-em",`blur(${e}em)`),document.documentElement.style.setProperty("--blur-one-px",`blur(${e}px)`)}let eW=!1;function eY(){let e=new Date;11==e.getMonth()&&e.getDate()>17&&32>e.getDate()&&function(){let e=document.getElementById("canvasFar"),t=e.getContext("2d"),o=window.innerWidth,n=window.innerHeight;e.width=o,e.height=n;let l=[];for(let e=0;e<50;e++)l.push({x:Math.random()*o,y:Math.random()*n,r:4*Math.random()+1,d:50*Math.random()});t.fillStyle="rgba(255, 255, 255, 0.5)",e.style.display="block",eW=!1,window.requestAnimationFrame(function e(){t.clearRect(0,0,o,n),t.beginPath();for(let e=0;e<50;e++){let o=l[e];t.moveTo(o.x,o.y),t.arc(o.x,o.y,o.r,0,2*Math.PI,!0)}t.fill(),function(){for(let e=0;e<50;e++){let t=l[e];t.y+=Math.cos(t.d)+1+t.r/10,(t.x>o+5||t.x<-5||t.y>n)&&e%3>0&&(l[e]={x:Math.random()*o,y:-10,r:t.r,d:t.d})}}(),eW||window.requestAnimationFrame(e)})}()}const ez=document.getElementById("wallpapers"),eG=document.getElementById("wrap"),eQ=document.getElementById("toggle-labs-btn"),eK=document.getElementById("advanced-settings-modal"),eX=document.getElementById("advanced-settings-modal-background-overlay");let eZ=!1,e0=!1;const e1=e=>{switch(eV(),e){case"close":document.title=document.title.replace("Backgrounds","Search"),history.pushState({loc:"home"},"","?home"),ez.classList.remove("animation_slide_up"),setTimeout(()=>eQ.classList.remove("advanced-settings-button-right"),350),ez.classList.add("animation_slide_down"),eG.classList.remove("animation2_slide_up"),eG.classList.add("animation2_slide_down"),clearTimeout(g),C("hide"),ed("hide"),z(null,0),setTimeout(()=>eR(1),400),e0=!1;break;case"open":ez.style.display="flex",eR(0),ez.classList.remove("animation_slide_down"),ez.classList.add("animation_slide_up"),eG.classList.remove("animation2_slide_down","startup_slide_down"),eG.classList.add("animation2_slide_up"),setTimeout(()=>{eQ.classList.add("advanced-settings-button-right"),function(){let e=document.getElementsByClassName("highlighted")[0];setTimeout(()=>{e&&e.scrollIntoView({inline:"center"})},10)}()},350),z(null,1),g=setTimeout(()=>C("show"),450),ed("show"),document.title=document.title.replace("Search","Backgrounds"),history.pushState({loc:"backgrounds"},"","?backgrounds"),e0=!0}};function e5(){e1("close"),history.pushState({loc:"settings"},"","?settings"),setTimeout(()=>eR(0),420),document.title=document.title.replace("Search","Settings"),document.body.classList.add("justifySpaceBetween"),eG.style.display="none",eK.style.display="block",eX.style.display="block",eZ=!0}function e2(){document.title=document.title.replace("Settings","Search"),history.pushState({loc:"home"},"","?home"),document.body.classList.remove("justifySpaceBetween"),eG.style.display="block",eK.style.display="none",eX.style.display="none",setTimeout(()=>eR(1),100),eZ=!1}window.createNewBookmark=()=>{let e=` + You may only use upto four letters as the bookmark name.`;v.show("Add new bookmark",e,["Bookmark name","Link to website"],"Save",void 0,null,[()=>E(null,!0),null],()=>{let e=v.getInputFields()[0];e.setAttribute("maxlength",4),e.setAttribute("placeholder","e.g. YT");let t=v.getInputFields()[1];t.setAttribute("placeholder","e.g. youtube.com"),t.value="https://",navigator.clipboard.readText().then(e=>{I(e)&&(t.value=e.replaceAll(" ",""))}).catch(e=>{console.log(e)})}).then(e=>{let t=Date.now(),o=e.inputValues[0],n=e.inputValues[1].replaceAll(" ","");n.startsWith("http")||(n=`https://${n}`),L(n,o,t),x(n,o,t)}).catch(e=>console.log(e))},window.changeWallpaper=e=>{var t;e.stopPropagation();let o=e.target.title;o||(o=e.target.childNodes[1].title);let n=(t=o,[G.filter(e=>e.title==t)[0].file,G.filter(e=>e.title==t)[0].color[1]]);Q(n[0],n[1]),X()},es("export-bookmarks-btn","click",function(e){e.stopPropagation();let t=localStorage.saved_bookmarks,o=new Date;D(`casamia-bookmarks-only-${o.getFullYear()}-${o.getMonth()+1}-${o.getDate()}.json`,t)}),es("import-bookmarks-btn","change",eo),es("export-backup-btn","click",function(e){e.stopPropagation();let t=JSON.stringify({...localStorage}),o=new Date;D(`casamia-full-backup-${o.getFullYear()}-${o.getMonth()+1}-${o.getDate()}.json`,t)}),es("import-backup-btn","change",function(e,t=""){let o;e?(e.stopPropagation(),o=e.target.files[0].text()):o=t,o.then(function(t){let o=JSON.parse(t);if(o.onBoarding){let e=Object.keys(o);e.forEach((t,n)=>{localStorage.setItem(t,o[e[n]])}),window.location.reload()}else console.log(o),Y("Failed","The backup does not seem to be valid."),e.target.value=null})}),es("download-wallpaper-btn","click",function(){let e=document.createElement("a"),t=function(e,t){let o=e.split(".");return o[o.length-1]="png",o.join(".")}(r,0);e.setAttribute("href","./assets/wallpapers-hi-res/"+t),e.setAttribute("download",t),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)}),es("toggle-favicons-btn","click",function(e){let t=document.getElementsByClassName("custom_bookmark"),o=document.getElementsByClassName("custom_link_name");for(let e=0;e{!function(e){document.getElementById(e).classList.toggle("nested-close")}("deep-search-nested");let t=document.getElementById("deep-search-btn-arrow");t.classList.toggle("fa-angle-down"),t.classList.toggle("fa-angle-up")}),es("update-customdomain-btn","click",_),es("fetch-bookmarks-btn","click",er),es("reset-bookmarks-btn","click",en),es("reset-all-btn","click",el),es("modal-close-btn","click",e2),es("toggle-labs-btn","click",e5),es("search-btn","click",function(){let e=ea().value;if(""!=e){if(ej(e),I(e)&&!e.includes(" ")){window.open(e,"_self");return}if(eS(e))!function(e){let t=e.toLowerCase();t=(t=t.split("--").join("")).split(" ");let o=e.split("--").join("").split(" ");switch(t[0]){case"help":window.open("/pages/help/index.html","_self");break;case"reset":"bookmarks"==t[1]?en():"history"==t[1]?(localStorage.setItem("autocompleteDatabase",b),window.location.reload()):"all"==t[1]?el():Y("Error",U);break;case"fetch":"default"==t[1]?er():Y("Error",U);break;case"dl":t[1]?eB(null,o[1]):Y("Failed","Enter a valid YT address");break;case"clock":window.open("./pages/clock","_self");break;case"count":window.open("./pages/countdown","_self");break;case"g":eL(h,e);break;case"b":eL(f,e);break;case"d":eL(y,e);break;default:Y("Error",U)}}(e);else{let t;e=encodeURIComponent(e);let o=(null==(t=localStorage.getItem("default-search-url"))&&(localStorage.setItem("default-search-url",h),t=localStorage.getItem("default-search-url")),t+e);window.open(o,"_self")}}else eg.show(ex)}),es("movies-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/Movies/time/desc/1/";window.open(t)}else eg.show(ex)}),es("tv-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/TV/size/desc/1/";window.open(t)}else eg.show(ex)}),es("games-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/Games/time/desc/1/";window.open(t)}else eg.show(ex)}),es("ebooks-search","click",function(){let e=ea().value;if(""!=e){let t=p+(e=encodeURIComponent(e))+"/Other/seeders/desc/1/";window.open(t)}else eg.show(ex)}),es("downloader-button","click",eB),es("searchTerm","input",function(e){let t=sessionStorage.getItem("input"),o=e.target.value;if(sessionStorage.setItem("input",o),eN(o),!o){eF(),setTimeout(()=>{eM()},1);return}e_(o),o!=t&&eA(o)}),es("searchTerm","click",()=>{let e=new InputEvent("input");ea().dispatchEvent(e)}),es("searchBarFocusMode","click",eM),es("searchTerm","keypress",function(e){"Enter"==e.key&&document.querySelector("#search-btn").click()}),es("fetch-bookmarks-btn","click",er),es("left-arrow","click",e=>{e.stopPropagation(),eu("widget-slide",-1)}),es("right-arrow","click",e=>{e.stopPropagation(),eu("widget-slide",1)}),window.addEventListener("resize",()=>{j(),eY()}),window.addEventListener("blur",()=>{eV()}),window.addEventListener("appinstalled",e=>{console.log("installed")}),onload=e=>{document.getElementById("main-heading-slider").classList.remove("nowrap")},es("settings_button","click",e=>{e0?e1("close",e):e0||e1("open",e)});const e3=()=>{let e;let t=document.body,o=()=>{clearInterval(e),e=null},n=t=>{["gradient_overlay","wrap","bookmarks","autofillContainer","flex-main-container-vertical","subtitle","footer"].includes(t.target.id)&&(e=setInterval(()=>{e0?e1("close"):e0||e1("open"),o()},e0?1:250))};return t.addEventListener("mousedown",n),t.addEventListener("mouseup",o),t.addEventListener("mouseout",o),t.addEventListener("touchstart",n),t.addEventListener("touchend",o),t.addEventListener("touchcancel",o),()=>{t.removeEventListener("mousedown",n),t.removeEventListener("mouseup",o),t.removeEventListener("mouseout",o),t.removeEventListener("touchstart",n),t.removeEventListener("touchend",o),t.removeEventListener("touchcancel",o),console.log("un-focuss",e)}},e4=()=>{window.addEventListener("popstate",e=>{e0?e1("close"):eZ?e2():e0||eZ||(history.go(-1),console.log("cant go back anymore",-history.length-1))});let e=window.location.href;(e=e.split("/?")[1])?"settings"==e?e5():"backgrounds"==e&&e1("open"):history.pushState({loc:"home"},"","?home")},e7=()=>{let e;let t=document.getElementById("btn-install");j(),function(){if(null==S){S=[];return}for(let e of S)L(e.link,e.name,e.id)}(),function(){for(let e of Object.entries(JSON.parse(localStorage.getItem("advDropdownValues")))){let t=document.getElementById(e[0]);t&&(t.value=e[1])}}(),eG.style.opacity=1,fetch(w+"wallpapers_list.json").then(e=>{e.text().then(e=>{G=JSON.parse(e),r=localStorage.getItem("wallpaper"),d=G.filter(e=>e.file==r)[0].color[1],Q(r,d),function(){let e=document.getElementById("wallpapers");for(let t of G){let o=t.file;o=o.split(".").join("-thumb.");let n=document.createElement("div");n.className="thumb-group",n.setAttribute("onclick","changeWallpaper(event)"),n.setAttribute("onkeypress","click_to_enter(event)"),n.setAttribute("tabindex","3");let l=document.createElement("div");l.innerHTML=t.title,l.className="thumb-title",n.appendChild(l);let a=document.createElement("img");a.src=w+o,a.className="thumbnail",a.title=t.title,a.setAttribute("draggable","false"),n.appendChild(a),e.appendChild(n)}}(),X()})}).catch(e=>{console.log(e),window.open("./pages/error","_self")}),X(),e3(),ei("clickable","keypress",ec),ei("custom_bookmark","click",eU),function(e,t,o){let n=document.getElementsByTagName(e);for(let e=0;e{e.prompt(),e.userChoice.then(t=>{"accepted"===t.outcome&&console.log("user accepted prompt"),e=null})}),window.addEventListener("beforeinstallprompt",o=>{o.preventDefault(),e=o,t.style.display="block"}),"1"==document.getElementById("searchbar").style.order&&window.scrollTo(0,document.body.scrollHeight),"on"==sessionStorage.getItem("focus")&&(document.getElementById("searchTerm").focus(),document.getElementById("searchTerm").click()),function(e){fetch("https://api.github.com/repos/lscambo13/casamia/commits/HEAD").then(t=>{t.json().then(t=>{let o=new Date(t.commit.committer.date).toISOString();o=(o=o.slice(0,o.length-5)).replaceAll("T","-").replaceAll(":","").replaceAll("-","."),document.getElementById(e).innerHTML=`Version ${o}`}).catch(e=>{console.error("getLastUpdated",e)})}).catch(e=>{console.error("getLastUpdated",e)})}("version-preview"),eY(),document.getElementById(localStorage.getItem("selected-widget-style")).scrollIntoView(),setTimeout(()=>{!function(e,t){let o=document.getElementsByClassName(t),n={root:document.getElementById(e),rootMargin:"0px",threshold:.5},l=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&localStorage.setItem("selected-widget-style",e.target.id)})},n);for(let e of o)l.observe(e)}("main-heading-slider","widget-slide")},500),e4()};document.addEventListener("DOMContentLoaded",()=>{"1"==localStorage.getItem("onBoarding")?(e7(),console.log("Already onboard.")):(console.log("Onboarding..."),(function(){let e=eq();return localStorage.setItem("onBoarding","0"),localStorage.setItem("advDropdownValues",JSON.stringify(k)),localStorage.setItem("wallpaper","085.webp"),localStorage.setItem("autocompleteDatabase",b),localStorage.setItem("selected-widget-style","widget-1"),e})().then(()=>{window.matchMedia("(hover: none)").matches&&setTimeout(()=>{Y("Information","Press and hold on empty area to open settings.")},5e3),e7(),console.log("Onboarding complete.")}))},{once:!0}); +//# sourceMappingURL=index.23841bf8.js.map diff --git a/dist/index.c6d72aa4.css b/dist/index.c681bc15.css similarity index 78% rename from dist/index.c6d72aa4.css rename to dist/index.c681bc15.css index 52a495a..1923035 100644 --- a/dist/index.c6d72aa4.css +++ b/dist/index.c681bc15.css @@ -1,2 +1,2 @@ -:root{--selection-color:null;--white:#fbfaf8;--white-half-alpha:#fbfaf892;--white-quarter-alpha:#fbfaf843;--white-low-alpha:#fbfaf815;--dark:#060604;--dark-low-alpha:#0606042c;--accent-color:#bb377d;--highlight-color:#dfb669;--predefined-bookmark:#6856347e;--custom-bookmark:#3535357e;--add-bookmark:#4d685a7e;--settings:#4d685a7e;--primary-color:#faf7f0;--secondary-color:#e7decd;--blur-one-em:blur(1em);--blur-one-px:blur(1px);--blur-half-em:blur(.5em);--cross-display:none}::selection{background:var(--selection-color)}#canvasFar{z-index:0;background-image:linear-gradient(#ffffff40 0%,#ebebff00 60%);display:none;position:fixed;top:0}.disable-select{-webkit-user-select:none;user-select:none}*{caret-color:#0000;scroll-behavior:smooth;outline-color:var(--selection-color);outline-offset:-1px;outline-width:1px;margin:0;padding:0;box-sizing:border-box!important}body{background-color:#282828;flex-direction:column;justify-content:space-between;align-items:center;min-height:100svh;font-family:Ubuntu Mono,monospace;font-size:12px;display:flex}.button{opacity:1;background-color:#ececec;border:1px solid #cecece80;border-radius:6px;width:7em;height:2.5em;font-family:Ubuntu;font-size:.85em;font-weight:400;transition:all .1s}.tinyButton{min-width:1.75em;max-width:1.75em;min-height:1.75em;max-height:1.75em;padding-bottom:2px}.notifyLoader{opacity:.1;width:100%;margin-top:1em;margin-bottom:-1em}.button:disabled{opacity:.75;background-color:#fff}.button:hover{background-color:#fff}.button:active{opacity:.75}.deleteButton{color:tomato}.justifySpaceBetween{justify-content:space-between!important}#overlay{z-index:0;cursor:auto;background-color:#00000060;width:100%;height:100%;transition:all .3s;display:block;position:fixed;inset:0}#gradient_overlay{opacity:0;z-index:0;cursor:auto;width:100%;height:100%;transition:all .3s;display:block;position:fixed;bottom:0;left:0;right:0}.header{color:var(--primary-color);z-index:13;background-color:#2684e15c;justify-content:space-between;gap:.25em;width:100%;height:3em;padding:.5em;font-size:.75em;display:none;position:fixed;top:0;left:0}.header-left-block{align-items:center;gap:1em;display:flex}.user-avatar{border-radius:50%;width:2em;height:2em}.user-name{text-align:center}.header-right-block{align-items:center;gap:1em;display:flex}#wrap{opacity:0;z-index:2;width:100%;max-width:1280px;transition:all .125s;display:block}body::-webkit-scrollbar{-ms-overflow-style:none;display:none}.flex-main-container-vertical{flex-direction:column;margin:auto;display:flex}#home-widget-container{color:var(--primary-color);cursor:default;text-align:center;justify-content:center;align-items:flex-end;width:100%;margin-bottom:.5em;padding-inline:0;font-size:2em;display:flex;top:0;left:0}.home-widget{flex-direction:column;max-width:90%;display:flex}#main-heading-slider{scroll-snap-type:x mandatory;max-width:100%;padding-block-end:.125em;transition:all .5s;display:flex;overflow:scroll hidden}#main-heading-slider *{scroll-snap-align:center;scroll-snap-stop:always;flex:1;min-width:100%;margin-bottom:-.25em}#main-heading-slider::-webkit-scrollbar{height:8px;display:none}#main-heading-slider::-webkit-scrollbar-track{border-radius:10px;box-shadow:inset 0 0 5px gray}#main-heading-slider::-webkit-scrollbar-thumb{background:var(--accent-color);border-radius:10px}.default-text-style{color:var(--primary-color);font-family:Ubuntu;font-size:2em;line-height:2em;rotate:none;text-shadow:0 0 0 var(--accent-color),0 0 0 #000!important}.brush-text-style-1{color:#f5f5f5;text-shadow:4px 4px 0 var(--accent-color),6px 6px 0 #000;font-family:Vujahday Script,handwriting;font-size:2.25em;line-height:1.5em;rotate:-6deg}.brush-text-style-2{color:#f5f5f5;font-family:Advent Pro,sans-serif;font-size:2.25em;line-height:1.9em}.brush-text-style-3{color:#f5f5f5;text-shadow:4px 4px 0 var(--accent-color),6px 6px 0 #000;font-family:Nanum Brush Script,handwriting;font-size:2.8em;line-height:1.375em;rotate:none}.brush-text-style-4{color:#f5f5f5;text-shadow:1px 1px #000;font-family:Are You Serious,handwriting;font-size:2.5em;line-height:1.5em;rotate:none}.brush-text-style-5{color:#f5f5f5;text-shadow:1px 1px #000;font-family:Alkatra,display;font-size:2.25em;line-height:1.75em;rotate:none}.brush-text-style-6{color:#f5f5f5;text-shadow:1px 1px #000;font-family:Montez,handwriting;font-size:2.5em;line-height:1.5em;rotate:none}.separator{opacity:0}.separator-visible{opacity:1}.nowrap{text-wrap:nowrap}.arrows{opacity:.85;z-index:5;text-shadow:0 2px #000;height:0;font-size:1em;transition:all .25s;overflow:hidden}.arrows:hover{opacity:1}.arrows:active{opacity:.5;text-shadow:0 0 #000}#subtitle{font-family:Ubuntu;font-size:.65em}.search{text-align:center;cursor:default;z-index:2;flex-wrap:wrap;justify-content:center;align-items:stretch;width:100%;height:3em;margin-bottom:2em;padding-top:.5em;display:flex;position:relative}.searchBarFocusMode{opacity:0;-webkit-backdrop-filter:blur(.5em);backdrop-filter:blur(.5em);background-color:#ffffff1f;width:100%;height:100%;transition:all .2s;display:none;position:fixed;top:0}.searchContainer{z-index:2;border-radius:1.5em;order:1;justify-content:center;align-items:center;width:100%;min-width:4em;max-width:44em;height:3em;margin-inline:1.85em;display:flex;overflow:hidden}.searchContainer:has(.searchTerm:focus){border-radius:1em}.searchTerm{background:0 0;border:0;outline:0;width:100%;height:100%;padding:0 2em 0 1em;font-size:1em}.autofillContainer{background-color:#0000;justify-content:flex-start;align-items:center;width:calc(100% - 3.5em);min-width:4em;max-width:44em;height:0;padding-inline:.1em;transition:all .125s;display:flex;position:absolute;overflow:hidden}.autofillItem{z-index:2;border-radius:.5em;justify-content:space-between;align-items:center;width:100%;min-width:4em;max-width:44em;min-height:2.25em;max-height:2.25em;margin-block-start:.25em;padding-inline:1em;font-family:Ubuntu;font-weight:100;display:flex;box-shadow:0 2px 2px #0000002e;border:1px solid #0000!important}.autofillItem span{text-wrap:nowrap;text-overflow:ellipsis;white-space:nowrap;text-align:start;max-width:95%;overflow:hidden}input::-webkit-search-cancel-button{opacity:.5;margin-inline:.7em -1.25em;padding:.15em;transition:all .2s}input::-webkit-search-cancel-button:hover{opacity:.75}input::-webkit-search-cancel-button:hover{transform:scale(1.1)}.searchButton{text-align:center;cursor:pointer;background:0 0;border:0;outline:0;width:4em;height:100%;font-size:1em}.searchButton>i{opacity:.5;background-color:#0000;background-size:2px;border-radius:2em;padding:.1em;transition:all .125s}.searchButton:active>i{background-color:var(--selection-color);color:var(--dark);padding:.7em;padding:.8em;transition:all .2s}.searchbox-style-glass{-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);background:var(--white-quarter-alpha);color:#fffd;border:1px solid #ffffff38;transition:all .125s}.searchbox-style-glass>:first-child::placeholder{color:#ffffff86}.searchbox-style-glass>:first-child{color:#ffffff92;caret-color:#fff;transition:all .125s}.searchbox-style-glass>:nth-child(2)>i,.searchbox-style-glass>:first-child:focus{color:#fff}.searchbox-style-glass:hover{color:#fff;border:1px solid #ffffffce}.searchbox-style-glass:hover>:first-child{color:#fff}.searchbox-style-glass:hover>.searchButton>i{opacity:1}.searchbox-style-glass:has(.searchTerm:focus){box-shadow:0 0 4px 0px var(--selection-color);border:1px solid #fff0}.searchbox-style-glass>:first-child::-webkit-search-cancel-button{filter:grayscale()invert()brightness(200%)}.searchbox-style-light{color:#000d;background:#fff;border:1px solid #fff;transition:all .125s}.searchbox-style-light>:first-child::placeholder{color:#75757586}.searchbox-style-light>:first-child{color:#00000092;caret-color:#000;transition:all .125s}.searchbox-style-light>:nth-child(2)>i,.searchbox-style-light>:first-child:focus{color:#000}.searchbox-style-light:hover{border:1px solid var(--selection-color);color:#000}.searchbox-style-light:hover>:first-child{color:#000}.searchbox-style-light:hover>.searchButton>i{opacity:1}.searchbox-style-light:has(.searchTerm:focus){box-shadow:0 0 4px 0px var(--selection-color);border:1px solid #0000}.searchbox-style-light>:first-child::-webkit-search-cancel-button{filter:grayscale()invert()brightness(50%)}.searchbox-style-dark{color:#fffd;background:#000;border:1px solid #ffffff1e;transition:all .125s}.searchbox-style-dark>:first-child::placeholder{color:#75757586}.searchbox-style-dark>:first-child{caret-color:#fff;color:#ffffff92;transition:all .125s}.searchbox-style-dark>:nth-child(2)>i,.searchbox-style-dark>:first-child:focus{color:#fff}.searchbox-style-dark:hover{border:1px solid var(--selection-color);color:#fff}.searchbox-style-dark:hover>:first-child{color:#fff}.searchbox-style-dark:hover>.searchButton>i{opacity:1}.searchbox-style-dark:has(.searchTerm:focus){box-shadow:0 0 4px 0px var(--selection-color);border:1px solid #fff0}.searchbox-style-dark>:first-child::-webkit-search-cancel-button{filter:grayscale()invert()brightness(200%)}.searchTerm:focus+.searchButton>i{opacity:1}.flex-sub-container-horizontal{flex-wrap:wrap;justify-content:center;align-items:center;margin-bottom:2em;padding:0 .5em;display:flex}.flex-sub-container-horizontal>div{color:var(--primary-color);cursor:pointer;caret-color:#0000;border:1px solid #ffffff38;border-radius:50%;flex-direction:row;justify-content:center;align-items:center;width:4em;height:4em;margin:2%;text-decoration:none;display:flex}.predefined-bookmark{background-color:var(--predefined-bookmark);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em)}.flex-sub-container-horizontal>div>i{font-size:1.5em}#add_bookmark_button:focus,#add_bookmark_button:hover,#settings_button:focus,#settings_button:hover,.flex-sub-container-horizontal>:focus,.flex-sub-container-horizontal>:hover{background-color:var(--highlight-color);transition:all .5s}.flex-wallpaper-horizontal{z-index:2;flex-flow:row;justify-content:start;width:100%;max-height:10em;padding:0 0 .75em;display:none;position:fixed;bottom:0;overflow-x:auto}.thumb-group{cursor:pointer;border-radius:1em;width:8em;height:4.8em;margin:.5em}.advanced-settings-button{cursor:pointer;z-index:3;background-color:#fff;border-radius:0 1.5em 1.5em 0;justify-content:center;align-items:center;min-width:9em;margin:1em 0;padding:0;padding-block:.5em;padding-inline:1em;font-size:.5em;transition:all .5s;display:flex;position:sticky;left:0;transform:translate(-10em)scale(1.125)}.advanced-settings-button:active>i{opacity:.5}.advanced-settings-button>i{color:#060604;opacity:.8;font-size:4em;transition:all .125s}.advanced-settings-button-right{transform:scale(1.125)}.thumb-group:focus,.thumb-group:hover{transition:all 1s;animation:.25s both animation_zoom;box-shadow:0 0 .5em #fff}.thumb-title{border:0 solid var(--primary-color);z-index:2;opacity:0;white-space:nowrap;text-overflow:ellipsis;color:var(--dark-text-color);pointer-events:none;padding-top:.075em;background-color:#faebd7cc;border-top:none;border-radius:0 0 1em 1em;width:8em;height:1.5em;margin-top:4em;padding-inline-start:.75em;font-family:Ubuntu;font-size:.875em;position:absolute;overflow:hidden}.animate:focus>.thumb-title,.animate:hover>.thumb-title{animation:.25s both animation_appear}.thumbnail{border:.1em solid var(--primary-color);border-radius:.9em;width:7.05em;height:4.8em;margin-left:-.04em;position:relative}#add_bookmark_button{background-color:var(--add-bookmark);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);order:1336}#add_bookmark_button:not(:active)>i{transition:all .75s;rotate:360deg}#settings_button{color:var(--primary-color);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);background-color:var(--settings);cursor:pointer;caret-color:#0000;border:1px solid #ffffff38;border-radius:50%;flex-direction:row;order:1337;justify-content:center;align-items:center;width:4em;height:4em;margin:2%;text-decoration:none;display:flex}#settings_button *{margin:0;padding:0;font-size:2em}#settings_button:not(:active)>i{transition:all .75s;rotate:360deg}.custom_bookmark{color:var(--primary-color);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);cursor:pointer;caret-color:#0000;background-color:var(--custom-bookmark);border:1px solid #ffffff38;border-radius:50%;flex-direction:row;justify-content:center;align-items:center;width:4em;height:4em;margin:2%;text-decoration:none;display:flex}.custom_link_name{pointer-events:none;font-size:1.5em;font-weight:600}.cross{display:var(--cross-display);background-color:var(--selection-color);border:3px dashed tomato;border-radius:50%;justify-content:center;align-items:center;width:4em;height:4em;padding-top:1em;padding-left:2.5em;animation:10s linear infinite spin;position:fixed}#mydivheader{cursor:move;z-index:4;color:#fff;background-color:#0000;padding:0}#import-bookmarks-btn,#import-backup-btn{display:none}.modal-background{-webkit-backdrop-filter:blur(3em);backdrop-filter:blur(3em);z-index:2;background-color:#45454576;width:100vw;height:100vh;display:none;position:fixed;top:0}#advanced-settings-modal{color:var(--white);z-index:3;cursor:default;background-color:#38383800;width:100dvw;height:auto;font-family:Ubuntu;display:none;position:absolute}#btn-install{display:none}.modal-page-title{background-color:var(--dark-low-alpha);border-radius:.5em;justify-content:flex-start;align-items:center;gap:.5em;margin:.5em;padding-block:.75em;padding-inline:.5em;font-size:1.5em;font-weight:700;display:flex}.modal-close-btn{border-radius:6px;padding-block:.25em;padding-inline:.25em .3em;font-size:1em;transition:all .125s}.modal-close-btn:hover{background-color:#ffffff45;transform:scale(1.125)}.modal-close-btn:active{opacity:.5;transform:scale(1)}.modal-group{background-color:var(--dark-low-alpha);border-radius:.75em;flex-direction:column;margin:.75em;padding:.5em;display:flex;position:relative}.modal-title{flex-direction:column;padding:.375em;font-size:1.3em;font-weight:700;display:flex}.modal-option{border-radius:.375em;justify-content:space-between;padding-block:.5em;padding-inline:.5em;font-size:1.1em;font-weight:400;transition:all .125s;display:flex}.modal-option:hover{background-color:var(--white-quarter-alpha)}.setting-preview{text-overflow:ellipsis;white-space:nowrap;text-align:end;color:var(--white-half-alpha);background-color:#06060400;border:0 solid #000;border-radius:6px;outline:0;width:10em;height:1.25em;padding-inline-end:.5em;font-family:Ubuntu;font-size:.9em;animation-name:animatetop;animation-duration:1s;overflow:hidden}#deep-search-btn-arrow-preview{padding-inline-end:0}.version-preview{text-overflow:ellipsis;white-space:nowrap;text-align:center;color:var(--white-half-alpha);width:auto;font-family:Ubuntu;font-size:.7em;overflow:hidden}.setting-preview option{color:#060604;text-align:end;background-color:var(--dark-low-alpha)}.footer{z-index:1;flex-direction:column;align-items:center;gap:.25em;width:100%;padding:.5em;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;display:flex}.footer *{color:#ffffff80;gap:1em;font-size:.875em;line-height:1.5em;text-decoration:none;list-style:none;transition:all .15s;display:flex}.footer :focus,.footer :hover{color:#fff}.ext_favicon{border-radius:50%;width:32px;height:32px}.nested-close{opacity:0;padding-block:0;height:0!important}.nested-one-element{height:100%;transition:all .2s;overflow:hidden}#deep-search-nested{height:11.875em;transition:all .2s;overflow:hidden}.loader{border-radius:50%;animation:1s infinite spin;border:4px solid var(--primary-color)!important;border-top:4px solid #1e90ff!important}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loader *{animation:1s infinite spin-rev}@keyframes spin-rev{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.collapsed{height:0;margin:0;padding:0;overflow:hidden}.hidden{display:none!important}.modalContainer{color:#fff;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:10;opacity:0;background-color:#b3b3b34c;justify-content:center;align-items:flex-start;width:100%;height:100%;padding-block-start:2em;font-family:Ubuntu;transition:all .2s;display:flex;position:fixed;top:0}.notifyContainer{color:#fff;z-index:10;opacity:1;background-color:#0000;flex-direction:column-reverse;justify-content:center;align-items:center;width:100%;height:auto;font-family:Ubuntu;transition:all .2s;display:flex;position:fixed;top:0}.downloadContainer{color:#fff;z-index:5;padding-block-start:2em;flex-direction:column;justify-content:flex-start;align-items:center;gap:1em;width:100vw;min-height:100%;padding:1em;font-family:Arial,Helvetica,sans-serif;transition:all .2s;display:flex;position:absolute;top:0}.downloadItemContainer{background-color:#2b2b2b;border:1px solid #fff3;border-radius:1em;flex-wrap:wrap;place-content:center space-between;align-items:flex-start;gap:1em;width:100%;min-width:20em;max-width:40em;padding:1em;display:flex;overflow:hidden}.downloadContainerTitleBar{background-color:#2b2b2b;border:1px solid #fff3;border-radius:1em;width:100%;max-width:40em;height:4em;padding-inline-start:1em;font-size:1em;display:flex;overflow:hidden}.progressBar{background-color:#2b2b2b;border:1px solid #fff3;border-radius:.75em;justify-content:center;align-items:center;gap:1em;max-width:38em;padding-block:1em;padding-inline:2em;font-family:Ubuntu;font-size:1.25em;display:flex;position:fixed;top:50%}.progressBar>div{width:.8em;height:.8em;border:2px solid var(--selection-color)!important;border-top:2px solid var(--highlight-color)!important}.proDownloadContainer{border-radius:.5em;flex-flow:wrap;justify-content:space-between;align-items:center;gap:.5em;width:100%;display:flex}.disabled{opacity:.4!important}.proDownloadOptions{flex-direction:row;justify-content:space-between;align-items:center;gap:1em;display:flex}.premiumDownloadButton{color:#ffe799;background-color:#ffffff12;border-radius:.375em;padding:.25em;padding-inline:.5em;font-family:Advent Pro;text-decoration:none}.proDownloadContainerLabel{color:#fff}.videoResolution{font-family:Advent Pro}.downloadItemThumbnail{object-fit:cover;border-radius:.5em;width:100%}video::-webkit-media-controls-fullscreen-button{display:none}video::-webkit-media-controls-timeline{display:none}video::-webkit-media-controls-current-time-display{display:none}video::-webkit-media-controls-time-remaining-display{display:none}video::-webkit-media-controls-mute-button{display:none}video::-webkit-media-controls-toggle-closed-captions-button{display:none}video::-webkit-media-controls-volume-slider{display:none}.downloadButton{vertical-align:middle;color:#000;flex-direction:column-reverse;justify-content:space-evenly;align-items:center;width:100%;max-width:6em;height:100%;max-height:4em;padding:.5em;text-decoration:none;display:flex}.downloadInfoContainer{flex-direction:row;justify-content:space-between;align-items:center;gap:1em;width:100%;margin-block-end:.5em;display:flex}.downloadItemTitle{height:100%;max-height:3.75em;overflow:hidden}.downloadItemResolution{opacity:.5;font-size:small}.downloadInfoContainer div{justify-content:flex-start;align-items:flex-end;max-height:min-content;display:flex}.modal{background:#2b2b2b;border:1px solid #ffffff24;border-radius:1em;flex-direction:column;width:90%;min-width:10em;max-width:30em;padding:1.5em;display:flex;box-shadow:0 0 2em #0003}.notifyModal{z-index:10;opacity:0;background:#2b2b2b;border:1px solid #ffffff24;border-radius:1em;flex-direction:row;justify-content:space-between;align-items:center;gap:1em;width:90%;min-width:10em;max-width:30em;margin-top:0;margin-bottom:-1em;padding:1.5em;transition:all .2s;display:flex;box-shadow:0 0 2em #0003}.modalTitle{padding-bottom:.5em}.modalDescription{padding-bottom:2em;font-size:.9em;font-weight:100}.notifyDescriptionContainer{width:90%}.notifyDescription{word-wrap:break-word;font-size:1em;font-weight:200;overflow:hidden}.modalButtonsBar{vertical-align:middle;justify-content:flex-end;align-items:center;gap:1em;margin-block-start:1em;display:inline-flex}.label{justify-content:flex-start;align-items:center;gap:.25em;padding-bottom:.25em;font-size:.9em;display:flex}.modalInputField{caret-color:#000;padding:.5em;background-color:#f1f1f1;border:2px solid #fff;border-radius:6px;outline:0;width:100%;height:2.5em;margin-bottom:1em;padding-inline:1em}.inputTickBoxField{background-color:#ffffffe8;border:1px solid #0000;border-radius:1em;width:100%;margin-bottom:1em;padding:.5em}.modalInputField:focus{border:2px solid var(--selection-color);background-color:#fff}@media only screen and (width>=370px){body{font-size:14px}}@media only screen and (width>=600px){body{font-size:16px}#home-widget-container{padding-inline:2em}.footer{flex-direction:row;justify-content:space-between;padding-inline:2em}}@media only screen and (width>=1024px){body{font-size:18px}#advanced-settings-modal{background-color:#38383800;width:50dvw;height:auto;position:absolute;top:0}}@media (pointer:coarse){#settings_button{display:none}} -/*# sourceMappingURL=index.c6d72aa4.css.map */ +:root{--selection-color:null;--white:#fbfaf8;--white-half-alpha:#fbfaf892;--white-quarter-alpha:#fbfaf843;--white-low-alpha:#fbfaf815;--dark:#060604;--dark-low-alpha:#0606042c;--accent-color:#bb377d;--highlight-color:#dfb669;--predefined-bookmark:#6856347e;--custom-bookmark:#3535357e;--add-bookmark:#4d685a7e;--settings:#4d685a7e;--primary-color:#faf7f0;--secondary-color:#e7decd;--blur-one-em:blur(1em);--blur-one-px:blur(1px);--blur-half-em:blur(.5em);--cross-display:none}::selection{background:var(--selection-color)}#canvasFar{z-index:0;background-image:linear-gradient(#ffffff40 0%,#ebebff00 60%);display:none;position:fixed;top:0}.disable-select{-webkit-user-select:none;user-select:none}*{caret-color:#0000;scroll-behavior:smooth;outline-color:var(--selection-color);outline-offset:-1px;outline-width:1px;margin:0;padding:0;box-sizing:border-box!important}body{background-color:#282828;flex-direction:column;justify-content:space-between;align-items:center;min-height:100svh;font-family:Ubuntu Mono,monospace;font-size:12px;display:flex}.button{opacity:1;background-color:#ececec;border:1px solid #cecece80;border-radius:6px;width:7em;height:2.5em;font-family:Ubuntu;font-size:.85em;font-weight:400;transition:all .1s}.tinyButton{min-width:1.75em;max-width:1.75em;min-height:1.75em;max-height:1.75em;padding-bottom:2px}.notifyLoader{opacity:.1;width:100%;margin-top:1em;margin-bottom:-1em}.button:disabled{opacity:.75;background-color:#fff}.button:hover{background-color:#fff}.button:active{opacity:.75}.deleteButton{color:tomato}.justifySpaceBetween{justify-content:space-between!important}#overlay{z-index:0;cursor:auto;background-color:#00000060;width:100%;height:100%;transition:all .3s;display:block;position:fixed;inset:0}#gradient_overlay{opacity:0;z-index:0;cursor:auto;width:100%;height:100%;transition:all .3s;display:block;position:fixed;bottom:0;left:0;right:0}.header{color:var(--primary-color);z-index:13;background-color:#2684e15c;justify-content:space-between;gap:.25em;width:100%;height:3em;padding:.5em;font-size:.75em;display:none;position:fixed;top:0;left:0}.header-left-block{align-items:center;gap:1em;display:flex}.user-avatar{border-radius:50%;width:2em;height:2em}.user-name{text-align:center}.header-right-block{align-items:center;gap:1em;display:flex}#wrap{opacity:0;z-index:2;width:100%;max-width:1280px;transition:all .125s;display:block}body::-webkit-scrollbar{-ms-overflow-style:none;display:none}.flex-main-container-vertical{flex-direction:column;margin:auto;display:flex}#home-widget-container{color:var(--primary-color);cursor:default;text-align:center;justify-content:center;align-items:flex-end;width:100%;margin-bottom:.5em;padding-inline:0;font-size:2em;display:flex;top:0;left:0}.home-widget{flex-direction:column;max-width:90%;display:flex}#main-heading-slider{scroll-snap-type:x mandatory;max-width:100%;padding-block-end:.125em;transition:all .5s;display:flex;overflow:scroll hidden}#main-heading-slider *{scroll-snap-align:center;scroll-snap-stop:always;flex:1;min-width:100%;margin-bottom:-.25em}#main-heading-slider::-webkit-scrollbar{height:8px;display:none}#main-heading-slider::-webkit-scrollbar-track{border-radius:10px;box-shadow:inset 0 0 5px gray}#main-heading-slider::-webkit-scrollbar-thumb{background:var(--accent-color);border-radius:10px}.default-text-style{color:var(--primary-color);font-family:Ubuntu;font-size:2em;line-height:2em;rotate:none;text-shadow:0 0 0 var(--accent-color),0 0 0 #000!important}.brush-text-style-1{color:#f5f5f5;text-shadow:4px 4px 0 var(--accent-color),6px 6px 0 #000;font-family:Vujahday Script,handwriting;font-size:2.25em;line-height:1.5em;rotate:-6deg}.brush-text-style-2{color:#f5f5f5;font-family:Advent Pro,sans-serif;font-size:2.25em;line-height:1.9em}.brush-text-style-3{color:#f5f5f5;text-shadow:4px 4px 0 var(--accent-color),6px 6px 0 #000;font-family:Nanum Brush Script,handwriting;font-size:2.8em;line-height:1.375em;rotate:none}.brush-text-style-4{color:#f5f5f5;text-shadow:1px 1px #000;font-family:Are You Serious,handwriting;font-size:2.5em;line-height:1.5em;rotate:none}.brush-text-style-5{color:#f5f5f5;text-shadow:1px 1px #000;font-family:Alkatra,display;font-size:2.25em;line-height:1.75em;rotate:none}.brush-text-style-6{color:#f5f5f5;text-shadow:1px 1px #000;font-family:Montez,handwriting;font-size:2.5em;line-height:1.5em;rotate:none}.separator{opacity:0}.separator-visible{opacity:1}.nowrap{text-wrap:nowrap}.arrows{opacity:.85;z-index:5;text-shadow:0 2px #000;height:0;font-size:1em;transition:all .25s;overflow:hidden}.arrows:hover{opacity:1}.arrows:active{opacity:.5;text-shadow:0 0 #000}#subtitle{font-family:Ubuntu;font-size:.65em}.search{text-align:center;cursor:default;z-index:2;flex-wrap:wrap;justify-content:center;align-items:stretch;width:100%;height:3em;margin-bottom:2em;padding-top:.5em;display:flex;position:relative}.searchBarFocusMode{opacity:0;-webkit-backdrop-filter:blur(.5em);backdrop-filter:blur(.5em);background-color:#ffffff1f;width:100%;height:100%;transition:all .2s;display:none;position:fixed;top:0}.searchContainer{z-index:2;border-radius:1.5em;order:1;justify-content:center;align-items:center;width:100%;min-width:4em;max-width:44em;height:3em;margin-inline:1.85em;display:flex;overflow:hidden}.searchContainer:has(.searchTerm:focus){border-radius:1em}.searchTerm{background:0 0;border:0;outline:0;width:100%;height:100%;padding:0 2em 0 1em;font-size:1em}.autofillContainer{background-color:#0000;justify-content:flex-start;align-items:center;width:calc(100% - 3.5em);min-width:4em;max-width:44em;height:0;padding-inline:.1em;transition:all .125s;display:flex;position:absolute;overflow:hidden}.autofillItem{z-index:2;border-radius:.5em;justify-content:space-between;align-items:center;width:100%;min-width:4em;max-width:44em;min-height:2.25em;max-height:2.25em;margin-block-start:.25em;padding-inline:1em;font-family:Ubuntu;font-weight:100;display:flex;box-shadow:0 2px 2px #0000002e;border:1px solid #0000!important}.autofillItem span{text-wrap:nowrap;text-overflow:ellipsis;white-space:nowrap;text-align:start;max-width:95%;overflow:hidden}input::-webkit-search-cancel-button{opacity:.5;margin-inline:.7em -1.25em;padding:.15em;transition:all .2s}input::-webkit-search-cancel-button:hover{opacity:.75}input::-webkit-search-cancel-button:hover{transform:scale(1.1)}.searchButton{text-align:center;cursor:pointer;background:0 0;border:0;outline:0;width:4em;height:100%;font-size:1em}.searchButton>i{opacity:.5;background-color:#0000;background-size:2px;border-radius:2em;padding:.1em;transition:all .125s}.searchButton:active>i{background-color:var(--selection-color);color:var(--dark);padding:.7em;padding:.8em;transition:all .2s}.searchbox-style-glass{-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);background:var(--white-quarter-alpha);color:#fffd;border:1px solid #ffffff38;transition:all .125s}.searchbox-style-glass>:first-child::placeholder{color:#ffffff86}.searchbox-style-glass>:first-child{color:#ffffff92;caret-color:#fff;transition:all .125s}.searchbox-style-glass>:nth-child(2)>i,.searchbox-style-glass>:first-child:focus{color:#fff}.searchbox-style-glass:hover{color:#fff;border:1px solid #ffffffce}.searchbox-style-glass:hover>:first-child{color:#fff}.searchbox-style-glass:hover>.searchButton>i{opacity:1}.searchbox-style-glass:has(.searchTerm:focus){box-shadow:0 0 4px 0px var(--selection-color);border:1px solid #fff0}.searchbox-style-glass>:first-child::-webkit-search-cancel-button{filter:grayscale()invert()brightness(200%)}.searchbox-style-light{color:#000d;background:#fff;border:1px solid #fff;transition:all .125s}.searchbox-style-light>:first-child::placeholder{color:#75757586}.searchbox-style-light>:first-child{color:#00000092;caret-color:#000;transition:all .125s}.searchbox-style-light>:nth-child(2)>i,.searchbox-style-light>:first-child:focus{color:#000}.searchbox-style-light:hover{border:1px solid var(--selection-color);color:#000}.searchbox-style-light:hover>:first-child{color:#000}.searchbox-style-light:hover>.searchButton>i{opacity:1}.searchbox-style-light:has(.searchTerm:focus){box-shadow:0 0 4px 0px var(--selection-color);border:1px solid #0000}.searchbox-style-light>:first-child::-webkit-search-cancel-button{filter:grayscale()invert()brightness(50%)}.searchbox-style-dark{color:#fffd;background:#000;border:1px solid #ffffff1e;transition:all .125s}.searchbox-style-dark>:first-child::placeholder{color:#75757586}.searchbox-style-dark>:first-child{caret-color:#fff;color:#ffffff92;transition:all .125s}.searchbox-style-dark>:nth-child(2)>i,.searchbox-style-dark>:first-child:focus{color:#fff}.searchbox-style-dark:hover{border:1px solid var(--selection-color);color:#fff}.searchbox-style-dark:hover>:first-child{color:#fff}.searchbox-style-dark:hover>.searchButton>i{opacity:1}.searchbox-style-dark:has(.searchTerm:focus){box-shadow:0 0 4px 0px var(--selection-color);border:1px solid #fff0}.searchbox-style-dark>:first-child::-webkit-search-cancel-button{filter:grayscale()invert()brightness(200%)}.searchTerm:focus+.searchButton>i{opacity:1}.flex-sub-container-horizontal{flex-wrap:wrap;justify-content:center;align-items:center;margin-bottom:2em;padding:0 .5em;display:flex}.flex-sub-container-horizontal>div{color:var(--primary-color);cursor:pointer;caret-color:#0000;border:1px solid #ffffff38;border-radius:50%;flex-direction:row;justify-content:center;align-items:center;width:4em;height:4em;margin:2%;text-decoration:none;display:flex}.predefined-bookmark{background-color:var(--predefined-bookmark);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em)}.flex-sub-container-horizontal>div>i{font-size:1.5em}#add_bookmark_button:focus,#add_bookmark_button:hover,#settings_button:focus,#settings_button:hover,.flex-sub-container-horizontal>:focus,.flex-sub-container-horizontal>:hover{background-color:var(--highlight-color);transition:all .5s}.flex-wallpaper-horizontal{z-index:2;flex-flow:row;justify-content:start;width:100%;max-height:10em;padding:0 0 .75em;display:none;position:fixed;bottom:0;overflow-x:auto}.thumb-group{cursor:pointer;border-radius:1em;width:8em;height:4.8em;margin:.5em}.advanced-settings-button{cursor:pointer;z-index:3;background-color:#fff;border-radius:0 1.5em 1.5em 0;justify-content:center;align-items:center;min-width:9em;margin:1em 0;padding:0;padding-block:.5em;padding-inline:1em;font-size:.5em;transition:all .5s;display:flex;position:sticky;left:0;transform:translate(-10em)scale(1.125)}.advanced-settings-button:active>i{opacity:.5}.advanced-settings-button>i{color:#060604;opacity:.8;font-size:4em;transition:all .125s}.advanced-settings-button-right{transform:scale(1.125)}.thumb-group:focus,.thumb-group:hover{transition:all 1s;animation:.25s both animation_zoom;box-shadow:0 0 .5em #fff}.thumb-title{border:0 solid var(--primary-color);z-index:2;opacity:0;white-space:nowrap;text-overflow:ellipsis;color:var(--dark-text-color);pointer-events:none;padding-top:.075em;background-color:#faebd7cc;border-top:none;border-radius:0 0 1em 1em;width:8em;height:1.5em;margin-top:4em;padding-inline-start:.75em;font-family:Ubuntu;font-size:.875em;position:absolute;overflow:hidden}.animate:focus>.thumb-title,.animate:hover>.thumb-title{animation:.25s both animation_appear}.thumbnail{border:.1em solid var(--primary-color);border-radius:.9em;width:7.05em;height:4.8em;margin-left:-.04em;position:relative}#add_bookmark_button{background-color:var(--add-bookmark);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);order:1336}#add_bookmark_button:not(:active)>i{transition:all .75s;rotate:360deg}#settings_button{color:var(--primary-color);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);background-color:var(--settings);cursor:pointer;caret-color:#0000;border:1px solid #ffffff38;border-radius:50%;flex-direction:row;order:1337;justify-content:center;align-items:center;width:4em;height:4em;margin:2%;text-decoration:none;display:flex}#settings_button *{margin:0;padding:0;font-size:2em}#settings_button:not(:active)>i{transition:all .75s;rotate:360deg}.custom_bookmark{color:var(--primary-color);-webkit-backdrop-filter:var(--blur-one-em);backdrop-filter:var(--blur-one-em);cursor:pointer;caret-color:#0000;background-color:var(--custom-bookmark);border:1px solid #ffffff38;border-radius:50%;flex-direction:row;justify-content:center;align-items:center;width:4em;height:4em;margin:2%;text-decoration:none;display:flex}.custom_link_name{pointer-events:none;font-size:1.5em;font-weight:600}.cross{display:var(--cross-display);background-color:var(--selection-color);border:3px dashed tomato;border-radius:50%;justify-content:center;align-items:center;width:4em;height:4em;padding-top:1em;padding-left:2.5em;animation:10s linear infinite spin;position:fixed}#mydivheader{cursor:move;z-index:4;color:#fff;background-color:#0000;padding:0}#import-bookmarks-btn,#import-backup-btn{display:none}.modal-background{-webkit-backdrop-filter:blur(3em);backdrop-filter:blur(3em);z-index:2;background-color:#45454576;width:100vw;height:100vh;display:none;position:fixed;top:0}#advanced-settings-modal{color:var(--white);z-index:3;cursor:default;background-color:#38383800;width:100dvw;height:auto;font-family:Ubuntu;display:none;position:absolute}#btn-install{display:none}.modal-page-title{background-color:var(--dark-low-alpha);border-radius:.5em;justify-content:flex-start;align-items:center;gap:.5em;margin:.5em;padding-block:.75em;padding-inline:.5em;font-size:1.5em;font-weight:700;display:flex}.modal-close-btn{border-radius:6px;padding-block:.25em;padding-inline:.25em .3em;font-size:1em;transition:all .125s}.modal-close-btn:hover{background-color:#ffffff45;transform:scale(1.125)}.modal-close-btn:active{opacity:.5;transform:scale(1)}.modal-group{background-color:var(--dark-low-alpha);border-radius:.75em;flex-direction:column;margin:.75em;padding:.5em;display:flex;position:relative}.modal-title{flex-direction:column;padding:.375em;font-size:1.3em;font-weight:700;display:flex}.modal-option{border-radius:.375em;justify-content:space-between;padding-block:.5em;padding-inline:.5em;font-size:1.1em;font-weight:400;transition:all .125s;display:flex}.modal-option:hover{background-color:var(--white-quarter-alpha)}.setting-preview{text-overflow:ellipsis;white-space:nowrap;text-align:end;color:var(--white-half-alpha);background-color:#06060400;border:0 solid #000;border-radius:6px;outline:0;width:10em;height:1.25em;padding-inline-end:.5em;font-family:Ubuntu;font-size:.9em;animation-name:animatetop;animation-duration:1s;overflow:hidden}#deep-search-btn-arrow-preview{padding-inline-end:0}.version-preview{text-overflow:ellipsis;white-space:nowrap;text-align:center;color:var(--white-half-alpha);width:auto;font-family:Ubuntu;font-size:.7em;overflow:hidden}.setting-preview option{color:#060604;text-align:end;background-color:var(--dark-low-alpha)}.footer{z-index:1;flex-direction:column;align-items:center;gap:.25em;width:100%;padding:.5em;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;display:flex}.footer *{color:#ffffff80;gap:1em;font-size:.875em;line-height:1.5em;text-decoration:none;list-style:none;transition:all .15s;display:flex}.footer :focus,.footer :hover{color:#fff}.ext_favicon{border-radius:50%;width:32px;height:32px}.nested-close{opacity:0;padding-block:0;height:0!important}.nested-one-element{height:100%;transition:all .2s;overflow:hidden}#deep-search-nested{height:11.875em;transition:all .2s;overflow:hidden}.loader{border-radius:50%;animation:1s infinite spin;border:4px solid var(--primary-color)!important;border-top:4px solid #1e90ff!important}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loader *{animation:1s infinite spin-rev}@keyframes spin-rev{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.collapsed{height:0;margin:0;padding:0;overflow:hidden}.hidden{display:none!important}.modalContainer{color:#fff;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:10;opacity:0;background-color:#b3b3b34c;justify-content:center;align-items:flex-start;width:100%;height:100%;padding-block-start:2em;font-family:Ubuntu;transition:all .2s;display:flex;position:fixed;top:0}.notifyContainer{color:#fff;z-index:10;opacity:1;background-color:#0000;flex-direction:column-reverse;justify-content:center;align-items:center;width:100%;height:auto;font-family:Ubuntu;transition:all .2s;display:flex;position:fixed;top:0}.downloadContainer{color:#fff;z-index:5;padding-block-start:2em;flex-direction:column;justify-content:flex-start;align-items:center;gap:1em;width:100vw;min-height:100%;padding:1em;font-family:Arial,Helvetica,sans-serif;transition:all .2s;display:flex;position:absolute;top:0}.downloadItemContainer{background-color:#2b2b2b;border:1px solid #fff3;border-radius:1em;flex-wrap:wrap;place-content:center space-between;align-items:flex-start;gap:.75em;width:100%;min-width:20em;max-width:40em;padding:1em;transition:all .125s;display:flex;overflow:hidden}.downloadItemContainer:hover{background-color:#2b2b2bdc}.downloadItemContainer:active{background-color:#2b2b2bb7}.downloadContainerTitleBar{background-color:#2b2b2b;border:1px solid #fff3;border-radius:1em;width:100%;max-width:40em;height:4em;padding-inline-start:1em;font-size:1em;display:flex;overflow:hidden}.progressBar{background-color:#2b2b2b;border:1px solid #fff3;border-radius:.75em;justify-content:center;align-items:center;gap:1em;max-width:38em;padding-block:1em;padding-inline:2em;font-family:Ubuntu;font-size:1.25em;display:flex;position:fixed;top:50%}.progressBar>div{width:.8em;height:.8em;border:2px solid var(--selection-color)!important;border-top:2px solid var(--highlight-color)!important}.proDownloadContainer{border-radius:.5em;flex-flow:wrap;justify-content:space-between;align-items:center;gap:1em;width:100%;display:flex}.disabled{filter:grayscale();opacity:.6!important}.proDownloadOptions{flex-flow:wrap;justify-content:flex-end;align-items:center;gap:1em;max-width:82%;display:flex}.premiumDownloadButton{color:#ffe799d1;white-space:nowrap;background-color:#00000070;border-radius:.375em;padding:.25em;padding-inline:.5em;font-family:Advent Pro;text-decoration:none;transition:all .125s;box-shadow:1px 1px #ffe79911}.premiumDownloadButton:hover{box-shadow:2px 2px #ffe79928}.premiumDownloadButton:active{opacity:.5;box-shadow:0 0 #ffe79911}.proDownloadContainerLabel{color:#000;background:#ffffff54;font-family:Ubuntu Mono;box-shadow:0 0 #000}.proDownloadContainerLabel:hover,.proDownloadContainerLabel:active{opacity:1;box-shadow:0 0 #000}.videoResolution{font-family:Advent Pro}.downloadItemThumbnail{object-fit:cover;border-radius:.5em;width:100%}video::-webkit-media-controls-fullscreen-button{display:none}video::-webkit-media-controls-timeline{display:none}video::-webkit-media-controls-current-time-display{display:none}video::-webkit-media-controls-time-remaining-display{display:none}video::-webkit-media-controls-mute-button{display:none}video::-webkit-media-controls-toggle-closed-captions-button{display:none}video::-webkit-media-controls-volume-slider{display:none}.downloadButton{vertical-align:middle;color:#000;flex-direction:column-reverse;justify-content:space-evenly;align-items:center;width:100%;max-width:6em;height:100%;max-height:4em;padding:.5em;text-decoration:none;display:flex}.downloadInfoContainer{flex-direction:row;justify-content:space-between;align-items:center;gap:1em;width:100%;margin-block-end:.5em;display:flex}.downloadItemTitle{height:100%;max-height:3.75em;overflow:hidden}.downloadItemResolution{opacity:.5;font-size:small}.downloadInfoContainer div{justify-content:flex-start;align-items:flex-end;max-height:min-content;display:flex}.modal{background:#2b2b2b;border:1px solid #ffffff24;border-radius:1em;flex-direction:column;width:90%;min-width:10em;max-width:30em;padding:1.5em;display:flex;box-shadow:0 0 2em #0003}.notifyModal{z-index:10;opacity:0;background:#2b2b2b;border:1px solid #ffffff24;border-radius:1em;flex-direction:row;justify-content:space-between;align-items:center;gap:1em;width:90%;min-width:10em;max-width:30em;margin-top:0;margin-bottom:-1em;padding:1.5em;transition:all .2s;display:flex;box-shadow:0 0 2em #0003}.modalTitle{padding-bottom:.5em}.modalDescription{padding-bottom:2em;font-size:.9em;font-weight:100}.notifyDescriptionContainer{width:90%}.notifyDescription{word-wrap:break-word;font-size:1em;font-weight:200;overflow:hidden}.modalButtonsBar{vertical-align:middle;justify-content:flex-end;align-items:center;gap:1em;margin-block-start:1em;display:inline-flex}.label{justify-content:flex-start;align-items:center;gap:.25em;padding-bottom:.25em;font-size:.9em;display:flex}.modalInputField{caret-color:#000;padding:.5em;background-color:#f1f1f1;border:2px solid #fff;border-radius:6px;outline:0;width:100%;height:2.5em;margin-bottom:1em;padding-inline:1em}.inputTickBoxField{background-color:#ffffffe8;border:1px solid #0000;border-radius:1em;width:100%;margin-bottom:1em;padding:.5em}.modalInputField:focus{border:2px solid var(--selection-color);background-color:#fff}@media only screen and (width>=370px){body{font-size:14px}}@media only screen and (width>=600px){body{font-size:16px}#home-widget-container{padding-inline:2em}.footer{flex-direction:row;justify-content:space-between;padding-inline:2em}}@media only screen and (width>=1024px){body{font-size:18px}#advanced-settings-modal{background-color:#38383800;width:50dvw;height:auto;position:absolute;top:0}}@media (pointer:coarse){#settings_button{display:none}} +/*# sourceMappingURL=index.c681bc15.css.map */ diff --git a/dist/index.html b/dist/index.html index 12908fc..b08927a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -Search • Casa Mia

Welcome

Welcome

Welcome

Welcome

Welcome

Welcome

Welcome

Please wait


\ No newline at end of file +Search • Casa Mia

Welcome

Welcome

Welcome

Welcome

Welcome

Welcome

Welcome

Please wait


\ No newline at end of file