From 4e3310f10b6cc1c297691c3711c227865aefbaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 8 Nov 2024 14:57:59 +0800 Subject: [PATCH] fix --- _astro/DisplaySettings.DzxJq6Tk.js | 1 - _astro/LightDarkSwitch.CrseSjSX.js | 1 - _astro/hoisted.Sb1r8TRi.js | 1 - {_astro => assets/css}/_page_.C2WTn4nY.css | 0 {_astro => assets/css}/_page_.DHnhnUL2.css | 0 .../css/about.css | 0 .../css/category.css | 0 .../css/hoisted.css | 0 {_astro => assets/css}/option.css | 0 .../img}/demo-banner.WD4SMgz__nlqjd.webp | Bin assets/js/DisplaySettings.js | 1 + assets/js/LightDarkSwitch.js | 1 + .../client.Cx1FBVJX.js => assets/js/client.js | 0 assets/js/hoisted.js | 1 + _astro/page.3zT6KwRv.js => assets/js/page.js | 0 .../js/setting-utils.js | 0 .../js/translation.js | 0 functions.php | 2 +- h.php | 14 +++++----- index.php | 4 +-- nav.php | 8 +++--- p.php | 8 +++--- page.php | 4 +-- post.php | 25 +++++++++--------- 24 files changed, 35 insertions(+), 36 deletions(-) delete mode 100644 _astro/DisplaySettings.DzxJq6Tk.js delete mode 100644 _astro/LightDarkSwitch.CrseSjSX.js delete mode 100644 _astro/hoisted.Sb1r8TRi.js rename {_astro => assets/css}/_page_.C2WTn4nY.css (100%) rename {_astro => assets/css}/_page_.DHnhnUL2.css (100%) rename _astro/about.DjJRFMus.css => assets/css/about.css (100%) rename _astro/_category_.BWAG4XaK.css => assets/css/category.css (100%) rename _astro/hoisted.aW6J7aTb.css => assets/css/hoisted.css (100%) rename {_astro => assets/css}/option.css (100%) rename {_astro => assets/img}/demo-banner.WD4SMgz__nlqjd.webp (100%) create mode 100644 assets/js/DisplaySettings.js create mode 100644 assets/js/LightDarkSwitch.js rename _astro/client.Cx1FBVJX.js => assets/js/client.js (100%) create mode 100644 assets/js/hoisted.js rename _astro/page.3zT6KwRv.js => assets/js/page.js (100%) rename _astro/setting-utils.CmAt4it9.js => assets/js/setting-utils.js (100%) rename _astro/translation.DIdkVo7S.js => assets/js/translation.js (100%) diff --git a/_astro/DisplaySettings.DzxJq6Tk.js b/_astro/DisplaySettings.DzxJq6Tk.js deleted file mode 100644 index 7e5a17f..0000000 --- a/_astro/DisplaySettings.DzxJq6Tk.js +++ /dev/null @@ -1 +0,0 @@ -import{S as L,i as M,s as Q,a as K,I as O,c as W,e as _,t as P,b as C,d as v,f as h,g as R,h as T,j as p,k as s,l as H,m as X,n as Y,o as i,p as F,q,u as Z,r as ee,v as te,w as se,x as ae,y as le,z as re,A as oe}from"./translation.DIdkVo7S.js";import{g as ne,a as G,s as ie}from"./setting-utils.CmAt4it9.js";const ue=e=>({}),J=e=>({});function ce(e){let a,t,l,r,o,c,n,d,b,f,u,m,g,x,k,$,y,I=K(O.themeColor)+"";const w=e[4]["restore-icon"],D=W(w,e,e[3],J);return{c(){a=_("div"),t=_("div"),l=_("div"),r=P(I),o=C(),c=_("button"),n=_("div"),D&&D.c(),d=C(),b=_("div"),f=_("div"),u=P(e[0]),m=C(),g=_("div"),x=_("input"),this.h()},l(s){a=v(s,"DIV",{id:!0,class:!0});var i=h(a);t=v(i,"DIV",{class:!0});var k=h(t);l=v(k,"DIV",{class:!0});var $=h(l);r=R($,I),o=T($),c=v($,"BUTTON",{"aria-label":!0,class:!0});var _=h(c);n=v(_,"DIV",{class:!0});var y=h(n);D&&D.l(y),y.forEach(p),_.forEach(p),$.forEach(p),d=T(k),b=v(k,"DIV",{class:!0});var w=h(b);f=v(w,"DIV",{id:!0,class:!0});var V=h(f);u=R(V,e[0]),V.forEach(p),w.forEach(p),k.forEach(p),m=T(i),g=v(i,"DIV",{class:!0});var E=h(g);x=v(E,"INPUT",{"aria-label":!0,type:!0,min:!0,max:!0,class:!0,id:!0,step:!0,style:!0}),E.forEach(p),i.forEach(p),this.h()},h(){s(n,"class","text-[var(--btn-content)] svelte-3akcb9"),s(c,"aria-label","Reset to Default"),s(c,"class","btn-regular w-7 h-7 rounded-md active:scale-90 svelte-3akcb9"),H(c,"opacity-0",e[0]===e[1]),H(c,"pointer-events-none",e[0]===e[1]),s(l,"class","flex gap-2 font-bold text-lg text-neutral-900 dark:text-neutral-100 transition relative ml-3 before:w-1 before:h-4 before:rounded-md before:bg-[var(--primary)] before:absolute before:-left-3 before:top-[0.33rem] svelte-3akcb9"),s(f,"id","hueValue"),s(f,"class","transition bg-[var(--btn-regular-bg)] w-10 h-7 rounded-md flex justify-center font-bold text-sm items-center text-[var(--btn-content)] svelte-3akcb9"),s(b,"class","flex gap-1 svelte-3akcb9"),s(t,"class","flex flex-row gap-2 mb-3 items-center justify-between svelte-3akcb9"),s(x,"aria-label",K(O.themeColor)),s(x,"type","range"),s(x,"min","0"),s(x,"max","360"),s(x,"class","slider svelte-3akcb9"),s(x,"id","colorSlider"),s(x,"step","5"),X(x,"width","100%"),s(g,"class","w-full h-6 px-1 bg-[oklch(0.80_0.10_0)] dark:bg-[oklch(0.70_0.10_0)] rounded select-none svelte-3akcb9"),s(a,"id","display-setting"),s(a,"class","float-panel float-panel-closed absolute transition-all w-80 right-4 px-4 py-4 svelte-3akcb9")},m(s,p){Y(s,a,p),i(a,t),i(t,l),i(l,r),i(l,o),i(l,c),i(c,n),D&&D.m(n,null),i(t,d),i(t,b),i(b,f),i(f,u),i(a,m),i(a,g),i(g,x),F(x,e[0]),k=!0,$||(y=[q(c,"click",e[2]),q(x,"change",e[5]),q(x,"input",e[5])],$=!0)},p(e,[s]){D&&D.p&&(!k||8&s)&&Z(D,w,e,e[3],k?te(w,e[3],s,ue):ee(e[3]),J),(!k||3&s)&&H(c,"opacity-0",e[0]===e[1]),(!k||3&s)&&H(c,"pointer-events-none",e[0]===e[1]),(!k||1&s)&&se(u,e[0]),1&s&&F(x,e[0])},i(e){k||(ae(D,e),k=!0)},o(e){le(D,e),k=!1},d(e){e&&p(a),D&&D.d(e),$=!1,re(y)}}}function de(e,s,a){let{$$slots:t={},$$scope:l}=s,r=ne();const i=G();return e.$$set=e=>{"$$scope"in e&&a(3,l=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&(r||0===r)&&ie(r)},[r,i,function(){a(0,r=G())},l,t,function(){r=oe(this.value),a(0,r)}]}class pe extends L{constructor(e){super(),M(this,e,de,ce,Q,{})}}export{pe as default}; \ No newline at end of file diff --git a/_astro/LightDarkSwitch.CrseSjSX.js b/_astro/LightDarkSwitch.CrseSjSX.js deleted file mode 100644 index ccae402..0000000 --- a/_astro/LightDarkSwitch.CrseSjSX.js +++ /dev/null @@ -1 +0,0 @@ -import{S as lt,i as at,s as ft,G as ue,n as re,J as He,j as S,D as ut,K as Ct,L as de,M as Qe,e as M,d as L,f as j,N as Ge,O as Ot,H as jt,P as Pt,E as Mt,Q as Ke,R as Lt,a as ve,I as xe,T as z,b as A,t as _e,U as H,h as N,g as ke,k as I,l as O,o as x,V as Q,q as G,x as K,y as W,W as J,z as Dt}from"./translation.DIdkVo7S.js";import{L as Y,D as Z,A as B,b as $t,c as Ft,d as At}from"./setting-utils.CmAt4it9.js";function dt(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],c=e[i];if(c){for(const t in s)t in c||(o[t]=1);for(const t in c)r[t]||(n[t]=c[t],r[t]=1);t[i]=c}else for(const t in s)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}const te=/^[a-z0-9]+(-[a-z0-9]+)*$/,pe=(t,e,n,o="")=>{const r=t.split(":");if("@"===t.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const t=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:t};return e&&!ae(i)?null:i}const i=r[0],s=i.split("-");if(s.length>1){const t={provider:o,prefix:s.shift(),name:s.join("-")};return e&&!ae(t)?null:t}if(n&&""===o){const t={provider:o,prefix:"",name:i};return e&&!ae(t,n)?null:t}return null},ae=(t,e)=>!!t&&!(""!==t.provider&&!t.provider.match(te)||!(e&&""===t.prefix||t.prefix.match(te))||!t.name.match(te)),ht=Object.freeze({left:0,top:0,width:16,height:16}),he=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ge=Object.freeze({...ht,...he}),Te=Object.freeze({...ge,body:"",hidden:!1});function Nt(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const o=((t.rotate||0)+(e.rotate||0))%4;return o&&(n.rotate=o),n}function We(t,e){const n=Nt(t,e);for(const o in Te)o in he?o in t&&!(o in n)&&(n[o]=he[o]):o in e?n[o]=e[o]:o in t&&(n[o]=t[o]);return n}function Vt(t,e){const n=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);return Object.keys(n).concat(Object.keys(o)).forEach((function t(e){if(n[e])return r[e]=[];if(!(e in r)){r[e]=null;const n=o[e]&&o[e].parent,i=n&&t(n);i&&(r[e]=[n].concat(i))}return r[e]})),r}function Bt(t,e,n){const o=t.icons,r=t.aliases||Object.create(null);let i={};function s(t){i=We(o[t]||r[t],i)}return s(e),n.forEach(s),We(t,i)}function pt(t,e){const n=[];if("object"!=typeof t||"object"!=typeof t.icons)return n;t.not_found instanceof Array&&t.not_found.forEach((t=>{e(t,null),n.push(t)}));const o=Vt(t);for(const r in o){const i=o[r];i&&(e(r,Bt(t,r,i)),n.push(r))}return n}const Rt={provider:"",aliases:{},not_found:{},...ht};function Se(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function gt(t){if("object"!=typeof t||null===t)return null;const e=t;if("string"!=typeof e.prefix||!t.icons||"object"!=typeof t.icons||!Se(t,Rt))return null;const n=e.icons;for(const t in n){const e=n[t];if(!t.match(te)||"string"!=typeof e.body||!Se(e,Te))return null}const o=e.aliases||Object.create(null);for(const t in o){const e=o[t],r=e.parent;if(!t.match(te)||"string"!=typeof r||!n[r]&&!o[r]||!Se(e,Te))return null}return e}const Je=Object.create(null);function Ut(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function R(t,e){const n=Je[t]||(Je[t]=Object.create(null));return n[e]||(n[e]=Ut(t,e))}function Le(t,e){return gt(e)?pt(e,((e,n)=>{n?t.icons[e]=n:t.missing.add(e)})):[]}function qt(t,e,n){try{if("string"==typeof n.body)return t.icons[e]={...n},!0}catch{}return!1}let ne=!1;function mt(t){return"boolean"==typeof t&&(ne=t),ne}function zt(t){const e="string"==typeof t?pe(t,!0,ne):t;if(e){const t=R(e.provider,e.prefix),n=e.name;return t.icons[n]||(t.missing.has(n)?null:void 0)}}function Ht(t,e){const n=pe(t,!0,ne);if(!n)return!1;return qt(R(n.provider,n.prefix),n.name,e)}function Qt(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e=t.provider||""),ne&&!e&&!t.prefix){let e=!1;return gt(t)&&(t.prefix="",pt(t,((t,n)=>{n&&Ht(t,n)&&(e=!0)}))),e}const n=t.prefix;if(!ae({provider:e,prefix:n,name:"a"}))return!1;return!!Le(R(e,n),t)}const bt=Object.freeze({width:null,height:null}),yt=Object.freeze({...bt,...he}),Gt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Kt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Xe(t,e,n){if(1===e)return t;if(n=n||100,"number"==typeof t)return Math.ceil(t*e*n)/n;if("string"!=typeof t)return t;const o=t.split(Gt);if(null===o||!o.length)return t;const r=[];let i=o.shift(),s=Kt.test(i);for(;;){if(s){const t=parseFloat(i);isNaN(t)?r.push(i):r.push(Math.ceil(t*e*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");s=!s}}function Wt(t,e="defs"){let n="";const o=t.indexOf("<"+e);for(;o>=0;){const r=t.indexOf(">",o),i=t.indexOf("",i);if(-1===s)break;n+=t.slice(r+1,i).trim(),t=t.slice(0,o).trim()+t.slice(s+1)}return{defs:n,content:t}}function Jt(t,e){return t?""+t+""+e:e}function Xt(t,e,n){const o=Wt(t);return Jt(o.defs,e+o.content+n)}const Yt=t=>"unset"===t||"undefined"===t||"none"===t;function Zt(t,e){const n={...ge,...t},o={...yt,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((t=>{const e=[],n=t.hFlip,o=t.vFlip;let s,c=t.rotate;switch(n?o?c+=2:(e.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),e.push("scale(-1 1)"),r.top=r.left=0):o&&(e.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),e.push("scale(1 -1)"),r.top=r.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4,c){case 1:s=r.height/2+r.top,e.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:e.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:s=r.width/2+r.left,e.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}c%2==1&&(r.left!==r.top&&(s=r.left,r.left=r.top,r.top=s),r.width!==r.height&&(s=r.width,r.width=r.height,r.height=s)),e.length&&(i=Xt(i,'',""))}));const s=o.width,c=o.height,a=r.width,l=r.height;let f,u;null===s?(u=null===c?"1em":"auto"===c?l:c,f=Xe(u,a/l)):(f="auto"===s?a:s,u=null===c?Xe(f,l/a):"auto"===c?l:c);const d={},p=(t,e)=>{Yt(e)||(d[t]=e.toString())};p("width",f),p("height",u);const h=[r.left,r.top,a,l];return d.viewBox=h.join(" "),{attributes:d,viewBox:h,body:i}}const en=/\sid="(\S+)"/g,tn="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let nn=0;function on(t,e=tn){const n=[];let o;for(;o=en.exec(t);)n.push(o[1]);if(!n.length)return t;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof e?e(n):e+(nn++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),t=t.replace(new RegExp(r,"g"),"")}const Ee=Object.create(null);function rn(t,e){Ee[t]=e}function Ce(t){return Ee[t]||Ee[""]}function De(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:!0===t.random,index:t.index||0,dataAfterTimeout:!1!==t.dataAfterTimeout}}const $e=Object.create(null),ee=["https://api.simplesvg.com","https://api.unisvg.com"],fe=[];for(;ee.length>0;)1===ee.length||Math.random()>.5?fe.push(ee.shift()):fe.push(ee.pop());function sn(t,e){const n=De(e);return null!==n&&($e[t]=n,!0)}function Fe(t){return $e[t]}$e[""]=De({resources:["https://api.iconify.design"].concat(fe)});const cn=()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch{}};let Ye=cn();function ln(t,e){const n=Fe(t);if(!n)return 0;let o;if(n.maxURL){let t=0;n.resources.forEach((e=>{t=Math.max(t,e.length)}));const r=e+".json?icons=";o=n.maxURL-t-n.path.length-r.length}else o=0;return o}function an(t){return 404===t}const fn=(t,e,n)=>{const o=[],r=ln(t,e),i="icons";let s={type:i,provider:t,prefix:e,icons:[]},c=0;return n.forEach(((n,a)=>{c+=n.length+1,c>=r&&a>0&&(o.push(s),s={type:i,provider:t,prefix:e,icons:[]},c=n.length),s.icons.push(n)})),o.push(s),o};function un(t){if("string"==typeof t){const e=Fe(t);if(e)return e.path}return"/"}const dn=(t,e,n)=>{if(!Ye)return void n("abort",424);let o=un(e.provider);switch(e.type){case"icons":{const t=e.prefix,n=e.icons.join(",");o+=t+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const t=e.uri;o+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void n("abort",400)}let r=503;Ye(t+o).then((t=>{const e=t.status;if(200===e)return r=501,t.json();setTimeout((()=>{n(an(e)?"abort":"next",e)}))})).then((t=>{"object"==typeof t&&null!==t?setTimeout((()=>{n("success",t)})):setTimeout((()=>{404===t?n("abort",t):n("next",r)}))})).catch((()=>{n("next",r)}))},hn={prepare:fn,send:dn};function pn(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort(((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name)));let o={provider:"",prefix:"",name:""};return t.forEach((t=>{if(o.name===t.name&&o.prefix===t.prefix&&o.provider===t.provider)return;o=t;const r=t.provider,i=t.prefix,s=t.name,c=n[r]||(n[r]=Object.create(null)),a=c[i]||(c[i]=R(r,i));let l;l=s in a.icons?e.loaded:""===i||a.missing.has(s)?e.missing:e.pending;const f={provider:r,prefix:i,name:s};l.push(f)})),e}function wt(t,e){t.forEach((t=>{const n=t.loaderCallbacks;n&&(t.loaderCallbacks=n.filter((t=>t.id!==e)))}))}function gn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout((()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const o=t.provider,r=t.prefix;e.forEach((e=>{const i=e.icons,s=i.pending.length;i.pending=i.pending.filter((e=>{if(e.prefix!==r)return!0;const s=e.name;if(t.icons[s])i.loaded.push({provider:o,prefix:r,name:s});else{if(!t.missing.has(s))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:s})}return!1})),i.pending.length!==s&&(n||wt([t],e.id),e.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),e.abort))}))})))}let mn=0;function bn(t,e,n){const o=mn++,r=wt.bind(null,n,o);if(!e.pending.length)return r;const i={id:o,icons:e,callback:t,abort:r};return n.forEach((t=>{(t.loaderCallbacks||(t.loaderCallbacks=[])).push(i)})),r}function yn(t,e=!0,n=!1){const o=[];return t.forEach((t=>{const r="string"==typeof t?pe(t,e,n):t;r&&o.push(r)})),o}var wn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vn(t,e,n,o){const r=t.resources.length,i=t.random?Math.floor(Math.random()*r):t.index;let s;if(t.random){let e=t.resources.slice(0);for(s=[];e.length>1;){const t=Math.floor(Math.random()*e.length);s.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}s=s.concat(e)}else s=t.resources.slice(i).concat(t.resources.slice(0,i));const c=Date.now();let a,l="pending",f=0,u=null,d=[],p=[];function h(){u&&(clearTimeout(u),u=null)}function g(){"pending"===l&&(l="aborted"),h(),d.forEach((t=>{"pending"===t.status&&(t.status="aborted")})),d=[]}function m(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function b(){l="failed",p.forEach((t=>{t(void 0,a)}))}function y(){d.forEach((t=>{"pending"===t.status&&(t.status="aborted")})),d=[]}function x(){if("pending"!==l)return;h();const o=s.shift();if(void 0===o)return d.length?void(u=setTimeout((()=>{h(),"pending"===l&&(y(),b())}),t.timeout)):void b();const r={status:"pending",resource:o,callback:(e,n)=>{!function(e,n,o){const r="success"!==n;switch(d=d.filter((t=>t!==e)),l){case"pending":break;case"failed":if(r||!t.dataAfterTimeout)return;break;default:return}if("abort"===n)return a=o,void b();if(r)return a=o,void(d.length||(s.length?x():b()));if(h(),y(),!t.random){const n=t.resources.indexOf(e.resource);-1!==n&&n!==t.index&&(t.index=n)}l="completed",p.forEach((t=>{t(o)}))}(r,e,n)}};d.push(r),f++,u=setTimeout(x,t.rotate),n(o,e,r.callback)}return"function"==typeof o&&p.push(o),setTimeout(x),function(){return{startTime:c,payload:e,status:l,queriesSent:f,queriesPending:d.length,subscribe:m,abort:g}}}function vt(t){const e={...wn,...t};let n=[];function o(){n=n.filter((t=>"pending"===t().status))}return{query:function(t,r,i){const s=vn(e,t,r,((t,e)=>{o(),i&&i(t,e)}));return n.push(s),s},find:function(t){return n.find((e=>t(e)))||null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:o}}function Ze(){}const Ie=Object.create(null);function xn(t){if(!Ie[t]){const e=Fe(t);if(!e)return;const n={config:e,redundancy:vt(e)};Ie[t]=n}return Ie[t]}function _n(t,e,n){let o,r;if("string"==typeof t){const e=Ce(t);if(!e)return n(void 0,424),Ze;r=e.send;const i=xn(t);i&&(o=i.redundancy)}else{const e=De(t);if(e){o=vt(e);const n=Ce(t.resources?t.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(e,r,n)().abort:(n(void 0,424),Ze)}const et="iconify2",oe="iconify",xt=oe+"-count",tt=oe+"-version",_t=36e5,kn=168,Sn=50;function Oe(t,e){try{return t.getItem(e)}catch{}}function Ae(t,e,n){try{return t.setItem(e,n),!0}catch{}}function nt(t,e){try{t.removeItem(e)}catch{}}function je(t,e){return Ae(t,xt,e.toString())}function Pe(t){return parseInt(Oe(t,xt))||0}const me={local:!0,session:!0},kt={local:new Set,session:new Set};let Ne=!1;function In(t){Ne=t}let le=typeof window>"u"?{}:window;function St(t){const e=t+"Storage";try{if(le&&le[e]&&"number"==typeof le[e].length)return le[e]}catch{}me[t]=!1}function It(t,e){const n=St(t);if(!n)return;const o=Oe(n,tt);if(o!==et){if(o){const t=Pe(n);for(let e=0;e{const o=oe+t.toString(),i=Oe(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&e(n,t))return!0}catch{}nt(n,o)}};let s=Pe(n);for(let e=s-1;e>=0;e--)i(e)||(e===s-1?(s--,je(n,s)):kt[t].add(e))}function Tt(){if(!Ne){In(!0);for(const t in me)It(t,(t=>{const e=t.data,n=R(t.provider,e.prefix);if(!Le(n,e).length)return!1;const o=e.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function Tn(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const n in me)It(n,(n=>{const o=n.data;return n.provider!==t.provider||o.prefix!==t.prefix||o.lastModified===e}));return!0}function En(t,e){function n(n){let o;if(!me[n]||!(o=St(n)))return;const r=kt[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Pe(o),i>=Sn||!je(o,i+1))return;const s={cached:Math.floor(Date.now()/_t),provider:t.provider,data:e};return Ae(o,oe+i.toString(),JSON.stringify(s))}Ne||Tt(),e.lastModified&&!Tn(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&delete(e=Object.assign({},e)).not_found,n("local")||n("session"))}function ot(){}function Cn(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout((()=>{t.iconsLoaderFlag=!1,gn(t)})))}function On(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout((()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:n}=t,o=t.iconsToLoad;let r;delete t.iconsToLoad,o&&(r=Ce(e))&&r.prepare(e,n,o).forEach((n=>{_n(e,n,(e=>{if("object"!=typeof e)n.icons.forEach((e=>{t.missing.add(e)}));else try{const n=Le(t,e);if(!n.length)return;const o=t.pendingIcons;o&&n.forEach((t=>{o.delete(t)})),En(t,e)}catch(t){console.error(t)}Cn(t)}))}))})))}const jn=(t,e)=>{const n=pn(yn(t,!0,mt()));if(!n.pending.length){let t=!0;return e&&setTimeout((()=>{t&&e(n.loaded,n.missing,n.pending,ot)})),()=>{t=!1}}const o=Object.create(null),r=[];let i,s;return n.pending.forEach((t=>{const{provider:e,prefix:n}=t;if(n===s&&e===i)return;i=e,s=n,r.push(R(e,n));const c=o[e]||(o[e]=Object.create(null));c[n]||(c[n]=[])})),n.pending.forEach((t=>{const{provider:e,prefix:n,name:r}=t,i=R(e,n),s=i.pendingIcons||(i.pendingIcons=new Set);s.has(r)||(s.add(r),o[e][n].push(r))})),r.forEach((t=>{const{provider:e,prefix:n}=t;o[e][n].length&&On(t,o[e][n])})),e?bn(e,n,r):ot};function Pn(t,e){const n={...t};for(const t in e){const o=e[t],r=typeof o;t in bt?(null===o||o&&("string"===r||"number"===r))&&(n[t]=o):r===typeof n[t]&&(n[t]="rotate"===t?o%4:o)}return n}const Mn=/[\s,]+/;function Ln(t,e){e.split(Mn).forEach((e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}}))}function Dn(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function o(t){for(;t<0;)t+=4;return t%4}if(""===n){const e=parseInt(t);return isNaN(e)?0:o(e)}if(n!==t){let e=0;switch(n){case"%":e=25;break;case"deg":e=90}if(e){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r/=e,r%1==0?o(r):0)}}return e}function $n(t,e){let n=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in e)n+=" "+t+'="'+e[t]+'"';return'"+t+""}function Fn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function An(t){return"data:image/svg+xml,"+Fn(t)}function Nn(t){return'url("'+An(t)+'")'}const rt={...yt,inline:!1},Vn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Bn={display:"inline-block"},Me={"background-color":"currentColor"},Et={"background-color":"transparent"},st={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},it={"-webkit-mask":Me,mask:Me,background:Et};for(const t in it){const e=it[t];for(const n in st)e[t+"-"+n]=st[n]}function Rn(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}function Un(t,e){const n=Pn(rt,e),o=e.mode||"svg",r="svg"===o?{...Vn}:{};-1===t.body.indexOf("xlink:")&&delete r["xmlns:xlink"];let i="string"==typeof e.style?e.style:"";for(let t in e){const o=e[t];if(void 0!==o)switch(t){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[t]=!0===o||"true"===o||1===o;break;case"flip":"string"==typeof o&&Ln(n,o);break;case"color":i=i+(i.length>0&&";"!==i.trim().slice(-1)?";":"")+"color: "+o+"; ";break;case"rotate":"string"==typeof o?n[t]=Dn(o):"number"==typeof o&&(n[t]=o);break;case"ariaHidden":case"aria-hidden":!0!==o&&"true"!==o&&delete r["aria-hidden"];break;default:if("on:"===t.slice(0,3))break;void 0===rt[t]&&(r[t]=o)}}const s=Zt(t,n),c=s.attributes;if(n.inline&&(i="vertical-align: -0.125em; "+i),"svg"===o){Object.assign(r,c),""!==i&&(r.style=i);let t=0,n=e.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),{svg:!0,attributes:r,body:on(s.body,n?()=>n+"ID"+t++:"iconifySvelte")}}const{body:a,width:l,height:f}=t,u="mask"===o||"bg"!==o&&-1!==a.indexOf("currentColor"),d={"--svg":Nn($n(a,{...c,width:l+"",height:f+""}))},p=t=>{const e=c[t];e&&(d[t]=Rn(e))};p("width"),p("height"),Object.assign(d,Bn,u?Me:Et);let h="";for(const t in d)h+=t+": "+d[t]+";";return r.style=h+i,{svg:!1,attributes:r}}if(mt(!0),rn("",hn),typeof document<"u"&&typeof window<"u"){Tt();const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach((t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!Qt(t))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const n="IconifyProviders["+t+"] is invalid.";try{const o=e[t];if("object"!=typeof o||!o||void 0===o.resources)continue;sn(t,o)||console.error(n)}catch{console.error(n)}}}}function qn(t,e,n,o,r){function i(){e.loading&&(e.loading.abort(),e.loading=null)}if("object"==typeof t&&null!==t&&"string"==typeof t.body)return e.name="",i(),{data:{...ge,...t}};let s;if("string"!=typeof t||null===(s=pe(t,!1,!0)))return i(),null;const c=zt(s);if(!c)return n&&(!e.loading||e.loading.name!==t)&&(i(),e.name="",e.loading={name:t,abort:jn([s],o)}),null;i(),e.name!==t&&(e.name=t,r&&!e.destroyed&&r(t));const a=["iconify"];return""!==s.prefix&&a.push("iconify--"+s.prefix),""!==s.provider&&a.push("iconify--"+s.provider),{data:c,classes:a}}function zn(t,e){return t?Un({...ge,...t},e):null}function ct(t){let e;function n(t,e){return t[0].svg?Qn:Hn}let o=n(t),r=o(t);return{c(){r.c(),e=ue()},l(t){r.l(t),e=ue()},m(t,n){r.m(t,n),re(t,e,n)},p(t,i){o===(o=n(t))&&r?r.p(t,i):(r.d(1),r=o(t),r&&(r.c(),r.m(e.parentNode,e)))},d(t){t&&S(e),r.d(t)}}}function Hn(t){let e,n=[t[0].attributes],o={};for(let t=0;t{"function"==typeof e.onLoad&&e.onLoad(t),Lt()("load",{icon:t})};function a(){n(3,s++,s)}return ut((()=>{n(2,i=!0)})),Ct((()=>{n(1,o.destroyed=!0,o),o.loading&&(o.loading.abort(),n(1,o.loading=null,o))})),t.$$set=t=>{n(6,e=de(de({},e),Qe(t)))},t.$$.update=()=>{{const t=qn(e.icon,o,i,a,c);n(0,r=t?zn(t.data,e):null),r&&t.classes&&n(0,r.attributes.class=("string"==typeof e.class?e.class+" ":"")+t.classes.join(" "),r)}},e=Qe(e),[r,o,i,s]}class X extends lt{constructor(t){super(),at(this,t,Kn,Gn,ft,{})}}function Wn(t){let e,n,o,r,i,s,c,a,l,f,u,d,p,h,g,m,b,y,v,w,k,$,E,T,F,C,D,R,P,_,U=ve(xe.lightMode)+"",V=ve(xe.darkMode)+"",q=ve(xe.systemMode)+"";return r=new X({props:{icon:"material-symbols:wb-sunny-outline-rounded",class:"text-[1.25rem]"}}),c=new X({props:{icon:"material-symbols:dark-mode-outline-rounded",class:"text-[1.25rem]"}}),f=new X({props:{icon:"material-symbols:radio-button-partial-outline",class:"text-[1.25rem]"}}),g=new X({props:{icon:"material-symbols:wb-sunny-outline-rounded",class:"text-[1.25rem] mr-3"}}),w=new X({props:{icon:"material-symbols:dark-mode-outline-rounded",class:"text-[1.25rem] mr-3"}}),F=new X({props:{icon:"material-symbols:radio-button-partial-outline",class:"text-[1.25rem] mr-3"}}),{c(){e=M("div"),n=M("button"),o=M("div"),z(r.$$.fragment),i=A(),s=M("div"),z(c.$$.fragment),a=A(),l=M("div"),z(f.$$.fragment),u=A(),d=M("div"),p=M("div"),h=M("button"),z(g.$$.fragment),m=A(),b=_e(U),y=A(),v=M("button"),z(w.$$.fragment),k=A(),$=_e(V),E=A(),T=M("button"),z(F.$$.fragment),C=A(),D=_e(q),this.h()},l(t){e=L(t,"DIV",{class:!0,role:!0,tabindex:!0});var x=j(e);n=L(x,"BUTTON",{"aria-label":!0,role:!0,class:!0,id:!0});var O=j(n);o=L(O,"DIV",{class:!0});var I=j(o);H(r.$$.fragment,I),I.forEach(S),i=N(O),s=L(O,"DIV",{class:!0});var M=j(s);H(c.$$.fragment,M),M.forEach(S),a=N(O),l=L(O,"DIV",{class:!0});var A=j(l);H(f.$$.fragment,A),A.forEach(S),O.forEach(S),u=N(x),d=L(x,"DIV",{id:!0,class:!0});var z=j(d);p=L(z,"DIV",{class:!0});var R=j(p);h=L(R,"BUTTON",{class:!0});var B=j(h);H(g.$$.fragment,B),m=N(B),b=ke(B,U),B.forEach(S),y=N(R),v=L(R,"BUTTON",{class:!0});var P=j(v);H(w.$$.fragment,P),k=N(P),$=ke(P,V),P.forEach(S),E=N(R),T=L(R,"BUTTON",{class:!0});var Q=j(T);H(F.$$.fragment,Q),C=N(Q),D=ke(Q,q),Q.forEach(S),R.forEach(S),z.forEach(S),x.forEach(S),this.h()},h(){I(o,"class","absolute"),O(o,"opacity-0",t[0]!==Y),I(s,"class","absolute"),O(s,"opacity-0",t[0]!==Z),I(l,"class","absolute"),O(l,"opacity-0",t[0]!==B),I(n,"aria-label","Light/Dark Mode"),I(n,"role","menuitem"),I(n,"class","relative btn-plain scale-animation rounded-lg h-11 w-11 active:scale-90"),I(n,"id","scheme-switch"),I(h,"class","flex transition whitespace-nowrap items-center justify-start w-full btn-plain scale-animation rounded-lg h-9 px-3 font-medium active:scale-95 mb-0.5"),O(h,"current-theme-btn",t[0]===Y),I(v,"class","flex transition whitespace-nowrap items-center justify-start w-full btn-plain scale-animation rounded-lg h-9 px-3 font-medium active:scale-95 mb-0.5"),O(v,"current-theme-btn",t[0]===Z),I(T,"class","flex transition whitespace-nowrap items-center justify-start w-full btn-plain scale-animation rounded-lg h-9 px-3 font-medium active:scale-95"),O(T,"current-theme-btn",t[0]===B),I(p,"class","card-base float-panel p-2"),I(d,"id","light-dark-panel"),I(d,"class","hidden lg:block absolute transition float-panel-closed top-11 -right-2 pt-5"),I(e,"class","relative z-50"),I(e,"role","menu"),I(e,"tabindex","-1")},m(j,S){re(j,e,S),x(e,n),x(n,o),Q(r,o,null),x(n,i),x(n,s),Q(c,s,null),x(n,a),x(n,l),Q(f,l,null),x(e,u),x(e,d),x(d,p),x(p,h),Q(g,h,null),x(h,m),x(h,b),x(p,y),x(p,v),Q(w,v,null),x(v,k),x(v,$),x(p,E),x(p,T),Q(F,T,null),x(T,C),x(T,D),R=!0,P||(_=[G(n,"click",t[2]),G(n,"mouseenter",Jn),G(h,"click",t[3]),G(v,"click",t[4]),G(T,"click",t[5]),G(e,"mouseleave",Xn)],P=!0)},p(t,[e]){(!R||1&e)&&O(o,"opacity-0",t[0]!==Y),(!R||1&e)&&O(s,"opacity-0",t[0]!==Z),(!R||1&e)&&O(l,"opacity-0",t[0]!==B),(!R||1&e)&&O(h,"current-theme-btn",t[0]===Y),(!R||1&e)&&O(v,"current-theme-btn",t[0]===Z),(!R||1&e)&&O(T,"current-theme-btn",t[0]===B)},i(t){R||(K(r.$$.fragment,t),K(c.$$.fragment,t),K(f.$$.fragment,t),K(g.$$.fragment,t),K(w.$$.fragment,t),K(F.$$.fragment,t),R=!0)},o(t){W(r.$$.fragment,t),W(c.$$.fragment,t),W(f.$$.fragment,t),W(g.$$.fragment,t),W(w.$$.fragment,t),W(F.$$.fragment,t),R=!1},d(t){t&&S(e),J(r),J(c),J(f),J(g),J(w),J(F),P=!1,Dt(_)}}}function Jn(){document.querySelector("#light-dark-panel").classList.remove("float-panel-closed")}function Xn(){document.querySelector("#light-dark-panel").classList.add("float-panel-closed")}function Yn(t,e,n){const o=[Y,Z,B];let r=B;function i(t){n(0,r=t),Ft(t)}return ut((()=>{n(0,r=$t());const t=window.matchMedia("(prefers-color-scheme: dark)"),e=t=>{At(r)};return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}})),[r,i,function(){let t=0;for(;ti(Y),()=>i(Z),()=>i(B)]}class to extends lt{constructor(t){super(),at(this,t,Yn,Wn,ft,{})}}export{to as default}; \ No newline at end of file diff --git a/_astro/hoisted.Sb1r8TRi.js b/_astro/hoisted.Sb1r8TRi.js deleted file mode 100644 index 2e17cd6..0000000 --- a/_astro/hoisted.Sb1r8TRi.js +++ /dev/null @@ -1 +0,0 @@ -import { b as _s, c as zs, s as Ns, g as qs } from "./setting-utils.CmAt4it9.js"; const Ne = new MutationObserver(Gn); function Gn() { Ne.disconnect(); let t = Array.from(document.querySelectorAll("pre")); for (let e of t) { if ("DIV" === e.parentElement?.nodeName && e.parentElement?.classList.contains("code-block")) continue; let t = document.createElement("div"); t.className = "relative code-block"; let n = document.createElement("button"); n.className = "copy-btn btn-regular-dark absolute active:scale-90 h-8 w-8 top-2 right-2 opacity-75 text-sm p-1.5 rounded-lg transition-all ease-in-out", e.setAttribute("tabindex", "0"), e.parentNode && e.parentNode.insertBefore(t, e); let o, s = '', r = ''; n.innerHTML = `
${s} ${r}
\n `, t.appendChild(e), t.appendChild(n), n.addEventListener("click", (async () => { o && clearTimeout(o); let t = e?.querySelector("code")?.innerText; await navigator.clipboard.writeText(t), n.classList.add("success"), o = setTimeout((() => { n.classList.remove("success") }), 1e3) })) } Ne.observe(document.body, { childList: !0, subtree: !0 }) } Ne.observe(document.body, { childList: !0, subtree: !0 }), document.addEventListener("DOMContentLoaded", Gn); const ht = (t, e) => { const { o: n, i: o, u: s } = t; let r, c = n; const i = (t, e) => { const n = c, i = t, l = e || (o ? !o(n, i) : n !== i); return (l || s) && (c = i, r = n), [c, l, r] }; return [e ? t => i(e(c, r), t) : i, t => [c, !!t, r]] }, Un = typeof window < "u" && typeof document < "u", ft = Un ? window : {}, Wn = Math.max, Vs = Math.min, qe = Math.round, ye = Math.abs, xn = Math.sign, Zn = ft.cancelAnimationFrame, on = ft.requestAnimationFrame, ve = ft.setTimeout, Ve = ft.clearTimeout, Ce = t => typeof ft[t] < "u" ? ft[t] : void 0, Fs = Ce("MutationObserver"), En = Ce("IntersectionObserver"), be = Ce("ResizeObserver"), Fe = Ce("ScrollTimeline"), Kn = Un && Node.ELEMENT_NODE, { toString: Xo, hasOwnProperty: Re } = Object.prototype, Oe = t => void 0 === t, cn = t => null === t, Ot = t => "number" == typeof t, $e = t => "string" == typeof t, Xn = t => "boolean" == typeof t, wt = t => "function" == typeof t, $t = t => Array.isArray(t), ee = t => "object" == typeof t && !$t(t) && !cn(t), Le = t => { const e = !!t && t.length, n = Ot(e) && e > -1 && e % 1 == 0; return !!($t(t) || !wt(t) && n) && (!(e > 0 && ee(t)) || e - 1 in t) }, we = t => { if (!t || !ee(t)) return !1; let e; const n = "constructor", o = t[n], s = o && o.prototype, r = Re.call(t, n), c = s && Re.call(s, "isPrototypeOf"); if (o && !r && !c) return !1; for (e in t); return Oe(e) || Re.call(t, e) }, Se = t => { const e = HTMLElement; return !!t && (e ? t instanceof e : t.nodeType === Kn) }, Te = t => { const e = Element; return !!t && (e ? t instanceof e : t.nodeType === Kn) }; function Z(t, e) { if (Le(t)) for (let n = 0; n < t.length && !1 !== e(t[n], n, t); n++); else t && Z(Object.keys(t), (n => e(t[n], n, t))); return t } const rn = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), st = (t, e, n) => (!$e(e) && Le(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Bt = t => Array.from(t || []), Yn = t => $t(t) ? t : [t], je = t => !!t && !t.length, Cn = t => Bt(new Set(t)), St = (t, e, n) => { Z(t, (t => t && t.apply(void 0, e || []))), !n && (t.length = 0) }, Jn = "paddingTop", Qn = "paddingRight", ts = "paddingLeft", es = "paddingBottom", ns = "marginLeft", ss = "marginRight", os = "marginBottom", js = "overflowX", Gs = "overflowY", Ut = "width", Wt = "height", It = "visible", _t = "hidden", Zt = "scroll", Us = t => { const e = String(t || ""); return e ? e[0].toUpperCase() + e.slice(1) : "" }, Ae = (t, e, n, o) => { if (t && e) { let o = !0; return Z(n, (n => { t[n] !== e[n] && (o = !1) })), o } return !1 }, cs = (t, e) => Ae(t, e, ["w", "h"]), me = (t, e) => Ae(t, e, ["x", "y"]), Ws = (t, e) => Ae(t, e, ["t", "r", "b", "l"]), Mt = () => { }, M = (t, ...e) => t.bind(0, ...e), zt = t => { let e; const n = t ? ve : on, o = t ? Ve : Zn; return [s => { o(e), e = n((() => s()), wt(t) ? t() : t) }, () => o(e)] }, Ge = (t, e) => { const { _: n, p: o, v: s, m: r } = e || {}; let c, i, l, a, d = Mt; const u = function (e) { d(), Ve(c), a = c = i = void 0, d = Mt, t.apply(this, e) }, p = t => r && i ? r(i, t) : t, y = () => { d !== Mt && u(p(l) || l) }, h = function () { const t = Bt(arguments), e = wt(n) ? n() : n; if (Ot(e) && e >= 0) { const n = wt(o) ? o() : o, r = Ot(n) && n >= 0, h = e > 0 ? ve : on, f = e > 0 ? Ve : Zn, m = p(t) || t, v = u.bind(0, m); let g; d(), s && !a ? (v(), a = !0, g = h((() => a = void 0), e)) : (g = h(v, e), r && !c && (c = ve(y, n))), d = () => f(g), i = l = m } else u(t) }; return h.S = y, h }, rs = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ht = t => t ? Object.keys(t) : [], G = (t, e, n, o, s, r, c) => { const i = [e, n, o, s, r, c]; return ("object" != typeof t || cn(t)) && !wt(t) && (t = {}), Z(i, (e => { Z(e, ((n, o) => { const s = e[o]; if (t === s) return !0; const r = $t(s); if (s && we(s)) { const e = t[o]; let n = e; r && !$t(e) ? n = [] : !r && !we(e) && (n = {}), t[o] = G(n, s) } else t[o] = r ? s.slice() : s })) })), t }, ls = (t, e) => Z(G({}, t), ((t, e, n) => { void 0 === t ? delete n[e] : t && we(t) && (n[e] = ls(t)) })), ln = t => { for (const e in t) return !1; return !0 }, Ue = (t, e, n) => Wn(t, Vs(e, n)), Nt = t => Bt(new Set(($t(t) ? t : (t || "").split(" ")).filter((t => t)))), an = (t, e) => t && t.getAttribute(e), On = (t, e) => t && t.hasAttribute(e), Tt = (t, e, n) => { Z(Nt(e), (e => { t && t.setAttribute(e, String(n || "")) })) }, Et = (t, e) => { Z(Nt(e), (e => t && t.removeAttribute(e))) }, He = (t, e) => { const n = Nt(an(t, e)), o = M(Tt, t, e), s = (t, e) => { const o = new Set(n); return Z(Nt(t), (t => { o[e](t) })), Bt(o).join(" ") }; return { O: t => o(s(t, "delete")), $: t => o(s(t, "add")), C: t => { const e = Nt(t); return e.reduce(((t, e) => t && n.includes(e)), e.length > 0) } } }, is = (t, e, n) => (He(t, e).O(n), M(un, t, e, n)), un = (t, e, n) => (He(t, e).$(n), M(is, t, e, n)), We = (t, e, n, o) => (o ? un : is)(t, e, n), dn = (t, e, n) => He(t, e).C(n), as = t => He(t, "class"), us = (t, e) => { as(t).O(e) }, fn = (t, e) => (as(t).$(e), M(us, t, e)), ds = (t, e) => { const n = [], o = e ? Te(e) && e : document; return o ? st(n, o.querySelectorAll(t)) : n }, Zs = (t, e) => { const n = e ? Te(e) && e : document; return n ? n.querySelector(t) : null }, xe = (t, e) => !!Te(t) && t.matches(e), fs = t => xe(t, "body"), Ze = t => t ? Bt(t.childNodes) : [], Kt = t => t && t.parentElement, jt = (t, e) => Te(t) && t.closest(e), Ke = t => document.activeElement, Ks = (t, e, n) => { const o = jt(t, e), s = t && Zs(n, o), r = jt(s, e) === o; return !(!o || !s) && (o === t || s === t || r && jt(jt(t, n), e) !== o) }, Rt = t => { if (Le(t)) Z(Bt(t), (t => Rt(t))); else if (t) { const e = Kt(t); e && e.removeChild(t) } }, ps = (t, e, n) => { if (n && t) { let o, s = e; return Le(n) ? (o = document.createDocumentFragment(), Z(n, (t => { t === s && (s = t.previousSibling), o.appendChild(t) }))) : o = n, e && (s ? s !== e && (s = s.nextSibling) : s = t.firstChild), t.insertBefore(o, s || null), () => Rt(n) } return Mt }, gt = (t, e) => ps(t, null, e), $n = (t, e) => ps(Kt(t), t && t.nextSibling, e), Gt = t => { const e = document.createElement("div"); return Tt(e, "class", t), e }, ms = t => { const e = Gt(); return e.innerHTML = t.trim(), Z(Ze(e), (t => Rt(t))) }, Xs = /^--/, Ln = (t, e) => t.getPropertyValue(e) || t[e] || "", pn = t => { const e = t || 0; return isFinite(e) ? e : 0 }, fe = t => pn(parseFloat(t || "")), Tn = t => `${(100 * pn(t)).toFixed(3)}%`, Xe = t => `${pn(t)}px`; function ne(t, e) { t && e && Z(e, ((e, n) => { try { const o = t.style, s = Ot(e) ? Xe(e) : (e || "") + ""; Xs.test(n) ? o.setProperty(n, s) : o[n] = s } catch { } })) } function qt(t, e, n) { const o = $e(e); let s = o ? "" : {}; if (t) { const r = ft.getComputedStyle(t, n) || t.style; s = o ? Ln(r, e) : Bt(e).reduce(((t, e) => (t[e] = Ln(r, e), t)), s) } return s } const An = (t, e, n) => { const o = e ? `${e}-` : "", s = n ? `-${n}` : "", r = `${o}top${s}`, c = `${o}right${s}`, i = `${o}bottom${s}`, l = `${o}left${s}`, a = qt(t, [r, c, i, l]); return { t: fe(a[r]), r: fe(a[c]), b: fe(a[i]), l: fe(a[l]) } }, Be = (t, e) => "translate" + (ee(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`), Ys = t => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Js = { w: 0, h: 0 }, ke = (t, e) => e ? { w: e[`${t}Width`], h: e[`${t}Height`] } : Js, Qs = t => ke("inner", t || ft), Qt = M(ke, "offset"), hs = M(ke, "client"), Ye = M(ke, "scroll"), mn = t => { const e = parseFloat(qt(t, Ut)) || 0, n = parseFloat(qt(t, Wt)) || 0; return { w: e - qe(e), h: n - qe(n) } }, te = t => t.getBoundingClientRect(), to = t => !!t && Ys(t), Je = t => !(!t || !t[Wt] && !t[Ut]), gs = (t, e) => { const n = Je(t); return !Je(e) && n }, Hn = (t, e, n, o) => { Z(Nt(e), (e => { t && t.removeEventListener(e, n, o) })) }, Q = (t, e, n, o) => { var s; const r = null == (s = o && o.H) || s, c = o && o.I || !1, i = o && o.A || !1, l = { passive: r, capture: c }; return M(St, Nt(e).map((e => { const o = i ? s => { Hn(t, e, o, c), n && n(s) } : n; return t && t.addEventListener(e, o, l), M(Hn, t, e, o, c) }))) }, ys = t => t.stopPropagation(), Qe = t => t.preventDefault(), vs = t => ys(t) || Qe(t), Ct = (t, e) => { const { x: n, y: o } = Ot(e) ? { x: e, y: e } : e || {}; Ot(n) && (t.scrollLeft = n), Ot(o) && (t.scrollTop = o) }, yt = t => ({ x: t.scrollLeft, y: t.scrollTop }), bs = () => ({ T: { x: 0, y: 0 }, D: { x: 0, y: 0 } }), eo = (t, e) => { const { T: n, D: o } = t, { w: s, h: r } = e, c = (t, e, n) => { let o = xn(t) * n, s = xn(e) * n; if (o === s) { const n = ye(t), r = ye(e); s = n > r ? 0 : s, o = n < r ? 0 : o } return o = o === s ? 0 : o, [o + 0, s + 0] }, [i, l] = c(n.x, o.x, s), [a, d] = c(n.y, o.y, r); return { T: { x: i, y: a }, D: { x: l, y: d } } }, kn = ({ T: t, D: e }) => { const n = (t, e) => 0 === t && t <= e; return { x: n(t.x, e.x), y: n(t.y, e.y) } }, Pn = ({ T: t, D: e }, n) => { const o = (t, e, n) => Ue(0, 1, (t - n) / (t - e) || 0); return { x: o(t.x, e.x, n.x), y: o(t.y, e.y, n.y) } }, tn = t => { t && t.focus && t.focus({ preventScroll: !0 }) }, In = (t, e) => { Z(Yn(e), t) }, en = t => { const e = new Map, n = (t, n) => { if (t) { const o = e.get(t); In((t => { o && o[t ? "delete" : "clear"](t) }), n) } else e.forEach((t => { t.clear() })), e.clear() }, o = (t, s) => { if ($e(t)) { const o = e.get(t) || new Set; return e.set(t, o), In((t => { wt(t) && o.add(t) }), s), M(n, t, s) } Xn(s) && s && n(); const r = Ht(t), c = []; return Z(r, (e => { const n = t[e]; n && st(c, o(e, n)) })), M(St, c) }; return o(t || {}), [o, n, (t, n) => { Z(Bt(e.get(t)), (t => { n && !je(n) ? t.apply(0, n) : t() })) }] }, Mn = t => JSON.stringify(t, ((t, e) => { if (wt(e)) throw 0; return e })), Dn = (t, e) => t ? `${e}`.split(".").reduce(((t, e) => t && rs(t, e) ? t[e] : void 0), t) : void 0, no = { paddingAbsolute: !1, showNativeOverlaidScrollbars: !1, update: { elementEvents: [["img", "load"]], debounce: [0, 33], attributes: null, ignoreMutation: null }, overflow: { x: "scroll", y: "scroll" }, scrollbars: { theme: "os-theme-dark", visibility: "auto", autoHide: "never", autoHideDelay: 1300, autoHideSuspend: !1, dragScroll: !0, clickScroll: !1, pointers: ["mouse", "touch", "pen"] } }, ws = (t, e) => { const n = {}; return Z(At(Ht(e), Ht(t)), (o => { const s = t[o], r = e[o]; if (ee(s) && ee(r)) G(n[o] = {}, ws(s, r)), ln(n[o]) && delete n[o]; else if (rs(e, o) && r !== s) { let t = !0; if ($t(s) || $t(r)) try { Mn(s) === Mn(r) && (t = !1) } catch { } t && (n[o] = r) } })), n }, Rn = (t, e, n) => o => [Dn(t, o), n || void 0 !== Dn(e, o)], Xt = "data-overlayscrollbars", he = "os-environment", pe = `${he}-scrollbar-hidden`, _e = `${Xt}-initialize`, ge = "noClipping", Bn = `${Xt}-body`, Dt = Xt, so = "host", Pt = `${Xt}-viewport`, oo = js, co = Gs, ro = "arrange", Ss = "measuring", xs = "scrollbarHidden", lo = "scrollbarPressed", io = "noContent", nn = `${Xt}-padding`, _n = `${Xt}-content`, hn = "os-size-observer", ao = `${hn}-appear`, uo = `${hn}-listener`, fo = "os-trinsic-observer", po = "os-theme-none", vt = "os-scrollbar", mo = `${vt}-rtl`, ho = `${vt}-horizontal`, go = `${vt}-vertical`, Es = `${vt}-track`, gn = `${vt}-handle`, yo = `${vt}-visible`, vo = `${vt}-cornerless`, zn = `${vt}-interaction`, Nn = `${vt}-unusable`, sn = `${vt}-auto-hide`, qn = `${sn}-hidden`, Vn = `${vt}-wheel`, bo = `${Es}-interactive`, wo = `${gn}-interactive`; let ze; const So = () => { const t = (t, e, n) => { gt(document.body, t), gt(document.body, t); const o = hs(t), s = Qt(t), r = mn(e); return n && Rt(t), { x: s.h - o.h + r.h, y: s.w - o.w + r.w } }, e = ms(`
`)[0], n = e.firstChild, [o, , s] = en(), [r, c] = ht({ o: t(e, n), i: me }, M(t, e, n, !0)), [i] = c(), l = (t => { let e = !1; const n = fn(t, pe); try { e = "none" === qt(t, "scrollbar-width") || "none" === qt(t, "display", "::-webkit-scrollbar") } catch { } return n(), e })(e), a = { x: 0 === i.x, y: 0 === i.y }, d = { elements: { host: null, padding: !l, viewport: t => l && fs(t) && t, content: !1 }, scrollbars: { slot: !0 }, cancel: { nativeScrollbarsOverlaid: !1, body: null } }, u = G({}, no), p = M(G, {}, u), y = M(G, {}, d), h = { k: i, M: a, R: l, V: !!Fe, L: M(o, "r"), P: y, U: t => G(d, t) && y(), N: p, q: t => G(u, t) && p(), B: G({}, d), F: G({}, u) }; if (Et(e, "style"), Rt(e), Q(ft, "resize", (() => { s("r", []) })), wt(ft.matchMedia) && !l && (!a.x || !a.y)) { const t = e => { const n = ft.matchMedia(`(resolution: ${ft.devicePixelRatio}dppx)`); Q(n, "change", (() => { e(), t(e) }), { A: !0 }) }; t((() => { const [t, e] = r(); G(h.k, t), s("r", [e]) })) } return h }, Lt = () => (ze || (ze = So()), ze), Cs = (t, e) => wt(e) ? e.apply(0, t) : e, xo = (t, e, n, o) => { const s = Oe(o) ? n : o; return Cs(t, s) || e.apply(0, t) }, Os = (t, e, n, o) => { const s = Oe(o) ? n : o, r = Cs(t, s); return !!r && (Se(r) ? r : e.apply(0, t)) }, Eo = (t, e) => { const { nativeScrollbarsOverlaid: n, body: o } = e || {}, { M: s, R: r, P: c } = Lt(), { nativeScrollbarsOverlaid: i, body: l } = c().cancel, a = n ?? i, d = Oe(o) ? l : o, u = (s.x || s.y) && a, p = t && (cn(d) ? !r : d); return !!u || !!p }, yn = new WeakMap, Co = (t, e) => { yn.set(t, e) }, Oo = t => { yn.delete(t) }, $s = t => yn.get(t), $o = (t, e, n) => { let o = !1; const s = !!n && new WeakMap, r = r => { if (s && n) { Z(n.map((e => { const [n, o] = e || []; return [o && n ? (r || ds)(n, t) : [], o] })), (n => Z(n[0], (r => { const c = n[1], i = s.get(r) || []; if (t.contains(r) && c) { const t = Q(r, c, (n => { o ? (t(), s.delete(r)) : e(n) })); s.set(r, st(i, t)) } else St(i), s.delete(r) })))) } }; return r(), [() => { o = !0 }, r] }, Fn = (t, e, n, o) => { let s = !1; const { j: r, X: c, Y: i, W: l, J: a, K: d } = o || {}, u = Ge((() => s && n(!0)), { _: 33, p: 99 }), [p, y] = $o(t, u, i), h = c || [], f = At(r || [], h), m = (s, r) => { if (!je(r)) { const c = a || Mt, i = d || Mt, u = [], p = []; let f = !1, m = !1; if (Z(r, (n => { const { attributeName: s, target: r, type: a, oldValue: d, addedNodes: y, removedNodes: v } = n, g = "attributes" === a, b = "childList" === a, w = t === r, x = g && s, M = x && an(r, s || ""), $ = $e(M) ? M : null, E = x && d !== $, L = rn(h, s) && E; if (e && (b || !w)) { const e = g && E, a = e && l && xe(r, l), p = (a ? !c(r, s, d, $) : !g || e) && !i(n, !!a, t, o); Z(y, (t => st(u, t))), Z(v, (t => st(u, t))), m = m || p } !e && w && E && !c(r, s, d, $) && (st(p, s), f = f || L) })), y((t => Cn(u).reduce(((e, n) => (st(e, ds(t, n)), xe(n, t) ? st(e, n) : e)), []))), e) return !s && m && n(!1), [!1]; if (!je(p) || f) { const t = [Cn(p), f]; return !s && n.apply(0, t), t } } }, v = new Fs(M(m, !1)); return [() => (v.observe(t, { attributes: !0, attributeOldValue: !0, attributeFilter: f, subtree: e, childList: e, characterData: e }), s = !0, () => { s && (p(), v.disconnect(), s = !1) }), () => { if (s) return u.S(), m(!0, v.takeRecords()) }] }, Ls = {}, Ts = {}, Lo = t => { Z(t, (t => Z(t, ((e, n) => { Ls[n] = t[n] })))) }, As = (t, e, n) => Ht(t).map((o => { const { static: s, instance: r } = t[o], [c, i, l] = n || [], a = n ? r : s; if (a) { const t = n ? a(c, i, e) : a(e); return (l || Ts)[o] = t } })), se = t => Ts[t], To = "__osOptionsValidationPlugin", Ao = "__osSizeObserverPlugin", Ho = (t, e) => { const { M: n } = e, [o, s] = t("showNativeOverlaidScrollbars"); return [o && n.x && n.y, s] }, Ee = t => 0 === t.indexOf(It), ko = (t, e) => { const n = (t, e, n, o) => { const s = t === It ? _t : t.replace(`${It}-`, ""), r = Ee(t), c = Ee(n); return e || o ? r && c ? It : r ? e && o ? s : e ? It : _t : e ? s : c && o ? It : _t : _t }, o = { x: n(e.x, t.x, e.y, t.y), y: n(e.y, t.y, e.x, t.x) }; return { G: o, Z: { x: o.x === Zt, y: o.y === Zt } } }, Hs = "__osScrollbarsHidingPlugin", Po = "__osClickScrollPlugin", ks = (t, e, n) => { const { dt: o } = n || {}, s = se(Ao), [r] = ht({ o: !1, u: !0 }); return () => { const n = [], c = ms(`
`)[0], i = c.firstChild, l = t => { let n = !1, o = !1; if (t instanceof ResizeObserverEntry) { const [e, , s] = r(t.contentRect), c = Je(e); o = gs(e, s), n = !o && !c } else o = !0 === t; n || e({ ft: !0, dt: o }) }; if (be) { const t = new be((t => l(t.pop()))); t.observe(i), st(n, (() => { t.disconnect() })) } else { if (!s) return Mt; { const [t, e] = s(i, l, o); st(n, At([fn(c, ao), Q(c, "animationstart", t)], e)) } } return M(St, st(n, gt(t, c))) } }, Io = (t, e) => { let n; const o = Gt(fo), [s] = ht({ o: !1 }), r = (t, n) => { if (t) { const o = s((t => 0 === t.h || t.isIntersecting || t.intersectionRatio > 0)(t)), [, r] = o; return r && !n && e(o) && [o] } }, c = (t, e) => r(e.pop(), t); return [() => { const e = []; if (En) n = new En(M(c, !1), { root: t }), n.observe(o), st(e, (() => { n.disconnect() })); else { const t = () => { const t = Qt(o); r(t) }; st(e, ks(o, t)()), t() } return M(St, st(e, gt(t, o))) }, () => n && c(!0, n.takeRecords())] }, Mo = (t, e, n, o) => { let s, r, c, i, l, a; const d = `[${Dt}]`, u = `[${Pt}]`, p = ["wrap", "cols", "rows"], y = ["id", "class", "style", "open"], { vt: h, ht: f, ot: m, gt: v, bt: g, wt: b, nt: w, yt: x, St: M, Ot: $ } = t, E = t => "rtl" === qt(t, "direction"), L = { $t: !1, ct: E(h) }, S = Lt(), O = se(Hs), [T] = ht({ i: cs, o: { w: 0, h: 0 } }, (() => { const o = O && O.tt(t, e, L, S, n).ut, s = !(x && w) && dn(f, Dt, ge), r = !w && M(ro), c = r && yt(v), i = $(Ss, s), l = r && o && o()[0], a = Ye(m), d = mn(m); return l && l(), Ct(v, c), s && i(), { w: a.w + d.w, h: a.h + d.h } })), C = b ? p : At(y, p), H = Ge(o, { _: () => s, p: () => r, m(t, e) { const [n] = t, [o] = e; return [At(Ht(n), Ht(o)).reduce(((t, e) => (t[e] = n[e] || o[e], t)), {})] } }), Z = t => { const e = E(h); G(t, { Ct: a !== e }), G(L, { ct: e }), a = e }, k = (t, e) => { const [n, s] = t, r = { xt: s }; return G(L, { $t: n }), !e && o(r), r }, A = ({ ft: t, dt: e }) => { const n = t && !e || !S.R ? o : H, s = { ft: t || e, dt: e }; Z(s), n(s) }, Q = (t, e) => { const [, n] = T(), s = { Ht: n }; return Z(s), n && !e && (t ? o : H)(s), s }, R = (t, e, n) => { const o = { Et: e }; return Z(o), e && !n && H(o), o }, [I, q] = g ? Io(f, k) : [], P = !w && ks(f, A, { dt: !0 }), [D, N] = Fn(f, !1, R, { X: y, j: At(y, []) }), B = w && be && new be((t => { const e = t[t.length - 1].contentRect; A({ ft: !0, dt: gs(e, l) }), l = e })), z = Ge((() => { const [, t] = T(); o({ Ht: t }) }), { _: 222, v: !0 }); return [() => { B && B.observe(f); const t = P && P(), e = I && I(), n = D(), o = S.L((t => { t ? H({ zt: t }) : z() })); return () => { B && B.disconnect(), t && t(), e && e(), i && i(), n(), o() } }, ({ It: t, At: e, Tt: n }) => { const o = {}, [l] = t("update.ignoreMutation"), [a, p] = t("update.attributes"), [y, h] = t("update.elementEvents"), [f, v] = t("update.debounce"), b = e || n; if (h || p) { c && c(), i && i(); const [t, e] = Fn(g || m, !0, Q, { j: At(C, a || []), Y: y, W: d, K: (t, e) => { const { target: n, attributeName: o } = t; return !(e || !o || w) && Ks(n, d, u) || !!jt(n, `.${vt}`) || !!(t => wt(l) && l(t))(t) } }); i = t(), c = e } if (v) if (H.S(), $t(f)) { const t = f[0], e = f[1]; s = Ot(t) && t, r = Ot(e) && e } else Ot(f) ? (s = f, r = !1) : (s = !1, r = !1); if (b) { const t = N(), e = q && q(), n = c && c(); t && G(o, R(t[0], t[1], b)), e && G(o, k(e[0], b)), n && G(o, Q(n[0], b)) } return Z(o), o }, L] }, Do = (t, e, n, o) => { const { P: s } = Lt(), { scrollbars: r } = s(), { slot: c } = r, { vt: i, ht: l, ot: a, Dt: d, gt: u, yt: p, nt: y } = e, { scrollbars: h } = d ? {} : t, { slot: f } = h || {}, m = new Map, v = t => Fe && new Fe({ source: u, axis: t }), g = { x: v("x"), y: v("y") }, b = Os([i, l, a], (() => y && p ? i : l), c, f), w = (t, e) => { if (e) { const n = t ? Ut : Wt, { kt: o, Mt: s } = e, r = te(s)[n], c = te(o)[n]; return Ue(0, 1, r / c || 0) } const o = t ? "x" : "y", { Rt: s, Vt: r } = n, c = r[o], i = s[o]; return Ue(0, 1, c / (c + i) || 0) }, x = t => G(t, { clear: ["left"] }), $ = t => { m.forEach(((e, n) => { (!t || rn(Yn(t), n)) && (Z(e || [], (t => { t && t.cancel() })), m.delete(n)) })) }, E = (t, e, n, o) => { const s = m.get(t) || [], r = s.find((t => t && t.timeline === e)); r ? r.effect = new KeyframeEffect(t, n, { composite: o }) : m.set(t, At(s, [t.animate(n, { timeline: e, composite: o })])) }, L = (t, e, n) => { const o = n ? fn : us; Z(t, (t => { o(t.Lt, e) })) }, S = (t, e) => { Z(t, (t => { const [n, o] = e(t); ne(n, o) })) }, O = (t, e) => { S(t, (t => { const { Mt: n } = t; return [n, { [e ? Ut : Wt]: Tn(w(e)) }] })) }, T = (t, e) => { const { Pt: o } = n, s = e ? "x" : "y", r = g[s], c = kn(o)[s], i = (t, n) => Be(Tn(((t, e, n) => { const o = w(n, t); return 1 / o * (1 - o) * e })(t, c ? n : 1 - n, e)), e); r ? Z(t, (t => { const { Mt: e } = t; E(e, r, x({ transform: [0, 1].map((e => i(t, e))) })) })) : S(t, (t => [t.Mt, { transform: i(t, Pn(o, yt(u))[s]) }])) }, C = t => y && !p && Kt(t) === a, H = [], k = [], A = [], Q = (t, e, n) => { const o = Xn(n), s = !o || !n; (!o || n) && L(k, t, e), s && L(A, t, e) }, R = t => { const e = Gt(`${vt} ${t ? ho : go}`), n = Gt(Es), s = Gt(gn), r = { Lt: e, kt: n, Mt: s }; return st(t ? k : A, r), st(H, [gt(e, n), gt(n, s), M(Rt, e), $, o(r, Q, T, t)]), r }, I = M(R, !0), q = M(R, !1); return I(), q(), [{ Ut: () => { O(k, !0), O(A) }, Nt: () => { T(k, !0), T(A) }, qt: () => { if (y) { const { Rt: t, Pt: e } = n, o = kn(e), s = .5; if (g.x && g.y) Z(At(A, k), (({ Lt: e }) => { if (C(e)) { const n = n => E(e, g[n], x({ transform: [0, o[n] ? 1 : -1].map((e => Be(Xe(e * (t[n] - s)), "x" === n))) }), "add"); n("x"), n("y") } else $(e) })); else { const n = Pn(e, yt(u)), s = e => { const { Lt: s } = e, r = C(s) && s, c = (t, e, n) => { const o = e * t; return Xe(n ? o : -o) }; return [r, r && { transform: Be({ x: c(n.x, t.x, o.x), y: c(n.y, t.y, o.y) }) }] }; S(k, s), S(A, s) } } }, Bt: Q, Ft: { V: g.x, jt: k, Xt: I, Yt: M(S, k) }, Wt: { V: g.y, jt: A, Xt: q, Yt: M(S, A) } }, () => (gt(b, k[0].Lt), gt(b, A[0].Lt), M(St, H))] }, Ro = (t, e, n, o) => (s, r, c, i) => { const { ht: l, ot: a, nt: d, gt: u, Jt: p, Ot: y } = e, { Lt: h, kt: f, Mt: m } = s, [v, g] = zt(333), [b, w] = zt(444), [x, $] = zt(), E = M(c, [s], i), L = t => { wt(u.scrollBy) && u.scrollBy({ behavior: "smooth", left: t.x, top: t.y }) }, S = i ? Ut : Wt; let G = !0; const O = t => t.propertyName.indexOf(S) > -1; return M(St, [Q(m, "pointermove pointerleave", o), Q(h, "pointerenter", (() => { r(zn, !0) })), Q(h, "pointerleave pointercancel", (() => { r(zn, !1) })), !d && Q(h, "mousedown", (() => { const t = Ke(); (On(t, Pt) || On(t, Dt) || t === document.body) && ve(M(tn, a), 25) })), Q(h, "wheel", (t => { const { deltaX: e, deltaY: n, deltaMode: o } = t; G && 0 === o && Kt(h) === l && L({ x: e, y: n }), G = !1, r(Vn, !0), v((() => { G = !0, r(Vn) })), Qe(t) }), { H: !1, I: !0 }), Q(m, "transitionstart", (t => { if (O(t)) { const t = () => { E(), x(t) }; t() } })), Q(m, "transitionend transitioncancel", (t => { O(t) && ($(), E()) })), Q(h, "pointerdown", M(Q, p, "click", vs, { A: !0, I: !0, H: !1 }), { I: !0 }), (() => { const e = "pointerup pointercancel lostpointercapture", o = "client" + (i ? "X" : "Y"), s = i ? "left" : "top", r = i ? "w" : "h", c = i ? "x" : "y"; return Q(f, "pointerdown", (i => { const l = jt(i.target, `.${gn}`) === m, a = l ? m : f, d = t.scrollbars, { button: h, isPrimary: v, pointerType: g } = i, { pointers: x } = d; if (0 === h && v && d[l ? "dragScroll" : "clickScroll"] && (x || []).includes(g)) { w(); const t = !l && i.shiftKey, d = M(te, m), h = M(te, f), v = (t, e) => (t || d())[s] - (e || h())[s], g = qe(te(u)[S]) / Qt(u)[r] || 1, x = ((t, e) => o => { const { Rt: s } = n, i = Qt(f)[r] - Qt(m)[r], l = e * o / i * s[c]; Ct(u, { [c]: t + l }) })(yt(u)[c], 1 / g), $ = i[o], E = d(), G = h(), O = E[S], T = v(E, G) + O / 2, C = $ - G[s], H = l ? 0 : C - T, Z = t => { St(R), a.releasePointerCapture(t.pointerId) }, k = () => y(lo, !0), A = k(), R = [() => { const t = yt(u); A(); const e = yt(u), n = { x: e.x - t.x, y: e.y - t.y }; (ye(n.x) > 3 || ye(n.y) > 3) && (k(), Ct(u, t), L(n), b(A)) }, Q(p, e, Z), Q(p, "selectstart", (t => Qe(t)), { H: !1 }), Q(f, e, Z), Q(f, "pointermove", (e => { const n = e[o] - $; (l || t) && x(H + n) }))]; if (a.setPointerCapture(i.pointerId), t) x(H); else if (!l) { const t = se(Po); t && st(R, t(x, v, H, O, C)) } } })) })(), g, w, $]) }, Bo = (t, e, n, o, s, r) => { let c, i, l, a, d, u = Mt, p = 0; const y = t => "mouse" === t.pointerType, [h, f] = zt(), [m, v] = zt(100), [g, b] = zt(100), [w, x] = zt((() => p)), [$, E] = Do(t, s, o, Ro(e, s, o, (t => y(t) && k()))), { ht: L, Kt: S, yt: G } = s, { Bt: O, Ut: T, Nt: C, qt: H } = $, Z = (t, e) => { if (x(), t) O(qn); else { const t = M(O, qn, !0); p > 0 && !e ? w(t) : t() } }, k = () => { (l ? !c : !a) && (Z(!0), m((() => { Z(!1) }))) }, A = t => { O(sn, t, !0), O(sn, t, !1) }, R = t => { y(t) && (c = l, l && Z(!0)) }, I = [x, v, b, f, () => u(), Q(L, "pointerover", R, { A: !0 }), Q(L, "pointerenter", R), Q(L, "pointerleave", (t => { y(t) && (c = !1, l && Z(!1)) })), Q(L, "pointermove", (t => { y(t) && i && k() })), Q(S, "scroll", (t => { h((() => { C(), k() })), r(t), H() }))]; return [() => M(St, st(I, E())), ({ It: t, Tt: e, Gt: s, Qt: r }) => { const { Zt: c, tn: y, nn: h, sn: f } = r || {}, { Ct: m, dt: v } = s || {}, { ct: b } = n, { M: w } = Lt(), { G: x, en: $ } = o, [E, L] = t("showNativeOverlaidScrollbars"), [k, R] = t("scrollbars.theme"), [I, q] = t("scrollbars.visibility"), [P, D] = t("scrollbars.autoHide"), [N, B] = t("scrollbars.autoHideSuspend"), [z] = t("scrollbars.autoHideDelay"), [_, j] = t("scrollbars.dragScroll"), [V, W] = t("scrollbars.clickScroll"), [X, F] = t("overflow"), K = v && !e, U = $.x || $.y, Y = c || y || f || m || e, J = h || q || F, tt = E && w.x && w.y, et = (t, e, n) => { const o = t.includes(Zt) && (I === It || "auto" === I && e === Zt); return O(yo, o, n), o }; if (p = z, K && (N && U ? (A(!1), u(), g((() => { u = Q(S, "scroll", M(A, !0), { A: !0 }) }))) : A(!0)), L && O(po, tt), R && (O(d), O(k, !0), d = k), B && !N && A(!0), D && (i = "move" === P, l = "leave" === P, a = "never" === P, Z(a, !0)), j && O(wo, _), W && O(bo, V), J) { const t = et(X.x, x.x, !0), e = et(X.y, x.y, !1); O(vo, !(t && e)) } Y && (T(), C(), H(), O(Nn, !$.x, !0), O(Nn, !$.y, !1), O(mo, b && !G)) }, {}, $] }, _o = t => { const e = Lt(), { P: n, R: o } = e, { elements: s } = n(), { host: r, padding: c, viewport: i, content: l } = s, a = Se(t), d = a ? {} : t, { elements: u } = d, { host: p, padding: y, viewport: h, content: f } = u || {}, m = a ? t : d.target, v = fs(m), g = xe(m, "textarea"), b = m.ownerDocument, w = b.documentElement, x = () => b.defaultView || ft, $ = M(xo, [m]), E = M(Os, [m]), L = M(Gt, ""), S = M($, L, i), G = M(E, L, l), O = S(h), T = O === m, C = T && v, H = !T && G(f), Z = !T && O === H, k = C ? w : O, A = g ? $(L, r, p) : m, R = C ? k : A, I = !T && E(L, c, y), q = !Z && H, P = [q, k, I, R].map((t => Se(t) && !Kt(t) && t)), D = t => t && rn(P, t), N = D(k) ? m : k, B = { vt: m, ht: R, ot: k, cn: I, bt: q, gt: C ? w : k, Kt: C ? b : k, rn: v ? w : N, Jt: b, wt: g, yt: v, Dt: a, nt: T, ln: x, St: t => dn(k, Pt, t), Ot: (t, e) => We(k, Pt, t, e) }, { vt: z, ht: _, cn: j, ot: V, bt: W } = B, X = [() => { Et(_, [Dt, _e]), Et(z, _e), v && Et(w, [_e, Dt]) }], F = g && D(_); let K = g ? z : Ze([W, V, j, _, z].find((t => t && !D(t)))); const U = C ? z : W || V, Y = M(St, X); return [B, () => { const t = x(), e = Ke(), n = t => { gt(Kt(t), Ze(t)), Rt(t) }, s = t => Q(t, "focusin focusout focus blur", vs, { I: !0, H: !1 }), r = "tabindex", c = an(V, r), i = s(e); return Tt(_, Dt, T ? "" : so), Tt(j, nn, ""), Tt(V, Pt, ""), Tt(W, _n, ""), T || (Tt(V, r, c || "-1"), v && Tt(w, Bn, "")), F && ($n(z, _), st(X, (() => { $n(_, z), Rt(_) }))), gt(U, K), gt(_, j), gt(j || _, !T && V), gt(V, W), st(X, [i, () => { const t = Ke(), e = D(V), o = e && t === V ? z : t, i = s(o); Et(j, nn), Et(W, _n), Et(V, Pt), v && Et(w, Bn), c ? Tt(V, r, c) : Et(V, r), D(W) && n(W), e && n(V), D(j) && n(j), tn(o), i() }]), o && !T && (un(V, Pt, xs), st(X, M(Et, V, Pt))), tn(!T && v && e === z && t.top === t ? V : e), i(), K = 0, Y }, Y] }, zo = ({ bt: t }) => ({ Gt: e, an: n, Tt: o }) => { const { xt: s } = e || {}, { $t: r } = n; t && (s || o) && ne(t, { [Wt]: r && "100%" }) }, No = ({ ht: t, cn: e, ot: n, nt: o }, s) => { const [r, c] = ht({ i: Ws, o: An() }, M(An, t, "padding", "")); return ({ It: t, Gt: i, an: l, Tt: a }) => { let [d, u] = c(a); const { R: p } = Lt(), { ft: y, Ht: h, Ct: f } = i || {}, { ct: m } = l, [v, g] = t("paddingAbsolute"); (y || u || a || h) && ([d, u] = r(a)); const b = !o && (g || f || u); if (b) { const t = !v || !e && !p, o = d.r + d.l, r = d.t + d.b, c = { [ss]: t && !m ? -o : 0, [os]: t ? -r : 0, [ns]: t && m ? -o : 0, top: t ? -d.t : 0, right: t ? m ? -d.r : "auto" : 0, left: t ? m ? "auto" : -d.l : 0, [Ut]: t && `calc(100% + ${o}px)` }, i = { [Jn]: t ? d.t : 0, [Qn]: t ? d.r : 0, [es]: t ? d.b : 0, [ts]: t ? d.l : 0 }; ne(e || n, c), ne(n, i), G(s, { cn: d, un: !t, rt: e ? i : G({}, c, i) }) } return { _n: b } } }, qo = (t, e) => { const n = Lt(), { ht: o, cn: s, ot: r, nt: c, Kt: i, gt: l, yt: a, Ot: d, ln: u } = t, { R: p } = n, y = a && c, h = M(Wn, 0), f = ["display", "direction", "flexDirection", "writingMode"], m = { i: cs, o: { w: 0, h: 0 } }, v = { i: me, o: {} }, g = t => { d(Ss, !y && t) }, [b, w] = ht(m, M(mn, r)), [x, $] = ht(m, M(Ye, r)), [E, L] = ht(m), [S] = ht(v), [O, T] = ht(m), [C] = ht(v), [H] = ht({ i: (t, e) => Ae(t, e, f), o: {} }, (() => to(r) ? qt(r, f) : {})), [Z, k] = ht({ i: (t, e) => me(t.T, e.T) && me(t.D, e.D), o: bs() }, (() => { g(!0); const t = yt(l), e = d(io, !0), n = Q(i, Zt, (e => { const n = yt(l); e.isTrusted && n.x === t.x && n.y === t.y && ys(e) }), { I: !0, A: !0 }); Ct(l, { x: 0, y: 0 }), e(); const o = yt(l), s = Ye(l); Ct(l, { x: s.w, y: s.h }); const r = yt(l); Ct(l, { x: r.x - o.x < 1 && -s.w, y: r.y - o.y < 1 && -s.h }); const c = yt(l); return Ct(l, t), on((() => n())), { T: o, D: c } })), A = se(Hs), R = (t, e) => `${e ? oo : co}${Us(t)}`; return ({ It: c, Gt: i, an: l, Tt: a }, { _n: f }) => { const { ft: m, Ht: v, Ct: M, dt: Q, zt: I } = i || {}, q = A && A.tt(t, e, l, n, c), { it: P, ut: D, _t: N } = q || {}, [B, z] = Ho(c, n), [_, j] = c("overflow"), V = Ee(_.x), W = Ee(_.y), X = m || f || v || M || I || z; let F = w(a), K = $(a), U = L(a), Y = T(a); if (z && p && d(xs, !B), X) { dn(o, Dt, ge) && g(!0); const [t] = D ? D() : [], [e] = F = b(a), [n] = K = x(a), s = hs(r), c = y && Qs(u()), i = { w: h(n.w + e.w), h: h(n.h + e.h) }, l = { w: h((c ? c.w : s.w + h(s.w - n.w)) + e.w), h: h((c ? c.h : s.h + h(s.h - n.h)) + e.h) }; t && t(), Y = O(l), U = E(((t, e) => { const n = ft.devicePixelRatio % 1 != 0 ? 1 : 0, o = { w: h(t.w - e.w), h: h(t.h - e.h) }; return { w: o.w > n ? o.w : 0, h: o.h > n ? o.h : 0 } })(i, l), a) } const [J, tt] = Y, [et, nt] = U, [ot, st] = K, [rt, ct] = F, [it, lt] = S({ x: et.w > 0, y: et.h > 0 }), at = V && W && (it.x || it.y) || V && it.x && !it.y || W && it.y && !it.x, dt = f || M || I || ct || st || tt || nt || j || z || X, ut = ko(it, _), [pt, yt] = C(ut.G), [, ht] = H(a), mt = M || Q || ht || lt || a, [vt, gt] = mt ? Z(a) : k(); return dt && (yt && (t => { const e = t => [It, _t, Zt].map((e => R(e, t))), n = e(!0).concat(e()).join(" "); d(n), d(Ht(t).map((e => R(t[e], "x" === e))).join(" "), !0) })(ut.G), N && P && ne(r, N(ut, l, P(ut, ot, rt)))), g(!1), We(o, Dt, ge, at), We(s, nn, ge, at), G(e, { G: pt, Vt: { x: J.w, y: J.h }, Rt: { x: et.w, y: et.h }, en: it, Pt: eo(vt, et) }), { nn: yt, Zt: tt, tn: nt, sn: gt || nt, dn: mt } } }, Vo = t => { const [e, n, o] = _o(t), s = { cn: { t: 0, r: 0, b: 0, l: 0 }, un: !1, rt: { [ss]: 0, [os]: 0, [ns]: 0, [Jn]: 0, [Qn]: 0, [es]: 0, [ts]: 0 }, Vt: { x: 0, y: 0 }, Rt: { x: 0, y: 0 }, G: { x: _t, y: _t }, en: { x: !1, y: !1 }, Pt: bs() }, { vt: r, gt: c, nt: i } = e, { R: l, M: a } = Lt(), d = !l && (a.x || a.y), u = [zo(e), No(e, s), qo(e, s)]; return [n, t => { const e = {}, n = d && yt(c); return Z(u, (n => { G(e, n(t, e) || {}) })), Ct(c, n), !i && Ct(r, 0), e }, s, e, o] }, Fo = (t, e, n, o, s) => { const r = Rn(e, {}), [c, i, l, a, d] = Vo(t), [u, p, y] = Mo(a, l, r, (t => { g({}, t) })), [h, f, , m] = Bo(t, e, y, l, a, s), v = t => Ht(t).some((e => !!t[e])), g = (t, s) => { if (n()) return !1; const { fn: r, Tt: c, At: l, pn: a } = t, d = r || {}, u = !!c, h = { It: Rn(e, d, u), fn: d, Tt: u }; if (a) return f(h), !1; const m = s || p(G({}, h, { At: l })), g = i(G({}, h, { an: y, Gt: m })); f(G({}, h, { Gt: m, Qt: g })); const b = v(m), w = v(g), x = b || w || !ln(d) || u; return x && o(t, { Gt: m, Qt: g }), x }; return [() => { const { rn: t, gt: e } = a, n = yt(t), o = [u(), c(), h()]; return Ct(e, n), M(St, o) }, g, () => ({ vn: y, hn: l }), { gn: a, bn: m }, d] }, Vt = (t, e, n) => { const { N: o } = Lt(), s = Se(t), r = s ? t : t.target, c = $s(r); if (e && !c) { let c = !1; const i = [], l = {}, a = t => { const e = ls(t), n = se(To); return n ? n(e, !0) : e }, d = G({}, o(), a(e)), [u, p, y] = en(), [h, f, m] = en(n), v = (t, e) => { m(t, e), y(t, e) }, [g, b, w, x, $] = Fo(t, d, (() => c), (({ fn: t, Tt: e }, { Gt: n, Qt: o }) => { const { ft: s, Ct: r, xt: c, Ht: i, Et: l, dt: a } = n, { Zt: d, tn: u, nn: p, sn: y } = o; v("updated", [L, { updateHints: { sizeChanged: !!s, directionChanged: !!r, heightIntrinsicChanged: !!c, overflowEdgeChanged: !!d, overflowAmountChanged: !!u, overflowStyleChanged: !!p, scrollCoordinatesChanged: !!y, contentMutation: !!i, hostMutation: !!l, appear: !!a }, changedOptions: t || {}, force: !!e }]) }), (t => v("scroll", [L, t]))), E = t => { Oo(r), St(i), c = !0, v("destroyed", [L, t]), p(), f() }, L = { options(t, e) { if (t) { const n = e ? o() : {}, s = ws(d, G(n, a(t))); ln(s) || (G(d, s), b({ fn: s })) } return G({}, d) }, on: h, off: (t, e) => { t && e && f(t, e) }, state() { const { vn: t, hn: e } = w(), { ct: n } = t, { Vt: o, Rt: s, G: r, en: i, cn: l, un: a, Pt: d } = e; return G({}, { overflowEdge: o, overflowAmount: s, overflowStyle: r, hasOverflow: i, scrollCoordinates: { start: d.T, end: d.D }, padding: l, paddingAbsolute: a, directionRTL: n, destroyed: c }) }, elements() { const { vt: t, ht: e, cn: n, ot: o, bt: s, gt: r, Kt: c } = x.gn, { Ft: i, Wt: l } = x.bn, a = t => { const { Mt: e, kt: n, Lt: o } = t; return { scrollbar: o, track: n, handle: e } }, d = t => { const { jt: e, Xt: n } = t, o = a(e[0]); return G({}, o, { clone: () => { const t = a(n()); return b({ pn: !0 }), t } }) }; return G({}, { target: t, host: e, padding: n || o, viewport: o, content: s || o, scrollOffsetElement: r, scrollEventElement: c, scrollbarHorizontal: d(i), scrollbarVertical: d(l) }) }, update: t => b({ Tt: t, At: !0 }), destroy: M(E, !1), plugin: t => l[Ht(t)[0]] }; return st(i, [$]), Co(r, L), As(Ls, Vt, [L, u, l]), Eo(x.gn.yt, !s && t.cancel) ? (E(!0), L) : (st(i, g()), v("initialized", [L]), L.update(!0), L) } return c }; function vn(t, e) { document.addEventListener("click", (n => { let o = document.getElementById(t), s = n.target; for (let t of e) { let e = document.getElementById(t); if (e == s || e?.contains(s)) return } })) } function jo() { const t = _s(); zs(t) } function Go() { Ns(qs()) } function Uo() { const t = document.getElementById("banner-wrapper"); } function Ps() { Vt({ target: document.querySelector("body"), cancel: { nativeScrollbarsOverlaid: !0 } }, { scrollbars: { theme: "scrollbar-base scrollbar-auto py-1", autoHide: "move", autoHideDelay: 500, autoHideSuspend: !1 } }), document.querySelectorAll("pre").forEach((t => { Vt(t, { scrollbars: { theme: "scrollbar-base scrollbar-dark px-2", autoHide: "leave", autoHideDelay: 500, autoHideSuspend: !1 } }) })) } function Is() { Uo(), jo(), Go(), Ps() } Vt.plugin = t => { const e = $t(t), n = e ? t : [t], o = n.map((t => As(t, Vt)[0])); return Lo(n), e ? o : o[0] }, Vt.valid = t => { const e = t && t.elements, n = wt(e) && e(); return we(n) && !!$s(n.target) }, Vt.env = () => { const { k: t, M: e, R: n, V: o, B: s, F: r, P: c, U: i, N: l, q: a } = Lt(); return G({}, { scrollbarsSize: t, scrollbarsOverlaid: e, scrollbarsHiding: n, scrollTimeline: o, staticDefaultInitialization: s, staticDefaultOptions: r, getDefaultInitialization: c, setDefaultInitialization: i, getDefaultOptions: l, setDefaultOptions: a }) }, vn("display-setting", ["display-setting", "display-settings-switch"]), vn("nav-menu-panel", ["nav-menu-panel", "nav-menu-switch"]), vn("search-panel", ["search-panel", "search-bar", "search-switch"]), Is(), document.addEventListener("astro:after-swap", Is); const jn = () => { window.swup.hooks.on("link:click", (() => { document.documentElement.style.setProperty("--content-delay", "0ms") })), window.swup.hooks.on("content:replace", Ps) }; function Wo() { "dark" === localStorage.theme ? (document.documentElement.classList.remove("dark"), localStorage.theme = "light") : (document.documentElement.classList.add("dark"), localStorage.theme = "dark") } function Ms() { document.getElementById("scheme-switch").addEventListener("click", (function () { Wo() })); let t = document.getElementById("display-settings-switch"); t && t.addEventListener("click", (function () { document.getElementById("display-setting").classList.toggle("float-panel-closed") })), document.getElementById("nav-menu-switch").addEventListener("click", (function () { document.getElementById("nav-menu-panel").classList.toggle("float-panel-closed") })) } window.swup.hooks ? jn() : document.addEventListener("swup:enable", jn), Ms(), document.addEventListener("astro:after-swap", (() => { Ms() }), { once: !1 }); class Zo extends HTMLElement { constructor() { if (super(), void 0 === this.dataset.isCollapsed || !1 === this.dataset.isCollapsed) return; const t = this.dataset.id, e = this.querySelector(".expand-btn"), n = this.querySelector(`#${t}`); e.addEventListener("click", (() => { n.classList.remove("collapsed"), e.classList.add("hidden") })) } } customElements.define("widget-layout", Zo); \ No newline at end of file diff --git a/_astro/_page_.C2WTn4nY.css b/assets/css/_page_.C2WTn4nY.css similarity index 100% rename from _astro/_page_.C2WTn4nY.css rename to assets/css/_page_.C2WTn4nY.css diff --git a/_astro/_page_.DHnhnUL2.css b/assets/css/_page_.DHnhnUL2.css similarity index 100% rename from _astro/_page_.DHnhnUL2.css rename to assets/css/_page_.DHnhnUL2.css diff --git a/_astro/about.DjJRFMus.css b/assets/css/about.css similarity index 100% rename from _astro/about.DjJRFMus.css rename to assets/css/about.css diff --git a/_astro/_category_.BWAG4XaK.css b/assets/css/category.css similarity index 100% rename from _astro/_category_.BWAG4XaK.css rename to assets/css/category.css diff --git a/_astro/hoisted.aW6J7aTb.css b/assets/css/hoisted.css similarity index 100% rename from _astro/hoisted.aW6J7aTb.css rename to assets/css/hoisted.css diff --git a/_astro/option.css b/assets/css/option.css similarity index 100% rename from _astro/option.css rename to assets/css/option.css diff --git a/_astro/demo-banner.WD4SMgz__nlqjd.webp b/assets/img/demo-banner.WD4SMgz__nlqjd.webp similarity index 100% rename from _astro/demo-banner.WD4SMgz__nlqjd.webp rename to assets/img/demo-banner.WD4SMgz__nlqjd.webp diff --git a/assets/js/DisplaySettings.js b/assets/js/DisplaySettings.js new file mode 100644 index 0000000..3e8e172 --- /dev/null +++ b/assets/js/DisplaySettings.js @@ -0,0 +1 @@ +import{S as L,i as M,s as Q,a as K,I as O,c as W,e as _,t as P,b as C,d as v,f as h,g as R,h as T,j as p,k as s,l as H,m as X,n as Y,o as i,p as F,q,u as Z,r as ee,v as te,w as se,x as ae,y as le,z as re,A as oe}from"./translation.js";import{g as ne,a as G,s as ie}from"./setting-utils.js";const ue=e=>({}),J=e=>({});function ce(e){let a,t,l,r,o,c,n,d,b,f,u,m,g,x,k,$,y,I=K(O.themeColor)+"";const w=e[4]["restore-icon"],D=W(w,e,e[3],J);return{c(){a=_("div"),t=_("div"),l=_("div"),r=P(I),o=C(),c=_("button"),n=_("div"),D&&D.c(),d=C(),b=_("div"),f=_("div"),u=P(e[0]),m=C(),g=_("div"),x=_("input"),this.h()},l(s){a=v(s,"DIV",{id:!0,class:!0});var i=h(a);t=v(i,"DIV",{class:!0});var k=h(t);l=v(k,"DIV",{class:!0});var $=h(l);r=R($,I),o=T($),c=v($,"BUTTON",{"aria-label":!0,class:!0});var _=h(c);n=v(_,"DIV",{class:!0});var y=h(n);D&&D.l(y),y.forEach(p),_.forEach(p),$.forEach(p),d=T(k),b=v(k,"DIV",{class:!0});var w=h(b);f=v(w,"DIV",{id:!0,class:!0});var V=h(f);u=R(V,e[0]),V.forEach(p),w.forEach(p),k.forEach(p),m=T(i),g=v(i,"DIV",{class:!0});var E=h(g);x=v(E,"INPUT",{"aria-label":!0,type:!0,min:!0,max:!0,class:!0,id:!0,step:!0,style:!0}),E.forEach(p),i.forEach(p),this.h()},h(){s(n,"class","text-[var(--btn-content)] svelte-3akcb9"),s(c,"aria-label","Reset to Default"),s(c,"class","btn-regular w-7 h-7 rounded-md active:scale-90 svelte-3akcb9"),H(c,"opacity-0",e[0]===e[1]),H(c,"pointer-events-none",e[0]===e[1]),s(l,"class","flex gap-2 font-bold text-lg text-neutral-900 dark:text-neutral-100 transition relative ml-3 before:w-1 before:h-4 before:rounded-md before:bg-[var(--primary)] before:absolute before:-left-3 before:top-[0.33rem] svelte-3akcb9"),s(f,"id","hueValue"),s(f,"class","transition bg-[var(--btn-regular-bg)] w-10 h-7 rounded-md flex justify-center font-bold text-sm items-center text-[var(--btn-content)] svelte-3akcb9"),s(b,"class","flex gap-1 svelte-3akcb9"),s(t,"class","flex flex-row gap-2 mb-3 items-center justify-between svelte-3akcb9"),s(x,"aria-label",K(O.themeColor)),s(x,"type","range"),s(x,"min","0"),s(x,"max","360"),s(x,"class","slider svelte-3akcb9"),s(x,"id","colorSlider"),s(x,"step","5"),X(x,"width","100%"),s(g,"class","w-full h-6 px-1 bg-[oklch(0.80_0.10_0)] dark:bg-[oklch(0.70_0.10_0)] rounded select-none svelte-3akcb9"),s(a,"id","display-setting"),s(a,"class","float-panel float-panel-closed absolute transition-all w-80 right-4 px-4 py-4 svelte-3akcb9")},m(s,p){Y(s,a,p),i(a,t),i(t,l),i(l,r),i(l,o),i(l,c),i(c,n),D&&D.m(n,null),i(t,d),i(t,b),i(b,f),i(f,u),i(a,m),i(a,g),i(g,x),F(x,e[0]),k=!0,$||(y=[q(c,"click",e[2]),q(x,"change",e[5]),q(x,"input",e[5])],$=!0)},p(e,[s]){D&&D.p&&(!k||8&s)&&Z(D,w,e,e[3],k?te(w,e[3],s,ue):ee(e[3]),J),(!k||3&s)&&H(c,"opacity-0",e[0]===e[1]),(!k||3&s)&&H(c,"pointer-events-none",e[0]===e[1]),(!k||1&s)&&se(u,e[0]),1&s&&F(x,e[0])},i(e){k||(ae(D,e),k=!0)},o(e){le(D,e),k=!1},d(e){e&&p(a),D&&D.d(e),$=!1,re(y)}}}function de(e,s,a){let{$$slots:t={},$$scope:l}=s,r=ne();const i=G();return e.$$set=e=>{"$$scope"in e&&a(3,l=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&(r||0===r)&&ie(r)},[r,i,function(){a(0,r=G())},l,t,function(){r=oe(this.value),a(0,r)}]}class pe extends L{constructor(e){super(),M(this,e,de,ce,Q,{})}}export{pe as default}; \ No newline at end of file diff --git a/assets/js/LightDarkSwitch.js b/assets/js/LightDarkSwitch.js new file mode 100644 index 0000000..b9765b1 --- /dev/null +++ b/assets/js/LightDarkSwitch.js @@ -0,0 +1 @@ +import{S as lt,i as at,s as ft,G as ue,n as re,J as He,j as S,D as ut,K as Ct,L as de,M as Qe,e as M,d as L,f as j,N as Ge,O as Ot,H as jt,P as Pt,E as Mt,Q as Ke,R as Lt,a as ve,I as xe,T as z,b as A,t as _e,U as H,h as N,g as ke,k as I,l as O,o as x,V as Q,q as G,x as K,y as W,W as J,z as Dt}from"./translation.js";import{L as Y,D as Z,A as B,b as $t,c as Ft,d as At}from"./setting-utils.js";function dt(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],c=e[i];if(c){for(const t in s)t in c||(o[t]=1);for(const t in c)r[t]||(n[t]=c[t],r[t]=1);t[i]=c}else for(const t in s)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}const te=/^[a-z0-9]+(-[a-z0-9]+)*$/,pe=(t,e,n,o="")=>{const r=t.split(":");if("@"===t.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const t=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:t};return e&&!ae(i)?null:i}const i=r[0],s=i.split("-");if(s.length>1){const t={provider:o,prefix:s.shift(),name:s.join("-")};return e&&!ae(t)?null:t}if(n&&""===o){const t={provider:o,prefix:"",name:i};return e&&!ae(t,n)?null:t}return null},ae=(t,e)=>!!t&&!(""!==t.provider&&!t.provider.match(te)||!(e&&""===t.prefix||t.prefix.match(te))||!t.name.match(te)),ht=Object.freeze({left:0,top:0,width:16,height:16}),he=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ge=Object.freeze({...ht,...he}),Te=Object.freeze({...ge,body:"",hidden:!1});function Nt(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const o=((t.rotate||0)+(e.rotate||0))%4;return o&&(n.rotate=o),n}function We(t,e){const n=Nt(t,e);for(const o in Te)o in he?o in t&&!(o in n)&&(n[o]=he[o]):o in e?n[o]=e[o]:o in t&&(n[o]=t[o]);return n}function Vt(t,e){const n=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);return Object.keys(n).concat(Object.keys(o)).forEach((function t(e){if(n[e])return r[e]=[];if(!(e in r)){r[e]=null;const n=o[e]&&o[e].parent,i=n&&t(n);i&&(r[e]=[n].concat(i))}return r[e]})),r}function Bt(t,e,n){const o=t.icons,r=t.aliases||Object.create(null);let i={};function s(t){i=We(o[t]||r[t],i)}return s(e),n.forEach(s),We(t,i)}function pt(t,e){const n=[];if("object"!=typeof t||"object"!=typeof t.icons)return n;t.not_found instanceof Array&&t.not_found.forEach((t=>{e(t,null),n.push(t)}));const o=Vt(t);for(const r in o){const i=o[r];i&&(e(r,Bt(t,r,i)),n.push(r))}return n}const Rt={provider:"",aliases:{},not_found:{},...ht};function Se(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function gt(t){if("object"!=typeof t||null===t)return null;const e=t;if("string"!=typeof e.prefix||!t.icons||"object"!=typeof t.icons||!Se(t,Rt))return null;const n=e.icons;for(const t in n){const e=n[t];if(!t.match(te)||"string"!=typeof e.body||!Se(e,Te))return null}const o=e.aliases||Object.create(null);for(const t in o){const e=o[t],r=e.parent;if(!t.match(te)||"string"!=typeof r||!n[r]&&!o[r]||!Se(e,Te))return null}return e}const Je=Object.create(null);function Ut(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function R(t,e){const n=Je[t]||(Je[t]=Object.create(null));return n[e]||(n[e]=Ut(t,e))}function Le(t,e){return gt(e)?pt(e,((e,n)=>{n?t.icons[e]=n:t.missing.add(e)})):[]}function qt(t,e,n){try{if("string"==typeof n.body)return t.icons[e]={...n},!0}catch{}return!1}let ne=!1;function mt(t){return"boolean"==typeof t&&(ne=t),ne}function zt(t){const e="string"==typeof t?pe(t,!0,ne):t;if(e){const t=R(e.provider,e.prefix),n=e.name;return t.icons[n]||(t.missing.has(n)?null:void 0)}}function Ht(t,e){const n=pe(t,!0,ne);if(!n)return!1;return qt(R(n.provider,n.prefix),n.name,e)}function Qt(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e=t.provider||""),ne&&!e&&!t.prefix){let e=!1;return gt(t)&&(t.prefix="",pt(t,((t,n)=>{n&&Ht(t,n)&&(e=!0)}))),e}const n=t.prefix;if(!ae({provider:e,prefix:n,name:"a"}))return!1;return!!Le(R(e,n),t)}const bt=Object.freeze({width:null,height:null}),yt=Object.freeze({...bt,...he}),Gt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Kt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Xe(t,e,n){if(1===e)return t;if(n=n||100,"number"==typeof t)return Math.ceil(t*e*n)/n;if("string"!=typeof t)return t;const o=t.split(Gt);if(null===o||!o.length)return t;const r=[];let i=o.shift(),s=Kt.test(i);for(;;){if(s){const t=parseFloat(i);isNaN(t)?r.push(i):r.push(Math.ceil(t*e*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");s=!s}}function Wt(t,e="defs"){let n="";const o=t.indexOf("<"+e);for(;o>=0;){const r=t.indexOf(">",o),i=t.indexOf("",i);if(-1===s)break;n+=t.slice(r+1,i).trim(),t=t.slice(0,o).trim()+t.slice(s+1)}return{defs:n,content:t}}function Jt(t,e){return t?""+t+""+e:e}function Xt(t,e,n){const o=Wt(t);return Jt(o.defs,e+o.content+n)}const Yt=t=>"unset"===t||"undefined"===t||"none"===t;function Zt(t,e){const n={...ge,...t},o={...yt,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((t=>{const e=[],n=t.hFlip,o=t.vFlip;let s,c=t.rotate;switch(n?o?c+=2:(e.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),e.push("scale(-1 1)"),r.top=r.left=0):o&&(e.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),e.push("scale(1 -1)"),r.top=r.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4,c){case 1:s=r.height/2+r.top,e.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:e.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:s=r.width/2+r.left,e.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}c%2==1&&(r.left!==r.top&&(s=r.left,r.left=r.top,r.top=s),r.width!==r.height&&(s=r.width,r.width=r.height,r.height=s)),e.length&&(i=Xt(i,'',""))}));const s=o.width,c=o.height,a=r.width,l=r.height;let f,u;null===s?(u=null===c?"1em":"auto"===c?l:c,f=Xe(u,a/l)):(f="auto"===s?a:s,u=null===c?Xe(f,l/a):"auto"===c?l:c);const d={},p=(t,e)=>{Yt(e)||(d[t]=e.toString())};p("width",f),p("height",u);const h=[r.left,r.top,a,l];return d.viewBox=h.join(" "),{attributes:d,viewBox:h,body:i}}const en=/\sid="(\S+)"/g,tn="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let nn=0;function on(t,e=tn){const n=[];let o;for(;o=en.exec(t);)n.push(o[1]);if(!n.length)return t;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof e?e(n):e+(nn++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),t=t.replace(new RegExp(r,"g"),"")}const Ee=Object.create(null);function rn(t,e){Ee[t]=e}function Ce(t){return Ee[t]||Ee[""]}function De(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:!0===t.random,index:t.index||0,dataAfterTimeout:!1!==t.dataAfterTimeout}}const $e=Object.create(null),ee=["https://api.simplesvg.com","https://api.unisvg.com"],fe=[];for(;ee.length>0;)1===ee.length||Math.random()>.5?fe.push(ee.shift()):fe.push(ee.pop());function sn(t,e){const n=De(e);return null!==n&&($e[t]=n,!0)}function Fe(t){return $e[t]}$e[""]=De({resources:["https://api.iconify.design"].concat(fe)});const cn=()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch{}};let Ye=cn();function ln(t,e){const n=Fe(t);if(!n)return 0;let o;if(n.maxURL){let t=0;n.resources.forEach((e=>{t=Math.max(t,e.length)}));const r=e+".json?icons=";o=n.maxURL-t-n.path.length-r.length}else o=0;return o}function an(t){return 404===t}const fn=(t,e,n)=>{const o=[],r=ln(t,e),i="icons";let s={type:i,provider:t,prefix:e,icons:[]},c=0;return n.forEach(((n,a)=>{c+=n.length+1,c>=r&&a>0&&(o.push(s),s={type:i,provider:t,prefix:e,icons:[]},c=n.length),s.icons.push(n)})),o.push(s),o};function un(t){if("string"==typeof t){const e=Fe(t);if(e)return e.path}return"/"}const dn=(t,e,n)=>{if(!Ye)return void n("abort",424);let o=un(e.provider);switch(e.type){case"icons":{const t=e.prefix,n=e.icons.join(",");o+=t+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const t=e.uri;o+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void n("abort",400)}let r=503;Ye(t+o).then((t=>{const e=t.status;if(200===e)return r=501,t.json();setTimeout((()=>{n(an(e)?"abort":"next",e)}))})).then((t=>{"object"==typeof t&&null!==t?setTimeout((()=>{n("success",t)})):setTimeout((()=>{404===t?n("abort",t):n("next",r)}))})).catch((()=>{n("next",r)}))},hn={prepare:fn,send:dn};function pn(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort(((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name)));let o={provider:"",prefix:"",name:""};return t.forEach((t=>{if(o.name===t.name&&o.prefix===t.prefix&&o.provider===t.provider)return;o=t;const r=t.provider,i=t.prefix,s=t.name,c=n[r]||(n[r]=Object.create(null)),a=c[i]||(c[i]=R(r,i));let l;l=s in a.icons?e.loaded:""===i||a.missing.has(s)?e.missing:e.pending;const f={provider:r,prefix:i,name:s};l.push(f)})),e}function wt(t,e){t.forEach((t=>{const n=t.loaderCallbacks;n&&(t.loaderCallbacks=n.filter((t=>t.id!==e)))}))}function gn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout((()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const o=t.provider,r=t.prefix;e.forEach((e=>{const i=e.icons,s=i.pending.length;i.pending=i.pending.filter((e=>{if(e.prefix!==r)return!0;const s=e.name;if(t.icons[s])i.loaded.push({provider:o,prefix:r,name:s});else{if(!t.missing.has(s))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:s})}return!1})),i.pending.length!==s&&(n||wt([t],e.id),e.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),e.abort))}))})))}let mn=0;function bn(t,e,n){const o=mn++,r=wt.bind(null,n,o);if(!e.pending.length)return r;const i={id:o,icons:e,callback:t,abort:r};return n.forEach((t=>{(t.loaderCallbacks||(t.loaderCallbacks=[])).push(i)})),r}function yn(t,e=!0,n=!1){const o=[];return t.forEach((t=>{const r="string"==typeof t?pe(t,e,n):t;r&&o.push(r)})),o}var wn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vn(t,e,n,o){const r=t.resources.length,i=t.random?Math.floor(Math.random()*r):t.index;let s;if(t.random){let e=t.resources.slice(0);for(s=[];e.length>1;){const t=Math.floor(Math.random()*e.length);s.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}s=s.concat(e)}else s=t.resources.slice(i).concat(t.resources.slice(0,i));const c=Date.now();let a,l="pending",f=0,u=null,d=[],p=[];function h(){u&&(clearTimeout(u),u=null)}function g(){"pending"===l&&(l="aborted"),h(),d.forEach((t=>{"pending"===t.status&&(t.status="aborted")})),d=[]}function m(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function b(){l="failed",p.forEach((t=>{t(void 0,a)}))}function y(){d.forEach((t=>{"pending"===t.status&&(t.status="aborted")})),d=[]}function x(){if("pending"!==l)return;h();const o=s.shift();if(void 0===o)return d.length?void(u=setTimeout((()=>{h(),"pending"===l&&(y(),b())}),t.timeout)):void b();const r={status:"pending",resource:o,callback:(e,n)=>{!function(e,n,o){const r="success"!==n;switch(d=d.filter((t=>t!==e)),l){case"pending":break;case"failed":if(r||!t.dataAfterTimeout)return;break;default:return}if("abort"===n)return a=o,void b();if(r)return a=o,void(d.length||(s.length?x():b()));if(h(),y(),!t.random){const n=t.resources.indexOf(e.resource);-1!==n&&n!==t.index&&(t.index=n)}l="completed",p.forEach((t=>{t(o)}))}(r,e,n)}};d.push(r),f++,u=setTimeout(x,t.rotate),n(o,e,r.callback)}return"function"==typeof o&&p.push(o),setTimeout(x),function(){return{startTime:c,payload:e,status:l,queriesSent:f,queriesPending:d.length,subscribe:m,abort:g}}}function vt(t){const e={...wn,...t};let n=[];function o(){n=n.filter((t=>"pending"===t().status))}return{query:function(t,r,i){const s=vn(e,t,r,((t,e)=>{o(),i&&i(t,e)}));return n.push(s),s},find:function(t){return n.find((e=>t(e)))||null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:o}}function Ze(){}const Ie=Object.create(null);function xn(t){if(!Ie[t]){const e=Fe(t);if(!e)return;const n={config:e,redundancy:vt(e)};Ie[t]=n}return Ie[t]}function _n(t,e,n){let o,r;if("string"==typeof t){const e=Ce(t);if(!e)return n(void 0,424),Ze;r=e.send;const i=xn(t);i&&(o=i.redundancy)}else{const e=De(t);if(e){o=vt(e);const n=Ce(t.resources?t.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(e,r,n)().abort:(n(void 0,424),Ze)}const et="iconify2",oe="iconify",xt=oe+"-count",tt=oe+"-version",_t=36e5,kn=168,Sn=50;function Oe(t,e){try{return t.getItem(e)}catch{}}function Ae(t,e,n){try{return t.setItem(e,n),!0}catch{}}function nt(t,e){try{t.removeItem(e)}catch{}}function je(t,e){return Ae(t,xt,e.toString())}function Pe(t){return parseInt(Oe(t,xt))||0}const me={local:!0,session:!0},kt={local:new Set,session:new Set};let Ne=!1;function In(t){Ne=t}let le=typeof window>"u"?{}:window;function St(t){const e=t+"Storage";try{if(le&&le[e]&&"number"==typeof le[e].length)return le[e]}catch{}me[t]=!1}function It(t,e){const n=St(t);if(!n)return;const o=Oe(n,tt);if(o!==et){if(o){const t=Pe(n);for(let e=0;e{const o=oe+t.toString(),i=Oe(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&e(n,t))return!0}catch{}nt(n,o)}};let s=Pe(n);for(let e=s-1;e>=0;e--)i(e)||(e===s-1?(s--,je(n,s)):kt[t].add(e))}function Tt(){if(!Ne){In(!0);for(const t in me)It(t,(t=>{const e=t.data,n=R(t.provider,e.prefix);if(!Le(n,e).length)return!1;const o=e.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function Tn(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const n in me)It(n,(n=>{const o=n.data;return n.provider!==t.provider||o.prefix!==t.prefix||o.lastModified===e}));return!0}function En(t,e){function n(n){let o;if(!me[n]||!(o=St(n)))return;const r=kt[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Pe(o),i>=Sn||!je(o,i+1))return;const s={cached:Math.floor(Date.now()/_t),provider:t.provider,data:e};return Ae(o,oe+i.toString(),JSON.stringify(s))}Ne||Tt(),e.lastModified&&!Tn(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&delete(e=Object.assign({},e)).not_found,n("local")||n("session"))}function ot(){}function Cn(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout((()=>{t.iconsLoaderFlag=!1,gn(t)})))}function On(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout((()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:n}=t,o=t.iconsToLoad;let r;delete t.iconsToLoad,o&&(r=Ce(e))&&r.prepare(e,n,o).forEach((n=>{_n(e,n,(e=>{if("object"!=typeof e)n.icons.forEach((e=>{t.missing.add(e)}));else try{const n=Le(t,e);if(!n.length)return;const o=t.pendingIcons;o&&n.forEach((t=>{o.delete(t)})),En(t,e)}catch(t){console.error(t)}Cn(t)}))}))})))}const jn=(t,e)=>{const n=pn(yn(t,!0,mt()));if(!n.pending.length){let t=!0;return e&&setTimeout((()=>{t&&e(n.loaded,n.missing,n.pending,ot)})),()=>{t=!1}}const o=Object.create(null),r=[];let i,s;return n.pending.forEach((t=>{const{provider:e,prefix:n}=t;if(n===s&&e===i)return;i=e,s=n,r.push(R(e,n));const c=o[e]||(o[e]=Object.create(null));c[n]||(c[n]=[])})),n.pending.forEach((t=>{const{provider:e,prefix:n,name:r}=t,i=R(e,n),s=i.pendingIcons||(i.pendingIcons=new Set);s.has(r)||(s.add(r),o[e][n].push(r))})),r.forEach((t=>{const{provider:e,prefix:n}=t;o[e][n].length&&On(t,o[e][n])})),e?bn(e,n,r):ot};function Pn(t,e){const n={...t};for(const t in e){const o=e[t],r=typeof o;t in bt?(null===o||o&&("string"===r||"number"===r))&&(n[t]=o):r===typeof n[t]&&(n[t]="rotate"===t?o%4:o)}return n}const Mn=/[\s,]+/;function Ln(t,e){e.split(Mn).forEach((e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}}))}function Dn(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function o(t){for(;t<0;)t+=4;return t%4}if(""===n){const e=parseInt(t);return isNaN(e)?0:o(e)}if(n!==t){let e=0;switch(n){case"%":e=25;break;case"deg":e=90}if(e){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r/=e,r%1==0?o(r):0)}}return e}function $n(t,e){let n=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in e)n+=" "+t+'="'+e[t]+'"';return'"+t+""}function Fn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function An(t){return"data:image/svg+xml,"+Fn(t)}function Nn(t){return'url("'+An(t)+'")'}const rt={...yt,inline:!1},Vn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Bn={display:"inline-block"},Me={"background-color":"currentColor"},Et={"background-color":"transparent"},st={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},it={"-webkit-mask":Me,mask:Me,background:Et};for(const t in it){const e=it[t];for(const n in st)e[t+"-"+n]=st[n]}function Rn(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}function Un(t,e){const n=Pn(rt,e),o=e.mode||"svg",r="svg"===o?{...Vn}:{};-1===t.body.indexOf("xlink:")&&delete r["xmlns:xlink"];let i="string"==typeof e.style?e.style:"";for(let t in e){const o=e[t];if(void 0!==o)switch(t){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[t]=!0===o||"true"===o||1===o;break;case"flip":"string"==typeof o&&Ln(n,o);break;case"color":i=i+(i.length>0&&";"!==i.trim().slice(-1)?";":"")+"color: "+o+"; ";break;case"rotate":"string"==typeof o?n[t]=Dn(o):"number"==typeof o&&(n[t]=o);break;case"ariaHidden":case"aria-hidden":!0!==o&&"true"!==o&&delete r["aria-hidden"];break;default:if("on:"===t.slice(0,3))break;void 0===rt[t]&&(r[t]=o)}}const s=Zt(t,n),c=s.attributes;if(n.inline&&(i="vertical-align: -0.125em; "+i),"svg"===o){Object.assign(r,c),""!==i&&(r.style=i);let t=0,n=e.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),{svg:!0,attributes:r,body:on(s.body,n?()=>n+"ID"+t++:"iconifySvelte")}}const{body:a,width:l,height:f}=t,u="mask"===o||"bg"!==o&&-1!==a.indexOf("currentColor"),d={"--svg":Nn($n(a,{...c,width:l+"",height:f+""}))},p=t=>{const e=c[t];e&&(d[t]=Rn(e))};p("width"),p("height"),Object.assign(d,Bn,u?Me:Et);let h="";for(const t in d)h+=t+": "+d[t]+";";return r.style=h+i,{svg:!1,attributes:r}}if(mt(!0),rn("",hn),typeof document<"u"&&typeof window<"u"){Tt();const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach((t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!Qt(t))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const n="IconifyProviders["+t+"] is invalid.";try{const o=e[t];if("object"!=typeof o||!o||void 0===o.resources)continue;sn(t,o)||console.error(n)}catch{console.error(n)}}}}function qn(t,e,n,o,r){function i(){e.loading&&(e.loading.abort(),e.loading=null)}if("object"==typeof t&&null!==t&&"string"==typeof t.body)return e.name="",i(),{data:{...ge,...t}};let s;if("string"!=typeof t||null===(s=pe(t,!1,!0)))return i(),null;const c=zt(s);if(!c)return n&&(!e.loading||e.loading.name!==t)&&(i(),e.name="",e.loading={name:t,abort:jn([s],o)}),null;i(),e.name!==t&&(e.name=t,r&&!e.destroyed&&r(t));const a=["iconify"];return""!==s.prefix&&a.push("iconify--"+s.prefix),""!==s.provider&&a.push("iconify--"+s.provider),{data:c,classes:a}}function zn(t,e){return t?Un({...ge,...t},e):null}function ct(t){let e;function n(t,e){return t[0].svg?Qn:Hn}let o=n(t),r=o(t);return{c(){r.c(),e=ue()},l(t){r.l(t),e=ue()},m(t,n){r.m(t,n),re(t,e,n)},p(t,i){o===(o=n(t))&&r?r.p(t,i):(r.d(1),r=o(t),r&&(r.c(),r.m(e.parentNode,e)))},d(t){t&&S(e),r.d(t)}}}function Hn(t){let e,n=[t[0].attributes],o={};for(let t=0;t{"function"==typeof e.onLoad&&e.onLoad(t),Lt()("load",{icon:t})};function a(){n(3,s++,s)}return ut((()=>{n(2,i=!0)})),Ct((()=>{n(1,o.destroyed=!0,o),o.loading&&(o.loading.abort(),n(1,o.loading=null,o))})),t.$$set=t=>{n(6,e=de(de({},e),Qe(t)))},t.$$.update=()=>{{const t=qn(e.icon,o,i,a,c);n(0,r=t?zn(t.data,e):null),r&&t.classes&&n(0,r.attributes.class=("string"==typeof e.class?e.class+" ":"")+t.classes.join(" "),r)}},e=Qe(e),[r,o,i,s]}class X extends lt{constructor(t){super(),at(this,t,Kn,Gn,ft,{})}}function Wn(t){let e,n,o,r,i,s,c,a,l,f,u,d,p,h,g,m,b,y,v,w,k,$,E,T,F,C,D,R,P,_,U=ve(xe.lightMode)+"",V=ve(xe.darkMode)+"",q=ve(xe.systemMode)+"";return r=new X({props:{icon:"material-symbols:wb-sunny-outline-rounded",class:"text-[1.25rem]"}}),c=new X({props:{icon:"material-symbols:dark-mode-outline-rounded",class:"text-[1.25rem]"}}),f=new X({props:{icon:"material-symbols:radio-button-partial-outline",class:"text-[1.25rem]"}}),g=new X({props:{icon:"material-symbols:wb-sunny-outline-rounded",class:"text-[1.25rem] mr-3"}}),w=new X({props:{icon:"material-symbols:dark-mode-outline-rounded",class:"text-[1.25rem] mr-3"}}),F=new X({props:{icon:"material-symbols:radio-button-partial-outline",class:"text-[1.25rem] mr-3"}}),{c(){e=M("div"),n=M("button"),o=M("div"),z(r.$$.fragment),i=A(),s=M("div"),z(c.$$.fragment),a=A(),l=M("div"),z(f.$$.fragment),u=A(),d=M("div"),p=M("div"),h=M("button"),z(g.$$.fragment),m=A(),b=_e(U),y=A(),v=M("button"),z(w.$$.fragment),k=A(),$=_e(V),E=A(),T=M("button"),z(F.$$.fragment),C=A(),D=_e(q),this.h()},l(t){e=L(t,"DIV",{class:!0,role:!0,tabindex:!0});var x=j(e);n=L(x,"BUTTON",{"aria-label":!0,role:!0,class:!0,id:!0});var O=j(n);o=L(O,"DIV",{class:!0});var I=j(o);H(r.$$.fragment,I),I.forEach(S),i=N(O),s=L(O,"DIV",{class:!0});var M=j(s);H(c.$$.fragment,M),M.forEach(S),a=N(O),l=L(O,"DIV",{class:!0});var A=j(l);H(f.$$.fragment,A),A.forEach(S),O.forEach(S),u=N(x),d=L(x,"DIV",{id:!0,class:!0});var z=j(d);p=L(z,"DIV",{class:!0});var R=j(p);h=L(R,"BUTTON",{class:!0});var B=j(h);H(g.$$.fragment,B),m=N(B),b=ke(B,U),B.forEach(S),y=N(R),v=L(R,"BUTTON",{class:!0});var P=j(v);H(w.$$.fragment,P),k=N(P),$=ke(P,V),P.forEach(S),E=N(R),T=L(R,"BUTTON",{class:!0});var Q=j(T);H(F.$$.fragment,Q),C=N(Q),D=ke(Q,q),Q.forEach(S),R.forEach(S),z.forEach(S),x.forEach(S),this.h()},h(){I(o,"class","absolute"),O(o,"opacity-0",t[0]!==Y),I(s,"class","absolute"),O(s,"opacity-0",t[0]!==Z),I(l,"class","absolute"),O(l,"opacity-0",t[0]!==B),I(n,"aria-label","Light/Dark Mode"),I(n,"role","menuitem"),I(n,"class","relative btn-plain scale-animation rounded-lg h-11 w-11 active:scale-90"),I(n,"id","scheme-switch"),I(h,"class","flex transition whitespace-nowrap items-center justify-start w-full btn-plain scale-animation rounded-lg h-9 px-3 font-medium active:scale-95 mb-0.5"),O(h,"current-theme-btn",t[0]===Y),I(v,"class","flex transition whitespace-nowrap items-center justify-start w-full btn-plain scale-animation rounded-lg h-9 px-3 font-medium active:scale-95 mb-0.5"),O(v,"current-theme-btn",t[0]===Z),I(T,"class","flex transition whitespace-nowrap items-center justify-start w-full btn-plain scale-animation rounded-lg h-9 px-3 font-medium active:scale-95"),O(T,"current-theme-btn",t[0]===B),I(p,"class","card-base float-panel p-2"),I(d,"id","light-dark-panel"),I(d,"class","hidden lg:block absolute transition float-panel-closed top-11 -right-2 pt-5"),I(e,"class","relative z-50"),I(e,"role","menu"),I(e,"tabindex","-1")},m(j,S){re(j,e,S),x(e,n),x(n,o),Q(r,o,null),x(n,i),x(n,s),Q(c,s,null),x(n,a),x(n,l),Q(f,l,null),x(e,u),x(e,d),x(d,p),x(p,h),Q(g,h,null),x(h,m),x(h,b),x(p,y),x(p,v),Q(w,v,null),x(v,k),x(v,$),x(p,E),x(p,T),Q(F,T,null),x(T,C),x(T,D),R=!0,P||(_=[G(n,"click",t[2]),G(n,"mouseenter",Jn),G(h,"click",t[3]),G(v,"click",t[4]),G(T,"click",t[5]),G(e,"mouseleave",Xn)],P=!0)},p(t,[e]){(!R||1&e)&&O(o,"opacity-0",t[0]!==Y),(!R||1&e)&&O(s,"opacity-0",t[0]!==Z),(!R||1&e)&&O(l,"opacity-0",t[0]!==B),(!R||1&e)&&O(h,"current-theme-btn",t[0]===Y),(!R||1&e)&&O(v,"current-theme-btn",t[0]===Z),(!R||1&e)&&O(T,"current-theme-btn",t[0]===B)},i(t){R||(K(r.$$.fragment,t),K(c.$$.fragment,t),K(f.$$.fragment,t),K(g.$$.fragment,t),K(w.$$.fragment,t),K(F.$$.fragment,t),R=!0)},o(t){W(r.$$.fragment,t),W(c.$$.fragment,t),W(f.$$.fragment,t),W(g.$$.fragment,t),W(w.$$.fragment,t),W(F.$$.fragment,t),R=!1},d(t){t&&S(e),J(r),J(c),J(f),J(g),J(w),J(F),P=!1,Dt(_)}}}function Jn(){document.querySelector("#light-dark-panel").classList.remove("float-panel-closed")}function Xn(){document.querySelector("#light-dark-panel").classList.add("float-panel-closed")}function Yn(t,e,n){const o=[Y,Z,B];let r=B;function i(t){n(0,r=t),Ft(t)}return ut((()=>{n(0,r=$t());const t=window.matchMedia("(prefers-color-scheme: dark)"),e=t=>{At(r)};return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}})),[r,i,function(){let t=0;for(;ti(Y),()=>i(Z),()=>i(B)]}class to extends lt{constructor(t){super(),at(this,t,Yn,Wn,ft,{})}}export{to as default}; \ No newline at end of file diff --git a/_astro/client.Cx1FBVJX.js b/assets/js/client.js similarity index 100% rename from _astro/client.Cx1FBVJX.js rename to assets/js/client.js diff --git a/assets/js/hoisted.js b/assets/js/hoisted.js new file mode 100644 index 0000000..b38ab13 --- /dev/null +++ b/assets/js/hoisted.js @@ -0,0 +1 @@ +import { b as _s, c as zs, s as Ns, g as qs } from "./setting-utils.js"; const Ne = new MutationObserver(Gn); function Gn() { Ne.disconnect(); let t = Array.from(document.querySelectorAll("pre")); for (let e of t) { if ("DIV" === e.parentElement?.nodeName && e.parentElement?.classList.contains("code-block")) continue; let t = document.createElement("div"); t.className = "relative code-block"; let n = document.createElement("button"); n.className = "copy-btn btn-regular-dark absolute active:scale-90 h-8 w-8 top-2 right-2 opacity-75 text-sm p-1.5 rounded-lg transition-all ease-in-out", e.setAttribute("tabindex", "0"), e.parentNode && e.parentNode.insertBefore(t, e); let o, s = '', r = ''; n.innerHTML = `
${s} ${r}
\n `, t.appendChild(e), t.appendChild(n), n.addEventListener("click", (async () => { o && clearTimeout(o); let t = e?.querySelector("code")?.innerText; await navigator.clipboard.writeText(t), n.classList.add("success"), o = setTimeout((() => { n.classList.remove("success") }), 1e3) })) } Ne.observe(document.body, { childList: !0, subtree: !0 }) } Ne.observe(document.body, { childList: !0, subtree: !0 }), document.addEventListener("DOMContentLoaded", Gn); const ht = (t, e) => { const { o: n, i: o, u: s } = t; let r, c = n; const i = (t, e) => { const n = c, i = t, l = e || (o ? !o(n, i) : n !== i); return (l || s) && (c = i, r = n), [c, l, r] }; return [e ? t => i(e(c, r), t) : i, t => [c, !!t, r]] }, Un = typeof window < "u" && typeof document < "u", ft = Un ? window : {}, Wn = Math.max, Vs = Math.min, qe = Math.round, ye = Math.abs, xn = Math.sign, Zn = ft.cancelAnimationFrame, on = ft.requestAnimationFrame, ve = ft.setTimeout, Ve = ft.clearTimeout, Ce = t => typeof ft[t] < "u" ? ft[t] : void 0, Fs = Ce("MutationObserver"), En = Ce("IntersectionObserver"), be = Ce("ResizeObserver"), Fe = Ce("ScrollTimeline"), Kn = Un && Node.ELEMENT_NODE, { toString: Xo, hasOwnProperty: Re } = Object.prototype, Oe = t => void 0 === t, cn = t => null === t, Ot = t => "number" == typeof t, $e = t => "string" == typeof t, Xn = t => "boolean" == typeof t, wt = t => "function" == typeof t, $t = t => Array.isArray(t), ee = t => "object" == typeof t && !$t(t) && !cn(t), Le = t => { const e = !!t && t.length, n = Ot(e) && e > -1 && e % 1 == 0; return !!($t(t) || !wt(t) && n) && (!(e > 0 && ee(t)) || e - 1 in t) }, we = t => { if (!t || !ee(t)) return !1; let e; const n = "constructor", o = t[n], s = o && o.prototype, r = Re.call(t, n), c = s && Re.call(s, "isPrototypeOf"); if (o && !r && !c) return !1; for (e in t); return Oe(e) || Re.call(t, e) }, Se = t => { const e = HTMLElement; return !!t && (e ? t instanceof e : t.nodeType === Kn) }, Te = t => { const e = Element; return !!t && (e ? t instanceof e : t.nodeType === Kn) }; function Z(t, e) { if (Le(t)) for (let n = 0; n < t.length && !1 !== e(t[n], n, t); n++); else t && Z(Object.keys(t), (n => e(t[n], n, t))); return t } const rn = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), st = (t, e, n) => (!$e(e) && Le(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Bt = t => Array.from(t || []), Yn = t => $t(t) ? t : [t], je = t => !!t && !t.length, Cn = t => Bt(new Set(t)), St = (t, e, n) => { Z(t, (t => t && t.apply(void 0, e || []))), !n && (t.length = 0) }, Jn = "paddingTop", Qn = "paddingRight", ts = "paddingLeft", es = "paddingBottom", ns = "marginLeft", ss = "marginRight", os = "marginBottom", js = "overflowX", Gs = "overflowY", Ut = "width", Wt = "height", It = "visible", _t = "hidden", Zt = "scroll", Us = t => { const e = String(t || ""); return e ? e[0].toUpperCase() + e.slice(1) : "" }, Ae = (t, e, n, o) => { if (t && e) { let o = !0; return Z(n, (n => { t[n] !== e[n] && (o = !1) })), o } return !1 }, cs = (t, e) => Ae(t, e, ["w", "h"]), me = (t, e) => Ae(t, e, ["x", "y"]), Ws = (t, e) => Ae(t, e, ["t", "r", "b", "l"]), Mt = () => { }, M = (t, ...e) => t.bind(0, ...e), zt = t => { let e; const n = t ? ve : on, o = t ? Ve : Zn; return [s => { o(e), e = n((() => s()), wt(t) ? t() : t) }, () => o(e)] }, Ge = (t, e) => { const { _: n, p: o, v: s, m: r } = e || {}; let c, i, l, a, d = Mt; const u = function (e) { d(), Ve(c), a = c = i = void 0, d = Mt, t.apply(this, e) }, p = t => r && i ? r(i, t) : t, y = () => { d !== Mt && u(p(l) || l) }, h = function () { const t = Bt(arguments), e = wt(n) ? n() : n; if (Ot(e) && e >= 0) { const n = wt(o) ? o() : o, r = Ot(n) && n >= 0, h = e > 0 ? ve : on, f = e > 0 ? Ve : Zn, m = p(t) || t, v = u.bind(0, m); let g; d(), s && !a ? (v(), a = !0, g = h((() => a = void 0), e)) : (g = h(v, e), r && !c && (c = ve(y, n))), d = () => f(g), i = l = m } else u(t) }; return h.S = y, h }, rs = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ht = t => t ? Object.keys(t) : [], G = (t, e, n, o, s, r, c) => { const i = [e, n, o, s, r, c]; return ("object" != typeof t || cn(t)) && !wt(t) && (t = {}), Z(i, (e => { Z(e, ((n, o) => { const s = e[o]; if (t === s) return !0; const r = $t(s); if (s && we(s)) { const e = t[o]; let n = e; r && !$t(e) ? n = [] : !r && !we(e) && (n = {}), t[o] = G(n, s) } else t[o] = r ? s.slice() : s })) })), t }, ls = (t, e) => Z(G({}, t), ((t, e, n) => { void 0 === t ? delete n[e] : t && we(t) && (n[e] = ls(t)) })), ln = t => { for (const e in t) return !1; return !0 }, Ue = (t, e, n) => Wn(t, Vs(e, n)), Nt = t => Bt(new Set(($t(t) ? t : (t || "").split(" ")).filter((t => t)))), an = (t, e) => t && t.getAttribute(e), On = (t, e) => t && t.hasAttribute(e), Tt = (t, e, n) => { Z(Nt(e), (e => { t && t.setAttribute(e, String(n || "")) })) }, Et = (t, e) => { Z(Nt(e), (e => t && t.removeAttribute(e))) }, He = (t, e) => { const n = Nt(an(t, e)), o = M(Tt, t, e), s = (t, e) => { const o = new Set(n); return Z(Nt(t), (t => { o[e](t) })), Bt(o).join(" ") }; return { O: t => o(s(t, "delete")), $: t => o(s(t, "add")), C: t => { const e = Nt(t); return e.reduce(((t, e) => t && n.includes(e)), e.length > 0) } } }, is = (t, e, n) => (He(t, e).O(n), M(un, t, e, n)), un = (t, e, n) => (He(t, e).$(n), M(is, t, e, n)), We = (t, e, n, o) => (o ? un : is)(t, e, n), dn = (t, e, n) => He(t, e).C(n), as = t => He(t, "class"), us = (t, e) => { as(t).O(e) }, fn = (t, e) => (as(t).$(e), M(us, t, e)), ds = (t, e) => { const n = [], o = e ? Te(e) && e : document; return o ? st(n, o.querySelectorAll(t)) : n }, Zs = (t, e) => { const n = e ? Te(e) && e : document; return n ? n.querySelector(t) : null }, xe = (t, e) => !!Te(t) && t.matches(e), fs = t => xe(t, "body"), Ze = t => t ? Bt(t.childNodes) : [], Kt = t => t && t.parentElement, jt = (t, e) => Te(t) && t.closest(e), Ke = t => document.activeElement, Ks = (t, e, n) => { const o = jt(t, e), s = t && Zs(n, o), r = jt(s, e) === o; return !(!o || !s) && (o === t || s === t || r && jt(jt(t, n), e) !== o) }, Rt = t => { if (Le(t)) Z(Bt(t), (t => Rt(t))); else if (t) { const e = Kt(t); e && e.removeChild(t) } }, ps = (t, e, n) => { if (n && t) { let o, s = e; return Le(n) ? (o = document.createDocumentFragment(), Z(n, (t => { t === s && (s = t.previousSibling), o.appendChild(t) }))) : o = n, e && (s ? s !== e && (s = s.nextSibling) : s = t.firstChild), t.insertBefore(o, s || null), () => Rt(n) } return Mt }, gt = (t, e) => ps(t, null, e), $n = (t, e) => ps(Kt(t), t && t.nextSibling, e), Gt = t => { const e = document.createElement("div"); return Tt(e, "class", t), e }, ms = t => { const e = Gt(); return e.innerHTML = t.trim(), Z(Ze(e), (t => Rt(t))) }, Xs = /^--/, Ln = (t, e) => t.getPropertyValue(e) || t[e] || "", pn = t => { const e = t || 0; return isFinite(e) ? e : 0 }, fe = t => pn(parseFloat(t || "")), Tn = t => `${(100 * pn(t)).toFixed(3)}%`, Xe = t => `${pn(t)}px`; function ne(t, e) { t && e && Z(e, ((e, n) => { try { const o = t.style, s = Ot(e) ? Xe(e) : (e || "") + ""; Xs.test(n) ? o.setProperty(n, s) : o[n] = s } catch { } })) } function qt(t, e, n) { const o = $e(e); let s = o ? "" : {}; if (t) { const r = ft.getComputedStyle(t, n) || t.style; s = o ? Ln(r, e) : Bt(e).reduce(((t, e) => (t[e] = Ln(r, e), t)), s) } return s } const An = (t, e, n) => { const o = e ? `${e}-` : "", s = n ? `-${n}` : "", r = `${o}top${s}`, c = `${o}right${s}`, i = `${o}bottom${s}`, l = `${o}left${s}`, a = qt(t, [r, c, i, l]); return { t: fe(a[r]), r: fe(a[c]), b: fe(a[i]), l: fe(a[l]) } }, Be = (t, e) => "translate" + (ee(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`), Ys = t => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Js = { w: 0, h: 0 }, ke = (t, e) => e ? { w: e[`${t}Width`], h: e[`${t}Height`] } : Js, Qs = t => ke("inner", t || ft), Qt = M(ke, "offset"), hs = M(ke, "client"), Ye = M(ke, "scroll"), mn = t => { const e = parseFloat(qt(t, Ut)) || 0, n = parseFloat(qt(t, Wt)) || 0; return { w: e - qe(e), h: n - qe(n) } }, te = t => t.getBoundingClientRect(), to = t => !!t && Ys(t), Je = t => !(!t || !t[Wt] && !t[Ut]), gs = (t, e) => { const n = Je(t); return !Je(e) && n }, Hn = (t, e, n, o) => { Z(Nt(e), (e => { t && t.removeEventListener(e, n, o) })) }, Q = (t, e, n, o) => { var s; const r = null == (s = o && o.H) || s, c = o && o.I || !1, i = o && o.A || !1, l = { passive: r, capture: c }; return M(St, Nt(e).map((e => { const o = i ? s => { Hn(t, e, o, c), n && n(s) } : n; return t && t.addEventListener(e, o, l), M(Hn, t, e, o, c) }))) }, ys = t => t.stopPropagation(), Qe = t => t.preventDefault(), vs = t => ys(t) || Qe(t), Ct = (t, e) => { const { x: n, y: o } = Ot(e) ? { x: e, y: e } : e || {}; Ot(n) && (t.scrollLeft = n), Ot(o) && (t.scrollTop = o) }, yt = t => ({ x: t.scrollLeft, y: t.scrollTop }), bs = () => ({ T: { x: 0, y: 0 }, D: { x: 0, y: 0 } }), eo = (t, e) => { const { T: n, D: o } = t, { w: s, h: r } = e, c = (t, e, n) => { let o = xn(t) * n, s = xn(e) * n; if (o === s) { const n = ye(t), r = ye(e); s = n > r ? 0 : s, o = n < r ? 0 : o } return o = o === s ? 0 : o, [o + 0, s + 0] }, [i, l] = c(n.x, o.x, s), [a, d] = c(n.y, o.y, r); return { T: { x: i, y: a }, D: { x: l, y: d } } }, kn = ({ T: t, D: e }) => { const n = (t, e) => 0 === t && t <= e; return { x: n(t.x, e.x), y: n(t.y, e.y) } }, Pn = ({ T: t, D: e }, n) => { const o = (t, e, n) => Ue(0, 1, (t - n) / (t - e) || 0); return { x: o(t.x, e.x, n.x), y: o(t.y, e.y, n.y) } }, tn = t => { t && t.focus && t.focus({ preventScroll: !0 }) }, In = (t, e) => { Z(Yn(e), t) }, en = t => { const e = new Map, n = (t, n) => { if (t) { const o = e.get(t); In((t => { o && o[t ? "delete" : "clear"](t) }), n) } else e.forEach((t => { t.clear() })), e.clear() }, o = (t, s) => { if ($e(t)) { const o = e.get(t) || new Set; return e.set(t, o), In((t => { wt(t) && o.add(t) }), s), M(n, t, s) } Xn(s) && s && n(); const r = Ht(t), c = []; return Z(r, (e => { const n = t[e]; n && st(c, o(e, n)) })), M(St, c) }; return o(t || {}), [o, n, (t, n) => { Z(Bt(e.get(t)), (t => { n && !je(n) ? t.apply(0, n) : t() })) }] }, Mn = t => JSON.stringify(t, ((t, e) => { if (wt(e)) throw 0; return e })), Dn = (t, e) => t ? `${e}`.split(".").reduce(((t, e) => t && rs(t, e) ? t[e] : void 0), t) : void 0, no = { paddingAbsolute: !1, showNativeOverlaidScrollbars: !1, update: { elementEvents: [["img", "load"]], debounce: [0, 33], attributes: null, ignoreMutation: null }, overflow: { x: "scroll", y: "scroll" }, scrollbars: { theme: "os-theme-dark", visibility: "auto", autoHide: "never", autoHideDelay: 1300, autoHideSuspend: !1, dragScroll: !0, clickScroll: !1, pointers: ["mouse", "touch", "pen"] } }, ws = (t, e) => { const n = {}; return Z(At(Ht(e), Ht(t)), (o => { const s = t[o], r = e[o]; if (ee(s) && ee(r)) G(n[o] = {}, ws(s, r)), ln(n[o]) && delete n[o]; else if (rs(e, o) && r !== s) { let t = !0; if ($t(s) || $t(r)) try { Mn(s) === Mn(r) && (t = !1) } catch { } t && (n[o] = r) } })), n }, Rn = (t, e, n) => o => [Dn(t, o), n || void 0 !== Dn(e, o)], Xt = "data-overlayscrollbars", he = "os-environment", pe = `${he}-scrollbar-hidden`, _e = `${Xt}-initialize`, ge = "noClipping", Bn = `${Xt}-body`, Dt = Xt, so = "host", Pt = `${Xt}-viewport`, oo = js, co = Gs, ro = "arrange", Ss = "measuring", xs = "scrollbarHidden", lo = "scrollbarPressed", io = "noContent", nn = `${Xt}-padding`, _n = `${Xt}-content`, hn = "os-size-observer", ao = `${hn}-appear`, uo = `${hn}-listener`, fo = "os-trinsic-observer", po = "os-theme-none", vt = "os-scrollbar", mo = `${vt}-rtl`, ho = `${vt}-horizontal`, go = `${vt}-vertical`, Es = `${vt}-track`, gn = `${vt}-handle`, yo = `${vt}-visible`, vo = `${vt}-cornerless`, zn = `${vt}-interaction`, Nn = `${vt}-unusable`, sn = `${vt}-auto-hide`, qn = `${sn}-hidden`, Vn = `${vt}-wheel`, bo = `${Es}-interactive`, wo = `${gn}-interactive`; let ze; const So = () => { const t = (t, e, n) => { gt(document.body, t), gt(document.body, t); const o = hs(t), s = Qt(t), r = mn(e); return n && Rt(t), { x: s.h - o.h + r.h, y: s.w - o.w + r.w } }, e = ms(`
`)[0], n = e.firstChild, [o, , s] = en(), [r, c] = ht({ o: t(e, n), i: me }, M(t, e, n, !0)), [i] = c(), l = (t => { let e = !1; const n = fn(t, pe); try { e = "none" === qt(t, "scrollbar-width") || "none" === qt(t, "display", "::-webkit-scrollbar") } catch { } return n(), e })(e), a = { x: 0 === i.x, y: 0 === i.y }, d = { elements: { host: null, padding: !l, viewport: t => l && fs(t) && t, content: !1 }, scrollbars: { slot: !0 }, cancel: { nativeScrollbarsOverlaid: !1, body: null } }, u = G({}, no), p = M(G, {}, u), y = M(G, {}, d), h = { k: i, M: a, R: l, V: !!Fe, L: M(o, "r"), P: y, U: t => G(d, t) && y(), N: p, q: t => G(u, t) && p(), B: G({}, d), F: G({}, u) }; if (Et(e, "style"), Rt(e), Q(ft, "resize", (() => { s("r", []) })), wt(ft.matchMedia) && !l && (!a.x || !a.y)) { const t = e => { const n = ft.matchMedia(`(resolution: ${ft.devicePixelRatio}dppx)`); Q(n, "change", (() => { e(), t(e) }), { A: !0 }) }; t((() => { const [t, e] = r(); G(h.k, t), s("r", [e]) })) } return h }, Lt = () => (ze || (ze = So()), ze), Cs = (t, e) => wt(e) ? e.apply(0, t) : e, xo = (t, e, n, o) => { const s = Oe(o) ? n : o; return Cs(t, s) || e.apply(0, t) }, Os = (t, e, n, o) => { const s = Oe(o) ? n : o, r = Cs(t, s); return !!r && (Se(r) ? r : e.apply(0, t)) }, Eo = (t, e) => { const { nativeScrollbarsOverlaid: n, body: o } = e || {}, { M: s, R: r, P: c } = Lt(), { nativeScrollbarsOverlaid: i, body: l } = c().cancel, a = n ?? i, d = Oe(o) ? l : o, u = (s.x || s.y) && a, p = t && (cn(d) ? !r : d); return !!u || !!p }, yn = new WeakMap, Co = (t, e) => { yn.set(t, e) }, Oo = t => { yn.delete(t) }, $s = t => yn.get(t), $o = (t, e, n) => { let o = !1; const s = !!n && new WeakMap, r = r => { if (s && n) { Z(n.map((e => { const [n, o] = e || []; return [o && n ? (r || ds)(n, t) : [], o] })), (n => Z(n[0], (r => { const c = n[1], i = s.get(r) || []; if (t.contains(r) && c) { const t = Q(r, c, (n => { o ? (t(), s.delete(r)) : e(n) })); s.set(r, st(i, t)) } else St(i), s.delete(r) })))) } }; return r(), [() => { o = !0 }, r] }, Fn = (t, e, n, o) => { let s = !1; const { j: r, X: c, Y: i, W: l, J: a, K: d } = o || {}, u = Ge((() => s && n(!0)), { _: 33, p: 99 }), [p, y] = $o(t, u, i), h = c || [], f = At(r || [], h), m = (s, r) => { if (!je(r)) { const c = a || Mt, i = d || Mt, u = [], p = []; let f = !1, m = !1; if (Z(r, (n => { const { attributeName: s, target: r, type: a, oldValue: d, addedNodes: y, removedNodes: v } = n, g = "attributes" === a, b = "childList" === a, w = t === r, x = g && s, M = x && an(r, s || ""), $ = $e(M) ? M : null, E = x && d !== $, L = rn(h, s) && E; if (e && (b || !w)) { const e = g && E, a = e && l && xe(r, l), p = (a ? !c(r, s, d, $) : !g || e) && !i(n, !!a, t, o); Z(y, (t => st(u, t))), Z(v, (t => st(u, t))), m = m || p } !e && w && E && !c(r, s, d, $) && (st(p, s), f = f || L) })), y((t => Cn(u).reduce(((e, n) => (st(e, ds(t, n)), xe(n, t) ? st(e, n) : e)), []))), e) return !s && m && n(!1), [!1]; if (!je(p) || f) { const t = [Cn(p), f]; return !s && n.apply(0, t), t } } }, v = new Fs(M(m, !1)); return [() => (v.observe(t, { attributes: !0, attributeOldValue: !0, attributeFilter: f, subtree: e, childList: e, characterData: e }), s = !0, () => { s && (p(), v.disconnect(), s = !1) }), () => { if (s) return u.S(), m(!0, v.takeRecords()) }] }, Ls = {}, Ts = {}, Lo = t => { Z(t, (t => Z(t, ((e, n) => { Ls[n] = t[n] })))) }, As = (t, e, n) => Ht(t).map((o => { const { static: s, instance: r } = t[o], [c, i, l] = n || [], a = n ? r : s; if (a) { const t = n ? a(c, i, e) : a(e); return (l || Ts)[o] = t } })), se = t => Ts[t], To = "__osOptionsValidationPlugin", Ao = "__osSizeObserverPlugin", Ho = (t, e) => { const { M: n } = e, [o, s] = t("showNativeOverlaidScrollbars"); return [o && n.x && n.y, s] }, Ee = t => 0 === t.indexOf(It), ko = (t, e) => { const n = (t, e, n, o) => { const s = t === It ? _t : t.replace(`${It}-`, ""), r = Ee(t), c = Ee(n); return e || o ? r && c ? It : r ? e && o ? s : e ? It : _t : e ? s : c && o ? It : _t : _t }, o = { x: n(e.x, t.x, e.y, t.y), y: n(e.y, t.y, e.x, t.x) }; return { G: o, Z: { x: o.x === Zt, y: o.y === Zt } } }, Hs = "__osScrollbarsHidingPlugin", Po = "__osClickScrollPlugin", ks = (t, e, n) => { const { dt: o } = n || {}, s = se(Ao), [r] = ht({ o: !1, u: !0 }); return () => { const n = [], c = ms(`
`)[0], i = c.firstChild, l = t => { let n = !1, o = !1; if (t instanceof ResizeObserverEntry) { const [e, , s] = r(t.contentRect), c = Je(e); o = gs(e, s), n = !o && !c } else o = !0 === t; n || e({ ft: !0, dt: o }) }; if (be) { const t = new be((t => l(t.pop()))); t.observe(i), st(n, (() => { t.disconnect() })) } else { if (!s) return Mt; { const [t, e] = s(i, l, o); st(n, At([fn(c, ao), Q(c, "animationstart", t)], e)) } } return M(St, st(n, gt(t, c))) } }, Io = (t, e) => { let n; const o = Gt(fo), [s] = ht({ o: !1 }), r = (t, n) => { if (t) { const o = s((t => 0 === t.h || t.isIntersecting || t.intersectionRatio > 0)(t)), [, r] = o; return r && !n && e(o) && [o] } }, c = (t, e) => r(e.pop(), t); return [() => { const e = []; if (En) n = new En(M(c, !1), { root: t }), n.observe(o), st(e, (() => { n.disconnect() })); else { const t = () => { const t = Qt(o); r(t) }; st(e, ks(o, t)()), t() } return M(St, st(e, gt(t, o))) }, () => n && c(!0, n.takeRecords())] }, Mo = (t, e, n, o) => { let s, r, c, i, l, a; const d = `[${Dt}]`, u = `[${Pt}]`, p = ["wrap", "cols", "rows"], y = ["id", "class", "style", "open"], { vt: h, ht: f, ot: m, gt: v, bt: g, wt: b, nt: w, yt: x, St: M, Ot: $ } = t, E = t => "rtl" === qt(t, "direction"), L = { $t: !1, ct: E(h) }, S = Lt(), O = se(Hs), [T] = ht({ i: cs, o: { w: 0, h: 0 } }, (() => { const o = O && O.tt(t, e, L, S, n).ut, s = !(x && w) && dn(f, Dt, ge), r = !w && M(ro), c = r && yt(v), i = $(Ss, s), l = r && o && o()[0], a = Ye(m), d = mn(m); return l && l(), Ct(v, c), s && i(), { w: a.w + d.w, h: a.h + d.h } })), C = b ? p : At(y, p), H = Ge(o, { _: () => s, p: () => r, m(t, e) { const [n] = t, [o] = e; return [At(Ht(n), Ht(o)).reduce(((t, e) => (t[e] = n[e] || o[e], t)), {})] } }), Z = t => { const e = E(h); G(t, { Ct: a !== e }), G(L, { ct: e }), a = e }, k = (t, e) => { const [n, s] = t, r = { xt: s }; return G(L, { $t: n }), !e && o(r), r }, A = ({ ft: t, dt: e }) => { const n = t && !e || !S.R ? o : H, s = { ft: t || e, dt: e }; Z(s), n(s) }, Q = (t, e) => { const [, n] = T(), s = { Ht: n }; return Z(s), n && !e && (t ? o : H)(s), s }, R = (t, e, n) => { const o = { Et: e }; return Z(o), e && !n && H(o), o }, [I, q] = g ? Io(f, k) : [], P = !w && ks(f, A, { dt: !0 }), [D, N] = Fn(f, !1, R, { X: y, j: At(y, []) }), B = w && be && new be((t => { const e = t[t.length - 1].contentRect; A({ ft: !0, dt: gs(e, l) }), l = e })), z = Ge((() => { const [, t] = T(); o({ Ht: t }) }), { _: 222, v: !0 }); return [() => { B && B.observe(f); const t = P && P(), e = I && I(), n = D(), o = S.L((t => { t ? H({ zt: t }) : z() })); return () => { B && B.disconnect(), t && t(), e && e(), i && i(), n(), o() } }, ({ It: t, At: e, Tt: n }) => { const o = {}, [l] = t("update.ignoreMutation"), [a, p] = t("update.attributes"), [y, h] = t("update.elementEvents"), [f, v] = t("update.debounce"), b = e || n; if (h || p) { c && c(), i && i(); const [t, e] = Fn(g || m, !0, Q, { j: At(C, a || []), Y: y, W: d, K: (t, e) => { const { target: n, attributeName: o } = t; return !(e || !o || w) && Ks(n, d, u) || !!jt(n, `.${vt}`) || !!(t => wt(l) && l(t))(t) } }); i = t(), c = e } if (v) if (H.S(), $t(f)) { const t = f[0], e = f[1]; s = Ot(t) && t, r = Ot(e) && e } else Ot(f) ? (s = f, r = !1) : (s = !1, r = !1); if (b) { const t = N(), e = q && q(), n = c && c(); t && G(o, R(t[0], t[1], b)), e && G(o, k(e[0], b)), n && G(o, Q(n[0], b)) } return Z(o), o }, L] }, Do = (t, e, n, o) => { const { P: s } = Lt(), { scrollbars: r } = s(), { slot: c } = r, { vt: i, ht: l, ot: a, Dt: d, gt: u, yt: p, nt: y } = e, { scrollbars: h } = d ? {} : t, { slot: f } = h || {}, m = new Map, v = t => Fe && new Fe({ source: u, axis: t }), g = { x: v("x"), y: v("y") }, b = Os([i, l, a], (() => y && p ? i : l), c, f), w = (t, e) => { if (e) { const n = t ? Ut : Wt, { kt: o, Mt: s } = e, r = te(s)[n], c = te(o)[n]; return Ue(0, 1, r / c || 0) } const o = t ? "x" : "y", { Rt: s, Vt: r } = n, c = r[o], i = s[o]; return Ue(0, 1, c / (c + i) || 0) }, x = t => G(t, { clear: ["left"] }), $ = t => { m.forEach(((e, n) => { (!t || rn(Yn(t), n)) && (Z(e || [], (t => { t && t.cancel() })), m.delete(n)) })) }, E = (t, e, n, o) => { const s = m.get(t) || [], r = s.find((t => t && t.timeline === e)); r ? r.effect = new KeyframeEffect(t, n, { composite: o }) : m.set(t, At(s, [t.animate(n, { timeline: e, composite: o })])) }, L = (t, e, n) => { const o = n ? fn : us; Z(t, (t => { o(t.Lt, e) })) }, S = (t, e) => { Z(t, (t => { const [n, o] = e(t); ne(n, o) })) }, O = (t, e) => { S(t, (t => { const { Mt: n } = t; return [n, { [e ? Ut : Wt]: Tn(w(e)) }] })) }, T = (t, e) => { const { Pt: o } = n, s = e ? "x" : "y", r = g[s], c = kn(o)[s], i = (t, n) => Be(Tn(((t, e, n) => { const o = w(n, t); return 1 / o * (1 - o) * e })(t, c ? n : 1 - n, e)), e); r ? Z(t, (t => { const { Mt: e } = t; E(e, r, x({ transform: [0, 1].map((e => i(t, e))) })) })) : S(t, (t => [t.Mt, { transform: i(t, Pn(o, yt(u))[s]) }])) }, C = t => y && !p && Kt(t) === a, H = [], k = [], A = [], Q = (t, e, n) => { const o = Xn(n), s = !o || !n; (!o || n) && L(k, t, e), s && L(A, t, e) }, R = t => { const e = Gt(`${vt} ${t ? ho : go}`), n = Gt(Es), s = Gt(gn), r = { Lt: e, kt: n, Mt: s }; return st(t ? k : A, r), st(H, [gt(e, n), gt(n, s), M(Rt, e), $, o(r, Q, T, t)]), r }, I = M(R, !0), q = M(R, !1); return I(), q(), [{ Ut: () => { O(k, !0), O(A) }, Nt: () => { T(k, !0), T(A) }, qt: () => { if (y) { const { Rt: t, Pt: e } = n, o = kn(e), s = .5; if (g.x && g.y) Z(At(A, k), (({ Lt: e }) => { if (C(e)) { const n = n => E(e, g[n], x({ transform: [0, o[n] ? 1 : -1].map((e => Be(Xe(e * (t[n] - s)), "x" === n))) }), "add"); n("x"), n("y") } else $(e) })); else { const n = Pn(e, yt(u)), s = e => { const { Lt: s } = e, r = C(s) && s, c = (t, e, n) => { const o = e * t; return Xe(n ? o : -o) }; return [r, r && { transform: Be({ x: c(n.x, t.x, o.x), y: c(n.y, t.y, o.y) }) }] }; S(k, s), S(A, s) } } }, Bt: Q, Ft: { V: g.x, jt: k, Xt: I, Yt: M(S, k) }, Wt: { V: g.y, jt: A, Xt: q, Yt: M(S, A) } }, () => (gt(b, k[0].Lt), gt(b, A[0].Lt), M(St, H))] }, Ro = (t, e, n, o) => (s, r, c, i) => { const { ht: l, ot: a, nt: d, gt: u, Jt: p, Ot: y } = e, { Lt: h, kt: f, Mt: m } = s, [v, g] = zt(333), [b, w] = zt(444), [x, $] = zt(), E = M(c, [s], i), L = t => { wt(u.scrollBy) && u.scrollBy({ behavior: "smooth", left: t.x, top: t.y }) }, S = i ? Ut : Wt; let G = !0; const O = t => t.propertyName.indexOf(S) > -1; return M(St, [Q(m, "pointermove pointerleave", o), Q(h, "pointerenter", (() => { r(zn, !0) })), Q(h, "pointerleave pointercancel", (() => { r(zn, !1) })), !d && Q(h, "mousedown", (() => { const t = Ke(); (On(t, Pt) || On(t, Dt) || t === document.body) && ve(M(tn, a), 25) })), Q(h, "wheel", (t => { const { deltaX: e, deltaY: n, deltaMode: o } = t; G && 0 === o && Kt(h) === l && L({ x: e, y: n }), G = !1, r(Vn, !0), v((() => { G = !0, r(Vn) })), Qe(t) }), { H: !1, I: !0 }), Q(m, "transitionstart", (t => { if (O(t)) { const t = () => { E(), x(t) }; t() } })), Q(m, "transitionend transitioncancel", (t => { O(t) && ($(), E()) })), Q(h, "pointerdown", M(Q, p, "click", vs, { A: !0, I: !0, H: !1 }), { I: !0 }), (() => { const e = "pointerup pointercancel lostpointercapture", o = "client" + (i ? "X" : "Y"), s = i ? "left" : "top", r = i ? "w" : "h", c = i ? "x" : "y"; return Q(f, "pointerdown", (i => { const l = jt(i.target, `.${gn}`) === m, a = l ? m : f, d = t.scrollbars, { button: h, isPrimary: v, pointerType: g } = i, { pointers: x } = d; if (0 === h && v && d[l ? "dragScroll" : "clickScroll"] && (x || []).includes(g)) { w(); const t = !l && i.shiftKey, d = M(te, m), h = M(te, f), v = (t, e) => (t || d())[s] - (e || h())[s], g = qe(te(u)[S]) / Qt(u)[r] || 1, x = ((t, e) => o => { const { Rt: s } = n, i = Qt(f)[r] - Qt(m)[r], l = e * o / i * s[c]; Ct(u, { [c]: t + l }) })(yt(u)[c], 1 / g), $ = i[o], E = d(), G = h(), O = E[S], T = v(E, G) + O / 2, C = $ - G[s], H = l ? 0 : C - T, Z = t => { St(R), a.releasePointerCapture(t.pointerId) }, k = () => y(lo, !0), A = k(), R = [() => { const t = yt(u); A(); const e = yt(u), n = { x: e.x - t.x, y: e.y - t.y }; (ye(n.x) > 3 || ye(n.y) > 3) && (k(), Ct(u, t), L(n), b(A)) }, Q(p, e, Z), Q(p, "selectstart", (t => Qe(t)), { H: !1 }), Q(f, e, Z), Q(f, "pointermove", (e => { const n = e[o] - $; (l || t) && x(H + n) }))]; if (a.setPointerCapture(i.pointerId), t) x(H); else if (!l) { const t = se(Po); t && st(R, t(x, v, H, O, C)) } } })) })(), g, w, $]) }, Bo = (t, e, n, o, s, r) => { let c, i, l, a, d, u = Mt, p = 0; const y = t => "mouse" === t.pointerType, [h, f] = zt(), [m, v] = zt(100), [g, b] = zt(100), [w, x] = zt((() => p)), [$, E] = Do(t, s, o, Ro(e, s, o, (t => y(t) && k()))), { ht: L, Kt: S, yt: G } = s, { Bt: O, Ut: T, Nt: C, qt: H } = $, Z = (t, e) => { if (x(), t) O(qn); else { const t = M(O, qn, !0); p > 0 && !e ? w(t) : t() } }, k = () => { (l ? !c : !a) && (Z(!0), m((() => { Z(!1) }))) }, A = t => { O(sn, t, !0), O(sn, t, !1) }, R = t => { y(t) && (c = l, l && Z(!0)) }, I = [x, v, b, f, () => u(), Q(L, "pointerover", R, { A: !0 }), Q(L, "pointerenter", R), Q(L, "pointerleave", (t => { y(t) && (c = !1, l && Z(!1)) })), Q(L, "pointermove", (t => { y(t) && i && k() })), Q(S, "scroll", (t => { h((() => { C(), k() })), r(t), H() }))]; return [() => M(St, st(I, E())), ({ It: t, Tt: e, Gt: s, Qt: r }) => { const { Zt: c, tn: y, nn: h, sn: f } = r || {}, { Ct: m, dt: v } = s || {}, { ct: b } = n, { M: w } = Lt(), { G: x, en: $ } = o, [E, L] = t("showNativeOverlaidScrollbars"), [k, R] = t("scrollbars.theme"), [I, q] = t("scrollbars.visibility"), [P, D] = t("scrollbars.autoHide"), [N, B] = t("scrollbars.autoHideSuspend"), [z] = t("scrollbars.autoHideDelay"), [_, j] = t("scrollbars.dragScroll"), [V, W] = t("scrollbars.clickScroll"), [X, F] = t("overflow"), K = v && !e, U = $.x || $.y, Y = c || y || f || m || e, J = h || q || F, tt = E && w.x && w.y, et = (t, e, n) => { const o = t.includes(Zt) && (I === It || "auto" === I && e === Zt); return O(yo, o, n), o }; if (p = z, K && (N && U ? (A(!1), u(), g((() => { u = Q(S, "scroll", M(A, !0), { A: !0 }) }))) : A(!0)), L && O(po, tt), R && (O(d), O(k, !0), d = k), B && !N && A(!0), D && (i = "move" === P, l = "leave" === P, a = "never" === P, Z(a, !0)), j && O(wo, _), W && O(bo, V), J) { const t = et(X.x, x.x, !0), e = et(X.y, x.y, !1); O(vo, !(t && e)) } Y && (T(), C(), H(), O(Nn, !$.x, !0), O(Nn, !$.y, !1), O(mo, b && !G)) }, {}, $] }, _o = t => { const e = Lt(), { P: n, R: o } = e, { elements: s } = n(), { host: r, padding: c, viewport: i, content: l } = s, a = Se(t), d = a ? {} : t, { elements: u } = d, { host: p, padding: y, viewport: h, content: f } = u || {}, m = a ? t : d.target, v = fs(m), g = xe(m, "textarea"), b = m.ownerDocument, w = b.documentElement, x = () => b.defaultView || ft, $ = M(xo, [m]), E = M(Os, [m]), L = M(Gt, ""), S = M($, L, i), G = M(E, L, l), O = S(h), T = O === m, C = T && v, H = !T && G(f), Z = !T && O === H, k = C ? w : O, A = g ? $(L, r, p) : m, R = C ? k : A, I = !T && E(L, c, y), q = !Z && H, P = [q, k, I, R].map((t => Se(t) && !Kt(t) && t)), D = t => t && rn(P, t), N = D(k) ? m : k, B = { vt: m, ht: R, ot: k, cn: I, bt: q, gt: C ? w : k, Kt: C ? b : k, rn: v ? w : N, Jt: b, wt: g, yt: v, Dt: a, nt: T, ln: x, St: t => dn(k, Pt, t), Ot: (t, e) => We(k, Pt, t, e) }, { vt: z, ht: _, cn: j, ot: V, bt: W } = B, X = [() => { Et(_, [Dt, _e]), Et(z, _e), v && Et(w, [_e, Dt]) }], F = g && D(_); let K = g ? z : Ze([W, V, j, _, z].find((t => t && !D(t)))); const U = C ? z : W || V, Y = M(St, X); return [B, () => { const t = x(), e = Ke(), n = t => { gt(Kt(t), Ze(t)), Rt(t) }, s = t => Q(t, "focusin focusout focus blur", vs, { I: !0, H: !1 }), r = "tabindex", c = an(V, r), i = s(e); return Tt(_, Dt, T ? "" : so), Tt(j, nn, ""), Tt(V, Pt, ""), Tt(W, _n, ""), T || (Tt(V, r, c || "-1"), v && Tt(w, Bn, "")), F && ($n(z, _), st(X, (() => { $n(_, z), Rt(_) }))), gt(U, K), gt(_, j), gt(j || _, !T && V), gt(V, W), st(X, [i, () => { const t = Ke(), e = D(V), o = e && t === V ? z : t, i = s(o); Et(j, nn), Et(W, _n), Et(V, Pt), v && Et(w, Bn), c ? Tt(V, r, c) : Et(V, r), D(W) && n(W), e && n(V), D(j) && n(j), tn(o), i() }]), o && !T && (un(V, Pt, xs), st(X, M(Et, V, Pt))), tn(!T && v && e === z && t.top === t ? V : e), i(), K = 0, Y }, Y] }, zo = ({ bt: t }) => ({ Gt: e, an: n, Tt: o }) => { const { xt: s } = e || {}, { $t: r } = n; t && (s || o) && ne(t, { [Wt]: r && "100%" }) }, No = ({ ht: t, cn: e, ot: n, nt: o }, s) => { const [r, c] = ht({ i: Ws, o: An() }, M(An, t, "padding", "")); return ({ It: t, Gt: i, an: l, Tt: a }) => { let [d, u] = c(a); const { R: p } = Lt(), { ft: y, Ht: h, Ct: f } = i || {}, { ct: m } = l, [v, g] = t("paddingAbsolute"); (y || u || a || h) && ([d, u] = r(a)); const b = !o && (g || f || u); if (b) { const t = !v || !e && !p, o = d.r + d.l, r = d.t + d.b, c = { [ss]: t && !m ? -o : 0, [os]: t ? -r : 0, [ns]: t && m ? -o : 0, top: t ? -d.t : 0, right: t ? m ? -d.r : "auto" : 0, left: t ? m ? "auto" : -d.l : 0, [Ut]: t && `calc(100% + ${o}px)` }, i = { [Jn]: t ? d.t : 0, [Qn]: t ? d.r : 0, [es]: t ? d.b : 0, [ts]: t ? d.l : 0 }; ne(e || n, c), ne(n, i), G(s, { cn: d, un: !t, rt: e ? i : G({}, c, i) }) } return { _n: b } } }, qo = (t, e) => { const n = Lt(), { ht: o, cn: s, ot: r, nt: c, Kt: i, gt: l, yt: a, Ot: d, ln: u } = t, { R: p } = n, y = a && c, h = M(Wn, 0), f = ["display", "direction", "flexDirection", "writingMode"], m = { i: cs, o: { w: 0, h: 0 } }, v = { i: me, o: {} }, g = t => { d(Ss, !y && t) }, [b, w] = ht(m, M(mn, r)), [x, $] = ht(m, M(Ye, r)), [E, L] = ht(m), [S] = ht(v), [O, T] = ht(m), [C] = ht(v), [H] = ht({ i: (t, e) => Ae(t, e, f), o: {} }, (() => to(r) ? qt(r, f) : {})), [Z, k] = ht({ i: (t, e) => me(t.T, e.T) && me(t.D, e.D), o: bs() }, (() => { g(!0); const t = yt(l), e = d(io, !0), n = Q(i, Zt, (e => { const n = yt(l); e.isTrusted && n.x === t.x && n.y === t.y && ys(e) }), { I: !0, A: !0 }); Ct(l, { x: 0, y: 0 }), e(); const o = yt(l), s = Ye(l); Ct(l, { x: s.w, y: s.h }); const r = yt(l); Ct(l, { x: r.x - o.x < 1 && -s.w, y: r.y - o.y < 1 && -s.h }); const c = yt(l); return Ct(l, t), on((() => n())), { T: o, D: c } })), A = se(Hs), R = (t, e) => `${e ? oo : co}${Us(t)}`; return ({ It: c, Gt: i, an: l, Tt: a }, { _n: f }) => { const { ft: m, Ht: v, Ct: M, dt: Q, zt: I } = i || {}, q = A && A.tt(t, e, l, n, c), { it: P, ut: D, _t: N } = q || {}, [B, z] = Ho(c, n), [_, j] = c("overflow"), V = Ee(_.x), W = Ee(_.y), X = m || f || v || M || I || z; let F = w(a), K = $(a), U = L(a), Y = T(a); if (z && p && d(xs, !B), X) { dn(o, Dt, ge) && g(!0); const [t] = D ? D() : [], [e] = F = b(a), [n] = K = x(a), s = hs(r), c = y && Qs(u()), i = { w: h(n.w + e.w), h: h(n.h + e.h) }, l = { w: h((c ? c.w : s.w + h(s.w - n.w)) + e.w), h: h((c ? c.h : s.h + h(s.h - n.h)) + e.h) }; t && t(), Y = O(l), U = E(((t, e) => { const n = ft.devicePixelRatio % 1 != 0 ? 1 : 0, o = { w: h(t.w - e.w), h: h(t.h - e.h) }; return { w: o.w > n ? o.w : 0, h: o.h > n ? o.h : 0 } })(i, l), a) } const [J, tt] = Y, [et, nt] = U, [ot, st] = K, [rt, ct] = F, [it, lt] = S({ x: et.w > 0, y: et.h > 0 }), at = V && W && (it.x || it.y) || V && it.x && !it.y || W && it.y && !it.x, dt = f || M || I || ct || st || tt || nt || j || z || X, ut = ko(it, _), [pt, yt] = C(ut.G), [, ht] = H(a), mt = M || Q || ht || lt || a, [vt, gt] = mt ? Z(a) : k(); return dt && (yt && (t => { const e = t => [It, _t, Zt].map((e => R(e, t))), n = e(!0).concat(e()).join(" "); d(n), d(Ht(t).map((e => R(t[e], "x" === e))).join(" "), !0) })(ut.G), N && P && ne(r, N(ut, l, P(ut, ot, rt)))), g(!1), We(o, Dt, ge, at), We(s, nn, ge, at), G(e, { G: pt, Vt: { x: J.w, y: J.h }, Rt: { x: et.w, y: et.h }, en: it, Pt: eo(vt, et) }), { nn: yt, Zt: tt, tn: nt, sn: gt || nt, dn: mt } } }, Vo = t => { const [e, n, o] = _o(t), s = { cn: { t: 0, r: 0, b: 0, l: 0 }, un: !1, rt: { [ss]: 0, [os]: 0, [ns]: 0, [Jn]: 0, [Qn]: 0, [es]: 0, [ts]: 0 }, Vt: { x: 0, y: 0 }, Rt: { x: 0, y: 0 }, G: { x: _t, y: _t }, en: { x: !1, y: !1 }, Pt: bs() }, { vt: r, gt: c, nt: i } = e, { R: l, M: a } = Lt(), d = !l && (a.x || a.y), u = [zo(e), No(e, s), qo(e, s)]; return [n, t => { const e = {}, n = d && yt(c); return Z(u, (n => { G(e, n(t, e) || {}) })), Ct(c, n), !i && Ct(r, 0), e }, s, e, o] }, Fo = (t, e, n, o, s) => { const r = Rn(e, {}), [c, i, l, a, d] = Vo(t), [u, p, y] = Mo(a, l, r, (t => { g({}, t) })), [h, f, , m] = Bo(t, e, y, l, a, s), v = t => Ht(t).some((e => !!t[e])), g = (t, s) => { if (n()) return !1; const { fn: r, Tt: c, At: l, pn: a } = t, d = r || {}, u = !!c, h = { It: Rn(e, d, u), fn: d, Tt: u }; if (a) return f(h), !1; const m = s || p(G({}, h, { At: l })), g = i(G({}, h, { an: y, Gt: m })); f(G({}, h, { Gt: m, Qt: g })); const b = v(m), w = v(g), x = b || w || !ln(d) || u; return x && o(t, { Gt: m, Qt: g }), x }; return [() => { const { rn: t, gt: e } = a, n = yt(t), o = [u(), c(), h()]; return Ct(e, n), M(St, o) }, g, () => ({ vn: y, hn: l }), { gn: a, bn: m }, d] }, Vt = (t, e, n) => { const { N: o } = Lt(), s = Se(t), r = s ? t : t.target, c = $s(r); if (e && !c) { let c = !1; const i = [], l = {}, a = t => { const e = ls(t), n = se(To); return n ? n(e, !0) : e }, d = G({}, o(), a(e)), [u, p, y] = en(), [h, f, m] = en(n), v = (t, e) => { m(t, e), y(t, e) }, [g, b, w, x, $] = Fo(t, d, (() => c), (({ fn: t, Tt: e }, { Gt: n, Qt: o }) => { const { ft: s, Ct: r, xt: c, Ht: i, Et: l, dt: a } = n, { Zt: d, tn: u, nn: p, sn: y } = o; v("updated", [L, { updateHints: { sizeChanged: !!s, directionChanged: !!r, heightIntrinsicChanged: !!c, overflowEdgeChanged: !!d, overflowAmountChanged: !!u, overflowStyleChanged: !!p, scrollCoordinatesChanged: !!y, contentMutation: !!i, hostMutation: !!l, appear: !!a }, changedOptions: t || {}, force: !!e }]) }), (t => v("scroll", [L, t]))), E = t => { Oo(r), St(i), c = !0, v("destroyed", [L, t]), p(), f() }, L = { options(t, e) { if (t) { const n = e ? o() : {}, s = ws(d, G(n, a(t))); ln(s) || (G(d, s), b({ fn: s })) } return G({}, d) }, on: h, off: (t, e) => { t && e && f(t, e) }, state() { const { vn: t, hn: e } = w(), { ct: n } = t, { Vt: o, Rt: s, G: r, en: i, cn: l, un: a, Pt: d } = e; return G({}, { overflowEdge: o, overflowAmount: s, overflowStyle: r, hasOverflow: i, scrollCoordinates: { start: d.T, end: d.D }, padding: l, paddingAbsolute: a, directionRTL: n, destroyed: c }) }, elements() { const { vt: t, ht: e, cn: n, ot: o, bt: s, gt: r, Kt: c } = x.gn, { Ft: i, Wt: l } = x.bn, a = t => { const { Mt: e, kt: n, Lt: o } = t; return { scrollbar: o, track: n, handle: e } }, d = t => { const { jt: e, Xt: n } = t, o = a(e[0]); return G({}, o, { clone: () => { const t = a(n()); return b({ pn: !0 }), t } }) }; return G({}, { target: t, host: e, padding: n || o, viewport: o, content: s || o, scrollOffsetElement: r, scrollEventElement: c, scrollbarHorizontal: d(i), scrollbarVertical: d(l) }) }, update: t => b({ Tt: t, At: !0 }), destroy: M(E, !1), plugin: t => l[Ht(t)[0]] }; return st(i, [$]), Co(r, L), As(Ls, Vt, [L, u, l]), Eo(x.gn.yt, !s && t.cancel) ? (E(!0), L) : (st(i, g()), v("initialized", [L]), L.update(!0), L) } return c }; function vn(t, e) { document.addEventListener("click", (n => { let o = document.getElementById(t), s = n.target; for (let t of e) { let e = document.getElementById(t); if (e == s || e?.contains(s)) return } })) } function jo() { const t = _s(); zs(t) } function Go() { Ns(qs()) } function Uo() { const t = document.getElementById("banner-wrapper"); } function Ps() { Vt({ target: document.querySelector("body"), cancel: { nativeScrollbarsOverlaid: !0 } }, { scrollbars: { theme: "scrollbar-base scrollbar-auto py-1", autoHide: "move", autoHideDelay: 500, autoHideSuspend: !1 } }), document.querySelectorAll("pre").forEach((t => { Vt(t, { scrollbars: { theme: "scrollbar-base scrollbar-dark px-2", autoHide: "leave", autoHideDelay: 500, autoHideSuspend: !1 } }) })) } function Is() { Uo(), jo(), Go(), Ps() } Vt.plugin = t => { const e = $t(t), n = e ? t : [t], o = n.map((t => As(t, Vt)[0])); return Lo(n), e ? o : o[0] }, Vt.valid = t => { const e = t && t.elements, n = wt(e) && e(); return we(n) && !!$s(n.target) }, Vt.env = () => { const { k: t, M: e, R: n, V: o, B: s, F: r, P: c, U: i, N: l, q: a } = Lt(); return G({}, { scrollbarsSize: t, scrollbarsOverlaid: e, scrollbarsHiding: n, scrollTimeline: o, staticDefaultInitialization: s, staticDefaultOptions: r, getDefaultInitialization: c, setDefaultInitialization: i, getDefaultOptions: l, setDefaultOptions: a }) }, vn("display-setting", ["display-setting", "display-settings-switch"]), vn("nav-menu-panel", ["nav-menu-panel", "nav-menu-switch"]), vn("search-panel", ["search-panel", "search-bar", "search-switch"]), Is(), document.addEventListener("astro:after-swap", Is); const jn = () => { window.swup.hooks.on("link:click", (() => { document.documentElement.style.setProperty("--content-delay", "0ms") })), window.swup.hooks.on("content:replace", Ps) }; function Wo() { "dark" === localStorage.theme ? (document.documentElement.classList.remove("dark"), localStorage.theme = "light") : (document.documentElement.classList.add("dark"), localStorage.theme = "dark") } function Ms() { document.getElementById("scheme-switch").addEventListener("click", (function () { Wo() })); let t = document.getElementById("display-settings-switch"); t && t.addEventListener("click", (function () { document.getElementById("display-setting").classList.toggle("float-panel-closed") })), document.getElementById("nav-menu-switch").addEventListener("click", (function () { document.getElementById("nav-menu-panel").classList.toggle("float-panel-closed") })) } window.swup.hooks ? jn() : document.addEventListener("swup:enable", jn), Ms(), document.addEventListener("astro:after-swap", (() => { Ms() }), { once: !1 }); class Zo extends HTMLElement { constructor() { if (super(), void 0 === this.dataset.isCollapsed || !1 === this.dataset.isCollapsed) return; const t = this.dataset.id, e = this.querySelector(".expand-btn"), n = this.querySelector(`#${t}`); e.addEventListener("click", (() => { n.classList.remove("collapsed"), e.classList.add("hidden") })) } } customElements.define("widget-layout", Zo); \ No newline at end of file diff --git a/_astro/page.3zT6KwRv.js b/assets/js/page.js similarity index 100% rename from _astro/page.3zT6KwRv.js rename to assets/js/page.js diff --git a/_astro/setting-utils.CmAt4it9.js b/assets/js/setting-utils.js similarity index 100% rename from _astro/setting-utils.CmAt4it9.js rename to assets/js/setting-utils.js diff --git a/_astro/translation.DIdkVo7S.js b/assets/js/translation.js similarity index 100% rename from _astro/translation.DIdkVo7S.js rename to assets/js/translation.js diff --git a/functions.php b/functions.php index 1fbec84..08224a0 100644 --- a/functions.php +++ b/functions.php @@ -5,7 +5,7 @@ function themeInit($archive) Helper::options()->commentsAntiSpam = false; } ?> -'> +'> options->icourl() ?>" rel=icon media="(prefers-color-scheme: light)" sizes=32x32> - - - - - + + + + + - - + + header(); ?> \ No newline at end of file diff --git a/index.php b/index.php index 42fda63..5966e4d 100644 --- a/index.php +++ b/index.php @@ -16,10 +16,10 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;