From 14268cbcc4ae84be525060a1abc8a335e44320d5 Mon Sep 17 00:00:00 2001 From: leon-kfd Date: Thu, 22 Aug 2024 07:34:55 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=2084344?= =?UTF-8?q?4fb1724646e8420a0d8669e245cc0ed05b6=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...e-00387080.js => ExampleFrame-6afa260f.js} | 2 +- ...dme-b757de67.js => PageReadme-5cb7bc53.js} | 2 +- ...{README-6ea684c7.js => README-e03586be.js} | 2 +- ...me-190e96cc.js => ReadmeFrame-647e57d6.js} | 2 +- ...mple1-cd070041.js => example1-1f7cb7ed.js} | 2 +- ...mple1-8a0391a9.js => example1-4025dc3e.js} | 2 +- ...mple1-3162523e.js => example1-4853d5ef.js} | 2 +- ...mple1-43f59f46.js => example1-4a882f93.js} | 2 +- ...mple1-bb8f9387.js => example1-85342933.js} | 2 +- ...mple1-b2f87f59.js => example1-a24f68a4.js} | 2 +- ...mple1-1755e033.js => example1-c3fc10ea.js} | 2 +- ...mple1-16fb77c6.js => example1-fa128ebb.js} | 2 +- ...mple1-9839b524.js => example1-ff00af60.js} | 2 +- ...mple2-80ae9eae.js => example2-20c217f6.js} | 2 +- ...mple2-59859fe3.js => example2-26846017.js} | 2 +- ...mple2-5408f510.js => example2-3deaa583.js} | 2 +- ...mple2-80cf024e.js => example2-6a3ab783.js} | 2 +- ...mple2-e1c1bc2a.js => example2-90cd60d4.js} | 2 +- ...mple2-ed02591f.js => example2-c648ec64.js} | 2 +- ...mple2-d3f0ba11.js => example2-e92253bc.js} | 2 +- ...mple2-f05048e8.js => example2-f1539ea3.js} | 2 +- ...mple2-72c3e0d6.js => example2-f380d00f.js} | 2 +- ...mple3-d40a9337.js => example3-12972680.js} | 2 +- ...mple3-daeaf5d8.js => example3-2c212057.js} | 2 +- ...mple3-91c32341.js => example3-33fab6e9.js} | 2 +- ...mple3-280afcdd.js => example3-368ca602.js} | 2 +- ...mple3-22ae96f1.js => example3-4c2651bc.js} | 2 +- ...mple3-8d593a5f.js => example3-85c315c5.js} | 2 +- ...mple3-6e206829.js => example3-ae3d1141.js} | 2 +- ...mple4-816a5753.js => example4-04fe3b86.js} | 2 +- ...mple4-e141bbf6.js => example4-2f51bf5c.js} | 2 +- ...mple4-c8b143b0.js => example4-32ac5a91.js} | 2 +- ...mple4-2da0ddcd.js => example4-39fd5fce.js} | 2 +- ...mple4-443407cb.js => example4-93e762a2.js} | 2 +- ...mple4-668c1bc6.js => example4-db3766fc.js} | 2 +- ...mple5-0c1d7cae.js => example5-2b0afd4a.js} | 2 +- ...mple5-792686f7.js => example5-2b5fb594.js} | 2 +- ...mple5-18be4b41.js => example5-88ec16fb.js} | 2 +- ...mple5-8f973145.js => example5-bcf78a0c.js} | 2 +- ...mple6-45683b2c.js => example6-488a4518.js} | 2 +- ...mple6-36cb8c6c.js => example6-bb6f2546.js} | 2 +- ...mple7-f7dfa1df.js => example7-cb19db6e.js} | 2 +- assets/{home-ced92c79.js => home-ddc17b92.js} | 2 +- .../{index-64b6c977.js => index-20f97442.js} | 2 +- .../{index-9098e37a.js => index-30cfcab8.js} | 2 +- .../{index-96434926.js => index-362c388e.js} | 2 +- .../{index-8bc616e8.js => index-6989a1bf.js} | 2 +- .../{index-9308441e.js => index-8fe8769d.js} | 2 +- .../{index-36310845.js => index-98c39396.js} | 2 +- assets/index-9e0334f6.js | 21 +++++++++++++++++++ .../{index-0ba816e8.js => index-c0ef176e.js} | 2 +- .../{index-f3933683.js => index-d0878504.js} | 2 +- .../{index-e1ade818.js => index-db456421.js} | 2 +- assets/index-e4e05649.js | 21 ------------------- assets/index.es-4377725c.js | 2 -- ...ex.es-6608ee6a.js => index.es-5fe20373.js} | 2 +- ...ex.es-2a6d3cc0.js => index.es-6d9dc425.js} | 2 +- ...ex.es-be2f93d7.js => index.es-8da2c7aa.js} | 2 +- ...ex.es-7282307a.js => index.es-a5b3ac5e.js} | 2 +- assets/index.es-de103fbd.js | 2 ++ index.html | 2 +- 61 files changed, 80 insertions(+), 80 deletions(-) rename assets/{ExampleFrame-00387080.js => ExampleFrame-6afa260f.js} (98%) rename assets/{PageReadme-b757de67.js => PageReadme-5cb7bc53.js} (88%) rename assets/{README-6ea684c7.js => README-e03586be.js} (98%) rename assets/{ReadmeFrame-190e96cc.js => ReadmeFrame-647e57d6.js} (75%) rename assets/{example1-cd070041.js => example1-1f7cb7ed.js} (81%) rename assets/{example1-8a0391a9.js => example1-4025dc3e.js} (79%) rename assets/{example1-3162523e.js => example1-4853d5ef.js} (75%) rename assets/{example1-43f59f46.js => example1-4a882f93.js} (90%) rename assets/{example1-bb8f9387.js => example1-85342933.js} (85%) rename assets/{example1-b2f87f59.js => example1-a24f68a4.js} (81%) rename assets/{example1-1755e033.js => example1-c3fc10ea.js} (86%) rename assets/{example1-16fb77c6.js => example1-fa128ebb.js} (83%) rename assets/{example1-9839b524.js => example1-ff00af60.js} (85%) rename assets/{example2-80ae9eae.js => example2-20c217f6.js} (88%) rename assets/{example2-59859fe3.js => example2-26846017.js} (88%) rename assets/{example2-5408f510.js => example2-3deaa583.js} (95%) rename assets/{example2-80cf024e.js => example2-6a3ab783.js} (71%) rename assets/{example2-e1c1bc2a.js => example2-90cd60d4.js} (92%) rename assets/{example2-ed02591f.js => example2-c648ec64.js} (76%) rename assets/{example2-d3f0ba11.js => example2-e92253bc.js} (90%) rename assets/{example2-f05048e8.js => example2-f1539ea3.js} (87%) rename assets/{example2-72c3e0d6.js => example2-f380d00f.js} (85%) rename assets/{example3-d40a9337.js => example3-12972680.js} (56%) rename assets/{example3-daeaf5d8.js => example3-2c212057.js} (88%) rename assets/{example3-91c32341.js => example3-33fab6e9.js} (93%) rename assets/{example3-280afcdd.js => example3-368ca602.js} (94%) rename assets/{example3-22ae96f1.js => example3-4c2651bc.js} (75%) rename assets/{example3-8d593a5f.js => example3-85c315c5.js} (89%) rename assets/{example3-6e206829.js => example3-ae3d1141.js} (97%) rename assets/{example4-816a5753.js => example4-04fe3b86.js} (93%) rename assets/{example4-e141bbf6.js => example4-2f51bf5c.js} (90%) rename assets/{example4-c8b143b0.js => example4-32ac5a91.js} (93%) rename assets/{example4-2da0ddcd.js => example4-39fd5fce.js} (80%) rename assets/{example4-443407cb.js => example4-93e762a2.js} (94%) rename assets/{example4-668c1bc6.js => example4-db3766fc.js} (89%) rename assets/{example5-0c1d7cae.js => example5-2b0afd4a.js} (92%) rename assets/{example5-792686f7.js => example5-2b5fb594.js} (89%) rename assets/{example5-18be4b41.js => example5-88ec16fb.js} (96%) rename assets/{example5-8f973145.js => example5-bcf78a0c.js} (91%) rename assets/{example6-45683b2c.js => example6-488a4518.js} (75%) rename assets/{example6-36cb8c6c.js => example6-bb6f2546.js} (89%) rename assets/{example7-f7dfa1df.js => example7-cb19db6e.js} (91%) rename assets/{home-ced92c79.js => home-ddc17b92.js} (97%) rename assets/{index-64b6c977.js => index-20f97442.js} (82%) rename assets/{index-9098e37a.js => index-30cfcab8.js} (85%) rename assets/{index-96434926.js => index-362c388e.js} (85%) rename assets/{index-8bc616e8.js => index-6989a1bf.js} (83%) rename assets/{index-9308441e.js => index-8fe8769d.js} (80%) rename assets/{index-36310845.js => index-98c39396.js} (80%) create mode 100644 assets/index-9e0334f6.js rename assets/{index-0ba816e8.js => index-c0ef176e.js} (85%) rename assets/{index-f3933683.js => index-d0878504.js} (84%) rename assets/{index-e1ade818.js => index-db456421.js} (83%) delete mode 100644 assets/index-e4e05649.js delete mode 100644 assets/index.es-4377725c.js rename assets/{index.es-6608ee6a.js => index.es-5fe20373.js} (98%) rename assets/{index.es-2a6d3cc0.js => index.es-6d9dc425.js} (99%) rename assets/{index.es-be2f93d7.js => index.es-8da2c7aa.js} (99%) rename assets/{index.es-7282307a.js => index.es-a5b3ac5e.js} (99%) create mode 100644 assets/index.es-de103fbd.js diff --git a/assets/ExampleFrame-00387080.js b/assets/ExampleFrame-6afa260f.js similarity index 98% rename from assets/ExampleFrame-00387080.js rename to assets/ExampleFrame-6afa260f.js index 7f1c851..d804e2d 100644 --- a/assets/ExampleFrame-00387080.js +++ b/assets/ExampleFrame-6afa260f.js @@ -1 +1 @@ -import{d as k,a as c,b as z,e as g,w as C,u as w,f as N,g as o,_ as F,r as M,h as B,o as l,i as d,j as P,v as H,k as t,t as _,n,l as j,F as T,m as I,p as D,q as O,s as S,x as G}from"./index-e4e05649.js";import{_ as W}from"./dynamic-import-helper-be004503.js";import{R as U}from"./index.es-724d9dc0.js";const q=k({name:"ExampleFrame",directives:{resize:U},props:{mainName:{type:String,default:""},readmeList:{type:Array,default:()=>[]},exampleList:{type:Array,default:()=>[]},disabledMobile:{type:Boolean,default:!1}},setup(e){const a=w(),R=N(),v=c(),p=c(""),E=c(""),u=c(!1),A=z({zIndex:9999,tipLineColor:"#889"}),m=c(!1),r=c(1),h=g(()=>{if(p.value===`${e.mainName}-readme`)return"#.README";{let i=e.exampleList.findIndex((L,y)=>p.value===`${e.mainName}-example${y+1}`);return i>-1?`${i+1}.${e.exampleList[i].name}`:""}}),V=g(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)&&e.disabledMobile),b=g(()=>e.mainName.split("-").map(i=>i.slice(0,1).toUpperCase()+i.slice(1)).join(" ")),x=i=>{R.push({name:`${e.mainName}-example${i+1}`})},f=async()=>{u.value=!0;let i=await W(Object.assign({"../code/animation-dialog/example1.md":()=>o(()=>import("./example1-df3d130d.js"),[],import.meta.url),"../code/animation-dialog/example2.md":()=>o(()=>import("./example2-b8ba30fd.js"),[],import.meta.url),"../code/animation-dialog/example3.md":()=>o(()=>import("./example3-7a159247.js"),[],import.meta.url),"../code/animation-dialog/example4.md":()=>o(()=>import("./example4-55dcd079.js"),[],import.meta.url),"../code/img-zoom/example1.md":()=>o(()=>import("./example1-72ea5d9b.js"),[],import.meta.url),"../code/img-zoom/example2.md":()=>o(()=>import("./example2-f0ca1d02.js"),[],import.meta.url),"../code/img-zoom/example3.md":()=>o(()=>import("./example3-8a33977d.js"),[],import.meta.url),"../code/mouse-menu/example1.md":()=>o(()=>import("./example1-0840b494.js"),[],import.meta.url),"../code/mouse-menu/example2.md":()=>o(()=>import("./example2-f008c0a4.js"),[],import.meta.url),"../code/mouse-menu/example3.md":()=>o(()=>import("./example3-66a32ed9.js"),[],import.meta.url),"../code/mouse-menu/example4.md":()=>o(()=>import("./example4-f15660df.js"),[],import.meta.url),"../code/mouse-menu/example5.md":()=>o(()=>import("./example5-be4ef37d.js"),[],import.meta.url),"../code/mouse-menu/example6.md":()=>o(()=>import("./example6-faf0559c.js"),[],import.meta.url),"../code/mouse-menu/example7.md":()=>o(()=>import("./example7-cde4e0e0.js"),[],import.meta.url),"../code/resize/example1.md":()=>o(()=>import("./example1-f249f375.js"),[],import.meta.url),"../code/resize/example2.md":()=>o(()=>import("./example2-55d6252a.js"),[],import.meta.url),"../code/resize/example3.md":()=>o(()=>import("./example3-d6152d47.js"),[],import.meta.url),"../code/resize/example4.md":()=>o(()=>import("./example4-954429e6.js"),[],import.meta.url),"../code/resize/example5.md":()=>o(()=>import("./example5-980468be.js"),[],import.meta.url),"../code/scroll/example1.md":()=>o(()=>import("./example1-bb312d20.js"),[],import.meta.url),"../code/scroll/example2.md":()=>o(()=>import("./example2-460752c3.js"),[],import.meta.url),"../code/scroll/example3.md":()=>o(()=>import("./example3-5ee59127.js"),[],import.meta.url),"../code/scroll/example4.md":()=>o(()=>import("./example4-6ba031ee.js"),[],import.meta.url),"../code/scroll/example5.md":()=>o(()=>import("./example5-93f2c51a.js"),[],import.meta.url),"../code/size-observer/example1.md":()=>o(()=>import("./example1-334f2440.js"),[],import.meta.url),"../code/size-observer/example2.md":()=>o(()=>import("./example2-9df0d862.js"),[],import.meta.url),"../code/standard-tabs/example1.md":()=>o(()=>import("./example1-60cd1c9c.js"),[],import.meta.url),"../code/standard-tabs/example2.md":()=>o(()=>import("./example2-b810d3c3.js"),[],import.meta.url),"../code/to-control/example1.md":()=>o(()=>import("./example1-5f5eacab.js"),[],import.meta.url),"../code/to-control/example2.md":()=>o(()=>import("./example2-ed609f1c.js"),[],import.meta.url),"../code/to-control/example3.md":()=>o(()=>import("./example3-99c97889.js"),[],import.meta.url),"../code/to-control/example4.md":()=>o(()=>import("./example4-ed574c61.js"),[],import.meta.url),"../code/to-drag/example1.md":()=>o(()=>import("./example1-1a7ebedb.js"),[],import.meta.url),"../code/to-drag/example2.md":()=>o(()=>import("./example2-f1e1b442.js"),[],import.meta.url),"../code/to-drag/example3.md":()=>o(()=>import("./example3-46e9cff5.js"),[],import.meta.url),"../code/to-drag/example4.md":()=>o(()=>import("./example4-6d90c073.js"),[],import.meta.url),"../code/to-drag/example5.md":()=>o(()=>import("./example5-ca003ba8.js"),[],import.meta.url),"../code/to-drag/example6.md":()=>o(()=>import("./example6-c1983e99.js"),[],import.meta.url)}),`../code/${e.mainName}/${p.value.replace(e.mainName+"-","")}.md`);E.value=i.default.replace(/\.\.\/\.\.\/\.\.\/\.\.\/packages/g,"@howdyjs"),u.value=!1},$=i=>{let L=i.target;L&&i.resizeWidthPercent&&(L.style.width=`${i.resizeWidthPercent}%`,v.value.style.width=`${100-i.resizeWidthPercent}%`)};return C(()=>a.name,i=>{i&&typeof i=="string"&&(p.value=i,m.value=!1,r.value=1,i.includes("example")&&f())},{immediate:!0}),{tableExample:v,page:p,code:E,codeLoading:u,resizeOptions:A,navActive:m,contentActive:r,activeTitle:h,showMobileWarning:V,moduleName:b,handleNavClick:x,handleResize:$,turnToGithub(){window.open("https://github.com/leon-kfd/howdyjs")}}}}),K=""+new URL("../images/Home.svg",import.meta.url).href,J=""+new URL("../images/github.svg",import.meta.url).href;const s=e=>(S("data-v-30840779"),e=e(),G(),e),Q={id:"example"},X=s(()=>t("label",{class:"nav-btn",for:"navBtnActive"},[t("div",{class:"line"}),t("div",{class:"line"}),t("div",{class:"line"})],-1)),Y={class:"header-tips"},Z={class:"title"},ee={class:"nav-content"},te={class:"logo"},oe=s(()=>t("svg",{class:"back",viewBox:"0 0 1024 1024"},[t("path",{d:"M899.818723 555.092447 382.719588 555.092447c-23.796986 0-43.091424-19.294438-43.091424-43.091424 0-23.799032 19.294438-43.091424 43.091424-43.091424l517.099135 0c23.799032 0 43.091424 19.292392 43.091424 43.091424C942.910147 535.798009 923.617755 555.092447 899.818723 555.092447zM185.058786 512.001023l335.979054 335.979054c16.827247 16.827247 16.827247 44.110637 0 60.939931-16.827247 16.829294-44.110637 16.829294-60.939931 0L93.700055 542.522154c-8.428973-8.426927-12.623505-19.47761-12.611226-30.524201-0.013303-11.044544 4.182252-22.095227 12.611226-30.522154L460.096886 115.079992c16.829294-16.829294 44.112684-16.829294 60.939931 0 16.827247 16.827247 16.827247 44.112684 0 60.939931L185.058786 512.001023z"})],-1)),ie=s(()=>t("span",{class:"text"},"Howdyjs",-1)),ae=[oe,ie],me={id:"moduleName"},se=s(()=>t("p",{class:"nav-title"}," Document ",-1)),re={class:"nav-list"},le={class:"title"},de={class:"introduce"},ne=s(()=>t("p",{class:"nav-title"}," Example ",-1)),_e={class:"nav-list"},pe=["onClick"],ue={class:"title"},ce={class:"introduce"},ve={class:"copyright"},Ee=s(()=>t("a",{href:"http://kongfandong.cn/blog/about",target:"_blank",title:"About Author",class:"link"},"LEON.KFD",-1)),Ae=s(()=>t("span",{class:"text"},"© 2024 ",-1)),he={key:0,class:"content"},Le={class:"content-nav"},ge={class:"content-nav-box"},De=s(()=>t("p",{class:"title"}," Example ",-1)),Re={key:0,class:"mobile-warning"},Pe=s(()=>t("div",{class:"mobile-warning-content"}," 插件功能不支持移动端,请使用PC端浏览 ",-1)),Te=[Pe],Ie={class:"example-content"},Oe=s(()=>t("p",{class:"title"}," Code ",-1)),Ve=["innerHTML"],be={key:1,class:"readme-content"};function xe(e,a,R,v,p,E){const u=M("router-view"),A=B("resize");return l(),d("div",Q,[P(t("input",{id:"navBtnActive","onUpdate:modelValue":a[0]||(a[0]=m=>e.navActive=m),type:"checkbox",style:{display:"none"}},null,512),[[H,e.navActive]]),X,t("div",Y,[t("p",Z,_(e.activeTitle),1)]),t("div",{class:n(["nav-mask",{active:e.navActive}]),onClick:a[1]||(a[1]=j(m=>e.navActive=!1,["self"]))},null,2),t("div",{class:n(["nav",{active:e.navActive}])},[t("div",ee,[t("div",te,[t("h1",{id:"howdy",onClick:a[2]||(a[2]=m=>e.$router.push("/"))},ae),t("p",me,_(e.moduleName),1)]),se,t("ul",re,[(l(!0),d(T,null,I(e.readmeList,(m,r)=>(l(),d("li",{key:r,class:n(["nav-listitem",{active:e.page===`${e.mainName}-readme`}]),onClick:a[3]||(a[3]=h=>e.$router.push({name:`${e.mainName}-readme`}))},[t("p",le," #."+_(m.name),1),t("p",de,_(m.introduce),1)],2))),128))]),ne,t("ul",_e,[(l(!0),d(T,null,I(e.exampleList,(m,r)=>(l(),d("li",{key:r,class:n(["nav-listitem",{active:e.page==`${e.mainName}-example${r+1}`}]),onClick:h=>e.handleNavClick(r)},[t("p",ue,_(r+1)+"."+_(m.name),1),t("p",ce,_(m.introduce),1)],10,pe))),128))])]),t("div",ve,[t("img",{src:K,class:"home-img",alt:"Home",title:"Home",onClick:a[4]||(a[4]=m=>e.$router.push("/"))}),t("img",{src:J,class:"github-img",alt:"Github",title:"Github",onClick:a[5]||(a[5]=(...m)=>e.turnToGithub&&e.turnToGithub(...m))}),Ee,Ae])],2),e.page!==`${e.mainName}-readme`?(l(),d("div",he,[t("div",Le,[t("div",ge,[t("div",{class:n(["content-nav-item",{active:e.contentActive===1}]),onClick:a[6]||(a[6]=m=>e.contentActive=1)}," Example ",2),t("div",{class:n(["content-nav-item",{active:e.contentActive===2}]),onClick:a[7]||(a[7]=m=>e.contentActive=2)}," Code ",2)])]),t("div",{ref:"tableExample",class:n(["example",{active:e.contentActive===1}])},[De,e.showMobileWarning?(l(),d("div",Re,Te)):D("",!0),t("div",Ie,[O(u)])],2),P((l(),d("div",{class:n(["code",{active:e.contentActive===2}]),onResize:a[8]||(a[8]=(...m)=>e.handleResize&&e.handleResize(...m))},[Oe,t("div",{class:"code-box",innerHTML:e.code},null,8,Ve)],34)),[[A,e.resizeOptions,"left"]])])):D("",!0),e.page===`${e.mainName}-readme`?(l(),d("div",be,[O(u)])):D("",!0)])}const ke=F(q,[["render",xe],["__scopeId","data-v-30840779"]]);export{ke as E}; +import{d as k,a as c,b as z,e as g,w as C,u as w,f as N,g as o,_ as F,r as M,h as B,o as l,i as d,j as P,v as H,k as t,t as _,n,l as j,F as T,m as I,p as D,q as O,s as S,x as G}from"./index-9e0334f6.js";import{_ as W}from"./dynamic-import-helper-be004503.js";import{R as U}from"./index.es-724d9dc0.js";const q=k({name:"ExampleFrame",directives:{resize:U},props:{mainName:{type:String,default:""},readmeList:{type:Array,default:()=>[]},exampleList:{type:Array,default:()=>[]},disabledMobile:{type:Boolean,default:!1}},setup(e){const a=w(),R=N(),v=c(),p=c(""),E=c(""),u=c(!1),A=z({zIndex:9999,tipLineColor:"#889"}),m=c(!1),r=c(1),h=g(()=>{if(p.value===`${e.mainName}-readme`)return"#.README";{let i=e.exampleList.findIndex((L,y)=>p.value===`${e.mainName}-example${y+1}`);return i>-1?`${i+1}.${e.exampleList[i].name}`:""}}),V=g(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)&&e.disabledMobile),b=g(()=>e.mainName.split("-").map(i=>i.slice(0,1).toUpperCase()+i.slice(1)).join(" ")),x=i=>{R.push({name:`${e.mainName}-example${i+1}`})},f=async()=>{u.value=!0;let i=await W(Object.assign({"../code/animation-dialog/example1.md":()=>o(()=>import("./example1-df3d130d.js"),[],import.meta.url),"../code/animation-dialog/example2.md":()=>o(()=>import("./example2-b8ba30fd.js"),[],import.meta.url),"../code/animation-dialog/example3.md":()=>o(()=>import("./example3-7a159247.js"),[],import.meta.url),"../code/animation-dialog/example4.md":()=>o(()=>import("./example4-55dcd079.js"),[],import.meta.url),"../code/img-zoom/example1.md":()=>o(()=>import("./example1-72ea5d9b.js"),[],import.meta.url),"../code/img-zoom/example2.md":()=>o(()=>import("./example2-f0ca1d02.js"),[],import.meta.url),"../code/img-zoom/example3.md":()=>o(()=>import("./example3-8a33977d.js"),[],import.meta.url),"../code/mouse-menu/example1.md":()=>o(()=>import("./example1-0840b494.js"),[],import.meta.url),"../code/mouse-menu/example2.md":()=>o(()=>import("./example2-f008c0a4.js"),[],import.meta.url),"../code/mouse-menu/example3.md":()=>o(()=>import("./example3-66a32ed9.js"),[],import.meta.url),"../code/mouse-menu/example4.md":()=>o(()=>import("./example4-f15660df.js"),[],import.meta.url),"../code/mouse-menu/example5.md":()=>o(()=>import("./example5-be4ef37d.js"),[],import.meta.url),"../code/mouse-menu/example6.md":()=>o(()=>import("./example6-faf0559c.js"),[],import.meta.url),"../code/mouse-menu/example7.md":()=>o(()=>import("./example7-cde4e0e0.js"),[],import.meta.url),"../code/resize/example1.md":()=>o(()=>import("./example1-f249f375.js"),[],import.meta.url),"../code/resize/example2.md":()=>o(()=>import("./example2-55d6252a.js"),[],import.meta.url),"../code/resize/example3.md":()=>o(()=>import("./example3-d6152d47.js"),[],import.meta.url),"../code/resize/example4.md":()=>o(()=>import("./example4-954429e6.js"),[],import.meta.url),"../code/resize/example5.md":()=>o(()=>import("./example5-980468be.js"),[],import.meta.url),"../code/scroll/example1.md":()=>o(()=>import("./example1-bb312d20.js"),[],import.meta.url),"../code/scroll/example2.md":()=>o(()=>import("./example2-460752c3.js"),[],import.meta.url),"../code/scroll/example3.md":()=>o(()=>import("./example3-5ee59127.js"),[],import.meta.url),"../code/scroll/example4.md":()=>o(()=>import("./example4-6ba031ee.js"),[],import.meta.url),"../code/scroll/example5.md":()=>o(()=>import("./example5-93f2c51a.js"),[],import.meta.url),"../code/size-observer/example1.md":()=>o(()=>import("./example1-334f2440.js"),[],import.meta.url),"../code/size-observer/example2.md":()=>o(()=>import("./example2-9df0d862.js"),[],import.meta.url),"../code/standard-tabs/example1.md":()=>o(()=>import("./example1-60cd1c9c.js"),[],import.meta.url),"../code/standard-tabs/example2.md":()=>o(()=>import("./example2-b810d3c3.js"),[],import.meta.url),"../code/to-control/example1.md":()=>o(()=>import("./example1-5f5eacab.js"),[],import.meta.url),"../code/to-control/example2.md":()=>o(()=>import("./example2-ed609f1c.js"),[],import.meta.url),"../code/to-control/example3.md":()=>o(()=>import("./example3-99c97889.js"),[],import.meta.url),"../code/to-control/example4.md":()=>o(()=>import("./example4-ed574c61.js"),[],import.meta.url),"../code/to-drag/example1.md":()=>o(()=>import("./example1-1a7ebedb.js"),[],import.meta.url),"../code/to-drag/example2.md":()=>o(()=>import("./example2-f1e1b442.js"),[],import.meta.url),"../code/to-drag/example3.md":()=>o(()=>import("./example3-46e9cff5.js"),[],import.meta.url),"../code/to-drag/example4.md":()=>o(()=>import("./example4-6d90c073.js"),[],import.meta.url),"../code/to-drag/example5.md":()=>o(()=>import("./example5-ca003ba8.js"),[],import.meta.url),"../code/to-drag/example6.md":()=>o(()=>import("./example6-c1983e99.js"),[],import.meta.url)}),`../code/${e.mainName}/${p.value.replace(e.mainName+"-","")}.md`);E.value=i.default.replace(/\.\.\/\.\.\/\.\.\/\.\.\/packages/g,"@howdyjs"),u.value=!1},$=i=>{let L=i.target;L&&i.resizeWidthPercent&&(L.style.width=`${i.resizeWidthPercent}%`,v.value.style.width=`${100-i.resizeWidthPercent}%`)};return C(()=>a.name,i=>{i&&typeof i=="string"&&(p.value=i,m.value=!1,r.value=1,i.includes("example")&&f())},{immediate:!0}),{tableExample:v,page:p,code:E,codeLoading:u,resizeOptions:A,navActive:m,contentActive:r,activeTitle:h,showMobileWarning:V,moduleName:b,handleNavClick:x,handleResize:$,turnToGithub(){window.open("https://github.com/leon-kfd/howdyjs")}}}}),K=""+new URL("../images/Home.svg",import.meta.url).href,J=""+new URL("../images/github.svg",import.meta.url).href;const s=e=>(S("data-v-30840779"),e=e(),G(),e),Q={id:"example"},X=s(()=>t("label",{class:"nav-btn",for:"navBtnActive"},[t("div",{class:"line"}),t("div",{class:"line"}),t("div",{class:"line"})],-1)),Y={class:"header-tips"},Z={class:"title"},ee={class:"nav-content"},te={class:"logo"},oe=s(()=>t("svg",{class:"back",viewBox:"0 0 1024 1024"},[t("path",{d:"M899.818723 555.092447 382.719588 555.092447c-23.796986 0-43.091424-19.294438-43.091424-43.091424 0-23.799032 19.294438-43.091424 43.091424-43.091424l517.099135 0c23.799032 0 43.091424 19.292392 43.091424 43.091424C942.910147 535.798009 923.617755 555.092447 899.818723 555.092447zM185.058786 512.001023l335.979054 335.979054c16.827247 16.827247 16.827247 44.110637 0 60.939931-16.827247 16.829294-44.110637 16.829294-60.939931 0L93.700055 542.522154c-8.428973-8.426927-12.623505-19.47761-12.611226-30.524201-0.013303-11.044544 4.182252-22.095227 12.611226-30.522154L460.096886 115.079992c16.829294-16.829294 44.112684-16.829294 60.939931 0 16.827247 16.827247 16.827247 44.112684 0 60.939931L185.058786 512.001023z"})],-1)),ie=s(()=>t("span",{class:"text"},"Howdyjs",-1)),ae=[oe,ie],me={id:"moduleName"},se=s(()=>t("p",{class:"nav-title"}," Document ",-1)),re={class:"nav-list"},le={class:"title"},de={class:"introduce"},ne=s(()=>t("p",{class:"nav-title"}," Example ",-1)),_e={class:"nav-list"},pe=["onClick"],ue={class:"title"},ce={class:"introduce"},ve={class:"copyright"},Ee=s(()=>t("a",{href:"http://kongfandong.cn/blog/about",target:"_blank",title:"About Author",class:"link"},"LEON.KFD",-1)),Ae=s(()=>t("span",{class:"text"},"© 2024 ",-1)),he={key:0,class:"content"},Le={class:"content-nav"},ge={class:"content-nav-box"},De=s(()=>t("p",{class:"title"}," Example ",-1)),Re={key:0,class:"mobile-warning"},Pe=s(()=>t("div",{class:"mobile-warning-content"}," 插件功能不支持移动端,请使用PC端浏览 ",-1)),Te=[Pe],Ie={class:"example-content"},Oe=s(()=>t("p",{class:"title"}," Code ",-1)),Ve=["innerHTML"],be={key:1,class:"readme-content"};function xe(e,a,R,v,p,E){const u=M("router-view"),A=B("resize");return l(),d("div",Q,[P(t("input",{id:"navBtnActive","onUpdate:modelValue":a[0]||(a[0]=m=>e.navActive=m),type:"checkbox",style:{display:"none"}},null,512),[[H,e.navActive]]),X,t("div",Y,[t("p",Z,_(e.activeTitle),1)]),t("div",{class:n(["nav-mask",{active:e.navActive}]),onClick:a[1]||(a[1]=j(m=>e.navActive=!1,["self"]))},null,2),t("div",{class:n(["nav",{active:e.navActive}])},[t("div",ee,[t("div",te,[t("h1",{id:"howdy",onClick:a[2]||(a[2]=m=>e.$router.push("/"))},ae),t("p",me,_(e.moduleName),1)]),se,t("ul",re,[(l(!0),d(T,null,I(e.readmeList,(m,r)=>(l(),d("li",{key:r,class:n(["nav-listitem",{active:e.page===`${e.mainName}-readme`}]),onClick:a[3]||(a[3]=h=>e.$router.push({name:`${e.mainName}-readme`}))},[t("p",le," #."+_(m.name),1),t("p",de,_(m.introduce),1)],2))),128))]),ne,t("ul",_e,[(l(!0),d(T,null,I(e.exampleList,(m,r)=>(l(),d("li",{key:r,class:n(["nav-listitem",{active:e.page==`${e.mainName}-example${r+1}`}]),onClick:h=>e.handleNavClick(r)},[t("p",ue,_(r+1)+"."+_(m.name),1),t("p",ce,_(m.introduce),1)],10,pe))),128))])]),t("div",ve,[t("img",{src:K,class:"home-img",alt:"Home",title:"Home",onClick:a[4]||(a[4]=m=>e.$router.push("/"))}),t("img",{src:J,class:"github-img",alt:"Github",title:"Github",onClick:a[5]||(a[5]=(...m)=>e.turnToGithub&&e.turnToGithub(...m))}),Ee,Ae])],2),e.page!==`${e.mainName}-readme`?(l(),d("div",he,[t("div",Le,[t("div",ge,[t("div",{class:n(["content-nav-item",{active:e.contentActive===1}]),onClick:a[6]||(a[6]=m=>e.contentActive=1)}," Example ",2),t("div",{class:n(["content-nav-item",{active:e.contentActive===2}]),onClick:a[7]||(a[7]=m=>e.contentActive=2)}," Code ",2)])]),t("div",{ref:"tableExample",class:n(["example",{active:e.contentActive===1}])},[De,e.showMobileWarning?(l(),d("div",Re,Te)):D("",!0),t("div",Ie,[O(u)])],2),P((l(),d("div",{class:n(["code",{active:e.contentActive===2}]),onResize:a[8]||(a[8]=(...m)=>e.handleResize&&e.handleResize(...m))},[Oe,t("div",{class:"code-box",innerHTML:e.code},null,8,Ve)],34)),[[A,e.resizeOptions,"left"]])])):D("",!0),e.page===`${e.mainName}-readme`?(l(),d("div",be,[O(u)])):D("",!0)])}const ke=F(q,[["render",xe],["__scopeId","data-v-30840779"]]);export{ke as E}; diff --git a/assets/PageReadme-b757de67.js b/assets/PageReadme-5cb7bc53.js similarity index 88% rename from assets/PageReadme-b757de67.js rename to assets/PageReadme-5cb7bc53.js index c50cb24..701ef01 100644 --- a/assets/PageReadme-b757de67.js +++ b/assets/PageReadme-5cb7bc53.js @@ -1 +1 @@ -import{d as _,a as s,z as i,g as e,u as d,_ as p,r as E,o as n,i as u,q as c}from"./index-e4e05649.js";import{_ as R}from"./dynamic-import-helper-be004503.js";import{R as l}from"./ReadmeFrame-190e96cc.js";const D=_({name:"PageReadme",components:{ReadmeFrame:l},setup(){const t=d().name.replace("-readme",""),a=s("");return i(async()=>{const o=await R(Object.assign({"../../packages/animation-dialog/README.md":()=>e(()=>import("./README-a43fcd43.js"),[],import.meta.url),"../../packages/img-zoom/README.md":()=>e(()=>import("./README-29e13975.js"),[],import.meta.url),"../../packages/mouse-menu/README.md":()=>e(()=>import("./README-2e4ff63e.js"),[],import.meta.url),"../../packages/resize/README.md":()=>e(()=>import("./README-8bd6636a.js"),[],import.meta.url),"../../packages/scroll/README.md":()=>e(()=>import("./README-4ad3553d.js"),[],import.meta.url),"../../packages/shared/README.md":()=>e(()=>import("./README-bc4e351f.js"),[],import.meta.url),"../../packages/size-observer/README.md":()=>e(()=>import("./README-2b0d7b3b.js"),[],import.meta.url),"../../packages/standard-tabs/README.md":()=>e(()=>import("./README-e2c24a4a.js"),[],import.meta.url),"../../packages/to-control/README.md":()=>e(()=>import("./README-6eb7cda7.js"),[],import.meta.url),"../../packages/to-drag/README.md":()=>e(()=>import("./README-6ea684c7.js"),[],import.meta.url)}),`../../packages/${t}/README.md`);a.value=o.default}),{readme:a}}}),A={id:"Readme"};function g(r,t,a,o,v,f){const m=E("readme-frame");return n(),u("div",A,[c(m,{readme:r.readme},null,8,["readme"])])}const I=p(D,[["render",g]]);export{I as default}; +import{d as _,a as s,z as i,g as e,u as d,_ as p,r as E,o as n,i as u,q as c}from"./index-9e0334f6.js";import{_ as R}from"./dynamic-import-helper-be004503.js";import{R as l}from"./ReadmeFrame-647e57d6.js";const D=_({name:"PageReadme",components:{ReadmeFrame:l},setup(){const t=d().name.replace("-readme",""),a=s("");return i(async()=>{const o=await R(Object.assign({"../../packages/animation-dialog/README.md":()=>e(()=>import("./README-a43fcd43.js"),[],import.meta.url),"../../packages/img-zoom/README.md":()=>e(()=>import("./README-29e13975.js"),[],import.meta.url),"../../packages/mouse-menu/README.md":()=>e(()=>import("./README-2e4ff63e.js"),[],import.meta.url),"../../packages/resize/README.md":()=>e(()=>import("./README-8bd6636a.js"),[],import.meta.url),"../../packages/scroll/README.md":()=>e(()=>import("./README-4ad3553d.js"),[],import.meta.url),"../../packages/shared/README.md":()=>e(()=>import("./README-bc4e351f.js"),[],import.meta.url),"../../packages/size-observer/README.md":()=>e(()=>import("./README-2b0d7b3b.js"),[],import.meta.url),"../../packages/standard-tabs/README.md":()=>e(()=>import("./README-e2c24a4a.js"),[],import.meta.url),"../../packages/to-control/README.md":()=>e(()=>import("./README-6eb7cda7.js"),[],import.meta.url),"../../packages/to-drag/README.md":()=>e(()=>import("./README-e03586be.js"),[],import.meta.url)}),`../../packages/${t}/README.md`);a.value=o.default}),{readme:a}}}),A={id:"Readme"};function g(r,t,a,o,v,f){const m=E("readme-frame");return n(),u("div",A,[c(m,{readme:r.readme},null,8,["readme"])])}const I=p(D,[["render",g]]);export{I as default}; diff --git a/assets/README-6ea684c7.js b/assets/README-e03586be.js similarity index 98% rename from assets/README-6ea684c7.js rename to assets/README-e03586be.js index 18020a2..190f100 100644 --- a/assets/README-6ea684c7.js +++ b/assets/README-e03586be.js @@ -80,7 +80,7 @@ const t=`

ToDrag

isAbsolute -是否为Absolute模式,v1.5.0后新增,可控制absolute的元素在其父元素下进行拖拽,开启该模式暂不支持吸附功能 +是否为Absolute模式,v1.5.0后新增,可控制absolute的元素在其父元素下进行拖拽 Boolean - false diff --git a/assets/ReadmeFrame-190e96cc.js b/assets/ReadmeFrame-647e57d6.js similarity index 75% rename from assets/ReadmeFrame-190e96cc.js rename to assets/ReadmeFrame-647e57d6.js index 8dc517a..6e5c56e 100644 --- a/assets/ReadmeFrame-190e96cc.js +++ b/assets/ReadmeFrame-647e57d6.js @@ -1 +1 @@ -import{d as s,e as n,_ as r,o as d,i as o,k as a}from"./index-e4e05649.js";const _=s({name:"ReadmeFrame",props:{readme:{type:String,default:""}},setup(e){return{transformReadme:n(()=>e.readme.replace(/(.|\n)*?<\/table>/g,'
$&
'))}}});const c={id:"API"},m={class:"container"},i=["innerHTML"];function p(e,t,l,f,u,v){return d(),o("div",c,[a("div",m,[a("div",{class:"readme",innerHTML:e.transformReadme},null,8,i)])])}const y=r(_,[["render",p],["__scopeId","data-v-005fdf92"]]);export{y as R}; +import{d as s,e as n,_ as r,o as d,i as o,k as a}from"./index-9e0334f6.js";const _=s({name:"ReadmeFrame",props:{readme:{type:String,default:""}},setup(e){return{transformReadme:n(()=>e.readme.replace(/
(.|\n)*?<\/table>/g,'
$&
'))}}});const c={id:"API"},m={class:"container"},i=["innerHTML"];function p(e,t,l,f,u,v){return d(),o("div",c,[a("div",m,[a("div",{class:"readme",innerHTML:e.transformReadme},null,8,i)])])}const y=r(_,[["render",p],["__scopeId","data-v-005fdf92"]]);export{y as R}; diff --git a/assets/example1-cd070041.js b/assets/example1-1f7cb7ed.js similarity index 81% rename from assets/example1-cd070041.js rename to assets/example1-1f7cb7ed.js index 8479a17..c44f4e8 100644 --- a/assets/example1-cd070041.js +++ b/assets/example1-1f7cb7ed.js @@ -1 +1 @@ -import{M as i,a as r}from"./index.es-2a6d3cc0.js";import{d as p,j as _,G as u,o as f,i as g,k as m,t as d,_ as x}from"./index-e4e05649.js";const b={class:"text",style:{height:"900px"}},h=p({__name:"example1",setup(M){const t=i,l={params:{a:1},menuList:[{label:"打开",tips:"Open",fn:(e,o,s,n)=>{console.log("open",e,o,s,n)}},{label:"编辑",tips:"Edit",fn:(e,o,s,n)=>{console.log("edit",e,o,s,n)}},{label:"删除",tips:"Delete",fn:(e,o,s,n)=>{console.log("delete",e,o,s,n)}},{label:"重命名",tips:"Rename",fn:(e,o,s,n)=>{console.log("rename",e,o,s,n)}}],onOpen:(e,o,s)=>{console.log("onOpen",e,o,s)},onClose:(e,o,s)=>{console.log("onClose",e,o,s)},useLongPressInMobile:!0,longPressDuration:300,longPressPreventDefault:(e,o)=>(console.log({e,el:o}),!1)},a="ontouchstart"in window,c=()=>{var e;(e=r)==null||e.close()};return(e,o)=>_((f(),g("div",{class:"box",onScroll:c},[m("p",b,d(a?"Long press this box":"Right click this box")+". ",1)],32)),[[u(t),l]])}});const k=x(h,[["__scopeId","data-v-2b63e75f"]]);export{k as default}; +import{M as i,a as r}from"./index.es-6d9dc425.js";import{d as p,j as _,G as u,o as f,i as g,k as m,t as d,_ as x}from"./index-9e0334f6.js";const b={class:"text",style:{height:"900px"}},h=p({__name:"example1",setup(M){const t=i,l={params:{a:1},menuList:[{label:"打开",tips:"Open",fn:(e,o,s,n)=>{console.log("open",e,o,s,n)}},{label:"编辑",tips:"Edit",fn:(e,o,s,n)=>{console.log("edit",e,o,s,n)}},{label:"删除",tips:"Delete",fn:(e,o,s,n)=>{console.log("delete",e,o,s,n)}},{label:"重命名",tips:"Rename",fn:(e,o,s,n)=>{console.log("rename",e,o,s,n)}}],onOpen:(e,o,s)=>{console.log("onOpen",e,o,s)},onClose:(e,o,s)=>{console.log("onClose",e,o,s)},useLongPressInMobile:!0,longPressDuration:300,longPressPreventDefault:(e,o)=>(console.log({e,el:o}),!1)},a="ontouchstart"in window,c=()=>{var e;(e=r)==null||e.close()};return(e,o)=>_((f(),g("div",{class:"box",onScroll:c},[m("p",b,d(a?"Long press this box":"Right click this box")+". ",1)],32)),[[u(t),l]])}});const k=x(h,[["__scopeId","data-v-2b63e75f"]]);export{k as default}; diff --git a/assets/example1-8a0391a9.js b/assets/example1-4025dc3e.js similarity index 79% rename from assets/example1-8a0391a9.js rename to assets/example1-4025dc3e.js index 8a20c60..c29738e 100644 --- a/assets/example1-8a0391a9.js +++ b/assets/example1-4025dc3e.js @@ -1 +1 @@ -import{T as t}from"./index.es-6608ee6a.js";import{d as u,a as s,z as c,_ as a,o as n,i as r,k as o,F as _,s as p,x as d}from"./index-e4e05649.js";import"./index.es-4377725c.js";const l=u({setup(){const e=s();return c(()=>{new t({el:e.value})}),{control:e}}});const F=e=>(p("data-v-5e75cc92"),e=e(),d(),e),i={ref:"control",class:"control"},m=F(()=>o("div",{class:"text"}," 请拖拽屏幕上的浮块更改位置,拖拽浮块右下角可更改大小 ",-1));function f(e,x,D,E,v,h){return n(),r(_,null,[o("div",i,null,512),m],64)}const $=a(l,[["render",f],["__scopeId","data-v-5e75cc92"]]);export{$ as default}; +import{T as t}from"./index.es-5fe20373.js";import{d as u,a as s,z as c,_ as a,o as n,i as r,k as o,F as _,s as p,x as d}from"./index-9e0334f6.js";import"./index.es-de103fbd.js";const l=u({setup(){const e=s();return c(()=>{new t({el:e.value})}),{control:e}}});const F=e=>(p("data-v-5e75cc92"),e=e(),d(),e),i={ref:"control",class:"control"},m=F(()=>o("div",{class:"text"}," 请拖拽屏幕上的浮块更改位置,拖拽浮块右下角可更改大小 ",-1));function f(e,x,D,E,v,h){return n(),r(_,null,[o("div",i,null,512),m],64)}const $=a(l,[["render",f],["__scopeId","data-v-5e75cc92"]]);export{$ as default}; diff --git a/assets/example1-3162523e.js b/assets/example1-4853d5ef.js similarity index 75% rename from assets/example1-3162523e.js rename to assets/example1-4853d5ef.js index 156e4e5..b40aa74 100644 --- a/assets/example1-3162523e.js +++ b/assets/example1-4853d5ef.js @@ -1 +1 @@ -import{a as o}from"./index.es-4377725c.js";import{d as c,_,h as r,o as t,i as s,j as d,L as i,F as n,s as p,x as u,k as l}from"./index-e4e05649.js";const v=c({directives:{"to-drag":o}});const m=e=>(p("data-v-5c3ea8cb"),e=e(),u(),e),x=m(()=>l("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),D={class:"move-box"};function f(e,h,g,B,F,b){const a=r("to-drag");return t(),s(n,null,[x,d((t(),s("div",D,[i(" DRAG ")])),[[a]])],64)}const $=_(v,[["render",f],["__scopeId","data-v-5c3ea8cb"]]);export{$ as default}; +import{a as o}from"./index.es-de103fbd.js";import{d as c,_,h as r,o as t,i as s,j as d,L as i,F as n,s as p,x as u,k as l}from"./index-9e0334f6.js";const v=c({directives:{"to-drag":o}});const m=e=>(p("data-v-5c3ea8cb"),e=e(),u(),e),x=m(()=>l("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),D={class:"move-box"};function f(e,h,g,B,F,b){const a=r("to-drag");return t(),s(n,null,[x,d((t(),s("div",D,[i(" DRAG ")])),[[a]])],64)}const $=_(v,[["render",f],["__scopeId","data-v-5c3ea8cb"]]);export{$ as default}; diff --git a/assets/example1-43f59f46.js b/assets/example1-4a882f93.js similarity index 90% rename from assets/example1-43f59f46.js rename to assets/example1-4a882f93.js index 823d955..8f2e794 100644 --- a/assets/example1-43f59f46.js +++ b/assets/example1-4a882f93.js @@ -1 +1 @@ -import{I as _}from"./index.es-d11d180d.js";import{b as l}from"./global-56066e04.js";import{d as p,_ as d,h as g,o as e,i as s,F as a,m as i,j as u,k as m}from"./index-e4e05649.js";const f=p({directives:{ImgZoom:_},setup(){return{imgList:Array.from({length:9},(o,r)=>`${l}images/img/${r+1}.jpg`)}}});const v={class:"wrapper"},k=["src"];function h(o,r,x,$,b,y){const n=g("img-zoom");return e(),s("div",v,[(e(!0),s(a,null,i(o.imgList,(t,c)=>(e(),s("div",{key:c,class:"box"},[u(m("img",{src:t,alt:"image"},null,8,k),[[n]])]))),128)),(e(),s(a,null,i(9,t=>m("div",{key:"fake"+t,class:"fake"})),64))])}const D=d(f,[["render",h],["__scopeId","data-v-8955049b"]]);export{D as default}; +import{I as _}from"./index.es-d11d180d.js";import{b as l}from"./global-56066e04.js";import{d as p,_ as d,h as g,o as e,i as s,F as a,m as i,j as u,k as m}from"./index-9e0334f6.js";const f=p({directives:{ImgZoom:_},setup(){return{imgList:Array.from({length:9},(o,r)=>`${l}images/img/${r+1}.jpg`)}}});const v={class:"wrapper"},k=["src"];function h(o,r,x,$,b,y){const n=g("img-zoom");return e(),s("div",v,[(e(!0),s(a,null,i(o.imgList,(t,c)=>(e(),s("div",{key:c,class:"box"},[u(m("img",{src:t,alt:"image"},null,8,k),[[n]])]))),128)),(e(),s(a,null,i(9,t=>m("div",{key:"fake"+t,class:"fake"})),64))])}const D=d(f,[["render",h],["__scopeId","data-v-8955049b"]]);export{D as default}; diff --git a/assets/example1-bb8f9387.js b/assets/example1-85342933.js similarity index 85% rename from assets/example1-bb8f9387.js rename to assets/example1-85342933.js index 10b7586..e4411e0 100644 --- a/assets/example1-bb8f9387.js +++ b/assets/example1-85342933.js @@ -1 +1 @@ -import{R as c}from"./index.es-724d9dc0.js";import{d as n,a as p,_,h as l,o,i as a,k as t,j as h,s as v,x as z}from"./index-e4e05649.js";const f=n({directives:{resize:c},setup(){const e=p();return{resize:e,options:{},handleResizeX(s){console.log("resizeEvent",s);let i=s.target;s.resizeWidthPercent&&(i.style.width=`${s.resizeWidthPercent}%`,e.value.style.width=`${100-s.resizeWidthPercent}%`)}}}});const u=e=>(v("data-v-891ce5ad"),e=e(),z(),e),m={class:"page"},x={class:"wrapper"},R=u(()=>t("p",{class:"text"}," Set this box default resize ",-1)),$=[R],w={ref:"resize",class:"box2"};function g(e,s,i,y,I,S){const r=l("resize");return o(),a("div",m,[t("div",x,[h((o(),a("div",{class:"box1",onResize:s[0]||(s[0]=(...d)=>e.handleResizeX&&e.handleResizeX(...d))},$,32)),[[r,e.options]]),t("div",w,null,512)])])}const B=_(f,[["render",g],["__scopeId","data-v-891ce5ad"]]);export{B as default}; +import{R as c}from"./index.es-724d9dc0.js";import{d as n,a as p,_,h as l,o,i as a,k as t,j as h,s as v,x as z}from"./index-9e0334f6.js";const f=n({directives:{resize:c},setup(){const e=p();return{resize:e,options:{},handleResizeX(s){console.log("resizeEvent",s);let i=s.target;s.resizeWidthPercent&&(i.style.width=`${s.resizeWidthPercent}%`,e.value.style.width=`${100-s.resizeWidthPercent}%`)}}}});const u=e=>(v("data-v-891ce5ad"),e=e(),z(),e),m={class:"page"},x={class:"wrapper"},R=u(()=>t("p",{class:"text"}," Set this box default resize ",-1)),$=[R],w={ref:"resize",class:"box2"};function g(e,s,i,y,I,S){const r=l("resize");return o(),a("div",m,[t("div",x,[h((o(),a("div",{class:"box1",onResize:s[0]||(s[0]=(...d)=>e.handleResizeX&&e.handleResizeX(...d))},$,32)),[[r,e.options]]),t("div",w,null,512)])])}const B=_(f,[["render",g],["__scopeId","data-v-891ce5ad"]]);export{B as default}; diff --git a/assets/example1-b2f87f59.js b/assets/example1-a24f68a4.js similarity index 81% rename from assets/example1-b2f87f59.js rename to assets/example1-a24f68a4.js index 18a224e..f6b147d 100644 --- a/assets/example1-b2f87f59.js +++ b/assets/example1-a24f68a4.js @@ -1 +1 @@ -import{S as p}from"./index.es-f696db10.js";import{d as l,a as o,_ as v,h as g,o as r,i as c,j as u,k as f,t as d}from"./index-e4e05649.js";const m=l({directives:{SizeObserver:p},setup(){const e=o(0),s=o(0);return{width:e,height:s,handleSizeChange:i=>{const{contentRect:a}=i,{width:n,height:t}=a;e.value=~~n,s.value=~~t}}}});const z={class:"wrapper"},S={class:"text"};function b(e,s,h,i,a,n){const t=g("size-observer");return r(),c("div",z,[u((r(),c("div",{class:"box",onSizechange:s[0]||(s[0]=(..._)=>e.handleSizeChange&&e.handleSizeChange(..._))},[f("p",S,d(e.width)+" × "+d(e.height),1)],32)),[[t]])])}const C=v(m,[["render",b],["__scopeId","data-v-93a3b880"]]);export{C as default}; +import{S as p}from"./index.es-f696db10.js";import{d as l,a as o,_ as v,h as g,o as r,i as c,j as u,k as f,t as d}from"./index-9e0334f6.js";const m=l({directives:{SizeObserver:p},setup(){const e=o(0),s=o(0);return{width:e,height:s,handleSizeChange:i=>{const{contentRect:a}=i,{width:n,height:t}=a;e.value=~~n,s.value=~~t}}}});const z={class:"wrapper"},S={class:"text"};function b(e,s,h,i,a,n){const t=g("size-observer");return r(),c("div",z,[u((r(),c("div",{class:"box",onSizechange:s[0]||(s[0]=(..._)=>e.handleSizeChange&&e.handleSizeChange(..._))},[f("p",S,d(e.width)+" × "+d(e.height),1)],32)),[[t]])])}const C=v(m,[["render",b],["__scopeId","data-v-93a3b880"]]);export{C as default}; diff --git a/assets/example1-1755e033.js b/assets/example1-c3fc10ea.js similarity index 86% rename from assets/example1-1755e033.js rename to assets/example1-c3fc10ea.js index 0321b98..23b6fc8 100644 --- a/assets/example1-1755e033.js +++ b/assets/example1-c3fc10ea.js @@ -1 +1 @@ -import{s as d}from"./index.es-7282307a.js";import{d as _,a as n,z as i,_ as p,r,o as b,i as l,q as v,y as a,s as h,x as u,k as e}from"./index-e4e05649.js";const m=_({components:{StandardTabs:d},setup(){const t=n("100vw"),o=n();return i(()=>{t.value=o.value.offsetWidth}),{tabList:["测试1","测试2","测试3","测试4"],tabContentWidth:t,container:o}}});const s=t=>(h("data-v-d2a39e44"),t=t(),u(),t),f={ref:"container"},x=s(()=>e("div",{class:"tab-content tab1"}," Tab1 ",-1)),T=s(()=>e("div",{class:"tab-content tab2"}," Tab2 ",-1)),S=s(()=>e("div",{class:"tab-content tab3"}," Tab3 ",-1)),w=s(()=>e("div",{class:"tab-content tab4"}," Tab4 ",-1));function y(t,o,C,I,$,k){const c=r("StandardTabs");return b(),l("div",f,[v(c,{"tab-list":t.tabList,"tab-content-width":t.tabContentWidth},{tab1:a(()=>[x]),tab2:a(()=>[T]),tab3:a(()=>[S]),tab4:a(()=>[w]),_:1},8,["tab-list","tab-content-width"])],512)}const g=p(m,[["render",y],["__scopeId","data-v-d2a39e44"]]);export{g as default}; +import{s as d}from"./index.es-a5b3ac5e.js";import{d as _,a as n,z as i,_ as p,r,o as b,i as l,q as v,y as a,s as h,x as u,k as e}from"./index-9e0334f6.js";const m=_({components:{StandardTabs:d},setup(){const t=n("100vw"),o=n();return i(()=>{t.value=o.value.offsetWidth}),{tabList:["测试1","测试2","测试3","测试4"],tabContentWidth:t,container:o}}});const s=t=>(h("data-v-d2a39e44"),t=t(),u(),t),f={ref:"container"},x=s(()=>e("div",{class:"tab-content tab1"}," Tab1 ",-1)),T=s(()=>e("div",{class:"tab-content tab2"}," Tab2 ",-1)),S=s(()=>e("div",{class:"tab-content tab3"}," Tab3 ",-1)),w=s(()=>e("div",{class:"tab-content tab4"}," Tab4 ",-1));function y(t,o,C,I,$,k){const c=r("StandardTabs");return b(),l("div",f,[v(c,{"tab-list":t.tabList,"tab-content-width":t.tabContentWidth},{tab1:a(()=>[x]),tab2:a(()=>[T]),tab3:a(()=>[S]),tab4:a(()=>[w]),_:1},8,["tab-list","tab-content-width"])],512)}const g=p(m,[["render",y],["__scopeId","data-v-d2a39e44"]]);export{g as default}; diff --git a/assets/example1-16fb77c6.js b/assets/example1-fa128ebb.js similarity index 83% rename from assets/example1-16fb77c6.js rename to assets/example1-fa128ebb.js index c00a8ec..a2d7df3 100644 --- a/assets/example1-16fb77c6.js +++ b/assets/example1-fa128ebb.js @@ -1 +1 @@ -import{s as p}from"./index.es-be2f93d7.js";import{d,a as c,_,r as f,o as t,i as n,k as a,F as l,m,q as u,y as g,t as h,s as v,x}from"./index-e4e05649.js";const b=d({components:{AnimationDialog:p},setup(){const e=c();return{dialog:e,handleShowDialog(o){e.value.open(o.currentTarget)}}}});const D=e=>(v("data-v-4fbff1ba"),e=e(),x(),e),S={class:"wrapper"},w={class:"text"},k=D(()=>a("div",null,"Hello World",-1));function y(e,o,C,I,$,A){const i=f("AnimationDialog");return t(),n(l,null,[a("div",S,[(t(),n(l,null,m(9,s=>a("div",{key:s,class:"box",onClick:o[0]||(o[0]=(...r)=>e.handleShowDialog&&e.handleShowDialog(...r))},[a("p",w," #"+h(s),1)])),64))]),u(i,{ref:"dialog"},{default:g(()=>[k]),_:1},512)],64)}const N=_(b,[["render",y],["__scopeId","data-v-4fbff1ba"]]);export{N as default}; +import{s as p}from"./index.es-8da2c7aa.js";import{d,a as c,_,r as f,o as t,i as n,k as a,F as l,m,q as u,y as g,t as h,s as v,x}from"./index-9e0334f6.js";const b=d({components:{AnimationDialog:p},setup(){const e=c();return{dialog:e,handleShowDialog(o){e.value.open(o.currentTarget)}}}});const D=e=>(v("data-v-4fbff1ba"),e=e(),x(),e),S={class:"wrapper"},w={class:"text"},k=D(()=>a("div",null,"Hello World",-1));function y(e,o,C,I,$,A){const i=f("AnimationDialog");return t(),n(l,null,[a("div",S,[(t(),n(l,null,m(9,s=>a("div",{key:s,class:"box",onClick:o[0]||(o[0]=(...r)=>e.handleShowDialog&&e.handleShowDialog(...r))},[a("p",w," #"+h(s),1)])),64))]),u(i,{ref:"dialog"},{default:g(()=>[k]),_:1},512)],64)}const N=_(b,[["render",y],["__scopeId","data-v-4fbff1ba"]]);export{N as default}; diff --git a/assets/example1-9839b524.js b/assets/example1-ff00af60.js similarity index 85% rename from assets/example1-9839b524.js rename to assets/example1-ff00af60.js index ed27c6a..c725ca7 100644 --- a/assets/example1-9839b524.js +++ b/assets/example1-ff00af60.js @@ -1,3 +1,3 @@ -import{S as p}from"./index.es-716f6261.js";import{d,_,h as u,o as e,i as s,j as a,F as r,m as l,k as c,t as n}from"./index-e4e05649.js";const m=d({directives:{scroll:p},setup(){return{text:`Lorem, ipsum dolor sit amet consectetur adipisicing elit. In obcaecati sit asperiores dignissimos, +import{S as p}from"./index.es-716f6261.js";import{d,_,h as u,o as e,i as s,j as a,F as r,m as l,k as c,t as n}from"./index-9e0334f6.js";const m=d({directives:{scroll:p},setup(){return{text:`Lorem, ipsum dolor sit amet consectetur adipisicing elit. In obcaecati sit asperiores dignissimos, cupiditate fugiat, libero, doloremque veniam dolorem autem praesentium qui laudantium voluptas omnis. Odit optio nulla quis perspiciatis!`}}});const v={class:"wrapper"},x={class:"scroll-box1"},f={class:"scroll-box2"};function h(i,g,y,k,b,D){const o=u("scroll");return e(),s("div",v,[a((e(),s("div",x,[(e(),s(r,null,l(20,t=>c("p",{key:t,class:"text"},n(i.text),1)),64))])),[[o]]),a((e(),s("div",f,[(e(),s(r,null,l(20,t=>c("p",{key:t,class:"text",style:{width:"800px"}},n(i.text),1)),64))])),[[o,void 0,"all"]])])}const w=_(m,[["render",h],["__scopeId","data-v-06faa741"]]);export{w as default}; diff --git a/assets/example2-80ae9eae.js b/assets/example2-20c217f6.js similarity index 88% rename from assets/example2-80ae9eae.js rename to assets/example2-20c217f6.js index d0506e5..a706722 100644 --- a/assets/example2-80ae9eae.js +++ b/assets/example2-20c217f6.js @@ -1 +1 @@ -import{M as n}from"./index.es-2a6d3cc0.js";import{d as l,j as i,G as a,o as c,i as r,k as p,t as d,_}from"./index-e4e05649.js";const u={class:"box"},m={class:"text"},b=l({__name:"example2",setup(f){const s=n,t={useLongPressInMobile:!0,menuItemCss:{arrowSize:"8px"},menuList:[{label:"刷新",tips:"Refresh",fn:(...e)=>console.log("refresh",e)},{label:"查看",tips:"Check",fn:(...e)=>console.log("check",e),disabled:()=>!0},{line:!0},{label:"操作",tips:"Operation",children:[{label:"打开",tips:"Open",fn:(...e)=>console.log("open",e)},{label:"编辑",tips:"Edit",disabled:()=>!0,fn:(...e)=>console.log("edit",e)},{label:"删除",tips:"Delete",fn:(...e)=>console.log("delete",e)},{label:"重命名",tips:"Rename",fn:(...e)=>console.log("rename",e),hidden:()=>!0}]},{label:"设置",tips:"Setting",fn:(...e)=>console.log("setting",e)}]},o="ontouchstart"in window;return(e,h)=>i((c(),r("div",u,[p("p",m,d(o?"Long press this box, but it don not support children menu":"Right click this box")+". ",1)])),[[a(s),t]])}});const v=_(b,[["__scopeId","data-v-183d8998"]]);export{v as default}; +import{M as n}from"./index.es-6d9dc425.js";import{d as l,j as i,G as a,o as c,i as r,k as p,t as d,_}from"./index-9e0334f6.js";const u={class:"box"},m={class:"text"},b=l({__name:"example2",setup(f){const s=n,t={useLongPressInMobile:!0,menuItemCss:{arrowSize:"8px"},menuList:[{label:"刷新",tips:"Refresh",fn:(...e)=>console.log("refresh",e)},{label:"查看",tips:"Check",fn:(...e)=>console.log("check",e),disabled:()=>!0},{line:!0},{label:"操作",tips:"Operation",children:[{label:"打开",tips:"Open",fn:(...e)=>console.log("open",e)},{label:"编辑",tips:"Edit",disabled:()=>!0,fn:(...e)=>console.log("edit",e)},{label:"删除",tips:"Delete",fn:(...e)=>console.log("delete",e)},{label:"重命名",tips:"Rename",fn:(...e)=>console.log("rename",e),hidden:()=>!0}]},{label:"设置",tips:"Setting",fn:(...e)=>console.log("setting",e)}]},o="ontouchstart"in window;return(e,h)=>i((c(),r("div",u,[p("p",m,d(o?"Long press this box, but it don not support children menu":"Right click this box")+". ",1)])),[[a(s),t]])}});const v=_(b,[["__scopeId","data-v-183d8998"]]);export{v as default}; diff --git a/assets/example2-59859fe3.js b/assets/example2-26846017.js similarity index 88% rename from assets/example2-59859fe3.js rename to assets/example2-26846017.js index 5cd94ed..9984017 100644 --- a/assets/example2-59859fe3.js +++ b/assets/example2-26846017.js @@ -1 +1 @@ -import{R as l}from"./index.es-724d9dc0.js";import{d as _,a,_ as p,h,o as r,i as n,k as o,j as f,s as v,x as u}from"./index-e4e05649.js";const x=_({directives:{resize:l},setup(){const e=a(),t=a();return{box1:e,box3:t,options:{direction:["left","right"]},handleResize(s){console.log("resizeEvent",s);let i=s.target;s.direction==="left"?(i.style.width=`${s.resizeWidthPercent}%`,e.value.style.width=`${s.moveOffsetPercent}%`):s.direction==="right"&&(i.style.width=`${s.resizeWidthPercent}%`,t.value.style.width=`${100-s.moveOffsetPercent}%`)}}}});const z=e=>(v("data-v-4a2418a1"),e=e(),u(),e),m={class:"page"},b={class:"wrapper"},$={ref:"box1",class:"box1"},g=z(()=>o("p",{class:"text"}," Set this box resize left & right ",-1)),w=[g],y={ref:"box3",class:"box3"};function R(e,t,s,i,I,P){const c=h("resize");return r(),n("div",m,[o("div",b,[o("div",$,null,512),f((r(),n("div",{class:"box2",onResize:t[0]||(t[0]=(...d)=>e.handleResize&&e.handleResize(...d))},w,32)),[[c,e.options]]),o("div",y,null,512)])])}const B=p(x,[["render",R],["__scopeId","data-v-4a2418a1"]]);export{B as default}; +import{R as l}from"./index.es-724d9dc0.js";import{d as _,a,_ as p,h,o as r,i as n,k as o,j as f,s as v,x as u}from"./index-9e0334f6.js";const x=_({directives:{resize:l},setup(){const e=a(),t=a();return{box1:e,box3:t,options:{direction:["left","right"]},handleResize(s){console.log("resizeEvent",s);let i=s.target;s.direction==="left"?(i.style.width=`${s.resizeWidthPercent}%`,e.value.style.width=`${s.moveOffsetPercent}%`):s.direction==="right"&&(i.style.width=`${s.resizeWidthPercent}%`,t.value.style.width=`${100-s.moveOffsetPercent}%`)}}}});const z=e=>(v("data-v-4a2418a1"),e=e(),u(),e),m={class:"page"},b={class:"wrapper"},$={ref:"box1",class:"box1"},g=z(()=>o("p",{class:"text"}," Set this box resize left & right ",-1)),w=[g],y={ref:"box3",class:"box3"};function R(e,t,s,i,I,P){const c=h("resize");return r(),n("div",m,[o("div",b,[o("div",$,null,512),f((r(),n("div",{class:"box2",onResize:t[0]||(t[0]=(...d)=>e.handleResize&&e.handleResize(...d))},w,32)),[[c,e.options]]),o("div",y,null,512)])])}const B=p(x,[["render",R],["__scopeId","data-v-4a2418a1"]]);export{B as default}; diff --git a/assets/example2-5408f510.js b/assets/example2-3deaa583.js similarity index 95% rename from assets/example2-5408f510.js rename to assets/example2-3deaa583.js index d36fd42..656058b 100644 --- a/assets/example2-5408f510.js +++ b/assets/example2-3deaa583.js @@ -1,4 +1,4 @@ -import{S as n}from"./index.es-716f6261.js";import{d,_ as p,h as _,o as e,i as s,j as l,F as a,m as i,k as c,t as f}from"./index-e4e05649.js";const u=d({directives:{scroll:n},setup(){return{scrollSetting1:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)"},scrollSetting2:{scrollBarWidth:8,scrollBarOffsetY:2,scrollBarTrackColor:"#eee",scrollBarThumbColor:`linear-gradient(45deg, #ff80ab 5%, #ffc400 5%, #ffc400 15%, #ff80ab 15%, #ff80ab 25%, #ffc400 25%, +import{S as n}from"./index.es-716f6261.js";import{d,_ as p,h as _,o as e,i as s,j as l,F as a,m as i,k as c,t as f}from"./index-9e0334f6.js";const u=d({directives:{scroll:n},setup(){return{scrollSetting1:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)"},scrollSetting2:{scrollBarWidth:8,scrollBarOffsetY:2,scrollBarTrackColor:"#eee",scrollBarThumbColor:`linear-gradient(45deg, #ff80ab 5%, #ffc400 5%, #ffc400 15%, #ff80ab 15%, #ff80ab 25%, #ffc400 25%, #ffc400 35%, #ff80ab 35%, #ff80ab 45%, #ffc400 45%, #ffc400 55%, #ff80ab 55%, #ff80ab 65%, #ffc400 65%, #ffc400 75%, #ff80ab 75%, #ff80ab 85%, #ffc400 85%, #ffc400 95%, #ff80ab 95%, #ff80ab)`},text:`Lorem, ipsum dolor sit amet consectetur adipisicing elit. In obcaecati sit asperiores dignissimos, cupiditate fugiat, libero, doloremque veniam dolorem autem praesentium qui laudantium voluptas omnis. diff --git a/assets/example2-80cf024e.js b/assets/example2-6a3ab783.js similarity index 71% rename from assets/example2-80cf024e.js rename to assets/example2-6a3ab783.js index 4a8ee35..bb5b342 100644 --- a/assets/example2-80cf024e.js +++ b/assets/example2-6a3ab783.js @@ -1 +1 @@ -import{T as s}from"./index.es-6608ee6a.js";import{d as t,a,z as u,_ as n,o as c,i as r,k as o,s as p,x as _}from"./index-e4e05649.js";import"./index.es-4377725c.js";const d=t({setup(){const e=a();return u(()=>{new s({el:e.value,options:{isAbsolute:!0,arrowOptions:{size:10,padding:4}}})}),{control:e}}});const l=e=>(p("data-v-b250a200"),e=e(),_(),e),i={class:"wrapper"},f={ref:"control",class:"control"},m=l(()=>o("div",{class:"text"}," Absolute模式: 控制absolute拖拽元素只允许在其父元素下进行拖拽. ",-1));function v(e,x,B,D,b,h){return c(),r("div",i,[o("div",f,null,512),m])}const I=n(d,[["render",v],["__scopeId","data-v-b250a200"]]);export{I as default}; +import{T as s}from"./index.es-5fe20373.js";import{d as t,a,z as u,_ as n,o as c,i as r,k as o,s as p,x as _}from"./index-9e0334f6.js";import"./index.es-de103fbd.js";const d=t({setup(){const e=a();return u(()=>{new s({el:e.value,options:{isAbsolute:!0,arrowOptions:{size:10,padding:4}}})}),{control:e}}});const l=e=>(p("data-v-b250a200"),e=e(),_(),e),i={class:"wrapper"},f={ref:"control",class:"control"},m=l(()=>o("div",{class:"text"}," Absolute模式: 控制absolute拖拽元素只允许在其父元素下进行拖拽. ",-1));function v(e,x,B,D,b,h){return c(),r("div",i,[o("div",f,null,512),m])}const I=n(d,[["render",v],["__scopeId","data-v-b250a200"]]);export{I as default}; diff --git a/assets/example2-e1c1bc2a.js b/assets/example2-90cd60d4.js similarity index 92% rename from assets/example2-e1c1bc2a.js rename to assets/example2-90cd60d4.js index 5c4ecaa..798e19d 100644 --- a/assets/example2-e1c1bc2a.js +++ b/assets/example2-90cd60d4.js @@ -1 +1 @@ -import{S as l}from"./index.es-f696db10.js";import{d as v,a as n,_ as f,h as m,o as c,i as d,j as S,k as p,t as r,s as g,x as u}from"./index-e4e05649.js";const z=v({directives:{SizeObserver:l},setup(){const e=n("?"),s=n("?");return{width:e,height:s,options:{wait:1e3,immediate:!1},handleSizeChange:o=>{const{contentRect:i}=o,{width:t,height:a}=i;e.value=~~t,s.value=~~a}}}});const b=e=>(g("data-v-f76cba0d"),e=e(),u(),e),w={class:"wrapper"},D=b(()=>p("p",{class:"tips"}," Delay: 1s, Immediate: false ",-1)),x={class:"text"};function C(e,s,h,_,o,i){const t=m("size-observer");return c(),d("div",w,[S((c(),d("div",{class:"box",onSizechange:s[0]||(s[0]=(...a)=>e.handleSizeChange&&e.handleSizeChange(...a))},[D,p("p",x,r(e.width)+" × "+r(e.height),1)],32)),[[t,e.options]])])}const $=f(z,[["render",C],["__scopeId","data-v-f76cba0d"]]);export{$ as default}; +import{S as l}from"./index.es-f696db10.js";import{d as v,a as n,_ as f,h as m,o as c,i as d,j as S,k as p,t as r,s as g,x as u}from"./index-9e0334f6.js";const z=v({directives:{SizeObserver:l},setup(){const e=n("?"),s=n("?");return{width:e,height:s,options:{wait:1e3,immediate:!1},handleSizeChange:o=>{const{contentRect:i}=o,{width:t,height:a}=i;e.value=~~t,s.value=~~a}}}});const b=e=>(g("data-v-f76cba0d"),e=e(),u(),e),w={class:"wrapper"},D=b(()=>p("p",{class:"tips"}," Delay: 1s, Immediate: false ",-1)),x={class:"text"};function C(e,s,h,_,o,i){const t=m("size-observer");return c(),d("div",w,[S((c(),d("div",{class:"box",onSizechange:s[0]||(s[0]=(...a)=>e.handleSizeChange&&e.handleSizeChange(...a))},[D,p("p",x,r(e.width)+" × "+r(e.height),1)],32)),[[t,e.options]])])}const $=f(z,[["render",C],["__scopeId","data-v-f76cba0d"]]);export{$ as default}; diff --git a/assets/example2-ed02591f.js b/assets/example2-c648ec64.js similarity index 76% rename from assets/example2-ed02591f.js rename to assets/example2-c648ec64.js index 0a330b4..f4e4920 100644 --- a/assets/example2-ed02591f.js +++ b/assets/example2-c648ec64.js @@ -1 +1 @@ -import{a}from"./index.es-4377725c.js";import{d as c,_ as r,h as _,o,i as t,j as d,L as i,F as n,s as p,x as u,k as l}from"./index-e4e05649.js";const v=c({directives:{"to-drag":a}});const m=e=>(p("data-v-93907ebb"),e=e(),u(),e),x=m(()=>l("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),D={class:"move-box"};function b(e,f,h,g,B,F){const s=_("to-drag");return o(),t(n,null,[x,d((o(),t("div",D,[i(" DRAG ")])),[[s,{adsorb:1,positionMode:3}]])],64)}const $=r(v,[["render",b],["__scopeId","data-v-93907ebb"]]);export{$ as default}; +import{a}from"./index.es-de103fbd.js";import{d as c,_ as r,h as _,o,i as t,j as d,L as i,F as n,s as p,x as u,k as l}from"./index-9e0334f6.js";const v=c({directives:{"to-drag":a}});const m=e=>(p("data-v-93907ebb"),e=e(),u(),e),x=m(()=>l("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),D={class:"move-box"};function b(e,f,h,g,B,F){const s=_("to-drag");return o(),t(n,null,[x,d((o(),t("div",D,[i(" DRAG ")])),[[s,{adsorb:1,positionMode:3}]])],64)}const $=r(v,[["render",b],["__scopeId","data-v-93907ebb"]]);export{$ as default}; diff --git a/assets/example2-d3f0ba11.js b/assets/example2-e92253bc.js similarity index 90% rename from assets/example2-d3f0ba11.js rename to assets/example2-e92253bc.js index 3fab225..7b7c9a6 100644 --- a/assets/example2-d3f0ba11.js +++ b/assets/example2-e92253bc.js @@ -1 +1 @@ -import{I as _}from"./index.es-d11d180d.js";import{b as l}from"./global-56066e04.js";import{d as p,_ as d,h as g,o as e,i as s,F as a,m as i,j as u,k as c}from"./index-e4e05649.js";const v=p({directives:{ImgZoom:_},setup(){return{imgList:Array.from({length:9},(o,r)=>`${l}images/img/${r+1}.jpg`)}}});const f={class:"wrapper"},k=["src"];function x(o,r,h,$,b,y){const m=g("img-zoom");return e(),s("div",f,[(e(!0),s(a,null,i(o.imgList,(t,n)=>(e(),s("div",{key:n,class:"box"},[u(c("img",{src:t,alt:"image"},null,8,k),[[m,void 0,"example2"]])]))),128)),(e(),s(a,null,i(9,t=>c("div",{key:"fake"+t,class:"fake"})),64))])}const D=d(v,[["render",x],["__scopeId","data-v-096ce7b0"]]);export{D as default}; +import{I as _}from"./index.es-d11d180d.js";import{b as l}from"./global-56066e04.js";import{d as p,_ as d,h as g,o as e,i as s,F as a,m as i,j as u,k as c}from"./index-9e0334f6.js";const v=p({directives:{ImgZoom:_},setup(){return{imgList:Array.from({length:9},(o,r)=>`${l}images/img/${r+1}.jpg`)}}});const f={class:"wrapper"},k=["src"];function x(o,r,h,$,b,y){const m=g("img-zoom");return e(),s("div",f,[(e(!0),s(a,null,i(o.imgList,(t,n)=>(e(),s("div",{key:n,class:"box"},[u(c("img",{src:t,alt:"image"},null,8,k),[[m,void 0,"example2"]])]))),128)),(e(),s(a,null,i(9,t=>c("div",{key:"fake"+t,class:"fake"})),64))])}const D=d(v,[["render",x],["__scopeId","data-v-096ce7b0"]]);export{D as default}; diff --git a/assets/example2-f05048e8.js b/assets/example2-f1539ea3.js similarity index 87% rename from assets/example2-f05048e8.js rename to assets/example2-f1539ea3.js index 4128f57..82f4ac4 100644 --- a/assets/example2-f05048e8.js +++ b/assets/example2-f1539ea3.js @@ -1 +1 @@ -import{s as g}from"./index.es-be2f93d7.js";import{b as u}from"./global-56066e04.js";import{d as f,a as d,_ as v,r as h,o,i as a,k as s,F as r,m,q as k,y,t as w}from"./index-e4e05649.js";const D=f({components:{AnimationDialog:g},setup(){const e=d(),l=d(0);return{dialog:e,imgList:Array.from({length:9},(n,t)=>`${u}images/img/${t+1}.jpg`),active:0,handleShowDialog(n,t){l.value=t+1,e.value.open(n.currentTarget)}}}});const $={class:"wrapper"},C=["onClick"],x=["src"],A={class:"dialog-content"};function L(e,l,n,t,b,B){const _=h("AnimationDialog");return o(),a(r,null,[s("div",$,[(o(!0),a(r,null,m(e.imgList,(i,c)=>(o(),a("div",{key:c,class:"box",onClick:p=>e.handleShowDialog(p,c)},[s("img",{src:i,alt:"image"},null,8,x)],8,C))),128)),(o(),a(r,null,m(9,i=>s("div",{key:"fake"+i,class:"fake"})),64))]),k(_,{ref:"dialog","open-from-itself":!0,"listen-window-size-change":!0},{default:y(()=>[s("div",A," #"+w(e.active),1)]),_:1},512)],64)}const V=v(D,[["render",L],["__scopeId","data-v-471650ed"]]);export{V as default}; +import{s as g}from"./index.es-8da2c7aa.js";import{b as u}from"./global-56066e04.js";import{d as f,a as d,_ as v,r as h,o,i as a,k as s,F as r,m,q as k,y,t as w}from"./index-9e0334f6.js";const D=f({components:{AnimationDialog:g},setup(){const e=d(),l=d(0);return{dialog:e,imgList:Array.from({length:9},(n,t)=>`${u}images/img/${t+1}.jpg`),active:0,handleShowDialog(n,t){l.value=t+1,e.value.open(n.currentTarget)}}}});const $={class:"wrapper"},C=["onClick"],x=["src"],A={class:"dialog-content"};function L(e,l,n,t,b,B){const _=h("AnimationDialog");return o(),a(r,null,[s("div",$,[(o(!0),a(r,null,m(e.imgList,(i,c)=>(o(),a("div",{key:c,class:"box",onClick:p=>e.handleShowDialog(p,c)},[s("img",{src:i,alt:"image"},null,8,x)],8,C))),128)),(o(),a(r,null,m(9,i=>s("div",{key:"fake"+i,class:"fake"})),64))]),k(_,{ref:"dialog","open-from-itself":!0,"listen-window-size-change":!0},{default:y(()=>[s("div",A," #"+w(e.active),1)]),_:1},512)],64)}const V=v(D,[["render",L],["__scopeId","data-v-471650ed"]]);export{V as default}; diff --git a/assets/example2-72c3e0d6.js b/assets/example2-f380d00f.js similarity index 85% rename from assets/example2-72c3e0d6.js rename to assets/example2-f380d00f.js index b6f35c3..9a0a497 100644 --- a/assets/example2-72c3e0d6.js +++ b/assets/example2-f380d00f.js @@ -1 +1 @@ -import{s as i}from"./index.es-7282307a.js";import{d as _,a as o,z as d,_ as l,r as p,o as m,i as b,q as u,M as f,m as v,y as h,k as y,t as $,n as x}from"./index-e4e05649.js";const C=_({components:{StandardTabs:i},setup(){const t=o("100vw"),n=Array.from({length:9},(r,s)=>({name:`测试${s+1}`,slotName:`tab${s+1}`})),a=o();return d(()=>{t.value=a.value.offsetWidth}),{tabContentWidth:t,tabList:n,container:a}}});const N={ref:"container"};function S(t,n,a,r,s,g){const c=p("StandardTabs");return m(),b("div",N,[u(c,{"tab-list":t.tabList.map(e=>e.name),"tab-content-width":t.tabContentWidth,"tab-custom-style":"position:fixed"},f({_:2},[v(t.tabList,e=>({name:e.slotName,fn:h(()=>[y("div",{class:x(`tab-content ${e.slotName}`)},$(e.name),3)])}))]),1032,["tab-list","tab-content-width"])],512)}const k=l(C,[["render",S],["__scopeId","data-v-0c698c1b"]]);export{k as default}; +import{s as i}from"./index.es-a5b3ac5e.js";import{d as _,a as o,z as d,_ as l,r as p,o as m,i as b,q as u,M as f,m as v,y as h,k as y,t as $,n as x}from"./index-9e0334f6.js";const C=_({components:{StandardTabs:i},setup(){const t=o("100vw"),n=Array.from({length:9},(r,s)=>({name:`测试${s+1}`,slotName:`tab${s+1}`})),a=o();return d(()=>{t.value=a.value.offsetWidth}),{tabContentWidth:t,tabList:n,container:a}}});const N={ref:"container"};function S(t,n,a,r,s,g){const c=p("StandardTabs");return m(),b("div",N,[u(c,{"tab-list":t.tabList.map(e=>e.name),"tab-content-width":t.tabContentWidth,"tab-custom-style":"position:fixed"},f({_:2},[v(t.tabList,e=>({name:e.slotName,fn:h(()=>[y("div",{class:x(`tab-content ${e.slotName}`)},$(e.name),3)])}))]),1032,["tab-list","tab-content-width"])],512)}const k=l(C,[["render",S],["__scopeId","data-v-0c698c1b"]]);export{k as default}; diff --git a/assets/example3-d40a9337.js b/assets/example3-12972680.js similarity index 56% rename from assets/example3-d40a9337.js rename to assets/example3-12972680.js index ef61b49..32d3cb8 100644 --- a/assets/example3-d40a9337.js +++ b/assets/example3-12972680.js @@ -1 +1 @@ -import{a as o}from"./index.es-6608ee6a.js";import{d as t,_ as s,h as c,o as r,i as _,j as a,k as n}from"./index-e4e05649.js";import"./index.es-4377725c.js";const i=t({directives:{"to-control":o}});const d={class:"wrapper"},l={class:"control"};function p(v,f,m,u,x,h){const e=c("to-control");return r(),_("div",d,[a(n("div",l,null,512),[[e,{isAbsolute:!0}]])])}const D=s(i,[["render",p],["__scopeId","data-v-3664d8df"]]);export{D as default}; +import{a as o}from"./index.es-5fe20373.js";import{d as t,_ as s,h as c,o as r,i as _,j as a,k as n}from"./index-9e0334f6.js";import"./index.es-de103fbd.js";const i=t({directives:{"to-control":o}});const d={class:"wrapper"},l={class:"control"};function p(v,f,m,u,x,h){const e=c("to-control");return r(),_("div",d,[a(n("div",l,null,512),[[e,{isAbsolute:!0}]])])}const D=s(i,[["render",p],["__scopeId","data-v-3664d8df"]]);export{D as default}; diff --git a/assets/example3-daeaf5d8.js b/assets/example3-2c212057.js similarity index 88% rename from assets/example3-daeaf5d8.js rename to assets/example3-2c212057.js index ded10e9..56a3997 100644 --- a/assets/example3-daeaf5d8.js +++ b/assets/example3-2c212057.js @@ -1 +1 @@ -import{s as d}from"./index.es-be2f93d7.js";import{d as m,a as l,_ as p,r,o as f,i as h,k as e,q as i,F as g}from"./index-e4e05649.js";const c=m({components:{AnimationDialog:d},setup(){const o=l(),n=l(),u=l(),s=l();return{bounce:o,fade:n,zoom:u,flip:s,handleShowBounceDialog(){o.value.open()},handleShowFadeDialog(){n.value.open()},handleShowZoomDialog(){u.value.open()},handleShowFlipDialog(){s.value.open()}}}});const D={class:"wrapper"},w={class:"btn-list"};function F(o,n,u,s,I,S){const t=r("AnimationDialog");return f(),h(g,null,[e("div",D,[e("ul",w,[e("li",null,[e("button",{onClick:n[0]||(n[0]=(...a)=>o.handleShowBounceDialog&&o.handleShowBounceDialog(...a))}," BounceIn / Out (Default) ")]),e("li",null,[e("button",{onClick:n[1]||(n[1]=(...a)=>o.handleShowFadeDialog&&o.handleShowFadeDialog(...a))}," FadeInLeft / FadeOutRight ")]),e("li",null,[e("button",{onClick:n[2]||(n[2]=(...a)=>o.handleShowZoomDialog&&o.handleShowZoomDialog(...a))}," ZoomIn / ZoomOut ")]),e("li",null,[e("button",{onClick:n[3]||(n[3]=(...a)=>o.handleShowFlipDialog&&o.handleShowFlipDialog(...a))}," FlipInX / FlipOutX ")])])]),i(t,{ref:"bounce","animation-mode":!0,title:"bounceIn / bounceOut"},null,512),i(t,{ref:"fade","animation-mode":!0,"animation-in":"fadeInLeft","animation-out":"fadeOutRight",title:"fadeInLeft / fadeOutRight"},null,512),i(t,{ref:"zoom","animation-mode":!0,"animation-in":"zoomIn","animation-out":"zoomOut",title:"zoomIn / zoomOut"},null,512),i(t,{ref:"flip","animation-mode":!0,"animation-in":"flipInX","animation-out":"flipOutX",title:"flipInX / flipOutX"},null,512)],64)}const b=p(c,[["render",F],["__scopeId","data-v-35783921"]]);export{b as default}; +import{s as d}from"./index.es-8da2c7aa.js";import{d as m,a as l,_ as p,r,o as f,i as h,k as e,q as i,F as g}from"./index-9e0334f6.js";const c=m({components:{AnimationDialog:d},setup(){const o=l(),n=l(),u=l(),s=l();return{bounce:o,fade:n,zoom:u,flip:s,handleShowBounceDialog(){o.value.open()},handleShowFadeDialog(){n.value.open()},handleShowZoomDialog(){u.value.open()},handleShowFlipDialog(){s.value.open()}}}});const D={class:"wrapper"},w={class:"btn-list"};function F(o,n,u,s,I,S){const t=r("AnimationDialog");return f(),h(g,null,[e("div",D,[e("ul",w,[e("li",null,[e("button",{onClick:n[0]||(n[0]=(...a)=>o.handleShowBounceDialog&&o.handleShowBounceDialog(...a))}," BounceIn / Out (Default) ")]),e("li",null,[e("button",{onClick:n[1]||(n[1]=(...a)=>o.handleShowFadeDialog&&o.handleShowFadeDialog(...a))}," FadeInLeft / FadeOutRight ")]),e("li",null,[e("button",{onClick:n[2]||(n[2]=(...a)=>o.handleShowZoomDialog&&o.handleShowZoomDialog(...a))}," ZoomIn / ZoomOut ")]),e("li",null,[e("button",{onClick:n[3]||(n[3]=(...a)=>o.handleShowFlipDialog&&o.handleShowFlipDialog(...a))}," FlipInX / FlipOutX ")])])]),i(t,{ref:"bounce","animation-mode":!0,title:"bounceIn / bounceOut"},null,512),i(t,{ref:"fade","animation-mode":!0,"animation-in":"fadeInLeft","animation-out":"fadeOutRight",title:"fadeInLeft / fadeOutRight"},null,512),i(t,{ref:"zoom","animation-mode":!0,"animation-in":"zoomIn","animation-out":"zoomOut",title:"zoomIn / zoomOut"},null,512),i(t,{ref:"flip","animation-mode":!0,"animation-in":"flipInX","animation-out":"flipOutX",title:"flipInX / flipOutX"},null,512)],64)}const b=p(c,[["render",F],["__scopeId","data-v-35783921"]]);export{b as default}; diff --git a/assets/example3-91c32341.js b/assets/example3-33fab6e9.js similarity index 93% rename from assets/example3-91c32341.js rename to assets/example3-33fab6e9.js index 9ad2822..b8f7c30 100644 --- a/assets/example3-91c32341.js +++ b/assets/example3-33fab6e9.js @@ -1,3 +1,3 @@ -import{S as i}from"./index.es-716f6261.js";import{d as a,_ as l,h as c,o as e,i as s,j as n,F as d,m as p,k as u,t as m}from"./index-e4e05649.js";const _=a({directives:{scroll:i},setup(){return{scrollSetting1:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)",thumbShow:"hover"},text:`Lorem, ipsum dolor sit amet consectetur adipisicing elit. In obcaecati sit asperiores dignissimos, +import{S as i}from"./index.es-716f6261.js";import{d as a,_ as l,h as c,o as e,i as s,j as n,F as d,m as p,k as u,t as m}from"./index-9e0334f6.js";const _=a({directives:{scroll:i},setup(){return{scrollSetting1:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)",thumbShow:"hover"},text:`Lorem, ipsum dolor sit amet consectetur adipisicing elit. In obcaecati sit asperiores dignissimos, cupiditate fugiat, libero, doloremque veniam dolorem autem praesentium qui laudantium voluptas omnis. Odit optio nulla quis perspiciatis!`}}});const f={class:"wrapper"},v={class:"scroll-box"};function h(t,g,b,x,B,S){const o=c("scroll");return e(),s("div",f,[n((e(),s("div",v,[(e(),s(d,null,p(20,r=>u("p",{key:r,class:"text"},m(t.text),1)),64))])),[[o,t.scrollSetting1]])])}const D=l(_,[["render",h],["__scopeId","data-v-7d4a9f72"]]);export{D as default}; diff --git a/assets/example3-280afcdd.js b/assets/example3-368ca602.js similarity index 94% rename from assets/example3-280afcdd.js rename to assets/example3-368ca602.js index ecbd7c1..8e67696 100644 --- a/assets/example3-280afcdd.js +++ b/assets/example3-368ca602.js @@ -1 +1 @@ -import{I as _}from"./index.es-d11d180d.js";import{a as g}from"./global-56066e04.js";import{d as f,a as v,z as h,_ as x,h as I,o as r,i as a,k as i,F as c,m as d,j as L,s as b,x as k}from"./index-e4e05649.js";const y=f({directives:{ImgZoom:_},setup(){const e=v([]);return h(async()=>{const t=await fetch(`${g}/photos?type=mirror`),{data:n,errCode:l}=await t.json();l===200&&(e.value=n.list.slice(0,9).map((o,m)=>({thumbImg:o.urls.thumb,regularImg:o.urls.regular,title:`#${m} ${o.description||""}`})))}),{imgList:e,customLoading:()=>{const t=document.createElement("div");return t.innerText="Loading...",t.style.cssText="font-size: 20px;color: #c8c9d0;",t}}}});const $=e=>(b("data-v-b98ff002"),e=e(),k(),e),w={class:"wrapper"},S=["src"],z=$(()=>i("div",{class:"tips"}," PHOTOS FROM UNSPLAH ",-1));function B(e,t,n,l,o,m){const u=I("img-zoom");return r(),a(c,null,[i("div",w,[(r(!0),a(c,null,d(e.imgList,(s,p)=>(r(),a("div",{key:p,class:"box"},[L(i("img",{src:s.thumbImg,alt:"image"},null,8,S),[[u,{group:"example4",zoomCursor:!0,showCloseBtn:!0,title:s.title,imgSrc:s.regularImg,customLoading:e.customLoading}]])]))),128)),(r(),a(c,null,d(9,s=>i("div",{key:"fake"+s,class:"fake"})),64))]),z],64)}const O=x(y,[["render",B],["__scopeId","data-v-b98ff002"]]);export{O as default}; +import{I as _}from"./index.es-d11d180d.js";import{a as g}from"./global-56066e04.js";import{d as f,a as v,z as h,_ as x,h as I,o as r,i as a,k as i,F as c,m as d,j as L,s as b,x as k}from"./index-9e0334f6.js";const y=f({directives:{ImgZoom:_},setup(){const e=v([]);return h(async()=>{const t=await fetch(`${g}/photos?type=mirror`),{data:n,errCode:l}=await t.json();l===200&&(e.value=n.list.slice(0,9).map((o,m)=>({thumbImg:o.urls.thumb,regularImg:o.urls.regular,title:`#${m} ${o.description||""}`})))}),{imgList:e,customLoading:()=>{const t=document.createElement("div");return t.innerText="Loading...",t.style.cssText="font-size: 20px;color: #c8c9d0;",t}}}});const $=e=>(b("data-v-b98ff002"),e=e(),k(),e),w={class:"wrapper"},S=["src"],z=$(()=>i("div",{class:"tips"}," PHOTOS FROM UNSPLAH ",-1));function B(e,t,n,l,o,m){const u=I("img-zoom");return r(),a(c,null,[i("div",w,[(r(!0),a(c,null,d(e.imgList,(s,p)=>(r(),a("div",{key:p,class:"box"},[L(i("img",{src:s.thumbImg,alt:"image"},null,8,S),[[u,{group:"example4",zoomCursor:!0,showCloseBtn:!0,title:s.title,imgSrc:s.regularImg,customLoading:e.customLoading}]])]))),128)),(r(),a(c,null,d(9,s=>i("div",{key:"fake"+s,class:"fake"})),64))]),z],64)}const O=x(y,[["render",B],["__scopeId","data-v-b98ff002"]]);export{O as default}; diff --git a/assets/example3-22ae96f1.js b/assets/example3-4c2651bc.js similarity index 75% rename from assets/example3-22ae96f1.js rename to assets/example3-4c2651bc.js index 0d6407c..2e8c60e 100644 --- a/assets/example3-22ae96f1.js +++ b/assets/example3-4c2651bc.js @@ -1 +1 @@ -import{a as o}from"./index.es-4377725c.js";import{d,_ as c,h as r,o as t,i as s,j as _,L as i,F as n,s as p,x as u,k as f}from"./index-e4e05649.js";const l=d({directives:{"to-drag":o}});const v=e=>(p("data-v-d3fea1fd"),e=e(),u(),e),m=v(()=>f("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),x={class:"move-box"};function D(e,h,g,B,F,E){const a=r("to-drag");return t(),s(n,null,[m,_((t(),s("div",x,[i(" DRAG ")])),[[a,{adsorb:2}]])],64)}const k=c(l,[["render",D],["__scopeId","data-v-d3fea1fd"]]);export{k as default}; +import{a as o}from"./index.es-de103fbd.js";import{d,_ as c,h as r,o as t,i as s,j as _,L as i,F as n,s as p,x as u,k as f}from"./index-9e0334f6.js";const l=d({directives:{"to-drag":o}});const v=e=>(p("data-v-d3fea1fd"),e=e(),u(),e),m=v(()=>f("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),x={class:"move-box"};function D(e,h,g,B,F,E){const a=r("to-drag");return t(),s(n,null,[m,_((t(),s("div",x,[i(" DRAG ")])),[[a,{adsorb:2}]])],64)}const k=c(l,[["render",D],["__scopeId","data-v-d3fea1fd"]]);export{k as default}; diff --git a/assets/example3-8d593a5f.js b/assets/example3-85c315c5.js similarity index 89% rename from assets/example3-8d593a5f.js rename to assets/example3-85c315c5.js index 7e350b7..a4778d5 100644 --- a/assets/example3-8d593a5f.js +++ b/assets/example3-85c315c5.js @@ -1 +1 @@ -import{M as a}from"./index.es-2a6d3cc0.js";import{d as c,z as l,A as i,j as r,G as p,o as d,i as _,k as m,t as f,_ as u}from"./index-e4e05649.js";const h={class:"box"},b={class:"text"},x=c({__name:"example3",setup(g){const t=a;l(()=>{var o;const e=document.createElement("link");e.id="fontawesomeCDN",e.rel="stylesheet",e.type="text/css",e.href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.3/css/all.min.css",(o=document.querySelector("head"))==null||o.appendChild(e)}),i(()=>{var o;const e=document.querySelector("#fontawesomeCDN");(o=e==null?void 0:e.parentNode)==null||o.removeChild(e)});const s="ontouchstart"in window,n={useLongPressInMobile:!0,hasIcon:!0,iconType:"font-icon",menuList:[{label:"打开",tips:"Open",icon:"fas fa-folder-open",fn:(...e)=>console.log("open",e)},{label:"编辑",tips:"Edit",icon:"fas fa-pencil-alt",fn:(...e)=>console.log("edit",e)},{label:"删除",tips:"Delete",icon:"fas fa-trash-alt",fn:(...e)=>console.log("delete",e)},{label:"重命名",tips:"Rename",fn:(...e)=>console.log("rename",e)}]};return(e,o)=>r((d(),_("div",h,[m("p",b,f(s?"Long press this box":"Right click this box")+". ",1)])),[[p(t),n]])}});const M=u(x,[["__scopeId","data-v-b2501296"]]);export{M as default}; +import{M as a}from"./index.es-6d9dc425.js";import{d as c,z as l,A as i,j as r,G as p,o as d,i as _,k as m,t as f,_ as u}from"./index-9e0334f6.js";const h={class:"box"},b={class:"text"},x=c({__name:"example3",setup(g){const t=a;l(()=>{var o;const e=document.createElement("link");e.id="fontawesomeCDN",e.rel="stylesheet",e.type="text/css",e.href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.3/css/all.min.css",(o=document.querySelector("head"))==null||o.appendChild(e)}),i(()=>{var o;const e=document.querySelector("#fontawesomeCDN");(o=e==null?void 0:e.parentNode)==null||o.removeChild(e)});const s="ontouchstart"in window,n={useLongPressInMobile:!0,hasIcon:!0,iconType:"font-icon",menuList:[{label:"打开",tips:"Open",icon:"fas fa-folder-open",fn:(...e)=>console.log("open",e)},{label:"编辑",tips:"Edit",icon:"fas fa-pencil-alt",fn:(...e)=>console.log("edit",e)},{label:"删除",tips:"Delete",icon:"fas fa-trash-alt",fn:(...e)=>console.log("delete",e)},{label:"重命名",tips:"Rename",fn:(...e)=>console.log("rename",e)}]};return(e,o)=>r((d(),_("div",h,[m("p",b,f(s?"Long press this box":"Right click this box")+". ",1)])),[[p(t),n]])}});const M=u(x,[["__scopeId","data-v-b2501296"]]);export{M as default}; diff --git a/assets/example3-6e206829.js b/assets/example3-ae3d1141.js similarity index 97% rename from assets/example3-6e206829.js rename to assets/example3-ae3d1141.js index a0f65be..a04c170 100644 --- a/assets/example3-6e206829.js +++ b/assets/example3-ae3d1141.js @@ -1 +1 @@ -import{R as z}from"./index.es-724d9dc0.js";import{d as v,a as r,_ as x,h as g,o as n,i as a,k as i,j as h,s as f,x as R}from"./index-e4e05649.js";const u=v({directives:{resize:z},setup(){const s=r(),o=r(),c=r(),_=r();return{a:s,b:o,c,d:_,options:{},handleResizeX(t){console.log(t);let l=t.target,e=t.resizeWidth;e&&(l.style.width=`${e}px`,s.value.style.width=`${600-e}px`)},handleResizeY(t){console.log(t);let l=t.target,e=t.resizeHeight;e&&(l.style.height=`${e}px`,o.value.style.height=`${400-e}px`)},handleResizeX1(t){console.log(t);let l=t.target,e=t.resizeWidth;e&&(l.style.width=`${e}px`,c.value.style.width=`${600-e}px`)},handleResizeY1(t){console.log(t);let l=t.target,e=t.resizeHeight;e&&(l.style.height=`${e}px`,_.value.style.height=`${400-e}px`)}}}});const p=s=>(f("data-v-21deea62"),s=s(),R(),s),b={class:"page"},y={class:"container"},$={class:"wrapper x"},m=p(()=>i("p",{class:"text"}," Set this box -> resize:right ",-1)),w=[m],S={ref:"a",class:"box2"},X={class:"wrapper y"},Y=p(()=>i("p",{class:"text"}," Set this box -> resize:bottom ",-1)),H=[Y],I={ref:"b",class:"box2"},W={class:"wrapper x"},k={ref:"c",class:"box1"},B=p(()=>i("p",{class:"text"}," Set this box -> resize:left ",-1)),D=[B],j={class:"wrapper y"},C={ref:"d",class:"box1"},E=p(()=>i("p",{class:"text"}," Set this box -> resize:top ",-1)),N=[E];function V(s,o,c,_,t,l){const e=g("resize");return n(),a("div",b,[i("div",y,[i("div",$,[h((n(),a("div",{class:"box1",onResize:o[0]||(o[0]=(...d)=>s.handleResizeX&&s.handleResizeX(...d))},w,32)),[[e,s.options,"right"]]),i("div",S,null,512)]),i("div",X,[h((n(),a("div",{class:"box1",onResize:o[1]||(o[1]=(...d)=>s.handleResizeY&&s.handleResizeY(...d))},H,32)),[[e,s.options,"bottom"]]),i("div",I,null,512)]),i("div",W,[i("div",k,null,512),h((n(),a("div",{class:"box2",onResize:o[2]||(o[2]=(...d)=>s.handleResizeX1&&s.handleResizeX1(...d))},D,32)),[[e,s.options,"left"]])]),i("div",j,[i("div",C,null,512),h((n(),a("div",{class:"box2",onResize:o[3]||(o[3]=(...d)=>s.handleResizeY1&&s.handleResizeY1(...d))},N,32)),[[e,s.options,"top"]])])])])}const F=x(u,[["render",V],["__scopeId","data-v-21deea62"]]);export{F as default}; +import{R as z}from"./index.es-724d9dc0.js";import{d as v,a as r,_ as x,h as g,o as n,i as a,k as i,j as h,s as f,x as R}from"./index-9e0334f6.js";const u=v({directives:{resize:z},setup(){const s=r(),o=r(),c=r(),_=r();return{a:s,b:o,c,d:_,options:{},handleResizeX(t){console.log(t);let l=t.target,e=t.resizeWidth;e&&(l.style.width=`${e}px`,s.value.style.width=`${600-e}px`)},handleResizeY(t){console.log(t);let l=t.target,e=t.resizeHeight;e&&(l.style.height=`${e}px`,o.value.style.height=`${400-e}px`)},handleResizeX1(t){console.log(t);let l=t.target,e=t.resizeWidth;e&&(l.style.width=`${e}px`,c.value.style.width=`${600-e}px`)},handleResizeY1(t){console.log(t);let l=t.target,e=t.resizeHeight;e&&(l.style.height=`${e}px`,_.value.style.height=`${400-e}px`)}}}});const p=s=>(f("data-v-21deea62"),s=s(),R(),s),b={class:"page"},y={class:"container"},$={class:"wrapper x"},m=p(()=>i("p",{class:"text"}," Set this box -> resize:right ",-1)),w=[m],S={ref:"a",class:"box2"},X={class:"wrapper y"},Y=p(()=>i("p",{class:"text"}," Set this box -> resize:bottom ",-1)),H=[Y],I={ref:"b",class:"box2"},W={class:"wrapper x"},k={ref:"c",class:"box1"},B=p(()=>i("p",{class:"text"}," Set this box -> resize:left ",-1)),D=[B],j={class:"wrapper y"},C={ref:"d",class:"box1"},E=p(()=>i("p",{class:"text"}," Set this box -> resize:top ",-1)),N=[E];function V(s,o,c,_,t,l){const e=g("resize");return n(),a("div",b,[i("div",y,[i("div",$,[h((n(),a("div",{class:"box1",onResize:o[0]||(o[0]=(...d)=>s.handleResizeX&&s.handleResizeX(...d))},w,32)),[[e,s.options,"right"]]),i("div",S,null,512)]),i("div",X,[h((n(),a("div",{class:"box1",onResize:o[1]||(o[1]=(...d)=>s.handleResizeY&&s.handleResizeY(...d))},H,32)),[[e,s.options,"bottom"]]),i("div",I,null,512)]),i("div",W,[i("div",k,null,512),h((n(),a("div",{class:"box2",onResize:o[2]||(o[2]=(...d)=>s.handleResizeX1&&s.handleResizeX1(...d))},D,32)),[[e,s.options,"left"]])]),i("div",j,[i("div",C,null,512),h((n(),a("div",{class:"box2",onResize:o[3]||(o[3]=(...d)=>s.handleResizeY1&&s.handleResizeY1(...d))},N,32)),[[e,s.options,"top"]])])])])}const F=x(u,[["render",V],["__scopeId","data-v-21deea62"]]);export{F as default}; diff --git a/assets/example4-816a5753.js b/assets/example4-04fe3b86.js similarity index 93% rename from assets/example4-816a5753.js rename to assets/example4-04fe3b86.js index 73ea7d3..ce56101 100644 --- a/assets/example4-816a5753.js +++ b/assets/example4-04fe3b86.js @@ -1 +1 @@ -import{a as n}from"./index.es-6608ee6a.js";import{d as s,a as t,_ as a,h as l,o as z,i as j,j as L,k as e,t as c}from"./index-e4e05649.js";import"./index.es-4377725c.js";const y=s({directives:{"to-control":n},setup(){const M="url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjI3Mjc4NzU0NTQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjUzNjIiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj5AZm9udC1mYWNlIHsgZm9udC1mYW1pbHk6IGZlZWRiYWNrLWljb25mb250OyBzcmM6IHVybCgiLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4XzF1aHI4cmkwcGs1LmVvdD8jaWVmaXgiKSBmb3JtYXQoImVtYmVkZGVkLW9wZW50eXBlIiksIHVybCgiLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4XzF1aHI4cmkwcGs1LndvZmYyIikgZm9ybWF0KCJ3b2ZmMiIpLCB1cmwoIi8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF8xdWhyOHJpMHBrNS53b2ZmIikgZm9ybWF0KCJ3b2ZmIiksIHVybCgiLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4XzF1aHI4cmkwcGs1LnR0ZiIpIGZvcm1hdCgidHJ1ZXR5cGUiKSwgdXJsKCIvL2F0LmFsaWNkbi5jb20vdC9mb250XzEwMzExNThfMXVocjhyaTBwazUuc3ZnI2ljb25mb250IikgZm9ybWF0KCJzdmciKTsgfQo8L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTU0Ljc1MiAyMDIuNDEwNjY3YTM1Ljg0IDM1Ljg0IDAgMCAwIDAuMTI4IDUwLjEzMzMzM2wxNTUuMzA2NjY3IDE1Ni45NzA2NjcgMy41ODQgMy4xNTczMzNhMzQuNDMyIDM0LjQzMiAwIDAgMCA0NS43Mzg2NjYtMy4yODUzMzMgMzUuNjI2NjY3IDM1LjYyNjY2NyAwIDAgMC0wLjA4NTMzMy01MC4wOTA2NjdsLTE1NS4zMDY2NjctMTU3LjAxMzMzMy0zLjU0MTMzMy0zLjExNDY2N2EzNC41NiAzNC41NiAwIDAgMC00NS44MjQgMy4yNDI2Njd6IG0tMzk2LjIwMjY2NyAyNzQuNDMyQTM1LjI4NTMzMyAzNS4yODUzMzMgMCAwIDAgMTI4IDUxMmMwIDE5LjU0MTMzMyAxNS42NTg2NjcgMzUuNDEzMzMzIDM0LjkwMTMzMyAzNS40MTMzMzNoNjEzLjY3NDY2N2wtMjIxLjY5NiAyMjQuMDQyNjY3LTMuMTU3MzMzIDMuNjI2NjY3YTM1Ljg0IDM1Ljg0IDAgMCAwIDMuMDcyIDQ2LjUwNjY2NiAzNC41NiAzNC41NiAwIDAgMCA0OS4zMjI2NjYgMC4wODUzMzRsMjgxLjYtMjg0LjU4NjY2NyAzLjExNDY2Ny0zLjU4NGEzNS42NjkzMzMgMzUuNjY5MzMzIDAgMCAwIDQuNTIyNjY3LTM0Ljk4NjY2NyAzNC44NTg2NjcgMzQuODU4NjY3IDAgMCAwLTMyLjI1Ni0yMS45MzA2NjZIMTYyLjkwMTMzM2wtNC4zNTIgMC4yNTZ6IiBmaWxsPSIjMjAwRTMyIiBwLWlkPSI1MzYzIj48L3BhdGg+PC9zdmc+')",o=t(!1),I=()=>o.value;return{isLock:o,options:{isAbsolute:!0,positionMode:4,moveCursor:!1,arrowOptions:{padding:0,size:20,lineWidth:0,background:`${M} 0 0/20px 20px`},disabled:I},handleToDragEnd(N){console.log("todragend",N)},handleToControlEnd(N){console.log("tocontrolend",N)}}}});const g={class:"wrapper"};function m(M,o,I,N,D,r){const d=l("to-control");return z(),j("div",g,[L((z(),j("div",{class:"control",onTodragend:o[0]||(o[0]=(...i)=>M.handleToDragEnd&&M.handleToDragEnd(...i)),onTocontrolend:o[1]||(o[1]=(...i)=>M.handleToControlEnd&&M.handleToControlEnd(...i))},[e("div",null,"isLock: "+c(M.isLock),1)],32)),[[d,M.options]]),e("button",{onClick:o[2]||(o[2]=i=>M.isLock=!M.isLock)}," Toggle Lock ")])}const A=a(y,[["render",m],["__scopeId","data-v-4100bcc0"]]);export{A as default}; +import{a as n}from"./index.es-5fe20373.js";import{d as s,a as t,_ as a,h as l,o as z,i as j,j as L,k as e,t as c}from"./index-9e0334f6.js";import"./index.es-de103fbd.js";const y=s({directives:{"to-control":n},setup(){const M="url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjI3Mjc4NzU0NTQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjUzNjIiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj5AZm9udC1mYWNlIHsgZm9udC1mYW1pbHk6IGZlZWRiYWNrLWljb25mb250OyBzcmM6IHVybCgiLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4XzF1aHI4cmkwcGs1LmVvdD8jaWVmaXgiKSBmb3JtYXQoImVtYmVkZGVkLW9wZW50eXBlIiksIHVybCgiLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4XzF1aHI4cmkwcGs1LndvZmYyIikgZm9ybWF0KCJ3b2ZmMiIpLCB1cmwoIi8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF8xdWhyOHJpMHBrNS53b2ZmIikgZm9ybWF0KCJ3b2ZmIiksIHVybCgiLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4XzF1aHI4cmkwcGs1LnR0ZiIpIGZvcm1hdCgidHJ1ZXR5cGUiKSwgdXJsKCIvL2F0LmFsaWNkbi5jb20vdC9mb250XzEwMzExNThfMXVocjhyaTBwazUuc3ZnI2ljb25mb250IikgZm9ybWF0KCJzdmciKTsgfQo8L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTU0Ljc1MiAyMDIuNDEwNjY3YTM1Ljg0IDM1Ljg0IDAgMCAwIDAuMTI4IDUwLjEzMzMzM2wxNTUuMzA2NjY3IDE1Ni45NzA2NjcgMy41ODQgMy4xNTczMzNhMzQuNDMyIDM0LjQzMiAwIDAgMCA0NS43Mzg2NjYtMy4yODUzMzMgMzUuNjI2NjY3IDM1LjYyNjY2NyAwIDAgMC0wLjA4NTMzMy01MC4wOTA2NjdsLTE1NS4zMDY2NjctMTU3LjAxMzMzMy0zLjU0MTMzMy0zLjExNDY2N2EzNC41NiAzNC41NiAwIDAgMC00NS44MjQgMy4yNDI2Njd6IG0tMzk2LjIwMjY2NyAyNzQuNDMyQTM1LjI4NTMzMyAzNS4yODUzMzMgMCAwIDAgMTI4IDUxMmMwIDE5LjU0MTMzMyAxNS42NTg2NjcgMzUuNDEzMzMzIDM0LjkwMTMzMyAzNS40MTMzMzNoNjEzLjY3NDY2N2wtMjIxLjY5NiAyMjQuMDQyNjY3LTMuMTU3MzMzIDMuNjI2NjY3YTM1Ljg0IDM1Ljg0IDAgMCAwIDMuMDcyIDQ2LjUwNjY2NiAzNC41NiAzNC41NiAwIDAgMCA0OS4zMjI2NjYgMC4wODUzMzRsMjgxLjYtMjg0LjU4NjY2NyAzLjExNDY2Ny0zLjU4NGEzNS42NjkzMzMgMzUuNjY5MzMzIDAgMCAwIDQuNTIyNjY3LTM0Ljk4NjY2NyAzNC44NTg2NjcgMzQuODU4NjY3IDAgMCAwLTMyLjI1Ni0yMS45MzA2NjZIMTYyLjkwMTMzM2wtNC4zNTIgMC4yNTZ6IiBmaWxsPSIjMjAwRTMyIiBwLWlkPSI1MzYzIj48L3BhdGg+PC9zdmc+')",o=t(!1),I=()=>o.value;return{isLock:o,options:{isAbsolute:!0,positionMode:4,moveCursor:!1,arrowOptions:{padding:0,size:20,lineWidth:0,background:`${M} 0 0/20px 20px`},disabled:I},handleToDragEnd(N){console.log("todragend",N)},handleToControlEnd(N){console.log("tocontrolend",N)}}}});const g={class:"wrapper"};function m(M,o,I,N,D,r){const d=l("to-control");return z(),j("div",g,[L((z(),j("div",{class:"control",onTodragend:o[0]||(o[0]=(...i)=>M.handleToDragEnd&&M.handleToDragEnd(...i)),onTocontrolend:o[1]||(o[1]=(...i)=>M.handleToControlEnd&&M.handleToControlEnd(...i))},[e("div",null,"isLock: "+c(M.isLock),1)],32)),[[d,M.options]]),e("button",{onClick:o[2]||(o[2]=i=>M.isLock=!M.isLock)}," Toggle Lock ")])}const A=a(y,[["render",m],["__scopeId","data-v-4100bcc0"]]);export{A as default}; diff --git a/assets/example4-e141bbf6.js b/assets/example4-2f51bf5c.js similarity index 90% rename from assets/example4-e141bbf6.js rename to assets/example4-2f51bf5c.js index 07dcf41..01c1d69 100644 --- a/assets/example4-e141bbf6.js +++ b/assets/example4-2f51bf5c.js @@ -1 +1 @@ -import{M as t}from"./index.es-2a6d3cc0.js";import{d as l,j as i,G as a,o as p,i as c,k as r,t as d,_}from"./index-e4e05649.js";const u={class:"box"},b={class:"text"},x=l({__name:"example4",setup(m){const o=t,s={useLongPressInMobile:!0,customClass:"custom-howdy-menu",menuWrapperCss:{background:"#ffffff",borderRadius:"6px",padding:"8px 6px",boxShadow:"0 2px 12px 0 rgba(0,0,0,.1)",lineColor:"#eee",lineMargin:"5px 10px"},menuItemCss:{arrowSize:"10px",iconFontSize:"18px",labelColor:"#5E6370",iconColor:"#5E6370"},menuList:[{label:"刷新",tips:"Refresh",fn:(...e)=>console.log("open",e)},{label:"查看",tips:"Check",fn:(...e)=>console.log("open",e),disabled:()=>!0},{line:!0},{label:"操作",tips:"Operation",children:[{label:"打开",tips:"Open",fn:(...e)=>console.log("open",e)},{label:"编辑",tips:"Edit",disabled:()=>!0,fn:(...e)=>console.log("open",e)},{label:"删除",tips:"Delete",customClass:"delete",fn:(...e)=>console.log("open",e)},{label:"重命名",tips:"Rename",fn:(...e)=>console.log("open",e),hidden:()=>!0}]},{label:"设置",tips:"Setting"}]},n="ontouchstart"in window;return(e,f)=>i((p(),c("div",u,[r("p",b,d(n?"Long press this box, but it don not support children menu":"Right click this box")+". ",1)])),[[a(o),s]])}});const v=_(x,[["__scopeId","data-v-3b1d7db6"]]);export{v as default}; +import{M as t}from"./index.es-6d9dc425.js";import{d as l,j as i,G as a,o as p,i as c,k as r,t as d,_}from"./index-9e0334f6.js";const u={class:"box"},b={class:"text"},x=l({__name:"example4",setup(m){const o=t,s={useLongPressInMobile:!0,customClass:"custom-howdy-menu",menuWrapperCss:{background:"#ffffff",borderRadius:"6px",padding:"8px 6px",boxShadow:"0 2px 12px 0 rgba(0,0,0,.1)",lineColor:"#eee",lineMargin:"5px 10px"},menuItemCss:{arrowSize:"10px",iconFontSize:"18px",labelColor:"#5E6370",iconColor:"#5E6370"},menuList:[{label:"刷新",tips:"Refresh",fn:(...e)=>console.log("open",e)},{label:"查看",tips:"Check",fn:(...e)=>console.log("open",e),disabled:()=>!0},{line:!0},{label:"操作",tips:"Operation",children:[{label:"打开",tips:"Open",fn:(...e)=>console.log("open",e)},{label:"编辑",tips:"Edit",disabled:()=>!0,fn:(...e)=>console.log("open",e)},{label:"删除",tips:"Delete",customClass:"delete",fn:(...e)=>console.log("open",e)},{label:"重命名",tips:"Rename",fn:(...e)=>console.log("open",e),hidden:()=>!0}]},{label:"设置",tips:"Setting"}]},n="ontouchstart"in window;return(e,f)=>i((p(),c("div",u,[r("p",b,d(n?"Long press this box, but it don not support children menu":"Right click this box")+". ",1)])),[[a(o),s]])}});const v=_(x,[["__scopeId","data-v-3b1d7db6"]]);export{v as default}; diff --git a/assets/example4-c8b143b0.js b/assets/example4-32ac5a91.js similarity index 93% rename from assets/example4-c8b143b0.js rename to assets/example4-32ac5a91.js index 46c94c3..7fbf148 100644 --- a/assets/example4-c8b143b0.js +++ b/assets/example4-32ac5a91.js @@ -1,3 +1,3 @@ -import{S as i}from"./index.es-716f6261.js";import{d as a,_ as l,h as c,o as e,i as s,j as n,F as p,m as d,k as u,t as m}from"./index-e4e05649.js";const _=a({directives:{scroll:i},setup(){return{scrollSetting:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)",dragScroll:!0},text:`Lorem, ipsum dolor sit amet consectetur adipisicing elit. In obcaecati sit asperiores dignissimos, +import{S as i}from"./index.es-716f6261.js";import{d as a,_ as l,h as c,o as e,i as s,j as n,F as p,m as d,k as u,t as m}from"./index-9e0334f6.js";const _=a({directives:{scroll:i},setup(){return{scrollSetting:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)",dragScroll:!0},text:`Lorem, ipsum dolor sit amet consectetur adipisicing elit. In obcaecati sit asperiores dignissimos, cupiditate fugiat, libero, doloremque veniam dolorem autem praesentium qui laudantium voluptas omnis. Odit optio nulla quis perspiciatis!`}}});const f={class:"wrapper"},v={class:"scroll-box"};function g(t,b,h,x,B,S){const r=c("scroll");return e(),s("div",f,[n((e(),s("div",v,[(e(),s(p,null,d(30,o=>u("p",{key:o,class:"text",style:{width:"800px"}},m(t.text),1)),64))])),[[r,t.scrollSetting,"all"]])])}const D=l(_,[["render",g],["__scopeId","data-v-6929ba4f"]]);export{D as default}; diff --git a/assets/example4-2da0ddcd.js b/assets/example4-39fd5fce.js similarity index 80% rename from assets/example4-2da0ddcd.js rename to assets/example4-39fd5fce.js index 6d7a461..93d31d8 100644 --- a/assets/example4-2da0ddcd.js +++ b/assets/example4-39fd5fce.js @@ -1 +1 @@ -import{a}from"./index.es-4377725c.js";import{d as i,_ as r,h as c,o as t,i as o,j as n,L as d,F as _,s as p,x as u,k as l}from"./index-e4e05649.js";const v=i({directives:{"to-drag":a},setup(){return{options:{adsorb:2,adsorbOffset:10,transitionDuration:800,transitionTimingFunction:"cubic-bezier(0.34, -0.37, 0.73, 1.38)"}}}});const m=e=>(p("data-v-1a86a67e"),e=e(),u(),e),f=m(()=>l("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),D={class:"move-box"};function x(e,g,h,F,b,B){const s=c("to-drag");return t(),o(_,null,[f,n((t(),o("div",D,[d(" DRAG ")])),[[s,e.options]])],64)}const $=r(v,[["render",x],["__scopeId","data-v-1a86a67e"]]);export{$ as default}; +import{a}from"./index.es-de103fbd.js";import{d as i,_ as r,h as c,o as t,i as o,j as n,L as d,F as _,s as p,x as u,k as l}from"./index-9e0334f6.js";const v=i({directives:{"to-drag":a},setup(){return{options:{adsorb:2,adsorbOffset:10,transitionDuration:800,transitionTimingFunction:"cubic-bezier(0.34, -0.37, 0.73, 1.38)"}}}});const m=e=>(p("data-v-1a86a67e"),e=e(),u(),e),f=m(()=>l("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),D={class:"move-box"};function x(e,g,h,F,b,B){const s=c("to-drag");return t(),o(_,null,[f,n((t(),o("div",D,[d(" DRAG ")])),[[s,e.options]])],64)}const $=r(v,[["render",x],["__scopeId","data-v-1a86a67e"]]);export{$ as default}; diff --git a/assets/example4-443407cb.js b/assets/example4-93e762a2.js similarity index 94% rename from assets/example4-443407cb.js rename to assets/example4-93e762a2.js index 7842680..a82954f 100644 --- a/assets/example4-443407cb.js +++ b/assets/example4-93e762a2.js @@ -1 +1 @@ -import{R as d}from"./index.es-724d9dc0.js";import{d as p,_,h,o as r,i as l,k as n,j as f,s as v,x as z}from"./index-e4e05649.js";const m=p({directives:{resize:d},setup(){return{options:{},handleResizeAll(e){let t=e.target,{direction:i}=e;if(i==="right"){let s=e.resizeWidthPercent;t.style.width=`${s}%`}else if(i==="bottom"){let s=e.resizeHeightPercent;t.style.height=`${s}%`}else if(i==="left"){let{moveOffsetPercent:s,resizeWidthPercent:o}=e;t.style.width=`${o}%`,t.style.left=`${s}%`}else if(i==="top"){let{moveOffsetPercent:s,resizeHeightPercent:o}=e;t.style.height=`${o}%`,t.style.top=`${s}%`}}}}});const u=e=>(v("data-v-6439b614"),e=e(),z(),e),$={id:"example4",class:"page"},g={class:"outer-box"},x=u(()=>n("p",{class:"text"}," Set this box -> resize:all ",-1)),y=[x];function P(e,t,i,s,o,b){const a=h("resize");return r(),l("div",$,[n("div",g,[f((r(),l("div",{class:"inner-box",onResize:t[0]||(t[0]=(...c)=>e.handleResizeAll&&e.handleResizeAll(...c))},y,32)),[[a,e.options,"all"]])])])}const I=_(m,[["render",P],["__scopeId","data-v-6439b614"]]);export{I as default}; +import{R as d}from"./index.es-724d9dc0.js";import{d as p,_,h,o as r,i as l,k as n,j as f,s as v,x as z}from"./index-9e0334f6.js";const m=p({directives:{resize:d},setup(){return{options:{},handleResizeAll(e){let t=e.target,{direction:i}=e;if(i==="right"){let s=e.resizeWidthPercent;t.style.width=`${s}%`}else if(i==="bottom"){let s=e.resizeHeightPercent;t.style.height=`${s}%`}else if(i==="left"){let{moveOffsetPercent:s,resizeWidthPercent:o}=e;t.style.width=`${o}%`,t.style.left=`${s}%`}else if(i==="top"){let{moveOffsetPercent:s,resizeHeightPercent:o}=e;t.style.height=`${o}%`,t.style.top=`${s}%`}}}}});const u=e=>(v("data-v-6439b614"),e=e(),z(),e),$={id:"example4",class:"page"},g={class:"outer-box"},x=u(()=>n("p",{class:"text"}," Set this box -> resize:all ",-1)),y=[x];function P(e,t,i,s,o,b){const a=h("resize");return r(),l("div",$,[n("div",g,[f((r(),l("div",{class:"inner-box",onResize:t[0]||(t[0]=(...c)=>e.handleResizeAll&&e.handleResizeAll(...c))},y,32)),[[a,e.options,"all"]])])])}const I=_(m,[["render",P],["__scopeId","data-v-6439b614"]]);export{I as default}; diff --git a/assets/example4-668c1bc6.js b/assets/example4-db3766fc.js similarity index 89% rename from assets/example4-668c1bc6.js rename to assets/example4-db3766fc.js index 47d304f..e933eca 100644 --- a/assets/example4-668c1bc6.js +++ b/assets/example4-db3766fc.js @@ -1 +1 @@ -import{s as u}from"./index.es-be2f93d7.js";import{d,a as m,_,r as f,o as n,i as a,k as o,q as v,y as i,F as l,m as g,s as b,x as k}from"./index-e4e05649.js";const C=d({components:{AnimationDialog:u},setup(){const e=m();return{dialog:e,open:()=>{e.value.open()},close:()=>{e.value.close()}}}});const c=e=>(b("data-v-186013a8"),e=e(),k(),e),x=c(()=>o("div",{class:"title"},[o("select",{value:"1"},[o("option",{value:"1"}," Test1 "),o("option",{value:"2"}," Test2 ")])],-1)),y={class:"footer"},I=c(()=>o("button",null,"Submit",-1));function S(e,t,p,$,h,q){const r=f("AnimationDialog");return n(),a(l,null,[o("button",{class:"btn-open",onClick:t[0]||(t[0]=(...s)=>e.open&&e.open(...s))}," Open "),v(r,{ref:"dialog","animation-mode":!0},{title:i(()=>[x]),footer:i(()=>[o("div",y,[I,o("button",{onClick:t[1]||(t[1]=(...s)=>e.close&&e.close(...s))}," Cancel ")])]),default:i(()=>[(n(),a(l,null,g(20,s=>o("div",{key:s}," Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit odio vero eum vel iusto iure itaque dolor, minima illum, distinctio aliquam fuga obcaecati. Quas delectus dolores officiis perspiciatis ducimus id. ")),64))]),_:1},512)],64)}const D=_(C,[["render",S],["__scopeId","data-v-186013a8"]]);export{D as default}; +import{s as u}from"./index.es-8da2c7aa.js";import{d,a as m,_,r as f,o as n,i as a,k as o,q as v,y as i,F as l,m as g,s as b,x as k}from"./index-9e0334f6.js";const C=d({components:{AnimationDialog:u},setup(){const e=m();return{dialog:e,open:()=>{e.value.open()},close:()=>{e.value.close()}}}});const c=e=>(b("data-v-186013a8"),e=e(),k(),e),x=c(()=>o("div",{class:"title"},[o("select",{value:"1"},[o("option",{value:"1"}," Test1 "),o("option",{value:"2"}," Test2 ")])],-1)),y={class:"footer"},I=c(()=>o("button",null,"Submit",-1));function S(e,t,p,$,h,q){const r=f("AnimationDialog");return n(),a(l,null,[o("button",{class:"btn-open",onClick:t[0]||(t[0]=(...s)=>e.open&&e.open(...s))}," Open "),v(r,{ref:"dialog","animation-mode":!0},{title:i(()=>[x]),footer:i(()=>[o("div",y,[I,o("button",{onClick:t[1]||(t[1]=(...s)=>e.close&&e.close(...s))}," Cancel ")])]),default:i(()=>[(n(),a(l,null,g(20,s=>o("div",{key:s}," Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit odio vero eum vel iusto iure itaque dolor, minima illum, distinctio aliquam fuga obcaecati. Quas delectus dolores officiis perspiciatis ducimus id. ")),64))]),_:1},512)],64)}const D=_(C,[["render",S],["__scopeId","data-v-186013a8"]]);export{D as default}; diff --git a/assets/example5-0c1d7cae.js b/assets/example5-2b0afd4a.js similarity index 92% rename from assets/example5-0c1d7cae.js rename to assets/example5-2b0afd4a.js index 7aa1e8d..4e4d6c7 100644 --- a/assets/example5-0c1d7cae.js +++ b/assets/example5-2b0afd4a.js @@ -1 +1 @@ -import{S as a}from"./index.es-716f6261.js";import{d as l,_ as i,h as d,o as s,i as o,j as n,F as p,m as _,k as t,s as u,x as f}from"./index-e4e05649.js";const m=l({directives:{scroll:a},setup(){return{scrollSetting:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)"}}}});const v=e=>(u("data-v-c9cfdb04"),e=e(),f(),e),h={class:"wrapper"},b=v(()=>t("div",{class:"tips"},"Now observeAutoUpdate default is true, you don't need to call `update()` manual",-1)),x={ref:"scrollBox",class:"scroll-box"};function B(e,g,S,w,k,y){const r=d("scroll");return s(),o("div",h,[b,n((s(),o("div",x,[(s(),o(p,null,_(60,c=>t("p",{key:c,class:"text"},"Change box size from right-bottom arrow...")),64))])),[[r,e.scrollSetting]])])}const $=i(m,[["render",B],["__scopeId","data-v-c9cfdb04"]]);export{$ as default}; +import{S as a}from"./index.es-716f6261.js";import{d as l,_ as i,h as d,o as s,i as o,j as n,F as p,m as _,k as t,s as u,x as f}from"./index-9e0334f6.js";const m=l({directives:{scroll:a},setup(){return{scrollSetting:{scrollBarWidth:8,scrollBarOffsetX:3,scrollBarOffsetY:4,scrollBarThumbColor:"rgb(225, 243, 216)",scrollBarThumbHoverColor:"rgb(200, 243, 199)"}}}});const v=e=>(u("data-v-c9cfdb04"),e=e(),f(),e),h={class:"wrapper"},b=v(()=>t("div",{class:"tips"},"Now observeAutoUpdate default is true, you don't need to call `update()` manual",-1)),x={ref:"scrollBox",class:"scroll-box"};function B(e,g,S,w,k,y){const r=d("scroll");return s(),o("div",h,[b,n((s(),o("div",x,[(s(),o(p,null,_(60,c=>t("p",{key:c,class:"text"},"Change box size from right-bottom arrow...")),64))])),[[r,e.scrollSetting]])])}const $=i(m,[["render",B],["__scopeId","data-v-c9cfdb04"]]);export{$ as default}; diff --git a/assets/example5-792686f7.js b/assets/example5-2b5fb594.js similarity index 89% rename from assets/example5-792686f7.js rename to assets/example5-2b5fb594.js index 8a457ab..a761f7c 100644 --- a/assets/example5-792686f7.js +++ b/assets/example5-2b5fb594.js @@ -1 +1 @@ -import{M as p}from"./index.es-2a6d3cc0.js";import{d as _,j as c,G as m,o as a,i as o,F as b,m as r,k as i,t as u,p as d,_ as g}from"./index-e4e05649.js";const f={class:"box"},x=["data-id"],h={class:"text"},v={key:0},k={key:1},y=_({__name:"example5",setup(M){const n=p,l={useLongPressInMobile:!0,menuHiddenFn:(s,e)=>{var t;return!((t=e==null?void 0:e.getAttribute("class"))!=null&&t.includes("box-listitem"))},menuList:[{label:(s,e)=>`#${e==null?void 0:e.getAttribute("data-id")}`,disabled:!0},{label:"打开",tips:"Open",fn:(...s)=>console.log("open",s),hidden:(s,e)=>["1","5","9"].includes(e==null?void 0:e.getAttribute("data-id"))},{label:"编辑",tips:"Edit",fn:(...s)=>console.log("edit",s),disabled:(s,e)=>["2","4","6"].includes(e==null?void 0:e.getAttribute("data-id"))},{label:"删除",tips:"Delete",fn:(...s)=>console.log("delete",s)},{label:"重命名",tips:"Rename",fn:(...s)=>console.log("rename",s)}]};return(s,e)=>c((a(),o("div",f,[(a(),o(b,null,r(9,t=>i("div",{key:t,class:"box-listitem","data-id":t},[i("p",h,[i("span",null,u(t),1),[1,5,9].includes(t)?(a(),o("span",v,", Hidden Open")):d("",!0),[2,4,6].includes(t)?(a(),o("span",k,", Disabled Edit")):d("",!0)])],8,x)),64))])),[[m(n),l]])}});const B=g(y,[["__scopeId","data-v-2538660a"]]);export{B as default}; +import{M as p}from"./index.es-6d9dc425.js";import{d as _,j as c,G as m,o as a,i as o,F as b,m as r,k as i,t as u,p as d,_ as g}from"./index-9e0334f6.js";const f={class:"box"},x=["data-id"],h={class:"text"},v={key:0},k={key:1},y=_({__name:"example5",setup(M){const n=p,l={useLongPressInMobile:!0,menuHiddenFn:(s,e)=>{var t;return!((t=e==null?void 0:e.getAttribute("class"))!=null&&t.includes("box-listitem"))},menuList:[{label:(s,e)=>`#${e==null?void 0:e.getAttribute("data-id")}`,disabled:!0},{label:"打开",tips:"Open",fn:(...s)=>console.log("open",s),hidden:(s,e)=>["1","5","9"].includes(e==null?void 0:e.getAttribute("data-id"))},{label:"编辑",tips:"Edit",fn:(...s)=>console.log("edit",s),disabled:(s,e)=>["2","4","6"].includes(e==null?void 0:e.getAttribute("data-id"))},{label:"删除",tips:"Delete",fn:(...s)=>console.log("delete",s)},{label:"重命名",tips:"Rename",fn:(...s)=>console.log("rename",s)}]};return(s,e)=>c((a(),o("div",f,[(a(),o(b,null,r(9,t=>i("div",{key:t,class:"box-listitem","data-id":t},[i("p",h,[i("span",null,u(t),1),[1,5,9].includes(t)?(a(),o("span",v,", Hidden Open")):d("",!0),[2,4,6].includes(t)?(a(),o("span",k,", Disabled Edit")):d("",!0)])],8,x)),64))])),[[m(n),l]])}});const B=g(y,[["__scopeId","data-v-2538660a"]]);export{B as default}; diff --git a/assets/example5-18be4b41.js b/assets/example5-88ec16fb.js similarity index 96% rename from assets/example5-18be4b41.js rename to assets/example5-88ec16fb.js index 0ddcadd..633929d 100644 --- a/assets/example5-18be4b41.js +++ b/assets/example5-88ec16fb.js @@ -1 +1 @@ -import{R as f}from"./index.es-724d9dc0.js";import{d as z,a as v,_ as m,h as u,o as a,i as c,k as o,j as p,s as $,x,L as d}from"./index-e4e05649.js";const P=z({directives:{resize:f},setup(){const t=v();return{resize:t,options:{immediate:!0},handleResizeX(e){let s=e.target;s.style.width=`${e.resizeWidthPercent}%`,e.resizeWidthPercent&&(t.value.style.width=`${100-e.resizeWidthPercent}%`)},handleResizeAll(e){let s=e.target,{direction:r}=e;if(r==="right"){let i=e.resizeWidthPercent;s.style.width=`${i}%`}else if(r==="bottom"){let i=e.resizeHeightPercent;s.style.height=`${i}%`}else if(r==="left"){let{moveOffsetPercent:i,resizeWidthPercent:l}=e;s.style.width=`${l}%`,s.style.left=`${i}%`}else if(r==="top"){let{moveOffsetPercent:i,resizeHeightPercent:l}=e;s.style.height=`${l}%`,s.style.top=`${i}%`}}}}});const _=t=>($("data-v-ce8606fe"),t=t(),x(),t),g={class:"page"},y={class:"flex-wrapper"},R=_(()=>o("p",{class:"text"},[d(" Set this box default resize"),o("br"),d("immediate: true ")],-1)),b=[R],w={ref:"resize",class:"box2"},W={class:"outer-box"},S=_(()=>o("p",{class:"text"},[d(" Set this box -> resize:all"),o("br"),d("immediate: true ")],-1)),I=[S];function k(t,e,s,r,i,l){const h=u("resize");return a(),c("div",g,[o("div",y,[p((a(),c("div",{class:"box1",onResize:e[0]||(e[0]=(...n)=>t.handleResizeX&&t.handleResizeX(...n))},b,32)),[[h,t.options]]),o("div",w,null,512)]),o("div",W,[p((a(),c("div",{class:"inner-box",onResize:e[1]||(e[1]=(...n)=>t.handleResizeAll&&t.handleResizeAll(...n))},I,32)),[[h,t.options,"all"]])])])}const D=m(P,[["render",k],["__scopeId","data-v-ce8606fe"]]);export{D as default}; +import{R as f}from"./index.es-724d9dc0.js";import{d as z,a as v,_ as m,h as u,o as a,i as c,k as o,j as p,s as $,x,L as d}from"./index-9e0334f6.js";const P=z({directives:{resize:f},setup(){const t=v();return{resize:t,options:{immediate:!0},handleResizeX(e){let s=e.target;s.style.width=`${e.resizeWidthPercent}%`,e.resizeWidthPercent&&(t.value.style.width=`${100-e.resizeWidthPercent}%`)},handleResizeAll(e){let s=e.target,{direction:r}=e;if(r==="right"){let i=e.resizeWidthPercent;s.style.width=`${i}%`}else if(r==="bottom"){let i=e.resizeHeightPercent;s.style.height=`${i}%`}else if(r==="left"){let{moveOffsetPercent:i,resizeWidthPercent:l}=e;s.style.width=`${l}%`,s.style.left=`${i}%`}else if(r==="top"){let{moveOffsetPercent:i,resizeHeightPercent:l}=e;s.style.height=`${l}%`,s.style.top=`${i}%`}}}}});const _=t=>($("data-v-ce8606fe"),t=t(),x(),t),g={class:"page"},y={class:"flex-wrapper"},R=_(()=>o("p",{class:"text"},[d(" Set this box default resize"),o("br"),d("immediate: true ")],-1)),b=[R],w={ref:"resize",class:"box2"},W={class:"outer-box"},S=_(()=>o("p",{class:"text"},[d(" Set this box -> resize:all"),o("br"),d("immediate: true ")],-1)),I=[S];function k(t,e,s,r,i,l){const h=u("resize");return a(),c("div",g,[o("div",y,[p((a(),c("div",{class:"box1",onResize:e[0]||(e[0]=(...n)=>t.handleResizeX&&t.handleResizeX(...n))},b,32)),[[h,t.options]]),o("div",w,null,512)]),o("div",W,[p((a(),c("div",{class:"inner-box",onResize:e[1]||(e[1]=(...n)=>t.handleResizeAll&&t.handleResizeAll(...n))},I,32)),[[h,t.options,"all"]])])])}const D=m(P,[["render",k],["__scopeId","data-v-ce8606fe"]]);export{D as default}; diff --git a/assets/example5-8f973145.js b/assets/example5-bcf78a0c.js similarity index 91% rename from assets/example5-8f973145.js rename to assets/example5-bcf78a0c.js index 1cec6b3..d795fa2 100644 --- a/assets/example5-8f973145.js +++ b/assets/example5-bcf78a0c.js @@ -1 +1 @@ -import{a as h}from"./index.es-4377725c.js";import{d as D,a as l,_ as T,h as y,o as m,i as c,k as s,D as w,j as C,L as E,F as R,s as S,x as B}from"./index-e4e05649.js";const b=D({directives:{"to-drag":h},setup(){const e=l(0),o=l();return{rotate:e,compass:o,options:{immediateEvent:!0,forbidBodyScroll:!1},setCompassRotate(n){const{top:r,left:d,width:i,height:a}=o.value.getBoundingClientRect(),t=[d-i/2,r-a/2],{top:u,left:g,width:v,height:f}=n,p=[g-v/2,u-f/2],_=Math.atan2(p[1]-t[1],p[0]-t[0])/Math.PI*180;e.value=_+90},handleToDragStart(){document.body.style.overflow="hidden"},handleToDragEnd(){document.body.style.overflow="visible"}}}}),F=""+new URL("../images/compass.svg",import.meta.url).href;const I=e=>(S("data-v-92cf834f"),e=e(),B(),e),$=I(()=>s("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),k={class:"compass-box"},x={ref:"compass",src:F,alt:"compass",class:"compass"};function L(e,o,n,r,d,i){const a=y("to-drag");return m(),c(R,null,[$,s("div",k,[s("div",{class:"img-wrapper",style:w({transform:`rotate(${e.rotate}deg)`})},[s("img",x,null,512)],4)]),C((m(),c("div",{class:"move-box",onTodraginit:o[0]||(o[0]=(...t)=>e.setCompassRotate&&e.setCompassRotate(...t)),onTodragstart:o[1]||(o[1]=(...t)=>e.handleToDragStart&&e.handleToDragStart(...t)),onTodragmove:o[2]||(o[2]=(...t)=>e.setCompassRotate&&e.setCompassRotate(...t)),onTodragend:o[3]||(o[3]=(...t)=>e.handleToDragEnd&&e.handleToDragEnd(...t))},[E(" DRAG ")],32)),[[a,e.options]])],64)}const M=T(b,[["render",L],["__scopeId","data-v-92cf834f"]]);export{M as default}; +import{a as h}from"./index.es-de103fbd.js";import{d as D,a as l,_ as T,h as y,o as m,i as c,k as s,D as w,j as C,L as E,F as R,s as S,x as B}from"./index-9e0334f6.js";const b=D({directives:{"to-drag":h},setup(){const e=l(0),o=l();return{rotate:e,compass:o,options:{immediateEvent:!0,forbidBodyScroll:!1},setCompassRotate(n){const{top:r,left:d,width:i,height:a}=o.value.getBoundingClientRect(),t=[d-i/2,r-a/2],{top:u,left:g,width:v,height:f}=n,p=[g-v/2,u-f/2],_=Math.atan2(p[1]-t[1],p[0]-t[0])/Math.PI*180;e.value=_+90},handleToDragStart(){document.body.style.overflow="hidden"},handleToDragEnd(){document.body.style.overflow="visible"}}}}),F=""+new URL("../images/compass.svg",import.meta.url).href;const I=e=>(S("data-v-92cf834f"),e=e(),B(),e),$=I(()=>s("div",{class:"text"}," 请拖拽屏幕上的紫色浮块 ",-1)),k={class:"compass-box"},x={ref:"compass",src:F,alt:"compass",class:"compass"};function L(e,o,n,r,d,i){const a=y("to-drag");return m(),c(R,null,[$,s("div",k,[s("div",{class:"img-wrapper",style:w({transform:`rotate(${e.rotate}deg)`})},[s("img",x,null,512)],4)]),C((m(),c("div",{class:"move-box",onTodraginit:o[0]||(o[0]=(...t)=>e.setCompassRotate&&e.setCompassRotate(...t)),onTodragstart:o[1]||(o[1]=(...t)=>e.handleToDragStart&&e.handleToDragStart(...t)),onTodragmove:o[2]||(o[2]=(...t)=>e.setCompassRotate&&e.setCompassRotate(...t)),onTodragend:o[3]||(o[3]=(...t)=>e.handleToDragEnd&&e.handleToDragEnd(...t))},[E(" DRAG ")],32)),[[a,e.options]])],64)}const M=T(b,[["render",L],["__scopeId","data-v-92cf834f"]]);export{M as default}; diff --git a/assets/example6-45683b2c.js b/assets/example6-488a4518.js similarity index 75% rename from assets/example6-45683b2c.js rename to assets/example6-488a4518.js index 8e95d93..0a654a0 100644 --- a/assets/example6-45683b2c.js +++ b/assets/example6-488a4518.js @@ -1 +1 @@ -import{a as r}from"./index.es-4377725c.js";import{d as a,_ as i,h as n,o as e,i as t,L as o,j as c}from"./index-e4e05649.js";const _=a({directives:{"to-drag":r},setup(){return{options:{isAbsolute:!0,needComputeBorder:!0}}}});const d={class:"wrapper"},p={class:"move-box"};function l(s,D,m,v,f,x){const u=n("to-drag");return e(),t("div",d,[o(" Absolute模式: 控制absolute拖拽元素只允许在其父元素下进行拖拽. "),c((e(),t("div",p,[o(" DRAG ")])),[[u,s.options]])])}const g=i(_,[["render",l]]);export{g as default}; +import{a as r}from"./index.es-de103fbd.js";import{d as a,_ as i,h as n,o as e,i as t,L as o,j as c}from"./index-9e0334f6.js";const _=a({directives:{"to-drag":r},setup(){return{options:{isAbsolute:!0,needComputeBorder:!0}}}});const d={class:"wrapper"},p={class:"move-box"};function l(s,D,m,v,f,x){const u=n("to-drag");return e(),t("div",d,[o(" Absolute模式: 控制absolute拖拽元素只允许在其父元素下进行拖拽. "),c((e(),t("div",p,[o(" DRAG ")])),[[u,s.options]])])}const g=i(_,[["render",l]]);export{g as default}; diff --git a/assets/example6-36cb8c6c.js b/assets/example6-bb6f2546.js similarity index 89% rename from assets/example6-36cb8c6c.js rename to assets/example6-bb6f2546.js index 33dd626..77f8f96 100644 --- a/assets/example6-36cb8c6c.js +++ b/assets/example6-bb6f2546.js @@ -1 +1 @@ -import{M as d}from"./index.es-2a6d3cc0.js";import{a as _}from"./global-56066e04.js";import{d as f,a as m,z as h,o as r,i as c,F as x,m as g,s as v,x as b,k as e,j as M,G as y,t as l,_ as S}from"./index-e4e05649.js";const I=n=>(v("data-v-a8ec378c"),n=n(),b(),n),k={class:"easy"},w=I(()=>e("tr",null,[e("th",null,"#"),e("th",null,"用户名"),e("th",null,"性别"),e("th",null,"职位"),e("th",null,"生日")],-1)),D=f({__name:"example6",setup(n){const p=m([]);h(async()=>{const s=await fetch(`${_}/page?page=1&pageSize=30`),{data:t,errCode:a}=await s.json();a===200&&(p.value=t.items.map(o=>(o.sex=o.sex===1?"男":"女",o)))});const u=d,i={useLongPressInMobile:!0,menuList:[{label:s=>`#${s.userName}`,disabled:!0},{label:"编辑",tips:"Edit",fn:(s,...t)=>console.log("edit",s,t)},{label:"停用",tips:"Stop",fn:(s,...t)=>console.log("stop",s,t)},{label:"删除",tips:"Delete",fn:(s,...t)=>console.log("delete",s,t)}]};return(s,t)=>(r(),c("table",k,[w,(r(!0),c(x,null,g(p.value,(a,o)=>M((r(),c("tr",{key:a.id},[e("td",null,l(o+1),1),e("td",null,l(a.userName),1),e("td",null,l(a.sex),1),e("td",null,l(a.position),1),e("td",null,l(a.birth),1)])),[[y(u),{params:a,...i}]])),128))]))}});const j=S(D,[["__scopeId","data-v-a8ec378c"]]);export{j as default}; +import{M as d}from"./index.es-6d9dc425.js";import{a as _}from"./global-56066e04.js";import{d as f,a as m,z as h,o as r,i as c,F as x,m as g,s as v,x as b,k as e,j as M,G as y,t as l,_ as S}from"./index-9e0334f6.js";const I=n=>(v("data-v-a8ec378c"),n=n(),b(),n),k={class:"easy"},w=I(()=>e("tr",null,[e("th",null,"#"),e("th",null,"用户名"),e("th",null,"性别"),e("th",null,"职位"),e("th",null,"生日")],-1)),D=f({__name:"example6",setup(n){const p=m([]);h(async()=>{const s=await fetch(`${_}/page?page=1&pageSize=30`),{data:t,errCode:a}=await s.json();a===200&&(p.value=t.items.map(o=>(o.sex=o.sex===1?"男":"女",o)))});const u=d,i={useLongPressInMobile:!0,menuList:[{label:s=>`#${s.userName}`,disabled:!0},{label:"编辑",tips:"Edit",fn:(s,...t)=>console.log("edit",s,t)},{label:"停用",tips:"Stop",fn:(s,...t)=>console.log("stop",s,t)},{label:"删除",tips:"Delete",fn:(s,...t)=>console.log("delete",s,t)}]};return(s,t)=>(r(),c("table",k,[w,(r(!0),c(x,null,g(p.value,(a,o)=>M((r(),c("tr",{key:a.id},[e("td",null,l(o+1),1),e("td",null,l(a.userName),1),e("td",null,l(a.sex),1),e("td",null,l(a.position),1),e("td",null,l(a.birth),1)])),[[y(u),{params:a,...i}]])),128))]))}});const j=S(D,[["__scopeId","data-v-a8ec378c"]]);export{j as default}; diff --git a/assets/example7-f7dfa1df.js b/assets/example7-cb19db6e.js similarity index 91% rename from assets/example7-f7dfa1df.js rename to assets/example7-cb19db6e.js index 7f44c2c..4b5a2e7 100644 --- a/assets/example7-f7dfa1df.js +++ b/assets/example7-cb19db6e.js @@ -1 +1 @@ -import{d as g,a as r,e as D,o as v,i as b,k as o,j as a,v as _,G as k,t as L,F as M,s as y,x as I,_ as w}from"./index-e4e05649.js";import{M as S}from"./index.es-2a6d3cc0.js";const m=t=>(y("data-v-f53a9c4f"),t=t(),I(),t),V=m(()=>o("label",{for:"m-disabled"},"Disbaled",-1)),B=m(()=>o("label",{for:"m-changeLabel"},"Change Label",-1)),C=m(()=>o("label",{for:"m-hiddenDivider"},"Hidden Divider",-1)),E={class:"box"},U={class:"text"},F=g({__name:"example7",setup(t){const f=S,i=r(!1),d=r(!1),c=r(!1),u={en:{open:"Open",edit:"Edit",delete:"Delete"},cn:{open:"打开",edit:"编辑",delete:"删除"}},p=D(()=>d.value?"en":"cn"),h={disabled:()=>i.value,params:{a:1},useLongPressInMobile:!0,menuWidth:120,menuList:[{label:()=>u[p.value].open,fn:(s,e,l,n)=>console.log("open",s,e,l,n)},{label:()=>u[p.value].edit,fn:(s,e,l,n)=>console.log("edit",s,e,l,n)},{line:!0,hidden:()=>c.value},{label:()=>u[p.value].delete,fn:(s,e,l,n)=>console.log("delete",s,e,l,n)}]},x="ontouchstart"in window;return(s,e)=>(v(),b(M,null,[o("p",null,[a(o("input",{id:"m-disabled","onUpdate:modelValue":e[0]||(e[0]=l=>i.value=l),type:"checkbox"},null,512),[[_,i.value]]),V]),o("p",null,[a(o("input",{id:"m-changeLabel","onUpdate:modelValue":e[1]||(e[1]=l=>d.value=l),type:"checkbox"},null,512),[[_,d.value]]),B]),o("p",null,[a(o("input",{id:"m-hiddenDivider","onUpdate:modelValue":e[2]||(e[2]=l=>c.value=l),type:"checkbox"},null,512),[[_,c.value]]),C]),a((v(),b("div",E,[o("p",U,L(x?"Long press this box":"Right click this box")+". ",1)])),[[k(f),h]])],64))}});const G=w(F,[["__scopeId","data-v-f53a9c4f"]]);export{G as default}; +import{d as g,a as r,e as D,o as v,i as b,k as o,j as a,v as _,G as k,t as L,F as M,s as y,x as I,_ as w}from"./index-9e0334f6.js";import{M as S}from"./index.es-6d9dc425.js";const m=t=>(y("data-v-f53a9c4f"),t=t(),I(),t),V=m(()=>o("label",{for:"m-disabled"},"Disbaled",-1)),B=m(()=>o("label",{for:"m-changeLabel"},"Change Label",-1)),C=m(()=>o("label",{for:"m-hiddenDivider"},"Hidden Divider",-1)),E={class:"box"},U={class:"text"},F=g({__name:"example7",setup(t){const f=S,i=r(!1),d=r(!1),c=r(!1),u={en:{open:"Open",edit:"Edit",delete:"Delete"},cn:{open:"打开",edit:"编辑",delete:"删除"}},p=D(()=>d.value?"en":"cn"),h={disabled:()=>i.value,params:{a:1},useLongPressInMobile:!0,menuWidth:120,menuList:[{label:()=>u[p.value].open,fn:(s,e,l,n)=>console.log("open",s,e,l,n)},{label:()=>u[p.value].edit,fn:(s,e,l,n)=>console.log("edit",s,e,l,n)},{line:!0,hidden:()=>c.value},{label:()=>u[p.value].delete,fn:(s,e,l,n)=>console.log("delete",s,e,l,n)}]},x="ontouchstart"in window;return(s,e)=>(v(),b(M,null,[o("p",null,[a(o("input",{id:"m-disabled","onUpdate:modelValue":e[0]||(e[0]=l=>i.value=l),type:"checkbox"},null,512),[[_,i.value]]),V]),o("p",null,[a(o("input",{id:"m-changeLabel","onUpdate:modelValue":e[1]||(e[1]=l=>d.value=l),type:"checkbox"},null,512),[[_,d.value]]),B]),o("p",null,[a(o("input",{id:"m-hiddenDivider","onUpdate:modelValue":e[2]||(e[2]=l=>c.value=l),type:"checkbox"},null,512),[[_,c.value]]),C]),a((v(),b("div",E,[o("p",U,L(x?"Long press this box":"Right click this box")+". ",1)])),[[k(f),h]])],64))}});const G=w(F,[["__scopeId","data-v-f53a9c4f"]]);export{G as default}; diff --git a/assets/home-ced92c79.js b/assets/home-ddc17b92.js similarity index 97% rename from assets/home-ced92c79.js rename to assets/home-ddc17b92.js index 942cd6b..b44857a 100644 --- a/assets/home-ced92c79.js +++ b/assets/home-ddc17b92.js @@ -1,4 +1,4 @@ -import{R as t}from"./ReadmeFrame-190e96cc.js";import{d as s,_ as a,r,o as h,i as l,q as d}from"./index-e4e05649.js";const n=`

Howdyjs

+import{R as t}from"./ReadmeFrame-647e57d6.js";import{d as s,_ as a,r,o as h,i as l,q as d}from"./index-9e0334f6.js";const n=`

Howdyjs

diff --git a/assets/index-64b6c977.js b/assets/index-20f97442.js similarity index 82% rename from assets/index-64b6c977.js rename to assets/index-20f97442.js index 2ee2c1a..48628e3 100644 --- a/assets/index-64b6c977.js +++ b/assets/index-20f97442.js @@ -1 +1 @@ -import{E as m}from"./ExampleFrame-00387080.js";import{d as n,_ as o,r as t,o as r,c as i}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=n({components:{ExampleFrame:m},setup(){return{mainName:"img-zoom",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Group",introduce:"分组切换图片"},{name:"Custom Loading",introduce:"自定义Loading"}]}}});function p(e,c,d,l,u,f){const a=t("example-frame");return r(),i(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=o(s,[["render",p]]);export{$ as default}; +import{E as m}from"./ExampleFrame-6afa260f.js";import{d as n,_ as o,r as t,o as r,c as i}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=n({components:{ExampleFrame:m},setup(){return{mainName:"img-zoom",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Group",introduce:"分组切换图片"},{name:"Custom Loading",introduce:"自定义Loading"}]}}});function p(e,c,d,l,u,f){const a=t("example-frame");return r(),i(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=o(s,[["render",p]]);export{$ as default}; diff --git a/assets/index-9098e37a.js b/assets/index-30cfcab8.js similarity index 85% rename from assets/index-9098e37a.js rename to assets/index-30cfcab8.js index d8bea0b..84598b4 100644 --- a/assets/index-9098e37a.js +++ b/assets/index-30cfcab8.js @@ -1 +1 @@ -import{E as a}from"./ExampleFrame-00387080.js";import{d as m,_ as o,r as t,o as r,c as s}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=m({components:{ExampleFrame:a},setup(){return{mainName:"mouse-menu",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"基础菜单"},{name:"Sub Menu",introduce:"二级菜单"},{name:"Icon",introduce:"使用图标"},{name:"Custom Style",introduce:"自定义样式"},{name:"Parent Mount",introduce:"父级挂载"},{name:"Custom params",introduce:"传递参数"},{name:"Dynamic",introduce:"动态参数"}]}}});function c(e,p,u,d,l,f){const n=t("example-frame");return r(),s(n,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const L=o(i,[["render",c]]);export{L as default}; +import{E as a}from"./ExampleFrame-6afa260f.js";import{d as m,_ as o,r as t,o as r,c as s}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=m({components:{ExampleFrame:a},setup(){return{mainName:"mouse-menu",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"基础菜单"},{name:"Sub Menu",introduce:"二级菜单"},{name:"Icon",introduce:"使用图标"},{name:"Custom Style",introduce:"自定义样式"},{name:"Parent Mount",introduce:"父级挂载"},{name:"Custom params",introduce:"传递参数"},{name:"Dynamic",introduce:"动态参数"}]}}});function c(e,p,u,d,l,f){const n=t("example-frame");return r(),s(n,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const L=o(i,[["render",c]]);export{L as default}; diff --git a/assets/index-96434926.js b/assets/index-362c388e.js similarity index 85% rename from assets/index-96434926.js rename to assets/index-362c388e.js index 962ee9f..51a73d7 100644 --- a/assets/index-96434926.js +++ b/assets/index-362c388e.js @@ -1 +1 @@ -import{E as a}from"./ExampleFrame-00387080.js";import{d as o,_ as t,r as m,o as r,c as s}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=o({components:{ExampleFrame:a},setup(){return{mainName:"to-drag",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Adsorb Mode1",introduce:"左右吸附"},{name:"Adsorb Mode2",introduce:"四方向吸附"},{name:"Other Options",introduce:"其他配置"},{name:"Drag End Event",introduce:"事件回调"},{name:"Absoulte Mode",introduce:"Absolute模式"}]}}});function d(e,p,c,l,u,f){const n=m("example-frame");return r(),s(n,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const b=t(i,[["render",d]]);export{b as default}; +import{E as a}from"./ExampleFrame-6afa260f.js";import{d as o,_ as t,r as m,o as r,c as s}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=o({components:{ExampleFrame:a},setup(){return{mainName:"to-drag",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Adsorb Mode1",introduce:"左右吸附"},{name:"Adsorb Mode2",introduce:"四方向吸附"},{name:"Other Options",introduce:"其他配置"},{name:"Drag End Event",introduce:"事件回调"},{name:"Absoulte Mode",introduce:"Absolute模式"}]}}});function d(e,p,c,l,u,f){const n=m("example-frame");return r(),s(n,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const b=t(i,[["render",d]]);export{b as default}; diff --git a/assets/index-8bc616e8.js b/assets/index-6989a1bf.js similarity index 83% rename from assets/index-8bc616e8.js rename to assets/index-6989a1bf.js index 101e68d..49223a2 100644 --- a/assets/index-8bc616e8.js +++ b/assets/index-6989a1bf.js @@ -1 +1 @@ -import{E as a}from"./ExampleFrame-00387080.js";import{d as o,_ as m,r as t,o as r,c as i}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=o({components:{ExampleFrame:a},setup(){return{mainName:"to-control",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Fixed",introduce:"Fixed定位"},{name:"Absolute",introduce:"Absolute定位"},{name:"Vue Directive",introduce:"Vue指令方式"},{name:"Custom Icon",introduce:"自定义图标"}]}}});function p(e,c,l,d,u,f){const n=t("example-frame");return r(),i(n,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=m(s,[["render",p]]);export{$ as default}; +import{E as a}from"./ExampleFrame-6afa260f.js";import{d as o,_ as m,r as t,o as r,c as i}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=o({components:{ExampleFrame:a},setup(){return{mainName:"to-control",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Fixed",introduce:"Fixed定位"},{name:"Absolute",introduce:"Absolute定位"},{name:"Vue Directive",introduce:"Vue指令方式"},{name:"Custom Icon",introduce:"自定义图标"}]}}});function p(e,c,l,d,u,f){const n=t("example-frame");return r(),i(n,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=m(s,[["render",p]]);export{$ as default}; diff --git a/assets/index-9308441e.js b/assets/index-8fe8769d.js similarity index 80% rename from assets/index-9308441e.js rename to assets/index-8fe8769d.js index b34d335..b800702 100644 --- a/assets/index-9308441e.js +++ b/assets/index-8fe8769d.js @@ -1 +1 @@ -import{E as m}from"./ExampleFrame-00387080.js";import{d as n,_ as o,r,o as t,c as s}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=n({components:{ExampleFrame:m},setup(){return{mainName:"size-observer",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Options",introduce:"配置"}]}}});function p(e,c,l,d,f,u){const a=r("example-frame");return t(),s(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=o(i,[["render",p]]);export{$ as default}; +import{E as m}from"./ExampleFrame-6afa260f.js";import{d as n,_ as o,r,o as t,c as s}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=n({components:{ExampleFrame:m},setup(){return{mainName:"size-observer",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Options",introduce:"配置"}]}}});function p(e,c,l,d,f,u){const a=r("example-frame");return t(),s(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=o(i,[["render",p]]);export{$ as default}; diff --git a/assets/index-36310845.js b/assets/index-98c39396.js similarity index 80% rename from assets/index-36310845.js rename to assets/index-98c39396.js index 980f0a9..95543a4 100644 --- a/assets/index-36310845.js +++ b/assets/index-98c39396.js @@ -1 +1 @@ -import{E as m}from"./ExampleFrame-00387080.js";import{d as n,_ as t,r as o,o as r,c as s}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=n({components:{ExampleFrame:m},setup(){return{mainName:"standard-tabs",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Fixed",introduce:"固定标签栏"}]}}});function p(e,c,d,l,f,u){const a=o("example-frame");return r(),s(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=t(i,[["render",p]]);export{$ as default}; +import{E as m}from"./ExampleFrame-6afa260f.js";import{d as n,_ as t,r as o,o as r,c as s}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=n({components:{ExampleFrame:m},setup(){return{mainName:"standard-tabs",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Fixed",introduce:"固定标签栏"}]}}});function p(e,c,d,l,f,u){const a=o("example-frame");return r(),s(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=t(i,[["render",p]]);export{$ as default}; diff --git a/assets/index-9e0334f6.js b/assets/index-9e0334f6.js new file mode 100644 index 0000000..cd917c8 --- /dev/null +++ b/assets/index-9e0334f6.js @@ -0,0 +1,21 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** +* @vue/shared v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function rr(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const ne={},gt=[],be=()=>{},ri=()=>!1,pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sr=e=>e.startsWith("onUpdate:"),fe=Object.assign,or=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},si=Object.prototype.hasOwnProperty,k=(e,t)=>si.call(e,t),D=Array.isArray,_t=e=>zt(e)==="[object Map]",hn=e=>zt(e)==="[object Set]",Ir=e=>zt(e)==="[object Date]",H=e=>typeof e=="function",re=e=>typeof e=="string",Ne=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",Is=e=>(X(e)||H(e))&&H(e.then)&&H(e.catch),Ls=Object.prototype.toString,zt=e=>Ls.call(e),oi=e=>zt(e).slice(8,-1),Ms=e=>zt(e)==="[object Object]",ir=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,It=rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ii=/-(\w)/g,Te=mn(e=>e.replace(ii,(t,n)=>n?n.toUpperCase():"")),li=/\B([A-Z])/g,ft=mn(e=>e.replace(li,"-$1").toLowerCase()),gn=mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cn=mn(e=>e?`on${gn(e)}`:""),Ze=(e,t)=>!Object.is(e,t),tn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ci=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Lr;const Ds=()=>Lr||(Lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lr(e){if(D(e)){const t={};for(let n=0;n{if(n){const r=n.split(fi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function cr(e){let t="";if(re(e))t=e;else if(D(e))for(let n=0;n_n(n,t))}const Ns=e=>!!(e&&e.__v_isRef===!0),gi=e=>re(e)?e:e==null?"":D(e)||X(e)&&(e.toString===Ls||!H(e.toString))?Ns(e)?gi(e.value):JSON.stringify(e,js,2):String(e),js=(e,t)=>Ns(t)?js(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Tn(r,o)+" =>"]=s,n),{})}:hn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Tn(n))}:Ne(t)?Tn(t):X(t)&&!D(t)&&!Ms(t)?String(t):t,Tn=(e,t="")=>{var n;return Ne(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Pe;class _i{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}}on(){Pe=this}off(){Pe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),nt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ye,n=lt;try{return Ye=!0,lt=this,this._runnings++,Mr(this),this.fn()}finally{Vr(this),this._runnings--,lt=n,Ye=t}}stop(){this.active&&(Mr(this),Vr(this),this.onStop&&this.onStop(),this.active=!1)}}function Ei(e){return e.value}function Mr(e){e._trackId++,e._depsLength=0}function Vr(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Un=new WeakMap,ct=Symbol(""),kn=Symbol("");function ge(e,t,n){if(Ye&<){let r=Un.get(e);r||Un.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=ks(()=>r.delete(n))),Ks(lt,s)}}function Ke(e,t,n,r,s,o){const i=Un.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&D(e)){const c=Number(r);i.forEach((a,d)=>{(d==="length"||!Ne(d)&&d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":D(e)?ir(n)&&l.push(i.get("length")):(l.push(i.get(ct)),_t(e)&&l.push(i.get(kn)));break;case"delete":D(e)||(l.push(i.get(ct)),_t(e)&&l.push(i.get(kn)));break;case"set":_t(e)&&l.push(i.get(ct));break}fr();for(const c of l)c&&Us(c,4);ar()}const bi=rr("__proto__,__v_isRef,__isVue"),zs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ne)),Dr=xi();function xi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Q(this);for(let o=0,i=this.length;o{e[t]=function(...n){tt(),fr();const r=Q(this)[t].apply(this,n);return ar(),nt(),r}}),e}function Ri(e){Ne(e)||(e=String(e));const t=Q(this);return ge(t,"has",e),t.hasOwnProperty(e)}class Ws{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?$i:Js:o?Qs:Gs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=D(t);if(!s){if(i&&k(Dr,n))return Reflect.get(Dr,n,r);if(n==="hasOwnProperty")return Ri}const l=Reflect.get(t,n,r);return(Ne(n)?zs.has(n):bi(n))||(s||ge(t,"get",n),o)?l:_e(l)?i&&ir(n)?l:l.value:X(l)?s?Xs(l):vn(l):l}}class qs extends Ws{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=ut(o);if(!bt(r)&&!ut(r)&&(o=Q(o),r=Q(r)),!D(t)&&_e(o)&&!_e(r))return c?!1:(o.value=r,!0)}const i=D(t)&&ir(n)?Number(n)e,yn=e=>Reflect.getPrototypeOf(e);function Gt(e,t,n=!1,r=!1){e=e.__v_raw;const s=Q(e),o=Q(t);n||(Ze(t,o)&&ge(s,"get",t),ge(s,"get",o));const{has:i}=yn(s),l=r?dr:n?mr:jt;if(i.call(s,t))return l(e.get(t));if(i.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function Qt(e,t=!1){const n=this.__v_raw,r=Q(n),s=Q(e);return t||(Ze(e,s)&&ge(r,"has",e),ge(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Jt(e,t=!1){return e=e.__v_raw,!t&&ge(Q(e),"iterate",ct),Reflect.get(e,"size",e)}function $r(e,t=!1){!t&&!bt(e)&&!ut(e)&&(e=Q(e));const n=Q(this);return yn(n).has.call(n,e)||(n.add(e),Ke(n,"add",e,e)),this}function Fr(e,t,n=!1){!n&&!bt(t)&&!ut(t)&&(t=Q(t));const r=Q(this),{has:s,get:o}=yn(r);let i=s.call(r,e);i||(e=Q(e),i=s.call(r,e));const l=o.call(r,e);return r.set(e,t),i?Ze(t,l)&&Ke(r,"set",e,t):Ke(r,"add",e,t),this}function Nr(e){const t=Q(this),{has:n,get:r}=yn(t);let s=n.call(t,e);s||(e=Q(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ke(t,"delete",e,void 0),o}function jr(){const e=Q(this),t=e.size!==0,n=e.clear();return t&&Ke(e,"clear",void 0,void 0),n}function Yt(e,t){return function(r,s){const o=this,i=o.__v_raw,l=Q(i),c=t?dr:e?mr:jt;return!e&&ge(l,"iterate",ct),i.forEach((a,d)=>r.call(s,c(a),c(d),o))}}function Xt(e,t,n){return function(...r){const s=this.__v_raw,o=Q(s),i=_t(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=s[e](...r),d=n?dr:t?mr:jt;return!t&&ge(o,"iterate",c?kn:ct),{next(){const{value:p,done:h}=a.next();return h?{value:p,done:h}:{value:l?[d(p[0]),d(p[1])]:d(p),done:h}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Si(){const e={get(o){return Gt(this,o)},get size(){return Jt(this)},has:Qt,add:$r,set:Fr,delete:Nr,clear:jr,forEach:Yt(!1,!1)},t={get(o){return Gt(this,o,!1,!0)},get size(){return Jt(this)},has:Qt,add(o){return $r.call(this,o,!0)},set(o,i){return Fr.call(this,o,i,!0)},delete:Nr,clear:jr,forEach:Yt(!1,!0)},n={get(o){return Gt(this,o,!0)},get size(){return Jt(this,!0)},has(o){return Qt.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:Yt(!0,!1)},r={get(o){return Gt(this,o,!0,!0)},get size(){return Jt(this,!0)},has(o){return Qt.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:Yt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Xt(o,!1,!1),n[o]=Xt(o,!0,!1),t[o]=Xt(o,!1,!0),r[o]=Xt(o,!0,!0)}),[e,n,t,r]}const[Ci,Ti,Ii,Li]=Si();function pr(e,t){const n=t?e?Li:Ii:e?Ti:Ci;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(k(n,s)&&s in r?n:r,s,o)}const Mi={get:pr(!1,!1)},Vi={get:pr(!1,!0)},Di={get:pr(!0,!1)};const Gs=new WeakMap,Qs=new WeakMap,Js=new WeakMap,$i=new WeakMap;function Fi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ni(e){return e.__v_skip||!Object.isExtensible(e)?0:Fi(oi(e))}function vn(e){return ut(e)?e:hr(e,!1,Pi,Mi,Gs)}function Ys(e){return hr(e,!1,Ai,Vi,Qs)}function Xs(e){return hr(e,!0,Oi,Di,Js)}function hr(e,t,n,r,s){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Ni(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function Lt(e){return ut(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function bt(e){return!!(e&&e.__v_isShallow)}function Zs(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function ji(e){return Object.isExtensible(e)&&Vs(e,"__v_skip",!0),e}const jt=e=>X(e)?vn(e):e,mr=e=>X(e)?Xs(e):e;class eo{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ur(()=>t(this._value),()=>nn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=Q(this);return(!t._cacheable||t.effect.dirty)&&Ze(t._value,t._value=t.effect.run())&&nn(t,4),to(t),t.effect._dirtyLevel>=2&&nn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Hi(e,t,n=!1){let r,s;const o=H(e);return o?(r=e,s=be):(r=e.get,s=e.set),new eo(r,s,o||!s,n)}function to(e){var t;Ye&<&&(e=Q(e),Ks(lt,(t=e.dep)!=null?t:e.dep=ks(()=>e.dep=void 0,e instanceof eo?e:void 0)))}function nn(e,t=4,n,r){e=Q(e);const s=e.dep;s&&Us(s,t)}function _e(e){return!!(e&&e.__v_isRef===!0)}function Bi(e){return no(e,!1)}function Ki(e){return no(e,!0)}function no(e,t){return _e(e)?e:new Ui(e,t)}class Ui{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Q(t),this._value=n?t:jt(t)}get value(){return to(this),this._value}set value(t){const n=this.__v_isShallow||bt(t)||ut(t);t=n?t:Q(t),Ze(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:jt(t),nn(this,4))}}function yt(e){return _e(e)?e.value:e}const ki={get:(e,t,n)=>yt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return _e(s)&&!_e(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ro(e){return Lt(e)?e:new Proxy(e,ki)}/** +* @vue/runtime-core v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Xe(e,t,n,r){try{return r?e(...r):e()}catch(s){En(s,t,n)}}function Se(e,t,n,r){if(H(e)){const s=Xe(e,t,n,r);return s&&Is(s)&&s.catch(o=>{En(o,t,n)}),s}if(D(e)){const s=[];for(let o=0;o>>1,s=ce[r],o=Bt(s);oFe&&ce.splice(t,1)}function Gi(e){D(e)?vt.push(...e):(!qe||!qe.includes(e,e.allowRecurse?it+1:it))&&vt.push(e),io()}function Hr(e,t,n=Ht?Fe+1:0){for(;nBt(n)-Bt(r));if(vt.length=0,qe){qe.push(...t);return}for(qe=t,it=0;ite.id==null?1/0:e.id,Qi=(e,t)=>{const n=Bt(e)-Bt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function co(e){zn=!1,Ht=!0,ce.sort(Qi);const t=be;try{for(Fe=0;Fe{r._d&&Yr(-1);const o=cn(t);let i;try{i=e(...s)}finally{cn(o),r._d&&Yr(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function ku(e,t){if(le===null)return e;const n=On(le),r=e.dirs||(e.dirs=[]);for(let s=0;sfe({name:e.name},t,{setup:e}))():e}const Mt=e=>!!e.type.__asyncLoader,ao=e=>e.type.__isKeepAlive;function Yi(e,t){po(e,"a",t)}function Xi(e,t){po(e,"da",t)}function po(e,t,n=ue){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(xn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ao(s.parent.vnode)&&Zi(r,t,n,s),s=s.parent}}function Zi(e,t,n,r){const s=xn(t,e,r,!0);ho(()=>{or(r[t],s)},n)}function xn(e,t,n=ue,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{tt();const l=Wt(n),c=Se(t,n,e,i);return l(),nt(),c});return r?s.unshift(o):s.push(o),o}}const Ue=e=>(t,n=ue)=>{(!Pn||e==="sp")&&xn(e,(...r)=>t(...r),n)},el=Ue("bm"),tl=Ue("m"),nl=Ue("bu"),rl=Ue("u"),sl=Ue("bum"),ho=Ue("um"),ol=Ue("sp"),il=Ue("rtg"),ll=Ue("rtc");function cl(e,t=ue){xn("ec",e,t)}const yr="components",ul="directives";function fl(e,t){return vr(yr,e,!0,t)||e}const mo=Symbol.for("v-ndc");function zu(e){return re(e)?vr(yr,e,!1)||e:e||mo}function Wu(e){return vr(ul,e)}function vr(e,t,n=!0,r=!1){const s=le||ue;if(s){const o=s.type;if(e===yr){const l=tc(o,!1);if(l&&(l===t||l===Te(t)||l===gn(Te(t))))return o}const i=Br(s[e]||o[e],t)||Br(s.appContext[e],t);return!i&&r?o:i}}function Br(e,t){return e&&(e[t]||e[Te(t)]||e[gn(Te(t))])}function qu(e,t,n,r){let s;const o=n&&n[r];if(D(e)||re(e)){s=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;l{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function Qu(e,t,n={},r,s){if(le.isCE||le.parent&&Mt(le.parent)&&le.parent.isCE)return t!=="default"&&(n.name=t),me("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),Rr();const i=o&&go(o(n)),l=wr(Oe,{key:(n.key||i&&i.key||`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function go(e){return e.some(t=>fn(t)?!(t.type===et||t.type===Oe&&!go(t.children)):!0)?e:null}const Wn=e=>e?No(e)?On(e):Wn(e.parent):null,Vt=fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Wn(e.parent),$root:e=>Wn(e.root),$emit:e=>e.emit,$options:e=>Er(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,_r(e.update)}),$nextTick:e=>e.n||(e.n=oo.bind(e.proxy)),$watch:e=>Vl.bind(e)}),In=(e,t)=>e!==ne&&!e.__isScriptSetup&&k(e,t),al={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(In(r,t))return i[t]=1,r[t];if(s!==ne&&k(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&k(a,t))return i[t]=3,o[t];if(n!==ne&&k(n,t))return i[t]=4,n[t];qn&&(i[t]=0)}}const d=Vt[t];let p,h;if(d)return t==="$attrs"&&ge(e.attrs,"get",""),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==ne&&k(n,t))return i[t]=4,n[t];if(h=c.config.globalProperties,k(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return In(s,t)?(s[t]=n,!0):r!==ne&&k(r,t)?(r[t]=n,!0):k(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==ne&&k(e,i)||In(t,i)||(l=o[0])&&k(l,i)||k(r,i)||k(Vt,i)||k(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:k(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Kr(e){return D(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let qn=!0;function dl(e){const t=Er(e),n=e.proxy,r=e.ctx;qn=!1,t.beforeCreate&&Ur(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:a,created:d,beforeMount:p,mounted:h,beforeUpdate:g,updated:O,activated:A,deactivated:B,beforeDestroy:F,beforeUnmount:V,destroyed:T,unmounted:U,render:Z,renderTracked:N,renderTriggered:z,errorCaptured:se,serverPrefetch:ye,expose:de,inheritAttrs:ve,components:rt,directives:Le,filters:Pt}=t;if(a&&pl(a,r,null),i)for(const Y in i){const W=i[Y];H(W)&&(r[Y]=W.bind(n))}if(s){const Y=s.call(n,n);X(Y)&&(e.data=vn(Y))}if(qn=!0,o)for(const Y in o){const W=o[Y],je=H(W)?W.bind(n,n):H(W.get)?W.get.bind(n,n):be,ke=!H(W)&&H(W.set)?W.set.bind(n):be,Me=Ae({get:je,set:ke});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>Me.value,set:pe=>Me.value=pe})}if(l)for(const Y in l)_o(l[Y],r,n,Y);if(c){const Y=H(c)?c.call(n):c;Reflect.ownKeys(Y).forEach(W=>{rn(W,Y[W])})}d&&Ur(d,e,"c");function oe(Y,W){D(W)?W.forEach(je=>Y(je.bind(n))):W&&Y(W.bind(n))}if(oe(el,p),oe(tl,h),oe(nl,g),oe(rl,O),oe(Yi,A),oe(Xi,B),oe(cl,se),oe(ll,N),oe(il,z),oe(sl,V),oe(ho,U),oe(ol,ye),D(de))if(de.length){const Y=e.exposed||(e.exposed={});de.forEach(W=>{Object.defineProperty(Y,W,{get:()=>n[W],set:je=>n[W]=je})})}else e.exposed||(e.exposed={});Z&&e.render===be&&(e.render=Z),ve!=null&&(e.inheritAttrs=ve),rt&&(e.components=rt),Le&&(e.directives=Le)}function pl(e,t,n=be){D(e)&&(e=Gn(e));for(const r in e){const s=e[r];let o;X(s)?"default"in s?o=Ce(s.from||r,s.default,!0):o=Ce(s.from||r):o=Ce(s),_e(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Ur(e,t,n){Se(D(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function _o(e,t,n,r){const s=r.includes(".")?Mo(n,r):()=>n[r];if(re(e)){const o=t[e];H(o)&&sn(s,o)}else if(H(e))sn(s,e.bind(n));else if(X(e))if(D(e))e.forEach(o=>_o(o,t,n,r));else{const o=H(e.handler)?e.handler.bind(n):t[e.handler];H(o)&&sn(s,o,e)}}function Er(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(a=>un(c,a,i,!0)),un(c,t,i)),X(t)&&o.set(t,c),c}function un(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&un(e,o,n,!0),s&&s.forEach(i=>un(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=hl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const hl={data:kr,props:zr,emits:zr,methods:Tt,computed:Tt,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Tt,directives:Tt,watch:gl,provide:kr,inject:ml};function kr(e,t){return t?e?function(){return fe(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function ml(e,t){return Tt(Gn(e),Gn(t))}function Gn(e){if(D(e)){const t={};for(let n=0;n1)return n&&H(t)?t.call(r&&r.proxy):t}}const vo={},Eo=()=>Object.create(vo),bo=e=>Object.getPrototypeOf(e)===vo;function vl(e,t,n,r=!1){const s={},o=Eo();e.propsDefaults=Object.create(null),xo(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Ys(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function El(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=Q(s),[c]=e.propsOptions;let a=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[h,g]=Ro(p,t,!0);fe(i,h),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return X(e)&&r.set(e,gt),gt;if(D(o))for(let d=0;de[0]==="_"||e==="$stable",br=e=>D(e)?e.map($e):[$e(e)],xl=(e,t,n)=>{if(t._n)return t;const r=Ji((...s)=>br(t(...s)),n);return r._c=!1,r},Po=(e,t,n)=>{const r=e._ctx;for(const s in e){if(wo(s))continue;const o=e[s];if(H(o))t[s]=xl(s,o,r);else if(o!=null){const i=br(o);t[s]=()=>i}}},Oo=(e,t)=>{const n=br(t);e.slots.default=()=>n},Ao=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Rl=(e,t,n)=>{const r=e.slots=Eo();if(e.vnode.shapeFlag&32){const s=t._;s?(Ao(r,t,n),n&&Vs(r,"_",s,!0)):Po(t,r)}else t&&Oo(e,t)},wl=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ne;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Ao(s,t,n):(o=!t.$stable,Po(t,s)),i=t}else t&&(Oo(e,t),i={default:1});if(o)for(const l in s)!wo(l)&&i[l]==null&&delete s[l]};function Jn(e,t,n,r,s=!1){if(D(e)){e.forEach((h,g)=>Jn(h,t&&(D(t)?t[g]:t),n,r,s));return}if(Mt(r)&&!s)return;const o=r.shapeFlag&4?On(r.component):r.el,i=s?null:o,{i:l,r:c}=e,a=t&&t.r,d=l.refs===ne?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==c&&(re(a)?(d[a]=null,k(p,a)&&(p[a]=null)):_e(a)&&(a.value=null)),H(c))Xe(c,l,12,[i,d]);else{const h=re(c),g=_e(c);if(h||g){const O=()=>{if(e.f){const A=h?k(p,c)?p[c]:d[c]:c.value;s?D(A)&&or(A,o):D(A)?A.includes(o)||A.push(o):h?(d[c]=[o],k(p,c)&&(p[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else h?(d[c]=i,k(p,c)&&(p[c]=i)):g&&(c.value=i,e.k&&(d[e.k]=i))};i?(O.id=-1,he(O,n)):O()}}}const So=Symbol("_vte"),Pl=e=>e.__isTeleport,Dt=e=>e&&(e.disabled||e.disabled===""),qr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Gr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yn=(e,t)=>{const n=e&&e.to;return re(n)?t?t(n):null:n},Ol={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,l,c,a){const{mc:d,pc:p,pbc:h,o:{insert:g,querySelector:O,createText:A,createComment:B}}=a,F=Dt(t.props);let{shapeFlag:V,children:T,dynamicChildren:U}=t;if(e==null){const Z=t.el=A(""),N=t.anchor=A("");g(Z,n,r),g(N,n,r);const z=t.target=Yn(t.props,O),se=To(z,t,A,g);z&&(i==="svg"||qr(z)?i="svg":(i==="mathml"||Gr(z))&&(i="mathml"));const ye=(de,ve)=>{V&16&&d(T,de,ve,s,o,i,l,c)};F?ye(n,N):z&&ye(z,se)}else{t.el=e.el,t.targetStart=e.targetStart;const Z=t.anchor=e.anchor,N=t.target=e.target,z=t.targetAnchor=e.targetAnchor,se=Dt(e.props),ye=se?n:N,de=se?Z:z;if(i==="svg"||qr(N)?i="svg":(i==="mathml"||Gr(N))&&(i="mathml"),U?(h(e.dynamicChildren,U,ye,s,o,i,l),xr(e,t,!0)):c||p(e,t,ye,de,s,o,i,l,!1),F)se?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zt(t,n,Z,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ve=t.target=Yn(t.props,O);ve&&Zt(t,ve,null,a,0)}else se&&Zt(t,N,z,a,1)}Co(t)},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:l,anchor:c,targetStart:a,targetAnchor:d,target:p,props:h}=e;if(p&&(s(a),s(d)),o&&s(c),i&16){const g=o||!Dt(h);for(let O=0;O{if(u===f)return;u&&!At(u,f)&&(v=y(u),pe(u,_,b,!0),u=null),f.patchFlag===-2&&(R=!1,f.dynamicChildren=null);const{type:E,ref:C,shapeFlag:M}=f;switch(E){case wn:B(u,f,m,v);break;case et:F(u,f,m,v);break;case Vn:u==null&&V(f,m,v,w);break;case Oe:rt(u,f,m,v,_,b,w,x,R);break;default:M&1?Z(u,f,m,v,_,b,w,x,R):M&6?Le(u,f,m,v,_,b,w,x,R):(M&64||M&128)&&E.process(u,f,m,v,_,b,w,x,R,I)}C!=null&&_&&Jn(C,u&&u.ref,b,f||u,!f)},B=(u,f,m,v)=>{if(u==null)r(f.el=l(f.children),m,v);else{const _=f.el=u.el;f.children!==u.children&&a(_,f.children)}},F=(u,f,m,v)=>{u==null?r(f.el=c(f.children||""),m,v):f.el=u.el},V=(u,f,m,v)=>{[u.el,u.anchor]=O(u.children,f,m,v,u.el,u.anchor)},T=({el:u,anchor:f},m,v)=>{let _;for(;u&&u!==f;)_=h(u),r(u,m,v),u=_;r(f,m,v)},U=({el:u,anchor:f})=>{let m;for(;u&&u!==f;)m=h(u),s(u),u=m;s(f)},Z=(u,f,m,v,_,b,w,x,R)=>{f.type==="svg"?w="svg":f.type==="math"&&(w="mathml"),u==null?N(f,m,v,_,b,w,x,R):ye(u,f,_,b,w,x,R)},N=(u,f,m,v,_,b,w,x)=>{let R,E;const{props:C,shapeFlag:M,transition:L,dirs:j}=u;if(R=u.el=i(u.type,b,C&&C.is,C),M&8?d(R,u.children):M&16&&se(u.children,R,null,v,_,Ln(u,b),w,x),j&&st(u,null,v,"created"),z(R,u,u.scopeId,w,v),C){for(const ee in C)ee!=="value"&&!It(ee)&&o(R,ee,null,C[ee],b,v);"value"in C&&o(R,"value",null,C.value,b),(E=C.onVnodeBeforeMount)&&De(E,v,u)}j&&st(u,null,v,"beforeMount");const K=Tl(_,L);K&&L.beforeEnter(R),r(R,f,m),((E=C&&C.onVnodeMounted)||K||j)&&he(()=>{E&&De(E,v,u),K&&L.enter(R),j&&st(u,null,v,"mounted")},_)},z=(u,f,m,v,_)=>{if(m&&g(u,m),v)for(let b=0;b{for(let E=R;E{const x=f.el=u.el;let{patchFlag:R,dynamicChildren:E,dirs:C}=f;R|=u.patchFlag&16;const M=u.props||ne,L=f.props||ne;let j;if(m&&ot(m,!1),(j=L.onVnodeBeforeUpdate)&&De(j,m,f,u),C&&st(f,u,m,"beforeUpdate"),m&&ot(m,!0),(M.innerHTML&&L.innerHTML==null||M.textContent&&L.textContent==null)&&d(x,""),E?de(u.dynamicChildren,E,x,m,v,Ln(f,_),b):w||W(u,f,x,null,m,v,Ln(f,_),b,!1),R>0){if(R&16)ve(x,M,L,m,_);else if(R&2&&M.class!==L.class&&o(x,"class",null,L.class,_),R&4&&o(x,"style",M.style,L.style,_),R&8){const K=f.dynamicProps;for(let ee=0;ee{j&&De(j,m,f,u),C&&st(f,u,m,"updated")},v)},de=(u,f,m,v,_,b,w)=>{for(let x=0;x{if(f!==m){if(f!==ne)for(const b in f)!It(b)&&!(b in m)&&o(u,b,f[b],null,_,v);for(const b in m){if(It(b))continue;const w=m[b],x=f[b];w!==x&&b!=="value"&&o(u,b,x,w,_,v)}"value"in m&&o(u,"value",f.value,m.value,_)}},rt=(u,f,m,v,_,b,w,x,R)=>{const E=f.el=u?u.el:l(""),C=f.anchor=u?u.anchor:l("");let{patchFlag:M,dynamicChildren:L,slotScopeIds:j}=f;j&&(x=x?x.concat(j):j),u==null?(r(E,m,v),r(C,m,v),se(f.children||[],m,C,_,b,w,x,R)):M>0&&M&64&&L&&u.dynamicChildren?(de(u.dynamicChildren,L,m,_,b,w,x),(f.key!=null||_&&f===_.subTree)&&xr(u,f,!0)):W(u,f,m,C,_,b,w,x,R)},Le=(u,f,m,v,_,b,w,x,R)=>{f.slotScopeIds=x,u==null?f.shapeFlag&512?_.ctx.activate(f,m,v,w,R):Pt(f,m,v,_,b,w,R):at(u,f,R)},Pt=(u,f,m,v,_,b,w)=>{const x=u.component=Jl(u,v,_);if(ao(u)&&(x.ctx.renderer=I),Yl(x,!1,w),x.asyncDep){if(_&&_.registerDep(x,oe,w),!u.el){const R=x.subTree=me(et);F(null,R,f,m)}}else oe(x,u,f,m,_,b,w)},at=(u,f,m)=>{const v=f.component=u.component;if(jl(u,f,m))if(v.asyncDep&&!v.asyncResolved){Y(v,f,m);return}else v.next=f,qi(v.update),v.effect.dirty=!0,v.update();else f.el=u.el,v.vnode=f},oe=(u,f,m,v,_,b,w)=>{const x=()=>{if(u.isMounted){let{next:C,bu:M,u:L,parent:j,vnode:K}=u;{const ht=Io(u);if(ht){C&&(C.el=K.el,Y(u,C,w)),ht.asyncDep.then(()=>{u.isUnmounted||x()});return}}let ee=C,G;ot(u,!1),C?(C.el=K.el,Y(u,C,w)):C=K,M&&tn(M),(G=C.props&&C.props.onVnodeBeforeUpdate)&&De(G,j,C,K),ot(u,!0);const ie=Mn(u),we=u.subTree;u.subTree=ie,A(we,ie,p(we.el),y(we),u,_,b),C.el=ie.el,ee===null&&Hl(u,ie.el),L&&he(L,_),(G=C.props&&C.props.onVnodeUpdated)&&he(()=>De(G,j,C,K),_)}else{let C;const{el:M,props:L}=f,{bm:j,m:K,parent:ee}=u,G=Mt(f);if(ot(u,!1),j&&tn(j),!G&&(C=L&&L.onVnodeBeforeMount)&&De(C,ee,f),ot(u,!0),M&&te){const ie=()=>{u.subTree=Mn(u),te(M,u.subTree,u,_,null)};G?f.type.__asyncLoader().then(()=>!u.isUnmounted&&ie()):ie()}else{const ie=u.subTree=Mn(u);A(null,ie,m,v,u,_,b),f.el=ie.el}if(K&&he(K,_),!G&&(C=L&&L.onVnodeMounted)){const ie=f;he(()=>De(C,ee,ie),_)}(f.shapeFlag&256||ee&&Mt(ee.vnode)&&ee.vnode.shapeFlag&256)&&u.a&&he(u.a,_),u.isMounted=!0,f=m=v=null}},R=u.effect=new ur(x,be,()=>_r(E),u.scope),E=u.update=()=>{R.dirty&&R.run()};E.i=u,E.id=u.uid,ot(u,!0),E()},Y=(u,f,m)=>{f.component=u;const v=u.vnode.props;u.vnode=f,u.next=null,El(u,f.props,v,m),wl(u,f.children,m),tt(),Hr(u),nt()},W=(u,f,m,v,_,b,w,x,R=!1)=>{const E=u&&u.children,C=u?u.shapeFlag:0,M=f.children,{patchFlag:L,shapeFlag:j}=f;if(L>0){if(L&128){ke(E,M,m,v,_,b,w,x,R);return}else if(L&256){je(E,M,m,v,_,b,w,x,R);return}}j&8?(C&16&&Re(E,_,b),M!==E&&d(m,M)):C&16?j&16?ke(E,M,m,v,_,b,w,x,R):Re(E,_,b,!0):(C&8&&d(m,""),j&16&&se(M,m,v,_,b,w,x,R))},je=(u,f,m,v,_,b,w,x,R)=>{u=u||gt,f=f||gt;const E=u.length,C=f.length,M=Math.min(E,C);let L;for(L=0;LC?Re(u,_,b,!0,!1,M):se(f,m,v,_,b,w,x,R,M)},ke=(u,f,m,v,_,b,w,x,R)=>{let E=0;const C=f.length;let M=u.length-1,L=C-1;for(;E<=M&&E<=L;){const j=u[E],K=f[E]=R?Ge(f[E]):$e(f[E]);if(At(j,K))A(j,K,m,null,_,b,w,x,R);else break;E++}for(;E<=M&&E<=L;){const j=u[M],K=f[L]=R?Ge(f[L]):$e(f[L]);if(At(j,K))A(j,K,m,null,_,b,w,x,R);else break;M--,L--}if(E>M){if(E<=L){const j=L+1,K=jL)for(;E<=M;)pe(u[E],_,b,!0),E++;else{const j=E,K=E,ee=new Map;for(E=K;E<=L;E++){const Ee=f[E]=R?Ge(f[E]):$e(f[E]);Ee.key!=null&&ee.set(Ee.key,E)}let G,ie=0;const we=L-K+1;let ht=!1,Sr=0;const Ot=new Array(we);for(E=0;E=we){pe(Ee,_,b,!0);continue}let Ve;if(Ee.key!=null)Ve=ee.get(Ee.key);else for(G=K;G<=L;G++)if(Ot[G-K]===0&&At(Ee,f[G])){Ve=G;break}Ve===void 0?pe(Ee,_,b,!0):(Ot[Ve-K]=E+1,Ve>=Sr?Sr=Ve:ht=!0,A(Ee,f[Ve],m,null,_,b,w,x,R),ie++)}const Cr=ht?Il(Ot):gt;for(G=Cr.length-1,E=we-1;E>=0;E--){const Ee=K+E,Ve=f[Ee],Tr=Ee+1{const{el:b,type:w,transition:x,children:R,shapeFlag:E}=u;if(E&6){Me(u.component.subTree,f,m,v);return}if(E&128){u.suspense.move(f,m,v);return}if(E&64){w.move(u,f,m,I);return}if(w===Oe){r(b,f,m);for(let M=0;Mx.enter(b),_);else{const{leave:M,delayLeave:L,afterLeave:j}=x,K=()=>r(b,f,m),ee=()=>{M(b,()=>{K(),j&&j()})};L?L(b,K,ee):ee()}else r(b,f,m)},pe=(u,f,m,v=!1,_=!1)=>{const{type:b,props:w,ref:x,children:R,dynamicChildren:E,shapeFlag:C,patchFlag:M,dirs:L,cacheIndex:j}=u;if(M===-2&&(_=!1),x!=null&&Jn(x,null,m,u,!0),j!=null&&(f.renderCache[j]=void 0),C&256){f.ctx.deactivate(u);return}const K=C&1&&L,ee=!Mt(u);let G;if(ee&&(G=w&&w.onVnodeBeforeUnmount)&&De(G,f,u),C&6)qt(u.component,m,v);else{if(C&128){u.suspense.unmount(m,v);return}K&&st(u,null,f,"beforeUnmount"),C&64?u.type.remove(u,f,m,I,v):E&&!E.hasOnce&&(b!==Oe||M>0&&M&64)?Re(E,f,m,!1,!0):(b===Oe&&M&384||!_&&C&16)&&Re(R,f,m),v&&dt(u)}(ee&&(G=w&&w.onVnodeUnmounted)||K)&&he(()=>{G&&De(G,f,u),K&&st(u,null,f,"unmounted")},m)},dt=u=>{const{type:f,el:m,anchor:v,transition:_}=u;if(f===Oe){pt(m,v);return}if(f===Vn){U(u);return}const b=()=>{s(m),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(u.shapeFlag&1&&_&&!_.persisted){const{leave:w,delayLeave:x}=_,R=()=>w(m,b);x?x(u.el,b,R):R()}else b()},pt=(u,f)=>{let m;for(;u!==f;)m=h(u),s(u),u=m;s(f)},qt=(u,f,m)=>{const{bum:v,scope:_,update:b,subTree:w,um:x,m:R,a:E}=u;Qr(R),Qr(E),v&&tn(v),_.stop(),b&&(b.active=!1,pe(w,u,f,m)),x&&he(x,f),he(()=>{u.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Re=(u,f,m,v=!1,_=!1,b=0)=>{for(let w=b;w{if(u.shapeFlag&6)return y(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const f=h(u.anchor||u.el),m=f&&f[So];return m?h(m):f};let S=!1;const P=(u,f,m)=>{u==null?f._vnode&&pe(f._vnode,null,null,!0):A(f._vnode||null,u,f,null,null,null,m),f._vnode=u,S||(S=!0,Hr(),lo(),S=!1)},I={p:A,um:pe,m:Me,r:dt,mt:Pt,mc:se,pc:W,pbc:de,n:y,o:e};let q,te;return t&&([q,te]=t(I)),{render:P,hydrate:q,createApp:yl(P,q)}}function Ln({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ot({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Tl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xr(e,t,n=!1){const r=e.children,s=t.children;if(D(r)&&D(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Io(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Io(t)}function Qr(e){if(e)for(let t=0;tCe(Ll),en={};function sn(e,t,n){return Lo(e,t,n)}function Lo(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:l}=ne){if(t&&o){const N=t;t=(...z)=>{N(...z),Z()}}const c=ue,a=N=>r===!0?N:Je(N,r===!1?1:void 0);let d,p=!1,h=!1;if(_e(e)?(d=()=>e.value,p=bt(e)):Lt(e)?(d=()=>a(e),p=!0):D(e)?(h=!0,p=e.some(N=>Lt(N)||bt(N)),d=()=>e.map(N=>{if(_e(N))return N.value;if(Lt(N))return a(N);if(H(N))return Xe(N,c,2)})):H(e)?t?d=()=>Xe(e,c,2):d=()=>(g&&g(),Se(e,c,3,[O])):d=be,t&&r){const N=d;d=()=>Je(N())}let g,O=N=>{g=T.onStop=()=>{Xe(N,c,4),g=T.onStop=void 0}},A;if(Pn)if(O=be,t?n&&Se(t,c,3,[d(),h?[]:void 0,O]):d(),s==="sync"){const N=Ml();A=N.__watcherHandles||(N.__watcherHandles=[])}else return be;let B=h?new Array(e.length).fill(en):en;const F=()=>{if(!(!T.active||!T.dirty))if(t){const N=T.run();(r||p||(h?N.some((z,se)=>Ze(z,B[se])):Ze(N,B)))&&(g&&g(),Se(t,c,3,[N,B===en?void 0:h&&B[0]===en?[]:B,O]),B=N)}else T.run()};F.allowRecurse=!!t;let V;s==="sync"?V=F:s==="post"?V=()=>he(F,c&&c.suspense):(F.pre=!0,c&&(F.id=c.uid),V=()=>_r(F));const T=new ur(d,be,V),U=vi(),Z=()=>{T.stop(),U&&or(U.effects,T)};return t?n?F():B=T.run():s==="post"?he(T.run.bind(T),c&&c.suspense):T.run(),A&&A.push(Z),Z}function Vl(e,t,n){const r=this.proxy,s=re(e)?e.includes(".")?Mo(r,e):()=>r[e]:e.bind(r,r);let o;H(t)?o=t:(o=t.handler,n=t);const i=Wt(this),l=Lo(s,o.bind(r),n);return i(),l}function Mo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Je(r,t,n)});else if(Ms(e)){for(const r in e)Je(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Je(e[r],t,n)}return e}const Dl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Te(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function $l(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ne;let s=n;const o=t.startsWith("update:"),i=o&&Dl(r,t.slice(7));i&&(i.trim&&(s=n.map(d=>re(d)?d.trim():d)),i.number&&(s=n.map(ci)));let l,c=r[l=Cn(t)]||r[l=Cn(Te(t))];!c&&o&&(c=r[l=Cn(ft(t))]),c&&Se(c,e,6,s);const a=r[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Se(a,e,6,s)}}function Vo(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!H(e)){const c=a=>{const d=Vo(a,t,!0);d&&(l=!0,fe(i,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(X(e)&&r.set(e,null),null):(D(o)?o.forEach(c=>i[c]=null):fe(i,o),X(e)&&r.set(e,i),i)}function Rn(e,t){return!e||!pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,ft(t))||k(e,t))}function Mn(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:c,render:a,renderCache:d,props:p,data:h,setupState:g,ctx:O,inheritAttrs:A}=e,B=cn(e);let F,V;try{if(n.shapeFlag&4){const U=s||r,Z=U;F=$e(a.call(Z,U,d,p,g,h,O)),V=l}else{const U=t;F=$e(U.length>1?U(p,{attrs:l,slots:i,emit:c}):U(p,null)),V=t.props?l:Fl(l)}}catch(U){$t.length=0,En(U,e,1),F=me(et)}let T=F;if(V&&A!==!1){const U=Object.keys(V),{shapeFlag:Z}=T;U.length&&Z&7&&(o&&U.some(sr)&&(V=Nl(V,o)),T=xt(T,V,!1,!0))}return n.dirs&&(T=xt(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(T.transition=n.transition),F=T,cn(B),F}const Fl=e=>{let t;for(const n in e)(n==="class"||n==="style"||pn(n))&&((t||(t={}))[n]=e[n]);return t},Nl=(e,t)=>{const n={};for(const r in e)(!sr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jl(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jr(r,i,a):!!i;if(c&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function Kl(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):Gi(e)}const Oe=Symbol.for("v-fgt"),wn=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),Vn=Symbol.for("v-stc"),$t=[];let xe=null;function Rr(e=!1){$t.push(xe=e?null:[])}function Ul(){$t.pop(),xe=$t[$t.length-1]||null}let Kt=1;function Yr(e){Kt+=e,e<0&&xe&&(xe.hasOnce=!0)}function Do(e){return e.dynamicChildren=Kt>0?xe||gt:null,Ul(),Kt>0&&xe&&xe.push(e),e}function Yu(e,t,n,r,s,o){return Do(Fo(e,t,n,r,s,o,!0))}function wr(e,t,n,r,s){return Do(me(e,t,n,r,s,!0))}function fn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const $o=({key:e})=>e??null,on=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||_e(e)||H(e)?{i:le,r:e,k:t,f:!!n}:e:null);function Fo(e,t=null,n=null,r=0,s=null,o=e===Oe?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$o(t),ref:t&&on(t),scopeId:bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:le};return l?(Pr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=re(n)?8:16),Kt>0&&!i&&xe&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&xe.push(c),c}const me=kl;function kl(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===mo)&&(e=et),fn(e)){const l=xt(e,t,!0);return n&&Pr(l,n),Kt>0&&!o&&xe&&(l.shapeFlag&6?xe[xe.indexOf(e)]=l:xe.push(l)),l.patchFlag=-2,l}if(nc(e)&&(e=e.__vccOpts),t){t=zl(t);let{class:l,style:c}=t;l&&!re(l)&&(t.class=cr(l)),X(c)&&(Zs(c)&&!D(c)&&(c=fe({},c)),t.style=lr(c))}const i=re(e)?1:Bl(e)?128:Pl(e)?64:X(e)?4:H(e)?2:0;return Fo(e,t,n,r,s,i,o,!0)}function zl(e){return e?Zs(e)||bo(e)?fe({},e):e:null}function xt(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:c}=e,a=t?ql(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&$o(a),ref:t&&t.ref?n&&o?D(o)?o.concat(on(t)):[o,on(t)]:on(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&uo(d,c.clone(d)),d}function Wl(e=" ",t=0){return me(wn,null,e,t)}function Xu(e="",t=!1){return t?(Rr(),wr(et,null,e)):me(et,null,e)}function $e(e){return e==null||typeof e=="boolean"?me(et):D(e)?me(Oe,null,e.slice()):typeof e=="object"?Ge(e):me(wn,null,String(e))}function Ge(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Pr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(D(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Pr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!bo(t)?t._ctx=le:s===3&&le&&(le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(t)?(t={default:t,_ctx:le},n=32):(t=String(t),r&64?(n=16,t=[Wl(t)]):n=8);e.children=t,e.shapeFlag|=n}function ql(...e){const t={};for(let n=0;n{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};an=t("__VUE_INSTANCE_SETTERS__",n=>ue=n),Xn=t("__VUE_SSR_SETTERS__",n=>Pn=n)}const Wt=e=>{const t=ue;return an(e),e.scope.on(),()=>{e.scope.off(),an(t)}},Xr=()=>{ue&&ue.scope.off(),an(null)};function No(e){return e.vnode.shapeFlag&4}let Pn=!1;function Yl(e,t=!1,n=!1){t&&Xn(t);const{props:r,children:s}=e.vnode,o=No(e);vl(e,r,o,t),Rl(e,s,n);const i=o?Xl(e,t):void 0;return t&&Xn(!1),i}function Xl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,al);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?ec(e):null,o=Wt(e);tt();const i=Xe(r,e,0,[e.props,s]);if(nt(),o(),Is(i)){if(i.then(Xr,Xr),t)return i.then(l=>{Zr(e,l,t)}).catch(l=>{En(l,e,0)});e.asyncDep=i}else Zr(e,i,t)}else jo(e,t)}function Zr(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=ro(t)),jo(e,n)}let es;function jo(e,t,n){const r=e.type;if(!e.render){if(!t&&es&&!r.render){const s=r.template||Er(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,a=fe(fe({isCustomElement:o,delimiters:l},i),c);r.render=es(s,a)}}e.render=r.render||be}{const s=Wt(e);tt();try{dl(e)}finally{nt(),s()}}}const Zl={get(e,t){return ge(e,"get",""),e[t]}};function ec(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zl),slots:e.slots,emit:e.emit,expose:t}}function On(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ro(ji(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vt)return Vt[n](e)},has(t,n){return n in t||n in Vt}})):e.proxy}function tc(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function nc(e){return H(e)&&"__vccOpts"in e}const Ae=(e,t)=>Hi(e,t,Pn);function Ho(e,t,n){const r=arguments.length;return r===2?X(t)&&!D(t)?fn(t)?me(e,null,[t]):me(e,t):me(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fn(n)&&(n=[n]),me(e,t,n))}const rc="3.4.38";/** +* @vue/runtime-dom v3.4.38 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const sc="http://www.w3.org/2000/svg",oc="http://www.w3.org/1998/Math/MathML",Be=typeof document<"u"?document:null,ts=Be&&Be.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Be.createElementNS(sc,e):t==="mathml"?Be.createElementNS(oc,e):n?Be.createElement(e,{is:n}):Be.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Be.createTextNode(e),createComment:e=>Be.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Be.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{ts.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=ts.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},lc=Symbol("_vtc");function cc(e,t,n){const r=e[lc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const dn=Symbol("_vod"),Bo=Symbol("_vsh"),Zu={beforeMount(e,{value:t},{transition:n}){e[dn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):St(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),St(e,!0),r.enter(e)):r.leave(e,()=>{St(e,!1)}):St(e,t))},beforeUnmount(e,{value:t}){St(e,t)}};function St(e,t){e.style.display=t?e[dn]:"none",e[Bo]=!t}const uc=Symbol(""),fc=/(^|;)\s*display\s*:/;function ac(e,t,n){const r=e.style,s=re(n);let o=!1;if(n&&!s){if(t)if(re(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&ln(r,l,"")}else for(const i in t)n[i]==null&&ln(r,i,"");for(const i in n)i==="display"&&(o=!0),ln(r,i,n[i])}else if(s){if(t!==n){const i=r[uc];i&&(n+=";"+i),r.cssText=n,o=fc.test(n)}}else t&&e.removeAttribute("style");dn in e&&(e[dn]=o?r.display:"",e[Bo]&&(r.display="none"))}const ns=/\s*!important$/;function ln(e,t,n){if(D(n))n.forEach(r=>ln(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=dc(e,t);ns.test(n)?e.setProperty(ft(r),n.replace(ns,""),"important"):e[r]=n}}const rs=["Webkit","Moz","ms"],Dn={};function dc(e,t){const n=Dn[t];if(n)return n;let r=Te(t);if(r!=="filter"&&r in e)return Dn[t]=r;r=gn(r);for(let s=0;s$n||(_c.then(()=>$n=0),$n=Date.now());function vc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Se(Ec(r,n.value),t,5,[r])};return n.value=e,n.attached=yc(),n}function Ec(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bc=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?cc(e,r,i):t==="style"?ac(e,n,r):pn(t)?sr(t)||mc(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xc(e,t,r,i))?(pc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&os(e,t,r,i,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),os(e,t,r,i))};function xc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&cs(t)&&H(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return cs(t)&&re(n)?!1:t in e}const us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>tn(t,n):t},Fn=Symbol("_assign"),ef={deep:!0,created(e,t,n){e[Fn]=us(n),Ko(e,"change",()=>{const r=e._modelValue,s=Rc(e),o=e.checked,i=e[Fn];if(D(r)){const l=Fs(r,s),c=l!==-1;if(o&&!c)i(r.concat(s));else if(!o&&c){const a=[...r];a.splice(l,1),i(a)}}else if(hn(r)){const l=new Set(r);o?l.add(s):l.delete(s),i(l)}else i(Uo(e,o))})},mounted:fs,beforeUpdate(e,t,n){e[Fn]=us(n),fs(e,t,n)}};function fs(e,{value:t,oldValue:n},r){e._modelValue=t,D(t)?e.checked=Fs(t,r.props.value)>-1:hn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=_n(t,Uo(e,!0)))}function Rc(e){return"_value"in e?e._value:e.value}function Uo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wc=["ctrl","shift","alt","meta"],Pc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>wc.some(n=>e[`${n}Key`]&&!t.includes(n))},tf=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{ko().render(...e)},Ac=(...e)=>{const t=ko().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Cc(r);if(!s)return;const o=t._component;!H(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,Sc(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function Sc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cc(e){return re(e)?document.querySelector(e):e}const Tc="modulepreload",Ic=function(e,t){return new URL(e,t).href},ds={},$=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Ic(o,r),o in ds)return;ds[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let d=s.length-1;d>=0;d--){const p=s[d];if(p.href===o&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":Tc,i||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),i)return new Promise((d,p)=>{a.addEventListener("load",d),a.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};/*! + * vue-router v4.4.3 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const mt=typeof document<"u";function Lc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const J=Object.assign;function Nn(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ie(s)?s.map(e):e(s)}return n}const Ft=()=>{},Ie=Array.isArray,zo=/#/g,Mc=/&/g,Vc=/\//g,Dc=/=/g,$c=/\?/g,Wo=/\+/g,Fc=/%5B/g,Nc=/%5D/g,qo=/%5E/g,jc=/%60/g,Go=/%7B/g,Hc=/%7C/g,Qo=/%7D/g,Bc=/%20/g;function Or(e){return encodeURI(""+e).replace(Hc,"|").replace(Fc,"[").replace(Nc,"]")}function Kc(e){return Or(e).replace(Go,"{").replace(Qo,"}").replace(qo,"^")}function Zn(e){return Or(e).replace(Wo,"%2B").replace(Bc,"+").replace(zo,"%23").replace(Mc,"%26").replace(jc,"`").replace(Go,"{").replace(Qo,"}").replace(qo,"^")}function Uc(e){return Zn(e).replace(Dc,"%3D")}function kc(e){return Or(e).replace(zo,"%23").replace($c,"%3F")}function zc(e){return e==null?"":kc(e).replace(Vc,"%2F")}function Ut(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Wc=/\/$/,qc=e=>e.replace(Wc,"");function jn(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Yc(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Ut(i)}}function Gc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ps(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qc(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Rt(t.matched[r],n.matched[s])&&Jo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Jo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Jc(e[n],t[n]))return!1;return!0}function Jc(e,t){return Ie(e)?hs(e,t):Ie(t)?hs(t,e):e===t}function hs(e,t){return Ie(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Yc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const We={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var kt;(function(e){e.pop="pop",e.push="push"})(kt||(kt={}));var Nt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nt||(Nt={}));function Xc(e){if(!e)if(mt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qc(e)}const Zc=/^[^#]+#/;function eu(e,t){return e.replace(Zc,"#")+t}function tu(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const An=()=>({left:window.scrollX,top:window.scrollY});function nu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=tu(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ms(e,t){return(history.state?history.state.position-t:-1)+e}const er=new Map;function ru(e,t){er.set(e,t)}function su(e){const t=er.get(e);return er.delete(e),t}let ou=()=>location.protocol+"//"+location.host;function Yo(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),ps(c,"")}return ps(n,e)+r+s}function iu(e,t,n,r){let s=[],o=[],i=null;const l=({state:h})=>{const g=Yo(e,location),O=n.value,A=t.value;let B=0;if(h){if(n.value=g,t.value=h,i&&i===O){i=null;return}B=A?h.position-A.position:0}else r(g);s.forEach(F=>{F(n.value,O,{delta:B,type:kt.pop,direction:B?B>0?Nt.forward:Nt.back:Nt.unknown})})};function c(){i=n.value}function a(h){s.push(h);const g=()=>{const O=s.indexOf(h);O>-1&&s.splice(O,1)};return o.push(g),g}function d(){const{history:h}=window;h.state&&h.replaceState(J({},h.state,{scroll:An()}),"")}function p(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:a,destroy:p}}function gs(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?An():null}}function lu(e){const{history:t,location:n}=window,r={value:Yo(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,d){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:ou()+e+c;try{t[d?"replaceState":"pushState"](a,"",h),s.value=a}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function i(c,a){const d=J({},t.state,gs(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});o(c,d,!0),r.value=c}function l(c,a){const d=J({},s.value,t.state,{forward:c,scroll:An()});o(d.current,d,!0);const p=J({},gs(r.value,c,null),{position:d.position+1},a);o(c,p,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function cu(e){e=Xc(e);const t=lu(e),n=iu(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=J({location:"",base:e,go:r,createHref:eu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function uu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),cu(e)}function fu(e){return typeof e=="string"||e&&typeof e=="object"}function Xo(e){return typeof e=="string"||typeof e=="symbol"}const Zo=Symbol("");var _s;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_s||(_s={}));function wt(e,t){return J(new Error,{type:e,[Zo]:!0},t)}function He(e,t){return e instanceof Error&&Zo in e&&(t==null||!!(e.type&t))}const ys="[^/]+?",au={sensitive:!1,strict:!1,start:!0,end:!0},du=/[.+*?^${}()[\]/\\]/g;function pu(e,t){const n=J({},au,t),r=[];let s=n.start?"^":"";const o=[];for(const a of e){const d=a.length?[]:[90];n.strict&&!a.length&&(s+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function ei(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const mu={type:0,value:""},gu=/[a-zA-Z0-9_]/;function _u(e){if(!e)return[[]];if(e==="/")return[[mu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${a}": ${g}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,a="",d="";function p(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function h(){a+=c}for(;l{i(T)}:Ft}function i(p){if(Xo(p)){const h=r.get(p);h&&(r.delete(p),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(p);h>-1&&(n.splice(h,1),p.record.name&&r.delete(p.record.name),p.children.forEach(i),p.alias.forEach(i))}}function l(){return n}function c(p){const h=Ru(p,n);n.splice(h,0,p),p.record.name&&!bs(p)&&r.set(p.record.name,p)}function a(p,h){let g,O={},A,B;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw wt(1,{location:p});B=g.record.name,O=J(Es(h.params,g.keys.filter(T=>!T.optional).concat(g.parent?g.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),p.params&&Es(p.params,g.keys.map(T=>T.name))),A=g.stringify(O)}else if(p.path!=null)A=p.path,g=n.find(T=>T.re.test(A)),g&&(O=g.parse(A),B=g.record.name);else{if(g=h.name?r.get(h.name):n.find(T=>T.re.test(h.path)),!g)throw wt(1,{location:p,currentLocation:h});B=g.record.name,O=J({},h.params,p.params),A=g.stringify(O)}const F=[];let V=g;for(;V;)F.unshift(V.record),V=V.parent;return{name:B,path:A,params:O,matched:F,meta:xu(F)}}e.forEach(p=>o(p));function d(){n.length=0,r.clear()}return{addRoute:o,resolve:a,removeRoute:i,clearRoutes:d,getRoutes:l,getRecordMatcher:s}}function Es(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Eu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function bu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function bs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xu(e){return e.reduce((t,n)=>J(t,n.meta),{})}function xs(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ru(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;ei(e,t[o])<0?r=o:n=o+1}const s=wu(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function wu(e){let t=e;for(;t=t.parent;)if(ti(t)&&ei(e,t)===0)return t}function ti({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Zn(o)):[r&&Zn(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ou(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ie(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Au=Symbol(""),ws=Symbol(""),Sn=Symbol(""),Ar=Symbol(""),tr=Symbol("");function Ct(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qe(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const a=h=>{h===!1?c(wt(4,{from:n,to:t})):h instanceof Error?c(h):fu(h)?c(wt(2,{from:t,to:h})):(i&&r.enterCallbacks[s]===i&&typeof h=="function"&&i.push(h),l())},d=o(()=>e.call(r&&r.instances[s],t,n,a));let p=Promise.resolve(d);e.length<3&&(p=p.then(a)),p.catch(h=>c(h))})}function Hn(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Su(c)){const d=(c.__vccOpts||c)[t];d&&o.push(Qe(d,n,r,i,l,s))}else{let a=c();o.push(()=>a.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const p=Lc(d)?d.default:d;i.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Qe(g,n,r,i,l,s)()}))}}return o}function Su(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ps(e){const t=Ce(Sn),n=Ce(Ar),r=Ae(()=>{const c=yt(e.to);return t.resolve(c)}),s=Ae(()=>{const{matched:c}=r.value,{length:a}=c,d=c[a-1],p=n.matched;if(!d||!p.length)return-1;const h=p.findIndex(Rt.bind(null,d));if(h>-1)return h;const g=Os(c[a-2]);return a>1&&Os(d)===g&&p[p.length-1].path!==g?p.findIndex(Rt.bind(null,c[a-2])):h}),o=Ae(()=>s.value>-1&&Lu(n.params,r.value.params)),i=Ae(()=>s.value>-1&&s.value===n.matched.length-1&&Jo(n.params,r.value.params));function l(c={}){return Iu(c)?t[yt(e.replace)?"replace":"push"](yt(e.to)).catch(Ft):Promise.resolve()}return{route:r,href:Ae(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Cu=fo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ps,setup(e,{slots:t}){const n=vn(Ps(e)),{options:r}=Ce(Sn),s=Ae(()=>({[As(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[As(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Ho("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Tu=Cu;function Iu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Lu(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ie(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Os(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const As=(e,t,n)=>e??t??n,Mu=fo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ce(tr),s=Ae(()=>e.route||r.value),o=Ce(ws,0),i=Ae(()=>{let a=yt(o);const{matched:d}=s.value;let p;for(;(p=d[a])&&!p.components;)a++;return a}),l=Ae(()=>s.value.matched[i.value]);rn(ws,Ae(()=>i.value+1)),rn(Au,l),rn(tr,s);const c=Bi();return sn(()=>[c.value,l.value,e.name],([a,d,p],[h,g,O])=>{d&&(d.instances[p]=a,g&&g!==d&&a&&a===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),a&&d&&(!g||!Rt(d,g)||!h)&&(d.enterCallbacks[p]||[]).forEach(A=>A(a))},{flush:"post"}),()=>{const a=s.value,d=e.name,p=l.value,h=p&&p.components[d];if(!h)return Ss(n.default,{Component:h,route:a});const g=p.props[d],O=g?g===!0?a.params:typeof g=="function"?g(a):g:null,B=Ho(h,J({},O,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(p.instances[d]=null)},ref:c}));return Ss(n.default,{Component:B,route:a})||B}}});function Ss(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Vu=Mu;function Du(e){const t=vu(e.routes,e),n=e.parseQuery||Pu,r=e.stringifyQuery||Rs,s=e.history,o=Ct(),i=Ct(),l=Ct(),c=Ki(We);let a=We;mt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Nn.bind(null,y=>""+y),p=Nn.bind(null,zc),h=Nn.bind(null,Ut);function g(y,S){let P,I;return Xo(y)?(P=t.getRecordMatcher(y),I=S):I=y,t.addRoute(I,P)}function O(y){const S=t.getRecordMatcher(y);S&&t.removeRoute(S)}function A(){return t.getRoutes().map(y=>y.record)}function B(y){return!!t.getRecordMatcher(y)}function F(y,S){if(S=J({},S||c.value),typeof y=="string"){const f=jn(n,y,S.path),m=t.resolve({path:f.path},S),v=s.createHref(f.fullPath);return J(f,m,{params:h(m.params),hash:Ut(f.hash),redirectedFrom:void 0,href:v})}let P;if(y.path!=null)P=J({},y,{path:jn(n,y.path,S.path).path});else{const f=J({},y.params);for(const m in f)f[m]==null&&delete f[m];P=J({},y,{params:p(f)}),S.params=p(S.params)}const I=t.resolve(P,S),q=y.hash||"";I.params=d(h(I.params));const te=Gc(r,J({},y,{hash:Kc(q),path:I.path})),u=s.createHref(te);return J({fullPath:te,hash:q,query:r===Rs?Ou(y.query):y.query||{}},I,{redirectedFrom:void 0,href:u})}function V(y){return typeof y=="string"?jn(n,y,c.value.path):J({},y)}function T(y,S){if(a!==y)return wt(8,{from:S,to:y})}function U(y){return z(y)}function Z(y){return U(J(V(y),{replace:!0}))}function N(y){const S=y.matched[y.matched.length-1];if(S&&S.redirect){const{redirect:P}=S;let I=typeof P=="function"?P(y):P;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=V(I):{path:I},I.params={}),J({query:y.query,hash:y.hash,params:I.path!=null?{}:y.params},I)}}function z(y,S){const P=a=F(y),I=c.value,q=y.state,te=y.force,u=y.replace===!0,f=N(P);if(f)return z(J(V(f),{state:typeof f=="object"?J({},q,f.state):q,force:te,replace:u}),S||P);const m=P;m.redirectedFrom=S;let v;return!te&&Qc(r,I,P)&&(v=wt(16,{to:m,from:I}),Me(I,I,!0,!1)),(v?Promise.resolve(v):de(m,I)).catch(_=>He(_)?He(_,2)?_:ke(_):W(_,m,I)).then(_=>{if(_){if(He(_,2))return z(J({replace:u},V(_.to),{state:typeof _.to=="object"?J({},q,_.to.state):q,force:te}),S||m)}else _=rt(m,I,!0,u,q);return ve(m,I,_),_})}function se(y,S){const P=T(y,S);return P?Promise.reject(P):Promise.resolve()}function ye(y){const S=pt.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(y):y()}function de(y,S){let P;const[I,q,te]=$u(y,S);P=Hn(I.reverse(),"beforeRouteLeave",y,S);for(const f of I)f.leaveGuards.forEach(m=>{P.push(Qe(m,y,S))});const u=se.bind(null,y,S);return P.push(u),Re(P).then(()=>{P=[];for(const f of o.list())P.push(Qe(f,y,S));return P.push(u),Re(P)}).then(()=>{P=Hn(q,"beforeRouteUpdate",y,S);for(const f of q)f.updateGuards.forEach(m=>{P.push(Qe(m,y,S))});return P.push(u),Re(P)}).then(()=>{P=[];for(const f of te)if(f.beforeEnter)if(Ie(f.beforeEnter))for(const m of f.beforeEnter)P.push(Qe(m,y,S));else P.push(Qe(f.beforeEnter,y,S));return P.push(u),Re(P)}).then(()=>(y.matched.forEach(f=>f.enterCallbacks={}),P=Hn(te,"beforeRouteEnter",y,S,ye),P.push(u),Re(P))).then(()=>{P=[];for(const f of i.list())P.push(Qe(f,y,S));return P.push(u),Re(P)}).catch(f=>He(f,8)?f:Promise.reject(f))}function ve(y,S,P){l.list().forEach(I=>ye(()=>I(y,S,P)))}function rt(y,S,P,I,q){const te=T(y,S);if(te)return te;const u=S===We,f=mt?history.state:{};P&&(I||u?s.replace(y.fullPath,J({scroll:u&&f&&f.scroll},q)):s.push(y.fullPath,q)),c.value=y,Me(y,S,P,u),ke()}let Le;function Pt(){Le||(Le=s.listen((y,S,P)=>{if(!qt.listening)return;const I=F(y),q=N(I);if(q){z(J(q,{replace:!0}),I).catch(Ft);return}a=I;const te=c.value;mt&&ru(ms(te.fullPath,P.delta),An()),de(I,te).catch(u=>He(u,12)?u:He(u,2)?(z(u.to,I).then(f=>{He(f,20)&&!P.delta&&P.type===kt.pop&&s.go(-1,!1)}).catch(Ft),Promise.reject()):(P.delta&&s.go(-P.delta,!1),W(u,I,te))).then(u=>{u=u||rt(I,te,!1),u&&(P.delta&&!He(u,8)?s.go(-P.delta,!1):P.type===kt.pop&&He(u,20)&&s.go(-1,!1)),ve(I,te,u)}).catch(Ft)}))}let at=Ct(),oe=Ct(),Y;function W(y,S,P){ke(y);const I=oe.list();return I.length?I.forEach(q=>q(y,S,P)):console.error(y),Promise.reject(y)}function je(){return Y&&c.value!==We?Promise.resolve():new Promise((y,S)=>{at.add([y,S])})}function ke(y){return Y||(Y=!y,Pt(),at.list().forEach(([S,P])=>y?P(y):S()),at.reset()),y}function Me(y,S,P,I){const{scrollBehavior:q}=e;if(!mt||!q)return Promise.resolve();const te=!P&&su(ms(y.fullPath,0))||(I||!P)&&history.state&&history.state.scroll||null;return oo().then(()=>q(y,S,te)).then(u=>u&&nu(u)).catch(u=>W(u,y,S))}const pe=y=>s.go(y);let dt;const pt=new Set,qt={currentRoute:c,listening:!0,addRoute:g,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:B,getRoutes:A,resolve:F,options:e,push:U,replace:Z,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:oe.add,isReady:je,install(y){const S=this;y.component("RouterLink",Tu),y.component("RouterView",Vu),y.config.globalProperties.$router=S,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>yt(c)}),mt&&!dt&&c.value===We&&(dt=!0,U(s.location).catch(q=>{}));const P={};for(const q in We)Object.defineProperty(P,q,{get:()=>c.value[q],enumerable:!0});y.provide(Sn,S),y.provide(Ar,Ys(P)),y.provide(tr,c);const I=y.unmount;pt.add(y),y.unmount=function(){pt.delete(y),pt.size<1&&(a=We,Le&&Le(),Le=null,c.value=We,dt=!1,Y=!1),I()}}};function Re(y){return y.reduce((S,P)=>S.then(()=>ye(P)),Promise.resolve())}return qt}function $u(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iRt(a,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Rt(a,c))||s.push(c))}return[n,r,s]}function rf(){return Ce(Sn)}function sf(e){return Ce(Ar)}const Cs=Object.assign({"../pages/animation-dialog/index.vue":()=>$(()=>import("./index-db456421.js"),["./index-db456421.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/img-zoom/index.vue":()=>$(()=>import("./index-20f97442.js"),["./index-20f97442.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/mouse-menu/index.vue":()=>$(()=>import("./index-30cfcab8.js"),["./index-30cfcab8.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/resize/index.vue":()=>$(()=>import("./index-c0ef176e.js"),["./index-c0ef176e.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/scroll/index.vue":()=>$(()=>import("./index-d0878504.js"),["./index-d0878504.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/size-observer/index.vue":()=>$(()=>import("./index-8fe8769d.js"),["./index-8fe8769d.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/standard-tabs/index.vue":()=>$(()=>import("./index-98c39396.js"),["./index-98c39396.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/to-control/index.vue":()=>$(()=>import("./index-6989a1bf.js"),["./index-6989a1bf.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/to-drag/index.vue":()=>$(()=>import("./index-362c388e.js"),["./index-362c388e.js","./ExampleFrame-6afa260f.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url)}),Ts=Object.assign({"../pages/animation-dialog/example/example1.vue":()=>$(()=>import("./example1-fa128ebb.js"),["./example1-fa128ebb.js","./index.es-8da2c7aa.js","./example1-5e832090.css"],import.meta.url),"../pages/animation-dialog/example/example2.vue":()=>$(()=>import("./example2-f1539ea3.js"),["./example2-f1539ea3.js","./index.es-8da2c7aa.js","./global-56066e04.js","./example2-81e71328.css"],import.meta.url),"../pages/animation-dialog/example/example3.vue":()=>$(()=>import("./example3-2c212057.js"),["./example3-2c212057.js","./index.es-8da2c7aa.js","./example3-cfb55d49.css"],import.meta.url),"../pages/animation-dialog/example/example4.vue":()=>$(()=>import("./example4-db3766fc.js"),["./example4-db3766fc.js","./index.es-8da2c7aa.js","./example4-cbe4e3c1.css"],import.meta.url),"../pages/img-zoom/example/example1.vue":()=>$(()=>import("./example1-4a882f93.js"),["./example1-4a882f93.js","./index.es-d11d180d.js","./global-56066e04.js","./example1-aded41ef.css"],import.meta.url),"../pages/img-zoom/example/example2.vue":()=>$(()=>import("./example2-e92253bc.js"),["./example2-e92253bc.js","./index.es-d11d180d.js","./global-56066e04.js","./example2-14ec8bb5.css"],import.meta.url),"../pages/img-zoom/example/example3.vue":()=>$(()=>import("./example3-368ca602.js"),["./example3-368ca602.js","./index.es-d11d180d.js","./global-56066e04.js","./example3-d8748063.css"],import.meta.url),"../pages/mouse-menu/example/example1.vue":()=>$(()=>import("./example1-1f7cb7ed.js"),["./example1-1f7cb7ed.js","./index.es-6d9dc425.js","./example1-0d3d827c.css"],import.meta.url),"../pages/mouse-menu/example/example2.vue":()=>$(()=>import("./example2-20c217f6.js"),["./example2-20c217f6.js","./index.es-6d9dc425.js","./example2-70d7a07d.css"],import.meta.url),"../pages/mouse-menu/example/example3.vue":()=>$(()=>import("./example3-85c315c5.js"),["./example3-85c315c5.js","./index.es-6d9dc425.js","./example3-56f5a5f1.css"],import.meta.url),"../pages/mouse-menu/example/example4.vue":()=>$(()=>import("./example4-2f51bf5c.js"),["./example4-2f51bf5c.js","./index.es-6d9dc425.js","./example4-524be554.css"],import.meta.url),"../pages/mouse-menu/example/example5.vue":()=>$(()=>import("./example5-2b5fb594.js"),["./example5-2b5fb594.js","./index.es-6d9dc425.js","./example5-25a3d175.css"],import.meta.url),"../pages/mouse-menu/example/example6.vue":()=>$(()=>import("./example6-bb6f2546.js"),["./example6-bb6f2546.js","./index.es-6d9dc425.js","./global-56066e04.js","./example6-b9f838f0.css"],import.meta.url),"../pages/mouse-menu/example/example7.vue":()=>$(()=>import("./example7-cb19db6e.js"),["./example7-cb19db6e.js","./index.es-6d9dc425.js","./example7-02db27c8.css"],import.meta.url),"../pages/resize/example/example1.vue":()=>$(()=>import("./example1-85342933.js"),["./example1-85342933.js","./index.es-724d9dc0.js","./example1-b5ccebc4.css"],import.meta.url),"../pages/resize/example/example2.vue":()=>$(()=>import("./example2-26846017.js"),["./example2-26846017.js","./index.es-724d9dc0.js","./example2-e2a1a384.css"],import.meta.url),"../pages/resize/example/example3.vue":()=>$(()=>import("./example3-ae3d1141.js"),["./example3-ae3d1141.js","./index.es-724d9dc0.js","./example3-01a6476e.css"],import.meta.url),"../pages/resize/example/example4.vue":()=>$(()=>import("./example4-93e762a2.js"),["./example4-93e762a2.js","./index.es-724d9dc0.js","./example4-08de4701.css"],import.meta.url),"../pages/resize/example/example5.vue":()=>$(()=>import("./example5-88ec16fb.js"),["./example5-88ec16fb.js","./index.es-724d9dc0.js","./example5-1d04a3ae.css"],import.meta.url),"../pages/scroll/example/example1.vue":()=>$(()=>import("./example1-ff00af60.js"),["./example1-ff00af60.js","./index.es-716f6261.js","./example1-0456098a.css"],import.meta.url),"../pages/scroll/example/example2.vue":()=>$(()=>import("./example2-3deaa583.js"),["./example2-3deaa583.js","./index.es-716f6261.js","./example2-ef8a729f.css"],import.meta.url),"../pages/scroll/example/example3.vue":()=>$(()=>import("./example3-33fab6e9.js"),["./example3-33fab6e9.js","./index.es-716f6261.js","./example3-a1cc75f4.css"],import.meta.url),"../pages/scroll/example/example4.vue":()=>$(()=>import("./example4-32ac5a91.js"),["./example4-32ac5a91.js","./index.es-716f6261.js","./example4-5507c0b4.css"],import.meta.url),"../pages/scroll/example/example5.vue":()=>$(()=>import("./example5-2b0afd4a.js"),["./example5-2b0afd4a.js","./index.es-716f6261.js","./example5-9560ce17.css"],import.meta.url),"../pages/size-observer/example/example1.vue":()=>$(()=>import("./example1-a24f68a4.js"),["./example1-a24f68a4.js","./index.es-f696db10.js","./example1-47bcdd6c.css"],import.meta.url),"../pages/size-observer/example/example2.vue":()=>$(()=>import("./example2-90cd60d4.js"),["./example2-90cd60d4.js","./index.es-f696db10.js","./example2-073202b4.css"],import.meta.url),"../pages/standard-tabs/example/example1.vue":()=>$(()=>import("./example1-c3fc10ea.js"),["./example1-c3fc10ea.js","./index.es-a5b3ac5e.js","./example1-d55094f4.css"],import.meta.url),"../pages/standard-tabs/example/example2.vue":()=>$(()=>import("./example2-f380d00f.js"),["./example2-f380d00f.js","./index.es-a5b3ac5e.js","./example2-370710f8.css"],import.meta.url),"../pages/to-control/example/example1.vue":()=>$(()=>import("./example1-4025dc3e.js"),["./example1-4025dc3e.js","./index.es-5fe20373.js","./index.es-de103fbd.js","./example1-81e9b21e.css"],import.meta.url),"../pages/to-control/example/example2.vue":()=>$(()=>import("./example2-6a3ab783.js"),["./example2-6a3ab783.js","./index.es-5fe20373.js","./index.es-de103fbd.js","./example2-a4ca8a13.css"],import.meta.url),"../pages/to-control/example/example3.vue":()=>$(()=>import("./example3-12972680.js"),["./example3-12972680.js","./index.es-5fe20373.js","./index.es-de103fbd.js","./example3-f766ae8d.css"],import.meta.url),"../pages/to-control/example/example4.vue":()=>$(()=>import("./example4-04fe3b86.js"),["./example4-04fe3b86.js","./index.es-5fe20373.js","./index.es-de103fbd.js","./example4-c25a3acf.css"],import.meta.url),"../pages/to-drag/example/example1.vue":()=>$(()=>import("./example1-4853d5ef.js"),["./example1-4853d5ef.js","./index.es-de103fbd.js","./example1-5fdfb5ae.css"],import.meta.url),"../pages/to-drag/example/example2.vue":()=>$(()=>import("./example2-c648ec64.js"),["./example2-c648ec64.js","./index.es-de103fbd.js","./example2-787b1002.css"],import.meta.url),"../pages/to-drag/example/example3.vue":()=>$(()=>import("./example3-4c2651bc.js"),["./example3-4c2651bc.js","./index.es-de103fbd.js","./example3-e3cda917.css"],import.meta.url),"../pages/to-drag/example/example4.vue":()=>$(()=>import("./example4-39fd5fce.js"),["./example4-39fd5fce.js","./index.es-de103fbd.js","./example4-970d1c15.css"],import.meta.url),"../pages/to-drag/example/example5.vue":()=>$(()=>import("./example5-bcf78a0c.js"),["./example5-bcf78a0c.js","./index.es-de103fbd.js","./example5-efc79f6b.css"],import.meta.url),"../pages/to-drag/example/example6.vue":()=>$(()=>import("./example6-488a4518.js"),["./example6-488a4518.js","./index.es-de103fbd.js","./example6-a1817199.css"],import.meta.url)}),nr={};Object.keys(Cs).map(e=>{const t=/^.*pages\/(.*)\/index.*$/,n=e.replace(t,(...r)=>r[1]);nr[n]=Cs[e]});const Fu=Du({history:uu(),routes:[{path:"/",name:"home",component:()=>$(()=>import("./home-ddc17b92.js"),["./home-ddc17b92.js","./ReadmeFrame-647e57d6.js","./ReadmeFrame-f98ef7e3.css"],import.meta.url)},...Object.keys(nr).map(e=>{const t=Object.keys(Ts).filter(n=>n.includes(e));return{path:`/${e}`,name:`${e}`,redirect:`/${e}/readme`,component:nr[e],children:[{path:`/${e}/readme`,name:`${e}-readme`,component:()=>$(()=>import("./PageReadme-5cb7bc53.js"),["./PageReadme-5cb7bc53.js","./dynamic-import-helper-be004503.js","./ReadmeFrame-647e57d6.js","./ReadmeFrame-f98ef7e3.css"],import.meta.url)},...t.map((n,r)=>({path:`/${e}/example${r+1}`,name:`${e}-example${r+1}`,component:Ts[n]}))]}})]});const Nu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},ju={};function Hu(e,t){const n=fl("router-view");return Rr(),wr(n)}const Bu=Nu(ju,[["render",Hu]]);const ni=Ac(Bu);ni.use(Fu);ni.mount("#app");export{ho as A,oo as B,Zu as C,lr as D,Qu as E,Oe as F,yt as G,ql as H,Cn as I,zu as J,nf as K,Wl as L,Gu as M,Ju as T,Nu as _,Bi as a,vn as b,wr as c,fo as d,Ae as e,rf as f,$ as g,Wu as h,Yu as i,ku as j,Fo as k,tf as l,qu as m,cr as n,Rr as o,Xu as p,me as q,fl as r,Ku as s,gi as t,sf as u,ef as v,sn as w,Uu as x,Ji as y,tl as z}; diff --git a/assets/index-0ba816e8.js b/assets/index-c0ef176e.js similarity index 85% rename from assets/index-0ba816e8.js rename to assets/index-c0ef176e.js index 5f19978..8726976 100644 --- a/assets/index-0ba816e8.js +++ b/assets/index-c0ef176e.js @@ -1 +1 @@ -import{E as m}from"./ExampleFrame-00387080.js";import{d as n,_ as t,r as o,o as i,c as r}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=n({components:{ExampleFrame:m},setup(){return{mainName:"resize",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Flex Basic",introduce:"Flex布局-默认"},{name:"Flex Multiple",introduce:"Flex布局-两列"},{name:"Absolute Basic",introduce:"Absolute定位布局"},{name:"All Direction",introduce:"Abosulute-全方向"},{name:"Immediate",introduce:"直接更改宽高"}]}}});function l(e,p,c,d,u,x){const a=o("example-frame");return i(),r(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList,"disabled-mobile":""},null,8,["main-name","readme-list","example-list"])}const F=t(s,[["render",l]]);export{F as default}; +import{E as m}from"./ExampleFrame-6afa260f.js";import{d as n,_ as t,r as o,o as i,c as r}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=n({components:{ExampleFrame:m},setup(){return{mainName:"resize",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Flex Basic",introduce:"Flex布局-默认"},{name:"Flex Multiple",introduce:"Flex布局-两列"},{name:"Absolute Basic",introduce:"Absolute定位布局"},{name:"All Direction",introduce:"Abosulute-全方向"},{name:"Immediate",introduce:"直接更改宽高"}]}}});function l(e,p,c,d,u,x){const a=o("example-frame");return i(),r(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList,"disabled-mobile":""},null,8,["main-name","readme-list","example-list"])}const F=t(s,[["render",l]]);export{F as default}; diff --git a/assets/index-f3933683.js b/assets/index-d0878504.js similarity index 84% rename from assets/index-f3933683.js rename to assets/index-d0878504.js index 7857b53..34078ff 100644 --- a/assets/index-f3933683.js +++ b/assets/index-d0878504.js @@ -1 +1 @@ -import{E as m}from"./ExampleFrame-00387080.js";import{d as n,_ as o,r,o as t,c as s}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=n({components:{ExampleFrame:m},setup(){return{mainName:"scroll",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Custom Style",introduce:"自定义样式"},{name:"Hover Mode",introduce:"悬停展示"},{name:"Drag Scroll",introduce:"拖拽滚动"},{name:"Update",introduce:"更新滚动条"}]}}});function l(e,p,c,d,u,f){const a=r("example-frame");return t(),s(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList,"disabled-mobile":""},null,8,["main-name","readme-list","example-list"])}const $=o(i,[["render",l]]);export{$ as default}; +import{E as m}from"./ExampleFrame-6afa260f.js";import{d as n,_ as o,r,o as t,c as s}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const i=n({components:{ExampleFrame:m},setup(){return{mainName:"scroll",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Custom Style",introduce:"自定义样式"},{name:"Hover Mode",introduce:"悬停展示"},{name:"Drag Scroll",introduce:"拖拽滚动"},{name:"Update",introduce:"更新滚动条"}]}}});function l(e,p,c,d,u,f){const a=r("example-frame");return t(),s(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList,"disabled-mobile":""},null,8,["main-name","readme-list","example-list"])}const $=o(i,[["render",l]]);export{$ as default}; diff --git a/assets/index-e1ade818.js b/assets/index-db456421.js similarity index 83% rename from assets/index-e1ade818.js rename to assets/index-db456421.js index 8685cb0..5ffe863 100644 --- a/assets/index-e1ade818.js +++ b/assets/index-db456421.js @@ -1 +1 @@ -import{E as n}from"./ExampleFrame-00387080.js";import{d as m,_ as o,r as t,o as i,c as r}from"./index-e4e05649.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=m({components:{ExampleFrame:n},setup(){return{mainName:"animation-dialog",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Self Open",introduce:"以自身作为打开元素"},{name:"Animation Mode",introduce:"Animate.css动画模式"},{name:"Slot",introduce:"插槽"}]}}});function p(e,c,l,d,u,f){const a=t("example-frame");return i(),r(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=o(s,[["render",p]]);export{$ as default}; +import{E as n}from"./ExampleFrame-6afa260f.js";import{d as m,_ as o,r as t,o as i,c as r}from"./index-9e0334f6.js";import"./dynamic-import-helper-be004503.js";import"./index.es-724d9dc0.js";const s=m({components:{ExampleFrame:n},setup(){return{mainName:"animation-dialog",readmeList:[{name:"README",introduce:"说明文档"}],exampleList:[{name:"Basic",introduce:"默认"},{name:"Self Open",introduce:"以自身作为打开元素"},{name:"Animation Mode",introduce:"Animate.css动画模式"},{name:"Slot",introduce:"插槽"}]}}});function p(e,c,l,d,u,f){const a=t("example-frame");return i(),r(a,{"main-name":e.mainName,"readme-list":e.readmeList,"example-list":e.exampleList},null,8,["main-name","readme-list","example-list"])}const $=o(s,[["render",p]]);export{$ as default}; diff --git a/assets/index-e4e05649.js b/assets/index-e4e05649.js deleted file mode 100644 index 2e9a703..0000000 --- a/assets/index-e4e05649.js +++ /dev/null @@ -1,21 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** -* @vue/shared v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function or(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const ee={},ht=[],be=()=>{},Yo=()=>!1,hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ir=e=>e.startsWith("onUpdate:"),ce=Object.assign,lr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xo=Object.prototype.hasOwnProperty,U=(e,t)=>Xo.call(e,t),V=Array.isArray,mt=e=>Ut(e)==="[object Map]",mn=e=>Ut(e)==="[object Set]",Mr=e=>Ut(e)==="[object Date]",k=e=>typeof e=="function",re=e=>typeof e=="string",Ye=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",Vs=e=>(Y(e)||k(e))&&k(e.then)&&k(e.catch),Ds=Object.prototype.toString,Ut=e=>Ds.call(e),Zo=e=>Ut(e).slice(8,-1),Ns=e=>Ut(e)==="[object Object]",cr=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,St=or(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ei=/-(\w)/g,$e=gn(e=>e.replace(ei,(t,n)=>n?n.toUpperCase():"")),ti=/\B([A-Z])/g,Rt=gn(e=>e.replace(ti,"-$1").toLowerCase()),_n=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),In=gn(e=>e?`on${_n(e)}`:""),Xe=(e,t)=>!Object.is(e,t),en=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ni=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Vr;const $s=()=>Vr||(Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ur(e){if(V(e)){const t={};for(let n=0;n{if(n){const r=n.split(si);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function fr(e){let t="";if(re(e))t=e;else if(V(e))for(let n=0;nyn(n,t))}const Lu=e=>re(e)?e:e==null?"":V(e)||Y(e)&&(e.toString===Ds||!k(e.toString))?JSON.stringify(e,Hs,2):String(e),Hs=(e,t)=>t&&t.__v_isRef?Hs(e,t.value):mt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Ln(r,o)+" =>"]=s,n),{})}:mn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ln(n))}:Ye(t)?Ln(t):Y(t)&&!V(t)&&!Ns(t)?String(t):t,Ln=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Pe;class fi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}}on(){Pe=this}off(){Pe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ct()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Qe,n=ot;try{return Qe=!0,ot=this,this._runnings++,Dr(this),this.fn()}finally{Nr(this),this._runnings--,ot=n,Qe=t}}stop(){var t;this.active&&(Dr(this),Nr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function pi(e){return e.value}function Dr(e){e._trackId++,e._depsLength=0}function Nr(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},zn=new WeakMap,it=Symbol(""),Wn=Symbol("");function _e(e,t,n){if(Qe&&ot){let r=zn.get(e);r||zn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=zs(()=>r.delete(n))),Ks(ot,s)}}function He(e,t,n,r,s,o){const i=zn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&V(e)){const c=Number(r);i.forEach((d,f)=>{(f==="length"||!Ye(f)&&f>=c)&&l.push(d)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":V(e)?cr(n)&&l.push(i.get("length")):(l.push(i.get(it)),mt(e)&&l.push(i.get(Wn)));break;case"delete":V(e)||(l.push(i.get(it)),mt(e)&&l.push(i.get(Wn)));break;case"set":mt(e)&&l.push(i.get(it));break}dr();for(const c of l)c&&Us(c,4);pr()}const hi=or("__proto__,__v_isRef,__isVue"),Ws=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye)),$r=mi();function mi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=z(this);for(let o=0,i=this.length;o{e[t]=function(...n){lt(),dr();const r=z(this)[t].apply(this,n);return pr(),ct(),r}}),e}function gi(e){const t=z(this);return _e(t,"has",e),t.hasOwnProperty(e)}class qs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Ti:Ys:o?Js:Qs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=V(t);if(!s){if(i&&U($r,n))return Reflect.get($r,n,r);if(n==="hasOwnProperty")return gi}const l=Reflect.get(t,n,r);return(Ye(n)?Ws.has(n):hi(n))||(s||_e(t,"get",n),o)?l:ye(l)?i&&cr(n)?l:l.value:Y(l)?s?Zs(l):En(l):l}}class Gs extends qs{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=vt(o);if(!cn(r)&&!vt(r)&&(o=z(o),r=z(r)),!V(t)&&ye(o)&&!ye(r))return c?!1:(o.value=r,!0)}const i=V(t)&&cr(n)?Number(n)e,vn=e=>Reflect.getPrototypeOf(e);function qt(e,t,n=!1,r=!1){e=e.__v_raw;const s=z(e),o=z(t);n||(Xe(t,o)&&_e(s,"get",t),_e(s,"get",o));const{has:i}=vn(s),l=r?hr:n?_r:Ft;if(i.call(s,t))return l(e.get(t));if(i.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function Gt(e,t=!1){const n=this.__v_raw,r=z(n),s=z(e);return t||(Xe(e,s)&&_e(r,"has",e),_e(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Qt(e,t=!1){return e=e.__v_raw,!t&&_e(z(e),"iterate",it),Reflect.get(e,"size",e)}function Fr(e){e=z(e);const t=z(this);return vn(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function jr(e,t){t=z(t);const n=z(this),{has:r,get:s}=vn(n);let o=r.call(n,e);o||(e=z(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?Xe(t,i)&&He(n,"set",e,t):He(n,"add",e,t),this}function Hr(e){const t=z(this),{has:n,get:r}=vn(t);let s=n.call(t,e);s||(e=z(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&He(t,"delete",e,void 0),o}function kr(){const e=z(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function Jt(e,t){return function(r,s){const o=this,i=o.__v_raw,l=z(i),c=t?hr:e?_r:Ft;return!e&&_e(l,"iterate",it),i.forEach((d,f)=>r.call(s,c(d),c(f),o))}}function Yt(e,t,n){return function(...r){const s=this.__v_raw,o=z(s),i=mt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,d=s[e](...r),f=n?hr:t?_r:Ft;return!t&&_e(o,"iterate",c?Wn:it),{next(){const{value:p,done:h}=d.next();return h?{value:p,done:h}:{value:l?[f(p[0]),f(p[1])]:f(p),done:h}},[Symbol.iterator](){return this}}}}function Ke(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xi(){const e={get(o){return qt(this,o)},get size(){return Qt(this)},has:Gt,add:Fr,set:jr,delete:Hr,clear:kr,forEach:Jt(!1,!1)},t={get(o){return qt(this,o,!1,!0)},get size(){return Qt(this)},has:Gt,add:Fr,set:jr,delete:Hr,clear:kr,forEach:Jt(!1,!0)},n={get(o){return qt(this,o,!0)},get size(){return Qt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:Jt(!0,!1)},r={get(o){return qt(this,o,!0,!0)},get size(){return Qt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:Jt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Yt(o,!1,!1),n[o]=Yt(o,!0,!1),t[o]=Yt(o,!1,!0),r[o]=Yt(o,!0,!0)}),[e,n,t,r]}const[bi,Ri,Pi,wi]=xi();function mr(e,t){const n=t?e?wi:Pi:e?Ri:bi;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(U(n,s)&&s in r?n:r,s,o)}const Ai={get:mr(!1,!1)},Oi={get:mr(!1,!0)},Ci={get:mr(!0,!1)},Qs=new WeakMap,Js=new WeakMap,Ys=new WeakMap,Ti=new WeakMap;function Si(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ii(e){return e.__v_skip||!Object.isExtensible(e)?0:Si(Zo(e))}function En(e){return vt(e)?e:gr(e,!1,yi,Ai,Qs)}function Xs(e){return gr(e,!1,Ei,Oi,Js)}function Zs(e){return gr(e,!0,vi,Ci,Ys)}function gr(e,t,n,r,s){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Ii(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function gt(e){return vt(e)?gt(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function cn(e){return!!(e&&e.__v_isShallow)}function eo(e){return gt(e)||vt(e)}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function to(e){return Object.isExtensible(e)&&ln(e,"__v_skip",!0),e}const Ft=e=>Y(e)?En(e):e,_r=e=>Y(e)?Zs(e):e;class no{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ar(()=>t(this._value),()=>tn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=z(this);return(!t._cacheable||t.effect.dirty)&&Xe(t._value,t._value=t.effect.run())&&tn(t,4),ro(t),t.effect._dirtyLevel>=2&&tn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Li(e,t,n=!1){let r,s;const o=k(e);return o?(r=e,s=be):(r=e.get,s=e.set),new no(r,s,o||!s,n)}function ro(e){var t;Qe&&ot&&(e=z(e),Ks(ot,(t=e.dep)!=null?t:e.dep=zs(()=>e.dep=void 0,e instanceof no?e:void 0)))}function tn(e,t=4,n){e=z(e);const r=e.dep;r&&Us(r,t)}function ye(e){return!!(e&&e.__v_isRef===!0)}function Mi(e){return so(e,!1)}function Vi(e){return so(e,!0)}function so(e,t){return ye(e)?e:new Di(e,t)}class Di{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:z(t),this._value=n?t:Ft(t)}get value(){return ro(this),this._value}set value(t){const n=this.__v_isShallow||cn(t)||vt(t);t=n?t:z(t),Xe(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ft(t),tn(this,4))}}function _t(e){return ye(e)?e.value:e}const Ni={get:(e,t,n)=>_t(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ye(s)&&!ye(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function oo(e){return gt(e)?e:new Proxy(e,Ni)}/** -* @vue/runtime-core v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Je(e,t,n,r){try{return r?e(...r):e()}catch(s){xn(s,t,n)}}function Ce(e,t,n,r){if(k(e)){const o=Je(e,t,n,r);return o&&Vs(o)&&o.catch(i=>{xn(i,t,n)}),o}const s=[];for(let o=0;o>>1,s=fe[r],o=Ht(s);oNe&&fe.splice(t,1)}function Hi(e){V(e)?yt.push(...e):(!ze||!ze.includes(e,e.allowRecurse?rt+1:rt))&&yt.push(e),co()}function Br(e,t,n=jt?Ne+1:0){for(;nHt(n)-Ht(r));if(yt.length=0,ze){ze.push(...t);return}for(ze=t,rt=0;rte.id==null?1/0:e.id,ki=(e,t)=>{const n=Ht(e)-Ht(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function fo(e){qn=!1,jt=!0,fe.sort(ki);const t=be;try{for(Ne=0;Nere(v)?v.trim():v)),p&&(s=n.map(ni))}let l,c=r[l=In(t)]||r[l=In($e(t))];!c&&o&&(c=r[l=In(Rt(t))]),c&&Ce(c,e,6,s);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ce(d,e,6,s)}}function ao(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!k(e)){const c=d=>{const f=ao(d,t,!0);f&&(l=!0,ce(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Y(e)&&r.set(e,null),null):(V(o)?o.forEach(c=>i[c]=null):ce(i,o),Y(e)&&r.set(e,i),i)}function bn(e,t){return!e||!hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),U(e,t[0].toLowerCase()+t.slice(1))||U(e,Rt(t))||U(e,t))}let le=null,Rn=null;function un(e){const t=le;return le=e,Rn=e&&e.type.__scopeId||null,t}function Mu(e){Rn=e}function Vu(){Rn=null}function Ki(e,t=le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ts(-1);const o=un(t);let i;try{i=e(...s)}finally{un(o),r._d&&ts(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Mn(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:l,attrs:c,emit:d,render:f,renderCache:p,data:h,setupState:v,ctx:C,inheritAttrs:S}=e;let j,I;const $=un(e);try{if(n.shapeFlag&4){const K=s||r,X=K;j=De(f.call(X,K,p,o,v,h,C)),I=c}else{const K=t;j=De(K.length>1?K(o,{attrs:c,slots:l,emit:d}):K(o,null)),I=t.props?c:Ui(c)}}catch(K){Dt.length=0,xn(K,e,1),j=ge(Ze)}let H=j;if(I&&S!==!1){const K=Object.keys(I),{shapeFlag:X}=H;K.length&&X&7&&(i&&K.some(ir)&&(I=zi(I,i)),H=Et(H,I))}return n.dirs&&(H=Et(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),j=H,un($),j}const Ui=e=>{let t;for(const n in e)(n==="class"||n==="style"||hn(n))&&((t||(t={}))[n]=e[n]);return t},zi=(e,t)=>{const n={};for(const r in e)(!ir(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Wi(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Kr(r,i,d):!!i;if(c&8){const f=t.dynamicProps;for(let p=0;pe.__isSuspense;function Yi(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Hi(e)}const Xi=Symbol.for("v-scx"),Zi=()=>Te(Xi),Xt={};function nn(e,t,n){return ho(e,t,n)}function ho(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:l}=ee){if(t&&o){const D=t;t=(...Z)=>{D(...Z),X()}}const c=ae,d=D=>r===!0?D:st(D,r===!1?1:void 0);let f,p=!1,h=!1;if(ye(e)?(f=()=>e.value,p=cn(e)):gt(e)?(f=()=>d(e),p=!0):V(e)?(h=!0,p=e.some(D=>gt(D)||cn(D)),f=()=>e.map(D=>{if(ye(D))return D.value;if(gt(D))return d(D);if(k(D))return Je(D,c,2)})):k(e)?t?f=()=>Je(e,c,2):f=()=>(v&&v(),Ce(e,c,3,[C])):f=be,t&&r){const D=f;f=()=>st(D())}let v,C=D=>{v=H.onStop=()=>{Je(D,c,4),v=H.onStop=void 0}},S;if(On)if(C=be,t?n&&Ce(t,c,3,[f(),h?[]:void 0,C]):f(),s==="sync"){const D=Zi();S=D.__watcherHandles||(D.__watcherHandles=[])}else return be;let j=h?new Array(e.length).fill(Xt):Xt;const I=()=>{if(!(!H.active||!H.dirty))if(t){const D=H.run();(r||p||(h?D.some((Z,se)=>Xe(Z,j[se])):Xe(D,j)))&&(v&&v(),Ce(t,c,3,[D,j===Xt?void 0:h&&j[0]===Xt?[]:j,C]),j=D)}else H.run()};I.allowRecurse=!!t;let $;s==="sync"?$=I:s==="post"?$=()=>me(I,c&&c.suspense):(I.pre=!0,c&&(I.id=c.uid),$=()=>vr(I));const H=new ar(f,be,$),K=di(),X=()=>{H.stop(),K&&lr(K.effects,H)};return t?n?I():j=H.run():s==="post"?me(H.run.bind(H),c&&c.suspense):H.run(),S&&S.push(X),X}function el(e,t,n){const r=this.proxy,s=re(e)?e.includes(".")?mo(r,e):()=>r[e]:e.bind(r,r);let o;k(t)?o=t:(o=t.handler,n=t);const i=zt(this),l=ho(s,o.bind(r),n);return i(),l}function mo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),ye(e))st(e.value,t,n,r);else if(V(e))for(let s=0;s{st(s,t,n,r)});else if(Ns(e))for(const s in e)st(e[s],t,n,r);return e}function $u(e,t){if(le===null)return e;const n=Cn(le)||le.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;sce({name:e.name},t,{setup:e}))():e}const It=e=>!!e.type.__asyncLoader,_o=e=>e.type.__isKeepAlive;function tl(e,t){yo(e,"a",t)}function nl(e,t){yo(e,"da",t)}function yo(e,t,n=ae){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Pn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)_o(s.parent.vnode)&&rl(r,t,n,s),s=s.parent}}function rl(e,t,n,r){const s=Pn(t,e,r,!0);vo(()=>{lr(r[t],s)},n)}function Pn(e,t,n=ae,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;lt();const l=zt(n),c=Ce(t,n,e,i);return l(),ct(),c});return r?s.unshift(o):s.push(o),o}}const ke=e=>(t,n=ae)=>(!On||e==="sp")&&Pn(e,(...r)=>t(...r),n),sl=ke("bm"),ol=ke("m"),il=ke("bu"),ll=ke("u"),cl=ke("bum"),vo=ke("um"),ul=ke("sp"),fl=ke("rtg"),al=ke("rtc");function dl(e,t=ae){Pn("ec",e,t)}function Fu(e,t,n,r){let s;const o=n&&n[r];if(V(e)||re(e)){s=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;l{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function Hu(e,t,n={},r,s){if(le.isCE||le.parent&&It(le.parent)&&le.parent.isCE)return t!=="default"&&(n.name=t),ge("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),wr();const i=o&&Eo(o(n)),l=Ar(we,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Eo(e){return e.some(t=>an(t)?!(t.type===Ze||t.type===we&&!Eo(t.children)):!0)?e:null}const Gn=e=>e?Mo(e)?Cn(e)||e.proxy:Gn(e.parent):null,Lt=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>br(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,vr(e.update)}),$nextTick:e=>e.n||(e.n=lo.bind(e.proxy)),$watch:e=>el.bind(e)}),Vn=(e,t)=>e!==ee&&!e.__isScriptSetup&&U(e,t),pl={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Vn(r,t))return i[t]=1,r[t];if(s!==ee&&U(s,t))return i[t]=2,s[t];if((d=e.propsOptions[0])&&U(d,t))return i[t]=3,o[t];if(n!==ee&&U(n,t))return i[t]=4,n[t];Qn&&(i[t]=0)}}const f=Lt[t];let p,h;if(f)return t==="$attrs"&&_e(e,"get",t),f(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==ee&&U(n,t))return i[t]=4,n[t];if(h=c.config.globalProperties,U(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Vn(s,t)?(s[t]=n,!0):r!==ee&&U(r,t)?(r[t]=n,!0):U(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==ee&&U(e,i)||Vn(t,i)||(l=o[0])&&U(l,i)||U(r,i)||U(Lt,i)||U(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:U(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zr(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Qn=!0;function hl(e){const t=br(e),n=e.proxy,r=e.ctx;Qn=!1,t.beforeCreate&&Wr(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:d,created:f,beforeMount:p,mounted:h,beforeUpdate:v,updated:C,activated:S,deactivated:j,beforeDestroy:I,beforeUnmount:$,destroyed:H,unmounted:K,render:X,renderTracked:D,renderTriggered:Z,errorCaptured:se,serverPrefetch:ve,expose:pe,inheritAttrs:Ee,components:et,directives:Ie,filters:Pt}=t;if(d&&ml(d,r,null),i)for(const Q in i){const W=i[Q];k(W)&&(r[Q]=W.bind(n))}if(s){const Q=s.call(n,n);Y(Q)&&(e.data=En(Q))}if(Qn=!0,o)for(const Q in o){const W=o[Q],Fe=k(W)?W.bind(n,n):k(W.get)?W.get.bind(n,n):be,Be=!k(W)&&k(W.set)?W.set.bind(n):be,Le=Ae({get:Fe,set:Be});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Le.value,set:he=>Le.value=he})}if(l)for(const Q in l)xo(l[Q],r,n,Q);if(c){const Q=k(c)?c.call(n):c;Reflect.ownKeys(Q).forEach(W=>{rn(W,Q[W])})}f&&Wr(f,e,"c");function oe(Q,W){V(W)?W.forEach(Fe=>Q(Fe.bind(n))):W&&Q(W.bind(n))}if(oe(sl,p),oe(ol,h),oe(il,v),oe(ll,C),oe(tl,S),oe(nl,j),oe(dl,se),oe(al,D),oe(fl,Z),oe(cl,$),oe(vo,K),oe(ul,ve),V(pe))if(pe.length){const Q=e.exposed||(e.exposed={});pe.forEach(W=>{Object.defineProperty(Q,W,{get:()=>n[W],set:Fe=>n[W]=Fe})})}else e.exposed||(e.exposed={});X&&e.render===be&&(e.render=X),Ee!=null&&(e.inheritAttrs=Ee),et&&(e.components=et),Ie&&(e.directives=Ie)}function ml(e,t,n=be){V(e)&&(e=Jn(e));for(const r in e){const s=e[r];let o;Y(s)?"default"in s?o=Te(s.from||r,s.default,!0):o=Te(s.from||r):o=Te(s),ye(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Wr(e,t,n){Ce(V(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function xo(e,t,n,r){const s=r.includes(".")?mo(n,r):()=>n[r];if(re(e)){const o=t[e];k(o)&&nn(s,o)}else if(k(e))nn(s,e.bind(n));else if(Y(e))if(V(e))e.forEach(o=>xo(o,t,n,r));else{const o=k(e.handler)?e.handler.bind(n):t[e.handler];k(o)&&nn(s,o,e)}}function br(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(d=>fn(c,d,i,!0)),fn(c,t,i)),Y(t)&&o.set(t,c),c}function fn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&fn(e,o,n,!0),s&&s.forEach(i=>fn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=gl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const gl={data:qr,props:Gr,emits:Gr,methods:Tt,computed:Tt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:Tt,directives:Tt,watch:yl,provide:qr,inject:_l};function qr(e,t){return t?e?function(){return ce(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function _l(e,t){return Tt(Jn(e),Jn(t))}function Jn(e){if(V(e)){const t={};for(let n=0;n1)return n&&k(t)?t.call(r&&r.proxy):t}}function xl(e,t,n,r=!1){const s={},o={};ln(o,An,1),e.propsDefaults=Object.create(null),Ro(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Xs(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function bl(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=z(s),[c]=e.propsOptions;let d=!1;if((r||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[h,v]=Po(p,t,!0);ce(i,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return Y(e)&&r.set(e,ht),ht;if(V(o))for(let f=0;f-1,v[1]=S<0||C-1||U(v,"default"))&&l.push(p)}}}const d=[i,l];return Y(e)&&r.set(e,d),d}function Qr(e){return e[0]!=="$"&&!St(e)}function Jr(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Yr(e,t){return Jr(e)===Jr(t)}function Xr(e,t){return V(t)?t.findIndex(n=>Yr(n,e)):k(t)&&Yr(t,e)?0:-1}const wo=e=>e[0]==="_"||e==="$stable",Rr=e=>V(e)?e.map(De):[De(e)],Rl=(e,t,n)=>{if(t._n)return t;const r=Ki((...s)=>Rr(t(...s)),n);return r._c=!1,r},Ao=(e,t,n)=>{const r=e._ctx;for(const s in e){if(wo(s))continue;const o=e[s];if(k(o))t[s]=Rl(s,o,r);else if(o!=null){const i=Rr(o);t[s]=()=>i}}},Oo=(e,t)=>{const n=Rr(t);e.slots.default=()=>n},Pl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=z(t),ln(t,"_",n)):Ao(t,e.slots={})}else e.slots={},t&&Oo(e,t);ln(e.slots,An,1)},wl=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ee;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ce(s,t),!n&&l===1&&delete s._):(o=!t.$stable,Ao(t,s)),i=t}else t&&(Oo(e,t),i={default:1});if(o)for(const l in s)!wo(l)&&i[l]==null&&delete s[l]};function Xn(e,t,n,r,s=!1){if(V(e)){e.forEach((h,v)=>Xn(h,t&&(V(t)?t[v]:t),n,r,s));return}if(It(r)&&!s)return;const o=r.shapeFlag&4?Cn(r.component)||r.component.proxy:r.el,i=s?null:o,{i:l,r:c}=e,d=t&&t.r,f=l.refs===ee?l.refs={}:l.refs,p=l.setupState;if(d!=null&&d!==c&&(re(d)?(f[d]=null,U(p,d)&&(p[d]=null)):ye(d)&&(d.value=null)),k(c))Je(c,l,12,[i,f]);else{const h=re(c),v=ye(c);if(h||v){const C=()=>{if(e.f){const S=h?U(p,c)?p[c]:f[c]:c.value;s?V(S)&&lr(S,o):V(S)?S.includes(o)||S.push(o):h?(f[c]=[o],U(p,c)&&(p[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else h?(f[c]=i,U(p,c)&&(p[c]=i)):v&&(c.value=i,e.k&&(f[e.k]=i))};i?(C.id=-1,me(C,n)):C()}}}const me=Yi;function Al(e){return Ol(e)}function Ol(e,t){const n=$s();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:c,setText:d,setElementText:f,parentNode:p,nextSibling:h,setScopeId:v=be,insertStaticContent:C}=e,S=(u,a,m,y=null,g=null,b=null,w=void 0,x=null,R=!!a.dynamicChildren)=>{if(u===a)return;u&&!At(u,a)&&(y=_(u),he(u,g,b,!0),u=null),a.patchFlag===-2&&(R=!1,a.dynamicChildren=null);const{type:E,ref:O,shapeFlag:M}=a;switch(E){case wn:j(u,a,m,y);break;case Ze:I(u,a,m,y);break;case Nn:u==null&&$(a,m,y,w);break;case we:et(u,a,m,y,g,b,w,x,R);break;default:M&1?X(u,a,m,y,g,b,w,x,R):M&6?Ie(u,a,m,y,g,b,w,x,R):(M&64||M&128)&&E.process(u,a,m,y,g,b,w,x,R,T)}O!=null&&g&&Xn(O,u&&u.ref,b,a||u,!a)},j=(u,a,m,y)=>{if(u==null)r(a.el=l(a.children),m,y);else{const g=a.el=u.el;a.children!==u.children&&d(g,a.children)}},I=(u,a,m,y)=>{u==null?r(a.el=c(a.children||""),m,y):a.el=u.el},$=(u,a,m,y)=>{[u.el,u.anchor]=C(u.children,a,m,y,u.el,u.anchor)},H=({el:u,anchor:a},m,y)=>{let g;for(;u&&u!==a;)g=h(u),r(u,m,y),u=g;r(a,m,y)},K=({el:u,anchor:a})=>{let m;for(;u&&u!==a;)m=h(u),s(u),u=m;s(a)},X=(u,a,m,y,g,b,w,x,R)=>{a.type==="svg"?w="svg":a.type==="math"&&(w="mathml"),u==null?D(a,m,y,g,b,w,x,R):ve(u,a,g,b,w,x,R)},D=(u,a,m,y,g,b,w,x)=>{let R,E;const{props:O,shapeFlag:M,transition:L,dirs:F}=u;if(R=u.el=i(u.type,b,O&&O.is,O),M&8?f(R,u.children):M&16&&se(u.children,R,null,y,g,Dn(u,b),w,x),F&&tt(u,null,y,"created"),Z(R,u,u.scopeId,w,y),O){for(const J in O)J!=="value"&&!St(J)&&o(R,J,null,O[J],b,u.children,y,g,ue);"value"in O&&o(R,"value",null,O.value,b),(E=O.onVnodeBeforeMount)&&Ve(E,y,u)}F&&tt(u,null,y,"beforeMount");const B=Cl(g,L);B&&L.beforeEnter(R),r(R,a,m),((E=O&&O.onVnodeMounted)||B||F)&&me(()=>{E&&Ve(E,y,u),B&&L.enter(R),F&&tt(u,null,y,"mounted")},g)},Z=(u,a,m,y,g)=>{if(m&&v(u,m),y)for(let b=0;b{for(let E=R;E{const x=a.el=u.el;let{patchFlag:R,dynamicChildren:E,dirs:O}=a;R|=u.patchFlag&16;const M=u.props||ee,L=a.props||ee;let F;if(m&&nt(m,!1),(F=L.onVnodeBeforeUpdate)&&Ve(F,m,a,u),O&&tt(a,u,m,"beforeUpdate"),m&&nt(m,!0),E?pe(u.dynamicChildren,E,x,m,y,Dn(a,g),b):w||W(u,a,x,null,m,y,Dn(a,g),b,!1),R>0){if(R&16)Ee(x,a,M,L,m,y,g);else if(R&2&&M.class!==L.class&&o(x,"class",null,L.class,g),R&4&&o(x,"style",M.style,L.style,g),R&8){const B=a.dynamicProps;for(let J=0;J{F&&Ve(F,m,a,u),O&&tt(a,u,m,"updated")},y)},pe=(u,a,m,y,g,b,w)=>{for(let x=0;x{if(m!==y){if(m!==ee)for(const x in m)!St(x)&&!(x in y)&&o(u,x,m[x],null,w,a.children,g,b,ue);for(const x in y){if(St(x))continue;const R=y[x],E=m[x];R!==E&&x!=="value"&&o(u,x,E,R,w,a.children,g,b,ue)}"value"in y&&o(u,"value",m.value,y.value,w)}},et=(u,a,m,y,g,b,w,x,R)=>{const E=a.el=u?u.el:l(""),O=a.anchor=u?u.anchor:l("");let{patchFlag:M,dynamicChildren:L,slotScopeIds:F}=a;F&&(x=x?x.concat(F):F),u==null?(r(E,m,y),r(O,m,y),se(a.children||[],m,O,g,b,w,x,R)):M>0&&M&64&&L&&u.dynamicChildren?(pe(u.dynamicChildren,L,m,g,b,w,x),(a.key!=null||g&&a===g.subTree)&&Pr(u,a,!0)):W(u,a,m,O,g,b,w,x,R)},Ie=(u,a,m,y,g,b,w,x,R)=>{a.slotScopeIds=x,u==null?a.shapeFlag&512?g.ctx.activate(a,m,y,w,R):Pt(a,m,y,g,b,w,R):ut(u,a,R)},Pt=(u,a,m,y,g,b,w)=>{const x=u.component=Hl(u,y,g);if(_o(u)&&(x.ctx.renderer=T),kl(x),x.asyncDep){if(g&&g.registerDep(x,oe),!u.el){const R=x.subTree=ge(Ze);I(null,R,a,m)}}else oe(x,u,a,m,g,b,w)},ut=(u,a,m)=>{const y=a.component=u.component;if(Wi(u,a,m))if(y.asyncDep&&!y.asyncResolved){Q(y,a,m);return}else y.next=a,ji(y.update),y.effect.dirty=!0,y.update();else a.el=u.el,y.vnode=a},oe=(u,a,m,y,g,b,w)=>{const x=()=>{if(u.isMounted){let{next:O,bu:M,u:L,parent:F,vnode:B}=u;{const dt=Co(u);if(dt){O&&(O.el=B.el,Q(u,O,w)),dt.asyncDep.then(()=>{u.isUnmounted||x()});return}}let J=O,ne;nt(u,!1),O?(O.el=B.el,Q(u,O,w)):O=B,M&&en(M),(ne=O.props&&O.props.onVnodeBeforeUpdate)&&Ve(ne,F,O,B),nt(u,!0);const ie=Mn(u),Re=u.subTree;u.subTree=ie,S(Re,ie,p(Re.el),_(Re),u,g,b),O.el=ie.el,J===null&&qi(u,ie.el),L&&me(L,g),(ne=O.props&&O.props.onVnodeUpdated)&&me(()=>Ve(ne,F,O,B),g)}else{let O;const{el:M,props:L}=a,{bm:F,m:B,parent:J}=u,ne=It(a);if(nt(u,!1),F&&en(F),!ne&&(O=L&&L.onVnodeBeforeMount)&&Ve(O,J,a),nt(u,!0),M&&te){const ie=()=>{u.subTree=Mn(u),te(M,u.subTree,u,g,null)};ne?a.type.__asyncLoader().then(()=>!u.isUnmounted&&ie()):ie()}else{const ie=u.subTree=Mn(u);S(null,ie,m,y,u,g,b),a.el=ie.el}if(B&&me(B,g),!ne&&(O=L&&L.onVnodeMounted)){const ie=a;me(()=>Ve(O,J,ie),g)}(a.shapeFlag&256||J&&It(J.vnode)&&J.vnode.shapeFlag&256)&&u.a&&me(u.a,g),u.isMounted=!0,a=m=y=null}},R=u.effect=new ar(x,be,()=>vr(E),u.scope),E=u.update=()=>{R.dirty&&R.run()};E.id=u.uid,nt(u,!0),E()},Q=(u,a,m)=>{a.component=u;const y=u.vnode.props;u.vnode=a,u.next=null,bl(u,a.props,y,m),wl(u,a.children,m),lt(),Br(u),ct()},W=(u,a,m,y,g,b,w,x,R=!1)=>{const E=u&&u.children,O=u?u.shapeFlag:0,M=a.children,{patchFlag:L,shapeFlag:F}=a;if(L>0){if(L&128){Be(E,M,m,y,g,b,w,x,R);return}else if(L&256){Fe(E,M,m,y,g,b,w,x,R);return}}F&8?(O&16&&ue(E,g,b),M!==E&&f(m,M)):O&16?F&16?Be(E,M,m,y,g,b,w,x,R):ue(E,g,b,!0):(O&8&&f(m,""),F&16&&se(M,m,y,g,b,w,x,R))},Fe=(u,a,m,y,g,b,w,x,R)=>{u=u||ht,a=a||ht;const E=u.length,O=a.length,M=Math.min(E,O);let L;for(L=0;LO?ue(u,g,b,!0,!1,M):se(a,m,y,g,b,w,x,R,M)},Be=(u,a,m,y,g,b,w,x,R)=>{let E=0;const O=a.length;let M=u.length-1,L=O-1;for(;E<=M&&E<=L;){const F=u[E],B=a[E]=R?We(a[E]):De(a[E]);if(At(F,B))S(F,B,m,null,g,b,w,x,R);else break;E++}for(;E<=M&&E<=L;){const F=u[M],B=a[L]=R?We(a[L]):De(a[L]);if(At(F,B))S(F,B,m,null,g,b,w,x,R);else break;M--,L--}if(E>M){if(E<=L){const F=L+1,B=FL)for(;E<=M;)he(u[E],g,b,!0),E++;else{const F=E,B=E,J=new Map;for(E=B;E<=L;E++){const xe=a[E]=R?We(a[E]):De(a[E]);xe.key!=null&&J.set(xe.key,E)}let ne,ie=0;const Re=L-B+1;let dt=!1,Sr=0;const wt=new Array(Re);for(E=0;E=Re){he(xe,g,b,!0);continue}let Me;if(xe.key!=null)Me=J.get(xe.key);else for(ne=B;ne<=L;ne++)if(wt[ne-B]===0&&At(xe,a[ne])){Me=ne;break}Me===void 0?he(xe,g,b,!0):(wt[Me-B]=E+1,Me>=Sr?Sr=Me:dt=!0,S(xe,a[Me],m,null,g,b,w,x,R),ie++)}const Ir=dt?Tl(wt):ht;for(ne=Ir.length-1,E=Re-1;E>=0;E--){const xe=B+E,Me=a[xe],Lr=xe+1{const{el:b,type:w,transition:x,children:R,shapeFlag:E}=u;if(E&6){Le(u.component.subTree,a,m,y);return}if(E&128){u.suspense.move(a,m,y);return}if(E&64){w.move(u,a,m,T);return}if(w===we){r(b,a,m);for(let M=0;Mx.enter(b),g);else{const{leave:M,delayLeave:L,afterLeave:F}=x,B=()=>r(b,a,m),J=()=>{M(b,()=>{B(),F&&F()})};L?L(b,B,J):J()}else r(b,a,m)},he=(u,a,m,y=!1,g=!1)=>{const{type:b,props:w,ref:x,children:R,dynamicChildren:E,shapeFlag:O,patchFlag:M,dirs:L}=u;if(x!=null&&Xn(x,null,m,u,!0),O&256){a.ctx.deactivate(u);return}const F=O&1&&L,B=!It(u);let J;if(B&&(J=w&&w.onVnodeBeforeUnmount)&&Ve(J,a,u),O&6)Wt(u.component,m,y);else{if(O&128){u.suspense.unmount(m,y);return}F&&tt(u,null,a,"beforeUnmount"),O&64?u.type.remove(u,a,m,g,T,y):E&&(b!==we||M>0&&M&64)?ue(E,a,m,!1,!0):(b===we&&M&384||!g&&O&16)&&ue(R,a,m),y&&ft(u)}(B&&(J=w&&w.onVnodeUnmounted)||F)&&me(()=>{J&&Ve(J,a,u),F&&tt(u,null,a,"unmounted")},m)},ft=u=>{const{type:a,el:m,anchor:y,transition:g}=u;if(a===we){at(m,y);return}if(a===Nn){K(u);return}const b=()=>{s(m),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(u.shapeFlag&1&&g&&!g.persisted){const{leave:w,delayLeave:x}=g,R=()=>w(m,b);x?x(u.el,b,R):R()}else b()},at=(u,a)=>{let m;for(;u!==a;)m=h(u),s(u),u=m;s(a)},Wt=(u,a,m)=>{const{bum:y,scope:g,update:b,subTree:w,um:x}=u;y&&en(y),g.stop(),b&&(b.active=!1,he(w,u,a,m)),x&&me(x,a),me(()=>{u.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},ue=(u,a,m,y=!1,g=!1,b=0)=>{for(let w=b;wu.shapeFlag&6?_(u.component.subTree):u.shapeFlag&128?u.suspense.next():h(u.anchor||u.el);let A=!1;const P=(u,a,m)=>{u==null?a._vnode&&he(a._vnode,null,null,!0):S(a._vnode||null,u,a,null,null,null,m),A||(A=!0,Br(),uo(),A=!1),a._vnode=u},T={p:S,um:he,m:Le,r:ft,mt:Pt,mc:se,pc:W,pbc:pe,n:_,o:e};let q,te;return t&&([q,te]=t(T)),{render:P,hydrate:q,createApp:El(P,q)}}function Dn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Cl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pr(e,t,n=!1){const r=e.children,s=t.children;if(V(r)&&V(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Co(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Co(t)}const Sl=e=>e.__isTeleport,Vt=e=>e&&(e.disabled||e.disabled===""),Zr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Zn=(e,t)=>{const n=e&&e.to;return re(n)?t?t(n):null:n},Il={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,l,c,d){const{mc:f,pc:p,pbc:h,o:{insert:v,querySelector:C,createText:S,createComment:j}}=d,I=Vt(t.props);let{shapeFlag:$,children:H,dynamicChildren:K}=t;if(e==null){const X=t.el=S(""),D=t.anchor=S("");v(X,n,r),v(D,n,r);const Z=t.target=Zn(t.props,C),se=t.targetAnchor=S("");Z&&(v(se,Z),i==="svg"||Zr(Z)?i="svg":(i==="mathml"||es(Z))&&(i="mathml"));const ve=(pe,Ee)=>{$&16&&f(H,pe,Ee,s,o,i,l,c)};I?ve(n,D):Z&&ve(Z,se)}else{t.el=e.el;const X=t.anchor=e.anchor,D=t.target=e.target,Z=t.targetAnchor=e.targetAnchor,se=Vt(e.props),ve=se?n:D,pe=se?X:Z;if(i==="svg"||Zr(D)?i="svg":(i==="mathml"||es(D))&&(i="mathml"),K?(h(e.dynamicChildren,K,ve,s,o,i,l),Pr(e,t,!0)):c||p(e,t,ve,pe,s,o,i,l,!1),I)se?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zt(t,n,X,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Ee=t.target=Zn(t.props,C);Ee&&Zt(t,Ee,null,d,0)}else se&&Zt(t,D,Z,d,1)}To(t)},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:l,children:c,anchor:d,targetAnchor:f,target:p,props:h}=e;if(p&&o(f),i&&o(d),l&16){const v=i||!Vt(h);for(let C=0;C0?Oe||ht:null,Ml(),kt>0&&Oe&&Oe.push(e),e}function Bu(e,t,n,r,s,o){return So(Lo(e,t,n,r,s,o,!0))}function Ar(e,t,n,r,s){return So(ge(e,t,n,r,s,!0))}function an(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const An="__vInternal",Io=({key:e})=>e??null,sn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ye(e)||k(e)?{i:le,r:e,k:t,f:!!n}:e:null);function Lo(e,t=null,n=null,r=0,s=null,o=e===we?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Io(t),ref:t&&sn(t),scopeId:Rn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:le};return l?(Or(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=re(n)?8:16),kt>0&&!i&&Oe&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Oe.push(c),c}const ge=Vl;function Vl(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===po)&&(e=Ze),an(e)){const l=Et(e,t,!0);return n&&Or(l,n),kt>0&&!o&&Oe&&(l.shapeFlag&6?Oe[Oe.indexOf(e)]=l:Oe.push(l)),l.patchFlag|=-2,l}if(Wl(e)&&(e=e.__vccOpts),t){t=Dl(t);let{class:l,style:c}=t;l&&!re(l)&&(t.class=fr(l)),Y(c)&&(eo(c)&&!V(c)&&(c=ce({},c)),t.style=ur(c))}const i=re(e)?1:Ji(e)?128:Sl(e)?64:Y(e)?4:k(e)?2:0;return Lo(e,t,n,r,s,i,o,!0)}function Dl(e){return e?eo(e)||An in e?ce({},e):e:null}function Et(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,l=t?$l(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Io(l),ref:t&&t.ref?n&&s?V(s)?s.concat(sn(t)):[s,sn(t)]:sn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==we?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Et(e.ssContent),ssFallback:e.ssFallback&&Et(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Nl(e=" ",t=0){return ge(wn,null,e,t)}function Ku(e="",t=!1){return t?(wr(),Ar(Ze,null,e)):ge(Ze,null,e)}function De(e){return e==null||typeof e=="boolean"?ge(Ze):V(e)?ge(we,null,e.slice()):typeof e=="object"?We(e):ge(wn,null,String(e))}function We(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Et(e)}function Or(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Or(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(An in t)?t._ctx=le:s===3&&le&&(le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else k(t)?(t={default:t,_ctx:le},n=32):(t=String(t),r&64?(n=16,t=[Nl(t)]):n=8);e.children=t,e.shapeFlag|=n}function $l(...e){const t={};for(let n=0;n{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};dn=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),er=t("__VUE_SSR_SETTERS__",n=>On=n)}const zt=e=>{const t=ae;return dn(e),e.scope.on(),()=>{e.scope.off(),dn(t)}},ns=()=>{ae&&ae.scope.off(),dn(null)};function Mo(e){return e.vnode.shapeFlag&4}let On=!1;function kl(e,t=!1){t&&er(t);const{props:n,children:r}=e.vnode,s=Mo(e);xl(e,n,s,t),Pl(e,r);const o=s?Bl(e,t):void 0;return t&&er(!1),o}function Bl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=to(new Proxy(e.ctx,pl));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Ul(e):null,o=zt(e);lt();const i=Je(r,e,0,[e.props,s]);if(ct(),o(),Vs(i)){if(i.then(ns,ns),t)return i.then(l=>{rs(e,l,t)}).catch(l=>{xn(l,e,0)});e.asyncDep=i}else rs(e,i,t)}else Vo(e,t)}function rs(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=oo(t)),Vo(e,n)}let ss;function Vo(e,t,n){const r=e.type;if(!e.render){if(!t&&ss&&!r.render){const s=r.template||br(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=ce(ce({isCustomElement:o,delimiters:l},i),c);r.render=ss(s,d)}}e.render=r.render||be}{const s=zt(e);lt();try{hl(e)}finally{ct(),s()}}}function Kl(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return _e(e,"get","$attrs"),t[n]}}))}function Ul(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Kl(e)},slots:e.slots,emit:e.emit,expose:t}}function Cn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oo(to(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Lt)return Lt[n](e)},has(t,n){return n in t||n in Lt}}))}function zl(e,t=!0){return k(e)?e.displayName||e.name:e.name||t&&e.__name}function Wl(e){return k(e)&&"__vccOpts"in e}const Ae=(e,t)=>Li(e,t,On);function Do(e,t,n){const r=arguments.length;return r===2?Y(t)&&!V(t)?an(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&an(n)&&(n=[n]),ge(e,t,n))}const ql="3.4.21";/** -* @vue/runtime-dom v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const Gl="http://www.w3.org/2000/svg",Ql="http://www.w3.org/1998/Math/MathML",qe=typeof document<"u"?document:null,os=qe&&qe.createElement("template"),Jl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?qe.createElementNS(Gl,e):t==="mathml"?qe.createElementNS(Ql,e):qe.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>qe.createTextNode(e),createComment:e=>qe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{os.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=os.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Yl=Symbol("_vtc");function Xl(e,t,n){const r=e[Yl];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const pn=Symbol("_vod"),No=Symbol("_vsh"),Uu={beforeMount(e,{value:t},{transition:n}){e[pn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ot(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ot(e,!0),r.enter(e)):r.leave(e,()=>{Ot(e,!1)}):Ot(e,t))},beforeUnmount(e,{value:t}){Ot(e,t)}};function Ot(e,t){e.style.display=t?e[pn]:"none",e[No]=!t}const Zl=Symbol(""),ec=/(^|;)\s*display\s*:/;function tc(e,t,n){const r=e.style,s=re(n);let o=!1;if(n&&!s){if(t)if(re(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&on(r,l,"")}else for(const i in t)n[i]==null&&on(r,i,"");for(const i in n)i==="display"&&(o=!0),on(r,i,n[i])}else if(s){if(t!==n){const i=r[Zl];i&&(n+=";"+i),r.cssText=n,o=ec.test(n)}}else t&&e.removeAttribute("style");pn in e&&(e[pn]=o?r.display:"",e[No]&&(r.display="none"))}const is=/\s*!important$/;function on(e,t,n){if(V(n))n.forEach(r=>on(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=nc(e,t);is.test(n)?e.setProperty(Rt(r),n.replace(is,""),"important"):e[r]=n}}const ls=["Webkit","Moz","ms"],$n={};function nc(e,t){const n=$n[t];if(n)return n;let r=$e(t);if(r!=="filter"&&r in e)return $n[t]=r;r=_n(r);for(let s=0;sFn||(cc.then(()=>Fn=0),Fn=Date.now());function fc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ce(ac(r,n.value),t,5,[r])};return n.value=e,n.attached=uc(),n}function ac(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const as=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dc=(e,t,n,r,s,o,i,l,c)=>{const d=s==="svg";t==="class"?Xl(e,r,d):t==="style"?tc(e,n,r):hn(t)?ir(t)||ic(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pc(e,t,r,d))?sc(e,t,r,o,i,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rc(e,t,r,d))};function pc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&as(t)&&k(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return as(t)&&re(n)?!1:t in e}const ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>en(t,n):t},jn=Symbol("_assign"),zu={deep:!0,created(e,t,n){e[jn]=ds(n),$o(e,"change",()=>{const r=e._modelValue,s=hc(e),o=e.checked,i=e[jn];if(V(r)){const l=js(r,s),c=l!==-1;if(o&&!c)i(r.concat(s));else if(!o&&c){const d=[...r];d.splice(l,1),i(d)}}else if(mn(r)){const l=new Set(r);o?l.add(s):l.delete(s),i(l)}else i(Fo(e,o))})},mounted:ps,beforeUpdate(e,t,n){e[jn]=ds(n),ps(e,t,n)}};function ps(e,{value:t,oldValue:n},r){e._modelValue=t,V(t)?e.checked=js(t,r.props.value)>-1:mn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=yn(t,Fo(e,!0)))}function hc(e){return"_value"in e?e._value:e.value}function Fo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const mc=["ctrl","shift","alt","meta"],gc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>mc.some(n=>e[`${n}Key`]&&!t.includes(n))},Wu=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{jo().render(...e)},yc=(...e)=>{const t=jo().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Ec(r);if(!s)return;const o=t._component;!k(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,vc(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function vc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ec(e){return re(e)?document.querySelector(e):e}const xc="modulepreload",bc=function(e,t){return new URL(e,t).href},ms={},N=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=bc(o,r),o in ms)return;ms[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let f=s.length-1;f>=0;f--){const p=s[f];if(p.href===o&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=i?"stylesheet":xc,i||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),i)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};/*! - * vue-router v4.3.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const pt=typeof document<"u";function Rc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const G=Object.assign;function Hn(e,t){const n={};for(const r in t){const s=t[r];n[r]=Se(s)?s.map(e):e(s)}return n}const Nt=()=>{},Se=Array.isArray,Ho=/#/g,Pc=/&/g,wc=/\//g,Ac=/=/g,Oc=/\?/g,ko=/\+/g,Cc=/%5B/g,Tc=/%5D/g,Bo=/%5E/g,Sc=/%60/g,Ko=/%7B/g,Ic=/%7C/g,Uo=/%7D/g,Lc=/%20/g;function Cr(e){return encodeURI(""+e).replace(Ic,"|").replace(Cc,"[").replace(Tc,"]")}function Mc(e){return Cr(e).replace(Ko,"{").replace(Uo,"}").replace(Bo,"^")}function tr(e){return Cr(e).replace(ko,"%2B").replace(Lc,"+").replace(Ho,"%23").replace(Pc,"%26").replace(Sc,"`").replace(Ko,"{").replace(Uo,"}").replace(Bo,"^")}function Vc(e){return tr(e).replace(Ac,"%3D")}function Dc(e){return Cr(e).replace(Ho,"%23").replace(Oc,"%3F")}function Nc(e){return e==null?"":Dc(e).replace(wc,"%2F")}function Bt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const $c=/\/$/,Fc=e=>e.replace($c,"");function kn(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Bc(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Bt(i)}}function jc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hc(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&xt(t.matched[r],n.matched[s])&&zo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!kc(e[n],t[n]))return!1;return!0}function kc(e,t){return Se(e)?_s(e,t):Se(t)?_s(t,e):e===t}function _s(e,t){return Se(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Bc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}var Kt;(function(e){e.pop="pop",e.push="push"})(Kt||(Kt={}));var $t;(function(e){e.back="back",e.forward="forward",e.unknown=""})($t||($t={}));function Kc(e){if(!e)if(pt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Fc(e)}const Uc=/^[^#]+#/;function zc(e,t){return e.replace(Uc,"#")+t}function Wc(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Tn=()=>({left:window.scrollX,top:window.scrollY});function qc(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Wc(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ys(e,t){return(history.state?history.state.position-t:-1)+e}const nr=new Map;function Gc(e,t){nr.set(e,t)}function Qc(e){const t=nr.get(e);return nr.delete(e),t}let Jc=()=>location.protocol+"//"+location.host;function Wo(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),gs(c,"")}return gs(n,e)+r+s}function Yc(e,t,n,r){let s=[],o=[],i=null;const l=({state:h})=>{const v=Wo(e,location),C=n.value,S=t.value;let j=0;if(h){if(n.value=v,t.value=h,i&&i===C){i=null;return}j=S?h.position-S.position:0}else r(v);s.forEach(I=>{I(n.value,C,{delta:j,type:Kt.pop,direction:j?j>0?$t.forward:$t.back:$t.unknown})})};function c(){i=n.value}function d(h){s.push(h);const v=()=>{const C=s.indexOf(h);C>-1&&s.splice(C,1)};return o.push(v),v}function f(){const{history:h}=window;h.state&&h.replaceState(G({},h.state,{scroll:Tn()}),"")}function p(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:d,destroy:p}}function vs(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Tn():null}}function Xc(e){const{history:t,location:n}=window,r={value:Wo(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,d,f){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:Jc()+e+c;try{t[f?"replaceState":"pushState"](d,"",h),s.value=d}catch(v){console.error(v),n[f?"replace":"assign"](h)}}function i(c,d){const f=G({},t.state,vs(s.value.back,c,s.value.forward,!0),d,{position:s.value.position});o(c,f,!0),r.value=c}function l(c,d){const f=G({},s.value,t.state,{forward:c,scroll:Tn()});o(f.current,f,!0);const p=G({},vs(r.value,c,null),{position:f.position+1},d);o(c,p,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function Zc(e){e=Kc(e);const t=Xc(e),n=Yc(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=G({location:"",base:e,go:r,createHref:zc.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function eu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zc(e)}function tu(e){return typeof e=="string"||e&&typeof e=="object"}function qo(e){return typeof e=="string"||typeof e=="symbol"}const Ue={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Go=Symbol("");var Es;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Es||(Es={}));function bt(e,t){return G(new Error,{type:e,[Go]:!0},t)}function je(e,t){return e instanceof Error&&Go in e&&(t==null||!!(e.type&t))}const xs="[^/]+?",nu={sensitive:!1,strict:!1,start:!0,end:!0},ru=/[.+*?^${}()[\]/\\]/g;function su(e,t){const n=G({},nu,t),r=[];let s=n.start?"^":"";const o=[];for(const d of e){const f=d.length?[]:[90];n.strict&&!d.length&&(s+="/");for(let p=0;pt.length?t.length===1&&t[0]===40+40?1:-1:0}function iu(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const lu={type:0,value:""},cu=/[a-zA-Z0-9_]/;function uu(e){if(!e)return[[]];if(e==="/")return[[lu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,d="",f="";function p(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function h(){d+=c}for(;l{i($)}:Nt}function i(f){if(qo(f)){const p=r.get(f);p&&(r.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function c(f){let p=0;for(;p=0&&(f.record.path!==n[p].record.path||!Qo(f,n[p]));)p++;n.splice(p,0,f),f.record.name&&!Ps(f)&&r.set(f.record.name,f)}function d(f,p){let h,v={},C,S;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw bt(1,{location:f});S=h.record.name,v=G(Rs(p.params,h.keys.filter($=>!$.optional).concat(h.parent?h.parent.keys.filter($=>$.optional):[]).map($=>$.name)),f.params&&Rs(f.params,h.keys.map($=>$.name))),C=h.stringify(v)}else if(f.path!=null)C=f.path,h=n.find($=>$.re.test(C)),h&&(v=h.parse(C),S=h.record.name);else{if(h=p.name?r.get(p.name):n.find($=>$.re.test(p.path)),!h)throw bt(1,{location:f,currentLocation:p});S=h.record.name,v=G({},p.params,f.params),C=h.stringify(v)}const j=[];let I=h;for(;I;)j.unshift(I.record),I=I.parent;return{name:S,path:C,params:v,matched:j,meta:hu(j)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:l,getRecordMatcher:s}}function Rs(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function du(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function pu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ps(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hu(e){return e.reduce((t,n)=>G(t,n.meta),{})}function ws(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Qo(e,t){return t.children.some(n=>n===e||Qo(e,n))}function mu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&tr(o)):[r&&tr(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function gu(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Se(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const _u=Symbol(""),Os=Symbol(""),Sn=Symbol(""),Tr=Symbol(""),rr=Symbol("");function Ct(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ge(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const d=h=>{h===!1?c(bt(4,{from:n,to:t})):h instanceof Error?c(h):tu(h)?c(bt(2,{from:t,to:h})):(i&&r.enterCallbacks[s]===i&&typeof h=="function"&&i.push(h),l())},f=o(()=>e.call(r&&r.instances[s],t,n,d));let p=Promise.resolve(f);e.length<3&&(p=p.then(d)),p.catch(h=>c(h))})}function Bn(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(yu(c)){const f=(c.__vccOpts||c)[t];f&&o.push(Ge(f,n,r,i,l,s))}else{let d=c();o.push(()=>d.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const p=Rc(f)?f.default:f;i.components[l]=p;const v=(p.__vccOpts||p)[t];return v&&Ge(v,n,r,i,l,s)()}))}}return o}function yu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Cs(e){const t=Te(Sn),n=Te(Tr),r=Ae(()=>t.resolve(_t(e.to))),s=Ae(()=>{const{matched:c}=r.value,{length:d}=c,f=c[d-1],p=n.matched;if(!f||!p.length)return-1;const h=p.findIndex(xt.bind(null,f));if(h>-1)return h;const v=Ts(c[d-2]);return d>1&&Ts(f)===v&&p[p.length-1].path!==v?p.findIndex(xt.bind(null,c[d-2])):h}),o=Ae(()=>s.value>-1&&bu(n.params,r.value.params)),i=Ae(()=>s.value>-1&&s.value===n.matched.length-1&&zo(n.params,r.value.params));function l(c={}){return xu(c)?t[_t(e.replace)?"replace":"push"](_t(e.to)).catch(Nt):Promise.resolve()}return{route:r,href:Ae(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const vu=go({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Cs,setup(e,{slots:t}){const n=En(Cs(e)),{options:r}=Te(Sn),s=Ae(()=>({[Ss(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ss(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Do("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Eu=vu;function xu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bu(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Se(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Ts(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ss=(e,t,n)=>e??t??n,Ru=go({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Te(rr),s=Ae(()=>e.route||r.value),o=Te(Os,0),i=Ae(()=>{let d=_t(o);const{matched:f}=s.value;let p;for(;(p=f[d])&&!p.components;)d++;return d}),l=Ae(()=>s.value.matched[i.value]);rn(Os,Ae(()=>i.value+1)),rn(_u,l),rn(rr,s);const c=Mi();return nn(()=>[c.value,l.value,e.name],([d,f,p],[h,v,C])=>{f&&(f.instances[p]=d,v&&v!==f&&d&&d===h&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),d&&f&&(!v||!xt(f,v)||!h)&&(f.enterCallbacks[p]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=s.value,f=e.name,p=l.value,h=p&&p.components[f];if(!h)return Is(n.default,{Component:h,route:d});const v=p.props[f],C=v?v===!0?d.params:typeof v=="function"?v(d):v:null,j=Do(h,G({},C,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(p.instances[f]=null)},ref:c}));return Is(n.default,{Component:j,route:d})||j}}});function Is(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Pu=Ru;function wu(e){const t=au(e.routes,e),n=e.parseQuery||mu,r=e.stringifyQuery||As,s=e.history,o=Ct(),i=Ct(),l=Ct(),c=Vi(Ue);let d=Ue;pt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Hn.bind(null,_=>""+_),p=Hn.bind(null,Nc),h=Hn.bind(null,Bt);function v(_,A){let P,T;return qo(_)?(P=t.getRecordMatcher(_),T=A):T=_,t.addRoute(T,P)}function C(_){const A=t.getRecordMatcher(_);A&&t.removeRoute(A)}function S(){return t.getRoutes().map(_=>_.record)}function j(_){return!!t.getRecordMatcher(_)}function I(_,A){if(A=G({},A||c.value),typeof _=="string"){const a=kn(n,_,A.path),m=t.resolve({path:a.path},A),y=s.createHref(a.fullPath);return G(a,m,{params:h(m.params),hash:Bt(a.hash),redirectedFrom:void 0,href:y})}let P;if(_.path!=null)P=G({},_,{path:kn(n,_.path,A.path).path});else{const a=G({},_.params);for(const m in a)a[m]==null&&delete a[m];P=G({},_,{params:p(a)}),A.params=p(A.params)}const T=t.resolve(P,A),q=_.hash||"";T.params=f(h(T.params));const te=jc(r,G({},_,{hash:Mc(q),path:T.path})),u=s.createHref(te);return G({fullPath:te,hash:q,query:r===As?gu(_.query):_.query||{}},T,{redirectedFrom:void 0,href:u})}function $(_){return typeof _=="string"?kn(n,_,c.value.path):G({},_)}function H(_,A){if(d!==_)return bt(8,{from:A,to:_})}function K(_){return Z(_)}function X(_){return K(G($(_),{replace:!0}))}function D(_){const A=_.matched[_.matched.length-1];if(A&&A.redirect){const{redirect:P}=A;let T=typeof P=="function"?P(_):P;return typeof T=="string"&&(T=T.includes("?")||T.includes("#")?T=$(T):{path:T},T.params={}),G({query:_.query,hash:_.hash,params:T.path!=null?{}:_.params},T)}}function Z(_,A){const P=d=I(_),T=c.value,q=_.state,te=_.force,u=_.replace===!0,a=D(P);if(a)return Z(G($(a),{state:typeof a=="object"?G({},q,a.state):q,force:te,replace:u}),A||P);const m=P;m.redirectedFrom=A;let y;return!te&&Hc(r,T,P)&&(y=bt(16,{to:m,from:T}),Le(T,T,!0,!1)),(y?Promise.resolve(y):pe(m,T)).catch(g=>je(g)?je(g,2)?g:Be(g):W(g,m,T)).then(g=>{if(g){if(je(g,2))return Z(G({replace:u},$(g.to),{state:typeof g.to=="object"?G({},q,g.to.state):q,force:te}),A||m)}else g=et(m,T,!0,u,q);return Ee(m,T,g),g})}function se(_,A){const P=H(_,A);return P?Promise.reject(P):Promise.resolve()}function ve(_){const A=at.values().next().value;return A&&typeof A.runWithContext=="function"?A.runWithContext(_):_()}function pe(_,A){let P;const[T,q,te]=Au(_,A);P=Bn(T.reverse(),"beforeRouteLeave",_,A);for(const a of T)a.leaveGuards.forEach(m=>{P.push(Ge(m,_,A))});const u=se.bind(null,_,A);return P.push(u),ue(P).then(()=>{P=[];for(const a of o.list())P.push(Ge(a,_,A));return P.push(u),ue(P)}).then(()=>{P=Bn(q,"beforeRouteUpdate",_,A);for(const a of q)a.updateGuards.forEach(m=>{P.push(Ge(m,_,A))});return P.push(u),ue(P)}).then(()=>{P=[];for(const a of te)if(a.beforeEnter)if(Se(a.beforeEnter))for(const m of a.beforeEnter)P.push(Ge(m,_,A));else P.push(Ge(a.beforeEnter,_,A));return P.push(u),ue(P)}).then(()=>(_.matched.forEach(a=>a.enterCallbacks={}),P=Bn(te,"beforeRouteEnter",_,A,ve),P.push(u),ue(P))).then(()=>{P=[];for(const a of i.list())P.push(Ge(a,_,A));return P.push(u),ue(P)}).catch(a=>je(a,8)?a:Promise.reject(a))}function Ee(_,A,P){l.list().forEach(T=>ve(()=>T(_,A,P)))}function et(_,A,P,T,q){const te=H(_,A);if(te)return te;const u=A===Ue,a=pt?history.state:{};P&&(T||u?s.replace(_.fullPath,G({scroll:u&&a&&a.scroll},q)):s.push(_.fullPath,q)),c.value=_,Le(_,A,P,u),Be()}let Ie;function Pt(){Ie||(Ie=s.listen((_,A,P)=>{if(!Wt.listening)return;const T=I(_),q=D(T);if(q){Z(G(q,{replace:!0}),T).catch(Nt);return}d=T;const te=c.value;pt&&Gc(ys(te.fullPath,P.delta),Tn()),pe(T,te).catch(u=>je(u,12)?u:je(u,2)?(Z(u.to,T).then(a=>{je(a,20)&&!P.delta&&P.type===Kt.pop&&s.go(-1,!1)}).catch(Nt),Promise.reject()):(P.delta&&s.go(-P.delta,!1),W(u,T,te))).then(u=>{u=u||et(T,te,!1),u&&(P.delta&&!je(u,8)?s.go(-P.delta,!1):P.type===Kt.pop&&je(u,20)&&s.go(-1,!1)),Ee(T,te,u)}).catch(Nt)}))}let ut=Ct(),oe=Ct(),Q;function W(_,A,P){Be(_);const T=oe.list();return T.length?T.forEach(q=>q(_,A,P)):console.error(_),Promise.reject(_)}function Fe(){return Q&&c.value!==Ue?Promise.resolve():new Promise((_,A)=>{ut.add([_,A])})}function Be(_){return Q||(Q=!_,Pt(),ut.list().forEach(([A,P])=>_?P(_):A()),ut.reset()),_}function Le(_,A,P,T){const{scrollBehavior:q}=e;if(!pt||!q)return Promise.resolve();const te=!P&&Qc(ys(_.fullPath,0))||(T||!P)&&history.state&&history.state.scroll||null;return lo().then(()=>q(_,A,te)).then(u=>u&&qc(u)).catch(u=>W(u,_,A))}const he=_=>s.go(_);let ft;const at=new Set,Wt={currentRoute:c,listening:!0,addRoute:v,removeRoute:C,hasRoute:j,getRoutes:S,resolve:I,options:e,push:K,replace:X,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:oe.add,isReady:Fe,install(_){const A=this;_.component("RouterLink",Eu),_.component("RouterView",Pu),_.config.globalProperties.$router=A,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>_t(c)}),pt&&!ft&&c.value===Ue&&(ft=!0,K(s.location).catch(q=>{}));const P={};for(const q in Ue)Object.defineProperty(P,q,{get:()=>c.value[q],enumerable:!0});_.provide(Sn,A),_.provide(Tr,Xs(P)),_.provide(rr,c);const T=_.unmount;at.add(_),_.unmount=function(){at.delete(_),at.size<1&&(d=Ue,Ie&&Ie(),Ie=null,c.value=Ue,ft=!1,Q=!1),T()}}};function ue(_){return _.reduce((A,P)=>A.then(()=>ve(P)),Promise.resolve())}return Wt}function Au(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ixt(d,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(d=>xt(d,c))||s.push(c))}return[n,r,s]}function Gu(){return Te(Sn)}function Qu(){return Te(Tr)}const Ls=Object.assign({"../pages/animation-dialog/index.vue":()=>N(()=>import("./index-e1ade818.js"),["./index-e1ade818.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/img-zoom/index.vue":()=>N(()=>import("./index-64b6c977.js"),["./index-64b6c977.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/mouse-menu/index.vue":()=>N(()=>import("./index-9098e37a.js"),["./index-9098e37a.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/resize/index.vue":()=>N(()=>import("./index-0ba816e8.js"),["./index-0ba816e8.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/scroll/index.vue":()=>N(()=>import("./index-f3933683.js"),["./index-f3933683.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/size-observer/index.vue":()=>N(()=>import("./index-9308441e.js"),["./index-9308441e.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/standard-tabs/index.vue":()=>N(()=>import("./index-36310845.js"),["./index-36310845.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/to-control/index.vue":()=>N(()=>import("./index-8bc616e8.js"),["./index-8bc616e8.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url),"../pages/to-drag/index.vue":()=>N(()=>import("./index-96434926.js"),["./index-96434926.js","./ExampleFrame-00387080.js","./dynamic-import-helper-be004503.js","./index.es-724d9dc0.js","./ExampleFrame-0bae4ffd.css"],import.meta.url)}),Ms=Object.assign({"../pages/animation-dialog/example/example1.vue":()=>N(()=>import("./example1-16fb77c6.js"),["./example1-16fb77c6.js","./index.es-be2f93d7.js","./example1-5e832090.css"],import.meta.url),"../pages/animation-dialog/example/example2.vue":()=>N(()=>import("./example2-f05048e8.js"),["./example2-f05048e8.js","./index.es-be2f93d7.js","./global-56066e04.js","./example2-81e71328.css"],import.meta.url),"../pages/animation-dialog/example/example3.vue":()=>N(()=>import("./example3-daeaf5d8.js"),["./example3-daeaf5d8.js","./index.es-be2f93d7.js","./example3-cfb55d49.css"],import.meta.url),"../pages/animation-dialog/example/example4.vue":()=>N(()=>import("./example4-668c1bc6.js"),["./example4-668c1bc6.js","./index.es-be2f93d7.js","./example4-cbe4e3c1.css"],import.meta.url),"../pages/img-zoom/example/example1.vue":()=>N(()=>import("./example1-43f59f46.js"),["./example1-43f59f46.js","./index.es-d11d180d.js","./global-56066e04.js","./example1-aded41ef.css"],import.meta.url),"../pages/img-zoom/example/example2.vue":()=>N(()=>import("./example2-d3f0ba11.js"),["./example2-d3f0ba11.js","./index.es-d11d180d.js","./global-56066e04.js","./example2-14ec8bb5.css"],import.meta.url),"../pages/img-zoom/example/example3.vue":()=>N(()=>import("./example3-280afcdd.js"),["./example3-280afcdd.js","./index.es-d11d180d.js","./global-56066e04.js","./example3-d8748063.css"],import.meta.url),"../pages/mouse-menu/example/example1.vue":()=>N(()=>import("./example1-cd070041.js"),["./example1-cd070041.js","./index.es-2a6d3cc0.js","./example1-0d3d827c.css"],import.meta.url),"../pages/mouse-menu/example/example2.vue":()=>N(()=>import("./example2-80ae9eae.js"),["./example2-80ae9eae.js","./index.es-2a6d3cc0.js","./example2-70d7a07d.css"],import.meta.url),"../pages/mouse-menu/example/example3.vue":()=>N(()=>import("./example3-8d593a5f.js"),["./example3-8d593a5f.js","./index.es-2a6d3cc0.js","./example3-56f5a5f1.css"],import.meta.url),"../pages/mouse-menu/example/example4.vue":()=>N(()=>import("./example4-e141bbf6.js"),["./example4-e141bbf6.js","./index.es-2a6d3cc0.js","./example4-524be554.css"],import.meta.url),"../pages/mouse-menu/example/example5.vue":()=>N(()=>import("./example5-792686f7.js"),["./example5-792686f7.js","./index.es-2a6d3cc0.js","./example5-25a3d175.css"],import.meta.url),"../pages/mouse-menu/example/example6.vue":()=>N(()=>import("./example6-36cb8c6c.js"),["./example6-36cb8c6c.js","./index.es-2a6d3cc0.js","./global-56066e04.js","./example6-b9f838f0.css"],import.meta.url),"../pages/mouse-menu/example/example7.vue":()=>N(()=>import("./example7-f7dfa1df.js"),["./example7-f7dfa1df.js","./index.es-2a6d3cc0.js","./example7-02db27c8.css"],import.meta.url),"../pages/resize/example/example1.vue":()=>N(()=>import("./example1-bb8f9387.js"),["./example1-bb8f9387.js","./index.es-724d9dc0.js","./example1-b5ccebc4.css"],import.meta.url),"../pages/resize/example/example2.vue":()=>N(()=>import("./example2-59859fe3.js"),["./example2-59859fe3.js","./index.es-724d9dc0.js","./example2-e2a1a384.css"],import.meta.url),"../pages/resize/example/example3.vue":()=>N(()=>import("./example3-6e206829.js"),["./example3-6e206829.js","./index.es-724d9dc0.js","./example3-01a6476e.css"],import.meta.url),"../pages/resize/example/example4.vue":()=>N(()=>import("./example4-443407cb.js"),["./example4-443407cb.js","./index.es-724d9dc0.js","./example4-08de4701.css"],import.meta.url),"../pages/resize/example/example5.vue":()=>N(()=>import("./example5-18be4b41.js"),["./example5-18be4b41.js","./index.es-724d9dc0.js","./example5-1d04a3ae.css"],import.meta.url),"../pages/scroll/example/example1.vue":()=>N(()=>import("./example1-9839b524.js"),["./example1-9839b524.js","./index.es-716f6261.js","./example1-0456098a.css"],import.meta.url),"../pages/scroll/example/example2.vue":()=>N(()=>import("./example2-5408f510.js"),["./example2-5408f510.js","./index.es-716f6261.js","./example2-ef8a729f.css"],import.meta.url),"../pages/scroll/example/example3.vue":()=>N(()=>import("./example3-91c32341.js"),["./example3-91c32341.js","./index.es-716f6261.js","./example3-a1cc75f4.css"],import.meta.url),"../pages/scroll/example/example4.vue":()=>N(()=>import("./example4-c8b143b0.js"),["./example4-c8b143b0.js","./index.es-716f6261.js","./example4-5507c0b4.css"],import.meta.url),"../pages/scroll/example/example5.vue":()=>N(()=>import("./example5-0c1d7cae.js"),["./example5-0c1d7cae.js","./index.es-716f6261.js","./example5-9560ce17.css"],import.meta.url),"../pages/size-observer/example/example1.vue":()=>N(()=>import("./example1-b2f87f59.js"),["./example1-b2f87f59.js","./index.es-f696db10.js","./example1-47bcdd6c.css"],import.meta.url),"../pages/size-observer/example/example2.vue":()=>N(()=>import("./example2-e1c1bc2a.js"),["./example2-e1c1bc2a.js","./index.es-f696db10.js","./example2-073202b4.css"],import.meta.url),"../pages/standard-tabs/example/example1.vue":()=>N(()=>import("./example1-1755e033.js"),["./example1-1755e033.js","./index.es-7282307a.js","./example1-d55094f4.css"],import.meta.url),"../pages/standard-tabs/example/example2.vue":()=>N(()=>import("./example2-72c3e0d6.js"),["./example2-72c3e0d6.js","./index.es-7282307a.js","./example2-370710f8.css"],import.meta.url),"../pages/to-control/example/example1.vue":()=>N(()=>import("./example1-8a0391a9.js"),["./example1-8a0391a9.js","./index.es-6608ee6a.js","./index.es-4377725c.js","./example1-81e9b21e.css"],import.meta.url),"../pages/to-control/example/example2.vue":()=>N(()=>import("./example2-80cf024e.js"),["./example2-80cf024e.js","./index.es-6608ee6a.js","./index.es-4377725c.js","./example2-a4ca8a13.css"],import.meta.url),"../pages/to-control/example/example3.vue":()=>N(()=>import("./example3-d40a9337.js"),["./example3-d40a9337.js","./index.es-6608ee6a.js","./index.es-4377725c.js","./example3-f766ae8d.css"],import.meta.url),"../pages/to-control/example/example4.vue":()=>N(()=>import("./example4-816a5753.js"),["./example4-816a5753.js","./index.es-6608ee6a.js","./index.es-4377725c.js","./example4-c25a3acf.css"],import.meta.url),"../pages/to-drag/example/example1.vue":()=>N(()=>import("./example1-3162523e.js"),["./example1-3162523e.js","./index.es-4377725c.js","./example1-5fdfb5ae.css"],import.meta.url),"../pages/to-drag/example/example2.vue":()=>N(()=>import("./example2-ed02591f.js"),["./example2-ed02591f.js","./index.es-4377725c.js","./example2-787b1002.css"],import.meta.url),"../pages/to-drag/example/example3.vue":()=>N(()=>import("./example3-22ae96f1.js"),["./example3-22ae96f1.js","./index.es-4377725c.js","./example3-e3cda917.css"],import.meta.url),"../pages/to-drag/example/example4.vue":()=>N(()=>import("./example4-2da0ddcd.js"),["./example4-2da0ddcd.js","./index.es-4377725c.js","./example4-970d1c15.css"],import.meta.url),"../pages/to-drag/example/example5.vue":()=>N(()=>import("./example5-8f973145.js"),["./example5-8f973145.js","./index.es-4377725c.js","./example5-efc79f6b.css"],import.meta.url),"../pages/to-drag/example/example6.vue":()=>N(()=>import("./example6-45683b2c.js"),["./example6-45683b2c.js","./index.es-4377725c.js","./example6-a1817199.css"],import.meta.url)}),sr={};Object.keys(Ls).map(e=>{const t=/^.*pages\/(.*)\/index.*$/,n=e.replace(t,(...r)=>r[1]);sr[n]=Ls[e]});const Ou=wu({history:eu(),routes:[{path:"/",name:"home",component:()=>N(()=>import("./home-ced92c79.js"),["./home-ced92c79.js","./ReadmeFrame-190e96cc.js","./ReadmeFrame-f98ef7e3.css"],import.meta.url)},...Object.keys(sr).map(e=>{const t=Object.keys(Ms).filter(n=>n.includes(e));return{path:`/${e}`,name:`${e}`,redirect:`/${e}/readme`,component:sr[e],children:[{path:`/${e}/readme`,name:`${e}-readme`,component:()=>N(()=>import("./PageReadme-b757de67.js"),["./PageReadme-b757de67.js","./dynamic-import-helper-be004503.js","./ReadmeFrame-190e96cc.js","./ReadmeFrame-f98ef7e3.css"],import.meta.url)},...t.map((n,r)=>({path:`/${e}/example${r+1}`,name:`${e}-example${r+1}`,component:Ms[n]}))]}})]});const Cu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Tu={};function Su(e,t){const n=Qi("router-view");return wr(),Ar(n)}const Iu=Cu(Tu,[["render",Su]]);const Jo=yc(Iu);Jo.use(Ou);Jo.mount("#app");export{vo as A,lo as B,Uu as C,ur as D,Hu as E,we as F,_t as G,$l as H,In as I,Du as J,qu as K,Nl as L,ju as M,ku as T,Cu as _,Mi as a,En as b,Ar as c,go as d,Ae as e,Gu as f,N as g,Nu as h,Bu as i,$u as j,Lo as k,Wu as l,Fu as m,fr as n,wr as o,Ku as p,ge as q,Qi as r,Mu as s,Lu as t,Qu as u,zu as v,nn as w,Vu as x,Ki as y,ol as z}; diff --git a/assets/index.es-4377725c.js b/assets/index.es-4377725c.js deleted file mode 100644 index a71c674..0000000 --- a/assets/index.es-4377725c.js +++ /dev/null @@ -1,2 +0,0 @@ -var p=Object.defineProperty,m=(e,t,i)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,o=(e,t,i)=>(m(e,typeof t!="symbol"?t+"":t,i),i);function b(e,t,i=!1){const s={},n=window.getComputedStyle(e);return t.map(h=>{let r=n[h];if(i){const d=r.match(/\d+/);d&&(r=~~d[0])}s[h]=r}),s}class v{constructor({el:t,options:i}){o(this,"el"),o(this,"isTouch"),o(this,"isDrag"),o(this,"parent"),o(this,"left",0),o(this,"top",0),o(this,"right",0),o(this,"bottom",0),o(this,"width",0),o(this,"height",0),o(this,"maxX",0),o(this,"maxY",0),o(this,"options"),o(this,"scrollbarWidth"),o(this,"startX",0),o(this,"startY",0),o(this,"getScrollbarWidth",()=>{const s=document.createElement("div");s.style.cssText="width:100px;height:100px;overflow-y:scroll",document.body.appendChild(s);const n=s.offsetWidth-s.clientWidth;return document.body.removeChild(s),n}),o(this,"setBetween",(s,n,h)=>sh?h:s),o(this,"borderInfo",[0,0,0,0]),this.el=t instanceof HTMLElement?t:document.querySelector(t),this.scrollbarWidth=this.getScrollbarWidth(),this.isTouch="ontouchstart"in document.documentElement,this.isDrag=!1,this.options={moveCursor:!0,adsorb:0,adsorbOffset:0,transitionDuration:400,transitionTimingFunction:"ease-in-out",forbidBodyScroll:!0,isAbsolute:!1,positionMode:1,needComputeBorder:!0,...i},this.parent=this.options.parentSelector&&document.querySelector(this.options.parentSelector)||this.el.parentNode,this.options.transitionDuration&&(this.options.transitionDuration=this.options.transitionDuration/1e3),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleMousedown=this.handleMousedown.bind(this),this.moveEvent=this.moveEvent.bind(this),this.endEvent=this.endEvent.bind(this),this.init()}init(){this.isTouch?this.el.addEventListener("touchstart",this.handleTouchStart):this.el.addEventListener("mousedown",this.handleMousedown),this.options.moveCursor&&(this.el.style.cursor="move"),this.setPosition(),this.setLimit(),this.handleAdsorb(),this.handlePositionMode(),setTimeout(()=>{this.emitEvent("todraginit")})}handleMousedown(t){if(typeof this.options.disabled=="function"&&this.options.disabled())return;const{x:i,y:s}=t;this.setStartInfo(i,s),document.addEventListener("mousemove",this.moveEvent),document.addEventListener("mouseup",this.endEvent)}handleTouchStart(t){if(typeof this.options.disabled=="function"&&this.options.disabled())return;const i=this.isTouch?t.changedTouches[0].clientX:t.x,s=this.isTouch?t.changedTouches[0].clientY:t.y;this.setStartInfo(i,s),document.addEventListener("touchmove",this.moveEvent,{passive:!1}),document.addEventListener("touchend",this.endEvent)}setPosition(){const{left:t,top:i,width:s,height:n}=this.el.getBoundingClientRect();this.left=t,this.top=i,this.width=s,this.height=n,this.options.isAbsolute?(this.maxX=this.parent.offsetWidth-this.width,this.maxY=this.parent.offsetHeight-this.height):(this.maxX=document.body.scrollWidth>window.innerWidth?window.innerWidth-this.width-this.scrollbarWidth:window.innerWidth-this.width,this.maxY=document.body.scrollHeight>window.innerHeight?window.innerHeight-this.height-this.scrollbarWidth:window.innerHeight-this.height)}setStartInfo(t,i){this.setPosition(),this.setLimit(),this.startX=t-this.left,this.startY=i-this.top,this.isDrag=!0,this.el.style.transition="",document.body.style.userSelect="none",this.options.forbidBodyScroll&&(document.body.style.overflow="hidden"),this.emitEvent("todragstart")}moveEvent(t){if(!this.isDrag)return;t.preventDefault();let i,s;const n=this.isTouch?t.changedTouches[0].clientX:t.x,h=this.isTouch?t.changedTouches[0].clientY:t.y;if(!this.options.isAbsolute)i=n-this.startX,s=h-this.startY;else{const r=this.parent.getClientRects()[0];i=n-r.x-this.startX-this.borderInfo[1],s=h-r.y-this.startY-this.borderInfo[2]}this.left=this.setBetween(i,0,this.maxX-this.borderInfo[1]-this.borderInfo[3]),this.top=this.setBetween(s,0,this.maxY-this.borderInfo[2]-this.borderInfo[0]),this.el.style.left=this.left+"px",this.el.style.top=this.top+"px",this.emitEvent("todragmove")}endEvent(){this.isDrag=!1,document.removeEventListener("mousemove",this.moveEvent),document.removeEventListener("mouseup",this.endEvent),document.removeEventListener("touchmove",this.moveEvent),document.removeEventListener("touchend",this.endEvent),document.body.style.userSelect="auto",this.options.forbidBodyScroll&&(document.body.style.overflow="visible"),this.handleAdsorb(),this.handlePositionMode(),this.emitEvent("todragend")}handleAdsorb(){if(this.options.isAbsolute)return;const t=[this.left+this.width/2,this.top+this.height/2],i=[window.innerWidth,window.innerHeight];if(this.el.style.transition=`left ${this.options.transitionDuration}s ${this.options.transitionTimingFunction}, - top ${this.options.transitionDuration}s ${this.options.transitionTimingFunction}`,this.options.adsorb===1)t[0]<=window.innerWidth/2?this.left=this.options.adsorbOffset:this.left=this.maxX-this.options.adsorbOffset;else if(this.options.adsorb===2){const s=i[1]/i[0],n=i[1]/-i[0],h=t[1]/t[0],r=t[1]/(t[0]-i[0]);s>=h&&n=h&&n>=r?this.left=this.maxX-this.options.adsorbOffset:s=r?this.top=this.maxY-this.options.adsorbOffset:this.left=this.options.adsorbOffset,this.options.adsorbOffset&&(this.top===0&&(this.top=this.options.adsorbOffset),this.top===this.maxY&&(this.top=this.maxY-this.options.adsorbOffset),this.left===0&&(this.left=this.options.adsorbOffset),this.left===this.maxX&&(this.left=this.maxX-this.options.adsorbOffset))}this.el.style.left=this.left+"px",this.el.style.top=this.top+"px"}handlePositionMode(){if(this.options.adsorb)return;const t=this.options.isAbsolute?this.el.offsetLeft:this.left,i=this.options.isAbsolute?this.el.offsetTop:this.top;this.right=this.maxX-t-this.borderInfo[1]-this.borderInfo[3],this.bottom=this.maxY-i-this.borderInfo[2]-this.borderInfo[0],this.options.positionMode===2?(this.el.style.left="auto",this.el.style.right=this.right+"px"):this.options.positionMode===3?(this.el.style.top="auto",this.el.style.bottom=this.bottom+"px"):this.options.positionMode===4&&(this.el.style.left="auto",this.el.style.top="auto",this.el.style.right=this.right+"px",this.el.style.bottom=this.bottom+"px")}emitEvent(t){const i=document.createEvent("HTMLEvents");i.initEvent(t,!1,!1);const{left:s,top:n,right:h,bottom:r,width:d,height:f,maxX:c,maxY:u}=this;i.left=s,i.top=n,i.width=d,i.height=f,i.maxX=c,i.maxY=u,i.right=h,i.bottom=r,this.el.dispatchEvent(i)}destroy(){this.isTouch?this.el.removeEventListener("touchstart",this.handleTouchStart):this.el.removeEventListener("mousedown",this.handleMousedown)}setLimit(){if(!this.options.isAbsolute||!this.options.needComputeBorder)return;const t=["top","right","bottom","left"],i=b(this.parent,[...t.map(s=>`border-${s}-width`)],!0);this.borderInfo=t.map(s=>i[`border-${s}-width`])}}const l=(e,t,i)=>{const{value:s}=t,h={...i||{},...s};e.$toDarg=new v({el:e,options:h})},a=e=>{e.$toDarg&&e.$toDarg.destroy()},g={mounted:(e,t)=>l(e,t),unmounted:a,inserted:(e,t)=>l(e,t),unbind:a,install:(e,t)=>{e.directive("to-drag",{mounted:(i,s)=>l(i,s,t),unmounted:a,inserted:(i,s)=>l(i,s,t),unbind:a})}};export{v as T,g as a}; diff --git a/assets/index.es-6608ee6a.js b/assets/index.es-5fe20373.js similarity index 98% rename from assets/index.es-6608ee6a.js rename to assets/index.es-5fe20373.js index 5fbf542..2b3a6e8 100644 --- a/assets/index.es-6608ee6a.js +++ b/assets/index.es-5fe20373.js @@ -1,4 +1,4 @@ -import{T as C}from"./index.es-4377725c.js";var E=Object.defineProperty,y=(e,t,o)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t,o)=>(y(e,typeof t!="symbol"?t+"":t,o),o);class T extends C{constructor({el:t,options:o}){super({el:t,options:{adsorb:0,adsorbOffset:0,isAbsolute:!1,positionMode:1,...o}}),r(this,"arrowCtx",null),r(this,"controlOptions"),r(this,"arrowStartX",0),r(this,"arrowStartY",0),r(this,"elWidth",0),r(this,"elHeight",0),r(this,"resizeFlag",!1),r(this,"arrowMouseDownEvent",i=>{if(typeof this.controlOptions.disabled=="function"&&this.controlOptions.disabled())return;const s=this.isTouch?i.changedTouches[0].clientX:i.x,n=this.isTouch?i.changedTouches[0].clientY:i.y,{width:w,height:f,left:h,top:l}=this.el.getBoundingClientRect(),{width:g,height:v}=this.parent.getBoundingClientRect();this.arrowStartX=s,this.arrowStartY=n,this.elWidth=w,this.elHeight=f,this.resizeFlag=!0;let a,d;this.controlOptions.isAbsolute?(a=g-this.el.offsetLeft-this.borderInfo[1]-this.borderInfo[3],d=v-this.el.offsetTop-this.borderInfo[0]-this.borderInfo[2]):(a=window.innerWidth-h,d=window.innerHeight-l),setTimeout(()=>{this.isDrag=!1}),this.el.style.left=`${this.controlOptions.isAbsolute?this.el.offsetLeft:h}px`,this.el.style.top=`${this.controlOptions.isAbsolute?this.el.offsetTop:l}px`,this.el.style.right="auto",this.el.style.bottom="auto",this.emitControlEvent("tocontrolstart"),this.isTouch?(document.ontouchmove=c=>{if(!this.resizeFlag||!c.changedTouches)return;const{clientX:x,clientY:b}=c.changedTouches[0];this.el.style.width=`${Math.min(this.elWidth+x-this.arrowStartX,a)}px`,this.el.style.height=`${Math.min(this.elHeight+b-this.arrowStartY,d)}px`,this.emitControlEvent("tocontrolmove")},document.ontouchend=()=>{this.setPosition(),this.resizeFlag=!1,document.ontouchmove=null,document.ontouchend=null,this.emitControlEvent("tocontrolend")}):(document.onmousemove=c=>{if(!this.resizeFlag)return;const{x,y:b}=c;this.el.style.width=`${Math.min(this.elWidth+x-this.arrowStartX,a)}px`,this.el.style.height=`${Math.min(this.elHeight+b-this.arrowStartY,d)}px`,this.emitControlEvent("tocontrolmove")},document.onmouseup=()=>{this.setPosition(),this.resizeFlag=!1,document.onmousemove=null,document.onmouseup=null,this.emitControlEvent("tocontrolend")})}),this.controlOptions=o||{},this.initControl()}initControl(){var t;this.arrowCtx=this.createResizeArrow((t=this.controlOptions)==null?void 0:t.arrowOptions),this.el.appendChild(this.arrowCtx)}updateArrow(){var t;this.arrowCtx&&this.el.contains(this.arrowCtx)&&this.el.removeChild(this.arrowCtx),this.arrowCtx=this.createResizeArrow((t=this.controlOptions)==null?void 0:t.arrowOptions),this.el.appendChild(this.arrowCtx)}createResizeArrow(t){const o=typeof this.controlOptions.disabled=="function"&&this.controlOptions.disabled(),i={size:8,lineWidth:2,lineColor:"#9a9a9a",padding:2,...t},s=document.createElement("div");s.style.cssText=` +import{T as C}from"./index.es-de103fbd.js";var E=Object.defineProperty,y=(e,t,o)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r=(e,t,o)=>(y(e,typeof t!="symbol"?t+"":t,o),o);class T extends C{constructor({el:t,options:o}){super({el:t,options:{adsorb:0,adsorbOffset:0,isAbsolute:!1,positionMode:1,...o}}),r(this,"arrowCtx",null),r(this,"controlOptions"),r(this,"arrowStartX",0),r(this,"arrowStartY",0),r(this,"elWidth",0),r(this,"elHeight",0),r(this,"resizeFlag",!1),r(this,"arrowMouseDownEvent",i=>{if(typeof this.controlOptions.disabled=="function"&&this.controlOptions.disabled())return;const s=this.isTouch?i.changedTouches[0].clientX:i.x,n=this.isTouch?i.changedTouches[0].clientY:i.y,{width:w,height:f,left:h,top:l}=this.el.getBoundingClientRect(),{width:g,height:v}=this.parent.getBoundingClientRect();this.arrowStartX=s,this.arrowStartY=n,this.elWidth=w,this.elHeight=f,this.resizeFlag=!0;let a,d;this.controlOptions.isAbsolute?(a=g-this.el.offsetLeft-this.borderInfo[1]-this.borderInfo[3],d=v-this.el.offsetTop-this.borderInfo[0]-this.borderInfo[2]):(a=window.innerWidth-h,d=window.innerHeight-l),setTimeout(()=>{this.isDrag=!1}),this.el.style.left=`${this.controlOptions.isAbsolute?this.el.offsetLeft:h}px`,this.el.style.top=`${this.controlOptions.isAbsolute?this.el.offsetTop:l}px`,this.el.style.right="auto",this.el.style.bottom="auto",this.emitControlEvent("tocontrolstart"),this.isTouch?(document.ontouchmove=c=>{if(!this.resizeFlag||!c.changedTouches)return;const{clientX:x,clientY:b}=c.changedTouches[0];this.el.style.width=`${Math.min(this.elWidth+x-this.arrowStartX,a)}px`,this.el.style.height=`${Math.min(this.elHeight+b-this.arrowStartY,d)}px`,this.emitControlEvent("tocontrolmove")},document.ontouchend=()=>{this.setPosition(),this.resizeFlag=!1,document.ontouchmove=null,document.ontouchend=null,this.emitControlEvent("tocontrolend")}):(document.onmousemove=c=>{if(!this.resizeFlag)return;const{x,y:b}=c;this.el.style.width=`${Math.min(this.elWidth+x-this.arrowStartX,a)}px`,this.el.style.height=`${Math.min(this.elHeight+b-this.arrowStartY,d)}px`,this.emitControlEvent("tocontrolmove")},document.onmouseup=()=>{this.setPosition(),this.resizeFlag=!1,document.onmousemove=null,document.onmouseup=null,this.emitControlEvent("tocontrolend")})}),this.controlOptions=o||{},this.initControl()}initControl(){var t;this.arrowCtx=this.createResizeArrow((t=this.controlOptions)==null?void 0:t.arrowOptions),this.el.appendChild(this.arrowCtx)}updateArrow(){var t;this.arrowCtx&&this.el.contains(this.arrowCtx)&&this.el.removeChild(this.arrowCtx),this.arrowCtx=this.createResizeArrow((t=this.controlOptions)==null?void 0:t.arrowOptions),this.el.appendChild(this.arrowCtx)}createResizeArrow(t){const o=typeof this.controlOptions.disabled=="function"&&this.controlOptions.disabled(),i={size:8,lineWidth:2,lineColor:"#9a9a9a",padding:2,...t},s=document.createElement("div");s.style.cssText=` position: absolute; right: 0; bottom: 0; diff --git a/assets/index.es-2a6d3cc0.js b/assets/index.es-6d9dc425.js similarity index 99% rename from assets/index.es-2a6d3cc0.js rename to assets/index.es-6d9dc425.js index 4f03b4e..4ba0ff0 100644 --- a/assets/index.es-2a6d3cc0.js +++ b/assets/index.es-6d9dc425.js @@ -1,4 +1,4 @@ -import{d as ue,a as h,e as q,w as D,A as se,o as m,c as K,i as c,F as T,m as V,H as J,I as U,l as X,j as z,C as E,n as A,J as re,p as f,k as M,t as F,D as O,T as de,B as Y,q as le,K as me}from"./index-e4e05649.js";const Z=function(e){let u=Array.isArray(e)?[]:{};if(e&&typeof e=="object")for(let n in e)e.hasOwnProperty(n)&&(e[n]&&typeof e[n]=="object"?u[n]=Z(e[n]):u[n]=e[n]);return u};var C=ue({name:"MouseMenu",props:{appendToBody:{type:Boolean,default:!0},menuWidth:{type:Number,default:200},menuList:{type:Array,required:!0},menuHiddenFn:{type:Function},hasIcon:{type:Boolean,default:!1},iconType:{type:String,default:"font-icon"},menuWrapperCss:Object,menuItemCss:Object,el:{type:Object,required:!0},params:{type:[String,Number,Array,Object]},useLongPressInMobile:Boolean,longPressDuration:Number,longPressPreventDefault:[Function,Boolean],injectCloseListener:{type:Boolean,default:!0},customClass:String,disabled:{type:Function}},emits:["open","close"],setup(e,{emit:u}){const n=h(0),a=h(0),_=h(!1),w=h(0),o=h(0),v=h(!1),s=h(null),y=h([]),H=q(()=>e.menuList.some(i=>i.children&&i.children.length>0)),k=h(10),S=h();D(v,async i=>{var r,d;if(i){await Y();let l=S.value;e.menuWrapperCss&&Object.keys(e.menuWrapperCss).map(b=>{l.style.setProperty(`--menu-${b}`,e.menuWrapperCss&&e.menuWrapperCss[b])}),e.menuItemCss&&Object.keys(e.menuItemCss).map(b=>{l.style.setProperty(`--menu-item-${b}`,e.menuItemCss&&e.menuItemCss[b])});let t=(d=(r=e.menuItemCss)==null?void 0:r.arrowSize)==null?void 0:d.match(/\d+/);t?k.value=~~t[0]||10:k.value=10,l.style.setProperty("--menu-item-arrowRealSize",k.value/2+"px"),u("open",e.params,s.value,e.el)}else u("close",e.params,s.value,e.el)});const ne=(i,r)=>{i.disabled||(i.fn&&typeof i.fn=="function"&&i.fn(e.params,s.value,e.el,r),v.value=!1)},te=(i,r)=>{i.disabled||(i.fn&&typeof i.fn=="function"&&!i.disabled&&(i.fn(e.params,s.value,e.el,r),_.value=!1),v.value=!1)},ae=(i,r)=>{if(r.children&&!r.disabled){_.value=!0;const d=i.currentTarget;if(!d)return;const{offsetWidth:l}=d,t=d.querySelector(".__menu__sub__wrapper");if(!t)return;const{offsetWidth:b,offsetHeight:L}=t,{innerWidth:_e,innerHeight:I}=window,{top:j,left:$}=d.getBoundingClientRect();$+l+b>_e-5?n.value=$-b+5:n.value=$+l,j+L>I-5?a.value=I-L:a.value=j+5}},R=(i,r,d,l)=>i.map(t=>(t.children&&(t.children=R(t.children,r,d,l)),t.label&&typeof t.label=="function"&&(t.label=t.label(l,r,d)),t.tips&&typeof t.tips=="function"&&(t.tips=t.tips(l,r,d)),t.icon&&typeof t.icon=="function"&&(t.icon=t.icon(l,r,d)),t.hidden&&typeof t.hidden=="function"&&(t.hidden=t.hidden(l,r,d)),t.disabled&&typeof t.disabled=="function"&&(t.disabled=t.disabled(l,r,d)),t)),ie=async(i=0,r=0)=>{if(s.value=document.elementFromPoint(i-1,r-1),e.menuHiddenFn?v.value=!e.menuHiddenFn(e.params,s.value,e.el):v.value=!0,!v.value)return;y.value=Z(e.menuList),y.value=R(y.value,s.value,e.el,e.params),await Y();const{innerWidth:d,innerHeight:l}=window,b=S.value.offsetHeight,L=e.menuWidth||200;o.value=i+L+1>d?d-L-5:i+1,w.value=r+b+1>l?l-b-5:r+1},oe=()=>{v.value=!1},x=q(()=>e.useLongPressInMobile&&"ontouchstart"in window?"touchstart":"mousedown"),P=i=>{S.value&&!S.value.contains(i.currentTarget)&&(v.value=!1,document.oncontextmenu=null)};return D(()=>e.injectCloseListener,i=>{i?document.addEventListener(x.value,P):document.removeEventListener(x.value,P)},{immediate:!0}),se(()=>{document.removeEventListener(x.value,P)}),{subLeft:n,subTop:a,hoverFlag:_,menuTop:w,menuLeft:o,showMenu:v,clickDomEl:s,calcMenuList:y,arrowSize:k,hasSubMenu:H,MenuWrapper:S,handleMenuItemClick:ne,handleSubMenuItemClick:te,handleMenuMouseEnter:ae,show:ie,close:oe,clickEventKey:x}}});const ce=["onMouseenter"],ve={key:0,class:"__menu__item-icon"},be=["innerHTML"],he={class:"__menu__item-label"},fe={class:"__menu__item-tips"},pe={class:"__menu__item-arrow-after"},we={class:"__menu__sub__item-label"},ye={class:"__menu__sub__item-tips"};function ge(e,u,n,a,_,w){return m(),K(de,{to:"body",disabled:!e.appendToBody},[e.showMenu?(m(),c("div",{key:0,ref:"MenuWrapper",class:A(["__menu__wrapper",e.customClass]),style:O({width:`${e.menuWidth}px`,top:`${e.menuTop}px`,left:`${e.menuLeft}px`})},[(m(!0),c(T,null,V(e.calcMenuList,(o,v)=>(m(),c(T,null,[!o.hidden&&!o.line?(m(),c("div",J({key:v,class:["__menu__item",o.disabled&&"disabled",o.customClass]},{[U(e.clickEventKey)]:X(s=>e.handleMenuItemClick(o,s),["stop"])},{onMouseenter:s=>e.handleMenuMouseEnter(s,o)}),[e.hasIcon?(m(),c("div",ve,[e.iconType==="font-icon"?z((m(),c("i",{key:0,class:A(o.icon)},null,2)),[[E,o.icon]]):e.iconType==="svg-icon"?z((m(),c("div",{key:1,class:"__menu__item-icon-svg",innerHTML:o.icon},null,8,be)),[[E,o.icon]]):e.iconType==="vnode-icon"?(m(),K(re(o.icon),{key:2})):f("v-if",!0)])):f("v-if",!0),M("span",he,F(o.label),1),M("span",fe,F(o.tips||""),1),e.hasSubMenu?(m(),c("span",{key:1,class:A(["__menu__item-arrow",{show:e.hasSubMenu&&o.children}]),style:O({width:e.arrowSize+"px",height:e.arrowSize+"px"})},[z(M("span",pe,null,512),[[E,e.hasSubMenu&&o.children]])],6)):f("v-if",!0),o.children&&o.children.length>0?z((m(),c("div",{key:2,class:"__menu__sub__wrapper",style:O({top:`${e.subTop}px`,left:`${e.subLeft}px`})},[(m(!0),c(T,null,V(o.children,(s,y)=>(m(),c(T,null,[!s.hidden&&!s.line?(m(),c("div",J({key:y,class:["__menu__sub__item",s.disabled&&"disabled",s.customClass]},{[U(e.clickEventKey)]:X(H=>e.handleSubMenuItemClick(s,H),["stop"])}),[M("span",we,F(s.label),1),M("span",ye,F(s.tips||""),1)],16)):f("v-if",!0),s.line?(m(),c("div",{key:y,class:"__menu__line"})):f("v-if",!0)],64))),256))],4)),[[E,e.hoverFlag]]):f("v-if",!0)],16,ce)):f("v-if",!0),!o.hidden&&o.line?(m(),c("div",{key:v,class:"__menu__line"})):f("v-if",!0)],64))),256))],6)):f("v-if",!0)],8,["disabled"])}function Ce(e,u){u===void 0&&(u={});var n=u.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],_=document.createElement("style");_.type="text/css",n==="top"&&a.firstChild?a.insertBefore(_,a.firstChild):a.appendChild(_),_.styleSheet?_.styleSheet.cssText=e:_.appendChild(document.createTextNode(e))}}var Se=`.__menu__mask[data-v-3d21bc0a] { +import{d as ue,a as h,e as q,w as D,A as se,o as m,c as K,i as c,F as T,m as V,H as J,I as U,l as X,j as z,C as E,n as A,J as re,p as f,k as M,t as F,D as O,T as de,B as Y,q as le,K as me}from"./index-9e0334f6.js";const Z=function(e){let u=Array.isArray(e)?[]:{};if(e&&typeof e=="object")for(let n in e)e.hasOwnProperty(n)&&(e[n]&&typeof e[n]=="object"?u[n]=Z(e[n]):u[n]=e[n]);return u};var C=ue({name:"MouseMenu",props:{appendToBody:{type:Boolean,default:!0},menuWidth:{type:Number,default:200},menuList:{type:Array,required:!0},menuHiddenFn:{type:Function},hasIcon:{type:Boolean,default:!1},iconType:{type:String,default:"font-icon"},menuWrapperCss:Object,menuItemCss:Object,el:{type:Object,required:!0},params:{type:[String,Number,Array,Object]},useLongPressInMobile:Boolean,longPressDuration:Number,longPressPreventDefault:[Function,Boolean],injectCloseListener:{type:Boolean,default:!0},customClass:String,disabled:{type:Function}},emits:["open","close"],setup(e,{emit:u}){const n=h(0),a=h(0),_=h(!1),w=h(0),o=h(0),v=h(!1),s=h(null),y=h([]),H=q(()=>e.menuList.some(i=>i.children&&i.children.length>0)),k=h(10),S=h();D(v,async i=>{var r,d;if(i){await Y();let l=S.value;e.menuWrapperCss&&Object.keys(e.menuWrapperCss).map(b=>{l.style.setProperty(`--menu-${b}`,e.menuWrapperCss&&e.menuWrapperCss[b])}),e.menuItemCss&&Object.keys(e.menuItemCss).map(b=>{l.style.setProperty(`--menu-item-${b}`,e.menuItemCss&&e.menuItemCss[b])});let t=(d=(r=e.menuItemCss)==null?void 0:r.arrowSize)==null?void 0:d.match(/\d+/);t?k.value=~~t[0]||10:k.value=10,l.style.setProperty("--menu-item-arrowRealSize",k.value/2+"px"),u("open",e.params,s.value,e.el)}else u("close",e.params,s.value,e.el)});const ne=(i,r)=>{i.disabled||(i.fn&&typeof i.fn=="function"&&i.fn(e.params,s.value,e.el,r),v.value=!1)},te=(i,r)=>{i.disabled||(i.fn&&typeof i.fn=="function"&&!i.disabled&&(i.fn(e.params,s.value,e.el,r),_.value=!1),v.value=!1)},ae=(i,r)=>{if(r.children&&!r.disabled){_.value=!0;const d=i.currentTarget;if(!d)return;const{offsetWidth:l}=d,t=d.querySelector(".__menu__sub__wrapper");if(!t)return;const{offsetWidth:b,offsetHeight:L}=t,{innerWidth:_e,innerHeight:I}=window,{top:j,left:$}=d.getBoundingClientRect();$+l+b>_e-5?n.value=$-b+5:n.value=$+l,j+L>I-5?a.value=I-L:a.value=j+5}},R=(i,r,d,l)=>i.map(t=>(t.children&&(t.children=R(t.children,r,d,l)),t.label&&typeof t.label=="function"&&(t.label=t.label(l,r,d)),t.tips&&typeof t.tips=="function"&&(t.tips=t.tips(l,r,d)),t.icon&&typeof t.icon=="function"&&(t.icon=t.icon(l,r,d)),t.hidden&&typeof t.hidden=="function"&&(t.hidden=t.hidden(l,r,d)),t.disabled&&typeof t.disabled=="function"&&(t.disabled=t.disabled(l,r,d)),t)),ie=async(i=0,r=0)=>{if(s.value=document.elementFromPoint(i-1,r-1),e.menuHiddenFn?v.value=!e.menuHiddenFn(e.params,s.value,e.el):v.value=!0,!v.value)return;y.value=Z(e.menuList),y.value=R(y.value,s.value,e.el,e.params),await Y();const{innerWidth:d,innerHeight:l}=window,b=S.value.offsetHeight,L=e.menuWidth||200;o.value=i+L+1>d?d-L-5:i+1,w.value=r+b+1>l?l-b-5:r+1},oe=()=>{v.value=!1},x=q(()=>e.useLongPressInMobile&&"ontouchstart"in window?"touchstart":"mousedown"),P=i=>{S.value&&!S.value.contains(i.currentTarget)&&(v.value=!1,document.oncontextmenu=null)};return D(()=>e.injectCloseListener,i=>{i?document.addEventListener(x.value,P):document.removeEventListener(x.value,P)},{immediate:!0}),se(()=>{document.removeEventListener(x.value,P)}),{subLeft:n,subTop:a,hoverFlag:_,menuTop:w,menuLeft:o,showMenu:v,clickDomEl:s,calcMenuList:y,arrowSize:k,hasSubMenu:H,MenuWrapper:S,handleMenuItemClick:ne,handleSubMenuItemClick:te,handleMenuMouseEnter:ae,show:ie,close:oe,clickEventKey:x}}});const ce=["onMouseenter"],ve={key:0,class:"__menu__item-icon"},be=["innerHTML"],he={class:"__menu__item-label"},fe={class:"__menu__item-tips"},pe={class:"__menu__item-arrow-after"},we={class:"__menu__sub__item-label"},ye={class:"__menu__sub__item-tips"};function ge(e,u,n,a,_,w){return m(),K(de,{to:"body",disabled:!e.appendToBody},[e.showMenu?(m(),c("div",{key:0,ref:"MenuWrapper",class:A(["__menu__wrapper",e.customClass]),style:O({width:`${e.menuWidth}px`,top:`${e.menuTop}px`,left:`${e.menuLeft}px`})},[(m(!0),c(T,null,V(e.calcMenuList,(o,v)=>(m(),c(T,null,[!o.hidden&&!o.line?(m(),c("div",J({key:v,class:["__menu__item",o.disabled&&"disabled",o.customClass]},{[U(e.clickEventKey)]:X(s=>e.handleMenuItemClick(o,s),["stop"])},{onMouseenter:s=>e.handleMenuMouseEnter(s,o)}),[e.hasIcon?(m(),c("div",ve,[e.iconType==="font-icon"?z((m(),c("i",{key:0,class:A(o.icon)},null,2)),[[E,o.icon]]):e.iconType==="svg-icon"?z((m(),c("div",{key:1,class:"__menu__item-icon-svg",innerHTML:o.icon},null,8,be)),[[E,o.icon]]):e.iconType==="vnode-icon"?(m(),K(re(o.icon),{key:2})):f("v-if",!0)])):f("v-if",!0),M("span",he,F(o.label),1),M("span",fe,F(o.tips||""),1),e.hasSubMenu?(m(),c("span",{key:1,class:A(["__menu__item-arrow",{show:e.hasSubMenu&&o.children}]),style:O({width:e.arrowSize+"px",height:e.arrowSize+"px"})},[z(M("span",pe,null,512),[[E,e.hasSubMenu&&o.children]])],6)):f("v-if",!0),o.children&&o.children.length>0?z((m(),c("div",{key:2,class:"__menu__sub__wrapper",style:O({top:`${e.subTop}px`,left:`${e.subLeft}px`})},[(m(!0),c(T,null,V(o.children,(s,y)=>(m(),c(T,null,[!s.hidden&&!s.line?(m(),c("div",J({key:y,class:["__menu__sub__item",s.disabled&&"disabled",s.customClass]},{[U(e.clickEventKey)]:X(H=>e.handleSubMenuItemClick(s,H),["stop"])}),[M("span",we,F(s.label),1),M("span",ye,F(s.tips||""),1)],16)):f("v-if",!0),s.line?(m(),c("div",{key:y,class:"__menu__line"})):f("v-if",!0)],64))),256))],4)),[[E,e.hoverFlag]]):f("v-if",!0)],16,ce)):f("v-if",!0),!o.hidden&&o.line?(m(),c("div",{key:v,class:"__menu__line"})):f("v-if",!0)],64))),256))],6)):f("v-if",!0)],8,["disabled"])}function Ce(e,u){u===void 0&&(u={});var n=u.insertAt;if(!(!e||typeof document>"u")){var a=document.head||document.getElementsByTagName("head")[0],_=document.createElement("style");_.type="text/css",n==="top"&&a.firstChild?a.insertBefore(_,a.firstChild):a.appendChild(_),_.styleSheet?_.styleSheet.cssText=e:_.appendChild(document.createTextNode(e))}}var Se=`.__menu__mask[data-v-3d21bc0a] { position: fixed; top: 0; left: 0; diff --git a/assets/index.es-be2f93d7.js b/assets/index.es-8da2c7aa.js similarity index 99% rename from assets/index.es-be2f93d7.js rename to assets/index.es-8da2c7aa.js index 8676852..05af273 100644 --- a/assets/index.es-be2f93d7.js +++ b/assets/index.es-8da2c7aa.js @@ -1,4 +1,4 @@ -import{d as _,a as b,e as E,z as H,A,B as w,o as k,c as M,j as D,C as j,k as s,D as q,n as B,i as S,E as x,p as T,l as V,T as U,t as G,s as J,x as K}from"./index-e4e05649.js";function P(n,a){const e=a.parentNode;e.lastChild===a?e.appendChild(n):e.insertBefore(n,a.nextSibling)}var f=_({name:"AnimationDialog",props:{width:{type:String,default:"60vw"},height:{type:String,default:"70vh"},animationMode:{type:Boolean,default:!1},animationIn:{type:String,default:"bounceIn"},animationOut:{type:String,default:"bounceOut"},time:{type:Number,default:500},timingFunction:{type:String,default:"ease-in-out"},openFromItself:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},customClass:String,customWrapperClass:String,listenWindowSizeChange:{type:Boolean,default:!1},debounceWait:{type:Number,default:200},title:{type:String},closeOnClickOutside:{type:Boolean,default:!0}},emits:["beforeClose","close"],setup(n,{emit:a}){const e=b(),o=b(),t=b(),m=E(()=>n.time/1e3);let r=null;const $=()=>{r&&clearTimeout(r),r=setTimeout(async()=>{const{width:l,height:d}=e.value.getBoundingClientRect();e.value.style.left=`calc(50% - ${l/2}px`,e.value.top=`calc(50% - ${d/2}px)`,await w();const{top:c,left:u,width:h,height:v}=e.value.getBoundingClientRect();t.value.style.top=`${c}px`,t.value.style.left=`${u}px`,t.value.style.width=`${h}px`,t.value.style.height=`${v}px`},n.debounceWait)};H(()=>{n.listenWindowSizeChange&&window.addEventListener("resize",$)}),A(()=>{n.listenWindowSizeChange&&window.removeEventListener("resize",$)});const p=b(!1);let i=null,g=null;const O=async l=>{if(n.animationMode){p.value=!0,await w();const{width:d,height:c}=e.value.getBoundingClientRect();e.value.style.left=`calc(50% - ${d/2}px`,e.value.style.top=`calc(50% - ${c/2}px)`,await w();const{top:u,left:h,width:v,height:y}=e.value.getBoundingClientRect();t.value.style.cssText=`top:${u}px; +import{d as _,a as b,e as E,z as H,A,B as w,o as k,c as M,j as D,C as j,k as s,D as q,n as B,i as S,E as x,p as T,l as V,T as U,t as G,s as J,x as K}from"./index-9e0334f6.js";function P(n,a){const e=a.parentNode;e.lastChild===a?e.appendChild(n):e.insertBefore(n,a.nextSibling)}var f=_({name:"AnimationDialog",props:{width:{type:String,default:"60vw"},height:{type:String,default:"70vh"},animationMode:{type:Boolean,default:!1},animationIn:{type:String,default:"bounceIn"},animationOut:{type:String,default:"bounceOut"},time:{type:Number,default:500},timingFunction:{type:String,default:"ease-in-out"},openFromItself:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},customClass:String,customWrapperClass:String,listenWindowSizeChange:{type:Boolean,default:!1},debounceWait:{type:Number,default:200},title:{type:String},closeOnClickOutside:{type:Boolean,default:!0}},emits:["beforeClose","close"],setup(n,{emit:a}){const e=b(),o=b(),t=b(),m=E(()=>n.time/1e3);let r=null;const $=()=>{r&&clearTimeout(r),r=setTimeout(async()=>{const{width:l,height:d}=e.value.getBoundingClientRect();e.value.style.left=`calc(50% - ${l/2}px`,e.value.top=`calc(50% - ${d/2}px)`,await w();const{top:c,left:u,width:h,height:v}=e.value.getBoundingClientRect();t.value.style.top=`${c}px`,t.value.style.left=`${u}px`,t.value.style.width=`${h}px`,t.value.style.height=`${v}px`},n.debounceWait)};H(()=>{n.listenWindowSizeChange&&window.addEventListener("resize",$)}),A(()=>{n.listenWindowSizeChange&&window.removeEventListener("resize",$)});const p=b(!1);let i=null,g=null;const O=async l=>{if(n.animationMode){p.value=!0,await w();const{width:d,height:c}=e.value.getBoundingClientRect();e.value.style.left=`calc(50% - ${d/2}px`,e.value.style.top=`calc(50% - ${c/2}px)`,await w();const{top:u,left:h,width:v,height:y}=e.value.getBoundingClientRect();t.value.style.cssText=`top:${u}px; left: ${h}px; width: ${v}px; height: ${y}px; diff --git a/assets/index.es-7282307a.js b/assets/index.es-a5b3ac5e.js similarity index 99% rename from assets/index.es-7282307a.js rename to assets/index.es-a5b3ac5e.js index 92b2a2c..bacc01d 100644 --- a/assets/index.es-7282307a.js +++ b/assets/index.es-a5b3ac5e.js @@ -1,4 +1,4 @@ -import{d as O,a as b,e as g,w as Q,B as N,o as S,i as M,k as $,F as z,m as R,n as D,D as m,t as U,E as Z}from"./index-e4e05649.js";var y=O({name:"StandardTabs",props:{tabWidth:{type:Number,default:80},lineWidth:{type:Number,default:30},tabContentWidth:{type:[Number,String],default:"100vw"},tabContentMinHeight:{type:String,default:"100px"},tabList:{type:Array,required:!0},transitionDuration:{type:Number,default:400},mainTransitionTimingFunction:{type:String,default:"cubic-bezier(0.075, 0.82, 0.165, 1)"},tabTransitionTimingFunction:{type:String,default:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"},tabCustomStyle:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},moveEventPrevent:{type:Boolean,default:!0}},emits:["tabActiveChange","contentTouchStart","contentTouchMove","contentTouchEnd"],setup(t,{emit:n}){let T=0,v=0,s=0,L=0,a=0,c=!1,C=!1;const o=b(0),h=b(0),f=b(0),d=b(0),r=b(0),w=b(!1),E=b(!1),X=b(!1),W=b(!1),k=g(()=>t.tabWidth*t.tabList.length),u=g(()=>typeof t.tabContentWidth=="number"?t.tabContentWidth:typeof t.tabContentWidth=="string"&&/\d+vw/.test(t.tabContentWidth)?~~t.tabContentWidth.replace("vw","")*window.innerWidth/100:(console.error("[StandardTabs]Props Error: tabContentWidth is invalid, it will reset to 100vw!"),window.innerWidth)),_=g(()=>(t.tabWidth-t.lineWidth)/2),Y=g(()=>`transition: all ${t.transitionDuration/1e3}s ${t.mainTransitionTimingFunction}`),j=g(()=>`transition: all ${t.transitionDuration/1e3}s ${t.tabTransitionTimingFunction}`),H=g(()=>{let e=o.value*t.tabWidth,i=t.tabWidth*(t.tabList.length-1);return e<0?e=0:e>i&&(e=i),e});Q(o,e=>{n("tabActiveChange",e)});const I=e=>{const{clientX:i}=e.touches[0];T=i},q=e=>{const{clientX:i}=e.touches[0],l=i-T,p=k.value-u.value;d.value=d.value+l,d.value>0?d.value=0:d.value<-p&&(d.value=-p),T=i},V=e=>{console.log("touchEnd",e)},G=e=>{const{clientX:i,clientY:l}=e.touches[0];v=s=i,L=l,a=r.value,f.value=0,E.value=!0,c=!0,setTimeout(()=>{c=!1},300),n("contentTouchStart",e),t.stopPropagation&&e.stopPropagation()},J=e=>{const i=t.tabWidth/u.value,{clientX:l,clientY:p}=e.touches[0],A=l-v;if(C||(C=!0,W.value=Math.abs(p-L)/Math.abs(l-s)>1),X.value=l-s<0,W.value)return;t.moveEventPrevent&&e.preventDefault();const B=u.value*(t.tabList.length-1);if(r.value=r.value+A,X.value?o.value!==t.tabList.length-1&&(f.value+=-A*i):o.value!==0&&(f.value+=+A*i),f.value<0&&(f.value=0),r.value>0)r.value=0;else if(r.value<-B)r.value=-B;else{const F=l-s;Math.abs(F)>u.value/2?F<0?h.value!==o.value+1&&h.value++:h.value!==o.value-1&&h.value--:h.value=o.value}v=l,n("contentTouchMove",e),t.stopPropagation&&e.stopPropagation()},K=async e=>{if(C=!1,W.value)return;const{clientX:i}=e.changedTouches[0],l=i-s,p=Math.abs(l);if(w.value=!0,E.value=!1,await N(),c&&p>10||p>u.value/2){if(l>0){if(o.value===0)return;r.value=a+u.value,o.value--}else{if(o.value===t.tabList.length-1)return;r.value=a-u.value,o.value++}h.value=o.value,P(o.value)}else r.value=a;f.value=0,setTimeout(()=>{w.value=!1},500),n("contentTouchEnd",e),t.stopPropagation&&e.stopPropagation()},P=e=>{const i=e*t.tabWidth-u.value/2+t.tabWidth/2,l=k.value-u.value;l<0||(i<0?d.value=0:i>l?d.value=-l:d.value=-i)};return{active:o,preActive:h,lineDynamicWidth:f,tabListMove:d,tabContentMove:r,transition:w,denyLineTransition:E,isDragRight:X,isYScroll:W,tabListMaxWidth:k,tabContentRealWidth:u,lineSpacing:_,computedMainTransitionStr:Y,computedTabTransitionStr:j,lineLeft:H,listTouchStart:I,listTouchMove:q,listTouchEnd:V,contentTouchStart:G,contentTouchMove:J,contentTouchEnd:K,setActive:async e=>{w.value=!0,await N(),o.value=h.value=e,P(e),r.value=-o.value*u.value,setTimeout(()=>{w.value=!1},500)}}}});const x=["onClick"];function tt(t,n,T,v,s,L){return S(),M("div",{class:"__tab-wrapper",style:m(`width: ${t.tabContentRealWidth}px`)},[$("div",{class:"__tab-list",style:m(`width:${t.tabListMaxWidth}px;transform: translateX(${t.tabListMove}px);${t.tabCustomStyle};${t.transition&&t.computedTabTransitionStr};`),onTouchstart:n[0]||(n[0]=(...a)=>t.listTouchStart&&t.listTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>t.listTouchMove&&t.listTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>t.listTouchEnd&&t.listTouchEnd(...a))},[(S(!0),M(z,null,R(t.tabList,(a,c)=>(S(),M("div",{key:a,class:D(["__tab-list-item",{active:t.preActive===c}]),style:m(`width: ${t.tabWidth}px`),onClick:C=>t.setActive(c)},U(a),15,x))),128)),$("div",{class:D(["__line-wrapper",{"deny-transition":t.denyLineTransition}]),style:m(`width: ${t.tabWidth}px;transform: translateX(${t.lineLeft}px);${t.transition&&t.computedMainTransitionStr}`)},[$("div",{class:"__line",style:m(`width: ${t.lineWidth+t.lineDynamicWidth}px;${t.isDragRight?"left":"right"}: ${t.lineSpacing}px;${t.transition&&t.computedMainTransitionStr};`)},null,4)],6)],36),$("div",{class:"__tab-content",style:m(`width:${t.tabList.length*100}vw;transform: translateX(${t.tabContentMove}px);${t.transition&&t.computedMainTransitionStr}`),onTouchstart:n[3]||(n[3]=(...a)=>t.contentTouchStart&&t.contentTouchStart(...a)),onTouchmove:n[4]||(n[4]=(...a)=>t.contentTouchMove&&t.contentTouchMove(...a)),onTouchend:n[5]||(n[5]=(...a)=>t.contentTouchEnd&&t.contentTouchEnd(...a))},[(S(!0),M(z,null,R(t.tabList,(a,c)=>(S(),M("div",{key:a,class:D(["__tab-content-item",{active:t.active===c}]),style:m(`width: ${t.tabContentRealWidth}px;min-height: ${t.tabContentMinHeight}`)},[Z(t.$slots,`tab${c+1}`)],6))),128))],36)],4)}function et(t,n){n===void 0&&(n={});var T=n.insertAt;if(!(!t||typeof document>"u")){var v=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",T==="top"&&v.firstChild?v.insertBefore(s,v.firstChild):v.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}}var nt=`.deny-transition[data-v-465239b9] { +import{d as O,a as b,e as g,w as Q,B as N,o as S,i as M,k as $,F as z,m as R,n as D,D as m,t as U,E as Z}from"./index-9e0334f6.js";var y=O({name:"StandardTabs",props:{tabWidth:{type:Number,default:80},lineWidth:{type:Number,default:30},tabContentWidth:{type:[Number,String],default:"100vw"},tabContentMinHeight:{type:String,default:"100px"},tabList:{type:Array,required:!0},transitionDuration:{type:Number,default:400},mainTransitionTimingFunction:{type:String,default:"cubic-bezier(0.075, 0.82, 0.165, 1)"},tabTransitionTimingFunction:{type:String,default:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"},tabCustomStyle:{type:String,default:""},stopPropagation:{type:Boolean,default:!1},moveEventPrevent:{type:Boolean,default:!0}},emits:["tabActiveChange","contentTouchStart","contentTouchMove","contentTouchEnd"],setup(t,{emit:n}){let T=0,v=0,s=0,L=0,a=0,c=!1,C=!1;const o=b(0),h=b(0),f=b(0),d=b(0),r=b(0),w=b(!1),E=b(!1),X=b(!1),W=b(!1),k=g(()=>t.tabWidth*t.tabList.length),u=g(()=>typeof t.tabContentWidth=="number"?t.tabContentWidth:typeof t.tabContentWidth=="string"&&/\d+vw/.test(t.tabContentWidth)?~~t.tabContentWidth.replace("vw","")*window.innerWidth/100:(console.error("[StandardTabs]Props Error: tabContentWidth is invalid, it will reset to 100vw!"),window.innerWidth)),_=g(()=>(t.tabWidth-t.lineWidth)/2),Y=g(()=>`transition: all ${t.transitionDuration/1e3}s ${t.mainTransitionTimingFunction}`),j=g(()=>`transition: all ${t.transitionDuration/1e3}s ${t.tabTransitionTimingFunction}`),H=g(()=>{let e=o.value*t.tabWidth,i=t.tabWidth*(t.tabList.length-1);return e<0?e=0:e>i&&(e=i),e});Q(o,e=>{n("tabActiveChange",e)});const I=e=>{const{clientX:i}=e.touches[0];T=i},q=e=>{const{clientX:i}=e.touches[0],l=i-T,p=k.value-u.value;d.value=d.value+l,d.value>0?d.value=0:d.value<-p&&(d.value=-p),T=i},V=e=>{console.log("touchEnd",e)},G=e=>{const{clientX:i,clientY:l}=e.touches[0];v=s=i,L=l,a=r.value,f.value=0,E.value=!0,c=!0,setTimeout(()=>{c=!1},300),n("contentTouchStart",e),t.stopPropagation&&e.stopPropagation()},J=e=>{const i=t.tabWidth/u.value,{clientX:l,clientY:p}=e.touches[0],A=l-v;if(C||(C=!0,W.value=Math.abs(p-L)/Math.abs(l-s)>1),X.value=l-s<0,W.value)return;t.moveEventPrevent&&e.preventDefault();const B=u.value*(t.tabList.length-1);if(r.value=r.value+A,X.value?o.value!==t.tabList.length-1&&(f.value+=-A*i):o.value!==0&&(f.value+=+A*i),f.value<0&&(f.value=0),r.value>0)r.value=0;else if(r.value<-B)r.value=-B;else{const F=l-s;Math.abs(F)>u.value/2?F<0?h.value!==o.value+1&&h.value++:h.value!==o.value-1&&h.value--:h.value=o.value}v=l,n("contentTouchMove",e),t.stopPropagation&&e.stopPropagation()},K=async e=>{if(C=!1,W.value)return;const{clientX:i}=e.changedTouches[0],l=i-s,p=Math.abs(l);if(w.value=!0,E.value=!1,await N(),c&&p>10||p>u.value/2){if(l>0){if(o.value===0)return;r.value=a+u.value,o.value--}else{if(o.value===t.tabList.length-1)return;r.value=a-u.value,o.value++}h.value=o.value,P(o.value)}else r.value=a;f.value=0,setTimeout(()=>{w.value=!1},500),n("contentTouchEnd",e),t.stopPropagation&&e.stopPropagation()},P=e=>{const i=e*t.tabWidth-u.value/2+t.tabWidth/2,l=k.value-u.value;l<0||(i<0?d.value=0:i>l?d.value=-l:d.value=-i)};return{active:o,preActive:h,lineDynamicWidth:f,tabListMove:d,tabContentMove:r,transition:w,denyLineTransition:E,isDragRight:X,isYScroll:W,tabListMaxWidth:k,tabContentRealWidth:u,lineSpacing:_,computedMainTransitionStr:Y,computedTabTransitionStr:j,lineLeft:H,listTouchStart:I,listTouchMove:q,listTouchEnd:V,contentTouchStart:G,contentTouchMove:J,contentTouchEnd:K,setActive:async e=>{w.value=!0,await N(),o.value=h.value=e,P(e),r.value=-o.value*u.value,setTimeout(()=>{w.value=!1},500)}}}});const x=["onClick"];function tt(t,n,T,v,s,L){return S(),M("div",{class:"__tab-wrapper",style:m(`width: ${t.tabContentRealWidth}px`)},[$("div",{class:"__tab-list",style:m(`width:${t.tabListMaxWidth}px;transform: translateX(${t.tabListMove}px);${t.tabCustomStyle};${t.transition&&t.computedTabTransitionStr};`),onTouchstart:n[0]||(n[0]=(...a)=>t.listTouchStart&&t.listTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>t.listTouchMove&&t.listTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>t.listTouchEnd&&t.listTouchEnd(...a))},[(S(!0),M(z,null,R(t.tabList,(a,c)=>(S(),M("div",{key:a,class:D(["__tab-list-item",{active:t.preActive===c}]),style:m(`width: ${t.tabWidth}px`),onClick:C=>t.setActive(c)},U(a),15,x))),128)),$("div",{class:D(["__line-wrapper",{"deny-transition":t.denyLineTransition}]),style:m(`width: ${t.tabWidth}px;transform: translateX(${t.lineLeft}px);${t.transition&&t.computedMainTransitionStr}`)},[$("div",{class:"__line",style:m(`width: ${t.lineWidth+t.lineDynamicWidth}px;${t.isDragRight?"left":"right"}: ${t.lineSpacing}px;${t.transition&&t.computedMainTransitionStr};`)},null,4)],6)],36),$("div",{class:"__tab-content",style:m(`width:${t.tabList.length*100}vw;transform: translateX(${t.tabContentMove}px);${t.transition&&t.computedMainTransitionStr}`),onTouchstart:n[3]||(n[3]=(...a)=>t.contentTouchStart&&t.contentTouchStart(...a)),onTouchmove:n[4]||(n[4]=(...a)=>t.contentTouchMove&&t.contentTouchMove(...a)),onTouchend:n[5]||(n[5]=(...a)=>t.contentTouchEnd&&t.contentTouchEnd(...a))},[(S(!0),M(z,null,R(t.tabList,(a,c)=>(S(),M("div",{key:a,class:D(["__tab-content-item",{active:t.active===c}]),style:m(`width: ${t.tabContentRealWidth}px;min-height: ${t.tabContentMinHeight}`)},[Z(t.$slots,`tab${c+1}`)],6))),128))],36)],4)}function et(t,n){n===void 0&&(n={});var T=n.insertAt;if(!(!t||typeof document>"u")){var v=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",T==="top"&&v.firstChild?v.insertBefore(s,v.firstChild):v.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}}var nt=`.deny-transition[data-v-465239b9] { transition: none !important; } .__tab-wrapper[data-v-465239b9] { diff --git a/assets/index.es-de103fbd.js b/assets/index.es-de103fbd.js new file mode 100644 index 0000000..c1be0c5 --- /dev/null +++ b/assets/index.es-de103fbd.js @@ -0,0 +1,2 @@ +var m=Object.defineProperty,b=(e,t,s)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,h=(e,t,s)=>(b(e,typeof t!="symbol"?t+"":t,s),s);function v(e,t,s=!1){const i={},o=window.getComputedStyle(e);return t.map(n=>{let r=o[n];if(s){const d=r.match(/\d+/);d&&(r=~~d[0])}i[n]=r}),i}class g{constructor({el:t,options:s}){h(this,"el"),h(this,"isTouch"),h(this,"isDrag"),h(this,"parent"),h(this,"left",0),h(this,"top",0),h(this,"right",0),h(this,"bottom",0),h(this,"width",0),h(this,"height",0),h(this,"maxX",0),h(this,"maxY",0),h(this,"options"),h(this,"scrollbarWidth"),h(this,"startX",0),h(this,"startY",0),h(this,"getScrollbarWidth",()=>{const i=document.createElement("div");i.style.cssText="width:100px;height:100px;overflow-y:scroll",document.body.appendChild(i);const o=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),o}),h(this,"setBetween",(i,o,n)=>in?n:i),h(this,"borderInfo",[0,0,0,0]),this.el=t instanceof HTMLElement?t:document.querySelector(t),this.scrollbarWidth=this.getScrollbarWidth(),this.isTouch="ontouchstart"in document.documentElement,this.isDrag=!1,this.options={moveCursor:!0,adsorb:0,adsorbOffset:0,transitionDuration:400,transitionTimingFunction:"ease-in-out",forbidBodyScroll:!0,isAbsolute:!1,positionMode:1,needComputeBorder:!0,...s},this.parent=this.options.parentSelector&&document.querySelector(this.options.parentSelector)||this.el.parentNode,this.options.transitionDuration&&(this.options.transitionDuration=this.options.transitionDuration/1e3),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleMousedown=this.handleMousedown.bind(this),this.moveEvent=this.moveEvent.bind(this),this.endEvent=this.endEvent.bind(this),this.init()}init(){this.isTouch?this.el.addEventListener("touchstart",this.handleTouchStart):this.el.addEventListener("mousedown",this.handleMousedown),this.options.moveCursor&&(this.el.style.cursor="move"),this.setPosition(),this.setLimit(),this.handleAdsorb(),this.handlePositionMode(),setTimeout(()=>{this.emitEvent("todraginit")})}handleMousedown(t){if(typeof this.options.disabled=="function"&&this.options.disabled())return;const{x:s,y:i}=t;this.setStartInfo(s,i,t),document.addEventListener("mousemove",this.moveEvent),document.addEventListener("mouseup",this.endEvent)}handleTouchStart(t){if(typeof this.options.disabled=="function"&&this.options.disabled())return;const s=this.isTouch?t.changedTouches[0].clientX:t.x,i=this.isTouch?t.changedTouches[0].clientY:t.y;this.setStartInfo(s,i,t),document.addEventListener("touchmove",this.moveEvent,{passive:!1}),document.addEventListener("touchend",this.endEvent)}setPosition(){const{left:t,top:s,width:i,height:o}=this.el.getBoundingClientRect();this.left=t,this.top=s,this.width=i,this.height=o,this.options.isAbsolute?(this.maxX=this.parent.offsetWidth-this.width,this.maxY=this.parent.offsetHeight-this.height):(this.maxX=document.body.scrollWidth>window.innerWidth?window.innerWidth-this.width-this.scrollbarWidth:window.innerWidth-this.width,this.maxY=document.body.scrollHeight>window.innerHeight?window.innerHeight-this.height-this.scrollbarWidth:window.innerHeight-this.height)}setStartInfo(t,s,i){this.setPosition(),this.setLimit(),this.startX=t-this.left,this.startY=s-this.top,this.isDrag=!0,this.el.style.transition="",document.body.style.userSelect="none",this.options.forbidBodyScroll&&(document.body.style.overflow="hidden"),this.emitEvent("todragstart",i)}moveEvent(t){if(!this.isDrag)return;t.preventDefault();let s,i;const o=this.isTouch?t.changedTouches[0].clientX:t.x,n=this.isTouch?t.changedTouches[0].clientY:t.y;if(!this.options.isAbsolute)s=o-this.startX,i=n-this.startY;else{const r=this.parent.getClientRects()[0];s=o-r.x-this.startX-this.borderInfo[1],i=n-r.y-this.startY-this.borderInfo[2]}this.left=this.setBetween(s,0,this.maxX-this.borderInfo[1]-this.borderInfo[3]),this.top=this.setBetween(i,0,this.maxY-this.borderInfo[2]-this.borderInfo[0]),this.el.style.left=this.left+"px",this.el.style.top=this.top+"px",this.emitEvent("todragmove",t)}endEvent(t){this.isDrag=!1,document.removeEventListener("mousemove",this.moveEvent),document.removeEventListener("mouseup",this.endEvent),document.removeEventListener("touchmove",this.moveEvent),document.removeEventListener("touchend",this.endEvent),document.body.style.userSelect="auto",this.options.forbidBodyScroll&&(document.body.style.overflow="visible"),this.handleAdsorb(),this.handlePositionMode(),this.emitEvent("todragend",t)}handleAdsorb(){const t=[this.left+this.width/2,this.top+this.height/2];let s=0,i=0;if(this.options.isAbsolute){const n=this.parent.getClientRects()[0];s=n.width,i=n.height}else s=window.innerWidth,i=window.innerHeight;const o=[s,i];if(this.el.style.transition=`left ${this.options.transitionDuration}s ${this.options.transitionTimingFunction}, + top ${this.options.transitionDuration}s ${this.options.transitionTimingFunction}`,this.options.adsorb===1)t[0]<=s/2?this.left=this.options.adsorbOffset:this.left=this.maxX-this.options.adsorbOffset-this.borderInfo[1]-this.borderInfo[3];else if(this.options.adsorb===2){const n=o[1]/o[0],r=o[1]/-o[0],d=t[1]/t[0],l=t[1]/(t[0]-o[0]);n>=d&&r=d&&r>=l?this.left=this.maxX-this.options.adsorbOffset-this.borderInfo[1]-this.borderInfo[3]:n=l?this.top=this.maxY-this.options.adsorbOffset-this.borderInfo[2]-this.borderInfo[0]:this.left=this.options.adsorbOffset,this.options.adsorbOffset&&(this.top===0&&(this.top=this.options.adsorbOffset),this.top===this.maxY&&(this.top=this.maxY-this.options.adsorbOffset),this.left===0&&(this.left=this.options.adsorbOffset),this.left===this.maxX&&(this.left=this.maxX-this.options.adsorbOffset))}this.el.style.left=this.left+"px",this.el.style.top=this.top+"px"}handlePositionMode(){if(this.options.adsorb)return;const t=this.options.isAbsolute?this.el.offsetLeft:this.left,s=this.options.isAbsolute?this.el.offsetTop:this.top;this.right=this.maxX-t-this.borderInfo[1]-this.borderInfo[3],this.bottom=this.maxY-s-this.borderInfo[2]-this.borderInfo[0],this.options.positionMode===2?(this.el.style.left="auto",this.el.style.right=this.right+"px"):this.options.positionMode===3?(this.el.style.top="auto",this.el.style.bottom=this.bottom+"px"):this.options.positionMode===4&&(this.el.style.left="auto",this.el.style.top="auto",this.el.style.right=this.right+"px",this.el.style.bottom=this.bottom+"px")}emitEvent(t,s){const i=document.createEvent("HTMLEvents");i.initEvent(t,!1,!1);const{left:o,top:n,right:r,bottom:d,width:l,height:c,maxX:u,maxY:p}=this;i.left=o,i.top=n,i.width=l,i.height=c,i.maxX=u,i.maxY=p,i.right=r,i.bottom=d,s&&(i.sourceEvent=s),this.el.dispatchEvent(i)}destroy(){this.isTouch?this.el.removeEventListener("touchstart",this.handleTouchStart):this.el.removeEventListener("mousedown",this.handleMousedown)}setLimit(){if(!this.options.isAbsolute||!this.options.needComputeBorder)return;const t=["top","right","bottom","left"],s=v(this.parent,[...t.map(i=>`border-${i}-width`)],!0);this.borderInfo=t.map(i=>s[`border-${i}-width`])}}const a=(e,t,s)=>{const{value:i}=t,n={...s||{},...i};e.$toDarg=new g({el:e,options:n})},f=e=>{e.$toDarg&&e.$toDarg.destroy()},w={mounted:(e,t)=>a(e,t),unmounted:f,inserted:(e,t)=>a(e,t),unbind:f,install:(e,t)=>{e.directive("to-drag",{mounted:(s,i)=>a(s,i,t),unmounted:f,inserted:(s,i)=>a(s,i,t),unbind:f})}};export{g as T,w as a}; diff --git a/index.html b/index.html index 68fed18..b0840e2 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - +