From 56a13cddbbfa71ae4f00d3417baf0bfac45902b3 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 8 Nov 2022 22:56:44 +0800 Subject: [PATCH] feat: add search widget plugin adaptation support --- env.d.ts | 1 + src/main.ts | 8 ++++++++ templates/assets/dist/main.iife.js | 6 +++--- templates/modules/header.html | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/env.d.ts b/env.d.ts index 700587a..ad4b636 100644 --- a/env.d.ts +++ b/env.d.ts @@ -6,5 +6,6 @@ export {}; declare global { interface Window { Alpine: Alpine; + SearchWidget: any; } } diff --git a/src/main.ts b/src/main.ts index 7fe4031..43659f0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -34,3 +34,11 @@ export function generateToc() { scrollSmoothOffset: -100, }); } + +// 此主题的搜索依赖 https://github.com/halo-sigs/plugin-search-widget 插件,在 Halo 支持主题依赖插件之前,使用 alert 以提示使用者。 +export function openSearch() { + if(!window.SearchWidget) { + alert("未安装或启用搜索插件,无法使用搜索功能。https://github.com/halo-sigs/plugin-search-widget"); + } + window.SearchWidget.open() +} \ No newline at end of file diff --git a/templates/assets/dist/main.iife.js b/templates/assets/dist/main.iife.js index f7dbb58..af107bc 100644 --- a/templates/assets/dist/main.iife.js +++ b/templates/assets/dist/main.iife.js @@ -1,4 +1,4 @@ -var main=function(et){"use strict";const Jc="",Yc="";/** +var main=function(be){"use strict";const Yc="",Xc="";/** * (c) Iconify * * For the full copyright and license information, please view the license.txt or license.gpl.txt @@ -8,8 +8,8 @@ var main=function(et){"use strict";const Jc="",Yc="";/** * * @license MIT * @version 3.0.0 -*/const un=Object.freeze({left:0,top:0,width:16,height:16}),be=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...un,...be}),tt=Object.freeze({...ee,body:"",hidden:!1});function ki(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(n.rotate=i),n}function fn(e,t){const n=ki(e,t);for(const i in tt)i in be?i in e&&!(i in n)&&(n[i]=be[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function Ti(e,t){const n=e.icons,i=e.aliases||{},r=Object.create(null);function o(s){if(n[s])return r[s]=[];if(!(s in r)){r[s]=null;const c=i[s]&&i[s].parent,a=c&&o(c);a&&(r[s]=[c].concat(a))}return r[s]}return(t||Object.keys(n).concat(Object.keys(i))).forEach(o),r}function Ii(e,t,n){const i=e.icons,r=e.aliases||{};let o={};function s(c){o=fn(i[c]||r[c],o)}return s(t),n.forEach(s),fn(e,o)}function dn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const i=Ti(e);for(const r in i){const o=i[r];o&&(t(r,Ii(e,r,o)),n.push(r))}return n}const te=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(e,t,n,i="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;i=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),a=r.pop(),l={provider:r.length>0?r[0]:i,prefix:a,name:c};return t&&!xe(l)?null:l}const o=r[0],s=o.split("-");if(s.length>1){const c={provider:i,prefix:s.shift(),name:s.join("-")};return t&&!xe(c)?null:c}if(n&&i===""){const c={provider:i,prefix:"",name:o};return t&&!xe(c,n)?null:c}return null},xe=(e,t)=>e?!!((e.provider===""||e.provider.match(te))&&(t&&e.prefix===""||e.prefix.match(te))&&e.name.match(te)):!1,Mi={provider:"",aliases:{},not_found:{},...un};function nt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function hn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!nt(e,Mi))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(te)||typeof o.body!="string"||!nt(o,tt))return null}const i=t.aliases||{};for(const r in i){const o=i[r],s=o.parent;if(!r.match(te)||typeof s!="string"||!n[s]&&!i[s]||!nt(o,tt))return null}return t}const we=Object.create(null);function Li(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function j(e,t){const n=we[e]||(we[e]=Object.create(null));return n[t]||(n[t]=Li(e,t))}function rt(e,t){return hn(t)?dn(t,(n,i)=>{i?e.icons[n]=i:e.missing.add(n)}):[]}function ji(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Pi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(we)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(we[r]||{})).forEach(s=>{const c=j(r,s);n=n.concat(Object.keys(c.icons).map(a=>(r!==""?"@"+r+":":"")+s+":"+a))})}),n}let ne=!1;function Ni(e){return typeof e=="boolean"&&(ne=e),ne}function re(e){const t=typeof e=="string"?U(e,!0,ne):e;if(t){const n=j(t.provider,t.prefix),i=t.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function pn(e,t){const n=U(e,!0,ne);if(!n)return!1;const i=j(n.provider,n.prefix);return ji(i,n.name,t)}function gn(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ne&&!t&&!e.prefix){let r=!1;return hn(e)&&(e.prefix="",dn(e,(o,s)=>{s&&pn(o,s)&&(r=!0)})),r}const n=e.prefix;if(!xe({provider:t,prefix:n,name:"a"}))return!1;const i=j(t,n);return!!rt(i,e)}function Fi(e){return!!re(e)}function Ri(e){const t=re(e);return t?{...ee,...t}:null}const mn=Object.freeze({width:null,height:null}),vn=Object.freeze({...mn,...be}),$i=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Hi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function it(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const i=e.split($i);if(i===null||!i.length)return e;const r=[];let o=i.shift(),s=Hi.test(o);for(;;){if(s){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=i.shift(),o===void 0)return r.join("");s=!s}}function Se(e,t){const n={...ee,...e},i={...vn,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,i].forEach(_=>{const m=[],E=_.hFlip,g=_.vFlip;let p=_.rotate;E?g?p+=2:(m.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),m.push("scale(-1 1)"),r.top=r.left=0):g&&(m.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),m.push("scale(1 -1)"),r.top=r.left=0);let d;switch(p<0&&(p-=Math.floor(p/4)*4),p=p%4,p){case 1:d=r.height/2+r.top,m.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:m.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:d=r.width/2+r.left,m.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}p%2===1&&(r.left!==r.top&&(d=r.left,r.left=r.top,r.top=d),r.width!==r.height&&(d=r.width,r.width=r.height,r.height=d)),m.length&&(o=''+o+"")});const s=i.width,c=i.height,a=r.width,l=r.height;let u,f;return s===null?(f=c===null?"1em":c==="auto"?l:c,u=it(f,a/l)):(u=s==="auto"?a:s,f=c===null?it(u,l/a):c==="auto"?l:c),{attributes:{width:u.toString(),height:f.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+a.toString()+" "+l.toString()},body:o}}const qi=/\sid="(\S+)"/g,Di="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let zi=0;function _n(e,t=Di){const n=[];let i;for(;i=qi.exec(e);)n.push(i[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(zi++).toString(),s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const H={local:!0,session:!0},yn={local:new Set,session:new Set};let ot=!1;function Bi(e){ot=e}const bn="iconify2",ie="iconify",xn=ie+"-count",wn=ie+"-version",Sn=36e5,Ki=168;function st(e,t){try{return e.getItem(t)}catch{}}function ct(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Cn(e,t){try{e.removeItem(t)}catch{}}function at(e,t){return ct(e,xn,t.toString())}function lt(e){return parseInt(st(e,xn))||0}let Ce=typeof window>"u"?{}:window;function En(e){const t=e+"Storage";try{if(Ce&&Ce[t]&&typeof Ce[t].length=="number")return Ce[t]}catch{}H[e]=!1}function An(e,t){const n=En(e);if(!n)return;const i=st(n,wn);if(i!==bn){if(i){const c=lt(n);for(let a=0;a{const a=ie+c.toString(),l=st(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Cn(n,a)}};let s=lt(n);for(let c=s-1;c>=0;c--)o(c)||(c===s-1?(s--,at(n,s)):yn[e].add(c))}function On(){if(!ot){Bi(!0);for(const e in H)An(e,t=>{const n=t.data,i=t.provider,r=n.prefix,o=j(i,r);if(!rt(o,n).length)return!1;const s=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,s):s,!0})}}function kn(e,t){switch(e){case"local":case"session":H[e]=t;break;case"all":for(const n in H)H[n]=t;break}}const ut=Object.create(null);function Tn(e,t){ut[e]=t}function ft(e){return ut[e]||ut[""]}function dt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ee=Object.create(null),oe=["https://api.simplesvg.com","https://api.unisvg.com"],Ae=[];for(;oe.length>0;)oe.length===1||Math.random()>.5?Ae.push(oe.shift()):Ae.push(oe.pop());Ee[""]=dt({resources:["https://api.iconify.design"].concat(Ae)});function In(e,t){const n=dt(t);return n===null?!1:(Ee[e]=n,!0)}function Oe(e){return Ee[e]}function Vi(){return Object.keys(Ee)}let ke=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Ui(e){ke=e}function Wi(){return ke}function Gi(e,t){const n=Oe(e);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let r=0;n.resources.forEach(s=>{r=Math.max(r,s.length)});const o=t+".json?icons=";i=n.maxURL-r-n.path.length-o.length}return i}function Qi(e){return e===404}const Zi=(e,t,n)=>{const i=[],r=Gi(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=r&&l>0&&(i.push(s),s={type:o,provider:e,prefix:t,icons:[]},c=a.length),s.icons.push(a)}),i.push(s),i};function Ji(e){if(typeof e=="string"){const t=Oe(e);if(t)return t.path}return"/"}const Yi={prepare:Zi,send:(e,t,n)=>{if(!ke){n("abort",424);return}let i=Ji(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});i+=o+".json?"+a.toString();break}case"custom":{const o=t.uri;i+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;ke(e+i).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{n(Qi(s)?"abort":"next",s)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})}};function Xi(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let i={provider:"",prefix:"",name:""};return e.forEach(r=>{if(i.name===r.name&&i.prefix===r.prefix&&i.provider===r.provider)return;i=r;const o=r.provider,s=r.prefix,c=r.name,a=n[o]||(n[o]=Object.create(null)),l=a[s]||(a[s]=j(o,s));let u;c in l.icons?u=t.loaded:s===""||l.missing.has(c)?u=t.missing:u=t.pending;const f={provider:o,prefix:s,name:c};u.push(f)}),t}function Mn(e,t){e.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(r=>r.id!==t))})}function eo(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const i=e.provider,r=e.prefix;t.forEach(o=>{const s=o.icons,c=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==r)return!0;const l=a.name;if(e.icons[l])s.loaded.push({provider:i,prefix:r,name:l});else if(e.missing.has(l))s.missing.push({provider:i,prefix:r,name:l});else return n=!0,!0;return!1}),s.pending.length!==c&&(n||Mn([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let to=0;function no(e,t,n){const i=to++,r=Mn.bind(null,n,i);if(!t.pending.length)return r;const o={id:i,icons:t,callback:e,abort:r};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),r}function ro(e,t=!0,n=!1){const i=[];return e.forEach(r=>{const o=typeof r=="string"?U(r,t,n):r;o&&i.push(o)}),i}var io={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function oo(e,t,n,i){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let b=e.resources.slice(0);for(s=[];b.length>1;){const x=Math.floor(Math.random()*b.length);s.push(b[x]),b=b.slice(0,x).concat(b.slice(x+1))}s=s.concat(b)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let a="pending",l=0,u,f=null,h=[],_=[];typeof i=="function"&&_.push(i);function m(){f&&(clearTimeout(f),f=null)}function E(){a==="pending"&&(a="aborted"),m(),h.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),h=[]}function g(b,x){x&&(_=[]),typeof b=="function"&&_.push(b)}function p(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:h.length,subscribe:g,abort:E}}function d(){a="failed",_.forEach(b=>{b(void 0,u)})}function v(){h.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),h=[]}function y(b,x,C){const L=x!=="success";switch(h=h.filter(k=>k!==b),a){case"pending":break;case"failed":if(L||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=C,d();return}if(L){u=C,h.length||(s.length?w():d());return}if(m(),v(),!e.random){const k=e.resources.indexOf(b.resource);k!==-1&&k!==e.index&&(e.index=k)}a="completed",_.forEach(k=>{k(C)})}function w(){if(a!=="pending")return;m();const b=s.shift();if(b===void 0){if(h.length){f=setTimeout(()=>{m(),a==="pending"&&(v(),d())},e.timeout);return}d();return}const x={status:"pending",resource:b,callback:(C,L)=>{y(x,C,L)}};h.push(x),l++,f=setTimeout(w,e.rotate),n(b,t,x.callback)}return setTimeout(w),p}function Ln(e){const t={...io,...e};let n=[];function i(){n=n.filter(c=>c().status==="pending")}function r(c,a,l){const u=oo(t,c,a,(f,h)=>{i(),l&&l(f,h)});return n.push(u),u}function o(c){return n.find(a=>c(a))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:i}}function jn(){}const ht=Object.create(null);function so(e){if(!ht[e]){const t=Oe(e);if(!t)return;const n=Ln(t),i={config:t,redundancy:n};ht[e]=i}return ht[e]}function Pn(e,t,n){let i,r;if(typeof e=="string"){const o=ft(e);if(!o)return n(void 0,424),jn;r=o.send;const s=so(e);s&&(i=s.redundancy)}else{const o=dt(e);if(o){i=Ln(o);const s=e.resources?e.resources[0]:"",c=ft(s);c&&(r=c.send)}}return!i||!r?(n(void 0,424),jn):i.query(t,r,n)().abort}function co(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const i in H)An(i,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function ao(e,t){ot||On();function n(i){let r;if(!H[i]||!(r=En(i)))return;const o=yn[i];let s;if(o.size)o.delete(s=Array.from(o).shift());else if(s=lt(r),!at(r,s+1))return;const c={cached:Math.floor(Date.now()/Sn),provider:e.provider,data:t};return ct(r,ie+s.toString(),JSON.stringify(c))}t.lastModified&&!co(e,t.lastModified)||!Object.keys(t.icons).length||(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Nn(){}function lo(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,eo(e)}))}function uo(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:i}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=ft(n)))return;o.prepare(n,i,r).forEach(c=>{Pn(n,c,(a,l)=>{if(typeof a!="object"){if(l!==404)return;c.icons.forEach(u=>{e.missing.add(u)})}else try{const u=rt(e,a);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(h=>{f.delete(h)}),ao(e,a)}catch(u){console.error(u)}lo(e)})})}))}const fo=e=>{const n=j(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},pt=(e,t)=>{const n=ro(e,!0,Ni()),i=Xi(n);if(!i.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(i.loaded,i.missing,i.pending,Nn)}),()=>{a=!1}}const r=Object.create(null),o=[];let s,c;return i.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===s)return;s=l,c=u,o.push(j(l,u));const f=r[l]||(r[l]=Object.create(null));f[u]||(f[u]=[])}),i.pending.forEach(a=>{const{provider:l,prefix:u,name:f}=a,h=j(l,u),_=h.pendingIcons||(h.pendingIcons=new Set);_.has(f)||(_.add(f),r[l][u].push(f))}),o.forEach(a=>{const{provider:l,prefix:u}=a;r[l][u].length&&uo(a,r[l][u])}),t?no(t,i,o):Nn},ho=e=>new Promise((t,n)=>{const i=typeof e=="string"?U(e):e;pt([i||e],r=>{if(r.length&&i){const o=re(i);if(o){t({...ee,...o});return}}n(e)})});function Fn(e,t){const n={...e};for(const i in t){const r=t[i],o=typeof r;i in mn?(r===null||r&&(o==="string"||o==="number"))&&(n[i]=r):o===typeof n[i]&&(n[i]=i==="rotate"?r%4:r)}return n}const Te={...vn,inline:!1},gt="iconify",mt="iconify-inline",N="iconifyData"+Date.now();let q=[];function se(e){for(let t=0;tdocument.documentElement})}function go(e){q=q.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function ce(){return q}function mo(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let ae=null;const vo={childList:!0,subtree:!0,attributes:!0};function $n(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,ae&&ae(e)}))}function _o(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let i=0;i0||r.type==="attributes"&&r.target[N]!==void 0){n.paused||$n(e);return}}}function Hn(e,t){e.observer.instance.observe(t,vo)}function Ie(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(_o.bind(null,e)),Hn(e,n),t.paused||$n(e))}function qn(){ce().forEach(Ie)}function Dn(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function yo(e){const t=ae!==null;if(ae!==e&&(ae=e,t&&ce().forEach(Dn)),t){qn();return}mo(qn)}function vt(e){(e?[e]:ce()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function bo(e){if(e){const t=se(e);t&&vt(t)}else vt()}function _t(e){(e?[e]:ce()).forEach(t=>{if(!t.observer){Ie(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const i=typeof t.node=="function"?t.node():t.node;if(i)n.instance?Hn(t,i):Ie(t);else return}})}function xo(e){if(e){const t=se(e);t&&_t(t)}else _t()}function zn(e,t=!1){const n=Rn(e,t);return Ie(n),n}function Bn(e){const t=se(e);t&&(Dn(t),go(e))}function wo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,i=t.customisations;for(const r in Te)if(n[r]!==i[r])return!0;return!1}function So(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function i(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:i(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?i(o):0)}}return t}const Co=/[\s,]+/;function Eo(e,t){t.split(Co).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ao=["width","height"],Oo=["inline","hFlip","vFlip"];function ko(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function To(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&U(t,!0);if(!n)return null;const i={...Te,inline:e.classList&&e.classList.contains(mt)};Ao.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(i[c]=a)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(i.rotate=So(r));const o=e.getAttribute("data-flip");typeof o=="string"&&Eo(i,o),Oo.forEach(c=>{const a="data-"+c,l=ko(e.getAttribute(a),a);typeof l=="boolean"&&(i[c]=l)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:i,mode:s}}const Io="svg."+gt+", i."+gt+", span."+gt+", i."+mt+", span."+mt;function Mo(e){const t=[];return e.querySelectorAll(Io).forEach(n=>{const i=n[N]||n.tagName.toLowerCase()!=="svg"?To(n):null;i&&t.push({node:n,props:i})}),t}function Kn(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)n+=" "+i+'="'+t[i]+'"';return'"+e+""}function Vn(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Un(e,t,n,i){const r=e.classList;if(i){const s=i.classList;Array.from(s).forEach(c=>{r.add(c)})}const o=[];return t.forEach(s=>{r.contains(s)?n.has(s)&&o.push(s):(r.add(s),o.push(s))}),n.forEach(s=>{t.has(s)||r.remove(s)}),o}function Wn(e,t,n){const i=e.style;(n||[]).forEach(o=>{i.removeProperty(o)});const r=[];for(const o in t)i.getPropertyValue(o)||(r.push(o),i.setProperty(o,t[o]));return r}function Gn(e,t,n){let i;try{i=document.createElement("span")}catch{return e}const r=t.customisations,o=Se(n,r),s=e[N],c=Kn(_n(o.body),{"aria-hidden":"true",role:"img",...o.attributes});i.innerHTML=c;const a=i.childNodes[0],l=e.attributes;for(let m=0;m/g,"%3E").replace(/\s+/g," ")}function jo(e){return'url("data:image/svg+xml,'+Lo(e)+'")'}const Po={display:"inline-block"},yt={"background-color":"currentColor"},Qn={"background-color":"transparent"},Zn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Jn={"-webkit-mask":yt,mask:yt,background:Qn};for(const e in Jn){const t=Jn[e];for(const n in Zn)t[e+"-"+n]=Zn[n]}function Yn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function No(e,t,n,i){const r=t.customisations,o=Se(n,r),s=o.attributes,c=e[N],a=Kn(o.body,{...s,width:n.width+"",height:n.height+""}),l=Vn(t.icon),u=Un(e,l,new Set(c&&c.addedClasses)),h={"--svg":jo(a),width:Yn(s.width),height:Yn(s.height),...Po,...i?yt:Qn};r.inline&&(h["vertical-align"]="-0.125em");const _=Wn(e,h,c&&c.addedStyles),m={...t,status:"loaded",addedClasses:u,addedStyles:_};return e[N]=m,e}let Me=!1;function Fo(){Me||(Me=!0,setTimeout(()=>{Me&&(Me=!1,W())}))}function W(e,t=!1){const n=Object.create(null);function i(r,o){const{provider:s,prefix:c,name:a}=r,l=j(s,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(o&&!fo(r)){const f=n[s]||(n[s]=Object.create(null));(f[c]||(f[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:ce()).forEach(r=>{const o=typeof r.node=="function"?r.node():r.node;if(!o||!o.querySelectorAll)return;let s=!1,c=!1;function a(l,u,f){if(c||(c=!0,vt(r)),l.tagName.toUpperCase()!=="SVG"){const h=u.mode,_=h==="mask"||(h==="bg"?!1:h==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof _=="boolean"){No(l,u,{...ee,...f},_);return}}Gn(l,u,f)}Mo(o).forEach(({node:l,props:u})=>{const f=l[N];if(!f){const{status:_,icon:m}=i(u.icon,!0);if(m){a(l,u,m);return}s=s||_==="loading",l[N]={...u,status:_};return}let h;if(wo(f,u)){if(h=i(u.icon,f.name!==u.name),!h.icon){s=s||h.status==="loading",Object.assign(f,{...u,status:h.status});return}}else{if(f.status!=="loading")return;if(h=i(u.icon,!1),!h.icon){f.status=h.status;return}}a(l,u,h.icon)}),r.temporary&&!s?Bn(o):t&&s?zn(o,!0):c&&r.observer&&_t(r)});for(const r in n){const o=n[r];for(const s in o){const c=o[s];pt(Array.from(c).map(a=>({provider:r,prefix:s,name:a})),Fo)}}}function Ro(e){const t=se(e);t?W(t):W({node:e,temporary:!0},!0)}function Xn(e,t,n=!1){const i=re(e);if(!i)return null;const r=U(e),o=Fn(Te,t||{}),s=Gn(document.createElement("span"),{name:e,icon:r,customisations:o},i);return n?s.outerHTML:s}function $o(){return"3.0.0"}function Ho(e,t){return Xn(e,t,!1)}function qo(e,t){return Xn(e,t,!0)}function Do(e,t){const n=re(e);if(!n)return null;const i=Fn(Te,t||{});return Se(n,i)}function zo(e){e?Ro(e):W()}if(typeof document<"u"&&typeof window<"u"){po();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!gn(i))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{yo(W),W()})}function Bo(e,t){kn(e,t!==!1)}function Ko(e){kn(e,!0)}if(Tn("",Yi),typeof document<"u"&&typeof window<"u"){On();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const i="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;In(n,r)||console.error(i)}catch{console.error(i)}}}}const bt={_api:{getAPIConfig:Oe,setAPIModule:Tn,sendAPIQuery:Pn,setFetch:Ui,getFetch:Wi,listAPIProviders:Vi},addAPIProvider:In,loadIcons:pt,loadIcon:ho,iconExists:Fi,getIcon:Ri,listIcons:Pi,addIcon:pn,addCollection:gn,replaceIDs:_n,calculateSize:it,buildIcon:Se,getVersion:$o,renderSVG:Ho,renderHTML:qo,renderIcon:Do,scan:zo,observe:zn,stopObserving:Bn,pauseObserver:bo,resumeObserver:xo,enableCache:Bo,disableCache:Ko};try{self.Iconify===void 0&&(self.Iconify=bt)}catch{}const Vo=bt.default||bt;JSON.parse('[{"prefix":"tabler","width":24,"height":24,"icons":{"arrow-left":{"body":""},"arrow-right":{"body":""},"category":{"body":""},"chevron-left":{"body":""},"chevron-right":{"body":""},"eye":{"body":""},"heart":{"body":""},"list":{"body":""},"menu-2":{"body":""},"message-circle":{"body":""},"search":{"body":""},"share":{"body":""},"stairs-up":{"body":""},"tags":{"body":""},"x":{"body":""}}},{"prefix":"ion","width":512,"height":512,"icons":{"enter":{"body":""}}},{"prefix":"gg","width":24,"height":24,"icons":{"dark-mode":{"body":""}}},{"prefix":"simple-icons","width":24,"height":24,"icons":{"bilibili":{"body":""},"feedly":{"body":""},"github":{"body":""},"telegram":{"body":""},"twitter":{"body":""},"wechat":{"body":""}}},{"prefix":"ps","width":512,"height":512,"icons":{}},{"prefix":"et","width":32,"height":32,"icons":{}},{"prefix":"el","width":1200,"height":1200,"icons":{}},{"prefix":"il","width":750,"height":850,"icons":{}},{"prefix":"ic","width":24,"height":24,"icons":{}},{"prefix":"ci","width":24,"height":24,"icons":{}}]').forEach(e=>Vo.addCollection(e));var xt=!1,wt=!1,D=[];function Uo(e){Wo(e)}function Wo(e){D.includes(e)||D.push(e),Go()}function er(e){let t=D.indexOf(e);t!==-1&&D.splice(t,1)}function Go(){!wt&&!xt&&(xt=!0,queueMicrotask(Qo))}function Qo(){xt=!1,wt=!0;for(let e=0;ee.effect(t,{scheduler:n=>{St?Uo(n):n()}}),tr=e.raw}function nr(e){le=e}function Yo(e){let t=()=>{};return[i=>{let r=le(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),Le(r))},r},()=>{t()}]}var rr=[],ir=[],or=[];function Xo(e){or.push(e)}function sr(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,ir.push(t))}function es(e){rr.push(e)}function ts(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function cr(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([n,i])=>{(t===void 0||t.includes(n))&&(i.forEach(r=>r()),delete e._x_attributeCleanups[n])})}var Ct=new MutationObserver(kt),Et=!1;function ar(){Ct.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Et=!0}function ns(){rs(),Ct.disconnect(),Et=!1}var ue=[],At=!1;function rs(){ue=ue.concat(Ct.takeRecords()),ue.length&&!At&&(At=!0,queueMicrotask(()=>{is(),At=!1}))}function is(){kt(ue),ue.length=0}function O(e){if(!Et)return e();ns();let t=e();return ar(),t}var Ot=!1,je=[];function os(){Ot=!0}function ss(){Ot=!1,kt(je),je=[]}function kt(e){if(Ot){je=je.concat(e);return}let t=[],n=[],i=new Map,r=new Map;for(let o=0;os.nodeType===1&&t.push(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&n.push(s))),e[o].type==="attributes")){let s=e[o].target,c=e[o].attributeName,a=e[o].oldValue,l=()=>{i.has(s)||i.set(s,[]),i.get(s).push({name:c,value:s.getAttribute(c)})},u=()=>{r.has(s)||r.set(s,[]),r.get(s).push(c)};s.hasAttribute(c)&&a===null?l():s.hasAttribute(c)?(u(),l()):u()}r.forEach((o,s)=>{cr(s,o)}),i.forEach((o,s)=>{rr.forEach(c=>c(s,o))});for(let o of n)if(!t.includes(o)&&(ir.forEach(s=>s(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,or.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,i=null,r=null}function lr(e){return de(Q(e))}function fe(e,t,n){return e._x_dataStack=[t,...Q(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function ur(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([i,r])=>{n[i]=r})}function Q(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Q(e.host):e.parentNode?Q(e.parentNode):[]}function de(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,i)=>e.some(r=>r.hasOwnProperty(i)),get:(n,i)=>(e.find(r=>{if(r.hasOwnProperty(i)){let o=Object.getOwnPropertyDescriptor(r,i);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let s=o.get,c=o.set,a=o;s=s&&s.bind(t),c=c&&c.bind(t),s&&(s._x_alreadyBound=!0),c&&(c._x_alreadyBound=!0),Object.defineProperty(r,i,{...a,get:s,set:c})}return!0}return!1})||{})[i],set:(n,i,r)=>{let o=e.find(s=>s.hasOwnProperty(i));return o?o[i]=r:e[e.length-1][i]=r,!0}});return t}function fr(e){let t=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([o,{value:s,enumerable:c}])=>{if(c===!1||s===void 0)return;let a=r===""?o:`${r}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?i[o]=s.initialize(e,a,o):t(s)&&s!==i&&!(s instanceof Element)&&n(s,a)})};return n(e)}function dr(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(i,r,o){return e(this.initialValue,()=>cs(i,r),s=>Tt(i,r,s),r,o)}};return t(n),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let r=n.initialize.bind(n);n.initialize=(o,s,c)=>{let a=i.initialize(o,s,c);return n.initialValue=a,r(o,s,c)}}else n.initialValue=i;return n}}function cs(e,t){return t.split(".").reduce((n,i)=>n[i],e)}function Tt(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Tt(e[t[0]],t.slice(1),n)}}var hr={};function I(e,t){hr[e]=t}function It(e,t){return Object.entries(hr).forEach(([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){let[r,o]=yr(t);return r={interceptor:dr,...r},sr(t,o),i(t,r)},enumerable:!1})}),e}function as(e,t,n,...i){try{return n(...i)}catch(r){he(r,e,t)}}function he(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} +*/const un=Object.freeze({left:0,top:0,width:16,height:16}),xe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...un,...xe}),tt=Object.freeze({...ee,body:"",hidden:!1});function ki(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(n.rotate=i),n}function fn(e,t){const n=ki(e,t);for(const i in tt)i in xe?i in e&&!(i in n)&&(n[i]=xe[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function Ti(e,t){const n=e.icons,i=e.aliases||{},r=Object.create(null);function o(s){if(n[s])return r[s]=[];if(!(s in r)){r[s]=null;const c=i[s]&&i[s].parent,a=c&&o(c);a&&(r[s]=[c].concat(a))}return r[s]}return(t||Object.keys(n).concat(Object.keys(i))).forEach(o),r}function Ii(e,t,n){const i=e.icons,r=e.aliases||{};let o={};function s(c){o=fn(i[c]||r[c],o)}return s(t),n.forEach(s),fn(e,o)}function dn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const i=Ti(e);for(const r in i){const o=i[r];o&&(t(r,Ii(e,r,o)),n.push(r))}return n}const te=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(e,t,n,i="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;i=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),a=r.pop(),l={provider:r.length>0?r[0]:i,prefix:a,name:c};return t&&!we(l)?null:l}const o=r[0],s=o.split("-");if(s.length>1){const c={provider:i,prefix:s.shift(),name:s.join("-")};return t&&!we(c)?null:c}if(n&&i===""){const c={provider:i,prefix:"",name:o};return t&&!we(c,n)?null:c}return null},we=(e,t)=>e?!!((e.provider===""||e.provider.match(te))&&(t&&e.prefix===""||e.prefix.match(te))&&e.name.match(te)):!1,Mi={provider:"",aliases:{},not_found:{},...un};function nt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function hn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!nt(e,Mi))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(te)||typeof o.body!="string"||!nt(o,tt))return null}const i=t.aliases||{};for(const r in i){const o=i[r],s=o.parent;if(!r.match(te)||typeof s!="string"||!n[s]&&!i[s]||!nt(o,tt))return null}return t}const Se=Object.create(null);function Li(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function j(e,t){const n=Se[e]||(Se[e]=Object.create(null));return n[t]||(n[t]=Li(e,t))}function rt(e,t){return hn(t)?dn(t,(n,i)=>{i?e.icons[n]=i:e.missing.add(n)}):[]}function ji(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Pi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Se)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(Se[r]||{})).forEach(s=>{const c=j(r,s);n=n.concat(Object.keys(c.icons).map(a=>(r!==""?"@"+r+":":"")+s+":"+a))})}),n}let ne=!1;function Ni(e){return typeof e=="boolean"&&(ne=e),ne}function re(e){const t=typeof e=="string"?U(e,!0,ne):e;if(t){const n=j(t.provider,t.prefix),i=t.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function pn(e,t){const n=U(e,!0,ne);if(!n)return!1;const i=j(n.provider,n.prefix);return ji(i,n.name,t)}function gn(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ne&&!t&&!e.prefix){let r=!1;return hn(e)&&(e.prefix="",dn(e,(o,s)=>{s&&pn(o,s)&&(r=!0)})),r}const n=e.prefix;if(!we({provider:t,prefix:n,name:"a"}))return!1;const i=j(t,n);return!!rt(i,e)}function Fi(e){return!!re(e)}function Ri(e){const t=re(e);return t?{...ee,...t}:null}const mn=Object.freeze({width:null,height:null}),vn=Object.freeze({...mn,...xe}),$i=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Hi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function it(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const i=e.split($i);if(i===null||!i.length)return e;const r=[];let o=i.shift(),s=Hi.test(o);for(;;){if(s){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=i.shift(),o===void 0)return r.join("");s=!s}}function Ce(e,t){const n={...ee,...e},i={...vn,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,i].forEach(_=>{const m=[],E=_.hFlip,g=_.vFlip;let p=_.rotate;E?g?p+=2:(m.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),m.push("scale(-1 1)"),r.top=r.left=0):g&&(m.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),m.push("scale(1 -1)"),r.top=r.left=0);let d;switch(p<0&&(p-=Math.floor(p/4)*4),p=p%4,p){case 1:d=r.height/2+r.top,m.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:m.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:d=r.width/2+r.left,m.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}p%2===1&&(r.left!==r.top&&(d=r.left,r.left=r.top,r.top=d),r.width!==r.height&&(d=r.width,r.width=r.height,r.height=d)),m.length&&(o=''+o+"")});const s=i.width,c=i.height,a=r.width,l=r.height;let u,f;return s===null?(f=c===null?"1em":c==="auto"?l:c,u=it(f,a/l)):(u=s==="auto"?a:s,f=c===null?it(u,l/a):c==="auto"?l:c),{attributes:{width:u.toString(),height:f.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+a.toString()+" "+l.toString()},body:o}}const qi=/\sid="(\S+)"/g,Di="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let zi=0;function _n(e,t=Di){const n=[];let i;for(;i=qi.exec(e);)n.push(i[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(zi++).toString(),s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const H={local:!0,session:!0},yn={local:new Set,session:new Set};let ot=!1;function Bi(e){ot=e}const bn="iconify2",ie="iconify",xn=ie+"-count",wn=ie+"-version",Sn=36e5,Ki=168;function st(e,t){try{return e.getItem(t)}catch{}}function ct(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Cn(e,t){try{e.removeItem(t)}catch{}}function at(e,t){return ct(e,xn,t.toString())}function lt(e){return parseInt(st(e,xn))||0}let Ee=typeof window>"u"?{}:window;function En(e){const t=e+"Storage";try{if(Ee&&Ee[t]&&typeof Ee[t].length=="number")return Ee[t]}catch{}H[e]=!1}function An(e,t){const n=En(e);if(!n)return;const i=st(n,wn);if(i!==bn){if(i){const c=lt(n);for(let a=0;a{const a=ie+c.toString(),l=st(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Cn(n,a)}};let s=lt(n);for(let c=s-1;c>=0;c--)o(c)||(c===s-1?(s--,at(n,s)):yn[e].add(c))}function On(){if(!ot){Bi(!0);for(const e in H)An(e,t=>{const n=t.data,i=t.provider,r=n.prefix,o=j(i,r);if(!rt(o,n).length)return!1;const s=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,s):s,!0})}}function kn(e,t){switch(e){case"local":case"session":H[e]=t;break;case"all":for(const n in H)H[n]=t;break}}const ut=Object.create(null);function Tn(e,t){ut[e]=t}function ft(e){return ut[e]||ut[""]}function dt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ae=Object.create(null),oe=["https://api.simplesvg.com","https://api.unisvg.com"],Oe=[];for(;oe.length>0;)oe.length===1||Math.random()>.5?Oe.push(oe.shift()):Oe.push(oe.pop());Ae[""]=dt({resources:["https://api.iconify.design"].concat(Oe)});function In(e,t){const n=dt(t);return n===null?!1:(Ae[e]=n,!0)}function ke(e){return Ae[e]}function Vi(){return Object.keys(Ae)}let Te=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Ui(e){Te=e}function Wi(){return Te}function Gi(e,t){const n=ke(e);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let r=0;n.resources.forEach(s=>{r=Math.max(r,s.length)});const o=t+".json?icons=";i=n.maxURL-r-n.path.length-o.length}return i}function Qi(e){return e===404}const Zi=(e,t,n)=>{const i=[],r=Gi(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=r&&l>0&&(i.push(s),s={type:o,provider:e,prefix:t,icons:[]},c=a.length),s.icons.push(a)}),i.push(s),i};function Ji(e){if(typeof e=="string"){const t=ke(e);if(t)return t.path}return"/"}const Yi={prepare:Zi,send:(e,t,n)=>{if(!Te){n("abort",424);return}let i=Ji(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});i+=o+".json?"+a.toString();break}case"custom":{const o=t.uri;i+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;Te(e+i).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{n(Qi(s)?"abort":"next",s)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})}};function Xi(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let i={provider:"",prefix:"",name:""};return e.forEach(r=>{if(i.name===r.name&&i.prefix===r.prefix&&i.provider===r.provider)return;i=r;const o=r.provider,s=r.prefix,c=r.name,a=n[o]||(n[o]=Object.create(null)),l=a[s]||(a[s]=j(o,s));let u;c in l.icons?u=t.loaded:s===""||l.missing.has(c)?u=t.missing:u=t.pending;const f={provider:o,prefix:s,name:c};u.push(f)}),t}function Mn(e,t){e.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(r=>r.id!==t))})}function eo(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const i=e.provider,r=e.prefix;t.forEach(o=>{const s=o.icons,c=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==r)return!0;const l=a.name;if(e.icons[l])s.loaded.push({provider:i,prefix:r,name:l});else if(e.missing.has(l))s.missing.push({provider:i,prefix:r,name:l});else return n=!0,!0;return!1}),s.pending.length!==c&&(n||Mn([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let to=0;function no(e,t,n){const i=to++,r=Mn.bind(null,n,i);if(!t.pending.length)return r;const o={id:i,icons:t,callback:e,abort:r};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),r}function ro(e,t=!0,n=!1){const i=[];return e.forEach(r=>{const o=typeof r=="string"?U(r,t,n):r;o&&i.push(o)}),i}var io={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function oo(e,t,n,i){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let s;if(e.random){let b=e.resources.slice(0);for(s=[];b.length>1;){const x=Math.floor(Math.random()*b.length);s.push(b[x]),b=b.slice(0,x).concat(b.slice(x+1))}s=s.concat(b)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let a="pending",l=0,u,f=null,h=[],_=[];typeof i=="function"&&_.push(i);function m(){f&&(clearTimeout(f),f=null)}function E(){a==="pending"&&(a="aborted"),m(),h.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),h=[]}function g(b,x){x&&(_=[]),typeof b=="function"&&_.push(b)}function p(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:h.length,subscribe:g,abort:E}}function d(){a="failed",_.forEach(b=>{b(void 0,u)})}function v(){h.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),h=[]}function y(b,x,C){const L=x!=="success";switch(h=h.filter(k=>k!==b),a){case"pending":break;case"failed":if(L||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=C,d();return}if(L){u=C,h.length||(s.length?w():d());return}if(m(),v(),!e.random){const k=e.resources.indexOf(b.resource);k!==-1&&k!==e.index&&(e.index=k)}a="completed",_.forEach(k=>{k(C)})}function w(){if(a!=="pending")return;m();const b=s.shift();if(b===void 0){if(h.length){f=setTimeout(()=>{m(),a==="pending"&&(v(),d())},e.timeout);return}d();return}const x={status:"pending",resource:b,callback:(C,L)=>{y(x,C,L)}};h.push(x),l++,f=setTimeout(w,e.rotate),n(b,t,x.callback)}return setTimeout(w),p}function Ln(e){const t={...io,...e};let n=[];function i(){n=n.filter(c=>c().status==="pending")}function r(c,a,l){const u=oo(t,c,a,(f,h)=>{i(),l&&l(f,h)});return n.push(u),u}function o(c){return n.find(a=>c(a))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:i}}function jn(){}const ht=Object.create(null);function so(e){if(!ht[e]){const t=ke(e);if(!t)return;const n=Ln(t),i={config:t,redundancy:n};ht[e]=i}return ht[e]}function Pn(e,t,n){let i,r;if(typeof e=="string"){const o=ft(e);if(!o)return n(void 0,424),jn;r=o.send;const s=so(e);s&&(i=s.redundancy)}else{const o=dt(e);if(o){i=Ln(o);const s=e.resources?e.resources[0]:"",c=ft(s);c&&(r=c.send)}}return!i||!r?(n(void 0,424),jn):i.query(t,r,n)().abort}function co(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const i in H)An(i,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function ao(e,t){ot||On();function n(i){let r;if(!H[i]||!(r=En(i)))return;const o=yn[i];let s;if(o.size)o.delete(s=Array.from(o).shift());else if(s=lt(r),!at(r,s+1))return;const c={cached:Math.floor(Date.now()/Sn),provider:e.provider,data:t};return ct(r,ie+s.toString(),JSON.stringify(c))}t.lastModified&&!co(e,t.lastModified)||!Object.keys(t.icons).length||(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Nn(){}function lo(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,eo(e)}))}function uo(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:i}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=ft(n)))return;o.prepare(n,i,r).forEach(c=>{Pn(n,c,(a,l)=>{if(typeof a!="object"){if(l!==404)return;c.icons.forEach(u=>{e.missing.add(u)})}else try{const u=rt(e,a);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(h=>{f.delete(h)}),ao(e,a)}catch(u){console.error(u)}lo(e)})})}))}const fo=e=>{const n=j(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},pt=(e,t)=>{const n=ro(e,!0,Ni()),i=Xi(n);if(!i.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(i.loaded,i.missing,i.pending,Nn)}),()=>{a=!1}}const r=Object.create(null),o=[];let s,c;return i.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===s)return;s=l,c=u,o.push(j(l,u));const f=r[l]||(r[l]=Object.create(null));f[u]||(f[u]=[])}),i.pending.forEach(a=>{const{provider:l,prefix:u,name:f}=a,h=j(l,u),_=h.pendingIcons||(h.pendingIcons=new Set);_.has(f)||(_.add(f),r[l][u].push(f))}),o.forEach(a=>{const{provider:l,prefix:u}=a;r[l][u].length&&uo(a,r[l][u])}),t?no(t,i,o):Nn},ho=e=>new Promise((t,n)=>{const i=typeof e=="string"?U(e):e;pt([i||e],r=>{if(r.length&&i){const o=re(i);if(o){t({...ee,...o});return}}n(e)})});function Fn(e,t){const n={...e};for(const i in t){const r=t[i],o=typeof r;i in mn?(r===null||r&&(o==="string"||o==="number"))&&(n[i]=r):o===typeof n[i]&&(n[i]=i==="rotate"?r%4:r)}return n}const Ie={...vn,inline:!1},gt="iconify",mt="iconify-inline",N="iconifyData"+Date.now();let q=[];function se(e){for(let t=0;tdocument.documentElement})}function go(e){q=q.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function ce(){return q}function mo(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let ae=null;const vo={childList:!0,subtree:!0,attributes:!0};function $n(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,ae&&ae(e)}))}function _o(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let i=0;i0||r.type==="attributes"&&r.target[N]!==void 0){n.paused||$n(e);return}}}function Hn(e,t){e.observer.instance.observe(t,vo)}function Me(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(_o.bind(null,e)),Hn(e,n),t.paused||$n(e))}function qn(){ce().forEach(Me)}function Dn(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function yo(e){const t=ae!==null;if(ae!==e&&(ae=e,t&&ce().forEach(Dn)),t){qn();return}mo(qn)}function vt(e){(e?[e]:ce()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function bo(e){if(e){const t=se(e);t&&vt(t)}else vt()}function _t(e){(e?[e]:ce()).forEach(t=>{if(!t.observer){Me(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const i=typeof t.node=="function"?t.node():t.node;if(i)n.instance?Hn(t,i):Me(t);else return}})}function xo(e){if(e){const t=se(e);t&&_t(t)}else _t()}function zn(e,t=!1){const n=Rn(e,t);return Me(n),n}function Bn(e){const t=se(e);t&&(Dn(t),go(e))}function wo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,i=t.customisations;for(const r in Ie)if(n[r]!==i[r])return!0;return!1}function So(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function i(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:i(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?i(o):0)}}return t}const Co=/[\s,]+/;function Eo(e,t){t.split(Co).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ao=["width","height"],Oo=["inline","hFlip","vFlip"];function ko(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function To(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&U(t,!0);if(!n)return null;const i={...Ie,inline:e.classList&&e.classList.contains(mt)};Ao.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(i[c]=a)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(i.rotate=So(r));const o=e.getAttribute("data-flip");typeof o=="string"&&Eo(i,o),Oo.forEach(c=>{const a="data-"+c,l=ko(e.getAttribute(a),a);typeof l=="boolean"&&(i[c]=l)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:i,mode:s}}const Io="svg."+gt+", i."+gt+", span."+gt+", i."+mt+", span."+mt;function Mo(e){const t=[];return e.querySelectorAll(Io).forEach(n=>{const i=n[N]||n.tagName.toLowerCase()!=="svg"?To(n):null;i&&t.push({node:n,props:i})}),t}function Kn(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)n+=" "+i+'="'+t[i]+'"';return'"+e+""}function Vn(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Un(e,t,n,i){const r=e.classList;if(i){const s=i.classList;Array.from(s).forEach(c=>{r.add(c)})}const o=[];return t.forEach(s=>{r.contains(s)?n.has(s)&&o.push(s):(r.add(s),o.push(s))}),n.forEach(s=>{t.has(s)||r.remove(s)}),o}function Wn(e,t,n){const i=e.style;(n||[]).forEach(o=>{i.removeProperty(o)});const r=[];for(const o in t)i.getPropertyValue(o)||(r.push(o),i.setProperty(o,t[o]));return r}function Gn(e,t,n){let i;try{i=document.createElement("span")}catch{return e}const r=t.customisations,o=Ce(n,r),s=e[N],c=Kn(_n(o.body),{"aria-hidden":"true",role:"img",...o.attributes});i.innerHTML=c;const a=i.childNodes[0],l=e.attributes;for(let m=0;m/g,"%3E").replace(/\s+/g," ")}function jo(e){return'url("data:image/svg+xml,'+Lo(e)+'")'}const Po={display:"inline-block"},yt={"background-color":"currentColor"},Qn={"background-color":"transparent"},Zn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Jn={"-webkit-mask":yt,mask:yt,background:Qn};for(const e in Jn){const t=Jn[e];for(const n in Zn)t[e+"-"+n]=Zn[n]}function Yn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function No(e,t,n,i){const r=t.customisations,o=Ce(n,r),s=o.attributes,c=e[N],a=Kn(o.body,{...s,width:n.width+"",height:n.height+""}),l=Vn(t.icon),u=Un(e,l,new Set(c&&c.addedClasses)),h={"--svg":jo(a),width:Yn(s.width),height:Yn(s.height),...Po,...i?yt:Qn};r.inline&&(h["vertical-align"]="-0.125em");const _=Wn(e,h,c&&c.addedStyles),m={...t,status:"loaded",addedClasses:u,addedStyles:_};return e[N]=m,e}let Le=!1;function Fo(){Le||(Le=!0,setTimeout(()=>{Le&&(Le=!1,W())}))}function W(e,t=!1){const n=Object.create(null);function i(r,o){const{provider:s,prefix:c,name:a}=r,l=j(s,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(o&&!fo(r)){const f=n[s]||(n[s]=Object.create(null));(f[c]||(f[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:ce()).forEach(r=>{const o=typeof r.node=="function"?r.node():r.node;if(!o||!o.querySelectorAll)return;let s=!1,c=!1;function a(l,u,f){if(c||(c=!0,vt(r)),l.tagName.toUpperCase()!=="SVG"){const h=u.mode,_=h==="mask"||(h==="bg"?!1:h==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof _=="boolean"){No(l,u,{...ee,...f},_);return}}Gn(l,u,f)}Mo(o).forEach(({node:l,props:u})=>{const f=l[N];if(!f){const{status:_,icon:m}=i(u.icon,!0);if(m){a(l,u,m);return}s=s||_==="loading",l[N]={...u,status:_};return}let h;if(wo(f,u)){if(h=i(u.icon,f.name!==u.name),!h.icon){s=s||h.status==="loading",Object.assign(f,{...u,status:h.status});return}}else{if(f.status!=="loading")return;if(h=i(u.icon,!1),!h.icon){f.status=h.status;return}}a(l,u,h.icon)}),r.temporary&&!s?Bn(o):t&&s?zn(o,!0):c&&r.observer&&_t(r)});for(const r in n){const o=n[r];for(const s in o){const c=o[s];pt(Array.from(c).map(a=>({provider:r,prefix:s,name:a})),Fo)}}}function Ro(e){const t=se(e);t?W(t):W({node:e,temporary:!0},!0)}function Xn(e,t,n=!1){const i=re(e);if(!i)return null;const r=U(e),o=Fn(Ie,t||{}),s=Gn(document.createElement("span"),{name:e,icon:r,customisations:o},i);return n?s.outerHTML:s}function $o(){return"3.0.0"}function Ho(e,t){return Xn(e,t,!1)}function qo(e,t){return Xn(e,t,!0)}function Do(e,t){const n=re(e);if(!n)return null;const i=Fn(Ie,t||{});return Ce(n,i)}function zo(e){e?Ro(e):W()}if(typeof document<"u"&&typeof window<"u"){po();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!gn(i))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{yo(W),W()})}function Bo(e,t){kn(e,t!==!1)}function Ko(e){kn(e,!0)}if(Tn("",Yi),typeof document<"u"&&typeof window<"u"){On();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const i="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;In(n,r)||console.error(i)}catch{console.error(i)}}}}const bt={_api:{getAPIConfig:ke,setAPIModule:Tn,sendAPIQuery:Pn,setFetch:Ui,getFetch:Wi,listAPIProviders:Vi},addAPIProvider:In,loadIcons:pt,loadIcon:ho,iconExists:Fi,getIcon:Ri,listIcons:Pi,addIcon:pn,addCollection:gn,replaceIDs:_n,calculateSize:it,buildIcon:Ce,getVersion:$o,renderSVG:Ho,renderHTML:qo,renderIcon:Do,scan:zo,observe:zn,stopObserving:Bn,pauseObserver:bo,resumeObserver:xo,enableCache:Bo,disableCache:Ko};try{self.Iconify===void 0&&(self.Iconify=bt)}catch{}const Vo=bt.default||bt;JSON.parse('[{"prefix":"tabler","width":24,"height":24,"icons":{"arrow-left":{"body":""},"arrow-right":{"body":""},"category":{"body":""},"chevron-left":{"body":""},"chevron-right":{"body":""},"eye":{"body":""},"heart":{"body":""},"list":{"body":""},"menu-2":{"body":""},"message-circle":{"body":""},"search":{"body":""},"share":{"body":""},"stairs-up":{"body":""},"tags":{"body":""},"x":{"body":""}}},{"prefix":"ion","width":512,"height":512,"icons":{"enter":{"body":""}}},{"prefix":"gg","width":24,"height":24,"icons":{"dark-mode":{"body":""}}},{"prefix":"simple-icons","width":24,"height":24,"icons":{"bilibili":{"body":""},"feedly":{"body":""},"github":{"body":""},"telegram":{"body":""},"twitter":{"body":""},"wechat":{"body":""}}},{"prefix":"ps","width":512,"height":512,"icons":{}},{"prefix":"et","width":32,"height":32,"icons":{}},{"prefix":"el","width":1200,"height":1200,"icons":{}},{"prefix":"il","width":750,"height":850,"icons":{}},{"prefix":"ic","width":24,"height":24,"icons":{}},{"prefix":"ci","width":24,"height":24,"icons":{}}]').forEach(e=>Vo.addCollection(e));var xt=!1,wt=!1,D=[];function Uo(e){Wo(e)}function Wo(e){D.includes(e)||D.push(e),Go()}function er(e){let t=D.indexOf(e);t!==-1&&D.splice(t,1)}function Go(){!wt&&!xt&&(xt=!0,queueMicrotask(Qo))}function Qo(){xt=!1,wt=!0;for(let e=0;ee.effect(t,{scheduler:n=>{St?Uo(n):n()}}),tr=e.raw}function nr(e){le=e}function Yo(e){let t=()=>{};return[i=>{let r=le(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),je(r))},r},()=>{t()}]}var rr=[],ir=[],or=[];function Xo(e){or.push(e)}function sr(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,ir.push(t))}function es(e){rr.push(e)}function ts(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function cr(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([n,i])=>{(t===void 0||t.includes(n))&&(i.forEach(r=>r()),delete e._x_attributeCleanups[n])})}var Ct=new MutationObserver(kt),Et=!1;function ar(){Ct.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Et=!0}function ns(){rs(),Ct.disconnect(),Et=!1}var ue=[],At=!1;function rs(){ue=ue.concat(Ct.takeRecords()),ue.length&&!At&&(At=!0,queueMicrotask(()=>{is(),At=!1}))}function is(){kt(ue),ue.length=0}function O(e){if(!Et)return e();ns();let t=e();return ar(),t}var Ot=!1,Pe=[];function os(){Ot=!0}function ss(){Ot=!1,kt(Pe),Pe=[]}function kt(e){if(Ot){Pe=Pe.concat(e);return}let t=[],n=[],i=new Map,r=new Map;for(let o=0;os.nodeType===1&&t.push(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&n.push(s))),e[o].type==="attributes")){let s=e[o].target,c=e[o].attributeName,a=e[o].oldValue,l=()=>{i.has(s)||i.set(s,[]),i.get(s).push({name:c,value:s.getAttribute(c)})},u=()=>{r.has(s)||r.set(s,[]),r.get(s).push(c)};s.hasAttribute(c)&&a===null?l():s.hasAttribute(c)?(u(),l()):u()}r.forEach((o,s)=>{cr(s,o)}),i.forEach((o,s)=>{rr.forEach(c=>c(s,o))});for(let o of n)if(!t.includes(o)&&(ir.forEach(s=>s(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,or.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,i=null,r=null}function lr(e){return de(Q(e))}function fe(e,t,n){return e._x_dataStack=[t,...Q(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function ur(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([i,r])=>{n[i]=r})}function Q(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Q(e.host):e.parentNode?Q(e.parentNode):[]}function de(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,i)=>e.some(r=>r.hasOwnProperty(i)),get:(n,i)=>(e.find(r=>{if(r.hasOwnProperty(i)){let o=Object.getOwnPropertyDescriptor(r,i);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let s=o.get,c=o.set,a=o;s=s&&s.bind(t),c=c&&c.bind(t),s&&(s._x_alreadyBound=!0),c&&(c._x_alreadyBound=!0),Object.defineProperty(r,i,{...a,get:s,set:c})}return!0}return!1})||{})[i],set:(n,i,r)=>{let o=e.find(s=>s.hasOwnProperty(i));return o?o[i]=r:e[e.length-1][i]=r,!0}});return t}function fr(e){let t=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([o,{value:s,enumerable:c}])=>{if(c===!1||s===void 0)return;let a=r===""?o:`${r}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?i[o]=s.initialize(e,a,o):t(s)&&s!==i&&!(s instanceof Element)&&n(s,a)})};return n(e)}function dr(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(i,r,o){return e(this.initialValue,()=>cs(i,r),s=>Tt(i,r,s),r,o)}};return t(n),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let r=n.initialize.bind(n);n.initialize=(o,s,c)=>{let a=i.initialize(o,s,c);return n.initialValue=a,r(o,s,c)}}else n.initialValue=i;return n}}function cs(e,t){return t.split(".").reduce((n,i)=>n[i],e)}function Tt(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Tt(e[t[0]],t.slice(1),n)}}var hr={};function I(e,t){hr[e]=t}function It(e,t){return Object.entries(hr).forEach(([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){let[r,o]=yr(t);return r={interceptor:dr,...r},sr(t,o),i(t,r)},enumerable:!1})}),e}function as(e,t,n,...i){try{return n(...i)}catch(r){he(r,e,t)}}function he(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?'Expression: "'+n+`" -`:""}`,t),setTimeout(()=>{throw e},0)}var Pe=!0;function ls(e){let t=Pe;Pe=!1,e(),Pe=t}function Z(e,t,n={}){let i;return T(e,t)(r=>i=r,n),i}function T(...e){return pr(...e)}var pr=gr;function us(e){pr=e}function gr(e,t){let n={};It(n,e);let i=[n,...Q(e)];if(typeof t=="function")return fs(i,t);let r=hs(i,t,e);return as.bind(null,e,t,r)}function fs(e,t){return(n=()=>{},{scope:i={},params:r=[]}={})=>{let o=t.apply(de([i,...e]),r);Ne(n,o)}}var Mt={};function ds(e,t){if(Mt[e])return Mt[e];let n=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,o=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`)}catch(s){return he(s,t,e),Promise.resolve()}})();return Mt[e]=o,o}function hs(e,t,n){let i=ds(t,n);return(r=()=>{},{scope:o={},params:s=[]}={})=>{i.result=void 0,i.finished=!1;let c=de([o,...e]);if(typeof i=="function"){let a=i(i,c).catch(l=>he(l,n,t));i.finished?(Ne(r,i.result,c,s,n),i.result=void 0):a.then(l=>{Ne(r,l,c,s,n)}).catch(l=>he(l,n,t)).finally(()=>i.result=void 0)}}}function Ne(e,t,n,i,r){if(Pe&&typeof t=="function"){let o=t.apply(n,i);o instanceof Promise?o.then(s=>Ne(e,s,n,i)).catch(s=>he(s,r,t)):e(o)}else e(t)}var Lt="x-";function J(e=""){return Lt+e}function ps(e){Lt=e}var mr={};function A(e,t){mr[e]=t}function jt(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([c,a])=>({name:c,value:a})),s=vr(o);o=o.map(c=>s.find(a=>a.name===c.name)?{name:`x-bind:${c.name}`,value:`"${c.value}"`}:c),t=t.concat(o)}let i={};return t.map(wr((o,s)=>i[o]=s)).filter(Cr).map(vs(i,n)).sort(_s).map(o=>ms(e,o))}function vr(e){return Array.from(e).map(wr()).filter(t=>!Cr(t))}var Pt=!1,pe=new Map,_r=Symbol();function gs(e){Pt=!0;let t=Symbol();_r=t,pe.set(t,[]);let n=()=>{for(;pe.get(t).length;)pe.get(t).shift()();pe.delete(t)},i=()=>{Pt=!1,n()};e(n),i()}function yr(e){let t=[],n=c=>t.push(c),[i,r]=Yo(e);return t.push(r),[{Alpine:ve,effect:i,cleanup:n,evaluateLater:T.bind(T,e),evaluate:Z.bind(Z,e)},()=>t.forEach(c=>c())]}function ms(e,t){let n=()=>{},i=mr[t.type]||n,[r,o]=yr(e);ts(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),Pt?pe.get(_r).push(i):i())};return s.runCleanups=o,s}var br=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i}),xr=e=>e;function wr(e=()=>{}){return({name:t,value:n})=>{let{name:i,value:r}=Sr.reduce((o,s)=>s(o),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var Sr=[];function Nt(e){Sr.push(e)}function Cr({name:e}){return Er().test(e)}var Er=()=>new RegExp(`^${Lt}([^:^.]+)\\b`);function vs(e,t){return({name:n,value:i})=>{let r=n.match(Er()),o=n.match(/:([a-zA-Z0-9\-:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],c=t||e[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map(a=>a.replace(".","")),expression:i,original:c}}}var Ft="DEFAULT",Fe=["ignore","ref","data","id","radio","tabs","switch","disclosure","menu","listbox","list","item","combobox","bind","init","for","mask","model","modelable","transition","show","if",Ft,"teleport"];function _s(e,t){let n=Fe.indexOf(e.type)===-1?Ft:e.type,i=Fe.indexOf(t.type)===-1?Ft:t.type;return Fe.indexOf(n)-Fe.indexOf(i)}function ge(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var Rt=[],$t=!1;function Ar(e=()=>{}){return queueMicrotask(()=>{$t||setTimeout(()=>{Ht()})}),new Promise(t=>{Rt.push(()=>{e(),t()})})}function Ht(){for($t=!1;Rt.length;)Rt.shift()()}function ys(){$t=!0}function z(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(r=>z(r,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let i=e.firstElementChild;for(;i;)z(i,t),i=i.nextElementSibling}function Y(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function bs(){document.body||Y("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `