@vtj/pro 0.12.4 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/uni-ui/index.umd.js +1 -1
- package/dist/assets/{Editor-Blw-xmOM-8E99mlYT.js → Editor-D1ubm6pz-C-3Y_sfq.js} +95 -96
- package/dist/assets/{Editor-Blw-xmOM-J020cuPS.css → Editor-D1ubm6pz-DPJtYOpF.css} +1 -1
- package/dist/assets/{auth-DbZdtoU3.js → auth-DpMl51vJ.js} +1 -1
- package/dist/assets/element-plus-DI9D7hYI.js +13 -0
- package/dist/assets/{index-B4ijVMq7.js → index-BKru_mpV.js} +1 -1
- package/dist/assets/{index-HQnjiexo.js → index-DlIIHJgy.js} +2 -2
- package/dist/assets/{marked-Cm2nvuBi.js → marked-DGBZG3x-.js} +26 -26
- package/dist/assets/{monaco-editor-311TVFBf.js → monaco-editor-B5WqzYTl.js} +19 -19
- package/dist/assets/{page-CNSl4_xz.js → page-COFjhiHm.js} +1 -1
- package/dist/assets/{preview-BDuPNKHp.js → preview-DIDoU2YX.js} +1 -1
- package/dist/assets/{shared-CFJLz5mK.js → shared-CBxH7Yn6.js} +1 -1
- package/dist/assets/utils-Bddv2vJJ.js +1 -0
- package/dist/assets/{vxe-CmKTsEcP.js → vxe-CbMvUqRM.js} +1 -1
- package/dist/index.html +6 -6
- package/dist/uni/assets/{index-CMm7IeZd.js → index-CwZ05RUj.js} +8 -8
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/dist/assets/element-plus-ChjncS7R.js +0 -13
- package/dist/assets/utils-uk5GoMIl.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DMcly29s.js","./vue-DyRUlw3r.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var h=Object.defineProperty;var y=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))w.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))x.call(t,e)&&E(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((p,r)=>{var m=a=>{try{n(e.next(a))}catch(i){r(i)}},c=a=>{try{n(e.throw(a))}catch(i){r(i)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(m,c);n((e=e.apply(o,t)).next())});import{_ as A}from"./monaco-editor-
|
|
2
|
+
var h=Object.defineProperty;var y=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))w.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))x.call(t,e)&&E(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((p,r)=>{var m=a=>{try{n(e.next(a))}catch(i){r(i)}},c=a=>{try{n(e.throw(a))}catch(i){r(i)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(m,c);n((e=e.apply(o,t)).next())});import{_ as A}from"./monaco-editor-B5WqzYTl.js";import{useRoute as P}from"./vue-router-DMcly29s.js";import"./element-plus-DI9D7hYI.js";import"./vxe-CbMvUqRM.js";import{i as g,s as V,X as T,t as k,y as B,A as D,Y as I}from"./Editor-D1ubm6pz-C-3Y_sfq.js";import{a as O,n as C,l as L,E as S}from"./utils-Bddv2vJJ.js";import{q as X}from"./@vueuse-BqGFNoW8.js";import{d as Y,ay as R,e as q,K as z,O as H,P as K,o as N,h as b}from"./vue-DyRUlw3r.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-DVDobX8n.js";import"./shared-CBxH7Yn6.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BXs1-YVv.js";import"./marked-DGBZG3x-.js";const nt=Y({__name:"page",setup(o){return l(this,null,function*(){let t,e;const p=new g(V(C)),r=([t,e]=R(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),m=T({loading:L,notify:C,useTitle:X,alert:O,access:r==null?void 0:r.access}),c=r?([t,e]=R(()=>new S(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:i}=k({mode:B.Runtime,service:p,materialPath:n,adapter:d(d({},m),c.adapter),dependencies:{Vue:()=>A(()=>import("./vue-DyRUlw3r.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-DMcly29s.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=q(),u=b();return i(()=>l(null,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(D),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),v=>{I(s,f,v)}))})),(s,v)=>_.value?(N(),z(K(_.value),{key:0})):H("",!0)})}});export{nt as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DMcly29s.js","./vue-DyRUlw3r.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))x.call(t,e)&&E(o,e,t[e]);return o};var d=(o,t,e)=>new Promise((m,r)=>{var c=a=>{try{i(e.next(a))}catch(p){r(p)}},n=a=>{try{i(e.throw(a))}catch(p){r(p)}},i=a=>a.done?m(a.value):Promise.resolve(a.value).then(c,n);i((e=e.apply(o,t)).next())});import{_ as w}from"./monaco-editor-
|
|
2
|
+
var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))x.call(t,e)&&E(o,e,t[e]);return o};var d=(o,t,e)=>new Promise((m,r)=>{var c=a=>{try{i(e.next(a))}catch(p){r(p)}},n=a=>{try{i(e.throw(a))}catch(p){r(p)}},i=a=>a.done?m(a.value):Promise.resolve(a.value).then(c,n);i((e=e.apply(o,t)).next())});import{_ as w}from"./monaco-editor-B5WqzYTl.js";import{useRoute as P}from"./vue-router-DMcly29s.js";import"./element-plus-DI9D7hYI.js";import"./vxe-CbMvUqRM.js";import{i as V,s as g,X as T,t as k,y as B,A as D,Y as I}from"./Editor-D1ubm6pz-C-3Y_sfq.js";import{a as O,n as A,l as L,E as S}from"./utils-Bddv2vJJ.js";import{q as X}from"./@vueuse-BqGFNoW8.js";import{d as Y,ay as C,e as q,K as z,O as H,P as K,o as N,h as b}from"./vue-DyRUlw3r.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-DVDobX8n.js";import"./shared-CBxH7Yn6.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BXs1-YVv.js";import"./marked-DGBZG3x-.js";const nt=Y({__name:"preview",setup(o){return d(this,null,function*(){let t,e;const m=new V(g(A)),r=([t,e]=C(()=>m.getExtension().catch(()=>null)),t=yield t,e(),t),c=T({loading:L,notify:A,useTitle:X,alert:O,access:r==null?void 0:r.access}),n=r?([t,e]=C(()=>new S(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=k({mode:B.Runtime,service:m,materialPath:i,adapter:l(l({},c),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-DyRUlw3r.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-DMcly29s.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=q(),u=b();return p(()=>d(null,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(n.install&&n.install(s),s.use(D),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),v=>{I(s,f,v)}))})),(s,v)=>_.value?(N(),z(K(_.value),{key:0})):H("",!0)})}});export{nt as default};
|
|
@@ -22,4 +22,4 @@ var Qr=Object.defineProperty,ti=Object.defineProperties;var ei=Object.getOwnProp
|
|
|
22
22
|
* @return {boolean} True if the event is supported.
|
|
23
23
|
* @internal
|
|
24
24
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
25
|
-
*/const jt=Math.min,At=Math.max,me=Math.round,ce=Math.floor,nt=e=>({x:e,y:e}),ea={left:"right",right:"left",bottom:"top",top:"bottom"},na={start:"end",end:"start"};function Ge(e,t,n){return At(e,jt(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Et(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Sr(e){return e==="x"?"y":"x"}function sn(e){return e==="y"?"height":"width"}function Ht(e){return["top","bottom"].includes(Et(e))?"y":"x"}function fn(e){return Sr(Ht(e))}function ra(e,t,n){n===void 0&&(n=!1);const r=Qt(e),i=fn(e),o=sn(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ve(a)),[a,ve(a)]}function ia(e){const t=ve(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>na[t])}function oa(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function aa(e,t,n,r){const i=Qt(e);let o=oa(Et(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Ze)))),o}function ve(e){return e.replace(/left|right|bottom|top/g,t=>ea[t])}function sa(e){return $({top:0,right:0,bottom:0,left:0},e)}function Fr(e){return typeof e!="number"?sa(e):{top:e,right:e,bottom:e,left:e}}function ye(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Qn(e,t,n){let{reference:r,floating:i}=e;const o=Ht(t),a=fn(t),s=sn(a),f=Et(t),c=o==="y",l=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let h;switch(f){case"top":h={x:l,y:r.y-i.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Qt(t)){case"start":h[a]-=m*(n&&c?-1:1);break;case"end":h[a]+=m*(n&&c?-1:1);break}return h}const fa=(e,t,n)=>st(void 0,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),f=yield a.isRTL==null?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:p}=Qn(c,r,f),m=r,h={},v=0;for(let u=0;u<s.length;u++){const{name:y,fn:d}=s[u],{x:w,y:g,data:b,reset:x}=yield d({x:l,y:p,initialPlacement:r,placement:m,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});l=w!=null?w:l,p=g!=null?g:p,h=ut($({},h),{[y]:$($({},h[y]),b)}),x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(c=x.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:l,y:p}=Qn(c,m,f)),u=-1)}return{x:l,y:p,placement:m,strategy:i,middlewareData:h}});function cn(e,t){return st(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=Jt(t,e),v=Fr(h),y=s[m?p==="floating"?"reference":"floating":p],d=ye(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:f})),w=p==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),b=(yield o.isElement==null?void 0:o.isElement(g))?(yield o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},x=ye(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:g,strategy:f}):w);return{top:(d.top-x.top+v.top)/b.y,bottom:(x.bottom-d.bottom+v.bottom)/b.y,left:(d.left-x.left+v.left)/b.x,right:(x.right-d.right+v.right)/b.x}})}const ca=e=>({name:"arrow",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o,rects:a,platform:s,elements:f,middlewareData:c}=n,{element:l,padding:p=0}=Jt(e,n)||{};if(l==null)return{};const m=Fr(p),h={x:r,y:i},v=fn(o),u=sn(v),y=yield s.getDimensions(l),d=v==="y",w=d?"top":"left",g=d?"bottom":"right",b=d?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[v]-h[v]-a.floating[u],O=h[v]-a.reference[v],A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(l);let E=A?A[b]:0;(!E||!(yield s.isElement==null?void 0:s.isElement(A)))&&(E=f.floating[b]||a.floating[u]);const P=x/2-O/2,T=E/2-y[u]/2-1,F=jt(m[w],T),M=jt(m[g],T),S=F,V=E-y[u]-M,j=E/2-y[u]/2+P,q=Ge(S,j,V),N=!c.arrow&&Qt(o)!=null&&j!==q&&a.reference[u]/2-(j<S?F:M)-y[u]/2<0,H=N?j<S?j-S:j-V:0;return{[v]:h[v]+H,data:$({[v]:q,centerOffset:j-q-H},N&&{alignmentOffset:H}),reset:N}})}}),ua=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return st(this,null,function*(){var r,i;const{placement:o,middlewareData:a,rects:s,initialPlacement:f,platform:c,elements:l}=n,j=Jt(e,n),{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:y=!0}=j,d=Fe(j,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Et(o),g=Ht(f),b=Et(f)===f,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),O=h||(b||!y?[ve(f)]:ia(f)),A=u!=="none";!h&&A&&O.push(...aa(f,y,u,x));const E=[f,...O],P=yield cn(n,d),T=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&T.push(P[w]),m){const q=ra(o,s,x);T.push(P[q[0]],P[q[1]])}if(F=[...F,{placement:o,overflows:T}],!T.every(q=>q<=0)){var M,S;const q=(((M=a.flip)==null?void 0:M.index)||0)+1,N=E[q];if(N)return{data:{index:q,overflows:F},reset:{placement:N}};let H=(S=F.filter(L=>L.overflows[0]<=0).sort((L,I)=>L.overflows[1]-I.overflows[1])[0])==null?void 0:S.placement;if(!H)switch(v){case"bestFit":{var V;const L=(V=F.filter(I=>{if(A){const X=Ht(I.placement);return X===g||X==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(X=>X>0).reduce((X,gt)=>X+gt,0)]).sort((I,X)=>I[1]-X[1])[0])==null?void 0:V[0];L&&(H=L);break}case"initialPlacement":H=f;break}if(o!==H)return{reset:{placement:H}}}return{}})}}};function la(e,t){return st(this,null,function*(){const{placement:n,platform:r,elements:i}=e,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),a=Et(n),s=Qt(n),f=Ht(n)==="y",c=["left","top"].includes(a)?-1:1,l=o&&f?-1:1,p=Jt(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),f?{x:h*l,y:m*c}:{x:m*c,y:h*l}})}const da=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return st(this,null,function*(){var r,i;const{x:o,y:a,placement:s,middlewareData:f}=n,c=yield la(n,e);return s===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:ut($({},c),{placement:s})}})}}},pa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o}=n,d=Jt(e,n),{mainAxis:a=!0,crossAxis:s=!1,limiter:f={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}}}=d,c=Fe(d,["mainAxis","crossAxis","limiter"]),l={x:r,y:i},p=yield cn(n,c),m=Ht(Et(o)),h=Sr(m);let v=l[h],u=l[m];if(a){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=v+p[w],x=v-p[g];v=Ge(b,v,x)}if(s){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=u+p[w],x=u-p[g];u=Ge(b,u,x)}const y=f.fn(ut($({},n),{[h]:v,[m]:u}));return ut($({},y),{data:{x:y.x-r,y:y.y-i,enabled:{[h]:a,[m]:s}}})})}}};function we(){return typeof window!="undefined"}function Ct(e){return Mr(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mr(e){return we()?e instanceof Node||e instanceof U(e).Node:!1}function J(e){return we()?e instanceof Element||e instanceof U(e).Element:!1}function it(e){return we()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function tr(e){return!we()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function te(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ha(e){return["table","td","th"].includes(Ct(e))}function Oe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(n){return!1}})}function un(e){const t=ln(),n=J(e)?Q(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ga(e){let t=pt(e);for(;it(t)&&!Lt(t);){if(un(t))return t;if(Oe(t))return null;t=pt(t)}return null}function ln(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Lt(e){return["html","body","#document"].includes(Ct(e))}function Q(e){return U(e).getComputedStyle(e)}function Ae(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tr(e)&&e.host||ot(e);return tr(t)?t.host:t}function Pr(e){const t=pt(e);return Lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&te(t)?t:Pr(t)}function Yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Pr(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=U(i);if(o){const s=Ke(a);return t.concat(a,a.visualViewport||[],te(i)?i:[],s&&n?Yt(s):[])}return t.concat(i,Yt(i,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tr(e){const t=Q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=it(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=me(n)!==o||me(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function dn(e){return J(e)?e:e.contextElement}function Mt(e){const t=dn(e);if(!it(t))return nt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Tr(t);let a=(o?me(n.width):n.width)/r,s=(o?me(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ma=nt(0);function qr(e){const t=U(e);return!ln()||!t.visualViewport?ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function Rt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=dn(e);let a=nt(1);t&&(r?J(r)&&(a=Mt(r)):a=Mt(e));const s=va(o,n,r)?qr(o):nt(0);let f=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,p=i.height/a.y;if(o){const m=U(o),h=r&&J(r)?U(r):r;let v=m,u=Ke(v);for(;u&&r&&h!==v;){const y=Mt(u),d=u.getBoundingClientRect(),w=Q(u),g=d.left+(u.clientLeft+parseFloat(w.paddingLeft))*y.x,b=d.top+(u.clientTop+parseFloat(w.paddingTop))*y.y;f*=y.x,c*=y.y,l*=y.x,p*=y.y,f+=g,c+=b,v=U(u),u=Ke(v)}}return ye({width:l,height:p,x:f,y:c})}function pn(e,t){const n=Ae(e).scrollLeft;return t?t.left+n:Rt(ot(e)).left+n}function Dr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:pn(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function ya(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=ot(r),s=t?Oe(t.floating):!1;if(r===a||s&&o)return n;let f={scrollLeft:0,scrollTop:0},c=nt(1);const l=nt(0),p=it(r);if((p||!p&&!o)&&((Ct(r)!=="body"||te(a))&&(f=Ae(r)),it(r))){const h=Rt(r);c=Mt(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}const m=a&&!p&&!o?Dr(a,f,!0):nt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+m.x,y:n.y*c.y-f.scrollTop*c.y+l.y+m.y}}function ba(e){return Array.from(e.getClientRects())}function xa(e){const t=ot(e),n=Ae(e),r=e.ownerDocument.body,i=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pn(e);const s=-n.scrollTop;return Q(r).direction==="rtl"&&(a+=At(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function wa(e,t){const n=U(e),r=ot(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;const c=ln();(!c||c&&t==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:s,y:f}}function Oa(e,t){const n=Rt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=it(e)?Mt(e):nt(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:a,height:s,x:f,y:c}}function er(e,t,n){let r;if(t==="viewport")r=wa(e,n);else if(t==="document")r=xa(ot(e));else if(J(t))r=Oa(t,n);else{const i=qr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ye(r)}function Nr(e,t){const n=pt(e);return n===t||!J(n)||Lt(n)?!1:Q(n).position==="fixed"||Nr(n,t)}function Aa(e,t){const n=t.get(e);if(n)return n;let r=Yt(e,[],!1).filter(s=>J(s)&&Ct(s)!=="body"),i=null;const o=Q(e).position==="fixed";let a=o?pt(e):e;for(;J(a)&&!Lt(a);){const s=Q(a),f=un(a);!f&&s.position==="fixed"&&(i=null),(o?!f&&!i:!f&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||te(a)&&!f&&Nr(e,a))?r=r.filter(l=>l!==a):i=s,a=pt(a)}return t.set(e,r),r}function Ea(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Oe(t)?[]:Aa(t,this._c):[].concat(n),r],s=a[0],f=a.reduce((c,l)=>{const p=er(t,l,i);return c.top=At(p.top,c.top),c.right=jt(p.right,c.right),c.bottom=jt(p.bottom,c.bottom),c.left=At(p.left,c.left),c},er(t,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ra(e){const{width:t,height:n}=Tr(e);return{width:t,height:n}}function Sa(e,t,n){const r=it(t),i=ot(t),o=n==="fixed",a=Rt(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const f=nt(0);if(r||!r&&!o)if((Ct(t)!=="body"||te(i))&&(s=Ae(t)),r){const m=Rt(t,!0,o,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else i&&(f.x=pn(i));const c=i&&!r&&!o?Dr(i,s):nt(0),l=a.left+s.scrollLeft-f.x-c.x,p=a.top+s.scrollTop-f.y-c.y;return{x:l,y:p,width:a.width,height:a.height}}function De(e){return Q(e).position==="static"}function nr(e,t){if(!it(e)||Q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function kr(e,t){const n=U(e);if(Oe(e))return n;if(!it(e)){let i=pt(e);for(;i&&!Lt(i);){if(J(i)&&!De(i))return i;i=pt(i)}return n}let r=nr(e,t);for(;r&&ha(r)&&De(r);)r=nr(r,t);return r&&Lt(r)&&De(r)&&!un(r)?n:r||ga(e)||n}const Fa=function(e){return st(this,null,function*(){const t=this.getOffsetParent||kr,n=this.getDimensions,r=yield n(e.floating);return{reference:Sa(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function Ma(e){return Q(e).direction==="rtl"}const Pa={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:ot,getClippingRect:Ea,getOffsetParent:kr,getElementRects:Fa,getClientRects:ba,getDimensions:Ra,getScale:Mt,isElement:J,isRTL:Ma};function jr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ta(e,t){let n=null,r;const i=ot(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:l,top:p,width:m,height:h}=c;if(s||t(),!m||!h)return;const v=ce(p),u=ce(i.clientWidth-(l+m)),y=ce(i.clientHeight-(p+h)),d=ce(l),g={rootMargin:-v+"px "+-u+"px "+-y+"px "+-d+"px",threshold:At(0,jt(1,f))||1};let b=!0;function x(O){const A=O[0].intersectionRatio;if(A!==f){if(!b)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!jr(c,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,ut($({},g),{root:i.ownerDocument}))}catch(O){n=new IntersectionObserver(x,g)}n.observe(e)}return a(!0),o}function Ca(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=dn(e),l=i||o?[...c?Yt(c):[],...Yt(t)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const p=c&&s?Ta(c,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(d=>{let[w]=d;w&&w.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),c&&!f&&h.observe(c),h.observe(t));let v,u=f?Rt(e):null;f&&y();function y(){const d=Rt(e);u&&!jr(u,d)&&n(),u=d,v=requestAnimationFrame(y)}return n(),()=>{var d;l.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),p==null||p(),(d=h)==null||d.disconnect(),h=null,f&&cancelAnimationFrame(v)}}const Ba=cn,Wa=da,Va=pa,Ia=ua,$a=ca,_a=(e,t,n)=>{const r=new Map,i=$({platform:Pa},n),o=ut($({},i.platform),{_c:r});return fa(e,t,ut($({},i),{platform:o}))};var Pt=null,Ne=null,lt=null,rr="z-index-manage",yt=null,ir="z-index-style",Hr="m",Lr="s",Gt={m:1e3,s:1e3};function hn(){return Pt||typeof document!="undefined"&&(Pt=document),Pt}function Cr(){return Pt&&!Ne&&(Ne=Pt.body||Pt.getElementsByTagName("body")[0]),Ne}function qa(){var e=0,t=hn();if(t){var n=Cr();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function Da(){if(!yt){var e=hn();e&&(yt=e.getElementById(ir),yt||(yt=e.createElement("style"),yt.id=ir,e.getElementsByTagName("head")[0].appendChild(yt)))}return yt}function Br(){var e=Da();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Ee()+";"+t+"sub"+n+":"+vn()+"}"}}function Wr(){if(!lt){var e=hn();if(e&&(lt=e.getElementById(rr),!lt)){var t=Cr();t&&(lt=e.createElement("div"),lt.id=rr,lt.style.display="none",t.appendChild(lt),gn(Gt.m),mn(Gt.s))}}return lt}function Vr(e){return function(t){if(t){t=Number(t),Gt[e]=t;var n=Wr();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Br(),Gt[e]}}var gn=Vr(Hr);function Ir(e,t){return function(r){var i,o=Wr();if(o){var a=o.dataset?o.dataset[e]:o.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=Gt[e]),r?Number(r)<i?t():r:i}}var Ee=Ir(Hr,$r);function $r(){return gn(Ee()+1)}var mn=Vr(Lr),_r=Ir(Lr,zr);function vn(){return Ee()+_r()}function zr(){return mn(_r()+1),vn()}var za={setCurrent:gn,getCurrent:Ee,getNext:$r,setSubCurrent:mn,getSubCurrent:vn,getSubNext:zr,getMax:qa};Br();export{za as D,ar as E,xe as S,ja as T,La as Y,$a as a,Ca as b,_a as c,Ba as d,Ia as f,Ha as m,Wa as o,Va as s,ka as y};
|
|
25
|
+
*/const jt=Math.min,At=Math.max,me=Math.round,ce=Math.floor,nt=e=>({x:e,y:e}),ea={left:"right",right:"left",bottom:"top",top:"bottom"},na={start:"end",end:"start"};function Ge(e,t,n){return At(e,jt(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Et(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Sr(e){return e==="x"?"y":"x"}function sn(e){return e==="y"?"height":"width"}function Ht(e){return["top","bottom"].includes(Et(e))?"y":"x"}function fn(e){return Sr(Ht(e))}function ra(e,t,n){n===void 0&&(n=!1);const r=Qt(e),i=fn(e),o=sn(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ve(a)),[a,ve(a)]}function ia(e){const t=ve(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>na[t])}function oa(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function aa(e,t,n,r){const i=Qt(e);let o=oa(Et(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Ze)))),o}function ve(e){return e.replace(/left|right|bottom|top/g,t=>ea[t])}function sa(e){return $({top:0,right:0,bottom:0,left:0},e)}function Fr(e){return typeof e!="number"?sa(e):{top:e,right:e,bottom:e,left:e}}function ye(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Qn(e,t,n){let{reference:r,floating:i}=e;const o=Ht(t),a=fn(t),s=sn(a),f=Et(t),c=o==="y",l=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let h;switch(f){case"top":h={x:l,y:r.y-i.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Qt(t)){case"start":h[a]-=m*(n&&c?-1:1);break;case"end":h[a]+=m*(n&&c?-1:1);break}return h}const fa=(e,t,n)=>st(null,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),f=yield a.isRTL==null?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:p}=Qn(c,r,f),m=r,h={},v=0;for(let u=0;u<s.length;u++){const{name:y,fn:d}=s[u],{x:w,y:g,data:b,reset:x}=yield d({x:l,y:p,initialPlacement:r,placement:m,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});l=w!=null?w:l,p=g!=null?g:p,h=ut($({},h),{[y]:$($({},h[y]),b)}),x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(c=x.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:l,y:p}=Qn(c,m,f)),u=-1)}return{x:l,y:p,placement:m,strategy:i,middlewareData:h}});function cn(e,t){return st(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=Jt(t,e),v=Fr(h),y=s[m?p==="floating"?"reference":"floating":p],d=ye(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:f})),w=p==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),b=(yield o.isElement==null?void 0:o.isElement(g))?(yield o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},x=ye(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:g,strategy:f}):w);return{top:(d.top-x.top+v.top)/b.y,bottom:(x.bottom-d.bottom+v.bottom)/b.y,left:(d.left-x.left+v.left)/b.x,right:(x.right-d.right+v.right)/b.x}})}const ca=e=>({name:"arrow",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o,rects:a,platform:s,elements:f,middlewareData:c}=n,{element:l,padding:p=0}=Jt(e,n)||{};if(l==null)return{};const m=Fr(p),h={x:r,y:i},v=fn(o),u=sn(v),y=yield s.getDimensions(l),d=v==="y",w=d?"top":"left",g=d?"bottom":"right",b=d?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[v]-h[v]-a.floating[u],O=h[v]-a.reference[v],A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(l);let E=A?A[b]:0;(!E||!(yield s.isElement==null?void 0:s.isElement(A)))&&(E=f.floating[b]||a.floating[u]);const P=x/2-O/2,T=E/2-y[u]/2-1,F=jt(m[w],T),M=jt(m[g],T),S=F,V=E-y[u]-M,j=E/2-y[u]/2+P,q=Ge(S,j,V),N=!c.arrow&&Qt(o)!=null&&j!==q&&a.reference[u]/2-(j<S?F:M)-y[u]/2<0,H=N?j<S?j-S:j-V:0;return{[v]:h[v]+H,data:$({[v]:q,centerOffset:j-q-H},N&&{alignmentOffset:H}),reset:N}})}}),ua=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return st(this,null,function*(){var r,i;const{placement:o,middlewareData:a,rects:s,initialPlacement:f,platform:c,elements:l}=n,j=Jt(e,n),{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:y=!0}=j,d=Fe(j,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Et(o),g=Ht(f),b=Et(f)===f,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),O=h||(b||!y?[ve(f)]:ia(f)),A=u!=="none";!h&&A&&O.push(...aa(f,y,u,x));const E=[f,...O],P=yield cn(n,d),T=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&T.push(P[w]),m){const q=ra(o,s,x);T.push(P[q[0]],P[q[1]])}if(F=[...F,{placement:o,overflows:T}],!T.every(q=>q<=0)){var M,S;const q=(((M=a.flip)==null?void 0:M.index)||0)+1,N=E[q];if(N)return{data:{index:q,overflows:F},reset:{placement:N}};let H=(S=F.filter(L=>L.overflows[0]<=0).sort((L,I)=>L.overflows[1]-I.overflows[1])[0])==null?void 0:S.placement;if(!H)switch(v){case"bestFit":{var V;const L=(V=F.filter(I=>{if(A){const X=Ht(I.placement);return X===g||X==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(X=>X>0).reduce((X,gt)=>X+gt,0)]).sort((I,X)=>I[1]-X[1])[0])==null?void 0:V[0];L&&(H=L);break}case"initialPlacement":H=f;break}if(o!==H)return{reset:{placement:H}}}return{}})}}};function la(e,t){return st(this,null,function*(){const{placement:n,platform:r,elements:i}=e,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),a=Et(n),s=Qt(n),f=Ht(n)==="y",c=["left","top"].includes(a)?-1:1,l=o&&f?-1:1,p=Jt(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),f?{x:h*l,y:m*c}:{x:m*c,y:h*l}})}const da=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return st(this,null,function*(){var r,i;const{x:o,y:a,placement:s,middlewareData:f}=n,c=yield la(n,e);return s===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:ut($({},c),{placement:s})}})}}},pa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o}=n,d=Jt(e,n),{mainAxis:a=!0,crossAxis:s=!1,limiter:f={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}}}=d,c=Fe(d,["mainAxis","crossAxis","limiter"]),l={x:r,y:i},p=yield cn(n,c),m=Ht(Et(o)),h=Sr(m);let v=l[h],u=l[m];if(a){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=v+p[w],x=v-p[g];v=Ge(b,v,x)}if(s){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=u+p[w],x=u-p[g];u=Ge(b,u,x)}const y=f.fn(ut($({},n),{[h]:v,[m]:u}));return ut($({},y),{data:{x:y.x-r,y:y.y-i,enabled:{[h]:a,[m]:s}}})})}}};function we(){return typeof window!="undefined"}function Ct(e){return Mr(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mr(e){return we()?e instanceof Node||e instanceof U(e).Node:!1}function J(e){return we()?e instanceof Element||e instanceof U(e).Element:!1}function it(e){return we()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function tr(e){return!we()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function te(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ha(e){return["table","td","th"].includes(Ct(e))}function Oe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(n){return!1}})}function un(e){const t=ln(),n=J(e)?Q(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ga(e){let t=pt(e);for(;it(t)&&!Lt(t);){if(un(t))return t;if(Oe(t))return null;t=pt(t)}return null}function ln(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Lt(e){return["html","body","#document"].includes(Ct(e))}function Q(e){return U(e).getComputedStyle(e)}function Ae(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tr(e)&&e.host||ot(e);return tr(t)?t.host:t}function Pr(e){const t=pt(e);return Lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&te(t)?t:Pr(t)}function Yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Pr(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=U(i);if(o){const s=Ke(a);return t.concat(a,a.visualViewport||[],te(i)?i:[],s&&n?Yt(s):[])}return t.concat(i,Yt(i,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tr(e){const t=Q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=it(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=me(n)!==o||me(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function dn(e){return J(e)?e:e.contextElement}function Mt(e){const t=dn(e);if(!it(t))return nt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Tr(t);let a=(o?me(n.width):n.width)/r,s=(o?me(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ma=nt(0);function qr(e){const t=U(e);return!ln()||!t.visualViewport?ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function Rt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=dn(e);let a=nt(1);t&&(r?J(r)&&(a=Mt(r)):a=Mt(e));const s=va(o,n,r)?qr(o):nt(0);let f=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,p=i.height/a.y;if(o){const m=U(o),h=r&&J(r)?U(r):r;let v=m,u=Ke(v);for(;u&&r&&h!==v;){const y=Mt(u),d=u.getBoundingClientRect(),w=Q(u),g=d.left+(u.clientLeft+parseFloat(w.paddingLeft))*y.x,b=d.top+(u.clientTop+parseFloat(w.paddingTop))*y.y;f*=y.x,c*=y.y,l*=y.x,p*=y.y,f+=g,c+=b,v=U(u),u=Ke(v)}}return ye({width:l,height:p,x:f,y:c})}function pn(e,t){const n=Ae(e).scrollLeft;return t?t.left+n:Rt(ot(e)).left+n}function Dr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:pn(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function ya(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=ot(r),s=t?Oe(t.floating):!1;if(r===a||s&&o)return n;let f={scrollLeft:0,scrollTop:0},c=nt(1);const l=nt(0),p=it(r);if((p||!p&&!o)&&((Ct(r)!=="body"||te(a))&&(f=Ae(r)),it(r))){const h=Rt(r);c=Mt(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}const m=a&&!p&&!o?Dr(a,f,!0):nt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+m.x,y:n.y*c.y-f.scrollTop*c.y+l.y+m.y}}function ba(e){return Array.from(e.getClientRects())}function xa(e){const t=ot(e),n=Ae(e),r=e.ownerDocument.body,i=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pn(e);const s=-n.scrollTop;return Q(r).direction==="rtl"&&(a+=At(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function wa(e,t){const n=U(e),r=ot(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;const c=ln();(!c||c&&t==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:s,y:f}}function Oa(e,t){const n=Rt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=it(e)?Mt(e):nt(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:a,height:s,x:f,y:c}}function er(e,t,n){let r;if(t==="viewport")r=wa(e,n);else if(t==="document")r=xa(ot(e));else if(J(t))r=Oa(t,n);else{const i=qr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ye(r)}function Nr(e,t){const n=pt(e);return n===t||!J(n)||Lt(n)?!1:Q(n).position==="fixed"||Nr(n,t)}function Aa(e,t){const n=t.get(e);if(n)return n;let r=Yt(e,[],!1).filter(s=>J(s)&&Ct(s)!=="body"),i=null;const o=Q(e).position==="fixed";let a=o?pt(e):e;for(;J(a)&&!Lt(a);){const s=Q(a),f=un(a);!f&&s.position==="fixed"&&(i=null),(o?!f&&!i:!f&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||te(a)&&!f&&Nr(e,a))?r=r.filter(l=>l!==a):i=s,a=pt(a)}return t.set(e,r),r}function Ea(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Oe(t)?[]:Aa(t,this._c):[].concat(n),r],s=a[0],f=a.reduce((c,l)=>{const p=er(t,l,i);return c.top=At(p.top,c.top),c.right=jt(p.right,c.right),c.bottom=jt(p.bottom,c.bottom),c.left=At(p.left,c.left),c},er(t,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ra(e){const{width:t,height:n}=Tr(e);return{width:t,height:n}}function Sa(e,t,n){const r=it(t),i=ot(t),o=n==="fixed",a=Rt(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const f=nt(0);if(r||!r&&!o)if((Ct(t)!=="body"||te(i))&&(s=Ae(t)),r){const m=Rt(t,!0,o,t);f.x=m.x+t.clientLeft,f.y=m.y+t.clientTop}else i&&(f.x=pn(i));const c=i&&!r&&!o?Dr(i,s):nt(0),l=a.left+s.scrollLeft-f.x-c.x,p=a.top+s.scrollTop-f.y-c.y;return{x:l,y:p,width:a.width,height:a.height}}function De(e){return Q(e).position==="static"}function nr(e,t){if(!it(e)||Q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function kr(e,t){const n=U(e);if(Oe(e))return n;if(!it(e)){let i=pt(e);for(;i&&!Lt(i);){if(J(i)&&!De(i))return i;i=pt(i)}return n}let r=nr(e,t);for(;r&&ha(r)&&De(r);)r=nr(r,t);return r&&Lt(r)&&De(r)&&!un(r)?n:r||ga(e)||n}const Fa=function(e){return st(this,null,function*(){const t=this.getOffsetParent||kr,n=this.getDimensions,r=yield n(e.floating);return{reference:Sa(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function Ma(e){return Q(e).direction==="rtl"}const Pa={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:ot,getClippingRect:Ea,getOffsetParent:kr,getElementRects:Fa,getClientRects:ba,getDimensions:Ra,getScale:Mt,isElement:J,isRTL:Ma};function jr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ta(e,t){let n=null,r;const i=ot(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:l,top:p,width:m,height:h}=c;if(s||t(),!m||!h)return;const v=ce(p),u=ce(i.clientWidth-(l+m)),y=ce(i.clientHeight-(p+h)),d=ce(l),g={rootMargin:-v+"px "+-u+"px "+-y+"px "+-d+"px",threshold:At(0,jt(1,f))||1};let b=!0;function x(O){const A=O[0].intersectionRatio;if(A!==f){if(!b)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!jr(c,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,ut($({},g),{root:i.ownerDocument}))}catch(O){n=new IntersectionObserver(x,g)}n.observe(e)}return a(!0),o}function Ca(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=dn(e),l=i||o?[...c?Yt(c):[],...Yt(t)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const p=c&&s?Ta(c,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(d=>{let[w]=d;w&&w.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),c&&!f&&h.observe(c),h.observe(t));let v,u=f?Rt(e):null;f&&y();function y(){const d=Rt(e);u&&!jr(u,d)&&n(),u=d,v=requestAnimationFrame(y)}return n(),()=>{var d;l.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),p==null||p(),(d=h)==null||d.disconnect(),h=null,f&&cancelAnimationFrame(v)}}const Ba=cn,Wa=da,Va=pa,Ia=ua,$a=ca,_a=(e,t,n)=>{const r=new Map,i=$({platform:Pa},n),o=ut($({},i.platform),{_c:r});return fa(e,t,ut($({},i),{platform:o}))};var Pt=null,Ne=null,lt=null,rr="z-index-manage",yt=null,ir="z-index-style",Hr="m",Lr="s",Gt={m:1e3,s:1e3};function hn(){return Pt||typeof document!="undefined"&&(Pt=document),Pt}function Cr(){return Pt&&!Ne&&(Ne=Pt.body||Pt.getElementsByTagName("body")[0]),Ne}function qa(){var e=0,t=hn();if(t){var n=Cr();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function Da(){if(!yt){var e=hn();e&&(yt=e.getElementById(ir),yt||(yt=e.createElement("style"),yt.id=ir,e.getElementsByTagName("head")[0].appendChild(yt)))}return yt}function Br(){var e=Da();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Ee()+";"+t+"sub"+n+":"+vn()+"}"}}function Wr(){if(!lt){var e=hn();if(e&&(lt=e.getElementById(rr),!lt)){var t=Cr();t&&(lt=e.createElement("div"),lt.id=rr,lt.style.display="none",t.appendChild(lt),gn(Gt.m),mn(Gt.s))}}return lt}function Vr(e){return function(t){if(t){t=Number(t),Gt[e]=t;var n=Wr();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Br(),Gt[e]}}var gn=Vr(Hr);function Ir(e,t){return function(r){var i,o=Wr();if(o){var a=o.dataset?o.dataset[e]:o.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=Gt[e]),r?Number(r)<i?t():r:i}}var Ee=Ir(Hr,$r);function $r(){return gn(Ee()+1)}var mn=Vr(Lr),_r=Ir(Lr,zr);function vn(){return Ee()+_r()}function zr(){return mn(_r()+1),vn()}var za={setCurrent:gn,getCurrent:Ee,getNext:$r,setSubCurrent:mn,getSubCurrent:vn,getSubNext:zr,getMax:qa};Br();export{za as D,ar as E,xe as S,ja as T,La as Y,$a as a,Ca as b,_a as c,Ba as d,Ia as f,Ha as m,Wa as o,Va as s,ka as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=Object.defineProperty;var S=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?d(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,c=(t,a)=>{for(var s in a||(a={}))T.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(a))f.call(a,s)&&g(t,s,a[s]);return t};var _=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((i,n)=>{var e=r=>{try{o(s.next(r))}catch(l){n(l)}},E=r=>{try{o(s.throw(r))}catch(l){n(l)}},o=r=>r.done?i(r.value):Promise.resolve(r.value).then(e,E);o((s=s.apply(t,a)).next())});import{az as I}from"./vue-DyRUlw3r.js";import{b as V,p as O,r as b,G as A,J as m,c as R,d as P,m as h,V as y,a as M,S as L,e as v,W as B,f as D,g as x,u as N,Q as w,O as H,h as k,j as W,k as j,l as U,n as C,o as G,_ as K,L as Y,q as z,w as F,v as X,x as Z,z as $,B as q,C as J,D as Q,E as aa,F as sa,I as ea,K as ta,M as ra,N as na,P as ia,R as oa,U as la,T as _a,$ as ca,a0 as Ea,a1 as ga,a2 as Sa,a3 as pa,a4 as ua,a5 as da,a6 as Ta,a7 as fa,a8 as Ia,a9 as Va,aa as Oa,ab as ba,ac as Aa,ad as ma,ae as Ra,af as Pa,ag as ha,ah as ya,ai as Ma,aj as La,ak as va,H as Ba,al as Da,am as xa,an as Na,ao as wa,ap as Ha,aq as ka,ar as Wa,as as ja,at as Ua,au as Ca}from"./Editor-D1ubm6pz-C-3Y_sfq.js";import{E as Ga,a as Ka,b as Ya,c as za}from"./element-plus-DI9D7hYI.js";const Fa=Object.freeze(Object.defineProperty({__proto__:null,ACCESS:V,API_METHOD_TYPES:O,Assets:b,Binder:A,Box:m,Designer:R,DevTools:P,EVENT_MODIFIERS:h,Editor:y,Engine:M,EventBinder:L,Icon:v,Item:B,KEYBOARD_EVENT_LIST:D,MOBILE_SIZE:x,MOUSE_EVENT_LIST:N,MicroApp:w,NAME_REGEX:H,NPM_REGISTRY_URL:k,OpenApi:W,PAD_SIZE:j,Panel:U,REMOTE:C,REPORT_API:G,RegionType:K,RegionWrapper:Y,Renderer:z,SAVE_BLOCK_FILE_FINISH:F,SESSION_ID_KEY:X,SetterView:Z,SetterWrapper:$,Simulator:q,Skeleton:J,SkeletonWrapper:Q,SlotsPicker:aa,Tabs:sa,VERSION_REGEX:ea,VTJ_DESIGNER_VERSION:ta,VUE_DEVTOOLS_FRAME_STATE_KEY:ra,VUE_DEVTOOLS_OVERLAY_PATH:na,VUE_DEVTOOLS_PATH:ia,VariableBinder:oa,Viewer:la,Viewport:_a,WidgetGroup:ca,WidgetWrapper:Ea,alert:ga,builtInDeps:Sa,builtInMaterials:pa,builtInSetters:ua,builtInWidgets:da,confirm:Ta,createSlotsPicker:fa,defaultSetter:Ia,depsManager:Va,engineKey:Oa,expressionValidate:ba,getClassProperties:Aa,message:ma,normalizedStyle:Ra,notify:Pa,proxyContext:ha,regions:ya,setterManager:Ma,setters:La,useEngine:va,widgetManager:Ba,widgets:Da},Symbol.toStringTag,{value:"Module"}));class Ja{constructor(a){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);_(this,"__BASE_PATH__","/");this.config=a;const s=c(c(c({},ka),Fa),Ha),i={Vue:I,__VTJ_PRO__:s,VtjUtils:wa,VtjIcons:Na,VtjUI:xa,ElementPlus:Ga};for(const[l,u]of Object.entries(i))window[l]=u;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:E=[],library:o,params:r=[]}=n||{};this.urls=E,this.library=o,this.params=r,this.__BASE_PATH__=e}load(){return p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,i=this.urls.filter(e=>Wa(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`);if(Ua(i),n.length){const e=yield Ca(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return a})}}function Qa(){return za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function as(t,a="",s="warning"){Ya({title:a,message:t,type:s})}function ss(t,a){return Ka.alert(t,a)}export{Ja as E,ss as a,Qa as l,as as n};
|