(()=>{var ie=Object.create;var ft=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty;var le=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var ue=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of se(e))!ae.call(t,o)&&o!==n&&ft(t,o,{get:()=>e[o],enumerable:!(i=re(e,o))||i.enumerable});return t};var de=(t,e,n)=>(n=t!=null?ie(ce(t)):{},ue(e||!t||!t.__esModule?ft(n,"default",{value:t,enumerable:!0}):n,t));var Lt=Object.freeze({left:0,top:0,width:16,height:16}),q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),O=Object.freeze({...Lt,...q}),K=Object.freeze({...O,body:"",hidden:!1}),fe=Object.freeze({width:null,height:null}),Et=Object.freeze({...fe,...q});function he(t,e=0){let n=t.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(n===""){let o=parseInt(t);return isNaN(o)?0:i(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?i(r):0)}}return e}var pe=/[\s,]+/;function ge(t,e){e.split(pe).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var Tt={...Et,preserveAspectRatio:""};function ht(t){let e={...Tt},n=(i,o)=>t.getAttribute(i)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=he(n("rotate","")),ge(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function me(t,e){for(let n in Tt)if(t[n]!==e[n])return!0;return!1}var Ot=/^[a-z0-9]+(-[a-z0-9]+)*$/,j=(t,e,n,i="")=>{let o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let s=o.pop(),a=o.pop(),l={provider:o.length>0?o[0]:i,prefix:a,name:s};return e&&!N(l)?null:l}let r=o[0],c=r.split("-");if(c.length>1){let s={provider:i,prefix:c.shift(),name:c.join("-")};return e&&!N(s)?null:s}if(n&&i===""){let s={provider:i,prefix:"",name:r};return e&&!N(s,n)?null:s}return null},N=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function be(t,e){let n=t.icons,i=t.aliases||Object.create(null),o=Object.create(null);function r(c){if(n[c])return o[c]=[];if(!(c in o)){o[c]=null;let s=i[c]&&i[c].parent,a=s&&r(s);a&&(o[c]=[s].concat(a))}return o[c]}return Object.keys(n).concat(Object.keys(i)).forEach(r),o}function ye(t,e){let n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);let i=((t.rotate||0)+(e.rotate||0))%4;return i&&(n.rotate=i),n}function pt(t,e){let n=ye(t,e);for(let i in K)i in q?i in t&&!(i in n)&&(n[i]=q[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function ve(t,e,n){let i=t.icons,o=t.aliases||Object.create(null),r={};function c(s){r=pt(i[s]||o[s],r)}return c(e),n.forEach(c),pt(t,r)}function jt(t,e){let n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});let i=be(t);for(let o in i){let r=i[o];r&&(e(o,ve(t,o,r)),n.push(o))}return n}var we={provider:"",aliases:{},not_found:{},...Lt};function J(t,e){for(let n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Pt(t){if(typeof t!="object"||t===null)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!J(t,we))return null;let n=e.icons;for(let o in n){let r=n[o];if(!o||typeof r.body!="string"||!J(r,K))return null}let i=e.aliases||Object.create(null);for(let o in i){let r=i[o],c=r.parent;if(!o||typeof c!="string"||!n[c]&&!i[c]||!J(r,K))return null}return e}var R=Object.create(null);function xe(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function v(t,e){let n=R[t]||(R[t]=Object.create(null));return n[e]||(n[e]=xe(t,e))}function Nt(t,e){return Pt(e)?jt(e,(n,i)=>{i?t.icons[n]=i:t.missing.add(n)}):[]}function Ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function Se(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys(R)).forEach(i=>{(typeof i=="string"&&typeof e=="string"?[e]:Object.keys(R[i]||{})).forEach(o=>{let r=v(i,o);n=n.concat(Object.keys(r.icons).map(c=>(i!==""?"@"+i+":":"")+o+":"+c))})}),n}var E=!1;function Mt(t){return typeof t=="boolean"&&(E=t),E}function T(t){let e=typeof t=="string"?j(t,!0,E):t;if(e){let n=v(e.provider,e.prefix),i=e.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function qt(t,e){let n=j(t,!0,E);if(!n)return!1;let i=v(n.provider,n.prefix);return e?Ie(i,n.name,e):(i.missing.add(n.name),!0)}function gt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),E&&!e&&!t.prefix){let i=!1;return Pt(t)&&(t.prefix="",jt(t,(o,r)=>{qt(o,r)&&(i=!0)})),i}let n=t.prefix;return N({prefix:n,name:"a"})?!!Nt(v(e,n),t):!1}function Ae(t){return!!T(t)}function ke(t){let e=T(t);return e&&{...O,...e}}function Rt(t,e){t.forEach(n=>{let i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(o=>o.id!==e))})}function Ce(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1,i=t.provider,o=t.prefix;e.forEach(r=>{let c=r.icons,s=c.pending.length;c.pending=c.pending.filter(a=>{if(a.prefix!==o)return!0;let l=a.name;if(t.icons[l])c.loaded.push({provider:i,prefix:o,name:l});else if(t.missing.has(l))c.missing.push({provider:i,prefix:o,name:l});else return n=!0,!0;return!1}),c.pending.length!==s&&(n||Rt([t],r.id),r.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),r.abort))})}))}var _e=0;function Le(t,e,n){let i=_e++,o=Rt.bind(null,n,i);if(!e.pending.length)return o;let r={id:i,icons:e,callback:t,abort:o};return n.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(r)}),o}function Ee(t){let e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let i={provider:"",prefix:"",name:""};return t.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;let r=o.provider,c=o.prefix,s=o.name,a=n[r]||(n[r]=Object.create(null)),l=a[c]||(a[c]=v(r,c)),u;s in l.icons?u=e.loaded:c===""||l.missing.has(s)?u=e.missing:u=e.pending;let f={provider:r,prefix:c,name:s};u.push(f)}),e}var X=Object.create(null);function mt(t,e){X[t]=e}function Z(t){return X[t]||X[""]}function Te(t,e=!0,n=!1){let i=[];return t.forEach(o=>{let r=typeof o=="string"?j(o,e,n):o;r&&i.push(r)}),i}function ot(t){let e;if(typeof t.resources=="string")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:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}var D=Object.create(null),C=["https://api.simplesvg.com","https://api.unisvg.com"],M=[];for(;C.length>0;)C.length===1||Math.random()>.5?M.push(C.shift()):M.push(C.pop());D[""]=ot({resources:["https://api.iconify.design"].concat(M)});function bt(t,e){let n=ot(e);return n===null?!1:(D[t]=n,!0)}function B(t){return D[t]}function Oe(){return Object.keys(D)}var je={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Pe(t,e,n,i){let o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index,c;if(t.random){let d=t.resources.slice(0);for(c=[];d.length>1;){let b=Math.floor(Math.random()*d.length);c.push(d[b]),d=d.slice(0,b).concat(d.slice(b+1))}c=c.concat(d)}else c=t.resources.slice(r).concat(t.resources.slice(0,r));let s=Date.now(),a="pending",l=0,u,f=null,h=[],g=[];typeof i=="function"&&g.push(i);function w(){f&&(clearTimeout(f),f=null)}function x(){a==="pending"&&(a="aborted"),w(),h.forEach(d=>{d.status==="pending"&&(d.status="aborted")}),h=[]}function p(d,b){b&&(g=[]),typeof d=="function"&&g.push(d)}function z(){return{startTime:s,payload:e,status:a,queriesSent:l,queriesPending:h.length,subscribe:p,abort:x}}function I(){a="failed",g.forEach(d=>{d(void 0,u)})}function y(){h.forEach(d=>{d.status==="pending"&&(d.status="aborted")}),h=[]}function m(d,b,k){let P=b!=="success";switch(h=h.filter(S=>S!==d),a){case"pending":break;case"failed":if(P||!t.dataAfterTimeout)return;break;default:return}if(b==="abort"){u=k,I();return}if(P){u=k,h.length||(c.length?G():I());return}if(w(),y(),!t.random){let S=t.resources.indexOf(d.resource);S!==-1&&S!==t.index&&(t.index=S)}a="completed",g.forEach(S=>{S(k)})}function G(){if(a!=="pending")return;w();let d=c.shift();if(d===void 0){if(h.length){f=setTimeout(()=>{w(),a==="pending"&&(y(),I())},t.timeout);return}I();return}let b={status:"pending",resource:d,callback:(k,P)=>{m(b,k,P)}};h.push(b),l++,f=setTimeout(G,t.rotate),n(d,e,b.callback)}return setTimeout(G),z}function Ft(t){let e={...je,...t},n=[];function i(){n=n.filter(c=>c().status==="pending")}function o(c,s,a){let l=Pe(e,c,s,(u,f)=>{i(),a&&a(u,f)});return n.push(l),l}function r(c){return n.find(s=>c(s))||null}return{query:o,find:r,setIndex:c=>{e.index=c},getIndex:()=>e.index,cleanup:i}}function yt(){}var Y=Object.create(null);function Ne(t){if(!Y[t]){let e=B(t);if(!e)return;Y[t]={config:e,redundancy:Ft(e)}}return Y[t]}function Dt(t,e,n){let i,o;if(typeof t=="string"){let r=Z(t);if(!r)return n(void 0,424),yt;o=r.send;let c=Ne(t);c&&(i=c.redundancy)}else{let r=ot(t);if(r){i=Ft(r);let c=Z(t.resources?t.resources[0]:"");c&&(o=c.send)}}return!i||!o?(n(void 0,424),yt):i.query(e,o,n)().abort}function vt(){}function Me(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Ce(t)}))}function qe(t){let e=[],n=[];return t.forEach(i=>{(i.match(Ot)?e:n).push(i)}),{valid:e,invalid:n}}function _(t,e,n){function i(){let o=t.pendingIcons;e.forEach(r=>{o&&o.delete(r),t.icons[r]||t.missing.add(r)})}if(n&&typeof n=="object")try{if(!Nt(t,n).length){i();return}}catch(o){console.error(o)}i(),Me(t)}function wt(t,e){t instanceof Promise?t.then(n=>{e(n)}).catch(()=>{e(null)}):e(t)}function Re(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:n,prefix:i}=t,o=t.iconsToLoad;if(delete t.iconsToLoad,!o||!o.length)return;let r=t.loadIcon;if(t.loadIcons&&(o.length>1||!r)){wt(t.loadIcons(o,i,n),l=>{_(t,o,l)});return}if(r){o.forEach(l=>{wt(r(l,i,n),u=>{_(t,[l],u?{prefix:i,icons:{[l]:u}}:null)})});return}let{valid:c,invalid:s}=qe(o);if(s.length&&_(t,s,null),!c.length)return;let a=i.match(Ot)?Z(n):null;if(!a){_(t,c,null);return}a.prepare(n,i,c).forEach(l=>{Dt(n,l,u=>{_(t,l.icons,u)})})}))}var it=(t,e)=>{let n=Ee(Te(t,!0,Mt()));if(!n.pending.length){let s=!0;return e&&setTimeout(()=>{s&&e(n.loaded,n.missing,n.pending,vt)}),()=>{s=!1}}let i=Object.create(null),o=[],r,c;return n.pending.forEach(s=>{let{provider:a,prefix:l}=s;if(l===c&&a===r)return;r=a,c=l,o.push(v(a,l));let u=i[a]||(i[a]=Object.create(null));u[l]||(u[l]=[])}),n.pending.forEach(s=>{let{provider:a,prefix:l,name:u}=s,f=v(a,l),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(u)||(h.add(u),i[a][l].push(u))}),o.forEach(s=>{let a=i[s.provider][s.prefix];a.length&&Re(s,a)}),e?Le(e,n,o):vt},Fe=t=>new Promise((e,n)=>{let i=typeof t=="string"?j(t,!0):t;if(!i){n(t);return}it([i||t],o=>{if(o.length&&i){let r=T(i);if(r){e({...O,...r});return}}n(t)})});function xt(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function De(t,e){if(typeof t=="object")return{data:xt(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let r=xt(t);if(r)return{data:r,value:t}}let n=j(t,!0,!0);if(!n)return{value:t};let i=T(n);if(i!==void 0||!n.prefix)return{value:t,name:n,data:i};let o=it([n],()=>e(t,n,T(n)));return{value:t,name:n,loading:o}}var Bt=!1;try{Bt=navigator.vendor.indexOf("Apple")===0}catch{}function Be(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Bt||t.indexOf("=0;){let o=t.indexOf(">",i),r=t.indexOf(""+e);if(o===-1||r===-1)break;let c=t.indexOf(">",r);if(c===-1)break;n+=t.slice(o+1,r).trim(),t=t.slice(0,i).trim()+t.slice(c+1)}return{defs:n,content:t}}function Ue(t,e){return t?""+t+""+e:e}function Ve(t,e,n){let i=Qe(t);return Ue(i.defs,e+i.content+n)}var ze=t=>t==="unset"||t==="undefined"||t==="none";function Ht(t,e){let n={...O,...t},i={...Et,...e},o={left:n.left,top:n.top,width:n.width,height:n.height},r=n.body;[n,i].forEach(x=>{let p=[],z=x.hFlip,I=x.vFlip,y=x.rotate;z?I?y+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):I&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let m;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:m=o.height/2+o.top,p.unshift("rotate(90 "+m.toString()+" "+m.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:m=o.width/2+o.left,p.unshift("rotate(-90 "+m.toString()+" "+m.toString()+")");break}y%2===1&&(o.left!==o.top&&(m=o.left,o.left=o.top,o.top=m),o.width!==o.height&&(m=o.width,o.width=o.height,o.height=m)),p.length&&(r=Ve(r,'',""))});let c=i.width,s=i.height,a=o.width,l=o.height,u,f;c===null?(f=s===null?"1em":s==="auto"?l:s,u=tt(f,a/l)):(u=c==="auto"?a:c,f=s===null?tt(u,l/a):s==="auto"?l:s);let h={},g=(x,p)=>{ze(p)||(h[x]=p.toString())};g("width",u),g("height",f);let w=[o.left,o.top,a,l];return h.viewBox=w.join(" "),{attributes:h,viewBox:w,body:r}}function rt(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in e)n+=" "+i+'="'+e[i]+'"';return'"}function Ge(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Je(t){return"data:image/svg+xml,"+Ge(t)}function $t(t){return'url("'+Je(t)+'")'}var Ye=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}},F=Ye();function We(t){F=t}function Ke(){return F}function Xe(t,e){let n=B(t);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let o=0;n.resources.forEach(c=>{o=Math.max(o,c.length)});let r=e+".json?icons=";i=n.maxURL-o-n.path.length-r.length}return i}function Ze(t){return t===404}var tn=(t,e,n)=>{let i=[],o=Xe(t,e),r="icons",c={type:r,provider:t,prefix:e,icons:[]},s=0;return n.forEach((a,l)=>{s+=a.length+1,s>=o&&l>0&&(i.push(c),c={type:r,provider:t,prefix:e,icons:[]},s=a.length),c.icons.push(a)}),i.push(c),i};function en(t){if(typeof t=="string"){let e=B(t);if(e)return e.path}return"/"}var nn=(t,e,n)=>{if(!F){n("abort",424);return}let i=en(e.provider);switch(e.type){case"icons":{let r=e.prefix,c=e.icons.join(","),s=new URLSearchParams({icons:c});i+=r+".json?"+s.toString();break}case"custom":{let r=e.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;F(t+i).then(r=>{let c=r.status;if(c!==200){setTimeout(()=>{n(Ze(c)?"abort":"next",c)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},on={prepare:tn,send:nn};function rn(t,e,n){v(n||"",e).loadIcons=t}function sn(t,e,n){v(n||"",e).loadIcon=t}var W="data-style",Qt="";function cn(t){Qt=t}function It(t,e){let n=Array.from(t.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(W));n||(n=document.createElement("style"),n.setAttribute(W,W),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Qt}function Ut(){mt("",on),Mt(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let n=t.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!gt(o))&&console.error(i)}catch{console.error(i)}})}if(t.IconifyProviders!==void 0){let n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(let i in n){let o="IconifyProviders["+i+"] is invalid.";try{let r=n[i];if(typeof r!="object"||!r||r.resources===void 0)continue;bt(i,r)||console.error(o)}catch{console.error(o)}}}}return{iconLoaded:Ae,getIcon:ke,listIcons:Se,addIcon:qt,addCollection:gt,calculateSize:tt,buildIcon:Ht,iconToHTML:rt,svgToURL:$t,loadIcons:it,loadIcon:Fe,addAPIProvider:bt,setCustomIconLoader:sn,setCustomIconsLoader:rn,appendCustomStyle:cn,_api:{getAPIConfig:B,setAPIModule:mt,sendAPIQuery:Dt,setFetch:We,getFetch:Ke,listAPIProviders:Oe}}}var et={"background-color":"currentColor"},Vt={"background-color":"transparent"},St={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},At={"-webkit-mask":et,mask:et,background:Vt};for(let t in At){let e=At[t];for(let n in St)e[t+"-"+n]=St[n]}function kt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function an(t,e,n){let i=document.createElement("span"),o=t.body;o.indexOf("");let r=t.attributes,c=rt(o,{...r,width:e.width+"",height:e.height+""}),s=$t(c),a=i.style,l={"--svg":s,width:kt(r.width),height:kt(r.height),...n?et:Vt};for(let u in l)a.setProperty(u,l[u]);return i}var L;function ln(){try{L=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{L=null}}function un(t){return L===void 0&&ln(),L?L.createHTML(t):t}function dn(t){let e=document.createElement("span"),n=t.attributes,i="";n.width||(i="width: inherit;"),n.height||(i+="height: inherit;"),i&&(n.style=i);let o=rt(t.body,n);return e.innerHTML=un(o),e.firstChild}function nt(t){return Array.from(t.childNodes).find(e=>{let n=e.tagName&&e.tagName.toUpperCase();return n==="SPAN"||n==="SVG"})}function Ct(t,e){let n=e.icon.data,i=e.customisations,o=Ht(n,i);i.preserveAspectRatio&&(o.attributes.preserveAspectRatio=i.preserveAspectRatio);let r=e.renderedMode,c;switch(r){case"svg":c=dn(o);break;default:c=an(o,{...O,...n},r==="mask")}let s=nt(t);s?c.tagName==="SPAN"&&s.tagName===c.tagName?s.setAttribute("style",c.getAttribute("style")):t.replaceChild(c,s):t.appendChild(c)}function _t(t,e,n){let i=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:i}}function fn(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;let i=e.get(t);if(i)return i;let o=["icon","mode","inline","noobserver","width","height","rotate","flip"],r=class extends n{_shadowRoot;_initialised=!1;_state;_checkQueued=!1;_connected=!1;_observer=null;_visible=!0;constructor(){super();let s=this._shadowRoot=this.attachShadow({mode:"open"}),a=this.hasAttribute("inline");It(s,a),this._state=_t({value:""},a),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){switch(s){case"inline":{let a=this.hasAttribute("inline"),l=this._state;a!==l.inline&&(l.inline=a,It(this._shadowRoot,a));break}case"noobserver":{this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break}default:this._queueCheck()}}get icon(){let s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return this.hasAttribute("inline")}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(s){s?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let s=this._state;if(s.rendered){let a=this._shadowRoot;if(s.renderedMode==="svg")try{a.lastChild.setCurrentTime(0);return}catch{}Ct(a,s)}}get status(){let s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let s=this._state,a=this.getAttribute("icon");if(a!==s.icon.value){this._iconChanged(a);return}if(!s.rendered||!this._visible)return;let l=this.getAttribute("mode"),u=ht(this);(s.attrMode!==l||me(s.customisations,u)||!nt(this._shadowRoot))&&this._renderIcon(s.icon,u,l)}_iconChanged(s){let a=De(s,(l,u,f)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==l)return;let g={value:l,name:u,data:f};g.data?this._gotIconData(g):h.icon=g});a.data?this._gotIconData(a):this._state=_t(a,this._state.inline,this._state)}_forceRender(){if(!this._visible){let s=nt(this._shadowRoot);s&&this._shadowRoot.removeChild(s);return}this._queueCheck()}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,ht(this),this.getAttribute("mode"))}_renderIcon(s,a,l){let u=Be(s.data.body,l),f=this._state.inline;Ct(this._shadowRoot,this._state={rendered:!0,icon:s,inline:f,customisations:a,attrMode:l,renderedMode:u})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(s=>{let a=s.some(l=>l.isIntersecting);a!==this._visible&&(this._visible=a,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};o.forEach(s=>{s in r.prototype||Object.defineProperty(r.prototype,s,{get:function(){return this.getAttribute(s)},set:function(a){a!==null?this.setAttribute(s,a):this.removeAttribute(s)}})});let c=Ut();for(let s in c)r[s]=r.prototype[s]=c[s];return e.define(t,r),r}var hn=fn()||Ut(),{iconLoaded:jn,getIcon:Pn,listIcons:Nn,addIcon:Mn,addCollection:qn,calculateSize:Rn,buildIcon:Fn,iconToHTML:Dn,svgToURL:Bn,loadIcons:Hn,loadIcon:$n,setCustomIconLoader:Qn,setCustomIconsLoader:Un,addAPIProvider:Vn,_api:zn}=hn;function pn(t){let e=t.getAttribute("aria-controls"),n=document.getElementById(e);n&&(n.addEventListener("click",i=>{i.stopPropagation()}),t.addEventListener("click",i=>{i.stopPropagation();let o=Gt(),r=o.indexOf(e);n.getAttribute("aria-hidden")==="false"?(o.splice(r,1),document.body.setAttribute("data-expanded",o.join(" ")),n.setAttribute("aria-hidden","true"),st(e,"false")):(o.push(e),document.body.setAttribute("data-expanded",o.join(" ")),n.setAttribute("aria-hidden","false"),st(e,"true"))}))}function st(t,e){let n=document.querySelectorAll('[aria-controls="'+t+'"]');for(let i=0;i{let t=Gt();document.body.setAttribute("data-expanded",""),t.forEach(e=>{document.getElementById(e).setAttribute("aria-hidden","true"),st(e,"false")})});var Jt=new Map;function gn(t){t.addEventListener("click",()=>{let e=t.querySelector("i");e.setAttribute("data-icon","loader");let n=t.getAttribute("data-url");n?mn(e,n):bn(e)})}function mn(t,e){let n=Jt.get(e);if(n){navigator.clipboard.writeText(n),ct(t);return}navigator.clipboard.write([new ClipboardItem({"text/plain":fetch(e).then(i=>i.text()).then(i=>(Jt.set(e,i),ct(t),i))})]).catch(()=>{t.setAttribute("data-icon","copy")})}function bn(t){import("https://esm.sh/turndown").then(e=>{let n=new e.default({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});return n.addRule("highlight",{filter:i=>i.nodeName==="DIV"&&i.classList.contains("highlight"),replacement:function(i,o){let r=Yt(o.parentNode.className),c="```";return r&&(c+=r),c+`
`+o.textContent.trim()+"\n```"}}),n.addRule("literal-block-wrapper",{filter:i=>i.nodeName==="DIV"&&i.classList.contains("literal-block-wrapper")&&i.querySelector(".highlight"),replacement:function(i,o){let r=o.querySelector(".highlight"),c=Yt(r.parentNode.className),s="```";if(c){let a=o.querySelector(".caption-text");s+=c,a&&(s+=' "'+a.textContent.trim()+'"')}return s+`
`+r.textContent+"\n```"}}),n}).then(e=>{let n=document.querySelector(".yue").cloneNode(!0),i=e.turndown(yn(n));return navigator.clipboard.writeText(i)}).then(()=>{ct(t)})}function ct(t){t.setAttribute("data-icon","check"),setTimeout(()=>{t.setAttribute("data-icon","copy")},500)}function yn(t){return t.querySelectorAll(".headerlink").forEach(e=>{e.remove()}),t.querySelectorAll(".copybtn").forEach(e=>{e.remove()}),t.querySelectorAll("span.linenos").forEach(e=>{e.remove()}),t.innerHTML}function Yt(t){let e=t.match(/highlight-(\S+)/);if(e)return e[1]}var Wt=document.querySelectorAll(".js-copy");for(let t=0;t{H.parentNode.removeChild(H),document.head.removeChild(t)}),e(),window.addEventListener("resize",e)}var wn;var $=["auto","light","dark"],Q=document.querySelector(".js-theme");function xn(){let t=Xt();t+=1,$[t]||(t=0);let e=$[t];setColorMode(e),localStorage._theme=e,Zt(e)}function Kt(){return document.documentElement.getAttribute("data-color-mode")||"auto"}function Xt(){return $.indexOf(Kt())}function Zt(t){let e=Q.getAttribute("data-aria-"+t);Q.setAttribute("aria-label",e)}Q&&(Q.addEventListener("click",xn),Zt($[Xt()]||"auto"));window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{Kt()==="auto"&&setColorMode("auto")});function In(){let t=document.querySelector(".globaltoc");if(!t)return;let e=parseInt(t.getAttribute("data-expand-depth"),10),n=o=>{if(!e)return!1;let r=0;for(;o.parentNode&&o.parentNode!==t;)o=o.parentNode,o.nodeName==="UL"&&(r+=1);return e>=r};t.querySelectorAll("li > ul").forEach(o=>{let r=o.parentNode;r.classList.contains("current")||n(r)?r.classList.add("_expand"):r.classList.add("_collapse");let c=Sn(o);r.appendChild(c)})}function Sn(t){let e=document.createElement("button");e.innerHTML='';let n=t.parentNode,i=t.previousSibling,o=i.textContent,r=()=>{n.classList.contains("_expand")?e.setAttribute("aria-label","Collapse "+o):e.setAttribute("aria-label","Expand "+o)};r();let c=s=>{s.preventDefault(),n.classList.contains("_expand")?(n.classList.remove("_expand"),n.classList.add("_collapse")):(n.classList.remove("_collapse"),n.classList.add("_expand")),r()};return i.getAttribute("href")==="#"&&i.addEventListener("click",c),e.addEventListener("click",c),e}var at=document.querySelector(".globaltoc a.current");at&&at.scrollIntoViewIfNeeded&&at.scrollIntoViewIfNeeded();In();var te=0,lt=200,U=document.querySelectorAll(".yue > section section[id]"),A=document.querySelector(".back-to-top");function ee(){let t=document.querySelector(".yue > section");t&&(lt=t.computedStyleMap().get("scroll-margin-top").value)}function An(t){let e=t.getBoundingClientRect();return e.top<=lt&&e.bottom>=lt}function ne(t){document.querySelectorAll(".localtoc li.active").forEach(e=>{e.classList.remove("active")}),document.querySelector(`.localtoc a[href="#${t}"]`).parentNode.classList.add("active")}function oe(){let t;for(let e=0;e=document.body.offsetHeight){let t=U[U.length-1];t&&ne(t.id)}else oe();A&&(window.scrollY&&window.scrollY{window.scrollTo(0,0)});document.querySelector(".localtoc")&&(window.addEventListener("scroll",kn),window.addEventListener("DOMContentLoaded",()=>{ee(),oe()}),window.addEventListener("resize",ee));var V=document.querySelector(".js-repo-stats");async function Cn(t,e){let n=`https://api.github.com/repos/${t}/${e}`,o=await(await fetch(n)).json(),r={stars:o.watchers,forks:o.forks};ut(r),sessionStorage.setItem("_sy/repo/stats",JSON.stringify(r))}async function _n(t,e){let n="https://gitlab.com/api/v4/projects/"+encodeURIComponent(t+"/"+e),o=await(await fetch(n)).json(),r={stars:o.star_count,forks:o.forks_count};ut(r),sessionStorage.setItem("_sy/repo/stats",JSON.stringify(r))}function ut({stars:t,forks:e}){t&&(document.querySelector(".js-repo-stars").textContent=t),e&&(document.querySelector(".js-repo-forks").textContent=e)}function Ln(){let t=sessionStorage.getItem("_sy/repo/stats");if(t)ut(JSON.parse(t));else{let e=V.getAttribute("data-user"),n=V.getAttribute("data-repo"),i=V.getAttribute("data-type");i==="github"?Cn(e,n):i==="gitlab"&&_n(e,n)}}V&&Ln();function En(t,e){let n=document.createElement("script");n.id="_carbonads_js",n.src=`//cdn.carbonads.com/carbon.js?serve=${t}&placement=${e}`;let i=document.querySelector(".yue > section"),o=document.querySelector(".yue > section > section");if(o)i.insertBefore(n,o);else{let r=document.querySelector(".yue > section > p");r?i.insertBefore(n,r.nextSibling):i.appendChild(n)}}var dt=document.querySelector(".js-carbon");if(dt){let t=dt.getAttribute("data-carbon-code"),e=dt.getAttribute("data-carbon-placement");t&&e&&En(t,e)}var Tn=`
:host > div .results .hit h2 {
color: var(--sy-c-heading);
margin-bottom: 0;
border-bottom: 0;
font-weight: 600;
}
:host > div .results .hit .hit-block .content {
color: var(--sy-c-text);
}
:host > div .results .hit-block a.hit:hover, :host > div .results .hit-block .hit.active {
background-color: var(--gray-5);
border-radius: 4px;
}
:host > div div.hit-block a.hit-block-heading:hover {
text-decoration: underline;
}
:host > div div.hit-block a.hit-block-heading i,
:host > div div.hit-block .hit-block-heading-container .close-icon {
color: var(--sy-c-light);
margin-bottom: 0;
display: flex;
}
`;document.addEventListener("readthedocs-addons-data-ready",function(t){document.querySelector(".searchbox input").addEventListener("focusin",()=>{let e=new CustomEvent("readthedocs-search-show");document.dispatchEvent(e)}),setTimeout(()=>{let e=document.querySelector("readthedocs-search");if(e){let n=document.createElement("style");n.textContent=Tn,e.shadowRoot.appendChild(n)}},1e3)});/windows/i.test(navigator.userAgent)&&document.body.classList.add("win");})();
/*! Bundled license information:
iconify-icon/dist/iconify-icon.mjs:
(**
* (c) Iconify
*
* For the full copyright and license information, please view the license.txt
* files at https://github.com/iconify/iconify
*
* Licensed under MIT.
*
* @license MIT
* @version 3.0.2
*)
*/