@nuxt/devtools-nightly 2.0.0-beta.0-28940293.6562084 → 2.0.0-beta.1-28947249.59b738c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/.discoveryrc.cjs +13 -0
  2. package/dist/chunks/module-main.mjs +98 -48
  3. package/dist/chunks/vscode.mjs +1 -1
  4. package/dist/client/200.html +14 -14
  5. package/dist/client/404.html +14 -14
  6. package/dist/client/_nuxt/__blank-mourf202.js +1 -0
  7. package/dist/client/_nuxt/{analyze-build-oe0nvo1v.js → analyze-build-fgy88qr9.js} +1 -1
  8. package/dist/client/_nuxt/{assets-wsbeurkn.js → assets-bu3nftwx.js} +3 -3
  9. package/dist/client/_nuxt/builds/latest.json +1 -1
  10. package/dist/client/_nuxt/builds/meta/4c388898-4b3b-4776-a060-7bf56ec54178.json +1 -0
  11. package/dist/client/_nuxt/{client-c9f80qsp.js → client-if03554a.js} +1 -1
  12. package/dist/client/_nuxt/{code-diff.vue-no0ffx8f.js → code-diff.vue-dsxarkpv.js} +1 -1
  13. package/dist/client/_nuxt/{code-snippets.vue-kbs96pi0.js → code-snippets.vue-bhkqsgzm.js} +1 -1
  14. package/dist/client/_nuxt/{components-kvmcnvun.js → components-j6ajg8e1.js} +1 -1
  15. package/dist/client/_nuxt/{composable-item.vue-mdhcy97i.js → composable-item.vue-d0mp4x9i.js} +1 -1
  16. package/dist/client/_nuxt/{custom-_name_-jeddq596.js → custom-_name_-mym6eae7.js} +1 -1
  17. package/dist/client/_nuxt/{default-jjobpju3.js → default-l69v3wxz.js} +1 -1
  18. package/dist/client/_nuxt/{duration-display.vue-kqe6a4wx.js → duration-display.vue-g20yjddp.js} +1 -1
  19. package/dist/client/_nuxt/entry.css-em88tyst.css +1 -0
  20. package/dist/client/_nuxt/{error-404-lro7u76y.js → error-404-m81p8eyx.js} +1 -1
  21. package/dist/client/_nuxt/error-404.css-gakauvtn.css +1 -0
  22. package/dist/client/_nuxt/{error-500-j409mizi.js → error-500-jfrnzryz.js} +1 -1
  23. package/dist/client/_nuxt/error-500.css-nt5emrt3.css +1 -0
  24. package/dist/client/_nuxt/{error-o3l2rbgn.js → error-fz5v3t2y.js} +5 -5
  25. package/dist/client/_nuxt/filepath-item.vue-cjrrk3ln.js +1 -0
  26. package/dist/client/_nuxt/full-lqfcq3gn.js +1 -0
  27. package/dist/client/_nuxt/{help-fab.vue-eyzjjtrr.js → help-fab.vue-kh0hzs3x.js} +1 -1
  28. package/dist/client/_nuxt/{hooks-jhvmyjnq.js → hooks-erieyy80.js} +1 -1
  29. package/dist/client/_nuxt/imports-mm57mzxe.js +1 -0
  30. package/dist/client/_nuxt/index-ecjjdceb.js +2 -0
  31. package/dist/client/_nuxt/index-med6ayl4.js +1 -0
  32. package/dist/client/_nuxt/kul02k0k.js +17 -0
  33. package/dist/client/_nuxt/launch-page.vue-h5h1rmqz.js +1 -0
  34. package/dist/client/_nuxt/{modules-i64nwxud.js → modules-k4qx2ksj.js} +1 -1
  35. package/dist/client/_nuxt/nbadge-dq7969id.js +1 -0
  36. package/dist/client/_nuxt/{ncheckbox.vue-bzh5t5xo.js → ncheckbox.vue-hmuefhp8.js} +1 -1
  37. package/dist/client/_nuxt/{ncode-block.vue-gy1ero5j.js → ncode-block.vue-fq4nv817.js} +1 -1
  38. package/dist/client/_nuxt/{ndrawer.vue-dih2d0ci.js → ndrawer.vue-mv80pm2y.js} +1 -1
  39. package/dist/client/_nuxt/{ndropdown.vue-fl5rdy5t.js → ndropdown.vue-zeexfnta.js} +1 -1
  40. package/dist/client/_nuxt/{nicon-title.vue-ouqsubn7.js → nicon-title.vue-oe3ckr8a.js} +1 -1
  41. package/dist/client/_nuxt/{nlink.vue-gei3dtfe.js → nlink.vue-j30b5gz7.js} +1 -1
  42. package/dist/client/_nuxt/{nmarkdown.vue-hygash5x.js → nmarkdown.vue-gqjdqnvm.js} +1 -1
  43. package/dist/client/_nuxt/{nnavbar.vue-fcbubuy5.js → nnavbar.vue-hsot3qp4.js} +1 -1
  44. package/dist/client/_nuxt/none-lxsv0k4t.js +1 -0
  45. package/dist/client/_nuxt/{nsection-block-cz4igj8y.js → nsection-block-czz9t4by.js} +1 -1
  46. package/dist/client/_nuxt/{nselect-tabs.vue-o3dadufj.js → nselect-tabs.vue-mlu3my71.js} +1 -1
  47. package/dist/client/_nuxt/{nselect.vue-lkp6tmlx.js → nselect.vue-kg1543hy.js} +1 -1
  48. package/dist/client/_nuxt/{open-graph-mr51d8ms.js → open-graph-ehstuk3t.js} +2 -2
  49. package/dist/client/_nuxt/{overview-dki4jhvf.js → overview-jn7yq6o7.js} +1 -1
  50. package/dist/client/_nuxt/{pages-fa5zwx08.js → pages-db784nmv.js} +1 -1
  51. package/dist/client/_nuxt/{payload-cza6lmj7.js → payload-imcpwbc6.js} +1 -1
  52. package/dist/client/_nuxt/pinia-ij5k3zx7.js +1 -0
  53. package/dist/client/_nuxt/plugins-e1upzt5p.js +1 -0
  54. package/dist/client/_nuxt/{render-tree-eispe90j.js → render-tree-kla9esid.js} +1 -1
  55. package/dist/client/_nuxt/{runtime-configs-klksccry.js → runtime-configs-lsft5of4.js} +1 -1
  56. package/dist/client/_nuxt/server-discovery-fqlczqkl.js +1 -0
  57. package/dist/client/_nuxt/{server-route-inputs.vue-kkkjmlpr.js → server-route-inputs.vue-bn6ehnjd.js} +1 -1
  58. package/dist/client/_nuxt/{server-routes-mrmhvkti.js → server-routes-chrinxrk.js} +2 -2
  59. package/dist/client/_nuxt/{server-tasks-ju8lwq5t.js → server-tasks-c9bhxchj.js} +1 -1
  60. package/dist/client/_nuxt/settings-fgk6dzzk.js +1 -0
  61. package/dist/client/_nuxt/{stacktrace-list.vue-fvt332qg.js → stacktrace-list.vue-nlkbtwib.js} +1 -1
  62. package/dist/client/_nuxt/{state-components-fo1al5n2.js → state-components-mzokhl93.js} +1 -1
  63. package/dist/client/_nuxt/{state-editor.vue-kzen94mi.js → state-editor.vue-n47qdx2l.js} +1 -1
  64. package/dist/client/_nuxt/state-modules-iei82dn5.js +1 -0
  65. package/dist/client/_nuxt/storage-hsf9ce2m.js +1 -0
  66. package/dist/client/_nuxt/{terminals-n0t1rhl7.js → terminals-m512mpu9.js} +1 -1
  67. package/dist/client/_nuxt/{timeline-janeok34.js → timeline-nayoii9w.js} +2 -2
  68. package/dist/client/_nuxt/{unocss-runtime-jzfgcoxk.js → unocss-runtime-lxpmsgjb.js} +1 -1
  69. package/dist/client/_nuxt/vendor/{json-editor-vue-gi2fewby.js → json-editor-vue-kmaz80fw.js} +91 -91
  70. package/dist/client/_nuxt/vendor/{unocss-3uirpnla.js → unocss-fae7bffg.js} +1 -1
  71. package/dist/client/_nuxt/{virtual-files-basg39tv.js → virtual-files-g8hr4da2.js} +1 -1
  72. package/dist/client/_nuxt/{vue-virtual-scroller.esm-hx1s7s1b.js → vue-virtual-scroller.esm-cj3vb08x.js} +1 -1
  73. package/dist/client/discovery/index.html +611 -0
  74. package/dist/client/index.html +14 -14
  75. package/dist/module.json +2 -2
  76. package/dist/module.mjs +1 -1
  77. package/dist/runtime/plugins/view/Main.vue +2 -9
  78. package/dist/shared/{devtools-nightly.5ac54dae.mjs → devtools-nightly.60b2ba4d.mjs} +3 -2
  79. package/package.json +22 -18
  80. package/dist/client/_nuxt/__blank-n15vnpb5.js +0 -1
  81. package/dist/client/_nuxt/builds/meta/949d891b-4b52-4ea6-a28d-f5ed6b11e9cf.json +0 -1
  82. package/dist/client/_nuxt/entry.css-nqz5coc9.css +0 -1
  83. package/dist/client/_nuxt/error-404.css-b3x40x40.css +0 -1
  84. package/dist/client/_nuxt/error-500.css-hilpkhd4.css +0 -1
  85. package/dist/client/_nuxt/filepath-item.vue-otp6jyyn.js +0 -1
  86. package/dist/client/_nuxt/full-ihuxa34t.js +0 -1
  87. package/dist/client/_nuxt/imports-j94jn55i.js +0 -1
  88. package/dist/client/_nuxt/index-hgt6j2tr.js +0 -2
  89. package/dist/client/_nuxt/index-irxxlbxf.js +0 -1
  90. package/dist/client/_nuxt/k6pa1ohq.js +0 -17
  91. package/dist/client/_nuxt/launch-page.vue-cd4fi46t.js +0 -1
  92. package/dist/client/_nuxt/nbadge-iwzd40zm.js +0 -1
  93. package/dist/client/_nuxt/none-nrc1e9do.js +0 -1
  94. package/dist/client/_nuxt/pinia-esck9n5i.js +0 -1
  95. package/dist/client/_nuxt/plugins-kvl3spfm.js +0 -1
  96. package/dist/client/_nuxt/settings-be8y8a8r.js +0 -1
  97. package/dist/client/_nuxt/state-modules-evifr0hw.js +0 -1
  98. package/dist/client/_nuxt/storage-l7ud6uto.js +0 -1
@@ -1,2 +1,2 @@
1
- const Xe=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ze=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,et=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function tt(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){nt(e);return}return t}function nt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function rt(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const s=n.toLowerCase();if(s==="true")return!0;if(s==="false")return!1;if(s==="undefined")return;if(s==="null")return null;if(s==="nan")return Number.NaN;if(s==="infinity")return Number.POSITIVE_INFINITY;if(s==="-infinity")return Number.NEGATIVE_INFINITY}if(!et.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Xe.test(e)||Ze.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,tt)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const st=/#/g,ot=/&/g,it=/\//g,at=/=/g,ue=/\+/g,ct=/%5e/gi,lt=/%60/gi,ft=/%7c/gi,ut=/%20/gi;function ht(e){return encodeURI(""+e).replace(ft,"|")}function ae(e){return ht(typeof e=="string"?e:JSON.stringify(e)).replace(ue,"%2B").replace(ut,"+").replace(st,"%23").replace(ot,"%26").replace(lt,"`").replace(ct,"^").replace(it,"%2F")}function ee(e){return ae(e).replace(at,"%3D")}function J(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pt(e){return J(e.replace(ue," "))}function dt(e){return J(e.replace(ue," "))}function mt(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const r=pt(s[1]);if(r==="__proto__"||r==="constructor")continue;const i=dt(s[2]||"");t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function gt(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ee(e)}=${ae(n)}`).join("&"):`${ee(e)}=${ae(t)}`:ee(e)}function yt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>gt(t,e[t])).filter(Boolean).join("&")}const wt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,bt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,St=/^([/\\]\s*){2,}[^/\\]/,vt=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Et=/\/$|\/\?|\/#/,$t=/^\.?\//;function he(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?wt.test(e):bt.test(e)||(t.acceptRelative?St.test(e):!1)}function Xn(e){return!!e&&vt.test(e)}function ce(e="",t){return t?Et.test(e):e.endsWith("/")}function Pe(e="",t){if(!t)return(ce(e)?e.slice(0,-1):e)||"/";if(!ce(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");r>=0&&(n=e.slice(0,r),s=e.slice(r));const[i,...l]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(l.length>0?`?${l.join("?")}`:"")+s}function le(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ce(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");if(r>=0&&(n=e.slice(0,r),s=e.slice(r),!n))return s;const[i,...l]=n.split("?");return i+"/"+(l.length>0?`?${l.join("?")}`:"")+s}function At(e=""){return e.startsWith("/")}function me(e=""){return At(e)?e:"/"+e}function Ct(e,t){if(Ie(t)||he(e))return e;const n=Pe(t);return e.startsWith(n)?e:Rt(n,e)}function Zn(e,t){if(Ie(t))return e;const n=Pe(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function xt(e,t){const n=Ot(e),s={...mt(n.search),...t};return n.search=yt(s),jt(n)}function Ie(e){return!e||e==="/"}function _t(e){return e&&e!=="/"}function Rt(e,...t){let n=e||"";for(const s of t.filter(r=>_t(r)))if(n){const r=s.replace($t,"");n=le(n)+r}else n=s;return n}function er(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),s=[];let r=0;for(const l of n)if(!(!l||l==="/")){for(const[a,c]of l.split(t).entries())if(!(!c||c===".")){if(c===".."){if(s.length===1&&he(s[0]))continue;s.pop(),r--;continue}if(a===1&&s[s.length-1]?.endsWith(":/")){s[s.length-1]+="/"+c;continue}s.push(c),r++}}let i=s.join("/");return r>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*r)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function tr(e,t,n={}){return n.trailingSlash||(e=le(e),t=le(t)),n.leadingSlash||(e=me(e),t=me(t)),n.encoding||(e=J(e),t=J(t)),e===t}const Ne=Symbol.for("ufo:protocolRelative");function Ot(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,u,m=""]=n;return{protocol:u.toLowerCase(),pathname:m,href:u+m,auth:"",host:"",search:"",hash:""}}if(!he(e,{acceptRelative:!0}))return ge(e);const[,s="",r,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,l="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:f,hash:o}=ge(a);return{protocol:s.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:l,pathname:c,search:f,hash:o,[Ne]:!s}}function ge(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function jt(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",r=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Ne]?(e.protocol||"")+"//":"")+r+i+t+n+s}class Tt extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Mt(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(s)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",l=`${r}: ${i}${t?` ${t}`:""}`,a=new Tt(l,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[f]}});return a}const kt=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ye(e="GET"){return kt.has(e.toUpperCase())}function Lt(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Pt=new Set(["image/svg","application/xml","application/xhtml","application/html"]),It=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Nt(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return It.test(t)?"json":Pt.has(t)||t.startsWith("text/")?"text":"blob"}function Ft(e,t,n,s){const r=Dt(t?.headers??e?.headers,n?.headers,s);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:r}}function Dt(e,t,n){if(!t)return new n(e);const s=new n(t);if(e)for(const[r,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))s.set(r,i);return s}async function U(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const zt=new Set([408,409,425,429,500,502,503,504]),qt=new Set([101,204,205,304]);function Fe(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let o;typeof a.options.retry=="number"?o=a.options.retry:o=ye(a.options.method)?0:1;const u=a.response&&a.response.status||500;if(o>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(u):zt.has(u))){const m=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return m>0&&await new Promise(p=>setTimeout(p,m)),i(a.request,{...a.options,retry:o-1})}}const f=Mt(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,i),f}const i=async function(c,f={}){const o={request:c,options:Ft(c,f,e.defaults,n),response:void 0,error:void 0};o.options.method&&(o.options.method=o.options.method.toUpperCase()),o.options.onRequest&&await U(o,o.options.onRequest),typeof o.request=="string"&&(o.options.baseURL&&(o.request=Ct(o.request,o.options.baseURL)),o.options.query&&(o.request=xt(o.request,o.options.query),delete o.options.query),"query"in o.options&&delete o.options.query,"params"in o.options&&delete o.options.params),o.options.body&&ye(o.options.method)&&(Lt(o.options.body)?(o.options.body=typeof o.options.body=="string"?o.options.body:JSON.stringify(o.options.body),o.options.headers=new n(o.options.headers||{}),o.options.headers.has("content-type")||o.options.headers.set("content-type","application/json"),o.options.headers.has("accept")||o.options.headers.set("accept","application/json")):("pipeTo"in o.options.body&&typeof o.options.body.pipeTo=="function"||typeof o.options.body.pipe=="function")&&("duplex"in o.options||(o.options.duplex="half")));let u;if(!o.options.signal&&o.options.timeout){const p=new s;u=setTimeout(()=>{const b=new Error("[TimeoutError]: The operation was aborted due to timeout");b.name="TimeoutError",b.code=23,p.abort(b)},o.options.timeout),o.options.signal=p.signal}try{o.response=await t(o.request,o.options)}catch(p){return o.error=p,o.options.onRequestError&&await U(o,o.options.onRequestError),await r(o)}finally{u&&clearTimeout(u)}if((o.response.body||o.response._bodyInit)&&!qt.has(o.response.status)&&o.options.method!=="HEAD"){const p=(o.options.parseResponse?"json":o.options.responseType)||Nt(o.response.headers.get("content-type")||"");switch(p){case"json":{const b=await o.response.text(),g=o.options.parseResponse||rt;o.response._data=g(b);break}case"stream":{o.response._data=o.response.body||o.response._bodyInit;break}default:o.response._data=await o.response[p]()}}return o.options.onResponse&&await U(o,o.options.onResponse),!o.options.ignoreResponseError&&o.response.status>=400&&o.response.status<600?(o.options.onResponseError&&await U(o,o.options.onResponseError),await r(o)):o.response},l=async function(c,f){return(await i(c,f))._data};return l.raw=i,l.native=(...a)=>t(...a),l.create=(a={},c={})=>Fe({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),l}const Q=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Vt=Q.fetch?(...e)=>Q.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Ut=Q.Headers,Bt=Q.AbortController,Wt=Fe({fetch:Vt,Headers:Ut,AbortController:Bt}),Ht=Wt,H="default",fe="preflights",Gt="shortcuts",Jt="imports",Qt={[Jt]:-200,[fe]:-100,[Gt]:-10,[H]:0},Kt=/[\\:]?[\s'"`;{}]+/g;function Yt(e){return e.split(Kt)}const Xt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Yt(e)}};function k(e=[]){return Array.isArray(e)?e:[e]}function F(e){return Array.from(new Set(e))}function we(e,t){return e.reduce((n,s)=>(n.findIndex(i=>t(s,i))===-1&&n.push(s),n),[])}function T(e){return typeof e=="string"}class De extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,n){return this._map.set(t,n),super.add(t)}}function te(e){return e instanceof De}function Zt(e){const t=e.length;let n=-1,s,r="";const i=e.charCodeAt(0);for(;++n<t;){if(s=e.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&t===1&&s===45){r+=`\\${e.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=e.charAt(n);continue}r+=`\\${e.charAt(n)}`}return r}const ne=Zt;function en(e){return typeof e=="function"?{match:e}:e}function be(e){return e.length===3}function re(e){return e!=null}function tn(){}class nn{_map=new Map;get(t,n){const s=this._map.get(t);if(s)return s.get(n)}getFallback(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.has(n)||r.set(n,s),r.get(n)}set(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.set(n,s),this}has(t,n){return this._map.get(t)?.has(n)}delete(t,n){return this._map.get(t)?.delete(n)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>t(i,n,r)))}}class rn extends Map{getFallback(t,n){const s=this.get(t);return s===void 0?(this.set(t,n),n):s}map(t){const n=[];return this.forEach((s,r)=>{n.push(t(s,r))}),n}flatMap(t){const n=[];return this.forEach((s,r)=>{n.push(...t(s,r))}),n}}function q(e){return T(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function sn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>q(t)):[e]:[q(e)]}function on(e){return e.filter(([t,n],s)=>{if(t.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(e[r][0]===t&&e[r][1]===n)return!1;return!0})}function se(e){return e==null?"":on(e).map(([t,n])=>n!=null&&typeof n!="function"?`${t}:${n};`:void 0).filter(Boolean).join("")}function B(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ze(e,t,n=!1){const s=e,r=t;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return B(s)&&B(r)&&Object.keys(r).forEach(l=>{B(s[l])&&B(r[l])||Array.isArray(s[l])&&Array.isArray(r[l])?i[l]=ze(s[l],r[l],n):Object.assign(i,{[l]:r[l]})}),i}function G(e){let t,n,s;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(s=e[t])&&typeof s=="object"?G(s):s;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(s=e[t])&&typeof s=="object"?G(s):s;return n}return e}function an(e){return T(e[0])}function cn(e){return T(e[0])}const W={};function ln(e=["-",":"]){const t=e.join("|");return W[t]||(W[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[t].lastIndex=0,W[t]}function fn(e,t=["-",":"],n=5){const s=ln(t);let r,i=e.toString();const l=new Set,a=new Map;do r=!1,i=i.replace(s,(f,o,u,m,p)=>{if(!t.includes(u))return f;r=!0,l.add(o+u);const b=p+o.length+u.length+1,g={length:f.length,items:[]};a.set(p,g);for(const y of[...m.matchAll(/\S+/g)]){const R=b+y.index;let S=a.get(R)?.items;S?a.delete(R):S=[{offset:R,length:y[0].length,className:y[0]}];for(const v of S)v.className=v.className==="~"?o:v.className.replace(/^(!?)(.*)/,`$1${o}${u}$2`),g.items.push(v)}return"$".repeat(f.length)}),n-=1;while(r&&n);let c;if(typeof e=="string"){c="";let f=0;for(const[o,u]of a)c+=e.slice(f,o),c+=u.items.map(m=>m.className).join(" "),f=o+u.length;c+=e.slice(f)}else{c=e;for(const[f,o]of a)c.overwrite(f,f+o.length,o.items.map(u=>u.className).join(" "))}return{prefixes:Array.from(l),hasChanged:r,groupsByOffset:a,get expanded(){return c.toString()}}}function un(e,t=["-",":"],n=5){const s=fn(e,t,n);return typeof e=="string"?s.expanded:e}const Se=new Set;function qe(e){Se.has(e)||(console.warn("[unocss]",e),Se.add(e))}function Ve(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const ve="_uno_resolved";async function hn(e){let t=typeof e=="function"?await e():await e;if(ve in t)return t;t={...t},Object.defineProperty(t,ve,{value:!0,enumerable:!1});const n=t.shortcuts?Ve(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&t.prefix&&(i.prefix=k(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(s),t.rules?.forEach(s)}return t}async function Ue(e){const t=await hn(e);if(!t.presets)return[t];const n=(await Promise.all((t.presets||[]).flatMap(k).flatMap(Ue))).flat();return[t,...n]}function pn(e){if(e.length===0)return{};const t=[],n=[];let s=!1;const r=[],i=[],l=[];for(const c of e){if(c.pipeline===!1){s=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&n.push(c.pipeline.exclude);c.filesystem&&r.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&l.push(c.plain)}const a={pipeline:s?!1:{include:F($e(...t)),exclude:F($e(...n))}};return r.length&&(a.filesystem=F(r.flat())),i.length&&(a.inline=F(i.flat())),l.length&&(a.plain=F(l.flat())),a}async function Ee(e={},t={}){const n=Object.assign({},t,e),s=we((await Promise.all((n.presets||[]).flatMap(k).flatMap(Ue))).flat(),(d,h)=>d.name===h.name),r=[...s.filter(d=>d.enforce==="pre"),...s.filter(d=>!d.enforce),...s.filter(d=>d.enforce==="post")],i=[...r,n],l=[...i].reverse(),a=Object.assign({},Qt,...i.map(d=>d.layers));function c(d){return F(i.flatMap(h=>k(h[d]||[])))}const f=c("extractors");let o=l.find(d=>d.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Xt),o&&!f.includes(o)&&f.unshift(o),f.sort((d,h)=>(d.order||0)-(h.order||0));const u=c("rules"),m={},p=u.length,b=u.filter(d=>an(d)?(k(d[2]?.prefix||"").forEach(w=>{m[w+d[0]]=d}),!1):!0).reverse();let g=dn(i.map(d=>d.theme));const y=c("extendTheme");for(const d of y)g=d(g)||g;const R={templates:F(i.flatMap(d=>k(d.autocomplete?.templates))),extractors:i.flatMap(d=>k(d.autocomplete?.extractors)).sort((d,h)=>(d.order||0)-(h.order||0)),shorthands:mn(i.map(d=>d.autocomplete?.shorthands||{}))};let S=c("separators");S.length||(S=[":","-"]);const v=c("content"),A=pn(v),C={mergeSelectors:!0,warn:!0,sortLayers:d=>d,...n,blocklist:c("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:g,rules:u,rulesSize:p,rulesDynamic:b,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:R,variants:c("variants").map(en).sort((d,h)=>(d.order||0)-(h.order||0)),shortcuts:Ve(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:S,details:n.details??n.envMode==="dev",content:A,transformers:we(c("transformers"),(d,h)=>d.name===h.name)};for(const d of i)d?.configResolved?.(C);return C}function dn(e){return e.map(t=>t?G(t):{}).reduce((t,n)=>ze(t,n),{})}function mn(e){return e.reduce((t,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...t,...s}},{})}function $e(...e){return e.flatMap(gn)}function gn(e){return Array.isArray(e)?e:e?[e]:[]}const yn="0.65.4";function wn(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}const z={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"};class pe{constructor(t={},n={}){this.userConfig=t,this.defaults=n}version=yn;events=wn();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},n={}){const s=new pe(t,n);return s.config=await Ee(s.userConfig,s.defaults),s.events.emit("config",s.config),s}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Ee(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,s=new Set){const r={original:t,code:t,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const l=await i.extract?.(r);if(l)if(te(l)&&te(s))for(const a of l)s.setCount(a,s.getCount(a)+l.getCount(a));else for(const a of l)s.add(a)}return s}makeContext(t,n){const s={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:z,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(t,n){if(this.blocked.has(t))return;const s=`${t}${n?` ${n}`:""}`;if(this.cache.has(s))return this.cache.get(s);let r=t;for(const c of this.config.preprocess)r=c(t);if(this.isBlocked(r)){this.blocked.add(t),this.cache.set(s,null);return}const i=await this.matchVariants(t,r);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(s,null);return}const l=async c=>{const f=this.makeContext(t,[n||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);const o=await this.expandShortcut(f.currentSelector,f);return o?await this.stringifyShortcuts(f.variantMatch,f,o[0],o[1]):(await this.parseUtil(f.variantMatch,f))?.map(m=>this.stringifyUtil(m,f)).filter(re)},a=(await Promise.all(i.map(c=>l(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(s,a),a;this.cache.set(s,null)}async generate(t,n={}){const{id:s,scope:r,preflights:i=!0,safelist:l=!0,minify:a=!1,extendedInfo:c=!1}=n,f=T(t)?await this.applyExtractors(t,s,c?new De:new Set):Array.isArray(t)?new Set(t):t;if(l){const h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(w=>typeof w=="function"?w(h):w).forEach(w=>{f.has(w)||f.add(w)})}const o=a?"":`
1
+ const Xe=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ze=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,et=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function tt(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){nt(e);return}return t}function nt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function rt(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const s=n.toLowerCase();if(s==="true")return!0;if(s==="false")return!1;if(s==="undefined")return;if(s==="null")return null;if(s==="nan")return Number.NaN;if(s==="infinity")return Number.POSITIVE_INFINITY;if(s==="-infinity")return Number.NEGATIVE_INFINITY}if(!et.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Xe.test(e)||Ze.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,tt)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const st=/#/g,ot=/&/g,it=/\//g,at=/=/g,ue=/\+/g,ct=/%5e/gi,lt=/%60/gi,ft=/%7c/gi,ut=/%20/gi;function ht(e){return encodeURI(""+e).replace(ft,"|")}function ae(e){return ht(typeof e=="string"?e:JSON.stringify(e)).replace(ue,"%2B").replace(ut,"+").replace(st,"%23").replace(ot,"%26").replace(lt,"`").replace(ct,"^").replace(it,"%2F")}function ee(e){return ae(e).replace(at,"%3D")}function J(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pt(e){return J(e.replace(ue," "))}function dt(e){return J(e.replace(ue," "))}function mt(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const r=pt(s[1]);if(r==="__proto__"||r==="constructor")continue;const i=dt(s[2]||"");t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function gt(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ee(e)}=${ae(n)}`).join("&"):`${ee(e)}=${ae(t)}`:ee(e)}function yt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>gt(t,e[t])).filter(Boolean).join("&")}const wt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,bt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,St=/^([/\\]\s*){2,}[^/\\]/,vt=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Et=/\/$|\/\?|\/#/,$t=/^\.?\//;function he(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?wt.test(e):bt.test(e)||(t.acceptRelative?St.test(e):!1)}function Xn(e){return!!e&&vt.test(e)}function ce(e="",t){return t?Et.test(e):e.endsWith("/")}function Pe(e="",t){if(!t)return(ce(e)?e.slice(0,-1):e)||"/";if(!ce(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");r>=0&&(n=e.slice(0,r),s=e.slice(r));const[i,...l]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(l.length>0?`?${l.join("?")}`:"")+s}function le(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ce(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");if(r>=0&&(n=e.slice(0,r),s=e.slice(r),!n))return s;const[i,...l]=n.split("?");return i+"/"+(l.length>0?`?${l.join("?")}`:"")+s}function At(e=""){return e.startsWith("/")}function me(e=""){return At(e)?e:"/"+e}function Ct(e,t){if(Ie(t)||he(e))return e;const n=Pe(t);return e.startsWith(n)?e:Rt(n,e)}function Zn(e,t){if(Ie(t))return e;const n=Pe(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function xt(e,t){const n=Ot(e),s={...mt(n.search),...t};return n.search=yt(s),jt(n)}function Ie(e){return!e||e==="/"}function _t(e){return e&&e!=="/"}function Rt(e,...t){let n=e||"";for(const s of t.filter(r=>_t(r)))if(n){const r=s.replace($t,"");n=le(n)+r}else n=s;return n}function er(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),s=[];let r=0;for(const l of n)if(!(!l||l==="/")){for(const[a,c]of l.split(t).entries())if(!(!c||c===".")){if(c===".."){if(s.length===1&&he(s[0]))continue;s.pop(),r--;continue}if(a===1&&s[s.length-1]?.endsWith(":/")){s[s.length-1]+="/"+c;continue}s.push(c),r++}}let i=s.join("/");return r>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*r)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function tr(e,t,n={}){return n.trailingSlash||(e=le(e),t=le(t)),n.leadingSlash||(e=me(e),t=me(t)),n.encoding||(e=J(e),t=J(t)),e===t}const Ne=Symbol.for("ufo:protocolRelative");function Ot(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,u,m=""]=n;return{protocol:u.toLowerCase(),pathname:m,href:u+m,auth:"",host:"",search:"",hash:""}}if(!he(e,{acceptRelative:!0}))return ge(e);const[,s="",r,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,l="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:f,hash:o}=ge(a);return{protocol:s.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:l,pathname:c,search:f,hash:o,[Ne]:!s}}function ge(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function jt(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",r=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Ne]?(e.protocol||"")+"//":"")+r+i+t+n+s}class Tt extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Mt(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(s)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",l=`${r}: ${i}${t?` ${t}`:""}`,a=new Tt(l,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[f]}});return a}const kt=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ye(e="GET"){return kt.has(e.toUpperCase())}function Lt(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Pt=new Set(["image/svg","application/xml","application/xhtml","application/html"]),It=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Nt(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return It.test(t)?"json":Pt.has(t)||t.startsWith("text/")?"text":"blob"}function Ft(e,t,n,s){const r=Dt(t?.headers??e?.headers,n?.headers,s);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:r}}function Dt(e,t,n){if(!t)return new n(e);const s=new n(t);if(e)for(const[r,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))s.set(r,i);return s}async function U(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const zt=new Set([408,409,425,429,500,502,503,504]),qt=new Set([101,204,205,304]);function Fe(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let o;typeof a.options.retry=="number"?o=a.options.retry:o=ye(a.options.method)?0:1;const u=a.response&&a.response.status||500;if(o>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(u):zt.has(u))){const m=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return m>0&&await new Promise(p=>setTimeout(p,m)),i(a.request,{...a.options,retry:o-1})}}const f=Mt(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,i),f}const i=async function(c,f={}){const o={request:c,options:Ft(c,f,e.defaults,n),response:void 0,error:void 0};o.options.method&&(o.options.method=o.options.method.toUpperCase()),o.options.onRequest&&await U(o,o.options.onRequest),typeof o.request=="string"&&(o.options.baseURL&&(o.request=Ct(o.request,o.options.baseURL)),o.options.query&&(o.request=xt(o.request,o.options.query),delete o.options.query),"query"in o.options&&delete o.options.query,"params"in o.options&&delete o.options.params),o.options.body&&ye(o.options.method)&&(Lt(o.options.body)?(o.options.body=typeof o.options.body=="string"?o.options.body:JSON.stringify(o.options.body),o.options.headers=new n(o.options.headers||{}),o.options.headers.has("content-type")||o.options.headers.set("content-type","application/json"),o.options.headers.has("accept")||o.options.headers.set("accept","application/json")):("pipeTo"in o.options.body&&typeof o.options.body.pipeTo=="function"||typeof o.options.body.pipe=="function")&&("duplex"in o.options||(o.options.duplex="half")));let u;if(!o.options.signal&&o.options.timeout){const p=new s;u=setTimeout(()=>{const b=new Error("[TimeoutError]: The operation was aborted due to timeout");b.name="TimeoutError",b.code=23,p.abort(b)},o.options.timeout),o.options.signal=p.signal}try{o.response=await t(o.request,o.options)}catch(p){return o.error=p,o.options.onRequestError&&await U(o,o.options.onRequestError),await r(o)}finally{u&&clearTimeout(u)}if((o.response.body||o.response._bodyInit)&&!qt.has(o.response.status)&&o.options.method!=="HEAD"){const p=(o.options.parseResponse?"json":o.options.responseType)||Nt(o.response.headers.get("content-type")||"");switch(p){case"json":{const b=await o.response.text(),g=o.options.parseResponse||rt;o.response._data=g(b);break}case"stream":{o.response._data=o.response.body||o.response._bodyInit;break}default:o.response._data=await o.response[p]()}}return o.options.onResponse&&await U(o,o.options.onResponse),!o.options.ignoreResponseError&&o.response.status>=400&&o.response.status<600?(o.options.onResponseError&&await U(o,o.options.onResponseError),await r(o)):o.response},l=async function(c,f){return(await i(c,f))._data};return l.raw=i,l.native=(...a)=>t(...a),l.create=(a={},c={})=>Fe({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),l}const Q=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Vt=Q.fetch?(...e)=>Q.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Ut=Q.Headers,Bt=Q.AbortController,Wt=Fe({fetch:Vt,Headers:Ut,AbortController:Bt}),Ht=Wt,H="default",fe="preflights",Gt="shortcuts",Jt="imports",Qt={[Jt]:-200,[fe]:-100,[Gt]:-10,[H]:0},Kt=/[\\:]?[\s'"`;{}]+/g;function Yt(e){return e.split(Kt)}const Xt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Yt(e)}};function k(e=[]){return Array.isArray(e)?e:[e]}function F(e){return Array.from(new Set(e))}function we(e,t){return e.reduce((n,s)=>(n.findIndex(i=>t(s,i))===-1&&n.push(s),n),[])}function T(e){return typeof e=="string"}class De extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,n){return this._map.set(t,n),super.add(t)}}function te(e){return e instanceof De}function Zt(e){const t=e.length;let n=-1,s,r="";const i=e.charCodeAt(0);for(;++n<t;){if(s=e.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&t===1&&s===45){r+=`\\${e.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=e.charAt(n);continue}r+=`\\${e.charAt(n)}`}return r}const ne=Zt;function en(e){return typeof e=="function"?{match:e}:e}function be(e){return e.length===3}function re(e){return e!=null}function tn(){}class nn{_map=new Map;get(t,n){const s=this._map.get(t);if(s)return s.get(n)}getFallback(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.has(n)||r.set(n,s),r.get(n)}set(t,n,s){let r=this._map.get(t);return r||(r=new Map,this._map.set(t,r)),r.set(n,s),this}has(t,n){return this._map.get(t)?.has(n)}delete(t,n){return this._map.get(t)?.delete(n)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>t(i,n,r)))}}class rn extends Map{getFallback(t,n){const s=this.get(t);return s===void 0?(this.set(t,n),n):s}map(t){const n=[];return this.forEach((s,r)=>{n.push(t(s,r))}),n}flatMap(t){const n=[];return this.forEach((s,r)=>{n.push(...t(s,r))}),n}}function q(e){return T(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function sn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>q(t)):[e]:[q(e)]}function on(e){return e.filter(([t,n],s)=>{if(t.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(e[r][0]===t&&e[r][1]===n)return!1;return!0})}function se(e){return e==null?"":on(e).map(([t,n])=>n!=null&&typeof n!="function"?`${t}:${n};`:void 0).filter(Boolean).join("")}function B(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ze(e,t,n=!1){const s=e,r=t;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return B(s)&&B(r)&&Object.keys(r).forEach(l=>{B(s[l])&&B(r[l])||Array.isArray(s[l])&&Array.isArray(r[l])?i[l]=ze(s[l],r[l],n):Object.assign(i,{[l]:r[l]})}),i}function G(e){let t,n,s;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(s=e[t])&&typeof s=="object"?G(s):s;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(s=e[t])&&typeof s=="object"?G(s):s;return n}return e}function an(e){return T(e[0])}function cn(e){return T(e[0])}const W={};function ln(e=["-",":"]){const t=e.join("|");return W[t]||(W[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[t].lastIndex=0,W[t]}function fn(e,t=["-",":"],n=5){const s=ln(t);let r,i=e.toString();const l=new Set,a=new Map;do r=!1,i=i.replace(s,(f,o,u,m,p)=>{if(!t.includes(u))return f;r=!0,l.add(o+u);const b=p+o.length+u.length+1,g={length:f.length,items:[]};a.set(p,g);for(const y of[...m.matchAll(/\S+/g)]){const R=b+y.index;let S=a.get(R)?.items;S?a.delete(R):S=[{offset:R,length:y[0].length,className:y[0]}];for(const v of S)v.className=v.className==="~"?o:v.className.replace(/^(!?)(.*)/,`$1${o}${u}$2`),g.items.push(v)}return"$".repeat(f.length)}),n-=1;while(r&&n);let c;if(typeof e=="string"){c="";let f=0;for(const[o,u]of a)c+=e.slice(f,o),c+=u.items.map(m=>m.className).join(" "),f=o+u.length;c+=e.slice(f)}else{c=e;for(const[f,o]of a)c.overwrite(f,f+o.length,o.items.map(u=>u.className).join(" "))}return{prefixes:Array.from(l),hasChanged:r,groupsByOffset:a,get expanded(){return c.toString()}}}function un(e,t=["-",":"],n=5){const s=fn(e,t,n);return typeof e=="string"?s.expanded:e}const Se=new Set;function qe(e){Se.has(e)||(console.warn("[unocss]",e),Se.add(e))}function Ve(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const ve="_uno_resolved";async function hn(e){let t=typeof e=="function"?await e():await e;if(ve in t)return t;t={...t},Object.defineProperty(t,ve,{value:!0,enumerable:!1});const n=t.shortcuts?Ve(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&t.prefix&&(i.prefix=k(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(s),t.rules?.forEach(s)}return t}async function Ue(e){const t=await hn(e);if(!t.presets)return[t];const n=(await Promise.all((t.presets||[]).flatMap(k).flatMap(Ue))).flat();return[t,...n]}function pn(e){if(e.length===0)return{};const t=[],n=[];let s=!1;const r=[],i=[],l=[];for(const c of e){if(c.pipeline===!1){s=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&n.push(c.pipeline.exclude);c.filesystem&&r.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&l.push(c.plain)}const a={pipeline:s?!1:{include:F($e(...t)),exclude:F($e(...n))}};return r.length&&(a.filesystem=F(r.flat())),i.length&&(a.inline=F(i.flat())),l.length&&(a.plain=F(l.flat())),a}async function Ee(e={},t={}){const n=Object.assign({},t,e),s=we((await Promise.all((n.presets||[]).flatMap(k).flatMap(Ue))).flat(),(d,h)=>d.name===h.name),r=[...s.filter(d=>d.enforce==="pre"),...s.filter(d=>!d.enforce),...s.filter(d=>d.enforce==="post")],i=[...r,n],l=[...i].reverse(),a=Object.assign({},Qt,...i.map(d=>d.layers));function c(d){return F(i.flatMap(h=>k(h[d]||[])))}const f=c("extractors");let o=l.find(d=>d.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Xt),o&&!f.includes(o)&&f.unshift(o),f.sort((d,h)=>(d.order||0)-(h.order||0));const u=c("rules"),m={},p=u.length,b=u.filter(d=>an(d)?(k(d[2]?.prefix||"").forEach(w=>{m[w+d[0]]=d}),!1):!0).reverse();let g=dn(i.map(d=>d.theme));const y=c("extendTheme");for(const d of y)g=d(g)||g;const R={templates:F(i.flatMap(d=>k(d.autocomplete?.templates))),extractors:i.flatMap(d=>k(d.autocomplete?.extractors)).sort((d,h)=>(d.order||0)-(h.order||0)),shorthands:mn(i.map(d=>d.autocomplete?.shorthands||{}))};let S=c("separators");S.length||(S=[":","-"]);const v=c("content"),A=pn(v),C={mergeSelectors:!0,warn:!0,sortLayers:d=>d,...n,blocklist:c("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:g,rules:u,rulesSize:p,rulesDynamic:b,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:R,variants:c("variants").map(en).sort((d,h)=>(d.order||0)-(h.order||0)),shortcuts:Ve(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:S,details:n.details??n.envMode==="dev",content:A,transformers:we(c("transformers"),(d,h)=>d.name===h.name)};for(const d of i)d?.configResolved?.(C);return C}function dn(e){return e.map(t=>t?G(t):{}).reduce((t,n)=>ze(t,n),{})}function mn(e){return e.reduce((t,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...t,...s}},{})}function $e(...e){return e.flatMap(gn)}function gn(e){return Array.isArray(e)?e:e?[e]:[]}const yn="65.4.0";function wn(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}const z={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"};class pe{constructor(t={},n={}){this.userConfig=t,this.defaults=n}version=yn;events=wn();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},n={}){const s=new pe(t,n);return s.config=await Ee(s.userConfig,s.defaults),s.events.emit("config",s.config),s}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Ee(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,s=new Set){const r={original:t,code:t,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const l=await i.extract?.(r);if(l)if(te(l)&&te(s))for(const a of l)s.setCount(a,s.getCount(a)+l.getCount(a));else for(const a of l)s.add(a)}return s}makeContext(t,n){const s={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:z,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(t,n){if(this.blocked.has(t))return;const s=`${t}${n?` ${n}`:""}`;if(this.cache.has(s))return this.cache.get(s);let r=t;for(const c of this.config.preprocess)r=c(t);if(this.isBlocked(r)){this.blocked.add(t),this.cache.set(s,null);return}const i=await this.matchVariants(t,r);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(s,null);return}const l=async c=>{const f=this.makeContext(t,[n||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);const o=await this.expandShortcut(f.currentSelector,f);return o?await this.stringifyShortcuts(f.variantMatch,f,o[0],o[1]):(await this.parseUtil(f.variantMatch,f))?.map(m=>this.stringifyUtil(m,f)).filter(re)},a=(await Promise.all(i.map(c=>l(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(s,a),a;this.cache.set(s,null)}async generate(t,n={}){const{id:s,scope:r,preflights:i=!0,safelist:l=!0,minify:a=!1,extendedInfo:c=!1}=n,f=T(t)?await this.applyExtractors(t,s,c?new De:new Set):Array.isArray(t)?new Set(t):t;if(l){const h={generator:this,theme:this.config.theme};this.config.safelist.flatMap(w=>typeof w=="function"?w(h):w).forEach(w=>{f.has(w)||f.add(w)})}const o=a?"":`
2
2
  `,u=new Set([H]),m=c?new Map:new Set,p=new Map;let b={};const g=Array.from(f).map(async h=>{if(m.has(h))return;const w=await this.parseToken(h);if(w!=null){m instanceof Map?m.set(h,{data:w,count:te(f)?f.getCount(h):-1}):m.add(h);for(const E of w){const L=E[3]||"",P=E[4]?.layer;p.has(L)||p.set(L,[]),p.get(L).push(E),P&&u.add(P)}}});await Promise.all(g),await(async()=>{if(!i)return;const h={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:E=fe})=>{u.add(E),w.add(E)}),b=Object.fromEntries(await Promise.all(Array.from(w).map(async E=>{const P=(await Promise.all(this.config.preflights.filter(I=>(I.layer||fe)===E).map(async I=>await I.getCSS(h)))).filter(Boolean).join(o);return[E,P]})))})();const y=this.config.sortLayers(Array.from(u).sort((h,w)=>(this.config.layers[h]??0)-(this.config.layers[w]??0)||h.localeCompare(w))),R={},S=this.config.outputToCssLayers,v=h=>{let w=h;return typeof S=="object"&&(w=S.cssLayerName?.(h)),w===null?null:w??h},A=(h=H)=>{if(R[h])return R[h];let w=Array.from(p).sort((P,I)=>(this.parentOrders.get(P[0])??0)-(this.parentOrders.get(I[0])??0)||P[0]?.localeCompare(I[0]||"")||0).map(([P,I])=>{const $=I.length,_=I.filter(x=>(x[4]?.layer||H)===h).sort((x,M)=>x[0]-M[0]||(x[4]?.sort||0)-(M[4]?.sort||0)||x[5]?.currentSelector?.localeCompare(M[5]?.currentSelector??"")||x[1]?.localeCompare(M[1]||"")||x[2]?.localeCompare(M[2]||"")||0).map(([,x,M,,V,,X])=>[[[(x&&vn(x,r))??"",V?.sort??0]],M,!!(X??V?.noMerge)]);if(!_.length)return;const O=_.reverse().map(([x,M,V],X)=>{if(!V&&this.config.mergeSelectors)for(let D=X+1;D<$;D++){const N=_[D];if(N&&!N[2]&&(x&&N[0]||x==null&&N[0]==null)&&N[1]===M)return x&&N[0]&&N[0].push(...x),null}const Z=x?F(x.sort((D,N)=>D[1]-N[1]||D[0]?.localeCompare(N[0]||"")||0).map(D=>D[0]).filter(Boolean)):[];return Z.length?`${Z.join(`,${o}`)}{${M}}`:M}).filter(Boolean).reverse().join(o);if(!P)return O;const j=P.split(" $$ ");return`${j.join("{")}{${o}${O}${o}${"}".repeat(j.length)}`}).filter(Boolean).join(o);i&&(w=[b[h],w].filter(Boolean).join(o));let E;S&&w&&(E=v(h),E!==null&&(w=`@layer ${E}{${o}${w}${o}}`));const L=a?"":`/* layer: ${h}${E&&E!==h?`, alias: ${E}`:""} */${o}`;return R[h]=w?L+w:""},C=(h=y,w)=>{const E=h.filter(L=>!w?.includes(L));return[S&&E.length>0?`@layer ${E.map(v).filter(re).join(", ")};`:void 0,...E.map(L=>A(L)||"")].filter(Boolean).join(o)};return{get css(){return C()},layers:y,matched:m,getLayers:C,getLayer:A,setLayer:async(h,w)=>{const E=await w(A(h));return R[h]=E,E}}}async matchVariants(t,n){const s={rawSelector:t,theme:this.config.theme,generator:this},r=async i=>{let l=!0;const[,,a,c]=i;for(;l;){l=!1;const f=i[1];for(const o of this.config.variants){if(!o.multiPass&&c.has(o))continue;let u=await o.match(f,s);if(u){if(T(u)){if(u===f)continue;u={matcher:u}}if(Array.isArray(u)){if(!u.length)continue;if(u.length===1)u=u[0];else{if(o.multiPass)throw new Error("multiPass can not be used together with array return variants");const m=u.map(p=>{const b=p.matcher??f,g=[p,...a],y=new Set(c);return y.add(o),[i[0],b,g,y]});return(await Promise.all(m.map(p=>r(p)))).flat()}}i[1]=u.matcher??f,a.unshift(u),c.add(o),l=!0;break}}if(!l)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await r([t,n||t,[],new Set])}applyVariants(t,n=t[4],s=t[1]){const i=n.slice().sort((f,o)=>(f.order||0)-(o.order||0)).reduceRight((f,o)=>u=>{const m=o.body?.(u.entries)||u.entries,p=Array.isArray(o.parent)?o.parent:[o.parent,void 0];return(o.handle??$n)({...u,entries:m,selector:o.selector?.(u.selector,m)||u.selector,parent:p[0]||u.parent,parentOrder:p[1]||u.parentOrder,layer:o.layer||u.layer,sort:o.sort||u.sort},f)},f=>f)({prefix:"",selector:En(s),pseudo:"",entries:t[2]}),{parent:l,parentOrder:a}=i;l!=null&&a!=null&&this.parentOrders.set(l,a);const c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:l,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const f of this.config.postprocess)f(c);return c}constructCustomCSS(t,n,s){const r=q(n);if(T(r))return r;const{selector:i,entries:l,parent:a}=this.applyVariants([0,s||t.rawSelector,r,void 0,t.variantHandlers]),c=`${i}{${se(l)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,n,s=!1,r){const i=T(t)?await this.matchVariants(t):[t],l=async([c,f,o])=>{this.config.details&&(n.rules=n.rules??[]);const u=this.config.rulesStaticMap[f];if(u&&u[1]&&(s||!u[2]?.internal)){n.generator.activatedRules.add(u),this.config.details&&n.rules.push(u);const p=this.config.rules.indexOf(u),b=q(u[1]),g=u[2];return T(b)?[[p,b,g]]:[[p,c,b,g,o]]}n.variantHandlers=o;const{rulesDynamic:m}=this.config;for(const p of m){const[b,g,y]=p;if(y?.internal&&!s)continue;let R=f;if(y?.prefix){const C=k(y.prefix);if(r){const d=k(r);if(!C.some(h=>d.includes(h)))continue}else{const d=C.find(h=>f.startsWith(h));if(d==null)continue;R=f.slice(d.length)}}const S=R.match(b);if(!S)continue;let v=await g(S,n);if(!v)continue;if(n.generator.activatedRules.add(p),this.config.details&&n.rules.push(p),typeof v!="string")if(Symbol.asyncIterator in v){const C=[];for await(const d of v)d&&C.push(d);v=C}else Symbol.iterator in v&&!Array.isArray(v)&&(v=Array.from(v).filter(re));const A=sn(v).filter(C=>C.length);if(A.length){const C=this.config.rules.indexOf(p);return A.map(d=>{if(T(d))return[C,d,y];let h=o,w=y;for(const E of d)E[0]===z.variants?h=[...k(E[1]),...h]:E[0]===z.parent?h=[{parent:E[1]},...h]:E[0]===z.selector?h=[{selector:E[1]},...h]:E[0]===z.layer?h=[{layer:E[1]},...h]:E[0]===z.sort&&(w={...w,sort:E[1]});return[C,c,d,w,h]})}}},a=(await Promise.all(i.map(c=>l(c)))).flat().filter(c=>!!c);if(a.length)return a}stringifyUtil(t,n){if(!t)return;if(be(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:l,sort:a,noMerge:c}=this.applyVariants(t),f=se(r);if(!f)return;const{layer:o,sort:u,...m}=t[3]??{},p={...m,layer:l??o,sort:a??u};return[t[0],s,f,i,p,this.config.details?n:void 0,c]}async expandShortcut(t,n,s=5){if(s===0)return;const r=this.config.details?f=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(f)}:tn;let i,l,a,c;for(const f of this.config.shortcuts){let o=t;if(f[2]?.prefix){const m=k(f[2].prefix).find(p=>t.startsWith(p));if(m==null)continue;o=t.slice(m.length)}if(cn(f)){if(f[0]===o){i=i||f[2],l=f[1],r(f);break}}else{const u=o.match(f[0]);if(u&&(l=f[1](u,n)),l){i=i||f[2],r(f);break}}}if(l&&(a=F(k(l).filter(T).map(f=>un(f.trim()).split(/\s+/g)).flat()),c=k(l).filter(f=>!T(f)).map(f=>({handles:[],value:f}))),!l){const f=T(t)?await this.matchVariants(t):[t];for(const o of f){const[u,m,p]=o;if(u!==m){const b=await this.expandShortcut(m,n,s-1);b&&(a=b[0].filter(T).map(g=>u.replace(m,g)),c=b[0].filter(g=>!T(g)).map(g=>({handles:[...g.handles,...p],value:g.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(k(a).map(async f=>(await this.expandShortcut(f,n,s-1))?.[0]||[f])),c].flat(2).filter(f=>!!f),i]}async stringifyShortcuts(t,n,s,r={layer:this.config.shortcutsLayer}){const i=new rn,l=(await Promise.all(F(s).map(async o=>{const u=T(o)?await this.parseUtil(o,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",q(o.value),void 0,o.handles]];return!u&&this.config.warn&&qe(`unmatched utility "${o}" in shortcut "${t[1]}"`),u||[]}))).flat(1).filter(Boolean).sort((o,u)=>o[0]-u[0]),[a,,c]=t,f=[];for(const o of l){if(be(o)){f.push([o[0],void 0,o[1],void 0,o[2],n,void 0]);continue}const{selector:u,entries:m,parent:p,sort:b,noMerge:g,layer:y}=this.applyVariants(o,[...o[4],...c],a);i.getFallback(y??r.layer,new nn).getFallback(u,p,[[],o[0]])[0].push([m,!!(g??o[3]?.noMerge),b??0])}return f.concat(i.flatMap((o,u)=>o.map(([m,p],b,g)=>{const y=(S,v,A)=>{const C=Math.max(...A.map(h=>h[1])),d=A.map(h=>h[0]);return(S?[d.flat(1)]:d).map(h=>{const w=se(h);if(w)return[p,b,w,g,{...r,noMerge:v,sort:C,layer:u},n,void 0]})};return[[m.filter(([,S])=>S).map(([S,,v])=>[S,v]),!0],[m.filter(([,S])=>!S).map(([S,,v])=>[S,v]),!1]].map(([S,v])=>[...y(!1,v,S.filter(([A])=>A.some(C=>C[0]===z.shortcutsNoMerge))),...y(!0,v,S.filter(([A])=>A.every(C=>C[0]!==z.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(n=>Array.isArray(n)?n[0]:n).some(n=>typeof n=="function"?n(t):T(n)?n===t:n.test(t))}getBlocked(t){const n=this.config.blocklist.find(s=>{const r=Array.isArray(s)?s[0]:s;return typeof r=="function"?r(t):T(r)?r===t:r.test(t)});return n?Array.isArray(n)?n:[n,void 0]:void 0}}async function bn(e,t){return await pe.create(e,t)}const Be=/\s\$\$\s+/g;function Sn(e){return Be.test(e)}function vn(e,t){return Sn(e)?e.replace(Be,t?` ${t} `:" "):t?`${t} ${e}`:e}const Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function En(e){return Ae.test(e)?e.replace(Ae,(t,n,s,r)=>`[${ne(n)}${s}"${ne(r)}"]`):`.${ne(e)}`}function $n(e,t){return t(e)}var Ce={};const An=Object.freeze({left:0,top:0,width:16,height:16}),K=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),We=Object.freeze({...An,...K}),Cn=Object.freeze({...We,body:"",hidden:!1}),xn=Object.freeze({width:null,height:null}),He=Object.freeze({...xn,...K});function _n(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function xe(e,t){const n=_n(e,t);for(const s in Cn)s in K?s in e&&!(s in n)&&(n[s]=K[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Rn(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function i(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const a=s[l]&&s[l].parent,c=a&&i(a);c&&(r[l]=[a].concat(c))}return r[l]}return t.forEach(i),r}function _e(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let i={};function l(a){i=xe(s[a]||r[a],i)}return l(t),n.forEach(l),xe(e,i)}function On(e,t){if(e.icons[t])return _e(e,t,[]);const n=Rn(e,[t])[t];return n?_e(e,t,n):null}const jn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Tn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Y(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(jn);if(s===null||!s.length)return e;const r=[];let i=s.shift(),l=Tn.test(i);for(;;){if(l){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*t*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");l=!l}}function Mn(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const r=e.indexOf(">",s),i=e.indexOf("</"+t);if(r===-1||i===-1)break;const l=e.indexOf(">",i);if(l===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,s).trim()+e.slice(l+1)}return{defs:n,content:e}}function kn(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Ln(e,t,n){const s=Mn(e);return kn(s.defs,t+s.content+n)}const de=e=>e==="unset"||e==="undefined"||e==="none";function Pn(e,t){const n={...We,...e},s={...He,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(g=>{const y=[],R=g.hFlip,S=g.vFlip;let v=g.rotate;R?S?v+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):S&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let A;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:A=r.height/2+r.top,y.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:A=r.width/2+r.left,y.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}v%2===1&&(r.left!==r.top&&(A=r.left,r.left=r.top,r.top=A),r.width!==r.height&&(A=r.width,r.width=r.height,r.height=A)),y.length&&(i=Ln(i,'<g transform="'+y.join(" ")+'">',"</g>"))});const l=s.width,a=s.height,c=r.width,f=r.height;let o,u;l===null?(u=a===null?"1em":a==="auto"?f:a,o=Y(u,c/f)):(o=l==="auto"?c:l,u=a===null?Y(o,f/c):a==="auto"?f:a);const m={},p=(g,y)=>{de(y)||(m[g]=y.toString())};p("width",o),p("height",u);const b=[r.left,r.top,c,f];return m.viewBox=b.join(" "),{attributes:m,viewBox:b,body:i}}function In(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Re(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),In(t)}function Nn(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}const Fn=/\swidth\s*=\s*["']([\w.]+)["']/,Dn=/\sheight\s*=\s*["']([\w.]+)["']/,oe=/<svg\s+/;function zn(e,t,n){const s=e.slice(0,e.indexOf(">")),r=(i,l)=>{const a=l.exec(s),c=a!=null,f=t[i];return!f&&!de(f)&&(typeof n=="number"?n>0&&(t[i]=Y(a?.[1]??"1em",n)):a&&(t[i]=a[1])),c};return[r("width",Fn),r("height",Dn)]}async function Ge(e,t,n,s,r,i){const{scale:l,addXmlNs:a=!1}=s??{},{additionalProps:c={},iconCustomizer:f}=s?.customizations??{},o=await r?.()??{};await f?.(t,n,o),Object.keys(c).forEach(g=>{const y=c[g];y!=null&&(o[g]=y)}),i?.(o);const[u,m]=zn(e,o,l);a&&(!e.includes("xmlns=")&&!o.xmlns&&(o.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!o["xmlns:xlink"]&&(o["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const p=Object.keys(o).map(g=>g==="width"&&u||g==="height"&&m?null:`${g}="${o[g]}"`).filter(g=>g!=null);if(p.length&&(e=e.replace(oe,`<svg ${p.join(" ")} `)),s){const{defaultStyle:g,defaultClass:y}=s;y&&!e.includes("class=")&&(e=e.replace(oe,`<svg class="${y}" `)),g&&!e.includes("style=")&&(e=e.replace(oe,`<svg style="${g}" `))}const b=s?.usedProps;return b&&(Object.keys(c).forEach(g=>{const y=o[g];y!=null&&(b[g]=y)}),typeof o.width<"u"&&o.width!==null&&(b.width=o.width),typeof o.height<"u"&&o.height!==null&&(b.height=o.height)),e}async function Oe(e,t,n,s){let r;try{if(typeof e=="function")r=await e(n);else{const i=e[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${t}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:l}=s?.customizations??{};return r=typeof l=="function"?await l(r,t,n):r,r.startsWith("<svg")?await Ge(s?.customizations?.trimCustomSvg===!0?Nn(r):r,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),r)}}async function Je(e,t,n,s){let r;const{customize:i}=s?.customizations??{};for(const l of n)if(r=On(e,l),r){let a={...He};typeof i=="function"&&(r=Object.assign({},r),a=i(a,r,`${t}:${l}`)??a);const{attributes:{width:c,height:f,...o},body:u}=Pn(r,a),m=s?.scale;return await Ge(`<svg >${u}</svg>`,t,l,s,()=>({...o}),p=>{const b=(g,y)=>{const R=p[g];let S;if(!de(R)){if(R)return;typeof m=="number"?m&&(S=Y(y??"1em",m)):S=y}S?p[g]=S:delete p[g]};b("width",c),b("height",f)})}}const Qe=async(e,t,n)=>{const s=n?.customCollections?.[e];if(s)if(typeof s=="function"){let r;try{r=await s(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await Oe(()=>r,e,t,n);if("icons"in r){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Je(r,e,i,n)}}}else return await Oe(s,e,t,n)};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ie,je;function Vn(){return je||(je=1,ie=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"]),ie}var Un=Vn();const Ke=qn(Un),Bn=3;function Wn(e){return(t={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,iconifyCollectionsNames:l,collections:a,extraProperties:c={},customizations:f={},autoInstall:o=!1,collectionsNodeResolvePath:u,layer:m="icons",unit:p,processor:b}=t,g=Hn(),y={addXmlNs:!0,scale:n,customCollections:a,autoInstall:o,cwd:u,warn:void 0,customizations:{...f,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(S,v,A){await f.iconCustomizer?.(S,v,A),p&&(A.width||(A.width=`${n}${p}`),A.height||(A.height=`${n}${p}`))}}};let R;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Re,parseIconWithLoader:Te},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async S=>{let[v,A,C=s]=S;R=R||await e(t);const d={},h=await Te(A,R,{...y,usedProps:d},l);if(!h){i&&!g.isESLint&&qe(`failed to load icon "${v}"`);return}let w;const E=`url("data:image/svg+xml;utf8,${Re(h.svg)}")`;return C==="auto"&&(C=h.svg.includes("currentColor")?"mask":"bg"),C==="mask"?w={"--un-icon":E,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...d}:w={background:`${E} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...d},b?.(w,{...h,icon:h.name,mode:C}),w},{layer:m,prefix:r}]]}}}function Ye(e,t){const n=new Map;function s(r){if(Ke.includes(r))return n.has(r)||n.set(r,e(`${t}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,i,l)=>{let a=await Qe(r,i,l);if(a)return a;const c=await s(r);if(c){const f=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Je(c,r,f,l)}return a}}function Hn(){const e=typeof process<"u"&&process.stdout&&!process.versions.deno,t=e&&!!Ce.VSCODE_CWD,n=e&&!!Ce.ESLINT;return{isNode:e,isVSCode:t,isESLint:n}}async function Te(e,t,n={},s=[]){let r="",i="",l;const a=new Set([...Ke,...s,...Object.keys(n.customCollections||{})]);if(e.includes(":")){if([r,i]=e.split(":"),!a.has(r))return;l=await t(r,i,n)}else{const c=e.split(/-/g);for(let f=Bn;f>=1&&(r=c.slice(0,f).join("-"),!(!!a.has(r)&&(i=c.slice(f).join("-"),l=await t(r,i,n),l)));f--);}if(l)return{collection:r,name:i,svg:l}}function Gn(e){return Ye(Ht,e)}const nr=Wn(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?Ye(t,n):n?Gn(n):Qe});function Jn(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function Me(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ke(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Le=["Webkit","Moz","ms"];function Qn(e){const t={};function n(s){const r=t[s];if(r)return r;let i=Jn(s);if(i!=="filter"&&i in e)return t[s]=ke(i);i=Me(i);for(let l=0;l<Le.length;l++){const a=`${Le[l]}${i}`;if(a in e)return t[s]=ke(Me(a))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Kn(e){return e.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function rr(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,n=window.document,s=()=>n.documentElement,r=t.__unocss||{},i=Object.assign({},e,r.runtime),l=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(l.postprocess=k(l.postprocess)).unshift(Qn(n.createElement("div").style)),i.configResolved?.(r,l);const c=await bn(r,l),f=$=>i.inject?i.inject($):s().prepend($),o=()=>i.rootElement?i.rootElement():n.body,u=new Map;let m=!0;const p=new Set;let b,g,y=[];const R=()=>new Promise($=>{y.push($),g!=null&&clearTimeout(g),g=setTimeout(()=>A().then(()=>{const _=y;y=[],_.forEach(O=>O())}),0)});function S($,_=!1){if($.nodeType!==1)return;const O=$;O.hasAttribute(a)&&O.removeAttribute(a),_&&O.querySelectorAll(`[${a}]`).forEach(j=>{j.removeAttribute(a)})}function v($,_){let O=u.get($);if(!O)if(O=n.createElement("style"),O.setAttribute("data-unocss-runtime-layer",$),u.set($,O),_==null)f(O);else{const j=v(_),x=j.parentNode;x?x.insertBefore(O,j.nextSibling):f(O)}return O}async function A(){const $=[...p],_=await c.generate($);return _.layers.reduce((j,x)=>(v(x,j).innerHTML=_.getLayer(x)??"",x),void 0),$.filter(j=>!_.matched.has(j)).forEach(j=>p.delete(j)),{..._,getStyleElement:j=>u.get(j),getStyleElements:()=>u}}async function C($){const _=p.size;await c.applyExtractors($,void 0,p),_!==p.size&&await R()}async function d($=o()){const _=$&&$.outerHTML;_&&(await C(`${_} ${Kn(_)}`),S(s()),S($,!0))}const h=new MutationObserver($=>{m||$.forEach(async _=>{if(_.target.nodeType!==1)return;const O=_.target;for(const j of u)if(O===j[1])return;if(_.type==="childList")_.addedNodes.forEach(async j=>{if(j.nodeType!==1)return;const x=j;b&&!b(x)||(await C(x.outerHTML),S(x))});else{if(b&&!b(O))return;if(_.attributeName!==a){const j=Array.from(O.attributes).map(M=>M.value?`${M.name}="${M.value}"`:M.name).join(" "),x=`<${O.tagName.toLowerCase()} ${j}>`;await C(x)}S(O)}})});let w=!1;function E(){if(w)return;const $=i.observer?.target?i.observer.target():o();$&&(h.observe($,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),w=!0)}function L(){i.bypassDefined&&Yn(c.blocked),d(),E()}function P(){n.readyState==="loading"?t.addEventListener("DOMContentLoaded",L):L()}const I=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract($){T($)||($.forEach(_=>p.add(_)),$=""),await C($)},extractAll:d,inspect($){b=$},toggleObserver($){$===void 0?m=!m:m=!!$,!w&&!m&&P()},update:A,presets:t.__unocss_runtime?.presets??{}};i.ready?.(I)!==!1&&(m=!1,P())}function Yn(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const n=document.styleSheets[t];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),e.add(r))})}catch{continue}}return e}export{Ht as $,Rt as a,Pe as b,Zn as c,rt as d,tr as e,le as f,rr as g,he as h,Xn as i,er as j,nr as k,mt as p,xt as w};
@@ -1 +1 @@
1
- import{_ as V}from"./nnavbar.vue-fcbubuy5.js";import{_ as D}from"./ncode-block.vue-gy1ero5j.js";import{bk as S,bl as B,M as j,p as P,T as U,c as E}from"./k6pa1ohq.js";import{Q as i,S as c,U as a,k as I,b as m,w as M,l as _,a0 as l,$ as u,F as d,ab as W,a5 as v,Y as z,M as G}from"./vendor/json-editor-vue-gi2fewby.js";import{_ as H}from"./help-fab.vue-eyzjjtrr.js";import"./client-c9f80qsp.js";import"./vendor/unocss-3uirpnla.js";import"./vendor/shiki-bnvxb5wv.js";const L={class:"markdown-body"},Q={__name:"virtual-files",setup(h,{expose:r}){return r({frontmatter:{}}),(p,o)=>(i(),c("div",L,o[0]||(o[0]=[a("h1",null,"Virtual Files",-1),a("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1)])))}},R=["onClick"],T={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Y={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},oe=I({__name:"virtual-files",setup(h){const r=m(""),n=S(),p=B(),o=m();M(()=>{if(!p.value)return;const e=`/_vfs.json/${encodeURIComponent(p.value)}`;fetch(e,{headers:{accept:"application/json"}}).then(t=>t.json()).then(t=>o.value=t.current)});function x(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const f=_(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),b=_(()=>new j(f.value,{keys:["id","path"]})),k=_(()=>r.value?b.value.search(r.value).map(e=>e.item):f.value);return(e,t)=>{const y=V,g=D,C=U,$=E,F=P,N=Q,w=H;return i(),c(d,null,[l(F,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l(y,{search:r.value,"onUpdate:search":t[0]||(t[0]=s=>r.value=s),"no-padding":"",p3:""},null,8,["search"]),(i(!0),c(d,null,W(k.value,s=>(i(),c(d,{key:s.id},[a("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:z(s.id===o.value?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:q=>p.value=s.id},v(x(s.id)),11,R),t[1]||(t[1]=a("div",{"x-divider":""},null,-1))],64))),128))]),right:u(()=>[o.value?.content?(i(),c("div",T,[a("div",Y,[a("code",null,v(o.value.id),1)]),l(g,{"h-full":"","of-auto":"","text-sm":"",code:o.value.content,lang:"typescript"},null,8,["code"])])):(i(),G($,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>t[2]||(t[2]=[a("span",{op75:""},"Select a file to start",-1)])),_:1})]),_:1}))]),_:1}),l(w,null,{default:u(()=>[l(N)]),_:1})],64)}}});export{oe as default};
1
+ import{_ as V}from"./nnavbar.vue-hsot3qp4.js";import{_ as D}from"./ncode-block.vue-fq4nv817.js";import{bf as S,bg as B,N as U,q as j,U as P,d as E}from"./kul02k0k.js";import{Q as i,S as c,U as a,k as I,b as m,w as W,l as d,a0 as l,$ as u,F as _,ab as q,a5 as v,Y as z,M as G}from"./vendor/json-editor-vue-kmaz80fw.js";import{_ as H}from"./help-fab.vue-kh0hzs3x.js";import"./client-if03554a.js";import"./vendor/unocss-fae7bffg.js";import"./vendor/shiki-bnvxb5wv.js";const L={class:"markdown-body"},M={__name:"virtual-files",setup(h,{expose:r}){return r({frontmatter:{}}),(p,o)=>(i(),c("div",L,o[0]||(o[0]=[a("h1",null,"Virtual Files",-1),a("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1)])))}},Q=["onClick"],R={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Y={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},oe=I({__name:"virtual-files",setup(h){const r=m(""),n=S(),p=B(),o=m();W(()=>{if(!p.value)return;const e=`/_vfs.json/${encodeURIComponent(p.value)}`;fetch(e,{headers:{accept:"application/json"}}).then(t=>t.json()).then(t=>o.value=t.current)});function x(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const f=d(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),b=d(()=>new U(f.value,{keys:["id","path"]})),k=d(()=>r.value?b.value.search(r.value).map(e=>e.item):f.value);return(e,t)=>{const y=V,g=D,C=P,$=E,F=j,N=M,w=H;return i(),c(_,null,[l(F,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l(y,{search:r.value,"onUpdate:search":t[0]||(t[0]=s=>r.value=s),"no-padding":"",p3:""},null,8,["search"]),(i(!0),c(_,null,q(k.value,s=>(i(),c(_,{key:s.id},[a("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:z(s.id===o.value?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:A=>p.value=s.id},v(x(s.id)),11,Q),t[1]||(t[1]=a("div",{"x-divider":""},null,-1))],64))),128))]),right:u(()=>[o.value?.content?(i(),c("div",R,[a("div",Y,[a("code",null,v(o.value.id),1)]),l(g,{"h-full":"","of-auto":"","text-sm":"",code:o.value.content,lang:"typescript"},null,8,["code"])])):(i(),G($,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>t[2]||(t[2]=[a("span",{op75:""},"Select a file to start",-1)])),_:1})]),_:1}))]),_:1}),l(w,null,{default:u(()=>[l(N)]),_:1})],64)}}});export{oe as default};
@@ -1,2 +1,2 @@
1
- import{O as re,P as ne,n as Q,Q as $,M as L,N as oe,at as le,s as ae,R as ue,ae as ce,a8 as de,S as M,V as A,W,$ as K,F as fe,ab as he,a7 as q,a1 as me,au as pe,X as ye,Y,a0 as ve}from"./vendor/json-editor-vue-gi2fewby.js";function be(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let R;function H(){H.init||(H.init=!0,R=be()!==-1)}var E={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){H(),Q(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",R&&this.$el.appendChild(e),e.data="about:blank",R||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!R&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ge=oe();re("data-v-b329ee4c");const Se={class:"resize-observer",tabindex:"-1"};ne();const ze=ge((e,t,i,s,r,a)=>($(),L("div",Se)));E.render=ze;E.__scopeId="data-v-b329ee4c";E.__file="src/components/ResizeObserver.vue";function C(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(t){return typeof t}:C=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function Ie(e,t,i){return we(e.prototype,t),e}function X(e){return $e(e)||Te(e)||Oe(e)||Ve()}function $e(e){if(Array.isArray(e))return N(e)}function Te(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Oe(e,t){if(e){if(typeof e=="string")return N(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return N(e,t)}}function N(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function Ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{O as re,P as ne,n as Q,Q as $,M as L,N as oe,at as le,s as ae,R as ue,ae as ce,a8 as de,S as M,V as A,W,$ as K,F as fe,ab as he,a7 as q,a1 as me,au as pe,X as ye,Y,a0 as ve}from"./vendor/json-editor-vue-kmaz80fw.js";function be(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let R;function H(){H.init||(H.init=!0,R=be()!==-1)}var E={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){H(),Q(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",R&&this.$el.appendChild(e),e.data="about:blank",R||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!R&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ge=oe();re("data-v-b329ee4c");const Se={class:"resize-observer",tabindex:"-1"};ne();const ze=ge((e,t,i,s,r,a)=>($(),L("div",Se)));E.render=ze;E.__scopeId="data-v-b329ee4c";E.__file="src/components/ResizeObserver.vue";function C(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(t){return typeof t}:C=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function Ie(e,t,i){return we(e.prototype,t),e}function X(e){return $e(e)||Te(e)||Oe(e)||Ve()}function $e(e){if(Array.isArray(e))return N(e)}function Te(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Oe(e,t){if(e){if(typeof e=="string")return N(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return N(e,t)}}function N(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function Ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function ke(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,r,a,u=function(n){for(var d=arguments.length,p=new Array(d>1?d-1:0),S=1;S<d;S++)p[S-1]=arguments[S];if(a=p,!(s&&n===r)){var w=i.leading;typeof w=="function"&&(w=w(n,r)),(!s||n!==r)&&w&&e.apply(void 0,[n].concat(X(a))),r=n,clearTimeout(s),s=setTimeout(function(){e.apply(void 0,[n].concat(X(a))),s=0},t)}};return u._clear=function(){clearTimeout(s),s=null},u}function J(e,t){if(e===t)return!0;if(C(e)==="object"){for(var i in e)if(!J(e[i],t[i]))return!1;return!0}return!1}var Me=function(){function e(t,i,s){_e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(i,s)}return Ie(e,[{key:"createObserver",value:function(i,s){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=xe(i),this.callback=function(c,n){r.options.callback(c,n),c&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var a=this.options.throttleOptions||{},u=a.leading;this.callback=ke(this.callback,this.options.throttle,{leading:function(n){return u==="both"||u==="visible"&&n||u==="hidden"&&!n}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(c){var n=c[0];if(c.length>1){var d=c.find(function(S){return S.isIntersecting});d&&(n=d)}if(r.callback){var p=n.isIntersecting&&n.intersectionRatio>=r.threshold;if(p===r.oldResult)return;r.oldResult=p,r.callback(p,n)}},this.options.intersection),Q(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Z(e,t,i){var s=t.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new Me(e,s,i);e._vue_visibilityState=r}}function Ae(e,t,i){var s=t.value,r=t.oldValue;if(!J(s,r)){var a=e._vue_visibilityState;if(!s){ee(e);return}a?a.createObserver(s,i):Z(e,{value:s},i)}}function ee(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Re={beforeMount:Z,updated:Ae,unmounted:ee},Ce={itemsLimit:1e3},Ee=/(auto|scroll)/;function te(e,t){return e.parentNode===null?t:te(e.parentNode,t.concat([e]))}var P=function(t,i){return getComputedStyle(t,null).getPropertyValue(i)},Pe=function(t){return P(t,"overflow")+P(t,"overflow-y")+P(t,"overflow-x")},Le=function(t){return Ee.test(Pe(t))};function G(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=te(e.parentNode,[]),i=0;i<t.length;i+=1)if(Le(t[i]))return t[i];return document.scrollingElement||document.documentElement}}function j(e){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(e)}var He={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Ne(){return this.items.length&&j(this.items[0])!=="object"}var B=!1;if(typeof window<"u"){B=!1;try{var je=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("test",null,je)}catch{}}let Be=0;var ie={name:"RecycleScroller",components:{ResizeObserver:E},directives:{ObserveVisibility:Re},props:{...He,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,i=this.sizeField,s=this.minItemSize;let r=1e4,a=0,u;for(let c=0,n=t.length;c<n;c++)u=t[c][i]||s,u<r&&(r=u),a+=u,e[c]={accumulator:a,size:u};return this.$_computedMinItemSize=r,e}return[]},simpleArray:Ne,itemIndexByKey(){const{keyField:e,items:t}=this,i={};for(let s=0,r=t.length;s<r;s++)i[t[s][e]]=s;return i}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,i,s,r){const a=le({id:Be++,index:t,used:!0,key:s,type:r}),u=ae({item:i,position:0,nr:a});return e.push(u),u},unuseView(e,t=!1){const i=this.$_unusedViews,s=e.nr.type;let r=i.get(s);r||(r=[],i.set(s,r)),r.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:i}=this.updateVisibleItems(!1,!0);i||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const i=this.itemSize,s=this.gridItems||1,r=this.itemSecondarySize||i,a=this.$_computedMinItemSize,u=this.typeField,c=this.simpleArray?null:this.keyField,n=this.items,d=n.length,p=this.sizes,S=this.$_views,w=this.$_unusedViews,V=this.pool,se=this.itemIndexByKey;let y,f,T,g,z;if(!d)y=f=g=z=T=0;else if(this.$_prerender)y=g=0,f=z=Math.min(this.prerender,n.length),T=null;else{const o=this.getScroll();if(t){let m=o.start-this.$_lastUpdateScrollPosition;if(m<0&&(m=-m),i===null&&m<a||m<i)return{continuous:!0}}this.$_lastUpdateScrollPosition=o.start;const v=this.buffer;o.start-=v,o.end+=v;let h=0;if(this.$refs.before&&(h=this.$refs.before.scrollHeight,o.start-=h),this.$refs.after){const m=this.$refs.after.scrollHeight;o.end+=m}if(i===null){let m,O=0,F=d-1,b=~~(d/2),U;do U=b,m=p[b].accumulator,m<o.start?O=b:b<d-1&&p[b+1].accumulator>o.start&&(F=b),b=~~((O+F)/2);while(b!==U);for(b<0&&(b=0),y=b,T=p[d-1].accumulator,f=b;f<d&&p[f].accumulator<o.end;f++);for(f===-1?f=n.length-1:(f++,f>d&&(f=d)),g=y;g<d&&h+p[g].accumulator<o.start;g++);for(z=g;z<d&&h+p[z].accumulator<o.end;z++);}else{y=~~(o.start/i*s);const m=y%s;y-=m,f=Math.ceil(o.end/i*s),g=Math.max(0,Math.floor((o.start-h)/i*s)),z=Math.floor((o.end-h)/i*s),y<0&&(y=0),f>d&&(f=d),g<0&&(g=0),z>d&&(z=d),T=Math.ceil(d/s)*i}}f-y>Ce.itemsLimit&&this.itemsLimitError(),this.totalSize=T;let l;const x=y<=this.$_endIndex&&f>=this.$_startIndex;if(x)for(let o=0,v=V.length;o<v;o++)l=V[o],l.nr.used&&(e&&(l.nr.index=se[l.item[c]]),(l.nr.index==null||l.nr.index<y||l.nr.index>=f)&&this.unuseView(l));const D=x?null:new Map;let I,_,k;for(let o=y;o<f;o++){I=n[o];const v=c?I[c]:I;if(v==null)throw new Error(`Key is ${v} on item (keyField is '${c}')`);if(l=S.get(v),!i&&!p[o].size){l&&this.unuseView(l);continue}_=I[u];let h=w.get(_),m=!1;if(!l)x?h&&h.length?l=h.pop():l=this.addView(V,o,I,v,_):(k=D.get(_)||0,(!h||k>=h.length)&&(l=this.addView(V,o,I,v,_),this.unuseView(l,!0),h=w.get(_)),l=h[k],D.set(_,k+1)),S.delete(l.nr.key),l.nr.used=!0,l.nr.index=o,l.nr.key=v,l.nr.type=_,S.set(v,l),m=!0;else if(!l.nr.used&&(l.nr.used=!0,m=!0,h)){const O=h.indexOf(l);O!==-1&&h.splice(O,1)}l.item=I,m&&(o===n.length-1&&this.$emit("scroll-end"),o===0&&this.$emit("scroll-start")),i===null?(l.position=p[o-1].accumulator,l.offset=0):(l.position=Math.floor(o/s)*i,l.offset=o%s*r)}return this.$_startIndex=y,this.$_endIndex=f,this.emitUpdate&&this.$emit("update",y,f,g,z),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=G(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,i=t==="vertical";let s;if(this.pageMode){const r=e.getBoundingClientRect(),a=i?r.height:r.width;let u=-(i?r.top:r.left),c=i?window.innerHeight:window.innerWidth;u<0&&(c+=u,u=0),u+c>a&&(c=a-u),s={start:u,end:u+c}}else i?s={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:s={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return s},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,B?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const i=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/i)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let i,s,r;if(this.pageMode){const a=G(this.$el),u=a.tagName==="HTML"?0:a[t.scroll],c=a.getBoundingClientRect(),d=this.$el.getBoundingClientRect()[t.start]-c[t.start];i=a,s=t.scroll,r=e+u+d}else i=this.$el,s=t.scroll,r=e;i[s]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const De={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Fe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Ue(e,t,i,s,r,a){const u=ue("ResizeObserver"),c=ce("observe-visibility");return de(($(),M("div",{class:Y(["vue-recycle-scroller",{ready:r.ready,"page-mode":i.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...n)=>a.handleScroll&&a.handleScroll(...n))},[e.$slots.before?($(),M("div",De,[A(e.$slots,"before")],512)):W("v-if",!0),($(),L(q(i.listTag),{ref:"wrapper",style:ye({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",i.listClass])},{default:K(()=>[($(!0),M(fe,null,he(r.pool,n=>($(),L(q(i.itemTag),me({key:n.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${n.position}px) translate${e.direction==="vertical"?"X":"Y"}(${n.offset}px)`,width:i.gridItems?`${e.direction==="vertical"&&i.itemSecondarySize||i.itemSize}px`:void 0,height:i.gridItems?`${e.direction==="horizontal"&&i.itemSecondarySize||i.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[i.itemClass,{hover:!i.skipHover&&r.hoverKey===n.nr.key}]]},pe(i.skipHover?{}:{mouseenter:()=>{r.hoverKey=n.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:K(()=>[A(e.$slots,"default",{item:n.item,index:n.nr.index,active:n.nr.used})]),_:2},1040,["style","class"]))),128)),A(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?($(),M("div",Fe,[A(e.$slots,"after")],512)):W("v-if",!0),ve(u,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[c,a.handleVisibilityChange]])}ie.render=Ue;ie.__file="src/components/RecycleScroller.vue";export{ie as s};