@coffer-org/web 1.2.4 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/assets/ExtendReasonInfo-BWE0jB4G.js +41 -0
  2. package/dist/assets/GeoMap-jaP2nIfo.js +1 -0
  3. package/dist/assets/{MarkdownEditor-BnlH5uW-.js → MarkdownEditor-CX6oZ_kg.js} +16 -16
  4. package/dist/assets/NewRecordView-B-RqnN-Y.js +1 -0
  5. package/dist/assets/PageBody-vqdN-RMp.js +1 -0
  6. package/dist/assets/PluginSettingsPage-B31gFT22.js +1 -0
  7. package/dist/assets/SettingsForm-DDnhqBSj.js +1 -0
  8. package/dist/assets/SettingsPage-BV9UTEDe.js +1 -0
  9. package/dist/assets/Toolbar-BoxzX8xT.js +64 -0
  10. package/dist/assets/api-DkQSqUPw.js +1 -0
  11. package/dist/assets/auth-context-B_qjXnPP.js +1 -0
  12. package/dist/assets/button-kcc5r5Us.js +3 -0
  13. package/dist/assets/clsx-CjYvs854.js +1 -0
  14. package/dist/assets/dist-BH3_IOMm.js +1 -0
  15. package/dist/assets/esm-CqGX0Bpt.js +1 -0
  16. package/dist/assets/esm-YFvMvTG9.css +1 -0
  17. package/dist/assets/esm-ZmB8_rY0.js +24 -0
  18. package/dist/assets/floating-ui.dom-CRUx2QLQ.js +1 -0
  19. package/dist/assets/index-Bkh3f49V.css +2 -0
  20. package/dist/assets/index-a1UeYh9b.js +104 -0
  21. package/dist/assets/index.dom-DUzxw5W6.js +1 -0
  22. package/dist/assets/jsx-runtime-fBfwind-.js +1 -0
  23. package/dist/assets/lib-CypA9mh5.js +1 -0
  24. package/dist/assets/lib-DE723i2V.js +1 -0
  25. package/dist/assets/micromark-extension-gfm-BHHqR65A.js +4 -0
  26. package/dist/assets/objectWithoutPropertiesLoose-DBYSo7QU.js +1 -0
  27. package/dist/assets/{jsx-runtime-n5LQ9ujS.js → react-B8IZ02wI.js} +1 -1
  28. package/dist/index.html +16 -4
  29. package/dist-vendor/web-sdk.js +1070 -1036
  30. package/package.json +2 -2
  31. package/dist/assets/GeoMap-DLVKadTs.js +0 -1
  32. package/dist/assets/index-CU234TqI.css +0 -1
  33. package/dist/assets/index-Cn4XUIR5.js +0 -205
  34. package/dist/assets/micromark-extension-gfm-B-iJ66UA.js +0 -4
  35. /package/dist/assets/{dist-DBnWo8ZP.js → dist-DBnWo8ZP2.js} +0 -0
@@ -0,0 +1 @@
1
+ var e=[`top`,`right`,`bottom`,`left`],t=Math.min,n=Math.max,r=Math.round,i=Math.floor,a=e=>({x:e,y:e}),o={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function s(e,r,i){return n(e,t(r,i))}function c(e,t){return typeof e==`function`?e(t):e}function l(e){return e.split(`-`)[0]}function u(e){return e.split(`-`)[1]}function d(e){return e===`x`?`y`:`x`}function f(e){return e===`y`?`height`:`width`}function p(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function m(e){return d(p(e))}function h(e,t,n){n===void 0&&(n=!1);let r=u(e),i=m(e),a=f(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=w(o)),[o,w(o)]}function g(e){let t=w(e);return[_(e),t,_(t)]}function _(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var v=[`left`,`right`],y=[`right`,`left`],b=[`top`,`bottom`],x=[`bottom`,`top`];function S(e,t,n){switch(e){case`top`:case`bottom`:return n?t?y:v:t?v:y;case`left`:case`right`:return t?b:x;default:return[]}}function C(e,t,n,r){let i=u(e),a=S(l(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_)))),a}function w(e){let t=l(e);return o[t]+e.slice(t.length)}function T(e){return{top:0,right:0,bottom:0,left:0,...e}}function E(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:T(e)}function D(e){let{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 O(e,t,n){let{reference:r,floating:i}=e,a=p(t),o=m(t),s=f(o),c=l(t),d=a===`y`,h=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,_=r[s]/2-i[s]/2,v;switch(c){case`top`:v={x:h,y:r.y-i.height};break;case`bottom`:v={x:h,y:r.y+r.height};break;case`right`:v={x:r.x+r.width,y:g};break;case`left`:v={x:r.x-i.width,y:g};break;default:v={x:r.x,y:r.y}}switch(u(t)){case`start`:v[o]-=_*(n&&d?-1:1);break;case`end`:v[o]+=_*(n&&d?-1:1);break}return v}async function k(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=c(t,e),m=E(p),h=o[f?d===`floating`?`reference`:`floating`:d],g=D(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(h))??!0?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:l,rootBoundary:u,strategy:s})),_=d===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=D(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:v,strategy:s}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var A=50,j=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:k},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=O(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<A&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=O(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},M=e=>({name:`arrow`,options:e,async fn(n){let{x:r,y:i,placement:a,rects:o,platform:l,elements:d,middlewareData:p}=n,{element:h,padding:g=0}=c(e,n)||{};if(h==null)return{};let _=E(g),v={x:r,y:i},y=m(a),b=f(y),x=await l.getDimensions(h),S=y===`y`,C=S?`top`:`left`,w=S?`bottom`:`right`,T=S?`clientHeight`:`clientWidth`,D=o.reference[b]+o.reference[y]-v[y]-o.floating[b],O=v[y]-o.reference[y],k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h)),A=k?k[T]:0;(!A||!await(l.isElement==null?void 0:l.isElement(k)))&&(A=d.floating[T]||o.floating[b]);let j=D/2-O/2,M=A/2-x[b]/2-1,ee=t(_[C],M),N=t(_[w],M),P=ee,te=A-x[b]-N,F=A/2-x[b]/2+j,I=s(P,F,te),L=!p.arrow&&u(a)!=null&&F!==I&&o.reference[b]/2-(F<P?ee:N)-x[b]/2<0,ne=L?F<P?F-P:F-te:0;return{[y]:v[y]+ne,data:{[y]:I,centerOffset:F-I-ne,...L&&{alignmentOffset:ne}},reset:L}}}),ee=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:_=`bestFit`,fallbackAxisSideDirection:v=`none`,flipAlignment:y=!0,...b}=c(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let x=l(r),S=p(o),T=l(o)===o,E=await(s.isRTL==null?void 0:s.isRTL(u.floating)),D=m||(T||!y?[w(o)]:g(o)),O=v!==`none`;!m&&O&&D.push(...C(o,y,v,E));let k=[o,...D],A=await s.detectOverflow(t,b),j=[],M=i.flip?.overflows||[];if(d&&j.push(A[x]),f){let e=h(r,a,E);j.push(A[e[0]],A[e[1]])}if(M=[...M,{placement:r,overflows:j}],!j.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=k[e];if(t&&(!(f===`alignment`&&S!==p(t))||M.every(e=>p(e.placement)===S?e.overflows[0]>0:!0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(_){case`bestFit`:{let e=M.filter(e=>{if(O){let t=p(e.placement);return t===S||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(t){return e.some(e=>t[e]>=0)}var te=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=c(e,t);switch(i){case`referenceHidden`:{let e=N(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case`escaped`:{let e=N(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}},F=new Set([`left`,`top`]);async function I(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=l(n),s=u(n),d=p(n)===`y`,f=F.has(o)?-1:1,m=a&&d?-1:1,h=c(t,e),{mainAxis:g,crossAxis:_,alignmentAxis:v}=typeof h==`number`?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof v==`number`&&(_=s===`end`?v*-1:v),d?{x:_*m,y:g*f}:{x:g*f,y:_*m}}var L=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await I(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ne=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:u=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...m}=c(e,t),h={x:n,y:r},g=await a.detectOverflow(t,m),_=p(l(i)),v=d(_),y=h[v],b=h[_];if(o){let e=v===`y`?`top`:`left`,t=v===`y`?`bottom`:`right`,n=y+g[e],r=y-g[t];y=s(n,y,r)}if(u){let e=_===`y`?`top`:`left`,t=_===`y`?`bottom`:`right`,n=b+g[e],r=b-g[t];b=s(n,b,r)}let x=f.fn({...t,[v]:y,[_]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:o,[_]:u}}}}}},re=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:u=!0,crossAxis:f=!0}=c(e,t),m={x:n,y:r},h=p(i),g=d(h),_=m[g],v=m[h],y=c(s,t),b=typeof y==`number`?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){let e=g===`y`?`height`:`width`,t=a.reference[g]-a.floating[e]+b.mainAxis,n=a.reference[g]+a.reference[e]-b.mainAxis;_<t?_=t:_>n&&(_=n)}if(f){let e=g===`y`?`width`:`height`,t=F.has(l(i)),n=a.reference[h]-a.floating[e]+(t&&o.offset?.[h]||0)+(t?0:b.crossAxis),r=a.reference[h]+a.reference[e]+(t?0:o.offset?.[h]||0)-(t?b.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[g]:_,[h]:v}}}},ie=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(r){var i,a;let{placement:o,rects:s,platform:d,elements:f}=r,{apply:m=()=>{},...h}=c(e,r),g=await d.detectOverflow(r,h),_=l(o),v=u(o),y=p(o)===`y`,{width:b,height:x}=s.floating,S,C;_===`top`||_===`bottom`?(S=_,C=v===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?`start`:`end`)?`left`:`right`):(C=_,S=v===`end`?`top`:`bottom`);let w=x-g.top-g.bottom,T=b-g.left-g.right,E=t(x-g[S],w),D=t(b-g[C],T),O=!r.middlewareData.shift,k=E,A=D;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(A=T),(a=r.middlewareData.shift)!=null&&a.enabled.y&&(k=w),O&&!v){let e=n(g.left,0),t=n(g.right,0),r=n(g.top,0),i=n(g.bottom,0);y?A=b-2*(e!==0||t!==0?e+t:n(g.left,g.right)):k=x-2*(r!==0||i!==0?r+i:n(g.top,g.bottom))}await m({...r,availableWidth:A,availableHeight:k});let j=await d.getDimensions(f.floating);return b!==j.width||x!==j.height?{reset:{rects:!0}}:{}}}};function ae(){return typeof window<`u`}function R(e){return oe(e)?(e.nodeName||``).toLowerCase():`#document`}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function B(e){return((oe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oe(e){return ae()?e instanceof Node||e instanceof z(e).Node:!1}function V(e){return ae()?e instanceof Element||e instanceof z(e).Element:!1}function H(e){return ae()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function se(e){return!ae()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ce(e){return/^(table|td|th)$/.test(R(e))}function W(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var le=/transform|translate|scale|rotate|perspective|filter/,ue=/paint|layout|strict|content/,G=e=>!!e&&e!==`none`,de;function fe(e){let t=V(e)?J(e):e;return G(t.transform)||G(t.translate)||G(t.scale)||G(t.rotate)||G(t.perspective)||!K()&&(G(t.backdropFilter)||G(t.filter))||le.test(t.willChange||``)||ue.test(t.contain||``)}function pe(e){let t=X(e);for(;H(t)&&!q(t);){if(fe(t))return t;if(W(t))return null;t=X(t)}return null}function K(){return de??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),de}function q(e){return/^(html|body|#document)$/.test(R(e))}function J(e){return z(e).getComputedStyle(e)}function Y(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(R(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||se(e)&&e.host||B(e);return se(t)?t.host:t}function me(e){let t=X(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&U(t)?t:me(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=me(e),i=r===e.ownerDocument?.body,a=z(r);if(i){let e=he(a);return t.concat(a,a.visualViewport||[],U(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function he(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ge(e){let t=J(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,a=H(e),o=a?e.offsetWidth:n,s=a?e.offsetHeight:i,c=r(n)!==o||r(i)!==s;return c&&(n=o,i=s),{width:n,height:i,$:c}}function _e(e){return V(e)?e:e.contextElement}function Q(e){let t=_e(e);if(!H(t))return a(1);let n=t.getBoundingClientRect(),{width:i,height:o,$:s}=ge(t),c=(s?r(n.width):n.width)/i,l=(s?r(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var ve=a(0);function ye(e){let t=z(e);return!K()||!t.visualViewport?ve:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function be(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),o=_e(e),s=a(1);t&&(r?V(r)&&(s=Q(r)):s=Q(e));let c=be(o,n,r)?ye(o):a(0),l=(i.left+c.x)/s.x,u=(i.top+c.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(o){let e=z(o),t=r&&V(r)?z(r):r,n=e,i=he(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=a,u+=o,n=z(i),i=he(n)}}return D({width:d,height:f,x:l,y:u})}function xe(e,t){let n=Y(e).scrollLeft;return t?t.left+n:$(B(e)).left+n}function Se(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-xe(e,n),y:n.top+t.scrollTop}}function Ce(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o=i===`fixed`,s=B(r),c=t?W(t.floating):!1;if(r===s||c&&o)return n;let l={scrollLeft:0,scrollTop:0},u=a(1),d=a(0),f=H(r);if((f||!f&&!o)&&((R(r)!==`body`||U(s))&&(l=Y(r)),f)){let e=$(r);u=Q(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=s&&!f&&!o?Se(s,l):a(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function we(e){return Array.from(e.getClientRects())}function Te(e){let t=B(e),r=Y(e),i=e.ownerDocument.body,a=n(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=n(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+xe(e),c=-r.scrollTop;return J(i).direction===`rtl`&&(s+=n(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:s,y:c}}var Ee=25;function De(e,t){let n=z(e),r=B(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=K();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=xe(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ee&&(a-=o)}else l<=Ee&&(a+=l);return{width:a,height:o,x:s,y:c}}function Oe(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=H(e)?Q(e):a(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}function ke(e,t,n){let r;if(t===`viewport`)r=De(e,n);else if(t===`document`)r=Te(B(e));else if(V(t))r=Oe(t,n);else{let n=ye(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return D(r)}function Ae(e,t){let n=X(e);return n===t||!V(n)||q(n)?!1:J(n).position===`fixed`||Ae(n,t)}function je(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>V(e)&&R(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?X(e):e;for(;V(o)&&!q(o);){let t=J(o),n=fe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||U(o)&&!n&&Ae(e,o))?r=r.filter(e=>e!==o):i=t,o=X(o)}return t.set(e,r),r}function Me(e){let{element:r,boundary:i,rootBoundary:a,strategy:o}=e,s=[...i===`clippingAncestors`?W(r)?[]:je(r,this._c):[].concat(i),a],c=ke(r,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let e=1;e<s.length;e++){let i=ke(r,s[e],o);l=n(i.top,l),u=t(i.right,u),d=t(i.bottom,d),f=n(i.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function Ne(e){let{width:t,height:n}=ge(e);return{width:t,height:n}}function Pe(e,t,n){let r=H(t),i=B(t),o=n===`fixed`,s=$(e,!0,o,t),c={scrollLeft:0,scrollTop:0},l=a(0);function u(){l.x=xe(i)}if(r||!r&&!o)if((R(t)!==`body`||U(i))&&(c=Y(t)),r){let e=$(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&u();o&&!r&&i&&u();let d=i&&!r&&!o?Se(i,c):a(0);return{x:s.left+c.scrollLeft-l.x-d.x,y:s.top+c.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Fe(e){return J(e).position===`static`}function Ie(e,t){if(!H(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return B(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){let n=z(e);if(W(e))return n;if(!H(e)){let t=X(e);for(;t&&!q(t);){if(V(t)&&!Fe(t))return t;t=X(t)}return n}let r=Ie(e,t);for(;r&&ce(r)&&Fe(r);)r=Ie(r,t);return r&&q(r)&&Fe(r)&&!fe(r)?n:r||pe(e)||n}var Re=async function(e){let t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Pe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ze(e){return J(e).direction===`rtl`}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:Ce,getDocumentElement:B,getClippingRect:Me,getOffsetParent:Le,getElementRects:Re,getClientRects:we,getDimensions:Ne,getScale:Q,isElement:V,isRTL:ze};function Ve(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function He(e,r){let a=null,o,s=B(e);function c(){var e;clearTimeout(o),(e=a)==null||e.disconnect(),a=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),c();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(u||r(),!h||!g)return;let _=i(m),v=i(s.clientWidth-(p+h)),y=i(s.clientHeight-(m+g)),b=i(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:n(0,t(1,d))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==d){if(!S)return l();n?l(!1,n):o=setTimeout(()=>{l(!1,1e-7)},1e3)}n===1&&!Ve(f,e.getBoundingClientRect())&&l(),S=!1}try{a=new IntersectionObserver(C,{...x,root:s.ownerDocument})}catch{a=new IntersectionObserver(C,x)}a.observe(e)}return l(!0),c}function Ue(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=_e(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?He(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!Ve(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var We=L,Ge=ne,Ke=ee,qe=ie,Je=te,Ye=M,Xe=re,Ze=(e,t,n)=>{let r=new Map,i={platform:Be,...n},a={...i.platform,_c:r};return j(e,t,{...i,platform:a})};export{i as C,E as D,f as E,l as O,c as S,m as T,oe as _,Je as a,K as b,Ge as c,R as d,X as f,q as g,H as h,Ke as i,p as k,qe as l,V as m,Ue as n,Xe as o,z as p,Ze as r,We as s,Ye as t,J as u,U as v,u as w,s as x,se as y};