@unocss/inspector 0.15.3 → 0.16.0
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.
- package/dist/client/assets/{[id].bdb23977.js → _id_.7166bb2a.js} +1 -1
- package/dist/client/assets/{[id].e876e72e.css → _id_.a4f68914.css} +0 -0
- package/dist/client/assets/index.09f6a57e.css +1 -0
- package/dist/client/assets/{index.cccfc7f2.js → index.bd1dace4.js} +3 -3
- package/dist/client/assets/repl.cfd4029f.js +3 -0
- package/dist/client/assets/vendor.fd8423be.js +34 -0
- package/dist/client/index.html +3 -3
- package/package.json +1 -1
- package/dist/client/assets/index.97c32687.css +0 -1
- package/dist/client/assets/repl.27639657.js +0 -3
- package/dist/client/assets/vendor.10d74678.js +0 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g,J as C,K as k,i as s,a as p,c as x,l as _,m as M,b as o,p as y,t as m,k as S,v as $,q as w}from"./vendor.
|
|
1
|
+
import{d as g,J as C,K as k,i as s,a as p,c as x,l as _,m as M,b as o,p as y,t as m,k as S,v as $,q as w}from"./vendor.fd8423be.js";import{i as b,c as B,d as R,_ as V,a as z}from"./index.bd1dace4.js";const E=["v-bind:",":"],A=/[\s'"`;]+/g,F=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,N=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,j=r=>({name:"attributify",extract({code:d}){const t=Array.from(d.matchAll(F)).flatMap(e=>Array.from((e[1]||"").matchAll(N))).flatMap(([,e,i,a])=>{var l;if((l=r==null?void 0:r.ignoreAttributes)==null?void 0:l.includes(e))return[];for(const n of E)if(e.startsWith(n)){e=e.slice(n.length);break}return a?["class","className"].includes(e)?a.split(A).filter(b):a.split(A).filter(Boolean).map(n=>`[${e}~="${n}"]`):b(e)&&(r==null?void 0:r.nonValuedAttribute)!==!1?[`[${e}=""]`]:[]});return new Set(t)}}),I={key:0,"h-full":"",grid:"~ rows-[max-content,1fr]","of-hidden":""},K=o("div",{op50:""}," Module ",-1),P=o("div",{"i-carbon-launch":""},null,-1),U=o("div",{op50:""}," Matched Rules ",-1),W=o("div",{op50:""}," CSS Size ",-1),q=o("span",{op50:""},"gzipped",-1),D={key:0,"row-span-3":""},J=o("div",{op50:""}," Potentially Unmatched ",-1),T={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},Z=g({props:{id:null},setup(r){const d=r,{data:t}=B(C(d,"id")),e=d.id.split(/\./g).pop();function i(){fetch(`/__open-in-editor?file=${encodeURIComponent(d.id)}`)}const a=j({strict:!0}),l=k(async()=>{var f;const n=await a.extract({code:((f=t.value)==null?void 0:f.code)||""})||[];return Array.from(n).filter(c=>!c.startsWith("[")).filter(c=>{var u;return!((u=t.value)==null?void 0:u.matched.includes(c))})});return(n,f)=>{const c=R,u=V,h=z;return s(t)?(p(),x("div",I,[_(u,{grid:"~ cols-3 gap-4"},{default:M(()=>{var v;return[o("div",null,[K,o("a",{"cursor-pointer":"",op80:"","hover:op100":"",onClick:i},[_(c,{id:s(t).id,"mr-1":""},null,8,["id"]),P])]),o("div",null,[U,y(" "+m(s(t).matched.length),1)]),o("div",null,[W,y(" "+m(((((v=s(t))==null?void 0:v.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),q]),s(l).length?(p(),x("div",D,[J,o("code",null,m(s(l).join(", ")),1)])):S("",!0)]}),_:1}),o("div",T,[_(h,{"h-full":"","model-value":s(t).code,"read-only":!0,mode:s(e),matched:s(t).matched},null,8,["model-value","mode","matched"]),_(h,{"h-full":"",b:"l main","model-value":s(t).css,"read-only":!0,mode:"css"},null,8,["model-value"])])])):S("",!0)}}}),L=g({setup(r){const d=$();return(t,e)=>{const i=Z;return p(),w(i,{id:s(d).params.id},null,8,["id"])}}});export{L as default};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr[title]{text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.splitpanes{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.splitpanes--vertical{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.splitpanes--horizontal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{-webkit-transition:width .2s ease-out;transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{-webkit-transition:height .2s ease-out;transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{-webkit-transition:none;transition:none}.splitpanes__splitter{-ms-touch-action:none;touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-negative:0;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:after,.splitpanes.default-theme .splitpanes__splitter:before{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;-webkit-transition:background-color .3s;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:after,.splitpanes.default-theme .splitpanes__splitter:hover:before{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after,.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{-webkit-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after,.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{-webkit-transform:translateX(-50%);transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.dark .dark\:i-carbon-moon,.dark [dark\:i-carbon-moon=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-dashboard,[i-carbon-dashboard=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M24 21h2v5h-2z' fill='currentColor'/%3E%3Cpath d='M20 16h2v10h-2z' fill='currentColor'/%3E%3Cpath d='M11 26a5.006 5.006 0 0 1-5-5h2a3 3 0 1 0 3-3v-2a5 5 0 0 1 0 10z' fill='currentColor'/%3E%3Cpath d='M28 2H4a2.002 2.002 0 0 0-2 2v24a2.002 2.002 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V4a2.002 2.002 0 0 0-2-2zm0 9H14V4h14zM12 4v7H4V4zM4 28V13h24l.002 15z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-document-blank{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M25.7 9.3l-7-7A.908.908 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h16a2.006 2.006 0 0 0 2-2V10a.908.908 0 0 0-.3-.7zM18 4.4l5.6 5.6H18zM24 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-folder{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M11.17 6l3.42 3.41l.58.59H28v16H4V6h7.17m0-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H16l-3.41-3.41A2 2 0 0 0 11.17 4z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-launch,[i-carbon-launch=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M26 28H6a2.003 2.003 0 0 1-2-2V6a2.003 2.003 0 0 1 2-2h10v2H6v20h20V16h2v10a2.003 2.003 0 0 1-2 2z' fill='currentColor'/%3E%3Cpath d='M20 2v2h6.586L18 12.586L19.414 14L28 5.414V12h2V2H20z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-portfolio{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M28 10h-6V6a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V12a2 2 0 0 0-2-2zM12 6h8v4h-8zM4 26V12h24v14z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-sun,[i-carbon-sun=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z' fill='currentColor'/%3E%3Cpath d='M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z' fill='currentColor'/%3E%3Cpath d='M2 15.005h5v2H2z' fill='currentColor'/%3E%3Cpath d='M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z' fill='currentColor'/%3E%3Cpath d='M15 25.005h2v5h-2z' fill='currentColor'/%3E%3Cpath d='M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z' fill='currentColor'/%3E%3Cpath d='M25 15.005h5v2h-5z' fill='currentColor'/%3E%3Cpath d='M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z' fill='currentColor'/%3E%3Cpath d='M15 2.005h2v5h-2z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-terminal,[i-carbon-terminal=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M26 4.01H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-20a2 2 0 0 0-2-2zm0 2v4H6v-4zm-20 20v-14h20v14z' fill='currentColor'/%3E%3Cpath d='M10.76 16.18l2.82 2.83l-2.82 2.83l1.41 1.41l4.24-4.24l-4.24-4.24l-1.41 1.41z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-vmdk-disk{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Ccircle cx='10.5' cy='24.5' r='1.5' fill='currentColor'/%3E%3Cpath d='M18 16.414L19.414 15L23 18.585L21.585 20z' fill='currentColor'/%3E%3Ccircle cx='16' cy='13' r='2' fill='currentColor'/%3E%3Cpath d='M16 6a7 7 0 0 0 0 14v-2a5 5 0 1 1 5-5h2a7 7 0 0 0-7-7z' fill='currentColor'/%3E%3Cpath d='M26 2H6a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 26H6V4h20z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-logos-vue{background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 221'%3E%3Cpath d='M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36z' fill='%2341B883'/%3E%3Cpath d='M0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0z' fill='%2341B883'/%3E%3Cpath d='M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56z' fill='%2335495E'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}html,body,#app{height:100%;overflow:hidden}html:not(.dark){color-scheme:light}.dark{color-scheme:dark;background:#080808;color:#fff}.splitpanes__splitter{position:relative}.splitpanes__splitter:before{content:"";position:absolute;left:0;top:0;transition:opacity .4s;background-color:#7d7d7d1a;opacity:0;z-index:1}.splitpanes__splitter:hover:before{opacity:1}.splitpanes--vertical>.splitpanes__splitter:before{left:-10px;right:-10px;height:100%}.splitpanes--horizontal>.splitpanes__splitter:before{top:-10px;bottom:-10px;width:100%}.b-main,[b-main=""],[b~="main"]{--un-border-opacity:1;border-color:rgba(156,163,175,var(--un-border-opacity));--un-border-opacity:0.3;}.p-5,[p-5=""]{padding:1.25rem;}.p0,[p0=""]{padding:0rem;}.p4,[p4=""]{padding:1rem;}[p~="x1\.5"]{padding-left:0.375rem;padding-right:0.375rem;}[p~="x2"]{padding-left:0.5rem;padding-right:0.5rem;}[p~="x4"]{padding-left:1rem;padding-right:1rem;}[p~="y0\.5"]{padding-top:0.125rem;padding-bottom:0.125rem;}[p~="y1"]{padding-top:0.25rem;padding-bottom:0.25rem;}[p~="y3"]{padding-top:0.75rem;padding-bottom:0.75rem;}[p~="y4"]{padding-top:1rem;padding-bottom:1rem;}.pl3,[pl3=""]{padding-left:0.75rem;}.children\:my-auto > *,[children\:my-auto=""] > *{margin-top:auto;margin-bottom:auto;}.ml-1,[ml-1=""]{margin-left:0.25rem;}.ml2,[ml2=""]{margin-left:0.5rem;}.ml4,[ml4=""]{margin-left:1rem;}.mr-1,[mr-1=""]{margin-right:0.25rem;}[m~="l-3\.7"]{margin-left:0.925rem;}[m~="r-1\.5"]{margin-right:0.375rem;}.block,[block=""]{display:block;}.inline-block,[inline-block=""]{display:inline-block;}.hover\:op100:hover,[hover\:op100=""]:hover{opacity:1;}.op50,[op50=""]{opacity:0.5;}.op60,[op60=""]{opacity:0.6;}.op80,[op80=""]{opacity:0.8;}.bg-gray\/10,.bg-gray4\:10,[bg-gray4\:10=""]{background-color:rgba(156,163,175,0.1);}.bg-teal5\:10,[bg-teal5\:10=""]{background-color:rgba(20,184,166,0.1);}.b{border-width:1px;border-style:solid;}.b-l,[b-l=""],[b~="l"]{border-left-width:1px;border-style:solid;}[b~="b"]{border-bottom-width:1px;border-style:solid;}[b~="r"]{border-right-width:1px;border-style:solid;}[b~="t"]{border-top-width:1px;border-style:solid;}.rounded,[rounded=""]{border-radius:0.25rem;}.font-mono,[font-mono=""]{font-family:'Fira Code', monospace;}.text-lg,[text-lg=""]{font-size:1.125rem;line-height:1.75rem;}.text-sm,[text-sm=""],[text~="sm"]{font-size:0.875rem;line-height:1.25rem;}.truncate,[truncate=""]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.dark [text~="dark\:gray3"]{--un-text-opacity:1;color:rgba(209,213,219,var(--un-text-opacity));}.hover\:text-red:hover{--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity));}.text-teal5,[text-teal5=""]{--un-text-opacity:1;color:rgba(20,184,166,var(--un-text-opacity));}[text~="gray5"]{--un-text-opacity:1;color:rgba(107,114,128,var(--un-text-opacity));}.italic,[italic=""]{font-style:italic;}.flex,[flex=""],[flex~="\~"]{display:flex;}.flex-auto,[flex-auto=""]{flex:1 1 auto;}[flex~="col"]{flex-direction:column;}.grid,[grid=""],[grid~="\~"]{display:grid;}.row-span-3,[row-span-3=""]{grid-row:span 3/span 3;}.grid-cols-2,[grid-cols-2=""]{grid-template-columns:repeat(2,minmax(0,1fr));}[grid~="cols-3"]{grid-template-columns:repeat(3,minmax(0,1fr));}[grid~="cols-4"]{grid-template-columns:repeat(4,minmax(0,1fr));}[grid~="rows-\[max-content\2c 1fr\]"]{grid-template-rows:max-content 1fr;}.gap-3,[flex~="gap-3"]{grid-gap:0.75rem;gap:0.75rem;}.gap-4,[grid~="gap-4"]{grid-gap:1rem;gap:1rem;}.h-full,[h-full=""]{height:100%;}[h~="\31 \.3em"]{height:1.3em;}.cursor-default,[cursor-default=""]{cursor:default;}.cursor-pointer,[cursor-pointer=""]{cursor:pointer;}.select-none,[select-none=""]{user-select:none;}.ws-nowrap,[ws-nowrap=""]{white-space:nowrap;}.ws-pre,[ws-pre=""]{white-space:pre;}.of-hidden,[of-hidden=""]{overflow:hidden;}.overflow-auto,[overflow-auto=""],[overflow~="auto"]{overflow:auto;}.relative,[relative=""]{position:relative;}.filter,[filter=""],.dark .dark\:invert,.dark [dark\:invert=""]{--un-blur:var(--un-empty,/*!*/ /*!*/);--un-brightness:var(--un-empty,/*!*/ /*!*/);--un-contrast:var(--un-empty,/*!*/ /*!*/);--un-grayscale:var(--un-empty,/*!*/ /*!*/);--un-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-invert:var(--un-empty,/*!*/ /*!*/);--un-saturate:var(--un-empty,/*!*/ /*!*/);--un-sepia:var(--un-empty,/*!*/ /*!*/);--un-drop-shadow:var(--un-empty,/*!*/ /*!*/);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia) var(--un-drop-shadow);}.dark .dark\:invert,.dark [dark\:invert=""]{--un-invert:invert(1);}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}:root{--cm-scheme: light;--cm-foreground: #6e6e6e;--cm-background: #f4f4f4;--cm-comment: #a8a8a8;--cm-string: #555555;--cm-literal: #333333;--cm-keyword: #000000;--cm-function: #4f4f4f;--cm-deleted: #333333;--cm-class: #333333;--cm-builtin: #757575;--cm-property: #333333;--cm-namespace: #4f4f4f;--cm-punctuation: #ababab;--cm-decorator: var(--cm-class);--cm-operator: var(--cm-punctuation);--cm-number: var(--cm-literal);--cm-boolean: var(--cm-literal);--cm-variable: var(--cm-literal);--cm-constant: var(--cm-literal);--cm-symbol: var(--cm-literal);--cm-interpolation: var(--cm-literal);--cm-selector: var(--cm-keyword);--cm-keyword-control: var(--cm-keyword);--cm-regex: var(--cm-string);--cm-json-property: var(--cm-property);--cm-inline-background: var(--cm-background);--cm-comment-style: italic;--cm-url-decoration: underline;--cm-line-number: #a5a5a5;--cm-line-number-gutter: #333333;--cm-line-highlight-background: #eeeeee;--cm-selection-background: #aaaaaa;--cm-marker-color: var(--cm-foreground);--cm-marker-opacity: .4;--cm-marker-font-size: .8em;--cm-font-size: 1em;--cm-line-height: 1.5em;--cm-font-family: monospace;--cm-inline-font-size: var(--cm-font-size);--cm-block-font-size: var(--cm-font-size);--cm-tab-size: 2;--cm-block-padding-x: 1em;--cm-block-padding-y: 1em;--cm-block-margin-x: 0;--cm-block-margin-y: .5em;--cm-block-radius: .3em;--cm-inline-padding-x: .3em;--cm-inline-padding-y: .1em;--cm-inline-radius: .3em}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection,.cm-s-vars .CodeMirror-line>span::selection,.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection,.cm-s-vars .CodeMirror-line>span::-moz-selection,.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-operator{color:var(--cm-punctuation)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-property)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid currentColor}.CodeMirror{height:100%!important;width:100%!important;font-family:inherit}.cm-s-vars .cm-tag{color:var(--cm-keyword)}:root{--cm-foreground: #393a3480;--cm-background: #fdfdfd;--cm-comment: #a0ada0;--cm-string: #b56959;--cm-literal: #2f8a89;--cm-number: #296aa3;--cm-keyword: #1c6b48;--cm-function: #6c7834;--cm-boolean: #1c6b48;--cm-constant: #a65e2b;--cm-deleted: #a14f55;--cm-class: #2993a3;--cm-builtin: #ab5959;--cm-property: #b58451;--cm-namespace: #b05a78;--cm-punctuation: #8e8f8b;--cm-decorator: #bd8f8f;--cm-regex: #ab5e3f;--cm-json-property: #698c96}html.dark{--cm-scheme: dark;--cm-foreground: #d4cfbf80;--cm-background: #111;--cm-comment: #758575;--cm-string: #d48372;--cm-literal: #429988;--cm-keyword: #4d9375;--cm-boolean: #1c6b48;--cm-number: #6394bf;--cm-variable: #c2b36e;--cm-function: #a1b567;--cm-deleted: #a14f55;--cm-class: #54b1bf;--cm-builtin: #e0a569;--cm-property: #dd8e6e;--cm-namespace: #db889a;--cm-punctuation: #858585;--cm-decorator: #bd8f8f;--cm-regex: #ab5e3f;--cm-json-property: #6b8b9e;--cm-line-number: #888888;--cm-line-number-gutter: #eeeeee;--cm-line-highlight-background: #444444;--cm-selection-background: #44444450}.highlighted{border-bottom:1px dashed currentColor}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var ue=Object.defineProperty,pe=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var he=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var J=(e,n,t)=>n in e?ue(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,S=(e,n)=>{for(var t in n||(n={}))he.call(n,t)&&J(e,t,n[t]);if(Z)for(var t of Z(n))me.call(n,t)&&J(e,t,n[t]);return e},Q=(e,n)=>pe(e,_e(n));import{C as fe,w as X,d as y,r as ve,u as ge,o as ye,n as xe,a as d,c as p,b as r,e as
|
|
2
|
-
`)),1)]),r("div",Ye,[et,g(" "+_((I=(
|
|
3
|
-
`)),1)])])]}),_:1}),h(i,{"h-full":"","model-value":((c=l(j))==null?void 0:c.css)||"/* empty */","read-only":!0,mode:"css"},null,8,["model-value"])])}}}),gt={};function yt(e,n){const t=vt;return d(),$(t)}var xt=ne(gt,[["render",yt]]);const
|
|
1
|
+
var ue=Object.defineProperty,pe=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var he=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var J=(e,n,t)=>n in e?ue(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,S=(e,n)=>{for(var t in n||(n={}))he.call(n,t)&&J(e,t,n[t]);if(Z)for(var t of Z(n))me.call(n,t)&&J(e,t,n[t]);return e},Q=(e,n)=>pe(e,_e(n));import{C as fe,w as X,d as y,r as ve,u as ge,o as ye,n as xe,a as d,c as p,b as r,e as be,f as Y,g as w,h as k,i as l,j as ke,F,t as _,k as E,l as h,m as x,p as g,q as $,s as V,v as $e,x as R,y as ee,z as we,A as Ee,B as L,D as Re,E as Ce,G as je}from"./vendor.fd8423be.js";const Oe=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}};Oe();const Se="modulepreload",te={},Fe="/__unocss/",M=function(n,t){return!t||t.length===0?n():Promise.all(t.map(o=>{if(o=`${Fe}${o}`,o in te)return;te[o]=!0;const s=o.endsWith(".css"),i=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${i}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Se,s||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),s)return new Promise((a,m)=>{c.addEventListener("load",a),c.addEventListener("error",m)})})).then(()=>n())};function oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ve=/^\[(.+?)~?="(.*)"\]$/,Le=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/;function Me(e){return e.match(Ve)}function Ut(e=""){return Le.test(e)}function Pe(e,n){const t=[],o=[],s=new Set;Array.from(n).forEach(c=>{const a=Me(c);a?a[2]?o.push(a):s.add(a[1]):s.add(c)});let i=0;return e.split(/[\s"';<>]/g).forEach(c=>{const a=i+c.length;s.has(c)&&t.push([i,a,c]),i=a+1}),o.forEach(([,c,a])=>{const m=new RegExp(`${oe(c)}=(['"])[^\\1]*?${oe(a)}[^\\1]*?\\1`,"g");Array.from(e.matchAll(m)).forEach(v=>{const f=v.index+v[0].indexOf(a),b=f+a.length;t.push([f,b,`[${c}="${a}"]`])})}),t}function Ie(e,n,t={}){const o=fe.fromTextArea(e.value,S({theme:"vars"},t));let s=!1;return o.on("change",()=>{if(s){s=!1;return}n.value=o.getValue()}),X(n,i=>{if(i!==o.getValue()){s=!0;const c=o.listSelections();o.replaceRange(i,o.posFromIndex(0),o.posFromIndex(1/0)),o.setSelections(c)}},{immediate:!0}),o}const Te={relative:"","font-mono":"","overflow-auto":"","text-sm":""},Ae=y({props:{modelValue:null,mode:null,readOnly:{type:Boolean},matched:null},setup(e,{emit:n}){const t=e,o={html:"htmlmixed",vue:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript"},s=ve(),i=ge(t,"modelValue",n,{passive:!0});return ye(async()=>{const c=Ie(s,i,Q(S({},t),{mode:o[t.mode||""]||t.mode}));c.setSize("100%","100%"),setTimeout(()=>c.refresh(),100);const a=[];function m(f,b){a.push(c.markText(c.posFromIndex(f),c.posFromIndex(b),{className:"highlighted"}))}function v(){a.forEach(f=>f.clear()),Pe(t.modelValue,Array.from(t.matched||[])).forEach(f=>m(...f))}X(()=>[t.modelValue,t.matched],async()=>{await xe(),t.matched&&v()},{immediate:!0})}),(c,a)=>(d(),p("div",Te,[r("textarea",{ref:(m,v)=>{v.el=m,s.value=m}},null,512)]))}});var ne=(e,n)=>{const t=e.__vccOpts||e;for(const[o,s]of n)t[o]=s;return t};const De={},Ne={"bg-gray4:10":"","p-5":"",b:"b main",text:"sm gray5 dark:gray3"};function ze(e,n){return d(),p("div",Ne,[be(e.$slots,"default")])}var Be=ne(De,[["render",ze]]);const Ue="/@vite/client",se=Y(),re=Y(),We=se.on,ce=re.on;M(()=>import(Ue),[]).then(e=>{const n=e.createHotContext("/");n.on("vite:beforeUpdate",t=>{t.updates.forEach(o=>{se.trigger(o)})}),n.on("unocss:config-changed",()=>{re.trigger()})}).catch(e=>{console.error("failed to connect to client vite server, you might need to do manual refresh to see the updates"),console.error(e)});const C="/__unocss_api",ie=w(C).json(),P=w(`${C}/overview`,{immediate:!1}).json(),u=ie.data,j=P.data;ce(()=>{ie.execute(),P.execute()});function Wt(e){const n=w(k(()=>`${C}/module?id=${encodeURIComponent(l(e))}`),{refetch:!0}).json();return ce(()=>n.execute()),We(t=>{var o;(t.path===l(e)||t.path===l(e).slice(((o=u.value)==null?void 0:o.root.length)||0))&&setTimeout(()=>{n.execute()},50)}),n}function Ht(e){const n=ke(e,500);return w(k(()=>`${C}/repl?token=${encodeURIComponent(n.value)}`),{refetch:!0}).json()}const O=k(()=>{if(!u.value)return{workspace:{children:{},items:[]},root:{children:{},items:[]}};const e=u.value.modules.map(o=>({full:o,path:o})),n=e.filter(o=>o.full.startsWith(u.value.root)),t=e.filter(o=>!o.full.startsWith(u.value.root));return n.forEach(o=>o.path=o.path.slice(u.value.root.length+1)),{workspace:ae(n,"Project Root"),root:ae(t,"Disk Root")}});function ae(e,n){const t={name:n,children:{},items:[]};function o(s,i,c=t){if(i.length<=1){c.items.push(s);return}const a=i.shift();c.children[a]||(c.children[a]={name:a,children:{},items:[]}),o(s,i,c.children[a])}return e.forEach(s=>{const i=s.path.split(/\//g).filter(Boolean);o(s,i)}),t}const He={key:0,"ws-wrap":""},qe=r("span",{op80:""},".",-1),Ke={key:1},Ge=y({props:{id:null},setup(e){return(n,t)=>e.id&&l(u)?(d(),p("span",He,[e.id.startsWith(l(u).root)?(d(),p(F,{key:0},[qe,r("span",null,_(e.id.slice(l(u).root.length)),1)],64)):(d(),p("span",Ke,_(e.id),1))])):E("",!0)}}),Ze={"h-full":"",grid:"~ rows-[max-content,1fr]"},Je={p4:"",grid:"~ cols-4 gap-4"},Qe=r("div",{op80:""}," Presets ",-1),Xe={op50:"","ws-pre":""},Ye={overflow:"auto"},et=r("div",{op80:""}," Rules ",-1),tt=r("span",{op50:""},"dynamic",-1),ot=r("br",null,null,-1),nt=r("span",{op50:""},"static",-1),st=r("div",{op80:""}," Variants ",-1),rt=r("div",{op80:""}," Shortcuts ",-1),ct={key:0},it=r("div",{op80:""}," Config File ",-1),at=r("div",{op80:""}," Version ",-1),lt={op50:"","ws-pre":""},dt={b:"t main",p4:"",grid:"~ cols-4 gap-4"},ut=r("div",{op80:""}," Included Files ",-1),pt=r("div",{op80:""}," CSS Size ",-1),_t=r("span",{op50:""},"gzipped",-1),ht=r("div",{op80:""}," Matched Rules ",-1),mt=r("div",{op80:""}," Layers ",-1),ft={op50:"","ws-pre":""},vt=y({setup(e){return P.execute(),(n,t)=>{var c;const o=Ge,s=Be,i=Ae;return d(),p("div",Ze,[h(s,{p0:""},{default:x(()=>{var a,m,v,f,b,I,T,A,D,N,z,B,U,W,H,q,K,G;return[r("div",Je,[r("div",null,[Qe,r("div",Xe,_((v=(m=(a=l(u))==null?void 0:a.config)==null?void 0:m.presets)==null?void 0:v.map(de=>de.name).join(`
|
|
2
|
+
`)),1)]),r("div",Ye,[et,g(" "+_((I=(b=(f=l(u))==null?void 0:f.config)==null?void 0:b.rulesDynamic)==null?void 0:I.length)+" ",1),tt,ot,g(" "+_(Object.keys(((A=(T=l(u))==null?void 0:T.config)==null?void 0:A.rulesStaticMap)||{}).length)+" ",1),nt]),r("div",null,[st,g(" "+_((z=(N=(D=l(u))==null?void 0:D.config)==null?void 0:N.variants)==null?void 0:z.length),1)]),r("div",null,[rt,g(" "+_((B=l(u))==null?void 0:B.config.shortcuts.length),1)]),((U=l(u))==null?void 0:U.configPath)?(d(),p("div",ct,[it,h(o,{id:l(u).configPath},null,8,["id"])])):E("",!0),r("div",null,[at,r("div",lt,_((W=l(u))==null?void 0:W.version),1)])]),r("div",dt,[r("div",null,[ut,g(" "+_((H=l(u))==null?void 0:H.modules.length),1)]),r("div",null,[pt,g(" "+_(((((q=l(j))==null?void 0:q.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),_t]),r("div",null,[ht,g(" "+_((K=l(j))==null?void 0:K.matched.length),1)]),r("div",null,[mt,r("div",ft,_((G=l(j))==null?void 0:G.layers.join(`
|
|
3
|
+
`)),1)])])]}),_:1}),h(i,{"h-full":"","model-value":((c=l(j))==null?void 0:c.css)||"/* empty */","read-only":!0,mode:"css"},null,8,["model-value"])])}}}),gt={};function yt(e,n){const t=vt;return d(),$(t)}var xt=ne(gt,[["render",yt]]);const bt=[{name:"index",path:"/",component:xt,props:!0},{name:"repl",path:"/repl",component:()=>M(()=>import("./repl.cfd4029f.js"),["assets/repl.cfd4029f.js","assets/repl.bafd2276.css","assets/vendor.fd8423be.js"]),props:!0},{name:"module-id",path:"/module/:id",component:()=>M(()=>import("./_id_.7166bb2a.js"),["assets/_id_.7166bb2a.js","assets/_id_.a4f68914.css","assets/vendor.fd8423be.js"]),props:!0}],kt=y({props:{id:null},setup(e){const n=e,t=k(()=>n.id.split(/\./g).pop()),o=k(()=>{switch(t.value){case"vue":return"i-logos-vue";default:return"i-carbon-document-blank"}});return(s,i)=>(d(),p("div",{class:V(l(o))},null,2))}}),$t={open:""},wt={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},Et={"ml-1":""},Rt=y({props:{node:null,icon:{default:"i-carbon-folder"}},setup(e){const n=$e();return(t,o)=>{const s=R("ModuleTreeNode",!0),i=kt,c=R("RouterLink");return d(),p("details",$t,[r("summary",wt,[r("div",{class:V(e.icon)},null,2),g(" "+_(e.node.name),1)]),(d(!0),p(F,null,ee(Object.entries(e.node.children),a=>(d(),$(s,{key:a[0],ml2:"",node:a[1]},null,8,["node"]))),128)),(d(!0),p(F,null,ee(e.node.items,a=>(d(),p("div",{key:a.full,ml4:"",truncate:""},[h(c,{block:"","text-sm":"",p:"x2 y1",rounded:"",to:`/module/${encodeURIComponent(a.full)}`,class:V({"bg-gray/10":a.full===l(n).params.id})},{default:x(()=>[h(i,{id:a.path},null,8,["id"]),r("span",Et,_(a.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}});var Ct="/__unocss/icon.svg";const jt={p:"x4 y3",b:"b main",flex:"","children:my-auto":""},Ot=r("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[r("img",{src:Ct,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),r("div",{"of-hidden":""},[g(" Inspector "),r("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),St=y({setup(e){const n=we(),t=Ee(n);return(o,s)=>(d(),p("nav",jt,[Ot,r("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:s[0]||(s[0]=i=>l(t)())})]))}}),Ft={"h-full":"",grid:"~ rows-[max-content,1fr]",b:"r main","of-hidden":""},Vt={overflow:"auto",p:"y4",flex:"~ col gap-3"},Lt=r("div",{"i-carbon-dashboard":""},null,-1),Mt=r("span",null," Overview ",-1),Pt=r("div",{"i-carbon-terminal":""},null,-1),It=r("span",null," REPL ",-1),Tt=r("div",{b:"b main"},null,-1),At=y({setup(e){return(n,t)=>{const o=St,s=R("RouterLink"),i=Rt;return d(),p("div",Ft,[h(o),r("div",Vt,[h(s,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:x(()=>[Lt,Mt]),_:1}),h(s,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:x(()=>[Pt,It]),_:1}),Tt,Object.keys(l(O).workspace.children).length?(d(),$(i,{key:0,node:l(O).workspace,pl3:"",icon:"i-carbon-portfolio"},null,8,["node"])):E("",!0),Object.keys(l(O).root.children).length?(d(),$(i,{key:1,node:l(O).root,pl3:"",icon:"i-carbon-vmdk-disk"},null,8,["node"])):E("",!0)])])}}}),Dt={"h-full":"","of-hidden":""},Nt=y({setup(e){return(n,t)=>{const o=At,s=R("RouterView");return d(),$(l(L.exports.Splitpanes),{"h-full":"",flex:""},{default:x(()=>[h(l(L.exports.Pane),{size:"15","push-other-panes":!1},{default:x(()=>[h(o)]),_:1}),h(l(L.exports.Pane),{size:"85"},{default:x(()=>[r("div",Dt,[h(s)])]),_:1})]),_:1})}}}),le=Re(Nt);le.use(Ce({history:je(),routes:bt}));le.mount("#app");export{Be as _,Ae as a,ne as b,Wt as c,Ge as d,Ht as f,Ut as i};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{d as m,H as p,a as c,c as f,l as t,m as h,b as n,i as s,I as v,q as g}from"./vendor.fd8423be.js";import{f as x,_ as b,a as y,b as B}from"./index.bd1dace4.js";const V={"h-full":"",grid:"~ rows-[max-content,1fr]","of-hidden":""},C=n("div",null," REPL Playground ",-1),R=n("div",{op60:""}," Edit your code below to test and play UnoCSS's matching and generating. ",-1),S={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},k=m({setup(i){const e=p("unocss:inspector:repl",`<div class="text-sm hover:text-red">
|
|
2
|
+
Hello World
|
|
3
|
+
</div>`),{data:o}=x(e);return(P,a)=>{var d,r;const u=b,l=y;return c(),f("div",V,[t(u,null,{default:h(()=>[C,R]),_:1}),n("div",S,[t(l,{modelValue:s(e),"onUpdate:modelValue":a[0]||(a[0]=_=>v(e)?e.value=_:null),"h-full":"",mode:"html",matched:((d=s(o))==null?void 0:d.matched)||[]},null,8,["modelValue","matched"]),t(l,{"h-full":"","b-l":"","b-main":"","model-value":((r=s(o))==null?void 0:r.css)||"/* empty */","read-only":!0,mode:"css"},null,8,["model-value"])])])}}}),w={};function E(i,e){const o=k;return c(),g(o)}var N=B(w,[["render",E]]);export{N as default};
|