From a335cf4a0e3496fe3a33dbe864d33dc0de7c66d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=90=BC=E7=92=9E?= Date: Mon, 27 Nov 2023 13:19:33 +0800 Subject: [PATCH] =?UTF-8?q?deploy=20update=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{About-rr_Y-DhJ.js => About-JATCPoHG.js} | 2 +- assets/{index-0NGg478C.js => index-LaATGtxH.js} | 10 +++++----- assets/{index-h8Jsoajv.css => index-_CNL_Jzh.css} | 2 +- index.html | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) rename assets/{About-rr_Y-DhJ.js => About-JATCPoHG.js} (71%) rename assets/{index-0NGg478C.js => index-LaATGtxH.js} (96%) rename assets/{index-h8Jsoajv.css => index-_CNL_Jzh.css} (59%) diff --git a/assets/About-rr_Y-DhJ.js b/assets/About-JATCPoHG.js similarity index 71% rename from assets/About-rr_Y-DhJ.js rename to assets/About-JATCPoHG.js index a606def..ea436f8 100644 --- a/assets/About-rr_Y-DhJ.js +++ b/assets/About-JATCPoHG.js @@ -1 +1 @@ -import{_ as e,o,c as s,a as t}from"./index-0NGg478C.js";const c={},a={class:"about"},n=t("h1",null,"This is an about page",-1),_=[n];function r(i,d){return o(),s("div",a,_)}const u=e(c,[["render",r]]);export{u as default}; +import{_ as e,o,c as s,a as t}from"./index-LaATGtxH.js";const c={},a={class:"about"},n=t("h1",null,"This is an about page",-1),_=[n];function r(i,d){return o(),s("div",a,_)}const u=e(c,[["render",r]]);export{u as default}; diff --git a/assets/index-0NGg478C.js b/assets/index-LaATGtxH.js similarity index 96% rename from assets/index-0NGg478C.js rename to assets/index-LaATGtxH.js index 17702fc..96221a3 100644 --- a/assets/index-0NGg478C.js +++ b/assets/index-LaATGtxH.js @@ -6,7 +6,7 @@ * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const sr=typeof window<"u";function $h(A){return A.__esModule||A[Symbol.toStringTag]==="Module"}const CA=Object.assign;function vi(A,e){const t={};for(const r in e){const n=e[r];t[r]=Ke(n)?n.map(A):A(n)}return t}const zr=()=>{},Ke=Array.isArray,Jh=/\/$/,Wh=A=>A.replace(Jh,"");function mi(A,e,t="/"){let r,n={},s="",i="";const o=e.indexOf("#");let a=e.indexOf("?");return o=0&&(a=-1),a>-1&&(r=e.slice(0,a),s=e.slice(a+1,o>-1?o:e.length),n=A(s)),o>-1&&(r=r||e.slice(0,o),i=e.slice(o,e.length)),r=zh(r??e,t),{fullPath:r+(s&&"?")+s+i,path:r,query:n,hash:i}}function Yh(A,e){const t=e.query?A(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function ml(A,e){return!e||!A.toLowerCase().startsWith(e.toLowerCase())?A:A.slice(e.length)||"/"}function Zh(A,e,t){const r=e.matched.length-1,n=t.matched.length-1;return r>-1&&r===n&&pr(e.matched[r],t.matched[n])&&gf(e.params,t.params)&&A(e.query)===A(t.query)&&e.hash===t.hash}function pr(A,e){return(A.aliasOf||A)===(e.aliasOf||e)}function gf(A,e){if(Object.keys(A).length!==Object.keys(e).length)return!1;for(const t in A)if(!jh(A[t],e[t]))return!1;return!0}function jh(A,e){return Ke(A)?El(A,e):Ke(e)?El(e,A):A===e}function El(A,e){return Ke(e)?A.length===e.length&&A.every((t,r)=>t===e[r]):A.length===1&&A[0]===e}function zh(A,e){if(A.startsWith("/"))return A;if(!A)return e;const t=e.split("/"),r=A.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let s=t.length-1,i,o;for(i=0;i1&&s--;else break;return t.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Bn;(function(A){A.pop="pop",A.push="push"})(Bn||(Bn={}));var qr;(function(A){A.back="back",A.forward="forward",A.unknown=""})(qr||(qr={}));function qh(A){if(!A)if(sr){const e=document.querySelector("base");A=e&&e.getAttribute("href")||"/",A=A.replace(/^\w+:\/\/[^\/]+/,"")}else A="/";return A[0]!=="/"&&A[0]!=="#"&&(A="/"+A),Wh(A)}const Ap=/^[^#]+#/;function ep(A,e){return A.replace(Ap,"#")+e}function tp(A,e){const t=document.documentElement.getBoundingClientRect(),r=A.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const Ai=()=>({left:window.pageXOffset,top:window.pageYOffset});function rp(A){let e;if("el"in A){const t=A.el,r=typeof t=="string"&&t.startsWith("#"),n=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!n)return;e=tp(n,A)}else e=A;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function yl(A,e){return(history.state?history.state.position-e:-1)+A}const Bo=new Map;function np(A,e){Bo.set(A,e)}function sp(A){const e=Bo.get(A);return Bo.delete(A),e}let ip=()=>location.protocol+"//"+location.host;function df(A,e){const{pathname:t,search:r,hash:n}=e,s=A.indexOf("#");if(s>-1){let o=n.includes(A.slice(s))?A.slice(s).length:1,a=n.slice(o);return a[0]!=="/"&&(a="/"+a),ml(a,"")}return ml(t,A)+r+n}function op(A,e,t,r){let n=[],s=[],i=null;const o=({state:f})=>{const B=df(A,location),g=t.value,h=e.value;let v=0;if(f){if(t.value=B,e.value=f,i&&i===g){i=null;return}v=h?f.position-h.position:0}else r(B);n.forEach(w=>{w(t.value,g,{delta:v,type:Bn.pop,direction:v?v>0?qr.forward:qr.back:qr.unknown})})};function a(){i=t.value}function l(f){n.push(f);const B=()=>{const g=n.indexOf(f);g>-1&&n.splice(g,1)};return s.push(B),B}function c(){const{history:f}=window;f.state&&f.replaceState(CA({},f.state,{scroll:Ai()}),"")}function u(){for(const f of s)f();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:l,destroy:u}}function bl(A,e,t,r=!1,n=!1){return{back:A,current:e,forward:t,replaced:r,position:window.history.length,scroll:n?Ai():null}}function ap(A){const{history:e,location:t}=window,r={value:df(A,t)},n={value:e.state};n.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(a,l,c){const u=A.indexOf("#"),f=u>-1?(t.host&&document.querySelector("base")?A:A.slice(u))+a:ip()+A+a;try{e[c?"replaceState":"pushState"](l,"",f),n.value=l}catch(B){console.error(B),t[c?"replace":"assign"](f)}}function i(a,l){const c=CA({},e.state,bl(n.value.back,a,n.value.forward,!0),l,{position:n.value.position});s(a,c,!0),r.value=a}function o(a,l){const c=CA({},n.value,e.state,{forward:a,scroll:Ai()});s(c.current,c,!0);const u=CA({},bl(r.value,a,null),{position:c.position+1},l);s(a,u,!1),r.value=a}return{location:r,state:n,push:o,replace:i}}function lp(A){A=qh(A);const e=ap(A),t=op(A,e.state,e.location,e.replace);function r(s,i=!0){i||t.pauseListeners(),history.go(s)}const n=CA({location:"",base:A,go:r,createHref:ep.bind(null,A)},e,t);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function cp(A){return typeof A=="string"||A&&typeof A=="object"}function hf(A){return typeof A=="string"||typeof A=="symbol"}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pf=Symbol("");var Hl;(function(A){A[A.aborted=4]="aborted",A[A.cancelled=8]="cancelled",A[A.duplicated=16]="duplicated"})(Hl||(Hl={}));function wr(A,e){return CA(new Error,{type:A,[pf]:!0},e)}function Je(A,e){return A instanceof Error&&pf in A&&(e==null||!!(A.type&e))}const Il="[^/]+?",up={sensitive:!1,strict:!1,start:!0,end:!0},fp=/[.+*?^${}()[\]/\\]/g;function Bp(A,e){const t=CA({},up,e),r=[];let n=t.start?"^":"";const s=[];for(const l of A){const c=l.length?[]:[90];t.strict&&!l.length&&(n+="/");for(let u=0;ue.length?e.length===1&&e[0]===80?1:-1:0}function dp(A,e){let t=0;const r=A.score,n=e.score;for(;t0&&e[e.length-1]<0}const hp={type:0,value:""},pp=/[a-zA-Z0-9_]/;function wp(A){if(!A)return[[]];if(A==="/")return[[hp]];if(!A.startsWith("/"))throw new Error(`Invalid path "${A}"`);function e(B){throw new Error(`ERR (${t})/"${l}": ${B}`)}let t=0,r=t;const n=[];let s;function i(){s&&n.push(s),s=[]}let o=0,a,l="",c="";function u(){l&&(t===0?s.push({type:0,value:l}):t===1||t===2||t===3?(s.length>1&&(a==="*"||a==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):e("Invalid state to consume buffer"),l="")}function f(){l+=a}for(;o{i(Q)}:zr}function i(c){if(hf(c)){const u=r.get(c);u&&(r.delete(c),t.splice(t.indexOf(u),1),u.children.forEach(i),u.alias.forEach(i))}else{const u=t.indexOf(c);u>-1&&(t.splice(u,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function o(){return t}function a(c){let u=0;for(;u=0&&(c.record.path!==t[u].record.path||!wf(c,t[u]));)u++;t.splice(u,0,c),c.record.name&&!Sl(c)&&r.set(c.record.name,c)}function l(c,u){let f,B={},g,h;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw wr(1,{location:c});h=f.record.name,B=CA(Ll(u.params,f.keys.filter(Q=>!Q.optional).map(Q=>Q.name)),c.params&&Ll(c.params,f.keys.map(Q=>Q.name))),g=f.stringify(B)}else if("path"in c)g=c.path,f=t.find(Q=>Q.re.test(g)),f&&(B=f.parse(g),h=f.record.name);else{if(f=u.name?r.get(u.name):t.find(Q=>Q.re.test(u.path)),!f)throw wr(1,{location:c,currentLocation:u});h=f.record.name,B=CA({},u.params,c.params),g=f.stringify(B)}const v=[];let w=f;for(;w;)v.unshift(w.record),w=w.parent;return{name:h,path:g,params:B,matched:v,meta:vp(v)}}return A.forEach(c=>s(c)),{addRoute:s,resolve:l,removeRoute:i,getRoutes:o,getRecordMatcher:n}}function Ll(A,e){const t={};for(const r of e)r in A&&(t[r]=A[r]);return t}function Fp(A){return{path:A.path,redirect:A.redirect,name:A.name,meta:A.meta||{},aliasOf:void 0,beforeEnter:A.beforeEnter,props:Up(A),children:A.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in A?A.components||null:A.component&&{default:A.component}}}function Up(A){const e={},t=A.props||!1;if("component"in A)e.default=t;else for(const r in A.components)e[r]=typeof t=="object"?t[r]:t;return e}function Sl(A){for(;A;){if(A.record.aliasOf)return!0;A=A.parent}return!1}function vp(A){return A.reduce((e,t)=>CA(e,t.meta),{})}function Tl(A,e){const t={};for(const r in A)t[r]=r in e?e[r]:A[r];return t}function wf(A,e){return e.children.some(t=>t===A||wf(A,t))}const Qf=/#/g,mp=/&/g,Ep=/\//g,yp=/=/g,bp=/\?/g,Cf=/\+/g,Hp=/%5B/g,Ip=/%5D/g,Ff=/%5E/g,xp=/%60/g,Uf=/%7B/g,Lp=/%7C/g,vf=/%7D/g,Sp=/%20/g;function ha(A){return encodeURI(""+A).replace(Lp,"|").replace(Hp,"[").replace(Ip,"]")}function Tp(A){return ha(A).replace(Uf,"{").replace(vf,"}").replace(Ff,"^")}function go(A){return ha(A).replace(Cf,"%2B").replace(Sp,"+").replace(Qf,"%23").replace(mp,"%26").replace(xp,"`").replace(Uf,"{").replace(vf,"}").replace(Ff,"^")}function Kp(A){return go(A).replace(yp,"%3D")}function Dp(A){return ha(A).replace(Qf,"%23").replace(bp,"%3F")}function _p(A){return A==null?"":Dp(A).replace(Ep,"%2F")}function Us(A){try{return decodeURIComponent(""+A)}catch{}return""+A}function Op(A){const e={};if(A===""||A==="?")return e;const r=(A[0]==="?"?A.slice(1):A).split("&");for(let n=0;ns&&go(s)):[r&&go(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function Rp(A){const e={};for(const t in A){const r=A[t];r!==void 0&&(e[t]=Ke(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return e}const kp=Symbol(""),Dl=Symbol(""),pa=Symbol(""),mf=Symbol(""),ho=Symbol("");function Lr(){let A=[];function e(r){return A.push(r),()=>{const n=A.indexOf(r);n>-1&&A.splice(n,1)}}function t(){A=[]}return{add:e,list:()=>A.slice(),reset:t}}function gt(A,e,t,r,n){const s=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((i,o)=>{const a=u=>{u===!1?o(wr(4,{from:t,to:e})):u instanceof Error?o(u):cp(u)?o(wr(2,{from:e,to:u})):(s&&r.enterCallbacks[n]===s&&typeof u=="function"&&s.push(u),i())},l=A.call(r&&r.instances[n],e,t,a);let c=Promise.resolve(l);A.length<3&&(c=c.then(a)),c.catch(u=>o(u))})}function Ei(A,e,t,r){const n=[];for(const s of A)for(const i in s.components){let o=s.components[i];if(!(e!=="beforeRouteEnter"&&!s.instances[i]))if(Mp(o)){const l=(o.__vccOpts||o)[e];l&&n.push(gt(l,t,r,s,i))}else{let a=o();n.push(()=>a.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const c=$h(l)?l.default:l;s.components[i]=c;const f=(c.__vccOpts||c)[e];return f&>(f,t,r,s,i)()}))}}return n}function Mp(A){return typeof A=="object"||"displayName"in A||"props"in A||"__vccOpts"in A}function _l(A){const e=TA(pa),t=TA(mf),r=J(()=>e.resolve(EA(A.to))),n=J(()=>{const{matched:a}=r.value,{length:l}=a,c=a[l-1],u=t.matched;if(!c||!u.length)return-1;const f=u.findIndex(pr.bind(null,c));if(f>-1)return f;const B=Ol(a[l-2]);return l>1&&Ol(c)===B&&u[u.length-1].path!==B?u.findIndex(pr.bind(null,a[l-2])):f}),s=J(()=>n.value>-1&&Vp(t.params,r.value.params)),i=J(()=>n.value>-1&&n.value===t.matched.length-1&&gf(t.params,r.value.params));function o(a={}){return Gp(a)?e[EA(A.replace)?"replace":"push"](EA(A.to)).catch(zr):Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:s,isExactActive:i,navigate:o}}const Np=KA({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_l,setup(A,{slots:e}){const t=mr(_l(A)),{options:r}=TA(pa),n=J(()=>({[Rl(A.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[Rl(A.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return A.custom?s:kA("a",{"aria-current":t.isExactActive?A.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:n.value},s)}}}),Pp=Np;function Gp(A){if(!(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey)&&!A.defaultPrevented&&!(A.button!==void 0&&A.button!==0)){if(A.currentTarget&&A.currentTarget.getAttribute){const e=A.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return A.preventDefault&&A.preventDefault(),!0}}function Vp(A,e){for(const t in e){const r=e[t],n=A[t];if(typeof r=="string"){if(r!==n)return!1}else if(!Ke(n)||n.length!==r.length||r.some((s,i)=>s!==n[i]))return!1}return!0}function Ol(A){return A?A.aliasOf?A.aliasOf.path:A.path:""}const Rl=(A,e,t)=>A??e??t,Xp=KA({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(A,{attrs:e,slots:t}){const r=TA(ho),n=J(()=>A.route||r.value),s=TA(Dl,0),i=J(()=>{let l=EA(s);const{matched:c}=n.value;let u;for(;(u=c[l])&&!u.components;)l++;return l}),o=J(()=>n.value.matched[i.value]);ae(Dl,J(()=>i.value+1)),ae(kp,o),ae(ho,n);const a=rA();return oe(()=>[a.value,o.value,A.name],([l,c,u],[f,B,g])=>{c&&(c.instances[u]=l,B&&B!==c&&l&&l===f&&(c.leaveGuards.size||(c.leaveGuards=B.leaveGuards),c.updateGuards.size||(c.updateGuards=B.updateGuards))),l&&c&&(!B||!pr(c,B)||!f)&&(c.enterCallbacks[u]||[]).forEach(h=>h(l))},{flush:"post"}),()=>{const l=n.value,c=A.name,u=o.value,f=u&&u.components[c];if(!f)return kl(t.default,{Component:f,route:l});const B=u.props[c],g=B?B===!0?l.params:typeof B=="function"?B(l):B:null,v=kA(f,CA({},g,e,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(u.instances[c]=null)},ref:a}));return kl(t.default,{Component:v,route:l})||v}}});function kl(A,e){if(!A)return null;const t=A(e);return t.length===1?t[0]:t}const Ef=Xp;function $p(A){const e=Cp(A.routes,A),t=A.parseQuery||Op,r=A.stringifyQuery||Kl,n=A.history,s=Lr(),i=Lr(),o=Lr(),a=bu(at);let l=at;sr&&A.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=vi.bind(null,I=>""+I),u=vi.bind(null,_p),f=vi.bind(null,Us);function B(I,X){let O,z;return hf(I)?(O=e.getRecordMatcher(I),z=X):z=I,e.addRoute(z,O)}function g(I){const X=e.getRecordMatcher(I);X&&e.removeRoute(X)}function h(){return e.getRoutes().map(I=>I.record)}function v(I){return!!e.getRecordMatcher(I)}function w(I,X){if(X=CA({},X||a.value),typeof I=="string"){const C=mi(t,I,X.path),H=e.resolve({path:C.path},X),x=n.createHref(C.fullPath);return CA(C,H,{params:f(H.params),hash:Us(C.hash),redirectedFrom:void 0,href:x})}let O;if("path"in I)O=CA({},I,{path:mi(t,I.path,X.path).path});else{const C=CA({},I.params);for(const H in C)C[H]==null&&delete C[H];O=CA({},I,{params:u(C)}),X.params=u(X.params)}const z=e.resolve(O,X),hA=I.hash||"";z.params=c(f(z.params));const d=Yh(r,CA({},I,{hash:Tp(hA),path:z.path})),p=n.createHref(d);return CA({fullPath:d,hash:hA,query:r===Kl?Rp(I.query):I.query||{}},z,{redirectedFrom:void 0,href:p})}function Q(I){return typeof I=="string"?mi(t,I,a.value.path):CA({},I)}function y(I,X){if(l!==I)return wr(8,{from:X,to:I})}function F(I){return K(I)}function E(I){return F(CA(Q(I),{replace:!0}))}function m(I){const X=I.matched[I.matched.length-1];if(X&&X.redirect){const{redirect:O}=X;let z=typeof O=="function"?O(I):O;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=Q(z):{path:z},z.params={}),CA({query:I.query,hash:I.hash,params:"path"in z?{}:I.params},z)}}function K(I,X){const O=l=w(I),z=a.value,hA=I.state,d=I.force,p=I.replace===!0,C=m(O);if(C)return K(CA(Q(C),{state:typeof C=="object"?CA({},hA,C.state):hA,force:d,replace:p}),X||O);const H=O;H.redirectedFrom=X;let x;return!d&&Zh(r,z,O)&&(x=wr(16,{to:H,from:z}),xA(z,z,!0,!1)),(x?Promise.resolve(x):N(H,z)).catch(L=>Je(L)?Je(L,2)?L:QA(L):Y(L,H,z)).then(L=>{if(L){if(Je(L,2))return K(CA({replace:p},Q(L.to),{state:typeof L.to=="object"?CA({},hA,L.to.state):hA,force:d}),X||H)}else L=T(H,z,!0,p,hA);return j(H,z,L),L})}function U(I,X){const O=y(I,X);return O?Promise.reject(O):Promise.resolve()}function b(I){const X=zA.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(I):I()}function N(I,X){let O;const[z,hA,d]=Jp(I,X);O=Ei(z.reverse(),"beforeRouteLeave",I,X);for(const C of z)C.leaveGuards.forEach(H=>{O.push(gt(H,I,X))});const p=U.bind(null,I,X);return O.push(p),LA(O).then(()=>{O=[];for(const C of s.list())O.push(gt(C,I,X));return O.push(p),LA(O)}).then(()=>{O=Ei(hA,"beforeRouteUpdate",I,X);for(const C of hA)C.updateGuards.forEach(H=>{O.push(gt(H,I,X))});return O.push(p),LA(O)}).then(()=>{O=[];for(const C of d)if(C.beforeEnter)if(Ke(C.beforeEnter))for(const H of C.beforeEnter)O.push(gt(H,I,X));else O.push(gt(C.beforeEnter,I,X));return O.push(p),LA(O)}).then(()=>(I.matched.forEach(C=>C.enterCallbacks={}),O=Ei(d,"beforeRouteEnter",I,X),O.push(p),LA(O))).then(()=>{O=[];for(const C of i.list())O.push(gt(C,I,X));return O.push(p),LA(O)}).catch(C=>Je(C,8)?C:Promise.reject(C))}function j(I,X,O){o.list().forEach(z=>b(()=>z(I,X,O)))}function T(I,X,O,z,hA){const d=y(I,X);if(d)return d;const p=X===at,C=sr?history.state:{};O&&(z||p?n.replace(I.fullPath,CA({scroll:p&&C&&C.scroll},hA)):n.push(I.fullPath,hA)),a.value=I,xA(I,X,O,p),QA()}let R;function oA(){R||(R=n.listen((I,X,O)=>{if(!le.listening)return;const z=w(I),hA=m(z);if(hA){K(CA(hA,{replace:!0}),z).catch(zr);return}l=z;const d=a.value;sr&&np(yl(d.fullPath,O.delta),Ai()),N(z,d).catch(p=>Je(p,12)?p:Je(p,2)?(K(p.to,z).then(C=>{Je(C,20)&&!O.delta&&O.type===Bn.pop&&n.go(-1,!1)}).catch(zr),Promise.reject()):(O.delta&&n.go(-O.delta,!1),Y(p,z,d))).then(p=>{p=p||T(z,d,!1),p&&(O.delta&&!Je(p,8)?n.go(-O.delta,!1):O.type===Bn.pop&&Je(p,20)&&n.go(-1,!1)),j(z,d,p)}).catch(zr)}))}let fA=Lr(),Z=Lr(),G;function Y(I,X,O){QA(I);const z=Z.list();return z.length?z.forEach(hA=>hA(I,X,O)):console.error(I),Promise.reject(I)}function gA(){return G&&a.value!==at?Promise.resolve():new Promise((I,X)=>{fA.add([I,X])})}function QA(I){return G||(G=!I,oA(),fA.list().forEach(([X,O])=>I?O(I):X()),fA.reset()),I}function xA(I,X,O,z){const{scrollBehavior:hA}=A;if(!sr||!hA)return Promise.resolve();const d=!O&&sp(yl(I.fullPath,0))||(z||!O)&&history.state&&history.state.scroll||null;return Se().then(()=>hA(I,X,d)).then(p=>p&&rp(p)).catch(p=>Y(p,I,X))}const dA=I=>n.go(I);let $A;const zA=new Set,le={currentRoute:a,listening:!0,addRoute:B,removeRoute:g,hasRoute:v,getRoutes:h,resolve:w,options:A,push:F,replace:E,go:dA,back:()=>dA(-1),forward:()=>dA(1),beforeEach:s.add,beforeResolve:i.add,afterEach:o.add,onError:Z.add,isReady:gA,install(I){const X=this;I.component("RouterLink",Pp),I.component("RouterView",Ef),I.config.globalProperties.$router=X,Object.defineProperty(I.config.globalProperties,"$route",{enumerable:!0,get:()=>EA(a)}),sr&&!$A&&a.value===at&&($A=!0,F(n.location).catch(hA=>{}));const O={};for(const hA in at)Object.defineProperty(O,hA,{get:()=>a.value[hA],enumerable:!0});I.provide(pa,X),I.provide(mf,Uu(O)),I.provide(ho,a);const z=I.unmount;zA.add(I),I.unmount=function(){zA.delete(I),zA.size<1&&(l=at,R&&R(),R=null,a.value=at,$A=!1,G=!1),z()}}};function LA(I){return I.reduce((X,O)=>X.then(()=>b(O)),Promise.resolve())}return le}function Jp(A,e){const t=[],r=[],n=[],s=Math.max(e.matched.length,A.matched.length);for(let i=0;ipr(l,o))?r.push(o):t.push(o));const a=A.matched[i];a&&(e.matched.find(l=>pr(l,a))||n.push(a))}return[t,r,n]}const Wp="/assets/logo-IBEtz-Ul.png",ei=(A,e)=>{const t=A.__vccOpts||A;for(const[r,n]of e)t[r]=n;return t},Yp={},Zp={class:"top-0 left-0 flex flex-col items-center w-screen py-5"},jp={class:"flex items-center justify-between w-full px-6"},zp=$("img",{src:Wp,alt:"玉桃文飨轩",width:"50",height:"50"},null,-1),qp=$("h1",{class:"text-xl font-bold rainbow-text"},"玉桃文飨轩",-1),Aw={class:""},ew=$("svg",{viewBox:"0 0 16 16",fill:"#131313",class:"w-8 h-8"},[$("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})],-1),tw=[ew];function rw(A,e){const t=nd("RouterLink");return ie(),et("header",Zp,[$("nav",jp,[uA(t,{class:"inline-flex flex-row items-center space-x-2 link",onClick:e[0]||(e[0]=r=>A.$reortGaEvent("recommand","footer")),to:"/"},{default:Qe(()=>[zp,qp]),_:1}),$("div",Aw,[$("a",{target:"_blank",rel:"noreferrer",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:"https://github.com/nicejade/markdown2png",onClick:e[1]||(e[1]=r=>A.$reortGaEvent("github-repository","header"))},tw)])])])}const nw=ei(Yp,[["render",rw]]),sw=KA({__name:"App",setup(A){return(e,t)=>(ie(),et(ee,null,[uA(nw),uA(EA(Ef))],64))}}),iw="modulepreload",ow=function(A){return"/"+A},Ml={},yf=function(e,t,r){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(s=>{if(s=ow(s),s in Ml)return;Ml[s]=!0;const i=s.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(!!r)for(let c=n.length-1;c>=0;c--){const u=n[c];if(u.href===s&&(!i||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":iw,i||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),i)return new Promise((c,u)=>{l.addEventListener("load",c),l.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})};function wa(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Wt=wa();function bf(A){Wt=A}const Hf=/[&<>"']/,aw=new RegExp(Hf.source,"g"),If=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lw=new RegExp(If.source,"g"),cw={"&":"&","<":"<",">":">",'"':""","'":"'"},Nl=A=>cw[A];function we(A,e){if(e){if(Hf.test(A))return A.replace(aw,Nl)}else if(If.test(A))return A.replace(lw,Nl);return A}const uw=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function fw(A){return A.replace(uw,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Bw=/(^|[^\[])\^/g;function wA(A,e){A=typeof A=="string"?A:A.source,e=e||"";const t={replace:(r,n)=>(n=typeof n=="object"&&"source"in n?n.source:n,n=n.replace(Bw,"$1"),A=A.replace(r,n),t),getRegex:()=>new RegExp(A,e)};return t}function Pl(A){try{A=encodeURI(A).replace(/%25/g,"%")}catch{return null}return A}const vs={exec:()=>null};function Gl(A,e){const t=A.replace(/\|/g,(s,i,o)=>{let a=!1,l=i;for(;--l>=0&&o[l]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length{},Ke=Array.isArray,Jh=/\/$/,Wh=A=>A.replace(Jh,"");function mi(A,e,t="/"){let r,n={},s="",i="";const o=e.indexOf("#");let a=e.indexOf("?");return o=0&&(a=-1),a>-1&&(r=e.slice(0,a),s=e.slice(a+1,o>-1?o:e.length),n=A(s)),o>-1&&(r=r||e.slice(0,o),i=e.slice(o,e.length)),r=zh(r??e,t),{fullPath:r+(s&&"?")+s+i,path:r,query:n,hash:i}}function Yh(A,e){const t=e.query?A(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function ml(A,e){return!e||!A.toLowerCase().startsWith(e.toLowerCase())?A:A.slice(e.length)||"/"}function Zh(A,e,t){const r=e.matched.length-1,n=t.matched.length-1;return r>-1&&r===n&&pr(e.matched[r],t.matched[n])&&gf(e.params,t.params)&&A(e.query)===A(t.query)&&e.hash===t.hash}function pr(A,e){return(A.aliasOf||A)===(e.aliasOf||e)}function gf(A,e){if(Object.keys(A).length!==Object.keys(e).length)return!1;for(const t in A)if(!jh(A[t],e[t]))return!1;return!0}function jh(A,e){return Ke(A)?El(A,e):Ke(e)?El(e,A):A===e}function El(A,e){return Ke(e)?A.length===e.length&&A.every((t,r)=>t===e[r]):A.length===1&&A[0]===e}function zh(A,e){if(A.startsWith("/"))return A;if(!A)return e;const t=e.split("/"),r=A.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let s=t.length-1,i,o;for(i=0;i1&&s--;else break;return t.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Bn;(function(A){A.pop="pop",A.push="push"})(Bn||(Bn={}));var qr;(function(A){A.back="back",A.forward="forward",A.unknown=""})(qr||(qr={}));function qh(A){if(!A)if(sr){const e=document.querySelector("base");A=e&&e.getAttribute("href")||"/",A=A.replace(/^\w+:\/\/[^\/]+/,"")}else A="/";return A[0]!=="/"&&A[0]!=="#"&&(A="/"+A),Wh(A)}const Ap=/^[^#]+#/;function ep(A,e){return A.replace(Ap,"#")+e}function tp(A,e){const t=document.documentElement.getBoundingClientRect(),r=A.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const Ai=()=>({left:window.pageXOffset,top:window.pageYOffset});function rp(A){let e;if("el"in A){const t=A.el,r=typeof t=="string"&&t.startsWith("#"),n=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!n)return;e=tp(n,A)}else e=A;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function yl(A,e){return(history.state?history.state.position-e:-1)+A}const Bo=new Map;function np(A,e){Bo.set(A,e)}function sp(A){const e=Bo.get(A);return Bo.delete(A),e}let ip=()=>location.protocol+"//"+location.host;function df(A,e){const{pathname:t,search:r,hash:n}=e,s=A.indexOf("#");if(s>-1){let o=n.includes(A.slice(s))?A.slice(s).length:1,a=n.slice(o);return a[0]!=="/"&&(a="/"+a),ml(a,"")}return ml(t,A)+r+n}function op(A,e,t,r){let n=[],s=[],i=null;const o=({state:f})=>{const B=df(A,location),g=t.value,h=e.value;let v=0;if(f){if(t.value=B,e.value=f,i&&i===g){i=null;return}v=h?f.position-h.position:0}else r(B);n.forEach(w=>{w(t.value,g,{delta:v,type:Bn.pop,direction:v?v>0?qr.forward:qr.back:qr.unknown})})};function a(){i=t.value}function l(f){n.push(f);const B=()=>{const g=n.indexOf(f);g>-1&&n.splice(g,1)};return s.push(B),B}function c(){const{history:f}=window;f.state&&f.replaceState(CA({},f.state,{scroll:Ai()}),"")}function u(){for(const f of s)f();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:l,destroy:u}}function bl(A,e,t,r=!1,n=!1){return{back:A,current:e,forward:t,replaced:r,position:window.history.length,scroll:n?Ai():null}}function ap(A){const{history:e,location:t}=window,r={value:df(A,t)},n={value:e.state};n.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(a,l,c){const u=A.indexOf("#"),f=u>-1?(t.host&&document.querySelector("base")?A:A.slice(u))+a:ip()+A+a;try{e[c?"replaceState":"pushState"](l,"",f),n.value=l}catch(B){console.error(B),t[c?"replace":"assign"](f)}}function i(a,l){const c=CA({},e.state,bl(n.value.back,a,n.value.forward,!0),l,{position:n.value.position});s(a,c,!0),r.value=a}function o(a,l){const c=CA({},n.value,e.state,{forward:a,scroll:Ai()});s(c.current,c,!0);const u=CA({},bl(r.value,a,null),{position:c.position+1},l);s(a,u,!1),r.value=a}return{location:r,state:n,push:o,replace:i}}function lp(A){A=qh(A);const e=ap(A),t=op(A,e.state,e.location,e.replace);function r(s,i=!0){i||t.pauseListeners(),history.go(s)}const n=CA({location:"",base:A,go:r,createHref:ep.bind(null,A)},e,t);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function cp(A){return typeof A=="string"||A&&typeof A=="object"}function hf(A){return typeof A=="string"||typeof A=="symbol"}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pf=Symbol("");var Hl;(function(A){A[A.aborted=4]="aborted",A[A.cancelled=8]="cancelled",A[A.duplicated=16]="duplicated"})(Hl||(Hl={}));function wr(A,e){return CA(new Error,{type:A,[pf]:!0},e)}function Je(A,e){return A instanceof Error&&pf in A&&(e==null||!!(A.type&e))}const Il="[^/]+?",up={sensitive:!1,strict:!1,start:!0,end:!0},fp=/[.+*?^${}()[\]/\\]/g;function Bp(A,e){const t=CA({},up,e),r=[];let n=t.start?"^":"";const s=[];for(const l of A){const c=l.length?[]:[90];t.strict&&!l.length&&(n+="/");for(let u=0;ue.length?e.length===1&&e[0]===80?1:-1:0}function dp(A,e){let t=0;const r=A.score,n=e.score;for(;t0&&e[e.length-1]<0}const hp={type:0,value:""},pp=/[a-zA-Z0-9_]/;function wp(A){if(!A)return[[]];if(A==="/")return[[hp]];if(!A.startsWith("/"))throw new Error(`Invalid path "${A}"`);function e(B){throw new Error(`ERR (${t})/"${l}": ${B}`)}let t=0,r=t;const n=[];let s;function i(){s&&n.push(s),s=[]}let o=0,a,l="",c="";function u(){l&&(t===0?s.push({type:0,value:l}):t===1||t===2||t===3?(s.length>1&&(a==="*"||a==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):e("Invalid state to consume buffer"),l="")}function f(){l+=a}for(;o{i(Q)}:zr}function i(c){if(hf(c)){const u=r.get(c);u&&(r.delete(c),t.splice(t.indexOf(u),1),u.children.forEach(i),u.alias.forEach(i))}else{const u=t.indexOf(c);u>-1&&(t.splice(u,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function o(){return t}function a(c){let u=0;for(;u=0&&(c.record.path!==t[u].record.path||!wf(c,t[u]));)u++;t.splice(u,0,c),c.record.name&&!Sl(c)&&r.set(c.record.name,c)}function l(c,u){let f,B={},g,h;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw wr(1,{location:c});h=f.record.name,B=CA(Ll(u.params,f.keys.filter(Q=>!Q.optional).map(Q=>Q.name)),c.params&&Ll(c.params,f.keys.map(Q=>Q.name))),g=f.stringify(B)}else if("path"in c)g=c.path,f=t.find(Q=>Q.re.test(g)),f&&(B=f.parse(g),h=f.record.name);else{if(f=u.name?r.get(u.name):t.find(Q=>Q.re.test(u.path)),!f)throw wr(1,{location:c,currentLocation:u});h=f.record.name,B=CA({},u.params,c.params),g=f.stringify(B)}const v=[];let w=f;for(;w;)v.unshift(w.record),w=w.parent;return{name:h,path:g,params:B,matched:v,meta:vp(v)}}return A.forEach(c=>s(c)),{addRoute:s,resolve:l,removeRoute:i,getRoutes:o,getRecordMatcher:n}}function Ll(A,e){const t={};for(const r of e)r in A&&(t[r]=A[r]);return t}function Fp(A){return{path:A.path,redirect:A.redirect,name:A.name,meta:A.meta||{},aliasOf:void 0,beforeEnter:A.beforeEnter,props:Up(A),children:A.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in A?A.components||null:A.component&&{default:A.component}}}function Up(A){const e={},t=A.props||!1;if("component"in A)e.default=t;else for(const r in A.components)e[r]=typeof t=="object"?t[r]:t;return e}function Sl(A){for(;A;){if(A.record.aliasOf)return!0;A=A.parent}return!1}function vp(A){return A.reduce((e,t)=>CA(e,t.meta),{})}function Tl(A,e){const t={};for(const r in A)t[r]=r in e?e[r]:A[r];return t}function wf(A,e){return e.children.some(t=>t===A||wf(A,t))}const Qf=/#/g,mp=/&/g,Ep=/\//g,yp=/=/g,bp=/\?/g,Cf=/\+/g,Hp=/%5B/g,Ip=/%5D/g,Ff=/%5E/g,xp=/%60/g,Uf=/%7B/g,Lp=/%7C/g,vf=/%7D/g,Sp=/%20/g;function ha(A){return encodeURI(""+A).replace(Lp,"|").replace(Hp,"[").replace(Ip,"]")}function Tp(A){return ha(A).replace(Uf,"{").replace(vf,"}").replace(Ff,"^")}function go(A){return ha(A).replace(Cf,"%2B").replace(Sp,"+").replace(Qf,"%23").replace(mp,"%26").replace(xp,"`").replace(Uf,"{").replace(vf,"}").replace(Ff,"^")}function Kp(A){return go(A).replace(yp,"%3D")}function Dp(A){return ha(A).replace(Qf,"%23").replace(bp,"%3F")}function _p(A){return A==null?"":Dp(A).replace(Ep,"%2F")}function Us(A){try{return decodeURIComponent(""+A)}catch{}return""+A}function Op(A){const e={};if(A===""||A==="?")return e;const r=(A[0]==="?"?A.slice(1):A).split("&");for(let n=0;ns&&go(s)):[r&&go(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function Rp(A){const e={};for(const t in A){const r=A[t];r!==void 0&&(e[t]=Ke(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return e}const kp=Symbol(""),Dl=Symbol(""),pa=Symbol(""),mf=Symbol(""),ho=Symbol("");function Lr(){let A=[];function e(r){return A.push(r),()=>{const n=A.indexOf(r);n>-1&&A.splice(n,1)}}function t(){A=[]}return{add:e,list:()=>A.slice(),reset:t}}function gt(A,e,t,r,n){const s=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((i,o)=>{const a=u=>{u===!1?o(wr(4,{from:t,to:e})):u instanceof Error?o(u):cp(u)?o(wr(2,{from:e,to:u})):(s&&r.enterCallbacks[n]===s&&typeof u=="function"&&s.push(u),i())},l=A.call(r&&r.instances[n],e,t,a);let c=Promise.resolve(l);A.length<3&&(c=c.then(a)),c.catch(u=>o(u))})}function Ei(A,e,t,r){const n=[];for(const s of A)for(const i in s.components){let o=s.components[i];if(!(e!=="beforeRouteEnter"&&!s.instances[i]))if(Mp(o)){const l=(o.__vccOpts||o)[e];l&&n.push(gt(l,t,r,s,i))}else{let a=o();n.push(()=>a.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const c=$h(l)?l.default:l;s.components[i]=c;const f=(c.__vccOpts||c)[e];return f&>(f,t,r,s,i)()}))}}return n}function Mp(A){return typeof A=="object"||"displayName"in A||"props"in A||"__vccOpts"in A}function _l(A){const e=TA(pa),t=TA(mf),r=J(()=>e.resolve(EA(A.to))),n=J(()=>{const{matched:a}=r.value,{length:l}=a,c=a[l-1],u=t.matched;if(!c||!u.length)return-1;const f=u.findIndex(pr.bind(null,c));if(f>-1)return f;const B=Ol(a[l-2]);return l>1&&Ol(c)===B&&u[u.length-1].path!==B?u.findIndex(pr.bind(null,a[l-2])):f}),s=J(()=>n.value>-1&&Vp(t.params,r.value.params)),i=J(()=>n.value>-1&&n.value===t.matched.length-1&&gf(t.params,r.value.params));function o(a={}){return Gp(a)?e[EA(A.replace)?"replace":"push"](EA(A.to)).catch(zr):Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:s,isExactActive:i,navigate:o}}const Np=KA({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_l,setup(A,{slots:e}){const t=mr(_l(A)),{options:r}=TA(pa),n=J(()=>({[Rl(A.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[Rl(A.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return A.custom?s:kA("a",{"aria-current":t.isExactActive?A.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:n.value},s)}}}),Pp=Np;function Gp(A){if(!(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey)&&!A.defaultPrevented&&!(A.button!==void 0&&A.button!==0)){if(A.currentTarget&&A.currentTarget.getAttribute){const e=A.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return A.preventDefault&&A.preventDefault(),!0}}function Vp(A,e){for(const t in e){const r=e[t],n=A[t];if(typeof r=="string"){if(r!==n)return!1}else if(!Ke(n)||n.length!==r.length||r.some((s,i)=>s!==n[i]))return!1}return!0}function Ol(A){return A?A.aliasOf?A.aliasOf.path:A.path:""}const Rl=(A,e,t)=>A??e??t,Xp=KA({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(A,{attrs:e,slots:t}){const r=TA(ho),n=J(()=>A.route||r.value),s=TA(Dl,0),i=J(()=>{let l=EA(s);const{matched:c}=n.value;let u;for(;(u=c[l])&&!u.components;)l++;return l}),o=J(()=>n.value.matched[i.value]);ae(Dl,J(()=>i.value+1)),ae(kp,o),ae(ho,n);const a=rA();return oe(()=>[a.value,o.value,A.name],([l,c,u],[f,B,g])=>{c&&(c.instances[u]=l,B&&B!==c&&l&&l===f&&(c.leaveGuards.size||(c.leaveGuards=B.leaveGuards),c.updateGuards.size||(c.updateGuards=B.updateGuards))),l&&c&&(!B||!pr(c,B)||!f)&&(c.enterCallbacks[u]||[]).forEach(h=>h(l))},{flush:"post"}),()=>{const l=n.value,c=A.name,u=o.value,f=u&&u.components[c];if(!f)return kl(t.default,{Component:f,route:l});const B=u.props[c],g=B?B===!0?l.params:typeof B=="function"?B(l):B:null,v=kA(f,CA({},g,e,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(u.instances[c]=null)},ref:a}));return kl(t.default,{Component:v,route:l})||v}}});function kl(A,e){if(!A)return null;const t=A(e);return t.length===1?t[0]:t}const Ef=Xp;function $p(A){const e=Cp(A.routes,A),t=A.parseQuery||Op,r=A.stringifyQuery||Kl,n=A.history,s=Lr(),i=Lr(),o=Lr(),a=bu(at);let l=at;sr&&A.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=vi.bind(null,I=>""+I),u=vi.bind(null,_p),f=vi.bind(null,Us);function B(I,X){let O,z;return hf(I)?(O=e.getRecordMatcher(I),z=X):z=I,e.addRoute(z,O)}function g(I){const X=e.getRecordMatcher(I);X&&e.removeRoute(X)}function h(){return e.getRoutes().map(I=>I.record)}function v(I){return!!e.getRecordMatcher(I)}function w(I,X){if(X=CA({},X||a.value),typeof I=="string"){const C=mi(t,I,X.path),H=e.resolve({path:C.path},X),x=n.createHref(C.fullPath);return CA(C,H,{params:f(H.params),hash:Us(C.hash),redirectedFrom:void 0,href:x})}let O;if("path"in I)O=CA({},I,{path:mi(t,I.path,X.path).path});else{const C=CA({},I.params);for(const H in C)C[H]==null&&delete C[H];O=CA({},I,{params:u(C)}),X.params=u(X.params)}const z=e.resolve(O,X),hA=I.hash||"";z.params=c(f(z.params));const d=Yh(r,CA({},I,{hash:Tp(hA),path:z.path})),p=n.createHref(d);return CA({fullPath:d,hash:hA,query:r===Kl?Rp(I.query):I.query||{}},z,{redirectedFrom:void 0,href:p})}function Q(I){return typeof I=="string"?mi(t,I,a.value.path):CA({},I)}function y(I,X){if(l!==I)return wr(8,{from:X,to:I})}function F(I){return K(I)}function E(I){return F(CA(Q(I),{replace:!0}))}function m(I){const X=I.matched[I.matched.length-1];if(X&&X.redirect){const{redirect:O}=X;let z=typeof O=="function"?O(I):O;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=Q(z):{path:z},z.params={}),CA({query:I.query,hash:I.hash,params:"path"in z?{}:I.params},z)}}function K(I,X){const O=l=w(I),z=a.value,hA=I.state,d=I.force,p=I.replace===!0,C=m(O);if(C)return K(CA(Q(C),{state:typeof C=="object"?CA({},hA,C.state):hA,force:d,replace:p}),X||O);const H=O;H.redirectedFrom=X;let x;return!d&&Zh(r,z,O)&&(x=wr(16,{to:H,from:z}),xA(z,z,!0,!1)),(x?Promise.resolve(x):N(H,z)).catch(L=>Je(L)?Je(L,2)?L:QA(L):Y(L,H,z)).then(L=>{if(L){if(Je(L,2))return K(CA({replace:p},Q(L.to),{state:typeof L.to=="object"?CA({},hA,L.to.state):hA,force:d}),X||H)}else L=T(H,z,!0,p,hA);return j(H,z,L),L})}function U(I,X){const O=y(I,X);return O?Promise.reject(O):Promise.resolve()}function b(I){const X=zA.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(I):I()}function N(I,X){let O;const[z,hA,d]=Jp(I,X);O=Ei(z.reverse(),"beforeRouteLeave",I,X);for(const C of z)C.leaveGuards.forEach(H=>{O.push(gt(H,I,X))});const p=U.bind(null,I,X);return O.push(p),LA(O).then(()=>{O=[];for(const C of s.list())O.push(gt(C,I,X));return O.push(p),LA(O)}).then(()=>{O=Ei(hA,"beforeRouteUpdate",I,X);for(const C of hA)C.updateGuards.forEach(H=>{O.push(gt(H,I,X))});return O.push(p),LA(O)}).then(()=>{O=[];for(const C of d)if(C.beforeEnter)if(Ke(C.beforeEnter))for(const H of C.beforeEnter)O.push(gt(H,I,X));else O.push(gt(C.beforeEnter,I,X));return O.push(p),LA(O)}).then(()=>(I.matched.forEach(C=>C.enterCallbacks={}),O=Ei(d,"beforeRouteEnter",I,X),O.push(p),LA(O))).then(()=>{O=[];for(const C of i.list())O.push(gt(C,I,X));return O.push(p),LA(O)}).catch(C=>Je(C,8)?C:Promise.reject(C))}function j(I,X,O){o.list().forEach(z=>b(()=>z(I,X,O)))}function T(I,X,O,z,hA){const d=y(I,X);if(d)return d;const p=X===at,C=sr?history.state:{};O&&(z||p?n.replace(I.fullPath,CA({scroll:p&&C&&C.scroll},hA)):n.push(I.fullPath,hA)),a.value=I,xA(I,X,O,p),QA()}let R;function oA(){R||(R=n.listen((I,X,O)=>{if(!le.listening)return;const z=w(I),hA=m(z);if(hA){K(CA(hA,{replace:!0}),z).catch(zr);return}l=z;const d=a.value;sr&&np(yl(d.fullPath,O.delta),Ai()),N(z,d).catch(p=>Je(p,12)?p:Je(p,2)?(K(p.to,z).then(C=>{Je(C,20)&&!O.delta&&O.type===Bn.pop&&n.go(-1,!1)}).catch(zr),Promise.reject()):(O.delta&&n.go(-O.delta,!1),Y(p,z,d))).then(p=>{p=p||T(z,d,!1),p&&(O.delta&&!Je(p,8)?n.go(-O.delta,!1):O.type===Bn.pop&&Je(p,20)&&n.go(-1,!1)),j(z,d,p)}).catch(zr)}))}let fA=Lr(),Z=Lr(),G;function Y(I,X,O){QA(I);const z=Z.list();return z.length?z.forEach(hA=>hA(I,X,O)):console.error(I),Promise.reject(I)}function gA(){return G&&a.value!==at?Promise.resolve():new Promise((I,X)=>{fA.add([I,X])})}function QA(I){return G||(G=!I,oA(),fA.list().forEach(([X,O])=>I?O(I):X()),fA.reset()),I}function xA(I,X,O,z){const{scrollBehavior:hA}=A;if(!sr||!hA)return Promise.resolve();const d=!O&&sp(yl(I.fullPath,0))||(z||!O)&&history.state&&history.state.scroll||null;return Se().then(()=>hA(I,X,d)).then(p=>p&&rp(p)).catch(p=>Y(p,I,X))}const dA=I=>n.go(I);let $A;const zA=new Set,le={currentRoute:a,listening:!0,addRoute:B,removeRoute:g,hasRoute:v,getRoutes:h,resolve:w,options:A,push:F,replace:E,go:dA,back:()=>dA(-1),forward:()=>dA(1),beforeEach:s.add,beforeResolve:i.add,afterEach:o.add,onError:Z.add,isReady:gA,install(I){const X=this;I.component("RouterLink",Pp),I.component("RouterView",Ef),I.config.globalProperties.$router=X,Object.defineProperty(I.config.globalProperties,"$route",{enumerable:!0,get:()=>EA(a)}),sr&&!$A&&a.value===at&&($A=!0,F(n.location).catch(hA=>{}));const O={};for(const hA in at)Object.defineProperty(O,hA,{get:()=>a.value[hA],enumerable:!0});I.provide(pa,X),I.provide(mf,Uu(O)),I.provide(ho,a);const z=I.unmount;zA.add(I),I.unmount=function(){zA.delete(I),zA.size<1&&(l=at,R&&R(),R=null,a.value=at,$A=!1,G=!1),z()}}};function LA(I){return I.reduce((X,O)=>X.then(()=>b(O)),Promise.resolve())}return le}function Jp(A,e){const t=[],r=[],n=[],s=Math.max(e.matched.length,A.matched.length);for(let i=0;ipr(l,o))?r.push(o):t.push(o));const a=A.matched[i];a&&(e.matched.find(l=>pr(l,a))||n.push(a))}return[t,r,n]}const Wp="/assets/logo-IBEtz-Ul.png",ei=(A,e)=>{const t=A.__vccOpts||A;for(const[r,n]of e)t[r]=n;return t},Yp={},Zp={class:"top-0 left-0 flex flex-col items-center w-screen"},jp={class:"flex items-center justify-between w-full px-6"},zp=$("img",{src:Wp,alt:"玉桃文飨轩",width:"50",height:"50"},null,-1),qp=$("h1",{class:"text-xl font-bold rainbow-text"},"玉桃文飨轩",-1),Aw={class:""},ew=$("svg",{viewBox:"0 0 16 16",fill:"#131313",class:"w-8 h-8"},[$("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})],-1),tw=[ew];function rw(A,e){const t=nd("RouterLink");return ie(),et("header",Zp,[$("nav",jp,[uA(t,{class:"inline-flex flex-row items-center space-x-2 link",onClick:e[0]||(e[0]=r=>A.$reortGaEvent("recommand","footer")),to:"/"},{default:Qe(()=>[zp,qp]),_:1}),$("div",Aw,[$("a",{target:"_blank",rel:"noreferrer",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:"https://github.com/nicejade/markdown2png",onClick:e[1]||(e[1]=r=>A.$reortGaEvent("github-repository","header"))},tw)])])])}const nw=ei(Yp,[["render",rw]]),sw=KA({__name:"App",setup(A){return(e,t)=>(ie(),et(ee,null,[uA(nw),uA(EA(Ef))],64))}}),iw="modulepreload",ow=function(A){return"/"+A},Ml={},yf=function(e,t,r){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(s=>{if(s=ow(s),s in Ml)return;Ml[s]=!0;const i=s.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(!!r)for(let c=n.length-1;c>=0;c--){const u=n[c];if(u.href===s&&(!i||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":iw,i||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),i)return new Promise((c,u)=>{l.addEventListener("load",c),l.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})};function wa(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Wt=wa();function bf(A){Wt=A}const Hf=/[&<>"']/,aw=new RegExp(Hf.source,"g"),If=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lw=new RegExp(If.source,"g"),cw={"&":"&","<":"<",">":">",'"':""","'":"'"},Nl=A=>cw[A];function we(A,e){if(e){if(Hf.test(A))return A.replace(aw,Nl)}else if(If.test(A))return A.replace(lw,Nl);return A}const uw=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function fw(A){return A.replace(uw,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Bw=/(^|[^\[])\^/g;function wA(A,e){A=typeof A=="string"?A:A.source,e=e||"";const t={replace:(r,n)=>(n=typeof n=="object"&&"source"in n?n.source:n,n=n.replace(Bw,"$1"),A=A.replace(r,n),t),getRegex:()=>new RegExp(A,e)};return t}function Pl(A){try{A=encodeURI(A).replace(/%25/g,"%")}catch{return null}return A}const vs={exec:()=>null};function Gl(A,e){const t=A.replace(/\|/g,(s,i,o)=>{let a=!1,l=i;for(;--l>=0&&o[l]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length{const s=n.match(/^\s+/);if(s===null)return n;const[i]=s;return i.length>=r.length?n.slice(r.length):n}).join(` `)}class ms{options;rules;lexer;constructor(e){this.options=e||Wt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Sn(r,` `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=dw(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=Sn(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=Sn(t[0].replace(/^ *>[ \t]?/gm,""),` @@ -74,16 +74,16 @@ PERFORMANCE OF THIS SOFTWARE. .`+Ro+tU+Mc)},nU=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},yB=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),sU=function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Xi(e)||lU(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return ne(this,void 0,void 0,function(){var t,r,n,s,i=this;return qA(this,function(o){switch(o.label){case 0:return t=yB.isSameOrigin(e),r=!Vi(e)&&this._options.useCORS===!0&&YA.SUPPORT_CORS_IMAGES&&!t,n=!Vi(e)&&!t&&!Xi(e)&&typeof this._options.proxy=="string"&&YA.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Vi(e)&&!Xi(e)&&!n&&!r?[2]:(s=e,n?[4,this.proxy(s)]:[3,2]);case 1:s=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(a,l){var c=new Image;c.onload=function(){return a(c)},c.onerror=l,(cU(s)||r)&&(c.crossOrigin="anonymous"),c.src=s,c.complete===!0&&setTimeout(function(){return a(c)},500),i._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(s,i){var o=YA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")s(a.response);else{var u=new FileReader;u.addEventListener("load",function(){return s(u.result)},!1),u.addEventListener("error",function(f){return i(f)},!1),u.readAsDataURL(a.response)}else i("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=i;var l=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),t._options.imageTimeout){var c=t._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+n)}}a.send()})},A}(),iU=/^data:image\/svg\+xml/i,oU=/^data:image\/.*;base64,/i,aU=/^data:image\/.*/i,lU=function(A){return YA.SUPPORT_SVG_DRAWING||!uU(A)},Vi=function(A){return aU.test(A)},cU=function(A){return oU.test(A)},Xi=function(A){return A.substr(0,4)==="blob"},uU=function(A){return A.substr(-3).toLowerCase()==="svg"||iU.test(A)},k=function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),rr=function(A,e,t){return new k(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},zn=function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=rr(this.start,this.startControl,e),n=rr(this.startControl,this.endControl,e),s=rr(this.endControl,this.end,e),i=rr(r,n,e),o=rr(n,s,e),a=rr(i,o,e);return t?new A(this.start,r,i,a):new A(a,o,s,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),me=function(A){return A.type===1},fU=function(){function A(e){var t=e.styles,r=e.bounds,n=Vr(t.borderTopLeftRadius,r.width,r.height),s=n[0],i=n[1],o=Vr(t.borderTopRightRadius,r.width,r.height),a=o[0],l=o[1],c=Vr(t.borderBottomRightRadius,r.width,r.height),u=c[0],f=c[1],B=Vr(t.borderBottomLeftRadius,r.width,r.height),g=B[0],h=B[1],v=[];v.push((s+a)/r.width),v.push((g+u)/r.width),v.push((i+h)/r.height),v.push((l+f)/r.height);var w=Math.max.apply(Math,v);w>1&&(s/=w,i/=w,a/=w,l/=w,u/=w,f/=w,g/=w,h/=w);var Q=r.width-a,y=r.height-f,F=r.width-u,E=r.height-h,m=t.borderTopWidth,K=t.borderRightWidth,U=t.borderBottomWidth,b=t.borderLeftWidth,N=bA(t.paddingTop,e.bounds.width),j=bA(t.paddingRight,e.bounds.width),T=bA(t.paddingBottom,e.bounds.width),R=bA(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||i>0?IA(r.left+b/3,r.top+m/3,s-b/3,i-m/3,pA.TOP_LEFT):new k(r.left+b/3,r.top+m/3),this.topRightBorderDoubleOuterBox=s>0||i>0?IA(r.left+Q,r.top+m/3,a-K/3,l-m/3,pA.TOP_RIGHT):new k(r.left+r.width-K/3,r.top+m/3),this.bottomRightBorderDoubleOuterBox=u>0||f>0?IA(r.left+F,r.top+y,u-K/3,f-U/3,pA.BOTTOM_RIGHT):new k(r.left+r.width-K/3,r.top+r.height-U/3),this.bottomLeftBorderDoubleOuterBox=g>0||h>0?IA(r.left+b/3,r.top+E,g-b/3,h-U/3,pA.BOTTOM_LEFT):new k(r.left+b/3,r.top+r.height-U/3),this.topLeftBorderDoubleInnerBox=s>0||i>0?IA(r.left+b*2/3,r.top+m*2/3,s-b*2/3,i-m*2/3,pA.TOP_LEFT):new k(r.left+b*2/3,r.top+m*2/3),this.topRightBorderDoubleInnerBox=s>0||i>0?IA(r.left+Q,r.top+m*2/3,a-K*2/3,l-m*2/3,pA.TOP_RIGHT):new k(r.left+r.width-K*2/3,r.top+m*2/3),this.bottomRightBorderDoubleInnerBox=u>0||f>0?IA(r.left+F,r.top+y,u-K*2/3,f-U*2/3,pA.BOTTOM_RIGHT):new k(r.left+r.width-K*2/3,r.top+r.height-U*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||h>0?IA(r.left+b*2/3,r.top+E,g-b*2/3,h-U*2/3,pA.BOTTOM_LEFT):new k(r.left+b*2/3,r.top+r.height-U*2/3),this.topLeftBorderStroke=s>0||i>0?IA(r.left+b/2,r.top+m/2,s-b/2,i-m/2,pA.TOP_LEFT):new k(r.left+b/2,r.top+m/2),this.topRightBorderStroke=s>0||i>0?IA(r.left+Q,r.top+m/2,a-K/2,l-m/2,pA.TOP_RIGHT):new k(r.left+r.width-K/2,r.top+m/2),this.bottomRightBorderStroke=u>0||f>0?IA(r.left+F,r.top+y,u-K/2,f-U/2,pA.BOTTOM_RIGHT):new k(r.left+r.width-K/2,r.top+r.height-U/2),this.bottomLeftBorderStroke=g>0||h>0?IA(r.left+b/2,r.top+E,g-b/2,h-U/2,pA.BOTTOM_LEFT):new k(r.left+b/2,r.top+r.height-U/2),this.topLeftBorderBox=s>0||i>0?IA(r.left,r.top,s,i,pA.TOP_LEFT):new k(r.left,r.top),this.topRightBorderBox=a>0||l>0?IA(r.left+Q,r.top,a,l,pA.TOP_RIGHT):new k(r.left+r.width,r.top),this.bottomRightBorderBox=u>0||f>0?IA(r.left+F,r.top+y,u,f,pA.BOTTOM_RIGHT):new k(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=g>0||h>0?IA(r.left,r.top+E,g,h,pA.BOTTOM_LEFT):new k(r.left,r.top+r.height),this.topLeftPaddingBox=s>0||i>0?IA(r.left+b,r.top+m,Math.max(0,s-b),Math.max(0,i-m),pA.TOP_LEFT):new k(r.left+b,r.top+m),this.topRightPaddingBox=a>0||l>0?IA(r.left+Math.min(Q,r.width-K),r.top+m,Q>r.width+K?0:Math.max(0,a-K),Math.max(0,l-m),pA.TOP_RIGHT):new k(r.left+r.width-K,r.top+m),this.bottomRightPaddingBox=u>0||f>0?IA(r.left+Math.min(F,r.width-b),r.top+Math.min(y,r.height-U),Math.max(0,u-K),Math.max(0,f-U),pA.BOTTOM_RIGHT):new k(r.left+r.width-K,r.top+r.height-U),this.bottomLeftPaddingBox=g>0||h>0?IA(r.left+b,r.top+Math.min(E,r.height-U),Math.max(0,g-b),Math.max(0,h-U),pA.BOTTOM_LEFT):new k(r.left+b,r.top+r.height-U),this.topLeftContentBox=s>0||i>0?IA(r.left+b+R,r.top+m+N,Math.max(0,s-(b+R)),Math.max(0,i-(m+N)),pA.TOP_LEFT):new k(r.left+b+R,r.top+m+N),this.topRightContentBox=a>0||l>0?IA(r.left+Math.min(Q,r.width+b+R),r.top+m+N,Q>r.width+b+R?0:a-b+R,l-(m+N),pA.TOP_RIGHT):new k(r.left+r.width-(K+j),r.top+m+N),this.bottomRightContentBox=u>0||f>0?IA(r.left+Math.min(F,r.width-(b+R)),r.top+Math.min(y,r.height+m+N),Math.max(0,u-(K+j)),f-(U+T),pA.BOTTOM_RIGHT):new k(r.left+r.width-(K+j),r.top+r.height-(U+T)),this.bottomLeftContentBox=g>0||h>0?IA(r.left+b+R,r.top+E,Math.max(0,g-(b+R)),h-(U+T),pA.BOTTOM_LEFT):new k(r.left+b+R,r.top+r.height-(U+T))}return A}(),pA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(pA||(pA={}));var IA=function(A,e,t,r,n){var s=4*((Math.sqrt(2)-1)/3),i=t*s,o=r*s,a=A+t,l=e+r;switch(n){case pA.TOP_LEFT:return new zn(new k(A,l),new k(A,l-o),new k(a-i,e),new k(a,e));case pA.TOP_RIGHT:return new zn(new k(A,e),new k(A+i,e),new k(a,l-o),new k(a,l));case pA.BOTTOM_RIGHT:return new zn(new k(a,e),new k(a,e+o),new k(A+i,l),new k(A,l));case pA.BOTTOM_LEFT:default:return new zn(new k(a,l),new k(a-i,l),new k(A,e+o),new k(A,e))}},Ts=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},BU=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Ks=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},gU=function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A}(),qn=function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A}(),dU=function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A}(),hU=function(A){return A.type===0},bB=function(A){return A.type===1},pU=function(A){return A.type===2},Nc=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},wU=function(A,e,t,r,n){return A.map(function(s,i){switch(i){case 0:return s.add(e,t);case 1:return s.add(e+r,t);case 2:return s.add(e+r,t+n);case 3:return s.add(e,t+n)}return s})},HB=function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),IB=function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new fU(this.container),this.container.styles.opacity<1&&this.effects.push(new dU(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new gU(r,n,s))}if(this.container.styles.overflowX!==0){var i=Ts(this.curves),o=Ks(this.curves);Nc(i,o)?this.effects.push(new qn(i,6)):(this.effects.push(new qn(i,2)),this.effects.push(new qn(o,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var s=r.effects.filter(function(a){return!bB(a)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,s),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var i=Ts(r.curves),o=Ks(r.curves);Nc(i,o)||n.unshift(new qn(o,6))}}else n.unshift.apply(n,s);r=r.parent}return n.filter(function(a){return GA(a.target,e)})},A}(),ko=function(A,e,t,r){A.container.elements.forEach(function(n){var s=GA(n.flags,4),i=GA(n.flags,2),o=new IB(n,A);GA(n.styles.display,2048)&&r.push(o);var a=GA(n.flags,8)?[]:r;if(s||i){var l=s||n.styles.isPositioned()?t:e,c=new HB(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var f=0;l.negativeZIndex.some(function(g,h){return u>g.element.container.styles.zIndex.order?(f=h,!1):f>0}),l.negativeZIndex.splice(f,0,c)}else if(u>0){var B=0;l.positiveZIndex.some(function(g,h){return u>=g.element.container.styles.zIndex.order?(B=h+1,!1):B>0}),l.positiveZIndex.splice(B,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);ko(o,c,s?c:t,a)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),ko(o,e,t,a);GA(n.flags,8)&&xB(n,a)})},xB=function(A,e){for(var t=A instanceof Ko?A.start:1,r=A instanceof Ko?A.reversed:!1,n=0;n"u"?A[0]:t},yU=function(A,e,t,r,n){var s=e[0],i=e[1],o=t[0],a=t[1];switch(A){case 2:return[new k(Math.round(r.left),Math.round(r.top+i)),new k(Math.round(r.left+r.width),Math.round(r.top+i)),new k(Math.round(r.left+r.width),Math.round(a+r.top+i)),new k(Math.round(r.left),Math.round(a+r.top+i))];case 3:return[new k(Math.round(r.left+s),Math.round(r.top)),new k(Math.round(r.left+s+o),Math.round(r.top)),new k(Math.round(r.left+s+o),Math.round(r.height+r.top)),new k(Math.round(r.left+s),Math.round(r.height+r.top))];case 1:return[new k(Math.round(r.left+s),Math.round(r.top+i)),new k(Math.round(r.left+s+o),Math.round(r.top+i)),new k(Math.round(r.left+s+o),Math.round(r.top+i+a)),new k(Math.round(r.left+s),Math.round(r.top+i+a))];default:return[new k(Math.round(n.left),Math.round(n.top)),new k(Math.round(n.left+n.width),Math.round(n.top)),new k(Math.round(n.left+n.width),Math.round(n.height+n.top)),new k(Math.round(n.left),Math.round(n.height+n.top))]}},bU="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Gc="Hidden Text",HU=function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),s=this._document.createElement("span"),i=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",i.appendChild(r),n.src=bU,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",s.style.fontFamily=e,s.style.fontSize=t,s.style.margin="0",s.style.padding="0",s.appendChild(this._document.createTextNode(Gc)),r.appendChild(s),r.appendChild(n);var o=n.offsetTop-s.offsetTop+2;r.removeChild(s),r.appendChild(this._document.createTextNode(Gc)),r.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-r.offsetTop+2;return i.removeChild(r),{baseline:o,middle:a}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A}(),SB=function(){function A(e,t){this.context=e,this.options=t}return A}(),IU=1e4,xU=function(A){De(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new HU(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),pU(t)&&(this.ctx.globalAlpha=t.opacity),hU(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),bB(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return ne(this,void 0,void 0,function(){var r;return qA(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return ne(this,void 0,void 0,function(){return qA(this,function(r){switch(r.label){case 0:if(GA(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var s=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var i=ma(t.text);i.reduce(function(o,a){return s.ctx.fillText(a,o,t.bounds.top+n),o+s.ctx.measureText(a).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),n=DU(t.fontFamily).join(", "),s=Cn(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,s,n].join(" "),n,s]},e.prototype.renderTextNode=function(t,r){return ne(this,void 0,void 0,function(){var n,s,i,o,a,l,c,u,f=this;return qA(this,function(B){return n=this.createFontStyle(r),s=n[0],i=n[1],o=n[2],this.ctx.font=s,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(i,o),l=a.baseline,c=a.middle,u=r.paintOrder,t.textBounds.forEach(function(g){u.forEach(function(h){switch(h){case 0:f.ctx.fillStyle=JA(r.color),f.renderTextWithLetterSpacing(g,r.letterSpacing,l);var v=r.textShadow;v.length&&g.text.trim().length&&(v.slice(0).reverse().forEach(function(w){f.ctx.shadowColor=JA(w.color),f.ctx.shadowOffsetX=w.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=w.offsetY.number*f.options.scale,f.ctx.shadowBlur=w.blur.number,f.renderTextWithLetterSpacing(g,r.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=JA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(w){switch(w){case 1:f.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+l),g.bounds.width,1);break;case 2:f.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:f.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+c),g.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&g.text.trim().length&&(f.ctx.strokeStyle=JA(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var s=Ds(t),i=Ks(r);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return ne(this,void 0,void 0,function(){var r,n,s,i,o,a,Q,Q,l,c,u,f,F,B,g,E,h,v,w,Q,y,F,E;return qA(this,function(m){switch(m.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,s=r.styles,i=0,o=r.textNodes,m.label=1;case 1:return i0&&oA>0&&(U=s.ctx.createPattern(E,"repeat"),s.renderRepeat(N,U,Z,G))):pC(c)&&(b=$i(t,r,[null,null,null]),N=b[0],j=b[1],T=b[2],R=b[3],oA=b[4],fA=c.position.length===0?[Fa]:c.position,Z=bA(fA[0],R),G=bA(fA[fA.length-1],oA),Y=fC(c,Z,G,R,oA),gA=Y[0],QA=Y[1],gA>0&&QA>0&&(xA=s.ctx.createRadialGradient(j+Z,T+G,0,j+Z,T+G,gA),uc(c.stops,gA*2).forEach(function(I){return xA.addColorStop(I.stop,JA(I.color))}),s.path(N),s.ctx.fillStyle=xA,gA!==QA?(dA=t.bounds.left+.5*t.bounds.width,$A=t.bounds.top+.5*t.bounds.height,zA=QA/gA,le=1/zA,s.ctx.save(),s.ctx.translate(dA,$A),s.ctx.transform(1,0,0,zA,0,0),s.ctx.translate(-dA,-$A),s.ctx.fillRect(j,le*(T-$A)+$A,R,oA*le),s.ctx.restore()):s.ctx.fill())),LA.label=6;case 6:return r--,[2]}})},s=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,t.curves,3)];case 6:return f.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,t.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,t.curves)];case 10:f.sent(),f.label=11;case 11:o++,f.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,s,i){return ne(this,void 0,void 0,function(){var o,a,l,c,u,f,B,g,h,v,w,Q,y,F,E,m,E,m;return qA(this,function(K){return this.ctx.save(),o=UU(s,n),a=Pc(s,n),i===2&&(this.path(a),this.ctx.clip()),me(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),me(a[1])?(u=a[1].end.x,f=a[1].end.y):(u=a[1].x,f=a[1].y),n===0||n===2?B=Math.abs(l-u):B=Math.abs(c-f),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(a.slice(0,2)),g=r<3?r*3:r*2,h=r<3?r*2:r,i===3&&(g=r,h=r),v=!0,B<=g*2?v=!1:B<=g*2+h?(w=B/(2*g+h),g*=w,h*=w):(Q=Math.floor((B+h)/(g+h)),y=(B-Q*g)/(Q-1),F=(B-(Q+1)*g)/Q,h=F<=0||Math.abs(h-y)(_u("data-v-cbf54d34"),A=A(),Ou(),A),VU={class:"switch"},XU=GU(()=>$("div",{class:"slider round"},null,-1));function $U(A,e,t,r,n,s){return ie(),et("label",VU,[Mu($("input",{class:"checkbox",type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=i=>n.toggle=i)},null,512),[[Lh,n.toggle]]),XU])}const JU=ei(PU,[["render",$U],["__scopeId","data-v-cbf54d34"]]);function WA(A,e,...t){if(A in e){let n=e[A];return typeof n=="function"?n(...t):n}let r=new Error(`Tried to handle "${A}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,WA),r}var Cr=(A=>(A[A.None=0]="None",A[A.RenderStrategy=1]="RenderStrategy",A[A.Static=2]="Static",A))(Cr||{}),Ct=(A=>(A[A.Unmount=0]="Unmount",A[A.Hidden=1]="Hidden",A))(Ct||{});function ge({visible:A=!0,features:e=0,ourProps:t,theirProps:r,...n}){var s;let i=KB(r,t),o=Object.assign(n,{props:i});if(A||e&2&&i.static)return Ji(o);if(e&1){let a=(s=i.unmount)==null||s?0:1;return WA(a,{0(){return null},1(){return Ji({...n,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Ji(o)}function Ji({props:A,attrs:e,slots:t,slot:r,name:n}){var s,i;let{as:o,...a}=ba(A,["unmount","static"]),l=(s=t.default)==null?void 0:s.call(t,r),c={};if(r){let u=!1,f=[];for(let[B,g]of Object.entries(r))typeof g=="boolean"&&(u=!0),g===!0&&f.push(B);u&&(c["data-headlessui-state"]=f.join(" "))}if(o==="template"){if(l=TB(l??[]),Object.keys(a).length>0||Object.keys(e).length>0){let[u,...f]=l??[];if(!YU(u)||f.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${n} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(a).concat(Object.keys(e)).map(h=>h.trim()).filter((h,v,w)=>w.indexOf(h)===v).sort((h,v)=>h.localeCompare(v)).map(h=>` - ${h}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(` `)].join(` -`));let B=KB((i=u.props)!=null?i:{},a),g=tt(u,B);for(let h in B)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=B[h]);return g}return Array.isArray(l)&&l.length===1?l[0]:l}return kA(o,Object.assign({},a,c),{default:()=>l})}function TB(A){return A.flatMap(e=>e.type===ee?TB(e.children):[e])}function KB(...A){if(A.length===0)return{};if(A.length===1)return A[0];let e={},t={};for(let r of A)for(let n in r)n.startsWith("on")&&typeof r[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(r[n])):e[n]=r[n];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(e,{[r](n,...s){let i=t[r];for(let o of i){if(n instanceof Event&&n.defaultPrevented)return;o(n,...s)}}});return e}function WU(A){let e=Object.assign({},A);for(let t in e)e[t]===void 0&&delete e[t];return e}function ba(A,e=[]){let t=Object.assign({},A);for(let r of e)r in t&&delete t[r];return t}function YU(A){return A==null?!1:typeof A.type=="string"||typeof A.type=="object"||typeof A.type=="function"}let ZU=0;function jU(){return++ZU}function Yt(){return jU()}var PA=(A=>(A.Space=" ",A.Enter="Enter",A.Escape="Escape",A.Backspace="Backspace",A.Delete="Delete",A.ArrowLeft="ArrowLeft",A.ArrowUp="ArrowUp",A.ArrowRight="ArrowRight",A.ArrowDown="ArrowDown",A.Home="Home",A.End="End",A.PageUp="PageUp",A.PageDown="PageDown",A.Tab="Tab",A))(PA||{});function zU(A){throw new Error("Unexpected object: "+A)}var se=(A=>(A[A.First=0]="First",A[A.Previous=1]="Previous",A[A.Next=2]="Next",A[A.Last=3]="Last",A[A.Specific=4]="Specific",A[A.Nothing=5]="Nothing",A))(se||{});function qU(A,e){let t=e.resolveItems();if(t.length<=0)return null;let r=e.resolveActiveIndex(),n=r??-1,s=(()=>{switch(A.focus){case 0:return t.findIndex(i=>!e.resolveDisabled(i));case 1:{let i=t.slice().reverse().findIndex((o,a,l)=>n!==-1&&l.length-a-1>=n?!1:!e.resolveDisabled(o));return i===-1?i:t.length-1-i}case 2:return t.findIndex((i,o)=>o<=n?!1:!e.resolveDisabled(i));case 3:{let i=t.slice().reverse().findIndex(o=>!e.resolveDisabled(o));return i===-1?i:t.length-1-i}case 4:return t.findIndex(i=>e.resolveId(i)===A.id);case 5:return null;default:zU(A)}})();return s===-1?r:s}function aA(A){var e;return A==null||A.value==null?null:(e=A.value.$el)!=null?e:A.value}let DB=Symbol("Context");var ZA=(A=>(A[A.Open=1]="Open",A[A.Closed=2]="Closed",A[A.Closing=4]="Closing",A[A.Opening=8]="Opening",A))(ZA||{});function Av(){return fi()!==null}function fi(){return TA(DB,null)}function _B(A){ae(DB,A)}function Vc(A,e){if(A)return A;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function ev(A,e){let t=rA(Vc(A.value.type,A.value.as));return NA(()=>{t.value=Vc(A.value.type,A.value.as)}),Ce(()=>{var r;t.value||aA(e)&&aA(e)instanceof HTMLButtonElement&&!((r=aA(e))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}var tv=Object.defineProperty,rv=(A,e,t)=>e in A?tv(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t,Xc=(A,e,t)=>(rv(A,typeof e!="symbol"?e+"":e,t),t);class nv{constructor(){Xc(this,"current",this.detect()),Xc(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let Fn=new nv;function yr(A){if(Fn.isServer)return null;if(A instanceof Node)return A.ownerDocument;if(A!=null&&A.hasOwnProperty("value")){let e=aA(A);if(e)return e.ownerDocument}return document}let No=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(A=>`${A}:not([tabindex='-1'])`).join(",");var ht=(A=>(A[A.First=1]="First",A[A.Previous=2]="Previous",A[A.Next=4]="Next",A[A.Last=8]="Last",A[A.WrapAround=16]="WrapAround",A[A.NoScroll=32]="NoScroll",A))(ht||{}),OB=(A=>(A[A.Error=0]="Error",A[A.Overflow=1]="Overflow",A[A.Success=2]="Success",A[A.Underflow=3]="Underflow",A))(OB||{}),sv=(A=>(A[A.Previous=-1]="Previous",A[A.Next=1]="Next",A))(sv||{});function iv(A=document.body){return A==null?[]:Array.from(A.querySelectorAll(No)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ha=(A=>(A[A.Strict=0]="Strict",A[A.Loose=1]="Loose",A))(Ha||{});function RB(A,e=0){var t;return A===((t=yr(A))==null?void 0:t.body)?!1:WA(e,{0(){return A.matches(No)},1(){let r=A;for(;r!==null;){if(r.matches(No))return!0;r=r.parentElement}return!1}})}var ov=(A=>(A[A.Keyboard=0]="Keyboard",A[A.Mouse=1]="Mouse",A))(ov||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",A=>{A.metaKey||A.altKey||A.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",A=>{A.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:A.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xt(A){A==null||A.focus({preventScroll:!0})}let av=["textarea","input"].join(",");function lv(A){var e,t;return(t=(e=A==null?void 0:A.matches)==null?void 0:e.call(A,av))!=null?t:!1}function kB(A,e=t=>t){return A.slice().sort((t,r)=>{let n=e(t),s=e(r);if(n===null||s===null)return 0;let i=n.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ds(A,e,{sorted:t=!0,relativeTo:r=null,skipElements:n=[]}={}){var s;let i=(s=Array.isArray(A)?A.length>0?A[0].ownerDocument:document:A==null?void 0:A.ownerDocument)!=null?s:document,o=Array.isArray(A)?t?kB(A):A:iv(A);n.length>0&&o.length>1&&(o=o.filter(g=>!n.includes(g))),r=r??i.activeElement;let a=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,o.indexOf(r))-1;if(e&4)return Math.max(0,o.indexOf(r))+1;if(e&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=e&32?{preventScroll:!0}:{},u=0,f=o.length,B;do{if(u>=f||u+f<=0)return 0;let g=l+u;if(e&16)g=(g+f)%f;else{if(g<0)return 3;if(g>=f)return 1}B=o[g],B==null||B.focus(c),u+=a}while(B!==i.activeElement);return e&6&&lv(B)&&B.select(),2}function ts(A,e,t){Fn.isServer||Ce(r=>{document.addEventListener(A,e,t),r(()=>document.removeEventListener(A,e,t))})}function MB(A,e,t){Fn.isServer||Ce(r=>{window.addEventListener(A,e,t),r(()=>window.removeEventListener(A,e,t))})}function NB(A,e,t=J(()=>!0)){function r(s,i){if(!t.value||s.defaultPrevented)return;let o=i(s);if(o===null||!o.getRootNode().contains(o))return;let a=function l(c){return typeof c=="function"?l(c()):Array.isArray(c)||c instanceof Set?c:[c]}(A);for(let l of a){if(l===null)continue;let c=l instanceof HTMLElement?l:aA(l);if(c!=null&&c.contains(o)||s.composed&&s.composedPath().includes(c))return}return!RB(o,Ha.Loose)&&o.tabIndex!==-1&&s.preventDefault(),e(s,o)}let n=rA(null);ts("pointerdown",s=>{var i,o;t.value&&(n.value=((o=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:o[0])||s.target)},!0),ts("mousedown",s=>{var i,o;t.value&&(n.value=((o=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:o[0])||s.target)},!0),ts("click",s=>{n.value&&(r(s,()=>n.value),n.value=null)},!0),ts("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),MB("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var pn=(A=>(A[A.None=1]="None",A[A.Focusable=2]="Focusable",A[A.Hidden=4]="Hidden",A))(pn||{});let _s=KA({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(A,{slots:e,attrs:t}){return()=>{let{features:r,...n}=A,s={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ge({ourProps:s,theirProps:n,slot:{},attrs:t,slots:e,name:"Hidden"})}}});function PB(A={},e=null,t=[]){for(let[r,n]of Object.entries(A))VB(t,GB(e,r),n);return t}function GB(A,e){return A?A+"["+e+"]":e}function VB(A,e,t){if(Array.isArray(t))for(let[r,n]of t.entries())VB(A,GB(e,r.toString()),n);else t instanceof Date?A.push([e,t.toISOString()]):typeof t=="boolean"?A.push([e,t?"1":"0"]):typeof t=="string"?A.push([e,t]):typeof t=="number"?A.push([e,`${t}`]):t==null?A.push([e,""]):PB(t,e,A)}function cv(A,e,t){let r=rA(t==null?void 0:t.value),n=J(()=>A.value!==void 0);return[J(()=>n.value?A.value:r.value),function(s){return n.value||(r.value=s),e==null?void 0:e(s)}]}function $c(A){return[A.screenX,A.screenY]}function uv(){let A=rA([-1,-1]);return{wasMoved(e){let t=$c(e);return A.value[0]===t[0]&&A.value[1]===t[1]?!1:(A.value=t,!0)},update(e){A.value=$c(e)}}}function fv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ia(A){typeof queueMicrotask=="function"?queueMicrotask(A):Promise.resolve().then(A).catch(e=>setTimeout(()=>{throw e}))}function Un(){let A=[],e={addEventListener(t,r,n,s){return t.addEventListener(r,n,s),e.add(()=>t.removeEventListener(r,n,s))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);e.add(()=>cancelAnimationFrame(r))},nextFrame(...t){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...t)})},setTimeout(...t){let r=setTimeout(...t);e.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return Ia(()=>{r.current&&t[0]()}),e.add(()=>{r.current=!1})},style(t,r,n){let s=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:n}),this.add(()=>{Object.assign(t.style,{[r]:s})})},group(t){let r=Un();return t(r),this.add(()=>r.dispose())},add(t){return A.push(t),()=>{let r=A.indexOf(t);if(r>=0)for(let n of A.splice(r,1))n()}},dispose(){for(let t of A.splice(0))t()}};return e}var Jr=(A=>(A[A.Forwards=0]="Forwards",A[A.Backwards=1]="Backwards",A))(Jr||{});function Bv(){let A=rA(0);return MB("keydown",e=>{e.key==="Tab"&&(A.value=e.shiftKey?1:0)}),A}function XB(A,e,t,r){Fn.isServer||Ce(n=>{A=A??window,A.addEventListener(e,t,r),n(()=>A.removeEventListener(e,t,r))})}function gv(A){function e(){document.readyState!=="loading"&&(A(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function $B(A){if(!A)return new Set;if(typeof A=="function")return new Set(A());let e=new Set;for(let t of A.value){let r=aA(t);r instanceof HTMLElement&&e.add(r)}return e}var JB=(A=>(A[A.None=1]="None",A[A.InitialFocus=2]="InitialFocus",A[A.TabLock=4]="TabLock",A[A.FocusLock=8]="FocusLock",A[A.RestoreFocus=16]="RestoreFocus",A[A.All=30]="All",A))(JB||{});let _r=Object.assign(KA({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:rA(new Set)}},inheritAttrs:!1,setup(A,{attrs:e,slots:t,expose:r}){let n=rA(null);r({el:n,$el:n});let s=J(()=>yr(n)),i=rA(!1);NA(()=>i.value=!0),Fe(()=>i.value=!1),hv({ownerDocument:s},J(()=>i.value&&!!(A.features&16)));let o=pv({ownerDocument:s,container:n,initialFocus:J(()=>A.initialFocus)},J(()=>i.value&&!!(A.features&2)));wv({ownerDocument:s,container:n,containers:A.containers,previousActiveElement:o},J(()=>i.value&&!!(A.features&8)));let a=Bv();function l(B){let g=aA(n);g&&(h=>h())(()=>{WA(a.value,{[Jr.Forwards]:()=>{ds(g,ht.First,{skipElements:[B.relatedTarget]})},[Jr.Backwards]:()=>{ds(g,ht.Last,{skipElements:[B.relatedTarget]})}})})}let c=rA(!1);function u(B){B.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function f(B){if(!i.value)return;let g=$B(A.containers);aA(n)instanceof HTMLElement&&g.add(aA(n));let h=B.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(WB(g,h)||(c.value?ds(aA(n),WA(a.value,{[Jr.Forwards]:()=>ht.Next,[Jr.Backwards]:()=>ht.Previous})|ht.WrapAround,{relativeTo:B.target}):B.target instanceof HTMLElement&&Xt(B.target)))}return()=>{let B={},g={ref:n,onKeydown:u,onFocusout:f},{features:h,initialFocus:v,containers:w,...Q}=A;return kA(ee,[!!(h&4)&&kA(_s,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:pn.Focusable}),ge({ourProps:g,theirProps:{...e,...Q},slot:B,attrs:e,slots:t,name:"FocusTrap"}),!!(h&4)&&kA(_s,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:pn.Focusable})])}}}),{features:JB}),Ot=[];gv(()=>{function A(e){e.target instanceof HTMLElement&&e.target!==document.body&&Ot[0]!==e.target&&(Ot.unshift(e.target),Ot=Ot.filter(t=>t!=null&&t.isConnected),Ot.splice(10))}window.addEventListener("click",A,{capture:!0}),window.addEventListener("mousedown",A,{capture:!0}),window.addEventListener("focus",A,{capture:!0}),document.body.addEventListener("click",A,{capture:!0}),document.body.addEventListener("mousedown",A,{capture:!0}),document.body.addEventListener("focus",A,{capture:!0})});function dv(A){let e=rA(Ot.slice());return oe([A],([t],[r])=>{r===!0&&t===!1?Ia(()=>{e.value.splice(0)}):r===!1&&t===!0&&(e.value=Ot.slice())},{flush:"post"}),()=>{var t;return(t=e.value.find(r=>r!=null&&r.isConnected))!=null?t:null}}function hv({ownerDocument:A},e){let t=dv(e);NA(()=>{Ce(()=>{var r,n;e.value||((r=A.value)==null?void 0:r.activeElement)===((n=A.value)==null?void 0:n.body)&&Xt(t())},{flush:"post"})}),Fe(()=>{e.value&&Xt(t())})}function pv({ownerDocument:A,container:e,initialFocus:t},r){let n=rA(null),s=rA(!1);return NA(()=>s.value=!0),Fe(()=>s.value=!1),NA(()=>{oe([e,t,r],(i,o)=>{if(i.every((l,c)=>(o==null?void 0:o[c])===l)||!r.value)return;let a=aA(e);a&&Ia(()=>{var l,c;if(!s.value)return;let u=aA(t),f=(l=A.value)==null?void 0:l.activeElement;if(u){if(u===f){n.value=f;return}}else if(a.contains(f)){n.value=f;return}u?Xt(u):ds(a,ht.First|ht.NoScroll)===OB.Error&&console.warn("There are no focusable elements inside the "),n.value=(c=A.value)==null?void 0:c.activeElement})},{immediate:!0,flush:"post"})}),n}function wv({ownerDocument:A,container:e,containers:t,previousActiveElement:r},n){var s;XB((s=A.value)==null?void 0:s.defaultView,"focus",i=>{if(!n.value)return;let o=$B(t);aA(e)instanceof HTMLElement&&o.add(aA(e));let a=r.value;if(!a)return;let l=i.target;l&&l instanceof HTMLElement?WB(o,l)?(r.value=l,Xt(l)):(i.preventDefault(),i.stopPropagation(),Xt(a)):Xt(r.value)},!0)}function WB(A,e){for(let t of A)if(t.contains(e))return!0;return!1}let Wi=new Map,Or=new Map;function Jc(A,e=rA(!0)){Ce(t=>{var r;if(!e.value)return;let n=aA(A);if(!n)return;t(function(){var i;if(!n)return;let o=(i=Or.get(n))!=null?i:1;if(o===1?Or.delete(n):Or.set(n,o-1),o!==1)return;let a=Wi.get(n);a&&(a["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",a["aria-hidden"]),n.inert=a.inert,Wi.delete(n))});let s=(r=Or.get(n))!=null?r:0;Or.set(n,s+1),s===0&&(Wi.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0)})}let YB=Symbol("ForcePortalRootContext");function Qv(){return TA(YB,!1)}let Wc=KA({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(A,{slots:e,attrs:t}){return ae(YB,A.force),()=>{let{force:r,...n}=A;return ge({theirProps:n,ourProps:{},slot:{},slots:e,attrs:t,name:"ForcePortalRoot"})}}});function Cv(A){let e=yr(A);if(!e){if(A===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${A}`)}let t=e.getElementById("headlessui-portal-root");if(t)return t;let r=e.createElement("div");return r.setAttribute("id","headlessui-portal-root"),e.body.appendChild(r)}let Fv=KA({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(A,{slots:e,attrs:t}){let r=rA(null),n=J(()=>yr(r)),s=Qv(),i=TA(ZB,null),o=rA(s===!0||i==null?Cv(r.value):i.resolveTarget());Ce(()=>{s||i!=null&&(o.value=i.resolveTarget())});let a=TA(Po,null);return NA(()=>{let l=aA(r);l&&a&&Fe(a.register(l))}),Fe(()=>{var l,c;let u=(l=n.value)==null?void 0:l.getElementById("headlessui-portal-root");u&&o.value===u&&o.value.children.length<=0&&((c=o.value.parentElement)==null||c.removeChild(o.value))}),()=>{if(o.value===null)return null;let l={ref:r,"data-headlessui-portal":""};return kA(Xd,{to:o.value},ge({ourProps:l,theirProps:A,slot:{},attrs:t,slots:e,name:"Portal"}))}}}),Po=Symbol("PortalParentContext");function Uv(){let A=TA(Po,null),e=rA([]);function t(s){return e.value.push(s),A&&A.register(s),()=>r(s)}function r(s){let i=e.value.indexOf(s);i!==-1&&e.value.splice(i,1),A&&A.unregister(s)}let n={register:t,unregister:r,portals:e};return[e,KA({name:"PortalWrapper",setup(s,{slots:i}){return ae(Po,n),()=>{var o;return(o=i.default)==null?void 0:o.call(i)}}})]}let ZB=Symbol("PortalGroupContext"),vv=KA({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(A,{attrs:e,slots:t}){let r=mr({resolveTarget(){return A.target}});return ae(ZB,r),()=>{let{target:n,...s}=A;return ge({theirProps:s,ourProps:{},slot:{},attrs:e,slots:t,name:"PortalGroup"})}}}),jB=Symbol("StackContext");var Go=(A=>(A[A.Add=0]="Add",A[A.Remove=1]="Remove",A))(Go||{});function mv(){return TA(jB,()=>{})}function Ev({type:A,enabled:e,element:t,onUpdate:r}){let n=mv();function s(...i){r==null||r(...i),n(...i)}NA(()=>{oe(e,(i,o)=>{i?s(0,A,t):o===!0&&s(1,A,t)},{immediate:!0,flush:"sync"})}),Fe(()=>{e.value&&s(1,A,t)}),ae(jB,s)}let yv=Symbol("DescriptionContext");function bv({slot:A=rA({}),name:e="Description",props:t={}}={}){let r=rA([]);function n(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return ae(yv,{register:n,slot:A,name:e,props:t}),J(()=>r.value.length>0?r.value.join(" "):void 0)}function Hv(A){let e=bu(A.getSnapshot());return Fe(A.subscribe(()=>{e.value=A.getSnapshot()})),e}function Iv(A,e){let t=A(),r=new Set;return{getSnapshot(){return t},subscribe(n){return r.add(n),()=>r.delete(n)},dispatch(n,...s){let i=e[n].call(t,...s);i&&(t=i,r.forEach(o=>o()))}}}function xv(){let A;return{before({doc:e}){var t;let r=e.documentElement;A=((t=e.defaultView)!=null?t:window).innerWidth-r.clientWidth},after({doc:e,d:t}){let r=e.documentElement,n=r.clientWidth-r.offsetWidth,s=A-n;t.style(r,"paddingRight",`${s}px`)}}}function Lv(){if(!fv())return{};let A;return{before(){A=window.pageYOffset},after({doc:e,d:t,meta:r}){function n(i){return r.containers.flatMap(o=>o()).some(o=>o.contains(i))}if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let i=Un();i.style(e.documentElement,"scroll-behavior","auto"),t.add(()=>t.microTask(()=>i.dispose()))}t.style(e.body,"marginTop",`-${A}px`),window.scrollTo(0,0);let s=null;t.addEventListener(e,"click",i=>{if(i.target instanceof HTMLElement)try{let o=i.target.closest("a");if(!o)return;let{hash:a}=new URL(o.href),l=e.querySelector(a);l&&!n(l)&&(s=l)}catch{}},!0),t.addEventListener(e,"touchmove",i=>{i.target instanceof HTMLElement&&!n(i.target)&&i.preventDefault()},{passive:!1}),t.add(()=>{window.scrollTo(0,window.pageYOffset+A),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})}}}function Sv(){return{before({doc:A,d:e}){e.style(A.documentElement,"overflow","hidden")}}}function Tv(A){let e={};for(let t of A)Object.assign(e,t(e));return e}let Mt=Iv(()=>new Map,{PUSH(A,e){var t;let r=(t=this.get(A))!=null?t:{doc:A,count:0,d:Un(),meta:new Set};return r.count++,r.meta.add(e),this.set(A,r),this},POP(A,e){let t=this.get(A);return t&&(t.count--,t.meta.delete(e)),this},SCROLL_PREVENT({doc:A,d:e,meta:t}){let r={doc:A,d:e,meta:Tv(t)},n=[Lv(),xv(),Sv()];n.forEach(({before:s})=>s==null?void 0:s(r)),n.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:A}){A.dispose()},TEARDOWN({doc:A}){this.delete(A)}});Mt.subscribe(()=>{let A=Mt.getSnapshot(),e=new Map;for(let[t]of A)e.set(t,t.documentElement.style.overflow);for(let t of A.values()){let r=e.get(t.doc)==="hidden",n=t.count!==0;(n&&!r||!n&&r)&&Mt.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&Mt.dispatch("TEARDOWN",t)}});function Kv(A,e,t){let r=Hv(Mt),n=J(()=>{let s=A.value?r.value.get(A.value):void 0;return s?s.count>0:!1});return oe([A,e],([s,i],[o],a)=>{if(!s||!i)return;Mt.dispatch("PUSH",s,t);let l=!1;a(()=>{l||(Mt.dispatch("POP",o??s,t),l=!0)})},{immediate:!0}),n}function Dv({defaultContainers:A=[],portals:e,mainTreeNodeRef:t}={}){let r=rA(null),n=yr(r);function s(){var i;let o=[];for(let a of A)a!==null&&(a instanceof HTMLElement?o.push(a):"value"in a&&a.value instanceof HTMLElement&&o.push(a.value));if(e!=null&&e.value)for(let a of e.value)o.push(a);for(let a of(i=n==null?void 0:n.querySelectorAll("html > *, body > *"))!=null?i:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&a.id!=="headlessui-portal-root"&&(a.contains(aA(r))||o.some(l=>a.contains(l))||o.push(a));return o}return{resolveContainers:s,contains(i){return s().some(o=>o.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return t!=null?null:kA(_s,{features:pn.Hidden,ref:r})}}}var _v=(A=>(A[A.Open=0]="Open",A[A.Closed=1]="Closed",A))(_v||{});let Vo=Symbol("DialogContext");function xa(A){let e=TA(Vo,null);if(e===null){let t=new Error(`<${A} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,xa),t}return e}let rs="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Ov=KA({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:rs},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${Yt()}`}},emits:{close:A=>!0},setup(A,{emit:e,attrs:t,slots:r,expose:n}){var s;let i=rA(!1);NA(()=>{i.value=!0});let o=rA(0),a=fi(),l=J(()=>A.open===rs&&a!==null?(a.value&ZA.Open)===ZA.Open:A.open),c=rA(null),u=J(()=>yr(c));if(n({el:c,$el:c}),!(A.open!==rs||a!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof l.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value===rs?void 0:A.open}`);let f=J(()=>i.value&&l.value?0:1),B=J(()=>f.value===0),g=J(()=>o.value>1),h=TA(Vo,null)!==null,[v,w]=Uv(),{resolveContainers:Q,mainTreeNodeRef:y,MainTreeNode:F}=Dv({portals:v,defaultContainers:[J(()=>{var G;return(G=R.panelRef.value)!=null?G:c.value})]}),E=J(()=>g.value?"parent":"leaf"),m=J(()=>a!==null?(a.value&ZA.Closing)===ZA.Closing:!1),K=J(()=>h||m.value?!1:B.value),U=J(()=>{var G,Y,gA;return(gA=Array.from((Y=(G=u.value)==null?void 0:G.querySelectorAll("body > *"))!=null?Y:[]).find(QA=>QA.id==="headlessui-portal-root"?!1:QA.contains(aA(y))&&QA instanceof HTMLElement))!=null?gA:null});Jc(U,K);let b=J(()=>g.value?!0:B.value),N=J(()=>{var G,Y,gA;return(gA=Array.from((Y=(G=u.value)==null?void 0:G.querySelectorAll("[data-headlessui-portal]"))!=null?Y:[]).find(QA=>QA.contains(aA(y))&&QA instanceof HTMLElement))!=null?gA:null});Jc(N,b),Ev({type:"Dialog",enabled:J(()=>f.value===0),element:c,onUpdate:(G,Y)=>{if(Y==="Dialog")return WA(G,{[Go.Add]:()=>o.value+=1,[Go.Remove]:()=>o.value-=1})}});let j=bv({name:"DialogDescription",slot:J(()=>({open:l.value}))}),T=rA(null),R={titleId:T,panelRef:rA(null),dialogState:f,setTitleId(G){T.value!==G&&(T.value=G)},close(){e("close",!1)}};ae(Vo,R);let oA=J(()=>!(!B.value||g.value));NB(Q,(G,Y)=>{R.close(),Se(()=>Y==null?void 0:Y.focus())},oA);let fA=J(()=>!(g.value||f.value!==0));XB((s=u.value)==null?void 0:s.defaultView,"keydown",G=>{fA.value&&(G.defaultPrevented||G.key===PA.Escape&&(G.preventDefault(),G.stopPropagation(),R.close()))});let Z=J(()=>!(m.value||f.value!==0||h));return Kv(u,Z,G=>{var Y;return{containers:[...(Y=G.containers)!=null?Y:[],Q]}}),Ce(G=>{if(f.value!==0)return;let Y=aA(c);if(!Y)return;let gA=new ResizeObserver(QA=>{for(let xA of QA){let dA=xA.target.getBoundingClientRect();dA.x===0&&dA.y===0&&dA.width===0&&dA.height===0&&R.close()}});gA.observe(Y),G(()=>gA.disconnect())}),()=>{let{id:G,open:Y,initialFocus:gA,...QA}=A,xA={...t,ref:c,id:G,role:"dialog","aria-modal":f.value===0?!0:void 0,"aria-labelledby":T.value,"aria-describedby":j.value},dA={open:f.value===0};return kA(Wc,{force:!0},()=>[kA(Fv,()=>kA(vv,{target:c.value},()=>kA(Wc,{force:!1},()=>kA(_r,{initialFocus:gA,containers:Q,features:B.value?WA(E.value,{parent:_r.features.RestoreFocus,leaf:_r.features.All&~_r.features.FocusLock}):_r.features.None},()=>kA(w,{},()=>ge({ourProps:xA,theirProps:{...QA,...t},slot:dA,attrs:t,slots:r,visible:f.value===0,features:Cr.RenderStrategy|Cr.Static,name:"Dialog"})))))),kA(F)])}}}),Rv=KA({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${Yt()}`}},setup(A,{attrs:e,slots:t,expose:r}){let n=xa("DialogPanel");r({el:n.panelRef,$el:n.panelRef});function s(i){i.stopPropagation()}return()=>{let{id:i,...o}=A,a={id:i,ref:n.panelRef,onClick:s};return ge({ourProps:a,theirProps:o,slot:{open:n.dialogState.value===0},attrs:e,slots:t,name:"DialogPanel"})}}}),kv=KA({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${Yt()}`}},setup(A,{attrs:e,slots:t}){let r=xa("DialogTitle");return NA(()=>{r.setTitleId(A.id),Fe(()=>r.setTitleId(null))}),()=>{let{id:n,...s}=A;return ge({ourProps:{id:n},theirProps:s,slot:{open:r.dialogState.value===0},attrs:e,slots:t,name:"DialogTitle"})}}}),Yc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Zc(A){var e,t;let r=(e=A.innerText)!=null?e:"",n=A.cloneNode(!0);if(!(n instanceof HTMLElement))return r;let s=!1;for(let o of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))o.remove(),s=!0;let i=s?(t=n.innerText)!=null?t:"":r;return Yc.test(i)&&(i=i.replace(Yc,"")),i}function Mv(A){let e=A.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=A.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(n=>{let s=document.getElementById(n);if(s){let i=s.getAttribute("aria-label");return typeof i=="string"?i.trim():Zc(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Zc(A).trim()}function Nv(A){let e=rA(""),t=rA("");return()=>{let r=aA(A);if(!r)return"";let n=r.innerText;if(e.value===n)return t.value;let s=Mv(r).trim().toLowerCase();return e.value=n,t.value=s,s}}function Pv(A,e){return A===e}var Gv=(A=>(A[A.Open=0]="Open",A[A.Closed=1]="Closed",A))(Gv||{}),Vv=(A=>(A[A.Single=0]="Single",A[A.Multi=1]="Multi",A))(Vv||{}),Xv=(A=>(A[A.Pointer=0]="Pointer",A[A.Other=1]="Other",A))(Xv||{});function $v(A){requestAnimationFrame(()=>requestAnimationFrame(A))}let zB=Symbol("ListboxContext");function Bi(A){let e=TA(zB,null);if(e===null){let t=new Error(`<${A} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Bi),t}return e}let Jv=KA({name:"Listbox",emits:{"update:modelValue":A=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Pv},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(A,{slots:e,attrs:t,emit:r}){let n=rA(1),s=rA(null),i=rA(null),o=rA(null),a=rA([]),l=rA(""),c=rA(null),u=rA(1);function f(y=F=>F){let F=c.value!==null?a.value[c.value]:null,E=kB(y(a.value.slice()),K=>aA(K.dataRef.domRef)),m=F?E.indexOf(F):null;return m===-1&&(m=null),{options:E,activeOptionIndex:m}}let B=J(()=>A.multiple?1:0),[g,h]=cv(J(()=>A.modelValue),y=>r("update:modelValue",y),J(()=>A.defaultValue)),v=J(()=>g.value===void 0?WA(B.value,{1:[],0:void 0}):g.value),w={listboxState:n,value:v,mode:B,compare(y,F){if(typeof A.by=="string"){let E=A.by;return(y==null?void 0:y[E])===(F==null?void 0:F[E])}return A.by(y,F)},orientation:J(()=>A.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:i,optionsRef:o,disabled:J(()=>A.disabled),options:a,searchQuery:l,activeOptionIndex:c,activationTrigger:u,closeListbox(){A.disabled||n.value!==1&&(n.value=1,c.value=null)},openListbox(){A.disabled||n.value!==0&&(n.value=0)},goToOption(y,F,E){if(A.disabled||n.value===1)return;let m=f(),K=qU(y===se.Specific?{focus:se.Specific,id:F}:{focus:y},{resolveItems:()=>m.options,resolveActiveIndex:()=>m.activeOptionIndex,resolveId:U=>U.id,resolveDisabled:U=>U.dataRef.disabled});l.value="",c.value=K,u.value=E??1,a.value=m.options},search(y){if(A.disabled||n.value===1)return;let F=l.value!==""?0:1;l.value+=y.toLowerCase();let E=(c.value!==null?a.value.slice(c.value+F).concat(a.value.slice(0,c.value+F)):a.value).find(K=>K.dataRef.textValue.startsWith(l.value)&&!K.dataRef.disabled),m=E?a.value.indexOf(E):-1;m===-1||m===c.value||(c.value=m,u.value=1)},clearSearch(){A.disabled||n.value!==1&&l.value!==""&&(l.value="")},registerOption(y,F){let E=f(m=>[...m,{id:y,dataRef:F}]);a.value=E.options,c.value=E.activeOptionIndex},unregisterOption(y){let F=f(E=>{let m=E.findIndex(K=>K.id===y);return m!==-1&&E.splice(m,1),E});a.value=F.options,c.value=F.activeOptionIndex,u.value=1},theirOnChange(y){A.disabled||h(y)},select(y){A.disabled||h(WA(B.value,{0:()=>y,1:()=>{let F=nA(w.value.value).slice(),E=nA(y),m=F.findIndex(K=>w.compare(E,nA(K)));return m===-1?F.push(E):F.splice(m,1),F}}))}};NB([i,o],(y,F)=>{var E;w.closeListbox(),RB(F,Ha.Loose)||(y.preventDefault(),(E=aA(i))==null||E.focus())},J(()=>n.value===0)),ae(zB,w),_B(J(()=>WA(n.value,{0:ZA.Open,1:ZA.Closed})));let Q=J(()=>{var y;return(y=aA(i))==null?void 0:y.closest("form")});return NA(()=>{oe([Q],()=>{if(!Q.value||A.defaultValue===void 0)return;function y(){w.theirOnChange(A.defaultValue)}return Q.value.addEventListener("reset",y),()=>{var F;(F=Q.value)==null||F.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,modelValue:F,disabled:E,form:m,...K}=A,U={open:n.value===0,disabled:E,value:v.value};return kA(ee,[...y!=null&&v.value!=null?PB({[y]:v.value}).map(([b,N])=>kA(_s,WU({features:pn.Hidden,key:b,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:m,name:b,value:N}))):[],ge({ourProps:{},theirProps:{...t,...ba(K,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:U,slots:e,attrs:t,name:"Listbox"})])}}}),Wv=KA({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-listbox-button-${Yt()}`}},setup(A,{attrs:e,slots:t,expose:r}){let n=Bi("ListboxButton");r({el:n.buttonRef,$el:n.buttonRef});function s(l){switch(l.key){case PA.Space:case PA.Enter:case PA.ArrowDown:l.preventDefault(),n.openListbox(),Se(()=>{var c;(c=aA(n.optionsRef))==null||c.focus({preventScroll:!0}),n.value.value||n.goToOption(se.First)});break;case PA.ArrowUp:l.preventDefault(),n.openListbox(),Se(()=>{var c;(c=aA(n.optionsRef))==null||c.focus({preventScroll:!0}),n.value.value||n.goToOption(se.Last)});break}}function i(l){switch(l.key){case PA.Space:l.preventDefault();break}}function o(l){n.disabled.value||(n.listboxState.value===0?(n.closeListbox(),Se(()=>{var c;return(c=aA(n.buttonRef))==null?void 0:c.focus({preventScroll:!0})})):(l.preventDefault(),n.openListbox(),$v(()=>{var c;return(c=aA(n.optionsRef))==null?void 0:c.focus({preventScroll:!0})})))}let a=ev(J(()=>({as:A.as,type:e.type})),n.buttonRef);return()=>{var l,c;let u={open:n.listboxState.value===0,disabled:n.disabled.value,value:n.value.value},{id:f,...B}=A,g={ref:n.buttonRef,id:f,type:a.value,"aria-haspopup":"listbox","aria-controls":(l=aA(n.optionsRef))==null?void 0:l.id,"aria-expanded":n.listboxState.value===0,"aria-labelledby":n.labelRef.value?[(c=aA(n.labelRef))==null?void 0:c.id,f].join(" "):void 0,disabled:n.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:i,onClick:o};return ge({ourProps:g,theirProps:B,slot:u,attrs:e,slots:t,name:"ListboxButton"})}}}),Yv=KA({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-listbox-options-${Yt()}`}},setup(A,{attrs:e,slots:t,expose:r}){let n=Bi("ListboxOptions"),s=rA(null);r({el:n.optionsRef,$el:n.optionsRef});function i(l){switch(s.value&&clearTimeout(s.value),l.key){case PA.Space:if(n.searchQuery.value!=="")return l.preventDefault(),l.stopPropagation(),n.search(l.key);case PA.Enter:if(l.preventDefault(),l.stopPropagation(),n.activeOptionIndex.value!==null){let c=n.options.value[n.activeOptionIndex.value];n.select(c.dataRef.value)}n.mode.value===0&&(n.closeListbox(),Se(()=>{var c;return(c=aA(n.buttonRef))==null?void 0:c.focus({preventScroll:!0})}));break;case WA(n.orientation.value,{vertical:PA.ArrowDown,horizontal:PA.ArrowRight}):return l.preventDefault(),l.stopPropagation(),n.goToOption(se.Next);case WA(n.orientation.value,{vertical:PA.ArrowUp,horizontal:PA.ArrowLeft}):return l.preventDefault(),l.stopPropagation(),n.goToOption(se.Previous);case PA.Home:case PA.PageUp:return l.preventDefault(),l.stopPropagation(),n.goToOption(se.First);case PA.End:case PA.PageDown:return l.preventDefault(),l.stopPropagation(),n.goToOption(se.Last);case PA.Escape:l.preventDefault(),l.stopPropagation(),n.closeListbox(),Se(()=>{var c;return(c=aA(n.buttonRef))==null?void 0:c.focus({preventScroll:!0})});break;case PA.Tab:l.preventDefault(),l.stopPropagation();break;default:l.key.length===1&&(n.search(l.key),s.value=setTimeout(()=>n.clearSearch(),350));break}}let o=fi(),a=J(()=>o!==null?(o.value&ZA.Open)===ZA.Open:n.listboxState.value===0);return()=>{var l,c,u,f;let B={open:n.listboxState.value===0},{id:g,...h}=A,v={"aria-activedescendant":n.activeOptionIndex.value===null||(l=n.options.value[n.activeOptionIndex.value])==null?void 0:l.id,"aria-multiselectable":n.mode.value===1?!0:void 0,"aria-labelledby":(f=(c=aA(n.labelRef))==null?void 0:c.id)!=null?f:(u=aA(n.buttonRef))==null?void 0:u.id,"aria-orientation":n.orientation.value,id:g,onKeydown:i,role:"listbox",tabIndex:0,ref:n.optionsRef};return ge({ourProps:v,theirProps:h,slot:B,attrs:e,slots:t,features:Cr.RenderStrategy|Cr.Static,visible:a.value,name:"ListboxOptions"})}}}),Zv=KA({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-listbox.option-${Yt()}`}},setup(A,{slots:e,attrs:t,expose:r}){let n=Bi("ListboxOption"),s=rA(null);r({el:s,$el:s});let i=J(()=>n.activeOptionIndex.value!==null?n.options.value[n.activeOptionIndex.value].id===A.id:!1),o=J(()=>WA(n.mode.value,{0:()=>n.compare(nA(n.value.value),nA(A.value)),1:()=>nA(n.value.value).some(w=>n.compare(nA(w),nA(A.value)))})),a=J(()=>WA(n.mode.value,{1:()=>{var w;let Q=nA(n.value.value);return((w=n.options.value.find(y=>Q.some(F=>n.compare(nA(F),nA(y.dataRef.value)))))==null?void 0:w.id)===A.id},0:()=>o.value})),l=Nv(s),c=J(()=>({disabled:A.disabled,value:A.value,get textValue(){return l()},domRef:s}));NA(()=>n.registerOption(A.id,c)),Fe(()=>n.unregisterOption(A.id)),NA(()=>{oe([n.listboxState,o],()=>{n.listboxState.value===0&&o.value&&WA(n.mode.value,{1:()=>{a.value&&n.goToOption(se.Specific,A.id)},0:()=>{n.goToOption(se.Specific,A.id)}})},{immediate:!0})}),Ce(()=>{n.listboxState.value===0&&i.value&&n.activationTrigger.value!==0&&Se(()=>{var w,Q;return(Q=(w=aA(s))==null?void 0:w.scrollIntoView)==null?void 0:Q.call(w,{block:"nearest"})})});function u(w){if(A.disabled)return w.preventDefault();n.select(A.value),n.mode.value===0&&(n.closeListbox(),Se(()=>{var Q;return(Q=aA(n.buttonRef))==null?void 0:Q.focus({preventScroll:!0})}))}function f(){if(A.disabled)return n.goToOption(se.Nothing);n.goToOption(se.Specific,A.id)}let B=uv();function g(w){B.update(w)}function h(w){B.wasMoved(w)&&(A.disabled||i.value||n.goToOption(se.Specific,A.id,0))}function v(w){B.wasMoved(w)&&(A.disabled||i.value&&n.goToOption(se.Nothing))}return()=>{let{disabled:w}=A,Q={active:i.value,selected:o.value,disabled:w},{id:y,value:F,disabled:E,...m}=A,K={id:y,ref:s,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":o.value,disabled:void 0,onClick:u,onFocus:f,onPointerenter:g,onMouseenter:g,onPointermove:h,onMousemove:h,onPointerleave:v,onMouseleave:v};return ge({ourProps:K,theirProps:m,slot:Q,attrs:t,slots:e,name:"ListboxOption"})}}});function jv(A){let e={called:!1};return(...t)=>{if(!e.called)return e.called=!0,A(...t)}}function Yi(A,...e){A&&e.length>0&&A.classList.add(...e)}function ns(A,...e){A&&e.length>0&&A.classList.remove(...e)}var Xo=(A=>(A.Finished="finished",A.Cancelled="cancelled",A))(Xo||{});function zv(A,e){let t=Un();if(!A)return t.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(A),[s,i]=[r,n].map(o=>{let[a=0]=o.split(",").filter(Boolean).map(l=>l.includes("ms")?parseFloat(l):parseFloat(l)*1e3).sort((l,c)=>c-l);return a});return s!==0?t.setTimeout(()=>e("finished"),s+i):e("finished"),t.add(()=>e("cancelled")),t.dispose}function jc(A,e,t,r,n,s){let i=Un(),o=s!==void 0?jv(s):()=>{};return ns(A,...n),Yi(A,...e,...t),i.nextFrame(()=>{ns(A,...t),Yi(A,...r),i.add(zv(A,a=>(ns(A,...r,...e),Yi(A,...n),o(a))))}),i.add(()=>ns(A,...e,...t,...r,...n)),i.add(()=>o("cancelled")),i.dispose}function St(A=""){return A.split(" ").filter(e=>e.trim().length>1)}let La=Symbol("TransitionContext");var qv=(A=>(A.Visible="visible",A.Hidden="hidden",A))(qv||{});function Am(){return TA(La,null)!==null}function em(){let A=TA(La,null);if(A===null)throw new Error("A is used but it is missing a parent .");return A}function tm(){let A=TA(Sa,null);if(A===null)throw new Error("A is used but it is missing a parent .");return A}let Sa=Symbol("NestingContext");function gi(A){return"children"in A?gi(A.children):A.value.filter(({state:e})=>e==="visible").length>0}function qB(A){let e=rA([]),t=rA(!1);NA(()=>t.value=!0),Fe(()=>t.value=!1);function r(s,i=Ct.Hidden){let o=e.value.findIndex(({id:a})=>a===s);o!==-1&&(WA(i,{[Ct.Unmount](){e.value.splice(o,1)},[Ct.Hidden](){e.value[o].state="hidden"}}),!gi(e)&&t.value&&(A==null||A()))}function n(s){let i=e.value.find(({id:o})=>o===s);return i?i.state!=="visible"&&(i.state="visible"):e.value.push({id:s,state:"visible"}),()=>r(s,Ct.Unmount)}return{children:e,register:n,unregister:r}}let Ag=Cr.RenderStrategy,$o=KA({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(A,{emit:e,attrs:t,slots:r,expose:n}){let s=rA(0);function i(){s.value|=ZA.Opening,e("beforeEnter")}function o(){s.value&=~ZA.Opening,e("afterEnter")}function a(){s.value|=ZA.Closing,e("beforeLeave")}function l(){s.value&=~ZA.Closing,e("afterLeave")}if(!Am()&&Av())return()=>kA(eg,{...A,onBeforeEnter:i,onAfterEnter:o,onBeforeLeave:a,onAfterLeave:l},r);let c=rA(null),u=J(()=>A.unmount?Ct.Unmount:Ct.Hidden);n({el:c,$el:c});let{show:f,appear:B}=em(),{register:g,unregister:h}=tm(),v=rA(f.value?"visible":"hidden"),w={value:!0},Q=Yt(),y={value:!1},F=qB(()=>{!y.value&&v.value!=="hidden"&&(v.value="hidden",h(Q),l())});NA(()=>{let R=g(Q);Fe(R)}),Ce(()=>{if(u.value===Ct.Hidden&&Q){if(f.value&&v.value!=="visible"){v.value="visible";return}WA(v.value,{hidden:()=>h(Q),visible:()=>g(Q)})}});let E=St(A.enter),m=St(A.enterFrom),K=St(A.enterTo),U=St(A.entered),b=St(A.leave),N=St(A.leaveFrom),j=St(A.leaveTo);NA(()=>{Ce(()=>{if(v.value==="visible"){let R=aA(c);if(R instanceof Comment&&R.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function T(R){let oA=w.value&&!B.value,fA=aA(c);!fA||!(fA instanceof HTMLElement)||oA||(y.value=!0,f.value&&i(),f.value||a(),R(f.value?jc(fA,E,m,K,U,Z=>{y.value=!1,Z===Xo.Finished&&o()}):jc(fA,b,N,j,U,Z=>{y.value=!1,Z===Xo.Finished&&(gi(F)||(v.value="hidden",h(Q),l()))})))}return NA(()=>{oe([f],(R,oA,fA)=>{T(fA),w.value=!1},{immediate:!0})}),ae(Sa,F),_B(J(()=>WA(v.value,{visible:ZA.Open,hidden:ZA.Closed})|s.value)),()=>{let{appear:R,show:oA,enter:fA,enterFrom:Z,enterTo:G,entered:Y,leave:gA,leaveFrom:QA,leaveTo:xA,...dA}=A,$A={ref:c},zA={...dA,...B.value&&f.value&&Fn.isServer?{class:je([t.class,dA.class,...E,...m])}:{}};return ge({theirProps:zA,ourProps:$A,slot:{},slots:r,attrs:t,features:Ag,visible:v.value==="visible",name:"TransitionChild"})}}}),rm=$o,eg=KA({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(A,{emit:e,attrs:t,slots:r}){let n=fi(),s=J(()=>A.show===null&&n!==null?(n.value&ZA.Open)===ZA.Open:A.show);Ce(()=>{if(![!0,!1].includes(s.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=rA(s.value?"visible":"hidden"),o=qB(()=>{i.value="hidden"}),a=rA(!0),l={show:s,appear:J(()=>A.appear||!a.value)};return NA(()=>{Ce(()=>{a.value=!1,s.value?i.value="visible":gi(o)||(i.value="hidden")})}),ae(Sa,o),ae(La,l),()=>{let c=ba(A,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),u={unmount:A.unmount};return ge({ourProps:{...u,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[kA(rm,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...t,...u,...c},r.default)]},attrs:{},features:Ag,visible:i.value==="visible",name:"Transition"})}}});function nm(A,e){return ie(),dr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[uA("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])}function sm(A,e){return ie(),dr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[uA("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}const im={class:"block truncate"},om={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},am={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 text-amber-500"},Jo=KA({__name:"HeadlessSelect",props:{className:{default:""},sourceArr:{},defaultId:{}},emits:["selected"],setup(A,{emit:e}){const t=A,r=t.sourceArr.findIndex(i=>i.id===t.defaultId),n=rA(t.sourceArr[r]),s=e;return oe(n,(i,o)=>{s("selected",i)}),(i,o)=>(ie(),dr(EA(Jv),{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=a=>n.value=a)},{default:Qe(()=>[$("div",{class:je(["relative",t.className])},[uA(EA(Wv),{class:"relative w-full h-10 pl-3 pr-10 text-left bg-white border border-solid rounded-lg cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-900 focus:outline-none focus-visible:border-indigo-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300 sm:text-sm"},{default:Qe(()=>[$("span",im,ps(n.value.name),1),$("span",om,[uA(EA(sm),{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})])]),_:1}),uA(ga,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:Qe(()=>[uA(EA(Yv),{style:{"z-index":"100"},class:"absolute w-full py-1 mt-1 overflow-auto text-base bg-white rounded-md shadow-lg max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:Qe(()=>[(ie(!0),et(ee,null,vd(i.sourceArr,a=>(ie(),dr(EA(Zv),{key:`${a.id}`,value:a,as:"template"},{default:Qe(({active:l,selected:c})=>[$("li",{class:je([l?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-pointer select-none py-2 pl-10 pr-4"])},[$("span",{class:je([c?"font-medium":"font-normal","block truncate"])},ps(a.name),3),c?(ie(),et("span",am,[uA(EA(nm),{class:"w-5 h-5","aria-hidden":"true"})])):tf("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})],2)]),_:1},8,["modelValue"]))}}),lm="/assets/zero-guGwW_av.gif",cm={class:"z-0 py-4 text-center text-gray-400"},um={class:"flex flex-row flex-wrap items-center justify-center mt-2 mb-2 text-sm friends"},fm=["href"],Bm=["href"],gm=["href"],dm=["href"],hm=["href"],pm={class:"flex flex-row flex-wrap items-center justify-center w-full text-sm"},wm={class:"mx-3 text-gray-400"},Qm=["href"],Cm=$("br",{class:"show-on-mobile"},null,-1),Fm=["href"],Um=$("img",{class:"zero",src:lm,alt:"深圳市市场监督管理局企业主体身份公示"},null,-1),vm=KA({__name:"FooterNav",setup(A){const e=rA(`Copyright © ${new Date().getFullYear()}`),t=r=>`${r}?ref=nicelinks.site`;return(r,n)=>(ie(),et("footer",cm,[$("div",um,[$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://nicelinks.site/"),onClick:n[0]||(n[0]=s=>r.$reortGaEvent("nicelinks-site","footer"))},"倾城之链",8,fm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://read.lovejade.cn/"),onClick:n[1]||(n[1]=s=>r.$reortGaEvent("read-lovejade","footer"))},"曼妙句子",8,Bm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://quickapp.lovejade.cn/"),onClick:n[2]||(n[2]=s=>r.$reortGaEvent("quickapp-lovejade","footer"))},"静轩之别苑",8,gm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://forum.lovejade.cn/"),onClick:n[3]||(n[3]=s=>r.$reortGaEvent("forum-lovejade","footer"))},"悠然宜想亭",8,dm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://wiki.lovejade.cn/"),onClick:n[4]||(n[4]=s=>r.$reortGaEvent("beian","footer"))},"清风明月阁",8,hm)]),$("div",pm,[$("span",wm,ps(e.value),1),$("a",{target:"_blank",class:"text-gray-400 cursor-pointer hover:text-amber-500",onClick:n[5]||(n[5]=s=>r.$reortGaEvent("jeffjade","footer")),rel:"external noopener",href:t("https://www.jeffjade.com")},"晚晴幽草轩",8,Qm),ua("出品"),Cm,$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",rel:"external noopener",onClick:n[6]||(n[6]=s=>r.$reortGaEvent("beian","footer")),href:t("https://beian.miit.gov.cn/")},"粤ICP备17099767号",8,Fm),Um])]))}}),mm={},Em={class:"mx-auto w-full h-28 max-w-[450px] border border-gray-200 flex flex-row items-center bg-white rounded-md shadow-md z-0"},ym=Yd('

倾城之链 NICE LINKS

新一代导航平台,旨在云集全球优质网站

',2),bm=[ym];function Hm(A,e){return ie(),et("div",Em,[$("a",{class:"flex flex-row items-center justify-between w-full h-full px-4 py-4",href:"https://nicelinks.site/?ref=share.lovejade.cn",onClick:e[0]||(e[0]=t=>A.$reortGaEvent("recommand","footer")),target:"_blank"},bm)])}const Im=ei(mm,[["render",Hm]]),xm=$("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),Lm={class:"fixed inset-0 overflow-y-auto"},Sm={class:"flex items-center justify-center min-h-full p-4 text-center"},Tm={class:"flex items-center justify-start flex-auto px-2 py-2 m-4 rounded-md shadow-inner bg-slate-50"},Km={class:"flex flex-col flex-wrap items-center justify-center h-20 mx-2"},Dm=$("p",{class:"pb-2 font-medium text-gray-400"},"FILTERS",-1),_m=$("canvas",{id:"preview-area",class:"m-auto my-2"},null,-1),Om=KA({__name:"PreviewDialog",props:{visble:Boolean},emits:["change"],setup(A,{emit:e}){const t=A;let r=null;const n=e,s=rA(t.visble),i=[{name:"Golden",id:"golden"},{name:"Seagreen",id:"seagreen"},{name:"Islands",id:"islands"},{name:"Twenties",id:"twenties"},{name:"Radio",id:"radio"},{name:"Bluechrome",id:"bluechrome"},{name:"Obsidian",id:"obsidian"},{name:"Vintage",id:"vintage"},{name:"Pastel Pink",id:"pastel pink"}];oe(()=>t.visble,B=>{s.value=B,B&&yf(()=>import("./photon_rs-tR7_NtPy.js"),__vite__mapDeps([])).then(g=>{r=g,l(i[0].id)})});function o(){s.value=!1,n("change",!1)}function a(){return new Promise((B,g)=>{const h=document.getElementById("container");Mo(h).then(v=>{const w=v.toDataURL("image/png"),Q=new Image;Q.src=w,Q.onload=()=>{B(Q)}})})}const l=async B=>{const g=await a(),h={width:g.width,height:g.height},{canvas:v,ctx:w,image:Q}=c(g,h);r.filter(Q,B),r.putImageData(v,w,Q)};function c(B,g){const h=document.getElementById("preview-area"),v=h.getContext("2d");h.width=g.width/2,h.height=g.height/2,v.drawImage(B,0,0,g.width/2,g.height/2);const w=r.open_image(h,v);return{canvas:h,ctx:v,image:w}}function u(B){l(B.id)}const f=async B=>{const g=await a(),h={width:g.width,height:g.height},{canvas:v,ctx:w,image:Q}=c(g,h);r[B](Q),r.putImageData(v,w,Q)};return(B,g)=>(ie(),dr(EA(eg),{appear:"",show:s.value,as:"template"},{default:Qe(()=>[uA(EA(Ov),{as:"div",onClose:o,class:"relative z-10"},{default:Qe(()=>[uA(EA($o),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Qe(()=>[xm]),_:1}),$("div",Lm,[$("div",Sm,[uA(EA($o),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:Qe(()=>[uA(EA(Rv),{class:"w-full max-w-4xl p-6 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-2xl"},{default:Qe(()=>[uA(EA(kv),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:Qe(()=>[ua(" 效果预览 ")]),_:1}),$("div",Tm,[$("div",Km,[Dm,uA(Jo,{className:"w-36",sourceArr:i,defaultId:i[0].id,onSelected:u},null,8,["defaultId"])]),$("button",{class:"block h-12 p-2 m-2 border border-gray-300 rounded-md w-36 hover:bg-gray-50",onClick:g[0]||(g[0]=h=>f("emboss"))}," EMBOSS "),$("button",{class:"block h-12 p-2 m-2 border border-gray-300 rounded-md w-36 hover:bg-gray-50",onClick:g[1]||(g[1]=h=>f("grayscale"))}," GRAYSCALE "),$("button",{class:"block h-12 p-2 m-2 border border-gray-300 rounded-md w-36 hover:bg-gray-50",onClick:g[2]||(g[2]=h=>f("colorize"))}," COLORIZE ")]),_m]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"]))}}),zc="current-content",qc="is-with-date",Au="current-theme",eu="current-size",Wo=[{name:"元气",id:"vitality"},{name:"便签",id:"note"},{name:"古风",id:"antiquity"},{name:"经典",id:"classic"},{name:"暗黑",id:"dark"},{name:"纸屑",id:"bbburst"},{name:"渐变",id:"gradient"},{name:"公务",id:"official"},{name:"芒黄",id:"yellow"}],tu=[{name:"电脑端",id:"laptop",style:"width: 50rem; padding: 3rem;"},{name:"移动端",id:"mobile",style:"width: 20rem; padding: 1rem;"},{name:"平板端",id:"tablet",style:"width: 37.5rem; padding: 2rem;"},{name:"超级屏",id:"desktop",style:"width: 60rem; padding: 3rem;"}],Rm=`[玉桃文飨轩](https://share.lovejade.cn/),简单好用的在线文本工具;支持将 Markdown、rich text、word 等格式内容,快速转化为 png、pdf、html、PPT 等文件,并支持一键下载、社交分享、自定义设置等功能。 +`));let B=KB((i=u.props)!=null?i:{},a),g=tt(u,B);for(let h in B)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=B[h]);return g}return Array.isArray(l)&&l.length===1?l[0]:l}return kA(o,Object.assign({},a,c),{default:()=>l})}function TB(A){return A.flatMap(e=>e.type===ee?TB(e.children):[e])}function KB(...A){if(A.length===0)return{};if(A.length===1)return A[0];let e={},t={};for(let r of A)for(let n in r)n.startsWith("on")&&typeof r[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(r[n])):e[n]=r[n];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(e,{[r](n,...s){let i=t[r];for(let o of i){if(n instanceof Event&&n.defaultPrevented)return;o(n,...s)}}});return e}function WU(A){let e=Object.assign({},A);for(let t in e)e[t]===void 0&&delete e[t];return e}function ba(A,e=[]){let t=Object.assign({},A);for(let r of e)r in t&&delete t[r];return t}function YU(A){return A==null?!1:typeof A.type=="string"||typeof A.type=="object"||typeof A.type=="function"}let ZU=0;function jU(){return++ZU}function Yt(){return jU()}var PA=(A=>(A.Space=" ",A.Enter="Enter",A.Escape="Escape",A.Backspace="Backspace",A.Delete="Delete",A.ArrowLeft="ArrowLeft",A.ArrowUp="ArrowUp",A.ArrowRight="ArrowRight",A.ArrowDown="ArrowDown",A.Home="Home",A.End="End",A.PageUp="PageUp",A.PageDown="PageDown",A.Tab="Tab",A))(PA||{});function zU(A){throw new Error("Unexpected object: "+A)}var se=(A=>(A[A.First=0]="First",A[A.Previous=1]="Previous",A[A.Next=2]="Next",A[A.Last=3]="Last",A[A.Specific=4]="Specific",A[A.Nothing=5]="Nothing",A))(se||{});function qU(A,e){let t=e.resolveItems();if(t.length<=0)return null;let r=e.resolveActiveIndex(),n=r??-1,s=(()=>{switch(A.focus){case 0:return t.findIndex(i=>!e.resolveDisabled(i));case 1:{let i=t.slice().reverse().findIndex((o,a,l)=>n!==-1&&l.length-a-1>=n?!1:!e.resolveDisabled(o));return i===-1?i:t.length-1-i}case 2:return t.findIndex((i,o)=>o<=n?!1:!e.resolveDisabled(i));case 3:{let i=t.slice().reverse().findIndex(o=>!e.resolveDisabled(o));return i===-1?i:t.length-1-i}case 4:return t.findIndex(i=>e.resolveId(i)===A.id);case 5:return null;default:zU(A)}})();return s===-1?r:s}function aA(A){var e;return A==null||A.value==null?null:(e=A.value.$el)!=null?e:A.value}let DB=Symbol("Context");var ZA=(A=>(A[A.Open=1]="Open",A[A.Closed=2]="Closed",A[A.Closing=4]="Closing",A[A.Opening=8]="Opening",A))(ZA||{});function Av(){return fi()!==null}function fi(){return TA(DB,null)}function _B(A){ae(DB,A)}function Vc(A,e){if(A)return A;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function ev(A,e){let t=rA(Vc(A.value.type,A.value.as));return NA(()=>{t.value=Vc(A.value.type,A.value.as)}),Ce(()=>{var r;t.value||aA(e)&&aA(e)instanceof HTMLButtonElement&&!((r=aA(e))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}var tv=Object.defineProperty,rv=(A,e,t)=>e in A?tv(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t,Xc=(A,e,t)=>(rv(A,typeof e!="symbol"?e+"":e,t),t);class nv{constructor(){Xc(this,"current",this.detect()),Xc(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let Fn=new nv;function yr(A){if(Fn.isServer)return null;if(A instanceof Node)return A.ownerDocument;if(A!=null&&A.hasOwnProperty("value")){let e=aA(A);if(e)return e.ownerDocument}return document}let No=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(A=>`${A}:not([tabindex='-1'])`).join(",");var ht=(A=>(A[A.First=1]="First",A[A.Previous=2]="Previous",A[A.Next=4]="Next",A[A.Last=8]="Last",A[A.WrapAround=16]="WrapAround",A[A.NoScroll=32]="NoScroll",A))(ht||{}),OB=(A=>(A[A.Error=0]="Error",A[A.Overflow=1]="Overflow",A[A.Success=2]="Success",A[A.Underflow=3]="Underflow",A))(OB||{}),sv=(A=>(A[A.Previous=-1]="Previous",A[A.Next=1]="Next",A))(sv||{});function iv(A=document.body){return A==null?[]:Array.from(A.querySelectorAll(No)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ha=(A=>(A[A.Strict=0]="Strict",A[A.Loose=1]="Loose",A))(Ha||{});function RB(A,e=0){var t;return A===((t=yr(A))==null?void 0:t.body)?!1:WA(e,{0(){return A.matches(No)},1(){let r=A;for(;r!==null;){if(r.matches(No))return!0;r=r.parentElement}return!1}})}var ov=(A=>(A[A.Keyboard=0]="Keyboard",A[A.Mouse=1]="Mouse",A))(ov||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",A=>{A.metaKey||A.altKey||A.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",A=>{A.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:A.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xt(A){A==null||A.focus({preventScroll:!0})}let av=["textarea","input"].join(",");function lv(A){var e,t;return(t=(e=A==null?void 0:A.matches)==null?void 0:e.call(A,av))!=null?t:!1}function kB(A,e=t=>t){return A.slice().sort((t,r)=>{let n=e(t),s=e(r);if(n===null||s===null)return 0;let i=n.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ds(A,e,{sorted:t=!0,relativeTo:r=null,skipElements:n=[]}={}){var s;let i=(s=Array.isArray(A)?A.length>0?A[0].ownerDocument:document:A==null?void 0:A.ownerDocument)!=null?s:document,o=Array.isArray(A)?t?kB(A):A:iv(A);n.length>0&&o.length>1&&(o=o.filter(g=>!n.includes(g))),r=r??i.activeElement;let a=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,o.indexOf(r))-1;if(e&4)return Math.max(0,o.indexOf(r))+1;if(e&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=e&32?{preventScroll:!0}:{},u=0,f=o.length,B;do{if(u>=f||u+f<=0)return 0;let g=l+u;if(e&16)g=(g+f)%f;else{if(g<0)return 3;if(g>=f)return 1}B=o[g],B==null||B.focus(c),u+=a}while(B!==i.activeElement);return e&6&&lv(B)&&B.select(),2}function ts(A,e,t){Fn.isServer||Ce(r=>{document.addEventListener(A,e,t),r(()=>document.removeEventListener(A,e,t))})}function MB(A,e,t){Fn.isServer||Ce(r=>{window.addEventListener(A,e,t),r(()=>window.removeEventListener(A,e,t))})}function NB(A,e,t=J(()=>!0)){function r(s,i){if(!t.value||s.defaultPrevented)return;let o=i(s);if(o===null||!o.getRootNode().contains(o))return;let a=function l(c){return typeof c=="function"?l(c()):Array.isArray(c)||c instanceof Set?c:[c]}(A);for(let l of a){if(l===null)continue;let c=l instanceof HTMLElement?l:aA(l);if(c!=null&&c.contains(o)||s.composed&&s.composedPath().includes(c))return}return!RB(o,Ha.Loose)&&o.tabIndex!==-1&&s.preventDefault(),e(s,o)}let n=rA(null);ts("pointerdown",s=>{var i,o;t.value&&(n.value=((o=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:o[0])||s.target)},!0),ts("mousedown",s=>{var i,o;t.value&&(n.value=((o=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:o[0])||s.target)},!0),ts("click",s=>{n.value&&(r(s,()=>n.value),n.value=null)},!0),ts("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),MB("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var pn=(A=>(A[A.None=1]="None",A[A.Focusable=2]="Focusable",A[A.Hidden=4]="Hidden",A))(pn||{});let _s=KA({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(A,{slots:e,attrs:t}){return()=>{let{features:r,...n}=A,s={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ge({ourProps:s,theirProps:n,slot:{},attrs:t,slots:e,name:"Hidden"})}}});function PB(A={},e=null,t=[]){for(let[r,n]of Object.entries(A))VB(t,GB(e,r),n);return t}function GB(A,e){return A?A+"["+e+"]":e}function VB(A,e,t){if(Array.isArray(t))for(let[r,n]of t.entries())VB(A,GB(e,r.toString()),n);else t instanceof Date?A.push([e,t.toISOString()]):typeof t=="boolean"?A.push([e,t?"1":"0"]):typeof t=="string"?A.push([e,t]):typeof t=="number"?A.push([e,`${t}`]):t==null?A.push([e,""]):PB(t,e,A)}function cv(A,e,t){let r=rA(t==null?void 0:t.value),n=J(()=>A.value!==void 0);return[J(()=>n.value?A.value:r.value),function(s){return n.value||(r.value=s),e==null?void 0:e(s)}]}function $c(A){return[A.screenX,A.screenY]}function uv(){let A=rA([-1,-1]);return{wasMoved(e){let t=$c(e);return A.value[0]===t[0]&&A.value[1]===t[1]?!1:(A.value=t,!0)},update(e){A.value=$c(e)}}}function fv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ia(A){typeof queueMicrotask=="function"?queueMicrotask(A):Promise.resolve().then(A).catch(e=>setTimeout(()=>{throw e}))}function Un(){let A=[],e={addEventListener(t,r,n,s){return t.addEventListener(r,n,s),e.add(()=>t.removeEventListener(r,n,s))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);e.add(()=>cancelAnimationFrame(r))},nextFrame(...t){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...t)})},setTimeout(...t){let r=setTimeout(...t);e.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return Ia(()=>{r.current&&t[0]()}),e.add(()=>{r.current=!1})},style(t,r,n){let s=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:n}),this.add(()=>{Object.assign(t.style,{[r]:s})})},group(t){let r=Un();return t(r),this.add(()=>r.dispose())},add(t){return A.push(t),()=>{let r=A.indexOf(t);if(r>=0)for(let n of A.splice(r,1))n()}},dispose(){for(let t of A.splice(0))t()}};return e}var Jr=(A=>(A[A.Forwards=0]="Forwards",A[A.Backwards=1]="Backwards",A))(Jr||{});function Bv(){let A=rA(0);return MB("keydown",e=>{e.key==="Tab"&&(A.value=e.shiftKey?1:0)}),A}function XB(A,e,t,r){Fn.isServer||Ce(n=>{A=A??window,A.addEventListener(e,t,r),n(()=>A.removeEventListener(e,t,r))})}function gv(A){function e(){document.readyState!=="loading"&&(A(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function $B(A){if(!A)return new Set;if(typeof A=="function")return new Set(A());let e=new Set;for(let t of A.value){let r=aA(t);r instanceof HTMLElement&&e.add(r)}return e}var JB=(A=>(A[A.None=1]="None",A[A.InitialFocus=2]="InitialFocus",A[A.TabLock=4]="TabLock",A[A.FocusLock=8]="FocusLock",A[A.RestoreFocus=16]="RestoreFocus",A[A.All=30]="All",A))(JB||{});let _r=Object.assign(KA({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:rA(new Set)}},inheritAttrs:!1,setup(A,{attrs:e,slots:t,expose:r}){let n=rA(null);r({el:n,$el:n});let s=J(()=>yr(n)),i=rA(!1);NA(()=>i.value=!0),Fe(()=>i.value=!1),hv({ownerDocument:s},J(()=>i.value&&!!(A.features&16)));let o=pv({ownerDocument:s,container:n,initialFocus:J(()=>A.initialFocus)},J(()=>i.value&&!!(A.features&2)));wv({ownerDocument:s,container:n,containers:A.containers,previousActiveElement:o},J(()=>i.value&&!!(A.features&8)));let a=Bv();function l(B){let g=aA(n);g&&(h=>h())(()=>{WA(a.value,{[Jr.Forwards]:()=>{ds(g,ht.First,{skipElements:[B.relatedTarget]})},[Jr.Backwards]:()=>{ds(g,ht.Last,{skipElements:[B.relatedTarget]})}})})}let c=rA(!1);function u(B){B.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function f(B){if(!i.value)return;let g=$B(A.containers);aA(n)instanceof HTMLElement&&g.add(aA(n));let h=B.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(WB(g,h)||(c.value?ds(aA(n),WA(a.value,{[Jr.Forwards]:()=>ht.Next,[Jr.Backwards]:()=>ht.Previous})|ht.WrapAround,{relativeTo:B.target}):B.target instanceof HTMLElement&&Xt(B.target)))}return()=>{let B={},g={ref:n,onKeydown:u,onFocusout:f},{features:h,initialFocus:v,containers:w,...Q}=A;return kA(ee,[!!(h&4)&&kA(_s,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:pn.Focusable}),ge({ourProps:g,theirProps:{...e,...Q},slot:B,attrs:e,slots:t,name:"FocusTrap"}),!!(h&4)&&kA(_s,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:l,features:pn.Focusable})])}}}),{features:JB}),Ot=[];gv(()=>{function A(e){e.target instanceof HTMLElement&&e.target!==document.body&&Ot[0]!==e.target&&(Ot.unshift(e.target),Ot=Ot.filter(t=>t!=null&&t.isConnected),Ot.splice(10))}window.addEventListener("click",A,{capture:!0}),window.addEventListener("mousedown",A,{capture:!0}),window.addEventListener("focus",A,{capture:!0}),document.body.addEventListener("click",A,{capture:!0}),document.body.addEventListener("mousedown",A,{capture:!0}),document.body.addEventListener("focus",A,{capture:!0})});function dv(A){let e=rA(Ot.slice());return oe([A],([t],[r])=>{r===!0&&t===!1?Ia(()=>{e.value.splice(0)}):r===!1&&t===!0&&(e.value=Ot.slice())},{flush:"post"}),()=>{var t;return(t=e.value.find(r=>r!=null&&r.isConnected))!=null?t:null}}function hv({ownerDocument:A},e){let t=dv(e);NA(()=>{Ce(()=>{var r,n;e.value||((r=A.value)==null?void 0:r.activeElement)===((n=A.value)==null?void 0:n.body)&&Xt(t())},{flush:"post"})}),Fe(()=>{e.value&&Xt(t())})}function pv({ownerDocument:A,container:e,initialFocus:t},r){let n=rA(null),s=rA(!1);return NA(()=>s.value=!0),Fe(()=>s.value=!1),NA(()=>{oe([e,t,r],(i,o)=>{if(i.every((l,c)=>(o==null?void 0:o[c])===l)||!r.value)return;let a=aA(e);a&&Ia(()=>{var l,c;if(!s.value)return;let u=aA(t),f=(l=A.value)==null?void 0:l.activeElement;if(u){if(u===f){n.value=f;return}}else if(a.contains(f)){n.value=f;return}u?Xt(u):ds(a,ht.First|ht.NoScroll)===OB.Error&&console.warn("There are no focusable elements inside the "),n.value=(c=A.value)==null?void 0:c.activeElement})},{immediate:!0,flush:"post"})}),n}function wv({ownerDocument:A,container:e,containers:t,previousActiveElement:r},n){var s;XB((s=A.value)==null?void 0:s.defaultView,"focus",i=>{if(!n.value)return;let o=$B(t);aA(e)instanceof HTMLElement&&o.add(aA(e));let a=r.value;if(!a)return;let l=i.target;l&&l instanceof HTMLElement?WB(o,l)?(r.value=l,Xt(l)):(i.preventDefault(),i.stopPropagation(),Xt(a)):Xt(r.value)},!0)}function WB(A,e){for(let t of A)if(t.contains(e))return!0;return!1}let Wi=new Map,Or=new Map;function Jc(A,e=rA(!0)){Ce(t=>{var r;if(!e.value)return;let n=aA(A);if(!n)return;t(function(){var i;if(!n)return;let o=(i=Or.get(n))!=null?i:1;if(o===1?Or.delete(n):Or.set(n,o-1),o!==1)return;let a=Wi.get(n);a&&(a["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",a["aria-hidden"]),n.inert=a.inert,Wi.delete(n))});let s=(r=Or.get(n))!=null?r:0;Or.set(n,s+1),s===0&&(Wi.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0)})}let YB=Symbol("ForcePortalRootContext");function Qv(){return TA(YB,!1)}let Wc=KA({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(A,{slots:e,attrs:t}){return ae(YB,A.force),()=>{let{force:r,...n}=A;return ge({theirProps:n,ourProps:{},slot:{},slots:e,attrs:t,name:"ForcePortalRoot"})}}});function Cv(A){let e=yr(A);if(!e){if(A===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${A}`)}let t=e.getElementById("headlessui-portal-root");if(t)return t;let r=e.createElement("div");return r.setAttribute("id","headlessui-portal-root"),e.body.appendChild(r)}let Fv=KA({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(A,{slots:e,attrs:t}){let r=rA(null),n=J(()=>yr(r)),s=Qv(),i=TA(ZB,null),o=rA(s===!0||i==null?Cv(r.value):i.resolveTarget());Ce(()=>{s||i!=null&&(o.value=i.resolveTarget())});let a=TA(Po,null);return NA(()=>{let l=aA(r);l&&a&&Fe(a.register(l))}),Fe(()=>{var l,c;let u=(l=n.value)==null?void 0:l.getElementById("headlessui-portal-root");u&&o.value===u&&o.value.children.length<=0&&((c=o.value.parentElement)==null||c.removeChild(o.value))}),()=>{if(o.value===null)return null;let l={ref:r,"data-headlessui-portal":""};return kA(Xd,{to:o.value},ge({ourProps:l,theirProps:A,slot:{},attrs:t,slots:e,name:"Portal"}))}}}),Po=Symbol("PortalParentContext");function Uv(){let A=TA(Po,null),e=rA([]);function t(s){return e.value.push(s),A&&A.register(s),()=>r(s)}function r(s){let i=e.value.indexOf(s);i!==-1&&e.value.splice(i,1),A&&A.unregister(s)}let n={register:t,unregister:r,portals:e};return[e,KA({name:"PortalWrapper",setup(s,{slots:i}){return ae(Po,n),()=>{var o;return(o=i.default)==null?void 0:o.call(i)}}})]}let ZB=Symbol("PortalGroupContext"),vv=KA({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(A,{attrs:e,slots:t}){let r=mr({resolveTarget(){return A.target}});return ae(ZB,r),()=>{let{target:n,...s}=A;return ge({theirProps:s,ourProps:{},slot:{},attrs:e,slots:t,name:"PortalGroup"})}}}),jB=Symbol("StackContext");var Go=(A=>(A[A.Add=0]="Add",A[A.Remove=1]="Remove",A))(Go||{});function mv(){return TA(jB,()=>{})}function Ev({type:A,enabled:e,element:t,onUpdate:r}){let n=mv();function s(...i){r==null||r(...i),n(...i)}NA(()=>{oe(e,(i,o)=>{i?s(0,A,t):o===!0&&s(1,A,t)},{immediate:!0,flush:"sync"})}),Fe(()=>{e.value&&s(1,A,t)}),ae(jB,s)}let yv=Symbol("DescriptionContext");function bv({slot:A=rA({}),name:e="Description",props:t={}}={}){let r=rA([]);function n(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return ae(yv,{register:n,slot:A,name:e,props:t}),J(()=>r.value.length>0?r.value.join(" "):void 0)}function Hv(A){let e=bu(A.getSnapshot());return Fe(A.subscribe(()=>{e.value=A.getSnapshot()})),e}function Iv(A,e){let t=A(),r=new Set;return{getSnapshot(){return t},subscribe(n){return r.add(n),()=>r.delete(n)},dispatch(n,...s){let i=e[n].call(t,...s);i&&(t=i,r.forEach(o=>o()))}}}function xv(){let A;return{before({doc:e}){var t;let r=e.documentElement;A=((t=e.defaultView)!=null?t:window).innerWidth-r.clientWidth},after({doc:e,d:t}){let r=e.documentElement,n=r.clientWidth-r.offsetWidth,s=A-n;t.style(r,"paddingRight",`${s}px`)}}}function Lv(){if(!fv())return{};let A;return{before(){A=window.pageYOffset},after({doc:e,d:t,meta:r}){function n(i){return r.containers.flatMap(o=>o()).some(o=>o.contains(i))}if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let i=Un();i.style(e.documentElement,"scroll-behavior","auto"),t.add(()=>t.microTask(()=>i.dispose()))}t.style(e.body,"marginTop",`-${A}px`),window.scrollTo(0,0);let s=null;t.addEventListener(e,"click",i=>{if(i.target instanceof HTMLElement)try{let o=i.target.closest("a");if(!o)return;let{hash:a}=new URL(o.href),l=e.querySelector(a);l&&!n(l)&&(s=l)}catch{}},!0),t.addEventListener(e,"touchmove",i=>{i.target instanceof HTMLElement&&!n(i.target)&&i.preventDefault()},{passive:!1}),t.add(()=>{window.scrollTo(0,window.pageYOffset+A),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})}}}function Sv(){return{before({doc:A,d:e}){e.style(A.documentElement,"overflow","hidden")}}}function Tv(A){let e={};for(let t of A)Object.assign(e,t(e));return e}let Mt=Iv(()=>new Map,{PUSH(A,e){var t;let r=(t=this.get(A))!=null?t:{doc:A,count:0,d:Un(),meta:new Set};return r.count++,r.meta.add(e),this.set(A,r),this},POP(A,e){let t=this.get(A);return t&&(t.count--,t.meta.delete(e)),this},SCROLL_PREVENT({doc:A,d:e,meta:t}){let r={doc:A,d:e,meta:Tv(t)},n=[Lv(),xv(),Sv()];n.forEach(({before:s})=>s==null?void 0:s(r)),n.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:A}){A.dispose()},TEARDOWN({doc:A}){this.delete(A)}});Mt.subscribe(()=>{let A=Mt.getSnapshot(),e=new Map;for(let[t]of A)e.set(t,t.documentElement.style.overflow);for(let t of A.values()){let r=e.get(t.doc)==="hidden",n=t.count!==0;(n&&!r||!n&&r)&&Mt.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&Mt.dispatch("TEARDOWN",t)}});function Kv(A,e,t){let r=Hv(Mt),n=J(()=>{let s=A.value?r.value.get(A.value):void 0;return s?s.count>0:!1});return oe([A,e],([s,i],[o],a)=>{if(!s||!i)return;Mt.dispatch("PUSH",s,t);let l=!1;a(()=>{l||(Mt.dispatch("POP",o??s,t),l=!0)})},{immediate:!0}),n}function Dv({defaultContainers:A=[],portals:e,mainTreeNodeRef:t}={}){let r=rA(null),n=yr(r);function s(){var i;let o=[];for(let a of A)a!==null&&(a instanceof HTMLElement?o.push(a):"value"in a&&a.value instanceof HTMLElement&&o.push(a.value));if(e!=null&&e.value)for(let a of e.value)o.push(a);for(let a of(i=n==null?void 0:n.querySelectorAll("html > *, body > *"))!=null?i:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&a.id!=="headlessui-portal-root"&&(a.contains(aA(r))||o.some(l=>a.contains(l))||o.push(a));return o}return{resolveContainers:s,contains(i){return s().some(o=>o.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return t!=null?null:kA(_s,{features:pn.Hidden,ref:r})}}}var _v=(A=>(A[A.Open=0]="Open",A[A.Closed=1]="Closed",A))(_v||{});let Vo=Symbol("DialogContext");function xa(A){let e=TA(Vo,null);if(e===null){let t=new Error(`<${A} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,xa),t}return e}let rs="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Ov=KA({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:rs},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${Yt()}`}},emits:{close:A=>!0},setup(A,{emit:e,attrs:t,slots:r,expose:n}){var s;let i=rA(!1);NA(()=>{i.value=!0});let o=rA(0),a=fi(),l=J(()=>A.open===rs&&a!==null?(a.value&ZA.Open)===ZA.Open:A.open),c=rA(null),u=J(()=>yr(c));if(n({el:c,$el:c}),!(A.open!==rs||a!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof l.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value===rs?void 0:A.open}`);let f=J(()=>i.value&&l.value?0:1),B=J(()=>f.value===0),g=J(()=>o.value>1),h=TA(Vo,null)!==null,[v,w]=Uv(),{resolveContainers:Q,mainTreeNodeRef:y,MainTreeNode:F}=Dv({portals:v,defaultContainers:[J(()=>{var G;return(G=R.panelRef.value)!=null?G:c.value})]}),E=J(()=>g.value?"parent":"leaf"),m=J(()=>a!==null?(a.value&ZA.Closing)===ZA.Closing:!1),K=J(()=>h||m.value?!1:B.value),U=J(()=>{var G,Y,gA;return(gA=Array.from((Y=(G=u.value)==null?void 0:G.querySelectorAll("body > *"))!=null?Y:[]).find(QA=>QA.id==="headlessui-portal-root"?!1:QA.contains(aA(y))&&QA instanceof HTMLElement))!=null?gA:null});Jc(U,K);let b=J(()=>g.value?!0:B.value),N=J(()=>{var G,Y,gA;return(gA=Array.from((Y=(G=u.value)==null?void 0:G.querySelectorAll("[data-headlessui-portal]"))!=null?Y:[]).find(QA=>QA.contains(aA(y))&&QA instanceof HTMLElement))!=null?gA:null});Jc(N,b),Ev({type:"Dialog",enabled:J(()=>f.value===0),element:c,onUpdate:(G,Y)=>{if(Y==="Dialog")return WA(G,{[Go.Add]:()=>o.value+=1,[Go.Remove]:()=>o.value-=1})}});let j=bv({name:"DialogDescription",slot:J(()=>({open:l.value}))}),T=rA(null),R={titleId:T,panelRef:rA(null),dialogState:f,setTitleId(G){T.value!==G&&(T.value=G)},close(){e("close",!1)}};ae(Vo,R);let oA=J(()=>!(!B.value||g.value));NB(Q,(G,Y)=>{R.close(),Se(()=>Y==null?void 0:Y.focus())},oA);let fA=J(()=>!(g.value||f.value!==0));XB((s=u.value)==null?void 0:s.defaultView,"keydown",G=>{fA.value&&(G.defaultPrevented||G.key===PA.Escape&&(G.preventDefault(),G.stopPropagation(),R.close()))});let Z=J(()=>!(m.value||f.value!==0||h));return Kv(u,Z,G=>{var Y;return{containers:[...(Y=G.containers)!=null?Y:[],Q]}}),Ce(G=>{if(f.value!==0)return;let Y=aA(c);if(!Y)return;let gA=new ResizeObserver(QA=>{for(let xA of QA){let dA=xA.target.getBoundingClientRect();dA.x===0&&dA.y===0&&dA.width===0&&dA.height===0&&R.close()}});gA.observe(Y),G(()=>gA.disconnect())}),()=>{let{id:G,open:Y,initialFocus:gA,...QA}=A,xA={...t,ref:c,id:G,role:"dialog","aria-modal":f.value===0?!0:void 0,"aria-labelledby":T.value,"aria-describedby":j.value},dA={open:f.value===0};return kA(Wc,{force:!0},()=>[kA(Fv,()=>kA(vv,{target:c.value},()=>kA(Wc,{force:!1},()=>kA(_r,{initialFocus:gA,containers:Q,features:B.value?WA(E.value,{parent:_r.features.RestoreFocus,leaf:_r.features.All&~_r.features.FocusLock}):_r.features.None},()=>kA(w,{},()=>ge({ourProps:xA,theirProps:{...QA,...t},slot:dA,attrs:t,slots:r,visible:f.value===0,features:Cr.RenderStrategy|Cr.Static,name:"Dialog"})))))),kA(F)])}}}),Rv=KA({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${Yt()}`}},setup(A,{attrs:e,slots:t,expose:r}){let n=xa("DialogPanel");r({el:n.panelRef,$el:n.panelRef});function s(i){i.stopPropagation()}return()=>{let{id:i,...o}=A,a={id:i,ref:n.panelRef,onClick:s};return ge({ourProps:a,theirProps:o,slot:{open:n.dialogState.value===0},attrs:e,slots:t,name:"DialogPanel"})}}}),kv=KA({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`headlessui-dialog-title-${Yt()}`}},setup(A,{attrs:e,slots:t}){let r=xa("DialogTitle");return NA(()=>{r.setTitleId(A.id),Fe(()=>r.setTitleId(null))}),()=>{let{id:n,...s}=A;return ge({ourProps:{id:n},theirProps:s,slot:{open:r.dialogState.value===0},attrs:e,slots:t,name:"DialogTitle"})}}}),Yc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Zc(A){var e,t;let r=(e=A.innerText)!=null?e:"",n=A.cloneNode(!0);if(!(n instanceof HTMLElement))return r;let s=!1;for(let o of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))o.remove(),s=!0;let i=s?(t=n.innerText)!=null?t:"":r;return Yc.test(i)&&(i=i.replace(Yc,"")),i}function Mv(A){let e=A.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=A.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(n=>{let s=document.getElementById(n);if(s){let i=s.getAttribute("aria-label");return typeof i=="string"?i.trim():Zc(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Zc(A).trim()}function Nv(A){let e=rA(""),t=rA("");return()=>{let r=aA(A);if(!r)return"";let n=r.innerText;if(e.value===n)return t.value;let s=Mv(r).trim().toLowerCase();return e.value=n,t.value=s,s}}function Pv(A,e){return A===e}var Gv=(A=>(A[A.Open=0]="Open",A[A.Closed=1]="Closed",A))(Gv||{}),Vv=(A=>(A[A.Single=0]="Single",A[A.Multi=1]="Multi",A))(Vv||{}),Xv=(A=>(A[A.Pointer=0]="Pointer",A[A.Other=1]="Other",A))(Xv||{});function $v(A){requestAnimationFrame(()=>requestAnimationFrame(A))}let zB=Symbol("ListboxContext");function Bi(A){let e=TA(zB,null);if(e===null){let t=new Error(`<${A} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Bi),t}return e}let Jv=KA({name:"Listbox",emits:{"update:modelValue":A=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Pv},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(A,{slots:e,attrs:t,emit:r}){let n=rA(1),s=rA(null),i=rA(null),o=rA(null),a=rA([]),l=rA(""),c=rA(null),u=rA(1);function f(y=F=>F){let F=c.value!==null?a.value[c.value]:null,E=kB(y(a.value.slice()),K=>aA(K.dataRef.domRef)),m=F?E.indexOf(F):null;return m===-1&&(m=null),{options:E,activeOptionIndex:m}}let B=J(()=>A.multiple?1:0),[g,h]=cv(J(()=>A.modelValue),y=>r("update:modelValue",y),J(()=>A.defaultValue)),v=J(()=>g.value===void 0?WA(B.value,{1:[],0:void 0}):g.value),w={listboxState:n,value:v,mode:B,compare(y,F){if(typeof A.by=="string"){let E=A.by;return(y==null?void 0:y[E])===(F==null?void 0:F[E])}return A.by(y,F)},orientation:J(()=>A.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:i,optionsRef:o,disabled:J(()=>A.disabled),options:a,searchQuery:l,activeOptionIndex:c,activationTrigger:u,closeListbox(){A.disabled||n.value!==1&&(n.value=1,c.value=null)},openListbox(){A.disabled||n.value!==0&&(n.value=0)},goToOption(y,F,E){if(A.disabled||n.value===1)return;let m=f(),K=qU(y===se.Specific?{focus:se.Specific,id:F}:{focus:y},{resolveItems:()=>m.options,resolveActiveIndex:()=>m.activeOptionIndex,resolveId:U=>U.id,resolveDisabled:U=>U.dataRef.disabled});l.value="",c.value=K,u.value=E??1,a.value=m.options},search(y){if(A.disabled||n.value===1)return;let F=l.value!==""?0:1;l.value+=y.toLowerCase();let E=(c.value!==null?a.value.slice(c.value+F).concat(a.value.slice(0,c.value+F)):a.value).find(K=>K.dataRef.textValue.startsWith(l.value)&&!K.dataRef.disabled),m=E?a.value.indexOf(E):-1;m===-1||m===c.value||(c.value=m,u.value=1)},clearSearch(){A.disabled||n.value!==1&&l.value!==""&&(l.value="")},registerOption(y,F){let E=f(m=>[...m,{id:y,dataRef:F}]);a.value=E.options,c.value=E.activeOptionIndex},unregisterOption(y){let F=f(E=>{let m=E.findIndex(K=>K.id===y);return m!==-1&&E.splice(m,1),E});a.value=F.options,c.value=F.activeOptionIndex,u.value=1},theirOnChange(y){A.disabled||h(y)},select(y){A.disabled||h(WA(B.value,{0:()=>y,1:()=>{let F=nA(w.value.value).slice(),E=nA(y),m=F.findIndex(K=>w.compare(E,nA(K)));return m===-1?F.push(E):F.splice(m,1),F}}))}};NB([i,o],(y,F)=>{var E;w.closeListbox(),RB(F,Ha.Loose)||(y.preventDefault(),(E=aA(i))==null||E.focus())},J(()=>n.value===0)),ae(zB,w),_B(J(()=>WA(n.value,{0:ZA.Open,1:ZA.Closed})));let Q=J(()=>{var y;return(y=aA(i))==null?void 0:y.closest("form")});return NA(()=>{oe([Q],()=>{if(!Q.value||A.defaultValue===void 0)return;function y(){w.theirOnChange(A.defaultValue)}return Q.value.addEventListener("reset",y),()=>{var F;(F=Q.value)==null||F.removeEventListener("reset",y)}},{immediate:!0})}),()=>{let{name:y,modelValue:F,disabled:E,form:m,...K}=A,U={open:n.value===0,disabled:E,value:v.value};return kA(ee,[...y!=null&&v.value!=null?PB({[y]:v.value}).map(([b,N])=>kA(_s,WU({features:pn.Hidden,key:b,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:m,name:b,value:N}))):[],ge({ourProps:{},theirProps:{...t,...ba(K,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:U,slots:e,attrs:t,name:"Listbox"})])}}}),Wv=KA({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-listbox-button-${Yt()}`}},setup(A,{attrs:e,slots:t,expose:r}){let n=Bi("ListboxButton");r({el:n.buttonRef,$el:n.buttonRef});function s(l){switch(l.key){case PA.Space:case PA.Enter:case PA.ArrowDown:l.preventDefault(),n.openListbox(),Se(()=>{var c;(c=aA(n.optionsRef))==null||c.focus({preventScroll:!0}),n.value.value||n.goToOption(se.First)});break;case PA.ArrowUp:l.preventDefault(),n.openListbox(),Se(()=>{var c;(c=aA(n.optionsRef))==null||c.focus({preventScroll:!0}),n.value.value||n.goToOption(se.Last)});break}}function i(l){switch(l.key){case PA.Space:l.preventDefault();break}}function o(l){n.disabled.value||(n.listboxState.value===0?(n.closeListbox(),Se(()=>{var c;return(c=aA(n.buttonRef))==null?void 0:c.focus({preventScroll:!0})})):(l.preventDefault(),n.openListbox(),$v(()=>{var c;return(c=aA(n.optionsRef))==null?void 0:c.focus({preventScroll:!0})})))}let a=ev(J(()=>({as:A.as,type:e.type})),n.buttonRef);return()=>{var l,c;let u={open:n.listboxState.value===0,disabled:n.disabled.value,value:n.value.value},{id:f,...B}=A,g={ref:n.buttonRef,id:f,type:a.value,"aria-haspopup":"listbox","aria-controls":(l=aA(n.optionsRef))==null?void 0:l.id,"aria-expanded":n.listboxState.value===0,"aria-labelledby":n.labelRef.value?[(c=aA(n.labelRef))==null?void 0:c.id,f].join(" "):void 0,disabled:n.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:i,onClick:o};return ge({ourProps:g,theirProps:B,slot:u,attrs:e,slots:t,name:"ListboxButton"})}}}),Yv=KA({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-listbox-options-${Yt()}`}},setup(A,{attrs:e,slots:t,expose:r}){let n=Bi("ListboxOptions"),s=rA(null);r({el:n.optionsRef,$el:n.optionsRef});function i(l){switch(s.value&&clearTimeout(s.value),l.key){case PA.Space:if(n.searchQuery.value!=="")return l.preventDefault(),l.stopPropagation(),n.search(l.key);case PA.Enter:if(l.preventDefault(),l.stopPropagation(),n.activeOptionIndex.value!==null){let c=n.options.value[n.activeOptionIndex.value];n.select(c.dataRef.value)}n.mode.value===0&&(n.closeListbox(),Se(()=>{var c;return(c=aA(n.buttonRef))==null?void 0:c.focus({preventScroll:!0})}));break;case WA(n.orientation.value,{vertical:PA.ArrowDown,horizontal:PA.ArrowRight}):return l.preventDefault(),l.stopPropagation(),n.goToOption(se.Next);case WA(n.orientation.value,{vertical:PA.ArrowUp,horizontal:PA.ArrowLeft}):return l.preventDefault(),l.stopPropagation(),n.goToOption(se.Previous);case PA.Home:case PA.PageUp:return l.preventDefault(),l.stopPropagation(),n.goToOption(se.First);case PA.End:case PA.PageDown:return l.preventDefault(),l.stopPropagation(),n.goToOption(se.Last);case PA.Escape:l.preventDefault(),l.stopPropagation(),n.closeListbox(),Se(()=>{var c;return(c=aA(n.buttonRef))==null?void 0:c.focus({preventScroll:!0})});break;case PA.Tab:l.preventDefault(),l.stopPropagation();break;default:l.key.length===1&&(n.search(l.key),s.value=setTimeout(()=>n.clearSearch(),350));break}}let o=fi(),a=J(()=>o!==null?(o.value&ZA.Open)===ZA.Open:n.listboxState.value===0);return()=>{var l,c,u,f;let B={open:n.listboxState.value===0},{id:g,...h}=A,v={"aria-activedescendant":n.activeOptionIndex.value===null||(l=n.options.value[n.activeOptionIndex.value])==null?void 0:l.id,"aria-multiselectable":n.mode.value===1?!0:void 0,"aria-labelledby":(f=(c=aA(n.labelRef))==null?void 0:c.id)!=null?f:(u=aA(n.buttonRef))==null?void 0:u.id,"aria-orientation":n.orientation.value,id:g,onKeydown:i,role:"listbox",tabIndex:0,ref:n.optionsRef};return ge({ourProps:v,theirProps:h,slot:B,attrs:e,slots:t,features:Cr.RenderStrategy|Cr.Static,visible:a.value,name:"ListboxOptions"})}}}),Zv=KA({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-listbox.option-${Yt()}`}},setup(A,{slots:e,attrs:t,expose:r}){let n=Bi("ListboxOption"),s=rA(null);r({el:s,$el:s});let i=J(()=>n.activeOptionIndex.value!==null?n.options.value[n.activeOptionIndex.value].id===A.id:!1),o=J(()=>WA(n.mode.value,{0:()=>n.compare(nA(n.value.value),nA(A.value)),1:()=>nA(n.value.value).some(w=>n.compare(nA(w),nA(A.value)))})),a=J(()=>WA(n.mode.value,{1:()=>{var w;let Q=nA(n.value.value);return((w=n.options.value.find(y=>Q.some(F=>n.compare(nA(F),nA(y.dataRef.value)))))==null?void 0:w.id)===A.id},0:()=>o.value})),l=Nv(s),c=J(()=>({disabled:A.disabled,value:A.value,get textValue(){return l()},domRef:s}));NA(()=>n.registerOption(A.id,c)),Fe(()=>n.unregisterOption(A.id)),NA(()=>{oe([n.listboxState,o],()=>{n.listboxState.value===0&&o.value&&WA(n.mode.value,{1:()=>{a.value&&n.goToOption(se.Specific,A.id)},0:()=>{n.goToOption(se.Specific,A.id)}})},{immediate:!0})}),Ce(()=>{n.listboxState.value===0&&i.value&&n.activationTrigger.value!==0&&Se(()=>{var w,Q;return(Q=(w=aA(s))==null?void 0:w.scrollIntoView)==null?void 0:Q.call(w,{block:"nearest"})})});function u(w){if(A.disabled)return w.preventDefault();n.select(A.value),n.mode.value===0&&(n.closeListbox(),Se(()=>{var Q;return(Q=aA(n.buttonRef))==null?void 0:Q.focus({preventScroll:!0})}))}function f(){if(A.disabled)return n.goToOption(se.Nothing);n.goToOption(se.Specific,A.id)}let B=uv();function g(w){B.update(w)}function h(w){B.wasMoved(w)&&(A.disabled||i.value||n.goToOption(se.Specific,A.id,0))}function v(w){B.wasMoved(w)&&(A.disabled||i.value&&n.goToOption(se.Nothing))}return()=>{let{disabled:w}=A,Q={active:i.value,selected:o.value,disabled:w},{id:y,value:F,disabled:E,...m}=A,K={id:y,ref:s,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":o.value,disabled:void 0,onClick:u,onFocus:f,onPointerenter:g,onMouseenter:g,onPointermove:h,onMousemove:h,onPointerleave:v,onMouseleave:v};return ge({ourProps:K,theirProps:m,slot:Q,attrs:t,slots:e,name:"ListboxOption"})}}});function jv(A){let e={called:!1};return(...t)=>{if(!e.called)return e.called=!0,A(...t)}}function Yi(A,...e){A&&e.length>0&&A.classList.add(...e)}function ns(A,...e){A&&e.length>0&&A.classList.remove(...e)}var Xo=(A=>(A.Finished="finished",A.Cancelled="cancelled",A))(Xo||{});function zv(A,e){let t=Un();if(!A)return t.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(A),[s,i]=[r,n].map(o=>{let[a=0]=o.split(",").filter(Boolean).map(l=>l.includes("ms")?parseFloat(l):parseFloat(l)*1e3).sort((l,c)=>c-l);return a});return s!==0?t.setTimeout(()=>e("finished"),s+i):e("finished"),t.add(()=>e("cancelled")),t.dispose}function jc(A,e,t,r,n,s){let i=Un(),o=s!==void 0?jv(s):()=>{};return ns(A,...n),Yi(A,...e,...t),i.nextFrame(()=>{ns(A,...t),Yi(A,...r),i.add(zv(A,a=>(ns(A,...r,...e),Yi(A,...n),o(a))))}),i.add(()=>ns(A,...e,...t,...r,...n)),i.add(()=>o("cancelled")),i.dispose}function St(A=""){return A.split(" ").filter(e=>e.trim().length>1)}let La=Symbol("TransitionContext");var qv=(A=>(A.Visible="visible",A.Hidden="hidden",A))(qv||{});function Am(){return TA(La,null)!==null}function em(){let A=TA(La,null);if(A===null)throw new Error("A is used but it is missing a parent .");return A}function tm(){let A=TA(Sa,null);if(A===null)throw new Error("A is used but it is missing a parent .");return A}let Sa=Symbol("NestingContext");function gi(A){return"children"in A?gi(A.children):A.value.filter(({state:e})=>e==="visible").length>0}function qB(A){let e=rA([]),t=rA(!1);NA(()=>t.value=!0),Fe(()=>t.value=!1);function r(s,i=Ct.Hidden){let o=e.value.findIndex(({id:a})=>a===s);o!==-1&&(WA(i,{[Ct.Unmount](){e.value.splice(o,1)},[Ct.Hidden](){e.value[o].state="hidden"}}),!gi(e)&&t.value&&(A==null||A()))}function n(s){let i=e.value.find(({id:o})=>o===s);return i?i.state!=="visible"&&(i.state="visible"):e.value.push({id:s,state:"visible"}),()=>r(s,Ct.Unmount)}return{children:e,register:n,unregister:r}}let Ag=Cr.RenderStrategy,$o=KA({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(A,{emit:e,attrs:t,slots:r,expose:n}){let s=rA(0);function i(){s.value|=ZA.Opening,e("beforeEnter")}function o(){s.value&=~ZA.Opening,e("afterEnter")}function a(){s.value|=ZA.Closing,e("beforeLeave")}function l(){s.value&=~ZA.Closing,e("afterLeave")}if(!Am()&&Av())return()=>kA(eg,{...A,onBeforeEnter:i,onAfterEnter:o,onBeforeLeave:a,onAfterLeave:l},r);let c=rA(null),u=J(()=>A.unmount?Ct.Unmount:Ct.Hidden);n({el:c,$el:c});let{show:f,appear:B}=em(),{register:g,unregister:h}=tm(),v=rA(f.value?"visible":"hidden"),w={value:!0},Q=Yt(),y={value:!1},F=qB(()=>{!y.value&&v.value!=="hidden"&&(v.value="hidden",h(Q),l())});NA(()=>{let R=g(Q);Fe(R)}),Ce(()=>{if(u.value===Ct.Hidden&&Q){if(f.value&&v.value!=="visible"){v.value="visible";return}WA(v.value,{hidden:()=>h(Q),visible:()=>g(Q)})}});let E=St(A.enter),m=St(A.enterFrom),K=St(A.enterTo),U=St(A.entered),b=St(A.leave),N=St(A.leaveFrom),j=St(A.leaveTo);NA(()=>{Ce(()=>{if(v.value==="visible"){let R=aA(c);if(R instanceof Comment&&R.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function T(R){let oA=w.value&&!B.value,fA=aA(c);!fA||!(fA instanceof HTMLElement)||oA||(y.value=!0,f.value&&i(),f.value||a(),R(f.value?jc(fA,E,m,K,U,Z=>{y.value=!1,Z===Xo.Finished&&o()}):jc(fA,b,N,j,U,Z=>{y.value=!1,Z===Xo.Finished&&(gi(F)||(v.value="hidden",h(Q),l()))})))}return NA(()=>{oe([f],(R,oA,fA)=>{T(fA),w.value=!1},{immediate:!0})}),ae(Sa,F),_B(J(()=>WA(v.value,{visible:ZA.Open,hidden:ZA.Closed})|s.value)),()=>{let{appear:R,show:oA,enter:fA,enterFrom:Z,enterTo:G,entered:Y,leave:gA,leaveFrom:QA,leaveTo:xA,...dA}=A,$A={ref:c},zA={...dA,...B.value&&f.value&&Fn.isServer?{class:je([t.class,dA.class,...E,...m])}:{}};return ge({theirProps:zA,ourProps:$A,slot:{},slots:r,attrs:t,features:Ag,visible:v.value==="visible",name:"TransitionChild"})}}}),rm=$o,eg=KA({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(A,{emit:e,attrs:t,slots:r}){let n=fi(),s=J(()=>A.show===null&&n!==null?(n.value&ZA.Open)===ZA.Open:A.show);Ce(()=>{if(![!0,!1].includes(s.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=rA(s.value?"visible":"hidden"),o=qB(()=>{i.value="hidden"}),a=rA(!0),l={show:s,appear:J(()=>A.appear||!a.value)};return NA(()=>{Ce(()=>{a.value=!1,s.value?i.value="visible":gi(o)||(i.value="hidden")})}),ae(Sa,o),ae(La,l),()=>{let c=ba(A,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),u={unmount:A.unmount};return ge({ourProps:{...u,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[kA(rm,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...t,...u,...c},r.default)]},attrs:{},features:Ag,visible:i.value==="visible",name:"Transition"})}}});function nm(A,e){return ie(),dr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[uA("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])}function sm(A,e){return ie(),dr("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[uA("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}const im={class:"block truncate"},om={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},am={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 text-amber-500"},Jo=KA({__name:"HeadlessSelect",props:{className:{default:""},sourceArr:{},defaultId:{}},emits:["selected"],setup(A,{emit:e}){const t=A,r=t.sourceArr.findIndex(i=>i.id===t.defaultId),n=rA(t.sourceArr[r]),s=e;return oe(n,(i,o)=>{s("selected",i)}),(i,o)=>(ie(),dr(EA(Jv),{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=a=>n.value=a)},{default:Qe(()=>[$("div",{class:je(["relative",t.className])},[uA(EA(Wv),{class:"relative w-full h-10 pl-3 pr-10 text-left bg-white border border-solid rounded-lg cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-900 focus:outline-none focus-visible:border-indigo-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300 sm:text-sm"},{default:Qe(()=>[$("span",im,ps(n.value.name),1),$("span",om,[uA(EA(sm),{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})])]),_:1}),uA(ga,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:Qe(()=>[uA(EA(Yv),{style:{"z-index":"100"},class:"absolute w-full py-1 mt-1 overflow-auto text-base bg-white rounded-md shadow-lg max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:Qe(()=>[(ie(!0),et(ee,null,vd(i.sourceArr,a=>(ie(),dr(EA(Zv),{key:`${a.id}`,value:a,as:"template"},{default:Qe(({active:l,selected:c})=>[$("li",{class:je([l?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-pointer select-none py-2 pl-10 pr-4"])},[$("span",{class:je([c?"font-medium":"font-normal","block truncate"])},ps(a.name),3),c?(ie(),et("span",am,[uA(EA(nm),{class:"w-5 h-5","aria-hidden":"true"})])):tf("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})],2)]),_:1},8,["modelValue"]))}}),lm="/assets/zero-guGwW_av.gif",cm={class:"z-0 my-4 text-center text-gray-400"},um={class:"flex flex-row flex-wrap items-center justify-center mt-2 mb-2 text-sm friends"},fm=["href"],Bm=["href"],gm=["href"],dm=["href"],hm=["href"],pm={class:"flex flex-row flex-wrap items-center justify-center w-full text-sm"},wm={class:"mx-3 text-gray-400"},Qm=["href"],Cm=$("br",{class:"show-on-mobile"},null,-1),Fm=["href"],Um=$("img",{class:"zero",src:lm,alt:"深圳市市场监督管理局企业主体身份公示"},null,-1),vm=KA({__name:"FooterNav",setup(A){const e=rA(`Copyright © ${new Date().getFullYear()}`),t=r=>`${r}?ref=nicelinks.site`;return(r,n)=>(ie(),et("footer",cm,[$("div",um,[$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://nicelinks.site/"),onClick:n[0]||(n[0]=s=>r.$reortGaEvent("nicelinks-site","footer"))},"倾城之链",8,fm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://read.lovejade.cn/"),onClick:n[1]||(n[1]=s=>r.$reortGaEvent("read-lovejade","footer"))},"曼妙句子",8,Bm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://quickapp.lovejade.cn/"),onClick:n[2]||(n[2]=s=>r.$reortGaEvent("quickapp-lovejade","footer"))},"静轩之别苑",8,gm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://forum.lovejade.cn/"),onClick:n[3]||(n[3]=s=>r.$reortGaEvent("forum-lovejade","footer"))},"悠然宜想亭",8,dm),$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",href:t("https://wiki.lovejade.cn/"),onClick:n[4]||(n[4]=s=>r.$reortGaEvent("beian","footer"))},"清风明月阁",8,hm)]),$("div",pm,[$("span",wm,ps(e.value),1),$("a",{target:"_blank",class:"text-gray-400 cursor-pointer hover:text-amber-500",onClick:n[5]||(n[5]=s=>r.$reortGaEvent("jeffjade","footer")),rel:"external noopener",href:t("https://www.jeffjade.com")},"晚晴幽草轩",8,Qm),ua("出品"),Cm,$("a",{target:"_blank",class:"mx-3 text-gray-400 cursor-pointer hover:text-amber-500",rel:"external noopener",onClick:n[6]||(n[6]=s=>r.$reortGaEvent("beian","footer")),href:t("https://beian.miit.gov.cn/")},"粤ICP备17099767号",8,Fm),Um])]))}}),mm={},Em={class:"mx-auto w-full h-28 my-4 max-w-[450px] border border-gray-200 flex flex-row items-center bg-white rounded-md shadow-md z-0"},ym=Yd('

倾城之链 NICE LINKS

新一代导航平台,旨在云集全球优质网站

',2),bm=[ym];function Hm(A,e){return ie(),et("div",Em,[$("a",{class:"flex flex-row items-center justify-between w-full h-full px-4 py-4",href:"https://nicelinks.site/?ref=share.lovejade.cn",onClick:e[0]||(e[0]=t=>A.$reortGaEvent("recommand","footer")),target:"_blank"},bm)])}const Im=ei(mm,[["render",Hm]]),xm=$("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),Lm={class:"fixed inset-0 overflow-y-auto"},Sm={class:"flex items-center justify-center min-h-full p-4 text-center"},Tm={class:"flex items-center justify-start flex-auto px-2 py-2 m-4 rounded-md shadow-inner bg-slate-50"},Km={class:"flex flex-col flex-wrap items-center justify-center h-20 mx-2"},Dm=$("p",{class:"pb-2 font-medium text-gray-400"},"FILTERS",-1),_m=$("canvas",{id:"preview-area",class:"m-auto my-2"},null,-1),Om=KA({__name:"PreviewDialog",props:{visble:Boolean},emits:["change"],setup(A,{emit:e}){const t=A;let r=null;const n=e,s=rA(t.visble),i=[{name:"Golden",id:"golden"},{name:"Seagreen",id:"seagreen"},{name:"Islands",id:"islands"},{name:"Twenties",id:"twenties"},{name:"Radio",id:"radio"},{name:"Bluechrome",id:"bluechrome"},{name:"Obsidian",id:"obsidian"},{name:"Vintage",id:"vintage"},{name:"Pastel Pink",id:"pastel pink"}];oe(()=>t.visble,B=>{s.value=B,B&&yf(()=>import("./photon_rs-tR7_NtPy.js"),__vite__mapDeps([])).then(g=>{r=g,l(i[0].id)})});function o(){s.value=!1,n("change",!1)}function a(){return new Promise((B,g)=>{const h=document.getElementById("container");Mo(h).then(v=>{const w=v.toDataURL("image/png"),Q=new Image;Q.src=w,Q.onload=()=>{B(Q)}})})}const l=async B=>{const g=await a(),h={width:g.width,height:g.height},{canvas:v,ctx:w,image:Q}=c(g,h);r.filter(Q,B),r.putImageData(v,w,Q)};function c(B,g){const h=document.getElementById("preview-area"),v=h.getContext("2d");h.width=g.width/2,h.height=g.height/2,v.drawImage(B,0,0,g.width/2,g.height/2);const w=r.open_image(h,v);return{canvas:h,ctx:v,image:w}}function u(B){l(B.id)}const f=async B=>{const g=await a(),h={width:g.width,height:g.height},{canvas:v,ctx:w,image:Q}=c(g,h);r[B](Q),r.putImageData(v,w,Q)};return(B,g)=>(ie(),dr(EA(eg),{appear:"",show:s.value,as:"template"},{default:Qe(()=>[uA(EA(Ov),{as:"div",onClose:o,class:"relative z-10"},{default:Qe(()=>[uA(EA($o),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:Qe(()=>[xm]),_:1}),$("div",Lm,[$("div",Sm,[uA(EA($o),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:Qe(()=>[uA(EA(Rv),{class:"w-full max-w-4xl p-6 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-2xl"},{default:Qe(()=>[uA(EA(kv),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:Qe(()=>[ua(" 效果预览 ")]),_:1}),$("div",Tm,[$("div",Km,[Dm,uA(Jo,{className:"w-36",sourceArr:i,defaultId:i[0].id,onSelected:u},null,8,["defaultId"])]),$("button",{class:"block h-12 p-2 m-2 border border-gray-300 rounded-md w-36 hover:bg-gray-50",onClick:g[0]||(g[0]=h=>f("emboss"))}," EMBOSS "),$("button",{class:"block h-12 p-2 m-2 border border-gray-300 rounded-md w-36 hover:bg-gray-50",onClick:g[1]||(g[1]=h=>f("grayscale"))}," GRAYSCALE "),$("button",{class:"block h-12 p-2 m-2 border border-gray-300 rounded-md w-36 hover:bg-gray-50",onClick:g[2]||(g[2]=h=>f("colorize"))}," COLORIZE ")]),_m]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"]))}}),zc="current-content",qc="is-with-date",Au="current-theme",eu="current-size",Wo=[{name:"元气",id:"vitality"},{name:"便签",id:"note"},{name:"古风",id:"antiquity"},{name:"经典",id:"classic"},{name:"暗黑",id:"dark"},{name:"纸屑",id:"bbburst"},{name:"渐变",id:"gradient"},{name:"公务",id:"official"},{name:"芒黄",id:"yellow"}],tu=[{name:"电脑端",id:"laptop",style:"width: 50rem; padding: 3rem;"},{name:"移动端",id:"mobile",style:"width: 20rem; padding: 1rem;"},{name:"平板端",id:"tablet",style:"width: 37.5rem; padding: 2rem;"},{name:"超级屏",id:"desktop",style:"width: 60rem; padding: 3rem;"}],Rm=`[玉桃文飨轩](https://share.lovejade.cn/),简单好用的在线文本工具;支持将 Markdown、rich text、word 等格式内容,快速转化为 png、pdf、html、PPT 等文件,并支持一键下载、社交分享、自定义设置等功能。 ## 如何使用? 在 Foucs 状态,输入您的内容(支持 \`Markdown\` 格式);在 Blur 状态,查看预览效果;点击「保存图片」,即可将内容生成图片并下载至本地。 -`,km=Vh({id:"content",state:()=>{const A=window.innerWidth>=960?"laptop":"mobile";return{isWithDate:!!localStorage.getItem(qc),content:localStorage.getItem(zc)||Rm,currentTheme:localStorage.getItem(Au)||Wo[0].id,currentSize:localStorage.getItem(eu)||A}},getters:{},actions:{updateContent(A){!A||A==="undefined"||(this.content=A,localStorage.setItem(zc,A))},updateWithDate(A){this.isWithDate=A,localStorage.setItem(qc,A?"1":"")},updateCurrentTheme(A){this.currentTheme=A,localStorage.setItem(Au,A)},updateCurrentSize(A){this.currentSize=A,localStorage.setItem(eu,A)}}}),Mm=A=>new Promise(e=>setTimeout(e,A||1e3)),Nm=A=>{const e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678";let t="";const r=new Array(A);return Array.from(r).map(()=>t+=e[Math.floor(Math.random()*e.length)]),t},Pm=()=>{const A=new Date,e=A.getFullYear().toString().replace("20",""),t=A.getMonth().toString().padStart(2,"0"),r=A.getDate().toString().padStart(2,"0"),n=Nm(4);return[e,t,r,n].join("-")};function Gm(A){const e=document.createElement("a");e.href=A.toDataURL("image/png"),e.download=Pm()+".png",e.click()}function Vm(A){A.toBlob(e=>{const t=new ClipboardItem({"image/png":e});navigator.clipboard.write([t]).then(()=>{console.log("Image copied to clipboard")}).catch(r=>{console.error("Could not copy image to clipboard: ",r)})},"image/png")}function Xm(){const A=new Date,e=A.getFullYear(),t=`${A.getMonth()+1}`,r=`${A.getDate()}`;return[e,t.padStart(2,0),r.padStart(2,0)].join("-")}const br=A=>(_u("data-v-8a6b6b74"),A=A(),Ou(),A),$m={key:0,class:"bg"},Jm={class:"flex flex-col items-center w-full px-4 py-4 mx-auto my-8 bg-white rounded-md shadow-lg operate-area"},Wm={class:"flex flex-wrap justify-between w-full space-x-6 item-center"},Ym={class:"flex justify-between flex-auto mobile-adjust"},Zm={class:"flex flex-col items-center justify-between h-20"},jm=br(()=>$("p",{class:"pb-2 font-medium text-gray-400"},"选择主题",-1)),zm={class:"flex flex-col items-center justify-between h-20 select-zize"},qm=br(()=>$("p",{class:"pb-2 font-medium text-gray-400"},"选择尺寸",-1)),AE={class:"flex flex-col items-center justify-between w-24 h-20"},eE=br(()=>$("p",{class:"pb-2 font-medium text-gray-400"},"日期",-1)),tE={id:"toast-success",class:"fixed flex items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow top-10",role:"alert"},rE=br(()=>$("div",{class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg"},[$("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[$("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})])],-1)),nE={class:"text-sm font-normal ms-3"},sE=br(()=>$("span",{class:"sr-only"},"Close",-1)),iE=br(()=>$("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[$("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)),oE=[sE,iE],aE=KA({__name:"Home",setup(A){const e=km();let{currentSize:t,currentTheme:r}=Xh(e);const n=rA(null);let s=rA(!1),i=rA(null);const{proxy:o}=rf();oe(i,async()=>{await Mm(5e3),i.value=null}),NA(()=>{u(),B()});const a=J(()=>tu.filter(U=>U.id===t.value)[0]),l=J(()=>Wo.filter(U=>U.id===r.value)[0]);function c(){if(!n.value)return;let U=document.getElementById("date-time");if(U)return U.remove();e.isWithDate&&n.value.innerHTML&&(U=`

`,n.value.innerHTML+=U)}function u(){n.value.innerHTML=pw(e.content,{breaks:!0})}function f(){n.value.innerText=e.content}function B(){const U=document.querySelector("#editor");U==null||U.addEventListener("paste",b=>{let j=(b.clipboardData||(b==null?void 0:b.dataTransfer)).getData("text/plain");j=j.replaceAll(` -`,"
");const T=window.getSelection();if(!(T!=null&&T.rangeCount))return!1;T.deleteFromDocument(),document.execCommand("insertHTML",!1,j),b.preventDefault()})}function g(U){e.updateWithDate(U),c()}function h(U){e.updateCurrentTheme(U.id),o.$reortGaEvent("item","main")}function v(U){e.updateCurrentSize(U.id),o.$reortGaEvent("size","main")}function w(){f(),o.$reortGaEvent("focus","main")}function Q(){e.updateContent(n.value.innerText),u(),c(),o.$reortGaEvent("blur","main")}function y(){o.$reortGaEvent("save-img","main");const U=document.getElementById("container");Mo(U).then(b=>{Gm(b),i.value="已成功为你保存图片"})}function F(){i.value=null}function E(){s.value=!0}function m(){o.$reortGaEvent("save-img","main");const U=document.getElementById("container");Mo(U).then(b=>{Vm(b),i.value="已复制图片至您的剪切板"})}function K(U){s.value=U}return(U,b)=>(ie(),et(ee,null,[$("div",{id:"container",ref:"container",class:je(["container",`${l.value.id}-box`]),style:Ns(a.value.style)},[l.value.id==="official"?(ie(),et("div",$m)):tf("",!0),$("div",{class:je(["content",l.value.id])},[$("div",{id:"editor",ref_key:"editor",ref:n,onBlur:Q,onFocus:w,class:"editor markdown",contenteditable:"true"},null,544)],2)],6),$("div",Jm,[$("div",Wm,[$("div",Ym,[$("div",Zm,[jm,uA(Jo,{className:"w-24",sourceArr:EA(Wo),defaultId:EA(r),onSelected:h},null,8,["sourceArr","defaultId"])]),$("div",zm,[qm,uA(Jo,{className:"w-28",sourceArr:EA(tu),defaultId:EA(t),onSelected:v},null,8,["sourceArr","defaultId"])]),$("div",AE,[eE,uA(JU,{state:EA(e).isWithDate,onCheck:g,class:"block"},null,8,["state"])])])]),$("div",{class:"flex flex-row items-center w-full px-4 py-4 space-x-6 justify-evenly",role:"group"},[$("button",{class:"block px-4 py-2 text-lg font-bold text-gray-900 border border-gray-300 rounded-md dark:border-gray-900 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900",onClick:E}," 预览图片 "),$("button",{class:"block px-4 py-2 text-lg font-bold text-gray-900 border border-gray-300 rounded-md dark:border-gray-900 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900",onClick:m}," 复制图片 "),$("button",{class:"block px-4 py-2 text-lg font-bold text-gray-900 border border-gray-300 rounded-md dark:border-gray-900 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900",onClick:y}," 保存图片 ")]),Mu($("div",tE,[rE,$("div",nE,ps(EA(i)),1),$("button",{type:"button",onClick:F,class:"ms-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8","data-dismiss-target":"#toast-success","aria-label":"Close"},oE)],512),[[ph,EA(i)]])]),uA(Om,{visble:EA(s),onChange:K},null,8,["visble"]),uA(Im),uA(vm)],64))}}),lE=ei(aE,[["__scopeId","data-v-8a6b6b74"]]),cE=$p({history:lp("/"),routes:[{path:"/",name:"home",component:lE},{path:"/about",name:"about",component:()=>yf(()=>import("./About-rr_Y-DhJ.js"),__vite__mapDeps([0,1]))}]}),vn=Dh(sw);vn.use(Rh());vn.use(cE);vn.config.globalProperties.$reortGaEvent=(A,e,t)=>{(window.gtag||(()=>{}))("event",A,{event_category:e,event_label:t||A})};vn.config.errorHandler=(A,e,t)=>{console.error(A,e,t)};vn.mount("#app");export{ei as _,$ as a,et as c,ie as o}; +`,km=Vh({id:"content",state:()=>{const A=window.innerWidth>=960?"laptop":"mobile";return{isWithDate:!!localStorage.getItem(qc),content:localStorage.getItem(zc)||Rm,currentTheme:localStorage.getItem(Au)||Wo[0].id,currentSize:localStorage.getItem(eu)||A}},getters:{},actions:{updateContent(A){!A||A==="undefined"||(this.content=A,localStorage.setItem(zc,A))},updateWithDate(A){this.isWithDate=A,localStorage.setItem(qc,A?"1":"")},updateCurrentTheme(A){this.currentTheme=A,localStorage.setItem(Au,A)},updateCurrentSize(A){this.currentSize=A,localStorage.setItem(eu,A)}}}),Mm=A=>new Promise(e=>setTimeout(e,A||1e3)),Nm=A=>{const e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678";let t="";const r=new Array(A);return Array.from(r).map(()=>t+=e[Math.floor(Math.random()*e.length)]),t},Pm=()=>{const A=new Date,e=A.getFullYear().toString().replace("20",""),t=A.getMonth().toString().padStart(2,"0"),r=A.getDate().toString().padStart(2,"0"),n=Nm(4);return[e,t,r,n].join("-")};function Gm(A){const e=document.createElement("a");e.href=A.toDataURL("image/png"),e.download=Pm()+".png",e.click()}function Vm(A){A.toBlob(e=>{const t=new ClipboardItem({"image/png":e});navigator.clipboard.write([t]).then(()=>{console.log("Image copied to clipboard")}).catch(r=>{console.error("Could not copy image to clipboard: ",r)})},"image/png")}function Xm(){const A=new Date,e=A.getFullYear(),t=`${A.getMonth()+1}`,r=`${A.getDate()}`;return[e,t.padStart(2,0),r.padStart(2,0)].join("-")}const br=A=>(_u("data-v-2ba83585"),A=A(),Ou(),A),$m={key:0,class:"bg"},Jm={class:"flex flex-col items-center w-full px-4 py-4 mx-auto my-4 bg-white rounded-md shadow-lg operate-area"},Wm={class:"flex flex-wrap justify-between w-full space-x-6 item-center"},Ym={class:"flex justify-between flex-auto mobile-adjust"},Zm={class:"flex flex-col items-center justify-between h-20"},jm=br(()=>$("p",{class:"pb-2 font-medium text-gray-400"},"选择主题",-1)),zm={class:"flex flex-col items-center justify-between h-20 select-zize"},qm=br(()=>$("p",{class:"pb-2 font-medium text-gray-400"},"选择尺寸",-1)),AE={class:"flex flex-col items-center justify-between w-24 h-20"},eE=br(()=>$("p",{class:"pb-2 font-medium text-gray-400"},"日期",-1)),tE={id:"toast-success",class:"fixed flex items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow top-10",role:"alert"},rE=br(()=>$("div",{class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg"},[$("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[$("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})])],-1)),nE={class:"text-sm font-normal ms-3"},sE=br(()=>$("span",{class:"sr-only"},"Close",-1)),iE=br(()=>$("svg",{class:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[$("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1)),oE=[sE,iE],aE=KA({__name:"Home",setup(A){const e=km();let{currentSize:t,currentTheme:r}=Xh(e);const n=rA(null);let s=rA(!1),i=rA(null);const{proxy:o}=rf();oe(i,async()=>{await Mm(5e3),i.value=null}),NA(()=>{u(),B()});const a=J(()=>tu.filter(U=>U.id===t.value)[0]),l=J(()=>Wo.filter(U=>U.id===r.value)[0]);function c(){if(!n.value)return;let U=document.getElementById("date-time");if(U)return U.remove();e.isWithDate&&n.value.innerHTML&&(U=`

`,n.value.innerHTML+=U)}function u(){n.value.innerHTML=pw(e.content,{breaks:!0})}function f(){n.value.innerText=e.content}function B(){const U=document.querySelector("#editor");U==null||U.addEventListener("paste",b=>{let j=(b.clipboardData||(b==null?void 0:b.dataTransfer)).getData("text/plain");j=j.replaceAll(` +`,"
");const T=window.getSelection();if(!(T!=null&&T.rangeCount))return!1;T.deleteFromDocument(),document.execCommand("insertHTML",!1,j),b.preventDefault()})}function g(U){e.updateWithDate(U),c()}function h(U){e.updateCurrentTheme(U.id),o.$reortGaEvent("item","main")}function v(U){e.updateCurrentSize(U.id),o.$reortGaEvent("size","main")}function w(){f(),o.$reortGaEvent("focus","main")}function Q(){e.updateContent(n.value.innerText),u(),c(),o.$reortGaEvent("blur","main")}function y(){o.$reortGaEvent("save-img","main");const U=document.getElementById("container");Mo(U).then(b=>{Gm(b),i.value="已成功为你保存图片"})}function F(){i.value=null}function E(){s.value=!0}function m(){o.$reortGaEvent("save-img","main");const U=document.getElementById("container");Mo(U).then(b=>{Vm(b),i.value="已复制图片至您的剪切板"})}function K(U){s.value=U}return(U,b)=>(ie(),et(ee,null,[$("div",{id:"container",ref:"container",class:je(["container my-4",`${l.value.id}-box`]),style:Ns(a.value.style)},[l.value.id==="official"?(ie(),et("div",$m)):tf("",!0),$("div",{class:je(["content",l.value.id])},[$("div",{id:"editor",ref_key:"editor",ref:n,onBlur:Q,onFocus:w,class:"editor markdown",contenteditable:"true"},null,544)],2)],6),$("div",Jm,[$("div",Wm,[$("div",Ym,[$("div",Zm,[jm,uA(Jo,{className:"w-24",sourceArr:EA(Wo),defaultId:EA(r),onSelected:h},null,8,["sourceArr","defaultId"])]),$("div",zm,[qm,uA(Jo,{className:"w-28",sourceArr:EA(tu),defaultId:EA(t),onSelected:v},null,8,["sourceArr","defaultId"])]),$("div",AE,[eE,uA(JU,{state:EA(e).isWithDate,onCheck:g,class:"block"},null,8,["state"])])])]),$("div",{class:"flex flex-row items-center w-full px-4 py-4 space-x-6 justify-evenly",role:"group"},[$("button",{class:"block px-4 py-2 text-lg font-bold text-gray-900 border border-gray-300 rounded-md dark:border-gray-900 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900",onClick:E}," 预览图片 "),$("button",{class:"block px-4 py-2 text-lg font-bold text-gray-900 border border-gray-300 rounded-md dark:border-gray-900 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900",onClick:m}," 复制图片 "),$("button",{class:"block px-4 py-2 text-lg font-bold text-gray-900 border border-gray-300 rounded-md dark:border-gray-900 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900",onClick:y}," 保存图片 ")]),Mu($("div",tE,[rE,$("div",nE,ps(EA(i)),1),$("button",{type:"button",onClick:F,class:"ms-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8","data-dismiss-target":"#toast-success","aria-label":"Close"},oE)],512),[[ph,EA(i)]])]),uA(Om,{visble:EA(s),onChange:K},null,8,["visble"]),uA(Im),uA(vm)],64))}}),lE=ei(aE,[["__scopeId","data-v-2ba83585"]]),cE=$p({history:lp("/"),routes:[{path:"/",name:"home",component:lE},{path:"/about",name:"about",component:()=>yf(()=>import("./About-JATCPoHG.js"),__vite__mapDeps([0,1]))}]}),vn=Dh(sw);vn.use(Rh());vn.use(cE);vn.config.globalProperties.$reortGaEvent=(A,e,t)=>{(window.gtag||(()=>{}))("event",A,{event_category:e,event_label:t||A})};vn.config.errorHandler=(A,e,t)=>{console.error(A,e,t)};vn.mount("#app");export{ei as _,$ as a,et as c,ie as o}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/About-rr_Y-DhJ.js","assets/About-ug8e6cRs.css"] + __vite__mapDeps.viteFileDeps = ["assets/About-JATCPoHG.js","assets/About-ug8e6cRs.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/index-h8Jsoajv.css b/assets/index-_CNL_Jzh.css similarity index 59% rename from assets/index-h8Jsoajv.css rename to assets/index-_CNL_Jzh.css index 28c97cd..180817a 100644 --- a/assets/index-h8Jsoajv.css +++ b/assets/index-_CNL_Jzh.css @@ -1 +1 @@ -.link:hover,.link:focus,.link:active{border:none!important;outline:none!important}.link .rainbow-text{color:transparent;background-image:linear-gradient(0deg,#ff6768 28%,#a3cd39 60%);background-clip:text;-webkit-background-clip:text}.switch[data-v-cbf54d34]{position:relative;width:68px;height:34px}.switch .checkbox[data-v-cbf54d34]{display:none}.switch .checkbox:checked+.slider[data-v-cbf54d34]{background-color:#33c658}.switch .checkbox:focus+.slider[data-v-cbf54d34]{box-shadow:0 0 1px #33c658}.switch .checkbox:checked+.slider[data-v-cbf54d34]:before{transform:translate(34px)}.switch .slider[data-v-cbf54d34]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.switch .slider[data-v-cbf54d34]:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;transition:.4s}.switch .slider.round[data-v-cbf54d34]{border-radius:34px}.switch .slider.round[data-v-cbf54d34]:before{border-radius:50%}.show-on-mobile{display:none}@media (max-width: 960px){.show-on-big-screen{display:none}.show-on-mobile{display:block}}.zero{display:inline-block;width:18px;height:24px}.container[data-v-8a6b6b74]{padding:3rem;box-shadow:0 2px 5px #0000191a,0 5px 75px 1px #00003233;transition:box-shadow 1s ease-out;transition-delay:2s;background-color:transparent}.container .content[data-v-8a6b6b74]{position:relative;width:100%;height:100%;flex:1 1 0%}.container .content .editor[data-v-8a6b6b74]{min-height:12rem;padding:1rem;border:none;outline:none}.container .content .editor[data-v-8a6b6b74]:hover,.container .content .editor[data-v-8a6b6b74]:active{border:none;outline:none}.antiquity-box[data-v-8a6b6b74]{background:#e9e7d9 url(/assets/classical-ipKVY1lg.png) repeat 0 0}.antiquity-box .antiquity[data-v-8a6b6b74]{position:relative!important;border:3px solid #c02c38;padding:1rem}.classic-box[data-v-8a6b6b74],.classic-box .classic[data-v-8a6b6b74]{background-color:#f2f2f2}.note-box[data-v-8a6b6b74]{background-color:#fffcf5}.note-box .note[data-v-8a6b6b74]{border:1px solid #e8e5dc}.note-box .note[data-v-8a6b6b74]:before{position:absolute;content:"";inset:3px;border:1px solid #e8e5dc;z-index:0}.dark-box[data-v-8a6b6b74]{background-image:linear-gradient(to right,#434343 0%,black 100%)}.dark-box .dark[data-v-8a6b6b74]{background-color:transparent}.dark-box .dark .editor[data-v-8a6b6b74]{color:#f2f2f2;background-color:transparent}.bbburst-box[data-v-8a6b6b74]{background:url(/assets/bbburst-5JeS7cdQ.svg);background-size:100%}.bbburst-box .bbburst[data-v-8a6b6b74]{background-color:transparent}.bbburst-box .bbburst .editor[data-v-8a6b6b74]{background-color:#fffc;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.vitality-box[data-v-8a6b6b74]{background:linear-gradient(225deg,#9cccfc 0,#e6cefd 99.54%)}.vitality-box .vitality[data-v-8a6b6b74]{background-color:#f2f2f2;border-radius:1rem}.gradient-box[data-v-8a6b6b74]{background-image:linear-gradient(to top,#a8edea 0%,#fed6e3 100%)}.gradient-box .gradient[data-v-8a6b6b74],.gradient-box .gradient .editor[data-v-8a6b6b74]{background-color:transparent}.official-box[data-v-8a6b6b74]{position:relative}.official-box[data-v-8a6b6b74]:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#04629d 0,#037dcc 49.48%,#0289e0 100%)}.official-box .bg[data-v-8a6b6b74]{position:absolute;z-index:-1;left:0;top:-6.6rem;right:0;bottom:0;background:url(/assets/official-H4j1u1tz.svg);background-size:80% auto;background-position:center top;background-repeat:no-repeat}.official-box .official .editor[data-v-8a6b6b74]{color:#f2f2f2;background-color:transparent}.yellow-box[data-v-8a6b6b74]{background-image:radial-gradient(circle farthest-side,#fceabb,#f8b500)}.yellow-box .yellow .editor[data-v-8a6b6b74]{color:#000;background-color:transparent}.operate-area[data-v-8a6b6b74]{width:40rem}.operate-area .mobile-w-full[data-v-8a6b6b74]{width:auto}@media (max-width: 960px){.container[data-v-8a6b6b74]{width:100%!important}#app .operate-area[data-v-8a6b6b74]{width:100%}#app .operate-area .mobile-adjust[data-v-8a6b6b74]{padding:0;margin-bottom:1rem}#app .operate-area .mobile-w-full[data-v-8a6b6b74]{width:100%;margin-left:0}#app .operate-area .mobile-w-full+.mobile-w-full[data-v-8a6b6b74]{margin-top:1rem}#app .operate-area .select-zize[data-v-8a6b6b74]{display:none}}*,*:before,*:after{box-sizing:border-box;margin:0;position:relative;font-weight:400}body{width:100%;line-height:1.6;--tw-bg-opacity: 1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.markdown ol ol,.markdown ul ol,.markdown ol ul,.markdown ul ul,.markdown ol ul ol,.markdown ul ul ol,.markdown ol ul ul,.markdown ul ul ul{margin-top:0;margin-bottom:0}.markdown{font-family:Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1rem;line-height:1.6;word-wrap:break-word;padding:0;text-align:left;border-radius:0 0 3px 3px;color:#161823}.markdown>*:first-child{margin-top:0!important}.markdown>*:last-child{margin-bottom:0!important}.markdown *{box-sizing:border-box}.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{margin-top:1em;margin-bottom:1rem;font-weight:700;line-height:1.4}.markdown p,.markdown blockquote,.markdown ul,.markdown ol,.markdown dl,.markdown table,.markdown pre{margin-top:0;margin-bottom:1rem}.markdown h1{margin:1rem 0;padding:0;font-size:1.8rem;line-height:2rem}.markdown h2{font-size:1.6rem;line-height:1.8rem}.markdown h3{font-size:1.4rem;line-height:1.6rem}.markdown h4{font-size:1.25rem;line-height:1.4rem}.markdown h5{font-size:1.125rem;line-height:1.2rem}.markdown h6{font-size:1.125rem;line-height:1.2rem;color:#777}.markdown ol,.markdown ul{padding-left:2em}.markdown ol ol,.markdown ul ol{list-style-type:lower-roman}.markdown ol ul,.markdown ul ul{list-style-type:circle}.markdown ol ul ul,.markdown ul ul ul{list-style-type:square}.markdown ol{list-style-type:decimal}.markdown ul{list-style-type:disc}.markdown blockquote{margin-left:0;margin-right:0;padding:0 15px;color:#777;border-left:4px solid #ddd}.markdown table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;border-collapse:collapse;border-spacing:0}.markdown table tr{background-color:transparent;border-top:1px solid #ccc}.markdown table tr:nth-child(2n){background-color:transparent}.markdown table th,.markdown table td{padding:6px 13px;border:1px solid #c2ccd099}.markdown pre{word-wrap:normal;padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f7f7f7;border-radius:3px}.markdown pre code{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;font-size:100%;line-height:inherit;word-wrap:normal;white-space:pre;border:0;border-radius:3px;background-color:transparent}.markdown pre code:before,.markdown pre code:after{content:normal}.markdown code{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;padding:.2em 0;margin:0;font-size:85%;background-color:#0000000a;border-radius:3px}.markdown code:before,.markdown code:after{letter-spacing:-.2em;content:" "}.markdown a{color:#ea552d;text-decoration:none;background:transparent}.markdown img{max-width:100%;max-height:100%;border-radius:4px}.markdown strong{font-weight:700}.markdown em{font-style:italic}.markdown del{text-decoration:line-through}.task-list-item{list-style-type:none}.task-list-item input{font:13px/1.4 Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;margin:0 .35em .25em -1.6em;vertical-align:middle}.task-list-item input[disabled]{cursor:default}.task-list-item input[type=checkbox],.task-list-item input[type=radio]{box-sizing:border-box;padding:0}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(147 197 253 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(147 197 253 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-10{top:2.5rem}.z-0{z-index:0}.z-10{z-index:10}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ms-3{margin-inline-start:.75rem}.ms-auto{margin-inline-start:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-60{max-height:15rem}.min-h-full{min-height:100%}.w-1\/4{width:25%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-36{width:9rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-4xl{max-width:56rem}.max-w-\[450px\]{max-width:450px}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-25{--tw-bg-opacity: .25}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-2{padding-bottom:.5rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}#app{display:flex;flex-direction:column;align-items:center;width:100%;max-width:1280px;margin:0 auto;font-weight:400;padding:0 1rem}@media (min-width: 1024px){body{display:flex;place-items:center}}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:text-amber-500:hover{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:border-indigo-500:focus-visible{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-white:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-orange-300:focus-visible{--tw-ring-offset-color: #fdba74}:is([data-mode=dark] .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is([data-mode=dark] .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is([data-mode=dark] .dark\:hover\:bg-gray-900:hover){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))} +.link:hover,.link:focus,.link:active{border:none!important;outline:none!important}.link .rainbow-text{color:transparent;background-image:linear-gradient(0deg,#ff6768 28%,#a3cd39 60%);background-clip:text;-webkit-background-clip:text}.switch[data-v-cbf54d34]{position:relative;width:68px;height:34px}.switch .checkbox[data-v-cbf54d34]{display:none}.switch .checkbox:checked+.slider[data-v-cbf54d34]{background-color:#33c658}.switch .checkbox:focus+.slider[data-v-cbf54d34]{box-shadow:0 0 1px #33c658}.switch .checkbox:checked+.slider[data-v-cbf54d34]:before{transform:translate(34px)}.switch .slider[data-v-cbf54d34]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.switch .slider[data-v-cbf54d34]:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;transition:.4s}.switch .slider.round[data-v-cbf54d34]{border-radius:34px}.switch .slider.round[data-v-cbf54d34]:before{border-radius:50%}.show-on-mobile{display:none}@media (max-width: 960px){.show-on-big-screen{display:none}.show-on-mobile{display:block}}.zero{display:inline-block;width:18px;height:24px}.container[data-v-2ba83585]{padding:3rem;box-shadow:0 2px 5px #0000191a,0 5px 75px 1px #00003233;transition:box-shadow 1s ease-out;transition-delay:2s;background-color:transparent}.container .content[data-v-2ba83585]{position:relative;width:100%;height:100%;flex:1 1 0%}.container .content .editor[data-v-2ba83585]{min-height:12rem;padding:1rem;border:none;outline:none}.container .content .editor[data-v-2ba83585]:hover,.container .content .editor[data-v-2ba83585]:active{border:none;outline:none}.antiquity-box[data-v-2ba83585]{background:#e9e7d9 url(/assets/classical-ipKVY1lg.png) repeat 0 0}.antiquity-box .antiquity[data-v-2ba83585]{position:relative!important;border:3px solid #c02c38;padding:1rem}.classic-box[data-v-2ba83585],.classic-box .classic[data-v-2ba83585]{background-color:#f2f2f2}.note-box[data-v-2ba83585]{background-color:#fffcf5}.note-box .note[data-v-2ba83585]{border:1px solid #e8e5dc}.note-box .note[data-v-2ba83585]:before{position:absolute;content:"";inset:3px;border:1px solid #e8e5dc;z-index:0}.dark-box[data-v-2ba83585]{background-image:linear-gradient(to right,#434343 0%,black 100%)}.dark-box .dark[data-v-2ba83585]{background-color:transparent}.dark-box .dark .editor[data-v-2ba83585]{color:#f2f2f2;background-color:transparent}.bbburst-box[data-v-2ba83585]{background:url(/assets/bbburst-5JeS7cdQ.svg);background-size:100%}.bbburst-box .bbburst[data-v-2ba83585]{background-color:transparent}.bbburst-box .bbburst .editor[data-v-2ba83585]{background-color:#fffc;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.vitality-box[data-v-2ba83585]{background:linear-gradient(225deg,#9cccfc 0,#e6cefd 99.54%)}.vitality-box .vitality[data-v-2ba83585]{background-color:#f2f2f2;border-radius:1rem}.gradient-box[data-v-2ba83585]{background-image:linear-gradient(to top,#a8edea 0%,#fed6e3 100%)}.gradient-box .gradient[data-v-2ba83585],.gradient-box .gradient .editor[data-v-2ba83585]{background-color:transparent}.official-box[data-v-2ba83585]{position:relative}.official-box[data-v-2ba83585]:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#04629d 0,#037dcc 49.48%,#0289e0 100%)}.official-box .bg[data-v-2ba83585]{position:absolute;z-index:-1;left:0;top:-6.6rem;right:0;bottom:0;background:url(/assets/official-H4j1u1tz.svg);background-size:80% auto;background-position:center top;background-repeat:no-repeat}.official-box .official .editor[data-v-2ba83585]{color:#f2f2f2;background-color:transparent}.yellow-box[data-v-2ba83585]{background-image:radial-gradient(circle farthest-side,#fceabb,#f8b500)}.yellow-box .yellow .editor[data-v-2ba83585]{color:#000;background-color:transparent}.operate-area[data-v-2ba83585]{width:40rem}.operate-area .mobile-w-full[data-v-2ba83585]{width:auto}@media (max-width: 960px){.container[data-v-2ba83585]{width:100%!important}#app .operate-area[data-v-2ba83585]{width:100%}#app .operate-area .mobile-adjust[data-v-2ba83585]{padding:0;margin-bottom:1rem}#app .operate-area .mobile-w-full[data-v-2ba83585]{width:100%;margin-left:0}#app .operate-area .mobile-w-full+.mobile-w-full[data-v-2ba83585]{margin-top:1rem}#app .operate-area .select-zize[data-v-2ba83585]{display:none}}*,*:before,*:after{box-sizing:border-box;margin:0;position:relative;font-weight:400}body{width:100%;line-height:1.6;--tw-bg-opacity: 1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.markdown ol ol,.markdown ul ol,.markdown ol ul,.markdown ul ul,.markdown ol ul ol,.markdown ul ul ol,.markdown ol ul ul,.markdown ul ul ul{margin-top:0;margin-bottom:0}.markdown{font-family:Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1rem;line-height:1.6;word-wrap:break-word;padding:0;text-align:left;border-radius:0 0 3px 3px;color:#161823}.markdown>*:first-child{margin-top:0!important}.markdown>*:last-child{margin-bottom:0!important}.markdown *{box-sizing:border-box}.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{margin-top:1em;margin-bottom:1rem;font-weight:700;line-height:1.4}.markdown p,.markdown blockquote,.markdown ul,.markdown ol,.markdown dl,.markdown table,.markdown pre{margin-top:0;margin-bottom:1rem}.markdown h1{margin:1rem 0;padding:0;font-size:1.8rem;line-height:2rem}.markdown h2{font-size:1.6rem;line-height:1.8rem}.markdown h3{font-size:1.4rem;line-height:1.6rem}.markdown h4{font-size:1.25rem;line-height:1.4rem}.markdown h5{font-size:1.125rem;line-height:1.2rem}.markdown h6{font-size:1.125rem;line-height:1.2rem;color:#777}.markdown ol,.markdown ul{padding-left:2em}.markdown ol ol,.markdown ul ol{list-style-type:lower-roman}.markdown ol ul,.markdown ul ul{list-style-type:circle}.markdown ol ul ul,.markdown ul ul ul{list-style-type:square}.markdown ol{list-style-type:decimal}.markdown ul{list-style-type:disc}.markdown blockquote{margin-left:0;margin-right:0;padding:0 15px;color:#777;border-left:4px solid #ddd}.markdown table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;border-collapse:collapse;border-spacing:0}.markdown table tr{background-color:transparent;border-top:1px solid #ccc}.markdown table tr:nth-child(2n){background-color:transparent}.markdown table th,.markdown table td{padding:6px 13px;border:1px solid #c2ccd099}.markdown pre{word-wrap:normal;padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f7f7f7;border-radius:3px}.markdown pre code{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;font-size:100%;line-height:inherit;word-wrap:normal;white-space:pre;border:0;border-radius:3px;background-color:transparent}.markdown pre code:before,.markdown pre code:after{content:normal}.markdown code{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;padding:.2em 0;margin:0;font-size:85%;background-color:#0000000a;border-radius:3px}.markdown code:before,.markdown code:after{letter-spacing:-.2em;content:" "}.markdown a{color:#ea552d;text-decoration:none;background:transparent}.markdown img{max-width:100%;max-height:100%;border-radius:4px}.markdown strong{font-weight:700}.markdown em{font-style:italic}.markdown del{text-decoration:line-through}.task-list-item{list-style-type:none}.task-list-item input{font:13px/1.4 Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;margin:0 .35em .25em -1.6em;vertical-align:middle}.task-list-item input[disabled]{cursor:default}.task-list-item input[type=checkbox],.task-list-item input[type=radio]{box-sizing:border-box;padding:0}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(147 197 253 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(147 197 253 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-10{top:2.5rem}.z-0{z-index:0}.z-10{z-index:10}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ms-3{margin-inline-start:.75rem}.ms-auto{margin-inline-start:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.max-h-60{max-height:15rem}.min-h-full{min-height:100%}.w-1\/4{width:25%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-36{width:9rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-4xl{max-width:56rem}.max-w-\[450px\]{max-width:450px}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-25{--tw-bg-opacity: .25}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}#app{display:flex;flex-direction:column;align-items:center;width:100%;max-width:1280px;margin:0 auto;font-weight:400;padding:0 1rem}@media (min-width: 1024px){body{display:flex;place-items:center}}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:text-amber-500:hover{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:border-indigo-500:focus-visible{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-white:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-orange-300:focus-visible{--tw-ring-offset-color: #fdba74}:is([data-mode=dark] .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is([data-mode=dark] .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is([data-mode=dark] .dark\:hover\:bg-gray-900:hover){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))} diff --git a/index.html b/index.html index f485e53..4ba7789 100644 --- a/index.html +++ b/index.html @@ -51,8 +51,8 @@ async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" > - - + +