Warning: Undefined array key "yPBFjS" in /home/ic3/domains/ic3.info/public_html/wp-includes/kses.php on line 1
HEX
HEX
Server: LiteSpeed
System: Linux control5.webnow.vn 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ic3 (1169)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/ic3/domains/ic3.info/public_html/wp-content/plugins/foxtool/link/darkmode/foxdark1.js
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DarkReader={})}(this,(function(e){"use strict";var t,n,r,o,s,a,i,c,l;!function(e){e.GET_DATA="ui-bg-get-data",e.GET_DEVTOOLS_DATA="ui-bg-get-devtools-data",e.SUBSCRIBE_TO_CHANGES="ui-bg-subscribe-to-changes",e.UNSUBSCRIBE_FROM_CHANGES="ui-bg-unsubscribe-from-changes",e.CHANGE_SETTINGS="ui-bg-change-settings",e.SET_THEME="ui-bg-set-theme",e.TOGGLE_ACTIVE_TAB="ui-bg-toggle-active-tab",e.MARK_NEWS_AS_READ="ui-bg-mark-news-as-read",e.MARK_NEWS_AS_DISPLAYED="ui-bg-mark-news-as-displayed",e.LOAD_CONFIG="ui-bg-load-config",e.APPLY_DEV_DYNAMIC_THEME_FIXES="ui-bg-apply-dev-dynamic-theme-fixes",e.RESET_DEV_DYNAMIC_THEME_FIXES="ui-bg-reset-dev-dynamic-theme-fixes",e.APPLY_DEV_INVERSION_FIXES="ui-bg-apply-dev-inversion-fixes",e.RESET_DEV_INVERSION_FIXES="ui-bg-reset-dev-inversion-fixes",e.APPLY_DEV_STATIC_THEMES="ui-bg-apply-dev-static-themes",e.RESET_DEV_STATIC_THEMES="ui-bg-reset-dev-static-themes",e.COLOR_SCHEME_CHANGE="ui-bg-color-scheme-change",e.HIDE_HIGHLIGHTS="ui-bg-hide-highlights"}(t||(t={})),function(e){e.CHANGES="bg-ui-changes"}(n||(n={})),function(e){e.CSS_UPDATE="debug-bg-ui-css-update",e.UPDATE="debug-bg-ui-update"}(r||(r={})),function(e){e.ADD_CSS_FILTER="bg-cs-add-css-filter",e.ADD_DYNAMIC_THEME="bg-cs-add-dynamic-theme",e.ADD_STATIC_THEME="bg-cs-add-static-theme",e.ADD_SVG_FILTER="bg-cs-add-svg-filter",e.CLEAN_UP="bg-cs-clean-up",e.FETCH_RESPONSE="bg-cs-fetch-response",e.UNSUPPORTED_SENDER="bg-cs-unsupported-sender"}(o||(o={})),function(e){e.RELOAD="debug-bg-cs-reload"}(s||(s={})),function(e){e.COLOR_SCHEME_CHANGE="cs-bg-color-scheme-change",e.DARK_THEME_DETECTED="cs-bg-dark-theme-detected",e.DARK_THEME_NOT_DETECTED="cs-bg-dark-theme-not-detected",e.FETCH="cs-bg-fetch",e.DOCUMENT_CONNECT="cs-bg-document-connect",e.DOCUMENT_FORGET="cs-bg-document-forget",e.DOCUMENT_FREEZE="cs-bg-document-freeze",e.DOCUMENT_RESUME="cs-bg-document-resume"}(a||(a={})),function(e){e.LOG="debug-cs-bg-log"}(i||(i={})),function(e){e.EXPORT_CSS_RESPONSE="cs-ui-export-css-response"}(c||(c={})),function(e){e.EXPORT_CSS="ui-cs-export-css"}(l||(l={}));const u="undefined"!=typeof navigator,d=u?navigator.userAgentData&&Array.isArray(navigator.userAgentData.brands)?navigator.userAgentData.brands.map((e=>`${e.brand.toLowerCase()} ${e.version}`)).join(" "):navigator.userAgent.toLowerCase():"some useragent",h=u?navigator.userAgentData&&"string"==typeof navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase():navigator.platform.toLowerCase():"some platform",f=d.includes("chrome")||d.includes("chromium"),m=d.includes("firefox")||d.includes("thunderbird")||d.includes("librewolf"),p=d.includes("safari")&&!f,g=h.startsWith("win"),b=h.startsWith("mac");u&&navigator.userAgentData?navigator.userAgentData.mobile:d.includes("mobile");const y="function"==typeof ShadowRoot,k="function"==typeof MediaQueryList&&"function"==typeof MediaQueryList.prototype.addEventListener,S="function"==typeof CSSLayerBlockRule;(()=>{const e=d.match(/chrom(?:e|ium)(?:\/| )([^ ]+)/);e&&e[1]&&e[1]})(),(()=>{const e=d.match(/(?:firefox|librewolf)(?:\/| )([^ ]+)/);e&&e[1]&&e[1]})();const w=(()=>{try{return document.querySelector(":defined"),!0}catch(e){return!1}})(),_=(()=>{try{if("undefined"==typeof document)return!1;const e=document.createElement("div");return!(!e||"object"!=typeof e.style)&&("string"==typeof e.style.colorScheme||(e.setAttribute("style","color-scheme: dark"),"dark"===e.style.colorScheme))}catch(e){return!1}})();async function E(e,t,n){const r=await fetch(e,{cache:"force-cache",credentials:"omit",referrer:n});if(m&&"text/css"===t&&e.startsWith("moz-extension://")&&e.endsWith(".css"))return r;if(t&&!r.headers.get("Content-Type").startsWith(t))throw new Error(`Mime type mismatch when loading ${e}`);if(!r.ok)throw new Error(`Unable to load ${e} ${r.status} ${r.statusText}`);return r}async function v(e,t){const n=await E(e,t);return await C(n)}async function C(e){const t=await e.blob();return await new Promise((e=>{const n=new FileReader;n.onloadend=()=>e(n.result),n.readAsDataURL(t)}))}const x=async e=>Promise.reject(new Error(["Embedded Dark Reader cannot access a cross-origin resource",e,"Overview your URLs and CORS policies or use","`DarkReader.setFetchMethod(fetch: (url) => Promise<Response>))`.","See if using `DarkReader.setFetchMethod(window.fetch)`","before `DarkReader.enable()` works."].join(" ")));let R=x;window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});const $=new Set;async function A(...e){if(e[0]&&e[0].type===a.FETCH){const{id:t}=e[0];try{const{url:n,responseType:r}=e[0].data,s=await async function(e){return await R(e)}(n);let a;a="data-url"===r?await C(s):await s.text(),$.forEach((e=>e({type:o.FETCH_RESPONSE,data:a,error:null,id:t})))}catch(e){console.error(e),$.forEach((n=>n({type:o.FETCH_RESPONSE,data:null,error:e,id:t})))}}}function T(e){$.add(e)}if("function"==typeof chrome.runtime.sendMessage){const e=chrome.runtime.sendMessage;chrome.runtime.sendMessage=(...t)=>{A(...t),e.apply(chrome.runtime,t)}}else chrome.runtime.sendMessage=A;if(chrome.runtime.onMessage||(chrome.runtime.onMessage={}),"function"==typeof chrome.runtime.onMessage.addListener){const e=chrome.runtime.onMessage.addListener;chrome.runtime.onMessage.addListener=(...t)=>{T(t[0]),e.apply(chrome.runtime.onMessage,t)}}else chrome.runtime.onMessage.addListener=(...e)=>T(e[0]);var M,V;!function(e){e.cssFilter="cssFilter",e.svgFilter="svgFilter",e.staticTheme="staticTheme",e.dynamicTheme="dynamicTheme"}(M||(M={})),function(e){e.NONE="",e.TIME="time",e.SYSTEM="system",e.LOCATION="location"}(V||(V={}));const L={background:"#181a1b",text:"#e8e6e3"},D={background:"#dcdad7",text:"#181a1b"},P={mode:1,brightness:100,contrast:100,grayscale:0,sepia:0,useFont:!1,fontFamily:b?"Helvetica Neue":g?"Segoe UI":"Open Sans",textStroke:0,engine:M.dynamicTheme,stylesheet:"",darkSchemeBackgroundColor:L.background,darkSchemeTextColor:L.text,lightSchemeBackgroundColor:D.background,lightSchemeTextColor:D.text,scrollbarColor:b?"":"auto",selectionColor:"auto",styleSystemControls:!_,lightColorScheme:"Default",darkColorScheme:"Default",immediateModify:!1};function O(e,t){if(function(e){return null!=e.length}(e))for(let n=0,r=e.length;n<r;n++)t(e[n]);else for(const n of e)t(n)}function F(e,t){O(t,(t=>e.push(t)))}function N(e){let t,n=!1,r=null;return Object.assign(((...o)=>{t=o,r?n=!0:(e(...t),r=requestAnimationFrame((()=>{r=null,n&&(e(...t),n=!1)})))}),{cancel:()=>{cancelAnimationFrame(r),n=!1,r=null}})}V.NONE;const W=new Set;function I(e,t){W.has(e)||(W.add(e),requestAnimationFrame((()=>{W.delete(e),t()})))}function q(e){let t=0;return e.seconds&&(t+=1e3*e.seconds),e.minutes&&(t+=60*e.minutes*1e3),e.hours&&(t+=60*e.hours*60*1e3),e.days&&(t+=24*e.days*60*60*1e3),t}function B(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function j(e,t,n=Function.prototype){const r=q({seconds:2}),o=q({seconds:10}),s=e.previousSibling;let a=e.parentNode;if(!a)throw new Error("Unable to watch for node position: parent element not found");if("prev-sibling"===t&&!s)throw new Error("Unable to watch for node position: there is no previous sibling");let i=0,c=null,l=null;const u=N((()=>{if(l)return;i++;const h=Date.now();if(null==c)c=h;else if(i>=10){if(h-c<o)return void(l=setTimeout((()=>{c=null,i=0,l=null,u()}),r));c=h,i=1}if("head"===t&&s&&s.parentNode!==a)f();else{if("prev-sibling"===t){if(null==s.parentNode)return void f();s.parentNode!==a&&m(s.parentNode)}"head"!==t||a.isConnected||(a=document.head),a.insertBefore(e,s&&s.isConnected?s.nextSibling:a.firstChild),d.takeRecords(),n&&n()}})),d=new MutationObserver((()=>{("head"===t&&(e.parentNode!==a||!e.parentNode.isConnected)||"prev-sibling"===t&&e.previousSibling!==s)&&u()})),h=()=>{d.observe(a,{childList:!0})},f=()=>{clearTimeout(l),d.disconnect(),u.cancel()},m=e=>{a=e,f(),h()};return h(),{run:h,stop:f,skip:()=>{d.takeRecords()}}}function U(e,t){if(null==e)return;const n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>null==e.shadowRoot?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});for(let r=e.shadowRoot?n.currentNode:n.nextNode();null!=r;r=n.nextNode())r.classList.contains("surfingkeys_hints_host")||(t(r),U(r.shadowRoot,t))}let H=()=>"complete"===document.readyState||"interactive"===document.readyState;const G=new Set;function z(e){H()?e():G.add(e)}function Q(e){G.delete(e)}function K(){return"complete"===document.readyState}const Y=new Set;function X(e){K()?e():Y.add(e)}if(!H()){const e=()=>{H()&&(G.forEach((e=>e())),G.clear(),K()&&(document.removeEventListener("readystatechange",e),Y.forEach((e=>e())),Y.clear()))};document.addEventListener("readystatechange",e)}const Z=1e3;const J=new Map,ee=new WeakMap;function te(e,t){let n,r,o;if(J.has(e))n=J.get(e),r=ee.get(n);else{let t=!1,s=!1;n=new MutationObserver((n=>{if(function(e){if(e.length>Z)return!0;let t=0;for(let n=0;n<e.length;n++)if(t+=e[n].addedNodes.length,t>Z)return!0;return!1}(n))!t||H()?r.forEach((({onHugeMutations:t})=>t(e))):s||(o=()=>r.forEach((({onHugeMutations:t})=>t(e))),z(o),s=!0),t=!0;else{const t=function(e){const t=new Set,n=new Set,r=new Set;e.forEach((e=>{O(e.addedNodes,(e=>{e instanceof Element&&e.isConnected&&t.add(e)})),O(e.removedNodes,(e=>{e instanceof Element&&(e.isConnected?(r.add(e),t.delete(e)):n.add(e))}))}));const o=[],s=[];return t.forEach((e=>{t.has(e.parentElement)&&o.push(e)})),n.forEach((e=>{n.has(e.parentElement)&&s.push(e)})),o.forEach((e=>t.delete(e))),s.forEach((e=>n.delete(e))),{additions:t,moves:r,deletions:n}}(n);r.forEach((({onMinorMutations:n})=>n(e,t)))}})),n.observe(e,{childList:!0,subtree:!0}),J.set(e,n),r=new Set,ee.set(n,r)}return r.add(t),{disconnect(){r.delete(t),o&&Q(o),0===r.size&&(n.disconnect(),ee.delete(n),J.delete(e))}}}function ne(e,t,n=0){const r=[];let o;for(;o=e.exec(t);)r.push(o[n]);return r}function re(e){const t=e.length;let n=0;for(let r=0;r<t;r++){n=(n<<5)-n+e.charCodeAt(r)&4294967295}return n}function oe(e,t=0){return se(e,t,"(",")",[])}function se(e,t,n,r,o){let s;s=0===o.length?(t,n)=>e.indexOf(t,n):(t,n)=>ae(e,t,n,o);const{length:a}=e;let i=0,c=-1;for(let e=t;e<a;e++)if(0===i){const t=s(n,e);if(t<0)break;c=t,i++,e=t}else{const t=s(r,e);if(t<0)break;const o=s(n,e);if(o<0||t<=o){if(i--,0===i)return{start:c,end:t+1};e=t}else i++,e=o}return null}function ae(e,t,n,r){const o=e.indexOf(t,n),s=r.find((e=>o>=e.start&&o<e.end));return s?ae(e,t,s.end,r):o}function ie(e,t,n){const r=[];let o=-1,s=0;for(;(o=ae(e,t,s,n))>=0;)r.push(e.substring(s,o).trim()),s=o+1;return r.push(e.substring(s).trim()),r}let ce;const le=new Map;function ue(e){return ce||(ce=document.createElement("a")),ce.href=e,ce.href}function de(e,t=null){const n=`${e}${t?`;${t}`:""}`;if(le.has(n))return le.get(n);if(t){const r=new URL(e,ue(t));return le.set(n,r),r}const r=new URL(ue(e));return le.set(e,r),r}function he(e,t){if(t.match(/^data\\?\:/))return t;if(/^\/\//.test(t))return`${location.protocol}${t}`;const n=de(e);return de(t,n.href).href}function fe(e,t,n){O(e,(e=>{if($e(e))t(e);else if(function(e){if(!e)return!1;if(Ee.has(e))return!1;if(ve.has(e))return!0;if(e.href)return ve.add(e),!0;return!1}(e))try{fe(e.styleSheet.cssRules,t,n)}catch(e){n?.()}else if(Ae(e)){const r=Array.from(e.media),o=r.some((e=>e.startsWith("screen")||e.startsWith("all")||e.startsWith("("))),s=r.some((e=>e.startsWith("print")||e.startsWith("speech")));!o&&s||fe(e.cssRules,t,n)}else!function(e){if(!e)return!1;if(Ee.has(e))return!1;if(xe.has(e))return!0;if(e instanceof CSSSupportsRule)return xe.add(e),!0;return!1}(e)?Te(e)&&fe(e.cssRules,t,n):CSS.supports(e.conditionText)&&fe(e.cssRules,t,n)}))}const me=["background","border","border-color","border-bottom","border-left","border-right","border-top","outline","outline-color"],pe=p?me.map((e=>[e,new RegExp(`${e}:\\s*(.*?)\\s*;`)])):null;function ge(e,t){O(e,(n=>{const r=e.getPropertyValue(n).trim();r&&t(n,r)}));const n=e.cssText;n.includes("var(")&&(p?pe.forEach((([e,r])=>{const o=n.match(r);if(o&&o[1]){const n=o[1].trim();t(e,n)}})):me.forEach((n=>{const r=e.getPropertyValue(n);r&&r.includes("var(")&&t(n,r)}))),n.includes("background-color: ;")&&!e.getPropertyValue("background")&&be("background",e,t),n.includes("border-")&&n.includes("-color: ;")&&!e.getPropertyValue("border")&&be("border",e,t)}function be(e,t,n){const r=t.parentRule;if($e(r)){const t=r.parentStyleSheet?.ownerNode?.textContent;if(t){let o=r.selectorText.replaceAll(/[\^$.*+?\(\)\[\]{}|\-\\]/g,"\\$&");o=o.replaceAll(/\s+/g,"\\s*"),o=o.replaceAll(/::/g,"::?");const s=new RegExp(`${o}\\s*{[^}]*${e}:\\s*([^;}]+)`),a=t.match(s);a&&n(e,a[1])}else"background"===e&&n("background-color","#ffffff")}}const ye=/url\((('.*?')|(".*?")|([^\)]*?))\)/g,ke=/@import\s*(url\()?(('.+?')|(".+?")|([^\)]*?))\)? ?(screen)?;?/gi;function Se(e){return e.trim().replace(/[\n\r\\]+/g,"").replace(/^url\((.*)\)$/,"$1").trim().replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1").replace(/(?:\\(.))/g,"$1")}function we(e){const t=de(e);return`${t.origin}${t.pathname.replace(/\?.*$/,"").replace(/(\/)([^\/]+)$/i,"$1")}`}const _e=/@font-face\s*{[^}]*}/g;const Ee=new WeakSet,ve=new WeakSet,Ce=new WeakSet,xe=new WeakSet,Re=new WeakSet;function $e(e){return!!e&&(!!Ee.has(e)||!!e.selectorText&&(Ee.add(e),!0))}function Ae(e){return!!e&&(!Ee.has(e)&&(!!Ce.has(e)||!!e.media&&(Ce.add(e),!0)))}function Te(e){return!!e&&(!Ee.has(e)&&(!!Re.has(e)||!!(S&&e instanceof CSSLayerBlockRule)&&(Re.add(e),!0)))}function Me(e){const t=[],n=[];let r;for(let o=0,s=e.length;o<s;o++){const s=e[o];if(s&&" "!==s){if(Le.has(s)){const e=Le.get(s);for(;n.length;){const r=Le.get(n[0]);if(!r)break;if(!e.lessOrEqualThan(r))break;t.push(n.shift())}n.unshift(s)}else!r||Le.has(r)?t.push(s):t[t.length-1]+=s;r=s}}t.push(...n);const o=[];for(let e=0,n=t.length;e<n;e++){const n=Le.get(t[e]);if(n){const e=o.splice(0,2);o.push(n.exec(e[1],e[0]))}else o.unshift(parseFloat(t[e]))}return o[0]}class Ve{constructor(e,t){this.precendce=e,this.execMethod=t}exec(e,t){return this.execMethod(e,t)}lessOrEqualThan(e){return this.precendce<=e.precendce}}const Le=new Map([["+",new Ve(1,((e,t)=>e+t))],["-",new Ve(1,((e,t)=>e-t))],["*",new Ve(2,((e,t)=>e*t))],["/",new Ve(2,((e,t)=>e/t))]]),De=()=>matchMedia("(prefers-color-scheme: dark)").matches,Pe=new Map,Oe=new Map;function Fe(e){if(e=e.trim(),Oe.has(e))return Oe.get(e);e.includes("calc(")&&(e=function(e){let t=0;const n=(t,n,r)=>{e=e.substring(0,t)+r+e.substring(n)};for(;-1!==(t=e.indexOf("calc("));){const r=oe(e,t);if(!r)break;let o=e.slice(r.start+1,r.end-1);const s=o.includes("%");o=o.split("%").join("");const a=Math.round(Me(o));n(r.start-4,r.end,a+(s?"%":""))}return e}(e));const t=Ge(e);return t&&Oe.set(e,t),t}function Ne(e){if(Pe.has(e))return Pe.get(e);const t=Fe(e);if(!t)return null;const n=Ie(t);return Pe.set(e,n),n}function We({h:e,s:t,l:n,a:r=1}){if(0===t){const[e,t,o]=[n,n,n].map((e=>Math.round(255*e)));return{r:e,g:o,b:t,a:r}}const o=(1-Math.abs(2*n-1))*t,s=o*(1-Math.abs(e/60%2-1)),a=n-o/2,[i,c,l]=(e<60?[o,s,0]:e<120?[s,o,0]:e<180?[0,o,s]:e<240?[0,s,o]:e<300?[s,0,o]:[o,0,s]).map((e=>Math.round(255*(e+a))));return{r:i,g:c,b:l,a:r}}function Ie({r:e,g:t,b:n,a:r=1}){const o=e/255,s=t/255,a=n/255,i=Math.max(o,s,a),c=Math.min(o,s,a),l=i-c,u=(i+c)/2;if(0===l)return{h:0,s:0,l:u,a:r};let d=60*(i===o?(s-a)/l%6:i===s?(a-o)/l+2:(o-s)/l+4);d<0&&(d+=360);return{h:d,s:l/(1-Math.abs(2*u-1)),l:u,a:r}}function qe(e,t=0){const n=e.toFixed(t);if(0===t)return n;const r=n.indexOf(".");if(r>=0){const e=n.match(/0+$/);if(e)return e.index===r+1?n.substring(0,r):n.substring(0,e.index)}return n}function Be(e){const{h:t,s:n,l:r,a:o}=e;return null!=o&&o<1?`hsla(${qe(t)}, ${qe(100*n)}%, ${qe(100*r)}%, ${qe(o,2)})`:`hsl(${qe(t)}, ${qe(100*n)}%, ${qe(100*r)}%)`}const je=/^rgba?\([^\(\)]+\)$/,Ue=/^hsla?\([^\(\)]+\)$/,He=/^#[0-9a-f]+$/i;function Ge(e){const t=e.trim().toLowerCase();if(t.match(je))return Ye(t);if(t.match(Ue))return function(e){const[t,n,r,o=1]=ze(e,Xe,Ze);return We({h:t,s:n,l:r,a:o})}(t);if(t.match(He))return function(e){const t=e.substring(1);switch(t.length){case 3:case 4:{const[e,n,r]=[0,1,2].map((e=>parseInt(`${t[e]}${t[e]}`,16)));return{r:e,g:n,b:r,a:3===t.length?1:parseInt(`${t[3]}${t[3]}`,16)/255}}case 6:case 8:{const[e,n,r]=[0,2,4].map((e=>parseInt(t.substring(e,e+2),16)));return{r:e,g:n,b:r,a:6===t.length?1:parseInt(t.substring(6,8),16)/255}}}return null}(t);if(Je.has(t))return function(e){const t=Je.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}(t);if(et.has(t))return function(e){const t=et.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}(t);if("transparent"===e)return{r:0,g:0,b:0,a:0};if((t.startsWith("color(")||t.startsWith("color-mix("))&&t.endsWith(")"))return function(e){rt||(nt=document.createElement("canvas"),nt.width=1,nt.height=1,rt=nt.getContext("2d",{willReadFrequently:!0}));rt.fillStyle=e,rt.fillRect(0,0,1,1);const t=rt.getImageData(0,0,1,1).data;return Ye(`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${(t[3]/255).toFixed(2)})`)}(t);if(t.startsWith("light-dark(")&&t.endsWith(")")){const e=t.match(/^light-dark\(\s*([a-z]+(\(.*\))?),\s*([a-z]+(\(.*\))?)\s*\)$/);if(e){return Ge(De()?e[3]:e[1])}}return null}function ze(e,t,n){const r=function(e){const t=[];let n=0,r=!1;const o=e.indexOf("(");e=e.substring(o+1,e.length-1);for(let o=0;o<e.length;o++){const s=e[o];s>="0"&&s<="9"||"."===s||"+"===s||"-"===s?r=!0:!r||" "!==s&&","!==s&&"/"!==s?r||(n=o+1):(t.push(e.substring(n,o)),r=!1,n=o+1)}return r&&t.push(e.substring(n,e.length)),t}(e),o=Object.entries(n);return r.map((e=>e.trim())).map(((e,n)=>{let r;const s=o.find((([t])=>e.endsWith(t)));return r=s?parseFloat(e.substring(0,e.length-s[0].length))/s[1]*t[n]:parseFloat(e),t[n]>1?Math.round(r):r}))}const Qe=[255,255,255,1],Ke={"%":100};function Ye(e){const[t,n,r,o=1]=ze(e,Qe,Ke);return{r:t,g:n,b:r,a:o}}const Xe=[360,1,1,1],Ze={"%":100,deg:360,rad:2*Math.PI,turn:1};const Je=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),et=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map((([e,t])=>[e.toLowerCase(),t])));function tt(e,t,n){return(.2126*e+.7152*t+.0722*n)/255}let nt,rt;function ot(e,t,n,r,o){return(e-t)*(o-r)/(n-t)+r}function st(e,t,n){return Math.min(n,Math.max(t,e))}function at(e,t){const n=[];for(let r=0,o=e.length;r<o;r++){n[r]=[];for(let o=0,s=t[0].length;o<s;o++){let s=0;for(let n=0,a=e[0].length;n<a;n++)s+=e[r][n]*t[n][o];n[r][o]=s}}return n}function it(e){let t=ct.identity();return 0!==e.sepia&&(t=at(t,ct.sepia(e.sepia/100))),0!==e.grayscale&&(t=at(t,ct.grayscale(e.grayscale/100))),100!==e.contrast&&(t=at(t,ct.contrast(e.contrast/100))),100!==e.brightness&&(t=at(t,ct.brightness(e.brightness/100))),1===e.mode&&(t=at(t,ct.invertNHue())),t}const ct={identity:()=>[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]],invertNHue:()=>[[.333,-.667,-.667,0,1],[-.667,.333,-.667,0,1],[-.667,-.667,.333,0,1],[0,0,0,1,0],[0,0,0,0,1]],brightness:e=>[[e,0,0,0,0],[0,e,0,0,0],[0,0,e,0,0],[0,0,0,1,0],[0,0,0,0,1]],contrast(e){const t=(1-e)/2;return[[e,0,0,0,t],[0,e,0,0,t],[0,0,e,0,t],[0,0,0,1,0],[0,0,0,0,1]]},sepia:e=>[[.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),0,0],[.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),0,0],[.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e),0,0],[0,0,0,1,0],[0,0,0,0,1]],grayscale:e=>[[.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),0,0],[.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),0,0],[.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e),0,0],[0,0,0,1,0],[0,0,0,0,1]]};function lt(e){return e[1===e.mode?"darkSchemeBackgroundColor":"lightSchemeBackgroundColor"]}function ut(e){return e[1===e.mode?"darkSchemeTextColor":"lightSchemeTextColor"]}const dt=new Map;const ht=["r","g","b","a"],ft=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"];function mt(e,t,n,r,o){let s;dt.has(n)?s=dt.get(n):(s=new Map,dt.set(n,s));const a=function(e,t){let n="";return ht.forEach((t=>{n+=`${e[t]};`})),ft.forEach((e=>{n+=`${t[e]};`})),n}(e,t);if(s.has(a))return s.get(a);const i=n(Ie(e),null==r?null:Ne(r),null==o?null:Ne(o)),{r:c,g:l,b:u,a:d}=We(i),h=it(t),[f,m,p]=function([e,t,n],r){const o=at(r,[[e/255],[t/255],[n/255],[1],[1]]);return[0,1,2].map((e=>st(Math.round(255*o[e][0]),0,255)))}([c,l,u],h),g=1===d?function({r:e,g:t,b:n,a:r}){return`#${(null!=r&&r<1?[e,t,n,Math.round(255*r)]:[e,t,n]).map((e=>`${e<16?"0":""}${e.toString(16)}`)).join("")}`}({r:f,g:m,b:p}):function(e){const{r:t,g:n,b:r,a:o}=e;return null!=o&&o<1?`rgba(${qe(t)}, ${qe(n)}, ${qe(r)}, ${qe(o,2)})`:`rgb(${qe(t)}, ${qe(n)}, ${qe(r)})`}({r:f,g:m,b:p,a:d});return s.set(a,g),g}function pt(e,t){const n=lt(t);return mt(e,t,gt,ut(t),n)}function gt({h:e,s:t,l:n,a:r},o,s){const a=n<.5;let i;if(a)i=n<.2||t<.12;else{i=t<.24||n>.8&&(e>200&&e<280)}let c=e,l=n;i&&(a?(c=o.h,l=o.s):(c=s.h,l=s.s));return{h:c,s:l,l:ot(n,0,1,o.l,s.l),a:r}}const bt=.4;function yt({h:e,s:t,l:n,a:r},o){const s=t<.12||n>.8&&(e>200&&e<280);if(n<.5){const a=ot(n,0,.5,0,bt);if(s){return{h:o.h,s:o.s,l:a,a:r}}return{h:e,s:t,l:a,a:r}}let a=ot(n,.5,1,bt,o.l);if(s){return{h:o.h,s:o.s,l:a,a:r}}let i=e;if(e>60&&e<180){i=e>120?ot(e,120,180,135,180):ot(e,60,120,60,105)}return i>40&&i<80&&(a*=.75),{h:i,s:t,l:a,a:r}}function kt(e,t){if(0===t.mode)return pt(e,t);const n=lt(t);return mt(e,{...t,mode:0},yt,n)}const St=.55;function wt(e){return ot(e,205,245,205,220)}function _t({h:e,s:t,l:n,a:r},o){const s=n<.2||t<.24,a=!s&&e>205&&e<245;if(n>.5){const i=ot(n,.5,1,St,o.l);if(s){return{h:o.h,s:o.s,l:i,a:r}}let c=e;return a&&(c=wt(e)),{h:c,s:t,l:i,a:r}}if(s){return{h:o.h,s:o.s,l:ot(n,0,.5,o.l,St),a:r}}let i,c=e;return a?(c=wt(e),i=ot(n,0,.5,o.l,Math.min(1,St+.05))):i=ot(n,0,.5,o.l,St),{h:c,s:t,l:i,a:r}}function Et(e,t){if(0===t.mode)return pt(e,t);const n=ut(t);return mt(e,{...t,mode:0},_t,n)}function vt({h:e,s:t,l:n,a:r},o,s){let a=e,i=t;(n<.2||t<.24)&&(n<.5?(a=o.h,i=o.s):(a=s.h,i=s.s));return{h:a,s:i,l:ot(n,0,1,.5,.2),a:r}}function Ct(e,t){if(0===t.mode)return pt(e,t);const n=ut(t),r=lt(t);return mt(e,{...t,mode:0},vt,n,r)}function xt(e,t){return kt(e,t)}const Rt=["pre","pre *","code",'[aria-hidden="true"]','[class*="fa-"]',".fa",".fab",".fad",".fal",".far",".fas",".fass",".fasr",".fat",".icofont",'[style*="font-"]','[class*="icon"]','[class*="Icon"]','[class*="symbol"]','[class*="Symbol"]',".glyphicon",'[class*="material-symbol"]','[class*="material-icon"]',"mu",'[class*="mu-"]',".typcn",'[class*="vjs-"]'];var $t;function At(e){const t=[];return e.mode===$t.dark&&t.push("invert(100%) hue-rotate(180deg)"),100!==e.brightness&&t.push(`brightness(${e.brightness}%)`),100!==e.contrast&&t.push(`contrast(${e.contrast}%)`),0!==e.grayscale&&t.push(`grayscale(${e.grayscale}%)`),0!==e.sepia&&t.push(`sepia(${e.sepia}%)`),0===t.length?null:t.join(" ")}function Tt(){if("randomUUID"in crypto){const e=crypto.randomUUID();return e.substring(0,8)+e.substring(9,13)+e.substring(14,18)+e.substring(19,23)+e.substring(24)}return"getRandomValues"in crypto?Array.from(crypto.getRandomValues(new Uint8Array(16))).map((e=>{return((t=e)<16?"0":"")+t.toString(16);var t})).join(""):Math.floor(Math.random()*2**55).toString(36)}!function(e){e[e.light=0]="light",e[e.dark=1]="dark"}($t||($t={}));const Mt=new Map,Vt=new Map;async function Lt(e){return window.DarkReader?.Plugins?.fetch?window.DarkReader.Plugins.fetch(e):new Promise(((t,n)=>{const r=Tt();Mt.set(r,t),Vt.set(r,n),chrome.runtime.sendMessage({type:a.FETCH,data:e,id:r})}))}chrome.runtime.onMessage.addListener((({type:e,data:t,error:n,id:r})=>{if(e===o.FETCH_RESPONSE){const e=Mt.get(r),o=Vt.get(r);Mt.delete(r),Vt.delete(r),n?o&&o(n):e&&e(t)}}));const Dt=new class{constructor(){this.queue=[],this.timerId=null}addTask(e){this.queue.push(e),this.scheduleFrame()}stop(){null!==this.timerId&&(cancelAnimationFrame(this.timerId),this.timerId=null),this.queue=[]}scheduleFrame(){this.timerId||(this.timerId=requestAnimationFrame((()=>{this.timerId=null;const e=Date.now();let t;for(;t=this.queue.shift();)if(t(),Date.now()-e>=16.666666666666668){this.scheduleFrame();break}})))}};async function Pt(e){return new Promise((async(t,n)=>{try{const n=e.startsWith("data:")?e:await async function(e){const t=new URL(e);if(t.origin===location.origin)return await v(e);return await Lt({url:e,responseType:"data-url"})}(e),r=Xt(n)??await async function(e,t){const n=await E(e,t);return await n.blob()}(e);let o;o=n.startsWith("data:image/svg+xml")?await Nt(n):await async function(e){try{return await createImageBitmap(e)}catch(t){return e.type,String(t),null}}(r)??await Nt(n),Dt.addTask((()=>{const r=function(e){It||function(){const e=Wt,t=Wt;It=document.createElement("canvas"),It.width=e,It.height=t,qt=It.getContext("2d",{willReadFrequently:!0}),qt.imageSmoothingEnabled=!1}();let t,n;e instanceof HTMLImageElement?(t=e.naturalWidth,n=e.naturalHeight):(t=e.width,n=e.height);if(0===t||0===n)return{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1};const r=t*n>Bt,o=t*n,s=Math.min(1,Math.sqrt(Wt/o)),a=Math.ceil(t*s),i=Math.ceil(n*s);qt.clearRect(0,0,a,i),qt.drawImage(e,0,0,t,n,0,0,a,i);const c=qt.getImageData(0,0,a,i).data,l=.05,u=.4,d=.7;let h,f,m,p,g,b,y,k,S=0,w=0,_=0;for(m=0;m<i;m++)for(f=0;f<a;f++)h=4*(m*a+f),p=c[h+0],g=c[h+1],b=c[h+2],y=c[h+3],y/255<l?S++:(k=tt(p,g,b),k<u&&w++,k>d&&_++);const E=a*i,v=E-S;return{isDark:w/v>=.7,isLight:_/v>=.7,isTransparent:S/E>=.1,isLarge:r}}(o);t({src:e,dataURL:r.isLarge?"":n,width:o.width,height:o.height,...r})}))}catch(e){n(e)}}))}const Ot=256;let Ft=0;async function Nt(e){return new Promise(((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=()=>n(`Unable to load image ${e}`),++Ft<=Ot||K()?r.src=e:X((()=>r.src=e))}))}const Wt=1024;let It,qt;const Bt=262144;let jt=null,Ut=!1,Ht=!1;const Gt=[];document.addEventListener("__darkreader__inlineScriptsAllowed",(()=>Ut=!0),{once:!0}),document.addEventListener("securitypolicyviolation",(function e(t){"blob"===t.blockedURI&&(jt=!1,document.removeEventListener("securitypolicyviolation",e))}));const zt=new Set;function Qt({dataURL:e,width:t,height:n},r){e.startsWith("data:image/svg+xml")&&(e=e.replace(/[<>&'"]/g,(e=>Kt[e]??e)));const o=[`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="${t}" height="${n}">`,"<defs>",'<filter id="darkreader-image-filter">',`<feColorMatrix type="matrix" values="${it(r).slice(0,4).map((e=>e.map((e=>e.toFixed(3))).join(" "))).join(" ")}" />`,"</filter>","</defs>",`<image width="${t}" height="${n}" filter="url(#darkreader-image-filter)" xlink:href="${e}" />`,"</svg>"].join("");if(!jt)return`data:image/svg+xml;base64,${btoa(o)}`;const s=new Uint8Array(o.length);for(let e=0;e<o.length;e++)s[e]=o.charCodeAt(e);const a=new Blob([s],{type:"image/svg+xml"}),i=URL.createObjectURL(a);return zt.add(i),i}const Kt={"<":"&lt;",">":"&gt;","&":"&amp;","'":"&apos;",'"':"&quot;"};const Yt=new Map;function Xt(e){const t=e.indexOf(":"),n=e.indexOf(";",t+1),r=e.indexOf(",",n+1),o=e.substring(n+1,r).toLocaleLowerCase(),s=e.substring(t+1,n);if("base64"!==o||!s)return null;const a=atob(e.substring(r+1)),i=new Uint8Array(a.length);for(let e=0;e<a.length;e++)i[e]=a.charCodeAt(e);return new Blob([i],{type:s})}function Zt(){Dt&&Dt.stop(),It=null,qt=null,zt.forEach((e=>URL.revokeObjectURL(e))),zt.clear(),Yt.forEach((e=>URL.revokeObjectURL(e))),Yt.clear()}const Jt=8,en="conic-",tn=en.length,nn="radial-",rn="linear-";function on(e,t){return Boolean(e&&e.getPropertyPriority(t))}function sn(e,t,n,r,o,s){let a=null;if(e.startsWith("--"))a=function(e,t,n,r,o,s){return e.getModifierForVariable({varName:t,sourceValue:n,rule:r,ignoredImgSelectors:o,isCancelled:s})}(r,e,t,n,o,s);else if(t.includes("var("))a=function(e,t,n){return e.getModifierForVarDependant(t,n)}(r,e,t);else if("color-scheme"===e)a=e=>0===e.mode?"dark light":"dark";else if("scrollbar-color"===e)a=function(e){const t=e.match(/^\s*([a-z]+(\(.*\))?)\s+([a-z]+(\(.*\))?)\s*$/);if(!t)return e;const n=Fe(t[1]),r=Fe(t[3]);if(!n||!r)return null;return e=>`${Et(n,e)} ${kt(n,e)}`}(t);else if(e.includes("color")&&"-webkit-print-color-adjust"!==e||"fill"===e||"stroke"===e||"stop-color"===e)if(e.startsWith("border")&&"border-color"!==e&&"initial"===t){const r=e.substring(0,e.length-6),o=n.style.getPropertyValue(r);o.startsWith("0px")||"none"===o?(e=r,a=o):a=t}else a=function(e,t,n){if(hn.has(t.toLowerCase()))return t;const r=Fe(t);if(!r)return null;if(e.includes("background"))return n.style.webkitMaskImage&&"none"!==n.style.webkitMaskImage||n.style.webkitMask&&!n.style.webkitMask.startsWith("none")||n.style.mask&&"none"!==n.style.mask||n.style.getPropertyValue("mask-image")&&"none"!==n.style.getPropertyValue("mask-image")?e=>Et(r,e):e=>kt(r,e);if(e.includes("border")||e.includes("outline"))return e=>Ct(r,e);return e=>Et(r,e)}(e,t,n);else"background-image"===e||"list-style-image"===e?a=pn(t,n,o,s):e.includes("shadow")&&(a=function(e){const t=gn(e);if(!t)return null;return e=>t(e).result}(t));return a?{property:e,value:a,important:on(n.style,e),sourceValue:t}:null}function an(...e){return e.filter(Boolean).join(", ")}function cn(e,t,n){const r=[];t||(r.push("html {"),r.push(`    background-color: ${kt({r:255,g:255,b:255},e)} !important;`),r.push("}")),_&&1===e.mode&&(r.push("html {"),r.push("    color-scheme: dark !important;"),r.push("}"),r.push("iframe {"),r.push("    color-scheme: initial;"),r.push("}"));const o=an(t?"":"html, body",n?"input, textarea, select, button, dialog":"");return o&&(r.push(`${o} {`),r.push(`    background-color: ${kt({r:255,g:255,b:255},e)};`),r.push("}")),r.push(`${an("html, body",n?"input, textarea, select, button":"")} {`),r.push(`    border-color: ${Ct({r:76,g:76,b:76},e)};`),r.push(`    color: ${Et({r:0,g:0,b:0},e)};`),r.push("}"),r.push("a {"),r.push(`    color: ${Et({r:0,g:64,b:255},e)};`),r.push("}"),r.push("table {"),r.push(`    border-color: ${Ct({r:128,g:128,b:128},e)};`),r.push("}"),r.push("mark {"),r.push(`    color: ${Et({r:0,g:0,b:0},e)};`),r.push("}"),r.push("::placeholder {"),r.push(`    color: ${Et({r:169,g:169,b:169},e)};`),r.push("}"),r.push("input:-webkit-autofill,"),r.push("textarea:-webkit-autofill,"),r.push("select:-webkit-autofill {"),r.push(`    background-color: ${kt({r:250,g:255,b:189},e)} !important;`),r.push(`    color: ${Et({r:0,g:0,b:0},e)} !important;`),r.push("}"),e.scrollbarColor&&r.push(function(e){const t=[];let n,r,o,s,a,i;if("auto"===e.scrollbarColor)n=kt({r:241,g:241,b:241},e),r=Et({r:96,g:96,b:96},e),o=kt({r:176,g:176,b:176},e),s=kt({r:144,g:144,b:144},e),a=kt({r:96,g:96,b:96},e),i=kt({r:255,g:255,b:255},e);else{const t=Ie(Fe(e.scrollbarColor)),c=t.l>.5,l=e=>({...t,l:st(t.l+e,0,1)}),u=e=>({...t,l:st(t.l-e,0,1)});n=Be(u(.4)),r=Be(c?u(.4):l(.4)),o=Be(t),s=Be(l(.1)),a=Be(l(.2)),i=Be(u(.5))}t.push("::-webkit-scrollbar {"),t.push(`    background-color: ${n};`),t.push(`    color: ${r};`),t.push("}"),t.push("::-webkit-scrollbar-thumb {"),t.push(`    background-color: ${o};`),t.push("}"),t.push("::-webkit-scrollbar-thumb:hover {"),t.push(`    background-color: ${s};`),t.push("}"),t.push("::-webkit-scrollbar-thumb:active {"),t.push(`    background-color: ${a};`),t.push("}"),t.push("::-webkit-scrollbar-corner {"),t.push(`    background-color: ${i};`),t.push("}"),m&&(t.push("* {"),t.push(`    scrollbar-color: ${o} ${n};`),t.push("}"));return t.join("\n")}(e)),e.selectionColor&&r.push(function(e){const t=[],n=ln(e),r=n.backgroundColorSelection,o=n.foregroundColorSelection;return["::selection","::-moz-selection"].forEach((e=>{t.push(`${e} {`),t.push(`    background-color: ${r} !important;`),t.push(`    color: ${o} !important;`),t.push("}")})),t.join("\n")}(e)),S&&(r.unshift("@layer {"),r.push("}")),r.join("\n")}function ln(e){let t,n;if("auto"===e.selectionColor)t=kt({r:0,g:96,b:212},{...e,grayscale:0}),n=Et({r:255,g:255,b:255},{...e,grayscale:0});else{const r=Ie(Fe(e.selectionColor));t=e.selectionColor,n=r.l<.5?"#FFF":"#000"}return{backgroundColorSelection:t,foregroundColorSelection:n}}function un(e,{strict:t}){return dn(e,{strict:t})}function dn(e,{strict:t}){const n=[];return n.push(`html, body, ${t?"body :not(iframe)":"body > :not(iframe)"} {`),n.push(`    background-color: ${kt({r:255,g:255,b:255},e)} !important;`),n.push(`    border-color: ${Ct({r:64,g:64,b:64},e)} !important;`),n.push(`    color: ${Et({r:0,g:0,b:0},e)} !important;`),n.push("}"),n.push('div[style*="background-color: rgb(135, 135, 135)"] {'),n.push("    background-color: #878787 !important;"),n.push("}"),n.join("\n")}const hn=new Set(["inherit","transparent","initial","currentcolor","none","unset","auto"]);const fn=new Map,mn=new Map;function pn(e,t,n,r){try{if(function(e,t){if(!e||0===t.length)return!1;if(t.some((e=>"*"===e)))return!0;const n=e.split(/,\s*/g);for(let e=0;e<t.length;e++){const r=t[e];if(n.some((e=>e===r)))return!0}return!1}(t.selectorText,n))return e;const o=function(e){const t=[];let n=0,r=en.length;for(;-1!==(n=e.indexOf("gradient",r));){let o;if([rn,nn,en].find((t=>{if(n-t.length>=0&&e.substring(n-t.length,n)===t)return"repeating"===e.slice(n-t.length-10,n-t.length-1)?(o=`repeating-${t}gradient`,!0):"-webkit"===e.slice(n-t.length-8,n-t.length-1)?(o=`-webkit-${t}gradient`,!0):(o=`${t}gradient`,!0)})),!o)break;const{start:s,end:a}=oe(e,n+Jt),i=e.substring(s+1,a-1);r=a+1+tn,t.push({typeGradient:o,match:i,offset:o.length+2,index:n-o.length+Jt,hasComma:!0})}return t.length&&(t[t.length-1].hasComma=!1),t}(e),s=ne(ye,e);if(0===s.length&&0===o.length)return e;const a=t=>{let n=0;return t.map((t=>{const r=e.indexOf(t,n);return n=r+t.length,{match:t,index:r}}))},i=o.map((e=>({type:"gradient",...e}))).concat(a(s).map((e=>({type:"url",offset:0,...e})))).sort(((e,t)=>e.index>t.index?1:-1)),c=e=>{const{typeGradient:t,match:n,hasComma:r}=e,o=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,s=ne(/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?([^\(\), ]|( (?!calc)))*),?/g,n,1).map((e=>{let t=Fe(e=e.trim());if(t)return e=>xt(t,e);const n=e.lastIndexOf(" ");if(t=Fe(e.substring(0,n)),t)return r=>`${xt(t,r)} ${e.substring(n+1)}`;const r=e.match(o);return r&&(t=Fe(r[3]),t)?e=>`${r[1]}(${r[2]?`${r[2]}, `:""}${xt(t,e)})`:()=>e}));return e=>`${t}(${s.map((t=>t(e))).join(", ")})${r?", ":""}`},l=e=>{let n=Se(e);const o=0===n.length,{parentStyleSheet:s}=t,a=s&&s.href?we(s.href):s?.ownerNode?.baseURI||location.origin;return n=he(a,n),async e=>{if(o)return"url('')";let t=null;if(fn.has(n))t=fn.get(n);else try{if(null==jt&&Ut&&await async function(){if(Ut){if(Ht)return await new Promise((e=>Gt.push(e)));Ht=!0,await new Promise((e=>{document.addEventListener("__darkreader__blobURLCheckResponse",(t=>{jt=t.detail.blobURLAllowed,e(),Gt.forEach((e=>e())),Gt.splice(0)}),{once:!0}),document.dispatchEvent(new CustomEvent("__darkreader__blobURLCheckRequest"))}))}}(),mn.has(n)){const e=mn.get(n);if(t=await new Promise((t=>e.push(t))),!t)return null}else mn.set(n,[]),t=await Pt(n),fn.set(n,t),mn.get(n).forEach((e=>e(t))),mn.delete(n);if(r())return null}catch(e){mn.has(n)&&(mn.get(n).forEach((e=>e(null))),mn.delete(n))}if(t){const n=u(t,e);if(n)return n}if(n.startsWith("data:")){const e=await async function(e){if(!jt)return null;const t=re(e);let n=Yt.get(t);if(n)return n;let r=Xt(e);if(!r){const t=await fetch(e);r=await t.blob()}return n=URL.createObjectURL(r),Yt.set(t,n),n}(n);if(e)return`url("${e}")`}return`url("${n}")`}},u=(e,t)=>{const{isDark:n,isLight:r,isTransparent:o,isLarge:s,width:a}=e;let i;e.src.startsWith("data:")||e.src;if(s&&r&&!o&&1===t.mode)i="none";else if(n&&o&&1===t.mode&&a>2){i=`url("${Qt(e,{...t,sepia:st(t.sepia+10,0,100)})}")`}else if(r&&!o&&1===t.mode){i=`url("${Qt(e,t)}")`}else if(0===t.mode&&r){i=`url("${Qt(e,{...t,brightness:st(t.brightness-10,5,200),sepia:st(t.sepia+10,0,100)})}")`}else i=null;return i},d=[];let h=0,f=!1;return i.forEach((({type:t,match:n,index:r,typeGradient:o,hasComma:s,offset:a},u)=>{const m=r,p=h,g=m+n.length+a;h=g,p!==m&&(f?d.push((()=>{let t=e.substring(p,m);return","===t[0]&&(t=t.substring(1)),t})):d.push((()=>e.substring(p,m)))),f=s||!1,"url"===t?d.push(l(n)):"gradient"===t&&d.push(c({match:n,index:r,typeGradient:o,hasComma:s||!1,offset:a})),u===i.length-1&&d.push((()=>e.substring(g)))})),e=>{const t=d.filter(Boolean).map((t=>t(e)));if(t.some((e=>e instanceof Promise)))return Promise.all(t).then((e=>e.filter(Boolean).join("")));const n=t.join("");return n.endsWith(", initial")?n.slice(0,-9):n}}catch(e){return null}}function gn(e){try{let t=0;const n=ne(/(^|\s)(?!calc)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,e,2);let r=0;const o=n.map(((o,s)=>{const a=t,i=e.indexOf(o,t),c=i+o.length;t=c;const l=Fe(o);return l?t=>`${e.substring(a,i)}${function(e,t){return kt(e,t)}(l,t)}${s===n.length-1?e.substring(c):""}`:(r++,()=>e.substring(a,c))}));return e=>{const t=o.map((t=>t(e))).join("");return{matchesLength:n.length,unparseableMatchesLength:r,result:t}}}catch(e){return null}}function bn(){dt.clear(),fn.clear(),Zt(),mn.clear()}const yn=new class{constructor(){this.varTypes=new Map,this.rulesQueue=new Set,this.inlineStyleQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}clear(){this.varTypes.clear(),this.rulesQueue.clear(),this.inlineStyleQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()}isVarType(e,t){return this.varTypes.has(e)&&(this.varTypes.get(e)&t)>0}addRulesForMatching(e){this.rulesQueue.add(e)}addInlineStyleForMatching(e){this.inlineStyleQueue.push(e)}matchVariablesAndDependents(){0===this.rulesQueue.size&&0===this.inlineStyleQueue.length||(this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.collectVariablesAndVarDep(),this.collectRootVarDependents(),this.varRefs.forEach(((e,t)=>{e.forEach((e=>{this.varTypes.has(t)&&this.resolveVariableType(e,this.varTypes.get(t))}))})),this.unknownColorVars.forEach((e=>{this.unknownBgVars.has(e)?(this.unknownColorVars.delete(e),this.unknownBgVars.delete(e),this.resolveVariableType(e,1)):this.isVarType(e,7)?this.unknownColorVars.delete(e):this.undefinedVars.add(e)})),this.unknownBgVars.forEach((e=>{null!=this.findVarRef(e,(e=>this.unknownColorVars.has(e)||this.isVarType(e,7)))?this.iterateVarRefs(e,(e=>{this.resolveVariableType(e,1)})):this.isVarType(e,9)?this.unknownBgVars.delete(e):this.undefinedVars.add(e)})),this.changedTypeVars.forEach((e=>{this.typeChangeSubscriptions.has(e)&&this.typeChangeSubscriptions.get(e).forEach((e=>{e()}))})),this.changedTypeVars.clear())}getModifierForVariable(e){return t=>{const{varName:n,sourceValue:r,rule:o,ignoredImgSelectors:s,isCancelled:a}=e,i=()=>{const e=[],i=(o,s,a)=>{if(!this.isVarType(n,o))return;const i=s(n);let c;if($n(r))if(An(r)){let e=Fn(r,this.unstableVarValues);e||(e=1===o?"#ffffff":"#000000"),c=a(e,t)}else c=_n(r,(e=>s(e)),(e=>a(e,t)));else c=a(r,t);e.push({property:i,value:c})};if(i(1,En,Dn),i(2,vn,Pn),i(4,Cn,On),this.isVarType(n,8)){const i=xn(n);let c=r;$n(r)&&(c=_n(r,(e=>En(e)),(e=>Dn(e,t))));const l=pn(c,o,s,a);c="function"==typeof l?l(t):l,e.push({property:i,value:c})}return e},c=new Set;return{declarations:i(),onTypeChange:{addListener:e=>{const t=()=>{const t=i();e(t)};c.add(t),this.subscribeForVarTypeChange(n,t)},removeListeners:()=>{c.forEach((e=>{this.unsubscribeFromVariableTypeChanges(n,e)}))}}}}}getModifierForVarDependant(e,t){const n=t.match(/^\s*(rgb|hsl)a?\(/),r=t.match(/^rgba?\(var\(--[\-_A-Za-z0-9]+\)(\s*,?\/?\s*0?\.\d+)?\)$/);if(n&&!r){const n=e.startsWith("background"),r=Tn(e);return e=>{let o=Fn(t,this.unstableVarValues);o||(o=n?"#ffffff":"#000000");return(n?Dn:r?Pn:On)(o,e)}}return"background-color"===e||r&&"background"===e?e=>{const r=Dn(n?"255, 255, 255":"#ffffff",e);return _n(t,(e=>En(e)),(t=>Dn(t,e)),r)}:Tn(e)?e=>{const r=Pn(n?"0, 0, 0":"#000000",e);return _n(t,(e=>vn(e)),(t=>Pn(t,e)),r)}:"background"===e||"background-image"===e||"box-shadow"===e?n=>{const r=new Set,o=()=>{const o=_n(t,(e=>this.isVarType(e,1)?En(e):this.isVarType(e,8)?xn(e):(r.add(e),e)),(e=>Dn(e,n)));if("box-shadow"===e){const e=gn(o)(n);if(e.unparseableMatchesLength!==e.matchesLength)return e.result}return o},s=o();if(r.size>0){return s.match(/^var\(.*?, (var\(--darkreader-bg--.*\))|(#[0-9A-Fa-f]+)|([a-z]+)|(rgba?\(.+\))|(hsla?\(.+\))\)$/)?s:new Promise((e=>{for(const t of r.values()){const n=()=>{this.unsubscribeFromVariableTypeChanges(t,n);const r=o();e(r)};this.subscribeForVarTypeChange(t,n)}}))}return s}:e.startsWith("border")||e.startsWith("outline")?e=>_n(t,(e=>Cn(e)),(t=>On(t,e))):null}subscribeForVarTypeChange(e,t){this.typeChangeSubscriptions.has(e)||this.typeChangeSubscriptions.set(e,new Set);const n=this.typeChangeSubscriptions.get(e);n.has(t)||n.add(t)}unsubscribeFromVariableTypeChanges(e,t){this.typeChangeSubscriptions.has(e)&&this.typeChangeSubscriptions.get(e).delete(t)}collectVariablesAndVarDep(){this.rulesQueue.forEach((e=>{fe(e,(e=>{e.style&&this.collectVarsFromCSSDeclarations(e.style)}))})),this.inlineStyleQueue.forEach((e=>{this.collectVarsFromCSSDeclarations(e)})),this.rulesQueue.clear(),this.inlineStyleQueue.splice(0)}collectVarsFromCSSDeclarations(e){ge(e,((e,t)=>{Rn(e)&&this.inspectVariable(e,t),$n(t)&&this.inspectVarDependant(e,t)}))}shouldProcessRootVariables(){return this.rulesQueue.size>0&&document.documentElement.getAttribute("style")?.includes("--")}collectRootVariables(){this.shouldProcessRootVariables()&&ge(document.documentElement.style,((e,t)=>{Rn(e)&&this.inspectVariable(e,t)}))}inspectVariable(e,t){if(this.unstableVarValues.set(e,t),$n(t)&&An(t)&&(this.unknownColorVars.add(e),this.definedVars.add(e)),this.definedVars.has(e))return;this.definedVars.add(e);Boolean(t.match(Mn)||t.match(Vn)||Fe(t))?this.unknownColorVars.add(e):(t.includes("url(")||t.includes("linear-gradient(")||t.includes("radial-gradient("))&&this.resolveVariableType(e,8)}resolveVariableType(e,t){const n=this.initialVarTypes.get(e)||0,r=(this.varTypes.get(e)||0)|t;this.varTypes.set(e,r),(r!==n||this.undefinedVars.has(e))&&(this.changedTypeVars.add(e),this.undefinedVars.delete(e)),this.unknownColorVars.delete(e),this.unknownBgVars.delete(e)}collectRootVarDependents(){this.shouldProcessRootVariables()&&ge(document.documentElement.style,((e,t)=>{$n(t)&&this.inspectVarDependant(e,t)}))}inspectVarDependant(e,t){Rn(e)?this.iterateVarDeps(t,(t=>{this.varRefs.has(e)||this.varRefs.set(e,new Set),this.varRefs.get(e).add(t)})):"background-color"===e||"box-shadow"===e?this.iterateVarDeps(t,(e=>this.resolveVariableType(e,1))):Tn(e)?this.iterateVarDeps(t,(e=>this.resolveVariableType(e,2))):e.startsWith("border")||e.startsWith("outline")?this.iterateVarDeps(t,(e=>this.resolveVariableType(e,4))):"background"!==e&&"background-image"!==e||this.iterateVarDeps(t,(e=>{if(this.isVarType(e,9))return;const t=null!=this.findVarRef(e,(e=>this.unknownColorVars.has(e)||this.isVarType(e,7)));this.iterateVarRefs(e,(e=>{t?this.resolveVariableType(e,1):this.unknownBgVars.add(e)}))}))}iterateVarDeps(e,t){const n=new Set;!function(e,t){_n(e,(e=>(t(e),e)))}(e,(e=>n.add(e))),n.forEach((e=>t(e)))}findVarRef(e,t,n=new Set){if(n.has(e))return null;n.add(e);if(t(e))return e;const r=this.varRefs.get(e);if(!r||0===r.size)return null;for(const e of r){const r=this.findVarRef(e,t,n);if(r)return r}return null}iterateVarRefs(e,t){this.findVarRef(e,(e=>(t(e),!1)))}setOnRootVariableChange(e){this.onRootVariableDefined=e}putRootVars(e,t){const n=e.sheet;n.cssRules.length>0&&n.deleteRule(0);const r=new Map;ge(document.documentElement.style,((e,n)=>{Rn(e)&&(this.isVarType(e,1)&&r.set(En(e),Dn(n,t)),this.isVarType(e,2)&&r.set(vn(e),Pn(n,t)),this.isVarType(e,4)&&r.set(Cn(e),On(n,t)),this.subscribeForVarTypeChange(e,this.onRootVariableDefined))}));const o=[];o.push(":root {");for(const[e,t]of r)o.push(`    ${e}: ${t};`);o.push("}");const s=o.join("\n");n.insertRule(s)}};function kn(e,t=0){const n=e.indexOf("var(",t);if(n>=0){const t=oe(e,n+3);if(t)return{start:n,end:t.end}}return null}function Sn(e,t){const n=function(e){const t=[];let n,r=0;for(;n=kn(e,r);){const{start:o,end:s}=n;t.push({start:o,end:s,value:e.substring(o,s)}),r=n.end+1}return t}(e),r=n.length;if(0===r)return e;const o=e.length,s=n.map((e=>t(e.value,n.length))),a=[];a.push(e.substring(0,n[0].start));for(let t=0;t<r;t++){a.push(s[t]);const i=n[t].end,c=t<r-1?n[t+1].start:o;a.push(e.substring(i,c))}return a.join("")}function wn(e){const t=e.indexOf(",");let n,r;return t>=0?(n=e.substring(4,t).trim(),r=e.substring(t+1,e.length-1).trim()):(n=e.substring(4,e.length-1).trim(),r=""),{name:n,fallback:r}}function _n(e,t,n,r){return Sn(e,(e=>{const{name:o,fallback:s}=wn(e),a=t(o);if(!s)return r?`var(${a}, ${r})`:`var(${a})`;let i;return i=$n(s)?_n(s,t,n):n?n(s):s,`var(${a}, ${i})`}))}function En(e){return`--darkreader-bg${e}`}function vn(e){return`--darkreader-text${e}`}function Cn(e){return`--darkreader-border${e}`}function xn(e){return`--darkreader-bgimg${e}`}function Rn(e){return e.startsWith("--")}function $n(e){return e.includes("var(")}function An(e){return e.match(/^\s*(rgb|hsl)a?\(/)||e.match(/^(((\d{1,3})|(var\([\-_A-Za-z0-9]+\))),?\s*?){3}$/)}function Tn(e){return"color"===e||"caret-color"===e||"-webkit-text-fill-color"===e}const Mn=/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})$/,Vn=/^(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})$/;function Ln(e,t,n){const{isRaw:r,color:o}=function(e){const t=e.match(Mn)??e.match(Vn);if(t)return{isRaw:!0,color:`rgb(${t[1]}, ${t[2]}, ${t[3]})`};return{isRaw:!1,color:e}}(e),s=Fe(o);if(s){const e=n(s,t);if(r){const t=Fe(e);return t?`${t.r}, ${t.g}, ${t.b}`:e}return e}return o}function Dn(e,t){return Ln(e,t,kt)}function Pn(e,t){return Ln(e,t,Et)}function On(e,t){return Ln(e,t,Ct)}function Fn(e,t,n=new Set){let r=!1;const o=Sn(e,((e,o)=>{const{name:s,fallback:a}=wn(e),i=o>1?new Set(n):n;if(i.has(s))return r=!0,null;i.add(s);const c=t.get(s)||a;let l=null;return c&&(l=$n(c)?Fn(c,t,i):c),l||(r=!0,null)}));return r?null:o}const Nn={"background-color":{customProp:"--darkreader-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkreader-inline-bgcolor"},"background-image":{customProp:"--darkreader-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkreader-inline-bgimage"},"border-color":{customProp:"--darkreader-inline-border",cssProp:"border-color",dataAttr:"data-darkreader-inline-border"},"border-bottom-color":{customProp:"--darkreader-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkreader-inline-border-bottom"},"border-left-color":{customProp:"--darkreader-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkreader-inline-border-left"},"border-right-color":{customProp:"--darkreader-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkreader-inline-border-right"},"border-top-color":{customProp:"--darkreader-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkreader-inline-border-top"},"box-shadow":{customProp:"--darkreader-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkreader-inline-boxshadow"},color:{customProp:"--darkreader-inline-color",cssProp:"color",dataAttr:"data-darkreader-inline-color"},fill:{customProp:"--darkreader-inline-fill",cssProp:"fill",dataAttr:"data-darkreader-inline-fill"},stroke:{customProp:"--darkreader-inline-stroke",cssProp:"stroke",dataAttr:"data-darkreader-inline-stroke"},"outline-color":{customProp:"--darkreader-inline-outline",cssProp:"outline-color",dataAttr:"data-darkreader-inline-outline"},"stop-color":{customProp:"--darkreader-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-darkreader-inline-stopcolor"}},Wn={background:{customProp:"--darkreader-inline-bg",cssProp:"background",dataAttr:"data-darkreader-inline-bg"}},In=Object.values(Nn),qn={};In.forEach((({cssProp:e,customProp:t})=>qn[t]=e));const Bn=["style","fill","stop-color","stroke","bgcolor","color","background"],jn=Bn.map((e=>`[${e}]`)).join(", ");function Un(){return In.concat(Object.values(Wn)).map((({dataAttr:e,customProp:t,cssProp:n})=>[`[${e}] {`,`  ${n}: var(${t}) !important;`,"}"].join("\n"))).concat(["[data-darkreader-inline-invert] {","    filter: invert(100%) hue-rotate(180deg);","}"]).join("\n")}const Hn=new Map,Gn=new Map;function zn(e,t,n){Hn.has(e)&&(Hn.get(e).disconnect(),Gn.get(e).disconnect());const r=new WeakSet;function o(e){(function(e){const t=[];return e instanceof Element&&e.matches(jn)&&t.push(e),(e instanceof Element||y&&e instanceof ShadowRoot||e instanceof Document)&&F(t,e.querySelectorAll(jn)),t})(e).forEach((e=>{r.has(e)||(r.add(e),t(e))})),U(e,(o=>{r.has(e)||(r.add(e),n(o.shadowRoot),zn(o.shadowRoot,t,n))})),yn.matchVariablesAndDependents()}const s=te(e,{onMinorMutations:(e,{additions:t})=>{t.forEach((e=>o(e)))},onHugeMutations:()=>{o(e)}});Hn.set(e,s);let a=0,i=null;const c=q({seconds:10}),l=q({seconds:2});let u=[],d=null;const h=N((e=>{const n=new Set;e.forEach((e=>{const r=e.target;n.has(r)||Bn.includes(e.attributeName)&&(n.add(r),t(r))})),yn.matchVariablesAndDependents()})),f=new MutationObserver((e=>{if(d)return void u.push(...e);a++;const t=Date.now();if(null==i)i=t;else if(a>=50){if(t-i<c)return d=setTimeout((()=>{i=null,a=0,d=null;const e=u;u=[],h(e)}),l),void u.push(...e);i=t,a=1}h(e)}));f.observe(e,{attributes:!0,attributeFilter:Bn.concat(In.map((({dataAttr:e})=>e))),subtree:!0}),Gn.set(e,f)}const Qn=new WeakMap,Kn=new WeakSet,Yn=new WeakMap,Xn=["brightness","contrast","grayscale","sepia","mode"];function Zn(e,t){return Bn.map((t=>`${t}="${e.getAttribute(t)}"`)).concat(Xn.map((e=>`${e}="${t[e]}"`))).join(" ")}function Jn(e,t,n,r){if(Zn(e,t)===Qn.get(e))return;const o=new Set(Object.keys(Nn));function s(n,s,a){const i=sn(s,a,{style:e.style},yn,r,null);if(!i)return;function c(t){const{customProp:r,dataAttr:s}=Nn[n]??Wn[n];e.style.setProperty(r,t),e.hasAttribute(s)||e.setAttribute(s,""),o.delete(n)}const l="function"==typeof i.value?i.value(t):i.value;var u;"string"==typeof l?c(l):l instanceof Promise?(u=a,l.then((r=>{r&&"background"===n&&r.startsWith("var(--darkreader-bg--")&&c(r),r&&"background-image"===n&&(e!==document.documentElement&&e!==document.body||r!==u||(r="none"),c(r)),Qn.set(e,Zn(e,t))}))):"object"==typeof l&&function(t){let n=[];function r(t){n.forEach((({property:t})=>{e.style.removeProperty(t)})),t.forEach((({property:t,value:n})=>{n instanceof Promise||e.style.setProperty(t,n)})),n=t}r(t.declarations),t.onTypeChange.addListener(r)}(l)}if(n.length>0&&function(e,t){for(let n=0,r=t.length;n<r;n++){const r=t[n];if(e.matches(r))return!0}return!1}(e,n))return void o.forEach((t=>{e.removeAttribute(Nn[t].dataAttr)}));const a=e instanceof SVGElement,i=a?e.ownerSVGElement??(e instanceof SVGSVGElement?e:null):null;if(a&&1===t.mode&&i){if(Kn.has(i))return;if(function(e){if(Yn.has(e))return Yn.get(e);const t=Boolean(e&&(e.getAttribute("class")?.includes("logo")||e.parentElement?.getAttribute("class")?.includes("logo")));return Yn.set(e,t),t}(i)){Kn.add(i);const e=()=>{let e=i.outerHTML;e=e.replaceAll('<style class="darkreader darkreader--sync" media="screen"></style>',"");Pt(`data:image/svg+xml;base64,${btoa(e)}`).then((e=>{e.isDark&&e.isTransparent||e.isLarge&&e.isLight&&!e.isTransparent?i.setAttribute("data-darkreader-inline-invert",""):i.removeAttribute("data-darkreader-inline-invert")}))};return e(),void(H()||z(e))}}if(e.hasAttribute("bgcolor")){let t=e.getAttribute("bgcolor");(t.match(/^[0-9a-f]{3}$/i)||t.match(/^[0-9a-f]{6}$/i))&&(t=`#${t}`),s("background-color","background-color",t)}if((e===document.documentElement||e===document.body)&&e.hasAttribute("background")){s("background-image","background-image",`url("${he(location.href,e.getAttribute("background")??"")}")`)}if(e.hasAttribute("color")&&"mask-icon"!==e.rel){let t=e.getAttribute("color");(t.match(/^[0-9a-f]{3}$/i)||t.match(/^[0-9a-f]{6}$/i))&&(t=`#${t}`),s("color","color",t)}if(a){if(e.hasAttribute("fill")){const t=32,n=e.getAttribute("fill");if("none"!==n)if(e instanceof SVGTextElement)s("fill","color",n);else{const r=()=>{const{width:r,height:o}=e.getBoundingClientRect();s("fill",r>t||o>t?"background-color":"color",n)};K()?r():X(r)}}e.hasAttribute("stop-color")&&s("stop-color","background-color",e.getAttribute("stop-color"))}if(e.hasAttribute("stroke")){const t=e.getAttribute("stroke");s("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",t)}e.style&&ge(e.style,((t,n)=>{if("background-image"===t&&n.includes("url"))e!==document.documentElement&&e!==document.body||s(t,t,n);else if(Nn.hasOwnProperty(t)||t.startsWith("--")&&!qn[t])s(t,t,n);else if("background"===t&&n.includes("var("))s("background","background",n);else{const n=qn[t];if(n&&!e.style.getPropertyValue(n)&&!e.hasAttribute(n)){if("background-color"===n&&e.hasAttribute("bgcolor"))return;e.style.setProperty(t,"")}}})),e.style&&e instanceof SVGTextElement&&e.style.fill&&s("fill","color",e.style.getPropertyValue("fill")),e.getAttribute("style")?.includes("--")&&yn.addInlineStyleForMatching(e.style),O(o,(t=>{e.removeAttribute(Nn[t].dataAttr)})),Qn.set(e,Zn(e,t))}const er="theme-color",tr=`meta[name="${er}"]`;let nr=null,rr=null;function or(e,t){nr=nr||e.content;const n=Fe(nr);n&&(e.content=kt(n,t))}const sr=/\/\*[\s\S]*?\*\//g;function ar(e){return e.replace(sr,"")}const ir=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"];const cr=function(){const e=[];let t=null;function n(){let n;for(;n=e.shift();)n();t=null}return{add:function(r){e.push(r),t||(t=requestAnimationFrame(n))},cancel:function(){e.splice(0),cancelAnimationFrame(t),t=null}}}();function lr(){let e=0;const t=new Set,n=new Map,r=new Set;let o=null,s=!1,a=!1;return{modifySheet:function(i){const c=i.sourceCSSRules,{theme:l,ignoreImageAnalysis:u,force:d,prepareSheet:h,isAsyncCancelled:m}=i;let p=0===n.size;const g=new Set(n.keys()),b=function(e){let t="";return ir.forEach((n=>{t+=`${n}:${e[n]};`})),t}(l),y=b!==o;s&&(a=!0);const k=[];if(fe(c,(e=>{const r=function(e){let t=e.cssText;return Ae(e.parentRule)&&(t=`${e.parentRule.media.mediaText} { ${t} }`),re(t)}(e);let o=!1;if(g.delete(r),t.has(r)||(t.add(r),o=!0),!o)return void k.push(n.get(r));if(p=!0,"revert"===e.style.all)return;const s=[];e.style&&ge(e.style,((t,n)=>{const r=sn(t,n,e,yn,u,m);r&&s.push(r)}));let a=null;if(s.length>0){const t=e.parentRule;a={selector:e.selectorText,declarations:s,parentRule:t},k.push(a)}n.set(r,a)}),(()=>{s=!0})),g.forEach((e=>{t.delete(e),n.delete(e)})),o=b,!d&&!p&&!y)return;function S(e,t,n){const{selector:r,declarations:o}=n;let s=r;const a=f&&r.startsWith(":is(")&&(r.includes(":is()")||r.includes(":where()")||r.includes(":where(")&&r.includes(":-moz")),i=r.includes("::view-transition-");(a||i)&&(s=".darkreader-unsupported-selector");let c=`${s} {`;for(const e of o){const{property:t,value:n,important:r}=e;n&&(c+=` ${t}: ${n}${r?" !important":""};`)}c+=" }",e.insertRule(c,t)}e++;const w=new Map,_=new Map;let E=0,v=0;const C={rule:null,rules:[],isGroup:!0},x=new WeakMap;function R(e){if(null==e)return C;if(x.has(e))return x.get(e);const t={rule:e,rules:[],isGroup:!0};x.set(e,t);return R(e.parentRule).rules.push(t),t}r.forEach((e=>e())),r.clear(),k.filter((e=>e)).forEach((({selector:t,declarations:n,parentRule:o})=>{const s=R(o),a={selector:t,declarations:[],isGroup:!1},i=a.declarations;function c(t,n,r,o){const s=++E,a={property:t,value:null,important:r,asyncKey:s,sourceValue:o};i.push(a);const c=e;n.then((t=>{t&&!m()&&c===e&&(a.value=t,cr.add((()=>{m()||c!==e||function(e){const{rule:t,target:n,index:r}=w.get(e);n.deleteRule(r),S(n,r,t),w.delete(e)}(s)})))}))}function u(t,n,o,s){const{declarations:a,onTypeChange:l}=n,u=++v,d=e,h=i.length;let f=[];if(0===a.length){const e={property:t,value:s,important:o,sourceValue:s,varKey:u};i.push(e),f=[e]}a.forEach((e=>{if(e.value instanceof Promise)c(e.property,e.value,o,s);else{const t={property:e.property,value:e.value,important:o,sourceValue:s,varKey:u};i.push(t),f.push(t)}})),l.addListener((t=>{if(m()||d!==e)return;const n=t.map((e=>({property:e.property,value:e.value,important:o,sourceValue:s,varKey:u}))),r=i.indexOf(f[0],h);i.splice(r,f.length,...n),f=n,function(e){const{rule:t,target:n,index:r}=_.get(e);n.deleteRule(r),S(n,r,t)}(u)})),r.add((()=>l.removeListeners()))}s.rules.push(a),n.forEach((({property:e,value:t,important:n,sourceValue:r})=>{if("function"==typeof t){const o=t(l);o instanceof Promise?c(e,o,n,r):e.startsWith("--")?u(e,o,n,r):i.push({property:e,value:o,important:n,sourceValue:r})}else i.push({property:e,value:t,important:n,sourceValue:r})}))}));const $=h();!function e(t,n,r){t.rules.forEach((t=>{if(t.isGroup){const o=function(e,t){const{rule:n}=e;if(Ae(n)){const{media:e}=n,r=t.cssRules.length;return t.insertRule(`@media ${e.mediaText} {}`,r),t.cssRules[r]}if(Te(n)){const{name:e}=n,r=t.cssRules.length;return t.insertRule(`@layer ${e} {}`,r),t.cssRules[r]}return t}(t,n);e(t,o,r)}else r(t,n)}))}(C,$,((e,t)=>{const n=t.cssRules.length;e.declarations.forEach((({asyncKey:r,varKey:o})=>{null!=r&&w.set(r,{rule:e,target:t,index:n}),null!=o&&_.set(o,{rule:e,target:t,index:n})})),S(t,n,e)}))},shouldRebuildStyle:function(){return s&&!a}}}let ur=!1;function dr(e,t,n,r){let o=null;let s=!1;function a(){ur=!0,o?.stop(),s||(s=!0,queueMicrotask((function(){s=!1,r()||n()})))}return{start:function(){e.addEventListener("__darkreader__updateSheet",a),ur&&e.sheet||(o=function(e,t,n,r){let o=null,s=null;function a(){const e=t();return e?e.length:null}function i(){return a()!==o}function c(){o=a(),l();const t=()=>{const c=r();!c&&i()&&(o=a(),n()),c||ur&&e.sheet?l():s=requestAnimationFrame(t)};t()}function l(){s&&cancelAnimationFrame(s)}return{start:c,stop:l}}(e,t,n,r),o.start())},stop:function(){e.removeEventListener("__darkreader__updateSheet",a),o?.stop()}}}document.addEventListener("__darkreader__inlineScriptsAllowed",(()=>ur=!0),{once:!0});const hr='style, link[rel*="stylesheet" i]:not([disabled])';const fr=["www.onet.pl"];function mr(e){return(e instanceof HTMLStyleElement||e instanceof SVGStyleElement&&!fr.includes(location.hostname)||e instanceof HTMLLinkElement&&Boolean(e.rel)&&e.rel.toLowerCase().includes("stylesheet")&&Boolean(e.href)&&!e.disabled&&(!m||!e.href.startsWith("moz-extension://"))&&!function(e){if(!e.href)return!1;try{return"fonts.googleapis.com"===new URL(e.href).hostname}catch(t){return e.href,!1}}(e))&&!e.classList.contains("darkreader")&&"print"!==e.media.toLowerCase()&&!e.classList.contains("stylus")}function pr(e,t=[],n=!0){return mr(e)?t.push(e):(e instanceof Element||y&&e instanceof ShadowRoot||e===document)&&(O(e.querySelectorAll(hr),(e=>pr(e,t,!1))),n&&U(e,(e=>pr(e.shadowRoot,t,!1)))),t}const gr=new WeakSet,br=new WeakSet;let yr=0;const kr=new Map;function Sr(e,{update:t,loadingStart:n,loadingEnd:r}){const o=[];let s=e;for(;(s=s.nextElementSibling)&&s.matches(".darkreader");)o.push(s);let a=o.find((e=>e.matches(".darkreader--cors")&&!br.has(e)))||null,i=o.find((e=>e.matches(".darkreader--sync")&&!gr.has(e)))||null,c=null,l=null,u=!1,d=!0;const h=()=>u,f=lr(),m=new MutationObserver((n=>{if(n.some((e=>"characterData"===e.type))&&b()){C((e.textContent??"").trim(),location.href).then(t)}else t()})),g={attributes:!0,childList:!0,subtree:!0,characterData:!0};function b(){if(!(e instanceof HTMLStyleElement))return!1;return ar(e.textContent??"").trim().match(ke)}function y(e,t){let n=!1;if(e){let r;e:for(let o=0,s=e.length;o<s;o++)if(r=e[o],r.href){if(!t){n=!0;break e}if(!r.href.startsWith("https://fonts.googleapis.com/")&&r.href.startsWith("http")&&!r.href.startsWith(location.origin)){n=!0;break e}}}return n}function k(){if(a)return a.sheet.cssRules;if(b())return null;const t=$();return e instanceof HTMLLinkElement&&!function(e){if(e.startsWith("data:"))return!0;const t=de(e);return t.protocol===location.protocol&&t.hostname===location.hostname&&t.port===location.port&&t.pathname===location.pathname}(e.href)&&y(t,!1)||y(t,!0)?null:t}function S(){a?(e.nextSibling!==a&&e.parentNode.insertBefore(a,e.nextSibling),a.nextSibling!==i&&e.parentNode.insertBefore(i,a.nextSibling)):e.nextSibling!==i&&e.parentNode.insertBefore(i,e.nextSibling)}let w=!1,_=!1;const E=++yr;async function v(){let t,n;if(e instanceof HTMLLinkElement){let[o,s]=R();if(p&&!e.sheet||!p&&!o&&!s||(r=s)&&r.message&&r.message.includes("loading")){try{await async function(e,t){return new Promise(((n,r)=>{const o=()=>{e.removeEventListener("load",s),e.removeEventListener("error",a),kr.delete(t)},s=()=>{o(),n()},a=()=>{o(),r(`Linkelement ${t} couldn't be loaded. ${e.href}`)};kr.set(t,(()=>{o(),r()})),e.addEventListener("load",s,{passive:!0}),e.addEventListener("error",a,{passive:!0}),e.href||a()}))}(e,E)}catch(e){_=!0}if(u)return null;[o,s]=R()}if(o&&!y(o,!1))return o;if(t=await wr(e.href),n=we(e.href),u)return null}else{if(!b())return null;t=e.textContent.trim(),n=we(location.href)}var r;return await C(t,n),a?a.sheet.cssRules:null}async function C(t,n){if(t){try{const r=await _r(t,n);a?(a.textContent?.length??0)<r.length&&(a.textContent=r):a=function(e,t){if(!t)return null;const n=document.createElement("style");return n.classList.add("darkreader"),n.classList.add("darkreader--cors"),n.media="screen",n.textContent=t,e.parentNode.insertBefore(n,e.nextSibling),n.sheet.disabled=!0,br.add(n),n}(e,r)}catch(e){}a&&(c=j(a,"prev-sibling"))}}let x=!1;function R(){try{return null==e.sheet?[null,null]:[e.sheet.cssRules,null]}catch(e){return[null,e]}}function $(){const[e,t]=R();return t?null:e}const A=dr(e,$,t,h);function T(){m.disconnect(),u=!0,c&&c.stop(),l&&l.stop(),A.stop()}let M=0;return{details:function(e){const o=k();return o?{rules:o}:(e.secondRound||w||_||(w=!0,n(),v().then((e=>{w=!1,r(),e&&t()})).catch((e=>{w=!1,r()}))),null)},render:function(n,r){const o=k();function s(){i||(i=e instanceof SVGStyleElement?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style"),i.classList.add("darkreader"),i.classList.add("darkreader--sync"),i.media="screen",e.title&&(i.title=e.title),gr.add(i)),l&&l.stop(),S(),null==i.sheet&&(i.textContent="");return function(e){if(e)for(let t=e.cssRules.length-1;t>=0;t--)e.deleteRule(t)}(i.sheet),l?l.run():l=j(i,"prev-sibling",(()=>{x=!0,a()})),i.sheet}function a(){const e=x;x=!1,f.modifySheet({prepareSheet:s,sourceCSSRules:o,theme:n,ignoreImageAnalysis:r,force:e,isAsyncCancelled:h}),d=0===i.sheet.cssRules.length,f.shouldRebuildStyle()&&X((()=>t()))}o&&(u=!1,a())},pause:T,destroy:function(){if(T(),B(a),B(i),r(),kr.has(E)){const e=kr.get(E);kr.delete(E),e&&e()}},watch:function(){m.observe(e,g),e instanceof HTMLStyleElement&&A.start()},restore:function(){i&&(M++,M>10||(S(),c&&c.skip(),l&&l.skip(),d||(x=!0,t())))}}}async function wr(e){if(e.startsWith("data:"))return await(await fetch(e)).text();return new URL(e).origin===location.origin?await async function(e,t,n){const r=await E(e,t,n);return await r.text()}(e,"text/css",location.origin):await Lt({url:e,responseType:"text",mimeType:"text/css",origin:location.origin})}async function _r(e,t,n=new Map){e=ar(e),e=function(e,t){return e.replace(ye,(e=>{try{const n=Se(e);return`url('${he(t,n).replaceAll("'","\\'")}')`}catch(t){return e}}))}(e=e.replace(_e,""),t);const r=ne(ke,e);for(const o of r){const r=he(t,Se(o.substring(7).trim().replace(/;$/,"").replace(/screen$/,"")));let s;if(n.has(r))s=n.get(r);else try{s=await wr(r),n.set(r,s),s=await _r(s,we(r),n)}catch(e){s=""}e=e.split(o).join(s)}return e=e.trim()}const Er=new Set,vr=new Map;let Cr;function xr(e){let t=e.tagName.toLowerCase();if(!t.includes("-")){const n=e.getAttribute("is");if(!n)return;t=n}vr.has(t)||(vr.set(t,new Set),async function(e){if(Er.has(e))return;return new Promise((t=>{if(window.customElements&&"function"==typeof customElements.whenDefined)customElements.whenDefined(e).then((()=>t()));else if($r)Ar.has(e)?Ar.get(e).push(t):Ar.set(e,[t]),document.dispatchEvent(new CustomEvent("__darkreader__addUndefinedResolver",{detail:{tag:e}}));else{const n=()=>{const r=vr.get(e);r&&r.size>0&&(r.values().next().value.matches(":defined")?t():requestAnimationFrame(n))};requestAnimationFrame(n)}}))}(t).then((()=>{if(Cr){const e=vr.get(t);vr.delete(t),Cr(Array.from(e))}}))),vr.get(t).add(e)}function Rr(e){w&&O(e.querySelectorAll(":not(:defined)"),xr)}let $r=!1;document.addEventListener("__darkreader__inlineScriptsAllowed",(()=>{$r=!0}),{once:!0,passive:!0});const Ar=new Map;function Tr(e){$r=!0;const t=e.detail.tag;if(Er.add(t),Ar.has(t)){const e=Ar.get(t);Ar.delete(t),e.forEach((e=>e()))}}const Mr=[];let Vr;function Lr(e,t,n){Dr();const r=new WeakMap,o=e=>(r.has(e)||r.set(e,new Set),r.get(e));e.forEach((e=>{let t=e;for(;t=t.parentNode;)if(t===document||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){o(t).add(e);break}}));const s=new WeakMap,a=new WeakMap;function i(e){s.set(e,e.previousElementSibling),a.set(e,e.nextElementSibling)}function c(e,n){const{createdStyles:r,removedStyles:c,movedStyles:l}=n;r.forEach((e=>i(e))),l.forEach((e=>i(e))),c.forEach((e=>{return t=e,s.delete(t),void a.delete(t);var t}));const u=o(e);r.forEach((e=>u.add(e))),c.forEach((e=>u.delete(e))),r.size+c.size+l.size>0&&t({created:Array.from(r),removed:Array.from(c),moved:Array.from(l),updated:[]})}function l(e,{additions:t,moves:n,deletions:r}){const o=new Set,s=new Set,a=new Set;t.forEach((e=>pr(e).forEach((e=>o.add(e))))),r.forEach((e=>pr(e).forEach((e=>s.add(e))))),n.forEach((e=>pr(e).forEach((e=>a.add(e))))),c(e,{createdStyles:o,removedStyles:s,movedStyles:a}),t.forEach((e=>{m(e),Rr(e)})),t.forEach((e=>{return!(!(t=e).tagName.includes("-")&&!t.getAttribute("is"))&&xr(e);var t}))}function u(e){const t=new Set(pr(e)),n=new Set,r=new Set,i=new Set,l=o(e);t.forEach((e=>{l.has(e)||n.add(e)})),l.forEach((e=>{t.has(e)||r.add(e)})),t.forEach((e=>{var t;n.has(e)||r.has(e)||(t=e).previousElementSibling===s.get(t)&&t.nextElementSibling===a.get(t)||i.add(e)})),c(e,{createdStyles:n,removedStyles:r,movedStyles:i}),m(e),Rr(e)}function d(e){const n=new Set,r=new Set;e.forEach((e=>{const{target:t}=e;t.isConnected&&(mr(t)?n.add(t):t instanceof HTMLLinkElement&&t.disabled&&r.add(t))})),n.size+r.size>0&&t({updated:Array.from(n),created:[],removed:Array.from(r),moved:[]})}function h(e){if(Vr.has(e))return;const t=te(e,{onMinorMutations:l,onHugeMutations:u}),n=new MutationObserver(d);n.observe(e,{attributeFilter:["rel","disabled","media","href"],subtree:!0}),Mr.push(t,n),Vr.add(e)}function f(e){const{shadowRoot:t}=e;null==t||Vr.has(t)||(h(t),n(t))}function m(e){U(e,f)}e.forEach(i),h(document),m(document.documentElement),Cr=e=>{const n=[];e.forEach((e=>F(n,pr(e.shadowRoot)))),t({created:n,updated:[],removed:[],moved:[]}),e.forEach((e=>{const{shadowRoot:t}=e;null!=t&&(f(e),m(t),Rr(t))}))},document.addEventListener("__darkreader__isDefined",Tr),Rr(document)}function Dr(){Mr.forEach((e=>e.disconnect())),Mr.splice(0,Mr.length),Vr=new WeakSet,Cr=null,vr.clear(),document.removeEventListener("__darkreader__isDefined",Tr)}let Pr=!1;document.addEventListener("__darkreader__inlineScriptsAllowed",(()=>Pr=!0),{once:!0});const Or=new WeakSet,Fr=new WeakMap;function Nr(e){let t=!1;function n(t,n){const r=[...e.adoptedStyleSheets],o=r.indexOf(t),s=r.indexOf(n);s>=0&&r.splice(s,1),r.splice(o+1,0,n),e.adoptedStyleSheets=r}function r(){const t=[...e.adoptedStyleSheets];for(let e=t.length-1;e>=0;e--){const n=t[e];Or.has(n)&&t.splice(e,1)}e.adoptedStyleSheets.length!==t.length&&(e.adoptedStyleSheets=t),i=new WeakSet,c=new WeakSet}const o=[];let s=0;function a(){let t=0;var n;if(n=e=>{t+=e.cssRules.length},e.adoptedStyleSheets.forEach((e=>{Or.has(e)||n(e)})),1===t){const n=e.adoptedStyleSheets[0].cssRules[0];return n instanceof CSSStyleRule?n.style.length:t}return t}let i=new WeakSet,c=new WeakSet;let l=!1;function u(t){l||(l=!0,queueMicrotask((()=>{l=!1;const n=e.adoptedStyleSheets.filter((e=>!Or.has(e)));n.forEach((e=>Fr.delete(e))),t(n)})))}let d=null;function h(e){d=requestAnimationFrame((()=>{Pr||(a()!==s&&u(e),h(e))}))}function f(t,n){e.addEventListener(t,n),o.push((()=>e.removeEventListener(t,n)))}return{render:function(o,l){r();for(let r=e.adoptedStyleSheets.length-1;r>=0;r--){const u=e.adoptedStyleSheets[r];if(Or.has(u))continue;i.add(u);const d=Fr.get(u);if(d){s=a(),n(u,d);continue}const h=u.cssRules,f=new CSSStyleSheet;Fr.set(u,f),fe(h,(e=>c.add(e.style)));const m=()=>{for(let e=f.cssRules.length-1;e>=0;e--)f.deleteRule(e);return f.insertRule("#__darkreader__adoptedOverride {}"),n(u,f),Or.add(f),f};lr().modifySheet({prepareSheet:m,sourceCSSRules:h,theme:o,ignoreImageAnalysis:l,force:!1,isAsyncCancelled:()=>t})}s=a()},destroy:function(){o.forEach((e=>e())),o.splice(0),t=!0,r(),d&&(cancelAnimationFrame(d),d=null)},watch:function(e){const t=()=>{Pr=!0,u(e)};f("__darkreader__adoptedStyleSheetsChange",t),f("__darkreader__adoptedStyleSheetChange",t),f("__darkreader__adoptedStyleDeclarationChange",t),Pr||h(e)}}}class Wr{constructor(e){this.cssRules=[],this.commands=[],this.onChange=e}insertRule(e,t=0){return this.commands.push({type:"insert",index:t,cssText:e}),this.cssRules.splice(t,0,new Wr(this.onChange)),this.onChange(),t}deleteRule(e){this.commands.push({type:"delete",index:e}),this.cssRules.splice(e,1),this.onChange()}replaceSync(e){if(this.commands.splice(0),this.commands.push({type:"replace",cssText:e}),""!==e)throw new Error("StyleSheetCommandBuilder.replaceSync() is not fully supported");this.cssRules.splice(0),this.onChange()}getDeepCSSCommands(){const e=[];return this.commands.forEach((t=>{e.push({type:t.type,cssText:"delete"!==t.type?t.cssText:"",path:"replace"===t.type?[]:[t.index]})})),this.cssRules.forEach(((e,t)=>{e.getDeepCSSCommands().forEach((e=>e.path.unshift(t)))})),e}clearDeepCSSCommands(){this.commands.splice(0),this.cssRules.forEach((e=>e.clearDeepCSSCommands()))}}function Ir(e,t){document.dispatchEvent(new CustomEvent("__darkreader__inlineScriptsAllowed"));const n=[];function r(e,t,r){document.addEventListener(e,t,r),n.push((()=>document.removeEventListener(e,t)))}function o(e,t,r){const o=e.prototype,s=Object.getOwnPropertyDescriptor(o,t),a={...s};Object.keys(r).forEach((e=>{const t=r[e];a[e]=t(s[e])})),Object.defineProperty(o,t,a),n.push((()=>Object.defineProperty(o,t,s)))}function s(e,t,n){o(e,t,{value:n})}function a(e){return e?.classList?.contains("darkreader")}function i(e){return a(e.ownerNode)}r("__darkreader__cleanUp",(function(){n.forEach((e=>e())),n.splice(0)})),r("__darkreader__disableConflictingPlugins",(function(){window?.WPDarkMode?.deactivate&&window.WPDarkMode.deactivate()}));const c=new CustomEvent("__darkreader__updateSheet"),l=new CustomEvent("__darkreader__adoptedStyleSheetChange"),u=new WeakMap,d=new WeakMap;function h(e){const t=u.get(e);t?.forEach((e=>{e.isConnected?e.dispatchEvent(l):t.delete(e)}))}function f(e){e.ownerNode&&!i(e)&&e.ownerNode.dispatchEvent(c),u.has(e)&&h(e)}s(CSSStyleSheet,"addRule",(e=>function(t,n,r){return e.call(this,t,n,r),f(this),-1})),s(CSSStyleSheet,"insertRule",(e=>function(t,n){const r=e.call(this,t,n);return f(this),r})),s(CSSStyleSheet,"deleteRule",(e=>function(t){e.call(this,t),f(this)})),s(CSSStyleSheet,"removeRule",(e=>function(t){e.call(this,t),f(this)})),s(CSSStyleSheet,"replace",(e=>function(t){const n=e.call(this,t);return function(e,t){const{ownerNode:n}=e;n&&!i(e)&&t&&t instanceof Promise&&t.then((()=>n.dispatchEvent(c))),u.has(e)&&t&&t instanceof Promise&&t.then((()=>h(e)))}(this,n),n})),s(CSSStyleSheet,"replaceSync",(e=>function(t){e.call(this,t),f(this)}));("baidu.com"===location.hostname||location.hostname.endsWith(".baidu.com"))&&s(Element,"getElementsByTagName",(e=>function(t){if("style"!==t)return e.call(this,t);const n=()=>{const n=e.call(this,t);return Object.setPrototypeOf([...n].filter((e=>e&&!a(e))),NodeList.prototype)};let r=n();return r=new Proxy(r,{get:function(e,t){return n()[Number(t)||t]}}),r}));function m(e){customElements.whenDefined(e).then((()=>{document.dispatchEvent(new CustomEvent("__darkreader__isDefined",{detail:{tag:e}}))}))}["brilliant.org","www.vy.no"].includes(location.hostname)&&o(Node,"childNodes",{get:e=>function(){const t=e.call(this);return Object.setPrototypeOf([...t].filter((e=>!a(e))),NodeList.prototype)}}),r("__darkreader__addUndefinedResolver",(e=>m(e.detail.tag))),t&&s(CustomElementRegistry,"define",(e=>function(t,n,r){m(t),e.call(this,t,n,r)})),r("__darkreader__blobURLCheckRequest",(async function(){const e='<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect width="1" height="1" fill="transparent"/></svg>',t=new Uint8Array(114);for(let n=0;n<114;n++)t[n]=e.charCodeAt(n);const n=new Blob([t],{type:"image/svg+xml"}),r=URL.createObjectURL(n);let o;try{const e=new Image;await new Promise(((t,n)=>{e.onload=()=>t(),e.onerror=()=>n(),e.src=r})),o=!0}catch(e){o=!1}document.dispatchEvent(new CustomEvent("__darkreader__blobURLCheckResponse",{detail:{blobURLAllowed:o}}))}),{once:!0}),e&&o(Document,"styleSheets",{get:e=>function(){const t=()=>{const t=[...e.call(this)].filter((e=>e.ownerNode&&!i(e)));return t.item=e=>t[e],Object.setPrototypeOf(t,StyleSheetList.prototype)};let n=t();return n=new Proxy(n,{get:function(e,n){return t()[n]}}),n}});{const e=new WeakMap,t=new WeakMap,n=new CustomEvent("__darkreader__adoptedStyleSheetsChange"),r=new WeakSet,a=new WeakMap,i=e=>!(!e||!e.cssRules)&&(!!r.has(e)||!!(e.cssRules.length>0&&e.cssRules[0].cssText.startsWith("#__darkreader__adoptedOverride"))&&(r.add(e),!0)),c=(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),l=e=>{const t=a.get(e),r=(e.adoptedStyleSheets||[]).filter((e=>!i(e)));a.set(e,r),t&&c(t,r)||(r.forEach((t=>{u.has(t)||u.set(t,new Set),u.get(t).add(e);for(const e of t.cssRules){const n=e.style;n&&d.set(n,t)}})),e.dispatchEvent(n))},h=(n,r)=>{if(t.has(r))return r;if(e.has(r))return e.get(r);const o=new Proxy(r,{deleteProperty:(e,t)=>(delete e[t],!0),set:(e,t,r)=>(e[t]=r,"length"===t&&l(n),!0)});return e.set(r,o),t.set(o,r),o};[Document,ShadowRoot].forEach((e=>{o(e,"adoptedStyleSheets",{get:e=>function(){const t=e.call(this);return h(this,t)},set:e=>function(n){t.has(n)&&(n=t.get(n)),e.call(this,n),l(this)}})}));const f=new CustomEvent("__darkreader__adoptedStyleDeclarationChange");["setProperty","removeProperty"].forEach((e=>{s(CSSStyleDeclaration,e,(e=>function(...t){const n=e.apply(this,t),r=d.get(this);if(r){const e=u.get(r);e&&e.forEach((e=>{e.dispatchEvent(f)}))}return n}))}))}}let qr=null,Br=!document.hidden;const jr={capture:!0,passive:!0};function Ur(e){const t=Boolean(qr);qr=()=>{document.hidden||(Hr(),e(),Br=!0)},t||(document.addEventListener("visibilitychange",qr,jr),window.addEventListener("pageshow",qr,jr),window.addEventListener("focus",qr,jr))}function Hr(){document.removeEventListener("visibilitychange",qr,jr),window.removeEventListener("pageshow",qr,jr),window.removeEventListener("focus",qr,jr),qr=null}function Gr(){return Br}const zr=Tt(),Qr=new Map,Kr=[],Yr=new Map,Xr=new WeakMap,Zr=new WeakMap;let Jr=null,eo=null,to=null,no=[],ro=[];function oo(e,t=document.head||document){let n=t.querySelector(`.${e}`);return n||(n=document.createElement("style"),n.classList.add("darkreader"),n.classList.add(e),n.media="screen",n.textContent=""),n}const so=new Map;function ao(e,t){so.has(t)&&so.get(t).stop(),so.set(t,j(e,"head"))}function io(){const e=oo("darkreader--fallback",document);e.textContent=un(Jr,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),ao(e,"fallback");const t=oo("darkreader--user-agent");t.textContent=cn(Jr,to,Jr.styleSystemControls),document.head.insertBefore(t,e.nextSibling),ao(t,"user-agent");const n=oo("darkreader--text");Jr.useFont||Jr.textStroke>0?n.textContent=function(e){const t=[];return t.push(`*:not(${Rt.join(", ")}) {`),e.useFont&&e.fontFamily&&t.push(`  font-family: ${e.fontFamily} !important;`),e.textStroke>0&&(t.push(`  -webkit-text-stroke: ${e.textStroke}px !important;`),t.push(`  text-stroke: ${e.textStroke}px !important;`)),t.push("}"),t.join("\n")}(Jr):n.textContent="",document.head.insertBefore(n,e.nextSibling),ao(n,"text");const r=oo("darkreader--invert");eo&&Array.isArray(eo.invert)&&eo.invert.length>0?r.textContent=[`${eo.invert.join(", ")} {`,`    filter: ${At({...Jr,contrast:0===Jr.mode?Jr.contrast:st(Jr.contrast-10,0,100)})} !important;`,"}"].join("\n"):r.textContent="",document.head.insertBefore(r,n.nextSibling),ao(r,"invert");const o=oo("darkreader--inline");o.textContent=Un(),document.head.insertBefore(o,r.nextSibling),ao(o,"inline");const s=oo("darkreader--override");s.textContent=eo&&eo.css?ho(eo.css):"",document.head.appendChild(s),ao(s,"override");const a=oo("darkreader--variables"),i=ln(Jr),c=kt(Fe("#ffffff"),Jr),l=Et(Fe("#000000"),Jr);a.textContent=[":root {",`   --darkreader-neutral-background: ${c};`,`   --darkreader-neutral-text: ${l};`,`   --darkreader-selection-background: ${i.backgroundColorSelection};`,`   --darkreader-selection-text: ${i.foregroundColorSelection};`,"}"].join("\n"),document.head.insertBefore(a,o.nextSibling),ao(a,"variables");const u=oo("darkreader--root-vars");document.head.insertBefore(u,a.nextSibling);const d=!(eo&&eo.disableStyleSheetsProxy),h=!(eo&&eo.disableCustomElementRegistryProxy);document.dispatchEvent(new CustomEvent("__darkreader__cleanUp"));{const e=function(e,t=document.head||document){let n=t.querySelector(`.${e}`);return n||(n=document.createElement("script"),n.classList.add("darkreader"),n.classList.add(e)),n}("darkreader--proxy");e.append(`(${Ir})(${d}, ${h})`),document.head.insertBefore(e,u.nextSibling),e.remove()}}const co=new Set;function lo(e){const t=oo("darkreader--inline",e);t.textContent=Un(),e.insertBefore(t,e.firstChild);const n=oo("darkreader--override",e);n.textContent=eo&&eo.css?ho(eo.css):"",e.insertBefore(n,t.nextSibling);const r=oo("darkreader--invert",e);eo&&Array.isArray(eo.invert)&&eo.invert.length>0?r.textContent=[`${eo.invert.join(", ")} {`,`    filter: ${At({...Jr,contrast:0===Jr.mode?Jr.contrast:st(Jr.contrast-10,0,100)})} !important;`,"}"].join("\n"):r.textContent="",e.insertBefore(r,n.nextSibling),co.add(e)}function uo(e){const t=null===e.firstChild;lo(e),t&&function(e){new MutationObserver(((t,n)=>{n.disconnect();for(const{type:n,removedNodes:r}of t)if("childList"===n)for(const{nodeName:t,className:n}of r)if("STYLE"===t&&["darkreader darkreader--inline","darkreader darkreader--override","darkreader darkreader--invert"].includes(n))return void lo(e)})).observe(e,{childList:!0})}(e)}function ho(e){return e.replace(/\${(.+?)}/g,((e,t)=>{const n=Fe(t);if(n){return tt(n.r,n.g,n.b)>.5?kt(n,Jr):Et(n,Jr)}return t}))}function fo(){const e=document.querySelector(".darkreader--fallback");e&&(e.textContent="")}let mo=0;const po=new Set;function go(e){const t=++mo;const n=Sr(e,{update:function(){const e=n.details({secondRound:!0});e&&(yn.addRulesForMatching(e.rules),yn.matchVariablesAndDependents(),n.render(Jr,no))},loadingStart:function(){if(!H()||!Gr()){po.add(t),po.size;const e=document.querySelector(".darkreader--fallback");e.textContent||(e.textContent=un(Jr,{strict:!1}))}},loadingEnd:function(){po.delete(t),po.size,0===po.size&&H()&&fo()}});return Qr.set(e,n),n}function bo(e){const t=Qr.get(e);t&&(t.destroy(),Qr.delete(e))}const yo=N((e=>{Qr.forEach((e=>e.render(Jr,no))),Kr.forEach((e=>e.render(Jr,no))),e&&e()})),ko=function(){yo.cancel()};function So(){0!==po.size||fo()}function wo(){!function(){ko();const e=pr(document).filter((e=>!Qr.has(e))).map((e=>go(e)));e.map((e=>e.details({secondRound:!1}))).filter((e=>e&&e.rules.length>0)).forEach((e=>{yn.addRulesForMatching(e.rules)})),yn.matchVariablesAndDependents(),yn.setOnRootVariableChange((()=>{const e=oo("darkreader--root-vars");yn.putRootVars(e,Jr)}));const t=oo("darkreader--root-vars");yn.putRootVars(t,Jr),Qr.forEach((e=>e.render(Jr,no))),0===po.size&&fo(),e.forEach((e=>e.watch()));const n=function(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}(document.querySelectorAll(jn));if(U(document.documentElement,(e=>{uo(e.shadowRoot);const t=e.shadowRoot.querySelectorAll(jn);t.length>0&&F(n,t)})),n.forEach((e=>Jn(e,Jr,ro,no))),Eo(document),yn.matchVariablesAndDependents(),m){const e=Symbol(),t=t=>{const{node:n,id:r,cssRules:o,entries:s}=t.detail;Array.isArray(s)?(s.forEach((e=>{const t=e[2];yn.addRulesForMatching(t)})),yn.matchVariablesAndDependents()):o&&(yn.addRulesForMatching(o),I(e,(()=>yn.matchVariablesAndDependents()))),(Array.isArray(s)?s:n&&o?[[n,r,o]]:[]).forEach((([e,t,n])=>{Xr.set(e,t),vo(e).updateCSS(n)}))};document.addEventListener("__darkreader__adoptedStyleSheetsChange",t),To.push((()=>document.removeEventListener("__darkreader__adoptedStyleSheetsChange",t))),document.dispatchEvent(new CustomEvent("__darkreader__startAdoptedStyleSheetsWatcher"))}}(),Lr(Array.from(Qr.keys()),(({created:e,updated:t,removed:n,moved:r})=>{const o=n,s=e.concat(t).concat(r).filter((e=>!Qr.has(e))),a=r.filter((e=>Qr.has(e)));o.forEach((e=>bo(e)));const i=s.map((e=>go(e)));i.map((e=>e.details({secondRound:!1}))).filter((e=>e&&e.rules.length>0)).forEach((e=>{yn.addRulesForMatching(e.rules)})),yn.matchVariablesAndDependents(),i.forEach((e=>e.render(Jr,no))),i.forEach((e=>e.watch())),a.forEach((e=>Qr.get(e).restore()))}),(e=>{uo(e),Eo(e)})),function(e,t){zn(document,e,t),U(document.documentElement,(n=>{zn(n.shadowRoot,e,t)}))}((e=>{if(Jn(e,Jr,ro,no),e===document.documentElement&&(e.getAttribute("style")||"").includes("--")){yn.matchVariablesAndDependents();const e=oo("darkreader--root-vars");yn.putRootVars(e,Jr)}}),(e=>{uo(e);const t=e.querySelectorAll(jn);t.length>0&&O(t,(e=>Jn(e,Jr,ro,no)))})),z(So)}function _o(){io(),Gr()||Jr.immediateModify?wo():Ur(wo),function(e){const t=document.querySelector(tr);t?or(t,e):(rr&&rr.disconnect(),rr=new MutationObserver((t=>{e:for(let n=0;n<t.length;n++){const{addedNodes:r}=t[n];for(let t=0;t<r.length;t++){const n=r[t];if(n instanceof HTMLMetaElement&&n.name===er){rr.disconnect(),rr=null,or(n,e);break e}}}})),rr.observe(document.head,{childList:!0}))}(Jr)}function Eo(e){if(m){vo(e).render(Jr,no)}else if(function(e){return Array.isArray(e.adoptedStyleSheets)}(e)){e.adoptedStyleSheets.forEach((e=>{yn.addRulesForMatching(e.cssRules)}));const t=Nr(e);Kr.push(t),t.render(Jr,no),t.watch((e=>{e.forEach((e=>{yn.addRulesForMatching(e.cssRules)})),yn.matchVariablesAndDependents(),t.render(Jr,no)}))}}function vo(e){let t=Yr.get(e);return t||(t=function(e){let t,n,r=!1,o=[];const s=new Wr(e);function a(e,a){t=e,n=a,lr().modifySheet({prepareSheet:()=>(s.replaceSync(""),s),sourceCSSRules:o,theme:e,ignoreImageAnalysis:a,force:!1,isAsyncCancelled:()=>r})}return{render:a,destroy:function(){r=!0},updateCSS:function(e){o=e,t&&n&&a(t,n)},commands:function(){const e=s.getDeepCSSCommands();return s.clearDeepCSSCommands(),e}}}((()=>{const n=function(e){if(Zr.has(e))return Zr.get(e);const t=Symbol();return Zr.set(e,t),t}(e);I(n,(()=>{const n=Xr.get(e),r=t?.commands();if(!n||!r)return;const o={id:n,commands:r};document.dispatchEvent(new CustomEvent("__darkreader__adoptedStyleSheetCommands",{detail:JSON.stringify(o)}))}))})),Yr.set(e,t)),t}function Co(){Qr.forEach((e=>e.pause())),O(so.values(),(e=>e.stop())),so.clear(),Dr(),Hn.forEach((e=>e.disconnect())),Gn.forEach((e=>e.disconnect())),Hn.clear(),Gn.clear(),Q(So),Y.clear()}let xo;function Ro(){const e=document.querySelector('meta[name="darkreader"]');return e?e.content!==zr:(function(){const e=document.createElement("meta");e.name="darkreader",e.content=zr,document.head.appendChild(e)}(),xo=new MutationObserver((()=>{document.querySelector('meta[name="darkreader-lock"]')&&(xo.disconnect(),Mo())})),xo.observe(document.head,{childList:!0,subtree:!0}),!1)}let $o=2;function Ao(e,t,n){Jr=e,eo=t,eo?(no=Array.isArray(eo.ignoreImageAnalysis)?eo.ignoreImageAnalysis:[],ro=Array.isArray(eo.ignoreInlineStyle)?eo.ignoreInlineStyle:[]):(no=[],ro=[]),Jr.immediateModify&&(H=()=>!0),to=n;const r=()=>{const e=()=>{!function(){if(document.documentElement.hasAttribute("data-wp-dark-mode-preset")){const e=()=>{document.dispatchEvent(new CustomEvent("__darkreader__disableConflictingPlugins")),document.documentElement.classList.remove("wp-dark-mode-active"),document.documentElement.removeAttribute("data-wp-dark-mode-active")};e(),new MutationObserver((()=>{(document.documentElement.classList.contains("wp-dark-mode-active")||document.documentElement.hasAttribute("data-wp-dark-mode-active"))&&e()})).observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-wp-dark-mode-active"]})}}(),document.documentElement.setAttribute("data-darkreader-mode","dynamic"),document.documentElement.setAttribute("data-darkreader-scheme",Jr.mode?"dark":"dimmed"),_o()},t=()=>{Mo()};null!=document.querySelector('meta[name="darkreader-lock"]')?B(document.querySelector(".darkreader--fallback")):Ro()?function({success:e,failure:t}){if(--$o<=0)return void t();const n=document.head.querySelector('meta[name="darkreader"]');if(!n||n.content===zr)return;const r=document.createElement("meta");r.name="darkreader-lock",document.head.append(r),queueMicrotask((()=>{r.remove(),e()}))}({success:e,failure:t}):e()};if(document.head)r();else{if(!m){const e=oo("darkreader--fallback");document.documentElement.appendChild(e),e.textContent=un(Jr,{strict:!0})}const e=new MutationObserver((()=>{document.head&&(e.disconnect(),r())}));e.observe(document,{childList:!0,subtree:!0})}}const To=[];function Mo(){document.documentElement.removeAttribute("data-darkreader-mode"),document.documentElement.removeAttribute("data-darkreader-scheme"),yn.clear(),le.clear(),Hr(),ko(),Co(),bn(),Pe.clear(),Oe.clear(),B(document.querySelector(".darkreader--fallback")),document.head&&(!function(){rr&&(rr.disconnect(),rr=null);const e=document.querySelector(tr);e&&nr&&(e.content=nr)}(),B(document.head.querySelector(".darkreader--user-agent")),B(document.head.querySelector(".darkreader--text")),B(document.head.querySelector(".darkreader--invert")),B(document.head.querySelector(".darkreader--inline")),B(document.head.querySelector(".darkreader--override")),B(document.head.querySelector(".darkreader--variables")),B(document.head.querySelector(".darkreader--root-vars")),B(document.head.querySelector('meta[name="darkreader"]')),document.dispatchEvent(new CustomEvent("__darkreader__cleanUp")),B(document.head.querySelector(".darkreader--proxy"))),co.forEach((e=>{B(e.querySelector(".darkreader--inline")),B(e.querySelector(".darkreader--override"))})),co.clear(),O(Qr.keys(),(e=>bo(e))),po.clear(),kr.clear(),O(document.querySelectorAll(".darkreader"),B),Kr.forEach((e=>e.destroy())),Kr.splice(0),Yr.forEach((e=>e.destroy())),Yr.clear(),xo&&xo.disconnect(),To.forEach((e=>e())),To.splice(0)}function Vo(e){if(!(e=(e=ar(e)).trim()))return[];const t=[],n=Do(e),r=Lo(e,"{","}",n);let o=0;return r.forEach((n=>{const r=e.substring(o,n.start).trim(),s=e.substring(n.start+1,n.end-1);if(r.startsWith("@")){const e=r.search(/[\s\(]/),n={type:e<0?r:r.substring(0,e),query:e<0?"":r.substring(e).trim(),rules:Vo(s)};t.push(n)}else{const e={selectors:Po(r),declarations:Oo(s)};t.push(e)}o=n.end})),t}function Lo(e,t,n,r=[]){const o=[];let s,a=0;for(;s=se(e,a,t,n,r);)o.push(s),a=s.end;return o}function Do(e){const t=e.indexOf("'")<e.indexOf('"'),n=t?"'":'"',r=t?'"':"'",o=Lo(e,n,n);return o.push(...Lo(e,r,r,o)),o.push(...Lo(e,"[","]",o)),o.push(...Lo(e,"(",")",o)),o}function Po(e){return ie(e,",",Do(e))}function Oo(e){const t=[];return ie(e,";",Do(e)).forEach((e=>{const n=e.indexOf(":");if(n>0){const r=e.indexOf("!important");t.push({property:e.substring(0,n).trim(),value:e.substring(n+1,r>0?r:e.length).trim(),important:r>0})}})),t}function Fo(e){return"selectors"in e}function No(e){return function(e){const t=[],n="    ";function r(e,t){Fo(e)?s(e,t):o(e,t)}function o({type:e,query:o,rules:s},a){t.push(`${a}${e} ${o} {`),s.forEach((e=>r(e,`${a}${n}`))),t.push(`${a}}`)}function s({selectors:e,declarations:r},o){const s=e.length-1;e.forEach(((e,n)=>{t.push(`${o}${e}${n<s?",":" {"}`)}));const a=function(e){const t=/^-[a-z]-/;return[...e].sort(((e,n)=>{const r=e.property,o=n.property,s=r.match(t)?.[0]??"",a=o.match(t)?.[0]??"",i=s?r.replace(t,""):r,c=a?o.replace(t,""):o;return i===c?s.localeCompare(a):i.localeCompare(c)}))}(r);a.forEach((({property:e,value:r,important:s})=>{t.push(`${o}${n}${e}: ${r}${s?" !important":""};`)})),t.push(`${o}}`)}return Wo(e),e.forEach((e=>r(e,""))),t.join("\n")}(Vo(e))}function Wo(e){for(let t=e.length-1;t>=0;t--){const n=e[t];Fo(n)?0===n.declarations.length&&e.splice(t,1):(Wo(n.rules),0===n.rules.length&&e.splice(t,1))}}const Io=/url\(\"(blob\:.*?)\"\)/g;const qo='/*\n                        _______\n                       /       \\\n                      .==.    .==.\n                     ((  ))==((  ))\n                    / "=="    "=="\\\n                   /____|| || ||___\\\n       ________     ____    ________  ___    ___\n       |  ___  \\   /    \\   |  ___  \\ |  |  /  /\n       |  |  \\  \\ /  /\\  \\  |  |  \\  \\|  |_/  /\n       |  |   )  /  /__\\  \\ |  |__/  /|  ___  \\\n       |  |__/  /  ______  \\|  ____  \\|  |  \\  \\\n_______|_______/__/ ____ \\__\\__|___\\__\\__|___\\__\\____\n|  ___  \\ |  ____/ /    \\   |  ___  \\ |  ____|  ___  \\\n|  |  \\  \\|  |___ /  /\\  \\  |  |  \\  \\|  |___|  |  \\  \\\n|  |__/  /|  ____/  /__\\  \\ |  |   )  |  ____|  |__/  /\n|  ____  \\|  |__/  ______  \\|  |__/  /|  |___|  ____  \\\n|__|   \\__\\____/__/      \\__\\_______/ |______|__|   \\__\\\n                https://darkreader.org\n*/\n\n/*! Dark reader generated CSS | Licensed under MIT https://github.com/darkreader/darkreader/blob/main/LICENSE */\n';async function Bo(){const e=[qo];function t(t,n){const r=document.querySelector(t);r&&r.textContent&&(e.push(`/* ${n} */`),e.push(r.textContent),e.push(""))}t(".darkreader--fallback","Fallback Style"),t(".darkreader--user-agent","User-Agent Style"),t(".darkreader--text","Text Style"),t(".darkreader--invert","Invert Style"),t(".darkreader--variables","Variables Style");const n=[];if(document.querySelectorAll(".darkreader--sync").forEach((e=>{O(e.sheet.cssRules,(e=>{e&&e.cssText&&n.push(e.cssText)}))})),n.length){const t=No(n.join("\n"));e.push("/* Modified CSS */"),e.push(await async function(e){const t=[];ne(Io,e,1).forEach((e=>{const n=v(e);t.push(n)}));const n=await Promise.all(t);return e.replace(Io,(()=>`url("${n.shift()}")`))}(t)),e.push("")}return t(".darkreader--override","Override Style"),e.join("\n")}let jo=!1;const Uo=(()=>{try{return window.self!==window.top}catch(e){return console.warn(e),!0}})();function Ho(e={},t=null){const n={...P,...e};if(n.engine!==M.dynamicTheme)throw new Error("Theme engine is not supported.");Ao(n,t,Uo),jo=!0}function Go(){Mo(),jo=!1}const zo=matchMedia("(prefers-color-scheme: dark)");let Qo={themeOptions:null,fixes:null};function Ko(){zo.matches?Ho(Qo.themeOptions,Qo.fixes):Go()}const Yo=function(e){R=e||x};e.auto=function(e={},t=null){e?(Qo={themeOptions:e,fixes:t},Ko(),k?zo.addEventListener("change",Ko):zo.addListener(Ko)):(k?zo.removeEventListener("change",Ko):zo.removeListener(Ko),Go())},e.disable=Go,e.enable=Ho,e.exportGeneratedCSS=async function(){return await Bo()},e.isEnabled=function(){return jo},e.setFetchMethod=Yo,Object.defineProperty(e,"__esModule",{value:!0})}));