PageSourceSearch

https://www.babysits.sg/inc/assets/static/js/color-modes.676cd4fe92.js

js babysits.sg collected 2026-09-30 18:48:55 UTC 2,954 bytes, 3 lines download raw bytes

1/*! LICENSE: color-modes.676cd4fe92.js.LICENSE.txt */
2var e,t,r={33229(e,t,r){r(71570),r(17443),document.addEventListener("DOMContentLoaded",async()=>{let e,t,r;(function(){try{let e="__localStorage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}})()&&(e=()=>{let e=localStorage.getItem("theme");return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},(t=e=>{"auto"===e?document.documentElement.setAttribute("data-bs-theme",window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):document.documentElement.setAttribute("data-bs-theme",e)})(e()),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.querySelector("#bd-theme");if(!r)return;let a=document.querySelector("#bd-theme-text"),o=document.querySelector(".theme-icon-active use"),c=document.querySelector(`[data-bs-theme-value="${e}"]`),l=c.querySelector("svg use").getAttribute("href");document.querySelectorAll("[data-bs-theme-value]").forEach(e=>{e.classList.remove("active"),e.setAttribute("aria-pressed","false")}),c.classList.add("active"),c.setAttribute("aria-pressed","true"),o.setAttribute("href",l);let n=`${a.textContent} (${c.dataset.bsThemeValue})`;r.setAttribute("aria-label",n),t&&r.focus()},window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let r=localStorage.getItem("theme");"light"!==r&&"dark"!==r&&t(e())}),window.addEventListener("DOMContentLoaded",()=>{r(e()),document.querySelectorAll("[data-bs-theme-value]").forEach(e=>{e.addEventListener("click",()=>{let a=e.getAttribute("data-bs-theme-value");localStorage.setItem("theme",a),t(a),r(a,!0)})})}))})}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var c=a[e]={exports:{}};return r[e].call(c.exports,c,c.exports,o),c.exports}o.m=r,o.d=(e,t,r)=>{var a=(t,r)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,[r]:t[a]})};a(t,"get"),a(r,"value")};var c=o;o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e=[],o.O=(t,r,a,c)=>{if(r){c=c||0;for(var l=e.length;l>0&&e[l-1][2]>c;l--)e[l]=e[l-1];e[l]=[r,a,c];return}for(var n=1/0,l=0;l<e.length;l++){for(var[r,a,c]=e[l],s=!0,i=0;i<r.length;i++)(!1&c||n>=c)&&Object.keys(o.O).every(e=>o.O[e](r[i]))?r.splice(i--,1):(s=!1,c<n&&(n=c));if(s){e.splice(l--,1);var d=a();void 0!==d&&(t=d)}}return t},t={560:0},o.C=e=>{var r,a,c=e.__rspack_esm_ids,l=e.__webpack_modules__,n=e.__rspack_esm_runtime,s=0;for(r in l)o.o(l,r)&&(o.m[r]=l[r]);for(n&&n(o);s<c.length;s++)a=c[s],o.o(t,a)&&t[a]&&t[a][0](),t[c[s]]=0;o.O()},o.O.j=function(e){return 0===t[e]};import*as l from"./lib-polyfill.f76025769a.js";o.C(l);var n=o.O(void 0,["493"],()=>o(33229));o.O(n);export{c as __webpack_require__};
3//# sourceMappingURL=color-modes.676cd4fe92.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.