@vtj/pro 0.7.9 → 0.7.11

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.
@@ -1,7 +1,7 @@
1
- import{_ as o}from"./monaco-editor-ginzV8u1.js";import{useRoute as a}from"./vue-router-7jZRLvj2.js";import"./element-plus-mQa-xjrd.js";import{D as s,y as _,L as u}from"./index-GdUlSayE.js";import{d as c,r as d,S as l,W as v,X as f,o as R,h as E}from"./@vue-lwVaHA3a.js";import"./lodash-es-bSbz8D7Z.js";import"./@vueuse-4RidYFUd.js";import"./@element-plus-LjLasQGj.js";import"./@popperjs-UUtjUkU3.js";import"./@ctrl-ZggoHSuR.js";import"./dayjs-IPtKBSau.js";import"./async-validator-dHyGCDyC.js";import"./memoize-one-JaOscZgY.js";import"./normalize-wheel-es-1urBKM79.js";import"./@floating-ui-fSnuQPPg.js";import"./vue-lgTQXBfw.js";const W=c({__name:"preview",setup(C){const m=new u,{provider:r,onReady:i}=s({mode:_.Runtime,service:m,dependencies:{Vue:()=>o(()=>import("./vue-lgTQXBfw.js").then(e=>e.N),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>o(()=>import("./vue-router-7jZRLvj2.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>o(()=>import("./element-plus-mQa-xjrd.js").then(e=>e.$),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)}}),n=a(),t=d(),p=E();return i(async()=>{p?.appContext.app.use(r),t.value=await r.getRenderComponent(n.params.id.toString())}),(e,D)=>t.value?(R(),l(v(t.value),{key:0})):f("",!0)}});export{W as default};
1
+ import{_ as o}from"./monaco-editor-ginzV8u1.js";import{useRoute as a}from"./vue-router-7jZRLvj2.js";import"./element-plus-IN2gUjsN.js";import{I as s,g as _,a as u}from"./index-gT_bS6WQ.js";import{d as c,r as d,S as l,W as v,X as f,o as R,h as E}from"./@vue-lwVaHA3a.js";import"./lodash-es-bSbz8D7Z.js";import"./@vueuse-4RidYFUd.js";import"./@element-plus-LjLasQGj.js";import"./@popperjs-UUtjUkU3.js";import"./@ctrl-ZggoHSuR.js";import"./dayjs-IPtKBSau.js";import"./async-validator-dHyGCDyC.js";import"./memoize-one-JaOscZgY.js";import"./normalize-wheel-es-1urBKM79.js";import"./@floating-ui-YgFFYPER.js";import"./vue-1oxrHUEe.js";const N=c({__name:"preview",setup(C){const m=new u,{provider:r,onReady:i}=s({mode:_.Runtime,service:m,dependencies:{Vue:()=>o(()=>import("./vue-1oxrHUEe.js").then(e=>e.T),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>o(()=>import("./vue-router-7jZRLvj2.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>o(()=>import("./element-plus-IN2gUjsN.js").then(e=>e.$),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)}}),n=a(),t=d(),p=E();return i(async()=>{p?.appContext.app.use(r),t.value=await r.getRenderComponent(n.params.id.toString())}),(e,I)=>t.value?(R(),l(v(t.value),{key:0})):f("",!0)}});export{N as default};
2
2
  function __vite__mapDeps(indexes) {
3
3
  if (!__vite__mapDeps.viteFileDeps) {
4
- __vite__mapDeps.viteFileDeps = ["./vue-lgTQXBfw.js","./@vue-lwVaHA3a.js","./vue-router-7jZRLvj2.js","./element-plus-mQa-xjrd.js","./lodash-es-bSbz8D7Z.js","./@vueuse-4RidYFUd.js","./@element-plus-LjLasQGj.js","./@popperjs-UUtjUkU3.js","./@ctrl-ZggoHSuR.js","./dayjs-IPtKBSau.js","./async-validator-dHyGCDyC.js","./memoize-one-JaOscZgY.js","./normalize-wheel-es-1urBKM79.js","./@floating-ui-fSnuQPPg.js","./element-plus-1fB6zogk.css"]
4
+ __vite__mapDeps.viteFileDeps = ["./vue-1oxrHUEe.js","./@vue-lwVaHA3a.js","./vue-router-7jZRLvj2.js","./element-plus-IN2gUjsN.js","./lodash-es-bSbz8D7Z.js","./@vueuse-4RidYFUd.js","./@element-plus-LjLasQGj.js","./@popperjs-UUtjUkU3.js","./@ctrl-ZggoHSuR.js","./dayjs-IPtKBSau.js","./async-validator-dHyGCDyC.js","./memoize-one-JaOscZgY.js","./normalize-wheel-es-1urBKM79.js","./@floating-ui-YgFFYPER.js","./element-plus-1fB6zogk.css"]
5
5
  }
6
6
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
7
  }
@@ -2,4 +2,4 @@ import{ax as a,ay as e,E as s,az as o,aA as t,aB as r,aC as n,F as i,aD as l,aE
2
2
  * vue v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/const Xe=()=>{},Ze=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:a,BaseTransitionPropsValidators:e,Comment:s,DeprecationTypes:o,EffectScope:t,ErrorCodes:r,ErrorTypeStrings:n,Fragment:i,KeepAlive:l,ReactiveEffect:c,Static:d,Suspense:b,Teleport:p,Text:m,TrackOpTypes:f,Transition:u,TransitionGroup:S,TriggerOpTypes:h,VueElement:R,assertNumber:v,callWithAsyncErrorHandling:y,callWithErrorHandling:C,camelize:g,capitalize:T,cloneVNode:w,compatUtils:E,compile:Xe,computed:M,createApp:x,createBlock:k,createCommentVNode:D,createElementBlock:P,createElementVNode:V,createHydrationRenderer:B,createPropsRestProxy:N,createRenderer:A,createSSRApp:H,createSlots:O,createStaticVNode:z,createTextVNode:F,createVNode:I,customRef:U,defineAsyncComponent:K,defineComponent:j,defineCustomElement:_,defineEmits:G,defineExpose:L,defineModel:W,defineOptions:q,defineProps:J,defineSSRCustomElement:Q,defineSlots:X,devtools:Y,effect:Z,effectScope:$,getCurrentInstance:aa,getCurrentScope:ea,getTransitionRawChildren:sa,guardReactiveProps:oa,h:ta,handleError:ra,hasInjectionContext:na,hydrate:ia,initCustomFormatter:la,initDirectivesForSSR:ca,inject:da,isMemoSame:ba,isProxy:pa,isReactive:ma,isReadonly:fa,isRef:ua,isRuntimeOnly:Sa,isShallow:ha,isVNode:Ra,markRaw:va,mergeDefaults:ya,mergeModels:Ca,mergeProps:ga,nextTick:Ta,normalizeClass:wa,normalizeProps:Ea,normalizeStyle:Ma,onActivated:xa,onBeforeMount:ka,onBeforeUnmount:Da,onBeforeUpdate:Pa,onDeactivated:Va,onErrorCaptured:Ba,onMounted:Na,onRenderTracked:Aa,onRenderTriggered:Ha,onScopeDispose:Oa,onServerPrefetch:za,onUnmounted:Fa,onUpdated:Ia,openBlock:Ua,popScopeId:Ka,provide:ja,proxyRefs:_a,pushScopeId:Ga,queuePostFlushCb:La,reactive:Wa,readonly:qa,ref:Ja,registerRuntimeCompiler:Qa,render:Xa,renderList:Ya,renderSlot:Za,resolveComponent:$a,resolveDirective:ae,resolveDynamicComponent:ee,resolveFilter:se,resolveTransitionHooks:oe,setBlockTracking:te,setDevtoolsHook:re,setTransitionHooks:ne,shallowReactive:ie,shallowReadonly:le,shallowRef:ce,ssrContextKey:de,ssrUtils:be,stop:pe,toDisplayString:me,toHandlerKey:fe,toHandlers:ue,toRaw:Se,toRef:he,toRefs:Re,toValue:ve,transformVNodeArgs:ye,triggerRef:Ce,unref:ge,useAttrs:Te,useCssModule:we,useCssVars:Ee,useModel:Me,useSSRContext:xe,useSlots:ke,useTransitionState:De,vModelCheckbox:Pe,vModelDynamic:Ve,vModelRadio:Be,vModelSelect:Ne,vModelText:Ae,vShow:He,version:Oe,warn:ze,watch:Fe,watchEffect:Ie,watchPostEffect:Ue,watchSyncEffect:Ke,withAsyncContext:je,withCtx:_e,withDefaults:Ge,withDirectives:Le,withKeys:We,withMemo:qe,withModifiers:Je,withScopeId:Qe},Symbol.toStringTag,{value:"Module"}));export{Ze as N};
5
+ **/const Xe=()=>{},Ze=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:a,BaseTransitionPropsValidators:e,Comment:s,DeprecationTypes:o,EffectScope:t,ErrorCodes:r,ErrorTypeStrings:n,Fragment:i,KeepAlive:l,ReactiveEffect:c,Static:d,Suspense:b,Teleport:p,Text:m,TrackOpTypes:f,Transition:u,TransitionGroup:S,TriggerOpTypes:h,VueElement:R,assertNumber:v,callWithAsyncErrorHandling:y,callWithErrorHandling:C,camelize:g,capitalize:T,cloneVNode:w,compatUtils:E,compile:Xe,computed:M,createApp:x,createBlock:k,createCommentVNode:D,createElementBlock:P,createElementVNode:V,createHydrationRenderer:B,createPropsRestProxy:N,createRenderer:A,createSSRApp:H,createSlots:O,createStaticVNode:z,createTextVNode:F,createVNode:I,customRef:U,defineAsyncComponent:K,defineComponent:j,defineCustomElement:_,defineEmits:G,defineExpose:L,defineModel:W,defineOptions:q,defineProps:J,defineSSRCustomElement:Q,defineSlots:X,devtools:Y,effect:Z,effectScope:$,getCurrentInstance:aa,getCurrentScope:ea,getTransitionRawChildren:sa,guardReactiveProps:oa,h:ta,handleError:ra,hasInjectionContext:na,hydrate:ia,initCustomFormatter:la,initDirectivesForSSR:ca,inject:da,isMemoSame:ba,isProxy:pa,isReactive:ma,isReadonly:fa,isRef:ua,isRuntimeOnly:Sa,isShallow:ha,isVNode:Ra,markRaw:va,mergeDefaults:ya,mergeModels:Ca,mergeProps:ga,nextTick:Ta,normalizeClass:wa,normalizeProps:Ea,normalizeStyle:Ma,onActivated:xa,onBeforeMount:ka,onBeforeUnmount:Da,onBeforeUpdate:Pa,onDeactivated:Va,onErrorCaptured:Ba,onMounted:Na,onRenderTracked:Aa,onRenderTriggered:Ha,onScopeDispose:Oa,onServerPrefetch:za,onUnmounted:Fa,onUpdated:Ia,openBlock:Ua,popScopeId:Ka,provide:ja,proxyRefs:_a,pushScopeId:Ga,queuePostFlushCb:La,reactive:Wa,readonly:qa,ref:Ja,registerRuntimeCompiler:Qa,render:Xa,renderList:Ya,renderSlot:Za,resolveComponent:$a,resolveDirective:ae,resolveDynamicComponent:ee,resolveFilter:se,resolveTransitionHooks:oe,setBlockTracking:te,setDevtoolsHook:re,setTransitionHooks:ne,shallowReactive:ie,shallowReadonly:le,shallowRef:ce,ssrContextKey:de,ssrUtils:be,stop:pe,toDisplayString:me,toHandlerKey:fe,toHandlers:ue,toRaw:Se,toRef:he,toRefs:Re,toValue:ve,transformVNodeArgs:ye,triggerRef:Ce,unref:ge,useAttrs:Te,useCssModule:we,useCssVars:Ee,useModel:Me,useSSRContext:xe,useSlots:ke,useTransitionState:De,vModelCheckbox:Pe,vModelDynamic:Ve,vModelRadio:Be,vModelSelect:Ne,vModelText:Ae,vShow:He,version:Oe,warn:ze,watch:Fe,watchEffect:Ie,watchPostEffect:Ue,watchSyncEffect:Ke,withAsyncContext:je,withCtx:_e,withDefaults:Ge,withDirectives:Le,withKeys:We,withMemo:qe,withModifiers:Je,withScopeId:Qe},Symbol.toStringTag,{value:"Module"}));export{Ze as T};
package/dist/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <meta http-equiv="Pragma" content="no-cache"/>
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>VTJ 设计器</title>
11
- <script type="module" crossorigin src="./assets/index--8NTWX6H.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-VOGJkRvo.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="./assets/@vue-lwVaHA3a.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-bSbz8D7Z.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-4RidYFUd.js">
@@ -19,8 +19,8 @@
19
19
  <link rel="modulepreload" crossorigin href="./assets/async-validator-dHyGCDyC.js">
20
20
  <link rel="modulepreload" crossorigin href="./assets/memoize-one-JaOscZgY.js">
21
21
  <link rel="modulepreload" crossorigin href="./assets/normalize-wheel-es-1urBKM79.js">
22
- <link rel="modulepreload" crossorigin href="./assets/@floating-ui-fSnuQPPg.js">
23
- <link rel="modulepreload" crossorigin href="./assets/element-plus-mQa-xjrd.js">
22
+ <link rel="modulepreload" crossorigin href="./assets/@floating-ui-YgFFYPER.js">
23
+ <link rel="modulepreload" crossorigin href="./assets/element-plus-IN2gUjsN.js">
24
24
  <link rel="modulepreload" crossorigin href="./assets/monaco-editor-ginzV8u1.js">
25
25
  <link rel="modulepreload" crossorigin href="./assets/vue-router-7jZRLvj2.js">
26
26
  <link rel="stylesheet" crossorigin href="./assets/element-plus-1fB6zogk.css">
@@ -78,16 +78,6 @@
78
78
  </div>
79
79
 
80
80
  <div id="app"></div>
81
- <script>
82
- var _hmt = _hmt || [];
83
- (function() {
84
- var hm = document.createElement("script");
85
- hm.src = "https://hm.baidu.com/hm.js?ef1ba59d70b12a005a6058f563f634bb";
86
- var s = document.getElementsByTagName("script")[0];
87
- s.parentNode.insertBefore(hm, s);
88
- })();
89
-
90
- </script>
91
81
 
92
82
  <script>
93
83
  (function(){
@@ -125,5 +115,15 @@
125
115
  })()
126
116
 
127
117
  </script>
128
- </body>
118
+
119
+ <script>
120
+ (function () {
121
+ window._hmt = window._hmt || [];
122
+ const hm = document.createElement('script');
123
+ hm.src = 'https://hm.baidu.com/hm.js?42f2469b4aa27c3f8978f634c0c19d24';
124
+ var s = document.getElementsByTagName('script')[0];
125
+ s.parentNode.insertBefore(hm, s);
126
+ })();
127
+ </script>
128
+
129
129
  </html>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vtj/pro",
3
3
  "description": "VTJ.PRO",
4
4
  "private": false,
5
- "version": "0.7.9",
5
+ "version": "0.7.11",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "cross-env ENV_TYPE=local vite",
@@ -10,17 +10,17 @@
10
10
  "preview": "vite preview"
11
11
  },
12
12
  "dependencies": {
13
- "@vtj/core": "^0.7.9",
14
- "@vtj/designer": "^0.7.9",
15
- "@vtj/local": "^0.7.9",
16
- "@vtj/materials": "^0.7.9",
17
- "@vtj/renderer": "^0.7.9"
13
+ "@vtj/core": "^0.7.11",
14
+ "@vtj/designer": "^0.7.11",
15
+ "@vtj/local": "^0.7.11",
16
+ "@vtj/materials": "^0.7.11",
17
+ "@vtj/renderer": "^0.7.11"
18
18
  },
19
19
  "devDependencies": {
20
- "@vtj/cli": "^0.7.7",
21
- "@vtj/icons": "^0.7.9",
22
- "@vtj/ui": "^0.7.9",
23
- "@vtj/utils": "^0.7.9",
20
+ "@vtj/cli": "^0.7.8",
21
+ "@vtj/icons": "^0.7.11",
22
+ "@vtj/ui": "^0.7.11",
23
+ "@vtj/utils": "^0.7.11",
24
24
  "vue": "~3.4.15",
25
25
  "vue-router": "~4.2.5"
26
26
  },
@@ -43,7 +43,7 @@
43
43
  "dist",
44
44
  "src"
45
45
  ],
46
- "gitHead": "923aab791b5aacf1f0e75255ad7aa2b1b71e26bf",
46
+ "gitHead": "c06eab62d9b15ba39fd489316dc9389030b2d040",
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  }
@@ -1 +0,0 @@
1
- const z=Math.min,V=Math.max,Q=Math.round,J=Math.floor,N=t=>({x:t,y:t}),Et={left:"right",right:"left",bottom:"top",top:"bottom"},Tt={start:"end",end:"start"};function it(t,e,n){return V(t,z(e,n))}function U(t,e){return typeof t=="function"?t(e):t}function W(t){return t.split("-")[0]}function K(t){return t.split("-")[1]}function ht(t){return t==="x"?"y":"x"}function rt(t){return t==="y"?"height":"width"}function et(t){return["top","bottom"].includes(W(t))?"y":"x"}function ct(t){return ht(et(t))}function Lt(t,e,n){n===void 0&&(n=!1);const o=K(t),i=ct(t),r=rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=Z(s)),[s,Z(s)]}function Pt(t){const e=Z(t);return[st(t),e,st(e)]}function st(t){return t.replace(/start|end/g,e=>Tt[e])}function St(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Dt(t,e,n,o){const i=K(t);let r=St(W(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(st)))),r}function Z(t){return t.replace(/left|right|bottom|top/g,e=>Et[e])}function kt(t){return{top:0,right:0,bottom:0,left:0,...t}}function pt(t){return typeof t!="number"?kt(t):{top:t,right:t,bottom:t,left:t}}function tt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ut(t,e,n){let{reference:o,floating:i}=t;const r=et(e),s=ct(e),c=rt(s),l=W(e),f=r==="y",m=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let a;switch(l){case"top":a={x:m,y:o.y-i.height};break;case"bottom":a={x:m,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:d};break;case"left":a={x:o.x-i.width,y:d};break;default:a={x:o.x,y:o.y}}switch(K(e)){case"start":a[s]-=h*(n&&f?-1:1);break;case"end":a[s]+=h*(n&&f?-1:1);break}return a}const Ft=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:m,y:d}=ut(f,o,l),h=o,a={},u=0;for(let p=0;p<c.length;p++){const{name:w,fn:g}=c[p],{x,y,data:b,reset:v}=await g({x:m,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:a,rects:f,platform:s,elements:{reference:t,floating:e}});if(m=x??m,d=y??d,a={...a,[w]:{...a[w],...b}},v&&u<=50){u++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(f=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:m,y:d}=ut(f,h,l)),p=-1;continue}}return{x:m,y:d,placement:h,strategy:i,middlewareData:a}};async function wt(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:d="floating",altBoundary:h=!1,padding:a=0}=U(e,t),u=pt(a),w=c[h?d==="floating"?"reference":"floating":d],g=tt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:l})),x=d==="floating"?{...s.floating,x:o,y:i}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=tt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:y,strategy:l}):x);return{top:(g.top-v.top+u.top)/b.y,bottom:(v.bottom-g.bottom+u.bottom)/b.y,left:(g.left-v.left+u.left)/b.x,right:(v.right-g.right+u.right)/b.x}}const Nt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:f,padding:m=0}=U(t,e)||{};if(f==null)return{};const d=pt(m),h={x:n,y:o},a=ct(i),u=rt(a),p=await s.getDimensions(f),w=a==="y",g=w?"top":"left",x=w?"bottom":"right",y=w?"clientHeight":"clientWidth",b=r.reference[u]+r.reference[a]-h[a]-r.floating[u],v=h[a]-r.reference[a],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let T=E?E[y]:0;(!T||!await(s.isElement==null?void 0:s.isElement(E)))&&(T=c.floating[y]||r.floating[u]);const M=b/2-v/2,_=T/2-p[u]/2-1,j=z(d[g],_),X=z(d[x],_),O=j,Y=T-p[u]-X,A=T/2-p[u]/2+M,L=it(O,A,Y),P=!l.arrow&&K(i)!=null&&A!=L&&r.reference[u]/2-(A<O?j:X)-p[u]/2<0,D=P?A<O?A-O:A-Y:0;return{[a]:h[a]+D,data:{[a]:L,centerOffset:A-L-D,...P&&{alignmentOffset:D}},reset:P}}}),Bt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:f}=e,{mainAxis:m=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:p=!0,...w}=U(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=W(i),x=W(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(f.floating)),b=h||(x||!p?[Z(c)]:Pt(c));!h&&u!=="none"&&b.push(...Dt(c,p,u,y));const v=[c,...b],E=await wt(e,w),T=[];let M=((o=r.flip)==null?void 0:o.overflows)||[];if(m&&T.push(E[g]),d){const O=Lt(i,s,y);T.push(E[O[0]],E[O[1]])}if(M=[...M,{placement:i,overflows:T}],!T.every(O=>O<=0)){var _,j;const O=(((_=r.flip)==null?void 0:_.index)||0)+1,Y=v[O];if(Y)return{data:{index:O,overflows:M},reset:{placement:Y}};let A=(j=M.filter(L=>L.overflows[0]<=0).sort((L,P)=>L.overflows[1]-P.overflows[1])[0])==null?void 0:j.placement;if(!A)switch(a){case"bestFit":{var X;const L=(X=M.map(P=>[P.placement,P.overflows.filter(D=>D>0).reduce((D,Ct)=>D+Ct,0)]).sort((P,D)=>P[1]-D[1])[0])==null?void 0:X[0];L&&(A=L);break}case"initialPlacement":A=c;break}if(i!==A)return{reset:{placement:A}}}return{}}}};async function Mt(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=W(n),c=K(n),l=et(n)==="y",f=["left","top"].includes(s)?-1:1,m=r&&l?-1:1,d=U(e,t);let{mainAxis:h,crossAxis:a,alignmentAxis:u}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&typeof u=="number"&&(a=c==="end"?u*-1:u),l?{x:a*m,y:h*f}:{x:h*f,y:a*m}}const ee=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await Mt(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Vt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=U(t,e),f={x:n,y:o},m=await wt(e,l),d=et(W(i)),h=ht(d);let a=f[h],u=f[d];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=a+m[w],y=a-m[g];a=it(x,a,y)}if(s){const w=d==="y"?"top":"left",g=d==="y"?"bottom":"right",x=u+m[w],y=u-m[g];u=it(x,u,y)}const p=c.fn({...e,[h]:a,[d]:u});return{...p,data:{x:p.x-n,y:p.y-o}}}}};function B(t){return xt(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function F(t){var e;return(e=(xt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xt(t){return t instanceof Node||t instanceof R(t).Node}function k(t){return t instanceof Element||t instanceof R(t).Element}function S(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement}function dt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}function G(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=C(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Wt(t){return["table","td","th"].includes(B(t))}function lt(t){const e=ft(),n=C(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ht(t){let e=I(t);for(;S(e)&&!nt(e);){if(lt(e))return e;e=I(e)}return null}function ft(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nt(t){return["html","body","#document"].includes(B(t))}function C(t){return R(t).getComputedStyle(t)}function ot(t){return k(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function I(t){if(B(t)==="html")return t;const e=t.assignedSlot||t.parentNode||dt(t)&&t.host||F(t);return dt(e)?e.host:e}function yt(t){const e=I(t);return nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:S(e)&&G(e)?e:yt(e)}function q(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=yt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=R(i);return r?e.concat(s,s.visualViewport||[],G(i)?i:[],s.frameElement&&n?q(s.frameElement):[]):e.concat(i,q(i,[],n))}function vt(t){const e=C(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=S(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=Q(n)!==r||Q(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function at(t){return k(t)?t:t.contextElement}function $(t){const e=at(t);if(!S(e))return N(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=vt(e);let s=(r?Q(n.width):n.width)/o,c=(r?Q(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const $t=N(0);function bt(t){const e=R(t);return!ft()||!e.visualViewport?$t:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zt(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function H(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=at(t);let s=N(1);e&&(o?k(o)&&(s=$(o)):s=$(t));const c=zt(r,n,o)?bt(r):N(0);let l=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,m=i.width/s.x,d=i.height/s.y;if(r){const h=R(r),a=o&&k(o)?R(o):o;let u=h.frameElement;for(;u&&o&&a!==h;){const p=$(u),w=u.getBoundingClientRect(),g=C(u),x=w.left+(u.clientLeft+parseFloat(g.paddingLeft))*p.x,y=w.top+(u.clientTop+parseFloat(g.paddingTop))*p.y;l*=p.x,f*=p.y,m*=p.x,d*=p.y,l+=x,f+=y,u=R(u).frameElement}}return tt({width:m,height:d,x:l,y:f})}function It(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=S(n),r=F(n);if(n===r)return e;let s={scrollLeft:0,scrollTop:0},c=N(1);const l=N(0);if((i||!i&&o!=="fixed")&&((B(n)!=="body"||G(r))&&(s=ot(n)),S(n))){const f=H(n);c=$(n),l.x=f.x+n.clientLeft,l.y=f.y+n.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+l.x,y:e.y*c.y-s.scrollTop*c.y+l.y}}function _t(t){return Array.from(t.getClientRects())}function At(t){return H(F(t)).left+ot(t).scrollLeft}function jt(t){const e=F(t),n=ot(t),o=t.ownerDocument.body,i=V(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=V(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+At(t);const c=-n.scrollTop;return C(o).direction==="rtl"&&(s+=V(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Xt(t,e){const n=R(t),o=F(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const f=ft();(!f||f&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Yt(t,e){const n=H(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=S(t)?$(t):N(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,f=o*r.y;return{width:s,height:c,x:l,y:f}}function mt(t,e,n){let o;if(e==="viewport")o=Xt(t,n);else if(e==="document")o=jt(F(t));else if(k(e))o=Yt(e,n);else{const i=bt(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return tt(o)}function Rt(t,e){const n=I(t);return n===e||!k(n)||nt(n)?!1:C(n).position==="fixed"||Rt(n,e)}function qt(t,e){const n=e.get(t);if(n)return n;let o=q(t,[],!1).filter(c=>k(c)&&B(c)!=="body"),i=null;const r=C(t).position==="fixed";let s=r?I(t):t;for(;k(s)&&!nt(s);){const c=C(s),l=lt(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||G(s)&&!l&&Rt(t,s))?o=o.filter(m=>m!==s):i=c,s=I(s)}return e.set(t,o),o}function Ut(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?qt(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((f,m)=>{const d=mt(e,m,i);return f.top=V(d.top,f.top),f.right=z(d.right,f.right),f.bottom=z(d.bottom,f.bottom),f.left=V(d.left,f.left),f},mt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Kt(t){const{width:e,height:n}=vt(t);return{width:e,height:n}}function Gt(t,e,n){const o=S(e),i=F(e),r=n==="fixed",s=H(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=N(0);if(o||!o&&!r)if((B(e)!=="body"||G(i))&&(c=ot(e)),o){const f=H(e,!0,r,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else i&&(l.x=At(i));return{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function gt(t,e){return!S(t)||C(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ot(t,e){const n=R(t);if(!S(t))return n;let o=gt(t,e);for(;o&&Wt(o)&&C(o).position==="static";)o=gt(o,e);return o&&(B(o)==="html"||B(o)==="body"&&C(o).position==="static"&&!lt(o))?n:o||Ht(t)||n}const Jt=async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||Ot,r=this.getDimensions;return{reference:Gt(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}};function Qt(t){return C(t).direction==="rtl"}const Zt={convertOffsetParentRelativeRectToViewportRelativeRect:It,getDocumentElement:F,getClippingRect:Ut,getOffsetParent:Ot,getElementRects:Jt,getClientRects:_t,getDimensions:Kt,getScale:$,isElement:k,isRTL:Qt};function te(t,e){let n=null,o;const i=F(t);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const{left:f,top:m,width:d,height:h}=t.getBoundingClientRect();if(c||e(),!d||!h)return;const a=J(m),u=J(i.clientWidth-(f+d)),p=J(i.clientHeight-(m+h)),w=J(f),x={rootMargin:-a+"px "+-u+"px "+-p+"px "+-w+"px",threshold:V(0,z(1,l))||1};let y=!0;function b(v){const E=v[0].intersectionRatio;if(E!==l){if(!y)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(t)}return s(!0),r}function ne(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=at(t),m=i||r?[...f?q(f):[],...q(e)]:[];m.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const d=f&&c?te(f,n):null;let h=-1,a=null;s&&(a=new ResizeObserver(g=>{let[x]=g;x&&x.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{a&&a.observe(e)})),n()}),f&&!l&&a.observe(f),a.observe(e));let u,p=l?H(t):null;l&&w();function w(){const g=H(t);p&&(g.x!==p.x||g.y!==p.y||g.width!==p.width||g.height!==p.height)&&n(),p=g,u=requestAnimationFrame(w)}return n(),()=>{m.forEach(g=>{i&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),d&&d(),a&&a.disconnect(),a=null,l&&cancelAnimationFrame(u)}}const oe=Vt,ie=Bt,se=Nt,re=(t,e,n)=>{const o=new Map,i={platform:Zt,...n},r={...i.platform,_c:o};return Ft(t,e,{...i,platform:r})};export{se as a,ne as b,re as c,wt as d,ie as f,ee as o,oe as s};